@sheetxl/studio-mui 0.3.4 → 0.3.5

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 (79) hide show
  1. package/browser/cjs/{D9t4mfnS94EkWCXT.cjs → 4qy63Boa4nvdxyjo.cjs} +2 -2
  2. package/browser/cjs/{DEa9UMmpvbiH_Dxm.cjs → AQ9Vi-Cv6JK-IezR.cjs} +1 -1
  3. package/browser/cjs/{BHC1oqfBYh7Xmx_G.cjs → B13OXuZsTC4RULMo.cjs} +1 -1
  4. package/browser/cjs/{DbczL66CNJYzHHvr.cjs → BHJSCG4oU8pmuDwm.cjs} +1 -1
  5. package/browser/cjs/{C0hVi0a9d9Sh_FgO.cjs → Bav0cmsoPAA3a5yu.cjs} +2 -2
  6. package/browser/cjs/{BMUOX4KpmBu6GH8Q.cjs → Bkl3DGri3E5UGuvv.cjs} +1 -1
  7. package/browser/cjs/{DzdnNJvBx5lkLTW-.cjs → BlxVofqfnSMNcuv8.cjs} +1 -1
  8. package/browser/cjs/{DfPqfTiRAZ9i5RVA.cjs → ByVL-_c8JG4yCwyg.cjs} +2 -2
  9. package/browser/cjs/{Dpc0lG73ekHkTPOA.cjs → CGHGrJD1KaYGPUWt.cjs} +2 -2
  10. package/browser/cjs/{f1m-IERoDbQdUMNJ.cjs → CQXkduebOzsWYR7I.cjs} +1 -1
  11. package/browser/cjs/{C1GrJth6YhBZDgvq.cjs → CauYni4UlnUOg2KD.cjs} +2 -2
  12. package/browser/cjs/{EPoWWLrVLfRMaxvD.cjs → CetwWGtSVR7MPQmq.cjs} +2 -2
  13. package/browser/cjs/{xRKATlLPCXjQqLyR.cjs → D76n8Obon9BUBaN9.cjs} +1 -1
  14. package/browser/cjs/{Bwk2L5ydEvoRIisp.cjs → DAIK3n9uEZA5B3jo.cjs} +1 -1
  15. package/browser/cjs/{edAxlEEqzjJ_PaBv.cjs → DKTmOXPHU474-EAe.cjs} +2 -2
  16. package/browser/cjs/{CtKfykOLBwpCtsPd.cjs → DQxMsOz7p1VlzGGr.cjs} +3 -3
  17. package/browser/cjs/{_JBLryXFRVS5vFVX.cjs → DSumeKv5upBoatXJ.cjs} +4 -4
  18. package/browser/cjs/{DY0yxZSYTOZvtIkB.cjs → Dold2uHEN8H8QsT-.cjs} +1 -1
  19. package/browser/cjs/{C0sbobSHWURMB8m0.cjs → K7lHFQm8oaMP4Fc7.cjs} +3 -3
  20. package/browser/cjs/{CB6TEerfGxS24WUy.cjs → LLqao183uS5MMxF5.cjs} +2 -2
  21. package/browser/cjs/index.cjs +2 -2
  22. package/browser/cjs/{BsXtNRaOhnjlXTcA.cjs → kEe9PBONC8-oT9AU.cjs} +2 -2
  23. package/browser/cjs/{j8ba84pFnKx2xWvW.cjs → p8j2cCUulAy7yD2q.cjs} +2 -2
  24. package/browser/cjs/{CBIj9rqxh2ze9ckF.cjs → q9JmnJDMYsSf7UfZ.cjs} +2 -2
  25. package/browser/cjs/{B1DCwLSJMTHSgdcP.cjs → wwocjd0UfaRLBBMZ.cjs} +2 -2
  26. package/browser/cjs/zAZ0LJZMPXeu6JSh.cjs +87 -0
  27. package/browser/esm/{DnH6tB6PvfbWK92p.mjs → B5O5PCrKRZ4DUAH5.mjs} +3 -3
  28. package/browser/esm/{tEvhefgL1pPAbBne.mjs → B89QkSJt5Nra70ba.mjs} +10383 -10373
  29. package/browser/esm/{CoPf1k9QR8u7c9dJ.mjs → BRJgzXA_m_2aKWbd.mjs} +2 -2
  30. package/browser/esm/{B7spDz0f3MErGle0.mjs → BYUh5NiLu-E5n_2A.mjs} +3 -3
  31. package/browser/esm/{CSEDlIO1VyJbsJUh.mjs → Bx8dhDDGV4fnPcL4.mjs} +2 -2
  32. package/browser/esm/{B3E24eA0KrqZGcc6.mjs → C2gkPo-K972JVp5g.mjs} +2 -2
  33. package/browser/esm/{DJmEZGVO4DnLsMSK.mjs → CEvGwR40Y6Ef-WDe.mjs} +1 -1
  34. package/browser/esm/{Ca8SXunZNcPT82kM.mjs → Cb9SB2mI9VqoMLgo.mjs} +1 -1
  35. package/browser/esm/{DTY6o1fHyy7Ldm2E.mjs → CsT1vXKI_o6hLmzM.mjs} +1 -1
  36. package/browser/esm/{DhuuaOVgVDtHsSft.mjs → D0WM4vskQ31-MkSX.mjs} +6 -6
  37. package/browser/esm/{C0HMqAubZ7789bne.mjs → D5FRlmQmwf6Y4j_G.mjs} +1 -1
  38. package/browser/esm/{buSI99ehYQ3RDGh9.mjs → DEorp4Rd9a565r_h.mjs} +1 -1
  39. package/browser/esm/{Dig0J4i2Urjl9Z--.mjs → DHvI-gSNOpEkZS0_.mjs} +4 -4
  40. package/browser/esm/{n91lwJODGYpl_0sb.mjs → DK4TrH-nckKO9Q9L.mjs} +1 -1
  41. package/browser/esm/{Cdr3G0s5DSG6bX6w.mjs → DMOlhSnOh4hHXiw0.mjs} +2 -2
  42. package/browser/esm/{C72RDqmHBctKx6yu.mjs → DQwg0nFQOuoWa9vC.mjs} +1 -1
  43. package/browser/esm/{CyUxX9cLgslryjv5.mjs → DVEcYvO4EkDBk4FX.mjs} +1 -1
  44. package/browser/esm/{D7kxhKOLn3UAkGzE.mjs → DdsrrZg_d16qXBaF.mjs} +2 -2
  45. package/browser/esm/{TfEcJxbuvenMTWzb.mjs → DhJgaHDvhGW9Q-Jd.mjs} +1 -1
  46. package/browser/esm/{DGIZQy_4rgYfRKUt.mjs → Dr-hrT0HVZs3fkdF.mjs} +2 -2
  47. package/browser/esm/{BQSJPoCxw_CbM_GB.mjs → Drjhq-zlZ3HTK_ZI.mjs} +2 -2
  48. package/browser/esm/{Sg5ukHMhDKaJmwC5.mjs → Dw7dYD6MrvZb3WPh.mjs} +4 -4
  49. package/browser/esm/{Cbj_GBiwqMbV7xNp.mjs → DzW551wAkGdUKn1f.mjs} +2 -2
  50. package/browser/esm/{DmqNGi-j-G64Ah3R.mjs → XSaSkbiadpjvNPF-.mjs} +2 -2
  51. package/browser/esm/index.mjs +2 -2
  52. package/browser/esm/{oJzTpcQBF382AsoK.mjs → q-qojAI33CqmRx77.mjs} +2 -2
  53. package/licenses/dependencies.txt +6 -6
  54. package/node/esm/{Cug20O7hGugaeSka.mjs → 0VUK_26rxW-1p-no.mjs} +2 -2
  55. package/node/esm/{B794OzAyQ2S3DUvE.mjs → B4Eo0tFRg7GybYQq.mjs} +1 -1
  56. package/node/esm/{CaySzQgftaLFVU-a.mjs → B6na2FpIb2N8_BII.mjs} +1 -1
  57. package/node/esm/{B9eTznHjWdKEfnmd.mjs → BCqh-sztmdgZm9pd.mjs} +1 -1
  58. package/node/esm/{dasEgLXLO2WWGkUm.mjs → BNhJrLEKwde0o2dg.mjs} +1 -1
  59. package/node/esm/{CwZUEv9f0ywDMV-Z.mjs → BQWO9jQkGVXLYnCK.mjs} +1 -1
  60. package/node/esm/{ILfHRiSFod9A2fKN.mjs → BUDeEhnsn9-yrQlE.mjs} +1 -1
  61. package/node/esm/{BA_RIYlnXvTDRdhy.mjs → BXZpU4qRYF5maAg0.mjs} +3 -3
  62. package/node/esm/{DXNmGNM6ItcTOZyo.mjs → BexDrSYf11he63De.mjs} +1 -1
  63. package/node/esm/{BBUuSB5DBjPGuwXm.mjs → BiU1UyUrEkNS9WeH.mjs} +1 -1
  64. package/node/esm/{BPAWh9TN2AA_qg8Q.mjs → C53eiTE5QbclOU-x.mjs} +1 -1
  65. package/node/esm/{D1aU9ydYjq7iFVAr.mjs → C63AwhK2bi3nQ-qh.mjs} +1 -1
  66. package/node/esm/{BdXN9t5_NDfrKA2E.mjs → CJzMybL2SEMDl1Nw.mjs} +1 -1
  67. package/node/esm/{BX8ZbzM8Zfe_MtDJ.mjs → CKS2ltb4Bv_q8qad.mjs} +1 -1
  68. package/node/esm/{D4HUF8JC55LqF87u.mjs → CZtyxHtVSnQOWUIw.mjs} +5 -5
  69. package/node/esm/{D2gUK2WMUbCR0-Kw.mjs → CvxTDOd3lLLowV8Z.mjs} +1 -1
  70. package/node/esm/{DOC-LvGYDU9FpsDS.mjs → DQv4OOMysHEA_ih5.mjs} +1 -1
  71. package/node/esm/{CrwtN-27La5MZ9yI.mjs → D_wrbdHZwcqLBmob.mjs} +1 -1
  72. package/node/esm/{Djc-gCpBoXNpI6yL.mjs → Dca0ee8jhGRibBhk.mjs} +1 -1
  73. package/node/esm/{BWxdcvg2Tp0Ysth3.mjs → DpB6jqJa5heTZlo1.mjs} +1 -1
  74. package/node/esm/{D0fA-N8eAJVD4a_b.mjs → DrgN5wWkYF1hgIK3.mjs} +1 -1
  75. package/node/esm/{Sc5EyWF8aAI0xzOO.mjs → DuL4Zvdz5hbTWC1z.mjs} +3 -3
  76. package/node/esm/index.mjs +22 -11
  77. package/node/esm/{DY3eG9Mfo_-xsWGD.mjs → mEXgu7-CAzFc23RE.mjs} +1 -1
  78. package/package.json +8 -8
  79. package/browser/cjs/CkdT8JSum0WmJ7Tn.cjs +0 -87
@@ -1,87 +0,0 @@
1
- "use strict";/**
2
- * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.3.4
3
- *
4
- * (C) 2025-present SheetXL Inc. & Michael T. Ford
5
- * License: The license can be found at https://www.sheetxl.com/license.
6
- */const N=require("@sheetxl/sdk"),a=require("react/jsx-runtime"),s=require("react"),V=require("@mui/material"),an=require("@mui/icons-material"),Sd=require("react-dom/client"),eo=require("react-dom"),st=require("@mui/system"),Ki=require("@mui/styled-engine"),r7=require("@mui/utils");function uf(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const i0=uf(s);function i7(e){var t,n,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var r=e.length;for(t=0;t<r;t++)e[t]&&(n=i7(e[t]))&&(o&&(o+=" "),o+=n)}else for(n in e)e[n]&&(o&&(o+=" "),o+=n);return o}function Fn(){for(var e,t,n=0,o="",r=arguments.length;n<r;n++)(e=arguments[n])&&(t=i7(e))&&(o&&(o+=" "),o+=t);return o}const qn={TopLeft:"tl",Top:"t",TopRight:"tr",Left:"l",Center:"c",Right:"r",BottomLeft:"bl",Bottom:"b",BottomRight:"br"},bo="text/html",Dr="text/plain",Da="image/png",hf=Object.freeze({left:0,top:0}),pf=Object.freeze({left:0,top:0,bottom:0,right:0}),ff=Object.freeze({x:0,y:0,width:0,height:0}),yl=Object.freeze(Object.defineProperty({__proto__:null,EmptyBounds:ff,EmptyRect:pf,EmptyTopLeft:hf},Symbol.toStringTag,{value:"Module"})),w0="column",bl="row",mf=Object.freeze({colIndex:0,rowIndex:0}),gf=Object.freeze({colStart:0,rowStart:0,colEnd:0,rowEnd:0}),l7=(e,t)=>e.colStart===t.colStart?e.rowStart-t.rowStart:e.colStart-t.colStart,a7=(e,t)=>e.rowStart===t.rowStart?e.colStart-t.colStart:e.rowStart-t.rowStart,xf=(e,t)=>e.rowEnd===t.rowEnd?t.colEnd-e.colEnd:t.rowEnd-e.rowEnd,yf=(e,t)=>e.colEnd===t.colEnd?t.rowEnd-e.rowEnd:t.colEnd-e.colEnd,$2=(e,t)=>e.colIndex===t.colIndex?e.rowIndex-t.rowIndex:e.colIndex-t.colIndex,W2=(e,t)=>e.rowIndex===t.rowIndex?e.colIndex-t.colIndex:e.rowIndex-t.rowIndex,s7=(e=bl,t=!1)=>t?e!==w0?xf:yf:e!==w0?a7:l7,U2=(e,t)=>e===t||!(!e||!t)&&e.rowIndex===t.rowIndex&&e.colIndex===t.colIndex,uc=(e,t)=>e===t||!(!e||!t)&&e.rowStart===t.rowStart&&e.rowEnd===t.rowEnd&&e.colStart===t.colStart&&e.colEnd===t.colEnd,hc=(e,t)=>!(!e||!t||e.colStart>t.colEnd||t.colStart>e.colEnd||e.rowStart>t.rowEnd||t.rowStart>e.rowEnd),q2=(e,t)=>{if(e===t)return!0;if(!e||!t||e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(!uc(e[n],t[n]))return!1;return!0},r1=(e,t,n)=>{if(!e&&!t)return null;if(!e)return n?t:{...t};if(!t)return n?e:{...e};const o=Math.min(e.colStart,t.colStart),r=Math.min(e.rowStart,t.rowStart),i=Math.max(e.colEnd,t.colEnd),l=Math.max(e.rowEnd,t.rowEnd);let d=n;return d?(d.colStart=o,d.rowStart=r,d.colEnd=i,d.rowEnd=l):d={colStart:o,rowStart:r,colEnd:i,rowEnd:l},d},Z2=(e,t)=>{if(!t||t.length===0)return e;const n={...e};for(let o=0;o<t.length;o++){const r=t[o];hc(n,r)&&(n.rowStart=Math.min(n.rowStart,r.rowStart),n.colStart=Math.min(n.colStart,r.colStart),n.rowEnd=Math.max(n.rowEnd,r.rowEnd),n.colEnd=Math.max(n.colEnd,r.colEnd))}return n},bf=[null,null],vf=(e,t,n)=>{if(e[0].value===e[1].value)return t};function G2(e,t=2,n,o=bl,r){let i=[...e];if(t<=0||e.length<=1)return i;let l=o===w0,d=0,c=!1;do{const u=i.sort(s7(l?bl:w0));i=[],i.push(u[0]);const f=u.length;let p=0,h=u[0],m=h.colStart,g=h.rowStart,x=h.colEnd,y=h.rowEnd;for(let v=1;v<f;v++){const b=u[v];let C=!1;if(C=l?h&&g===b.rowStart&&y===b.rowEnd&&x+1===b.colStart:h&&m===b.colStart&&x===b.colEnd&&y+1===b.rowStart,C){let k={colStart:m,rowStart:g,colEnd:l?b.colEnd:x,rowEnd:l?y:b.rowEnd};if(h.value!==void 0&&(k.value=h.value),n){const _=r??[null,null];_[0]=h,_[1]=b,k=n(_,k,o)}if(k){i[p]=k,c=!0,h=k,m=h.colStart,g=h.rowStart,x=h.colEnd,y=h.rowEnd;continue}}i[++p]=b,h=b,m=h.colStart,g=h.rowStart,x=h.colEnd,y=h.rowEnd}d++,l=!l,d===1&&(c=!0)}while(d<t&&c&&i.length>1);return i}const Qn=Object.freeze(Object.defineProperty({__proto__:null,EmptyCell:mf,EmptyRange:gf,cellToRange:(e,t)=>{if(!e)return null;let n=t;return n||(n={...e},delete n.colIndex,delete n.rowIndex),n.colStart=e.colIndex??0,n.rowStart=e.rowIndex??0,n.colEnd=e.colIndex??0,n.rowEnd=e.rowIndex??0,n},columnFirstCellComparator:$2,columnFirstRangeComparator:l7,createCellComparator:(e=bl,t=!1)=>t?e!==w0?(n,o)=>n.rowIndex===o.rowIndex?o.colIndex-n.colIndex:o.rowIndex-n.rowIndex:(n,o)=>n.colIndex===o.colIndex?o.rowIndex-n.rowIndex:o.colIndex-n.colIndex:e!==w0?W2:$2,createConflatingRanges:(e,t=!1)=>{const n=[];let o,r,i=Number.MIN_SAFE_INTEGER,l=Number.MIN_SAFE_INTEGER;return{append:(d,c,u)=>{let f=!0;const p=u!==void 0;if(p){const g=e?e(r,u,t):r===u?u:void 0;g===void 0?f=!1:u=g}if(f&&c===l+1&&d===i)return t?o.rowEnd=c:o.colEnd=c,l=c,void(r=u);o&&n.push(o);const h=t?d:c,m=t?c:d;o={colStart:h,rowStart:m,colEnd:h,rowEnd:m},p&&(o.value=u),i=d,l=c,r=u},done:d=>(o&&(n.push(o),o=null),d?G2(n,3,d===!0?vf:d,t?w0:bl,bf):n)}},createRangeComparator:s7,defaultRange:(e,t,n)=>e?n?(n.colStart=e.colStart??t.colStart,n.rowStart=e.rowStart??t.rowStart,n.colEnd=e.colEnd??t.colEnd,n.rowEnd=e.rowEnd??t.rowEnd,n):{colStart:e.colStart??t.colStart,rowStart:e.rowStart??t.rowStart,colEnd:e.colEnd??t.colEnd,rowEnd:e.rowEnd??t.rowEnd}:t,extendRangeToIntersectingRanges:Z2,extendRangeToUnionRanges:(e,t)=>{if(!t||t.length===0)return e;let n=e,o=null;for(;!uc(n,o);)o=n,n=Z2(o,t);return n},indexOfCoords:(e,t)=>{const n={colStart:e.colIndex,rowStart:e.rowIndex,colEnd:e.colIndex,rowEnd:e.rowIndex};for(let o=t.length-1;o>=0;o--)if(hc(n,t[o]))return o;return-1},intersectRanges:(e,t,n)=>{if(!e)return n?t:{...t};if(!t)return n?e:{...e};if(!e&&!t||e.rowStart>t.rowEnd||e.rowEnd<t.rowStart||e.colStart>t.colEnd||e.colEnd<t.colStart)return null;const o=Math.max(e.colStart,t.colStart),r=Math.max(e.rowStart,t.rowStart),i=Math.min(e.colEnd,t.colEnd),l=Math.min(e.rowEnd,t.rowEnd);let d=n;return d?(d.colStart=o,d.rowStart=r,d.colEnd=i,d.rowEnd=l):d={colStart:o,rowStart:r,colEnd:i,rowEnd:l},d},isCellWithinRange:(e,t)=>!(!e||!t||e.rowIndex<t.rowStart||e.rowIndex>t.rowEnd||e.colIndex<t.colStart||e.colIndex>t.colEnd),isEqualCells:U2,isEqualRanges:uc,isEqualRangesArrays:q2,isEqualSelectionCoords:(e,t)=>e===t||!(!e||!t)&&e.rangeIndex===t.rangeIndex&&!!U2(e.cell,t.cell)&&q2(e.ranges,t.ranges),isRangeWithinRange:(e,t)=>!(e.rowStart<t.rowStart||e.rowEnd>t.rowEnd||e.colStart<t.colStart||e.colEnd>t.colEnd),isRangesIntersect:hc,isSingleCell:e=>!!e&&e.rowEnd===e.rowStart&&e.colStart===e.colEnd,isValidRange:e=>!(!e||typeof e.colStart!="number"||e.colStart<0||typeof e.colEnd!="number"||e.colEnd<e.colStart||typeof e.rowStart!="number"||e.rowStart<0||typeof e.rowEnd!="number"||e.rowEnd<e.rowStart),mergeRangedValues:G2,rowFirstCellComparator:W2,rowFirstRangeComparator:a7,sanitizeRange:e=>e?{colStart:e.colIndex??e.colStart??0,rowStart:e.rowIndex??e.rowStart??0,colEnd:e.colIndex??e.colEnd??0,rowEnd:e.rowIndex??e.rowEnd??0}:null,translateRange:(e,t=-e.rowStart,n=-e.colStart,o)=>o?(o.colStart=e.colStart+n,o.rowStart=e.rowStart+t,o.colEnd=e.colEnd+n,o.rowEnd=e.rowEnd+t,o):{colStart:e.colStart+n,rowStart:e.rowStart+t,colEnd:e.colEnd+n,rowEnd:e.rowEnd+t},unionRanges:r1,unionRangesArrays:(e,t,n)=>{if(!e||e.length===0)return null;if(e.length===1&&!t)return e[0];let o=e[0];for(let r=1;r<e.length;r++)o=r1(o,e[r],n);return t&&(o=r1(o,t,n)),o}},Symbol.toStringTag,{value:"Module"})),wf=typeof Symbol=="function"&&Symbol.for?Symbol.for("react.element"):60103;function Sf(e){return function(t){return!!t&&typeof t=="object"}(e)&&!function(t){const n=Object.prototype.toString.call(t);return n==="[object RegExp]"||n==="[object Date]"||t.$$typeof===wf}(e)}function Xi(e,t){return t.clone!==!1&&t.isMergeableObject(e)?E0((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}function Cf(e,t,n){return e.concat(t).map(function(o){return Xi(o,n)})}function K2(e){return Object.keys(e).concat((t=e,Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter(function(n){return Object.propertyIsEnumerable.call(t,n)}):[]));var t}function X2(e,t){try{return t in e}catch{return!1}}function E0(e,t,n){(n=n||{}).arrayMerge=n.arrayMerge||Cf,n.isMergeableObject=n.isMergeableObject||Sf,n.cloneUnlessOtherwiseSpecified=Xi;const o=Array.isArray(t);return o===Array.isArray(e)?o?n.arrayMerge(e,t,n):function(r,i,l){const d={};return l.isMergeableObject(r)&&K2(r).forEach(function(c){d[c]=Xi(r[c],l)}),K2(i).forEach(function(c){var u,f;X2(u=r,f=c)&&(!Object.hasOwnProperty.call(u,f)||!Object.propertyIsEnumerable.call(u,f))||(X2(r,c)&&l.isMergeableObject(i[c])?d[c]=function(p,h){if(!h.customMerge)return E0;const m=h.customMerge(p);return typeof m=="function"?m:E0}(c,l)(r[c],i[c],l):d[c]=Xi(i[c],l))}),d}(e,t,n):Xi(t,n)}E0.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(n,o){return E0(n,o,t)},{})};const kf=Object.freeze([]),Ef=Object.freeze({}),Y2=e=>e,La=()=>"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){let t=16*Math.random()|0;return(e==="x"?t:3&t|8).toString(16)}),c7=(e,t)=>e===t||!(!Array.isArray(e)||!Array.isArray(t)||e.length!==t.length)&&e.every((n,o)=>n===t[o]),Ti=e=>typeof e=="object"&&!Array.isArray(e)&&e!==null,d7=e=>typeof e!="object"||Array.isArray(e)||e===null?e:(Object.keys(e).forEach(function(t){e[t]&&typeof e[t]=="object"?d7(e[t]):e[t]!==null&&e[t]!==void 0||delete e[t],typeof e[t]=="object"&&Object.keys(e[t]).length===0&&delete e[t]}),Object.keys(e).length===0?null:e),_f=(e,t)=>!(e!==t&&!c7(e,t)&&!e.isEqual?.(t)),u7=(e,t,n=_f)=>{if(e==null||e===t)return null;if(!e||typeof e!="object"||Array.isArray(e)||e.isImmutable?.())return n(e,t)?null:e;const o=Object.keys(e);if(o.length===0)return null;let r=!1;for(let i=0;i<o.length;i++){const l=o[i];u7(e[l],t?.[l],n)===null&&(r=!0,delete e[l])}return r&&Object.keys(e).length===0?null:void 0},J2=typeof performance=="object"&&typeof performance.now=="function"?()=>performance.now():()=>Date.now(),Q2=e=>e==null,eu=(e,t)=>!(t.left>e.right||t.right<e.left||t.top>e.bottom||t.bottom<e.top),tu=!(typeof window>"u"||!window.document||!window.document.createElement),ko={Windows:"windows",MacOS:"macos",IOS:"ios",Linux:"linux",Android:"android",Safari:"safari",Firefox:"firefox",Node:"node",Unknown:"unknown"},vl=()=>{if(h7())return ko.Node;const e=globalThis.navigator!==void 0&&globalThis.navigator.userAgent?globalThis.navigator.userAgent.toLowerCase():"";return e?/(win32|win64|windows|wince)/i.test(e)?ko.Windows:/(macintosh|macintel|macppc|mac68k|macos)/i.test(e)?ko.MacOS:/(iphone|ipad|ipod)/i.test(e)?ko.IOS:/android/.test(e)?ko.Android:/linux/.test(e)?ko.Linux:/^((?!chrome|android|).)*safari/i.test(e)?ko.Safari:/^((?!chrome|android|Seamonkey).)*firefox/i.test(e)?ko.Firefox:ko.Unknown:ko.Unknown};function h7(){return typeof process<"u"&&process.release?.name==="node"||(typeof process<"u"&&process.browser,!1)}const nu=(e,t=!1)=>(document.hasFocus()||t)&&(e===document.activeElement||e?.contains(document.activeElement)),Lt=Object.freeze(Object.defineProperty({__proto__:null,EmptyArray:kf,EmptyObject:Ef,OSType:ko,arrayMove:function(e,t,n){const o=e.slice();return o.splice(n<0?o.length+n:n,0,o.splice(t,1)[0]),o},asNumber:e=>{const t=(n=>1*n)(e);return Number.isFinite(t)?t:0},camelToPrettyCase:e=>e.length===1?e.toUpperCase():e.replace(/([A-Z])/g," $1").replace(/^./,function(t){return t.toUpperCase()}).trim(),canUseDOM:tu,cancelTimeout:e=>{cancelAnimationFrame(e.id)},castToString:e=>e==null||e===void 0?"":typeof e!="string"?""+e:e,cloneObject:e=>Q2(e)?e:JSON.parse(JSON.stringify(e)),consoleWithNoSource:(...e)=>new Promise(t=>{setTimeout(()=>{Function("console.log.apply(console, arguments)").apply(null,e),t()})}),debounce:function(e,t=300,n=!1){let o,r,i,l,d=0;function c(){let f=Date.now()-d;f<t&&f>=0?o=setTimeout(c,t-f):(o=null,n||(l=e.apply(i,r),i=r=null))}t==null&&(t=100);const u=function(){i=globalThis,r=arguments,d=Date.now();var f=n&&!o;return o||(o=setTimeout(c,t)),f&&(l=e.apply(i,r),i=r=null),l};return u.clear=function(){o&&(clearTimeout(o),o=null)},u.flush=function(){o&&(l=e.apply(i,r),i=r=null,clearTimeout(o),o=null)},u},deepEqual:function e(t,n){if(t===n)return!0;if(t&&n&&typeof t=="object"&&typeof n=="object"){if(t.constructor!==n.constructor)return!1;let o,r,i;if(Array.isArray(t)){if(o=t.length,o!=n.length)return!1;for(r=o;r--!==0;)if(!e(t[r],n[r]))return!1;return!0}if(t instanceof Map&&n instanceof Map){if(t.size!==n.size)return!1;for(r of t.entries())if(!n.has(r[0]))return!1;for(r of t.entries())if(!e(r[1],n.get(r[0])))return!1;return!0}if(t instanceof Set&&n instanceof Set){if(t.size!==n.size)return!1;for(r of t.entries())if(!n.has(r[0]))return!1;return!0}if(ArrayBuffer.isView(t)&&ArrayBuffer.isView(n)){if(o=t.length,o!=n.length)return!1;for(r=o;r--!==0;)if(t[r]!==n[r])return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if(i=Object.keys(t),o=i.length,o!==Object.keys(n).length)return!1;for(r=o;r--!==0;)if(!Object.prototype.hasOwnProperty.call(n,i[r]))return!1;for(r=o;r--!==0;){let l=i[r];if(!(l==="_owner"&&t.$$typeof||e(t[l],n[l])))return!1}return!0}return t!=t&&n!=n},deepFreeze:function e(t){return Object.freeze(t),Object.keys(t).forEach(n=>{typeof t[n]!="object"||t[n]===null||Object.isFrozen(t[n])||e(t[n])}),t},deepMerge:E0,diffValues:(e,t)=>{const n={},o=Object.keys(t),r=o.length;for(let i=0;i<r;i++){const l=o[i];e[l]!==t[l]&&(e[l]===void 0?n[l]=t[l]:n[l]=e[l])}return Object.keys(n).length===0?null:n},findEqualOrGreater:function(e,t,n=Y2){let o=0,r=e.length-1;for(;o<=r;){let i=Math.floor((o+r)/2),l=n(e[i]);if(l===t)return i;l<t?o=i+1:r=i-1}return o},findEqualOrLesser:function(e,t,n=Y2){let o=e.length-1,r=0;for(;o>=r;){let i=Math.floor((o+r)/2),l=n(e[i]);if(l===t)return i;l>t?o=i-1:r=i+1}return o},findNextStep:(e,t=!0,n=15,o=10,r=400)=>{const i=Math.max(e-o,0)+(t?1:-1);return Math.min(r,Math[t?"ceil":"floor"](i/n)*n+o)},getDPI:()=>{let e=1;return typeof window=="object"&&(e=window.devicePixelRatio||1),e},getFromPath:(e,t)=>{const n=t.split(".");let o=e;for(let r=0;r<n.length;r++){const i=n[r];if(!o)return null;let l=o[i];if(typeof l=="function"&&(l=l.bind(o)()),!l||!Ti(l))return l;o=l}return o??null},getOS:vl,hasFocus:nu,isDefined:e=>e!=null,isEmpty:e=>e==null||e==="",isEqualArrays:c7,isEqualBounds:(e,t)=>e===t||!(e&&!t||t&&!e)&&e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height,isEqualObjectKeys:(e,t)=>{if(e===t)return!0;if(e&&!t||t&&!e)return!1;const n=Object.keys(e);if(n.length!==Object.keys(t).length)return!1;for(let o=0;o<n.length;o++)if(e[n[o]]!==t[n[o]])return!1;return!0},isNode:h7,isNullOrUndefined:Q2,isNumeric:e=>{const t=1*e;return Number.isFinite(t)&&typeof t=="number"},isObject:Ti,isPromiseLike:e=>!!e&&typeof e.then=="function",isRectInsideRect:(e,t)=>e.top>=t.top&&e.bottom<=t.bottom&&e.left>=t.left&&e.right<=t.right,isRectIntersect:eu,mergeContentful:(...e)=>{const t=e.length;if(t>0&&e[t-1]!==void 0&&!Ti(e[t-1]))return e[t-1];let n=e[0]||{};for(let o=1;o<t;o++)n=E0(n,e[o]||{},{arrayMerge:(r,i)=>[...i]});return n},nextTick:e=>{typeof window<"u"&&typeof window.requestAnimationFrame=="function"?window.requestAnimationFrame(()=>{e()}):(typeof setImmediate=="function"?setImmediate:setTimeout)(()=>{e()})},openFileDialog:(e="*.*")=>new Promise((t,n)=>{if(!tu)return void n("Unable to open dialog with no dom.");const o=document.createElement("input");o.type="file",o.accept=e;let r=null,i=!1;globalThis.addEventListener?.("focus",()=>{setTimeout(()=>{r||i||(i=!0,t(null))},1e3)},{once:!0,passive:!0}),o.onchange=()=>{if(r=o.files[0],r){if(i)return void console.warn("File open detected after faux cancel.",r);t(r)}},o.autofocus=!0,o.click()}),rafThrottle:e=>{let t,n=!1,o=function(){n=!1,e(t)};return function(r){t=r,t&&t.persist&&t.persist(),n||(n=!0,requestAnimationFrame(o))}},removeEmptyProperties:d7,removeEqualValues:u7,removeListenerAll:e=>{if(!e)return[];for(let t=0;t<e.length;t++)e[t]&&e[t]();return[]},requestTimeout:(e,t)=>{const n=J2(),o={id:requestAnimationFrame(function r(){J2()-n>=t?e.call(null):o.id=requestAnimationFrame(r)})};return o},roundAccurately:(e,t=0)=>{if(e==null||!isFinite(e))return null;const n=10**t;return Number(Math.round(e*n)/n)},setToPath:(e,t,n)=>{const o=t.split(".");let r=e;if(!r)throw new Error("Can not set path to a null path.");for(let i=0;r&&i<o.length-1;i++){const l=o[i];let d=r[l];if(d==null&&(d={},r[l]=d),!Ti(d))throw new Error("Can not set path to a non object path.");r=d}if(typeof n!="number"&&typeof n!="boolean"&&typeof n!="string"&&!Ti(n))throw new Error(`Can not set path to ${n} that is not a a supported primitive.`);return r[o[o.length-1]]=n,e},splitNumber:e=>{let t=Math.abs(e);if(isNaN(t)||!isFinite(e))return null;let n=0|t,o=t-n,r=0,i=0,l=1;if(o>5e-8)for(;i<8&&Math.abs(r/l-o)>5e-8;)i++,l*=10,r=Math.round(o*l);return{ip:Math.trunc(e),fp:r,ipLength:Math.ceil(Math.log10(n+1)),fpLength:i}},subtractRect:(e,t,n=!1)=>{if(!t)return[e];if(!eu(e,t))return[];const o=[];let r=e;const i=()=>{t.top>r.top&&t.top<r.bottom&&(o.push({...r,bottom:t.top}),r={...r,top:t.top})},l=()=>{t.bottom>r.top&&t.bottom<r.bottom&&(o.push({...r,top:t.bottom}),r={...r,bottom:t.bottom})},d=()=>{t.right>r.left&&t.right<r.right&&(o.push({...r,left:t.right}),r={...r,right:t.right})},c=()=>{t.left>r.left&&t.left<r.right&&(o.push({...r,right:t.left}),r={...r,left:t.left})};return n?(c(),d(),i(),l()):(i(),l(),d(),c()),o},textToKey:e=>e.replace(/[^a-zA-Z0-9]/g,"").toLowerCase(),throttle:function(e,t){let n=null;return(...o)=>{const r=Date.now();(!n||r-n>=t)&&(n=r,e(...o))}},toSafeJSON:function e(t){if(t===null||typeof t!="object")return t;if(typeof t.toJSON=="function")return t.toJSON();if(Array.isArray(t))return t.map(o=>e(o));if(typeof t.toString=="function"&&t.toString!==Object.prototype.toString)return t.toString();const n={};for(const o in t)t.hasOwnProperty(o)&&(n[o]=e(t[o]));return n},transpose:e=>{if(!e)return e;const t=e.length,n=e[0].length,o=[];for(let r=0;r<n;r++)o[r]=Array(t);for(let r=0;r<t;r++)for(let i=0;i<n;i++)o[i][r]=e[r][i];return o},uuidV4:La,validEnumValue:(e,t)=>{if(!Object.values(e).includes(t))throw new Error(`Invalid type: ${t??"null"}. Must be one of: ${Object.values(t).join(", ")}.`)},whenFocus:async(e,t=!1)=>new Promise(n=>{nu(e,t)?n(!0):e.addEventListener("focusin",()=>{n(!0)},{once:!0}),e.focus()})},Symbol.toStringTag,{value:"Module"}));Object.freeze(Object.defineProperty({__proto__:null,MESSAGE_ERROR_INVALID_ARG:e=>`Invalid argument: '${e}'.`},Symbol.toStringTag,{value:"Module"}));const p7=e=>{const t=new Uint8Array(e),n=t.byteLength;let o="";for(let r=0;r<n;r++)o+=String.fromCharCode(t[r]);if(typeof window<"u"&&typeof globalThis.btoa=="function")return globalThis.btoa(o);if(typeof Buffer<"u")return Buffer.from(o,"binary").toString("base64");throw new Error("Unsupported environment")},pc=e=>new Promise((t,n)=>{if(e)if(typeof FileReader<"u"){const o=new FileReader;o.onload=()=>{t(o.result)},o.onerror=()=>{n(o.error)},o.readAsText(e)}else if(typeof Buffer<"u"){const o=r=>Buffer.from(r).toString("utf-8");e.arrayBuffer().then(r=>{t(o(r))}).catch(r=>{n(r)})}else n(new Error("Unsupported environment"));else t("")}),Tf=Object.freeze(Object.defineProperty({__proto__:null,DEFAULT_MIME_TYPE:"*/*",arrayBufferToBase64:p7,base64ToArrayBuffer:e=>{const t=typeof window<"u"&&typeof globalThis.atob=="function"?globalThis.atob(e):Buffer.from(e,"base64").toString("binary"),n=t.length,o=new Uint8Array(n);for(let r=0;r<n;r++)o[r]=t.charCodeAt(r);return o.buffer},blobToString:pc},Symbol.toStringTag,{value:"Module"})),f7="data:image/png;base64,",m7="Unable to resolve image.",ou=e=>new Promise(async(t,n)=>{let o=null;try{o=new Image,o.src=e,o.addEventListener("load",function(){t({width:o.naturalWidth,height:o.naturalHeight})},{once:!0}),o.addEventListener("error",function(){URL.revokeObjectURL(e),n("Invalid Image")},{once:!0}),await o.decode("sync")}catch{o?.src&&URL.revokeObjectURL(o.src)}o||n(m7)}),i1="image/svg+xml";var ru,iu;Object.freeze(Object.defineProperty({__proto__:null,DATA_URL_PNG_PREFIX:f7,getImageDataUrl:(e,t=1)=>new Promise(async(n,o)=>{let r=null;try{r=new Image,r.src=e,r.addEventListener("load",function(){try{const i=document.createElement("canvas");i.width=r.naturalWidth,i.height=r.naturalHeight,i.getContext("2d").drawImage(r,0,0);const l=i.toDataURL("image/png",t);n({elemImg:r,dataUrl:l})}catch(i){URL.revokeObjectURL(e),o(i)}},{once:!0}),r.addEventListener("error",function(){URL.revokeObjectURL(e),o("Invalid Image")},{once:!0}),await r.decode("sync")}catch{r?.src&&URL.revokeObjectURL(r.src)}r||o(m7)}),loadImageDetails:async(e,t=null)=>{let n=null;const o=async()=>{try{const i=t??"image/*",l=URL.createObjectURL(new Blob([e],{type:i})),d=await ou(l);n={mimeType:i,naturalDimensions:d,asUrl:l}}catch{}},r=async()=>{try{const i=new TextDecoder().decode(e),l=URL.createObjectURL(new Blob([i],{type:i1})),d=await ou(l);n={mimeType:t??i1,naturalDimensions:d,asUrl:l,asSVGText:i}}catch{}};if(t===i1?await r():t.startsWith("image/")?await o():(await o(),n||await r()),!n)throw new Error("Failed to load image");return n}},Symbol.toStringTag,{value:"Module"})),(iu=ru||(ru={})).resolveTypedUpdates=(e,t,n,o)=>{if(e===null)return e;if(e===void 0)return o;let r=e;if(t?.shorthand){const c=t?.shorthand(e,n);c!==void 0&&(r=c)}if(r!==null&&t?.getSubType){const c=t.getSubType(r);c&&(t=c)}const i=t?.properties,l=t?.arrayType??!1;let d=r;if(t&&t.merge&&d&&o)d=t.merge(d,o,n);else if(!l&&i){const c=Object.keys({...r,...o});d=null;for(let u=0;u<c.length;u++){const f=c[u];let p,h=r[f];if(h!==void 0){const m=i[f];p=m?(0,iu.resolveTypedUpdates)(h,m,n,o?.[f]):h}else p=o?.[f];p!=null&&(d=d??{},d[f]=p)}}return d};let fc=class extends Error{constructor(e,t=null){super(e,t),this.name="ChainedError",this._cause=t}get cause(){return this._cause}};const lu=`The Safari browser does not support advanced copy and paste.
7
- Copy and paste will be limited to within the browser tab.
8
-
9
- Please use Chrome or Edge if external copy and paste is required.`,l1=`You do not have permissions to access the clipboard.
10
- All copy and paste operations will be limited to the browser tab.`,g7={Safari:`The Safari browser does not support advanced copy and paste.
11
- Copy and paste will be limited to within the browser tab.
12
-
13
- Please use Chrome or Edge if external copy and paste is required.`,Perms:l1,PermsWrite:vl()===ko.Safari?lu:l1,PermsRead:vl()===ko.Safari?lu:l1},a1=async()=>new Promise(e=>{document.hasFocus()?e():globalThis.addEventListener?.("focus",()=>{e()},{once:!0}),document.activeElement.focus?.()}),s1=async(e,t,n)=>{if(vl()===ko.Safari)return await n(new Error(g7.Safari));try{const o=async l=>{try{return await l()}catch(d){if(d.message?.includes("Document is not focused"))return!1;throw d}},r=await globalThis?.navigator?.permissions?.query({name:e,allowWithoutGesture:!0,allowWithoutSanitization:!0});let i=!1;if(r.state==="prompt"&&(i=await o(t)),i||r.state!=="granted"||(i=await t()),!i)return await n(new Error(r.state))}catch(o){return o.message==="No valid data on clipboard"||o.name==="DataError"?void 0:await n(o)}},x7=async e=>{try{return await e.read({unsanitized:[bo]})}catch{}return await e.read()},y7=async(e,t)=>{if(!e)return null;const n=await x7(e);let o=!1;for(let r=0;!o&&n&&r<n.length;r++)if(o=n[r].types.includes(t),o)return await n[r].getType(t);return o?void 0:null};if(!globalThis.ClipboardItem){const e=(n,o)=>new Blob([o],{type:n});class t{constructor(o,r){this._items={},this._types=Object.keys(o);const i={},l=Object.keys(o);for(let d=0;d<l.length;d++){const c=l[d];let u=o[c];i[c]=typeof u=="string"?e(c,u):u}this._items=i,this._presentationStyle=r?.presentationStyle??"unspecified"}get types(){return this._types}getType(o){return Promise.resolve(this._items[o])}supports(o){return!0}}globalThis.ClipboardItem=t}const Ya=async(e,t=bo)=>new Promise(async(n,o)=>{try{const r=await y7(e,t);if(r){const i=new FileReader;i.onload=()=>{n(i.result)},i.onerror=()=>{n("")},i.readAsText(r)}else n("")}catch(r){o(r)}}),mc=async(e,t=bo)=>{const n=await Ya(e,t);if(!n)return null;let o=null;try{o=new DOMParser().parseFromString(n,bo)}catch{console.warn("Can't parse html from clipboard.")}return o},jf=async e=>{e&&await e.writeText("")},Mf=y7,Rf=Ya,If=mc,wl="clipboard-uuid",P0="web text/uuid",au=e=>`<div style="display:none" ${wl}="${e}"/>`,Df=(e,t)=>{let n=null;try{const o=new DOMParser().parseFromString(t,bo);o.body.firstElementChild.setAttribute(wl,e),n=o.getElementsByTagName("body")[0].innerHTML}catch(o){console.warn("Can't embed uuid.",o)}return n},su=(e,t)=>{if(!t||!e)return!1;try{const n=t.querySelectorAll(`[${wl}="${e}"]`);if(n&&n.length===1)return!0;if(t.querySelector("parsererror"))throw new Error("We are unable to parse node");return!1}catch{return!1}};let si=class{constructor(e){if(e?.nativeClipboard===void 0||e?.nativeClipboard===!0)try{this._nativeClipboard=globalThis?.navigator.clipboard}catch{e?.nativeClipboard===!0&&console.warn("NativeClipboard option set to true but no native clipboard available.")}else this._nativeClipboard=e?.nativeClipboard===!1?null:e?.nativeClipboard;this._disableCheckOnFocus=e?.disableCheckOnFocus??!1,this._init()}async _checkForChanges(){this._nativeClipboard&&this._state&&!this._disableCheckOnFocus&&await s1("clipboard-read",async()=>{await a1();const e=await Ya(this._nativeClipboard,P0);if(!this._state||e&&e===this._state.uuid)return!0;const t=await mc(this._nativeClipboard,bo);return!this._state||(su(this._state.uuid,t)||this.clear(),!0)},async e=>{e?.message==="denied"||e.message?.includes("Document is not focused")||vl()===ko.Safari||console.warn("Unable to detect clipboard changes: ",e)})}_init(){const e=this;this._listeners=new Map,this._listenersCapture=new Map,this._state=null,this._nativeClipboard&&(this._onFocus=()=>{e._checkForChanges()},this._onBlur=()=>{globalThis.addEventListener?.("focus",e._onFocus,{once:!0})},globalThis.addEventListener?.("blur",this._onBlur),this._nativeClipboard.addEventListener("clipboardchange",t=>{e._checkForChanges()}))}async read(){if(!this._nativeClipboard)return this._state?.items??null;const e=this;return await s1("clipboard-read",async()=>{if(await a1(),this._state?.uuid){const t=await Ya(this._nativeClipboard,P0);if(t&&t===e._state.uuid)return!0;const n=await mc(this._nativeClipboard,bo);if(su(e._state?.uuid,n))return!0}return e._state={items:await x7(this._nativeClipboard),uuid:null,ref:null},this.dispatchEvent(new Event("clipboardread")),!0},async t=>{this.dispatchEvent(new Event("clipboarderrorread"))}),this._state?.items??[]}async write(e){return this._write({uuid:La(),items:e,ref:null})}async _write(e){if(!this._nativeClipboard)return this._state=e,this.dispatchEvent(new Event("clipboardwrite")),this.dispatchEvent(new Event("clipboardchange")),null;const t=this,n=[],o=e.uuid;let r=e.items??[];const i=()=>{t._state={uuid:o,ref:e.ref,items:n},t.dispatchEvent(new Event("clipboardwrite")),t.dispatchEvent(new Event("clipboardchange"))};await s1("clipboard-write",async()=>{await a1(),o&&r.length===0&&(r.push(new ClipboardItem({[P0]:new Blob([o],{type:P0})})),r.push(new ClipboardItem({[bo]:new Blob([au(o)],{type:bo})})));for(let l=0;l<Math.min(1,r.length);l++){const d=r[l];let c=d.types.indexOf(bo),u=null;if(c!==-1){const h=await d.getType(bo);u=await pc(h),u&&(u=Df(o,u))}if(!u&&d.types.includes(Dr)){const h=await d.getType(Dr);if(h){let m=null;typeof h=="string"?(console.warn("text as string",h),m=h):m=await pc(h),m&&(u=`<div ${wl}="${o}">${m}</div>`)}}if(!u&&d.types.includes(Da)){const h=await d.getType(Da),m=p7(await h.arrayBuffer());u=`<div ${wl}="${o}"><img src="${f7+m}"/></div>`}!u&&o&&(u=au(o));const f=new Blob([u??""],{type:bo}),p={};for(let h=0;h<d.types.length;h++){const m=d.types[h];p[m]=h===c?f:d.getType(m)}u&&c===-1&&(p[bo]=f),o&&(p[P0]=new Blob([o],{type:P0})),n.push(new ClipboardItem(p))}try{n&&n.length!==0?await this._nativeClipboard.write(n):await jf(this._nativeClipboard)}catch(l){l.message?.includes("Document is not focused")||console.warn("Unable to write to native clipboard: ",l)}return i(),!0},async l=>{this.dispatchEvent(new Event("clipboarderrorwrite")),i()})}async writeReference(e){if(!e)return void this.clear();let t=null;const n={};try{const r=await e.toText?.()??null;r&&(n[Dr]=new Blob([r??""],{type:Dr}))}catch(r){t=r}try{const r=await e.toHtml?.()??null;r&&(n[bo]=new Blob([r],{type:bo}))}catch(r){t=r,console.warn("export to html",r)}try{const r=await e.toImage?.()??null;r&&(n[Da]=r)}catch(r){t=r,console.warn("export to png",r)}const o=this._write({uuid:La(),ref:e,items:Object.keys(n).length>0?[new ClipboardItem(n)]:null});if(t)throw t;return o}clear(e=!1){this._state&&(this._state=null,e&&this._write({uuid:null,ref:null,items:null}),this.dispatchEvent(new Event("clipboardwrite")),this.dispatchEvent(new Event("clipboardchange")))}async readReference(){return await this.read(),this._state?.ref??null}readText(){return new Promise(async(e,t)=>{const n=await this.read();let o=null;for(let i=0;!o&&n&&i<n.length;i++)n[i].types.includes(Dr)&&(o=await n[i].getType(Dr));if(!o)return void e("");const r=new FileReader;r.onload=()=>{e(r.result)},r.readAsText(o),r.onerror=i=>{t(i)}})}async writeText(e){const t=[new ClipboardItem({[Dr]:new Blob([e],{type:Dr})})];return this._write({uuid:La(),items:t,ref:null})}addEventListener(e,t,n={}){const o=n?.capture?this._listenersCapture:this._listeners;let r=o.get(e);r||(r=new Map,o.set(e,r)),r.set(t,typeof n=="boolean"?{}:n)}dispatchEvent(e){if(!e)return;const t=n=>{const o=n.get(e.type);o&&o.forEach((r,i)=>{try{typeof i=="function"?i(e):i.handleEvent&&i.handleEvent(e),r.once&&o.delete(i)}catch(l){console.warn(l)}})};return t(this._listenersCapture),t(this._listeners),!0}removeEventListener(e,t,n){const o=n?.capture?this._listenersCapture:this._listeners,r=o.get(e);r&&(r.delete(t),r.size===0&&o.delete(e))}close(){globalThis.removeEventListener?.("focus",this._onFocus),globalThis.removeEventListener?.("blur",this._onBlur)}};var c1;(c1=si||(si={})).ErrorMessages=g7,c1.Global=new c1,function(){try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode("._sheetxl-scrollbar_eblx4_6 ::-webkit-scrollbar-button{background:transparent}._fullscreen-portal-root_1mjsr_4{pointer-events:none;position:absolute;inset:0;width:100%;height:100%;z-index:1200}._fullscreen-portal-root_1mjsr_4>*{pointer-events:auto}")),document.head.appendChild(e)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}}();const Lf="left",je={Shift:"shift",Alt:"alt",Ctrl:"ctrl",Meta:"meta"},Nt={Tab:9,Enter:13,Escape:27,Space:32,End:35,Home:36,Left:37,Up:38,Right:39,Down:40,Delete:46,F1:112,F2:113},b7=3,fo={Horizontal:"horizontal",Vertical:"vertical"};function v7(e){var t,n,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var r=e.length;for(t=0;t<r;t++)e[t]&&(n=v7(e[t]))&&(o&&(o+=" "),o+=n)}else for(n in e)e[n]&&(o&&(o+=" "),o+=n);return o}function U0(){for(var e,t,n=0,o="",r=arguments.length;n<r;n++)(e=arguments[n])&&(t=v7(e))&&(o&&(o+=" "),o+=t);return o}var Of=function(){},w7=typeof window<"u",Pf=w7?s.useLayoutEffect:s.useEffect,cu={x:0,y:0,width:0,height:0,top:0,left:0,bottom:0,right:0};const _0=w7&&window.ResizeObserver!==void 0?function(){var e=s.useState(null),t=e[0],n=e[1],o=s.useState(cu),r=o[0],i=o[1],l=s.useMemo(function(){return new window.ResizeObserver(function(d){if(d[0]){var c=d[0].contentRect,u=c.x,f=c.y,p=c.width,h=c.height,m=c.top,g=c.left,x=c.bottom,y=c.right;i({x:u,y:f,width:p,height:h,top:m,left:g,bottom:x,right:y})}})},[]);return Pf(function(){if(t)return l.observe(t),function(){l.disconnect()}},[t]),[n,r]}:function(){return[Of,cu]},me=(e,t)=>{const n=s.useCallback((...i)=>e?.(...i),t),o=s.useRef(null);o.current=n;const r=s.useCallback((...i)=>o.current?.(...i),[]);if(o.current)return r},S7=e=>{const{style:t,orientation:n=fo.Vertical,...o}=e,r=n===fo.Vertical;return a.jsx("div",{style:{paddingBottom:"0px",paddingRight:"0px",paddingLeft:r?"0px":"3px",paddingTop:r?"3px":"0px",display:"flex",alignItems:"center",justifyContent:"center",...t},...o,children:a.jsx("button",{style:{padding:"0",display:"flex",alignItems:"center",justifyContent:"center",border:"none"},className:`scrollbar-button ${r?"vertical":"horizontal"} single-button start`,children:a.jsx("svg",{width:"9",height:"9",viewBox:"0 0 6 6",style:{opacity:"inherit"},children:a.jsx("path",{d:r?"m 3.7274761,0.68060577 1.11969,1.93863003 1.12075,1.93912 c 0.0895,0.155 0.12152,0.33658 0.0904,0.51283 -0.0311,0.17625 -0.12336,0.33591 -0.26054,0.45091 -0.13715,0.11495 -0.31044,0.17793 -0.4894,0.17781 H 0.83095614 c -0.20186,0 -0.39542,-0.0802 -0.53814,-0.2229 -0.14272,-0.14272 -0.22291,-0.33629 -0.22291,-0.53814 -3e-4,-0.13308 0.0347,-0.26385 0.10147,-0.379 l 1.11872996,-1.94066 1.11921,-1.93864003 c 0.13594,-0.23541 0.38717,-0.38047 0.65905,-0.38047 0.27188,0 0.52311,0.14506 0.65905,0.38047 z":"m 0.75051,2.3424298 1.93863,-1.11969 1.93912,-1.12075 c 0.155,-0.0895 0.33658,-0.12152 0.51283,-0.0904 0.17625,0.0311 0.33591,0.12336 0.45091,0.26054 0.11495,0.13715 0.17793,0.31044 0.17781,0.4894 v 4.47742 c 0,0.20186 -0.0802,0.39542 -0.2229,0.53814 -0.14272,0.14272 -0.33629,0.22291 -0.53814,0.22291 -0.13308,3e-4 -0.26385,-0.0347 -0.379,-0.10147 L 2.68911,4.7797998 0.75047,3.6605898 C 0.51506,3.5246498 0.37,3.2734198 0.37,3.0015398 c 0,-0.27188 0.14506,-0.52311 0.38047,-0.65905 z"})})})})},C7=e=>{const{style:t,orientation:n=fo.Vertical,...o}=e,r=n===fo.Vertical;return a.jsx("div",{style:{paddingLeft:"0px",paddingTop:"0px",paddingRight:r?"0px":"3px",paddingBottom:r?"3px":"0px",display:"flex",alignItems:"center",justifyContent:"center",...t},...o,children:a.jsx("button",{style:{padding:"0",display:"flex",alignItems:"center",justifyContent:"center",border:"none"},className:`scrollbar-button ${r?"vertical":"horizontal"} single-button end`,children:a.jsx("svg",{width:"9",height:"9",viewBox:"0 0 6 6",style:{opacity:"inherit"},children:a.jsx("path",{d:r?"M 2.412334,5.319396 1.292644,3.3807659 0.17189405,1.4416459 c -0.0895,-0.155 -0.12152,-0.33658 -0.0904,-0.51282998 0.0311,-0.17625 0.12336,-0.33591 0.26054,-0.45091 0.13715,-0.11495 0.31044,-0.17793 0.4894,-0.17781 H 5.308854 c 0.20186,0 0.39542,0.0802 0.53814,0.2229 0.14272,0.14272 0.22291,0.33629 0.22291,0.53813998 3e-4,0.13308 -0.0347,0.26385 -0.10147,0.379 l -1.11873,1.94066 -1.11921,1.9386401 c -0.13594,0.23541 -0.38717,0.38047 -0.65905,0.38047 -0.27188,0 -0.52311,-0.14506 -0.65905,-0.38047 z":"m 5.3893002,3.6575719 -1.9386301,1.11969 -1.93912,1.12075 c -0.155,0.0895 -0.33658,0.12152 -0.51282997,0.0904 -0.17625,-0.0311 -0.33591,-0.12336 -0.45091,-0.26054 -0.11495,-0.13715 -0.17793,-0.31044 -0.17781,-0.4894 V 0.76105195 c 0,-0.20186 0.0802,-0.39542 0.2229,-0.53814 C 0.73562013,0.08019195 0.92919013,1.9467784e-6 1.1310401,1.9467784e-6 1.2641201,-2.9805322e-4 1.3948901,0.03470195 1.5100401,0.10147195 l 1.94066,1.11872995 1.9386401,1.11921 c 0.23541,0.13594 0.38047,0.38717 0.38047,0.65905 0,0.27188 -0.14506,0.52311 -0.38047,0.65905 z"})})})})},Af=e=>{const{style:t,orientation:n=fo.Vertical,...o}=e,r=n===fo.Vertical;return a.jsx("div",{style:{display:"flex",justifyContent:"center",alignItems:"end",transition:"fill-opacity 1s",zIndex:1,width:"24px",height:"24px",...t},className:`scrollbar-button ${r?"vertical":"horizontal"} edge`,...o,children:a.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",transform:r?"rotate(90) ":"",children:a.jsx("path",{style:{transition:"opacity 240ms ease 0s",opacity:e.disabled?0:1},d:"M6 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m12 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m-6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2"})})})},gc=(e,t,n,o,r=0)=>{for(let i=0;i<n.length;i++){const l=n[i].getBoundingClientRect();let d=l.left-t,c=d+l.width;if(o){if(d<e&&c>=e)return d}else if(Math.ceil(c)>Math.ceil(e)+2)return c}return r},du=Object.freeze(Object.defineProperty({__proto__:null,getScrollTo:gc},Symbol.toStringTag,{value:"Module"})),Cd=s.memo(s.forwardRef((e,t)=>{const{offset:n=0,totalSize:o=0,viewportSize:r=0,style:i,className:l,orientation:d=fo.Vertical,onScrollOffset:c,onScroll:u,showCustomScrollButtons:f=!1,scrollButtonIncrement:p=200,scrollButtonInitialRepeatDelay:h=260,scrollButtonAdditionalRepeatDelay:m=120,createScrollStartButton:g=S7,createScrollEndButton:x=C7,...y}=e,v=me(u,[u]),b=s.useRef(null),[C,{width:k,height:_}]=_0(),[I,{width:M,height:F}]=_0(),j=d===fo.Vertical,T=j?"top":"left",w=j?"scrollTop":"scrollLeft",S=j?_:k,D=j?F:M,[E,R]=s.useState(null);s.useEffect(()=>{E!==null&&b.current&&b.current.scrollTo({behavior:"smooth",[T]:E})},[E,j]);const A=s.useCallback((B,Z=!1)=>{if(!b.current)return 0;const G=b.current.querySelector(".scrollbar-viewport"),ie=G.getBoundingClientRect(),ee=G.children,le=Z?0:gc(B,ie[T],ee,!0,Math.max(0,B-p));return R(le),Math.max(0,le)},[]),L=s.useCallback((B,Z=!1)=>{if(!b.current)return 0;const G=b.current.querySelector(".scrollbar-viewport"),ie=G.getBoundingClientRect(),ee=G.children,le=Math.ceil(D-S),ue=Z?le:gc(B,ie[T],ee,!1,Math.max(0,B+p));return R(ue),Math.min(le,ue)},[D,S]),P=s.useRef(null),z=s.useCallback(B=>{P.current=n;const Z=B.target[w];c(Z,r,o),v?.(B)},[c,r,o,n]);s.useEffect(()=>{const B=P.current;P.current=null,n!==B&&(b.current[w]=n)},[n,w]);const U=s.useRef(null),O=s.useRef(null),q=s.useCallback(()=>{U.current&&(clearTimeout(U.current),U.current=null,O.current=null)},[]),X=s.useCallback((B,Z,G,ie=h)=>{O.current=B,U.current=setTimeout(()=>{const ee=G?A(O.current||B):L(O.current||B);ee!==O.current?X(ee,!1,G,m):q()},Z?0:ie)},[A,L,q]);s.useEffect(()=>()=>q(),[q]);const re=n,$=s.useMemo(()=>{if(!f)return null;const B={orientation:d,disabled:Math.floor(re)<=0||Math.floor(D-S)===0,onMouseUp:q,onMouseLeave:q,onMouseDown:()=>X(re,!0,!0)};return g?.(B)},[f,d,re,E,D,S]),W=s.useMemo(()=>{if(!f)return null;const B={orientation:d,disabled:Math.floor(D-S)<=Math.ceil(re),onMouseUp:q,onMouseLeave:q,onMouseDown:()=>X(re,!0,!1)};return x?.(B)},[f,d,re,E,D,S]);return a.jsxs("div",{ref:t,style:{display:"flex",flex:"1",flexDirection:j?"column":"row",padding:"0",...i},className:U0("_sheetxl-scrollbar_eblx4_6",l),...y,children:[$,a.jsx("div",{className:"pseudo-scrollbar",style:{flex:"1 1 100%",display:"flex",boxSizing:"content-box",flexDirection:j?"column":"row",justifyContent:"center",alignItems:"center"},ref:C,children:a.jsx("div",{tabIndex:-1,style:{flex:"1 1 100%",overflowY:j?"scroll":"hidden",overflowX:j?"hidden":"scroll",position:"relative",willChange:"transform"},onScroll:z,ref:b,children:a.jsx("div",{ref:I,style:{position:"absolute",height:j?o-r+(_??0):1,width:j?1:o-r+(k??0)},className:"scrollbar-viewport"})})}),W]})}));Cd.displayName="Scrollbar";let uu=Date.now,Yr={},Ff=1;const ji=e=>{let t=Yr[e]!==null;return t&&(Yr[e]=null),t},hu=(e,t,n,o=0,r)=>{let i=uu(),l=i,d=0,c=0,u=Ff++;if(u%20==0){const p={};for(let h in Yr)p[h]=!0;Yr=p}const f=function(p){const h=p!==!0,m=uu();if(!Yr[u]||t&&!t(u))return Yr[u]=null,void n(60-c/((m-i)/1e3),u,!1);if(h){const x=Math.round((m-l)/16.666666666666668)-1;for(let y=0;y<Math.min(x,4);y++)f(!0),c++}o&&(d=(m-i)/o,d>1&&(d=1));const g=r?r(d):d;e(g,m,h)!==!1&&d!==1||!h?h&&(l=m,requestAnimationFrame(f)):(Yr[u]=null,n(60-c/((m-i)/1e3),u,d===1||o===void 0))};return Yr[u]=!0,requestAnimationFrame(f),u};var zf=function(){},Bf=function(e){return Math.pow(e-1,3)+1},Nf=function(e){return(e/=.5)<1?.5*Math.pow(e,3):.5*(Math.pow(e-2,3)+2)},k7=function(e,t){for(var n in this.__callback=e,this.options={scrollingX:!0,scrollingY:!0,animating:!0,animationDuration:250,bouncing:!0,locking:!0,paging:!1,snapping:!1,zooming:!1,minZoom:.5,maxZoom:3,speedMultiplier:1,scrollingComplete:zf,penetrationDeceleration:.03,penetrationAcceleration:.08},t)this.options[n]=t[n]};k7.prototype={__isSingleTouch:!1,__isTracking:!1,__didDecelerationComplete:!1,__isGesturing:!1,__isDragging:!1,__isDecelerating:!1,__isAnimating:!1,__clientLeft:0,__clientTop:0,__clientWidth:0,__clientHeight:0,__contentWidth:0,__contentHeight:0,__snapWidth:100,__snapHeight:100,__zoomLevel:1,__scrollLeft:0,__scrollTop:0,__maxScrollLeft:0,__maxScrollTop:0,__scheduledLeft:0,__scheduledTop:0,__scheduledZoom:0,__lastTouchLeft:null,__lastTouchTop:null,__lastTouchMove:null,__positions:null,__minDecelerationScrollLeft:null,__minDecelerationScrollTop:null,__maxDecelerationScrollLeft:null,__maxDecelerationScrollTop:null,__decelerationVelocityX:null,__decelerationVelocityY:null,setDimensions:function(e,t,n,o){e!==null&&(this.__clientWidth=e),t!==null&&(this.__clientHeight=t),n!==null&&(this.__contentWidth=n),o!==null&&(this.__contentHeight=o),this.__computeScrollMax(),this.scrollTo(this.__scrollLeft,this.__scrollTop,!0)},setPosition:function(e,t){this.__clientLeft=e||0,this.__clientTop=t||0},setSnapSize:function(e,t){this.__snapWidth=e,this.__snapHeight=t},getValues:function(){return{left:this.__scrollLeft,top:this.__scrollTop,right:this.__scrollLeft+this.__clientWidth/this.__zoomLevel,bottom:this.__scrollTop+this.__clientHeight/this.__zoomLevel,zoom:this.__zoomLevel}},getPoint:function(e,t){var n=this.getValues();return{left:e/n.zoom,top:t/n.zoom}},getScrollMax:function(){return{left:this.__maxScrollLeft,top:this.__maxScrollTop}},zoomTo:function(e,t,n,o,r){if(!this.options.zooming)throw new Error("Zooming is not enabled!");r&&(this.__zoomComplete=r),this.__isDecelerating&&(ji(this.__isDecelerating),this.__isDecelerating=!1);var i=this.__zoomLevel;n===void 0&&(n=this.__clientWidth/2),o===void 0&&(o=this.__clientHeight/2),e=Math.max(Math.min(e,this.options.maxZoom),this.options.minZoom),this.__computeScrollMax(e);var l=e/i,d=l*(this.__scrollLeft+n)-n,c=l*(this.__scrollTop+o)-o;d>this.__maxScrollLeft?d=this.__maxScrollLeft:d<0&&(d=0),c>this.__maxScrollTop?c=this.__maxScrollTop:c<0&&(c=0),this.__publish(d,c,e,t)},zoomBy:function(e,t,n,o,r){this.zoomTo(this.__zoomLevel*e,t,n,o,r)},scrollTo:function(e,t,n,o){if(this.__isDecelerating&&(ji(this.__isDecelerating),this.__isDecelerating=!1),o!==void 0&&o!==this.__zoomLevel){if(!this.options.zooming)throw new Error("Zooming is not enabled!");e*=o,t*=o,this.__computeScrollMax(o)}else o=this.__zoomLevel;this.options.scrollingX?this.options.paging?e=Math.round(e/this.__clientWidth)*this.__clientWidth:this.options.snapping&&(e=Math.round(e/this.__snapWidth)*this.__snapWidth):e=this.__scrollLeft,this.options.scrollingY?this.options.paging?t=Math.round(t/this.__clientHeight)*this.__clientHeight:this.options.snapping&&(t=Math.round(t/this.__snapHeight)*this.__snapHeight):t=this.__scrollTop,e=Math.max(Math.min(this.__maxScrollLeft,e),0),t=Math.max(Math.min(this.__maxScrollTop,t),0),e===this.__scrollLeft&&t===this.__scrollTop&&(n=!1),this.__publish(e,t,o,n)},scrollBy:function(e,t,n){var o=this.__isAnimating?this.__scheduledLeft:this.__scrollLeft,r=this.__isAnimating?this.__scheduledTop:this.__scrollTop;this.scrollTo(o+(e||0),r+(t||0),n)},doMouseZoom:function(e,t,n,o){var r=e>0?.97:1.03;return this.zoomTo(this.__zoomLevel*r,!1,n-this.__clientLeft,o-this.__clientTop)},doTouchStart:function(e,t){if(e.length===void 0)throw new Error("Invalid touch list: "+e);if(t instanceof Date&&(t=t.valueOf()),typeof t!="number")throw new Error("Invalid timestamp value: "+t);var n,o;this.__interruptedAnimation=!0,this.__isDecelerating&&(ji(this.__isDecelerating),this.__isDecelerating=!1,this.__interruptedAnimation=!0),this.__isAnimating&&(ji(this.__isAnimating),this.__isAnimating=!1,this.__interruptedAnimation=!0);var r=e.length===1;r?(n=e[0].pageX,o=e[0].pageY):(n=Math.abs(e[0].pageX+e[1].pageX)/2,o=Math.abs(e[0].pageY+e[1].pageY)/2),this.__initialTouchLeft=n,this.__initialTouchTop=o,this.__zoomLevelStart=this.__zoomLevel,this.__lastTouchLeft=n,this.__lastTouchTop=o,this.__lastTouchMove=t,this.__lastScale=1,this.__enableScrollX=!r&&this.options.scrollingX,this.__enableScrollY=!r&&this.options.scrollingY,this.__isTracking=!0,this.__didDecelerationComplete=!1,this.__isDragging=!r,this.__isSingleTouch=r,this.__positions=[]},doTouchMove:function(e,t,n){if(e.length===void 0)throw new Error("Invalid touch list: "+e);if(t instanceof Date&&(t=t.valueOf()),typeof t!="number")throw new Error("Invalid timestamp value: "+t);if(this.__isTracking){var o,r;e.length===2?(o=Math.abs(e[0].pageX+e[1].pageX)/2,r=Math.abs(e[0].pageY+e[1].pageY)/2):(o=e[0].pageX,r=e[0].pageY);var i=this.__positions;if(this.__isDragging){var l=o-this.__lastTouchLeft,d=r-this.__lastTouchTop,c=this.__scrollLeft,u=this.__scrollTop,f=this.__zoomLevel;if(n!==void 0&&this.options.zooming){var p=f;if(f=f/this.__lastScale*n,p!==(f=Math.max(Math.min(f,this.options.maxZoom),this.options.minZoom))){var h=o-this.__clientLeft,m=r-this.__clientTop;c=(h+c)*f/p-h,u=(m+u)*f/p-m,this.__computeScrollMax(f)}}if(this.__enableScrollX){c-=l*this.options.speedMultiplier;var g=this.__maxScrollLeft;(c>g||c<0)&&(this.options.bouncing?c+=l/2*this.options.speedMultiplier:c=c>g?g:0)}if(this.__enableScrollY){u-=d*this.options.speedMultiplier;var x=this.__maxScrollTop;(u>x||u<0)&&(this.options.bouncing?u+=d/2*this.options.speedMultiplier:u=u>x?x:0)}i.length>60&&i.splice(0,30),i.push(c,u,t),this.__publish(c,u,f)}else{var y=this.options.locking?3:0,v=Math.abs(o-this.__initialTouchLeft),b=Math.abs(r-this.__initialTouchTop);this.__enableScrollX=this.options.scrollingX&&v>=y,this.__enableScrollY=this.options.scrollingY&&b>=y,i.push(this.__scrollLeft,this.__scrollTop,t),this.__isDragging=(this.__enableScrollX||this.__enableScrollY)&&(v>=5||b>=5),this.__isDragging&&(this.__interruptedAnimation=!1)}this.__lastTouchLeft=o,this.__lastTouchTop=r,this.__lastTouchMove=t,this.__lastScale=n}},doTouchEnd:function(e){if(e instanceof Date&&(e=e.valueOf()),typeof e!="number")throw new Error("Invalid timestamp value: "+e);if(this.__isTracking){if(this.__isTracking=!1,this.__isDragging)if(this.__isDragging=!1,this.__isSingleTouch&&this.options.animating&&e-this.__lastTouchMove<=100){for(var t=this.__positions,n=t.length-1,o=n,r=n;r>0&&t[r]>this.__lastTouchMove-100;r-=3)o=r;if(o!==n){var i=t[n]-t[o],l=this.__scrollLeft-t[o-2],d=this.__scrollTop-t[o-1];this.__decelerationVelocityX=l/i*(1e3/60),this.__decelerationVelocityY=d/i*(1e3/60);var c=this.options.paging||this.options.snapping?4:1;(Math.abs(this.__decelerationVelocityX)>c||Math.abs(this.__decelerationVelocityY)>c)&&this.__startDeceleration(e)}else this.options.scrollingComplete()}else e-this.__lastTouchMove>100&&this.options.scrollingComplete();this.__isDecelerating||((this.__interruptedAnimation||this.__isDragging)&&this.options.scrollingComplete(),this.scrollTo(this.__scrollLeft,this.__scrollTop,!0,this.__zoomLevel)),this.__positions.length=0}},__publish:function(e,t,n,o){var r=this.__isAnimating;if(r&&(ji(r),this.__isAnimating=!1),o&&this.options.animating){this.__scheduledLeft=e,this.__scheduledTop=t,this.__scheduledZoom=n;var i=this.__scrollLeft,l=this.__scrollTop,d=this.__zoomLevel,c=e-i,u=t-l,f=n-d,p=function(g,x,y){y&&(this.__scrollLeft=i+c*g,this.__scrollTop=l+u*g,this.__zoomLevel=d+f*g,this.__callback&&this.__callback(this.__scrollLeft,this.__scrollTop,this.__zoomLevel))}.bind(this),h=function(g){return this.__isAnimating===g}.bind(this),m=function(g,x,y){x===this.__isAnimating&&(this.__isAnimating=!1),(this.__didDecelerationComplete||y)&&this.options.scrollingComplete(),this.options.zooming&&(this.__computeScrollMax(),this.__zoomComplete&&(this.__zoomComplete(),this.__zoomComplete=null))}.bind(this);this.__isAnimating=hu(p,h,m,this.options.animationDuration,r?Bf:Nf)}else this.__scheduledLeft=this.__scrollLeft=e,this.__scheduledTop=this.__scrollTop=t,this.__scheduledZoom=this.__zoomLevel=n,this.__callback&&this.__callback(e,t,n),this.options.zooming&&(this.__computeScrollMax(),this.__zoomComplete&&(this.__zoomComplete(),this.__zoomComplete=null))},__computeScrollMax:function(e){e===void 0&&(e=this.__zoomLevel),this.__maxScrollLeft=Math.max(this.__contentWidth*e-this.__clientWidth,0),this.__maxScrollTop=Math.max(this.__contentHeight*e-this.__clientHeight,0)},__startDeceleration:function(e){if(this.options.paging){var t=Math.max(Math.min(this.__scrollLeft,this.__maxScrollLeft),0),n=Math.max(Math.min(this.__scrollTop,this.__maxScrollTop),0),o=this.__clientWidth,r=this.__clientHeight;this.__minDecelerationScrollLeft=Math.floor(t/o)*o,this.__minDecelerationScrollTop=Math.floor(n/r)*r,this.__maxDecelerationScrollLeft=Math.ceil(t/o)*o,this.__maxDecelerationScrollTop=Math.ceil(n/r)*r}else this.__minDecelerationScrollLeft=0,this.__minDecelerationScrollTop=0,this.__maxDecelerationScrollLeft=this.__maxScrollLeft,this.__maxDecelerationScrollTop=this.__maxScrollTop;var i=function(u,f,p){this.__stepThroughDeceleration(p)}.bind(this),l=this.options.snapping?4:.1,d=function(){var u=Math.abs(this.__decelerationVelocityX)>=l||Math.abs(this.__decelerationVelocityY)>=l;return u||(this.__didDecelerationComplete=!0),u}.bind(this),c=function(u,f,p){this.__isDecelerating=!1,this.__didDecelerationComplete&&this.options.scrollingComplete(),this.scrollTo(this.__scrollLeft,this.__scrollTop,this.options.snapping)}.bind(this);this.__isDecelerating=hu(i,d,c)},__stepThroughDeceleration:function(e){var t=this.__scrollLeft+this.__decelerationVelocityX,n=this.__scrollTop+this.__decelerationVelocityY;if(!this.options.bouncing){var o=Math.max(Math.min(this.__maxDecelerationScrollLeft,t),this.__minDecelerationScrollLeft);o!==t&&(t=o,this.__decelerationVelocityX=0);var r=Math.max(Math.min(this.__maxDecelerationScrollTop,n),this.__minDecelerationScrollTop);r!==n&&(n=r,this.__decelerationVelocityY=0)}if(e?this.__publish(t,n,this.__zoomLevel):(this.__scrollLeft=t,this.__scrollTop=n),!this.options.paging&&(this.__decelerationVelocityX*=.95,this.__decelerationVelocityY*=.95),this.options.bouncing){var i=0,l=0,d=this.options.penetrationDeceleration,c=this.options.penetrationAcceleration;t<this.__minDecelerationScrollLeft?i=this.__minDecelerationScrollLeft-t:t>this.__maxDecelerationScrollLeft&&(i=this.__maxDecelerationScrollLeft-t),n<this.__minDecelerationScrollTop?l=this.__minDecelerationScrollTop-n:n>this.__maxDecelerationScrollTop&&(l=this.__maxDecelerationScrollTop-n),i!==0&&(i*this.__decelerationVelocityX<=0?this.__decelerationVelocityX+=i*d:this.__decelerationVelocityX=i*c),l!==0&&(l*this.__decelerationVelocityY<=0?this.__decelerationVelocityY+=l*d:this.__decelerationVelocityY=l*c)}}};var Vo=typeof window<"u"?window:{screen:{},navigator:{}},ci=(Vo.matchMedia||function(){return{matches:!1}}).bind(Vo),E7=!1,Vf={get passive(){return E7=!0}},pu=function(){};Vo.addEventListener&&Vo.addEventListener("p",pu,Vf),Vo.removeEventListener&&Vo.removeEventListener("p",pu,!1);var Hf=E7,$f="PointerEvent"in Vo,kd="ontouchstart"in Vo,_7=kd||"TouchEvent"in Vo&&ci("(any-pointer: coarse)").matches,fu=(Vo.navigator.maxTouchPoints||0)>0||_7,T7=Vo.navigator.userAgent||"",Wf=ci("(pointer: coarse)").matches&&/iPad|Macintosh/.test(T7)&&Math.min(Vo.screen.width||0,Vo.screen.height||0)>=768,j7=(ci("(pointer: coarse)").matches||!ci("(pointer: fine)").matches&&kd)&&!/Windows.*Firefox/.test(T7),Uf=ci("(any-pointer: fine)").matches||ci("(any-hover: hover)").matches||Wf||!kd,xc=!fu||!Uf&&j7?fu?"touchOnly":"mouseOnly":"hybrid",qf=xc==="mouseOnly"?"mouse":xc==="touchOnly"||j7?"touch":"mouse";const Zf=Object.freeze(Object.defineProperty({__proto__:null,deviceType:xc,primaryInput:qf,supportsPassiveEvents:Hf,supportsPointerEvents:$f,supportsTouchEvents:_7},Symbol.toStringTag,{value:"Module"})),Gf=new Set(["INPUT","TEXTAREA","SELECT"]),M7={};function yc(){return Zf}const R7=e=>e==="BracketLeft"?"[":e==="BracketRight"?"]":Lt.camelToPrettyCase(e),nn=Object.freeze(Object.defineProperty({__proto__:null,EmptyCssProperties:M7,boundPixel:function(e,t=!1,n=0){return e},createSyntheticEvent:e=>{let t=!1,n=!1;return{nativeEvent:e,currentTarget:e.currentTarget,target:e.target,bubbles:e.bubbles,cancelable:e.cancelable,defaultPrevented:e.defaultPrevented,eventPhase:e.eventPhase,isTrusted:e.isTrusted,preventDefault:()=>{t=!0,e.preventDefault()},isDefaultPrevented:()=>t,stopPropagation:()=>{n=!0,e.stopPropagation()},isPropagationStopped:()=>n,persist:()=>{},timeStamp:e.timeStamp,type:e.type}},detectIt:yc,focusableNodeNames:Gf,toPrettyKeyCode:R7},Symbol.toStringTag,{value:"Module"})),Kf=[];function so(e,t,n=Kf){const o=s.useRef(null);return s.useImperativeHandle(e,()=>{if(!o.current)return;const r=o.current,i=t?.();if(!i||typeof i!="object")throw new Error("attributes must return a plain object of values");const l=Object.keys(i),d=l.length;for(let c=0;c<d;c++){const u=l[c],f=i[u];Object.defineProperty(r,u,{value:f,writable:!0,configurable:!0,enumerable:!0})}return r},n),o}const mu=e=>a.jsx(Cd,{...e}),Xf=({width:e,height:t})=>a.jsx("div",{className:"corner",style:{minWidth:`${e}px`,width:`${e}px`,minHeight:`${t}px`,height:`${t}px`}}),Ed=s.memo(s.forwardRef((e,t)=>{const{children:n,viewport:o,onScrollViewport:r,showHorizontalScrollbar:i=!0,showVerticalScrollbar:l=!0,createScrollCorner:d=Xf,createHorizontalScrollbar:c=mu,createVerticalScrollbar:u=mu,style:f,touchElement:p,disableTouch:h,...m}=e,g=me(r,[r]),x=so(t,()=>({isScrollPane:()=>!0}),[]),y=s.useRef(null);s.useEffect(()=>{y.current&&(y.current.__scrollTop===o?.top&&y.current.__scrollLeft!==!o?.left||y.current?.scrollTo(o?.left,o?.top,!1))},[o?.left,o?.top,p]);const v=s.useCallback((S,D)=>{g?.({left:S,top:D})},[]),b=s.useCallback(S=>{y.current?.doTouchStart(S.touches,S.timeStamp)},[]),C=s.useCallback(S=>{S.preventDefault(),y.current?.doTouchMove(S.touches,S.timeStamp)},[]),k=s.useCallback(S=>{y.current?.doTouchEnd(S.timeStamp)},[]),_=s.useCallback(({containerWidth:S,containerHeight:D,totalWidth:E,totalHeight:R})=>{y.current.setDimensions(S,D,E,R)},[]);s.useEffect(()=>{const S=p??x.current;if(!h&&yc().supportsTouchEvents&&S&&o){if(!y.current){const D={scrollingX:!0,scrollingY:!0,decelerationRate:.95,penetrationAcceleration:.08};y.current=new k7(v,D)}yc().supportsTouchEvents&&(S.addEventListener("touchstart",b),S.addEventListener("touchend",k),S.addEventListener("touchmove",C)),_({containerWidth:o?.width,containerHeight:o?.height,totalWidth:o?.totalWidth,totalHeight:o?.totalHeight})}return()=>{S?.removeEventListener("touchstart",b),S?.removeEventListener("touchend",k),S?.removeEventListener("touchmove",C)}},[o?.width,o?.height,o?.totalWidth,o?.totalHeight,h,p]);const[I,{width:M}]=_0(),[F,{height:j}]=_0(),T=s.useMemo(()=>{const S=u({orientation:fo.Vertical,offset:o?.top,viewportSize:o?.height,totalSize:o?.totalHeight,onScrollOffset:D=>{g?.({top:D})}});return a.jsx("div",{style:{display:"flex",flex:"0"},ref:I,children:S})},[u,o?.top,o?.height,o?.totalHeight]),w=s.useMemo(()=>{const S=c({orientation:fo.Horizontal,offset:o?.left,viewportSize:o?.width,totalSize:o?.totalWidth,onScrollOffset:D=>g?.({left:D})});return a.jsxs("div",{style:{display:"flex",flex:"none",flexDirection:"row",alignItems:"stretch",justifyContent:"center"},children:[a.jsx("div",{style:{display:"flex",flex:"1 1 100%",flexDirection:"column",width:`calc(100% - ${M}px)`},children:a.jsx("div",{ref:F,className:"sizer",children:S})}),l?d({width:M,height:j}):a.jsx(a.Fragment,{})]})},[c,o?.left,o?.width,o?.totalWidth,l,d,M,j]);return a.jsx("div",{style:{position:"relative",display:"flex",minWidth:l?`${M}px`:void 0,minHeight:i?`${j}px`:void 0,...f},...m,ref:x,children:a.jsxs("div",{style:{position:"relative",width:"100%",flex:"1 1 100%",display:"flex",flexDirection:"column",boxSizing:"border-box"},children:[a.jsxs("div",{style:{display:"flex",flex:"1 1 100%",overflow:"hidden"},children:[a.jsx("div",{style:{display:"flex",flex:"1 1 100%",overflow:"hidden"},children:n}),l?T:a.jsx(a.Fragment,{})]}),i?w:a.jsx(a.Fragment,{})]})})}));Ed.displayName="ScrollPane";const jr={Error:"error",Warning:"warning",Info:"info"},gu=new Set,Ja={showMessage:(e,t)=>{if(t?.onceKey){if(gu.has(t.onceKey))return;gu.add(t.onceKey)}let n=console.log;t?.type!==jr.Warning&&t?.type!==jr.Error||(n=console.warn),n(e)},showBusy:(e,t)=>new Promise(n=>{n(()=>{})}),showError:e=>{console.error(e)}},Yf=()=>{const e=document.fullscreenElement;return e?e.querySelector(".fullscreen-portal-root")||e:document.body};let Ql=0;const Jf=100,Qf=100,em=1e6,tm=100,nm=50,I7=s.memo(s.forwardRef((e,t)=>{const{offset:n=0,viewportSize:o=0,totalSize:r=0,minSize:i=0,endGap:l=Jf,endScrollIncrement:d=Qf,style:c=M7,onMouseDown:u,onScrollOffset:f,onScroll:p,scaleLimit:h=em,scaleFactor:m=tm,precisionFactor:g=nm,...x}=e;p&&console.warn("onScroll not supported for VirtualScrollbar. Use onScrollOffset instead");const y=me(u,[u]),v=()=>({offset:n,totalSize:h===0?r:Math.min(r??0,Math.max(i??0,(n??0)+(o??0))+(l??0))}),[b,C]=s.useState(v),k=h!==0&&b.totalSize>h?m:1,_=k/g,I=Math.ceil(b.totalSize/k),M=Math.ceil(b.offset/k),F=Math.ceil(o/k),j=s.useCallback(A=>{},[]),[T,w]=s.useState(!1),S=s.useRef(null);s.useLayoutEffect(()=>{if(!T){S.current={propTotalSize:r,propViewportSize:o,propOffset:n};const A=v();C(A)}},[r,o,n,T,i,l,d]);const D=me((A,L,P)=>{const z=S.current;S.current=null,z&&z.propTotalSize===r&&z.propViewportSize===o&&z.propOffset===n||(Math.abs(A-M)<_&&(A=M),f?.(A*k,M,F))},[f,k,_,M,F]),E=s.useCallback(A=>{document.removeEventListener("mousemove",j),document.removeEventListener("mouseup",E),w(!1)},[]),R=s.useCallback(A=>{y?.(A),w(!0),document.addEventListener("mousemove",j,{passive:!0}),document.addEventListener("mouseup",E,{passive:!0})},[j,E]);return a.jsx(Cd,{ref:t,style:{...c},...x,offset:M,totalSize:I,viewportSize:F,onMouseDown:R,onScrollOffset:D})}));I7.displayName="VirtualScrollbar";const d1="bottom",om="left",bc="right",u1="top";function h1(e,t){if(typeof e=="function")return e(t);e&&(e.current=t)}var Qa=parseInt(s.version.split(".")[0],10)>=19?function(e){return t=>{const n=[];for(const o of e){const r=h1(o,t),i=typeof r=="function";n.push(i?r:()=>h1(o,null))}return()=>{for(const o of n)o()}}}:function(e){return t=>{for(const n of e)h1(n,t)}};s.memo(s.forwardRef((e,t)=>{const{refFocusStart:n,...o}=e,r=s.useRef(null),i=s.useCallback(()=>{if(n)return void n?.current?.focus();const l=r.current.parentElement.children;let d=[];for(let c=0;c<l.length&&l[c]!==r.current;c++){const u=l[c].getAttribute("tabindex");if(u==null||u==="-1"||l[c].getAttribute("disabled")==="true")continue;const f=l[c];f.focus&&d.push({tabindex:parseInt(u),child:f})}d.length!==0&&(d.sort(function(c,u){return c.tabindex-u.tabindex}),d[0].child.focus())},[n]);return a.jsx("div",{tabIndex:0,ref:Qa([r,t]),onFocus:i,...o})}));const rm=s.memo(s.forwardRef((e,t)=>{const{className:n,style:o,children:r,radius:i=4,strokeWidth:l=1,strokeColor:d="grey",...c}=e,[u,{width:f,height:p}]=_0(),h=s.useRef(null),m=(v,b=0)=>{const C=v/2,k=p-C+b;return function(_,I,M=!1){if(I===0)return _;function F(E,R,A){let L=R.x-E.x,P=R.y-E.y,z=Math.sqrt(L*L+P*P);return j(E,R,Math.min(1,A/z))}function j(E,R,A){return{x:E.x+(R.x-E.x)*A,y:E.y+(R.y-E.y)*A}}function T(E,R){E.length>2&&(E[E.length-2]=R.x,E[E.length-1]=R.y)}function w(E){return{x:parseFloat(E[E.length-2]),y:parseFloat(E[E.length-1])}}let S=_.split(/[,\s]/).reduce(function(E,R){let A=R.match("([a-zA-Z])(.+)");return A?(E.push(A[1]),E.push(A[2])):E.push(R),E},[]).reduce(function(E,R){return parseFloat(R)==R&&E.length?E[E.length-1].push(R):E.push([R]),E},[]),D=[];if(S.length>1){let E=w(S[0]),R=null;S[S.length-1][0]==="Z"&&S[0].length>2&&(R=["L",E.x,E.y],S[S.length-1]=R),D.push(S[0]);for(let A=1;A<S.length;A++){let L=D[D.length-1],P=S[A],z=P===R?S[1]:S[A+1];if(z&&L&&L.length>2&&P[0]==="L"&&z.length>2&&z[0]==="L"){let U,O,q=w(L),X=w(P),re=w(z);M?(U=j(X,L.origPoint||q,I),O=j(X,z.origPoint||re,I)):(U=F(X,q,I),O=F(X,re,I)),T(P,U),P.origPoint=X,D.push(P);let $=j(U,X,.5),W=j(X,O,.5),B=["C",$.x,$.y,W.x,W.y,O.x,O.y];B.origPoint=X,D.push(B)}else D.push(P)}if(R){let A=w(D[D.length-1]);D.push(["Z"]),T(D[0],A)}}else D=S;return D.reduce(function(E,R){return E+R.join(" ")+" "},"")}(`M 0 ${C} L ${i-.5} ${C} L ${i-.5} ${k} L ${2*i} ${k} L ${f-2*i} ${k} M ${f-2*i} ${k} L ${f-i} ${k} L ${f-i} ${C} L ${f} ${C}`,i)},g=s.useMemo(()=>m(l),[f,p,i,l]),x=s.useMemo(()=>{if(i===0)return;const v=i/2;return m(i)+`L ${f} 0 L 0 0 L 0 ${v}`},[g,i,l]),y=s.useMemo(()=>({style:{clipPath:`path('${x}')`}}),[x]);return a.jsxs("div",{className:n,style:{display:"flex",flexDirection:"row",...o},...c,ref:Qa([h,u,t]),children:[s.isValidElement(r)?s.cloneElement(r,y):a.jsx(a.Fragment,{}),a.jsx("svg",{style:{position:"absolute",top:0,left:0,pointerEvents:"none"},width:f,height:p,viewBox:`0 0 ${f} ${p}`,children:a.jsx("path",{d:g,stroke:d,fill:"none",vectorEffect:"non-scaling-stroke",strokeWidth:l})})]})})),im={},lm=e=>{const{onPointerDown:t,style:n,splitDirection:o,paddingBefore:r=0,paddingAfter:i=0,disabled:l,key:d,hitAreaProps:c=im,...u}=e,f=o==="row",{style:p,className:h,...m}=c;return a.jsx("div",{style:{...n,position:"relative"},...u,children:a.jsx("div",{className:U0("hit-box",h),style:{left:(f?-r:0)+"px",width:`calc(100% + ${f?r+i:0}px)`,top:(f?0:-r)+"px",height:`calc(100% + ${f?0:r+i}px)`,position:"absolute",...p},onPointerDown:l?void 0:t,...m})},d)},ea={},d0=(e,t,n=!0)=>e===null?null:e.pixels!==null?n?e.pixels:t-e.pixels:(n?e.percent:100-e.percent)/100*t,ta=(e,t=!0)=>e?.percent?`${t?e.percent:100-e.percent}%`:e?.pixels?`${e.pixels}px`:void 0,Vr=(e,t)=>{if(e==null)return null;const n={percent:null,pixels:null};let o=t;return typeof e=="string"&&((e=e.trim().toLowerCase()).endsWith("px")?(e=e.substring(0,e.length-2),o=!1):e.endsWith("%")&&(e=e.substring(0,e.length-1),o=!0),e=parseFloat(e)),o?n.percent=e:n.pixels=e,Object.freeze(n)},vc=s.memo(s.forwardRef((e,t)=>{const{elementBefore:n,elementAfter:o,splitDirection:r="row",fixedPane:i=null,position:l,onPositionChange:d,minBefore:c,maxBefore:u,minAfter:f,maxAfter:p,children:h,className:m,style:g,disabled:x=!1,onDragStart:y,onDragResize:v,onDragFinish:b,resizerProps:C=ea,paneProps:k=ea,paneBeforeProps:_=ea,paneAfterProps:I=ea,createResizer:M=lm}=e;if(h)throw new Error("Use elementBefore and elementAfter instead of children.");const F=s.useMemo(()=>s.isValidElement(o)&&s.isValidElement(n),[o,n]),j=s.useMemo(()=>{let H=null;i&&(i==="before"?H=0:i==="after"&&(H=1));const te=H===null;return{fixedPaneOffset:H,isPercent:te,minBefore:Vr(c,te),maxBefore:Vr(u,te),minAfter:Vr(f,te),maxAfter:Vr(p,te)}},[c,u,f,p]),T=me(d,[d]),[w,S]=s.useState(()=>Vr(l,i===null));s.useEffect(()=>{S(Vr(l,i===null))},[l,i]);const[D,{width:E,height:R}]=_0(),[A,{width:L,height:P}]=_0(),z=r==="row"?L:P,U=r==="row"?E:R,O=s.useMemo(()=>((H,te,ne,J)=>{const ae=[null,null],Q=[null,null];if(H||(H={percent:J.fixedPaneOffset===null?50:null,pixels:J.fixedPaneOffset===null?null:0}),te===0)return H?.pixels!=null?J.fixedPaneOffset!==1?(ae[0]=H?.pixels,Q[1]=100):(ae[1]=H?.pixels-ne,Q[0]=100):H?.percent!=null&&(J.fixedPaneOffset!==1?(Q[0]=H?.percent,Q[1]=100-H?.percent):(Q[1]=H?.percent,Q[0]=100-H?.percent)),{percents:Q,pixels:ae,minBefore:ta(J.minBefore,!0),maxBefore:ta(J.maxBefore,!0),minAfter:ta(J.minAfter),maxAfter:ta(J.maxAfter)};let pe=d0(H,te,J.fixedPaneOffset!==1),ge=te-ne,Ee=d0(J.minBefore,ge,!0)??0,Be=d0(J.maxBefore,ge,!0)??ge,Oe=0,Ie=0,Ze=0,Ne=ge;Oe=(d0(J.maxAfter,te,!1)??ne)-ne,Ie=d0(J.minAfter,te,!1)??te,Ze=Math.max(Ee,Oe),Ne=Math.min(Be,Ie),pe=Math.max(Ze,Math.min(pe,Ne)),Ie=Math.min(ge-pe,d0(J.maxAfter,ge-pe,!0)??ge),Oe=Math.min(ge-pe,d0(J.minAfter,ge-pe,!0)??ge),ae[0]=pe,ae[1]=ge-ae[0];const qe=Math.max(0,Math.min(100,pe/ge*100));return Q[0]=qe,Q[1]=100-Q[0],{percents:Q,pixels:ae,minBefore:`${Ee}px`,minAfter:`${Oe}px`,maxBefore:`${ae[0]}px`,maxAfter:`${ae[1]}px`}})(w,U,z,j),[j,w,U,z,r]),[q,X]=s.useState(!1),re=me(y,[y]),$=me(v,[v]),W=me(b,[b]),B=s.useRef(null),Z=s.useRef(null),G=s.useRef(null),{style:ie,className:ee,...le}=k,ue={minWidth:0,minHeight:0,maxWidth:"100%",maxHeight:"100%",display:"flex",overflow:"hidden",...ie},{className:de,style:oe,...fe}=_,{className:Te,style:Le,...ce}=I,he={flex:"1 1 100%",width:"100%",...g,flexDirection:r,display:"flex"},{className:we,style:Y,onPointerDown:ze,...ht}=C,ut=me(H=>{const te=Vr(H,i===null);S(te)},[i]),ke=me(H=>{if(x||!q)return;const te=Fe.current?.getBoundingClientRect();let ne=0;ne=r==="row"?(H.clientX??H.touches?.[0]?.clientX)-te.x:(H.clientY??H.touches?.[0]?.clientY)-te.y,ne=Math.max(0,Math.min(U,ne)),j.fixedPaneOffset===1&&(ne=U-ne),l&&w.pixels===ne||S({pixels:ne,percent:null}),$?.(ne),H.stopPropagation(),H.preventDefault()},[j,r,x,q,w,U]),ot=me(H=>{if(document.removeEventListener("pointermove",ke),document.removeEventListener("touchmove",ke),document.removeEventListener("pointerup",ot),q&&(X(!1),w)){if(W(w.pixels),!Vr(l,i===null)||w.pixels!==l){const te={...w};te.percent===null&&(te.percent=te.pixels/U*100),T(te)}H.stopPropagation(),H.preventDefault()}},[w,q,l,i,U]),dt=me(H=>{ze?.(H),H.defaultPrevented||x||q||(X(!0),re(),document.addEventListener("pointermove",ke,{passive:!1}),document.addEventListener("touchmove",ke,{passive:!1}),document.addEventListener("pointerup",ot,{passive:!1}))},[ze]),Fe=so(t,()=>({setPosition:ut,isSplitPane:()=>!0}),[]),Je=s.useMemo(()=>F?M?.({key:"resizer",ref:Qa([A,Z]),className:U0("resizer",we),onPointerDownCapture:dt,style:{cursor:x?void 0:r==="row"?"ew-resize":"ns-resize",minWidth:r==="row"?"2px":void 0,minHeight:r!=="row"?"2px":void 0,boxSizing:"border-box",pointerEvents:"all",zIndex:1,...Y},splitDirection:r,disabled:x,...ht}):null,[F,we,ht,r,Y,x]),Ge=r==="row"?"Width":"Height",se={...ue,...oe,flex:j.fixedPaneOffset===0&&O?.pixels[0]!==null?`0 0 ${Math.round(O?.pixels[0])}px`:`1 1 ${Math.round(O?.percents[0]??100)}%`,[`min${Ge}`]:O?.minBefore,[`max${Ge}`]:o?O?.maxBefore:"100%"},We={...ue,...Le,flex:j.fixedPaneOffset===1&&O?.pixels[1]!==null?`0 0 ${Math.round(O?.pixels[1])}px`:`1 1 ${Math.round(O?.percents[1]??100)}%`,[`min${Ge}`]:O?.minAfter,[`max${Ge}`]:n?O?.maxAfter:"100%"},be=s.useMemo(()=>n?a.jsx("div",{ref:B,className:U0("before",ee,de),style:se,...le,...fe,children:n},"before"):null,[n,k,_,j,O]),Se=s.useMemo(()=>o?a.jsx("div",{ref:G,className:U0("after",ee,Te),style:We,...le,...ce,children:o},"after"):null,[o,k,I,j,O]);return a.jsxs("div",{ref:Qa([D,Fe]),className:U0("splitPane",r==="row"?"vertical":"horizontal",{dragging:q},m),style:he,children:[be,Je,Se]})}));function xu(e,t){return function(n){if(!n)throw new Error("must have a PointerHandlerOptions");const{onPointerDown:o,onPointerUp:r,onPointerMoveOrWait:i,processTouch:l=!1,consumeTouch:d=!0}=n,c=me(o,[o]),u=me(r,[r]),f=me(i,[i]),p=s.useRef(!1),h=n?.timerInitial??230,m=n?.timerContinuous??h/2,g=s.useRef(null),x=s.useRef(null),y=s.useRef(null),v=s.useRef(null),b=s.useCallback(()=>{v.current&&(clearTimeout(v.current),v.current=null)},[]),C=s.useCallback(S=>{v.current=setTimeout(()=>{window.requestAnimationFrame(()=>{p.current!==!1&&f?.(x.current,y.current,g.current)}),C(m)},S??h)},[]);s.useEffect(()=>()=>b(),[]);const k=l?"pointer":"mouse",_=s.useCallback(S=>{S.stopPropagation(),S.stopImmediatePropagation(),S.preventDefault()},[]),I=me(S=>{document.removeEventListener(`${k}move`,j),document.removeEventListener(`${k}up`,I),document.removeEventListener("keydown",T),document.removeEventListener("keyup",w),document.removeEventListener("touchstart",_,{capture:!0}),document.removeEventListener("touchmove",_,{capture:!0}),window.removeEventListener("blur",M),b(),window.requestAnimationFrame(()=>{p.current!==!1&&(p.current=!1,u?.(S,y.current,g.current),y.current=null)})},[]),M=s.useCallback(()=>{p.current!==!1&&(p.current=!1,I(x.current))},[]),F=me(()=>{b(),C(m),window.requestAnimationFrame(()=>{p.current!==!1&&f?.(x.current,y.current,g.current)})},[m]),j=me(S=>{x.current=S,F()},[]),T=me(S=>{y.current={ctrlKey:S.ctrlKey,shiftKey:S.shiftKey,altKey:S.altKey,metaKey:S.metaKey},F()},[]),w=me(S=>{y.current={ctrlKey:S.ctrlKey,shiftKey:S.shiftKey,altKey:S.altKey,metaKey:S.metaKey},F()},[m]);return me(S=>{S.isDefaultPrevented()||(y.current={ctrlKey:S.ctrlKey,shiftKey:S.shiftKey,altKey:S.altKey,metaKey:S.metaKey},c(S,y.current)!==!1&&(g.current=S,x.current=S.nativeEvent,document.addEventListener(`${k}up`,I,{passive:!1}),document.addEventListener(`${k}move`,j,{passive:!1}),document.addEventListener("keydown",T,{passive:!1}),document.addEventListener("keyup",w,{passive:!1}),window.addEventListener("blur",M,{passive:!0}),l&&d&&(document.addEventListener("touchstart",_,{passive:!1,capture:!0}),document.addEventListener("touchmove",_,{passive:!1,capture:!0})),p.current=!0,C(h)))},[h,l])}({onPointerDown:e,onPointerMoveOrWait:(n,o,r)=>{e?.(r)},...t})}const am=({initValue:e,useHookBody:t,applyStateChange:n})=>{const o=s.useRef(e);if(typeof t!="function")throw new Error("function expected as hook body parameter. got "+typeof t);const r=t();return s.useLayoutEffect(()=>{o.current!==r&&(o.current=r,n(r))},[n,r]),null},wc=e=>{console&&console.warn&&console.warn(e)},p1=typeof self=="object"&&self.self===self&&self||typeof global=="object"&&global.global===global&&global||void 0;let sm=1,Sc=!1,D7=!1;const Oa=[],q0=[],es=()=>{q0.forEach(e=>e())},cm=({automaticContainerInternalUseOnly:e})=>{const[t,n]=s.useState([]),o=s.useRef([]);return o.current=t,e||Sc!==!1||(D7=!0),s.useEffect(()=>{let r=!0;function i(){if(r)return q0[0]!==i?(e||Sc!==!0||wc("SingletonHooksContainer is mounted after some singleton hook has been used.Your SingletonHooksContainer will not be used in favor of internal one."),void n(l=>[])):void n([...Oa])}return q0.push(i),es(),()=>{r=!1,o.current?.length>0&&wc("SingletonHooksContainer is unmounted, but it has active singleton hooks. They will be reevaluated once SingletonHooksContainer is mounted again"),q0.splice(q0.indexOf(i),1),es()}},[e]),a.jsx(a.Fragment,{children:t.map(({hook:r,key:i})=>s.createElement(am,{...r,key:i}))})},L7=(e,t,n={})=>{let o,r,i=!1,l=!1,d=[],{unmountIfNoConsumers:c=!1}=n;const u=p=>{r=p,eo.unstable_batchedUpdates(()=>d.forEach(h=>h(p)))},f=()=>(l||(r=typeof e=="function"?e():e,l=!0),r);return()=>{const[p,h]=s.useState(f);return s.useEffect(()=>(i||(i=!0,o=(m=>{const g=sm++;return Oa.push({hook:m,key:g}),q0.length===0&&D7===!1&&(Sc=!0,(x=>{if(p1.document&&p1.document.createElement){const y=p1.document.createElement("div");Sd.createRoot(y).render(a.jsx(x,{automaticContainerInternalUseOnly:!0}))}else wc("Can not mount SingletonHooksContainer on server side. Did you manage to run useEffect on server? Please mount SingletonHooksContainer into your components tree manually.")})(cm)),es(),()=>{Oa.splice(Oa.findIndex(x=>x.key===g),1),es()}})({initValue:e,useHookBody:t,applyStateChange:u})),d.push(h),r!==p&&h(r),()=>{d.splice(d.indexOf(h),1),d.length===0&&c&&(o(),i=!1)}),[]),p}};let O7=()=>{console.warn("You must call useEditMode before setting its state.")};const dm=L7(null,()=>{const[e,t]=s.useState(null);return O7=t,e}),mr=()=>{const e=dm();return s.useMemo(()=>({setMode:t=>{O7(n=>(typeof t=="function"&&(t=t(n)),t?.onModeChange?.(t??null),t))},getMode:()=>e}),[e])};let Me=class{constructor(e,t,n,o){this._listenersProperties=new Set,this._listenersExecute=new Set,this._key=e,this._target=t,this._applyProps(n||{}),this._callback=o,o===void 0&&(this._callback=()=>{console.log(`implement: ${this.label()} : ${this.description()}`)})}key(){return this._key}_resolve(e,t){if(typeof e=="function"){const n=t??this._context;return e(typeof n=="function"?n():n)}return e}target(){return typeof this._target=="function"?this._target():this._target}label(e,t){const n=this._scopedLabels?.[e]||this._label;let o=null;if(typeof n=="function"){const r=t??this._context;o=n(typeof r=="function"?r():r)}else o=n;return o}description(e){return this._resolve(this._description,e)}tags(e){return this._resolve(this._tags,e)}icon(e){return this._resolve(this._icon,e)}shortcut(){return this._resolve(this._shortcut)}disabled(){return this._resolve(this._disabled)||!this._callback}state(){return this._resolve(this._state)}context(){return typeof this._context=="function"?this._context():this._context}async execute(e,t){if(!this.disabled()&&this._callback){try{let n=!0;if(t?.beforeExecute&&(n=t?.beforeExecute(this,e)),await Promise.resolve(n)===!1)return!1;const o=this._callback.bind(this)(e,this);if(await Promise.resolve(o)===!1)return!1;t?.onExecute?.(this,e),this._notifyExecute(e)}catch(n){return console.warn(n),t?.onError(this,n,e),this._notifyError(e,n),!1}return!0}}addPropertyListener(e,t=!1){if(!e)throw new Error("listener must be specified");const n=this._listenersProperties;return n.add(e),t&&e({},this),()=>{n.delete(e)}}addExecuteListener(e){if(!e)throw new Error("listener must be specified");const t=this._listenersExecute;return t.add(e),function(){t.delete(e)}}_notifyExecute(e){const t=this;this._listenersExecute.forEach(n=>{n.onExecute(t,e)})}_notifyError(e,t){const n=this;this._listenersExecute.forEach(o=>{o.onError?.(n,e,t)})}updateCallback(e){return this._callback=e||null,this}update(e){if(!e)return;const t=this._applyProps(e);return Object.keys(t).length>0&&this._notifyPropertyChange(t),this}_notifyPropertyChange(e){const t=this;this._listenersProperties.forEach(n=>{n(e,t)})}_applyProps(e){let t={},n=this;return Object.keys(e).forEach(o=>{let r=e[o];n["_"+o]!==r&&(n["_"+o]=t[o]=r)}),t}},pt=class extends Me{},vi=class P7{constructor(t,n){this._target=null,this._groupKey=null,this._root=null,this._parent=null,this._uuid=Lt.uuidV4(),this._target=t,this._groupKey=n??null,this._root=this,this._nodes=new Map,this._nodes.set(n,this),this._children=new Map,this._listeners=new Set,this._commandsByKey=new Map,this._commandsByShortcut=new Map;const o=this;this._unListenersByCommand=new Map,this._listenersByKey=new Map,this._commandsPropertyListener=(r,i)=>{const l=o._root._listenersByKey,d=i.key(),c=l.get(d);c&&o._notifyCommands(c,"onCommandChange",i)}}_getCommand(t){return this._commandsByKey.get(t)||(this._parent?._getCommand(t)??null)}getCommand(t,n=!1){const o=this._root._focused;let r=o,i=o===this;for(;!i&&r;)r===this&&(i=!0),r=r._parent;return(i?o:this)._getCommand(t)}createChildGroup(t,n,o){let r;if(!o){let d=this;for(;d&&!r;){let c=d._nodes.get(n);c&&(r=c),d=d._parent}}r||(r=new P7(t,n),r._parent=this,r._root=this._root,r._unListenersByCommand=null,r._listenersByKey=null,r._commandsPropertyListener=null);const i=(d,c)=>{!d.has(n)||o?d.set(n,c):o===void 0&&console.warn("commandGroup already registered",n)};i(this._root._nodes,r);let l=this._parent;for(;l;)i(this._nodes,r),l=l._parent;return this._children.set(n,r),this._notify("onGroupChange"),r}getKey(){return this._groupKey}getGroup(t){return this._nodes.get(t)}_addCommands(t,n=void 0){const o=this._commandsByKey,r=this._commandsByShortcut,i=this._root._commandsPropertyListener,l=this._root._unListenersByCommand;for(let d=0;d<t.length;d++){const c=t[d],u=c.key();if(o.has(u)&&!n){n===void 0&&console.warn("command already registered",u);continue}o.set(u,c);let f=l.get(c);f&&(f(),l.delete(c));const p=c.addPropertyListener(i);l.set(c,p);const h=c.shortcut();if(!h)continue;const m=Array.isArray(h)?h:[h];for(let g=0;g<m.length;g++){const x=Mi(m[g]),y=r.get(x);y&&!n&&n===void 0&&console.warn(`Shortcut already registered: ${x}, ${u}, ${y}.`),r.set(x,u)}}}removeFromParent(){if(!this._parent)return;let t=this._parent,n=[];const o=this._groupKey;for(;t;)n.push(t._nodes),t._nodes.delete(o),t=t._parent;t=this._parent;const r=i=>{i._children.forEach(l=>{for(let d=0;d<n.length;d++)l._nodes.delete(n[d]);r(l)})};r(this),this._parent=null,this._notify("onGroupChange")}addCommands(t,n){this._addCommands(t,n),this._notify("onGroupChange")}getActive(){return this._root._focused??this._root}activate(t){let n=this;if(t&&(n=this._nodes.get(t),!n))return void console.warn("group not found",t);let o=this._root._focused??this._root;for(;o;)o=o._parent;this._root._focused!==n&&(this._root._focused=n,this._notify("onGroupChange"),this._notify("onActiveChange"))}findCommandByEvent(t){const n=[];t.altKey&&n.push(je.Alt),t.shiftKey&&n.push(je.Shift),t.ctrlKey&&n.push(je.Ctrl),t.metaKey&&n.push(je.Meta);let o=Mi({key:t.code,modifiers:n});const r=this._commandsByShortcut;let i=r.get(o);i||(o=Mi({key:t.key,modifiers:n}),i=r.get(o)),!i&&t.code.startsWith("Digit")&&(o=Mi({key:t.code.substring(5,t.code.length),modifiers:n}),i=this._commandsByShortcut.get(o)),!i&&t.code.startsWith("Key")&&(i=Mi({key:t.code.substring(3,t.code.length),modifiers:n}),i=r.get(o));let l=null;return i&&(l=this._commandsByKey.get(i),l&&l.disabled()&&(l=null),!l||l.target()&&l.target().contains(t.target)||(l=null)),l||(this._parent?.findCommandByEvent(t)??null)}dispatchToFocusedCommand(t){const n=this.getActive();if(!n||t.isDefaultPrevented())return!1;const o=n.findCommandByEvent?.(t);return!!o&&(o.execute(),t.preventDefault(),!0)}getRoot(){return this._parent?this._parent.getRoot():this}getParent(){return this._parent}addListener(t,n){const o=this._listeners,r=n?.keys,i=this._root._listenersByKey;if(r&&!t.onCommandChange)throw new Error("keys were provided but the listener does not contain 'onCommandChange'.");let l=null;if(r)for(let d=0;d<r.length;d++){const c=r[d];if(!c)continue;let u=i.get(c);u||(u=new Set,i.set(c,u)),l||(l=[]),l.push(u),u.add(t)}return o.add(t),()=>{if(l)for(let d=0;d<l.length;d++)l[d].delete(t);o.delete(t)}}_notifyCommands(t,n,o){const r=this;setTimeout(()=>{t.forEach(i=>{i[n]?.(r,o)})},0)}_notify(t,n){const o=this;setTimeout(()=>{o._listeners.forEach(r=>{r[t]?.(o,n)}),o._parent&&o._parent._notify(t,n)},0)}getAllCommands(){const t=[],n=this._groupKey;return this._commandsByKey.forEach(o=>{t.push({command:o,groupKey:n})}),this._children.forEach(o=>{t.push(...o.getAllCommands())}),t}};const um=Lt.getOS()===Lt.OSType.MacOS||Lt.getOS()===Lt.OSType.IOS?"Cmd":"Ctrl",hm=Lt.getOS()===Lt.OSType.MacOS||Lt.getOS()===Lt.OSType.IOS?"⌘":"^",Mi=(e,t=!1)=>{const n={};for(let r=0;e.modifiers&&r<e.modifiers.length;r++)n[e.modifiers[r]]=!0;let o="";return(n?.[je.Ctrl]||n?.[je.Meta])&&(o+=(o.length>0?"+":"")+(t?hm:um)),n?.[je.Alt]&&(o+=t?"⌥":"Alt"),n?.[je.Shift]&&(o+=(o.length>0?"+":"")+(t?"⇧":"Shift")),o+=(o.length>0?"+":"")+R7(e.key),o};function c0(e,t=null){const n=s.useRef(t);n.current=t;const[o,r]=s.useReducer(l=>l+1,0),i=s.useMemo(()=>Array.isArray(e)?e:[e],[e]);return s.useEffect(()=>{if(!i||i.length===0)return;const l=(u,f)=>{n.current?.onChange?.(f),r()};let d=null;t&&(d={onExecute(u,f){n.current?.onExecute?.(u,f)},onError(u,f,p){n.current?.onError?.(u,f,p)}});const c=new Set;for(let u=0;u<i.length;u++)c.add(i[u]?.addPropertyListener(Lt.debounce(l,0),!0)),t&&c.add(i[u]?.addExecuteListener(d));return()=>{c.forEach(u=>{u?.()})}},[e]),o}const na=(e,t)=>{const n=[];if(t)for(let o=0;o<t.length;o++){const r=t[o],i=r?e?.getCommand(r):null;n.push(i)}return n};function Bn(e,t=null,n=null,o){const r=s.useRef(n);r.current=n,t&&!Array.isArray(t)&&(t=[t]);const[i,l]=s.useState(na(e,t)),d=o?[...o,e]:[e];return s.useEffect(()=>{const c={onGroupChange:()=>{const h=na(e,t);l(h),r.current?.onChange?.(this)}};let u;t&&t.length>0&&(u={keys:t},c.onCommandChange=(h,m)=>{r.current?.onChange?.(e),l(na(e,t))});const f=e?.addListener(c,u),p=na(e,t);return l(p),r.current?.onChange&&r.current?.onChange(e),()=>{f?.()}},d),i}const zt={Toolbar:"toolbar",Menuitem:"menuitem"},A7=L7({setClipboard:e=>{throw new Error("This is only available via the useClipboard.")},getClipboard:()=>si.Global,refNativeCopy:{current:null},refNativeLastKey:{current:null}},()=>{const[e,t]=s.useState(si.Global);return{setClipboard:n=>t(n),getClipboard:()=>e,refNativeCopy:s.useRef(null),refNativeLastKey:s.useRef(null)}}),F7=e=>{const{source:t,target:n,onPaste:o,onClipboardUpdate:r,notifier:i=Ja,commands:l}=e,d=me(r,[r]),c=me(o,[o]),{getClipboard:u,refNativeCopy:f}=A7(),p=u();s.useMemo(()=>{const b=t?.element,C=n?.element??t?.element;if(!l)return;const k=[new pt("cut",b,{label:"Cut",description:"Remove the selection and put it on the clipboard so you can paste it somewhere else.",shortcut:{key:"X",modifiers:[je.Ctrl]}}),new pt("copy",b,{label:"Copy",description:"Put a copy of the selection on the clipboard so you can paste it somewhere else.",shortcut:{key:"C",modifiers:[je.Ctrl]}}),new pt("paste",C,{label:"Paste",description:"Add content on the clipboard to your document.",shortcut:[{key:"V",modifiers:[je.Ctrl]},{key:"F8",modifiers:[je.Ctrl]}]})];l?.addCommands(k,!0)},[l]);const h=me(async b=>{if(!t?.element)return;let C=null;try{C=t.doCopy?.(b),typeof C=="string"?await p.writeText(C):await p.writeReference(C)}catch(k){throw k}},[t,i]),m=me(async b=>{const C=t?.element?.();if(C){f.current={sourceElement:C,args:b};try{await h(b)}catch(k){i?.showError?.(k)}}},[t?.element,i]),g=s.useCallback(()=>{m({isCut:!0})},[]),x=me(async(b,C,k)=>{try{if(await b.doPaste(C,k)===!1)return;c?.(C,k)}catch(_){i?.showError?.(_)}},[c]),y=me(async(b,C,k)=>{const _=n?.element?.();if(_&&await Lt.whenFocus(_),!b&&!C)return;const I=await i?.showBusy?.("Pasting...");if(C)try{return await x(n,C,k),void I?.()}catch(j){I?.(),i?.showError?.(j)}let M,F=n.importFromExternal;F||(F=(j,T)=>({getItemType:()=>"text",toText:()=>b.text,isClipboardItem:!0}));try{M=await F(b,{isCut:!1})}catch(j){I?.(),i?.showError?.(j)}if(M)try{const j=await Promise.resolve(M);await x(n,j,k),I?.()}catch(j){I?.(),i?.showError?.(j)}else I?.()},[x,n,i]),v=me(async b=>{if(n?.element)try{const C=await p.readReference();if(C)return void await y(null,C,b);const k=[];k[0]=await Rf(p,Dr),k[1]=await If(p,bo),k[2]=await Mf(p,Da);const _={text:k[0]??null,html:k[1]??null,image:k[2]??null};await y(_,null,b)}catch(C){if(C?.message==="Document is not focused.")return;i?.showError?.(C)}},[y,n?.element,i]);return me(async b=>{},[t?.element]),me(async b=>{},[n?.element,y,i]),s.useEffect(()=>{if(!p)return;const b=async _=>{const I=await p.readReference();d?.(I)},C=_=>{i?.showMessage?.(si.ErrorMessages.PermsRead,{onceKey:"clipboard.features"})},k=_=>{i?.showMessage?.(si.ErrorMessages.PermsWrite,{onceKey:"clipboard.features"})};return p.addEventListener("clipboardchange",b),p.addEventListener("clipboarderrorread",C),p.addEventListener("clipboarderrorwrite",k),()=>{p.removeEventListener("clipboardchange",b),p.removeEventListener("clipboarderrorread",C),p.removeEventListener("clipboarderrorwrite",k)}},[p,i]),s.useEffect(()=>{},[h,y,t,n]),s.useEffect(()=>{l?.getCommand("cut")?.updateCallback(g).update({disabled:!t||!n}),l?.getCommand("copy")?.updateCallback(m).update({disabled:!t}),l?.getCommand("paste")?.updateCallback(v).update({disabled:!n})},[t,n,l]),{paste:v,copy:m,clipboard:p}};s.useId;const yu="Undo the last action.",bu="Repeat the last action or undo the redo.",pm=e=>`Redo ${e}`;function z7(e){var t,n,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var r=e.length;for(t=0;t<r;t++)e[t]&&(n=z7(e[t]))&&(o&&(o+=" "),o+=n)}else for(n in e)e[n]&&(o&&(o+=" "),o+=n);return o}function ao(){for(var e,t,n=0,o="",r=arguments.length;n<r;n++)(e=arguments[n])&&(t=z7(e))&&(o&&(o+=" "),o+=t);return o}const Eo="text/html",Hr="text/plain",f1="image/png",fm=Object.freeze({left:0,top:0}),mm=Object.freeze({left:0,top:0,bottom:0,right:0}),gm=Object.freeze({x:0,y:0,width:0,height:0});Object.freeze(Object.defineProperty({__proto__:null,EmptyBounds:gm,EmptyRect:mm,EmptyTopLeft:fm},Symbol.toStringTag,{value:"Module"}));const S0="column",Sl="row",xm=Object.freeze({colIndex:0,rowIndex:0}),ym=Object.freeze({colStart:0,rowStart:0,colEnd:0,rowEnd:0}),B7=(e,t)=>e.colStart===t.colStart?e.rowStart-t.rowStart:e.colStart-t.colStart,N7=(e,t)=>e.rowStart===t.rowStart?e.colStart-t.colStart:e.rowStart-t.rowStart,bm=(e,t)=>e.rowEnd===t.rowEnd?t.colEnd-e.colEnd:t.rowEnd-e.rowEnd,vm=(e,t)=>e.colEnd===t.colEnd?t.rowEnd-e.rowEnd:t.colEnd-e.colEnd,vu=(e,t)=>e.colIndex===t.colIndex?e.rowIndex-t.rowIndex:e.colIndex-t.colIndex,wu=(e,t)=>e.rowIndex===t.rowIndex?e.colIndex-t.colIndex:e.rowIndex-t.rowIndex,V7=(e=Sl,t=!1)=>t?e!==S0?bm:vm:e!==S0?N7:B7,Su=(e,t)=>e===t||!(!e||!t)&&e.rowIndex===t.rowIndex&&e.colIndex===t.colIndex,Cc=(e,t)=>e===t||!(!e||!t)&&e.rowStart===t.rowStart&&e.rowEnd===t.rowEnd&&e.colStart===t.colStart&&e.colEnd===t.colEnd,kc=(e,t)=>!(!e||!t||e.colStart>t.colEnd||t.colStart>e.colEnd||e.rowStart>t.rowEnd||t.rowStart>e.rowEnd),Cu=(e,t)=>{if(e===t)return!0;if(!e||!t||e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(!Cc(e[n],t[n]))return!1;return!0},m1=(e,t,n)=>{if(!e&&!t)return null;if(!e)return n?t:{...t};if(!t)return n?e:{...e};const o=Math.min(e.colStart,t.colStart),r=Math.min(e.rowStart,t.rowStart),i=Math.max(e.colEnd,t.colEnd),l=Math.max(e.rowEnd,t.rowEnd);let d=n;return d?(d.colStart=o,d.rowStart=r,d.colEnd=i,d.rowEnd=l):d={colStart:o,rowStart:r,colEnd:i,rowEnd:l},d},ku=(e,t)=>{if(!t||t.length===0)return e;const n={...e};for(let o=0;o<t.length;o++){const r=t[o];kc(n,r)&&(n.rowStart=Math.min(n.rowStart,r.rowStart),n.colStart=Math.min(n.colStart,r.colStart),n.rowEnd=Math.max(n.rowEnd,r.rowEnd),n.colEnd=Math.max(n.colEnd,r.colEnd))}return n},wm=[null,null],Sm=(e,t,n)=>{if(e[0].value===e[1].value)return t};function Eu(e,t=2,n,o=Sl,r){let i=[...e];if(t<=0||e.length<=1)return i;let l=o===S0,d=0,c=!1;do{const u=i.sort(V7(l?Sl:S0));i=[],i.push(u[0]);const f=u.length;let p=0,h=u[0],m=h.colStart,g=h.rowStart,x=h.colEnd,y=h.rowEnd;for(let v=1;v<f;v++){const b=u[v];let C=!1;if(C=l?h&&g===b.rowStart&&y===b.rowEnd&&x+1===b.colStart:h&&m===b.colStart&&x===b.colEnd&&y+1===b.rowStart,C){let k={colStart:m,rowStart:g,colEnd:l?b.colEnd:x,rowEnd:l?y:b.rowEnd};if(h.value!==void 0&&(k.value=h.value),n){const _=r??[null,null];_[0]=h,_[1]=b,k=n(_,k,o)}if(k){i[p]=k,c=!0,h=k,m=h.colStart,g=h.rowStart,x=h.colEnd,y=h.rowEnd;continue}}i[++p]=b,h=b,m=h.colStart,g=h.rowStart,x=h.colEnd,y=h.rowEnd}d++,l=!l,d===1&&(c=!0)}while(d<t&&c&&i.length>1);return i}Object.freeze(Object.defineProperty({__proto__:null,EmptyCell:xm,EmptyRange:ym,cellToRange:(e,t)=>{if(!e)return null;let n=t;return n||(n={...e},delete n.colIndex,delete n.rowIndex),n.colStart=e.colIndex??0,n.rowStart=e.rowIndex??0,n.colEnd=e.colIndex??0,n.rowEnd=e.rowIndex??0,n},columnFirstCellComparator:vu,columnFirstRangeComparator:B7,createCellComparator:(e=Sl,t=!1)=>t?e!==S0?(n,o)=>n.rowIndex===o.rowIndex?o.colIndex-n.colIndex:o.rowIndex-n.rowIndex:(n,o)=>n.colIndex===o.colIndex?o.rowIndex-n.rowIndex:o.colIndex-n.colIndex:e!==S0?wu:vu,createConflatingRanges:(e,t=!1)=>{const n=[];let o,r,i=Number.MIN_SAFE_INTEGER,l=Number.MIN_SAFE_INTEGER;return{append:(d,c,u)=>{let f=!0;const p=u!==void 0;if(p){const g=e?e(r,u,t):r===u?u:void 0;g===void 0?f=!1:u=g}if(f&&c===l+1&&d===i)return t?o.rowEnd=c:o.colEnd=c,l=c,void(r=u);o&&n.push(o);const h=t?d:c,m=t?c:d;o={colStart:h,rowStart:m,colEnd:h,rowEnd:m},p&&(o.value=u),i=d,l=c,r=u},done:d=>(o&&(n.push(o),o=null),d?Eu(n,3,d===!0?Sm:d,t?S0:Sl,wm):n)}},createRangeComparator:V7,defaultRange:(e,t,n)=>e?n?(n.colStart=e.colStart??t.colStart,n.rowStart=e.rowStart??t.rowStart,n.colEnd=e.colEnd??t.colEnd,n.rowEnd=e.rowEnd??t.rowEnd,n):{colStart:e.colStart??t.colStart,rowStart:e.rowStart??t.rowStart,colEnd:e.colEnd??t.colEnd,rowEnd:e.rowEnd??t.rowEnd}:t,extendRangeToIntersectingRanges:ku,extendRangeToUnionRanges:(e,t)=>{if(!t||t.length===0)return e;let n=e,o=null;for(;!Cc(n,o);)o=n,n=ku(o,t);return n},indexOfCoords:(e,t)=>{const n={colStart:e.colIndex,rowStart:e.rowIndex,colEnd:e.colIndex,rowEnd:e.rowIndex};for(let o=t.length-1;o>=0;o--)if(kc(n,t[o]))return o;return-1},intersectRanges:(e,t,n)=>{if(!e)return n?t:{...t};if(!t)return n?e:{...e};if(!e&&!t||e.rowStart>t.rowEnd||e.rowEnd<t.rowStart||e.colStart>t.colEnd||e.colEnd<t.colStart)return null;const o=Math.max(e.colStart,t.colStart),r=Math.max(e.rowStart,t.rowStart),i=Math.min(e.colEnd,t.colEnd),l=Math.min(e.rowEnd,t.rowEnd);let d=n;return d?(d.colStart=o,d.rowStart=r,d.colEnd=i,d.rowEnd=l):d={colStart:o,rowStart:r,colEnd:i,rowEnd:l},d},isCellWithinRange:(e,t)=>!(!e||!t||e.rowIndex<t.rowStart||e.rowIndex>t.rowEnd||e.colIndex<t.colStart||e.colIndex>t.colEnd),isEqualCells:Su,isEqualRanges:Cc,isEqualRangesArrays:Cu,isEqualSelectionCoords:(e,t)=>e===t||!(!e||!t)&&e.rangeIndex===t.rangeIndex&&!!Su(e.cell,t.cell)&&Cu(e.ranges,t.ranges),isRangeWithinRange:(e,t)=>!(e.rowStart<t.rowStart||e.rowEnd>t.rowEnd||e.colStart<t.colStart||e.colEnd>t.colEnd),isRangesIntersect:kc,isSingleCell:e=>!!e&&e.rowEnd===e.rowStart&&e.colStart===e.colEnd,isValidRange:e=>!(!e||typeof e.colStart!="number"||e.colStart<0||typeof e.colEnd!="number"||e.colEnd<e.colStart||typeof e.rowStart!="number"||e.rowStart<0||typeof e.rowEnd!="number"||e.rowEnd<e.rowStart),mergeRangedValues:Eu,rowFirstCellComparator:wu,rowFirstRangeComparator:N7,sanitizeRange:e=>e?{colStart:e.colIndex??e.colStart??0,rowStart:e.rowIndex??e.rowStart??0,colEnd:e.colIndex??e.colEnd??0,rowEnd:e.rowIndex??e.rowEnd??0}:null,translateRange:(e,t=-e.rowStart,n=-e.colStart,o)=>o?(o.colStart=e.colStart+n,o.rowStart=e.rowStart+t,o.colEnd=e.colEnd+n,o.rowEnd=e.rowEnd+t,o):{colStart:e.colStart+n,rowStart:e.rowStart+t,colEnd:e.colEnd+n,rowEnd:e.rowEnd+t},unionRanges:m1,unionRangesArrays:(e,t,n)=>{if(!e||e.length===0)return null;if(e.length===1&&!t)return e[0];let o=e[0];for(let r=1;r<e.length;r++)o=m1(o,e[r],n);return t&&(o=m1(o,t,n)),o}},Symbol.toStringTag,{value:"Module"}));const Cm=typeof Symbol=="function"&&Symbol.for?Symbol.for("react.element"):60103;function km(e){return function(t){return!!t&&typeof t=="object"}(e)&&!function(t){const n=Object.prototype.toString.call(t);return n==="[object RegExp]"||n==="[object Date]"||t.$$typeof===Cm}(e)}function Yi(e,t){return t.clone!==!1&&t.isMergeableObject(e)?T0((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}function Em(e,t,n){return e.concat(t).map(function(o){return Yi(o,n)})}function _u(e){return Object.keys(e).concat((t=e,Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter(function(n){return Object.propertyIsEnumerable.call(t,n)}):[]));var t}function Tu(e,t){try{return t in e}catch{return!1}}function T0(e,t,n){(n=n||{}).arrayMerge=n.arrayMerge||Em,n.isMergeableObject=n.isMergeableObject||km,n.cloneUnlessOtherwiseSpecified=Yi;const o=Array.isArray(t);return o===Array.isArray(e)?o?n.arrayMerge(e,t,n):function(r,i,l){const d={};return l.isMergeableObject(r)&&_u(r).forEach(function(c){d[c]=Yi(r[c],l)}),_u(i).forEach(function(c){var u,f;Tu(u=r,f=c)&&(!Object.hasOwnProperty.call(u,f)||!Object.propertyIsEnumerable.call(u,f))||(Tu(r,c)&&l.isMergeableObject(i[c])?d[c]=function(p,h){if(!h.customMerge)return T0;const m=h.customMerge(p);return typeof m=="function"?m:T0}(c,l)(r[c],i[c],l):d[c]=Yi(i[c],l))}),d}(e,t,n):Yi(t,n)}T0.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(n,o){return T0(n,o,t)},{})};const _m=Object.freeze([]),Tm=Object.freeze({}),ju=e=>e,Pa=()=>"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){let t=16*Math.random()|0;return(e==="x"?t:3&t|8).toString(16)}),H7=(e,t)=>e===t||!(!Array.isArray(e)||!Array.isArray(t)||e.length!==t.length)&&e.every((n,o)=>n===t[o]),Ri=e=>typeof e=="object"&&!Array.isArray(e)&&e!==null,$7=e=>typeof e!="object"||Array.isArray(e)||e===null?e:(Object.keys(e).forEach(function(t){e[t]&&typeof e[t]=="object"?$7(e[t]):e[t]!==null&&e[t]!==void 0||delete e[t],typeof e[t]=="object"&&Object.keys(e[t]).length===0&&delete e[t]}),Object.keys(e).length===0?null:e),jm=(e,t)=>!(e!==t&&!H7(e,t)&&!e.isEqual?.(t)),W7=(e,t,n=jm)=>{if(e==null||e===t)return null;if(!e||typeof e!="object"||Array.isArray(e)||e.isImmutable?.())return n(e,t)?null:e;const o=Object.keys(e);if(o.length===0)return null;let r=!1;for(let i=0;i<o.length;i++){const l=o[i];W7(e[l],t?.[l],n)===null&&(r=!0,delete e[l])}return r&&Object.keys(e).length===0?null:void 0},Mu=typeof performance=="object"&&typeof performance.now=="function"?()=>performance.now():()=>Date.now(),Ru=e=>e==null,Iu=(e,t)=>!(t.left>e.right||t.right<e.left||t.top>e.bottom||t.bottom<e.top),Du=!(typeof window>"u"||!window.document||!window.document.createElement),_o={Windows:"windows",MacOS:"macos",IOS:"ios",Linux:"linux",Android:"android",Safari:"safari",Firefox:"firefox",Node:"node",Unknown:"unknown"},Cl=()=>{if(U7())return _o.Node;const e=globalThis.navigator!==void 0&&globalThis.navigator.userAgent?globalThis.navigator.userAgent.toLowerCase():"";return e?/(win32|win64|windows|wince)/i.test(e)?_o.Windows:/(macintosh|macintel|macppc|mac68k|macos)/i.test(e)?_o.MacOS:/(iphone|ipad|ipod)/i.test(e)?_o.IOS:/android/.test(e)?_o.Android:/linux/.test(e)?_o.Linux:/^((?!chrome|android|).)*safari/i.test(e)?_o.Safari:/^((?!chrome|android|Seamonkey).)*firefox/i.test(e)?_o.Firefox:_o.Unknown:_o.Unknown};function U7(){return typeof process<"u"&&process.release?.name==="node"||(typeof process<"u"&&process.browser,!1)}const Lu=(e,t=!1)=>(document.hasFocus()||t)&&(e===document.activeElement||e?.contains(document.activeElement)),zn=Object.freeze(Object.defineProperty({__proto__:null,EmptyArray:_m,EmptyObject:Tm,OSType:_o,arrayMove:function(e,t,n){const o=e.slice();return o.splice(n<0?o.length+n:n,0,o.splice(t,1)[0]),o},asNumber:e=>{const t=1*e;return Number.isFinite(t)?t:0},camelToPrettyCase:e=>e.length===1?e.toUpperCase():e.replace(/([A-Z])/g," $1").replace(/^./,function(t){return t.toUpperCase()}).trim(),canUseDOM:Du,cancelTimeout:e=>{cancelAnimationFrame(e.id)},castToString:e=>e==null||e===void 0?"":typeof e!="string"?""+e:e,cloneObject:e=>Ru(e)?e:JSON.parse(JSON.stringify(e)),consoleWithNoSource:(...e)=>new Promise(t=>{setTimeout(()=>{Function("console.log.apply(console, arguments)").apply(null,e),t()})}),debounce:function(e,t=300,n=!1){let o,r,i,l,d=0;function c(){let f=Date.now()-d;f<t&&f>=0?o=setTimeout(c,t-f):(o=null,n||(l=e.apply(i,r),i=r=null))}t==null&&(t=100);const u=function(){i=globalThis,r=arguments,d=Date.now();var f=n&&!o;return o||(o=setTimeout(c,t)),f&&(l=e.apply(i,r),i=r=null),l};return u.clear=function(){o&&(clearTimeout(o),o=null)},u.flush=function(){o&&(l=e.apply(i,r),i=r=null,clearTimeout(o),o=null)},u},deepEqual:function e(t,n){if(t===n)return!0;if(t&&n&&typeof t=="object"&&typeof n=="object"){if(t.constructor!==n.constructor)return!1;let o,r,i;if(Array.isArray(t)){if(o=t.length,o!=n.length)return!1;for(r=o;r--!==0;)if(!e(t[r],n[r]))return!1;return!0}if(t instanceof Map&&n instanceof Map){if(t.size!==n.size)return!1;for(r of t.entries())if(!n.has(r[0]))return!1;for(r of t.entries())if(!e(r[1],n.get(r[0])))return!1;return!0}if(t instanceof Set&&n instanceof Set){if(t.size!==n.size)return!1;for(r of t.entries())if(!n.has(r[0]))return!1;return!0}if(ArrayBuffer.isView(t)&&ArrayBuffer.isView(n)){if(o=t.length,o!=n.length)return!1;for(r=o;r--!==0;)if(t[r]!==n[r])return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if(i=Object.keys(t),o=i.length,o!==Object.keys(n).length)return!1;for(r=o;r--!==0;)if(!Object.prototype.hasOwnProperty.call(n,i[r]))return!1;for(r=o;r--!==0;){let l=i[r];if(!(l==="_owner"&&t.$$typeof||e(t[l],n[l])))return!1}return!0}return t!=t&&n!=n},deepFreeze:function e(t){return Object.freeze(t),Object.keys(t).forEach(n=>{typeof t[n]!="object"||t[n]===null||Object.isFrozen(t[n])||e(t[n])}),t},deepMerge:T0,diffValues:(e,t)=>{const n={},o=Object.keys(t),r=o.length;for(let i=0;i<r;i++){const l=o[i];e[l]!==t[l]&&(e[l]===void 0?n[l]=t[l]:n[l]=e[l])}return Object.keys(n).length===0?null:n},findEqualOrGreater:function(e,t,n=ju){let o=0,r=e.length-1;for(;o<=r;){let i=Math.floor((o+r)/2),l=n(e[i]);if(l===t)return i;l<t?o=i+1:r=i-1}return o},findEqualOrLesser:function(e,t,n=ju){let o=e.length-1,r=0;for(;o>=r;){let i=Math.floor((o+r)/2),l=n(e[i]);if(l===t)return i;l>t?o=i-1:r=i+1}return o},findNextStep:(e,t=!0,n=15,o=10,r=400)=>{const i=Math.max(e-o,0)+(t?1:-1);return Math.min(r,Math[t?"ceil":"floor"](i/n)*n+o)},getDPI:()=>{let e=1;return typeof window=="object"&&(e=window.devicePixelRatio||1),e},getFromPath:(e,t)=>{const n=t.split(".");let o=e;for(let r=0;r<n.length;r++){const i=n[r];if(!o)return null;let l=o[i];if(typeof l=="function"&&(l=l.bind(o)()),!l||!Ri(l))return l;o=l}return o??null},getOS:Cl,hasFocus:Lu,isDefined:e=>e!=null,isEmpty:e=>e==null||e==="",isEqualArrays:H7,isEqualBounds:(e,t)=>e===t||!(e&&!t||t&&!e)&&e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height,isEqualObjectKeys:(e,t)=>{if(e===t)return!0;if(e&&!t||t&&!e)return!1;const n=Object.keys(e);if(n.length!==Object.keys(t).length)return!1;for(let o=0;o<n.length;o++)if(e[n[o]]!==t[n[o]])return!1;return!0},isNode:U7,isNullOrUndefined:Ru,isNumeric:e=>{const t=1*e;return Number.isFinite(t)&&typeof t=="number"},isObject:Ri,isPromiseLike:e=>!!e&&typeof e.then=="function",isRectInsideRect:(e,t)=>e.top>=t.top&&e.bottom<=t.bottom&&e.left>=t.left&&e.right<=t.right,isRectIntersect:Iu,mergeContentful:(...e)=>{const t=e.length;if(t>0&&e[t-1]!==void 0&&!Ri(e[t-1]))return e[t-1];let n=e[0]||{};for(let o=1;o<t;o++)n=T0(n,e[o]||{},{arrayMerge:(r,i)=>[...i]});return n},nextTick:e=>{typeof window<"u"&&typeof window.requestAnimationFrame=="function"?window.requestAnimationFrame(()=>{e()}):(typeof setImmediate=="function"?setImmediate:setTimeout)(()=>{e()})},openFileDialog:(e="*.*")=>new Promise((t,n)=>{if(!Du)return void n("Unable to open dialog with no dom.");const o=document.createElement("input");o.type="file",o.accept=e;let r=null,i=!1;globalThis.addEventListener?.("focus",()=>{setTimeout(()=>{r||i||(i=!0,t(null))},1e3)},{once:!0,passive:!0}),o.onchange=()=>{if(r=o.files[0],r){if(i)return void console.warn("File open detected after faux cancel.",r);t(r)}},o.autofocus=!0,o.click()}),rafThrottle:e=>{let t,n=!1,o=function(){n=!1,e(t)};return function(r){t=r,t&&t.persist&&t.persist(),n||(n=!0,requestAnimationFrame(o))}},removeEmptyProperties:$7,removeEqualValues:W7,removeListenerAll:e=>{if(!e)return[];for(let t=0;t<e.length;t++)e[t]&&e[t]();return[]},requestTimeout:(e,t)=>{const n=Mu(),o={id:requestAnimationFrame(function r(){Mu()-n>=t?e.call(null):o.id=requestAnimationFrame(r)})};return o},roundAccurately:(e,t=0)=>{if(e==null||!isFinite(e))return null;const n=10**t;return Number(Math.round(e*n)/n)},setToPath:(e,t,n)=>{const o=t.split(".");let r=e;if(!r)throw new Error("Can not set path to a null path.");for(let i=0;r&&i<o.length-1;i++){const l=o[i];let d=r[l];if(d==null&&(d={},r[l]=d),!Ri(d))throw new Error("Can not set path to a non object path.");r=d}if(typeof n!="number"&&typeof n!="boolean"&&typeof n!="string"&&!Ri(n))throw new Error(`Can not set path to ${n} that is not a a supported primitive.`);return r[o[o.length-1]]=n,e},splitNumber:e=>{let t=Math.abs(e);if(isNaN(t)||!isFinite(e))return null;let n=0|t,o=t-n,r=0,i=0,l=1;if(o>5e-8)for(;i<8&&Math.abs(r/l-o)>5e-8;)i++,l*=10,r=Math.round(o*l);return{ip:Math.trunc(e),fp:r,ipLength:Math.ceil(Math.log10(n+1)),fpLength:i}},subtractRect:(e,t,n=!1)=>{if(!t)return[e];if(!Iu(e,t))return[];const o=[];let r=e;const i=()=>{t.top>r.top&&t.top<r.bottom&&(o.push({...r,bottom:t.top}),r={...r,top:t.top})},l=()=>{t.bottom>r.top&&t.bottom<r.bottom&&(o.push({...r,top:t.bottom}),r={...r,bottom:t.bottom})},d=()=>{t.right>r.left&&t.right<r.right&&(o.push({...r,left:t.right}),r={...r,right:t.right})},c=()=>{t.left>r.left&&t.left<r.right&&(o.push({...r,right:t.left}),r={...r,left:t.left})};return n?(c(),d(),i(),l()):(i(),l(),d(),c()),o},textToKey:e=>e.replace(/[^a-zA-Z0-9]/g,"").toLowerCase(),throttle:function(e,t){let n=null;return(...o)=>{const r=Date.now();(!n||r-n>=t)&&(n=r,e(...o))}},toSafeJSON:function e(t){if(t===null||typeof t!="object")return t;if(typeof t.toJSON=="function")return t.toJSON();if(Array.isArray(t))return t.map(o=>e(o));if(typeof t.toString=="function"&&t.toString!==Object.prototype.toString)return t.toString();const n={};for(const o in t)t.hasOwnProperty(o)&&(n[o]=e(t[o]));return n},transpose:e=>{if(!e)return e;const t=e.length,n=e[0].length,o=[];for(let r=0;r<n;r++)o[r]=Array(t);for(let r=0;r<t;r++)for(let i=0;i<n;i++)o[i][r]=e[r][i];return o},uuidV4:Pa,validEnumValue:(e,t)=>{if(!Object.values(e).includes(t))throw new Error(`Invalid type: ${t??"null"}. Must be one of: ${Object.values(t).join(", ")}.`)},whenFocus:async(e,t=!1)=>new Promise(n=>{Lu(e,t)?n(!0):e.addEventListener("focusin",()=>{n(!0)},{once:!0}),e.focus()})},Symbol.toStringTag,{value:"Module"}));Object.freeze(Object.defineProperty({__proto__:null,MESSAGE_ERROR_INVALID_ARG:e=>`Invalid argument: '${e}'.`},Symbol.toStringTag,{value:"Module"}));const q7=e=>{const t=new Uint8Array(e),n=t.byteLength;let o="";for(let r=0;r<n;r++)o+=String.fromCharCode(t[r]);if(typeof window<"u"&&typeof globalThis.btoa=="function")return globalThis.btoa(o);if(typeof Buffer<"u")return Buffer.from(o,"binary").toString("base64");throw new Error("Unsupported environment")},Ec=e=>new Promise((t,n)=>{if(e)if(typeof FileReader<"u"){const o=new FileReader;o.onload=()=>{t(o.result)},o.onerror=()=>{n(o.error)},o.readAsText(e)}else if(typeof Buffer<"u"){const o=r=>Buffer.from(r).toString("utf-8");e.arrayBuffer().then(r=>{t(o(r))}).catch(r=>{n(r)})}else n(new Error("Unsupported environment"));else t("")});Object.freeze(Object.defineProperty({__proto__:null,DEFAULT_MIME_TYPE:"*/*",arrayBufferToBase64:q7,base64ToArrayBuffer:e=>{const t=typeof window<"u"&&typeof globalThis.atob=="function"?globalThis.atob(e):Buffer.from(e,"base64").toString("binary"),n=t.length,o=new Uint8Array(n);for(let r=0;r<n;r++)o[r]=t.charCodeAt(r);return o.buffer},blobToString:Ec},Symbol.toStringTag,{value:"Module"}));const Z7="data:image/png;base64,",G7="Unable to resolve image.",Ou=e=>new Promise(async(t,n)=>{let o=null;try{o=new Image,o.src=e,o.addEventListener("load",function(){t({width:o.naturalWidth,height:o.naturalHeight})},{once:!0}),o.addEventListener("error",function(){URL.revokeObjectURL(e),n("Invalid Image")},{once:!0}),await o.decode("sync")}catch{o?.src&&URL.revokeObjectURL(o.src)}o||n(G7)}),g1="image/svg+xml";var Pu,Au;Object.freeze(Object.defineProperty({__proto__:null,DATA_URL_PNG_PREFIX:Z7,getImageDataUrl:(e,t=1)=>new Promise(async(n,o)=>{let r=null;try{r=new Image,r.src=e,r.addEventListener("load",function(){try{const i=document.createElement("canvas");i.width=r.naturalWidth,i.height=r.naturalHeight,i.getContext("2d").drawImage(r,0,0);const l=i.toDataURL("image/png",t);n({elemImg:r,dataUrl:l})}catch(i){URL.revokeObjectURL(e),o(i)}},{once:!0}),r.addEventListener("error",function(){URL.revokeObjectURL(e),o("Invalid Image")},{once:!0}),await r.decode("sync")}catch{r?.src&&URL.revokeObjectURL(r.src)}r||o(G7)}),loadImageDetails:async(e,t=null)=>{let n=null;const o=async()=>{try{const i=t??"image/*",l=URL.createObjectURL(new Blob([e],{type:i})),d=await Ou(l);n={mimeType:i,naturalDimensions:d,asUrl:l}}catch{}},r=async()=>{try{const i=new TextDecoder().decode(e),l=URL.createObjectURL(new Blob([i],{type:g1})),d=await Ou(l);n={mimeType:t??g1,naturalDimensions:d,asUrl:l,asSVGText:i}}catch{}};if(t===g1?await r():t.startsWith("image/")?await o():(await o(),n||await r()),!n)throw new Error("Failed to load image");return n}},Symbol.toStringTag,{value:"Module"})),(Au=Pu||(Pu={})).resolveTypedUpdates=(e,t,n,o)=>{if(e===null)return e;if(e===void 0)return o;let r=e;if(t?.shorthand){const c=t?.shorthand(e,n);c!==void 0&&(r=c)}if(r!==null&&t?.getSubType){const c=t.getSubType(r);c&&(t=c)}const i=t?.properties,l=t?.arrayType??!1;let d=r;if(t&&t.merge&&d&&o)d=t.merge(d,o,n);else if(!l&&i){const c=Object.keys({...r,...o});d=null;for(let u=0;u<c.length;u++){const f=c[u];let p,h=r[f];if(h!==void 0){const m=i[f];p=m?(0,Au.resolveTypedUpdates)(h,m,n,o?.[f]):h}else p=o?.[f];p!=null&&(d=d??{},d[f]=p)}}return d};const Fu=`The Safari browser does not support advanced copy and paste.
14
- Copy and paste will be limited to within the browser tab.
15
-
16
- Please use Chrome or Edge if external copy and paste is required.`,x1=`You do not have permissions to access the clipboard.
17
- All copy and paste operations will be limited to the browser tab.`,K7={Safari:`The Safari browser does not support advanced copy and paste.
18
- Copy and paste will be limited to within the browser tab.
19
-
20
- Please use Chrome or Edge if external copy and paste is required.`,Perms:x1,PermsWrite:Cl()===_o.Safari?Fu:x1,PermsRead:Cl()===_o.Safari?Fu:x1},y1=async()=>new Promise(e=>{document.hasFocus()?e():globalThis.addEventListener?.("focus",()=>{e()},{once:!0}),document.activeElement.focus?.()}),b1=async(e,t,n)=>{if(Cl()===_o.Safari)return await n(new Error(K7.Safari));try{const o=async l=>{try{return await l()}catch(d){if(d.message?.includes("Document is not focused"))return!1;throw d}},r=await globalThis?.navigator?.permissions?.query({name:e,allowWithoutGesture:!0,allowWithoutSanitization:!0});let i=!1;if(r.state==="prompt"&&(i=await o(t)),i||r.state!=="granted"||(i=await t()),!i)return await n(new Error(r.state))}catch(o){return o.message==="No valid data on clipboard"||o.name==="DataError"?void 0:await n(o)}},X7=async e=>{try{return await e.read({unsanitized:[Eo]})}catch{}return await e.read()};if(!globalThis.ClipboardItem){const e=(n,o)=>new Blob([o],{type:n});class t{constructor(o,r){this._items={},this._types=Object.keys(o);const i={},l=Object.keys(o);for(let d=0;d<l.length;d++){const c=l[d];let u=o[c];i[c]=typeof u=="string"?e(c,u):u}this._items=i,this._presentationStyle=r?.presentationStyle??"unspecified"}get types(){return this._types}getType(o){return Promise.resolve(this._items[o])}supports(o){return!0}}globalThis.ClipboardItem=t}const _c=async(e,t=Eo)=>new Promise(async(n,o)=>{try{const r=await(async(i,l)=>{if(!i)return null;const d=await X7(i);let c=!1;for(let u=0;!c&&d&&u<d.length;u++)if(c=d[u].types.includes(l),c)return await d[u].getType(l);return c?void 0:null})(e,t);if(r){const i=new FileReader;i.onload=()=>{n(i.result)},i.onerror=()=>{n("")},i.readAsText(r)}else n("")}catch(r){o(r)}}),zu=async(e,t=Eo)=>{const n=await _c(e,t);if(!n)return null;let o=null;try{o=new DOMParser().parseFromString(n,Eo)}catch{console.warn("Can't parse html from clipboard.")}return o},kl="clipboard-uuid",A0="web text/uuid",Bu=e=>`<div style="display:none" ${kl}="${e}"/>`,Mm=(e,t)=>{let n=null;try{const o=new DOMParser().parseFromString(t,Eo);o.body.firstElementChild.setAttribute(kl,e),n=o.getElementsByTagName("body")[0].innerHTML}catch(o){console.warn("Can't embed uuid.",o)}return n},Nu=(e,t)=>{if(!t||!e)return!1;try{const n=t.querySelectorAll(`[${kl}="${e}"]`);if(n&&n.length===1)return!0;if(t.querySelector("parsererror"))throw new Error("We are unable to parse node");return!1}catch{return!1}};let ts=class{constructor(e){if(e?.nativeClipboard===void 0||e?.nativeClipboard===!0)try{this._nativeClipboard=globalThis?.navigator.clipboard}catch{e?.nativeClipboard===!0&&console.warn("NativeClipboard option set to true but no native clipboard available.")}else this._nativeClipboard=e?.nativeClipboard===!1?null:e?.nativeClipboard;this._disableCheckOnFocus=e?.disableCheckOnFocus??!1,this._init()}async _checkForChanges(){this._nativeClipboard&&this._state&&!this._disableCheckOnFocus&&await b1("clipboard-read",async()=>{await y1();const e=await _c(this._nativeClipboard,A0);if(!this._state||e&&e===this._state.uuid)return!0;const t=await zu(this._nativeClipboard,Eo);return!this._state||(Nu(this._state.uuid,t)||this.clear(),!0)},async e=>{e?.message==="denied"||e.message?.includes("Document is not focused")||Cl()===_o.Safari||console.warn("Unable to detect clipboard changes: ",e)})}_init(){const e=this;this._listeners=new Map,this._listenersCapture=new Map,this._state=null,this._nativeClipboard&&(this._onFocus=()=>{e._checkForChanges()},this._onBlur=()=>{globalThis.addEventListener?.("focus",e._onFocus,{once:!0})},globalThis.addEventListener?.("blur",this._onBlur),this._nativeClipboard.addEventListener("clipboardchange",t=>{e._checkForChanges()}))}async read(){if(!this._nativeClipboard)return this._state?.items??null;const e=this;return await b1("clipboard-read",async()=>{if(await y1(),this._state?.uuid){const t=await _c(this._nativeClipboard,A0);if(t&&t===e._state.uuid)return!0;const n=await zu(this._nativeClipboard,Eo);if(Nu(e._state?.uuid,n))return!0}return e._state={items:await X7(this._nativeClipboard),uuid:null,ref:null},this.dispatchEvent(new Event("clipboardread")),!0},async t=>{this.dispatchEvent(new Event("clipboarderrorread"))}),this._state?.items??[]}async write(e){return this._write({uuid:Pa(),items:e,ref:null})}async _write(e){if(!this._nativeClipboard)return this._state=e,this.dispatchEvent(new Event("clipboardwrite")),this.dispatchEvent(new Event("clipboardchange")),null;const t=this,n=[],o=e.uuid;let r=e.items??[];const i=()=>{t._state={uuid:o,ref:e.ref,items:n},t.dispatchEvent(new Event("clipboardwrite")),t.dispatchEvent(new Event("clipboardchange"))};await b1("clipboard-write",async()=>{await y1(),o&&r.length===0&&(r.push(new ClipboardItem({[A0]:new Blob([o],{type:A0})})),r.push(new ClipboardItem({[Eo]:new Blob([Bu(o)],{type:Eo})})));for(let l=0;l<Math.min(1,r.length);l++){const d=r[l];let c=d.types.indexOf(Eo),u=null;if(c!==-1){const h=await d.getType(Eo);u=await Ec(h),u&&(u=Mm(o,u))}if(!u&&d.types.includes(Hr)){const h=await d.getType(Hr);if(h){let m=null;typeof h=="string"?(console.warn("text as string",h),m=h):m=await Ec(h),m&&(u=`<div ${kl}="${o}">${m}</div>`)}}if(!u&&d.types.includes(f1)){const h=await d.getType(f1),m=q7(await h.arrayBuffer());u=`<div ${kl}="${o}"><img src="${Z7+m}"/></div>`}!u&&o&&(u=Bu(o));const f=new Blob([u??""],{type:Eo}),p={};for(let h=0;h<d.types.length;h++){const m=d.types[h];p[m]=h===c?f:d.getType(m)}u&&c===-1&&(p[Eo]=f),o&&(p[A0]=new Blob([o],{type:A0})),n.push(new ClipboardItem(p))}try{n&&n.length!==0?await this._nativeClipboard.write(n):await(async l=>{l&&await l.writeText("")})(this._nativeClipboard)}catch(l){l.message?.includes("Document is not focused")||console.warn("Unable to write to native clipboard: ",l)}return i(),!0},async l=>{this.dispatchEvent(new Event("clipboarderrorwrite")),i()})}async writeReference(e){if(!e)return void this.clear();let t=null;const n={};try{const r=await e.toText?.()??null;r&&(n[Hr]=new Blob([r??""],{type:Hr}))}catch(r){t=r}try{const r=await e.toHtml?.()??null;r&&(n[Eo]=new Blob([r],{type:Eo}))}catch(r){t=r,console.warn("export to html",r)}try{const r=await e.toImage?.()??null;r&&(n[f1]=r)}catch(r){t=r,console.warn("export to png",r)}const o=this._write({uuid:Pa(),ref:e,items:Object.keys(n).length>0?[new ClipboardItem(n)]:null});if(t)throw t;return o}clear(e=!1){this._state&&(this._state=null,e&&this._write({uuid:null,ref:null,items:null}),this.dispatchEvent(new Event("clipboardwrite")),this.dispatchEvent(new Event("clipboardchange")))}async readReference(){return await this.read(),this._state?.ref??null}readText(){return new Promise(async(e,t)=>{const n=await this.read();let o=null;for(let i=0;!o&&n&&i<n.length;i++)n[i].types.includes(Hr)&&(o=await n[i].getType(Hr));if(!o)return void e("");const r=new FileReader;r.onload=()=>{e(r.result)},r.readAsText(o),r.onerror=i=>{t(i)}})}async writeText(e){const t=[new ClipboardItem({[Hr]:new Blob([e],{type:Hr})})];return this._write({uuid:Pa(),items:t,ref:null})}addEventListener(e,t,n={}){const o=n?.capture?this._listenersCapture:this._listeners;let r=o.get(e);r||(r=new Map,o.set(e,r)),r.set(t,typeof n=="boolean"?{}:n)}dispatchEvent(e){if(!e)return;const t=n=>{const o=n.get(e.type);o&&o.forEach((r,i)=>{try{typeof i=="function"?i(e):i.handleEvent&&i.handleEvent(e),r.once&&o.delete(i)}catch(l){console.warn(l)}})};return t(this._listenersCapture),t(this._listeners),!0}removeEventListener(e,t,n){const o=n?.capture?this._listenersCapture:this._listeners,r=o.get(e);r&&(r.delete(t),r.size===0&&o.delete(e))}close(){globalThis.removeEventListener?.("focus",this._onFocus),globalThis.removeEventListener?.("blur",this._onBlur)}};var v1;(v1=ts||(ts={})).ErrorMessages=K7,v1.Global=new v1;const di=e=>a.jsx(V.SvgIcon,{...e,children:a.jsx("path",{})}),_d=e=>a.jsx(V.SvgIcon,{...e,children:a.jsx("path",{className:"styled info",d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"})}),Vu=e=>a.jsxs(V.SvgIcon,{...e,children:[a.jsx("path",{d:"m 12,21.888913 v -7 h 2 v 7 z M 12,9 V 2 h 2 V 9 Z M 4,2 V 21.999938 H 2 V 2 Z"}),a.jsx("path",{className:"styled info",d:"m 6,12.91274 h 3.9862992 3.8490838 4.160058 v 2.554311 L 22,11.635609 17.995441,7.8041663 V 10.358479 H 13.835383 9.9863002 6 Z"})]}),Rm=e=>a.jsxs(V.SvgIcon,{...e,children:[a.jsx("path",{d:"M 22.062389,1.9999683 V 22.000032 h -2 V 1.9999683 Z m -18.062427,0 V 22.000032 h -2 V 1.9999683 Z"}),a.jsx("path",{className:"styled info",d:"m 6.0839844,6.3867187 h 7.4238286 c 2.442808,0 4.423828,1.995808 4.423828,4.4589843 0,2.463178 -1.981061,4.460938 -4.423828,4.460938 H 8.9316406 v 1.404296 L 6.1132812,13.871094 8.9316406,11.03125 v 1.404297 h 4.5761724 c 0.870956,0 1.576171,-0.713095 1.576171,-1.589844 0,-0.8767853 -0.70537,-1.5878905 -1.576171,-1.5878905 H 6.0839844 Z"})]}),Im=e=>a.jsxs(V.SvgIcon,{...e,children:[a.jsx("path",{d:"M 4,3 V 21 H 2 V 3 Z m 18,5.573e-4 V 21.000557 H 20 V 3.0005573 Z"}),a.jsx("path",{className:"styled info",d:"m 8,10.715958 v 2.57 h 12 v -2.57 z"})]}),Dm=e=>a.jsxs(V.SvgIcon,{...e,children:[a.jsx("path",{d:"M 21.974894,2.0582915 V 22.058355 h -2 V 2.0582915 Z M 3.999962,1.9999683 V 22.000032 h -2 V 1.9999683 Z"}),a.jsx("path",{className:"styled info",d:"m 6.2289672,7.8040604 -6.3e-5,8.2560526 h 2.518176 l 2e-5,-2.642838 h 6.4753038 l -2e-5,2.642838 h 2.518175 l 6.1e-5,-8.2560526 h -2.518174 l -2.2e-5,2.9478576 H 8.7471192 l 2.3e-5,-2.9478576 z"})]}),Lm=e=>a.jsx(V.SvgIcon,{...e,children:a.jsx("path",{d:"M 9.2299627,5.1022181 V 7.0235319 H 11.052809 L 9.2996104,17.11043 H 7.3086489 v 1.921315 H 13.072591 V 17.11043 H 11.249744 L 13.002943,7.0235319 h 1.990962 V 5.1022181 Z"})}),Om=e=>a.jsx(V.SvgIcon,{...e,children:a.jsx("path",{d:"m 15.500659,11.85365 c 0.97,-0.67 1.65,-1.77 1.65,-2.79 0,-2.2599999 -1.75,-3.9999999 -4,-3.9999999 H 6.9006595 V 19.06365 h 7.0399995 c 2.09,0 3.71,-1.7 3.71,-3.79 0,-1.52 -0.86,-2.82 -2.15,-3.42 M 9.9006595,7.5636501 h 2.9999995 c 0.83,0 1.5,0.6699999 1.5,1.4999999 0,0.83 -0.67,1.5 -1.5,1.5 H 9.9006595 Z M 13.400659,16.56365 H 9.9006595 v -3 h 3.4999995 c 0.83,0 1.5,0.67 1.5,1.5 0,0.83 -0.67,1.5 -1.5,1.5"})}),Pm=e=>a.jsxs(V.SvgIcon,{...e,children:[a.jsx("path",{d:"M 16.11036,4.2052293 C 15.637405,4.2051462 15.167307,4.3880965 14.807694,4.7470462 12.884011,6.6697055 6.3785302,13.175428 4.5724566,14.980637 c -0.816402,0.823942 -0.8166797,2.144871 0.00165,2.96929 l 4.7940106,4.79401 c 0.1560329,0.154865 0.3687977,0.250643 0.5978103,0.25197 h 9.4299205 c 1.106674,-0.02126 1.103958,-1.676706 -0.0099,-1.697913 H 14.27574 c 0.36412,-0.363115 0.7726,-0.769137 0.900832,-0.89754 l 0.06259,-0.05599 0.0018,-0.0018 v -0.0018 l 0.02306,-0.02964 c 0.01852,-0.01851 0.064,-0.064 0.154803,-0.154806 1.004947,-1.004932 6.080948,-6.082847 7.185253,-7.186898 0.0828,-0.08277 0.143524,-0.145217 0.176214,-0.177861 l 0.0066,-0.0066 0.005,-0.005 0.0018,-0.0018 0.0018,-0.0018 0.0018,-0.0018 0.01976,-0.01812 c 0.720325,-0.721604 0.720603,-1.883449 0,-2.605333 L 17.413027,4.7470462 C 17.053509,4.3879396 16.583014,4.2053121 16.11036,4.2052293 Z m 0,1.6962662 c 0.04001,1.39e-5 0.07896,0.013161 0.107046,0.041172 l 5.40335,5.4033495 c 0.05964,0.06023 0.05788,0.158934 0.0018,0.215738 L 14.647948,18.536208 9.0255673,12.915474 16.001667,5.9426669 c 0.02812,-0.028008 0.06743,-0.041186 0.108693,-0.041171 z M 7.8315934,14.111095 13.452328,19.73183 11.886163,21.297994 H 10.311765 L 5.7680774,16.755952 c -0.1588239,-0.160312 -0.1571288,-0.424381 0,-0.582988 z"}),a.jsx("path",{className:"styled info",d:"M 5.7580928,1.3371537 4.9319914,4.6570488 H 2.2351143 V 5.7189333 H 4.6566242 L 3.933785,8.6756882 H 1.3143556 V 9.7375737 H 3.6584179 L 2.840922,13.047141 H 3.8546168 L 4.6721135,9.7375737 H 6.7958823 L 6.1677007,12.277835 7.5152788,10.930257 7.8112989,9.7375737 H 8.709684 L 9.7715688,8.6756882 H 8.086666 L 8.8095044,5.7189333 H 11.428935 V 4.6570488 H 9.0848717 L 9.9109739,1.3371537 H 8.8955565 L 8.0694549,4.6570488 H 5.947407 L 6.7717875,1.3371537 Z M 5.6634348,5.701723 H 7.8181826 L 7.079855,8.6911775 H 4.9251067 Z"})]}),Hu=e=>a.jsx(V.SvgIcon,{...e,children:a.jsx("path",{d:"M 15.03125,1.3183594 C 14.54185,1.3182736 14.053088,1.5042411 13.679688,1.8769531 11.398308,4.157118 3.6820968,11.87362 1.5410156,14.013672 c -0.86142447,0.86938 -0.86098491,2.265402 0.00195,3.134765 l 5.6855469,5.685547 c 0.1357951,0.134779 0.3202858,0.213709 0.515625,0.214844 H 18.921875 c 0.952769,-0.0183 0.952325,-1.440701 -0.0059,-1.458984 h -6.72461 c 0.52861,-0.528334 1.319592,-1.318068 1.550782,-1.548828 l 0.0293,-0.02734 0.0059,-0.0098 0.002,-0.002 0.0039,-0.0039 0.0059,-0.0059 0.0039,-0.0039 0.01172,-0.01172 0.0098,-0.0078 c 0.0012,-0.0011 0.01373,-0.01569 0.01563,-0.01758 0.0213,-0.02126 0.07807,-0.07612 0.1875,-0.185547 1.191778,-1.191762 7.211708,-7.213963 8.521484,-8.523437 0.0975,-0.09747 0.168608,-0.170617 0.208985,-0.210938 l 0.0078,-0.0078 0.0059,-0.0059 0.002,-0.002 0.0039,-0.0039 0.002,-0.002 0.002,-0.002 0.002,-0.002 0.01758,-0.01563 c 0.746601,-0.747927 0.74678,-1.9550164 0,-2.7031246 L 16.382812,1.8769531 C 16.009537,1.5041056 15.520443,1.3184452 15.03125,1.3183594 Z m 0,1.4570312 c 0.114653,3.98e-5 0.230973,0.043724 0.320313,0.1328125 l 6.408203,6.4082032 c 0.175951,0.1776856 0.17626,0.4665109 0.002,0.6425781 L 13.296875,18.423828 6.2421875,11.371094 14.708984,2.9082031 c 0.08956,-0.089187 0.207055,-0.1328525 0.322266,-0.1328125 z m -9.8183594,9.6269534 7.0527344,7.052734 -2.134766,2.134766 H 8.0449219 L 2.5722656,16.119141 c -0.2949291,-0.297692 -0.2937607,-0.781608 0,-1.078125 z"})}),Y7=e=>a.jsxs(V.SvgIcon,{...e,children:[a.jsx("path",{d:"M 16.11036,4.2052293 C 15.637405,4.2051462 15.167307,4.3880965 14.807694,4.7470462 12.884011,6.6697055 6.3785302,13.175428 4.5724566,14.980637 c -0.816402,0.823942 -0.8166797,2.144871 0.00165,2.96929 l 4.7940106,4.79401 c 0.1560329,0.154865 0.3687977,0.250643 0.5978103,0.25197 h 9.4299205 c 1.106674,-0.02126 1.103958,-1.676706 -0.0099,-1.697913 H 14.27574 c 0.36412,-0.363115 0.7726,-0.769137 0.900832,-0.89754 l 0.06259,-0.05599 0.0018,-0.0018 v -0.0018 l 0.02306,-0.02964 c 0.01852,-0.01851 0.064,-0.064 0.154803,-0.154806 1.004947,-1.004932 6.080948,-6.082847 7.185253,-7.186898 0.0828,-0.08277 0.143524,-0.145217 0.176214,-0.177861 l 0.0066,-0.0066 0.005,-0.005 0.0018,-0.0018 0.0018,-0.0018 0.0018,-0.0018 0.01976,-0.01812 c 0.720325,-0.721604 0.720603,-1.883449 0,-2.605333 L 17.413027,4.7470462 C 17.053509,4.3879396 16.583014,4.2053121 16.11036,4.2052293 Z m 0,1.6962662 c 0.04001,1.39e-5 0.07896,0.013161 0.107046,0.041172 l 5.40335,5.4033495 c 0.05964,0.06023 0.05788,0.158934 0.0018,0.215738 L 14.647948,18.536208 9.0255673,12.915474 16.001667,5.9426669 c 0.02812,-0.028008 0.06743,-0.041186 0.108693,-0.041171 z M 7.8315934,14.111095 13.452328,19.73183 11.886163,21.297994 H 10.311765 L 5.7680774,16.755952 c -0.1588239,-0.160312 -0.1571288,-0.424381 0,-0.582988 z"}),a.jsx("path",{className:"styled info",d:"m 1.6679826,1.0184502 c -0.330106,0 -0.601562,0.314804 -0.601562,0.701172 v 2.810547 c 0,0.386369 0.271456,0.703125 0.601562,0.703125 h 7.201172 c 0.3301052,0 0.5996094,-0.316756 0.5996094,-0.703125 v -0.703125 h 0.601561 v 2.810547 H 4.0683736 v 7.3261708 l 2.40039,-2.363281 V 8.0418882 H 10.08595 l 1.183594,-1.164063 v -4.455078 h -1.80078 v -0.703125 c 0,-0.386368 -0.2695042,-0.701172 -0.5996094,-0.701172 z"})]});function j0(e,...t){const n=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(o=>n.searchParams.append("args[]",o)),`Minified MUI error #${e}; visit ${n} for the full message.`}const Td="$$material";function J7(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Q7(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if(typeof t=="function"){var n=function o(){var r=!1;try{r=this instanceof o}catch{}return r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(o){var r=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(n,o,r.get?r:{enumerable:!0,get:function(){return e[o]}})}),n}var $u,Wu,Uu={exports:{}},kn={},e8=(Wu||(Wu=1,Uu.exports=function(){if($u)return kn;$u=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),r=Symbol.for("react.profiler"),i=Symbol.for("react.consumer"),l=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),h=Symbol.for("react.view_transition"),m=Symbol.for("react.client.reference");function g(x){if(typeof x=="object"&&x!==null){var y=x.$$typeof;switch(y){case e:switch(x=x.type){case n:case r:case o:case c:case u:case h:return x;default:switch(x=x&&x.$$typeof){case l:case d:case p:case f:case i:return x;default:return y}}case t:return y}}}return kn.ContextConsumer=i,kn.ContextProvider=l,kn.Element=e,kn.ForwardRef=d,kn.Fragment=n,kn.Lazy=p,kn.Memo=f,kn.Portal=t,kn.Profiler=r,kn.StrictMode=o,kn.Suspense=c,kn.SuspenseList=u,kn.isContextConsumer=function(x){return g(x)===i},kn.isContextProvider=function(x){return g(x)===l},kn.isElement=function(x){return typeof x=="object"&&x!==null&&x.$$typeof===e},kn.isForwardRef=function(x){return g(x)===d},kn.isFragment=function(x){return g(x)===n},kn.isLazy=function(x){return g(x)===p},kn.isMemo=function(x){return g(x)===f},kn.isPortal=function(x){return g(x)===t},kn.isProfiler=function(x){return g(x)===r},kn.isStrictMode=function(x){return g(x)===o},kn.isSuspense=function(x){return g(x)===c},kn.isSuspenseList=function(x){return g(x)===u},kn.isValidElementType=function(x){return typeof x=="string"||typeof x=="function"||x===n||x===r||x===o||x===c||x===u||typeof x=="object"&&x!==null&&(x.$$typeof===p||x.$$typeof===f||x.$$typeof===l||x.$$typeof===i||x.$$typeof===d||x.$$typeof===m||x.getModuleId!==void 0)},kn.typeOf=g,kn}()),Uu.exports);function Or(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return!(t!==null&&t!==Object.prototype&&Object.getPrototypeOf(t)!==null||Symbol.toStringTag in e||Symbol.iterator in e)}function t8(e){if(i0.isValidElement(e)||e8.isValidElementType(e)||!Or(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=t8(e[n])}),t}function Ho(e,t,n={clone:!0}){const o=n.clone?{...e}:e;return Or(e)&&Or(t)&&Object.keys(t).forEach(r=>{i0.isValidElement(t[r])||e8.isValidElementType(t[r])?o[r]=t[r]:Or(t[r])&&Object.prototype.hasOwnProperty.call(e,r)&&Or(e[r])?o[r]=Ho(e[r],t[r],n):n.clone?o[r]=Or(t[r])?t8(t[r]):t[r]:o[r]=t[r]}),o}function jd(e,t=0,n=1){return function(o,r=Number.MIN_SAFE_INTEGER,i=Number.MAX_SAFE_INTEGER){return Math.max(r,Math.min(o,i))}(e,t,n)}function l0(e){if(e.type)return e;if(e.charAt(0)==="#")return l0(function(i){i=i.slice(1);const l=new RegExp(`.{1,${i.length>=6?2:1}}`,"g");let d=i.match(l);return d&&d[0].length===1&&(d=d.map(c=>c+c)),d?`rgb${d.length===4?"a":""}(${d.map((c,u)=>u<3?parseInt(c,16):Math.round(parseInt(c,16)/255*1e3)/1e3).join(", ")})`:""}(e));const t=e.indexOf("("),n=e.substring(0,t);if(!["rgb","rgba","hsl","hsla","color"].includes(n))throw new Error(j0(9,e));let o,r=e.substring(t+1,e.length-1);if(n==="color"){if(r=r.split(" "),o=r.shift(),r.length===4&&r[3].charAt(0)==="/"&&(r[3]=r[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(o))throw new Error(j0(10,o))}else r=r.split(",");return r=r.map(i=>parseFloat(i)),{type:n,values:r,colorSpace:o}}const Ji=(e,t)=>{try{return(n=>{const o=l0(n);return o.values.slice(0,3).map((r,i)=>o.type.includes("hsl")&&i!==0?`${r}%`:r).join(" ")})(e)}catch{return e}};function Os(e){const{type:t,colorSpace:n}=e;let{values:o}=e;return t.includes("rgb")?o=o.map((r,i)=>i<3?parseInt(r,10):r):t.includes("hsl")&&(o[1]=`${o[1]}%`,o[2]=`${o[2]}%`),o=t.includes("color")?`${n} ${o.join(" ")}`:`${o.join(", ")}`,`${t}(${o})`}function n8(e){e=l0(e);const{values:t}=e,n=t[0],o=t[1]/100,r=t[2]/100,i=o*Math.min(r,1-r),l=(u,f=(u+n/30)%12)=>r-i*Math.max(Math.min(f-3,9-f,1),-1);let d="rgb";const c=[Math.round(255*l(0)),Math.round(255*l(8)),Math.round(255*l(4))];return e.type==="hsla"&&(d+="a",c.push(t[3])),Os({type:d,values:c})}function Tc(e){let t=(e=l0(e)).type==="hsl"||e.type==="hsla"?l0(n8(e)).values:e.values;return t=t.map(n=>(e.type!=="color"&&(n/=255),n<=.03928?n/12.92:((n+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function oa(e,t,n){try{return function(o,r){return o=l0(o),r=jd(r),o.type!=="rgb"&&o.type!=="hsl"||(o.type+="a"),o.type==="color"?o.values[3]=`/${r}`:o.values[3]=r,Os(o)}(e,t)}catch{return e}}function Md(e,t){if(e=l0(e),t=jd(t),e.type.includes("hsl"))e.values[2]*=1-t;else if(e.type.includes("rgb")||e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return Os(e)}function Tn(e,t,n){try{return Md(e,t)}catch{return e}}function Rd(e,t){if(e=l0(e),t=jd(t),e.type.includes("hsl"))e.values[2]+=(100-e.values[2])*t;else if(e.type.includes("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return Os(e)}function jn(e,t,n){try{return Rd(e,t)}catch{return e}}function ra(e,t,n){try{return function(o,r=.15){return Tc(o)>.5?Md(o,r):Rd(o,r)}(e,t)}catch{return e}}const El={black:"#000",white:"#fff"},Am={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},qu="#d32f2f",Zu="#42a5f5",Gu="#0288d1";function o8(){return{text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:El.white,default:El.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}}}const Fm=o8();function r8(){return{text:{primary:El.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:El.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}}}const Ku=r8();function Xu(e,t,n,o){const r=o.light||o,i=o.dark||1.5*o;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=Rd(e.main,r):t==="dark"&&(e.dark=Md(e.main,i)))}function Id(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:o=.2,...r}=e,i=e.primary||function(g="light"){return g==="dark"?{main:"#90caf9",light:"#e3f2fd",dark:Zu}:{main:"#1976d2",light:Zu,dark:"#1565c0"}}(t),l=e.secondary||function(g="light"){return g==="dark"?{main:"#ce93d8",light:"#f3e5f5",dark:"#ab47bc"}:{main:"#9c27b0",light:"#ba68c8",dark:"#7b1fa2"}}(t),d=e.error||function(g="light"){return g==="dark"?{main:"#f44336",light:"#e57373",dark:qu}:{main:qu,light:"#ef5350",dark:"#c62828"}}(t),c=e.info||function(g="light"){return g==="dark"?{main:"#29b6f6",light:"#4fc3f7",dark:Gu}:{main:Gu,light:"#03a9f4",dark:"#01579b"}}(t),u=e.success||function(g="light"){return g==="dark"?{main:"#66bb6a",light:"#81c784",dark:"#388e3c"}:{main:"#2e7d32",light:"#4caf50",dark:"#1b5e20"}}(t),f=e.warning||function(g="light"){return g==="dark"?{main:"#ffa726",light:"#ffb74d",dark:"#f57c00"}:{main:"#ed6c02",light:"#ff9800",dark:"#e65100"}}(t);function p(g){return function(x,y){const v=Tc(x),b=Tc(y);return(Math.max(v,b)+.05)/(Math.min(v,b)+.05)}(g,Ku.text.primary)>=n?Ku.text.primary:Fm.text.primary}const h=({color:g,name:x,mainShade:y=500,lightShade:v=300,darkShade:b=700})=>{if(!(g={...g}).main&&g[y]&&(g.main=g[y]),!g.hasOwnProperty("main"))throw new Error(j0(11,x?` (${x})`:"",y));if(typeof g.main!="string")throw new Error(j0(12,x?` (${x})`:"",JSON.stringify(g.main)));return Xu(g,"light",v,o),Xu(g,"dark",b,o),g.contrastText||(g.contrastText=p(g.main)),g};let m;return t==="light"?m=o8():t==="dark"&&(m=r8()),Ho({common:{...El},mode:t,primary:h({color:i,name:"primary"}),secondary:h({color:l,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:h({color:d,name:"error"}),warning:h({color:f,name:"warning"}),info:h({color:c,name:"info"}),success:h({color:u,name:"success"}),grey:Am,contrastThreshold:n,getContrastText:p,augmentColor:h,tonalOffset:o,...m},r)}var Yu,Ju,Qu,e5,t5,n5={exports:{}};function zm(){if(e5)return Qu;e5=1;var e=Ju?Yu:(Ju=1,Yu="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");function t(){}function n(){}return n.resetWarningCache=t,Qu=function(){function o(l,d,c,u,f,p){if(p!==e){var h=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw h.name="Invariant Violation",h}}function r(){return o}o.isRequired=o;var i={array:o,bigint:o,bool:o,func:o,number:o,object:o,string:o,symbol:o,any:o,arrayOf:r,element:o,elementType:o,instanceOf:r,node:o,objectOf:r,oneOf:r,oneOfType:r,shape:r,exact:r,checkPropTypes:n,resetWarningCache:t};return i.PropTypes=i,i}}function jc(){return t5||(t5=1,n5.exports=zm()()),n5.exports}function sl(e,t){return t?Ho(e,t,{clone:!1}):e}const Ps={xs:0,sm:600,md:900,lg:1200,xl:1536},o5={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Ps[e]}px)`},Bm={containerQueries:e=>({up:t=>{let n=typeof t=="number"?t:Ps[t]||t;return typeof n=="number"&&(n=`${n}px`),e?`@container ${e} (min-width:${n})`:`@container (min-width:${n})`}})};function zr(e,t,n){const o=e.theme||{};if(Array.isArray(t)){const r=o.breakpoints||o5;return t.reduce((i,l,d)=>(i[r.up(r.keys[d])]=n(t[d]),i),{})}if(typeof t=="object"){const r=o.breakpoints||o5;return Object.keys(t).reduce((i,l)=>{if(d=r.keys,(c=l)==="@"||c.startsWith("@")&&(d.some(u=>c.startsWith(`@${u}`))||c.match(/^@\d/))){const u=function(f,p){const h=p.match(/^@([^/]+)?\/?(.+)?$/);if(!h)return null;const[,m,g]=h,x=Number.isNaN(+m)?m||0:+m;return f.containerQueries(g).up(x)}(o.containerQueries?o:Bm,l);u&&(i[u]=n(t[l],l))}else if(Object.keys(r.values||Ps).includes(l))i[r.up(l)]=n(t[l],l);else{const u=l;i[u]=t[u]}var d,c;return i},{})}return n(t)}function i8(e){if(typeof e!="string")throw new Error(j0(7));return e.charAt(0).toUpperCase()+e.slice(1)}function As(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const o=`vars.${t}`.split(".").reduce((r,i)=>r&&r[i]?r[i]:null,e);if(o!=null)return o}return t.split(".").reduce((o,r)=>o&&o[r]!=null?o[r]:null,e)}function ns(e,t,n,o=n){let r;return r=typeof e=="function"?e(n):Array.isArray(e)?e[n]||o:As(e,n)||o,t&&(r=t(r,o,e)),r}function Yn(e){const{prop:t,cssProperty:n=e.prop,themeKey:o,transform:r}=e,i=l=>{if(l[t]==null)return null;const d=l[t],c=As(l.theme,o)||{};return zr(l,d,u=>{let f=ns(c,r,u);return u===f&&typeof u=="string"&&(f=ns(c,r,`${t}${u==="default"?"":i8(u)}`,u)),n===!1?f:{[n]:f}})};return i.propTypes={},i.filterProps=[t],i}const Nm={m:"margin",p:"padding"},Vm={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},r5={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Hm=function(){const e={};return t=>(e[t]===void 0&&(e[t]=(n=>{if(n.length>2){if(!r5[n])return[n];n=r5[n]}const[o,r]=n.split(""),i=Nm[o],l=Vm[r]||"";return Array.isArray(l)?l.map(d=>i+d):[i+l]})(t)),e[t])}(),l8=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],a8=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function Vl(e,t,n,o){const r=As(e,t,!0)??n;return typeof r=="number"||typeof r=="string"?i=>typeof i=="string"?i:typeof r=="string"?`calc(${i} * ${r})`:r*i:Array.isArray(r)?i=>{if(typeof i=="string")return i;const l=Math.abs(i),d=r[l];return i>=0?d:typeof d=="number"?-d:`-${d}`}:typeof r=="function"?r:()=>{}}function Dd(e){return Vl(e,"spacing",8)}function Hl(e,t){return typeof t=="string"||t==null?t:e(t)}function s8(e,t){const n=Dd(e.theme);return Object.keys(e).map(o=>function(r,i,l,d){if(!i.includes(l))return null;const c=function(u,f){return p=>u.reduce((h,m)=>(h[m]=Hl(f,p),h),{})}(Hm(l),d);return zr(r,r[l],c)}(e,t,o,n)).reduce(sl,{})}function Hn(e){return s8(e,l8)}function $n(e){return s8(e,a8)}function c8(e,t){const n={...t};for(const o in e)if(Object.prototype.hasOwnProperty.call(e,o)){const r=o;if(r==="components"||r==="slots")n[r]={...e[r],...n[r]};else if(r==="componentsProps"||r==="slotProps"){const i=e[r],l=t[r];if(l)if(i){n[r]={...l};for(const d in i)if(Object.prototype.hasOwnProperty.call(i,d)){const c=d;n[r][c]=c8(i[c],l[c])}}else n[r]=l;else n[r]=i||{}}else n[r]===void 0&&(n[r]=e[r])}return n}Hn.propTypes={},Hn.filterProps=l8,$n.propTypes={},$n.filterProps=a8;const i5=(e,t,n,o=[])=>{let r=e;t.forEach((i,l)=>{l===t.length-1?Array.isArray(r)?r[Number(i)]=n:r&&typeof r=="object"&&(r[i]=n):r&&typeof r=="object"&&(r[i]||(r[i]=o.includes(i)?[]:{}),r=r[i])})};function w1(e,t){const{prefix:n,shouldSkipGeneratingVar:o}=t||{},r={},i={},l={};var d,c;return d=(u,f,p)=>{if(!(typeof f!="string"&&typeof f!="number"||o&&o(u,f))){const g=`--${n?`${n}-`:""}${u.join("-")}`,x=(h=u,typeof(m=f)=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(y=>h.includes(y))||h[h.length-1].toLowerCase().includes("opacity")?m:`${m}px`:m);Object.assign(r,{[g]:x}),i5(i,u,`var(${g})`,p),i5(l,u,`var(${g}, ${x})`,p)}var h,m},c=u=>u[0]==="vars",function u(f,p=[],h=[]){Object.entries(f).forEach(([m,g])=>{(!c||c&&!c([...p,m]))&&g!=null&&(typeof g=="object"&&Object.keys(g).length>0?u(g,[...p,m],Array.isArray(g)?[...h,m]:h):d([...p,m],g,h))})}(e),{css:r,vars:i,varsWithDefaults:l}}function $m(e){const t={};return Object.entries(e).forEach(n=>{const[o,r]=n;typeof r=="object"&&(t[o]=`${r.fontStyle?`${r.fontStyle} `:""}${r.fontVariant?`${r.fontVariant} `:""}${r.fontWeight?`${r.fontWeight} `:""}${r.fontStretch?`${r.fontStretch} `:""}${r.fontSize||""}${r.lineHeight?`/${r.lineHeight} `:""}${r.fontFamily||""}`)}),t}function os(...e){const t=e.reduce((o,r)=>(r.filterProps.forEach(i=>{o[i]=r}),o),{}),n=o=>Object.keys(o).reduce((r,i)=>t[i]?sl(r,t[i](o)):r,{});return n.propTypes={},n.filterProps=e.reduce((o,r)=>o.concat(r.filterProps),[]),n}function tr(e){return typeof e!="number"?e:`${e}px solid`}function ar(e,t){return Yn({prop:e,themeKey:"borders",transform:t})}const Wm=ar("border",tr),Um=ar("borderTop",tr),qm=ar("borderRight",tr),Zm=ar("borderBottom",tr),Gm=ar("borderLeft",tr),Km=ar("borderColor"),Xm=ar("borderTopColor"),Ym=ar("borderRightColor"),Jm=ar("borderBottomColor"),Qm=ar("borderLeftColor"),eg=ar("outline",tr),tg=ar("outlineColor"),Aa=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Vl(e.theme,"shape.borderRadius",4),n=o=>({borderRadius:Hl(t,o)});return zr(e,e.borderRadius,n)}return null};Aa.propTypes={},Aa.filterProps=["borderRadius"],os(Wm,Um,qm,Zm,Gm,Km,Xm,Ym,Jm,Qm,Aa,eg,tg);const rs=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Vl(e.theme,"spacing",8),n=o=>({gap:Hl(t,o)});return zr(e,e.gap,n)}return null};rs.propTypes={},rs.filterProps=["gap"];const is=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Vl(e.theme,"spacing",8),n=o=>({columnGap:Hl(t,o)});return zr(e,e.columnGap,n)}return null};is.propTypes={},is.filterProps=["columnGap"];const Fa=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Vl(e.theme,"spacing",8),n=o=>({rowGap:Hl(t,o)});return zr(e,e.rowGap,n)}return null};function ti(e,t){return t==="grey"?t:e}function Bo(e){return e<=1&&e!==0?100*e+"%":e}Fa.propTypes={},Fa.filterProps=["rowGap"],os(rs,is,Fa,Yn({prop:"gridColumn"}),Yn({prop:"gridRow"}),Yn({prop:"gridAutoFlow"}),Yn({prop:"gridAutoColumns"}),Yn({prop:"gridAutoRows"}),Yn({prop:"gridTemplateColumns"}),Yn({prop:"gridTemplateRows"}),Yn({prop:"gridTemplateAreas"}),Yn({prop:"gridArea"})),os(Yn({prop:"color",themeKey:"palette",transform:ti}),Yn({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:ti}),Yn({prop:"backgroundColor",themeKey:"palette",transform:ti}));const ng=Yn({prop:"width",transform:Bo}),Ld=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{const o=e.theme?.breakpoints?.values?.[n]||Ps[n];return o?e.theme?.breakpoints?.unit!=="px"?{maxWidth:`${o}${e.theme.breakpoints.unit}`}:{maxWidth:o}:{maxWidth:Bo(n)}};return zr(e,e.maxWidth,t)}return null};Ld.filterProps=["maxWidth"];const og=Yn({prop:"minWidth",transform:Bo}),rg=Yn({prop:"height",transform:Bo}),ig=Yn({prop:"maxHeight",transform:Bo}),lg=Yn({prop:"minHeight",transform:Bo});Yn({prop:"size",cssProperty:"width",transform:Bo}),Yn({prop:"size",cssProperty:"height",transform:Bo}),os(ng,Ld,og,rg,ig,lg,Yn({prop:"boxSizing"}));const Fs={border:{themeKey:"borders",transform:tr},borderTop:{themeKey:"borders",transform:tr},borderRight:{themeKey:"borders",transform:tr},borderBottom:{themeKey:"borders",transform:tr},borderLeft:{themeKey:"borders",transform:tr},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:tr},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Aa},color:{themeKey:"palette",transform:ti},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:ti},backgroundColor:{themeKey:"palette",transform:ti},p:{style:$n},pt:{style:$n},pr:{style:$n},pb:{style:$n},pl:{style:$n},px:{style:$n},py:{style:$n},padding:{style:$n},paddingTop:{style:$n},paddingRight:{style:$n},paddingBottom:{style:$n},paddingLeft:{style:$n},paddingX:{style:$n},paddingY:{style:$n},paddingInline:{style:$n},paddingInlineStart:{style:$n},paddingInlineEnd:{style:$n},paddingBlock:{style:$n},paddingBlockStart:{style:$n},paddingBlockEnd:{style:$n},m:{style:Hn},mt:{style:Hn},mr:{style:Hn},mb:{style:Hn},ml:{style:Hn},mx:{style:Hn},my:{style:Hn},margin:{style:Hn},marginTop:{style:Hn},marginRight:{style:Hn},marginBottom:{style:Hn},marginLeft:{style:Hn},marginX:{style:Hn},marginY:{style:Hn},marginInline:{style:Hn},marginInlineStart:{style:Hn},marginInlineEnd:{style:Hn},marginBlock:{style:Hn},marginBlockStart:{style:Hn},marginBlockEnd:{style:Hn},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:rs},rowGap:{style:Fa},columnGap:{style:is},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Bo},maxWidth:{style:Ld},minWidth:{transform:Bo},height:{transform:Bo},maxHeight:{transform:Bo},minHeight:{transform:Bo},boxSizing:{},font:{themeKey:"font"},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}},ui=function(){function e(t,n,o,r){const i={[t]:n,theme:o},l=r[t];if(!l)return{[t]:n};const{cssProperty:d=t,themeKey:c,transform:u,style:f}=l;if(n==null)return null;if(c==="typography"&&n==="inherit")return{[t]:n};const p=As(o,c)||{};return f?f(i):zr(i,n,h=>{let m=ns(p,u,h);return h===m&&typeof h=="string"&&(m=ns(p,u,`${t}${h==="default"?"":i8(h)}`,h)),d===!1?m:{[d]:m}})}return function t(n){const{sx:o,theme:r={}}=n||{};if(!o)return null;const i=r.unstable_sxConfig??Fs;function l(d){let c=d;if(typeof d=="function")c=d(r);else if(typeof d!="object")return d;if(!c)return null;const u=function(h={}){return h.keys?.reduce((m,g)=>(m[h.up(g)]={},m),{})||{}}(r.breakpoints),f=Object.keys(u);let p=u;return Object.keys(c).forEach(h=>{const m=typeof(g=c[h])=="function"?g(r):g;var g;if(m!=null)if(typeof m=="object")if(i[h])p=sl(p,e(h,m,r,i));else{const x=zr({theme:r},m,y=>({[h]:y}));(function(...y){const v=y.reduce((C,k)=>C.concat(Object.keys(k)),[]),b=new Set(v);return y.every(C=>b.size===Object.keys(C).length)})(x,m)?p[h]=t({sx:m,theme:r}):p=sl(p,x)}else p=sl(p,e(h,m,r,i))}),function(h,m){if(!h.containerQueries)return m;const g=Object.keys(m).filter(x=>x.startsWith("@container")).sort((x,y)=>{const v=/min-width:\s*([0-9.]+)/;return+(x.match(v)?.[1]||0)-+(y.match(v)?.[1]||0)});return g.length?g.reduce((x,y)=>{const v=m[y];return delete x[y],x[y]=v,x},{...m}):m}(r,function(h,m){return h.reduce((g,x)=>{const y=g[x];return(!y||Object.keys(y).length===0)&&delete g[x],g},m)}(f,p))}return Array.isArray(o)?o.map(l):l(o)}}();ui.filterProps=["sx"];const ag={borderRadius:4};function sg(e,t){const n=this;if(n.vars){if(!n.colorSchemes?.[e]||typeof n.getColorSchemeSelector!="function")return{};let o=n.getColorSchemeSelector(e);return o==="&"?t:((o.includes("data-")||o.includes("."))&&(o=`*:where(${o.replace(/\s*&$/,"")}) &`),{[o]:t})}return n.palette.mode===e?t:{}}function Od(e={},...t){const{breakpoints:n={},palette:o={},spacing:r,shape:i={},...l}=e,d=function(f){const{values:p={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:h="px",step:m=5,...g}=f,x=(k=>{const _=Object.keys(k).map(I=>({key:I,val:k[I]}))||[];return _.sort((I,M)=>I.val-M.val),_.reduce((I,M)=>({...I,[M.key]:M.val}),{})})(p),y=Object.keys(x);function v(k){return`@media (min-width:${typeof p[k]=="number"?p[k]:k}${h})`}function b(k){return`@media (max-width:${(typeof p[k]=="number"?p[k]:k)-m/100}${h})`}function C(k,_){const I=y.indexOf(_);return`@media (min-width:${typeof p[k]=="number"?p[k]:k}${h}) and (max-width:${(I!==-1&&typeof p[y[I]]=="number"?p[y[I]]:_)-m/100}${h})`}return{keys:y,values:x,up:v,down:b,between:C,only:function(k){return y.indexOf(k)+1<y.length?C(k,y[y.indexOf(k)+1]):v(k)},not:function(k){const _=y.indexOf(k);return _===0?v(y[1]):_===y.length-1?b(y[_]):C(k,y[y.indexOf(k)+1]).replace("@media","@media not all and")},unit:h,...g}}(n),c=function(f=8,p=Dd({spacing:f})){if(f.mui)return f;const h=(...m)=>(m.length===0?[1]:m).map(g=>{const x=p(g);return typeof x=="number"?`${x}px`:x}).join(" ");return h.mui=!0,h}(r);let u=Ho({breakpoints:d,direction:"ltr",components:{},palette:{mode:"light",...o},spacing:c,shape:{...ag,...i}},l);return u=function(f){const p=(x,y)=>x.replace("@media",y?`@container ${y}`:"@container");function h(x,y){x.up=(...v)=>p(f.breakpoints.up(...v),y),x.down=(...v)=>p(f.breakpoints.down(...v),y),x.between=(...v)=>p(f.breakpoints.between(...v),y),x.only=(...v)=>p(f.breakpoints.only(...v),y),x.not=(...v)=>{const b=p(f.breakpoints.not(...v),y);return b.includes("not all and")?b.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):b}}const m={},g=x=>(h(m,x),m);return h(g),{...f,containerQueries:g}}(u),u.applyStyles=sg,u=t.reduce((f,p)=>Ho(f,p),u),u.unstable_sxConfig={...Fs,...l?.unstable_sxConfig},u.unstable_sx=function(f){return ui({sx:f,theme:this})},u}const l5={textTransform:"uppercase"},a5='"Roboto", "Helvetica", "Arial", sans-serif';function cg(e,t){const{fontFamily:n=a5,fontSize:o=14,fontWeightLight:r=300,fontWeightRegular:i=400,fontWeightMedium:l=500,fontWeightBold:d=700,htmlFontSize:c=16,allVariants:u,pxToRem:f,...p}=typeof t=="function"?t(e):t,h=o/14,m=f||(y=>y/c*h+"rem"),g=(y,v,b,C,k)=>{return{fontFamily:n,fontWeight:y,fontSize:m(v),lineHeight:b,...n===a5?{letterSpacing:(_=C/v,Math.round(1e5*_)/1e5+"em")}:{},...k,...u};var _},x={h1:g(r,96,1.167,-1.5),h2:g(r,60,1.2,-.5),h3:g(i,48,1.167,0),h4:g(i,34,1.235,.25),h5:g(i,24,1.334,0),h6:g(l,20,1.6,.15),subtitle1:g(i,16,1.75,.15),subtitle2:g(l,14,1.57,.1),body1:g(i,16,1.5,.15),body2:g(i,14,1.43,.15),button:g(l,14,1.75,.4,l5),caption:g(i,12,1.66,.4),overline:g(i,12,2.66,1,l5),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Ho({htmlFontSize:c,pxToRem:m,fontFamily:n,fontSize:o,fontWeightLight:r,fontWeightRegular:i,fontWeightMedium:l,fontWeightBold:d,...x},p,{clone:!1})}function Pn(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,0.2)`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,0.14)`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,0.12)`].join(",")}const dg=["none",Pn(0,2,1,-1,0,1,1,0,0,1,3,0),Pn(0,3,1,-2,0,2,2,0,0,1,5,0),Pn(0,3,3,-2,0,3,4,0,0,1,8,0),Pn(0,2,4,-1,0,4,5,0,0,1,10,0),Pn(0,3,5,-1,0,5,8,0,0,1,14,0),Pn(0,3,5,-1,0,6,10,0,0,1,18,0),Pn(0,4,5,-2,0,7,10,1,0,2,16,1),Pn(0,5,5,-3,0,8,10,1,0,3,14,2),Pn(0,5,6,-3,0,9,12,1,0,3,16,2),Pn(0,6,6,-3,0,10,14,1,0,4,18,3),Pn(0,6,7,-4,0,11,15,1,0,4,20,3),Pn(0,7,8,-4,0,12,17,2,0,5,22,4),Pn(0,7,8,-4,0,13,19,2,0,5,24,4),Pn(0,7,9,-4,0,14,21,2,0,5,26,4),Pn(0,8,9,-5,0,15,22,2,0,6,28,5),Pn(0,8,10,-5,0,16,24,2,0,6,30,5),Pn(0,8,11,-5,0,17,26,2,0,6,32,5),Pn(0,9,11,-5,0,18,28,2,0,7,34,6),Pn(0,9,12,-6,0,19,29,2,0,7,36,6),Pn(0,10,13,-6,0,20,31,3,0,8,38,7),Pn(0,10,13,-6,0,21,33,3,0,8,40,7),Pn(0,10,14,-6,0,22,35,3,0,8,42,7),Pn(0,11,14,-7,0,23,36,3,0,9,44,8),Pn(0,11,15,-7,0,24,38,3,0,9,46,8)],ug={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},hg={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function s5(e){return`${Math.round(e)}ms`}function pg(e){if(!e)return 0;const t=e/36;return Math.min(Math.round(10*(4+15*t**.25+t/5)),3e3)}function fg(e){const t={...ug,...e.easing},n={...hg,...e.duration};return{getAutoHeightDuration:pg,create:(o=["all"],r={})=>{const{duration:i=n.standard,easing:l=t.easeInOut,delay:d=0,...c}=r;return(Array.isArray(o)?o:[o]).map(u=>`${u} ${typeof i=="string"?i:s5(i)} ${l} ${typeof d=="string"?d:s5(d)}`).join(",")},...e,easing:t,duration:n}}const mg={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function gg(e){return Or(e)||e===void 0||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function d8(e={}){const t={...e};return function n(o){const r=Object.entries(o);for(let i=0;i<r.length;i++){const[l,d]=r[i];!gg(d)||l.startsWith("unstable_")?delete o[l]:Or(d)&&(o[l]={...d},n(o[l]))}}(t),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';
21
-
22
- const theme = ${JSON.stringify(t,null,2)};
23
-
24
- theme.breakpoints = createBreakpoints(theme.breakpoints || {});
25
- theme.transitions = createTransitions(theme.transitions || {});
26
-
27
- export default theme;`}function Mc(e={},...t){const{breakpoints:n,mixins:o={},spacing:r,palette:i={},transitions:l={},typography:d={},shape:c,...u}=e;if(e.vars&&e.generateThemeVars===void 0)throw new Error(j0(20));const f=Id(i),p=Od(e);let h=Ho(p,{mixins:(m=p.breakpoints,g=o,{toolbar:{minHeight:56,[m.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[m.up("sm")]:{minHeight:64}},...g}),palette:f,shadows:dg.slice(),typography:cg(f,d),transitions:fg(l),zIndex:{...mg}});var m,g;return h=Ho(h,u),h=t.reduce((x,y)=>Ho(x,y),h),h.unstable_sxConfig={...Fs,...u?.unstable_sxConfig},h.unstable_sx=function(x){return ui({sx:x,theme:this})},h.toRuntimeSource=d8,h}function u8(e){let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,Math.round(10*t)/1e3}const xg=[...Array(25)].map((e,t)=>{if(t===0)return"none";const n=u8(t);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`});function c5(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function d5(e){return e==="dark"?xg:[]}function yg(e){return!!e[0].match(/(cssVarPrefix|colorSchemeSelector|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||e[0]==="palette"&&!!e[1]?.match(/(mode|contrastThreshold|tonalOffset)/)}const bg=e=>(t,n)=>{const o=e.rootSelector||":root",r=e.colorSchemeSelector;let i=r;if(r==="class"&&(i=".%s"),r==="data"&&(i="[data-%s]"),r?.startsWith("data-")&&!r.includes("%s")&&(i=`[${r}="%s"]`),e.defaultColorScheme===t){if(t==="dark"){const d={};return(l=e.cssVarPrefix,[...[...Array(25)].map((c,u)=>`--${l?`${l}-`:""}overlays-${u}`),`--${l?`${l}-`:""}palette-AppBar-darkBg`,`--${l?`${l}-`:""}palette-AppBar-darkColor`]).forEach(c=>{d[c]=n[c],delete n[c]}),i==="media"?{[o]:n,"@media (prefers-color-scheme: dark)":{[o]:d}}:i?{[i.replace("%s",t)]:d,[`${o}, ${i.replace("%s",t)}`]:n}:{[o]:{...n,...d}}}if(i&&i!=="media")return`${o}, ${i.replace("%s",String(t))}`}else if(t){if(i==="media")return{[`@media (prefers-color-scheme: ${String(t)})`]:{[o]:n}};if(i)return i.replace("%s",String(t))}var l;return o};function He(e,t,n){!e[t]&&n&&(e[t]=n)}function Qi(e){return typeof e=="string"&&e.startsWith("hsl")?n8(e):e}function Rr(e,t){`${t}Channel`in e||(e[`${t}Channel`]=Ji(Qi(e[t])))}const br=e=>{try{return e()}catch{}};function S1(e,t,n,o){if(!t)return;t=t===!0?{}:t;const r=o==="dark"?"dark":"light";if(!n)return void(e[o]=function(d){const{palette:c={mode:"light"},opacity:u,overlays:f,...p}=d,h=Id(c);return{palette:h,opacity:{...c5(h.mode),...u},overlays:f||d5(h.mode),...p}}({...t,palette:{mode:r,...t?.palette}}));const{palette:i,...l}=Mc({...n,palette:{mode:r,...t?.palette}});return e[o]={...t,palette:i,opacity:{...c5(r),...t?.opacity},overlays:t?.overlays||d5(r)},l}function u5(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...n!==!0&&n,palette:Id({...n===!0?{}:n.palette,mode:t})})}function Rc(e={},...t){const{palette:n,cssVariables:o=!1,colorSchemes:r=n?void 0:{light:!0},defaultColorScheme:i=n?.mode,...l}=e,d=i||"light",c=r?.[d],u={...r,...n?{[d]:{...typeof c!="boolean"&&c,palette:n}}:void 0};if(o===!1){if(!("colorSchemes"in e))return Mc(e,...t);let f=n;"palette"in e||u[d]&&(u[d]!==!0?f=u[d].palette:d==="dark"&&(f={mode:"dark"}));const p=Mc({...e,palette:f},...t);return p.defaultColorScheme=d,p.colorSchemes=u,p.palette.mode==="light"&&(p.colorSchemes.light={...u.light!==!0&&u.light,palette:p.palette},u5(p,"dark",u.dark)),p.palette.mode==="dark"&&(p.colorSchemes.dark={...u.dark!==!0&&u.dark,palette:p.palette},u5(p,"light",u.light)),p}return n||"light"in u||d!=="light"||(u.light=!0),function(f={},...p){const{colorSchemes:h={light:!0},defaultColorScheme:m,disableCssColorScheme:g=!1,cssVarPrefix:x="mui",shouldSkipGeneratingVar:y=yg,colorSchemeSelector:v=h.light&&h.dark?"media":void 0,rootSelector:b=":root",...C}=f,k=Object.keys(h)[0],_=m||(h.light&&k!=="light"?"light":k),I=((U="mui")=>st.unstable_createGetCssVar(U))(x),{[_]:M,light:F,dark:j,...T}=h,w={...T};let S=M;if((_==="dark"&&!("dark"in h)||_==="light"&&!("light"in h))&&(S=!0),!S)throw new Error(j0(21,_));const D=S1(w,S,C,_);F&&!w.light&&S1(w,F,void 0,"light"),j&&!w.dark&&S1(w,j,void 0,"dark");let E={defaultColorScheme:_,...D,cssVarPrefix:x,colorSchemeSelector:v,rootSelector:b,getCssVar:I,colorSchemes:w,font:{...$m(D.typography),...D.font},spacing:(R=C.spacing,typeof R=="number"?`${R}px`:typeof R=="string"||typeof R=="function"||Array.isArray(R)?R:"8px")};var R;Object.keys(E.colorSchemes).forEach(U=>{const O=E.colorSchemes[U].palette,q=re=>{const $=re.split("-"),W=$[1],B=$[2];return I(re,O[W][B])};var X;if(O.mode==="light"&&(He(O.common,"background","#fff"),He(O.common,"onBackground","#000")),O.mode==="dark"&&(He(O.common,"background","#000"),He(O.common,"onBackground","#fff")),X=O,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"].forEach(re=>{X[re]||(X[re]={})}),O.mode==="light"){He(O.Alert,"errorColor",Tn(O.error.light,.6)),He(O.Alert,"infoColor",Tn(O.info.light,.6)),He(O.Alert,"successColor",Tn(O.success.light,.6)),He(O.Alert,"warningColor",Tn(O.warning.light,.6)),He(O.Alert,"errorFilledBg",q("palette-error-main")),He(O.Alert,"infoFilledBg",q("palette-info-main")),He(O.Alert,"successFilledBg",q("palette-success-main")),He(O.Alert,"warningFilledBg",q("palette-warning-main")),He(O.Alert,"errorFilledColor",br(()=>O.getContrastText(O.error.main))),He(O.Alert,"infoFilledColor",br(()=>O.getContrastText(O.info.main))),He(O.Alert,"successFilledColor",br(()=>O.getContrastText(O.success.main))),He(O.Alert,"warningFilledColor",br(()=>O.getContrastText(O.warning.main))),He(O.Alert,"errorStandardBg",jn(O.error.light,.9)),He(O.Alert,"infoStandardBg",jn(O.info.light,.9)),He(O.Alert,"successStandardBg",jn(O.success.light,.9)),He(O.Alert,"warningStandardBg",jn(O.warning.light,.9)),He(O.Alert,"errorIconColor",q("palette-error-main")),He(O.Alert,"infoIconColor",q("palette-info-main")),He(O.Alert,"successIconColor",q("palette-success-main")),He(O.Alert,"warningIconColor",q("palette-warning-main")),He(O.AppBar,"defaultBg",q("palette-grey-100")),He(O.Avatar,"defaultBg",q("palette-grey-400")),He(O.Button,"inheritContainedBg",q("palette-grey-300")),He(O.Button,"inheritContainedHoverBg",q("palette-grey-A100")),He(O.Chip,"defaultBorder",q("palette-grey-400")),He(O.Chip,"defaultAvatarColor",q("palette-grey-700")),He(O.Chip,"defaultIconColor",q("palette-grey-700")),He(O.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),He(O.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),He(O.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),He(O.LinearProgress,"primaryBg",jn(O.primary.main,.62)),He(O.LinearProgress,"secondaryBg",jn(O.secondary.main,.62)),He(O.LinearProgress,"errorBg",jn(O.error.main,.62)),He(O.LinearProgress,"infoBg",jn(O.info.main,.62)),He(O.LinearProgress,"successBg",jn(O.success.main,.62)),He(O.LinearProgress,"warningBg",jn(O.warning.main,.62)),He(O.Skeleton,"bg",`rgba(${q("palette-text-primaryChannel")} / 0.11)`),He(O.Slider,"primaryTrack",jn(O.primary.main,.62)),He(O.Slider,"secondaryTrack",jn(O.secondary.main,.62)),He(O.Slider,"errorTrack",jn(O.error.main,.62)),He(O.Slider,"infoTrack",jn(O.info.main,.62)),He(O.Slider,"successTrack",jn(O.success.main,.62)),He(O.Slider,"warningTrack",jn(O.warning.main,.62));const re=ra(O.background.default,.8);He(O.SnackbarContent,"bg",re),He(O.SnackbarContent,"color",br(()=>O.getContrastText(re))),He(O.SpeedDialAction,"fabHoverBg",ra(O.background.paper,.15)),He(O.StepConnector,"border",q("palette-grey-400")),He(O.StepContent,"border",q("palette-grey-400")),He(O.Switch,"defaultColor",q("palette-common-white")),He(O.Switch,"defaultDisabledColor",q("palette-grey-100")),He(O.Switch,"primaryDisabledColor",jn(O.primary.main,.62)),He(O.Switch,"secondaryDisabledColor",jn(O.secondary.main,.62)),He(O.Switch,"errorDisabledColor",jn(O.error.main,.62)),He(O.Switch,"infoDisabledColor",jn(O.info.main,.62)),He(O.Switch,"successDisabledColor",jn(O.success.main,.62)),He(O.Switch,"warningDisabledColor",jn(O.warning.main,.62)),He(O.TableCell,"border",jn(oa(O.divider,1),.88)),He(O.Tooltip,"bg",oa(O.grey[700],.92))}if(O.mode==="dark"){He(O.Alert,"errorColor",jn(O.error.light,.6)),He(O.Alert,"infoColor",jn(O.info.light,.6)),He(O.Alert,"successColor",jn(O.success.light,.6)),He(O.Alert,"warningColor",jn(O.warning.light,.6)),He(O.Alert,"errorFilledBg",q("palette-error-dark")),He(O.Alert,"infoFilledBg",q("palette-info-dark")),He(O.Alert,"successFilledBg",q("palette-success-dark")),He(O.Alert,"warningFilledBg",q("palette-warning-dark")),He(O.Alert,"errorFilledColor",br(()=>O.getContrastText(O.error.dark))),He(O.Alert,"infoFilledColor",br(()=>O.getContrastText(O.info.dark))),He(O.Alert,"successFilledColor",br(()=>O.getContrastText(O.success.dark))),He(O.Alert,"warningFilledColor",br(()=>O.getContrastText(O.warning.dark))),He(O.Alert,"errorStandardBg",Tn(O.error.light,.9)),He(O.Alert,"infoStandardBg",Tn(O.info.light,.9)),He(O.Alert,"successStandardBg",Tn(O.success.light,.9)),He(O.Alert,"warningStandardBg",Tn(O.warning.light,.9)),He(O.Alert,"errorIconColor",q("palette-error-main")),He(O.Alert,"infoIconColor",q("palette-info-main")),He(O.Alert,"successIconColor",q("palette-success-main")),He(O.Alert,"warningIconColor",q("palette-warning-main")),He(O.AppBar,"defaultBg",q("palette-grey-900")),He(O.AppBar,"darkBg",q("palette-background-paper")),He(O.AppBar,"darkColor",q("palette-text-primary")),He(O.Avatar,"defaultBg",q("palette-grey-600")),He(O.Button,"inheritContainedBg",q("palette-grey-800")),He(O.Button,"inheritContainedHoverBg",q("palette-grey-700")),He(O.Chip,"defaultBorder",q("palette-grey-700")),He(O.Chip,"defaultAvatarColor",q("palette-grey-300")),He(O.Chip,"defaultIconColor",q("palette-grey-300")),He(O.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),He(O.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),He(O.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),He(O.LinearProgress,"primaryBg",Tn(O.primary.main,.5)),He(O.LinearProgress,"secondaryBg",Tn(O.secondary.main,.5)),He(O.LinearProgress,"errorBg",Tn(O.error.main,.5)),He(O.LinearProgress,"infoBg",Tn(O.info.main,.5)),He(O.LinearProgress,"successBg",Tn(O.success.main,.5)),He(O.LinearProgress,"warningBg",Tn(O.warning.main,.5)),He(O.Skeleton,"bg",`rgba(${q("palette-text-primaryChannel")} / 0.13)`),He(O.Slider,"primaryTrack",Tn(O.primary.main,.5)),He(O.Slider,"secondaryTrack",Tn(O.secondary.main,.5)),He(O.Slider,"errorTrack",Tn(O.error.main,.5)),He(O.Slider,"infoTrack",Tn(O.info.main,.5)),He(O.Slider,"successTrack",Tn(O.success.main,.5)),He(O.Slider,"warningTrack",Tn(O.warning.main,.5));const re=ra(O.background.default,.98);He(O.SnackbarContent,"bg",re),He(O.SnackbarContent,"color",br(()=>O.getContrastText(re))),He(O.SpeedDialAction,"fabHoverBg",ra(O.background.paper,.15)),He(O.StepConnector,"border",q("palette-grey-600")),He(O.StepContent,"border",q("palette-grey-600")),He(O.Switch,"defaultColor",q("palette-grey-300")),He(O.Switch,"defaultDisabledColor",q("palette-grey-600")),He(O.Switch,"primaryDisabledColor",Tn(O.primary.main,.55)),He(O.Switch,"secondaryDisabledColor",Tn(O.secondary.main,.55)),He(O.Switch,"errorDisabledColor",Tn(O.error.main,.55)),He(O.Switch,"infoDisabledColor",Tn(O.info.main,.55)),He(O.Switch,"successDisabledColor",Tn(O.success.main,.55)),He(O.Switch,"warningDisabledColor",Tn(O.warning.main,.55)),He(O.TableCell,"border",Tn(oa(O.divider,1),.68)),He(O.Tooltip,"bg",oa(O.grey[700],.92))}Rr(O.background,"default"),Rr(O.background,"paper"),Rr(O.common,"background"),Rr(O.common,"onBackground"),Rr(O,"divider"),Object.keys(O).forEach(re=>{const $=O[re];re!=="tonalOffset"&&$&&typeof $=="object"&&($.main&&He(O[re],"mainChannel",Ji(Qi($.main))),$.light&&He(O[re],"lightChannel",Ji(Qi($.light))),$.dark&&He(O[re],"darkChannel",Ji(Qi($.dark))),$.contrastText&&He(O[re],"contrastTextChannel",Ji(Qi($.contrastText))),re==="text"&&(Rr(O[re],"primary"),Rr(O[re],"secondary")),re==="action"&&($.active&&Rr(O[re],"active"),$.selected&&Rr(O[re],"selected")))})}),E=p.reduce((U,O)=>Ho(U,O),E);const A={prefix:x,disableCssColorScheme:g,shouldSkipGeneratingVar:y,getSelector:bg(E)},{vars:L,generateThemeVars:P,generateStyleSheets:z}=function(U,O={}){const{getSelector:q=fe,disableCssColorScheme:X,colorSchemeSelector:re}=O,{colorSchemes:$={},components:W,defaultColorScheme:B="light",...Z}=U,{vars:G,css:ie,varsWithDefaults:ee}=w1(Z,O);let le=ee;const ue={},{[B]:de,...oe}=$;if(Object.entries(oe||{}).forEach(([Te,Le])=>{const{vars:ce,css:he,varsWithDefaults:we}=w1(Le,O);le=Ho(le,we),ue[Te]={css:he,vars:ce}}),de){const{css:Te,vars:Le,varsWithDefaults:ce}=w1(de,O);le=Ho(le,ce),ue[B]={css:Te,vars:Le}}function fe(Te,Le){let ce=re;if(re==="class"&&(ce=".%s"),re==="data"&&(ce="[data-%s]"),re?.startsWith("data-")&&!re.includes("%s")&&(ce=`[${re}="%s"]`),Te){if(ce==="media")return U.defaultColorScheme===Te?":root":{[`@media (prefers-color-scheme: ${$[Te]?.palette?.mode||Te})`]:{":root":Le}};if(ce)return U.defaultColorScheme===Te?`:root, ${ce.replace("%s",String(Te))}`:ce.replace("%s",String(Te))}return":root"}return{vars:le,generateThemeVars:()=>{let Te={...G};return Object.entries(ue).forEach(([,{vars:Le}])=>{Te=Ho(Te,Le)}),Te},generateStyleSheets:()=>{const Te=[],Le=U.defaultColorScheme||"light";function ce(Y,ze){Object.keys(ze).length&&Te.push(typeof Y=="string"?{[Y]:{...ze}}:Y)}ce(q(void 0,{...ie}),ie);const{[Le]:he,...we}=ue;if(he){const{css:Y}=he,ze=$[Le]?.palette?.mode,ht=!X&&ze?{colorScheme:ze,...Y}:{...Y};ce(q(Le,{...ht}),ht)}return Object.entries(we).forEach(([Y,{css:ze}])=>{const ht=$[Y]?.palette?.mode,ut=!X&&ht?{colorScheme:ht,...ze}:{...ze};ce(q(Y,{...ut}),ut)}),Te}}}(E,A);return E.vars=L,Object.entries(E.colorSchemes[E.defaultColorScheme]).forEach(([U,O])=>{E[U]=O}),E.generateThemeVars=P,E.generateStyleSheets=z,E.generateSpacing=function(){return st.createSpacing(C.spacing,Dd(this))},E.getColorSchemeSelector=function(U){return function(O){return U==="media"?`@media (prefers-color-scheme: ${O})`:U?U.startsWith("data-")&&!U.includes("%s")?`[${U}="${O}"] &`:U==="class"?`.${O} &`:U==="data"?`[data-${O}] &`:`${U.replace("%s",O)} &`:"&"}}(v),E.spacing=E.generateSpacing(),E.shouldSkipGeneratingVar=y,E.unstable_sxConfig={...Fs,...C?.unstable_sxConfig},E.unstable_sx=function(U){return ui({sx:U,theme:this})},E.toRuntimeSource=d8,E}({...l,colorSchemes:u,defaultColorScheme:d,...typeof o!="boolean"&&o},...t)}const Pd=Rc();function Ad(){const e=st.useTheme(Pd);return e[Td]||e}function vg(e){const{theme:t,name:n,props:o}=e;return t&&t.components&&t.components[n]&&t.components[n].defaultProps?c8(t.components[n].defaultProps,o):o}const wg=Od();function Sg({props:e,name:t,defaultTheme:n,themeId:o}){let r=function(i=wg){return function(l=null){const d=i0.useContext(Ki.ThemeContext);return d&&(c=d,Object.keys(c).length!==0)?d:l;var c}(i)}(n);return r=r[o]||r,vg({theme:r,name:t,props:e})}const Cg=Od();function C1(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function kg(e){return e?(t,n)=>n[e]:null}function za(e,t){const n=typeof t=="function"?t(e):t;if(Array.isArray(n))return n.flatMap(o=>za(e,o));if(Array.isArray(n?.variants)){let o;if(n.isProcessed)o=n.style;else{const{variants:r,...i}=n;o=i}return h8(e,n.variants,[o])}return n?.isProcessed?n.style:n}function h8(e,t,n=[]){let o;e:for(let r=0;r<t.length;r+=1){const i=t[r];if(typeof i.props=="function"){if(o??={...e,...e.ownerState,ownerState:e.ownerState},!i.props(o))continue}else for(const l in i.props)if(e[l]!==i.props[l]&&e.ownerState?.[l]!==i.props[l])continue e;typeof i.style=="function"?(o??={...e,...e.ownerState,ownerState:e.ownerState},n.push(i.style(o))):n.push(i.style)}return n}function Eg(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}const _g=function(e={}){const{themeId:t,defaultTheme:n=Cg,rootShouldForwardProp:o=C1,slotShouldForwardProp:r=C1}=e;function i(l){var d,c,u;c=t,u=n,(d=l).theme=function(f){for(const p in f)return!1;return!0}(d.theme)?u:d.theme[c]||d.theme}return(l,d={})=>{Ki.internal_mutateStyles(l,_=>_.filter(I=>I!==ui));const{name:c,slot:u,skipVariantsResolver:f,skipSx:p,overridesResolver:h=kg(Eg(u)),...m}=d,g=f!==void 0?f:u&&u!=="Root"&&u!=="root"||!1,x=p||!1;let y=C1;var v;u==="Root"||u==="root"?y=o:u?y=r:typeof(v=l)=="string"&&v.charCodeAt(0)>96&&(y=void 0);const b=Ki(l,{shouldForwardProp:y,label:void 0,...m}),C=_=>{if(_.__emotion_real===_)return _;if(typeof _=="function")return function(I){return za(I,_)};if(Or(_)){const I=function(M){const{variants:F,...j}=M,T={variants:F,style:Ki.internal_serializeStyles(j),isProcessed:!0};return T.style===j||F&&F.forEach(w=>{typeof w.style!="function"&&(w.style=Ki.internal_serializeStyles(w.style))}),T}(_);return I.variants?function(M){return za(M,I)}:I.style}return _},k=(..._)=>{const I=[],M=_.map(C),F=[];if(I.push(i),c&&h&&F.push(function(w){const S=w.theme,D=S.components?.[c]?.styleOverrides;if(!D)return null;const E={};for(const R in D)E[R]=za(w,D[R]);return h(w,E)}),c&&!g&&F.push(function(w){const S=w.theme,D=S?.components?.[c]?.variants;return D?h8(w,D):null}),x||F.push(ui),Array.isArray(M[0])){const w=M.shift(),S=new Array(I.length).fill(""),D=new Array(F.length).fill("");let E;E=[...S,...w,...D],E.raw=[...S,...w.raw,...D],I.unshift(E)}const j=[...I,...M,...F],T=b(...j);return l.muiName&&(T.muiName=l.muiName),T};return b.withConfig&&(k.withConfig=b.withConfig),k}}({themeId:Td,defaultTheme:Pd,rootShouldForwardProp:e=>function(t){return t!=="ownerState"&&t!=="theme"&&t!=="sx"&&t!=="as"}(e)&&e!=="classes"}),$l=e=>{if(e.palette.mode==="dark")return`drop-shadow(0px 0px 1px ${e.palette.mode==="dark"?e.palette.text.primary:e.palette.divider})`},h5=(e=1)=>t=>{if(t.palette.mode!=="dark")return;const n=t.palette.mode==="dark"?t.palette.text.primary:t.palette.divider;return`drop-shadow(0px 0px ${e}px ${n})`},Tg=s.memo(s.forwardRef((e,t)=>{const{sx:n,size:o="small",activeColor:r,children:i,className:l,...d}=e;let c=24,u=24;return o==="medium"?(c=32,u=32):o==="large"&&(c=42,u=42),a.jsx(V.Box,{ref:t,className:ao("icon",l),sx:{width:c,height:u,...n},...d,children:i})})),p8=_g(Tg)(({theme:e})=>({fill:"currentColor","& .activeColor":{fill:e.palette.primary.main},"& .styled.high_contrast":{fill:e.palette.primary.main},"& .styled.background":{fill:e.palette.background.paper},"& .styled.current_color":{fill:"currentColor"},"& .styled.secondary":{fill:e.palette.secondary.main},"& .styled.secondary_dark":{fill:e.palette.secondary.dark},"& .styled.secondary_light":{fill:e.palette.secondary.light},"& .styled.info":{fill:e.palette.info.main},"& .styled.info.stroked":{stroke:e.palette.info.main},"& .styled.info_dark":{fill:e.palette.info.dark},"& .styled.info_light":{fill:e.palette.info.light},"& .styled.warning":{fill:e.palette.warning.main},"& .styled.warning.stroked":{stroke:e.palette.warning.main},"& .styled.warning_dark":{fill:e.palette.warning.dark},"& .styled.warning_light":{fill:e.palette.warning.light},"& .styled.error.info":{fill:e.palette.error.main},"& .styled.error.stroked":{stroke:e.palette.error.main},"& .styled.error_dark":{fill:e.palette.error.dark},"& .styled.error_light":{fill:e.palette.error.light},"& .styled.success":{fill:e.palette.success.main},"& .styled.success_dark":{fill:e.palette.success.dark},"& .styled.success_light":{fill:e.palette.success.light},"& .styled.grey":{fill:e.palette.text.icon??e.palette.action.active}})),ve=e=>a.jsx(p8,{children:e}),jg=e=>{const{sx:t,...n}=e;return a.jsxs(V.SvgIcon,{sx:{overflow:"visible","& .activeColor":{filter:$l},...t},...n,children:[a.jsx("path",{className:"activeColor",d:"M10 5.21L5.21 10h9.58z",fillOpacity:"1"}),a.jsx("path",{d:"M19 17c1.1 0 2-.9 2-2 0-1.33-2-3.5-2-3.5s-2 2.17-2 3.5c0 1.1.9 2 2 2zm-10.06-.44c.29.29.68.44 1.06.44s.77-.15 1.06-.44l5.5-5.5c.59-.58.59-1.53 0-2.12L7.62 0 6.21 1.41l2.38 2.38-5.15 5.15c-.59.59-.59 1.54 0 2.12l5.5 5.5zM10 5.21L14.79 10H5.21L10 5.21z",fillOpacity:"1"}),a.jsx("path",{className:"activeColor",d:"M0 20h24v4H0z",fill:"blue",fillOpacity:"1",stroke:"currentColor",strokeOpacity:"0.5",strokeWidth:"0.5"})]})},Fd=e=>{const{sx:t,...n}=e;return a.jsxs(V.SvgIcon,{sx:{overflow:"visible","& .activeColor":{filter:$l},...t},...n,children:[a.jsx("path",{d:"m 17.28,7.18 -3.75,-3.75 -10,10 v 3.75 h 3.75 z m 2.96,-2.96 c 0.39,-0.39 0.39,-1.02 0,-1.41 l -2.34,-2.34 c -0.39,-0.39 -1.02,-0.39 -1.41,0 l -1.96,1.96 3.75,3.75 z",fillOpacity:"1"}),a.jsx("path",{className:"activeColor",d:"M0 20h24v4H0z",fillOpacity:"1",stroke:"currentColor",strokeOpacity:"0.5",strokeWidth:"0.5"})]})},Mg=e=>{const{sx:t,...n}=e;return a.jsxs(V.SvgIcon,{sx:{overflow:"visible","& .activeColor":{filter:$l},...t},...n,children:[a.jsx("path",{d:"M 5.615,17.375 H 8.0566072 L 9.3379465,13.763035 H 15.038393 L 16.309643,17.375 H 18.75125 L 13.444285,3.25 h -2.52232 z m 4.459465,-5.66009 2.048125,-5.8416954 h 0.12107 l 2.048125,5.8416954 z",fillOpacity:"1"}),a.jsx("path",{className:"activeColor",d:"M0 20h24v4H0z",fillOpacity:"1",stroke:"currentColor",strokeOpacity:"0.5",strokeWidth:"0.5"})]})},Rg=e=>{const{sx:t,...n}=e;return a.jsxs(V.SvgIcon,{sx:{overflow:"visible","& .activeColor":{filter:$l},...t},...n,children:[a.jsx("path",{className:"activeColor",opacity:"1",d:"M12 20c4.41 0 8-3.59 8-8s-3.59-8-8-8-8 3.59-8 8 3.59 8 8 8z"}),a.jsx("path",{className:"style_grey",opacity:".3",d:"M12 22c5.52 0 10-4.48 10-10S17.52 2 12 2 2 6.48 2 12s4.48 10 10 10zm0-18c4.41 0 8 3.59 8 8s-3.59 8-8 8-8-3.59-8-8 3.59-8 8-8z"}),a.jsx("path",{className:"activeColor",opacity:".3",d:"M12 22c5.52 0 10-4.48 10-10S17.52 2 12 2 2 6.48 2 12s4.48 10 10 10zm0-18c4.41 0 8 3.59 8 8s-3.59 8-8 8-8-3.59-8-8 3.59-8 8-8z"})]})},p5=e=>a.jsxs(V.SvgIcon,{...e,children:[a.jsx("path",{d:"M 2.7062296,0.90879274 H 21.29377 c 0.981786,0 1.797437,0.81565116 1.797437,1.79743686 V 21.29377 c 0,0.981786 -0.815651,1.797437 -1.797437,1.797437 H 2.7062296 c -0.9817857,0 -1.79743686,-0.815651 -1.79743686,-1.797437 V 2.7062296 c 0,-0.9817857 0.81565116,-1.79743686 1.79743686,-1.79743686 z M 2.5118579,2.5118579 v 5.5045251 1.3285403 5.3101537 1.32854 5.504525 h 5.5045251 1.3285403 5.3101537 1.32854 5.504525 V 15.983617 14.655077 9.3449233 8.016383 2.5118579 H 15.983617 14.655077 9.3449233 8.016383 Z"}),a.jsx("path",{className:"styled info",d:"m 8.44571,8.0624624 3.396641,-3.9592297 3.396641,3.9592297 H 12.691469 V 13.011077 H 10.993224 V 8.0624624 Z m 6.793271,7.5823776 -3.39664,3.707336 -3.396642,-3.707336 h 2.547525 v -4.633763 h 1.698245 v 4.633763 z m 0.494653,-7.113411 3.959229,3.396646 -3.959229,3.396641 v -2.547524 h -4.948611 v -1.698245 h 4.948611 z m -7.5823711,6.793275 -3.707336,-3.39664 3.707336,-3.396647 v 2.54753 h 4.6337601 v 1.698245 H 8.1512629 Z"})]}),Ig=e=>a.jsxs(V.SvgIcon,{...e,children:[a.jsx("path",{d:"M 2.9414063,1.1894531 H 21.058594 c 0.956941,0 1.751953,0.7950113 1.751953,1.7519532 V 21.058594 c 0,0.956941 -0.795012,1.751953 -1.751953,1.751953 H 2.9414063 c -0.9569419,0 -1.7519532,-0.795012 -1.7519532,-1.751953 V 2.9414063 c 0,-0.9569419 0.7950113,-1.7519532 1.7519532,-1.7519532 z m -0.1894532,1.5625 V 8.3066406 H 8.3066406 V 2.7519531 Z m 6.4707032,0 V 8.3066406 H 14.777344 V 2.7519531 Z m 6.4707027,0 v 5.5546875 h 5.554688 V 2.7519531 Z M 2.7519531,9.2109375 v 0.2011719 5.1757816 1.294922 5.365234 h 5.3652344 1.2949219 5.1757816 1.294922 5.365234 V 15.882813 14.587891 9.4121094 9.2109375 Z"}),a.jsx("path",{className:"styled info",d:"m 15.699562,11.871427 3.959229,3.396644 -3.959229,3.396641 v -2.547524 h -4.948611 v -1.698245 h 4.948611 z M 8.1171875,18.6647 4.4098515,15.26806 8.1171875,11.871415 v 2.547528 h 4.6337635 v 1.698245 H 8.1171875 Z"})]}),Dg=e=>a.jsxs(V.SvgIcon,{...e,children:[a.jsx("path",{d:"M 2.9414063,1.1894531 H 21.058594 c 0.956941,0 1.751953,0.7950113 1.751953,1.7519532 V 21.058594 c 0,0.956941 -0.795012,1.751953 -1.751953,1.751953 H 2.9414063 c -0.9569419,0 -1.7519532,-0.795012 -1.7519532,-1.751953 V 2.9414063 c 0,-0.9569419 0.7950113,-1.7519532 1.7519532,-1.7519532 z m -0.1894532,1.5625 V 8.3066406 H 8.3066406 V 2.7519531 Z m 6.4667969,0 V 21.248047 h 0.1933594 5.1757816 1.294922 5.365234 V 15.882813 14.587891 9.4121094 8.1171875 2.7519531 H 15.882813 14.587891 9.4121094 Z M 2.7519531,9.2226563 V 14.777344 H 8.3066406 V 9.2226563 Z m 0,6.4707027 v 5.554688 h 5.5546875 v -5.554688 z"}),a.jsx("path",{className:"styled info",d:"M 11.759025,7.9527347 15.155669,3.993505 18.55231,7.9527347 H 16.004787 V 12.901345 H 14.306542 V 7.9527347 Z m 6.793274,7.5823733 -3.39664,3.707336 -3.396645,-3.707336 h 2.547528 v -4.633763 h 1.698245 v 4.633763 z"})]}),f8=e=>a.jsx(V.SvgIcon,{...e,children:a.jsx("path",{d:"M 1,21.058818 C 1,22.120049 1.8799511,23 2.9411822,23 H 21.058818 C 22.120049,23 23,22.120049 23,21.058818 V 2.9411822 C 23,1.8799511 22.120049,1 21.058818,1 H 2.9411822 C 1.8799511,1 1,1.8799511 1,2.9411822 Z M 15.882352,2.9411822 h 5.176466 v 5.1764656 h -5.176466 z m 0,6.4705789 h 5.176466 v 5.1764779 h -5.176466 z m 0,6.4705909 h 5.176466 v 5.176466 H 15.882352 Z M 9.4117611,2.9411822 H 14.588239 V 8.1176478 H 9.4117611 Z m 0,6.4705789 H 14.588239 V 14.588239 H 9.4117611 Z m 0,6.4705909 h 5.1764779 v 5.176466 H 9.4117611 Z M 2.9411822,2.9411822 H 8.1176478 V 8.1176478 H 2.9411822 Z m 0,6.4705789 H 8.1176478 V 14.588239 H 2.9411822 Z m 0,6.4705909 h 5.1764656 v 5.176466 H 2.9411822 Z"})}),Lg=e=>a.jsx(V.SvgIcon,{...e,children:a.jsx("path",{d:"m 11.263672,2.2636719 h 1.472656 v 4.5449218 l 3.505859,-3.5058593 1.042969,1.0371093 -4.548828,4.5507813 v 2.373047 h 2.373047 l 4.550781,-4.5488283 1.03711,1.0429688 -3.50586,3.5058595 h 4.544922 v 1.472656 h -4.544922 l 3.50586,3.505859 -1.03711,1.042969 -4.550781,-4.548828 h -2.373047 v 2.373047 l 4.548828,4.550781 -1.042969,1.03711 -3.505859,-3.50586 v 4.544922 h -1.472656 v -4.544922 l -3.5058595,3.50586 -1.0429688,-1.03711 4.5488283,-4.550781 V 12.736328 H 8.890625 L 4.3398437,17.285156 3.3027344,16.242187 6.8085937,12.736328 H 2.2636719 V 11.263672 H 6.8085937 L 3.3027344,7.7578125 4.3398437,6.7148437 8.890625,11.263672 h 2.373047 V 8.890625 L 6.7148437,4.3398437 7.7578125,3.3027344 11.263672,6.8085937 Z"})}),Og=e=>a.jsxs(V.SvgIcon,{...e,children:[a.jsx("path",{d:"M 1,21.058818 C 1,22.120049 1.8799511,23 2.9411822,23 H 21.058818 C 22.120049,23 23,22.120049 23,21.058818 V 2.9411822 C 23,1.8799511 22.120049,1 21.058818,1 H 2.9411822 C 1.8799511,1 1,1.8799511 1,2.9411822 Z M 15.882352,2.9411822 h 5.176466 v 5.1764656 h -5.176466 z m 0,6.4705789 h 5.176466 v 5.1764779 h -5.176466 z m 0,6.4705909 h 5.176466 v 5.176466 H 15.882352 Z M 9.4117611,2.9411822 H 14.588239 V 8.1176478 H 9.4117611 Z m 0,6.4705789 H 14.588239 V 14.588239 H 9.4117611 Z m 0,6.4705909 h 5.1764779 v 5.176466 H 9.4117611 Z M 2.9411822,2.9411822 H 8.1176478 V 8.1176478 H 2.9411822 Z m 0,6.4705789 H 8.1176478 V 14.588239 H 2.9411822 Z m 0,6.4705909 h 5.1764656 v 5.176466 H 2.9411822 Z"}),a.jsx("path",{className:"styled info",d:"M 18.316869,3.6183952 18.185577,3.4869436 c -0.07052,-0.070356 -0.184659,-0.070356 -0.255179,0 -0.07036,0.070516 -0.07036,0.1846593 0,0.2551791 l 0.386384,0.3862184 V 5.130838 L 17.448541,4.6295902 17.307188,4.1018613 c -0.02576,-0.09612 -0.124607,-0.1532654 -0.220723,-0.1275022 -0.09627,0.025765 -0.153266,0.1247669 -0.127662,0.2208886 l 0.04814,0.1794263 -0.09305,-0.053771 c -0.08597,-0.049754 -0.196575,-0.0202 -0.246319,0.066006 -0.04958,0.086207 -0.02004,0.1965729 0.06601,0.2463169 l 0.09305,0.053771 -0.179428,0.04798 c -0.09611,0.025765 -0.153265,0.1247669 -0.127501,0.2208871 0.02576,0.09612 0.124766,0.1532668 0.220888,0.1275022 l 0.527585,-0.141353 0.868241,0.5012491 -0.868241,0.5010837 -0.527585,-0.1413531 c -0.09611,-0.025765 -0.195125,0.031395 -0.220888,0.1275021 -0.02576,0.096107 0.03139,0.1951239 0.127502,0.2208872 l 0.179428,0.04798 -0.09289,0.053771 c -0.08621,0.049741 -0.115761,0.1601075 -0.06601,0.2463169 0.04975,0.086207 0.160107,0.1157606 0.246316,0.066006 l 0.09289,-0.053531 -0.04814,0.1792662 c -0.02561,0.096107 0.03139,0.1951252 0.127663,0.2208885 0.09612,0.025765 0.194882,-0.031395 0.220723,-0.1275021 L 17.44854,6.256849 18.31678,5.7557653 v 1.0023529 l -0.386383,0.3862197 c -0.07036,0.070516 -0.07036,0.1846593 0,0.2551791 0.07052,0.070356 0.184659,0.070356 0.255179,0 l 0.131291,-0.1314516 v 0.1073014 c 0,0.099496 0.08082,0.1803123 0.180312,0.1803123 0.0995,0 0.180313,-0.080816 0.180313,-0.1803123 V 7.2680654 l 0.131291,0.1314516 c 0.07036,0.070356 0.184659,0.070356 0.254932,0 0.07052,-0.070516 0.07052,-0.1846593 0,-0.2551791 L 18.677496,6.7581182 V 5.7557653 l 0.868241,0.5010837 0.141353,0.527729 c 0.0256,0.096107 0.124606,0.1532654 0.220723,0.1275021 0.09611,-0.025765 0.153265,-0.1247669 0.127662,-0.2208885 l -0.04814,-0.1792662 0.09289,0.053531 c 0.08621,0.049755 0.196574,0.020201 0.246317,-0.066006 0.04975,-0.086207 0.0202,-0.1965742 -0.06601,-0.2463169 l -0.09289,-0.053771 0.179426,-0.04798 C 20.443178,6.1256175 20.500337,6.0266153 20.474574,5.930495 20.448814,5.834375 20.349807,5.7772283 20.253686,5.8029929 L 19.726102,5.944346 18.857861,5.4432623 19.726102,4.9420132 20.253686,5.0833663 c 0.09612,0.025765 0.195125,-0.031395 0.220888,-0.1275022 0.02576,-0.096107 -0.03139,-0.1951239 -0.127502,-0.2208871 l -0.179426,-0.04798 0.09289,-0.053771 c 0.08621,-0.049755 0.115761,-0.1601074 0.06601,-0.2463168 -0.04974,-0.086207 -0.160106,-0.1157607 -0.246317,-0.066006 l -0.09289,0.053771 0.04814,-0.1794263 c 0.02561,-0.096107 -0.03155,-0.1951255 -0.127662,-0.2208888 -0.09611,-0.025765 -0.195126,0.031395 -0.220723,0.1275022 L 19.545737,4.6295902 18.677496,5.1306739 V 4.128321 l 0.386219,-0.3862196 c 0.07052,-0.070516 0.07052,-0.184658 0,-0.2551778 -0.07036,-0.070356 -0.184659,-0.070356 -0.254932,0 L 18.677492,3.6183752 V 3.5110738 c 0,-0.099496 -0.08082,-0.1803123 -0.180313,-0.1803123 -0.0995,0 -0.180312,0.080816 -0.180312,0.1803123 z m -6.523574,0 -0.131292,-0.1314516 c -0.07052,-0.070356 -0.184659,-0.070356 -0.255179,0 -0.07036,0.070516 -0.07036,0.1846593 0,0.2551791 l 0.386384,0.3862184 V 5.130838 L 10.924967,4.6295902 10.783614,4.1018613 c -0.02576,-0.09612 -0.124607,-0.1532654 -0.220723,-0.1275022 -0.09627,0.025765 -0.153266,0.1247669 -0.127662,0.2208886 l 0.04814,0.1794263 -0.09305,-0.053771 C 10.304349,4.271149 10.193744,4.300703 10.144,4.386909 10.09442,4.473116 10.12396,4.5834819 10.21001,4.6332259 l 0.09305,0.053771 -0.179428,0.04798 c -0.09611,0.025765 -0.1532648,0.1247669 -0.1275015,0.2208871 0.025766,0.09612 0.1247665,0.1532668 0.2208885,0.1275022 l 0.527585,-0.141353 0.868241,0.5012491 -0.868241,0.5010837 -0.527585,-0.1413531 c -0.09611,-0.025765 -0.195125,0.031395 -0.220888,0.1275021 -0.025765,0.096107 0.031395,0.1951239 0.127502,0.2208872 l 0.179428,0.04798 -0.09289,0.053771 c -0.08621,0.049741 -0.115761,0.1601075 -0.06601,0.2463169 0.04975,0.086207 0.160107,0.1157606 0.246316,0.066006 l 0.09289,-0.053531 -0.04814,0.1792662 c -0.02561,0.096107 0.03139,0.1951252 0.127663,0.2208885 0.09612,0.025765 0.194882,-0.031395 0.220723,-0.1275021 l 0.141353,-0.5277287 0.86824,-0.5010837 v 1.0023529 l -0.386383,0.3862197 c -0.07036,0.070516 -0.07036,0.1846593 0,0.2551791 0.07052,0.070356 0.184659,0.070356 0.255179,0 l 0.131291,-0.1314516 v 0.1073014 c 0,0.099496 0.08082,0.1803123 0.180312,0.1803123 0.0995,0 0.180313,-0.080816 0.180313,-0.1803123 V 7.2680654 l 0.131291,0.1314516 c 0.07036,0.070356 0.184659,0.070356 0.254932,0 0.07052,-0.070516 0.07052,-0.1846593 0,-0.2551791 L 12.153922,6.7581182 V 5.7557653 l 0.868241,0.5010837 0.141353,0.527729 c 0.0256,0.096107 0.124606,0.1532654 0.220723,0.1275021 0.09611,-0.025765 0.153265,-0.1247669 0.127662,-0.2208885 l -0.04814,-0.1792662 0.09289,0.053531 c 0.08621,0.049755 0.196574,0.020201 0.246317,-0.066006 0.04975,-0.086207 0.0202,-0.1965742 -0.06601,-0.2463169 l -0.09289,-0.053771 0.179426,-0.04798 C 13.919604,6.1256175 13.976763,6.0266153 13.951,5.930495 13.92524,5.834375 13.826233,5.7772283 13.730112,5.8029929 L 13.202528,5.944346 12.334287,5.4432623 13.202528,4.9420132 13.730112,5.0833663 C 13.826232,5.1091313 13.925237,5.0519713 13.951,4.9558641 13.97676,4.8597571 13.91961,4.7607402 13.823498,4.734977 l -0.179426,-0.04798 0.09289,-0.053771 c 0.08621,-0.049755 0.115761,-0.1601074 0.06601,-0.2463168 -0.04974,-0.086207 -0.160106,-0.1157607 -0.246317,-0.066006 l -0.09289,0.053771 0.04814,-0.1794263 c 0.02561,-0.096107 -0.03155,-0.1951255 -0.127662,-0.2208888 -0.09611,-0.025765 -0.195126,0.031395 -0.220723,0.1275022 L 13.022163,4.6295902 12.153922,5.1306739 V 4.128321 l 0.386219,-0.3862196 c 0.07052,-0.070516 0.07052,-0.184658 0,-0.2551778 -0.07036,-0.070356 -0.184659,-0.070356 -0.254932,0 L 12.153918,3.6183752 V 3.5110738 c 0,-0.099496 -0.08082,-0.1803123 -0.180313,-0.1803123 -0.0995,0 -0.180312,0.080816 -0.180312,0.1803123 z m -6.3926679,0 -0.1312914,-0.1314516 c -0.070516,-0.070356 -0.1846593,-0.070356 -0.2551791,0 -0.070356,0.070516 -0.070356,0.1846593 0,0.2551791 L 5.4005404,4.1283411 V 5.130838 L 4.5322996,4.6295902 4.3909465,4.1018613 C 4.3651819,4.005741 4.2663397,3.9485959 4.1702234,3.9743591 4.0739563,4.0001238 4.016958,4.099126 4.0425611,4.1952477 L 4.0907011,4.374674 3.9976501,4.320903 C 3.9116831,4.271149 3.8010756,4.300703 3.7513316,4.386909 3.7017506,4.473116 3.7312906,4.5834819 3.8173376,4.6332259 l 0.093051,0.053771 -0.1794277,0.04798 C 3.6348539,4.7607419 3.5776955,4.8597438 3.6034588,4.955864 3.6292238,5.051984 3.7282257,5.1091308 3.8243473,5.0833662 L 4.3519326,4.9420132 5.2201734,5.4432623 4.3519326,5.944346 3.8243478,5.8029929 C 3.7282408,5.7772279 3.6292226,5.8343879 3.6034593,5.930495 3.5776943,6.026602 3.6348543,6.1256189 3.7309614,6.1513822 l 0.1794277,0.04798 -0.092891,0.053771 c -0.086207,0.049741 -0.1157606,0.1601075 -0.066006,0.2463169 0.049755,0.086207 0.1601075,0.1157606 0.2463169,0.066006 L 4.0907,6.5119251 4.04256,6.6911913 c -0.025605,0.096107 0.031395,0.1951252 0.1276623,0.2208885 0.09612,0.025765 0.1948824,-0.031395 0.220723,-0.1275021 L 4.5322983,6.256849 5.400539,5.7557653 V 6.7581182 L 5.0141552,7.1443379 c -0.070356,0.070516 -0.070356,0.1846593 0,0.2551791 0.070516,0.070356 0.1846593,0.070356 0.2551791,0 L 5.4006258,7.2680654 v 0.1073014 c 0,0.099496 0.080816,0.1803123 0.1803122,0.1803123 0.099496,0 0.1803123,-0.080816 0.1803123,-0.1803123 V 7.2680654 L 5.8925418,7.399517 c 0.070356,0.070356 0.1846592,0.070356 0.2549322,0 0.070516,-0.070516 0.070516,-0.1846593 0,-0.2551791 L 5.7612543,6.7581182 V 5.7557653 L 6.6294951,6.256849 6.7708482,6.784578 C 6.7964532,6.880685 6.895455,6.9378434 6.9915713,6.9120801 7.0876783,6.8863151 7.1448367,6.7873132 7.1192336,6.6911916 l -0.04814,-0.1792662 0.092891,0.053531 c 0.086207,0.049755 0.1965743,0.020201 0.2463169,-0.066006 0.049755,-0.086207 0.020201,-0.1965742 -0.066006,-0.2463169 l -0.092891,-0.053771 0.1794263,-0.04798 C 7.5269375,6.1256176 7.584096,6.0266153 7.5583327,5.930495 7.5325681,5.8343747 7.4335658,5.7772283 7.3374442,5.8029929 L 6.8098607,5.944346 5.9416199,5.4432623 6.8098607,4.9420132 7.3374442,5.0833663 C 7.4335642,5.1091313 7.5325695,5.0519713 7.5583327,4.9558641 7.5840977,4.8597571 7.5269377,4.7607402 7.4308306,4.734977 L 7.2514043,4.686997 7.3442953,4.633226 C 7.4305024,4.5834714 7.4600563,4.4731186 7.4103016,4.3869092 7.3605603,4.3007025 7.2501954,4.2711485 7.1639847,4.3209032 l -0.092891,0.053771 0.04814,-0.1794263 C 7.1448381,4.0991407 7.0876782,4.0001224 6.9915713,3.9743591 6.8954644,3.9485945 6.796446,4.0057543 6.7708482,4.1018613 L 6.6294951,4.6295902 5.7612543,5.1306739 V 4.128321 L 6.147474,3.7421014 c 0.070516,-0.070516 0.070516,-0.184658 0,-0.2551778 -0.070356,-0.070356 -0.1846593,-0.070356 -0.2549322,0 L 5.7612503,3.6183752 V 3.5110738 c 0,-0.099496 -0.080816,-0.1803123 -0.1803123,-0.1803123 -0.099496,0 -0.1803122,0.080816 -0.1803122,0.1803123 z"})]}),Pg=e=>a.jsxs(V.SvgIcon,{...e,children:[a.jsx("path",{d:"M 1,21.058818 C 1,22.120049 1.8799511,23 2.9411822,23 H 21.058818 C 22.120049,23 23,22.120049 23,21.058818 V 2.9411822 C 23,1.8799511 22.120049,1 21.058818,1 H 2.9411822 C 1.8799511,1 1,1.8799511 1,2.9411822 Z M 15.882352,2.9411822 h 5.176466 v 5.1764656 h -5.176466 z m 0,6.4705789 h 5.176466 v 5.1764779 h -5.176466 z m 0,6.4705909 h 5.176466 v 5.176466 H 15.882352 Z M 9.4117611,2.9411822 H 14.588239 V 8.1176478 H 9.4117611 Z m 0,6.4705789 H 14.588239 V 14.588239 H 9.4117611 Z m 0,6.4705909 h 5.1764779 v 5.176466 H 9.4117611 Z M 2.9411822,2.9411822 H 8.1176478 V 8.1176478 H 2.9411822 Z m 0,6.4705789 H 8.1176478 V 14.588239 H 2.9411822 Z m 0,6.4705909 h 5.1764656 v 5.176466 H 2.9411822 Z"}),a.jsx("path",{className:"styled info",d:"m 5.4035566,16.631659 -0.131292,-0.131452 c -0.07052,-0.07036 -0.184659,-0.07036 -0.255179,0 -0.07036,0.07052 -0.07036,0.184659 0,0.255179 l 0.386384,0.386219 v 1.002496 l -0.868241,-0.501247 -0.141353,-0.527729 c -0.02576,-0.09612 -0.124607,-0.153266 -0.220723,-0.127502 -0.09627,0.02577 -0.153266,0.124766 -0.1276619,0.220888 l 0.04814,0.179426 -0.09305,-0.05377 c -0.08597,-0.04975 -0.196575,-0.0202 -0.246319,0.06601 -0.04958,0.08621 -0.02004,0.196573 0.06601,0.246317 l 0.09305,0.05377 -0.179428,0.04798 c -0.09611,0.02576 -0.1532648,0.124767 -0.1275015,0.220887 0.025766,0.09612 0.1247665,0.153267 0.2208885,0.127503 l 0.527585,-0.141353 0.868241,0.501249 -0.868241,0.501083 -0.527585,-0.141353 c -0.09611,-0.02577 -0.195125,0.03139 -0.220888,0.127502 -0.025765,0.09611 0.031395,0.195124 0.127502,0.220888 l 0.179428,0.04798 -0.09289,0.05377 c -0.08621,0.04974 -0.115761,0.160107 -0.06601,0.246317 0.04975,0.08621 0.160107,0.11576 0.246316,0.06601 l 0.09289,-0.05353 -0.04814,0.179266 c -0.02561,0.09611 0.03139,0.195125 0.127663,0.220888 0.09612,0.02576 0.194882,-0.03139 0.220723,-0.127502 l 0.141353,-0.527729 0.86824,-0.501083 v 1.002353 l -0.386383,0.386219 c -0.07036,0.07052 -0.07036,0.18466 0,0.255179 0.07052,0.07036 0.184659,0.07036 0.255179,0 l 0.131291,-0.131451 v 0.107301 c 0,0.0995 0.08082,0.180313 0.180312,0.180313 0.0995,0 0.180313,-0.08082 0.180313,-0.180313 v -0.107301 l 0.131291,0.131451 c 0.07036,0.07036 0.184659,0.07036 0.254932,0 0.07052,-0.07052 0.07052,-0.184659 0,-0.255179 L 5.7641837,19.77139 v -1.002353 l 0.868241,0.501083 0.141353,0.527729 c 0.0256,0.09611 0.124606,0.153266 0.220723,0.127503 0.09611,-0.02576 0.1532651,-0.124767 0.127662,-0.220889 l -0.04814,-0.179266 0.09289,0.05353 c 0.08621,0.04975 0.196574,0.0202 0.246317,-0.06601 0.04975,-0.08621 0.0202,-0.196574 -0.06601,-0.246317 l -0.09289,-0.05377 0.1794261,-0.04798 c 0.09611,-0.02576 0.1532689,-0.124767 0.127506,-0.220888 -0.02576,-0.09612 -0.124767,-0.153266 -0.220888,-0.127502 l -0.5275841,0.141353 -0.868241,-0.501083 0.868241,-0.501249 0.5275841,0.141353 c 0.09612,0.02577 0.195125,-0.03139 0.220888,-0.127502 0.02576,-0.09611 -0.03139,-0.195124 -0.127502,-0.220888 l -0.179426,-0.04798 0.09289,-0.05377 c 0.08621,-0.04976 0.115761,-0.160107 0.06601,-0.246316 -0.04974,-0.08621 -0.160106,-0.115761 -0.246317,-0.06601 l -0.09289,0.05377 0.04814,-0.179427 c 0.02561,-0.09611 -0.03155,-0.195125 -0.127662,-0.220888 -0.09611,-0.02576 -0.195126,0.0314 -0.220723,0.127502 l -0.141357,0.527729 -0.868241,0.501083 v -1.002353 l 0.386219,-0.386219 c 0.07052,-0.07052 0.07052,-0.184658 0,-0.255178 -0.07036,-0.07036 -0.184659,-0.07036 -0.2549321,0 l -0.131291,0.131452 v -0.107302 c 0,-0.0995 -0.08082,-0.180312 -0.180313,-0.180312 -0.0995,0 -0.1803119,0.08082 -0.1803119,0.180312 z m 1e-7,-6.464187 -0.131292,-0.131452 c -0.07052,-0.07036 -0.184659,-0.07036 -0.255179,0 -0.07036,0.07052 -0.07036,0.184659 0,0.255179 l 0.386384,0.386219 v 1.002496 l -0.868241,-0.501247 -0.141353,-0.527729 c -0.02576,-0.09612 -0.124607,-0.153266 -0.220723,-0.127502 -0.09627,0.02577 -0.153266,0.124766 -0.127662,0.220888 l 0.04814,0.179426 -0.09305,-0.05377 c -0.08597,-0.04975 -0.196575,-0.0202 -0.246319,0.06601 -0.04958,0.08621 -0.02004,0.196573 0.06601,0.246317 l 0.09305,0.05377 -0.179428,0.04798 c -0.09611,0.02576 -0.1532648,0.124767 -0.1275015,0.220887 0.025766,0.09612 0.1247665,0.153267 0.2208885,0.127503 l 0.527585,-0.141353 0.868241,0.501249 -0.868241,0.501083 -0.527585,-0.141353 c -0.09611,-0.02577 -0.195125,0.03139 -0.220888,0.127502 -0.025765,0.09611 0.031395,0.195124 0.127502,0.220888 l 0.179428,0.04798 -0.09289,0.05377 c -0.08621,0.04974 -0.115761,0.160107 -0.06601,0.246317 0.04975,0.08621 0.160107,0.11576 0.246316,0.06601 l 0.09289,-0.05353 -0.04814,0.179266 c -0.02561,0.09611 0.03139,0.195125 0.127663,0.220888 0.09612,0.02576 0.194882,-0.03139 0.220723,-0.127502 l 0.141353,-0.527729 0.86824,-0.501083 v 1.002353 l -0.386383,0.386219 c -0.07036,0.07052 -0.07036,0.18466 0,0.255179 0.07052,0.07036 0.184659,0.07036 0.255179,0 l 0.131291,-0.131451 v 0.107301 c 0,0.0995 0.08082,0.180313 0.180312,0.180313 0.0995,0 0.180313,-0.08082 0.180313,-0.180313 V 13.81715 l 0.131291,0.131451 c 0.07036,0.07036 0.184659,0.07036 0.254932,0 0.07052,-0.07052 0.07052,-0.184659 0,-0.255179 L 5.7641837,13.307203 V 12.30485 l 0.868241,0.501083 0.141353,0.527729 c 0.0256,0.09611 0.124606,0.153266 0.220723,0.127503 0.09611,-0.02576 0.153265,-0.124767 0.127662,-0.220889 l -0.04814,-0.179266 0.09289,0.05353 c 0.08621,0.04975 0.196574,0.0202 0.246317,-0.06601 0.04975,-0.08621 0.0202,-0.196574 -0.06601,-0.246317 l -0.09289,-0.05377 0.179426,-0.04798 c 0.09611,-0.02576 0.153269,-0.124767 0.127506,-0.220888 -0.02576,-0.09612 -0.124767,-0.153266 -0.220888,-0.127502 l -0.527584,0.141353 -0.868241,-0.501083 0.868241,-0.501249 0.527584,0.141353 c 0.09612,0.02577 0.195125,-0.03139 0.220888,-0.127502 0.02576,-0.09611 -0.03139,-0.195124 -0.127502,-0.220888 l -0.179426,-0.04798 0.09289,-0.05377 c 0.08621,-0.04976 0.115761,-0.160107 0.06601,-0.246316 -0.04974,-0.08621 -0.160106,-0.115761 -0.246317,-0.06601 l -0.09289,0.05377 0.04814,-0.179427 c 0.02561,-0.09611 -0.03155,-0.195125 -0.127662,-0.220888 -0.09611,-0.02576 -0.195126,0.0314 -0.220723,0.127502 l -0.141357,0.527729 -0.868241,0.501083 v -1.002353 l 0.386219,-0.386219 c 0.07052,-0.07052 0.07052,-0.184658 0,-0.255178 -0.07036,-0.07036 -0.184659,-0.07036 -0.254932,0 l -0.131291,0.131452 V 10.06015 c 0,-0.0995 -0.08082,-0.1803123 -0.180313,-0.1803123 -0.0995,0 -0.180312,0.080816 -0.180312,0.1803123 z M 5.4006271,3.6183952 5.2693357,3.4869436 c -0.070516,-0.070356 -0.1846593,-0.070356 -0.2551791,0 -0.070356,0.070516 -0.070356,0.1846593 0,0.2551791 L 5.4005404,4.1283411 V 5.130838 L 4.5322996,4.6295902 4.3909465,4.1018613 C 4.3651819,4.005741 4.2663397,3.9485959 4.1702234,3.9743591 4.0739563,4.0001238 4.016958,4.099126 4.0425611,4.1952477 L 4.0907011,4.374674 3.9976501,4.320903 C 3.9116831,4.271149 3.8010756,4.300703 3.7513316,4.386909 3.7017506,4.473116 3.7312906,4.5834819 3.8173376,4.6332259 l 0.093051,0.053771 -0.1794277,0.04798 C 3.6348539,4.7607419 3.5776955,4.8597438 3.6034588,4.955864 3.6292238,5.051984 3.7282257,5.1091308 3.8243473,5.0833662 L 4.3519326,4.9420132 5.2201734,5.4432623 4.3519326,5.944346 3.8243478,5.8029929 C 3.7282408,5.7772279 3.6292226,5.8343879 3.6034593,5.930495 3.5776943,6.026602 3.6348543,6.1256189 3.7309614,6.1513822 l 0.1794277,0.04798 -0.092891,0.053771 c -0.086207,0.049741 -0.1157606,0.1601075 -0.066006,0.2463169 0.049755,0.086207 0.1601075,0.1157606 0.2463169,0.066006 L 4.0907,6.5119251 4.04256,6.6911913 c -0.025605,0.096107 0.031395,0.1951252 0.1276623,0.2208885 0.09612,0.025765 0.1948824,-0.031395 0.220723,-0.1275021 L 4.5322983,6.256849 5.400539,5.7557653 V 6.7581182 L 5.0141552,7.1443379 c -0.070356,0.070516 -0.070356,0.1846593 0,0.2551791 0.070516,0.070356 0.1846593,0.070356 0.2551791,0 L 5.4006258,7.2680654 v 0.1073014 c 0,0.099496 0.080816,0.1803123 0.1803122,0.1803123 0.099496,0 0.1803123,-0.080816 0.1803123,-0.1803123 V 7.2680654 L 5.8925418,7.399517 c 0.070356,0.070356 0.1846592,0.070356 0.2549322,0 0.070516,-0.070516 0.070516,-0.1846593 0,-0.2551791 L 5.7612543,6.7581182 V 5.7557653 L 6.6294951,6.256849 6.7708482,6.784578 C 6.7964532,6.880685 6.895455,6.9378434 6.9915713,6.9120801 7.0876783,6.8863151 7.1448367,6.7873132 7.1192336,6.6911916 l -0.04814,-0.1792662 0.092891,0.053531 c 0.086207,0.049755 0.1965743,0.020201 0.2463169,-0.066006 0.049755,-0.086207 0.020201,-0.1965742 -0.066006,-0.2463169 l -0.092891,-0.053771 0.1794263,-0.04798 C 7.5269375,6.1256176 7.584096,6.0266153 7.5583327,5.930495 7.5325681,5.8343747 7.4335658,5.7772283 7.3374442,5.8029929 L 6.8098607,5.944346 5.9416199,5.4432623 6.8098607,4.9420132 7.3374442,5.0833663 C 7.4335642,5.1091313 7.5325695,5.0519713 7.5583327,4.9558641 7.5840977,4.8597571 7.5269377,4.7607402 7.4308306,4.734977 L 7.2514043,4.686997 7.3442953,4.633226 C 7.4305024,4.5834714 7.4600563,4.4731186 7.4103016,4.3869092 7.3605603,4.3007025 7.2501954,4.2711485 7.1639847,4.3209032 l -0.092891,0.053771 0.04814,-0.1794263 C 7.1448381,4.0991407 7.0876782,4.0001224 6.9915713,3.9743591 6.8954644,3.9485945 6.796446,4.0057543 6.7708482,4.1018613 L 6.6294951,4.6295902 5.7612543,5.1306739 V 4.128321 L 6.147474,3.7421014 c 0.070516,-0.070516 0.070516,-0.184658 0,-0.2551778 -0.070356,-0.070356 -0.1846593,-0.070356 -0.2549322,0 L 5.7612503,3.6183752 V 3.5110738 c 0,-0.099496 -0.080816,-0.1803123 -0.1803123,-0.1803123 -0.099496,0 -0.1803122,0.080816 -0.1803122,0.1803123 z"})]}),Ag=e=>a.jsxs(V.SvgIcon,{...e,children:[a.jsx("path",{d:"M 1,21.058818 C 1,22.120049 1.8799511,23 2.9411822,23 H 21.058818 C 22.120049,23 23,22.120049 23,21.058818 V 2.9411822 C 23,1.8799511 22.120049,1 21.058818,1 H 2.9411822 C 1.8799511,1 1,1.8799511 1,2.9411822 Z M 15.882352,2.9411822 h 5.176466 v 5.1764656 h -5.176466 z m 0,6.4705789 h 5.176466 v 5.1764779 h -5.176466 z m 0,6.4705909 h 5.176466 v 5.176466 H 15.882352 Z M 9.4117611,2.9411822 H 14.588239 V 8.1176478 H 9.4117611 Z m 0,6.4705789 H 14.588239 V 14.588239 H 9.4117611 Z m 0,6.4705909 h 5.1764779 v 5.176466 H 9.4117611 Z M 2.9411822,2.9411822 H 8.1176478 V 8.1176478 H 2.9411822 Z m 0,6.4705789 H 8.1176478 V 14.588239 H 2.9411822 Z m 0,6.4705909 h 5.1764656 v 5.176466 H 2.9411822 Z"}),a.jsx("path",{className:"styled info",d:"m 5.4035566,16.631659 -0.131292,-0.131452 c -0.07052,-0.07036 -0.184659,-0.07036 -0.255179,0 -0.07036,0.07052 -0.07036,0.184659 0,0.255179 l 0.386384,0.386219 v 1.002496 l -0.868241,-0.501247 -0.141353,-0.527729 c -0.02576,-0.09612 -0.124607,-0.153266 -0.220723,-0.127502 -0.09627,0.02577 -0.153266,0.124766 -0.1276619,0.220888 l 0.04814,0.179426 -0.09305,-0.05377 c -0.08597,-0.04975 -0.196575,-0.0202 -0.246319,0.06601 -0.04958,0.08621 -0.02004,0.196573 0.06601,0.246317 l 0.09305,0.05377 -0.179428,0.04798 c -0.09611,0.02576 -0.1532648,0.124767 -0.1275015,0.220887 0.025766,0.09612 0.1247665,0.153267 0.2208885,0.127503 l 0.527585,-0.141353 0.868241,0.501249 -0.868241,0.501083 -0.527585,-0.141353 c -0.09611,-0.02577 -0.195125,0.03139 -0.220888,0.127502 -0.025765,0.09611 0.031395,0.195124 0.127502,0.220888 l 0.179428,0.04798 -0.09289,0.05377 c -0.08621,0.04974 -0.115761,0.160107 -0.06601,0.246317 0.04975,0.08621 0.160107,0.11576 0.246316,0.06601 l 0.09289,-0.05353 -0.04814,0.179266 c -0.02561,0.09611 0.03139,0.195125 0.127663,0.220888 0.09612,0.02576 0.194882,-0.03139 0.220723,-0.127502 l 0.141353,-0.527729 0.86824,-0.501083 v 1.002353 l -0.386383,0.386219 c -0.07036,0.07052 -0.07036,0.18466 0,0.255179 0.07052,0.07036 0.184659,0.07036 0.255179,0 l 0.131291,-0.131451 v 0.107301 c 0,0.0995 0.08082,0.180313 0.180312,0.180313 0.0995,0 0.180313,-0.08082 0.180313,-0.180313 v -0.107301 l 0.131291,0.131451 c 0.07036,0.07036 0.184659,0.07036 0.254932,0 0.07052,-0.07052 0.07052,-0.184659 0,-0.255179 L 5.7641837,19.77139 v -1.002353 l 0.868241,0.501083 0.141353,0.527729 c 0.0256,0.09611 0.124606,0.153266 0.220723,0.127503 0.09611,-0.02576 0.1532651,-0.124767 0.127662,-0.220889 l -0.04814,-0.179266 0.09289,0.05353 c 0.08621,0.04975 0.196574,0.0202 0.246317,-0.06601 0.04975,-0.08621 0.0202,-0.196574 -0.06601,-0.246317 l -0.09289,-0.05377 0.1794261,-0.04798 c 0.09611,-0.02576 0.1532689,-0.124767 0.127506,-0.220888 -0.02576,-0.09612 -0.124767,-0.153266 -0.220888,-0.127502 l -0.5275841,0.141353 -0.868241,-0.501083 0.868241,-0.501249 0.5275841,0.141353 c 0.09612,0.02577 0.195125,-0.03139 0.220888,-0.127502 0.02576,-0.09611 -0.03139,-0.195124 -0.127502,-0.220888 l -0.179426,-0.04798 0.09289,-0.05377 c 0.08621,-0.04976 0.115761,-0.160107 0.06601,-0.246316 -0.04974,-0.08621 -0.160106,-0.115761 -0.246317,-0.06601 l -0.09289,0.05377 0.04814,-0.179427 c 0.02561,-0.09611 -0.03155,-0.195125 -0.127662,-0.220888 -0.09611,-0.02576 -0.195126,0.0314 -0.220723,0.127502 l -0.141357,0.527729 -0.868241,0.501083 v -1.002353 l 0.386219,-0.386219 c 0.07052,-0.07052 0.07052,-0.184658 0,-0.255178 -0.07036,-0.07036 -0.184659,-0.07036 -0.2549321,0 l -0.131291,0.131452 v -0.107302 c 0,-0.0995 -0.08082,-0.180312 -0.180313,-0.180312 -0.0995,0 -0.1803119,0.08082 -0.1803119,0.180312 z m 1e-7,-6.464187 -0.131292,-0.131452 c -0.07052,-0.07036 -0.184659,-0.07036 -0.255179,0 -0.07036,0.07052 -0.07036,0.184659 0,0.255179 l 0.386384,0.386219 v 1.002496 l -0.868241,-0.501247 -0.141353,-0.527729 c -0.02576,-0.09612 -0.124607,-0.153266 -0.220723,-0.127502 -0.09627,0.02577 -0.153266,0.124766 -0.127662,0.220888 l 0.04814,0.179426 -0.09305,-0.05377 c -0.08597,-0.04975 -0.196575,-0.0202 -0.246319,0.06601 -0.04958,0.08621 -0.02004,0.196573 0.06601,0.246317 l 0.09305,0.05377 -0.179428,0.04798 c -0.09611,0.02576 -0.1532648,0.124767 -0.1275015,0.220887 0.025766,0.09612 0.1247665,0.153267 0.2208885,0.127503 l 0.527585,-0.141353 0.868241,0.501249 -0.868241,0.501083 -0.527585,-0.141353 c -0.09611,-0.02577 -0.195125,0.03139 -0.220888,0.127502 -0.025765,0.09611 0.031395,0.195124 0.127502,0.220888 l 0.179428,0.04798 -0.09289,0.05377 c -0.08621,0.04974 -0.115761,0.160107 -0.06601,0.246317 0.04975,0.08621 0.160107,0.11576 0.246316,0.06601 l 0.09289,-0.05353 -0.04814,0.179266 c -0.02561,0.09611 0.03139,0.195125 0.127663,0.220888 0.09612,0.02576 0.194882,-0.03139 0.220723,-0.127502 l 0.141353,-0.527729 0.86824,-0.501083 v 1.002353 l -0.386383,0.386219 c -0.07036,0.07052 -0.07036,0.18466 0,0.255179 0.07052,0.07036 0.184659,0.07036 0.255179,0 l 0.131291,-0.131451 v 0.107301 c 0,0.0995 0.08082,0.180313 0.180312,0.180313 0.0995,0 0.180313,-0.08082 0.180313,-0.180313 V 13.81715 l 0.131291,0.131451 c 0.07036,0.07036 0.184659,0.07036 0.254932,0 0.07052,-0.07052 0.07052,-0.184659 0,-0.255179 L 5.7641837,13.307203 V 12.30485 l 0.868241,0.501083 0.141353,0.527729 c 0.0256,0.09611 0.124606,0.153266 0.220723,0.127503 0.09611,-0.02576 0.153265,-0.124767 0.127662,-0.220889 l -0.04814,-0.179266 0.09289,0.05353 c 0.08621,0.04975 0.196574,0.0202 0.246317,-0.06601 0.04975,-0.08621 0.0202,-0.196574 -0.06601,-0.246317 l -0.09289,-0.05377 0.179426,-0.04798 c 0.09611,-0.02576 0.153269,-0.124767 0.127506,-0.220888 -0.02576,-0.09612 -0.124767,-0.153266 -0.220888,-0.127502 l -0.527584,0.141353 -0.868241,-0.501083 0.868241,-0.501249 0.527584,0.141353 c 0.09612,0.02577 0.195125,-0.03139 0.220888,-0.127502 0.02576,-0.09611 -0.03139,-0.195124 -0.127502,-0.220888 l -0.179426,-0.04798 0.09289,-0.05377 c 0.08621,-0.04976 0.115761,-0.160107 0.06601,-0.246316 -0.04974,-0.08621 -0.160106,-0.115761 -0.246317,-0.06601 l -0.09289,0.05377 0.04814,-0.179427 c 0.02561,-0.09611 -0.03155,-0.195125 -0.127662,-0.220888 -0.09611,-0.02576 -0.195126,0.0314 -0.220723,0.127502 l -0.141357,0.527729 -0.868241,0.501083 v -1.002353 l 0.386219,-0.386219 c 0.07052,-0.07052 0.07052,-0.184658 0,-0.255178 -0.07036,-0.07036 -0.184659,-0.07036 -0.254932,0 l -0.131291,0.131452 V 10.06015 c 0,-0.0995 -0.08082,-0.1803123 -0.180313,-0.1803123 -0.0995,0 -0.180312,0.080816 -0.180312,0.1803123 z M 18.316869,3.6183952 18.185577,3.4869436 c -0.07052,-0.070356 -0.184659,-0.070356 -0.255179,0 -0.07036,0.070516 -0.07036,0.1846593 0,0.2551791 l 0.386384,0.3862184 V 5.130838 L 17.448541,4.6295902 17.307188,4.1018613 c -0.02576,-0.09612 -0.124607,-0.1532654 -0.220723,-0.1275022 -0.09627,0.025765 -0.153266,0.1247669 -0.127662,0.2208886 l 0.04814,0.1794263 -0.09305,-0.053771 c -0.08597,-0.049754 -0.196575,-0.0202 -0.246319,0.066006 -0.04958,0.086207 -0.02004,0.1965729 0.06601,0.2463169 l 0.09305,0.053771 -0.179428,0.04798 c -0.09611,0.025765 -0.153265,0.1247669 -0.127501,0.2208871 0.02576,0.09612 0.124766,0.1532668 0.220888,0.1275022 l 0.527585,-0.141353 0.868241,0.5012491 -0.868241,0.5010837 -0.527585,-0.1413531 c -0.09611,-0.025765 -0.195125,0.031395 -0.220888,0.1275021 -0.02576,0.096107 0.03139,0.1951239 0.127502,0.2208872 l 0.179428,0.04798 -0.09289,0.053771 c -0.08621,0.049741 -0.115761,0.1601075 -0.06601,0.2463169 0.04975,0.086207 0.160107,0.1157606 0.246316,0.066006 l 0.09289,-0.053531 -0.04814,0.1792662 c -0.02561,0.096107 0.03139,0.1951252 0.127663,0.2208885 0.09612,0.025765 0.194882,-0.031395 0.220723,-0.1275021 L 17.44854,6.256849 18.31678,5.7557653 v 1.0023529 l -0.386383,0.3862197 c -0.07036,0.070516 -0.07036,0.1846593 0,0.2551791 0.07052,0.070356 0.184659,0.070356 0.255179,0 l 0.131291,-0.1314516 v 0.1073014 c 0,0.099496 0.08082,0.1803123 0.180312,0.1803123 0.0995,0 0.180313,-0.080816 0.180313,-0.1803123 V 7.2680654 l 0.131291,0.1314516 c 0.07036,0.070356 0.184659,0.070356 0.254932,0 0.07052,-0.070516 0.07052,-0.1846593 0,-0.2551791 L 18.677496,6.7581182 V 5.7557653 l 0.868241,0.5010837 0.141353,0.527729 c 0.0256,0.096107 0.124606,0.1532654 0.220723,0.1275021 0.09611,-0.025765 0.153265,-0.1247669 0.127662,-0.2208885 l -0.04814,-0.1792662 0.09289,0.053531 c 0.08621,0.049755 0.196574,0.020201 0.246317,-0.066006 0.04975,-0.086207 0.0202,-0.1965742 -0.06601,-0.2463169 l -0.09289,-0.053771 0.179426,-0.04798 C 20.443178,6.1256175 20.500337,6.0266153 20.474574,5.930495 20.448814,5.834375 20.349807,5.7772283 20.253686,5.8029929 L 19.726102,5.944346 18.857861,5.4432623 19.726102,4.9420132 20.253686,5.0833663 c 0.09612,0.025765 0.195125,-0.031395 0.220888,-0.1275022 0.02576,-0.096107 -0.03139,-0.1951239 -0.127502,-0.2208871 l -0.179426,-0.04798 0.09289,-0.053771 c 0.08621,-0.049755 0.115761,-0.1601074 0.06601,-0.2463168 -0.04974,-0.086207 -0.160106,-0.1157607 -0.246317,-0.066006 l -0.09289,0.053771 0.04814,-0.1794263 c 0.02561,-0.096107 -0.03155,-0.1951255 -0.127662,-0.2208888 -0.09611,-0.025765 -0.195126,0.031395 -0.220723,0.1275022 L 19.545737,4.6295902 18.677496,5.1306739 V 4.128321 l 0.386219,-0.3862196 c 0.07052,-0.070516 0.07052,-0.184658 0,-0.2551778 -0.07036,-0.070356 -0.184659,-0.070356 -0.254932,0 L 18.677492,3.6183752 V 3.5110738 c 0,-0.099496 -0.08082,-0.1803123 -0.180313,-0.1803123 -0.0995,0 -0.180312,0.080816 -0.180312,0.1803123 z m -6.523574,0 -0.131292,-0.1314516 c -0.07052,-0.070356 -0.184659,-0.070356 -0.255179,0 -0.07036,0.070516 -0.07036,0.1846593 0,0.2551791 l 0.386384,0.3862184 V 5.130838 L 10.924967,4.6295902 10.783614,4.1018613 c -0.02576,-0.09612 -0.124607,-0.1532654 -0.220723,-0.1275022 -0.09627,0.025765 -0.153266,0.1247669 -0.127662,0.2208886 l 0.04814,0.1794263 -0.09305,-0.053771 C 10.304349,4.271149 10.193744,4.300703 10.144,4.386909 10.09442,4.473116 10.12396,4.5834819 10.21001,4.6332259 l 0.09305,0.053771 -0.179428,0.04798 c -0.09611,0.025765 -0.1532648,0.1247669 -0.1275015,0.2208871 0.025766,0.09612 0.1247665,0.1532668 0.2208885,0.1275022 l 0.527585,-0.141353 0.868241,0.5012491 -0.868241,0.5010837 -0.527585,-0.1413531 c -0.09611,-0.025765 -0.195125,0.031395 -0.220888,0.1275021 -0.025765,0.096107 0.031395,0.1951239 0.127502,0.2208872 l 0.179428,0.04798 -0.09289,0.053771 c -0.08621,0.049741 -0.115761,0.1601075 -0.06601,0.2463169 0.04975,0.086207 0.160107,0.1157606 0.246316,0.066006 l 0.09289,-0.053531 -0.04814,0.1792662 c -0.02561,0.096107 0.03139,0.1951252 0.127663,0.2208885 0.09612,0.025765 0.194882,-0.031395 0.220723,-0.1275021 l 0.141353,-0.5277287 0.86824,-0.5010837 v 1.0023529 l -0.386383,0.3862197 c -0.07036,0.070516 -0.07036,0.1846593 0,0.2551791 0.07052,0.070356 0.184659,0.070356 0.255179,0 l 0.131291,-0.1314516 v 0.1073014 c 0,0.099496 0.08082,0.1803123 0.180312,0.1803123 0.0995,0 0.180313,-0.080816 0.180313,-0.1803123 V 7.2680654 l 0.131291,0.1314516 c 0.07036,0.070356 0.184659,0.070356 0.254932,0 0.07052,-0.070516 0.07052,-0.1846593 0,-0.2551791 L 12.153922,6.7581182 V 5.7557653 l 0.868241,0.5010837 0.141353,0.527729 c 0.0256,0.096107 0.124606,0.1532654 0.220723,0.1275021 0.09611,-0.025765 0.153265,-0.1247669 0.127662,-0.2208885 l -0.04814,-0.1792662 0.09289,0.053531 c 0.08621,0.049755 0.196574,0.020201 0.246317,-0.066006 0.04975,-0.086207 0.0202,-0.1965742 -0.06601,-0.2463169 l -0.09289,-0.053771 0.179426,-0.04798 C 13.919604,6.1256175 13.976763,6.0266153 13.951,5.930495 13.92524,5.834375 13.826233,5.7772283 13.730112,5.8029929 L 13.202528,5.944346 12.334287,5.4432623 13.202528,4.9420132 13.730112,5.0833663 C 13.826232,5.1091313 13.925237,5.0519713 13.951,4.9558641 13.97676,4.8597571 13.91961,4.7607402 13.823498,4.734977 l -0.179426,-0.04798 0.09289,-0.053771 c 0.08621,-0.049755 0.115761,-0.1601074 0.06601,-0.2463168 -0.04974,-0.086207 -0.160106,-0.1157607 -0.246317,-0.066006 l -0.09289,0.053771 0.04814,-0.1794263 c 0.02561,-0.096107 -0.03155,-0.1951255 -0.127662,-0.2208888 -0.09611,-0.025765 -0.195126,0.031395 -0.220723,0.1275022 L 13.022163,4.6295902 12.153922,5.1306739 V 4.128321 l 0.386219,-0.3862196 c 0.07052,-0.070516 0.07052,-0.184658 0,-0.2551778 -0.07036,-0.070356 -0.184659,-0.070356 -0.254932,0 L 12.153918,3.6183752 V 3.5110738 c 0,-0.099496 -0.08082,-0.1803123 -0.180313,-0.1803123 -0.0995,0 -0.180312,0.080816 -0.180312,0.1803123 z m -6.3926679,0 -0.1312914,-0.1314516 c -0.070516,-0.070356 -0.1846593,-0.070356 -0.2551791,0 -0.070356,0.070516 -0.070356,0.1846593 0,0.2551791 L 5.4005404,4.1283411 V 5.130838 L 4.5322996,4.6295902 4.3909465,4.1018613 C 4.3651819,4.005741 4.2663397,3.9485959 4.1702234,3.9743591 4.0739563,4.0001238 4.016958,4.099126 4.0425611,4.1952477 L 4.0907011,4.374674 3.9976501,4.320903 C 3.9116831,4.271149 3.8010756,4.300703 3.7513316,4.386909 3.7017506,4.473116 3.7312906,4.5834819 3.8173376,4.6332259 l 0.093051,0.053771 -0.1794277,0.04798 C 3.6348539,4.7607419 3.5776955,4.8597438 3.6034588,4.955864 3.6292238,5.051984 3.7282257,5.1091308 3.8243473,5.0833662 L 4.3519326,4.9420132 5.2201734,5.4432623 4.3519326,5.944346 3.8243478,5.8029929 C 3.7282408,5.7772279 3.6292226,5.8343879 3.6034593,5.930495 3.5776943,6.026602 3.6348543,6.1256189 3.7309614,6.1513822 l 0.1794277,0.04798 -0.092891,0.053771 c -0.086207,0.049741 -0.1157606,0.1601075 -0.066006,0.2463169 0.049755,0.086207 0.1601075,0.1157606 0.2463169,0.066006 L 4.0907,6.5119251 4.04256,6.6911913 c -0.025605,0.096107 0.031395,0.1951252 0.1276623,0.2208885 0.09612,0.025765 0.1948824,-0.031395 0.220723,-0.1275021 L 4.5322983,6.256849 5.400539,5.7557653 V 6.7581182 L 5.0141552,7.1443379 c -0.070356,0.070516 -0.070356,0.1846593 0,0.2551791 0.070516,0.070356 0.1846593,0.070356 0.2551791,0 L 5.4006258,7.2680654 v 0.1073014 c 0,0.099496 0.080816,0.1803123 0.1803122,0.1803123 0.099496,0 0.1803123,-0.080816 0.1803123,-0.1803123 V 7.2680654 L 5.8925418,7.399517 c 0.070356,0.070356 0.1846592,0.070356 0.2549322,0 0.070516,-0.070516 0.070516,-0.1846593 0,-0.2551791 L 5.7612543,6.7581182 V 5.7557653 L 6.6294951,6.256849 6.7708482,6.784578 C 6.7964532,6.880685 6.895455,6.9378434 6.9915713,6.9120801 7.0876783,6.8863151 7.1448367,6.7873132 7.1192336,6.6911916 l -0.04814,-0.1792662 0.092891,0.053531 c 0.086207,0.049755 0.1965743,0.020201 0.2463169,-0.066006 0.049755,-0.086207 0.020201,-0.1965742 -0.066006,-0.2463169 l -0.092891,-0.053771 0.1794263,-0.04798 C 7.5269375,6.1256176 7.584096,6.0266153 7.5583327,5.930495 7.5325681,5.8343747 7.4335658,5.7772283 7.3374442,5.8029929 L 6.8098607,5.944346 5.9416199,5.4432623 6.8098607,4.9420132 7.3374442,5.0833663 C 7.4335642,5.1091313 7.5325695,5.0519713 7.5583327,4.9558641 7.5840977,4.8597571 7.5269377,4.7607402 7.4308306,4.734977 L 7.2514043,4.686997 7.3442953,4.633226 C 7.4305024,4.5834714 7.4600563,4.4731186 7.4103016,4.3869092 7.3605603,4.3007025 7.2501954,4.2711485 7.1639847,4.3209032 l -0.092891,0.053771 0.04814,-0.1794263 C 7.1448381,4.0991407 7.0876782,4.0001224 6.9915713,3.9743591 6.8954644,3.9485945 6.796446,4.0057543 6.7708482,4.1018613 L 6.6294951,4.6295902 5.7612543,5.1306739 V 4.128321 L 6.147474,3.7421014 c 0.070516,-0.070516 0.070516,-0.184658 0,-0.2551778 -0.070356,-0.070356 -0.1846593,-0.070356 -0.2549322,0 L 5.7612503,3.6183752 V 3.5110738 c 0,-0.099496 -0.080816,-0.1803123 -0.1803123,-0.1803123 -0.099496,0 -0.1803122,0.080816 -0.1803122,0.1803123 z"})]}),Ic=e=>a.jsx(V.SvgIcon,{...e,children:a.jsx("path",{d:"m 14.147472,23.193365 c -0.06508,0 -0.163329,0 -0.228406,-0.03317 L 10.032492,21.788491 C 9.77091,21.690244 9.575694,21.428646 9.575694,21.168365 L 9.574448,14.275229 2.061319,4.1155175 C 1.636402,3.5272726 1.571332,2.7756983 1.89799,2.1223827 2.224647,1.4690672 2.877962,1.077339 3.596349,1.077339 h 17.247858 c 0.718386,0 1.371701,0.3917282 1.698359,1.0450437 0.326658,0.6533156 0.26158,1.4048899 -0.163329,1.9931348 L 14.834096,14.275229 v 8.264768 c 0,0.228406 -0.09825,0.424918 -0.293484,0.555056 -0.09825,0.06508 -0.26158,0.09825 -0.393,0.09825 z m -3.200233,-2.483121 2.548192,0.881714 -0.0013,-7.545141 c 0,-0.130154 0.03317,-0.293483 0.130155,-0.391728 L 21.302099,3.3320488 C 21.498604,3.070468 21.400357,2.8420618 21.367174,2.743803 21.334005,2.6455442 21.170677,2.4503213 20.877193,2.4503213 H 3.597649 c -0.326657,0 -0.456798,0.2284052 -0.489986,0.2934817 -0.03317,0.098252 -0.130154,0.3266583 0.06508,0.5882458 l 7.676458,10.3230402 c 0.09826,0.130153 0.130153,0.26158 0.130153,0.391728 v 6.663165 z"})}),zd=e=>a.jsxs(V.SvgIcon,{...e,children:[a.jsx("path",{d:"m 3.5976562,1.0761719 c -0.7183869,0 -1.3725617,0.3916059 -1.6992187,1.0449219 C 1.5717795,2.7744088 1.637583,3.5269905 2.0625,4.1152344 l 7.5117188,10.1601566 0.00195,6.892578 c 0,0.260281 0.1954492,0.52089 0.4570311,0.61914 l 3.886719,1.373047 c 0.06508,0.03317 0.163435,0.0332 0.228516,0.0332 0.13142,0 0.294328,-0.03453 0.392578,-0.09961 0.195234,-0.130138 0.292968,-0.326281 0.292968,-0.554688 v -4.982421 c -0.48986,-0.26001 -0.941054,-0.589724 -1.339843,-0.980469 l 0.002,5.015625 -2.548828,-0.882813 h 0.0332 v -6.662109 c 0,-0.130148 -0.0326,-0.262425 -0.13086,-0.392578 L 3.1738281,3.3320312 C 2.9785941,3.0704432 3.0742519,2.8423906 3.1074219,2.7441406 3.1406119,2.6790606 3.2709992,2.4492188 3.5976562,2.4492188 H 20.876953 c 0.293484,0 0.457065,0.1966618 0.490235,0.2949218 0.03318,0.09826 0.132044,0.3263097 -0.06445,0.5878906 l -0.632812,0.8515626 c 0.38666,0.2189633 0.751183,0.4755385 1.089844,0.765625 l 0.61914,-0.8339844 C 22.803815,3.5269905 22.869627,2.7744088 22.542969,2.1210938 22.216311,1.4677778 21.562136,1.0761719 20.84375,1.0761719 Z"}),a.jsx("path",{d:"M 21.017161,7.1665586 C 20.392995,6.5201968 19.608002,6.0517137 18.742868,5.8090983 17.877689,5.5664598 16.963524,5.5585838 16.094114,5.7860476 15.22488,6.0135852 14.431817,6.4684234 13.796391,7.1037635 c -0.635429,0.6353402 -1.090178,1.428404 -1.317717,2.2977256 -0.227452,0.8693219 -0.219576,1.7834869 0.02305,2.6487529 0.242637,0.865179 0.711099,1.650171 1.35746,2.274294 0.624169,0.646362 1.409161,1.114846 2.274293,1.357462 0.865181,0.242638 1.779345,0.250513 2.648753,0.02306 0.869237,-0.227538 1.6623,-0.682376 2.297726,-1.317715 0.635429,-0.635343 1.090178,-1.428408 1.317717,-2.297728 0.22745,-0.869322 0.219574,-1.783489 -0.02305,-2.6487532 C 22.131989,8.5756772 21.663527,7.7906849 21.017165,7.1665603 Z m -0.713725,6.4440904 c -0.662132,0.662892 -1.533581,1.075598 -2.465862,1.167976 -0.932389,0.09237 -1.867901,-0.141358 -2.647232,-0.661352 -0.779332,-0.52001 -1.354249,-1.294155 -1.626785,-2.190554 -0.272531,-0.896354 -0.225846,-1.859508 0.132116,-2.7253361 0.35788,-0.8657633 1.005002,-1.5807687 1.830956,-2.0229792 0.825931,-0.4422113 1.779669,-0.5844215 2.698649,-0.4022913 0.918982,0.1821195 1.746458,0.6772985 2.341333,1.4010248 0.594836,0.7238123 0.920438,1.6314471 0.921196,2.5682628 0.0017,0.532203 -0.101936,1.059415 -0.305336,1.551284 -0.203304,0.491785 -0.50213,0.938401 -0.879233,1.313899 z"}),a.jsx("path",{className:"styled info",d:"M 20.061955,12.09978 18.551369,10.589193 20.061955,9.0786072 C 20.241841,8.8987223 20.312147,8.6365615 20.24631,8.3908377 20.180471,8.1451188 19.988451,7.9530974 19.742725,7.8872526 c -0.245721,-0.065847 -0.507883,0.00456 -0.68777,0.1843533 L 17.544368,9.5821922 16.033782,8.0716076 C 15.853898,7.8917219 15.591737,7.8214144 15.346013,7.8872534 c -0.24572,0.065839 -0.437742,0.2578588 -0.503586,0.5035843 -0.06584,0.2457213 0.0045,0.5078813 0.184355,0.6877695 l 1.510585,1.5105858 -1.510587,1.510587 c -0.179886,0.179885 -0.250192,0.442047 -0.184353,0.687771 0.06584,0.24572 0.257859,0.437743 0.503583,0.503585 0.245721,0.06584 0.507883,-0.0046 0.687771,-0.184354 l 1.510589,-1.510588 1.510586,1.510588 c 0.179884,0.179885 0.442045,0.250192 0.68777,0.184354 0.245719,-0.06584 0.43774,-0.25786 0.503584,-0.503585 0.06584,-0.245721 -0.0045,-0.507884 -0.184355,-0.687771 z"})]}),m8=e=>a.jsxs(V.SvgIcon,{...e,children:[a.jsx("path",{d:"m 3.5976562,1.0761719 c -0.7183869,0 -1.3725617,0.3916059 -1.6992187,1.0449219 C 1.5717795,2.7744088 1.637583,3.5269905 2.0625,4.1152344 l 7.5117188,10.1601566 0.00195,6.892578 c 0,0.260281 0.1954492,0.52089 0.4570311,0.61914 l 3.886719,1.373047 c 0.06508,0.03317 0.163435,0.0332 0.228516,0.0332 0.13142,0 0.294328,-0.03453 0.392578,-0.09961 0.195234,-0.130138 0.292968,-0.326281 0.292968,-0.554688 v -4.982421 c -0.48986,-0.26001 -0.941054,-0.589724 -1.339843,-0.980469 l 0.002,5.015625 -2.548828,-0.882813 h 0.0332 v -6.662109 c 0,-0.130148 -0.0326,-0.262425 -0.13086,-0.392578 L 3.1738281,3.3320312 C 2.9785941,3.0704432 3.0742519,2.8423906 3.1074219,2.7441406 3.1406119,2.6790606 3.2709992,2.4492188 3.5976562,2.4492188 H 20.876953 c 0.293484,0 0.457065,0.1966618 0.490235,0.2949218 0.03318,0.09826 0.132044,0.3263097 -0.06445,0.5878906 l -0.632812,0.8515626 c 0.38666,0.2189633 0.751183,0.4755385 1.089844,0.765625 l 0.61914,-0.8339844 C 22.803815,3.5269905 22.869627,2.7744088 22.542969,2.1210938 22.216311,1.4677778 21.562136,1.0761719 20.84375,1.0761719 Z"}),a.jsx("path",{className:"styled info",d:"m 22.256089,10.618935 c 0.0019,1.595286 -0.778827,3.089601 -2.088797,3.999919 -1.309934,0.909821 -2.982899,1.119896 -4.477215,0.56162 l -0.417759,0.486352 c -0.03192,0.03667 -0.07859,0.05668 -0.127184,0.05479 -0.01329,0.0019 -0.02715,0.0019 -0.0405,0 -0.06002,-0.01619 -0.10479,-0.06574 -0.115756,-0.127184 L 14.56112,13.385637 c -0.01,-0.04716 0.0024,-0.09622 0.03333,-0.132889 0.03096,-0.03717 0.07716,-0.05765 0.125271,-0.05621 l 2.248423,0.100502 v -4.75e-4 c 0.06049,0.0034 0.113848,0.04002 0.138147,0.09574 0.02383,0.05572 0.01433,0.120043 -0.02524,0.166249 l -0.232452,0.27057 c 0.176723,0.03096 0.355838,0.04668 0.534937,0.04668 1.158004,9.49e-4 2.229278,-0.612579 2.814249,-1.611505 0.584958,-0.999375 0.595909,-2.234035 0.02859,-3.2434941 -0.0324,-0.05812 -0.02476,-0.1300373 0.01905,-0.1800642 L 21.13477,7.8246932 v -4.744e-4 c 0.0324,-0.037617 0.0805,-0.058597 0.130514,-0.05573 0.04954,0.00291 0.09527,0.028569 0.123375,0.070014 0.567802,0.8155087 0.870761,1.786251 0.867432,2.7804702 z m -7.707782,1.59809 c -0.566851,-1.008902 -0.556375,-2.2426917 0.02763,-3.2415452 0.584008,-0.9989012 1.654307,-1.6129669 2.811444,-1.6133333 0.179114,0 0.358214,0.015737 0.534937,0.046666 l -0.232452,0.2705727 c -0.03953,0.046189 -0.04907,0.1105115 -0.02524,0.1662469 0.02429,0.05573 0.07765,0.09241 0.138132,0.095746 l 2.248423,0.1005125 v -4.75e-4 c 0.04859,0.00291 0.09622,-0.017628 0.127662,-0.054307 0.03192,-0.037148 0.04478,-0.087165 0.03478,-0.1348157 L 19.779192,5.6435045 c -0.01042,-0.061449 -0.05572,-0.110992 -0.115279,-0.1271835 -0.05907,-0.015252 -0.121463,0.00387 -0.161479,0.049548 l -0.41776,0.4863542 c -1.305178,-0.4882571 -2.757055,-0.3934678 -3.98797,0.2600843 -1.230426,0.653553 -2.122089,1.8034465 -2.448413,3.1581335 -0.326325,1.354689 -0.05621,2.784249 0.741668,3.926511 0.02953,0.04144 0.07622,0.06621 0.127185,0.06717 h 0.0091 -4.75e-4 c 0.04335,-4.77e-4 0.0848,-0.01905 0.114323,-0.05049 l 0.889347,-1.016046 v -4.76e-4 c 0.04477,-0.04954 0.0524,-0.122419 0.01905,-0.180064 z"})]}),Fg=e=>a.jsx(V.SvgIcon,{...e,children:a.jsx("path",{d:"M 16.384064,5.4840697 C 15.849784,4.9209811 15.205202,4.4682187 14.488187,4.1710272 13.033567,3.566779 11.34346,3.4869289 9.8402213,3.9635743 8.3024412,4.4509209 7.0699875,5.5548619 6.4345935,7.0391759 6.0822502,7.8615625 5.9324318,8.7572257 5.9324318,9.6488233 c 0,1.6579667 0.5252172,2.9915157 1.576473,4.0231087 0.5301483,0.520284 1.1829709,0.917897 1.8802394,1.170621 0.8956638,0.324356 1.8646028,0.403385 2.8104858,0.352344 0.675035,-0.03621 1.319618,-0.200038 1.955961,-0.429731 -0.532615,1.307271 -1.443936,2.383942 -2.684461,3.152105 -1.273528,0.788646 -3.092884,1.334434 -5.4176042,1.657966 l 0.586965,0.989509 c 1.0191383,0 2.0284138,-0.07655 3.0260774,-0.289773 0.7104398,-0.152298 1.4134618,-0.358919 2.0786348,-0.652002 0.657753,-0.289774 1.240588,-0.670926 1.828374,-1.079243 1.394537,-0.970581 2.506804,-2.263815 3.295409,-3.78033 0.808395,-1.516369 1.212602,-3.073072 1.212602,-4.770621 8.22e-4,-1.8407229 -0.585301,-3.3365027 -1.697482,-4.5088729 z"})}),zg=e=>a.jsx(V.SvgIcon,{...e,children:a.jsx("path",{d:"m 7.5,4.2265625 c 1.8031695,0 3.273437,1.470268 3.273438,3.2734375 0,1.8031695 -1.4702685,3.273437 -3.273438,3.273438 -1.8031695,0 -3.2734375,-1.4702685 -3.2734375,-3.273438 0,-1.8031695 1.470268,-3.2734375 3.2734375,-3.2734375 z m 11.089844,0.089844 1.09375,1.09375 -14.2675784,14.2675778 -1.09375,-1.09375 z M 7.5,5.7734375 C 6.544151,5.7734375 5.7734375,6.544151 5.7734375,7.5 5.7734375,8.455849 6.544151,9.2265625 7.5,9.2265625 8.455849,9.2265625 9.2265625,8.455849 9.2265625,7.5 9.2265625,6.544151 8.455849,5.7734375 7.5,5.7734375 Z m 9,7.4531255 c 1.803169,0 3.273437,1.470268 3.273437,3.273437 0,1.803169 -1.470268,3.273437 -3.273437,3.273437 -1.803169,0 -3.273437,-1.470268 -3.273437,-3.273437 0,-1.803169 1.470268,-3.273437 3.273437,-3.273437 z m 0,1.546875 c -0.955849,0 -1.726562,0.770713 -1.726562,1.726562 -1e-6,0.955849 0.770713,1.726563 1.726562,1.726562 0.955849,0 1.726563,-0.770713 1.726562,-1.726562 0,-0.955849 -0.770713,-1.726562 -1.726562,-1.726562 z"})}),Bg=e=>a.jsxs(V.SvgIcon,{...e,children:[a.jsx("path",{d:"M 9.9417085,4 C 11.516778,4 12.79598,5.279205 12.79598,6.8542781 V 9.941723 c 0,1.575073 -1.279202,2.854277 -2.8542715,2.854277 -1.5750693,0 -2.8542713,-1.279204 -2.8542713,-2.854277 V 6.8542781 C 7.0874372,5.279205 8.3666392,4 9.9417085,4 Z M 17.145728,4 C 18.720797,4 20,5.279205 20,6.8542781 V 9.941723 c 0,1.575073 -1.279203,2.854277 -2.854272,2.854277 -1.575068,0 -2.85427,-1.279204 -2.85427,-2.854277 V 6.8542781 C 14.291458,5.279205 15.57066,4 17.145728,4 Z M 9.9417085,5.5919635 c -0.6984498,0 -1.2623115,0.563863 -1.2623115,1.2623146 V 9.941723 c 0,0.698451 0.5638617,1.262315 1.2623115,1.262315 0.6984495,0 1.2623125,-0.563864 1.2623125,-1.262315 V 6.8542781 c 0,-0.6984516 -0.563863,-1.2623146 -1.2623125,-1.2623146 z m 7.2040195,0 c -0.698449,0 -1.26231,0.563863 -1.26231,1.2623146 V 9.941723 c 0,0.698451 0.56386,1.262315 1.26231,1.262315 0.698451,0 1.262313,-0.563864 1.262313,-1.262315 V 6.8542781 c 0,-0.6984516 -0.563862,-1.2623146 -1.262313,-1.2623146 z M 4.7959799,11.204038 c 0.4383097,0 0.7959799,0.357671 0.7959799,0.795982 0,0.43831 -0.3576702,0.79598 -0.7959799,0.79598 C 4.3576702,12.796 4,12.43833 4,12.00002 4,11.561709 4.3576702,11.204038 4.7959799,11.204038 Z"}),a.jsx("path",{className:"styled info",d:"m 20.624555,19 -4.244229,3.90401 V 20.301337 H 7.8918586 V 17.698663 H 16.380326 V 15.09599 L 20.624555,19"})]}),Ng=e=>a.jsxs(V.SvgIcon,{...e,children:[a.jsx("path",{d:"M 9.9417085,4 C 11.516778,4 12.79598,5.279205 12.79598,6.8542781 V 9.941723 c 0,1.575073 -1.279202,2.854277 -2.8542715,2.854277 -1.5750693,0 -2.8542713,-1.279204 -2.8542713,-2.854277 V 6.8542781 C 7.0874372,5.279205 8.3666392,4 9.9417085,4 Z M 17.145728,4 C 18.720797,4 20,5.279205 20,6.8542781 V 9.941723 c 0,1.575073 -1.279203,2.854277 -2.854272,2.854277 -1.575068,0 -2.85427,-1.279204 -2.85427,-2.854277 V 6.8542781 C 14.291458,5.279205 15.57066,4 17.145728,4 Z M 9.9417085,5.5919635 c -0.6984498,0 -1.2623115,0.563863 -1.2623115,1.2623146 V 9.941723 c 0,0.698451 0.5638617,1.262315 1.2623115,1.262315 0.6984495,0 1.2623125,-0.563864 1.2623125,-1.262315 V 6.8542781 c 0,-0.6984516 -0.563863,-1.2623146 -1.2623125,-1.2623146 z m 7.2040195,0 c -0.698449,0 -1.26231,0.563863 -1.26231,1.2623146 V 9.941723 c 0,0.698451 0.56386,1.262315 1.26231,1.262315 0.698451,0 1.262313,-0.563864 1.262313,-1.262315 V 6.8542781 c 0,-0.6984516 -0.563862,-1.2623146 -1.262313,-1.2623146 z M 4.7959799,11.204038 c 0.4383097,0 0.7959799,0.357671 0.7959799,0.795982 0,0.43831 -0.3576702,0.79598 -0.7959799,0.79598 C 4.3576702,12.796 4,12.43833 4,12.00002 4,11.561709 4.3576702,11.204038 4.7959799,11.204038 Z"}),a.jsx("path",{className:"styled info",d:"m 3.2454426,19 4.2442288,3.90401 V 20.301337 H 15.978128 V 17.698663 H 7.4896714 V 15.09599 L 3.2454426,19"})]}),Vg=e=>a.jsx(V.SvgIcon,{...e,children:a.jsx("path",{d:"m 10.150391,3.1503906 h 2.699218 v 2.1582031 l 0.115235,0.027344 c 1.960079,0.4782967 2.961261,1.9200272 3.083984,3.5136719 H 14.138672 C 14.029741,7.5973962 13.290333,6.75 11.5,6.75 c -1.7437901,0 -2.8496094,0.7991882 -2.8496094,2 0,1.0564872 0.8200058,1.700825 3.1132814,2.296875 2.252935,0.585565 4.585937,1.521676 4.585937,4.253906 0,1.954738 -1.478101,3.040096 -3.376953,3.400391 l -0.123047,0.02344 v 2.125 H 10.150391 V 18.707031 L 10.03125,18.681641 C 8.2079362,18.292287 6.6711519,17.158849 6.4863281,15.150391 H 8.3867188 C 8.5553675,16.353343 9.4500331,17.25 11.5,17.25 c 2.278912,0 2.849609,-1.151198 2.849609,-1.939453 0,-1.024825 -0.565953,-1.944813 -3.115234,-2.556641 -2.7612489,-0.663095 -4.5839844,-1.778508 -4.5839844,-3.9843747 0,-1.8383456 1.4911552,-3.0518263 3.3808594,-3.4609376 L 10.150391,5.28125 Z"})}),Hg=e=>a.jsxs(V.SvgIcon,{...e,children:[a.jsx("path",{d:"m 5.78125,3.0058594 c 1.9829152,0 3.5996094,1.6167226 3.5996094,3.5996093 0,0.5476133 -0.1339172,1.0628676 -0.3554688,1.5312501 L 8.9746094,8.2421875 21.597656,18.814453 c 0.332993,0.278536 0.378219,0.774352 0.09961,1.107422 -0.27842,0.332842 -0.775739,0.377926 -1.107422,0.09961 l -8.830078,-7.394531 -2.7871097,2.339844 0.050781,0.105469 c 0.2227064,0.468278 0.3574219,0.984409 0.3574219,1.533203 0,1.982884 -1.6166943,3.599609 -3.5996094,3.599609 -1.9829151,0 -3.5996094,-1.616725 -3.5996094,-3.599609 0,-1.982888 1.6166941,-3.59961 3.5996094,-3.59961 0.7809243,0 1.5000394,0.257488 2.0917969,0.683594 L 7.96875,13.757813 10.535156,11.603516 7.9707031,9.453125 7.875,9.5214844 C 7.2828198,9.9466952 6.5625337,10.205078 5.78125,10.205078 c -1.9829152,0 -3.5996094,-1.6167226 -3.5996094,-3.5996093 0,-1.9828867 1.6166942,-3.5996093 3.5996094,-3.5996093 z m 0,1.5742187 c -1.1183325,0 -2.0253906,0.9070725 -2.0253906,2.0253906 0,1.118318 0.9070581,2.0253907 2.0253906,2.0253907 1.1183326,0 2.0253906,-0.9070727 2.0253906,-2.0253907 0,-1.1183181 -0.907058,-2.0253906 -2.0253906,-2.0253906 z m 0,9.9999999 c -1.1183323,0 -2.0253906,0.907071 -2.0253906,2.025391 0,1.118318 0.9070581,2.02539 2.0253906,2.02539 1.1183326,0 2.0253906,-0.907072 2.0253906,-2.02539 0,-1.11832 -0.9070582,-2.025391 -2.0253906,-2.025391 z"}),a.jsx("path",{d:"m 21.087891,3.0039063 c 0.226287,-0.00155 0.452554,0.095728 0.609375,0.2832031 0.277334,0.3327963 0.231821,0.8312691 -0.09961,1.109375 l -6.90039,5.7753906 c -0.147833,0.123716 -0.326255,0.183594 -0.503907,0.183594 -0.223947,0 -0.448021,-0.09724 -0.603515,-0.283203 -0.278427,-0.3328528 -0.232198,-0.8299063 0.09961,-1.1093754 L 20.589844,3.1875 c 0.145984,-0.1221105 0.322682,-0.1823961 0.498047,-0.1835937 z"})]});(function(){try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode("._sheetxl-scrollbar_eblx4_6 ::-webkit-scrollbar-button{background:transparent}._fullscreen-portal-root_1mjsr_4{pointer-events:none;position:absolute;inset:0;width:100%;height:100%;z-index:1200}._fullscreen-portal-root_1mjsr_4>*{pointer-events:auto}")),document.head.appendChild(e)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}})();const mo={Enter:13,Escape:27,Space:32,Up:38,Down:40,F4:115},Oo={Horizontal:"horizontal",Vertical:"vertical"};function g8(e){var t,n,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var r=e.length;for(t=0;t<r;t++)e[t]&&(n=g8(e[t]))&&(o&&(o+=" "),o+=n)}else for(n in e)e[n]&&(o&&(o+=" "),o+=n);return o}function Z0(){for(var e,t,n=0,o="",r=arguments.length;n<r;n++)(e=arguments[n])&&(t=g8(e))&&(o&&(o+=" "),o+=t);return o}var $g=function(){},x8=typeof window<"u",Wg=x8?s.useLayoutEffect:s.useEffect,f5={x:0,y:0,width:0,height:0,top:0,left:0,bottom:0,right:0};const M0=x8&&window.ResizeObserver!==void 0?function(){var e=s.useState(null),t=e[0],n=e[1],o=s.useState(f5),r=o[0],i=o[1],l=s.useMemo(function(){return new window.ResizeObserver(function(d){if(d[0]){var c=d[0].contentRect,u=c.x,f=c.y,p=c.width,h=c.height,m=c.top,g=c.left,x=c.bottom,y=c.right;i({x:u,y:f,width:p,height:h,top:m,left:g,bottom:x,right:y})}})},[]);return Wg(function(){if(t)return l.observe(t),function(){l.disconnect()}},[t]),[n,r]}:function(){return[$g,f5]},Yt=(e,t)=>{const n=s.useCallback((...i)=>e?.(...i),t),o=s.useRef(null);o.current=n;const r=s.useCallback((...i)=>o.current?.(...i),[]);if(o.current)return r},Ug=e=>{const{style:t,orientation:n=Oo.Vertical,...o}=e,r=n===Oo.Vertical;return a.jsx("div",{style:{paddingBottom:"0px",paddingRight:"0px",paddingLeft:r?"0px":"3px",paddingTop:r?"3px":"0px",display:"flex",alignItems:"center",justifyContent:"center",...t},...o,children:a.jsx("button",{style:{padding:"0",display:"flex",alignItems:"center",justifyContent:"center",border:"none"},className:`scrollbar-button ${r?"vertical":"horizontal"} single-button start`,children:a.jsx("svg",{width:"9",height:"9",viewBox:"0 0 6 6",style:{opacity:"inherit"},children:a.jsx("path",{d:r?"m 3.7274761,0.68060577 1.11969,1.93863003 1.12075,1.93912 c 0.0895,0.155 0.12152,0.33658 0.0904,0.51283 -0.0311,0.17625 -0.12336,0.33591 -0.26054,0.45091 -0.13715,0.11495 -0.31044,0.17793 -0.4894,0.17781 H 0.83095614 c -0.20186,0 -0.39542,-0.0802 -0.53814,-0.2229 -0.14272,-0.14272 -0.22291,-0.33629 -0.22291,-0.53814 -3e-4,-0.13308 0.0347,-0.26385 0.10147,-0.379 l 1.11872996,-1.94066 1.11921,-1.93864003 c 0.13594,-0.23541 0.38717,-0.38047 0.65905,-0.38047 0.27188,0 0.52311,0.14506 0.65905,0.38047 z":"m 0.75051,2.3424298 1.93863,-1.11969 1.93912,-1.12075 c 0.155,-0.0895 0.33658,-0.12152 0.51283,-0.0904 0.17625,0.0311 0.33591,0.12336 0.45091,0.26054 0.11495,0.13715 0.17793,0.31044 0.17781,0.4894 v 4.47742 c 0,0.20186 -0.0802,0.39542 -0.2229,0.53814 -0.14272,0.14272 -0.33629,0.22291 -0.53814,0.22291 -0.13308,3e-4 -0.26385,-0.0347 -0.379,-0.10147 L 2.68911,4.7797998 0.75047,3.6605898 C 0.51506,3.5246498 0.37,3.2734198 0.37,3.0015398 c 0,-0.27188 0.14506,-0.52311 0.38047,-0.65905 z"})})})})},qg=e=>{const{style:t,orientation:n=Oo.Vertical,...o}=e,r=n===Oo.Vertical;return a.jsx("div",{style:{paddingLeft:"0px",paddingTop:"0px",paddingRight:r?"0px":"3px",paddingBottom:r?"3px":"0px",display:"flex",alignItems:"center",justifyContent:"center",...t},...o,children:a.jsx("button",{style:{padding:"0",display:"flex",alignItems:"center",justifyContent:"center",border:"none"},className:`scrollbar-button ${r?"vertical":"horizontal"} single-button end`,children:a.jsx("svg",{width:"9",height:"9",viewBox:"0 0 6 6",style:{opacity:"inherit"},children:a.jsx("path",{d:r?"M 2.412334,5.319396 1.292644,3.3807659 0.17189405,1.4416459 c -0.0895,-0.155 -0.12152,-0.33658 -0.0904,-0.51282998 0.0311,-0.17625 0.12336,-0.33591 0.26054,-0.45091 0.13715,-0.11495 0.31044,-0.17793 0.4894,-0.17781 H 5.308854 c 0.20186,0 0.39542,0.0802 0.53814,0.2229 0.14272,0.14272 0.22291,0.33629 0.22291,0.53813998 3e-4,0.13308 -0.0347,0.26385 -0.10147,0.379 l -1.11873,1.94066 -1.11921,1.9386401 c -0.13594,0.23541 -0.38717,0.38047 -0.65905,0.38047 -0.27188,0 -0.52311,-0.14506 -0.65905,-0.38047 z":"m 5.3893002,3.6575719 -1.9386301,1.11969 -1.93912,1.12075 c -0.155,0.0895 -0.33658,0.12152 -0.51282997,0.0904 -0.17625,-0.0311 -0.33591,-0.12336 -0.45091,-0.26054 -0.11495,-0.13715 -0.17793,-0.31044 -0.17781,-0.4894 V 0.76105195 c 0,-0.20186 0.0802,-0.39542 0.2229,-0.53814 C 0.73562013,0.08019195 0.92919013,1.9467784e-6 1.1310401,1.9467784e-6 1.2641201,-2.9805322e-4 1.3948901,0.03470195 1.5100401,0.10147195 l 1.94066,1.11872995 1.9386401,1.11921 c 0.23541,0.13594 0.38047,0.38717 0.38047,0.65905 0,0.27188 -0.14506,0.52311 -0.38047,0.65905 z"})})})})},Dc=(e,t,n,o,r=0)=>{for(let i=0;i<n.length;i++){const l=n[i].getBoundingClientRect();let d=l.left-t,c=d+l.width;if(o){if(d<e&&c>=e)return d}else if(Math.ceil(c)>Math.ceil(e)+2)return c}return r};Object.freeze(Object.defineProperty({__proto__:null,getScrollTo:Dc},Symbol.toStringTag,{value:"Module"}));const Bd=s.memo(s.forwardRef((e,t)=>{const{offset:n=0,totalSize:o=0,viewportSize:r=0,style:i,className:l,orientation:d=Oo.Vertical,onScrollOffset:c,onScroll:u,showCustomScrollButtons:f=!1,scrollButtonIncrement:p=200,scrollButtonInitialRepeatDelay:h=260,scrollButtonAdditionalRepeatDelay:m=120,createScrollStartButton:g=Ug,createScrollEndButton:x=qg,...y}=e,v=Yt(u,[u]),b=s.useRef(null),[C,{width:k,height:_}]=M0(),[I,{width:M,height:F}]=M0(),j=d===Oo.Vertical,T=j?"top":"left",w=j?"scrollTop":"scrollLeft",S=j?_:k,D=j?F:M,[E,R]=s.useState(null);s.useEffect(()=>{E!==null&&b.current&&b.current.scrollTo({behavior:"smooth",[T]:E})},[E,j]);const A=s.useCallback((B,Z=!1)=>{if(!b.current)return 0;const G=b.current.querySelector(".scrollbar-viewport"),ie=G.getBoundingClientRect(),ee=G.children,le=Z?0:Dc(B,ie[T],ee,!0,Math.max(0,B-p));return R(le),Math.max(0,le)},[]),L=s.useCallback((B,Z=!1)=>{if(!b.current)return 0;const G=b.current.querySelector(".scrollbar-viewport"),ie=G.getBoundingClientRect(),ee=G.children,le=Math.ceil(D-S),ue=Z?le:Dc(B,ie[T],ee,!1,Math.max(0,B+p));return R(ue),Math.min(le,ue)},[D,S]),P=s.useRef(null),z=s.useCallback(B=>{P.current=n;const Z=B.target[w];c(Z,r,o),v?.(B)},[c,r,o,n]);s.useEffect(()=>{const B=P.current;P.current=null,n!==B&&(b.current[w]=n)},[n,w]);const U=s.useRef(null),O=s.useRef(null),q=s.useCallback(()=>{U.current&&(clearTimeout(U.current),U.current=null,O.current=null)},[]),X=s.useCallback((B,Z,G,ie=h)=>{O.current=B,U.current=setTimeout(()=>{const ee=G?A(O.current||B):L(O.current||B);ee!==O.current?X(ee,!1,G,m):q()},Z?0:ie)},[A,L,q]);s.useEffect(()=>()=>q(),[q]);const re=n,$=s.useMemo(()=>{if(!f)return null;const B={orientation:d,disabled:Math.floor(re)<=0||Math.floor(D-S)===0,onMouseUp:q,onMouseLeave:q,onMouseDown:()=>X(re,!0,!0)};return g?.(B)},[f,d,re,E,D,S]),W=s.useMemo(()=>{if(!f)return null;const B={orientation:d,disabled:Math.floor(D-S)<=Math.ceil(re),onMouseUp:q,onMouseLeave:q,onMouseDown:()=>X(re,!0,!1)};return x?.(B)},[f,d,re,E,D,S]);return a.jsxs("div",{ref:t,style:{display:"flex",flex:"1",flexDirection:j?"column":"row",padding:"0",...i},className:Z0("_sheetxl-scrollbar_eblx4_6",l),...y,children:[$,a.jsx("div",{className:"pseudo-scrollbar",style:{flex:"1 1 100%",display:"flex",boxSizing:"content-box",flexDirection:j?"column":"row",justifyContent:"center",alignItems:"center"},ref:C,children:a.jsx("div",{tabIndex:-1,style:{flex:"1 1 100%",overflowY:j?"scroll":"hidden",overflowX:j?"hidden":"scroll",position:"relative",willChange:"transform"},onScroll:z,ref:b,children:a.jsx("div",{ref:I,style:{position:"absolute",height:j?o-r+(_??0):1,width:j?1:o-r+(k??0)},className:"scrollbar-viewport"})})}),W]})}));Bd.displayName="Scrollbar";let m5=Date.now,Jr={},Zg=1;const Ii=e=>{let t=Jr[e]!==null;return t&&(Jr[e]=null),t},g5=(e,t,n,o=0,r)=>{let i=m5(),l=i,d=0,c=0,u=Zg++;if(u%20==0){const p={};for(let h in Jr)p[h]=!0;Jr=p}const f=function(p){const h=p!==!0,m=m5();if(!Jr[u]||t&&!t(u))return Jr[u]=null,void n(60-c/((m-i)/1e3),u,!1);if(h){const x=Math.round((m-l)/16.666666666666668)-1;for(let y=0;y<Math.min(x,4);y++)f(!0),c++}o&&(d=(m-i)/o,d>1&&(d=1));const g=r?r(d):d;e(g,m,h)!==!1&&d!==1||!h?h&&(l=m,requestAnimationFrame(f)):(Jr[u]=null,n(60-c/((m-i)/1e3),u,d===1||o===void 0))};return Jr[u]=!0,requestAnimationFrame(f),u};var Gg=function(){},Kg=function(e){return Math.pow(e-1,3)+1},Xg=function(e){return(e/=.5)<1?.5*Math.pow(e,3):.5*(Math.pow(e-2,3)+2)},y8=function(e,t){for(var n in this.__callback=e,this.options={scrollingX:!0,scrollingY:!0,animating:!0,animationDuration:250,bouncing:!0,locking:!0,paging:!1,snapping:!1,zooming:!1,minZoom:.5,maxZoom:3,speedMultiplier:1,scrollingComplete:Gg,penetrationDeceleration:.03,penetrationAcceleration:.08},t)this.options[n]=t[n]};y8.prototype={__isSingleTouch:!1,__isTracking:!1,__didDecelerationComplete:!1,__isGesturing:!1,__isDragging:!1,__isDecelerating:!1,__isAnimating:!1,__clientLeft:0,__clientTop:0,__clientWidth:0,__clientHeight:0,__contentWidth:0,__contentHeight:0,__snapWidth:100,__snapHeight:100,__zoomLevel:1,__scrollLeft:0,__scrollTop:0,__maxScrollLeft:0,__maxScrollTop:0,__scheduledLeft:0,__scheduledTop:0,__scheduledZoom:0,__lastTouchLeft:null,__lastTouchTop:null,__lastTouchMove:null,__positions:null,__minDecelerationScrollLeft:null,__minDecelerationScrollTop:null,__maxDecelerationScrollLeft:null,__maxDecelerationScrollTop:null,__decelerationVelocityX:null,__decelerationVelocityY:null,setDimensions:function(e,t,n,o){e!==null&&(this.__clientWidth=e),t!==null&&(this.__clientHeight=t),n!==null&&(this.__contentWidth=n),o!==null&&(this.__contentHeight=o),this.__computeScrollMax(),this.scrollTo(this.__scrollLeft,this.__scrollTop,!0)},setPosition:function(e,t){this.__clientLeft=e||0,this.__clientTop=t||0},setSnapSize:function(e,t){this.__snapWidth=e,this.__snapHeight=t},getValues:function(){return{left:this.__scrollLeft,top:this.__scrollTop,right:this.__scrollLeft+this.__clientWidth/this.__zoomLevel,bottom:this.__scrollTop+this.__clientHeight/this.__zoomLevel,zoom:this.__zoomLevel}},getPoint:function(e,t){var n=this.getValues();return{left:e/n.zoom,top:t/n.zoom}},getScrollMax:function(){return{left:this.__maxScrollLeft,top:this.__maxScrollTop}},zoomTo:function(e,t,n,o,r){if(!this.options.zooming)throw new Error("Zooming is not enabled!");r&&(this.__zoomComplete=r),this.__isDecelerating&&(Ii(this.__isDecelerating),this.__isDecelerating=!1);var i=this.__zoomLevel;n===void 0&&(n=this.__clientWidth/2),o===void 0&&(o=this.__clientHeight/2),e=Math.max(Math.min(e,this.options.maxZoom),this.options.minZoom),this.__computeScrollMax(e);var l=e/i,d=l*(this.__scrollLeft+n)-n,c=l*(this.__scrollTop+o)-o;d>this.__maxScrollLeft?d=this.__maxScrollLeft:d<0&&(d=0),c>this.__maxScrollTop?c=this.__maxScrollTop:c<0&&(c=0),this.__publish(d,c,e,t)},zoomBy:function(e,t,n,o,r){this.zoomTo(this.__zoomLevel*e,t,n,o,r)},scrollTo:function(e,t,n,o){if(this.__isDecelerating&&(Ii(this.__isDecelerating),this.__isDecelerating=!1),o!==void 0&&o!==this.__zoomLevel){if(!this.options.zooming)throw new Error("Zooming is not enabled!");e*=o,t*=o,this.__computeScrollMax(o)}else o=this.__zoomLevel;this.options.scrollingX?this.options.paging?e=Math.round(e/this.__clientWidth)*this.__clientWidth:this.options.snapping&&(e=Math.round(e/this.__snapWidth)*this.__snapWidth):e=this.__scrollLeft,this.options.scrollingY?this.options.paging?t=Math.round(t/this.__clientHeight)*this.__clientHeight:this.options.snapping&&(t=Math.round(t/this.__snapHeight)*this.__snapHeight):t=this.__scrollTop,e=Math.max(Math.min(this.__maxScrollLeft,e),0),t=Math.max(Math.min(this.__maxScrollTop,t),0),e===this.__scrollLeft&&t===this.__scrollTop&&(n=!1),this.__publish(e,t,o,n)},scrollBy:function(e,t,n){var o=this.__isAnimating?this.__scheduledLeft:this.__scrollLeft,r=this.__isAnimating?this.__scheduledTop:this.__scrollTop;this.scrollTo(o+(e||0),r+(t||0),n)},doMouseZoom:function(e,t,n,o){var r=e>0?.97:1.03;return this.zoomTo(this.__zoomLevel*r,!1,n-this.__clientLeft,o-this.__clientTop)},doTouchStart:function(e,t){if(e.length===void 0)throw new Error("Invalid touch list: "+e);if(t instanceof Date&&(t=t.valueOf()),typeof t!="number")throw new Error("Invalid timestamp value: "+t);var n,o;this.__interruptedAnimation=!0,this.__isDecelerating&&(Ii(this.__isDecelerating),this.__isDecelerating=!1,this.__interruptedAnimation=!0),this.__isAnimating&&(Ii(this.__isAnimating),this.__isAnimating=!1,this.__interruptedAnimation=!0);var r=e.length===1;r?(n=e[0].pageX,o=e[0].pageY):(n=Math.abs(e[0].pageX+e[1].pageX)/2,o=Math.abs(e[0].pageY+e[1].pageY)/2),this.__initialTouchLeft=n,this.__initialTouchTop=o,this.__zoomLevelStart=this.__zoomLevel,this.__lastTouchLeft=n,this.__lastTouchTop=o,this.__lastTouchMove=t,this.__lastScale=1,this.__enableScrollX=!r&&this.options.scrollingX,this.__enableScrollY=!r&&this.options.scrollingY,this.__isTracking=!0,this.__didDecelerationComplete=!1,this.__isDragging=!r,this.__isSingleTouch=r,this.__positions=[]},doTouchMove:function(e,t,n){if(e.length===void 0)throw new Error("Invalid touch list: "+e);if(t instanceof Date&&(t=t.valueOf()),typeof t!="number")throw new Error("Invalid timestamp value: "+t);if(this.__isTracking){var o,r;e.length===2?(o=Math.abs(e[0].pageX+e[1].pageX)/2,r=Math.abs(e[0].pageY+e[1].pageY)/2):(o=e[0].pageX,r=e[0].pageY);var i=this.__positions;if(this.__isDragging){var l=o-this.__lastTouchLeft,d=r-this.__lastTouchTop,c=this.__scrollLeft,u=this.__scrollTop,f=this.__zoomLevel;if(n!==void 0&&this.options.zooming){var p=f;if(f=f/this.__lastScale*n,p!==(f=Math.max(Math.min(f,this.options.maxZoom),this.options.minZoom))){var h=o-this.__clientLeft,m=r-this.__clientTop;c=(h+c)*f/p-h,u=(m+u)*f/p-m,this.__computeScrollMax(f)}}if(this.__enableScrollX){c-=l*this.options.speedMultiplier;var g=this.__maxScrollLeft;(c>g||c<0)&&(this.options.bouncing?c+=l/2*this.options.speedMultiplier:c=c>g?g:0)}if(this.__enableScrollY){u-=d*this.options.speedMultiplier;var x=this.__maxScrollTop;(u>x||u<0)&&(this.options.bouncing?u+=d/2*this.options.speedMultiplier:u=u>x?x:0)}i.length>60&&i.splice(0,30),i.push(c,u,t),this.__publish(c,u,f)}else{var y=this.options.locking?3:0,v=Math.abs(o-this.__initialTouchLeft),b=Math.abs(r-this.__initialTouchTop);this.__enableScrollX=this.options.scrollingX&&v>=y,this.__enableScrollY=this.options.scrollingY&&b>=y,i.push(this.__scrollLeft,this.__scrollTop,t),this.__isDragging=(this.__enableScrollX||this.__enableScrollY)&&(v>=5||b>=5),this.__isDragging&&(this.__interruptedAnimation=!1)}this.__lastTouchLeft=o,this.__lastTouchTop=r,this.__lastTouchMove=t,this.__lastScale=n}},doTouchEnd:function(e){if(e instanceof Date&&(e=e.valueOf()),typeof e!="number")throw new Error("Invalid timestamp value: "+e);if(this.__isTracking){if(this.__isTracking=!1,this.__isDragging)if(this.__isDragging=!1,this.__isSingleTouch&&this.options.animating&&e-this.__lastTouchMove<=100){for(var t=this.__positions,n=t.length-1,o=n,r=n;r>0&&t[r]>this.__lastTouchMove-100;r-=3)o=r;if(o!==n){var i=t[n]-t[o],l=this.__scrollLeft-t[o-2],d=this.__scrollTop-t[o-1];this.__decelerationVelocityX=l/i*(1e3/60),this.__decelerationVelocityY=d/i*(1e3/60);var c=this.options.paging||this.options.snapping?4:1;(Math.abs(this.__decelerationVelocityX)>c||Math.abs(this.__decelerationVelocityY)>c)&&this.__startDeceleration(e)}else this.options.scrollingComplete()}else e-this.__lastTouchMove>100&&this.options.scrollingComplete();this.__isDecelerating||((this.__interruptedAnimation||this.__isDragging)&&this.options.scrollingComplete(),this.scrollTo(this.__scrollLeft,this.__scrollTop,!0,this.__zoomLevel)),this.__positions.length=0}},__publish:function(e,t,n,o){var r=this.__isAnimating;if(r&&(Ii(r),this.__isAnimating=!1),o&&this.options.animating){this.__scheduledLeft=e,this.__scheduledTop=t,this.__scheduledZoom=n;var i=this.__scrollLeft,l=this.__scrollTop,d=this.__zoomLevel,c=e-i,u=t-l,f=n-d,p=function(g,x,y){y&&(this.__scrollLeft=i+c*g,this.__scrollTop=l+u*g,this.__zoomLevel=d+f*g,this.__callback&&this.__callback(this.__scrollLeft,this.__scrollTop,this.__zoomLevel))}.bind(this),h=function(g){return this.__isAnimating===g}.bind(this),m=function(g,x,y){x===this.__isAnimating&&(this.__isAnimating=!1),(this.__didDecelerationComplete||y)&&this.options.scrollingComplete(),this.options.zooming&&(this.__computeScrollMax(),this.__zoomComplete&&(this.__zoomComplete(),this.__zoomComplete=null))}.bind(this);this.__isAnimating=g5(p,h,m,this.options.animationDuration,r?Kg:Xg)}else this.__scheduledLeft=this.__scrollLeft=e,this.__scheduledTop=this.__scrollTop=t,this.__scheduledZoom=this.__zoomLevel=n,this.__callback&&this.__callback(e,t,n),this.options.zooming&&(this.__computeScrollMax(),this.__zoomComplete&&(this.__zoomComplete(),this.__zoomComplete=null))},__computeScrollMax:function(e){e===void 0&&(e=this.__zoomLevel),this.__maxScrollLeft=Math.max(this.__contentWidth*e-this.__clientWidth,0),this.__maxScrollTop=Math.max(this.__contentHeight*e-this.__clientHeight,0)},__startDeceleration:function(e){if(this.options.paging){var t=Math.max(Math.min(this.__scrollLeft,this.__maxScrollLeft),0),n=Math.max(Math.min(this.__scrollTop,this.__maxScrollTop),0),o=this.__clientWidth,r=this.__clientHeight;this.__minDecelerationScrollLeft=Math.floor(t/o)*o,this.__minDecelerationScrollTop=Math.floor(n/r)*r,this.__maxDecelerationScrollLeft=Math.ceil(t/o)*o,this.__maxDecelerationScrollTop=Math.ceil(n/r)*r}else this.__minDecelerationScrollLeft=0,this.__minDecelerationScrollTop=0,this.__maxDecelerationScrollLeft=this.__maxScrollLeft,this.__maxDecelerationScrollTop=this.__maxScrollTop;var i=function(u,f,p){this.__stepThroughDeceleration(p)}.bind(this),l=this.options.snapping?4:.1,d=function(){var u=Math.abs(this.__decelerationVelocityX)>=l||Math.abs(this.__decelerationVelocityY)>=l;return u||(this.__didDecelerationComplete=!0),u}.bind(this),c=function(u,f,p){this.__isDecelerating=!1,this.__didDecelerationComplete&&this.options.scrollingComplete(),this.scrollTo(this.__scrollLeft,this.__scrollTop,this.options.snapping)}.bind(this);this.__isDecelerating=g5(i,d,c)},__stepThroughDeceleration:function(e){var t=this.__scrollLeft+this.__decelerationVelocityX,n=this.__scrollTop+this.__decelerationVelocityY;if(!this.options.bouncing){var o=Math.max(Math.min(this.__maxDecelerationScrollLeft,t),this.__minDecelerationScrollLeft);o!==t&&(t=o,this.__decelerationVelocityX=0);var r=Math.max(Math.min(this.__maxDecelerationScrollTop,n),this.__minDecelerationScrollTop);r!==n&&(n=r,this.__decelerationVelocityY=0)}if(e?this.__publish(t,n,this.__zoomLevel):(this.__scrollLeft=t,this.__scrollTop=n),!this.options.paging&&(this.__decelerationVelocityX*=.95,this.__decelerationVelocityY*=.95),this.options.bouncing){var i=0,l=0,d=this.options.penetrationDeceleration,c=this.options.penetrationAcceleration;t<this.__minDecelerationScrollLeft?i=this.__minDecelerationScrollLeft-t:t>this.__maxDecelerationScrollLeft&&(i=this.__maxDecelerationScrollLeft-t),n<this.__minDecelerationScrollTop?l=this.__minDecelerationScrollTop-n:n>this.__maxDecelerationScrollTop&&(l=this.__maxDecelerationScrollTop-n),i!==0&&(i*this.__decelerationVelocityX<=0?this.__decelerationVelocityX+=i*d:this.__decelerationVelocityX=i*c),l!==0&&(l*this.__decelerationVelocityY<=0?this.__decelerationVelocityY+=l*d:this.__decelerationVelocityY=l*c)}}};var $o=typeof window<"u"?window:{screen:{},navigator:{}},hi=($o.matchMedia||function(){return{matches:!1}}).bind($o),b8=!1,Yg={get passive(){return b8=!0}},x5=function(){};$o.addEventListener&&$o.addEventListener("p",x5,Yg),$o.removeEventListener&&$o.removeEventListener("p",x5,!1);var Jg=b8,Qg="PointerEvent"in $o,Nd="ontouchstart"in $o,v8=Nd||"TouchEvent"in $o&&hi("(any-pointer: coarse)").matches,y5=($o.navigator.maxTouchPoints||0)>0||v8,w8=$o.navigator.userAgent||"",ex=hi("(pointer: coarse)").matches&&/iPad|Macintosh/.test(w8)&&Math.min($o.screen.width||0,$o.screen.height||0)>=768,S8=(hi("(pointer: coarse)").matches||!hi("(pointer: fine)").matches&&Nd)&&!/Windows.*Firefox/.test(w8),tx=hi("(any-pointer: fine)").matches||hi("(any-hover: hover)").matches||ex||!Nd,Lc=!y5||!tx&&S8?y5?"touchOnly":"mouseOnly":"hybrid",nx=Lc==="mouseOnly"?"mouse":Lc==="touchOnly"||S8?"touch":"mouse";const ox=Object.freeze(Object.defineProperty({__proto__:null,deviceType:Lc,primaryInput:nx,supportsPassiveEvents:Jg,supportsPointerEvents:Qg,supportsTouchEvents:v8},Symbol.toStringTag,{value:"Module"})),rx=new Set(["INPUT","TEXTAREA","SELECT"]),C8={};function Oc(){return ox}const ix=Object.freeze(Object.defineProperty({__proto__:null,EmptyCssProperties:C8,boundPixel:function(e,t=!1,n=0){return e},createSyntheticEvent:e=>{let t=!1,n=!1;return{nativeEvent:e,currentTarget:e.currentTarget,target:e.target,bubbles:e.bubbles,cancelable:e.cancelable,defaultPrevented:e.defaultPrevented,eventPhase:e.eventPhase,isTrusted:e.isTrusted,preventDefault:()=>{t=!0,e.preventDefault()},isDefaultPrevented:()=>t,stopPropagation:()=>{n=!0,e.stopPropagation()},isPropagationStopped:()=>n,persist:()=>{},timeStamp:e.timeStamp,type:e.type}},detectIt:Oc,focusableNodeNames:rx,toPrettyKeyCode:e=>e==="BracketLeft"?"[":e==="BracketRight"?"]":zn.camelToPrettyCase(e)},Symbol.toStringTag,{value:"Module"})),lx=[];function zs(e,t,n=lx){const o=s.useRef(null);return s.useImperativeHandle(e,()=>{if(!o.current)return;const r=o.current,i=t?.();if(!i||typeof i!="object")throw new Error("attributes must return a plain object of values");const l=Object.keys(i),d=l.length;for(let c=0;c<d;c++){const u=l[c],f=i[u];Object.defineProperty(r,u,{value:f,writable:!0,configurable:!0,enumerable:!0})}return r},n),o}const b5=e=>a.jsx(Bd,{...e}),ax=({width:e,height:t})=>a.jsx("div",{className:"corner",style:{minWidth:`${e}px`,width:`${e}px`,minHeight:`${t}px`,height:`${t}px`}}),sx=s.memo(s.forwardRef((e,t)=>{const{children:n,viewport:o,onScrollViewport:r,showHorizontalScrollbar:i=!0,showVerticalScrollbar:l=!0,createScrollCorner:d=ax,createHorizontalScrollbar:c=b5,createVerticalScrollbar:u=b5,style:f,touchElement:p,disableTouch:h,...m}=e,g=Yt(r,[r]),x=zs(t,()=>({isScrollPane:()=>!0}),[]),y=s.useRef(null);s.useEffect(()=>{y.current&&(y.current.__scrollTop===o?.top&&y.current.__scrollLeft!==!o?.left||y.current?.scrollTo(o?.left,o?.top,!1))},[o?.left,o?.top,p]);const v=s.useCallback((S,D)=>{g?.({left:S,top:D})},[]),b=s.useCallback(S=>{y.current?.doTouchStart(S.touches,S.timeStamp)},[]),C=s.useCallback(S=>{S.preventDefault(),y.current?.doTouchMove(S.touches,S.timeStamp)},[]),k=s.useCallback(S=>{y.current?.doTouchEnd(S.timeStamp)},[]),_=s.useCallback(({containerWidth:S,containerHeight:D,totalWidth:E,totalHeight:R})=>{y.current.setDimensions(S,D,E,R)},[]);s.useEffect(()=>{const S=p??x.current;if(!h&&Oc().supportsTouchEvents&&S&&o){if(!y.current){const D={scrollingX:!0,scrollingY:!0,decelerationRate:.95,penetrationAcceleration:.08};y.current=new y8(v,D)}Oc().supportsTouchEvents&&(S.addEventListener("touchstart",b),S.addEventListener("touchend",k),S.addEventListener("touchmove",C)),_({containerWidth:o?.width,containerHeight:o?.height,totalWidth:o?.totalWidth,totalHeight:o?.totalHeight})}return()=>{S?.removeEventListener("touchstart",b),S?.removeEventListener("touchend",k),S?.removeEventListener("touchmove",C)}},[o?.width,o?.height,o?.totalWidth,o?.totalHeight,h,p]);const[I,{width:M}]=M0(),[F,{height:j}]=M0(),T=s.useMemo(()=>{const S=u({orientation:Oo.Vertical,offset:o?.top,viewportSize:o?.height,totalSize:o?.totalHeight,onScrollOffset:D=>{g?.({top:D})}});return a.jsx("div",{style:{display:"flex",flex:"0"},ref:I,children:S})},[u,o?.top,o?.height,o?.totalHeight]),w=s.useMemo(()=>{const S=c({orientation:Oo.Horizontal,offset:o?.left,viewportSize:o?.width,totalSize:o?.totalWidth,onScrollOffset:D=>g?.({left:D})});return a.jsxs("div",{style:{display:"flex",flex:"none",flexDirection:"row",alignItems:"stretch",justifyContent:"center"},children:[a.jsx("div",{style:{display:"flex",flex:"1 1 100%",flexDirection:"column",width:`calc(100% - ${M}px)`},children:a.jsx("div",{ref:F,className:"sizer",children:S})}),l?d({width:M,height:j}):a.jsx(a.Fragment,{})]})},[c,o?.left,o?.width,o?.totalWidth,l,d,M,j]);return a.jsx("div",{style:{position:"relative",display:"flex",minWidth:l?`${M}px`:void 0,minHeight:i?`${j}px`:void 0,...f},...m,ref:x,children:a.jsxs("div",{style:{position:"relative",width:"100%",flex:"1 1 100%",display:"flex",flexDirection:"column",boxSizing:"border-box"},children:[a.jsxs("div",{style:{display:"flex",flex:"1 1 100%",overflow:"hidden"},children:[a.jsx("div",{style:{display:"flex",flex:"1 1 100%",overflow:"hidden"},children:n}),l?T:a.jsx(a.Fragment,{})]}),i?w:a.jsx(a.Fragment,{})]})})}));sx.displayName="ScrollPane";const cx=()=>{const e=document.fullscreenElement;return e?e.querySelector(".fullscreen-portal-root")||e:document.body};let ia=0;function Vd(){return s.useEffect(()=>{function e(){const t=document.fullscreenElement;if(!t)return;let n=t.querySelector(".fullscreen-portal-root");n||(n=document.createElement("div"),n.className="fullscreen-portal-root _fullscreen-portal-root_1mjsr_4",t.appendChild(n))}return ia++,e(),document.addEventListener("fullscreenchange",e),()=>{document.removeEventListener("fullscreenchange",e),ia--,ia<=0&&(document.querySelectorAll(".fullscreen-portal-root").forEach(t=>{t.parentNode&&t.parentNode.removeChild(t)}),ia=0)}},[]),{getPortalContainer:cx}}const dx=100,ux=100,hx=1e6,px=100,fx=50,mx=s.memo(s.forwardRef((e,t)=>{const{offset:n=0,viewportSize:o=0,totalSize:r=0,minSize:i=0,endGap:l=dx,endScrollIncrement:d=ux,style:c=C8,onMouseDown:u,onScrollOffset:f,onScroll:p,scaleLimit:h=hx,scaleFactor:m=px,precisionFactor:g=fx,...x}=e;p&&console.warn("onScroll not supported for VirtualScrollbar. Use onScrollOffset instead");const y=Yt(u,[u]),v=()=>({offset:n,totalSize:h===0?r:Math.min(r??0,Math.max(i??0,(n??0)+(o??0))+(l??0))}),[b,C]=s.useState(v),k=h!==0&&b.totalSize>h?m:1,_=k/g,I=Math.ceil(b.totalSize/k),M=Math.ceil(b.offset/k),F=Math.ceil(o/k),j=s.useCallback(A=>{},[]),[T,w]=s.useState(!1),S=s.useRef(null);s.useLayoutEffect(()=>{if(!T){S.current={propTotalSize:r,propViewportSize:o,propOffset:n};const A=v();C(A)}},[r,o,n,T,i,l,d]);const D=Yt((A,L,P)=>{const z=S.current;S.current=null,z&&z.propTotalSize===r&&z.propViewportSize===o&&z.propOffset===n||(Math.abs(A-M)<_&&(A=M),f?.(A*k,M,F))},[f,k,_,M,F]),E=s.useCallback(A=>{document.removeEventListener("mousemove",j),document.removeEventListener("mouseup",E),w(!1)},[]),R=s.useCallback(A=>{y?.(A),w(!0),document.addEventListener("mousemove",j,{passive:!0}),document.addEventListener("mouseup",E,{passive:!0})},[j,E]);return a.jsx(Bd,{ref:t,style:{...c},...x,offset:M,totalSize:I,viewportSize:F,onMouseDown:R,onScrollOffset:D})}));function k1(e,t){if(typeof e=="function")return e(t);e&&(e.current=t)}mx.displayName="VirtualScrollbar";var ls=parseInt(s.version.split(".")[0],10)>=19?function(e){return t=>{const n=[];for(const o of e){const r=k1(o,t),i=typeof r=="function";n.push(i?r:()=>k1(o,null))}return()=>{for(const o of n)o()}}}:function(e){return t=>{for(const n of e)k1(n,t)}};s.memo(s.forwardRef((e,t)=>{const{refFocusStart:n,...o}=e,r=s.useRef(null),i=s.useCallback(()=>{if(n)return void n?.current?.focus();const l=r.current.parentElement.children;let d=[];for(let c=0;c<l.length&&l[c]!==r.current;c++){const u=l[c].getAttribute("tabindex");if(u==null||u==="-1"||l[c].getAttribute("disabled")==="true")continue;const f=l[c];f.focus&&d.push({tabindex:parseInt(u),child:f})}d.length!==0&&(d.sort(function(c,u){return c.tabindex-u.tabindex}),d[0].child.focus())},[n]);return a.jsx("div",{tabIndex:0,ref:ls([r,t]),onFocus:i,...o})})),s.memo(s.forwardRef((e,t)=>{const{className:n,style:o,children:r,radius:i=4,strokeWidth:l=1,strokeColor:d="grey",...c}=e,[u,{width:f,height:p}]=M0(),h=s.useRef(null),m=(v,b=0)=>{const C=v/2,k=p-C+b;return function(_,I,M=!1){if(I===0)return _;function F(E,R,A){let L=R.x-E.x,P=R.y-E.y,z=Math.sqrt(L*L+P*P);return j(E,R,Math.min(1,A/z))}function j(E,R,A){return{x:E.x+(R.x-E.x)*A,y:E.y+(R.y-E.y)*A}}function T(E,R){E.length>2&&(E[E.length-2]=R.x,E[E.length-1]=R.y)}function w(E){return{x:parseFloat(E[E.length-2]),y:parseFloat(E[E.length-1])}}let S=_.split(/[,\s]/).reduce(function(E,R){let A=R.match("([a-zA-Z])(.+)");return A?(E.push(A[1]),E.push(A[2])):E.push(R),E},[]).reduce(function(E,R){return parseFloat(R)==R&&E.length?E[E.length-1].push(R):E.push([R]),E},[]),D=[];if(S.length>1){let E=w(S[0]),R=null;S[S.length-1][0]==="Z"&&S[0].length>2&&(R=["L",E.x,E.y],S[S.length-1]=R),D.push(S[0]);for(let A=1;A<S.length;A++){let L=D[D.length-1],P=S[A],z=P===R?S[1]:S[A+1];if(z&&L&&L.length>2&&P[0]==="L"&&z.length>2&&z[0]==="L"){let U,O,q=w(L),X=w(P),re=w(z);M?(U=j(X,L.origPoint||q,I),O=j(X,z.origPoint||re,I)):(U=F(X,q,I),O=F(X,re,I)),T(P,U),P.origPoint=X,D.push(P);let $=j(U,X,.5),W=j(X,O,.5),B=["C",$.x,$.y,W.x,W.y,O.x,O.y];B.origPoint=X,D.push(B)}else D.push(P)}if(R){let A=w(D[D.length-1]);D.push(["Z"]),T(D[0],A)}}else D=S;return D.reduce(function(E,R){return E+R.join(" ")+" "},"")}(`M 0 ${C} L ${i-.5} ${C} L ${i-.5} ${k} L ${2*i} ${k} L ${f-2*i} ${k} M ${f-2*i} ${k} L ${f-i} ${k} L ${f-i} ${C} L ${f} ${C}`,i)},g=s.useMemo(()=>m(l),[f,p,i,l]),x=s.useMemo(()=>{if(i===0)return;const v=i/2;return m(i)+`L ${f} 0 L 0 0 L 0 ${v}`},[g,i,l]),y=s.useMemo(()=>({style:{clipPath:`path('${x}')`}}),[x]);return a.jsxs("div",{className:n,style:{display:"flex",flexDirection:"row",...o},...c,ref:ls([h,u,t]),children:[s.isValidElement(r)?s.cloneElement(r,y):a.jsx(a.Fragment,{}),a.jsx("svg",{style:{position:"absolute",top:0,left:0,pointerEvents:"none"},width:f,height:p,viewBox:`0 0 ${f} ${p}`,children:a.jsx("path",{d:g,stroke:d,fill:"none",vectorEffect:"non-scaling-stroke",strokeWidth:l})})]})}));const gx={},xx=e=>{const{onPointerDown:t,style:n,splitDirection:o,paddingBefore:r=0,paddingAfter:i=0,disabled:l,key:d,hitAreaProps:c=gx,...u}=e,f=o==="row",{style:p,className:h,...m}=c;return a.jsx("div",{style:{...n,position:"relative"},...u,children:a.jsx("div",{className:Z0("hit-box",h),style:{left:(f?-r:0)+"px",width:`calc(100% + ${f?r+i:0}px)`,top:(f?0:-r)+"px",height:`calc(100% + ${f?0:r+i}px)`,position:"absolute",...p},onPointerDown:l?void 0:t,...m})},d)},la={},u0=(e,t,n=!0)=>e===null?null:e.pixels!==null?n?e.pixels:t-e.pixels:(n?e.percent:100-e.percent)/100*t,aa=(e,t=!0)=>e?.percent?`${t?e.percent:100-e.percent}%`:e?.pixels?`${e.pixels}px`:void 0,$r=(e,t)=>{if(e==null)return null;const n={percent:null,pixels:null};let o=t;return typeof e=="string"&&((e=e.trim().toLowerCase()).endsWith("px")?(e=e.substring(0,e.length-2),o=!1):e.endsWith("%")&&(e=e.substring(0,e.length-1),o=!0),e=parseFloat(e)),o?n.percent=e:n.pixels=e,Object.freeze(n)};s.memo(s.forwardRef((e,t)=>{const{elementBefore:n,elementAfter:o,splitDirection:r="row",fixedPane:i=null,position:l,onPositionChange:d,minBefore:c,maxBefore:u,minAfter:f,maxAfter:p,children:h,className:m,style:g,disabled:x=!1,onDragStart:y,onDragResize:v,onDragFinish:b,resizerProps:C=la,paneProps:k=la,paneBeforeProps:_=la,paneAfterProps:I=la,createResizer:M=xx}=e;if(h)throw new Error("Use elementBefore and elementAfter instead of children.");const F=s.useMemo(()=>s.isValidElement(o)&&s.isValidElement(n),[o,n]),j=s.useMemo(()=>{let H=null;i&&(i==="before"?H=0:i==="after"&&(H=1));const te=H===null;return{fixedPaneOffset:H,isPercent:te,minBefore:$r(c,te),maxBefore:$r(u,te),minAfter:$r(f,te),maxAfter:$r(p,te)}},[c,u,f,p]),T=Yt(d,[d]),[w,S]=s.useState(()=>$r(l,i===null));s.useEffect(()=>{S($r(l,i===null))},[l,i]);const[D,{width:E,height:R}]=M0(),[A,{width:L,height:P}]=M0(),z=r==="row"?L:P,U=r==="row"?E:R,O=s.useMemo(()=>((H,te,ne,J)=>{const ae=[null,null],Q=[null,null];if(H||(H={percent:J.fixedPaneOffset===null?50:null,pixels:J.fixedPaneOffset===null?null:0}),te===0)return H?.pixels!=null?J.fixedPaneOffset!==1?(ae[0]=H?.pixels,Q[1]=100):(ae[1]=H?.pixels-ne,Q[0]=100):H?.percent!=null&&(J.fixedPaneOffset!==1?(Q[0]=H?.percent,Q[1]=100-H?.percent):(Q[1]=H?.percent,Q[0]=100-H?.percent)),{percents:Q,pixels:ae,minBefore:aa(J.minBefore,!0),maxBefore:aa(J.maxBefore,!0),minAfter:aa(J.minAfter),maxAfter:aa(J.maxAfter)};let pe=u0(H,te,J.fixedPaneOffset!==1),ge=te-ne,Ee=u0(J.minBefore,ge,!0)??0,Be=u0(J.maxBefore,ge,!0)??ge,Oe=0,Ie=0,Ze=0,Ne=ge;Oe=(u0(J.maxAfter,te,!1)??ne)-ne,Ie=u0(J.minAfter,te,!1)??te,Ze=Math.max(Ee,Oe),Ne=Math.min(Be,Ie),pe=Math.max(Ze,Math.min(pe,Ne)),Ie=Math.min(ge-pe,u0(J.maxAfter,ge-pe,!0)??ge),Oe=Math.min(ge-pe,u0(J.minAfter,ge-pe,!0)??ge),ae[0]=pe,ae[1]=ge-ae[0];const qe=Math.max(0,Math.min(100,pe/ge*100));return Q[0]=qe,Q[1]=100-Q[0],{percents:Q,pixels:ae,minBefore:`${Ee}px`,minAfter:`${Oe}px`,maxBefore:`${ae[0]}px`,maxAfter:`${ae[1]}px`}})(w,U,z,j),[j,w,U,z,r]),[q,X]=s.useState(!1),re=Yt(y,[y]),$=Yt(v,[v]),W=Yt(b,[b]),B=s.useRef(null),Z=s.useRef(null),G=s.useRef(null),{style:ie,className:ee,...le}=k,ue={minWidth:0,minHeight:0,maxWidth:"100%",maxHeight:"100%",display:"flex",overflow:"hidden",...ie},{className:de,style:oe,...fe}=_,{className:Te,style:Le,...ce}=I,he={flex:"1 1 100%",width:"100%",...g,flexDirection:r,display:"flex"},{className:we,style:Y,onPointerDown:ze,...ht}=C,ut=Yt(H=>{const te=$r(H,i===null);S(te)},[i]),ke=Yt(H=>{if(x||!q)return;const te=Fe.current?.getBoundingClientRect();let ne=0;ne=r==="row"?(H.clientX??H.touches?.[0]?.clientX)-te.x:(H.clientY??H.touches?.[0]?.clientY)-te.y,ne=Math.max(0,Math.min(U,ne)),j.fixedPaneOffset===1&&(ne=U-ne),l&&w.pixels===ne||S({pixels:ne,percent:null}),$?.(ne),H.stopPropagation(),H.preventDefault()},[j,r,x,q,w,U]),ot=Yt(H=>{if(document.removeEventListener("pointermove",ke),document.removeEventListener("touchmove",ke),document.removeEventListener("pointerup",ot),q&&(X(!1),w)){if(W(w.pixels),!$r(l,i===null)||w.pixels!==l){const te={...w};te.percent===null&&(te.percent=te.pixels/U*100),T(te)}H.stopPropagation(),H.preventDefault()}},[w,q,l,i,U]),dt=Yt(H=>{ze?.(H),H.defaultPrevented||x||q||(X(!0),re(),document.addEventListener("pointermove",ke,{passive:!1}),document.addEventListener("touchmove",ke,{passive:!1}),document.addEventListener("pointerup",ot,{passive:!1}))},[ze]),Fe=zs(t,()=>({setPosition:ut,isSplitPane:()=>!0}),[]),Je=s.useMemo(()=>F?M?.({key:"resizer",ref:ls([A,Z]),className:Z0("resizer",we),onPointerDownCapture:dt,style:{cursor:x?void 0:r==="row"?"ew-resize":"ns-resize",minWidth:r==="row"?"2px":void 0,minHeight:r!=="row"?"2px":void 0,boxSizing:"border-box",pointerEvents:"all",zIndex:1,...Y},splitDirection:r,disabled:x,...ht}):null,[F,we,ht,r,Y,x]),Ge=r==="row"?"Width":"Height",se={...ue,...oe,flex:j.fixedPaneOffset===0&&O?.pixels[0]!==null?`0 0 ${Math.round(O?.pixels[0])}px`:`1 1 ${Math.round(O?.percents[0]??100)}%`,[`min${Ge}`]:O?.minBefore,[`max${Ge}`]:o?O?.maxBefore:"100%"},We={...ue,...Le,flex:j.fixedPaneOffset===1&&O?.pixels[1]!==null?`0 0 ${Math.round(O?.pixels[1])}px`:`1 1 ${Math.round(O?.percents[1]??100)}%`,[`min${Ge}`]:O?.minAfter,[`max${Ge}`]:n?O?.maxAfter:"100%"},be=s.useMemo(()=>n?a.jsx("div",{ref:B,className:Z0("before",ee,de),style:se,...le,...fe,children:n},"before"):null,[n,k,_,j,O]),Se=s.useMemo(()=>o?a.jsx("div",{ref:G,className:Z0("after",ee,Te),style:We,...le,...ce,children:o},"after"):null,[o,k,I,j,O]);return a.jsxs("div",{ref:ls([D,Fe]),className:Z0("splitPane",r==="row"?"vertical":"horizontal",{dragging:q},m),style:he,children:[be,Je,Se]})}));const yx=({initValue:e,useHookBody:t,applyStateChange:n})=>{const o=s.useRef(e);if(typeof t!="function")throw new Error("function expected as hook body parameter. got "+typeof t);const r=t();return s.useLayoutEffect(()=>{o.current!==r&&(o.current=r,n(r))},[n,r]),null},Pc=e=>{console&&console.warn&&console.warn(e)},E1=typeof self=="object"&&self.self===self&&self||typeof global=="object"&&global.global===global&&global||void 0;let bx=1,Ac=!1,k8=!1;const Ba=[],G0=[],as=()=>{G0.forEach(e=>e())},vx=({automaticContainerInternalUseOnly:e})=>{const[t,n]=s.useState([]),o=s.useRef([]);return o.current=t,e||Ac!==!1||(k8=!0),s.useEffect(()=>{let r=!0;function i(){if(r)return G0[0]!==i?(e||Ac!==!0||Pc("SingletonHooksContainer is mounted after some singleton hook has been used.Your SingletonHooksContainer will not be used in favor of internal one."),void n(l=>[])):void n([...Ba])}return G0.push(i),as(),()=>{r=!1,o.current?.length>0&&Pc("SingletonHooksContainer is unmounted, but it has active singleton hooks. They will be reevaluated once SingletonHooksContainer is mounted again"),G0.splice(G0.indexOf(i),1),as()}},[e]),a.jsx(a.Fragment,{children:t.map(({hook:r,key:i})=>s.createElement(yx,{...r,key:i}))})},E8=(e,t,n={})=>{let o,r,i=!1,l=!1,d=[],{unmountIfNoConsumers:c=!1}=n;const u=p=>{r=p,eo.unstable_batchedUpdates(()=>d.forEach(h=>h(p)))},f=()=>(l||(r=typeof e=="function"?e():e,l=!0),r);return()=>{const[p,h]=s.useState(f);return s.useEffect(()=>(i||(i=!0,o=(m=>{const g=bx++;return Ba.push({hook:m,key:g}),G0.length===0&&k8===!1&&(Ac=!0,(x=>{if(E1.document&&E1.document.createElement){const y=E1.document.createElement("div");Sd.createRoot(y).render(a.jsx(x,{automaticContainerInternalUseOnly:!0}))}else Pc("Can not mount SingletonHooksContainer on server side. Did you manage to run useEffect on server? Please mount SingletonHooksContainer into your components tree manually.")})(vx)),as(),()=>{Ba.splice(Ba.findIndex(x=>x.key===g),1),as()}})({initValue:e,useHookBody:t,applyStateChange:u})),d.push(h),r!==p&&h(r),()=>{d.splice(d.indexOf(h),1),d.length===0&&c&&(o(),i=!1)}),[]),p}};function Hd(e,t=null){const n=s.useRef(t);n.current=t;const[o,r]=s.useReducer(l=>l+1,0),i=s.useMemo(()=>Array.isArray(e)?e:[e],[e]);return s.useEffect(()=>{if(!i||i.length===0)return;const l=(u,f)=>{n.current?.onChange?.(f),r()};let d=null;t&&(d={onExecute(u,f){n.current?.onExecute?.(u,f)},onError(u,f,p){n.current?.onError?.(u,f,p)}});const c=new Set;for(let u=0;u<i.length;u++)c.add(i[u]?.addPropertyListener(zn.debounce(l,0),!0)),t&&c.add(i[u]?.addExecuteListener(d));return()=>{c.forEach(u=>{u?.()})}},[e]),o}E8(null,()=>{const[e,t]=s.useState(null);return e}),zn.getOS()===zn.OSType.MacOS||(zn.getOS(),zn.OSType.IOS),zn.getOS()===zn.OSType.MacOS||(zn.getOS(),zn.OSType.IOS);const sa=(e,t)=>{const n=[];if(t)for(let o=0;o<t.length;o++){const r=t[o],i=r?e?.getCommand(r):null;n.push(i)}return n};function $d(e,t=null,n=null,o){const r=s.useRef(n);r.current=n,t&&!Array.isArray(t)&&(t=[t]);const[i,l]=s.useState(sa(e,t)),d=o?[...o,e]:[e];return s.useEffect(()=>{const c={onGroupChange:()=>{const h=sa(e,t);l(h),r.current?.onChange?.(this)}};let u;t&&t.length>0&&(u={keys:t},c.onCommandChange=(h,m)=>{r.current?.onChange?.(e),l(sa(e,t))});const f=e?.addListener(c,u),p=sa(e,t);return l(p),r.current?.onChange&&r.current?.onChange(e),()=>{f?.()}},d),i}const or={Toolbar:"toolbar",Menuitem:"menuitem"};E8({setClipboard:e=>{throw new Error("This is only available via the useClipboard.")},getClipboard:()=>ts.Global,refNativeCopy:{current:null},refNativeLastKey:{current:null}},()=>{const[e,t]=s.useState(ts.Global);return{setClipboard:n=>t(n),getClipboard:()=>e,refNativeCopy:s.useRef(null),refNativeLastKey:s.useRef(null)}});let _1=!1,wx=0;var Sx=typeof document<"u"?s.useLayoutEffect:s.useEffect;const v5=()=>"sheetxl-ui-"+wx++,Cx=s.useId??function(){const[e,t]=s.useState(()=>_1?v5():void 0);return Sx(()=>{e==null&&t(v5())},[]),s.useEffect(()=>{_1||(_1=!0)},[]),e},kx=e=>{const{isWalking:t=!1,themedType:n="info",...o}=e,r="copy-walking-offset-"+Cx().replaceAll(":","");s.useEffect(()=>{if(!t)return;const l=`
28
- @keyframes ${r} {
29
- to {
30
- stroke-dashoffset: 0px;
31
- }
32
- }`,d=document.createElement("style");return d.appendChild(document.createTextNode(l)),document.head.appendChild(d),d.sheet.insertRule(l,0),()=>{document.head.removeChild(d)}},[t]);let i=s.useMemo(()=>{if(t)return{strokeDasharray:"5px 2px",strokeDashoffset:"7px",animation:`${r} 840ms linear infinite`,willChange:"stroke-dashoffset"}},[t]);return a.jsx(V.SvgIcon,{...o,children:a.jsxs("g",{children:[a.jsx("path",{d:"M 16,1 H 4 C 2.9,1 2,1.9 2,3 V 17 H 4 V 3 h 12 z"}),a.jsx("rect",{x:"7",y:"6",width:"13",height:"16",rx:"1.5",className:`styled ${n} stroked`,style:{fill:"none",strokeWidth:"2px",vectorEffect:"non-scaling-stroke",...i}})]})})},w5=e=>a.jsx(V.SvgIcon,{...e,children:a.jsx("path",{d:"m 12.25,0.84375 c 1.221781,0 2.257109,0.7931648 2.652344,1.8847656 l 0.07226,0.1992188 h 4.566407 c 0.978211,0 1.78125,0.8030383 1.78125,1.78125 V 21.375 c 0,0.978211 -0.803039,1.78125 -1.78125,1.78125 H 4.9589844 c -0.9782117,0 -1.78125,-0.803039 -1.78125,-1.78125 V 4.7089844 c 0,-0.9782117 0.8030383,-1.78125 1.78125,-1.78125 H 9.5253906 L 9.5976563,2.7285156 C 9.9928911,1.6369148 11.028219,0.84375 12.25,0.84375 Z m 0,1.4785156 c -0.740184,0 -1.34375,0.603566 -1.34375,1.34375 0,0.740184 0.602868,1.3457031 1.34375,1.3457031 0.740882,0 1.34375,-0.6055191 1.34375,-1.3457031 0,-0.740184 -0.603566,-1.34375 -1.34375,-1.34375 z M 4.65625,4.40625 v 17.271484 h 15.1875 V 4.40625 h -2.6875 v 3.125 h -9.8125 v -3.125 z"})}),Ex=e=>a.jsxs(V.SvgIcon,{...e,children:[a.jsx("path",{d:"m 12,0.26367188 c 1.184248,0 2.189274,0.76838252 2.572266,1.82617192 l 0.0625,0.1738281 H 19 c 0.953433,0 1.736328,0.7828955 1.736328,1.7363281 V 8.1777344 H 19.527344 19.263672 V 3.7363281 h -2.527344 v 3 H 7.2636719 v -3 H 4.7363281 V 20.263672 H 7.5761719 L 7.4375,20.818359 7.2070312,21.736328 H 5 C 4.0465674,21.736328 3.2636719,20.953433 3.2636719,20 V 4 C 3.2636719,3.0465674 4.0465674,2.2636719 5,2.2636719 h 4.3652344 l 0.0625,-0.1738281 C 9.8107272,1.0320541 10.815752,0.26367187 12,0.26367188 Z m 0,1.47265622 c -0.696562,0 -1.263672,0.5671095 -1.263672,1.2636719 0,0.6965624 0.56711,1.2636719 1.263672,1.2636719 0.696562,0 1.263672,-0.5671095 1.263672,-1.2636719 0,-0.6965624 -0.56711,-1.2636719 -1.263672,-1.2636719 z"}),a.jsx("path",{className:"styled info",d:"m 11.739786,23.556948 0.902735,-3.568955 H 9.4304658 l 0.3149085,-1.259631 h 3.2120547 l 0.944723,-3.778895 H 10.27022 l 0.314907,-1.259632 h 3.631935 l 0.881741,-3.568954 h 1.238638 l -0.881743,3.568954 h 3.799886 l 0.881743,-3.568954 h 1.238638 l -0.881743,3.568954 h 3.21206 l -0.314908,1.259632 h -3.21206 l -0.944722,3.778895 h 3.631936 l -0.314908,1.259631 h -3.631935 l -0.881743,3.568955 h -1.25963 l 0.902734,-3.568955 h -3.799887 l -0.881741,3.568955 z m 2.45628,-4.828586 h 3.799888 l 0.944723,-3.778895 H 15.14079 Z"})]}),_x=e=>a.jsxs(V.SvgIcon,{...e,children:[a.jsx("path",{d:"m 12,0.26367188 c 1.184248,0 2.189274,0.76838252 2.572266,1.82617192 l 0.0625,0.1738281 H 19 c 0.953433,0 1.736328,0.7828955 1.736328,1.7363281 V 8.4257813 H 19.263672 V 3.7363281 h -2.527344 v 3 H 7.2636719 v -3 H 4.7363281 V 20.263672 h 8.5722659 v 1.472656 H 5 C 4.0465674,21.736328 3.2636719,20.953433 3.2636719,20 V 4 C 3.2636719,3.0465674 4.0465674,2.2636719 5,2.2636719 h 4.3652344 l 0.0625,-0.1738281 C 9.8107272,1.0320541 10.815752,0.26367187 12,0.26367188 Z m 0,1.47265622 c -0.696562,0 -1.263672,0.5671095 -1.263672,1.2636719 0,0.6965624 0.56711,1.2636719 1.263672,1.2636719 0.696562,0 1.263672,-0.5671095 1.263672,-1.2636719 0,-0.6965624 -0.56711,-1.2636719 -1.263672,-1.2636719 z"}),a.jsx("path",{className:"styled info",d:"m 21.482442,11.065857 v -0.7 c 0,-0.3850002 -0.315,-0.7000003 -0.7,-0.7000003 h -8.4 c -0.385,0 -0.7,0.3150001 -0.7,0.7000003 v 2.8 c 0,0.385 0.315,0.7 0.7,0.7 h 8.4 c 0.385,0 0.7,-0.315 0.7,-0.7 v -0.7 h 0.7 v 2.8 h -7 v 7.7 c 0,0.385 0.315,0.7 0.7,0.7 h 1.4 c 0.385,0 0.7,-0.315 0.7,-0.7 v -6.3 h 5.6 v -5.6 z"})]}),Tx=e=>a.jsxs(V.SvgIcon,{...e,children:[a.jsx("path",{d:"m 12,0.26367188 c 1.184248,0 2.189274,0.76838252 2.572266,1.82617192 l 0.0625,0.1738281 H 19 c 0.953433,0 1.736328,0.7828955 1.736328,1.7363281 v 7.050781 H 19.263672 V 3.7363281 h -2.527344 v 3 H 7.2636719 v -3 H 4.7363281 V 20.263672 h 3.28125 v 1.472656 H 5 C 4.0465674,21.736328 3.2636719,20.953433 3.2636719,20 V 4 C 3.2636719,3.0465674 4.0465674,2.2636719 5,2.2636719 h 4.3652344 l 0.0625,-0.1738281 C 9.8107272,1.0320541 10.815752,0.26367187 12,0.26367188 Z m 0,1.47265622 c -0.696562,0 -1.263672,0.5671095 -1.263672,1.2636719 0,0.6965624 0.56711,1.2636719 1.263672,1.2636719 0.696562,0 1.263672,-0.5671095 1.263672,-1.2636719 0,-0.6965624 -0.56711,-1.2636719 -1.263672,-1.2636719 z"}),a.jsx("path",{className:"styled info",d:"m 16.272946,14.080613 c 0.08203,-0.104202 0.120059,-0.235524 0.187385,-0.348236 0.0679,-0.113283 0.02918,-0.133961 -0.08536,-0.133041 -0.452794,0.0038 -0.905675,-0.0019 -1.358469,0.0034 -0.120751,0.0015 -0.162109,-0.02505 -0.139019,-0.156938 0.100298,-0.5725 0.196692,-1.145676 0.342588,-1.708645 0.08629,-0.333412 0.178539,-0.666941 0.362824,-0.963823 0.183594,-0.296176 0.43944,-0.373059 0.754352,-0.2199 0.263212,0.127758 0.477353,0.318823 0.654059,0.550881 0.0772,0.101452 0.178882,0.181066 0.296646,0.113284 0.226792,-0.130401 0.425882,-0.289524 0.541354,-0.545854 0.06675,-0.148209 0.104202,-0.31444 0.02666,-0.466323 -0.107769,-0.2104774 -0.306882,-0.3572068 -0.525617,-0.4380898 -0.363382,-0.1341901 -0.755969,-0.1025941 -1.116263,0.02401 -0.415677,0.1461414 -0.814795,0.3875308 -1.160971,0.6583238 -0.127759,0.09995 -0.251837,0.205768 -0.368794,0.318589 -0.430028,0.414529 -0.750116,0.907852 -0.975411,1.460146 -0.160041,0.392705 -0.287914,0.793205 -0.352264,1.212999 -0.01172,0.0772 -0.03677,0.146371 -0.122011,0.159582 -0.10524,0.01632 -0.229435,3.44e-4 -0.336294,6.89e-4 -0.239315,6.87e-4 -0.487235,-0.05056 -0.664412,0.156822 -0.07893,0.09225 -0.162108,0.199795 -0.229549,0.300882 -0.06675,0.100298 -0.06158,0.198301 0.05619,0.242762 0.12925,0.0486 0.299058,0.01735 0.431411,0.01299 0.174747,-0.0056 0.349499,0.0034 0.524235,-4.58e-4 0.120288,-0.0026 0.159468,0.02011 0.136374,0.155791 -0.02206,0.131549 -0.04791,0.257467 -0.06722,0.387764 -0.06606,0.447853 -0.141199,0.894529 -0.216567,1.340999 -0.10489,0.619264 -0.208409,1.239087 -0.321705,1.85741 -0.108224,0.590647 -0.184975,1.186706 -0.318707,1.773558 -0.104435,0.459205 -0.171185,0.927264 -0.282284,1.384646 -0.09317,0.383381 -0.17291,0.775381 -0.385441,1.120293 -0.154641,0.251035 -0.380618,0.357088 -0.664411,0.290097 -0.256665,-0.06112 -0.498618,-0.157629 -0.707618,-0.327794 -0.137982,-0.112479 -0.2958534,-0.196347 -0.4645002,-0.09949 -0.1586624,0.09111 -0.2727473,0.260112 -0.3604113,0.416235 -0.281367,0.501823 0.1777349,0.978852 0.6731465,1.05447 0.332707,0.05056 0.66097,-0.06881 0.953353,-0.216912 0.390382,-0.197841 0.727705,-0.475999 1.010676,-0.804116 0.231961,-0.268957 0.474852,-0.525383 0.668087,-0.824794 0.128791,-0.199794 0.246897,-0.406353 0.354441,-0.618 0.381323,-0.751264 0.618323,-1.561911 0.813999,-2.377998 0.0941,-0.39247 0.196463,-0.782499 0.283318,-1.176823 0.11822,-0.53641 0.215647,-1.08191 0.304235,-1.623969 0.04401,-0.268955 0.08099,-0.537441 0.137179,-0.804234 0.0463,-0.220016 0.08468,-0.447941 0.114321,-0.670736 0.03459,-0.259075 0.198988,-0.242991 0.423146,-0.267693 0.189109,-0.02091 0.379471,-0.03068 0.569264,-0.04469 0.15223,-0.01107 0.326971,0.0027 0.470235,-0.05813 0.05113,-0.02172 0.09731,-0.05342 0.133732,-0.09995 z"}),a.jsx("path",{className:"styled info",d:"m 23.12147,13.86826 c -0.03102,-0.103631 -0.08709,-0.196806 -0.160041,-0.276538 -0.06675,-0.07285 -0.160962,-0.1682 -0.250688,-0.211167 -0.2909,-0.139363 -0.683352,-0.01713 -0.935205,0.153494 -0.133962,0.09088 -0.253446,0.204617 -0.373265,0.313411 -0.118797,0.107991 -0.233915,0.219439 -0.3395,0.340412 -0.219438,0.251494 -0.417853,0.521146 -0.608234,0.794911 -0.0926,0.133388 -0.353294,0.618793 -0.432912,0.571 -0.08387,-0.05021 -0.188764,-0.534588 -0.228629,-0.670853 -0.05538,-0.189224 -0.09225,-0.384882 -0.180492,-0.562853 C 19.491985,14.076971 19.416617,13.81146 19.247388,13.592371 19.060461,13.350069 18.845859,13.28046 18.5538,13.36891 c -0.28688,0.08686 -0.518382,0.267464 -0.745411,0.450471 -0.332823,0.267923 -0.580883,0.611911 -0.830293,0.953822 -0.186465,0.255974 -0.188074,0.254827 0.02964,0.487471 0.136374,0.146141 0.133962,0.144299 0.257124,-0.0056 0.175896,-0.214729 0.346735,-0.435647 0.582941,-0.590176 0.172564,-0.113167 0.276078,-0.09041 0.382822,0.08766 0.05239,0.08766 0.09696,0.181871 0.132239,0.278032 0.221738,0.603853 0.389823,1.224735 0.589146,1.835352 0.02516,0.07778 -0.0075,0.128103 -0.04434,0.183938 -0.235524,0.355941 -0.475177,0.709559 -0.741853,1.042735 -0.211625,0.26505 -0.424969,0.531029 -0.70944,0.725058 -0.124082,0.08513 -0.2693,0.143841 -0.420029,0.103632 -0.154526,-0.04148 -0.246898,-0.181526 -0.388089,-0.246783 -0.004,-0.002 -0.0084,-0.0035 -0.01252,-0.0052 -0.06584,-0.02688 -0.164982,-0.02574 -0.233227,-0.01038 -0.29997,0.06767 -0.460823,0.405676 -0.52194,0.676235 -0.05537,0.245521 -8.03e-4,0.514029 0.172564,0.701852 0.151194,0.163718 0.378,0.232076 0.595588,0.235409 0.124886,0.0019 0.264133,-0.03079 0.380176,-0.0756 0.442794,-0.173138 0.780559,-0.586059 1.060206,-0.952323 0.188535,-0.247358 0.363617,-0.504705 0.548029,-0.755293 0.152344,-0.207147 0.453117,-0.824205 0.538941,-0.826176 0.05193,-0.0012 0.06561,0.122703 0.07548,0.159238 0.02205,0.08168 0.04401,0.163374 0.06755,0.2446 0.110637,0.382117 0.227137,0.763912 0.346852,1.143028 0.07985,0.253792 0.208641,0.517 0.370412,0.728853 0.04906,0.06445 0.110521,0.126035 0.173711,0.176241 0.245288,0.196118 0.554117,0.181297 0.836411,0.08134 0.126494,-0.04469 0.244371,-0.107769 0.356264,-0.181985 0.51653,-0.343411 0.885559,-0.821911 1.234264,-1.322734 0.08215,-0.118106 0.071,-0.184167 -0.02274,-0.282744 -0.242646,-0.255171 -0.235867,-0.257467 -0.465764,0.01321 -0.17245,0.202436 -0.348235,0.404647 -0.580882,0.540912 -0.162452,0.09547 -0.273094,0.06824 -0.391529,-0.07824 -0.09812,-0.121209 -0.162682,-0.262065 -0.218864,-0.406147 -0.231044,-0.595235 -0.38903,-1.214499 -0.584676,-1.821469 -0.143612,-0.445323 -0.147632,-0.449441 0.138326,-0.824794 0.295617,-0.388205 0.578471,-0.790558 0.965881,-1.09741 0.284812,-0.225644 0.483471,-0.213121 0.745736,0.03906 0.05205,0.05009 0.137065,0.0918 0.209329,0.09753 0.244255,0.01964 0.456558,-0.199793 0.581911,-0.382588 0.124312,-0.18049 0.171414,-0.408764 0.107769,-0.620734 z"})]}),jx=e=>a.jsxs(V.SvgIcon,{...e,children:[a.jsx("path",{d:"m 12,0.26367188 c 1.184248,0 2.189276,0.76838322 2.572266,1.82617192 l 0.0625,0.1738281 H 19 c 0.953433,0 1.736328,0.7828955 1.736328,1.7363281 V 9.3613281 L 19.263672,7.8886719 V 3.7363281 h -2.527344 v 3 H 7.2636719 v -3 H 4.7363281 V 20.263672 h 4.1523438 l 1.4726561,1.472656 H 5 C 4.0465674,21.736328 3.2636719,20.953433 3.2636719,20 V 4 C 3.2636719,3.0465674 4.0465674,2.2636719 5,2.2636719 h 4.3652344 l 0.0625,-0.1738281 C 9.8107272,1.0320541 10.815752,0.26367187 12,0.26367188 Z m 0,1.47265622 c -0.696562,0 -1.263672,0.5671095 -1.263672,1.2636719 0,0.6965624 0.56711,1.2636719 1.263672,1.2636719 0.696562,0 1.263672,-0.5671095 1.263672,-1.2636719 0,-0.6965624 -0.56711,-1.2636719 -1.263672,-1.2636719 z m 8.736328,13.2031249 v 0.04687 H 20.6875 Z"}),a.jsx("path",{className:"styled info",d:"M 18.125,20.675 H 15.65 v -6.6 H 14 v 6.6 h -2.475 l 3.3,3.3 z M 23.9,14.9 20.6,11.6 v 2.475 h -6.598389 v 1.65 H 20.6 V 18.2 Z"})]}),Mx=e=>a.jsxs(V.SvgIcon,{...e,children:[a.jsx("path",{d:"m 12,0.26367188 c 1.184248,0 2.189275,0.76838292 2.572266,1.82617192 l 0.0625,0.1738281 H 19 c 0.953433,0 1.736328,0.7828955 1.736328,1.7363281 V 14.525391 H 20 c -0.198708,0 -0.390751,0.01635 -0.576172,0.03906 H 19.263672 V 3.7363281 h -2.527344 v 3 H 7.2636719 v -3 H 4.7363281 V 20.263672 H 8.34375 c 0.105427,0.52739 0.2985439,1.023695 0.5625,1.472656 H 5 C 4.0465674,21.736328 3.2636719,20.953433 3.2636719,20 V 4 C 3.2636719,3.0465674 4.0465674,2.2636719 5,2.2636719 h 4.3652344 l 0.0625,-0.1738281 C 9.8107272,1.0320541 10.815752,0.26367187 12,0.26367188 Z m 0,1.47265622 c -0.696562,0 -1.263672,0.5671095 -1.263672,1.2636719 0,0.6965624 0.56711,1.2636719 1.263672,1.2636719 0.696562,0 1.263672,-0.5671095 1.263672,-1.2636719 0,-0.6965624 -0.56711,-1.2636719 -1.263672,-1.2636719 z"}),a.jsx("path",{className:"styled info",d:"m 10.894531,19.75 c 0,-1.23975 1.00775,-2.2475 2.2475,-2.2475 h 2.9 V 16.125 h -2.9 c -2.001,0 -3.6249998,1.624 -3.6249998,3.625 0,2.001 1.6239998,3.625 3.6249998,3.625 h 2.9 v -1.3775 h -2.9 c -1.23975,0 -2.2475,-1.00775 -2.2475,-2.2475 z m 2.9725,0.725 h 5.8 v -1.45 h -5.8 z m 6.525,-4.35 h -2.9 v 1.3775 h 2.9 c 1.23975,0 2.2475,1.00775 2.2475,2.2475 0,1.23975 -1.00775,2.2475 -2.2475,2.2475 h -2.9 v 1.3775 h 2.9 c 2.001,0 3.625,-1.624 3.625,-3.625 0,-2.001 -1.624,-3.625 -3.625,-3.625 z"})]}),Rx=e=>a.jsxs(V.SvgIcon,{...e,children:[a.jsx("path",{d:"m 6.5045335,15.19778 v 3.80885 c 0,0.225374 -0.2352933,0.408078 -0.4258292,0.408078 H 2.1042441 c -0.2352933,0 -0.4258251,-0.182811 -0.4258251,-0.408078 v -3.80885 c 0,-0.225386 0.2352932,-0.408088 0.4258251,-0.408088 h 3.9744602 c 0.2352932,0 0.4258292,0.18282 0.4258292,0.408088 z m 0,-6.9375342 v 3.8088512 c 0,0.225375 -0.2352933,0.408077 -0.4258292,0.408077 H 2.1042441 c -0.2352933,0 -0.4258251,-0.18281 -0.4258251,-0.408077 V 8.2602458 c 0,-0.2253846 0.2352932,-0.4080873 0.4258251,-0.4080873 h 3.9744602 c 0.2352932,0 0.4258292,0.1828202 0.4258292,0.4080873 z m 0,-6.9379836 V 5.131113 c 0,0.2253748 -0.2352933,0.4080873 -0.4258292,0.4080873 H 2.1042441 C 1.8689508,5.5392003 1.678419,5.35638 1.678419,5.131113 V 1.3222622 c 0,-0.2253748 0.2352932,-0.40808731 0.4258251,-0.40808731 h 3.9744602 c 0.2352932,0 0.4258292,0.18282021 0.4258292,0.40808731 z M 15.158089,23.291912 V 8.8045156 C 15.158216,8.6964547 15.113371,8.5924574 15.033394,8.5158572 14.953603,8.4392865 14.84533,8.3963206 14.73226,8.3963206 H 9.2675073 c -0.2352923,0 -0.4258241,0.1828202 -0.4258241,0.4080873 V 23.291805 c 0,0.108433 0.044721,0.212059 0.124694,0.28866 C 9.0461652,23.657035 9.1544028,23.7 9.2674724,23.7 h 5.4647536 c 0.11307,0 0.221313,-0.04289 0.301135,-0.119535 0.07997,-0.07657 0.124887,-0.180227 0.124693,-0.28866 z M 10.331828,13.021494 V 9.8245624 h 3.33574 v 3.1969316 z m 0,4.625161 v -3.196587 h 3.33574 v 3.196744 z m 0,4.625134 v -3.196735 h 3.335741 v 3.196735 z M 22.32158,15.19778 v 3.808849 c 0,0.225375 -0.235254,0.408079 -0.425825,0.408079 h -3.97446 c -0.235293,0 -0.425824,-0.182812 -0.425824,-0.408079 V 15.19778 c 0,-0.225386 0.235253,-0.408088 0.425824,-0.408088 h 3.97446 c 0.235293,0 0.425825,0.18282 0.425825,0.408088 z m 0,-6.9375342 v 3.8088502 c 0,0.225375 -0.235254,0.408077 -0.425825,0.408077 h -3.97446 c -0.235293,0 -0.425824,-0.18281 -0.425824,-0.408077 V 8.2602458 c 0,-0.2253846 0.235253,-0.4080873 0.425824,-0.4080873 h 3.97446 c 0.235293,0 0.425825,0.1828202 0.425825,0.4080873 z m 0,-6.9379836 V 5.131113 c 0,0.2253748 -0.235254,0.4080873 -0.425825,0.4080873 h -3.97446 c -0.235293,0 -0.425824,-0.1828203 -0.425824,-0.4080873 V 1.3222622 c 0,-0.2253748 0.235253,-0.40808731 0.425824,-0.40808731 h 3.97446 c 0.235293,0 0.425825,0.18282021 0.425825,0.40808731 z"}),a.jsx("path",{className:"styled info",d:"m 13.683923,4.0063431 c 0,0.9359586 -0.758778,1.6947369 -1.694737,1.6947369 -0.935959,0 -1.694737,-0.7587783 -1.694737,-1.6947369 0,-0.9359586 0.758778,-1.6947369 1.694737,-1.6947369 0.935959,0 1.694737,0.7587783 1.694737,1.6947369 M 11.989186,0.61686939 c -3.3684211,0 -5.0000001,3.38947371 -5.0000001,3.38947371 0,0 1.621015,3.3894737 5.0000001,3.3894737 3.378985,0 5,-3.3894737 5,-3.3894737 0,0 -1.631598,-3.38947371 -5,-3.38947371 z m 0,6.01052641 c -1.45265,0 -2.6210527,-1.1789286 -2.6210527,-2.6210527 0,-1.4526504 1.1789287,-2.6210526 2.6210527,-2.6210526 1.442086,0 2.621052,1.1789286 2.621052,2.6210526 0,1.4526504 -1.168421,2.6210527 -2.621052,2.6210527 z"})]}),Ix=e=>a.jsxs(V.SvgIcon,{...e,children:[a.jsx("path",{d:"M 14.810547,3.015625 C 12.885069,3.0518161 10.956121,3.021032 9.0292969,3.03125 8.3433956,3.1343875 8.6152376,3.9661078 8.5664062,4.4670215 8.5699112,5.1357719 8.5542361,5.8058913 8.5859372,6.4726562 10.776053,5.6771754 13.22001,5.608155 15.453125,6.2714844 15.459619,5.3070102 15.449086,4.3390862 15.420589,3.3804146 15.336948,3.1307215 15.056647,3.011539 14.810547,3.015625 Z M 8.5839844,15.521484 c -0.032496,2.708187 -0.020058,5.420929 -0.00781,8.13086 0.6176166,0.774595 1.9260036,0.185956 2.8240216,0.370414 1.248725,-0.01851 2.51169,0.04635 3.751527,-0.04064 0.554855,-0.529107 0.169024,-1.453013 0.278022,-2.157801 -0.0036,-2.03393 0.0211,-4.067779 0.01948,-6.101694 -2.232675,0.661793 -4.675292,0.591069 -6.8652406,-0.201138 z M 6.025019,16.2281 v 4.32147 c 0,0.255761 -0.255874,0.463042 -0.46303,0.463042 H 1.240515 c -0.255874,0 -0.46303,-0.207232 -0.46303,-0.463042 V 16.2281 c 0,-0.255799 0.255874,-0.463041 0.46303,-0.463041 h 4.321474 c 0.255875,0 0.46303,0.207231 0.46303,0.463041 z m 0,-7.8712416 v 4.3214666 c 0,0.255799 -0.207118,0.463046 -0.46303,0.463046 H 1.240515 c -0.255496,0 -0.46303,-0.207232 -0.46303,-0.463046 V 8.3568584 c 0,-0.2556095 0.207496,-0.4630414 0.46303,-0.4630414 h 4.321474 c 0.255875,0 0.46303,0.2074205 0.46303,0.4630414 z m 0,-7.8712869 v 4.3214671 c 0,0.2557985 -0.255874,0.4630451 -0.46303,0.4630451 H 1.240515 c -0.255874,0 -0.46303,-0.2072315 -0.46303,-0.4630451 V 0.4855715 c 0,-0.2557985 0.255874,-0.4630414 0.46303,-0.4630414 h 4.321474 c 0.255875,0 0.46303,0.2072315 0.46303,0.4630414 z M 23.222477,16.2281 v 4.32147 c 0,0.122798 -0.04876,0.240416 -0.135685,0.327271 -0.08655,0.08685 -0.204472,0.13557 -0.327307,0.13557 H 18.43801 c -0.255874,0 -0.46303,-0.207231 -0.46303,-0.463041 v -4.321281 c 0,-0.255799 0.207118,-0.463045 0.46303,-0.463045 h 4.321475 c 0.122835,0 0.240378,0.04872 0.327307,0.135571 0.08693,0.08685 0.135685,0.204662 0.135685,0.327459 z m 0,-7.8712416 v 4.3214666 c -1.89e-4,0.255799 -0.207496,0.463046 -0.46303,0.463046 h -4.321475 c -0.255874,0 -0.463067,-0.207232 -0.463067,-0.463046 V 8.3568584 c 0,-0.1227969 0.04876,-0.240567 0.135685,-0.3272694 0.08693,-0.086854 0.204472,-0.1357606 0.327307,-0.1357606 h 4.321475 c 0.255496,0 0.46303,0.2074205 0.46303,0.4630451 z m 0,-7.8712869 v 4.3214671 c 0,0.1227969 -0.04876,0.240567 -0.135685,0.3272693 -0.08655,0.086854 -0.204472,0.1357607 -0.327307,0.1357607 H 18.43801 c -0.255874,0 -0.46303,-0.2074205 -0.46303,-0.4630414 V 0.4855563 c 0,-0.2557984 0.207118,-0.4630413 0.46303,-0.4630413 h 4.321475 c 0.255496,0 0.46303,0.2072315 0.46303,0.4630413 z"}),a.jsx("path",{className:"styled info",d:"m 15.770959,7.0009902 c -0.126716,-0.127416 -0.331342,-0.127416 -0.458057,0 L 8.1789151,14.174303 c -0.1267182,0.127415 -0.1267182,0.33317 0,0.460581 0.068254,0.06863 0.1461605,0.09802 0.2339177,0.09802 0.087699,0 0.1656718,-0.02939 0.2339192,-0.09802 L 15.78074,7.4615714 c 0.116929,-0.1176426 0.116929,-0.333239 -0.0098,-0.4605812 z m -3.716974,5.4945338 c 0.931273,0 1.693141,-0.761954 1.693141,-1.69314 0,-0.217653 -0.03627,-0.42334 -0.120976,-0.616782 l -2.189046,2.189045 c 0.181464,0.07255 0.399194,0.120892 0.616846,0.120892 z M 10.360802,10.80234 c 0,0.217652 0.03627,0.43539 0.120976,0.616781 L 12.670823,9.2300774 C 12.477297,9.1575285 12.271714,9.1091013 12.054042,9.1091013 11.122682,9.109187 10.360816,9.871055 10.360816,10.802327 Z M 9.997978,11.90291 C 9.8165985,11.576345 9.7198318,11.201447 9.7198318,10.802319 c 0,-1.2941195 1.0400992,-2.3341742 2.3341762,-2.3341742 0.399108,0 0.774026,0.096764 1.112662,0.2781441 L 13.964907,7.9480523 C 13.384408,7.7787386 12.755491,7.6699084 12.054028,7.6699084 c -3.1686715,0 -5.1037381,2.1769486 -5.6721638,2.9025986 -0.1088279,0.133041 -0.1088279,0.326565 0,0.459601 0.3265634,0.43539 1.1489237,1.366661 2.4188334,2.068145 z m 7.728171,-1.330359 C 17.399587,10.137161 16.577226,9.2058888 15.307317,8.5044061 L 14.12211,9.689613 c 0.181378,0.326562 0.278145,0.70146 0.278145,1.112662 0,1.294119 -1.052172,2.334175 -2.334175,2.334175 -0.399108,0 -0.774028,-0.09676 -1.112662,-0.278143 l -0.79824,0.798235 c 0.5805,0.169314 1.209417,0.278144 1.91088,0.278144 3.168672,0 5.103738,-2.176949 5.672163,-2.902599 0.08462,-0.132955 0.08462,-0.326479 -0.01215,-0.459515 z"})]}),Dx=e=>a.jsxs(V.SvgIcon,{...e,children:[a.jsx("path",{d:"m 15.044727,18.095388 h 4.01181 c 0.237383,0 0.429823,0.247831 0.429823,0.44852 v 4.186244 c 0,0.247831 -0.192553,0.448516 -0.429823,0.448516 h -4.01181 c -0.237396,0 -0.429834,-0.247831 -0.429834,-0.448516 v -4.186244 c 0,-0.247831 0.192562,-0.44852 0.429834,-0.44852 z m -7.3072108,0 h 4.0118108 c 0.237385,0 0.429822,0.247831 0.429822,0.44852 v 4.186244 c 0,0.247831 -0.192551,0.448516 -0.429822,0.448516 H 7.7375162 c -0.2373949,0 -0.4298325,-0.247831 -0.4298325,-0.448516 v -4.186244 c 0,-0.247831 0.1925619,-0.44852 0.4298325,-0.44852 z m -7.30768426,0 H 4.4416429 c 0.2373845,0 0.4298325,0.247831 0.4298325,0.44852 v 4.186244 c 0,0.247831 -0.1925618,0.448516 -0.4298325,0.448516 H 0.42983194 C 0.19244752,23.178668 -5.45e-7,22.930837 -5.45e-7,22.730152 v -4.186244 c 0,-0.247831 0.192561825,-0.44852 0.429832485,-0.44852 z M 23.570166,8.9807146 H 8.3107884 C 8.1969692,8.9805809 8.0874296,9.0278176 8.0067478,9.1120542 7.9260977,9.1960959 7.8808422,9.3101394 7.8808422,9.4292345 v 5.7559505 c 0,0.24783 0.1925618,0.448514 0.4298325,0.448514 H 23.570053 c 0.114211,0 0.223359,-0.0471 0.304042,-0.131338 0.08065,-0.08404 0.125904,-0.198045 0.125904,-0.317139 V 9.4292703 c 0,-0.1190951 -0.04518,-0.2331059 -0.125904,-0.3171814 -0.08065,-0.084231 -0.189831,-0.1315417 -0.304042,-0.1313374 z M 12.752474,14.06415 H 9.385189 v -3.51349 h 3.367285 z m 4.871619,0 h -3.366921 v -3.51349 h 3.367087 z m 4.871591,0 h -3.367077 v -3.513491 h 3.367077 z M 15.044727,1.4355069 h 4.011809 c 0.237384,0 0.429824,0.2477898 0.429824,0.4485157 v 4.1862447 c 0,0.2478309 -0.192554,0.4485146 -0.429824,0.4485146 h -4.011809 c -0.237396,0 -0.429834,-0.2477888 -0.429834,-0.4485146 V 1.8840226 c 0,-0.2478309 0.192562,-0.4485157 0.429834,-0.4485157 z m -7.3072108,0 h 4.0118098 c 0.237385,0 0.429822,0.2477898 0.429822,0.4485157 v 4.1862447 c 0,0.2478309 -0.192551,0.4485146 -0.429822,0.4485146 H 7.7375162 c -0.2373949,0 -0.4298325,-0.2477888 -0.4298325,-0.4485146 V 1.8840226 c 0,-0.2478309 0.1925619,-0.4485157 0.4298325,-0.4485157 z m -7.30768426,0 H 4.4416429 c 0.2373845,0 0.4298325,0.2477898 0.4298325,0.4485157 v 4.1862447 c 0,0.2478309 -0.1925618,0.4485146 -0.4298325,0.4485146 H 0.42983194 C 0.19244752,6.5187819 -5.45e-7,6.2709931 -5.45e-7,6.0702673 V 1.8840226 c 0,-0.2478309 0.192561825,-0.4485157 0.429832485,-0.4485157 z"}),a.jsx("path",{className:"styled info",d:"m 5.0953063,12.037504 c 0,0.70197 -0.5690836,1.271053 -1.2710528,1.271053 -0.7019694,0 -1.2710529,-0.569083 -1.2710529,-1.271053 0,-0.701969 0.5690835,-1.271051 1.2710529,-1.271051 0.7019692,0 1.2710528,0.569082 1.2710528,1.271051 M 3.8242535,9.4954 c -2.5263161,0 -3.7500004,2.542104 -3.7500004,2.542104 0,0 1.2157613,2.542106 3.7500004,2.542106 2.5342388,0 3.7499996,-2.542106 3.7499996,-2.542106 0,0 -1.223698,-2.542104 -3.7499996,-2.542104 z m 0,4.507893 c -1.0894876,0 -1.9657898,-0.884195 -1.9657898,-1.965789 0,-1.089487 0.8841967,-1.965789 1.9657898,-1.965789 1.0815645,0 1.9657891,0.884196 1.9657891,1.965789 0,1.089488 -0.8763159,1.965789 -1.9657891,1.965789 z"})]}),Lx=e=>a.jsxs(V.SvgIcon,{...e,children:[a.jsx("path",{d:"m 2.9717046,9.233336 c 0.022866,1.925478 0.00341,3.854426 0.00988,5.78125 0.065161,0.685901 0.5906617,0.414059 0.9071511,0.46289 0.4225321,-0.0035 0.8459298,0.01217 1.2672078,-0.01953 C 4.6533351,13.267831 4.6097266,10.823874 5.0288336,8.590759 4.4194561,8.584259 3.8078987,8.594759 3.202187,8.623299 3.044425,8.706939 2.969123,8.987241 2.9717046,9.233341 Z m 13.9134934,6.226562 c 2.262009,0.0325 4.527823,0.02006 6.791289,0.0078 0.64698,-0.617616 0.15532,-1.926003 0.309388,-2.824021 -0.01546,-1.248725 0.03871,-2.51169 -0.03394,-3.751527 C 23.51,8.337295 22.738308,8.723126 22.149635,8.614128 c -1.698837,0.0036 -3.397606,-0.0211 -5.096431,-0.01948 0.552762,2.232675 0.49369,4.675292 -0.168001,6.86524 z m -0.700982,2.558966 h 4.32147 c 0.255761,0 0.463042,0.255874 0.463042,0.46303 v 4.321474 c 0,0.255874 -0.207232,0.46303 -0.463042,0.46303 h -4.32147 c -0.255799,0 -0.463041,-0.255874 -0.463041,-0.46303 v -4.321474 c 0,-0.255875 0.207231,-0.46303 0.463041,-0.46303 z m -7.871241,0 h 4.321467 c 0.255799,0 0.463046,0.207118 0.463046,0.46303 v 4.321474 c 0,0.255496 -0.207232,0.46303 -0.463046,0.46303 H 8.312975 c -0.25561,0 -0.463041,-0.207496 -0.463041,-0.46303 v -4.321474 c 0,-0.255875 0.20742,-0.46303 0.463041,-0.46303 z m -7.871287,0 h 4.321467 c 0.255799,0 0.463045,0.255874 0.463045,0.46303 v 4.321474 c 0,0.255874 -0.207231,0.46303 -0.463045,0.46303 H 0.441688 c -0.255798,0 -0.463041,-0.255874 -0.463041,-0.46303 v -4.321474 c 0,-0.255875 0.207231,-0.46303 0.463041,-0.46303 z M 16.184216,0.821406 h 4.32147 c 0.122798,0 0.240416,0.04876 0.327271,0.135685 0.08685,0.08655 0.13557,0.204472 0.13557,0.327307 v 4.321475 c 0,0.255874 -0.207231,0.46303 -0.463041,0.46303 h -4.321281 c -0.255799,0 -0.463045,-0.207118 -0.463045,-0.46303 V 1.284398 c 0,-0.122835 0.04872,-0.240378 0.135571,-0.327307 0.08685,-0.08693 0.204662,-0.135685 0.327459,-0.135685 z m -7.871241,0 h 4.321467 c 0.255799,1.89e-4 0.463046,0.207496 0.463046,0.46303 v 4.321475 c 0,0.255874 -0.207232,0.463067 -0.463046,0.463067 H 8.312975 c -0.122797,0 -0.240567,-0.04876 -0.327269,-0.135685 C 7.898856,5.846363 7.849945,5.728821 7.849945,5.605986 V 1.284511 c 0,-0.255496 0.20742,-0.46303 0.463045,-0.46303 z m -7.871287,0 h 4.321467 c 0.122797,0 0.240567,0.04876 0.327269,0.135685 0.08685,0.08655 0.135761,0.204472 0.135761,0.327307 v 4.321475 c 0,0.255874 -0.20742,0.46303 -0.463041,0.46303 H 0.441673 c -0.255799,0 -0.463041,-0.207118 -0.463041,-0.46303 V 1.284398 c 0,-0.255496 0.207231,-0.46303 0.463041,-0.46303 z"}),a.jsx("path",{className:"styled info",d:"m 14.223803,8.6734848 c -0.110187,-0.1107963 -0.288122,-0.1107963 -0.39831,0 L 7.6220235,14.91115 c -0.11019,0.1108 -0.11019,0.289714 0,0.400506 0.059348,0.05968 0.1270966,0.08524 0.2034071,0.08524 0.076261,0 0.1440627,-0.02556 0.203408,-0.08524 L 14.23231,9.0739903 c 0.101675,-0.1022988 0.101675,-0.2897732 -0.0085,-0.4005055 z m -3.232152,4.7778582 c 0.809803,0 1.472298,-0.662569 1.472298,-1.472297 0,-0.189263 -0.03154,-0.368121 -0.1052,-0.536331 l -1.903518,1.903518 c 0.157795,0.06309 0.347125,0.105125 0.536387,0.105125 z M 9.5193174,11.979009 c 0,0.189262 0.031539,0.3786 0.1051963,0.536331 l 1.9035183,-1.903517 c -0.168283,-0.06309 -0.347051,-0.1052 -0.536331,-0.1052 -0.809879,7.5e-5 -1.4723717,0.662569 -1.4723717,1.472372 z M 9.2038182,12.936026 C 9.0460972,12.652056 8.961952,12.326057 8.961952,11.97899 c 0,-1.125322 0.9044347,-2.0297185 2.029719,-2.0297185 0.347051,0 0.673066,0.084138 0.967533,0.2418635 L 12.653323,9.4970174 C 12.148541,9.3497877 11.601657,9.255153 10.991688,9.255153 c -2.7553668,0 -4.4380344,1.893 -4.9323172,2.524 -0.094633,0.115688 -0.094633,0.283971 0,0.399653 0.2839678,0.3786 0.9990639,1.188402 2.1033338,1.798388 z M 15.92397,11.779192 c -0.283967,-0.3786 -0.999064,-1.188404 -2.103333,-1.798388 l -1.030615,1.030615 c 0.15772,0.283967 0.241865,0.609966 0.241865,0.967533 0,1.125321 -0.914933,2.029717 -2.029719,2.029717 -0.34705,0 -0.673067,-0.08414 -0.967532,-0.241862 l -0.6941221,0.694118 c 0.5047828,0.147228 1.0516681,0.241863 1.6616361,0.241863 2.755368,0 4.438034,-1.892999 4.932317,-2.523999 0.07359,-0.115613 0.07359,-0.283895 -0.01062,-0.399579 z"})]}),Di=e=>a.jsxs(V.SvgIcon,{...e,children:[a.jsx("path",{d:"m 4.1757812,3.6210938 h 3.609375 V 5.0703125 H 4.0625 v 4.5839844 1.1093751 0.0098 2.21289 2.25586 1.11914 4.583984 h 4.5839844 1.1191406 4.46875 1.119141 4.583984 v -4.583984 -1.11914 -4.46875 -0.123047 H 19.9277 V 9.7675781 h 0.0098 V 5.0703125 H 19.773437 16.132812 V 3.6210938 h 3.691407 c 0.853925,-1e-7 1.5625,0.7085755 1.5625,1.5624999 V 20.832031 c 0,0.853925 -0.708575,1.5625 -1.5625,1.5625 H 4.1757812 c -0.8539247,0 -1.5625,-0.708575 -1.5624999,-1.5625 V 5.1835937 c 0,-0.8539247 0.7085755,-1.5625 1.5624999,-1.5624999 z"}),a.jsx("path",{className:"styled info",d:"M 16,11 H 13 V 1 H 11 V 11 H 8 l 4,4 z"})]}),S5=e=>a.jsxs(V.SvgIcon,{...e,children:[a.jsx("path",{d:"m 6.5045335,15.19778 v 3.80885 c 0,0.225374 -0.2352933,0.408078 -0.4258292,0.408078 H 2.1042441 c -0.2352933,0 -0.4258251,-0.182811 -0.4258251,-0.408078 v -3.80885 c 0,-0.225386 0.2352932,-0.408088 0.4258251,-0.408088 h 3.9744602 c 0.2352932,0 0.4258292,0.18282 0.4258292,0.408088 z m 0,-6.9375342 v 3.8088512 c 0,0.225375 -0.2352933,0.408077 -0.4258292,0.408077 H 2.1042441 c -0.2352933,0 -0.4258251,-0.18281 -0.4258251,-0.408077 V 8.2602458 c 0,-0.2253846 0.2352932,-0.4080873 0.4258251,-0.4080873 h 3.9744602 c 0.2352932,0 0.4258292,0.1828202 0.4258292,0.4080873 z M 15.158089,23.291912 V 8.8045156 C 15.158216,8.6964547 15.113371,8.5924574 15.033394,8.5158572 14.953603,8.4392865 14.84533,8.3963206 14.73226,8.3963206 H 9.2675073 c -0.2352923,0 -0.4258241,0.1828202 -0.4258241,0.4080873 V 23.291805 c 0,0.108433 0.044721,0.212059 0.124694,0.28866 C 9.0461652,23.657035 9.1544028,23.7 9.2674724,23.7 h 5.4647536 c 0.11307,0 0.221313,-0.04289 0.301135,-0.119535 0.07997,-0.07657 0.124887,-0.180227 0.124693,-0.28866 z M 10.331828,13.021494 V 9.8245624 h 3.33574 v 3.1969316 z m 0,4.625161 v -3.196587 h 3.33574 v 3.196744 z m 0,4.625134 v -3.196735 h 3.335741 v 3.196735 z M 22.32158,15.19778 v 3.808849 c 0,0.225375 -0.235254,0.408079 -0.425825,0.408079 h -3.97446 c -0.235293,0 -0.425824,-0.182812 -0.425824,-0.408079 V 15.19778 c 0,-0.225386 0.235253,-0.408088 0.425824,-0.408088 h 3.97446 c 0.235293,0 0.425825,0.18282 0.425825,0.408088 z m 0,-6.9375342 v 3.8088502 c 0,0.225375 -0.235254,0.408077 -0.425825,0.408077 h -3.97446 c -0.235293,0 -0.425824,-0.18281 -0.425824,-0.408077 V 8.2602458 c 0,-0.2253846 0.235253,-0.4080873 0.425824,-0.4080873 h 3.97446 c 0.235293,0 0.425825,0.1828202 0.425825,0.4080873 z m 0,-6.9379836 V 5.131113 c 0,0.2253748 -0.235254,0.4080873 -0.425825,0.4080873 h -3.97446 c -0.235293,0 -0.425824,-0.1828203 -0.425824,-0.4080873 V 1.3222622 c 0,-0.2253748 0.235253,-0.40808731 0.425824,-0.40808731 h 3.97446 c 0.235293,0 0.425825,0.18282021 0.425825,0.40808731 z m -15.8170465,0 V 5.131113 c 0,0.2253748 -0.2352933,0.4080873 -0.4258292,0.4080873 H 2.1042441 C 1.8689508,5.5392003 1.678419,5.35638 1.678419,5.131113 V 1.3222622 c 0,-0.2253748 0.2352932,-0.40808731 0.4258251,-0.40808731 h 3.9744602 c 0.2352932,0 0.4258292,0.18282021 0.4258292,0.40808731 z"}),a.jsx("path",{className:"styled info",d:"M 12.859695,5.8455913 V 4.0508962 h 1.872747 c 0.11307,0 0.221313,-0.042986 0.301134,-0.1195368 0.07997,-0.076571 0.124695,-0.1802351 0.124695,-0.288668 V 2.8111242 c 0,-0.1080607 -0.04472,-0.2120482 -0.124694,-0.2886582 C 14.95379,2.4458948 14.845551,2.4029292 14.732442,2.4029292 H 12.859695 V 0.60819501 c 0,-0.10843292 -0.04472,-0.21205813 -0.124693,-0.28865835 C 12.655212,0.24296576 12.546783,0.2 12.433866,0.2 h -0.867733 c -0.235293,0 -0.425829,0.1828202 -0.425829,0.40823417 V 2.4029685 H 9.2673765 c -0.2351001,0 -0.4258292,0.1824481 -0.4258292,0.4080872 v 0.8315672 c 0,0.1080608 0.044916,0.2120483 0.1246941,0.2886583 0.079972,0.076571 0.1882195,0.1195367 0.3011351,0.1195367 H 11.140304 V 5.845513 c 0,0.1084328 0.04472,0.2120581 0.124694,0.2886583 0.07978,0.076571 0.188219,0.1195367 0.301135,0.1195367 h 0.867733 c 0.112878,0 0.221314,-0.042887 0.301135,-0.1195367 0.07997,-0.076571 0.124694,-0.1802255 0.124694,-0.2886583 z"})]}),C5=e=>a.jsxs(V.SvgIcon,{...e,children:[a.jsx("path",{d:"m 12.986328,1.2324219 h 2.378906 v 0.00195 h 6.275391 c 0.383144,0 0.695313,0.3140538 0.695312,0.7011719 V 16.167969 h -0.0059 v 5.884765 c 0,0.387121 -0.311627,0.699219 -0.695312,0.699219 H 14.205078 V 22.75 h -1.222656 c -0.383714,0 -0.695313,-0.311963 -0.695313,-0.699219 v -4.75 c 0.494532,-0.24814 0.961457,-0.546684 1.392579,-0.892578 v 4.941406 h 1.685546 v 0.002 H 20.9375 V 6.3398437 h 0.0078 V 2.6347656 h -6.740234 v -0.00195 H 13.681641 V 4.1816406 C 13.250904,3.835679 12.784994,3.5353833 12.291016,3.2871094 V 1.9335937 c 0,-0.3871161 0.312172,-0.7011718 0.695312,-0.7011718 z"}),a.jsx("path",{d:"M 12.832873,5.607207 C 12.102129,4.850478 11.183099,4.302002 10.170243,4.017959 9.1573351,3.733891 8.0870751,3.724671 7.0692151,3.990969 6.0515591,4.257359 5.1230791,4.78986 4.3791541,5.533685 3.6352261,6.27751 3.1028281,7.205989 2.8364381,8.223748 c -0.266289,1.017758 -0.257069,2.088017 0.02699,3.101026 0.284067,1.012909 0.832519,1.931938 1.589247,2.662632 0.730744,0.756728 1.649775,1.305205 2.662629,1.589248 1.012909,0.284068 2.083168,0.293288 3.1010279,0.027 1.017657,-0.26639 1.946137,-0.798892 2.690063,-1.542716 0.743928,-0.743826 1.276326,-1.672306 1.542716,-2.690064 0.266288,-1.017759 0.257068,-2.088019 -0.02699,-3.101028 C 14.138058,7.256932 13.589605,6.337901 12.832877,5.607208 Z m -0.835594,7.544419 c -0.775191,0.776082 -1.795439,1.259257 -2.8869079,1.367409 -1.091595,0.108147 -2.186847,-0.165495 -3.099248,-0.774279 -0.912403,-0.608801 -1.585489,-1.515132 -1.904559,-2.56459 -0.319066,-1.049407 -0.264409,-2.177019 0.154675,-3.190688 0.418989,-1.013593 1.176607,-1.850685 2.143591,-2.368403 0.96696,-0.517719 2.083549,-0.684213 3.159446,-0.470984 1.0758969,0.213217 2.0446629,0.792948 2.7411169,1.640251 0.696403,0.847403 1.077599,1.910018 1.078488,3.006794 0.002,0.623076 -0.119346,1.240309 -0.357472,1.816167 -0.238018,0.575757 -0.587868,1.098632 -1.029362,1.538247 z"}),a.jsx("path",{className:"styled info",d:"M 12.049184,8.931163 H 9.4991431 v -2.55004 c 0,-0.303666 -0.161935,-0.584287 -0.424911,-0.736122 -0.262971,-0.151829 -0.587125,-0.151829 -0.850107,0 -0.262977,0.151829 -0.424913,0.432452 -0.424913,0.736122 v 2.55004 h -2.550038 c -0.303666,0 -0.584288,0.161935 -0.736122,0.424912 -0.15183,0.262971 -0.15183,0.587126 0,0.850107 0.151828,0.262977 0.432451,0.424911 0.736122,0.424911 h 2.550038 v 2.550041 c 0,0.303666 0.161936,0.584288 0.424913,0.736123 0.262971,0.151831 0.587126,0.151831 0.850107,0 0.262976,-0.151828 0.424911,-0.432453 0.424911,-0.736123 v -2.550041 h 2.5500409 c 0.303665,0 0.584288,-0.161934 0.736123,-0.424911 0.15183,-0.262972 0.15183,-0.587126 0,-0.850107 C 12.633479,9.093098 12.352853,8.931163 12.049184,8.931163 Z"})]}),Ox=e=>a.jsxs(V.SvgIcon,{...e,children:[a.jsx("path",{d:"m 1.7298676,12.488882 v 2.378906 h 0.002 v 6.275391 c 0,0.383144 0.314054,0.695313 0.701172,0.695312 H 16.665415 v -0.0059 h 5.884765 c 0.387121,0 0.699219,-0.311627 0.699219,-0.695312 v -7.429647 h -0.002 v -1.222656 c 0,-0.383714 -0.311963,-0.695313 -0.699219,-0.695313 h -4.75 c -0.24814,0.494532 -0.546684,0.961457 -0.892578,1.392579 h 4.941406 v 1.685546 h 0.002 v 5.572266 H 6.8372896 v 0.0078 H 3.1322116 V 13.70762 h -0.0019 v -0.523425 h 1.548775 C 4.3331246,12.753458 4.0328296,12.287548 3.7845556,11.79357 h -1.353516 c -0.387116,0 -0.701172,0.312172 -0.701172,0.695312 z"}),a.jsx("path",{d:"m 5.8131464,12.235547 c -0.756729,-0.730744 -1.305205,-1.649774 -1.589248,-2.66263 -0.284068,-1.0129079 -0.293288,-2.0831679 -0.02699,-3.1010279 0.26639,-1.017656 0.798891,-1.946136 1.542716,-2.690061 0.743825,-0.743928 1.672304,-1.276326 2.690063,-1.542716 1.017758,-0.266289 2.0880156,-0.257069 3.1010246,0.02699 1.012909,0.284067 1.931938,0.832519 2.662632,1.589247 0.756728,0.730744 1.305205,1.649775 1.589248,2.662629 0.284068,1.012909 0.293288,2.083168 0.027,3.1010279 -0.26639,1.017657 -0.798892,1.946137 -1.542716,2.690063 -0.743826,0.743928 -1.672306,1.276326 -2.690064,1.542716 -1.017759,0.266288 -2.0880176,0.257068 -3.1010266,-0.02699 -1.012914,-0.284063 -1.931945,-0.832516 -2.662638,-1.589244 z m 7.5444176,-0.835594 c 0.776082,-0.775191 1.259257,-1.795439 1.367409,-2.8869079 0.108147,-1.091595 -0.165495,-2.186847 -0.774279,-3.099248 -0.608801,-0.912403 -1.515132,-1.585489 -2.56459,-1.904559 -1.049407,-0.319066 -2.1770176,-0.264409 -3.1906866,0.154675 -1.013593,0.418989 -1.850685,1.176607 -2.368403,2.143591 -0.517719,0.96696 -0.684213,2.083549 -0.470984,3.159446 0.213217,1.0758969 0.792948,2.0446629 1.640251,2.7411169 0.847403,0.696403 1.910018,1.077599 3.0067926,1.078488 0.623076,0.002 1.240309,-0.119346 1.816167,-0.357472 0.575757,-0.238018 1.098632,-0.587868 1.538247,-1.029362 z"}),a.jsx("path",{className:"styled info",d:"M 9.1371024,11.451858 V 8.9018171 h -2.55004 c -0.303666,0 -0.584287,-0.161935 -0.736122,-0.424911 -0.151829,-0.262971 -0.151829,-0.587125 0,-0.850107 0.151829,-0.262977 0.432452,-0.424913 0.736122,-0.424913 h 2.55004 v -2.550038 c 0,-0.303666 0.161935,-0.584288 0.424912,-0.736122 0.2629706,-0.15183 0.5871246,-0.15183 0.8501056,0 0.262977,0.151828 0.424911,0.432451 0.424911,0.736122 v 2.550038 h 2.550041 c 0.303666,0 0.584288,0.161936 0.736123,0.424913 0.151831,0.262971 0.151831,0.587126 0,0.850107 -0.151828,0.262976 -0.432453,0.424911 -0.736123,0.424911 h -2.550041 v 2.5500409 c 0,0.303665 -0.161934,0.584288 -0.424911,0.736123 -0.262972,0.15183 -0.587125,0.15183 -0.8501056,0 -0.262977,-0.151828 -0.424912,-0.432454 -0.424912,-0.736123 z"})]}),Fc=e=>a.jsxs(V.SvgIcon,{...e,children:[a.jsx("path",{d:"m 18.619141,5.5078125 c 0.424809,-0.013626 0.853669,0.032536 1.271484,0.1445312 1.114343,0.2985286 2.064671,1.0266678 2.644531,2.0234375 0.572944,1.0008485 0.72825,2.1886901 0.429688,3.3027348 -0.298352,1.113969 -1.025212,2.06237 -2.021485,2.642578 l -4.832031,2.791015 c -0.888544,0.512809 -1.9297,0.693494 -2.939453,0.509766 -0.840019,-0.14978 -1.61734,-0.543707 -2.236328,-1.128906 l 1.257812,-0.726563 c 0.424883,0.302884 0.922211,0.489415 1.441407,0.542969 0.623515,0.06527 1.25038,-0.06715 1.792968,-0.380859 l 4.816407,-2.78125 0.01563,-0.0098 C 21.17925,11.901541 21.743935,10.9176 21.742187,9.8535156 21.740649,8.789242 21.172946,7.8084933 20.251953,7.2753906 19.330966,6.7422918 18.197358,6.7369245 17.273437,7.265625 l -4.832031,2.789063 c -0.42267,0.243452 -0.77918,0.590225 -1.037109,1.003906 -0.212681,0.342222 -0.351152,0.721598 -0.414063,1.11914 -0.43659,0.238394 -0.91749,0.498035 -1.3945309,0.759766 -0.044673,-0.702093 0.076403,-1.407524 0.359375,-2.052734 C 10.324758,10.03783 10.957146,9.3346541 11.757813,8.8730469 L 16.587891,6.0839844 C 17.213455,5.725581 17.911308,5.530517 18.619141,5.5078125 Z m -4.205078,6.3027345 c 0.236568,-0.0077 0.473947,0.0021 0.710937,0.0332 0.914521,0.11981 1.766487,0.529255 2.435547,1.162109 l -1.257813,0.726563 c -0.424857,-0.302882 -0.922033,-0.489587 -1.441406,-0.542969 -0.623552,-0.06525 -1.24994,0.06512 -1.792969,0.378906 l -4.8300777,2.791016 c -0.6690128,0.388554 -1.1621399,1.01985 -1.3750001,1.763672 -0.2106995,0.735956 -0.1319447,1.525955 0.2207032,2.205078 v 0.0098 l 0.0625,0.09961 c 0.388193,0.668812 1.018153,1.1619 1.7617187,1.375 0.7359698,0.210741 1.5244539,0.129993 2.2031249,-0.222656 h 0.0098 l 4.933593,-2.847657 c 0.422548,-0.243379 0.779268,-0.587812 1.03711,-1.001953 0.216798,-0.348674 0.355234,-0.737142 0.416015,-1.142578 l 1.386719,-0.798828 c 0.05662,0.722377 -0.06175,1.448541 -0.353515,2.113281 -0.369392,0.846701 -1.000526,1.551958 -1.800782,2.013672 l -4.832031,2.789063 c -1.001028,0.572948 -2.1885184,0.728047 -3.3027342,0.429687 -1.1071985,-0.296706 -2.0531794,-1.016826 -2.6347657,-2.003906 0,0 0,-0.002 0,-0.002 l -0.00977,-0.01758 C 5.3881613,20.120237 5.232707,18.934131 5.53125,17.820312 5.8299633,16.706419 6.556311,15.755782 7.5527344,15.175781 l 4.8320316,-2.789062 c 0.622469,-0.356424 1.319697,-0.552944 2.029297,-0.576172 z"}),a.jsx("path",{d:"M 9.1428648,3.107132 C 8.5947558,2.5395327 7.9054197,2.1281377 7.1457075,1.9150857 6.3859562,1.702015 5.583187,1.6950994 4.8197214,1.8948413 4.0564088,2.0946523 3.3599844,2.494065 2.8019891,3.0519854 2.2439914,3.6099057 1.8446561,4.3063294 1.6448451,5.0697192 1.4451099,5.8331083 1.4520255,6.6358767 1.6650897,7.3957037 c 0.2130699,0.759752 0.624447,1.4490878 1.1920455,1.997159 0.5481087,0.5675985 1.2374457,0.9789943 1.9971565,1.1920463 0.759752,0.213071 1.5625204,0.219986 2.325986,0.02025 C 7.9435914,10.405349 8.640015,10.005936 9.1980114,9.4480165 9.7560087,8.8900957 10.155344,8.1936711 10.355156,7.4302819 10.55489,6.6668921 10.547974,5.8641229 10.334911,5.1042958 10.121844,4.3445401 9.710466,3.6552031 9.1428675,3.1071327 Z M 8.5161111,8.7659695 C 7.9346643,9.348085 7.1694074,9.7104997 6.35073,9.7916212 5.531958,9.8727391 4.710443,9.6674878 4.026079,9.2108584 3.3417135,8.7542155 2.8368523,8.074404 2.5975276,7.2872377 2.358206,6.5001097 2.3992026,5.6543224 2.7135447,4.8940004 3.0278155,4.1337354 3.5960815,3.5058583 4.3213865,3.117534 5.0466737,2.7292087 5.8841928,2.6043267 6.6911902,2.7642633 7.4981876,2.9241908 8.2248297,3.3590293 8.7472185,3.9945652 9.2695686,4.630177 9.5554923,5.4272112 9.5561592,6.2498693 9.5576892,6.7172195 9.4666452,7.180187 9.2880303,7.6121205 9.1095,8.0439782 8.8470888,8.4361707 8.5159374,8.7659128 Z"}),a.jsx("path",{className:"styled info",d:"M 8.5178648,5.607132 H 6.6051568 V 3.6944247 c 0,-0.2277706 -0.121462,-0.4382557 -0.318713,-0.5521425 -0.197246,-0.1138823 -0.440384,-0.1138823 -0.637639,0 -0.197251,0.1138823 -0.318714,0.324369 -0.318714,0.5521425 V 5.607132 h -1.912705 c -0.227771,0 -0.438257,0.121462 -0.552143,0.318713 -0.113883,0.197247 -0.113883,0.440385 0,0.637639 0.113882,0.197251 0.324368,0.318713 0.552143,0.318713 h 1.912705 v 1.912707 c 0,0.227772 0.121463,0.438257 0.318714,0.552144 0.197247,0.113883 0.440385,0.113883 0.637639,0 0.197251,-0.113881 0.318713,-0.32437 0.318713,-0.552143 V 6.882197 h 1.912708 c 0.227769,0 0.438257,-0.121462 0.552143,-0.318713 0.113883,-0.197247 0.113883,-0.440385 0,-0.637639 -0.113882,-0.197251 -0.32437,-0.318713 -0.552143,-0.318713 z"})]}),zc=e=>a.jsxs(V.SvgIcon,{...e,children:[a.jsx("path",{d:"m 18.054853,10.379482 c -0.123748,0 -0.246135,0.0049 -0.368186,0.01221 V 5.2879282 c 0,-0.7768693 -0.632102,-1.4091874 -1.409014,-1.4091874 H 1.5183591 c -0.77686828,0 -1.40901288,0.6322755 -1.40901288,1.4091874 v 8.8826488 c 0,0.776696 0.63210098,1.408493 1.40901288,1.408493 h 0.2605437 v 4.201566 c 0,0.01458 0.00328,0.02798 0.00436,0.04221 0.00152,0.02255 0.00272,0.04476 0.00676,0.06663 0.0037,0.01967 0.0095,0.03847 0.015088,0.05713 0.00546,0.01898 0.010143,0.03764 0.017291,0.05594 0.0073,0.01865 0.016778,0.03627 0.025942,0.05424 0.00884,0.01696 0.016952,0.03458 0.027458,0.05086 0.011182,0.01729 0.024066,0.03306 0.03695,0.04881 0.011694,0.01475 0.022549,0.02967 0.035432,0.04357 0.01644,0.01696 0.035258,0.03205 0.053738,0.04747 0.010038,0.0079 0.018306,0.01779 0.028986,0.0256 0.00272,0.0019 0.00556,0.0031 0.0083,0.0051 0.010472,0.0073 0.021872,0.0134 0.03288,0.02 0.020684,0.01272 0.041531,0.02457 0.063229,0.03458 0.011694,0.0051 0.023564,0.01002 0.03577,0.01458 0.023728,0.009 0.04764,0.01628 0.07187,0.02237 0.011192,0.0028 0.022036,0.0055 0.033568,0.0077 0.036448,0.0067 0.073233,0.01119 0.1098429,0.01119 h 1.626e-4 1.625e-4 c 0.045764,0 0.089673,-0.0057 0.1322219,-0.01526 0.011694,-0.0027 0.02255,-0.0071 0.03407,-0.01048 0.03119,-0.009 0.0612,-0.01916 0.090175,-0.03255 0.014072,-0.0067 0.027294,-0.01458 0.040516,-0.02237 0.025254,-0.01441 0.049495,-0.02983 0.072382,-0.04747 0.012884,-0.01002 0.025254,-0.02 0.037124,-0.03085 0.024578,-0.02237 0.046614,-0.04661 0.067298,-0.0729 0.00556,-0.0071 0.013048,-0.01238 0.01848,-0.02 L 6.1699123,15.57889 H 12.06176 c -0.03984,0.279529 -0.06153,0.564838 -0.06153,0.855372 0,3.338254 2.716133,6.054128 6.05456,6.054128 3.338254,0 6.054562,-2.715962 6.054562,-6.054128 0,-3.3386 -2.716308,-6.054556 -6.054562,-6.054556 z M 5.859807,14.363718 c -0.01271,0 -0.02424,0.0028 -0.036611,0.004 -0.024752,0.0016 -0.049494,0.0028 -0.07391,0.0073 -0.017804,0.0033 -0.034244,0.0089 -0.051196,0.01356 -0.020684,0.0055 -0.041531,0.0112 -0.061538,0.01898 -0.016952,0.0068 -0.032891,0.01527 -0.049156,0.02356 -0.018982,0.0097 -0.037974,0.01898 -0.055942,0.03034 -0.015262,0.01002 -0.02916,0.02169 -0.04356,0.03289 -0.016778,0.01289 -0.033568,0.02525 -0.048818,0.04034 -0.014574,0.01408 -0.027294,0.02983 -0.040342,0.04542 -0.010472,0.01238 -0.022036,0.02255 -0.031866,0.03577 l -2.3728744,3.285875 1.625e-4,-2.930377 c 0,-0.33564 -0.271899,-0.607539 -0.6075391,-0.607539 H 1.5185303 c -0.106964,0 -0.1939271,-0.0868 -0.1939271,-0.193414 V 5.2881595 c 0,-0.106964 0.086956,-0.1940951 0.1939271,-0.1940951 H 16.277825 c 0.106964,0 0.193925,0.086956 0.193925,0.1940951 v 5.3029455 c -1.902801,0.51619 -3.436706,1.937872 -4.106475,3.772856 z m 12.195046,6.909456 c -2.668312,0 -4.839483,-2.170781 -4.839483,-4.839049 0,-2.668487 2.171127,-4.839481 4.839483,-4.839481 2.668311,0 4.839482,2.171126 4.839482,4.839481 0,2.668312 -2.171127,4.839049 -4.839482,4.839049 z"}),a.jsx("path",{d:"m 15.386715,9.0817687 c 0,-1.056852 -0.86001,-1.916861 -1.917397,-1.916861 -1.056851,0 -1.916862,0.859831 -1.916862,1.916861 0,1.0570293 0.859833,1.9172173 1.916862,1.9172173 1.057387,0 1.917397,-0.860188 1.917397,-1.9172173 z m -1.917219,0.668565 c -0.368602,0 -0.668208,-0.29997 -0.668208,-0.668565 0,-0.368594 0.299624,-0.668209 0.668208,-0.668209 0.368777,0 0.668744,0.299624 0.668744,0.668209 -1.67e-4,0.368602 -0.300145,0.668565 -0.668744,0.668565 z M 8.8865838,7.1650867 c -1.056852,0 -1.916862,0.85983 -1.916862,1.91686 0,1.0570293 0.859832,1.9172163 1.916862,1.9172163 1.05703,0 1.9168592,-0.86001 1.9168592,-1.9172163 0,-1.05685 -0.8598292,-1.91686 -1.9168592,-1.91686 z m 0,2.58547 c -0.368605,0 -0.66821,-0.299971 -0.66821,-0.668565 0,-0.368595 0.299623,-0.668208 0.66821,-0.668208 0.368583,0 0.668207,0.299624 0.668207,0.668208 0,0.368586 -0.299798,0.668565 -0.668207,0.668565 z m -4.583006,-2.58547 c -1.056852,0 -1.916862,0.85983 -1.916862,1.91686 0,1.0570293 0.859832,1.9172163 1.916862,1.9172163 1.05703,0 1.916862,-0.86001 1.916862,-1.9172163 0,-1.05685 -0.859832,-1.91686 -1.916862,-1.91686 z m 0,2.58547 c -0.368602,0 -0.66821,-0.299971 -0.66821,-0.668565 0,-0.368595 0.299626,-0.668208 0.66821,-0.668208 0.368603,0 0.668208,0.299624 0.668208,0.668208 0,0.368586 -0.299973,0.668565 -0.668208,0.668565 z"}),a.jsx("path",{className:"styled info",d:"m 21.414868,15.755151 h -2.697203 v -2.697715 c 0,-0.359844 -0.291508,-0.651352 -0.651352,-0.651352 -0.359845,0 -0.651353,0.291508 -0.651353,0.651352 v 2.697529 l -2.697202,1.85e-4 c -0.359844,0 -0.651352,0.291508 -0.651352,0.651352 0,0.359844 0.291508,0.651352 0.651352,0.651352 h 2.697202 v 2.697203 c 0,0.359844 0.291508,0.651352 0.651353,0.651352 0.359844,0 0.651352,-0.291508 0.651352,-0.651352 v -2.697202 h 2.697389 c 0.359844,0 0.651352,-0.291508 0.651352,-0.651352 0,-0.359844 -0.291871,-0.651352 -0.651538,-0.651352 z"})]}),ca=e=>a.jsxs(V.SvgIcon,{...e,children:[a.jsx("path",{d:"M 20.755578,11.219159 V 4.2861685 c 0,-1.2559826 -1.021811,-2.2777936 -2.277795,-2.2777936 l -14.8013936,1.49e-4 c -1.255983,0 -2.277794,1.021811 -2.277794,2.2777946 V 16.38563 c 0,1.255984 1.021811,2.277795 2.277794,2.277795 h 8.8030186 c 0.953091,1.878573 2.89978,3.171949 5.146368,3.171949 3.183038,0 5.772503,-2.589585 5.772503,-5.772503 -1.49e-4,-2.029336 -1.055053,-3.814043 -2.64302,-4.843875 z M 3.6763104,17.632165 c -0.687314,0 -1.246287,-0.559013 -1.246287,-1.246286 V 4.2861685 c 0,-0.687313 0.559013,-1.2462856 1.246287,-1.2462856 H 18.477704 c 0.687313,0 1.246286,0.5590126 1.246286,1.2462856 v 6.4046255 c -0.651437,-0.255495 -1.357307,-0.400464 -2.098214,-0.400464 -0.339986,0 -0.671391,0.03539 -0.995633,0.09213 L 14.948914,9.0158145 c -0.0023,-0.0017 -0.0048,-0.0028 -0.0072,-0.0048 -0.0145,-0.01138 -0.02993,-0.02026 -0.04536,-0.02993 -0.01403,-0.0089 -0.02744,-0.01855 -0.04225,-0.02572 -0.01107,-0.0055 -0.02276,-0.0089 -0.03445,-0.01372 -0.01995,-0.0083 -0.03959,-0.01684 -0.06017,-0.02276 -0.0076,-0.002 -0.01574,-0.0023 -0.02369,-0.0045 -0.02401,-0.0055 -0.04879,-0.0106 -0.07326,-0.01232 -0.0097,-6.22e-4 -0.01995,3.2e-4 -0.02962,0 -0.02276,-3.19e-4 -0.04567,-0.0011 -0.06843,0.0017 -0.01231,0.0014 -0.02447,0.0051 -0.03679,0.0072 -0.02058,0.0037 -0.04084,0.0072 -0.06079,0.01372 -0.01138,0.0037 -0.02229,0.0094 -0.03398,0.01403 -0.02058,0.008 -0.04053,0.01621 -0.06017,0.02681 -0.002,0.0014 -0.0045,0.0017 -0.0065,0.0031 L 12.031074,10.310487 9.2550842,7.7240545 c -0.0028,-0.0028 -0.0069,-0.0034 -0.0097,-0.0058 -0.04677,-0.04193 -0.09899,-0.07326 -0.155105,-0.09524 -0.0069,-0.0028 -0.01341,-0.0055 -0.02027,-0.008 -0.05612,-0.01933 -0.113797,-0.02821 -0.172564,-0.02744 -0.0076,0 -0.01512,0 -0.02276,3.2e-4 -0.05737,0.0031 -0.114109,0.01652 -0.168514,0.03913 -0.0079,0.0031 -0.01543,0.0062 -0.02338,0.01 -0.03991,0.01886 -0.07841,0.04162 -0.113798,0.07155 L 3.3124834,12.178522 c -0.216993,0.184258 -0.243495,0.509888 -0.05877,0.726901 0.101794,0.120031 0.247234,0.181607 0.392989,0.181607 0.118316,0 0.236946,-0.04022 0.333908,-0.122681 L 8.8883352,8.7913065 13.000321,12.623426 c -0.717243,0.961951 -1.147636,2.150133 -1.147636,3.439479 0,0.544646 0.08075,1.06922 0.222448,1.569131 z m 10.0113926,-5.778091 -0.866734,-0.807631 1.752463,-1.006727 0.848815,0.689628 c -0.646767,0.268748 -1.230882,0.653472 -1.734544,1.12473 z m 3.937993,8.950275 c -2.614368,0 -4.740916,-2.127227 -4.740916,-4.740916 0,-2.614049 2.127227,-4.740916 4.740916,-4.740916 2.614048,0 4.740916,2.127227 4.740916,4.740916 0,2.613689 -2.126748,4.740916 -4.740916,4.740916 z"}),a.jsx("path",{className:"styled secondary_light",d:"m 5.2446666,7.807211 c 1.102784,0 1.999992,-0.897208 1.999992,-2 0,-1.102784 -0.897208,-2 -1.999992,-2 -1.102792,0 -2.000008,0.897216 -2.000008,2 0,1.102792 0.897216,2 2.000008,2 z m 0,-3.051888 c 0.579848,0 1.051592,0.471744 1.051592,1.0516 0,0.579848 -0.471744,1.051592 -1.051592,1.051592 -0.579856,0 -1.0516,-0.471744 -1.0516,-1.051592 0,-0.579856 0.471744,-1.0516 1.0516,-1.0516 z"}),a.jsx("path",{className:"styled info",d:"m 21.071857,15.532739 h -2.84657 v -2.84657 c 0,-0.31834 -0.25837,-0.57672 -0.57672,-0.57672 -0.31834,0 -0.57671,0.25837 -0.57671,0.57672 v 2.84657 h -2.84657 c -0.31834,0 -0.57672,0.25837 -0.57672,0.57671 0,0.31834 0.25837,0.57672 0.57672,0.57672 h 2.84657 v 2.84657 c 0,0.31834 0.25837,0.57671 0.57671,0.57671 0.31834,0 0.57672,-0.25837 0.57672,-0.57671 v -2.84657 h 2.84657 c 0.31834,0 0.57671,-0.25837 0.57671,-0.57672 0,-0.31834 -0.25801,-0.57671 -0.57671,-0.57671 z"})]}),_l=e=>a.jsx(V.SvgIcon,{...e,children:a.jsx("path",{d:"m 1.3300781,2.1191409 c -0.176367,0 -0.3183593,0.1524484 -0.3183593,0.3421836 v 11.0485395 4.074713 3.829097 c 0,0.189385 0.1418333,0.342185 0.3183593,0.342185 H 22.693359 c 0.1762,0 0.31836,-0.1528 0.31836,-0.342185 V 17.584577 13.509864 2.4613245 c 0,-0.1893847 -0.14216,-0.3421836 -0.31836,-0.3421836 z m 0.3203125,4.46728 H 8.1328125 V 9.6807681 H 1.6503906 Z m 7.1210938,0 H 15.251953 V 9.6807681 H 8.7714844 Z m 7.1191406,0 h 6.482422 V 9.6807681 H 15.890625 Z M 1.6503906,10.367234 h 6.4824219 v 3.092247 H 1.6503906 Z m 7.1210938,0 h 6.4804686 v 3.092247 H 8.7714844 Z m 7.1191406,0 h 6.482422 V 13.46158 H 15.890625 Z M 1.6503906,14.196331 h 6.4824219 v 3.043964 H 1.6503906 Z m 7.1210938,0 h 6.4804686 v 3.043964 H 8.7714844 Z m 7.1191406,0 h 6.482422 v 3.043964 H 15.890625 Z M 1.6503906,17.975044 h 6.4824219 v 3.094348 H 1.6503906 Z m 7.1210938,0 h 6.4804686 v 3.094348 H 8.7714844 Z m 7.1191406,0 h 6.482422 v 3.094348 h -6.482422 z"})}),k5=e=>a.jsxs(V.SvgIcon,{...e,children:[a.jsx("path",{d:"m 15.432227,23.559503 v -7.799619 c -0.461329,0.313474 -1.017411,0.45628 -1.572473,0.40379 -0.555288,-0.05235 -1.074897,-0.296693 -1.469367,-0.690826 l -0.391181,-0.391185 -0.388951,0.391185 c -0.39481,0.394636 -0.915175,0.639009 -1.470955,0.691004 -0.555779,0.05197 -1.112239,-0.09169 -1.57338,-0.406209 v 7.80183 c 7.56e-4,0.255421 0.207497,0.462335 0.463031,0.463042 h 5.940473 c 0.122834,0 0.240378,-0.04872 0.327307,-0.135571 0.08693,-0.08685 0.135685,-0.204663 0.135685,-0.327458 z M 14.085052,5.6315691 c 0.480832,-0.00207 0.950929,0.1424882 1.347326,0.4144971 V 3.4948431 C 15.432529,3.3720462 15.383622,3.2542761 15.296693,3.1673848 15.210142,3.0805308 15.092221,3.0318131 14.969386,3.0318131 H 9.028951 c -0.122835,0 -0.240756,0.048718 -0.327308,0.1355717 -0.08693,0.086854 -0.135685,0.2046614 -0.135685,0.3274583 v 2.5534757 c 0.461141,-0.3144946 1.0176,-0.4581771 1.57338,-0.4062048 0.555931,0.051969 1.076145,0.2963528 1.470955,0.6910036 l 0.388951,0.3911849 0.391181,-0.3911849 C 12.838979,5.8823673 13.449109,5.6298645 14.085014,5.6315918 Z M 6.025019,16.2281 v 4.32147 c 0,0.255761 -0.255874,0.463042 -0.46303,0.463042 H 1.240515 c -0.255874,0 -0.46303,-0.207232 -0.46303,-0.463042 V 16.2281 c 0,-0.255799 0.255874,-0.463041 0.46303,-0.463041 h 4.321474 c 0.255875,0 0.46303,0.207231 0.46303,0.463041 z m 0,-7.8712416 v 4.3214666 c 0,0.255799 -0.207118,0.463046 -0.46303,0.463046 H 1.240515 c -0.255496,0 -0.46303,-0.207232 -0.46303,-0.463046 V 8.3568584 c 0,-0.2556095 0.207496,-0.4630414 0.46303,-0.4630414 h 4.321474 c 0.255875,0 0.46303,0.2074205 0.46303,0.4630414 z m 0,-7.8712869 v 4.3214671 c 0,0.2557985 -0.255874,0.4630451 -0.46303,0.4630451 H 1.240515 c -0.255874,0 -0.46303,-0.2072315 -0.46303,-0.4630451 V 0.4855715 c 0,-0.2557985 0.255874,-0.4630414 0.46303,-0.4630414 h 4.321474 c 0.255875,0 0.46303,0.2072315 0.46303,0.4630414 z M 23.222477,16.2281 v 4.32147 c 0,0.122798 -0.04876,0.240416 -0.135685,0.327271 -0.08655,0.08685 -0.204472,0.13557 -0.327307,0.13557 H 18.43801 c -0.255874,0 -0.46303,-0.207231 -0.46303,-0.463041 v -4.321281 c 0,-0.255799 0.207118,-0.463045 0.46303,-0.463045 h 4.321475 c 0.122835,0 0.240378,0.04872 0.327307,0.135571 0.08693,0.08685 0.135685,0.204662 0.135685,0.327459 z m 0,-7.8712416 v 4.3214666 c -1.89e-4,0.255799 -0.207496,0.463046 -0.46303,0.463046 h -4.321475 c -0.255874,0 -0.463067,-0.207232 -0.463067,-0.463046 V 8.3568584 c 0,-0.1227969 0.04876,-0.240567 0.135685,-0.3272694 0.08693,-0.086854 0.204472,-0.1357606 0.327307,-0.1357606 h 4.321475 c 0.255496,0 0.46303,0.2074205 0.46303,0.4630451 z m 0,-7.8712869 v 4.3214671 c 0,0.1227969 -0.04876,0.240567 -0.135685,0.3272693 -0.08655,0.086854 -0.204472,0.1357607 -0.327307,0.1357607 H 18.43801 c -0.255874,0 -0.46303,-0.2074205 -0.46303,-0.4630414 V 0.4855563 c 0,-0.2557984 0.207118,-0.4630413 0.46303,-0.4630413 h 4.321475 c 0.255496,0 0.46303,0.2072315 0.46303,0.4630413 z"}),a.jsx("path",{className:"styled info",d:"m 14.471925,14.162913 0.787389,-0.787389 c 0.213543,-0.213468 0.213543,-0.559386 0,-0.772846 l -1.699276,-1.699283 1.699276,-1.6992836 v 1.776e-4 c 0.102425,-0.1025764 0.160252,-0.2414362 0.160252,-0.3863471 0,-0.1450583 -0.05745,-0.2839182 -0.160252,-0.386521 L 14.471925,7.6440318 C 14.369499,7.5416066 14.230413,7.483931 14.085581,7.483931 c -0.144756,0 -0.283842,0.057676 -0.386343,0.1601008 L 11.999962,9.3433152 10.300648,7.6440318 C 10.198223,7.5416066 10.059137,7.483931 9.914305,7.483931 c -0.144756,0 -0.283843,0.057676 -0.386343,0.1601008 l -0.78739,0.7873891 c -0.213543,0.2134677 -0.213543,0.5593853 0,0.7728455 l 1.699276,1.6992836 -1.699276,1.699283 v -1.77e-4 c -0.102425,0.102425 -0.160251,0.241436 -0.160251,0.386347 0,0.144907 0.05745,0.283918 0.160251,0.386521 l 0.78739,0.787389 c 0.213165,0.213279 0.559408,0.213279 0.772724,0 l 1.699276,-1.699284 1.699276,1.699284 c 0.102425,0.102425 0.241512,0.159912 0.386343,0.159912 0.144756,0 0.283843,-0.05752 0.386344,-0.159912 z"})]}),E5=e=>a.jsxs(V.SvgIcon,{...e,children:[a.jsx("path",{d:"M 3.3723286,7.8084837 V 22.040909 c 0,0.387119 0.3121683,0.701172 0.6953125,0.701172 h 6.2753909 v 0.002 h 2.378906 c 0.38314,0 0.695313,-0.314055 0.695313,-0.701172 v -1.353515 c -0.493979,-0.248274 -0.959889,-0.54857 -1.390625,-0.894532 v 1.548829 h -0.523438 v -0.002 H 4.7629536 v -3.705078 h 0.00781 V 2.6248897 h 5.5722654 v 0.002 h 1.68555 v 4.94141 c 0.431121,-0.345894 0.898047,-0.644438 1.392578,-0.892578 v -4.75 c 0,-0.387256 -0.311599,-0.6992189 -0.695313,-0.6992189 h -1.222656 v -0.002 H 4.0735004 c -0.3836857,0 -0.6953125,0.3120979 -0.6953125,0.6992189 v 5.884765 z"}),a.jsx("path",{d:"m 20.517526,9.6190337 c 0.756729,0.7307433 1.305205,1.6497763 1.589248,2.6626323 0.284068,1.012908 0.293288,2.083168 0.02699,3.101028 -0.26639,1.017656 -0.798891,1.946136 -1.542716,2.690061 -0.743825,0.743928 -1.672304,1.276326 -2.690063,1.542716 -1.017758,0.266289 -2.088015,0.257069 -3.101024,-0.02699 -1.01291,-0.284067 -1.931939,-0.832519 -2.662631,-1.589247 -0.756728,-0.730744 -1.305207,-1.649775 -1.589251,-2.662629 -0.284069,-1.012909 -0.29329,-2.083168 -0.027,-3.101028 0.266391,-1.017657 0.798895,-1.94614 1.542719,-2.6900653 0.743825,-0.743927 1.672305,-1.276325 2.690063,-1.542715 1.017759,-0.266288 2.088017,-0.257068 3.101026,0.02699 1.012914,0.284063 1.931945,0.832516 2.662638,1.589243 z m -7.544417,0.8355933 c -0.776082,0.775194 -1.259256,1.795442 -1.367408,2.886911 -0.108147,1.091595 0.165495,2.186847 0.774278,3.099248 0.608801,0.912403 1.515132,1.585489 2.56459,1.904559 1.049407,0.319066 2.177017,0.264409 3.190686,-0.154675 1.013593,-0.418989 1.850685,-1.176607 2.368403,-2.143591 0.517719,-0.96696 0.684213,-2.083549 0.470984,-3.159446 -0.213217,-1.075897 -0.792948,-2.044664 -1.640251,-2.741121 -0.847403,-0.6964013 -1.910018,-1.0775963 -3.006793,-1.0784853 -0.623075,-0.002 -1.240308,0.119346 -1.816167,0.357471 -0.575756,0.238017 -1.098632,0.5878663 -1.538247,1.0293613 z"}),a.jsx("path",{className:"styled info",d:"m 19.432824,15.63695 -1.76852,-1.768521 1.768519,-1.768519 c 0.210601,-0.2106 0.292912,-0.517524 0.215833,-0.805207 -0.07708,-0.287675 -0.301889,-0.512485 -0.589572,-0.589573 -0.287678,-0.07709 -0.594604,0.0052 -0.805207,0.215833 l -1.76852,1.76852 -1.768518,-1.768519 c -0.2106,-0.210601 -0.517526,-0.292914 -0.805207,-0.215833 -0.287676,0.07708 -0.512486,0.30189 -0.589572,0.589573 -0.07708,0.287678 0.0052,0.594603 0.215833,0.805207 l 1.768518,1.768518 -1.76852,1.76852 c -0.210601,0.2106 -0.292912,0.517526 -0.215832,0.805208 0.07708,0.287677 0.301888,0.512487 0.589571,0.589572 0.287677,0.07708 0.594604,-0.0052 0.805207,-0.215833 l 1.768521,-1.768521 1.76852,1.768521 c 0.2106,0.210599 0.517525,0.292913 0.805207,0.215833 0.287676,-0.07708 0.512486,-0.301889 0.589571,-0.589572 0.07708,-0.287677 -0.0052,-0.594605 -0.215832,-0.805207 z"})]}),Px=e=>a.jsxs(V.SvgIcon,{...e,children:[a.jsx("path",{d:"M 8.0214844,2.2460938 H 22.253906 c 0.387119,0 0.701172,0.3121683 0.701172,0.6953125 v 6.2753906 h 0.002 v 2.3789061 c 0,0.38314 -0.314055,0.695313 -0.701172,0.695313 h -1.353515 c -0.248274,-0.493979 -0.54857,-0.959889 -0.894532,-1.390625 h 1.548829 v -0.523438 h -0.002 V 3.6367188 h -3.705078 v 0.00781 H 2.8378906 v 5.5722656 h 0.00195 V 10.902344 H 7.78125 c -0.3458936,0.431121 -0.6444378,0.898047 -0.8925781,1.392578 h -4.75 c -0.3872555,0 -0.6992188,-0.311599 -0.6992188,-0.695313 V 10.376953 H 1.4375 V 2.9472656 c 0,-0.3836857 0.3120982,-0.6953125 0.6992188,-0.6953125 h 5.8847656 z"}),a.jsx("path",{d:"m 18.191717,11.748829 c 0.756729,0.730744 1.305205,1.649774 1.589248,2.66263 0.284068,1.012908 0.293288,2.083168 0.02699,3.101028 -0.26639,1.017656 -0.798891,1.946136 -1.542716,2.690061 -0.743825,0.743928 -1.672304,1.276326 -2.690063,1.542716 -1.017758,0.266289 -2.088015,0.257069 -3.101024,-0.02699 C 11.461242,21.434207 10.542213,20.885755 9.811521,20.129027 9.054793,19.398283 8.506316,18.479252 8.222273,17.466398 7.938205,16.453489 7.928985,15.38323 8.195273,14.36537 c 0.26639,-1.017657 0.798892,-1.946137 1.5427165,-2.690063 0.7438245,-0.743928 1.6723045,-1.276326 2.6900625,-1.542716 1.017759,-0.2662877 2.088017,-0.2570677 3.101026,0.02699 1.012914,0.284063 1.931945,0.832516 2.662638,1.589244 z M 10.6473,12.584423 c -0.7760815,0.775191 -1.259256,1.795439 -1.367408,2.886908 -0.108147,1.091595 0.165495,2.186847 0.774278,3.099248 0.608801,0.912403 1.515132,1.585489 2.56459,1.904559 1.049407,0.319066 2.177017,0.264409 3.190686,-0.154675 1.013593,-0.418989 1.850685,-1.176607 2.368403,-2.143591 0.517719,-0.96696 0.684213,-2.083549 0.470984,-3.159446 -0.213217,-1.075897 -0.792948,-2.044663 -1.640251,-2.741117 -0.847403,-0.696403 -1.910018,-1.077599 -3.006793,-1.078488 -0.623075,-0.002 -1.240308,0.119346 -1.816167,0.357472 -0.575756,0.238018 -1.098632,0.587868 -1.538247,1.029362 z"}),a.jsx("path",{className:"styled info",d:"m 17.107015,17.766743 -1.76852,-1.768521 1.768519,-1.768519 c 0.210601,-0.2106 0.292912,-0.517524 0.215833,-0.805207 -0.07708,-0.287674 -0.301889,-0.512483 -0.589572,-0.589571 -0.287678,-0.07709 -0.594604,0.0052 -0.805207,0.215832 l -1.76852,1.768519 -1.768518,-1.768518 c -0.2106,-0.2106 -0.517526,-0.292913 -0.805207,-0.215832 -0.287676,0.07708 -0.512486,0.301889 -0.589572,0.589571 -0.07708,0.287678 0.0052,0.594603 0.215833,0.805207 l 1.768518,1.768518 -1.76852,1.76852 c -0.210601,0.2106 -0.292912,0.517526 -0.215832,0.805208 0.07708,0.287677 0.301888,0.512487 0.589571,0.589572 0.287677,0.07708 0.594604,-0.0052 0.805207,-0.215833 l 1.768521,-1.768521 1.76852,1.768521 c 0.2106,0.210599 0.517525,0.292913 0.805207,0.215833 0.287676,-0.07708 0.512486,-0.301889 0.589571,-0.589572 0.07708,-0.287677 -0.0052,-0.594605 -0.215832,-0.805207 z"})]}),Ax=e=>a.jsxs(V.SvgIcon,{...e,children:[a.jsx("path",{d:"M 3,21 H 21 V 19 H 3 Z M 3,3 V 5 H 21 V 3 Z m 8,6 H 21 V 7 H 11 Z m 0,4 H 21 V 11 H 11 Z m 0,4 H 21 V 15 H 11 Z"}),a.jsx("path",{className:"styled info",d:"M 7,12 3,8 v 8 z"})]}),Fx=e=>a.jsxs(V.SvgIcon,{...e,children:[a.jsx("path",{d:"M 3,21 H 21 V 19 H 3 Z M 3,3 V 5 H 21 V 3 Z m 8,6 H 21 V 7 H 11 Z m 0,4 H 21 V 11 H 11 Z m 0,4 H 21 V 15 H 11 Z"}),a.jsx("path",{className:"styled info",d:"m 3,12 4,4 V 8 Z"})]}),zx=e=>a.jsxs(V.SvgIcon,{...e,children:[a.jsx("path",{d:"m 19.880282,3.1253973 v 1.7167968 h 0.851563 c 0.06225,0 0.08398,0.027898 0.08398,0.080078 v 1.3261718 h 1.722656 V 4.9222723 c 0,-0.9900118 -0.81968,-1.7968751 -1.80664,-1.796875 z m 0.935547,4.1370057 v 2.11914 c 0,0.05217 -0.02171,0.08008 -0.08398,0.08008 h -7.222656 -1.541016 c -0.987185,0 -1.806641,0.8111 -1.806641,1.800782 v 0.458985 h 1.720703 v -0.458987 c 0,-0.04911 0.02442,-0.08008 0.08594,-0.08008 h 1.541016 7.222656 c 0.987178,0 1.806641,-0.811095 1.80664,-1.800782 V 7.262403 Z M 8.7679091,18.507575 v 2.998047 c 0,1.235762 1.014238,2.250001 2.2499999,2.25 1.235678,0 2.251962,-1.014894 2.251953,-2.25 v -2.998047 z m 1.3886819,-5.108896 v 2.923828 H 9.6272951 c -0.479448,-0.0018 -0.865107,0.384547 -0.863282,0.863281 v 2.714844 h 4.5019539 v -2.714844 c 0.0018,-0.480054 -0.386529,-0.865104 -0.865235,-0.863281 h -0.523437 v -2.923828 z m 2.5e-5,-2.051023 c 0.0011,0.0068 0.002,0.01353 0.002,0.02149 v 3.576171 h 1.722657 v -3.576171 c 0,-0.0072 8.7e-5,-0.01428 0,-0.02149 z M 20.814819,5.1347656 c 0.0011,0.0068 0.002,0.013534 0.002,0.021484 v 3.515625 h 1.722657 V 5.15625 c 0,-0.0072 8.7e-5,-0.014274 0,-0.021484 z"}),a.jsx("path",{className:"styled info",d:"m 17.404297,0.44921875 c -0.07081,8.138e-4 -0.143662,0.004376 -0.210938,0.0117188 H 5.4902344 C 4.1525203,0.4243701 3.0054304,1.6927542 3.1386719,3.0136719 c 0.021871,0.9461512 -0.050473,1.9039617 0.046875,2.8515625 0.2179595,1.1823832 1.417011,2.0074176 2.5917968,1.8789062 3.9411951,-0.00202 7.8840343,0.00319 11.8261723,-0.00391 1.312982,-0.03522 2.368675,-1.3065531 2.228515,-2.5917969 0.01172,-0.1312372 0.02662,-0.26053 0.03516,-0.3984375 V 3.296875 l -0.002,-0.00586 C 19.774361,3.0207819 19.896551,2.5516284 19.757812,2.2226563 19.506263,1.1645186 18.468764,0.4369752 17.404297,0.44921875 Z M 5.4882812,2.1816406 H 17.484375 c 0.583998,-0.018068 0.674958,0.6128217 0.626953,1.078125 -0.0082,0.7566135 0.0156,1.5145404 -0.01367,2.2636719 -0.09518,0.5462285 -0.699316,0.5126149 -1.152344,0.4980469 H 5.4863281 C 4.9024853,6.0371317 4.8115036,5.4054689 4.859375,4.9394531 4.8674807,4.1829001 4.8438683,3.425015 4.8730469,2.6757813 4.9219827,2.3881103 5.1972243,2.1732403 5.4882812,2.1816406 Z"})]}),_8=e=>a.jsxs(V.SvgIcon,{...e,children:[a.jsx("path",{className:"styled info",d:"M 9.0065407,14.665821 H 6.0065367 V 4.6658205 h -2 V 14.665821 h -3 l 4,4 z"}),a.jsx("path",{d:"m 10.722257,5.3791205 v 1.50391 h 11.536489 v -1.50391 z"}),a.jsx("path",{d:"m 10.722257,8.9600405 v 1.5039105 h 9.317921 V 8.9600405 Z"}),a.jsx("path",{d:"m 10.722257,12.540891 v 1.5039 h 7.099404 v -1.5039 z"}),a.jsx("path",{d:"m 10.722257,16.121811 v 1.50391 h 4.88082 v -1.50391 z"})]}),Bc=e=>a.jsxs(V.SvgIcon,{...e,children:[a.jsx("path",{className:"styled info",d:"M 9.0065407,14.665821 H 6.0065367 V 4.6658205 h -2 V 14.665821 h -3 l 4,4 z"}),a.jsx("path",{d:"m 10.722257,6.8830305 v -1.50391 h 4.88082 v 1.50391 z m 0,3.5809205 V 8.9600505 h 7.099404 v 1.5039005 z m 0,3.58085 v -1.50391 h 9.317921 v 1.50391 z m 0,3.58092 v -1.50391 h 11.536489 v 1.50391 z"})]}),Bx=e=>a.jsxs(V.SvgIcon,{...e,children:[a.jsx("path",{className:"styled info",d:"M 7.8167266,10.428041 A 2.7552276,2.7552276 0 0 1 5.061499,13.183269 2.7552276,2.7552276 0 0 1 2.3062715,10.428041 2.7552276,2.7552276 0 0 1 5.061499,7.6728163 2.7552276,2.7552276 0 0 1 7.8167266,10.428041 Z M 3.9394531,4.5996094 v 1.9121094 a 4.1082412,4.2066421 0 0 1 0.2578125,-0.056641 3.690037,3.7884378 0 0 1 0.3007813,-0.066406 4.1082412,4.2066421 0 0 1 0.1425781,-0.011719 3.690037,3.7884378 0 0 1 0.3789062,-0.03125 3.690037,3.7884378 0 0 1 0.023438,0.00195 4.1082412,4.2066421 0 0 1 0.048828,-0.00391 4.1082412,4.2066421 0 0 1 0.9648437,0.1269531 V 4.5996094 Z m 0,9.9882816 v 3.984375 H 6.0566406 V 14.638672 A 4.1082412,4.2066421 0 0 1 5.0917969,14.755859 4.1082412,4.2066421 0 0 1 3.9394531,14.587891 Z"}),a.jsx("path",{d:"m 10.722257,16.12182 v 1.503901 h 7.099404 V 16.12182 Z m 0,-2.076939 V 12.54097 h 11.536489 v 1.503911 z m 0,-3.580921 V 8.9600505 h 9.317921 V 10.46396 Z m 0,-3.5809295 v -1.50391 h 4.88082 v 1.50391 z"})]}),Nx=e=>a.jsxs(V.SvgIcon,{...e,children:[a.jsx("path",{d:"M 6.4082031,5.2265625 H 8.5917969 L 13.681641,18.773437 H 11.751953 L 10.490234,15.193359 H 4.5195312 L 3.25,18.773437 H 1.3183594 Z M 7.2792969,7.3730469 5.0898437,13.617188 H 9.9101563 L 7.7207031,7.3730469 Z"}),a.jsx("path",{className:"styled info",d:"m 20,11 h 3 v 2 h -3 v 3 h -2 v -3 h -3 v -2 h 3 V 8 h 2 z"})]}),Vx=e=>a.jsxs(V.SvgIcon,{...e,children:[a.jsx("path",{d:"M 6.4082031,5.2265625 H 8.5917969 L 13.681641,18.773437 H 11.751953 L 10.490234,15.193359 H 4.5195312 L 3.25,18.773437 H 1.3183594 Z M 7.2792969,7.3730469 5.0898437,13.617188 H 9.9101563 L 7.7207031,7.3730469 Z"}),a.jsx("path",{className:"styled info",d:"m 23,11 v 2 h -8 v -2 z"})]}),_5=e=>a.jsxs(V.SvgIcon,{...e,children:[a.jsx("path",{d:"m 12.793828,12.0675 c 1.055094,0.414425 1.787109,0.74604 1.787109,1.902344 0,1 -0.809297,1.669922 -2.279297,1.669922 C 10.76164,15.639766 9.37,15.1 9.37,13.13 H 6.40125 c 0,0.55 0.080234,1.130078 0.240234,1.580078 0.81,2.29 3.289922,3.300781 5.669922,3.300781 2.27,0 5.298828,-0.890781 5.298828,-4.050781 0,-0.293994 -0.0104,-1.125305 -0.453125,-1.892578 z M 6.85,7.08 C 6.85,4.37 9.45,3 12.24,3 c 1.64,0 3,0.49 3.9,1.28 0.77,0.65 1.46,1.73 1.46,3.24 h -3.01 c 0,-0.31 -0.05,-0.59 -0.15,-0.85 -0.29,-0.86 -1.2,-1.28 -2.25,-1.28 -1.86,0 -2.34,1.02 -2.34,1.7 0,0.48 0.25,0.88 0.74,1.21 C 10.97,8.55 11.36,8.78 12,9 H 7.39 C 7.18,8.66 6.85,8.11 6.85,7.08 Z"}),a.jsx("path",{className:"styled info",d:"m 2.985229,9.9941 v 2 H 12.60437 C 12.60977,11.9962 12.61465,11.9979 12.62,12 h 8.365229 v -0.0059 -2 z"})]}),Hx=e=>a.jsxs(V.SvgIcon,{...e,children:[a.jsx("path",{d:"m 5.88,20 h 2.66 l 3.4,-5.42 h 0.12 l 3.4,5.42 h 2.66 L 13.47,12.73 17.81,6 h -2.68 l -3.07,4.99 H 11.94 L 8.85,6 H 6.19 l 4.32,6.73 z"}),a.jsx("path",{className:"styled info",d:"m 22,7 h -2 v 1 h 3 V 9 H 19 V 7 c 0,-0.55 0.45,-1 1,-1 h 2 V 5 H 19 V 4 h 3 c 0.55,0 1,0.45 1,1 v 1 c 0,0.55 -0.45,1 -1,1 z"})]}),$x=e=>a.jsxs(V.SvgIcon,{...e,children:[a.jsx("path",{d:"m 5.88,18 h 2.66 l 3.4,-5.42 h 0.12 l 3.4,5.42 h 2.66 L 13.47,10.73 17.81,4 H 15.13 L 12.06,8.99 H 11.94 L 8.85,4 H 6.19 l 4.32,6.73 z"}),a.jsx("path",{className:"styled info",d:"m 22,18 h -2 v 1 h 3 v 1 h -4 v -2 c 0,-0.55 0.45,-1 1,-1 h 2 v -1 h -3 v -1 h 3 c 0.55,0 1,0.45 1,1 v 1 c 0,0.55 -0.45,1 -1,1 z"})]}),T1=e=>a.jsxs(V.SvgIcon,{...e,children:[a.jsx("path",{d:"m 12,17 c 3.31,0 6,-2.69 6,-6 V 3 h -2.5 v 8 c 0,1.93 -1.57,3.5 -3.5,3.5 -1.93,0 -3.5,-1.57 -3.5,-3.5 V 3 H 6 v 8 c 0,3.31 2.69,6 6,6 z"}),a.jsx("path",{className:"styled info",d:"m 5,19 v 2 h 14 v -2 z"})]}),T5=e=>a.jsxs(V.SvgIcon,{...e,children:[a.jsx("path",{d:"m 17.983101,9.6935009 q 0,3.6331771 -2.067499,5.4798741 Q 13.868177,17 10.154709,17 H 6.1000033 V 2.668021 H 10.59631 q 2.248154,0 3.894124,0.802912 1.666042,0.802912 2.569318,2.3685904 0.923349,1.5456056 0.923349,3.8539775 z m -3.15143,0.080291 q 0,-2.3886631 -1.043785,-3.4926671 Q 12.7441,5.1570482 10.756893,5.1570482 H 9.130996 V 14.4909 h 1.304732 q 4.395943,0 4.395943,-4.7171079 z"}),a.jsx("path",{className:"styled info",d:"m 5,21.242188 v 1.671875 H 19 V 21.242188 Z M 5,18.75 v 1.671875 H 19 V 18.75 Z"})]}),j5=e=>a.jsxs(V.SvgIcon,{...e,children:[a.jsx("path",{d:"M 12.155968,8.827186 C 10.178637,8.3132539 9.5427554,7.7819008 9.5427554,6.9543836 c 0,-0.9494671 0.8797816,-1.6114808 2.3518906,-1.6114808 1.550506,0 2.125413,0.7404101 2.177677,1.8292485 h 1.925066 C 15.936415,5.6739096 15.02179,4.2976179 13.201252,3.8533718 V 1.9457269 H 10.58804 V 3.8272397 C 8.8981631,4.1930894 7.5392927,5.2906385 7.5392927,6.971805 c 0,2.012173 1.6637451,3.013905 4.0940323,3.597522 2.177677,0.522643 2.613212,1.289185 2.613212,2.099281 0,0.601038 -0.426824,1.559216 -2.351891,1.559216 -1.794405,0 -2.4999726,-0.801385 -2.5957904,-1.829248 H 7.3825 c 0.1045285,1.907645 1.5330845,2.979062 3.20554,3.336201 V 17.625 h 2.613212 V 15.752198 C 14.89984,15.429902 16.25,14.445592 16.25,12.659897 c 0,-2.473841 -2.116702,-3.31878 -4.094032,-3.832711 z"}),a.jsx("path",{className:"styled info",d:"M 5,22.631706 V 23.72633 H 19 V 22.631706 Z"})]}),M5=e=>a.jsxs(V.SvgIcon,{...e,children:[a.jsx("path",{d:"M 12.155968,8.827186 C 10.178637,8.3132539 9.5427554,7.7819008 9.5427554,6.9543836 c 0,-0.9494671 0.8797816,-1.6114808 2.3518906,-1.6114808 1.550506,0 2.125413,0.7404101 2.177677,1.8292485 h 1.925066 C 15.936415,5.6739096 15.02179,4.2976179 13.201252,3.8533718 V 1.9457269 H 10.58804 V 3.8272397 C 8.8981631,4.1930894 7.5392927,5.2906385 7.5392927,6.971805 c 0,2.012173 1.6637451,3.013905 4.0940323,3.597522 2.177677,0.522643 2.613212,1.289185 2.613212,2.099281 0,0.601038 -0.426824,1.559216 -2.351891,1.559216 -1.794405,0 -2.4999726,-0.801385 -2.5957904,-1.829248 H 7.3825 c 0.1045285,1.907645 1.5330845,2.979062 3.20554,3.336201 V 17.625 h 2.613212 V 15.752198 C 14.89984,15.429902 16.25,14.445592 16.25,12.659897 c 0,-2.473841 -2.116702,-3.31878 -4.094032,-3.832711 z"}),a.jsx("path",{className:"styled info",d:"M 5,22.631706 V 23.72633 H 19 V 22.631706 Z M 5,20.3125 v 1.094624 H 19 V 20.3125 Z"})]}),Wx=e=>a.jsxs(V.SvgIcon,{...e,children:[a.jsx("path",{d:"m 12.75,3 h -1.5 L 6.5,14 h 2.1 l 0.9,-2.2 h 5 l 0.9,2.2 h 2.1 z M 10.13,10 12,4.98 13.87,10 Z"}),a.jsx("path",{className:"styled info",d:"m 20.5,18 -3,-3 v 2 H 5 v 2 h 12.5 v 2 z"})]}),R5=e=>a.jsxs(V.SvgIcon,{...e,children:[a.jsx("path",{d:"M 19.4,4.91 18.34,3.85 7.2,8.27 l 1.48,1.48 2.19,-0.92 3.54,3.54 -0.92,2.19 1.48,1.48 z m -6.81,3.1 4.87,-2.23 -2.23,4.87 z"}),a.jsx("path",{className:"styled info",d:"M 14.27,21 V 16.76 L 12.86,18.17 4.02,9.33 2.6,10.75 11.44,19.59 10.03,21 Z"})]}),I5=e=>a.jsxs(V.SvgIcon,{...e,children:[a.jsx("path",{d:"M 21,12 V 10.5 L 10,5.75 v 2.1 l 2.2,0.9 v 5 l -2.2,0.9 v 2.1 z M 14,9.38 19.02,11.25 14,13.12 Z"}),a.jsx("path",{className:"styled info",d:"m 6,19.75 3,-3 H 7 V 4.25 H 5 v 12.5 H 3 Z"})]}),D5=e=>a.jsxs(V.SvgIcon,{...e,children:[a.jsx("path",{d:"m 10,13.4375 v -1.5 l 11,-4.75 v 2.1 l -2.2,0.9 v 5 l 2.2,0.9 v 2.1 z m 7,-2.62 -5.02,1.87 5.02,1.87 z"}),a.jsx("path",{className:"styled info",d:"m 6,4.25 3,3 H 7 v 12.5 H 5 V 7.25 H 3 Z"})]}),da=e=>a.jsxs(V.SvgIcon,{...e,children:[a.jsx("path",{d:"M 4.49,4.21 3.43,5.27 7.85,16.4 9.33,14.92 8.41,12.73 l 3.54,-3.54 2.19,0.92 1.48,-1.48 z m 3.09,6.8 -2.22,-4.87 4.87,2.23 z"}),a.jsx("path",{className:"styled info",d:"m 20.57,9.33 h -4.24 l 1.41,1.41 -8.84,8.84 1.42,1.42 8.84,-8.84 1.41,1.41 z"})]}),L5=e=>a.jsxs(V.SvgIcon,{...e,children:[a.jsx("path",{d:"m 12.775,5.225 h -1.5 l -4.75,11 h 2.1 l 0.9,-2.2 h 5 l 0.9,2.2 h 2.1 z m -2.62,7 1.87,-5.02 1.87,5.02 z"}),a.jsx("path",{className:"styled info",d:"M 5.8342066,2.1057288 6.7489352,3.5142877 C 4.5119738,4.8935056 2.8102304,7.136837 2.2198413,9.9143995 1.1410154,14.989875 4.1186315,19.977298 8.953265,21.515989 L 9.3732789,19.53998 C 5.6220734,18.241799 3.3289986,14.310176 4.1750146,10.329983 4.6489709,8.1001948 6.0317389,6.2990363 7.8414141,5.1965572 L 8.7807545,6.6430144 9.5761234,2.9010978 Z M 15.045094,2.470135 14.625081,4.4461449 c 3.751204,1.2981805 6.04428,5.2298043 5.198264,9.2099961 -0.476939,2.243839 -1.873607,4.05475 -3.700087,5.155302 L 15.08,17.204971 l -0.795367,3.741917 3.741916,0.795368 -0.810813,-1.248542 c 2.253817,-1.377379 3.969387,-3.630283 4.562782,-6.42199 C 22.857344,8.9962479 19.879726,4.0088265 15.045094,2.470135 Z"})]}),Ux=e=>a.jsxs(V.SvgIcon,{...e,children:[a.jsx("path",{d:"M 4,3 V 5 H 20 V 3 Z"}),a.jsx("path",{className:"styled info",d:"m 8,11 h 3 v 10 h 2 V 11 h 3 L 12,7 Z"})]}),qx=e=>a.jsxs(V.SvgIcon,{...e,children:[a.jsx("path",{d:"m 4,11 v 2 h 16 v -2 z"}),a.jsx("path",{className:"styled info",d:"m 8,19 h 3 v 4 h 2 v -4 h 3 L 12,15 Z M 16,5 H 13 V 1 H 11 V 5 H 8 l 4,4 z"})]}),O5=e=>a.jsxs(V.SvgIcon,{...e,children:[a.jsx("path",{d:"m 4,19 v 2 h 16 v -2 z"}),a.jsx("path",{className:"styled info",d:"M 16,13 H 13 V 3 H 11 V 13 H 8 l 4,4 z"})]}),Tl=e=>a.jsxs(V.SvgIcon,{...e,children:[a.jsx("path",{d:"M 2.9414063,1.1894531 H 21.058594 c 0.956941,0 1.751953,0.7950113 1.751953,1.7519532 V 3.6503906 C 22.533056,3.5835353 22.245605,3.5503497 21.958984,3.5644531 21.714123,3.574937 21.478658,3.6106011 21.248047,3.65625 V 2.7519531 H 15.693359 V 7.1679687 C 15.384511,7.43193 15.080608,7.7009831 14.777344,7.9707031 v -5.21875 H 9.2226563 V 8.3066406 H 14.400391 C 14.066225,8.6087427 13.733481,8.9137148 13.40625,9.2226563 H 9.2226563 V 12.171875 C 8.9144,12.251628 8.6073686,12.359707 8.3066406,12.498047 V 9.2226563 H 2.7519531 v 5.5546877 h 2.6621094 c -0.2529233,0.292971 -0.4887468,0.600495 -0.7089844,0.916015 h -1.953125 v 5.554688 H 2.9140625 C 2.8210423,21.766482 2.6927179,22.284969 2.5195313,22.75 1.7631952,22.557231 1.1894531,21.87003 1.1894531,21.058594 V 2.9414063 c 0,-0.9569419 0.7950113,-1.7519532 1.7519532,-1.7519532 z m -0.1894532,1.5625 V 8.3066406 H 8.3066406 V 2.7519531 Z M 22.810547,11.259766 v 9.798828 c 0,0.956941 -0.795012,1.751953 -1.751953,1.751953 h -7.134766 c 0.550597,-0.44244 1.02425,-0.975141 1.371094,-1.63086 0.156933,-0.269785 0.285005,-0.553463 0.398437,-0.841796 v 0.910156 h 5.554688 v -5.554688 h -2.777344 c 0.33283,-0.303009 0.665729,-0.606191 0.992188,-0.916015 h 1.785156 v -1.78711 c 0.536806,-0.563086 1.06071,-1.137681 1.5625,-1.730468 z"}),a.jsx("path",{className:"styled info",d:"m 12.505348,21.378275 c -1.610018,1.59344 -7.6916825,2.243027 -7.9528805,2.270244 -0.01156,0 -0.02722,0.0041 -0.03901,0.0041 -0.148099,0 -0.28458,-0.08497 -0.350824,-0.220565 -0.07024,-0.146921 -0.04284,-0.324809 0.07406,-0.440942 1.465922,-1.458031 1.949233,-3.380252 2.097326,-4.733861 0.120881,-1.125477 0.69383,-2.16582 1.574981,-2.858094 0.822528,-0.649637 1.836183,-0.935877 2.8576335,-0.815985 0.42887,0.05023 0.81093,0.158623 1.130507,0.321028 0.233946,0.112169 0.436671,0.259091 0.60816,0.429233 0.0078,0.0078 0.01561,0.01548 0.02341,0.02322 0.09746,0.09668 0.187118,0.197336 0.272972,0.301767 0.04683,0.05419 0.08964,0.11217 0.132495,0.170143 0.07405,0.10065 0.144288,0.204894 0.214338,0.313288 0.13649,0.228123 0.253361,0.471724 0.343021,0.719298 0.57317,1.519926 0.241747,3.299001 -0.986217,4.517202 z M 23.452243,5.2319105 c -0.350822,-0.344256 -0.982414,-0.262866 -2.947241,1.245416 -1.360466,1.044309 -3.048553,2.552567 -4.756228,4.2464595 -1.246632,1.233519 -2.404769,2.473618 -3.348148,3.579661 0.232611,0.129548 0.457421,0.286661 0.655576,0.482488 0.14048,0.139741 0.247839,0.259845 0.350633,0.385238 0.04569,0.0525 0.10165,0.126521 0.15647,0.200547 0.08337,0.113688 0.161801,0.230007 0.240607,0.351243 0.127733,0.213008 0.227665,0.420169 0.316562,0.627154 0.427914,-0.355587 0.875058,-0.742164 1.339903,-1.159462 0.787488,-0.707791 1.62181,-1.488824 2.455937,-2.3167 1.703678,-1.689927 3.224033,-3.3685435 4.280516,-4.7221515 1.516553,-1.949003 1.598422,-2.575579 1.255405,-2.919831 z"})]}),Zx=e=>a.jsxs(V.SvgIcon,{...e,children:[a.jsx("path",{d:"M 2.9414062 1 C 1.8801751 1 1 1.8801751 1 2.9414062 L 1 21.058594 C 1 22.016977 1.7179462 22.826507 2.6386719 22.974609 C 2.8746068 22.392265 3.0352813 21.712461 3.140625 21.058594 L 2.9414062 21.058594 L 2.9414062 15.882812 L 4.8007812 15.882812 C 5.1118517 15.428446 5.4603359 14.99253 5.8378906 14.587891 L 2.9414062 14.587891 L 2.9414062 9.4121094 L 8.1171875 9.4121094 L 8.1171875 12.800781 C 8.5414237 12.58005 8.9761389 12.414501 9.4121094 12.316406 L 9.4121094 9.4121094 L 13.480469 9.4121094 C 14.261447 8.6729624 15.062312 7.9531127 15.882812 7.2539062 L 15.882812 2.9414062 L 21.058594 2.9414062 L 21.058594 3.8867188 C 21.351078 3.8150484 21.652926 3.7673448 21.966797 3.7539062 C 22.315888 3.7367325 22.667546 3.7904677 23 3.8984375 L 23 2.9414062 C 23 1.8801751 22.119825 1 21.058594 1 L 2.9414062 1 z M 2.9414062 2.9414062 L 8.1171875 2.9414062 L 8.1171875 8.1171875 L 2.9414062 8.1171875 L 2.9414062 2.9414062 z M 9.4121094 2.9414062 L 14.587891 2.9414062 L 14.587891 8.1171875 L 9.4121094 8.1171875 L 9.4121094 2.9414062 z M 23 10.738281 C 22.386197 11.489898 21.732626 12.210989 21.058594 12.916016 L 21.058594 14.587891 L 19.388672 14.587891 C 18.927998 15.026276 18.459668 15.457175 17.986328 15.882812 L 21.058594 15.882812 L 21.058594 21.058594 L 15.882812 21.058594 L 15.882812 18.917969 C 15.772781 19.675711 15.520363 20.414383 15.130859 21.083984 C 14.70264 21.89323 14.079246 22.511928 13.347656 23 L 21.058594 23 C 22.119825 23 23 22.119825 23 21.058594 L 23 10.738281 z "}),a.jsx("path",{className:"styled info",d:"m 12.505348,21.378275 c -1.610018,1.59344 -7.6916825,2.243027 -7.9528805,2.270244 -0.01156,0 -0.02722,0.0041 -0.03901,0.0041 -0.148099,0 -0.28458,-0.08497 -0.350824,-0.220565 -0.07024,-0.146921 -0.04284,-0.324809 0.07406,-0.440942 1.465922,-1.458031 1.949233,-3.380252 2.097326,-4.733861 0.120881,-1.125477 0.69383,-2.16582 1.574981,-2.858094 0.822528,-0.649637 1.836183,-0.935877 2.8576335,-0.815985 0.42887,0.05023 0.81093,0.158623 1.130507,0.321028 0.233946,0.112169 0.436671,0.259091 0.60816,0.429233 0.0078,0.0078 0.01561,0.01548 0.02341,0.02322 0.09746,0.09668 0.187118,0.197336 0.272972,0.301767 0.04683,0.05419 0.08964,0.11217 0.132495,0.170143 0.07405,0.10065 0.144288,0.204894 0.214338,0.313288 0.13649,0.228123 0.253361,0.471724 0.343021,0.719298 0.57317,1.519926 0.241747,3.299001 -0.986217,4.517202 z M 23.452243,5.2319105 c -0.350822,-0.344256 -0.982414,-0.262866 -2.947241,1.245416 -1.360466,1.044309 -3.048553,2.552567 -4.756228,4.2464595 -1.246632,1.233519 -2.404769,2.473618 -3.348148,3.579661 0.232611,0.129548 0.457421,0.286661 0.655576,0.482488 0.14048,0.139741 0.247839,0.259845 0.350633,0.385238 0.04569,0.0525 0.10165,0.126521 0.15647,0.200547 0.08337,0.113688 0.161801,0.230007 0.240607,0.351243 0.127733,0.213008 0.227665,0.420169 0.316562,0.627154 0.427914,-0.355587 0.875058,-0.742164 1.339903,-1.159462 0.787488,-0.707791 1.62181,-1.488824 2.455937,-2.3167 1.703678,-1.689927 3.224033,-3.3685435 4.280516,-4.7221515 1.516553,-1.949003 1.598422,-2.575579 1.255405,-2.919831 z"})]}),Gx=e=>a.jsx(V.SvgIcon,{...e,children:a.jsx("path",{d:"M5 5h5v2h-3v3h-2v-5zM14 5h5v5h-2v-3h-3v-2zM17 14h2v5h-5v-2h3v-3zM10 17v2h-5v-5h2v3h3z"})}),Kx=e=>a.jsx(V.SvgIcon,{...e,children:a.jsx("path",{d:"M14 14h5v2h-3v3h-2v-5zM5 14h5v5h-2v-3h-3v-2zM8 5h2v5h-5v-2h3v-3zM19 8v2h-5v-5h2v3h3z"})}),T8=e=>a.jsx(V.SvgIcon,{...e,children:a.jsx("path",{d:"m 1.6875,1.0761719 h 5.5 c 0.1623225,0 0.3189114,0.063052 0.4335937,0.1777343 C 7.7357798,1.3685879 7.7988281,1.5251759 7.7988281,1.6875 v 9.757813 L 14.699219,4.5449219 c 0.114721,-0.11458 0.271299,-0.1777344 0.433594,-0.1777344 0.162295,0 0.318906,0.063183 0.433593,0.1777344 l 3.888672,3.8886719 c 0.114587,0.1147184 0.177735,0.2712971 0.177734,0.4335937 0,0.1622964 -0.06318,0.3189061 -0.177734,0.4335938 l -6.90039,6.9003907 H 22.3125 c 0.162324,0 0.318911,0.06305 0.433594,0.177734 0.114685,0.114682 0.177734,0.27127 0.177734,0.433594 v 5.5 c 0,0.162322 -0.06305,0.31891 -0.177734,0.433594 -0.114681,0.114685 -0.271269,0.177734 -0.433594,0.177734 H 4.421875 C 3.5331871,22.918718 2.6814293,22.563525 2.0546875,21.933594 1.4277775,21.303864 1.0770706,20.451103 1.0761719,19.5625 V 1.6875 c 0,-0.1623225 0.063052,-0.3189103 0.1777343,-0.4335938 C 1.3685868,1.1392213 1.5251762,1.0761719 1.6875,1.0761719 Z M 2.2988281,2.2988281 V 5.2011719 H 6.5761719 V 2.2988281 Z M 15.130859,5.84375 13.080078,7.8945312 16.103516,10.917969 18.15625,8.8671875 Z M 2.2988281,6.4238281 V 9.3261719 H 6.5761719 V 6.4238281 Z M 12.214844,8.7597656 10.162109,10.8125 13.1875,13.835938 15.238281,11.785156 Z M 2.2988281,10.548828 v 2.902344 h 4.2773438 v -2.902344 z m 7,1.128906 -1.5,1.498047 v 1.103516 l 2.4707029,2.472656 0.373047,-0.373047 1.679688,-1.677734 z m -7,2.996094 V 19.5625 c 6.51e-4,0.566698 0.2261684,1.108818 0.6269532,1.509766 0.4008158,0.400706 0.9447472,0.62827 1.5117187,0.628906 C 5.0043265,21.700521 5.5466134,21.47308 5.9472656,21.072266 6.3481233,20.671618 6.5755363,20.12945 6.5761719,19.5625 v -4.888672 z m 5.5,1.337891 v 3.210937 L 9.40625,17.617187 Z m 3.5312499,1.412109 -0.78125,0.78125 v 3.496094 h 2.902344 v -4.277344 z m 3.34375,0 v 4.277344 h 2.902344 v -4.277344 z m 4.125,0 v 4.277344 h 2.902344 v -4.277344 z m -9.4726561,2.005859 -2.2714844,2.271485 h 2.2714844 z"})}),Xx=e=>a.jsxs(V.SvgIcon,{...e,children:[a.jsx("path",{d:"M20 18c1.1 0 1.99-.9 1.99-2L22 6c0-1.1-.9-2-2-2H4c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2H0v2h24v-2h-4zM4 6h16v10H4V6z"}),a.jsx("path",{className:"styled info",d:"m 12,7.0668288 c -2.2088889,0 -4,1.7911111 -4,3.9999992 0,2.208889 1.7911111,4 4,4 2.208889,0 4,-1.791111 4,-4 0,-0.204445 -0.01778,-0.408889 -0.04445,-0.604445 C 15.52,11.071273 14.808889,11.466828 14,11.466828 c -1.324445,0 -2.4,-1.075555 -2.4,-2.3999992 0,-0.8044445 0.395555,-1.52 1.004445,-1.9555555 -0.195556,-0.026667 -0.4,-0.044444 -0.604445,-0.044444 z"})]}),Yx=e=>a.jsxs(V.SvgIcon,{...e,children:[a.jsx("path",{d:"M20 18c1.1 0 1.99-.9 1.99-2L22 6c0-1.1-.9-2-2-2H4c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2H0v2h24v-2h-4zM4 6h16v10H4V6z"}),a.jsx("path",{className:"styled info",d:"m 12,9.015354 c -1.003636,0 -1.818182,0.8145452 -1.818182,1.818181 0,1.003636 0.814546,1.818182 1.818182,1.818182 1.003636,0 1.818182,-0.814546 1.818182,-1.818182 0,-1.0036358 -0.814546,-1.818181 -1.818182,-1.818181 z m -3.6363636,2.181817 h 0.7272727 c 0.2,0 0.3636364,-0.163636 0.3636364,-0.363636 0,-0.2 -0.1636364,-0.363636 -0.3636364,-0.363636 H 8.3636364 C 8.1636364,10.469899 8,10.633535 8,10.833535 c 0,0.2 0.1636364,0.363636 0.3636364,0.363636 z m 6.5454546,0 h 0.727273 c 0.2,0 0.363636,-0.163636 0.363636,-0.363636 0,-0.2 -0.163636,-0.363636 -0.363636,-0.363636 h -0.727273 c -0.2,0 -0.363636,0.163636 -0.363636,0.363636 0,0.2 0.163636,0.363636 0.363636,0.363636 z M 11.636364,7.1971724 v 0.7272727 c 0,0.2 0.163636,0.3636364 0.363636,0.3636364 0.2,0 0.363636,-0.1636364 0.363636,-0.3636364 V 7.1971724 C 12.363636,6.9971724 12.2,6.833536 12,6.833536 c -0.2,0 -0.363636,0.1636364 -0.363636,0.3636364 z m 0,6.5454536 v 0.727273 c 0,0.2 0.163636,0.363636 0.363636,0.363636 0.2,0 0.363636,-0.163636 0.363636,-0.363636 v -0.727273 c 0,-0.2 -0.163636,-0.363636 -0.363636,-0.363636 -0.2,0 -0.363636,0.163636 -0.363636,0.363636 z M 9.8145455,8.1353542 C 9.6727273,7.993536 9.44,7.993536 9.3018182,8.1353542 9.16,8.2771724 9.16,8.5098996 9.3018182,8.6480815 L 9.6872727,9.033536 c 0.1418182,0.1418178 0.3745453,0.1418178 0.5127273,0 0.138182,-0.141818 0.141818,-0.3745455 0,-0.5127273 z m 4.4981815,4.4981808 c -0.141818,-0.141818 -0.374545,-0.141818 -0.512727,0 -0.141818,0.141818 -0.141818,0.374545 0,0.512727 l 0.385455,0.385455 c 0.141818,0.141818 0.374545,0.141818 0.512727,0 0.141818,-0.141818 0.141818,-0.374546 0,-0.512727 z m 0.385455,-3.9854535 c 0.141818,-0.1418182 0.141818,-0.3745455 0,-0.5127273 -0.141818,-0.1418182 -0.374546,-0.1418182 -0.512727,0 L 13.8,8.5208087 c -0.141818,0.1418182 -0.141818,0.3745453 0,0.5127273 0.141818,0.1381818 0.374545,0.1418178 0.512727,0 z M 10.2,13.146262 c 0.141818,-0.141818 0.141818,-0.374545 0,-0.512727 -0.141818,-0.141818 -0.3745455,-0.141818 -0.5127273,0 L 9.3018182,13.01899 c -0.1418182,0.141818 -0.1418182,0.374545 0,0.512727 0.1418182,0.138182 0.3745454,0.141818 0.5127273,0 z"})]}),j8=e=>a.jsxs(V.SvgIcon,{...e,children:[a.jsx("path",{d:"m 11.990234,4.5 c -1.4,0 -2.7404684,0.2492188 -3.9804684,0.6992188 L 10.169922,7.359375 C 10.739922,7.129375 11.35,7 12,7 c 2.76,0 5,2.24 5,5 0,0.65 -0.129375,1.260078 -0.359375,1.830078 L 19.560547,16.75 c 1.51,-1.26 2.699687,-2.89 3.429687,-4.75 -1.73,-4.39 -6,-7.5 -11,-7.5 z M 4.4667969,7.2363281 C 2.9391014,8.4988579 1.7360476,10.131572 1,12 c 1.73,4.39 6,7.5 11,7.5 1.421129,0 2.781865,-0.254758 4.039062,-0.712891 L 13.867188,16.619141 C 13.287518,16.858524 12.661535,17 12,17 9.24,17 7,14.76 7,12 7,11.342179 7.1400222,10.719516 7.3769531,10.142578 Z m 7.5429691,1.7734375 -0.169922,0.00977 3.15039,3.1503904 0.01953,-0.160156 c 0,-1.66 -1.34,-3 -3,-3 z M 9.0136719,11.777344 C 9.0071589,11.851577 9,11.925377 9,12 c 0,1.66 1.34,3 3,3 0.07662,0 0.152316,-0.0088 0.228516,-0.01563 z"}),a.jsx("path",{className:"styled info",d:"M 3.4023412,2.6855886 21.174662,20.415272 19.390017,22.196947 1.617783,4.4661766 Z"})]}),Jx=e=>a.jsx(V.SvgIcon,{...e,children:a.jsx("path",{d:"m 12.014585,1.0145787 c -2.9173083,0 -5.7150653,1.1589573 -7.7781146,3.2218854 -2.0630492,2.0629281 -3.2218854,4.860625 -3.2218854,7.7781139 0,2.91749 1.1589576,5.715066 3.2218854,7.778115 2.0629284,2.063049 4.8606245,3.221885 7.7781146,3.221885 2.91749,0 5.715066,-1.158957 7.778115,-3.221885 2.063049,-2.062929 3.221885,-4.860625 3.221885,-7.778115 0,-2.9174889 -1.158957,-5.7150648 -3.221885,-7.7781139 -2.062929,-2.06305 -4.860625,-3.2218854 -7.778115,-3.2218854 z M 13.454319,18.933997 H 10.69791 v -2.711384 h 2.801514 z m 2.665954,-7.817276 c -0.393369,0.480362 -0.849436,0.905921 -1.355692,1.265237 l -0.677677,0.542148 c -0.340096,0.246802 -0.593209,0.594783 -0.723064,0.994116 -0.0933,0.353966 -0.139007,0.718651 -0.135539,1.084567 h -2.485365 c -0.004,-0.734733 0.102442,-1.465996 0.316147,-2.169219 0.298807,-0.564837 0.733789,-1.046159 1.265561,-1.400716 l 0.677675,-0.542147 c 0.208661,-0.150352 0.391797,-0.333481 0.542147,-0.542149 0.238289,-0.328436 0.365,-0.7243298 0.361537,-1.1296746 C 13.915784,8.7495526 13.773307,8.2896447 13.499392,7.9082991 13.22832,7.516817 12.731253,7.3207704 12.008222,7.3207704 v 3.208e-4 c -0.297234,-0.027745 -0.596672,0.024585 -0.866787,0.1519262 -0.270128,0.1270191 -0.501476,0.3243371 -0.669484,0.5708244 -0.290933,0.4434869 -0.4479,0.9610316 -0.451999,1.491171 H 7.3085687 C 7.3687712,7.7576298 7.9862449,6.5074836 9.1613173,5.7844902 9.9748465,5.2833264 10.91764,5.03211 11.8727,5.0617409 c 1.235866,-0.046327 2.454463,0.3019609 3.479482,0.9937921 0.944328,0.6906014 1.47229,1.8145812 1.400717,2.9824229 0.02302,0.743552 -0.199523,1.4739041 -0.632602,2.0787641 z"})}),Qx=e=>a.jsxs(V.SvgIcon,{...e,children:[a.jsx("path",{d:"m 19.470429,3.2227425 c -0.973736,0.562118 -2.218716,0.228623 -2.780834,-0.7451281 -0.160461,-0.278328 -0.516282,-0.373468 -0.79462,-0.212804 L 1.7911267,10.407837 c -0.278327,0.160461 -0.373467,0.516283 -0.212803,0.79462 0.562118,0.973736 0.228622,2.218715 -0.74512891,2.780834 -0.278327,0.160461 -0.373468,0.516282 -0.212804,0.79462 l 3.19914991,5.541206 c 0.160462,0.278327 0.516282,0.373467 0.79462,0.212803 0.973736,-0.562118 2.218716,-0.228622 2.780834,0.74513 0.160461,0.278326 0.516282,0.373467 0.79462,0.212803 L 22.293462,13.346826 c 0.278328,-0.160461 0.373468,-0.516282 0.212805,-0.79462 -0.562118,-0.973736 -0.228623,-2.218715 0.745128,-2.7808335 0.278328,-0.160461 0.373468,-0.516282 0.212804,-0.79462 l -3.19915,-5.541205 c -0.160462,-0.278328 -0.516283,-0.373671 -0.79462,-0.212805 z m 0.72259,7.6496675 c 0.319099,0.552615 0.129223,1.261598 -0.423371,1.580724 L 8.6768517,18.857459 c -0.552615,0.319099 -1.261598,0.129224 -1.580724,-0.423369 l -3.205226,-5.552112 c -0.3191,-0.552615 -0.129224,-1.261598 0.423369,-1.580724 L 15.406549,4.8969295 c 0.552614,-0.3191 1.261598,-0.129223 1.580724,0.42337 z"}),a.jsx("path",{d:"M 15.843458,5.6521485 4.7506607,12.056473 c -0.136121,0.07851 -0.18298,0.252766 -0.104068,0.388887 l 3.205227,5.551592 c 0.07851,0.13612 0.252766,0.182979 0.388886,0.104067 L 19.332983,11.696695 c 0.136121,-0.07851 0.18298,-0.252766 0.104069,-0.388887 L 16.231825,5.7562165 c -0.07851,-0.136121 -0.252563,-0.182575 -0.388684,-0.104068 z"})]}),M8=e=>a.jsx(V.SvgIcon,{...e,children:a.jsx("path",{d:"m 22.976945,4.1728234 c -1.33047,-1.27297 -3.05206,-2.0588 -4.88525,-2.230281 -2.10522,-0.135121 -4.18237,0.540501 -5.80555,1.888121 -0.0974,0.0747 -0.23291,0.0747 -0.33029,0 -1.61964,-1.35414 -3.6993694,-2.030529 -5.8055494,-1.888121 -1.8332,0.171461 -3.55478,0.957311 -4.88526,2.230281 -0.42017001,0.38403 -0.65641001,0.92924 -0.64892001,1.49857 V 18.651443 c -0.0109,0.69237 0.32021,1.34565 0.88499001,1.74627 0.53079,0.38896 1.21765,0.49464 1.84068,0.28328 0.92429,-0.32417 1.90016,-0.47628 2.87921,-0.44842 1.70242,0.0498 3.3491595,0.61792 4.7200894,1.62833 0.35874,0.25404 0.78759,0.39035 1.22716,0.39035 0.43956,0 0.8684,-0.13631 1.22715,-0.39035 1.37093,-1.01041 3.01767,-1.57857 4.7201,-1.62833 0.97389,-0.0247 1.9448,0.12306 2.86732,0.43656 0.59598,0.19241 1.24789,0.0917 1.75815,-0.27142 0.54677,-0.3935 0.87134,-1.02543 0.87316,-1.69908 V 5.7185734 c 0.0243,-0.58374 -0.20861,-1.14872 -0.63709,-1.54575 z M 6.2207656,18.462663 h -0.23587 c -1.10053,-1.9e-4 -2.19332,0.18332 -3.23321,0.54283 -0.0747,0.0359 -0.16159,0.0359 -0.23606,0 -0.084,-0.0593 -0.13275,-0.15685 -0.12979,-0.25957 V 5.7658734 c -0.002,-0.0814 0.0326,-0.15942 0.0944,-0.21236 1.02189,-1.03236 2.36733,-1.6823 3.81138,-1.84089 1.6475,-0.10963 3.2740695,0.4184 4.5428894,1.47506 0.12584,0.0881 0.26017,0.16317 0.40121,0.22421 V 19.961163 c -1.5097899,-0.93399 -3.2402794,-1.45113 -5.0150194,-1.49857 z m 15.6112594,0.23607 h 1.9e-4 c 0.005,0.10628 -0.0494,0.20643 -0.14164,0.25957 -0.0688,0.0427 -0.15566,0.0427 -0.22421,0 -1.13846,-0.38936 -2.33714,-0.57327 -3.53997,-0.54283 -1.76665,0.0516 -3.48839,0.56852 -4.99131,1.49857 V 5.4239434 c 0.16357,-0.0569 0.31844,-0.13631 0.46008,-0.23607 1.27019,-1.06376 2.90172,-1.59632 4.55473,-1.48668 1.43176,0.13274 2.77589,0.7485 3.81138,1.74626 0.0618,0.0531 0.0964,0.13097 0.0944,0.21236 z"})}),ey=e=>a.jsx(V.SvgIcon,{...e,children:a.jsx("path",{d:"m 19.995193,4.1812078 a 19.013613,19.013613 0 0 0 -4.681888,-1.4532973 0.07187425,0.07187425 0 0 0 -0.07475,0.035937 c -0.202686,0.3593713 -0.426933,0.8294288 -0.583619,1.197425 a 17.522941,17.522941 0 0 0 -5.2583209,0 A 11.870751,11.870751 0 0 0 8.8043723,2.7638477 0.07331173,0.07331173 0 0 0 8.729623,2.7279105 C 7.1124525,3.0067826 5.5384065,3.4955275 4.0477346,4.1812078 a 0.05893688,0.05893688 0 0 0 -0.030187,0.025875 C 1.0362036,8.6618483 0.21827469,13.007365 0.61933299,17.298257 c 0.00144,0.02013 0.014375,0.04025 0.030187,0.05319 a 19.08405,19.08405 0 0 0 5.74275231,2.90372 0.07187425,0.07187425 0 0 0 0.080499,-0.02731 c 0.4427453,-0.603744 0.8366162,-1.24055 1.1758627,-1.910418 a 0.07187425,0.07187425 0 0 0 -0.014375,-0.08481 0.07331173,0.07331173 0 0 0 -0.025875,-0.01581 12.757679,12.757679 0 0 1 -1.7939812,-0.855303 0.07187425,0.07187425 0 0 1 -0.02875,-0.09487 0.07331173,0.07331173 0 0 1 0.021562,-0.02731 C 5.9279635,17.148776 6.0487122,17.0539 6.163711,16.959026 a 0.07187425,0.07187425 0 0 1 0.073312,-0.01006 c 3.764774,1.719232 7.840044,1.719232 11.558817,0 a 0.07474922,0.07474922 0 0 1 0.07619,0.01006 c 0.114999,0.09487 0.235748,0.189748 0.356496,0.28031 a 0.07331173,0.07331173 0 0 1 -0.0057,0.122186 11.865001,11.865001 0 0 1 -1.795418,0.853866 0.07187425,0.07187425 0 0 0 -0.04312,0.04312 0.07474922,0.07474922 0 0 0 0.0043,0.05894 c 0.344996,0.668431 0.740304,1.306674 1.174425,1.910418 a 0.07187425,0.07187425 0 0 0 0.0805,0.02731 19.025113,19.025113 0 0 0 5.751377,-2.90372 0.07043676,0.07043676 0 0 0 0.03019,-0.05319 C 23.905152,12.337497 22.621478,8.0279175 20.023943,4.20852 a 0.04887449,0.04887449 0 0 0 -0.02875,-0.027312 z M 8.210691,14.68491 c -1.1341756,0 -2.0671034,-1.040739 -2.0671034,-2.317225 0,-1.277925 0.9156779,-2.318664 2.0671034,-2.318664 1.1600503,0 2.084354,1.049364 2.067104,2.318664 0,1.276486 -0.9156786,2.317225 -2.067104,2.317225 z m 7.641671,0 c -1.132739,0 -2.067104,-1.040739 -2.067104,-2.317225 0,-1.277925 0.915678,-2.318664 2.067104,-2.318664 1.16005,0 2.08579,1.049364 2.067103,2.318664 0,1.276486 -0.907053,2.317225 -2.067103,2.317225 z"})}),ty=e=>a.jsx(V.SvgIcon,{...e,children:a.jsx("path",{d:"m 11.994177,0.64138243 c -6.3495538,0 -11.49893642,5.14871627 -11.49893642,11.50038057 0,5.08024 3.29478962,9.390915 7.86457222,10.912246 0.5753806,0.105166 0.7850455,-0.249827 0.7850455,-0.554855 0,-0.273303 -0.00988,-0.996138 -0.015529,-1.955634 C 5.9305529,21.238279 5.2556377,19.001727 5.2556377,19.001727 4.7325067,17.67312 3.978535,17.319396 3.978535,17.319396 c -1.0441366,-0.713 0.079073,-0.698883 0.079073,-0.698883 1.154267,0.08121 1.7614035,1.185372 1.7614035,1.185372 1.0257841,1.757041 2.6918882,1.249456 3.3470392,0.955055 0.1044834,-0.742662 0.4016909,-1.249613 0.7299723,-1.536875 -2.5535238,-0.29091 -5.2383375,-1.277087 -5.2383375,-5.683792 0,-1.255943 0.4482938,-2.2817109 1.1839131,-3.0858226 C 5.7229977,8.1635877 5.3283653,6.9944739 5.9545522,5.4109636 c 0,0 0.965064,-0.3092311 3.1620715,1.1782662 0.9170653,-0.2548559 1.9011953,-0.3819269 2.8789643,-0.3868758 0.977072,0.00494 1.960505,0.1320199 2.878982,0.3868758 2.19558,-1.4874973 3.159201,-1.1782662 3.159201,-1.1782662 0.627662,1.5835103 0.233013,2.7526241 0.115159,3.0434868 0.736951,0.8041117 1.181723,1.8298796 1.181723,3.0858226 0,4.417998 -2.689096,5.390185 -5.250312,5.674591 0.412287,0.355152 0.780112,1.05689 0.780112,2.129959 0,1.536876 -0.01413,2.77729 -0.01413,3.154331 0,0.307725 0.207571,0.665731 0.790708,0.553428 4.566198,-1.524186 7.858211,-5.831372 7.858211,-10.910819 0,-6.3516643 -5.149461,-11.50038057 -11.501063,-11.50038057 z"})}),P5=e=>a.jsx(V.SvgIcon,{...e,children:a.jsx("path",{d:"m 9.1445313,1.9277344 c 3.9843487,0 7.2167967,3.2324477 7.2167967,7.2167969 0,1.7875897 -0.654646,3.4321647 -1.742187,4.6972657 l -0.203125,0.236328 0.642578,0.615234 h 0.916015 l 5.464844,5.476563 -1.269531,1.269531 -5.476563,-5.464844 v -0.916015 l -0.615234,-0.642578 -0.234375,0.203125 c -1.265123,1.087569 -2.911633,1.742187 -4.6992187,1.742187 -3.9843492,0 -7.2167969,-3.232448 -7.2167969,-7.2167967 0,-3.9843492 3.2324477,-7.2167969 7.2167969,-7.2167969 z m 0,1.6660156 c -3.07113,0 -5.5507813,2.4796513 -5.5507813,5.5507813 0,3.0711297 2.4797193,5.5488277 5.5507813,5.5488277 3.0710627,0 5.5488277,-2.477765 5.5488277,-5.5488277 0,-3.071062 -2.477698,-5.5507813 -5.5488277,-5.5507813 z"})}),R8=e=>a.jsxs(V.SvgIcon,{...e,children:[a.jsx("path",{d:"m 16.2342,8.4780852 h 0.01571 c 0.287571,0.4887143 0.708714,0.7338572 1.266571,0.7338572 0.617572,0 1.109429,-0.264 1.477143,-0.7904286 0.370857,-0.5264286 0.554715,-1.2257143 0.554715,-2.0947143 0,-0.803 -0.157143,-1.4347143 -0.473,-1.8967143 -0.315858,-0.4635714 -0.766858,-0.6945714 -1.351429,-0.6945714 -0.636429,0 -1.128286,0.3048571 -1.474,0.913 H 16.2342 V 1.3547995 h -1.400147 v 7.7298571 h 1.398571 V 8.4780852 Z M 16.210628,6.8107995 V 6.2765138 c 0,-0.3897143 0.09114,-0.704 0.275,-0.9444286 a 0.84857143,0.84857143 0 0 1 0.699286,-0.3614286 0.77,0.77 0 0 1 0.685143,0.3661429 c 0.163428,0.242 0.243571,0.5782857 0.243571,1.0104286 0,0.5185714 -0.088,0.9224285 -0.265571,1.2068571 a 0.82342857,0.82342857 0 0 1 -0.738572,0.4242857 0.77785714,0.77785714 0 0 1 -0.645857,-0.3315714 1.3404286,1.3404286 0 0 1 -0.251428,-0.836 z"}),a.jsx("path",{className:"styled info",d:"m 5.7527709,5.6589424 3.5529999,3.5655714 3.4854282,-3.4948572 -1.1,-1.1 -1.590285,1.5824286 -0.01257,-2.5142857 A 0.82185714,0.82185714 0 0 1 10.874059,2.8712281 H 13.26263 V 1.3547995 H 10.874057 A 2.3288571,2.3288571 0 0 0 8.5483423,3.6946566 V 6.2262281 L 6.8621994,4.5495138 Z"}),a.jsx("path",{d:"m 14.834057,19.848943 c -0.402286,0.242 -0.982143,0.363 -1.741143,0.363 -0.884715,0 -1.602857,-0.279714 -2.151286,-0.837572 -0.548429,-0.557857 -0.821857,-1.277571 -0.821857,-2.159142 0,-1.018286 0.292286,-1.819715 0.88,-2.404286 0.587714,-0.590858 1.375,-0.884715 2.357143,-0.884715 0.680428,0 1.172285,0.09429 1.477143,0.281286 V 15.7758 a 1.98,1.98 0 0 0 -1.244572,-0.433714 c -0.510714,0 -0.916143,0.157143 -1.216286,0.468285 -0.298571,0.308 -0.444714,0.735429 -0.444714,1.282286 0,0.531143 0.141429,0.947572 0.427429,1.252429 0.286,0.300143 0.677285,0.451 1.177,0.451 0.443143,0 0.876857,-0.144572 1.301143,-0.433715 z M 6.9769137,10.783371 5.4054852,12.3548 v 9.428571 L 6.9769137,23.3548 H 17.976914 l 1.571429,-1.571429 V 12.3548 l -1.571429,-1.571429 z m 0,1.571429 H 17.976914 v 9.428571 H 6.9769137 Z"})]}),ny=e=>a.jsx(V.SvgIcon,{...e,children:a.jsx("path",{className:"styled info",d:"m 2.350101,20.254318 c 0.550055,0 1.000101,-0.450045 1.000101,-1.000101 0,-6.065612 4.935498,-11.0011108 11.001111,-11.0011108 h 5.585564 l -2.295232,2.2952318 c -0.390039,0.390039 -0.390039,1.025103 0,1.415143 0.200021,0.190019 0.455046,0.290029 0.710072,0.290029 0.255026,0 0.510052,-0.10001 0.705071,-0.29503 l 4.000404,-4.0004038 c 0.015,-0.015 0.025,-0.03 0.04,-0.05001 0.015,-0.015 0.03,-0.035 0.04501,-0.055 0.05501,-0.07001 0.10001,-0.140014 0.130013,-0.220023 0,0 0,-0.005 0.005,-0.005 0,0 0,0 0,0 0.035,-0.08501 0.05501,-0.170017 0.06501,-0.255026 0.005,-0.02 0.005,-0.04 0.005,-0.06001 0.005,-0.08501 0.005,-0.175018 -0.015,-0.260026 0,0 0,-0.005 0,-0.005 -0.015,-0.08001 -0.045,-0.160016 -0.08501,-0.2350231 -0.01,-0.02 -0.02,-0.035 -0.03,-0.05501 -0.045,-0.07501 -0.09501,-0.1500149 -0.160017,-0.215022 l -4.00041,-4.0003969 c -0.390039,-0.390039 -1.025103,-0.390039 -1.415143,0 -0.390039,0.39004 -0.390039,1.0251039 0,1.4151429 l 2.300233,2.295232 H 14.351313 C 7.185589,6.2529042 1.35,12.083493 1.35,19.254217 c 0,0.550056 0.450045,1.000101 1.000101,1.000101 z"})}),oy=e=>a.jsx(V.SvgIcon,{...e,children:a.jsx("path",{className:"styled error_light",d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"})}),ry=e=>a.jsx(V.SvgIcon,{...e,children:a.jsx("path",{className:"styled success_light",d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"})}),iy=e=>a.jsxs(V.SvgIcon,{...e,children:[a.jsx("path",{d:"M 3 3 L 3 21 L 14.587891 21 L 14.587891 19 L 5 19 L 5 5 L 19 5 L 19 14.298828 L 21 14.298828 L 21 3 L 3 3 z"}),a.jsx("path",{className:"styled info",d:"M 22.132849,17.187826 H 17.41854 v 4.714309 h 4.714309 z"})]}),ly=e=>a.jsxs(V.SvgIcon,{...e,children:[a.jsx("path",{d:"M 12.427734 3 C 12.908883 3.5977372 13.285446 4.2743797 13.541016 5 L 19 5 L 19 14.298828 L 21 14.298828 L 21 3 L 12.427734 3 z M 3 12.617188 L 3 21 L 14.587891 21 L 14.587891 19 L 5 19 L 5 13.683594 C 4.2764611 13.442198 3.6010853 13.081758 3 12.617188 z"}),a.jsx("path",{className:"styled info",d:"M 22.132849,17.187826 H 17.41854 v 4.714309 h 4.714309 z"}),a.jsx("path",{className:"styled",d:"M 10.978454,2.6309839 C 10.257756,1.884659 9.3513608,1.3437235 8.3524299,1.0635859 7.3534474,0.78342298 6.2979022,0.77432955 5.2940356,1.0369696 4.2903709,1.2996971 3.3746562,1.8248773 2.640959,2.5584758 1.9072594,3.2920743 1.3821803,4.2077881 1.1194529,5.2115549 0.85682509,6.2153204 0.8659182,7.270865 1.1460764,8.2699466 1.4262371,9.2689297 1.9671485,10.175323 2.7134729,10.895971 3.4341706,11.642296 4.3405665,12.183232 5.339495,12.46337 6.3384787,12.743532 7.3940228,12.752626 8.3978893,12.48999 9.401554,12.227265 10.31727,11.702085 11.050967,10.968487 11.784669,10.234893 12.309747,9.3191777 12.572473,8.3154124 12.835101,7.311646 12.826007,6.2561004 12.54585,5.2570187 12.265694,4.258031 11.724782,3.3516358 10.978457,2.6309889 Z M 10.154347,10.071678 C 9.3898131,10.837091 8.3835927,11.313623 7.3071294,11.420288 6.2305424,11.526948 5.1503479,11.257069 4.2504908,10.656654 3.3506326,10.056224 2.6868002,9.1623531 2.3721166,8.1273235 2.0574379,7.0923441 2.1113431,5.980235 2.5246658,4.9805025 2.9378935,3.9808449 3.6850958,3.1552616 4.6387859,2.6446611 5.5924508,2.1340603 6.6936884,1.9698554 7.7547937,2.180153 8.815899,2.3904382 9.771346,2.9621988 10.458225,3.7978524 c 0.686828,0.8357531 1.062784,1.8837586 1.06366,2.9654555 0.002,0.6145097 -0.117709,1.2232568 -0.352557,1.7911976 -0.234746,0.5678411 -0.579786,1.0835274 -1.01521,1.5170985 z"}),a.jsx("path",{className:"styled info",d:"M 9.7812231,5.9814554 H 7.5343168 V 3.7345497 c 0,-0.2675679 -0.1426852,-0.5148303 -0.3743998,-0.648616 -0.2317102,-0.1337804 -0.5173316,-0.1337804 -0.7490516,0 C 6.1791497,3.2197142 6.0364635,3.4669783 6.0364635,3.7345497 V 5.9814554 H 3.7895607 c -0.267568,0 -0.5148318,0.1426851 -0.6486164,0.3744009 -0.1337813,0.2317104 -0.1337813,0.5173316 0,0.7490509 0.1337792,0.2317158 0.3810441,0.3744001 0.6486164,0.3744001 h 2.2469028 v 2.2469063 c 0,0.2675679 0.1426862,0.5148294 0.3744019,0.6486154 0.2317104,0.133782 0.5173316,0.133782 0.7490516,0 C 7.3916316,10.24105 7.5343168,9.9937845 7.5343168,9.7262136 V 7.4793073 h 2.2469063 c 0.2675669,0 0.5148309,-0.1426843 0.6486159,-0.3744001 0.133782,-0.2317113 0.133782,-0.5173317 0,-0.7490509 C 10.296059,6.1241405 10.048794,5.9814554 9.7812231,5.9814554 Z"})]}),ay=e=>a.jsxs(V.SvgIcon,{...e,children:[a.jsx("path",{d:"M 12.427734 3 C 12.908883 3.5977372 13.285446 4.2743797 13.541016 5 L 19 5 L 19 14.298828 L 21 14.298828 L 21 3 L 12.427734 3 z M 3 12.617188 L 3 21 L 14.587891 21 L 14.587891 19 L 5 19 L 5 13.683594 C 4.2764611 13.442198 3.6010853 13.081758 3 12.617188 z"}),a.jsx("path",{className:"styled info",d:"M 22.132849,17.187826 H 17.41854 v 4.714309 h 4.714309 z"}),a.jsx("path",{className:"styled",d:"M 10.978454,2.6309839 C 10.257756,1.884659 9.3513608,1.3437235 8.3524299,1.0635859 7.3534474,0.78342298 6.2979022,0.77432955 5.2940356,1.0369696 4.2903709,1.2996971 3.3746562,1.8248773 2.640959,2.5584758 1.9072594,3.2920743 1.3821803,4.2077881 1.1194529,5.2115549 0.85682509,6.2153204 0.8659182,7.270865 1.1460764,8.2699466 1.4262371,9.2689297 1.9671485,10.175323 2.7134729,10.895971 3.4341706,11.642296 4.3405665,12.183232 5.339495,12.46337 6.3384787,12.743532 7.3940228,12.752626 8.3978893,12.48999 9.401554,12.227265 10.31727,11.702085 11.050967,10.968487 11.784669,10.234893 12.309747,9.3191777 12.572473,8.3154124 12.835101,7.311646 12.826007,6.2561004 12.54585,5.2570187 12.265694,4.258031 11.724782,3.3516358 10.978457,2.6309889 Z M 10.154347,10.071678 C 9.3898131,10.837091 8.3835927,11.313623 7.3071294,11.420288 6.2305424,11.526948 5.1503479,11.257069 4.2504908,10.656654 3.3506326,10.056224 2.6868002,9.1623531 2.3721166,8.1273235 2.0574379,7.0923441 2.1113431,5.980235 2.5246658,4.9805025 2.9378935,3.9808449 3.6850958,3.1552616 4.6387859,2.6446611 5.5924508,2.1340603 6.6936884,1.9698554 7.7547937,2.180153 8.815899,2.3904382 9.771346,2.9621988 10.458225,3.7978524 c 0.686828,0.8357531 1.062784,1.8837586 1.06366,2.9654555 0.002,0.6145097 -0.117709,1.2232568 -0.352557,1.7911976 -0.234746,0.5678411 -0.579786,1.0835274 -1.01521,1.5170985 z"}),a.jsx("path",{className:"styled info",d:"M 9.4260315,5.8230168 9.8837653,5.3652823 c 0.2615617,-0.2615626 0.2615617,-0.6539057 0,-0.9154683 L 9.4260315,3.9920795 c -0.2615623,-0.2615626 -0.6539063,-0.2615626 -0.9154686,0 L 8.0528281,4.449814 Z M 8.9682967,6.2807515 5.6987653,9.5502826 C 5.5679836,9.6810635 5.437202,9.7464544 5.2410305,9.7464544 h -0.784687 c -0.1961725,0 -0.3269531,-0.1307818 -0.3269531,-0.3269536 V 8.6348143 c 0,-0.1961717 0.065392,-0.3269536 0.1961715,-0.4577346 L 7.5950933,4.9075478 Z"})]}),sy=e=>a.jsxs(V.SvgIcon,{...e,children:[a.jsx("path",{d:"M 12.427734 3 C 12.908883 3.5977372 13.285446 4.2743797 13.541016 5 L 19 5 L 19 14.298828 L 21 14.298828 L 21 3 L 12.427734 3 z M 3 12.617188 L 3 21 L 14.587891 21 L 14.587891 19 L 5 19 L 5 13.683594 C 4.2764611 13.442198 3.6010853 13.081758 3 12.617188 z"}),a.jsx("path",{className:"styled info",d:"M 22.132849,17.187826 H 17.41854 v 4.714309 h 4.714309 z"}),a.jsx("path",{className:"styled",d:"M 10.978454,2.6309839 C 10.257756,1.884659 9.3513608,1.3437235 8.3524299,1.0635859 7.3534474,0.78342298 6.2979022,0.77432955 5.2940356,1.0369696 4.2903709,1.2996971 3.3746562,1.8248773 2.640959,2.5584758 1.9072594,3.2920743 1.3821803,4.2077881 1.1194529,5.2115549 0.85682509,6.2153204 0.8659182,7.270865 1.1460764,8.2699466 1.4262371,9.2689297 1.9671485,10.175323 2.7134729,10.895971 3.4341706,11.642296 4.3405665,12.183232 5.339495,12.46337 6.3384787,12.743532 7.3940228,12.752626 8.3978893,12.48999 9.401554,12.227265 10.31727,11.702085 11.050967,10.968487 11.784669,10.234893 12.309747,9.3191777 12.572473,8.3154124 12.835101,7.311646 12.826007,6.2561004 12.54585,5.2570187 12.265694,4.258031 11.724782,3.3516358 10.978457,2.6309889 Z M 10.154347,10.071678 C 9.3898131,10.837091 8.3835927,11.313623 7.3071294,11.420288 6.2305424,11.526948 5.1503479,11.257069 4.2504908,10.656654 3.3506326,10.056224 2.6868002,9.1623531 2.3721166,8.1273235 2.0574379,7.0923441 2.1113431,5.980235 2.5246658,4.9805025 2.9378935,3.9808449 3.6850958,3.1552616 4.6387859,2.6446611 5.5924508,2.1340603 6.6936884,1.9698554 7.7547937,2.180153 8.815899,2.3904382 9.771346,2.9621988 10.458225,3.7978524 c 0.686828,0.8357531 1.062784,1.8837586 1.06366,2.9654555 0.002,0.6145097 -0.117709,1.2232568 -0.352557,1.7911976 -0.234746,0.5678411 -0.579786,1.0835274 -1.01521,1.5170985 z"}),a.jsx("path",{className:"styled info",d:"m 9.8759095,8.5319992 -1.76852,-1.7685208 1.768519,-1.768519 C 10.086509,4.7843591 10.16882,4.4774348 10.091741,4.1897526 10.014661,3.902078 9.7898525,3.6772687 9.5021695,3.6001811 c -0.287678,-0.077085 -0.594604,0.00523 -0.805207,0.2158316 l -1.76852,1.7685197 -1.768518,-1.7685182 c -0.2106,-0.2106004 -0.517526,-0.2929129 -0.805207,-0.2158323 -0.287676,0.07708 -0.512486,0.3018891 -0.589572,0.5895714 -0.07708,0.2876781 0.0052,0.594603 0.215833,0.8052068 l 1.768518,1.7685183 -1.76852,1.7685198 c -0.210601,0.2106 -0.292912,0.517526 -0.215832,0.805208 0.07708,0.287677 0.301888,0.512487 0.589571,0.589572 0.287677,0.07708 0.594604,-0.0052 0.805207,-0.215833 l 1.768521,-1.768521 1.76852,1.768521 c 0.2106,0.210599 0.517525,0.2929128 0.805207,0.215833 0.287676,-0.07708 0.5124855,-0.301889 0.5895705,-0.589572 0.07708,-0.287677 -0.0052,-0.594605 -0.2158315,-0.805207 z"})]}),cy=e=>a.jsxs(V.SvgIcon,{...e,children:[a.jsx("path",{d:"M 19.818359 12.601562 L 17.876953 14.542969 L 17.876953 14.941406 L 17.876953 16.236328 L 17.876953 21.412109 L 13.181641 21.412109 L 8.875 21.412109 L 8.8164062 21.412109 L 8.8164062 21.416016 L 5.8417969 21.416016 L 5.8417969 16.240234 L 5.8417969 14.945312 L 5.8417969 14.634766 L 3.9003906 12.693359 L 3.9003906 21.416016 C 3.9003906 22.477247 4.7805669 23.357422 5.8417969 23.357422 L 13.181641 23.357422 L 13.181641 23.353516 L 17.876953 23.353516 C 18.93818 23.353516 19.818359 22.47334 19.818359 21.412109 L 19.818359 12.601562 z "}),a.jsx("path",{className:"styled info",d:"m 6.5400304,2.3536823 c 0.407733,-0.4077339 0.407733,-1.0682821 0,-1.47568634 -0.4074036,-0.40740418 -1.0682827,-0.40740418 -1.475687,0 z M 1.628074,5.7899809 0.89039543,5.0519753 c -0.40773302,0.4074008 -0.40773302,1.06828 0,1.4756843 z m 3.4363028,4.9118911 c 0.4074043,0.407734 1.0682826,0.407734 1.4756856,0 0.407734,-0.407405 0.407734,-1.0682838 0,-1.475687 z M 5.0643107,0.87796266 0.89023053,5.0520731 2.3659174,6.5277583 6.5399624,2.3536823 Z M 0.89023053,6.5277583 5.0643107,10.701806 6.5399964,9.2261186 2.3659509,5.0520413 Z M 17.377723,9.0938804 c -0.407402,0.4074032 -0.407402,1.0682816 0,1.4756866 0.407405,0.407734 1.068283,0.407734 1.475689,0 z M 22.28965,5.6575759 23.027656,6.395585 c 0.407734,-0.4074017 0.407734,-1.06828 0,-1.4756834 z M 18.853377,0.74565808 c -0.407733,-0.4077329 -1.068281,-0.4077329 -1.475686,0 -0.407403,0.40740532 -0.407403,1.06828332 0,1.47568742 z m 0,9.82384292 4.174049,-4.1740473 -1.475687,-1.4756852 -4.174081,4.1740791 z M 23.027426,4.9197685 18.853377,0.74565808 17.377691,2.2213455 21.551772,6.3954202 Z"}),a.jsx("path",{className:"styled info",d:"M 11.747147,15.560724 H 7.4303463 L 11.747147,9.0742171 V 13.39102 h 4.316803 l -4.316803,6.486504 z"})]}),dy=e=>a.jsxs(V.SvgIcon,{...e,children:[a.jsx("path",{d:"m 12.874943,4.312687 1.941407,1.941406 h 0.398437 1.294922 5.175781 v 4.695312 4.306641 0.05859 h 0.0039 v 2.974613 h -5.175775 -1.294922 -0.310546 l -1.941407,1.941406 h 8.722657 c 1.061231,0 1.941406,-0.880176 1.941406,-1.941406 v -7.339844 h -0.0039 V 6.254093 c 0,-1.061227 -0.880176,-1.941406 -1.941407,-1.941406 z"}),a.jsx("path",{className:"styled info",d:"m 2.6270626,17.591016 c -0.407734,-0.407733 -1.068282,-0.407733 -1.475686,0 -0.40740404,0.407403 -0.40740404,1.068282 0,1.475687 z m 3.436299,4.911956 -0.738006,0.737679 c 0.407401,0.407733 1.06828,0.407733 1.475685,0 z m 4.9118914,-3.436303 c 0.407734,-0.407404 0.407734,-1.068282 0,-1.475685 -0.407405,-0.407734 -1.0682841,-0.407734 -1.4756872,0 z m -9.8239094,6.6e-5 4.17411,4.17408 1.475685,-1.475686 -4.174076,-4.174045 z m 5.649795,4.17408 4.1740484,-4.17408 L 9.4994998,17.59105 5.3254216,21.765095 Z M 9.3672606,6.753323 c 0.4074043,0.407402 1.0682824,0.407402 1.4756874,0 0.407734,-0.407405 0.407734,-1.068283 0,-1.475689 z M 5.9309566,1.841396 6.6689656,1.1033901 c -0.407402,-0.40773402 -1.06828,-0.40773402 -1.475683,0 z m -4.911918,3.436273 c -0.40773308,0.407733 -0.40773308,1.068281 0,1.475686 0.407405,0.407403 1.068283,0.407403 1.475687,0 z m 9.8238434,0 L 6.6688346,1.1036201 5.1931496,2.579307 9.3672286,6.753388 Z M 5.1931486,1.1036201 1.0190386,5.277669 2.4947256,6.753355 6.6688006,2.579274 Z"}),a.jsx("path",{className:"styled info",d:"M 12.896987,13.468751 H 8.5801856 L 12.896987,6.982244 v 4.316803 h 4.316803 l -4.316803,6.486504 z"})]}),uy=e=>a.jsxs(V.SvgIcon,{...e,children:[a.jsx("path",{className:"styled info",d:"M 11.845703 5.453125 L 11.845703 11.003906 C 11.845703 11.603796 11.357701 12.089844 10.757812 12.089844 L 5.3105469 12.089844 L 5.3105469 17.640625 C 5.3105469 18.173432 5.6950678 18.614569 6.2011719 18.707031 L 11.947266 18.707031 L 11.947266 13.175781 C 11.947266 12.575891 12.435268 12.089844 13.035156 12.089844 L 18.578125 12.089844 L 18.578125 6.4550781 C 18.534873 5.8982245 18.07655 5.4580759 17.509766 5.453125 L 11.845703 5.453125 z "}),a.jsx("path",{d:"m 2.0692138,1.2281804 c -0.5998884,0 -1.08619471,0.4863059 -1.08619471,1.0861944 v 8.6895562 c 0,0.59989 0.48630631,1.086195 1.08619471,1.086195 H 5.0788782 V 9.9177373 H 3.1554085 V 3.4005699 H 9.6725771 V 5.17365 H 11.844966 V 2.3143748 c 0,-0.5998885 -0.486307,-1.0861944 -1.086194,-1.0861944 z m 5.8896831,-3e-7 V 3.4005699 H 9.6725771 V 9.9177373 H 3.1554085 V 7.925909 H 0.98301909 v 3.078022 c 0,0.59989 0.48630631,1.086195 1.08619471,1.086195 h 8.6895582 c 0.599887,0 1.086194,-0.486305 1.086194,-1.086195 V 2.3143748 c 0,-0.5998885 -0.486307,-1.0861947 -1.086194,-1.0861947 z"}),a.jsx("path",{d:"m 13.034312,12.089885 c -0.599888,0 -1.086194,0.486305 -1.086194,1.086195 v 8.689556 c 0,0.59989 0.486306,1.086195 1.086194,1.086195 h 3.009665 v -2.172389 h -1.923471 v -6.517168 h 6.517169 v 1.773081 h 2.172389 V 13.17608 c 0,-0.59989 -0.486306,-1.086195 -1.086193,-1.086195 z m 5.889682,0 v 2.172389 h 1.713681 v 6.517168 h -6.517169 v -1.991829 h -2.172388 v 3.078023 c 0,0.59989 0.486306,1.086195 1.086194,1.086195 h 8.689559 c 0.599887,0 1.086194,-0.486305 1.086194,-1.086195 v -8.689557 c 0,-0.599889 -0.486307,-1.086194 -1.086194,-1.086194 z"})]}),hy=e=>a.jsxs(V.SvgIcon,{...e,children:[a.jsx("path",{d:"m 2.0692138,1.2281804 c -0.5998884,0 -1.08619471,0.4863059 -1.08619471,1.0861944 v 8.6895562 c 0,0.59989 0.48630631,1.086195 1.08619471,1.086195 H 5.0788782 V 9.9177373 H 3.1554085 V 3.4005699 H 9.6725771 V 5.17365 H 11.844966 V 2.3143748 c 0,-0.5998885 -0.486307,-1.0861944 -1.086194,-1.0861944 z m 5.8896831,-3e-7 V 3.4005699 H 9.6725771 V 9.9177373 H 3.1554085 V 7.925909 H 0.98301909 v 3.078022 c 0,0.59989 0.48630631,1.086195 1.08619471,1.086195 h 8.6895582 c 0.599887,0 1.086194,-0.486305 1.086194,-1.086195 V 2.3143748 c 0,-0.5998885 -0.486307,-1.0861947 -1.086194,-1.0861947 z"}),a.jsx("path",{d:"m 13.034312,12.089885 c -0.599888,0 -1.086194,0.486305 -1.086194,1.086195 v 8.689556 c 0,0.59989 0.486306,1.086195 1.086194,1.086195 h 3.009665 v -2.172389 h -1.923471 v -6.517168 h 6.517169 v 1.773081 h 2.172389 V 13.17608 c 0,-0.59989 -0.486306,-1.086195 -1.086193,-1.086195 z m 5.889682,0 v 2.172389 h 1.713681 v 6.517168 h -6.517169 v -1.991829 h -2.172388 v 3.078023 c 0,0.59989 0.486306,1.086195 1.086194,1.086195 h 8.689559 c 0.599887,0 1.086194,-0.486305 1.086194,-1.086195 v -8.689557 c 0,-0.599889 -0.486307,-1.086194 -1.086194,-1.086194 z"}),a.jsx("path",{className:"styled info",d:"M 6.3870283,5.4529718 C 5.7915885,5.4581562 5.3102618,5.9415596 5.3102618,6.5382239 v 3.3792726 h -0.00895 v 2.1723885 h 0.00895 v 5.55166 c 0,0.532807 0.3839722,0.973936 0.8900763,1.066398 H 17.695427 c 0.478802,-0.08745 0.843595,-0.488296 0.88206,-0.982479 V 6.4543075 C 18.534235,5.8974539 18.075991,5.4579227 17.509207,5.4529718 Z"})]}),py=e=>a.jsxs(V.SvgIcon,{...e,children:[a.jsx("path",{d:"m 19.121621,6.5507223 v 2.638672 h 0.386719 0.701171 v 0.695313 2.6386707 4.582031 2.640625 0.693359 H 19.50834 16.869668 12.291543 9.6528698 8.9536488 v -0.693359 -0.636719 h -2.640625 v 2.650391 c 0,0.04555 0.00331,0.09041 0.00781,0.134765 0.0045,0.04436 0.010741,0.08791 0.019531,0.13086 0.01758,0.0859 0.042792,0.169117 0.076172,0.248047 0.06677,0.157862 0.163813,0.298578 0.283203,0.417968 0.02985,0.02985 0.06117,0.05905 0.09375,0.08594 0.06517,0.05378 0.136153,0.101952 0.210938,0.142578 0.03739,0.02031 0.07577,0.038 0.115234,0.05469 0.03947,0.01669 0.07978,0.03207 0.121094,0.04492 0.04132,0.01285 0.084,0.02441 0.126953,0.0332 0.0859,0.01758 0.174533,0.02539 0.265625,0.02539 h 3.6562532 6.90039 3.337891 c 0.728732,0 1.320312,-0.589625 1.320312,-1.318359 V 18.425721 14.677675 11.34369 11.203065 7.8690823 c 0,-0.728735 -0.59158,-1.31836 -1.320312,-1.31836 z"}),a.jsx("path",{className:"styled info",d:"m 2.7801023,1.3044689 c -0.752638,0.0065 -1.361038,0.617579 -1.361038,1.371768 v 4.271422 h -0.01138 v 2.745913 h 0.01138 v 7.0173311 c 0,0.673471 0.485343,1.23106 1.125061,1.347933 H 17.073983 c 0.605208,-0.110538 1.066309,-0.61721 1.114929,-1.241859 V 2.5701669 c -0.05467,-0.703869 -0.633894,-1.25944 -1.350312,-1.265698 z"})]}),fy=e=>a.jsxs(V.SvgIcon,{...e,children:[a.jsx("path",{d:"m 7.7499822,5.7341962 c -0.728735,0 -1.320313,0.589625 -1.320313,1.31836 v 3.3339868 3.482422 3.333984 0.40625 3.333984 c 0,0.04555 0.0033,0.09041 0.0078,0.134766 0.0045,0.04436 0.01074,0.08791 0.01953,0.13086 0.01758,0.0859 0.04279,0.169116 0.07617,0.248046 0.06677,0.157862 0.163813,0.298579 0.283203,0.417969 0.02985,0.02985 0.06117,0.05905 0.09375,0.08594 0.06517,0.05378 0.136153,0.101952 0.210938,0.142578 0.03739,0.02031 0.07577,0.038 0.115234,0.05469 0.03947,0.01669 0.07978,0.03207 0.121094,0.04492 0.04132,0.01285 0.084,0.02441 0.126953,0.0332 0.0859,0.01758 0.174533,0.02539 0.265625,0.02539 h 3.6562498 6.900391 3.33789 c 0.728732,0 1.320313,-0.589626 1.320313,-1.31836 V 17.609198 13.861151 10.527167 10.386542 7.0525552 c 0,-0.728735 -0.591581,-1.31836 -1.320313,-1.31836 h -3.33789 z m 1.320313,2.638672 h 0.699218 2.6386718 4.578125 2.638672 0.701172 v 0.695312 2.6386748 4.582032 2.640625 0.693359 H 19.624982 16.98631 12.408185 9.7695132 9.0702952 v -0.693359 -2.640625 -2.419922 -2.16211 -2.6386748 z"}),a.jsx("path",{className:"styled info",d:"M 2.884418,1.1177875 C 2.13178,1.1242875 1.52309,1.7366454 1.52309,2.4908334 v 4.271485 H 1.51332 v 2.746094 h 0.00977 v 7.0175756 c 0,0.673471 0.487235,1.230784 1.126953,1.347656 h 2.603516 v -5.099609 h -0.00977 v -2.746092 h 0.00977 V 5.7564594 c 0,-0.75419 0.60869,-1.364594 1.361328,-1.371094 H 18.294575 V 2.3834124 C 18.239905,1.6795434 17.659431,1.1240455 16.943013,1.1177875 Z"})]}),A5=e=>a.jsxs(V.SvgIcon,{...e,children:[a.jsx("path",{d:"M 23.999882,4.3309515 C 23.997503,4.0907208 23.966582,3.8338404 23.883334,3.6055023 23.759651,3.2748878 23.626454,3.0441711 23.400494,2.7730196 23.115071,2.4305125 22.65126,2.1522254 22.213612,2.0642201 22.00668,2.0237852 21.799749,2 21.58806,2 21.326423,2 21.064785,2 20.803148,2 20.306037,2 19.811304,2 19.314193,2 18.64345,2 17.972707,2 17.301964,2 16.512294,2 15.722625,2 14.930577,2 14.076688,2 13.222798,2 12.368909,2 11.503127,2 10.637345,2 9.771563,2 8.9581085,2 8.144654,2 7.3311994,2 6.6223999,2 5.9136003,2 5.2024222,2 4.6529837,2 4.1035451,2 3.5541065,2 3.2211134,2 2.8881203,2 2.5551273,2 2.4861503,2 2.4195515,2 2.3505744,2 1.7250231,2.0023785 1.0947148,2.2473663 0.66182375,2.7040425 0.23368979,3.1535831 0.00297315,3.7386996 5.9463e-4,4.3594938 c 0,0.092762 0,0.1879032 0,0.2806656 0,0.4352695 0,0.8705391 0,1.3058086 0,0.6802573 0,1.3605146 0,2.0431504 0,0.8277256 0,1.6530726 0,2.4807986 0,0.863403 0,1.724428 0,2.587832 0,0.799183 0,1.598367 0,2.395171 0,0.632687 0,1.262996 0,1.895682 0,0.361536 0,0.723071 0,1.084606 0,0.06898 -0.00237852,0.140333 0.00237852,0.20931 0.03329931,0.587495 0.24498777,1.101256 0.6374439,1.536526 0.0451919,0.04995 0.0927624,0.09514 0.14508984,0.135575 0.12368314,0.0999 0.25212331,0.20931 0.39483461,0.287802 0.2045529,0.114169 0.4376481,0.211688 0.6707432,0.249744 0.3044509,0.04995 0.5708453,0.05471 0.8729176,0.05471 0.3900776,0 0.7801552,0 1.1678543,0 0.592252,0 1.184504,0 1.776756,0 0.7397203,0 1.4794406,0 2.2167825,0 0.8348612,0 1.6673439,0 2.5022049,0 0.865782,0 1.729186,0 2.594968,0 0.844375,0 1.68875,0 2.530747,0 0.765884,0 1.534147,0 2.300031,0 0.632687,0 1.267752,0 1.900439,0 0.447162,0 0.891946,0 1.339108,0 0.197417,0 0.397213,0 0.59463,0 0.176011,0 0.356779,-0.02854 0.528032,-0.05946 0.22596,-0.04044 0.454298,-0.137954 0.651715,-0.252123 0.135576,-0.07849 0.261638,-0.183146 0.380564,-0.280666 0.05471,-0.04519 0.109412,-0.09276 0.156982,-0.147468 0.404349,-0.461433 0.62793,-1.008493 0.630309,-1.626909 0,-0.278287 0,-0.558953 0,-0.83724 0,-0.575602 0,-1.148826 0,-1.724428 0,-0.770641 0,-1.541282 0,-2.311924 0,-0.856268 0,-1.712535 0,-2.568803 0,-0.841997 0,-1.683994 0,-2.528369 0,-0.7254495 0,-1.4508987 0,-2.1763479 0,-0.5066252 0,-1.0132504 0,-1.5198755 0.0048,-0.1807677 0.0048,-0.3615354 0.0048,-0.5423031 0,-0.3044508 -0.133198,-0.6255512 -0.347265,-0.8419967 -0.206931,-0.2069315 -0.544681,-0.3615354 -0.841996,-0.3472643 -0.30683,0.014271 -0.625552,0.1141691 -0.841997,0.3472643 -0.214067,0.2330951 -0.347264,0.5185177 -0.347264,0.8419967 0,0.4804615 0,0.9585444 0,1.4390059 0,1.1416905 0,2.2833806 0,3.4250716 0,1.379543 0,2.761464 0,4.141007 0,1.184504 0,2.369008 0,3.553512 0,0.556574 0.0024,1.115527 0,1.672101 0,0.05946 -0.0048,0.118926 -0.01189,0.178389 0.01427,-0.104655 0.02854,-0.211689 0.04281,-0.316344 -0.01427,0.09514 -0.04043,0.185525 -0.07611,0.27353 0.04044,-0.09514 0.08087,-0.190281 0.118926,-0.283044 -0.04044,0.09514 -0.09276,0.183146 -0.156983,0.266395 0.06184,-0.08087 0.123683,-0.159361 0.185525,-0.240231 -0.05946,0.07136 -0.123683,0.137954 -0.195039,0.195039 0.08087,-0.06184 0.159361,-0.123683 0.240231,-0.185525 -0.08325,0.06422 -0.171254,0.114169 -0.266394,0.156983 0.09514,-0.04043 0.190281,-0.08087 0.283044,-0.118927 -0.08801,0.03568 -0.180768,0.05946 -0.27353,0.07611 0.104655,-0.01427 0.211688,-0.02854 0.316343,-0.04281 -0.211688,0.02616 -0.432891,0.01189 -0.646958,0.01189 -0.463812,0 -0.927624,0 -1.393814,0 -0.694528,0 -1.389057,0 -2.083585,0 -0.85389,0 -1.710157,0 -2.564047,0 -0.934759,0 -1.86714,0 -2.801899,0 -0.941894,0 -1.886168,0 -2.8280624,0 -0.8776746,0 -1.7553493,0 -2.6330239,0 -0.7397203,0 -1.4794407,0 -2.219161,0 -0.5280319,0 -1.0560638,0 -1.5840956,0 -0.2426093,0 -0.4852185,0 -0.7254493,0 -0.061841,0 -0.1236831,-0.0048 -0.1855247,-0.01189 0.104655,0.01427 0.2116885,0.02854 0.3163435,0.04281 -0.095141,-0.01427 -0.1855248,-0.04043 -0.2735301,-0.07611 0.095141,0.04043 0.1902818,0.08087 0.2830441,0.118927 -0.095141,-0.04043 -0.1831462,-0.09276 -0.2663944,-0.156983 0.08087,0.06184 0.159361,0.123683 0.2402307,0.185525 -0.071356,-0.05946 -0.1379543,-0.123683 -0.1950388,-0.195039 0.061842,0.08087 0.1236831,0.159361 0.1855247,0.240231 -0.06422,-0.08325 -0.114169,-0.171254 -0.1569824,-0.266395 0.040435,0.09514 0.08087,0.190282 0.1189261,0.283044 -0.035678,-0.088 -0.059463,-0.180767 -0.076113,-0.27353 0.014271,0.104655 0.028542,0.211689 0.042813,0.316344 -0.021407,-0.168875 -0.011893,-0.342507 -0.011893,-0.513761 0,-0.342507 0,-0.687393 0,-1.0299 0,-1.139312 0,-2.278624 0,-3.417936 0,-1.386678 0,-2.775735 0,-4.162414 0,-1.194018 0,-2.3904142 0,-3.5844322 0,-0.5637097 -0.00238,-1.1250409 0,-1.6887506 0,-0.059463 0.00476,-0.1189261 0.011893,-0.1783892 -0.014271,0.104655 -0.028542,0.2116885 -0.042813,0.3163434 0.014271,-0.095141 0.040435,-0.1855247 0.076113,-0.27353 -0.040435,0.095141 -0.08087,0.1902818 -0.1189261,0.2830441 0.040435,-0.095141 0.092762,-0.1831462 0.1569824,-0.2663944 -0.061842,0.08087 -0.1236831,0.1593609 -0.1855247,0.2402307 0.059463,-0.071356 0.1236831,-0.1379543 0.1950388,-0.1950388 -0.08087,0.061841 -0.159361,0.1236831 -0.2402307,0.1855247 0.083248,-0.06422 0.1712536,-0.1141691 0.2663944,-0.1569825 -0.095141,0.040435 -0.1902817,0.08087 -0.2830441,0.1189261 0.088005,-0.035678 0.1807677,-0.059463 0.2735301,-0.076113 -0.104655,0.014271 -0.2116885,0.028542 -0.3163435,0.042813 0.2116885,-0.026164 0.432891,-0.011893 0.646958,-0.011893 0.4638118,0 0.9276236,0 1.3938139,0 0.6945284,0 1.3890569,0 2.0835853,0 0.8538894,0 1.7101573,0 2.5640467,0 0.9347591,0 1.86714,0 2.801899,0 0.941895,0 1.886168,0 2.828063,0 0.877674,0 1.755349,0 2.633023,0 0.739721,0 1.479441,0 2.219161,0 0.528032,0 1.056064,0 1.584096,0 0.242609,0 0.485219,0 0.725449,0 0.06184,0 0.123683,0.00476 0.185525,0.011893 -0.104655,-0.014271 -0.211688,-0.028542 -0.316343,-0.042813 0.09514,0.014271 0.185524,0.040435 0.27353,0.076113 -0.09514,-0.040435 -0.190282,-0.08087 -0.283044,-0.1189261 0.09514,0.040435 0.183146,0.092762 0.266394,0.1569825 -0.08087,-0.061842 -0.159361,-0.1236832 -0.240231,-0.1855247 0.07136,0.059463 0.137955,0.1236831 0.195039,0.1950388 -0.06184,-0.08087 -0.123683,-0.159361 -0.185525,-0.2402307 0.06422,0.083248 0.114169,0.1712535 0.156983,0.2663944 -0.04044,-0.095141 -0.08087,-0.1902817 -0.118926,-0.2830441 0.03568,0.088005 0.05946,0.1807677 0.07611,0.27353 -0.01427,-0.1046549 -0.02854,-0.2116884 -0.04281,-0.3163434 0.0071,0.054706 0.01189,0.1070335 0.01189,0.1617395 0.0048,0.3068293 0.130818,0.6231728 0.347264,0.8419968 0.206931,0.2069314 0.544681,0.3615353 0.841997,0.3472642 0.306829,-0.014271 0.625551,-0.1141691 0.841996,-0.3472642 0.211689,-0.2259596 0.352022,-0.5161393 0.347265,-0.8372398 z"}),a.jsx("path",{className:"styled info",d:"m 6.1847518,10.990813 c 0,-1.170233 0,-2.338087 0,-3.5083198 0,-0.1617395 0,-0.3258575 0,-0.487597 C 5.7875387,7.3921094 5.392704,7.786944 4.9954908,8.184157 c 1.1726114,0 2.3476012,0 3.5202126,0 0.1664965,0 0.3329931,0 0.4994896,0 0.3044508,0 0.6255513,-0.133197 0.8419968,-0.347264 C 10.064121,7.6299616 10.218725,7.2922114 10.204454,6.9948962 10.190183,6.6880668 10.090285,6.3693449 9.8571898,6.1528994 9.6240946,5.9388324 9.338672,5.8056352 9.015193,5.8056352 c -1.1726113,0 -2.3476012,0 -3.5202126,0 -0.1664965,0 -0.332993,0 -0.4994896,0 -0.6422009,0 -1.189261,0.5446815 -1.189261,1.189261 0,1.1702328 0,2.3380868 0,3.5083198 0,0.16174 0,0.325858 0,0.487597 0,0.304451 0.1331973,0.625551 0.3472642,0.841997 0.2069315,0.206931 0.5446816,0.361535 0.8419968,0.347264 0.3068294,-0.01427 0.6255513,-0.114169 0.8419968,-0.347264 0.2116885,-0.233095 0.3472642,-0.520896 0.3472642,-0.841997 z"}),a.jsx("path",{className:"styled info",d:"m 17.815724,11.918437 c 0,1.170233 0,2.338087 0,3.50832 0,0.161739 0,0.325857 0,0.487597 0.397214,-0.397213 0.792048,-0.792048 1.189261,-1.189261 -1.172611,0 -2.347601,0 -3.520212,0 -0.166497,0 -0.332993,0 -0.49949,0 -0.304451,0 -0.625551,0.133197 -0.841997,0.347264 -0.206931,0.206931 -0.361535,0.544681 -0.347264,0.841997 0.01427,0.306829 0.114169,0.625551 0.347264,0.841996 0.233096,0.214067 0.518518,0.347265 0.841997,0.347265 1.172612,0 2.347601,0 3.520213,0 0.166496,0 0.332993,0 0.499489,0 0.642201,0 1.189261,-0.544682 1.189261,-1.189261 0,-1.170233 0,-2.338087 0,-3.50832 0,-0.16174 0,-0.325858 0,-0.487597 0,-0.304451 -0.133197,-0.625552 -0.347264,-0.841997 -0.206931,-0.206931 -0.544681,-0.361535 -0.841997,-0.347264 -0.306829,0.01427 -0.625551,0.114169 -0.841996,0.347264 -0.211689,0.233095 -0.347265,0.520896 -0.347265,0.841997 z"})]}),F5=e=>a.jsxs(V.SvgIcon,{...e,children:[a.jsx("path",{d:"m 2.2645807,10.897934 c 0,0.414 -0.336,0.75 -0.75,0.75 -0.414,0 -0.74999998,-0.336 -0.74999998,-0.75 V 3.3979338 c 0,-1.519 1.23099998,-2.74999998 2.74999998,-2.74999998 H 20.514581 c 1.519,0 2.75,1.23099998 2.75,2.74999998 V 20.397934 c 0,1.519 -1.231,2.75 -2.75,2.75 h -7.5 c -0.414,0 -0.75,-0.336 -0.75,-0.75 0,-0.414 0.336,-0.75 0.75,-0.75 h 7.5 c 0.69,0 1.25,-0.56 1.25,-1.25 V 3.3979338 c 0,-0.69 -0.56,-1.25 -1.25,-1.25 H 3.5145807 c -0.69,0 -1.25,0.56 -1.25,1.25 z"}),a.jsx("path",{d:"m 8.5145807,12.647934 c 0.729,0 1.429,0.29 1.9450003,0.805 0.515,0.516 0.805,1.216 0.805,1.945 v 5 c 0,0.729 -0.29,1.429 -0.805,1.945 -0.5160003,0.515 -1.2160003,0.805 -1.9450003,0.805 h -5 c -0.729,0 -1.429,-0.29 -1.945,-0.805 -0.515,-0.516 -0.80499998,-1.216 -0.80499998,-1.945 v -5 c 0,-0.729 0.28999998,-1.429 0.80499998,-1.945 0.516,-0.515 1.216,-0.805 1.945,-0.805 z m 0,1.5 h -5 c -0.332,0 -0.649,0.132 -0.884,0.366 -0.234,0.235 -0.366,0.552 -0.366,0.884 v 5 c 0,0.332 0.132,0.649 0.366,0.884 0.235,0.234 0.552,0.366 0.884,0.366 h 5 c 0.332,0 0.649,-0.132 0.884,-0.366 0.234,-0.235 0.366,-0.552 0.366,-0.884 v -5 c 0,-0.332 -0.132,-0.649 -0.366,-0.884 -0.235,-0.234 -0.552,-0.366 -0.884,-0.366 z"}),a.jsx("path",{className:"styled info",d:"m 12.544581,12.427934 c -0.292,0.293 -0.768,0.293 -1.06,0 -0.293,-0.292 -0.293,-0.768 0,-1.06 l 5,-5.0000002 c 0.292,-0.293 0.768,-0.293 1.06,0 0.293,0.292 0.293,0.768 0,1.06 z"}),a.jsx("path",{className:"styled info",d:"m 13.514581,7.1479338 c -0.414,0 -0.75,-0.336 -0.75,-0.75 0,-0.414 0.336,-0.75 0.75,-0.75 h 4 c 0.414,0 0.75,0.336 0.75,0.75 v 4.0000002 c 0,0.414 -0.336,0.75 -0.75,0.75 -0.414,0 -0.75,-0.336 -0.75,-0.75 V 7.1479338 Z"})]}),z5=e=>a.jsxs(V.SvgIcon,{...e,children:[a.jsx("path",{d:"m 21.447994,4.4312275 c 0.607513,0 1.1,0.4924868 1.1,1.1 v 3.6666666 c 0,0.6075131 -0.492487,1.0999999 -1.1,1.0999999 H 6.5368835 c -0.6075131,0 -1.0999999,-0.4924868 -1.0999999,-1.0999999 V 5.5312275 c 0,-0.6075132 0.4924868,-1.1 1.0999999,-1.1 z"}),a.jsx("path",{d:"m 16.559105,13.964561 c 0.607513,0 1.1,0.492487 1.1,1.1 v 3.666666 c 0,0.607513 -0.492487,1.1 -1.1,1.1 H 6.5368835 c -0.6075131,0 -1.0999999,-0.492487 -1.0999999,-1.1 v -3.666666 c 0,-0.607513 0.4924868,-1.1 1.0999999,-1.1 z"}),a.jsx("path",{className:"styled info",d:"m 2.1145803,1.1312275 c 0.6075132,0 1.1,0.4924868 1.1,1.1 V 22.031227 c 0,0.607513 -0.4924868,1.1 -1.1,1.1 -0.6075132,0 -1.0999999,-0.492487 -1.0999999,-1.1 V 2.2312275 c 0,-0.6075132 0.4924867,-1.1 1.0999999,-1.1 z"})]}),my=e=>a.jsxs(V.SvgIcon,{...e,children:[a.jsx("path",{d:"m 2.12113,4.6308594 c -0.607513,0 -1.1015632,0.4920964 -1.1015632,1.0996094 v 3.6660156 c 0,0.6075126 0.4940502,1.0996096 1.1015632,1.0996096 H 6.529333 10.67972 V 4.6308594 H 6.529333 Z m 10.757808,0 v 5.8652346 h 4.152344 4.408203 c 0.607513,0 1.101563,-0.492097 1.101563,-1.0996096 V 5.7304688 c 0,-0.607513 -0.49405,-1.0996094 -1.101563,-1.0996094 h -4.408203 z"}),a.jsx("path",{d:"m 3.5654659,14.283049 c -0.607513,0 -1.101563,0.492097 -1.101563,1.09961 v 3.666015 c 0,0.607513 0.49405,1.101563 1.101563,1.101563 H 9.9736685 10.680695 V 14.283049 H 9.9736685 Z m 9.3144491,0 v 5.867188 h 0.707031 6.408204 c 0.607513,0 1.101562,-0.49405 1.101562,-1.101563 v -3.666015 c 0,-0.607513 -0.494049,-1.09961 -1.101562,-1.09961 h -6.408204 z"}),a.jsx("path",{className:"styled info",d:"m 11.780306,1.0145804 c -0.607513,0 -1.1,0.492487 -1.1,1.1 V 21.91458 c 0,0.607513 0.492487,1.1 1.1,1.1 0.607513,0 1.1,-0.492487 1.1,-1.1 V 2.1145804 c 0,-0.607513 -0.492487,-1.1 -1.1,-1.1 z"})]}),gy=e=>a.jsxs(V.SvgIcon,{...e,children:[a.jsx("path",{d:"m 2.406197,4.3145814 c -0.607513,0 -1.1,0.492486 -1.1,1.099999 v 3.666667 c 0,0.607513 0.492487,1.0999996 1.1,1.0999996 h 14.911111 c 0.607513,0 1.099999,-0.4924866 1.099999,-1.0999996 v -3.666667 c 0,-0.607513 -0.492486,-1.099999 -1.099999,-1.099999 z"}),a.jsx("path",{d:"m 7.295086,13.847914 c -0.607513,0 -1.1,0.492487 -1.1,1.1 v 3.666666 c 0,0.607513 0.492487,1.1 1.1,1.1 h 10.022222 c 0.607513,0 1.099999,-0.492487 1.099999,-1.1 v -3.666666 c 0,-0.607513 -0.492486,-1.1 -1.099999,-1.1 z"}),a.jsx("path",{className:"styled info",d:"m 21.739611,1.0145804 c -0.607513,0 -1.1,0.492487 -1.1,1.1 V 21.91458 c 0,0.607513 0.492487,1.1 1.1,1.1 0.607513,0 1.1,-0.492487 1.1,-1.1 V 2.1145804 c 0,-0.607513 -0.492487,-1.1 -1.1,-1.1 z"})]}),xy=e=>a.jsxs(V.SvgIcon,{...e,children:[a.jsx("path",{d:"m 9.121447,5.9691985 c 0.607513,0 1.1,0.492487 1.1,1.1 V 17.091421 c 0,0.607513 -0.492487,1.1 -1.1,1.1 H 5.45478 c -0.607513,0 -1.1,-0.492487 -1.1,-1.1 V 7.0691985 c 0,-0.607513 0.492487,-1.1 1.1,-1.1 z"}),a.jsx("path",{d:"m 18.65478,5.9691985 c 0.607513,0 1.1,0.492487 1.1,1.1 V 21.98031 c 0,0.607513 -0.492487,1.1 -1.1,1.1 h -3.666667 c -0.607513,0 -1.1,-0.492487 -1.1,-1.1 V 7.0691985 c 0,-0.607513 0.492487,-1.1 1.1,-1.1 z"}),a.jsx("path",{className:"styled info",d:"m 21.95478,1.0803095 c 0.607513,0 1.1,0.4924869 1.1,1.1 0,0.6075131 -0.492487,1.1 -1.1,1.1 h -19.8 c -0.607513,0 -1.1,-0.4924869 -1.1,-1.1 0,-0.6075131 0.492487,-1.1 1.1,-1.1 z"})]}),yy=e=>a.jsxs(V.SvgIcon,{...e,children:[a.jsx("path",{d:"m 10.501613,3.8822204 c 0,-0.607513 -0.492094,-1.101563 -1.099607,-1.101563 H 5.735991 c -0.607513,0 -1.101563,0.49405 -1.101563,1.101563 v 6.4082026 0.707026 h 5.867185 v -0.707026 z m 0,9.3144486 H 4.634428 v 0.707031 6.408204 c 0,0.607513 0.49405,1.101562 1.101563,1.101562 h 3.666015 c 0.607513,0 1.099607,-0.494049 1.099607,-1.101562 V 13.9037 Z"}),a.jsx("path",{d:"m 19.32899,2.4378845 c 0,-0.607513 -0.492097,-1.1015632 -1.09961,-1.1015632 h -3.666015 c -0.607513,0 -1.09961,0.4940502 -1.09961,1.1015632 v 4.408203 4.1503865 H 19.32899 V 6.8460875 Z m 0,10.7578075 h -5.865235 v 4.152344 4.408203 c 0,0.607513 0.492097,1.101563 1.09961,1.101563 h 3.666015 c 0.607513,0 1.09961,-0.49405 1.09961,-1.101563 v -4.408203 z"}),a.jsx("path",{className:"styled info",d:"m 22.945269,12.09706 c 0,-0.607513 -0.492487,-1.1 -1.1,-1.1 H 2.04527 c -0.607513,0 -1.10000006,0.492487 -1.10000006,1.1 0,0.607513 0.49248706,1.1 1.10000006,1.1 h 19.799999 c 0.607513,0 1.1,-0.492487 1.1,-1.1 z"})]}),by=e=>a.jsxs(V.SvgIcon,{...e,children:[a.jsx("path",{d:"m 5.45478,18.191421 c -0.607513,0 -1.1,-0.492487 -1.1,-1.099999 V 2.18031 c 0,-0.607513 0.492487,-1.1 1.1,-1.1 h 3.666667 c 0.607513,0 1.1,0.492487 1.1,1.1 v 14.911112 c 0,0.607512 -0.492487,1.1 -1.1,1.1 z"}),a.jsx("path",{d:"m 14.988113,18.191421 c -0.607513,0 -1.1,-0.492487 -1.1,-1.099999 V 7.069199 c 0,-0.607513 0.492487,-1.1 1.1,-1.1 h 3.666667 c 0.607513,0 1.1,0.492487 1.1,1.1 v 10.022223 c 0,0.607512 -0.492487,1.1 -1.1,1.1 z"}),a.jsx("path",{className:"styled info",d:"m 2.15478,23.080311 c -0.607513,0 -1.1,-0.492487 -1.1,-1.1 0,-0.607514 0.492487,-1.100001 1.1,-1.100001 h 19.8 c 0.607513,0 1.1,0.492487 1.1,1.100001 0,0.607513 -0.492487,1.1 -1.1,1.1 z"})]}),vy=e=>a.jsxs(V.SvgIcon,{...e,children:[a.jsx("path",{d:"m 13.96456,3.575672 c 0.607513,0 1.1,0.492486 1.1,1.1 v 14.911112 c 0,0.607513 -0.492487,1.1 -1.1,1.1 h -3.666666 c -0.6075126,0 -1.0999994,-0.492487 -1.0999994,-1.1 V 4.675672 c 0,-0.607514 0.4924868,-1.1 1.0999994,-1.1 z"}),a.jsx("path",{className:"styled info",d:"m 2.2312276,1.1312271 c 0.607513,0 1.1,0.4924869 1.1,1.0999999 v 19.800001 c 0,0.607513 -0.492487,1.1 -1.1,1.1 -0.607513,0 -1.1,-0.492487 -1.1,-1.1 V 2.231227 c 0,-0.607513 0.492487,-1.0999999 1.1,-1.0999999 z"}),a.jsx("path",{className:"styled info",d:"m 22.031227,1.1312271 c 0.607513,0 1.1,0.4924869 1.1,1.0999999 v 19.800001 c 0,0.607513 -0.492487,1.1 -1.1,1.1 -0.607513,0 -1.1,-0.492487 -1.1,-1.1 V 2.231227 c 0,-0.607513 0.492487,-1.0999999 1.1,-1.0999999 z"})]}),wy=e=>a.jsxs(V.SvgIcon,{...e,children:[a.jsx("path",{d:"m 20.686783,13.964561 c 0,0.607513 -0.492486,1.1 -1.1,1.1 H 4.675671 c -0.607513,0 -1.1,-0.492487 -1.1,-1.1 v -3.666666 c 0,-0.6075126 0.492487,-1.0999994 1.1,-1.0999994 h 14.911112 c 0.607514,0 1.1,0.4924868 1.1,1.0999994 z"}),a.jsx("path",{className:"styled info",d:"m 23.131228,2.2312286 c 0,0.607513 -0.492487,1.1 -1.1,1.1 H 2.231227 c -0.607513,0 -1.1,-0.492487 -1.1,-1.1 0,-0.607513 0.492487,-1.1 1.1,-1.1 h 19.800001 c 0.607513,0 1.1,0.492487 1.1,1.1 z"}),a.jsx("path",{className:"styled info",d:"m 23.131228,22.031228 c 0,0.607513 -0.492487,1.1 -1.1,1.1 H 2.231227 c -0.607513,0 -1.1,-0.492487 -1.1,-1.1 0,-0.607513 0.492487,-1.1 1.1,-1.1 h 19.800001 c 0.607513,0 1.1,0.492487 1.1,1.1 z"})]}),Sy=e=>a.jsxs(V.SvgIcon,{...e,children:[a.jsx("path",{d:"M 7.4442836,6.1414523 C 7.1776305,5.8729824 6.7435071,5.8729824 6.4750135,6.1396336 L 1.3183252,11.276286 C 1.0553061,11.538395 1.0489458,11.9625 1.3037662,12.231902 l 5.1557571,5.4633 c 0.1346942,0.142885 0.3167219,0.214786 0.4987304,0.214786 0.1683697,0 0.3376442,-0.06189 0.4705169,-0.186572 0.274854,-0.260292 0.287598,-0.693507 0.028209,-0.968338 L 2.7590415,11.776889 7.4425348,7.1118018 c 0.26847,-0.266653 0.26847,-0.7007763 0.00182,-0.96927 z"}),a.jsx("path",{d:"M 22.858666,11.617566 17.702909,6.1542664 C 17.443525,5.8794126 17.0094,5.8666685 16.734571,6.1260574 c -0.274854,0.2602919 -0.287599,0.6935068 -0.02821,0.968338 l 4.697936,4.9782216 -4.683492,4.665087 c -0.26847,0.266653 -0.26847,0.700776 -0.0018,0.969269 0.133785,0.134694 0.309429,0.202045 0.485077,0.202045 0.175651,0 0.34948,-0.06644 0.483261,-0.200225 L 22.8431,12.572141 c 0.263018,-0.262108 0.269379,-0.686214 0.01455,-0.955617 z"}),a.jsx("path",{className:"styled info",d:"M 14.852552,2.3717794 C 14.489421,2.2643858 14.108091,2.4727992 14.001617,2.8359342 L 8.8677612,20.299897 c -0.1064841,0.363134 0.1010188,0.743553 0.4641546,0.850937 0.064624,0.01912 0.1292354,0.02821 0.193852,0.02821 0.2966855,0 0.5697212,-0.193851 0.6570922,-0.492371 L 15.316715,3.2227132 C 15.423197,2.85958 15.215694,2.4791604 14.85256,2.3717767 Z"})]}),Cy=e=>a.jsxs(V.SvgIcon,{...e,children:[a.jsx("path",{d:"m 2.7366908,1.2208053 c -1.0214438,0 -1.86861981,0.8084813 -1.86861981,1.7832708 V 19.645543 c 0,0.97479 0.84717601,1.78327 1.86861981,1.78327 H 12.76031 l -0.20303,-1.063862 -0.03384,0.0323 -0.142873,-0.751702 H 8.9647936 v -4.75419 h 2.5096614 l -0.227467,-1.18945 H 8.9647936 V 8.9477179 h 4.9817294 v 0.9741612 l 1.246373,0.2170779 V 8.9477179 h 4.981733 v 2.0559631 l 1.855461,0.32113 -0.04324,0.03947 0.0564,0.009 V 3.0041128 c 0,-0.9747894 -0.847176,-1.7832707 -1.86862,-1.7832707 z m 0,1.7832708 H 7.7184235 V 7.7582688 H 2.7366908 Z m 6.2281057,0 H 13.946527 V 7.7582688 H 8.9647965 Z m 6.2281035,0 h 4.981734 V 7.7582688 H 15.1929 Z M 2.7366908,8.9477142 H 7.7184235 V 13.701905 H 2.7366908 Z m 0,5.9436358 h 4.9817327 v 4.754193 H 2.7366908 Z"}),a.jsx("path",{className:"styled info",d:"m 17.863373,19.953554 -2.685067,2.867548 -1.790047,-10.175181 9.845251,1.850034 -2.774573,2.77505 2.774573,2.960054 -2.506066,2.590043 z"})]}),ky=e=>a.jsx(V.SvgIcon,{...e,children:a.jsx("path",{d:"m 16.470703,1.7597656 c -3.00595,-0.06715 -5.352602,2.1826885 -5.490234,2.3203125 L 2.4980469,12.5625 2.5,8.2636719 C 2.4966965,7.8058069 2.1302788,7.4388541 1.671875,7.4355469 1.2082006,7.4327101 0.83311655,7.8070636 0.8359375,8.2675781 l -0.001953,6.3066409 c 0.003309,0.457861 0.37046582,0.824808 0.83203122,0.828125 l 6.2949219,-0.002 c 0.2268179,0.0034 0.4431455,-0.08736 0.59375,-0.242188 0.157568,-0.156086 0.2474887,-0.369538 0.2460938,-0.59375 C 8.797478,14.106588 8.4303344,13.739644 7.96875,13.736328 l -4.2949219,0.002 8.4843749,-8.4824216 c 0.102653,-0.102653 3.908486,-3.9176862 7.560547,-0.265625 4.186678,4.1866776 0.329431,8.0260386 0.263672,8.0917966 l -7.84375,7.84375 c -0.781688,0.78286 0.396306,1.958381 1.177734,1.175781 l 7.84375,-7.843749 C 21.45568,13.962289 26.040293,8.958261 20.896484,3.8144531 19.426928,2.3448967 17.896128,1.7916082 16.470703,1.7597656 Z"})}),Ey=e=>a.jsx(V.SvgIcon,{...e,children:a.jsx("path",{d:"m 7.6869782,1.7597656 c 3.0059498,-0.06715 5.3526018,2.1826885 5.4902338,2.3203125 l 8.482422,8.4824219 -0.002,-4.2988281 c 0.0033,-0.457865 0.369721,-0.8248178 0.828125,-0.828125 0.463675,-0.00284 0.838759,0.3715167 0.835938,0.8320312 l 0.002,6.3066409 c -0.0033,0.457861 -0.370466,0.824808 -0.832032,0.828125 l -6.294921,-0.002 c -0.226818,0.0034 -0.443146,-0.08736 -0.59375,-0.242188 -0.157568,-0.156086 -0.247489,-0.369538 -0.246094,-0.59375 0.0033,-0.457818 0.370447,-0.824762 0.832031,-0.828078 l 4.294922,0.002 -8.484375,-8.4824216 C 11.896825,5.1532534 8.0909922,1.3382202 4.4389312,4.9902814 0.25225321,9.176959 4.1095002,13.01632 4.1752592,13.082078 l 7.8437498,7.84375 c 0.781688,0.78286 -0.396306,1.958381 -1.177734,1.175781 L 2.9975252,14.25786 C 2.7020012,13.962289 -1.8826118,8.958261 3.2611972,3.8144531 4.7307532,2.3448967 6.2615532,1.7916082 7.6869782,1.7597656 Z"})}),_y=e=>a.jsxs(V.SvgIcon,{...e,children:[a.jsx("path",{d:"m 12.106007,8.1692949 c 0.124174,-0.1578352 0.181773,-0.3565642 0.283755,-0.5271169 0.10273,-0.1715492 0.04413,-0.2027176 -0.129161,-0.2014713 -0.685452,0.00576 -1.371152,-0.00277 -2.056604,0.00501 C 10.021228,7.4479573 9.9586414,7.407817 9.9935503,7.2080883 10.145401,6.3413623 10.291269,5.4736396 10.51219,4.6213758 10.642847,4.1167002 10.782479,3.6117747 11.061498,3.1622046 11.339518,2.7138809 11.726751,2.5974365 12.2035,2.829328 c 0.398455,0.1934923 0.722604,0.4827333 0.990152,0.8340617 0.116944,0.1535968 0.27079,0.2740306 0.449073,0.1715499 0.343348,-0.1974819 0.644807,-0.4383502 0.819599,-0.826332 0.100985,-0.2244112 0.157836,-0.476001 0.04039,-0.7058977 C 14.339646,1.9840253 14.038187,1.7618584 13.707056,1.6394296 13.156999,1.4362128 12.562559,1.4840872 12.017239,1.6758341 11.38789,1.8970037 10.783727,2.2625445 10.259602,2.6724688 10.066109,2.8238217 9.8783519,2.9839017 9.7013165,3.1547035 9.0502751,3.7823067 8.5657962,4.529097 8.2246919,5.3651534 7.9823276,5.9595939 7.7888351,6.5660026 7.6913412,7.2015842 7.673637,7.318528 7.6357391,7.423253 7.5065759,7.4432009 7.3472438,7.4678879 7.1592376,7.4436995 6.9974121,7.4441728 6.6351128,7.4451447 6.2598478,7.3676233 5.9915515,7.6815496 5.8721151,7.8211835 5.7461952,7.9840062 5.6439635,8.1371045 c -0.1009847,0.1518511 -0.093255,0.3002122 0.085027,0.367535 0.1957362,0.073561 0.4528118,0.026182 0.6530361,0.0197 0.2645558,-0.00847 0.5291116,0.00501 0.7936674,-7.476e-4 0.1820229,-0.00374 0.2413669,0.030421 0.2064588,0.2358807 C 7.3487406,8.9587006 7.3095941,9.1492003 7.2804197,9.3464333 7.1804317,10.024404 7.0667304,10.700629 6.9525298,11.376606 6.7936963,12.314146 6.6371075,13.252434 6.4655575,14.188478 6.3017374,15.082631 6.1855427,15.985013 5.983074,16.873433 5.8249883,17.568607 5.7240037,18.277248 5.5556954,18.969682 5.4145655,19.550158 5.293882,20.143601 4.9722259,20.665731 4.7380909,21.045734 4.3959882,21.206312 3.9663652,21.104829 3.5778849,21.012322 3.2115961,20.866205 2.8951763,20.608631 2.6862246,20.438328 2.4473513,20.31141 2.1920214,20.458026 1.9519014,20.595915 1.7791048,20.851743 1.646453,21.088123 1.2205704,21.847879 1.915497,22.569984 2.6655289,22.684434 3.1692071,22.760986 3.666153,22.580208 4.1087416,22.356046 4.6996913,22.056582 5.2103511,21.635437 5.6387269,21.13874 5.9898058,20.731558 6.3575906,20.343327 6.6500737,19.890016 6.8450616,19.58756 7.0238427,19.274881 7.1866655,18.954471 7.7639005,17.817206 8.1227091,16.589926 8.4189318,15.354418 8.5613081,14.760227 8.716401,14.169777 8.8478064,13.572843 9.0268365,12.760724 9.1741996,11.934891 9.3083481,11.114294 9.3749255,10.707112 9.4310263,10.300679 9.5160532,9.8967389 9.5861222,9.5636133 9.6442168,9.2185186 9.6890985,8.8814035 9.7414633,8.4891827 9.990308,8.5136187 10.329668,8.4762164 c 0.286249,-0.03167 0.574492,-0.046376 0.861739,-0.067571 0.230395,-0.016703 0.494951,0.00396 0.711881,-0.088019 0.07754,-0.032911 0.147613,-0.080788 0.202719,-0.1513533 z"}),a.jsx("path",{d:"M 22.473802,7.8481382 C 22.426924,7.6912996 22.341898,7.5501696 22.231437,7.4294861 22.130452,7.3192756 21.987827,7.1749046 21.851933,7.1098255 21.411589,6.8988785 20.817398,7.0838898 20.436149,7.3422154 20.23343,7.479854 20.052405,7.6519026 19.871131,7.8167201 19.691352,7.9802913 19.517061,8.1488492 19.35723,8.3321177 19.025101,8.7128687 18.724639,9.1210479 18.436396,9.5354601 18.296263,9.7374301 17.901549,10.472252 17.781115,10.399942 17.654198,10.323892 17.495365,9.5905657 17.435023,9.3843566 17.351243,9.0978583 17.29539,8.8016361 17.161741,8.5323425 16.97922,8.1643081 16.865268,7.7623629 16.608941,7.4307332 16.325934,7.0639457 16.001036,6.9584722 15.558946,7.092371 c -0.43436,0.1314054 -0.78469,0.4049374 -1.128539,0.6819608 -0.503927,0.4056851 -0.879442,0.926319 -1.256951,1.4439609 -0.28226,0.387483 -0.284753,0.3857373 0.04488,0.7380631 0.206458,0.2211702 0.202718,0.2184272 0.389229,-0.00847 0.2663,-0.3251469 0.524872,-0.6595196 0.882433,-0.8934057 0.261315,-0.1713009 0.417904,-0.1368908 0.57948,0.1326518 0.07929,0.1326517 0.146866,0.2752777 0.200225,0.4208957 0.335619,0.9141014 0.590201,1.8541344 0.89191,2.7784594 0.03815,0.117691 -0.01122,0.193991 -0.06707,0.278519 -0.356565,0.538837 -0.719363,1.074182 -1.123054,1.578607 -0.320409,0.401198 -0.643312,0.803891 -1.073932,1.097621 -0.187757,0.128912 -0.40768,0.217679 -0.635831,0.156839 -0.233887,-0.06283 -0.37377,-0.27478 -0.587459,-0.373521 -0.006,-0.003 -0.01272,-0.0052 -0.01895,-0.0079 -0.09974,-0.04064 -0.249845,-0.0389 -0.353074,-0.01571 -0.454059,0.102482 -0.697669,0.614139 -0.790177,1.023813 -0.08379,0.371776 -0.0013,0.778209 0.261315,1.062463 0.228899,0.24785 0.572248,0.351327 0.901634,0.356315 0.189003,0.0028 0.39995,-0.04663 0.57549,-0.11445 0.670241,-0.262062 1.181649,-0.887172 1.605038,-1.441717 0.285501,-0.374517 0.550555,-0.763994 0.829573,-1.143499 0.230645,-0.313677 0.68595,-1.247726 0.81586,-1.250718 0.07854,-0.0017 0.09924,0.185762 0.114199,0.241117 0.03341,0.123675 0.06658,0.247351 0.102232,0.370279 0.167561,0.578481 0.343848,1.156464 0.525122,1.730458 0.120934,0.384242 0.315921,0.782697 0.560779,1.103356 0.07431,0.09749 0.167311,0.190749 0.26306,0.266799 0.371276,0.296972 0.838799,0.27453 1.266177,0.123177 0.191498,-0.06757 0.370029,-0.163071 0.539335,-0.275527 0.781948,-0.519886 1.340732,-1.244235 1.868598,-2.002495 0.124423,-0.178781 0.107467,-0.278769 -0.03441,-0.428127 -0.367286,-0.386237 -0.357062,-0.389727 -0.705149,0.01995 -0.261066,0.306446 -0.527117,0.612643 -0.879442,0.818851 -0.245855,0.144621 -0.413416,0.103229 -0.592696,-0.118439 -0.14861,-0.183518 -0.246353,-0.396709 -0.33138,-0.614886 -0.349831,-0.901136 -0.588954,-1.838675 -0.885177,-2.757515 -0.21743,-0.674231 -0.223414,-0.680464 0.20945,-1.248723 0.447575,-0.587708 0.875703,-1.1968602 1.462163,-1.6613914 0.431119,-0.3416031 0.73183,-0.3226534 1.129037,0.059094 0.0788,0.075801 0.207456,0.1388856 0.316919,0.1476127 0.369781,0.029674 0.691187,-0.3024566 0.880939,-0.5792304 0.188006,-0.2727835 0.259319,-0.6183768 0.163072,-0.9392845 z"})]}),Ty=e=>a.jsxs(V.SvgIcon,{...e,children:[a.jsx("path",{d:"m 12.867188,1.6601562 c 0.268232,-0.0099 0.532856,0.027161 0.787109,0.1210938 0.303937,0.1123746 0.570511,0.3115911 0.712891,0.5898438 0.08749,0.1712653 0.04893,0.3700013 -0.04297,0.5742187 -0.15546,0.3450701 -0.428892,0.5686288 -0.757813,0.7578125 -0.08042,0.04623 -0.155484,-0.00416 -0.251953,-0.1308594 C 13.035105,3.2054418 12.692907,2.8989531 12.269531,2.6933594 11.722626,2.4273439 11.250208,2.5683233 10.931641,3.0820313 10.639621,3.5525493 10.496228,4.0780104 10.365234,4.5839844 10.142637,5.442716 9.9974555,6.3174287 9.8457031,7.1835937 9.7907552,7.4979743 9.946054,7.5988786 10.205078,7.5957031 c 0.679622,-0.00771 1.361146,0.00162 2.042969,-0.00391 -0.0982,0.1729953 -0.154765,0.3484265 -0.261719,0.484375 -0.03547,0.045421 -0.0834,0.080352 -0.142578,0.1054687 -0.192898,0.081789 -0.424815,0.058827 -0.664062,0.076172 -0.286247,0.021121 -0.576223,0.036384 -0.865235,0.068359 -0.30666,0.033798 -0.7051075,0.00873 -0.7753905,0.5351562 -0.044397,0.3334766 -0.1026064,0.6745859 -0.171875,1.0039063 -0.085774,0.4074896 -0.1406716,0.8207126 -0.2070312,1.2265626 -0.1339129,0.819155 -0.2827094,1.638784 -0.4609375,2.447266 -0.130955,0.594887 -0.2850923,1.183996 -0.4277344,1.779296 -0.2952398,1.231409 -0.648992,2.445826 -1.21875,3.56836 -0.160516,0.31587 -0.3371768,0.623867 -0.5292969,0.921875 -0.2874564,0.44552 -0.6473592,0.821475 -1,1.230468 -0.4171445,0.483675 -0.9112147,0.892182 -1.4824219,1.181641 -0.4325073,0.219056 -0.8912993,0.382454 -1.3515625,0.3125 -0.660156,-0.100735 -1.2749333,-0.720347 -0.9101562,-1.371094 0.1291698,-0.230175 0.2801456,-0.452743 0.4882812,-0.572265 0.1704247,-0.09786 0.3413131,-0.01809 0.53125,0.136718 0.3395109,0.276371 0.7298685,0.42944 1.1328125,0.525391 0.4949665,0.116918 0.9051575,-0.07614 1.1699219,-0.505859 0.3351487,-0.544032 0.4611101,-1.164498 0.6015625,-1.742188 0.1694882,-0.697288 0.2686538,-1.406696 0.4257812,-2.097656 0.203537,-0.893107 0.321038,-1.797936 0.484375,-2.689453 0.1717492,-0.937131 0.329452,-1.876938 0.4882813,-2.814453 C 7.2157716,10.726316 7.3314387,10.046609 7.4316406,9.3671875 7.4604144,9.1726632 7.4975986,8.9858124 7.53125,8.7851563 7.5858629,8.4637191 7.4284516,8.3677749 7.171875,8.3730469 c -0.2607537,0.00567 -0.5260002,-0.00861 -0.7949219,0 -0.2100703,0.0068 -0.430734,0.052232 -0.5957031,-0.00977 C 5.7141096,8.3379277 5.7129165,8.3058354 5.7695312,8.2207031 5.867873,8.0734302 5.9909981,7.9154087 6.1074219,7.7792969 6.3209291,7.5294779 6.6134436,7.5947817 6.9980469,7.59375 c 0.15382,-4.499e-4 0.3554847,0.02528 0.53125,-0.00195 0.222675,-0.03439 0.2912558,-0.2268586 0.3125,-0.3671875 C 7.9369689,6.6041648 8.1257855,6.0091648 8.3652344,5.421875 8.6991095,4.6035376 9.1722556,3.8752184 9.8066406,3.2636719 9.9792522,3.0971381 10.163328,2.9397829 10.353516,2.7910156 c 0.51527,-0.4029987 1.10343,-0.7577896 1.714843,-0.9726562 0.260195,-0.09149 0.530313,-0.1482961 0.798829,-0.1582032 z"}),a.jsx("path",{className:"styled info",d:"m 20.593801,9.5925389 c 0.04254,-0.0019 0.08513,-0.0028 0.126953,0 0.108321,0.0073 0.20924,0.0313 0.298828,0.07422 0.114943,0.05505 0.232637,0.176683 0.332031,0.285157 0.09768,0.1067151 0.171576,0.2276851 0.210938,0.3593751 0.0819,0.273087 0.02046,0.571159 -0.144532,0.810547 -0.178348,0.260139 -0.459024,0.538504 -0.74414,0.515625 -0.07274,-0.0058 -0.165122,-0.05208 -0.222657,-0.107422 -0.448643,-0.431182 -0.839256,-0.455722 -1.328125,-0.06836 -0.603232,0.477816 -1.044426,1.104066 -1.490234,1.689453 -0.17329,0.227494 -0.290244,0.386345 -0.34375,0.529297 -0.09212,0.246127 -0.019,0.453303 0.111328,0.857422 0.295252,0.915828 0.536566,1.858628 0.888672,2.765625 0.08696,0.223138 0.193305,0.455995 0.355469,0.65625 0.222773,0.275445 0.471577,0.336803 0.785156,0.152344 0.373054,-0.21834 0.656305,-0.544414 0.917969,-0.851563 0.174275,-0.205111 0.234375,-0.253906 0.234375,-0.253906 0,0 0.06389,0.04658 0.248047,0.240235 0.09371,0.09865 0.09585,0.125809 0.01758,0.238281 -0.525383,0.754693 -1.069157,1.458282 -1.828125,1.96289 -0.16141,0.107212 -0.328472,0.195222 -0.50586,0.257813 -0.395643,0.140114 -0.80702,0.151607 -1.121093,-0.09961 -0.08791,-0.06982 -0.170063,-0.151346 -0.236328,-0.238282 -0.233299,-0.305521 -0.420476,-0.686062 -0.53711,-1.05664 -0.18099,-0.573096 -0.358218,-1.151376 -0.52539,-1.728516 -0.03527,-0.121618 -0.06609,-0.243086 -0.09961,-0.367187 -0.0072,-0.02672 -0.04071,-0.356431 -0.265625,-0.351563 -0.06665,0.0015 -0.119113,0.0413 -0.146484,0.06641 -0.195656,0.179449 -0.584031,0.970611 -0.785156,1.244141 -0.280118,0.381 -0.546304,0.770326 -0.830079,1.142578 -0.421568,0.552161 -0.908083,1.145866 -1.539062,1.392578 -0.164094,0.0634 -0.349163,0.106011 -0.517578,0.103516 -0.301449,-0.0046 -0.598849,-0.0984 -0.792969,-0.308594 -0.225815,-0.244421 -0.298796,-0.596613 -0.224609,-0.925781 0.08669,-0.3839 0.304096,-0.824313 0.675781,-0.908203 0.08147,-0.0183 0.201118,-0.018 0.259766,0.0059 0.0082,0.0035 0.01049,0.0034 0.01563,0.0059 0.187819,0.08679 0.343446,0.310851 0.611328,0.382813 0.28767,0.07671 0.554968,-0.03578 0.761718,-0.177734 0.448791,-0.306125 0.783232,-0.727866 1.103516,-1.128907 0.40814,-0.509983 0.775715,-1.050202 1.132813,-1.589843 0.05527,-0.08364 0.146588,-0.221098 0.08594,-0.408204 -0.300915,-0.921893 -0.557436,-1.867035 -0.894531,-2.785156 -0.05639,-0.153888 -0.128386,-0.303936 -0.212891,-0.445312 -0.205,-0.341984 -0.459971,-0.398652 -0.791015,-0.181641 -0.377901,0.24719 -0.653096,0.600423 -0.917969,0.923828 -0.03319,0.04037 -0.05515,0.06815 -0.07617,0.0918 -0.0232,-0.02266 -0.04675,-0.04995 -0.08398,-0.08984 -0.164777,-0.176119 -0.211195,-0.232299 -0.212891,-0.261718 -0.0017,-0.02942 0.03847,-0.08935 0.179687,-0.283204 0.37786,-0.518122 0.740184,-1.024838 1.228516,-1.417968 0.342718,-0.276113 0.67152,-0.5318791 1.076172,-0.6542971 0.380453,-0.115231 0.643965,-0.03004 0.888672,0.287109 0.24488,0.3168201 0.350398,0.6996891 0.537109,1.0761721 0.127589,0.257083 0.178498,0.53686 0.263672,0.828125 0.05873,0.200711 0.212809,0.98214 0.412109,1.101563 0.06971,0.04185 0.137378,0.02845 0.183594,0.0078 0.211308,-0.09438 0.552848,-0.74165 0.673828,-0.916016 0.286685,-0.412172 0.583054,-0.814464 0.910157,-1.189453 0.15466,-0.177339 0.324428,-0.342386 0.501953,-0.503906 0.182637,-0.166057 0.354754,-0.330495 0.546875,-0.4609381 0.233979,-0.158539 0.544018,-0.281462 0.841797,-0.294921 z"})]}),jy=e=>a.jsx(V.SvgIcon,{...e,children:a.jsx("path",{d:"M 18.389839,21.43332 H 4.5479552 A 0.76899357,0.62936313 0 0 1 3.9158424,20.445851 L 10.533799,12.622237 3.9158424,4.7986349 A 0.76899357,0.62936313 0 0 1 4.5479552,3.8111645 H 18.389839 a 0.76899357,0.62936313 0 0 1 0.768992,0.6293631 v 3.146816 a 0.76899381,0.62936332 0 0 1 -1.537987,0 V 5.0698908 H 6.0151952 l 6.0858138,7.1942382 a 0.76899357,0.62936313 0 0 1 0,0.716215 l -6.0858138,7.19425 H 17.620844 v -2.517453 a 0.76899381,0.62936332 0 0 1 1.537987,0 v 3.146817 a 0.76899357,0.62936313 0 0 1 -0.768992,0.629362 z"})}),My=e=>a.jsxs(V.SvgIcon,{...e,children:[a.jsx("path",{d:"M 4.6406587,2 H 18.692805 c 1.824112,0.00341 3.303782,1.4831539 3.307194,3.3071945 V 20.029798 c 4.66e-4,0.522189 -0.209529,1.021995 -0.580278,1.389924 C 21.050238,21.788204 20.551407,21.997765 20.029798,22 H 7.9851008 C 6.8975633,22 6.014899,21.117336 6.0148989,20.029798 V 11.298177 H 3.9702018 C 2.8826644,11.298177 2.0000002,10.415512 2,9.3279746 V 4.6406585 C 1.9999999,3.1823918 3.1823921,1.9999995 4.6406587,2 Z m -0.00196,1.2644579 c -0.6886073,0 -1.3765549,0.4616413 -1.3762008,1.3762006 v 4.681435 c 10e-8,0.3918024 0.3159019,0.7077035 0.7077044,0.7077035 H 6.0148989 V 4.6406585 C 6.0145449,3.7261175 5.3273054,3.2644579 4.6386987,3.2644579 Z m 2.2387766,0.00392 0.033327,0.056852 c 0.2364681,0.3988302 0.3641569,0.852036 0.3665942,1.3154241 v 15.389144 c 0,0.391803 0.3159014,0.707704 0.7077043,0.707704 H 20.029798 c 0.391803,1e-6 0.707704,-0.315901 0.707704,-0.707704 V 5.3130757 c 0,-1.1298234 -0.914874,-2.0446971 -2.044697,-2.044697 z"}),a.jsx("path",{className:"styled info",d:"m 11.783203,7.09375 c 0.368273,0 0.738495,0.096559 1.06836,0.2871094 l 4.666015,2.6894536 c 0.661171,0.382614 1.066406,1.087767 1.066406,1.849609 0,0.739654 -0.382377,1.425022 -1.009765,1.814453 l -4.72461,2.730469 c -0.657431,0.387116 -1.473068,0.385556 -2.132812,-0.002 -0.661063,-0.38095 -1.0664064,-1.083862 -1.0664064,-1.845703 V 9.2285156 c 0,-0.7619467 0.4053474,-1.46671 1.0664064,-1.8476562 C 11.047524,7.1902609 11.415058,7.09375 11.783203,7.09375 Z m 0.002,1.6152344 c -0.08997,0.00192 -0.17745,0.025161 -0.259765,0.068359 -0.161224,0.093237 -0.259766,0.2653146 -0.259766,0.4511718 v 5.3886724 c 0,0.184057 0.09697,0.356194 0.257813,0.447265 0.159466,0.09338 0.356243,0.09525 0.517578,0.0039 l 4.669921,-2.699218 c 0.158801,-0.09297 0.257813,-0.262683 0.257813,-0.447266 0,-0.184591 -0.100631,-0.356052 -0.259766,-0.447266 L 12.041016,8.7773438 c -0.07748,-0.04456 -0.164258,-0.068377 -0.25586,-0.068359 z"})]}),Ry=e=>a.jsxs(V.SvgIcon,{...e,children:[a.jsx("path",{d:"M 4.640625,2 C 3.1823599,1.9999995 1.9999999,3.1823598 2,4.640625 v 4.6875 c 2e-7,1.087536 0.8831668,1.970703 1.9707031,1.970703 H 6.015625 v 8.730469 C 6.0156251,21.116834 6.8968386,22 7.984375,22 h 3.810547 C 11.475372,21.762421 11.17322,21.501489 10.894531,21.212891 10.737985,21.06173 10.591026,20.901929 10.449219,20.738281 H 7.984375 c -0.3918025,0 -0.7070312,-0.317182 -0.7070312,-0.708984 V 4.640625 C 7.2749065,4.1772374 7.1466241,3.7250017 6.9101562,3.3261719 L 6.8769531,3.2675781 H 18.693359 c 1.129822,-1e-7 2.044922,0.9150996 2.044922,2.0449219 v 5.052734 c 0.1799,0.153336 0.354457,0.313431 0.519531,0.484375 0.27039,0.261087 0.516473,0.542689 0.742188,0.839844 V 5.3066406 C 21.996588,3.4826018 20.51747,2.00341 18.693359,2 Z m -0.00195,1.2636719 c 0.688606,0 1.3765991,0.462413 1.3769531,1.3769531 v 5.388672 H 3.9707031 c -0.3918021,0 -0.7089843,-0.3152294 -0.7089843,-0.7070314 V 4.640625 C 3.2613647,3.7260666 3.9500653,3.2636719 4.6386719,3.2636719 Z"}),a.jsx("path",{d:"m 20.482992,12.175071 c -0.720698,-0.746325 -1.627093,-1.287261 -2.626024,-1.567398 -0.998983,-0.280163 -2.054528,-0.289256 -3.058394,-0.02662 -1.003665,0.262727 -1.91938,0.787907 -2.653077,1.521506 -0.7337,0.733598 -1.258779,1.649312 -1.521506,2.653079 -0.262628,1.003765 -0.253535,2.05931 0.02662,3.058392 0.280161,0.998983 0.821072,1.905376 1.567397,2.626024 0.720698,0.746325 1.627094,1.287261 2.626022,1.567399 0.998984,0.280162 2.054528,0.289256 3.058394,0.02662 1.003665,-0.262725 1.919381,-0.787905 2.653078,-1.521503 0.733702,-0.733594 1.25878,-1.649309 1.521506,-2.653075 0.262628,-1.003766 0.253534,-2.059312 -0.02662,-3.058393 -0.280156,-0.998988 -0.821068,-1.905383 -1.567393,-2.62603 z m -0.824107,7.440694 c -0.764534,0.765413 -1.770754,1.241945 -2.847218,1.34861 -1.076587,0.10666 -2.156781,-0.163219 -3.056638,-0.763634 -0.899858,-0.60043 -1.563691,-1.494301 -1.878374,-2.529331 -0.314679,-1.034979 -0.260774,-2.147088 0.152549,-3.146821 0.413228,-0.999657 1.16043,-1.82524 2.11412,-2.335841 0.953665,-0.510601 2.054902,-0.674806 3.116008,-0.464508 1.061105,0.210285 2.016552,0.782046 2.703431,1.617699 0.686828,0.835753 1.062784,1.883759 1.06366,2.965456 0.002,0.61451 -0.117709,1.223257 -0.352557,1.791197 -0.234746,0.567842 -0.579786,1.083528 -1.01521,1.517099 z"}),a.jsx("path",{className:"styled info",d:"m 19.285761,15.525542 h -2.246906 v -2.246905 c 0,-0.267568 -0.142685,-0.514831 -0.3744,-0.648616 -0.23171,-0.133781 -0.517332,-0.133781 -0.749052,0 -0.231715,0.13378 -0.374402,0.381044 -0.374402,0.648616 v 2.246905 h -2.246902 c -0.267568,0 -0.514832,0.142685 -0.648617,0.374401 -0.133781,0.231711 -0.133781,0.517332 0,0.749051 0.133779,0.231716 0.381044,0.3744 0.648617,0.3744 h 2.246902 v 2.246907 c 0,0.267568 0.142687,0.514829 0.374402,0.648615 0.231711,0.133782 0.517332,0.133782 0.749052,0 0.231715,-0.133779 0.3744,-0.381044 0.3744,-0.648615 v -2.246907 h 2.246906 c 0.267567,0 0.514831,-0.142684 0.648616,-0.3744 0.133782,-0.231711 0.133782,-0.517332 0,-0.749051 -0.13378,-0.231716 -0.381045,-0.374401 -0.648616,-0.374401 z"})]}),Iy=e=>a.jsxs(V.SvgIcon,{...e,children:[a.jsx("path",{d:"M 4.3007812,1.4355469 H 16.400391 c 0.174994,0 0.343836,0.070399 0.46875,0.1953125 l 5.5,5.5 c 0.124808,0.1247939 0.195312,0.2939152 0.195312,0.46875 l -0.002,12.0996096 c 0,1.576487 -1.286795,2.863281 -2.863281,2.863281 H 4.3007812 c -1.5774391,0 -2.8652343,-1.286169 -2.8652343,-2.863281 V 4.3007812 c 0,-1.5757367 1.2894976,-2.8652343 2.8652343,-2.8652343 z m 0,1.328125 c -0.8504478,0 -1.5351563,0.6876384 -1.5351562,1.5371093 l -0.00195,15.3984378 c 0,0.850447 0.6876385,1.535156 1.5371093,1.535156 l 15.3984378,0.002 c 0.850443,0 1.535156,-0.687587 1.535156,-1.537109 V 7.8769531 L 16.125,2.765625 H 14.865234 L 14.867188,6.5 c 0,0.3638815 -0.301094,0.6640626 -0.666016,0.6640625 H 6.5019531 C 6.1370308,7.1640625 5.8359375,6.8638819 5.8359375,6.5 V 2.7636719 Z m 2.8632813,0.00195 V 5.8359375 H 13.535156 V 2.765625 Z"}),a.jsx("path",{className:"styled info",d:"m 12,10.140625 c 2.236203,0 4.060547,1.824344 4.060547,4.060547 0,2.236201 -1.824345,4.060547 -4.060547,4.060547 -2.2362018,0 -4.0605469,-1.824346 -4.0605469,-4.060547 0,-2.236203 1.824345,-4.060547 4.0605469,-4.060547 z m 0,1.521484 c -1.402733,0 -2.5390625,1.135235 -2.5390625,2.539063 0,1.402733 1.1352355,2.539062 2.5390625,2.539062 1.403806,0 2.539062,-1.136324 2.539063,-2.539062 0,-1.402734 -1.135235,-2.539063 -2.539063,-2.539063 z"})]}),Wd=e=>a.jsx(V.SvgIcon,{...e,children:a.jsx("path",{d:"M 5.1933594,1.4433594 6.3417969,2.5234375 6.2109375,2.6621094 c -3.466072,3.6769426 -3.467641,9.6565186 0,13.3339846 l 0.1308594,0.136718 -1.1484375,1.082032 -0.1328125,-0.140625 c -4.0371886,-4.28224 -4.0373752,-11.2077961 0,-15.4902346 z m 14.4726566,0 0.132812,0.140625 c 4.03717,4.2822197 4.037356,11.2058636 0,15.4882816 l -0.132812,0.140625 -1.148438,-1.080079 0.130859,-0.138671 c 3.465532,-3.675243 3.466902,-9.6542123 0,-13.3320316 L 18.517578,2.5234375 Z M 7.7597656,4.4335937 8.8769531,5.5488281 8.7421875,5.6816406 c -2.0366665,2.0366662 -2.037411,5.3404354 0,7.3769534 L 8.8769531,13.191406 7.7597656,14.310547 7.625,14.173828 C 4.9718615,11.520692 4.9723209,7.222936 7.6269531,4.5683594 Z m 9.3398434,0 0.132813,0.1347657 c 2.653779,2.6537788 2.65545,6.9500666 0,9.6054686 l -0.132813,0.136719 -1.117187,-1.119141 0.134765,-0.132812 c 2.036637,-2.035554 2.037534,-5.3391996 0,-7.3769534 L 15.982422,5.5488281 Z m -4.669921,1.7011719 c 0.811773,0 1.627703,0.304374 2.25,0.90625 1.260638,1.2198223 1.260413,3.1986104 0,4.4179684 -0.355144,0.343115 -0.779063,0.585007 -1.226563,0.732422 l -0.234375,0.07617 v 3.386719 h 0.002 v 6.048828 c 0,0.436615 -0.351565,0.791016 -0.789062,0.791016 -0.43763,0 -0.791016,-0.354618 -0.791016,-0.791016 v -3.308594 -6.126953 l -0.234375,-0.07617 c -0.448339,-0.147699 -0.871819,-0.38969 -1.226562,-0.732422 -1.2608671,-1.22004 -1.2605877,-3.1984433 0,-4.4179684 0.62227,-0.6019293 1.438264,-0.90625 2.25,-0.90625 z m 0,1.5820313 c -0.417461,0 -0.829931,0.1510762 -1.146485,0.4570312 -0.615751,0.5967629 -0.616877,1.5583713 0,2.1562499 0.314469,0.303373 0.726552,0.455078 1.146485,0.455078 0.421182,0 0.833304,-0.153008 1.148437,-0.457031 0.61548,-0.5965047 0.616739,-1.5585025 0,-2.15625 C 13.261859,7.8661993 12.846121,7.7167969 12.429688,7.7167969 Z"})}),I8=e=>a.jsxs(V.SvgIcon,{...e,children:[a.jsx("path",{d:"m 12.106007,8.1692949 c 0.124174,-0.1578352 0.181773,-0.3565642 0.283755,-0.5271169 0.10273,-0.1715492 0.04413,-0.2027176 -0.129161,-0.2014713 -0.685452,0.00576 -1.371152,-0.00277 -2.056604,0.00501 C 10.021228,7.4479573 9.9586414,7.407817 9.9935503,7.2080883 10.145401,6.3413623 10.291269,5.4736396 10.51219,4.6213758 10.642847,4.1167002 10.782479,3.6117747 11.061498,3.1622046 11.339518,2.7138809 11.726751,2.5974365 12.2035,2.829328 c 0.398455,0.1934923 0.722604,0.4827333 0.990152,0.8340617 0.116944,0.1535968 0.27079,0.2740306 0.449073,0.1715499 0.343348,-0.1974819 0.644807,-0.4383502 0.819599,-0.826332 0.100985,-0.2244112 0.157836,-0.476001 0.04039,-0.7058977 C 14.339646,1.9840253 14.038187,1.7618584 13.707056,1.6394296 13.156999,1.4362128 12.562559,1.4840872 12.017239,1.6758341 11.38789,1.8970037 10.783727,2.2625445 10.259602,2.6724688 10.066109,2.8238217 9.8783519,2.9839017 9.7013165,3.1547035 9.0502751,3.7823067 8.5657962,4.529097 8.2246919,5.3651534 7.9823276,5.9595939 7.7888351,6.5660026 7.6913412,7.2015842 7.673637,7.318528 7.6357391,7.423253 7.5065759,7.4432009 7.3472438,7.4678879 7.1592376,7.4436995 6.9974121,7.4441728 6.6351128,7.4451447 6.2598478,7.3676233 5.9915515,7.6815496 5.8721151,7.8211835 5.7461952,7.9840062 5.6439635,8.1371045 c -0.1009847,0.1518511 -0.093255,0.3002122 0.085027,0.367535 0.1957362,0.073561 0.4528118,0.026182 0.6530361,0.0197 0.2645558,-0.00847 0.5291116,0.00501 0.7936674,-7.476e-4 0.1820229,-0.00374 0.2413669,0.030421 0.2064588,0.2358807 C 7.3487406,8.9587006 7.3095941,9.1492003 7.2804197,9.3464333 7.1804317,10.024404 7.0667304,10.700629 6.9525298,11.376606 6.7936963,12.314146 6.6371075,13.252434 6.4655575,14.188478 6.3017374,15.082631 6.1855427,15.985013 5.983074,16.873433 5.8249883,17.568607 5.7240037,18.277248 5.5556954,18.969682 5.4145655,19.550158 5.293882,20.143601 4.9722259,20.665731 4.7380909,21.045734 4.3959882,21.206312 3.9663652,21.104829 3.5778849,21.012322 3.2115961,20.866205 2.8951763,20.608631 2.6862246,20.438328 2.4473513,20.31141 2.1920214,20.458026 1.9519014,20.595915 1.7791048,20.851743 1.646453,21.088123 1.2205704,21.847879 1.915497,22.569984 2.6655289,22.684434 3.1692071,22.760986 3.666153,22.580208 4.1087416,22.356046 4.6996913,22.056582 5.2103511,21.635437 5.6387269,21.13874 5.9898058,20.731558 6.3575906,20.343327 6.6500737,19.890016 6.8450616,19.58756 7.0238427,19.274881 7.1866655,18.954471 7.7639005,17.817206 8.1227091,16.589926 8.4189318,15.354418 8.5613081,14.760227 8.716401,14.169777 8.8478064,13.572843 9.0268365,12.760724 9.1741996,11.934891 9.3083481,11.114294 9.3749255,10.707112 9.4310263,10.300679 9.5160532,9.8967389 9.5861222,9.5636133 9.6442168,9.2185186 9.6890985,8.8814035 9.7414633,8.4891827 9.990308,8.5136187 10.329668,8.4762164 c 0.286249,-0.03167 0.574492,-0.046376 0.861739,-0.067571 0.230395,-0.016703 0.494951,0.00396 0.711881,-0.088019 0.07754,-0.032911 0.147613,-0.080788 0.202719,-0.1513533 z"}),a.jsx("path",{d:"M 22.473802,7.8481382 C 22.426924,7.6912996 22.341898,7.5501696 22.231437,7.4294861 22.130452,7.3192756 21.987827,7.1749046 21.851933,7.1098255 21.411589,6.8988785 20.817398,7.0838898 20.436149,7.3422154 20.23343,7.479854 20.052405,7.6519026 19.871131,7.8167201 19.691352,7.9802913 19.517061,8.1488492 19.35723,8.3321177 19.025101,8.7128687 18.724639,9.1210479 18.436396,9.5354601 18.296263,9.7374301 17.901549,10.472252 17.781115,10.399942 17.654198,10.323892 17.495365,9.5905657 17.435023,9.3843566 17.351243,9.0978583 17.29539,8.8016361 17.161741,8.5323425 16.97922,8.1643081 16.865268,7.7623629 16.608941,7.4307332 16.325934,7.0639457 16.001036,6.9584722 15.558946,7.092371 c -0.43436,0.1314054 -0.78469,0.4049374 -1.128539,0.6819608 -0.503927,0.4056851 -0.879442,0.926319 -1.256951,1.4439609 -0.28226,0.387483 -0.284753,0.3857373 0.04488,0.7380631 0.206458,0.2211702 0.202718,0.2184272 0.389229,-0.00847 0.2663,-0.3251469 0.524872,-0.6595196 0.882433,-0.8934057 0.261315,-0.1713009 0.417904,-0.1368908 0.57948,0.1326518 0.07929,0.1326517 0.146866,0.2752777 0.200225,0.4208957 0.335619,0.9141014 0.590201,1.8541344 0.89191,2.7784594 0.03815,0.117691 -0.01122,0.193991 -0.06707,0.278519 -0.356565,0.538837 -0.719363,1.074182 -1.123054,1.578607 -0.320409,0.401198 -0.643312,0.803891 -1.073932,1.097621 -0.187757,0.128912 -0.40768,0.217679 -0.635831,0.156839 -0.233887,-0.06283 -0.37377,-0.27478 -0.587459,-0.373521 -0.006,-0.003 -0.01272,-0.0052 -0.01895,-0.0079 -0.09974,-0.04064 -0.249845,-0.0389 -0.353074,-0.01571 -0.454059,0.102482 -0.697669,0.614139 -0.790177,1.023813 -0.08379,0.371776 -0.0013,0.778209 0.261315,1.062463 0.228899,0.24785 0.572248,0.351327 0.901634,0.356315 0.189003,0.0028 0.39995,-0.04663 0.57549,-0.11445 0.670241,-0.262062 1.181649,-0.887172 1.605038,-1.441717 0.285501,-0.374517 0.550555,-0.763994 0.829573,-1.143499 0.230645,-0.313677 0.68595,-1.247726 0.81586,-1.250718 0.07854,-0.0017 0.09924,0.185762 0.114199,0.241117 0.03341,0.123675 0.06658,0.247351 0.102232,0.370279 0.167561,0.578481 0.343848,1.156464 0.525122,1.730458 0.120934,0.384242 0.315921,0.782697 0.560779,1.103356 0.07431,0.09749 0.167311,0.190749 0.26306,0.266799 0.371276,0.296972 0.838799,0.27453 1.266177,0.123177 0.191498,-0.06757 0.370029,-0.163071 0.539335,-0.275527 0.781948,-0.519886 1.340732,-1.244235 1.868598,-2.002495 0.124423,-0.178781 0.107467,-0.278769 -0.03441,-0.428127 -0.367286,-0.386237 -0.357062,-0.389727 -0.705149,0.01995 -0.261066,0.306446 -0.527117,0.612643 -0.879442,0.818851 -0.245855,0.144621 -0.413416,0.103229 -0.592696,-0.118439 -0.14861,-0.183518 -0.246353,-0.396709 -0.33138,-0.614886 -0.349831,-0.901136 -0.588954,-1.838675 -0.885177,-2.757515 -0.21743,-0.674231 -0.223414,-0.680464 0.20945,-1.248723 0.447575,-0.587708 0.875703,-1.1968602 1.462163,-1.6613914 0.431119,-0.3416031 0.73183,-0.3226534 1.129037,0.059094 0.0788,0.075801 0.207456,0.1388856 0.316919,0.1476127 0.369781,0.029674 0.691187,-0.3024566 0.880939,-0.5792304 0.188006,-0.2727835 0.259319,-0.6183768 0.163072,-0.9392845 z"})]}),Dy=e=>(t=>{const{style:n,orientation:o=Oo.Vertical,...r}=t,i=o===Oo.Vertical;return a.jsx("div",{style:{display:"flex",justifyContent:"center",alignItems:"end",transition:"fill-opacity 1s",zIndex:1,width:"24px",height:"24px",...n},className:`scrollbar-button ${i?"vertical":"horizontal"} edge`,...r,children:a.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",transform:i?"rotate(90) ":"",children:a.jsx("path",{style:{transition:"opacity 240ms ease 0s",opacity:t.disabled?0:1},d:"M6 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m12 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m-6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2"})})})})({style:{cursor:"pointer"},...e}),D8=(e,t,n,o)=>{const{style:r,...i}=e,l=a.jsx(V.IconButton,{component:"div",...i,style:{...r,padding:"0px"},sx:{padding:"0"},color:e.disabled?void 0:"primary","aria-label":n,size:"small",children:t});return a.jsx(Zo,{title:e.disabled?n:o,enterDelay:800,enterNextDelay:1600,children:e.disabled?a.jsx("div",{style:{display:"flex"},children:l}):l})},Ly=e=>D8(e,a.jsx(an.ArrowLeft,{fontSize:"small"}),"Scroll "+(e.orientation===Oo.Horizontal?"Left":"Up"),`Scroll ${e.orientation===Oo.Horizontal?"left":"up"}, 'Ctrl+Click' to scroll to the beginning`),Oy=e=>D8(e,a.jsx(an.ArrowRight,{fontSize:"small"}),"Scroll "+(e.orientation===Oo.Horizontal?"Right":"Down"),`Scroll ${e.orientation===Oo.Horizontal?"right":"down"}, 'Ctrl+Click' to scroll to the end`),Et=s.memo(s.forwardRef((e,t)=>{const{orientation:n="vertical",sx:o,...r}=e,i=n==="vertical";return a.jsx(V.Divider,{ref:t,sx:{marginLeft:i?"1px":void 0,marginRight:i?"1px":void 0,backgroundColor:"transparent !important",borderColor:l=>l.palette.divider,...o},orientation:n,variant:"middle",flexItem:!0,...r})}));function j1(e,t){if(typeof e=="function")return e(t);e&&(e.current=t)}var Ud=parseInt(s.version.split(".")[0],10)>=19?function(e){return t=>{const n=[];for(const o of e){const r=j1(o,t),i=typeof r=="function";n.push(i?r:()=>j1(o,null))}return()=>{for(const o of n)o()}}}:function(e){return t=>{for(const n of e)j1(n,t)}},Py=function(){},L8=typeof window<"u",O8=L8?s.useLayoutEffect:s.useEffect,B5={x:0,y:0,width:0,height:0,top:0,left:0,bottom:0,right:0};const N5=L8&&window.ResizeObserver!==void 0?function(){var e=s.useState(null),t=e[0],n=e[1],o=s.useState(B5),r=o[0],i=o[1],l=s.useMemo(function(){return new window.ResizeObserver(function(d){if(d[0]){var c=d[0].contentRect,u=c.x,f=c.y,p=c.width,h=c.height,m=c.top,g=c.left,x=c.bottom,y=c.right;i({x:u,y:f,width:p,height:h,top:m,left:g,bottom:x,right:y})}})},[]);return O8(function(){if(t)return l.observe(t),function(){l.disconnect()}},[t]),[n,r]}:function(){return[Py,B5]};s.memo(e=>{const{sx:t,speed:n=2,size:o=70,...r}=e;return a.jsx(V.Box,{sx:{width:`${o}px`,height:`${o}px`,zIndex:1,"& .primary":{stroke:i=>i.palette.grey[600],fill:"none"},...t},...r,children:a.jsxs("svg",{x:"0px",y:"0px",viewBox:"0 0 100 100",children:[a.jsx("circle",{className:"primary",strokeWidth:"4",cx:"50",cy:"50",r:"48"}),a.jsx("line",{className:"primary",strokeLinecap:"round",strokeWidth:"4",x1:"50",y1:"50",x2:"85",y2:"50.5",children:a.jsx("animateTransform",{attributeName:"transform",dur:`${n}s`,type:"rotate",from:"0 50 50",to:"360 50 50",repeatCount:"indefinite"})}),a.jsx("line",{className:"primary",strokeLinecap:"round",strokeWidth:"4",x1:"50",y1:"50",x2:"49.5",y2:"74",children:a.jsx("animateTransform",{attributeName:"transform",dur:7.5*n+"s",type:"rotate",from:"0 50 50",to:"360 50 50",repeatCount:"indefinite"})})]})})});const Ay=s.memo(e=>{const{sx:t,speed:n=1.5,size:o=70,...r}=e;return a.jsx(V.Box,{sx:{width:`${o}px`,height:`${o}px`,zIndex:1,"& .primary":{fill:i=>i.palette.grey[600]},"& .secondary":{stroke:i=>i.palette.grey[600],fill:"none",opacity:.5},...t},...r,children:a.jsxs("svg",{x:"0px",y:"0px",viewBox:"0 0 100 100",children:[a.jsx("circle",{className:"secondary",strokeWidth:"4",cx:"50",cy:"50",r:"21"}),a.jsx("path",{className:"primary",d:"M73,50c0-12.7-10.3-23-23-23S27,37.3,27,50 M30.9,50c0-10.5,8.5-19.1,19.1-19.1S69.1,39.5,69.1,50",children:a.jsx("animateTransform",{attributeName:"transform",type:"rotate",dur:1*n+"s",from:"0 50 50",to:"360 50 50",repeatCount:"indefinite"})})]})})});s.memo(e=>{const{sx:t,speed:n=1,size:o=70,...r}=e;return a.jsx(V.Box,{sx:{width:`${o}px`,height:`${o}px`,zIndex:1,...t},...r,children:a.jsxs("svg",{x:"0px",y:"0px",viewBox:"0 0 100 100",children:[a.jsx("circle",{className:"primary",cx:"6",cy:"50",r:"6",children:a.jsx("animate",{attributeName:"opacity",dur:`${n}s`,values:"0;1;0",repeatCount:"indefinite",begin:"0.1"})}),a.jsx("circle",{className:"primary",cx:"26",cy:"50",r:"6",children:a.jsx("animate",{attributeName:"opacity",dur:`${n}s`,values:"0;1;0",repeatCount:"indefinite",begin:"0.2"})}),a.jsx("circle",{className:"primary",cx:"46",cy:"50",r:"6",children:a.jsx("animate",{attributeName:"opacity",dur:`${n}s`,values:"0;1;0",repeatCount:"indefinite",begin:"0.3"})})]})})}),s.memo(e=>{const{sx:t,speed:n=1,size:o=70,...r}=e;return a.jsx(V.Box,{sx:{width:`${o}px`,height:`${o}px`,zIndex:1,"& .primary":{fill:i=>i.palette.grey[600],stroke:"none"},...t},...r,children:a.jsxs("svg",{x:"0px",y:"0px",viewBox:"0 0 100 100",children:[a.jsx("circle",{className:"primary",cx:"6",cy:"50",r:"6",children:a.jsx("animateTransform",{attributeName:"transform",dur:`${n}s`,type:"translate",values:"0 15 ; 0 -15; 0 15",repeatCount:"indefinite",begin:"0.1"})}),a.jsx("circle",{className:"primary",cx:"30",cy:"50",r:"6",children:a.jsx("animateTransform",{attributeName:"transform",dur:`${n}s`,type:"translate",values:"0 10 ; 0 -10; 0 10",repeatCount:"indefinite",begin:"0.2"})}),a.jsx("circle",{className:"primary",cx:"54",cy:"50",r:"6",children:a.jsx("animateTransform",{attributeName:"transform",dur:`${n}s`,type:"translate",values:"0 5 ; 0 -5; 0 5",repeatCount:"indefinite",begin:"0.3"})})]})})}),s.memo(e=>{const{sx:t,speed:n=2,size:o=70,...r}=e;return a.jsx(V.Box,{sx:{width:`${o}px`,height:`${o}px`,zIndex:1,"& .primary":{stroke:i=>i.palette.grey[600],opacity:.5,fill:"none"},"& .secondary":{fillOpacity:i=>i.palette.grey[600],opacity:.8,stroke:i=>i.palette.background.paper},...t},...r,children:a.jsxs("svg",{x:"0px",y:"0px",viewBox:"0 0 100 100",children:[a.jsx("circle",{className:"primary",strokeWidth:"4",cx:"50",cy:"50",r:"44"}),a.jsx("circle",{className:"secondary",strokeWidth:"3",cx:"8",cy:"54",r:"6",children:a.jsx("animateTransform",{attributeName:"transform",dur:`${n}s`,type:"rotate",from:"0 50 48",to:"360 50 52",repeatCount:"indefinite"})})]})})});const Fy=s.memo(e=>{const{sx:t,speed:n=1,size:o=13,width:r=64,height:i=17,...l}=e;return a.jsxs(V.Box,{sx:{width:`${r}px`,height:`${i}px`,"& .primary":{backgroundColor:d=>d.palette.grey[600],top:(i-o)/2+"px",width:()=>`${o}px`,height:()=>`${o}px`},...t},className:ao("_traverse-ellipsis_14l1h_1","animated-icon"),...l,children:[a.jsx("div",{className:"primary"}),a.jsx("div",{className:"primary"}),a.jsx("div",{className:"primary"}),a.jsx("div",{className:"primary"})]})}),zy=a.jsx(Ay,{}),wi=s.memo(s.forwardRef((e,t)=>{const{sx:n,style:o,onMount:r,onUnmount:i,transitionDelay:l="1200ms",panel:d=!1,transparentBackground:c=!0,icon:u=zy,label:f,...p}=e,h=s.useMemo(()=>typeof f=="string"?a.jsx(V.Typography,{variant:"caption",component:"div",sx:{fontSize:"0.875rem",lineHeight:1.43,letterSpacing:"0.01071em"},children:f}):f,[f]),m=s.useRef(null),g=s.useMemo(()=>{let v=a.jsxs(V.Box,{sx:{display:"flex",flexDirection:"column",alignItems:"center",rowGap:"8px"},children:[h,u]});return d===!0&&(v=a.jsx(V.Paper,{elevation:0,sx:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",alignSelf:"center",marginBottom:"5%",backgroundColor:b=>b.palette.info.light,color:b=>b.palette.info.contrastText,paddingLeft:b=>b.spacing(2),paddingRight:b=>b.spacing(2),paddingTop:b=>b.spacing(2),paddingBottom:b=>b.spacing(1),rowGap:b=>b.spacing(1),borderRadius:b=>`${b.shape.borderRadius}px`,boxShadow:b=>b.shadows[2],"& .primary":{background:b=>`${st.alpha(b.palette.info.contrastText,.9)} !important`,boxShadow:b=>`0 0 0 1px ${b.palette.mode==="dark"?b.palette.text.secondary:b.palette.divider}`,boxSizing:"content-box",border:"solid transparent"},zIndex:1},children:v})),a.jsx(V.Box,{ref:Ud([m,t]),className:"animatable",sx:{cursor:"wait",boxSizing:"border-box",alignItems:"center",justifyContent:"center",display:"flex",flexDirection:"column",willChange:"opacity",opacity:c?.001:1,transitionProperty:"opacity",transitionDelay:l,transitionDuration:"320ms",transitionTimingFunction:"ease-in",overflow:"hidden",outline:"none",width:"100%",height:"100%",zIndex:99999,"&.animating":{opacity:1},"&.animating-exit":{opacity:0,transition:"opacity 210ms"},...n,...o},...p,children:a.jsxs(V.Box,{className:"center",sx:{display:"flex",flex:"1 1 100%",height:"100%",width:"100%",alignItems:"center",justifyContent:"center",boxSizing:"border-box",position:"relative"},children:[a.jsx(V.Box,{className:"backdrop",sx:{opacity:b=>c?1.5*b.palette.action.disabledOpacity:void 0,background:b=>c?void 0:b.palette.background.paper,backdropFilter:"blur(4px)",borderRadius:b=>`${b.shape.borderRadius}px`,zIndex:-1,position:"absolute",width:"100%",height:"100%",boxSizing:"border-box"}}),v]})})},[n,d]),x=s.useRef(!1),y=s.useRef(!1);return O8(()=>{if(m.current&&!x.current&&!y.current){if(y.current=!0,m.current.classList.contains("animatable")&&!m.current.classList.contains("animating")){let v=!1;const b=()=>{y.current&&(x.current=!0,y.current=!1,v=!0,r?.())};m.current&&m.current.addEventListener("transitionrun",b,{once:!0,capture:!0,passive:!0}),y.current&&m.current&&(window.getComputedStyle(m.current,null).opacity,m.current.classList.add("animating")),setTimeout(()=>{!v&&y.current&&m.current&&(m.current?.removeEventListener("transitionrun",b),b())},100)}else x.current=!0,y.current=!1,r?.();return()=>{}}},[m.current]),s.useEffect(()=>()=>{x.current&&(m.current?.classList.remove("animating"),x.current=!1,y.current=!1,i?.())},[]),g}));wi.displayName="LoadingPanel";const By=/^\s*at\s+(?:(async|new|await)\s+)?(.+?)\s+\((.+?):(\d+):(\d+)\)$/,Ny=/^\s*at\s+(?:(async|new|await)\s+)?(.+?):(\d+):(\d+)\s*$/,V5=e=>{if(!e)return"";try{e=new URL(e).pathname}catch{}return(e=e.replace(/^\/+/,"")).replace(/^@?fs[\\/]/,"")},qd=s.memo(({error:e,maxLines:t=Number.MAX_SAFE_INTEGER,hideLineNumbers:n=!1})=>{const[o,r]=s.useState(null);if(!e?.stack)return null;const i=(u=>{const f=[],p=(h,m=0)=>{h&&(f.push({error:h,depth:m}),h.cause&&h.cause instanceof Error&&p(h.cause,m+1))};return p(u),f.reverse()})(e).reverse(),l=[];i.forEach(({error:u},f)=>{const p=(u.stack||"").split(`
33
- `).filter(Boolean).map(h=>{let m=h.match(By);if(m){const[,g="",x,y,v,b]=m;return{line:`at ${g?g+" ":""}${x}`,location:`${V5(y).split(/[\\/]/).pop()}:${v}:${b}`}}if(m=h.match(Ny),m){const[,g="",x,y,v]=m,b=V5(x),C=`${b.split(/[\\/]/).pop()}:${y}:${v}`;return{line:`at ${g?g+" ":""}${C}`,location:b!==C?`${b}:${y}:${v}`:void 0}}return{line:h.trim()}});p.length&&(l.push({line:f?`Caused by: ${p[0].line}`:p[0].line,isBoundary:!0}),l.push(...p.slice(1)))});const d=t?l.slice(0,t):l,c=t&&l.length>t;return a.jsxs(V.Box,{sx:{width:"100%",mt:1},children:[a.jsxs(V.Box,{sx:{display:"flex",alignItems:"center",gap:1,borderRadius:1,px:1,py:.5},children:[a.jsxs(V.Typography,{variant:"caption",component:"div",sx:{fontSize:"0.75rem",opacity:.8},children:["Stack Trace(",i.length>1?` (${i.length} frames)`:"",")"]}),a.jsx(V.Box,{sx:{flex:1}}),o&&a.jsx(V.Typography,{variant:"caption",component:"div",sx:{fontSize:"0.625rem",opacity:.8},children:o}),a.jsx(V.IconButton,{size:"small",onClick:async()=>{try{let u=0;const f=l.map(p=>{if(p.isBoundary)return u=0,p.line;u++;let h=p.location&&p.line!==p.location?`${p.line} (${p.location})`:p.line;return u>=1&&(h=` ${h}`),h}).join(`
34
- `);await navigator.clipboard.writeText(f),r("Copied!"),setTimeout(()=>r(null),2e3)}catch(u){r("Can't copy!"),console.warn("Failed to copy stack trace:",u)}},sx:{color:"inherit",opacity:.7,"&:hover":{opacity:1}},title:"Copy stack trace",children:a.jsx(an.ContentCopy,{sx:{fontSize:"0.875rem"}})}),a.jsx(V.IconButton,{size:"small",onClick:()=>{console.log(e)},sx:{color:"inherit",opacity:.7,"&:hover":{opacity:1}},title:"Log error to console",children:a.jsx(an.BugReport,{sx:{fontSize:"0.875rem"}})})]}),a.jsxs(V.Box,{sx:{mt:1,backgroundColor:"rgba(0, 0, 0, 0.2)",borderRadius:1,p:1,maxHeight:"300px",overflow:"auto",fontFamily:"monospace",fontSize:"0.75rem",lineHeight:1.4},children:[d.map((u,f)=>u.isBoundary?a.jsx(V.Box,{sx:{py:1,mt:f>0?1:0,mb:.5,borderTop:f>0?"1px solid rgba(255, 255, 255, 0.1)":"none"},children:a.jsx(V.Typography,{variant:"caption",component:"div",sx:{fontSize:"0.75rem",fontWeight:"bold",color:p=>u.isBoundary?p.palette.text.primary:p.palette.text.secondary,display:"block"},children:u.line})},`error-${f}`):a.jsxs(V.Box,{sx:{display:"flex",alignItems:"flex-start",gap:1,py:.25,pl:1,"&:hover":{backgroundColor:"rgba(255, 255, 255, 0.05)"}},children:[!n&&a.jsx(V.Typography,{variant:"caption",component:"div",sx:{fontSize:"0.625rem",opacity:.5,minWidth:"20px",textAlign:"right",userSelect:"none"},children:f+1}),a.jsxs(V.Box,{sx:{flex:1,overflow:"hidden"},children:[a.jsx(V.Typography,{variant:"caption",component:"div",sx:{fontSize:"0.75rem",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",color:"inherit"},children:u.line}),u.location&&u.line!==u.location&&a.jsx(V.Typography,{variant:"caption",component:"div",sx:{fontSize:"0.625rem",opacity:.6,fontStyle:"italic"},children:u.location})]})]},`stack-${f}`)),c&&a.jsxs(V.Typography,{variant:"caption",component:"div",sx:{fontSize:"0.625rem",opacity:.6,fontStyle:"italic",textAlign:"center",display:"block",mt:1},children:["... and ",l.length-t," more frames"]})]})]})});qd.displayName="StackTrace";const P8=s.memo(s.forwardRef((e,t)=>{const{sx:n,icon:o=a.jsx(an.Error,{style:{fontSize:48}}),error:r,hideStackTrace:i=!1,stackTraceExpanded:l=!1,...d}=e,c=s.useMemo(()=>((u,f=!1)=>{if(s.isValidElement(u))return u;if(u instanceof Error)return a.jsxs(V.Box,{sx:{display:"flex",flexDirection:"column",maxWidth:"500px",width:"100%"},children:[a.jsx(V.Typography,{variant:"caption",component:"div",sx:{fontSize:"0.875rem",lineHeight:1.43,mb:1},children:u.message}),u.cause?a.jsxs(V.Typography,{variant:"caption",component:"div",sx:{fontSize:"0.875rem",lineHeight:1.43,letterSpacing:"0.01071em",mb:1,opacity:.8},children:["Caused by: ",u.cause instanceof Error?u.cause.message:String(u.cause)]}):null,!f&&a.jsx(qd,{error:u,hideLineNumbers:!0})]});const p=u==="string"?u:`Unknown Error: ${String(u)}`;return a.jsx(V.Typography,{variant:"caption",component:"div",sx:{fontSize:"0.875rem",lineHeight:1.43,letterSpacing:"0.01071em"},children:p})})(r,i,l),[r,i,l]);return s.useMemo(()=>a.jsx(V.Box,{ref:t,sx:{boxSizing:"border-box",alignItems:"center",justifyContent:"center",display:"flex",flexDirection:"row",overflow:"hidden",width:"100%",height:"100%",...n},...d,children:a.jsxs(V.Box,{sx:{display:"flex",flex:"1 1 100%",height:"100%",alignItems:"center",justifyContent:"center",boxSizing:"border-box",position:"relative"},children:[a.jsx(V.Box,{className:"backdrop",sx:{backdropFilter:"blur(4px)",borderRadius:u=>`${u.shape.borderRadius}px`,zIndex:-1,position:"absolute",width:"100%",height:"100%",boxSizing:"border-box"}}),a.jsx(V.Paper,{elevation:0,sx:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",rowGap:"8px",alignSelf:"center",marginBottom:"5%",backgroundColor:u=>u.palette.error.light,color:u=>u.palette.error.contrastText,paddingLeft:u=>u.spacing(2),paddingRight:u=>u.spacing(2),paddingTop:u=>u.spacing(2),paddingBottom:u=>u.spacing(2),borderRadius:u=>`${u.shape.borderRadius}px`,boxShadow:u=>u.shadows[2],"& .primary":{background:u=>`${u.palette.error.contrastText} !important`,border:"solid transparent"},zIndex:1},children:a.jsx(V.Box,{sx:{display:"flex",flexDirection:"column",alignItems:"center",gap:u=>u.spacing(2),width:"100%",maxWidth:"600px"},children:a.jsxs(V.Box,{sx:{display:"flex",flexDirection:"row",alignItems:"flex-start",gap:u=>u.spacing(2)},children:[o,c]})})})]})}),[n])}));P8.displayName="ErrorPanel";const A8=s.memo(s.forwardRef((e,t)=>{const{chips:n,sx:o,...r}=e,i=s.useMemo(()=>{if(!n)return null;let l=null;l=Array.isArray(n)?n:[n];const d=[];for(let c=0;c<l.length;c++){const u=l[c];let f=null;typeof u=="string"?f=a.jsx(V.Chip,{label:u,color:"primary",size:"small",sx:{scale:"0.8"}},"chip-"+c):s.cloneElement(u,{key:"chip-"+c}),d.push(f)}return d},[n]);return a.jsx(V.Box,{ref:t,sx:{display:"flex",flexDirection:"row",marginLeft:"4px",gap:"2px",...o},...r,children:i})}));var Nc="top",Na="bottom",Vc="right",F8="left",Vy=[Nc,Na,Vc,F8],z8="viewport",Li="popper";function y0(e){return e?(e.nodeName||"").toLowerCase():null}function Nr(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function pi(e){return e instanceof Nr(e).Element||e instanceof Element}function ni(e){return e instanceof Nr(e).HTMLElement||e instanceof HTMLElement}function Hc(e){return typeof ShadowRoot<"u"&&(e instanceof Nr(e).ShadowRoot||e instanceof ShadowRoot)}var cl=Math.max,H5=Math.min,$5=Math.round;function $c(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function B8(){return!/^((?!chrome|android).)*safari/i.test($c())}function Zd(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var o=e.getBoundingClientRect(),r=1,i=1;t&&ni(e)&&(r=e.offsetWidth>0&&$5(o.width)/e.offsetWidth||1,i=e.offsetHeight>0&&$5(o.height)/e.offsetHeight||1);var l=(pi(e)?Nr(e):window).visualViewport,d=!B8()&&n,c=(o.left+(d&&l?l.offsetLeft:0))/r,u=(o.top+(d&&l?l.offsetTop:0))/i,f=o.width/r,p=o.height/i;return{width:f,height:p,top:u,right:c+f,bottom:u+p,left:c,x:c,y:u}}function t0(e){return Nr(e).getComputedStyle(e)}function Hy(e){return["table","td","th"].indexOf(y0(e))>=0}function oi(e){return((pi(e)?e.ownerDocument:e.document)||window.document).documentElement}function ss(e){return y0(e)==="html"?e:e.assignedSlot||e.parentNode||(Hc(e)?e.host:null)||oi(e)}function W5(e){return ni(e)&&t0(e).position!=="fixed"?e.offsetParent:null}function N8(e){var t=Nr(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function U5(e){return Zd(oi(e)).left+N8(e).scrollLeft}function V8(e){var t=t0(e),n=t.overflow,o=t.overflowX,r=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+r+o)}function H8(e){return["html","body","#document"].indexOf(y0(e))>=0?e.ownerDocument.body:ni(e)&&V8(e)?e:H8(ss(e))}function $8(e,t){var n;t===void 0&&(t=[]);var o=H8(e),r=o===((n=e.ownerDocument)==null?void 0:n.body),i=Nr(o),l=r?[i].concat(i.visualViewport||[],V8(o)?o:[]):o,d=t.concat(l);return r?d:d.concat($8(ss(l)))}function Wc(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function q5(e,t,n){return t===z8?Wc(function(o,r){var i=Nr(o),l=oi(o),d=i.visualViewport,c=l.clientWidth,u=l.clientHeight,f=0,p=0;if(d){c=d.width,u=d.height;var h=B8();(h||!h&&r==="fixed")&&(f=d.offsetLeft,p=d.offsetTop)}return{width:c,height:u,x:f+U5(o),y:p}}(e,n)):pi(t)?function(o,r){var i=Zd(o,!1,r==="fixed");return i.top=i.top+o.clientTop,i.left=i.left+o.clientLeft,i.bottom=i.top+o.clientHeight,i.right=i.left+o.clientWidth,i.width=o.clientWidth,i.height=o.clientHeight,i.x=i.left,i.y=i.top,i}(t,n):Wc(function(o){var r,i=oi(o),l=N8(o),d=(r=o.ownerDocument)==null?void 0:r.body,c=cl(i.scrollWidth,i.clientWidth,d?d.scrollWidth:0,d?d.clientWidth:0),u=cl(i.scrollHeight,i.clientHeight,d?d.scrollHeight:0,d?d.clientHeight:0),f=-l.scrollLeft+U5(o),p=-l.scrollTop;return t0(d||i).direction==="rtl"&&(f+=cl(i.clientWidth,d?d.clientWidth:0)-c),{width:c,height:u,x:f,y:p}}(oi(e)))}function $y(e){var t=$8(ss(e)),n=["absolute","fixed"].indexOf(t0(e).position)>=0&&ni(e)?function(o){for(var r=Nr(o),i=W5(o);i&&Hy(i)&&t0(i).position==="static";)i=W5(i);return i&&(y0(i)==="html"||y0(i)==="body"&&t0(i).position==="static")?r:i||function(l){var d=/firefox/i.test($c());if(/Trident/i.test($c())&&ni(l)&&t0(l).position==="fixed")return null;var c=ss(l);for(Hc(c)&&(c=c.host);ni(c)&&["html","body"].indexOf(y0(c))<0;){var u=t0(c);if(u.transform!=="none"||u.perspective!=="none"||u.contain==="paint"||["transform","perspective"].indexOf(u.willChange)!==-1||d&&u.willChange==="filter"||d&&u.filter&&u.filter!=="none")return c;c=c.parentNode}return null}(o)||r}(e):e;return pi(n)?t.filter(function(o){return pi(o)&&function(r,i){var l=i.getRootNode&&i.getRootNode();if(r.contains(i))return!0;if(l&&Hc(l)){var d=i;do{if(d&&r.isSameNode(d))return!0;d=d.parentNode||d.host}while(d)}return!1}(o,n)&&y0(o)!=="body"}):[]}const Wy={name:"maxSize",enabled:!0,phase:"main",requiresIfExists:["offset","preventOverflow","flip"],fn:function(e){var t=e.state,n=e.name,o=function(m,g){g===void 0&&(g={});var x,y=g,v=y.placement,b=v===void 0?m.placement:v,C=y.strategy,k=C===void 0?m.strategy:C,_=y.boundary,I=_===void 0?"clippingParents":_,M=y.rootBoundary,F=M===void 0?z8:M,j=y.elementContext,T=j===void 0?Li:j,w=y.altBoundary,S=w!==void 0&&w,D=y.padding,E=D===void 0?0:D,R=function(B){return Object.assign({},{top:0,right:0,bottom:0,left:0},B)}(typeof E!="number"?E:(x=E,Vy.reduce(function(B,Z){return B[Z]=x,B},{}))),A=T===Li?"reference":Li,L=m.rects.popper,P=m.elements[S?A:T],z=function(B,Z,G,ie){var ee=Z==="clippingParents"?$y(B):[].concat(Z),le=[].concat(ee,[G]),ue=le[0],de=le.reduce(function(oe,fe){var Te=q5(B,fe,ie);return oe.top=cl(Te.top,oe.top),oe.right=H5(Te.right,oe.right),oe.bottom=H5(Te.bottom,oe.bottom),oe.left=cl(Te.left,oe.left),oe},q5(B,ue,ie));return de.width=de.right-de.left,de.height=de.bottom-de.top,de.x=de.left,de.y=de.top,de}(pi(P)?P:P.contextElement||oi(m.elements.popper),I,F,k),U=Zd(m.elements.reference),O=function(B){var Z,G=B.reference,ie=B.element,ee=B.placement,le=ee?ee.split("-")[0]:null,ue=ee?ee.split("-")[1]:null,de=G.x+G.width/2-ie.width/2,oe=G.y+G.height/2-ie.height/2;switch(le){case Nc:Z={x:de,y:G.y-ie.height};break;case Na:Z={x:de,y:G.y+G.height};break;case Vc:Z={x:G.x+G.width,y:oe};break;case F8:Z={x:G.x-ie.width,y:oe};break;default:Z={x:G.x,y:G.y}}var fe=le?function(Le){return["top","bottom"].indexOf(Le)>=0?"x":"y"}(le):null;if(fe!=null){var Te=fe==="y"?"height":"width";switch(ue){case"start":Z[fe]=Z[fe]-(G[Te]/2-ie[Te]/2);break;case"end":Z[fe]=Z[fe]+(G[Te]/2-ie[Te]/2)}}return Z}({reference:U,element:L,placement:b}),q=Wc(Object.assign({},L,O)),X=T===Li?q:U,re={top:z.top-X.top+R.top,bottom:X.bottom-z.bottom+R.bottom,left:z.left-X.left+R.left,right:X.right-z.right+R.right},$=m.modifiersData.offset;if(T===Li&&$){var W=$[b];Object.keys(re).forEach(function(B){var Z=[Vc,Na].indexOf(B)>=0?1:-1,G=[Nc,Na].indexOf(B)>=0?"y":"x";re[B]+=W[G]*Z})}return re}(t,e.options),r=t.modifiersData.preventOverflow||{x:0,y:0},i=r.x,l=r.y;let d=t.rects.popper,c=d.width,u=d.height,f=t.placement.split("-")[0],p=f==="left"?"left":"right",h=f==="top"?"top":"bottom";t.modifiersData[n]={width:c-o[p]-i,height:u-o[h]-l}}},Uy=[0,2],W8=s.memo(s.forwardRef((e,t)=>{const{sx:n,open:o,children:r,label:i,offsets:l=Uy,anchorEl:d,anchorPosition:c,onMount:u,onOpening:f,onOpen:p,onClosing:h,onClose:m,resizeOnOverflow:g=!0,...x}=e;if(Array.isArray(r))throw new Error("children can not be an array");const y=Ad(),v={name:"applyMaxSize",enabled:!0,phase:"beforeWrite",requires:["maxSize"],fn({state:z}){const{height:U}=z.modifiersData.maxSize;z.styles.popper.maxHeight=U-10+"px"}},b=s.useMemo(()=>{const z=[{name:"offset",options:{offset:l}},{name:"flip",enabled:!0,options:{rootBoundary:"document"}}];return g&&z.unshift(Wy,v),z},[g,l]),[C,k]=s.useState(!1),_=s.useRef(null),I=Yt(()=>{u?.(D.current,_.current)},[f]),M=Yt(f,[f]),F=Yt(p,[p]),j=Yt(h,[h]),T=Yt(()=>{k(!1),m?.()},[m]),[w,S]=s.useState(!1),D=s.useRef(null),E=s.useRef(!0),R=s.useMemo(()=>({onFirstUpdate:()=>{E.current&&(S(!0),I?.(),E.current=!1)}}),[o,C]);s.useEffect(()=>{o&&w?M?.():!o&&C&&j?.(),o&&k(o)},[o,w]);const A=s.useMemo(()=>({getBoundingClientRect:()=>c?new DOMRect(c?.left||0,c?.top||0,0,0):d.getBoundingClientRect()}),[c,d]);s.useImperativeHandle(t,()=>({instance:()=>_.current,element:()=>D.current}),[]);const{getPortalContainer:L}=Vd(),P=s.useMemo(()=>({zIndex:o?"1300":"1299",display:"flex",pointerEvents:C&&o?void 0:"none",maxWidth:"100%",maxHeight:"100%",...n}),[n,o,C]);return a.jsx(V.Popper,{ref:D,popperRef:_,container:L,anchorEl:A,open:C,role:void 0,popperOptions:R,transition:!0,sx:P,placement:"bottom-start",modifiers:b,...x,children:({TransitionProps:z,placement:U,...O})=>{const{in:q,onEnter:X,onExited:re,...$}=z??{};return a.jsx(V.Grow,{...$,in:o,onEnter:()=>{X?.(),F()},onExited:()=>{re?.(),T()},timeout:{enter:y.transitions.duration.shorter,exit:0},style:{transformOrigin:U==="bottom-start"?"left top":"center bottom"},children:typeof r=="function"?r({TransitionProps:z,placement:U,...O}):r||{}})}})}));W8.displayName="ExhibitPopper";const lr={Toolbar:"toolbar",Menuitem:"menuitem"},dn=e=>{const{closeFloat:t,closeFloatAll:n,floatReference:o,popupContainer:r,children:i,className:l,sx:d,...c}=e;return a.jsx(V.Box,{className:ao("menu",l),sx:{display:"flex",flexDirection:"column",...d},...c,children:i})},Z5=(e,t,n)=>a.jsx(an.ArrowDropDown,{sx:{marginLeft:e?void 0:t?"-5px":"-3px",marginRight:e?void 0:t?"-5px":"-6px",transform:()=>{let o;return t&&(o=(o?o+" ":"")+"scale(0.8)"),n&&(o=(o?o+" ":"")+"rotate(180deg)"),o}},color:"inherit"}),qy=/^#?([a-f\d])([a-f\d])([a-f\d])$/i,Zy=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i,Uc=function(e,t=null){if(!e)return e;e=e.replace(qy,function(o,r,i,l){return r+r+i+i+l+l});let n=Zy.exec(e);return n?t===null?`rgb(${parseInt(n[1],16)}, ${parseInt(n[2],16)}, ${parseInt(n[3],16)})`:`rgb(${parseInt(n[1],16)} ${parseInt(n[2],16)} ${parseInt(n[3],16)} / ${100*t}%)`:e},Jo=function(e,t=.2,n="light"){if(!e)return e;let o=n!=="dark";return t<0&&(o=!o,t*=-1),e=Uc(e),o?st.darken(e,Math.max(0,Math.min(1,1*t))):st.lighten(e,Math.max(0,Math.min(1,1.5*t)))};function Gd(e,t){t=r7.deepmerge({track:Jo(e.palette.background.paper,.05,e?.palette.mode),thumb:Jo(e.palette.background.paper,.3,e?.palette.mode),active:e.palette.primary.main,corner:e.palette.background.paper,outline:!1},t||{});const n={"&::-webkit-scrollbar, & *::-webkit-scrollbar":{backgroundColor:st.alpha(t.track,.2),width:"13px",height:"13px"},"&::-webkit-scrollbar-button":{display:"none"},"& .scrollbar-button":{fill:t.thumb,backgroundColor:"transparent",transition:"fill opacity 260ms ease",width:"13px",height:"13px"},"& .scrollbar-button:hover:not([disabled])":{fill:t.active},"& .scrollbar-button:disabled":{opacity:.8},"&::-webkit-scrollbar-track, & *::-webkit-scrollbar-track":{},"&::-webkit-scrollbar-track-piece, & *::-webkit-scrollbar-track-piece":{},"&::-webkit-scrollbar-thumb, & *::-webkit-scrollbar-thumb":{borderRadius:8,backgroundColor:t.thumb,minHeight:"24px",minWidth:"24px",border:`2px solid ${t.track}`},"&::-webkit-scrollbar-thumb:focus, & *::-webkit-scrollbar-thumb:focus":{backgroundColor:t.active,border:t.outline?t.outline:void 0},"&::-webkit-scrollbar-thumb:active, & *::-webkit-scrollbar-thumb:active":{backgroundColor:t.active,border:t.outline?t.outline:void 0},"&::-webkit-scrollbar-thumb:hover, & *::-webkit-scrollbar-thumb:hover":{backgroundColor:t.active,border:t.outline?t.outline:void 0},"&::-webkit-scrollbar-corner, & *::-webkit-scrollbar-corner":{backgroundColor:t.corner||t.thumb}};return zn.getOS()===zn.OSType.Firefox&&(n["* .pseudo-scrollbar"]={scrollbarColor:`${t.thumb} transparent`},n["* .pseudo-scrollbar:hover:not([disabled])"]={scrollbarColor:`${t.active} transparent`}),n}const U8=s.memo(s.forwardRef((e,t)=>{const{open:n,anchorEl:o,anchorPosition:r,label:i,floatReference:l,createPopupPanel:d=dn,popperProps:c,onMount:u,onClosing:f,onClose:p,onOpening:h,onOpen:m,children:g,sx:x,...y}=e,v=Yt(f,[f]),b=Yt(p,[p]),C=Yt(h,[h]),k=Yt(m,[m]),[_,I]=s.useState(),M=s.useRef(null),F=Yt((T,w)=>{I(T),u?.(M.current,w)},[u]),j=s.useMemo(()=>{const T={popupContainer:_,floatReference:l,children:g,...y},w=d(T);return a.jsx(V.Paper,{elevation:8,ref:M,sx:{display:"flex",overflow:"auto",outline:"none","&.MuiPaper-root":S=>Gd(S)},tabIndex:0,children:w})},[d,g,_,l]);return a.jsx(W8,{ref:t,anchorEl:o,anchorPosition:r,label:i,open:n,onMount:F,onOpening:C,onOpen:k,onClosing:v,onClose:b,...c,children:j})}));U8.displayName="ExhibitFloatPanel";const Kr=new Map;let M1=null;const Xr=new Map;let Pr=null;const R1=(e=null,t,n,o)=>(Pr&&(Pr.fn.clear(),Pr=null),e===0?t:(e===null&&(e=120),Pr={fn:zn.debounce(()=>t(),e),setReferences:n,isClose:o},Pr.fn)),q8=(e,t)=>{if(t===null)return;e.add(t);const n=Kr.get(t.key);if(!n)return;const o=Xr.get(n);o&&q8(e,o)},G5=e=>{const t=new Set;return q8(t,e),t},Mr=e=>{const{anchor:t,label:n=null,parentFloat:o=null,onOpen:r,onClose:i,popperProps:l,createPopupPanel:d=dn}=e??{},c=Yt(r,[r]),u=Yt(i,[i]),[f,p]=s.useState(null),[h,m]=s.useState(!1),[g,x]=s.useState(!1),y=s.useMemo(()=>o===null?(M1===null&&(M1={key:{label:"root"},isRoot:!0,parent:null,open:()=>null,close:B=>null,closeChild:B=>null,onChildVisible:()=>{},onChildHidden:()=>{},closeAll:()=>A(0),floatElement:()=>null,anchorElement:()=>null}),M1):o,[]),v=s.useMemo(()=>({label:n}),[]),b=s.useRef(null),C=s.useRef(t);s.useEffect(()=>{C.current=t},[t]);const k=B=>{const Z=Kr.get(B);let G=null;return Z&&(G=Xr.get(Z)?.close(0)),G},_=()=>k(z.key),[I,M]=s.useState(),F=()=>{if(!f)return void S();const B=new Promise((Z,G)=>{M(ie=>({resolve:Z,reject:G}))});return _(),Kr.delete(y.key),p(!1),B};s.useEffect(()=>{I&&(I.resolve(),M(null))},[h,g,I]);const j=s.useCallback(()=>{let B=y;for(;B.parent;)B=B.parent;return k(B.key)},[]),T=()=>{if(f)return void S();y&&Xr.get(y.key)?.open(0);const B=Kr.get(y.key);B&&B!==v&&Xr.get(B)?.close(0),requestAnimationFrame(()=>{Kr.set(y.key,z.key),p(!0)})},[w,S]=s.useReducer(B=>B+1,0),D=s.useCallback(B=>d===null?null:d({closeFloat:A,closeFloatAll:P,...B}),[d]),E=d===null,R=Yt((B=120)=>R1(B,T,new Set([z]),!1)(),[T]),A=Yt((B=60)=>R1(B,F,G5(z),!0)(),[F]),L=Yt((B=360)=>R1(B,_,G5((Z=>{const G=Kr.get(Z.key);return G&&Xr.get(G)||null})(z)),!0)(),[_]),P=Yt(j,[j]),z=s.useMemo(()=>({key:v,isRoot:!1,label:n,parent:y,onChildVisible:()=>{x(!0)},onChildHidden:()=>{x(!1)},open:R,close:A,closeChild:L,closeAll:P,floatElement:()=>b.current,anchorElement:()=>C.current}),[]);s.useEffect(()=>{Xr.set(v,z)},[z]),s.useEffect(()=>()=>{Xr.delete(v),A(0)},[]),s.useEffect(()=>{f&&!E&&(m(!0),y.onChildVisible())},[f,E]);const U=s.useCallback(B=>{B.which===mo.Escape&&(B.preventDefault(),B.stopPropagation(),A(0))},[]),O=s.useRef(null),q=s.useCallback(()=>{const B=O.current,Z=b.current;B&&Z&&(requestAnimationFrame(()=>{(Z.contains(document.activeElement)||document.activeElement===document.body)&&B.focus()}),O.current=null),u?.()},[]),X=s.useCallback(B=>{b.current=B,B.addEventListener("focus",G=>{O.current=G.relatedTarget},{once:!0,passive:!0});const Z=document.activeElement;requestAnimationFrame(()=>{Z===document.activeElement&&B.focus()})},[]),[re,$]=s.useState();s.useEffect(()=>{E&&(f?c?.():f===!1&&u?.()),$(h?a.jsx(U8,{floatReference:z,open:f,label:n,anchorEl:t,onOpening:()=>{c?.(),y.onChildVisible()},onClosing:q,onClose:()=>{m(!1),y.onChildHidden()},onMount:X,popperProps:{onKeyDown:U,onMouseEnter:B=>{f&&Pr?.isClose&&Pr.setReferences.has(z)&&(Pr.fn.clear(),Pr=null,z.closeChild())},...l},createPopupPanel:D}):null)},[h,f,n,E,l,D,w]);const W=Yt(B=>{if(Kr.size===0)return;let Z=!1;Kr.forEach(G=>{const ie=Xr.get(G);!Z&&ie&&(ie.floatElement()?.contains?.(B.target)&&(Z=!0),ie.anchorElement()?.contains?.(B.target)&&(Z=!0))}),Z||j()},[j]);return s.useEffect(()=>{if(!f||!y.isRoot)return;const B=Z=>{W(Z)};return document.addEventListener("mousedown",B),document.addEventListener("touchstart",B),document.addEventListener("focus",B),()=>{document.removeEventListener("mousedown",B),document.removeEventListener("touchstart",B),document.removeEventListener("focus",B)}},[f,y]),{component:re,reference:z}},Gy=s.memo(s.forwardRef((e,t)=>{const{nestedChildren:n,variant:o,disabled:r=!1,createPopupPanel:i,...l}=e,d={disabled:r,createPopupPanel:Yt(c=>{if(!n||n.length===0)return null;const{popupContainer:u,floatReference:f,...p}=c,h=[];for(let m=0;m<n.length;m++){const g=n[m];g&&h.push(a.jsx(Gy,{parentFloat:f,...p,...g},m))}return a.jsxs(V.Box,{ref:t,sx:{display:"flex",flexDirection:"column",paddingTop:"4px",paddingBottom:"4px"},children:["Children here",h,a.jsx(Po,{parentFloat:f,children:"Close other children"})]})},[n]),...l};return a.jsx(o===lr.Toolbar?gr:Wl,{...d})})),Ky={placement:"right-start"},Z8=s.memo(s.forwardRef((e,t)=>{const{children:n,sx:o,parentFloat:r,createPopupPanel:i,popperProps:l=Ky,label:d,...c}=e;(function(y){if(!y)throw new Error("Invariant failed")})(s.isValidElement(n));const u=n,f=s.useMemo(()=>({...u?.props,...c,onContextMenu:y=>{u?.props?.onContextMenu?.(y),y.isDefaultPrevented()||(c?.onContextMenu?.(y),y.isDefaultPrevented()||(m(y),y.preventDefault()))}}),[c,u?.props]),p=Yt(i,[i]),[h,m]=s.useState(null),{reference:g,component:x}=Mr({label:d??"contextMenu",popperProps:l,parentFloat:r,anchor:{getBoundingClientRect:()=>new DOMRect(h?.clientX||0,h?.clientY||0)},onClose:()=>m(null),createPopupPanel:p});return s.useEffect(()=>{h?g.open(0):g.close(0)},[h]),a.jsxs(a.Fragment,{children:[s.cloneElement(n,f),x]})})),Zo=s.forwardRef((e,t)=>{const{slotProps:n,...o}=e,{getPortalContainer:r}=Vd();return a.jsx(V.Tooltip,{ref:t,slotProps:{...n,popper:{container:r,...n?.popper||{}}},...o})});Zo.displayName="SimpleTooltip";const Oi=s.memo(e=>{const{modifier:t,sx:n,...o}=e;return a.jsx(V.Box,{sx:{marginLeft:"1px",marginRight:"1px",borderRadius:"4px",borderStyle:"solid",borderTopWidth:"1px",borderLeftWidth:"1px",borderRightWidth:"1px",borderBottomWidth:"2px",borderTopColor:r=>st.alpha(r.palette.background.paper,r.palette.action.disabledOpacity),borderLeftColor:r=>st.alpha(r.palette.background.paper,r.palette.action.disabledOpacity),borderRightColor:r=>st.alpha(r.palette.background.paper,r.palette.action.disabledOpacity),borderBottomColor:r=>st.alpha(r.palette.background.paper,1-r.palette.action.disabledOpacity),backgroundColor:r=>st.alpha(r.palette.action.hover,r.palette.action.disabledOpacity),paddingLeft:"4px",paddingRight:"4px",minHeight:"1.6em",display:"flex",justifyContent:"center",alignItems:"center",boxSizing:"content-box",overflow:"hidden",...n},...o,children:a.jsx(V.Box,{sx:{display:"flex",alignItems:"center",justifyContent:"center",textAlign:"center","& *":{fontWeight:"500"}},children:t})})}),Xy=zn.getOS()===zn.OSType.MacOS||zn.getOS()===zn.OSType.IOS?"Cmd":"Ctrl",Kd=(e,t=!1,n=null)=>{if(Array.isArray(e)){let i=[],l=e;for(let d=0;d<l.length;d++)i.push(Kd(l[d],t,n??""+d));return a.jsx(V.Box,{sx:{display:"flex",alignItems:"center",flexDirection:"column"},children:i},n)}if(!e?.key)return null;const o={};for(let i=0;e.modifiers&&i<e.modifiers.length;i++)o[e.modifiers[i]]=!0;const r=[];return o?.ctrl&&(r.push(a.jsx(Oi,{modifier:t?"^":a.jsx("div",{style:{paddingRight:"1px"},children:Xy})},"ctrl")),r.push("+")),o?.alt&&(r.push(a.jsx(Oi,{modifier:t?"⌥":"Alt"},"alt")),r.push("+")),o?.shift&&(r.push(a.jsx(Oi,{modifier:t?"⇧":a.jsx("div",{style:{paddingRight:"1px"},children:"Shift"})},"shift")),r.push("+")),o?.meta&&(r.push(a.jsx(Oi,{modifier:t?a.jsx("div",{style:{paddingTop:"1px"},children:"⌘"}):"Meta"},"meta")),r.push("+")),r.push(a.jsx(Oi,{modifier:ix.toPrettyKeyCode(e.key)},"character")),a.jsx(V.Box,{sx:{display:"flex",alignItems:"center"},children:r},n)},go=s.memo(s.forwardRef((e,t)=>{const{disabled:n=!1,label:o,shortcut:r,chips:i,description:l,maxWidth:d=280,useModifierSymbols:c=!1,children:u,simple:f,componentDisabled:p=!1,sx:h,...m}=e;let g=null;return r&&(g=Kd(r,c)),a.jsx(Zo,{slotProps:{popper:{sx:{"& .MuiTooltip-tooltip":{marginTop:"0px !important"},...h},modifiers:[{name:"offset",options:{offset:[0,14]}}]}},className:"tooltip-wrapper",tabIndex:-1,title:!n&&o?a.jsxs(V.Box,{sx:{maxWidth:`${d}px`},ref:t,children:[a.jsxs(V.Box,{sx:{display:"flex",flexDirection:"row",marginBottom:l?"4px":"0px"},children:[a.jsx(V.Typography,{variant:"subtitle1",component:"div",flex:"1 1 100%",children:o}),i?a.jsx(A8,{chips:i}):null,g?a.jsx(V.Box,{sx:{marginLeft:"8px"}},"leadingSpace"):a.jsx(a.Fragment,{}),g]}),l?a.jsx(V.Typography,{variant:"caption",sx:{whiteSpace:"pre-line",lineHeight:"1.4"},children:l}):a.jsx(a.Fragment,{})]}):"",enterDelay:260,enterNextDelay:130,leaveDelay:230,disableInteractive:!0,...m,children:a.jsx("div",{style:{display:"flex",alignItems:"stretch",justifyContent:"stretch"},children:u})})})),Bs=a.jsx(di,{}),Yy=ve(a.jsx(_d,{})),Wo=s.memo(s.forwardRef((e,t)=>{const{dense:n=!0,outlined:o=!1,disableHover:r=!1,parentFloat:i,selected:l,icon:d,tooltipProps:c,children:u,primary:f,sx:p,className:h,onFocus:m,onBlur:g,...x}=e,[y,v]=s.useState(!1),b={marginRight:"0px",padding:n?"2px":"7px",borderRadius:M=>`${M.shape.borderRadius}px`,color:M=>f?void 0:M.palette.text.icon??M.palette.action.active,border:M=>`solid ${o?M.palette.divider:"transparent"} 1px`,"& .MuiTouchRipple-child":{borderRadius:M=>`${M.shape.borderRadius}px !important`},"&.Mui-selected":{backgroundColor:M=>st.alpha(M.palette.text.primary,M.palette.action.selectedOpacity),border:M=>`solid ${o?M.palette.text?.primary:M.palette.divider} 1px`},"&.Mui-disabled":{border:M=>`solid ${o?M.palette.divider:"transparent"} 1px`},"&.Mui-disabled path.styled":{filter:"grayscale(65%)",opacity:".8"},"&.Mui-focusVisible":{outline:"solid transparent 1px",border:"1px solid transparent"},...p},C={"&:hover:not(.Mui-disabled, [disabled])":{color:M=>M.palette.text.primary,border:M=>`solid ${o?M.palette.text?.primary:M.palette.divider} 1px`,"&.Mui-selected":{backgroundColor:M=>st.alpha(M.palette.text.primary,M.palette.action.selectedOpacity+M.palette.action.hoverOpacity)},"> .outline-hover":{outline:M=>`solid ${o?M.palette.text?.primary:M.palette.divider} 1px`},backgroundColor:null},"&.Mui-focusVisible":{outline:M=>`solid ${M.palette.primary.main} 1px`,border:M=>`1px solid ${M.palette?.primary?.main}`,zIndex:1}};let k=b;r||(k=zn.mergeContentful(b,C));const _=s.useMemo(()=>{let M=typeof d=="function"?d():d;return M===null?M:M||(l===void 0?Bs:Yy)},[d,l]);let I=a.jsxs(V.IconButton,{component:"div",ref:t,className:ao({"Mui-focusVisible":y,"Mui-selected":l},h),onFocus:M=>{v(!0),m?.(M)},onBlur:M=>{v(!1),g?.(M)},size:"small",TouchRippleProps:{center:!1},sx:k,edge:"end",...x,children:[_,u]});if(c)if(c.simple&&c.label&&!c.disabled){const{label:M,description:F,maxWidth:j,shortcut:T,useModifierSymbols:w,componentDisabled:S,simple:D,chips:E,...R}=c;I=a.jsx(Zo,{disableInteractive:!0,title:M??"",...R,children:a.jsx(V.Box,{sx:{display:"flex"},children:I})})}else I=a.jsx(go,{children:I,...c});return I})),Jy=e=>e.icon,Po=s.memo(s.forwardRef((e,t)=>{const{icon:n=Bs,renderIcon:o=Jy,parentFloat:r,className:i,onFocus:l,selected:d,onBlur:c,onMouseOver:u,onMouseOut:f,onMouseEnter:p,disabled:h,children:m,sx:g,tooltipProps:x,chips:y,primary:v,...b}=e,[C,k]=s.useState(!1),[_,I]=s.useState(!1),M=s.useMemo(()=>{const j=o?.({icon:n,disabled:h,selected:d});return j?a.jsx(V.ListItemIcon,{className:ao({"Mui-focusVisible":C,"Mui-hovered":_}),sx:{"& .MuiSvgIcon-root":{color:T=>v?void 0:T.palette.text.icon??T.palette.action.active},"&.Mui-hovered:not(.Mui-disabled, [disabled])":{"& .MuiSvgIcon-root":{color:T=>T.palette.text.primary}}},children:j}):null},[o,h,n,C,_,v,d]);let F=a.jsxs(V.MenuItem,{ref:t,disabled:h,onMouseOver:j=>{u?.(j),j.isDefaultPrevented()||I(!0)},onMouseOut:j=>{f?.(j),j.isDefaultPrevented()||I(!1)},onMouseEnter:j=>{p?.(j),j.isDefaultPrevented()||r?.closeChild()},TouchRippleProps:{center:!1},className:ao({"Mui-focusVisible":C,"Mui-hovered":_},i),onFocus:j=>{l?.(j),k(!0)},onBlur:j=>{c?.(j),k(!1)},sx:{flex:"1 1 100%","&.Mui-disabled path.styled":{filter:"grayscale(65%)"},"&.Mui-selected":{color:j=>j.palette.text.primary},color:j=>j.palette.text.secondary,"&.Mui-hovered:not(.Mui-disabled, [disabled])":{color:j=>j.palette.text.primary},...g},...b,children:[M,m,y?a.jsx(A8,{chips:y}):null]});return x&&(F=a.jsx(go,{children:F,placement:"right-start",...x})),F})),fi=s.memo(s.forwardRef((e,t)=>{const{children:n,sx:o,primary:r=!1,variant:i="subtitle1",...l}=e;return a.jsx(a.Fragment,{children:a.jsx(V.Typography,{ref:t,variant:i,component:"div",sx:{userSelect:"none",fontWeight:"500",paddingLeft:"8px",paddingTop:i==="subtitle1"?"2px":void 0,paddingBottom:i==="subtitle1"?"2px":void 0,color:d=>r?void 0:d.palette.text.secondary,...o},...l,children:n})})})),gr=s.memo(s.forwardRef((e,t)=>{const{dense:n=!0,outlined:o=!1,label:r,selected:i=!1,onQuickClick:l,parentFloat:d,createPopupPanel:c,popupProps:u,onPopupOpen:f,onPopupClose:p,quickButtonProps:h,createQuickButton:m,tooltip:g="",createTooltip:x,icon:y,disabled:v,buttonProps:b=zn.EmptyObject,disableHover:C,touchRippleRef:k,primary:_,children:I,sx:M,className:F,...j}=e,T=Ad(),w=s.useMemo(()=>{const oe=(fe,Te,Le,ce=Le)=>{const he=typeof o=="boolean"?null:o[fe];return typeof he=="function"?he(Te):he||(o?Le:ce)};return{outline:{color:fe=>oe("color",fe,fe.palette.divider,"transparent"),hoverColor:fe=>oe("hoverColor",fe,fe.palette.text?.primary,fe.palette.divider),focusColor:fe=>oe("focusColor",fe,fe.palette?.primary?.main)},active:T.palette.mode==="dark"?T.palette.text.secondary:T.palette.text.primary,text:T.palette.text.icon??T.palette.action.active}},[o,T]),[S,D]=s.useState(!1),[E,R]=s.useState(!1),[A,L]=s.useState(!1),P=s.useRef(null),z=s.useRef(null),U=Mr({anchor:P.current,label:r,createPopupPanel:c,parentFloat:d,popperProps:u?.popperProps,onClose:()=>{D(!1),p?.()},onOpen:()=>{D(!0),f?.()}}),O=Yt(oe=>{l?.(oe),U.reference.close(0)},[l,U]),q=Yt(()=>{S?U.reference.close(0):U.reference.open(0)},[S,U,d,r]),X=s.useMemo(()=>{const oe={"&.bordered":{borderWidth:"1px",borderRadius:"0px",borderTopStyle:"solid",borderBottomStyle:"solid",borderColor:we=>w.outline.color(we),"&.Mui-focusVisible":{border:we=>`1px solid ${w.outline.focusColor(we)} !important`},"&:hover:not(.Mui-disabled, [disabled])":{borderColor:()=>C?"transparent":void 0,backgroundColor:()=>C?"transparent":void 0},"&.Mui-hovered:not(.Mui-disabled, [disabled])":{borderColor:we=>w.outline.hoverColor(we)},"&.Mui-selected:not(.Mui-disabled, [disabled])":{borderColor:we=>w.outline.hoverColor(we)},"&.left":{borderTopLeftRadius:we=>`${we.shape.borderRadius}px`,borderBottomLeftRadius:we=>`${we.shape.borderRadius}px`,borderLeftStyle:"solid"},"&.hard-right":{borderRightStyle:"solid",borderRightWidth:"1px",borderRightColor:we=>w.outline.color(we)},"&.right":{borderTopRightRadius:we=>`${we.shape.borderRadius}px`,borderBottomRightRadius:we=>`${we.shape.borderRadius}px`,borderRightStyle:"solid"},"&.divider":{borderLeftWidth:"0px !important"}},"& .MuiTouchRipple-child":{borderRadius:we=>`${we.shape.borderRadius}px !important`}},fe={"&.Mui-selected":{backgroundColor:we=>st.alpha(we.palette.primary.main,we.palette.action.selectedOpacity),"&:hover:not(.Mui-disabled)":{backgroundColor:we=>st.alpha(we.palette.primary.main,we.palette.action.selectedOpacity+we.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:we=>st.alpha(we.palette.primary.main,we.palette.action.selectedOpacity)}}}},Te={maxHeight:"100%","&.Mui-selected":{backgroundColor:we=>st.alpha(we.palette.text.icon??we.palette.action.active,we.palette.action.selectedOpacity),"&:hover:not(.Mui-disabled)":{backgroundColor:we=>st.alpha(we.palette.text.icon??we.palette.action.active,we.palette.action.selectedOpacity+we.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:we=>st.alpha(we.palette.text.icon??we.palette.action.active,we.palette.action.selectedOpacity)}}},"&:hover:not(.Mui-disabled, [disabled])":{color:we=>we.palette.text.primary},backgroundColor:()=>C?"transparent":void 0,color:we=>we.palette.text.icon,"&.Mui-disabled path.styled":{filter:"grayscale(65%)",opacity:".8"},padding:()=>n?"2px 3px":"7px",marginRight:"0"},Le=zn.mergeContentful(Te,oe),ce=zn.mergeContentful(Le,fe),he=zn.mergeContentful(Te,oe);return{quickButtonStyling:Le,openQuickButtonStyling:ce,compoundStyling:he,openCompoundStyling:zn.mergeContentful(he,fe)}},[w,C]),re=Yt(oe=>{const{children:fe,...Te}=oe;return a.jsx(Zo,{...Te,disableInteractive:!0,children:fe})},[]),$=l||m,W=$&&(h?.tooltip||h?.createTooltip),B=oe=>{const{tooltip:fe,createTooltip:Te,sx:Le,...ce}=oe;let he=a.jsx(V.IconButton,{sx:{...Le},component:"div",...ce});return W&&(he=(Te??re)({title:S?"":fe??g,children:a.jsx("div",{children:he})},S)),he},Z={onKeyDown:oe=>{oe.keyCode===mo.Space?q():oe.keyCode===mo.F4||oe.keyCode===mo.Down?U.reference.open(0):oe.keyCode===mo.Up&&U.reference.close(0)}};let G=a.jsx(a.Fragment,{});const ie=s.useMemo(()=>typeof y=="function"?y():y,[y]);if($){let oe=S?X.openQuickButtonStyling:X.quickButtonStyling;const fe=(m||B)({tabIndex:-1,disabled:v,size:"small",edge:"end",onMouseEnter:()=>{U.reference.parent.closeChild()},onMouseDown:Le=>{Le.button===0&&(Le.preventDefault(),O(Le))},touchRippleRef:k,children:ie,...h,className:ao({"Mui-focusVisible":E||S,"Mui-selected":i,"Mui-hovered":A||S,"Mui-disabled":v,bordered:!0,left:!0,"hard-right":!0},h?.className),sx:{...X.quickButtonStyling,height:"100%",...h?.sx}});let Te=Z5(!0,n,S);W&&(Te=(x??re)({title:S?"":g,children:Te},S)),G=a.jsxs(a.Fragment,{children:[fe,a.jsx(V.IconButton,{ref:z,component:"div",className:ao({"Mui-selected":S,"Mui-hovered":A||S,"Mui-disabled":v,"Mui-focusVisible":E||S,bordered:!0,right:!0,divider:!0}),sx:{paddingLeft:(n?0:2)+"px",paddingRight:(n?0:2)+"px",width:()=>"1em",...X.quickButtonStyling,...oe},TouchRippleProps:{center:!1},tabIndex:-1,disabled:v,size:"small",edge:"end",onMouseDown:Le=>{Le.button===0&&(Le.preventDefault(),q())},children:Te})]})}else{let oe=S?X.openCompoundStyling:X.compoundStyling;G=a.jsx(Wo,{ref:z,tabIndex:-1,disabled:v,size:"small",icon:ie,className:ao({"Mui-selected":S||i,"Mui-hovered":A,"Mui-disabled":v,"Mui-focusVisible":E||S,bordered:!0,left:!0,right:!0}),sx:{...X.quickButtonStyling,...oe},onMouseDown:fe=>{fe.button===0&&(fe.preventDefault(),q())},children:Z5(!1,n,S)})}const{className:ee,sx:le,...ue}=b;let de=a.jsx(V.Box,{onFocus:()=>R(!0),onBlur:()=>R(!1),onMouseOver:()=>L(!0),onMouseOut:()=>L(!1),...Z,"aria-label":"split button",ref:P,tabIndex:v?void 0:0,className:ao(ee,"split-button-root",{"Mui-focusVisible":E||S,"Mui-selected":S||i,"Mui-hovered":A,"Mui-disabled":v}),sx:{display:"flex",flex:"1 1 100%",alignItems:"center",width:"fit-content","&:not(.Mui-disabled)":{cursor:"pointer"},marginLeft:o?"1px":"0px",marginRight:o?"1px":"0px",borderRadius:oe=>`${oe.shape.borderRadius}px`,"&.Mui-focusVisible":{outline:oe=>`solid ${oe.palette.primary.main} 1px`,zIndex:2},...le},...ue,children:G});return W||(de=(x??re)({title:S?"":g,children:de},S)),a.jsxs(V.Box,{className:ao(F,"popupIconButton"),ref:t,...j,sx:{zIndex:E||S?2:void 0,display:"flex",alignItems:"center",...M},children:[de,U.component]})}));gr.displayName="ExhibitPopupIconButton";const Qy={},Wl=s.memo(s.forwardRef((e,t)=>{const{selected:n=!1,label:o,onQuickClick:r,parentFloat:i,createPopupPanel:l,popupProps:d=Qy,onPopupOpen:c,onPopupClose:u,quickButtonProps:f,createQuickButton:p,tooltip:h="",createTooltip:m,icon:g,disabled:x,touchRippleRef:y,primary:v,children:b,sx:C,...k}=e,[_,I]=s.useState(!1),[M,F]=s.useState(!1),[j,T]=s.useState(!1),[w,S]=s.useState(!1),D=s.useRef(null),E=s.useRef(null),R=s.useMemo(()=>{if(!d)return;const{popperProps:W}=d;return{placement:"right-start",offsets:[-4,-2],...W}},[d]),A=Mr({anchor:D.current,label:o,createPopupPanel:l,parentFloat:i,popperProps:R,onClose:()=>{I(!1),u?.()},onOpen:()=>{I(!0),c?.()}}),L=Yt(W=>{W.button===0&&(r?.(W),A.reference.close(0))},[r]),P=a.jsx(an.ArrowRight,{sx:{transform:()=>{}}}),z={"&.Mui-selected":{color:W=>W.palette.text.primary,"& svg * ":{color:W=>W.palette.text.primary}}},U=s.useCallback(W=>{const{children:B,...Z}=W;return a.jsx(Zo,{...Z,disableInteractive:!0,children:B})},[]),O=r||p,q=W=>{const{tooltip:B,createTooltip:Z,...G}=W;return a.jsx(Po,{icon:g,className:ao({"Mui-hovered":j}),sx:{flex:"1 1 100%",...z},...G,children:o})},X={onFocus:()=>{F(!0)},onBlur:()=>F(!1),onMouseOver:()=>{T(!0)},onMouseLeave:()=>{T(!1)},onMouseEnter:()=>{A.reference.open()},onMouseDown:W=>{W.button===0&&W.preventDefault()}};let re=a.jsx(a.Fragment,{});if(O){const W=(p||q)({tabIndex:-1,disabled:x,onMouseEnter:()=>{A.reference.parent.closeChild()},onMouseDown:B=>{B.button===0&&(B.preventDefault(),L(B))},className:ao("quick-left",{},f?.className),...f});re=a.jsxs(a.Fragment,{children:[W,a.jsx(V.Divider,{sx:{ml:"0px",mr:"0px"},orientation:"vertical",variant:"middle",flexItem:!0}),a.jsx(V.MenuItem,{ref:E,className:ao({"Mui-selected":_,"Mui-hovered":j}),sx:{borderTopLeftRadius:"0px",borderBottomLeftRadius:"0px",paddingLeft:"0px",paddingRight:"0px",marginLeft:"0px",color:B=>v?void 0:B.palette.text.secondary,"&.Mui-hovered:not(.Mui-disabled, [disabled])":{color:B=>B.palette.text.primary},...z},tabIndex:-1,disabled:x,...X,children:a.jsx(V.Box,{className:"expand-icon",sx:{flex:"none",display:"flex",border:"1px solid transparent",paddingTop:"1px",paddingBottom:"1px",color:B=>v?void 0:B.palette.text.icon??B.palette.action.active},onMouseOver:B=>{B.preventDefault(),S(!0)},onMouseLeave:()=>{S(!1)},onClick:B=>{B.preventDefault(),_?A.reference.close():A.reference.open()},children:P})})]})}else re=a.jsxs(Po,{ref:E,tabIndex:-1,disabled:x,icon:g,className:ao({"Mui-selected":_||n,"Mui-hovered":j}),sx:{flex:"1 1 100%",paddingRight:"0px",...z},onClick:W=>{W.preventDefault(),_?A.reference.close():A.reference.open()},...X,children:[a.jsx("div",{style:{flex:"1 1 100%"},children:o}),a.jsx(V.Box,{className:"expand-icon2",sx:{flex:"none",display:"flex",color:W=>v?void 0:W.palette.text.icon??W.palette.action.active},children:P})]});let $=a.jsx(V.Box,{"aria-label":"split button",ref:D,tabIndex:x?void 0:0,className:ao({"Mui-disabled":x,"Mui-selected":_,"Mui-focusVisible":M||_,"Mui-hovered":j}),sx:{display:"flex",flex:"1 1 100%",alignItems:"center",width:"fit-content","& .quick-left":{borderTopRightRadius:"0px",borderBottomRightRadius:"0px",marginRight:"-1px"},"&.Mui-disabled path.styled":{filter:"grayscale(65%)",opacity:".8"},...C},...k,children:re});return O&&!w&&(f?.tooltip||f?.createTooltip)&&($=(f?.createTooltip??U)({title:_?"":$??f?.tooltip,children:$},_)),a.jsxs(V.Box,{ref:t,sx:{zIndex:M||_?2:void 0,display:"flex"," .tooltip-wrapper":{display:"flex",flex:"1 1 100%"}},children:[$,A.component]})})),G8=s.memo(s.forwardRef((e,t)=>{const{onSelectToggle:n,selected:o=!1,label:r,shortcut:i,tabIndex:l=0,preventFocus:d=!1,...c}=e;return a.jsx(go,{label:r,shortcut:i,children:a.jsx(Wo,{ref:t,outlined:!1,tabIndex:l,selected:o,onMouseDown:u=>{d&&u.preventDefault()},onClick:()=>{n?.(!o)},...c})})})),Ul=s.memo(s.forwardRef((e,t)=>{const{children:n,selected:o=!0,outlined:r=!0,sx:i,...l}=e,d={display:"flex",border:u=>o?`solid ${r?u.palette.divider:"transparent"} 1px`:"solid transparent 1px",borderRadius:u=>`${u.shape.borderRadius}px`,backgroundColor:u=>{if(o)return st.alpha(u.palette.text.icon??u.palette.action.active,u.palette.action.selectedOpacity)}};let c=n;return c===null&&(c=a.jsx(di,{})),c||(c=a.jsx(_d,{})),c=ve(c),a.jsx(V.Box,{ref:t,sx:{...d,...i},...l,children:c})}));function vo(){return vo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)({}).hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},vo.apply(null,arguments)}function K8(e,t){if(e==null)return{};var n={};for(var o in e)if({}.hasOwnProperty.call(e,o)){if(t.indexOf(o)!==-1)continue;n[o]=e[o]}return n}var rr,F0,eb={state:{},updateModal:function(){},hideModal:function(){},destroyModal:function(){},destroyModalsByRootId:function(){},showModal:function(){return{id:"id",hide:function(){},destroy:function(){},update:function(){}}}},X8=s.createContext(void 0);(F0=rr||(rr={})).SHOW="SHOW",F0.HIDE="HIDE",F0.UPDATE="UPDATE",F0.DESTROY="DESTROY",F0.DESTROY_BY_ROOT_ID="DESTROY_BY_ROOT_ID",F0.UNKNOWN="UNKNOWN";var tb={};function nb(e,t){switch(t.type){case rr.SHOW:var n,o=t.payload,r=o.id,i=o.component,l=o.props,d=o.options;return vo({},e,((n={})[r]={component:i,props:vo({},l,{open:!0}),options:d},n));case rr.HIDE:var c,u=t.payload.id;return e[u]?vo({},e,((c={})[u]=vo({},e[u],{props:vo({},e[u].props,{open:!1})}),c)):e;case rr.UPDATE:var f,p=t.payload,h=p.id,m=p.props;return e[h]?vo({},e,((f={})[h]=vo({},e[h],{props:vo({},e[h].props,m)}),f)):e;case rr.DESTROY:var g=t.payload.id,x=vo({},e);return delete x[g],x;case rr.DESTROY_BY_ROOT_ID:var y=t.payload.rootId;return Object.keys(e).filter(function(v){return v.split(".")[0]!==y}).reduce(function(v,b){var C;return vo({},v,((C={})[b]=e[b],C))},{});default:throw new Error("Unexpected action")}}var I1="[ERROR]: Modal ID is missing",Y8=function(e){e===void 0&&(e=8);for(var t=[],n=0;n<e;n++)t[n]="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".charAt(Math.floor(62*Math.random()));return t.join("")},ob=["open"],rb=["showModal","destroyModalsByRootId"],K5={disableAutoDestroy:!1};function ua(e){e===void 0&&(e=K5);var t=vo({},K5,e).disableAutoDestroy,n=s.useContext(X8)||eb,o=n.showModal,r=n.destroyModalsByRootId,i=K8(n,rb),l=s.useRef(Y8(6));return s.useEffect(function(){return function(){!t&&r&&r(l.current)}},[t,r]),vo({showModal:s.useCallback(function(d,c,u){return o(d,c,vo({rootId:l.current,hideOnClose:!0},u))},[o]),destroyModalsByRootId:r},i)}var J8=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"],cs=J8.join(","),Q8=typeof Element>"u",C0=Q8?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,Va=!Q8&&Element.prototype.getRootNode?function(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}:function(e){return e?.ownerDocument},ds=function e(t,n){var o;n===void 0&&(n=!0);var r=t==null||(o=t.getAttribute)===null||o===void 0?void 0:o.call(t,"inert");return r===""||r==="true"||n&&t&&e(t.parentNode)},eh=function(e,t,n){if(ds(e))return[];var o=Array.prototype.slice.apply(e.querySelectorAll(cs));return t&&C0.call(e,cs)&&o.unshift(e),o.filter(n)},th=function e(t,n,o){for(var r=[],i=Array.from(t);i.length;){var l=i.shift();if(!ds(l,!1))if(l.tagName==="SLOT"){var d=l.assignedElements(),c=e(d.length?d:l.children,!0,o);o.flatten?r.push.apply(r,c):r.push({scopeParent:l,candidates:c})}else{C0.call(l,cs)&&o.filter(l)&&(n||!t.includes(l))&&r.push(l);var u=l.shadowRoot||typeof o.getShadowRoot=="function"&&o.getShadowRoot(l),f=!ds(u,!1)&&(!o.shadowRootFilter||o.shadowRootFilter(l));if(u&&f){var p=e(u===!0?l.children:u.children,!0,o);o.flatten?r.push.apply(r,p):r.push({scopeParent:l,candidates:p})}else i.unshift.apply(i,l.children)}}return r},nh=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},n0=function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||function(t){var n,o=t==null||(n=t.getAttribute)===null||n===void 0?void 0:n.call(t,"contenteditable");return o===""||o==="true"}(e))&&!nh(e)?0:e.tabIndex},ib=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},oh=function(e){return e.tagName==="INPUT"},X5=function(e){var t=e.getBoundingClientRect(),n=t.width,o=t.height;return n===0&&o===0},us=function(e,t){return!(t.disabled||ds(t)||(n=t,oh(n)&&n.type==="hidden")||function(o,r){var i=r.displayCheck,l=r.getShadowRoot;if(getComputedStyle(o).visibility==="hidden")return!0;var d=C0.call(o,"details>summary:first-of-type")?o.parentElement:o;if(C0.call(d,"details:not([open]) *"))return!0;if(i&&i!=="full"&&i!=="legacy-full"){if(i==="non-zero-area")return X5(o)}else{if(typeof l=="function"){for(var c=o;o;){var u=o.parentElement,f=Va(o);if(u&&!u.shadowRoot&&l(u)===!0)return X5(o);o=o.assignedSlot?o.assignedSlot:u||f===o.ownerDocument?u:f.host}o=c}if(function(p){var h,m,g,x,y=p&&Va(p),v=(h=y)===null||h===void 0?void 0:h.host,b=!1;if(y&&y!==p)for(b=!!((m=v)!==null&&m!==void 0&&(g=m.ownerDocument)!==null&&g!==void 0&&g.contains(v)||p!=null&&(x=p.ownerDocument)!==null&&x!==void 0&&x.contains(p));!b&&v;){var C,k,_;b=!((k=v=(C=y=Va(v))===null||C===void 0?void 0:C.host)===null||k===void 0||(_=k.ownerDocument)===null||_===void 0||!_.contains(v))}return b}(o))return!o.getClientRects().length;if(i!=="legacy-full")return!0}return!1}(t,e)||function(o){return o.tagName==="DETAILS"&&Array.prototype.slice.apply(o.children).some(function(r){return r.tagName==="SUMMARY"})}(t)||function(o){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(o.tagName))for(var r=o.parentElement;r;){if(r.tagName==="FIELDSET"&&r.disabled){for(var i=0;i<r.children.length;i++){var l=r.children.item(i);if(l.tagName==="LEGEND")return!!C0.call(r,"fieldset[disabled] *")||!l.contains(o)}return!0}r=r.parentElement}return!1}(t));var n},qc=function(e,t){return!(function(n){return oh(o=n)&&o.type==="radio"&&!function(r){if(!r.name)return!0;var i,l=r.form||Va(r),d=function(u){return l.querySelectorAll('input[type="radio"][name="'+u+'"]')};if(typeof window<"u"&&window.CSS!==void 0&&typeof window.CSS.escape=="function")i=d(window.CSS.escape(r.name));else try{i=d(r.name)}catch(u){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",u.message),!1}var c=function(u,f){for(var p=0;p<u.length;p++)if(u[p].checked&&u[p].form===f)return u[p]}(i,r.form);return!c||c===r}(n);var o}(t)||n0(t)<0||!us(e,t))},lb=function(e){var t=parseInt(e.getAttribute("tabindex"),10);return!!(isNaN(t)||t>=0)},ab=function e(t){var n=[],o=[];return t.forEach(function(r,i){var l,d,c,u=!!r.scopeParent,f=u?r.scopeParent:r,p=(d=u,(c=n0(l=f))<0&&d&&!nh(l)?0:c),h=u?e(r.candidates):f;p===0?u?n.push.apply(n,h):n.push(f):o.push({documentOrder:i,tabIndex:p,item:r,isScope:u,content:h})}),o.sort(ib).reduce(function(r,i){return i.isScope?r.push.apply(r,i.content):r.push(i.content),r},[]).concat(n)},rh=function(e,t){var n;return n=(t=t||{}).getShadowRoot?th([e],t.includeContainer,{filter:qc.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:lb}):eh(e,t.includeContainer,qc.bind(null,t)),ab(n)},ih=function(e,t){return(t=t||{}).getShadowRoot?th([e],t.includeContainer,{filter:us.bind(null,t),flatten:!0,getShadowRoot:t.getShadowRoot}):eh(e,t.includeContainer,us.bind(null,t))},m0=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return C0.call(e,cs)!==!1&&qc(t,e)},sb=J8.concat("iframe").join(","),Ha=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return C0.call(e,sb)!==!1&&us(t,e)};const cb=Object.freeze(Object.defineProperty({__proto__:null,focusable:ih,getTabIndex:n0,isFocusable:Ha,isTabbable:m0,tabbable:rh},Symbol.toStringTag,{value:"Module"}));function D1(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}function db(e,t,n){return(t=function(o){var r=function(i,l){if(typeof i!="object"||!i)return i;var d=i[Symbol.toPrimitive];if(d!==void 0){var c=d.call(i,l);if(typeof c!="object")return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(i)}(o,"string");return typeof r=="symbol"?r:r+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Y5(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),n.push.apply(n,o)}return n}function J5(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Y5(Object(n),!0).forEach(function(o){db(e,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Y5(Object(n)).forEach(function(o){Object.defineProperty(e,o,Object.getOwnPropertyDescriptor(n,o))})}return e}var dl=function(e){return e?.key==="Tab"||e?.keyCode===9},ub=function(e){return dl(e)&&!e.shiftKey},hb=function(e){return dl(e)&&e.shiftKey},Q5=function(e){return setTimeout(e,0)},Pi=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];return typeof e=="function"?e.apply(void 0,n):e},ha=function(e){return e.target.shadowRoot&&typeof e.composedPath=="function"?e.composedPath()[0]:e.target},pb=[];const fb=Object.freeze(Object.defineProperty({__proto__:null,createFocusTrap:function(e,t){var n,o=t?.document||document,r=t?.trapStack||pb,i=J5({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0,isKeyForward:ub,isKeyBackward:hb},t),l={containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,manuallyPaused:!1,delayInitialFocusTimer:void 0,recentNavEvent:void 0},d=function(j,T,w){return j&&j[T]!==void 0?j[T]:i[w||T]},c=function(j,T){var w=typeof T?.composedPath=="function"?T.composedPath():void 0;return l.containerGroups.findIndex(function(S){var D=S.container,E=S.tabbableNodes;return D.contains(j)||w?.includes(D)||E.find(function(R){return R===j})})},u=function(j){var T=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},w=T.hasFallback,S=w!==void 0&&w,D=T.params,E=D===void 0?[]:D,R=i[j];if(typeof R=="function"&&(R=R.apply(void 0,function(L){return function(P){if(Array.isArray(P))return D1(P)}(L)||function(P){if(typeof Symbol<"u"&&P[Symbol.iterator]!=null||P["@@iterator"]!=null)return Array.from(P)}(L)||function(P,z){if(P){if(typeof P=="string")return D1(P,z);var U={}.toString.call(P).slice(8,-1);return U==="Object"&&P.constructor&&(U=P.constructor.name),U==="Map"||U==="Set"?Array.from(P):U==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(U)?D1(P,z):void 0}}(L)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
35
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}(E))),R===!0&&(R=void 0),!R){if(R===void 0||R===!1)return R;throw new Error("`".concat(j,"` was specified but was not a node, or did not return a node"))}var A=R;if(typeof R=="string"){try{A=o.querySelector(R)}catch(L){throw new Error("`".concat(j,'` appears to be an invalid selector; error="').concat(L.message,'"'))}if(!A&&!S)throw new Error("`".concat(j,"` as selector refers to no known node"))}return A},f=function(){var j=u("initialFocus",{hasFallback:!0});if(j===!1)return!1;if(j===void 0||j&&!Ha(j,i.tabbableOptions))if(c(o.activeElement)>=0)j=o.activeElement;else{var T=l.tabbableGroups[0];j=T&&T.firstTabbableNode||u("fallbackFocus")}else j===null&&(j=u("fallbackFocus"));if(!j)throw new Error("Your focus-trap needs to have at least one focusable element");return j},p=function(){if(l.containerGroups=l.containers.map(function(j){var T=rh(j,i.tabbableOptions),w=ih(j,i.tabbableOptions),S=T.length>0?T[0]:void 0,D=T.length>0?T[T.length-1]:void 0,E=w.find(function(L){return m0(L)}),R=w.slice().reverse().find(function(L){return m0(L)}),A=!!T.find(function(L){return n0(L)>0});return{container:j,tabbableNodes:T,focusableNodes:w,posTabIndexesFound:A,firstTabbableNode:S,lastTabbableNode:D,firstDomTabbableNode:E,lastDomTabbableNode:R,nextTabbableNode:function(L){var P=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1],z=T.indexOf(L);return z<0?P?w.slice(w.indexOf(L)+1).find(function(U){return m0(U)}):w.slice(0,w.indexOf(L)).reverse().find(function(U){return m0(U)}):T[z+(P?1:-1)]}}}),l.tabbableGroups=l.containerGroups.filter(function(j){return j.tabbableNodes.length>0}),l.tabbableGroups.length<=0&&!u("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times");if(l.containerGroups.find(function(j){return j.posTabIndexesFound})&&l.containerGroups.length>1)throw new Error("At least one node with a positive tabindex was found in one of your focus-trap's multiple containers. Positive tabindexes are only supported in single-container focus-traps.")},h=function(j){var T=j.activeElement;if(T)return T.shadowRoot&&T.shadowRoot.activeElement!==null?h(T.shadowRoot):T},m=function(j){j!==!1&&j!==h(document)&&(j&&j.focus?(j.focus({preventScroll:!!i.preventScroll}),l.mostRecentlyFocusedNode=j,function(T){return T.tagName&&T.tagName.toLowerCase()==="input"&&typeof T.select=="function"}(j)&&j.select()):m(f()))},g=function(j){var T=u("setReturnFocus",{params:[j]});return T||T!==!1&&j},x=function(j){var T=j.target,w=j.event,S=j.isBackward,D=S!==void 0&&S;T=T||ha(w),p();var E=null;if(l.tabbableGroups.length>0){var R=c(T,w),A=R>=0?l.containerGroups[R]:void 0;if(R<0)E=D?l.tabbableGroups[l.tabbableGroups.length-1].lastTabbableNode:l.tabbableGroups[0].firstTabbableNode;else if(D){var L=l.tabbableGroups.findIndex(function(X){var re=X.firstTabbableNode;return T===re});if(L<0&&(A.container===T||Ha(T,i.tabbableOptions)&&!m0(T,i.tabbableOptions)&&!A.nextTabbableNode(T,!1))&&(L=R),L>=0){var P=L===0?l.tabbableGroups.length-1:L-1,z=l.tabbableGroups[P];E=n0(T)>=0?z.lastTabbableNode:z.lastDomTabbableNode}else dl(w)||(E=A.nextTabbableNode(T,!1))}else{var U=l.tabbableGroups.findIndex(function(X){var re=X.lastTabbableNode;return T===re});if(U<0&&(A.container===T||Ha(T,i.tabbableOptions)&&!m0(T,i.tabbableOptions)&&!A.nextTabbableNode(T))&&(U=R),U>=0){var O=U===l.tabbableGroups.length-1?0:U+1,q=l.tabbableGroups[O];E=n0(T)>=0?q.firstTabbableNode:q.firstDomTabbableNode}else dl(w)||(E=A.nextTabbableNode(T))}}else E=u("fallbackFocus");return E},y=function(j){var T=ha(j);c(T,j)>=0||(Pi(i.clickOutsideDeactivates,j)?n.deactivate({returnFocus:i.returnFocusOnDeactivate}):Pi(i.allowOutsideClick,j)||j.preventDefault())},v=function(j){var T=ha(j),w=c(T,j)>=0;if(w||T instanceof Document)w&&(l.mostRecentlyFocusedNode=T);else{var S;j.stopImmediatePropagation();var D=!0;if(l.mostRecentlyFocusedNode)if(n0(l.mostRecentlyFocusedNode)>0){var E=c(l.mostRecentlyFocusedNode),R=l.containerGroups[E].tabbableNodes;if(R.length>0){var A=R.findIndex(function(L){return L===l.mostRecentlyFocusedNode});A>=0&&(i.isKeyForward(l.recentNavEvent)?A+1<R.length&&(S=R[A+1],D=!1):A-1>=0&&(S=R[A-1],D=!1))}}else l.containerGroups.some(function(L){return L.tabbableNodes.some(function(P){return n0(P)>0})})||(D=!1);else D=!1;D&&(S=x({target:l.mostRecentlyFocusedNode,isBackward:i.isKeyBackward(l.recentNavEvent)})),m(S||l.mostRecentlyFocusedNode||f())}l.recentNavEvent=void 0},b=function(j){(i.isKeyForward(j)||i.isKeyBackward(j))&&function(T){var w=arguments.length>1&&arguments[1]!==void 0&&arguments[1];l.recentNavEvent=T;var S=x({event:T,isBackward:w});S&&(dl(T)&&T.preventDefault(),m(S))}(j,i.isKeyBackward(j))},C=function(j){var T;((T=j)==null?void 0:T.key)!=="Escape"&&T?.key!=="Esc"&&T?.keyCode!==27||Pi(i.escapeDeactivates,j)===!1||(j.preventDefault(),n.deactivate())},k=function(j){var T=ha(j);c(T,j)>=0||Pi(i.clickOutsideDeactivates,j)||Pi(i.allowOutsideClick,j)||(j.preventDefault(),j.stopImmediatePropagation())},_=function(){if(l.active)return function(j,T){if(j.length>0){var w=j[j.length-1];w!==T&&w._setPausedState(!0)}var S=j.indexOf(T);S===-1||j.splice(S,1),j.push(T)}(r,n),l.delayInitialFocusTimer=i.delayInitialFocus?Q5(function(){m(f())}):m(f()),o.addEventListener("focusin",v,!0),o.addEventListener("mousedown",y,{capture:!0,passive:!1}),o.addEventListener("touchstart",y,{capture:!0,passive:!1}),o.addEventListener("click",k,{capture:!0,passive:!1}),o.addEventListener("keydown",b,{capture:!0,passive:!1}),o.addEventListener("keydown",C),n},I=function(){if(l.active)return o.removeEventListener("focusin",v,!0),o.removeEventListener("mousedown",y,!0),o.removeEventListener("touchstart",y,!0),o.removeEventListener("click",k,!0),o.removeEventListener("keydown",b,!0),o.removeEventListener("keydown",C),n},M=typeof window<"u"&&"MutationObserver"in window?new MutationObserver(function(j){j.some(function(T){return Array.from(T.removedNodes).some(function(w){return w===l.mostRecentlyFocusedNode})})&&m(f())}):void 0,F=function(){M&&(M.disconnect(),l.active&&!l.paused&&l.containers.map(function(j){M.observe(j,{subtree:!0,childList:!0})}))};return n={get active(){return l.active},get paused(){return l.paused},activate:function(j){if(l.active)return this;var T=d(j,"onActivate"),w=d(j,"onPostActivate"),S=d(j,"checkCanFocusTrap");S||p(),l.active=!0,l.paused=!1,l.nodeFocusedBeforeActivation=h(o),T?.();var D=function(){S&&p(),_(),F(),w?.()};return S?(S(l.containers.concat()).then(D,D),this):(D(),this)},deactivate:function(j){if(!l.active)return this;var T=J5({onDeactivate:i.onDeactivate,onPostDeactivate:i.onPostDeactivate,checkCanReturnFocus:i.checkCanReturnFocus},j);clearTimeout(l.delayInitialFocusTimer),l.delayInitialFocusTimer=void 0,I(),l.active=!1,l.paused=!1,F(),function(A,L){var P=A.indexOf(L);P!==-1&&A.splice(P,1),A.length>0&&!A[A.length-1]._isManuallyPaused()&&A[A.length-1]._setPausedState(!1)}(r,n);var w=d(T,"onDeactivate"),S=d(T,"onPostDeactivate"),D=d(T,"checkCanReturnFocus"),E=d(T,"returnFocus","returnFocusOnDeactivate");w?.();var R=function(){Q5(function(){E&&m(g(l.nodeFocusedBeforeActivation)),S?.()})};return E&&D?(D(g(l.nodeFocusedBeforeActivation)).then(R,R),this):(R(),this)},pause:function(j){return l.active?(l.manuallyPaused=!0,this._setPausedState(!0,j)):this},unpause:function(j){return l.active?(l.manuallyPaused=!1,r[r.length-1]!==this?this:this._setPausedState(!1,j)):this},updateContainerElements:function(j){var T=[].concat(j).filter(Boolean);return l.containers=T.map(function(w){return typeof w=="string"?o.querySelector(w):w}),l.active&&p(),F(),this}},Object.defineProperties(n,{_isManuallyPaused:{value:function(){return l.manuallyPaused}},_setPausedState:{value:function(j,T){if(l.paused===j)return this;if(l.paused=j,j){var w=d(T,"onPause"),S=d(T,"onPostPause");w?.(),I(),F(),S?.()}else{var D=d(T,"onUnpause"),E=d(T,"onPostUnpause");D?.(),p(),_(),F(),E?.()}return this}}}),n.updateContainerElements(e),n}},Symbol.toStringTag,{value:"Module"})),mb=Q7(fb),gb=Q7(cb);var e3,t3,xb=function(){if(t3)return e3;function e(p){return(e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(h){return typeof h}:function(h){return h&&typeof Symbol=="function"&&h.constructor===Symbol&&h!==Symbol.prototype?"symbol":typeof h})(p)}function t(){try{var p=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(t=function(){return!!p})()}function n(p){return(n=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(h){return h.__proto__||Object.getPrototypeOf(h)})(p)}function o(p,h){return o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(m,g){return m.__proto__=g,m},o(p,h)}function r(p){var h=function(m,g){if(e(m)!="object"||!m)return m;var x=m[Symbol.toPrimitive];if(x!==void 0){var y=x.call(m,g);if(e(y)!="object")return y;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(m)}(p,"string");return e(h)=="symbol"?h:h+""}t3=1;var i=s,l=jc(),d=mb.createFocusTrap,c=gb.isFocusable,u=function(p){function h(m){var g;(function(v,b){if(!(v instanceof b))throw new TypeError("Cannot call a class as a function")})(this,h),function(v,b,C){(b=r(b))in v?Object.defineProperty(v,b,{value:C,enumerable:!0,configurable:!0,writable:!0}):v[b]=C}(g=function(v,b,C){return b=n(b),function(k,_){if(_&&(e(_)=="object"||typeof _=="function"))return _;if(_!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(I){if(I===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return I}(k)}(v,t()?Reflect.construct(b,C||[],n(v).constructor):b.apply(v,C))}(this,h,[m]),"getNodeForOption",function(v){var b,C=(b=this.internalOptions[v])!==null&&b!==void 0?b:this.originalOptions[v];if(typeof C=="function"){for(var k=arguments.length,_=new Array(k>1?k-1:0),I=1;I<k;I++)_[I-1]=arguments[I];C=C.apply(void 0,_)}if(C===!0&&(C=void 0),!C){if(C===void 0||C===!1)return C;throw new Error("`".concat(v,"` was specified but was not a node, or did not return a node"))}var M,F=C;if(typeof C=="string"&&!(F=(M=this.getDocument())===null||M===void 0?void 0:M.querySelector(C)))throw new Error("`".concat(v,"` as selector refers to no known node"));return F}),g.handleDeactivate=g.handleDeactivate.bind(g),g.handlePostDeactivate=g.handlePostDeactivate.bind(g),g.handleClickOutsideDeactivates=g.handleClickOutsideDeactivates.bind(g),g.internalOptions={returnFocusOnDeactivate:!1,checkCanReturnFocus:null,onDeactivate:g.handleDeactivate,onPostDeactivate:g.handlePostDeactivate,clickOutsideDeactivates:g.handleClickOutsideDeactivates},g.originalOptions={returnFocusOnDeactivate:!0,onDeactivate:null,onPostDeactivate:null,checkCanReturnFocus:null,clickOutsideDeactivates:!1};var x=m.focusTrapOptions;for(var y in x)Object.prototype.hasOwnProperty.call(x,y)&&(y!=="returnFocusOnDeactivate"&&y!=="onDeactivate"&&y!=="onPostDeactivate"&&y!=="checkCanReturnFocus"&&y!=="clickOutsideDeactivates"?g.internalOptions[y]=x[y]:g.originalOptions[y]=x[y]);return g.outsideClick=null,g.focusTrapElements=m.containerElements||[],g.updatePreviousElement(),g}return function(m,g){if(typeof g!="function"&&g!==null)throw new TypeError("Super expression must either be null or a function");m.prototype=Object.create(g&&g.prototype,{constructor:{value:m,writable:!0,configurable:!0}}),Object.defineProperty(m,"prototype",{writable:!1}),g&&o(m,g)}(h,p),function(m,g){return g&&function(x,y){for(var v=0;v<y.length;v++){var b=y[v];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(x,r(b.key),b)}}(m.prototype,g),Object.defineProperty(m,"prototype",{writable:!1}),m}(h,[{key:"getDocument",value:function(){return this.props.focusTrapOptions.document||(typeof document<"u"?document:void 0)}},{key:"getReturnFocusNode",value:function(){var m=this.getNodeForOption("setReturnFocus",this.previouslyFocusedElement);return m||m!==!1&&this.previouslyFocusedElement}},{key:"updatePreviousElement",value:function(){var m=this.getDocument();m&&(this.previouslyFocusedElement=m.activeElement)}},{key:"deactivateTrap",value:function(){this.focusTrap&&this.focusTrap.active&&this.focusTrap.deactivate({returnFocus:!1,checkCanReturnFocus:null,onDeactivate:this.originalOptions.onDeactivate})}},{key:"handleClickOutsideDeactivates",value:function(m){var g=typeof this.originalOptions.clickOutsideDeactivates=="function"?this.originalOptions.clickOutsideDeactivates.call(null,m):this.originalOptions.clickOutsideDeactivates;return g&&(this.outsideClick={target:m.target,allowDeactivation:g}),g}},{key:"handleDeactivate",value:function(){this.originalOptions.onDeactivate&&this.originalOptions.onDeactivate.call(null),this.deactivateTrap()}},{key:"handlePostDeactivate",value:function(){var m=this,g=function(){var x=m.getReturnFocusNode(),y=!(!m.originalOptions.returnFocusOnDeactivate||x==null||!x.focus||m.outsideClick&&(!m.outsideClick.allowDeactivation||c(m.outsideClick.target,m.internalOptions.tabbableOptions))),v=m.internalOptions.preventScroll,b=v!==void 0&&v;y&&x.focus({preventScroll:b}),m.originalOptions.onPostDeactivate&&m.originalOptions.onPostDeactivate.call(null),m.outsideClick=null};this.originalOptions.checkCanReturnFocus?this.originalOptions.checkCanReturnFocus.call(null,this.getReturnFocusNode()).then(g,g):g()}},{key:"setupFocusTrap",value:function(){this.focusTrap?this.props.active&&!this.focusTrap.active&&(this.focusTrap.activate(),this.props.paused&&this.focusTrap.pause()):this.focusTrapElements.some(Boolean)&&(this.focusTrap=this.props._createFocusTrap(this.focusTrapElements,this.internalOptions),this.props.active&&this.focusTrap.activate(),this.props.paused&&this.focusTrap.pause())}},{key:"componentDidMount",value:function(){this.props.active&&this.setupFocusTrap()}},{key:"componentDidUpdate",value:function(m){if(this.focusTrap){m.containerElements!==this.props.containerElements&&this.focusTrap.updateContainerElements(this.props.containerElements);var g=!m.active&&this.props.active,x=m.active&&!this.props.active,y=!m.paused&&this.props.paused,v=m.paused&&!this.props.paused;if(g&&(this.updatePreviousElement(),this.focusTrap.activate()),x)return void this.deactivateTrap();y&&this.focusTrap.pause(),v&&this.focusTrap.unpause()}else m.containerElements!==this.props.containerElements&&(this.focusTrapElements=this.props.containerElements),this.props.active&&(this.updatePreviousElement(),this.setupFocusTrap())}},{key:"componentWillUnmount",value:function(){this.deactivateTrap()}},{key:"render",value:function(){var m=this,g=this.props.children?i.Children.only(this.props.children):void 0;if(g){if(g.type&&g.type===i.Fragment)throw new Error("A focus-trap cannot use a Fragment as its child container. Try replacing it with a <div> element.");return i.cloneElement(g,{ref:function(x){var y=m.props.containerElements;g&&(typeof g.ref=="function"?g.ref(x):g.ref&&(g.ref.current=x)),m.focusTrapElements=y||[x]}})}return null}}])}(i.Component),f=typeof Element>"u"?Function:Element;return u.propTypes={active:l.bool,paused:l.bool,focusTrapOptions:l.shape({document:l.object,onActivate:l.func,onPostActivate:l.func,checkCanFocusTrap:l.func,onPause:l.func,onPostPause:l.func,onUnpause:l.func,onPostUnpause:l.func,onDeactivate:l.func,onPostDeactivate:l.func,checkCanReturnFocus:l.func,initialFocus:l.oneOfType([l.instanceOf(f),l.string,l.bool,l.func]),fallbackFocus:l.oneOfType([l.instanceOf(f),l.string,l.func]),escapeDeactivates:l.oneOfType([l.bool,l.func]),clickOutsideDeactivates:l.oneOfType([l.bool,l.func]),returnFocusOnDeactivate:l.bool,setReturnFocus:l.oneOfType([l.instanceOf(f),l.string,l.bool,l.func]),allowOutsideClick:l.oneOfType([l.bool,l.func]),preventScroll:l.bool,tabbableOptions:l.shape({displayCheck:l.oneOf(["full","legacy-full","non-zero-area","none"]),getShadowRoot:l.oneOfType([l.bool,l.func])}),trapStack:l.array,isKeyForward:l.func,isKeyBackward:l.func}),containerElements:l.arrayOf(l.instanceOf(f)),children:l.oneOfType([l.element,l.instanceOf(f)])},u.defaultProps={active:!0,paused:!1,focusTrapOptions:{},_createFocusTrap:d},e3=u}();const yb=J7(xb);var n3,o3,Ai={exports:{}},r3={},pa={exports:{}},Zn={},h0={};function hs(){return o3||(o3=1,Object.defineProperty(h0,"__esModule",{value:!0}),h0.dontSetMe=function(e,t,n){if(e[t])return new Error(`Invalid prop ${t} passed to ${n} - do not set this, set it on the child.`)},h0.findInArray=function(e,t){for(let n=0,o=e.length;n<o;n++)if(t.apply(t,[e[n],n,e]))return e[n]},h0.int=function(e){return parseInt(e,10)},h0.isFunction=function(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Function]"},h0.isNum=function(e){return typeof e=="number"&&!isNaN(e)}),h0}var i3,l3,Wr={};function Zc(){if(l3)return Zn;l3=1,Object.defineProperty(Zn,"__esModule",{value:!0}),Zn.addClassName=l,Zn.addEvent=function(c,u,f,p){if(!c)return;const h={capture:!0,...p};c.addEventListener?c.addEventListener(u,f,h):c.attachEvent?c.attachEvent("on"+u,f):c["on"+u]=f},Zn.addUserSelectStyles=function(c){if(!c)return;let u=c.getElementById("react-draggable-style-el");u||(u=c.createElement("style"),u.type="text/css",u.id="react-draggable-style-el",u.innerHTML=`.react-draggable-transparent-selection *::-moz-selection {all: inherit;}
36
- `,u.innerHTML+=`.react-draggable-transparent-selection *::selection {all: inherit;}
37
- `,c.getElementsByTagName("head")[0].appendChild(u)),c.body&&l(c.body,"react-draggable-transparent-selection")},Zn.createCSSTransform=function(c,u){const f=r(c,u,"px");return{[(0,t.browserPrefixToKey)("transform",t.default)]:f}},Zn.createSVGTransform=function(c,u){return r(c,u,"")},Zn.getTouch=function(c,u){return c.targetTouches&&(0,e.findInArray)(c.targetTouches,f=>u===f.identifier)||c.changedTouches&&(0,e.findInArray)(c.changedTouches,f=>u===f.identifier)},Zn.getTouchIdentifier=function(c){return c.targetTouches&&c.targetTouches[0]?c.targetTouches[0].identifier:c.changedTouches&&c.changedTouches[0]?c.changedTouches[0].identifier:void 0},Zn.getTranslation=r,Zn.innerHeight=function(c){let u=c.clientHeight;const f=c.ownerDocument.defaultView.getComputedStyle(c);return u-=(0,e.int)(f.paddingTop),u-=(0,e.int)(f.paddingBottom),u},Zn.innerWidth=function(c){let u=c.clientWidth;const f=c.ownerDocument.defaultView.getComputedStyle(c);return u-=(0,e.int)(f.paddingLeft),u-=(0,e.int)(f.paddingRight),u},Zn.matchesSelector=o,Zn.matchesSelectorAndParentsTo=function(c,u,f){let p=c;do{if(o(p,u))return!0;if(p===f)return!1;p=p.parentNode}while(p);return!1},Zn.offsetXYFromParent=function(c,u,f){const p=u===u.ownerDocument.body?{left:0,top:0}:u.getBoundingClientRect();return{x:(c.clientX+u.scrollLeft-p.left)/f,y:(c.clientY+u.scrollTop-p.top)/f}},Zn.outerHeight=function(c){let u=c.clientHeight;const f=c.ownerDocument.defaultView.getComputedStyle(c);return u+=(0,e.int)(f.borderTopWidth),u+=(0,e.int)(f.borderBottomWidth),u},Zn.outerWidth=function(c){let u=c.clientWidth;const f=c.ownerDocument.defaultView.getComputedStyle(c);return u+=(0,e.int)(f.borderLeftWidth),u+=(0,e.int)(f.borderRightWidth),u},Zn.removeClassName=d,Zn.removeEvent=function(c,u,f,p){if(!c)return;const h={capture:!0,...p};c.removeEventListener?c.removeEventListener(u,f,h):c.detachEvent?c.detachEvent("on"+u,f):c["on"+u]=null},Zn.scheduleRemoveUserSelectStyles=function(c){window.requestAnimationFrame?window.requestAnimationFrame(()=>{i(c)}):i(c)};var e=hs(),t=function(c){if(typeof WeakMap=="function")var u=new WeakMap;return function(f){if(f&&f.__esModule)return f;var p,h,m={__proto__:null,default:f};if(f===null||typeof f!="object"&&typeof f!="function")return m;if(p=u){if(p.has(f))return p.get(f);p.set(f,m)}for(const g in f)g!=="default"&&{}.hasOwnProperty.call(f,g)&&((h=(p=Object.defineProperty)&&Object.getOwnPropertyDescriptor(f,g))&&(h.get||h.set)?p(m,g,h):m[g]=f[g]);return m}(c)}(function(){if(i3)return Wr;i3=1,Object.defineProperty(Wr,"__esModule",{value:!0}),Wr.browserPrefixToKey=f,Wr.browserPrefixToStyle=function(p,h){return h?`-${h.toLowerCase()}-${p}`:p},Wr.default=void 0,Wr.getPrefix=u;const c=["Moz","Webkit","O","ms"];function u(){let p=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"transform";if(typeof window>"u")return"";const h=window.document?.documentElement?.style;if(!h||p in h)return"";for(let m=0;m<c.length;m++)if(f(p,c[m])in h)return c[m];return""}function f(p,h){return h?`${h}${function(m){let g="",x=!0;for(let y=0;y<m.length;y++)x?(g+=m[y].toUpperCase(),x=!1):m[y]==="-"?x=!0:g+=m[y];return g}(p)}`:p}return Wr.default=u(),Wr}());let n="";function o(c,u){return n||(n=(0,e.findInArray)(["matches","webkitMatchesSelector","mozMatchesSelector","msMatchesSelector","oMatchesSelector"],function(f){return(0,e.isFunction)(c[f])})),!!(0,e.isFunction)(c[n])&&c[n](u)}function r(c,u,f){let{x:p,y:h}=c,m=`translate(${p}${f},${h}${f})`;return u&&(m=`translate(${typeof u.x=="string"?u.x:u.x+f}, ${typeof u.y=="string"?u.y:u.y+f})`+m),m}function i(c){if(c)try{if(c.body&&d(c.body,"react-draggable-transparent-selection"),c.selection)c.selection.empty();else{const u=(c.defaultView||window).getSelection();u&&u.type!=="Caret"&&u.removeAllRanges()}}catch{}}function l(c,u){c.classList?c.classList.add(u):c.className.match(new RegExp(`(?:^|\\s)${u}(?!\\S)`))||(c.className+=` ${u}`)}function d(c,u){c.classList?c.classList.remove(u):c.className=c.className.replace(new RegExp(`(?:^|\\s)${u}(?!\\S)`,"g"),"")}return Zn}var a3,vr={};function s3(){if(a3)return vr;a3=1,Object.defineProperty(vr,"__esModule",{value:!0}),vr.canDragX=function(o){return o.props.axis==="both"||o.props.axis==="x"},vr.canDragY=function(o){return o.props.axis==="both"||o.props.axis==="y"},vr.createCoreData=function(o,r,i){const l=!(0,e.isNum)(o.lastX),d=n(o);return l?{node:d,deltaX:0,deltaY:0,lastX:r,lastY:i,x:r,y:i}:{node:d,deltaX:r-o.lastX,deltaY:i-o.lastY,lastX:o.lastX,lastY:o.lastY,x:r,y:i}},vr.createDraggableData=function(o,r){const i=o.props.scale;return{node:r.node,x:o.state.x+r.deltaX/i,y:o.state.y+r.deltaY/i,deltaX:r.deltaX/i,deltaY:r.deltaY/i,lastX:o.state.x,lastY:o.state.y}},vr.getBoundPosition=function(o,r,i){if(!o.props.bounds)return[r,i];let{bounds:l}=o.props;var d;l=typeof l=="string"?l:{left:(d=l).left,top:d.top,right:d.right,bottom:d.bottom};const c=n(o);if(typeof l=="string"){const{ownerDocument:u}=c,f=u.defaultView;let p;if(p=l==="parent"?c.parentNode:c.getRootNode().querySelector(l),!(p instanceof f.HTMLElement))throw new Error('Bounds selector "'+l+'" could not find an element.');const h=p,m=f.getComputedStyle(c),g=f.getComputedStyle(h);l={left:-c.offsetLeft+(0,e.int)(g.paddingLeft)+(0,e.int)(m.marginLeft),top:-c.offsetTop+(0,e.int)(g.paddingTop)+(0,e.int)(m.marginTop),right:(0,t.innerWidth)(h)-(0,t.outerWidth)(c)-c.offsetLeft+(0,e.int)(g.paddingRight)-(0,e.int)(m.marginRight),bottom:(0,t.innerHeight)(h)-(0,t.outerHeight)(c)-c.offsetTop+(0,e.int)(g.paddingBottom)-(0,e.int)(m.marginBottom)}}return(0,e.isNum)(l.right)&&(r=Math.min(r,l.right)),(0,e.isNum)(l.bottom)&&(i=Math.min(i,l.bottom)),(0,e.isNum)(l.left)&&(r=Math.max(r,l.left)),(0,e.isNum)(l.top)&&(i=Math.max(i,l.top)),[r,i]},vr.getControlPosition=function(o,r,i){const l=typeof r=="number"?(0,t.getTouch)(o,r):null;if(typeof r=="number"&&!l)return null;const d=n(i),c=i.props.offsetParent||d.offsetParent||d.ownerDocument.body;return(0,t.offsetXYFromParent)(l||o,c,i.props.scale)},vr.snapToGrid=function(o,r,i){return[Math.round(r/o[0])*o[0],Math.round(i/o[1])*o[1]]};var e=hs(),t=Zc();function n(o){const r=o.findDOMNode();if(!r)throw new Error("<DraggableCore>: Unmounted during event!");return r}return vr}var c3,d3,u3,h3,Fi={},L1={};function p3(){return c3||(c3=1,Object.defineProperty(L1,"__esModule",{value:!0}),L1.default=function(){}),L1}function bb(){return u3||(u3=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"DraggableCore",{enumerable:!0,get:function(){return c.default}}),e.default=void 0;var t=function(g){if(typeof WeakMap=="function")var x=new WeakMap;return function(y){if(y&&y.__esModule)return y;var v,b,C={__proto__:null,default:y};if(y===null||typeof y!="object"&&typeof y!="function")return C;if(v=x){if(v.has(y))return v.get(y);v.set(y,C)}for(const k in y)k!=="default"&&{}.hasOwnProperty.call(y,k)&&((b=(v=Object.defineProperty)&&Object.getOwnPropertyDescriptor(y,k))&&(b.get||b.set)?v(C,k,b):C[k]=y[k]);return C}(g)}(s),n=f(jc()),o=f(eo),r=function(){if(n3)return pa.exports;function g(y){var v,b,C="";if(typeof y=="string"||typeof y=="number")C+=y;else if(typeof y=="object")if(Array.isArray(y)){var k=y.length;for(v=0;v<k;v++)y[v]&&(b=g(y[v]))&&(C&&(C+=" "),C+=b)}else for(b in y)y[b]&&(C&&(C+=" "),C+=b);return C}function x(){for(var y,v,b=0,C="",k=arguments.length;b<k;b++)(y=arguments[b])&&(v=g(y))&&(C&&(C+=" "),C+=v);return C}return n3=1,pa.exports=x,pa.exports.clsx=x,pa.exports}(),i=Zc(),l=s3(),d=hs(),c=f(function(){if(d3)return Fi;d3=1,Object.defineProperty(Fi,"__esModule",{value:!0}),Fi.default=void 0;var g=function(w){if(typeof WeakMap=="function")var S=new WeakMap;return function(D){if(D&&D.__esModule)return D;var E,R,A={__proto__:null,default:D};if(D===null||typeof D!="object"&&typeof D!="function")return A;if(E=S){if(E.has(D))return E.get(D);E.set(D,A)}for(const L in D)L!=="default"&&{}.hasOwnProperty.call(D,L)&&((R=(E=Object.defineProperty)&&Object.getOwnPropertyDescriptor(D,L))&&(R.get||R.set)?E(A,L,R):A[L]=D[L]);return A}(w)}(s),x=_(jc()),y=_(eo),v=Zc(),b=s3(),C=hs(),k=_(p3());function _(w){return w&&w.__esModule?w:{default:w}}function I(w,S,D){return(S=function(E){var R=function(A,L){if(typeof A!="object"||!A)return A;var P=A[Symbol.toPrimitive];if(P!==void 0){var z=P.call(A,L);if(typeof z!="object")return z;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(A)}(E,"string");return typeof R=="symbol"?R:R+""}(S))in w?Object.defineProperty(w,S,{value:D,enumerable:!0,configurable:!0,writable:!0}):w[S]=D,w}const M={start:"touchstart",move:"touchmove",stop:"touchend"},F={start:"mousedown",move:"mousemove",stop:"mouseup"};let j=F,T=class extends g.Component{constructor(){super(...arguments),I(this,"dragging",!1),I(this,"lastX",NaN),I(this,"lastY",NaN),I(this,"touchIdentifier",null),I(this,"mounted",!1),I(this,"handleDragStart",w=>{if(this.props.onMouseDown(w),!this.props.allowAnyClick&&typeof w.button=="number"&&w.button!==0)return!1;const S=this.findDOMNode();if(!S||!S.ownerDocument||!S.ownerDocument.body)throw new Error("<DraggableCore> not mounted on DragStart!");const{ownerDocument:D}=S;if(this.props.disabled||!(w.target instanceof D.defaultView.Node)||this.props.handle&&!(0,v.matchesSelectorAndParentsTo)(w.target,this.props.handle,S)||this.props.cancel&&(0,v.matchesSelectorAndParentsTo)(w.target,this.props.cancel,S))return;w.type!=="touchstart"||this.props.allowMobileScroll||w.preventDefault();const E=(0,v.getTouchIdentifier)(w);this.touchIdentifier=E;const R=(0,b.getControlPosition)(w,E,this);if(R==null)return;const{x:A,y:L}=R,P=(0,b.createCoreData)(this,A,L);(0,k.default)("DraggableCore: handleDragStart: %j",P),(0,k.default)("calling",this.props.onStart),this.props.onStart(w,P)!==!1&&this.mounted!==!1&&(this.props.enableUserSelectHack&&(0,v.addUserSelectStyles)(D),this.dragging=!0,this.lastX=A,this.lastY=L,(0,v.addEvent)(D,j.move,this.handleDrag),(0,v.addEvent)(D,j.stop,this.handleDragStop))}),I(this,"handleDrag",w=>{const S=(0,b.getControlPosition)(w,this.touchIdentifier,this);if(S==null)return;let{x:D,y:E}=S;if(Array.isArray(this.props.grid)){let A=D-this.lastX,L=E-this.lastY;if([A,L]=(0,b.snapToGrid)(this.props.grid,A,L),!A&&!L)return;D=this.lastX+A,E=this.lastY+L}const R=(0,b.createCoreData)(this,D,E);if((0,k.default)("DraggableCore: handleDrag: %j",R),this.props.onDrag(w,R)!==!1&&this.mounted!==!1)this.lastX=D,this.lastY=E;else try{this.handleDragStop(new MouseEvent("mouseup"))}catch{const A=document.createEvent("MouseEvents");A.initMouseEvent("mouseup",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),this.handleDragStop(A)}}),I(this,"handleDragStop",w=>{if(!this.dragging)return;const S=(0,b.getControlPosition)(w,this.touchIdentifier,this);if(S==null)return;let{x:D,y:E}=S;if(Array.isArray(this.props.grid)){let L=D-this.lastX||0,P=E-this.lastY||0;[L,P]=(0,b.snapToGrid)(this.props.grid,L,P),D=this.lastX+L,E=this.lastY+P}const R=(0,b.createCoreData)(this,D,E);if(this.props.onStop(w,R)===!1||this.mounted===!1)return!1;const A=this.findDOMNode();A&&this.props.enableUserSelectHack&&(0,v.scheduleRemoveUserSelectStyles)(A.ownerDocument),(0,k.default)("DraggableCore: handleDragStop: %j",R),this.dragging=!1,this.lastX=NaN,this.lastY=NaN,A&&((0,k.default)("DraggableCore: Removing handlers"),(0,v.removeEvent)(A.ownerDocument,j.move,this.handleDrag),(0,v.removeEvent)(A.ownerDocument,j.stop,this.handleDragStop))}),I(this,"onMouseDown",w=>(j=F,this.handleDragStart(w))),I(this,"onMouseUp",w=>(j=F,this.handleDragStop(w))),I(this,"onTouchStart",w=>(j=M,this.handleDragStart(w))),I(this,"onTouchEnd",w=>(j=M,this.handleDragStop(w)))}componentDidMount(){this.mounted=!0;const w=this.findDOMNode();w&&(0,v.addEvent)(w,M.start,this.onTouchStart,{passive:!1})}componentWillUnmount(){this.mounted=!1;const w=this.findDOMNode();if(w){const{ownerDocument:S}=w;(0,v.removeEvent)(S,F.move,this.handleDrag),(0,v.removeEvent)(S,M.move,this.handleDrag),(0,v.removeEvent)(S,F.stop,this.handleDragStop),(0,v.removeEvent)(S,M.stop,this.handleDragStop),(0,v.removeEvent)(w,M.start,this.onTouchStart,{passive:!1}),this.props.enableUserSelectHack&&(0,v.scheduleRemoveUserSelectStyles)(S)}}findDOMNode(){return this.props?.nodeRef?this.props?.nodeRef?.current:y.default.findDOMNode(this)}render(){return g.cloneElement(g.Children.only(this.props.children),{onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp,onTouchEnd:this.onTouchEnd})}};return Fi.default=T,I(T,"displayName","DraggableCore"),I(T,"propTypes",{allowAnyClick:x.default.bool,allowMobileScroll:x.default.bool,children:x.default.node.isRequired,disabled:x.default.bool,enableUserSelectHack:x.default.bool,offsetParent:function(w,S){if(w[S]&&w[S].nodeType!==1)throw new Error("Draggable's offsetParent must be a DOM Node.")},grid:x.default.arrayOf(x.default.number),handle:x.default.string,cancel:x.default.string,nodeRef:x.default.object,onStart:x.default.func,onDrag:x.default.func,onStop:x.default.func,onMouseDown:x.default.func,scale:x.default.number,className:C.dontSetMe,style:C.dontSetMe,transform:C.dontSetMe}),I(T,"defaultProps",{allowAnyClick:!1,allowMobileScroll:!1,disabled:!1,enableUserSelectHack:!0,onStart:function(){},onDrag:function(){},onStop:function(){},onMouseDown:function(){},scale:1}),Fi}()),u=f(p3());function f(g){return g&&g.__esModule?g:{default:g}}function p(){return p=Object.assign?Object.assign.bind():function(g){for(var x=1;x<arguments.length;x++){var y=arguments[x];for(var v in y)({}).hasOwnProperty.call(y,v)&&(g[v]=y[v])}return g},p.apply(null,arguments)}function h(g,x,y){return(x=function(v){var b=function(C,k){if(typeof C!="object"||!C)return C;var _=C[Symbol.toPrimitive];if(_!==void 0){var I=_.call(C,k);if(typeof I!="object")return I;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(C)}(v,"string");return typeof b=="symbol"?b:b+""}(x))in g?Object.defineProperty(g,x,{value:y,enumerable:!0,configurable:!0,writable:!0}):g[x]=y,g}class m extends t.Component{static getDerivedStateFromProps(x,y){let{position:v}=x,{prevPropsPosition:b}=y;return!v||b&&v.x===b.x&&v.y===b.y?null:((0,u.default)("Draggable: getDerivedStateFromProps %j",{position:v,prevPropsPosition:b}),{x:v.x,y:v.y,prevPropsPosition:{...v}})}constructor(x){super(x),h(this,"onDragStart",(y,v)=>{if((0,u.default)("Draggable: onDragStart: %j",v),this.props.onStart(y,(0,l.createDraggableData)(this,v))===!1)return!1;this.setState({dragging:!0,dragged:!0})}),h(this,"onDrag",(y,v)=>{if(!this.state.dragging)return!1;(0,u.default)("Draggable: onDrag: %j",v);const b=(0,l.createDraggableData)(this,v),C={x:b.x,y:b.y,slackX:0,slackY:0};if(this.props.bounds){const{x:k,y:_}=C;C.x+=this.state.slackX,C.y+=this.state.slackY;const[I,M]=(0,l.getBoundPosition)(this,C.x,C.y);C.x=I,C.y=M,C.slackX=this.state.slackX+(k-C.x),C.slackY=this.state.slackY+(_-C.y),b.x=C.x,b.y=C.y,b.deltaX=C.x-this.state.x,b.deltaY=C.y-this.state.y}if(this.props.onDrag(y,b)===!1)return!1;this.setState(C)}),h(this,"onDragStop",(y,v)=>{if(!this.state.dragging||this.props.onStop(y,(0,l.createDraggableData)(this,v))===!1)return!1;(0,u.default)("Draggable: onDragStop: %j",v);const b={dragging:!1,slackX:0,slackY:0};if(this.props.position){const{x:C,y:k}=this.props.position;b.x=C,b.y=k}this.setState(b)}),this.state={dragging:!1,dragged:!1,x:x.position?x.position.x:x.defaultPosition.x,y:x.position?x.position.y:x.defaultPosition.y,prevPropsPosition:{...x.position},slackX:0,slackY:0,isElementSVG:!1},!x.position||x.onDrag||x.onStop||console.warn("A `position` was applied to this <Draggable>, without drag handlers. This will make this component effectively undraggable. Please attach `onDrag` or `onStop` handlers so you can adjust the `position` of this element.")}componentDidMount(){window.SVGElement!==void 0&&this.findDOMNode()instanceof window.SVGElement&&this.setState({isElementSVG:!0})}componentWillUnmount(){this.state.dragging&&this.setState({dragging:!1})}findDOMNode(){return this.props?.nodeRef?.current??o.default.findDOMNode(this)}render(){const{axis:x,bounds:y,children:v,defaultPosition:b,defaultClassName:C,defaultClassNameDragging:k,defaultClassNameDragged:_,position:I,positionOffset:M,scale:F,...j}=this.props;let T={},w=null;const S=!I||this.state.dragging,D=I||b,E={x:(0,l.canDragX)(this)&&S?this.state.x:D.x,y:(0,l.canDragY)(this)&&S?this.state.y:D.y};this.state.isElementSVG?w=(0,i.createSVGTransform)(E,M):T=(0,i.createCSSTransform)(E,M);const R=(0,r.clsx)(v.props.className||"",C,{[k]:this.state.dragging,[_]:this.state.dragged});return t.createElement(c.default,p({},j,{onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop}),t.cloneElement(t.Children.only(v),{className:R,style:{...v.props.style,...T},transform:w}))}}e.default=m,h(m,"displayName","Draggable"),h(m,"propTypes",{...c.default.propTypes,axis:n.default.oneOf(["both","x","y","none"]),bounds:n.default.oneOfType([n.default.shape({left:n.default.number,right:n.default.number,top:n.default.number,bottom:n.default.number}),n.default.string,n.default.oneOf([!1])]),defaultClassName:n.default.string,defaultClassNameDragging:n.default.string,defaultClassNameDragged:n.default.string,defaultPosition:n.default.shape({x:n.default.number,y:n.default.number}),positionOffset:n.default.shape({x:n.default.oneOfType([n.default.number,n.default.string]),y:n.default.oneOfType([n.default.number,n.default.string])}),position:n.default.shape({x:n.default.number,y:n.default.number}),className:d.dontSetMe,style:d.dontSetMe,transform:d.dontSetMe}),h(m,"defaultProps",{...c.default.defaultProps,axis:"both",bounds:!1,defaultClassName:"react-draggable",defaultClassNameDragging:"react-draggable-dragging",defaultClassNameDragged:"react-draggable-dragged",defaultPosition:{x:0,y:0},scale:1})}(r3)),r3}var vb=function(){if(h3)return Ai.exports;h3=1;const{default:e,DraggableCore:t}=bb();return Ai.exports=e,Ai.exports.default=e,Ai.exports.DraggableCore=t,Ai.exports}();const wb=J7(vb),f3={x:0,y:0},Sb=s.memo(s.forwardRef((e,t)=>{const{defaultPosition:n=f3,PaperComponent:o=V.Paper,onDragStop:r,rootSel:i=".MuiModal-root",handleSel:l=".draggable-title",titleSize:d,rootSize:c,...u}=e,f=s.useRef(null),p=s.useMemo(()=>d&&c?{left:0,top:0,right:c.width-d.width,bottom:c.height-d.height}:null,[d,c]),[h,m]=s.useState(null),[g,x]=s.useState(null),[y,v]=s.useState(null);return s.useLayoutEffect(()=>{!h&&n&&m(n??f3)},[n]),s.useEffect(()=>{p&&h&&x({x:Math.max(0,Math.min(h.x,p.right)),y:Math.max(0,Math.min(h.y,p.bottom))})},[h,p]),a.jsx(wb,{nodeRef:f,handle:l,cancel:'[class*="MuiDialogContent-root"]',position:g,bounds:p??".MuiModal-root",onStop:r,onStart:(b,C)=>{const k=b;v({x:(k.clientX??k.touches?.[0]?.clientX)-C.x,y:(k.clientY??k.touches?.[0]?.clientY)-C.y})},onDrag:(b,C)=>{const k=b,_=k.clientX??k.touches?.[0]?.clientX,I=k.clientY??k.touches?.[0]?.clientY;m({x:_-y.x,y:I-y.y})},children:a.jsx(o,{ref:Ud([f,t]),...u})})})),Cb={x:"50",y:"50"},lh=s.memo(e=>{const t=function({props:he,name:we}){return Sg({props:he,name:we,defaultTheme:Pd,themeId:Td})}({props:e,name:"MuiDialog"}),n=Ad(),o={enter:.66*n.transitions.duration.enteringScreen,exit:.66*n.transitions.duration.leavingScreen},{title:r="SheetXL",key:i="draggable-window",onCancel:l,onDone:d,onShow:c,onShown:u,onHide:f,refWindow:p,open:h,autoFocusSel:m,children:g,TransitionComponent:x=V.Fade,TransitionProps:y,transitionDuration:v=o,BackdropComponent:b=V.Backdrop,BackdropProps:C,PaperComponent:k=V.Paper,PaperProps:_,onBackdropClick:I,sx:M,className:F,onMouseDown:j,initialPosition:T=Cb,isModal:w=!1,...S}=t,D=s.useRef(null),[E,R]=s.useState(null),[A,L]=s.useState(!1),[P,z]=s.useState(!1),U=s.useRef(null),[O,q]=N5(),X=s.useRef(null),[re,$]=N5(),W=s.useRef(null);s.useEffect(()=>{E&&L(h)},[h,E]);const B=Yt(()=>{l?.(),L(!1)},[l]);s.useEffect(()=>{if(q.width===0&&q.height===0||E)return;const he=W.current?.getBoundingClientRect(),we=q.height-he.height,Y=q.width-he.width;let ze=.5*Y,ht=.5*we;typeof T?.x=="number"?ze=T.x:typeof T?.x=="string"&&(ze=Y*(parseFloat(T.x)/100)),typeof T?.y=="number"?ht=T.y:typeof T?.y=="string"&&(ht=we*(parseFloat(T.y)/100)),R({x:ze,y:ht})},[q,$]);const[Z,G]=s.useState(!1),[ie,ee]=s.useState(null),[le,ue]=s.useState(null),de=Yt(he=>{if(ie)return ie.focus(he),!0;if(m){const we=X.current?.querySelectorAll?.(m);if(we&&we.length>0)return we[0]?.focus?.(he),!0}return X.current?.focus?.(he),!1},[ie,m]),oe=zs(p,()=>({focus:he=>{de(he)}}),[]),fe={...y,onExited:he=>{d?.(null),y?.onExited?.(he)},onExit:he=>{const we=le;we&&requestAnimationFrame(()=>{oe.current?.contains(document.activeElement)&&we.focus()}),f?.(),z(!1),y?.onExit?.(he)},onEntered:(he,we)=>{c?.(),y?.onEntered?.(he,we)},onEntering:(he,we)=>{z(!0),u?.(oe.current)}};s.useEffect(()=>{P&&de()},[P]);const Te=a.jsx(yb,{focusTrapOptions:{escapeDeactivates:!1,allowOutsideClick:!0,initialFocus:!1},ref:D,active:P,children:a.jsx(x,{in:A,timeout:v,role:"presentation",...fe,children:a.jsx(V.Box,{className:"MuiDialog-container",ref:X,tabIndex:0,sx:{outline:"none",position:"relative"},onKeyDown:he=>{he.which===mo.Escape&&(B(),U.current?.start(he,{center:!1}),setTimeout(()=>U.current?.stop(he),180)),he.stopPropagation()},children:a.jsxs(Sb,{className:ao({"Mui-focusVisible":Z},F),sx:{"& *":he=>Gd(he),pointerEvents:"auto",userSelect:"none","&:hover:not([disabled]):not(.Mui-focusVisible)":{outline:he=>`solid ${st.alpha(he.palette.text?.primary,.2)} 1px`},"&.Mui-focusVisible":{outline:he=>`solid ${st.alpha(he.palette.text?.primary,.2)} 1px`},position:"absolute",maxWidth:"100%",...M},defaultPosition:E,ref:W,titleSize:$,rootSize:q,PaperComponent:k,...S,..._,children:[r?a.jsx(V.DialogTitle,{className:ao({"Mui-selected":Z},"draggable-title"),sx:{cursor:"move",display:"flex",color:he=>he.palette.text.secondary,boxSizing:"border-box",padding:"0 0",transitionProperty:"opacity",transitionDuration:he=>`${he.transitions.duration.shortest}ms`,opacity:.7,"&.Mui-selected":{opacity:1,transitionDuration:he=>he.transitions.duration.shortest/2+"ms"},backgroundColor:he=>st.alpha(he.palette.action.hover,.03)},ref:re,children:a.jsxs(V.Box,{sx:{display:"flex",flex:"1 1 10%",flexDirection:"row",alignItems:"center",marginTop:he=>he.spacing(1),marginLeft:he=>he.spacing(1),marginRight:he=>he.spacing(1)},children:[a.jsx(V.Box,{sx:{flex:"1 1 100%",paddingLeft:he=>he.spacing(1)},children:r}),a.jsx(go,{label:"Close",children:a.jsx(V.IconButton,{"aria-label":"close",sx:{color:he=>he.palette.text.icon??he.palette.action.active},touchRippleRef:U,onPointerDown:he=>{U.current?.start(he,{center:!1}),he.stopPropagation(),he.preventDefault()},onPointerUp:B,children:a.jsx(an.Close,{})})})]})}):null,g]})})})});let Le=null;w&&(Le=a.jsx(b,{...C,open:A,onMouseDown:he=>{B(),C?.onMouseDown?.(he)},onClick:he=>{I?.(he),C?.onClick?.(he)},sx:{pointerEvents:"auto",...C?.sx}}));const{getPortalContainer:ce}=Vd();return eo.createPortal(a.jsxs(V.Box,{className:"MuiModal-root",sx:{position:"fixed",zIndex:"1300",right:"0",bottom:"0",top:"0",left:"0",outline:"0",display:"block",pointerEvents:"none"},ref:Ud([oe,O]),onPointerDown:he=>{Z&&(he.target===X.current||he.target.tabIndex<0)&&X.current?.contains(document.activeElement)},onContextMenu:he=>{he.isPropagationStopped()||he.preventDefault()},onFocus:he=>{!Z&&(he.target===X.current||he.target.tabIndex<0)&&setTimeout(()=>{de()},100),D.current?.focusTrap?.unpause(),G(!0),X.current?.contains(he.target)&&he.target!==X.current&&ee(he.target),he.relatedTarget&&!le&&ue(he.relatedTarget)},onBlur:he=>{oe?.current?.contains(he.relatedTarget)||(ue(null),D.current?.focusTrap?.pause(),G(!1))},children:[Le,Te]}),ce(),i+"")});var ir=typeof window<"u"?window:{screen:{},navigator:{}},mi=(ir.matchMedia||function(){return{matches:!1}}).bind(ir),kb={get passive(){return!0}},m3=function(){};ir.addEventListener&&ir.addEventListener("p",m3,kb),ir.removeEventListener&&ir.removeEventListener("p",m3,!1);var Xd="ontouchstart"in ir,Eb=Xd||"TouchEvent"in ir&&mi("(any-pointer: coarse)").matches,g3=(ir.navigator.maxTouchPoints||0)>0||Eb,ah=ir.navigator.userAgent||"",_b=mi("(pointer: coarse)").matches&&/iPad|Macintosh/.test(ah)&&Math.min(ir.screen.width||0,ir.screen.height||0)>=768,sh=(mi("(pointer: coarse)").matches||!mi("(pointer: fine)").matches&&Xd)&&!/Windows.*Firefox/.test(ah),Tb=mi("(any-pointer: fine)").matches||mi("(any-hover: hover)").matches||_b||!Xd,x3=!g3||!Tb&&sh?g3?"touchOnly":"mouseOnly":"hybrid",jb=x3==="mouseOnly"?"mouse":x3==="touchOnly"||sh?"touch":"mouse",ul=e=>e.type==="checkbox",b0=e=>e instanceof Date,Mo=e=>e==null;const ch=e=>typeof e=="object";var to=e=>!Mo(e)&&!Array.isArray(e)&&ch(e)&&!b0(e),Yd=typeof window<"u"&&window.HTMLElement!==void 0&&typeof document<"u";function yo(e){let t;const n=Array.isArray(e),o=typeof FileList<"u"&&e instanceof FileList;if(e instanceof Date)t=new Date(e);else if(e instanceof Set)t=new Set(e);else{if(Yd&&(e instanceof Blob||o)||!n&&!to(e))return e;if(t=n?[]:{},n||(r=>{const i=r.constructor&&r.constructor.prototype;return to(i)&&i.hasOwnProperty("isPrototypeOf")})(e))for(const r in e)e.hasOwnProperty(r)&&(t[r]=yo(e[r]));else t=e}return t}var Ns=e=>/^\w*$/.test(e),no=e=>e===void 0,Gc=e=>Array.isArray(e)?e.filter(Boolean):[],Jd=e=>Gc(e.replace(/["|']|\]/g,"").split(/\.|\[/)),Dt=(e,t,n)=>{if(!t||!to(e))return n;const o=(Ns(t)?[t]:Jd(t)).reduce((r,i)=>Mo(r)?r:r[i],e);return no(o)||o===e?no(e[t])?n:e[t]:o},Er=e=>typeof e=="boolean",Dn=(e,t,n)=>{let o=-1;const r=Ns(t)?[t]:Jd(t),i=r.length,l=i-1;for(;++o<i;){const d=r[o];let c=n;if(o!==l){const u=e[d];c=to(u)||Array.isArray(u)?u:isNaN(+r[o+1])?{}:[]}if(d==="__proto__"||d==="constructor"||d==="prototype")return;e[d]=c,e=e[d]}};const dh="onChange",uh="onSubmit",jl="all",y3="pattern",b3="required",hh=s.createContext(null);hh.displayName="HookFormContext";const Mb=e=>{const{children:t,...n}=e;return s.createElement(hh.Provider,{value:n},t)},Rb=typeof window<"u"?i0.useLayoutEffect:i0.useEffect;var _r=e=>typeof e=="string",Ib=(e,t,n,o,r)=>t?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[o]:r||!0}}:{},el=e=>Array.isArray(e)?e:[e],v3=()=>{let e=[];return{get observers(){return e},next:t=>{for(const n of e)n.next&&n.next(t)},subscribe:t=>(e.push(t),{unsubscribe:()=>{e=e.filter(n=>n!==t)}}),unsubscribe:()=>{e=[]}}},Kc=e=>Mo(e)||!ch(e);function o0(e,t){if(Kc(e)||Kc(t))return e===t;if(b0(e)&&b0(t))return e.getTime()===t.getTime();const n=Object.keys(e),o=Object.keys(t);if(n.length!==o.length)return!1;for(const r of n){const i=e[r];if(!o.includes(r))return!1;if(r!=="ref"){const l=t[r];if(b0(i)&&b0(l)||to(i)&&to(l)||Array.isArray(i)&&Array.isArray(l)?!o0(i,l):i!==l)return!1}}return!0}var Do=e=>to(e)&&!Object.keys(e).length,Qd=e=>e.type==="file",hr=e=>typeof e=="function",ps=e=>{if(!Yd)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},ph=e=>e.type==="select-multiple",e2=e=>e.type==="radio",O1=e=>ps(e)&&e.isConnected;function io(e,t){const n=Array.isArray(t)?t:Ns(t)?[t]:Jd(t),o=n.length===1?e:function(l,d){const c=d.slice(0,-1).length;let u=0;for(;u<c;)l=no(l)?u++:l[d[u++]];return l}(e,n),r=n.length-1,i=n[r];return o&&delete o[i],r!==0&&(to(o)&&Do(o)||Array.isArray(o)&&function(l){for(const d in l)if(l.hasOwnProperty(d)&&!no(l[d]))return!1;return!0}(o))&&io(e,n.slice(0,-1)),e}var fh=e=>{for(const t in e)if(hr(e[t]))return!0;return!1};function fs(e,t={}){const n=Array.isArray(e);if(to(e)||n)for(const o in e)Array.isArray(e[o])||to(e[o])&&!fh(e[o])?(t[o]=Array.isArray(e[o])?[]:{},fs(e[o],t[o])):Mo(e[o])||(t[o]=!0);return t}function mh(e,t,n){const o=Array.isArray(e);if(to(e)||o)for(const r in e)Array.isArray(e[r])||to(e[r])&&!fh(e[r])?no(t)||Kc(n[r])?n[r]=Array.isArray(e[r])?fs(e[r],[]):{...fs(e[r])}:mh(e[r],Mo(t)?{}:t[r],n[r]):n[r]=!o0(e[r],t[r]);return n}var zi=(e,t)=>mh(e,t,fs(t));const w3={value:!1,isValid:!1},S3={value:!0,isValid:!0};var gh=e=>{if(Array.isArray(e)){if(e.length>1){const t=e.filter(n=>n&&n.checked&&!n.disabled).map(n=>n.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!no(e[0].attributes.value)?no(e[0].value)||e[0].value===""?S3:{value:e[0].value,isValid:!0}:S3:w3}return w3},xh=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:o})=>no(e)?e:t?e===""?NaN:e&&+e:n&&_r(e)?new Date(e):o?o(e):e;const C3={isValid:!1,value:null};var yh=e=>Array.isArray(e)?e.reduce((t,n)=>n&&n.checked&&!n.disabled?{isValid:!0,value:n.value}:t,C3):C3;function k3(e){const t=e.ref;return Qd(t)?t.files:e2(t)?yh(e.refs).value:ph(t)?[...t.selectedOptions].map(({value:n})=>n):ul(t)?gh(e.refs).value:xh(no(t.value)?e.ref.value:t.value,e)}var ms=e=>e instanceof RegExp,Bi=e=>no(e)?e:ms(e)?e.source:to(e)?ms(e.value)?e.value.source:e.value:e,E3=e=>({isOnSubmit:!e||e===uh,isOnBlur:e==="onBlur",isOnChange:e===dh,isOnAll:e===jl,isOnTouch:e==="onTouched"});const _3="AsyncFunction";var Db=e=>!!e&&!!e.validate&&!!(hr(e.validate)&&e.validate.constructor.name===_3||to(e.validate)&&Object.values(e.validate).find(t=>t.constructor.name===_3)),T3=(e,t,n)=>!n&&(t.watchAll||t.watch.has(e)||[...t.watch].some(o=>e.startsWith(o)&&/^\.\w+/.test(e.slice(o.length))));const hl=(e,t,n,o)=>{for(const r of n||Object.keys(e)){const i=Dt(e,r);if(i){const{_f:l,...d}=i;if(l){if(l.refs&&l.refs[0]&&t(l.refs[0],r)&&!o||l.ref&&t(l.ref,l.name)&&!o)return!0;if(hl(d,t))break}else if(to(d)&&hl(d,t))break}}};function j3(e,t,n){const o=Dt(e,n);if(o||Ns(n))return{error:o,name:n};const r=n.split(".");for(;r.length;){const i=r.join("."),l=Dt(t,i),d=Dt(e,i);if(l&&!Array.isArray(l)&&n!==i)return{name:n};if(d&&d.type)return{name:i,error:d};if(d&&d.root&&d.root.type)return{name:`${i}.root`,error:d.root};r.pop()}return{name:n}}var Lb=(e,t,n)=>{const o=el(Dt(e,n));return Dn(o,"root",t[n]),Dn(e,n,o),e},$a=e=>_r(e);function M3(e,t,n="validate"){if($a(e)||Array.isArray(e)&&e.every($a)||Er(e)&&!e)return{type:n,message:$a(e)?e:"",ref:t}}var z0=e=>to(e)&&!ms(e)?e:{value:e,message:""},R3=async(e,t,n,o,r,i)=>{const{ref:l,refs:d,required:c,maxLength:u,minLength:f,min:p,max:h,pattern:m,validate:g,name:x,valueAsNumber:y,mount:v}=e._f,b=Dt(n,x);if(!v||t.has(x))return{};const C=d?d[0]:l,k=S=>{r&&C.reportValidity&&(C.setCustomValidity(Er(S)?"":S||""),C.reportValidity())},_={},I=e2(l),M=ul(l),F=I||M,j=(y||Qd(l))&&no(l.value)&&no(b)||ps(l)&&l.value===""||b===""||Array.isArray(b)&&!b.length,T=Ib.bind(null,x,o,_),w=(S,D,E,R="maxLength",A="minLength")=>{const L=S?D:E;_[x]={type:S?R:A,message:L,ref:l,...T(S?R:A,L)}};if(i?!Array.isArray(b)||!b.length:c&&(!F&&(j||Mo(b))||Er(b)&&!b||M&&!gh(d).isValid||I&&!yh(d).isValid)){const{value:S,message:D}=$a(c)?{value:!!c,message:c}:z0(c);if(S&&(_[x]={type:b3,message:D,ref:C,...T(b3,D)},!o))return k(D),_}if(!(j||Mo(p)&&Mo(h))){let S,D;const E=z0(h),R=z0(p);if(Mo(b)||isNaN(b)){const A=l.valueAsDate||new Date(b),L=U=>new Date(new Date().toDateString()+" "+U),P=l.type=="time",z=l.type=="week";_r(E.value)&&b&&(S=P?L(b)>L(E.value):z?b>E.value:A>new Date(E.value)),_r(R.value)&&b&&(D=P?L(b)<L(R.value):z?b<R.value:A<new Date(R.value))}else{const A=l.valueAsNumber||b&&+b;Mo(E.value)||(S=A>E.value),Mo(R.value)||(D=A<R.value)}if((S||D)&&(w(!!S,E.message,R.message,"max","min"),!o))return k(_[x].message),_}if((u||f)&&!j&&(_r(b)||i&&Array.isArray(b))){const S=z0(u),D=z0(f),E=!Mo(S.value)&&b.length>+S.value,R=!Mo(D.value)&&b.length<+D.value;if((E||R)&&(w(E,S.message,D.message),!o))return k(_[x].message),_}if(m&&!j&&_r(b)){const{value:S,message:D}=z0(m);if(ms(S)&&!b.match(S)&&(_[x]={type:y3,message:D,ref:l,...T(y3,D)},!o))return k(D),_}if(g){if(hr(g)){const S=M3(await g(b,n),C);if(S&&(_[x]={...S,...T("validate",S.message)},!o))return k(S.message),_}else if(to(g)){let S={};for(const D in g){if(!Do(S)&&!o)break;const E=M3(await g[D](b,n),C,D);E&&(S={...E,...T(D,E.message)},k(E.message),o&&(_[x]=S))}if(!Do(S)&&(_[x]={ref:C,...S},!o))return _}}return k(!0),_};const Ob={mode:uh,reValidateMode:dh,shouldFocusError:!0};function Pb(e={}){let t={...Ob,...e},n={submitCount:0,isDirty:!1,isReady:!1,isLoading:hr(t.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:t.errors||{},disabled:t.disabled||!1};const o={};let r,i=(to(t.defaultValues)||to(t.values))&&yo(t.defaultValues||t.values)||{},l=t.shouldUnregister?{}:yo(i),d={action:!1,mount:!1,watch:!1},c={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set},u=0;const f={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1};let p={...f};const h={array:v3(),state:v3()},m=t.criteriaMode===jl,g=async $=>{if(!t.disabled&&(f.isValid||p.isValid||$)){const W=t.resolver?Do((await b()).errors):await C(o,!0);W!==n.isValid&&h.state.next({isValid:W})}},x=($,W)=>{!t.disabled&&(f.isValidating||f.validatingFields||p.isValidating||p.validatingFields)&&(($||Array.from(c.mount)).forEach(B=>{B&&(W?Dn(n.validatingFields,B,W):io(n.validatingFields,B))}),h.state.next({validatingFields:n.validatingFields,isValidating:!Do(n.validatingFields)}))},y=($,W,B,Z)=>{const G=Dt(o,$);if(G){const ie=Dt(l,$,no(B)?Dt(i,$):B);no(ie)||Z&&Z.defaultChecked||W?Dn(l,$,W?ie:k3(G._f)):I($,ie),d.mount&&g()}},v=($,W,B,Z,G)=>{let ie=!1,ee=!1;const le={name:$};if(!t.disabled){if(!B||Z){(f.isDirty||p.isDirty)&&(ee=n.isDirty,n.isDirty=le.isDirty=k(),ie=ee!==le.isDirty);const ue=o0(Dt(i,$),W);ee=!!Dt(n.dirtyFields,$),ue?io(n.dirtyFields,$):Dn(n.dirtyFields,$,!0),le.dirtyFields=n.dirtyFields,ie=ie||(f.dirtyFields||p.dirtyFields)&&ee!==!ue}if(B){const ue=Dt(n.touchedFields,$);ue||(Dn(n.touchedFields,$,B),le.touchedFields=n.touchedFields,ie=ie||(f.touchedFields||p.touchedFields)&&ue!==B)}ie&&G&&h.state.next(le)}return ie?le:{}},b=async $=>{x($,!0);const W=await t.resolver(l,t.context,((B,Z,G,ie)=>{const ee={};for(const le of B){const ue=Dt(Z,le);ue&&Dn(ee,le,ue._f)}return{criteriaMode:G,names:[...B],fields:ee,shouldUseNativeValidation:ie}})($||c.mount,o,t.criteriaMode,t.shouldUseNativeValidation));return x($),W},C=async($,W,B={valid:!0})=>{for(const Z in $){const G=$[Z];if(G){const{_f:ie,...ee}=G;if(ie){const le=c.array.has(ie.name),ue=G._f&&Db(G._f);ue&&f.validatingFields&&x([Z],!0);const de=await R3(G,c.disabled,l,m,t.shouldUseNativeValidation&&!W,le);if(ue&&f.validatingFields&&x([Z]),de[ie.name]&&(B.valid=!1,W))break;!W&&(Dt(de,ie.name)?le?Lb(n.errors,de,ie.name):Dn(n.errors,ie.name,de[ie.name]):io(n.errors,ie.name))}!Do(ee)&&await C(ee,W,B)}}return B.valid},k=($,W)=>!t.disabled&&($&&W&&Dn(l,$,W),!o0(S(),i)),_=($,W,B)=>((Z,G,ie,ee,le)=>_r(Z)?(ee&&G.watch.add(Z),Dt(ie,Z,le)):Array.isArray(Z)?Z.map(ue=>(ee&&G.watch.add(ue),Dt(ie,ue))):(ee&&(G.watchAll=!0),ie))($,c,{...d.mount?l:no(W)?i:_r($)?{[$]:W}:W},B,W),I=($,W,B={})=>{const Z=Dt(o,$);let G=W;if(Z){const ie=Z._f;ie&&(!ie.disabled&&Dn(l,$,xh(W,ie)),G=ps(ie.ref)&&Mo(W)?"":W,ph(ie.ref)?[...ie.ref.options].forEach(ee=>ee.selected=G.includes(ee.value)):ie.refs?ul(ie.ref)?ie.refs.forEach(ee=>{ee.defaultChecked&&ee.disabled||(Array.isArray(G)?ee.checked=!!G.find(le=>le===ee.value):ee.checked=G===ee.value||!!G)}):ie.refs.forEach(ee=>ee.checked=ee.value===G):Qd(ie.ref)?ie.ref.value="":(ie.ref.value=G,ie.ref.type||h.state.next({name:$,values:yo(l)})))}(B.shouldDirty||B.shouldTouch)&&v($,G,B.shouldTouch,B.shouldDirty,!0),B.shouldValidate&&w($)},M=($,W,B)=>{for(const Z in W){if(!W.hasOwnProperty(Z))return;const G=W[Z],ie=$+"."+Z,ee=Dt(o,ie);(c.array.has($)||to(G)||ee&&!ee._f)&&!b0(G)?M(ie,G,B):I(ie,G,B)}},F=($,W,B={})=>{const Z=Dt(o,$),G=c.array.has($),ie=yo(W);Dn(l,$,ie),G?(h.array.next({name:$,values:yo(l)}),(f.isDirty||f.dirtyFields||p.isDirty||p.dirtyFields)&&B.shouldDirty&&h.state.next({name:$,dirtyFields:zi(i,l),isDirty:k($,ie)})):!Z||Z._f||Mo(ie)?I($,ie,B):M($,ie,B),T3($,c)&&h.state.next({...n}),h.state.next({name:d.mount?$:void 0,values:yo(l)})},j=async $=>{d.mount=!0;const W=$.target;let B=W.name,Z=!0;const G=Dt(o,B),ie=de=>{Z=Number.isNaN(de)||b0(de)&&isNaN(de.getTime())||o0(de,Dt(l,B,de))},ee=E3(t.mode),le=E3(t.reValidateMode);if(G){let de,oe;const fe=W.type?k3(G._f):to(ue=$)&&ue.target?ul(ue.target)?ue.target.checked:ue.target.value:ue,Te=$.type==="blur"||$.type==="focusout",Le=!(Y=>Y.mount&&(Y.required||Y.min||Y.max||Y.maxLength||Y.minLength||Y.pattern||Y.validate))(G._f)&&!t.resolver&&!Dt(n.errors,B)&&!G._f.deps||((Y,ze,ht,ut,ke)=>!ke.isOnAll&&(!ht&&ke.isOnTouch?!(ze||Y):(ht?ut.isOnBlur:ke.isOnBlur)?!Y:!(ht?ut.isOnChange:ke.isOnChange)||Y))(Te,Dt(n.touchedFields,B),n.isSubmitted,le,ee),ce=T3(B,c,Te);Dn(l,B,fe),Te?(G._f.onBlur&&G._f.onBlur($),r&&r(0)):G._f.onChange&&G._f.onChange($);const he=v(B,fe,Te),we=!Do(he)||ce;if(!Te&&h.state.next({name:B,type:$.type,values:yo(l)}),Le)return(f.isValid||p.isValid)&&(t.mode==="onBlur"?Te&&g():Te||g()),we&&h.state.next({name:B,...ce?{}:he});if(!Te&&ce&&h.state.next({...n}),t.resolver){const{errors:Y}=await b([B]);if(ie(fe),Z){const ze=j3(n.errors,o,B),ht=j3(Y,o,ze.name||B);de=ht.error,B=ht.name,oe=Do(Y)}}else x([B],!0),de=(await R3(G,c.disabled,l,m,t.shouldUseNativeValidation))[B],x([B]),ie(fe),Z&&(de?oe=!1:(f.isValid||p.isValid)&&(oe=await C(o,!0)));Z&&(G._f.deps&&w(G._f.deps),((Y,ze,ht,ut)=>{const ke=Dt(n.errors,Y),ot=(f.isValid||p.isValid)&&Er(ze)&&n.isValid!==ze;var dt;if(t.delayError&&ht?(dt=()=>((Fe,Je)=>{Dn(n.errors,Fe,Je),h.state.next({errors:n.errors})})(Y,ht),r=Fe=>{clearTimeout(u),u=setTimeout(dt,Fe)},r(t.delayError)):(clearTimeout(u),r=null,ht?Dn(n.errors,Y,ht):io(n.errors,Y)),(ht?!o0(ke,ht):ke)||!Do(ut)||ot){const Fe={...ut,...ot&&Er(ze)?{isValid:ze}:{},errors:n.errors,name:Y};n={...n,...Fe},h.state.next(Fe)}})(B,oe,de,he))}var ue},T=($,W)=>{if(Dt(n.errors,W)&&$.focus)return $.focus(),1},w=async($,W={})=>{let B,Z;const G=el($);if(t.resolver){const ie=await(async ee=>{const{errors:le}=await b(ee);if(ee)for(const ue of ee){const de=Dt(le,ue);de?Dn(n.errors,ue,de):io(n.errors,ue)}else n.errors=le;return le})(no($)?$:G);B=Do(ie),Z=$?!G.some(ee=>Dt(ie,ee)):B}else $?(Z=(await Promise.all(G.map(async ie=>{const ee=Dt(o,ie);return await C(ee&&ee._f?{[ie]:ee}:ee)}))).every(Boolean),(Z||n.isValid)&&g()):Z=B=await C(o);return h.state.next({...!_r($)||(f.isValid||p.isValid)&&B!==n.isValid?{}:{name:$},...t.resolver||!$?{isValid:B}:{},errors:n.errors}),W.shouldFocus&&!Z&&hl(o,T,$?G:c.mount),Z},S=$=>{const W={...d.mount?l:i};return no($)?W:_r($)?Dt(W,$):$.map(B=>Dt(W,B))},D=($,W)=>({invalid:!!Dt((W||n).errors,$),isDirty:!!Dt((W||n).dirtyFields,$),error:Dt((W||n).errors,$),isValidating:!!Dt(n.validatingFields,$),isTouched:!!Dt((W||n).touchedFields,$)}),E=($,W,B)=>{const Z=(Dt(o,$,{_f:{}})._f||{}).ref,G=Dt(n.errors,$)||{},{ref:ie,message:ee,type:le,...ue}=G;Dn(n.errors,$,{...ue,...W,ref:Z}),h.state.next({name:$,errors:n.errors,isValid:!1}),B&&B.shouldFocus&&Z&&Z.focus&&Z.focus()},R=$=>h.state.subscribe({next:W=>{var B,Z,G;B=$.name,Z=W.name,G=$.exact,B&&Z&&B!==Z&&!el(B).some(ie=>ie&&(G?ie===Z:ie.startsWith(Z)||Z.startsWith(ie)))||!((ie,ee,le,ue)=>{le(ie);const{name:de,...oe}=ie;return Do(oe)||Object.keys(oe).length>=Object.keys(ee).length||Object.keys(oe).find(fe=>ee[fe]===(!ue||jl))})(W,$.formState||f,X,$.reRenderRoot)||$.callback({values:{...l},...n,...W})}}).unsubscribe,A=($,W={})=>{for(const B of $?el($):c.mount)c.mount.delete(B),c.array.delete(B),W.keepValue||(io(o,B),io(l,B)),!W.keepError&&io(n.errors,B),!W.keepDirty&&io(n.dirtyFields,B),!W.keepTouched&&io(n.touchedFields,B),!W.keepIsValidating&&io(n.validatingFields,B),!t.shouldUnregister&&!W.keepDefaultValue&&io(i,B);h.state.next({values:yo(l)}),h.state.next({...n,...W.keepDirty?{isDirty:k()}:{}}),!W.keepIsValid&&g()},L=({disabled:$,name:W})=>{(Er($)&&d.mount||$||c.disabled.has(W))&&($?c.disabled.add(W):c.disabled.delete(W))},P=($,W={})=>{let B=Dt(o,$);const Z=Er(W.disabled)||Er(t.disabled);return Dn(o,$,{...B||{},_f:{...B&&B._f?B._f:{ref:{name:$}},name:$,mount:!0,...W}}),c.mount.add($),B?L({disabled:Er(W.disabled)?W.disabled:t.disabled,name:$}):y($,!0,W.value),{...Z?{disabled:W.disabled||t.disabled}:{},...t.progressive?{required:!!W.required,min:Bi(W.min),max:Bi(W.max),minLength:Bi(W.minLength),maxLength:Bi(W.maxLength),pattern:Bi(W.pattern)}:{},name:$,onChange:j,onBlur:j,ref:G=>{if(G){P($,W),B=Dt(o,$);const ie=no(G.value)&&G.querySelectorAll&&G.querySelectorAll("input,select,textarea")[0]||G,ee=(ue=>e2(ue)||ul(ue))(ie),le=B._f.refs||[];if(ee?le.find(ue=>ue===ie):ie===B._f.ref)return;Dn(o,$,{_f:{...B._f,...ee?{refs:[...le.filter(O1),ie,...Array.isArray(Dt(i,$))?[{}]:[]],ref:{type:ie.type,name:$}}:{ref:ie}}}),y($,!1,void 0,ie)}else B=Dt(o,$,{}),B._f&&(B._f.mount=!1),(t.shouldUnregister||W.shouldUnregister)&&(!((ie,ee)=>ie.has((le=>le.substring(0,le.search(/\.\d+(\.|$)/))||le)(ee)))(c.array,$)||!d.action)&&c.unMount.add($)}}},z=()=>t.shouldFocusError&&hl(o,T,c.mount),U=($,W)=>async B=>{let Z;B&&(B.preventDefault&&B.preventDefault(),B.persist&&B.persist());let G=yo(l);if(h.state.next({isSubmitting:!0}),t.resolver){const{errors:ie,values:ee}=await b();n.errors=ie,G=ee}else await C(o);if(c.disabled.size)for(const ie of c.disabled)Dn(G,ie,void 0);if(io(n.errors,"root"),Do(n.errors)){h.state.next({errors:{}});try{await $(G,B)}catch(ie){Z=ie}}else W&&await W({...n.errors},B),z(),setTimeout(z);if(h.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:Do(n.errors)&&!Z,submitCount:n.submitCount+1,errors:n.errors}),Z)throw Z},O=($,W={})=>{const B=$?yo($):i,Z=yo(B),G=Do($),ie=G?i:Z;if(W.keepDefaultValues||(i=B),!W.keepValues){if(W.keepDirtyValues){const ee=new Set([...c.mount,...Object.keys(zi(i,l))]);for(const le of Array.from(ee))Dt(n.dirtyFields,le)?Dn(ie,le,Dt(l,le)):F(le,Dt(ie,le))}else{if(Yd&&no($))for(const ee of c.mount){const le=Dt(o,ee);if(le&&le._f){const ue=Array.isArray(le._f.refs)?le._f.refs[0]:le._f.ref;if(ps(ue)){const de=ue.closest("form");if(de){de.reset();break}}}}for(const ee of c.mount)F(ee,Dt(ie,ee))}l=yo(ie),h.array.next({values:{...ie}}),h.state.next({values:{...ie}})}c={mount:W.keepDirtyValues?c.mount:new Set,unMount:new Set,array:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},d.mount=!f.isValid||!!W.keepIsValid||!!W.keepDirtyValues,d.watch=!!t.shouldUnregister,h.state.next({submitCount:W.keepSubmitCount?n.submitCount:0,isDirty:!G&&(W.keepDirty?n.isDirty:!(!W.keepDefaultValues||o0($,i))),isSubmitted:!!W.keepIsSubmitted&&n.isSubmitted,dirtyFields:G?{}:W.keepDirtyValues?W.keepDefaultValues&&l?zi(i,l):n.dirtyFields:W.keepDefaultValues&&$?zi(i,$):W.keepDirty?n.dirtyFields:{},touchedFields:W.keepTouched?n.touchedFields:{},errors:W.keepErrors?n.errors:{},isSubmitSuccessful:!!W.keepIsSubmitSuccessful&&n.isSubmitSuccessful,isSubmitting:!1})},q=($,W)=>O(hr($)?$(l):$,W),X=$=>{n={...n,...$}},re={control:{register:P,unregister:A,getFieldState:D,handleSubmit:U,setError:E,_subscribe:R,_runSchema:b,_focusError:z,_getWatch:_,_getDirty:k,_setValid:g,_setFieldArray:($,W=[],B,Z,G=!0,ie=!0)=>{if(Z&&B&&!t.disabled){if(d.action=!0,ie&&Array.isArray(Dt(o,$))){const ee=B(Dt(o,$),Z.argA,Z.argB);G&&Dn(o,$,ee)}if(ie&&Array.isArray(Dt(n.errors,$))){const ee=B(Dt(n.errors,$),Z.argA,Z.argB);G&&Dn(n.errors,$,ee),((le,ue)=>{!Gc(Dt(le,ue)).length&&io(le,ue)})(n.errors,$)}if((f.touchedFields||p.touchedFields)&&ie&&Array.isArray(Dt(n.touchedFields,$))){const ee=B(Dt(n.touchedFields,$),Z.argA,Z.argB);G&&Dn(n.touchedFields,$,ee)}(f.dirtyFields||p.dirtyFields)&&(n.dirtyFields=zi(i,l)),h.state.next({name:$,isDirty:k($,W),dirtyFields:n.dirtyFields,errors:n.errors,isValid:n.isValid})}else Dn(l,$,W)},_setDisabledField:L,_setErrors:$=>{n.errors=$,h.state.next({errors:n.errors,isValid:!1})},_getFieldArray:$=>Gc(Dt(d.mount?l:i,$,t.shouldUnregister?Dt(i,$,[]):[])),_reset:O,_resetDefaultValues:()=>hr(t.defaultValues)&&t.defaultValues().then($=>{q($,t.resetOptions),h.state.next({isLoading:!1})}),_removeUnmounted:()=>{for(const $ of c.unMount){const W=Dt(o,$);W&&(W._f.refs?W._f.refs.every(B=>!O1(B)):!O1(W._f.ref))&&A($)}c.unMount=new Set},_disableForm:$=>{Er($)&&(h.state.next({disabled:$}),hl(o,(W,B)=>{const Z=Dt(o,B);Z&&(W.disabled=Z._f.disabled||$,Array.isArray(Z._f.refs)&&Z._f.refs.forEach(G=>{G.disabled=Z._f.disabled||$}))},0,!1))},_subjects:h,_proxyFormState:f,get _fields(){return o},get _formValues(){return l},get _state(){return d},set _state($){d=$},get _defaultValues(){return i},get _names(){return c},set _names($){c=$},get _formState(){return n},get _options(){return t},set _options($){t={...t,...$}}},subscribe:$=>(d.mount=!0,p={...p,...$.formState},R({...$,formState:p})),trigger:w,register:P,handleSubmit:U,watch:($,W)=>hr($)?h.state.subscribe({next:B=>$(_(void 0,W),B)}):_($,W,!0),setValue:F,getValues:S,reset:q,resetField:($,W={})=>{Dt(o,$)&&(no(W.defaultValue)?F($,yo(Dt(i,$))):(F($,W.defaultValue),Dn(i,$,yo(W.defaultValue))),W.keepTouched||io(n.touchedFields,$),W.keepDirty||(io(n.dirtyFields,$),n.isDirty=W.defaultValue?k($,yo(Dt(i,$))):k()),W.keepError||(io(n.errors,$),f.isValid&&g()),h.state.next({...n}))},clearErrors:$=>{$&&el($).forEach(W=>io(n.errors,W)),h.state.next({errors:$?n.errors:{}})},unregister:A,setError:E,setFocus:($,W={})=>{const B=Dt(o,$),Z=B&&B._f;if(Z){const G=Z.refs?Z.refs[0]:Z.ref;G.focus&&(G.focus(),W.shouldSelect&&hr(G.select)&&G.select())}},getFieldState:D};return{...re,formControl:re}}const Ab=["Ok","Cancel"],Xc=e=>{const{description:t,icon:n,onCancel:o,onOption:r,onDone:i,onValidateOption:l,createOptionsButton:d,options:c=Ab,autoFocusSel:u=".defaultOption",defaultOption:f=c[0],cancelOption:p="Cancel",children:h,...m}=e,g=function(T={}){const w=s.useRef(void 0),S=s.useRef(void 0),[D,E]=s.useState({isDirty:!1,isValidating:!1,isLoading:hr(T.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:T.errors||{},disabled:T.disabled||!1,isReady:!1,defaultValues:hr(T.defaultValues)?void 0:T.defaultValues});if(!w.current)if(T.formControl)w.current={...T.formControl,formState:D},T.defaultValues&&!hr(T.defaultValues)&&T.formControl.reset(T.defaultValues,T.resetOptions);else{const{formControl:A,...L}=Pb(T);w.current={...L,formState:D}}const R=w.current.control;return R._options=T,Rb(()=>{const A=R._subscribe({formState:R._proxyFormState,callback:()=>E({...R._formState}),reRenderRoot:!0});return E(L=>({...L,isReady:!0})),R._formState.isReady=!0,A},[R]),s.useEffect(()=>R._disableForm(T.disabled),[R,T.disabled]),s.useEffect(()=>{T.mode&&(R._options.mode=T.mode),T.reValidateMode&&(R._options.reValidateMode=T.reValidateMode)},[R,T.mode,T.reValidateMode]),s.useEffect(()=>{T.errors&&(R._setErrors(T.errors),R._focusError())},[R,T.errors]),s.useEffect(()=>{T.shouldUnregister&&R._subjects.state.next({values:R._getWatch()})},[R,T.shouldUnregister]),s.useEffect(()=>{if(R._proxyFormState.isDirty){const A=R._getDirty();A!==D.isDirty&&R._subjects.state.next({isDirty:A})}},[R,D.isDirty]),s.useEffect(()=>{T.values&&!o0(T.values,S.current)?(R._reset(T.values,R._options.resetOptions),S.current=T.values,E(A=>({...A}))):R._resetDefaultValues()},[R,T.values]),s.useEffect(()=>{R._state.mount||(R._setValid(),R._state.mount=!0),R._state.watch&&(R._state.watch=!1,R._subjects.state.next({...R._formState})),R._removeUnmounted()}),w.current.formState=((A,L,P,z=!0)=>{const U={defaultValues:L._defaultValues};for(const O in A)Object.defineProperty(U,O,{get:()=>{const q=O;return L._proxyFormState[q]!==jl&&(L._proxyFormState[q]=!z||jl),A[q]}});return U})(D,R),w.current}({shouldUseNativeValidation:!1}),{handleSubmit:x,formState:y}=g,v=s.useRef(null),b=s.useRef(null),C=s.useRef(null),k=Yt(async T=>{let w;try{if(w=await Promise.resolve(l?.(T))??!0,w!==!0)return;await Promise.resolve(r?.(T,T===p,T===f)),i?.(T)}catch{}},[r,i,l,p,f]),_=Yt((T,w)=>{setTimeout(()=>{k(f)},180)},[k]),I=Yt(()=>{r?.(p,!0,!1),o?.(),i?.(null)},[r,p,o,i]),M=y&&(Object.keys(y.errors).length>0||y.disabled||y.isSubmitted),F=Yt((T,w)=>{const S=T===p,D={className:w?"defaultOption":"action",type:w?"submit":"button",style:{minWidth:"75px"},onClick:()=>{S?I():w||k(T)}};if(d)return d(T,D,w);const E={className:w?"defaultOption":"action",variant:w?"contained":"outlined",size:"small",disabled:!S&&M,color:"primary",...D};if(w||S){const R=w?v:b;E.touchRippleRef=R,E.onPointerDown=A=>{R.current?.start(A,{center:!1}),A.stopPropagation(),A.preventDefault()}}return a.jsx(V.Button,{...E,children:a.jsx("div",{style:{paddingTop:"3px"},children:T})},`action:${T}`)},[c,f,p,d,y]),j=s.useMemo(()=>{const T=[];for(let w=0;w<c.length;w++){const S=c[w],D=f?S===f:w===0;T.push(F(S,D))}return T},[c,f,y]);return a.jsx(lh,{onCancel:I,initialPosition:{y:jb==="touch"?"15":"35"},onDone:i,autoFocusSel:u,isModal:!0,PaperProps:{},...m,children:a.jsx(Mb,{...g,children:a.jsxs("form",{ref:C,onSubmit:x(_),children:[a.jsx(V.DialogContent,{dividers:!0,onKeyDown:T=>{if(T.isDefaultPrevented())return;T.stopPropagation();let w=null,S=null;const D=T.which===mo.Escape&&p;if(D)w=p,S=b;else{if(M)return;T.which===mo.Enter&&(w=f??c[0],S=v)}w&&(S.current?.start(T,{center:!1}),setTimeout(()=>{S.current?.stop(T),D&&k(w)},180))},children:a.jsxs(V.Box,{sx:{display:"flex",flexDirection:"column",whiteSpace:"pre-wrap",rowGap:T=>T.spacing(n||t?1.5:0)},children:[a.jsxs(V.Box,{sx:{display:"flex",flexDirection:"column"},children:[n,t]}),h]})}),a.jsx(V.DialogActions,{sx:{paddingTop:T=>T.spacing(1),paddingBottom:T=>T.spacing(1),paddingLeft:T=>T.spacing(1),paddingRight:T=>T.spacing(1),backgroundColor:T=>st.alpha(T.palette.action.hover,.03)},children:j})]})})})},Fb=Object.freeze(Object.defineProperty({__proto__:null,OptionsDialog:Xc,default:Xc},Symbol.toStringTag,{value:"Module"})),zb=s.lazy(()=>Promise.resolve().then(()=>Fb)),Bb=s.lazy(()=>Promise.resolve().then(()=>require("./edAxlEEqzjJ_PaBv.cjs"))),Si=s.memo(s.forwardRef((e,t)=>{const{command:n,disabled:o=!1,shortcut:r,children:i,...l}=e;return Hd(n),a.jsx(go,{ref:t,label:o!==void 0?n?.label():"",shortcut:r!==void 0?r:Array.isArray(n?.shortcut())?n?.shortcut()[0]:n?.shortcut(),description:n?.description(),disabled:o,chips:n?.tags(),componentDisabled:n?.disabled(),...l,children:a.jsx("div",{style:{display:"flex",flex:"1 1 0%"},children:i})})})),Re=s.memo(s.forwardRef((e,t)=>{const{command:n,commandHook:o,scope:r,context:i,icon:l,labelOverride:d,disabled:c=!1,variant:u=or.Toolbar,shortcut:f,commandState:p,tooltipProps:h,...m}=e,g=s.useRef(null),x=s.useRef(!1),y=s.useMemo(()=>{const F={onExecute(j,T){o?.onExecute?.(j,T),x.current||(g.current?.start({center:!1}),setTimeout(()=>g.current?.stop({}),180)),x.current=!1},onError(j,T,w){o?.onError(j,T,w)}};return o?.beforeExecute&&(F.beforeExecute=o.beforeExecute),F},[o]),v=Hd(n,y),b=s.useCallback(F=>{F.button===0&&F.preventDefault()},[]),C=s.useCallback(F=>{F.button===0&&n?.execute(p,o)},[v,o,p]),k=s.useCallback(F=>{F.keyCode!==mo.Enter&&F.keyCode!==mo.Space||n?.execute(p,o)},[v,o,p]),_=s.useMemo(()=>l||u===or.Toolbar||n?.state()?typeof l=="function"?l(n):l:Bs,[v,l]),I=s.useMemo(()=>({tabIndex:0,ref:t,selected:n?.state(),icon:u===or.Toolbar?_:a.jsx(Ul,{selected:n?.state()??!1,children:_}),touchRippleRef:g,disabled:c||!n||n.disabled(),onMouseDown:b,onMouseUp:C,onKeyDown:k}),[v,o,c,_]);let M;return M=u===or.Menuitem?a.jsx(Po,{...m,chips:n?.tags(),...I,children:d??n?.label(r,i)}):a.jsx(Wo,{...m,...I}),(d||n?.label())&&((n.disabled()||c)&&(M=a.jsx("div",{children:M})),M=a.jsx(Si,{command:n,placement:u===or.Toolbar?"bottom-start":"right-start",shortcut:f,...h,children:M})),M})),Nb=s.memo(s.forwardRef((e,t)=>{const{command:n,scope:o,icon:r=Bs,label:i,variant:l=or.Toolbar,disabled:d=!1,commandHook:c,...u}=e,f=s.useRef(null),p=s.useRef(!1),h=s.useMemo(()=>{const M={onExecute(F,j){c?.onExecute?.(F,j),p.current||(f.current?.start({center:!1}),setTimeout(()=>f.current?.stop({}),180)),p.current=!1},onError(F,j,T){c?.onError(F,j,T)}};return c?.beforeExecute&&(M.beforeExecute=c.beforeExecute),M},[c]),m=Hd(n,h),g=()=>n?.state()?.toString()||"0",[x,y]=s.useState(g),v=Yt(()=>{const M=parseFloat(x);isNaN(M)?y(g()):parseFloat(g())!==M&&n.execute(M,c)},[g,n,x,c]);s.useEffect(()=>{y(g())},[n?.state()]);const b=s.useMemo(()=>typeof r=="function"?r(n):r,[m,r]),C=s.useMemo(()=>i===void 0?n?.label(o):typeof i=="function"?i():i,[m]),k=s.useMemo(()=>a.jsx(V.IconButton,{...u,sx:{paddingTop:"0px",paddingBottom:"0px"},component:"div",disableRipple:!0,onClick:M=>M.stopPropagation(),onMouseDown:M=>{M.button===0&&M.stopPropagation()},onMouseUp:M=>{M.button===0&&M.stopPropagation()},children:a.jsx(V.Input,{inputMode:"numeric",disabled:d||!n||n.disabled(),inputProps:{tabIndex:0,name:`input-${n.key()}`,autoComplete:"off",type:"number",maxLength:4},sx:{paddingTop:"0px",paddingBottom:"0px",paddingLeft:"0px",paddingRight:"0px",fontSize:M=>`${Math.round(M.typography.fontSize)}px`,width:M=>"3.2em",input:{padding:"0 0",textAlign:"center",MozAppearance:"textfield"},"input::-webkit-inner-spin-button":{WebkitAppearance:"none",margin:"0"},minHeight:"24px"},value:x,onFocus:M=>{M.target?.select()},onKeyDown:M=>{if(M.which===mo.Enter)g()!==x&&(M.stopPropagation(),M.preventDefault(),v());else if(M.which===mo.Escape)g()!==x&&(y(g()),setTimeout(()=>{M.target?.select()},0),M.stopPropagation(),M.preventDefault());else{if(M.key.match("[-]")||M.key.match("[0-9.]")&&(x+M.key).length>4)return M.stopPropagation(),void M.preventDefault();if(M.which===mo.Space)return void M.preventDefault()}},onBlur:()=>{v()},onChange:M=>{if(M.target.value.length>4)return M.stopPropagation(),void M.preventDefault();y(M.target.value)}})}),[x,d,n]),_={tabIndex:0,ref:t,icon:b,touchRippleRef:f,disabled:d||!n||n.disabled(),onMouseDown:M=>{M.button===0&&M.preventDefault()},onMouseUp:M=>{M.button!==0||M.isPropagationStopped()||M.isDefaultPrevented()||M.isDefaultPrevented()||(M.preventDefault(),n?.execute(!n?.state?.(),h))},onKeyDown:M=>{M.keyCode!==mo.Enter&&M.keyCode!==mo.Space||n?.execute(!n?.state?.(),h)}};let I;return I=l===or.Menuitem?a.jsxs(Po,{...u,chips:n?.tags(),..._,children:[C,k]}):a.jsx(Wo,{...u,..._}),n?.label()&&((n.disabled()||d)&&(I=a.jsx("div",{children:I})),I=a.jsx(Si,{command:n,placement:l===or.Toolbar?"bottom-start":"right-start",children:I})),I})),bn=s.memo(s.forwardRef((e,t)=>{const{variant:n=or.Toolbar,quickCommand:o,onQuickClick:r,commands:i,commandState:l,commandHook:d,disabled:c,label:u,icon:f,createPopupPanel:p,tooltip:h,selected:m,scope:g,...x}=e,y=s.useRef(null),v=s.useRef(!1),b=s.useMemo(()=>{const T={onExecute(w,S){d?.onExecute?.(w,S),v.current||(y.current?.start({center:!1}),setTimeout(()=>y.current?.stop({}),180)),v.current=!1},onError(w,S,D){d?.onError(w,S,D)}};return d?.beforeExecute&&(T.beforeExecute=d.beforeExecute),T},[d]),C=$d(i,[o],null,[o]),k=C[0],{label:_,icon:I}=s.useMemo(()=>{let T=null;u&&(T=typeof u=="function"?u(k):u),T||(T=k?.label?.(g));let w=null;return f&&(w=typeof f=="function"?f(k):f),w||(w=k?.icon?.()),{label:T,icon:w}},[C,u,f]),M={disabled:c,scope:g,touchRippleRef:y,onQuickClick:r,tooltip:h,label:_,icon:I};(_||h)&&(M.createTooltip=({children:T},w)=>a.jsx(go,{label:_,description:h,disabled:w,children:T}));const F=Yt(T=>p?.(T,i),[p,C]),j=Yt(T=>k?.execute(l,b),[k]);return k?(M.quickButtonProps={},M.quickButtonProps.createTooltip=({children:T,placement:w},S)=>a.jsx(Si,{command:k,placement:w??n===or.Toolbar?"bottom-start":"right-start",disabled:S,children:T}),M.disabled=M.disabled??k?.disabled(),r||(M.onQuickClick=j)):o&&(M.onQuickClick=()=>{}),M.selected=m??k?.state(),M.createPopupPanel=F,n===or.Toolbar?a.jsx(gr,{...x,...M,ref:t}):a.jsx(Wl,{...x,...M,ref:t})}));bn.displayName="CommandPopupButton";const gi=e=>{const{command:t,label:n,scope:o,icon:r=a.jsx(_d,{}),sx:i,...l}=e;return a.jsxs(V.Box,{sx:{display:"flex",flexDirection:"row",textTransform:"none",alignItems:"center",fontSize:d=>d.typography.subtitle2.fontSize,...i},...l,children:[r?ve(r):null,a.jsx(V.Typography,{component:"div",sx:{whiteSpace:"nowrap",lineHeight:"1",paddingLeft:d=>d.spacing(.25),paddingRight:d=>d.spacing(.25),fontSize:"inherit"},children:t?.label(o)||n})]})},ql=s.memo(s.forwardRef((e,t)=>{const{sx:n,commands:o,commandButtonProps:r,parentFloat:i,createToolbarPalette:l,children:d,...c}=e,u=zs(t,()=>({}),[]),[f,p]=s.useState(null),{reference:h}=Mr({label:"toolbar",anchor:u.current,parentFloat:i,createPopupPanel:null}),m=s.useCallback(()=>{const M=f;M&&requestAnimationFrame(()=>{u.current?.contains(document.activeElement)&&M.focus()})},[]),g=s.useMemo(()=>({dense:!0,outlined:!1}),[]),x=s.useMemo(()=>{const{commandHook:M,...F}=r||{};return{commandHook:{beforeExecute:(j,T)=>M?.beforeExecute?.(j,T)!==!1&&h.closeAll(),onExecute(j,T){M?.onExecute?.(j,T),m()},onError(j,T,w){M?.onError?.(j,T,w)}},...F}},[h,r]),y=s.useMemo(()=>({...g,...x}),[g,x]),[v,b]=s.useReducer(M=>M+1,0);$d(o,[],{onChange:()=>{b()}});const C=s.useMemo(()=>({commands:o,parentFloat:h,...x}),[v,y,h,r]);let k=0;g.dense||(k+=2),g.outlined&&k++;let _=2;g.dense||(_=4);const I=s.useMemo(()=>l({commands:o,commandButtonProps:y,commandPopupProps:{commands:o,...C,...r}}),[v,y,C,l]);return a.jsx(V.Toolbar,{variant:"dense",sx:{minHeight:"unset",height:"unset",paddingTop:`${_}px`,paddingBottom:`${_}px`,paddingLeft:"6px !important",paddingRight:"6px !important",flex:"1 1 0%",alignItems:"center",userSelect:"none",flexGrow:1,display:"flex",overflow:"hidden",...n},ref:u,onFocus:M=>{M.relatedTarget&&!f&&p(M.relatedTarget)},onBlur:M=>{f&&!u?.current?.contains(M.relatedTarget)&&p(null)},onKeyDown:M=>{f&&M.which===mo.Escape&&f.focus()},...c,children:a.jsx("div",{ref:u,style:{flex:"1 1 100%",display:"flex",flexWrap:"wrap",rowGap:`${_}px`,columnGap:`${k}px`,alignItems:"center",maxWidth:"100%"},children:I})})}));ql.displayName="CommandToolbar";const Vb=e=>{const{key:t,...n}=e;return a.jsx(Re,{...n},t)},Tr=s.memo(s.forwardRef((e,t)=>{const{popupCommandKeys:n,renderCommandButton:o,scope:r,commands:i,icon:l,quickCommand:d,popupScope:c=d,commandState:u,commandHook:f,disabled:p=!1,...h}=e;$d(i,[d,...n]);const m=s.useCallback((g,x)=>{const y={variant:or.Menuitem,commandHook:f,commandState:u,icon:l,scope:c,disabled:p},v=[];for(let b=0;b<n?.length;b++){const C=n[b];if(C===null||C==="-"){v.push(a.jsx(Et,{orientation:"horizontal"},`element-${v.length}`));continue}const k=x.getCommand(C),_={key:`${C}-${v.length}`,command:k,...y},I=o?.(_)??Vb(_);I&&v.push(I)}return dn({...g,children:v})},[p,f,u,c,n,l,o]);return a.jsx(bn,{ref:t,commands:i,disabled:p,commandHook:f,commandState:u,scope:r,quickCommand:d,icon:l,createPopupPanel:m,...h})}));(function(){try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode("._traverse-ellipsis_14l1h_1{display:inline-block;position:relative}._traverse-ellipsis_14l1h_1 div{position:absolute;border-radius:50%}._traverse-ellipsis_14l1h_1 div:nth-child(1){left:0;animation:_traverse-ellipsis1_14l1h_1 .6s infinite}._traverse-ellipsis_14l1h_1 div:nth-child(2){left:0;animation:_traverse-ellipsis2_14l1h_1 .6s infinite}._traverse-ellipsis_14l1h_1 div:nth-child(3){left:24px;animation:_traverse-ellipsis2_14l1h_1 .6s infinite}._traverse-ellipsis_14l1h_1 div:nth-child(4){left:48px;animation:_traverse-ellipsis3_14l1h_1 .6s infinite}@keyframes _traverse-ellipsis1_14l1h_1{0%{transform:scale(0)}to{transform:scale(1)}}@keyframes _traverse-ellipsis3_14l1h_1{0%{transform:scale(1)}to{transform:scale(0)}}@keyframes _traverse-ellipsis2_14l1h_1{0%{transform:translate(0)}to{transform:translate(24px)}}")),document.head.appendChild(e)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}})();const bh=s.memo(s.forwardRef((e,t)=>{const{commands:n,commandHook:o,scope:r,disabled:i=!1,parentFloat:l,...d}=e,c=Bn(n,["formatAlignLeftToggle","formatAlignCenterToggle","formatAlignRightToggle","formatAlignJustifyToggle","formatAlignCenterContinuousToggle","formatAlignFillToggle","formatAlignDistributedHorizontalToggle"]),u=s.useMemo(()=>{for(let m=0;m<c.length;m++)if(c[m]?.state())return c[m].key();return c[0]?.key()},[c]),f=s.useMemo(()=>{const m=new Map;return m.set("formatAlignLeftToggle",ve(a.jsx(an.FormatAlignLeft,{}))),m.set("formatAlignCenterToggle",ve(a.jsx(an.FormatAlignCenter,{}))),m.set("formatAlignRightToggle",ve(a.jsx(an.FormatAlignRight,{}))),m.set("formatAlignJustifyToggle",ve(a.jsx(an.FormatAlignJustify,{}))),m.set("formatAlignCenterContinuousToggle",ve(a.jsx(an.FormatAlignCenter,{}))),m.set("formatAlignFillToggle",ve(a.jsx(an.FormatAlignJustify,{}))),m.set("formatAlignDistributedHorizontalToggle",ve(a.jsx(an.FormatAlignJustify,{}))),m},[]),p=s.useMemo(()=>{if(!o)return null;const m={...o};return delete m.beforeExecute,m},[o]),h=s.useCallback((m,g)=>{const x={variant:zt.Menuitem,commandHook:o,scope:r,disabled:i},y=a.jsxs(a.Fragment,{children:[a.jsx(Re,{...x,command:g.getCommand("formatAlignLeftToggle"),icon:f.get("formatAlignLeftToggle")}),a.jsx(Re,{...x,command:g.getCommand("formatAlignCenterToggle"),icon:f.get("formatAlignCenterToggle")}),a.jsx(Re,{...x,command:g.getCommand("formatAlignRightToggle"),icon:f.get("formatAlignRightToggle")}),a.jsx(Re,{...x,command:g.getCommand("formatAlignJustifyToggle"),icon:f.get("formatAlignJustifyToggle")}),a.jsx(Et,{orientation:"horizontal"}),a.jsx(Re,{...x,command:g.getCommand("formatAlignCenterContinuousToggle"),icon:f.get("formatAlignCenterContinuousToggle")}),a.jsx(Re,{...x,command:g.getCommand("formatAlignFillToggle"),icon:f.get("formatAlignFillToggle")}),a.jsx(Re,{...x,command:g.getCommand("formatAlignDistributedHorizontalToggle"),icon:f.get("formatAlignDistributedHorizontalToggle")})]}),v=a.jsxs(V.Box,{sx:{className:Fn("quick-buttons"),display:"flex",alignItems:"center",justifyContent:"center"},onClick:C=>C.stopPropagation(),children:[a.jsx(Re,{command:g.getCommand("formatIndentDecrease"),commandHook:p,scope:r,disabled:i,icon:ve(a.jsx(Fx,{}))}),a.jsx(Re,{command:g.getCommand("formatIndentIncrease"),commandHook:p,scope:r,disabled:i,icon:ve(a.jsx(Ax,{}))})]}),b=a.jsxs(V.Box,{sx:{display:"flex",flexDirection:"column",flex:"1 1 100%",overflow:"hidden"},...d,children:[v,a.jsx(Et,{orientation:"horizontal"}),a.jsx(V.Box,{sx:{overflow:"auto",flex:"1 1 100%"},children:y})]});return dn({...m,children:b})},[i,o]);return a.jsx(bn,{ref:t,parentFloat:l,commands:n,commandHook:o,scope:r,createPopupPanel:h,label:"Horizontal Alignment",tooltip:"Configure how text is placed in the horizontal direction of the cell.",quickCommand:u,icon:f.get(u)??a.jsx(an.FormatAlignLeft,{}),...d})})),vh=s.memo(s.forwardRef((e,t)=>{const{commands:n,commandHook:o,scope:r,disabled:i=!1,...l}=e,d=Bn(n,["formatAlignTopToggle","formatAlignMiddleToggle","formatAlignBottomToggle","formatAlignJustifyVerticalToggle","formatAlignDistributedVerticalToggle"]),c=s.useMemo(()=>{for(let p=0;p<d.length;p++)if(d[p]?.state())return d[p].key();return d[0]?.key()},[d]),u=s.useMemo(()=>{const p=new Map;return p.set("formatAlignTopToggle",ve(a.jsx(Ux,{}))),p.set("formatAlignMiddleToggle",ve(a.jsx(qx,{}))),p.set("formatAlignBottomToggle",ve(a.jsx(O5,{}))),p.set("formatAlignJustifyVerticalToggle",ve(a.jsx(an.FormatAlignJustify,{}))),p.set("formatAlignDistributedVerticalToggle",ve(a.jsx(an.FormatAlignJustify,{}))),p},[]),f=s.useCallback((p,h)=>{const m={variant:zt.Menuitem,commandHook:o,scope:r,disabled:i},g=a.jsxs(a.Fragment,{children:[a.jsx(Re,{...m,command:h.getCommand("formatAlignTopToggle"),icon:u.get("formatAlignTopToggle")}),a.jsx(Re,{...m,command:h.getCommand("formatAlignMiddleToggle"),icon:u.get("formatAlignMiddleToggle")}),a.jsx(Re,{...m,command:h.getCommand("formatAlignBottomToggle"),icon:u.get("formatAlignBottomToggle")}),a.jsx(Et,{orientation:"horizontal"}),a.jsx(Re,{...m,command:h.getCommand("formatAlignJustifyVerticalToggle"),icon:u.get("formatAlignJustifyVerticalToggle")}),a.jsx(Re,{...m,command:h.getCommand("formatAlignDistributedVerticalToggle"),icon:u.get("formatAlignDistributedVerticalToggle")})]});return dn({...p,children:g})},[i,o,u]);return a.jsx(bn,{ref:t,commands:n,commandHook:o,createPopupPanel:f,label:"Vertical Alignment",tooltip:"Configure how text is placed in the vertical direction of the cell.",icon:u.get(c)??ve(a.jsx(O5,{})),...l})})),wh=s.memo(s.forwardRef((e,t)=>{const{commands:n,commandHook:o,scope:r,disabled:i=!1,...l}=e,d=Bn(n,["formatTextOverflowVisibleToggle","formatTextOverflowWrapToggle","formatTextOverflowClipToggle","formatTextOverflowShrinkToggle"]),c=s.useMemo(()=>{for(let p=0;p<d.length;p++)if(d[p]?.state())return d[p].key();return d[0]?.key()},[d]),u=s.useMemo(()=>{const p=new Map;return p.set("formatTextOverflowVisibleToggle",ve(a.jsx(Vu,{}))),p.set("formatTextOverflowWrapToggle",ve(a.jsx(Rm,{}))),p.set("formatTextOverflowClipToggle",ve(a.jsx(Im,{}))),p.set("formatTextOverflowShrinkToggle",ve(a.jsx(Dm,{}))),p},[]),f=me((p,h)=>{const m={variant:zt.Menuitem,commandHook:o,scope:r,disabled:i},g=a.jsxs(a.Fragment,{children:[a.jsx(Re,{...m,command:h.getCommand("formatTextOverflowVisibleToggle"),icon:u.get("formatTextOverflowVisibleToggle")}),a.jsx(Re,{...m,command:h.getCommand("formatTextOverflowWrapToggle"),icon:u.get("formatTextOverflowWrapToggle")}),a.jsx(Re,{...m,command:h.getCommand("formatTextOverflowClipToggle"),icon:u.get("formatTextOverflowClipToggle")}),a.jsx(Et,{orientation:"horizontal"}),a.jsx(Re,{...m,command:h.getCommand("formatTextOverflowShrinkToggle"),icon:u.get("formatTextOverflowShrinkToggle")})]});return dn({...p,children:g})},[i,o,r]);return a.jsx(bn,{ref:t,commands:n,commandHook:o,scope:r,label:"Text Overflow",tooltip:"Configure how text behaves when it doesn't fit within a cell.",createPopupPanel:f,icon:u.get(c)??ve(a.jsx(Vu,{})),...l})})),Sh=s.memo(s.forwardRef((e,t)=>{const{commands:n,commandHook:o,scope:r,disabled:i=!1,...l}=e,d=Bn(n,["formatTextRotate0","formatTextRotate315","formatTextRotate45","formatTextRotate90","formatTextRotate270","formatSubscriptToggle","formatTextRotateCustom"]),c=s.useMemo(()=>{for(let h=0;h<d.length;h++)if(d[h]?.state())return d[h].key();return d[1]?.key()},[d]),u=s.useMemo(()=>{const h=new Map;return h.set("formatTextRotate0",ve(a.jsx(da,{}))),h.set("formatTextRotate315",ve(a.jsx(da,{}))),h.set("formatTextRotate45",ve(a.jsx(R5,{}))),h.set("formatTextRotate90",ve(a.jsx(I5,{}))),h.set("formatTextRotate270",ve(a.jsx(D5,{}))),h.set("formatTextRotateCustom",ve(a.jsx(L5,{}))),h},[]),f=s.useCallback((h,m)=>{const g={variant:zt.Menuitem,commandHook:o,scope:r,disabled:i},x=a.jsxs(a.Fragment,{children:[a.jsx(Re,{...g,command:m.getCommand("formatTextRotate0"),icon:ve(a.jsx(Wx,{}))}),a.jsx(Et,{orientation:"horizontal"}),a.jsx(Re,{...g,command:m.getCommand("formatTextRotate315"),icon:ve(a.jsx(da,{}))}),a.jsx(Re,{...g,command:m.getCommand("formatTextRotate45"),icon:ve(a.jsx(R5,{}))}),a.jsx(Re,{...g,command:m.getCommand("formatTextRotate90"),icon:ve(a.jsx(I5,{}))}),a.jsx(Re,{...g,command:m.getCommand("formatTextRotate270"),icon:ve(a.jsx(D5,{}))}),a.jsx(Et,{orientation:"horizontal"}),a.jsx(Nb,{...g,command:m.getCommand("formatTextRotateCustom"),icon:ve(a.jsx(L5,{})),label:"Custom"})]});return dn({...h,children:x})},[i,o,r]),p=s.useMemo(()=>(n.getCommand("formatTextRotateCustom")?.state()??0)!==0,[d]);return a.jsx(bn,{ref:t,commands:n,commandHook:o,scope:r,selected:p,label:"Text Orientation",tooltip:"Rotate your text diagonally or vertically. This is a great way to label narrow columns.",createPopupPanel:f,quickCommand:p?"formatTextRotate0":"formatTextRotate315",icon:ve(u.get(c)??a.jsx(da,{})),...l})}));function R0(e,...t){const n=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(o=>n.searchParams.append("args[]",o)),`Minified MUI error #${e}; visit ${n} for the full message.`}const r0="$$material";function Hb(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:o=5,...r}=e,i=(f=>{const p=Object.keys(f).map(h=>({key:h,val:f[h]}))||[];return p.sort((h,m)=>h.val-m.val),p.reduce((h,m)=>({...h,[m.key]:m.val}),{})})(t),l=Object.keys(i);function d(f){return`@media (min-width:${typeof t[f]=="number"?t[f]:f}${n})`}function c(f){return`@media (max-width:${(typeof t[f]=="number"?t[f]:f)-o/100}${n})`}function u(f,p){const h=l.indexOf(p);return`@media (min-width:${typeof t[f]=="number"?t[f]:f}${n}) and (max-width:${(h!==-1&&typeof t[l[h]]=="number"?t[l[h]]:p)-o/100}${n})`}return{keys:l,values:i,up:d,down:c,between:u,only:function(f){return l.indexOf(f)+1<l.length?u(f,l[l.indexOf(f)+1]):d(f)},not:function(f){const p=l.indexOf(f);return p===0?d(l[1]):p===l.length-1?c(l[p]):u(f,l[l.indexOf(f)+1]).replace("@media","@media not all and")},unit:n,...r}}var K0=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},I3,D3,L3={exports:{}},En={};function $b(){if(I3)return En;I3=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),r=Symbol.for("react.profiler"),i=Symbol.for("react.consumer"),l=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),h=Symbol.for("react.view_transition"),m=Symbol.for("react.client.reference");function g(x){if(typeof x=="object"&&x!==null){var y=x.$$typeof;switch(y){case e:switch(x=x.type){case n:case r:case o:case c:case u:case h:return x;default:switch(x=x&&x.$$typeof){case l:case d:case p:case f:case i:return x;default:return y}}case t:return y}}}return En.ContextConsumer=i,En.ContextProvider=l,En.Element=e,En.ForwardRef=d,En.Fragment=n,En.Lazy=p,En.Memo=f,En.Portal=t,En.Profiler=r,En.StrictMode=o,En.Suspense=c,En.SuspenseList=u,En.isContextConsumer=function(x){return g(x)===i},En.isContextProvider=function(x){return g(x)===l},En.isElement=function(x){return typeof x=="object"&&x!==null&&x.$$typeof===e},En.isForwardRef=function(x){return g(x)===d},En.isFragment=function(x){return g(x)===n},En.isLazy=function(x){return g(x)===p},En.isMemo=function(x){return g(x)===f},En.isPortal=function(x){return g(x)===t},En.isProfiler=function(x){return g(x)===r},En.isStrictMode=function(x){return g(x)===o},En.isSuspense=function(x){return g(x)===c},En.isSuspenseList=function(x){return g(x)===u},En.isValidElementType=function(x){return typeof x=="string"||typeof x=="function"||x===n||x===r||x===o||x===c||x===u||typeof x=="object"&&x!==null&&(x.$$typeof===p||x.$$typeof===f||x.$$typeof===l||x.$$typeof===i||x.$$typeof===d||x.$$typeof===m||x.getModuleId!==void 0)},En.typeOf=g,En}function Wb(){return D3||(D3=1,L3.exports=$b()),L3.exports}var Ch=Wb();function Ar(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return!(t!==null&&t!==Object.prototype&&Object.getPrototypeOf(t)!==null||Symbol.toStringTag in e||Symbol.iterator in e)}function kh(e){if(i0.isValidElement(e)||Ch.isValidElementType(e)||!Ar(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=kh(e[n])}),t}function Uo(e,t,n={clone:!0}){const o=n.clone?{...e}:e;return Ar(e)&&Ar(t)&&Object.keys(t).forEach(r=>{i0.isValidElement(t[r])||Ch.isValidElementType(t[r])?o[r]=t[r]:Ar(t[r])&&Object.prototype.hasOwnProperty.call(e,r)&&Ar(e[r])?o[r]=Uo(e[r],t[r],n):n.clone?o[r]=Ar(t[r])?kh(t[r]):t[r]:o[r]=t[r]}),o}function t2(e,t=0,n=1){return function(o,r=Number.MIN_SAFE_INTEGER,i=Number.MAX_SAFE_INTEGER){return Math.max(r,Math.min(o,i))}(e,t,n)}function a0(e){if(e.type)return e;if(e.charAt(0)==="#")return a0(function(i){i=i.slice(1);const l=new RegExp(`.{1,${i.length>=6?2:1}}`,"g");let d=i.match(l);return d&&d[0].length===1&&(d=d.map(c=>c+c)),d?`rgb${d.length===4?"a":""}(${d.map((c,u)=>u<3?parseInt(c,16):Math.round(parseInt(c,16)/255*1e3)/1e3).join(", ")})`:""}(e));const t=e.indexOf("("),n=e.substring(0,t);if(!["rgb","rgba","hsl","hsla","color"].includes(n))throw new Error(R0(9,e));let o,r=e.substring(t+1,e.length-1);if(n==="color"){if(r=r.split(" "),o=r.shift(),r.length===4&&r[3].charAt(0)==="/"&&(r[3]=r[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(o))throw new Error(R0(10,o))}else r=r.split(",");return r=r.map(i=>parseFloat(i)),{type:n,values:r,colorSpace:o}}const tl=(e,t)=>{try{return(n=>{const o=a0(n);return o.values.slice(0,3).map((r,i)=>o.type.includes("hsl")&&i!==0?`${r}%`:r).join(" ")})(e)}catch{return e}};function Vs(e){const{type:t,colorSpace:n}=e;let{values:o}=e;return t.includes("rgb")?o=o.map((r,i)=>i<3?parseInt(r,10):r):t.includes("hsl")&&(o[1]=`${o[1]}%`,o[2]=`${o[2]}%`),o=t.includes("color")?`${n} ${o.join(" ")}`:`${o.join(", ")}`,`${t}(${o})`}function Eh(e){e=a0(e);const{values:t}=e,n=t[0],o=t[1]/100,r=t[2]/100,i=o*Math.min(r,1-r),l=(u,f=(u+n/30)%12)=>r-i*Math.max(Math.min(f-3,9-f,1),-1);let d="rgb";const c=[Math.round(255*l(0)),Math.round(255*l(8)),Math.round(255*l(4))];return e.type==="hsla"&&(d+="a",c.push(t[3])),Vs({type:d,values:c})}function Yc(e){let t=(e=a0(e)).type==="hsl"||e.type==="hsla"?a0(Eh(e)).values:e.values;return t=t.map(n=>(e.type!=="color"&&(n/=255),n<=.03928?n/12.92:((n+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function fa(e,t,n){try{return function(o,r){return o=a0(o),r=t2(r),o.type!=="rgb"&&o.type!=="hsl"||(o.type+="a"),o.type==="color"?o.values[3]=`/${r}`:o.values[3]=r,Vs(o)}(e,t)}catch{return e}}function n2(e,t){if(e=a0(e),t=t2(t),e.type.includes("hsl"))e.values[2]*=1-t;else if(e.type.includes("rgb")||e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return Vs(e)}function Mn(e,t,n){try{return n2(e,t)}catch{return e}}function o2(e,t){if(e=a0(e),t=t2(t),e.type.includes("hsl"))e.values[2]+=(100-e.values[2])*t;else if(e.type.includes("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return Vs(e)}function Rn(e,t,n){try{return o2(e,t)}catch{return e}}function ma(e,t,n){try{return function(o,r=.15){return Yc(o)>.5?n2(o,r):o2(o,r)}(e,t)}catch{return e}}const Ml={black:"#000",white:"#fff"},Ub={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},qb="#f3e5f5",Zb="#ce93d8",Gb="#ba68c8",Kb="#ab47bc",Xb="#9c27b0",Yb="#7b1fa2",Jb="#e57373",Qb="#ef5350",ev="#f44336",O3="#d32f2f",tv="#c62828",nv="#ffb74d",ov="#ffa726",rv="#ff9800",iv="#f57c00",lv="#e65100",av="#e3f2fd",sv="#90caf9",P3="#42a5f5",cv="#1976d2",dv="#1565c0",uv="#4fc3f7",hv="#29b6f6",pv="#03a9f4",A3="#0288d1",fv="#01579b",mv="#81c784",gv="#66bb6a",xv="#4caf50",yv="#388e3c",bv="#2e7d32",vv="#1b5e20";function _h(){return{text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:Ml.white,default:Ml.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}}}const wv=_h();function Th(){return{text:{primary:Ml.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:Ml.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}}}const F3=Th();function z3(e,t,n,o){const r=o.light||o,i=o.dark||1.5*o;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=o2(e.main,r):t==="dark"&&(e.dark=n2(e.main,i)))}function r2(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:o=.2,...r}=e,i=e.primary||function(g="light"){return g==="dark"?{main:sv,light:av,dark:P3}:{main:cv,light:P3,dark:dv}}(t),l=e.secondary||function(g="light"){return g==="dark"?{main:Zb,light:qb,dark:Kb}:{main:Xb,light:Gb,dark:Yb}}(t),d=e.error||function(g="light"){return g==="dark"?{main:ev,light:Jb,dark:O3}:{main:O3,light:Qb,dark:tv}}(t),c=e.info||function(g="light"){return g==="dark"?{main:hv,light:uv,dark:A3}:{main:A3,light:pv,dark:fv}}(t),u=e.success||function(g="light"){return g==="dark"?{main:gv,light:mv,dark:yv}:{main:bv,light:xv,dark:vv}}(t),f=e.warning||function(g="light"){return g==="dark"?{main:ov,light:nv,dark:iv}:{main:"#ed6c02",light:rv,dark:lv}}(t);function p(g){return function(y,v){const b=Yc(y),C=Yc(v);return(Math.max(b,C)+.05)/(Math.min(b,C)+.05)}(g,F3.text.primary)>=n?F3.text.primary:wv.text.primary}const h=({color:g,name:x,mainShade:y=500,lightShade:v=300,darkShade:b=700})=>{if(!(g={...g}).main&&g[y]&&(g.main=g[y]),!g.hasOwnProperty("main"))throw new Error(R0(11,x?` (${x})`:"",y));if(typeof g.main!="string")throw new Error(R0(12,x?` (${x})`:"",JSON.stringify(g.main)));return z3(g,"light",v,o),z3(g,"dark",b,o),g.contrastText||(g.contrastText=p(g.main)),g};let m;return t==="light"?m=_h():t==="dark"&&(m=Th()),Uo({common:{...Ml},mode:t,primary:h({color:i,name:"primary"}),secondary:h({color:l,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:h({color:d,name:"error"}),warning:h({color:f,name:"warning"}),info:h({color:c,name:"info"}),success:h({color:u,name:"success"}),grey:Ub,contrastThreshold:n,getContrastText:p,augmentColor:h,tonalOffset:o,...m},r)}var B3,N3,P1,V3,H3,$3={exports:{}};function Sv(){return N3?B3:(N3=1,B3="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}function Cv(){if(V3)return P1;V3=1;var e=Sv();function t(){}function n(){}return n.resetWarningCache=t,P1=function(){function o(l,d,c,u,f,p){if(p!==e){var h=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw h.name="Invariant Violation",h}}function r(){return o}o.isRequired=o;var i={array:o,bigint:o,bool:o,func:o,number:o,object:o,string:o,symbol:o,any:o,arrayOf:r,element:o,elementType:o,instanceOf:r,node:o,objectOf:r,oneOf:r,oneOfType:r,shape:r,exact:r,checkPropTypes:n,resetWarningCache:t};return i.PropTypes=i,i},P1}function Zl(){return H3||(H3=1,$3.exports=Cv()()),$3.exports}function pl(e,t){return t?Uo(e,t,{clone:!1}):e}const Hs={xs:0,sm:600,md:900,lg:1200,xl:1536},W3={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Hs[e]}px)`},kv={containerQueries:e=>({up:t=>{let n=typeof t=="number"?t:Hs[t]||t;return typeof n=="number"&&(n=`${n}px`),e?`@container ${e} (min-width:${n})`:`@container (min-width:${n})`}})};function Br(e,t,n){const o=e.theme||{};if(Array.isArray(t)){const r=o.breakpoints||W3;return t.reduce((i,l,d)=>(i[r.up(r.keys[d])]=n(t[d]),i),{})}if(typeof t=="object"){const r=o.breakpoints||W3;return Object.keys(t).reduce((i,l)=>{if(d=r.keys,(c=l)==="@"||c.startsWith("@")&&(d.some(u=>c.startsWith(`@${u}`))||c.match(/^@\d/))){const u=function(f,p){const h=p.match(/^@([^/]+)?\/?(.+)?$/);if(!h)return null;const[,m,g]=h,x=Number.isNaN(+m)?m||0:+m;return f.containerQueries(g).up(x)}(o.containerQueries?o:kv,l);u&&(i[u]=n(t[l],l))}else if(Object.keys(r.values||Hs).includes(l))i[r.up(l)]=n(t[l],l);else{const u=l;i[u]=t[u]}var d,c;return i},{})}return n(t)}function jh(e){if(typeof e!="string")throw new Error(R0(7));return e.charAt(0).toUpperCase()+e.slice(1)}function $s(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const o=`vars.${t}`.split(".").reduce((r,i)=>r&&r[i]?r[i]:null,e);if(o!=null)return o}return t.split(".").reduce((o,r)=>o&&o[r]!=null?o[r]:null,e)}function gs(e,t,n,o=n){let r;return r=typeof e=="function"?e(n):Array.isArray(e)?e[n]||o:$s(e,n)||o,t&&(r=t(r,o,e)),r}function Jn(e){const{prop:t,cssProperty:n=e.prop,themeKey:o,transform:r}=e,i=l=>{if(l[t]==null)return null;const d=l[t],c=$s(l.theme,o)||{};return Br(l,d,u=>{let f=gs(c,r,u);return u===f&&typeof u=="string"&&(f=gs(c,r,`${t}${u==="default"?"":jh(u)}`,u)),n===!1?f:{[n]:f}})};return i.propTypes={},i.filterProps=[t],i}const Ev={m:"margin",p:"padding"},_v={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},U3={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Tv=function(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}(e=>{if(e.length>2){if(!U3[e])return[e];e=U3[e]}const[t,n]=e.split(""),o=Ev[t],r=_v[n]||"";return Array.isArray(r)?r.map(i=>o+i):[o+r]}),Mh=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Rh=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function Gl(e,t,n,o){const r=$s(e,t,!0)??n;return typeof r=="number"||typeof r=="string"?i=>typeof i=="string"?i:typeof r=="string"?`calc(${i} * ${r})`:r*i:Array.isArray(r)?i=>{if(typeof i=="string")return i;const l=Math.abs(i),d=r[l];return i>=0?d:typeof d=="number"?-d:`-${d}`}:typeof r=="function"?r:()=>{}}function i2(e){return Gl(e,"spacing",8)}function Kl(e,t){return typeof t=="string"||t==null?t:e(t)}function jv(e,t,n,o){if(!t.includes(n))return null;const r=function(i,l){return d=>i.reduce((c,u)=>(c[u]=Kl(l,d),c),{})}(Tv(n),o);return Br(e,e[n],r)}function Ih(e,t){const n=i2(e.theme);return Object.keys(e).map(o=>jv(e,t,o,n)).reduce(pl,{})}function Wn(e){return Ih(e,Mh)}function Un(e){return Ih(e,Rh)}Wn.propTypes={},Wn.filterProps=Mh,Un.propTypes={},Un.filterProps=Rh;const q3=(e,t,n,o=[])=>{let r=e;t.forEach((i,l)=>{l===t.length-1?Array.isArray(r)?r[Number(i)]=n:r&&typeof r=="object"&&(r[i]=n):r&&typeof r=="object"&&(r[i]||(r[i]=o.includes(i)?[]:{}),r=r[i])})};function A1(e,t){const{prefix:n,shouldSkipGeneratingVar:o}=t||{},r={},i={},l={};var d,c;return d=(u,f,p)=>{if(!(typeof f!="string"&&typeof f!="number"||o&&o(u,f))){const h=`--${n?`${n}-`:""}${u.join("-")}`,m=((g,x)=>typeof x=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(y=>g.includes(y))||g[g.length-1].toLowerCase().includes("opacity")?x:`${x}px`:x)(u,f);Object.assign(r,{[h]:m}),q3(i,u,`var(${h})`,p),q3(l,u,`var(${h}, ${m})`,p)}},c=u=>u[0]==="vars",function u(f,p=[],h=[]){Object.entries(f).forEach(([m,g])=>{(!c||c&&!c([...p,m]))&&g!=null&&(typeof g=="object"&&Object.keys(g).length>0?u(g,[...p,m],Array.isArray(g)?[...h,m]:h):d([...p,m],g,h))})}(e),{css:r,vars:i,varsWithDefaults:l}}function Mv(e){const t={};return Object.entries(e).forEach(n=>{const[o,r]=n;typeof r=="object"&&(t[o]=`${r.fontStyle?`${r.fontStyle} `:""}${r.fontVariant?`${r.fontVariant} `:""}${r.fontWeight?`${r.fontWeight} `:""}${r.fontStretch?`${r.fontStretch} `:""}${r.fontSize||""}${r.lineHeight?`/${r.lineHeight} `:""}${r.fontFamily||""}`)}),t}function Ws(...e){const t=e.reduce((o,r)=>(r.filterProps.forEach(i=>{o[i]=r}),o),{}),n=o=>Object.keys(o).reduce((r,i)=>t[i]?pl(r,t[i](o)):r,{});return n.propTypes={},n.filterProps=e.reduce((o,r)=>o.concat(r.filterProps),[]),n}function nr(e){return typeof e!="number"?e:`${e}px solid`}function sr(e,t){return Jn({prop:e,themeKey:"borders",transform:t})}const Rv=sr("border",nr),Iv=sr("borderTop",nr),Dv=sr("borderRight",nr),Lv=sr("borderBottom",nr),Ov=sr("borderLeft",nr),Pv=sr("borderColor"),Av=sr("borderTopColor"),Fv=sr("borderRightColor"),zv=sr("borderBottomColor"),Bv=sr("borderLeftColor"),Nv=sr("outline",nr),Vv=sr("outlineColor"),Wa=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Gl(e.theme,"shape.borderRadius",4),n=o=>({borderRadius:Kl(t,o)});return Br(e,e.borderRadius,n)}return null};Wa.propTypes={},Wa.filterProps=["borderRadius"],Ws(Rv,Iv,Dv,Lv,Ov,Pv,Av,Fv,zv,Bv,Wa,Nv,Vv);const xs=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Gl(e.theme,"spacing",8),n=o=>({gap:Kl(t,o)});return Br(e,e.gap,n)}return null};xs.propTypes={},xs.filterProps=["gap"];const ys=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Gl(e.theme,"spacing",8),n=o=>({columnGap:Kl(t,o)});return Br(e,e.columnGap,n)}return null};ys.propTypes={},ys.filterProps=["columnGap"];const bs=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Gl(e.theme,"spacing",8),n=o=>({rowGap:Kl(t,o)});return Br(e,e.rowGap,n)}return null};bs.propTypes={},bs.filterProps=["rowGap"];function ri(e,t){return t==="grey"?t:e}Ws(xs,ys,bs,Jn({prop:"gridColumn"}),Jn({prop:"gridRow"}),Jn({prop:"gridAutoFlow"}),Jn({prop:"gridAutoColumns"}),Jn({prop:"gridAutoRows"}),Jn({prop:"gridTemplateColumns"}),Jn({prop:"gridTemplateRows"}),Jn({prop:"gridTemplateAreas"}),Jn({prop:"gridArea"}));function No(e){return e<=1&&e!==0?100*e+"%":e}Ws(Jn({prop:"color",themeKey:"palette",transform:ri}),Jn({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:ri}),Jn({prop:"backgroundColor",themeKey:"palette",transform:ri}));const Hv=Jn({prop:"width",transform:No}),l2=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{const o=e.theme?.breakpoints?.values?.[n]||Hs[n];return o?e.theme?.breakpoints?.unit!=="px"?{maxWidth:`${o}${e.theme.breakpoints.unit}`}:{maxWidth:o}:{maxWidth:No(n)}};return Br(e,e.maxWidth,t)}return null};l2.filterProps=["maxWidth"];const $v=Jn({prop:"minWidth",transform:No}),Wv=Jn({prop:"height",transform:No}),Uv=Jn({prop:"maxHeight",transform:No}),qv=Jn({prop:"minHeight",transform:No});Jn({prop:"size",cssProperty:"width",transform:No}),Jn({prop:"size",cssProperty:"height",transform:No});Ws(Hv,l2,$v,Wv,Uv,qv,Jn({prop:"boxSizing"}));const Us={border:{themeKey:"borders",transform:nr},borderTop:{themeKey:"borders",transform:nr},borderRight:{themeKey:"borders",transform:nr},borderBottom:{themeKey:"borders",transform:nr},borderLeft:{themeKey:"borders",transform:nr},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:nr},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Wa},color:{themeKey:"palette",transform:ri},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:ri},backgroundColor:{themeKey:"palette",transform:ri},p:{style:Un},pt:{style:Un},pr:{style:Un},pb:{style:Un},pl:{style:Un},px:{style:Un},py:{style:Un},padding:{style:Un},paddingTop:{style:Un},paddingRight:{style:Un},paddingBottom:{style:Un},paddingLeft:{style:Un},paddingX:{style:Un},paddingY:{style:Un},paddingInline:{style:Un},paddingInlineStart:{style:Un},paddingInlineEnd:{style:Un},paddingBlock:{style:Un},paddingBlockStart:{style:Un},paddingBlockEnd:{style:Un},m:{style:Wn},mt:{style:Wn},mr:{style:Wn},mb:{style:Wn},ml:{style:Wn},mx:{style:Wn},my:{style:Wn},margin:{style:Wn},marginTop:{style:Wn},marginRight:{style:Wn},marginBottom:{style:Wn},marginLeft:{style:Wn},marginX:{style:Wn},marginY:{style:Wn},marginInline:{style:Wn},marginInlineStart:{style:Wn},marginInlineEnd:{style:Wn},marginBlock:{style:Wn},marginBlockStart:{style:Wn},marginBlockEnd:{style:Wn},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:xs},rowGap:{style:bs},columnGap:{style:ys},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:No},maxWidth:{style:l2},minWidth:{transform:No},height:{transform:No},maxHeight:{transform:No},minHeight:{transform:No},boxSizing:{},font:{themeKey:"font"},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}},Ci=function(){function e(t,n,o,r){const i={[t]:n,theme:o},l=r[t];if(!l)return{[t]:n};const{cssProperty:d=t,themeKey:c,transform:u,style:f}=l;if(n==null)return null;if(c==="typography"&&n==="inherit")return{[t]:n};const p=$s(o,c)||{};return f?f(i):Br(i,n,h=>{let m=gs(p,u,h);return h===m&&typeof h=="string"&&(m=gs(p,u,`${t}${h==="default"?"":jh(h)}`,h)),d===!1?m:{[d]:m}})}return function t(n){const{sx:o,theme:r={}}=n||{};if(!o)return null;const i=r.unstable_sxConfig??Us;function l(d){let c=d;if(typeof d=="function")c=d(r);else if(typeof d!="object")return d;if(!c)return null;const u=function(h={}){return h.keys?.reduce((g,x)=>(g[h.up(x)]={},g),{})||{}}(r.breakpoints),f=Object.keys(u);let p=u;return Object.keys(c).forEach(h=>{const m=(g=c[h],x=r,typeof g=="function"?g(x):g);var g,x;if(m!=null)if(typeof m=="object")if(i[h])p=pl(p,e(h,m,r,i));else{const y=Br({theme:r},m,v=>({[h]:v}));(function(...v){const b=v.reduce((k,_)=>k.concat(Object.keys(_)),[]),C=new Set(b);return v.every(k=>C.size===Object.keys(k).length)})(y,m)?p[h]=t({sx:m,theme:r}):p=pl(p,y)}else p=pl(p,e(h,m,r,i))}),function(h,m){if(!h.containerQueries)return m;const g=Object.keys(m).filter(x=>x.startsWith("@container")).sort((x,y)=>{const v=/min-width:\s*([0-9.]+)/;return+(x.match(v)?.[1]||0)-+(y.match(v)?.[1]||0)});return g.length?g.reduce((x,y)=>{const v=m[y];return delete x[y],x[y]=v,x},{...m}):m}(r,function(h,m){return h.reduce((g,x)=>{const y=g[x];return(!y||Object.keys(y).length===0)&&delete g[x],g},m)}(f,p))}return Array.isArray(o)?o.map(l):l(o)}}();Ci.filterProps=["sx"];const Zv={borderRadius:4};function Gv(e,t){const n=this;if(n.vars){if(!n.colorSchemes?.[e]||typeof n.getColorSchemeSelector!="function")return{};let o=n.getColorSchemeSelector(e);return o==="&"?t:((o.includes("data-")||o.includes("."))&&(o=`*:where(${o.replace(/\s*&$/,"")}) &`),{[o]:t})}return n.palette.mode===e?t:{}}function Dh(e={},...t){const{breakpoints:n={},palette:o={},spacing:r,shape:i={},...l}=e,d=Hb(n),c=function(f=8,p=i2({spacing:f})){if(f.mui)return f;const h=(...m)=>(m.length===0?[1]:m).map(g=>{const x=p(g);return typeof x=="number"?`${x}px`:x}).join(" ");return h.mui=!0,h}(r);let u=Uo({breakpoints:d,direction:"ltr",components:{},palette:{mode:"light",...o},spacing:c,shape:{...Zv,...i}},l);return u=function(f){const p=(x,y)=>x.replace("@media",y?`@container ${y}`:"@container");function h(x,y){x.up=(...v)=>p(f.breakpoints.up(...v),y),x.down=(...v)=>p(f.breakpoints.down(...v),y),x.between=(...v)=>p(f.breakpoints.between(...v),y),x.only=(...v)=>p(f.breakpoints.only(...v),y),x.not=(...v)=>{const b=p(f.breakpoints.not(...v),y);return b.includes("not all and")?b.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):b}}const m={},g=x=>(h(m,x),m);return h(g),{...f,containerQueries:g}}(u),u.applyStyles=Gv,u=t.reduce((f,p)=>Uo(f,p),u),u.unstable_sxConfig={...Us,...l?.unstable_sxConfig},u.unstable_sx=function(f){return Ci({sx:f,theme:this})},u}const Z3={textTransform:"uppercase"},G3='"Roboto", "Helvetica", "Arial", sans-serif';function Lh(e,t){const{fontFamily:n=G3,fontSize:o=14,fontWeightLight:r=300,fontWeightRegular:i=400,fontWeightMedium:l=500,fontWeightBold:d=700,htmlFontSize:c=16,allVariants:u,pxToRem:f,...p}=typeof t=="function"?t(e):t,h=o/14,m=f||(y=>y/c*h+"rem"),g=(y,v,b,C,k)=>{return{fontFamily:n,fontWeight:y,fontSize:m(v),lineHeight:b,...n===G3?{letterSpacing:(_=C/v,Math.round(1e5*_)/1e5+"em")}:{},...k,...u};var _},x={h1:g(r,96,1.167,-1.5),h2:g(r,60,1.2,-.5),h3:g(i,48,1.167,0),h4:g(i,34,1.235,.25),h5:g(i,24,1.334,0),h6:g(l,20,1.6,.15),subtitle1:g(i,16,1.75,.15),subtitle2:g(l,14,1.57,.1),body1:g(i,16,1.5,.15),body2:g(i,14,1.43,.15),button:g(l,14,1.75,.4,Z3),caption:g(i,12,1.66,.4),overline:g(i,12,2.66,1,Z3),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Uo({htmlFontSize:c,pxToRem:m,fontFamily:n,fontSize:o,fontWeightLight:r,fontWeightRegular:i,fontWeightMedium:l,fontWeightBold:d,...x},p,{clone:!1})}function An(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,0.2)`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,0.14)`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,0.12)`].join(",")}const Kv=["none",An(0,2,1,-1,0,1,1,0,0,1,3,0),An(0,3,1,-2,0,2,2,0,0,1,5,0),An(0,3,3,-2,0,3,4,0,0,1,8,0),An(0,2,4,-1,0,4,5,0,0,1,10,0),An(0,3,5,-1,0,5,8,0,0,1,14,0),An(0,3,5,-1,0,6,10,0,0,1,18,0),An(0,4,5,-2,0,7,10,1,0,2,16,1),An(0,5,5,-3,0,8,10,1,0,3,14,2),An(0,5,6,-3,0,9,12,1,0,3,16,2),An(0,6,6,-3,0,10,14,1,0,4,18,3),An(0,6,7,-4,0,11,15,1,0,4,20,3),An(0,7,8,-4,0,12,17,2,0,5,22,4),An(0,7,8,-4,0,13,19,2,0,5,24,4),An(0,7,9,-4,0,14,21,2,0,5,26,4),An(0,8,9,-5,0,15,22,2,0,6,28,5),An(0,8,10,-5,0,16,24,2,0,6,30,5),An(0,8,11,-5,0,17,26,2,0,6,32,5),An(0,9,11,-5,0,18,28,2,0,7,34,6),An(0,9,12,-6,0,19,29,2,0,7,36,6),An(0,10,13,-6,0,20,31,3,0,8,38,7),An(0,10,13,-6,0,21,33,3,0,8,40,7),An(0,10,14,-6,0,22,35,3,0,8,42,7),An(0,11,14,-7,0,23,36,3,0,9,44,8),An(0,11,15,-7,0,24,38,3,0,9,46,8)],Xv={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},Yv={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function K3(e){return`${Math.round(e)}ms`}function Jv(e){if(!e)return 0;const t=e/36;return Math.min(Math.round(10*(4+15*t**.25+t/5)),3e3)}function Qv(e){const t={...Xv,...e.easing},n={...Yv,...e.duration};return{getAutoHeightDuration:Jv,create:(o=["all"],r={})=>{const{duration:i=n.standard,easing:l=t.easeInOut,delay:d=0,...c}=r;return(Array.isArray(o)?o:[o]).map(u=>`${u} ${typeof i=="string"?i:K3(i)} ${l} ${typeof d=="string"?d:K3(d)}`).join(",")},...e,easing:t,duration:n}}const ew={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function tw(e){return Ar(e)||e===void 0||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function Oh(e={}){const t={...e};return function n(o){const r=Object.entries(o);for(let i=0;i<r.length;i++){const[l,d]=r[i];!tw(d)||l.startsWith("unstable_")?delete o[l]:Ar(d)&&(o[l]={...d},n(o[l]))}}(t),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';
38
-
39
- const theme = ${JSON.stringify(t,null,2)};
40
-
41
- theme.breakpoints = createBreakpoints(theme.breakpoints || {});
42
- theme.transitions = createTransitions(theme.transitions || {});
43
-
44
- export default theme;`}function Jc(e={},...t){const{breakpoints:n,mixins:o={},spacing:r,palette:i={},transitions:l={},typography:d={},shape:c,...u}=e;if(e.vars&&e.generateThemeVars===void 0)throw new Error(R0(20));const f=r2(i),p=Dh(e);let h=Uo(p,{mixins:(m=p.breakpoints,g=o,{toolbar:{minHeight:56,[m.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[m.up("sm")]:{minHeight:64}},...g}),palette:f,shadows:Kv.slice(),typography:Lh(f,d),transitions:Qv(l),zIndex:{...ew}});var m,g;return h=Uo(h,u),h=t.reduce((x,y)=>Uo(x,y),h),h.unstable_sxConfig={...Us,...u?.unstable_sxConfig},h.unstable_sx=function(x){return Ci({sx:x,theme:this})},h.toRuntimeSource=Oh,h}function pn(e){let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,Math.round(10*t)/1e3}const nw=[...Array(25)].map((e,t)=>{if(t===0)return"none";const n=pn(t);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`});function X3(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function Y3(e){return e==="dark"?nw:[]}function ow(e){return!!e[0].match(/(cssVarPrefix|colorSchemeSelector|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||e[0]==="palette"&&!!e[1]?.match(/(mode|contrastThreshold|tonalOffset)/)}const rw=e=>(t,n)=>{const o=e.rootSelector||":root",r=e.colorSchemeSelector;let i=r;if(r==="class"&&(i=".%s"),r==="data"&&(i="[data-%s]"),r?.startsWith("data-")&&!r.includes("%s")&&(i=`[${r}="%s"]`),e.defaultColorScheme===t){if(t==="dark"){const d={};return(l=e.cssVarPrefix,[...[...Array(25)].map((c,u)=>`--${l?`${l}-`:""}overlays-${u}`),`--${l?`${l}-`:""}palette-AppBar-darkBg`,`--${l?`${l}-`:""}palette-AppBar-darkColor`]).forEach(c=>{d[c]=n[c],delete n[c]}),i==="media"?{[o]:n,"@media (prefers-color-scheme: dark)":{[o]:d}}:i?{[i.replace("%s",t)]:d,[`${o}, ${i.replace("%s",t)}`]:n}:{[o]:{...n,...d}}}if(i&&i!=="media")return`${o}, ${i.replace("%s",String(t))}`}else if(t){if(i==="media")return{[`@media (prefers-color-scheme: ${String(t)})`]:{[o]:n}};if(i)return i.replace("%s",String(t))}var l;return o};function $e(e,t,n){!e[t]&&n&&(e[t]=n)}function nl(e){return typeof e=="string"&&e.startsWith("hsl")?Eh(e):e}function Ir(e,t){`${t}Channel`in e||(e[`${t}Channel`]=tl(nl(e[t])))}const wr=e=>{try{return e()}catch{}};function F1(e,t,n,o){if(!t)return;t=t===!0?{}:t;const r=o==="dark"?"dark":"light";if(!n)return void(e[o]=function(d){const{palette:c={mode:"light"},opacity:u,overlays:f,...p}=d,h=r2(c);return{palette:h,opacity:{...X3(h.mode),...u},overlays:f||Y3(h.mode),...p}}({...t,palette:{mode:r,...t?.palette}}));const{palette:i,...l}=Jc({...n,palette:{mode:r,...t?.palette}});return e[o]={...t,palette:i,opacity:{...X3(r),...t?.opacity},overlays:t?.overlays||Y3(r)},l}function iw(e={},...t){const{colorSchemes:n={light:!0},defaultColorScheme:o,disableCssColorScheme:r=!1,cssVarPrefix:i="mui",shouldSkipGeneratingVar:l=ow,colorSchemeSelector:d=n.light&&n.dark?"media":void 0,rootSelector:c=":root",...u}=e,f=Object.keys(n)[0],p=o||(n.light&&f!=="light"?"light":f),h=((T="mui")=>st.unstable_createGetCssVar(T))(i),{[p]:m,light:g,dark:x,...y}=n,v={...y};let b=m;if((p==="dark"&&!("dark"in n)||p==="light"&&!("light"in n))&&(b=!0),!b)throw new Error(R0(21,p));const C=F1(v,b,u,p);g&&!v.light&&F1(v,g,void 0,"light"),x&&!v.dark&&F1(v,x,void 0,"dark");let k={defaultColorScheme:p,...C,cssVarPrefix:i,colorSchemeSelector:d,rootSelector:c,getCssVar:h,colorSchemes:v,font:{...Mv(C.typography),...C.font},spacing:(_=u.spacing,typeof _=="number"?`${_}px`:typeof _=="string"||typeof _=="function"||Array.isArray(_)?_:"8px")};var _;Object.keys(k.colorSchemes).forEach(T=>{const w=k.colorSchemes[T].palette,S=E=>{const R=E.split("-"),A=R[1],L=R[2];return h(E,w[A][L])};var D;if(w.mode==="light"&&($e(w.common,"background","#fff"),$e(w.common,"onBackground","#000")),w.mode==="dark"&&($e(w.common,"background","#000"),$e(w.common,"onBackground","#fff")),D=w,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"].forEach(E=>{D[E]||(D[E]={})}),w.mode==="light"){$e(w.Alert,"errorColor",Mn(w.error.light,.6)),$e(w.Alert,"infoColor",Mn(w.info.light,.6)),$e(w.Alert,"successColor",Mn(w.success.light,.6)),$e(w.Alert,"warningColor",Mn(w.warning.light,.6)),$e(w.Alert,"errorFilledBg",S("palette-error-main")),$e(w.Alert,"infoFilledBg",S("palette-info-main")),$e(w.Alert,"successFilledBg",S("palette-success-main")),$e(w.Alert,"warningFilledBg",S("palette-warning-main")),$e(w.Alert,"errorFilledColor",wr(()=>w.getContrastText(w.error.main))),$e(w.Alert,"infoFilledColor",wr(()=>w.getContrastText(w.info.main))),$e(w.Alert,"successFilledColor",wr(()=>w.getContrastText(w.success.main))),$e(w.Alert,"warningFilledColor",wr(()=>w.getContrastText(w.warning.main))),$e(w.Alert,"errorStandardBg",Rn(w.error.light,.9)),$e(w.Alert,"infoStandardBg",Rn(w.info.light,.9)),$e(w.Alert,"successStandardBg",Rn(w.success.light,.9)),$e(w.Alert,"warningStandardBg",Rn(w.warning.light,.9)),$e(w.Alert,"errorIconColor",S("palette-error-main")),$e(w.Alert,"infoIconColor",S("palette-info-main")),$e(w.Alert,"successIconColor",S("palette-success-main")),$e(w.Alert,"warningIconColor",S("palette-warning-main")),$e(w.AppBar,"defaultBg",S("palette-grey-100")),$e(w.Avatar,"defaultBg",S("palette-grey-400")),$e(w.Button,"inheritContainedBg",S("palette-grey-300")),$e(w.Button,"inheritContainedHoverBg",S("palette-grey-A100")),$e(w.Chip,"defaultBorder",S("palette-grey-400")),$e(w.Chip,"defaultAvatarColor",S("palette-grey-700")),$e(w.Chip,"defaultIconColor",S("palette-grey-700")),$e(w.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),$e(w.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),$e(w.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),$e(w.LinearProgress,"primaryBg",Rn(w.primary.main,.62)),$e(w.LinearProgress,"secondaryBg",Rn(w.secondary.main,.62)),$e(w.LinearProgress,"errorBg",Rn(w.error.main,.62)),$e(w.LinearProgress,"infoBg",Rn(w.info.main,.62)),$e(w.LinearProgress,"successBg",Rn(w.success.main,.62)),$e(w.LinearProgress,"warningBg",Rn(w.warning.main,.62)),$e(w.Skeleton,"bg",`rgba(${S("palette-text-primaryChannel")} / 0.11)`),$e(w.Slider,"primaryTrack",Rn(w.primary.main,.62)),$e(w.Slider,"secondaryTrack",Rn(w.secondary.main,.62)),$e(w.Slider,"errorTrack",Rn(w.error.main,.62)),$e(w.Slider,"infoTrack",Rn(w.info.main,.62)),$e(w.Slider,"successTrack",Rn(w.success.main,.62)),$e(w.Slider,"warningTrack",Rn(w.warning.main,.62));const E=ma(w.background.default,.8);$e(w.SnackbarContent,"bg",E),$e(w.SnackbarContent,"color",wr(()=>w.getContrastText(E))),$e(w.SpeedDialAction,"fabHoverBg",ma(w.background.paper,.15)),$e(w.StepConnector,"border",S("palette-grey-400")),$e(w.StepContent,"border",S("palette-grey-400")),$e(w.Switch,"defaultColor",S("palette-common-white")),$e(w.Switch,"defaultDisabledColor",S("palette-grey-100")),$e(w.Switch,"primaryDisabledColor",Rn(w.primary.main,.62)),$e(w.Switch,"secondaryDisabledColor",Rn(w.secondary.main,.62)),$e(w.Switch,"errorDisabledColor",Rn(w.error.main,.62)),$e(w.Switch,"infoDisabledColor",Rn(w.info.main,.62)),$e(w.Switch,"successDisabledColor",Rn(w.success.main,.62)),$e(w.Switch,"warningDisabledColor",Rn(w.warning.main,.62)),$e(w.TableCell,"border",Rn(fa(w.divider,1),.88)),$e(w.Tooltip,"bg",fa(w.grey[700],.92))}if(w.mode==="dark"){$e(w.Alert,"errorColor",Rn(w.error.light,.6)),$e(w.Alert,"infoColor",Rn(w.info.light,.6)),$e(w.Alert,"successColor",Rn(w.success.light,.6)),$e(w.Alert,"warningColor",Rn(w.warning.light,.6)),$e(w.Alert,"errorFilledBg",S("palette-error-dark")),$e(w.Alert,"infoFilledBg",S("palette-info-dark")),$e(w.Alert,"successFilledBg",S("palette-success-dark")),$e(w.Alert,"warningFilledBg",S("palette-warning-dark")),$e(w.Alert,"errorFilledColor",wr(()=>w.getContrastText(w.error.dark))),$e(w.Alert,"infoFilledColor",wr(()=>w.getContrastText(w.info.dark))),$e(w.Alert,"successFilledColor",wr(()=>w.getContrastText(w.success.dark))),$e(w.Alert,"warningFilledColor",wr(()=>w.getContrastText(w.warning.dark))),$e(w.Alert,"errorStandardBg",Mn(w.error.light,.9)),$e(w.Alert,"infoStandardBg",Mn(w.info.light,.9)),$e(w.Alert,"successStandardBg",Mn(w.success.light,.9)),$e(w.Alert,"warningStandardBg",Mn(w.warning.light,.9)),$e(w.Alert,"errorIconColor",S("palette-error-main")),$e(w.Alert,"infoIconColor",S("palette-info-main")),$e(w.Alert,"successIconColor",S("palette-success-main")),$e(w.Alert,"warningIconColor",S("palette-warning-main")),$e(w.AppBar,"defaultBg",S("palette-grey-900")),$e(w.AppBar,"darkBg",S("palette-background-paper")),$e(w.AppBar,"darkColor",S("palette-text-primary")),$e(w.Avatar,"defaultBg",S("palette-grey-600")),$e(w.Button,"inheritContainedBg",S("palette-grey-800")),$e(w.Button,"inheritContainedHoverBg",S("palette-grey-700")),$e(w.Chip,"defaultBorder",S("palette-grey-700")),$e(w.Chip,"defaultAvatarColor",S("palette-grey-300")),$e(w.Chip,"defaultIconColor",S("palette-grey-300")),$e(w.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),$e(w.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),$e(w.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),$e(w.LinearProgress,"primaryBg",Mn(w.primary.main,.5)),$e(w.LinearProgress,"secondaryBg",Mn(w.secondary.main,.5)),$e(w.LinearProgress,"errorBg",Mn(w.error.main,.5)),$e(w.LinearProgress,"infoBg",Mn(w.info.main,.5)),$e(w.LinearProgress,"successBg",Mn(w.success.main,.5)),$e(w.LinearProgress,"warningBg",Mn(w.warning.main,.5)),$e(w.Skeleton,"bg",`rgba(${S("palette-text-primaryChannel")} / 0.13)`),$e(w.Slider,"primaryTrack",Mn(w.primary.main,.5)),$e(w.Slider,"secondaryTrack",Mn(w.secondary.main,.5)),$e(w.Slider,"errorTrack",Mn(w.error.main,.5)),$e(w.Slider,"infoTrack",Mn(w.info.main,.5)),$e(w.Slider,"successTrack",Mn(w.success.main,.5)),$e(w.Slider,"warningTrack",Mn(w.warning.main,.5));const E=ma(w.background.default,.98);$e(w.SnackbarContent,"bg",E),$e(w.SnackbarContent,"color",wr(()=>w.getContrastText(E))),$e(w.SpeedDialAction,"fabHoverBg",ma(w.background.paper,.15)),$e(w.StepConnector,"border",S("palette-grey-600")),$e(w.StepContent,"border",S("palette-grey-600")),$e(w.Switch,"defaultColor",S("palette-grey-300")),$e(w.Switch,"defaultDisabledColor",S("palette-grey-600")),$e(w.Switch,"primaryDisabledColor",Mn(w.primary.main,.55)),$e(w.Switch,"secondaryDisabledColor",Mn(w.secondary.main,.55)),$e(w.Switch,"errorDisabledColor",Mn(w.error.main,.55)),$e(w.Switch,"infoDisabledColor",Mn(w.info.main,.55)),$e(w.Switch,"successDisabledColor",Mn(w.success.main,.55)),$e(w.Switch,"warningDisabledColor",Mn(w.warning.main,.55)),$e(w.TableCell,"border",Mn(fa(w.divider,1),.68)),$e(w.Tooltip,"bg",fa(w.grey[700],.92))}Ir(w.background,"default"),Ir(w.background,"paper"),Ir(w.common,"background"),Ir(w.common,"onBackground"),Ir(w,"divider"),Object.keys(w).forEach(E=>{const R=w[E];E!=="tonalOffset"&&R&&typeof R=="object"&&(R.main&&$e(w[E],"mainChannel",tl(nl(R.main))),R.light&&$e(w[E],"lightChannel",tl(nl(R.light))),R.dark&&$e(w[E],"darkChannel",tl(nl(R.dark))),R.contrastText&&$e(w[E],"contrastTextChannel",tl(nl(R.contrastText))),E==="text"&&(Ir(w[E],"primary"),Ir(w[E],"secondary")),E==="action"&&(R.active&&Ir(w[E],"active"),R.selected&&Ir(w[E],"selected")))})}),k=t.reduce((T,w)=>Uo(T,w),k);const I={prefix:i,disableCssColorScheme:r,shouldSkipGeneratingVar:l,getSelector:rw(k)},{vars:M,generateThemeVars:F,generateStyleSheets:j}=function(T,w={}){const{getSelector:S=W,disableCssColorScheme:D,colorSchemeSelector:E}=w,{colorSchemes:R={},components:A,defaultColorScheme:L="light",...P}=T,{vars:z,css:U,varsWithDefaults:O}=A1(P,w);let q=O;const X={},{[L]:re,...$}=R;if(Object.entries($||{}).forEach(([B,Z])=>{const{vars:G,css:ie,varsWithDefaults:ee}=A1(Z,w);q=Uo(q,ee),X[B]={css:ie,vars:G}}),re){const{css:B,vars:Z,varsWithDefaults:G}=A1(re,w);q=Uo(q,G),X[L]={css:B,vars:Z}}function W(B,Z){let G=E;if(E==="class"&&(G=".%s"),E==="data"&&(G="[data-%s]"),E?.startsWith("data-")&&!E.includes("%s")&&(G=`[${E}="%s"]`),B){if(G==="media")return T.defaultColorScheme===B?":root":{[`@media (prefers-color-scheme: ${R[B]?.palette?.mode||B})`]:{":root":Z}};if(G)return T.defaultColorScheme===B?`:root, ${G.replace("%s",String(B))}`:G.replace("%s",String(B))}return":root"}return{vars:q,generateThemeVars:()=>{let B={...z};return Object.entries(X).forEach(([,{vars:Z}])=>{B=Uo(B,Z)}),B},generateStyleSheets:()=>{const B=[],Z=T.defaultColorScheme||"light";function G(le,ue){Object.keys(ue).length&&B.push(typeof le=="string"?{[le]:{...ue}}:le)}G(S(void 0,{...U}),U);const{[Z]:ie,...ee}=X;if(ie){const{css:le}=ie,ue=R[Z]?.palette?.mode,de=!D&&ue?{colorScheme:ue,...le}:{...le};G(S(Z,{...de}),de)}return Object.entries(ee).forEach(([le,{css:ue}])=>{const de=R[le]?.palette?.mode,oe=!D&&de?{colorScheme:de,...ue}:{...ue};G(S(le,{...oe}),oe)}),B}}}(k,I);return k.vars=M,Object.entries(k.colorSchemes[k.defaultColorScheme]).forEach(([T,w])=>{k[T]=w}),k.generateThemeVars=F,k.generateStyleSheets=j,k.generateSpacing=function(){return st.createSpacing(u.spacing,i2(this))},k.getColorSchemeSelector=function(T){return function(w){return T==="media"?`@media (prefers-color-scheme: ${w})`:T?T.startsWith("data-")&&!T.includes("%s")?`[${T}="${w}"] &`:T==="class"?`.${w} &`:T==="data"?`[data-${w}] &`:`${T.replace("%s",w)} &`:"&"}}(d),k.spacing=k.generateSpacing(),k.shouldSkipGeneratingVar=l,k.unstable_sxConfig={...Us,...u?.unstable_sxConfig},k.unstable_sx=function(T){return Ci({sx:T,theme:this})},k.toRuntimeSource=Oh,k}function J3(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...n!==!0&&n,palette:r2({...n===!0?{}:n.palette,mode:t})})}function Ph(e={},...t){const{palette:n,cssVariables:o=!1,colorSchemes:r=n?void 0:{light:!0},defaultColorScheme:i=n?.mode,...l}=e,d=i||"light",c=r?.[d],u={...r,...n?{[d]:{...typeof c!="boolean"&&c,palette:n}}:void 0};if(o===!1){if(!("colorSchemes"in e))return Jc(e,...t);let f=n;"palette"in e||u[d]&&(u[d]!==!0?f=u[d].palette:d==="dark"&&(f={mode:"dark"}));const p=Jc({...e,palette:f},...t);return p.defaultColorScheme=d,p.colorSchemes=u,p.palette.mode==="light"&&(p.colorSchemes.light={...u.light!==!0&&u.light,palette:p.palette},J3(p,"dark",u.dark)),p.palette.mode==="dark"&&(p.colorSchemes.dark={...u.dark!==!0&&u.dark,palette:p.palette},J3(p,"light",u.light)),p}return n||"light"in u||d!=="light"||(u.light=!0),iw({...l,colorSchemes:u,defaultColorScheme:d,...typeof o!="boolean"&&o},...t)}const Ah=Ph();function xr(){const e=st.useTheme(Ah);return e[r0]||e}function lw({theme:e,...t}){const n=r0 in e?e[r0]:void 0;return a.jsx(st.ThemeProvider,{...t,themeId:n?r0:void 0,theme:n||e})}const aw="mui-color-scheme",sw="light",cw="dark",dw="mui-mode",{CssVarsProvider:uw,useColorScheme:NE,getInitColorSchemeScript:VE}=st.unstable_createCssVarsProvider({themeId:r0,theme:()=>Ph({cssVariables:!0}),colorSchemeStorageKey:aw,modeStorageKey:dw,defaultColorScheme:{light:sw,dark:cw},resolveTheme:e=>{const t={...e,typography:Lh(e.palette,e.typography)};return t.unstable_sx=function(n){return Ci({sx:n,theme:this})},t}}),hw=uw;function Fh({theme:e,...t}){const n=i0.useMemo(()=>{if(typeof e=="function")return e;const o=r0 in e?e[r0]:e;return"colorSchemes"in o?null:"vars"in o?e:{...e,vars:null}},[e]);return n?a.jsx(lw,{theme:n,...t}):a.jsx(hw,{theme:e,...t})}(function(){try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode("._sheetxl-grid_h9wwa_7{position:relative;box-sizing:border-box;user-select:none}._sheetxl-grid_h9wwa_7 *{box-sizing:border-box!important}._sheetxl-grid_h9wwa_7 *:focus{outline:none}._sheetxl-grid_h9wwa_7 .cell-container{position:absolute;overflow:visible;white-space:pre}._sheetxl-grid_h9wwa_7 .cell-container>*{inset:0;position:absolute}._sheetxl-grid_h9wwa_7 .sheetxl-stage{contain:strict}._sheetxl-grid_h9wwa_7 .sheetxl-stage>*{contain:strict}")),document.head.appendChild(e)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}})();const Sn="up",Cn="down",wn="left",gn="right",vs="tl",Rl="t",Il="l",zo="c",To="text/html",Ur="text/plain",z1="image/png",pw=Object.freeze({left:0,top:0}),fw=Object.freeze({left:0,top:0,bottom:0,right:0}),mw=Object.freeze({x:0,y:0,width:0,height:0});Object.freeze(Object.defineProperty({__proto__:null,EmptyBounds:mw,EmptyRect:fw,EmptyTopLeft:pw},Symbol.toStringTag,{value:"Module"}));const Lo="column",Fr="row",gw=Object.freeze({colIndex:0,rowIndex:0}),xw=Object.freeze({colStart:0,rowStart:0,colEnd:0,rowEnd:0}),zh=(e,t)=>e.colStart===t.colStart?e.rowStart-t.rowStart:e.colStart-t.colStart,Bh=(e,t)=>e.rowStart===t.rowStart?e.colStart-t.colStart:e.rowStart-t.rowStart,yw=(e,t)=>e.rowEnd===t.rowEnd?t.colEnd-e.colEnd:t.rowEnd-e.rowEnd,bw=(e,t)=>e.colEnd===t.colEnd?t.rowEnd-e.rowEnd:t.colEnd-e.colEnd,Q3=(e,t)=>e.colIndex===t.colIndex?e.rowIndex-t.rowIndex:e.colIndex-t.colIndex,e6=(e,t)=>e.rowIndex===t.rowIndex?e.colIndex-t.colIndex:e.rowIndex-t.rowIndex,Nh=(e=Fr,t=!1)=>t?e!==Lo?yw:bw:e!==Lo?Bh:zh,t6=(e,t)=>e===t||!(!e||!t)&&e.rowIndex===t.rowIndex&&e.colIndex===t.colIndex,Qc=(e,t)=>e===t||!(!e||!t)&&e.rowStart===t.rowStart&&e.rowEnd===t.rowEnd&&e.colStart===t.colStart&&e.colEnd===t.colEnd,ed=(e,t)=>!(!e||!t||e.colStart>t.colEnd||t.colStart>e.colEnd||e.rowStart>t.rowEnd||t.rowStart>e.rowEnd),n6=(e,t)=>{if(e===t)return!0;if(!e||!t||e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(!Qc(e[n],t[n]))return!1;return!0},B1=(e,t,n)=>{if(!e&&!t)return null;if(!e)return n?t:{...t};if(!t)return n?e:{...e};const o=Math.min(e.colStart,t.colStart),r=Math.min(e.rowStart,t.rowStart),i=Math.max(e.colEnd,t.colEnd),l=Math.max(e.rowEnd,t.rowEnd);let d=n;return d?(d.colStart=o,d.rowStart=r,d.colEnd=i,d.rowEnd=l):d={colStart:o,rowStart:r,colEnd:i,rowEnd:l},d},o6=(e,t)=>{if(!t||t.length===0)return e;const n={...e};for(let o=0;o<t.length;o++){const r=t[o];ed(n,r)&&(n.rowStart=Math.min(n.rowStart,r.rowStart),n.colStart=Math.min(n.colStart,r.colStart),n.rowEnd=Math.max(n.rowEnd,r.rowEnd),n.colEnd=Math.max(n.colEnd,r.colEnd))}return n},vw=[null,null],ww=(e,t,n)=>{if(e[0].value===e[1].value)return t};function r6(e,t=2,n,o=Fr,r){let i=[...e];if(t<=0||e.length<=1)return i;let l=o===Lo,d=0,c=!1;do{const u=i.sort(Nh(l?Fr:Lo));i=[],i.push(u[0]);const f=u.length;let p=0,h=u[0],m=h.colStart,g=h.rowStart,x=h.colEnd,y=h.rowEnd;for(let v=1;v<f;v++){const b=u[v];let C=!1;if(C=l?h&&g===b.rowStart&&y===b.rowEnd&&x+1===b.colStart:h&&m===b.colStart&&x===b.colEnd&&y+1===b.rowStart,C){let k={colStart:m,rowStart:g,colEnd:l?b.colEnd:x,rowEnd:l?y:b.rowEnd};if(h.value!==void 0&&(k.value=h.value),n){const _=r??[null,null];_[0]=h,_[1]=b,k=n(_,k,o)}if(k){i[p]=k,c=!0,h=k,m=h.colStart,g=h.rowStart,x=h.colEnd,y=h.rowEnd;continue}}i[++p]=b,h=b,m=h.colStart,g=h.rowStart,x=h.colEnd,y=h.rowEnd}d++,l=!l,d===1&&(c=!0)}while(d<t&&c&&i.length>1);return i}const _t=Object.freeze(Object.defineProperty({__proto__:null,EmptyCell:gw,EmptyRange:xw,cellToRange:(e,t)=>{if(!e)return null;let n=t;return n||(n={...e},delete n.colIndex,delete n.rowIndex),n.colStart=e.colIndex??0,n.rowStart=e.rowIndex??0,n.colEnd=e.colIndex??0,n.rowEnd=e.rowIndex??0,n},columnFirstCellComparator:Q3,columnFirstRangeComparator:zh,createCellComparator:(e=Fr,t=!1)=>t?e!==Lo?(n,o)=>n.rowIndex===o.rowIndex?o.colIndex-n.colIndex:o.rowIndex-n.rowIndex:(n,o)=>n.colIndex===o.colIndex?o.rowIndex-n.rowIndex:o.colIndex-n.colIndex:e!==Lo?e6:Q3,createConflatingRanges:(e,t=!1)=>{const n=[];let o,r,i=Number.MIN_SAFE_INTEGER,l=Number.MIN_SAFE_INTEGER;return{append:(d,c,u)=>{let f=!0;const p=u!==void 0;if(p){const g=e?e(r,u,t):r===u?u:void 0;g===void 0?f=!1:u=g}if(f&&c===l+1&&d===i)return t?o.rowEnd=c:o.colEnd=c,l=c,void(r=u);o&&n.push(o);const h=t?d:c,m=t?c:d;o={colStart:h,rowStart:m,colEnd:h,rowEnd:m},p&&(o.value=u),i=d,l=c,r=u},done:d=>(o&&(n.push(o),o=null),d?r6(n,3,d===!0?ww:d,t?Lo:Fr,vw):n)}},createRangeComparator:Nh,defaultRange:(e,t,n)=>e?n?(n.colStart=e.colStart??t.colStart,n.rowStart=e.rowStart??t.rowStart,n.colEnd=e.colEnd??t.colEnd,n.rowEnd=e.rowEnd??t.rowEnd,n):{colStart:e.colStart??t.colStart,rowStart:e.rowStart??t.rowStart,colEnd:e.colEnd??t.colEnd,rowEnd:e.rowEnd??t.rowEnd}:t,extendRangeToIntersectingRanges:o6,extendRangeToUnionRanges:(e,t)=>{if(!t||t.length===0)return e;let n=e,o=null;for(;!Qc(n,o);)o=n,n=o6(o,t);return n},indexOfCoords:(e,t)=>{const n={colStart:e.colIndex,rowStart:e.rowIndex,colEnd:e.colIndex,rowEnd:e.rowIndex};for(let o=t.length-1;o>=0;o--)if(ed(n,t[o]))return o;return-1},intersectRanges:(e,t,n)=>{if(!e)return n?t:{...t};if(!t)return n?e:{...e};if(!e&&!t||e.rowStart>t.rowEnd||e.rowEnd<t.rowStart||e.colStart>t.colEnd||e.colEnd<t.colStart)return null;const o=Math.max(e.colStart,t.colStart),r=Math.max(e.rowStart,t.rowStart),i=Math.min(e.colEnd,t.colEnd),l=Math.min(e.rowEnd,t.rowEnd);let d=n;return d?(d.colStart=o,d.rowStart=r,d.colEnd=i,d.rowEnd=l):d={colStart:o,rowStart:r,colEnd:i,rowEnd:l},d},isCellWithinRange:(e,t)=>!(!e||!t||e.rowIndex<t.rowStart||e.rowIndex>t.rowEnd||e.colIndex<t.colStart||e.colIndex>t.colEnd),isEqualCells:t6,isEqualRanges:Qc,isEqualRangesArrays:n6,isEqualSelectionCoords:(e,t)=>e===t||!(!e||!t)&&e.rangeIndex===t.rangeIndex&&!!t6(e.cell,t.cell)&&n6(e.ranges,t.ranges),isRangeWithinRange:(e,t)=>!(e.rowStart<t.rowStart||e.rowEnd>t.rowEnd||e.colStart<t.colStart||e.colEnd>t.colEnd),isRangesIntersect:ed,isSingleCell:e=>!!e&&e.rowEnd===e.rowStart&&e.colStart===e.colEnd,isValidRange:e=>!(!e||typeof e.colStart!="number"||e.colStart<0||typeof e.colEnd!="number"||e.colEnd<e.colStart||typeof e.rowStart!="number"||e.rowStart<0||typeof e.rowEnd!="number"||e.rowEnd<e.rowStart),mergeRangedValues:r6,rowFirstCellComparator:e6,rowFirstRangeComparator:Bh,sanitizeRange:e=>e?{colStart:e.colIndex??e.colStart??0,rowStart:e.rowIndex??e.rowStart??0,colEnd:e.colIndex??e.colEnd??0,rowEnd:e.rowIndex??e.rowEnd??0}:null,translateRange:(e,t=-e.rowStart,n=-e.colStart,o)=>o?(o.colStart=e.colStart+n,o.rowStart=e.rowStart+t,o.colEnd=e.colEnd+n,o.rowEnd=e.rowEnd+t,o):{colStart:e.colStart+n,rowStart:e.rowStart+t,colEnd:e.colEnd+n,rowEnd:e.rowEnd+t},unionRanges:B1,unionRangesArrays:(e,t,n)=>{if(!e||e.length===0)return null;if(e.length===1&&!t)return e[0];let o=e[0];for(let r=1;r<e.length;r++)o=B1(o,e[r],n);return t&&(o=B1(o,t,n)),o}},Symbol.toStringTag,{value:"Module"})),Sw=typeof Symbol=="function"&&Symbol.for?Symbol.for("react.element"):60103;function Cw(e){return function(t){return!!t&&typeof t=="object"}(e)&&!function(t){const n=Object.prototype.toString.call(t);return n==="[object RegExp]"||n==="[object Date]"||t.$$typeof===Sw}(e)}function ol(e,t){return t.clone!==!1&&t.isMergeableObject(e)?I0((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}function kw(e,t,n){return e.concat(t).map(function(o){return ol(o,n)})}function i6(e){return Object.keys(e).concat((t=e,Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter(function(n){return Object.propertyIsEnumerable.call(t,n)}):[]));var t}function l6(e,t){try{return t in e}catch{return!1}}function I0(e,t,n){(n=n||{}).arrayMerge=n.arrayMerge||kw,n.isMergeableObject=n.isMergeableObject||Cw,n.cloneUnlessOtherwiseSpecified=ol;const o=Array.isArray(t);return o===Array.isArray(e)?o?n.arrayMerge(e,t,n):function(r,i,l){const d={};return l.isMergeableObject(r)&&i6(r).forEach(function(c){d[c]=ol(r[c],l)}),i6(i).forEach(function(c){var u,f;l6(u=r,f=c)&&(!Object.hasOwnProperty.call(u,f)||!Object.propertyIsEnumerable.call(u,f))||(l6(r,c)&&l.isMergeableObject(i[c])?d[c]=function(p,h){if(!h.customMerge)return I0;const m=h.customMerge(p);return typeof m=="function"?m:I0}(c,l)(r[c],i[c],l):d[c]=ol(i[c],l))}),d}(e,t,n):ol(t,n)}I0.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(n,o){return I0(n,o,t)},{})};const Ew=Object.freeze([]),_w=Object.freeze({}),a6=e=>e,Ua=()=>"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){let t=16*Math.random()|0;return(e==="x"?t:3&t|8).toString(16)}),Vh=(e,t)=>e===t||!(!Array.isArray(e)||!Array.isArray(t)||e.length!==t.length)&&e.every((n,o)=>n===t[o]),Ni=e=>typeof e=="object"&&!Array.isArray(e)&&e!==null,Hh=e=>typeof e!="object"||Array.isArray(e)||e===null?e:(Object.keys(e).forEach(function(t){e[t]&&typeof e[t]=="object"?Hh(e[t]):e[t]!==null&&e[t]!==void 0||delete e[t],typeof e[t]=="object"&&Object.keys(e[t]).length===0&&delete e[t]}),Object.keys(e).length===0?null:e),Tw=(e,t)=>!(e!==t&&!Vh(e,t)&&!e.isEqual?.(t)),$h=(e,t,n=Tw)=>{if(e==null||e===t)return null;if(!e||typeof e!="object"||Array.isArray(e)||e.isImmutable?.())return n(e,t)?null:e;const o=Object.keys(e);if(o.length===0)return null;let r=!1;for(let i=0;i<o.length;i++){const l=o[i];$h(e[l],t?.[l],n)===null&&(r=!0,delete e[l])}return r&&Object.keys(e).length===0?null:void 0},s6=typeof performance=="object"&&typeof performance.now=="function"?()=>performance.now():()=>Date.now(),c6=e=>e==null,d6=(e,t)=>!(t.left>e.right||t.right<e.left||t.top>e.bottom||t.bottom<e.top),u6=!(typeof window>"u"||!window.document||!window.document.createElement),jo={Windows:"windows",MacOS:"macos",IOS:"ios",Linux:"linux",Android:"android",Safari:"safari",Firefox:"firefox",Node:"node",Unknown:"unknown"},Dl=()=>{if(Wh())return jo.Node;const e=globalThis.navigator!==void 0&&globalThis.navigator.userAgent?globalThis.navigator.userAgent.toLowerCase():"";return e?/(win32|win64|windows|wince)/i.test(e)?jo.Windows:/(macintosh|macintel|macppc|mac68k|macos)/i.test(e)?jo.MacOS:/(iphone|ipad|ipod)/i.test(e)?jo.IOS:/android/.test(e)?jo.Android:/linux/.test(e)?jo.Linux:/^((?!chrome|android|).)*safari/i.test(e)?jo.Safari:/^((?!chrome|android|Seamonkey).)*firefox/i.test(e)?jo.Firefox:jo.Unknown:jo.Unknown};function Wh(){return typeof process<"u"&&process.release?.name==="node"||(typeof process<"u"&&process.browser,!1)}const h6=(e,t=!1)=>(document.hasFocus()||t)&&(e===document.activeElement||e?.contains(document.activeElement)),oo=Object.freeze(Object.defineProperty({__proto__:null,EmptyArray:Ew,EmptyObject:_w,OSType:jo,arrayMove:function(e,t,n){const o=e.slice();return o.splice(n<0?o.length+n:n,0,o.splice(t,1)[0]),o},asNumber:e=>{const t=1*e;return Number.isFinite(t)?t:0},camelToPrettyCase:e=>e.length===1?e.toUpperCase():e.replace(/([A-Z])/g," $1").replace(/^./,function(t){return t.toUpperCase()}).trim(),canUseDOM:u6,cancelTimeout:e=>{cancelAnimationFrame(e.id)},castToString:e=>e==null||e===void 0?"":typeof e!="string"?""+e:e,cloneObject:e=>c6(e)?e:JSON.parse(JSON.stringify(e)),consoleWithNoSource:(...e)=>new Promise(t=>{setTimeout(()=>{Function("console.log.apply(console, arguments)").apply(null,e),t()})}),debounce:function(e,t=300,n=!1){let o,r,i,l,d=0;function c(){let f=Date.now()-d;f<t&&f>=0?o=setTimeout(c,t-f):(o=null,n||(l=e.apply(i,r),i=r=null))}t==null&&(t=100);const u=function(){i=globalThis,r=arguments,d=Date.now();var f=n&&!o;return o||(o=setTimeout(c,t)),f&&(l=e.apply(i,r),i=r=null),l};return u.clear=function(){o&&(clearTimeout(o),o=null)},u.flush=function(){o&&(l=e.apply(i,r),i=r=null,clearTimeout(o),o=null)},u},deepEqual:function e(t,n){if(t===n)return!0;if(t&&n&&typeof t=="object"&&typeof n=="object"){if(t.constructor!==n.constructor)return!1;let o,r,i;if(Array.isArray(t)){if(o=t.length,o!=n.length)return!1;for(r=o;r--!==0;)if(!e(t[r],n[r]))return!1;return!0}if(t instanceof Map&&n instanceof Map){if(t.size!==n.size)return!1;for(r of t.entries())if(!n.has(r[0]))return!1;for(r of t.entries())if(!e(r[1],n.get(r[0])))return!1;return!0}if(t instanceof Set&&n instanceof Set){if(t.size!==n.size)return!1;for(r of t.entries())if(!n.has(r[0]))return!1;return!0}if(ArrayBuffer.isView(t)&&ArrayBuffer.isView(n)){if(o=t.length,o!=n.length)return!1;for(r=o;r--!==0;)if(t[r]!==n[r])return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if(i=Object.keys(t),o=i.length,o!==Object.keys(n).length)return!1;for(r=o;r--!==0;)if(!Object.prototype.hasOwnProperty.call(n,i[r]))return!1;for(r=o;r--!==0;){let l=i[r];if(!(l==="_owner"&&t.$$typeof||e(t[l],n[l])))return!1}return!0}return t!=t&&n!=n},deepFreeze:function e(t){return Object.freeze(t),Object.keys(t).forEach(n=>{typeof t[n]!="object"||t[n]===null||Object.isFrozen(t[n])||e(t[n])}),t},deepMerge:I0,diffValues:(e,t)=>{const n={},o=Object.keys(t),r=o.length;for(let i=0;i<r;i++){const l=o[i];e[l]!==t[l]&&(e[l]===void 0?n[l]=t[l]:n[l]=e[l])}return Object.keys(n).length===0?null:n},findEqualOrGreater:function(e,t,n=a6){let o=0,r=e.length-1;for(;o<=r;){let i=Math.floor((o+r)/2),l=n(e[i]);if(l===t)return i;l<t?o=i+1:r=i-1}return o},findEqualOrLesser:function(e,t,n=a6){let o=e.length-1,r=0;for(;o>=r;){let i=Math.floor((o+r)/2),l=n(e[i]);if(l===t)return i;l>t?o=i-1:r=i+1}return o},findNextStep:(e,t=!0,n=15,o=10,r=400)=>{const i=Math.max(e-o,0)+(t?1:-1);return Math.min(r,Math[t?"ceil":"floor"](i/n)*n+o)},getDPI:()=>{let e=1;return typeof window=="object"&&(e=window.devicePixelRatio||1),e},getFromPath:(e,t)=>{const n=t.split(".");let o=e;for(let r=0;r<n.length;r++){const i=n[r];if(!o)return null;let l=o[i];if(typeof l=="function"&&(l=l.bind(o)()),!l||!Ni(l))return l;o=l}return o??null},getOS:Dl,hasFocus:h6,isDefined:e=>e!=null,isEmpty:e=>e==null||e==="",isEqualArrays:Vh,isEqualBounds:(e,t)=>e===t||!(e&&!t||t&&!e)&&e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height,isEqualObjectKeys:(e,t)=>{if(e===t)return!0;if(e&&!t||t&&!e)return!1;const n=Object.keys(e);if(n.length!==Object.keys(t).length)return!1;for(let o=0;o<n.length;o++)if(e[n[o]]!==t[n[o]])return!1;return!0},isNode:Wh,isNullOrUndefined:c6,isNumeric:e=>{const t=1*e;return Number.isFinite(t)&&typeof t=="number"},isObject:Ni,isPromiseLike:e=>!!e&&typeof e.then=="function",isRectInsideRect:(e,t)=>e.top>=t.top&&e.bottom<=t.bottom&&e.left>=t.left&&e.right<=t.right,isRectIntersect:d6,mergeContentful:(...e)=>{const t=e.length;if(t>0&&e[t-1]!==void 0&&!Ni(e[t-1]))return e[t-1];let n=e[0]||{};for(let o=1;o<t;o++)n=I0(n,e[o]||{},{arrayMerge:(r,i)=>[...i]});return n},nextTick:e=>{typeof window<"u"&&typeof window.requestAnimationFrame=="function"?window.requestAnimationFrame(()=>{e()}):(typeof setImmediate=="function"?setImmediate:setTimeout)(()=>{e()})},openFileDialog:(e="*.*")=>new Promise((t,n)=>{if(!u6)return void n("Unable to open dialog with no dom.");const o=document.createElement("input");o.type="file",o.accept=e;let r=null,i=!1;globalThis.addEventListener?.("focus",()=>{setTimeout(()=>{r||i||(i=!0,t(null))},1e3)},{once:!0,passive:!0}),o.onchange=()=>{if(r=o.files[0],r){if(i)return void console.warn("File open detected after faux cancel.",r);t(r)}},o.autofocus=!0,o.click()}),rafThrottle:e=>{let t,n=!1,o=function(){n=!1,e(t)};return function(r){t=r,t&&t.persist&&t.persist(),n||(n=!0,requestAnimationFrame(o))}},removeEmptyProperties:Hh,removeEqualValues:$h,removeListenerAll:e=>{if(!e)return[];for(let t=0;t<e.length;t++)e[t]&&e[t]();return[]},requestTimeout:(e,t)=>{const n=s6(),o={id:requestAnimationFrame(function r(){s6()-n>=t?e.call(null):o.id=requestAnimationFrame(r)})};return o},roundAccurately:(e,t=0)=>{if(e==null||!isFinite(e))return null;const n=10**t;return Number(Math.round(e*n)/n)},setToPath:(e,t,n)=>{const o=t.split(".");let r=e;if(!r)throw new Error("Can not set path to a null path.");for(let i=0;r&&i<o.length-1;i++){const l=o[i];let d=r[l];if(d==null&&(d={},r[l]=d),!Ni(d))throw new Error("Can not set path to a non object path.");r=d}if(typeof n!="number"&&typeof n!="boolean"&&typeof n!="string"&&!Ni(n))throw new Error(`Can not set path to ${n} that is not a a supported primitive.`);return r[o[o.length-1]]=n,e},splitNumber:e=>{let t=Math.abs(e);if(isNaN(t)||!isFinite(e))return null;let n=0|t,o=t-n,r=0,i=0,l=1;if(o>5e-8)for(;i<8&&Math.abs(r/l-o)>5e-8;)i++,l*=10,r=Math.round(o*l);return{ip:Math.trunc(e),fp:r,ipLength:Math.ceil(Math.log10(n+1)),fpLength:i}},subtractRect:(e,t,n=!1)=>{if(!t)return[e];if(!d6(e,t))return[];const o=[];let r=e;const i=()=>{t.top>r.top&&t.top<r.bottom&&(o.push({...r,bottom:t.top}),r={...r,top:t.top})},l=()=>{t.bottom>r.top&&t.bottom<r.bottom&&(o.push({...r,top:t.bottom}),r={...r,bottom:t.bottom})},d=()=>{t.right>r.left&&t.right<r.right&&(o.push({...r,left:t.right}),r={...r,right:t.right})},c=()=>{t.left>r.left&&t.left<r.right&&(o.push({...r,right:t.left}),r={...r,left:t.left})};return n?(c(),d(),i(),l()):(i(),l(),d(),c()),o},textToKey:e=>e.replace(/[^a-zA-Z0-9]/g,"").toLowerCase(),throttle:function(e,t){let n=null;return(...o)=>{const r=Date.now();(!n||r-n>=t)&&(n=r,e(...o))}},toSafeJSON:function e(t){if(t===null||typeof t!="object")return t;if(typeof t.toJSON=="function")return t.toJSON();if(Array.isArray(t))return t.map(o=>e(o));if(typeof t.toString=="function"&&t.toString!==Object.prototype.toString)return t.toString();const n={};for(const o in t)t.hasOwnProperty(o)&&(n[o]=e(t[o]));return n},transpose:e=>{if(!e)return e;const t=e.length,n=e[0].length,o=[];for(let r=0;r<n;r++)o[r]=Array(t);for(let r=0;r<t;r++)for(let i=0;i<n;i++)o[i][r]=e[r][i];return o},uuidV4:Ua,validEnumValue:(e,t)=>{if(!Object.values(e).includes(t))throw new Error(`Invalid type: ${t??"null"}. Must be one of: ${Object.values(t).join(", ")}.`)},whenFocus:async(e,t=!1)=>new Promise(n=>{h6(e,t)?n(!0):e.addEventListener("focusin",()=>{n(!0)},{once:!0}),e.focus()})},Symbol.toStringTag,{value:"Module"}));Object.freeze(Object.defineProperty({__proto__:null,MESSAGE_ERROR_INVALID_ARG:e=>`Invalid argument: '${e}'.`},Symbol.toStringTag,{value:"Module"}));const Uh=e=>{const t=new Uint8Array(e),n=t.byteLength;let o="";for(let r=0;r<n;r++)o+=String.fromCharCode(t[r]);if(typeof window<"u"&&typeof globalThis.btoa=="function")return globalThis.btoa(o);if(typeof Buffer<"u")return Buffer.from(o,"binary").toString("base64");throw new Error("Unsupported environment")},td=e=>new Promise((t,n)=>{if(e)if(typeof FileReader<"u"){const o=new FileReader;o.onload=()=>{t(o.result)},o.onerror=()=>{n(o.error)},o.readAsText(e)}else if(typeof Buffer<"u"){const o=r=>Buffer.from(r).toString("utf-8");e.arrayBuffer().then(r=>{t(o(r))}).catch(r=>{n(r)})}else n(new Error("Unsupported environment"));else t("")});Object.freeze(Object.defineProperty({__proto__:null,DEFAULT_MIME_TYPE:"*/*",arrayBufferToBase64:Uh,base64ToArrayBuffer:e=>{const t=typeof window<"u"&&typeof globalThis.atob=="function"?globalThis.atob(e):Buffer.from(e,"base64").toString("binary"),n=t.length,o=new Uint8Array(n);for(let r=0;r<n;r++)o[r]=t.charCodeAt(r);return o.buffer},blobToString:td},Symbol.toStringTag,{value:"Module"}));const qh="data:image/png;base64,",Zh="Unable to resolve image.",p6=e=>new Promise(async(t,n)=>{let o=null;try{o=new Image,o.src=e,o.addEventListener("load",function(){t({width:o.naturalWidth,height:o.naturalHeight})},{once:!0}),o.addEventListener("error",function(){URL.revokeObjectURL(e),n("Invalid Image")},{once:!0}),await o.decode("sync")}catch{o?.src&&URL.revokeObjectURL(o.src)}o||n(Zh)}),N1="image/svg+xml";var f6,m6;Object.freeze(Object.defineProperty({__proto__:null,DATA_URL_PNG_PREFIX:qh,getImageDataUrl:(e,t=1)=>new Promise(async(n,o)=>{let r=null;try{r=new Image,r.src=e,r.addEventListener("load",function(){try{const i=document.createElement("canvas");i.width=r.naturalWidth,i.height=r.naturalHeight,i.getContext("2d").drawImage(r,0,0);const l=i.toDataURL("image/png",t);n({elemImg:r,dataUrl:l})}catch(i){URL.revokeObjectURL(e),o(i)}},{once:!0}),r.addEventListener("error",function(){URL.revokeObjectURL(e),o("Invalid Image")},{once:!0}),await r.decode("sync")}catch{r?.src&&URL.revokeObjectURL(r.src)}r||o(Zh)}),loadImageDetails:async(e,t=null)=>{let n=null;const o=async()=>{try{const i=t??"image/*",l=URL.createObjectURL(new Blob([e],{type:i})),d=await p6(l);n={mimeType:i,naturalDimensions:d,asUrl:l}}catch{}},r=async()=>{try{const i=new TextDecoder().decode(e),l=URL.createObjectURL(new Blob([i],{type:N1})),d=await p6(l);n={mimeType:t??N1,naturalDimensions:d,asUrl:l,asSVGText:i}}catch{}};if(t===N1?await r():t.startsWith("image/")?await o():(await o(),n||await r()),!n)throw new Error("Failed to load image");return n}},Symbol.toStringTag,{value:"Module"})),(m6=f6||(f6={})).resolveTypedUpdates=(e,t,n,o)=>{if(e===null)return e;if(e===void 0)return o;let r=e;if(t?.shorthand){const c=t?.shorthand(e,n);c!==void 0&&(r=c)}if(r!==null&&t?.getSubType){const c=t.getSubType(r);c&&(t=c)}const i=t?.properties,l=t?.arrayType??!1;let d=r;if(t&&t.merge&&d&&o)d=t.merge(d,o,n);else if(!l&&i){const c=Object.keys({...r,...o});d=null;for(let u=0;u<c.length;u++){const f=c[u];let p,h=r[f];if(h!==void 0){const m=i[f];p=m?(0,m6.resolveTypedUpdates)(h,m,n,o?.[f]):h}else p=o?.[f];p!=null&&(d=d??{},d[f]=p)}}return d};const g6=`The Safari browser does not support advanced copy and paste.
45
- Copy and paste will be limited to within the browser tab.
46
-
47
- Please use Chrome or Edge if external copy and paste is required.`,V1=`You do not have permissions to access the clipboard.
48
- All copy and paste operations will be limited to the browser tab.`,Gh={Safari:`The Safari browser does not support advanced copy and paste.
49
- Copy and paste will be limited to within the browser tab.
50
-
51
- Please use Chrome or Edge if external copy and paste is required.`,Perms:V1,PermsWrite:Dl()===jo.Safari?g6:V1,PermsRead:Dl()===jo.Safari?g6:V1},H1=async()=>new Promise(e=>{document.hasFocus()?e():globalThis.addEventListener?.("focus",()=>{e()},{once:!0}),document.activeElement.focus?.()}),$1=async(e,t,n)=>{if(Dl()===jo.Safari)return await n(new Error(Gh.Safari));try{const o=async l=>{try{return await l()}catch(d){if(d.message?.includes("Document is not focused"))return!1;throw d}},r=await globalThis?.navigator?.permissions?.query({name:e,allowWithoutGesture:!0,allowWithoutSanitization:!0});let i=!1;if(r.state==="prompt"&&(i=await o(t)),i||r.state!=="granted"||(i=await t()),!i)return await n(new Error(r.state))}catch(o){return o.message==="No valid data on clipboard"||o.name==="DataError"?void 0:await n(o)}},Kh=async e=>{try{return await e.read({unsanitized:[To]})}catch{}return await e.read()};if(!globalThis.ClipboardItem){const e=(n,o)=>new Blob([o],{type:n});class t{constructor(o,r){this._items={},this._types=Object.keys(o);const i={},l=Object.keys(o);for(let d=0;d<l.length;d++){const c=l[d];let u=o[c];i[c]=typeof u=="string"?e(c,u):u}this._items=i,this._presentationStyle=r?.presentationStyle??"unspecified"}get types(){return this._types}getType(o){return Promise.resolve(this._items[o])}supports(o){return!0}}globalThis.ClipboardItem=t}const nd=async(e,t=To)=>new Promise(async(n,o)=>{try{const r=await(async(i,l)=>{if(!i)return null;const d=await Kh(i);let c=!1;for(let u=0;!c&&d&&u<d.length;u++)if(c=d[u].types.includes(l),c)return await d[u].getType(l);return c?void 0:null})(e,t);if(r){const i=new FileReader;i.onload=()=>{n(i.result)},i.onerror=()=>{n("")},i.readAsText(r)}else n("")}catch(r){o(r)}}),x6=async(e,t=To)=>{const n=await nd(e,t);if(!n)return null;let o=null;try{o=new DOMParser().parseFromString(n,To)}catch{console.warn("Can't parse html from clipboard.")}return o},Ll="clipboard-uuid",B0="web text/uuid",y6=e=>`<div style="display:none" ${Ll}="${e}"/>`,jw=(e,t)=>{let n=null;try{const o=new DOMParser().parseFromString(t,To);o.body.firstElementChild.setAttribute(Ll,e),n=o.getElementsByTagName("body")[0].innerHTML}catch(o){console.warn("Can't embed uuid.",o)}return n},b6=(e,t)=>{if(!t||!e)return!1;try{const n=t.querySelectorAll(`[${Ll}="${e}"]`);if(n&&n.length===1)return!0;if(t.querySelector("parsererror"))throw new Error("We are unable to parse node");return!1}catch{return!1}};let ws=class{constructor(e){if(e?.nativeClipboard===void 0||e?.nativeClipboard===!0)try{this._nativeClipboard=globalThis?.navigator.clipboard}catch{e?.nativeClipboard===!0&&console.warn("NativeClipboard option set to true but no native clipboard available.")}else this._nativeClipboard=e?.nativeClipboard===!1?null:e?.nativeClipboard;this._disableCheckOnFocus=e?.disableCheckOnFocus??!1,this._init()}async _checkForChanges(){this._nativeClipboard&&this._state&&!this._disableCheckOnFocus&&await $1("clipboard-read",async()=>{await H1();const e=await nd(this._nativeClipboard,B0);if(!this._state||e&&e===this._state.uuid)return!0;const t=await x6(this._nativeClipboard,To);return!this._state||(b6(this._state.uuid,t)||this.clear(),!0)},async e=>{e?.message==="denied"||e.message?.includes("Document is not focused")||Dl()===jo.Safari||console.warn("Unable to detect clipboard changes: ",e)})}_init(){const e=this;this._listeners=new Map,this._listenersCapture=new Map,this._state=null,this._nativeClipboard&&(this._onFocus=()=>{e._checkForChanges()},this._onBlur=()=>{globalThis.addEventListener?.("focus",e._onFocus,{once:!0})},globalThis.addEventListener?.("blur",this._onBlur),this._nativeClipboard.addEventListener("clipboardchange",t=>{e._checkForChanges()}))}async read(){if(!this._nativeClipboard)return this._state?.items??null;const e=this;return await $1("clipboard-read",async()=>{if(await H1(),this._state?.uuid){const t=await nd(this._nativeClipboard,B0);if(t&&t===e._state.uuid)return!0;const n=await x6(this._nativeClipboard,To);if(b6(e._state?.uuid,n))return!0}return e._state={items:await Kh(this._nativeClipboard),uuid:null,ref:null},this.dispatchEvent(new Event("clipboardread")),!0},async t=>{this.dispatchEvent(new Event("clipboarderrorread"))}),this._state?.items??[]}async write(e){return this._write({uuid:Ua(),items:e,ref:null})}async _write(e){if(!this._nativeClipboard)return this._state=e,this.dispatchEvent(new Event("clipboardwrite")),this.dispatchEvent(new Event("clipboardchange")),null;const t=this,n=[],o=e.uuid;let r=e.items??[];const i=()=>{t._state={uuid:o,ref:e.ref,items:n},t.dispatchEvent(new Event("clipboardwrite")),t.dispatchEvent(new Event("clipboardchange"))};await $1("clipboard-write",async()=>{await H1(),o&&r.length===0&&(r.push(new ClipboardItem({[B0]:new Blob([o],{type:B0})})),r.push(new ClipboardItem({[To]:new Blob([y6(o)],{type:To})})));for(let l=0;l<Math.min(1,r.length);l++){const d=r[l];let c=d.types.indexOf(To),u=null;if(c!==-1){const h=await d.getType(To);u=await td(h),u&&(u=jw(o,u))}if(!u&&d.types.includes(Ur)){const h=await d.getType(Ur);if(h){let m=null;typeof h=="string"?(console.warn("text as string",h),m=h):m=await td(h),m&&(u=`<div ${Ll}="${o}">${m}</div>`)}}if(!u&&d.types.includes(z1)){const h=await d.getType(z1),m=Uh(await h.arrayBuffer());u=`<div ${Ll}="${o}"><img src="${qh+m}"/></div>`}!u&&o&&(u=y6(o));const f=new Blob([u??""],{type:To}),p={};for(let h=0;h<d.types.length;h++){const m=d.types[h];p[m]=h===c?f:d.getType(m)}u&&c===-1&&(p[To]=f),o&&(p[B0]=new Blob([o],{type:B0})),n.push(new ClipboardItem(p))}try{n&&n.length!==0?await this._nativeClipboard.write(n):await(async l=>{l&&await l.writeText("")})(this._nativeClipboard)}catch(l){l.message?.includes("Document is not focused")||console.warn("Unable to write to native clipboard: ",l)}return i(),!0},async l=>{this.dispatchEvent(new Event("clipboarderrorwrite")),i()})}async writeReference(e){if(!e)return void this.clear();let t=null;const n={};try{const r=await e.toText?.()??null;r&&(n[Ur]=new Blob([r??""],{type:Ur}))}catch(r){t=r}try{const r=await e.toHtml?.()??null;r&&(n[To]=new Blob([r],{type:To}))}catch(r){t=r,console.warn("export to html",r)}try{const r=await e.toImage?.()??null;r&&(n[z1]=r)}catch(r){t=r,console.warn("export to png",r)}const o=this._write({uuid:Ua(),ref:e,items:Object.keys(n).length>0?[new ClipboardItem(n)]:null});if(t)throw t;return o}clear(e=!1){this._state&&(this._state=null,e&&this._write({uuid:null,ref:null,items:null}),this.dispatchEvent(new Event("clipboardwrite")),this.dispatchEvent(new Event("clipboardchange")))}async readReference(){return await this.read(),this._state?.ref??null}readText(){return new Promise(async(e,t)=>{const n=await this.read();let o=null;for(let i=0;!o&&n&&i<n.length;i++)n[i].types.includes(Ur)&&(o=await n[i].getType(Ur));if(!o)return void e("");const r=new FileReader;r.onload=()=>{e(r.result)},r.readAsText(o),r.onerror=i=>{t(i)}})}async writeText(e){const t=[new ClipboardItem({[Ur]:new Blob([e],{type:Ur})})];return this._write({uuid:Ua(),items:t,ref:null})}addEventListener(e,t,n={}){const o=n?.capture?this._listenersCapture:this._listeners;let r=o.get(e);r||(r=new Map,o.set(e,r)),r.set(t,typeof n=="boolean"?{}:n)}dispatchEvent(e){if(!e)return;const t=n=>{const o=n.get(e.type);o&&o.forEach((r,i)=>{try{typeof i=="function"?i(e):i.handleEvent&&i.handleEvent(e),r.once&&o.delete(i)}catch(l){console.warn(l)}})};return t(this._listenersCapture),t(this._listeners),!0}removeEventListener(e,t,n){const o=n?.capture?this._listenersCapture:this._listeners,r=o.get(e);r&&(r.delete(t),r.size===0&&o.delete(e))}close(){globalThis.removeEventListener?.("focus",this._onFocus),globalThis.removeEventListener?.("blur",this._onBlur)}};var W1;(W1=ws||(ws={})).ErrorMessages=Gh,W1.Global=new W1,function(){try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode("._sheetxl-scrollbar_eblx4_6 ::-webkit-scrollbar-button{background:transparent}._fullscreen-portal-root_1mjsr_4{pointer-events:none;position:absolute;inset:0;width:100%;height:100%;z-index:1200}._fullscreen-portal-root_1mjsr_4>*{pointer-events:auto}")),document.head.appendChild(e)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}}();const rl={Left:"left",Right:"right",Center:"center"},Gn="shift",p0="alt",po="ctrl",s0={Horizontal:"horizontal",Vertical:"vertical"};function Xh(e){var t,n,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var r=e.length;for(t=0;t<r;t++)e[t]&&(n=Xh(e[t]))&&(o&&(o+=" "),o+=n)}else for(n in e)e[n]&&(o&&(o+=" "),o+=n);return o}function X0(){for(var e,t,n=0,o="",r=arguments.length;n<r;n++)(e=arguments[n])&&(t=Xh(e))&&(o&&(o+=" "),o+=t);return o}var Mw=function(){},Yh=typeof window<"u",Rw=Yh?s.useLayoutEffect:s.useEffect,v6={x:0,y:0,width:0,height:0,top:0,left:0,bottom:0,right:0};const D0=Yh&&window.ResizeObserver!==void 0?function(){var e=s.useState(null),t=e[0],n=e[1],o=s.useState(v6),r=o[0],i=o[1],l=s.useMemo(function(){return new window.ResizeObserver(function(d){if(d[0]){var c=d[0].contentRect,u=c.x,f=c.y,p=c.width,h=c.height,m=c.top,g=c.left,x=c.bottom,y=c.right;i({x:u,y:f,width:p,height:h,top:m,left:g,bottom:x,right:y})}})},[]);return Rw(function(){if(t)return l.observe(t),function(){l.disconnect()}},[t]),[n,r]}:function(){return[Mw,v6]},nt=(e,t)=>{const n=s.useCallback((...i)=>e?.(...i),t),o=s.useRef(null);o.current=n;const r=s.useCallback((...i)=>o.current?.(...i),[]);if(o.current)return r},Iw=e=>{const{style:t,orientation:n=s0.Vertical,...o}=e,r=n===s0.Vertical;return a.jsx("div",{style:{paddingBottom:"0px",paddingRight:"0px",paddingLeft:r?"0px":"3px",paddingTop:r?"3px":"0px",display:"flex",alignItems:"center",justifyContent:"center",...t},...o,children:a.jsx("button",{style:{padding:"0",display:"flex",alignItems:"center",justifyContent:"center",border:"none"},className:`scrollbar-button ${r?"vertical":"horizontal"} single-button start`,children:a.jsx("svg",{width:"9",height:"9",viewBox:"0 0 6 6",style:{opacity:"inherit"},children:a.jsx("path",{d:r?"m 3.7274761,0.68060577 1.11969,1.93863003 1.12075,1.93912 c 0.0895,0.155 0.12152,0.33658 0.0904,0.51283 -0.0311,0.17625 -0.12336,0.33591 -0.26054,0.45091 -0.13715,0.11495 -0.31044,0.17793 -0.4894,0.17781 H 0.83095614 c -0.20186,0 -0.39542,-0.0802 -0.53814,-0.2229 -0.14272,-0.14272 -0.22291,-0.33629 -0.22291,-0.53814 -3e-4,-0.13308 0.0347,-0.26385 0.10147,-0.379 l 1.11872996,-1.94066 1.11921,-1.93864003 c 0.13594,-0.23541 0.38717,-0.38047 0.65905,-0.38047 0.27188,0 0.52311,0.14506 0.65905,0.38047 z":"m 0.75051,2.3424298 1.93863,-1.11969 1.93912,-1.12075 c 0.155,-0.0895 0.33658,-0.12152 0.51283,-0.0904 0.17625,0.0311 0.33591,0.12336 0.45091,0.26054 0.11495,0.13715 0.17793,0.31044 0.17781,0.4894 v 4.47742 c 0,0.20186 -0.0802,0.39542 -0.2229,0.53814 -0.14272,0.14272 -0.33629,0.22291 -0.53814,0.22291 -0.13308,3e-4 -0.26385,-0.0347 -0.379,-0.10147 L 2.68911,4.7797998 0.75047,3.6605898 C 0.51506,3.5246498 0.37,3.2734198 0.37,3.0015398 c 0,-0.27188 0.14506,-0.52311 0.38047,-0.65905 z"})})})})},Dw=e=>{const{style:t,orientation:n=s0.Vertical,...o}=e,r=n===s0.Vertical;return a.jsx("div",{style:{paddingLeft:"0px",paddingTop:"0px",paddingRight:r?"0px":"3px",paddingBottom:r?"3px":"0px",display:"flex",alignItems:"center",justifyContent:"center",...t},...o,children:a.jsx("button",{style:{padding:"0",display:"flex",alignItems:"center",justifyContent:"center",border:"none"},className:`scrollbar-button ${r?"vertical":"horizontal"} single-button end`,children:a.jsx("svg",{width:"9",height:"9",viewBox:"0 0 6 6",style:{opacity:"inherit"},children:a.jsx("path",{d:r?"M 2.412334,5.319396 1.292644,3.3807659 0.17189405,1.4416459 c -0.0895,-0.155 -0.12152,-0.33658 -0.0904,-0.51282998 0.0311,-0.17625 0.12336,-0.33591 0.26054,-0.45091 0.13715,-0.11495 0.31044,-0.17793 0.4894,-0.17781 H 5.308854 c 0.20186,0 0.39542,0.0802 0.53814,0.2229 0.14272,0.14272 0.22291,0.33629 0.22291,0.53813998 3e-4,0.13308 -0.0347,0.26385 -0.10147,0.379 l -1.11873,1.94066 -1.11921,1.9386401 c -0.13594,0.23541 -0.38717,0.38047 -0.65905,0.38047 -0.27188,0 -0.52311,-0.14506 -0.65905,-0.38047 z":"m 5.3893002,3.6575719 -1.9386301,1.11969 -1.93912,1.12075 c -0.155,0.0895 -0.33658,0.12152 -0.51282997,0.0904 -0.17625,-0.0311 -0.33591,-0.12336 -0.45091,-0.26054 -0.11495,-0.13715 -0.17793,-0.31044 -0.17781,-0.4894 V 0.76105195 c 0,-0.20186 0.0802,-0.39542 0.2229,-0.53814 C 0.73562013,0.08019195 0.92919013,1.9467784e-6 1.1310401,1.9467784e-6 1.2641201,-2.9805322e-4 1.3948901,0.03470195 1.5100401,0.10147195 l 1.94066,1.11872995 1.9386401,1.11921 c 0.23541,0.13594 0.38047,0.38717 0.38047,0.65905 0,0.27188 -0.14506,0.52311 -0.38047,0.65905 z"})})})})},od=(e,t,n,o,r=0)=>{for(let i=0;i<n.length;i++){const l=n[i].getBoundingClientRect();let d=l.left-t,c=d+l.width;if(o){if(d<e&&c>=e)return d}else if(Math.ceil(c)>Math.ceil(e)+2)return c}return r};Object.freeze(Object.defineProperty({__proto__:null,getScrollTo:od},Symbol.toStringTag,{value:"Module"}));const a2=s.memo(s.forwardRef((e,t)=>{const{offset:n=0,totalSize:o=0,viewportSize:r=0,style:i,className:l,orientation:d=s0.Vertical,onScrollOffset:c,onScroll:u,showCustomScrollButtons:f=!1,scrollButtonIncrement:p=200,scrollButtonInitialRepeatDelay:h=260,scrollButtonAdditionalRepeatDelay:m=120,createScrollStartButton:g=Iw,createScrollEndButton:x=Dw,...y}=e,v=nt(u,[u]),b=s.useRef(null),[C,{width:k,height:_}]=D0(),[I,{width:M,height:F}]=D0(),j=d===s0.Vertical,T=j?"top":"left",w=j?"scrollTop":"scrollLeft",S=j?_:k,D=j?F:M,[E,R]=s.useState(null);s.useEffect(()=>{E!==null&&b.current&&b.current.scrollTo({behavior:"smooth",[T]:E})},[E,j]);const A=s.useCallback((B,Z=!1)=>{if(!b.current)return 0;const G=b.current.querySelector(".scrollbar-viewport"),ie=G.getBoundingClientRect(),ee=G.children,le=Z?0:od(B,ie[T],ee,!0,Math.max(0,B-p));return R(le),Math.max(0,le)},[]),L=s.useCallback((B,Z=!1)=>{if(!b.current)return 0;const G=b.current.querySelector(".scrollbar-viewport"),ie=G.getBoundingClientRect(),ee=G.children,le=Math.ceil(D-S),ue=Z?le:od(B,ie[T],ee,!1,Math.max(0,B+p));return R(ue),Math.min(le,ue)},[D,S]),P=s.useRef(null),z=s.useCallback(B=>{P.current=n;const Z=B.target[w];c(Z,r,o),v?.(B)},[c,r,o,n]);s.useEffect(()=>{const B=P.current;P.current=null,n!==B&&(b.current[w]=n)},[n,w]);const U=s.useRef(null),O=s.useRef(null),q=s.useCallback(()=>{U.current&&(clearTimeout(U.current),U.current=null,O.current=null)},[]),X=s.useCallback((B,Z,G,ie=h)=>{O.current=B,U.current=setTimeout(()=>{const ee=G?A(O.current||B):L(O.current||B);ee!==O.current?X(ee,!1,G,m):q()},Z?0:ie)},[A,L,q]);s.useEffect(()=>()=>q(),[q]);const re=n,$=s.useMemo(()=>{if(!f)return null;const B={orientation:d,disabled:Math.floor(re)<=0||Math.floor(D-S)===0,onMouseUp:q,onMouseLeave:q,onMouseDown:()=>X(re,!0,!0)};return g?.(B)},[f,d,re,E,D,S]),W=s.useMemo(()=>{if(!f)return null;const B={orientation:d,disabled:Math.floor(D-S)<=Math.ceil(re),onMouseUp:q,onMouseLeave:q,onMouseDown:()=>X(re,!0,!1)};return x?.(B)},[f,d,re,E,D,S]);return a.jsxs("div",{ref:t,style:{display:"flex",flex:"1",flexDirection:j?"column":"row",padding:"0",...i},className:X0("_sheetxl-scrollbar_eblx4_6",l),...y,children:[$,a.jsx("div",{className:"pseudo-scrollbar",style:{flex:"1 1 100%",display:"flex",boxSizing:"content-box",flexDirection:j?"column":"row",justifyContent:"center",alignItems:"center"},ref:C,children:a.jsx("div",{tabIndex:-1,style:{flex:"1 1 100%",overflowY:j?"scroll":"hidden",overflowX:j?"hidden":"scroll",position:"relative",willChange:"transform"},onScroll:z,ref:b,children:a.jsx("div",{ref:I,style:{position:"absolute",height:j?o-r+(_??0):1,width:j?1:o-r+(k??0)},className:"scrollbar-viewport"})})}),W]})}));a2.displayName="Scrollbar";let w6=Date.now,Qr={},Lw=1;const Vi=e=>{let t=Qr[e]!==null;return t&&(Qr[e]=null),t},S6=(e,t,n,o=0,r)=>{let i=w6(),l=i,d=0,c=0,u=Lw++;if(u%20==0){const p={};for(let h in Qr)p[h]=!0;Qr=p}const f=function(p){const h=p!==!0,m=w6();if(!Qr[u]||t&&!t(u))return Qr[u]=null,void n(60-c/((m-i)/1e3),u,!1);if(h){const x=Math.round((m-l)/16.666666666666668)-1;for(let y=0;y<Math.min(x,4);y++)f(!0),c++}o&&(d=(m-i)/o,d>1&&(d=1));const g=r?r(d):d;e(g,m,h)!==!1&&d!==1||!h?h&&(l=m,requestAnimationFrame(f)):(Qr[u]=null,n(60-c/((m-i)/1e3),u,d===1||o===void 0))};return Qr[u]=!0,requestAnimationFrame(f),u};var Ow=function(){},Pw=function(e){return Math.pow(e-1,3)+1},Aw=function(e){return(e/=.5)<1?.5*Math.pow(e,3):.5*(Math.pow(e-2,3)+2)},Jh=function(e,t){for(var n in this.__callback=e,this.options={scrollingX:!0,scrollingY:!0,animating:!0,animationDuration:250,bouncing:!0,locking:!0,paging:!1,snapping:!1,zooming:!1,minZoom:.5,maxZoom:3,speedMultiplier:1,scrollingComplete:Ow,penetrationDeceleration:.03,penetrationAcceleration:.08},t)this.options[n]=t[n]};Jh.prototype={__isSingleTouch:!1,__isTracking:!1,__didDecelerationComplete:!1,__isGesturing:!1,__isDragging:!1,__isDecelerating:!1,__isAnimating:!1,__clientLeft:0,__clientTop:0,__clientWidth:0,__clientHeight:0,__contentWidth:0,__contentHeight:0,__snapWidth:100,__snapHeight:100,__zoomLevel:1,__scrollLeft:0,__scrollTop:0,__maxScrollLeft:0,__maxScrollTop:0,__scheduledLeft:0,__scheduledTop:0,__scheduledZoom:0,__lastTouchLeft:null,__lastTouchTop:null,__lastTouchMove:null,__positions:null,__minDecelerationScrollLeft:null,__minDecelerationScrollTop:null,__maxDecelerationScrollLeft:null,__maxDecelerationScrollTop:null,__decelerationVelocityX:null,__decelerationVelocityY:null,setDimensions:function(e,t,n,o){e!==null&&(this.__clientWidth=e),t!==null&&(this.__clientHeight=t),n!==null&&(this.__contentWidth=n),o!==null&&(this.__contentHeight=o),this.__computeScrollMax(),this.scrollTo(this.__scrollLeft,this.__scrollTop,!0)},setPosition:function(e,t){this.__clientLeft=e||0,this.__clientTop=t||0},setSnapSize:function(e,t){this.__snapWidth=e,this.__snapHeight=t},getValues:function(){return{left:this.__scrollLeft,top:this.__scrollTop,right:this.__scrollLeft+this.__clientWidth/this.__zoomLevel,bottom:this.__scrollTop+this.__clientHeight/this.__zoomLevel,zoom:this.__zoomLevel}},getPoint:function(e,t){var n=this.getValues();return{left:e/n.zoom,top:t/n.zoom}},getScrollMax:function(){return{left:this.__maxScrollLeft,top:this.__maxScrollTop}},zoomTo:function(e,t,n,o,r){if(!this.options.zooming)throw new Error("Zooming is not enabled!");r&&(this.__zoomComplete=r),this.__isDecelerating&&(Vi(this.__isDecelerating),this.__isDecelerating=!1);var i=this.__zoomLevel;n===void 0&&(n=this.__clientWidth/2),o===void 0&&(o=this.__clientHeight/2),e=Math.max(Math.min(e,this.options.maxZoom),this.options.minZoom),this.__computeScrollMax(e);var l=e/i,d=l*(this.__scrollLeft+n)-n,c=l*(this.__scrollTop+o)-o;d>this.__maxScrollLeft?d=this.__maxScrollLeft:d<0&&(d=0),c>this.__maxScrollTop?c=this.__maxScrollTop:c<0&&(c=0),this.__publish(d,c,e,t)},zoomBy:function(e,t,n,o,r){this.zoomTo(this.__zoomLevel*e,t,n,o,r)},scrollTo:function(e,t,n,o){if(this.__isDecelerating&&(Vi(this.__isDecelerating),this.__isDecelerating=!1),o!==void 0&&o!==this.__zoomLevel){if(!this.options.zooming)throw new Error("Zooming is not enabled!");e*=o,t*=o,this.__computeScrollMax(o)}else o=this.__zoomLevel;this.options.scrollingX?this.options.paging?e=Math.round(e/this.__clientWidth)*this.__clientWidth:this.options.snapping&&(e=Math.round(e/this.__snapWidth)*this.__snapWidth):e=this.__scrollLeft,this.options.scrollingY?this.options.paging?t=Math.round(t/this.__clientHeight)*this.__clientHeight:this.options.snapping&&(t=Math.round(t/this.__snapHeight)*this.__snapHeight):t=this.__scrollTop,e=Math.max(Math.min(this.__maxScrollLeft,e),0),t=Math.max(Math.min(this.__maxScrollTop,t),0),e===this.__scrollLeft&&t===this.__scrollTop&&(n=!1),this.__publish(e,t,o,n)},scrollBy:function(e,t,n){var o=this.__isAnimating?this.__scheduledLeft:this.__scrollLeft,r=this.__isAnimating?this.__scheduledTop:this.__scrollTop;this.scrollTo(o+(e||0),r+(t||0),n)},doMouseZoom:function(e,t,n,o){var r=e>0?.97:1.03;return this.zoomTo(this.__zoomLevel*r,!1,n-this.__clientLeft,o-this.__clientTop)},doTouchStart:function(e,t){if(e.length===void 0)throw new Error("Invalid touch list: "+e);if(t instanceof Date&&(t=t.valueOf()),typeof t!="number")throw new Error("Invalid timestamp value: "+t);var n,o;this.__interruptedAnimation=!0,this.__isDecelerating&&(Vi(this.__isDecelerating),this.__isDecelerating=!1,this.__interruptedAnimation=!0),this.__isAnimating&&(Vi(this.__isAnimating),this.__isAnimating=!1,this.__interruptedAnimation=!0);var r=e.length===1;r?(n=e[0].pageX,o=e[0].pageY):(n=Math.abs(e[0].pageX+e[1].pageX)/2,o=Math.abs(e[0].pageY+e[1].pageY)/2),this.__initialTouchLeft=n,this.__initialTouchTop=o,this.__zoomLevelStart=this.__zoomLevel,this.__lastTouchLeft=n,this.__lastTouchTop=o,this.__lastTouchMove=t,this.__lastScale=1,this.__enableScrollX=!r&&this.options.scrollingX,this.__enableScrollY=!r&&this.options.scrollingY,this.__isTracking=!0,this.__didDecelerationComplete=!1,this.__isDragging=!r,this.__isSingleTouch=r,this.__positions=[]},doTouchMove:function(e,t,n){if(e.length===void 0)throw new Error("Invalid touch list: "+e);if(t instanceof Date&&(t=t.valueOf()),typeof t!="number")throw new Error("Invalid timestamp value: "+t);if(this.__isTracking){var o,r;e.length===2?(o=Math.abs(e[0].pageX+e[1].pageX)/2,r=Math.abs(e[0].pageY+e[1].pageY)/2):(o=e[0].pageX,r=e[0].pageY);var i=this.__positions;if(this.__isDragging){var l=o-this.__lastTouchLeft,d=r-this.__lastTouchTop,c=this.__scrollLeft,u=this.__scrollTop,f=this.__zoomLevel;if(n!==void 0&&this.options.zooming){var p=f;if(f=f/this.__lastScale*n,p!==(f=Math.max(Math.min(f,this.options.maxZoom),this.options.minZoom))){var h=o-this.__clientLeft,m=r-this.__clientTop;c=(h+c)*f/p-h,u=(m+u)*f/p-m,this.__computeScrollMax(f)}}if(this.__enableScrollX){c-=l*this.options.speedMultiplier;var g=this.__maxScrollLeft;(c>g||c<0)&&(this.options.bouncing?c+=l/2*this.options.speedMultiplier:c=c>g?g:0)}if(this.__enableScrollY){u-=d*this.options.speedMultiplier;var x=this.__maxScrollTop;(u>x||u<0)&&(this.options.bouncing?u+=d/2*this.options.speedMultiplier:u=u>x?x:0)}i.length>60&&i.splice(0,30),i.push(c,u,t),this.__publish(c,u,f)}else{var y=this.options.locking?3:0,v=Math.abs(o-this.__initialTouchLeft),b=Math.abs(r-this.__initialTouchTop);this.__enableScrollX=this.options.scrollingX&&v>=y,this.__enableScrollY=this.options.scrollingY&&b>=y,i.push(this.__scrollLeft,this.__scrollTop,t),this.__isDragging=(this.__enableScrollX||this.__enableScrollY)&&(v>=5||b>=5),this.__isDragging&&(this.__interruptedAnimation=!1)}this.__lastTouchLeft=o,this.__lastTouchTop=r,this.__lastTouchMove=t,this.__lastScale=n}},doTouchEnd:function(e){if(e instanceof Date&&(e=e.valueOf()),typeof e!="number")throw new Error("Invalid timestamp value: "+e);if(this.__isTracking){if(this.__isTracking=!1,this.__isDragging)if(this.__isDragging=!1,this.__isSingleTouch&&this.options.animating&&e-this.__lastTouchMove<=100){for(var t=this.__positions,n=t.length-1,o=n,r=n;r>0&&t[r]>this.__lastTouchMove-100;r-=3)o=r;if(o!==n){var i=t[n]-t[o],l=this.__scrollLeft-t[o-2],d=this.__scrollTop-t[o-1];this.__decelerationVelocityX=l/i*(1e3/60),this.__decelerationVelocityY=d/i*(1e3/60);var c=this.options.paging||this.options.snapping?4:1;(Math.abs(this.__decelerationVelocityX)>c||Math.abs(this.__decelerationVelocityY)>c)&&this.__startDeceleration(e)}else this.options.scrollingComplete()}else e-this.__lastTouchMove>100&&this.options.scrollingComplete();this.__isDecelerating||((this.__interruptedAnimation||this.__isDragging)&&this.options.scrollingComplete(),this.scrollTo(this.__scrollLeft,this.__scrollTop,!0,this.__zoomLevel)),this.__positions.length=0}},__publish:function(e,t,n,o){var r=this.__isAnimating;if(r&&(Vi(r),this.__isAnimating=!1),o&&this.options.animating){this.__scheduledLeft=e,this.__scheduledTop=t,this.__scheduledZoom=n;var i=this.__scrollLeft,l=this.__scrollTop,d=this.__zoomLevel,c=e-i,u=t-l,f=n-d,p=function(g,x,y){y&&(this.__scrollLeft=i+c*g,this.__scrollTop=l+u*g,this.__zoomLevel=d+f*g,this.__callback&&this.__callback(this.__scrollLeft,this.__scrollTop,this.__zoomLevel))}.bind(this),h=function(g){return this.__isAnimating===g}.bind(this),m=function(g,x,y){x===this.__isAnimating&&(this.__isAnimating=!1),(this.__didDecelerationComplete||y)&&this.options.scrollingComplete(),this.options.zooming&&(this.__computeScrollMax(),this.__zoomComplete&&(this.__zoomComplete(),this.__zoomComplete=null))}.bind(this);this.__isAnimating=S6(p,h,m,this.options.animationDuration,r?Pw:Aw)}else this.__scheduledLeft=this.__scrollLeft=e,this.__scheduledTop=this.__scrollTop=t,this.__scheduledZoom=this.__zoomLevel=n,this.__callback&&this.__callback(e,t,n),this.options.zooming&&(this.__computeScrollMax(),this.__zoomComplete&&(this.__zoomComplete(),this.__zoomComplete=null))},__computeScrollMax:function(e){e===void 0&&(e=this.__zoomLevel),this.__maxScrollLeft=Math.max(this.__contentWidth*e-this.__clientWidth,0),this.__maxScrollTop=Math.max(this.__contentHeight*e-this.__clientHeight,0)},__startDeceleration:function(e){if(this.options.paging){var t=Math.max(Math.min(this.__scrollLeft,this.__maxScrollLeft),0),n=Math.max(Math.min(this.__scrollTop,this.__maxScrollTop),0),o=this.__clientWidth,r=this.__clientHeight;this.__minDecelerationScrollLeft=Math.floor(t/o)*o,this.__minDecelerationScrollTop=Math.floor(n/r)*r,this.__maxDecelerationScrollLeft=Math.ceil(t/o)*o,this.__maxDecelerationScrollTop=Math.ceil(n/r)*r}else this.__minDecelerationScrollLeft=0,this.__minDecelerationScrollTop=0,this.__maxDecelerationScrollLeft=this.__maxScrollLeft,this.__maxDecelerationScrollTop=this.__maxScrollTop;var i=function(u,f,p){this.__stepThroughDeceleration(p)}.bind(this),l=this.options.snapping?4:.1,d=function(){var u=Math.abs(this.__decelerationVelocityX)>=l||Math.abs(this.__decelerationVelocityY)>=l;return u||(this.__didDecelerationComplete=!0),u}.bind(this),c=function(u,f,p){this.__isDecelerating=!1,this.__didDecelerationComplete&&this.options.scrollingComplete(),this.scrollTo(this.__scrollLeft,this.__scrollTop,this.options.snapping)}.bind(this);this.__isDecelerating=S6(i,d,c)},__stepThroughDeceleration:function(e){var t=this.__scrollLeft+this.__decelerationVelocityX,n=this.__scrollTop+this.__decelerationVelocityY;if(!this.options.bouncing){var o=Math.max(Math.min(this.__maxDecelerationScrollLeft,t),this.__minDecelerationScrollLeft);o!==t&&(t=o,this.__decelerationVelocityX=0);var r=Math.max(Math.min(this.__maxDecelerationScrollTop,n),this.__minDecelerationScrollTop);r!==n&&(n=r,this.__decelerationVelocityY=0)}if(e?this.__publish(t,n,this.__zoomLevel):(this.__scrollLeft=t,this.__scrollTop=n),!this.options.paging&&(this.__decelerationVelocityX*=.95,this.__decelerationVelocityY*=.95),this.options.bouncing){var i=0,l=0,d=this.options.penetrationDeceleration,c=this.options.penetrationAcceleration;t<this.__minDecelerationScrollLeft?i=this.__minDecelerationScrollLeft-t:t>this.__maxDecelerationScrollLeft&&(i=this.__maxDecelerationScrollLeft-t),n<this.__minDecelerationScrollTop?l=this.__minDecelerationScrollTop-n:n>this.__maxDecelerationScrollTop&&(l=this.__maxDecelerationScrollTop-n),i!==0&&(i*this.__decelerationVelocityX<=0?this.__decelerationVelocityX+=i*d:this.__decelerationVelocityX=i*c),l!==0&&(l*this.__decelerationVelocityY<=0?this.__decelerationVelocityY+=l*d:this.__decelerationVelocityY=l*c)}}};var qo=typeof window<"u"?window:{screen:{},navigator:{}},xi=(qo.matchMedia||function(){return{matches:!1}}).bind(qo),Qh=!1,Fw={get passive(){return Qh=!0}},C6=function(){};qo.addEventListener&&qo.addEventListener("p",C6,Fw),qo.removeEventListener&&qo.removeEventListener("p",C6,!1);var zw=Qh,Bw="PointerEvent"in qo,s2="ontouchstart"in qo,ep=s2||"TouchEvent"in qo&&xi("(any-pointer: coarse)").matches,k6=(qo.navigator.maxTouchPoints||0)>0||ep,tp=qo.navigator.userAgent||"",Nw=xi("(pointer: coarse)").matches&&/iPad|Macintosh/.test(tp)&&Math.min(qo.screen.width||0,qo.screen.height||0)>=768,np=(xi("(pointer: coarse)").matches||!xi("(pointer: fine)").matches&&s2)&&!/Windows.*Firefox/.test(tp),Vw=xi("(any-pointer: fine)").matches||xi("(any-hover: hover)").matches||Nw||!s2,rd=!k6||!Vw&&np?k6?"touchOnly":"mouseOnly":"hybrid",Hw=rd==="mouseOnly"?"mouse":rd==="touchOnly"||np?"touch":"mouse";const $w=Object.freeze(Object.defineProperty({__proto__:null,deviceType:rd,primaryInput:Hw,supportsPassiveEvents:zw,supportsPointerEvents:Bw,supportsTouchEvents:ep},Symbol.toStringTag,{value:"Module"})),Ww=new Set(["INPUT","TEXTAREA","SELECT"]),op={};function id(){return $w}const Bt=Object.freeze(Object.defineProperty({__proto__:null,EmptyCssProperties:op,boundPixel:function(e,t=!1,n=0){return e},createSyntheticEvent:e=>{let t=!1,n=!1;return{nativeEvent:e,currentTarget:e.currentTarget,target:e.target,bubbles:e.bubbles,cancelable:e.cancelable,defaultPrevented:e.defaultPrevented,eventPhase:e.eventPhase,isTrusted:e.isTrusted,preventDefault:()=>{t=!0,e.preventDefault()},isDefaultPrevented:()=>t,stopPropagation:()=>{n=!0,e.stopPropagation()},isPropagationStopped:()=>n,persist:()=>{},timeStamp:e.timeStamp,type:e.type}},detectIt:id,focusableNodeNames:Ww,toPrettyKeyCode:e=>e==="BracketLeft"?"[":e==="BracketRight"?"]":oo.camelToPrettyCase(e)},Symbol.toStringTag,{value:"Module"})),Uw=[];function qs(e,t,n=Uw){const o=s.useRef(null);return s.useImperativeHandle(e,()=>{if(!o.current)return;const r=o.current,i=t?.();if(!i||typeof i!="object")throw new Error("attributes must return a plain object of values");const l=Object.keys(i),d=l.length;for(let c=0;c<d;c++){const u=l[c],f=i[u];Object.defineProperty(r,u,{value:f,writable:!0,configurable:!0,enumerable:!0})}return r},n),o}const E6=e=>a.jsx(a2,{...e}),qw=({width:e,height:t})=>a.jsx("div",{className:"corner",style:{minWidth:`${e}px`,width:`${e}px`,minHeight:`${t}px`,height:`${t}px`}}),rp=s.memo(s.forwardRef((e,t)=>{const{children:n,viewport:o,onScrollViewport:r,showHorizontalScrollbar:i=!0,showVerticalScrollbar:l=!0,createScrollCorner:d=qw,createHorizontalScrollbar:c=E6,createVerticalScrollbar:u=E6,style:f,touchElement:p,disableTouch:h,...m}=e,g=nt(r,[r]),x=qs(t,()=>({isScrollPane:()=>!0}),[]),y=s.useRef(null);s.useEffect(()=>{y.current&&(y.current.__scrollTop===o?.top&&y.current.__scrollLeft!==!o?.left||y.current?.scrollTo(o?.left,o?.top,!1))},[o?.left,o?.top,p]);const v=s.useCallback((S,D)=>{g?.({left:S,top:D})},[]),b=s.useCallback(S=>{y.current?.doTouchStart(S.touches,S.timeStamp)},[]),C=s.useCallback(S=>{S.preventDefault(),y.current?.doTouchMove(S.touches,S.timeStamp)},[]),k=s.useCallback(S=>{y.current?.doTouchEnd(S.timeStamp)},[]),_=s.useCallback(({containerWidth:S,containerHeight:D,totalWidth:E,totalHeight:R})=>{y.current.setDimensions(S,D,E,R)},[]);s.useEffect(()=>{const S=p??x.current;if(!h&&id().supportsTouchEvents&&S&&o){if(!y.current){const D={scrollingX:!0,scrollingY:!0,decelerationRate:.95,penetrationAcceleration:.08};y.current=new Jh(v,D)}id().supportsTouchEvents&&(S.addEventListener("touchstart",b),S.addEventListener("touchend",k),S.addEventListener("touchmove",C)),_({containerWidth:o?.width,containerHeight:o?.height,totalWidth:o?.totalWidth,totalHeight:o?.totalHeight})}return()=>{S?.removeEventListener("touchstart",b),S?.removeEventListener("touchend",k),S?.removeEventListener("touchmove",C)}},[o?.width,o?.height,o?.totalWidth,o?.totalHeight,h,p]);const[I,{width:M}]=D0(),[F,{height:j}]=D0(),T=s.useMemo(()=>{const S=u({orientation:s0.Vertical,offset:o?.top,viewportSize:o?.height,totalSize:o?.totalHeight,onScrollOffset:D=>{g?.({top:D})}});return a.jsx("div",{style:{display:"flex",flex:"0"},ref:I,children:S})},[u,o?.top,o?.height,o?.totalHeight]),w=s.useMemo(()=>{const S=c({orientation:s0.Horizontal,offset:o?.left,viewportSize:o?.width,totalSize:o?.totalWidth,onScrollOffset:D=>g?.({left:D})});return a.jsxs("div",{style:{display:"flex",flex:"none",flexDirection:"row",alignItems:"stretch",justifyContent:"center"},children:[a.jsx("div",{style:{display:"flex",flex:"1 1 100%",flexDirection:"column",width:`calc(100% - ${M}px)`},children:a.jsx("div",{ref:F,className:"sizer",children:S})}),l?d({width:M,height:j}):a.jsx(a.Fragment,{})]})},[c,o?.left,o?.width,o?.totalWidth,l,d,M,j]);return a.jsx("div",{style:{position:"relative",display:"flex",minWidth:l?`${M}px`:void 0,minHeight:i?`${j}px`:void 0,...f},...m,ref:x,children:a.jsxs("div",{style:{position:"relative",width:"100%",flex:"1 1 100%",display:"flex",flexDirection:"column",boxSizing:"border-box"},children:[a.jsxs("div",{style:{display:"flex",flex:"1 1 100%",overflow:"hidden"},children:[a.jsx("div",{style:{display:"flex",flex:"1 1 100%",overflow:"hidden"},children:n}),l?T:a.jsx(a.Fragment,{})]}),i?w:a.jsx(a.Fragment,{})]})})}));rp.displayName="ScrollPane";const Zw=()=>{const e=document.fullscreenElement;return e?e.querySelector(".fullscreen-portal-root")||e:document.body};let ga=0;function ip(){return s.useEffect(()=>{function e(){const t=document.fullscreenElement;if(!t)return;let n=t.querySelector(".fullscreen-portal-root");n||(n=document.createElement("div"),n.className="fullscreen-portal-root _fullscreen-portal-root_1mjsr_4",t.appendChild(n))}return ga++,e(),document.addEventListener("fullscreenchange",e),()=>{document.removeEventListener("fullscreenchange",e),ga--,ga<=0&&(document.querySelectorAll(".fullscreen-portal-root").forEach(t=>{t.parentNode&&t.parentNode.removeChild(t)}),ga=0)}},[]),{getPortalContainer:Zw}}const Gw=100,Kw=100,Xw=1e6,Yw=100,Jw=50,Qw=s.memo(s.forwardRef((e,t)=>{const{offset:n=0,viewportSize:o=0,totalSize:r=0,minSize:i=0,endGap:l=Gw,endScrollIncrement:d=Kw,style:c=op,onMouseDown:u,onScrollOffset:f,onScroll:p,scaleLimit:h=Xw,scaleFactor:m=Yw,precisionFactor:g=Jw,...x}=e;p&&console.warn("onScroll not supported for VirtualScrollbar. Use onScrollOffset instead");const y=nt(u,[u]),v=()=>({offset:n,totalSize:h===0?r:Math.min(r??0,Math.max(i??0,(n??0)+(o??0))+(l??0))}),[b,C]=s.useState(v),k=h!==0&&b.totalSize>h?m:1,_=k/g,I=Math.ceil(b.totalSize/k),M=Math.ceil(b.offset/k),F=Math.ceil(o/k),j=s.useCallback(A=>{},[]),[T,w]=s.useState(!1),S=s.useRef(null);s.useLayoutEffect(()=>{if(!T){S.current={propTotalSize:r,propViewportSize:o,propOffset:n};const A=v();C(A)}},[r,o,n,T,i,l,d]);const D=nt((A,L,P)=>{const z=S.current;S.current=null,z&&z.propTotalSize===r&&z.propViewportSize===o&&z.propOffset===n||(Math.abs(A-M)<_&&(A=M),f?.(A*k,M,F))},[f,k,_,M,F]),E=s.useCallback(A=>{document.removeEventListener("mousemove",j),document.removeEventListener("mouseup",E),w(!1)},[]),R=s.useCallback(A=>{y?.(A),w(!0),document.addEventListener("mousemove",j,{passive:!0}),document.addEventListener("mouseup",E,{passive:!0})},[j,E]);return a.jsx(a2,{ref:t,style:{...c},...x,offset:M,totalSize:I,viewportSize:F,onMouseDown:R,onScrollOffset:D})}));function U1(e,t){if(typeof e=="function")return e(t);e&&(e.current=t)}Qw.displayName="VirtualScrollbar";var Ss=parseInt(s.version.split(".")[0],10)>=19?function(e){return t=>{const n=[];for(const o of e){const r=U1(o,t),i=typeof r=="function";n.push(i?r:()=>U1(o,null))}return()=>{for(const o of n)o()}}}:function(e){return t=>{for(const n of e)U1(n,t)}};s.memo(s.forwardRef((e,t)=>{const{refFocusStart:n,...o}=e,r=s.useRef(null),i=s.useCallback(()=>{if(n)return void n?.current?.focus();const l=r.current.parentElement.children;let d=[];for(let c=0;c<l.length&&l[c]!==r.current;c++){const u=l[c].getAttribute("tabindex");if(u==null||u==="-1"||l[c].getAttribute("disabled")==="true")continue;const f=l[c];f.focus&&d.push({tabindex:parseInt(u),child:f})}d.length!==0&&(d.sort(function(c,u){return c.tabindex-u.tabindex}),d[0].child.focus())},[n]);return a.jsx("div",{tabIndex:0,ref:Ss([r,t]),onFocus:i,...o})})),s.memo(s.forwardRef((e,t)=>{const{className:n,style:o,children:r,radius:i=4,strokeWidth:l=1,strokeColor:d="grey",...c}=e,[u,{width:f,height:p}]=D0(),h=s.useRef(null),m=(v,b=0)=>{const C=v/2,k=p-C+b;return function(_,I,M=!1){if(I===0)return _;function F(E,R,A){let L=R.x-E.x,P=R.y-E.y,z=Math.sqrt(L*L+P*P);return j(E,R,Math.min(1,A/z))}function j(E,R,A){return{x:E.x+(R.x-E.x)*A,y:E.y+(R.y-E.y)*A}}function T(E,R){E.length>2&&(E[E.length-2]=R.x,E[E.length-1]=R.y)}function w(E){return{x:parseFloat(E[E.length-2]),y:parseFloat(E[E.length-1])}}let S=_.split(/[,\s]/).reduce(function(E,R){let A=R.match("([a-zA-Z])(.+)");return A?(E.push(A[1]),E.push(A[2])):E.push(R),E},[]).reduce(function(E,R){return parseFloat(R)==R&&E.length?E[E.length-1].push(R):E.push([R]),E},[]),D=[];if(S.length>1){let E=w(S[0]),R=null;S[S.length-1][0]==="Z"&&S[0].length>2&&(R=["L",E.x,E.y],S[S.length-1]=R),D.push(S[0]);for(let A=1;A<S.length;A++){let L=D[D.length-1],P=S[A],z=P===R?S[1]:S[A+1];if(z&&L&&L.length>2&&P[0]==="L"&&z.length>2&&z[0]==="L"){let U,O,q=w(L),X=w(P),re=w(z);M?(U=j(X,L.origPoint||q,I),O=j(X,z.origPoint||re,I)):(U=F(X,q,I),O=F(X,re,I)),T(P,U),P.origPoint=X,D.push(P);let $=j(U,X,.5),W=j(X,O,.5),B=["C",$.x,$.y,W.x,W.y,O.x,O.y];B.origPoint=X,D.push(B)}else D.push(P)}if(R){let A=w(D[D.length-1]);D.push(["Z"]),T(D[0],A)}}else D=S;return D.reduce(function(E,R){return E+R.join(" ")+" "},"")}(`M 0 ${C} L ${i-.5} ${C} L ${i-.5} ${k} L ${2*i} ${k} L ${f-2*i} ${k} M ${f-2*i} ${k} L ${f-i} ${k} L ${f-i} ${C} L ${f} ${C}`,i)},g=s.useMemo(()=>m(l),[f,p,i,l]),x=s.useMemo(()=>{if(i===0)return;const v=i/2;return m(i)+`L ${f} 0 L 0 0 L 0 ${v}`},[g,i,l]),y=s.useMemo(()=>({style:{clipPath:`path('${x}')`}}),[x]);return a.jsxs("div",{className:n,style:{display:"flex",flexDirection:"row",...o},...c,ref:Ss([h,u,t]),children:[s.isValidElement(r)?s.cloneElement(r,y):a.jsx(a.Fragment,{}),a.jsx("svg",{style:{position:"absolute",top:0,left:0,pointerEvents:"none"},width:f,height:p,viewBox:`0 0 ${f} ${p}`,children:a.jsx("path",{d:g,stroke:d,fill:"none",vectorEffect:"non-scaling-stroke",strokeWidth:l})})]})}));const eS={},tS=e=>{const{onPointerDown:t,style:n,splitDirection:o,paddingBefore:r=0,paddingAfter:i=0,disabled:l,key:d,hitAreaProps:c=eS,...u}=e,f=o==="row",{style:p,className:h,...m}=c;return a.jsx("div",{style:{...n,position:"relative"},...u,children:a.jsx("div",{className:X0("hit-box",h),style:{left:(f?-r:0)+"px",width:`calc(100% + ${f?r+i:0}px)`,top:(f?0:-r)+"px",height:`calc(100% + ${f?0:r+i}px)`,position:"absolute",...p},onPointerDown:l?void 0:t,...m})},d)},xa={},f0=(e,t,n=!0)=>e===null?null:e.pixels!==null?n?e.pixels:t-e.pixels:(n?e.percent:100-e.percent)/100*t,ya=(e,t=!0)=>e?.percent?`${t?e.percent:100-e.percent}%`:e?.pixels?`${e.pixels}px`:void 0,qr=(e,t)=>{if(e==null)return null;const n={percent:null,pixels:null};let o=t;return typeof e=="string"&&((e=e.trim().toLowerCase()).endsWith("px")?(e=e.substring(0,e.length-2),o=!1):e.endsWith("%")&&(e=e.substring(0,e.length-1),o=!0),e=parseFloat(e)),o?n.percent=e:n.pixels=e,Object.freeze(n)};function ii(e){if(!e)throw new Error("must have a PointerHandlerOptions");const{onPointerDown:t,onPointerUp:n,onPointerMoveOrWait:o,processTouch:r=!1,consumeTouch:i=!0}=e,l=nt(t,[t]),d=nt(n,[n]),c=nt(o,[o]),u=s.useRef(!1),f=e?.timerInitial??230,p=e?.timerContinuous??f/2,h=s.useRef(null),m=s.useRef(null),g=s.useRef(null),x=s.useRef(null),y=s.useCallback(()=>{x.current&&(clearTimeout(x.current),x.current=null)},[]),v=s.useCallback(T=>{x.current=setTimeout(()=>{window.requestAnimationFrame(()=>{u.current!==!1&&c?.(m.current,g.current,h.current)}),v(p)},T??f)},[]);s.useEffect(()=>()=>y(),[]);const b=r?"pointer":"mouse",C=s.useCallback(T=>{T.stopPropagation(),T.stopImmediatePropagation(),T.preventDefault()},[]),k=nt(T=>{document.removeEventListener(`${b}move`,M),document.removeEventListener(`${b}up`,k),document.removeEventListener("keydown",F),document.removeEventListener("keyup",j),document.removeEventListener("touchstart",C,{capture:!0}),document.removeEventListener("touchmove",C,{capture:!0}),window.removeEventListener("blur",_),y(),window.requestAnimationFrame(()=>{u.current!==!1&&(u.current=!1,d?.(T,g.current,h.current),g.current=null)})},[]),_=s.useCallback(()=>{u.current!==!1&&(u.current=!1,k(m.current))},[]),I=nt(()=>{y(),v(p),window.requestAnimationFrame(()=>{u.current!==!1&&c?.(m.current,g.current,h.current)})},[p]),M=nt(T=>{m.current=T,I()},[]),F=nt(T=>{g.current={ctrlKey:T.ctrlKey,shiftKey:T.shiftKey,altKey:T.altKey,metaKey:T.metaKey},I()},[]),j=nt(T=>{g.current={ctrlKey:T.ctrlKey,shiftKey:T.shiftKey,altKey:T.altKey,metaKey:T.metaKey},I()},[p]);return nt(T=>{T.isDefaultPrevented()||(g.current={ctrlKey:T.ctrlKey,shiftKey:T.shiftKey,altKey:T.altKey,metaKey:T.metaKey},l(T,g.current)!==!1&&(h.current=T,m.current=T.nativeEvent,document.addEventListener(`${b}up`,k,{passive:!1}),document.addEventListener(`${b}move`,M,{passive:!1}),document.addEventListener("keydown",F,{passive:!1}),document.addEventListener("keyup",j,{passive:!1}),window.addEventListener("blur",_,{passive:!0}),r&&i&&(document.addEventListener("touchstart",C,{passive:!1,capture:!0}),document.addEventListener("touchmove",C,{passive:!1,capture:!0})),u.current=!0,v(f)))},[f,r])}s.memo(s.forwardRef((e,t)=>{const{elementBefore:n,elementAfter:o,splitDirection:r="row",fixedPane:i=null,position:l,onPositionChange:d,minBefore:c,maxBefore:u,minAfter:f,maxAfter:p,children:h,className:m,style:g,disabled:x=!1,onDragStart:y,onDragResize:v,onDragFinish:b,resizerProps:C=xa,paneProps:k=xa,paneBeforeProps:_=xa,paneAfterProps:I=xa,createResizer:M=tS}=e;if(h)throw new Error("Use elementBefore and elementAfter instead of children.");const F=s.useMemo(()=>s.isValidElement(o)&&s.isValidElement(n),[o,n]),j=s.useMemo(()=>{let H=null;i&&(i==="before"?H=0:i==="after"&&(H=1));const te=H===null;return{fixedPaneOffset:H,isPercent:te,minBefore:qr(c,te),maxBefore:qr(u,te),minAfter:qr(f,te),maxAfter:qr(p,te)}},[c,u,f,p]),T=nt(d,[d]),[w,S]=s.useState(()=>qr(l,i===null));s.useEffect(()=>{S(qr(l,i===null))},[l,i]);const[D,{width:E,height:R}]=D0(),[A,{width:L,height:P}]=D0(),z=r==="row"?L:P,U=r==="row"?E:R,O=s.useMemo(()=>((H,te,ne,J)=>{const ae=[null,null],Q=[null,null];if(H||(H={percent:J.fixedPaneOffset===null?50:null,pixels:J.fixedPaneOffset===null?null:0}),te===0)return H?.pixels!=null?J.fixedPaneOffset!==1?(ae[0]=H?.pixels,Q[1]=100):(ae[1]=H?.pixels-ne,Q[0]=100):H?.percent!=null&&(J.fixedPaneOffset!==1?(Q[0]=H?.percent,Q[1]=100-H?.percent):(Q[1]=H?.percent,Q[0]=100-H?.percent)),{percents:Q,pixels:ae,minBefore:ya(J.minBefore,!0),maxBefore:ya(J.maxBefore,!0),minAfter:ya(J.minAfter),maxAfter:ya(J.maxAfter)};let pe=f0(H,te,J.fixedPaneOffset!==1),ge=te-ne,Ee=f0(J.minBefore,ge,!0)??0,Be=f0(J.maxBefore,ge,!0)??ge,Oe=0,Ie=0,Ze=0,Ne=ge;Oe=(f0(J.maxAfter,te,!1)??ne)-ne,Ie=f0(J.minAfter,te,!1)??te,Ze=Math.max(Ee,Oe),Ne=Math.min(Be,Ie),pe=Math.max(Ze,Math.min(pe,Ne)),Ie=Math.min(ge-pe,f0(J.maxAfter,ge-pe,!0)??ge),Oe=Math.min(ge-pe,f0(J.minAfter,ge-pe,!0)??ge),ae[0]=pe,ae[1]=ge-ae[0];const qe=Math.max(0,Math.min(100,pe/ge*100));return Q[0]=qe,Q[1]=100-Q[0],{percents:Q,pixels:ae,minBefore:`${Ee}px`,minAfter:`${Oe}px`,maxBefore:`${ae[0]}px`,maxAfter:`${ae[1]}px`}})(w,U,z,j),[j,w,U,z,r]),[q,X]=s.useState(!1),re=nt(y,[y]),$=nt(v,[v]),W=nt(b,[b]),B=s.useRef(null),Z=s.useRef(null),G=s.useRef(null),{style:ie,className:ee,...le}=k,ue={minWidth:0,minHeight:0,maxWidth:"100%",maxHeight:"100%",display:"flex",overflow:"hidden",...ie},{className:de,style:oe,...fe}=_,{className:Te,style:Le,...ce}=I,he={flex:"1 1 100%",width:"100%",...g,flexDirection:r,display:"flex"},{className:we,style:Y,onPointerDown:ze,...ht}=C,ut=nt(H=>{const te=qr(H,i===null);S(te)},[i]),ke=nt(H=>{if(x||!q)return;const te=Fe.current?.getBoundingClientRect();let ne=0;ne=r==="row"?(H.clientX??H.touches?.[0]?.clientX)-te.x:(H.clientY??H.touches?.[0]?.clientY)-te.y,ne=Math.max(0,Math.min(U,ne)),j.fixedPaneOffset===1&&(ne=U-ne),l&&w.pixels===ne||S({pixels:ne,percent:null}),$?.(ne),H.stopPropagation(),H.preventDefault()},[j,r,x,q,w,U]),ot=nt(H=>{if(document.removeEventListener("pointermove",ke),document.removeEventListener("touchmove",ke),document.removeEventListener("pointerup",ot),q&&(X(!1),w)){if(W(w.pixels),!qr(l,i===null)||w.pixels!==l){const te={...w};te.percent===null&&(te.percent=te.pixels/U*100),T(te)}H.stopPropagation(),H.preventDefault()}},[w,q,l,i,U]),dt=nt(H=>{ze?.(H),H.defaultPrevented||x||q||(X(!0),re(),document.addEventListener("pointermove",ke,{passive:!1}),document.addEventListener("touchmove",ke,{passive:!1}),document.addEventListener("pointerup",ot,{passive:!1}))},[ze]),Fe=qs(t,()=>({setPosition:ut,isSplitPane:()=>!0}),[]),Je=s.useMemo(()=>F?M?.({key:"resizer",ref:Ss([A,Z]),className:X0("resizer",we),onPointerDownCapture:dt,style:{cursor:x?void 0:r==="row"?"ew-resize":"ns-resize",minWidth:r==="row"?"2px":void 0,minHeight:r!=="row"?"2px":void 0,boxSizing:"border-box",pointerEvents:"all",zIndex:1,...Y},splitDirection:r,disabled:x,...ht}):null,[F,we,ht,r,Y,x]),Ge=r==="row"?"Width":"Height",se={...ue,...oe,flex:j.fixedPaneOffset===0&&O?.pixels[0]!==null?`0 0 ${Math.round(O?.pixels[0])}px`:`1 1 ${Math.round(O?.percents[0]??100)}%`,[`min${Ge}`]:O?.minBefore,[`max${Ge}`]:o?O?.maxBefore:"100%"},We={...ue,...Le,flex:j.fixedPaneOffset===1&&O?.pixels[1]!==null?`0 0 ${Math.round(O?.pixels[1])}px`:`1 1 ${Math.round(O?.percents[1]??100)}%`,[`min${Ge}`]:O?.minAfter,[`max${Ge}`]:n?O?.maxAfter:"100%"},be=s.useMemo(()=>n?a.jsx("div",{ref:B,className:X0("before",ee,de),style:se,...le,...fe,children:n},"before"):null,[n,k,_,j,O]),Se=s.useMemo(()=>o?a.jsx("div",{ref:G,className:X0("after",ee,Te),style:We,...le,...ce,children:o},"after"):null,[o,k,I,j,O]);return a.jsxs("div",{ref:Ss([D,Fe]),className:X0("splitPane",r==="row"?"vertical":"horizontal",{dragging:q},m),style:he,children:[be,Je,Se]})}));const nS=({initValue:e,useHookBody:t,applyStateChange:n})=>{const o=s.useRef(e);if(typeof t!="function")throw new Error("function expected as hook body parameter. got "+typeof t);const r=t();return s.useLayoutEffect(()=>{o.current!==r&&(o.current=r,n(r))},[n,r]),null},ld=e=>{console&&console.warn&&console.warn(e)},q1=typeof self=="object"&&self.self===self&&self||typeof global=="object"&&global.global===global&&global||void 0;let oS=1,ad=!1,lp=!1;const qa=[],Y0=[],Cs=()=>{Y0.forEach(e=>e())},rS=({automaticContainerInternalUseOnly:e})=>{const[t,n]=s.useState([]),o=s.useRef([]);return o.current=t,e||ad!==!1||(lp=!0),s.useEffect(()=>{let r=!0;function i(){if(r)return Y0[0]!==i?(e||ad!==!0||ld("SingletonHooksContainer is mounted after some singleton hook has been used.Your SingletonHooksContainer will not be used in favor of internal one."),void n(l=>[])):void n([...qa])}return Y0.push(i),Cs(),()=>{r=!1,o.current?.length>0&&ld("SingletonHooksContainer is unmounted, but it has active singleton hooks. They will be reevaluated once SingletonHooksContainer is mounted again"),Y0.splice(Y0.indexOf(i),1),Cs()}},[e]),a.jsx(a.Fragment,{children:t.map(({hook:r,key:i})=>s.createElement(nS,{...r,key:i}))})},ap=(e,t,n={})=>{let o,r,i=!1,l=!1,d=[],{unmountIfNoConsumers:c=!1}=n;const u=p=>{r=p,eo.unstable_batchedUpdates(()=>d.forEach(h=>h(p)))},f=()=>(l||(r=typeof e=="function"?e():e,l=!0),r);return()=>{const[p,h]=s.useState(f);return s.useEffect(()=>(i||(i=!0,o=(m=>{const g=oS++;return qa.push({hook:m,key:g}),Y0.length===0&&lp===!1&&(ad=!0,(x=>{if(q1.document&&q1.document.createElement){const y=q1.document.createElement("div");Sd.createRoot(y).render(a.jsx(x,{automaticContainerInternalUseOnly:!0}))}else ld("Can not mount SingletonHooksContainer on server side. Did you manage to run useEffect on server? Please mount SingletonHooksContainer into your components tree manually.")})(rS)),Cs(),()=>{qa.splice(qa.findIndex(x=>x.key===g),1),Cs()}})({initValue:e,useHookBody:t,applyStateChange:u})),d.push(h),r!==p&&h(r),()=>{d.splice(d.indexOf(h),1),d.length===0&&c&&(o(),i=!1)}),[]),p}};ap(null,()=>{const[e,t]=s.useState(null);return e});let iS=class{constructor(e,t,n,o){this._listenersProperties=new Set,this._listenersExecute=new Set,this._key=e,this._target=t,this._applyProps(n||{}),this._callback=o,o===void 0&&(this._callback=()=>{console.log(`implement: ${this.label()} : ${this.description()}`)})}key(){return this._key}_resolve(e,t){if(typeof e=="function"){const n=t??this._context;return e(typeof n=="function"?n():n)}return e}target(){return typeof this._target=="function"?this._target():this._target}label(e,t){const n=this._scopedLabels?.[e]||this._label;let o=null;if(typeof n=="function"){const r=t??this._context;o=n(typeof r=="function"?r():r)}else o=n;return o}description(e){return this._resolve(this._description,e)}tags(e){return this._resolve(this._tags,e)}icon(e){return this._resolve(this._icon,e)}shortcut(){return this._resolve(this._shortcut)}disabled(){return this._resolve(this._disabled)||!this._callback}state(){return this._resolve(this._state)}context(){return typeof this._context=="function"?this._context():this._context}async execute(e,t){if(!this.disabled()&&this._callback){try{let n=!0;if(t?.beforeExecute&&(n=t?.beforeExecute(this,e)),await Promise.resolve(n)===!1)return!1;const o=this._callback.bind(this)(e,this);if(await Promise.resolve(o)===!1)return!1;t?.onExecute?.(this,e),this._notifyExecute(e)}catch(n){return console.warn(n),t?.onError(this,n,e),this._notifyError(e,n),!1}return!0}}addPropertyListener(e,t=!1){if(!e)throw new Error("listener must be specified");const n=this._listenersProperties;return n.add(e),t&&e({},this),()=>{n.delete(e)}}addExecuteListener(e){if(!e)throw new Error("listener must be specified");const t=this._listenersExecute;return t.add(e),function(){t.delete(e)}}_notifyExecute(e){const t=this;this._listenersExecute.forEach(n=>{n.onExecute(t,e)})}_notifyError(e,t){const n=this;this._listenersExecute.forEach(o=>{o.onError?.(n,e,t)})}updateCallback(e){return this._callback=e||null,this}update(e){if(!e)return;const t=this._applyProps(e);return Object.keys(t).length>0&&this._notifyPropertyChange(t),this}_notifyPropertyChange(e){const t=this;this._listenersProperties.forEach(n=>{n(e,t)})}_applyProps(e){let t={},n=this;return Object.keys(e).forEach(o=>{let r=e[o];n["_"+o]!==r&&(n["_"+o]=t[o]=r)}),t}};class Zt extends iS{}oo.getOS()===oo.OSType.MacOS||(oo.getOS(),oo.OSType.IOS),oo.getOS()===oo.OSType.MacOS||(oo.getOS(),oo.OSType.IOS),ap({setClipboard:e=>{throw new Error("This is only available via the useClipboard.")},getClipboard:()=>ws.Global,refNativeCopy:{current:null},refNativeLastKey:{current:null}},()=>{const[e,t]=s.useState(ws.Global);return{setClipboard:n=>t(n),getClipboard:()=>e,refNativeCopy:s.useRef(null),refNativeLastKey:s.useRef(null)}});let Z1=!1,lS=0;var aS=typeof document<"u"?s.useLayoutEffect:s.useEffect;const _6=()=>"sheetxl-ui-"+lS++,sS=s.useId??function(){const[e,t]=s.useState(()=>Z1?_6():void 0);return aS(()=>{e==null&&t(_6())},[]),s.useEffect(()=>{Z1||(Z1=!0)},[]),e},J0=({itemType:e,index:t,itemSize:n,instanceProps:o,scale:r=1})=>{let i,l,d;e==="column"?(i=o.columnMetadataMap,l=o.lastMeasuredColumnIndex,d=o.recalcColumnIndices):(i=o.rowMetadataMap,l=o.lastMeasuredRowIndex,d=o.recalcRowIndices);const c=d.length>0;if(t>l){let u=0;if(l>=0){const f=i[l];u=f.offset+f.size}for(let f=l+1;f<=t;f++){let p=c?d.includes(f)?n(f)*r:i[f]?.size||n(f)*r:n(f)*r;i[f]={offset:u,size:p},u+=p}e==="column"?o.lastMeasuredColumnIndex=t:o.lastMeasuredRowIndex=t}return i[t],i[t]},T6=({itemType:e,itemSize:t,itemCount:n,instanceProps:o,offset:r,scale:i})=>{let l,d;e==="column"?(l=o.columnMetadataMap,d=o.lastMeasuredColumnIndex):(l=o.rowMetadataMap,d=o.lastMeasuredRowIndex);let c=0;return c=(d>0?l[d].offset:0)>=r?sp({itemType:e,itemSize:t,instanceProps:o,high:d,low:0,offset:r,scale:i}):cS({itemType:e,itemSize:t,itemCount:n,instanceProps:o,index:Math.max(0,d),offset:r,scale:i}),c=Math.min(c,n),c},sp=({itemType:e,itemSize:t,instanceProps:n,high:o,low:r,offset:i,scale:l})=>{for(;r<=o;){const d=r+Math.floor((o-r)/2),c=J0({itemType:e,itemSize:t,index:d,instanceProps:n,scale:l}).offset;if(c===i)return d;c<i?r=d+1:c>i&&(o=d-1)}return r>0?r-1:0},cS=({itemType:e,itemSize:t,itemCount:n,instanceProps:o,index:r,offset:i,scale:l})=>{let d=1;for(;r<n&&J0({itemType:e,itemSize:t,index:r,instanceProps:o,scale:l}).offset<i;)r+=d,d*=2;return sp({itemType:e,itemSize:t,instanceProps:o,high:Math.min(r,n-1),low:Math.floor(r/2),offset:i,scale:l})},c2="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789 ~`!@#$%^&*()-_=+[{]};:'\",<.>/?|\\",j6=e=>{if(!e)return null;if(e.eventType==="start")return{type:e.eventType};if(e.eventType==="submit")return{type:e.eventType};if(e.eventType==="cancel")return{type:e.eventType};if(e.eventType==="keyboard")return{type:e.eventType,key:e.event.key};if(e.eventType==="pointer")return{type:e.eventType};if(e.eventType==="coordsChange"){const t={type:e.eventType};return e.activeCoords&&(t.activeCoords=e.activeCoords),t}return{type:e.eventType??"unknown"}},dS=e=>!0,uS=e=>!(!e||e.ctrlKey||e.metaKey||e.altKey||e.isComposing||(e.shiftKey||e.key!=="F2"&&e.key!==" "&&e.key!=="Backspace")&&(e.shiftKey&&e.key===" "||c2.indexOf(e.key)===-1)),hS=e=>!!e&&e.type==="dblclick"&&{editMode:!0},pS=e=>{const{session:t,refLatestCoords:n,handleSubmitEdit:o,handleCancelEdit:r,cellBounds:i,isInBounds:l,getCellEditor:d,propsEditor:c,borderStrokeFill:u="rgb(33, 115, 70)",borderStrokeWidth:f=2,alignment:p=rl.Left,style:h,...m}=e,g=s.useRef(null),x=s.useRef(null),[y,v]=s.useState(!1),b=t.coords,C=s.useCallback(async w=>{if(g.current?.getBoundingClientRect()){if(w.eventType==="keyboard"){const S=w.event,D=new KeyboardEvent(S.type,{bubbles:!0,cancelable:!0,view:window,key:S.key,code:S.code,location:S.location,repeat:S.repeat,isComposing:S.isComposing,charCode:S.charCode,keyCode:S.keyCode,which:S.which,ctrlKey:S.ctrlKey,shiftKey:S.shiftKey,altKey:S.altKey,metaKey:S.metaKey});D.isSynthetic=!0,D.key,x.current?.dispatchEvent(D)}else w.eventType==="pointer"||console.warn("unsupported event type",w);await new Promise(S=>requestAnimationFrame(S))}},[]);s.useEffect(()=>{const w=x.current;return v(!0),x.current.startEdit?.(t.startEvent),(async()=>{t.editorRefs.push(w),t.editorRefsDispatchEditorEvent.push(C);const S=[...t.events];for(let D=0;D<S.length;D++)await C(S[D]);t.onMount(w)})(),()=>{const S=t.editorRefs.indexOf(w);S!==-1&&t.editorRefs.splice(S,1),t.onUnmount(w)}},[]);const k=s.useCallback(()=>o(t),[]),_=s.useCallback(()=>{r(t)},[]),I=n.current&&_t.isEqualCells(n.current,b),M=l&&I&&y,F=d({autoFocus:!!t.startEvent?.autoFocus,...c,onSubmitEdit:k,onCancelEdit:_,ref:x},b),j=i.x+Bt.boundPixel(-f/2),T=Bt.boundPixel(i.width+f/2,!0);return a.jsx("div",{tabIndex:0,ref:g,style:{background:void 0,...h,opacity:M?h?.opacity??1:0,pointerEvents:"auto",position:"absolute",boxSizing:"border-box",top:`${i.y+Bt.boundPixel(-f/2)}px`,height:Bt.boundPixel(i.height+f/2,!0),left:`${j}px`,width:T},...m,children:a.jsx("div",{className:"editor-container",style:{position:"absolute",boxSizing:"border-box",left:`${Bt.boundPixel(1)}px`,top:`${Bt.boundPixel(1)}px`,width:Bt.boundPixel(i.width-2,!0),height:Bt.boundPixel(i.height-2,!0),outline:`${f}px ${u} solid`,boxShadow:"rgba(60,64,67,.35) 2px 2px 6px 3px",maxHeight:"100%",overflow:"hidden",display:"flex"},children:F})})},fS=e=>{const{view:t,canEdit:n=dS,getCellEditor:o,onBeforeStartEdit:r,onStartEdit:i,onSubmitEdit:l,onCancelEdit:d,onDoneEdit:c,isEditorStartKeyEvent:u=uS,isEditorStartPointerEvent:f=hS,containerProps:p,borderStrokeFill:h,borderStrokeWidth:m=2,getRangeCoords:g=null,activeCoords:x,alignment:y=rl.Left}=e,[v,b]=s.useState(!1),[C,k]=s.useState(void 0),_=nt((Z,G,ie,ee,le,ue)=>{if(!G)return null;const de=le?.(G,Z),oe=Z.getRangeCoordsBounds(de),fe=Z.toClipBounds(oe),Te=oe,Le=Z.getZoom();if(!fe)return null;ie&&(ie*=Le),ee&&(ee*=Le);let ce=Te,he=!1;if(ie!==void 0){let ze={...de},ht=0;for(;!he&&ce.width<=ie&&ht<20;){ht++,ht>19&&console.warn("max width reached");const ut=Z.getTotalRangeCoords(),ke=Z.getLayout();ue===rl.Left?ze.colEnd+1<ut.colEnd?ze.colEnd=ke.getColIndex(ce.x+ie):he=!0:ue===rl.Right?ze.colStart-1>=0?ze.colStart=ke.getColIndex(ce.x-(ie-ce.width)):he=!0:ue===rl.Center&&ze.colEnd+1<ut.colEnd&&ze.colStart-1>=0?(ze.colStart=ke.getColIndex(ce.x-(ie-ce.width)/2),ze.colEnd=ke.getColIndex(ce.x+ce.width+(ie-ce.width)/2)):he=!0,he||(ce=Z.getRangeCoordsBounds(ze))}}ce.height=Te.height,ee!==void 0&&(ce.height=Math.max(ee+1,Te.height));const{width:we,height:Y}=Z.getViewportSize();return{x:ce.x??0,y:ce.y??0,height:Math.min(Y-ce.y,ce.height)+1,width:Math.min(we-ce.x,ce.width)+1}},[y]),I=nt(n,[n]),M=s.useCallback(()=>{t?.getStage()?.focus()},[t]),F=s.useRef(null),j=nt(Z=>{r?.(Z),U(),b(!0),F.current=null},[r]),T=nt(Z=>{i?.(Z.coords)},[i]),w=nt(Z=>{Z.isSubmitted||Z.isCancelled||(E.current.isEditorClosed=!0,M(),Z.isCancelled=!0,d?.(Z.coords),U())},[d]),S=nt(Z=>{if(Z.isSubmitted||Z.isCancelled)return!1;try{return F.current=Z.coords,Z.isEditorClosing=!0,Z.isSubmitted=!0,Z.isEditorSubmitted||(Z.isEditorSubmitted=!0,Z.editorRefs[0]?.submitEdit?.()),Z.coords,l?.(Z.coords),Z.isEditorClosed=!0,M(),U(),!0}catch(G){throw Z.isEditorClosing=!1,Z.isSubmitted=!1,G}},[l]),D=nt(Z=>{b(!1),c?.(Z.coords),U()},[c]),E=s.useRef(null),R=s.useRef(null),A=s.useRef(null),L=s.useRef([]),[P,z]=s.useReducer(Z=>Z+1,0),U=s.useCallback(Z=>{Z&&L.current.push(Z),z()},[]),O=nt(Z=>{if(Z.defaultPrevented||Z.isSynthetic||!t)return;const G=t?.getCellCoordsFromClient(Z.clientX,Z.clientY);G&&U({eventType:"pointer",event:Z,coords:G})},[t]),q=nt(Z=>{const G=Z.nativeEvent;O(G)},[t]),X=nt(Z=>{if(Z.defaultPrevented||Z.isSynthetic||!t?.getStage())return;const G=R.current;u(Z,G)&&(Z.stopPropagation(),Z.preventDefault()),Z.key,U({eventType:"keyboard",event:Z,coords:G})},[t]);s.useLayoutEffect(()=>{const Z=(ee,le)=>{const ue=le?.cell??ee;if(!ue)return null;const de=ue;if(!I(ue))return null;j?.(ue);const oe=oo.uuidV4();le=Object.freeze({autoFocus:!0,...le}),A.current=ue;const fe={coords:de,startEvent:le,uuid:oe,isMounted:!1,isStarted:!1,isSubmitted:!1,isEditorSubmitted:!1,isEditorClosing:!1,isEditorClosed:!1,isCancelled:!1,events:[],editorRefsDispatchEditorEvent:[],editorRefs:[],onMount:Te=>{fe.isMounted||(fe.isMounted=!0,U())},onUnmount:Te=>{if(fe.editorRefs.length===0){const Le=()=>{fe.isMounted=!1,U()};if(document.activeElement!==document.body)Le();else{const ce=he=>{he.defaultPrevented||he.target!==document.body||X(he)};window.addEventListener("keydown",ce,!0),t.getStage()?.addEventListener("focusin",()=>{window.removeEventListener("keydown",ce),Le()},{once:!0}),M()}}}};return fe};if(L.current.length<=0&&!E.current)return;const G=L.current[0];j6(G),(ee=>{const le=[],ue=ee?.length??0;for(let de=0;de<ue;de++){const oe=ee[de];le.push(j6(oe))}})(L.current),E.current,E.current;let ie=E.current;if(E.current){if(E.current.isDone)E.current=null;else if(E.current.isSubmitted||E.current.isCancelled){if(E.current.isMounted)return;E.current.isDone||(D(E.current),E.current.isDone=!0)}}if(G){if(G.eventType==="start"){const ee=G,le=ee.startEvent?.cell??R.current;E.current&&_t.isEqualCells(E.current.coords,le)||(E.current=Z(le,ee.startEvent))}else if(G.eventType==="keyboard"){const ee=G.event;if(E.current){ee.key,E.current.events,E.current.events.push(G);for(let le=0;le<E.current.editorRefsDispatchEditorEvent.length;le++)E.current.editorRefsDispatchEditorEvent[le](G)}else if(u(ee,G.coords)){const ue=Z(R.current,void 0);ue&&ue.events.push(G),E.current=ue}}else if(G.eventType==="pointer"){const ee=G.event;if(E.current){E.current.events.push(G);for(let le=0;le<E.current.editorRefsDispatchEditorEvent.length;le++)E.current.editorRefsDispatchEditorEvent[le](G)}else{const le=G?.coords??R.current,ue=f(ee,le);if(ue){let de;typeof de!="boolean"&&(de=ue);const oe=Z(le,de);oe&&oe.events.push(G),E.current=oe}}}else if(G.eventType==="submit"){if(E.current&&!E.current.isSubmitted&&!E.current.isCancelled){if(!E.current.isMounted)return;S(E.current)}}else if(G.eventType==="cancel"){if(E.current&&!E.current.isSubmitted&&!E.current.isCancelled){if(!E.current.isMounted)return;w(E.current)}}else if(G.eventType==="coordsChange"){const ee=G;if(R.current=ee.activeCoords,E.current,E.current&&!E.current.isSubmitted&&!E.current.isCancelled){if(!E.current.isMounted)return;try{S(E.current)}catch{}}}}L.current.length>0&&(L.current.shift(),U()),L.current.length===0&&(!E.current||E.current.isEditorClosing||E.current.isEditorClosed?!E.current&&ie&&M():E.current.isMounted&&!E.current.isStarted&&(E.current.isStarted=!0,E.current.startEvent.autoFocus&&(typeof E.current.startEvent.autoFocus=="string"?E.current.editorRefs[0]?.autoFocus(E.current.startEvent.autoFocus):E.current.editorRefs[0]?.autoFocus()),T?.(E.current),requestAnimationFrame(()=>{t&&E.current?.coords&&t.scrollCellCoordsIntoView(E.current.coords)})))},[P]),s.useEffect(()=>{if(F.current&&_t.isEqualCells(F.current,x))return;A.current=x;const Z=E.current?.coords;_t.isEqualCells(Z,x)||(E.current&&(E.current.isEditorClosing=!0),U({eventType:"coordsChange",activeCoords:x}))},[x]);const re=s.useCallback(Z=>{X(Z.nativeEvent)},[]),{width:$=0,height:W=0}=C??{width:0,height:0},B=nt(o,[o]);return{overlay:nt(Z=>{if(!E.current||E.current.isEditorClosed)return E.current,null;E.current.coords;let G=_(Z,E.current.coords,$,W,g,y),ie=!0;G&&G.width!==0&&G.height!==0||(G={x:0,y:0,width:$,height:$},ie=!1);const ee=Z.getZoom(),le={containerBounds:{x:0,y:0,width:G.width/ee,height:G.height/ee},setNaturalDimensions:k,zoom:ee};return a.jsx(pS,{session:E.current,refLatestCoords:A,handleSubmitEdit:S,handleCancelEdit:w,cellBounds:G,borderStrokeWidth:m,borderStrokeFill:h,isInBounds:ie,getCellEditor:B,propsEditor:le,alignment:y,...p},"editor:"+E.current.uuid)},[o,g,P,$,W,y,m,h]),startEdit:s.useCallback(Z=>{U({eventType:"start",startEvent:Z})},[]),submitEdit:s.useCallback(()=>{U({eventType:"submit"})},[]),cancelEdit:s.useCallback(()=>{U({eventType:"cancel"})},[]),onKeyboardEvent:re,onPointerEvent:q,onKeyboardEventNative:X,onPointerEventNative:O,isEditing:v}},mS=({gridRef:e,gridMainRef:t,orientation:n=Fr,headerCount:o,selectionPolicy:r="multiple",newSelectionMode:i="clear",alwaysScrollToActiveCoords:l=!0,onDragStart:d,onDragEnd:c,pointerDownInterceptor:u,pointerMoveInterceptor:f,onPointerUp:p,newSelection:h,modifySelection:m,appendSelection:g,clearSelections:x})=>{const y=o??((n===Fr?e.current?.rowCount:e.current?.columnCount)||0),v=s.useRef(null),b=s.useRef(null),C=s.useRef(!1),k=s.useRef(null),_=s.useCallback(D=>n===Lo?{rowIndex:0,colIndex:D.colIndex}:{rowIndex:D.rowIndex,colIndex:0},[n]),I=s.useCallback(D=>n===Lo?{rowIndex:t.current?t.current.rowCount-1:0,colIndex:D.colIndex}:{rowIndex:D.rowIndex,colIndex:t.current?t.current.columnCount-1:0},[n]),M=D=>{b.current=I(D),m(b.current,v.current)},F=s.useCallback((D,E)=>{if(!e.current)return;const R=e.current.getViewFromClient(D,E)?.getCellCoordsFromClient(D,E);return R?(n===Lo?R.rowIndex=t.current.getViewport().rowStart:R.colIndex=t.current.getViewport().colStart,R):void 0},[]),j=s.useCallback((D,E=!1)=>{let R=D;return E||(R={...D},n===Fr?delete R.colIndex:delete R.rowIndex),t.current?.scrollCellCoordsIntoView(R)},[n]),T=nt(c,[c]),w=nt(d,[d]),S=s.useMemo(()=>({onPointerDown:D=>{if(!e||!e.current||D.nativeEvent.defaultPrevented)return;const E=F(D.nativeEvent.clientX,D.nativeEvent.clientY);if(!E)return;D.nativeEvent.which;const R=D.nativeEvent.shiftKey,A=D.nativeEvent.ctrlKey||D.nativeEvent.metaKey;if(u?.(D,E)===!1)return;w?.(),C.current=!0;const L=t.current?.getViewFromClient(D.nativeEvent.clientX,D.nativeEvent.clientY),P=((z,U)=>n===Lo?{...z,rowIndex:U.rowStart}:{...z,colIndex:U.colStart})(E,L.getVisibleRangeCoords());if(R)M(E);else{if(A)return((z,U=z,O)=>{v.current=_(z),b.current=I(U),g(v.current,b.current,O)})(E,E,P),void(l&&j(P,!0));((z,U=z,O)=>{v.current=_(z),b.current=I(U),h(v.current,b.current,O)})(E,E,P),M(E),l&&j(P,!0)}},onPointerMoveOrWait:oo.throttle(D=>{if(!C.current||!e?.current)return;const E=F(D.clientX,D.clientY);if(E&&f?.(D,E)!==!1){if(_t.isEqualCells(k.current,E))return x();M(E),j(E)}},60),onPointerUp:D=>{C.current=!1,T?.(),p?.(D)},processTouch:!0,consumeTouch:!0}),[r,l,y,i,x,u,p]);return{onPointerDown:nt(ii(S),[]),getCellCoordsFromClient:F}},xn=(e,t,n)=>{if(!e)return t;let o=t;const r=n===gn||n===Cn;for(;;){const i=e(o,!r);if(i===0)return o;r?o+=i:o-=i}},ba=(e,t,n)=>{const o=[];let r=t;for(;r<=n;){const i=Math.max(0,e(r));i===0?(o.push(r),r++):r+=i}return o},gS=(e,t,n,o,r,i)=>{if(!t)return i;let{rowIndex:l,colIndex:d}=e;switch(o){case Cn:{l=xn(n,Math.min(l+1,i),o);let c=t({rowIndex:l,colIndex:d});for(;!c&&l<i;)l=xn(n,Math.min(++l,i),o),c=t({rowIndex:l,colIndex:d});return l}case Sn:{l=xn(n,Math.max(l-1,i),o);let c=t({rowIndex:l,colIndex:d});for(;!c&&l>i;)l=xn(n,Math.max(--l,i),o),c=t({rowIndex:l,colIndex:d});return l}case gn:{d=xn(n,Math.min(d+1,i),o);let c=t({rowIndex:l,colIndex:d});for(;!c&&d<i;)d=xn(n,Math.min(++d,i),o),c=t({rowIndex:l,colIndex:d});return d}case wn:{d=xn(n,Math.max(d-1,i),o);let c=t({rowIndex:l,colIndex:d});for(;!c&&d>i;)d=xn(n,Math.max(--d,i),o),c=t({rowIndex:l,colIndex:d});return d}default:return i}},xS=(e,t=()=>!0,n,o,r,i)=>{let{rowIndex:l,colIndex:d}=e;switch(o){case Cn:{l=xn(n,Math.min(l+1,i),o);let c=t?.({rowIndex:l,colIndex:d});for(;c&&l<i;)l=xn(n,Math.min(++l,i),o),c=t?.({rowIndex:l,colIndex:d});return t?.({rowIndex:l,colIndex:d})?l:l-1}case Sn:{l=xn(n,Math.max(l-1,i),o);let c=t?.({rowIndex:l,colIndex:d});for(;c&&l>i;)l=xn(n,Math.max(--l,i),o),c=t?.({rowIndex:l,colIndex:d});return t?.({rowIndex:l,colIndex:d})?l:l+1}case gn:{d=xn(n,Math.min(d+1,i),o);let c=t?.({rowIndex:l,colIndex:d});for(;c&&d<i;)d=xn(n,Math.min(++d,i),o),c=t?.({rowIndex:l,colIndex:d});return t?.({rowIndex:l,colIndex:d})?d:d-1}case wn:{d=xn(n,Math.max(d-1,i),o);let c=t?.({rowIndex:l,colIndex:d});for(;c&&d>i;)d=xn(n,Math.max(--d,i),o),c=t?.({rowIndex:l,colIndex:d});return t?.({rowIndex:l,colIndex:d})?d:d+1}default:return null}},yS=(e,t,n,o,r,i)=>{if(!t)return i;let l,{rowIndex:d,colIndex:c}=e;o===Cn?l={rowIndex:d+1,colIndex:c}:o===Sn?l={rowIndex:d-1,colIndex:c}:o===gn?l={rowIndex:d,colIndex:c+1}:o===wn&&(l={rowIndex:d,colIndex:c-1});const u=t(e);var f,p;return(p=t(l),!(f=u)&&!p||!f&&p||f&&!p?gS:xS)(e,t,n,o,!1,i)??i},M6=(e,t)=>`${e}:${t}`,R6=(e,t,n,o,r,i)=>{if(n-t>=r-o)return o;let l=o;return e==="nearest"&&(o-t>0?e="start":n-r>0&&(e="end")),e==="start"?l=t:e==="end"?l=n-(r-o):e==="center"&&(l=t+(n-t)/2-(r-o)/2),Math.max(0,Math.min(l,i-(r-o)))},I6=(e,t,n,o)=>(console.log("todo: implement convertToVisibleRanges"),e),sd=(e,t=gn,n,o,r,i=null)=>{if(i&&_t.isEqualSelectionCoords(i,e))return e;const l=e.ranges[e.rangeIndex];if(!_t.isRangesIntersect({rowStart:e.cell.rowIndex,colStart:e.cell.colIndex,rowEnd:e.cell.rowIndex,colEnd:e.cell.colIndex},l))return e;let d={...e.cell},c=e.rangeIndex;switch(t){case gn:d.colIndex=xn(r,d.colIndex+1,t);break;case wn:d.colIndex=xn(r,d.colIndex-1,t);break;case Cn:d.rowIndex=xn(o,d.rowIndex+1,t);break;case Sn:d.rowIndex=xn(o,d.rowIndex-1,t)}const u=h=>{if(h){c=e.rangeIndex>=e.ranges.length-1?0:e.rangeIndex+1;const m=e.ranges[c];d={colIndex:m.colStart,rowIndex:m.rowStart}}else{c=e.rangeIndex<=0?e.ranges.length-1:e.rangeIndex-1;const m=e.ranges[c];d={colIndex:m.colEnd,rowIndex:m.rowEnd}}};if(t===gn&&d.colIndex>l.colEnd&&d.rowIndex===l.rowEnd)u(!0);else if(t===wn&&d.colIndex<l.colStart&&d.rowIndex===l.rowStart)u(!1);else if(t===Cn&&d.colIndex===l.colEnd&&d.rowIndex>l.rowEnd)u(!0);else if(t===Sn&&d.colIndex===l.colStart&&d.rowIndex<l.rowStart)u(!1);else{let h=d.rowIndex,m=d.colIndex;switch(t){case gn:m>l.colEnd&&(h=xn(o,h+1,t),m=l.colStart,h>l.rowEnd&&(h=l.rowStart));break;case wn:m<l.colStart&&(h=xn(o,h-1,t),m=l.colEnd,h<l.rowStart&&(h=l.rowEnd));break;case Cn:h>l.rowEnd&&(m=xn(r,m+1,t),h=l.rowStart,m>l.colEnd&&(m=l.colStart));break;case Sn:h<l.rowStart&&(m=xn(r,m-1,t),h=l.rowEnd,m<l.colStart&&(m=l.colEnd))}d={rowIndex:h,colIndex:m}}let f=n(d);if(!_t.isRangeWithinRange(f,l)){const h=_t.intersectRanges(f,l);h&&(f=h)}let p={rowStart:xn(o,f.rowStart,Cn),colStart:xn(r,f.colStart,gn),rowEnd:xn(o,f.rowEnd,Sn),colEnd:xn(r,f.colEnd,wn)};if(p.rowStart!==d.rowIndex||p.colStart!==d.colIndex){switch(t){case gn:e.ranges[c].colStart===p.colStart&&e.ranges[c].colEnd===p.colEnd&&(d.rowIndex=p.rowEnd),d.colIndex=p.colEnd;break;case wn:e.ranges[c].colStart===p.colStart&&e.ranges[c].colEnd===p.colEnd&&(d.rowIndex=p.rowStart),d.rowIndex===p.rowStart?d.colIndex=p.colStart+1:d.colIndex=p.colStart;break;case Cn:e.ranges[c].rowStart===p.rowStart&&e.ranges[c].rowEnd===p.rowEnd&&(d.colIndex=p.colEnd),d.rowIndex=p.rowEnd;break;case Sn:e.ranges[c].rowStart===p.rowStart&&e.ranges[c].rowEnd===p.rowEnd&&(d.colIndex=p.colStart),d.colIndex===p.colStart?d.rowIndex=p.rowStart+1:d.rowIndex=p.rowStart}return sd({cell:d,ranges:e.ranges,rangeIndex:c},t,n,o,r,i??e)}return{ranges:e.ranges,cell:d,rangeIndex:c}},D6=(e,t)=>{let n,o=0,r=0;return t.colStart<e.colStart?(n=wn,o=e.colStart-t.colStart,r=t.colStart):t.colEnd>e.colEnd?(n=gn,o=t.colEnd-e.colEnd,r=t.colEnd):t.rowStart<e.rowStart?(n=Sn,o=e.rowStart-t.rowStart,r=t.rowStart):t.rowEnd>e.rowEnd&&(n=Cn,o=t.rowEnd-e.rowEnd,r=t.rowEnd),{direction:n,amount:o,index:r}},ks=(e,t=!1,n,o)=>{if(!n)return 0;const r=!t,i=r?1:-1;let l=n(r?e:e+1),d=n(r?e+1:e),c=e+(r?2:-1),u=0;for(;(d-l)*i<=0;){if(r&&c-1>o+1||!r&&c+1<o)return u;l=d,d=n(c),c+=i,u++}return u},L6=(e,t,n,o,r)=>{const i={};let l=null,d=null;for(let c=0;c<=n.length&&n[c]<=r;c++){const u=n[c];if(u<o)continue;const f=l===u?d:t?e.getColOffset(u):e.getRowOffset(u),p=t?e.getColOffset(u+1):e.getRowOffset(u+1);l=u+1,d=p,i[u]=Object.freeze({offset:f,size:p-f,spanIndex:c})}return Object.freeze(i)},O6=(e,t,n)=>{const o=e.getColOffset(t.colStart)+(n?.left??0),r=e.getRowOffset(t.rowStart)+(n?.top??0);return{x:o,y:r,width:e.getColOffset(t.colEnd+1)+(n?.right??0)-(n?.left??0)-o,height:e.getRowOffset(t.rowEnd+1)+(n?.bottom??0)-(n?.top??0)-r}},bS=(e,t,n)=>!!n&&!(e<n.x||e>n.x+n.width)&&!(t<n.y||t>n.y+n.height),G1=(e,t=!0)=>`M ${Bt.boundPixel(e.left)} ${Bt.boundPixel(e.top)} L ${Bt.boundPixel(e.right,!0)} ${Bt.boundPixel(e.top)} L ${Bt.boundPixel(e.right,!0)} ${Bt.boundPixel(e.bottom,!0)} L ${Bt.boundPixel(e.left)} ${Bt.boundPixel(e.bottom,!0)} L ${Bt.boundPixel(e.left)} ${Bt.boundPixel(e.top)} ${t?"Z":""}`,Q0=e=>{const{linePoints:t,bounds:n,pathProps:o,style:r,...i}=e;return a.jsx("svg",{width:`${Bt.boundPixel(n.width,!0)}`,height:`${Bt.boundPixel(n.height,!0)}`,viewBox:`0 0 ${Bt.boundPixel(n.width,!0)} ${Bt.boundPixel(n.height,!0)}`,style:{position:"absolute",left:`${Bt.boundPixel(n.x)}px`,top:`${Bt.boundPixel(n.y)}px`,width:`${Bt.boundPixel(n.width,!0)}px`,height:`${Bt.boundPixel(n.height,!0)}px`,pointerEvents:"none",transitionTimingFunction:"linear",transitionDelay:"0",transitionProperty:"left, top, width, height",willChange:"left, top, width, height, stroke-dashoffset",...r},...i,children:a.jsx("path",{d:`M ${Bt.boundPixel(t[0])} ${Bt.boundPixel(t[1])} L ${Bt.boundPixel(t[2])} ${Bt.boundPixel(t[3])}`,fill:"none",vectorEffect:"non-scaling-stroke",stroke:"black",...o})})},vS=e=>{const{x:t=0,y:n=0,width:o=0,height:r=0,fill:i,stroke:l,strokeWidth:d=0,strokeDasharray:c,strokeDashoffset:u,clipPath:f,pathBounds:p,pathProps:h,style:m,...g}=e,x=n,y=t,v=o,b=r;let C=null;if(i){let k=G1({top:0,left:0,bottom:b,right:v});p&&(k=k+" "+G1({top:p.y-x,left:p.x-y,bottom:p.height+p.y-x,right:p.width+p.x-y})),C=[a.jsx("path",{d:k,fill:i,stroke:"none",fillRule:"evenodd"},"fill")]}return a.jsxs("svg",{width:`${Bt.boundPixel(o,!0)}`,height:`${Bt.boundPixel(r,!0)}`,viewBox:`0 0 ${Bt.boundPixel(o,!0)} ${Bt.boundPixel(r,!0)}`,preserveAspectRatio:"none",style:{position:"absolute",left:`${Bt.boundPixel(t)}px`,top:`${Bt.boundPixel(n)}px`,pointerEvents:"none",transitionDuration:"0ms",transitionTimingFunction:"linear",transitionDelay:"0",transitionProperty:"left, top, width, height",willChange:"left, top, width, height, stroke-dashoffset",boxShadow:"rgb(60 64 67 / 5%) 0px 1px 4px 2px, rgb(255 255 255 / 15%) 0px 0px 2px 1px",overflow:"visible",...m},...g,children:[C,a.jsx("path",{d:G1({top:0,left:0,right:v,bottom:b}),fill:"none",strokeDasharray:c,strokeDashoffset:u,stroke:l,vectorEffect:"non-scaling-stroke",strokeWidth:d,...h})]})},cp=e=>{const{key:t,...n}=e;return a.jsx(Zs,{...n},t)},Zs=s.memo(e=>{const{stroke:t,fill:n,x:o=0,y:r=0,width:i=0,height:l=0,style:d,isAnimatedStroke:c,animatedStrokeProps:u,range:f,cell:p,...h}=e,m=c||!!u,g={name:"walking-offset",dashGap:2,speed:50,dashLength:8,...u};let x=g.dashGap+g.dashLength;const y=g.speed*x,v=sS().replaceAll(":",""),b=`${g.name}-${v}`;let C;return s.useEffect(()=>{if(!m)return;const k=`@keyframes ${b} {
52
- to {
53
- stroke-dashoffset: 0px;
54
- }
55
- }`,_=document.createElement("style");return _.appendChild(document.createTextNode(k)),document.head.appendChild(_),_.sheet.insertRule(k,0),()=>{document.head.removeChild(_)}},[m]),m&&(C={strokeDasharray:`${g.dashLength}px ${g.dashGap}px`,strokeDashoffset:`${x}px`,animation:`${b} ${y}ms linear infinite`,willChange:"stroke-dashoffset"}),a.jsx(vS,{x:o,y:r,width:i,height:l,stroke:t,fill:n,shapeRendering:"crispEdges",style:{...C,...d},...h})});function dp(e){var t,n,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var r=e.length;for(t=0;t<r;t++)e[t]&&(n=dp(e[t]))&&(o&&(o+=" "),o+=n)}else for(n in e)e[n]&&(o&&(o+=" "),o+=n);return o}function k0(){for(var e,t,n=0,o="",r=arguments.length;n<r;n++)(e=arguments[n])&&(t=dp(e))&&(o&&(o+=" "),o+=t);return o}Zs.displayName="Selection";const up=s.memo(s.forwardRef((e,t)=>{const{x:n=0,y:o=0,borderWidth:r=1,size:i=6,borderStroke:l,corner:d,style:c,className:u,background:f,...p}=e;if(n===0||o===0)return null;let h=!0,m=!0,g=!0,x=!0;switch(d){case"tl":h=!1,m=!1;break;case"bl":h=!1,x=!1;break;case"br":g=!1,x=!1;break;case"tr":m=!1,g=!1}return a.jsx("div",{className:k0("fill-handle",u),style:{position:"absolute",left:n-(i+(h?r:0))/2,top:o-(i+(m?r:0))/2,width:i,height:i,borderLeft:h?`${r}px ${l}`:void 0,borderTop:m?`${r}px ${l}`:void 0,borderRight:g?`${r}px ${l}`:void 0,borderBottom:x?`${r}px ${l}`:void 0,background:f,cursor:"crosshair",pointerEvents:"all",transitionDuration:"0ms",transitionTimingFunction:"linear",transitionDelay:"0",transitionProperty:"left, top",willChange:"left, top",...c},tabIndex:-1,...p})}));up.displayName="FillHandle";var wS=function(){},hp=typeof window<"u",SS=hp?s.useLayoutEffect:s.useEffect,P6={x:0,y:0,width:0,height:0,top:0,left:0,bottom:0,right:0};const pp=hp&&window.ResizeObserver!==void 0?function(){var e=s.useState(null),t=e[0],n=e[1],o=s.useState(P6),r=o[0],i=o[1],l=s.useMemo(function(){return new window.ResizeObserver(function(d){if(d[0]){var c=d[0].contentRect,u=c.x,f=c.y,p=c.width,h=c.height,m=c.top,g=c.left,x=c.bottom,y=c.right;i({x:u,y:f,width:p,height:h,top:m,left:g,bottom:x,right:y})}})},[]);return SS(function(){if(t)return l.observe(t),function(){l.disconnect()}},[t]),[n,r]}:function(){return[wS,P6]};function K1(e,t){if(typeof e=="function")return e(t);e&&(e.current=t)}var CS=parseInt(s.version.split(".")[0],10)>=19?function(e){return t=>{const n=[];for(const o of e){const r=K1(o,t),i=typeof r=="function";n.push(i?r:()=>K1(o,null))}return()=>{for(const o of n)o()}}}:function(e){return t=>{for(const n of e)K1(n,t)}};const cd=s.memo(s.forwardRef((e,t)=>{const{range:n,view:o,anchor:r,borderStroke:i="rgb(33, 115, 70)",background:l="white",borderWidth:d=1.5,size:c=22,style:u,className:f,selectionTouchPointerHandler:p,onTouchSelectStart:h,onTouchSelectEnd:m,currentTouchAnchor:g,scrollableElement:x,scrollableRoot:y=document.body,...v}=e,b=nt(h,[h]),C=nt(m,[m]),{bounds:k,coordsPivot:_,key:I}=s.useMemo(()=>{if(!n||!o)return null;let A=null,L=null;switch(r){case"tl":A={colIndex:n.colEnd,rowIndex:n.rowEnd},L={colIndex:n.colStart,rowIndex:n.rowStart};break;case"br":A={colIndex:n.colStart,rowIndex:n.rowStart},L={colIndex:n.colEnd,rowIndex:n.rowEnd};break;case"t":case"l":A={colIndex:n.colEnd,rowIndex:n.rowEnd};break;case"b":A={colIndex:n.colStart,rowIndex:n.rowStart};break;case"r":A={colIndex:n.colStart,rowIndex:n.rowEnd}}let P=o.getRangeCoordsBounds(L?{rowStart:L.rowIndex,colStart:L.colIndex,rowEnd:L.rowIndex,colEnd:L.colIndex}:n);const z=o.getBounds(),U=o.getViewportSize(),O=z.x,q=z.y,X=U.width,re=U.height;switch(r){case"tl":break;case"br":P.x=P.x+P.width,P.y=P.y+P.height;break;case"t":P.x=X/2-O;break;case"b":P.x=X/2-O,P.y=P.y+P.height;break;case"l":P.y=re/2-q;break;case"r":P.x=P.x+P.width,P.y=re/2-q}const $=o.toClipBounds(P,0);return!$||$.width<=0||$.height<=0||P.x<0||P.y<0||P.x>X||P.y>re?{bounds:null,coordsAnchor:null,coordsPivot:null,key:null}:{bounds:P,coordsAnchor:null,coordsPivot:A,key:"touchSelect-"+o.getAnchor()+"-"+r}},[n,o,r]),M=s.useRef(null),F=ii(s.useMemo(()=>{const A=L=>r==="t"||r==="b"?{...L,colIndex:void 0}:r==="l"||r==="r"?{...L,rowIndex:void 0}:L;return{processTouch:!0,consumeTouch:!0,onPointerDown:(L,P)=>{const z=A(o.getCellCoordsFromClient(L.clientX,L.clientY));return M.current={coordsPivot:_},b?.(r),p.onSelectionPointerDown(L,P,o,z,_,!1,!0)},onPointerMoveOrWait:(L,P,z)=>{const U=A(o.getCellCoordsFromClient(L.clientX,L.clientY));return p.onSelectionPointerMoveOrWait(L,P,z,o,U,M.current?.coordsPivot,!0,!0)},onPointerUp:(L,P,z)=>(M.current=null,C?.(r),p.onPointerUp(L,P,z))}},[p,n,o,r])),[j,{y:T,x:w}]=pp(),S=s.useRef(null),{getPortalContainer:D}=ip(),[E,R]=s.useState(null);return s.useEffect(()=>{const A=S.current?.getBoundingClientRect();if(!A||!k)return void R(null);let L=0,P=0,z=x;for(;z;)L+=z.scrollLeft,P+=z.scrollTop,z=y&&z===y.parentElement?null:z.parentElement;R(eo.createPortal(a.jsx("div",{className:k0("touch-select-handle",f),ref:t,style:{position:"absolute",left:L+(A?.x??0)-(c+d)/2,top:P+(A?.y??0)-(c+d)/2,width:c,height:c,borderWidth:`${d}px`,border:i,borderRadius:"50%",background:l,boxShadow:`0 0 0 1.5px ${l}`,cursor:"grab",pointerEvents:"all",opacity:g?0:1,transitionDuration:"160ms",transitionProperty:"opacity",...u},tabIndex:-1,onPointerDown:F,...v}),y??D(),I))},[T,w,k?.x,k?.y,k?.width,k?.height,f,g,l,c,d,i,x]),k?a.jsxs(a.Fragment,{children:[a.jsx("div",{ref:CS([j,S]),style:{position:"absolute",left:k.x,top:k.y,opacity:0}}),E]}):null}));cd.displayName="TouchSelectHandle";const Co=-10,kS=Object.freeze({rowStart:0,colStart:0,rowEnd:0,colEnd:0}),fp=Object.freeze({colIndex:0,rowIndex:0}),dd=Object.freeze([]),Fo=e=>{if(e&&e.cell&&e.ranges&&e.rangeIndex>-1&&e.rangeIndex<=e.ranges.length)return e;const t={cell:null,ranges:e?.ranges??dd};return t.rangeIndex=e?.rangeIndex??t.ranges.length-1,t.cell=e?.cell,!t.cell&&t.ranges.length>0&&(t.cell={rowIndex:t.ranges[t.rangeIndex].rowStart,colIndex:t.ranges[t.rangeIndex].colStart}),t.cell||(t.cell=fp),_t.isEqualSelectionCoords(t,e)?e:t},va=(e,t,n)=>{const o=e.getVisibleRangeCoords(),r=e.getScrollOrientation();!r.horizontal&&(t.colIndex>o.colEnd||t.colIndex<o.colStart)&&(t={...t,colIndex:t.colIndex>o.colEnd?o.colEnd+1:o.colEnd-1},e=n.current.getViewFromLocation(zo)),!r.vertical&&(t.rowIndex>o.rowEnd||t.rowIndex<o.rowStart)&&(t={...t,rowIndex:t.rowIndex>o.rowEnd?o.rowEnd+1:o.rowEnd-1},e=n.current.getViewFromLocation(zo)),e.scrollCellCoordsIntoView(t)},ES=()=>!1,mp=({gridRef:e,commands:t,layout:n,selection:o,onSelectionChange:r,onSelectionDragStart:i,onSelectionDragEnd:l,selectionPolicy:d="multiple",newSelectionMode:c="clear",allowDeselectSelection:u=!0,onFillPreview:f,onFillCancel:p,onFillDone:h,onFill:m,disableFillDrag:g=!m,fillHandleBorderColor:x="white",hiddenRowsAt:y,hiddenColumnsAt:v,isContentfulCell:b,contentfulCellFinder:C=yS,getDataCoords:k,alwaysScrollToActiveCoords:_=!1,selectionBounds:I,pointerDownInterceptor:M,pointerMoveInterceptor:F,mergedRanges:j,canSelectionSpanMergedCells:T=ES,onMoveDragStart:w,onMoveDragUpdate:S,onMoveDragEnd:D,onMoveDragDone:E,selectionRenderer:R=cp,disableMoveDrag:A=!D,getCellCoordsAsRangeCoords:L=_t.cellToRange,moveDragHitSize:P=6,moveDragOutlineSize:z=4,selectionBackgroundColor:U="rgba(16, 124, 65, 0.1)",selectionBorderColor:O="rgb(33, 115, 70)",selectionRemoveBorderColor:q="rgb(255, 0, 0)",selectionRemoveBackgroundColor:X="rgba(250, 10, 10, 0.1)",disableTouchSelection:re=!1,touchSelectHandleProps:$})=>{const W=s.useCallback(()=>({top:I?.top??0,left:I?.left??0,bottom:e.current?.rowCount-1||0,right:e.current?.columnCount-1||0}),[]),B=nt(m,[m]),Z=nt(f,[f]),G=nt(p,[p]),ie=nt(h,[h]),ee=nt(b,[b]),le=nt(R,[R]),ue=nt((K,xe=!1)=>ks(K,xe,n.getRowOffset,xe?W().bottom:W().top),[n?.getRowOffset]),de=nt(y??ue,[y]),oe=nt((K,xe=!1)=>ks(K,xe,n.getColOffset,xe?W().right:W().left),[n?.getColOffset]),fe=nt(v??oe,[v]),[Te,Le]=s.useState(()=>Fo(o)),ce=s.useMemo(()=>Fo(Te),[Te]),he=s.useRef(ce),we=s.useRef(!0);s.useLayoutEffect(oo.throttle(()=>{Le(K=>{we.current=!0;const xe=Fo(o);return _t.isEqualSelectionCoords(xe,K)?K:xe})},0),[o]),s.useLayoutEffect(()=>{he.current=ce},[ce]),s.useEffect(()=>{we.current||!r||_t.isEqualSelectionCoords(o,ce)||r(ce)},[ce]);const Y=s.useCallback(K=>{Le(xe=>{we.current=!1,xe=Fo(xe);let Ce=typeof K=="function"?K(xe.ranges):K??dd;if(_t.isEqualRangesArrays(Ce,xe.ranges))return xe;let ye=Math.max(Ce.length?0:-1,Math.min(xe.rangeIndex,Ce.length-1)),Ae=xe.cell;ye===-1||_t.isCellWithinRange(Ae,Ce[ye])||(Ae={rowIndex:Ce[ye].rowStart,colIndex:Ce[ye].colStart}),Ce.length===1&&_t.isSingleCell(Ce[0])&&_t.isCellWithinRange(Ae,Ce[0])&&(Ce=[],ye=-1);const et={cell:Ae,ranges:Ce,rangeIndex:ye};return _t.isEqualSelectionCoords(et,xe)?xe:et})},[]),ze=nt(K=>{Le(xe=>{we.current=!1,xe=Fo(xe);const Ce=K??fp,ye=L(Ce);if(!_t.isSingleCell(ye)&&xe.ranges.length===0)return{ranges:[ye],rangeIndex:0,cell:Ce};if(_t.isEqualCells(Ce,xe.cell))return xe;let Ae=xe.ranges,et=xe.rangeIndex;xe.ranges.length===1&&(_t.isSingleCell(xe.ranges[0])&&_t.isCellWithinRange(Ce,xe.ranges[0])||!_t.isCellWithinRange(Ce,xe.ranges[0]))&&(Ae=[],et=-1);const Ve={ranges:Ae,rangeIndex:et,cell:Ce};return _t.isEqualSelectionCoords(Ve,xe)?xe:Ve})},[L]),[ht,ut]=s.useState(null),[ke,ot]=s.useState(null),dt=s.useRef(null),[Fe,Je]=s.useState(null),Ge=s.useRef(null),se=s.useRef(null),[We,be]=s.useState(null),Se=s.useRef(null),H=s.useRef(null),te=s.useRef(j);s.useEffect(()=>{te.current=j},[j]);const ne=nt((K,xe={inline:"nearest",block:"nearest"})=>{let{rowIndex:Ce,colIndex:ye}=K;Ce===void 0&&ce?.cell&&(Ce=ce.cell.rowIndex),ye===void 0&&ce?.cell&&(ye=ce.cell.colIndex),Ce!==void 0&&ye!==void 0&&e.current?.scrollCellCoordsIntoView({rowIndex:Ce,colIndex:ye},xe)},[ce]),J=s.useCallback(K=>{const xe=W();return K.rowIndex<xe.top||K.colIndex<xe.left||K.colIndex>xe.right||K.rowIndex>xe.bottom},[]),ae=nt((K,xe)=>{if(!e?.current)return null;const Ce={rowStart:Math.min(K.rowIndex,xe.rowIndex),colStart:Math.min(K.colIndex,xe.colIndex),rowEnd:Math.max(K.rowIndex,xe.rowIndex),colEnd:Math.max(K.colIndex,xe.colIndex)};if(T?.(Ce))return Ce;const ye=L(K),Ae=L(xe),et={rowStart:Math.min(ye.rowStart,Ae.rowStart),colStart:Math.min(ye.colStart,Ae.colStart),rowEnd:Math.max(ye.rowEnd,Ae.rowEnd),colEnd:Math.max(ye.colEnd,Ae.colEnd)};let Ve;return typeof te.current=="function"?Ve=te.current(et):j&&(Ve=j),Ve?_t.extendRangeToUnionRanges(et,Ve):et},[T,L]),Q=nt((K,xe,Ce)=>{const ye=K.ranges.length>0?K.ranges[K.rangeIndex]:{rowStart:K.cell.rowIndex,colStart:K.cell.colIndex,rowEnd:K.cell.rowIndex,colEnd:K.cell.colIndex},Ae={rowStart:Math.min(xe.rowIndex??ye.rowStart,Ce.rowIndex??ye.rowStart),colStart:Math.min(xe.colIndex??ye.colStart,Ce.colIndex??ye.colStart),rowEnd:Math.max(xe.rowIndex??ye.rowEnd,Ce.rowIndex??ye.rowEnd),colEnd:Math.max(xe.colIndex??ye.colEnd,Ce.colIndex??ye.colEnd)},et={rowIndex:Ae.rowStart,colIndex:Ae.colStart},Ve={rowIndex:Ae.rowEnd,colIndex:Ae.colEnd};if(!J(et)&&!J(Ve))return ae(et,Ve)},[ae]),pe=nt((K,xe,Ce)=>{if(d==="single"||!he.current)return;const ye=Q(he.current,K,xe??he.current.cell);if(!ye)return;const Ae=he.current.rangeIndex;Y(et=>et.length?et.map((Ve,Pt)=>Ae===Pt?ye:Ve):[ye]),Ce&&ye&&ze({colIndex:ye.colStart,rowIndex:ye.rowStart})},[]),ge=s.useCallback((K,xe,Ce)=>{if(!he.current)return;K={...he.current?.cell,...K},xe=xe??K;const ye=Q(he.current,K,xe);if(!ye)return;const Ae={rowIndex:ye.rowStart,colIndex:ye.colStart},et={...Ae,...Ce};c==="clear"?(Se.current=et,Be()):c==="modify"?pe(Ae):Ee(Ae),ze(et)},[]),Ee=s.useCallback((K,xe=K,Ce)=>{d!=="multiple"||!K||J(K)||J(xe)||Le(ye=>{we.current=!1,ye=Fo(ye);const Ae=ae(K,xe);if(!Ae)return ye;let et=ye.ranges.length>0?[...ye.ranges]:[ae(ye.cell,ye.cell)];et.push(Ae);const Ve={ranges:et,cell:{rowIndex:Ae.rowStart,colIndex:Ae.colStart,...Ce},rangeIndex:et.length-1};return _t.isEqualSelectionCoords(Ve,ye)?ye:Ve})},[]),Be=()=>{Y(dd)},Oe=Bt.detectIt().primaryInput==="touch",Ie=s.useRef(null),Ze=s.useRef(null),Ne=s.useRef(null),qe=s.useMemo(()=>({onPointerDown:K=>{if(!e||!e.current)return!1;const xe=K.nativeEvent,Ce=e.current.getViewFromClient(xe.clientX,xe.clientY);if(xe.pointerType==="touch"||xe.type==="touchstart")return Ze.current={topLeft:Ce.getScrollTopLeft(),point:{x:xe.clientX,y:xe.clientY}},!0;const ye=Ce.getCellCoordsFromClient(K.nativeEvent.clientX,K.nativeEvent.clientY);if(!ye)return!1;Ie.current={anchor:Ce.getAnchor(),coords:ye},H.current=null;const Ae=K.nativeEvent.which===3;if(Ae&&_t.indexOfCoords(ye,ce.ranges)!==-1)return!1;const et=K.nativeEvent.shiftKey,Ve=K.nativeEvent.ctrlKey||K.nativeEvent.metaKey,Pt=Ve,Tt=u,Mt=ce.ranges.length>0,Ft=Ve&&Tt;if(M?.(K,ye,ce)===!1)return!1;i?.(he.current,K.nativeEvent);const tn=!Ae&&d!=="single";if(et)return pe(ye),tn;const Rt=_t.isEqualCells(ye,ce.cell);if(Pt){if(Rt&&(!Ft||!Mt))return tn;if(Ve&&_t.indexOfCoords(ye,ce.ranges)!==-1&&Tt){Ge.current=ye;const It=ae(ye,ye);return se.current=It,Je(It),tn}return Ee(ye),tn}_&&ne(ye),Rt&&ce.ranges.length===0||ge(ye)},onPointerMoveOrWait:oo.throttle((K,xe)=>{if(!e?.current||K.pointerType==="touch"||K.type==="touchmove"||!Ie.current)return;const Ce=Ie.current.anchor;let ye=e.current.getViewFromLocation(Ce),Ae=ye.getCellCoordsFromClient(K.clientX,K.clientY);if(!_t.isEqualCells(Ae,Ie.current?.coords)&&(Ie.current={anchor:Ce,coords:Ae},Ae&&F?.(K,Ae,he.current)!==!1)){if(Ge.current){const et={rowStart:Math.min(Ae.rowIndex,Ge.current.rowIndex),colStart:Math.min(Ae.colIndex,Ge.current.colIndex),rowEnd:Math.max(Ae.rowIndex,Ge.current.rowIndex),colEnd:Math.max(Ae.colIndex,Ge.current.colIndex)},Ve={rowIndex:et.rowStart,colIndex:et.colStart},Pt={rowIndex:et.rowEnd,colIndex:et.colEnd};if(J(Ve)||J(Pt))return;const Tt=ae(Ve,Pt);se.current=Tt,Je(Tt)}else pe(Ae);Ne.current=xe,va(ye,Ae,e)}},60),onPointerUp:K=>{if(Ie.current=null,K.pointerType==="touch"||K.type==="touchend"){if(Ze.current){const Ce=e.current.getViewFromClient(Ze.current.point.x,Ze.current.point.y),ye=Ce.getScrollTopLeft();if(ye.left===Ze.current.topLeft.left&&ye.top===Ze.current.topLeft.top){const Ae=Ce.getCellCoordsFromClient(Ze.current.point.x,Ze.current.point.y);ge(Ae)}}return Ze.current=null,void(Ie.current=null)}try{l?.(he.current,K)}catch(Ce){console.warn(Ce)}if(!Ge.current)return;const xe=se.current;Ge.current=null,se.current=null,Je(null),Le(Ce=>{if(we.current=!1,(Ce=Fo(Ce)).ranges.length===0)return Ce;let ye=[],Ae=-1,et=Ce.cell;for(let Pt=0;Pt<Ce.ranges.length;Pt++){const Tt=Ce.ranges[Pt];if(_t.isRangesIntersect(Tt,xe)){const Mt=oo.subtractRect({top:Tt.rowStart,left:Tt.colStart,bottom:Tt.rowEnd+1,right:Tt.colEnd+1},{top:xe.rowStart,left:xe.colStart,bottom:xe.rowEnd+1,right:xe.colEnd+1});for(let Ft=0;Ft<Mt.length;Ft++){const tn={rowStart:Mt[Ft].top,colStart:Mt[Ft].left,rowEnd:Mt[Ft].bottom-1,colEnd:Mt[Ft].right-1};ye.push(tn),_t.isCellWithinRange(Ce.cell,tn)&&(Ae=ye.length-1)}}else ye.push(Tt);ye.length>0&&Ae===-1&&_t.isCellWithinRange(Ce.cell,Tt)&&(Ae=ye.length-1,et={rowIndex:ye[ye.length-1].rowStart,colIndex:ye[ye.length-1].colStart})}const Ve={cell:et,rangeIndex:Ae,ranges:ye};return _t.isEqualSelectionCoords(Ve,Ce)?Ce:Ve})},processTouch:!0,consumeTouch:!1}),[ce,d,u,_,c]),lt=nt(ii(qe),[]),wt=s.useMemo(()=>({onSelectionPointerDown:(K,xe,Ce,ye,Ae=ce.cell,et=_,Ve=K.nativeEvent.shiftKey,Pt=!1)=>{if(!e||!e.current)return!1;K.stopPropagation(),K.preventDefault(),K.nativeEvent.stopImmediatePropagation();const Tt=Ce??e.current.getViewFromClient(K.nativeEvent.clientX,K.nativeEvent.clientY),Mt=ye??Tt.getCellCoordsFromClient(K.nativeEvent.clientX,K.nativeEvent.clientY);if(!Mt)return!1;Ie.current={anchor:Tt.getAnchor(),coords:Mt},H.current=null;const Ft=K.nativeEvent.which===3;if(Ft&&_t.indexOfCoords(Mt,ce.ranges)!==-1)return!1;const tn=K.nativeEvent.ctrlKey||K.nativeEvent.metaKey,Rt=tn,It=u,_n=ce.ranges.length>0,rt=tn&&It;if(M?.(K,Mt,ce)===!1)return!1;i?.(he.current,K.nativeEvent);const qt=!Ft&&d!=="single";if(Ve)return pe(Mt,Ae,Pt),qt;const Nn=_t.isEqualCells(Mt,Ae);if(Rt){if(Nn&&(!rt||!_n))return qt;if(rt&&_t.indexOfCoords(Mt,ce.ranges)!==-1&&It){Ge.current=Mt;const Xt=ae(Mt,Mt);return se.current=Xt,Je(Xt),qt}return Ee(Mt),qt}et&&ne(Mt),Nn&&ce.ranges.length===0||ge(Mt)},onSelectionPointerMoveOrWait:(K,xe,Ce,ye,Ae,et=ce.cell,Ve=!0,Pt=!1)=>{if(!e?.current||(K.stopPropagation(),K.preventDefault(),K.stopImmediatePropagation(),!Ie.current))return;const Tt=Ie.current.anchor;let Mt=ye??e.current.getViewFromLocation(Tt),Ft=Ae??Mt.getCellCoordsFromClient(K.clientX,K.clientY);if(!_t.isEqualCells(Ft,Ie.current?.coords)&&(Ie.current={anchor:Tt,coords:Ft},Ft&&F?.(K,Ft,he.current)!==!1)){if(Ge.current){const tn={rowStart:Math.min(Ft.rowIndex,Ge.current.rowIndex),colStart:Math.min(Ft.colIndex,Ge.current.colIndex),rowEnd:Math.max(Ft.rowIndex,Ge.current.rowIndex),colEnd:Math.max(Ft.colIndex,Ge.current.colIndex)},Rt={rowIndex:tn.rowStart,colIndex:tn.colStart},It={rowIndex:tn.rowEnd,colIndex:tn.colEnd};if(J(Rt)||J(It))return;const _n=ae(Rt,It);se.current=_n,Je(_n)}else pe(Ft,et,Pt);Ve&&va(Mt,Ft,e)}},onPointerUp:K=>{Ie.current=null,K.stopPropagation(),K.preventDefault(),K.stopImmediatePropagation();try{l?.(he.current,K)}catch(Ce){console.warn(Ce)}if(!Ge.current)return;const xe=se.current;Ge.current=null,se.current=null,Je(null),Le(Ce=>{if(we.current=!1,(Ce=Fo(Ce)).ranges.length===0)return Ce;let ye=[],Ae=-1,et=Ce.cell;for(let Pt=0;Pt<Ce.ranges.length;Pt++){const Tt=Ce.ranges[Pt];if(_t.isRangesIntersect(Tt,xe)){const Mt=oo.subtractRect({top:Tt.rowStart,left:Tt.colStart,bottom:Tt.rowEnd+1,right:Tt.colEnd+1},{top:xe.rowStart,left:xe.colStart,bottom:xe.rowEnd+1,right:xe.colEnd+1});for(let Ft=0;Ft<Mt.length;Ft++){const tn={rowStart:Mt[Ft].top,colStart:Mt[Ft].left,rowEnd:Mt[Ft].bottom-1,colEnd:Mt[Ft].right-1};ye.push(tn),_t.isCellWithinRange(Ce.cell,tn)&&(Ae=ye.length-1)}}else ye.push(Tt);ye.length>0&&Ae===-1&&_t.isCellWithinRange(Ce.cell,Tt)&&(Ae=ye.length-1,et={rowIndex:ye[ye.length-1].rowStart,colIndex:ye[ye.length-1].colStart})}const Ve={cell:et,rangeIndex:Ae,ranges:ye};return _t.isEqualSelectionCoords(Ve,Ce)?Ce:Ve})}}),[ce,d,u,_,c]),Xe=nt((K,xe=!1,Ce=!1,ye=0)=>{if(!e.current||!ce.cell)return;let Ae=ce.cell,et=ce.cell;if(xe&&ce.ranges.length>0){const rt=ce.ranges[ce.rangeIndex],qt=ce.cell;switch(K){case Sn:et={rowIndex:qt.rowIndex===rt.rowStart?rt.rowEnd:rt.rowStart,colIndex:rt.colEnd},Ae={rowIndex:qt.rowIndex===rt.rowStart?rt.rowStart:rt.rowEnd,colIndex:rt.colStart};break;case Cn:et={rowIndex:qt.rowIndex===rt.rowEnd?rt.rowStart:rt.rowEnd,colIndex:rt.colEnd},Ae={rowIndex:qt.rowIndex===rt.rowEnd?rt.rowEnd:rt.rowStart,colIndex:rt.colStart};break;case wn:et={rowIndex:rt.rowEnd,colIndex:qt.colIndex===rt.colStart?rt.colEnd:rt.colStart},Ae={rowIndex:rt.rowStart,colIndex:qt.colIndex===rt.colStart?rt.colStart:rt.colEnd};break;case gn:et={rowIndex:rt.rowEnd,colIndex:qt.colIndex===rt.colEnd?rt.colStart:rt.colEnd},Ae={rowIndex:rt.rowStart,colIndex:qt.colIndex===rt.colEnd?rt.colEnd:rt.colStart}}}const Ve=L(et);let{rowStart:Pt,colStart:Tt}=Ve;const Mt=W();if(H.current)switch(K){case Sn:case Cn:H.current.colIndex>=Ve.colStart&&H.current.colIndex<=Ve.colEnd&&(Tt=H.current.colIndex);break;case wn:case gn:H.current.rowIndex>=Ve.rowStart&&H.current.rowIndex<=Ve.rowEnd&&(Pt=H.current.rowIndex)}if(!ye){switch(K){case Sn:Pt=xn(de,Math.max(Ve.rowStart-1,Mt.top),K);break;case Cn:Pt=xn(de,Math.min(Ve.rowEnd+1,Mt.bottom),K);break;case wn:Tt=xn(fe,Math.max(Ve.colStart-1,Mt.left),K);break;case gn:Tt=xn(fe,Math.min(Ve.colEnd+1,Mt.right),K)}if(Ce)switch(K){case Sn:Pt=C({...et,colIndex:ce.cell.colIndex},ee,de,K,!1,Math.max(Mt.top,de(Mt.top,!1)));break;case Cn:Pt=C({...et,colIndex:ce.cell.colIndex},ee,de,K,!1,Math.min(Mt.bottom,Mt.bottom-de(Mt.bottom,!0)));break;case wn:Tt=C({...et,rowIndex:ce.cell.rowIndex},ee,fe,K,!1,Math.max(Mt.left,fe(Mt.left,!1)));break;case gn:Tt=C({...et,rowIndex:ce.cell.rowIndex},ee,fe,K,!1,Math.min(Mt.right,Mt.right-fe(Mt.right,!0)))}}let Ft=null;if(ye){let rt=0;switch(K){case Sn:rt=n.getRowOffset(Pt+1),Pt=Math.max(Mt.top,n.getRowIndex(rt-ye)),Ft={top:n.getRowOffset(Pt+1)-(rt-e.current.getScrollPosition().top)};break;case Cn:rt=n.getRowOffset(Pt),Pt=Math.min(Mt.bottom,n.getRowIndex(rt+ye)),Ft={top:n.getRowOffset(Pt)-(rt-e.current.getScrollPosition().top)};break;case wn:rt=n.getColOffset(Tt+1),Tt=Math.max(Mt.left,n.getColIndex(rt-ye)),Ft={left:n.getColOffset(Tt+1)-(rt-e.current.getScrollPosition().left)};break;case gn:rt=n.getColOffset(Tt),Tt=Math.min(Mt.right,n.getColIndex(rt+ye)),Ft={left:n.getColOffset(Tt)-(rt-e.current.getScrollPosition().left)}}}const tn={rowIndex:Pt,colIndex:Tt},Rt=L(tn),It={rowIndex:Rt.rowStart,colIndex:Rt.colStart};xe||(H.current=tn);const _n=_t.isEqualCells(Se.current,It)&&_t.isEqualCells(Se.current,Ae);if(xe&&!_n?pe(It,Ae):ge(It),Ft)e.current.scrollTo(Ft);else{if(xe&&Se.current){const rt=W();if(K===gn&&Se.current.colIndex===rt.left||K===wn&&Se.current.colIndex===rt.right||K===Sn&&Se.current.rowIndex===rt.bottom||K===Cn&&Se.current.rowIndex===rt.top)return}K===wn||K===gn?ne({colIndex:tn.colIndex}):K!==Sn&&K!==Cn||ne({rowIndex:tn.rowIndex})}},[ce,L]),St=nt(K=>{if(!e.current)return;if(ce.ranges.length===0)return void Xe(K);const xe=L(ce.cell);if(_t.isEqualRangesArrays([xe],ce.ranges))return void Xe(K);const Ce=sd(ce,K,L,de,fe);Le(ye=>{we.current=!1,ye=Fo(ye);const Ae={...ye,cell:Ce.cell,rangeIndex:Ce.rangeIndex};return _t.isEqualSelectionCoords(Ae,ye)?ye:Ae}),Ce.cell&&ne(Ce.cell)},[ce,L]),Ct=s.useCallback(()=>{const K=W();pe({rowIndex:K.top},{rowIndex:K.bottom})},[]),it=s.useCallback(()=>{const K=W();pe({colIndex:K.left},{colIndex:K.right})},[]),Ot=nt(()=>{ce.cell&&e?.current&&ne(ce.cell)},[ce.cell]),sn=s.useCallback((K=!1)=>{const xe={rowIndex:W().top};K?pe(xe):ge(xe),ne(xe)},[]),yn=s.useCallback((K=!1)=>{const xe={rowIndex:W().bottom};K?pe(xe):ge(xe),ne(xe)},[]),In=s.useCallback((K=!1)=>{const xe={colIndex:W().left};K?pe(xe):ge(xe),ne(xe)},[]),Ln=s.useCallback((K=!1)=>{const xe=W(),Ce={rowIndex:xe.top,colIndex:xe.left};K?pe(Ce):ge(Ce),ne(Ce)},[]),At=s.useCallback((K=!1)=>{const xe=W(),Ce={colIndex:k?.()?.colEnd??xe.right};K?pe(Ce):ge(Ce),ne(Ce)},[k]),jt=s.useCallback((K=!1)=>{const xe=W(),Ce={rowIndex:k?.()?.rowEnd??xe.bottom,colIndex:k?.()?.colEnd??xe.right};K?pe(Ce):ge(Ce),ne(Ce)},[k]),un=nt(K=>{if(!e.current||ce.ranges.length<=1)return;const xe=K===wn||K===Sn;let Ce=ce.rangeIndex+(xe?-1:1);Ce<0?Ce=ce.ranges.length-1:Ce>ce.ranges.length-1&&(Ce=0);const ye=ce.ranges[Ce],Ae=sd({cell:{rowIndex:ye.rowEnd,colIndex:ye.colEnd},rangeIndex:0,ranges:[ye]},gn,L,de,fe);Le(et=>{we.current=!1,et=Fo(et);const Ve={...et,cell:Ae.cell,rangeIndex:Ce};return _t.isEqualSelectionCoords(Ve,et)?et:Ve}),Ae.cell&&ne(Ae.cell)},[ce,L]),vn=nt(()=>{const K=I6(ce);Le(xe=>{we.current=!1,xe=Fo(xe);const Ce={...xe,visibleSelection:K};return _t.isEqualSelectionCoords(Ce,xe)?xe:Ce}),K.cell&&ne(K.cell)},[ce,L]),rn=nt(()=>{if(!e.current||ce.ranges.length===0)return;const K=ce.cell,xe=ce.ranges[ce.rangeIndex],Ce=I6({cell:K,rangeIndex:0,ranges:[xe]}),ye=Ce.ranges[Ce.rangeIndex];let Ae;Ae=ye.rowStart===K.rowIndex&&ye.colStart===K.colIndex?{rowIndex:ye.rowStart,colIndex:ye.colEnd}:ye.rowStart===K.rowIndex&&ye.colEnd===K.colIndex?{rowIndex:ye.rowEnd,colIndex:ye.colStart}:ye.rowEnd===K.rowIndex&&ye.colStart===K.colIndex?{rowIndex:ye.rowEnd,colIndex:ye.colEnd}:{rowIndex:ye.rowStart,colIndex:ye.colStart},Le(et=>{et=Fo(et);const Ve={...et,cell:Ae};return _t.isEqualSelectionCoords(Ve,et)?et:Ve}),Ae&&ne(Ae)},[ce,L]),ln=s.useCallback((K=!1)=>{Xe(Cn,K,!1,e.current.getDimensions().containerHeight)},[]),Jt=s.useCallback((K=!1)=>{Xe(Sn,K,!1,e.current.getDimensions().containerHeight)},[]),ro=s.useCallback((K=!1)=>{Xe(gn,K,!1,e.current.getDimensions().containerWidth)},[]),Io=s.useCallback((K=!1)=>{Xe(wn,K,!1,e.current.getDimensions().containerWidth)},[]),Go=s.useCallback(()=>{St(wn)},[]),wo=s.useCallback(()=>{St(gn)},[]),cr=s.useCallback(()=>{St(Sn)},[]),So=s.useCallback(()=>{St(Cn)},[]),Ko=s.useCallback(()=>{un(wn)},[]),yr=s.useCallback(()=>{un(gn)},[]),Xo=s.useCallback(()=>{rn()},[]),uo=s.useCallback(()=>{Xe(wn,!1,!1)},[]),Pe=s.useCallback(()=>{Xe(wn,!0,!1)},[]),Ke=s.useCallback(()=>{Xe(wn,!1,!0)},[]),Ye=s.useCallback(()=>{Xe(wn,!0,!0)},[]),Ue=s.useCallback(()=>{Xe(gn,!1,!1)},[]),Qe=s.useCallback(()=>{Xe(gn,!0,!1)},[]),mt=s.useCallback(()=>{Xe(gn,!1,!0)},[]),xt=s.useCallback(()=>{Xe(gn,!0,!0)},[]),gt=s.useCallback(()=>{Xe(Sn,!1,!1)},[]),kt=s.useCallback(()=>{Xe(Sn,!0,!1)},[]),bt=s.useCallback(()=>{Xe(Sn,!1,!0)},[]),Ut=s.useCallback(()=>{Xe(Sn,!0,!0)},[]),cn=s.useCallback(()=>{Xe(Cn,!1,!1)},[]),Gt=s.useCallback(()=>{Xe(Cn,!0,!1)},[]),_e=s.useCallback(()=>{Xe(Cn,!1,!0)},[]),ct=s.useCallback(()=>{Xe(Cn,!0,!0)},[]),yt=s.useCallback(()=>{Y(K=>K.slice(0,-1))},[]),Kt=s.useMemo(()=>{const K=W();return((xe,Ce,ye,Ae,et)=>{for(let Ve=0;Ve<xe.length;Ve++){const Pt=xe[Ve];if(Pt.rowStart===Ce&&Pt.colStart===ye&&Pt.rowEnd===Ae&&Pt.colEnd===et)return!0}return!1})(ce.ranges,K.top,K.left,K.bottom,K.right)},[I,ce.ranges]),Wt=s.useCallback((K,xe=!0)=>{Se.current=K,ze(K),xe&&K&&e?.current&&ne(K)},[]),ft=nt((K=!0)=>{const xe=dt.current;if(!he.current?.cell)return;const Ce=he.current?.ranges,ye=he.current?.cell;if(!ye||!xe||!xe)return;let Ae=null;if(Ae=Ce.length>0?Ce[Ce.length-1]:L(ye),Ae.colEnd>=Ae.colStart&&Ae.rowEnd>=Ae.rowStart){const et=D6(Ae,xe);let Ve=K?B:Z;try{Ve?.(Ae,xe,et.direction)}catch(Pt){console.warn(Pt)}finally{K&&ie?.()}}},[L]),Vt=s.useRef(null),ho=ii(s.useMemo(()=>({onPointerDown:(K,xe)=>{if(Ne.current=xe,!e||!e.current)return!1;const Ce=e.current.getViewFromClient(K.nativeEvent.clientX,K.nativeEvent.clientY),ye=Ce?.getCellCoordsFromClient(K.nativeEvent.clientX,K.nativeEvent.clientY);ye&&(K.stopPropagation(),ut("crosshair"),Vt.current={anchor:Ce.getAnchor(),coords:ye})},onPointerMoveOrWait:(K,xe)=>{if(g||!e?.current||!he.current||!Vt.current)return;const Ce=Vt.current.anchor;let ye=e.current.getViewFromLocation(Ce),Ae=ye.getCellCoordsFromClient(K.clientX,K.clientY);if(!Ae)return;Vt.current={anchor:Ce,coords:Ae};const et=he.current.ranges;let Ve=ae(he.current.cell,Ae);if(!Ve)return;const Pt=et.length>0,Tt=Pt?et[et.length-1]:L(he.current.cell);if(!Ve)return;const Mt=Ve.rowStart<Tt.rowStart?Sn:Ve.rowEnd>Tt.rowEnd?Cn:Ve.colEnd>Tt.colEnd?gn:wn,Ft=W();Mt===wn&&(Ve={...Tt,colStart:Math.max(Ft.left,Ve.colStart)}),Mt===Sn&&(Ve={...Tt,rowStart:Math.max(Ft.top,Ve.rowStart)}),Mt===gn&&(Ve={...Tt,colEnd:Math.min(Ft.right,Ve.colEnd)}),Mt===Cn&&(Ve={...Tt,rowEnd:Math.min(Ft.bottom,Ve.rowEnd)});const tn=D6(Tt,Ve);if(!T?.(Tt)){let Rt;typeof te.current=="function"?Rt=te.current(Tt):j&&(Rt=j),Ve=((It,_n,rt,qt,Nn,Xt)=>{const Qt={..._n};if(rt.length===0)return Qt;if(Nn===wn){const Vn=It.colEnd+1-It.colStart;Qt.colStart=It.colStart-Math.ceil(Xt/Vn)*Vn,Qt.colStart<qt.left&&(Qt.colStart=Qt.colStart+Math.ceil((qt.left-Qt.colStart)/Vn)*Vn)}else if(Nn===gn){const Vn=It.colEnd+1-It.colStart;Qt.colEnd=It.colEnd+Math.ceil(Xt/Vn)*Vn,Qt.colEnd>qt.right&&(Qt.colEnd=Qt.colEnd-Math.ceil((qt.right-Qt.colEnd)/Vn)*Vn)}else if(Nn===Sn){const Vn=It.rowEnd+1-It.rowStart;Qt.rowStart=It.rowStart-Math.ceil(Xt/Vn)*Vn,Qt.rowStart<qt.top&&(Qt.rowStart=Qt.rowStart+Math.ceil((qt.top-Qt.rowStart)/Vn)*Vn)}else if(Nn===Cn){const Vn=It.rowEnd+1-It.rowStart;Qt.rowEnd=It.rowEnd+Math.ceil(Xt/Vn)*Vn,Qt.rowEnd>qt.bottom&&(Qt.rowEnd=Qt.rowEnd-Math.ceil((qt.bottom-Qt.rowEnd)/Vn)*Vn)}return Qt})(Tt,Ve,Rt,Ft,tn.direction,tn.amount)}if(Pt&&_t.isRangeWithinRange(Ve,Tt)&&(Ve=null),!_t.isEqualRanges(Ve,dt.current)){if(ot(Ve),dt.current=Ve,!Ve){try{G?.()}catch{}return void ie?.()}ft(!1)}Ne.current=xe,va(ye,Ae,e)},onPointerUp:(K,xe)=>{Ne.current=xe,Promise.resolve(ft(!0)).finally(()=>{ie?.(),ot(null),dt.current=null,Vt.current=null,ut(null),e.current?.focus()})}}),[L])),xo=s.useMemo(()=>({onPointerDown:ho}),[ho]),[$t,fn]=s.useState(null),on=s.useRef(null),mn=s.useMemo(()=>({onPointerDown:(K,xe)=>{if(Ne.current=xe,!e||!e.current)return!1;const Ce=e.current.getViewFromClient(K.nativeEvent.clientX,K.nativeEvent.clientY),ye=Ce?.getCellCoordsFromClient(K.nativeEvent.clientX,K.nativeEvent.clientY);if(!ye)return;if(M?.(K,ye,ce)===!1)return!1;K.stopPropagation(),ut("default");const Ae=Ce.getRelativePointFromClient(0,0),et=he.current?.ranges[he.current?.ranges.length-1]??_t.cellToRange(he.current?.cell),Ve=Ce.toClipBounds(Ce.getRangeCoordsBounds(et)),Pt={x:0,y:0};Ve.x-Ae.x>K.nativeEvent.clientX?Pt.x=K.nativeEvent.clientX-(Ve.x-Ae.x):K.nativeEvent.clientX>=Ve.x-Ae.x+Ve.width&&(Pt.x=Math.max(0,K.nativeEvent.clientX-(Ve.x-Ae.x+Ve.width))+1),Ve.y-Ae.y>K.nativeEvent.clientY?Pt.y=K.nativeEvent.clientY-(Ve.y-Ae.y):K.nativeEvent.clientY>=Ve.y-Ae.y+Ve.height&&(Pt.y=Math.max(0,K.nativeEvent.clientY-(Ve.y-Ae.y+Ve.height))+1),w?.(et,K.nativeEvent,xe),on.current={range:et,anchor:Ce.getAnchor(),cell:ye,isMoving:!1,extrusion:Pt}},onPointerMoveOrWait:(K,xe,Ce)=>{if(A||!e?.current||!he.current||!on.current)return;const ye=K.clientX-Ce.clientX,Ae=K.clientY-Ce.clientY;if(on.current.isMoving=on.current.isMoving||Math.abs(ye)>Math.max(1,2)||Math.abs(Ae)>Math.max(1,2)||performance.now()-Ce.timeStamp>500,!on.current.isMoving)return;const et=on.current.anchor,Ve=on.current.extrusion;let Pt=e.current.getViewFromLocation(et),Tt=Pt.getCellCoordsFromClient(K.clientX-Ve.x,K.clientY-Ve.y,!0);if(!Tt)return;const Mt=on.current.cell,Ft=on.current.range,tn=W(),Rt=Ft.colEnd-Ft.colStart+1,It=Math.min(Math.max(0,Mt.colIndex-Ft.colStart),Rt-1),_n=Math.min(tn.right-Rt+1,Math.max(tn.left,Tt.colIndex-It)),rt=Ft.rowEnd-Ft.rowStart+1,qt=Math.min(Math.max(0,Mt.rowIndex-Ft.rowStart),rt-1),Nn=Math.min(tn.bottom-rt+1,Math.max(tn.top,Tt.rowIndex-qt)),Xt={colStart:_n,colEnd:_n+Rt-1,rowStart:Nn,rowEnd:Nn+rt-1};_t.isEqualRanges($t,Xt)&&!(Qt=>!Qt||!Ne.current||Ne.current.ctrlKey!==Qt.ctrlKey||Ne.current.shiftKey!==Qt.shiftKey||Ne.current.altKey!==Qt.altKey||Ne.current.metaKey!==Qt.metaKey)(K)||(fn(Xt),S?.(Xt,K,xe)),Ne.current=xe,va(Pt,Tt,e)},onPointerUp:(K,xe)=>{Ne.current=xe;const Ce=()=>{fn(null),on.current=null,ut(null),e.current?.focus()};if(!on.current)return void Ce();const ye=on.current.range,Ae=$t;D?.(ye,K,xe),Promise.resolve(ye&&Ae&&E?.(ye,Ae,K,xe)).finally(()=>{Ce()})}}),[$t]),en=ii(mn),On=s.useMemo(()=>({onPointerDown:en}),[en]),De=s.useRef(null),tt=s.useMemo(()=>{const K=_t.isEqualSelectionCoords(ce,De.current)?De.current:ce;return De.current=K,K},[ce]),at=s.useCallback(K=>{let xe=null,Ce="br";const ye=[],Ae={stroke:x,fill:U,strokeWidth:.5},et=(Rt,It,_n)=>{const rt=K.toClipBounds(K.getRangeCoordsBounds(Rt),Co);if(!rt)return;rt.x=rt.width>0?rt.x:rt.x-Ae.strokeWidth/2,rt.y=rt.height>0?rt.y:rt.y-Ae.strokeWidth/2,rt.width=Math.max(rt.width,Ae.strokeWidth),rt.height=Math.max(rt.height,Ae.strokeWidth);const qt={key:`selection-fill-${It}`,range:Rt,...rt,...Ae};if(_n){const Nn=K.getCellCoordsAsRangeCoords(_n);qt.cell=_n,qt.pathBounds=K.toClipBounds(K.getRangeCoordsBounds(Nn),Co),qt.pathBounds&&(qt.pathBounds.width<=0||qt.pathBounds.height<=0)&&(delete qt.pathBounds,delete qt.cell)}return le(qt)};let Ve=ce?Fo(ce):null;const Pt=Ve?.cell?K.getCellCoordsAsRangeCoords(Ve?.cell):kS;!Ve||Ve.ranges&&Ve.ranges.length!==0||(Ve={ranges:[Pt],rangeIndex:0,cell:Ve.cell});for(let Rt=0;Ve&&Rt<Ve.ranges.length;Rt++){const It=Ve.ranges[Rt],_n=et(It,Rt,Rt===Ve.rangeIndex?Ve.cell:null);_n&&ye.push(_n);const rt=2,qt=.5,Nn=K.toClipBounds(K.getRangeCoordsBounds(It,{top:0,left:0,right:0,bottom:0}),Co);if(Nn){const Xt=(Ve.ranges.length,4);ye.push(le({range:It,key:`selection-inside-edge-${Rt}`,x:Nn.x-1,y:Nn.y-1,width:Math.max(Nn.width+1,0),height:Math.max(Nn.height+1,0),style:{overflow:"hidden"},stroke:x,strokeWidth:Xt}))}if(Ve.ranges.length===1){const Xt=K.toClipBounds(K.getRangeCoordsBounds(It),Co);if(Xt){A||ye.push(le({range:It,key:`move-selection-hit-box-${Rt}`,x:Xt.width>1?Xt.x:Xt.x-(P/2+1),y:Xt.height>1?Xt.y:Xt.y-(P/2+1),width:Math.max(Xt.width+2,1),height:Math.max(Xt.height+2,1),stroke:"transparent",style:{boxShadow:"none"},pathProps:{cursor:$t?void 0:"move",pointerEvents:"stroke"},strokeWidth:P,...On}));const Qt=rt;ye.push(le({range:It,key:`selection-single-${Rt}`,x:Xt.x-Qt/2,y:Xt.y-Qt/2,width:Math.max(Xt.width+Qt/2,1),height:Math.max(Xt.height+Qt/2,1),stroke:O,strokeWidth:Qt}))}}else{const Xt=K.toClipBounds(K.getRangeCoordsBounds(It,{top:-1,left:-1,right:-2,bottom:-2}),Co);Xt&&ye.push(le({range:It,key:`selection-multi-${Rt}`,x:Xt.width>1?Xt.x:Xt.x-qt/2,y:Xt.height>1?Xt.y:Xt.y-qt/2,width:Math.max(Xt.width,qt)+1,height:Math.max(Xt.height,qt)+1,stroke:O,style:{overflow:"hidden"},strokeWidth:2}))}if(Ve.ranges.length>1&&Rt===Ve.rangeIndex){const Xt=K.getCellCoordsAsRangeCoords(Ve.cell),Qt=K.toClipBounds(K.getRangeCoordsBounds(Xt,{top:1,left:1,right:-1,bottom:-1}),Co);Qt&&ye.push(le({range:It,key:`selection-anchor-${Rt}`,x:Qt.x,y:Qt.y,width:Math.max(Qt.width,qt),height:Math.max(Qt.height,qt),stroke:O,style:{overflow:"hidden"},strokeWidth:2}))}if(Rt===Ve.ranges.length-1){xe=null,Ce=null;const Xt=It.rowStart===W().top&&It.rowEnd===W().bottom,Qt=It.colStart===W().left&&It.colEnd===W().right,Vn=K.getRangeCoordsBounds(It);let Yo=null;if(Xt||Qt){if(Yo=K.toClipBounds(Vn,Co),Object.keys(K.allViews()).length>1){const Yl=K.getVisibleRangeCoords(),H2=K.allViews()[vs],cf=K.allViews()[Rl],df=K.allViews()[Il],Jl=K.getAnchor();(Qt&&(Jl===Rl&&H2||Jl===zo&&df||!_t.isCellWithinRange({colIndex:It.colStart,rowIndex:It.rowEnd},Yl)&&!_t.isCellWithinRange({colIndex:It.colStart,rowIndex:It.rowEnd+1},Yl))||Xt&&(Jl===Il&&H2||Jl===zo&&cf||!_t.isCellWithinRange({colIndex:It.colEnd,rowIndex:It.rowStart},Yl)&&!_t.isCellWithinRange({colIndex:It.colEnd+1,rowIndex:It.rowStart},Yl)))&&(Yo=null)}}else Yo=K.toClipBounds(Vn,Co);if(!Yo||Yo.width===0||Yo.height===0)continue;xe={x:Yo.x+Yo.width+1,y:Yo.y+Yo.height+1},Yo.width===0||Yo.height===0||It.rowStart===W().top&&It.colStart===W().left&&It.rowEnd===W().bottom&&It.colEnd===W().right||(Xt?(xe.y=rt,Ce="tr"):Qt&&(xe.x=rt,Ce="bl"))}}let Tt=null;if(Fe){const Rt=K.toClipBounds(K.getRangeCoordsBounds(Fe,{top:0,left:0,right:0,bottom:0}),Co);Rt&&(Tt=le({...Ae,range:Fe,key:"remove-selection",x:Rt.x,y:Rt.y,width:Rt.width,height:Rt.height,strokeWidth:2,stroke:q,fill:X}))}let Mt=null;if(ke){const Rt=K.toClipBounds(K.getRangeCoordsBounds(ke,{top:0,left:0,right:0,bottom:0}),Co);Rt&&(Mt=le({range:ke,key:"selection-fill-outline",x:Rt.x-1,y:Rt.y-1,width:Rt.width+1,height:Rt.height+1,strokeWidth:2,stroke:O,strokeDasharray:"3 2"}))}let Ft=null;!g&&xe&&!$t&&(Ft=s.createElement(up,{...xe,corner:Ce,size:7.5,borderStroke:`${x} solid`,style:{borderRadius:1},background:O,...xo,key:"fillHandle"}));const tn=[...ye];if(Tt&&tn.push(Tt),Mt&&tn.push(Mt),Ft&&tn.push(Ft),!re&&Oe&&Ve?.ranges.length===1&&Ve.ranges[Ve.ranges.length-1]){const Rt=Ve.ranges[Ve.ranges.length-1],It=Rt.rowStart===W().top&&Rt.rowEnd===W().bottom,_n=Rt.colStart===W().left&&Rt.colEnd===W().right,rt={view:K,range:Rt,borderStroke:`${O} solid`,background:x,selectionTouchPointerHandler:wt,...$,onTouchSelectStart:qt=>be(qt),onTouchSelectEnd:()=>be(null),currentTouchAnchor:We};tn.push(a.jsx(cd,{anchor:_n?"b":It?"r":"br",scrollableElement:e.current,...rt},"touch-select-handle-after")),tn.push(a.jsx(cd,{anchor:_n?"t":It?"l":"tl",scrollableElement:e.current,...rt},"touch-select-handle-before"))}if($t){const Rt=K.toClipBounds(K.getRangeCoordsBounds($t,{top:1,left:1,right:1,bottom:1}),Co);Rt&&tn.push(le({range:$t,key:"selection-move-outline",x:Rt.x-z/2,y:Rt.y-z/2,width:Math.max(Rt.width+z/2,1),height:Math.max(Rt.height+z/2,1),stroke:O,style:{boxShadow:"none",transitionDuration:"70ms",transitionTimingFunction:"ease-in",transitionProperty:"left, top, width, height",willChange:"left, top, width, height"},strokeWidth:z}))}return a.jsx("div",{children:tn},"selection")},[tt,Fe,g,ke,A,$t,W,x,O,U,q,X,re,$,We]),vt=s.useMemo(()=>{const K=()=>e.current;return[new Zt("moveToPageDown",K,{label:"Page Down",description:"Shift viewport down one page.",shortcut:[{key:"PageDown"}]},()=>ln(!1)),new Zt("selectToPageDown",K,{label:"Select To Page Down",description:"Shift viewport and select down one page.",shortcut:[{key:"PageDown",modifiers:[Gn]}]},()=>ln(!0)),new Zt("moveToPageRight",K,{label:"Page Right",description:"Shift viewport right one page.",shortcut:[{key:"PageDown",modifiers:[p0]}]},()=>ro(!1)),new Zt("selectToPageRight",K,{label:"Page Right",description:"Shift viewport right one page.",shortcut:[{key:"PageDown",modifiers:[p0,Gn]}]},()=>ro(!0)),new Zt("moveToPageUp",K,{label:"Page Up",description:"Shift viewport up one page.",shortcut:[{key:"PageUp"}]},()=>Jt(!1)),new Zt("selectToPageUp",K,{label:"Page Up",description:"Shift viewport up one page.",shortcut:[{key:"PageUp",modifiers:[Gn]}]},()=>Jt(!0)),new Zt("moveToPageLeft",K,{label:"Page Left",description:"Shift viewport left one page.",shortcut:[{key:"PageUp",modifiers:[p0]}]},()=>Io(!1)),new Zt("selectToPageLeft",K,{label:"Page Left",description:"Shift viewport left one page.",shortcut:[{key:"PageUp",modifiers:[p0,Gn]}]},()=>Io(!0)),new Zt("selectColumn",K,{label:"Select Column",description:"Select the columns for the selected cells.",shortcut:{key:"Space",modifiers:[po]}},Ct),new Zt("selectRow",K,{label:"Select Row",description:"Select the rows for the selected cells.",shortcut:{key:"Space",modifiers:[Gn]}},it),new Zt("selectToColumnStart",K,{label:"Select To Column Start",description:"Select the columns to the beginning of the sheet."},()=>sn(!0)),new Zt("selectToColumnEnd",K,{label:"Select To Column End",description:"Select the columns to the end of the sheet."},()=>yn(!0)),new Zt("moveToRowStart",K,{label:"Move to Row Home",description:"Move to the beginning of the row.",shortcut:[{key:"Home"}]},()=>In(!1)),new Zt("selectToRowStart",K,{label:"Select to Row Home",description:"Select to the beginning of the row.",shortcut:[{key:"Home",modifiers:[Gn]}]},()=>In(!0)),new Zt("moveToSheetStart",K,{label:"Move to Sheet Home",description:"Move to the beginning of the sheet.",shortcut:[{key:"Home",modifiers:[po]}]},()=>Ln(!1)),new Zt("selectToSheetStart",K,{label:"Select to Sheet Home",description:"Select to the beginning of the sheet.",shortcut:[{key:"Home",modifiers:[po,Gn]}]},()=>Ln(!0)),new Zt("moveToRowEnd",K,{label:"Move to Row End",description:"Move to the end of the row.",shortcut:[{key:"End"}]},()=>At(!1)),new Zt("selectToRowEnd",K,{label:"Select to Row End",description:"Select to the end of the row.",shortcut:[{key:"End",modifiers:[Gn]}]},()=>At(!0)),new Zt("moveToSheetEnd",K,{label:"Move to Sheet End",description:"Move to the end of the sheet.",shortcut:[{key:"End",modifiers:[po]}]},()=>jt(!1)),new Zt("selectToSheetEnd",K,{label:"Select to Sheet End",description:"Select to the end of the sheet.",shortcut:[{key:"End",modifiers:[po,Gn]}]},()=>jt(!0)),new Zt("scrollToActiveCoords",K,{label:"Scroll to Active Cell",description:"Scroll to the Active Cell.",shortcut:{key:"Backspace",modifiers:[po]}},Ot),new Zt("scrollToActiveCoordsClearSelection",K,{label:"Scroll to Active Cell",description:"Scroll to the Active Cell and clear selection.",shortcut:{key:"Backspace",modifiers:[Gn]}},()=>{Be(),Wt(ce.cell,!0)}),new Zt("traverseSelectionRight",K,{label:"Traverse Right",description:"Traverse the selection moving rightward.",shortcut:{key:"Tab"}},wo),new Zt("traverseSelectionLeft",K,{label:"Traverse Left",description:"Traverse the selection moving leftward.",shortcut:{key:"Tab",modifiers:[Gn]}},Go),new Zt("traverseSelectionDown",K,{label:"Traverse Down",description:"Traverse the selection moving downward.",shortcut:[{key:"Enter"},{key:"NumpadEnter"}]},So),new Zt("traverseSelectionUp",K,{label:"Traverse Up",description:"Traverse the selection moving upward.",shortcut:[{key:"Enter",modifiers:[Gn]},{key:"NumpadEnter",modifiers:[Gn]}]},cr),new Zt("moveLeft",K,{label:"Move Left",description:"Move active cell to the left.",shortcut:[{key:"ArrowLeft"}]},uo),new Zt("selectLeft",K,{label:"Select Left",description:"Extend selection left.",shortcut:[{key:"ArrowLeft",modifiers:[Gn]}]},Pe),new Zt("moveContentfulLeft",K,{label:"Move Left Contentful",description:"Move left to the next cell with content.",shortcut:[{key:"ArrowLeft",modifiers:[po]}]},Ke),new Zt("selectContentfulLeft",K,{label:"Select Left Contentful",description:"Extend selection left to the next cell with content.",shortcut:[{key:"ArrowLeft",modifiers:[po,Gn]}]},Ye),new Zt("moveRight",K,{label:"Move Right",description:"Move active cell to the right.",shortcut:[{key:"ArrowRight"}]},Ue),new Zt("selectRight",K,{label:"Select Right",description:"Extend selection right.",shortcut:[{key:"ArrowRight",modifiers:[Gn]}]},Qe),new Zt("moveContentfulRight",K,{label:"Move Right Contentful",description:"Move right to the next cell with content.",shortcut:[{key:"ArrowRight",modifiers:[po]}]},mt),new Zt("selectContentfulRight",K,{label:"Select Right Contentful",description:"Extend selection right to the next cell with content.",shortcut:[{key:"ArrowRight",modifiers:[po,Gn]}]},xt),new Zt("moveUp",K,{label:"Move Up",description:"Move active cell to the up.",shortcut:[{key:"ArrowUp"}]},gt),new Zt("selectUp",K,{label:"Select Up",description:"Extend selection up.",shortcut:[{key:"ArrowUp",modifiers:[Gn]}]},kt),new Zt("moveContentfulUp",K,{label:"Move Up Contentful",description:"Move up to the next cell with content.",shortcut:[{key:"ArrowUp",modifiers:[po]}]},bt),new Zt("selectContentfulUp",K,{label:"Select Up Contentful",description:"Extend selection up to the next cell with content.",shortcut:[{key:"ArrowUp",modifiers:[po,Gn]}]},Ut),new Zt("moveDown",K,{label:"Move Down",description:"Move active cell to the down.",shortcut:[{key:"ArrowDown"}]},cn),new Zt("selectDown",K,{label:"Select Down",description:"Extend selection down.",shortcut:[{key:"ArrowDown",modifiers:[Gn]}]},Gt),new Zt("moveContentfulDown",K,{label:"Move Down Contentful",description:"Move down to the next cell with content.",shortcut:[{key:"ArrowDown",modifiers:[po]}]},_e),new Zt("selectContentfulDown",K,{label:"Select Down Contentful",description:"Extend selection down to the next cell with content.",shortcut:[{key:"ArrowDown",modifiers:[po,Gn]}]},ct),new Zt("selectVisible",K,{label:"Select Visible",description:"Select visible cells only.",shortcut:{key:";",modifiers:[p0]}},vn),new Zt("traverseSelectionPreviousRange",K,{label:"Traverse Previous Range",description:"Traverse the selection to the previous range.",shortcut:{key:"ArrowLeft",modifiers:[po,p0]}},Ko),new Zt("traverseSelectionNextRange",K,{label:"Traverse Next Range",description:"Traverse the selection to the next range.",shortcut:{key:"ArrowRight",modifiers:[po,p0]}},yr),new Zt("traverseSelectionCorners",K,{label:"Traverse Corners",description:"Traverse the selection through the corners of the selected range.",shortcut:{key:".",modifiers:[po]}},Xo)]},[]);return s.useMemo(()=>{t?.addCommands(vt,!0)},[t]),{selection:tt,setSelectionCell:Wt,setSelectionRanges:Y,overlay:at,cursor:ht,onPointerDown:lt,clearLastSelection:yt,newSelection:ge,modifySelection:pe,appendSelection:Ee,clearSelections:Be,isEntire:Kt,navigate:Xe,navigateSelection:St}};function Za(e,t){if(!e)throw new Error("Invariant failed")}const A6={"sheetxl-grid":"_sheetxl-grid_h9wwa_7"},_S=Object.freeze({top:0,left:0}),TS=Object.freeze({bottom:-4,right:-4}),jS=Object.freeze({horizontal:!0,vertical:!0}),F6=[vs,Rl,Il,zo],Sr=3e3,X1={},gp=s.memo(s.forwardRef((e,t)=>{const{width:n,height:o,rowCount:r=1,columnCount:i=1,defaultRowHeight:l,defaultColumnWidth:d,getRowHeight:c,getColumnWidth:u,layout:f,onViewportScroll:p,onImmediateScroll:h,showGridLines:m=!0,gridLineColor:g="rgb(224, 224, 224)",gridLineRowsProps:x,gridLineColumnsProps:y,clipCells:v=!0,cursor:b,freezeLeft:C=0,freezeTop:k=0,freezeLeftProps:_,freezeTopProps:I,cellRenderer:M,onViewportChange:F,onFirstRender:j,overlayRenderer:T,overlayProps:w,overlays:S,overlaysProps:D,allowOverlaysOverflow:E=!1,stageProps:R,stageWrapper:A=null,hiddenRowsAt:L,hiddenColumnsAt:P,hiddenCellAt:z,getVisibleCells:U,zoom:O=1,enableMouseWheel:q=!0,onWheelScroll:X,getCellCoordsAsRangeCoords:re=_t.cellToRange,scrollPoint:$=_S,style:W={},...B}=e;Za(M),Za(!e?.children);const Z=nt(h,[h]),G=nt(F,[F]),ie=nt(p,[p]),ee=nt(X,[X]),le=nt(j,[j]),ue=s.useRef(null),de=s.useRef(null),oe=s.useRef(null),[fe,Te]=s.useReducer(Pe=>Pe+1,0),[Le,ce]=s.useState({left:$?.left??0,top:$?.top??0,horizontalScrollDirection:null,verticalScrollDirection:null}),he=s.useRef(null),we=s.useRef(Le),{top:Y,left:ze,verticalScrollDirection:ht,horizontalScrollDirection:ut}=Le,ke=s.useRef(!1),ot=(Pe=>{const{rowCount:Ke,columnCount:Ye,defaultRowHeight:Ue,getRowHeight:Qe,defaultColumnWidth:mt,getColumnWidth:xt}=Pe||{},gt=s.useRef({columnMetadataMap:{},rowMetadataMap:{},lastMeasuredColumnIndex:-1,lastMeasuredRowIndex:-1,recalcColumnIndices:[],recalcRowIndices:[]}),kt=nt(Vt=>T6({itemType:"row",itemCount:Ke,itemSize:Qe??(()=>Ue??20),instanceProps:gt.current,offset:Vt}),[Ke,Qe,Ue]),bt=nt(Vt=>Vt===-1?0:J0({itemType:"row",index:Vt,itemSize:Qe??(()=>Ue??20),instanceProps:gt.current}).offset,[Qe,Ue]),Ut=nt(Vt=>J0({itemType:"row",index:Vt,itemSize:Qe??(()=>Ue??20),instanceProps:gt.current}).size,[Qe,Ue]),cn=nt(Vt=>T6({itemType:"column",itemCount:Ye,itemSize:xt??(()=>mt??75),instanceProps:gt.current,offset:Vt}),[Ye,xt,mt]),Gt=nt(Vt=>Vt===-1?0:J0({itemType:"column",index:Vt,itemSize:xt??(()=>mt??75),instanceProps:gt.current}).offset,[xt,mt]),_e=nt(Vt=>J0({itemType:"column",index:Vt,itemSize:xt??(()=>mt??75),instanceProps:gt.current}).size,[xt,mt]),[ct,yt]=s.useReducer(Vt=>Vt+1,0),Kt=()=>({getRowOffset:bt,getColOffset:Gt,getRowIndex:kt,getColIndex:cn}),[Wt,ft]=s.useState(()=>Pe?Kt():null);return s.useEffect(()=>{ft(Pe?Kt():null)},[ct,Ke,Ye,mt,Ue,Ut,_e]),Wt})({rowCount:r,columnCount:i,defaultRowHeight:l,defaultColumnWidth:d,getRowHeight:c,getColumnWidth:u}),dt=s.useRef(null),Fe=s.useMemo(()=>{const Pe=f||ot;return dt.current=null,{getColOffset:Ke=>Pe.getColOffset(Ke)*O,getColIndex:Ke=>Pe.getColIndex(Ke/O),getRowOffset:Ke=>Pe.getRowOffset(Ke)*O,getRowIndex:Ke=>Pe.getRowIndex(Ke/O)}},[ot,f,O]),Je=(Pe,Ke,Ye)=>{const Ue=(Ke?.left??0)+0,Qe=(Ke?.top??0)+0;return{getColOffset:mt=>Pe.getColOffset(mt)-Ue,getColIndex:mt=>Pe.getColIndex(mt+Ue),getRowOffset:mt=>Pe.getRowOffset(mt)-Qe,getRowIndex:mt=>Pe.getRowIndex(mt+Qe)}},Ge=s.useCallback((Pe,Ke=!1)=>ks(Pe,Ke,Fe.getRowOffset,Ke?0:r),[r,Fe?.getRowOffset]),se=nt(L??Ge,[L]),We=s.useCallback((Pe,Ke=!1)=>ks(Pe,Ke,Fe.getColOffset,Ke?i:0),[i,Fe?.getColOffset]),be=nt(P??We,[P]),Se=s.useMemo(()=>Math.min(n??800,Fe.getColOffset(i)),[Fe.getColOffset,i,n]),H=s.useMemo(()=>Math.min(o??600,Fe.getRowOffset(r)),[Fe.getRowOffset,r,o]),te=s.useCallback(Pe=>{oo.canUseDOM&&setTimeout(()=>{ue.current?.focus({preventScroll:!0,...Pe})},0)},[]),ne=s.useCallback(Pe=>ue.current?.contains(Pe)||de.current?.contains(Pe),[]);s.useEffect(()=>{ke.current&&(he.current&&he.current.left!==we.current?.left&&he.current.top!==we.current?.top||(he.current=null,ie?.({left:ze,top:Y})))},[ze,Y]);const J=nt(()=>({top:Y,left:ze}),[Y,ze]),ae=s.useMemo(()=>{const Pe=[];let Ke=0,Ye=0;typeof k=="number"?Ke=k:(Ke=k.index??0,Ye=(k.scrollOffset??0)*O);const Ue=Ye,Qe=Fe.getRowOffset(Ke),mt=Qe-Ue;if(Ke>0){const cn=Je(Fe,{top:Ye+Fe.getRowOffset(0)}),Gt=Fe.getRowIndex(Ue),_e=Fe.getRowIndex(Qe-1);let ct;Pe[1]={minIndex:Gt,maxIndex:_e,minCoord:0,maxCoord:Ke-1,minBounds:0,maxBounds:mt,visibleIndices:()=>ct||(ct=Object.freeze(ba(se,Gt,_e)),ct),layout:cn,maxVirtualBounds:Qe,scrollOffset:Ye,freezeOffset:Ye}}const xt=Math.max(0,H-mt),gt=Je(Fe,{top:Y+mt}),kt=gt.getRowIndex(0),bt=gt.getRowIndex(xt);let Ut;return Pe[0]={minIndex:kt,maxIndex:bt,minCoord:Ke,maxCoord:r-1,minBounds:mt,maxBounds:xt,visibleIndices:()=>Ut||(Ut=Object.freeze(ba(se,kt,bt)),Ut),layout:gt,maxVirtualBounds:Fe.getRowOffset(r),scrollOffset:Y,freezeOffset:(Ke>0?Fe.getRowOffset(Ke):0)-Ye},Pe},[Fe.getRowIndex,Fe.getRowOffset,se,H,r,k,Y,O]),Q=s.useMemo(()=>{const Pe=[];let Ke=0,Ye=0;typeof C=="number"?Ke=C:(Ke=C.index??0,Ye=(C.scrollOffset??0)*O);const Ue=Ye,Qe=Fe.getColOffset(Ke),mt=Qe-Ue;if(Ke>0){const cn=Je(Fe,{left:Ye+Fe.getColOffset(0)}),Gt=Fe.getColIndex(Ue),_e=Fe.getColIndex(Qe-1);let ct;Pe[1]={minIndex:Gt,maxIndex:_e,minCoord:0,maxCoord:Ke-1,minBounds:0,maxBounds:mt,visibleIndices:()=>ct||(ct=Object.freeze(ba(be,Gt,_e)),ct),layout:cn,maxVirtualBounds:Qe,scrollOffset:Ye,freezeOffset:Ye}}const xt=Math.max(0,Se-mt),gt=Je(Fe,{left:ze+mt}),kt=gt.getColIndex(0),bt=gt.getColIndex(xt);let Ut;return Pe[0]={minIndex:kt,maxIndex:bt,minCoord:Ke,maxCoord:i-1,minBounds:mt,maxBounds:xt,visibleIndices:()=>Ut||(Ut=Object.freeze(ba(be,kt,bt)),Ut),layout:gt,maxVirtualBounds:Fe.getColOffset(i),scrollOffset:ze,freezeOffset:(Ke>0?Fe.getColOffset(Ke):0)-Ye},Pe},[Fe.getColIndex,Fe.getColOffset,be,Se,i,C,ze,O]),pe=s.useRef({}),ge=s.useRef([]),Ee=s.useMemo(()=>{let Pe={};const Ke=(Ue,Qe,mt,xt,gt)=>{const kt={vertical:xt?.vertical||!1,horizontal:xt?.horizontal||!1};if(Ue>=Q.length||Qe>=ae.length)return null;const bt={rowStart:ae[Qe].minIndex,colStart:Q[Ue].minIndex,rowEnd:ae[Qe].maxIndex,colEnd:Q[Ue].maxIndex};if(bt.rowStart>bt.rowEnd||bt.colStart>bt.colEnd)return null;const Ut={getColIndex:$t=>Q[Ue].layout.getColIndex($t),getColOffset:$t=>Q[Ue].layout.getColOffset($t),getRowIndex:$t=>ae[Qe].layout.getRowIndex($t),getRowOffset:$t=>ae[Qe].layout.getRowOffset($t)},cn=Object.freeze({left:gt?.left??0,top:gt?.top??0,right:gt?.right??0,bottom:gt?.bottom??0}),Gt=Object.freeze({x:Q[Ue].minBounds,y:ae[Qe].minBounds,width:Q[Ue].maxBounds,height:ae[Qe].maxBounds}),_e=($t,fn)=>O6(Ut,$t??bt,fn),ct={width:Q[Ue].maxVirtualBounds,height:ae[Qe].maxVirtualBounds},yt={left:Q[Ue].scrollOffset,top:ae[Qe].scrollOffset},Kt={left:Q[Ue].freezeOffset,top:ae[Qe].freezeOffset},Wt={width:Se,height:H};let ft=null,Vt=null;const ho=(Kt.top+(xt.vertical?yt.top:0))/O,xo=(Kt.left+(xt.horizontal?yt.left:0))/O;return{getStage:()=>ue.current??null,getVisibleRangeCoords:()=>bt,toClipBounds:($t,fn)=>{let on,mn=0;return fn===void 0||typeof fn=="number"?(on=_e(bt),mn=fn):on=fn,((en,On,De=0)=>{if(en.x>On.width||en.y>On.height)return null;const tt={left:en.x,top:en.y,bottom:en.height+en.y,right:en.width+en.x},at={left:On.x+De,top:On.y+De,bottom:On.height-2*De+On.y,right:On.width-2*De+On.x},vt={left:Math.max(tt.left,at.left),top:Math.max(tt.top,at.top),bottom:Math.min(tt.bottom,at.bottom),right:Math.min(tt.right,at.right)},K={x:vt.left,y:vt.top,width:vt.right-vt.left,height:vt.bottom-vt.top};return K.height<0||K.width<0?null:K})($t??{x:0,y:0,width:Gt.width,height:Gt.height},on,mn)},toViewBounds:$t=>xo===0&&ho===0&&O===1?$t:{x:($t.x-xo)*O,y:($t.y-ho)*O,width:$t.width*O,height:$t.height*O},toAbsoluteBounds:$t=>xo===0&&ho===0&&O===1?$t:{x:$t.x/O+xo,y:$t.y/O+ho,width:$t.width/O,height:$t.height/O},getRelativePointFromClient:($t,fn)=>{const on=qe($t,fn);return{x:on.x-Gt.x,y:on.y-Gt.y}},getLayout:()=>Ut,getCellCoordsAsRangeCoords:re,getVisibleColumns:()=>Q[Ue].visibleIndices(),getVisibleRows:()=>ae[Qe].visibleIndices(),getVisibleColumnOffsets:()=>(ft||(ft=L6(Q[Ue].layout,!0,Q[Ue].visibleIndices(),bt.colStart,bt.colEnd)),ft),getVisibleRowOffsets:()=>(Vt||(Vt=L6(ae[Qe].layout,!1,ae[Qe].visibleIndices(),bt.rowStart,bt.rowEnd)),Vt),getTotalRangeCoords:()=>({colStart:Q[Ue].minCoord,colEnd:Q[Ue].maxCoord,rowStart:ae[Qe].minCoord,rowEnd:ae[Qe].maxCoord}),getRangeCoordsBounds:_e,scrollCellCoordsIntoView:($t,fn)=>In($t,fn,mt),getCellCoordsFromClient:($t,fn,on=!1)=>{const mn=qe($t,fn);if(!mn)return null;const en=Ut.getColIndex(mn.x-Gt.x),On={rowIndex:Ut.getRowIndex(mn.y-Gt.y),colIndex:en};if(on)return On;const De=re(On);return{rowIndex:De.rowStart,colIndex:De.colStart}},getZoom:()=>O,getAnchor:()=>mt,getBounds:()=>Gt,getInsets:()=>cn,getTotalSize:()=>ct,getViewportSize:()=>Wt,getScrollTopLeft:()=>yt,getFreezeTopLeft:()=>Kt,getScrollOrientation:()=>kt,allViews:()=>Pe}};let Ye=Pe[zo]=Ke(0,0,zo,jS,TS);return Ye&&(Pe[zo]=Ye),Ye=Ke(0,1,Rl,{horizontal:!0}),Ye&&(Pe[Rl]=Ye),Ye=Ke(1,0,Il,{vertical:!0}),Ye&&(Pe[Il]=Ye),Ye=Ke(1,1,vs,{}),Ye&&(Pe[vs]=Ye),pe.current=null,Pe=Object.freeze(Pe)},[ae,Q,re]),Be=Object.keys(Ee),Oe=Q[0]?.maxVirtualBounds??0,Ie=ae[0]?.maxVirtualBounds??0,Ze=s.useMemo(()=>({left:Q[1]?Q[1].layout.getColOffset(Q[1].maxIndex+1):0,top:ae[1]?ae[1].layout.getRowOffset(ae[1].maxIndex+1):0}),[Ee]);s.useEffect(()=>{if(ge.current.length>0){for(let Pe=0;Pe<ge.current.length;Pe++)ge.current[Pe]();ge.current=[]}},[Ee]);const Ne=nt(()=>({containerWidth:Se,containerHeight:H,totalWidth:Oe,totalHeight:Ie}),[Se,H,Fe]);s.useEffect(()=>{!he.current&&ke.current&&G({top:Y,left:ze,width:Se,height:H,totalWidth:Oe,totalHeight:Ie})},[Y,ze,Oe,Ie]),s.useEffect(()=>{ke.current&&G({top:Y,left:ze,width:Se,height:H,totalWidth:Oe,totalHeight:Ie})},[Se,H]);const qe=s.useCallback((Pe,Ke)=>{Za(typeof Pe=="number"&&typeof Ke=="number");const Ye=ue.current?.getBoundingClientRect();return Ye?{x:Pe-Ye.x,y:Ke-Ye.y}:{x:Pe,y:Ke}},[]),lt=nt(Pe=>Ee[Pe]||null,[Ee]),wt=nt((Pe,Ke)=>{if(Object.keys(Ee).length===1)return Ee[zo];const Ye=qe(Pe,Ke);if(!Ye)return null;const{x:Ue,y:Qe}=Ye;let mt=null;const xt=F6;for(let gt=0;!mt&&gt<xt.length;gt++){const kt=Ee[xt[gt]];kt&&bS(Ue,Qe,kt.getBounds())&&(mt=kt)}return mt||(mt=Ee[zo]),mt},[Ee,re]),Xe=nt(()=>Ee[zo].getVisibleRangeCoords(),[Ee[zo]]),St=s.useRef(null),Ct=s.useCallback(()=>{St.current!==null&&oo.cancelTimeout(St.current),St.current=oo.requestTimeout(it,150)},[]),it=s.useCallback(()=>{St.current=null,ce(Pe=>{const Ke={...Pe,verticalScrollDirection:null,horizontalScrollDirection:null};return we.current=Ke,Ke})},[]),Ot=nt(Pe=>{const Ke=Pe?.left??Pe?.[0],Ye=Pe?.top??Pe?.[1],Ue=Ke!==void 0?Math.min(Oe-Se,Math.max(Q?.[1]?.scrollOffset??0,Ke)):we.current.left,Qe=Ye!==void 0?Math.min(Ie-H,Math.max(ae?.[1]?.scrollOffset??0,Ye)):we.current.top;if(we.current.left===Ue&&we.current.top===Qe)return;let mt=null,xt=null;we.current.left>Ue?mt=wn:we.current.left<Ue&&(mt=gn),we.current.top>Qe?xt=Sn:we.current.top<Qe&&(xt=Cn),oo.throttle(()=>{ce(gt=>{const kt={...gt,left:Ue,top:Qe,horizontalScrollDirection:mt,verticalScrollDirection:xt};return we.current=kt,kt})},17)(),he.current?.top===Qe&&he.current?.left===Ue||(he.current={left:Ue,top:Qe},Z({left:Ue,top:Qe}),G({left:Ue,top:Qe,width:Se,height:H,totalWidth:Oe,totalHeight:Ie})),Ct()},[Oe,Ie,ae,Q]);s.useEffect(()=>{he.current||Ot({left:ze,top:Y})},[Oe,Se,Ie,H]),s.useLayoutEffect(()=>{he.current={left:$?.left,top:$?.top},Ot(he.current)},[$?.left,$?.top]);const sn=nt(Pe=>{const Ke=Pe?.left??Pe?.[0],Ye=Pe?.top??Pe?.[1],Ue=Pe?.behavior??"auto",Qe={left:we.current.left+(Ke??0),top:we.current.top+(Ye??0)};Ue&&(Qe.behavior=Ue),Ot(Qe)},[Oe,Se,Ie,H]),yn=s.useCallback(Pe=>{let Ke=null;if(Object.keys(Ee).length>1){const Ye=F6;for(let Ue=0;!Ke&&Ue<Ye.length;Ue++){const Qe=Ee[Ye[Ue]];Qe&&_t.isCellWithinRange(Pe,Qe.getVisibleRangeCoords())&&(Ke=Qe)}}return Ke||(Ke=Ee[zo]),Ke},[Ee]),In=nt((Pe,Ke={inline:"nearest",block:"nearest"},Ye=null)=>{const Ue={rowIndex:0,colIndex:0,...Pe};let Qe=null;if(Ye!==null){if(Qe=Ee[Ye],Qe===null)return new Promise((Wt,ft)=>{ft("Invalid view")})}else Qe=yn(Ue);const mt=re(Ue),xt=Qe.getLayout(),gt=xt.getColOffset(mt.colStart),kt=xt.getRowOffset(mt.rowStart),bt=xt.getColOffset(mt.colEnd+1),Ut=xt.getRowOffset(mt.rowEnd+1),cn=Qe.getBounds(),Gt=Qe.getTotalSize(),_e=Qe.getScrollTopLeft(),ct=((Wt,ft,Vt=!0)=>(Vt=Vt===!0?{block:"start",inline:"end"}:Vt===!1?{block:"end",inline:"end"}:{block:"end",inline:"end",...Vt},{left:R6(Vt.inline,Wt.x,Wt.x+Wt.width,ft.left,ft.left+ft.width,ft.totalWidth),top:R6(Vt.block,Wt.y,Wt.y+Wt.height,ft.top,ft.top+ft.height,ft.totalHeight)}))({x:gt+_e.left,y:kt+_e.top,width:bt-gt,height:Ut-kt},{left:_e.left,top:_e.top,width:cn.width,height:cn.height,totalWidth:Gt.width,totalHeight:Gt.height},Ke),yt={...ct};yt.left>ze?yt.left+=20:yt.left<ze&&(yt.left-=0),yt.top>Y?yt.top+=20:yt.top<Y&&(yt.top-=0);const Kt=Qe.getScrollOrientation();return Kt.horizontal&&Pe.colIndex!==void 0||delete yt.left,Kt.vertical&&Pe.rowIndex!==void 0||delete yt.top,new Promise((Wt,ft)=>{try{Ot(yt),Wt(yt)}catch(Vt){ft(Vt)}})},[Oe,Ie,Ee,re]),Ln=nt(Pe=>{const Ke=Pe.shiftKey;Pe.preventDefault();const{deltaX:Ye,deltaY:Ue,deltaMode:Qe}=Pe;if(oe.current||ee?.(Pe)===!1)return;let mt=Ke?Ue:Ye,xt=Ue;const gt=Ke||Math.abs(mt)>Math.abs(xt);Qe===1&&(xt*=0),oe.current=window.requestAnimationFrame(()=>{oe.current=null,sn(gt?{left:mt}:{top:xt})})},[Oe,Se,Ie,H,ee]),At=s.useCallback((Pe=null)=>{dt.current=null,pe.current=null,Te()},[]);s.useLayoutEffect(()=>{At()},[M]);const jt=qs(t,()=>({stage:ue.current,focus:te,contains:ne,invalidate:At,scrollTo:Ot,scrollBy:sn,scrollCellCoordsIntoView:In,getScrollPosition:J,getDimensions:Ne,getViewport:Xe,handleWheel:Ln,rowCount:r,columnCount:i,getLayout:()=>Fe,getRelativePointFromClient:qe,getViewFromClient:wt,getViewFromCellCoords:yn,getViewFromLocation:lt,onViewChangeOnce:Pe=>{ge.current.push(Pe)}}),[r,i,Ee]);s.useEffect(()=>(q&&jt.current?.addEventListener("wheel",Ln,{passive:!1}),ke.current=!0,he.current=null,()=>{jt.current?.removeEventListener("wheel",Ln)}),[q]);const un=s.useRef([]),vn=(Pe,Ke)=>{!Pe||!T||(un.current=[],Ke.push((Ye=>{const Ue=`view:${Ye.getAnchor()}:overlay:${Ke.length}`,Qe=T?.({key:Ue,view:Ye},xt=>un.current[0]=xt);if(!Qe)return null;const mt=Ye.getBounds();return a.jsx("div",{style:{position:"absolute",left:"0px",top:"0px",width:`${mt.width}px`,height:`${mt.height}px`,overflow:"hidden"},children:Qe},`overlay-${Ye.getAnchor()}-0`)})(Pe)))},rn=s.useMemo(()=>{const Pe={},Ke=Object.keys(Ee);for(let Ye=0;Ye<Ke.length;Ye++){const Ue=Ke[Ye],Qe=[];vn(Ee[Ue],Qe),Pe[Ue]={overlays:Qe}}return Pe},[fe,T,r,i,ae,Q]),ln=(Pe,Ke,Ye,Ue,Qe,mt,xt)=>{if(!Pe)return;const gt=Pe.getVisibleColumns(),kt=Pe.getVisibleRows();if(gt.length===0||kt.length===0)return;let bt=null;if(U)bt=U(Pe);else{bt=[];for(let fn=0;fn<kt.length;fn++)for(let on=0;on<gt.length;on++){const mn={rowIndex:kt[fn],colIndex:gt[on]};if(z?.(mn))continue;const en={coords:mn,range:re(mn)};bt.push(en)}}const Ut=Pe.getVisibleColumnOffsets(),cn=Pe.getVisibleRowOffsets(),Gt=Pe.getScrollTopLeft(),_e=Pe.getFreezeTopLeft(),ct=Gt.left+_e.left,yt=Gt.top+_e.top,Kt=Math.trunc(ct/Sr),Wt=Math.trunc(yt/Sr),ft={},Vt=(fn,on,mn,en,On)=>{const De=`view:${fn.getAnchor()}:cell:${M6(on.rowIndex,on.colIndex)}`,tt=en.x,at=en.y,vt=Math.trunc((ct+tt)/Sr)-Kt,K=Math.trunc((yt+at)/Sr)-Wt;ft[K]||(ft[K]={});let xe=ft[K][vt];xe||(xe=ft[K][vt]=[]);let Ce=mt?.get(De);if(!Ce){const ye=(ct+tt)%Sr,Ae=(yt+at)%Sr;Ce=M({key:De,coords:on,bounds:en,zoom:O,range:mn,view:fn,value:On,style:{left:Bt.boundPixel(ye),top:Bt.boundPixel(Ae),width:Bt.boundPixel(en.width,!0),height:Bt.boundPixel(en.height,!0)}})}xt?.set(De,Ce),xe.push(Ce)};for(let fn=0;bt&&fn<bt.length;fn++){const on=bt[fn],mn=on?.coords??on;if(!mn)continue;const en=on?.range??{rowStart:mn.rowIndex,colStart:mn.colIndex,rowEnd:mn.rowIndex,colEnd:mn.colIndex},On=Pe.getVisibleRangeCoords();if(!_t.isRangesIntersect(en,On)&&!_t.isRangeWithinRange(en,On))continue;const De=en&&!_t.isSingleCell(en);if(!De&&z?.(mn))continue;const tt=mn.rowIndex,at=mn.colIndex,vt=cn[tt],K=Ut[at];let xe=null;vt&&K&&(xe={x:K.offset,y:vt.offset,width:K.size,height:vt.size});const Ce=M6(en.rowStart,en.colStart);if(De){if(Qe.has(Ce))continue;Qe.add(Ce),en.rowEnd-en.rowStart>0&&Ye.push(en),en.colEnd-en.colStart>0&&Ue.push(en)}if(De&&(xe=O6(Pe.getLayout(),en)),!xe){console.warn("no bounds for cell",Ce);continue}const ye=on?.value;Vt(Pe,mn,en,xe,ye)}const ho=ct%Sr,xo=yt%Sr,$t=Object.keys(ft);for(let fn=0;fn<$t.length;fn++){const on=ft[$t[fn]];if(!on)continue;const mn=Object.keys(on);for(let en=0;en<mn.length;en++){const On=on[mn[en]];if(!On)continue;const De=parseInt($t[fn]),tt=parseInt(mn[en]),at=De+Wt,vt=tt+Kt,K=`view:${Pe.getAnchor()}:segment:${vt}:${at}`;Ke.push(a.jsx("div",{className:"cell-container",style:{transform:`translate(${Bt.boundPixel(tt*Sr-ho,!0)}px, ${Bt.boundPixel(De*Sr-xo,!0)}px)`,willChange:"transform"},children:On},K))}}},Jt=s.useMemo(()=>{const Pe=dt.current,Ke=new Map,Ye={},Ue=Object.keys(Ee);for(let Qe=0;Qe<Ue.length;Qe++){const mt=Ue[Qe],xt=[],gt=[],kt=[];ln(Ee[mt],kt,xt,gt,new Set,Pe,Ke),Ye[mt]={cells:kt,rangesH:xt,rangesV:gt}}return dt.current=Ke,Ye},[fe,r,i,ae,Q,m,W,v,z,U,re]),ro=(Pe,Ke,Ye,Ue,Qe)=>{if(Pe)if(Ke){const mt=`view:${Pe.getAnchor()}:hl:`,xt=Pe.getVisibleRows();if(!xt||xt.length===0)return;const gt=0,kt=Pe.getBounds().width;let bt=[];const Ut=Qe.sort(_t.rowFirstRangeComparator),cn=Pe.getVisibleRangeCoords();for(let Gt=0;Gt<xt.length&&xt[Gt]<=cn.rowEnd;Gt++){const _e=xt[Gt];if(_e<cn.rowStart)continue;let ct=!1;for(;Ut.length>0&&Ut[0].rowStart<=_e;){const ft=Ut.shift();ft.rowEnd>_e&&(bt.push(ft),ct=!0)}ct&&(bt=bt.sort(_t.columnFirstRangeComparator));const yt=Pe.getLayout(),Kt=yt.getRowOffset(_e+1);let Wt=gt;for(let ft=0;ft<bt.length+1;ft++){let Vt=Wt,ho=kt;const xo=bt[ft];ft<bt.length&&(ho=Math.min(kt,yt.getColOffset(xo.colStart)),Wt=Math.min(kt,yt.getColOffset(xo.colEnd+1))),Ue.push(s.createElement("path",{d:`M ${Bt.boundPixel(Vt)} ${Bt.boundPixel(Kt,!1,Ye)} L ${Bt.boundPixel(ho)} ${Bt.boundPixel(Kt,!1,Ye)}`,stroke:g,strokeWidth:1,vectorEffect:"non-scaling-stroke",...x,key:mt+_e+":"+ft}))}for(let ft=bt.length-1;ft>=0;ft--)bt[ft].rowEnd<=xt[Gt+1]&&bt.splice(ft,1)}}else{const mt=`view:${Pe.getAnchor()}:vl:`,xt=Pe.getVisibleColumns();if(!xt||xt.length===0)return;const gt=0,kt=Pe.getBounds().height;let bt=[];const Ut=Qe.sort(_t.columnFirstRangeComparator),cn=Pe.getVisibleRangeCoords();for(let Gt=0;Gt<xt.length&&xt[Gt]<=cn.colEnd;Gt++){const _e=xt[Gt];if(_e<cn.colStart)continue;let ct=!1;for(;Ut.length>0&&Ut[0].colStart<=_e;){const ft=Ut.shift();ft.colEnd>_e&&(bt.push(ft),ct=!0)}ct&&(bt=bt.sort(_t.rowFirstRangeComparator));const yt=Pe.getLayout(),Kt=yt.getColOffset(_e+1);let Wt=gt;for(let ft=0;ft<bt.length+1;ft++){let Vt=Wt,ho=kt;const xo=bt[ft];ft<bt.length&&(ho=Math.min(kt,yt.getRowOffset(xo.rowStart)),Wt=Math.min(kt,yt.getRowOffset(xo.rowEnd+1)));let $t=g;Ue.push(a.jsx("path",{d:`M ${Bt.boundPixel(Kt,!1,Ye)} ${Bt.boundPixel(Vt)} L ${Bt.boundPixel(Kt,!1,Ye)} ${Bt.boundPixel(ho)}`,stroke:$t,strokeWidth:1,vectorEffect:"non-scaling-stroke",...y},mt+_e+":"+ft))}for(let ft=bt.length-1;ft>=0;ft--)bt[ft].colEnd<=xt[Gt+1]&&bt.splice(ft,1)}}},Io=Pe=>{if(!Jt)return;const Ke={};for(let Ye=0;Ye<Be.length;Ye++){const Ue=Be[Ye],Qe=Ee[Ue],mt=[];ro(Qe,Pe,0,mt,Pe?Jt[Ue].rangesH:Jt[Ue].rangesV);const xt=Qe.getRangeCoordsBounds(),gt=Math.ceil(xt.width),kt=Math.ceil(xt.height);Ke[Ue]=a.jsx("svg",{width:`${gt}`,height:`${kt}`,viewBox:`0 0 ${gt} ${kt}`,preserveAspectRatio:"none",shapeRendering:"crispEdges",style:{position:"absolute"},children:mt})}return Ke},Go=s.useMemo(()=>m===!0||m?.horizontal===!0?Io(!0):null,[fe,m,ae,k,C,g,x,r,i,Se,Oe,Jt]),wo=s.useMemo(()=>m===!0||m?.vertical===!0?Io(!1):null,[fe,m,Q,k,C,g,y,r,i,H,Ie,Jt]),cr=s.useMemo(()=>Ze.left===0?null:a.jsx(Q0,{linePoints:[0,0,0,H+1],bounds:{x:Ze.left,y:0,width:1,height:H+1},..._}),[fe,Ze.left,H,_]),So=s.useMemo(()=>Ze.top===0?null:a.jsx(Q0,{linePoints:[0,0,Se+1,0],bounds:{x:0,y:Ze.top,width:Se+1,height:1},...I}),[fe,Ze.top,Se,I]),Ko=s.useMemo(()=>{const Pe=[],Ke=Ye=>{if(!Ye||!Ee[Ye])return;const Ue=Ee[Ye].getBounds();return a.jsxs("div",{style:{position:"absolute",pointerEvents:"none",left:Ue.x,top:Ue.y,width:Ue.width,height:Ue.height,clip:`rect(0, ${Ue.width+1}px, ${Ue.height+1}px, 0)`},className:`view view-${Ye}`,children:[Go?.[Ye],wo?.[Ye],Jt?.[Ye].cells]},`view:${Ye}`)};for(let Ye=0;Ye<Be.length;Ye++)Pe.push(Ke(Be[Ye]));return a.jsx(a.Fragment,{children:Pe})},[Ee,Go,wo,Jt]),yr=s.useMemo(()=>{if(!t)return;const Pe=(xt,gt,kt,bt)=>{if(!bt||bt.length===0)return;const Ut=[];for(let cn=0;cn<bt.length;cn++){const Gt=bt[cn];let _e=xt?.get(Gt);_e!==X1&&(_e=Gt(kt)??X1),gt.set(Gt,_e),_e&&_e!==X1&&Ut.push(_e)}return Ut},Ke=(xt,gt,kt)=>{if(!kt)return;const bt=kt.getBounds(),Ut=kt.getInsets(),cn=kt.getAnchor();return a.jsxs("div",{className:k0("view",`view-${cn}`,A6.view),style:{position:"absolute",pointerEvents:"none",left:bt.x-Ut.left,top:bt.y-Ut.top,width:bt.width-(Ut.left+Ut.right),height:bt.height-(Ut.top+Ut.bottom),clipPath:E?"inset(-2px)":"inset(0px)"},children:[Pe(xt,gt,kt,S),rn?.[cn].overlays]},`view:${cn}`)},Ye=pe.current,Ue={},Qe=[],mt=Object.keys(Ee);for(let xt=0;xt<mt.length;xt++){const gt=mt[xt],kt=Ye?.[gt],bt=Ue[gt]=new Map;Qe.push(Ke(kt,bt,Ee[gt]))}return pe.current=Ue,Qe},[fe,Ee,E,S]),Xo=s.useMemo(()=>{const{style:Pe,...Ke}=R??{};return a.jsx("div",{style:{width:Se,height:H,...Pe},className:"sheetxl-stage",tabIndex:0,ref:ue,...Ke,...B,children:A?A(Ko):Ko})},[Se,H,Ko,R,A]),uo=s.useRef(!1);return s.useEffect(()=>{!uo.current&&Jt&&(uo.current=!0,le?.(jt.current))},[Jt]),a.jsxs("div",{className:k0("sheetxl-grid",A6["sheetxl-grid"]),style:{overflow:"visible",cursor:b,maxWidth:Se,maxHeight:H,width:Se,height:H,...W},ref:jt,children:[Xo,a.jsxs("div",{className:k0("sheetxl-overlays"),ref:de,...D,children:[yr,cr,So]})]})}));gp.displayName="BaseGrid";const Gs=s.memo(s.forwardRef((e,t)=>{const{width:n,height:o,style:r={},className:i,...l}=e,[d,{width:c,height:u}]=pp();return a.jsx("div",{className:i,style:{...r},children:a.jsx("div",{style:{position:"relative",top:"0px",left:"0px",width:"100%",height:"100%",maxWidth:"100%",maxHeight:"100%",boxSizing:"content-box"},ref:d,children:a.jsx(gp,{ref:t,width:n??c,height:o??u,...l})})})}));Gs.displayName="Grid";const MS=s.memo(s.forwardRef((e,t)=>{const{showVerticalScrollbar:n,showHorizontalScrollbar:o,createHorizontalScrollbar:r,createVerticalScrollbar:i,createScrollCorner:l,viewport:d,onScrollViewport:c,style:u={},className:f,onScroll:p,...h}=e,[m,g]=s.useState(null),x=s.useRef(null),y=s.useRef(null);Za(!d),s.useImperativeHandle(t,()=>y.current&&x.current?Object.assign(y.current,x.current):null);const v=s.useCallback(b=>{y.current?.scrollTo(b),c?.(b)},[]);return a.jsx(rp,{className:f,style:u,ref:x,showVerticalScrollbar:n,showHorizontalScrollbar:o,createHorizontalScrollbar:r,createVerticalScrollbar:i,createScrollCorner:l,viewport:m,onScrollViewport:v,children:a.jsx(Gs,{style:{width:"100%",height:"100%"},...h,onViewportChange:b=>g(b),ref:y})})}));MS.displayName="ScrollableGrid";const z6=()=>!1,xp=s.memo(e=>{const{index:t,value:n,zoom:o,zoomScale:r=100,headerText:i=S=>`${S}`,headerStyle:l,headerStyleSelect:d=l,headerStyleSelectAll:c=d,headerStyleHover:u=c,verticalPadding:f=0,horizontalPadding:p=0,isSelected:h=z6,isSelectedAll:m=z6,coords:g,bounds:x,range:y,orientation:v,view:b,style:C,...k}=e,_=r/100,I=s.useRef(null),[M,F]=s.useState(!1),j=h?.(t)||!1,T=m?.(t)?c:j?d:l;let w=T;if(M){let S=u;typeof u=="function"&&(S=u(T)),w=oo.mergeContentful(T,S)}return a.jsx("div",{ref:I,style:{background:w.fill,color:w.text?.fill,fontFamily:w.text?.fontFamily??l.text?.fontFamily,fontSize:96*(w.text?.fontSize??11)/72*_,fontStyle:w.text?.fontStyle,fontWeight:w.text?.fontWeight,lineHeight:1.2,display:"flex",justifyContent:"center",alignItems:"end",pointerEvents:"auto",paddingBottom:`${_}px`,...C,left:C.left-(v===Lo?1:0),top:C.top-(v===Fr?1:0),width:C.width+1,height:C.height+1,overflow:"hidden"},...k,onMouseMove:S=>{Bt.detectIt().primaryInput!=="touch"&&S.buttons===0&&F(!0)},onMouseOut:S=>{F(!1)},children:i(t)})});xp.displayName="HeaderRenderer";const yp="ew-resize",bp="ns-resize",RS=s.memo(s.forwardRef((e,t)=>{const{orientation:n,view:o,index:r,className:i,style:l,disabled:d=!1,disabledResize:c=!1,isNextHidden:u,isHidden:f,isSelected:p,isSelectedAll:h,showTouchDivider:m,headerStyle:g,headerStyleSelect:x,headerStyleSelectAll:y,headerStyleHover:v,bounds:b,onPointerDown:C,onAutoFit:k,..._}=e,I=n===Lo;let M=g;p&&x&&(M=x),h&&y&&(M=y);const F=Bt.detectIt().primaryInput==="touch";let j=I?14:8,T=j/2,w=0;u&&(w=-2),f&&(w=2),f&&(j=j/2+w,T=2*w);let S=M.dividerStrokeFill??M.strokeFill;return!(p||h)&&w===0&&(S=`linear-gradient(${I?180:90}deg, ${M.fill}, ${S} 55%, ${S} 100%)`),a.jsxs("div",{className:k0("header-divider",{disabled:d},i,`index-${r}`),ref:t,onPointerDown:F?void 0:C,onDoubleClick:F?void 0:()=>k?.(),style:{top:(I?0:-j/2+(w-1))+"px",left:(I?-j/2+(w-1):0)+"px",width:I?j:"calc(100% + 1px)",height:I?"calc(100% + 1px)":j,position:"absolute",overflow:"visible",pointerEvents:"all",cursor:d||c||F?void 0:I?yp:bp,...l},..._,children:[a.jsx("div",{style:{position:"relative",top:`${I?0:T}px`,left:`${I?T:0}px`,width:I?1:"100%",height:I?"100%":1,background:S},onDoubleClick:()=>k?.()}),m&&F?a.jsx("div",{style:{position:"absolute",cursor:"grab",zIndex:1,borderRadius:"4px",right:I?"-6px":"2px",bottom:I?"2px":"-9px",height:"24px",width:I?"24px":"18px",maxHeight:I?"calc(100% - 4px)":void 0,maxWidth:I?void 0:"calc(100% - 4px)",background:M.fill,border:`${y.edgeStrokeFill} solid 1px`,boxShadow:`0.5px 0.5px 0px 0px ${g.text.fill}`,display:"flex",alignItems:"center",justifyContent:"center"},onPointerDown:C,children:a.jsx("div",{style:{width:"6.4px",height:"12px",backgroundImage:`url("data:image/svg+xml,%3Csvg width='6.4' height='12' viewBox='0 0 9.6 16' version='1.1' fill='${encodeURIComponent(x.text.fill)}' xmlns='http://www.w3.org/2000/svg' xmlns:svg='http://www.w3.org/2000/svg'%3E%3Cpath d='M 9.60008,14.40009 C 9.60008,15.28374 8.88368,16 8.00003,16 7.11639,16 6.40012,15.28374 6.40012,14.40009 c 0,-0.88365 0.71627,-1.60005 1.59991,-1.60005 0.88365,0 1.60005,0.7164 1.60005,1.60005 m 0,-6.40012 c 0,0.88364 -0.7164,1.60004 -1.60005,1.60004 -0.88364,0 -1.59991,-0.7164 -1.59991,-1.60004 0,-0.88365 0.71627,-1.60005 1.59991,-1.60005 0.88365,0 1.60005,0.7164 1.60005,1.60005 m 0,-6.40006 c 0,0.88365 -0.7164,1.60005 -1.60005,1.60005 -0.88364,0 -1.59991,-0.7164 -1.59991,-1.60005 C 6.40012,0.71626 7.11639,0 8.00003,0 8.88368,0 9.60008,0.71626 9.60008,1.59991 M 3.19996,14.40009 C 3.19996,15.28374 2.48369,16 1.60005,16 0.7164,16 0,15.28374 0,14.40009 c 0,-0.88365 0.7164,-1.60005 1.60005,-1.60005 0.88364,0 1.59991,0.7164 1.59991,1.60005 m 0,-6.40012 c 0,0.88364 -0.71627,1.60004 -1.59991,1.60004 C 0.7164,9.60001 0,8.88361 0,7.99997 0,7.11632 0.7164,6.39992 1.60005,6.39992 c 0.88364,0 1.59991,0.7164 1.59991,1.60005 m 0,-6.40006 c 0,0.88365 -0.71627,1.60005 -1.59991,1.60005 C 0.7164,3.19996 0,2.48356 0,1.59991 0,0.71626 0.7164,0 1.60005,0 2.48369,0 3.19996,0.71626 3.19996,1.59991' /%3E%3C/svg%3E%0A")`,backgroundRepeat:"no-repeat",backgroundPosition:"center",transform:I?void 0:"rotate(90deg)"}})}):null]})})),IS=(e,t)=>a.jsx(RS,{...e,ref:t}),DS=s.memo(s.forwardRef((e,t)=>{const{orientation:n,view:o,index:r,disabled:i=!1,disabledResize:l=!1,resizeThreshold:d=1,dividerRenderer:c=IS,onDividerMouseDown:u,onDividerResizeStart:f,onDividerResize:p,onDividerResizeEnd:h,onDividerMouseUp:m,onDividerAutoFit:g,onPointerDown:x,...y}=e,v=nt(x,[x]),b=nt(g,[g]),C=n===Lo;let k=C?o.getVisibleColumns():o.getVisibleRows(),_=null;k.length>0&&(C?_=o.getRangeCoordsBounds({rowStart:0,rowEnd:0,colStart:k[0],colEnd:k[k.length-1]}):o.getRangeCoordsBounds({rowStart:k[0],rowEnd:k[k.length-1],colStart:0,colEnd:0}),_=o.toClipBounds(_,Co));const I=s.useRef(null),[M,F]=s.useState(null),j=(L,P)=>C?L.clientX-P.clientX:L.clientY-P.clientY,T=o.getLayout(),w=C?T.getColOffset(r+1):T.getRowOffset(r+1),S=ii({processTouch:!0,onPointerDown:L=>{if(v?.(L),!i&&!l){const P=C?T.getColOffset(r):T.getRowOffset(r),z=w-P;I.current={isResizing:!1,startSize:z,index:r,view:o,orientation:n,onDividerMouseDown:u,onDividerResizeStart:f,onDividerResize:p,onDividerResizeEnd:h,onDividerMouseUp:m},F(I.current),u?.(r,z)}L.stopPropagation(),L.preventDefault()},onPointerUp:(L,P,z)=>{if(!I.current)return;I.current.isResizing&&I.current.onDividerResizeEnd?.(I.current.index,Math.max(0,I.current.startSize+j(L,z)),I.current.startSize);const U=I.current;I.current=null,F(I.current),U.onDividerMouseUp?.(U.index)},onPointerMoveOrWait:(L,P,z)=>{if(!I.current)return;const U=j(L,z);I.current.isResizing?I.current.onDividerResize?.(I.current.index,Math.max(0,I.current.startSize+U),I.current.startSize):Math.abs(U)>Math.max(1,d)&&(I.current={...I.current,isResizing:!0},F(I.current),I.current.onDividerResizeStart?.(I.current.index,Math.max(0,I.current.startSize+U))),L.stopPropagation(),L.preventDefault()}}),D=nt(()=>{b?.(r)},[r]);if(!_)return;const E=c({bounds:_,orientation:n,view:o,index:r,disabled:i,disabledResize:l,onAutoFit:D,onPointerDown:S,...y},t);if(!E)return;const{getPortalContainer:R}=ip();let A=null;return M&&M.isResizing&&M.index===r&&(A=eo.createPortal(a.jsx("div",{style:{position:"absolute",cursor:C?yp:bp,left:0,top:0,width:"100%",height:"100%"}}),R(),"divider:"+r)),a.jsxs(a.Fragment,{children:[A,a.jsx("div",{className:k0("header-divider-anchor"),style:{position:"absolute",pointerEvents:"auto",top:`${C?_.y:w}px`,left:`${C?w:_.x}px`,width:(C?0:_.width-1)+"px",height:(C?_.height-1:0)+"px",display:"flex"},tabIndex:-1,children:E})]})}));let LS=class{naturalDimensions(e,t={}){const n=document.createElement("div");let o=t?.lineHeight??"1";!t?.lineHeight&&t.paintableText?.fontSize&&(o=Math.ceil(1.2*t.paintableText.fontSize)+"px");const r=document.createElement("div");r.style.visibility="hidden",r.style.position="absolute",r.style.textRendering="geometricprecision",r.style.display="inline-grid",r.style.overflowWrap="break-word",r.style.maxWidth=t.maxWidth?t.maxWidth+"px":"100%",r.style.lineHeight=o,r.style.letterSpacing=(t.paintableText?.letterSpacing??0)+"px",r.style.fontSize=t.paintableText?.fontSize?t.paintableText.fontSize+"px":"unset",r.style.fontFamily=t.paintableText?.fontSize?t.paintableText.fontFamily:"unset",r.style.fontWeight=t.paintableText?.fontWeight?""+t.paintableText.fontWeight:"400",r.style.fontStyle=t.paintableText?.fontStyle?t.paintableText.fontStyle:"normal",r.style.whiteSpace=t.paintableText?.wrap==="wrap"?"break-spaces":"pre",n.appendChild(r);const i=e.split(`
56
- `);for(let d=0;d<i.length;d++){let c=document.createElement("span");r.appendChild(c),c.textContent=i[d]}i.length!==0&&i[i.length-1].length!==0||r.appendChild(document.createElement("br")),document.body.appendChild(r);let l=r.getBoundingClientRect();return r.remove(),{width:l.width,height:l.height,maxLineHeight:1.2*(t.paintableText?.fontSize||1056/72)}}};const OS=((e=void 0)=>Object.freeze({clean:e,dirty:void 0,editMode:!1}))();s.memo(s.forwardRef((e,t)=>{const{editState:n=OS,defaultTextStyle:o,onStartEdit:r,onChangeEdit:i,onSubmitEdit:l,onCancelEdit:d,onDoneEdit:c,containerBounds:u,setNaturalDimensions:f,onNavigate:p,textProperties:h,style:m,autoFocus:g,...x}=e,y=s.useRef(null),{width:v=0}=u??{},[b,C]=s.useState(()=>n);s.useEffect(()=>{C(n)},[n]);const k=h?.align||"left",_=h?.vAlign||"middle",I=h?.fill||"#040404",M=h?.wrap||"wrap",F=h?.fontFamily||"Calibri",j=h?.fontSize||11,T=h?.fontWeight||400,w=h?.fontStyle||"normal",S=b.dirty??b.clean??"";let D=2;const E=96*j/72,R=1.2*E;_==="right"&&(D+=1);const A=s.useMemo(()=>new LS().naturalDimensions(S,{maxWidth:M==="wrap"?v-D:void 0,lineHeight:`${R}px`,paintableText:{fontStyle:w,wrap:M,letterSpacing:-.25}}),[S,M,D,E,F,T,w,f,v]),L=s.useCallback(()=>A.maxLineHeight?A.maxLineHeight+"px":"1.2",[A]),[P,z]=s.useState(L);s.useLayoutEffect(()=>{z(L())},[u,A]),s.useLayoutEffect(()=>{f?.({width:M==="wrap"?void 0:A.width+D,height:A.height})},[A,f]);const U=nt(i,[i]),O=nt(G=>{if(b.dirty===G)return;const ie={...b};ie.dirty=G,y.current,C(ie),U?.(ie)},[b]),q=nt(G=>{if(b.editMode===G)return;const ie={...b};ie.editMode=G,C(ie),U?.(ie)},[b]),X=nt(()=>{try{return l?.(b),c?.(),!0}catch{return!1}},[l,b]),re=nt(()=>{C(n),d?.(),c?.()},[d,n]),$=nt(G=>{if(!y.current)return;if(G.isDefaultPrevented(),!(G.isTrusted||G.nativeEvent.ctrlKey||G.nativeEvent.metaKey||G.nativeEvent.altKey||G.nativeEvent.isComposing)&&c2.indexOf(G.nativeEvent.key)!==-1){const ee={...b};return ee.dirty=G.nativeEvent.key==="Backspace"?"":(ee.dirty??"")+G.key,C(ee),U?.(ee),void G.preventDefault()}const ie=G.nativeEvent.shiftKey;if(G.which===27)return G.preventDefault(),void re();if(G.which===113)return q(!0),void G.preventDefault();if(G.which===13&&(G.preventDefault(),X()&&p?.(ie?Sn:Cn)),G.which===9)return G.preventDefault(),void(X()&&p?.(ie?wn:gn));if(!b.editMode){let ee=null;switch(G.which){case 37:ee=wn;break;case 39:ee=gn;break;case 38:ee=Sn;break;case 40:ee=Cn}if(ee)return void X()}},[b,p]),[W,B]=s.useState(!g);s.useEffect(()=>{B(!1)},[]);const Z=qs(t,()=>({startEdit(G){let ie=G?.initialSelection;if(!ie){const le=y.current.value.length??0;ie={start:le,end:le,direction:"forward"}}y.current?.setSelectionRange(ie.start,ie.end,ie.direction);const ee={...n,editMode:G?.editMode??!1};G?.text!==void 0&&(ee.dirty=G.text),ee.editMode===n.editMode&&ee.dirty===n.dirty||(C(ee),U?.(ee))},submitEdit:()=>X(),cancelEdit(){re()},autoFocus(){y.current?.focus()},getLineHeight:()=>A?.maxLineHeight??R,dispatchEvent:G=>y.current.dispatchEvent(G)}),[n,r]);return a.jsx("div",{ref:Z,...x,style:{background:"transparent",display:"flex",flexGrow:1,alignSelf:"center",height:A.height,maxWidth:"100%",maxHeight:"100%",...m},children:a.jsx("textarea",{spellCheck:"false",ref:y,value:S,autoFocus:!1,disabled:W,name:"cell-editor",autoComplete:"off",autoCapitalize:"off",style:{flex:"1 1 100%",position:"relative",fontSize:`${E}px`,fontFamily:`${F}`,fontWeight:`${T}`,fontStyle:`${w}`,padding:"0px",marginRight:k==="right"?"3px":"0px",marginLeft:k==="left"?"2px":"0px",lineHeight:P,height:A.height,textRendering:"geometricPrecision",letterSpacing:"-0.25px",boxSizing:"border-box",borderWidth:0,outline:"none",resize:"none",overflow:"hidden",verticalAlign:"baseline",textAlign:k,background:"transparent",color:I,marginBottom:"0px",userSelect:"text",maxHeight:"100%",whiteSpace:M==="wrap"?"break-spaces":"pre",wordWrap:"break-word"},onChange:G=>{O(G.target.value)},onDoubleClick:G=>{G.isTrusted},onMouseDown:G=>{q(!0)},onKeyDown:$})})})),s.memo(e=>{const{value:t,view:n,bounds:o,range:r,zoom:i,children:l,style:d,...c}=e;return a.jsx("div",{style:{padding:"2px 4px",fontFamily:"Calibri",letterSpacing:-.25,lineHeight:1.2,fontSize:d?.fontSize||1056/72,...d},...c,children:t})}),function(){try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode(`._sheetxl-sheet_1qeq6_5 ._viewport-overlay_1qeq6_6{pointer-events:none}._sheetxl-sheet_1qeq6_5 ._viewport-overlay_1qeq6_6 *{pointer-events:initial}._sheetxl-sheet_1qeq6_5 .cell-container>*{overflow:hidden}._sheetxl-sheet_1qeq6_5 .cell-container .text-box{position:absolute}._sheetxl-sheet_1qeq6_5 .cell-container .text-line{text-rendering:optimizespeed;position:absolute;vertical-align:baseline;white-space:pre}._sheetxl-sheet_1qeq6_5 .cell-container .filter-button{position:absolute;display:flex;align-items:center;justify-content:center;flex-direction:row;margin-bottom:4px}._sheetxl-sheet_1qeq6_5 .cell-container .text-debug-bounds{position:absolute;background:green;pointer-events:none;opacity:.2}._sheetxl-sheet_1qeq6_5 .cell-container .fill{position:absolute}._sheetxl-sheet_1qeq6_5 .cell-container .pending{width:6px;height:6px;top:5px;left:4px;position:absolute;border:var(--sxl-app-color-primary-dark, grey) .5px;border-style:double;border-radius:50%;background-color:var(--sxl-app-color-button-surface, grey);opacity:1;animation:_pulse_1qeq6_1 1.5s infinite alternate}@keyframes _pulse_1qeq6_1{0%{transform:scale(1);opacity:1}50%{transform:scale(1.2);opacity:.8}to{transform:scale(1);opacity:1}}._sheetxl-sheet_1qeq6_5 .cell-container .slider{position:absolute;width:130%;height:2px;bottom:1px;opacity:0;animation:_fadeIn_1qeq6_1 0s .5s forwards;overflow-x:hidden}._sheetxl-sheet_1qeq6_5 .cell-container .line{position:absolute;opacity:.3;background:var(--sxl-app-color-primary-light, rgb(173, 173, 173)) .5px;width:100%;height:2px}._sheetxl-sheet_1qeq6_5 .cell-container .subline{position:absolute;background:var(--sxl-app-color-primary, rgb(77, 77, 77)) .5px;opacity:.9;height:3px}._sheetxl-sheet_1qeq6_5 .cell-container .inc{animation-delay:0s;animation:_increase_1qeq6_1 3s infinite}@keyframes _fadeIn_1qeq6_1{0%{opacity:0;height:0px}to{opacity:1;height:2px}}@keyframes _increase_1qeq6_1{0%{left:-150%;width:30%;animation-timing-function:ease}to{left:100%;width:30%}}._sheet-selection_12wyx_5 .fill-handle .dragging,._movable-area_314c6_5 .moveable-control-box .dragging{opacity:0}._movable-area_314c6_5 .moveable-control-box .moveable-control{width:11px;height:11px;margin-top:-5.5px;margin-left:-5.5px;background-color:var(--sxl-app-color-background, white);background-image:var(--sxl-app-image-background);border:2px solid var(--sxl-app-color-primary-dark, grey)}._movable-area_314c6_5 .moveable-control-box .moveable-line{background:var(--sxl-app-color-grey, grey)}@media (pointer: coarse){._movable-area_314c6_5 .moveable-control-box .moveable-control{width:22px;height:22px;margin-top:-11px;margin-left:-11px}}._editable-input_1bqx6_6{position:absolute;left:0;top:0;width:100%;min-height:calc(100% + 1px);border:none;padding:0;outline:none;color:inherit;font-family:inherit;font-size:inherit;font-weight:inherit;line-height:1.2;letter-spacing:inherit;text-transform:inherit;background:transparent}@keyframes _pop_1wyun_1{0%{transform:scale(1)}to{transform:scale(var(--scale))}}@keyframes _fadeIn_1wyun_33{0%{opacity:0}to{opacity:1}}._Wrapper_1wyun_25{display:flex;box-sizing:border-box;transform:translate3d(var(--translate-x, 0),var(--translate-y, 0),0) scaleX(var(--scale-x, 1)) scaleY(var(--scale-y, 1));transform-origin:0 0;touch-action:manipulation}._Wrapper_1wyun_25._dragOverlay_1wyun_37{z-index:999}._Item_1wyun_47{position:relative;display:flex;align-items:center;outline:none;box-sizing:border-box;transform-origin:50% 50%;-webkit-tap-highlight-color:transparent;transform:scale(var(--scale, 1))}._Item_1wyun_47:not(._withHandle_1wyun_61){touch-action:manipulation}._Item_1wyun_47._dragging_1wyun_66:not(._dragOverlay_1wyun_37){z-index:999}._Item_1wyun_47._dragOverlay_1wyun_37{cursor:inherit;animation:_pop_1wyun_1 .2s cubic-bezier(.18,.67,.6,1.22);transform:scale(var(--scale));opacity:1}._Row_1kr10_1{display:flex;box-sizing:border-box}._TabStrip_3x0dp_1::-webkit-scrollbar{display:none;height:0px}._TabStrip_3x0dp_1{overflow-y:auto;overflow-x:hidden;position:relative}._script-editor_iy654_5 .monaco-editor{position:absolute}._script-editor_iy654_5 .monaco-editor .margin-icon{display:block;width:16px;height:16px;background-size:16px;background-repeat:no-repeat;background-position:center;background-size:contain}._script-editor_iy654_5 .monaco-editor .formula{background-image:url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="grey"><path d="m 12.106007,8.1692949 c 0.124174,-0.1578352 0.181773,-0.3565642 0.283755,-0.5271169 0.10273,-0.1715492 0.04413,-0.2027176 -0.129161,-0.2014713 -0.685452,0.00576 -1.371152,-0.00277 -2.056604,0.00501 C 10.021228,7.4479573 9.9586414,7.407817 9.9935503,7.2080883 10.145401,6.3413623 10.291269,5.4736396 10.51219,4.6213758 10.642847,4.1167002 10.782479,3.6117747 11.061498,3.1622046 11.339518,2.7138809 11.726751,2.5974365 12.2035,2.829328 c 0.398455,0.1934923 0.722604,0.4827333 0.990152,0.8340617 0.116944,0.1535968 0.27079,0.2740306 0.449073,0.1715499 0.343348,-0.1974819 0.644807,-0.4383502 0.819599,-0.826332 0.100985,-0.2244112 0.157836,-0.476001 0.04039,-0.7058977 C 14.339646,1.9840253 14.038187,1.7618584 13.707056,1.6394296 13.156999,1.4362128 12.562559,1.4840872 12.017239,1.6758341 11.38789,1.8970037 10.783727,2.2625445 10.259602,2.6724688 10.066109,2.8238217 9.8783519,2.9839017 9.7013165,3.1547035 9.0502751,3.7823067 8.5657962,4.529097 8.2246919,5.3651534 7.9823276,5.9595939 7.7888351,6.5660026 7.6913412,7.2015842 7.673637,7.318528 7.6357391,7.423253 7.5065759,7.4432009 7.3472438,7.4678879 7.1592376,7.4436995 6.9974121,7.4441728 6.6351128,7.4451447 6.2598478,7.3676233 5.9915515,7.6815496 5.8721151,7.8211835 5.7461952,7.9840062 5.6439635,8.1371045 c -0.1009847,0.1518511 -0.093255,0.3002122 0.085027,0.367535 0.1957362,0.073561 0.4528118,0.026182 0.6530361,0.0197 0.2645558,-0.00847 0.5291116,0.00501 0.7936674,-7.476e-4 0.1820229,-0.00374 0.2413669,0.030421 0.2064588,0.2358807 C 7.3487406,8.9587006 7.3095941,9.1492003 7.2804197,9.3464333 7.1804317,10.024404 7.0667304,10.700629 6.9525298,11.376606 6.7936963,12.314146 6.6371075,13.252434 6.4655575,14.188478 6.3017374,15.082631 6.1855427,15.985013 5.983074,16.873433 5.8249883,17.568607 5.7240037,18.277248 5.5556954,18.969682 5.4145655,19.550158 5.293882,20.143601 4.9722259,20.665731 4.7380909,21.045734 4.3959882,21.206312 3.9663652,21.104829 3.5778849,21.012322 3.2115961,20.866205 2.8951763,20.608631 2.6862246,20.438328 2.4473513,20.31141 2.1920214,20.458026 1.9519014,20.595915 1.7791048,20.851743 1.646453,21.088123 1.2205704,21.847879 1.915497,22.569984 2.6655289,22.684434 3.1692071,22.760986 3.666153,22.580208 4.1087416,22.356046 4.6996913,22.056582 5.2103511,21.635437 5.6387269,21.13874 5.9898058,20.731558 6.3575906,20.343327 6.6500737,19.890016 6.8450616,19.58756 7.0238427,19.274881 7.1866655,18.954471 7.7639005,17.817206 8.1227091,16.589926 8.4189318,15.354418 8.5613081,14.760227 8.716401,14.169777 8.8478064,13.572843 9.0268365,12.760724 9.1741996,11.934891 9.3083481,11.114294 9.3749255,10.707112 9.4310263,10.300679 9.5160532,9.8967389 9.5861222,9.5636133 9.6442168,9.2185186 9.6890985,8.8814035 9.7414633,8.4891827 9.990308,8.5136187 10.329668,8.4762164 c 0.286249,-0.03167 0.574492,-0.046376 0.861739,-0.067571 0.230395,-0.016703 0.494951,0.00396 0.711881,-0.088019 0.07754,-0.032911 0.147613,-0.080788 0.202719,-0.1513533 z"/><path d="M 22.473802,7.8481382 C 22.426924,7.6912996 22.341898,7.5501696 22.231437,7.4294861 22.130452,7.3192756 21.987827,7.1749046 21.851933,7.1098255 21.411589,6.8988785 20.817398,7.0838898 20.436149,7.3422154 20.23343,7.479854 20.052405,7.6519026 19.871131,7.8167201 19.691352,7.9802913 19.517061,8.1488492 19.35723,8.3321177 19.025101,8.7128687 18.724639,9.1210479 18.436396,9.5354601 18.296263,9.7374301 17.901549,10.472252 17.781115,10.399942 17.654198,10.323892 17.495365,9.5905657 17.435023,9.3843566 17.351243,9.0978583 17.29539,8.8016361 17.161741,8.5323425 16.97922,8.1643081 16.865268,7.7623629 16.608941,7.4307332 16.325934,7.0639457 16.001036,6.9584722 15.558946,7.092371 c -0.43436,0.1314054 -0.78469,0.4049374 -1.128539,0.6819608 -0.503927,0.4056851 -0.879442,0.926319 -1.256951,1.4439609 -0.28226,0.387483 -0.284753,0.3857373 0.04488,0.7380631 0.206458,0.2211702 0.202718,0.2184272 0.389229,-0.00847 0.2663,-0.3251469 0.524872,-0.6595196 0.882433,-0.8934057 0.261315,-0.1713009 0.417904,-0.1368908 0.57948,0.1326518 0.07929,0.1326517 0.146866,0.2752777 0.200225,0.4208957 0.335619,0.9141014 0.590201,1.8541344 0.89191,2.7784594 0.03815,0.117691 -0.01122,0.193991 -0.06707,0.278519 -0.356565,0.538837 -0.719363,1.074182 -1.123054,1.578607 -0.320409,0.401198 -0.643312,0.803891 -1.073932,1.097621 -0.187757,0.128912 -0.40768,0.217679 -0.635831,0.156839 -0.233887,-0.06283 -0.37377,-0.27478 -0.587459,-0.373521 -0.006,-0.003 -0.01272,-0.0052 -0.01895,-0.0079 -0.09974,-0.04064 -0.249845,-0.0389 -0.353074,-0.01571 -0.454059,0.102482 -0.697669,0.614139 -0.790177,1.023813 -0.08379,0.371776 -0.0013,0.778209 0.261315,1.062463 0.228899,0.24785 0.572248,0.351327 0.901634,0.356315 0.189003,0.0028 0.39995,-0.04663 0.57549,-0.11445 0.670241,-0.262062 1.181649,-0.887172 1.605038,-1.441717 0.285501,-0.374517 0.550555,-0.763994 0.829573,-1.143499 0.230645,-0.313677 0.68595,-1.247726 0.81586,-1.250718 0.07854,-0.0017 0.09924,0.185762 0.114199,0.241117 0.03341,0.123675 0.06658,0.247351 0.102232,0.370279 0.167561,0.578481 0.343848,1.156464 0.525122,1.730458 0.120934,0.384242 0.315921,0.782697 0.560779,1.103356 0.07431,0.09749 0.167311,0.190749 0.26306,0.266799 0.371276,0.296972 0.838799,0.27453 1.266177,0.123177 0.191498,-0.06757 0.370029,-0.163071 0.539335,-0.275527 0.781948,-0.519886 1.340732,-1.244235 1.868598,-2.002495 0.124423,-0.178781 0.107467,-0.278769 -0.03441,-0.428127 -0.367286,-0.386237 -0.357062,-0.389727 -0.705149,0.01995 -0.261066,0.306446 -0.527117,0.612643 -0.879442,0.818851 -0.245855,0.144621 -0.413416,0.103229 -0.592696,-0.118439 -0.14861,-0.183518 -0.246353,-0.396709 -0.33138,-0.614886 -0.349831,-0.901136 -0.588954,-1.838675 -0.885177,-2.757515 -0.21743,-0.674231 -0.223414,-0.680464 0.20945,-1.248723 0.447575,-0.587708 0.875703,-1.1968602 1.462163,-1.6613914 0.431119,-0.3416031 0.73183,-0.3226534 1.129037,0.059094 0.0788,0.075801 0.207456,0.1388856 0.316919,0.1476127 0.369781,0.029674 0.691187,-0.3024566 0.880939,-0.5792304 0.188006,-0.2727835 0.259319,-0.6183768 0.163072,-0.9392845 z"/></svg>');cursor:pointer}._script-editor_iy654_5 .monaco-editor .macro{background-image:url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="grey"><path d="M 5.1933594,1.4433594 6.3417969,2.5234375 6.2109375,2.6621094 c -3.466072,3.6769426 -3.467641,9.6565186 0,13.3339846 l 0.1308594,0.136718 -1.1484375,1.082032 -0.1328125,-0.140625 c -4.0371886,-4.28224 -4.0373752,-11.2077961 0,-15.4902346 z m 14.4726566,0 0.132812,0.140625 c 4.03717,4.2822197 4.037356,11.2058636 0,15.4882816 l -0.132812,0.140625 -1.148438,-1.080079 0.130859,-0.138671 c 3.465532,-3.675243 3.466902,-9.6542123 0,-13.3320316 L 18.517578,2.5234375 Z M 7.7597656,4.4335937 8.8769531,5.5488281 8.7421875,5.6816406 c -2.0366665,2.0366662 -2.037411,5.3404354 0,7.3769534 L 8.8769531,13.191406 7.7597656,14.310547 7.625,14.173828 C 4.9718615,11.520692 4.9723209,7.222936 7.6269531,4.5683594 Z m 9.3398434,0 0.132813,0.1347657 c 2.653779,2.6537788 2.65545,6.9500666 0,9.6054686 l -0.132813,0.136719 -1.117187,-1.119141 0.134765,-0.132812 c 2.036637,-2.035554 2.037534,-5.3391996 0,-7.3769534 L 15.982422,5.5488281 Z m -4.669921,1.7011719 c 0.811773,0 1.627703,0.304374 2.25,0.90625 1.260638,1.2198223 1.260413,3.1986104 0,4.4179684 -0.355144,0.343115 -0.779063,0.585007 -1.226563,0.732422 l -0.234375,0.07617 v 3.386719 h 0.002 v 6.048828 c 0,0.436615 -0.351565,0.791016 -0.789062,0.791016 -0.43763,0 -0.791016,-0.354618 -0.791016,-0.791016 v -3.308594 -6.126953 l -0.234375,-0.07617 c -0.448339,-0.147699 -0.871819,-0.38969 -1.226562,-0.732422 -1.2608671,-1.22004 -1.2605877,-3.1984433 0,-4.4179684 0.62227,-0.6019293 1.438264,-0.90625 2.25,-0.90625 z m 0,1.5820313 c -0.417461,0 -0.829931,0.1510762 -1.146485,0.4570312 -0.615751,0.5967629 -0.616877,1.5583713 0,2.1562499 0.314469,0.303373 0.726552,0.455078 1.146485,0.455078 0.421182,0 0.833304,-0.153008 1.148437,-0.457031 0.61548,-0.5965047 0.616739,-1.5585025 0,-2.15625 C 13.261859,7.8661993 12.846121,7.7167969 12.429688,7.7167969 Z"/></svg>');cursor:pointer}._script-editor_iy654_5 .monaco-editor .autorun{background-image:url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="grey"><path d="M10 15h5.88c.27-.31.67-.5 1.12-.5.83 0 1.5.67 1.5 1.5s-.67 1.5-1.5 1.5c-.44 0-.84-.19-1.12-.5H11.9c-.46 2.28-2.48 4-4.9 4-2.76 0-5-2.24-5-5 0-2.42 1.72-4.44 4-4.9v2.07c-1.16.41-2 1.53-2 2.83 0 1.65 1.35 3 3 3s3-1.35 3-3zm2.5-11c1.65 0 3 1.35 3 3h2c0-2.76-2.24-5-5-5s-5 2.24-5 5c0 1.43.6 2.71 1.55 3.62l-2.35 3.9c-.68.14-1.2.75-1.2 1.48 0 .83.67 1.5 1.5 1.5s1.5-.67 1.5-1.5c0-.16-.02-.31-.07-.45l3.38-5.63C10.49 9.61 9.5 8.42 9.5 7c0-1.65 1.35-3 3-3m4.5 9c-.64 0-1.23.2-1.72.54l-3.05-5.07C11.53 8.35 11 7.74 11 7c0-.83.67-1.5 1.5-1.5S14 6.17 14 7c0 .15-.02.29-.06.43l2.19 3.65c.28-.05.57-.08.87-.08 2.76 0 5 2.24 5 5s-2.24 5-5 5c-1.85 0-3.47-1.01-4.33-2.5h2.67c.48.32 1.05.5 1.66.5 1.65 0 3-1.35 3-3s-1.35-3-3-3"/></svg>');cursor:pointer}`)),document.head.appendChild(e)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}}();const Ol=(e=6e4)=>new Date(Math.floor(Date.now()/e)*e);Object.freeze(Object.defineProperty({__proto__:null,nowWithPrecision:Ol},Symbol.toStringTag,{value:"Module"}));const vp=Object.freeze([8,9,10,11,12,14,16,18,20,22,24,26,28,30,36,48,72]),ud=(e,t=!0,n=vp)=>{if(!n||n.length===0)return e;if(e===void 0)return n[0];if(t&&e>=n[n.length-1]||!t&&e<=n[0])return e;let o=Lt.findEqualOrGreater(n,e);return t?(n[o]===e&&(o+=1),n[o]||(o-=1),n[o]):(o-=1,n[o])},PS=Object.freeze(Object.defineProperty({__proto__:null,DefaultFontSizes:vp,findNextFontSize:ud},Symbol.toStringTag,{value:"Module"})),B6=s.memo(e=>{const{anchorLocation:t=qn.TopLeft,cellWidth:n,cellHeight:o,size:r=7,inset:i=1,darkMode:l,fill:d,pathProps:c,style:u,...f}=e,p=r,h=i;let m="red",g=[],x=[];return t===qn.TopLeft?(m=l?"rgb(255, 198, 246)":"green",g.push(h),x.push(h),g.push(h+p),x.push(h),g.push(h),x.push(h+p)):t===qn.TopRight?(m=l?"rgb(0, 255, 255)":"red",g.push(n-h),x.push(h),g.push(n-(h+p)),x.push(h),g.push(n-h),x.push(h+p)):t===qn.BottomRight?(m=l?"rgb(236, 252, 211)":"purple",g.push(n-h),x.push(o-h),g.push(n-(h+p)),x.push(o-h),g.push(n-h),x.push(o-(h+p))):t===qn.BottomLeft&&(m=l?"rgb(255, 236, 183)":"blue",g.push(h),x.push(o-h),g.push(h+p),x.push(o-h),g.push(h),x.push(o-(h+p))),a.jsx("svg",{width:`${n}`,height:`${o}`,viewBox:`0 0 ${n} ${o}`,style:{position:"absolute",width:`${n}px`,height:`${o}px`,pointerEvents:"none",...u},...f,children:a.jsx("path",{d:`M ${g[0]} ${x[0]} L ${g[1]} ${x[1]} L ${g[2]} ${x[2]} L ${g[0]} ${x[0]} Z`,fill:d??m,...c})})}),AS=e=>{const{renderBounds:t,darkMode:n,zoom:o,disabled:r,filter:i,onFilterButtonMouseDown:l,style:d,...c}=e,u=s.useMemo(()=>{let m=null;const g=i.getSortField();g&&(m=g.reverse);const x=i.getField(),y=x&&x.criteria&&x.criteria.length>0;return m===!0?y?"m 9.429858,10.25386 2,-1 v -3 l 3,-4 h -8 l 3,4 z M 5.849492,9.452298 H 4.24187 V 2.0761788 H 3.170122 V 9.452298 H 1.5625 l 2.143496,2.950446 z":"m 13.109228,9.865914 h -1.607622 v -7.37612 h -1.071748 v 7.37612 H 8.822236 l 2.143496,2.950446 z M 0.75000004,9.15 4.3000002,13.094444 7.8500003,9.15 Z":m===!1?y?"m 9.429858,10.25386 2,-1 v -3 l 3,-4 h -8 l 3,4 z M 5.849492,5.0266248 H 4.24187 V 12.402744 H 3.170122 V 5.0266248 H 1.5625 l 2.143496,-2.950446 z":"m 13.109228,5.44024 h -1.607622 v 7.37612 H 10.429858 V 5.44024 H 8.822236 L 10.965732,2.489794 Z M 0.75000004,9.15 4.3000002,13.094444 7.8500003,9.15 Z":y?"m 9.429858,10.25386 2,-1 v -3 l 3,-4 h -8 l 3,4 z M 0.75000004,9.15 4.3000002,13.094444 7.8500003,9.15 Z":"m 3,5.025 4.5,5 4.5,-5 z"},[i]),[f,p]=s.useState(!1),h=Math.min(Math.min(18,t.height-8),t.width);return a.jsx("div",{style:{width:`${h}px`,height:`${h}px`,right:"0px",boxShadow:`0px 0px 0px 0.5px var(${f&&!r?"--sxl-app-color-primary-light, rgba(0,0,0,.55)":"--sxl-app-color-border-button, grey"})`,backgroundColor:"var(--sxl-app-color-button-fill, white)",backgroundImage:"var(--sxl-app-image-background)",borderRadius:(h>12?1:0)+"px",marginRight:"2px",display:"flex",alignItems:"center",justifyContent:"center",cursor:r?void 0:"pointer",...d},onMouseEnter:()=>p(!0),onMouseLeave:()=>p(!1),onMouseDown:m=>{l?.(m,i)},...c,children:a.jsx("svg",{width:""+15*o,height:""+15*o,viewBox:"0 0 15 15",style:{fill:`var(${f&&!r?"--sxl-app-color-primary-dark":"--sxl-app-color-button-text"}, grey)`,opacity:r?.6:1},children:a.jsx("path",{d:u})})})},FS=e=>{const{value:t,coords:n,bounds:o,children:r,style:i,range:l,zoom:d=1,view:c,bodyStyle:u,normalStyle:f,showFormulas:p,showZeros:h,docTheme:m,onLinkMouseDown:g,onFilterButtonMouseDown:x,filterButtonProps:y,createFilterButton:v=AS,...b}=e,C=o.height/d,k=o.width/d,_=t,I=_.getValue(),M=t.getStyle(),F=u?.darkMode??!1;let j,T;const w=I&&I.isFormulaError,S=w&&I instanceof N.FormulaError.Parse;let D,E=p||S;if(E)if(_.isSpillOverflow())T="";else{const Ge=_.getFormulaText();Ge?T=Ge:j=_.getNumberFormat(N.NumberFormat.Type.General)}else j=_.getNumberFormat();E||(D=_.getTextOverflow());const R=D?D.colBounds.width+D.leftOffset+D.rightOffset:k,A=D?D.anchorBounds.x-D.leftOffset:0,L=D?D.anchorBounds.width:k,P=D?D.anchorBounds.x:0;let z,U=_.getRenderHorizontalAlignment();j&&(z=j?.formattedRuns,T=z?.runs[0]?.text??j.displayText);const O=_.getCalcStatus()===N.ICell.CalcStatus.Pending;let q=null,X=M.getFill().toCSS(F,o),re=0,$=0;if(!M.getBorder().isEmpty()){const Ge=M.getBorder().getRight();!Ge.isNone()&&N.IBorder.BuiltInDefinitions.get(Ge.getStyle()).width>1&&(re=1);const se=M.getBorder().getBottom();!se.isNone()&&N.IBorder.BuiltInDefinitions.get(se.getStyle()).width>1&&($=1)}let W=null;if(k!==L||re||$||typeof X?.backgroundPosition=="number"){const{backgroundPosition:Ge,...se}=X,We=Ge??0,be=c?.getScrollTopLeft(),Se=We?-(o.x+(be.left??0))%We:0,H=We?-(o.y+(be.top??0))%We:0;(Ge!==void 0||re||$||k!==L)&&(Object.keys(se).length===1&&se.background==="none"||(X=null,W=a.jsx("div",{className:"fill",style:{marginLeft:`${Se}px`,marginTop:`${H}px`,left:P*d,width:nn.boundPixel(L*d-Se+1+re),height:nn.boundPixel(o.height-H+1+$),...se}},"background")))}let B=null;const Z=_.getComments(),G=_.getWarnings(),ie=_.getErrors();if(Z||w||ie.length>0||G.length>0){const Ge={size:7*d,darkMode:F,cellWidth:L*d+2,cellHeight:C*d+2,style:{top:-1,left:P*d-1}};B=B??[],(G.length>0||ie.length>0||w)&&B.push(a.jsx(B6,{anchorLocation:qn.TopLeft,...Ge},`indicator-${B.length}`)),Z&&B.push(a.jsx(B6,{anchorLocation:qn.TopRight,...Ge},`indicator-${B.length}`))}const ee=M.getFont();let le=j?.conditionalColor;const ue=M.getAlignment(),de=ue.getHorizontal()===N.ITextFrame.HorizontalAlignment.Fill,oe=ue.getHorizontal()===N.ITextFrame.HorizontalAlignment.CenterContinuous||de,fe=oe||E?0:ue.getRotation(),Te=_.getInsets(),Le=Te.top+Te.bottom;let ce=Te.left,he=Te.right;const we={...i,left:i.left-1,top:i.top-1,width:i.width+1+re,height:i.height+1+$},Y=_.getColumnFilter(),ze=Y&&!Y?.hasHiddenButton();let ht=null;O&&(ht=a.jsxs("div",{className:"slider",children:[a.jsx("div",{className:"line"}),a.jsx("div",{className:"subline inc"})]},"pending"));const ut=!(O||ze||W||r||B||z?.runs.length>1||D||fe%360!=0);X?.background==="none"&&(X=null);let ke=oe||!(!D||!(D.rightIndex>0||D.leftIndex>0||D.colSpan>1));if(!ke){const Ge=_.getSpans();(Ge.width>1||Ge.height>1)&&(ke=!0)}const ot={...X,...we,pointerEvents:g?"auto":void 0};if(!Lt.isEmpty(T)||!Lt.isEmpty(j?.repeatPlaceholder)){const Ge=j?.canWrap??!1;let se=null,We=null,be=null,Se=[],H=!0;h||E||I!==0||(H=!1);const te=_.getTextFrame(E);if(H&&te){let ne=R-1-(ce+he);if(fe){se=te.layout().bounds;const Ie={x:0,y:0,width:R-1,height:C};if(z){let Ze=z.width;if(j.repeatPlaceholder||j.repeatChars.length>0){const Ne=N.GeomUtils.boundsToPoints(Ie),qe=N.GeomUtils.rotatePoints(Ne,-fe);Ze=N.GeomUtils.minBoundingRect(qe).width}se={...se,width:Ze}}be=N.GeomUtils.clipToOuterRect({...se,width:se.width+1+ce+he},Ie,fe),ne=be.width-1-(ce+he)+.01}let J=null;Ge&&(J={width:ne});let ae=null,Q=j?.repeatPlaceholder;const pe=te.layout(J);if(se=pe.bounds,E?se={...se,width:0}:z&&(se={...se,width:j.repeatPlaceholder||j.repeatChars.length>0?ne:z.width}),fe&&Ge){let Ie=null;pe.visitLines({visitTextLine:(Ze,Ne)=>{let qe=Ze.bounds;const lt=N.GeomUtils.boundsToPoints(qe),wt=N.GeomUtils.rotatePoints(lt,fe),Xe=N.GeomUtils.minBoundingRect(wt);qe={...qe,x:(Xe.width-qe.width)/2,y:(Xe.height-qe.height)/2},Ie=Ie?N.GeomUtils.unionBounds(Ie,qe):qe}}),se={...Ie,width:Ie.width+ce+he}}if(!Q&&_.getType()!==N.ScalarType.String&&Math.floor(se.width)>ne){if(M.getNumberFormat()==="General"&&_.getType()===N.ScalarType.Number){const Ie=M.measureText("0"),Ze=Math.floor(ne/Ie.width),Ne=I,qe=Lt.splitNumber(Ne),lt=Math.min(10,Ze-(Math.max(1,qe.ipLength)+1)-(Ne<0?1:0));if(lt>=-1){const wt=`0${lt>0?".":""}${"#".repeat(Math.max(0,lt))}`;ae=_.getNumberFormat(wt).displayText,ae==="0"&&Ne<0&&(ae="-0")}else if(Math.abs(Ne)>=Math.pow(10,5)||Math.abs(Ne)<=Math.pow(10,-5)){const wt=Ze-5-(Ne<0?1:0);if(wt>=0){const Xe=`0.${"0".repeat(Math.max(0,wt-1))}E+00`;ae=_.getNumberFormat(Xe).displayText}}}ae||(Q="#")}if(!Q&&z?.lastRepeatIndex>=0&&z?.width>ne&&(Q="#"),Q&&ne>0){const Ie=M.measureText(Q),Ze=Math.floor((ne||1)/(Ie?.width||1));ae=Ze>0?Q.repeat(Ze):""}if(E&&(U=N.ITextFrame.HorizontalAlignment.Left),ae){const Ie=M.measureText(ae).width;Ie&&(se={...se,width:Ie})}if(We={...se,width:se.width+ce+he,height:se.height},fe&&!Ge){const Ie=N.GeomUtils.boundsToPoints(We),Ze=N.GeomUtils.rotatePoints(Ie,fe),Ne=N.GeomUtils.minBoundingRect(Ze);We.width=Ne.width,We.height=Ne.height}U===N.ITextFrame.HorizontalAlignment.Center||U===N.ITextFrame.HorizontalAlignment.CenterContinuous?We.x=(R-We.width)/2:U===N.ITextFrame.HorizontalAlignment.Right?We.x=R-We.width-.5:We.x=.5,ue.getVertical()===N.ITextFrame.VerticalAlignment.Center?We.y=(C-We.height)/2:ue.getVertical()===N.ITextFrame.VerticalAlignment.Bottom?We.y=C-We.height-Le:We.y=Le;const ge=ut?{...b}:void 0,Ee={style:{left:i.left-1,top:i.top-1,width:i.width+1,height:i.height+1,transform:fe?`rotate(${fe}deg)`:void 0,cursor:g?"pointer":void 0,pointerEvents:g?"auto":void 0,zIndex:ke?1:void 0,...X},onMouseDown:g,onDoubleClick:g?Ie=>{Ie.stopPropagation(),Ie.preventDefault()}:null,...ge};S&&(Ee.style.textDecorationStyle="wavy",Ee.style.textDecorationColor=F?"rgb(0, 255, 255)":"red",Ee.style.textDecorationLine="underline");const Be=ee.getSize(),Oe=(Ie,Ze,Ne,qe,lt,wt,Xe,St=null)=>{let Ct=Be*d,it=Ne,Ot=Xe?.runs?Xe.runs:[{type:N.NumberFormat.ParseRunType.Text,text:Ie,width:M.measureText(Ie,Ct).width}];Xe&&Xe?.width!==se.width&&(se={...se,width:Xe?.width});let sn=ce;if(Xe?.lastRepeatIndex>=0&&ne>Xe?.width){const At=Xe.runs[Xe.lastRepeatIndex];if(At){const jt=[...Ot],un=Math.max(0,ne-1-Xe.width);let vn=0,rn="";if(un>0){const ln=Math.floor(un/At.width);rn=ln>0?At.text.repeat(ln):"",vn=un}jt[Xe.lastRepeatIndex]={type:N.NumberFormat.ParseRunType.Repeat,text:rn,width:vn},Ot=jt,se={...se,width:Xe.width+vn}}}const yn=(At,jt,un,vn,rn,ln,Jt,ro,Io,Go=null)=>{let wo,cr=it.width;lt===N.ITextFrame.HorizontalAlignment.Justify?(cr=rn,wt||(wo="justify")):lt===N.ITextFrame.HorizontalAlignment.Distributed&&(cr=rn,wo=wt||At.text.split(" ").length-1==0?"center":"justify");const{style:So,className:Ko,...yr}=Go;let Xo=At.text;if(lt===N.ITextFrame.HorizontalAlignment.Fill&&j?.repeatChars.length===0){const gt=Math.max(1,Math.floor((it?.width??0)/(Jt?.width??1)));Xo=Xo.repeat(gt)}let uo=it.height;const Pe=ee.getVerticalAlignment(),Ke=Pe===N.IFont.VerticalAlignment.Sub,Ye=Pe===N.IFont.VerticalAlignment.Super;if(Ke||Ye){const gt=ee.getSuperSubScale();Ct*=gt,uo*=gt}const Ue={textAlign:wo,textAlignLast:wo,background:void 0,...So,...ee.toCSS(F,d,!0),fontSize:Ct*N.IFont.getDeviceScale()};le&&(Ue.color=le.toCSS(F));const Qe=sn+jt;let mt=Te.top+it.y+0;if(Ke&&(mt+=Io-Ct),ln){const gt=(Jt.x+Qe)*d+1,kt=(Jt.y+mt)*d+1;kt<0?Ue.marginTop=kt:Ue.paddingTop=kt,gt<0?(Ue.width=(So?.width??0)-gt,Ue.left=(So?.left??0)+gt):Ue.paddingLeft=gt,Ue.paddingRight=Math.max(0,(So?.width??0)-cr*d-gt),Ue.paddingBottom=Math.max(0,(So?.height??0)-it.height*d-kt),Ue.height=(So?.height??0)+(kt<0?-kt:0),(kt<0||gt<0)&&(Ue.clipPath=`inset(${kt<0?-kt:0}px 0px 0px ${gt<0?1-gt:0}px)`)}else if(Ue.left=(Jt.x+Qe)*d+1,Ue.top=(Jt.y+mt)*d+1,Ue.width=Jt.width*d,Ue.height=Jt.height*d,fe&&!Ge){Ue.left=(Jt.x+jt)*d+1,Ue.top=(Jt.y+(it.y+0))*d+1;const gt=N.GeomUtils.centerPoint({x:sn+jt,y:0,width:At.width,height:it.height}),kt=N.GeomUtils.centerPoint({x:sn,y:0,width:rn,height:it.height}),bt=N.GeomUtils.rotatePoints([gt],fe,kt),Ut={x:bt[0].x-gt.x,y:bt[0].y-gt.y};Ue.left=Ue.left+Ut.x*d,Ue.top=Ue.top+Ut.y*d;const cn={...it,x:sn,y:Te.top,width:it.width+(ce+he)},Gt=N.GeomUtils.boundsToPoints(cn),_e=N.GeomUtils.rotatePoints(Gt,fe),ct=N.GeomUtils.minBoundingRect(_e);cn.width=ct.width,cn.height=ct.height;const yt=N.GeomUtils.centerPoint(cn),Kt={x:yt.x-kt.x,y:yt.y-kt.y};Ue.left=Ue.left+Kt.x*d,Ue.top=Ue.top+Kt.y*d}Ue.lineHeight=uo*d+"px";const xt=ut?void 0:"text-line";Se.push(a.jsx("div",{className:Ko?`${Ko} ${xt}`:xt,style:Ue,...yr,children:Xo},`text-${it.y}-${vn}-${un}`))};if(ue.getOverflow()===N.ITextFrame.Overflow.Shrink&&ne>0){let At=se?.width??0,jt=0;for(;At>1&&At>ne&&Ct>2&&jt<100;)Ct*=ne/At,At=M.measureText(Ie,Ct).width,jt++;se={...se,width:At}}let In=it.x;lt===N.ITextFrame.HorizontalAlignment.Right?In+=se.width-it.width:lt!==N.ITextFrame.HorizontalAlignment.Center&&lt!==N.ITextFrame.HorizontalAlignment.CenterContinuous||(In+=(se.width-it.width)/2),Xe?.lastRepeatIndex>=0&&(In=it.x);const Ln=Ot.length;for(let At=0;At<Ln;At++){const jt=Ot[At];(jt.type===N.NumberFormat.ParseRunType.Text||jt.type===N.NumberFormat.ParseRunType.Repeat)&&(jt.type,N.NumberFormat.ParseRunType.Repeat,yn(jt,In,At,Ze,lt===N.ITextFrame.HorizontalAlignment.Justify||lt===N.ITextFrame.HorizontalAlignment.Distributed||Xe?.lastRepeatIndex>=0?ne:it.width,ut,{x:We.x+A,y:We.y,width:jt.width,height:se.height},0,qe,St)),In+=jt.width}};ae?Oe(ae,0,{x:0,y:0,...se},pe.lines[0].baseline,U,!0,null,Ee):pe.visitLines({visitTextLine:(Ie,Ze,Ne)=>{const qe=Ie.runs[0].text.replace(/\s+$/,""),lt=Ze===Ne-1;let wt=U===N.ITextFrame.HorizontalAlignment.Justify&&(lt||Ie.runs[0].text.endsWith(`
57
- `))?N.ITextFrame.HorizontalAlignment.Left:U,Xe=0;Ze>0&&(ue.getVertical()===N.ITextFrame.VerticalAlignment.Distributed||ue.getVertical()===N.ITextFrame.VerticalAlignment.Justify)&&(Xe=Math.max(0,(C-(Le+3)-Ie.bounds.height*Ne)/(Ne-1)*Ze)),ue.getVertical()===N.ITextFrame.VerticalAlignment.Distributed&&fe&&fe%90==0&&fe%180!=0&&(wt=N.ITextFrame.HorizontalAlignment.Distributed),wt!==N.ITextFrame.HorizontalAlignment.Justify&&wt!==N.ITextFrame.HorizontalAlignment.Distributed&&wt!==N.ITextFrame.HorizontalAlignment.Fill||(se={...se,width:ne});const St={...Ie.bounds,y:Ie.bounds.y+Xe+0,width:de||j&&(j.repeatChars.length>0||j.spacingChars.length>0)?se.width:Ie.bounds.width};Oe(qe,Ze,St,te.lines[0].baseline,wt,lt,Ne===1?z:null,ut&&Ze>0?{...Ee,style:{...Ee.style,background:void 0}}:Ee)}})}Se.length>0&&(q=Se)}if(ut)return q&&q.length>0?q:a.jsx("div",{style:ot,...b});let dt=g?"auto":we.pointerEvents,Fe=null;if(ze){const Ge={x:P*d-1,y:-1,width:L*d+1,height:C*d+1};dt="auto",Fe=v({renderBounds:Ge,darkMode:F,className:"filter-button",disabled:!_.isEditAllowed(),zoom:d,filter:_.getColumnFilter(),onFilterButtonMouseDown:x,...y}),Fe&&(Fe=a.jsx("div",{style:{...Ge,position:"absolute",zIndex:2,display:"flex",alignItems:"end"},onDoubleClick:se=>{se.stopPropagation(),se.preventDefault()},children:Fe},"filterButton"))}O&&!q&&(q=a.jsx("div",{style:{position:"absolute",left:0,right:0,top:0,bottom:0,display:"flex",alignItems:"center",justifyContent:"center",pointerEvents:"none"},children:"..."},"pending-ellipsis"));const Je=[W,q,r,B,ht,Fe];return a.jsx("div",{style:{...X,...we,pointerEvents:dt},...b,children:Je})},N6={text:"",placeholder:""},V6=(e,t)=>{if(!e.clean().getStyle().getNumberFormat().endsWith("%"))return!1;const n=t??e.dirty??"";return n.length===0||n.endsWith("%")&&!isNaN(parseFloat(n.substring(0,n.length-1)))},zS=Object.freeze([Nt.Delete,Nt.Home,Nt.End]),wp=s.memo(s.forwardRef((e,t)=>{const{editState:n,onStartEdit:o,onChangeEdit:r,onSubmitEdit:i,onCancelEdit:l,onDoneEdit:d,defaultTextStyle:c,useRichStyling:u=!0,bodyStyle:f,activeCoords:p,sheet:h,commands:m,containerBounds:g,setNaturalDimensions:x,onFocus:y,disabled:v,style:b,zoom:C=1,linesVisible:k,autoFocus:_=!1,...I}=e,{height:M=0,width:F=0}=g??{},j=f?.darkMode??!1,T=s.useRef(null),[w,S]=s.useState(!1),[D,E]=s.useState(null),[R,A]=s.useState(()=>n);s.useEffect(()=>{$.current=!1,A(n)},[n]);const L=s.useMemo(()=>{const se=R.clean();let We=se.getStyle();u||(We=We.createTemporaryStyle({font:{size:c?.fontSize}}));const be=se.getFormula(),Se=We.getAlignment(),H=be?N.ITextFrame.HorizontalAlignment.Left:Se.getHorizontal(),te=Se.getVertical(),ne=Se.getOverflow()===N.ITextFrame.Overflow.Wrap||se.getType()===N.ScalarType.String&&(H===N.ITextFrame.HorizontalAlignment.Justify||H===N.ITextFrame.HorizontalAlignment.Distributed||te===N.ITextFrame.VerticalAlignment.Justify||te===N.ITextFrame.VerticalAlignment.Distributed),J=(pe=>{if(!pe)return N6;const ge=pe.clean();if(!ge)return N6;let Ee=ge.getStyle()?.getQuotePrefix();if(pe.dirty===void 0||pe.dirty===null){let Be="",Oe=ge.getFormulaText();Oe&&(Be=Oe,Ee=!1),Be||(Be=ge.toTextUnformatted(!0)??"");let Ie="";if(!pe.editMode&&ge.isSpillOverflow()){const Ze=ge.getSpill();if(Ze){const Ne=Ze.getCell(),qe=Ne.getFormulaText();Ne.isEqual(ge)||(Ie=qe)}}return Ee&&(Be="'"+Be),{text:Be,placeholder:Ie}}return{text:pe.dirty??"",placeholder:""}})(R),ae=J.text,Q=N.ITextFrame.toCSSHorizontalTextAlign(u&&!be?R.clean()?.getRenderHorizontalAlignment():N.ITextFrame.HorizontalAlignment.Left);return{style:We,isWrapped:ne,textValue:ae,formula:be,frameVertAlign:te,placeholder:J.placeholder,insets:u?se.getInsets():yl.EmptyRect,textAlign:Q}},[R,c,j,C,u]),P=s.useRef(null),z=so(t,()=>({startEdit:se=>{T.current=se?.initialSelection;const We={...n,editMode:se?.editMode??!1};se?.text!==void 0&&(We.dirty=se.text),We.editMode===n.editMode&&We.dirty===n.dirty||(A(We),q?.(We))},submitEdit:()=>W(),cancelEdit(){B()},autoFocus(){P.current.focus()},dispatchEvent:se=>P.current.dispatchEvent(se),focus(){P.current.focus()},getLineHeight:O}),[o,n]);s.useLayoutEffect(()=>{if(!D||!w)return;const se=P.current;L.textValue,se&&se.setSelectionRange(D.start,D.end,D.direction)},[P.current,D,L.textValue]);const U=s.useMemo(()=>{const se=R?.clean(),We=L.style.createTemporaryTextFrame(L.textValue,se?.getType()===N.ScalarType.String),be=u?se.getInsets().right+se.getInsets().left:0;let Se=null;return L.isWrapped&&(Se={width:F-be}),We.layout(Se)},[L,F,R,u]),O=me(()=>Math.ceil(U?.lines[0]?.bounds.height),[U]);s.useLayoutEffect(()=>{if(!U)return;const se=L.style,We=se.getInsets()??yl.EmptyRect,be=u?We.left+We.right:0,Se=u?.04*se.getFont().getSize():1,H=Math.round(L.isWrapped?void 0:U.bounds.width+be+Se),te=Math.round(U.bounds.height);x?.({width:H,height:te})},[U,x,L,u,R]);const q=me(r,[r]),X=me(se=>{if(R.dirty===se)return;const We={...R};We.dirty=se,P.current,A(We),q?.(We)},[R]),re=me(se=>{if(R.editMode===se)return;const We={...R};We.editMode=se,A(We),q?.(We)},[R]),$=s.useRef(!1),W=me(()=>{if($.current)return!1;try{i?.(R),d?.(),$.current=!0}catch{return!1}return!0},[i,R]),B=me(()=>{$.current=!0,A(n),l?.(),d?.()},[l,n]),Z=me(se=>{if(!P.current)return;if(se.key,se.isDefaultPrevented(),!(se.isTrusted||se.nativeEvent.ctrlKey||se.nativeEvent.metaKey||se.nativeEvent.altKey||se.nativeEvent.isComposing||c2.indexOf(se.nativeEvent.key)===-1&&se.nativeEvent.key!=="Backspace")){const J={...R};let ae=0;return V6(J,J.dirty)&&!isNaN(parseFloat(se.key))?(J.dirty?.endsWith("%")?J.dirty=(J.dirty.substring(0,J.dirty.length-1)??"")+se.key+"%":J.dirty=(J.dirty??"")+se.key+"%",ae=J.dirty.length-1):se.nativeEvent.key==="Backspace"?(J.dirty="",ae=J.dirty.length):(J.dirty=(J.dirty??"")+se.key,ae=J.dirty.length),P.current.value=J?.dirty,T.current={start:ae,end:ae,direction:"forward"},P.current?.setSelectionRange(ae,ae,"forward"),A(J),q?.(J),void se.preventDefault()}const We=se.nativeEvent.ctrlKey,be=se.nativeEvent.shiftKey,Se=se.nativeEvent.altKey,H=se.nativeEvent.metaKey;if(We&&se.key==="z"&&se.stopPropagation(),se.which===Nt.Escape)return se.preventDefault(),void B();if(se.which===Nt.F2)return re(!0),void se.preventDefault();const te=se.target;if(se.key==="%"&&te.selectionStart===te.selectionEnd&&te.value[te.selectionStart]==="%"&&R?.clean().getStyle().numberFormat.includes("%"))return E({start:te.selectionStart+1,end:te.selectionEnd+1,direction:te.selectionDirection}),void se.preventDefault();if(se.which===Nt.Enter){if(se.preventDefault(),H||Se){const J=L.textValue.substring(0,te.selectionStart)+`
58
- `+L.textValue.substring(te.selectionEnd);return X(J),void E({start:te.selectionStart+1,end:te.selectionStart+1,direction:te.selectionDirection})}return void(W()&&h.getSelection().traverse(N.IRange.Orientation.Column,be))}if(se.which===Nt.Tab)return se.preventDefault(),void(W()&&h.getSelection().traverse(N.IRange.Orientation.Row,be));let ne=null;switch(se.which){case Nt.Left:ne=N.IRange.Direction.Left;break;case Nt.Right:ne=N.IRange.Direction.Right;break;case Nt.Up:ne=N.IRange.Direction.Up;break;case Nt.Down:ne=N.IRange.Direction.Down}!ne||We||be||Se||H||R.editMode?R.editMode&&(ne||zS.includes(se.which))&&se.stopPropagation():W()},[R,h,L]),G=s.useCallback(()=>{P.current?.focus(),setTimeout(()=>{P.current?.select()},0)},[]),ie=s.useCallback(()=>{P.current?.focus(),console.log("implement toggleRelativeReferences")},[]),ee=me(()=>{const se=P.current?.value;let We="";if(p.rowIndex>0){const be=h.getRange({rowIndex:p.rowIndex-1,colIndex:p.colIndex}).getCell();be&&(We=be.toTextUnformatted(!0))}X(se+We)},[p,h]);s.useEffect(()=>h.getRange(p).addListener(()=>{const se={...R,clean:()=>h.getRange(p).getCell()};A(se),q?.(se)}),[p,h]);const le=s.useCallback(()=>{const se=R.clean().createTemporaryCell({value:Ol(),style:{numberFormat:"Medium Time"}}).toText();X((P.current?.value??"")+se)},[h]),ue=s.useCallback(()=>{const se=R.clean().createTemporaryCell({value:Ol(),style:{numberFormat:"Short Date"}}).toText();X((P.current?.value??"")+se)},[h]),de=s.useMemo(()=>({element:()=>P.current,doCopy:se=>{const We=P.current.value.substring(P.current.selectionStart,P.current.selectionEnd);if(se?.isCut){const be=P.current.value.substring(0,P.current.selectionStart)+P.current.value.substring(P.current.selectionEnd,P.current.value.length);X(be)}return We}}),[P.current]),oe=s.useMemo(()=>({element:()=>P.current,doPaste:async(se,We)=>{const be=await se.toText?.();if(!be)return!0;const Se=P.current.value.substring(0,P.current.selectionStart)+be+P.current.value.substring(P.current.selectionEnd,P.current.value.length);return X(Se),E({start:P.current.selectionStart+be.length,end:P.current.selectionStart+be.length,direction:"forward"}),!0}}),[P.current]),fe=s.useMemo(()=>({contains:se=>P.current?.contains(se)||!1,focus(){P.current.focus()}}),[]),Te=s.useMemo(()=>[new pt("selectAll",fe,{label:"Select All",description:"Select all of the text in cell.",shortcut:{key:"a",modifiers:[je.Ctrl]}},G),new pt("startEditValueAbove",fe,{label:"Copy From Above",description:"Copy the value from the cell above the active cell into the cell or the formula bar.",shortcut:[{key:'"',modifiers:[je.Ctrl]},{key:'"',modifiers:[je.Ctrl,je.Shift]}]},ee),new pt("startEditCurrentTime",fe,{label:"Current Time",description:"Insert the current time.",shortcut:{key:"Semicolon",modifiers:[je.Ctrl,je.Shift]}},le),new pt("startEditCurrentDate",fe,{label:"Current Date",description:"Insert the current date.",shortcut:{key:"Semicolon",modifiers:[je.Ctrl]}},ue),new Me("relativeReferencesToggle",fe,{label:"Toggle References",description:"Toggles cell references from relative to absolute, to partially absolute, back to relative again.",shortcut:{key:"F4"}},ie),new Me("toggleEditorFocus",fe,{label:"Toggle Editor Focus",description:"Moves focus between editors such as formula editor and inline editor.",shortcut:{key:"F2",modifiers:[je.Ctrl]}})],[]),Le=s.useMemo(()=>{let se=null;const We=()=>({contains:be=>P.current?.contains(be)||!1,focus(){P.current.focus()}});return se=m?m.createChildGroup(We,"editor",!1):new vi(We,"editor"),se.addCommands(Te,!0),se},[m,Te]),ce=s.useMemo(()=>({notifier:null,source:de,target:oe,commands:Le}),[de,oe,Le]);F7(ce);const[he,we]=s.useState(!_);s.useEffect(()=>{we(!1)},[]);const Y=me(se=>{S(!0),Le?.activate();const We=T.current;if(We!==!1){let be,Se;const H=P.current.value;V6(R,H)&&(be=H.length-1,Se=H.length-1),be=We?.start??be??H.length,Se=We?.end??Se??H.length,T.current=!1,E({start:be,end:Se,direction:"forward"})}y?.(se)},[y,R]),ze=L.insets;let ht=ze.left+1;const ut=ze.left+ze.right+2-1,ke=U?.bounds.height??0;let ot,dt=ze.top;L.frameVertAlign===N.ITextFrame.VerticalAlignment.Center?dt=Math.max(0,(M-(ze.top+ze.bottom)-ke)/2):L.frameVertAlign===N.ITextFrame.VerticalAlignment.Bottom&&(dt=Math.max(0,M-(ze.top+ze.bottom)-ke)),k!==void 0&&U?.lines[0]?.bounds&&(ot=U?.lines[0]?.bounds.height*k);const Fe=L.style.getFont();let Je=Fe.getSize();Fe.isSuperSub()&&(Je*=Fe.getSuperSubScale()),Je*=N.IFont.getDeviceScale()*C;const Ge=u?Fe.toCSS(j,C):null;return a.jsx("div",{className:"sheet-cell-editor",onMouseDown:se=>{P.current&&document.activeElement!==P.current&&requestAnimationFrame(()=>{P.current.focus()})},ref:z,...I,style:{display:"flex",flexGrow:1,alignSelf:"stretch",height:"100%",width:"100%",maxWidth:"100%",maxHeight:"100%",cursor:"initial",...b},children:a.jsx("div",{className:"editor-placement",style:{display:"flex",flexGrow:1,position:"relative",top:dt*C+1,left:ht*C,width:`calc(100% - ${ut*C}px)`,maxWidth:`calc(100% - ${ut*C}px)`,height:(ot??ke)*C,maxHeight:(ot??ke)*C},children:a.jsx("textarea",{spellCheck:"false",placeholder:L.placeholder,ref:P,value:L.textValue,disabled:he,readOnly:v,name:"sheet-cell-editor",autoComplete:"off",autoCapitalize:"off",style:{flex:"1 1 100%",font:"inherit",...Ge,fontSize:Je?`${Je}px`:"inherit",textAlign:L.textAlign,lineHeight:(U?.lines[0]?.bounds.height??0)*C+"px",height:(U?.bounds.height??0)*C,boxSizing:"border-box",padding:"0px",margin:"0px",borderWidth:0,outline:"none",resize:"none",overflow:"hidden",background:"transparent",maxHeight:"100%",maxWidth:"100%",width:"100%",userSelect:"text",position:"absolute",whiteSpace:L.isWrapped?"normal":"pre",wordWrap:"break-word"},onFocus:Y,onBlur:()=>{S(!1)},onSelect:se=>{},onChange:se=>{P.current&&!$.current&&(T.current=!1,X(se.target.value),L.textValue,se.target.value,se.target.selectionStart,se.target.selectionEnd,se.target.selectionDirection,E({start:se.target.selectionStart,end:se.target.selectionEnd,direction:se.target.selectionDirection}))},onMouseDown:se=>{w&&re(!0)},onKeyDown:Z})})})})),Sp=(e,t)=>({clean:e,dirty:t,editMode:!1}),Cp=e=>{const{length:t=0,width:n=1,dashArray:o=null,dashArrayAdditional:r=null,isDouble:i=!1,isAngled:l=!1,offsetX:d=0,offsetY:c=0,isVertical:u=!1,...f}=e,p=b=>{let C=null;if(b&&n>0){C="";for(let k=0;k<b.length;k++)C+=b[k],k<b.length-1&&(C+=",")}return C},h=p(o);let m=h;r&&(m=p(r));let g=n,x=t,y=null;if(i){g=Math.floor(n/2);const b=g+g/2+1;let C=null;C=u?`M ${nn.boundPixel(d+b)} ${nn.boundPixel(c)} L ${nn.boundPixel(d+b)} ${nn.boundPixel(c+x)}`:`M ${nn.boundPixel(d)} ${nn.boundPixel(c+b)} L ${nn.boundPixel(d+x)} ${nn.boundPixel(c+b)}`,y=a.jsx("path",{strokeWidth:g,strokeDasharray:m,d:C,...f})}if(l){g=n/2;const b=g+g/2;let C=m,k=null;k=u?`M ${nn.boundPixel(d+b)} ${nn.boundPixel(c)} L ${nn.boundPixel(d+b)} ${nn.boundPixel(c+x)}`:`M ${nn.boundPixel(d)} ${nn.boundPixel(c+b)} L ${nn.boundPixel(d+x)} ${nn.boundPixel(c+b)}`,y=a.jsx("path",{strokeWidth:g,strokeDasharray:C,strokeDashoffset:"1",shapeRendering:"crispEdges",d:k,...f})}let v=null;return v=u?`M ${nn.boundPixel(d+g/2)} ${nn.boundPixel(c)} L ${nn.boundPixel(d+g/2)} ${nn.boundPixel(c+x)}`:`M ${nn.boundPixel(d)} ${nn.boundPixel(c+g/2)} L ${nn.boundPixel(d+x)} ${nn.boundPixel(c+g/2)}`,a.jsxs(a.Fragment,{children:[a.jsx("path",{strokeWidth:g,strokeDasharray:h,d:v,...f}),y]})};function Y1(e,t){if(typeof e=="function")return e(t);e&&(e.current=t)}var ki=parseInt(s.version.split(".")[0],10)>=19?function(e){return t=>{const n=[];for(const o of e){const r=Y1(o,t),i=typeof r=="function";n.push(i?r:()=>Y1(o,null))}return()=>{for(const o of n)o()}}}:function(e){return t=>{for(const n of e)Y1(n,t)}},BS=function(){},kp=typeof window<"u",il=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},NS=kp?s.useLayoutEffect:s.useEffect,H6={x:0,y:0,width:0,height:0,top:0,left:0,bottom:0,right:0};const L0=kp&&window.ResizeObserver!==void 0?function(){var e=s.useState(null),t=e[0],n=e[1],o=s.useState(H6),r=o[0],i=o[1],l=s.useMemo(function(){return new window.ResizeObserver(function(d){if(d[0]){var c=d[0].contentRect,u=c.x,f=c.y,p=c.width,h=c.height,m=c.top,g=c.left,x=c.bottom,y=c.right;i({x:u,y:f,width:p,height:h,top:m,left:g,bottom:x,right:y})}})},[]);return NS(function(){if(t)return l.observe(t),function(){l.disconnect()}},[t]),[n,r]}:function(){return[BS,H6]},VS=(e,t)=>e.colStart===t.colStart?e.rowStart-t.rowStart:e.colStart-t.colStart,HS=(e,t)=>e.rowStart===t.rowStart?e.colStart-t.colStart:e.rowStart-t.rowStart,$S=e=>{const{key:t,points:n,range:o,stroke:r,darkMode:i,forceThinBorder:l=!1,shiftIfWide:d=!1,isVertical:c=!1,intersections:u,layout:f}=e,p=N.IBorder.BuiltInDefinitions.get(l?N.IBorder.StrokeStyle.Thin:r.getStyle());if(!p)return null;const h=n[0],m=n[1],g=n[2],x=n[3];let y=1+(c?x-m:g-h),v=0;const b=r.getColor().toRGBA(i).toString(),C=p.description.toLowerCase().includes("double");let k,_;const I=c?"rowStart":"colStart",M=c?"rowEnd":"colEnd",F=c?m:h;if(u?.length>0){const S=u[0];if(S?.range[I]===o[I]){const D=N.IBorder.BuiltInDefinitions.get(S.stroke.getStyle());v=Math.floor(D.width/2)}if(u[u.length-1]?.range[M]===o[M]){const D=N.IBorder.BuiltInDefinitions.get(u[u.length-1].stroke.getStyle());y=Math.floor(y+(D.width===2?0:D.width/2))}if(C){const D=c?"colStart":"rowStart",E=c?"colEnd":"rowEnd",R=c?f?.getRowOffset:f?.getColOffset;let A=0,L=0;k=[],_=[];for(let P=0;P<u.length;P++){const z=u[P];if(z.stroke.getStyle()===N.IBorder.StrokeStyle.Double&&R){const U=R(z.range[I])-(F-v);z.range[D]<o[D]&&(k.push(U-A),A=U,k.push(1),A++),z.range[E]>o[E]&&(_.push(U-L),L=U,_.push(1),L++)}}k.length>0&&A<y&&k.push(y-A),_.length>0&&L<y&&_.push(y-L)}}let j=c?-Math.floor(p.width/2):-v,T=c?-v:-Math.floor(p.width/2);const w=d&&p.width>2?-1:0;return a.jsx(Cp,{offsetX:h+j+w,offsetY:m+T+w,length:y+v,isVertical:c,stroke:b,width:p.width,dashArray:k??p.pattern,dashArrayAdditional:_,isDouble:C,isAngled:p.description.toLowerCase().includes("slant")},t)},Ep=({getBorderAt:e,borderRenderer:t=$S,getVisibleCells:n,darkMode:o,forceThinBorder:r=!1,defaultColor:i="black",shiftIfWide:l=!1})=>{const d=me(n,[n]);return{overlay:s.useMemo(()=>c=>{const u=c.toClipBounds(c.getRangeCoordsBounds(),-3);if(!u)return;const f=d(c);if(f.length===0)return;const p=c.getVisibleColumnOffsets(),h=c.getVisibleRowOffsets();let m=[],g=[];const x=c.getVisibleColumns(),y=c.getVisibleRows(),v=[],b=[],C=[],k=(F,j,T,w,S,D,E)=>{const R={index:w,stroke:S,visibleIndex:T,edge:D,length:E};F[j]||(F[j]=[]),F[j].length>0&&F[j][F[j].length-1]?.index===w?F[j][F[j].length-1]=R:F[j].push(R)};for(let F=0;F<f.length;F++){const j=f[F],T=j.coords;if(!T)continue;const w=j?.range??{rowStart:T.rowIndex,colStart:T.colIndex,rowEnd:T.rowIndex,colEnd:T.colIndex},S=c.getVisibleRangeCoords();if(!Qn.isRangesIntersect(w,S)&&!Qn.isRangeWithinRange(w,S))continue;const D=T.colIndex,E=T.rowIndex,R=p[D],A=h[E];if(w.rowEnd!==w.rowStart){const B=h[w.rowStart]?.spanIndex??-1,Z=h[w.rowEnd]?.spanIndex??h[y[y.length-1]].spanIndex+1;m.push({...w,rowStart:B,rowEnd:Z})}if(w.colEnd!==w.colStart){const B=p[w.colStart]?.spanIndex??-1,Z=p[w.colEnd]?.spanIndex??p[x[x.length-1]].spanIndex+1;g.push({...w,colStart:B,colEnd:Z})}const L=j.value,P=e(L,F);if(!P||P.isEmpty())continue;const z=P.getLeft(),U=P.getTop(),O=P.getRight(),q=P.getBottom();let X=1,re=1;if(!R||!A)continue;const $=R.spanIndex,W=A.spanIndex;z.isNone()||k(v,$,W,E,z,N.IBorder.Edge.Left,X),U.isNone()||k(b,W,$,D,U,N.IBorder.Edge.Top,re),O.isNone()||k(v,$+re,W,E,O,N.IBorder.Edge.Right,X),q.isNone()||k(b,W+X,$,D,q,N.IBorder.Edge.Bottom,re)}const _=(F,j,T)=>{const w=[];return F.forEach((S,D)=>{let E=null;S.sort((R,A)=>R.visibleIndex-A.visibleIndex);for(let R=0;R<S.length;R++){const A=S[R];if(!A?.stroke||j[D]===void 0&&j[D-1]===void 0)continue;let L=!1;if(T)for(let O=0;!L&&O<m.length;O++){let q=m[O];q.colStart<=A.index&&q.colEnd>=A.index&&q.rowStart<D&&q.rowEnd>=D&&(L=!0)}else for(let O=0;!L&&O<g.length;O++){let q=g[O];q.rowStart<=A.index&&q.rowEnd>=A.index&&q.colStart<D&&q.colEnd>=D&&(L=!0)}if(L)continue;const P=A.stroke?.getColor(),z=P?P.toRGBA().toString():i,U=A.stroke.getStyle()+":"+z;(U!==E?.key||E&&E.visibleIndex+1<A.visibleIndex)&&(E&&w.push(E),E={key:U,index:j[D]??j[D-1]+1,visibleIndex:A.visibleIndex,edge:A.edge,stroke:A.stroke,from:A.index,to:A.index+A.length-1,intersections:[],length:1}),E.to=A.index+A.length-1,E.visibleIndex=A.visibleIndex}E&&w.push(E)}),w};m=m.sort(HS),g=g.sort(VS);const I=_(v,x,!1),M=_(b,y,!0);if(I.length===0&&M.length===0)return null;for(let F=0;F<M.length;F++){const j=M[F];let T=Lt.findEqualOrGreater(I,j.from,S=>S.index),w=!1;for(;!w;){const S=I[T++];S&&S.index>=j.from&&S.index<=j.to+1&&S.from<=j.index&&S.to+1>=j.index&&(j.intersections.push({stroke:S.stroke,range:{rowStart:S.from,rowEnd:S.to+1,colStart:S.index,colEnd:S.index}}),S.intersections.push({stroke:j.stroke,range:{rowStart:j.index,rowEnd:j.index,colStart:j.from,colEnd:j.to+1}})),w=!S||S.index>j.to+1}}for(let F=0;F<M.length;F++){const j=M[F];let T=j.stroke;const w=`rBorder:${j.index}:${j.from}:${j.to}:${j.edge}`,S={rowStart:j.index,rowEnd:j.index,colStart:j.from,colEnd:j.to+1},D=c.getLayout(),E=!1,R=D.getColOffset(S.colStart),A=D.getRowOffset(S.rowStart),L=[R,A,D.getColOffset(S.colEnd),A];C.push(t({key:w,points:L,stroke:T,darkMode:o,forceThinBorder:r,shiftIfWide:l,range:S,intersections:j.intersections,layout:D,isVertical:E}))}for(let F=0;F<I.length;F++){const j=I[F];let T=j.stroke;const w=`cBorder:${j.index}:${j.from}:${j.to}:${j.edge}`,S={rowStart:j.from,rowEnd:j.to+1,colStart:j.index,colEnd:j.index},D=c.getLayout(),E=!0,R=D.getColOffset(S.colStart),A=[R,D.getRowOffset(S.rowStart),R,D.getRowOffset(S.rowEnd)];C.push(t({key:w,stroke:T,points:A,darkMode:o,forceThinBorder:r,shiftIfWide:l,range:S,intersections:j.intersections,layout:D,isVertical:E}))}return a.jsx("svg",{width:`${u.width}`,height:`${u.height}`,viewBox:`0 0 ${u.width} ${u.height}`,preserveAspectRatio:"none",shapeRendering:"crispEdges",style:{position:"absolute",left:"0px",top:"0px",width:`${u.width}px`,height:`${u.height}px`,pointerEvents:"none",transitionTimingFunction:"linear",transitionDelay:"0",transitionProperty:"left, top, width, height",willChange:"left, top, width, height, stroke-dashoffset",overflow:"visible"},children:C},"borders")},[e,o])}},$6=qn.Center,WS=Object.freeze({horizontal:!1,vertical:!1}),W6=yl.EmptyTopLeft,US=(e,t)=>Qn.EmptyCell,qS=(e,t)=>new Promise((n,o)=>{o("StaticBorderRenderer does not support scrolling")}),d2=s.memo(e=>{const{getBorderAt:t,width:n,height:o,style:r,rowCount:i=2,columnCount:l=2,darkMode:d,forceThinBorder:c,children:u,...f}=e,p=s.useRef(null),[h,{width:m,height:g}]=L0(),x=n??m,y=o??g,v=s.useMemo(()=>{const R=[];for(let A=0;A<i;A++)for(let L=0;L<l;L++){const P={colIndex:L,rowIndex:A};R.push({coords:P,value:P})}return R},[]),b=s.useCallback(R=>v,[v]),{overlay:C}=Ep({getVisibleCells:b,getBorderAt:t,darkMode:d,forceThinBorder:c}),k=Math.floor(x/l),_=Math.floor(y/i),I={getColOffset:R=>Math.ceil(R*k)+0,getRowOffset:R=>Math.ceil(R*_)+0,getColIndex:R=>Math.floor((R-0)/k)-1,getRowIndex:R=>Math.floor((R-0)/_)-1},M={rowStart:0,colStart:0,rowEnd:i,colEnd:l},F={x:0,y:0,width:Math.max(0,x)+0,height:Math.max(0,y)+0},j=s.useMemo(()=>{const R={},A=Math.floor(x/l);for(let L=0;L<l;L++)R[L]={offset:L*A,size:A,spanIndex:L};return R},[x,y]),T=s.useMemo(()=>{const R={},A=Math.floor(y/i);for(let L=0;L<i;L++)R[L]={offset:L*A,size:A,spanIndex:L};return R},[x,y]);if(!C)return null;const w={width:x,height:y},S={width:x,height:y},D={getStage:()=>p.current,getTotalSize:()=>w,getViewportSize:()=>S,getLayout:()=>I,getCellCoordsAsRangeCoords:Qn.cellToRange,getVisibleRangeCoords:()=>M,getVisibleRows:()=>{const R=[];for(let A=0;A<i;A++)R.push(A);return R},getTotalRangeCoords:()=>M,getRelativePointFromClient:(R,A)=>({x:R,y:A}),getVisibleColumns:()=>{const R=[];for(let A=0;A<l;A++)R.push(A);return R},toClipBounds:(R,A)=>F,toViewBounds:R=>R,toAbsoluteBounds:R=>R,getBounds:()=>F,getInsets:()=>null,getRangeCoordsBounds:(R,A)=>null,getVisibleColumnOffsets:()=>j,getVisibleRowOffsets:()=>T,allViews:()=>({[$6]:D}),getAnchor:()=>$6,getZoom:()=>1,scrollCellCoordsIntoView:qS,getCellCoordsFromClient:US,getScrollOrientation:()=>WS,getScrollTopLeft:()=>W6,getFreezeTopLeft:()=>W6},E=C(D);return a.jsxs("div",{style:{...r,position:"relative",display:"flex"},...f,children:[a.jsx("div",{ref:ki([p,h]),style:{flex:"1 1 100%",display:"flex",maxWidth:"100%",maxHeight:"100%"},children:u}),E]})});function _p(e){var t,n,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var r=e.length;for(t=0;t<r;t++)e[t]&&(n=_p(e[t]))&&(o&&(o+=" "),o+=n)}else for(n in e)e[n]&&(o&&(o+=" "),o+=n);return o}function Ao(){for(var e,t,n=0,o="",r=arguments.length;n<r;n++)(e=arguments[n])&&(t=_p(e))&&(o&&(o+=" "),o+=t);return o}const ZS=e=>{const{style:t,...n}=e??{};return a.jsxs("svg",{style:{width:"135px",height:"37px",...t},viewBox:"0 0 135 37",...n,children:[a.jsx("path",{d:"M 1.0984,0 C 0.4978,0 0.01,0.40548 0.01,0.90302 v 19.5766 H 0 v 15.61762 c 0,0.30574 0.185,0.57535 0.466,0.73886 v 0.1426 H 0.8565 C 0.9315,36.992 1.0086,37 1.0883,37 H 13.063 25.9706 v 0 h 8.7553 c 0.08,0 0.1563,-0.008 0.2308,-0.0213 h 0.054 v -0.0141 c 0.4621,-0.10457 0.8035,-0.45175 0.8035,-0.86739 v -15.312 c 0,-0.0328 0.01,-0.0658 0.01,-0.0995 V 0.90304 C 35.8242,0.4052 35.3363,6e-5 34.7358,6e-5 H 22.5969 V 1.7e-4 H 21.0014 V 6e-5 Z",fill:"#547dbe",fillRule:"evenodd"}),a.jsx("path",{d:"M 1.4849,2.09543 V 9.06408 H 8.1947 V 2.09543 Z m 8.6592,0 V 9.06408 H 16.854 V 2.09543 Z m 8.685,0 v 6.96865 h 6.7098 V 2.09543 Z m 8.7355,0 v 6.96865 h 6.7099 V 2.09543 Z M 1.4849,11.04391 v 6.81444 h 6.7098 v -6.81444 z m 8.6592,0 v 6.81444 h 6.7099 v -6.81444 z m 8.685,0 v 6.81444 h 6.7098 v -6.81444 z m 8.7355,0 v 6.81444 h 6.7099 V 11.04391 Z M 1.4849,19.83872 v 6.68584 h 6.7098 v -6.68584 z m 8.6592,0 v 6.68584 h 6.7351 v -6.68584 z m 8.685,0 v 6.68584 h 6.7098 v -6.68584 z m 8.7355,0 v 6.68584 h 6.7099 v -6.68584 z m -26.052,8.38811 v 6.68588 h 6.7098 v -6.68588 z m 8.6592,0 v 6.68588 h 6.7355 v -6.68588 z m 8.685,0 v 6.68588 h 6.7099 v -6.68588 z m 8.7356,0 v 6.68588 h 6.7098 v -6.68588 z",fill:"#ffffff",fillRule:"evenodd"}),a.jsx("path",{d:"m 1.4785,2.09737 v 6.96865 h 6.741 V 2.09737 Z m 0,8.94851 v 6.81449 h 6.741 v -6.81449 z m 0,8.79485 v 6.6858 h 6.741 v -6.6858 z m 0.028,8.388 v 6.68588 h 6.741 v -6.68588 z",fill:"#547dbe",fillRule:"evenodd",strokeWidth:"0.4"}),a.jsx("path",{d:"M 120.9895,32.82218 V 10.13469 h 4.7986 v 18.71559 h 9.2153 v 3.9719 z m 0.4853,0 h -5.4976 l -5.275,-8.57923 -5.2751,8.57923 h -5.1481 l 7.5314,-11.69325 -7.0545,-10.99424 h 5.3067 l 4.8936,8.16618 4.7986,-8.16618 h 5.1796 l -7.118,11.24826 z M 95.9361,29.04099 c 0.5297,0 1.0381,-0.053 1.5254,-0.15888 0.4872,-0.10591 0.9745,-0.23299 1.4617,-0.3813 v 3.52703 c -0.5084,0.21183 -1.144,0.39189 -1.9066,0.54018 -0.7415,0.16946 -1.5571,0.2542 -2.4469,0.2542 -1.038,0 -1.9701,-0.16947 -2.7964,-0.5084 -0.805,-0.33894 -1.4511,-0.92148 -1.9384,-1.74763 -0.466,-0.84734 -0.6991,-2.01241 -0.6991,-3.49526 v -8.35686 h -2.2562 v -2.00181 l 2.6058,-1.58876 1.3664,-3.65411 h 3.0189 v 3.6859 h 4.8619 v 3.55878 h -4.8619 v 8.35686 c 0,0.65668 0.1906,1.15449 0.5719,1.49342 0.3814,0.31776 0.8792,0.47664 1.4935,0.47664 z M 79.1445,14.83743 c 2.3939,0 4.29,0.68847 5.6882,2.06535 1.3983,1.35581 2.0972,3.29411 2.0972,5.81491 v 2.28769 H 75.7444 c 0.042,1.33475 0.4342,2.38315 1.1758,3.14596 0.7626,0.76244 1.8113,1.14385 3.1459,1.14385 1.1227,0 2.1396,-0.10609 3.0506,-0.3179 0.9109,-0.23311 1.8536,-0.58257 2.8283,-1.0484 v 3.654 c -0.8476,0.42362 -1.7479,0.73087 -2.7012,0.92139 -0.9322,0.21181 -2.0655,0.3179 -3.4001,0.3179 -1.7373,0 -3.2731,-0.3179 -4.6078,-0.95333 -1.3346,-0.65673 -2.3833,-1.64162 -3.1459,-2.95507 -0.7627,-1.31344 -1.144,-2.96571 -1.144,-4.9568 0,-2.03367 0.3389,-3.71788 1.0169,-5.05235 0.6991,-1.35578 1.6629,-2.37258 2.8917,-3.0504 1.2286,-0.67783 2.6586,-1.0168 4.2899,-1.0168 z m 0.032,3.36815 c -0.911,0 -1.6736,0.29653 -2.2879,0.88967 -0.5933,0.59322 -0.9428,1.51461 -1.0487,2.76455 h 6.6415 c -0.021,-1.05904 -0.2967,-1.92796 -0.8262,-2.60567 -0.5297,-0.69905 -1.3559,-1.04855 -2.4787,-1.04855 z m -17.011,-3.36815 c 2.3939,0 4.29,0.68847 5.6882,2.06535 1.3982,1.35581 2.0973,3.29411 2.0973,5.81491 v 2.28769 H 58.7653 c 0.042,1.33475 0.4343,2.38315 1.1758,3.14596 0.7627,0.76244 1.8113,1.14385 3.1459,1.14385 1.1228,0 2.1397,-0.10609 3.0507,-0.3179 0.911,-0.23311 1.8536,-0.58257 2.8282,-1.0484 v 3.654 c -0.8475,0.42362 -1.7478,0.73087 -2.7011,0.92139 -0.9321,0.21181 -2.0655,0.3179 -3.4002,0.3179 -1.7372,0 -3.273,-0.3179 -4.6077,-0.95333 -1.3347,-0.65673 -2.3833,-1.64162 -3.1459,-2.95507 -0.7627,-1.31344 -1.144,-2.96571 -1.144,-4.9568 0,-2.03367 0.3389,-3.71788 1.0168,-5.05235 0.6991,-1.35578 1.6631,-2.37258 2.8918,-3.0504 1.2287,-0.67783 2.6587,-1.0168 4.2899,-1.0168 z m 0.032,3.36815 c -0.911,0 -1.6736,0.29653 -2.288,0.88967 -0.5931,0.59322 -0.9427,1.51461 -1.0486,2.76455 h 6.6414 c -0.021,-1.05904 -0.2965,-1.92796 -0.8262,-2.60567 -0.5297,-0.69905 -1.3558,-1.04855 -2.4786,-1.04855 z M 41.7033,13.59817 c 0,0.84739 -0.032,1.66288 -0.095,2.44668 -0.042,0.78385 -0.085,1.33456 -0.1271,1.65231 h 0.2542 c 0.5508,-0.88968 1.2605,-1.53575 2.1291,-1.93827 0.8686,-0.40251 1.8325,-0.60371 2.8917,-0.60371 1.8855,0 3.3896,0.50838 4.5124,1.52518 1.144,0.99558 1.716,2.60556 1.716,4.82998 V 32.82218 H 48.2498 V 22.68575 c 0,-2.49951 -0.9322,-3.74937 -2.7964,-3.74937 -1.4194,0 -2.4045,0.49788 -2.9553,1.49362 -0.5297,0.97424 -0.7945,2.38314 -0.7945,4.22592 v 8.16626 H 36.9688 V 8.67305 h 4.7348 z",fill:"#eb594d"}),a.jsx("path",{d:"m 23.345,4.88926 c 1.4307,0 2.8282,0.229 4.1916,0.68692 1.3636,0.45803 2.6999,1.15712 4.0084,2.09748 l -1.8344,2.50966 C 28.6222,9.40175 27.5522,8.82162 26.5004,8.44306 25.4486,8.0645 24.3968,7.87524 23.345,7.87524 c -1.9935,0 -3.5435,0.40902 -4.6503,1.22728 -1.1068,0.81819 -1.6601,1.97842 -1.6601,3.48048 v 0.0183 c 0,1.05019 0.3179,1.8502 0.9538,2.39973 0.636,0.54952 1.4615,0.95869 2.4765,1.22731 1.015,0.26862 2.0975,0.51907 3.2468,0.75111 1.003,0.20755 1.9996,0.44872 2.9905,0.7235 0.9905,0.27478 1.8922,0.66562 2.7057,1.1724 0.813,0.50679 1.4615,1.1937 1.9444,2.06075 0.4832,0.86705 0.7247,1.99672 0.7247,3.38884 v 0.0367 c 0,2.45464 -0.8561,4.35355 -2.5682,5.69703 -1.7122,1.34311 -4.1216,2.01505 -7.2278,2.01505 -1.2963,0 -2.5162,-0.12207 -3.6598,-0.36658 -1.1434,-0.24413 -2.2134,-0.61071 -3.2102,-1.09898 -0.9968,-0.48864 -1.9292,-1.09897 -2.7975,-1.83175 l 1.9628,-2.47308 c 1.0763,0.92809 2.2534,1.62428 3.5314,2.08825 1.2779,0.46431 2.669,0.69627 4.1733,0.69627 2.1158,0 3.7513,-0.40613 4.9071,-1.21827 1.1558,-0.81214 1.7335,-1.95096 1.7335,-3.4164 v -0.0183 c 0,-1.06247 -0.2872,-1.87762 -0.8622,-2.44543 -0.5746,-0.56786 -1.3267,-0.99528 -2.2563,-1.28234 -0.9292,-0.28695 -1.9383,-0.52812 -3.0267,-0.72354 -1.0397,-0.18314 -2.0822,-0.39685 -3.1278,-0.64117 -1.0457,-0.24417 -2.0026,-0.60444 -2.8709,-1.08076 -0.8683,-0.47621 -1.5685,-1.15396 -2.1005,-2.0333 -0.532,-0.87933 -0.798,-2.05162 -0.798,-3.5171 v -0.0183 c 0,-2.4792 0.8255,-4.39955 2.4766,-5.7611 1.651,-1.36167 3.9807,-2.04258 6.9892,-2.04258 z",stroke:"#eb594d",strokeWidth:"2",fill:"#f9cecb"})]})},GS=s.memo(e=>{const{colorLicensee:t="blue",colorError:n="red",colorCredits:o="grey",credits:r="All rights reserved - Michael Ford",feature:i,style:l,...d}=e??{},[c,u]=s.useState(null);s.useEffect(()=>{(async()=>{const _=await N.LicenseManager.getDetails();u(_)})()},[]);const[f,p]=s.useState(!1),h={opacity:.65},m=s.useMemo(()=>{if(!(c?.exceptions().length>0))return null;const _=[];for(let I=0;I<c.exceptions().length;I++){const M=c.exceptions()[I];_.push(a.jsx("div",{style:{opacity:.8,fontSize:"16px",textAlign:"left",color:n},children:M},I))}return _},[c,n]);if(c==null||c.isValidFor(i))return null;const g=c.type(),x=!m&&g.endsWith("ity"),y=c.licensee(),v=x?1.6:1,b=135/v,C=37/v;let k=null;return!g&&y?.length>0&&(k=a.jsx("div",{style:{opacity:.7,fontWeight:"500",fontSize:"16px",textAlign:"left",color:t},children:y})),a.jsx("div",{style:{pointerEvents:"none",display:"flex",flexDirection:"column",overflow:"hidden",...l},...d,children:a.jsxs("div",{style:{position:"relative",display:"flex",flexDirection:"column"},children:[f?a.jsx(ZS,{style:h}):a.jsx("svg",{width:b,height:C,style:h,children:a.jsx("image",{style:{width:b,height:C},href:"https://www.sheetxl.com/watermark.svg",onError:()=>p(!0)})}),a.jsxs("div",{children:[k,m,a.jsx("div",{style:{height:"0px",fontSize:"16px",textAlign:"left",width:"0px",opacity:.8,color:o},children:r})]})]})})}),Ht=(e,t,n)=>{const o=s.useRef(t);o.current=t;const r=n?.fireOnModelChange??!0;s.useEffect(()=>{if(!e||!o.current)return;const i=Object.keys(o.current),l={};for(let c=0;c<i.length;c++){const u=i[c];l[u]=(f,p)=>{o.current[u]?.(f,p)}}const d=e.addListeners(l,n);if(r)for(let c=0;c<i.length;c++)l[i[c]](e);return()=>{d?.()}},[e])},wa=new N.Color("transparent");function KS(e){const{sheet:t,onRepeatCommandChange:n,bodyStyle:o,commands:r,target:i,notifier:l,onStartEdit:d,getViewport:c}=e,[u,f]=s.useState(null),[p,h]=s.useState(null),m=s.useRef(null),g=me(d,[d]),x=me(c,[c]),[y,v]=s.useState(),[b,C]=s.useState(()=>t?.getStyles().parseColor(N.IColor.Scheme.Bg2)),[k,_]=s.useState(()=>t?.getStyles().getNormal().getFont().getFill()),I=mr();s.useRef(I.getMode()).current=I.getMode();const M=A7(),[F,j]=s.useState(Lt.EmptyArray),T=s.useCallback(()=>{if(m.current!==t)return;const H=t.getSelectedRanges();let te=null;F.length>0&&Qn.isCellWithinRange(u,F[0].getRange().getCoords())&&(te=F[0]);const ne=t?.getSelectedCell(),J=ne?.getCoords()??null;eo.unstable_batchedUpdates(()=>{U(te),f(J),h(H)})},[t,F,p,u]),w=s.useCallback(Lt.debounce(T,210),[T]);s.useEffect(()=>{m.current=t,T()},[t]);const S=me(()=>t.getRange(u).getCell(),[t,u]),D=me(async(H,te,ne=null,J=!1,ae=!0)=>{const Q=H?.label?.(),pe=async()=>{const Oe=await Promise.resolve(ae&&l?.showBusy?.(Q??"Busy..."));try{await t.doBatch(async()=>te(t),Q),J&&I.setMode(null),Oe&&Oe()}catch(Ie){if(Oe&&Oe(),!Ie)return;l?.showError?.(Ie)}},ge=[];let Ee=!1;const Be=async()=>(ge.push(pe),(async()=>{if(!Ee){for(Ee=!0;ge.length>0;){const Oe=ge.shift();Oe&&await Oe()}Ee=!1}})());if(n){let Oe=null;if(ne!==!1&&H){const Ie=ne??Q;Oe=new pt(H.key(),i,{label:Ie,description:Ie},Be)}n(Oe)}return Be()},[t,n,l]),E=me((H,te,ne=!1,J)=>D(H,ae=>{const Q=ae.getSelectedRanges();ne&&Q.updateStyle(null,J),Q.updateStyle(te,J),Q.autoFit({expandOnly:N.IRange.Orientation.Column,minContent:!0,skipCustomSize:!0})}),[t]),R=me((H,te,ne)=>{D(H,J=>{let ae=te;(ne||te?.address)&&(ae=ae??{},!ne&&te?.address?.startsWith("#")?ne=te?.address.substring(1):ne&&(ae.displayText=ne)),J.getSelectedRange().setHyperlink(ae)})},[t]),A=me((H,te)=>{D(H,ne=>{ne.getSelectedRange().setComments(te)})},[t]),L=me((H,te)=>{D(H,ne=>{ne.getSelectedRanges().clear(te)})},[t]),P=me(async(H,te,ne=!1,J=!1)=>D(H,async ae=>{let Q=ae.getSelectedRanges();ne&&(te===N.IRange.Orientation.Row?Q=Q.getEntireRows(J):te===N.IRange.Orientation.Column&&(Q=Q.getEntireColumns(J)));let pe=null;const ge=I.getMode()?.key;if(ge==="copy"||ge==="cut"){const Ee=await M.getClipboard().readReference();Ee&&Ee.getItemType()==="range"&&(pe=Ee.getItem(),pe.getCoords()||(pe=null))}if(pe){const Ee=await Q.insertFrom(pe,{...pe.getMarkOptions(),orientation:te,autoSelect:!0});!Ee||Ee.isEntireRows()||Ee.isEntireColumns()||Ee.autoFit({orientations:N.IRange.Orientations.Row,minContent:!0}),I.setMode(null)}else Q.insert(te,{autoSelect:!0})},"Insert Cells",!1),[I]),[z,U]=s.useState(null),O=me(H=>t.getStyles().setDefaultTableStyle(H),[t]),q=me(H=>{t.getStyles().getTableStyle(H)?.delete()},[t]),X=me((H,te)=>{D(H,async ne=>{const J=ne.getSelectedRange(),ae=ne.getSelectedCell().getCoords();let Q=null,pe=0;const ge=ae.rowIndex>0?ne.getRange({rowIndex:ae.rowIndex,colIndex:ae.colIndex}).getExtended(N.IRange.Direction.Up):null;ge&&ne.getRange({colStart:ae.colIndex,rowStart:ge.getCoords().rowStart,colEnd:ae.colIndex,rowEnd:ge.getCoords().rowStart}).isContentful()&&(Q=N.IRange.Direction.Up,pe=ae.rowIndex-ge.getCoords().rowEnd);const Ee=ae.colIndex>0?ne.getRange({rowIndex:ae.rowIndex,colIndex:ae.colIndex-1}).getExtended(N.IRange.Direction.Left):null;if(Ee&&ne.getRange({colStart:Ee.getCoords().colStart,rowStart:ae.rowIndex,colEnd:Ee.getCoords().colStart,rowEnd:ae.rowIndex}).isContentful()){const Oe=ae.colIndex-Ee.getCoords().colEnd;(Oe<pe||!Q)&&(Q=N.IRange.Direction.Left,pe=Oe)}let Be=null;if(Q===N.IRange.Direction.Up){if(Be={...ge.getCoords()},(Be.rowEnd===ae.rowIndex||!ne.getRange({colIndex:ae.colIndex,rowIndex:ae.rowIndex-1}).isContentful())&&Be.rowStart>0&&ne.getRange({colIndex:ae.colIndex,rowIndex:Be.rowStart-1}).isContentful()){const Oe=ge.getExtended(N.IRange.Direction.Up);Be={colStart:ae.colIndex,rowStart:Oe.getCoords().rowStart,colEnd:ae.colIndex,rowEnd:ge.getCoords().rowEnd}}Be.rowEnd=ae.rowIndex-1}else if(Q===N.IRange.Direction.Left){if(Be={...Ee.getCoords()},(Be.colEnd===ae.colIndex||!ne.getRange({colIndex:ae.colIndex-1,rowIndex:ae.rowIndex}).isContentful())&&Be.colStart>0&&ne.getRange({colIndex:Be.colStart-1,rowIndex:ae.rowIndex}).isContentful()){const Oe=Ee.getExtended(N.IRange.Direction.Left);Be={colStart:Oe.getCoords().colStart,rowStart:ae.rowIndex,colEnd:Oe.getCoords().colEnd,rowEnd:ae.rowIndex}}Be.colEnd=ae.colIndex-1}if(J.size!==1&&Q){const Oe=J.getCoords(),Ie=J.startIncrementalUpdates({orientation:N.IRange.Orientation.Column}),Ze={...Be},Ne=Oe.rowStart,qe=Oe.rowEnd,lt=Oe.colStart,wt=Oe.colEnd,Xe=Q===N.IRange.Direction.Up;for(let St=lt;St<=wt;St++){Ze.colStart=Xe?St:Be.colStart+(St-lt),Ze.colEnd=Xe?St:Be.colEnd+(St-lt);for(let Ct=Ne;Ct<=qe;Ct++){Ze.rowStart=Xe?Be.rowStart+(Ct-Ne):Ct,Ze.rowEnd=Xe?Be.rowEnd+(Ct-Ne):Ct;const it=ne.getRange(Ze).toString();Ie.pushAt(Ct,St,`=${te}(${it})`)}}Ie.apply()}else{const Oe=Be?ne.getRange(Be).toString():"",Ie=`=${te}(`;g?.({text:`${Ie}${Oe})`,editMode:!0,initialSelection:{start:Ie.length,end:Ie.length+Oe.length}})}},!1)},[t]),re=me((H,te,ne=!1,J=!0)=>{D(H,async ae=>{let Q=null;if(z)return void z.updateStyleOptions(te);{const Ee=ae.getSelectedRanges().getFixed(!0),Be=ae.getSelectedRange().getDefaultSortCriteria();let Oe={ranges:Ee,hasHeader:Be?.options?.hasHeader??!1};Q=J?new Promise((Ie,Ze)=>{const Ne={tableOptions:Oe,onCancel:()=>{Ze()},onDone:qe=>{Ie(qe)},context:{getNames:()=>ae.getNames()}};l.showWindow?.("tableNew",Ne)}):{option:"Ok",tableOptions:Oe}}const pe=await Promise.resolve(Q);if(pe?.option!=="Ok")throw null;const ge=await Promise.resolve(l?.showBusy?.(H.label()));try{await ae.getTables().add(pe.tableOptions.ranges.at(0),{styleName:te?.name,clearFormatting:ne,hasHeader:pe.tableOptions.hasHeader}).getRange().select()}catch(Ee){ge(),l?.showError?.(Ee)}ge()},!1,!0,!1)},[z]),$=me(()=>o,[o]),W=me(H=>({styles:()=>t.getStyles(),table:()=>H,bodyStyle:$,getNames:()=>t.getNames()}),[t]),B=me(async(H,te,ne,J=!0)=>{let ae=null;if(!te){let Q=t.getSelectedRange();Q.size===1&&(Q=Q.getSurrounding());let pe=t.getTables().search({address:t.getSelectedRange()});pe.length>0&&(te=pe[0]),await Q.select()}if(te){if(J){try{ne&&await te.select()}catch{}ae=new Promise(async(Q,pe)=>{H.update({context:W(te)});const ge={command:H,commands:Y,notifier:l,onDone:Be=>{Q(Be)}},Ee=await l.showWindow?.("tableDetails",ge,{disableAutoDestroy:!0});setTimeout(()=>{Ee.focus()},180)})}Promise.resolve(ae).then(Q=>{},Q=>{l?.showError?.(Q)})}},[l]),Z=me(async(H,te,ne=!1)=>{let J=null;if(te)te.isITable?J=te:te.getValue()&&(J=te.getValue());else{const ae=t.getTables().search({address:t.getSelectedRange()});ae.length>0&&(J=ae[0])}if(J){if(!ne){const ae=J.getRange().getCoords(),Q=(ae.colEnd-ae.colStart+1)*(ae.rowEnd-ae.rowStart+1);if(Q>1e4&&await l?.showOptions({title:"Confirm",description:`Converting a table to range with '${Q}' cells will set a large number of cell styles and may affect performance.
59
- Continue?`,options:["Convert","Cancel"],defaultOption:"Convert"})!=="Convert")return}D(H,async()=>{ne?J.delete():J.convertToRange()},!1,!0)}},[l]),G=me((H,te,ne)=>{D(H,async J=>{let ae=J.getSelectedRanges();if(ae.getCount()>1)throw new Error("Can not sort on multiple cell ranges. Please select a single range and try again.");let Q=ae.at(0);Q.size===1&&(Q=Q.getSurrounding());const pe=J.getSelection().getCoords().cell;let ge=Q.getDefaultSortCriteria(N.IRange.Orientation.Row,pe);if(!ge){if(ne)throw new Error("Invalid sort selection. Sort requires a single range with data.");return}let Ee=ge.options;if(ne&&(Ee=new Promise((Oe,Ie)=>{const Ze={range:Q,options:ge.options,cell:pe,onCancel:()=>{Ie()},onDone:Ne=>{Ne?Oe(Ne.options):Ie()}};l.showWindow?.("sort",Ze)})),Ee=await Promise.resolve(Ee),!Ee)return;const Be=await Promise.resolve(l?.showBusy?.(H.label()));try{Q.doBatch(()=>{const Oe={...Ee,...te};Q.sort(Oe),Q.autoFit({orientations:Oe?.orientation===N.IRange.Orientation.Column?N.IRange.Orientations.Column:N.IRange.Orientations.Row,skipCustomSize:!0,minContent:!0})},H?.label?.())}catch(Oe){Be(),l?.showError?.(Oe)}Be()},!1,!1,!1)},[l]),ie=me(()=>{console.log("compactedSelection");const H=t.getSelection().getCoords(),te=t.getSelectedRanges().getFlattened().getCoords(),ne=(()=>{const Q=new Blob(["console.log('hello from worker');"],{type:"application/javascript"}),pe=URL.createObjectURL(Q),ge=new Worker(pe);return URL.revokeObjectURL(pe),ge})();setTimeout(()=>{ne.terminate(),console.log("Worker terminated")},5e3);let J=-1;for(let Q=0;J===-1&&Q<te.length;Q++)Qn.isCellWithinRange(H.cell,te[Q])&&(J=Q);if(Qn.isEqualRangesArrays(H.ranges,te))return;const ae={cell:H.cell,ranges:te,rangeIndex:J};t.getSelection().updateCoords(ae)},[t]),ee=me(()=>{console.log("selectComments")},[t]),le=me(async(H=!1,te=!1)=>{let ne=null;if(te)ne=t.getEntireRange();else{const J=t.getSelectedRange();if(J.isEntireRange()){const ae=t.getSelection().getCoords().cell,Q=t.getRange(ae);ne=Q.getSurrounding(),ne.isEntireRange()&&(ne=Q)}else ne=J.getSurrounding({contentOnly:H})}ne&&await ne.select()},[t]),ue=me((H,te,ne)=>{D(H,async J=>{let ae=J.getSelectedRanges();ne&&(te===N.IRange.Orientation.Row?ae=ae.getEntireRows():te===N.IRange.Orientation.Column&&(ae=ae.getEntireColumns())),ae.delete(te)},"Delete Cells")},[t]);me(async H=>{let te=null;const ne=x(),J=Math.min(ne.width-8,480),ae=Math.min(ne.height-8,288);try{t.getSelectedRanges(),te=await t.getMovables().add({bounds:{x:ne.left+(ne.width-J)/2,y:ne.top+(ne.height-ae)/2,width:J,height:ae},type:"chart",json:H.template}),te.select(),I.setMode(null)}catch(Q){l?.showError?.(Q)}return te},[t,l]);const de=me(async(H,te,ne)=>{const J=await l?.showBusy?.(H.label());try{const ae=await t.getMovables().addImage(te,{autoSelect:!0,...ne});return J(),I.setMode(null),ae}catch(ae){J();let Q=ae;typeof Q!="string"&&(console.warn(ae),Q="Unable to resolve image."),l?.showMessage?.(Q,{type:jr.Error})}},[t,l]),oe=me((H,te)=>{D(H,async ne=>{const J=ne.getSelectedRanges();J.doBatch(()=>{const ae=te===N.IRange.Direction.Up||te===N.IRange.Direction.Down,Q=J.getCoords().slice().sort(Qn.createRangeComparator(ae?N.IRange.Orientation.Row:N.IRange.Orientation.Column));for(let pe=0;pe<Q.length;pe++){const ge=Q[pe];let Ee=ge;const Be=ne.getRange(Ee).getMerges();let Oe=0,Ie=0;if(Be.length>0){const Ze=Be[0];Oe=Ze.rowEnd-Ze.rowStart,Ie=Ze.colEnd-Ze.colStart}te===N.IRange.Direction.Left?Ee={...ge,colStart:ge.colEnd+Ie}:te===N.IRange.Direction.Right?Ee={...ge,colEnd:ge.colStart+Ie}:te===N.IRange.Direction.Up?Ee={...ge,rowStart:ge.rowEnd+Oe}:te===N.IRange.Direction.Down&&(Ee={...ge,rowEnd:ge.rowStart+Oe}),ne.getRange(Ee).autoFill(ge,{filler:N.AutoFill.Types.Copy}),ne.getRange(ge).autoFit({orientations:N.IRange.Orientations.Row,skipCustomSize:!0,minContent:!0})}},{autoSelect:!0,description:H.label()})})},[l]),fe=me(()=>{let H=null;const te=t.getSelectedCell().getCoords();if(te?.rowIndex>0){const ne=t.getRange({rowIndex:te.rowIndex-1,colIndex:te.colIndex}).getCell();ne&&(H=ne.toTextUnformatted(!0))}g?.({text:H})},[t]),[Te,Le]=s.useReducer(H=>H+1,0),[ce,he]=s.useReducer(H=>H+1,0),we=s.useMemo(()=>[new Me("gridlinesToggle",i,{label:"Gridlines",scopedLabels:{view:"Gridlines"},description:"Toggle whether the lines between rows and columns in the sheet are displayed."}),new Me("sheetViewToggleGridlinesRows",i,{label:"Row Gridlines",scopedLabels:{view:"Row Gridlines",gridlines:"Rows"},description:"Toggle whether the lines between rows in the sheet are displayed."}),new Me("sheetViewToggleGridlinesColumns",i,{label:"Column Gridlines",scopedLabels:{view:"Columns Gridlines",gridlines:"Columns"},description:"Toggle whether the lines between columns in the sheet are displayed."}),new Me("sheetViewFormatGridlinesColor",i,{label:"Gridlines Color",description:"Color the rows and column gridlines."}),new Me("sheetViewToggleShowHeadings",i,{label:"Headings",scopedLabels:{view:"Headings"},description:"Toggle whether the row and column headings are displayed."}),new Me("sheetViewToggleShowHeadingRows",i,{label:"Row Headings",scopedLabels:{view:"Row Headings",headings:"Rows"},description:"Toggle whether the row headings are displayed."}),new Me("sheetViewToggleShowHeadingColumns",i,{label:"Column Headings",scopedLabels:{view:"Columns Headings",headings:"Columns"},description:"Toggle whether the column headings are displayed."}),new Me("sheetViewToggleShowHeadingsNumeric",i,{label:"Numeric Headers",description:"Toggle whether cell headings show numbers or A1 conventions.",shortcut:{key:"h",modifiers:[je.Ctrl,je.Shift]}}),new Me("sheetViewToggleFormulaView",i,{label:"Show Formulas",description:"Toggle whether cells show formula or values.",shortcut:[{key:"`",modifiers:[je.Ctrl]},{key:"`",modifiers:[je.Ctrl,je.Shift]}]}),new Me("sheetViewToggleShowZeros",i,{label:"Show Zeros",description:"Toggle whether cell with zero value shows '0' or blank."}),new pt("selectComments",i,{label:"Select Comments",description:"Select the cells with comments.",shortcut:{key:"O",modifiers:[je.Ctrl,je.Shift]}},()=>ee()),new Me("selectAll",i,{label:"Select All",description:"Select the closest data or the entire sheet if no data is nearby.",shortcut:[{key:"A",modifiers:[je.Ctrl]},{key:"Space",modifiers:[je.Ctrl,je.Shift]}]},(H=!1)=>le(!1,H)),new pt("selectRegion",i,{label:"Select Region",description:"Select the closest data.",shortcut:{key:"*",modifiers:[je.Ctrl,je.Shift]}},()=>le(!0,!1)),new pt("breakSelection",i,{label:"Select Visible",description:"Break the selection based on hidden rows and columns.",shortcut:{key:"Semicolon",modifiers:[je.Ctrl,je.Alt]}},()=>ie()),new pt("formatTextRotate0",i,{label:"No Text Rotation",description:"Remove all text rotation."}),new pt("formatTextRotate45",i,{label:"Angle Clockwise",description:"Angle text 45 degrees downward."}),new pt("formatTextRotate90",i,{label:"Rotate Text Down",description:"Angle your text so that it aligns with the left."}),new pt("formatTextRotate270",i,{label:"Rotate Text Up",description:"Angle your text so that it aligns with the right."}),new pt("formatTextRotate315",i,{label:"Angle Counterclockwise",description:"Angle text 45 degrees upward."}),new Me("formatTextRotateCustom",i,{label:"Custom Text Rotation",description:"Angle your text using a custom angle."}),new pt("formatTextRotateVertical",i,{label:"Vertical Text",description:"Stack text vertically."}),new pt("sortAscending",i,{label:"Sort Ascending",scopedLabels:{sort:"Ascending"},description:"Lowest to Highest."},function(){G(this,{reverse:!1},!1)}),new pt("sortDescending",i,{label:"Sort Descending",scopedLabels:{sort:"Descending"},description:"Highest to Lowest."},function(){G(this,{reverse:!0},!1)}),new pt("sortCustom",i,{label:"Custom Sort…",scopedLabels:{sort:"Custom…"},description:"Choose more options, such as sorting by multiple columns or rows, and case-sensitive sorts."},function(){G(this,{},!0)}),new Me("protectionSheetToggle",i,{label:"Protect Sheet",scopedLabels:{sheet:"Protected"},description:`Prevent unwanted changes from others by limiting their ability to edit.
60
- For example, you can prevent people from editing locked cells or making formatting changes.`}),new Me("formatSheetTabColor",i,{label:"Tab Color",description:"Color the tab to help differentiate for other sheets."}),new Me("formatCellStyle",i,{label:"Cell Styles",scopedLabels:{cellStyle:"Apply"},description:"A colorful style is a great way to make important data stand out on the sheet."},function(H){E(this,{named:H.getName()},!0)}),new Me("formatTableStyle",i,{label:"Format as Table",scopedLabels:{table:"Apply (Keep Styles)"},description:"Create a table or apply style to the current table."},function(H){re(this,H)}),new Me("formatTableStyleClearCellStyles",i,{label:"Format as Table (Clear Styles)",scopedLabels:{table:"Apply (Clear Styles)"},description:"Create a table or apply style to the current table and clears all cell styles."},function(H){re(this,H,!0)}),new Me("formatTableStyleClearTableStyle",i,{label:"Clear Table Style",scopedLabels:{table:"Clear Style"},description:"Remove all the styling that is specific for the table."},function(){re(this,{name:null},!0)}),new Me("setDefaultTableStyle",i,{label:"Set Default Table Style",scopedLabels:{table:"Set As Default"},description:"Sets the default table style used when a table is inserted."},O),new Me("deleteTableStyle",i,{label:"Delete Table Style",scopedLabels:{table:"Delete"},description:"Remove the current table style."},q),new Me("formatBorder",i,{label:"Border",description:"Create an outline border."},function(H){E(this,{border:H})}),new Me("formatFillColor",i,{label:"Fill Color",description:"Color the background of the cells to make them stand out."},function(H){E(this,{fill:H})}),new Me("formatFontColor",i,{label:"Font Color",description:"Change the color of your text."},function(H){E(this,{font:{fill:H}})}),new Me("formatBoldToggle",i,{label:"Bold",description:"Toggle bold formatting of text.",shortcut:[{key:"B",modifiers:[je.Ctrl]},{key:"2",modifiers:[je.Ctrl]}]}),new Me("formatItalicToggle",i,{label:"Italic",description:"Toggle italic formatting of text.",shortcut:[{key:"I",modifiers:[je.Ctrl]},{key:"3",modifiers:[je.Ctrl]}]}),new Me("formatUnderlinedToggle",i,{label:"Underline",scopedLabels:{underline:"Single"},description:"Underline the text.",shortcut:[{key:"u",modifiers:[je.Ctrl]},{key:"4",modifiers:[je.Ctrl]}]}),new Me("formatUnderlinedDoubleToggle",i,{label:"Double Underline",scopedLabels:{underline:"Double"},description:"Double underline the text."}),new Me("formatUnderlinedAccountingToggle",i,{label:"Accounting Underline",scopedLabels:{underline:"Accounting"},description:"Use accounting underline for the text."}),new Me("formatUnderlinedAccountingDoubleToggle",i,{label:"Double Accounting Underline",scopedLabels:{underline:"Double Accounting"},description:"Use accounting double underline the text."}),new Me("formatStrikeThroughToggle",i,{label:"Strikethrough",description:"Toggle strike-through formatting of text.",shortcut:{key:"5",modifiers:[je.Ctrl]}}),new Me("formatSuperscriptToggle",i,{label:"Superscript",description:"Format your text to be smaller and sit at the top of the line."}),new Me("formatSubscriptToggle",i,{label:"Subscript",description:"Format your text to be smaller and sit at the bottom of the line."}),new Me("formatAlignTopToggle",i,{label:"Align Top",description:"Align text to the top."}),new Me("formatTextOverflowVisibleToggle",i,{label:"Overflow Text",description:"Overflow text to the next cells."}),new Me("formatTextOverflowWrapToggle",i,{label:"Wrap Text",description:"Wrap text with the existing cell and increase the height as required."}),new Me("formatTextOverflowClipToggle",i,{label:"Clip Text",description:"Clip text that falls outside of the existing cell."}),new Me("formatTextOverflowShrinkToggle",i,{label:"Shrink Text",description:"Shrink the text font to fit within existing cell."}),new Me("formatTextOverflowEllipsisToggle",i,{label:"Ellipsis Text",description:"Add a trailing '…' to the text to indicate text is partially hidden."}),new Me("formatAlignMiddleToggle",i,{label:"Align Middle",description:"Align text so that it is centered between the top and bottom of the cell."}),new Me("formatAlignBottomToggle",i,{label:"Align Bottom",description:"Align text to the bottom."}),new Me("formatAlignJustifyVerticalToggle",i,{label:"Justify Vertically",description:"Each 'word' in each line of text inside the cell is evenly distributed across the height of the cell."}),new Me("formatAlignDistributedVerticalToggle",i,{label:"Distribute Vertically",description:"Justify your content vertically."}),new Me("formatAlignLeftToggle",i,{label:"Align Left",description:"Align your content to the left."}),new Me("formatAlignCenterToggle",i,{label:"Align Center",description:"Center your content."}),new Me("formatAlignRightToggle",i,{label:"Align Right",description:"Align your content to the right."}),new Me("formatAlignJustifyToggle",i,{label:"Align Justify",description:"Justify your content."}),new Me("formatAlignCenterContinuousToggle",i,{label:"Center Across",description:"Center your content across multiple cells."}),new Me("formatAlignFillToggle",i,{label:"Fill Across",description:"Repeat the value to fill the entire cell."}),new Me("formatAlignDistributedHorizontalToggle",i,{label:"Distribute Horizontally",description:"Each 'word' in each line of text inside the cell is evenly distributed across the width of the cell."}),new pt("formatFontSizeIncrease",i,{label:"Increase Font Size",description:"Make your text a bit bigger.",shortcut:{key:">",modifiers:[je.Ctrl,je.Shift]}},function(){E(this,H=>({font:{size:ud(H.getFont().getSize(),!0)}}))}),new pt("formatFontSizeDecrease",i,{label:"Decrease Font Size",description:"Make your text a bit smaller.",shortcut:{key:"<",modifiers:[je.Ctrl,je.Shift]}},function(){E(this,H=>({font:{size:ud(H.getFont().getSize(),!1)}}))}),new Me("formatFontFamily",i,{label:"Font",description:"Select the font your text."},function(H){E(this,{font:{family:H}})}),new Me("formatFontSize",i,{label:"Font Size",description:"Change the size of your text."},function(H){E(this,{font:{size:H}})}),new Me("formatNumberDialog",i,{label:"Custom Number Format",scopedLabels:{numberFormat:"Custom"},description:"Create a custom number format.",shortcut:[{key:"1",modifiers:[je.Ctrl]},{key:"1",modifiers:[je.Ctrl,je.Alt]}]},function(H,te){const ne=this,J={initialValue:H??te.state(),context:te.context(),onInputOption:(ae,Q)=>{E(ne,{numberFormat:ae})}};l.showWindow?.("numberFormat",J)}),new Me("formatNumberFormat",i,{label:"Number Format",description:"Choose the format for your cells, such as percentage, currency, date or time."},function(H){E(this,{numberFormat:H})}),new Me("formatNumberFormatGeneralStyle",i,{label:"General Style",description:"Remove all specific formatting.",shortcut:{key:"Backquote",modifiers:[je.Ctrl,je.Shift]}},function(){E(this,{numberFormat:N.NumberFormat.Type.General})}),new Me("formatNumberFormatNumberStyle",i,{label:"Number Style",description:"Format as number with two decimals and comma.",shortcut:{key:"1",modifiers:[je.Ctrl,je.Shift]}},function(){E(this,{numberFormat:"#,##0.00"})}),new Me("formatNumberFormatTimeStyle",i,{label:"Time Style",description:"Format as time with hour and minute, and AM or PM.",shortcut:{key:"2",modifiers:[je.Ctrl,je.Shift]}},function(){E(this,{numberFormat:"h:mm AM/PM"})}),new Me("formatNumberFormatDateStyle",i,{label:"Date Style",description:"Format as date with day, month, and year.",shortcut:{key:"3",modifiers:[je.Ctrl,je.Shift]}},function(){E(this,{numberFormat:"d-mmm-yy"})}),new Me("formatNumberFormatAccountingStyle",i,{label:"Accounting Style",description:"Format as Dollars, Euros, or other currency.",shortcut:{key:"4",modifiers:[je.Ctrl,je.Shift]}},function(H){E(this,{numberFormat:H??'_($* #,##0.00_);_($* (#,##0.00);_($* "-"??_);_(@_)'})}),new Me("formatNumberFormatPercentStyle",i,{label:"Percent Style",description:"Format as a percent with no decimal places.",shortcut:{key:"5",modifiers:[je.Ctrl,je.Shift]}},function(){E(this,{numberFormat:"0%"})}),new Me("formatNumberFormatScientificStyle",i,{label:"Scientific Style",description:"Format as a scientific number with two decimal places .",shortcut:{key:"6",modifiers:[je.Ctrl,je.Shift]}},function(){E(this,{numberFormat:"0.00E+00"})}),new Me("formatNumberFormatCommaStyle",i,{label:"Comma Style",description:"Format with a thousands separator.",shortcut:{key:",",modifiers:[je.Ctrl]}},function(){E(this,{numberFormat:'_(* #,##0.00_);_(* (#,##0.00);_(* "-"??_);_(@_)'})}),new Me("formatNumberFormatIncreaseDecimal",i,{label:"Increase Decimal",description:"Show more decimal places for a more precise value."},function(){E(this,H=>({numberFormat:N.NumberFormat.Parser.adjustDecimalPlaces(H.getNumberFormat(),1)}))}),new Me("formatNumberFormatDecreaseDecimal",i,{label:"Decrease Decimal",description:"Show few decimal places."},function(){E(this,H=>({numberFormat:N.NumberFormat.Parser.adjustDecimalPlaces(H.getNumberFormat(),-1)}))}),new Me("displayPlaceholdersToggle",i,{label:"Display Placeholders",description:"Switch between hiding objects, displaying objects, and displaying placeholders for objects.",shortcut:{key:"6",modifiers:[je.Ctrl]}}),new pt("noOp",i,{label:"Do nothing",description:"Do Nothing.",shortcut:{key:"7",modifiers:[je.Ctrl]}},function(){}),new Me("displayOutlineSymbolsToggle",i,{label:"Display Outline Symbols",description:"Display or hide the outline symbols.",shortcut:{key:"8",modifiers:[je.Ctrl]}}),new Me("hideRows",i,{label:"Hide Rows",description:"Hide the rows.",shortcut:{key:"9",modifiers:[je.Ctrl]}}),new Me("unhideRows",i,{label:"Unhide Rows",description:"Unhide the rows.",shortcut:{key:"(",modifiers:[je.Ctrl,je.Shift]}}),new Me("hideColumns",i,{label:"Hide Columns",description:"Hide the columns.",shortcut:[{key:"0",modifiers:[je.Ctrl]},{key:"0",modifiers:[je.Ctrl,je.Alt]}]}),new Me("unhideColumns",i,{label:"Unhide Columns",description:"Unhide the columns.",shortcut:{key:")",modifiers:[je.Ctrl,je.Shift]}}),new Me("quickFormulaSum",i,{label:"Quick Sum",scopedLabels:{quickFormula:"Sum"},description:"Quick sum of the cells.",shortcut:{key:"=",modifiers:[je.Alt]}},function(){X(this,"SUM")}),new Me("quickFormulaAverage",i,{label:"Quick Average",scopedLabels:{quickFormula:"Average"},description:"Quick average of the cells."},function(){X(this,"AVERAGE")}),new Me("quickFormulaCount",i,{label:"Quick Count",scopedLabels:{quickFormula:"Count Numbers"},description:"Quick count of the cells."},function(){X(this,"COUNT")}),new Me("quickFormulaMax",i,{label:"Quick Max",scopedLabels:{quickFormula:"Max"},description:"Quick maximum of the cells."},function(){X(this,"MAX")}),new Me("quickFormulaMin",i,{label:"Quick Min",scopedLabels:{quickFormula:"Min"},description:"Quick minimum of the cells."},function(){X(this,"MIN")}),new Me("startEditCurrentTime",i,{label:"Current Time",description:"Insert the current time.",shortcut:{key:"Semicolon",modifiers:[je.Ctrl,je.Shift]}},function(){g?.({text:t.createTemporaryCell({value:Ol(),style:{numberFormat:"Medium Time"}}).toText()})}),new Me("startEditCurrentDate",i,{label:"Current Date",description:"Insert the current date.",shortcut:{key:"Semicolon",modifiers:[je.Ctrl]}},function(){g?.({text:t.createTemporaryCell({value:Ol(),style:{numberFormat:"Short Date"}}).toText()})}),new pt("sheetZoomOut",i,{label:"Zoom Out",description:"Zoom out to see less detail but more area.",shortcut:[{key:"-",modifiers:[je.Ctrl,je.Alt]},{key:"NumpadSubtract",modifiers:[je.Ctrl,je.Alt]}]}),new pt("sheetZoomIn",i,{label:"Zoom In",description:"Zoom in to see more detail but less area.",shortcut:[{key:"=",modifiers:[je.Ctrl,je.Alt]},{key:"NumpadAdd",modifiers:[je.Ctrl,je.Alt]}]}),new pt("sheetZoom100",i,{label:"Zoom 100%",description:"Zoom document to 100%.",shortcut:{key:"o",modifiers:[je.Ctrl,je.Alt]}}),new Me("insertFunction",i,{label:"Insert Function",disabled:!0,scopedLabels:{insert:"Function",quickFormula:"More Functions..."},description:"Work with the formula in the current cell.",shortcut:{key:"F3",modifiers:[je.Shift]}},function(H,te){console.log("insertFunction")}),new Me("updateHyperlink",i,{label:"Link",scopedLabels:{contextMenu:"Insert Link…",insert:"Link…",hyperlink:"Edit"},description:"Create a hyperlink to either another webpage or another location within this document.",context:()=>S,shortcut:[{key:"K",modifiers:[je.Ctrl]},{key:"K",modifiers:[je.Ctrl,je.Alt]}]},async function(H,te){const ne=this,J={context:te.context(),onUpdateHyperlink:(ae,Q)=>{R(ne,ae,Q)}};l.showWindow?.("hyperlink",J)}),new Me("openHyperlink",i,{label:"Open Link",scopedLabels:{hyperlink:"Open"},shortcut:{key:"Enter",modifiers:[je.Ctrl]},description:"Open the hyperlink or goto another location within this document.",context:()=>S},async(H,te)=>{const ne=te.context()();if(!ne)return;const J=ne.getHyperlink();if(J)try{await J.open()}catch(ae){l?.showError?.(ae)}}),new Me("deleteHyperlink",i,{label:"Delete Link",scopedLabels:{hyperlink:"Delete"},description:"Remove the hyperlink.",context:()=>S},function(H,te){R(this,null,null)}),new pt("insertNote",i,{label:"Insert Note",scopedLabels:{contextMenu:"Insert Note…",insert:"Note"},shortcut:{key:"F2",modifiers:[je.Shift]},description:"Add a note to the cell."},(H,te)=>{((ne,J)=>{ne?.showMessage?.(a.jsxs("p",{style:{marginTop:"0px",marginBottom:"0px"},children:[J," is not yet implemented.",a.jsx("br",{}),a.jsx("br",{}),"Please see the ",a.jsx("a",{style:{whiteSpace:"nowrap"},href:"https://www.sheetxl.com/docs/introduction/roadmap",target:"_blank",rel:"noopener",children:"SheetXL Roadmap"}),"."]}))})(l,te.label())}),new Me("updateComments",i,{label:"Comments",scopedLabels:{contextMenu:"Insert Comments…",insert:"Comments…"},shortcut:{key:"M",modifiers:[je.Ctrl,je.Alt]},description:"Add a comment to the current cell.",context:()=>S},async function(H,te){const ne=this,J={context:te.context(),onUpdateComments:ae=>{A(ne,ae)}};l.showWindow?.("comments",J)}),new Me("deleteComments",i,{label:"Delete Comments",description:"Remove any comments.",context:()=>S},function(H,te){A(this,null)}),new Me("insertImageFromFile",i,{label:"Insert Image",scopedLabels:{contextMenu:"Insert Image…",insert:"Image…",insertImage:"From Device…"},description:"Insert a picture from your device."},async function(H=null){let te=null,ne=null;typeof H=="string"?ne=H:te=H?.file?H.file:H,(te||(te=await Lt.openFileDialog(ne??"image/*"),te))&&await de(this,{file:te},H?.options)}),new Me("insertImageFromURL",i,{label:"Insert Image From Web",scopedLabels:{insert:"Image From Web",insertImage:"From the Web…"},description:"Insert a picture from the web."},async function(H){if(!H){const te=await l?.showInputOptions?.({title:"Insert Image from Web",description:"Enter the web address for the image to insert.",inputLabel:"Address",initialValue:"https://picsum.photos/360",inputProps:{style:{minWidth:"440px"}},options:["Insert"]});if(te.option!=="Insert")return;H=te.input}H&&de(this,{fetch:H})}),new pt("insertTable",i,{label:"Insert Table",scopedLabels:{contextMenu:"Insert Table…",insert:"Table"},description:"Create a table. Tables enable auto formatting, sorting, filtering, and other advanced features.",shortcut:[{key:"L",modifiers:[je.Ctrl]},{key:"T",modifiers:[je.Alt,je.Ctrl]}]},function(){re(this)}),new Me("editTable",i,{label:"Edit Table…",scopedLabels:{table:"Edit…",namedItem:"Edit…"},description:"Edit the table to adjust formatting, sorting, filtering, or other advanced features."},function(H){let te=null,ne=!1;H.isITable?te=H:H.getValue()&&(te=H.getValue(),ne=!0),B(this,te,ne)}),new Me("deleteTable",i,{label:"Delete Table",scopedLabels:{delete:"Table",table:"Delete",namedItem:"Delete"},description:`Remove the table.
61
-
62
- The table and table specific styling will be removed but the values will be preserved.`},function(H){Z(this,H,!0)}),new Me("convertTableToRange",i,{label:"Convert To Range",description:`Convert the table into a normal range of cells.
63
-
64
- The values and the formatting are preserved.`},function(H){Z(this,H,!1)}),new Me("tableTotalRowToggle",i,{label:"Toggle Table Total Row",description:"Toggle Total Row on/off.",scopedLabels:{table:"Total Row"},shortcut:{key:"T",modifiers:[je.Ctrl,je.Alt]}},function(){const H=this.context().table();H&&H.setShowTotals(!H.getShowTotals())}),new Me("tableHeaderRowToggle",i,{label:"Toggle Table Header Row",description:"Toggle Header Row on/off.",scopedLabels:{table:"Header Row"}},function(){const H=this.context().table();H&&H.setShowHeaders(!H.getShowHeaders())}),new Me("autoFilterToggle",i,{label:"Toggle Filter",scopedLabels:{filter:"Filter"},description:"Toggle Auto Filter on/off.",shortcut:{key:"L",modifiers:[je.Ctrl,je.Shift]}},function(){const H=this.context().table();H&&H.setShowFilterButton(!H.getShowFilterButton())}),new Me("autoFilterReapply",i,{label:"Reapply Filter",scopedLabels:{filter:"Reapply"},description:"Reapply the filter and sort with the latest changes.",shortcut:{key:"L",modifiers:[je.Ctrl,je.Alt]}}),new Me("autoFilterClear",i,{label:"Clear Filter",scopedLabels:{filter:"Clear"},description:"Clear the filters criteria from the current filter.."}),new pt("startEditValueAbove",i,{label:"Copy From Above",description:"Copy the value from the cell above the active cell into the cell or the formula bar.",shortcut:[{key:"Quote",modifiers:[je.Ctrl]},{key:'"',modifiers:[je.Ctrl,je.Shift]}]},fe),new Me("formatPainterToggle",i,{label:"Format Painter",description:"Apply style to another part of your workbook."}),new pt("insertCells",i,{label:"Insert Cells",scopedLabels:{insertCells:"At Selection"},description:"Inserts cells at the current selection.",shortcut:{key:"=",modifiers:[je.Ctrl,je.Shift]}},function(){P(this)}),new pt("insertCellsShiftRight",i,{label:"Insert Cells (Shift Right)",scopedLabels:{insertCells:"Shift Right"},description:"Insert cells to the left and shift the current cells to the right."},function(){P(this,N.IRange.Orientation.Column)}),new pt("insertCellsShiftDown",i,{label:"Insert Cells (Shift Down)",scopedLabels:{insertCells:"Shift Down"},description:"Insert cells above and shift the current cells downward."},function(){return P(this,N.IRange.Orientation.Row)}),new pt("insertRows",i,{label:"Insert Row(s)",scopedLabels:{insertCells:"Row(s)"},description:"Insert a row above the current position."},function(){return P(this,N.IRange.Orientation.Row,!0)}),new pt("insertColumns",i,{label:"Insert Column(s)",scopedLabels:{insertCells:"Column(s)"},description:"Insert a column before the current position."},function(){return P(this,N.IRange.Orientation.Column,!0)}),new pt("insertRowsAfter",i,{label:"Insert Row Below",scopedLabels:{insertCells:"Row Below"},description:"Insert a row below the current position."},function(){return P(this,N.IRange.Orientation.Row,!0,!0)}),new pt("insertColumnsAfter",i,{label:"Insert Column After",scopedLabels:{insertCells:"Column After"},description:"Insert a column after the current position."},function(){return P(this,N.IRange.Orientation.Column,!0,!0)}),new pt("deleteCells",i,{label:"Delete Cells",scopedLabels:{deleteCells:"At Selection"},description:"Delete the cells.",shortcut:{key:"-",modifiers:[je.Ctrl]}},function(){return ue(this)}),new pt("deleteCellsShiftUp",i,{label:"Delete Cells (Shift Up)",scopedLabels:{deleteCells:"Shift up"},description:"Delete cells the current current downward."},function(){return ue(this,N.IRange.Orientation.Row)}),new pt("deleteCellsShiftLeft",i,{label:"Delete Cells (Shift Left)",scopedLabels:{deleteCells:"Shift Left"},description:"Delete cells the current cells to the right."},function(){return ue(this,N.IRange.Orientation.Column)}),new pt("deleteRows",i,{label:"Delete Rows",scopedLabels:{deleteCells:"Rows"},description:"Delete the rows at the current selection."},function(){return ue(this,N.IRange.Orientation.Row,!0)}),new pt("deleteColumns",i,{label:"Delete Columns",scopedLabels:{deleteCells:"Columns"},description:"Delete the columns at the current selection."},function(){return ue(this,N.IRange.Orientation.Column,!0)}),new pt("flashFill",i,{label:"Flash Fill",description:"Do a flash fill.",shortcut:[{key:"e",modifiers:[je.Ctrl]},{key:"e",modifiers:[je.Ctrl,je.Alt]}]}),new pt("fillDown",i,{label:"Fill Down",description:"Copy the top-most value from the selection to the bottom of the selection.",shortcut:{key:"d",modifiers:[je.Ctrl]}},function(){return oe(this,N.IRange.Direction.Down)}),new pt("fillRight",i,{label:"Fill Right",description:"Copy the left-most value from the selection to the right of the selection.",shortcut:[{key:"r",modifiers:[je.Ctrl]}]},function(){return oe(this,N.IRange.Direction.Right)}),new pt("fillUp",i,{label:"Fill Up",description:"Copy the bottom-most value from the selection to the top of the selection."},function(){return oe(this,N.IRange.Direction.Up)}),new pt("fillLeft",i,{label:"Fill Left",description:"Copy the right-most value from the selection to the left of the selection."},function(){return oe(this,N.IRange.Direction.Left)}),new pt("formatBorderAddOutline",i,{label:"Add Outline Border",description:"Apply an outline border.",shortcut:{key:"7",modifiers:[je.Ctrl,je.Shift]}},function(){return E(this,{border:{left:{style:N.IBorder.StrokeStyle.Thin,color:null},top:{style:N.IBorder.StrokeStyle.Thin,color:null},right:{style:N.IBorder.StrokeStyle.Thin,color:null},bottom:{style:N.IBorder.StrokeStyle.Thin,color:null}}})}),new pt("formatBorderClearOutline",i,{label:"Remove Outline Border",description:"Remove the outline border.",shortcut:{key:"_",modifiers:[je.Ctrl,je.Shift]}},function(){return E(this,{border:null})}),new pt("formatIndentDecrease",i,{label:"Decrease Indent",description:"Move your content closer to the border."},function(){return E(this,H=>{const te=H.getAlignment().getIndent()-1;return{alignment:{indent:te>0?te:0}}})}),new pt("formatIndentIncrease",i,{label:"Increase Indent",description:"Move your content further from the border."},function(){return E(this,H=>{const te={alignment:{indent:H.getAlignment().getIndent()+1}};return H.getAlignment().getHorizontal()===N.ITextFrame.HorizontalAlignment.General&&(te.alignment.horizontal=N.ITextFrame.HorizontalAlignment.Left),te})}),new Me("mergeToggle",i,{label:"Merge",description:"Combine and center the contents into a single cell.",shortcut:{key:"m",modifiers:[je.Ctrl]}}),new pt("mergeHorizontal",i,{label:"Merge Horizontally",description:"Combine the contents into horizontal rows."}),new pt("mergeVertical",i,{label:"Merge Vertically",description:"Combine the contents into vertical columns."}),new pt("unmerge",i,{label:"Unmerge",description:"Split merged cells into multiple cells."}),new pt("clearContents",i,{label:"Clear Contents",scopedLabels:{clear:"Contents"},description:`Clear only the contents in the cells.
65
-
66
- The formatting is not cleared.`,shortcut:{key:"Delete"}},function(){L(this,N.ICell.Content.Values)}),new pt("clearFormats",i,{label:"Clear Formats",scopedLabels:{clear:"Formats"},description:"Clear only the formatting that is applied to the cells."},function(){L(this,N.ICell.Content.Formats)}),new pt("clearHyperlinks",i,{label:"Clear Hyperlinks",scopedLabels:{clear:"Hyperlinks"},description:"Clear only the hyperlinks in the cells."},function(){L(this,N.ICell.Content.Hyperlinks)}),new pt("clearComments",i,{label:"Clear Comments",scopedLabels:{clear:"Comments"},description:"Clear the comments from the cells."},function(){L(this,N.ICell.Content.Comments)}),new pt("clearAll",i,{label:"Clear All",scopedLabels:{clear:"All"},description:`Clears everything from the cells.
67
-
68
- All contents and formatting are removed.`,shortcut:{key:"Delete",modifiers:[je.Ctrl,je.Shift]}},function(){L(this)}),new Me("freezeToggle",i,{label:"Freeze Panes",description:"Keep rows and columns visible while the rest of the sheet scrolls (based on current selection)."}),new Me("freezeToggleHorizontal",i,{label:"Freeze Top Rows",description:"Keep the top rows visible while scrolling through the rest of the sheet."}),new Me("freezeToggleVertical",i,{label:"Freeze Left Columns",description:"Keep the left columns visible while scrolling through the rest of the sheet."}),new pt("unfreeze",i,{label:"Unfreeze Panes",description:"Unfreeze both the rows and columns."}),new pt("autoFitRows",i,{label:"Autofit Rows",description:"Adjust the rows to the best height."}),new pt("autoFitColumns",i,{label:"Autofit Columns",description:"Adjust the columns to the best width."})],[]),Y=s.useMemo(()=>{let H=null;return H=r?r.createChildGroup(i,"sheet",!1):new vi(i,"sheet"),H.addCommands(we,!0),H},[r,we]),[ze,ht]=s.useState(!1),[ut,ke]=s.useState(!1);s.useEffect(()=>{if(m.current!==t||!p)return;const H=p.getCoords(),te=t.getTables().search({address:H[0]});j(pe=>Lt.isEqualArrays(pe,te)?pe:te),u&&te[0]&&Qn.isCellWithinRange(u,te[0].getRange().getCoords())?U(te[0]??null):U(null);const ne=t.getSelectedRanges(),J=ne.getMerges().length>0,ae=ne.isOverlapping();let Q=!0;for(let pe=0;Q&&pe<H.length;pe++)Q=Qn.isSingleCell(H[pe]);ke(ae),ht(te.length===0&&!ae&&(J||!Q))},[ce,p,t]),Bn(r,null,{onChange:()=>{const H=I.getMode()?.key==="formatPainter";Y.getCommand("formatPainterToggle").update({disabled:!r?.getCommand("copy"),state:()=>H}).updateCallback(()=>H?void I.setMode(null):Y.getCommand("copy").execute({editMode:{key:"formatPainter",description:"Use the mouse to apply the copied format to another selection.",cursor:`url("data:image/svg+xml,%3Csvg width='30' height='22' viewBox='0 0 30 22' xmlns='http://www.w3.org/2000/svg' %3E%3Cg%3E%3Cpath d='M 26.737611,2.811068 V 2.0241451 c 0,-0.4328075 -0.354115,-0.7869227 -0.786923,-0.7869227 h -9.443074 c -0.432808,0 -0.786923,0.3541152 -0.786923,0.7869227 v 3.1476914 c 0,0.4328076 0.354115,0.7869235 0.786923,0.7869235 h 9.443074 c 0.432808,0 0.786923,-0.3541159 0.786923,-0.7869235 V 4.3849137 h 0.786923 v 3.1476915 h -7.869229 v 8.6561518 c 0,0.432808 0.354116,0.786923 0.786923,0.786923 h 1.573846 c 0.432807,0 0.786923,-0.354115 0.786923,-0.786923 V 9.1064513 H 29.09838 V 2.811068 Z M 10.714339,6.2116849 c -1.60877,0.0017 -3.2175361,0.00425 -4.8263048,0.00609 0.0012,1.5756989 0.00158,3.1513905 0.00244,4.7270891 -1.5978311,0.0017 -3.1956617,0.0034 -4.7934919,0.0043 0.00335,1.740011 0.00655,3.480012 0.00988,5.220023 1.5954589,0 3.1909181,0 4.7863775,0 -0.0017,1.606793 -0.00353,3.213585 -0.0051,4.820375 1.7440936,0.0016 3.4881881,0.0033 5.2322842,0.005 -0.0014,-1.608503 -0.0018,-3.217015 -0.0028,-4.825519 1.58518,0 3.17036,0 4.755543,0 0.0033,-1.741851 0.0073,-3.483705 0.01072,-5.225556 -1.58808,0 -3.176158,0 -4.764238,0 0,-1.5775391 0,-3.1550792 0,-4.7326117 -0.135065,1.3e-4 -0.270128,1.982e-4 -0.40519,4.047e-4 z' stroke='black' fill='white'/%3E%3C/g%3E%3C/svg%3E%0A") 7 12, pointer`}}))}},[I,Te,r]),Ht(t.getView(),{onFreezeSplitChange:()=>{he()}}),Ht(t.getSelection(),{onChange:()=>{w()}});const ot=()=>{Y.getCommand("sheetViewFormatGridlinesColor").update({state:()=>t.getView().getGridLineColor(),context:()=>({onColorSelect:H=>{},darkMode:o.darkMode,autoColor:t.getStyles().parseColor(o.strokeFill),schemeLookup:t.getStyles().schemeLookup(),recentColors:()=>t.getStyles().recentColors(),addRecentColor:H=>t.getStyles().addRecentColor(H),clearRecentColors:()=>t.getStyles().clearRecentColors()})}),Y.getCommand("formatSheetTabColor").updateCallback(H=>{t.setTabColor(H)}).update({state:()=>t?.getTabColor()??wa,context:()=>({onColorSelect:H=>{},darkMode:o.darkMode,autoColor:wa,schemeLookup:t.getStyles().schemeLookup(),recentColors:()=>t.getStyles().recentColors(),addRecentColor:H=>t.getStyles().addRecentColor(H),clearRecentColors:()=>t.getStyles().clearRecentColors()})})},dt=()=>{Y.getCommand("formatBorder").update({context:()=>({onBorderSelect:H=>{v(H)},darkMode:o.darkMode,quickBorder:y,autoColor:t.getStyles().getNormal().getFont().getFill(),autoStyle:N.IBorder.StrokeStyle.Thin,createTemporaryBorder:H=>t.getStyles().getNormal().createTemporaryStyle({border:H}).getBorder(),schemeLookup:t.getStyles().schemeLookup()})})};s.useEffect(()=>{dt()},[y]),s.useEffect(()=>{const H=!t.getProtection().isInsertHyperlinksAllowed();Y.getCommand("openHyperlink").update({disabled:!S().getHyperlink()}),Y.getCommand("deleteHyperlink").update({disabled:H||!S().getHyperlink()});const te=S().getHyperlink()?"Edit":"Insert",ne="Link";Y.getCommand("updateHyperlink").update({label:()=>(S().getHyperlink(),`${te} ${ne}`),scopedLabels:{contextMenu:`${te} ${ne}…`,insert:`${ne}…`,hyperlink:`${te}…`},disabled:H})},[S()?.getHyperlink(),Te]),s.useEffect(()=>{const H=S().getComments(),te=()=>H?"Edit":"Insert",ne=()=>H?"Comments":"Comment";Y.getCommand("updateComments").update({label:()=>`${te()} ${ne()}`,scopedLabels:{contextMenu:`${te()} ${ne()}…`,insert:`${ne()}…`}})},[S()?.getComments(),Te]),Ht(t,{onViewChange:()=>{const H=t.getView();Y.getCommand("sheetViewToggleFormulaView").update({state:H.isShowFormulas()}),Y.getCommand("sheetViewToggleShowZeros").update({state:H.isShowZeros()}),Y.getCommand("gridlinesToggle").update({state:H.isShowColumnGridlines()||H.isShowRowGridlines()}),Y.getCommand("sheetViewToggleGridlinesColumns").update({state:H.isShowColumnGridlines()}),Y.getCommand("sheetViewToggleGridlinesRows").update({state:H.isShowRowGridlines()}),Y.getCommand("sheetViewToggleShowHeadings").update({state:H.isShowColumnHeaders()||H.isShowRowHeaders()}),Y.getCommand("sheetViewToggleShowHeadingColumns").update({state:H.isShowColumnHeaders()}),Y.getCommand("sheetViewToggleShowHeadingRows").update({state:H.isShowRowHeaders()}),Y.getCommand("sheetViewToggleShowHeadingsNumeric").update({state:()=>t.getView().getColumnHeaderStyle()===N.ISheetView.HeaderTextStyle.Zero&&t.getView().getRowHeaderStyle()===N.ISheetView.HeaderTextStyle.Zero}),ot()},onTabColorChange:()=>{ot()},onMergesChange:()=>{he()},onMovablesChange:()=>{he()},onTablesChange:()=>{he()},onProtectionChange:()=>{he(),Le()},onStyleChange:()=>{ot(),dt(),he()}}),s.useEffect(()=>{ot(),dt()},[o]),s.useEffect(()=>{const H=!t.getProtection().isFormatCellsAllowed(),te=F.length>0&&!z||H,ne=W(z),J={context:ne};Y.getCommand("editTable").update(J),Y.getCommand("deleteTable").update(J),Y.getCommand("convertTableToRange").update(J);const ae={context:ne,disabled:te};Y.getCommand("formatTableStyle").update({label:z?"Apply Table Style":"Format As Table",...ae}),Y.getCommand("formatTableStyleClearCellStyles").update(ae),Y.getCommand("deleteTableStyle").update(ae),Y.getCommand("convertTableToRange").update(ae),Y.getCommand("insertTable").update({disabled:te||F.length>0});const Q={context:ne,disabled:te||F.length===0};Y.getCommand("tableHeaderRowToggle").update(Q),Y.getCommand("tableTotalRowToggle").update(Q),Y.getCommand("autoFilterToggle").update(Q),Y.getCommand("formatTableStyleClearTableStyle").update({...Q,disabled:Q.disabled||!z||z.getStyleOptions().name===null})},[z,F,Te]),s.useEffect(()=>{Y.getCommand("sheetZoomOut").updateCallback(()=>{t.getView().update({zoomScale:Lt.findNextStep(t.getView().getZoomScale(),!1)})}),Y.getCommand("sheetZoomIn").updateCallback(()=>{t.getView().update({zoomScale:Lt.findNextStep(t.getView().getZoomScale())})}),Y.getCommand("sheetZoom100").updateCallback(()=>{t.getView().update({zoomScale:100})}),Y.getCommand("gridlinesToggle").updateCallback(()=>{const H=t.getView().isShowColumnGridlines()&&t.getView().isShowRowGridlines();t.getView().update({showColumnGridlines:!H,showRowGridlines:!H})}),Y.getCommand("sheetViewToggleGridlinesRows").updateCallback(()=>{t.getView().update({showRowGridlines:!t.getView().isShowRowGridlines()})}),Y.getCommand("sheetViewToggleGridlinesColumns").updateCallback(()=>{t.getView().update({showColumnGridlines:!t.getView().isShowColumnGridlines()})}),Y.getCommand("sheetViewFormatGridlinesColor").updateCallback(H=>{t.getView().update({gridLineColor:H})}),Y.getCommand("sheetViewToggleShowHeadings").updateCallback(()=>{const H=t.getView().isShowColumnHeaders()&&t.getView().isShowRowHeaders();t.getView().update({showColumnHeaders:!H,showRowHeaders:!H})}),Y.getCommand("sheetViewToggleShowHeadingColumns").updateCallback(()=>{t.getView().update({showColumnHeaders:!t.getView().isShowColumnHeaders()})}),Y.getCommand("sheetViewToggleShowHeadingRows").updateCallback(()=>{t.getView().update({showRowHeaders:!t.getView().isShowRowHeaders()})}),Y.getCommand("sheetViewToggleShowHeadingsNumeric").updateCallback(()=>{const H=t.getView().getColumnHeaderStyle()===N.ISheetView.HeaderTextStyle.Zero&&t.getView().getRowHeaderStyle()===N.ISheetView.HeaderTextStyle.Zero;t.getView().update({columnHeaderStyle:H?N.ISheetView.HeaderTextStyle.A1:N.ISheetView.HeaderTextStyle.Zero,rowHeaderStyle:H?N.ISheetView.HeaderTextStyle.One:N.ISheetView.HeaderTextStyle.Zero})}),Y.getCommand("sheetViewToggleFormulaView").updateCallback(()=>{t.getView().update({showFormulas:!t.getView().isShowFormulas()})}),Y.getCommand("sheetViewToggleShowZeros").updateCallback(()=>{t.getView().update({showZeros:!t.getView().isShowZeros()})})},[t]),s.useEffect(()=>{const H=t.getView().getFreezePanes(),te=()=>H.coords.rowIndex!==0,ne=()=>H.coords.colIndex!==0,J=()=>H.coords.rowIndex!==0||H.coords.colIndex!==0;Y.getCommand("freezeToggle").updateCallback(()=>{J()?t.getView().setFreezePanes(null):J()?ne()?t.getView().setFreezePanes({coords:{rowIndex:u.rowIndex}}):te()&&t.getView().setFreezePanes({coords:{colIndex:u.colIndex}}):t.getView().setFreezePanes({coords:u})}).update({state:J,disabled:()=>!u||!J()&&u.rowIndex===0&&u.colIndex===0}),Y.getCommand("freezeToggleHorizontal").updateCallback(()=>{t.getView().setFreezePanes({coords:{rowIndex:te()?0:u.rowIndex}})}).update({state:te,disabled:()=>!u||!te()&&u.rowIndex===0}),Y.getCommand("freezeToggleVertical").updateCallback(()=>{t.getView().setFreezePanes({coords:{colIndex:ne()?0:u.colIndex}})}).update({state:ne,disabled:()=>!u||!ne()&&u.colIndex===0}),Y.getCommand("unfreeze").updateCallback(()=>{t.getView().setFreezePanes(null)}).update({disabled:()=>!J()})},[ce,u,t,o]);const Fe=S().getStyle(),Je=Fe.getFont(),Ge=Fe.getAlignment(),se=Ge.getHorizontal(),We=Ge.getVertical(),be=Ge.getOverflow(),Se=Ge.getRotation();return s.useEffect(()=>{Y.getCommand("formatCellStyle").update({context:()=>({styles:()=>t.getStyles(),named:()=>S().getStyle(!0).getNamed(),bodyStyle:$,createTemporaryCell:it=>t.createTemporaryCell(it)})}),Y.getCommand("formatFillColor").update({state:()=>{let it=null;const Ot=Fe.getFill();return Ot?.getType()===N.IFill.Type.Solid?it=Ot.getColor():Ot?.getType()===N.IFill.Type.Gradient?it=Ot.getStops()?.[0]?.getColor():Ot?.getType()===N.IFill.Type.Pattern&&(it=Ot.getBackground()),it},context:()=>{const it=t.getStyles();return{onColorSelect:Ot=>{C(Ot??wa)},darkMode:o.darkMode,quickColor:b,autoColor:wa,schemeLookup:it.schemeLookup(),recentColors:it.recentColors(),addRecentColor:Ot=>it.addRecentColor(Ot),clearRecentColors:()=>it.clearRecentColors()}}}),Y.getCommand("formatFontColor").update({state:()=>Je.toJSON()?.fill?Je.getFill():null,context:()=>{const it=t.getStyles();return{onColorSelect:Ot=>{_(Ot)},darkMode:o.darkMode,quickColor:k,autoColor:it.getNormal().getFont().getFill(),schemeLookup:it.schemeLookup(),recentColors:it.recentColors(),addRecentColor:Ot=>it.addRecentColor(Ot),clearRecentColors:()=>it.clearRecentColors()}}}),Y.getCommand("formatNumberFormat").update({state:()=>Fe.getNumberFormat(),context:()=>S}),Y.getCommand("formatNumberDialog").update({state:()=>Fe.getNumberFormat(),context:()=>S}),Y.getCommand("formatFontFamily").update({state:()=>Je.getFamily()}),Y.getCommand("formatFontSize").update({state:()=>Je.getSize()});const H=function(){const it=Je.getWeight()||0;return!isNaN(it)&&it>500};Y.getCommand("formatBoldToggle").updateCallback(function(){E(this,{font:{weight:H()?400:700}})}).update({state:H});const te=function(){return Je.getStyle()===N.IFont.Style.Italic};Y.getCommand("formatItalicToggle").updateCallback(function(){E(this,{font:{style:te()?N.IFont.Style.Normal:N.IFont.Style.Italic}})}).update({state:te}),Y.getCommand("formatStrikeThroughToggle").updateCallback(function(){E(this,{font:{strike:!Je.getStrike()}})}).update({state:Je.getStrike()}),Y.getCommand("formatUnderlinedToggle").updateCallback(function(){E(this,{font:{underline:Je.getUnderline()!==N.IFont.UnderlineStyle.Single?N.IFont.UnderlineStyle.Single:N.IFont.UnderlineStyle.None}})}).update({state:Je.getUnderline()===N.IFont.UnderlineStyle.Single}),Y.getCommand("formatUnderlinedDoubleToggle").updateCallback(function(){E(this,{font:{underline:Je.getUnderline()!==N.IFont.UnderlineStyle.Double?N.IFont.UnderlineStyle.Double:N.IFont.UnderlineStyle.None}})}).update({state:Je.getUnderline()===N.IFont.UnderlineStyle.Double}),Y.getCommand("formatUnderlinedAccountingToggle").updateCallback(function(){E(this,{font:{underline:Je.getUnderline()!==N.IFont.UnderlineStyle.SingleAccounting?N.IFont.UnderlineStyle.SingleAccounting:N.IFont.UnderlineStyle.None}})}).update({state:Je.getUnderline()===N.IFont.UnderlineStyle.SingleAccounting}),Y.getCommand("formatUnderlinedAccountingDoubleToggle").updateCallback(function(){E(this,{font:{underline:Je.getUnderline()!==N.IFont.UnderlineStyle.DoubleAccounting?N.IFont.UnderlineStyle.DoubleAccounting:N.IFont.UnderlineStyle.None}})}).update({state:Je.getUnderline()===N.IFont.UnderlineStyle.DoubleAccounting}),Y.getCommand("formatSuperscriptToggle").updateCallback(function(){E(this,{font:{verticalAlign:Je.getVerticalAlignment()!==N.IFont.VerticalAlignment.Super?N.IFont.VerticalAlignment.Super:N.IFont.VerticalAlignment.Baseline}})}).update({state:Je.getVerticalAlignment()===N.IFont.VerticalAlignment.Super}),Y.getCommand("formatSubscriptToggle").updateCallback(function(){E(this,{font:{verticalAlign:Je.getVerticalAlignment()!==N.IFont.VerticalAlignment.Sub?N.IFont.VerticalAlignment.Sub:N.IFont.VerticalAlignment.Baseline}})}).update({state:Je.getVerticalAlignment()===N.IFont.VerticalAlignment.Sub});const ne=()=>be===N.ITextFrame.Overflow.Visible;Y.getCommand("formatTextOverflowVisibleToggle").updateCallback(function(){E(this,{alignment:{overflow:(ne(),N.ITextFrame.Overflow.Visible)}})}).update({state:ne});const J=()=>be===N.ITextFrame.Overflow.Wrap;Y.getCommand("formatTextOverflowWrapToggle").updateCallback(function(){E(this,{alignment:{overflow:J()?N.ITextFrame.Overflow.Visible:N.ITextFrame.Overflow.Wrap}})}).update({state:J});const ae=function(){return be===N.ITextFrame.Overflow.Clip};Y.getCommand("formatTextOverflowClipToggle").updateCallback(function(){E(this,{alignment:{overflow:ae()?N.ITextFrame.Overflow.Visible:N.ITextFrame.Overflow.Clip}})}).update({state:ae});const Q=function(){return be===N.ITextFrame.Overflow.Shrink};Y.getCommand("formatTextOverflowShrinkToggle").updateCallback(function(){E(this,{alignment:{overflow:Q()?N.ITextFrame.Overflow.Visible:N.ITextFrame.Overflow.Shrink}})}).update({state:Q});const pe=function(){return be===N.ITextFrame.Overflow.Shrink};Y.getCommand("formatTextOverflowEllipsisToggle").updateCallback(function(){E(this,{alignment:{overflow:pe()?N.ITextFrame.Overflow.Visible:N.ITextFrame.Overflow.Ellipsis}})}).update({state:pe,disabled:!0});const ge=function(){return We===N.ITextFrame.VerticalAlignment.Top};Y.getCommand("formatAlignTopToggle").updateCallback(function(){E(this,{alignment:{vertical:ge()?N.ITextFrame.VerticalAlignment.Bottom:N.ITextFrame.VerticalAlignment.Top}})}).update({state:ge});const Ee=function(){return We===N.ITextFrame.VerticalAlignment.Center};Y.getCommand("formatAlignMiddleToggle").updateCallback(function(){E(this,{alignment:{vertical:Ee()?N.ITextFrame.VerticalAlignment.Bottom:N.ITextFrame.VerticalAlignment.Center}})}).update({state:Ee});const Be=function(){return We===N.ITextFrame.VerticalAlignment.Bottom};Y.getCommand("formatAlignBottomToggle").updateCallback(function(){E(this,{alignment:{vertical:(Be(),N.ITextFrame.VerticalAlignment.Bottom)}})}).update({state:Be});const Oe=function(){return We===N.ITextFrame.VerticalAlignment.Justify};Y.getCommand("formatAlignJustifyVerticalToggle").updateCallback(function(){E(this,{alignment:{vertical:Oe()?N.ITextFrame.VerticalAlignment.Bottom:N.ITextFrame.VerticalAlignment.Justify}})}).update({state:Oe});const Ie=function(){return We===N.ITextFrame.VerticalAlignment.Distributed};Y.getCommand("formatAlignDistributedVerticalToggle").updateCallback(function(){E(this,{alignment:{vertical:Ie()?N.ITextFrame.VerticalAlignment.Bottom:N.ITextFrame.VerticalAlignment.Distributed}})}).update({state:Ie});const Ze=function(){return se===N.ITextFrame.HorizontalAlignment.Left};Y.getCommand("formatAlignLeftToggle").updateCallback(function(){E(this,{alignment:{horizontal:Ze()?N.ITextFrame.HorizontalAlignment.General:N.ITextFrame.HorizontalAlignment.Left}})}).update({state:Ze});const Ne=function(){return se===N.ITextFrame.HorizontalAlignment.Center};Y.getCommand("formatAlignCenterToggle").updateCallback(function(){E(this,{alignment:{horizontal:Ne()?N.ITextFrame.HorizontalAlignment.General:N.ITextFrame.HorizontalAlignment.Center}})}).update({state:Ne});const qe=function(){return se===N.ITextFrame.HorizontalAlignment.CenterContinuous};Y.getCommand("formatAlignCenterContinuousToggle").updateCallback(function(){const it={alignment:{horizontal:qe()?N.ITextFrame.HorizontalAlignment.General:N.ITextFrame.HorizontalAlignment.CenterContinuous,rotation:null}};E(this,it)}).update({state:qe});const lt=function(){return se===N.ITextFrame.HorizontalAlignment.Fill};Y.getCommand("formatAlignFillToggle").updateCallback(function(){const it={alignment:{horizontal:lt()?N.ITextFrame.HorizontalAlignment.General:N.ITextFrame.HorizontalAlignment.Fill,rotation:null}};E(this,it)}).update({state:lt});const wt=function(){return se===N.ITextFrame.HorizontalAlignment.Distributed};Y.getCommand("formatAlignDistributedHorizontalToggle").updateCallback(function(){E(this,{alignment:{horizontal:wt()?N.ITextFrame.HorizontalAlignment.General:N.ITextFrame.HorizontalAlignment.Distributed}})}).update({state:wt});const Xe=function(){return se===N.ITextFrame.HorizontalAlignment.Right};Y.getCommand("formatAlignRightToggle").updateCallback(function(){E(this,{alignment:{horizontal:Xe()?N.ITextFrame.HorizontalAlignment.General:N.ITextFrame.HorizontalAlignment.Right}})}).update({state:Xe});const St=function(){return se===N.ITextFrame.HorizontalAlignment.Justify};Y.getCommand("formatAlignJustifyToggle").updateCallback(function(){E(this,{alignment:{horizontal:St()?N.ITextFrame.HorizontalAlignment.General:N.ITextFrame.HorizontalAlignment.Justify}})}).update({state:St});const Ct=se===N.ITextFrame.HorizontalAlignment.CenterContinuous||se===N.ITextFrame.HorizontalAlignment.Fill;Y.getCommand("formatTextRotate0").updateCallback(function(it){E(this,{alignment:{rotation:0}})}).update({disabled:Ct,state:Se===0}),Y.getCommand("formatTextRotate45").updateCallback(function(it){E(this,{alignment:{rotation:it??1?45:0}})}).update({disabled:Ct,state:Se===45}),Y.getCommand("formatTextRotate90").updateCallback(function(it){E(this,{alignment:{rotation:it??1?90:0}})}).update({disabled:Ct,state:Se===90}),Y.getCommand("formatTextRotate270").updateCallback(function(it){E(this,{alignment:{rotation:it??1?270:0}})}).update({disabled:Ct,state:Se===270}),Y.getCommand("formatTextRotate315").updateCallback(function(it){E(this,{alignment:{rotation:it??1?315:0}})}).update({disabled:Ct,state:Se===315}),Y.getCommand("formatTextRotateCustom").updateCallback(function(it){E(this,{alignment:{rotation:it}})}).update({disabled:Ct,state:Se??0})},[Fe,t,o,b,k]),s.useEffect(()=>{const H=!t.getProtection().isFormatCellsAllowed(),te=t.getSelectedRanges().getMerges().length>0,ne=async(At,jt)=>{D(jt,async un=>{const vn=async(ln=!1)=>{const Jt=await Promise.resolve(l?.showBusy?.(jt.label()));try{const ro=un.getSelectedRanges();if(ro.merge({orientations:At,discardMultipleValues:ln}),At===N.IRange.Orientations.Both){const Io={alignment:{horizontal:N.ITextFrame.HorizontalAlignment.Center}};ro.updateStyle(Io)}}catch(ro){throw ro}finally{Jt?.()}};let rn;try{await vn()}catch(ln){if(ln.type!=="discardMultipleValues")throw ln;rn=!0}if(rn&&l?.showOptions){if(await l?.showOptions({title:"Confirm",description:"Merging cells will only keep the upper-left value. Some data will be discarded. Continue?",options:["Merge","Cancel"],defaultOption:"Merge"})!=="Merge")return;await vn(!0)}},void 0,void 0,!1)},J=At=>{D(At,async jt=>{try{const un=jt.getSelectedRanges();un.unmerge();const vn={alignment:{horizontal:null}};un.updateStyle(vn)}catch(un){throw un}})};Y.getCommand("mergeToggle").updateCallback(function(){Qn.isSingleCell(t.getSelectedRange().getCoords())||(te?J(this):ne(N.IRange.Orientations.Both,this))}).update({state:te,disabled:!ze||H}),Y.getCommand("mergeHorizontal").updateCallback(function(){ne(N.IRange.Orientations.Column,this)}).update({disabled:!ze||H}),Y.getCommand("mergeVertical").updateCallback(function(){ne(N.IRange.Orientations.Row,this)}).update({disabled:!ze}),Y.getCommand("unmerge").updateCallback(function(){J(this)}).update({disabled:!te||!ze||H});const ae={disabled:H};Y.getCommand("hideRows").updateCallback(function(){D(this,At=>{At.getRowHeaders().setHidden(At.getSelectedRanges().getCoords(),!0)})}).update(ae),Y.getCommand("hideColumns").updateCallback(function(){D(this,At=>{At.getColumnHeaders().setHidden(At.getSelectedRanges().getCoords(),!0)})}).update(ae),Y.getCommand("unhideRows").updateCallback(function(){D(this,At=>{At.getRowHeaders().setHidden(At.getSelectedRanges().getCoords(),!1)})}).update(ae),Y.getCommand("unhideColumns").updateCallback(function(){D(this,At=>{At.getColumnHeaders().setHidden(At.getSelectedRanges().getCoords(),!1)})}).update(ae),Y.getCommand("autoFitRows").updateCallback(function(){D(this,At=>{At.getSelectedRanges().autoFit({orientations:N.IRange.Orientations.Row})})}).update(ae),Y.getCommand("autoFitColumns").updateCallback(function(){D(this,At=>{At.getSelectedRanges().autoFit({orientations:N.IRange.Orientations.Column})})}).update(ae);let Q=!1,pe=0,ge=!1,Ee=!1,Be=0,Oe=!1;!p||H||ut||(Q=p.isEntireColumnsAny(),Q&&!p.isEntireColumns()?ge=!0:pe=p.getColumnCount(),Ee=p.isEntireRowsAny(),Ee&&!p.isEntireRows()?Oe=!0:Be=p.getRowCount());const Ie={disabled:H||p&&p.getCount()!==1};Y.getCommand("sortAscending").update(Ie),Y.getCommand("sortDescending").update(Ie);const Ze={disabled:Q||Ee||H||ut},Ne=Q||H||ut||Oe;Ne&&(pe=1);const qe=Ee||H||ut||ge;qe&&(Be=1);let lt="",wt="",Xe="",St="",Ct="",it="",Ot="",sn="",yn="";pe>1&&(it=wt=pe+" ",Ot=Xe="s"),Be>1&&(sn=St=Be+" ",yn=Ct="s"),I.getMode()?.key==="copy"?(lt=St=wt="Copied ",Xe=Ct="s"):I.getMode()?.key==="cut"&&(lt=St=wt="Cut ",Xe=Ct="s");let In="",Ln="";if(p){const At=p.getDefaultShiftOrientation()===N.IRange.Orientation.Column;In=` (${At?"Shift Right":"Shift Down"})`,Ln=` (${At?"Shift Left":"Shift up"})`,Y.getCommand("deleteCells").update({label:`Delete Cells${Ln}`})}Y.getCommand("insertCells").update({label:`Insert ${lt}Cells${In}`,scopedLabels:{insertCells:`${lt}At Selection`}}),Y.getCommand("insertCellsShiftRight").update(Ze),Y.getCommand("insertCellsShiftDown").update(Ze),Y.getCommand("deleteCellsShiftUp").update(Ze),Y.getCommand("deleteCellsShiftLeft").update(Ze),Y.getCommand("insertRows").update({label:`Insert ${St}Row${Ct}`,scopedLabels:{insertCells:`${St}Row${Ct}`},disabled:qe}),Y.getCommand("insertRowsAfter").update({label:`Insert ${St}Row${Ct} Below`,disabled:qe}),Y.getCommand("insertColumns").update({label:`Insert ${wt}Column${Xe}`,scopedLabels:{insertCells:`${wt}Column${Xe}`},disabled:Ne}),Y.getCommand("insertColumnsAfter").update({label:`Insert ${wt}Column${Xe} After`,disabled:Ne}),Y.getCommand("deleteRows").update({label:`Delete ${sn}Row${yn}`,scopedLabels:{deleteCells:`${sn}Row${yn}`},disabled:qe}),Y.getCommand("deleteColumns").update({label:`Delete ${it}Column${Ot}`,scopedLabels:{deleteCells:`${it}Column${Ot}`},disabled:Ne})},[ce,ze,ut,p,I,l,Te]),s.useEffect(()=>{const H=t.getProtection(),te=t.getProtection().isLocked(),ne=!H.isFormatCellsAllowed(),J={disabled:ne};Y.getCommand("protectionSheetToggle").updateCallback(async(pe,ge)=>{let Ee=null;try{if(te){let Be=null;if(H.hasPassword()){const Oe=await l?.showInputOptions({title:"Password Required",description:"Enter a password to unprotected",options:["Unprotect","Cancel"],defaultOption:"Unprotect",inputType:"password"});if(Oe.option!=="Unprotect")return;Be=Oe.input}Ee=await Promise.resolve(l?.showBusy?.(ge.label())),await H.unlock(Be)}else Ee=await Promise.resolve(l?.showBusy?.(ge.label())),await H.lock();Ee?.()}catch(Be){Ee?.(),l?.showError?.(Be)}}).update({state:te,label:()=>te?"Unprotect Sheet":"Protect Sheet",scopedLabels:{sheet:te?"Unprotect":"Protect"}}),Y.getCommand("deleteTable").update(J),Y.getCommand("sortAscending").update(J),Y.getCommand("sortDescending").update(J),Y.getCommand("sortCustom")?.update(J),Y.getCommand("updateComments").update(J),Y.getCommand("deleteComments").update(J),Y.getCommand("insertChart")?.update(J),Y.getCommand("insertImageFromFile").update(J),Y.getCommand("insertImageFromURL").update(J),Y.getCommand("formatBorder").update(J),Y.getCommand("formatFillColor").update(J),Y.getCommand("formatFontColor").update(J),Y.getCommand("formatBoldToggle").update(J),Y.getCommand("formatItalicToggle").update(J),Y.getCommand("formatUnderlinedToggle").update(J),Y.getCommand("formatStrikeThroughToggle").update(J),Y.getCommand("formatSuperscriptToggle").update(J),Y.getCommand("formatSubscriptToggle").update(J),Y.getCommand("formatAlignTopToggle").update(J),Y.getCommand("formatTextOverflowVisibleToggle").update(J),Y.getCommand("formatTextOverflowWrapToggle").update(J),Y.getCommand("formatTextOverflowClipToggle").update(J),Y.getCommand("formatTextOverflowShrinkToggle").update(J),Y.getCommand("formatAlignMiddleToggle").update(J),Y.getCommand("formatAlignBottomToggle").update(J),Y.getCommand("formatAlignDistributedVerticalToggle").update(J),Y.getCommand("formatAlignJustifyVerticalToggle").update(J),Y.getCommand("formatAlignLeftToggle").update(J),Y.getCommand("formatAlignCenterToggle").update(J),Y.getCommand("formatAlignRightToggle").update(J),Y.getCommand("formatAlignJustifyToggle").update(J),Y.getCommand("formatAlignCenterContinuousToggle").update(J),Y.getCommand("formatAlignDistributedHorizontalToggle").update(J),Y.getCommand("formatAlignFillToggle").update(J),Y.getCommand("formatFontSizeIncrease").update(J),Y.getCommand("formatFontSizeDecrease").update(J),Y.getCommand("formatFontFamily").update(J),Y.getCommand("formatFontSize").update(J),Y.getCommand("formatNumberFormat").update(J),Y.getCommand("formatNumberFormatGeneralStyle").update(J),Y.getCommand("formatNumberFormatNumberStyle").update(J),Y.getCommand("formatNumberFormatTimeStyle").update(J),Y.getCommand("formatNumberFormatDateStyle").update(J),Y.getCommand("formatNumberFormatAccountingStyle").update(J),Y.getCommand("formatNumberFormatPercentStyle").update(J),Y.getCommand("formatNumberFormatScientificStyle").update(J),Y.getCommand("formatNumberFormatCommaStyle").update(J),Y.getCommand("formatNumberFormatIncreaseDecimal").update(J),Y.getCommand("formatNumberFormatDecreaseDecimal").update(J),Y.getCommand("hideColumns").update(J),Y.getCommand("unhideColumns").update(J),Y.getCommand("hideRows").update(J),Y.getCommand("unhideRows").update(J),Y.getCommand("quickFormulaSum").update(J),Y.getCommand("quickFormulaAverage").update(J),Y.getCommand("quickFormulaCount").update(J),Y.getCommand("quickFormulaMax").update(J),Y.getCommand("quickFormulaMin").update(J),Y.getCommand("startEditCurrentTime").update(J),Y.getCommand("startEditCurrentDate").update(J),Y.getCommand("startEditValueAbove").update(J),Y.getCommand("fillDown").update(J),Y.getCommand("fillRight").update(J),Y.getCommand("fillUp").update(J),Y.getCommand("fillLeft").update(J),Y.getCommand("formatCellStyle").update(J),Y.getCommand("formatTableStyle").update(J),Y.getCommand("formatBorderAddOutline").update(J),Y.getCommand("formatBorderClearOutline").update(J),Y.getCommand("formatIndentDecrease").update(J),Y.getCommand("formatIndentIncrease").update(J),Y.getCommand("clearContents").update(J),Y.getCommand("clearFormats").update(J),Y.getCommand("clearAll").update(J);const ae=se===N.ITextFrame.HorizontalAlignment.CenterContinuous||se===N.ITextFrame.HorizontalAlignment.Fill,Q={disabled:ne||ae};Y.getCommand("formatTextRotate0").update(Q),Y.getCommand("formatTextRotate45").update(Q),Y.getCommand("formatTextRotate90").update(Q),Y.getCommand("formatTextRotate270").update(Q),Y.getCommand("formatTextRotate315").update(Q),Y.getCommand("formatTextRotateCustom").update(Q),Y.getCommand("formatTextRotateVertical").update(Q)},[ce]),Y}var U6,q6;(function(){if(q6)return U6;q6=1;var e=/^\s+|\s+$/g,t=/^[-+]0x[0-9a-f]+$/i,n=/^0b[01]+$/i,o=/^0o[0-7]+$/i,r=parseInt,i=typeof il=="object"&&il&&il.Object===Object&&il,l=typeof self=="object"&&self&&self.Object===Object&&self,d=i||l||Function("return this")(),c=Object.prototype.toString,u=Math.max,f=Math.min,p=function(){return d.Date.now()};function h(g){var x=typeof g;return!!g&&(x=="object"||x=="function")}function m(g){if(typeof g=="number")return g;if(function(v){return typeof v=="symbol"||function(b){return!!b&&typeof b=="object"}(v)&&c.call(v)=="[object Symbol]"}(g))return NaN;if(h(g)){var x=typeof g.valueOf=="function"?g.valueOf():g;g=h(x)?x+"":x}if(typeof g!="string")return g===0?g:+g;g=g.replace(e,"");var y=n.test(g);return y||o.test(g)?r(g.slice(2),y?2:8):t.test(g)?NaN:+g}U6=function(g,x,y){var v,b,C,k,_,I,M=0,F=!1,j=!1,T=!0;if(typeof g!="function")throw new TypeError("Expected a function");function w(A){var L=v,P=b;return v=b=void 0,M=A,k=g.apply(P,L)}function S(A){var L=A-I;return I===void 0||L>=x||L<0||j&&A-M>=C}function D(){var A=p();if(S(A))return E(A);_=setTimeout(D,function(L){var P=x-(L-I);return j?f(P,C-(L-M)):P}(A))}function E(A){return _=void 0,T&&v?w(A):(v=b=void 0,k)}function R(){var A=p(),L=S(A);if(v=arguments,b=this,I=A,L){if(_===void 0)return function(P){return M=P,_=setTimeout(D,x),F?w(P):k}(I);if(j)return _=setTimeout(D,x),w(I)}return _===void 0&&(_=setTimeout(D,x)),k}return x=m(x)||0,h(y)&&(F=!!y.leading,C=(j="maxWait"in y)?u(m(y.maxWait)||0,x):C,T="trailing"in y?!!y.trailing:T),R.cancel=function(){_!==void 0&&clearTimeout(_),M=0,v=I=b=_=void 0},R.flush=function(){return _===void 0?k:E(p())},R}})();var Z6,G6,K6={};G6||(G6=1,function(){if(Z6)return K6;Z6=1;var e=s,t=typeof Object.is=="function"?Object.is:function(c,u){return c===u&&(c!==0||1/c==1/u)||c!=c&&u!=u},n=e.useState,o=e.useEffect,r=e.useLayoutEffect,i=e.useDebugValue;function l(c){var u=c.getSnapshot;c=c.value;try{var f=u();return!t(c,f)}catch{return!0}}var d=typeof window>"u"||window.document===void 0||window.document.createElement===void 0?function(c,u){return u()}:function(c,u){var f=u(),p=n({inst:{value:f,getSnapshot:u}}),h=p[0].inst,m=p[1];return r(function(){h.value=f,h.getSnapshot=u,l(h)&&m({inst:h})},[c,f,u]),o(function(){return l(h)&&m({inst:h}),c(function(){l(h)&&m({inst:h})})},[c]),i(f),f};K6.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:d}());var X6,Y6,Sa={exports:{}},H0={exports:{}},XS=H0.exports;function J6(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}(function(){if(Y6)return Sa.exports;Y6=1;for(var e=(X6||(X6=1,function(){var p,h,m,g,x,y;typeof performance<"u"&&performance!==null&&performance.now?H0.exports=function(){return performance.now()}:typeof process<"u"&&process!==null&&process.hrtime?(H0.exports=function(){return(p()-x)/1e6},h=process.hrtime,g=(p=function(){var v;return 1e9*(v=h())[0]+v[1]})(),y=1e9*process.uptime(),x=g-y):Date.now?(H0.exports=function(){return Date.now()-m},m=Date.now()):(H0.exports=function(){return new Date().getTime()-m},m=new Date().getTime())}.call(XS)),H0.exports),t=typeof window>"u"?il:window,n=["moz","webkit"],o="AnimationFrame",r=t["request"+o],i=t["cancel"+o]||t["cancelRequest"+o],l=0;!r&&l<n.length;l++)r=t[n[l]+"Request"+o],i=t[n[l]+"Cancel"+o]||t[n[l]+"CancelRequest"+o];if(!r||!i){var d=0,c=0,u=[],f=1e3/60;r=function(p){if(u.length===0){var h=e(),m=Math.max(0,f-(h-d));d=m+h,setTimeout(function(){var g=u.slice(0);u.length=0;for(var x=0;x<g.length;x++)if(!g[x].cancelled)try{g[x].callback(d)}catch(y){setTimeout(function(){throw y},0)}},Math.round(m))}return u.push({handle:++c,callback:p,cancelled:!1}),c},i=function(p){for(var h=0;h<u.length;h++)u[h].handle===p&&(u[h].cancelled=!0)}}Sa.exports=function(p){return r.call(t,p)},Sa.exports.cancel=function(){i.apply(t,arguments)},Sa.exports.polyfill=function(p){p||(p=t),p.requestAnimationFrame=r,p.cancelAnimationFrame=i}})();const Es=s.memo(s.forwardRef((e,t)=>{const{style:n=nn.EmptyCssProperties,orientation:o,sheet:r,onShowTooltip:i,onCloseTooltip:l,onScrollOffset:d,showCustomScrollButtons:c=!1,offset:u=0,totalSize:f=0,viewportSize:p=0,...h}=e;if(!r)throw new Error("SheetScrollBar needs a sheet model");const[m]=L0(),g=me(i,[i]),x=me(l,[l]),y=s.useMemo(()=>v===null&&b===null?null:X=>{J6(v,X),J6(b,X)},[v=m,b=t]);var v,b;const[C,k]=s.useState(()=>{const X=r.getView().getTopLeft();return o===fo.Vertical?X.top:X.left}),_=()=>{const X=r.getView().getFreezePanes();return o===fo.Vertical?X.coords.rowIndex===0?{shift:0,scroll:0}:{shift:r.getRowHeaders().findOffset(X.coords.rowIndex)-X.topLeft.top,scroll:X.topLeft.top}:X.coords.colIndex===0?{shift:0,scroll:0}:{shift:r.getColumnHeaders().findOffset(X.coords.colIndex)-X.topLeft.left,scroll:X.topLeft.left}},[I,M]=s.useState(_),[F,j]=s.useState(null),[T,w]=s.useState(!1),S=o===fo.Vertical?r.getRowHeaders():r.getColumnHeaders(),D=()=>{const X=r.getUsedRange()?.getCoords()??Qn.EmptyRange,re=r.getSelection().getCoords().cell;return{colIndex:Math.max(X.colEnd,re.colIndex),rowIndex:Math.max(X.rowEnd,re.rowIndex)}},[E,R]=s.useState(D),A=E?(o===fo.Vertical?E.rowIndex:E.colIndex)+1:0,L=()=>{const X=D();Qn.isEqualCells(E,X)||R(X)};Ht(r.getView(),{onFreezeSplitChange:()=>{M(_)}}),Ht(r.getSelection(),{onChange:L}),Ht(r,{onUsedRangeChange:L}),s.useEffect(()=>{R(D())},[r]),s.useEffect(()=>{if(!F)return T&&x?.(),void w(!1);const X=S.getTextAt(S.findIndex(C/(r.getView().getZoomScale()/100)+I.scroll+I.shift));w(!0),g?.({...F,display:(o===fo.Vertical?"Row":"Column")+": "+X})},[u,C,I,o,F,S,T,r]);const P=me((X,re,$)=>{k(X);const W=X+I.scroll,B=re+I.shift,Z=$+I.shift+I.scroll;d?.(W,B,Z)},[d,I]),z=u-I.scroll,U=p-I.shift,O=f-(I.shift+I.scroll),q=S.findOffset(A)*(r.getView().getZoomScale()/100)-(I.scroll+I.shift);return a.jsx(I7,{ref:y,style:n,offset:z,viewportSize:U,totalSize:O,orientation:o,showCustomScrollButtons:c,onMouseDown:X=>{j({anchor:{x:X.clientX,y:X.clientY}}),X.preventDefault()},onScrollOffset:P,onMouseOut:()=>{j(null)},onMouseUp:()=>{j(null)},minSize:q,...h})}));Es.displayName="SheetScrollbar";const Q6=(e,t,n=null)=>{const o=[];for(let r=0;r<e.length;r++)if(e[r].value.isSelectedAll){if(e[r].min===e[r].max&&e[r].min===n)continue;o.push({address:{min:e[r].min,max:e[r].max},update:t})}return o},e4=s.memo(s.forwardRef((e,t)=>{const{sheetHeader:n,gridRef:o,sheetElement:r,commands:i,oppositeSize:l=30,containerWidth:d,containerHeight:c,headerText:u,freezeStart:f,gridStyle:p,verticalPadding:h,horizontalPadding:m,onSheetContextMenu:g,onResizeHeadersStart:x,onResizeHeaders:y,onResizeHeadersEnd:v,onResizeHeadersDown:b,onResizeHeadersUp:C,scrollPoint:k,onSelectionStart:_,onSelectionEnd:I}=e,M=s.useMemo(()=>n.getOrientation(),[n]),F=s.useRef(null),[j,T]=s.useReducer(be=>be+1,0),[w,S]=s.useReducer(be=>be+1,0),D=n?.getSheet(),E=s.useRef(!1);s.useLayoutEffect(()=>{E.current=!0},[n]);const R=s.useMemo(()=>n.getEntireRange().getCoords().max+1,[n]),A=s.useMemo(()=>{const be=M===N.IRange.Orientation.Column;return{left:be?k.left:0,top:be?0:k.top}},[k]),[L,P]=s.useState(D?.getView().getZoomScale()/100),[z,U]=s.useState(null);Ht(n,{onSizesChange:be=>{P(D?.getView().getZoomScale()/100),Te(oe())}});const O=s.useCallback(()=>{F.current?.invalidate(),S()},[]),q=s.useCallback(Lt.debounce(()=>{O()},10),[]),[X,re]=s.useState(null);Ht(n.getSheet(),{onSelectionChange(){re(D?.getSelection().getCoords()),q()},onProtectionChange(){O()},onViewChange(){q()}}),s.useLayoutEffect(()=>{Te(oe())},[M,L,l]),s.useLayoutEffect(()=>{U(null),P(n?.getSheet().getView().getZoomScale()/100),Te(oe())},[n]);const $=s.useCallback(be=>n.at(be)?.isHidden()||n.at(be)?.getSize()===0,[n]),W=s.useCallback((be,Se)=>n.hiddenHeadersAt(be,Se),[$]),B=me(be=>n.isSelected(be),[n]),Z=me(be=>n.isSelectedAll(be),[n]),G=s.useCallback(()=>n.getMinSize(),[n]),ie=s.useCallback(()=>n.getMaxSize(),[n]),ee=me((be,Se,H)=>{Se/=L;const te={size:Se=Math.max(G(),Math.min(Lt.roundAccurately(Se,G()),ie())),hidden:!1},ne=[];if(Se<=0&&(te.hidden=!0,te.size=H),ne.push({address:{min:be,max:be},update:te}),Se<0){const J=M===N.IRange.Orientation.Column,ae=J?fe.getColOffset:fe.getRowOffset,Q=J?fe.getColIndex:fe.getRowIndex,pe=ae(be);let ge=Q(pe+Se);const Ee=ae(ge);Ee===pe+Se?ge--:ne.push({address:{min:ge,max:ge},update:{size:pe-Ee+Se}}),be-ge>1&&ne.push({address:{min:ge+1,max:be-1},update:{hidden:!0}})}n.updateHeaderPairs(ne),y?.(be,Se,H)},[j,n,L,y]),le=me((be,Se,H)=>{const te=M===N.IRange.Orientation.Column;let ne=null,J={min:be,max:be};if(n.isSelectedAll(be)){const ae=n.getSelectedRuns();ae.length>1?ne="Resize "+(te?"Columns":"Rows"):J=ae[0];const Q={hidden:Se<=0,size:(Se<=0?H:Se)/L};n.updateHeaderPairs(Q6(ae,Q,be))}if(J){const ae=J.max-J.min+1;let Q;Q=ae===1?n.getRange(J).at(0).getDisplayText():n.getRange(J).toString(),ne=`Resize ${te?"Column":"Row"}${ae>1?"s":""} '${Q}'`}v?.(be,Se,ne)},[j,n,v]),ue=me((be,Se)=>{const H=M===N.IRange.Orientation.Column;x(be,Se,`Resize ${H?"Column":"Row"}(s)`)},[x]),de=me(be=>{let Se=!1;const H=M===N.IRange.Orientation.Column,te=n.getSheet().getEntireRange().getCoords(),ne=[],J=n.getSelectedRuns(),ae=Q=>{let pe;pe=H?{colStart:Q.min,rowStart:te.rowStart,colEnd:Q.max,rowEnd:te.rowEnd}:{colStart:te.colStart,rowStart:Q.min,colEnd:te.colEnd,rowEnd:Q.max},ne.push(pe)};for(let Q=0;Q<J.length;Q++){const pe=J[Q];pe.value.isSelectedAll&&(pe.min<=be&&pe.max>=be&&(Se=!0),ae(pe))}if(Se||ae({min:be,max:be}),n.getSheet().getRanges(ne).autoFit({orientations:H?N.IRange.Orientations.Column:N.IRange.Orientations.Row}),$(be)){const Q={hidden:null},pe=Q6(J,Q);Se||pe.push({address:be,update:Q}),n.updateHeaderPairs(pe)}v?.(be,null,"Resize Column(s)")},[j,n,v,$]),oe=()=>{const be=M===N.IRange.Orientation.Column;return{getColOffset:Se=>be?n.findOffset(Se):Se===0?0:l/L,getColIndex:Se=>be?n.findIndex(Se):0,getRowOffset:Se=>be?Se===0?0:l/L:n.findOffset(Se),getRowIndex:Se=>be?0:n.findIndex(Se)}},[fe,Te]=s.useState(()=>oe()),Le=s.useCallback((be,Se)=>be.nativeEvent.which!==b7||!Z(M===N.IRange.Orientation.Column?Se.colIndex:Se.rowIndex),[M,Z]),ce=me(be=>{r.focusSheet()},[r]),he=me(be=>{D?.getSelection().updateCoords(be)},[D]),{...we}=mp({gridRef:o,commands:null,layout:fe,selection:X,fillHandleBorderColor:p.body.fill,selectionBackgroundColor:p.selection.fill,selectionBorderColor:p.selection.strokeFill,selectionRemoveBackgroundColor:p.selectionRemove.fill,selectionRemoveBorderColor:p.selectionRemove.strokeFill,disableTouchSelection:!0,onSelectionChange:he,canSelectionSpanMergedCells:be=>{const Se=D.getRange(be);return Se.isEntireColumns()||Se.isEntireRows()}}),Y=me(()=>{_?.();const be=D?.getSelection();be&&be.setAdjusting(be.getCoords())},[D,_]),ze=me(async()=>{D?.getSelection().setAdjusting(null),I?.()},[D,I]),{...ht}=mS({orientation:M,headerCount:R,gridRef:F,gridMainRef:o,newSelection:we?.newSelection,modifySelection:we?.modifySelection,appendSelection:we?.appendSelection,clearSelections:we?.clearSelections,pointerDownInterceptor:Le,onPointerUp:ce,onDragStart:Y,onDragEnd:ze}),ut=p.selection?.strokeFill;s.useEffect(()=>{if(!F.current)return void U(null);const be=M===N.IRange.Orientation.Column,Se=n.getSelectedRuns(),H=n.isProtected()?null:ee,te=(J,ae,Q)=>{if(Q)return a.jsx("div",be?{style:{position:"absolute",borderBottom:`${p.headerSelection.strokeWidth}px solid ${ut}`,pointerEvents:"none",top:`${nn.boundPixel(-p.headerSelection.strokeWidth/2)}px`,left:`${nn.boundPixel(Q.x-p.headerSelection.strokeWidth)}px`,width:`${nn.boundPixel(Q.width+p.headerSelection.strokeWidth+1,!0)}px`,height:l+p.headerSelection.strokeWidth-.5+"px"}}:{style:{position:"absolute",borderRight:`${p.headerSelection.strokeWidth}px solid ${ut}`,pointerEvents:"none",top:`${nn.boundPixel(Q.y-p.headerSelection.strokeWidth)}px`,left:`${nn.boundPixel(-p.headerSelection.strokeWidth/2)}px`,width:l+p.headerSelection.strokeWidth-.5+"px",height:`${nn.boundPixel(Q.height+p.headerSelection.strokeWidth+1,!0)}px`}},J)},ne=(J,ae,Q)=>{const pe={x:0,y:0,width:0,height:0};if(be){const ge=Q.toClipBounds(Q.getRangeCoordsBounds({rowStart:0,rowEnd:0,colStart:J,colEnd:Math.min(R,ae)}),Co);if(!ge)return;pe.x=ge.x,pe.width=ge.width}else{const ge=Q.toClipBounds(Q.getRangeCoordsBounds({rowStart:J,rowEnd:Math.min(R,ae),colStart:0,colEnd:0}),Co);if(!ge)return;pe.y=ge.y,pe.height=ge.height}return{x:pe.x,y:pe.y,width:pe.width,height:pe.height}};U([J=>{const ae=[];let Q=null,pe=be?J.getVisibleColumns():J.getVisibleRows();const ge=be?J.getTotalRangeCoords().colStart:J.getTotalRangeCoords().rowStart;pe.length>0&&pe[0]>ge&&(pe=[pe[0]-1,...pe]);let Ee=[];const Be=[];for(let qe=0;qe<pe.length;qe++){const lt=pe[qe],wt=qe<pe.length-1?pe[qe+1]:lt+W(lt+1,!1)+1,Xe=lt+1!==wt;if(!Q||Q.max<lt)if(Se.length>0&&Se[Se.length-1].max>=lt){const it=Lt.findEqualOrGreater(Se,lt,Ot=>Ot.max);Q=Se[it]}else Q=null;let St=!1,Ct=!1;if(Q?.value&&(Q.min<=lt||Q.min<=wt&&!Xe)&&(St=!0,Ct=Q.value.isSelectedAll),lt===ge){let it=!1,Ot=!1;Q?.value&&Q.min<=lt&&(it=!0,Ot=Q.value.isSelectedAll),lt>0&&Be.push({index:lt-1,isNextHidden:Xe,isSelected:it,isSelectedAll:Ot,disabledResize:!0})}if(Ct&&Ee.push(Be.length),Be.push({index:lt,isHidden:qe===0&&W(lt,!1)>0,isNextHidden:Xe,isSelected:St,isSelectedAll:Ct,onDividerMouseDown:b,onDividerResizeStart:ue,onDividerResize:H,onDividerMouseUp:C,onDividerResizeEnd:le,onDividerAutoFit:de}),Xe){let it=!1,Ot=!1;if(Q&&Q.min>=lt&&Q.max<=wt-1&&Q.value.isSelectedAll&&Ee.push(Be.length),!(Q?.value&&Q.max>=wt))if(Se.length>0&&Se[Se.length-1].max>=wt){const sn=Lt.findEqualOrGreater(Se,wt,yn=>yn.max);Q=Se[sn]}else Q=null;Q?.value&&Q.min<=wt&&(it=Q.value.isSelected,Ot=Q.value.isSelectedAll),wt>0&&Be.push({index:wt-1,isHidden:!0,isSelected:it,isSelectedAll:Ot,onDividerMouseDown:b,onDividerResizeStart:ue,onDividerResize:H,onDividerMouseUp:C,onDividerResizeEnd:le,onDividerAutoFit:de})}}if(Ee.length>0){let qe=Ee.length-1;if(Ee.length>0){const Xe=Be[Ee[qe]].index;let St=null;be?(St=J.getRangeCoordsBounds({rowStart:0,rowEnd:0,colStart:Xe,colEnd:Xe}),St.x+St.width>J.getBounds().width&&(qe-=1,qe===0&&(qe=-1))):(St=J.getRangeCoordsBounds({rowStart:Xe,rowEnd:Xe,colStart:0,colEnd:0}),St.y+St.height>J.getBounds().height&&(qe-=1,qe===0&&(qe=-1)))}const lt=Se?.[Se.length-1],wt=J.getAnchor();if(wt==="t"||wt==="l"){const Xe=Be[Ee[Math.max(0,Ee.length-1)]];Xe.showTouchDivider=lt&&lt.max<=Xe.index}else qe>=0&&(Be[Ee[qe]].showTouchDivider=!0)}const{header:Oe,headerSelect:Ie,headerSelectAll:Ze,headerHover:Ne}=p??{};for(let qe=0;qe<Be.length;qe++)ae.push(a.jsx(DS,{orientation:M,view:J,headerStyle:Oe,headerStyleSelect:Ie,headerStyleSelectAll:Ze,headerStyleHover:Ne,disabled:n.isProtected(),...Be[qe]},`divider${qe}`));return ae},J=>{const ae=[];for(let Q=0;Se&&Q<Se.length;Q++)ae.push(te(`selection:${J.getAnchor()}:${Q}`,0,ne(Se[Q].min,Se[Q].max,J)));return ae}])},[w,!0,ut,p,fe,R,f,j,L]),s.useEffect(()=>{F.current?.invalidate()},[j]);const ke=me(be=>u?u(be):n.getTextAt(be),[u,n]),ot=me(be=>{const{header:Se,headerSelect:H,headerSelectAll:te,headerHover:ne}=p??{},{range:J,key:ae,...Q}=be;return a.jsx(xp,{orientation:M,index:M===N.IRange.Orientation.Column?J.colStart:J.rowStart,isSelected:B,isSelectedAll:Z,zoomScale:100*L,headerText:ke,headerStyle:Se,headerStyleSelect:H,headerStyleSelectAll:te,headerStyleHover:ne,verticalPadding:h,horizontalPadding:m,...Q},ae)},[j,R,p,L,n]),dt=mr(),Fe=s.useMemo(()=>{const be="white",Se="black",H={};if(nn.detectIt().primaryInput!=="touch"){let te=M===N.IRange.Orientation.Column?`url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg' %3E%3Cg%3E%3Cpath d='M 8,14.5 2.3125,8.8125 h 3.25 V 1.5 h 4.875 v 7.3125 h 3.25 z' stroke='${Se}' fill='${be}'/%3E%3C/g%3E%3C/svg%3E%0A") 8 15, pointer`:`url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg' %3E%3Cg%3E%3Cpath d='m 14.5,8 -5.6875,5.6875 v -3.25 H 1.5 v -4.875 h 7.3125 v -3.25 z' stroke='${Se}' fill='${be}'/%3E%3C/g%3E%3C/svg%3E%0A") 15 8, pointer`;dt.getMode()?.key==="formatPainter"&&(te=`url("data:image/svg+xml,%3Csvg width='30' height='22' viewBox='0 0 30 22' xmlns='http://www.w3.org/2000/svg' %3E%3Cg%3E%3Cpath d='M 26.737611,2.811068 V 2.0241451 c 0,-0.4328075 -0.354115,-0.7869227 -0.786923,-0.7869227 h -9.443074 c -0.432808,0 -0.786923,0.3541152 -0.786923,0.7869227 v 3.1476914 c 0,0.4328076 0.354115,0.7869235 0.786923,0.7869235 h 9.443074 c 0.432808,0 0.786923,-0.3541159 0.786923,-0.7869235 V 4.3849137 h 0.786923 v 3.1476915 h -7.869229 v 8.6561518 c 0,0.432808 0.354116,0.786923 0.786923,0.786923 h 1.573846 c 0.432807,0 0.786923,-0.354115 0.786923,-0.786923 V 9.1064513 H 29.09838 V 2.811068 Z M 10.714339,6.2116849 c -1.60877,0.0017 -3.2175361,0.00425 -4.8263048,0.00609 0.0012,1.5756989 0.00158,3.1513905 0.00244,4.7270891 -1.5978311,0.0017 -3.1956617,0.0034 -4.7934919,0.0043 0.00335,1.740011 0.00655,3.480012 0.00988,5.220023 1.5954589,0 3.1909181,0 4.7863775,0 -0.0017,1.606793 -0.00353,3.213585 -0.0051,4.820375 1.7440936,0.0016 3.4881881,0.0033 5.2322842,0.005 -0.0014,-1.608503 -0.0018,-3.217015 -0.0028,-4.825519 1.58518,0 3.17036,0 4.755543,0 0.0033,-1.741851 0.0073,-3.483705 0.01072,-5.225556 -1.58808,0 -3.176158,0 -4.764238,0 0,-1.5775391 0,-3.1550792 0,-4.7326117 -0.135065,1.3e-4 -0.270128,1.982e-4 -0.40519,4.047e-4 z' stroke='${Se}' fill='${be}'/%3E%3C/g%3E%3C/svg%3E%0A") 7 12, pointer`),H.cursor=te}return H.backgroundColor=p?.header?.fill||"transparent",H},[M,j,dt,p]),Je=so(t,()=>({scrollTo:be=>{F.current?.scrollTo(be)},forceRender:()=>{T()},getGridElement:()=>F.current}),[]),Ge=s.useCallback(be=>{ht.onPointerDown(be)},[ht]),se=s.useCallback(be=>{const Se=ht.getCellCoordsFromClient(be.clientX,be.clientY);if(!Se||!g)return;const H=M===N.IRange.Orientation.Column;g({originalEvent:be,clientX:be.clientX,clientY:be.clientY,rowIndex:H?-1:Se.rowIndex,colIndex:H?Se.colIndex:-1}),be.stopPropagation(),be.preventDefault()},[ht,g]),We=s.useMemo(()=>{const be=M===N.IRange.Orientation.Column;return a.jsx("div",{ref:Je,children:a.jsx(Gs,{className:"sheet-header",style:Fe,ref:F,scrollPoint:A,columnCount:be?R:1,rowCount:be?1:R,width:be?d:l,height:be?l:c,freezeLeft:be?f:void 0,freezeTop:be?void 0:f,hiddenColumnsAt:be?W:void 0,hiddenRowsAt:be?void 0:W,showGridLines:!1,layout:fe,clipCells:!1,allowOverlaysOverflow:!0,enableMouseWheel:!1,onContextMenu:se,onPointerDown:Ge,zoom:L,cellRenderer:ot,overlays:z})})},[z,fe,d,c,A,Fe,w]);return s.useEffect(()=>{E.current=!1,F.current?.invalidate(),S()},[n,p]),We})),YS=s.memo(s.forwardRef((e,t)=>{const{view:n,sheet:o,getVisibleCells:r,gridStyle:i}=e,l=me((u,f)=>u.getStyle().getBorder(),[]),{overlay:d}=Ep({getVisibleCells:r,getBorderAt:l,darkMode:i.body.darkMode,shiftIfWide:!0}),c=d(n);return c&&n?c:null})),JS={key:"copy",description:"'Copy' Select destination and press ENTER or choose Paste."},QS={key:"cut",description:"'Cut' Select destination and press ENTER or choose Paste."},eC={type:N.ICell.Content.Values},tC={fitDestination:!0,type:N.ICell.Content.Formats},nC={fitDestination:!0,type:N.ICell.Content.Formulas},oC={transpose:!0},rC={fitDestination:!0,adjustCells:(e,t,n)=>({value:`=${t.getA1({$colIndex:!0,$rowIndex:!0})}`})},iC=s.memo(s.forwardRef((e,t)=>{const{view:n,element:o,sheet:r,gridStyle:i,commands:l,notifier:d}=e,c=i.body??{},u=r.getView(),{overlays:f}=(({element:p,sheet:h,sheetView:m,commands:g,onClipboardUpdate:x,onPaste:y,selectionRenderer:v=cp,copyForegroundColor:b="rgb(33, 115, 70)",cutForegroundColor:C="rgb(33, 115, 70)",copyBackgroundColor:k="white",cutBackgroundColor:_="white",notifier:I,...M})=>{const F=me(v,[v]),j=s.useRef(null),T=mr(),w=T.getMode(),S=s.useMemo(()=>({element:p,doCopy:L=>{const P=h.getSelectedRanges().getSnapshot(L);return new N.RangeClipboardItem(P)}}),[h,m,p]),D=s.useMemo(()=>({element:p,importFromExternal:async(L,P)=>{const z=new N.ExternalRangeClipboardItem(L,P,h.getStyles(),h.isDate1904());return await z.parse()?z:null},doPaste:async(L,P)=>{if(L?.getItemType()!=="range")return;P?.contentsOnly&&delete(P={...P,type:N.ICell.Content.Values}).contentsOnly;const z=h.getSelectedRange(),U=L.getItem(),O=U.getName();return await z.doBatch(async()=>{const q=await z.copyFrom(U,P);!q||q.isEntireRows()||q.isEntireColumns()||q.autoFit({orientations:N.IRange.Orientations.Row,minContent:!0})},{description:"Paste"+(O?` ${O}`:""),autoSelect:!0}),!0}}),[h,m,I,p]),{clipboard:E,...R}=F7({...M,source:S,commands:g,target:D,notifier:I,onClipboardUpdate:L=>{const P=L?.getItemType()==="range"?L:null;if(P){const z=L.editMode?.(),U={...L?.isCut?.()?QS:JS,...z,args:{isClipboard:!0,...z?.args},onModeChange:O=>{O?.args?.isClipboard||E.clear(!0),z?.onModeChange?.(O)}};T.setMode(U)}j.current=P,x?.(P)},onPaste:(L,P)=>{if(L?.getItemType()!=="range")return;let z=T.getMode()?.key==="cut"||L.isCut?.();if(!z&&T.getMode()?.key==="copy"){const U=L.getItem().getCoords(),O=h.getSelectedRanges().getCoords();let q=!1;if(!q&&U&&O&&L.getItem().getSource?.()===h)for(let X=0;!q&&X<O.length;X++)q=Qn.isRangesIntersect(U,O[X]);z=q}z&&T.setMode(null),p?.()?.focus(),y?.(L,P)}});s.useMemo(()=>{const L=p;if(!g)return;const P=[new Me("pasteValues",L,{label:"Paste Values",scopedLabels:{paste:"Values"},description:`Paste only the values of the selected cells.
69
-
70
- The formatting is not applied.`,shortcut:{key:"V",modifiers:[je.Ctrl,je.Shift]}}),new Me("pasteFormats",L,{label:"Paste Formatting",scopedLabels:{paste:"Formatting"},description:`Paste only the formats of the selected cells.
71
-
72
- The content is not applied.`}),new Me("pasteFormulas",L,{label:"Paste Formulas",scopedLabels:{paste:"Formulas"},description:"Paste only the formulas of the selected cells. The values and formatting is not applied."}),new Me("pasteTranspose",L,{label:"Paste Transpose",scopedLabels:{paste:"Transpose"},description:"Paste with the rows and columns flipped."}),new Me("pasteLinks",L,{label:"Paste Links",scopedLabels:{paste:"Links"},description:"Paste as formula references to the original cells."})];g.addCommands(P,!0)},[g,p]),s.useEffect(()=>{if(!g)return;const L={disabled:!h.getProtection().isFormatCellsAllowed()};g.getCommand("pasteValues").updateCallback(P=>R.paste({...eC,...P})).update(L),g.getCommand("pasteFormats").updateCallback((P,z)=>R.paste({...tC,description:z.label(),...P})).update(L),g.getCommand("pasteFormulas").updateCallback((P,z)=>R.paste({...nC,description:z.label(),...P})).update(L),g.getCommand("pasteTranspose").updateCallback((P,z)=>R.paste({...oC,description:z.label(),...P})).update(L),g.getCommand("pasteLinks").updateCallback((P,z)=>R.paste({...rC,description:z.label(),...P})).update(L),g.getCommand("cut").update(L),g.getCommand("paste").update(L)},[h,g]);const A=s.useMemo(()=>{if(!w||!j.current)return;const L=w.key;if(L!=="copy"&&L!=="cut"&&L!=="formatPainter")return;const P=j.current.getItem();if(P.getSource()!==h)return;const z=j.current.isCut?.(),U=z?_:k,O=z?C:b,q=P.getCoords(),X=q?[q]:null;return X&&X.length!==0?re=>{const $=[];for(let W=0;W<X.length;W++){const B=X[W],Z=re.toClipBounds(re.getRangeCoordsBounds(B,{top:0,left:0,right:1,bottom:1}),Co);Z&&($.push(F({range:B,key:`copy-selection-background-${W}`,x:Z.x,y:Z.y,width:Math.max(Z.width,0),height:Math.max(Z.height,0),stroke:U,strokeWidth:2})),$.push(F({range:B,key:`copy-selection-foreground-${W}`,x:Z.x+(Z.width<=2?-1:0),y:Z.y,width:Math.max(Z.width,3),height:Math.max(Z.height,3),stroke:O,strokeWidth:2,isAnimatedStroke:!0})))}return $}:null},[w,h,m,b,k,C,_]);return{...R,clipboard:E,overlays:A}})({element:o,sheet:r,sheetView:u,commands:l,copyForegroundColor:i.selection.strokeFill,copyBackgroundColor:c.fill,cutForegroundColor:i.selectionRemove.strokeFill,cutBackgroundColor:c.fill,notifier:d});return Ht(r?.getSelection(),{onChange(p){}}),s.useEffect(()=>{n?.getStage()},[n?.getStage()]),f&&n?f(n):null})),lC={key:"dragCut",description:"Drag selection to move cell contents.",cursor:"move"},aC={key:"dragCutInsert",description:"Drag selection to insert cell contents.",cursor:"copy"},sC={key:"dragCopy",description:"Drag selection to copy cell contents."},cC={key:"dragCopyInsert",description:"Drag selection to insert copied cell contents.",cursor:"move"},t4=(e,t)=>t.ctrlKey&&t.shiftKey?cC:t.ctrlKey?sC:t.shiftKey?aC:lC,dC={key:"fill",description:"Drag selection to extend series or fill.",cursor:"crosshair"},uC=s.memo(s.forwardRef((e,t)=>{const{view:n,commands:o,className:r,onFirstRender:i,notifier:l,onShowTooltip:d,onCloseTooltip:c,sheet:u,gridRef:f,gridStyle:p,isActive:h,editingCoords:m,...g}=e,x=n?.getBounds(),y=me(d,[d]),v=me(c,[c]),[b,C]=s.useState(()=>u?.getSelection().getCoords()),k=me(ee=>{Qn.isEqualSelectionCoords(ee,b)||u&&u.getSelection().updateCoords(ee)},[u,b]),_=mr(),I=s.useRef(null),[M,F]=s.useState(u?.getProtection().isLocked()),[j,T]=s.useState(u?.getView().getMovableSelection().length>0),w=nn.detectIt().primaryInput==="touch",S=!w&&h,D=m!==null||j,E=me(ee=>{const le=Qn.cellToRange(ee);if(u.isClosed())return le;const ue=u.getRange(le,{excludeHidden:!0}).getMerges();return ue.length===0?le:ue[0]},[u]),R=me((ee,le,ue,de,oe,fe)=>{const Te=u.getSelectedRange().getExtended(de,ee).getCoords();switch(de){case N.IRange.Direction.Up:return Te.rowStart;case N.IRange.Direction.Down:return Te.rowEnd;case N.IRange.Direction.Left:return Te.colStart;case N.IRange.Direction.Right:return Te.colEnd}},[u]),A=me(()=>{const ee=u.getUsedRange()?.getCoords(),le=u.getRowHeaders().getUsedRange()?.getCoords(),ue=u.getColumnHeaders().getUsedRange()?.getCoords();return{...ee,colEnd:Math.max(ee?.colEnd??0,ue?.max??0),rowEnd:Math.max(ee?.rowEnd??0,le?.max??0)}},[u]),L=me((ee,le)=>u.getRowHeaders().hiddenHeadersAt(ee,le),[u]),P=me((ee,le)=>u.getColumnHeaders().hiddenHeadersAt(ee,le),[u]),z=me(ee=>u.getRange(ee,{excludeHidden:!0}).getMerges(),[u]),U=me(ee=>{u?.getSelection().setAdjusting(ee)},[u]),O=me(async()=>{u?.getSelection().setAdjusting(null),_.getMode()?.key==="formatPainter"&&(await o?.getCommand("pasteFormats")?.execute({}),_.setMode(null))},[_,b,u,o]),q=s.useMemo(()=>{const ee=_.getMode();return ee?.key==="cut"||ee?.key==="copy"},[_]);Ht(u?.getView(),{onMovableSelectionChange:()=>{T(u.getView().getMovableSelection().length>0)}}),Ht(u?.getSelection(),{onChange(ee){const le=u.getSelection().getCoords();C(le)}}),Ht(u,{onProtectionChange:()=>{F(u.getProtection().isLocked())}});const{body:X={}}=p||{},re=n.getLayout(),$=!(S&&b.ranges.length<=1&&m===null&&!M&&(!_.getMode()||q)),{overlay:W,onPointerDown:B}=mp({gridRef:f,commands:o,layout:re,getCellCoordsAsRangeCoords:E,selection:b,fillHandleBorderColor:X.fill,selectionBackgroundColor:h?p.selection.fill:p.selectionInactive.fill,selectionBorderColor:h?p.selection.strokeFill:p.selectionInactive.strokeFill,selectionRemoveBackgroundColor:h?p.selectionRemove.fill:p.selectionInactive.fill,selectionRemoveBorderColor:h?p.selectionRemove.strokeFill:p.selectionInactive.strokeFill,disableFillDrag:$,disableMoveDrag:w||!(h&&b.ranges.length<=1&&m===null&&!M),disableTouchSelection:D,onSelectionChange:k,onSelectionDragStart:U,onSelectionDragEnd:O,onMoveDragStart:(ee,le,ue)=>{_.setMode(t4(0,ue))},onMoveDragUpdate:(ee,le,ue)=>{_.setMode(t4(0,ue))},onMoveDragEnd:(ee,le)=>{_.setMode(null)},onMoveDragDone:async(ee,le,ue)=>{if(Qn.isEqualRanges(ee,le))return;const de=u.getRange(le);if(l?.showOptions){const ce=de.getDifferences(ee);let he=!1;for(let we=0;!he&&we<ce.getCount();we++)he=ce.at(we).isContentful();if(he&&await l?.showOptions({title:"Confirm",description:"There is already data here. Do you want to replace it?",options:["Replace","Cancel"],defaultOption:"Replace"})!=="Replace")return}const oe=!ue.ctrlKey,fe=ue.shiftKey,Te=fe?oe?"Insert Moved Cells":"Insert Copied Cells":oe?"Move Cells":"Copy Cells",Le=await l?.showBusy?.(Te);try{const ce=u.getRange(ee);await de.doBatch(async()=>{fe?await de.insertFrom(ee,{isCut:oe,undoRange:ce}):await de.copyFrom(ee,{isCut:oe,undoRange:ce}),ce.autoFit({skipCustomSize:!0,orientations:N.IRange.Orientations.Row,minContent:!0}),de.autoFit({skipCustomSize:!0,orientations:N.IRange.Orientations.Row,minContent:!0})},{description:Te,autoSelect:!0})}catch(ce){l?.showError?.(ce)}finally{Le?.()}},contentfulCellFinder:R,hiddenRowsAt:L,hiddenColumnsAt:P,mergedRanges:z,getDataCoords:A,canSelectionSpanMergedCells:ee=>{const le=u.getRange(ee);return le.isEntireColumns()||le.isEntireRows()},onFill:async(ee,le)=>{const ue="Auto Fill",de=await l?.showBusy?.(ue);try{await u.doBatch(()=>{u.getRange(ee).autoFill(le),u.getRange(le).autoFit({orientations:N.IRange.Orientations.Row,skipCustomSize:!0,minContent:!0})},{description:ue,autoSelect:!0})}catch(oe){l?.showError?.(oe)}finally{I.current=null,de?.()}},onFillPreview:(ee,le,ue)=>{if(f.current&&y){_.setMode(dC);try{I.current?.direction!==ue&&(I.current=null,u.getRange(ee).autoFill(le,{previewOnly:we=>{I.current={callback:we,direction:ue}}}));const de=I.current?.callback?.(le);if(!de||de.isEmpty())return;const oe=de.toText();if(!oe)return;const fe=Qn.cellToRange(de.getCoords()),Te=n.getRelativePointFromClient(0,0);let Le=0,ce=0,he=d1;if(ue===N.IRange.Direction.Down){Le=re.getColOffset(fe.colEnd+1)-Te.x;const we=re.getRowOffset(fe.rowEnd),Y=re.getRowOffset(fe.rowEnd+1);ce=Y-(Y-we)/2-Te.y,he=bc}else if(ue===N.IRange.Direction.Right){ce=re.getRowOffset(fe.rowEnd+1)-Te.y;const we=re.getColOffset(fe.colEnd),Y=re.getColOffset(fe.colEnd+1);Le=Y-(Y-we)/2-Te.x,he=d1}else if(ue===N.IRange.Direction.Up){Le=re.getColOffset(fe.colEnd+1)-Te.x;const we=re.getRowOffset(fe.rowStart),Y=re.getRowOffset(fe.rowStart+1);ce=Y-(Y-we)/2-Te.y,he=bc}else if(ue===N.IRange.Direction.Left){ce=re.getRowOffset(fe.rowEnd+1)-Te.y;const we=re.getColOffset(fe.colStart),Y=re.getColOffset(fe.colStart+1);Le=Y-(Y-we)/2-Te.x,he=d1}y({anchor:{x:Le,y:ce},display:oe,placement:he})}catch(de){l?.showError?.(de)}}},onFillDone:()=>{I.current=null,_.setMode(null),v?.()}}),Z=me(ee=>{B(nn.createSyntheticEvent(ee))},[B,m]);s.useEffect(()=>{const ee=n?.getStage();if(ee)return ee.addEventListener("pointerdown",Z),()=>{ee.removeEventListener("pointerdown",Z)}},[n?.getStage()]);const G=so(t,()=>({}),[]),ie=s.useRef(null);return a.jsx("div",{className:Ao(r,"sheet-selection","_sheet-selection_12wyx_5"),style:{position:"absolute",width:x?.width,height:x?.height,overflow:"hidden",pointerEvents:"none",willChange:"none"},ref:ki([G,ie]),...g,children:W(n)})})),Ca=Object.freeze({x:0,y:0,width:0,height:0}),hC={fireOnModelChange:!1},pC=s.memo(s.forwardRef((e,t)=>{const{children:n,view:o,movable:r,onRefLoad:i,onRefUnload:l,onHide:d,onShow:c,onUnFocus:u,isDragging:f,updateFrameBounds:p,dragStart:h,style:m,disabled:g,renderMovable:x,...y}=e,[v,b]=s.useState(Ca),[C,k]=s.useState(null),[_,I]=s.useState(!1),M=s.useRef(null);s.useLayoutEffect(()=>{if(r.isClosed())return;const j=r.getBounds();if(!j)return;const T=o.toViewBounds(j);b(T??Ca),p(T??Ca)},[o?.getBounds()]),Ht(r,{onBoundsChange:j=>{const T=j.getBounds();if(!T)return;const w=o.toViewBounds(T);b(w??Ca),p(w)},onSelectionChange:()=>{const j=Lt.hasFocus(M.current,!0);!_&&!j||r.isSelected()||u()}}),Ht(r,{onRequestFocus:()=>Lt.whenFocus(M.current,!0)},hC),s.useEffect(()=>{const j=M.current;return i(j),()=>{l(j)}},[]);const F=s.useMemo(()=>{if(!v)return null;let{width:j,height:T}=v;return x({view:o,movable:r,disabled:g,isDragging:f,style:{position:"relative",left:0,top:0,width:j,height:T},onHide:d,onShow:c})},[o,r,v.width,v.height,g,f]);return a.jsx("div",{className:"movable",tabIndex:0,ref:ki([M,t]),style:{display:"flex",alignItems:"stretch",justifyContent:"stretch",position:"absolute",maxWidth:"auto",maxHeight:"auto",minWidth:"auto",minHeight:"auto",left:v.x,top:v.y,width:v.width,height:v.height,...m},onMouseDown:async j=>{const T=j.shiftKey||j.ctrlKey,w=r.isSelected(),S=j.currentTarget;T&&w?r.unselect():(w&&!T||await r.select({addToSelection:T}),h(j.nativeEvent,S),S.focus())},onFocus:j=>{j.relatedTarget&&!C&&k(j.relatedTarget),I(!0)},onBlur:j=>{C&&!M?.current?.contains(j.relatedTarget)&&k(null),j.relatedTarget&&I(!1)},...y,children:F})})),fC=s.memo(s.forwardRef((e,t)=>{const{view:n,movables:o,movablesView:r,renderMovable:i,transactional:l,onUnFocus:d,onFocus:c,disabled:u=!1,disableDrag:f=!1,disableResize:p=!1,className:h,style:m,renderDirections:g=["nw","n","ne","w","e","sw","s","se"],onFirstRender:x,...y}=e,v=n.getBounds(),b=me(x,[x]),C=me(d,[d]),k=me(c,[c]),[_,I]=s.useState([]),[M,F]=s.useState(!1),[j,T]=s.useState(!1),w=s.useRef(!0),S=s.useRef(new Map),D=s.useRef(new Map),E=s.useRef(new Map),R=s.useRef(new Map),A=s.useRef(new Map),L=s.useRef({onRequestFocus:ke=>(ue(ke),null)}),P=s.useRef(null),z=s.useRef(null),U=s.useRef(null),[O,q]=s.useReducer(ke=>ke+1,0);s.useLayoutEffect(()=>{q()},[n,o]),Ht(o,{onCollectionChange:()=>{const ke=o.search({address:n.getVisibleRangeCoords(),excludeHidden:!0}),ot=A.current;ot.forEach(Fe=>{Fe()}),ot.clear();const dt=L.current;for(let Fe=0;Fe<ke.length;Fe++){const Je=ke[Fe];if(Je.isClosed())continue;const Ge=Je.addListeners(dt);ot.set(Je,Ge)}q()},onInvalidated:()=>{q()}}),Ht(r,{onMovableSelectionChange(ke){re(),q()}});const X=s.useCallback((ke,ot)=>{const dt=E.current.get(ke);U.current&&(U.current.getTargets().forEach(Fe=>{if(Fe===dt)return Fe.style.left=ot.x+"px",Fe.style.top=ot.y+"px",Fe.style.width=ot.width+"px",void(Fe.style.height=ot.height+"px")}),U.current.updateRect())},[]),re=()=>{const ke=[],ot=r.getMovableSelection();ot.forEach(dt=>{const Fe=E.current.get(dt);Fe&&ot.indexOf(dt)!==-1&&ke.push(Fe)}),I(dt=>Lt.isEqualArrays(dt,ke)?dt:ke)},$=s.useRef(null),W=s.useMemo(()=>new Promise(ke=>{$.current=ke}),[]),B=s.useRef(null),Z=me(async(ke,ot)=>{B.current=ot,await(async()=>!(!await W.then()||!U.current))()&&B.current===ot&&U.current.dragStart(ke,ot)},[_]),[G,ie]=s.useState(!1),ee=s.useRef(null),le=s.useRef(null),ue=me(async(ke=null)=>{if(ke||(ke=r.getMovableSelection()[0]),!ke)return C?.(),!1;const ot=E.current.get(ke);ot?(await Lt.whenFocus(ot),ot.focus(),le.current=ot,ee.current=null):ee.current=ke},[r]);s.useEffect(()=>{G&&_.length>0&&le.current!==_[0]&&ue(),w.current&&(b?.(),w.current=!1)},[_]);const de=s.useMemo(()=>{const ke=o.search({address:n.getVisibleRangeCoords(),excludeHidden:!0});if(ke.length===0&&S.current.size===0)return null;const ot=(se,We,be,Se=!0)=>{const H=se.isSelected(),te={tabIndex:be,view:n,movable:se,onRefLoad:ne=>{ee.current===se&&(ne.focus(),le.current=ne,ee.current=null),E.current.set(se,ne),D.current.set(ne,se),We.rendered=!0,re()},onRefUnload:ne=>{E.current.delete(se),D.current.delete(ne),We.rendered=!1,re()},onUnFocus:C,onHide:ne=>{We.onHide=ne},onShow:ne=>{We.onShow=ne},isDragging:H&&(j||M),disabled:u,renderMovable:i,updateFrameBounds:ne=>{X(se,ne)},dragStart:Z,onMouseUp:()=>{if(B.current=null,z.current){F(!1),T(!1);let ne=!1;R.current?.forEach(J=>{Lt.isEqualBounds(J.movable.getBounds(),J.startBounds)||(ne=!0)}),ne?fe():Te()}},style:{opacity:Se?M&&H?.7:void 0:0,zIndex:M&&H?se.getZIndex()+ke.length:void 0,pointerEvents:Se?void 0:"none",cursor:j&&H?"grabbing":u||f?"initial":"move",boxShadow:!H||j&&!M?void 0:"1px 1px 2px 2px rgba(0,0,0,.15)"}};return a.jsx(pC,{...te},`movable-${se.getUUID()}`)},dt=S.current,Fe=new Map,Je=[];for(let se=0;se<ke.length;se++){const We=ke[se];if(We.isClosed())continue;let be=dt.get(We);be||(be={frame:null,shown:null,onShow:null,onHide:null,rendered:!1,doShow:(Se,H)=>{if(!H||H.shown===!0)return;H.shown=!0;const te=++H.visibilityRequestId;requestAnimationFrame(()=>{const ne=S.current.get(Se);ne&&te===H.visibilityRequestId&&(H.onShow?.(Se),ne.shown=!0)})},doHide:async(Se,H)=>{if(!H||H?.shown===!1)return;H.shown=!1;const te=++H.visibilityRequestId,ne=await Promise.resolve(H.onHide?.(Se));te===H.visibilityRequestId&&ne!==!1&&(H.shown=!1,S.current.delete(Se),q())},visibilityRequestId:0}),be.frame=ot(We,be,se,!0),Je.push(be.frame),be.doShow(We,be),dt.delete(We),Fe.set(We,be)}const Ge=[];return r.getMovableSelection().forEach(se=>{const We=dt.get(se);We&&(We.frame=ot(se,We,-1,!1),Ge.push(We.frame),dt.delete(se),Fe.set(se,We))}),dt.forEach((se,We)=>{se.frame=ot(We,se,-1,!1),Ge.push(se.frame),se.doHide(We,se),dt.delete(We),Fe.set(We,se)}),S.current=Fe,re(),[...Ge,...Je]},[O,n,i,u,f,p,M,j]),oe=me((ke,ot)=>{const dt=`${ot} ${_.length===1?N.TextUtils.capitalize(D.current?.get(_[0]).getContent().getType()):"Drawings"}`;z.current&&(console.warn(`Transaction ${z.current.getDescription()} is being replaced by ${dt}`),z.current.rollback(),z.current=null),z.current=l.beginCommit({description:dt}),R.current.clear();for(let Fe=0;Fe<_.length;Fe++){const Je=_[Fe],Ge=D.current?.get(Je);Ge?R.current.set(Je,{movable:Ge,startBounds:n.toViewBounds(Ge.getBounds())}):console.warn("invalid element",Ge)}},[l,n,_]),fe=s.useCallback(()=>{if(!z.current)return;const ke=[];R.current?.forEach(ot=>{ke.push(ot.movable)}),z.current.commit({viewAfter:{view:r,movableSelection:ke}}),R.current.clear(),z.current=null},[]),Te=s.useCallback(()=>{z.current&&(z.current.rollback(),z.current=null)},[]),Le=s.useRef(null);s.useEffect(()=>{Le.current&&(Le.current.onscroll=ke=>{ke.preventDefault(),ke.srcElement.scrollTop=0,ke.srcElement.scrollLeft=0})},[Le.current]);const ce=so(t,()=>({isMovableArea:()=>!0,focusMovable:ue,focus:()=>{ue()}}),[r]),[he,we]=s.useState(null),Y=s.useRef(!1),ze=s.useRef(!1),ht=s.useRef(!1);s.useEffect(()=>{if(u||_.length===0||ht.current||Y.current)return;if(ze.current)return void requestAnimationFrame(()=>{U.current&&P.current&&U.current.refTargets.length>0&&(ht.current=!0,$.current?.(!0)),I([..._])});Y.current=!0;const ke=s.lazy(async()=>{try{const ot=await Promise.resolve().then(()=>require("./Bwk2L5ydEvoRIisp.cjs"));return Y.current=!1,ze.current=!0,I([..._]),ot}catch(ot){return console.warn(ot),$.current?.(!1),null}});we(ke)},[_,u,f,p]);const ut=s.useMemo(()=>!he||u?null:a.jsx(s.Suspense,{children:a.jsx(he,{className:Ao({dragging:M||j,resizing:M,moving:j}),container:null,ref:U,target:U.current?_:[],draggable:!u&&!f,resizable:!u&&!p,individualGroupable:!0,edgeDraggable:!1,throttleDrag:2,throttleResize:2,origin:!1,keepRatio:!1,renderDirections:g,onResizeStart:ke=>{oe(ke.target,"Resize")},onResize:ke=>{if(!z.current)return ke.stopDrag(),void q();F(!0);const ot=ke.direction[0]!==0&&ke.direction[1]!==0;let dt=0,Fe=0;for(let Je=0;Je<_.length;Je++){const Ge=_[Je],se=R.current.get(Ge),We=D.current.get(Ge);if(!se||!We){console.warn("invalid element");continue}let be=ke.dist[0],Se=ke.dist[1],H=ke.drag.dist[0],te=ke.drag.dist[1],ne=se.startBounds.width,J=se.startBounds.height;Je===0?(dt=ne,Fe=J):(be*=ne/dt,H*=ne/dt,Se*=J/Fe,te*=J/Fe);const ae={...se.startBounds};if(ae.width=Math.max(0,ne+be),ae.height=Math.max(0,J+Se),ke.direction[0]===-1&&(ae.width=Math.max(0,Math.min(se.startBounds.x+ne,ne-H))),ke.direction[1]===-1&&(ae.height=Math.max(0,Math.min(se.startBounds.y+J,J-te))),ot&&(We.isLockAspectRatio()||ke.inputEvent?.shiftKey)){const Q=ne/J,pe=ae.width/ae.height;pe>Q?ae.height=ae.width/Q:pe<Q&&(ae.width=ae.height*Q)}ke.direction[0]===-1&&(ae.x=Math.max(0,Math.min(se.startBounds.x+ne,se.startBounds.x+ne-ae.width))),ke.direction[1]===-1&&(ae.y=Math.min(se.startBounds.y+J,se.startBounds.y+J-ae.height)),se.movable.setBounds(n.toAbsoluteBounds(ae))}},onResizeEnd:ke=>{F(!1),fe()},onDragStart:ke=>{oe(ke.target,"Move")},onDrag:ke=>{if(!z.current)return ke.stopDrag(),void q();T(!0);for(let ot=0;ot<_.length;ot++){const dt=_[ot],Fe=R.current.get(dt);Fe?Fe.movable.setBounds(n.toAbsoluteBounds({...Fe.startBounds,x:Fe.startBounds.x+ke.translate[0],y:Fe.startBounds.y+ke.translate[1]})):console.warn("invalid element")}},onDragEnd:ke=>{},onMouseUp:ke=>{}})}),[O,he,_,n,u,f,p,M,j]);return a.jsx("div",{className:Ao(h,"movable-area","_movable-area_314c6_5"),style:{width:v.width,height:v.height,...m,position:"absolute",overflow:"hidden",willChange:"transform"},ref:ki([ce,Le]),...y,children:a.jsx("div",{className:"movable-scroll",style:{position:"absolute",cursor:"initial",left:0,top:0,width:v.width,height:v.height},...y,children:a.jsxs("div",{ref:P,style:{position:"absolute",pointerEvents:"auto"},onFocus:ke=>{k?.(),ie(!0)},onBlur:ke=>{ie(!1)},onKeyDownCapture:ke=>{if(ke.isDefaultPrevented())return;const ot=ke.nativeEvent.ctrlKey,dt=ke.nativeEvent.altKey,Fe=ke.nativeEvent.shiftKey;if(ke.which===Nt.Escape){const be=r.getMovableSelection();let Se=[...be];return _.forEach(H=>{if(Se.length===0)return;const te=D.current.get(H);let ne=Se.indexOf(te);Se.splice(ne,1)}),Se.length!==be.length&&r.selectMovables(Se),Se.length===0&&C?.(),void ke.preventDefault()}const Je=.1,Ge=be=>{o.updateSelected(Se=>{Se.setRotation(Se.getRotation()+be)},"Rotate")},se=(be,Se=!0)=>{o.updateSelected(H=>{const te=H.getBounds();let ne=1+be;Se||(ne=1/ne);const J=Math.sqrt(Math.pow(te.width,2)+Math.pow(te.height,2)),ae=Math.atan2(te.height,te.width),Q=ne*J;if(Q<10)return;const pe=Q*Math.cos(ae),ge=Q*Math.sin(ae),Ee={x:te.x+(te.width-pe)/2,y:te.y+(te.height-ge)/2,width:pe,height:ge};H.setBounds(Ee)},"Resize")},We=be=>{o.updateSelected(Se=>{const H=Se.getBounds(),te={x:H.x+(be.x??0),y:H.y+(be.y??0),width:H.width+(be.width??0),height:H.height+(be.height??0)};Se.setBounds(te)},"Nudge")};if(ke.which===Nt.Delete)o.updateSelected(be=>{be.delete()},"Delete"),ke.preventDefault();else if(ke.key==="a"&&ot){const be=r.getMovableSelection();r.selectMovables(o.search(),!0),r.selectMovables(be,!0),ke.preventDefault()}else ke.key==="ArrowLeft"?(Fe?se(Je,!1):dt?Ge(-10):We({x:ot?-10:-1}),ke.preventDefault()):ke.key==="ArrowRight"?(Fe?se(Je,!0):dt?Ge(10):We({x:ot?10:1}),ke.preventDefault()):ke.key==="ArrowUp"?(Fe?se(Je,!0):We({y:ot?-10:-1}),ke.preventDefault()):ke.key==="ArrowDown"&&(Fe?se(Je,!1):We({y:ot?10:1}),ke.preventDefault())},children:[de,ut]})})})})),N0=e=>{let t=Number.MAX_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER,o=0,r=0;for(let i=0;i<e.length;i++){const l=e[i].getBounds();t=Math.min(l.x,t),n=Math.min(l.y,n),o=Math.max(l.x+l.width,o),r=Math.max(l.y+l.height,r)}return{x:t,y:n,width:o-t,height:r-n}},n4=(e,t=!0)=>{const n=[],o=t?"x":"y",r=t?"y":"x",i=t?"width":"height";let l=0,d=Number.MAX_SAFE_INTEGER,c=0;for(let p=0;p<e.length;p++){const h=e[p],m=h.getBounds();l+=m[i],d=Math.min(m[o],d),c=Math.max(m[o]+m[i],c),n.push({bounds:m,movable:h})}const u=(c-d-l)/(e.length-1);n.sort((p,h)=>{const m=p.bounds[o],g=h.bounds[o];return m!==g?m-g:p.bounds[r]-h.bounds[r]});const f=new Map;f.set(n[0].movable,n[0].bounds);for(let p=1;p<n.length-1;p++){const h=n[p-1].bounds,m={...n[p].bounds};m[o]=h[o]+h[i]+u,n[p].bounds=m,f.set(n[p].movable,m)}return f.set(n[n.length-1].movable,n[n.length-1].bounds),f},mC=s.memo(s.forwardRef((e,t)=>{const{children:n,disabled:o,description:r,view:i,isDragging:l,onHide:d,onShow:c,...u}=e;s.useEffect(()=>{},[r]);const f=so(t,()=>({isEmptyFrame:()=>!0}),[]),[p,{height:h,width:m}]=L0();return a.jsx("div",{...u,ref:ki([f,p]),children:a.jsx("div",{className:"chart-editor",style:{width:"100%",height:"100%",border:"var(--sxl-app-color-grey, grey) solid 1px",backgroundColor:"var(--sxl-app-color-background, white)",backgroundImage:"var(--sxl-app-image-background)",alignItems:"center",justifyContent:"center",zoom:i.getZoom(),display:"flex",position:"relative",filter:o?"blur(1px)":void 0,boxShadow:l?"1px 1px 2px var(--sxl-app-color-shadow, rgba(0,0,0,.15))":void 0},children:a.jsx("div",{style:{textAlign:"center"},children:r})})})})),gC=s.memo(s.forwardRef((e,t)=>{const{view:n,sheet:o,movableProps:r,renderMovable:i,commands:l,target:d,notifier:c,onRepeatCommandChange:u}=e,f=function(h){const{movables:m,movablesView:g,transactional:x,commands:y,target:v,onRepeatCommandChange:b,notifier:C}=h,k=mr();s.useRef(k.getMode()).current=k.getMode();const _=me(async(R,A,L=null,P=!0)=>{const z=async()=>{const U=await Promise.resolve(C?.showBusy?.(R.label()));try{await A();const O=L??R?.label?.();if(b){let q=null;R&&O!==!1&&(q=new pt(R.key(),v,{label:O,description:O},z)),b(q)}U?.(),P&&k.setMode(null)}catch(O){U?.(),C?.showError?.(O)}};await z()},[b,C]),[I,M]=s.useReducer(R=>R+1,0),F=me((R,A,L)=>{if(!g)return;const P=g.getMovableSelection();if(P.length===0)return;let z="Drawings";if(P.length===1){const O=P[0];z=N.TextUtils.capitalize(O.getContent().getType())??"Drawing"}const U=`${R.label()} ${z}`;_(R,()=>{let O=null;x&&(O=x.beginCommit(U));const q=g.getMovableSelection();if(q.length===0)return;const X=L?.(q);for(let re=0;re<q.length;re++){const $=q[re];A($,X)}O?.commit()})},[g,x]),[j,T]=s.useState(g.getMovableSelection()[0]??null),[w,S]=s.useState(!j||j?.isProtected()),D=s.useMemo(()=>[new Me("moveToFront",v,{label:"Bring to Front",description:"Move to the front of all of the other drawings.",shortcut:{key:"BracketRight",modifiers:[je.Ctrl,je.Shift]}},function(){F(this,R=>{R.moveToFront()})}),new Me("moveForward",v,{label:"Bring Forward",description:"Move forward one layer in the z order.",shortcut:{key:"BracketRight",modifiers:[je.Ctrl]}},function(){F(this,R=>{R.moveForward()})}),new Me("moveToBack",v,{label:"Send to Back",description:"Move to the back of all of the other drawings.",shortcut:{key:"BracketLeft",modifiers:[je.Ctrl,je.Shift]}},function(){F(this,R=>{R.moveToBack()})}),new Me("moveBackward",v,{label:"Send Backward",description:"Move backwards one layer in the z order.",shortcut:{key:"BracketLeft",modifiers:[je.Ctrl]}},function(){F(this,R=>{R.moveBackward()})}),new Me("toggleLockAspectRatio",v,{label:"Lock Aspect Ratio",description:"Toggle whether the aspect ratio should be maintained when resizing from corners."},function(){F(this,R=>{R.setLockAspectRatio(!R.isLockAspectRatio())})}),new Me("formatAnchorTypeTwoCell",v,{label:"Move and size with cells",description:"Set your drawing to move and resize when underling sheet resizes."},function(){F(this,R=>{R.setAnchorType(N.IAnchored.Type.TwoCell)})}),new Me("formatAnchorTypeOneCell",v,{label:"Move but don't size with cells",description:"Set your drawing to only move when underling sheet resizes."},function(){F(this,R=>{R.setAnchorType(N.IAnchored.Type.OneCell)})}),new Me("formatAnchorTypeAbsolute",v,{label:"Don't move or size with cells",description:"Set your drawing to never move or resize when underling sheet resizes."},function(){F(this,R=>{R.setAnchorType(N.IAnchored.Type.Absolute)})}),new Me("formatDrawAlignLeft",v,{label:"Align Left",description:"Align the selected drawings to the left."},function(){F(this,(R,A)=>{R.setBounds({x:A.x})},N0)}),new Me("formatDrawAlignCenter",v,{label:"Align Center",description:"Align the selected drawings vertically relative to each other."},function(){F(this,(R,A)=>{R.setBounds({x:(A.width-R.getBounds().width)/2+A.x})},N0)}),new Me("formatDrawAlignRight",v,{label:"Align Right",description:"Align the selected drawings to the right."},function(){F(this,(R,A)=>{R.setBounds({x:A.width-R.getBounds().width+A.x})},N0)}),new Me("formatDrawAlignTop",v,{label:"Align Top",description:"Align the selected drawings to the top."},function(){F(this,(R,A)=>{R.setBounds({y:A.y})},N0)}),new Me("formatDrawAlignMiddle",v,{label:"Align Middle",description:"Align the selected drawings horizontally relative to each other."},function(){F(this,(R,A)=>{R.setBounds({y:(A.height-R.getBounds().height)/2+A.y})},N0)}),new Me("formatDrawAlignBottom",v,{label:"Align Bottom",description:"Align the selected drawings to the bottom."},function(){F(this,(R,A)=>{R.setBounds({y:A.height-R.getBounds().height+A.y})},N0)}),new Me("formatDrawDistributeHorz",v,{label:"Distribute Horizontally",description:"Distribute the selected drawings horizontally with equal spacing between each."},function(){F(this,(R,A)=>{R.setBounds(A.get(R))},R=>n4(R))}),new Me("formatDrawDistributeVert",v,{label:"Distribute Vertically",description:"Distribute the selected drawings vertically with equal spacing between each."},function(){F(this,(R,A)=>{R.setBounds(A.get(R))},R=>n4(R,!1))}),new Me("formatDrawFlipHorz",v,{label:"Flip Horizontally",description:"Flip the selected drawings horizontally."}),new Me("formatDrawFlipVert",v,{label:"Flip Vertically",description:"Flip the selected drawings vertically."}),new Me("formatDrawGroup",v,{label:"Group",description:"Group the selected drawings into a single drawing."}),new Me("formatDrawUngroup",v,{label:"Ungroup",description:"Break the group of a drawing into individual drawings."}),new Me("formatDrawSwapShapes",v,{label:"Swap Shapes",description:"Swap the positions of the swap."}),new Me("formatDrawSwapShapesHorz",v,{label:"Swap Shapes Horizontally",description:"Swap the positions of the swap horizontally."}),new Me("formatDrawSwapShapesVert",v,{label:"Swap Shapes Vertically",description:"Swap the positions of the swap vertically."})],[g,j]);s.useEffect(()=>{},[k]);const E=s.useMemo(()=>{let R=null;return R=y?y.createChildGroup(v,"movable",!1):new vi(v,"movable"),R.addCommands(D,!0),R},[y,D]);return Ht(j,{onAnyChange:()=>{E.getCommand("formatAnchorTypeTwoCell").update({state:j?.getAnchorType()===N.IAnchored.Type.TwoCell}),E.getCommand("formatAnchorTypeOneCell").update({state:j?.getAnchorType()===N.IAnchored.Type.OneCell}),E.getCommand("formatAnchorTypeAbsolute").update({state:j?.getAnchorType()===N.IAnchored.Type.Absolute}),E.getCommand("formatAnchorTypeAbsolute").update({state:j?.getAnchorType()===N.IAnchored.Type.Absolute}),E.getCommand("toggleLockAspectRatio").update({state:j?.isLockAspectRatio()})},onProtectedChange:R=>{S(R.isProtected())},onDelete:()=>{}}),Ht(g,{onMovableSelectionChange:()=>{const R=g.getMovableSelection()[0]??null;T(R),S(!R||R.isProtected()),M()}}),Ht(m,{onCollectionChange:()=>{M()}}),s.useEffect(()=>{const R={disabled:w};E.getCommand("formatAnchorTypeTwoCell").update(R),E.getCommand("formatAnchorTypeOneCell").update(R),E.getCommand("formatAnchorTypeAbsolute").update(R),E.getCommand("toggleLockAspectRatio").update(R);const A=m.getCount(),L=g.getMovableSelection(),P=w||A<=1||L.length===0;let z={disabled:P},U=z;if(!P&&L.length===1){const X=L[0];X.getZIndex()===0&&(z={disabled:!0}),X.getZIndex()===A-1&&(U={disabled:!0})}E.getCommand("moveToFront").update(U),E.getCommand("moveForward").update(U),E.getCommand("moveToBack").update(z),E.getCommand("moveBackward").update(z);const O={disabled:w||L.length<=1};E.getCommand("formatDrawAlignLeft").update(O),E.getCommand("formatDrawAlignCenter").update(O),E.getCommand("formatDrawAlignRight").update(O),E.getCommand("formatDrawAlignTop").update(O),E.getCommand("formatDrawAlignMiddle").update(O),E.getCommand("formatDrawAlignBottom").update(O),E.getCommand("formatDrawFlipHorz").update(O),E.getCommand("formatDrawFlipVert").update(O),E.getCommand("formatDrawGroup").update(O),E.getCommand("formatDrawUngroup").update(O),E.getCommand("formatDrawSwapShapes").update(O),E.getCommand("formatDrawSwapShapesHorz").update(O),E.getCommand("formatDrawSwapShapesVert").update(O);const q={disabled:w||L.length<=2};E.getCommand("formatDrawDistributeHorz").update(q),E.getCommand("formatDrawDistributeVert").update(q)},[I,w,I]),E}({movables:o.getMovables(),movablesView:o?.getView(),transactional:o,onRepeatCommandChange:u,commands:l,target:d,notifier:c});s.useEffect(()=>{n?.getStage()},[n?.getStage()]);const p=s.useMemo(()=>a.jsx(fC,{ref:t,view:n,movables:o.getMovables(),disableResize:!o.getProtection().isObjectsAllowed(),disableDrag:!o.getProtection().isObjectsAllowed(),movablesView:o.getView(),transactional:o,renderMovable:i,...r,onFocus:()=>{f.activate(),r?.onFocus?.()}},"movable-area"),[o,r,l,f]);return p&&n?p:null})),xC=s.memo(s.forwardRef((e,t)=>{const{view:n,sheet:o,gridStyle:r,getCellEditor:i,showProtectedError:l,setEditingCoords:d,commands:c,notifier:u=Ja}=e,f=mr(),[p,h]=s.useState(null),[m,g]=s.useState(null),[x,y]=s.useState(null),[v,b]=s.useState(null),[C,k]=s.useState(null);s.useLayoutEffect(()=>{if(x===null)return b(null),void k(null);const L=()=>{const P=o.getRange(x).getCell(),z=P.getStyle();let U,O=z.getFill()?.toCSS(r.body.darkMode);O.background!=="none"&&O.background!=="transparent"||(O=o.getStyles().getNormal().getFill().toCSS(r.body.darkMode)),O.background!=="none"&&O.background!=="transparent"||(O={background:r.body.fill}),b({style:O}),P&&!P.getFormula()&&(U=P?.getRenderHorizontalAlignment()),k(U??Lf)};return L(),o.getRange(x).addListener(()=>{L()})},[o,x,r?.body]);const _=me(()=>{let L=m.editState.dirty??"";if(m.editState.dirty!==void 0){const P=N.TextUtils.clampString(L);try{const z=m.sheet.getRange(m.coords),U=`Typing '${P}' into ${z.toString()}`;return z.setValue(L,{description:U,autoFit:!0}),y(null),g(null),f.setMode(null),d(null),!0}catch(z){throw u.showError(new Error(`Unable to enter '${P}'.`,{cause:z})),z}}},[o,m,u]),I=me(L=>o.getRange(L).getCell().getExtrusions()??Qn.cellToRange(L),[o]);me(L=>{let P=N.IRange.Orientation.Row,z=!1;L!==N.IRange.Direction.Up&&L!==N.IRange.Direction.Down||(P=N.IRange.Orientation.Column),L!==N.IRange.Direction.Left&&L!==N.IRange.Direction.Up||(z=!0),o.getSelection().traverse(P,z)},[o]);const M=s.useCallback((L,P)=>{if(i)return i(L,P);if(!o)return null;const{ref:z,...U}=L;return a.jsx(wp,{ref:z,...U,sheet:o,bodyStyle:r?.body,activeCoords:P,commands:c,onChangeEdit:O=>{const q={sheet:o,coords:P,editState:O};f.setMode(X=>({...X,description:q.editState.editMode?"Edit":"Enter",args:{...X?.args,stateAndCoords:q}}))},editState:m.editState})},[o,v,i,m,x]),{overlay:F,startEdit:j,submitEdit:T,cancelEdit:w,onKeyboardEventNative:S,onPointerEventNative:D}=fS({view:n,activeCoords:p,getCellEditor:M,canEdit:()=>{const L=!o.getProtection().isLocked();return L||l(),L},onBeforeStartEdit:L=>{const P=Sp(()=>o.getRange(L).getCell()),z={sheet:o,coords:L,editState:Object.freeze(P)};f.setMode({key:"edit",args:{stateAndCoords:z}}),g(z)},onStartEdit:L=>{y(L),d(L)},onSubmitEdit:_,onCancelEdit:L=>{y(null),g(null),f.setMode(null),d(null)},onDoneEdit:L=>{f.setMode(null)},containerProps:v,borderStrokeFill:r.selection?.strokeFill,borderStrokeWidth:o?.getSelection().getCoords().ranges?.length>1?1:2,alignment:C,getRangeCoords:I});Ht(o.getSelection(),{onChange(L){h(o.getSelection().getCoords().cell)}});const E=me(L=>{D(L),x&&T()},[D,w,x]),R=s.useCallback(L=>{D(L)},[D]),A=s.useCallback(L=>{S(L)},[S]);return s.useEffect(()=>{const L=n?.getStage();if(L)return L.addEventListener("pointerdown",E),L.addEventListener("dblclick",R),L.addEventListener("keydown",A),()=>{L.removeEventListener("pointerdown",E),L.removeEventListener("dblclick",R),L.removeEventListener("keydown",A)}},[n?.getStage()]),s.useEffect(()=>{const L=f.getMode(),P=L?.key;P==="edit"||P==="enter"?m?L.args?.cancel?w():L.args?.submit?T():g(L.args?.stateAndCoords):j(L.args?.start):x&&w()},[f]),F(n,t)})),Tp="white",jp="black",yC=`url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg' %3E%3Cg%3E%3Cpath d='m 14.5,8 -5.6875,5.6875 v -3.25 H 1.5 v -4.875 h 7.3125 v -3.25 z' stroke='${jp}' fill='${Tp}'/%3E%3C/g%3E%3C/svg%3E%0A") 15 8, pointer`,bC=`url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg' %3E%3Cg%3E%3Cpath d='M 13.24564,12.979958 H 5.2023009 L 7.500398,10.681861 2.3296796,5.5111425 5.7768252,2.0639969 10.947543,7.2347153 13.24564,4.9366182 Z' stroke='${jp}' fill='${Tp}'/%3E%3C/g%3E%3C/svg%3E%0A") 12 12, pointer`,vC=s.memo(s.forwardRef((e,t)=>{const{view:n,sheet:o}=e,[r,i]=s.useState(o.getTables().getCount()>0),[l,d]=s.useState(null),[c,u]=s.useState(null),[f,p]=s.useState(null),[h,m]=s.useState(null),g=me(()=>{if(o.getTables().getCount()>0){i(!0);const _=o.getTables().search({address:n.getVisibleRangeCoords()});d(_.length>0?_:null)}else i(!1),d(null)},[o,n]),x=me(_=>{_.preventDefault(),_.stopPropagation();const I=n.getCellCoordsFromClient(_.clientX,_.clientY),M=o.getTables().search({address:I});M.length===1&&M[0].select()},[n,o]),y=me(_=>{_.preventDefault(),_.stopPropagation();const I=n.getCellCoordsFromClient(_.clientX,_.clientY),M=o.getTables().search({address:I});if(M.length===1){const F=M[0].getRange().getCoords(),j={colStart:F.colStart,rowStart:I.rowIndex,colEnd:F.colEnd,rowEnd:I.rowIndex};o.getRange(j).select()}},[n,o]),v=me(()=>{if(!r)return;const _=o.getTables().search({address:n.getVisibleRangeCoords()});d(_.length>0?_:null)},[o,r,n]);Ht(o?.getSelection(),{onChange(_){u(o.getSelection().getCoords().cell)}}),Ht(f,{onAnyChange(_){g(),v()}}),Ht(h,{onAnyChange(_){v()}}),Ht(o,{onTablesChange(_){g(),v()},onInvalidated(_){g(),v()}});const b=s.useMemo(()=>Lt.debounce(Lt.throttle(v,300),300),[]);s.useEffect(()=>{b()},[n]),s.useEffect(()=>{let _=null;if(l)for(let I=0;I<l.length&&!_;I++){const M=l[I],F=M.getRange().getCoords();N.CoordUtils.isCellWithinRange(c,F)&&(_=M)}p(_)},[c,l]);const C=me(_=>{let I=null;if(l)for(let M=0;M<l.length;M++){const F=l[M],j=F.getRange().getCoords();let T=n.getRangeCoordsBounds(j);const w=n.getRelativePointFromClient(_.clientX,_.clientY),S=w.x,D=w.y;if(S>=T.x&&S<=T.x+T.width&&D>=T.y&&D<=T.y+T.height){const E=n.getViewportSize();S<=0||D<=0||S>=E.width||D>=E.height||(I=F)}}m(I)},[n,l]);if(s.useEffect(()=>{const _=n?.getStage();if(_&&l)return _.addEventListener("mousemove",C),_.addEventListener("mouseleave",C),()=>{_.removeEventListener("mousemove",C),_.removeEventListener("mouseleave",C)}},[l,n?.getStage()]),!n||!l||l.length===0)return null;const k=[];for(let _=0;_<l.length;_++){const I=l[_];if(I.isClosed())continue;const M=I===h,F=I===f,j=I.getRange().getCoords(),T=n.getRangeCoordsBounds(j);let w;if(M||F){const S=I.getStyle().getProperties(),D=S.headerRow?.fill?.background??S.wholeTable?.border?.top?.color?.toString();if(D&&o){const E=o.getStyles().parseColor(D);E&&(w=E.toCSS())}w||(w="var(--sxl-app-color-shadow, rgba(0,0,0,.15))")}k.push(a.jsx("div",{style:{position:"absolute",left:T.x,top:T.y,width:Math.min(16,T.width),height:T.height,pointerEvents:"all",cursor:yC},onMouseDown:y},`table-select-row-${I.getName()}`)),k.push(a.jsx("div",{style:{position:"absolute",left:T.x,top:T.y,width:Math.min(16,T.width),height:Math.min(16,T.height),pointerEvents:"all",cursor:bC},onMouseDown:x},`table-select-${I.getName()}`)),k.push(a.jsx(Zs,{x:T.x,y:T.y,width:T.width,height:T.height,range:j,strokeWidth:F?.5:0,stroke:w??"var(--sxl-app-color-grey, grey)",style:{willChange:"box-shadow",transition:"box-shadow 80ms ease-in-out",boxShadow:M?`${w} 0px 0px 1px 1px`:void 0}},`table-outline-${I.getName()}`))}return k})),wC=s.memo(s.forwardRef((e,t)=>{const{view:n,sheet:o,animationTime:r=60}=e,[i,l]=s.useState(null),[d,c]=s.useState(null),u=s.useRef(null),f=me(()=>{const y=o.getSelectedCell(),v=y.getSpill()?.getCoords()??null;Qn.isEqualRanges(v,i)||(c(v?{transition:i?"move":"in",bounds:n.getRangeCoordsBounds(v),coords:v}:{transition:"out",bounds:n.getRangeCoordsBounds(i),coords:i}),l(v))},[o,n,i]);s.useEffect(()=>(u.current&&(clearTimeout(u.current),u.current=null),d&&(u.current=setTimeout(()=>{c(null),u.current=null},r)),()=>{u.current&&(clearTimeout(u.current),u.current=null)}),[d,r]);const p=s.useMemo(()=>Lt.debounce(Lt.throttle(f,80),80),[]);if(Ht(o?.getSelection(),{onChange(y){p()}}),Ht(o,{onSpillsChange(y){f()},onInvalidated(y){f()}}),!n||!i&&!d)return null;const h=o.getRange(i).getValue()instanceof N.FormulaError.Spill,m=[];let g=d?.bounds??n.getRangeCoordsBounds(i);if(d&&!Lt.isEqualBounds(d.bounds,n.getRangeCoordsBounds(d.coords))&&c(null),g=n.toClipBounds(g,-10),!g)return;const x="var(--sxl-app-color-primary-dark, rgba(0,0,0,.15))";return m.push(a.jsx(Zs,{x:g.x,y:g.y,width:g.width,height:g.height,range:i,strokeWidth:1,stroke:x,style:{willChange:"transform, opacity, width, height, opacity, left, top",strokeDasharray:h?"6 3":void 0,opacity:d?.transition==="out"?0:1,transition:d?.transition?d.transition==="in"||d.transition==="out"?`opacity ${1.5*r}ms ease-in-out`:`left ${r}ms ease-out, top ${r}ms ease-out, width ${r}ms ease-out, height ${r}ms ease-out`:"none",boxShadow:`${x} 0px 0px 4px 0px`}},"spill-outline}")),m})),SC={position:"absolute",top:0,left:0,bottom:0,right:0},o4=(e,t)=>{const n={...e},o=t?.getNormal().getFont(),r=o?.toCSS(),i={text:{fontFamily:r?.fontFamily,fontSize:o?.getSize()}},l=n.body=Lt.mergeContentful(e.body,i);return n.body=Lt.mergeContentful({fill:"#fff",strokeFill:"#dad8d6",strokeWidth:.5,text:{fontWeight:"400",fontStyle:"normal",fill:"#040404"}},l),n.buttonSurface=Lt.mergeContentful({fill:"#fff",text:{fill:"black"},edgeStrokeFill:"black"},n.buttonSurface),n.selection={fill:"rgba(16, 124, 65, 0.1)",strokeFill:"#217346",strokeWidth:2,...e.selection},n.selectionInactive={...n.selection,fill:"rgba(16, 124, 65, 0.1)",strokeFill:"#dad8d6",...e.selectionInactive},n.selectionRemove={...n.selection,fill:"rgba(200, 0, 0, 0.1)",strokeFill:"rgba(200, 0, 0, 1)",...e.selectionRemove},n.headerSelection={...n.selection,...e.headerSelection},n.headerSelectionInactive={...n.selectionInactive,...e.headerSelectionInactive},n.header=Lt.mergeContentful(n.body,{edgeStrokeFill:"rgb(171, 171, 171)",fill:"#f0f0f0",strokeShadow:void 0,edgeStrokeWidth:1},e.header),n.header=Lt.mergeContentful(n.header,i),n.headerSelect=Lt.mergeContentful(n.header,{fill:"rgba(16, 124, 65, 0.1)",text:{fill:n.headerSelection.strokeFill,fontWeight:"700"}},e.headerSelect),n.headerSelect=Lt.mergeContentful(n.headerSelect,i),n.headerSelectAll=Lt.mergeContentful(n.headerSelect,{},e.headerSelectAll),n.headerSelectAll=Lt.mergeContentful(n.headerSelectAll,i),n},CC={fireOnModelChange:!1},r4={},Mp=s.memo(s.forwardRef((e,t)=>{const{sheet:n,gridStyle:o=r4,headersStyle:r=r4,onSheetContextMenu:i,showColumnHeaders:l,columnHeaderProps:d,showRowHeaders:c,rowHeaderProps:u,showScrollbars:f=!0,scrollPaneProps:p,onViewportChange:h,commands:m,onRepeatCommandChange:g,onMoveCell:x,overlays:y,renderMovable:v,viewportComponent:b,onElementLoad:C,getCellEditor:k,onFocus:_,onBlur:I,style:M=nn.EmptyCssProperties,notifier:F,onShowTooltip:j,onShowColumnTooltip:T,onShowRowTooltip:w,onCloseTooltip:S,gridProps:D,cellRenderProps:E,...R}=e;if(s.useEffect(()=>{N.LicenseManager._validate(!0)},[]),!n)throw new Error("ISheet must be provided.");const[A,L]=s.useReducer(De=>De+1,0),[P,{width:z,height:U}]=L0(),O=me(j,[j]),q=me(T,[T]),X=me(w,[w]),re=me(S,[S]),$=s.useRef(!1);s.useLayoutEffect(()=>{$.current=!0},[n]);const W=n?.getStyles(),B=s.useMemo(()=>o4(o,W),[o,W]),Z=s.useMemo(()=>o4(r,W),[r,W]),{body:G={},buttonSurface:ie={}}=B,{header:ee={},headerSelect:le={},headerSelectAll:ue={}}=Z,de=s.useRef(null),[oe,fe]=s.useState(()=>n?.getView()),Te=(oe?.getZoomScale()??100)/100,Le=s.useMemo(()=>({vertical:oe.isShowColumnGridlines()&&Te>=.4,horizontal:oe.isShowRowGridlines()&&Te>=.4}),[oe?.isShowColumnGridlines(),oe?.isShowRowGridlines(),Te]),ce=s.useMemo(()=>{if(oe?.getGridLineColor())return{strokeDasharray:"1,1"}},[oe?.getGridLineColor(),B]),he=l??oe?.isShowColumnHeaders(),we=c??oe?.isShowRowHeaders(),[Y,ze]=s.useState({width:0,height:0}),ht=s.useMemo(()=>{let De=40,tt=20;const at=n?.getStyles().getNormal().getFont();if(Y.width>0&&Y.height>0){const vt=at?.toCSS()?.fontFamily??B.header.text.fontFamily,K=at?.getSize()??B.header.text.fontSize,xe=N.IFont.getSharedMeasurer()(""+Y.height,Math.ceil(K*N.IFont.getDeviceScale()),vt);De=xe.width,tt=xe.lineHeight}return{width:Math.round(De+5),height:Math.round(tt+3)}},[Y,B?.header.text,n]),ut=we?Te*ht.width:ee.edgeStrokeWidth,ke=he?Te*ht.height:ee.edgeStrokeWidth,ot=Math.max(z,(n?.getColumnHeaders().getDefaultSize()??ht.width)+ut+1),dt=Math.max(U,(n?.getRowHeaders().getDefaultSize()??ht.height)+ke+1),Fe=s.useRef(new Map),Je=s.useRef(null),Ge=()=>({getColOffset:De=>n.getColumnHeaders().findOffset(De),getColIndex:De=>n.getColumnHeaders().findIndex(De),getRowOffset:De=>n.getRowHeaders().findOffset(De),getRowIndex:De=>n.getRowHeaders().findIndex(De)}),[se,We]=s.useState(()=>Ge()),[be,Se]=s.useState(!1),[H,te]=s.useState(null),ne=!0,J=B.selection?.strokeFill,ae=s.useCallback(()=>uo.current,[]),[Q,pe]=s.useState(),ge=me(De=>{pe(De),n&&n.getView()&&n.getView().setTopLeft(De?{left:De.left,top:De.top}:null),h?.(De)},[n,h]),Ee=s.useRef(null);s.useEffect(()=>{if(!Q||!n)return;const De=n.getRangeAtBounds({x:Q.left,y:Q.top,width:Q.width,height:Q.height});Ee.current?.(),Ee.current=De.addListener(()=>{const tt=De.getCoords();de?.current?.invalidate(tt)})},[Q,n]);const[Be,Oe]=s.useState(()=>n?.getView().getTopLeft()),Ie=me(De=>{const tt=Qn.cellToRange(De);if(n.isClosed())return tt;const at=n.getRange(tt,{excludeHidden:!0}).getMerges();return at.length===0?tt:at[0]},[n]),Ze=De=>{if(!De||De.coords.colIndex===0&&De.coords.rowIndex===0)return null;const tt={};return De.coords.colIndex>0&&(tt[qn.Left]={index:De.coords.colIndex,scrollOffset:De.topLeft.left}),De.coords.rowIndex>0&&(tt[qn.Top]={index:De.coords.rowIndex,scrollOffset:De.topLeft.top}),tt},[Ne,qe]=s.useState(()=>Ze(n.getView().getFreezePanes())),lt=mr(),wt=s.useCallback(()=>de.current,[]),Xe=me(De=>{lt.setMode(tt=>tt?.key==="edit"?{...tt,args:{...tt.args}}:{key:"edit",args:{stateAndCoords:null,start:De}})},[]),St=me(()=>Q,[Q]),Ct=KS({sheet:n,commands:m,target:wt,onRepeatCommandChange:g,bodyStyle:G,notifier:F,onStartEdit:Xe,getViewport:St}),[it,Ot]=s.useState(n.getSelection().isEntire()),[sn,yn]=s.useState(oe?.getMovableSelection().length>0),In=H!==null||sn,Ln=null,[At,jt]=s.useState(!1);s.useEffect(()=>{jt(!1)},[n.getProtection()]);const un=me(()=>{At||(jt(!0),F.showMessage?.(a.jsxs("span",{children:["This sheet is protected.",a.jsx("br",{}),"To make a change, unprotect the sheet. You might be requested to enter a password."]}),{type:jr.Error}))},[F,At]),vn=s.useMemo(()=>{const De=lt.getMode();return De?.cursor?De.cursor:null},[Ln,lt]),[rn,ln]=s.useState(null),Jt=s.useRef(!1),[ro,Io]=s.useState([]),Go=s.useRef(null),[wo,cr]=s.useState(yl.EmptyTopLeft),[So,Ko]=s.useState(yl.EmptyTopLeft);s.useEffect(()=>{cr({left:Be?.left,top:0})},[Be?.left]),s.useEffect(()=>{Ko({left:0,top:Be?.top})},[Be?.top]),Ht(n?.getView(),{onFreezeSplitChange:()=>{qe(Ze(n.getView().getFreezePanes()))},onTopLeftChange:()=>{Oe(n.getView().getTopLeft())},onMovableSelectionChange:()=>{yn(n.getView().getMovableSelection().length>0)}}),Ht(n?.getSelection(),{onChange:()=>{Ot(n.getSelection().isEntire())}}),Ht(n,{onViewChange(){fe(n.getView()),We(Ge())},onLayoutChange:()=>{const De=n.getEntireRange();ze({height:De.getRowCount(),width:De.getColumnCount()}),We(Ge())},onStyleChange:()=>{Pe()},onMovablesChange:()=>{},onInvalidated:()=>{Pe()}}),Ht(n,{onRequestScrollIntoView:async(De,tt)=>{if(!tt)return;const at={colIndex:tt?.coords.colStart,rowIndex:tt?.coords.rowStart};return await de.current?.scrollCellCoordsIntoView(at,tt?.scroll),!0},onRequestFocus:()=>Lt.whenFocus(uo.current)},CC);const yr=s.useMemo(()=>{const De=(at,vt)=>{Jt.current=!0,ln([K=>{if(!K.toClipBounds(K.getRangeCoordsBounds({rowStart:0,rowEnd:Y.height,colStart:at,colEnd:at})))return;const xe=K.getLayout(),Ce=Math.max(0,xe.getColOffset(at)),ye=K.getBounds(),Ae=Math.min(ye.x+ye.width,xe.getColOffset(at+1)),et=K.getAnchor();if(vt!==null&&(et===qn.Left||et===qn.Center||et===qn.Right)){const tn=Lt.roundAccurately(vt*Lt.getDPI(),0),Rt=Lt.roundAccurately(n?.getColumnWidthAsFontUnit(vt/Te),2).toFixed(2),It="Width: "+(vt?Rt+" ("+tn+" pixels)":"Hidden"),_n=yt.current.getGridElement().getRelativePointFromClient(0,0),rt=0-_n.y,qt=0-_n.y+ke,Nn={x:Ce-(_n.x-ye.x),y:rt,width:Ae-Ce,height:qt-rt};requestAnimationFrame(()=>{Jt.current&&q?.({anchor:Nn,display:It})})}const Ve=[0,0,0,ye.height],Pt={style:{boxShadow:`0.5px 0px 0px 0px ${o?.body?.fill}`},pathProps:{stroke:J}},Tt={x:Ce-1,y:0,width:1,height:ye.height},Mt={style:{boxShadow:`-0.5px 0px 0px 0px ${o?.body?.fill}`},pathProps:{stroke:J}},Ft={x:Ae-1,y:0,width:1,height:ye.height};return a.jsxs(s.Fragment,{children:[a.jsx(Q0,{linePoints:Ve,bounds:Tt,...Pt}),a.jsx(Q0,{linePoints:Ve,bounds:Ft,...Mt})]},"resize-dividers")}])};let tt=null;return{onResizeHeadersStart:(at,vt,K)=>{tt=n.beginCommit(K),De(at,vt)},onResizeHeaders:(at,vt,K)=>{De(at,vt)},onResizeHeadersDown:(at,vt)=>{De(at,vt)},onResizeHeadersEnd:(at,vt,K)=>{tt?.commit({description:K}),tt=null,requestAnimationFrame(()=>re?.()),Jt.current=!1,ln(null)},onResizeHeadersUp:at=>{requestAnimationFrame(()=>re?.()),Jt.current=!1,ln(null)},...d}},[n,d,ke,rn]),Xo=s.useMemo(()=>{const De=(at,vt)=>{Jt.current=!0,ln([K=>{if(!K.toClipBounds(K.getRangeCoordsBounds({rowStart:at,rowEnd:at,colStart:0,colEnd:Y.width})))return;const xe=K.getLayout(),Ce=Math.max(0,xe.getRowOffset(at)),ye=K.getBounds(),Ae=Math.min(ye.y+ye.height,xe.getRowOffset(at+1)),et=K.getAnchor();if(vt!==null&&(et===qn.Top||et===qn.Center||et===qn.Bottom)){const tn=Math.floor(10*Lt.getDPI())/10,Rt=Lt.roundAccurately(vt*tn,0),It=Lt.roundAccurately(Rt/Te/(n?.getRowHeaders().getScaleFactor()*Lt.getDPI()),2).toFixed(2),_n="Height: "+(vt?It+" ("+Rt+" pixels)":"Hidden"),rt=_e.current.getGridElement().getRelativePointFromClient(0,0),qt=0-rt.x,Nn=0-rt.x+ut,Xt={x:qt,y:Ce-(rt.y-ye.y),width:Nn-qt,height:Ae-Ce};requestAnimationFrame(()=>{Jt.current&&X?.({anchor:Xt,display:_n})})}const Ve=[0,0,ye.width,0],Pt={style:{boxShadow:`0px 0.5px 0px 0px ${o?.body?.fill}`},pathProps:{stroke:J}},Tt={x:0,y:Ce-1,width:ye.width,height:1},Mt={style:{boxShadow:`0px -0.5px 0px 0px ${o?.body?.fill}`},pathProps:{stroke:J}},Ft={x:0,y:Ae-1,width:ye.width,height:1};return a.jsxs(s.Fragment,{children:[a.jsx(Q0,{linePoints:Ve,bounds:Tt,...Pt}),a.jsx(Q0,{linePoints:Ve,bounds:Ft,...Mt})]},"resize-dividers")}])};let tt=null;return{onResizeHeadersStart:(at,vt,K)=>{tt=n.beginCommit(K),De(at,vt)},onResizeHeaders:(at,vt,K)=>{De(at,vt)},onResizeHeadersDown:(at,vt)=>{De(at,vt)},onResizeHeadersEnd:(at,vt,K)=>{tt?.commit({description:K}),tt=null,requestAnimationFrame(()=>re?.()),Jt.current=!1,ln(null)},onResizeHeadersUp:at=>{requestAnimationFrame(()=>re?.()),Jt.current=!1,ln(null)},...u}},[n,u,ut]),uo=so(t,()=>{const De=at=>{n?.getView()&&n.getView().selectMovables([]),Je.current=null,de?.current?.focus(at)},tt=async(at=null)=>{if(at||(at=n?.getView().getMovableSelection()[0]),!at)return!1;const vt=at.getAnchorCoords();if(!vt)return!1;const K=de.current?.getViewFromCellCoords({colIndex:vt.colStart,rowIndex:vt.rowStart});if(!K)return!1;const xe=K.getAnchor();n?.getView().getMovableSelection().indexOf(at)===-1&&n?.getView().selectMovables([at]);let Ce=Fe.current?.get(xe);return Ce?.current?(await Ce.current.focusMovable(at),!0):(Je.current={movable:at,anchor:xe},!0)};return{getGridElement:()=>de.current,getRowHeaderElement:()=>_e.current,getColumnHeaderElement:()=>yt.current,rowHeaderHeight:()=>ke,colHeaderWidth:()=>ut,startEdit:Xe,submitEdit:()=>{lt.setMode(at=>at?.key!=="edit"?at:{key:"edit",args:{stateAndCoords:null,submit:!0}})},cancelEdit:()=>{lt.setMode(at=>at?.key!=="edit"?at:{key:"edit",args:{stateAndCoords:null,cancel:!0}})},isEditing:H!==null,focus:at=>{n?.getView().getMovableSelection().length>0&&tt()||De(at)},focusSheet:De,focusMovable:tt,contains:at=>de?.current?.contains?.(at),invalidate:Pe,isSheetElement:()=>!0,getSheet:()=>n}},[n]),Pe=s.useCallback(De=>{$.current||(de?.current?.invalidate(De),L?.())},[]);s.useEffect(()=>{Pe()},[B]);const Ke=it?ue.edgeStrokeFill:ee.fill,Ye=it?le.fill:typeof B.headerHover=="function"?B.headerHover(ee)?.fill:ee.fill,Ue=s.useMemo(()=>b?a.jsx("div",{className:Ao("sheetxl-viewport-overlay","_viewport-overlay_1qeq6_6"),style:{width:"100%",height:"100%",boxSizing:"border-box",position:"absolute"},children:b}):a.jsx(a.Fragment,{}),[b]);let Qe=null;he&&we&&(Qe=a.jsxs("div",{tabIndex:-1,className:"top-left-corner",style:{padding:"2 2",position:"absolute",height:`${ke}px`,width:`${ut}px`,zIndex:1,boxSizing:"border-box",cursor:"cell"},onMouseDown:De=>{let tt=!De.ctrlKey;Ct?.getCommand("selectAll")?.execute(!tt||De.button!==0),De.nativeEvent.which===b7?i?.({originalEvent:De,clientX:De.clientX,clientY:De.clientY,rowIndex:-1,colIndex:-1}):de.current?.focus()},children:[a.jsx("div",{style:{height:ke-5+"px",width:ke-5+"px",clipPath:`path('M${ke-5} 0 L0 ${ke-5} L${ke-5} ${ke-5} L${ke-5} 0 Z')`,borderRight:`2px solid ${Ke}`,borderBottom:`2px solid ${Ke}`,background:`${Ye}`,boxSizing:"border-box",position:"absolute",right:"2px",bottom:"2px"}}),a.jsx("div",{style:{position:"absolute",height:`${ke}px`,width:`${ut}px`,boxSizing:"border-box",borderRight:`solid 1px ${ee.strokeFill}`,borderBottom:`solid 1px ${ee.strokeFill}`,right:"-1px",bottom:"-1px"}})]}));const mt=me(({_left:De,_top:tt})=>{},[]),xt=me(De=>{if(!i)return;const tt=de.current.getViewFromClient(De.clientX,De.clientY)?.getCellCoordsFromClient(De.clientX,De.clientY);tt&&(i({originalEvent:De,clientX:De.clientX,clientY:De.clientY,rowIndex:tt.rowIndex,colIndex:tt.colIndex}),De.stopPropagation(),De.preventDefault())},[i]),gt=me(De=>{if(De.shiftKey||!De.ctrlKey&&!De.metaKey)return;const{deltaY:tt}=De;return tt>0?Ct.getCommand("sheetZoomOut")?.execute():tt<0&&Ct.getCommand("sheetZoomIn")?.execute(),tt===0},[Ct]);s.useEffect(()=>{Io(null),Go.current=null,Jt.current=!1,ln(null);const De=n?.getView().getTopLeft();mt(De),de.current?.scrollTo(De),Oe(De),fe(n.getView()),qe(Ze(n.getView().getFreezePanes())),We(Ge()),L()},[n?.getView()]);const kt=me(De=>{const tt=De.getVisibleRangeCoords();if(!tt)return null;const at=[];return n.getRange(tt).forEach((vt,K)=>{const xe=K.getCoords(),Ce=K.getCell();(ye=>{if(ye.isEmpty())return!1;const Ae=ye.getSpans();if(Ae.width>1||Ae.height>1||ye.getStyle().hasVisibleStyling()||oe.isShowFormulas()&&ye.getFormula()!==null)return!0;const et=ye.getValue();return et!==null&&!(!oe.isShowZeros()&&et===0&&ye.getType()===N.ScalarType.Number)})(Ce)&&at.push({coords:xe,value:Ce,range:oe.isShowFormulas()?null:Ce.getExtrusions()})},{excludeHidden:!0,includeMergeOverflow:!0}),at},[n,oe.isShowZeros(),oe.isShowFormulas(),H]);s.useEffect(()=>{const De=[];y&&De.push(...y),rn&&De.push(...rn),Lt.isEqualArrays(De,Go.current)||(Go.current=De,Io(De))},[y,rn,B]);const bt=s.useMemo(()=>({style:{boxShadow:`0.5px 0.5px 0px 0px ${o?.body?.fill}`},pathProps:{stroke:o?.body?.text?.fill??"black"}}),[B?.header?.edgeStrokeFill]),Ut=me(De=>{De.isDefaultPrevented()||De.isPropagationStopped()||(Je.current=null,n?.getView().getMovableSelection().length>0&&n.getView().selectMovables([]))},[n]),cn=s.useMemo(()=>{const De=lt.getMode();return De?.key==="cut"||De?.key==="copy"},[lt]),Gt=me(async De=>{const tt=lt.getMode();return De.keyCode===Nt.Escape&&tt?(De.preventDefault(),void lt.setMode(null)):De.keyCode===Nt.Enter&&cn?(De.preventDefault(),await Ct?.getCommand("paste")?.execute(),void lt.setMode(null)):void Ct?.dispatchToFocusedCommand(De)},[Ct,lt]),_e=s.useRef(null),ct=s.useMemo(()=>a.jsx("div",{tabIndex:-1,style:{position:"relative",flex:"0",top:`${ke+1}px`,width:`${ut+ee.edgeStrokeWidth}px`,minWidth:`${ut+ee.edgeStrokeWidth}px`,borderRight:`solid ${ee.edgeStrokeWidth}px ${ee.edgeStrokeFill}`,height:`calc(100% - ${ke}px)`,boxSizing:"border-box",zIndex:"2"},children:a.jsx(e4,{ref:_e,sheetElement:uo.current,gridRef:de,freezeStart:Ne?.[qn.Top],oppositeSize:ut,containerWidth:ut,containerHeight:dt,sheetHeader:n.getRowHeaders(),gridStyle:Z,verticalPadding:Math.max(0,Math.floor(n.getStyles().getNormal().getFont().getSize()/10)),scrollPoint:So,onSheetContextMenu:i,tabIndex:-1,style:{position:"relative",flex:"0",top:`${ke+1}px`,width:`${ut+ee.edgeStrokeWidth}px`,minWidth:`${ut+ee.edgeStrokeWidth}px`,borderRight:`solid ${ee.edgeStrokeWidth}px ${ee.edgeStrokeFill}`,height:`calc(100% - ${ke}px)`,boxSizing:"border-box",zIndex:"2",...Xo?.style},...Xo})}),[ut,ke,dt,n,So,Ne?.[qn.Top],B,ne,i,ee.fill,u]),yt=s.useRef(null),Kt=s.useMemo(()=>a.jsx("div",{tabIndex:-1,style:{position:"relative",left:"0px",width:"100%",height:`${ke+ee.edgeStrokeWidth}px`,minHeight:`${ke+ee.edgeStrokeWidth}px`,borderBottom:`solid ${ee.edgeStrokeWidth}px ${ee.edgeStrokeFill}`,boxSizing:"border-box",zIndex:"1"},children:a.jsx(e4,{ref:yt,sheetElement:uo.current,gridRef:de,freezeStart:Ne?.[qn.Left],oppositeSize:ke,containerWidth:ot,containerHeight:ke,sheetHeader:n.getColumnHeaders(),gridStyle:Z,scrollPoint:wo,onSheetContextMenu:i,...yr,style:{...yr?.style,position:"relative",left:"0px",width:"100%",height:`${ke+ee.edgeStrokeWidth}px`,minHeight:`${ke+ee.edgeStrokeWidth}px`,borderBottom:`solid ${ee.edgeStrokeWidth}px ${ee.edgeStrokeFill}`,boxSizing:"border-box",zIndex:"1"}})}),[ke,ot,n,wo,Ne?.[qn.Left],B,ee.fill,ne,i,d]),Wt=me(De=>{const{value:tt,key:at,...vt}=De;let K=tt,xe=H;if(!xe||xe.colIndex===De.coords.colIndex&&xe.rowIndex===De.coords.rowIndex||(xe=null),!K){const Ae=De.range;if(K=n.getRange({rowIndex:Ae.rowStart,colIndex:Ae.colStart}).getCell(),K.isEmpty())return null}let Ce=null;K.getHyperlink()&&(Ce=async Ae=>{if(E?.onLinkMouseDown?.(Ae),Ae.button===0&&!Ae.isDefaultPrevented()){Ae.stopPropagation(),Ae.preventDefault();try{await K.getHyperlink()?.open()}catch(et){F?.showError?.(et)}}}),xe&&xe.colIndex===De.range.colStart&&xe.rowIndex===De.range.rowStart&&(K=K.createTemporaryCell({value:null}));const ye=n.getStyles();return s.createElement(FS,{...vt,key:at,bodyStyle:G,docTheme:ye.getTheme(),normalStyle:ye.getNormal(),showFormulas:oe.isShowFormulas(),showZeros:oe.isShowZeros(),onLinkMouseDown:Ce,...E,value:K})},[n,se,G,H,oe?.isShowFormulas(),oe.isShowZeros()]),ft=s.useCallback((De,tt)=>{const{key:at,...vt}=De;return[a.jsx(YS,{ref:tt,getVisibleCells:kt,sheet:n,gridStyle:B,...vt},`border-${at}`),a.jsx(vC,{ref:tt,sheet:n,commands:Ct,...vt},`table-${at}`),a.jsx(wC,{ref:tt,sheet:n,...vt},`spill-${at}`),a.jsx(uC,{ref:tt,sheet:n,commands:Ct,notifier:F,onShowTooltip:O,onCloseTooltip:re,gridStyle:B,gridRef:de,editingCoords:H,isActive:ne,...vt},`selection-${at}`),a.jsx(iC,{ref:tt,sheet:n,commands:Ct,gridStyle:B,element:ae,notifier:F,...vt},`copy-paste-${at}`),a.jsx(gC,{ref:tt,sheet:n,commands:Ct,target:wt,notifier:F,renderMovable:v,movableProps:{onUnFocus:()=>{uo.current.focus()}},...vt},`movable-${at}`),a.jsx(xC,{ref:tt,sheet:n,commands:Ct,notifier:F,gridStyle:B,getCellEditor:k,showProtectedError:un,setEditingCoords:te,...vt},`editor-${at}`)]},[n,de.current,B,k,Ct,F]),[Vt,ho]=s.useState(!1),xo=s.useMemo(()=>{if(ot===0||dt===0)return null;const De=n.getStyles().getNormal(),tt=De.getFont(),at=De.getFill(),vt=De.getBorder(),K=De.getFill().getType()===N.IFill.Type.None;let xe=ce,Ce=ce;const ye=(et,Ve,Pt)=>Pt?{stroke:vt.getBottom().isNone()?"none":et.getColor().toRGBA(G.darkMode).toString(),...Ve}:Ve;Ce=ye(vt.getBottom(),Ce,!vt.getBottom().isNone()),Ce=ye(vt.getTop(),Ce,!vt.getTop().isNone()),xe=ye(vt.getRight(),xe,!vt.getRight().isNone()),xe=ye(vt.getLeft(),xe,!vt.getLeft().isNone());let Ae=oe?.getGridLineColor()?.toRGBA(G.darkMode).toString()??G.strokeFill;return K||(Ce=ye(vt.getBottom(),Ce,!0),Ce=ye(vt.getTop(),Ce,!0),xe=ye(vt.getRight(),xe,!0),xe=ye(vt.getLeft(),xe,!0)),a.jsx(Gs,{className:"sheetxl-sheet-primary",style:{...SC,...at.toCSS(G.darkMode),...tt.toCSS(G.darkMode,Te),"--sxl-app-color-background":G.fill,"--sxl-app-color-shadow":B.colorShadow,"--sxl-app-color-grey":B.colorGrey,"--sxl-app-color-button-fill":ie.fill,"--sxl-app-color-button-text":ie.text?.fill,"--sxl-app-color-button-border":ie.edgeStrokeFill,"--sxl-app-color-primary-dark":B.selection.strokeFill},ref:de,zoom:Te,...D,onFirstRender:et=>{ho(!0),D?.onFirstRender?.(et),Ct?.activate()},showGridLines:Le,gridLineColor:Ae,gridLineColumnsProps:xe,gridLineRowsProps:Ce,freezeLeft:Ne?.[qn.Left],freezeLeftProps:bt,freezeTop:Ne?.[qn.Top],freezeTopProps:bt,width:ot,height:dt,columnCount:Y.width,rowCount:Y.height,cursor:vn??Ln??"cell",clipCells:!0,layout:se,cellRenderer:Wt,overlayRenderer:ft,getCellCoordsAsRangeCoords:Ie,getVisibleCells:kt,onWheelScroll:gt,onPointerDown:Ut,onKeyDown:Gt,onViewportChange:ge,onImmediateScroll:mt,scrollPoint:Be,stageProps:{onFocus:()=>{Ct?.activate()}},overlays:ro})},[A]);s.useEffect(()=>{$.current||L()},[se,Ne,Te,Ct,Be?.left,Be?.top,G,D,ot,dt,vn,ro,ne,Ln]);let $t={flex:"1 1 100%",display:"flex",alignContent:"stretch",position:"relative"};f||($t={...$t,...M});const fn=s.useMemo(()=>{const De=n.getStyles().getTheme(),tt=De.getColorScheme(),at=De.getFontScheme();return{"--sxl-doc-color-dk1":tt.getDk1().toCSS(G.darkMode),"--sxl-doc-color-dk2":tt.getDk2().toCSS(G.darkMode),"--sxl-doc-color-lt1":tt.getLt1().toCSS(G.darkMode),"--sxl-doc-color-lt2":tt.getLt2().toCSS(G.darkMode),"--sxl-doc-color-accent1":tt.getAccent1().toCSS(G.darkMode),"--sxl-doc-color-accent2":tt.getAccent2().toCSS(G.darkMode),"--sxl-doc-color-accent3":tt.getAccent3().toCSS(G.darkMode),"--sxl-doc-color-accent4":tt.getAccent4().toCSS(G.darkMode),"--sxl-doc-color-accent5":tt.getAccent5().toCSS(G.darkMode),"--sxl-doc-color-accent6":tt.getAccent6().toCSS(G.darkMode),"--sxl-doc-color-hlink":tt.getHlink().toCSS(G.darkMode),"--sxl-doc-color-fol-hlink":tt.getFolHlink().toCSS(G.darkMode),"--sxl-doc-font-major":at.getMajorFont(),"--sxl-doc-font-minor":at.getMinorFont()}},[n.getStyles().getTheme()]);let on=a.jsx("div",{style:$t,onTouchStart:()=>{On()},onFocus:De=>{Se(!0),_?.(De)},onBlur:De=>{Se(!1),I?.(De)},ref:uo,...R,children:a.jsx("div",{className:Ao("sheetxl-sheet","_sheetxl-sheet_1qeq6_5"),style:{position:"absolute",width:"100%",height:"100%",boxSizing:"border-box",display:"flex",flexDirection:"column",flex:"1 1 100%",zIndex:"0",...fn},children:a.jsxs("div",{style:{display:"flex",flexDirection:"row",flex:"1 1 100%"},children:[Qe,ct,a.jsxs("div",{style:{display:"flex",flexDirection:"column",flex:"1 1 100%",overflow:"hidden",position:"relative"},children:[Kt,a.jsxs("div",{style:{display:"flex",flexDirection:"column",flex:"1 1 100%",position:"relative",borderRight:`solid ${ee.edgeStrokeWidth}px ${ee.edgeStrokeFill}`,backgroundColor:G.fill},ref:P,onContextMenu:xt,children:[xo,Ue,a.jsx(GS,{style:{position:"absolute",right:24,bottom:4},colorLicensee:B?.selection?.strokeFill,colorCredits:B?.body?.text?.fill})]})]})]})})});if(f){const De=tt=>a.jsx(Es,{...tt,sheet:n});on=a.jsx(Ed,{style:{flex:"1 1 100%",overflow:"hidden",background:`${ee.fill}`,minHeight:2*ht.height,minWidth:2*ht.width,...M},viewport:Q,touchElement:de.current?.stage,disableTouch:In,onScrollViewport:tt=>{de.current?.scrollTo(tt)},createHorizontalScrollbar:De,createVerticalScrollbar:De,...p,children:on})}s.useEffect(()=>{$.current=!1,L?.(),be&&uo.current?.focus()},[n]);const[mn,en]=s.useState(!1),On=me(()=>{mn||en(!0)},[mn]);return s.useEffect(()=>{if(Vt)return typeof C=="function"&&C(),nn.detectIt().primaryInput==="touch"&&On(),()=>{}},[C,Vt,mn]),on}));Mp.displayName="SheetElement",Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"}));const i4="data:image/webp;base64,UklGRhIPAABXRUJQVlA4TAYPAAAv/8F/EM8HIZJtWU0fdlTh3wRCIMlkE+EqkiTFyt57/KQ8/zKeEf5iaseNJClS1DGDxWcwvhfuCo5tW88SHw8Xh5ypbC3tnf8QHEfOB/D97w4PuFHBIx6MHJ74zvj/0aLdlH9AYWEjHiwOJR5M7Q+FAigmTRQOJRqczrVUKABQSMYgoAFFAhIwBkgaYEkBSABowDGgcYakUZirArQhRMUIIHGLBIAEEoDRfyokIAEAMhrSRmEOSPyS/jvR+BYFIWkUhLQhCpLGGQ2rhPiCOKPxDIVQmAZQDMYIjCTfNQXVJv8pnQqhuAonnczGDPv0VwFw/w+uGiAwQYjJXxffaJzROKPHoArGAPA+6o9AtiIj4XgAWGKCwAQBVNMSHQNEjTMqOSWPQEFRHOVl4vp/nnhI/DBNK8CGXCpeFvONip/jvPn67qb957v+Nssyv96/Jwg/xzT9yORhfR4fb6vF9ef39Nt62g55v37/7dRzfx9xFLRtIyX8ae+/AxARE8APxbCQtkidoqVGDBDxR3r8/59vo88vnW07v9nrY+l0tn0zemuSnn03W83Otn2zcarbfIrZqnG7Ykr77/nS5PP+/E6/iP7DgiRJiZX13F2QhYM/OrBtm7at/ZB927Zt27ZtPr/oK7Jt27b9x7dtGxcv1sFcc/R1woj+S2IkSZGkaXMpD2sZhqf3R5Y/23+2/2z/2f6z/Wf7z/af7T/bf7b/bP/97S8/r8tpn2+Rafa98ufeMc3nfK8v3V9QZHWVtFs5f/i2z8bd7+E/nX/Vuk9+uO6dF3IuWEy12r0S9eGUdA5q0RtuvnxxXpUFVPf5eQlfe7jG8j58Q6+uZZZNRGmv+GgOidbMMHMMy/WbJu7az/wcUqUk9C01LJNj5tZsDsnuizfPWh/F3WdN4FDO/eiYow4LozJuhpfDoPtcywyr8pAYDpv2RlmOB1TF7fBymPXAqA4Wwskrp3JY9oVZZA2efmm8m8O2Xa796tcoMprDvA2DAprXfkYWC9C0eflat2xrBgtRrKuDwgXemsKS5I6vr2zVzq9ZnLbUUzSHL5lFast+JTPi1rJUZWzN1bBuSSxZ7pvqaFfeVpYub2QtzaqI3McCtsppqPXPTWc0C9kjB3TqyFcsZ54b8/XpXJSHRW23qU1LJrC4PdFRlWsMzWCJ815ZpUYDU1no7mqiQ7VvYbnz9zIUaOkqFr3tZ7XnfKSHhe/+ON3pNJblL8N1QXEG+xlCXzXXmvKZjKJYn9IWKV7POMqIqlaYVtEMpU0l6lq46Eo3g2lvO2WtRPoB48m/SFXjwt3JiMqYp6eJkHWTGVQ3BZSky30Mq0/KVMTnZ2BN6aggV2UwtPa0UI+rGV1pylkm1RjB+IpZqpoxRG5ghGW/oZjr9xlj+xarZSiBBEaZe5BSxhK4jXHmeVElj/2Bkeb2KeQVzWKs7eumDnMZbemtlGEU4236UVUYyojb3UATK5Yx5lY30sOqRVlBn3YPdqKCgrexZ7SwcknQP13bfjWC6nD1XEcreHs8QgXOTg369bDmlxFQNU28mRpwYUMNXDcTQVXC2woYTOo2DrJxk1+ZQ9/9PIeNprjRs72ij4H2wbdZjdzdTDYizUXG9P3gnfZGDVy3gFMxD5ZBN9U7BWoJpoK2OpBvHvbYArWBUlFDgXu8QG2BVJanG2xLxC/UckNZZ6Om5VZmnd1NQfvtrRJzByPGXHr8ohqyn/eOr0MIZXAJZFvF1zGAUvC0AuzT+LpgXxJ7K/BuK/jA8LpiXhpPwZ3dcFN4XbIukUVgnVR01Y4WhVi19KLTC6Ca/vD4uevReM40PgHVY9GFMC2bHkAtG10Qy9K5rzHOLQkcGVwYwxJ6H+fspuAC2ZVSG5Rbjg0ulFk5Ta2FcUHTvcqtGrCo7aqZFo2EaK3oOXi0mpOO+xoinOB8cGgF2JTYrQC9EFoRJqV2Gp6Z3oisEItymxKBbniR+yIrxqDsBoCzUGQFpS+93fnYNiO4Z6FVwxc1WjXpotdCc0HoXHRMPucfY0qQTXJ6L+jqGCY0EzekcaOm+LY/g4PSCGCuirwgDtJ4dePy/uCvg2tJ8wNkhDzmObBsJDkhj7OagtL3rrwAhX84mnWiv8Yz+M/IXgyZHTFNc3jZ7dLYfSNo5uA2EpLzJT/c8b1liOY47CtHKOEfj+xcyRJ2vCqAx0MyRR2zE88uwr4hV9RxkoHGeIDv93Cf8aVotiT/uiTb0X+uKfFgnCw5Y473FWJxu7whx/wull0JkMwhx5MMJJ6UPeKYjyCZ43iw/BHHTwOxtAQAOPafwGEExem+vKd794bhxzckhNFvDgGbYbhCgoAbe46jcKsw0MbcH4Qv3hAH2vgOHIsbg4CNPScxuFcoWGPuhWFX8WnO/gt7hufPIVhSEstIOjN7ChF4WDhIY34RwcqGb4uHWfjnPZwmAQGN73PI7xkh4Yy5nvzuFhPOeKj4OkhQsqeJF9qz0DXAWB45sBFU7K6QXoKENTLOzPyC9PYIDGR8sfBOscikTwfzHp3MJlOPcujyB2TnYjiEMbeUfn0jOoRxP9GVeRgPYPyk6FqH3AaAUh5ZkOL4hpC/XLOim8/yXQ3yxXxWck9o4gb3h85/inFrhLfLQf3iIZIPNfmWLFQvniG4DyUPtYvHij7V0UXl4uxqua0vG3WLOUduNxjdELBn98vm8Jroy5z5jCSzJpY9m/CWnF43NYtvlHu8CclKxeJPxDabzNQrfkBsZ8pNteLMCKmdIDu1irmj1LaRn1rFraT2oAxVKh4oNcuHj7aRx9FNhof3pPaq5Djyzsi2RD3sDXmCSAejD/wqmeIM3y7JzS1b9YkfkfpAIchXdeI1Yu9ZqrHaxNOFdqGcVSbmgMyW974v2DmPb3A+lMhsbcl6rMrMXCCz9WSuKnFDmW0gdzWJc2S2suxVJO4s9YiT/uoRt5TZ1gJQjbitzMaJQC3iFVJfqhAElYiX6M3VCQ7FijMOokpYIfSTMFQLbYV+QQhlobUXtDJB9dBZ6OnOAFVEjtDznfyribpCz3e2ryoKLP9yJ4Uyu9x+rsmYUS2zS7yrjDSpjwuidbXxtdCmda46NghtGuPq4yOphx071LYKeZ+E7hXXamTk37XjTjzo+gqq0ThI7L2Nq9X7Z7Gexp1aq1ofnovVNO7cmfX67FyspXEnP/P74qxa1uho3Omrm6ZePpF73PkPzL41q5gbSOzu8PrOvGbek9uoXvF2Z1bKbQOvd8yajU3kdpHRx+W6yY4QfGfjfT4tV87dJLfBD1y+Kqudm0jwjjX5orx6+ol+ISM9viernxV/5+53wqw94f3OSCHJ/XII3Z/23S+tgPeHH5DovQgYoAWye5ovQkdldwpehNIDspuOLkSPkfDdCXaXo+7Pdj8G87pGemPRgnRI/Eua2/Pd78zMMvH3OhxtZhw/I/G7AytM78lvS6o4lQI4YuRQcbofwH5n//w6UqDeJwDtSBSpNyEcXSigSHkgHIqUqXq6x53xGUFoV56ZdHwZg41hYuU5jsF0b6AE6zEC0fEk0RqAwpIg0XKXwDiC6G9ghGsLwWgXolUZFzVxWAxjph3TgRyLsuFHIATsfQLS1gQRWw7laOMARGyyQUi61z5k/QiKRd1Dtq8Qi79e847ZDst/3Al+ROO7N6xn5HGtQWh62DdqiwiOWWyjtipAeLrXNGzvQjq40J5hu/ccIoPvOcbtUlBnFMF8VdZFswowGX6U4Yl+2KOLQHWiW+D2NUPl5/29Ijcb2NEGtYqc/ySw0wlzV2+038muI2AtFXWS2zCsewq3gsl+ZytEZnC/Xmi/011M0FpQYSPW/QRcwWC/80WfA3fcCXdOr2+ElFz+/U74CoFrnkPjFCy97I2tInRdo9T6RkgGku93yrYEz68HZdY3QrKQungC2DoKVCQTifM3g3g6yfboZfY76zCC2CeKHAvMNmPW/U47vogw9kKo4KzkLGMFzONOfFSo0Myk3O3A3xLMLlKowOxk3O/MtQlnj8QKy1C+/U69koCa6/BYQVnK1kcEtUV6kP1OvqsRVkOuV+wYMpuOqfY7ew8C26/7B+s6Y4maQXC7VMG6zFqaHigmvK0aravMZfm5E7SFfMJhdo/WRfZy/NwZ5hHk5vkgWscByNAj1YS5CxStwxCUb3dTQt2T4ToKQvGfO0kbgu3f28J1EIbCP3eWKwl40x8Yrm0ginaLQcg79ZCgX7UJRcEmnSPsncBBv2oZjGLF5sA/70y3oj/vTIcVcIpRHw3+nS1mnLHIzH1JAdV+MPhXk4WkRC5SQU1Sg3711QgJSnwfRWjhFPPuQ33e2b4oIi30WgZDblUd0kPzIbsvhzTRMMCm1yNddClc3iPqOO+ULrD2HSJ15EiEyr2YFFJVPFCeHqSSAh/gvPsZtZx32ptQPkd3xZx24NkYX1EbIsVczQUotivppivhSW1J2undDHDzGhqQfno+HZmHCkhDtYzG5fZzpKOOTUblxmrSUic2gjrv9KSoym8GJH0l6SozC40J9UlbHUnB4vETpK9OPorkZURWkcY6H4VjEbPupLWe9WKwriHpreZfIniyqPOkuSLmuaU3rRtpr4N7hf9/4yfSX+d2Sj6tqZdBKsx5j9Tu6EBa7IRLZLt6OUiRHZoqr62NSJddiHTLKsVJ+uzAWElXLBheRhrN4ZwmpcdakFarNS9bxDnMToMUW9148cTMKyfldvpu0WTecJz0mxEn1x2e+DzScQ6fTAsmZ2xtTz+n5juS5bGlM+m66meSZPl7Y2dnUnjLtmaIsSpxVEdSerkuvwiTmOedIMV38uKUcHfXqwFSflVL4zPDeJxhV3uyBB2/cnx4+sK8QJahqm47Y8PNg9c0JItRedyM2PAxMWqZQVakyrgZMeFg7y8PsS7VeuO70P4bxP3ZRaUGWZ6OmVv9oSk63llBVqkLh4Zt9IaW1Tt6tjfIYhWRY86YGCKH/WWGmUOWraaHxzw1yV2DMxQ2zHq51Tmyfl2o99bI25Jig2vP54ljDp9ykLWsdj3fkO9vvWPKtL8wndo7YeztOy8bcKh5OVncyhq2XNrd96ZpLrjy5/qYb/l8S7q2r1NJlj/bf7b/bP/Z/rP9Z/vP9p/tP9t/tv9s//3djwA=",Rp=s.memo(s.forwardRef((e,t)=>{const{children:n,disabled:o,style:r,picture:i,description:l,isDragging:d,view:c,onHide:u,onShow:f,onKeyDownCapture:p,onFocus:h,onBlur:m,loadingPanel:g,...x}=e,[y,v]=s.useState(!1),[b,C]=s.useState(null),[k,_]=s.useState(null),[I,M]=s.useState(null);s.useEffect(()=>{_(null),i.getDetails().then(T=>{v(!1),_(T.asUrl()),T.asSVGText?.()&&M(T.asSVGText())}).catch(T=>{console.warn(T),v(!0),_(i4),M(null)})},[i]);const F=so(t,()=>({isPictureEditor:()=>!0}),[]),j=s.useMemo(()=>{if(k||I)return a.jsx("img",{style:{flex:"1",width:"100%",height:"100%",border:y?"var(--sxl-app-color-grey, grey) solid 1px":void 0,backgroundColor:y?"var(--sxl-app-color-background, white)":void 0,boxShadow:y?"0px 0px 3px var(--sxl-app-color-error, red)":void 0,objectFit:y?"contain":void 0,opacity:b?1:0,filter:"var(--sxl-app-filter-dark-invert)"},draggable:!1,src:k,onLoad:()=>{C(!0)},onError:({currentTarget:T})=>{console.log("error"),T.onerror=null,_(i4),v(!0)},alt:l??`${i.getType()}`})},[b,i,k,I,d]);if(!i.isClosed())return a.jsxs("div",{className:"picture-editor",style:{position:"relative",display:"flex",flex:"1 1 100%",filter:d?"drop-shadow(1px 1px 1.5px var(--sxl-app-color-shadow, rgba(0, 0, 0, .25)))":void 0,...r,width:"100%",height:"100%"},tabIndex:0,...x,onKeyDownCapture:T=>{p?.(T)},ref:F,children:[b||y?void 0:g,j]})}));Rp.displayName="PictureEditor";const kC=s.memo(s.forwardRef((e,t)=>{const{children:n,disabled:o,chart:r,view:i,isDragging:l,onHide:d,onShow:c,...u}=e;s.useEffect(()=>{},[r]);const f=so(t,()=>({isChartEditor:()=>!0}),[]),[p,{height:h,width:m}]=L0();if(!r.isClosed())return a.jsx("div",{...u,ref:ki([f,p]),children:a.jsx("div",{className:"chart-editor",style:{width:"100%",height:"100%",backgroundColor:"var(--sxl-app-color-background, white)",backgroundImage:"var(--sxl-app-image-background)",alignItems:"center",justifyContent:"center",zoom:i.getZoom(),display:"flex",position:"relative",border:"var(--sxl-app-color-grey, grey) solid 1px",filter:o?"blur(1px)":void 0,boxShadow:l?"1px 1px 2px var(--sxl-app-color-shadow, rgba(0,0,0,.15))":void 0},children:a.jsx("div",{style:{textAlign:"center"},children:r.getDescription()})})})})),EC=e=>a.jsx("input",{...e}),_C=s.memo(s.forwardRef((e,t)=>{const{style:n={},className:o,value:r="",onSubmit:i,onChange:l,onCancel:d,createInput:c=EC,notifier:u,styleHover:f={},dragging:p,maxLength:h,disabled:m=!1,readOnly:g=!1,...x}=e,[y,v]=s.useState(!1),[b,C]=s.useState(!1),[k,_]=s.useState(r);s.useEffect(()=>{_(r)},[r]);const I=s.useRef(null),[M,F]=s.useState(null),j=s.useCallback(function(A){const L=A.message;M!==L&&(u?.showMessage?.(L,{type:jr.Error}),F(L))},[u,M]),T=s.useCallback(A=>{let L=!1;try{L=i?.(A)??!0}catch(P){j(P)}return L?(I.current=null,C(!1),_(A),L):(setTimeout(()=>{I.current?.focus()},0),L)},[i]),w=me(()=>{_(r),I.current=null,C(!1),d?.()},[d,r]),S=s.useMemo(()=>{if(!b)return null;const A={className:Ao("_editable-input_1bqx6_6"),autoFocus:!0,spellCheck:!1,name:"editable-label",autoComplete:"off",maxLength:h,type:"text",value:k,onFocus:L=>{I.current||(I.current=L.target,setTimeout(()=>{L.target?.select()},0))},onBlur:L=>{I.current&&T(k)},onChange:L=>{b&&_(L.target.value)},onMouseDown:L=>L.stopPropagation(),onKeyDown:L=>L.code==="Escape"?(L.preventDefault(),void w()):L.code==="Enter"?(L.preventDefault(),void T(L.target.value)):void(L.code!=="Tab"?L.stopPropagation():T(L.target.value))};return a.jsx(a.Fragment,{children:c(A)})},[b,k,T,w,c,m]),[D,E]=s.useState();s.useLayoutEffect(()=>{let A=Object.assign({},n);(p||y)&&(A=Object.assign(A,f)),E(A)},[p,y,f,n]),s.useEffect(()=>{S&&l?.(k)},[S,l,k]);const R=so(t,()=>({startEdit(){m||g||C(!0)},cancel(){w()}}),[]);return a.jsxs("div",{...x,ref:R,style:{flexDirection:"column",display:"flex",...D},className:Ao(o),children:[a.jsxs("div",{style:{position:"relative",boxSizing:"content-box",whiteSpace:"pre",userSelect:"none",display:"flex",justifyContent:"center"},onDoubleClick:()=>{m||g||C(!0)},onMouseEnter:()=>v(!0),onMouseLeave:()=>v(!1),children:[a.jsx("div",{className:"editable-label-container",style:{textAlign:"center",display:"flex",minHeight:"1em",marginTop:"2px",opacity:b?0:1},children:k}),S]}),a.jsx("div",{style:{whiteSpace:"pre",position:"relative",maxHeight:"0px",height:"0px",visibility:"hidden",marginLeft:"1px",marginRight:"1px",overflow:"hidden",...f},children:k})]})})),Ks=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0;function Ei(e){const t=Object.prototype.toString.call(e);return t==="[object Window]"||t==="[object global]"}function u2(e){return"nodeType"in e}function Ro(e){var t,n;return e?Ei(e)?e:u2(e)&&(t=(n=e.ownerDocument)==null?void 0:n.defaultView)!=null?t:window:window}function h2(e){const{Document:t}=Ro(e);return e instanceof t}function Xl(e){return!Ei(e)&&e instanceof Ro(e).HTMLElement}function Ip(e){return e instanceof Ro(e).SVGElement}function yi(e){return e?Ei(e)?e.document:u2(e)?h2(e)?e:Xl(e)||Ip(e)?e.ownerDocument:document:document:document}const pr=Ks?s.useLayoutEffect:s.useEffect;function Xs(e){const t=s.useRef(e);return pr(()=>{t.current=e}),s.useCallback(function(){for(var n=arguments.length,o=new Array(n),r=0;r<n;r++)o[r]=arguments[r];return t.current==null?void 0:t.current(...o)},[])}function fl(e,t){t===void 0&&(t=[e]);const n=s.useRef(e);return pr(()=>{n.current!==e&&(n.current=e)},t),n}function ll(e,t){const n=s.useRef();return s.useMemo(()=>{const o=e(n.current);return n.current=o,o},[...t])}function Ga(e){const t=Xs(e),n=s.useRef(null),o=s.useCallback(r=>{r!==n.current&&t?.(r,n.current),n.current=r},[]);return[n,o]}function _s(e){const t=s.useRef();return s.useEffect(()=>{t.current=e},[e]),t.current}let J1={};function Pl(e,t){return s.useMemo(()=>{if(t)return t;const n=J1[e]==null?0:J1[e]+1;return J1[e]=n,e+"-"+n},[e,t])}function Dp(e){return function(t){for(var n=arguments.length,o=new Array(n>1?n-1:0),r=1;r<n;r++)o[r-1]=arguments[r];return o.reduce((i,l)=>{const d=Object.entries(l);for(const[c,u]of d){const f=i[c];f!=null&&(i[c]=f+e*u)}return i},{...t})}}const ei=Dp(1),Al=Dp(-1);function Ys(e){if(!e)return!1;const{KeyboardEvent:t}=Ro(e.target);return t&&e instanceof t}function Ts(e){if(function(n){if(!n)return!1;const{TouchEvent:o}=Ro(n.target);return o&&n instanceof o}(e)){if(e.touches&&e.touches.length){const{clientX:n,clientY:o}=e.touches[0];return{x:n,y:o}}if(e.changedTouches&&e.changedTouches.length){const{clientX:n,clientY:o}=e.changedTouches[0];return{x:n,y:o}}}return"clientX"in(t=e)&&"clientY"in t?{x:e.clientX,y:e.clientY}:null;var t}const O0=Object.freeze({Translate:{toString(e){if(!e)return;const{x:t,y:n}=e;return"translate3d("+(t?Math.round(t):0)+"px, "+(n?Math.round(n):0)+"px, 0)"}},Scale:{toString(e){if(!e)return;const{scaleX:t,scaleY:n}=e;return"scaleX("+t+") scaleY("+n+")"}},Transform:{toString(e){if(e)return[O0.Translate.toString(e),O0.Scale.toString(e)].join(" ")}},Transition:{toString(e){let{property:t,duration:n,easing:o}=e;return t+" "+n+"ms "+o}}}),l4="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function TC(e){return e.matches(l4)?e:e.querySelector(l4)}const jC={display:"none"};function MC(e){let{id:t,value:n}=e;return s.createElement("div",{id:t,style:jC},n)}function RC(e){let{id:t,announcement:n,ariaLiveType:o="assertive"}=e;return s.createElement("div",{id:t,style:{position:"fixed",top:0,left:0,width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"},role:"status","aria-live":o,"aria-atomic":!0},n)}const Lp=s.createContext(null),IC={draggable:`
73
- To pick up a draggable item, press the space bar.
74
- While dragging, use the arrow keys to move the item.
75
- Press space again to drop the item in its new position, or press escape to cancel.
76
- `},DC={onDragStart(e){let{active:t}=e;return"Picked up draggable item "+t.id+"."},onDragOver(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was moved over droppable area "+n.id+".":"Draggable item "+t.id+" is no longer over a droppable area."},onDragEnd(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was dropped over droppable area "+n.id:"Draggable item "+t.id+" was dropped."},onDragCancel(e){let{active:t}=e;return"Dragging was cancelled. Draggable item "+t.id+" was dropped."}};function LC(e){let{announcements:t=DC,container:n,hiddenTextDescribedById:o,screenReaderInstructions:r=IC}=e;const{announce:i,announcement:l}=function(){const[p,h]=s.useState("");return{announce:s.useCallback(m=>{m!=null&&h(m)},[]),announcement:p}}(),d=Pl("DndLiveRegion"),[c,u]=s.useState(!1);if(s.useEffect(()=>{u(!0)},[]),function(p){const h=s.useContext(Lp);s.useEffect(()=>{if(!h)throw new Error("useDndMonitor must be used within a children of <DndContext>");return h(p)},[p,h])}(s.useMemo(()=>({onDragStart(p){let{active:h}=p;i(t.onDragStart({active:h}))},onDragMove(p){let{active:h,over:m}=p;t.onDragMove&&i(t.onDragMove({active:h,over:m}))},onDragOver(p){let{active:h,over:m}=p;i(t.onDragOver({active:h,over:m}))},onDragEnd(p){let{active:h,over:m}=p;i(t.onDragEnd({active:h,over:m}))},onDragCancel(p){let{active:h,over:m}=p;i(t.onDragCancel({active:h,over:m}))}}),[i,t])),!c)return null;const f=s.createElement(s.Fragment,null,s.createElement(MC,{id:o,value:r.draggable}),s.createElement(RC,{id:d,announcement:l}));return n?eo.createPortal(f,n):f}var lo;function js(){}function Q1(e,t){return s.useMemo(()=>({sensor:e,options:t??{}}),[e,t])}(function(e){e.DragStart="dragStart",e.DragMove="dragMove",e.DragEnd="dragEnd",e.DragCancel="dragCancel",e.DragOver="dragOver",e.RegisterDroppable="registerDroppable",e.SetDroppableDisabled="setDroppableDisabled",e.UnregisterDroppable="unregisterDroppable"})(lo||(lo={}));const fr=Object.freeze({x:0,y:0});function Op(e,t){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function OC(e,t){const n=Ts(e);return n?(n.x-t.left)/t.width*100+"% "+(n.y-t.top)/t.height*100+"%":"0 0"}function Pp(e,t){let{data:{value:n}}=e,{data:{value:o}}=t;return n-o}function PC(e,t){let{data:{value:n}}=e,{data:{value:o}}=t;return o-n}function a4(e){let{left:t,top:n,height:o,width:r}=e;return[{x:t,y:n},{x:t+r,y:n},{x:t,y:n+o},{x:t+r,y:n+o}]}function Ap(e,t){if(!e||e.length===0)return null;const[n]=e;return n[t]}function s4(e,t,n){return t===void 0&&(t=e.left),n===void 0&&(n=e.top),{x:t+.5*e.width,y:n+.5*e.height}}const AC=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:o}=e;const r=s4(t,t.left,t.top),i=[];for(const l of o){const{id:d}=l,c=n.get(d);if(c){const u=Op(s4(c),r);i.push({id:d,data:{droppableContainer:l,value:u}})}}return i.sort(Pp)};function FC(e,t){const n=Math.max(t.top,e.top),o=Math.max(t.left,e.left),r=Math.min(t.left+t.width,e.left+e.width),i=Math.min(t.top+t.height,e.top+e.height),l=r-o,d=i-n;if(o<r&&n<i){const c=t.width*t.height,u=e.width*e.height,f=l*d;return Number((f/(c+u-f)).toFixed(4))}return 0}const zC=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:o}=e;const r=[];for(const i of o){const{id:l}=i,d=n.get(l);if(d){const c=FC(d,t);c>0&&r.push({id:l,data:{droppableContainer:i,value:c}})}}return r.sort(PC)};function c4(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:fr}const BC=function(e){return function(t){for(var n=arguments.length,o=new Array(n>1?n-1:0),r=1;r<n;r++)o[r-1]=arguments[r];return o.reduce((i,l)=>({...i,top:i.top+e*l.y,bottom:i.bottom+e*l.y,left:i.left+e*l.x,right:i.right+e*l.x}),{...t})}}(1);function Fp(e){if(e.startsWith("matrix3d(")){const t=e.slice(9,-1).split(/, /);return{x:+t[12],y:+t[13],scaleX:+t[0],scaleY:+t[5]}}if(e.startsWith("matrix(")){const t=e.slice(7,-1).split(/, /);return{x:+t[4],y:+t[5],scaleX:+t[0],scaleY:+t[3]}}return null}const NC={ignoreTransform:!1};function _i(e,t){t===void 0&&(t=NC);let n=e.getBoundingClientRect();if(t.ignoreTransform){const{transform:u,transformOrigin:f}=Ro(e).getComputedStyle(e);u&&(n=function(p,h,m){const g=Fp(h);if(!g)return p;const{scaleX:x,scaleY:y,x:v,y:b}=g,C=p.left-v-(1-x)*parseFloat(m),k=p.top-b-(1-y)*parseFloat(m.slice(m.indexOf(" ")+1)),_=x?p.width/x:p.width,I=y?p.height/y:p.height;return{width:_,height:I,top:k,right:C+_,bottom:k+I,left:C}}(n,u,f))}const{top:o,left:r,width:i,height:l,bottom:d,right:c}=n;return{top:o,left:r,width:i,height:l,bottom:d,right:c}}function d4(e){return _i(e,{ignoreTransform:!0})}function Js(e,t){const n=[];return e?function o(r){if(t!=null&&n.length>=t||!r)return n;if(h2(r)&&r.scrollingElement!=null&&!n.includes(r.scrollingElement))return n.push(r.scrollingElement),n;if(!Xl(r)||Ip(r)||n.includes(r))return n;const i=Ro(e).getComputedStyle(r);return r!==e&&function(c,u){u===void 0&&(u=Ro(c).getComputedStyle(c));const f=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(p=>{const h=u[p];return typeof h=="string"&&f.test(h)})}(r,i)&&n.push(r),l=r,(d=i)===void 0&&(d=Ro(l).getComputedStyle(l)),d.position==="fixed"?n:o(r.parentNode);var l,d}(e):n}function zp(e){const[t]=Js(e,1);return t??null}function ec(e){return Ks&&e?Ei(e)?e:u2(e)?h2(e)||e===yi(e).scrollingElement?window:Xl(e)?e:null:null:null}function Bp(e){return Ei(e)?e.scrollX:e.scrollLeft}function Np(e){return Ei(e)?e.scrollY:e.scrollTop}function hd(e){return{x:Bp(e),y:Np(e)}}var co;function Vp(e){return!(!Ks||!e)&&e===document.scrollingElement}function Hp(e){const t={x:0,y:0},n=Vp(e)?{height:window.innerHeight,width:window.innerWidth}:{height:e.clientHeight,width:e.clientWidth},o={x:e.scrollWidth-n.width,y:e.scrollHeight-n.height};return{isTop:e.scrollTop<=t.y,isLeft:e.scrollLeft<=t.x,isBottom:e.scrollTop>=o.y,isRight:e.scrollLeft>=o.x,maxScroll:o,minScroll:t}}(function(e){e[e.Forward=1]="Forward",e[e.Backward=-1]="Backward"})(co||(co={}));const VC={x:.2,y:.2};function HC(e,t,n,o,r){let{top:i,left:l,right:d,bottom:c}=n;o===void 0&&(o=10),r===void 0&&(r=VC);const{isTop:u,isBottom:f,isLeft:p,isRight:h}=Hp(e),m={x:0,y:0},g={x:0,y:0},x=t.height*r.y,y=t.width*r.x;return!u&&i<=t.top+x?(m.y=co.Backward,g.y=o*Math.abs((t.top+x-i)/x)):!f&&c>=t.bottom-x&&(m.y=co.Forward,g.y=o*Math.abs((t.bottom-x-c)/x)),!h&&d>=t.right-y?(m.x=co.Forward,g.x=o*Math.abs((t.right-y-d)/y)):!p&&l<=t.left+y&&(m.x=co.Backward,g.x=o*Math.abs((t.left+y-l)/y)),{direction:m,speed:g}}function $C(e){if(e===document.scrollingElement){const{innerWidth:i,innerHeight:l}=window;return{top:0,left:0,right:i,bottom:l,width:i,height:l}}const{top:t,left:n,right:o,bottom:r}=e.getBoundingClientRect();return{top:t,left:n,right:o,bottom:r,width:e.clientWidth,height:e.clientHeight}}function $p(e){return e.reduce((t,n)=>ei(t,hd(n)),fr)}function Wp(e,t){if(t===void 0&&(t=_i),!e)return;const{top:n,left:o,bottom:r,right:i}=t(e);zp(e)&&(r<=0||i<=0||n>=window.innerHeight||o>=window.innerWidth)&&e.scrollIntoView({block:"center",inline:"center"})}const WC=[["x",["left","right"],function(e){return e.reduce((t,n)=>t+Bp(n),0)}],["y",["top","bottom"],function(e){return e.reduce((t,n)=>t+Np(n),0)}]];class pd{constructor(t,n){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;const o=Js(n),r=$p(o);this.rect={...t},this.width=t.width,this.height=t.height;for(const[i,l,d]of WC)for(const c of l)Object.defineProperty(this,c,{get:()=>{const u=d(o),f=r[i]-u;return this.rect[c]+f},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}class ml{constructor(t){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach(n=>{var o;return(o=this.target)==null?void 0:o.removeEventListener(...n)})},this.target=t}add(t,n,o){var r;(r=this.target)==null||r.addEventListener(t,n,o),this.listeners.push([t,n,o])}}function tc(e,t){const n=Math.abs(e.x),o=Math.abs(e.y);return typeof t=="number"?Math.sqrt(n**2+o**2)>t:"x"in t&&"y"in t?n>t.x&&o>t.y:"x"in t?n>t.x:"y"in t&&o>t.y}var er,hn;function u4(e){e.preventDefault()}function UC(e){e.stopPropagation()}(function(e){e.Click="click",e.DragStart="dragstart",e.Keydown="keydown",e.ContextMenu="contextmenu",e.Resize="resize",e.SelectionChange="selectionchange",e.VisibilityChange="visibilitychange"})(er||(er={})),function(e){e.Space="Space",e.Down="ArrowDown",e.Right="ArrowRight",e.Left="ArrowLeft",e.Up="ArrowUp",e.Esc="Escape",e.Enter="Enter",e.Tab="Tab"}(hn||(hn={}));const Up={start:[hn.Space,hn.Enter],cancel:[hn.Esc],end:[hn.Space,hn.Enter,hn.Tab]},qC=(e,t)=>{let{currentCoordinates:n}=t;switch(e.code){case hn.Right:return{...n,x:n.x+25};case hn.Left:return{...n,x:n.x-25};case hn.Down:return{...n,y:n.y+25};case hn.Up:return{...n,y:n.y-25}}};class p2{constructor(t){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=t;const{event:{target:n}}=t;this.props=t,this.listeners=new ml(yi(n)),this.windowListeners=new ml(Ro(n)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(er.Resize,this.handleCancel),this.windowListeners.add(er.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(er.Keydown,this.handleKeyDown))}handleStart(){const{activeNode:t,onStart:n}=this.props,o=t.node.current;o&&Wp(o),n(fr)}handleKeyDown(t){if(Ys(t)){const{active:n,context:o,options:r}=this.props,{keyboardCodes:i=Up,coordinateGetter:l=qC,scrollBehavior:d="smooth"}=r,{code:c}=t;if(i.end.includes(c))return void this.handleEnd(t);if(i.cancel.includes(c))return void this.handleCancel(t);const{collisionRect:u}=o.current,f=u?{x:u.left,y:u.top}:fr;this.referenceCoordinates||(this.referenceCoordinates=f);const p=l(t,{active:n,context:o.current,currentCoordinates:f});if(p){const h=Al(p,f),m={x:0,y:0},{scrollableAncestors:g}=o.current;for(const x of g){const y=t.code,{isTop:v,isRight:b,isLeft:C,isBottom:k,maxScroll:_,minScroll:I}=Hp(x),M=$C(x),F={x:Math.min(y===hn.Right?M.right-M.width/2:M.right,Math.max(y===hn.Right?M.left:M.left+M.width/2,p.x)),y:Math.min(y===hn.Down?M.bottom-M.height/2:M.bottom,Math.max(y===hn.Down?M.top:M.top+M.height/2,p.y))},j=y===hn.Right&&!b||y===hn.Left&&!C,T=y===hn.Down&&!k||y===hn.Up&&!v;if(j&&F.x!==p.x){const w=x.scrollLeft+h.x,S=y===hn.Right&&w<=_.x||y===hn.Left&&w>=I.x;if(S&&!h.y)return void x.scrollTo({left:w,behavior:d});m.x=S?x.scrollLeft-w:y===hn.Right?x.scrollLeft-_.x:x.scrollLeft-I.x,m.x&&x.scrollBy({left:-m.x,behavior:d});break}if(T&&F.y!==p.y){const w=x.scrollTop+h.y,S=y===hn.Down&&w<=_.y||y===hn.Up&&w>=I.y;if(S&&!h.x)return void x.scrollTo({top:w,behavior:d});m.y=S?x.scrollTop-w:y===hn.Down?x.scrollTop-_.y:x.scrollTop-I.y,m.y&&x.scrollBy({top:-m.y,behavior:d});break}}this.handleMove(t,ei(Al(p,this.referenceCoordinates),m))}}}handleMove(t,n){const{onMove:o}=this.props;t.preventDefault(),o(n)}handleEnd(t){const{onEnd:n}=this.props;t.preventDefault(),this.detach(),n()}handleCancel(t){const{onCancel:n}=this.props;t.preventDefault(),this.detach(),n()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}}function h4(e){return!(!e||!("distance"in e))}function p4(e){return!(!e||!("delay"in e))}p2.activators=[{eventName:"onKeyDown",handler:(e,t,n)=>{let{keyboardCodes:o=Up,onActivation:r}=t,{active:i}=n;const{code:l}=e.nativeEvent;if(o.start.includes(l)){const d=i.activatorNode.current;return!(d&&e.target!==d||(e.preventDefault(),r?.({event:e.nativeEvent}),0))}return!1}}];class f2{constructor(t,n,o){var r;o===void 0&&(o=function(d){const{EventTarget:c}=Ro(d);return d instanceof c?d:yi(d)}(t.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=t,this.events=n;const{event:i}=t,{target:l}=i;this.props=t,this.events=n,this.document=yi(l),this.documentListeners=new ml(this.document),this.listeners=new ml(o),this.windowListeners=new ml(Ro(l)),this.initialCoordinates=(r=Ts(i))!=null?r:fr,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){const{events:t,props:{options:{activationConstraint:n,bypassActivationConstraint:o}}}=this;if(this.listeners.add(t.move.name,this.handleMove,{passive:!1}),this.listeners.add(t.end.name,this.handleEnd),t.cancel&&this.listeners.add(t.cancel.name,this.handleCancel),this.windowListeners.add(er.Resize,this.handleCancel),this.windowListeners.add(er.DragStart,u4),this.windowListeners.add(er.VisibilityChange,this.handleCancel),this.windowListeners.add(er.ContextMenu,u4),this.documentListeners.add(er.Keydown,this.handleKeydown),n){if(o!=null&&o({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(p4(n))return this.timeoutId=setTimeout(this.handleStart,n.delay),void this.handlePending(n);if(h4(n))return void this.handlePending(n)}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),this.timeoutId!==null&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handlePending(t,n){const{active:o,onPending:r}=this.props;r(o,t,this.initialCoordinates,n)}handleStart(){const{initialCoordinates:t}=this,{onStart:n}=this.props;t&&(this.activated=!0,this.documentListeners.add(er.Click,UC,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(er.SelectionChange,this.removeTextSelection),n(t))}handleMove(t){var n;const{activated:o,initialCoordinates:r,props:i}=this,{onMove:l,options:{activationConstraint:d}}=i;if(!r)return;const c=(n=Ts(t))!=null?n:fr,u=Al(r,c);if(!o&&d){if(h4(d)){if(d.tolerance!=null&&tc(u,d.tolerance))return this.handleCancel();if(tc(u,d.distance))return this.handleStart()}return p4(d)&&tc(u,d.tolerance)?this.handleCancel():void this.handlePending(d,u)}t.cancelable&&t.preventDefault(),l(c)}handleEnd(){const{onAbort:t,onEnd:n}=this.props;this.detach(),this.activated||t(this.props.active),n()}handleCancel(){const{onAbort:t,onCancel:n}=this.props;this.detach(),this.activated||t(this.props.active),n()}handleKeydown(t){t.code===hn.Esc&&this.handleCancel()}removeTextSelection(){var t;(t=this.document.getSelection())==null||t.removeAllRanges()}}const ZC={cancel:{name:"pointercancel"},move:{name:"pointermove"},end:{name:"pointerup"}};class qp extends f2{constructor(t){const{event:n}=t,o=yi(n.target);super(t,ZC,o)}}qp.activators=[{eventName:"onPointerDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:o}=t;return!(!n.isPrimary||n.button!==0||(o?.({event:n}),0))}}];const GC={move:{name:"mousemove"},end:{name:"mouseup"}};var fd;(function(e){e[e.RightClick=2]="RightClick"})(fd||(fd={}));class Zp extends f2{constructor(t){super(t,GC,yi(t.event.target))}}Zp.activators=[{eventName:"onMouseDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:o}=t;return n.button!==fd.RightClick&&(o?.({event:n}),!0)}}];const nc={cancel:{name:"touchcancel"},move:{name:"touchmove"},end:{name:"touchend"}};class Gp extends f2{constructor(t){super(t,nc)}static setup(){return window.addEventListener(nc.move.name,t,{capture:!1,passive:!1}),function(){window.removeEventListener(nc.move.name,t)};function t(){}}}var gl,Ms;Gp.activators=[{eventName:"onTouchStart",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:o}=t;const{touches:r}=n;return!(r.length>1||(o?.({event:n}),0))}}],function(e){e[e.Pointer=0]="Pointer",e[e.DraggableRect=1]="DraggableRect"}(gl||(gl={})),function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="ReversedTreeOrder"}(Ms||(Ms={}));const KC={x:{[co.Backward]:!1,[co.Forward]:!1},y:{[co.Backward]:!1,[co.Forward]:!1}};var Fl,md;(function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging"})(Fl||(Fl={})),(md||(md={})).Optimized="optimized";const f4=new Map;function gd(e,t){return ll(n=>e?n||(typeof t=="function"?t(e):e):null,[t,e])}function Rs(e){let{callback:t,disabled:n}=e;const o=Xs(t),r=s.useMemo(()=>{if(n||typeof window>"u"||window.ResizeObserver===void 0)return;const{ResizeObserver:i}=window;return new i(o)},[n]);return s.useEffect(()=>()=>r?.disconnect(),[r]),r}function XC(e){return new pd(_i(e),e)}function m4(e,t,n){t===void 0&&(t=XC);const[o,r]=s.useState(null);function i(){r(c=>{if(!e)return null;var u;if(e.isConnected===!1)return(u=c??n)!=null?u:null;const f=t(e);return JSON.stringify(c)===JSON.stringify(f)?c:f})}const l=function(c){let{callback:u,disabled:f}=c;const p=Xs(u),h=s.useMemo(()=>{if(f||typeof window>"u"||window.MutationObserver===void 0)return;const{MutationObserver:m}=window;return new m(p)},[p,f]);return s.useEffect(()=>()=>h?.disconnect(),[h]),h}({callback(c){if(e)for(const u of c){const{type:f,target:p}=u;if(f==="childList"&&p instanceof HTMLElement&&p.contains(e)){i();break}}}}),d=Rs({callback:i});return pr(()=>{i(),e?(d?.observe(e),l?.observe(document.body,{childList:!0,subtree:!0})):(d?.disconnect(),l?.disconnect())},[e]),o}const g4=[];function x4(e,t){t===void 0&&(t=[]);const n=s.useRef(null);return s.useEffect(()=>{n.current=null},t),s.useEffect(()=>{const o=e!==fr;o&&!n.current&&(n.current=e),!o&&n.current&&(n.current=null)},[e]),n.current?Al(e,n.current):fr}function y4(e){return s.useMemo(()=>e?function(t){const n=t.innerWidth,o=t.innerHeight;return{top:0,left:0,right:n,bottom:o,width:n,height:o}}(e):null,[e])}const b4=[];function Kp(e){if(!e)return null;if(e.children.length>1)return e;const t=e.children[0];return Xl(t)?t:e}const YC=[{sensor:qp,options:{}},{sensor:p2,options:{}}],JC={current:{}},Ka={draggable:{measure:d4},droppable:{measure:d4,strategy:Fl.WhileDragging,frequency:md.Optimized},dragOverlay:{measure:_i}};class xl extends Map{get(t){var n;return t!=null&&(n=super.get(t))!=null?n:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter(t=>{let{disabled:n}=t;return!n})}getNodeFor(t){var n,o;return(n=(o=this.get(t))==null?void 0:o.node.current)!=null?n:void 0}}const QC={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new xl,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:js},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:Ka,measureDroppableContainers:js,windowRect:null,measuringScheduled:!1},Xp={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:js,draggableNodes:new Map,over:null,measureDroppableContainers:js},zl=s.createContext(Xp),Yp=s.createContext(QC);function ek(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new xl}}}function tk(e,t){switch(t.type){case lo.DragStart:return{...e,draggable:{...e.draggable,initialCoordinates:t.initialCoordinates,active:t.active}};case lo.DragMove:return e.draggable.active==null?e:{...e,draggable:{...e.draggable,translate:{x:t.coordinates.x-e.draggable.initialCoordinates.x,y:t.coordinates.y-e.draggable.initialCoordinates.y}}};case lo.DragEnd:case lo.DragCancel:return{...e,draggable:{...e.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case lo.RegisterDroppable:{const{element:n}=t,{id:o}=n,r=new xl(e.droppable.containers);return r.set(o,n),{...e,droppable:{...e.droppable,containers:r}}}case lo.SetDroppableDisabled:{const{id:n,key:o,disabled:r}=t,i=e.droppable.containers.get(n);if(!i||o!==i.key)return e;const l=new xl(e.droppable.containers);return l.set(n,{...i,disabled:r}),{...e,droppable:{...e.droppable,containers:l}}}case lo.UnregisterDroppable:{const{id:n,key:o}=t,r=e.droppable.containers.get(n);if(!r||o!==r.key)return e;const i=new xl(e.droppable.containers);return i.delete(n),{...e,droppable:{...e.droppable,containers:i}}}default:return e}}function nk(e){let{disabled:t}=e;const{active:n,activatorEvent:o,draggableNodes:r}=s.useContext(zl),i=_s(o),l=_s(n?.id);return s.useEffect(()=>{if(!t&&!o&&i&&l!=null){if(!Ys(i)||document.activeElement===i.target)return;const d=r.get(l);if(!d)return;const{activatorNode:c,node:u}=d;if(!c.current&&!u.current)return;requestAnimationFrame(()=>{for(const f of[c.current,u.current]){if(!f)continue;const p=TC(f);if(p){p.focus();break}}})}},[o,t,r,l,i]),null}function Jp(e,t){let{transform:n,...o}=t;return e!=null&&e.length?e.reduce((r,i)=>i({transform:r,...o}),n):n}const Qs=s.createContext({...fr,scaleX:1,scaleY:1});var e0;(function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized"})(e0||(e0={}));const ok=s.memo(function(e){var t,n,o,r;let{id:i,accessibility:l,autoScroll:d=!0,children:c,sensors:u=YC,collisionDetection:f=zC,measuring:p,modifiers:h,...m}=e;const g=s.useReducer(tk,void 0,ek),[x,y]=g,[v,b]=function(){const[Q]=s.useState(()=>new Set),pe=s.useCallback(ge=>(Q.add(ge),()=>Q.delete(ge)),[Q]);return[s.useCallback(ge=>{let{type:Ee,event:Be}=ge;Q.forEach(Oe=>{var Ie;return(Ie=Oe[Ee])==null?void 0:Ie.call(Oe,Be)})},[Q]),pe]}(),[C,k]=s.useState(e0.Uninitialized),_=C===e0.Initialized,{draggable:{active:I,nodes:M,translate:F},droppable:{containers:j}}=x,T=I!=null?M.get(I):null,w=s.useRef({initial:null,translated:null}),S=s.useMemo(()=>{var Q;return I!=null?{id:I,data:(Q=T?.data)!=null?Q:JC,rect:w}:null},[I,T]),D=s.useRef(null),[E,R]=s.useState(null),[A,L]=s.useState(null),P=fl(m,Object.values(m)),z=Pl("DndDescribedBy",i),U=s.useMemo(()=>j.getEnabled(),[j]),O=s.useMemo(()=>({draggable:{...Ka.draggable,...q?.draggable},droppable:{...Ka.droppable,...q?.droppable},dragOverlay:{...Ka.dragOverlay,...q?.dragOverlay}}),[(q=p)==null?void 0:q.draggable,q?.droppable,q?.dragOverlay]);var q;const{droppableRects:X,measureDroppableContainers:re,measuringScheduled:$}=function(Q,pe){let{dragging:ge,dependencies:Ee,config:Be}=pe;const[Oe,Ie]=s.useState(null),{frequency:Ze,measure:Ne,strategy:qe}=Be,lt=s.useRef(Q),wt=function(){switch(qe){case Fl.Always:return!1;case Fl.BeforeDragging:return ge;default:return!ge}}(),Xe=fl(wt),St=s.useCallback(function(Ot){Ot===void 0&&(Ot=[]),Xe.current||Ie(sn=>sn===null?Ot:sn.concat(Ot.filter(yn=>!sn.includes(yn))))},[Xe]),Ct=s.useRef(null),it=ll(Ot=>{if(wt&&!ge)return f4;if(!Ot||Ot===f4||lt.current!==Q||Oe!=null){const sn=new Map;for(let yn of Q){if(!yn)continue;if(Oe&&Oe.length>0&&!Oe.includes(yn.id)&&yn.rect.current){sn.set(yn.id,yn.rect.current);continue}const In=yn.node.current,Ln=In?new pd(Ne(In),In):null;yn.rect.current=Ln,Ln&&sn.set(yn.id,Ln)}return sn}return Ot},[Q,Oe,ge,wt,Ne]);return s.useEffect(()=>{lt.current=Q},[Q]),s.useEffect(()=>{wt||St()},[ge,wt]),s.useEffect(()=>{Oe&&Oe.length>0&&Ie(null)},[JSON.stringify(Oe)]),s.useEffect(()=>{wt||typeof Ze!="number"||Ct.current!==null||(Ct.current=setTimeout(()=>{St(),Ct.current=null},Ze))},[Ze,wt,St,...Ee]),{droppableRects:it,measureDroppableContainers:St,measuringScheduled:Oe!=null}}(U,{dragging:_,dependencies:[F.x,F.y],config:O.droppable}),W=function(Q,pe){const ge=pe!=null?Q.get(pe):void 0,Ee=ge?ge.node.current:null;return ll(Be=>{var Oe;return pe==null?null:(Oe=Ee??Be)!=null?Oe:null},[Ee,pe])}(M,I),B=s.useMemo(()=>A?Ts(A):null,[A]),Z=function(){const Q=E?.autoScrollEnabled===!1,pe=typeof d=="object"?d.enabled===!1:d===!1,ge=_&&!Q&&!pe;return typeof d=="object"?{...d,enabled:ge}:{enabled:ge}}(),G=function(Q,pe){return gd(Q,pe)}(W,O.draggable.measure);(function(Q){let{activeNode:pe,measure:ge,initialRect:Ee,config:Be=!0}=Q;const Oe=s.useRef(!1),{x:Ie,y:Ze}=typeof Be=="boolean"?{x:Be,y:Be}:Be;pr(()=>{if(!Ie&&!Ze||!pe)return void(Oe.current=!1);if(Oe.current||!Ee)return;const Ne=pe?.node.current;if(!Ne||Ne.isConnected===!1)return;const qe=c4(ge(Ne),Ee);if(Ie||(qe.x=0),Ze||(qe.y=0),Oe.current=!0,Math.abs(qe.x)>0||Math.abs(qe.y)>0){const lt=zp(Ne);lt&&lt.scrollBy({top:qe.y,left:qe.x})}},[pe,Ie,Ze,Ee,ge])})({activeNode:I!=null?M.get(I):null,config:Z.layoutShiftCompensation,initialRect:G,measure:O.draggable.measure});const ie=m4(W,O.draggable.measure,G),ee=m4(W?W.parentElement:null),le=s.useRef({activatorEvent:null,active:null,activeNode:W,collisionRect:null,collisions:null,droppableRects:X,draggableNodes:M,draggingNode:null,draggingNodeRect:null,droppableContainers:j,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),ue=j.getNodeFor((t=le.current.over)==null?void 0:t.id),de=function(Q){let{measure:pe}=Q;const[ge,Ee]=s.useState(null),Be=Rs({callback:s.useCallback(Ne=>{for(const{target:qe}of Ne)if(Xl(qe)){Ee(lt=>{const wt=pe(qe);return lt?{...lt,width:wt.width,height:wt.height}:wt});break}},[pe])}),Oe=s.useCallback(Ne=>{const qe=Kp(Ne);Be?.disconnect(),qe&&Be?.observe(qe),Ee(qe?pe(qe):null)},[pe,Be]),[Ie,Ze]=Ga(Oe);return s.useMemo(()=>({nodeRef:Ie,rect:ge,setRef:Ze}),[ge,Ie,Ze])}({measure:O.dragOverlay.measure}),oe=(n=de.nodeRef.current)!=null?n:W,fe=_?(o=de.rect)!=null?o:ie:null,Te=!(!de.nodeRef.current||!de.rect),Le=c4(ce=Te?null:ie,gd(ce));var ce;const he=y4(oe?Ro(oe):null),we=function(Q){const pe=s.useRef(Q),ge=ll(Ee=>Q?Ee&&Ee!==g4&&Q&&pe.current&&Q.parentNode===pe.current.parentNode?Ee:Js(Q):g4,[Q]);return s.useEffect(()=>{pe.current=Q},[Q]),ge}(_?ue??W:null),Y=function(Q,pe){pe===void 0&&(pe=_i);const[ge]=Q,Ee=y4(ge?Ro(ge):null),[Be,Oe]=s.useState(b4);function Ie(){Oe(()=>Q.length?Q.map(Ne=>Vp(Ne)?Ee:new pd(pe(Ne),Ne)):b4)}const Ze=Rs({callback:Ie});return pr(()=>{Ze?.disconnect(),Ie(),Q.forEach(Ne=>Ze?.observe(Ne))},[Q]),Be}(we),ze=Jp(h,{transform:{x:F.x-Le.x,y:F.y-Le.y,scaleX:1,scaleY:1},activatorEvent:A,active:S,activeNodeRect:ie,containerNodeRect:ee,draggingNodeRect:fe,over:le.current.over,overlayNodeRect:de.rect,scrollableAncestors:we,scrollableAncestorRects:Y,windowRect:he}),ht=B?ei(B,F):null,ut=function(Q){const[pe,ge]=s.useState(null),Ee=s.useRef(Q),Be=s.useCallback(Oe=>{const Ie=ec(Oe.target);Ie&&ge(Ze=>Ze?(Ze.set(Ie,hd(Ie)),new Map(Ze)):null)},[]);return s.useEffect(()=>{const Oe=Ee.current;if(Q!==Oe){Ie(Oe);const Ze=Q.map(Ne=>{const qe=ec(Ne);return qe?(qe.addEventListener("scroll",Be,{passive:!0}),[qe,hd(qe)]):null}).filter(Ne=>Ne!=null);ge(Ze.length?new Map(Ze):null),Ee.current=Q}return()=>{Ie(Q),Ie(Oe)};function Ie(Ze){Ze.forEach(Ne=>{ec(Ne)?.removeEventListener("scroll",Be)})}},[Be,Q]),s.useMemo(()=>Q.length?pe?Array.from(pe.values()).reduce((Oe,Ie)=>ei(Oe,Ie),fr):$p(Q):fr,[Q,pe])}(we),ke=x4(ut),ot=x4(ut,[ie]),dt=ei(ze,ke),Fe=fe?BC(fe,ze):null,Je=S&&Fe?f({active:S,collisionRect:Fe,droppableRects:X,droppableContainers:U,pointerCoordinates:ht}):null,Ge=Ap(Je,"id"),[se,We]=s.useState(null),be=function(Q,pe,ge){return{...Q,scaleX:pe&&ge?pe.width/ge.width:1,scaleY:pe&&ge?pe.height/ge.height:1}}(Te?ze:ei(ze,ot),(r=se?.rect)!=null?r:null,ie),Se=s.useRef(null),H=s.useCallback((Q,pe)=>{let{sensor:ge,options:Ee}=pe;if(D.current==null)return;const Be=M.get(D.current);if(!Be)return;const Oe=Q.nativeEvent,Ie=new ge({active:D.current,activeNode:Be,event:Oe,options:Ee,context:le,onAbort(Ne){if(!M.get(Ne))return;const{onDragAbort:qe}=P.current,lt={id:Ne};qe?.(lt),v({type:"onDragAbort",event:lt})},onPending(Ne,qe,lt,wt){if(!M.get(Ne))return;const{onDragPending:Xe}=P.current,St={id:Ne,constraint:qe,initialCoordinates:lt,offset:wt};Xe?.(St),v({type:"onDragPending",event:St})},onStart(Ne){const qe=D.current;if(qe==null)return;const lt=M.get(qe);if(!lt)return;const{onDragStart:wt}=P.current,Xe={activatorEvent:Oe,active:{id:qe,data:lt.data,rect:w}};eo.unstable_batchedUpdates(()=>{wt?.(Xe),k(e0.Initializing),y({type:lo.DragStart,initialCoordinates:Ne,active:qe}),v({type:"onDragStart",event:Xe}),R(Se.current),L(Oe)})},onMove(Ne){y({type:lo.DragMove,coordinates:Ne})},onEnd:Ze(lo.DragEnd),onCancel:Ze(lo.DragCancel)});function Ze(Ne){return async function(){const{active:qe,collisions:lt,over:wt,scrollAdjustedTranslate:Xe}=le.current;let St=null;if(qe&&Xe){const{cancelDrop:Ct}=P.current;St={activatorEvent:Oe,active:qe,collisions:lt,delta:Xe,over:wt},Ne===lo.DragEnd&&typeof Ct=="function"&&await Promise.resolve(Ct(St))&&(Ne=lo.DragCancel)}D.current=null,eo.unstable_batchedUpdates(()=>{y({type:Ne}),k(e0.Uninitialized),We(null),R(null),L(null),Se.current=null;const Ct=Ne===lo.DragEnd?"onDragEnd":"onDragCancel";if(St){const it=P.current[Ct];it?.(St),v({type:Ct,event:St})}})}}Se.current=Ie},[M]),te=s.useCallback((Q,pe)=>(ge,Ee)=>{const Be=ge.nativeEvent,Oe=M.get(Ee);if(D.current!==null||!Oe||Be.dndKit||Be.defaultPrevented)return;const Ie={active:Oe};Q(ge,pe.options,Ie)===!0&&(Be.dndKit={capturedBy:pe.sensor},D.current=Ee,H(ge,pe))},[M,H]),ne=function(Q,pe){return s.useMemo(()=>Q.reduce((ge,Ee)=>{const{sensor:Be}=Ee;return[...ge,...Be.activators.map(Oe=>({eventName:Oe.eventName,handler:pe(Oe.handler,Ee)}))]},[]),[Q,pe])}(u,te);(function(Q){s.useEffect(()=>{if(!Ks)return;const pe=Q.map(ge=>{let{sensor:Ee}=ge;return Ee.setup==null?void 0:Ee.setup()});return()=>{for(const ge of pe)ge?.()}},Q.map(pe=>{let{sensor:ge}=pe;return ge}))})(u),pr(()=>{ie&&C===e0.Initializing&&k(e0.Initialized)},[ie,C]),s.useEffect(()=>{const{onDragMove:Q}=P.current,{active:pe,activatorEvent:ge,collisions:Ee,over:Be}=le.current;if(!pe||!ge)return;const Oe={active:pe,activatorEvent:ge,collisions:Ee,delta:{x:dt.x,y:dt.y},over:Be};eo.unstable_batchedUpdates(()=>{Q?.(Oe),v({type:"onDragMove",event:Oe})})},[dt.x,dt.y]),s.useEffect(()=>{const{active:Q,activatorEvent:pe,collisions:ge,droppableContainers:Ee,scrollAdjustedTranslate:Be}=le.current;if(!Q||D.current==null||!pe||!Be)return;const{onDragOver:Oe}=P.current,Ie=Ee.get(Ge),Ze=Ie&&Ie.rect.current?{id:Ie.id,rect:Ie.rect.current,data:Ie.data,disabled:Ie.disabled}:null,Ne={active:Q,activatorEvent:pe,collisions:ge,delta:{x:Be.x,y:Be.y},over:Ze};eo.unstable_batchedUpdates(()=>{We(Ze),Oe?.(Ne),v({type:"onDragOver",event:Ne})})},[Ge]),pr(()=>{le.current={activatorEvent:A,active:S,activeNode:W,collisionRect:Fe,collisions:Je,droppableRects:X,draggableNodes:M,draggingNode:oe,draggingNodeRect:fe,droppableContainers:j,over:se,scrollableAncestors:we,scrollAdjustedTranslate:dt},w.current={initial:fe,translated:Fe}},[S,W,Je,Fe,M,oe,fe,X,j,se,we,dt]),function(Q){let{acceleration:pe,activator:ge=gl.Pointer,canScroll:Ee,draggingRect:Be,enabled:Oe,interval:Ie=5,order:Ze=Ms.TreeOrder,pointerCoordinates:Ne,scrollableAncestors:qe,scrollableAncestorRects:lt,delta:wt,threshold:Xe}=Q;const St=function(jt){let{delta:un,disabled:vn}=jt;const rn=_s(un);return ll(ln=>{if(vn||!rn||!ln)return KC;const Jt=Math.sign(un.x-rn.x),ro=Math.sign(un.y-rn.y);return{x:{[co.Backward]:ln.x[co.Backward]||Jt===-1,[co.Forward]:ln.x[co.Forward]||Jt===1},y:{[co.Backward]:ln.y[co.Backward]||ro===-1,[co.Forward]:ln.y[co.Forward]||ro===1}}},[vn,un,rn])}({delta:wt,disabled:!Oe}),[Ct,it]=function(){const jt=s.useRef(null);return[s.useCallback((un,vn)=>{jt.current=setInterval(un,vn)},[]),s.useCallback(()=>{jt.current!==null&&(clearInterval(jt.current),jt.current=null)},[])]}(),Ot=s.useRef({x:0,y:0}),sn=s.useRef({x:0,y:0}),yn=s.useMemo(()=>{switch(ge){case gl.Pointer:return Ne?{top:Ne.y,bottom:Ne.y,left:Ne.x,right:Ne.x}:null;case gl.DraggableRect:return Be}},[ge,Be,Ne]),In=s.useRef(null),Ln=s.useCallback(()=>{const jt=In.current;if(!jt)return;const un=Ot.current.x*sn.current.x,vn=Ot.current.y*sn.current.y;jt.scrollBy(un,vn)},[]),At=s.useMemo(()=>Ze===Ms.TreeOrder?[...qe].reverse():qe,[Ze,qe]);s.useEffect(()=>{if(Oe&&qe.length&&yn){for(const jt of At){if(Ee?.(jt)===!1)continue;const un=qe.indexOf(jt),vn=lt[un];if(!vn)continue;const{direction:rn,speed:ln}=HC(jt,vn,yn,pe,Xe);for(const Jt of["x","y"])St[Jt][rn[Jt]]||(ln[Jt]=0,rn[Jt]=0);if(ln.x>0||ln.y>0)return it(),In.current=jt,Ct(Ln,Ie),Ot.current=ln,void(sn.current=rn)}Ot.current={x:0,y:0},sn.current={x:0,y:0},it()}else it()},[pe,Ln,Ee,it,Oe,Ie,JSON.stringify(yn),JSON.stringify(St),Ct,qe,At,lt,JSON.stringify(Xe)])}({...Z,delta:F,draggingRect:Fe,pointerCoordinates:ht,scrollableAncestors:we,scrollableAncestorRects:Y});const J=s.useMemo(()=>({active:S,activeNode:W,activeNodeRect:ie,activatorEvent:A,collisions:Je,containerNodeRect:ee,dragOverlay:de,draggableNodes:M,droppableContainers:j,droppableRects:X,over:se,measureDroppableContainers:re,scrollableAncestors:we,scrollableAncestorRects:Y,measuringConfiguration:O,measuringScheduled:$,windowRect:he}),[S,W,ie,A,Je,ee,de,M,j,X,se,re,we,Y,O,$,he]),ae=s.useMemo(()=>({activatorEvent:A,activators:ne,active:S,activeNodeRect:ie,ariaDescribedById:{draggable:z},dispatch:y,draggableNodes:M,over:se,measureDroppableContainers:re}),[A,ne,S,ie,y,z,M,se,re]);return s.createElement(Lp.Provider,{value:b},s.createElement(zl.Provider,{value:ae},s.createElement(Yp.Provider,{value:J},s.createElement(Qs.Provider,{value:be},c)),s.createElement(nk,{disabled:l?.restoreFocus===!1})),s.createElement(LC,{...l,hiddenTextDescribedById:z}))}),rk=s.createContext(null),v4="button";function Qp(){return s.useContext(Yp)}const ik={timeout:25};function lk(e){let{animation:t,children:n}=e;const[o,r]=s.useState(null),[i,l]=s.useState(null),d=_s(n);return n||o||!d||r(d),pr(()=>{if(!i)return;const c=o?.key,u=o?.props.id;c!=null&&u!=null?Promise.resolve(t(u,i)).then(()=>{r(null)}):r(null)},[t,o,i]),s.createElement(s.Fragment,null,n,o?s.cloneElement(o,{ref:l}):null)}const ak={x:0,y:0,scaleX:1,scaleY:1};function sk(e){let{children:t}=e;return s.createElement(zl.Provider,{value:Xp},s.createElement(Qs.Provider,{value:ak},t))}const ck={position:"fixed",touchAction:"none"},dk=e=>Ys(e)?"transform 250ms ease":void 0,uk=s.forwardRef((e,t)=>{let{as:n,activatorEvent:o,adjustScale:r,children:i,className:l,rect:d,style:c,transform:u,transition:f=dk}=e;if(!d)return null;const p=r?u:{...u,scaleX:1,scaleY:1},h={...ck,width:d.width,height:d.height,top:d.top,left:d.left,transform:O0.Transform.toString(p),transformOrigin:r&&o?OC(o,d):void 0,transition:typeof f=="function"?f(o):f,...c};return s.createElement(n,{className:l,style:h,ref:t},i)}),e9={duration:250,easing:"ease",keyframes:e=>{let{transform:{initial:t,final:n}}=e;return[{transform:O0.Transform.toString(t)},{transform:O0.Transform.toString(n)}]},sideEffects:(e=>t=>{let{active:n,dragOverlay:o}=t;const r={},{styles:i,className:l}=e;if(i!=null&&i.active)for(const[d,c]of Object.entries(i.active))c!==void 0&&(r[d]=n.node.style.getPropertyValue(d),n.node.style.setProperty(d,c));if(i!=null&&i.dragOverlay)for(const[d,c]of Object.entries(i.dragOverlay))c!==void 0&&o.node.style.setProperty(d,c);return l!=null&&l.active&&n.node.classList.add(l.active),l!=null&&l.dragOverlay&&o.node.classList.add(l.dragOverlay),function(){for(const[d,c]of Object.entries(r))n.node.style.setProperty(d,c);l!=null&&l.active&&n.node.classList.remove(l.active)}})({styles:{active:{opacity:"0"}}})};let w4=0;const hk=s.memo(e=>{let{adjustScale:t=!1,children:n,dropAnimation:o,style:r,transition:i,modifiers:l,wrapperElement:d="div",className:c,zIndex:u=999}=e;const{activatorEvent:f,active:p,activeNodeRect:h,containerNodeRect:m,draggableNodes:g,droppableContainers:x,dragOverlay:y,over:v,measuringConfiguration:b,scrollableAncestors:C,scrollableAncestorRects:k,windowRect:_}=Qp(),I=s.useContext(Qs),M=function(S){return s.useMemo(()=>{if(S!=null)return w4++,w4},[S])}(p?.id),F=Jp(l,{activatorEvent:f,active:p,activeNodeRect:h,containerNodeRect:m,draggingNodeRect:y.rect,over:v,overlayNodeRect:y.rect,scrollableAncestors:C,scrollableAncestorRects:k,transform:I,windowRect:_}),j=gd(h),T=function(S){let{config:D,draggableNodes:E,droppableContainers:R,measuringConfiguration:A}=S;return Xs((L,P)=>{if(D===null)return;const z=E.get(L);if(!z)return;const U=z.node.current;if(!U)return;const O=Kp(P);if(!O)return;const{transform:q}=Ro(P).getComputedStyle(P),X=Fp(q);if(!X)return;const re=typeof D=="function"?D:function($){const{duration:W,easing:B,sideEffects:Z,keyframes:G}={...e9,...$};return ie=>{let{active:ee,dragOverlay:le,transform:ue,...de}=ie;if(!W)return;const oe=le.rect.left-ee.rect.left,fe=le.rect.top-ee.rect.top,Te={scaleX:ue.scaleX!==1?ee.rect.width*ue.scaleX/le.rect.width:1,scaleY:ue.scaleY!==1?ee.rect.height*ue.scaleY/le.rect.height:1},Le={x:ue.x-oe,y:ue.y-fe,...Te},ce=G({...de,active:ee,dragOverlay:le,transform:{initial:ue,final:Le}}),[he]=ce,we=ce[ce.length-1];if(JSON.stringify(he)===JSON.stringify(we))return;const Y=Z?.({active:ee,dragOverlay:le,...de}),ze=le.node.animate(ce,{duration:W,easing:B,fill:"forwards"});return new Promise(ht=>{ze.onfinish=()=>{Y?.(),ht()}})}}(D);return Wp(U,A.draggable.measure),re({active:{id:L,data:z.data,node:U,rect:A.draggable.measure(U)},draggableNodes:E,dragOverlay:{node:P,rect:A.dragOverlay.measure(O)},droppableContainers:R,measuringConfiguration:A,transform:X})})}({config:o,draggableNodes:g,droppableContainers:x,measuringConfiguration:b}),w=j?y.setRef:void 0;return s.createElement(sk,null,s.createElement(lk,{animation:T},p&&M?s.createElement(uk,{key:M,id:p.id,ref:w,as:d,activatorEvent:f,adjustScale:t,className:c,transition:i,rect:j,style:{zIndex:u,...r},transform:F},n):null))});function m2(e,t,n){const o=e.slice();return o.splice(n<0?o.length+n:n,0,o.splice(t,1)[0]),o}function pk(e,t){return e.reduce((n,o,r)=>{const i=t.get(o);return i&&(n[r]=i),n},Array(e.length))}function ka(e){return e!==null&&e>=0}const Ea={scaleX:1,scaleY:1},fk=e=>{var t;let{rects:n,activeNodeRect:o,activeIndex:r,overIndex:i,index:l}=e;const d=(t=n[r])!=null?t:o;if(!d)return null;const c=function(u,f,p){const h=u[f],m=u[f-1],g=u[f+1];return h&&(m||g)?p<f?m?h.left-(m.left+m.width):g.left-(h.left+h.width):g?g.left-(h.left+h.width):h.left-(m.left+m.width):0}(n,l,r);if(l===r){const u=n[i];return u?{x:r<i?u.left+u.width-(d.left+d.width):u.left-d.left,y:0,...Ea}:null}return l>r&&l<=i?{x:-d.width-c,y:0,...Ea}:l<r&&l>=i?{x:d.width+c,y:0,...Ea}:{x:0,y:0,...Ea}},g2=e=>{let{rects:t,activeIndex:n,overIndex:o,index:r}=e;const i=m2(t,o,n),l=t[r],d=i[r];return d&&l?{x:d.left-l.left,y:d.top-l.top,scaleX:d.width/l.width,scaleY:d.height/l.height}:null},t9="Sortable",n9=s.createContext({activeIndex:-1,containerId:t9,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:g2,disabled:{draggable:!1,droppable:!1}});function mk(e){let{children:t,id:n,items:o,strategy:r=g2,disabled:i=!1}=e;const{active:l,dragOverlay:d,droppableRects:c,over:u,measureDroppableContainers:f}=Qp(),p=Pl(t9,n),h=d.rect!==null,m=s.useMemo(()=>o.map(I=>typeof I=="object"&&"id"in I?I.id:I),[o]),g=l!=null,x=l?m.indexOf(l.id):-1,y=u?m.indexOf(u.id):-1,v=s.useRef(m),b=!function(I,M){if(I===M)return!0;if(I.length!==M.length)return!1;for(let F=0;F<I.length;F++)if(I[F]!==M[F])return!1;return!0}(m,v.current),C=y!==-1&&x===-1||b,k=function(I){return typeof I=="boolean"?{draggable:I,droppable:I}:I}(i);pr(()=>{b&&g&&f(m)},[b,m,g,f]),s.useEffect(()=>{v.current=m},[m]);const _=s.useMemo(()=>({activeIndex:x,containerId:p,disabled:k,disableTransforms:C,items:m,overIndex:y,useDragOverlay:h,sortedRects:pk(m,c),strategy:r}),[x,p,k.draggable,k.droppable,C,m,y,c,h,r]);return s.createElement(n9.Provider,{value:_},t)}const gk=e=>{let{id:t,items:n,activeIndex:o,overIndex:r}=e;return m2(n,o,r).indexOf(t)},xk=e=>{let{containerId:t,isSorting:n,wasDragging:o,index:r,items:i,newIndex:l,previousItems:d,previousContainerId:c,transition:u}=e;return!(!u||!o||d!==i&&r===l||!n&&(l===r||t!==c))},yk={duration:200,easing:"ease"},o9="transform",bk=O0.Transition.toString({property:o9,duration:0,easing:"linear"}),vk={roleDescription:"sortable"};function wk(e){let{animateLayoutChanges:t=xk,attributes:n,disabled:o,data:r,getNewIndex:i=gk,id:l,strategy:d,resizeObserverConfig:c,transition:u=yk}=e;const{items:f,containerId:p,activeIndex:h,disabled:m,disableTransforms:g,sortedRects:x,overIndex:y,useDragOverlay:v,strategy:b}=s.useContext(n9),C=function(le,ue){var de,oe;return typeof le=="boolean"?{draggable:le,droppable:!1}:{draggable:(de=le?.draggable)!=null?de:ue.draggable,droppable:(oe=le?.droppable)!=null?oe:ue.droppable}}(o,m),k=f.indexOf(l),_=s.useMemo(()=>({sortable:{containerId:p,index:k,items:f},...r}),[p,r,k,f]),I=s.useMemo(()=>f.slice(f.indexOf(l)),[f,l]),{rect:M,node:F,isOver:j,setNodeRef:T}=function(le){let{data:ue,disabled:de=!1,id:oe,resizeObserverConfig:fe}=le;const Te=Pl("Droppable"),{active:Le,dispatch:ce,over:he,measureDroppableContainers:we}=s.useContext(zl),Y=s.useRef({disabled:de}),ze=s.useRef(!1),ht=s.useRef(null),ut=s.useRef(null),{disabled:ke,updateMeasurementsFor:ot,timeout:dt}={...ik,...fe},Fe=fl(ot??oe),Je=Rs({callback:s.useCallback(()=>{ze.current?(ut.current!=null&&clearTimeout(ut.current),ut.current=setTimeout(()=>{we(Array.isArray(Fe.current)?Fe.current:[Fe.current]),ut.current=null},dt)):ze.current=!0},[dt]),disabled:ke||!Le}),Ge=s.useCallback((Se,H)=>{Je&&(H&&(Je.unobserve(H),ze.current=!1),Se&&Je.observe(Se))},[Je]),[se,We]=Ga(Ge),be=fl(ue);return s.useEffect(()=>{Je&&se.current&&(Je.disconnect(),ze.current=!1,Je.observe(se.current))},[se,Je]),s.useEffect(()=>(ce({type:lo.RegisterDroppable,element:{id:oe,key:Te,disabled:de,node:se,rect:ht,data:be}}),()=>ce({type:lo.UnregisterDroppable,key:Te,id:oe})),[oe]),s.useEffect(()=>{de!==Y.current.disabled&&(ce({type:lo.SetDroppableDisabled,id:oe,key:Te,disabled:de}),Y.current.disabled=de)},[oe,Te,de,ce]),{active:Le,rect:ht,isOver:he?.id===oe,node:se,over:he,setNodeRef:We}}({id:l,data:_,disabled:C.droppable,resizeObserverConfig:{updateMeasurementsFor:I,...c}}),{active:w,activatorEvent:S,activeNodeRect:D,attributes:E,setNodeRef:R,listeners:A,isDragging:L,over:P,setActivatorNodeRef:z,transform:U}=function(le){let{id:ue,data:de,disabled:oe=!1,attributes:fe}=le;const Te=Pl("Draggable"),{activators:Le,activatorEvent:ce,active:he,activeNodeRect:we,ariaDescribedById:Y,draggableNodes:ze,over:ht}=s.useContext(zl),{role:ut=v4,roleDescription:ke="draggable",tabIndex:ot=0}=fe??{},dt=he?.id===ue,Fe=s.useContext(dt?Qs:rk),[Je,Ge]=Ga(),[se,We]=Ga(),be=function(H,te){return s.useMemo(()=>H.reduce((ne,J)=>{let{eventName:ae,handler:Q}=J;return ne[ae]=pe=>{Q(pe,te)},ne},{}),[H,te])}(Le,ue),Se=fl(de);return pr(()=>(ze.set(ue,{id:ue,key:Te,node:Je,activatorNode:se,data:Se}),()=>{const H=ze.get(ue);H&&H.key===Te&&ze.delete(ue)}),[ze,ue]),{active:he,activatorEvent:ce,activeNodeRect:we,attributes:s.useMemo(()=>({role:ut,tabIndex:ot,"aria-disabled":oe,"aria-pressed":!(!dt||ut!==v4)||void 0,"aria-roledescription":ke,"aria-describedby":Y.draggable}),[oe,ut,ot,dt,ke,Y.draggable]),isDragging:dt,listeners:oe?void 0:be,node:Je,over:ht,setNodeRef:Ge,setActivatorNodeRef:We,transform:Fe}}({id:l,data:_,attributes:{...vk,...n},disabled:C.draggable}),O=function(){for(var le=arguments.length,ue=new Array(le),de=0;de<le;de++)ue[de]=arguments[de];return s.useMemo(()=>oe=>{ue.forEach(fe=>fe(oe))},ue)}(T,R),q=!!w,X=q&&!g&&ka(h)&&ka(y),re=!v&&L,$=X?(re&&X?U:null)??(d??b)({rects:x,activeNodeRect:D,activeIndex:h,overIndex:y,index:k}):null,W=ka(h)&&ka(y)?i({id:l,items:f,activeIndex:h,overIndex:y}):k,B=w?.id,Z=s.useRef({activeId:B,items:f,newIndex:W,containerId:p}),G=f!==Z.current.items,ie=t({active:w,containerId:p,isDragging:L,isSorting:q,id:l,index:k,items:f,newIndex:Z.current.newIndex,previousItems:Z.current.items,previousContainerId:Z.current.containerId,transition:u,wasDragging:Z.current.activeId!=null}),ee=function(le){let{disabled:ue,index:de,node:oe,rect:fe}=le;const[Te,Le]=s.useState(null),ce=s.useRef(de);return pr(()=>{if(!ue&&de!==ce.current&&oe.current){const he=fe.current;if(he){const we=_i(oe.current,{ignoreTransform:!0}),Y={x:he.left-we.left,y:he.top-we.top,scaleX:he.width/we.width,scaleY:he.height/we.height};(Y.x||Y.y)&&Le(Y)}}de!==ce.current&&(ce.current=de)},[ue,de,oe,fe]),s.useEffect(()=>{Te&&Le(null)},[Te]),Te}({disabled:!ie,index:k,node:F,rect:M});return s.useEffect(()=>{q&&Z.current.newIndex!==W&&(Z.current.newIndex=W),p!==Z.current.containerId&&(Z.current.containerId=p),f!==Z.current.items&&(Z.current.items=f)},[q,W,p,f]),s.useEffect(()=>{if(B===Z.current.activeId)return;if(B!=null&&Z.current.activeId==null)return void(Z.current.activeId=B);const le=setTimeout(()=>{Z.current.activeId=B},50);return()=>clearTimeout(le)},[B]),{active:w,activeIndex:h,attributes:E,data:_,rect:M,index:k,newIndex:W,items:f,isOver:j,isSorting:q,isDragging:L,listeners:A,node:F,overIndex:y,over:P,setNodeRef:O,setActivatorNodeRef:z,setDroppableNodeRef:T,setDraggableNodeRef:R,transform:ee??$,transition:ee||G&&Z.current.newIndex===k?bk:re&&!Ys(S)||!u||!q&&!ie?void 0:O0.Transition.toString({...u,property:o9})}}function Is(e){if(!e)return!1;const t=e.data.current;return!!(t&&"sortable"in t&&typeof t.sortable=="object"&&"containerId"in t.sortable&&"items"in t.sortable&&"index"in t.sortable)}const Sk=[hn.Down,hn.Right,hn.Up,hn.Left],Ck=(e,t)=>{let{context:{active:n,collisionRect:o,droppableRects:r,droppableContainers:i,over:l,scrollableAncestors:d}}=t;if(Sk.includes(e.code)){if(e.preventDefault(),!n||!o)return;const c=[];i.getEnabled().forEach(p=>{if(!p||p!=null&&p.disabled)return;const h=r.get(p.id);if(h)switch(e.code){case hn.Down:o.top<h.top&&c.push(p);break;case hn.Up:o.top>h.top&&c.push(p);break;case hn.Left:o.left>h.left&&c.push(p);break;case hn.Right:o.left<h.left&&c.push(p)}});const u=(p=>{let{collisionRect:h,droppableRects:m,droppableContainers:g}=p;const x=a4(h),y=[];for(const v of g){const{id:b}=v,C=m.get(b);if(C){const k=a4(C),_=x.reduce((M,F,j)=>M+Op(k[j],F),0),I=Number((_/4).toFixed(4));y.push({id:b,data:{droppableContainer:v,value:I}})}}return y.sort(Pp)})({collisionRect:o,droppableRects:r,droppableContainers:c});let f=Ap(u,"id");if(f===l?.id&&u.length>1&&(f=u[1].id),f!=null){const p=i.get(n.id),h=i.get(f),m=h?r.get(h.id):null,g=h?.node.current;if(g&&m&&p&&h){const x=Js(g).some((k,_)=>d[_]!==k),y=S4(p,h),v=function(k,_){return!!(Is(k)&&Is(_)&&S4(k,_))&&k.data.current.sortable.index<_.data.current.sortable.index}(p,h),b=x||!y?{x:0,y:0}:{x:v?o.width-m.width:0,y:v?o.height-m.height:0},C={x:m.left,y:m.top};return b.x&&b.y?C:Al(C,b)}}}};function S4(e,t){return!(!Is(e)||!Is(t))&&e.data.current.sortable.containerId===t.data.current.sortable.containerId}const kk=e=>{let{transform:t}=e;return{...t,y:0}},Ek=s.memo(s.forwardRef((e,t)=>{const{children:n,style:o,className:r,index:i,editing:l,editable:d,selectedIndex:c,background:u,activeColor:f,borderColor:p,borderWidth:h,dragging:m,...g}=e;return a.jsxs("div",{ref:t,className:Ao(r),style:{...o,display:"flex",flexDirection:"column",background:c===i?"white":u,minHeight:"0px",fontFamily:"inherit",fontSize:"16px",fontWeight:c===i?"700":"400",lineHeight:"1",letterSpacing:"0px",textTransform:"none",minWidth:"unset"},...g,children:[a.jsxs("div",{style:{flex:"1 1 100%",display:"flex",flexDirection:"row"},children:[a.jsx("div",{style:{marginLeft:c===i?"0px":"-1px",marginTop:c===i?"0px":"4px",marginBottom:"0px",background:"grey",minWidth:"1px"}}),n,c===i?a.jsx("div",{style:{marginLeft:"0px",marginTop:"0px",marginBottom:"0px",background:"grey",minWidth:"1px"}}):a.jsx(a.Fragment,{})]}),a.jsx("div",{style:{flex:"1 1 100%",background:c===i&&f?f?.toCSS():"none",minHeight:"2px"}})]})})),dr={Wrapper:"_Wrapper_1wyun_25",fadeIn:"_fadeIn_1wyun_33",dragOverlay:"_dragOverlay_1wyun_37",Item:"_Item_1wyun_47",withHandle:"_withHandle_1wyun_61",dragging:"_dragging_1wyun_66",disabled:"_disabled_1wyun_74"},r9=s.memo(s.forwardRef(({color:e,dragOverlay:t,dragging:n,disabled:o,fadeIn:r,handle:i,height:l,index:d,listeners:c,onRemove:u,renderItem:f,sorting:p,style:h,transition:m,transform:g,value:x,wrapperStyle:y,...v},b)=>{s.useEffect(()=>{if(t)return document.body.style.cursor="grabbing",()=>{document.body.style.cursor=""}},[t]);const C=f?f({dragOverlay:!!t,dragging:!!n,sorting:!!p,index:d,fadeIn:!!r,listeners:c,ref:b,style:h,transform:g,transition:m,value:x}):a.jsx(a.Fragment,{children:x});return a.jsx("div",{className:Ao("tab-item",dr.Wrapper,r&&dr.fadeIn,p&&dr.sorting,t&&dr.dragOverlay),style:{...y,transition:[m,y?.transition].filter(Boolean).join(", "),"--translate-x":g?`${Math.round(g.x)}px`:void 0,"--translate-y":g?`${Math.round(g.y)}px`:void 0,"--scale-x":g?.scaleX?`${g.scaleX}`:void 0,"--scale-y":g?.scaleY?`${g.scaleY}`:void 0,"--index":d},ref:b,children:a.jsx("div",{className:Ao(dr.Item,n&&dr.dragging,i&&dr.withHandle,t&&dr.dragOverlay,o&&dr.disabled,e&&dr.color,"dragging"),style:h,"data-cypress":"draggable-item",...i?void 0:c,...v,tabIndex:i?void 0:-1,children:C})})})),C4={Row:"_Row_1kr10_1"},_k=s.memo(s.forwardRef(({children:e,horizontal:t,style:n},o)=>a.jsx("div",{ref:o,style:{...n},className:Ao(C4.Row,t&&C4.horizontal),children:e}))),Tk={...e9},jk=s.memo(s.forwardRef((e,t)=>{const{className:n,activationConstraint:o,animateLayoutChanges:r,adjustScale:i=!1,collisionDetection:l=AC,coordinateGetter:d=Ck,dropAnimation:c=Tk,getItemStyles:u=()=>({}),getNewIndex:f,handle:p=!1,items:h,onMove:m,isDisabled:g=()=>!1,measuring:x,modifiers:y,renderItem:v,renderDivider:b,reorderItems:C=m2,strategy:k=g2,style:_,useDragOverlay:I=!0,onDragStart:M,wrapperStyle:F=()=>({})}=e,[j,T]=s.useState(()=>h);s.useEffect(()=>{T(h)},[h]);const[w,S]=s.useState(null),D=function(){for(var P=arguments.length,z=new Array(P),U=0;U<P;U++)z[U]=arguments[U];return s.useMemo(()=>[...z].filter(O=>O!=null),[...z])}(Q1(Zp,{activationConstraint:o}),Q1(Gp,{activationConstraint:o}),Q1(p2,{scrollBehavior:"Cypress"in window?"auto":void 0,coordinateGetter:d})),E=j.indexOf.bind(j),R=w?E(w):-1,A=[];j.map((P,z)=>{A.push(a.jsx(Mk,{id:P,handle:p,index:z,style:u,wrapperStyle:F,disabled:g(P),renderItem:v,animateLayoutChanges:r,useDragOverlay:I,getNewIndex:f},P+"-"+z));const U=b?.({key:"divider-"+z});U&&A.push(U)});const{getPortalContainer:L}=(s.useEffect(()=>{function P(){const z=document.fullscreenElement;if(!z)return;let U=z.querySelector(".fullscreen-portal-root");U||(U=document.createElement("div"),U.className="fullscreen-portal-root _fullscreen-portal-root_1mjsr_4",z.appendChild(U))}return Ql++,P(),document.addEventListener("fullscreenchange",P),()=>{document.removeEventListener("fullscreenchange",P),Ql--,Ql<=0&&(document.querySelectorAll(".fullscreen-portal-root").forEach(z=>{z.parentNode&&z.parentNode.removeChild(z)}),Ql=0)}},[]),{getPortalContainer:Yf});return a.jsxs(ok,{sensors:D,collisionDetection:l,onDragStart:P=>{const{active:z}=P;z&&(M?.(P),S(z.id))},autoScroll:{canScroll:P=>!0},onDragEnd:P=>{if(S(null),P.over){const z=E(P.over.id);R!==z&&(T(U=>C(U,R,z)),m?.(R,z))}},onDragCancel:()=>{S(null)},measuring:x,modifiers:y,children:[a.jsx("div",{style:{display:"flex",justifyContent:"flex-start",boxSizing:"border-box",..._},className:Ao(n,dr.Wrapper),children:a.jsx(mk,{items:j,strategy:k,children:a.jsx(_k,{ref:t,children:A})})}),I?eo.createPortal(a.jsx(hk,{adjustScale:i,dropAnimation:c,children:w?a.jsx(r9,{value:j[R],handle:p,renderItem:v,wrapperStyle:F({index:R,isDragging:!0,id:j[R]}),index:R,dragging:!0,style:u({id:j[R],index:R,isSorting:w!==null,isDragging:!0,overIndex:-1,isDragOverlay:!0}),dragOverlay:!0}):null}),L()):null]})}));function Mk({disabled:e,animateLayoutChanges:t,getNewIndex:n,handle:o,id:r,index:i,onRemove:l,style:d,renderItem:c,useDragOverlay:u,wrapperStyle:f}){const{attributes:p,isDragging:h,isSorting:m,listeners:g,overIndex:x,setNodeRef:y,transform:v,transition:b}=wk({id:r,animateLayoutChanges:t,disabled:e,getNewIndex:n});return a.jsx(r9,{ref:y,value:r,disabled:e,dragging:h,sorting:m,handle:o,renderItem:c,index:i,style:d({index:i,id:r,isDragging:h,isSorting:m,overIndex:x}),onRemove:l?()=>l(r):void 0,transform:v,transition:b,wrapperStyle:f({index:i,isDragging:h,id:r}),listeners:g,"data-index":i,"data-id":r,dragOverlay:!u&&h,...p})}const Rk=new N.Color("rgb(33, 115, 70)"),Ik="#eee",Dk=e=>a.jsx(Ek,{...e}),i9=s.memo(s.forwardRef((e,t)=>{const{children:n,style:o,className:r,selectedTabIndex:i=0,tabNames:l=[],onSelectedTabIndexChange:d,onTabNameChange:c,onTabMove:u,createScrollStartButton:f=S7,createScrollEndButton:p=C7,createScrollEdgeButton:h=Af,createTabButton:m=Dk,createTabDivider:g,editLabelProps:x,disabled:y=!1,disableDrag:v=!1,background:b="white",activeColor:C=Rk,borderColor:k=Ik,borderWidth:_=1}=e,[I,M]=s.useState(i),[F,j]=s.useState(l),T=s.useCallback(Le=>{const ce=L.current?.[Le]?.closest(".tab-item")??L.current?.[Le];ce&&re.current?.scrollTo({top:ce.offsetTop,left:ce.offsetLeft,behavior:"smooth"})},[]);s.useEffect(()=>{T(i)},[i]);const w=s.useCallback((Le,ce)=>{ce!==I&&(M(ce),d?.(ce)),T(ce)},[d,I]),S=s.useCallback((Le,ce)=>{u?.(Le,ce)},[u]),D=s.useRef(null),[E,R]=s.useState(-1),A=s.useCallback((Le,ce)=>{c?.(Le,ce)},[c]);s.useLayoutEffect(()=>{M(i)},[i]),s.useLayoutEffect(()=>{j(l)},[l]);const L=s.useRef([]),P=s.useRef(null);s.useImperativeHandle(t,()=>Object.assign({startEdit(Le){L.current?.[Le]?.startEdit()},cancel(Le){L.current?.[Le]?.cancel()}},P.current),[I,E]);const z=s.useCallback(({value:Le,index:ce,dragging:he})=>{const{style:we,maxLength:Y,...ze}=x||{},ht=a.jsx(_C,{ref:ut=>{L.current[ce]=ut},value:Le,disabled:y,maxLength:Y,style:{color:I===ce&&C?C?.toRGBA().toString():"inherit",flex:"1 1 100%",paddingTop:"1px",paddingBottom:"1px",...we},styleHover:{},onSubmit:ut=>(D.current=!1,R(-1),A(ce,ut)),onCancel:()=>{D.current=!1,R(-1)},onChange:ut=>{D.current=!0,R(ce)},...ze});return m({onClick:ut=>w(ut,ce),value:Le,index:ce,editing:E===ce&&D.current,editable:!0,disabled:y,selectedIndex:I,background:b,activeColor:C,borderColor:k,borderWidth:_,dragging:he,children:ht})},[I,A,w,x,y,E,m]),[U,{width:O}]=L0(),[q,{width:X}]=L0(),re=s.useRef(null),[$,W]=s.useState({left:0,top:0,width:0,height:0}),[B,Z]=s.useState(null);s.useEffect(()=>{B!==null&&re.current&&re.current.scrollTo({left:B,behavior:"smooth"})},[B]);const G=s.useCallback((Le,ce=!1)=>{if(!re.current)return 0;let he=re.current.firstChild.getBoundingClientRect(),we=re.current.firstChild.firstChild.children,Y=0;return Y=ce?0:du.getScrollTo(Le,he.left,we,!0,Math.max(0,Le-200)),Z(Y),Math.max(0,Y)},[]),ie=s.useCallback((Le,ce=!1)=>{if(!re.current)return 0;let he=re.current.firstChild.getBoundingClientRect(),we=re.current.firstChild.firstChild.children,Y=0;const ze=Math.ceil(X-O);return Y=ce?ze:du.getScrollTo(Le,he.left,we,!1,Math.max(0,Le+200)),Z(Y),Math.min(ze,Y)},[X,O]),ee=s.useRef(null),le=s.useRef(null),ue=s.useCallback(()=>{le.current&&(clearTimeout(le.current),le.current=null,ee.current=null)},[]),de=s.useCallback((Le,ce,he=260)=>{ee.current=Le,le.current=setTimeout(()=>{const we=ce?G(ee.current||Le):ie(ee.current||Le);we!==ee.current?de(we,ce,120):ue()},he)},[G,ie,ue]);s.useEffect(()=>()=>ue(),[ue]);const oe=s.useMemo(()=>({style:{marginLeft:"4px",marginRight:"6px"},disabled:Math.floor($.left)<=0||Math.floor(X-O)===0,orientation:fo.Horizontal,onMouseUp:ue,onMouseLeave:ue,onMouseDown:()=>de(re.current.scrollLeft,!0),onClick:Le=>G(Math.min(re.current.scrollLeft,B??Number.MAX_SAFE_INTEGER),Le.ctrlKey)}),[$,B,X,O]),fe=s.useMemo(()=>({style:{marginLeft:"6px",marginRight:"4px"},disabled:Math.floor(X-O)<=Math.ceil($.left),orientation:fo.Horizontal,onMouseUp:ue,onMouseLeave:ue,onMouseDown:()=>de(re.current.scrollLeft,!1),onClick:Le=>ie(Math.max(re.current.scrollLeft,B??0),Le.ctrlKey)}),[$,B,X,O]),Te=s.useMemo(()=>a.jsxs(a.Fragment,{children:[a.jsx("div",{style:{minWidth:"16px"}}),n,h?.(oe)]}),[oe,fe,f,p,n,h]);return a.jsxs("div",{style:{...o,display:"flex",alignItems:"stretch"},className:Ao("_TabStrip_3x0dp_1",r),ref:P,children:[a.jsx("div",{style:{borderTop:`solid ${k} ${_}px`,position:"absolute",width:"100%"}}),a.jsx("div",{style:{flex:"none",display:"flex",alignItems:"center"},children:Te}),a.jsx("div",{className:"Tabs",ref:U,style:{flex:"1 1 100%",display:"flex",position:"relative",overflow:"hidden"},children:a.jsx("div",{style:{position:"relative",overflowY:"hidden",overflowX:"hidden",marginBottom:"3px"},ref:re,onScroll:Le=>{W({left:Le.target.scrollLeft,top:Le.target.scrollTop,width:Le.target.scrollWidth,height:Le.target.scrollHeight})},children:a.jsx(jk,{isDisabled:Le=>y||v,items:F,strategy:fk,modifiers:[kk],ref:q,renderItem:z,renderDivider:g,onMove:S,activationConstraint:{distance:15}})})}),a.jsx("div",{style:{flex:"none",display:"flex",alignItems:"center"},children:h(fe)})]})}));i9.displayName="TabStrip";const Lk=s.createContext(null),x2=()=>{const e=s.useContext(Lk),[t]=s.useState(()=>new N.ThemeCollection);return s.useMemo(()=>e||t,[e])},Ok=s.lazy(()=>Promise.resolve().then(()=>require("./BMUOX4KpmBu6GH8Q.cjs"))),Pk={lightbulb:{enabled:!1},tabSize:2,acceptSuggestionOnCommitCharacter:!0,acceptSuggestionOnEnter:"on",accessibilitySupport:"auto",automaticLayout:!0,autoIndent:!1,codeLens:!0,colorDecorators:!0,contextmenu:!0,cursorBlinking:"blink",cursorSmoothCaretAnimation:!1,cursorStyle:"line",disableLayerHinting:!1,disableMonospaceOptimizations:!1,dragAndDrop:!0,glyphMargin:!0,fixedOverflowWidgets:!1,folding:!0,foldingStrategy:"auto",fontLigatures:!1,formatOnPaste:!0,formatOnType:!1,hideCursorInOverviewRuler:!1,highlightActiveIndentGuide:!0,links:!0,lineDecorationsWidth:8,lineNumbersMinChars:3,mouseWheelZoom:!1,multiCursorMergeOverlapping:!0,multiCursorModifier:"alt",overviewRulerBorder:!0,overviewRulerLanes:2,quickSuggestions:!0,quickSuggestionsDelay:100,readOnly:!1,renderControlCharacters:!1,renderFinalNewline:!0,renderIndentGuides:!0,renderLineHighlight:"all",renderWhitespace:"none",revealHorizontalRightPadding:30,roundedSelection:!0,rulers:[],scrollBeyondLastColumn:5,scrollBeyondLastLine:!0,selectOnLineNumbers:!0,selectionClipboard:!0,selectionHighlight:!0,showLightbulbIconMode:!1,showFoldingControls:"mouseover",smoothScrolling:!0,suggestOnTriggerCharacters:!0,wordBasedSuggestions:!0,wordSeparators:`~!@#$%^&*()-=+[{]}|;:'",.<>/?`,wordWrap:"off",wordWrapBreakAfterCharacters:" })]?|&,;",wordWrapBreakBeforeCharacters:"{([+",wordWrapBreakObtrusiveCharacters:".",wordWrapColumn:80,wordWrapMinified:!0,wrappingIndent:"none"},k4=async(e,t,n)=>{const o=e.getModel();if(!o)return;const r=await t.languages.typescript.getTypeScriptWorker(),i=await r(o.uri),l=await i.getNavigationTree(o.uri.toString()),d=e.getPosition();let c={...d};c.lineNumber=1,c.column=1;let u=!1;for(let x=d.lineNumber;x>=1;x--)if(o.getLineContent(x).trim()===""){const y=y2(l,o.getOffsetAt({lineNumber:x,column:1}),"function");if(!y||Fk(y)){u=!0,c.lineNumber=x+1;break}{const v=y.spans[0].start;x=o.getPositionAt(v).lineNumber,c.lineNumber=x}}let f=n,p=!1;!u&&!f.startsWith(`
77
- `)&&c.lineNumber>1&&(f=`
78
- `+f,p=!0);let h=!1;o.getLineCount()>1&&(f.endsWith(`
79
-
80
- `)||(f+=`
81
-
82
- `,h=!0));const m=[{range:new t.Range(c.lineNumber,c.column,c.lineNumber,c.column),text:`${f}`}];let g=null;o.pushEditOperations([],m,x=>(g=x[0].range,p&&g.startLineNumber++,h&&g.endLineNumber--,[new t.Selection(g.startLineNumber,g.startColumn,g.endLineNumber,g.endColumn)])),e.setSelection({startLineNumber:g.endLineNumber,startColumn:g.endColumn,endLineNumber:g.startLineNumber,endColumn:g.startColumn})};function Ak(e,t){let n=null;for(let o=0;!n&&o<e.length;o++){const r=e[o];r.getName()===t.text&&(n=r)}return n?n.getContext():"formula"}function xd(e,t,n,o,r=[]){if(o.kind==="function"&&o.kindModifiers==="export"){const i=o.spans[0].start,l=e.getPositionAt(i);r.push({name:o.text,type:Ak(n,o),lineNumber:l.lineNumber})}if(o.childItems)for(const i of o.childItems)xd(e,t,n,i,r);return r}function y2(e,t,n="function",o){const r=e.spans;for(let i=0;i<r.length;i++){const l=r[i];if(l.start<=t&&t<l.start+l.length){if(e.kind===n&&(!o||e.kindModifiers===o))return e;for(const d of e.childItems||[]){const c=y2(d,t,n,o);if(c)return c}}return null}}function Fk(e){return e.kind==="comment"}const zk=s.memo(s.forwardRef((e,t)=>{const{className:n,style:o,commands:r,readOnly:i=!1,onClose:l,darkMode:d,loadingPanel:c,autoFocus:u=!0,onStatusChange:f,...p}=e,h=s.useRef(null),m=me(l,[l]),g=s.useRef(!1),x=s.useMemo(()=>({contains(P){if(!h.current)return;const z=h.current.editor;return z&&z.getDomNode()?.contains(P)},focus(){if(!h.current)return;const P=h.current.editor;return P&&P.getDomNode()?.focus()}}),[]),y=s.useMemo(()=>[new Me("help",x,{label:"Script Commands",description:"Open Editor Commands",shortcut:{key:"F1"}},()=>{})],[]),v=s.useMemo(()=>{let P=null;const z=()=>x;return P=r?r.createChildGroup(z,"scriptEditor",!1):new vi(z,"scriptEditor"),P.addCommands(y,!0),P},[r,y]),b=Bn(v,["executeSelectedScript"])[0],C=b?.context(),k=me(P=>{b?.execute(P)},[b]),_=s.useRef(""),[I,M]=s.useState(!1),F=me(async()=>{if(!h.current)return null;const P=h.current,z=P.editor;if(!z)return null;const U=P.monaco,O=await(async(q,X,re="export")=>{const $=q.getModel();if(!$)return null;const W=await X.languages.typescript.getTypeScriptWorker(),B=await W($.uri),Z=await B.getNavigationTree($.uri.toString());let G=null,ie=q.getSelection();const ee=ie.startLineNumber===ie.endLineNumber&&ie.startColumn===ie.endColumn?$.getLineCount():Math.min(ie.endLineNumber,$.getLineCount());for(let le=ie.startLineNumber;!G&&le<=ee;le++){const ue=y2(Z,$.getOffsetAt({lineNumber:le,column:1}),"function",re);ue&&(G=ue.text)}return G})(z,U);return f?.({message:(O??"").toUpperCase()}),O?{source:z.getValue(),name:O}:null},[f]),j=me(async(P,z,U)=>{const O=await C.getScripts().createModule({source:U?.getValue(),declarationsOnly:!0}),q=O?O.getFunctions().search():Lt.EmptyArray;O&&(async function(X,re){const $=[];for(let W=1;W<X.getLineCount()+1;W++){const B={startLineNumber:W,startColumn:1,endLineNumber:W,endColumn:X.getLineLength(W)+1},Z=X.getValueInRange(B).indexOf("modelt");Z!==-1&&$.push({message:"found 'modelt'",resource:"https://www.sheetxl.com",severity:re.MarkerSeverity.Hint,startLineNumber:B.startLineNumber,startColumn:Z+1,endLineNumber:B.startLineNumber,endColumn:Z+5})}re.editor.setModelMarkers(X,"owner",$)}(P,z),async function(X,re,$,W){const B=await re.languages.typescript.getTypeScriptWorker(),Z=await B(X.uri),G=await Z.getNavigationTree(X.uri.toString()),ie=xd(X,re,W,G).map(ee=>{let le=null,ue=null;return ee.type==="formula"?(le="formula.margin-icon",ue="Formula"):ee.type==="macro"?(le="macro.margin-icon",ue="Macro"):ee.type==="autoRun"&&(le="autorun.margin-icon",ue="Auto Run"),{range:new re.Range(ee.lineNumber,1,ee.lineNumber,1),options:{isWholeLine:!1,glyphMarginClassName:le,glyphMarginHoverMessage:ue,stickiness:re.editor.TrackedRangeStickiness.NeverGrowsWhenTypingAtEdges}}});D.current&&D.current.clear(),D.current=$.createDecorationsCollection(ie)}(P,z,U,q))},[C]),T=me(Lt.debounce(j,580),[]),w=me(async(P=void 0)=>{if(!h.current||!C)return;const z=h.current.editor.getPosition(),U={cursor:z?z.toString():""};P!==void 0&&(U.message=P),f?.(U);const O=F();C.setSelectedFunction(O)},[C,f]);s.useEffect(()=>{if(!C)return;const P={insertSnippet:U=>{h.current?.editor&&(I?k4(h.current.editor,h.current.monaco,U):_.current=U)}};C.setEditor(P),C.setSelectedFunction(F());const z=C.addContainerListener({onBeforeSave:async()=>{if(!h.current?.editor||!C)return;const U=h.current.editor,O=C?.getScripts().getModules().getByName("scripting"),q=O?.getSource(),X=U.getValue();if((q?.length??0)===X.length&&q===X)return;await C.saveSource(U.getValue());const re=(q?.length??0)!==X.length||q!==X;f?.({dirty:re})},onReadonlyChange(){},onScriptChange:async()=>{if(!h.current?.editor||!C)return;const U=h.current.editor,O=C.getScripts().getModules().search()[0]?.getSource()??"";U.setValue(O)}});return()=>{z(),C.setSelectedFunction(null),C.setEditor(null)}},[C,I]),s.useEffect(()=>()=>{if(!h.current?.editor)return;const P=h.current.editor;C?.saveSource(P.getValue())},[]);const S=me(P=>{const z=h.current;if(!z)return!1;const U=z.editor;return!!U&&(U.focus(),!0)},[]),D=s.useRef(null),E=me((P,z)=>{h.current={monaco:z,editor:P},M(!0),w("Loading Types");const U=C.getScripts().getModules().search()[0]?.getSource()??"";P.setValue(U),Promise.resolve().then(()=>require("./DzdnNJvBx5lkLTW-.cjs")).then(q=>q.c).then(q=>{w(""),q.AutoTypings.create(P,{shareCache:!0,monaco:z,onError:X=>{X==="Not implemented yet"&&(X="Compile Errors"),console.warn("Error compiling types",X)}}).then(async X=>{const re=P.getModel();T(re,z,P)})}),P.addCommand("executeScript",function(q,...X){X?.[0]&&k({functionName:X?.[0]})},""),P.addAction({id:"executeScript",label:"Execute",keybindings:[z.KeyCode.F8],run:async q=>{const X=F();C.setSelectedFunction(X);const re=await X;k(re)}}),P.addAction({id:"saveScript",label:"Save Script",keybindings:[z.KeyMod.CtrlCmd|z.KeyCode.KeyS],run:q=>{C?.saveSource(P.getValue()).then(()=>{const X=C?.getScripts().getModules().getByName("scripting"),re=X?.getSource(),$=P.getValue(),W=(re?.length??0)!==$.length||re!==$;f?.({dirty:W})})}}),P.onMouseDown(async q=>{if(q.target.type===z.editor.MouseTargetType.GUTTER_GLYPH_MARGIN){const X=q.target.position.lineNumber,re=await z.languages.typescript.getTypeScriptWorker(),$=await re(O.uri),W=await $.getNavigationTree(O.uri.toString()),B=P?.getValue(),Z=(await C?.saveSource(B)).getFunctions().search(),G=xd(O,z,Z,W).find(ie=>ie.lineNumber===X);if(G){const ie=q.event.browserEvent.button;ie===0?G.type==="macro"||G.type==="autoRun"?k({functionName:G.name}):G.type==="formula"&&C.quickInsertFunction?.(G.name):ie===2&&(console.log("Context menu for function:",G.name),q.event.browserEvent.preventDefault())}}}),P.onDidChangeModelContent(()=>{const q=P.getModel();T(q,z,P)});const O=P.getModel();(function(q,X){X.languages.registerInlayHintsProvider("typescript",{provideInlayHints(re,$,W){const B=[];for(let Z=1;Z<re.getLineCount()+1;Z++){const G={startLineNumber:Z,startColumn:1,endLineNumber:Z,endColumn:re.getLineLength(Z)+1},ie="hint",ee=re.getValueInRange(G).indexOf("hint");ee!==-1&&B.push({kind:X.languages.InlayHintKind.Type,position:{lineNumber:G.startLineNumber,column:ee+ie.length+1},label:"[hint]"})}return{hints:B,dispose:()=>{}}}})})(0,z),O.onDidChangeContent(q=>{const X=C?.getScripts().getModules().getByName("scripting"),re=X?.getSource(),$=P.getValue(),W=(re?.length??0)!==$.length||re!==$;f?.({dirty:W})}),P.onDidChangeCursorPosition(q=>{w()})},[C,f]),R=s.useMemo(()=>I?null:c||a.jsx("div",{style:{position:"absolute",width:"100%",height:"100%"},children:"Loading..."}),[I,c]),A=s.useMemo(()=>{const P=C?.getScripts().getModules().getByName("scripting")?.getSource()??"";return a.jsxs("div",{style:{display:"flex",flex:"1 1 100%",width:"100%",flexDirection:"row",position:"relative",boxSizing:"border-box"},children:[a.jsx(s.Suspense,{children:a.jsx(Ok,{theme:d?"extended-dark":"extended",options:{...Pk,fixedOverflowWidgets:!0,readOnly:i},language:"typescript",value:P,onValidate:z=>{let U=!1;for(let O=0;!U&&O<z?.length;O++)z[O].severity===8&&(U=!0)},beforeMount:z=>{z.languages.typescript.typescriptDefaults.setDiagnosticsOptions({noSemanticValidation:!0,noSyntaxValidation:!0}),z.languages.json.jsonDefaults.setDiagnosticsOptions({validate:!0}),z.editor.defineTheme("extended",{base:"vs",inherit:!0,rules:[],colors:{}}),z.editor.defineTheme("extended-dark",{base:"vs-dark",inherit:!0,rules:[],colors:{}}),(async()=>{let U=!1;try{const q=await(async()=>await(await fetch("https://cdn.jsdelivr.net/npm/@sheetxl/sdk/types/index.d.ts")).text())(),X=z.Uri.parse('inmemory://model/"sheetxl-models".d.ts'),re=z.editor.createModel(q,"typescript",X);z.editor.setModelMarkers(re,"default",[]),U=!0}catch(q){console.warn("cant load types",q)}z.languages.registerLinkProvider("*",{provideLinks:(q,X)=>{const re=[],$={links:re},W=q.getLinesContent();for(let B=1;B<=W.length;B++){const Z=W[B-1],G=z.editor.tokenize(Z,"typescript");for(let ie=0;ie<G[0].length;ie++){const ee=G[0]?.[ie];if(ee&&ee.type.startsWith("string")){let le=ee.offset,ue=G[0]?.[ie+1]?.offset??Z.length,de=new z.Range(B,le+1,B,ue+1),oe=q.getValueInRange(de);const fe=oe[0];fe!=="`"&&fe!=="'"&&fe!=='"'||(le++,oe=oe.substring(1));const Te=oe[oe.length-1];Te!=="`"&&Te!=="'"&&Te!=='"'||(le++,oe=oe.substring(0,oe.length-1));try{C.getRanges(oe)&&re.push({range:{endColumn:ue,endLineNumber:B,startColumn:le,startLineNumber:B},tooltip:`Goto range '${oe}'`,url:`/range/${oe}`})}catch(Le){console.warn(Le)}}}}return $}}),z.editor.registerLinkOpener({open(q){if(q?.path?.startsWith("/range/")){try{C.getRanges(q.path.substring(7))?.select()}catch(X){console.warn("invalid range",X)}return!0}return!1}});const O=z.languages.typescript.typescriptDefaults.getCompilerOptions();z.languages.typescript.typescriptDefaults.setCompilerOptions({...O,target:z.languages.typescript.ScriptTarget.ES2020,lib:["webworker","es2020","esnext.asynciterable"],downlevelIteration:!0,moduleResolution:z.languages.typescript.ModuleResolutionKind.Classic,baseUrl:"inmemory://model/",allowNonTsExtensions:!0}),_.current&&(await k4(h.current.editor,h.current.monaco,_.current),_.current=null),g.current&&requestAnimationFrame(async()=>{g.current&&z.editor.focus()}),z.languages.typescript.typescriptDefaults.setDiagnosticsOptions({noSemanticValidation:!1,noSyntaxValidation:!1}),M(!0)})()},onMount:E})}),R]})},[C,v,i,R,d]),L=so(t,()=>({isScriptEditorElement:()=>!0,focus:P=>{S(P)},close:()=>{m?.()},getEditor:()=>C?.getEditor()}),[C]);return s.useEffect(()=>(u&&requestAnimationFrame(()=>{S()}),()=>{h.current?.editor&&requestAnimationFrame(()=>{L.current?.contains(document.activeElement)&&S()})}),[]),a.jsx("div",{className:Ao("script-editor","_script-editor_iy654_5",n),style:{display:"flex",flexDirection:"row",flex:"1 1 100%",position:"relative",...o},ref:L,...p,children:A})})),l9={Preset:"preset",Custom:"custom"},li={Start:"start",End:"end"},oc={},Bk=(e,t,n,o)=>{const r=e+"-"+t+"-"+n+(o?"-server":"");if(oc[r])return oc[r];const i=((l,d,c,u)=>{if(typeof document>"u"&&!u)return null;const f=u?new u:document.createElement("canvas");f.width=2*c,f.height=2*c;const p=f.getContext("2d");return p?(p.fillStyle=l,p.fillRect(0,0,f.width,f.height),p.fillStyle=d,p.fillRect(0,0,c,c),p.translate(c,c),p.fillRect(0,0,c,c),f.toDataURL()):null})(e,t,n,o);return oc[r]=i,i},Nk={},a9=s.memo(e=>{const{className:t,style:n=nn.EmptyCssProperties,white:o="transparent",grey:r="grey",size:i=8,borderRadius:l,boxShadow:d,renderers:c=Nk,children:u,...f}=e,p=u,h=s.useMemo(()=>Object.assign({borderRadius:l,boxShadow:d,position:"absolute",top:"0px",left:"0px",width:"100%",height:"100%",background:`url(${Bk(o,r,i,c?.canvas)}) center left`},n),[o,r,i,c]);return s.isValidElement(u)?s.cloneElement(u,{...p.props}):a.jsx("div",{style:h,...f})}),Vk=s.memo(e=>{const{selectedColor:t,onSelectColor:n,onPreviewColor:o,onClick:r,onKeyDown:i,onMouseOver:l,onMouseLeave:d,onFocus:c,style:u=nn.EmptyCssProperties,children:f,alphaWhite:p,alphaGrey:h,darkMode:m,alphaCheckSize:g=7,...x}=e;if(!t)throw new Error("a selectedColor is required");const y=s.useCallback(I=>{r?.(I),I.isDefaultPrevented()||(I.ctrlKey?o?.(t.toRGBA()):n?.(t.toRGBA()))},[n,o,r,t]),v=s.useCallback(I=>{l?.(I),I.isDefaultPrevented()||o?.(t.toRGBA())},[o,l,t]),b=s.useCallback(I=>{d?.(I),I.isDefaultPrevented()},[o,d]),C=s.useCallback(I=>{c?.(I),I.isDefaultPrevented()||o?.(t.toRGBA())},[o,c,t]),k=s.useCallback(I=>{i?.(I),I.isDefaultPrevented()||I.keyCode===Nt.Enter&&n?.(t.toRGBA())},[n,i,t]),_=s.useMemo(()=>t.toRGBA().alpha===1?null:a.jsx(a9,{size:g,white:p,grey:h,style:{position:"absolute",width:"calc(100% - 1.5px)",height:"calc(100% - 1.5px)",top:"0.75px",left:"0.75px"}}),[p,h,t]);return a.jsxs("div",{style:{position:"absolute",height:"100%",width:"100%",top:"0px",left:"0px",cursor:"pointer",outline:"none",...u},tabIndex:0,...x,onClick:y,onKeyDown:k,onMouseOver:v,onMouseLeave:b,onFocus:C,children:[_,a.jsx("div",{style:{position:"absolute",top:"0px",left:"0px",height:"100%",width:"100%",background:t.toCSS(m)},children:f})]})}),e1=s.memo(e=>{const{schemeColorLookup:t,selectedColor:n,previewColor:o,colorDef:r,onSelectColorDef:i,onPreviewColorDef:l,swatchProps:d,defaultButtonSize:c=24,isLarge:u=!1,compareRGB:f=!1,darkMode:p=!1,...h}=e,m=new N.Color({val:r.definition.val,adjs:r.definition.adjs},_=>t(_)),g=f?m.toRGBA().toString():m.toString(),x=n&&(f?n.toRGBA().toString():n.toString())===g,y=o&&(f?o.toRGBA().toString():o.toString())===g,v=[];v.push({[N.IColor.AdjustmentType.Inv]:!0}),v.push({[N.IColor.AdjustmentType.Alpha]:100});const b=m.adjust(v),C=s.useCallback(()=>{i?.(r)},[i,r]),k=s.useCallback(_=>{l?.(_?r:null)},[l,r]);return a.jsx(Zo,{disableInteractive:!0,PopperProps:{style:{pointerEvents:"none"},disablePortal:!0,popperOptions:{strategy:"fixed",modifiers:[{name:"preventOverflow",enabled:!0,options:{boundariesElement:"viewport"}}]}},title:r.description,placement:"bottom-start",children:a.jsx("div",{style:{width:c*(u?1.2:1)+"px",height:c*(u?1.2:1)+"px",position:"relative",boxSizing:"border-box",cursor:"pointer",outline:"none"},...h,children:a.jsxs(Vk,{selectedColor:m,title:null,onSelectColor:C,onPreviewColor:k,alphaCheckSize:u?9:void 0,darkMode:p,...d,children:[a.jsx("div",{style:{position:"absolute",width:"100%",height:"100%",top:"0px",left:"0px",pointerEvents:"none",borderColor:b.toRGBA(p).toString(),borderWidth:"2px",borderStyle:"solid",boxSizing:"border-box",opacity:x?"1":"0"}}),a.jsx("div",{style:{position:"absolute",width:.33*c*(u?1.2:1)+"px",height:.33*c*(u?1.2:1)+"px",left:"calc(50% - 0.5px)",top:"calc(50% - 0.5px)",transform:"translate(-50%,-50%)",pointerEvents:"none",background:b.toRGBA(p).toString(),borderRadius:"50%",opacity:y?"1":"0"}})]})})})}),_a=s.memo(e=>{const{title:t,schemeColorLookup:n,colorDefs:o,selectedColor:r,previewColor:i,onSelectColorDef:l,onPreviewColorDef:d,style:c=nn.EmptyCssProperties,compareRGB:u=!1,darkMode:f,swatchProps:p,...h}=e;let m;if(Array.isArray(o[0]))m=o;else{m=[];for(let b=0;b<o.length;b++)m.push([o[b]])}const g=s.useCallback(b=>{l?.(b)},[l]),x=s.useCallback(b=>{d?.(b)},[d]),y=s.useMemo(()=>{let b=[];for(let C=0;C<m.length;C++){let k=[],_=m[C];for(let M=0;M<_.length;M++){let F=_[M];k.push(a.jsx(e1,{schemeColorLookup:n,colorDef:F,selectedColor:r,previewColor:i,onSelectColorDef:g,onPreviewColorDef:x,swatchProps:p,compareRGB:u,darkMode:f},C+" "+M))}let I=a.jsx(V.Box,{className:"button-col",sx:{display:"flex",flexDirection:"column",justifyContent:"space-between",boxShadow:M=>M.shadows[2],borderRadius:"2px",overflow:"hidden"},children:k},""+C);b.push(I)}return b},[m,r,i,g,x]),v=s.useMemo(()=>t?a.jsx(V.Typography,{noWrap:!0,component:"div",sx:{display:"flex",flexShrink:"0",paddingLeft:"6px",paddingBottom:"4px",paddingTop:"0px",userSelect:"none",color:b=>b.palette.text.secondary},children:t}):null,[t]);return a.jsxs(V.Box,{style:{...c},children:[v,a.jsx(V.Box,{sx:{display:"flex",flexDirection:"row",gap:"6px",marginBottom:"14px",flexWrap:"wrap",justifyContent:"flex-start"},...h,children:y})]})}),ur=(e,t)=>({description:e,definition:{val:t,adjs:[]}}),Kn=(e,t,n,o,r,i)=>{const l=ur(e,t);o?.push(l);const d=new N.Color({val:l.definition.val,adjs:l.definition.adjs},n),c=d.toString();r?.set(c,d);const u=d.toRGBA().toString();i?.set(u,d)},Hk=s.lazy(()=>Promise.resolve().then(()=>require("./DfPqfTiRAZ9i5RVA.cjs"))),s9=s.memo(s.forwardRef((e,t)=>{const{selectedColor:n=null,previewColor:o=e.selectedColor??null,recentColors:r,schemeLookup:i,disableAlpha:l=!1,previewDebounceTime:d=100,initialPanelType:c,defaultButtonSize:u=24,width:f,onElementLoad:p,onDone:h,onEyeDropStart:m,onEyeDropStop:g,onPreviewColor:x,onPreviewColorImmediate:y,onSelectColor:v,autoColor:b,autoColorLabel:C="Automatic",autoColorPosition:k=li.Start,compareRGB:_=!1,darkMode:I=!1,...M}=e,F=o||n,j=me(x,[x]),T=me(y,[y]),w=me(v,[v]),S=me(m,[m]),D=me(g,[g]),[E,R]=s.useState(!1),A=xr(),L=s.useMemo(()=>i||N.Color.getDefaultSchemeLookup(),[i]),P=s.useMemo(()=>{const oe=new Map,fe=new Map,Te=[];Kn("Primary Background","bg1",L,Te,oe,fe),Kn("Primary Text","tx1",L,Te,oe,fe),Kn("Secondary Background","bg2",L,Te,oe,fe),Kn("Secondary Text","tx2",L,Te,oe,fe),Kn("Accent 1","accent1",L,Te,oe,fe),Kn("Accent 2","accent2",L,Te,oe,fe),Kn("Accent 3","accent3",L,Te,oe,fe),Kn("Accent 4","accent4",L,Te,oe,fe),Kn("Accent 5","accent5",L,Te,oe,fe),Kn("Accent 6","accent6",L,Te,oe,fe);const Le=N.ITheme.buildPalette(Te,L,oe,fe),ce=[];if(Kn("Dark Red","C00000",L,ce,oe,fe),Kn("Red","FF0000",L,ce,oe,fe),Kn("Orange","FFC000",L,ce,oe,fe),Kn("Yellow","FFFF00",L,ce,oe,fe),Kn("Light Green","92D050",L,ce,oe,fe),Kn("Green","00B050",L,ce,oe,fe),Kn("Light Blue","00B0F0",L,ce,oe,fe),Kn("Blue","0070C0",L,ce,oe,fe),Kn("Dark Blue","002060",L,ce,oe,fe),l?Kn("Purple Is A Fruit","7030A0",L,ce,oe,fe):Kn("Transparent","00000000",L,ce,oe,fe),b){const ze=b.toString();oe.set(ze,b)}const he=new Map,we=typeof r=="function"?r():r,Y=[];for(let ze=0;we&&ze<we.length;ze++){const ht=we[ze].toString();he.set(ht,we[ze]),Y.push({description:"Recent "+(ze+1),definition:{val:we[ze].toString()}})}return{primaryColors:Te,modifiedPresets:Le,standardColors:ce,recentColorsLimited:Y,mapAllPresets:oe,mapAllPresetsRGB:fe,mapRecent:he}},[L,r,l,b]);s.useEffect(()=>{p?.()},[]);const[z,U]=s.useState(!1),O=s.useCallback(()=>{U(oe=>!oe)},[]);s.useEffect(()=>{if(c)U(c===l9.Custom);else if(n){let oe=n.toString(),fe=P.mapAllPresets.get(oe);fe||(oe=n.toRGBA().toString(),fe=P.mapAllPresetsRGB.get(oe));const Te=P.mapRecent.get(oe);U(!fe&&!Te)}},[n,c]);const q=s.useCallback(N.CommonUtils.debounce(oe=>{j?.(oe)},d),[j,d]),[X,re]=s.useState();s.useEffect(()=>{re(o||n)},[o,n]);const $=me(oe=>{T&&(T(oe),q(oe))},[T]),W=me(oe=>{$(oe?new N.Color({val:oe.definition.val,adjs:oe.definition.adjs},L):null)},[L]),B=s.useCallback(oe=>{oe.ctrlKey&&U(!0)},[]),Z=me(oe=>{let fe=!1;if(oe){const Te=oe.toString();fe=!P.mapAllPresets.has(Te)}w?.(oe,fe)},[w,P]),G=me(oe=>{const fe=oe?new N.Color({val:oe.definition.val,adjs:oe.definition.adjs},L):null;Promise.resolve(h?.()).then(()=>{Z(fe)})},[L,h]),ie=me(oe=>{$(oe?new N.Color(oe,L):null)},[L]),ee=s.useMemo(()=>window.EyeDropper===void 0?a.jsx(a.Fragment,{}):a.jsx(V.IconButton,{"aria-label":"eye dropper",size:"small",sx:{color:oe=>oe.palette.text.icon??oe.palette.action.active},onClick:async()=>{R(!0),S?.(),await new EyeDropper().open().then(oe=>{R(!1),D?.();let fe=new N.Color(oe.sRGBHex),Te=fe.toString(),Le=P.mapAllPresets.get(Te);if(Le||(Te=fe.toRGBA().toString(),Le=P.mapAllPresetsRGB.get(Te)),!Le){const ce=fe.toRGBA(),he=3;let we=255;P.mapAllPresetsRGB.forEach((Y,ze)=>{const ht=Y.toRGBA(),ut=Math.abs(ht.red-ce.red)+Math.abs(ht.blue-ce.blue)+Math.abs(ht.green-ce.green);ut<he&&ut<we&&(Le=Y)})}U(!Le),$(Le||fe)}).catch(oe=>{R(!1),oe?.name!=="AbortError"&&console.error(oe)})},children:a.jsx(an.Colorize,{})}),[P,I]),le=s.useMemo(()=>{if(!z)return;const oe={opacity:z?1:"0",position:"absolute",top:"0px",left:"0px",width:"100%",height:"100%",boxSizing:"border-box"};return a.jsx(s.Suspense,{fallback:a.jsx("div",{style:oe,children:a.jsx(wi,{})}),children:a.jsx(Hk,{style:oe,selectedColor:F?F.toRGBA().toString():"transparent",onColorChange:ie,disableAlpha:l})})},[z,F]),ue=s.useMemo(()=>({onClick:B,alphaGrey:A.palette.text.icon??A.palette.action.active}),[B,A]),de=s.useMemo(()=>{if(!b)return null;const oe={description:C,definition:{val:b.getVal(),adjs:b.getAdjustments()}};return a.jsx(a.Fragment,{children:a.jsxs(V.MenuItem,{sx:{display:"flex",color:fe=>fe.palette.text.secondary},onMouseOver:()=>{W(null)},onClick:()=>{G(null)},children:[a.jsx(V.Box,{sx:{flex:"none",boxShadow:fe=>fe.shadows[2],borderRadius:fe=>fe.spacing(.5),overflow:"hidden"},children:a.jsx(e1,{schemeColorLookup:L,colorDef:oe,selectedColor:n===null?b:n,previewColor:o===null?b:o,defaultButtonSize:u,isLarge:!0,darkMode:I,compareRGB:_,swatchProps:ue})}),a.jsx(V.Typography,{noWrap:!0,component:"div",style:{display:"flex",flex:"1 1 100%",marginLeft:"8px",userSelect:"none"},children:C})]})})},[b,C,L,n,o]);return a.jsxs(V.Box,{ref:t,sx:{width:f,outline:"none",padding:"10px 10px",overflow:"hidden",boxSizing:"content-box"},...M,children:[a.jsxs("div",{style:{position:"relative",display:"flex"},children:[a.jsxs("div",{style:{opacity:z?"0":1},children:[de&&k===li.Start?a.jsxs(a.Fragment,{children:[de,a.jsx(V.Divider,{light:!0,style:{marginTop:"2px",marginBottom:"10px"}})]}):null,a.jsx(_a,{title:"Theme Colors",schemeColorLookup:L,colorDefs:P.primaryColors,selectedColor:n,previewColor:o===void 0?n:o,swatchProps:ue,onPreviewColorDef:W,onSelectColorDef:G,compareRGB:_,darkMode:I}),a.jsx(_a,{schemeColorLookup:L,colorDefs:P.modifiedPresets,selectedColor:n,previewColor:o===void 0?n:o,swatchProps:ue,onPreviewColorDef:W,onSelectColorDef:G,compareRGB:_,darkMode:I}),a.jsx(V.Divider,{light:!0,style:{marginBottom:"10px"}}),a.jsx(_a,{title:"Standard Colors",schemeColorLookup:L,colorDefs:P.standardColors,selectedColor:n,previewColor:o===void 0?n:o,swatchProps:ue,onPreviewColorDef:W,onSelectColorDef:G,compareRGB:_,darkMode:I}),a.jsxs("div",{style:{opacity:P.recentColorsLimited.length===0?"0":void 0,display:P.recentColorsLimited.length===0?"none":void 0},children:[a.jsx(V.Divider,{light:!0,style:{marginBottom:"10px"}}),a.jsx(_a,{title:"Recent Colors",schemeColorLookup:L,colorDefs:P.recentColorsLimited,selectedColor:n,previewColor:o===void 0?n:o,swatchProps:ue,onPreviewColorDef:W,onSelectColorDef:G,compareRGB:_,darkMode:I})]}),de&&k===li.End?a.jsxs(a.Fragment,{children:[a.jsx(V.Divider,{light:!0,sx:{marginTop:"2px",marginBottom:"2px"}}),de,a.jsx("div",{style:{marginBottom:"2px"}})]}):null]}),le]}),a.jsx(V.Divider,{light:!0,style:{marginBottom:"10px"}}),a.jsxs("div",{style:{display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"space-around",gap:"8px",paddingLeft:"2px",paddingRight:"2px"},children:[ee,a.jsx("div",{style:{flex:"1 1 100%",background:"pink"}}),a.jsx(V.Button,{style:{minWidth:"75px",maxWidth:"75px"},value:"check",variant:"outlined",size:"small",onClick:()=>{O()},children:z?a.jsx("div",{children:"Preset"}):a.jsx("div",{children:"Custom"})}),a.jsx(V.Button,{variant:"contained",size:"small",style:{minWidth:"75px"},onClick:()=>{Promise.resolve(h?.()).then(()=>{Z(X)})},children:"Done"})]})]})})),$k=a.jsx(Rg,{}),b2=s.memo(s.forwardRef((e,t)=>{const{selectedColor:n,quickColor:o,icon:r=$k,tooltip:i,label:l,onPreviewColor:d,onPreviewColorImmediate:c,onSelectColor:u,variant:f=lr.Toolbar,panelProps:p,shouldCloseFloatAll:h=!0,compareRGB:m=!1,darkMode:g=!1,...x}=e,y=me(d,[d]),v=me(c,[c]),b=me(u,[u]),[C,k]=s.useState(()=>{}),_=o||C||n||p?.autoColor,I=r,M=s.useRef(!1),F=s.useCallback(()=>{},[]),j=me(()=>{k(n)},[n]),T=me(z=>{M.current||(k(z),y?.(z))},[y]),w=me(z=>{M.current||(k(z),v?.(z))},[v]),S=me((z,U)=>{M.current||(k(void 0),b?.(z,U))},[b]),D=s.useMemo(()=>a.jsx(V.Box,{sx:{width:"24px",height:"24px",color:"inherit","--sxl-color-active":`${_?.toCSS(g)??"transparent"}`,"& .activeColor":{fill:`${_?.toCSS(g)??"transparent"}`},"& .style_grey":{fill:z=>z.palette.text.icon??z.palette.action.active}},children:I}),[_,I,g]),E=me(z=>{b?.(o,!1)},[b,o]),[R,A]=s.useState(!1),L=s.useCallback(z=>{const{closeFloat:U,closeFloatAll:O}=z;return a.jsx(s9,{...p,selectedColor:n,previewColor:C,onDone:h?O:U,onKeyDown:q=>{q.which===Nt.Enter&&(h?O():U())},onPreviewColorImmediate:w,onPreviewColor:T,onSelectColor:S,onEyeDropStart:()=>A(!0),onEyeDropStop:()=>A(!1),compareRGB:m,darkMode:g})},[n,C,h,_,p?.autoColor,g]),P={onQuickClick:o?E:void 0,createPopupPanel:L,popupProps:{popperProps:{resizeOnOverflow:!1}},onPopupOpen:j,onPopupClose:F,tooltip:i||l||"Color",label:l,icon:D,...x};return f===lr.Toolbar?a.jsx(gr,{ref:t,...P}):a.jsx(Wl,{ref:t,...P})})),Xa=82,yd=e=>{const{styleColor:t,length:n=Xa,width:o=1,dashArray:r=null,sx:i,isDouble:l=!1,isAngled:d=!1,darkMode:c=!1,...u}=e;return a.jsx(V.SvgIcon,{sx:{width:`${n}px`,height:`${o}px`,color:"inherit",overflow:"visible","& .activeColor":{stroke:f=>`${t?t.toRGBA(c).toString():f.palette.text.icon??f.palette.action.active}`},"& .style_grey":{stroke:f=>f.palette.text.icon??f.palette.action.active},...i},height:o,width:n,viewBox:`0 0 ${n} ${o}`,...u,children:a.jsx(Cp,{length:n,width:o,dashArray:r,isDouble:l,isAngled:d,className:"activeColor"})})},c9=s.memo(s.forwardRef((e,t)=>{const{variant:n,showLabels:o=!1,disabled:r=!1,createPopupPanel:i,styleColor:l,selectedStyle:d,onSelectStyle:c,showNone:u=!0,darkMode:f,sx:p,...h}=e,m=me(c,[]),g=s.useCallback(b=>{const{popupContainer:C,floatReference:k,closeFloat:_,...I}=b,M=[],F=N.IBorder.BuiltInDefinitionsArray;for(let j=0;j<F.length;j++){const T=F[j];if(T.description==="None"&&!u)continue;const w=a.jsx(yd,{styleColor:l,length:Xa,width:T.width,darkMode:f,dashArray:T.pattern,isDouble:T.description.toLowerCase().includes("double"),isAngled:T.description.toLowerCase().includes("slant")});let S=null;S=o?a.jsxs(a.Fragment,{children:[a.jsx(V.Box,{sx:{marginRight:"6px"},children:T.description}),a.jsxs(V.Box,{sx:{marginLeft:"6px",marginRight:"6px",display:"flex",alignItems:"center",flex:"1 1 100%"},children:[a.jsx("div",{style:{flex:"1 1 100%"}}),w]})]}):T.description==="None"?"None":w,M.push(a.jsx(Po,{className:"border-stroke",tabIndex:0,sx:{height:"28px","& svg path.activeColor":{filter:h5(4)},paddingLeft:"16px",background:`linear-gradient(${st.alpha("#fff",pn(5))}, ${st.alpha("#fff",pn(5))})`},tooltipProps:{description:o?"":T.description},icon:null,disabled:r,onMouseDown:D=>D.preventDefault(),onMouseUp:()=>{_(),m(T.style)},onKeyDown:D=>{D.which===Nt.Enter&&_()},selected:T.style===d,parentFloat:k,children:S},j))}return a.jsx(V.Box,{sx:{display:"flex",flexDirection:"column",paddingTop:"4px",paddingBottom:"4px"},children:M})},[r,u,l,d,f]),x=s.useMemo(()=>{const b=N.IBorder.BuiltInDefinitions.get(d);let C;return C=b.description==="None"?a.jsx(V.Box,{sx:{minWidth:`${Xa}px`},children:"None"}):a.jsx(yd,{styleColor:l,length:Xa,width:b.width,dashArray:b.pattern,darkMode:f,isDouble:b.description.toLowerCase().includes("double"),isAngled:b.description.toLowerCase().includes("slant")}),a.jsx(V.Box,{className:"border-stroke",sx:{paddingLeft:"12px",marginLeft:"4px",marginRight:"4px",height:"24px",display:"flex",alignItems:"center","& svg path.activeColor":{filter:h5()}},children:C})},[d,l]),y=s.useMemo(()=>N.IBorder.BuiltInDefinitions.get(d),[d]),v={disabled:r,icon:x,tooltip:"Border Style: "+y.description,sx:{background:`linear-gradient(${st.alpha("#fff",pn(5))}, ${st.alpha("#fff",pn(5))})`,...p},createPopupPanel:g,...h};return n===lr.Toolbar?a.jsx(gr,{...v}):a.jsx(Wl,{...v})})),d9=s.memo(s.forwardRef((e,t)=>{const{autoColor:n=null,schemeLookup:o,autoStrokeStyle:r=N.IBorder.StrokeStyle.Thin,disabled:i=!1,darkMode:l=!1,showStylingBefore:d=!0,onSelectBorder:c,onPreviewBorder:u,selectedBorder:f,createTemporaryBorder:p,...h}=e,m=me(c,[c]),g=me(u,[u]),[x,y]=s.useState(),[v,b]=s.useState(),C=x??r,k=v??n,_=f||{bottom:{style:r,color:n?.toString()}},I=me(S=>{const D={},E=S?Object.keys(S):[];let R=!1;for(let X=0;X<E.length;X++)S[E[X]]?.style&&(D[E[X]]={style:S[E[X]].style,color:S[E[X]].color},R||D[E[X]].style===N.IBorder.StrokeStyle.None||(R=!0));E.length<6&&(R=!0);const A=R?D.left:null,L=R?D.top:null,P=R?D.right:null,z=R?D.bottom:null,U=R?D.vertical:null,O=R?D.horizontal:null;let q="";return L||A||(q+="M 3,5 H 5 V 3 H 3 "),L||(q+="M 7,5 H 9 V 3 H 7 "),L||U||(q+="M 11,5 h 2 V 3 h -2 "),L||(q+="M 15,5 h 2 V 3 h -2 "),L||P||(q+="M 19,5 h 2 V 3 h -2 "),A||(q+="M 3,9 H 5 V 7 H 3 "),U||(q+="M 11,9 h 2 V 7 h -2 "),P||(q+="M 19,9 h 2 V 7 h -2 "),O||A||(q+="M 3,13 H 5 V 11 H 3 "),O||(q+="M 7,13 H 9 V 11 H 7 "),O||U||(q+="M 11,13 h 2 v -2 h -2 "),O||P||(q+="M 19,13 h 2 v -2 h -2 "),O||(q+="M 15,13 h 2 v -2 h -2 "),A||(q+="M 3,17 H 5 V 15 H 3 "),U||(q+="M 11,17 h 2 v -2 h -2 "),P||(q+="M 19,17 h 2 v -2 h -2 "),z||A||(q+="M 3,21 H 5 V 19 H 3 "),z||(q+="M 7,21 H 9 V 19 H 7 "),z||U||(q+="M 11,21 h 2 v -2 h -2 "),z||(q+="M 15,21 h 2 v -2 h -2 "),z||P||(q+="M 19,21 h 2 v -2 h -2 "),a.jsxs("div",{style:{width:"24px",height:"24px",position:"relative"},children:[a.jsx(V.SvgIcon,{sx:{position:"absolute",top:"0px",left:"0px","& path":{opacity:"0.8",transform:"translate(-0.5px, -0.5px)"}},children:a.jsx("path",{d:q})}),a.jsx(V.Box,{sx:{width:"24px",height:"24px",display:"flex",alignItems:"center",justifyContent:"center",position:"absolute",top:"-1px",left:"-1px","& svg path":{filter:$l}},children:a.jsx(d2,{getBorderAt:(X,re)=>{if(!p||E.length===0)return null;const $=X.rowIndex,W=X.colIndex,B={};return $===0?(B.top=D.top,B.bottom=D.horizontal):(B.top=D.horizontal,B.bottom=D.bottom),W===0?(B.left=D.left,B.right=D.vertical):(B.left=D.vertical,B.right=D.right),p?.(B)},width:18,height:18,darkMode:l,style:{top:"0px",left:"0px",width:"18px",height:"18px",minWidth:"18px",minHeight:"18px",position:"relative"}})})]})},[k,C,l]),M=s.useCallback((S,D,E)=>{let R=null;if(S&&S.length>0){let A=null;(D||E)&&(A={style:E,color:D?.toString()??null}),R={};for(let L=0;L<S.length;L++)R[S[L]]=A}return R},[]),F=s.useCallback(S=>{m?.(S)},[]),j=s.useCallback(S=>{g?.(S)},[]),T=s.useCallback(S=>{const{closeFloatAll:D,floatReference:E}=S,R=(P,z,U="bottom",O=!1)=>{const q=M(P,k??null,O?N.IBorder.StrokeStyle.None:C??null),X=O?M([],k??null,C??null):q;return a.jsx(Wo,{icon:I(X),sx:{background:`linear-gradient(${st.alpha("#fff",pn(5))}, ${st.alpha("#fff",pn(5))})`},tooltipProps:{label:z,simple:!0,placement:U},onClick:()=>{D(),j(q),F(q)}})},A=a.jsxs(a.Fragment,{children:[a.jsxs(V.Box,{sx:{display:"flex",padding:"6px 16px",justifyContent:"center",rowGap:"2px",gap:"2px"},children:[R([N.IBorder.Edge.Left,N.IBorder.Edge.Top,N.IBorder.Edge.Right,N.IBorder.Edge.Bottom,N.IBorder.Edge.Horizontal,N.IBorder.Edge.Vertical],"All Borders","top"),R([N.IBorder.Edge.Horizontal,N.IBorder.Edge.Vertical],"Inner Borders","top"),R([N.IBorder.Edge.Horizontal],"Inside Horizontal Borders","top"),R([N.IBorder.Edge.Vertical],"Inside Vertical Borders","top"),R([N.IBorder.Edge.Left,N.IBorder.Edge.Top,N.IBorder.Edge.Right,N.IBorder.Edge.Bottom],"Outside Borders","top")]}),a.jsxs(V.Box,{sx:{display:"flex",padding:"6px 16px",justifyContent:"center",rowGap:"2px",gap:"2px"},children:[R([N.IBorder.Edge.Left],"Left Borders"),R([N.IBorder.Edge.Top],"Top Borders"),R([N.IBorder.Edge.Right],"Right Borders"),R([N.IBorder.Edge.Bottom],"Bottom Borders"),R([N.IBorder.Edge.Left,N.IBorder.Edge.Top,N.IBorder.Edge.Right,N.IBorder.Edge.Bottom,N.IBorder.Edge.Horizontal,N.IBorder.Edge.Vertical,N.IBorder.Edge.DiagonalUp,N.IBorder.Edge.DiagonalDown],"No Borders","bottom",!0)]})]}),L=a.jsx(a.Fragment,{children:a.jsxs(V.Box,{sx:{display:"flex",padding:"6px 16px",flexDirection:"row",gap:"6px"},children:[a.jsx(b2,{variant:lr.Toolbar,icon:a.jsx(Fd,{}),selectedColor:C===N.IBorder.StrokeStyle.None?new N.Color("transparent"):k,onPreviewColor:P=>{b(P)},onSelectColor:(P,z)=>{b(P)},darkMode:l,tooltip:"Border Color",panelProps:{disableAlpha:!0,autoColor:n,schemeLookup:o},disabled:i||C===N.IBorder.StrokeStyle.None,parentFloat:E,shouldCloseFloatAll:!1}),a.jsx(c9,{selectedStyle:C,onSelectStyle:y,styleColor:k,darkMode:l,variant:lr.Toolbar,parentFloat:E})]})});return a.jsxs(V.Box,{sx:{display:"flex",flexDirection:"column",paddingTop:"4px",paddingBottom:"4px"},onClick:P=>P.stopPropagation(),children:[d?L:A,a.jsx(Et,{orientation:"horizontal"}),d?A:L]})},[C,k,n,o,l]),w=s.useMemo(()=>I(_),[_,l]);return a.jsx(gr,{ref:t,createPopupPanel:T,popupProps:{popperProps:{resizeOnOverflow:!1}},createTooltip:({children:S},D)=>a.jsx(go,{label:"Borders",description:"Set the borders.",disabled:D,children:S}),onQuickClick:()=>{m?.(_)},quickButtonProps:{sx:{}},disabled:i,icon:w,...h})})),u9=s.memo(s.forwardRef((e,t)=>{const{commands:n,command:o,commandHook:r,variant:i=zt.Toolbar,disabled:l=!1,autoColor:d,autoStrokeStyle:c,schemeLookup:u,createTemporaryBorder:f,selectedBorder:p,onSelectBorder:h,darkMode:m,...g}=e,x=Bn(n,["formatBorder"]),y=o??x[0],v=y?.context()??null,b=v?.autoColor??d,C=v?.autoStyle??c,k=p??v?.quickBorder,_=m??v?.darkMode,I=f??v?.createTemporaryBorder,M=u??v?.schemeLookup,F=me(T=>{v?.onBorderSelect&&v.onBorderSelect(T),h?.(T),y?.execute(T,r)},[y,h,r]),j=s.useCallback((T,w)=>{const{children:S,title:D,...E}=T;let R=T.children;return(y?.disabled()||l)&&(R=a.jsx("div",{children:R})),a.jsx(Si,{command:y,placement:i===zt.Toolbar?"bottom-start":"right-start",disabled:w,...E,children:R})},[y,l]);return a.jsx(d9,{ref:t,autoColor:b,darkMode:_,autoStrokeStyle:C,createTemporaryBorder:I,schemeLookup:M,selectedBorder:k,onSelectBorder:F,createTooltip:j,disabled:l||!y||y.disabled(),...g})})),h9=s.memo(s.forwardRef((e,t)=>{const{commands:n,commandHook:o,scope:r,disabled:i=!1,...l}=e,d=s.useCallback((c,u)=>{const f={variant:zt.Menuitem,commandHook:o,scope:r,disabled:i},p=a.jsxs(a.Fragment,{children:[a.jsx(Re,{...f,command:u.getCommand("mergeToggle"),icon:ve(a.jsx(p5,{}))}),a.jsx(Re,{...f,command:u.getCommand("mergeHorizontal"),icon:ve(a.jsx(Ig,{}))}),a.jsx(Re,{...f,command:u.getCommand("mergeVertical"),icon:ve(a.jsx(Dg,{}))}),a.jsx(Et,{orientation:"horizontal"}),a.jsx(Re,{...f,command:u.getCommand("unmerge"),icon:ve(a.jsx(f8,{}))})]});return dn({...c,children:p})},[i,o,r]);return a.jsx(bn,{ref:t,commands:n,quickCommand:"mergeToggle",commandHook:o,scope:r,tooltip:"Combine or split cells.",createPopupPanel:d,icon:ve(a.jsx(p5,{})),...l})})),p9=s.memo(s.forwardRef((e,t)=>{const{commands:n,commandHook:o,scope:r,disabled:i=!1,...l}=e,d=s.useCallback((c,u)=>{const f={variant:zt.Menuitem,commandHook:o,scope:r,disabled:i},p=a.jsxs(a.Fragment,{children:[a.jsx(Re,{...f,command:u.getCommand("freezeToggle"),icon:ve(a.jsx(Ag,{}))}),a.jsx(Re,{...f,command:u.getCommand("freezeToggleHorizontal"),icon:ve(a.jsx(Og,{}))}),a.jsx(Re,{...f,command:u.getCommand("freezeToggleVertical"),icon:ve(a.jsx(Pg,{}))}),a.jsx(Et,{orientation:"horizontal"}),a.jsx(Re,{...f,command:u.getCommand("unfreeze"),icon:a.jsx(f8,{})})]});return dn({...c,children:p})},[i,o,r]);return a.jsx(bn,{ref:t,commands:n,commandHook:o,createPopupPanel:d,quickCommand:"freezeToggle",label:"Freeze Panes",tooltip:"Freeze a portion of the sheet to keep it visible while you scroll through the rest of the sheet.\\n\\nUseful for viewing data in other parts of your worksheet without losing your headers or labels.",icon:a.jsx(Lg,{}),...l})})),f9=s.memo(s.forwardRef((e,t)=>{const{commands:n,commandHook:o,scope:r,disabled:i=!1,...l}=e,d=s.useCallback((c,u)=>{const f={variant:zt.Menuitem,commandHook:o,scope:r,disabled:i},p=a.jsxs(a.Fragment,{children:[a.jsx(Re,{...f,command:u.getCommand("find"),icon:ve(a.jsx(P5,{}))}),a.jsx(Re,{...f,command:u.getCommand("findReplace"),icon:ve(a.jsx(R8,{}))}),a.jsx(Re,{...f,command:u.getCommand("goto"),icon:ve(a.jsx(ny,{}))})]});return dn({...c,children:p})},[i,o,r]);return a.jsx(bn,{ref:t,commands:n,commandHook:o,createPopupPanel:d,label:"Find & Select",tooltip:"Find and replace cells or go to a specific location.",quickCommand:"find",icon:ve(a.jsx(P5,{})),...l})})),m9=s.memo(s.forwardRef((e,t)=>{const{command:n,commandHook:o,showQuickButtons:r=!!e.commands,commands:i,fontSizes:l=PS.DefaultFontSizes,disabled:d=!1,parentFloat:c,sx:u,...f}=e;c0(n);const p=()=>n?.state()?.toString()||"11",[h,m]=s.useState(p),g=me(()=>{const I=parseFloat(h);isNaN(I)?m(p()):parseFloat(p())!==I&&n.execute(I,o)},[p,n,h,o]);s.useEffect(()=>{m(p())},[n?.state()]);const x=s.useMemo(()=>{if(!o)return null;const I={...o};return delete I.beforeExecute,I},[o]),y=Bn(i,["formatFontSizeIncrease","formatFontSizeDecrease"]),v=s.useMemo(()=>y?a.jsxs(V.Box,{className:Fn("quick-buttons",{}),sx:{display:"flex",alignItems:"center",justifyContent:"center"},onClick:I=>I.stopPropagation(),children:[a.jsx(Re,{command:y[0],commandHook:x,icon:ve(a.jsx(Nx,{}))}),a.jsx(Re,{command:y[1],icon:ve(a.jsx(Vx,{}))})]}):null,[y]),b=xr(),C=s.useMemo(()=>`${N.IFont.getSharedMeasurer()("12.3",Math.round(b.typography.fontSize),b.typography.fontFamily).width}px`,[b]),k=s.useCallback(I=>{const{onMouseDown:M,onMouseUp:F,...j}=I;return a.jsx(V.IconButton,{component:"div",...j,disableRipple:!0,children:a.jsx(V.Input,{inputMode:"numeric",disabled:d||!n||n.disabled(),inputProps:{name:"font-input",autoComplete:"off",tabIndex:0,type:"number",maxLength:4,max:409,min:2},sx:{"&::before":{borderBottom:"1px solid transparent"},"&:hover:not(.Mui-disabled):not(.Mui-focused):not(.Mui-error):before":{borderBottom:T=>`1px solid ${T.palette.text.icon??T.palette.action.active}`},"&:hover:not(.Mui-disabled):not(.Mui-error):before":{borderBottom:T=>`1px solid ${T.palette.error.main}`},"::after":{borderBottom:T=>`1px solid ${T.palette.primary.main}`},paddingTop:"0px",paddingBottom:"0px",paddingLeft:"0px",paddingRight:"0px",fontSize:T=>`${Math.round(T.typography.fontSize)}px`,width:C,color:T=>T.palette.text.secondary,input:{padding:"0 0",textAlign:"center",MozAppearance:"textfield","&:hover:not(.Mui-disabled):not(.Mui-error)":{color:T=>T.palette.text.primary},"&:focus:not(.Mui-disabled):not(.Mui-error)":{color:T=>T.palette.text.primary}},"input::-webkit-inner-spin-button":{WebkitAppearance:"none",margin:"0"},minHeight:"24px"},value:h,onFocus:T=>{T.target?.select()},onKeyDown:T=>{if(T.which===Nt.Enter)p()!==h&&(T.stopPropagation(),T.preventDefault(),g());else if(T.which===Nt.Escape)p()!==h&&(m(p()),setTimeout(()=>{T.target?.select()},0),T.stopPropagation(),T.preventDefault());else{if(T.key.match("[-]")||T.key.match("[0-9.]")&&(h+T.key).length>4)return T.stopPropagation(),void T.preventDefault();if(T.which===Nt.Space)return void T.preventDefault()}},onBlur:()=>{g()},onChange:T=>{if(T.target.value.length>4)return T.stopPropagation(),void T.preventDefault();m(T.target.value)}})})},[h,d,n]),_=s.useCallback(I=>{const M=w=>{n?.execute(w,o)},F=n?.state(),j=[];for(let w=0;w<l.length;w++){const S=l[w]===F;j.push(a.jsx(Po,{selected:S,icon:S?a.jsx(Ul,{}):void 0,disabled:d||!n||n.disabled(),onMouseDown:D=>{D.button===0&&D.preventDefault()},onMouseUp:D=>{D.button===0&&M(l[w])},onKeyDown:D=>{D.keyCode!==Nt.Enter&&D.keyCode!==Nt.Space||M(l[w])},sx:{paddingTop:"4px",paddingBottom:"4px"},children:a.jsx(V.Box,{sx:{display:"flex",flex:"1 1 100%",justifyContent:"end"},children:l[w]})},"fontSize-"+w))}const T=a.jsxs(V.Box,{sx:{display:"flex",flexDirection:"column",flex:"1 1 100%",overflow:"hidden"},...f,children:[v,a.jsx(Et,{orientation:"horizontal"}),a.jsx(V.Box,{sx:{overflow:"auto",flex:"1 1 100%"},children:j})]});return dn({...I,children:T})},[d,n?.state(),o]);return a.jsx(gr,{ref:t,sx:{...u},tabIndex:-1,outlined:!0,disabled:d,parentFloat:c,createPopupPanel:_,createTooltip:({children:I},M)=>a.jsx(go,{label:n?.label(),description:n?.description(),disabled:M||n?.disabled(),children:I}),createQuickButton:k,...f})})),E4=s.memo(e=>{const{selected:t,disabled:n,formattedValue:o,handleSetFormat:r,format:i,sx:l,...d}=e;return a.jsx(Po,{sx:{maxWidth:"360px",display:"flex","*":{lineHeight:"1.2"},...l},disabled:n,selected:t,icon:t?a.jsx(Ul,{}):void 0,onMouseDown:c=>{c.button===0&&c.preventDefault()},onMouseUp:c=>{c.button===0&&r(i.numberFormat)},onKeyDown:c=>{c.keyCode!==Nt.Enter&&c.keyCode!==Nt.Space||r(i.numberFormat)},...d,children:a.jsxs(V.Box,{sx:{display:"flex",flex:"1 1 100%",flexDirection:"column",overflow:"hidden"},children:[a.jsxs(V.Typography,{component:"div",children:[i.formatType,i.formatType===N.NumberFormat.Type.Custom?"…":""]}),a.jsx(V.Typography,{variant:"caption",component:"div",sx:{color:c=>st.alpha(c.palette.text.primary,.6),paddingTop:o&&o.length>0?"1px":void 0,overflow:"hidden",textOverflow:"ellipsis"},children:o&&o.length>0?o:" "})]})})}),g9=s.memo(s.forwardRef((e,t)=>{const{commands:n,commandHook:o,scope:r,sx:i,disabled:l=!1,parentFloat:d,...c}=e,u=Bn(n,["formatNumberFormat"])[0],f=u?.state()?N.NumberFormat.Styles.lookupStyle(u?.state()).formatType:N.NumberFormat.Type.General,p=s.useMemo(()=>{if(!o)return null;const x={...o};return delete x.beforeExecute,x},[o]),h=s.useCallback((x,y)=>{const v=T=>{o?.beforeExecute?.(u,u?.state()),u.execute(T,o),o?.onExecute?.(u,u?.state())},b=u?.context()(),C=N.NumberFormat.Styles.lookupPrimary(),k=[];for(let T=0;T<C.length;T++){let w="";if(b&&!b.isEmpty())try{w=b.getNumberFormat(C[T].numberFormat).displayText}catch(D){console.warn(D)}w===""&&C[T].formatType===N.NumberFormat.Type.General&&(w="No specific format");const S=C[T].formatType===f;k.push(a.jsx(E4,{selected:S,disabled:l||!u||u.disabled(),formattedValue:w,handleSetFormat:v,format:C[T]},C[T].formatType))}const _={numberFormat:"",formatType:N.NumberFormat.Type.Custom},I=f===N.NumberFormat.Type.Custom,M=a.jsx(E4,{selected:I,disabled:l||!u||u.disabled(),formattedValue:I?b.getNumberFormat().displayText:"",handleSetFormat:()=>{o?.beforeExecute?.(u,u?.state()),y.getCommand("formatNumberDialog")?.execute(u?.state()),o?.onExecute?.(u,u?.state())},format:_,sx:{flex:"0",width:"100%"}},N.NumberFormat.Type.Custom),F=a.jsxs(V.Box,{className:"quick-buttons",sx:{display:"flex",alignItems:"center",justifyContent:"center"},onClick:T=>T.stopPropagation(),children:[a.jsx(Re,{command:y.getCommand("formatNumberFormatAccountingStyle"),commandHook:p,scope:r,icon:a.jsx(Vg,{})}),a.jsx(Re,{command:y.getCommand("formatNumberFormatPercentStyle"),commandHook:p,scope:r,icon:a.jsx(zg,{})}),a.jsx(Re,{command:y.getCommand("formatNumberFormatCommaStyle"),commandHook:p,scope:r,icon:a.jsx(Fg,{})}),a.jsx(Re,{command:y.getCommand("formatNumberFormatIncreaseDecimal"),commandHook:p,scope:r,icon:ve(a.jsx(Bg,{}))}),a.jsx(Re,{command:y.getCommand("formatNumberFormatDecreaseDecimal"),commandHook:p,scope:r,icon:ve(a.jsx(Ng,{}))})]}),j=a.jsxs(V.Box,{sx:{display:"flex",flexDirection:"column",flex:"1 1 100%",overflow:"hidden"},...c,children:[F,a.jsx(Et,{orientation:"horizontal"}),a.jsx(V.Box,{sx:{overflow:"auto",flex:"1 1 100%"},children:k}),a.jsx(Et,{orientation:"horizontal"}),M]});return dn({...x,children:j})},[u?.context(),u?.state(),o,r]),m=xr(),g=s.useMemo(()=>{const x=N.NumberFormat.Type.MediumTime;return`${N.IFont.getSharedMeasurer()(x,Math.round(m.typography.fontSize),m.typography.fontFamily).width}px`},[m]);return a.jsx(bn,{ref:t,commands:n,sx:i,outlined:!0,disabled:l,parentFloat:d,createPopupPanel:h,createTooltip:({children:x},y)=>a.jsx(go,{label:u?.label(),description:u?.description(),disabled:y,children:x}),icon:a.jsx(V.Box,{sx:{display:"flex",paddingLeft:"4px",paddingRight:"4px",fontSize:x=>`${Math.round(x.typography.fontSize)}px`,color:x=>x.palette.text.secondary,fontFamily:x=>x.typography.fontFamily,width:g},children:a.jsx(V.Box,{sx:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"pre"},children:f})}),...c})})),v2=s.memo(s.forwardRef((e,t)=>{const{commands:n,commandHook:o,scope:r,disabled:i=!1,...l}=e,d=s.useCallback((c,u)=>{const f={variant:zt.Menuitem,commandHook:o,scope:"clear",disabled:i},p=a.jsxs(a.Fragment,{children:[a.jsx(Re,{...f,command:u.getCommand("clearAll"),icon:a.jsx(Hu,{})}),a.jsx(Re,{...f,command:u.getCommand("clearFormats"),icon:ve(a.jsx(Y7,{}))}),a.jsx(Re,{...f,command:u.getCommand("clearContents"),icon:ve(a.jsx(Pm,{}))}),a.jsx(Re,{...f,command:u.getCommand("clearComments")}),a.jsx(Re,{...f,command:u.getCommand("clearHyperlinks")})]});return dn({...c,children:p})},[i,o,r]);return a.jsx(bn,{ref:t,commands:n,disabled:i,commandHook:o,scope:r,label:"Clear",tooltip:"Clear everything in the cell, or remove just the formatting or contents.",createPopupPanel:d,icon:a.jsx(Hu,{}),...l})})),x9=s.memo(s.forwardRef((e,t)=>{const{commands:n,commandHook:o,scope:r,disabled:i=!1,...l}=e,d=s.useCallback((c,u)=>{const f={variant:zt.Menuitem,commandHook:o,scope:"fill",disabled:i},p=a.jsxs(a.Fragment,{children:[a.jsx(Re,{...f,command:u.getCommand("fillDown"),icon:ve(a.jsx(Di,{}))}),a.jsx(Re,{...f,command:u.getCommand("fillRight"),icon:ve(a.jsx(Di,{sx:{transform:"rotate(270deg)"}}))}),a.jsx(Re,{...f,command:u.getCommand("fillUp"),icon:ve(a.jsx(Di,{sx:{transform:"rotate(180deg)"}}))}),a.jsx(Re,{...f,command:u.getCommand("fillLeft"),icon:ve(a.jsx(Di,{sx:{transform:"rotate(90deg)"}}))})]});return dn({...c,children:p})},[i,o,r]);return a.jsx(bn,{ref:t,commands:n,disabled:i,commandHook:o,label:"Fill",tooltip:"Fill the selected cells with the value from one of the corners.",createPopupPanel:d,icon:ve(a.jsx(Di,{})),...l})})),w2=s.memo(s.forwardRef((e,t)=>{const{commands:n,commandHook:o,scope:r,disabled:i=!1,disableSheet:l=!1,preferSingleMenu:d=!0,showQuickButton:c=!0,variant:u=zt.Toolbar,...f}=e,p=["insertCellsShiftDown","insertCellsShiftRight","insertRows","insertColumns"],h=Bn(n,p),{singleCommand:m,allDisabled:g}=s.useMemo(()=>{let v=null,b=0;for(let C=0;C<h.length;C++)h[C]&&!h[C]?.disabled()&&(d&&u===zt.Menuitem&&(v=b===0?h[C]:null),b++);return{singleCommand:v,allDisabled:b===0}},[h]),x=s.useMemo(()=>{const v=new Map;return v.set("insertCellsShiftDown",ve(a.jsx(S5,{}))),v.set("insertCellsShiftRight",ve(a.jsx(S5,{sx:{transform:"rotate(270deg)"}}))),v.set("insertRows",ve(a.jsx(Ox,{}))),v.set("insertColumns",ve(a.jsx(C5,{}))),v},[]),y=s.useCallback((v,b)=>{let C=null;const k={variant:zt.Menuitem,commandHook:o,scope:"insertCells",disabled:i};l||(C=a.jsxs(a.Fragment,{children:[a.jsx(Et,{orientation:"horizontal"}),a.jsx(Re,{...k,command:b.getCommand("addSheet"),icon:ve(a.jsx(di,{}))})]}));const _=a.jsxs(a.Fragment,{children:[a.jsx(Re,{...k,command:h[0],icon:x.get(p[0])}),a.jsx(Re,{...k,command:h[1],icon:x.get(p[1])}),a.jsx(Et,{orientation:"horizontal"}),a.jsx(Re,{...k,command:h[2],icon:x.get(p[2])}),a.jsx(Re,{...k,command:h[3],icon:x.get(p[3])}),C]});return dn({...v,children:_})},[i,h,o,r,x]);return m?a.jsx(Re,{ref:t,variant:u,commandHook:o,disabled:i,command:m,icon:x.get(m.key()),...f}):a.jsx(bn,{ref:t,variant:u,quickCommand:"insertCells",commands:n,commandHook:o,scope:r,disabled:i||g,tooltip:a.jsxs(a.Fragment,{children:[a.jsx("span",{children:"Insert new cells, rows or columns to your workbook."}),a.jsx("br",{}),a.jsx("span",{children:"To insert multiple rows or columns at a time, select multiple rows or columns in the sheet and click Insert."})]}),createPopupPanel:y,icon:ve(a.jsx(C5,{})),...f})})),S2=s.memo(s.forwardRef((e,t)=>{const{commands:n,commandHook:o,scope:r,disabled:i=!1,disableSheet:l=!1,preferSingleMenu:d=!0,showQuickButton:c=!0,variant:u=zt.Toolbar,...f}=e,p=Bn(n,["deleteCellsShiftUp","deleteCellsShiftLeft","deleteRows","deleteColumns"]),{singleCommand:h,allDisabled:m}=s.useMemo(()=>{let y=null,v=0;for(let b=0;b<p.length;b++)p[b]&&!p[b]?.disabled()&&(d&&u===zt.Menuitem&&(y=v===0?p[b]:null),v++);return{singleCommand:y,allDisabled:v===0}},[p]),g=s.useMemo(()=>{const y=new Map;return y.set("deleteCellsShiftUp",ve(a.jsx(k5,{sx:{transform:"rotate(0deg)"}}))),y.set("deleteCellsShiftLeft",ve(a.jsx(k5,{sx:{transform:"rotate(270deg)"}}))),y.set("deleteRows",ve(a.jsx(Px,{}))),y.set("deleteColumns",ve(a.jsx(E5,{}))),y},[]),x=s.useCallback((y,v)=>{const b={variant:zt.Menuitem,commandHook:o,scope:"deleteCells",disabled:i};let C=null;l||(C=a.jsxs(a.Fragment,{children:[a.jsx(Et,{orientation:"horizontal"}),a.jsx(Re,{...b,command:v.getCommand("deleteSheet"),icon:ve(a.jsx(di,{}))})]}));const k=a.jsxs(a.Fragment,{children:[a.jsx(Re,{...b,command:v.getCommand("deleteCellsShiftUp"),icon:g.get("deleteCellsShiftUp")}),a.jsx(Re,{...b,command:v.getCommand("deleteCellsShiftLeft"),icon:g.get("deleteCellsShiftLeft")}),a.jsx(Et,{orientation:"horizontal"}),a.jsx(Re,{...b,command:v.getCommand("deleteRows"),icon:g.get("deleteRows")}),a.jsx(Re,{...b,command:v.getCommand("deleteColumns"),icon:g.get("deleteColumns")}),C]});return dn({...y,children:k})},[i,o,r,g]);return h?a.jsx(Re,{ref:t,variant:u,commandHook:o,disabled:i,command:h,icon:g.get(h.key()),...f}):a.jsx(bn,{ref:t,variant:u,quickCommand:"deleteCells",commands:n,commandHook:o,scope:r,disabled:i||m,tooltip:a.jsxs(a.Fragment,{children:[a.jsx("span",{children:"Delete cells, rows, columns or sheets from your workbook."}),a.jsx("br",{}),a.jsx("span",{children:"To delete multiple rows or columns at a time, select multiple rows or columns in the sheet and click Delete."})]}),createPopupPanel:x,icon:ve(a.jsx(E5,{})),...f})})),bi=s.memo(s.forwardRef((e,t)=>{const{command:n,commandHook:o,onSelectColor:r,disabled:i=!1,variant:l=zt.Toolbar,quickColor:d,panelProps:c,isSplit:u=!1,darkMode:f,icon:p,...h}=e,{autoColor:m,schemeLookup:g,recentColors:x,...y}=c;if(h.selectedColor)throw new Error("Command selectedColor will be used. Do not try to provide one as a direct argument");c0(n);const v=n?.context();let b=d??v?.quickColor;u&&!b&&(b=new N.Color("transparent"));const C=m??v?.autoColor,k=g??v?.schemeLookup,_=x??v?.recentColors,I=f??v?.darkMode,M=s.useMemo(()=>({autoColor:C,schemeLookup:k,recentColors:_,darkMode:I,...y}),[C,k,_,I]),F=me((T,w)=>{T&&w&&v?.addRecentColor&&v.addRecentColor(T),v?.onColorSelect&&v.onColorSelect(T),r?.(T,w),n?.execute(T,o)},[n,r,o,v]),j=s.useCallback((T,w)=>{const{children:S,title:D,...E}=T;let R=T.children;return(n?.disabled()||i)&&(R=a.jsx("div",{children:R})),a.jsx(Si,{command:n,placement:l===zt.Toolbar?"bottom-start":"right-start",disabled:w,...E,children:R})},[n,i]);return a.jsx(b2,{ref:t,panelProps:M,icon:p,quickColor:b,selectedColor:n?.state(),onSelectColor:F,variant:l===zt.Menuitem?lr.Menuitem:lr.Toolbar,createTooltip:j,label:n?.label(),disabled:i||!n||n.disabled(),compareRGB:!0,darkMode:I,...h})}));bi.displayName="ColorCommandButton";const y9=s.memo(s.forwardRef((e,t)=>{const{commands:n,commandHook:o,scope:r,disabled:i=!1,parentFloat:l,...d}=e,c=Bn(n,["gridlinesToggle","sheetViewToggleGridlinesColumns","sheetViewToggleGridlinesRows"]),u=s.useCallback((f,p)=>{const h={variant:zt.Menuitem,parentFloat:f.floatReference,commandHook:o,scope:r,disabled:i},m=a.jsxs(a.Fragment,{children:[a.jsx(Re,{...h,command:p.getCommand("gridlinesToggle")}),a.jsx(bi,{...h,command:p.getCommand("sheetViewFormatGridlinesColor"),icon:a.jsx(Fd,{}),panelProps:{disableAlpha:!0}}),a.jsx(Et,{orientation:"horizontal"}),a.jsx(Re,{...h,command:p.getCommand("sheetViewToggleGridlinesColumns")}),a.jsx(Re,{...h,command:p.getCommand("sheetViewToggleGridlinesRows")})]});return dn({...f,children:m})},[i,o]);return a.jsx(bn,{ref:t,parentFloat:l,quickCommand:c[0]?.key(),commands:n,commandHook:o,createPopupPanel:u,label:"Gridlines",tooltip:"Configure how the lines between rows and columns in the sheet are displayed.",icon:a.jsx(gi,{command:c[0],scope:"view"}),...d})})),C2=s.memo(s.forwardRef((e,t)=>{const{commands:n,commandHook:o,scope:r,disabled:i=!1,...l}=e,d=s.useCallback((c,u)=>{const f={variant:zt.Menuitem,commandHook:o,scope:"sort",disabled:i},p=u.getCommand("sortCustom"),h=a.jsxs(a.Fragment,{children:[a.jsx(Re,{...f,command:u.getCommand("sortAscending"),icon:ve(a.jsx(Bc,{}))}),a.jsx(Re,{...f,command:u.getCommand("sortDescending"),icon:ve(a.jsx(_8,{}))}),p?a.jsx(Re,{...f,command:p,icon:ve(a.jsx(Bx,{}))}):null,a.jsx(Et,{orientation:"horizontal"}),a.jsx(Re,{...f,scope:"filter",command:u.getCommand("autoFilterToggle"),icon:ve(a.jsx(Ic,{}))}),a.jsx(Re,{...f,scope:"filter",command:u.getCommand("autoFilterClear"),icon:ve(a.jsx(zd,{}))}),a.jsx(Re,{...f,scope:"filter",command:u.getCommand("autoFilterReapply"),icon:ve(a.jsx(m8,{}))})]});return dn({...c,children:h})},[i,o,r]);return a.jsx(bn,{ref:t,commands:n,commandHook:o,scope:r,disabled:i,label:"Sort",tooltip:a.jsxs(a.Fragment,{children:[a.jsx("span",{children:"Organize your data so it's easier to analyze."}),a.jsx("br",{}),a.jsx("span",{children:"You can sort the selected data from smallest to largest or largest to smallest."})]}),createPopupPanel:d,icon:ve(a.jsx(Bc,{})),...l})})),Wk=s.memo(s.forwardRef((e,t)=>{const{commands:n,commandHook:o,scope:r,disabled:i=!1,...l}=e,d=s.useCallback((c,u)=>{const f={variant:zt.Menuitem,commandHook:o,scope:"sort",disabled:i},p=a.jsxs(a.Fragment,{children:[a.jsx(Re,{...f,scope:"filter",command:u.getCommand("autoFilterToggle"),icon:ve(a.jsx(Ic,{}))}),a.jsx(Re,{...f,scope:"filter",command:u.getCommand("autoFilterClear"),icon:ve(a.jsx(zd,{}))}),a.jsx(Re,{...f,scope:"filter",command:u.getCommand("autoFilterReapply"),icon:ve(a.jsx(m8,{}))})]});return dn({...c,children:p})},[i,o,r]);return a.jsx(bn,{ref:t,commands:n,commandHook:o,scope:r,disabled:i,label:"Filter",tooltip:a.jsxs(a.Fragment,{children:[a.jsx("span",{children:"Organize your data so it's easier to analyze."}),a.jsx("br",{}),a.jsx("span",{children:"You can sort the selected data from smallest to largest or largest to smallest."})]}),createPopupPanel:d,icon:ve(a.jsx(Ic,{})),...l})})),k2=s.memo(s.forwardRef((e,t)=>{const{quickCommand:n,icon:o,isRedo:r=!1,nestRedo:i=!0,undoManager:l,scope:d,sx:c,disabled:u,commands:f,...p}=e,h=[n];!r&&i&&h.push("redo");const m=Bn(f,h),g=m[0],x=m[1],y=l??g?.context?.()?.undoManager;let v=u;u||(v=!g||g.disabled(),x&&!x.disabled()&&(v=!1));const[b,C]=s.useState(0),k=s.useCallback((_,I)=>{let M=b===0?"Cancel":`${g.label()} ${b} Action${b===1?"":"s"}`,F=!1;y||(F=!0),F||(F=i?!y.hasRedo()&&!y.hasUndo():!y.hasRedo());const j=R=>{g.execute(R)},T=a.jsx(Po,{sx:{display:"flex",flex:"none",alignItems:"center",justifyContent:"center",padding:F?void 0:"0 0",minWidth:"180px"},icon:null,onMouseEnter:()=>{C(0)},onMouseDown:R=>{R.button===0&&R.preventDefault()},onMouseUp:R=>{R.button===0&&j(b)},onKeyDown:R=>{R.isDefaultPrevented()||R.keyCode!==Nt.Enter&&R.keyCode!==Nt.Space||j(b)},children:a.jsx(V.Typography,{component:"div",variant:"caption",sx:{fontSize:"0.875rem",letterSpacing:"0.01071em"},children:M})});if(F)return T;const w=r?y?.getRedoDescriptions():y?.getUndoDescriptions(),S=[];for(let R=0;R<w.length;R++){const A=w[R];S.push(a.jsx(Po,{sx:{maxWidth:"360px",display:"flex"},icon:a.jsx(di,{}),disabled:v,selected:R<b,onMouseEnter:()=>{C(R+1)},onMouseDown:L=>{L.button===0&&L.preventDefault()},onMouseUp:L=>{L.button===0&&j(R+1)},onKeyDown:L=>{L.isDefaultPrevented()||L.keyCode!==Nt.Enter&&L.keyCode!==Nt.Space||j(R+1)},children:a.jsxs(V.Box,{sx:{display:"flex",flex:"1 1 100%",flexDirection:"row",alignItems:"center",overflow:"hidden"},children:[a.jsx(V.Typography,{component:"div",children:A}),a.jsx(di,{})]})},`action:${R}`))}let D=null;if(!r&&i){const R={scope:"undo",commands:I,variant:zt.Menuitem,parentFloat:_.floatReference};D=[],D.push(a.jsx(k2,{...R,quickCommand:"redo",isRedo:!0},"nested:redo")),y.hasRedo()&&y.hasUndo()&&D.push(a.jsx(Et,{orientation:"horizontal"},"action:redo-div"))}const E=a.jsxs(V.Box,{sx:{display:"flex",flexDirection:"column",flex:"1 1 100%",overflow:"hidden"},onClick:()=>{_.closeFloatAll()},onMouseLeave:()=>{C(0)},children:[D,a.jsx(V.Box,{sx:{overflow:"auto",flex:"1 1 100%"},children:S}),a.jsx(Et,{orientation:"horizontal"}),T]});return dn({..._,children:E})},[g?.context(),g?.state(),d,y,b,v]);return a.jsx(bn,{ref:t,commands:f,quickCommand:n,scope:d,disabled:v,label:g?.label()??(r?"Redo":"Undo"),tooltip:a.jsx(a.Fragment,{children:a.jsx("span",{children:`${g?.label()??"No"} last actions.`})}),createPopupPanel:k,icon:o??ve(r?a.jsx(Ey,{}):a.jsx(ky,{})),selected:!1,...p})})),ai=N.IFontCollection.getFontList(),b9=new Map;for(let e=0;e<ai.length;e++)b9.set(ai[e].fontRef.getFamily(),ai[e]);const v9=s.memo(s.forwardRef((e,t)=>{const{command:n,commandHook:o,sx:r,disabled:i=!1,parentFloat:l,...d}=e;c0(n);const c=n?.state(),u=xr(),f=s.useMemo(()=>`${N.IFont.getSharedMeasurer()("Times New Roman",Math.round(u.typography.fontSize),u.typography.fontFamily).width}px`,[u]),p=s.useCallback(h=>{const m=v=>{n?.execute(v,o)},g=[];for(let v=0;v<ai.length;v++)g.push({key:ai[v].fontRef.getFamily(),description:ai[v].fontRef.getFamily()});b9.get(c)||g.unshift({key:c,description:c});const x=[];for(let v=0;v<g.length;v++){const b=g[v].key===c;x.push(a.jsx(Po,{sx:{display:"flex",paddingTop:"4px",paddingBottom:"4px"},selected:b,disabled:i||!n||n.disabled(),icon:b?a.jsx(Ul,{}):void 0,onMouseUp:C=>{C.button===0&&m(g[v].key)},onMouseDown:C=>{C.button===0&&C.preventDefault()},onKeyDown:C=>{C.keyCode!==Nt.Enter&&C.keyCode!==Nt.Space||m(g[v].key)},children:a.jsx(V.Box,{sx:{display:"flex",flex:"1 1 100%",flexDirection:"column",overflow:"hidden"},children:a.jsx(V.Typography,{component:"div",sx:{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",fontFamily:()=>g[v]?.key},children:g[v].description})})},v+""+g[v].key))}const y=a.jsx(V.Box,{sx:{display:"flex",flexDirection:"column",flex:"1 1 100%"},...d,children:a.jsx(V.Box,{sx:{overflow:"auto",flex:"1 1 100%"},children:x})});return dn({...h,children:y})},[i,n?.state()]);return a.jsx(gr,{ref:t,sx:{...r},outlined:!0,disabled:i,parentFloat:l,createPopupPanel:p,createTooltip:({children:h},m)=>a.jsx(go,{label:n?.label(),description:n?.description(),disabled:m,children:h}),icon:a.jsx(V.Box,{sx:{display:"flex",paddingLeft:"4px",paddingRight:"4px",fontSize:h=>`${Math.round(h.typography.fontSize)}px`,fontFamily:h=>h.typography.fontFamily,color:h=>h.palette.text.secondary,width:f},children:a.jsx(V.Box,{sx:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"pre"},children:c})}),...d})})),w9=s.memo(s.forwardRef((e,t)=>{const{commands:n,commandHook:o,scope:r,disabled:i=!1,...l}=e,d=Bn(n,["formatStrikeThroughToggle","formatSuperscriptToggle","formatSubscriptToggle"]),c=s.useMemo(()=>{for(let p=0;p<d.length;p++)if(d[p]?.state())return d[p].key();return d[0]?.key()},[d]),u=s.useMemo(()=>{const p=new Map;return p.set("formatStrikeThroughToggle",ve(a.jsx(_5,{}))),p.set("formatSuperscriptToggle",ve(a.jsx(Hx,{}))),p.set("formatSubscriptToggle",ve(a.jsx($x,{}))),p},[]),f=s.useCallback((p,h)=>{const m={variant:zt.Menuitem,commandHook:o,scope:"textEffects",disabled:i},g=a.jsxs(a.Fragment,{children:[a.jsx(Re,{...m,command:h.getCommand("formatStrikeThroughToggle"),icon:u.get("formatStrikeThroughToggle")}),a.jsx(Re,{...m,command:h.getCommand("formatSuperscriptToggle"),icon:u.get("formatSuperscriptToggle")}),a.jsx(Re,{...m,command:h.getCommand("formatSubscriptToggle"),icon:u.get("formatSubscriptToggle")})]});return dn({...p,children:g})},[i,o,r]);return a.jsx(bn,{ref:t,quickCommand:c,commands:n,commandHook:o,createPopupPanel:f,label:"Text Effects",tooltip:"Style your text to differentiate it.",icon:u.get(c)??ve(a.jsx(_5,{})),...l})})),S9=s.memo(s.forwardRef((e,t)=>{const{commands:n,commandHook:o,scope:r,disabled:i=!1,...l}=e,d=Bn(n,["formatUnderlinedToggle","formatUnderlinedDoubleToggle","formatUnderlinedAccountingToggle","formatUnderlinedAccountingDoubleToggle"]),c=s.useMemo(()=>{for(let p=0;p<d.length;p++)if(d[p]?.state())return d[p].key();return d[0]?.key()},[d]),u=s.useMemo(()=>{const p=new Map;return p.set("formatUnderlinedToggle",ve(a.jsx(T1,{}))),p.set("formatUnderlinedDoubleToggle",ve(a.jsx(T5,{}))),p.set("formatUnderlinedAccountingToggle",ve(a.jsx(j5,{}))),p.set("formatUnderlinedAccountingDoubleToggle",ve(a.jsx(M5,{}))),p},[]),f=s.useCallback((p,h)=>{const m={variant:zt.Menuitem,commandHook:o,scope:"underline",disabled:i},g=a.jsxs(a.Fragment,{children:[a.jsx(Re,{...m,command:h.getCommand("formatUnderlinedToggle"),icon:ve(a.jsx(T1,{}))}),a.jsx(Re,{...m,command:h.getCommand("formatUnderlinedDoubleToggle"),icon:ve(a.jsx(T5,{}))}),a.jsx(Re,{...m,command:h.getCommand("formatUnderlinedAccountingToggle"),commandHook:o,icon:ve(a.jsx(j5,{}))}),a.jsx(Re,{...m,command:h.getCommand("formatUnderlinedAccountingDoubleToggle"),icon:ve(a.jsx(M5,{}))})]});return dn({...p,children:g})},[i,o,r]);return a.jsx(bn,{ref:t,quickCommand:c,commands:n,commandHook:o,label:"Underline",tooltip:"All underline stylings.",createPopupPanel:f,icon:u.get(c)??ve(a.jsx(T1,{})),...l})})),E2=s.memo(s.forwardRef((e,t)=>{const{command:n,commands:o,commandHook:r,scope:i,includePasteAllInPopup:l=!0,disabled:d=!1,...c}=e,u=me((f,p)=>{const h={variant:zt.Menuitem,commandHook:r,scope:"paste",disabled:d},m=[];return l&&(m.push(s.createElement(Re,{...h,command:p.getCommand("paste"),key:"paste",icon:a.jsx(w5,{})})),m.push(a.jsx(Et,{orientation:"horizontal"},"paste-div"))),m.push(s.createElement(Re,{...h,command:p.getCommand("pasteValues"),key:"pasteValues",icon:ve(a.jsx(Ex,{}))})),m.push(s.createElement(Re,{...h,command:p.getCommand("pasteFormats"),key:"pasteFormats",icon:ve(a.jsx(_x,{}))})),m.push(s.createElement(Re,{...h,command:p.getCommand("pasteFormulas"),key:"pasteFormulas",icon:ve(a.jsx(Tx,{}))})),m.push(s.createElement(Re,{...h,command:p.getCommand("pasteTranspose"),key:"pasteTranspose",icon:ve(a.jsx(jx,{}))})),m.push(s.createElement(Re,{...h,command:p.getCommand("pasteLinks"),key:"pasteLinks",icon:ve(a.jsx(Mx,{}))})),dn({...f,children:m})},[d,r,i,l]);return a.jsx(bn,{ref:t,commands:o,commandHook:r,scope:i,createPopupPanel:u,label:"Paste",tooltip:"Add content to the clipboard to your document.",quickCommand:"paste",icon:a.jsx(w5,{}),...c})})),C9=s.memo(s.forwardRef((e,t)=>{const{commands:n,commandHook:o,scope:r,disabled:i=!1,parentFloat:l,...d}=e,c=Bn(n,["sheetViewToggleShowHeadings","sheetViewToggleShowHeadingColumns","sheetViewToggleShowHeadingRows"]),u=s.useCallback((f,p)=>{const h={variant:zt.Menuitem,parentFloat:f.floatReference,commandHook:o,scope:r,disabled:i},m=a.jsxs(a.Fragment,{children:[a.jsx(Re,{...h,command:p.getCommand("sheetViewToggleShowHeadings")}),a.jsx(Re,{...h,command:p.getCommand("sheetViewToggleShowHeadingsNumeric")}),a.jsx(Et,{orientation:"horizontal"}),a.jsx(Re,{...h,command:p.getCommand("sheetViewToggleShowHeadingColumns")}),a.jsx(Re,{...h,command:p.getCommand("sheetViewToggleShowHeadingRows")})]});return dn({...f,children:m})},[i,o,r]);return a.jsx(bn,{ref:t,parentFloat:l,quickCommand:c[0]?.key(),commands:n,commandHook:o,createPopupPanel:u,label:"Headings",tooltip:"Configure how the column and rows headings in the sheet are displayed.",icon:a.jsx(gi,{command:c[0],scope:"view"}),...d})})),k9=s.memo(s.forwardRef((e,t)=>{const{commands:n,commandHook:o,scope:r="view",disabled:i=!1,...l}=e,d=s.useCallback(c=>{const u={variant:zt.Menuitem,parentFloat:c.floatReference,commandHook:o,scope:r,disabled:i},f=a.jsxs(a.Fragment,{children:[a.jsx(Re,{...u,command:n.getCommand("workbookViewToggleShowFormulaBar")}),a.jsx(Re,{...u,command:n.getCommand("workbookViewToggleShowTabs")}),a.jsx(Re,{...u,command:n.getCommand("workbookViewToggleShowStatusBar")}),a.jsx(Et,{orientation:"horizontal"}),a.jsx(Re,{...u,command:n.getCommand("workbookViewToggleShowHorizontalScrollBar")}),a.jsx(Re,{...u,command:n.getCommand("workbookViewToggleShowVerticalScrollBar")})]});return dn({...c,children:f})},[i,n,o,r]);return a.jsx(bn,{ref:t,commands:n,disabled:i,commandHook:o,scope:r,label:"Workbook View",tooltip:"Options to configure how the workbook is displayed.",createPopupPanel:d,icon:a.jsx(gi,{icon:null,label:"Workbook View"}),...l})})),E9=s.memo(s.forwardRef((e,t)=>{const{value:n,cellStyle:o,styles:r,createTemporaryCell:i,bodyStyle:l,sx:d,borderProps:c,disabled:u,...f}=e,p=s.useMemo(()=>i({value:n,style:o}),[n,o,i]),h=s.useMemo(()=>p.getStyle(),[p,l]),m=s.useMemo(()=>h.getFill().toCSS(l?.darkMode??!1),[h]),g=h.getInsets(),x=h.getFont(),y=s.useCallback(()=>h.getBorder(),[h]);return a.jsx(V.Box,{ref:t,sx:{width:"100px",textOverflow:"ellipsis",display:"flex",alignItems:"stretch",background:l?.fill,filter:u?"grayscale(0.4) opacity(0.8);":"none","& .fill":{flex:"1 1 100%",overflow:"hidden",...m},"& .text":{flex:"1 1 100%",...x.toCSS(l?.darkMode??!1,1),boxSizing:"border-box",padding:`${g.top}px ${g.right}px ${g.bottom}px ${g.left}px`,margin:"0px",outline:"none",resize:"none",overflow:"hidden",textOverflow:"ellipsis",verticalAlign:"baseline",textDecoration:x.toCSS().textDecoration,textAlign:N.ITextFrame.toCSSHorizontalTextAlign(p.getRenderHorizontalAlignment()),background:"transparent",maxHeight:"100%",whiteSpace:"pre",wordWrap:"break-word"},...d},...f,children:a.jsx(d2,{getBorderAt:y,darkMode:l?.darkMode??!1,rowCount:1,columnCount:1,style:{display:"flex",flex:"1 1 100%",width:"100%",maxWidth:"100%",justifyContent:"start",alignItems:"stretch",...c?.style},...c,children:a.jsx(V.Box,{className:"fill",sx:{paddingLeft:"4px",paddingRight:"4px",marginLeft:"-1px",marginTop:"-1px",marginRight:"-1px",marginBottom:"-1px",overflow:"hidden",display:"flex",alignItems:"center"},children:a.jsx(V.Box,{className:"text",children:n})})})})})),Uk=s.memo(e=>{const{styles:t,namedStyle:n,selectedNamed:o,hasContextMenu:r=!0,bodyStyle:i,onSelectNamed:l,createTemporaryCell:d,parentFloat:c,commands:u,disabled:f,commandHook:p,...h}=e,m=s.useCallback(y=>{const v={variant:zt.Menuitem,commandHook:p,context:"cellStyle"},b=a.jsxs(a.Fragment,{children:[a.jsx(Re,{...v,sx:{fontWeight:550},command:u.getCommand("formatCellStyle"),commandState:n,disabled:f,icon:ve(a.jsx(Tl,{}))}),a.jsx(Et,{orientation:"horizontal"}),a.jsx(Re,{...v,command:u.getCommand("modifyCellStyle"),commandState:{named:n}}),a.jsx(Re,{...v,command:u.getCommand("deleteCellStyle"),commandState:n,disabled:f||n?.getName()===N.IStyle.BuiltInName.Normal})]}),C=a.jsx(V.Box,{sx:{display:"flex",flexDirection:"column",flex:"1 1 100%",overflow:"hidden"},children:a.jsx(V.Box,{sx:{overflow:"auto",flex:"1 1 100%"},children:b})});return dn({...y,children:C})},[]),g=n?.getName()===o?.getName();let x=a.jsx(Wo,{sx:{borderRadius:"2px",padding:"2px",margin:"0px 0px",display:"flex",border:y=>`solid ${g?y.palette.primary.dark:"transparent"} 1px`},tooltipProps:{label:n.getName(),placement:"bottom-start"},disabled:f,icon:null,onClick:()=>{l?.(n)},...h,children:a.jsx(E9,{value:n.getName(),cellStyle:{named:n.getName()},styles:t,createTemporaryCell:d,bodyStyle:i})},n.getName());return r&&(x=a.jsx(Z8,{label:n.getName(),parentFloat:c,createPopupPanel:m,children:x})),x}),_9=s.memo(s.forwardRef((e,t)=>{const{commands:n,command:o,commandHook:r,selectedNamed:i,onSelectNamed:l,disabled:d=!1,bodyStyle:c,usePreviewIcon:u=!0,...f}=e;c0(o);const p=o?.context(),h=p?.styles,m=i??p?.named(),g=c??p?.bodyStyle(),x=me(k=>{l?.(k),o?.execute(k,r)},[o,l,r]),y=s.useCallback((k,_)=>{const I={onSelectNamed:x,styles:h(),parentFloat:k.floatReference},M=h().getCustomNamed(),F=new Map,j=[];for(let L=0;L<M.length;L++)F.set(M[L].getName(),M[L]),h().getNamed(M[L].getName()).getBuiltInID()===null&&j.push(M[L].getName());const T=L=>{let P=F.get(L);return P||(P=h().getNamed(L)),!P||P.isHidden()?null:a.jsx(Uk,{namedStyle:P,selectedNamed:m,bodyStyle:p.bodyStyle(),createTemporaryCell:p.createTemporaryCell,commands:n,commandHook:r,...I},L)},w=(L,P,z=!0)=>{const U=[];for(let O=0;O<P.length;O++){const q=T(P[O]);q&&U.push(q)}return U.length===0?null:a.jsxs(V.Box,{children:[z?a.jsx(Et,{orientation:"horizontal"}):null,a.jsx(fi,{children:L},L+"-header"),a.jsx(V.Box,{sx:{display:"flex",gap:"2px",marginBottom:"6px",flexWrap:"wrap",width:"646px",maxWidth:"100%"},children:U},L+"-presets")]},L)},S=(L,P)=>{const z=[];for(let U=0;U<P.length;U++){const O=T(P[U]);O&&z.push(O)}return z.length===0?null:a.jsx(V.Box,{sx:{display:"flex",gap:"2px",marginBottom:"6px",flexWrap:"wrap",flexDirection:"column",flex:"0 0 0%"},children:z},L+"-presets")},D=[];D.push(w("Custom",j,!1)),D.push(w("Good, Bad and Neutral",[N.IStyle.BuiltInName.Normal,N.IStyle.BuiltInName.Bad,N.IStyle.BuiltInName.Good,N.IStyle.BuiltInName.Neutral],j.length>0)),D.push(w("Data and Model",[N.IStyle.BuiltInName.Calculation,N.IStyle.BuiltInName.CheckCell,N.IStyle.BuiltInName.ExplanatoryText,N.IStyle.BuiltInName.FollowedHyperlink,N.IStyle.BuiltInName.Hyperlink,N.IStyle.BuiltInName.Input,N.IStyle.BuiltInName.LinkedCell,N.IStyle.BuiltInName.Note,N.IStyle.BuiltInName.Output,N.IStyle.BuiltInName.WarningText])),D.push(w("Titles and Headings",[N.IStyle.BuiltInName.Heading1,N.IStyle.BuiltInName.Heading2,N.IStyle.BuiltInName.Heading3,N.IStyle.BuiltInName.Heading4,N.IStyle.BuiltInName.Title,N.IStyle.BuiltInName.Total]));let E=[];var R,A;return E.push(S("Accent 1",[N.IStyle.BuiltInName.Accent1_20,N.IStyle.BuiltInName.Accent1_40,N.IStyle.BuiltInName.Accent1_60,N.IStyle.BuiltInName.Accent1])),E.push(S("Accent 2",[N.IStyle.BuiltInName.Accent2_20,N.IStyle.BuiltInName.Accent2_40,N.IStyle.BuiltInName.Accent2_60,N.IStyle.BuiltInName.Accent2])),E.push(S("Accent 3",[N.IStyle.BuiltInName.Accent3_20,N.IStyle.BuiltInName.Accent3_40,N.IStyle.BuiltInName.Accent3_60,N.IStyle.BuiltInName.Accent3])),E.push(S("Accent 4",[N.IStyle.BuiltInName.Accent4_20,N.IStyle.BuiltInName.Accent4_40,N.IStyle.BuiltInName.Accent4_60,N.IStyle.BuiltInName.Accent4])),E.push(S("Accent 5",[N.IStyle.BuiltInName.Accent5_20,N.IStyle.BuiltInName.Accent5_40,N.IStyle.BuiltInName.Accent5_60,N.IStyle.BuiltInName.Accent5])),E.push(S("Accent 6",[N.IStyle.BuiltInName.Accent6_20,N.IStyle.BuiltInName.Accent6_40,N.IStyle.BuiltInName.Accent6_60,N.IStyle.BuiltInName.Accent6])),D.push((R="Themed Cell Styles",A=E,a.jsxs(V.Box,{children:[a.jsx(Et,{orientation:"horizontal"}),a.jsx(fi,{children:R},R+"-header"),a.jsx(V.Box,{sx:{display:"flex",gap:"2px",flexWrap:"wrap",alignItems:"start",flexDirection:"row"},children:A},R+"-presets")]},R))),D.push(w("Number Format",[N.IStyle.BuiltInName.Comma,N.IStyle.BuiltInName.Comma0,N.IStyle.BuiltInName.Currency,N.IStyle.BuiltInName.Currency0,N.IStyle.BuiltInName.Percent])),a.jsxs(V.Box,{sx:{display:"flex",flexDirection:"column",maxWidth:"100%",paddingTop:L=>`${L.shape.borderRadius}px`,paddingBottom:L=>`${L.shape.borderRadius}px`},children:[a.jsx(V.Box,{onContextMenu:()=>{},sx:{display:"flex",flexDirection:"column",paddingTop:"6px",paddingBottom:"0px",paddingLeft:"16px",paddingRight:"16px"},children:D}),a.jsx(Et,{orientation:"horizontal"}),a.jsx(Re,{variant:zt.Menuitem,commandState:m,command:_.getCommand("newCellStyle"),context:"styles",commandHook:r,disabled:d,icon:ve(a.jsx(Zx,{}))})]})},[m,h?.().getTheme(),g]),v=me(k=>{const _=18/N.IFont.getDeviceScale(),I=p?.createTemporaryCell(k);return I.getStyle().getFont().getSize()<=_?I:I.createTemporaryCell({style:{font:{size:_}}})},[p?.createTemporaryCell]),b=d||!o||o.disabled(),C=s.useMemo(()=>p&&u?a.jsx(E9,{value:m?.getName()??"Custom",cellStyle:m?{named:m.getName()}:void 0,styles:p.styles(),createTemporaryCell:v,bodyStyle:p.bodyStyle(),className:"outline-hover",disabled:b,sx:{maxHeight:"24px",height:"24px",marginRight:"2px",outline:k=>`1px solid ${k.palette.action.hover}`},borderProps:{}}):ve(a.jsx(Tl,{})),[m,g,b]);return a.jsx(bn,{ref:t,createPopupPanel:y,outlined:u,commands:n,createTooltip:({children:k},_)=>a.jsx(go,{label:o?.label(),description:o?.description(),disabled:_,children:k}),selected:!1,disabled:b,label:o?.label(),icon:C,...f})})),T9="_sheetxl-reset_ods65_1",qk=10,j9=s.memo(s.forwardRef((e,t)=>{const{styles:n,table:o,tableStyle:r=o?.getStyle()??n.getDefaultTableStyle(),bodyStyle:i,sx:l,disabled:d,className:c,forceThinBorder:u,cellHeight:f=qk,isLive:p=!1,...h}=e,m=Math.ceil(1.3*f),[g,x]=s.useReducer(k=>k+1,0);s.useEffect(()=>{if(p&&o)return o.addListeners({onAnyChange:()=>{x()}})},[o,p]);const y=s.useMemo(()=>{let k=o?.toJSON()??{};const _={rowStart:0,colStart:0,rowEnd:4,colEnd:4};return k&&(k.styleOptions={...k.styleOptions,name:r.getName()}),k.ref=_,new N.Table({initialAnchor:_,json:k,styles:n})},[g,o,r,n]),v=s.useMemo(()=>{const k=[];for(let _=0;_<5;_++)for(let I=0;I<5;I++){const M=y.getStyleAt({colIndex:I,rowIndex:_});k.push(M)}return k},[y]),b=s.useMemo(()=>{const k=(I,M,F)=>{let j=F.getFill().toCSS(i?.darkMode??!1);const T=m-(M<4?1:0),w=f-(I<4?1:0),S=F.getFont().getFill().toCSS(i?.darkMode??!1);return j={...j,position:"absolute",boxSizing:"border-box",left:M*(m-1),top:I*(f-1),width:T,height:w},a.jsx("td",{className:`table-style-fill ${I}-${M}`,style:j,children:a.jsx("div",{className:`table-style-text ${I}-${M}`,style:{position:"absolute",boxSizing:"border-box",width:"6px",left:(T-6)/2,top:(w-1)/2,borderTop:`1px solid ${S}`}})},`${I}-${M}`)},_=[];for(let I=0;I<5;I++){const M=[];for(let F=0;F<5;F++){const j=v[5*I+F];M.push(k(I,F,j))}_.push(a.jsx("tr",{children:M},I))}return _},[y,r,i]),C=s.useCallback((k,_)=>v[_].getBorder()??null,[v]);return a.jsx(V.Box,{ref:t,className:"table-format-preview",sx:{background:i?.fill,filter:d?"grayscale(0.4) opacity(0.8);":"none","& .styled-element":{position:"absolute"},...l},...h,children:a.jsx(d2,{getBorderAt:C,rowCount:5,columnCount:5,forceThinBorder:u,width:5*(m-1)+1,height:5*(f-1)+1,darkMode:i?.darkMode??!1,style:{pointerEvents:"none"},children:a.jsx("table",{className:Fn(c,"sheetxl-table-preview",T9),style:{borderCollapse:"collapse",width:5*(m-1)+1,height:5*(f-1)+1},children:a.jsx("tbody",{children:b})})})})})),Hi=(e,t,n,o,r)=>{e.beginPath(),e.moveTo(t+.5,n+.5),e.lineTo(o+.5,r+.5),e.stroke()},M9=s.memo(s.forwardRef((e,t)=>{const{table:n,tableStyle:o,styles:r,bodyStyle:i,disabled:l,style:d,className:c,canvas:u,...f}=e,p=s.useMemo(()=>{const g=n.toJSON(),x={rowStart:0,colStart:0,rowEnd:4,colEnd:4};return g.styleOptions={...g.styleOptions,name:o.getName()},g.ref=x,new N.Table({initialAnchor:x,json:g,styles:r})},[n,o,r]),h=s.useMemo(()=>{const g=[];for(let x=0;x<5;x++)for(let y=0;y<5;y++){const v=p.getStyleAt({colIndex:y,rowIndex:x});g.push(v)}return g},[p]),m=s.useMemo(()=>{let g=u;if(u||(g=document.createElement("canvas")),!g)return null;g.width!==61&&(g.width=61),g.height!==46&&(g.height=46);const x=g.getContext("2d",{alpha:!1});if(!x)return null;const y=12,v=i?.darkMode??!1;for(let b=0;b<5;b++)for(let C=0;C<5;C++){const k=h[5*b+C].getFill();let _=i?.fill;k.getType()===N.IFill.Type.Solid?_=k.getColor().toCSS(v,!1):k.getType()===N.IFill.Type.Gradient?_=k.getStops[0]?.color.toCSS(v,!1):k.getType()===N.IFill.Type.Pattern&&(_=k.getForeground().toCSS(v,!1)),x.fillStyle=_;const I=C*y,M=9*b;x.fillRect(I,M,13,10)}x.lineWidth=1;for(let b=0;b<5;b++)for(let C=0;C<5;C++){const k=h[5*b+C],_=C*y,I=9*b,M=k.getBorder();if(!M.isEmpty()){const T=M.getLeft();T.isNone()||(x.strokeStyle=T.getColor().toCSS(v,!1),Hi(x,_,I,_,I+9));const w=M.getTop();w.isNone()||(x.strokeStyle=w.getColor().toCSS(v,!1),Hi(x,_,I,_+y,9*b));const S=M.getRight();S.isNone()||(x.strokeStyle=S.getColor().toCSS(v,!1),Hi(x,_+y,I,_+y,I+9));const D=M.getBottom();D.isNone()||(x.strokeStyle=D.getColor().toCSS(v,!1),Hi(x,_,I+9,_+y,I+9))}x.strokeStyle=k.getFont().getFill().toCSS(v,!1);const F=4,j=2.5;Hi(x,C*y+j,9*b+F,C*y+j+7,9*b+F)}return`url(${g.toDataURL()})`},[u,p,o,i]);return a.jsx("div",{ref:t,className:Fn("table-style-preview",c),style:{backgroundImage:m,width:61,height:46,...d},...f})})),Zk=s.memo(s.forwardRef((e,t)=>{const{styleOptions:n,onStyleOptionsChange:o,showHeaderRow:r,onShowHeaderRowChange:i,showTotalRow:l,onShowTotalRowChange:d,showFilterButton:c,onShowFilterButtonChange:u,sx:f,disabled:p,...h}=e;return a.jsxs(V.Box,{sx:{display:"flex",flexDirection:"column",flexWrap:"wrap",userSelect:"none",pt:1,pb:1,"& .MuiFormControlLabel-root":{marginLeft:m=>`${m.spacing(2)}`,marginRight:m=>`${m.spacing(2)}`},"& .MuiCheckbox-root":{padding:m=>`${m.spacing(.5)}`},...f},...h,ref:t,children:[i&&a.jsx(V.FormControlLabel,{control:a.jsx(V.Checkbox,{checked:r??!1,indeterminate:r==null,onChange:()=>i(!r),disabled:p||r==null}),label:"Header Row",labelPlacement:"end"}),d&&a.jsx(V.FormControlLabel,{control:a.jsx(V.Checkbox,{checked:l??!1,indeterminate:l==null,onChange:()=>d(!l),disabled:p||l==null}),label:"Total Row",labelPlacement:"end"}),a.jsx(V.FormControlLabel,{control:a.jsx(V.Checkbox,{checked:n?.showRowStripes??!1,indeterminate:!n,disabled:p||!n,onChange:()=>{o?.({...n,showRowStripes:!n?.showRowStripes})}}),label:"Banded Rows",labelPlacement:"end"}),a.jsx(V.FormControlLabel,{control:a.jsx(V.Checkbox,{checked:n?.showFirstColumn??!1,indeterminate:!n,disabled:p||!n,onChange:()=>{o?.({...n,showFirstColumn:!n?.showFirstColumn})}}),label:"First Column",labelPlacement:"end"}),a.jsx(V.FormControlLabel,{control:a.jsx(V.Checkbox,{checked:n?.showLastColumn??!1,indeterminate:!n,disabled:p||!n,onChange:()=>{o?.({...n,showLastColumn:!n?.showLastColumn})}}),label:"Last Column",labelPlacement:"end"}),a.jsx(V.FormControlLabel,{control:a.jsx(V.Checkbox,{checked:n?.showColumnStripes??!1,indeterminate:!n,disabled:p||!n,onChange:()=>{o?.({...n,showColumnStripes:!n?.showColumnStripes})}}),label:"Banded Columns",labelPlacement:"end"}),u&&a.jsx(V.FormControlLabel,{control:a.jsx(V.Checkbox,{checked:c??!1,indeterminate:c==null,disabled:p||!n||c==null,onChange:()=>u(!c)}),label:"Filter Button",labelPlacement:"end"})]})})),Gk=s.memo(e=>{const{table:t,tableStyle:n,selectedTableStyleName:o,onSelectTableStyleName:r,styles:i,hasContextMenu:l=!0,bodyStyle:d,parentFloat:c,commands:u,disabled:f,commandHook:p,useCanvasPreview:h=!0,canvas:m,...g}=e,x=s.useCallback(C=>{const k={variant:zt.Menuitem,commandHook:p,context:"table"},_=a.jsxs(a.Fragment,{children:[a.jsx(Re,{...k,command:u.getCommand("formatTableStyleClearCellStyles"),commandState:n,disabled:f,icon:ve(a.jsx(Tl,{}))}),a.jsx(Re,{...k,sx:{fontWeight:550},command:u.getCommand("formatTableStyle"),commandState:{name:n.getName()},disabled:f,icon:ve(a.jsx(Tl,{}))}),a.jsx(Et,{orientation:"horizontal"}),a.jsx(Re,{...k,command:u.getCommand("setDefaultTableStyle"),commandState:n.getName(),disabled:f}),a.jsx(Et,{orientation:"horizontal"}),a.jsx(Re,{...k,command:u.getCommand("deleteTableStyle"),commandState:n?.getName(),disabled:f||!n||n.isBuiltIn()})]}),I=a.jsx(V.Box,{sx:{display:"flex",flexDirection:"column",flex:"1 1 100%",overflow:"hidden"},children:a.jsx(V.Box,{sx:{overflow:"auto",flex:"1 1 100%"},children:_})});return dn({...C,children:I})},[u]),y=n?.getName()===o,v=s.useMemo(()=>{const C={table:t,tableStyle:n,styles:i,bodyStyle:d};return h?a.jsx(M9,{canvas:m,...C}):a.jsx(j9,{...C})},[t,n,i,d]);let b=a.jsx(Wo,{sx:{borderRadius:"2px",padding:"2px",margin:"0px 0px",display:"flex",border:C=>`solid ${y?C.palette.primary.dark:"transparent"} 1px`},tooltipProps:{label:n.getName()??"None",placement:"bottom-start"},disabled:f,icon:null,onClick:()=>{r?.(n?.getName())},...g,children:v},n.getName());return l&&(b=a.jsx(Z8,{label:t.getStyleOptions().name,parentFloat:c,createPopupPanel:x,children:b})),b}),R9=s.memo(s.forwardRef((e,t)=>{const{commands:n,command:o,commandHook:r,selectedTable:i,onSelectTableStyleName:l,disabled:d=!1,bodyStyle:c,usePreviewIcon:u=!1,...f}=e;c0(o);const p=o?.context(),h=p?.styles,m=i??p?.table?.();let g="insertTable";m&&(g="editTable");const x=s.useMemo(()=>((j,T)=>{const w={rowStart:0,colStart:0,rowEnd:4,colEnd:4};return new N.Table({initialAnchor:w,styles:T,json:{name:"PreviewTable",ref:w,description:"PreviewTable",headerRowCount:1,totalsRowCount:0,styleOptions:j}})})(m?.getStyleOptions(),h?.()),[h?.().getDefaultTableStyle(),m?.getStyleOptions()]),y=m??x,[v,b]=s.useState(y);s.useEffect(()=>{b(y)},[y]);const C=c??p?.bodyStyle(),k=me(j=>{l?.(j),o?.execute({name:j},r)},[o,l,r]),_=s.useRef(null),I=s.useCallback((j,T)=>{const w={onSelectTableStyleName:k,styles:h(),parentFloat:j.floatReference};_.current||(_.current=document.createElement("canvas"));const S=O=>{const q=h().getTableStyle(O);return q?a.jsx(Gk,{table:v,tableStyle:q,selectedTableStyleName:v.getStyleOptions().name,bodyStyle:p.bodyStyle(),commands:T,commandHook:r,canvas:_.current,...w},O):null},D=(O,q,X=!0)=>{const re=[];for(let $=0;$<q.length;$++){const W=S(q[$]);W&&re.push(W)}return re.length===0?null:a.jsxs(V.Box,{children:[X?a.jsx(Et,{orientation:"horizontal"}):null,a.jsx(fi,{children:O},O+"-header"),a.jsx(V.Box,{sx:{display:"flex",gap:"2px",marginBottom:"6px",flexWrap:"wrap",width:"481px",maxWidth:"100%"},children:re},O+"-presets")]},O)},E=[],R=h().getCustomTableStyles(),A=[];if(R.length>0){for(let O=0;O<R.length;O++)R[O].isShownInTableStyles()&&A.push(R[O].getName());E.push(D("Custom",A,!1))}const L=[];m&&!m.getStyleOptions().name&&L.push(null);for(let O=0;O<21;O++)L.push("TableStyleLight"+(O+1));E.push(D("Light",L,A.length>0));const P=[];for(let O=0;O<28;O++)P.push("TableStyleMedium"+(O+1));E.push(D("Medium",P));const z=[];for(let O=0;O<11;O++)z.push("TableStyleDark"+(O+1));E.push(D("Dark",z));let U=null;return m&&(U=a.jsxs(a.Fragment,{children:[a.jsx(Et,{orientation:"horizontal"}),a.jsx(Re,{variant:zt.Menuitem,command:T.getCommand("formatTableStyleClearTableStyle"),commandHook:r,disabled:d,icon:ve(a.jsx(Y7,{}))})]})),a.jsxs(V.Box,{sx:{display:"flex",flexDirection:"column",maxWidth:"100%",paddingTop:O=>`${O.shape.borderRadius}px`,paddingBottom:O=>`${O.shape.borderRadius}px`},children:[a.jsx(V.Box,{onContextMenu:()=>{},sx:{display:"flex",flexDirection:"column",padding:"6px 16px"},children:E}),U]})},[h,h?.().getTheme(),C,v]),M=d||!o||o.disabled(),F=s.useMemo(()=>{if(!p||!u)return ve(a.jsx(Tl,{}))},[v,C,M]);return a.jsx(bn,{ref:t,quickCommand:g,createPopupPanel:I,commands:n,label:o?.label(),commandState:m,commandHook:r,selected:m!==null,createTooltip:({children:j},T)=>a.jsx(go,{label:o?.label(),description:o?.description(),disabled:T,children:j}),disabled:M,icon:F,...f})})),Qo=[];Qo.push(ur("Primary Background","bg1")),Qo.push(ur("Primary Text","tx1")),Qo.push(ur("Secondary Background","bg2")),Qo.push(ur("Secondary Text","tx2")),Qo.push(ur("Accent 1","accent1")),Qo.push(ur("Accent 2","accent2")),Qo.push(ur("Accent 3","accent3")),Qo.push(ur("Accent 4","accent4")),Qo.push(ur("Accent 5","accent5")),Qo.push(ur("Accent 6","accent6"));const I9=e=>{const{docTheme:t,onSelectTheme:n,darkMode:o,isSelected:r,outlined:i,sx:l,...d}=e,c=xr(),u=s.useMemo(()=>{let f=[];for(let p=0;p<Qo.length;p++){const h=Qo[p];f.push(a.jsx(e1,{schemeColorLookup:t.schemeLookup(),colorDef:h,darkMode:o,selectedColor:null},p+"-colorDef"))}return a.jsx(V.Box,{sx:{display:"flex",flexDirection:"row",flex:"none"},children:a.jsx(V.Box,{sx:{display:"flex",boxShadow:p=>p.shadows[2]},children:f})})},[t,c]);return a.jsx(Wo,{sx:{borderRadius:"2px",padding:"2px",margin:"0px 0px",display:"flex",border:f=>`solid ${r?f.palette.text.primary:"transparent"} 1px`,"&:hover:not([disabled])":{border:f=>`solid ${f.palette.text.primary} 1px !important`}},icon:null,...d,children:a.jsxs(V.Box,{sx:{border:f=>`solid ${f.palette.divider} 1px`,minWidth:"200px",borderRadius:"2px",padding:"4px 4px",textAlign:"left",display:"flex",gap:"4px",flexDirection:"column",alignItems:"stretch",color:f=>r?f.palette.text.primary:void 0,"&:hover:not([disabled])":{color:f=>f.palette.text.primary}},children:[a.jsx(V.Box,{sx:{},children:t.getName()}),a.jsxs(V.Box,{sx:{paddingTop:"6px",paddingLeft:"12px",paddingRight:"12px",display:"flex",flexDirection:"column",alignItems:"stretch"},children:[u,a.jsx(V.Box,{sx:{flex:"1 1 100%",textOverflow:"ellipsis",overflow:"hidden",marginTop:"2px",whiteSpace:"pre",fontFamily:()=>t.getFontScheme().getMajorFont()},children:a.jsx(Zo,{disableInteractive:!0,PopperProps:{style:{pointerEvents:"none"},disablePortal:!0,popperOptions:{strategy:"fixed",modifiers:[{name:"preventOverflow",enabled:!0,options:{boundariesElement:"viewport"}}]}},title:a.jsx("div",{style:{textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"pre"},children:`The font used for the body.
83
- The heading font is '${t.getFontScheme().getMajorFont()}'.`}),placement:"bottom-start",children:a.jsx("div",{children:t.getFontScheme().getMinorFont()})})})]})]})})},D9=s.memo(s.forwardRef((e,t)=>{const{themes:n,selectedTheme:o,onSelectTheme:r,sx:i,disabled:l=!1,darkMode:d,...c}=e,u=s.useMemo(()=>{const f=n?.search({selected:o})??[],p=[];if(f.length===0)return a.jsx(fi,{sx:{paddingLeft:"16px",paddingRight:"16px",paddingTop:"6px",paddingBottom:"6px"},children:"No themes"});for(let h=0;h<f.length;h++){const m=f[h],g=o&&m?.getName()===o.getName(),x=f[h+1];x&&x.isCustom()!==m.isCustom()&&p.push(a.jsx(Et,{orientation:"horizontal",sx:{marginBottom:"4px"}},`divider-${h}`)),p.push(a.jsx(I9,{docTheme:m,onSelectTheme:()=>r(m),isSelected:g,disabled:l,darkMode:d,onMouseDown:y=>{y.button===0&&y.preventDefault()},onMouseUp:y=>{y.button===0&&r(m)},onKeyDown:y=>{y.keyCode!==Nt.Enter&&y.keyCode!==Nt.Space||r(m)}},m.getName()))}return p},[o,r,d]);return a.jsx(V.Box,{sx:{display:"flex",flexDirection:"column",flex:"1 1 100%"},ref:t,...c,children:a.jsxs(V.Box,{sx:{display:"flex",flexDirection:"column",overflow:"hidden"},children:[a.jsx(fi,{sx:{paddingLeft:"16px",paddingRight:"16px",paddingTop:"4px",paddingBottom:"2px"},children:"Themes"}),a.jsx(Et,{}),a.jsx(V.Box,{sx:{flex:"1 1 100%",overflow:"auto",padding:"6px 16px"},children:u})]})})})),L9=s.memo(s.forwardRef((e,t)=>{const{themes:n,selectedTheme:o,onSelectTheme:r,icon:i,tooltip:l,label:d,variant:c=lr.Toolbar,darkMode:u,panelProps:f,...p}=e,h=i||ve(a.jsx(T8,{})),m=s.useCallback(x=>{const{closeFloatAll:y}=x;return a.jsx(D9,{...f,themes:n,selectedTheme:o,onSelectTheme:r,darkMode:u,onKeyDown:v=>{v.which===Nt.Enter&&y()}})},[n,o,r,f,u]),g={createPopupPanel:m,tooltip:l||d||"Theme",label:d,icon:h,...p};return c===lr.Toolbar?a.jsx(gr,{ref:t,...g}):a.jsx(Wl,{ref:t,...g})})),O9=s.memo(s.forwardRef((e,t)=>{const{command:n,commandHook:o,selectedTheme:r,onSelectTheme:i,disabled:l=!1,darkMode:d,variant:c,...u}=e;c0(n);const f=n?.context()?.themes,p=r||n?.context()?.theme,h=d??n?.context()?.darkMode,m=me(x=>{i?.(x),n?.execute(x,o)},[i,o]),g=s.useCallback((x,y)=>{const{children:v,title:b,...C}=x;let k=x.children;return(n?.disabled()||l)&&(k=a.jsx("div",{children:k})),a.jsx(Si,{command:n,placement:c===zt.Toolbar?"bottom-start":"right-start",disabled:y,...C,children:k})},[n,l]);return a.jsx(L9,{ref:t,themes:f,selectedTheme:p,onSelectTheme:m,variant:c===zt.Menuitem?lr.Menuitem:lr.Toolbar,createTooltip:g,disabled:l,darkMode:h,icon:ve(a.jsx(T8,{})),...u})})),Kk=s.memo(s.forwardRef((e,t)=>{const{commands:n,commandHook:o,scope:r,disabled:i=!1,...l}=e,d=Bn(n,["themeMode"])[0],c=d?.state(),u=d?.state()!==null,f=V.useMediaQuery("(prefers-color-scheme: dark)"),p=c==="dark"||c===null&&f,h=me((m,g)=>{const x={variant:zt.Menuitem,commandHook:o,scope:"appearance",disabled:i},y=a.jsxs(a.Fragment,{children:[a.jsx(Re,{...x,command:d,icon:ve(p?a.jsx(an.DarkMode,{}):a.jsx(an.LightMode,{}))}),a.jsx(Re,{...x,command:g.getCommand("defaultThemeMode"),icon:ve(f?a.jsx(Xx,{}):a.jsx(Yx,{}))}),a.jsx(Et,{orientation:"horizontal"}),a.jsx(Re,{...x,command:g.getCommand("forceLightGrid")}),a.jsx(Re,{...x,command:g.getCommand("forceLightImages")})]});return dn({...m,children:y})},[i,d,o,r,f,c,u]);return a.jsx(bn,{ref:t,quickCommand:"themeMode",commands:n,commandHook:o,createPopupPanel:h,label:"Appearance",tooltip:"Change the light/dark mode to match your viewing preference. This does not affect the view for others.",onQuickClick:()=>{d?.execute(p?"light":"dark",o)},selected:u,icon:ve(p?a.jsx(an.DarkMode,{}):a.jsx(an.LightMode,{})),...l})})),Xk=s.memo(s.forwardRef((e,t)=>{const{commands:n,commandHook:o,scope:r,disabled:i=!1,sx:l,...d}=e,c=s.useCallback((u,f)=>{const p={variant:zt.Menuitem,scope:"help",commandHook:{...o,beforeExecute:(m,g)=>o?.beforeExecute?.(m,g)!==!1&&u.floatReference.closeAll()},disabled:i},h=a.jsxs(a.Fragment,{children:[a.jsx(Re,{...p,command:f.getCommand("showKeyboardShortcuts"),icon:ve(a.jsx(an.Keyboard,{}))}),a.jsx(Et,{orientation:"horizontal"}),a.jsx(Re,{...p,command:f.getCommand("gotoUrlGithub"),icon:ve(a.jsx(ty,{}))}),a.jsx(Re,{...p,command:f.getCommand("gotoUrlDiscord"),icon:ve(a.jsx(ey,{}))}),a.jsx(Re,{...p,command:f.getCommand("gotoUrlDocumentation"),icon:ve(a.jsx(M8,{}))}),a.jsx(Re,{...p,command:f.getCommand("gotoUrlIssue"),icon:ve(a.jsx(Qx,{}))})]});return dn({...u,children:h})},[i,o]);return a.jsx(bn,{ref:t,sx:l,commands:n,disabled:i,commandHook:o,scope:r,label:"Help",tooltip:"Help, feedback, and keyboard shortcuts.",createPopupPanel:c,icon:ve(a.jsx(Jx,{sx:{transform:"scale(0.75)"}})),...d})})),_2=s.memo(s.forwardRef((e,t)=>{const{commands:n,commandHook:o,scope:r,disabled:i=!1,preferSingleMenu:l=!0,showQuickButton:d=!0,variant:c=zt.Toolbar,...u}=e,f=Bn(n,["insertImageFromFile","insertImageFromURL"]),{singleMenuCommand:p,allDisabled:h}=s.useMemo(()=>{let g=null,x=0;for(let y=0;y<f.length;y++)f[y]&&!f[y]?.disabled()&&(l&&c===zt.Menuitem&&(g=x===0?f[y]:null),x++);return{singleMenuCommand:g,allDisabled:x===0}},[f]),m=s.useCallback((g,x)=>{const y={variant:zt.Menuitem,commandHook:o,scope:"insertImage",disabled:i},v=a.jsxs(a.Fragment,{children:[a.jsx(Re,{...y,command:x.getCommand("insertImageFromFile"),icon:ve(a.jsx(ca,{}))}),a.jsx(Re,{...y,command:x.getCommand("insertImageFromURL"),icon:ve(a.jsx(ca,{}))})]});return dn({...g,children:v})},[i,o,r]);return p?a.jsx(Re,{ref:t,variant:c,commandHook:o,disabled:i,command:p,icon:ve(a.jsx(ca,{})),...u}):a.jsx(bn,{ref:t,variant:c,quickCommand:"insertImageFromFile",commands:n,commandHook:o,scope:r,disabled:i||h,tooltip:"Insert a picture from the web to complement your data.",createPopupPanel:m,icon:ve(a.jsx(ca,{})),...u})})),t1=s.memo(s.forwardRef((e,t)=>{const{command:n,...o}=e,r=mr(),[i,l]=s.useState(!1),[d,c]=s.useState("info");return s.useEffect(()=>{const u=r.getMode();l(u?.key==="copy"||u?.key==="cut"),c(u?.key==="cut"?"warning":"info")},[r]),a.jsx(Re,{ref:t,command:n,icon:ve(a.jsx(kx,{isWalking:i,themedType:d})),...o})})),Yk=s.memo(s.forwardRef((e,t)=>{const{...n}=e;return a.jsx(Tr,{ref:t,...n,popupCommandKeys:["quickFormulaSum","quickFormulaAverage","quickFormulaCount","quickFormulaMax","quickFormulaMin",null,"insertFunction"],quickCommand:"quickFormulaSum",popupScope:"quickFormula",label:"Quick Formulas",tooltip:"More quick functions.",icon:o=>{switch(o?.key()){case"quickFormulaSum":return ve(a.jsx(jy,{}));case"insertFunction":return ve(a.jsx(Ty,{}));default:return null}}})})),P9=s.createContext(null);P9.displayName="HookFormContext";const A9=()=>s.useContext(P9),F9=s.memo(s.forwardRef((e,t)=>{const{disabled:n,style:o,className:r,sx:i,defaultInput:l,value:d,formName:c,formOptions:u,onChangeInput:f,onValidate:p,onKeyDown:h,...m}=e,g=A9(),x=c&&g?g.register(c,u):null,[y,v]=s.useState(""),[b,C]=s.useState(""),[k,_]=s.useState(d);s.useEffect(()=>{_(d),C("")},[d]);const I=me(w=>{let S="";try{_(w),p?.(w),f?.(w)}catch(D){S=D.message??"Invalid Name"}c&&g&&(S?g.setError(c,{message:S}):g.clearErrors(c)),C(S)},[d,p,f]),M=me(async w=>{w.keyCode===Nt.Escape&&y!==d&&(I(y),g?.setValue(c,y),g?.clearErrors(c),w.stopPropagation()),h?.(w)},[h,y,d,g]),F=me(w=>{v(w.target.value??"")},[]),j=me(w=>{v(""),x?.onBlur(w)},[]),T=s.useCallback(w=>{I(w.target.value),x?.onChange(w)},[x]);return a.jsx(V.FormControl,{sx:{paddingTop:w=>w.spacing(1.5),minWidth:135,width:"100%",...i},size:"small",ref:t,className:Fn("named-input",r),...m,children:a.jsx(V.TextField,{label:"Name",placeholder:l,onFocus:F,onBlur:j,inputRef:x?.ref,disabled:n,error:!!b,helperText:b||" ",sx:{"& .MuiFormHelperText-root":{marginTop:w=>w.spacing(.5)}},InputLabelProps:{shrink:!0},InputProps:{inputProps:{className:"autoFocus",name:c,spellCheck:!1,autoComplete:"off",readOnly:n,sx:{paddingTop:w=>w.spacing(1.25),paddingBottom:w=>w.spacing(.75),backgroundImage:`linear-gradient(${st.alpha("#fff",pn(5))}, ${st.alpha("#fff",pn(5))})`}}},value:k??"",onChange:T,onKeyDownCapture:M,onContextMenu:w=>{w.stopPropagation()}})})}));F9.displayName="NamedInput";const Ta=e=>e===null?"":e.toString(),z9=s.memo(s.forwardRef((e,t)=>{const{formName:n,formOptions:o,disabled:r,style:i,className:l,sx:d,onKeyDown:c,value:u,onChangeInput:f,resolvedAddress:p,...h}=e,m=A9(),g=n&&m?m.register(n,o):null,[x,y]=s.useState(""),[v,b]=s.useState(!1),[C,k]=s.useState(()=>Ta(u));s.useEffect(()=>{k(Ta(u)),y(""),n&&m&&m.clearErrors(n),b(!1)},[u]);const _=me(S=>{let D="";try{k(S);const E=Ta(u),R=p(S);R.toString()!==E&&f?.(R)}catch{D="Invalid Range"}n&&m&&(D?m.setError(n,{message:D}):m.clearErrors(n)),y(D),b(!0)},[C,f,n,m]),I=me(async S=>{if(v&&S.keyCode===Nt.Escape){const D=Ta(u);k(D),y(""),b(!1),S.stopPropagation()}c?.(S)},[u,f,c,v]),M=me(S=>{g?.onBlur(S)},[g]),F=s.useCallback(S=>{_(S.target.value),g?.onChange(S)},[g]),[j,T]=s.useState(!1),w=s.useMemo(()=>a.jsx(V.InputAdornment,{tabIndex:-1,sx:{display:"flex",position:"relative",flex:"0"},position:"end",children:a.jsx(G8,{disabled:!0,selected:j,onSelectToggle:S=>{T(S)},label:"Select Range",icon:ve(a.jsx(Cy,{}))})}),[j]);return a.jsx(V.FormControl,{sx:{paddingTop:S=>S.spacing(1.5),minWidth:135,width:"100%",...d},size:"small",ref:t,className:Fn("range-input",l),...h,children:a.jsx(V.TextField,{label:"Range",placeholder:"Enter Range",onBlur:M,disabled:r,error:!!x,inputRef:g?.ref,helperText:x||" ",sx:{"& .MuiFormHelperText-root":{marginTop:S=>S.spacing(.5)}},InputLabelProps:{shrink:!0},InputProps:{inputProps:{spellCheck:!1,autoComplete:"off",readOnly:r,name:n,sx:{paddingTop:S=>S.spacing(1.25),paddingBottom:S=>S.spacing(.75)}},sx:{backgroundImage:`linear-gradient(${st.alpha("#fff",pn(5))}, ${st.alpha("#fff",pn(5))})`},endAdornment:w},value:C??"",onChange:F,onKeyDownCapture:I,onContextMenu:S=>{S.stopPropagation()}})})}));z9.displayName="RangeInput";const T2=s.memo(s.forwardRef((e,t)=>{const{sheet:n,className:o,debounceDelay:r=220,sx:i,...l}=e,[d,c]=s.useState(()=>n.getView().getZoomScale()),[u,f]=s.useState(null),p=s.useRef(0);Ht(n,{onViewChange:()=>{f(!0),p.current===0&&c(n.getView().getZoomScale())}}),s.useEffect(()=>{p.current=0,f(!1),c(n.getView().getZoomScale())},[n]),s.useEffect(()=>{p.current!==0&&N.CommonUtils.debounce(()=>{d===p.current&&(p.current=0,n.getView().update({zoomScale:d}))},r)()},[d,r]);const h=me(M=>{let F=M;M<100?F=Math.round(M/(10/9)+10):M>100&&(F=Math.round(3*M-200)),p.current=F,f(!0),c(F)},[n]),m=M=>{let F=M;return M<100?F=10/9*(M-10):M>100&&(F=(M+200)/3),F},g=m(d),[x,y]=s.useState(null),v=s.useRef(null),b=s.useCallback(()=>{const M=x;M&&requestAnimationFrame(()=>{v.current?.contains(document.activeElement)&&M.focus()})},[]),C=xu(()=>{h(m(N.CommonUtils.findNextStep(n.getView().getZoomScale(),!1,10)))}),k=xu(()=>h(m(N.CommonUtils.findNextStep(n.getView().getZoomScale(),!0,10)))),_=xr(),I=s.useMemo(()=>`${N.IFont.getSharedMeasurer()("100%",Math.round(_.typography.fontSize),_.typography.fontFamily).width}px`,[_]);return a.jsxs(V.Box,{ref:t,className:Fn(o),sx:{padding:"0px 0px",display:"flex",alignItems:"center",color:M=>M.palette.text.secondary,...i},onFocus:M=>{M.relatedTarget&&!x&&y(M.relatedTarget)},onBlur:M=>{x&&!v?.current?.contains(M.relatedTarget)&&y(null)},onMouseDown:M=>{M.button===0&&M.preventDefault()},onMouseUp:M=>{M.button===0&&b()},...l,children:[a.jsx(Zo,{disableInteractive:!0,title:"Zoom Out",children:a.jsx(V.IconButton,{sx:{padding:"0","&:hover:not([disabled])":{color:M=>M.palette.primary.main},"& svg":{width:"12px",height:"12px"}},size:"small",onPointerDown:M=>{M.button!==0?M.preventDefault():C(M)},children:a.jsx(an.Remove,{})})}),a.jsx(V.Slider,{ref:v,sx:{flex:"1 1 100%",padding:"6px 0px !important",marginRight:"2px",marginLeft:"2px","& .MuiSlider-thumb":{height:14,width:6,borderRadius:.75,"&.Mui-focusVisible":{boxShadow:M=>`0px 0px 0px 3px ${Uc(M.palette.primary.main,.16)}`},"&:focus, &:hover, &.Mui-active":{boxShadow:M=>`0px 0px 0px 2px ${Uc(M.palette.primary.main,.16)}`}},"& .MuiSlider-mark":{width:"1px",height:"8px"},"& .MuiSlider-markActive":{backgroundColor:"currentColor"},"& .MuiSlider-thumb:not(.MuiSlider-active)":{transition:u?"left 260ms ease-in":"none"}},valueLabelDisplay:"auto",size:"small",track:!1,min:0,step:1,value:g,max:200,marks:[{value:100}],onAnimationEnd:()=>f(!1),onWheel:M=>{h(m(N.CommonUtils.findNextStep(n.getView().getZoomScale(),M.deltaY<0,10)))},onKeyDown:M=>{M.which===Nt.Down||M.which===Nt.Right?(h(m(N.CommonUtils.findNextStep(n.getView().getZoomScale(),!0,10))),M.preventDefault()):M.which===Nt.Up||M.which===Nt.Left?(h(m(N.CommonUtils.findNextStep(n.getView().getZoomScale(),!1,10))),M.preventDefault()):M.which!==Nt.Enter&&M.which!==Nt.Escape||b()},onChange:(M,F)=>{Math.abs(F-100)<3?h(100):h(F)},valueLabelFormat:(M,F)=>`Zoom: ${Math.round(d)}%`}),a.jsx(Zo,{disableInteractive:!0,title:"Zoom In",children:a.jsx(V.IconButton,{sx:{padding:"0","&:hover:not([disabled])":{color:M=>M.palette.primary.main},"& svg":{width:"12px",height:"12px"}},size:"small",onPointerDown:M=>{M.button!==0?M.preventDefault():k(M)},children:a.jsx(an.Add,{})})}),a.jsxs(V.Box,{sx:{display:"flex",flexDirection:"row"},children:[a.jsx(V.Box,{sx:{minWidth:"8px"}}),a.jsx(V.Typography,{noWrap:!0,component:"div",onClick:()=>{h(100)},sx:{cursor:"pointer",display:"flex",flex:"1 1 100%",fontSize:"0.70rem",marginLeft:"2px",marginRight:"2px",userSelect:"none",justifyContent:"center",width:I},children:a.jsx("div",{children:Math.round(d)+"%"})})]})]})}));T2.displayName="SheetZoomScale";const j2=s.memo(s.forwardRef((e,t)=>{const{sx:n,sheet:o,gridStyle:r,children:i,childrenEnd:l,...d}=e;s.useImperativeHandle(t,()=>({}));const c=s.useRef(null);s.useEffect(()=>{const m=g=>g.preventDefault();return c.current?.addEventListener("wheel",m,{passive:!1}),()=>{c.current?.removeEventListener("wheel",m)}},[]);const u=mr(),f=s.useMemo(()=>{const m=u.getMode();return m?.description?m.description:"Ready"},[u]),[p,h]=s.useState(!1);return a.jsxs(V.Box,{ref:c,sx:{display:"flex",alignItems:"stretch",flexDirection:"row",flex:"0",paddingLeft:"12px",paddingRight:"12px",gap:"8px",paddingTop:"1px",minHeight:"calc(1em + 8px)",overflow:p?"visible":"hidden",boxShadow:`0px -1px 0px ${r.header.edgeStrokeFill}`,...n},onMouseOver:()=>h(!0),onMouseLeave:()=>h(!1),...d,children:[i,a.jsx("div",{style:{flex:"1 1 100%",display:"flex",alignItems:"end",overflow:"hidden"},children:a.jsx(V.Typography,{component:"div",sx:{userSelect:"none",whiteSpace:"pre",overflow:"hidden",textOverflow:"ellipsis",color:m=>m.palette.text.secondary},variant:"caption",children:f})}),l?a.jsx(V.Box,{sx:{display:"flex",alignItems:"center"},children:l}):null,a.jsx(Et,{style:{marginTop:"6px",marginBottom:"6px"}}),a.jsx(T2,{sx:{paddingLeft:"4px",minWidth:"175px"},sheet:o})]})}));j2.displayName="StatusBar";var _4,ja={exports:{}},$i={},Wi={exports:{}},T4={},Ma={exports:{}},j4,Xn={},Zr={};function n1(){return j4||(j4=1,Object.defineProperty(Zr,"__esModule",{value:!0}),Zr.dontSetMe=function(e,t,n){if(e[t])return new Error(`Invalid prop ${t} passed to ${n} - do not set this, set it on the child.`)},Zr.findInArray=function(e,t){for(let n=0,o=e.length;n<o;n++)if(t.apply(t,[e[n],n,e]))return e[n]},Zr.int=function(e){return parseInt(e,10)},Zr.isFunction=function(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Function]"},Zr.isNum=function(e){return typeof e=="number"&&!isNaN(e)}),Zr}var M4,R4,Gr={};function M2(){if(R4)return Xn;R4=1,Object.defineProperty(Xn,"__esModule",{value:!0}),Xn.addClassName=l,Xn.addEvent=function(c,u,f,p){if(!c)return;const h={capture:!0,...p};c.addEventListener?c.addEventListener(u,f,h):c.attachEvent?c.attachEvent("on"+u,f):c["on"+u]=f},Xn.addUserSelectStyles=function(c){if(!c)return;let u=c.getElementById("react-draggable-style-el");u||(u=c.createElement("style"),u.type="text/css",u.id="react-draggable-style-el",u.innerHTML=`.react-draggable-transparent-selection *::-moz-selection {all: inherit;}
84
- `,u.innerHTML+=`.react-draggable-transparent-selection *::selection {all: inherit;}
85
- `,c.getElementsByTagName("head")[0].appendChild(u)),c.body&&l(c.body,"react-draggable-transparent-selection")},Xn.createCSSTransform=function(c,u){const f=r(c,u,"px");return{[(0,t.browserPrefixToKey)("transform",t.default)]:f}},Xn.createSVGTransform=function(c,u){return r(c,u,"")},Xn.getTouch=function(c,u){return c.targetTouches&&(0,e.findInArray)(c.targetTouches,f=>u===f.identifier)||c.changedTouches&&(0,e.findInArray)(c.changedTouches,f=>u===f.identifier)},Xn.getTouchIdentifier=function(c){if(c.targetTouches&&c.targetTouches[0])return c.targetTouches[0].identifier;if(c.changedTouches&&c.changedTouches[0])return c.changedTouches[0].identifier},Xn.getTranslation=r,Xn.innerHeight=function(c){let u=c.clientHeight;const f=c.ownerDocument.defaultView.getComputedStyle(c);return u-=(0,e.int)(f.paddingTop),u-=(0,e.int)(f.paddingBottom),u},Xn.innerWidth=function(c){let u=c.clientWidth;const f=c.ownerDocument.defaultView.getComputedStyle(c);return u-=(0,e.int)(f.paddingLeft),u-=(0,e.int)(f.paddingRight),u},Xn.matchesSelector=o,Xn.matchesSelectorAndParentsTo=function(c,u,f){let p=c;do{if(o(p,u))return!0;if(p===f)return!1;p=p.parentNode}while(p);return!1},Xn.offsetXYFromParent=function(c,u,f){const p=u===u.ownerDocument.body?{left:0,top:0}:u.getBoundingClientRect(),h=(c.clientX+u.scrollLeft-p.left)/f,m=(c.clientY+u.scrollTop-p.top)/f;return{x:h,y:m}},Xn.outerHeight=function(c){let u=c.clientHeight;const f=c.ownerDocument.defaultView.getComputedStyle(c);return u+=(0,e.int)(f.borderTopWidth),u+=(0,e.int)(f.borderBottomWidth),u},Xn.outerWidth=function(c){let u=c.clientWidth;const f=c.ownerDocument.defaultView.getComputedStyle(c);return u+=(0,e.int)(f.borderLeftWidth),u+=(0,e.int)(f.borderRightWidth),u},Xn.removeClassName=d,Xn.removeEvent=function(c,u,f,p){if(!c)return;const h={capture:!0,...p};c.removeEventListener?c.removeEventListener(u,f,h):c.detachEvent?c.detachEvent("on"+u,f):c["on"+u]=null},Xn.scheduleRemoveUserSelectStyles=function(c){window.requestAnimationFrame?window.requestAnimationFrame(()=>{i(c)}):i(c)};var e=n1(),t=function(c,u){if(typeof WeakMap=="function")var f=new WeakMap,p=new WeakMap;return function(h,m){if(!m&&h&&h.__esModule)return h;var g,x,y={__proto__:null,default:h};if(h===null||typeof h!="object"&&typeof h!="function")return y;if(g=m?p:f){if(g.has(h))return g.get(h);g.set(h,y)}for(const v in h)v!=="default"&&{}.hasOwnProperty.call(h,v)&&((x=(g=Object.defineProperty)&&Object.getOwnPropertyDescriptor(h,v))&&(x.get||x.set)?g(y,v,x):y[v]=h[v]);return y}(c,u)}(function(){if(M4)return Gr;M4=1,Object.defineProperty(Gr,"__esModule",{value:!0}),Gr.browserPrefixToKey=f,Gr.browserPrefixToStyle=function(p,h){return h?`-${h.toLowerCase()}-${p}`:p},Gr.default=void 0,Gr.getPrefix=u;const c=["Moz","Webkit","O","ms"];function u(){let p=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"transform";if(typeof window>"u")return"";const h=window.document?.documentElement?.style;if(!h||p in h)return"";for(let m=0;m<c.length;m++)if(f(p,c[m])in h)return c[m];return""}function f(p,h){return h?`${h}${function(m){let g="",x=!0;for(let y=0;y<m.length;y++)x?(g+=m[y].toUpperCase(),x=!1):m[y]==="-"?x=!0:g+=m[y];return g}(p)}`:p}return Gr.default=u(),Gr}());let n="";function o(c,u){return n||(n=(0,e.findInArray)(["matches","webkitMatchesSelector","mozMatchesSelector","msMatchesSelector","oMatchesSelector"],function(f){return(0,e.isFunction)(c[f])})),!!(0,e.isFunction)(c[n])&&c[n](u)}function r(c,u,f){let{x:p,y:h}=c,m=`translate(${p}${f},${h}${f})`;return u&&(m=`translate(${`${typeof u.x=="string"?u.x:u.x+f}`}, ${`${typeof u.y=="string"?u.y:u.y+f}`})`+m),m}function i(c){if(c)try{if(c.body&&d(c.body,"react-draggable-transparent-selection"),c.selection)c.selection.empty();else{const u=(c.defaultView||window).getSelection();u&&u.type!=="Caret"&&u.removeAllRanges()}}catch{}}function l(c,u){c.classList?c.classList.add(u):c.className.match(new RegExp(`(?:^|\\s)${u}(?!\\S)`))||(c.className+=` ${u}`)}function d(c,u){c.classList?c.classList.remove(u):c.className=c.className.replace(new RegExp(`(?:^|\\s)${u}(?!\\S)`,"g"),"")}return Xn}var I4,Cr={};function B9(){if(I4)return Cr;I4=1,Object.defineProperty(Cr,"__esModule",{value:!0}),Cr.canDragX=function(o){return o.props.axis==="both"||o.props.axis==="x"},Cr.canDragY=function(o){return o.props.axis==="both"||o.props.axis==="y"},Cr.createCoreData=function(o,r,i){const l=!(0,e.isNum)(o.lastX),d=n(o);return l?{node:d,deltaX:0,deltaY:0,lastX:r,lastY:i,x:r,y:i}:{node:d,deltaX:r-o.lastX,deltaY:i-o.lastY,lastX:o.lastX,lastY:o.lastY,x:r,y:i}},Cr.createDraggableData=function(o,r){const i=o.props.scale;return{node:r.node,x:o.state.x+r.deltaX/i,y:o.state.y+r.deltaY/i,deltaX:r.deltaX/i,deltaY:r.deltaY/i,lastX:o.state.x,lastY:o.state.y}},Cr.getBoundPosition=function(o,r,i){if(!o.props.bounds)return[r,i];let{bounds:l}=o.props;l=typeof l=="string"?l:function(c){return{left:c.left,top:c.top,right:c.right,bottom:c.bottom}}(l);const d=n(o);if(typeof l=="string"){const{ownerDocument:c}=d,u=c.defaultView;let f;if(l==="parent"?f=d.parentNode:f=d.getRootNode().querySelector(l),!(f instanceof u.HTMLElement))throw new Error('Bounds selector "'+l+'" could not find an element.');const p=f,h=u.getComputedStyle(d),m=u.getComputedStyle(p);l={left:-d.offsetLeft+(0,e.int)(m.paddingLeft)+(0,e.int)(h.marginLeft),top:-d.offsetTop+(0,e.int)(m.paddingTop)+(0,e.int)(h.marginTop),right:(0,t.innerWidth)(p)-(0,t.outerWidth)(d)-d.offsetLeft+(0,e.int)(m.paddingRight)-(0,e.int)(h.marginRight),bottom:(0,t.innerHeight)(p)-(0,t.outerHeight)(d)-d.offsetTop+(0,e.int)(m.paddingBottom)-(0,e.int)(h.marginBottom)}}return(0,e.isNum)(l.right)&&(r=Math.min(r,l.right)),(0,e.isNum)(l.bottom)&&(i=Math.min(i,l.bottom)),(0,e.isNum)(l.left)&&(r=Math.max(r,l.left)),(0,e.isNum)(l.top)&&(i=Math.max(i,l.top)),[r,i]},Cr.getControlPosition=function(o,r,i){const l=typeof r=="number"?(0,t.getTouch)(o,r):null;if(typeof r=="number"&&!l)return null;const d=n(i),c=i.props.offsetParent||d.offsetParent||d.ownerDocument.body;return(0,t.offsetXYFromParent)(l||o,c,i.props.scale)},Cr.snapToGrid=function(o,r,i){const l=Math.round(r/o[0])*o[0],d=Math.round(i/o[1])*o[1];return[l,d]};var e=n1(),t=M2();function n(o){const r=o.findDOMNode();if(!r)throw new Error("<DraggableCore>: Unmounted during event!");return r}return Cr}var D4,L4,O4,P4,Ui={},Ra={};function N9(){return D4||(D4=1,Object.defineProperty(Ra,"__esModule",{value:!0}),Ra.default=function(){}),Ra}function Jk(){if(L4)return Ui;L4=1,Object.defineProperty(Ui,"__esModule",{value:!0}),Ui.default=void 0;var e=function(m,g){if(typeof WeakMap=="function")var x=new WeakMap,y=new WeakMap;return function(v,b){if(!b&&v&&v.__esModule)return v;var C,k,_={__proto__:null,default:v};if(v===null||typeof v!="object"&&typeof v!="function")return _;if(C=b?y:x){if(C.has(v))return C.get(v);C.set(v,_)}for(const I in v)I!=="default"&&{}.hasOwnProperty.call(v,I)&&((k=(C=Object.defineProperty)&&Object.getOwnPropertyDescriptor(v,I))&&(k.get||k.set)?C(_,I,k):_[I]=v[I]);return _}(m,g)}(s),t=d(Zl()),n=d(eo),o=M2(),r=B9(),i=n1(),l=d(N9());function d(m){return m&&m.__esModule?m:{default:m}}function c(m,g,x){return(g=function(y){var v=function(b,C){if(typeof b!="object"||!b)return b;var k=b[Symbol.toPrimitive];if(k!==void 0){var _=k.call(b,C);if(typeof _!="object")return _;throw new TypeError("@@toPrimitive must return a primitive value.")}return(C==="string"?String:Number)(b)}(y,"string");return typeof v=="symbol"?v:v+""}(g))in m?Object.defineProperty(m,g,{value:x,enumerable:!0,configurable:!0,writable:!0}):m[g]=x,m}const u={start:"touchstart",move:"touchmove",stop:"touchend"},f={start:"mousedown",move:"mousemove",stop:"mouseup"};let p=f,h=class extends e.Component{constructor(){super(...arguments),c(this,"dragging",!1),c(this,"lastX",NaN),c(this,"lastY",NaN),c(this,"touchIdentifier",null),c(this,"mounted",!1),c(this,"handleDragStart",m=>{if(this.props.onMouseDown(m),!this.props.allowAnyClick&&typeof m.button=="number"&&m.button!==0)return!1;const g=this.findDOMNode();if(!g||!g.ownerDocument||!g.ownerDocument.body)throw new Error("<DraggableCore> not mounted on DragStart!");const{ownerDocument:x}=g;if(this.props.disabled||!(m.target instanceof x.defaultView.Node)||this.props.handle&&!(0,o.matchesSelectorAndParentsTo)(m.target,this.props.handle,g)||this.props.cancel&&(0,o.matchesSelectorAndParentsTo)(m.target,this.props.cancel,g))return;m.type!=="touchstart"||this.props.allowMobileScroll||m.preventDefault();const y=(0,o.getTouchIdentifier)(m);this.touchIdentifier=y;const v=(0,r.getControlPosition)(m,y,this);if(v==null)return;const{x:b,y:C}=v,k=(0,r.createCoreData)(this,b,C);(0,l.default)("DraggableCore: handleDragStart: %j",k),(0,l.default)("calling",this.props.onStart),this.props.onStart(m,k)!==!1&&this.mounted!==!1&&(this.props.enableUserSelectHack&&(0,o.addUserSelectStyles)(x),this.dragging=!0,this.lastX=b,this.lastY=C,(0,o.addEvent)(x,p.move,this.handleDrag),(0,o.addEvent)(x,p.stop,this.handleDragStop))}),c(this,"handleDrag",m=>{const g=(0,r.getControlPosition)(m,this.touchIdentifier,this);if(g==null)return;let{x,y}=g;if(Array.isArray(this.props.grid)){let b=x-this.lastX,C=y-this.lastY;if([b,C]=(0,r.snapToGrid)(this.props.grid,b,C),!b&&!C)return;x=this.lastX+b,y=this.lastY+C}const v=(0,r.createCoreData)(this,x,y);if((0,l.default)("DraggableCore: handleDrag: %j",v),this.props.onDrag(m,v)!==!1&&this.mounted!==!1)this.lastX=x,this.lastY=y;else try{this.handleDragStop(new MouseEvent("mouseup"))}catch{const C=document.createEvent("MouseEvents");C.initMouseEvent("mouseup",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),this.handleDragStop(C)}}),c(this,"handleDragStop",m=>{if(!this.dragging)return;const g=(0,r.getControlPosition)(m,this.touchIdentifier,this);if(g==null)return;let{x,y}=g;if(Array.isArray(this.props.grid)){let C=x-this.lastX||0,k=y-this.lastY||0;[C,k]=(0,r.snapToGrid)(this.props.grid,C,k),x=this.lastX+C,y=this.lastY+k}const v=(0,r.createCoreData)(this,x,y);if(this.props.onStop(m,v)===!1||this.mounted===!1)return!1;const b=this.findDOMNode();b&&this.props.enableUserSelectHack&&(0,o.scheduleRemoveUserSelectStyles)(b.ownerDocument),(0,l.default)("DraggableCore: handleDragStop: %j",v),this.dragging=!1,this.lastX=NaN,this.lastY=NaN,b&&((0,l.default)("DraggableCore: Removing handlers"),(0,o.removeEvent)(b.ownerDocument,p.move,this.handleDrag),(0,o.removeEvent)(b.ownerDocument,p.stop,this.handleDragStop))}),c(this,"onMouseDown",m=>(p=f,this.handleDragStart(m))),c(this,"onMouseUp",m=>(p=f,this.handleDragStop(m))),c(this,"onTouchStart",m=>(p=u,this.handleDragStart(m))),c(this,"onTouchEnd",m=>(p=u,this.handleDragStop(m)))}componentDidMount(){this.mounted=!0;const m=this.findDOMNode();m&&(0,o.addEvent)(m,u.start,this.onTouchStart,{passive:!1})}componentWillUnmount(){this.mounted=!1;const m=this.findDOMNode();if(m){const{ownerDocument:g}=m;(0,o.removeEvent)(g,f.move,this.handleDrag),(0,o.removeEvent)(g,u.move,this.handleDrag),(0,o.removeEvent)(g,f.stop,this.handleDragStop),(0,o.removeEvent)(g,u.stop,this.handleDragStop),(0,o.removeEvent)(m,u.start,this.onTouchStart,{passive:!1}),this.props.enableUserSelectHack&&(0,o.scheduleRemoveUserSelectStyles)(g)}}findDOMNode(){return this.props?.nodeRef?this.props?.nodeRef?.current:n.default.findDOMNode(this)}render(){return e.cloneElement(e.Children.only(this.props.children),{onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp,onTouchEnd:this.onTouchEnd})}};return Ui.default=h,c(h,"displayName","DraggableCore"),c(h,"propTypes",{allowAnyClick:t.default.bool,allowMobileScroll:t.default.bool,children:t.default.node.isRequired,disabled:t.default.bool,enableUserSelectHack:t.default.bool,offsetParent:function(m,g){if(m[g]&&m[g].nodeType!==1)throw new Error("Draggable's offsetParent must be a DOM Node.")},grid:t.default.arrayOf(t.default.number),handle:t.default.string,cancel:t.default.string,nodeRef:t.default.object,onStart:t.default.func,onDrag:t.default.func,onStop:t.default.func,onMouseDown:t.default.func,scale:t.default.number,className:i.dontSetMe,style:i.dontSetMe,transform:i.dontSetMe}),c(h,"defaultProps",{allowAnyClick:!1,allowMobileScroll:!1,disabled:!1,enableUserSelectHack:!0,onStart:function(){},onDrag:function(){},onStop:function(){},onMouseDown:function(){},scale:1}),Ui}function Qk(){return O4||(O4=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"DraggableCore",{enumerable:!0,get:function(){return c.default}}),e.default=void 0;var t=function(g,x){if(typeof WeakMap=="function")var y=new WeakMap,v=new WeakMap;return function(b,C){if(!C&&b&&b.__esModule)return b;var k,_,I={__proto__:null,default:b};if(b===null||typeof b!="object"&&typeof b!="function")return I;if(k=C?v:y){if(k.has(b))return k.get(b);k.set(b,I)}for(const M in b)M!=="default"&&{}.hasOwnProperty.call(b,M)&&((_=(k=Object.defineProperty)&&Object.getOwnPropertyDescriptor(b,M))&&(_.get||_.set)?k(I,M,_):I[M]=b[M]);return I}(g,x)}(s),n=f(Zl()),o=f(eo),r=function(){if(_4)return Ma.exports;function g(y){var v,b,C="";if(typeof y=="string"||typeof y=="number")C+=y;else if(typeof y=="object")if(Array.isArray(y)){var k=y.length;for(v=0;v<k;v++)y[v]&&(b=g(y[v]))&&(C&&(C+=" "),C+=b)}else for(b in y)y[b]&&(C&&(C+=" "),C+=b);return C}function x(){for(var y,v,b=0,C="",k=arguments.length;b<k;b++)(y=arguments[b])&&(v=g(y))&&(C&&(C+=" "),C+=v);return C}return _4=1,Ma.exports=x,Ma.exports.clsx=x,Ma.exports}(),i=M2(),l=B9(),d=n1(),c=f(Jk()),u=f(N9());function f(g){return g&&g.__esModule?g:{default:g}}function p(){return p=Object.assign?Object.assign.bind():function(g){for(var x=1;x<arguments.length;x++){var y=arguments[x];for(var v in y)({}).hasOwnProperty.call(y,v)&&(g[v]=y[v])}return g},p.apply(null,arguments)}function h(g,x,y){return(x=function(v){var b=function(C,k){if(typeof C!="object"||!C)return C;var _=C[Symbol.toPrimitive];if(_!==void 0){var I=_.call(C,k);if(typeof I!="object")return I;throw new TypeError("@@toPrimitive must return a primitive value.")}return(k==="string"?String:Number)(C)}(v,"string");return typeof b=="symbol"?b:b+""}(x))in g?Object.defineProperty(g,x,{value:y,enumerable:!0,configurable:!0,writable:!0}):g[x]=y,g}class m extends t.Component{static getDerivedStateFromProps(x,y){let{position:v}=x,{prevPropsPosition:b}=y;return!v||b&&v.x===b.x&&v.y===b.y?null:((0,u.default)("Draggable: getDerivedStateFromProps %j",{position:v,prevPropsPosition:b}),{x:v.x,y:v.y,prevPropsPosition:{...v}})}constructor(x){super(x),h(this,"onDragStart",(y,v)=>{if((0,u.default)("Draggable: onDragStart: %j",v),this.props.onStart(y,(0,l.createDraggableData)(this,v))===!1)return!1;this.setState({dragging:!0,dragged:!0})}),h(this,"onDrag",(y,v)=>{if(!this.state.dragging)return!1;(0,u.default)("Draggable: onDrag: %j",v);const b=(0,l.createDraggableData)(this,v),C={x:b.x,y:b.y,slackX:0,slackY:0};if(this.props.bounds){const{x:k,y:_}=C;C.x+=this.state.slackX,C.y+=this.state.slackY;const[I,M]=(0,l.getBoundPosition)(this,C.x,C.y);C.x=I,C.y=M,C.slackX=this.state.slackX+(k-C.x),C.slackY=this.state.slackY+(_-C.y),b.x=C.x,b.y=C.y,b.deltaX=C.x-this.state.x,b.deltaY=C.y-this.state.y}if(this.props.onDrag(y,b)===!1)return!1;this.setState(C)}),h(this,"onDragStop",(y,v)=>{if(!this.state.dragging||this.props.onStop(y,(0,l.createDraggableData)(this,v))===!1)return!1;(0,u.default)("Draggable: onDragStop: %j",v);const b={dragging:!1,slackX:0,slackY:0};if(this.props.position){const{x:C,y:k}=this.props.position;b.x=C,b.y=k}this.setState(b)}),this.state={dragging:!1,dragged:!1,x:x.position?x.position.x:x.defaultPosition.x,y:x.position?x.position.y:x.defaultPosition.y,prevPropsPosition:{...x.position},slackX:0,slackY:0,isElementSVG:!1},!x.position||x.onDrag||x.onStop||console.warn("A `position` was applied to this <Draggable>, without drag handlers. This will make this component effectively undraggable. Please attach `onDrag` or `onStop` handlers so you can adjust the `position` of this element.")}componentDidMount(){window.SVGElement!==void 0&&this.findDOMNode()instanceof window.SVGElement&&this.setState({isElementSVG:!0})}componentWillUnmount(){this.state.dragging&&this.setState({dragging:!1})}findDOMNode(){return this.props?.nodeRef?.current??o.default.findDOMNode(this)}render(){const{axis:x,bounds:y,children:v,defaultPosition:b,defaultClassName:C,defaultClassNameDragging:k,defaultClassNameDragged:_,position:I,positionOffset:M,scale:F,...j}=this.props;let T={},w=null;const S=!I||this.state.dragging,D=I||b,E={x:(0,l.canDragX)(this)&&S?this.state.x:D.x,y:(0,l.canDragY)(this)&&S?this.state.y:D.y};this.state.isElementSVG?w=(0,i.createSVGTransform)(E,M):T=(0,i.createCSSTransform)(E,M);const R=(0,r.clsx)(v.props.className||"",C,{[k]:this.state.dragging,[_]:this.state.dragged});return t.createElement(c.default,p({},j,{onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop}),t.cloneElement(t.Children.only(v),{className:R,style:{...v.props.style,...T},transform:w}))}}e.default=m,h(m,"displayName","Draggable"),h(m,"propTypes",{...c.default.propTypes,axis:n.default.oneOf(["both","x","y","none"]),bounds:n.default.oneOfType([n.default.shape({left:n.default.number,right:n.default.number,top:n.default.number,bottom:n.default.number}),n.default.string,n.default.oneOf([!1])]),defaultClassName:n.default.string,defaultClassNameDragging:n.default.string,defaultClassNameDragged:n.default.string,defaultPosition:n.default.shape({x:n.default.number,y:n.default.number}),positionOffset:n.default.shape({x:n.default.oneOfType([n.default.number,n.default.string]),y:n.default.oneOfType([n.default.number,n.default.string])}),position:n.default.shape({x:n.default.number,y:n.default.number}),className:d.dontSetMe,style:d.dontSetMe,transform:d.dontSetMe}),h(m,"defaultProps",{...c.default.defaultProps,axis:"both",bounds:!1,defaultClassName:"react-draggable",defaultClassNameDragging:"react-draggable-dragging",defaultClassNameDragged:"react-draggable-dragged",defaultPosition:{x:0,y:0},scale:1})}(T4)),T4}function V9(){if(P4)return Wi.exports;P4=1;const{default:e,DraggableCore:t}=Qk();return Wi.exports=e,Wi.exports.default=e,Wi.exports.DraggableCore=t,Wi.exports}var A4,Ia={};function eE(){if(A4)return Ia;A4=1,Ia.__esModule=!0,Ia.cloneElement=function(i,l){return l.style&&i.props.style&&(l.style=o(o({},i.props.style),l.style)),l.className&&i.props.className&&(l.className=i.props.className+" "+l.className),t.default.cloneElement(i,l)};var e,t=(e=s)&&e.__esModule?e:{default:e};function n(i,l){var d=Object.keys(i);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(i);l&&(c=c.filter(function(u){return Object.getOwnPropertyDescriptor(i,u).enumerable})),d.push.apply(d,c)}return d}function o(i){for(var l=1;l<arguments.length;l++){var d=arguments[l]!=null?arguments[l]:{};l%2?n(Object(d),!0).forEach(function(c){r(i,c,d[c])}):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(d)):n(Object(d)).forEach(function(c){Object.defineProperty(i,c,Object.getOwnPropertyDescriptor(d,c))})}return i}function r(i,l,d){return(l=function(c){var u=function(f,p){if(typeof f!="object"||f===null)return f;var h=f[Symbol.toPrimitive];if(h!==void 0){var m=h.call(f,p);if(typeof m!="object")return m;throw new TypeError("@@toPrimitive must return a primitive value.")}return(p==="string"?String:Number)(f)}(c,"string");return typeof u=="symbol"?u:String(u)}(l))in i?Object.defineProperty(i,l,{value:d,enumerable:!0,configurable:!0,writable:!0}):i[l]=d,i}return Ia}var F4,z4,qi={};function H9(){if(F4)return qi;F4=1,qi.__esModule=!0,qi.resizableProps=void 0;var e,t=(e=Zl())&&e.__esModule?e:{default:e};V9();var n={axis:t.default.oneOf(["both","x","y","none"]),className:t.default.string,children:t.default.element.isRequired,draggableOpts:t.default.shape({allowAnyClick:t.default.bool,cancel:t.default.string,children:t.default.node,disabled:t.default.bool,enableUserSelectHack:t.default.bool,offsetParent:t.default.node,grid:t.default.arrayOf(t.default.number),handle:t.default.string,nodeRef:t.default.object,onStart:t.default.func,onDrag:t.default.func,onStop:t.default.func,onMouseDown:t.default.func,scale:t.default.number}),height:function(){for(var o=arguments.length,r=new Array(o),i=0;i<o;i++)r[i]=arguments[i];var l,d=r[0];return d.axis==="both"||d.axis==="y"?(l=t.default.number).isRequired.apply(l,r):t.default.number.apply(t.default,r)},handle:t.default.oneOfType([t.default.node,t.default.func]),handleSize:t.default.arrayOf(t.default.number),lockAspectRatio:t.default.bool,maxConstraints:t.default.arrayOf(t.default.number),minConstraints:t.default.arrayOf(t.default.number),onResizeStop:t.default.func,onResizeStart:t.default.func,onResize:t.default.func,resizeHandles:t.default.arrayOf(t.default.oneOf(["s","w","e","n","sw","nw","se","ne"])),transformScale:t.default.number,width:function(){for(var o=arguments.length,r=new Array(o),i=0;i<o;i++)r[i]=arguments[i];var l,d=r[0];return d.axis==="both"||d.axis==="x"?(l=t.default.number).isRequired.apply(l,r):t.default.number.apply(t.default,r)}};return qi.resizableProps=n,qi}function $9(){if(z4)return $i;z4=1,$i.__esModule=!0,$i.default=void 0;var e=function(h,m){if(h&&h.__esModule)return h;if(h===null||typeof h!="object"&&typeof h!="function")return{default:h};var g=i(m);if(g&&g.has(h))return g.get(h);var x={},y=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var v in h)if(v!=="default"&&Object.prototype.hasOwnProperty.call(h,v)){var b=y?Object.getOwnPropertyDescriptor(h,v):null;b&&(b.get||b.set)?Object.defineProperty(x,v,b):x[v]=h[v]}return x.default=h,g&&g.set(h,x),x}(s),t=V9(),n=eE(),o=H9(),r=["children","className","draggableOpts","width","height","handle","handleSize","lockAspectRatio","axis","minConstraints","maxConstraints","onResize","onResizeStop","onResizeStart","resizeHandles","transformScale"];function i(h){if(typeof WeakMap!="function")return null;var m=new WeakMap,g=new WeakMap;return(i=function(x){return x?g:m})(h)}function l(){return l=Object.assign?Object.assign.bind():function(h){for(var m=1;m<arguments.length;m++){var g=arguments[m];for(var x in g)Object.prototype.hasOwnProperty.call(g,x)&&(h[x]=g[x])}return h},l.apply(this,arguments)}function d(h,m){var g=Object.keys(h);if(Object.getOwnPropertySymbols){var x=Object.getOwnPropertySymbols(h);m&&(x=x.filter(function(y){return Object.getOwnPropertyDescriptor(h,y).enumerable})),g.push.apply(g,x)}return g}function c(h){for(var m=1;m<arguments.length;m++){var g=arguments[m]!=null?arguments[m]:{};m%2?d(Object(g),!0).forEach(function(x){u(h,x,g[x])}):Object.getOwnPropertyDescriptors?Object.defineProperties(h,Object.getOwnPropertyDescriptors(g)):d(Object(g)).forEach(function(x){Object.defineProperty(h,x,Object.getOwnPropertyDescriptor(g,x))})}return h}function u(h,m,g){return(m=function(x){var y=function(v,b){if(typeof v!="object"||v===null)return v;var C=v[Symbol.toPrimitive];if(C!==void 0){var k=C.call(v,b);if(typeof k!="object")return k;throw new TypeError("@@toPrimitive must return a primitive value.")}return(b==="string"?String:Number)(v)}(x,"string");return typeof y=="symbol"?y:String(y)}(m))in h?Object.defineProperty(h,m,{value:g,enumerable:!0,configurable:!0,writable:!0}):h[m]=g,h}function f(h,m){return f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(g,x){return g.__proto__=x,g},f(h,m)}var p=function(h){var m,g;function x(){for(var v,b=arguments.length,C=new Array(b),k=0;k<b;k++)C[k]=arguments[k];return(v=h.call.apply(h,[this].concat(C))||this).handleRefs={},v.lastHandleRect=null,v.slack=null,v}g=h,(m=x).prototype=Object.create(g.prototype),m.prototype.constructor=m,f(m,g);var y=x.prototype;return y.componentWillUnmount=function(){this.resetData()},y.resetData=function(){this.lastHandleRect=this.slack=null},y.runConstraints=function(v,b){var C=this.props,k=C.minConstraints,_=C.maxConstraints,I=C.lockAspectRatio;if(!k&&!_&&!I)return[v,b];if(I){var M=this.props.width/this.props.height,F=v-this.props.width,j=b-this.props.height;Math.abs(F)>Math.abs(j*M)?b=v/M:v=b*M}var T=v,w=b,S=this.slack||[0,0],D=S[0],E=S[1];return v+=D,b+=E,k&&(v=Math.max(k[0],v),b=Math.max(k[1],b)),_&&(v=Math.min(_[0],v),b=Math.min(_[1],b)),this.slack=[D+(T-v),E+(w-b)],[v,b]},y.resizeHandler=function(v,b){var C=this;return function(k,_){var I=_.node,M=_.deltaX,F=_.deltaY;v==="onResizeStart"&&C.resetData();var j=(C.props.axis==="both"||C.props.axis==="x")&&b!=="n"&&b!=="s",T=(C.props.axis==="both"||C.props.axis==="y")&&b!=="e"&&b!=="w";if(j||T){var w=b[0],S=b[b.length-1],D=I.getBoundingClientRect();C.lastHandleRect!=null&&(S==="w"&&(M+=D.left-C.lastHandleRect.left),w==="n"&&(F+=D.top-C.lastHandleRect.top)),C.lastHandleRect=D,S==="w"&&(M=-M),w==="n"&&(F=-F);var E=C.props.width+(j?M/C.props.transformScale:0),R=C.props.height+(T?F/C.props.transformScale:0),A=C.runConstraints(E,R);E=A[0],R=A[1];var L=E!==C.props.width||R!==C.props.height,P=typeof C.props[v]=="function"?C.props[v]:null;P&&!(v==="onResize"&&!L)&&(k.persist==null||k.persist(),P(k,{node:I,size:{width:E,height:R},handle:b})),v==="onResizeStop"&&C.resetData()}}},y.renderResizeHandle=function(v,b){var C=this.props.handle;if(!C)return e.createElement("span",{className:"react-resizable-handle react-resizable-handle-"+v,ref:b});if(typeof C=="function")return C(v,b);var k=c({ref:b},typeof C.type=="string"?{}:{handleAxis:v});return e.cloneElement(C,k)},y.render=function(){var v=this,b=this.props,C=b.children,k=b.className,_=b.draggableOpts;b.width,b.height,b.handle,b.handleSize,b.lockAspectRatio,b.axis,b.minConstraints,b.maxConstraints,b.onResize,b.onResizeStop,b.onResizeStart;var I=b.resizeHandles;b.transformScale;var M=function(F,j){if(F==null)return{};var T,w,S={},D=Object.keys(F);for(w=0;w<D.length;w++)T=D[w],j.indexOf(T)>=0||(S[T]=F[T]);return S}(b,r);return(0,n.cloneElement)(C,c(c({},M),{},{className:(k?k+" ":"")+"react-resizable",children:[].concat(C.props.children,I.map(function(F){var j,T=(j=v.handleRefs[F])!=null?j:v.handleRefs[F]=e.createRef();return e.createElement(t.DraggableCore,l({},_,{nodeRef:T,key:"resizableHandle-"+F,onStop:v.resizeHandler("onResizeStop",F),onStart:v.resizeHandler("onResizeStart",F),onDrag:v.resizeHandler("onResize",F)}),v.renderResizeHandle(F,T))}))}))},x}(e.Component);return $i.default=p,p.propTypes=o.resizableProps,p.defaultProps={axis:"both",handleSize:[20,20],lockAspectRatio:!1,minConstraints:[20,20],maxConstraints:[1/0,1/0],resizeHandles:["se"],transformScale:1},$i}var B4,N4,Zi={};function tE(){if(B4)return Zi;B4=1,Zi.__esModule=!0,Zi.default=void 0;var e=function(m,g){if(m&&m.__esModule)return m;if(m===null||typeof m!="object"&&typeof m!="function")return{default:m};var x=l(g);if(x&&x.has(m))return x.get(m);var y={},v=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var b in m)if(b!=="default"&&Object.prototype.hasOwnProperty.call(m,b)){var C=v?Object.getOwnPropertyDescriptor(m,b):null;C&&(C.get||C.set)?Object.defineProperty(y,b,C):y[b]=m[b]}return y.default=m,x&&x.set(m,y),y}(s),t=i(Zl()),n=i($9()),o=H9(),r=["handle","handleSize","onResize","onResizeStart","onResizeStop","draggableOpts","minConstraints","maxConstraints","lockAspectRatio","axis","width","height","resizeHandles","style","transformScale"];function i(m){return m&&m.__esModule?m:{default:m}}function l(m){if(typeof WeakMap!="function")return null;var g=new WeakMap,x=new WeakMap;return(l=function(y){return y?x:g})(m)}function d(){return d=Object.assign?Object.assign.bind():function(m){for(var g=1;g<arguments.length;g++){var x=arguments[g];for(var y in x)Object.prototype.hasOwnProperty.call(x,y)&&(m[y]=x[y])}return m},d.apply(this,arguments)}function c(m,g){var x=Object.keys(m);if(Object.getOwnPropertySymbols){var y=Object.getOwnPropertySymbols(m);g&&(y=y.filter(function(v){return Object.getOwnPropertyDescriptor(m,v).enumerable})),x.push.apply(x,y)}return x}function u(m){for(var g=1;g<arguments.length;g++){var x=arguments[g]!=null?arguments[g]:{};g%2?c(Object(x),!0).forEach(function(y){f(m,y,x[y])}):Object.getOwnPropertyDescriptors?Object.defineProperties(m,Object.getOwnPropertyDescriptors(x)):c(Object(x)).forEach(function(y){Object.defineProperty(m,y,Object.getOwnPropertyDescriptor(x,y))})}return m}function f(m,g,x){return(g=function(y){var v=function(b,C){if(typeof b!="object"||b===null)return b;var k=b[Symbol.toPrimitive];if(k!==void 0){var _=k.call(b,C);if(typeof _!="object")return _;throw new TypeError("@@toPrimitive must return a primitive value.")}return(C==="string"?String:Number)(b)}(y,"string");return typeof v=="symbol"?v:String(v)}(g))in m?Object.defineProperty(m,g,{value:x,enumerable:!0,configurable:!0,writable:!0}):m[g]=x,m}function p(m,g){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(x,y){return x.__proto__=y,x},p(m,g)}var h=function(m){var g,x;function y(){for(var v,b=arguments.length,C=new Array(b),k=0;k<b;k++)C[k]=arguments[k];return(v=m.call.apply(m,[this].concat(C))||this).state={width:v.props.width,height:v.props.height,propsWidth:v.props.width,propsHeight:v.props.height},v.onResize=function(_,I){var M=I.size;v.props.onResize?(_.persist==null||_.persist(),v.setState(M,function(){return v.props.onResize&&v.props.onResize(_,I)})):v.setState(M)},v}return x=m,(g=y).prototype=Object.create(x.prototype),g.prototype.constructor=g,p(g,x),y.getDerivedStateFromProps=function(v,b){return b.propsWidth!==v.width||b.propsHeight!==v.height?{width:v.width,height:v.height,propsWidth:v.width,propsHeight:v.height}:null},y.prototype.render=function(){var v=this.props,b=v.handle,C=v.handleSize;v.onResize;var k=v.onResizeStart,_=v.onResizeStop,I=v.draggableOpts,M=v.minConstraints,F=v.maxConstraints,j=v.lockAspectRatio,T=v.axis;v.width,v.height;var w=v.resizeHandles,S=v.style,D=v.transformScale,E=function(R,A){if(R==null)return{};var L,P,z={},U=Object.keys(R);for(P=0;P<U.length;P++)L=U[P],A.indexOf(L)>=0||(z[L]=R[L]);return z}(v,r);return e.createElement(n.default,{axis:T,draggableOpts:I,handle:b,handleSize:C,height:this.state.height,lockAspectRatio:j,maxConstraints:F,minConstraints:M,onResizeStart:k,onResize:this.onResize,onResizeStop:_,resizeHandles:w,transformScale:D,width:this.state.width},e.createElement("div",d({},E,{style:u(u({},S),{},{width:this.state.width+"px",height:this.state.height+"px"})})))},y}(e.Component);return Zi.default=h,h.propTypes=u(u({},o.resizableProps),{},{children:t.default.element}),Zi}var nE=(N4||(N4=1,ja.exports=function(){throw new Error("Don't instantiate Resizable directly! Use require('react-resizable').Resizable")},ja.exports.Resizable=$9().default,ja.exports.ResizableBox=tE().default),ja.exports);function rc(e,t){if(typeof e=="function")return e(t);e&&(e.current=t)}var o1=parseInt(s.version.split(".")[0],10)>=19?function(e){return t=>{const n=[];for(const o of e){const r=rc(o,t),i=typeof r=="function";n.push(i?r:()=>rc(o,null))}return()=>{for(const o of n)o()}}}:function(e){return t=>{for(const n of e)rc(n,t)}};const R2=s.memo(s.forwardRef((e,t)=>{const{disabled:n,names:o,workbook:r,restoreFocus:i,disabled:l=!1,commandPopupButtonProps:d,sx:c,notifier:u,...f}=e,[p,h]=s.useState(null),[m,g]=s.useState(()=>r.getSelectedRanges().getCoords()),[x,y]=s.useState(!1),{reference:v}=Mr({parentFloat:d?.parentFloat}),b=()=>p?.text??"",[C,k]=s.useState(b),_=me(()=>{if(v?.closeAll(),!C){const q=b();return k(b()),q}if(b()===C)return C;const z=C.trim().toLowerCase();if(z==="r"||z==="c")return C;try{const q=r.getRanges(C);if(q)return q.toString()}catch{}const U=o.getByName(C);if(U&&U.getRanges())return C;let O=null;try{const q=r.getRanges(C),X=q.getCoords().map(re=>({$colEnd:!0,$rowEnd:!0,$colStart:!0,$rowStart:!0,...re}));O=r.getRanges(X)}catch{}if(!O){const q=r.getSelectedRanges().getCoords().map(X=>({$colEnd:!0,$rowEnd:!0,$colStart:!0,$rowStart:!0,...X}));O=r.getRanges(q)}try{let q=o.getByName(C);q||(q=o.addReference(C,O)),h({text:q.getName()})}catch(q){k(b()),u.showMessage?.(q.message,{type:jr.Error})}return null},[C,o,v]),I=me(()=>{if(r.isClosed())return;const z=[];for(let q=0;q<m.length;q++){const X=m[q];z.push({$colEnd:!0,$rowEnd:!0,$colStart:!0,$rowStart:!0,...X})}let U=null;try{U=o.lookupByRanges(z)}catch{}let O=null;O=U?.length>0?U[0].getName():r.getSelectedSheet().getSelectedRange().toString(),h({text:O})},[r,m]),[M,F]=s.useState(()=>o?.search()??null);Ht(o,{onCollectionChange(z){F(o.search()),I()},onClose(z){F([])}}),s.useEffect(()=>{k(b())},[p,m]);const[j,T]=s.useState(r?.getSelectedSheet());Ht(r,{onSheetsChange:z=>{T(z?.getSelectedSheet())},onViewChange(z){T(z?.getSelectedSheet())}});const[w,S]=s.useState(null),D=me(N.CommonUtils.debounce(I,w?320:0),[]);Ht(j.getSelection(),{onChange:()=>{g(z=>{const U=r.getSelectedRanges().getCoords();return N.CoordUtils.isEqualRangesArrays(U,z)?z:U})},onAdjustingChange:z=>{S(z.getAdjusting())}}),s.useEffect(()=>{if(w){const z=r.getSelectedRange(),U=z.getRowCount(),O=z.getColumnCount();let q=`${U}R x ${O}C`;if(q.length>17&&(q=`${U}x${O}`),U>1||O>1)return void h({text:q,fontStyle:"italic",justifyContent:"center"})}h({text:r.getSelectedSheet().getSelectedRange().toString()}),D()},[m,r,w]);const E=s.useRef(null),R=s.useCallback(z=>{const{onMouseDown:U,onMouseUp:O,...q}=z;return a.jsx(V.IconButton,{...q,sx:{...q?.sx,display:"flex",flex:"1 1 100%"},disableRipple:!0,children:a.jsx(V.Input,{inputMode:"text",inputProps:{tabIndex:0,name:"input-named-range",maxLength:255,className:"input",autoFocus:!1,spellCheck:!1,autoComplete:"off",ref:E},sx:{"&::before":{borderBottom:"1px solid transparent"},"&:hover:not(.Mui-disabled):not(.Mui-focused):not(.Mui-error):before":{borderBottom:X=>`1px solid ${X.palette.text.icon??X.palette.action.active}`},"&:hover:not(.Mui-disabled):not(.Mui-error):before":{borderBottom:X=>`1px solid ${X.palette.primary.main}`},"::after":{borderBottom:X=>`1px solid ${X.palette.primary.main}`},paddingTop:"0px",paddingBottom:"0px",fontSize:11*N.IFont.getDeviceScale(),fontStyle:p?.fontStyle,paddingLeft:X=>X.spacing(.75),paddingRight:X=>X.spacing(.75),boxShadow:"none",flex:"1",color:X=>X.palette.text.secondary,input:{padding:"0",textAlign:"left","&:hover:not(.Mui-disabled):not(.Mui-error)":{color:X=>X.palette.text.primary},"&:focus:not(.Mui-disabled):not(.Mui-error)":{color:X=>X.palette.text.primary}}},value:C,onFocus:X=>{X.target?.select()},onKeyDown:X=>{if(X.which===Nt.Enter||X.which===Nt.Tab){let re=C;b()!==C&&(X.stopPropagation(),X.preventDefault(),re=_()),re?A(re):i?.()}else if(X.which===Nt.Escape)b()!==C?(k(b()),setTimeout(()=>{X.target?.select()},0),X.stopPropagation(),X.preventDefault()):i?.();else if(X.which===Nt.Space)return void X.stopPropagation()},onBlur:()=>{k(b())},onChange:X=>{k(X.target.value)}})})},[C,p]),A=me(async z=>{try{v?.closeAll();const U=o.lookupByRanges(z)?.[0];U&&await U?.select(),await r.getRanges(z)?.select()}catch(U){u.showMessage?.(U.message,{type:jr.Error})}},[o,u,r]),L=s.useCallback(z=>{setTimeout(()=>{y(!0)},0);const U={variant:zt.Menuitem,parentFloat:z.floatReference,commandHook:{...d?.commandHook,beforeExecute:(re,$)=>(v?.closeAll(),d?.commandHook?.beforeExecute?.(re,$))},scope:d?.scope,commands:d?.commands};let O=o.search({scope:r?.getSelectedSheet().getName()});O=O.sort((re,$)=>re.getType()===$.getType()?re.getName().localeCompare($.getName()):re.getType()==="range"?-1:1);const q=[];for(let re=0;re<O.length;re++){const $=O[re],W=$.getRanges();if(!W||$.isHidden())continue;const B=$.getType();B!==O[re-1]?.getType()&&(re>0&&q.push(a.jsx(Et,{orientation:"horizontal"},`type-divider-${q.length}`)),q.push(a.jsx(fi,{variant:"subtitle2",sx:{paddingLeft:"16px"},children:$.getType()==="reference"?"Ranges":"Tables"},`type-header-${q.length}`))),B==="reference"?q.push(s.createElement(Tr,{...U,key:"named-"+q.length,popupCommandKeys:["editNamedReference","deleteNamedReference"],popupScope:"namedItem",scope:"namedItem",commandState:$,commands:d?.commands,label:$.getName(),quickCommand:"selectNamed",disabled:!$.getRanges()||l,icon:Z=>{switch(Z.key()){case"editNamedReference":return ve(a.jsx(ay,{}));case"deleteNamedReference":return ve(a.jsx(sy,{}));default:return ve(a.jsx(iy,{}))}}})):B==="table"&&q.push(s.createElement(Tr,{...U,key:"namedItem-"+q.length,popupCommandKeys:["editTable",null,"convertTableToRange","deleteTable"],popupScope:"namedItem",scope:"namedItem",commands:d?.commands,commandState:$,label:$.getName(),quickCommand:"selectNamed",disabled:!W||l,icon:Z=>(Z.key(),ve(a.jsx(_l,{})))}))}const X=a.jsxs(V.Box,{sx:{display:"flex",flexDirection:"column",flex:"1 1 100%",overflow:"hidden"},...f,children:[a.jsx(Re,{...U,scope:"namedItem",command:d?.commands.getCommand("addNamedReference"),icon:ve(a.jsx(ly,{}))}),q&&q.length>0?a.jsxs(a.Fragment,{children:[a.jsx(Et,{orientation:"horizontal"}),a.jsx(V.Box,{sx:{overflow:"auto",flex:"1 1 100%"},children:q})]}):null]});return dn({...z,children:X})},[r,M,o,p]),P=so(t,()=>({focus(z){E.current?.focus(z)}}),[]);return a.jsx(V.Box,{className:"outer",sx:{minWidth:120,flex:"1 1 100%",display:"flex",alignItems:"center",justifyContent:"start",...c},ref:o1([P,t]),...f,children:a.jsx(gr,{className:"outer-button",sx:{display:"flex",flex:"1 1 100%","& .tooltip-wrapper":{display:"flex",flex:"1 1 100%",width:"100%",height:"27px"},...c},buttonProps:{sx:{backgroundColor:z=>z.palette.background.paper,backgroundImage:`linear-gradient(${st.alpha("#fff",pn(5))}, ${st.alpha("#fff",pn(5))})`}},tabIndex:-1,outlined:{color:z=>n?z.palette.action.disabled:st.alpha(z.palette.divider,.2)},parentFloat:v,createPopupPanel:L,onPopupOpen:()=>y(!0),onPopupClose:()=>y(!1),createTooltip:({children:z},U)=>a.jsx(go,{title:U||x?"":"Name Box",disabled:U,leaveDelay:0,sx:{opacity:U||x?0:1},children:z}),createQuickButton:R})})}));R2.displayName="NamedCollectionEditor";const oE=(e,t)=>a.jsx(R2,{ref:t,...e}),I2=s.memo(s.forwardRef((e,t)=>{const{sx:n,workbook:o,sheetElement:r,gridStyle:i,showNamedCollectionEditor:l=!0,NamedCollectionEditorProps:d,renderNamedCollectionEditor:c=oE,disabled:u,commands:f,...p}=e,[h,m]=s.useState(o?.getSelectedSheet());Ht(o,{onSheetsChange:W=>{m(W?.getSelectedSheet())},onViewChange(W){m(W?.getSelectedSheet())}});const[g,x]=s.useState(h.getSelection().getCoords().cell),y=h.getRange(g).getCell(),v=u||!y.isEditAllowed(),b=s.useRef(null),C=s.useMemo(()=>({fontSize:11}),[]);Ht(h.getSelection(),{onChange:()=>{x(h.getSelection().getCoords().cell)}}),Ht(h,{onProtectionChange(){x(h.getSelection().getCoords().cell)}});const k=b.current?.getLineHeight()??20,[_,I]=s.useState(k),[M,F]=s.useState(5),[j,T]=s.useState(1),w=me((W,{size:B})=>{W.preventDefault(),W.stopPropagation();const Z=Math.floor(B.height/k);I(Z*k+1),Z>1&&F(Z)},[k]),S=me((W,{size:B})=>{const Z=Math.floor(B.height/k);T(Z)},[k]),D=mr(),E=D.getMode();let R=null;E?.key==="edit"&&(R=E.args?.stateAndCoords);const A=s.useMemo(()=>{let W=R?.editState;return W||(W=Sp(()=>h.getRange(g).getCell())),a.jsx(V.Box,{sx:{display:"flex",flex:"1 1 100%",flexDirection:"row",gap:4},children:a.jsx(wp,{ref:b,activeCoords:g,sheet:h,onFocus:()=>{r?.startEdit({autoFocus:!1,editMode:!0,cell:g})},defaultTextStyle:C,useRichStyling:!1,disabled:v,onChangeEdit:B=>{if(B.dirty!==void 0){const Z={sheet:h,coords:g,editState:B};D.setMode(G=>({...G,args:{...G?.args,stateAndCoords:Z}}))}},editState:W,commands:f,onCancelEdit:()=>{r?.cancelEdit(),r?.focus()},onSubmitEdit:()=>{r?.submitEdit(),r?.focus()},linesVisible:j})})},[h,R,g,j,r]),L=s.useRef(null),P=s.useMemo(()=>l?c({names:o.getNames(),workbook:o,...d},L):null,[c,d,l,h,o,v]),z=s.useMemo(()=>a.jsxs(V.Paper,{elevation:0,sx:{display:"flex",alignItems:"center",userSelect:"none",flexGrow:0,backgroundImage:`linear-gradient(${st.alpha("#fff",pn(5))}, ${st.alpha("#fff",pn(5))})`,border:W=>`solid ${v?W.palette.action.disabled:st.alpha(W.palette.divider,.2)} 1px`},children:[a.jsx(Wo,{sx:{padding:"0px",margin:"0px 0px",border:"none !important","&.Mui-focusVisible":{border:"none"},"&:hover:not([disabled])":{border:"none"}},dense:!0,outlined:!1,color:"warning","aria-label":"cancel-formula-edit",icon:ve(a.jsx(oy,{})),tooltipProps:{label:"Cancel",simple:!0},disabled:v||R===null,onMouseDown:W=>{W.button===0&&W.preventDefault()},onClick:()=>{r.cancelEdit()}}),a.jsx(Wo,{sx:{padding:"0px",margin:"0px 0px",border:"none !important","&.Mui-focusVisible":{border:"none"},"&:hover:not([disabled])":{border:"none"}},dense:!0,outlined:!1,color:"primary","aria-label":"commit-formula-edit",icon:ve(a.jsx(ry,{})),tooltipProps:{label:"Enter",simple:!0},disabled:v||R===null,onMouseDown:W=>{W.button===0&&W.preventDefault()},onClick:()=>{r.submitEdit()}}),a.jsx(Wo,{sx:{padding:"0px",margin:"0px 0px",border:"none !important","&.Mui-focusVisible":{border:"none"},"&:hover:not([disabled])":{border:"none"}},dense:!0,outlined:!1,disabled:!0,"aria-label":"commit-formula-function",icon:ve(a.jsx(_y,{sx:{transform:"scale(0.85)"}})),tooltipProps:{label:"Insert Function",simple:!0},onMouseDown:W=>{W.button===0&&W.preventDefault()}})]}),[v,R]),U=xr(),[O,q]=s.useState(!1),X=s.useMemo(()=>a.jsxs(V.Box,{sx:{display:"flex",flexDirection:"row",flex:"1 1 100%",gap:W=>W.spacing(.5),alignItems:"start"},children:[z,a.jsxs(V.Paper,{elevation:0,sx:{display:"flex",flexDirection:"row",flex:"1 1 100%",position:"relative",fontFamily:W=>W.typography.fontFamily,fontSize:11*N.IFont.getDeviceScale(),"& .editor-placement":{top:"2px !important"},boxShadow:"none",borderRadius:W=>`${W.shape.borderRadius}px`,backgroundImage:`linear-gradient(${st.alpha("#fff",pn(5))}, ${st.alpha("#fff",pn(5))})`,border:W=>`solid ${v?W.palette.action.disabled:st.alpha(W.palette.divider,.2)} 1px`,"& textarea":{color:W=>v?`${W.palette.text.disabled} !important`:W.palette.text.primary},"& .react-resizable-handle":{width:"100%",height:"8px",backgroundColor:"transparent",boxSizing:"content-box",zIndex:1e3},"& .react-resizable-handle-s":{position:"absolute",bottom:"-10px",cursor:"s-resize"}},onFocus:()=>q(!0),onBlur:()=>q(!1),onMouseDown:W=>{W.target?.classList.contains("react-resizable-handle")&&W.preventDefault()},children:[a.jsx(V.Box,{className:"formula-editor",sx:{display:"flex",flexDirection:"row",flex:"1 1 100%",position:"relative",alignSelf:"baseline",paddingLeft:W=>W.spacing(1),paddingRight:W=>W.spacing(1)},children:a.jsx(nE.ResizableBox,{height:_,draggableOpts:{grid:[k,k]},minConstraints:[k,k],maxConstraints:[15*k,15*k],onResize:S,onResizeStop:w,resizeHandles:["s"],axis:"y",style:{display:"flex",flexDirection:"column",flex:"1 1 100%",overflow:"hidden"},children:A})}),a.jsx(Wo,{sx:{padding:"0px",margin:"0px 0px",border:"none !important","&.Mui-focusVisible":{border:"none"},"&:hover:not([disabled])":{border:"none"}},dense:!0,outlined:!1,"aria-label":"toggle-expand-formula-edit",icon:ve(j>1?a.jsx(an.ExpandLess,{}):a.jsx(an.ExpandMore,{})),tooltipProps:{label:(j>1?"Collapse":"Expand")+" Formula Bar",simple:!0},onMouseDown:W=>{W.button===0&&W.preventDefault()},onClick:()=>{const W=j>1?1:M;I(W*k+1),T(W)}}),a.jsx(V.Box,{sx:{position:"absolute",width:"100%",height:"2px",bottom:"0",willChange:"opacity",transition:"opacity 60ms ease-in",opacity:O?1:0,borderBottomWidth:"2px",borderBottomStyle:"solid",borderBottomColor:W=>W.palette.primary.main,borderRadius:W=>`${W.shape.borderRadius}px`}})]})]}),[z,A,O,j,k]),re=s.useMemo(()=>P||X?!P&&X?X:P&&!X?P:a.jsx(a.Fragment,{children:a.jsx(vc,{fixedPane:"before",minBefore:"165px",minAfter:"200px",paneBeforeProps:{style:{alignItems:"flex-start"}},paneAfterProps:{style:{overflow:"visible"}},resizerProps:{style:{backgroundImage:`url("data:image/svg+xml,%3Csvg width='6' height='13' viewBox='0 0 6 13' version='1.1' fill='${U.palette.text.icon??U.palette.action.active}' xmlns='http://www.w3.org/2000/svg' xmlns:svg='http://www.w3.org/2000/svg'%3E%3Cpath d='m 4.5961932,11.36243 c 0,0.88365 -0.71627,1.59991 -1.59991,1.59991 -0.88365,0 -1.60005,-0.71626 -1.60005,-1.59991 0,-0.88365 0.7164,-1.6000508 1.60005,-1.6000508 0.88364,0 1.59991,0.7164008 1.59991,1.6000508 m 0,-4.881294 c 0,0.88364 -0.71627,1.60004 -1.59991,1.60004 -0.88365,0 -1.60005,-0.7164 -1.60005,-1.60004 0,-0.88365 0.7164,-1.60005 1.60005,-1.60005 0.88364,0 1.59991,0.7164 1.59991,1.60005 m 0,-4.881226 c 0,0.88365 -0.71627,1.60005 -1.59991,1.60005 -0.88365,0 -1.60005,-0.7164 -1.60005,-1.60005 0,-0.88365 0.7164,-1.59991 1.60005,-1.59991 0.88364,0 1.59991,0.71626 1.59991,1.59991' /%3E%3C/svg%3E%0A")`,backgroundRepeat:"no-repeat",backgroundPosition:"center 6.5px",minWidth:"18px"}},elementBefore:P,elementAfter:X})}):null,[P,X]),$=so(t,()=>({isFormulaBarElement:()=>!0,getNamedCollectionEditorElement:()=>L.current}),[]);return a.jsx(V.Box,{sx:{display:"flex",flexDirection:"row",gap:W=>W.spacing(.5),...n},ref:$,...p,children:re})}));I2.displayName="FormulaBar";const D2=s.memo(s.forwardRef((e,t)=>{const{filter:n,commands:o,disabled:r,sx:i,floatReference:l,...d}=e,c=s.useMemo(()=>({}),[]),u=s.useMemo(()=>({commandHook:{beforeExecute:(h,m)=>l.closeAll(),onExecute(){},onError(){console.log("onError")}},disabled:r,parentFloat:l}),[r,l]),f=s.useMemo(()=>({...c,...u,variant:zt.Menuitem}),[c,u]),p=a.jsxs(a.Fragment,{children:[a.jsx(Re,{...f,command:o.getCommand("sortAscending"),icon:ve(a.jsx(Bc,{}))}),a.jsx(Re,{...f,command:o.getCommand("sortDescending"),icon:ve(a.jsx(_8,{}))}),a.jsx(Et,{orientation:"horizontal"}),a.jsx(Re,{...f,command:o.getCommand("autoFilterClear"),icon:ve(a.jsx(zd,{}))}),[]]});return a.jsx(V.Box,{ref:t,sx:{paddingTop:"4px",paddingBottom:"4px",display:"flex",flexDirection:"column",...i},...d,children:p})}));D2.displayName="FilterColumnMenu";const W9=s.memo(s.forwardRef((e,t)=>{const{children:n,className:o,disabled:r,style:i,filter:l,...d}=e,c=so(t,()=>({isFilters:()=>!0}),[]);return a.jsx("div",{ref:c,className:Fn("filters",o),style:{position:"relative",display:"flex",flexDirection:"column",alignItems:"center",gap:"8px",...i},...d,children:a.jsxs("div",{style:{flex:"1 1 100%",display:"flex",minHeight:"100px",minWidth:"220px",alignItems:"center",border:"grey solid 1px",padding:"4px 4px",overflow:"hidden",flexDirection:"column",justifyContent:"space-evenly",marginTop:"4px",marginBottom:"4px",marginLeft:"16px",marginRight:"16px"},children:[a.jsx("div",{children:l.getName()}),a.jsx("div",{children:"Filter Widget"})]})})}));W9.displayName="Filters";const L2=s.memo(s.forwardRef((e,t)=>{const{children:n,sheet:o,style:r,className:i,value:l,index:d,editing:c,editable:u,disabled:f,selectedIndex:p,dragging:h,borderColor:m,borderWidth:g,activeColor:x,background:y="white",tabRadius:v=4,gridTheme:b,...C}=e,[k,_]=s.useState(()=>!!o&&o.getProtection().isLocked()),[I,M]=s.useState(()=>o?o.getTabColor():null);Ht(o,{onProtectionChange:()=>{_(o.getProtection().isLocked())},onTabColorChange:()=>{M(o.getTabColor())},onStyleChange:()=>{M(o.getTabColor())}});const F=xr(),j=p===d;let T=null,w=null;if(I||h){let E=y;I?(w=I.toBlackOrWhite().toCSS(),E=I?.toCSS()):j||(E=F.palette.background.paper),T=a.jsx(V.Box,{sx:{position:"absolute",boxSizing:"border-box",top:"3px",left:"4px",right:"4.5px",bottom:"1.5px",opacity:j?"50%":"100%",borderRadius:"4px",border:R=>j?`${y} solid 1px`:`${R.palette.divider} solid 1px`,background:j&&I?`linear-gradient(0deg, ${E} 0%, transparent)`:E}})}let S=null;typeof m=="string"?S=m:m?.toCSS&&(S=m.toCSS());const D=j?a.jsx(V.Box,{sx:{width:"100%",borderRadius:"4px",minWidth:"4px",height:"2px",backgroundColor:E=>E.palette.primary.main}}):null;return a.jsx(Fh,{theme:j?b??F:F,children:a.jsx(V.Box,{ref:t,className:Fn(i),sx:{...r,display:"flex",flexDirection:"column",minHeight:"0px",fontWeight:j?"700":"400",fontSize:"0.85rem",letterSpacing:"0",lineHeight:"1",textTransform:"none",minWidth:"unset",cursor:h?"grabbing":void 0},...C,children:a.jsx(rm,{style:{flex:"1 1 100%",display:"flex",flexDirection:"row"},radius:v,strokeColor:j?S:"transparent",children:a.jsx(V.Button,{sx:{textTransform:"none",borderRadius:"0px",minHeight:"0px",paddingLeft:"11px",paddingRight:"12px",paddingTop:"3px",flex:"1 1 100%",paddingBottom:"3px",fontWeight:j?"700":"400",fontSize:"0.85rem",letterSpacing:"0",transition:"none",cursor:h?"grabbing":void 0,color:j?"primary":w||"text.secondary",backgroundColor:j?y:"transparent","&:hover:not([disabled])":{backgroundColor:j?y:"transparent"},"& input":{color:E=>`${E.palette.text.primary}`,textAlign:"center",fontWeight:"500"},marginTop:"0px",minWidth:"unset"},disabled:f,disableRipple:c,component:"div",children:a.jsxs(a.Fragment,{children:[T,a.jsxs(V.Box,{sx:{zIndex:"1",display:"flex",flexDirection:"row",alignItems:"center"},children:[a.jsxs(V.Box,{sx:{display:"flex",flexDirection:"column",alignItems:"center",rowGap:"1px",lineHeight:"1",marginTop:j?void 0:"1px"},children:[n,D]}),k?a.jsx(an.Lock,{sx:{scale:"0.80",marginLeft:"2px",width:"22px",height:"22px"},color:"secondary"}):a.jsx(V.Box,{sx:{minHeight:"22px"}})]})]})},l+":"+d)})})})}));L2.displayName="SheetTab";const O2=s.memo(s.forwardRef((e,t)=>{const{workbook:n,index:o,commands:r,scope:i="sheet",disabled:l,floatReference:d,sx:c,className:u,tabStripRef:f,...p}=e,[h,m]=s.useState(n?.getProtection());Ht(n,{onProtectionChange:b=>{m(b?.getProtection())}});const g=s.useMemo(()=>({}),[]),x=s.useMemo(()=>({commandHook:{beforeExecute:(b,C)=>d.closeAll(),onExecute(){},onError(){console.log("onError")}},scope:i,commandState:o,disabled:l||o===void 0,parentFloat:d}),[l,d]),y=s.useMemo(()=>({...g,...x}),[g,x]),v=a.jsxs(a.Fragment,{children:[a.jsx(Re,{command:r.getCommand("addSheet"),commandState:o,...y,variant:zt.Menuitem}),a.jsx(Re,{command:r.getCommand("deleteSheet"),...y,variant:zt.Menuitem}),a.jsxs(Po,{onMouseDown:b=>{b.button===0&&b.preventDefault()},onMouseUp:()=>{Promise.resolve(d.closeAll()).then(()=>{f?.startEdit(o)})},disabled:l||!h.isStructureAllowed(),parentFloat:d,children:["Rename",i!=="sheet"?" Sheet":""]}),a.jsx(Re,{command:r.getCommand("duplicateSheet"),...y,variant:zt.Menuitem}),a.jsx(Re,{command:r?.getCommand("protectionSheetToggle"),...y,variant:zt.Menuitem,icon:a.jsx(an.Lock,{})}),a.jsx(bi,{variant:zt.Menuitem,command:r.getCommand("formatSheetTabColor"),icon:a.jsx(Fd,{}),panelProps:{disableAlpha:!0,autoColorLabel:"No Tab Color",autoColorPosition:li.End},parentFloat:d}),a.jsx(Et,{orientation:"horizontal"}),a.jsx(Re,{command:r.getCommand("hideSheet"),...y,variant:zt.Menuitem,icon:ve(a.jsx(j8,{}))})]});return a.jsx(V.Box,{ref:t,className:Fn("menu",u),sx:{...c},...p,children:v})}));O2.displayName="SheetTabMenu";const P2=s.memo(s.forwardRef((e,t)=>{const{workbook:n,gridStyle:o,floatReference:r,closeFloatAll:i,className:l,...d}=e,[c,u]=s.useState(n?.getSheets().search()),[f,p]=s.useState(n?.getProtection());Ht(n,{onSheetsChange:m=>{u(m.getSheets().search())},onProtectionChange:m=>{p(m?.getProtection())}});const h=s.useMemo(()=>{const m=[],g=n.getSheets().search({visibility:N.ISheet.Visibility.Hidden}),x=n.getSelectedSheet();for(let y=0;y<g.length;y++){const v=g[y],b=v.getVisibility();if(b===N.ISheet.Visibility.VeryHidden)continue;const C=x===v,k=v.getProtection().isLocked(),_=v.getTabColor(),I=o?.body.fill??"transparent";let M=null,F=null,j=I;_&&(j=_.toCSS(),C||(F=_.toBlackOrWhite().toCSS()),M=a.jsx(V.Box,{sx:{position:"absolute",display:"flex",flexDirection:"column",top:"4px",left:"40px",right:"8px",bottom:"4px",background:C?j:"transparent",borderRadius:"4px",border:`solid 1px ${o.header.edgeStrokeFill}`},children:a.jsx(V.Box,{sx:{flex:"1 1 100%",boxSizing:"content-box",opacity:C||b===N.ISheet.Visibility.Hidden?"50%":"100%",border:w=>C?`${I} solid 1.5px`:`${w.palette.divider} solid 1px`,background:C&&_?`linear-gradient(0deg, ${j} 0%, ${I})`:j,borderRadius:"4px"}})}));let T=null;k&&(T=a.jsx(an.Lock,{color:"secondary"})),b!==N.ISheet.Visibility.Visible&&(T=ve(a.jsx(j8,{style:{opacity:f.isStructureAllowed()?1:.7},color:"secondary"}))),T&&(T=a.jsx(V.Box,{sx:{display:"flex",flex:"1 1 100%",alignItems:"center",ml:"16px","& *":{lineHeight:"1em",fontSize:"1.3em"}},children:T})),m.push(a.jsx(Po,{disabled:!f.isStructureAllowed()&&b===N.ISheet.Visibility.Hidden,sx:{color:w=>{let S=C?w.palette.primary.main:w.palette.text.secondary;return F&&(S=F),b===N.ISheet.Visibility.Hidden&&(S=st.alpha(S,w.palette.action.disabledOpacity)),S},borderLeft:w=>`${C?w.palette.primary.main:"transparent"} solid 2px`,paddingLeft:"4px",fontWeight:C?"700":"400","&:hover":{fontWeight:"700"}},icon:C?a.jsx(Ul,{}):void 0,onMouseDown:w=>w.preventDefault(),onMouseUp:()=>{Promise.resolve(r.closeAll()).then(()=>{try{v.select()}catch(w){console.error(w)}})},children:a.jsxs(a.Fragment,{children:[M,a.jsxs(V.Box,{sx:{paddingRight:"0px",paddingLeft:"4px",display:"flex",flexDirection:"row",flex:"1 1 100%",overflow:"hidden",alignItems:"center",zIndex:2},children:[a.jsxs(V.Box,{className:"sheet-name",sx:{display:"flex",flexDirection:"column",paddingLeft:"8px",paddingRight:"8px",alignItems:"center"},children:[v.getName(),a.jsx(V.Box,{sx:{height:"0px",opacity:"0",fontWeight:"700"},children:v.getName()})]}),T]})]})},""+y))}return m},[n,f,c,r,o]);return a.jsx(V.Box,{ref:t,className:Fn("menu",l),...d,children:h})}));P2.displayName="SheetsAllMenu";var rE=function(){},U9=typeof window<"u",iE=U9?s.useLayoutEffect:s.useEffect,V4={x:0,y:0,width:0,height:0,top:0,left:0,bottom:0,right:0};const Bl=U9&&window.ResizeObserver!==void 0?function(){var e=s.useState(null),t=e[0],n=e[1],o=s.useState(V4),r=o[0],i=o[1],l=s.useMemo(function(){return new window.ResizeObserver(function(d){if(d[0]){var c=d[0].contentRect,u=c.x,f=c.y,p=c.width,h=c.height,m=c.top,g=c.left,x=c.bottom,y=c.right;i({x:u,y:f,width:p,height:h,top:m,left:g,bottom:x,right:y})}})},[]);return iE(function(){if(t)return l.observe(t),function(){l.disconnect()}},[t]),[n,r]}:function(){return[rE,V4]};function Ds(){return Ds=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)({}).hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Ds.apply(null,arguments)}function A2(e,t){if(e==null)return{};var n={};for(var o in e)if({}.hasOwnProperty.call(e,o)){if(t.indexOf(o)!==-1)continue;n[o]=e[o]}return n}function Ls(e,t){return Ls=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,o){return n.__proto__=o,n},Ls(e,t)}function q9(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Ls(e,t)}function H4(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}const $4=!1,Z9=s.createContext(null);var G9=function(e){return e.scrollTop},al="unmounted",g0="exited",x0="entering",$0="entered",bd="exiting",Lr=function(e){function t(o,r){var i;i=e.call(this,o,r)||this;var l,d=r&&!r.isMounting?o.enter:o.appear;return i.appearStatus=null,o.in?d?(l=g0,i.appearStatus=x0):l=$0:l=o.unmountOnExit||o.mountOnEnter?al:g0,i.state={status:l},i.nextCallback=null,i}q9(t,e),t.getDerivedStateFromProps=function(o,r){return o.in&&r.status===al?{status:g0}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(o){var r=null;if(o!==this.props){var i=this.state.status;this.props.in?i!==x0&&i!==$0&&(r=x0):i!==x0&&i!==$0||(r=bd)}this.updateStatus(!1,r)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var o,r,i,l=this.props.timeout;return o=r=i=l,l!=null&&typeof l!="number"&&(o=l.exit,r=l.enter,i=l.appear!==void 0?l.appear:r),{exit:o,enter:r,appear:i}},n.updateStatus=function(o,r){if(o===void 0&&(o=!1),r!==null)if(this.cancelNextCallback(),r===x0){if(this.props.unmountOnExit||this.props.mountOnEnter){var i=this.props.nodeRef?this.props.nodeRef.current:eo.findDOMNode(this);i&&G9(i)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===g0&&this.setState({status:al})},n.performEnter=function(o){var r=this,i=this.props.enter,l=this.context?this.context.isMounting:o,d=this.props.nodeRef?[l]:[eo.findDOMNode(this),l],c=d[0],u=d[1],f=this.getTimeouts(),p=l?f.appear:f.enter;!o&&!i||$4?this.safeSetState({status:$0},function(){r.props.onEntered(c)}):(this.props.onEnter(c,u),this.safeSetState({status:x0},function(){r.props.onEntering(c,u),r.onTransitionEnd(p,function(){r.safeSetState({status:$0},function(){r.props.onEntered(c,u)})})}))},n.performExit=function(){var o=this,r=this.props.exit,i=this.getTimeouts(),l=this.props.nodeRef?void 0:eo.findDOMNode(this);r&&!$4?(this.props.onExit(l),this.safeSetState({status:bd},function(){o.props.onExiting(l),o.onTransitionEnd(i.exit,function(){o.safeSetState({status:g0},function(){o.props.onExited(l)})})})):this.safeSetState({status:g0},function(){o.props.onExited(l)})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(o,r){r=this.setNextCallback(r),this.setState(o,r)},n.setNextCallback=function(o){var r=this,i=!0;return this.nextCallback=function(l){i&&(i=!1,r.nextCallback=null,o(l))},this.nextCallback.cancel=function(){i=!1},this.nextCallback},n.onTransitionEnd=function(o,r){this.setNextCallback(r);var i=this.props.nodeRef?this.props.nodeRef.current:eo.findDOMNode(this),l=o==null&&!this.props.addEndListener;if(i&&!l){if(this.props.addEndListener){var d=this.props.nodeRef?[this.nextCallback]:[i,this.nextCallback],c=d[0],u=d[1];this.props.addEndListener(c,u)}o!=null&&setTimeout(this.nextCallback,o)}else setTimeout(this.nextCallback,0)},n.render=function(){var o=this.state.status;if(o===al)return null;var r=this.props,i=r.children;r.in,r.mountOnEnter,r.unmountOnExit,r.appear,r.enter,r.exit,r.timeout,r.addEndListener,r.onEnter,r.onEntering,r.onEntered,r.onExit,r.onExiting,r.onExited,r.nodeRef;var l=A2(r,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return s.createElement(Z9.Provider,{value:null},typeof i=="function"?i(o,l):s.cloneElement(s.Children.only(i),l))},t}(s.Component);function V0(){}Lr.contextType=Z9,Lr.propTypes={},Lr.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:V0,onEntering:V0,onEntered:V0,onExit:V0,onExiting:V0,onExited:V0},Lr.UNMOUNTED=al,Lr.EXITED=g0,Lr.ENTERING=x0,Lr.ENTERED=$0,Lr.EXITING=bd;var ic=function(e,t){return e&&t&&t.split(" ").forEach(function(n){return r=n,void((o=e).classList?o.classList.remove(r):typeof o.className=="string"?o.className=H4(o.className,r):o.setAttribute("class",H4(o.className&&o.className.baseVal||"",r)));var o,r})},vd=function(e){function t(){for(var o,r=arguments.length,i=new Array(r),l=0;l<r;l++)i[l]=arguments[l];return(o=e.call.apply(e,[this].concat(i))||this).appliedClasses={appear:{},enter:{},exit:{}},o.onEnter=function(d,c){var u=o.resolveArguments(d,c),f=u[0],p=u[1];o.removeClasses(f,"exit"),o.addClass(f,p?"appear":"enter","base"),o.props.onEnter&&o.props.onEnter(d,c)},o.onEntering=function(d,c){var u=o.resolveArguments(d,c),f=u[0],p=u[1]?"appear":"enter";o.addClass(f,p,"active"),o.props.onEntering&&o.props.onEntering(d,c)},o.onEntered=function(d,c){var u=o.resolveArguments(d,c),f=u[0],p=u[1]?"appear":"enter";o.removeClasses(f,p),o.addClass(f,p,"done"),o.props.onEntered&&o.props.onEntered(d,c)},o.onExit=function(d){var c=o.resolveArguments(d)[0];o.removeClasses(c,"appear"),o.removeClasses(c,"enter"),o.addClass(c,"exit","base"),o.props.onExit&&o.props.onExit(d)},o.onExiting=function(d){var c=o.resolveArguments(d)[0];o.addClass(c,"exit","active"),o.props.onExiting&&o.props.onExiting(d)},o.onExited=function(d){var c=o.resolveArguments(d)[0];o.removeClasses(c,"exit"),o.addClass(c,"exit","done"),o.props.onExited&&o.props.onExited(d)},o.resolveArguments=function(d,c){return o.props.nodeRef?[o.props.nodeRef.current,d]:[d,c]},o.getClassNames=function(d){var c=o.props.classNames,u=typeof c=="string",f=u?(u&&c?c+"-":"")+d:c[d];return{baseClassName:f,activeClassName:u?f+"-active":c[d+"Active"],doneClassName:u?f+"-done":c[d+"Done"]}},o}q9(t,e);var n=t.prototype;return n.addClass=function(o,r,i){var l=this.getClassNames(r)[i+"ClassName"],d=this.getClassNames("enter").doneClassName;r==="appear"&&i==="done"&&d&&(l+=" "+d),i==="active"&&o&&G9(o),l&&(this.appliedClasses[r][i]=l,function(c,u){c&&u&&u.split(" ").forEach(function(f){return h=f,void((p=c).classList?p.classList.add(h):function(m,g){return m.classList?!!g&&m.classList.contains(g):(" "+(m.className.baseVal||m.className)+" ").indexOf(" "+g+" ")!==-1}(p,h)||(typeof p.className=="string"?p.className=p.className+" "+h:p.setAttribute("class",(p.className&&p.className.baseVal||"")+" "+h)));var p,h})}(o,l))},n.removeClasses=function(o,r){var i=this.appliedClasses[r],l=i.base,d=i.active,c=i.done;this.appliedClasses[r]={},l&&ic(o,l),d&&ic(o,d),c&&ic(o,c)},n.render=function(){var o=this.props;o.classNames;var r=A2(o,["classNames"]);return s.createElement(Lr,Ds({},r,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t}(s.Component);vd.defaultProps={classNames:""},vd.propTypes={};const lc=.12,wd=(e,t)=>{const n={},o=c=>{const u=c.palette?.background.default??"rgba(255,255,255,1)";return{text:{fontFamily:c.typography?.fontFamily??"Calibri",fontSize:c.typography?.fontSize??8.25,fontWeight:c.typography?.fontWeightRegular??"400",fill:c.palette.mode==="dark"?c.palette?.text?.secondary:c.palette?.text?.primary},fill:u,strokeFill:Jo(u,lc,c.palette?.mode),darkMode:c.palette.mode==="dark"}},r=o(t);n.body=o(e),n.header={...n.body,strokeFill:Jo(n.body.fill,lc,e.palette?.mode),fill:t&&e.palette.mode==="dark"&&t.palette.mode!==e.palette.mode?n.body.fill:Jo(n.body.fill,.055,e.palette?.mode),edgeStrokeFill:e.palette.mode==="dark"?n.body.strokeFill:Jo(n.body.fill,.328,e.palette?.mode)},n.headerHover=c=>({...n.header,strokeFill:Jo(c?.fill??n.body.fill,.22,e.palette?.mode),fill:Jo(c?.fill??n.header.fill,.065,e.palette?.mode),text:{...c?.text,fontWeight:e.typography?.fontWeightBold}});const i=Jo(e.palette.mode!=="dark"?e.palette.primary.light:e.palette.primary.main,.055,e.palette?.mode);n.headerSelect={...n.header,strokeFill:e.palette.primary.main,fill:st.alpha(i,.2),text:{...n.header.text,fill:e.palette.primary.main},dividerStrokeFill:st.alpha(i,.7)},n.headerSelectAll={...n.headerSelect,fill:st.alpha(i,.9),text:{...n.headerSelect.text,fill:e.palette.primary.contrastText},edgeStrokeFill:n.headerSelect.strokeFill},n.buttonSurface={...r,strokeFill:Jo(r.fill,lc,t.palette?.mode),fill:t&&t.palette.mode==="dark"&&t.palette.mode!==e.palette.mode?r.fill:Jo(r.fill,.055,t.palette?.mode),edgeStrokeFill:t.palette.mode==="dark"?r.strokeFill:Jo(r.fill,.328,t.palette?.mode)},n.headerSelection={fill:e.palette?.primary?.main?st.alpha(e.palette?.primary?.main,.1):void 0,strokeFill:e.palette?.primary?.main},n.headerSelectionInactive={...n.headerSelection,fill:e.palette?.divider?st.alpha(e.palette?.divider,.05):void 0,strokeFill:"transparent"};const l=t??e,d=l.palette.mode==="dark";return n.selection={fill:l.palette?.primary?.main?st.alpha(l.palette?.primary?.main,.1):void 0,strokeFill:l.palette?.primary?.main},n.selectionInactive={...n.selection,fill:l.palette?.divider?st.alpha(l.palette?.divider,.05):void 0,strokeFill:"transparent"},n.selectionRemove={...n.selection,fill:st.alpha(l.palette.warning.light,.05),strokeFill:l.palette.warning.dark},t&&(n.body=o(t)),n.colorShadow=st.alpha(l.palette.action.active,.5),n.colorGrey=l.palette.action.active,n.filterDarkInvert=d?"hue-rotate(180deg) invert(1) brightness(95%)":"none",n};function W4(){if(typeof document>"u")return null;const e=[...Array.from(document.body.classList),...document.documentElement?Array.from(document.documentElement.classList):[]];return e.includes("dark")?"dark":e.includes("light")?"light":null}function U4(){return typeof window>"u"?"light":window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}const Nl=s.memo(s.forwardRef((e,t)=>{const{children:n,sx:o,parentFloat:r,...i}=e,l=so(t,()=>({}),[]),[d,c]=Bl(),u=s.useRef(null),f=s.useRef(null),[p,h]=s.useReducer(_=>_+1,0),[m,g]=s.useState(null),[x,y]=s.useState(null),[v,b]=s.useState(null),{reference:C}=Mr({parentFloat:r,label:"overflow"});s.useLayoutEffect(()=>{f.current={refs:[]};const _=[],I=s.Children.toArray(n);let M=0;I.forEach((F,j)=>{_.push(a.jsx(V.Box,{sx:{display:"flex"},ref:T=>{M++,M===I.length&&h();const w={current:null};w.current=T,f.current.refs[j]=w},children:F},j))}),g(_)},[n,c]),s.useLayoutEffect(()=>{if(!m)return;const _=f.current.refs;if(!l.current||!_||_.length===0)return y(null),void b(null);const I=l.current?.getBoundingClientRect(),M=[],F=[];let j=0,T=!1;for(let S=0;!T&&S<_.length;S++){const D=_[S];if(!D)continue;if(!D.current){T=!0;continue}const E=D.current.getBoundingClientRect();j+=E?.width,j>I.width&&(T=!0)}if(!T)return y(null),void b([]);const w=u.current?.getBoundingClientRect();j=0;for(let S=0;S<_.length;S++){const D=_[S];let E=!1;if(D.current){const R=D.current.getBoundingClientRect();j+=R?.width,j<I.width-w.width&&(E=!0)}E?M.push(m[S]):F.push(m[S])}y(M.length>0?M:null),b(F.length>0?F:null)},[n,m,c,C,p]);const k=me(_=>{const I=[];for(let F=0;F<v.length;F++){let j=s.Children.toArray(v[F]);const T=j[0];j=s.Children.toArray(T.props.children?.props.children??T.props.children);const w=j[0],S={...w.props};S.parentFloat&&(S.parentFloat=_.floatReference);const D=s.cloneElement(w,S);I.push(D)}const M=a.jsx(V.Box,{className:"overflow-palette-popup-panel",sx:{display:"flex",flexDirection:"row",flexWrap:"wrap",paddingTop:F=>F.spacing(.5),paddingBottom:F=>F.spacing(.5),paddingLeft:F=>F.spacing(1),paddingRight:F=>F.spacing(1),overflow:"hidden"},children:I});return dn({..._,children:M})},[v]);return a.jsxs(V.Box,{className:"overflow-palette",sx:{display:"flex",flexDirection:"row",flex:"1 1 100%",width:"100%",maxWidth:"100%",...o},ref:o1([l,d,t]),...i,children:[a.jsx(V.Box,{sx:{flexDirection:"row",display:"flex",maxWidth:"100%",flex:"1 1 100%"},children:x??m}),a.jsx(V.Box,{sx:{display:v!==null&&v.length===0?"none":"flex",flex:"1 1 0"},children:a.jsx(gr,{createPopupPanel:k,ref:u,parentFloat:C,createTooltip:({children:_},I)=>a.jsx(go,{label:"More",description:"More toolbar options…",disabled:I,children:_}),icon:a.jsx(p8,{children:a.jsx(an.MoreHoriz,{})})})})]})})),K9="https://unpkg.com/@sheetxl/scripting-templates/dist",lE=[{key:"SheetXL",description:"SheetXL",mimeType:".sxl",exts:["sxl"],isDefault:!0,handler:async(e,t)=>(await Promise.resolve().then(()=>require("./DbczL66CNJYzHHvr.cjs"))).fromBufferJSON(e,t)},{key:"CSV",description:"Comma Delimited",mimeType:"text/csv",exts:["csv"],handler:async(e,t)=>(await Promise.resolve().then(()=>require("./CBIj9rqxh2ze9ckF.cjs"))).fromBufferCSV(e,t)},{key:"Excel",description:"Excel Workbook",mimeType:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",exts:["xlsx","xls","xlsm"],handler:async(e,t)=>(await Promise.resolve().then(()=>require("./CtKfykOLBwpCtsPd.cjs")).then(n=>n.i)).fromBufferXLSX(e,t)}],aE=[{key:"SheetXL",mimeType:"application/vnd.sheetxl.sheet",description:"SheetXL",ext:"sxl",isDefault:!0,handler:async(e,t)=>(await Promise.resolve().then(()=>require("./DbczL66CNJYzHHvr.cjs"))).toBufferJSON(e,t)},{key:"CSV",mimeType:"text/csv",description:"Comma Delimited",ext:"csv",handler:async(e,t)=>(await Promise.resolve().then(()=>require("./CBIj9rqxh2ze9ckF.cjs"))).toBufferCSV(e,t)},{key:"Excel",mimeType:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",description:"Excel Workbook",ext:"xlsx",tags:["SheetJS Pro"],handler:async(e,t)=>(await Promise.resolve().then(()=>require("./CtKfykOLBwpCtsPd.cjs")).then(n=>n.i)).toBufferXLSX(e,t)}];class X9{constructor(t=lE,n=aE){this._readFormatTypes=[],this._writeFormatType=[],this._readFormatTypes=Object.freeze([...t]),this._writeFormatType=Object.freeze([...n])}_detectImportSourceType(t){return t&&typeof t=="object"&&"base64"in t?"base64":t&&typeof t=="object"&&"input"in t?"fetch":typeof t=="string"?t.startsWith("data:")?"base64":(t.startsWith("http://")||t.startsWith("https://")||t.startsWith("/")||t.startsWith("./")||t.startsWith("../"),"fetch"):typeof File<"u"&&t instanceof File?"file":t instanceof ArrayBuffer||ArrayBuffer.isView(t)?"buffer":typeof ReadableStream<"u"&&t instanceof ReadableStream?"stream":null}getReadFormats(){return this._readFormatTypes}getWriteFormats(){return this._writeFormatType}getReadFormatTypeForKey(t){return this._readFormatTypes.find(n=>n.key.includes(t))??null}getReadFormatTypeForExt(t){return t=t.toLowerCase(),this._readFormatTypes.find(n=>n.exts.includes(t))??null}getReadFormatTypeForMimeType(t){return this._readFormatTypes.find(n=>n.mimeType===t)??null}getWriteFormatTypeForExt(t){return t=t.toLowerCase(),this._writeFormatType.find(n=>n.ext===t)??null}getWriteFormatType(t){t=t.toLowerCase();let n=this._writeFormatType.find(o=>o.ext===t)??null;return n||(n=this._writeFormatType.find(o=>o.key.toLowerCase()===t)??null,n||(this._writeFormatType.find(o=>o.mimeType.toLowerCase()===t)??null))}getAllReadFormatTypeAsString(){const t=[];for(let n=0;n<this._readFormatTypes.length;n++)t.push(this._readFormatTypes[n].mimeType);return t}async toArrayBuffer(t,n,o){const r=this.getWriteFormatType(n);if(!r)throw new Error(`Invalid export type for '${n}'.`);try{const i=r.handler;if(!i)throw new Error(`Unable to resolve handler for type: ${r.description??n}.`);return i(t,o)}catch(i){throw new Error(`Unable to load handler for '${n}.'`,{cause:i})}}async _fromArrayBuffer(t,n,o=null){let r=this.getReadFormatTypeForKey(n)??this.getReadFormatTypeForExt(n)??this.getReadFormatTypeForMimeType(n);if(!t||!r){if(!t)throw new Error("ArrayBuffer must be specified.");if(!n)throw new Error("formatKey must be specified.")}const i=r.handler;if(!i)throw new Error(`Unable to resolve handler for type: ${r?.description??n}.`);const l={...o,...o?.typedConstructorOptions?.[n]};let d;delete l.typedConstructorOptions;try{d=await i(t,l)}catch(c){throw new Error("Unable to import",{cause:c})}return d}async read(t){if(!t)throw new Error("'options' must be provided for load.");let n=t.source;if(!n)throw new Error("'options.source' must be provided for load.");const o=t.name,r=t.formatType;typeof n=="function"&&(n=n()),n&&typeof n=="object"&&typeof n.then=="function"&&(n=await Promise.resolve(n));const i=this._detectImportSourceType(n);if(!i)throw new Error("Unable to detect source type from provided input.");switch(i){case"file":{const l=n;return await this._fromFile(l,t)}case"base64":{let l;if(n&&typeof n=="object"&&"base64"in n)l=n.base64;else if(typeof n=="string"&&n.startsWith("data:")){const[,u]=n.split(",");l=u}else l=n;const d=Tf.base64ToArrayBuffer(l),c=this.getReadFormatTypeForExt(r)||this._readFormatTypes[0];if(!c)throw new Error("No import type available for base64 input.");return{workbook:await this._fromArrayBuffer(d,c.key,t),title:o||"imported-file",formatType:c}}case"fetch":{let l,d,c=null;if(typeof n=="string")c=n;else{if(!n||typeof n!="object"||!("input"in n))throw new Error("Invalid fetch source provided.");{const x=n;c=x.input,l=x.init,d=x.timeout}}const u=d||3e4,f=new AbortController,p=setTimeout(()=>f.abort(),u),h=typeof c=="string"?c:c.toString(),m=r||N.TextUtils.getFileNameExtension(h),g=this.getReadFormatTypeForExt(m)||this._readFormatTypes[0];try{const x=await fetch(c,{...l,signal:f.signal});if(clearTimeout(p),!x.ok)throw new Error(`Failed to fetch: ${x.status} ${x.statusText}`);const y=await x.arrayBuffer();if(!g)throw new Error(`Unable to determine import type for fetched content: ${h}`);return{workbook:await this._fromArrayBuffer(y,g.key,t),title:o||N.TextUtils.getBaseName(h,!0)||"fetched-file",formatType:g}}catch(x){throw clearTimeout(p),x.name==="AbortError"?new Error(`Fetch timeout after ${u}ms: ${h}`):x}}case"buffer":{const l=n,d=this.getReadFormatTypeForExt(r)||this._readFormatTypes[0];if(!d)throw new Error("No import type available for buffer input.");return{workbook:await this._fromArrayBuffer(l,d.key,t),title:o||"buffer-file",formatType:d}}case"stream":{const l=n.getReader(),d=[];let c=0;try{for(;;){const{done:m,value:g}=await l.read();if(m)break;d.push(g),c+=g.length}}finally{l.releaseLock()}const u=new ArrayBuffer(c),f=new Uint8Array(u);let p=0;for(const m of d)f.set(m,p),p+=m.length;const h=this.getReadFormatTypeForExt(r)||this._readFormatTypes[0];if(!h)throw new Error("No import type available for stream input.");return{workbook:await this._fromArrayBuffer(u,h.key,t),title:o||"stream-file",formatType:h}}default:throw new Error(`Unsupported source type: ${i}`)}}async _fromFile(t,n=null){let o=null;try{let r="";t?.name&&(r=`${N.TextUtils.getBaseName(t.name)}`);const i=this.getReadFormatTypeForExt(N.TextUtils.getFileNameExtension(t?.name));if(!i)throw new Error(`Unknown file type: ${N.TextUtils.getFileNameExtension(t?.name)??t?.name??"(empty)"}.`);const l=await t.arrayBuffer(),d=new Uint8Array(l),c={...n,...n?.typedConstructorOptions?.[i.key]};delete c.typedConstructorOptions;const u=i.handler;if(!u)throw new Error(`Unable to resolve handler for type: ${i?.description??N.TextUtils.getFileNameExtension(t?.name)??t?.name??"(empty)"}.`);await c.onStart?.(r);const f=await u(d,c);o=new sE(t,f,r,i)}catch(r){throw r}return o}async writeFile(t,n,o){if(!n||!t)throw new Error("Workbook model or file name must be provided.");if(!n.isIWorkbook)throw new Error("Invalid workbook model provided. Must be an instance of IWorkbook.");const r=N.TextUtils.getFileNameExtension(t);r&&(t=t.slice(0,t.length-r.length-1));let i=null;o?.formatType&&(i=this.getWriteFormatType(o.formatType));const l=this.getWriteFormats(),d=l.length;for(let f=0;!i&&f<d;f++)(l[f].ext===r||!r&&l[f].isDefault)&&(i=l[f]);if(!i)throw new Error(`Unable to determine export type for '${t}'.`);const c=t+"."+i.ext;let u=null;try{u=await this.toArrayBuffer(n,i.key)}catch(f){throw typeof f=="string"?new Error(f):f}try{await(async(f,p)=>{(function(h,m){const g=URL.createObjectURL(h),x=document.createElement("a");x.style.display="none",x.href=g,x.download=m,document.body.appendChild(x),x.click(),document.body.removeChild(x),URL.revokeObjectURL(g)})(new Blob([p],{type:"application/octet-stream"}),f)})(c,u)}catch(f){throw new Error("Unable to write file.",{cause:f})}return!0}}class sE{constructor(t,n,o,r){this.file=t,this.workbook=n,this.title=o,this.formatType=r}get[Symbol.toStringTag](){return"[WorkbookHandle]"}toString(){return`'${this.file.name}' ${this.file.size} (${this.formatType.description})`}}const cE=new X9;var q4,Z4,dE=function(){if(Z4)return q4;function e(o){if(typeof o!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(o))}function t(o,r){for(var i,l="",d=0,c=-1,u=0,f=0;f<=o.length;++f){if(f<o.length)i=o.charCodeAt(f);else{if(i===47)break;i=47}if(i===47){if(c!==f-1&&u!==1)if(c!==f-1&&u===2){if(l.length<2||d!==2||l.charCodeAt(l.length-1)!==46||l.charCodeAt(l.length-2)!==46){if(l.length>2){var p=l.lastIndexOf("/");if(p!==l.length-1){p===-1?(l="",d=0):d=(l=l.slice(0,p)).length-1-l.lastIndexOf("/"),c=f,u=0;continue}}else if(l.length===2||l.length===1){l="",d=0,c=f,u=0;continue}}r&&(l.length>0?l+="/..":l="..",d=2)}else l.length>0?l+="/"+o.slice(c+1,f):l=o.slice(c+1,f),d=f-c-1;c=f,u=0}else i===46&&u!==-1?++u:u=-1}return l}Z4=1;var n={resolve:function(){for(var o,r="",i=!1,l=arguments.length-1;l>=-1&&!i;l--){var d;l>=0?d=arguments[l]:(o===void 0&&(o=process.cwd()),d=o),e(d),d.length!==0&&(r=d+"/"+r,i=d.charCodeAt(0)===47)}return r=t(r,!i),i?r.length>0?"/"+r:"/":r.length>0?r:"."},normalize:function(o){if(e(o),o.length===0)return".";var r=o.charCodeAt(0)===47,i=o.charCodeAt(o.length-1)===47;return(o=t(o,!r)).length!==0||r||(o="."),o.length>0&&i&&(o+="/"),r?"/"+o:o},isAbsolute:function(o){return e(o),o.length>0&&o.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var o,r=0;r<arguments.length;++r){var i=arguments[r];e(i),i.length>0&&(o===void 0?o=i:o+="/"+i)}return o===void 0?".":n.normalize(o)},relative:function(o,r){if(e(o),e(r),o===r||(o=n.resolve(o))===(r=n.resolve(r)))return"";for(var i=1;i<o.length&&o.charCodeAt(i)===47;++i);for(var l=o.length,d=l-i,c=1;c<r.length&&r.charCodeAt(c)===47;++c);for(var u=r.length-c,f=d<u?d:u,p=-1,h=0;h<=f;++h){if(h===f){if(u>f){if(r.charCodeAt(c+h)===47)return r.slice(c+h+1);if(h===0)return r.slice(c+h)}else d>f&&(o.charCodeAt(i+h)===47?p=h:h===0&&(p=0));break}var m=o.charCodeAt(i+h);if(m!==r.charCodeAt(c+h))break;m===47&&(p=h)}var g="";for(h=i+p+1;h<=l;++h)h!==l&&o.charCodeAt(h)!==47||(g.length===0?g+="..":g+="/..");return g.length>0?g+r.slice(c+p):(c+=p,r.charCodeAt(c)===47&&++c,r.slice(c))},_makeLong:function(o){return o},dirname:function(o){if(e(o),o.length===0)return".";for(var r=o.charCodeAt(0),i=r===47,l=-1,d=!0,c=o.length-1;c>=1;--c)if((r=o.charCodeAt(c))===47){if(!d){l=c;break}}else d=!1;return l===-1?i?"/":".":i&&l===1?"//":o.slice(0,l)},basename:function(o,r){if(r!==void 0&&typeof r!="string")throw new TypeError('"ext" argument must be a string');e(o);var i,l=0,d=-1,c=!0;if(r!==void 0&&r.length>0&&r.length<=o.length){if(r.length===o.length&&r===o)return"";var u=r.length-1,f=-1;for(i=o.length-1;i>=0;--i){var p=o.charCodeAt(i);if(p===47){if(!c){l=i+1;break}}else f===-1&&(c=!1,f=i+1),u>=0&&(p===r.charCodeAt(u)?--u===-1&&(d=i):(u=-1,d=f))}return l===d?d=f:d===-1&&(d=o.length),o.slice(l,d)}for(i=o.length-1;i>=0;--i)if(o.charCodeAt(i)===47){if(!c){l=i+1;break}}else d===-1&&(c=!1,d=i+1);return d===-1?"":o.slice(l,d)},extname:function(o){e(o);for(var r=-1,i=0,l=-1,d=!0,c=0,u=o.length-1;u>=0;--u){var f=o.charCodeAt(u);if(f!==47)l===-1&&(d=!1,l=u+1),f===46?r===-1?r=u:c!==1&&(c=1):r!==-1&&(c=-1);else if(!d){i=u+1;break}}return r===-1||l===-1||c===0||c===1&&r===l-1&&r===i+1?"":o.slice(r,l)},format:function(o){if(o===null||typeof o!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof o);return i=(r=o).dir||r.root,l=r.base||(r.name||"")+(r.ext||""),i?i===r.root?i+l:i+"/"+l:l;var r,i,l},parse:function(o){e(o);var r={root:"",dir:"",base:"",ext:"",name:""};if(o.length===0)return r;var i,l=o.charCodeAt(0),d=l===47;d?(r.root="/",i=1):i=0;for(var c=-1,u=0,f=-1,p=!0,h=o.length-1,m=0;h>=i;--h)if((l=o.charCodeAt(h))!==47)f===-1&&(p=!1,f=h+1),l===46?c===-1?c=h:m!==1&&(m=1):c!==-1&&(m=-1);else if(!p){u=h+1;break}return c===-1||f===-1||m===0||m===1&&c===f-1&&c===u+1?f!==-1&&(r.base=r.name=u===0&&d?o.slice(1,f):o.slice(u,f)):(u===0&&d?(r.name=o.slice(1,c),r.base=o.slice(1,f)):(r.name=o.slice(u,c),r.base=o.slice(u,f)),r.ext=o.slice(c,f)),u>0?r.dir=o.slice(0,u-1):d&&(r.dir="/"),r},sep:"/",delimiter:":",win32:null,posix:null};return n.posix=n,q4=n}();const G4=/^(con|prn|aux|nul|com\d|lpt\d)$/i,K4=/[<>:"/\\|?*\u0000-\u001F]/g,v0=Object.freeze(Object.defineProperty({__proto__:null,MAX_WORKBOOK_NAME_SIZE:96,WINDOW_FILENAME_CHAR_RESERVED_REGEX:K4,WINDOW_FILENAME_RESERVED_REGEX:G4,isValidWindowsFilename:e=>!(!e||e.length>255||K4.test(e)||G4.test(e)||e==="."||e===".."),relativePath:(e,t)=>{try{return new URL(t),t}catch{}if(t.startsWith("/")||/^[a-zA-Z]:/.test(t))return t;if(typeof window>"u"||window.document===void 0){if(typeof require<"u"&&typeof process<"u")return dE.Path.resolve(e,t);throw new Error("Unsupported environment")}try{let n=e.startsWith("http")?e:`file:///${e.replace(/\\/g,"/")}`;return n.endsWith("/")||(n+="/"),new URL(t,n).href}catch{const n=document.createElement("a");let o=e;return o.endsWith("/")||(o+="/"),n.href=new URL(t,o).href,n.href}}},Symbol.toStringTag,{value:"Module"})),X4=Object.freeze(Object.defineProperty({__proto__:null,DefaultWorkbookIO:X9,IOUtils:v0,WorkbookIO:cE},Symbol.toStringTag,{value:"Module"})),uE=e=>{if(e.metadata?.name)return e.metadata.name;let t=(e.path.split("/").pop()||"").replace(/\.[^/.]+$/,"");return e.metadata?.icon==="formula"?t.toUpperCase():(t=t.replace(/([a-z])([A-Z])/g,"$1 $2"),t.replace(/[-_]/g," ").trim().split(/\s+/).map(n=>n.charAt(0).toUpperCase()+n.slice(1)).join(" "))},Y9=async e=>{const t=v0.relativePath(e,"./manifest.json"),n=await fetch(t);if(!n.ok)throw new fc(`Failed to retrieve directory at '${e}': ${n.statusText}`);const o=await n.text();if(o.trim().toLowerCase().startsWith("<!doctype html")||o.trim().toLowerCase().startsWith("<html"))throw new fc(`Failed to retrieve directory at '${e}'`);let r;try{r=JSON.parse(o)}catch(l){throw new Error(`Failed to parse directory: ${l.message}. Ensure the file is valid JSON.`)}const i=r.map(async l=>{try{const d=v0.relativePath(e,l.path),c=await fetch(d);if(!c.ok)throw new Error(`Failed to fetch file at '${l.path}': ${c.statusText}`);const u=await c.text();let f=l.metadata;return f?.title||(f={title:uE(l),...f}),{path:l.path,content:u,metadata:f}}catch(d){console.error(d.message)}return null});return(await Promise.all(i)).filter(l=>l!==null)},ac={fontSize:"0.8rem",marginRight:"4px"},hE=s.memo(e=>{const{disabled:t,snippet:n,description:o,handleInsert:r,sx:i,...l}=e;let d;return d=n.metadata?.icon==="formula"?a.jsx(I8,{sx:ac}):n.metadata?.icon==="macro"?a.jsx(Wd,{sx:ac}):a.jsx(an.WebhookOutlined,{sx:ac}),a.jsx(Po,{sx:{maxWidth:"460px",display:"flex","*":{lineHeight:"1.2"},...i},disabled:t,icon:d,onMouseDown:c=>{c.button===0&&c.preventDefault()},onMouseUp:c=>{c.button===0&&r(n)},onKeyDown:c=>{c.keyCode!==Nt.Enter&&c.keyCode!==Nt.Space||r(n)},...l,children:a.jsxs(V.Box,{sx:{display:"flex",flex:"1 1 100%",flexDirection:"column",overflow:"hidden"},children:[a.jsx(V.Typography,{component:"div",children:n.metadata?.title??n.path}),a.jsx(V.Typography,{variant:"caption",component:"div",sx:{color:c=>st.alpha(c.palette.text.secondary??c.palette.text.primary,.6),overflow:"hidden",textOverflow:"ellipsis"},children:n.metadata?.summary})]})})}),J9=s.memo(s.forwardRef((e,t)=>{const{commands:n,commandHook:o,scope:r,disabled:i=!1,scriptPath:l=K9,...d}=e,[c,u]=s.useState([]),[f,p]=s.useState(!0),h=Bn(n,["executeSelectedScript"]),m=h[0]?.context?.();s.useEffect(()=>{(async()=>{try{const x=await Y9(l);u(x)}catch{}finally{p(!1)}})()},[l]);const g=s.useCallback((x,y)=>{if(f)return a.jsx("div",{children:"Loading..."});const v={variant:zt.Menuitem,commandHook:o,scope:"scripts",disabled:i},b=_=>{m.getEditor()?.insertSnippet(_.content),x.closeFloat()},C=[];for(let _=0;_<c.length;_++){const I=c[_];I&&C.push(a.jsx(hE,{handleInsert:b,snippet:I},I.path))}const k=a.jsxs(V.Box,{sx:{display:"flex",flexDirection:"column",flex:"1 1 100%",overflow:"hidden"},children:[C.length>0?a.jsxs(a.Fragment,{children:[a.jsx(V.Box,{sx:{overflow:"auto",flex:"1 1 100%"},children:C}),a.jsx(Et,{orientation:"horizontal"})]}):null,s.createElement(Re,{...v,key:"help",command:n.getCommand("help"),icon:ve(a.jsx(M8,{}))})]});return dn({...x,children:k})},[i,o,r,f,m]);return a.jsx(bn,{ref:t,commands:n,disabled:i,commandHook:o,scope:r,label:"Insert Script",tooltip:"Inserts a script from a set of templates.",createPopupPanel:g,icon:ve(a.jsx(Ry,{})),...d})})),F2=s.memo(s.forwardRef((e,t)=>{const{commands:n,parentFloat:o,commandButtonProps:r,...i}=e,l=me(d=>{const{commandButtonProps:c,commandPopupProps:u}=d;return a.jsx(a.Fragment,{children:a.jsxs("div",{style:{display:"flex",flex:"1 1 100%"},children:[a.jsx("div",{children:a.jsx(Nl,{parentFloat:o,style:{},children:a.jsx(Re,{...c,command:n.getCommand("saveScripts"),icon:ve(a.jsx(Iy,{}))})})}),a.jsx("div",{style:{flex:"1 1 100%"}}),a.jsx("div",{children:a.jsx(Nl,{parentFloat:o,style:{},children:a.jsx(J9,{...c,commands:n})})})]})})},[n]);return a.jsx(ql,{ref:t,commands:n,parentFloat:o,commandButtonProps:r,createToolbarPalette:l,...i})}));F2.displayName="ScriptEditorToolbar";const sc={fontSize:"1rem"},Q9=s.memo(s.forwardRef((e,t)=>{const{scriptPath:n=K9,onScriptSelect:o,sx:r=nn.EmptyCssProperties,className:i,buttonMinWidth:l=210,buttonMinHeight:d=80,gap:c=12,...u}=e,[f,p]=s.useState([]),[h,m]=s.useState(!0),[g,x]=s.useState(null);if(s.useEffect(()=>{(async()=>{const b=[{path:null,metadata:{title:"Blank Template...",summary:"Start with an empty script."},content:""}];try{m(!0),x(null);const C=await Y9(n);for(let k=0;k<C.length;k++){const _=C[k];_&&b.push(_)}}catch(C){x(C instanceof Error?C.message:"Failed to load scripts"),C instanceof fc||console.error("Error loading scripts:",C)}finally{p(b),m(!1)}})()},[n]),h)return a.jsx(V.Box,{display:"flex",justifyContent:"center",alignItems:"center",height:"100%",className:Fn(i,"script-select"),sx:{background:b=>b.palette.background.paper,zIndex:1e3,backgroundImage:`linear-gradient(${st.alpha("#fff",pn(5))}, ${st.alpha("#fff",pn(5))})`,...r},...u,children:a.jsx(V.CircularProgress,{})});let y=null;g&&(y=a.jsxs(V.Box,{display:"flex",justifyContent:"center",alignItems:"center",className:Fn(i,"script-select","error-results"),sx:{background:b=>b.palette.error.light,flex:"0",zIndex:1e3,flexDirection:"column",padding:b=>b.spacing(1),border:b=>`1px solid ${b.palette.error.main}`,borderBottomLeftRadius:1,borderBottomRightRadius:1,backgroundImage:`linear-gradient(${st.alpha("#fff",pn(5))}, ${st.alpha("#fff",pn(5))})`},...u,children:[a.jsx(V.Typography,{color:"error",variant:"h6",component:"div",gutterBottom:!0,children:"Error loading Templates"}),a.jsx(V.Typography,{color:"error",component:"div",children:g})]}));const v=b=>{const C=b.metadata?.icon;return C==="macro"?a.jsx(Wd,{sx:sc}):C==="formula"?a.jsx(I8,{sx:sc}):C==="autostart"?a.jsx(an.WebhookOutlined,{sx:sc}):null};return a.jsxs(V.Box,{ref:t,className:Fn(i,"script-select"),sx:{background:b=>b.palette.background.paper,zIndex:1e3,backgroundImage:`linear-gradient(${st.alpha("#fff",pn(5))}, ${st.alpha("#fff",pn(5))})`,...r},...u,children:[a.jsxs(V.Box,{p:3,className:"script-select-content",sx:{overflow:"auto",flex:"1 1 auto"},children:[a.jsx(V.Typography,{variant:"h6",gutterBottom:!0,children:"Script Template"}),a.jsx(V.Typography,{variant:"body2",component:"div",color:"text.secondary",gutterBottom:!0,children:"Choose from a template to provide a starting point to automate tasks or create user defined functions."}),a.jsx(V.Typography,{variant:"body2",component:"div",color:"text.secondary",gutterBottom:!0,children:"Templates provide a foundation to customize and meet your specific needs."}),a.jsx(V.Box,{sx:{display:"grid",gridTemplateColumns:`repeat(auto-fill, minmax(${l}px, 1fr))`,gap:`${c}px`,padding:2,paddingLeft:"0px",paddingRight:"0px"},children:f.map((b,C)=>a.jsxs(V.Button,{variant:"outlined",sx:{minWidth:l,minHeight:d,display:"flex",flexDirection:"column",justifyContent:"flex-start",alignItems:"flex-start",textAlign:"left",padding:2,textTransform:"none",overflow:"hidden",...C===0&&{borderStyle:"dashed",marginBottom:"8px"},...C===1&&{gridColumn:"1"}},onClick:()=>o?.(b),children:[a.jsxs(V.Box,{sx:{display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"center",width:"100%",marginBottom:.5},children:[a.jsx(V.Typography,{variant:"subtitle2",component:"div",children:b.metadata?.title||b.path.split("/").pop()?.replace(/\.\w+$/,"")||"Untitled"}),v(b)]}),b.metadata?.summary&&a.jsx(V.Typography,{variant:"body2",component:"div",color:"text.secondary",sx:{overflow:"hidden",display:"flex",flexDirection:"column",textOverflow:"ellipsis",alignItems:"flex-start"},children:b.metadata.summary})]},`${b.path}-${C}`))})]}),y]})}));Q9.displayName="TemplateSelectPanel";const z2=s.memo(s.forwardRef((e,t)=>{const{className:n,sx:o,editorProps:r,commands:i,readOnly:l=!1,onClose:d,autoFocusSel:c,autoFocus:u=!0,scripts:f,...p}=e,h=xr(),[m,g]=s.useState(!1),x=s.useRef(!1),[y,v]=s.useState({message:"Loading",cursor:"",dirty:!1}),[b,C]=s.useState(null);s.useEffect(()=>{let P=!1;return C(null),async function(){if(f&&(await f.start(),!P)){const z=f.getModules().search()[0]?.getSource();C({source:z||null})}}(),()=>{P=!0}},[f]);const k=s.useCallback(P=>{v(z=>({...z,...P}))},[]),_=s.useRef(null),I=s.useRef(null),[M,F]=s.useState(null),j=s.useRef(null),T=me(P=>{if(M)return M.focus(P),!0;if(c){const z=I.current?.querySelectorAll?.(c);if(z&&z.length>0)return z[0]?.focus?.(P),!0}return I.current?.focus?.(P),!1},[M,c,u]),w=s.useMemo(()=>a.jsx(wi,{transitionDelay:"160ms",style:{position:"absolute",width:"100%",height:"100%"},transparentBackground:!1}),[]),S=s.useMemo(()=>a.jsx(V.Paper,{elevation:1,tabIndex:0,sx:{display:"flex",alignItems:"center",userSelect:"none",flexGrow:1,backgroundImage:`linear-gradient(${st.alpha("#fff",pn(5))}, ${st.alpha("#fff",pn(5))})`,marginLeft:P=>P.spacing(.5),marginRight:P=>P.spacing(.5),marginTop:P=>P.spacing(1),marginBottom:P=>P.spacing(1)},children:a.jsx(F2,{commands:i})}),[h,i]),D=s.useMemo(()=>a.jsx(V.Box,{className:Fn("script-status-panel","status-panel"),sx:{display:"flex",alignItems:"stretch",flexDirection:"row",flex:"0",paddingLeft:"12px",paddingRight:"12px",gap:"8px",paddingTop:"1px",minHeight:"calc(1em + 8px)",margin:0,borderTop:`solid 1px ${h.palette.divider}`},children:a.jsxs("div",{style:{flex:"1 1 100%",display:"flex",alignItems:"center",flexDirection:"row",justifyContent:"center"},children:[a.jsx(V.Typography,{component:"div",sx:{userSelect:"none",whiteSpace:"pre",overflow:"hidden",textOverflow:"ellipsis",flex:"1 1 100%",color:P=>P.palette.text.secondary},variant:"caption",children:y.message}),a.jsx(V.Typography,{component:"div",sx:{userSelect:"none",whiteSpace:"pre",overflow:"hidden",textOverflow:"ellipsis",flex:"none",color:P=>P.palette.text.secondary},variant:"caption",children:y.dirty?"Unsaved":""}),a.jsx(V.Typography,{component:"div",sx:{userSelect:"none",whiteSpace:"pre",overflow:"hidden",textOverflow:"ellipsis",flex:"none",marginLeft:"8px",minWidth:"90px",display:"flex",justifyContent:"end",color:P=>P.palette.text.secondary},variant:"caption",children:y.cursor})]})}),[y]),E=s.useMemo(()=>a.jsxs(V.Box,{className:Fn("script-editor-content"),sx:{display:"flex",flex:"1 1 100%",width:"100%",flexDirection:"column",boxSizing:"border-box"},children:[S,a.jsx(V.Box,{sx:{display:"flex",flex:"1 1 100%",width:"100%",flexDirection:"row",position:"relative",boxSizing:"border-box"},children:a.jsx(zk,{ref:I,loadingPanel:w,readOnly:l,onClose:d,autoFocus:u,commands:i,onStatusChange:k,darkMode:h.palette.mode==="dark",...r})}),D]}),[h,i,S,D,m,w,l,r,u,c,d,k]),R=s.useMemo(()=>a.jsx(V.DialogTitle,{className:Fn({"Mui-selected":x.current}),sx:{display:"flex",color:P=>P.palette.text.secondary,boxSizing:"border-box",padding:"0 0",transitionProperty:"opacity",transitionDuration:P=>`${P.transitions.duration.shortest}ms`,opacity:.7,"&.Mui-selected":{opacity:1,transitionDuration:P=>P.transitions.duration.shortest/2+"ms"},backgroundColor:P=>st.alpha(P.palette.action.hover,.03),borderBottom:P=>`solid ${st.alpha(P.palette.divider,.2)} 1px`},onPointerDown:P=>{P.isDefaultPrevented()||(P.preventDefault(),T())},children:a.jsxs(V.Box,{sx:{display:"flex",flex:"1 1 10%",flexDirection:"row",alignItems:"center",marginTop:P=>P.spacing(.25),marginBottom:P=>P.spacing(.25),marginLeft:P=>P.spacing(1),marginRight:P=>P.spacing(1)},children:[a.jsx(V.Box,{sx:{flex:"1 1 100%",paddingLeft:P=>P.spacing(1)},children:"Script (Typescript)"}),a.jsx(go,{label:"Close",children:a.jsx(V.IconButton,{"aria-label":"close",sx:{color:P=>P.palette.text.icon??P.palette.action.active},touchRippleRef:_,onPointerDown:P=>{_.current?.start(P,{center:!1}),P.stopPropagation(),P.preventDefault()},onPointerUp:()=>{I.current?.close()},children:a.jsx(an.Close,{})})})]})}),[h,m]),A=s.useMemo(()=>{let P;return b===null?null:(b.source===null&&(P=a.jsx(Q9,{sx:{display:"flex",flex:"1 1 100%",flexDirection:"column",overflow:"hidden",position:"absolute",boxSizing:"border-box",width:"100%",height:"100%"},onScriptSelect:z=>{I.current?.getEditor().insertSnippet(z.content),C({source:z.content??""})}})),a.jsxs(V.Box,{tabIndex:0,className:Fn("script-workspace",n),sx:{display:"flex",flex:"1 1 100%",flexDirection:"column",overflow:"hidden",alignItems:"stretch",userSelect:"none",flexGrow:0,outline:"none",backgroundImage:`linear-gradient(${st.alpha("#fff",pn(5))}, ${st.alpha("#fff",pn(5))})`},onPointerDown:z=>{z.isDefaultPrevented()||I.current?.focus()},children:[R,a.jsxs(V.Box,{sx:{flex:"1 1 100%",position:"relative",display:"flex"},children:[E,P]})]}))},[S,E,n,b]),L=so(t,()=>({isScriptWorkspaceElement:()=>!0,focus:P=>{T(P)}}),[]);return a.jsx(V.Box,{sx:{display:"flex",flexDirection:"row",flex:"1 1 100%",position:"relative",...o},ref:L,...p,onFocus:P=>{g(!0),x.current=!0,L.current?.contains(P.target)&&P.target!==L.current&&F(P.target),P.relatedTarget&&!j.current&&(j.current=P.relatedTarget),p?.onFocus?.(P)},onBlur:P=>{L?.current?.contains(P.relatedTarget)||L?.current===P.relatedTarget||(j.current=null,x.current=!1,g(!1)),p?.onBlur?.(P)},children:A})}));z2.displayName="ScriptWorkspace";const B2=s.memo(s.forwardRef((e,t)=>{const{commands:n,commandHook:o,scope:r,disabled:i=!1,...l}=e,d=Bn(n,["executeScript"])[0].context();Bn(n,["showScriptEditor"]);const c=s.useCallback((u,f)=>{const p={variant:zt.Menuitem,commandHook:o,scope:"scripts",disabled:i,shortcut:null},h=d?.getScripts(),m=h?.searchFunction({type:"macro"}),g=[];if(m)for(let y=0;y<m.length;y++){const v=m[y];g.push(a.jsx(Re,{...p,command:f.getCommand("executeScript"),commandState:{declaration:v},tooltipProps:{description:`Execute ${v.getName()??"script"}`},icon:ve(a.jsx(Wd,{})),labelOverride:v.getName()??`Script '${v.getName()}'`},`script-${v.getName()}-${y}`))}const x=a.jsxs(V.Box,{sx:{display:"flex",flexDirection:"column",flex:"1 1 100%",overflow:"hidden"},children:[g.length>0?a.jsxs(a.Fragment,{children:[a.jsx(V.Box,{sx:{overflow:"auto",flex:"1 1 100%"},children:g}),a.jsx(Et,{orientation:"horizontal"})]}):null,s.createElement(Re,{...p,key:"show-editor",command:f.getCommand("showScriptEditor"),icon:ve(a.jsx(Sy,{}))})]});return dn({...u,children:x})},[i,d,o,r]);return a.jsx(bn,{ref:t,commands:n,commandHook:o,createPopupPanel:c,selected:n.getCommand("showScriptEditor").state(),label:"Macros",tooltip:"Run or manage macros.",quickCommand:"showScriptEditor",icon:ve(a.jsx(My,{})),...l})})),pE=s.memo(s.forwardRef((e,t)=>{const{commands:n,parentFloat:o,commandButtonProps:r,...i}=e,l=Bn(n,["executeScript","showScriptEditor"]),d=l[0]?.context?.(),c=s.useCallback(u=>{const{commandButtonProps:f,commandPopupProps:p}=u,h=a.jsx(bi,{...p,command:n.getCommand("formatFontColor"),icon:a.jsx(Mg,{}),isSplit:!0,panelProps:{disableAlpha:!0}}),m=a.jsx(bi,{...p,command:n.getCommand("formatFillColor"),icon:a.jsx(jg,{}),isSplit:!0,panelProps:{disableAlpha:!0,autoColorLabel:"No Fill",autoColorPosition:li.End}}),g=n.getCommand("undo")?a.jsx(a.Fragment,{children:a.jsx(k2,{...p,quickCommand:"undo"})}):null,x=n.getCommand("find")?a.jsx(a.Fragment,{children:a.jsx(f9,{...p})}):null;let y=null;const v=d?.getScripts();if(l[1]?.state?.()||v){let b=l[1]?.state?.();const C=v?.searchFunction({type:"macro"});for(let k=0;C&&!b&&k<C?.length;k++)b=!0;b&&(y=a.jsxs(a.Fragment,{children:[a.jsx(Et,{}),a.jsx(B2,{...p})]}))}return a.jsxs(Nl,{parentFloat:o,children:[g,null,g?a.jsx(Et,{}):null,a.jsx(E2,{...p,command:n.getCommand("paste")}),a.jsx(Re,{...f,command:n.getCommand("formatPainterToggle"),icon:ve(a.jsx(zx,{}))}),a.jsx(t1,{...f,command:n.getCommand("copy")}),a.jsx(Et,{}),a.jsx(v9,{...p,command:n.getCommand("formatFontFamily")}),a.jsx(m9,{...p,command:n.getCommand("formatFontSize")}),a.jsx(Re,{...f,command:n.getCommand("formatBoldToggle"),icon:a.jsx(Om,{})}),a.jsx(Re,{...f,command:n.getCommand("formatItalicToggle"),icon:a.jsx(Lm,{})}),a.jsx(S9,{...p}),a.jsx(w9,{...p}),h,a.jsx(Et,{}),m,a.jsx(u9,{...p}),a.jsx(h9,{...p}),a.jsx(Et,{}),a.jsx(bh,{...p}),a.jsx(vh,{...p}),a.jsx(wh,{...p}),a.jsx(Sh,{...p}),a.jsx(Et,{}),a.jsx(g9,{...p}),a.jsx(_9,{command:n.getCommand("formatCellStyle"),...p}),a.jsx(R9,{command:n.getCommand("formatTableStyle"),...p}),a.jsx(Et,{}),a.jsx(w2,{...p}),a.jsx(S2,{...p}),a.jsx(Et,{}),a.jsx(x9,{...p}),null,a.jsx(v2,{...p}),a.jsx(C2,{...p}),x,y]})},[n,l]);return a.jsx(ql,{ref:t,commands:n,parentFloat:o,commandButtonProps:r,createToolbarPalette:c,...i})})),fE=s.memo(s.forwardRef((e,t)=>{const{commands:n,parentFloat:o,commandButtonProps:r,...i}=e,l=me(d=>{const{commandButtonProps:c,commandPopupProps:u}=d;return a.jsxs(Nl,{parentFloat:o,children:[null,a.jsx(Re,{...c,command:n.getCommand("updateHyperlink"),icon:ve(a.jsx(Fc,{}))}),a.jsx(Re,{...c,command:n.getCommand("updateComments"),icon:ve(a.jsx(zc,{}))}),a.jsx(_2,{...u}),a.jsx(Re,{...c,command:n.getCommand("insertTable"),icon:ve(a.jsx(_l,{}))})]})},[n]);return a.jsx(ql,{ref:t,commands:n,parentFloat:o,commandButtonProps:r,createToolbarPalette:l,...i})})),mE=s.memo(s.forwardRef((e,t)=>{const{commands:n,parentFloat:o,commandButtonProps:r,...i}=e,l=me(d=>{const{commandButtonProps:c,commandPopupProps:u}=d;return a.jsxs(Nl,{parentFloat:o,children:[a.jsx(p9,{...u}),a.jsx(Re,{...c,command:n.getCommand("protectionSheetToggle"),icon:a.jsx(an.Lock,{color:"secondary"})}),a.jsx(Et,{}),a.jsx(y9,{...u}),a.jsx(C9,{...u}),a.jsx(Et,{}),a.jsx(Re,{...c,command:n.getCommand("sheetViewToggleFormulaView"),scope:"view",icon:a.jsx(gi,{command:n.getCommand("sheetViewToggleFormulaView"),scope:"view"})}),a.jsx(Re,{...c,command:n.getCommand("sheetViewToggleShowZeros"),scope:"view",icon:a.jsx(gi,{command:n.getCommand("sheetViewToggleShowZeros"),scope:"view"})}),a.jsx(Et,{}),a.jsx(k9,{...u}),a.jsx(O9,{command:n.getCommand("selectTheme"),...u}),a.jsx(Et,{}),a.jsx(B2,{...u,scope:"view"}),a.jsx(Et,{}),a.jsx(Re,{...c,command:n.getCommand("fullScreenToggle"),scope:"view",icon:()=>ve(n.getCommand("fullScreenToggle").state()?a.jsx(Kx,{}):a.jsx(Gx,{}))})]})},[n]);return a.jsx(ql,{ref:t,commands:n,parentFloat:o,commandButtonProps:r,createToolbarPalette:l,...i})})),ef=e=>a.jsx(bE,{...e}),gE=s.memo(e=>{const{sx:t,...n}=e;return a.jsxs(V.Box,{sx:{display:"flex",flexDirection:"column",position:"relative","&:hover:not([disabled]) .indicator":{borderBottom:o=>`${st.alpha(o.palette.primary.main,.35)} solid 2px`}},children:[a.jsx(V.Tab,{disableRipple:!0,onMouseDown:o=>{o.button===0&&o.preventDefault()},sx:{textTransform:"none",flex:"1 1 100%",fontWeight:o=>o.typography.fontWeightRegular,padding:"2px 6px",minHeight:"0px",minWidth:"0px",marginRight:o=>o.spacing(.5),"&.Mui-selected":{},"&.Mui-focusVisible":{},...t},...n}),a.jsx(V.Box,{className:"indicator",sx:{width:"90%",borderRadius:"4px",minWidth:"4px",position:"absolute",bottom:"0",alignSelf:"center",display:"flex"}})]})}),xE=s.memo(e=>{const{toolbars:t,value:n,onToolbarChange:o,sx:r,...i}=e,l=s.useMemo(()=>{const d=[];for(let c=0;c<t.length;c++)d.push(a.jsx(gE,{label:t[c].label},t[c].label));return d},[t]);return a.jsx(V.Tabs,{value:n,onChange:(d,c)=>{o?.(c)},variant:"scrollable",scrollButtons:!1,sx:{paddingLeft:d=>d.spacing(1.5),paddingRight:d=>d.spacing(1.5),paddingTop:d=>d.spacing(0),paddingBottom:d=>d.spacing(0),minHeight:"26px",alignItems:"center","& .MuiTabs-indicator":{display:"flex",justifyContent:"center",backgroundColor:"transparent"},"& .MuiTabs-indicatorSpan":{width:"90%",borderRadius:"4px",minWidth:"4px",backgroundColor:d=>d.palette.primary.main},"& .MuiTab-root":{marginRight:"0px"},...r},TabIndicatorProps:{children:a.jsx("span",{className:"MuiTabs-indicatorSpan"})},...i,children:l})}),yE=s.memo(e=>{const{toolbars:t,value:n,onToolbarChange:o,selectProps:r,...i}=e,l=s.useCallback(c=>{o?.(c.target.value)},[o]),d=s.useMemo(()=>{const c=[];for(let u=0;u<t.length;u++){const f=t[u].label;c.push(a.jsx(V.MenuItem,{value:u,sx:{color:p=>{if(n===u)return p.palette.primary.main}},children:f},f))}return c},[t,n]);return a.jsx(V.FormControl,{sx:{minWidth:"125px",maxWidth:"125px","& .MuiInputBase-root":{paddingLeft:"0px",paddingRight:"0px"},"& .MuiSelect-select":{paddingTop:c=>c.spacing(.5),paddingBottom:c=>c.spacing(.5),paddingLeft:c=>c.spacing(2),color:c=>c.palette.primary.main},"& .MuiSelect-icon":{fill:c=>c.palette.text.icon??c.palette.action.active,"&:hover:not(.Mui-disabled)":{color:c=>c.palette.text.icon??c.palette.action.active}},...r},size:"small",children:a.jsx(V.Select,{value:n,onChange:l,variant:"outlined",sx:{backgroundImage:`linear-gradient(${st.alpha("#fff",pn(5))}, ${st.alpha("#fff",pn(5))})`},...i,children:d})})}),bE=s.memo(s.forwardRef((e,t)=>{const{commands:n,selectWrapper:o,selectProps:r={},renderCompact:i=!1,paletteWrapper:l,toolbarsProps:d,paletteProps:c={},workbook:u,sx:f,...p}=e,h=s.useMemo(()=>{const _=[];return _.push({label:"Home",component:a.jsx(pE,{commands:n,...d?.Home})}),_.push({label:"Insert",component:a.jsx(fE,{commands:n,...d?.Insert})}),_.push({label:"View",component:a.jsx(mE,{commands:n,...d?.View})}),_},[n]),m=s.useMemo(()=>{const _=[];for(let I=0;I<h.length;I++)_.push(s.cloneElement(h[I].component,{...h[I].component.props,key:h[I].key??h[I].label}));return _},[h]),[g,x]=s.useState(0),y=_=>{x(_)},v=s.useMemo(()=>i?a.jsx(yE,{toolbars:h,value:g,onToolbarChange:y,sx:r}):a.jsx(xE,{toolbars:h,value:g,onToolbarChange:y,sx:r}),[h,g,r,i]),{sx:b,...C}=c,k=a.jsx(V.Paper,{elevation:2,tabIndex:0,sx:{display:"flex",alignItems:"center",userSelect:"none",flexGrow:1,backgroundImage:`linear-gradient(${st.alpha("#fff",pn(5))}, ${st.alpha("#fff",pn(5))})`,marginLeft:_=>_.spacing(1),marginRight:_=>_.spacing(1),marginTop:_=>_.spacing(.5),marginBottom:_=>_.spacing(.5),...b},...C,children:m[g]});return a.jsxs(V.Box,{ref:t,className:"toolbarWrappers",sx:{display:"flex",flexDirection:"column",paddingTop:_=>_.spacing(.5),"*":{userSelect:"none"},...f},...p,children:[o?o(v):v,l?l(k):k]})})),vE=e=>a.jsx(O2,{...e}),wE=e=>a.jsx(P2,{...e}),SE=e=>a.jsx(L2,{...e}),N2=s.memo(s.forwardRef((e,t)=>{const{workbook:n,commands:o,onBeforeUserChange:r,onUserChange:i,disabled:l=!1,readOnly:d=!1,contextMenuProps:c,renderContextMenu:u=vE,sheetsAllProps:f,renderSheetsAll:p=wE,sheetTabProps:h,renderSheetTab:m,background:g="transparent",className:x,notifier:y,sx:v,borderWidth:b,borderColor:C,gridTheme:k,gridStyle:_,...I}=e,[M,F]=s.useState(n?.getSelectedSheetIndex()),[j,T]=s.useState(n?.getSheets().search()),[w,S]=s.useState(n?.getProtection());Ht(n,{onViewChange(de){F(de?.getSelectedSheetIndex())},onSheetsChange:de=>{T(de.getSheets().search())},onProtectionChange:de=>{S(de?.getProtection())}});const D=s.useMemo(()=>{const de=[];for(let oe=0;oe<j.length;oe++)de.push(j[oe].getName());return de},[j]),E=s.useCallback(de=>{r?.(de)!==!1&&(n.getSheetAt(de).select(),i?.(de))},[n,r,i]),R=s.useCallback((de,oe)=>{n.getSheetAt(de).setName(oe),i?.(de)},[n,i]),A=s.useCallback((de,oe)=>{n.getSheetAt(de).setPosition(oe),i?.(oe)},[n,i]),L=me(()=>{if(r?.(M)===!1)return;const de=M+1;n.getSheets().add({name:void 0,autoSelect:!0}),i?.(de)},[n,r,i,M]),P=s.useMemo(()=>({placement:"top-start"}),[]),z=s.useRef(null),[U,O]=s.useState(!1),q=s.useCallback(de=>{const{closeFloatAll:oe,floatReference:fe}=de;return p({workbook:n,gridStyle:_,floatReference:fe,closeFloatAll:oe,...f})},[p,f,l,n,_]),{reference:X,component:re}=Mr({label:"allSheet",popperProps:P,anchor:z.current,onOpen:()=>O(!0),onClose:()=>O(!1),createPopupPanel:q}),$=s.useRef(null),[W,B]=s.useState(null),Z=s.useCallback(de=>{const{floatReference:oe}=de;return u?.({workbook:n,index:W?.index,tabStripRef:$.current,commands:o,disabled:l,floatReference:oe,...c})},[u,c,l,n,o,W]),{reference:G,component:ie}=Mr({label:"sheetTab",popperProps:P,anchor:{getBoundingClientRect:()=>new DOMRect(W?.left||0,W?.top||0,0,0)},onClose:()=>B(null),createPopupPanel:Z});s.useEffect(()=>{W?G.open(0):G.close(0)},[W]);const ee=s.useCallback((de,oe)=>{de.preventDefault(),B({left:de.clientX-2,top:de.clientY-4,index:oe})},[]),le=me(de=>{let oe;try{oe=n?.getSheetAt(de.index)}catch{}return oe?(m??SE)({sheet:oe,gridTheme:k,onContextMenu:fe=>{E(de.index),ee(fe,de.index)},...de,...h}):null},[m,h,n,k]),ue=s.useMemo(()=>d||!w?.isStructureAllowed()?null:a.jsx(Zo,{disableInteractive:!0,title:"New sheet",children:a.jsx(V.IconButton,{disabled:l,component:"div",sx:{padding:"0","&:hover:not([disabled])":{color:de=>de.palette.primary.main},color:de=>de.palette.text.icon??de.palette.action.active,"& svg":{width:"18px",height:"18px"}},"aria-label":"addTab",size:"small",onMouseDown:de=>{de.button===0&&de.preventDefault()},onClick:()=>L(),children:a.jsx(an.AddCircleOutline,{})})}),[d,l,w,L]);return a.jsxs(V.Box,{ref:t,className:Fn(x),sx:{position:"relative",display:"flex",alignItems:"stretch",flex:"1 1 100%",maxWidth:"100%",...v},...I,children:[a.jsx(i9,{ref:$,selectedTabIndex:M,tabNames:D,onSelectedTabIndexChange:E,onTabNameChange:R,onTabMove:A,background:g,borderColor:C,borderWidth:b,activeColor:null,disabled:l,disableDrag:d||!w.isStructureAllowed(),createScrollStartButton:Ly,createScrollEndButton:Oy,createScrollEdgeButton:Dy,createTabButton:le,createTabDivider:de=>{const{key:oe,...fe}=de;return a.jsx(Et,{sx:{marginLeft:"-1px",marginRight:"0px",marginTop:"6px",marginBottom:"6px",background:Te=>st.alpha(Te.palette.divider,.25)},...fe},oe)},editLabelProps:{maxLength:31,styleHover:{fontWeight:"700"},onKeyPress:de=>{n.isValidSheetNameCharacter(de.key)||de.preventDefault()},onCancel:()=>{i?.(M)},notifier:y},children:a.jsx(Zo,{disableInteractive:!0,title:U?"":"List all sheets",children:a.jsx(Wo,{sx:{padding:"0px",ml:.5,mr:0,mt:0,mb:0,"& svg":{transform:"scale(0.8, 1)"},color:de=>de.palette.text.icon??de.palette.action.active},ref:z,dense:!0,outlined:!1,selected:U,color:"primary","aria-label":"menu",onMouseDown:de=>{de.button===0&&de.preventDefault()},onClick:()=>{U?X.close(0):X.open(0)},icon:a.jsx(an.Menu,{})})})}),a.jsx("div",{style:{borderTop:`solid ${C} ${b}px`,minWidth:"4px"}}),a.jsx("div",{style:{borderTop:`solid ${C} ${b}px`,flex:"none",display:"flex",alignItems:"center"},children:ue}),a.jsx("div",{style:{borderTop:`solid ${C} ${b}px`,flex:1,minWidth:"24px"}}),ie,re]})}));N2.displayName="WorkbookStrip";const V2=s.memo(s.forwardRef((e,t)=>{const{workbook:n,commands:o,disabled:r,sx:i,floatReference:l,className:d,...c}=e,[u,f]=s.useReducer(S=>S+1,0),[p,h]=s.useState(n.getSelectedSheet()),[m,g]=s.useState(p.getSelectedRanges()),[x,y]=s.useState(p.getSelectedCell());Ht(n,{onSheetsChange(){h(n.getSelectedSheet())}}),Ht(p.getSelection(),{onChange(){g(p.getSelectedRanges()),y(p.getSelectedCell())}}),Bn(o,[],{onChange:()=>{f()}});const v=s.useMemo(()=>({}),[]),b=s.useMemo(()=>({commandHook:{beforeExecute:(S,D)=>l.closeAll(),onExecute(){},onError(){console.log("onError")}},disabled:r,scope:"contextMenu",parentFloat:l}),[r,l]),C=s.useMemo(()=>({...v,...b,variant:zt.Menuitem}),[v,b]),k=s.useMemo(()=>({commands:o,variant:zt.Menuitem,parentFloat:l,...b}),[o,b,l]),_=[];let I=m.isEntireRows(),M=m.isEntireColumns();m&&(I&&(_.push(a.jsx(Et,{orientation:"horizontal"},"context:"+_.length)),_.push(s.createElement(Re,{command:o.getCommand("hideColumns"),...C,icon:ve(a.jsx(Ix,{})),key:"context:"+_.length})),_.push(s.createElement(Re,{command:o.getCommand("unhideColumns"),...C,icon:ve(a.jsx(Rx,{})),key:"context:"+_.length}))),M&&(_.push(a.jsx(Et,{orientation:"horizontal"},"context:"+_.length)),_.push(s.createElement(Re,{command:o.getCommand("hideRows"),...C,icon:ve(a.jsx(Lx,{})),key:"context:"+_.length})),_.push(s.createElement(Re,{command:o.getCommand("unhideRows"),...C,icon:ve(a.jsx(Dx,{})),key:"context:"+_.length}))),(I||M)&&_.push(a.jsx(Et,{orientation:"horizontal"},"context:"+_.length)),I&&_.push(s.createElement(Re,{command:o.getCommand("autoFitColumns"),...C,icon:ve(a.jsx(cy,{})),key:"context:"+_.length})),M&&_.push(s.createElement(Re,{command:o.getCommand("autoFitRows"),...C,icon:ve(a.jsx(dy,{})),key:"context:"+_.length})));const F=[],j=o.getCommand("formatTableStyle"),T=j?.context()?.table();if(c0(j),!I&&!M){if(F.push(a.jsx(Et,{orientation:"horizontal"},"contextBefore:"+F.length)),x?.getHyperlink())F.push(s.createElement(Tr,{...k,popupCommandKeys:["updateHyperlink","deleteHyperlink"],popupScope:"hyperlink",key:"contextBefore:action"+F.length,quickCommand:"openHyperlink",icon:S=>S.key()==="openHyperlink"?ve(a.jsx(Fc,{})):null}));else{const S=o.getCommand("updateHyperlink");F.push(s.createElement(Re,{command:S,...C,icon:ve(a.jsx(Fc,{})),key:"contextBefore:"+F.length}))}if(x?.getComments())F.push(s.createElement(Tr,{...k,popupCommandKeys:["deleteComments"],key:"contextBefore:action"+F.length,quickCommand:"updateComments",icon:S=>S.key()==="updateComments"?ve(a.jsx(zc,{})):null}));else{const S=o.getCommand("updateComments");F.push(s.createElement(Re,{command:S,...C,icon:ve(a.jsx(zc,{})),key:"contextBefore:"+F.length}))}T?F.push(s.createElement(Tr,{...k,variant:zt.Menuitem,key:"contextBefore:"+F.length,popupCommandKeys:["convertTableToRange","deleteTable"],popupScope:"table",scope:"context",commandState:T,quickCommand:"editTable",icon:S=>(S.key(),ve(a.jsx(_l,{})))})):F.push(s.createElement(Re,{command:o.getCommand("insertTable"),...C,icon:ve(a.jsx(_l,{})),key:"context:"+_.length})),F.push(s.createElement(_2,{...k,key:"contextBefore:"+F.length}))}const w=a.jsxs(a.Fragment,{children:[a.jsx(Re,{command:o.getCommand("cut"),...C,icon:a.jsx(Hg,{})}),a.jsx(t1,{command:o.getCommand("copy"),...C}),a.jsx(E2,{command:o.getCommand("paste"),...k,includePasteAllInPopup:!1}),a.jsx(Et,{orientation:"horizontal"}),a.jsx(C2,{...k}),a.jsx(Et,{orientation:"horizontal"}),a.jsx(w2,{commands:o,...k,disableSheet:!0}),a.jsx(S2,{commands:o,...k,disableSheet:!0}),a.jsx(v2,{...k}),F,_]});return a.jsx(V.Box,{ref:t,className:Fn("menu",d),sx:{...i},...c,children:w})}));var Y4,J4;V2.displayName="WorkbookContextMenu",function(){if(J4)return Y4;J4=1;var e=/^\s+|\s+$/g,t=/^[-+]0x[0-9a-f]+$/i,n=/^0b[01]+$/i,o=/^0o[0-7]+$/i,r=parseInt,i=typeof K0=="object"&&K0&&K0.Object===Object&&K0,l=typeof self=="object"&&self&&self.Object===Object&&self,d=i||l||Function("return this")(),c=Object.prototype.toString,u=Math.max,f=Math.min,p=function(){return d.Date.now()};function h(g){var x=typeof g;return!!g&&(x=="object"||x=="function")}function m(g){if(typeof g=="number")return g;if(function(v){return typeof v=="symbol"||function(b){return!!b&&typeof b=="object"}(v)&&c.call(v)=="[object Symbol]"}(g))return NaN;if(h(g)){var x=typeof g.valueOf=="function"?g.valueOf():g;g=h(x)?x+"":x}if(typeof g!="string")return g===0?g:+g;g=g.replace(e,"");var y=n.test(g);return y||o.test(g)?r(g.slice(2),y?2:8):t.test(g)?NaN:+g}Y4=function(g,x,y){var v,b,C,k,_,I,M=0,F=!1,j=!1,T=!0;if(typeof g!="function")throw new TypeError("Expected a function");function w(A){var L=v,P=b;return v=b=void 0,M=A,k=g.apply(P,L)}function S(A){var L=A-I;return I===void 0||L>=x||L<0||j&&A-M>=C}function D(){var A=p();if(S(A))return E(A);_=setTimeout(D,function(L){var P=x-(L-I);return j?f(P,C-(L-M)):P}(A))}function E(A){return _=void 0,T&&v?w(A):(v=b=void 0,k)}function R(){var A=p(),L=S(A);if(v=arguments,b=this,I=A,L){if(_===void 0)return function(P){return M=P,_=setTimeout(D,x),F?w(P):k}(I);if(j)return _=setTimeout(D,x),w(I)}return _===void 0&&(_=setTimeout(D,x)),k}return x=m(x)||0,h(y)&&(F=!!y.leading,C=(j="maxWait"in y)?u(m(y.maxWait)||0,x):C,T="trailing"in y?!!y.trailing:T),R.cancel=function(){_!==void 0&&clearTimeout(_),M=0,v=I=b=_=void 0},R.flush=function(){return _===void 0?k:E(p())},R}}();var Q4,e7,t7={exports:{}},cc={};e7||(e7=1,t7.exports=function(){if(Q4)return cc;Q4=1;var e=s,t=typeof Object.is=="function"?Object.is:function(c,u){return c===u&&(c!==0||1/c==1/u)||c!=c&&u!=u},n=e.useState,o=e.useEffect,r=e.useLayoutEffect,i=e.useDebugValue;function l(c){var u=c.getSnapshot;c=c.value;try{var f=u();return!t(c,f)}catch{return!0}}var d=typeof window>"u"||window.document===void 0||window.document.createElement===void 0?function(c,u){return u()}:function(c,u){var f=u(),p=n({inst:{value:f,getSnapshot:u}}),h=p[0].inst,m=p[1];return r(function(){h.value=f,h.getSnapshot=u,l(h)&&m({inst:h})},[c,f,u]),o(function(){return l(h)&&m({inst:h}),c(function(){l(h)&&m({inst:h})})},[c]),i(f),f};return cc.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:d,cc}()),t7.exports;var n7,o7,Gi={exports:{}},W0={exports:{}},CE=W0.exports;(function(){if(o7)return Gi.exports;o7=1;for(var e=(n7||(n7=1,function(){var p,h,m,g,x,y;typeof performance<"u"&&performance!==null&&performance.now?W0.exports=function(){return performance.now()}:typeof process<"u"&&process!==null&&process.hrtime?(W0.exports=function(){return(p()-x)/1e6},h=process.hrtime,p=function(){var v;return 1e9*(v=h())[0]+v[1]},g=p(),y=1e9*process.uptime(),x=g-y):Date.now?(W0.exports=function(){return Date.now()-m},m=Date.now()):(W0.exports=function(){return new Date().getTime()-m},m=new Date().getTime())}.call(CE)),W0.exports),t=typeof window>"u"?K0:window,n=["moz","webkit"],o="AnimationFrame",r=t["request"+o],i=t["cancel"+o]||t["cancelRequest"+o],l=0;!r&&l<n.length;l++)r=t[n[l]+"Request"+o],i=t[n[l]+"Cancel"+o]||t[n[l]+"CancelRequest"+o];if(!r||!i){var d=0,c=0,u=[],f=1e3/60;r=function(p){if(u.length===0){var h=e(),m=Math.max(0,f-(h-d));d=m+h,setTimeout(function(){var g=u.slice(0);u.length=0;for(var x=0;x<g.length;x++)if(!g[x].cancelled)try{g[x].callback(d)}catch(y){setTimeout(function(){throw y},0)}},Math.round(m))}return u.push({handle:++c,callback:p,cancelled:!1}),c},i=function(p){for(var h=0;h<u.length;h++)u[h].handle===p&&(u[h].cancelled=!0)}}Gi.exports=function(p){return r.call(t,p)},Gi.exports.cancel=function(){i.apply(t,arguments)},Gi.exports.polyfill=function(p){p||(p=t),p.requestAnimationFrame=r,p.cancelAnimationFrame=i},Gi.exports})();var kr={DOM_UNAVAILABLE_ERROR:"DOM is unavailable server-side. Please use this method client-side only.",FULLSCREEN_UNSUPPORTED_ERROR:"Your browser does not support Fullscreen API.",getEventsNames(){if(typeof document>"u")return null;const e=document;return"exitFullscreen"in e?["fullscreenchange","fullscreenerror"]:"webkitExitFullscreen"in e||"webkitCancelFullScreen"in e?["webkitfullscreenchange","webkitfullscreenerror"]:"mozCancelFullScreen"in e?["mozfullscreenchange","mozfullscreenerror"]:"msExitFullscreen"in e?["MSFullscreenChange","MSFullscreenError"]:null},getEventName(e){const t=this.getEventsNames();return t?e==="change"?t[0]:t[1]:null},get fullscreenEnabled(){if(typeof document>"u")return!1;const e=document;return e.fullscreenEnabled||e.webkitFullscreenEnabled||!!e.webkitCancelFullScreen||e.mozFullScreenEnabled||e.msFullscreenEnabled||!1},get fullscreenElement(){if(typeof document>"u")return null;const e=document;return e.fullscreenElement||e.webkitFullscreenElement||e.webkitCurrentFullScreenElement||e.mozFullScreenElement||e.msFullscreenElement||null},requestFullscreen(e,t){if(typeof document>"u")throw new Error(this.DOM_UNAVAILABLE_ERROR);const n=e??document.documentElement,o=n.requestFullscreen||n.webkitRequestFullscreen||n.webkitRequestFullScreen||n.mozRequestFullScreen||n.msRequestFullscreen;if(!o)throw new Error(this.FULLSCREEN_UNSUPPORTED_ERROR);return o.call(n,t)},exitFullscreen(){if(typeof document>"u")throw new Error(this.DOM_UNAVAILABLE_ERROR);const e=document,t=e.exitFullscreen||e.webkitExitFullscreen||e.webkitCancelFullScreen||e.mozCancelFullScreen||e.msExitFullscreen;if(!t)throw new Error(this.FULLSCREEN_UNSUPPORTED_ERROR);return t.call(e)},on(e,t){const n=this.getEventName(e);n&&document.addEventListener(n,t)},off(e,t){const n=this.getEventName(e);n&&document.removeEventListener(n,t)}};const tf=e=>{const{workbook:t,workbookElement:n,notifier:o,commandTarget:r,commands:i,darkMode:l,onShowSidebar:d,onNewWorkbook:c=nf}=e,[u,f]=s.useState(t?.getSelectedSheet()),[p,h]=s.useState(t?.getSheets().search()),m=me(d,[d]),g=me(c,[c]),x=s.useMemo(()=>[new pt("workbookStatistics",r,{label:"Workbook Statistics",description:"Show the workbook statistics.",shortcut:{key:"G",modifiers:[je.Ctrl,je.Shift]}}),new pt("showFormat",r,{label:"Show Format",description:"Open the format pane.",shortcut:{key:"F",modifiers:[je.Ctrl,je.Shift]}}),new Me("newCellStyle",r,{label:"New Cell Style…",scopedLabels:{cellStyle:"New Cell Style"},description:"Create a new named style can can be quickly used later."}),new Me("deleteCellStyle",r,{label:"Delete Cell Style",scopedLabels:{cellStyle:"Delete"},description:"Remove a named style that is no longer needed."}),new Me("modifyCellStyle",r,{label:"Modify Cell Style",scopedLabels:{cellStyle:"Modify"},description:"Update a style with the currently style."}),new pt("find",r,{label:"Find",description:"Open the Find window.",shortcut:[{key:"F",modifiers:[je.Ctrl]},{key:"F5",modifiers:[je.Shift]}]}),new pt("findReplace",r,{label:"Find & Replace",description:"Open the Find & Replace window.",shortcut:[{key:"H",modifiers:[je.Ctrl]},{key:"H",modifiers:[je.Ctrl,je.Alt]}]}),new pt("goto",r,{label:"Go To",description:"Open the 'Go To' window.",shortcut:[{key:"G",modifiers:[je.Ctrl]}]}),new pt("workbookViewToggleExpandFormulaBar",r,{label:"Toggle Expand Formula bar",description:"Expand or collapse the formula bar.",shortcut:{key:"U",modifiers:[je.Ctrl,je.Shift]}}),new pt("workbookViewToggleShowFormulaBar",r,{label:"View Formula bar",scopedLabels:{view:"Formula Bar"},description:"Show or hide the formula bar."}),new pt("workbookViewToggleShowTabs",r,{label:"View Sheet Tabs",description:"Show or hide the sheet tabs.",scopedLabels:{view:"Sheet Tabs"}}),new pt("workbookViewToggleShowStatusBar",r,{label:"View Status Bar",description:"Show or hide the status bar.",scopedLabels:{view:"Status Bar"}}),new pt("workbookViewToggleShowHorizontalScrollBar",r,{label:"View Horizontal Scrollbar",description:"Show or hide the horizontal scrollbar.",scopedLabels:{view:"Horizontal Scrollbar"}}),new pt("workbookViewToggleShowVerticalScrollBar",r,{label:"View Vertical Scrollbar",description:"Show or hide the vertical scrollbar.",scopedLabels:{view:"Vertical Scrollbar"}}),new Me("hideSheet",r,{label:"Hide Sheet",scopedLabels:{sheet:"Hide"},description:"Hide the sheet from appearing in the tabs. This keeps the data but de-clutters the tabs."}),new Me("deleteSheet",r,{label:"Delete Sheet",scopedLabels:{sheet:"Delete"},description:"Delete the sheet and all the data."}),new Me("addSheet",r,{label:"Insert Sheet",scopedLabels:{sheet:"Insert"},description:"Insert sheet before the current sheet.",shortcut:[{key:"F11",modifiers:[je.Shift]},{key:"F1",modifiers:[je.Alt,je.Shift]}]}),new Me("duplicateSheet",r,{label:"Duplicate Sheet",description:"Duplicate the current sheet.",scopedLabels:{sheet:"Duplicate"}}),new Me("nextSheet",r,{label:"Next Sheet",scopedLabels:{sheet:"Next"},description:"Activate the next sheet.",shortcut:[{key:"PageDown",modifiers:[je.Ctrl]}]}),new Me("previousSheet",r,{label:"Previous Sheet",scopedLabels:{sheet:"Previous"},description:"Activate the previous sheet.",shortcut:[{key:"PageUp",modifiers:[je.Ctrl]}]}),new Me("selectNextSheet",r,{label:"Select Next Sheet",scopedLabels:{sheet:"Select Next"},description:"Select the next sheet.",shortcut:[{key:"PageDown",modifiers:[je.Ctrl,je.Shift]}]}),new Me("selectPreviousSheet",r,{label:"Select Previous Sheet",scopedLabels:{sheet:"Select Previous"},description:"Select the previous sheet.",shortcut:[{key:"PageUp",modifiers:[je.Ctrl,je.Shift]}]}),new Me("selectTheme",r,{label:"Theme",description:"Select a theme that coveys a style suitable for your data."}),new Me("selectNamed",r,{label:S=>S?.getName()??"Select Named Item",scopedLabels:{namedItem:S=>S?.getName()??"Select"},description:"Select the item."}),new Me("addNamedReference",r,{label:"Define Named Reference",scopedLabels:{namedItem:"Define Name…"},description:"Add a new named reference. Names can be used as a substitute for cell references."}),new Me("editNamedReference",r,{label:"Edit Named Reference…",scopedLabels:{namedItem:"Edit…"},description:"Add a new named reference. Names can be used as a substitute for cell references."}),new Me("deleteNamedReference",r,{label:"Delete Named Reference",scopedLabels:{namedItem:"Delete"},description:"Remove the named reference."}),new pt("activeNameBox",r,{label:"Activate Name Box",description:"Move the focus to the name box.",shortcut:{key:"F3",modifiers:[je.Alt]}}),new pt("createNamedReferenceFromSelection",r,{label:"Create from Selection",description:"Automatically generate names from the selected cells.",shortcut:{key:"F3",modifiers:[je.Ctrl,je.Shift]}}),new pt("activeNameManager",r,{label:"Activate Name Manager",description:`Create, edit, delete, and find all the names used in the workbook.
86
-
87
- Names can be used as a substitute for cell references.`,shortcut:{key:"F3",modifiers:[je.Ctrl]}}),new Me("fullScreenToggle",r,{label:"FullScreen",description:"Toggle showing the workbook using the full screen.",shortcut:{key:"F11"}}),new Me("showScriptEditor",r,{label:"Scripts",scopedLabels:{scripts:"Script Editor…"},description:"Show the script editor.",shortcut:[{key:"F11",modifiers:[je.Alt]}]},function(S=!0){m?.()}),new Me("executeScript",r,{label:"Run Script",description:"Run the selected or last executed script.",shortcut:{key:"F8"}}),new Me("executeSelectedScript",r,{label:"Run Script",description:"Run the selected script.",shortcut:{key:"F8"}}),new Me("saveScripts",r,{label:"Save Script",description:"Save the current scripts."}),new Me("maximumWorkbookToggle",r,{label:"Maximize",description:"Toggle showing the workbook maximized.",shortcut:{key:"F10",modifiers:[je.Ctrl]}}),new Me("spellCheck",r,{label:"Spell Check",description:"Check the workbook for spelling mistakes.",shortcut:{key:"F7"}}),new Me("calculateAll",r,{label:"Calculate Now",description:"Recalculate all formulas.",shortcut:{key:"F9"}}),new pt("calculate",r,{label:"Calculate Sheet",description:"Recalculate the formulas on the current sheet.",shortcut:{key:"=",modifiers:[je.Ctrl]}}),new pt("closeWorkbook",r,{label:"Close Workbook",description:"Close the workbook.",shortcut:{key:"W",modifiers:[je.Ctrl]}}),new pt("newWorkbook",r,{label:"New Workbook",description:"Create a new workbook in another tab.",shortcut:{key:"N",modifiers:[je.Ctrl]}})],[]),y=s.useMemo(()=>{let S=null;return S=i?i.createChildGroup(r,"workbook",!1):new vi(r,"workbook"),S.addCommands(x,!0),S},[i,x]),v=mr(),b=s.useRef(null),C=me(()=>{let S,D=null;const E=y.getCommand("executeScript");if(E.update({disabled:!1,context:{getScripts:()=>t.getScripts()}}),!E)return;const R=y.getCommand("executeSelectedScript");if(!R)return;const A={saveSource:async L=>{let P=null,z=null;const U=t.getScripts();try{L&&(z=await o?.showBusy?.("Saving Scripts..."),P=await U.createModule({source:L})),U.addModule("scripts",P,{replace:!0}),z?.()}catch(O){z?.(),console.warn("Unable to compile",O),o?.showError?.(O)}return P},addContainerListener:L=>(k.current=L,()=>{k.current=null}),setSelectedFunction:L=>{S=L??b.current??null,Promise.resolve(S).then(P=>{R.update({disabled:P===null})})},quickInsertFunction:L=>{const P=`=${L.toUpperCase()}(`,z={text:P+")",editMode:!0,initialSelection:{start:P.length,end:P.length+0}};v.setMode(U=>U?.key==="edit"?{...U,args:{...U.args}}:{key:"edit",args:{stateAndCoords:null,start:z}})},getSelectedFunction:()=>S,setEditor:L=>{D=L??null,y.getCommand("showScriptEditor")?.update({state:L!==null})},getEditor:()=>D,getRanges:L=>{try{return t.getRanges(L)}catch{}return null},getScripts:()=>t.getScripts(),isReadonly:()=>t.getProtection().isStructureAllowed()===!1};R.update({context:A})},[y,t,n,o]),k=s.useRef(null);Ht(t,{onBeforeSave:async()=>{await k.current?.onBeforeSave()},onProtectionChange:()=>{k.current?.onReadonlyChange()},onLoad:()=>{(async()=>(await t.getCalculation().start(),t.getScripts().start(),k.current?.onScriptChange()))()}}),Ht(t,{onSheetsChange:S=>{h(S.getSheets().search())},onViewChange(S){f(S?.getSelectedSheet())},onProtectionChange:S=>{const D={disabled:!S.getProtection().isStructureAllowed()};y.getCommand("hideSheet").update(D),y.getCommand("deleteSheet").update(D),y.getCommand("addSheet").update(D),y.getCommand("duplicateSheet").update(D)},onScriptsChange:S=>{C()}});const{isFullscreenAvailable:_,isFullscreenEnabled:I,toggleFullscreen:M}=function(S={}){const{target:D,onChange:E,onError:R,requestFullScreenOptions:A}=S,[L,P]=s.useState(!1),[z,U]=s.useState(null),[O,q]=s.useState(!1),X=s.useCallback(()=>kr.requestFullscreen(D?.current||null,A),[D,A]),re=s.useCallback(()=>kr.exitFullscreen(),[]),$=s.useCallback(()=>kr.fullscreenElement?re():X(),[X,re]),W=s.useCallback(Z=>{const G=kr.fullscreenElement;U(G),q(!!G),E?.(Z)},[E]),B=s.useCallback(Z=>{const G=kr.fullscreenElement;U(G),q(!!G),R?.(Z)},[R]);return s.useEffect(()=>{P(kr.fullscreenEnabled)},[]),s.useEffect(()=>(kr.on("change",W),kr.on("error",B),()=>{kr.off("change",W),kr.off("error",B)}),[W,B]),{isFullscreenAvailable:L,fullscreenElement:z,isFullscreenEnabled:O,enableFullscreen:X,disableFullscreen:re,toggleFullscreen:$}}({target:{current:n??document.body}}),F=x2();s.useEffect(()=>{y.getCommand("selectTheme").update({state:()=>t.getTheme(),context:()=>({theme:t.getTheme(),themes:F,darkMode:l})})},[t?.getTheme(),l]);const j=me(async function(S,D){let E=null;const R=t.getScripts();if(S?.declaration||S?.functionName){const A=S.declaration?S.declaration.getName():S.functionName;R.searchFunction({name:A}).length>0&&(E=A)}if(E)try{await R.executeMacro(E),b.current=Promise.resolve({source:null,name:E})}catch(A){return void o?.showError?.(A)}},[t,o]);s.useEffect(()=>{y.getCommand("newCellStyle").updateCallback(S=>{o?.showInputOptions?.({initialValue:(()=>{let D=0;for(;;){D++;const E=`Style ${D}`;try{return t.getStyles().validateStyleName(E,!0),E}catch{}}})(),title:y.getCommand("newCellStyle")?.label("cellStyle"),description:"Enter a name for the new cell style.",inputLabel:"Style Name",inputProps:{style:{minWidth:"300px"}},options:["Ok","Cancel"],defaultOption:"Ok",onValidateInputOption:async(D,E)=>{let R=null;try{t.getStyles().validateStyleName(D,!1)}catch(P){R=P.message}let A=t.getStyles().getNamed(D),L=R;return!L&&A&&(L=`Update style '${A.getName()}'.`),{valid:R===null,message:L}}}).then(({input:D,option:E})=>{const R=t.getSelectedSheet().getSelectedRange();if(E!=="Ok")return;const A=t.getStyles().setNamed({name:D,style:R.getCell().getStyle()});R.updateStyle({named:A.getName()})})}),y.getCommand("deleteCellStyle").updateCallback(S=>{S.delete()}),y.getCommand("modifyCellStyle").updateCallback(({named:S})=>{const D=t.getSelectedSheet().getSelectedRange();t.getStyles().setNamed({name:S.getName(),style:D.getCell().getStyle()})}),y.getCommand("hideSheet").updateCallback(S=>{t.getSheetAt(S).setVisibility(N.ISheet.Visibility.Hidden)}),y.getCommand("deleteSheet").updateCallback(async S=>{t.getSheetAt(S??t.getSelectedSheetIndex())?.delete()}),y.getCommand("addSheet").updateCallback(S=>{t.getSheets().add({index:S,autoSelect:!0})}),y.getCommand("duplicateSheet").updateCallback(async S=>{(await t.getSheetAt(S??t.getSelectedSheetIndex())?.duplicate())?.select()}),y.getCommand("nextSheet").updateCallback(S=>{t.getNextSheet(S??t.getSelectedSheetIndex()).select()}),y.getCommand("previousSheet").updateCallback(S=>{t.getPreviousSheet(S??t.getSelectedSheetIndex()).select()}),y.getCommand("selectNextSheet").updateCallback(S=>{t.getNextSheet(S??t.getSelectedSheetIndex()).select()}),y.getCommand("selectPreviousSheet").updateCallback(S=>{t.getPreviousSheet(S??t.getSelectedSheetIndex()).select()}),y.getCommand("selectTheme").updateCallback(S=>{t.setTheme(S)}),y.getCommand("calculateAll").updateCallback(()=>{t.getSelectedSheet().getEntireRange().calculate(!0)}),y.getCommand("calculate").updateCallback(()=>{t.getSelectedSheet().getEntireRange().calculate(!0)}),y.getCommand("closeWorkbook").updateCallback(async()=>{await o?.showOptions({title:"Confirm",description:"This will close the current workbook tab. Do you want to continue?",options:["Close","Cancel"],defaultOption:"Close"})==="Close"&&window.close()}),y.getCommand("newWorkbook").updateCallback(()=>{g?.()}),y.getCommand("executeScript").updateCallback(j),y.getCommand("executeSelectedScript").updateCallback(j)},[t,o]);const T=me(async S=>{let D=0,E=null,R="Find & Replace";S?.replace&&!S?.replaceOptions?.maxCount&&(R="Replace All");const A=await o?.showBusy?.(R);try{const L=S?.scope??"sheet";let P=null;const z=t.getSelectedSheet(),U={from:z.getSelectedCell(),...S.findOptions};if(P=L==="sheet"?t.getSelectedSheet().find(S.findText,U):t.find(S.findText,U),S.replace){const O=t.replace(P,S.replaceText,S.replaceOptions);D=O.count,S.replaceOptions.maxCount&&(E=O.last)}else{let O=P.next();O.done||(D++,E=O.value)}E?.select({autoFocus:!1}),A?.(),!S.replaceOptions.maxCount&&D>1&&o?.showMessage?.(`We replaced ${D} cells.`)}catch(L){A?.(),o?.showError?.(L)}return D},[t,n]),w=me(S=>{const D={value:S,context:{selection:()=>{const E=t.getSelectedRanges(),R=[];for(let A=0;A<E.getCount();A++){const L=E.at(A).getFixed(!0).getCoords();R.push(L)}return t.getRanges(R)},getNames:()=>t.getNames()},onUpdate:async E=>{try{await E.select()}catch(R){o?.showMessage?.(R.message,{type:jr.Error})}}};return o.showWindow?.("namedDetails",D)},[o,t,n]);return s.useEffect(()=>{const S=(D=!1)=>{const E=t.getSelectedCell(),R={onFindOrReplace:T,onKeyDown:A=>{y.findCommandByEvent(A)!==y.getCommand("find")&&y.findCommandByEvent(A)!==y.getCommand("findReplace")||A.preventDefault()},findOptions:{},findText:E.toTextUnformatted(!0)};R.replace=D,o.showWindow?.("find",R,{disableAutoDestroy:!0})};y.getCommand("find")?.update({disabled:!o?.showWindow}).updateCallback(()=>{S()}),y.getCommand("findReplace")?.update({disabled:!o?.showWindow}).updateCallback(()=>{S(!0)}),y.getCommand("goto")?.update({disabled:!o}).updateCallback(()=>{const D={onInputOption:async E=>{try{await t.getRanges(E).select()}catch(R){o?.showMessage?.(R.message,{type:jr.Error})}},onKeyDown:E=>{y.findCommandByEvent(E)===y.getCommand("goto")&&E.preventDefault()},title:y.getCommand("goto")?.label(),inputLabel:"Location",options:["Go To"]};o?.showInputOptions?.(D)}),y.getCommand("selectNamed")?.update({disabled:!o}).updateCallback(async D=>{if(D)try{await D.select()}catch(E){o?.showError?.(E)}}),y.getCommand("addNamedReference")?.updateCallback(async function(D){w(null)}),y.getCommand("editNamedReference")?.updateCallback(async function(D){w(D)}),y.getCommand("deleteNamedReference")?.updateCallback(async function(D){D?.delete?.()}),y.getCommand("activeNameBox")?.updateCallback(async function(){n?.getFormulaBarElement()?.getNamedCollectionEditorElement()?.focus()})},[n,t,o]),Ht(t?.getView(),{onViewChange:S=>{y.getCommand("workbookViewToggleShowFormulaBar").update({state:S.isShowFormulaBar()}).updateCallback(()=>{S.setShowFormulaBar(!S.isShowFormulaBar())}),y.getCommand("workbookViewToggleShowTabs").update({state:S.isShowTabs()}).updateCallback(()=>{S.setShowTabs(!S.isShowTabs())}),y.getCommand("workbookViewToggleShowStatusBar").update({state:S.isShowStatusBar()}).updateCallback(()=>{S.setShowStatusBar(!S.isShowStatusBar())}),y.getCommand("workbookViewToggleShowHorizontalScrollBar").update({state:S.isShowHorizontalScrollbar()}).updateCallback(()=>{S.setShowHorizontalScrollbar(!S.isShowHorizontalScrollbar())}),y.getCommand("workbookViewToggleShowVerticalScrollBar").update({state:S.isShowVerticalScrollbar()}).updateCallback(()=>{S.setShowVerticalScrollbar(!S.isShowVerticalScrollbar())})}}),s.useEffect(()=>{y.getCommand("fullScreenToggle").update({state:I,disabled:!_}).updateCallback(()=>{M()})},[I,_]),s.useEffect(()=>{const S=t.getProtection().isStructureAllowed();y.getCommand("hideSheet").update({disabled:p.length<=1||!S}),y.getCommand("deleteSheet").update({disabled:p.length<=1||!S})},[p,u]),y},nf=()=>{window.open(window.origin.toString(),"sheetxl-"+N.CommonUtils.uuidV4(),"popup=true")},of=s.memo(s.forwardRef((e,t)=>{const{movable:n,commands:o,disabled:r,sx:i,floatReference:l,...d}=e;Ht(n,{onAnyChange(g){}});const c=s.useMemo(()=>({}),[]),u=s.useMemo(()=>({commandHook:{beforeExecute:(g,x)=>l.closeAll(),onExecute(){},onError(){console.log("onError")}},disabled:r,parentFloat:l}),[r,l]),f=s.useMemo(()=>({variant:zt.Menuitem,...c,...u}),[c,u]),p=s.useMemo(()=>({commands:o,variant:zt.Menuitem,parentFloat:l,...u}),[o,u,l]),h=g=>{switch(g?.key()){case"moveToFront":return ve(a.jsx(hy,{}));case"moveForward":return ve(a.jsx(py,{}));case"moveToBack":return ve(a.jsx(uy,{}));case"moveBackward":return ve(a.jsx(fy,{}));case"toggleLockAspectRatio":return ve(a.jsx(A5,{}));case"formatDrawAlignLeft":return ve(a.jsx(z5,{}));case"formatDrawAlignCenter":return ve(a.jsx(my,{}));case"formatDrawAlignRight":return ve(a.jsx(gy,{}));case"formatDrawAlignTop":return ve(a.jsx(xy,{}));case"formatDrawAlignMiddle":return ve(a.jsx(yy,{}));case"formatDrawAlignBottom":return ve(a.jsx(by,{}));case"formatDrawDistributeHorz":return ve(a.jsx(vy,{}));case"formatDrawDistributeVert":return ve(a.jsx(wy,{}));case"formatAnchorTypeTwoCell":case"formatAnchorTypeOneCell":case"formatAnchorTypeAbsolute":return ve(a.jsx(F5,{}));default:return null}},m=a.jsxs(a.Fragment,{children:[a.jsx(t1,{command:o.getCommand("copy"),...f,variant:zt.Menuitem}),[],a.jsx(Et,{orientation:"horizontal"}),a.jsx(Tr,{...p,popupCommandKeys:["moveToFront","moveForward"],quickCommand:"moveToFront",icon:h}),a.jsx(Tr,{...p,popupCommandKeys:["moveToBack","moveBackward"],quickCommand:"moveToBack",icon:h}),a.jsx(Et,{orientation:"horizontal"}),a.jsx(Re,{...f,command:o.getCommand("toggleLockAspectRatio"),icon:ve(a.jsx(A5,{}))}),a.jsx(Et,{orientation:"horizontal"}),a.jsx(Tr,{...p,popupCommandKeys:["formatDrawAlignLeft","formatDrawAlignCenter","formatDrawAlignRight",null,"formatDrawAlignTop","formatDrawAlignMiddle","formatDrawAlignBottom",null,"formatDrawDistributeHorz","formatDrawDistributeVert"],label:"Align",icon:g=>h(g)||ve(a.jsx(z5,{})),tooltip:"Quickly change the placement of your drawings."}),a.jsx(Et,{orientation:"horizontal"}),a.jsx(Tr,{...p,popupCommandKeys:["formatAnchorTypeTwoCell","formatAnchorTypeOneCell","formatAnchorTypeAbsolute"],label:"Sizing",icon:g=>h(g)||ve(a.jsx(F5,{})),tooltip:"Determine how the drawing size will adjust as the cell sizes adjust."}),[]]});return a.jsx(V.Box,{ref:t,sx:{paddingTop:"4px",paddingBottom:"4px",...i},...d,children:m})}));of.displayName="MovableContextMenu";const kE="_sheetxl-theme_4opcr_2",EE="_sheetxl-workbook_1j3lu_5",_E={fireOnModelChange:!1},dc={flex:"1 1 100%",display:"flex"},TE=e=>a.jsx(j2,{...e}),jE=e=>a.jsx(N2,{...e}),ME=e=>a.jsx(of,{...e}),RE=e=>a.jsx(V2,{...e}),IE=e=>a.jsx(D2,{...e}),DE=(e,t)=>a.jsx(I2,{ref:t,...e}),LE=e=>a.jsx(wi,{...e}),OE=(e,t)=>a.jsx(Mp,{ref:t,...e}),rf=s.memo(s.forwardRef((e,t)=>{const{workbook:n,createWorkbookOptions:o,onNewWorkbook:r,onElementLoad:i,notifier:l,autoFocus:d=!1,sx:c,style:u,className:f,onFocus:p,onBlur:h,onKeyDown:m,onRepeatCommandChange:g,commands:x,showFormulaBar:y,formulaBarProps:v,renderFormulaBar:b=DE,showTabs:C,tabsProps:k,renderTabs:_=jE,showStatusBar:I,statusBarProps:M,renderStatusBar:F=TE,toolbarProps:j,renderToolbar:T=ef,contextMenuSx:w,renderContextMenu:S=RE,renderFilterMenu:D=IE,renderMovableMenu:E=ME,renderLoadingPanel:R=LE,loadingPanelProps:A,sheetProps:L,renderSheet:P=OE,showHorizontalScrollbar:z,showVerticalScrollbar:U,gridTheme:O,headersTheme:q,forceLightImages:X,...re}=e,$=xr(),W=x2(),B=s.useMemo(()=>{const _e={theme:W.getDefaultTheme(),...o};return n??new N.Workbook(_e)},[n]),Z=s.useRef(null),[G,ie]=s.useState(!1),ee=s.useRef(null),le=s.useMemo(()=>a.jsx(V.Box,{className:"sheetxl-viewport",sx:{width:"100%",height:"100%",boxSizing:"border-box",position:"absolute",pointerEvents:"none !important","& > :first-of-type":{position:"relative"}},ref:ee}),[]),[ue,de]=s.useState(!1),[oe,fe]=s.useState(!1),Te=s.useCallback(()=>{de(!0)},[]),Le=s.useRef(null),ce=so(t,()=>({isWorkbookElement:()=>!0,getWorkbook:()=>B,getSheetElement:()=>Z.current,getViewportElement:()=>ee.current,getFormulaBarElement:()=>Le.current,focus(){Z&&Z.current&&Z.current.focus()}}),[B]),he=s.useRef(null);s.useLayoutEffect(()=>{ue&&ce.current&&(fe(!0),he.current!==i&&(i?.({source:ce.current}),he.current=i))},[ue,ce.current]),ce.current;const we=s.useCallback(_e=>(Z.current?.submitEdit(),!0),[]),Y=s.useCallback(()=>{requestAnimationFrame(()=>{Z?.current?.focus()})},[]),[ze,ht]=s.useState(B?.getSelectedSheet()),[ut,ke]=s.useState(B?.getProtection());Ht(B,{onSheetsChange:_e=>{ht(_e?.getSelectedSheet())},onViewChange(_e){ht(_e?.getSelectedSheet())},onProtectionChange:_e=>{ke(_e?.getProtection())}}),Ht(B,{onRequestSelect:async(_e,ct)=>new Promise(yt=>{Z.current.getSheet()!==ct?Z.current.getGridElement()?.onViewChangeOnce(()=>{Z.current.getSheet()!==ct&&yt(!1),yt(!0)}):yt(!0)})},_E);const[ot,dt]=s.useReducer(_e=>_e+1,0),Fe=B?.getView();Ht(Fe,{onViewChange:_e=>{dt()}});const Je=O??$,Ge=s.useMemo(()=>wd($,Je),[$,Je]),se=q??$,We=s.useMemo(()=>wd($,se),[$,se]),[be,Se]=s.useState(null);s.useCallback(()=>{Z.current.focus()},[]);const[H,te]=s.useState(!1),ne=s.useRef(null),J=tf({workbook:B,workbookElement:ce.current,commandTarget:()=>Z.current,notifier:l,commands:x,darkMode:Ge.body.darkMode,onNewWorkbook:r,onShowSidebar:()=>{H?ne.current?.focus():te(!0)}}),ae=s.useRef(null),[Q,pe]=s.useState(!1),[ge,Ee]=s.useState(null),[Be,Oe]=s.useState(u1),[Ie,Ze]=s.useState(N.TypesUtils.EmptyBounds),Ne=()=>{pe(!1),Ee(null)},qe=(_e,ct,yt=u1)=>{Ze(_e),Oe(yt),Ee(ct),ae.current!==null&&ae.current.update(),pe(!0)},[lt,wt]=s.useState("sheet"),Xe=C??Fe?.isShowTabs(),St=z??Fe?.isShowHorizontalScrollbar(),Ct=y??Fe?.isShowFormulaBar(),it=I??Fe?.isShowStatusBar(),Ot=U??Fe?.isShowVerticalScrollbar(),sn=Ge?.header?.edgeStrokeFill||"rgb(171,171,171)",yn=s.useMemo(()=>it?F({sheet:ze,gridStyle:Ge,...M}):null,[F,M,it,Ge,ze]),In=s.useMemo(()=>T({commands:J,workbook:ce.current,...j}),[J,T,j,$]),[Ln,{width:At}]=Bl(),jt=At===0||At>560,un=s.useMemo(()=>{if(!Xe)return null;let _e=_({background:Ge.body.fill,borderWidth:1,borderColor:sn,gridTheme:Je,gridStyle:Ge,onBeforeUserChange:we,onUserChange:Y,workbook:B,commands:J,sheetTabProps:{},notifier:l,...k});return jt||(_e=a.jsx("div",{style:{flex:"none",display:"flex"},children:_e})),_e},[_,k,l,$,B,Je,jt,J,Xe]),vn=s.useCallback(_e=>{const ct=N.CommonUtils.getOS()===N.CommonUtils.OSType.Firefox;let yt=null,Kt=null,Wt=null;if(St&&(Kt=a.jsx("div",{style:{display:"flex",flex:"1 1 100%",borderTop:`solid ${sn} 1px`,maxWidth:"100%"},children:a.jsx(Es,{style:{alignItems:"center",borderTop:(ct?6:3)+"px solid transparent",borderBottom:(jt?6:3)+"px solid transparent",borderLeft:(ct?3:0)+"px solid transparent",borderRight:(ct?3:0)+"px solid transparent"},..._e,endGap:700,sheet:ze,showCustomScrollButtons:!ct,onShowTooltip:ft=>{qe({x:ft.anchor.x,y:ft.anchor.y,width:0,height:0},ft.display,ft.placement)},onCloseTooltip:()=>Ne()})})),Xe&&jt&&(Wt=un),Xe&&jt&&!St&&(Wt=a.jsxs(V.Box,{sx:{display:"flex",flex:"1",position:"relative",alignContent:"center"},children:[Wt,a.jsx(V.Box,{sx:{borderTop:`solid ${sn} 1px`,flex:"1"}})]})),Wt&&St)yt=a.jsx(vc,{position:B.getView().getTabRatio()/10+"%",onPositionChange:({percent:ft})=>{B.getView().setTabRatio(Math.round(10*ft))},minBefore:"200px",minAfter:"180px",resizerProps:{style:{minWidth:"11px",backgroundImage:`url("data:image/svg+xml,%3Csvg width='6.4' height='12' viewBox='0 0 9.6 16' version='1.1' fill='${$.palette.text.icon??$.palette.action.active}' xmlns='http://www.w3.org/2000/svg' xmlns:svg='http://www.w3.org/2000/svg'%3E%3Cpath d='M 9.60008,14.40009 C 9.60008,15.28374 8.88368,16 8.00003,16 7.11639,16 6.40012,15.28374 6.40012,14.40009 c 0,-0.88365 0.71627,-1.60005 1.59991,-1.60005 0.88365,0 1.60005,0.7164 1.60005,1.60005 m 0,-6.40012 c 0,0.88364 -0.7164,1.60004 -1.60005,1.60004 -0.88364,0 -1.59991,-0.7164 -1.59991,-1.60004 0,-0.88365 0.71627,-1.60005 1.59991,-1.60005 0.88365,0 1.60005,0.7164 1.60005,1.60005 m 0,-6.40006 c 0,0.88365 -0.7164,1.60005 -1.60005,1.60005 -0.88364,0 -1.59991,-0.7164 -1.59991,-1.60005 C 6.40012,0.71626 7.11639,0 8.00003,0 8.88368,0 9.60008,0.71626 9.60008,1.59991 M 3.19996,14.40009 C 3.19996,15.28374 2.48369,16 1.60005,16 0.7164,16 0,15.28374 0,14.40009 c 0,-0.88365 0.7164,-1.60005 1.60005,-1.60005 0.88364,0 1.59991,0.7164 1.59991,1.60005 m 0,-6.40012 c 0,0.88364 -0.71627,1.60004 -1.59991,1.60004 C 0.7164,9.60001 0,8.88361 0,7.99997 0,7.11632 0.7164,6.39992 1.60005,6.39992 c 0.88364,0 1.59991,0.7164 1.59991,1.60005 m 0,-6.40006 c 0,0.88365 -0.71627,1.60005 -1.59991,1.60005 C 0.7164,3.19996 0,2.48356 0,1.59991 0,0.71626 0.7164,0 1.60005,0 2.48369,0 3.19996,0.71626 3.19996,1.59991' /%3E%3C/svg%3E%0A")`,backgroundRepeat:"no-repeat",backgroundPosition:"center",borderTop:`solid ${sn} 1px`,borderBottom:"solid 3px transparent"}},elementBefore:Wt,elementAfter:Kt});else if(St)yt=Kt;else{if(!Wt)return a.jsx(V.Box,{sx:{display:"flex",flex:"1",position:"relative",alignContent:"center",height:"1px",borderTop:it?null:`solid ${sn} 1px`}});yt=Wt}return a.jsx(V.Box,{sx:{display:"flex",flex:"1",position:"relative",alignContent:"center"},children:yt})},[ze,we,B,Ge,Je,J,Xe,St,it,jt]),[rn,ln]=s.useState(null),Jt=s.useMemo(()=>({placement:"right-start",...rn?.popperProps}),[rn?.popperProps]),{reference:ro,component:Io}=Mr({label:"contextMenu",popperProps:Jt,anchor:rn?.anchor??{getBoundingClientRect:()=>new DOMRect(rn?.clientX||0,rn?.clientY||0)},onClose:()=>ln(null),createPopupPanel:rn?.createPopupPanel});s.useEffect(()=>{rn?ro.open(0):ro.close(0)},[rn]);const Go=me((_e,ct)=>{if(_e?.isDefaultPrevented())return!0;_e.preventDefault(),rn&&rn.anchor===_e.currentTarget?ln(null):ln({anchor:_e.currentTarget,popperProps:{offsets:[-4,2]},createPopupPanel:yt=>{const{floatReference:Kt}=yt;return D({filter:ct,commands:J,floatReference:Kt,sx:{...w}})}})},[D,w,J,B,rn]),wo=me(_e=>{if(_e.originalEvent?.isDefaultPrevented())return!0;_e.originalEvent?.preventDefault(),ln({clientX:_e.clientX,clientY:_e.clientY,createPopupPanel:ct=>{const{floatReference:yt}=ct;return S({commands:J,workbook:B,floatReference:yt,sx:{...w}})}})},[S,w,J,B]),cr=me((_e,ct)=>{if(_e?.isDefaultPrevented())return!0;_e.preventDefault(),ln({clientX:_e.clientX,clientY:_e.clientY,createPopupPanel:yt=>{const{floatReference:Kt}=yt;return E({movable:ct,commands:J,floatReference:Kt,sx:{...w}})}})},[E,w,J]);s.useMemo(()=>{const _e=[new pt("openContextMenu",()=>Z.current,{label:"Context Menu",description:"Open the context menu.",shortcut:[{key:"F10",modifiers:[je.Shift]},{key:"ContextMenu"}]})];J.addCommands(_e,!0)},[J]),s.useEffect(()=>{J.getCommand("openContextMenu").updateCallback(()=>{const _e=ze.getSelection().getCoords().cell;Z.current?.getGridElement()?.scrollCellCoordsIntoView(_e).then(ct=>{requestAnimationFrame(()=>{const yt=ze.getView().getZoomScale()/100,Kt=ze.getColumnHeaders().findOffset(_e.colIndex+1)*yt,Wt=ze.getRowHeaders().findOffset(_e.rowIndex+1)*yt,ft=Z.current?.getGridElement()?.getRelativePointFromClient(0,0)||{x:0,y:0};wo({clientX:Kt-ft.x-ct.left+6,clientY:Wt-ft.y-ct.top+6})})})})},[ze]);const So=me(_e=>{J?.dispatchToFocusedCommand(_e)},[J]),Ko=me(()=>{ce.current},[B,ce.current]),yr=s.useCallback(()=>{wt("sheet")},[]),Xo=s.useCallback(()=>{wt("formulaBar")},[]),uo=me(_e=>{const ct=N.CommonUtils.getOS()===N.CommonUtils.OSType.Firefox;return a.jsx(Es,{style:{borderLeft:"3px solid transparent",borderRight:"0px solid transparent",borderTop:(ct?3:0)+"px solid transparent",borderBottom:(ct?3:0)+"px solid transparent",width:ct?"13px":void 0},..._e,sheet:ze,endGap:700,showCustomScrollButtons:!ct,onShowTooltip:yt=>{qe(yt.anchor,yt.display,om)},onCloseTooltip:()=>Ne()})},[ze]);s.useEffect(()=>{d&&Z&&Z.current&&Z.current.focus()},[]);const[Pe,Ke]=s.useState(null),Ye=s.useCallback(_e=>{J?.getCommand("openWorkbook")&&(_e.type==="dragenter"||_e.type==="dragover"?_e.dataTransfer?.types.includes("Files")?_e.dataTransfer.files[0]?.type?.startsWith("image/")||_e.dataTransfer.items[0]?.type?.startsWith("image/")||_e.dataTransfer.types.length===1&&Ke("Drop to open"):(_e.dataTransfer?.types.includes("text/html")||_e.dataTransfer?.types.includes("text/plain"),_e.dataTransfer.effectAllowed="none",_e.dataTransfer.dropEffect="none"):_e.type==="dragleave"&&Ke(null),_e.preventDefault())},[J]),Ue=me(_e=>{if(J?.getCommand("openWorkbook")&&(_e.preventDefault(),_e.stopPropagation(),Ke(null),_e.dataTransfer.files&&_e.dataTransfer.files.length>0)){const ct=_e.dataTransfer.files[0];if(!ct)return;if(ct?.type?.startsWith("image/")){const yt=Z.current?.getGridElement().getViewFromClient(_e.clientX,_e.clientY);if(!yt)return;const Kt=yt.getRelativePointFromClient(_e.clientX,_e.clientY),Wt=yt.toAbsoluteBounds({...Kt,width:0,height:0}),ft=yt.getCellCoordsFromClient(_e.clientX,_e.clientY);if(!ft)return;J?.getCommand("insertImageFromFile")?.execute({file:ct,options:{bounds:{x:Wt.x,y:Wt.y}},goto:{range:{...ft}}})}else J?.getCommand("openWorkbook")?.execute(ct)}},[J,Pe]),Qe=s.useMemo(()=>Pe?a.jsx(V.Box,{sx:{position:"absolute",width:"100%",height:"100%",boxSizing:"border-box",pointerEvents:"none",display:"flex",justifyContent:"center",alignItems:"center",background:_e=>_e.palette.divider,color:_e=>_e.palette.primary.dark},children:a.jsx(V.Typography,{variant:"h4",children:Pe})}):null,[Pe]),mt=s.useRef(null),xt=s.useMemo(()=>a.jsx(vd,{in:!oe,nodeRef:mt,timeout:500,classNames:"animating",unmountOnExit:!0,children:R({ref:mt,transitionDelay:"0",transparentBackground:!1,sx:{opacity:oe?0:c?.opacity,pointerEvents:oe?"none":c?.pointerEvents,position:"absolute",left:"0px",top:"0px",width:"100%",height:"100%",...A}})}),[oe,R,A]),gt=s.useMemo(()=>b({sx:{marginTop:_e=>_e.spacing(.25),marginLeft:_e=>_e.spacing(1),marginRight:_e=>_e.spacing(1)},workbook:B,sheetElement:Z.current,gridStyle:Ge,onFocus:Xo,...v,NamedCollectionEditorProps:{restoreFocus:_e=>Z.current.focus(_e),notifier:l,...v?.NamedCollectionEditorProps,commandPopupButtonProps:{commands:J,...v?.NamedCollectionEditorProps?.commandPopupButtonProps}}},Le),[b,v,B,Ge,J,oe]),kt=s.useCallback(_e=>{const{movable:ct,...yt}=_e,Kt={movable:ct,onContextMenuCapture:Vt=>{cr(Vt,ct)},...yt},Wt=ct.getContent().getType();let ft=null;if(Wt==="picture")return a.jsx(Rp,{loadingPanel:a.jsx(wi,{transitionDelay:"100",style:{position:"absolute"},sx:{border:Vt=>`solid 1px ${Vt.palette.action.active}`}}),picture:ct.getContent(),description:ct.getDescription()??ct?.getName(),...Kt});if(Wt==="chart"){const Vt={...Kt,chart:ct.getContent()};return a.jsx(kC,{...Vt})}if(ft=`Float of type '${Wt}'.`,typeof ft=="string"){const Vt={...Kt,description:ft};ft=a.jsx(mC,{...Vt})}return a.jsx("div",{style:{position:"absolute",clipPath:"inset(0px)",display:"flex",alignItems:"stretch",justifyContent:"stretch",pointerEvents:"all"},children:ft},ct.getUUID())},[]),bt=s.useMemo(()=>P({style:dc,onFocus:yr,notifier:l,gridStyle:Ge,headersStyle:We,sheet:ze,commands:J,onSheetContextMenu:wo,onViewportChange:_e=>{Se(_e)},showScrollbars:!1,viewportComponent:le,onRepeatCommandChange:g,onElementLoad:Te,onShowColumnTooltip:_e=>{qe(_e.anchor,_e.display,u1)},onShowRowTooltip:_e=>{qe(_e.anchor,_e.display,bc)},onShowTooltip:_e=>{qe({x:_e.anchor.x,y:_e.anchor.y,width:0,height:0},_e.display,_e.placement)},onCloseTooltip:()=>Ne(),renderMovable:kt,...L,cellRenderProps:{onFilterButtonMouseDown:(_e,ct)=>{L?.cellRenderProps?.onFilterButtonMouseDown(_e,ct),Go(_e,ct)},...L?.cellRenderProps}},Z),[P,J,L,ze,Ge,l,g]),Ut=s.useMemo(()=>{if(!H)return null;const _e=!ut.isStructureAllowed();return a.jsx(z2,{sx:{marginBottom:ct=>ct.spacing(.5),border:ct=>`solid ${_e?ct.palette.action.disabled:st.alpha(ct.palette.divider,.2)} 1px`,borderRadius:ct=>`${ct.shape.borderRadius}px`,overflow:"hidden"},onClose:()=>{te(!1),requestAnimationFrame(()=>{Z.current.focus()})},readOnly:_e,commands:J,ref:ne,scripts:B.getScripts()})},[H,J,B,l,ut]),cn=s.useMemo(()=>{const _e=a.jsx(Ed,{style:{...dc,marginRight:Ut&&jt?"0px":"6px"},viewport:be,touchElement:Z.current?.getGridElement()?.stage,onScrollViewport:ft=>{Z.current?.getGridElement()?.scrollTo(ft)},showHorizontalScrollbar:St||Xe,showVerticalScrollbar:Ot,createHorizontalScrollbar:vn,createVerticalScrollbar:uo,children:bt});let ct=_e;jt||(ct=a.jsxs(a.Fragment,{children:[_e,un]}));let yt=null,Kt=4,Wt=13;return jt?yt="m 3.6261898,11.36243 c 0,0.88365 -0.71627,1.59991 -1.59991,1.59991 -0.8836498,0 -1.60004965,-0.71626 -1.60004965,-1.59991 0,-0.88365 0.71639985,-1.6000508 1.60004965,-1.6000508 0.88364,0 1.59991,0.7164008 1.59991,1.6000508 m 0,-4.881294 c 0,0.88364 -0.71627,1.60004 -1.59991,1.60004 -0.8836498,0 -1.60004965,-0.7164 -1.60004965,-1.60004 0,-0.88365 0.71639985,-1.60005 1.60004965,-1.60005 0.88364,0 1.59991,0.7164 1.59991,1.60005 m 0,-4.881226 c 0,0.88365 -0.71627,1.60005 -1.59991,1.60005 C 1.14263,3.19996 0.42623015,2.48356 0.42623015,1.59991 0.42623015,0.71626 1.14263,0 2.0262798,0 c 0.88364,0 1.59991,0.71626 1.59991,1.59991":(yt="M 1.59991,3.62619 C 0.71626,3.62619 0,2.90992 0,2.02628 0,1.1426301 0.71626,0.42623015 1.59991,0.42623015 c 0.88365,0 1.6000508,0.71639995 1.6000508,1.60004985 0,0.88364 -0.7164008,1.59991 -1.6000508,1.59991 m 4.881294,0 c -0.88364,0 -1.60004,-0.71627 -1.60004,-1.59991 0,-0.8836499 0.7164,-1.60004985 1.60004,-1.60004985 0.88365,0 1.60005,0.71639995 1.60005,1.60004985 0,0.88364 -0.7164,1.59991 -1.60005,1.59991 m 4.881226,0 c -0.88365,0 -1.60005,-0.71627 -1.60005,-1.59991 0,-0.8836499 0.7164,-1.60004985 1.60005,-1.60004985 0.88365,0 1.59991,0.71639995 1.59991,1.60004985 0,0.88364 -0.71626,1.59991 -1.59991,1.59991",Kt=13,Wt=4),a.jsx(vc,{fixedPane:"after",position:"40%",minAfter:jt?"280px":"120px",splitDirection:jt?"row":"column",style:dc,ref:Ln,resizerProps:{className:"styled-resizer",style:{minWidth:jt?"6px":void 0,minHeight:jt?void 0:"6px",maskImage:`url("data:image/svg+xml,%3Csvg width='${Kt}' height='${Wt}' viewBox='0 0 ${Kt} ${Wt}' version='1.1' fill='${$.palette.text.icon??$.palette.action.active}' xmlns='http://www.w3.org/2000/svg' xmlns:svg='http://www.w3.org/2000/svg'%3E%3Cpath d='${yt}' /%3E%3C/svg%3E%0A")`,maskRepeat:"no-repeat",maskPosition:jt?"left center":"top center"}},elementBefore:ct,paneBeforeProps:{style:{flexDirection:"column"}},elementAfter:Ut,paneAfterProps:{style:{marginLeft:jt?"0px":"4px",marginRight:jt?"8px":"4px"}}})},[St,Xe,vn,Ot,be,Ut,bt,un,$,jt]),Gt=s.useMemo(()=>({boxSizing:"border-box",background:_e=>_e.palette.mode!=="dark"?Ge.header.fill:_e.palette.background.paper,"& *":{...Gd($),fontWeight:400},"&.Mui-focusVisible":{},"& .viewport-overlay":{borderRight:`solid ${sn} 1px`},...c}),[c,Ge]);return a.jsxs(V.Paper,{className:Fn("sheetxl-workbook",EE,{"Mui-focusVisible":G},kE,f),sx:Gt,style:u,square:!1,...re,ref:ce,onFocus:_e=>{ie(!0),Ko(),p?.(_e)},onBlur:_e=>{ie(!1),h?.(_e)},onKeyDown:_e=>{So(_e),m?.(_e)},onDragStart:_e=>{if(_e.target.src){const ct=new Image;ct.src=_e.target.src,_e.dataTransfer.setDragImage(ct,1,1)}},onDragEnter:Ye,onDragLeave:Ye,onDragOver:Ye,onDrop:Ue,children:[a.jsxs("div",{className:Fn(T9),style:{flex:"1 1 100%",display:"flex",flexDirection:"column",opacity:oe?void 0:0,"--sxl-app-color-high-contrast":$.palette.primary.main,"--sxl-app-color-primary":$.palette.primary.main,"--sxl-app-color-primary-dark":$.palette.primary.dark,"--sxl-app-color-primary-light":$.palette.primary.light,"--sxl-app-color-info":$.palette.info.main,"--sxl-app-color-info-dark":$.palette.info.dark,"--sxl-app-color-info-light":$.palette.info.light,"--sxl-app-color-secondary":$.palette.secondary.main,"--sxl-app-color-secondary-dark":$.palette.secondary.dark,"--sxl-app-color-secondary-light":$.palette.secondary.light,"--sxl-app-color-success":$.palette.success.main,"--sxl-app-color-success-dark":$.palette.success.dark,"--sxl-app-color-success-light":$.palette.success.light,"--sxl-app-color-warning":$.palette.warning.main,"--sxl-app-color-warning-dark":$.palette.warning.dark,"--sxl-app-color-warning-light":$.palette.warning.light,"--sxl-app-color-error":$.palette.error.main,"--sxl-app-color-error-dark":$.palette.error.dark,"--sxl-app-color-error-light":$.palette.error.light,"--sxl-app-color-text":$.palette.text.primary,"--sxl-app-color-text-secondary":$.palette.text.secondary,"--sxl-app-color-text-disabled":$.palette.text.disabled,"--sxl-app-color-background":$.palette.background.paper,"--sxl-app-color-button-surface":$.palette.grey[600],"--sxl-app-color-shadow":$.palette.action.focus,"--sxl-app-color-grey":$.palette.grey[500],"--sxl-app-filter-dark-invert":Ge.body.darkMode&&!X?"hue-rotate(180deg) invert(1) brightness(95%)":"none","--sxl-app-image-background":Ge.body.darkMode?`linear-gradient(${st.alpha("#fff",pn(5))}, ${st.alpha("#fff",pn(5))})`:void 0},children:[In,Ct?gt:null,a.jsx(V.Box,{sx:{marginBottom:_e=>_e.spacing(.75)}}),cn,yn,a.jsx(Zo,{arrow:!0,disableInteractive:!0,open:Q,title:a.jsx(V.Typography,{variant:"subtitle2",component:"div",children:ge}),placement:Be,TransitionProps:{timeout:{exit:0}},PopperProps:{popperRef:ae,sx:{"& .MuiTooltip-tooltip":{padding:"2px 6px","& .MuiTooltip-arrow":{display:Q?"visible":"none"}}},anchorEl:{getBoundingClientRect:()=>new DOMRect(Ie.x,Ie.y,Ie.width,Ie.height)},modifiers:[{name:"offset",options:{offset:[0,0]}}]},children:a.jsx(V.Box,{})}),Io,Qe]}),xt]})}));rf.displayName="WorkbookElement";const PE=(e=!1,t=!1)=>t?null:{"& input:not(:focus):not(:hover)":{color:n=>n.palette.text.secondary},backgroundColor:n=>st.alpha(n.palette.background.paper,.6),borderRadius:n=>`${n.shape.borderRadius}px`,border:n=>`solid ${e?n.palette.divider:"transparent"} 1px`,"&.Mui-disabled":{border:n=>`solid ${e?n.palette.divider:"transparent"} 1px`},"&:focus-within:not([disabled])":{backgroundColor:n=>n.palette.background.paper},"&:hover:not([disabled])":{border:n=>`solid ${e?n.palette.text?.primary:n.palette.divider} 1px`,backgroundColor:null},"&.Mui-focusVisible":{outline:n=>`solid ${n.palette.primary.main} 1px !important`,border:n=>`1px solid ${n.palette?.primary?.main} !important`}},lf=s.memo(s.forwardRef((e,t)=>{const{sx:n,workbook:o,title:r="",placeHolder:i="Untitled",onTitleChange:l,readOnly:d=!1,hidden:c,...u}=e,[f,p]=s.useState(!1),[h,m]=s.useState(!1),[g,x]=s.useState(r??""),[y,v]=s.useState(""),[b,{width:C}]=Bl(),[k,{width:_}]=Bl(),[I,M]=s.useState(!1),F=s.useRef(null),j=s.useRef(null),T=so(t,()=>({requestWorkbookTitle:(w=null,S)=>{j.current={onAccept:w,requestReason:S?.requestReason},S?.selectAll&&F.current?.select(),F.current?.focus(S)},focus:w=>{F.current?.focus(w)}}),[]);return s.useLayoutEffect(()=>{M(r!==g),v(r),x(r)},[r]),s.useEffect(()=>{I&&C!==0&&Lt.debounce(()=>{M(!1)},300)()},[I,C]),s.useEffect(()=>{m(g&&!v0.isValidWindowsFilename(g))},[g]),c?null:a.jsx(V.Box,{sx:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",opacity:I?"0":"1",transition:I?void 0:"opacity .25s ease-in","& .tooltip-wrapper":{maxWidth:"100%"}},ref:o1([T,k,t]),...u,children:a.jsx(go,{label:j.current?.requestReason??"Workbook Name",children:a.jsxs(V.Box,{className:Fn({"Mui-focusVisible":f}),sx:{visibility:C===0?"hidden":"visible",display:"block",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",paddingLeft:"12px",paddingRight:"12px",marginLeft:"2px",marginRight:"2px",paddingTop:"2px",paddingBottom:"1px",...PE(!0,d),...n},children:[d?a.jsx(V.Typography,{variant:"subtitle1",component:"div",sx:{whiteSpace:"nowrap",fontStyle:g!==y?"italic":void 0,userSelect:"none",textOverflow:"ellipsis",lineHeight:"1.4375em",border:"transparent 1px solid",color:w=>h?w.palette.error.dark:void 0},children:r??i}):a.jsx(V.Input,{sx:{width:`${Math.min(C+3,Math.max(_,T.current?.getBoundingClientRect()?.width))}px`,overflow:"hidden",whiteSpace:"nowrap",fontWeight:"600",maxWidth:"100%",border:"none",padding:"0px",margin:"0px",color:w=>h?w.palette.error.dark:void 0,fontStyle:g!==y?"italic":void 0,"& input":{paddingTop:"0px",paddingBottom:"0px",textOverflow:"ellipsis"}},disableUnderline:!0,fullWidth:!1,multiline:!1,readOnly:d,spellCheck:!1,placeholder:i,onFocus:w=>{p(!0),w.target?.select()},inputProps:{name:"input-workbook-title",autoComplete:"off",ref:F},onBlur:()=>{p(!1),h?x(y):(g!==y&&(l?.(g),g&&j.current?.onAccept?.(g,"blur")),j.current=null)},onChange:w=>{if(w.target.value.length>v0.MAX_WORKBOOK_NAME_SIZE)return w.stopPropagation(),void w.preventDefault();x(w.target.value)},onKeyDown:w=>{(v0.WINDOW_FILENAME_CHAR_RESERVED_REGEX.test(w.key)||w.target?.value.length>v0.MAX_WORKBOOK_NAME_SIZE)&&w.preventDefault(),w.which===Nt.Enter||w.which===Nt.Tab?(h?x(y):(l?.(g),g&&(j.current?.onAccept?.(g,"keydown"),j.current=null)),w.stopPropagation(),w.preventDefault(),o?.focus()):w.which===Nt.Escape&&(g===y?o?.focus():(x(y),setTimeout(()=>{w.target?.select()},0)),j.current=null,w.stopPropagation(),w.preventDefault())},value:g}),a.jsx(V.Box,{ref:b,sx:{position:"absolute",visibility:"hidden",top:"-9999px",fontWeight:"600 !important",whiteSpace:"pre",fontStyle:g!==y?"italic":void 0,fontFamily:w=>w.typography.fontFamily,letterSpacing:"0.00938em"},children:g||i})]})})})}));lf.displayName="WorkbookTitle";const AE=s.lazy(()=>Promise.resolve().then(()=>require("./_JBLryXFRVS5vFVX.cjs")).then(e=>e.EagerStandaloneWorkbook)),af=s.memo(s.forwardRef((e,t)=>{const{sx:n,style:o,className:r,licenseKey:i,...l}=e;return i&&N.LicenseManager.setLicenseKey(i),a.jsx(a.Fragment,{children:a.jsx(AE,{...l,className:r,sx:n,style:o,ref:t})})}));af.displayName="StandaloneWorkbook";const FE=[{key:"SheetXL",description:"SheetXL",mimeType:".sxl",exts:["sxl"],handler:null,isDefault:!0},{key:"CSV",description:"Comma Delimited",mimeType:"text/csv",exts:["csv"],handler:null},{key:"Excel",description:"Excel Workbook",mimeType:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",exts:["xlsx","xls","xlsm"],handler:null}],zE=[{key:"SheetXL",mimeType:"application/vnd.sheetxl.sheet",description:"SheetXL",ext:"sxl",handler:null,isDefault:!0},{key:"CSV",mimeType:"text/csv",description:"Comma Delimited",ext:"csv",handler:null},{key:"Excel",mimeType:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",description:"Excel Workbook",ext:"xlsx",tags:["SheetJS Pro"],handler:null}];class sf{constructor(t=FE,n=zE){this._readFormatType=[],this._writeFormatType=[],this._readFormatType=Object.freeze([...t]),this._writeFormatType=Object.freeze([...n])}getReadFormats(){return this._readFormatType}getWriteFormats(){return this._writeFormatType}getAllReadFormatTypeAsString(){const t=[],n=this._readFormatType;for(let o=0;o<n.length;o++)for(let r=0;r<n[o].exts.length;r++)t.push("."+n[o].exts[r]);return t}async writeFile(t,n,o){if(!n||!t)throw new Error("Workbook model or file name must be provided.");try{return(await Promise.resolve().then(()=>X4)).WorkbookIO.writeFile(t,n,o)}catch(r){throw new Error("Unable to load io library",{cause:r})}}async read(t,n){let o,r;const i=await n?.showBusy?.(`Opening${t.name?` ${t.name}`:""}...`);try{r=await Promise.resolve().then(()=>X4)}catch(l){throw l}try{return await r.WorkbookIO.read({...t,async onStart(l){await t?.onStart?.(l),o=await n?.showBusy?.(`Opening '${l}'...`)}})}catch(l){throw i?.(),o?.(),l}finally{i?.(),o?.()}}}const BE=new sf;exports.$i=e=>a.jsxs(V.SvgIcon,{...e,children:[a.jsx("path",{d:"m 17.055601,3.649384 c 0.231,-0.4871429 0.559428,-0.7307143 0.983714,-0.7307143 0.389714,0 0.691428,0.1854286 0.900428,0.5547143 0.210572,0.3708571 0.315858,0.8752857 0.315858,1.518 0,0.6961429 -0.122572,1.254 -0.369286,1.6767143 -0.245143,0.4211429 -0.573572,0.6317143 -0.985286,0.6317143 -0.372428,0 -0.653714,-0.1964286 -0.843857,-0.5877143 h -0.01257 V 7.1992412 H 16.112743 V 1.0140983 h 0.931858 V 3.649384 h 0.01257 z m -0.02514,1.7285714 a 1.2257143,1.2257143 0 0 0 0.168143,0.6694286 c 0.111568,0.1775714 0.256139,0.2655714 0.430568,0.2655714 0.213714,0 0.377143,-0.1131428 0.493429,-0.3394285 0.117857,-0.2278572 0.177571,-0.55 0.177571,-0.9664286 0,-0.3457143 -0.055,-0.6128572 -0.163429,-0.8077143 -0.105285,-0.1948572 -0.257714,-0.2938572 -0.455714,-0.2938572 -0.188571,0 -0.344143,0.097429 -0.466714,0.2907143 a 1.3922857,1.3922857 0 0 0 -0.183857,0.7542857 z m -3.501146,1.8118572 h 1.012 V 4.5026697 c 0,-1.276 -0.495,-1.9171428 -1.483428,-1.9171428 -0.212143,0 -0.447858,0.037714 -0.707143,0.1147143 a 2.2691429,2.2691429 0 0 0 -0.609715,0.2624285 v 1.045 c 0.372429,-0.319 0.765286,-0.4777143 1.178572,-0.4777143 0.410143,0 0.616,0.2451429 0.616,0.737 l -0.942857,0.1618572 c -0.795143,0.1351428 -1.194286,0.638 -1.194286,1.5101428 0,0.4132858 0.09586,0.7432858 0.287571,0.9915715 a 0.95857143,0.95857143 0 0 0 0.796715,0.3692857 c 0.455714,0 0.799857,-0.2514286 1.032428,-0.7542857 h 0.01414 z m 0.0063,-2.1292857 V 5.3638126 A 1.1785714,1.1785714 0 0 1 13.347029,6.0489554 0.57828571,0.57828571 0 0 1 12.855172,6.3160983 0.43371429,0.43371429 0 0 1 12.509458,6.1668126 0.59714286,0.59714286 0 0 1 12.383744,5.7770983 c 0,-0.3488571 0.172857,-0.5515714 0.521714,-0.6112857 l 0.628571,-0.1052857 z"}),a.jsx("path",{className:"styled info",d:"M 5.3013153,11.534813 1.9698867,8.192384 3.0101724,7.1520983 4.5910295,8.7235269 V 6.3506697 A 2.1842857,2.1842857 0 0 1 6.770601,4.1569554 h 3.685 v 1.4221429 h -3.685 A 0.77,0.77 0 0 0 6.0351724,6.3538126 l 0.011,2.3571428 1.4912857,-1.4834285 1.0308572,1.0308571 -3.2685715,3.276429 z"}),a.jsx("path",{d:"m 9.8270295,19.761241 h -1.012 V 19.116955 H 8.8008867 C 8.5683153,19.619812 8.2241724,19.871241 7.7684581,19.871241 A 0.95857143,0.95857143 0 0 1 6.9717438,19.501955 c -0.1917143,-0.248286 -0.2875714,-0.578286 -0.2875714,-0.99 0,-0.873714 0.3991429,-1.376571 1.1942857,-1.511714 l 0.9428572,-0.161857 c 0,-0.491857 -0.2042858,-0.738572 -0.616,-0.738572 -0.4132858,0 -0.8061429,0.160286 -1.1785715,0.479286 v -1.045 c 0.1492857,-0.099 0.352,-0.187 0.6097143,-0.262429 0.2592857,-0.077 0.495,-0.114714 0.7071429,-0.114714 0.99,0 1.4834285,0.639572 1.4834285,1.917143 z m -1.0057142,-1.826 v -0.303286 l -0.6285715,0.106857 c -0.3488571,0.05814 -0.5232857,0.260857 -0.5232857,0.609715 0,0.157142 0.042429,0.287571 0.1257143,0.389714 a 0.43371429,0.43371429 0 0 0 0.3457143,0.149286 0.57828571,0.57828571 0 0 0 0.4902857,-0.267143 c 0.1257143,-0.182286 0.1885714,-0.408572 0.1885714,-0.685143 z m 4.5602857,1.936 c 0.504428,0 0.892571,-0.09114 1.159714,-0.271857 v -1.115715 a 1.4142857,1.4142857 0 0 1 -0.867428,0.325286 0.97271429,0.97271429 0 0 1 -0.785715,-0.337857 c -0.188571,-0.227857 -0.284428,-0.542143 -0.284428,-0.939714 0,-0.408572 0.099,-0.729143 0.297,-0.961715 a 1.012,1.012 0 0 1 0.810857,-0.350428 c 0.304857,0 0.581428,0.108428 0.829714,0.325286 v -1.177 c -0.202714,-0.141429 -0.531143,-0.210572 -0.983714,-0.210572 -0.655286,0 -1.180143,0.22 -1.573,0.663143 -0.391286,0.44 -0.586143,1.040286 -0.586143,1.804 0,0.66 0.182286,1.200571 0.548429,1.618571 0.364571,0.419572 0.843857,0.628572 1.434714,0.628572 z M 1.9698867,13.585527 3.5413152,12.014098 H 17.684172 l 1.571429,1.571429 v 7.857142 l -1.571429,1.571429 H 3.5413152 L 1.9698867,21.442669 Z m 1.5714285,0 v 7.857142 H 17.684172 V 13.585527 Z M 8.255601,10.44267 9.8270295,8.8712412 H 20.827029 l 1.571429,1.5714288 v 7.857142 l -1.571429,1.571429 V 10.44267 Z"})]}),exports.A0=ao,exports.AppearanceCommandButton=Kk,exports.At=Et,exports.AutoColorPosition=li,exports.Be=Ja,exports.BorderCommandButton=u9,exports.BorderPopupButton=d9,exports.BorderStyleButton=c9,exports.Bt=P8,exports.Checkboard=a9,exports.ClearCommandButton=v2,exports.ColorButton=e1,exports.ColorCommandButton=bi,exports.ColorPanel=s9,exports.ColorPanelType=l9,exports.ColorPopupButton=b2,exports.DeleteCellsCommandButton=S2,exports.DocThemeCommandButton=O9,exports.E8=Xc,exports.Fi=R8,exports.FillCommandButton=x9,exports.FilterColumnMenu=D2,exports.FilterCommandButton=Wk,exports.Filters=W9,exports.FindCommandButton=f9,exports.Fn=lh,exports.FontFamilyCommandButton=v9,exports.FontSizeCommandButton=m9,exports.FormulaBar=I2,exports.FreezeCommandButton=p9,exports.He=vi,exports.HelpCommandButton=Xk,exports.HorizontalAlignCommandButton=bh,exports.I7=Kd,exports.Ii=e=>a.jsxs(V.SvgIcon,{...e,children:[a.jsx("path",{d:"M 10.479463,15.147182 H 9.2682944 v -1.181675 h -0.029549 c -0.5268175,0.905987 -1.3022625,1.358912 -2.3263488,1.358912 -0.7533075,0 -1.3441175,-0.199375 -1.7724712,-0.598262 -0.4234175,-0.39875 -0.6351263,-0.927988 -0.6351263,-1.587768 0,-1.413046 0.8320676,-2.235269 2.4962163,-2.466668 l 2.267279,-0.317569 c 0,-1.2850343 -0.5194338,-1.927558 -1.5583013,-1.927558 -0.9108412,0 -1.7330638,0.3101862 -2.4666675,0.930545 V 8.1164215 C 5.9867743,7.6437652 6.8434681,7.4074302 7.8133931,7.4074302 c 1.77738,0 2.6660699,0.94039 2.6660699,2.8211698 z M 9.2682944,11.321616 7.4441369,11.572718 c -0.5612888,0.07877 -0.9847063,0.219093 -1.2702663,0.420956 -0.2855737,0.196942 -0.4283538,0.548969 -0.4283538,1.056097 0,0.369256 0.1304738,0.672058 0.3914213,0.908448 0.26587,0.231275 0.6178975,0.34705 1.0560962,0.34705 0.6006688,0 1.0954763,-0.209275 1.4844363,-0.627756 0.3938825,-0.423417 0.5908238,-0.957619 0.5908238,-1.602604 z"}),a.jsx("path",{d:"m 13.926616,14.054194 h -0.02955 v 1.092988 H 12.685885 V 3.9511339 h 1.211182 v 4.9628976 h 0.02955 c 0.595732,-1.0043963 1.467262,-1.5066013 2.614425,-1.5066013 0.969924,0 1.7281,0.3397213 2.274662,1.0191638 0.551375,0.67452 0.827063,1.580453 0.827063,2.717784 0,1.26533 -0.307725,2.279571 -0.923175,3.042779 -0.61545,0.758175 -1.457363,1.137262 -2.525738,1.137262 -0.999487,0 -1.755201,-0.423362 -2.267238,-1.270225 z m -0.02955,-3.050135 v 1.056083 c 0,0.625295 0.201864,1.157021 0.605591,1.59522 0.408595,0.433207 0.925595,0.649907 1.550945,0.649907 0.733562,0 1.307212,-0.280637 1.720675,-0.841926 0.41855,-0.561275 0.627825,-1.341656 0.627825,-2.34113 0,-0.841913 -0.194563,-1.5016653 -0.583413,-1.9792441 -0.388987,-0.4775787 -0.915887,-0.716375 -1.580562,-0.716375 -0.704,0 -1.270225,0.24618 -1.698538,0.7385263 -0.428353,0.4874375 -0.642523,1.1004128 -0.642523,1.8389388 z"}),a.jsx("path",{d:"m 1.0738031,15.147182 h 1.375 v 2.75 H 21.698803 v -2.75 h 1.375 v 4.125 h -1.375 -19.2499999 -1.375 z"})]}),exports.InsertCellsCommandButton=w2,exports.InsertImageCommandButton=_2,exports.InsertScriptCommandButton=J9,exports.It=wi,exports.L5=ua,exports.MergeCommandButton=h9,exports.Mi=e=>a.jsxs(V.SvgIcon,{...e,children:[a.jsx("path",{d:"M 6.7070312 0.16992188 C 5.4051693 0.16992188 4.3496094 1.2254824 4.3496094 2.5273438 L 4.3496094 7.8164062 L 5.921875 7.8164062 L 5.921875 2.5273438 C 5.921875 2.093443 6.2731423 1.7421875 6.7070312 1.7421875 L 15.349609 1.7421875 L 15.349609 5.6699219 C 15.349609 6.1038229 15.702818 6.4550781 16.136719 6.4550781 L 20.064453 6.4550781 L 20.064453 19.8125 C 20.064453 20.246402 19.713186 20.597656 19.279297 20.597656 L 9.1601562 20.597656 L 7.5878906 22.169922 L 19.279297 22.169922 C 20.581159 22.169922 21.636719 21.114363 21.636719 19.8125 L 21.636719 5.6699219 C 21.636719 5.4615699 21.553577 5.2605952 21.40625 5.1132812 L 16.691406 0.40039062 C 16.544093 0.25302252 16.345071 0.16992188 16.136719 0.16992188 L 6.7070312 0.16992188 z "}),a.jsx("path",{className:"styled secondary_light",d:"m 7.7187557,5.6810989 h 3.9153913 c 0.116687,0 0.211776,0.096094 0.211776,0.2127813 v 0.8457422 c 0,0.1166881 -0.09489,0.2117769 -0.211776,0.2117769 H 7.7187557 c -0.116688,0 -0.2117768,-0.094892 -0.2117768,-0.2117769 V 5.8938802 c 0,-0.116688 0.094893,-0.2127813 0.2117768,-0.2127813 z M 8.7772903,9.7481656 V 12.094422 H 13.203582 V 9.7481656 Z m 0,3.6164134 v 2.346263 H 13.203582 V 13.364579 Z M 14.473445,12.094422 H 17.03249 V 9.7481656 h -2.559045 z m 2.559045,1.270157 h -2.559045 v 2.346263 h 2.559045 z m 1.270159,-3.8291948 v 7.2330098 c 0,0.116688 -0.09489,0.211766 -0.211767,0.211766 H 7.7185701 c -0.116688,0 -0.2117768,-0.09489 -0.2117768,-0.211766 V 8.6898058 c 0,-0.116688 0.094893,-0.2117769 0.2117768,-0.2117769 H 18.090882 c 0.116688,0 0.211767,0.094893 0.211767,0.2117769 z"}),a.jsx("path",{className:"styled info",d:"m 8.9270053,19.509881 h -3.3 V 8.5098782 H 3.4270047 V 19.509881 H 0.127005 l 4.3999997,4.4 z"})]}),exports.NamedCollectionEditor=R2,exports.NamedInput=F9,exports.Ne=u8,exports.NumberFormatCommandButton=g9,exports.PasteCommandButton=E2,exports.Pi=e=>a.jsxs(V.SvgIcon,{...e,children:[a.jsx("path",{d:"m 10.48227,13.29653 h 1.7802 L 7.50778,0.81713998 H 5.7837 L 1.0312503,13.29653 h 1.7802 l 1.20102,-3.41449 H 9.20941 Z M 4.5198203,8.47224 6.38758,3.28429 C 6.46388,3.08 6.53125,2.79041 6.58962,2.41327 h 0.0404 c 0.0696,0.41306 0.13469,0.70489 0.19306,0.87102 l 1.88571,5.18795 z"}),a.jsx("path",{className:"styled info",d:"M 11.02105,18.09612 C 10.34084,17.97041 9.70105,17.68306 9.17798,17.22061 7.82207,16.02408 7.4786,14.08 8.34064,12.49286 l -1.21,-0.65776 c -1.16959,2.15286 -0.7049,4.79061 1.13592,6.41592 0.77449,0.68245 1.73755,1.09551 2.75224,1.23245 v 0.91816 l 2.40653,-1.67918 -2.40428,-1.67918 z"}),a.jsx("path",{d:"m 22.27023,17.16 c -0.50735,-0.54551 -1.18531,-0.86653 -2.03388,-0.96306 v -0.0314 c 0.68245,-0.22 1.21898,-0.5949 1.60735,-1.1202 0.38837,-0.52531 0.58367,-1.13368 0.58367,-1.82062 0,-0.86428 -0.32775,-1.5602 -0.98326,-2.08326 -0.65551,-0.52306 -1.53102,-0.78572 -2.62653,-0.78572 h -3.66592 v 12.47715 h 3.76245 c 1.20326,0 2.19102,-0.33225 2.96102,-0.99449 0.77,-0.66225 1.15612,-1.52878 1.15612,-2.60408 0,-0.83735 -0.25367,-1.52878 -0.76102,-2.07429 z m -5.50674,-5.39449 h 1.61184 c 1.56919,0 2.35265,0.58816 2.35265,1.76449 0,0.67122 -0.22224,1.19653 -0.66449,1.57592 -0.44224,0.37939 -1.0551,0.56796 -1.83183,0.56796 h -1.46592 z m 3.88817,9.07612 C 20.19145,21.23 19.54043,21.42531 18.6986,21.42531 h -1.93286 v -4.34837 h 1.66796 c 1.93959,0 2.90714,0.71612 2.90714,2.14388 0,0.69142 -0.23122,1.23245 -0.68918,1.62081 z"})]}),exports.PresetCellStylesCommandButton=_9,exports.PresetTableStylesCommandButton=R9,exports.Qa=(e,t)=>{let n=Rc({palette:{mode:e?"dark":"light"}}),o={typography:{},palette:{mode:e?"dark":"light",text:{secondary:e?n.palette.text.secondary:st.alpha(n.palette.text.secondary,.75),icon:e?st.alpha(n.palette.text.secondary,.7):st.alpha(n.palette.text.primary,.75)}},components:{MuiDialogTitle:{styleOverrides:{root:{fontWeight:"normal"}}},MuiSelect:{styleOverrides:{iconOutlined:{top:"unset"}}},MuiListItemIcon:{styleOverrides:{root:{minWidth:"0px !important",overflow:"hidden",marginLeft:"0px",marginRight:"6px",padding:"1px 1px",border:"solid transparent 1px"}}},MuiMenuItem:{styleOverrides:{root:{paddingTop:"2px",paddingBottom:"2px",marginLeft:"4px",marginRight:"4px",paddingLeft:"6px",paddingRight:"18px",borderRadius:"4px",fontSize:"0.875em","@media (pointer: coarse)":{fontSize:"1em"},"&.Mui-selected":{}}}},MuiDivider:{styleOverrides:{root:{marginTop:"4px !important",marginBottom:"4px !important",marginLeft:"0px",marginRight:"0px"}}},MuiPopper:{styleOverrides:{root:{"& .menu":{marginTop:"4px",marginBottom:"4px",borderRadius:"4px"}}}},SmartInputField:{styleOverrides:{automatic:{transition:"opacity 200ms cubic-bezier(0.4, 0, 0.2, 1) 0ms",color:function(){return n.palette.text.secondary}},dirty:{fontStyle:"italic",color:function(){return n.palette.text.secondary}}}}}},r=o;return t&&(r=r7.deepmerge(o,t)),Rc(r)},exports.Qt=Me,exports.QuickFormulaSumCommandPopupButton=Yk,exports.RangeInput=z9,exports.Rd=x2,exports.Ri=e=>a.jsxs(V.SvgIcon,{...e,children:[a.jsx("path",{d:"M 13.825079,18.501033 H 11.95551 L 10.427711,14.46047 H 4.3164615 L 2.8791069,18.501033 H 0.99950668 L 6.5277646,4.0874418 H 8.2767047 Z M 9.8748861,12.942702 7.6133175,6.8013238 C 7.5396037,6.6002808 7.4658898,6.2786458 7.3921947,5.8363818 h -0.040216 c -0.067014,0.408748 -0.1440592,0.730402 -0.2311721,0.964942 l -2.24147,6.1413782 z"}),a.jsx("path",{d:"M 22.999506,18.501033 H 21.35119 v -1.608081 h -0.04023 c -0.716927,1.232869 -1.772388,1.84949 -3.166196,1.84949 -1.025331,0 -1.829278,-0.271538 -2.412346,-0.81424 -0.576274,-0.542701 -0.864411,-1.263184 -0.864411,-2.161075 0,-1.923147 1.132525,-3.042198 3.397275,-3.357133 l 3.085913,-0.432215 c 0,-1.74894 -0.707009,-2.6234182 -2.12084,-2.6234182 -1.239793,0 -2.358694,0.422166 -3.357208,1.2664762 V 8.9322138 c 1.011801,-0.643289 2.177861,-0.964942 3.497936,-0.964942 2.418952,0 3.628428,1.279877 3.628428,3.8396302 z m -1.648316,-5.206529 -2.482766,0.341752 c -0.763899,0.107212 -1.340099,0.298187 -1.728785,0.572925 -0.388687,0.268038 -0.582937,0.74715 -0.582937,1.437429 0,0.502467 0.177595,0.914546 0.532596,1.236237 0.361926,0.314954 0.841001,0.472337 1.437411,0.472337 0.817421,0 1.490932,-0.284637 2.020347,-0.854287 0.535965,-0.576199 0.804134,-1.303326 0.804134,-2.181155 z"})]}),exports.RunScriptCommandButton=B2,exports.ScriptEditorToolbar=F2,exports.ScriptWorkspace=z2,exports.SheetTab=L2,exports.SheetTabMenu=O2,exports.SheetZoomScale=T2,exports.SheetsAllMenu=P2,exports.Si=e=>a.jsxs(V.SvgIcon,{...e,children:[a.jsx("path",{d:"m 6.3819062,2.5159671 c -0.4338889,0 -0.7857055,0.3518167 -0.7857055,0.7857177 V 20.587402 c 0,0.433902 0.3518166,0.785718 0.7857055,0.785718 H 18.953342 c 0.433889,0 0.785705,-0.351816 0.785705,-0.785718 V 7.2302615 h -3.928564 c -0.433901,0 -0.785718,-0.3518167 -0.785718,-0.7857178 V 2.5159671 Z m -2.357141,0.7857177 c 0,-1.3018621 1.0552788,-2.35714102 2.357141,-2.35714102 h 9.4285768 c 0.208352,0 0.408296,0.0827447 0.555609,0.23010782 l 4.714283,4.7142821 c 0.147327,0.1473145 0.230107,0.3472578 0.230107,0.55561 V 20.587402 c 0,1.301863 -1.055278,2.357142 -2.35714,2.357142 H 6.3819062 c -1.3018622,0 -2.357141,-1.055279 -2.357141,-2.357142 z"}),a.jsx("path",{className:"styled info",d:"M 13.729115,7.5208126 H 11.903278 V 11.108007 H 8.3163096 v 1.825837 h 3.5869684 v 3.586969 h 1.825837 v -3.586969 h 3.587195 v -1.825837 h -3.587195 z"})]}),exports.So=({manager:e,commands:t,disabled:n,notifier:o=Ja})=>{const r=me(l=>{try{e?.undo(l)}catch(d){o.showError?.(d)}},[e]),i=me(l=>{try{e?.redo(l)}catch(d){o.showError?.(d)}},[e]);return s.useMemo(()=>{if(!t)return;const l={contains:c=>!0,focus(){}},d=[new Me("undo",l,{label:"Undo",description:yu,shortcut:{key:"z",modifiers:[je.Ctrl]},disabled:!0},r),new Me("redo",l,{label:"Redo",description:bu,shortcut:[{key:"y",modifiers:[je.Ctrl]},{key:"F4"},{key:"Enter",modifiers:[je.Alt]}],disabled:!0},i)];t?.addCommands(d,!0)},[t]),s.useEffect(()=>{if(!t)return;const l=()=>{const c=e?.getTopUndoDescription(),u={};var f;t.getCommand("undo").update({disabled:n||!e||!e.hasUndo(),description:c?(f=c,`Undo ${f}`):yu,state:u,context:{undoManager:e}});const p=e?.getTopRedoDescription();t.getCommand("redo").update({disabled:n||!e||!e.hasRedo(),description:p?pm(p):bu,state:u,context:{undoManager:e}})};if(l(),!e)return;const d=e.addListener({onStackChange(){l()}});return()=>d?.()},[e,t,n]),{undo:r,redo:i}},exports.SortFilterCommandButton=C2,exports.StandaloneWorkbook=af,exports.StatusBar=j2,exports.StyledStrokeIcon=yd,exports.T=me,exports.THEME_ID=r0,exports.TableStyleCanvasPreview=M9,exports.TableStyleOptionsPanel=Zk,exports.TableStylePreview=j9,exports.TextEffectsCommandButton=w9,exports.TextOverflowCommandButton=wh,exports.TextRotateCommandButton=Sh,exports.ThemeMode={Light:"light",Dark:"dark"},exports.ThemeProvider=Fh,exports.ThemeSelectButton=I9,exports.ThemeSelectPanel=D9,exports.ThemeSelectPopupButton=L9,exports.UnderlineCommandButton=S9,exports.UndoRedoCommandButton=k2,exports.V5=dn,exports.V7=qd,exports.VerticalAlignCommandButton=vh,exports.Vi=e=>a.jsxs(V.SvgIcon,{...e,children:[a.jsx("path",{d:"M 6.7070312 0.16992188 C 5.4051693 0.16992188 4.3496094 1.2254824 4.3496094 2.5273438 L 4.3496094 7.8164062 L 5.921875 7.8164062 L 5.921875 2.5273438 C 5.921875 2.093443 6.2731425 1.7421875 6.7070312 1.7421875 L 15.349609 1.7421875 L 15.349609 5.6699219 C 15.349609 6.1038229 15.702818 6.4550781 16.136719 6.4550781 L 20.064453 6.4550781 L 20.064453 8.1074219 L 21.636719 8.1074219 L 21.636719 5.6699219 C 21.636719 5.4615699 21.553577 5.2605954 21.40625 5.1132812 L 16.691406 0.40039062 C 16.544093 0.25302252 16.345071 0.16992188 16.136719 0.16992188 L 6.7070312 0.16992188 z M 20.064453 18.873047 L 20.064453 19.8125 C 20.064453 20.246402 19.713186 20.597656 19.279297 20.597656 L 9.1601562 20.597656 L 7.5878906 22.169922 L 19.279297 22.169922 C 20.581159 22.169922 21.636719 21.114363 21.636719 19.8125 L 21.636719 18.873047 L 20.064453 18.873047 z "}),a.jsx("path",{className:"styled secondary_light",d:"m 22.499719,10.752378 -1.867399,5.486926 h -1.267987 l -1.859714,-5.486926 h 1.175769 l 1.02976,3.266027 q 0.03074,0.08453 0.08453,0.315076 0.06148,0.222858 0.122956,0.476455 0.06148,0.245913 0.08453,0.414978 0.02305,-0.169065 0.07685,-0.414978 0.06148,-0.253597 0.122956,-0.476455 0.06148,-0.230544 0.08453,-0.315076 l 1.037444,-3.266027 z m -5.302496,3.965341 q 0,0.730053 -0.530249,1.168085 -0.522565,0.430347 -1.490846,0.430347 -0.868379,0 -1.552323,-0.330445 v -1.083552 q 0.391923,0.169065 0.8069,0.315075 0.422663,0.138326 0.83764,0.138326 0.430348,0 0.607097,-0.16138 0.184435,-0.169065 0.184435,-0.422663 0,-0.207488 -0.146011,-0.353499 -0.138326,-0.146011 -0.376554,-0.268967 -0.238228,-0.130641 -0.545618,-0.276652 -0.19212,-0.09222 -0.414978,-0.215173 -0.222858,-0.130641 -0.430347,-0.315076 -0.199804,-0.192119 -0.330445,-0.461086 -0.130641,-0.268967 -0.130641,-0.645521 0,-0.737738 0.49951,-1.14503 0.49951,-0.414978 1.360204,-0.414978 0.430347,0 0.814586,0.0999 0.391923,0.0999 0.814585,0.284337 l -0.376553,0.906802 q -0.376554,-0.153695 -0.67626,-0.238227 -0.299706,-0.08453 -0.614782,-0.08453 -0.330445,0 -0.507195,0.153695 -0.176749,0.153696 -0.176749,0.399609 0,0.292021 0.261282,0.461086 0.261282,0.169065 0.776162,0.414977 0.422662,0.199804 0.714683,0.414978 0.299706,0.215173 0.461087,0.507195 0.16138,0.292021 0.16138,0.722368 z m -5.801995,-3.073908 q -0.668575,0 -1.022074,0.49951 -0.3535,0.49951 -0.3535,1.367889 0,0.876064 0.322761,1.360205 0.330445,0.476455 1.052813,0.476455 0.33813,0 0.668575,-0.07685 0.33813,-0.07685 0.730053,-0.215174 v 0.975966 q -0.361184,0.14601 -0.714683,0.215173 -0.3535,0.06916 -0.791532,0.06916 -0.845324,0 -1.3986278,-0.345814 -0.5456187,-0.3535 -0.8069009,-0.983651 -0.2612821,-0.637836 -0.2612821,-1.483161 0,-0.829955 0.299706,-1.467791 0.299706,-0.637836 0.868379,-0.99902 0.5763578,-0.361184 1.4063128,-0.361184 0.407293,0 0.814586,0.107587 0.414977,0.0999 0.791531,0.276652 l -0.376554,0.945226 q -0.30739,-0.14601 -0.622466,-0.253597 -0.307391,-0.107587 -0.607097,-0.107587 z M 23.139315,8.7167969 H 7.4504548 c -0.4289405,0 -0.7768148,0.347658 -0.7768148,0.776813 V 17.24011 c 0,0.206119 0.081937,0.403576 0.2275848,0.549445 0.145652,0.145651 0.3433235,0.227367 0.54923,0.227367 H 23.139315 c 0.205907,0 0.403578,-0.08172 0.54923,-0.227367 0.145653,-0.145869 0.227586,-0.343326 0.227586,-0.549445 V 9.4936099 c 0,-0.206121 -0.08194,-0.403577 -0.227586,-0.549446 -0.145652,-0.145652 -0.343323,-0.227367 -0.54923,-0.227367 z"}),a.jsx("path",{className:"styled info",d:"m 8.9270053,19.509881 h -3.3 V 8.5098782 H 3.4270047 V 19.509881 H 0.127005 l 4.3999997,4.4 z"})]}),exports.ViewGridLinesCommandButton=y9,exports.ViewHeadingsCommandButton=C9,exports.Vo=_l,exports.WalkingCopyCommandButton=t1,exports.WorkbookContextMenu=V2,exports.WorkbookElement=rf,exports.WorkbookIO=BE,exports.WorkbookStrip=N2,exports.WorkbookTitle=lf,exports.WorkbookViewCommandButton=k9,exports.Yt=Lt,exports.Z=je,exports.Z0=mo,exports.Zi=e=>a.jsxs(V.SvgIcon,{...e,children:[a.jsx("path",{d:"m 23.055315,20.559686 -4.63158,-4.63158 -0.33082,0.33083 -1.14286,-1.14286 c 2.70677,-3.57895 2.43609,-8.6917252 -0.81203,-11.9398452 -3.54887,-3.54886972 -9.3233066,-3.54886972 -12.9022566,0 -3.54886969,3.54887 -3.54886969,9.3233052 0,12.9022552 3.24812,3.24812 8.3909766,3.54887 11.9398466,0.81203 l 1.14286,1.14286 -0.33083,0.33082 4.63158,4.63158 c 0.66166,0.66166 1.74436,0.66166 2.43609,0 0.69173,-0.69173 0.69173,-1.77443 0,-2.43609 z m -8.66165,-6.25564 c -2.58647,2.58647 -6.7669166,2.58647 -9.3533766,0 -2.58647,-2.58646 -2.58647,-6.7669152 0,-9.3533752 2.58646,-2.58647 6.7669066,-2.58647 9.3533766,0 2.58647,2.58646 2.58647,6.7669152 0,9.3533752 z"}),a.jsx("path",{className:"styled info",d:"m 13.283605,7.5586508 0.57143,-0.81203 c 0.1203,-0.15037 0.0902,-0.3609 -0.0301,-0.4812 l -0.36091,-0.3609 -0.3609,-0.3609 c -0.1203,-0.1203 -0.33083,-0.15038 -0.4812,-0.0301 l -0.81203,0.57143 c -0.33083,-0.21053 -0.69173,-0.3609 -1.05263,-0.45113 l -0.15038,-0.99248 c -0.0301,-0.18045 -0.18045,-0.30075 -0.3609,-0.30075 H 9.7647762 9.283578 c -0.1804494,0 -0.3308296,0.1203 -0.3608996,0.30075 l -0.18045,0.99248 c -0.39098,0.0902 -0.75188,0.2406 -1.08271,0.45113 l -0.81203,-0.57143 c -0.15037,-0.1203 -0.3609,-0.0902 -0.4812,0.0301 l -0.3609,0.3609 -0.36091,0.3609 c -0.1203,0.1203 -0.15037,0.33083 -0.0301,0.4812 l 0.57143,0.81203 c -0.21053,0.33083 -0.33083,0.69173 -0.45113,1.05264 l -0.96241,0.15037 c -0.18045,0.0301 -0.30075,0.1804494 -0.30075,0.3608988 v 0.4812082 0.4811982 c 0,0.18045 0.1203,0.33083 0.30075,0.3609 l 0.99248,0.18045 c 0.0902,0.36091 0.24061,0.72181 0.45113,1.05264 l -0.57143,0.81203 c -0.1203,0.15037 -0.0902,0.3609 0.0301,0.4812 l 0.3609,0.3609 0.3609,0.3609 c 0.1203,0.1203 0.33083,0.15038 0.48121,0.0301 l 0.81203,-0.57143 c 0.33082,0.21053 0.69173,0.33083 1.05263,0.45113 l 0.15037,0.9624 c 0.0301,0.18045 0.1804605,0.30076 0.3609096,0.30076 h 0.4811982 0.4811988 c 0.18045,0 0.33083,-0.12031 0.3609,-0.30076 l 0.18046,-0.99248 c 0.3609,-0.0902 0.7218,-0.2406 1.02255,-0.42105 l 0.81203,0.57143 c 0.15038,0.1203 0.3609,0.0902 0.48121,-0.0301 l 0.3609,-0.3609 0.3609,-0.3609 c 0.1203,-0.1203 0.15038,-0.33083 0.0301,-0.4812 l -0.57143,-0.81203 c 0.21052,-0.33083 0.3609,-0.69173 0.45112,-1.05264 l 0.99249,-0.15037 c 0.18045,-0.0301 0.30075,-0.18045 0.30075,-0.3609 V 9.6338375 9.1526396 c 0,-0.1804494 -0.1203,-0.3308288 -0.30075,-0.3608988 l -0.99249,-0.18045 c -0.0601,-0.36091 -0.21052,-0.72181 -0.42105,-1.05264 z m -1.38346,3.4285752 c -0.75188,1.203 -2.3157882,1.56391 -3.5187866,0.81203 -1.20301,-0.75188 -1.56391,-2.3157879 -0.81203,-3.5187952 0.75188,-1.20301 2.3157872,-1.56391 3.5187866,-0.81203 1.20301,0.75188 1.56391,2.3458561 0.81203,3.5187952 z"})]}),exports._WorkbookIO=sf,exports._extends=Ds,exports._i=e=>a.jsx(V.SvgIcon,{...e,children:a.jsx("path",{d:"m 21.230627,10.984379 c -0.103549,0.265939 -0.204749,0.531861 -0.308302,0.80018 -0.244758,0.640136 -0.491882,1.277905 -0.736619,1.918041 -0.296532,0.77195 -0.595423,1.546223 -0.891972,2.31813 -0.256524,0.666043 -0.513056,1.332042 -0.769584,2.000408 -0.122381,0.320068 -0.244757,0.640136 -0.369488,0.960183 -0.0071,0.01647 -0.01412,0.03295 -0.01883,0.04942 0.0306,-0.07531 0.06355,-0.15062 0.09414,-0.22593 -0.05884,0.138855 -0.129439,0.273001 -0.218868,0.393024 0.04942,-0.06354 0.09885,-0.127085 0.148266,-0.190629 -0.05884,0.07531 -0.122381,0.141204 -0.197691,0.200041 0.06354,-0.04942 0.127084,-0.09885 0.190629,-0.148266 -0.05648,0.04001 -0.112965,0.07531 -0.17651,0.103549 0.07531,-0.0306 0.150621,-0.06355 0.225931,-0.09414 -0.08002,0.03295 -0.160037,0.05413 -0.244758,0.06825 0.08237,-0.01177 0.167093,-0.02353 0.249466,-0.03295 -0.17651,0.02354 -0.360077,0.01177 -0.536596,0.01177 H 16.596651 12.981767 8.5974282 4.7848441 c -0.6071714,0 -1.2143859,0.0047 -1.8239241,0 -0.037655,0 -0.07531,-0.0024 -0.115319,-0.0047 0.082372,0.01177 0.1670935,0.02353 0.2494657,0.03295 -0.070602,-0.0094 -0.1388548,-0.02824 -0.204749,-0.05177 0.07531,0.03059 0.1506203,0.06354 0.2259303,0.09414 -0.063545,-0.02824 -0.1247306,-0.06119 -0.1812132,-0.1012 0.063544,0.04942 0.1270848,0.09885 0.1906293,0.148266 -0.063544,-0.04942 -0.120027,-0.105903 -0.1694477,-0.169447 0.080018,0.138854 0.1623858,0.277705 0.2424039,0.416559 -0.011767,-0.0353 -0.021181,-0.0706 -0.025888,-0.105903 0.011767,0.08237 0.023535,0.167094 0.032948,0.249466 -0.00235,-0.04236 -0.00235,-0.08237 0.00235,-0.122381 -0.011767,0.08237 -0.023534,0.167093 -0.032948,0.249465 0.011767,-0.07531 0.032948,-0.145912 0.063544,-0.216514 -0.030595,0.07531 -0.063544,0.15062 -0.094137,0.22593 0.1529742,-0.338895 0.2777048,-0.689539 0.4094974,-1.035492 0.2447577,-0.637769 0.4918825,-1.275581 0.7366189,-1.915717 0.2965322,-0.771949 0.593056,-1.546223 0.8919727,-2.31813 0.2565232,-0.670733 0.5154222,-1.3391 0.7719499,-2.009833 0.1247306,-0.32713 0.2541693,-0.651884 0.3765505,-0.981398 0.00235,-0.0047 0.00471,-0.0094 0.00471,-0.01412 -0.030595,0.07531 -0.063544,0.15062 -0.094137,0.225931 0.058836,-0.131793 0.1270845,-0.256524 0.2141645,-0.371843 -0.049421,0.06354 -0.098846,0.127085 -0.1482661,0.190629 0.065894,-0.08237 0.1388545,-0.157682 0.2212222,-0.223576 -0.063544,0.04942 -0.1270845,0.09885 -0.190629,0.148266 0.070602,-0.05413 0.1435581,-0.09649 0.2259303,-0.134146 -0.07531,0.03059 -0.1506203,0.06354 -0.2259303,0.09414 0.08943,-0.03766 0.1788593,-0.06119 0.2730013,-0.07531 -0.082372,0.01177 -0.1670939,0.02353 -0.2494658,0.03295 0.1718016,-0.02118 0.3506609,-0.0094 0.5224799,-0.0094 h 1.1014247 3.6642876 4.441143 3.777253 c 0.569517,0 1.139076,-0.0024 1.708592,0 0.09414,0 0.19063,0.0024 0.284768,0.01412 -0.08237,-0.01177 -0.167094,-0.02353 -0.249466,-0.03295 0.06119,0.0094 0.122381,0.02353 0.178859,0.04472 -0.07531,-0.03059 -0.15062,-0.06354 -0.22593,-0.09414 0.0353,0.01412 0.06589,0.03295 0.09649,0.05413 -0.06354,-0.04942 -0.127084,-0.09885 -0.190629,-0.148267 0.01883,0.01647 0.0353,0.03059 0.04942,0.04942 -0.04942,-0.06354 -0.09885,-0.127085 -0.148266,-0.190629 0.01412,0.01883 0.02589,0.04001 0.03765,0.06354 -0.03059,-0.07531 -0.06354,-0.15062 -0.09414,-0.22593 0.01177,0.03295 0.02118,0.06354 0.02589,0.09885 -0.01177,-0.08237 -0.02353,-0.167094 -0.03295,-0.249466 0.0024,0.04001 0.0024,0.08002 -0.0024,0.122381 0.01177,-0.08237 0.02353,-0.167094 0.03295,-0.249466 -0.01647,0.112965 -0.05177,0.221223 -0.09414,0.32713 0.03059,-0.07531 0.06354,-0.15062 0.09414,-0.22593 -0.0047,0.01412 -0.01177,0.02589 -0.01647,0.04001 -0.06825,0.108258 -0.105904,0.223577 -0.110612,0.350661 -0.02824,0.124731 -0.02353,0.249466 0.01647,0.376551 0.06119,0.218868 0.228284,0.454227 0.433011,0.562459 0.218868,0.115319 0.482458,0.174155 0.72487,0.09414 0.216515,-0.0706 0.468343,-0.214164 0.562459,-0.433011 0.07296,-0.171802 0.162386,-0.348312 0.197691,-0.534229 0.04707,-0.254169 0.05884,-0.449493 0.0071,-0.698963 C 23.085384,10.14653 22.838276,9.83117 22.534673,9.68055 22.233432,9.527576 21.908652,9.485213 21.572124,9.482859 h -0.400086 -2.167511 -3.348932 -3.68077 -3.2453915 -1.96512 c -0.1341464,0 -0.270647,-0.0047 -0.4047895,0.0094 -0.3341874,0.03765 -0.6542509,0.115319 -0.9366854,0.310656 -0.2918244,0.200041 -0.5295376,0.449494 -0.7083882,0.757792 -0.094138,0.160036 -0.1600361,0.336541 -0.2282842,0.508321 -0.2777051,0.724871 -0.5577682,1.449741 -0.8354688,2.172245 -0.4330112,1.127284 -0.866066,2.254612 -1.3014443,3.381896 -0.2894748,0.750734 -0.5789408,1.503835 -0.8660659,2.254612 -0.014121,0.03766 -0.028241,0.07531 -0.044717,0.112965 0.030595,-0.07531 0.063544,-0.15062 0.094138,-0.22593 -0.1200271,0.263585 -0.2000409,0.47071 -0.2118109,0.762525 -0.00471,0.120027 0.014121,0.24005 0.035302,0.355369 0.040009,0.195337 0.1412041,0.353015 0.2659393,0.508322 0.2165145,0.270647 0.5765741,0.491882 0.9178362,0.557768 0.1506203,0.02824 0.3012406,0.04707 0.4542277,0.04707 h 0.5106883 2.3134399 3.3748389 3.6501724 3.139484 1.840407 c 0.256523,0 0.513055,-0.0024 0.764849,-0.07531 0.30124,-0.08708 0.578941,-0.249466 0.800181,-0.473034 0.263585,-0.263585 0.418913,-0.578941 0.557768,-0.920203 0.01883,-0.04942 0.03765,-0.09885 0.05648,-0.148266 0.284767,-0.738986 0.567193,-1.477971 0.851951,-2.216957 0.430688,-1.117903 0.859008,-2.235763 1.289696,-3.353666 0.284767,-0.738986 0.567193,-1.477971 0.851951,-2.216957 0.01412,-0.03766 0.02824,-0.07296 0.04236,-0.110611 0.08237,-0.214165 0.01647,-0.534228 -0.09414,-0.72487 -0.115319,-0.195338 -0.338895,-0.381259 -0.562458,-0.433012 -0.24005,-0.05413 -0.510689,-0.04236 -0.724871,0.09414 -0.209457,0.143558 -0.331833,0.32713 -0.425971,0.567192 z M 17.898048,6.835008 v 3.146542 0.437745 c 0.313006,-0.313006 0.628388,-0.628388 0.941376,-0.941376 H 17.872141 15.462219 12.379196 9.3644251 7.1686842 c -0.6048476,0 -1.2308681,-0.04472 -1.7556719,0.329479 -0.4259712,0.303595 -0.7036976,0.69664 -0.8942966,1.179055 -0.016474,0.04001 -0.030595,0.08237 -0.047071,0.124731 -0.08943,0.232992 -0.1788593,0.465976 -0.2682935,0.698963 -0.3247757,0.844894 -0.6495602,1.68742 -0.9743401,2.532313 -0.3647851,0.948434 -0.7295611,1.899235 -1.0943633,2.847668 -0.2212223,0.571884 -0.4401122,1.146134 -0.6613086,1.718017 -0.011767,0.02824 -0.021181,0.05648 -0.032948,0.08473 0.030595,-0.07531 0.063544,-0.15062 0.094137,-0.22593 -0.1176729,0.258877 -0.1835671,0.44717 -0.2094567,0.729561 -0.01412,0.157682 0.00471,0.329479 0.056483,0.480091 0.5742503,-0.242404 1.1461337,-0.482458 1.7203839,-0.72487 -0.035302,-0.04942 -0.065894,-0.1012 -0.091784,-0.157683 0.030595,0.07531 0.063545,0.150621 0.094137,0.225931 -0.028241,-0.0706 -0.049421,-0.138855 -0.06119,-0.214165 0.011767,0.08237 0.023534,0.167094 0.032948,0.249466 -0.018827,-0.160036 -0.00706,-0.32713 -0.00706,-0.489516 V 17.813782 14.311863 10.0639 6.4019361 c 0,-0.5813076 -0.00471,-1.1649394 0,-1.7462474 0,-0.037655 0.00235,-0.077664 0.00471,-0.115319 -0.011767,0.082372 -0.023535,0.1670938 -0.032948,0.2494657 0.00941,-0.072956 0.028241,-0.1435583 0.056483,-0.2118106 -0.030595,0.07531 -0.063545,0.15062 -0.094138,0.2259303 0.028241,-0.065894 0.063544,-0.1270848 0.108257,-0.1859212 -0.049421,0.063544 -0.098845,0.1270845 -0.1482661,0.190629 0.044717,-0.056483 0.094138,-0.1059032 0.1506203,-0.15062 -0.063544,0.049421 -0.1270848,0.098846 -0.1906293,0.1482661 0.058836,-0.042362 0.1200271,-0.077664 0.1859213,-0.1082571 -0.07531,0.030595 -0.1506203,0.063544 -0.2259303,0.094137 0.068248,-0.028241 0.1388545,-0.044717 0.2118106,-0.056483 -0.082372,0.011768 -0.1670935,0.023535 -0.2494658,0.032948 0.1929832,-0.018827 0.3906703,-0.00471 0.5836318,-0.00471 h 1.2473072 2.873532 0.6636754 C 7.9429095,4.60862 7.6722712,4.453292 7.401628,4.2979723 7.8887769,4.938108 8.3736017,5.578244 8.8607503,6.2183797 8.9289983,6.3101637 8.9996049,6.3995929 9.0678531,6.4913809 9.2184733,6.6890719 9.3785094,6.8726392 9.6350456,6.929126 9.7056476,6.9456 9.8186129,6.959721 9.891569,6.962074 h 0.049421 0.642503 2.704105 3.071232 c 0.548343,0 1.099053,-0.00471 1.647397,0 0.03765,0 0.07531,0.00235 0.115319,0.00471 -0.08237,-0.011767 -0.167094,-0.023534 -0.249466,-0.032948 0.07296,0.00941 0.143559,0.028241 0.211811,0.056483 -0.07531,-0.030595 -0.15062,-0.063545 -0.22593,-0.094137 0.06589,0.028241 0.127085,0.063544 0.185921,0.108257 -0.06354,-0.049421 -0.127085,-0.098845 -0.190629,-0.1482661 0.05648,0.044717 0.105903,0.094137 0.15062,0.15062 -0.04942,-0.063545 -0.09885,-0.1270845 -0.148266,-0.190629 0.04236,0.058836 0.07766,0.1200271 0.108257,0.1859213 -0.03059,-0.07531 -0.06354,-0.1506203 -0.09414,-0.2259303 0.02824,0.068248 0.04472,0.1388545 0.05648,0.2118106 -0.01177,-0.082372 -0.02354,-0.1670938 -0.03295,-0.2494658 0.0024,0.032948 0.0047,0.065894 0.0047,0.096492 0.0047,0.2447577 0.1012,0.4918825 0.275351,0.6660425 0.162386,0.1623858 0.430688,0.2871209 0.666043,0.2753509 0.501263,-0.023534 0.9508,-0.4142054 0.941376,-0.9413763 -0.01883,-0.9672827 -0.793123,-1.7415564 -1.760363,-1.7556716 -0.110611,-0.00235 -0.218868,0 -0.32948,0 h -1.795679 -2.525255 -2.311073 c -0.383613,0 -0.769583,-0.00941 -1.1531914,0 H 9.8892086 C 10.159856,5.2346612 10.430495,5.3899892 10.701138,5.5453089 10.183391,4.8651512 9.6679691,4.1850366 9.150223,3.5048786 9.117275,3.4601618 9.0819748,3.415449 9.0490234,3.3707322 9.0419632,3.3636719 9.0372561,3.354258 9.0301959,3.347198 8.8960493,3.1730422 8.7854381,3.0483116 8.5783352,2.9612316 8.4300691,2.8976871 8.4182991,2.8859213 8.2135504,2.8812136 c -0.070602,-0.00235 -0.1388545,0 -0.2094567,0 H 6.80619 3.5984533 c -0.2188681,0 -0.4353783,-0.00471 -0.6542509,0 -0.3271299,0.00471 -0.6731002,0.091784 -0.9460669,0.2800586 -0.3412493,0.2329922 -0.5671925,0.5318615 -0.715446,0.9178366 -0.072956,0.1859213 -0.094137,0.3930238 -0.094137,0.593056 -0.00235,0.4353786 0,0.8707569 0,1.3061785 v 2.6711407 3.372472 3.334817 2.635853 c 0,0.409498 -0.00235,0.818987 0,1.228502 0.00235,0.338895 0.091784,0.70133 0.2894748,0.979031 0.1388545,0.195337 0.3177138,0.37655 0.5624586,0.433011 0.2094567,0.04707 0.4142057,0.03766 0.6119054,-0.04707 0.4071434,-0.171801 0.6989637,-0.663675 0.5460196,-1.110802 -0.011767,-0.0353 -0.021181,-0.0706 -0.025888,-0.105903 0.011767,0.08237 0.023535,0.167094 0.032948,0.249466 -0.00235,-0.04236 -0.00235,-0.08237 0.00235,-0.122381 -0.011767,0.08237 -0.023535,0.167093 -0.032948,0.249465 0.011767,-0.07531 0.032948,-0.145912 0.063545,-0.216514 -0.030595,0.07531 -0.063545,0.15062 -0.094138,0.22593 0.1529742,-0.338895 0.2777051,-0.689539 0.4094977,-1.035492 0.2447577,-0.637769 0.4918825,-1.275581 0.7366186,-1.915717 0.2965325,-0.771949 0.5930563,-1.546223 0.8919727,-2.31813 0.2565235,-0.670733 0.5154225,-1.3391 0.7719502,-2.009833 0.1247306,-0.32713 0.2541693,-0.651884 0.3765502,-0.981398 0.00235,-0.0047 0.00471,-0.0094 0.00471,-0.01412 -0.030595,0.07531 -0.063544,0.15062 -0.094138,0.22593 0.058837,-0.131793 0.1270848,-0.256523 0.2141648,-0.371843 -0.049421,0.06354 -0.098845,0.127085 -0.1482661,0.19063 0.065894,-0.08237 0.1388545,-0.157682 0.2212222,-0.223577 -0.063544,0.04942 -0.1270848,0.09885 -0.1906293,0.148267 0.070602,-0.05413 0.1435584,-0.09649 0.2259303,-0.134147 -0.07531,0.03059 -0.15062,0.06354 -0.2259303,0.09414 0.08943,-0.03766 0.1788593,-0.06119 0.2730013,-0.07531 -0.082372,0.01177 -0.1670936,0.02354 -0.2494658,0.03295 0.1435584,-0.01647 0.2941786,-0.0094 0.4401122,-0.0094 h 0.8731262 2.9394612 3.574862 3.120678 c 0.503631,0 1.004938,0.0071 1.508569,0 h 0.02118 c 0.508321,0 0.941376,-0.430688 0.941376,-0.941376 V 7.2703743 6.8326289 c 0,-0.4918825 -0.433011,-0.9649159 -0.941376,-0.9413759 -0.508322,0.025888 -0.941376,0.4165592 -0.941376,0.9437427 z"})}),exports._objectWithoutPropertiesLoose=A2,exports._setPrototypeOf=Ls,exports.al=()=>{const{showModal:e}=ua();return t=>{const{defaultOption:n=t.options?.[0],cancelOption:o="Cancel",...r}=t;return new Promise(i=>{const l=e(Bb,{defaultOption:n,cancelOption:o,...r,onOption(d){r?.onOption?.(d,d===o,d===n),i({input:"",option:d})},onInputOption(d,c){r?.onInputOption?.(d,c),i({input:d,option:c})},onDone:()=>{r?.onDone?.(),l.hide()}})})}},exports.clsx=Fn,exports.commonjsGlobal=K0,exports.createGridStyleFromMUITheme=wd,exports.createTheme=Dh,exports.defaultNewWorkbook=nf,exports.defaultTheme=Ah,exports.e2=go,exports.ed=e=>a.jsxs("svg",{...e,viewBox:"0 0 48 48",children:[a.jsx("path",{d:"M 2.2827924,0 C 1.5038324,0 0.87090248,0.52603 0.87090248,1.17149 v 25.39667 h -0.01 v 20.2607 c 0,0.39663 0.24025002,0.74639 0.60481992,0.95852 v 0.18499 h 0.50664 c 0.0972,0.0173 0.19732,0.0276 0.30092,0.0276 h 15.5346916 16.7448 v 0 h 11.35822 c 0.10311,0 0.20276,-0.0104 0.29945,-0.0276 h 0.0696 v -0.0182 c 0.59938,-0.13566 1.04238,-0.58606 1.04238,-1.12526 V 26.96484 c 0.006,-0.0429 0.009,-0.0853 0.009,-0.12925 V 1.17154 c 0,-0.64586 -0.63293,-1.17149 -1.41189,-1.17149 h -15.7478 v 2e-4 h -2.06997 V 5e-5 Z",fill:"#547DBE"}),a.jsx("path",{d:"m 2.8338324,2.7184 v 9.0404 H 11.538484 V 2.7184 Z m 11.2334116,0 v 9.0404 h 8.70465 V 2.7184 Z m 11.26696,0 v 9.0404 h 8.70465 V 2.7184 Z m 11.33258,0 v 9.0404 h 8.70465 V 2.7184 Z M 2.8338324,14.32723 v 8.84046 h 8.7046516 v -8.84046 z m 11.2334116,0 v 8.84046 h 8.70465 v -8.84046 z m 11.26696,0 v 8.84046 h 8.70465 v -8.84046 z m 11.33258,0 v 8.84046 h 8.70465 V 14.32723 Z M 2.8338324,25.73691 v 8.67308 h 8.7046516 v -8.67308 z m 11.2334116,0 v 8.67308 h 8.73721 v -8.67308 z m 11.26696,0 v 8.67308 h 8.70465 v -8.67308 z m 11.33258,0 v 8.67308 h 8.70465 V 25.73691 Z M 2.8693424,36.61859 v 8.67357 h 8.7046616 v -8.67357 z m 11.2339116,0 v 8.67357 h 8.73771 v -8.67357 z m 11.26697,0 v 8.67357 h 8.70465 v -8.67357 z m 11.33257,0 v 8.67357 h 8.70465 v -8.67357 z",fill:"#FFFFFF"}),a.jsx("path",{d:"m 2.8254424,2.72091 v 9.04041 H 11.570544 V 2.72091 Z m 0,11.60889 v 8.84036 H 11.570544 V 14.3298 Z m 0,11.40958 v 8.67357 h 8.7451016 v -8.67357 z m 0.036,10.88167 v 8.67358 h 8.7451116 v -8.67358 z",fill:"#547DBE",fillOpacity:"0.4"}),a.jsx("path",{d:"m 30.820434,6.19497 c 1.85291,0 3.66241,0.29708 5.4285,0.89113 1.7656,0.5942 3.49568,1.50108 5.19073,2.72107 l -2.37584,3.25571 c -1.40941,-1.01391 -2.79515,-1.76647 -4.15721,-2.25759 -1.36206,-0.49111 -2.72412,-0.73667 -4.08618,-0.73667 -2.5817,0 -4.58902,0.53064 -6.02232,1.59218 -1.43334,1.06143 -2.14989,2.56661 -2.14989,4.51523 v 0.0237 c 0,1.36241 0.41177,2.40021 1.23532,3.11315 0.82355,0.71288 1.89253,1.24367 3.20703,1.59217 1.31446,0.3485 2.71608,0.67341 4.20493,0.97439 1.29842,0.26929 2.58944,0.58216 3.87257,0.9386 1.28263,0.3565 2.45032,0.8635 3.50356,1.52097 1.05324,0.65747 1.89288,1.5486 2.51841,2.6734 0.62553,1.12485 0.93829,2.59035 0.93829,4.39635 v 0.0477 c 0,3.18435 -1.10849,5.64817 -3.32597,7.39066 -2.21698,1.7425 -5.33724,2.61399 -9.35978,2.61399 -1.67882,0 -3.25863,-0.15841 -4.73958,-0.47523 -1.4808,-0.31681 -2.86644,-0.79204 -4.15737,-1.42617 -1.29077,-0.63363 -2.49827,-1.42567 -3.6227,-2.37612 l 2.54179,-3.20819 c 1.39383,1.204 2.91819,2.10717 4.57323,2.70928 1.6549,0.60205 3.45641,0.90307 5.40463,0.90307 2.73991,0 4.85823,-0.52704 6.35447,-1.58048 1.49674,-1.05359 2.24511,-2.53098 2.24511,-4.43213 v -0.0237 c 0,-1.37834 -0.37197,-2.43583 -1.11639,-3.17245 -0.74442,-0.73668 -1.71824,-1.2912 -2.92194,-1.66359 -1.2037,-0.37223 -2.51051,-0.6851 -3.91993,-0.9386 -1.34627,-0.23762 -2.69635,-0.51485 -4.05046,-0.83182 -1.35417,-0.31677 -2.59339,-0.7841 -3.71782,-1.40204 -1.12448,-0.61779 -2.03125,-1.49708 -2.72017,-2.63782 -0.68898,-1.14078 -1.03341,-2.66156 -1.03341,-4.5627 v -0.0237 c 0,-3.21623 1.06898,-5.70753 3.20718,-7.47386 2.13805,-1.76648 5.15506,-2.64981 9.05121,-2.64981 z",strokeWidth:"2.5",stroke:"#EB594D",fill:"#f9CECB"})]}),exports.eo=Nt,exports.f4=bn,exports.fr=Re,exports.getDefaultExportFromCjs=function(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e},exports.getOverlayAlpha=pn,exports.go=c0,exports.gt=Ht,exports.il=()=>{const{showModal:e}=ua();return t=>new Promise(n=>{const o=e(zb,{...t,onOption(r){t?.onOption?.(r,r===t.cancelOption,r===t.defaultOption),n(r)},onDone:()=>{t?.onDone?.(),o.hide()}})})},exports.isPlainObject=Ar,exports.ji=e=>a.jsx(V.SvgIcon,{...e,children:a.jsx("path",{d:"m 15.678266,1.1001645 h 1.784278 v 5.6910421 l 4.680073,-2.8464352 0.888483,1.617916 -4.687386,2.8500914 4.687386,2.8500922 -0.886654,1.617915 -4.681902,-2.846435 v 5.691042 h -1.784278 v -5.691042 l -4.680073,2.846435 -0.888484,-1.617915 4.687387,-2.8500922 -4.687387,-2.8500914 0.886656,-1.617916 4.681901,2.8464352 z M 1.0310983,15.725393 h 7.3126141 v 7.312614 H 1.0310983 Z"})}),exports.jt=pt,exports.mergeRefs=o1,exports.nl=function(e){var t=e.children,n=e.legacy,o=n!==void 0&&n,r=e.suspense,i=r===void 0||r,l=e.fallback,d=l===void 0?null:l,c=s.useReducer(nb,tb),u=c[0],f=c[1],p=s.useCallback(function(v,b){var C=K8(b,ob);v?f({type:rr.UPDATE,payload:{id:v,props:C}}):console.error(I1)},[f]),h=s.useCallback(function(v){v?f({type:rr.HIDE,payload:{id:v}}):console.error(I1)},[f]),m=s.useCallback(function(v){v?f({type:rr.DESTROY,payload:{id:v}}):console.error(I1)},[f]),g=s.useCallback(function(v){v?f({type:rr.DESTROY_BY_ROOT_ID,payload:{rootId:v}}):console.error("[ERROR]: Modal root ID is missing")},[f]),x=s.useCallback(function(v,b,C){var k=Y8(8);return C&&C.rootId&&(k=C.rootId+"."+k),f({type:rr.SHOW,payload:{id:k,component:v,props:b,options:C}}),{id:k,hide:function(){return h(k)},destroy:function(){return m(k)},update:function(_){return p(k,_)}}},[f,h,m,p]),y=i?s.Suspense:s.Fragment;return s.createElement(X8.Provider,{value:{state:u,updateModal:p,hideModal:h,destroyModal:m,showModal:x,destroyModalsByRootId:g}},t,s.createElement(y,Object.assign({},i&&{fallback:d}),Object.keys(u).map(function(v){var b,C=u[v],k=C.component,_=C.props,I=C.options,M=function(){var F,j;_!=null&&_.onExited&&_.onExited.apply(_,arguments),_!=null&&(F=_.TransitionProps)!=null&&F.onExited&&(j=_.TransitionProps).onExited.apply(j,arguments),m(v)};return b=o?{onExited:M}:{TransitionProps:vo({},_?.TransitionProps,{onExited:M})},s.createElement(k,Object.assign({},_,{key:v,onClose:function(){I&&I.hideOnClose&&h(v),I&&I.destroyOnClose&&I.hideOnClose&&m(v),_&&_.onClose&&_.onClose.apply(_,arguments)}},I&&!I.destroyOnClose&&b))})))},exports.oa=e=>a.jsxs(V.SvgIcon,{...e,children:[a.jsx("path",{d:"M15.73 3H8.27L3 8.27v7.46L8.27 21h7.46L21 15.73V8.27zM19 14.9 14.9 19H9.1L5 14.9V9.1L9.1 5h5.8L19 9.1z"}),a.jsx("path",{d:"M11 7h2v6h-2zm0 8h2v2h-2z"})]}),exports.ol=function(){const[e,t]=s.useState(()=>new Map),{showModal:n,updateModal:o,destroyModal:r,hideModal:i}=ua({disableAutoDestroy:!0});return(l,d,c,u)=>new Promise((f,p)=>{const h={...c,onHide:()=>{const y=e.get(l);c?.onHide?.(),t(v=>(v.delete(l),v)),i(y.id)},onDone:y=>{const v=e.get(l);t(b=>(b.delete(l),b)),c?.onDone?.(y),v&&v.id&&!u?.disableAutoDestroy&&r(v.id)},onShown:y=>{t(v=>{const b=v.get(l);return v.set(l,{...b,element:y}),v}),f(y)},open:!0},m=e.get(l);if(m)return o(m.id,h),void f(m.element);if(!d)return void p("invalid function");const g=s.lazy(d),x=n(g,h,{destroyOnClose:!u?.disableAutoDestroy});t(y=>(y.set(l,{id:x.id,element:null}),y))})},exports.qa=Fy,exports.renderWorkbookToolbars=ef,exports.requirePropTypes=Zl,exports.ro=nn,exports.s0=Yt,exports.sl=gi,exports.styleFunctionSx=Ci,exports.tl=G8,exports.useMeasure=Bl,exports.useResolvedThemeMode=function(e){const{mode:t}=e||{},[n,o]=s.useState(()=>{if(t==="light"||t==="dark")return{themeMode:t,source:"prop"};if(typeof document<"u"){const r=W4();if(r)return{themeMode:r,source:"class"}}return{themeMode:U4(),source:"media"}});return s.useEffect(()=>{if(t&&t!==n?.themeMode)return void o({themeMode:t,source:"prop"});const r=()=>{const c=W4();if(c)o({themeMode:c,source:"class"});else{const u=U4();o({themeMode:u,source:"media"})}},i=new MutationObserver(r),l=[document.documentElement,document.body].filter(Boolean);for(const c of l)i.observe(c,{attributes:!0,attributeFilter:["class"]});const d=window.matchMedia("(prefers-color-scheme: dark)");return d.addEventListener("change",r),r(),()=>{i.disconnect(),d.removeEventListener("change",r)}},[t]),n},exports.useTheme=xr,exports.useWorkbookCommands=tf,exports.v3=Mr,exports.vo=zt,exports.y5=ve,exports.ye=jr,exports.zi=e=>a.jsxs(V.SvgIcon,{...e,children:[a.jsx("path",{d:"M 6.7070312 0.16992188 C 5.4051693 0.16992188 4.3496094 1.2254824 4.3496094 2.5273438 L 4.3496094 7.8164062 L 5.921875 7.8164062 L 5.921875 2.5273438 C 5.921875 2.093443 6.2731425 1.7421875 6.7070312 1.7421875 L 15.349609 1.7421875 L 15.349609 5.6699219 C 15.349609 6.1038229 15.702818 6.4550781 16.136719 6.4550781 L 20.064453 6.4550781 L 20.064453 8.1074219 L 21.636719 8.1074219 L 21.636719 5.6699219 C 21.636719 5.4615699 21.553577 5.2605954 21.40625 5.1132812 L 16.691406 0.40039062 C 16.544093 0.25302252 16.345071 0.16992188 16.136719 0.16992188 L 6.7070312 0.16992188 z M 20.064453 18.873047 L 20.064453 19.8125 C 20.064453 20.246402 19.713186 20.597656 19.279297 20.597656 L 9.1601562 20.597656 L 7.5878906 22.169922 L 19.279297 22.169922 C 20.581159 22.169922 21.636719 21.114363 21.636719 19.8125 L 21.636719 18.873047 L 20.064453 18.873047 z "}),a.jsx("path",{className:"styled secondary_light",d:"M 10.363689,16.028891 10.345659,15.996611 9.4734966,14.37091 8.5619879,16.028912 H 7.3633702 L 8.8418569,13.567063 7.3668314,10.90392 H 8.63729 l 0.018027,0.03581 0.872161,1.729842 0.907731,-1.765668 h 1.198618 l -1.478485,2.616296 1.482266,2.512154 z m 4.665607,0 h -2.953777 v -5.124987 h 1.137804 l -2.54e-4,4.102093 h 1.833979 z m 3.309014,-0.330196 h -2.55e-4 c -0.364996,0.290393 -0.822367,0.439348 -1.288281,0.419821 -0.483409,-0.01051 -0.964575,-0.07059 -1.43568,-0.179494 l -0.319438,-0.06109 0.118416,-0.907988 h 0.06109 c 0.496925,0.07435 0.997838,0.118671 1.500281,0.132932 0.484409,0 0.717711,-0.193763 0.717711,-0.585048 0.0084,-0.126168 -0.05033,-0.247587 -0.154462,-0.319436 -0.217293,-0.125426 -0.451866,-0.218549 -0.696178,-0.276375 -0.450111,-0.10039 -0.871457,-0.302915 -1.230924,-0.592056 -0.250844,-0.261105 -0.380767,-0.61484 -0.358989,-0.976048 -0.03205,-0.442856 0.145944,-0.875173 0.480903,-1.16658 0.372757,-0.27187 0.827876,-0.4063 1.288473,-0.380266 0.468637,0.0088 0.935799,0.05808 1.396139,0.147202 l 0.322941,0.06109 -0.09338,0.922278 h -0.0646 c -0.685413,-0.07536 -1.17709,-0.1149 -1.456957,-0.1149 -0.739246,0 -0.739246,0.35899 -0.739246,0.46663 v -2.53e-4 c -2.54e-4,0.124163 0.06334,0.239575 0.168479,0.305162 0.293896,0.149452 0.601566,0.269614 0.918754,0.35899 0.387778,0.100895 0.747253,0.288643 1.05167,0.548998 0.22756,0.265109 0.339963,0.610077 0.312175,0.958295 0.03504,0.464132 -0.141691,0.919267 -0.480905,1.238164 z m 3.631947,0.330195 v -0.03228 l -0.879468,-1.625958 -0.911511,1.658 -1.1951,2.55e-4 1.482273,-2.461843 -1.475286,-2.663143 h 1.270463 l 0.01803,0.0358 0.872162,1.729842 0.907988,-1.765667 h 1.184331 l -1.478492,2.616295 1.482272,2.512152 z M 23.139315,8.7167969 H 7.4504548 c -0.4289405,0 -0.7768148,0.347658 -0.7768148,0.776813 V 17.24011 c 0,0.206119 0.081937,0.403576 0.2275848,0.549445 0.145652,0.145651 0.3433235,0.227367 0.54923,0.227367 H 23.139315 c 0.205907,0 0.403578,-0.08172 0.54923,-0.227367 0.145653,-0.145869 0.227586,-0.343326 0.227586,-0.549445 V 9.4936099 c 0,-0.206121 -0.08194,-0.403577 -0.227586,-0.549446 -0.145652,-0.145652 -0.343323,-0.227367 -0.54923,-0.227367 z"}),a.jsx("path",{className:"styled info",d:"m 8.9270053,19.509881 h -3.3 V 8.5098782 H 3.4270047 V 19.509881 H 0.127005 l 4.3999997,4.4 z"})]});