@sheetxl/studio-mui 0.4.17 → 0.4.19
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.
- package/browser/cjs/{BOCgHRbIJExC8POQ.cjs → 9JbHyHSHGCO4uFHn.cjs} +2 -2
- package/browser/cjs/{CeuJK4PoHcmccV_F.cjs → B17ClH6YVt0_UP8s.cjs} +2 -2
- package/browser/cjs/{DD5Nr0-7U1UxlPj8.cjs → B9LTfguTHj9uQv3h.cjs} +2 -2
- package/browser/cjs/{BZsnO4mW5JcXgTGA.cjs → BYWh4kkrXJKKl2Ju.cjs} +1 -1
- package/browser/cjs/{Dh6QBGVsFhim2tTd.cjs → BYrNOLTwEhs6LHAw.cjs} +2 -2
- package/browser/cjs/{BUG9y0_loZgWQ7tW.cjs → Bh8xJY_qVp_q9NdJ.cjs} +2 -2
- package/browser/cjs/{DaYzUVuR0ugR8hrg.cjs → Bl5l1B_eznDfB_7v.cjs} +3 -3
- package/browser/cjs/{D0IIQ1dYQXmEa15H.cjs → C1LBzI2ntslIKFn5.cjs} +2 -2
- package/browser/cjs/{bjdWplN6b3k80-kP.cjs → CGWf__jrNH3xfu2y.cjs} +1 -1
- package/browser/cjs/{uSp5BmANmpzA1bZa.cjs → CGlk1dj000Bm5cqP.cjs} +1 -1
- package/browser/cjs/{izvSIePlPESm66Qp.cjs → CX_y7y31Q5qi020q.cjs} +2 -2
- package/browser/cjs/{BTZR0AimcnAr7Fj2.cjs → Cby5RVhO-aNkuWsV.cjs} +3 -3
- package/browser/cjs/{DL5nJbjXn8thdisC.cjs → D2CoaVzteKVTLz2u.cjs} +2 -2
- package/browser/cjs/{42fP3igzD5lJ4hYv.cjs → D4ge-OwnSGkzaQnk.cjs} +1 -1
- package/browser/cjs/{Bsy58eCt7gwOEk14.cjs → D54KO7Qf1gFYpUYh.cjs} +1 -1
- package/browser/cjs/{Cfdsi9qDdB1MxUWz.cjs → D5Hr7ebLiJgvcT0k.cjs} +2 -2
- package/browser/cjs/{DQfqitT35b3JWRTc.cjs → D6qxm65mk30iMCfQ.cjs} +1 -1
- package/browser/cjs/{6c3FLf6F2HYFr9Cp.cjs → DIR6Yr7FCZPYWi4-.cjs} +2 -2
- package/browser/cjs/{DH9HOBDzz0DNIK6h.cjs → DeklxocxxZiZyZ5u.cjs} +2 -2
- package/browser/cjs/Dh2Z7N-jImJZemiw.cjs +6 -0
- package/browser/cjs/{AtyvdaPqva4ddpyv.cjs → Dngll9GyDqkTUUmu.cjs} +2 -2
- package/browser/cjs/{xRN8BKd3vUsVhAO_.cjs → KmAkK4F7kLQEM3IN.cjs} +1 -1
- package/browser/cjs/{CnL8JIosyTM5rmov.cjs → afHzhXTMVhLQJ6uC.cjs} +1 -1
- package/browser/cjs/index.cjs +2 -2
- package/browser/cjs/{CxWL94AkWpkw09QA.cjs → n8wDl6JTlhLU6ZAW.cjs} +1 -1
- package/browser/cjs/zr0HW2FkaHX7brxh.cjs +110 -0
- package/browser/esm/{DizmF40NmtvI4PuC.mjs → 6nabbOchsfGHTDbJ.mjs} +2 -2
- package/browser/esm/{Br4PVBNRyyGcX-wi.mjs → B8eNugj_qKnbe7K9.mjs} +4 -4
- package/browser/esm/{CpY13ThmOfF44oSe.mjs → BPRkMu1MFxUWK930.mjs} +1 -1
- package/browser/esm/{CbHlxpie0vyGscx7.mjs → BQtrstD4gTIutZpE.mjs} +6 -6
- package/browser/esm/{DDRkAs8AtzZP_Cz7.mjs → BeT_3zf80WoubGnC.mjs} +1 -1
- package/browser/esm/{CclyHyCBXnyN6Fdg.mjs → C226zpF9x3cqGDep.mjs} +9 -9
- package/browser/esm/{B-Wz_1L4pOskX12u.mjs → C4lgCnqxoHUTMKx0.mjs} +1 -1
- package/browser/esm/{BexGIcS0C8hwA6a1.mjs → C52hEZh6H2W5Zw5u.mjs} +27 -27
- package/browser/esm/{DtJM1F1V70Q1mAUo.mjs → CJi45DDPGy79h3Hk.mjs} +1 -1
- package/browser/esm/{DmWXBYW3n22gX0vN.mjs → CSAsCpXnzBKwTizz.mjs} +15018 -12508
- package/browser/esm/{CBF19HOWEYe2IgUD.mjs → ChetmIXTvR3tA23A.mjs} +2 -2
- package/browser/esm/{CB1XPAFJt251Zx_7.mjs → CtAFduFwOuqSdkvi.mjs} +7 -7
- package/browser/esm/{eDGoxcPQG3txO_tV.mjs → D1mFp2w9djJ0V4vm.mjs} +2 -2
- package/browser/esm/{BPMibfrFsxDm-GJg.mjs → DA83VkmtEXnqG2ye.mjs} +2 -2
- package/browser/esm/{C3APpiEMOp--Gil3.mjs → Duk7LVR9m02nk_H1.mjs} +78 -78
- package/browser/esm/{DGqh3melQ6ESgUuQ.mjs → DwyDpojQzn8Yb0Z3.mjs} +2 -2
- package/browser/esm/{Dgvtpd04sp4TR3EP.mjs → Dy_zBluT96wehR25.mjs} +3 -3
- package/browser/esm/{CDnf9m1lgsKa1J8_.mjs → NwT_h_qyOIJUd95T.mjs} +1 -1
- package/browser/esm/{6rR1HjMNUbkvLNnr.mjs → aeeg2i5lmw2EnSq8.mjs} +2 -2
- package/browser/esm/{CsGxaGNOM6S14Afr.mjs → eNfgzWFw915mA1DM.mjs} +1 -1
- package/browser/esm/i07lQ5p_zaWwjifI.mjs +12 -0
- package/browser/esm/index.mjs +17 -17
- package/browser/esm/{D18232rReW77zZWW.mjs → mWKbTdOrhJijxGkQ.mjs} +1 -1
- package/browser/esm/{CfsFjdFEIyrGmdTb.mjs → qTwpcY21ZDbsJF8q.mjs} +1 -1
- package/browser/esm/{DQvvzlYHPC8l7J1V.mjs → rOu2mn5CpwGjRPMt.mjs} +1 -1
- package/browser/esm/{P-LNFKD50lzGS12Z.mjs → xBoO8UGcKLTEtu2_.mjs} +3 -3
- package/licenses/dependencies.txt +452 -452
- package/node/esm/{Di2TJwpYyxv4YpB8.mjs → 8IRz_tiw9gL3CiTm.mjs} +3 -3
- package/node/esm/{CYit9RacOn3ZEwFw.mjs → BGuyZxOceFDiCkHS.mjs} +1 -1
- package/node/esm/{B2S0YL_dwkBXfGhe.mjs → BOlA6nKvsuwJ8-qE.mjs} +1 -1
- package/node/esm/{D-97BhavryZS0vtU.mjs → BRc35RfDs9NeSBil.mjs} +1 -1
- package/node/esm/{BdNtmb56hTPeZBjZ.mjs → BWNYjBRxl8-kaqWc.mjs} +3 -3
- package/node/esm/{C9wT4i4MRsxh7OiZ.mjs → BbLVlH-VHXBiyGbB.mjs} +1 -1
- package/node/esm/{DzRQ2bew029UwNuR.mjs → Bdk5FW-41aJV-x0f.mjs} +1 -1
- package/node/esm/{tiWcQFJ2Ldtv1D2r.mjs → C1qlFAMFUg7JxINj.mjs} +1 -1
- package/node/esm/{CzfRMm-QAG_LhxlI.mjs → C2KYv5fsjkP4dceu.mjs} +2 -2
- package/node/esm/{JvW70Educ7GHF3q5.mjs → C7eBwbZmMMcQeZ5y.mjs} +6 -6
- package/node/esm/{DLInEkhYf3ZBb8YN.mjs → CCmhTOlFNku7bidD.mjs} +1 -1
- package/node/esm/{D9bygJrTTbFQONCm.mjs → COWuJnOkG4AgfLpx.mjs} +1 -1
- package/node/esm/{Bt-kExL2bCJeDIeY.mjs → CcxYuxLYIW_z4w-n.mjs} +1 -1
- package/node/esm/{DFvdUEdyZuMtIWLx.mjs → Cqh-VwF8iLFUBQG2.mjs} +2 -2
- package/node/esm/{Hz79mLQX1ulmIi5y.mjs → DO-FR-M-Iy43f7rk.mjs} +2 -2
- package/node/esm/{zo9Z7gGu2mZMakML.mjs → DOa-YBJSa8QO8ypH.mjs} +1 -1
- package/node/esm/{CxAbwCFKXIJiz97c.mjs → DXgMMPZD2XcdNWPg.mjs} +1 -1
- package/node/esm/{0EAKhg_GR95dM4f8.mjs → DXlF9nEg2kAr3Ykp.mjs} +1 -1
- package/node/esm/{ewxvrrOsTrTYVqAm.mjs → FcospSz9-0aW4gFs.mjs} +1 -1
- package/node/esm/{CRSU3V3UlVaau1NQ.mjs → SdVxzy9D4jvK5ILt.mjs} +1 -1
- package/node/esm/{DEQaB8LW4hbsaAj2.mjs → Svd1DLPJnYKhJsxn.mjs} +1 -1
- package/node/esm/index.mjs +13133 -10685
- package/node/esm/{B3TFIV3_OyjbELR7.mjs → wuBONOGgEy1w5A3Q.mjs} +1 -1
- package/package.json +8 -8
- package/browser/cjs/WjZL1fL4X3Pl3O9Q.cjs +0 -96
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
"use strict";/**
|
|
2
|
+
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.4.19
|
|
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"),d=require("react"),B=require("@mui/material"),ht=require("@mui/system"),cd=require("react-dom/client"),ao=require("react-dom"),fi=require("@mui/styled-engine"),gn=require("@mui/icons-material"),tm=require("@mui/utils");function vw(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 o0=vw(d);function nm(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=nm(e[t]))&&(o&&(o+=" "),o+=n)}else for(n in e)e[n]&&(o&&(o+=" "),o+=n);return o}function Yn(){for(var e,t,n=0,o="",r=arguments.length;n<r;n++)(e=arguments[n])&&(t=nm(e))&&(o&&(o+=" "),o+=t);return o}const tr="text/html",Oi="text/plain",Bd="image/png",Sw=Object.freeze({left:0,top:0}),Cw=Object.freeze({left:0,top:0,bottom:0,right:0}),_w=Object.freeze({x:0,y:0,width:0,height:0});Object.freeze(Object.defineProperty({__proto__:null,EmptyBounds:_w,EmptyRect:Cw,EmptyTopLeft:Sw},Symbol.toStringTag,{value:"Module"}));const j0="column",ss="row",Ew=Object.freeze({colIndex:0,rowIndex:0}),kw=Object.freeze({colStart:0,rowStart:0,colEnd:0,rowEnd:0}),om=(e,t)=>e.colStart===t.colStart?e.rowStart-t.rowStart:e.colStart-t.colStart,rm=(e,t)=>e.rowStart===t.rowStart?e.colStart-t.colStart:e.rowStart-t.rowStart,Tw=(e,t)=>e.rowEnd===t.rowEnd?t.colEnd-e.colEnd:t.rowEnd-e.rowEnd,jw=(e,t)=>e.colEnd===t.colEnd?t.rowEnd-e.rowEnd:t.colEnd-e.colEnd,Ch=(e,t)=>e.colIndex===t.colIndex?e.rowIndex-t.rowIndex:e.colIndex-t.colIndex,_h=(e,t)=>e.rowIndex===t.rowIndex?e.colIndex-t.colIndex:e.rowIndex-t.rowIndex,im=(e=ss,t=!1)=>t?e!==j0?Tw:jw:e!==j0?rm:om,Eh=(e,t)=>e===t||!(!e||!t)&&e.rowIndex===t.rowIndex&&e.colIndex===t.colIndex,f2=(e,t)=>e===t||!(!e||!t)&&e.rowStart===t.rowStart&&e.rowEnd===t.rowEnd&&e.colStart===t.colStart&&e.colEnd===t.colEnd,m2=(e,t)=>!(!e||!t||e.colStart>t.colEnd||t.colStart>e.colEnd||e.rowStart>t.rowEnd||t.rowStart>e.rowEnd),kh=(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(!f2(e[n],t[n]))return!1;return!0},Nd=(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 c=n;return c?(c.colStart=o,c.rowStart=r,c.colEnd=i,c.rowEnd=l):c={colStart:o,rowStart:r,colEnd:i,rowEnd:l},c},Th=(e,t)=>{if(!t||t.length===0)return e;const n={...e};for(let o=0;o<t.length;o++){const r=t[o];m2(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},Mw=[null,null],Rw=(e,t,n)=>{if(e[0].value===e[1].value)return t};function jh(e,t=2,n,o=ss,r){let i=[...e];if(t<=0||e.length<=1)return i;let l=o===j0,c=0,s=!1;do{const u=i.sort(im(l?ss:j0));i=[],i.push(u[0]);const h=u.length;let f=0,p=u[0],m=p.colStart,g=p.rowStart,x=p.colEnd,y=p.rowEnd;for(let w=1;w<h;w++){const b=u[w];let C=!1;if(C=l?p&&g===b.rowStart&&y===b.rowEnd&&x+1===b.colStart:p&&m===b.colStart&&x===b.colEnd&&y+1===b.rowStart,C){let _={colStart:m,rowStart:g,colEnd:l?b.colEnd:x,rowEnd:l?y:b.rowEnd};if(p.value!==void 0&&(_.value=p.value),n){const E=r??[null,null];E[0]=p,E[1]=b,_=n(E,_,o)}if(_){i[f]=_,s=!0,p=_,m=p.colStart,g=p.rowStart,x=p.colEnd,y=p.rowEnd;continue}}i[++f]=b,p=b,m=p.colStart,g=p.rowStart,x=p.colEnd,y=p.rowEnd}c++,l=!l,c===1&&(s=!0)}while(c<t&&s&&i.length>1);return i}Object.freeze(Object.defineProperty({__proto__:null,EmptyCell:Ew,EmptyRange:kw,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:Ch,columnFirstRangeComparator:om,createCellComparator:(e=ss,t=!1)=>t?e!==j0?(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!==j0?_h:Ch,createConflatingRanges:(e,t=!1)=>{const n=[];let o,r,i=Number.MIN_SAFE_INTEGER,l=Number.MIN_SAFE_INTEGER;return{append:(c,s,u)=>{let h=!0;const f=u!==void 0;if(f){const g=e?e(r,u,t):r===u?u:void 0;g===void 0?h=!1:u=g}if(h&&s===l+1&&c===i)return t?o.rowEnd=s:o.colEnd=s,l=s,void(r=u);o&&n.push(o);const p=t?c:s,m=t?s:c;o={colStart:p,rowStart:m,colEnd:p,rowEnd:m},f&&(o.value=u),i=c,l=s,r=u},done:c=>(o&&(n.push(o),o=null),c?jh(n,3,c===!0?Rw:c,t?j0:ss,Mw):n)}},createRangeComparator:im,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:Th,extendRangeToUnionRanges:(e,t)=>{if(!t||t.length===0)return e;let n=e,o=null;for(;!f2(n,o);)o=n,n=Th(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(m2(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 c=n;return c?(c.colStart=o,c.rowStart=r,c.colEnd=i,c.rowEnd=l):c={colStart:o,rowStart:r,colEnd:i,rowEnd:l},c},isCellWithinRange:(e,t)=>!(!e||!t||e.rowIndex<t.rowStart||e.rowIndex>t.rowEnd||e.colIndex<t.colStart||e.colIndex>t.colEnd),isEqualCells:Eh,isEqualRanges:f2,isEqualRangesArrays:kh,isEqualSelectionCoords:(e,t)=>e===t||!(!e||!t)&&e.rangeIndex===t.rangeIndex&&!!Eh(e.cell,t.cell)&&kh(e.ranges,t.ranges),isRangeWithinRange:(e,t)=>!(e.rowStart<t.rowStart||e.rowEnd>t.rowEnd||e.colStart<t.colStart||e.colEnd>t.colEnd),isRangesIntersect:m2,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:jh,rowFirstCellComparator:_h,rowFirstRangeComparator:rm,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:Nd,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=Nd(o,e[r],n);return t&&(o=Nd(o,t,n)),o}},Symbol.toStringTag,{value:"Module"}));const Iw=typeof Symbol=="function"&&Symbol.for?Symbol.for("react.element"):60103;function Dw(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]"||function(o){return o.$$typeof===Iw}(t)}(e)}function Fa(e,t){return t.clone!==!1&&t.isMergeableObject(e)?O0((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}function Lw(e,t,n){return e.concat(t).map(function(o){return Fa(o,n)})}function Mh(e){return Object.keys(e).concat(function(t){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter(function(n){return Object.propertyIsEnumerable.call(t,n)}):[]}(e))}function Rh(e,t){try{return t in e}catch{return!1}}function O0(e,t,n){(n=n||{}).arrayMerge=n.arrayMerge||Lw,n.isMergeableObject=n.isMergeableObject||Dw,n.cloneUnlessOtherwiseSpecified=Fa;const o=Array.isArray(t);return o===Array.isArray(e)?o?n.arrayMerge(e,t,n):function(r,i,l){const c={};return l.isMergeableObject(r)&&Mh(r).forEach(function(s){c[s]=Fa(r[s],l)}),Mh(i).forEach(function(s){(function(u,h){return Rh(u,h)&&!(Object.hasOwnProperty.call(u,h)&&Object.propertyIsEnumerable.call(u,h))})(r,s)||(Rh(r,s)&&l.isMergeableObject(i[s])?c[s]=function(u,h){if(!h.customMerge)return O0;const f=h.customMerge(u);return typeof f=="function"?f:O0}(s,l)(r[s],i[s],l):c[s]=Fa(i[s],l))}),c}(e,t,n):Fa(t,n)}O0.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(n,o){return O0(n,o,t)},{})};const Ow=Object.freeze([]),Pw=Object.freeze({}),Ih=e=>e,Kc=()=>"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)}),lm=(e,t)=>e===t||!(!Array.isArray(e)||!Array.isArray(t)||e.length!==t.length)&&e.every((n,o)=>n===t[o]),aa=e=>typeof e=="object"&&!Array.isArray(e)&&e!==null,am=e=>typeof e!="object"||Array.isArray(e)||e===null?e:(Object.keys(e).forEach(function(t){e[t]&&typeof e[t]=="object"?am(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),Aw=(e,t)=>!(e!==t&&!lm(e,t)&&!e.isEqual?.(t)),sm=(e,t,n=Aw)=>{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];sm(e[l],t?.[l],n)===null&&(r=!0,delete e[l])}return r&&Object.keys(e).length===0?null:void 0},Dh=typeof performance=="object"&&typeof performance.now=="function"?()=>performance.now():()=>Date.now(),Lh=e=>e==null,Oh=(e,t)=>!(t.left>e.right||t.right<e.left||t.top>e.bottom||t.bottom<e.top),Ph=!(typeof window>"u"||!window.document||!window.document.createElement),nr={Windows:"windows",MacOS:"macos",IOS:"ios",Linux:"linux",Android:"android",Safari:"safari",Firefox:"firefox",Node:"node",Unknown:"unknown"},cs=()=>{if(cm())return nr.Node;const e=globalThis.navigator!==void 0&&globalThis.navigator.userAgent?globalThis.navigator.userAgent.toLowerCase():"";return e?/(win32|win64|windows|wince)/i.test(e)?nr.Windows:/(macintosh|macintel|macppc|mac68k|macos)/i.test(e)?nr.MacOS:/(iphone|ipad|ipod)/i.test(e)?nr.IOS:/android/.test(e)?nr.Android:/linux/.test(e)?nr.Linux:/^((?!chrome|android|).)*safari/i.test(e)?nr.Safari:/^((?!chrome|android|Seamonkey).)*firefox/i.test(e)?nr.Firefox:nr.Unknown:nr.Unknown};function cm(){return typeof process<"u"&&process.release?.name==="node"||(typeof process<"u"&&process.browser,!1)}const Ah=(e,t=!1)=>(document.hasFocus()||t)&&(e===document.activeElement||e?.contains(document.activeElement)),ur=Object.freeze(Object.defineProperty({__proto__:null,EmptyArray:Ow,EmptyObject:Pw,OSType:nr,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:Ph,cancelTimeout:e=>{cancelAnimationFrame(e.id)},castToString:e=>e==null||e===void 0?"":typeof e!="string"?""+e:e,cloneObject:e=>Lh(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,c=0;function s(){let h=Date.now()-c;h<t&&h>=0?o=setTimeout(s,t-h):(o=null,n||(l=e.apply(i,r),i=r=null))}t==null&&(t=100);const u=function(){i=globalThis,r=arguments,c=Date.now();var h=n&&!o;return o||(o=setTimeout(s,t)),h&&(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:O0,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=Ih){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=Ih){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||!aa(l))return l;o=l}return o??null},getOS:cs,hasFocus:Ah,isDefined:e=>e!=null,isEmpty:e=>e==null||e==="",isEqualArrays:lm,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:cm,isNullOrUndefined:Lh,isNumeric:e=>{const t=1*e;return Number.isFinite(t)&&typeof t=="number"},isObject:aa,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:Oh,mergeContentful:(...e)=>{const t=e.length;if(t>0&&e[t-1]!==void 0&&!aa(e[t-1]))return e[t-1];let n=e[0]||{};for(let o=1;o<t;o++)n=O0(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(!Ph)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:am,removeEqualValues:sm,removeListenerAll:e=>{if(!e)return[];for(let t=0;t<e.length;t++)e[t]&&e[t]();return[]},requestTimeout:(e,t)=>{const n=Dh(),o={id:requestAnimationFrame(function r(){Dh()-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 c=r[l];if(c==null&&(c={},r[l]=c),!aa(c))throw new Error("Can not set path to a non object path.");r=c}if(typeof n!="number"&&typeof n!="boolean"&&typeof n!="string"&&!aa(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(!Oh(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})},c=()=>{t.right>r.left&&t.right<r.right&&(o.push({...r,left:t.right}),r={...r,right:t.right})},s=()=>{t.left>r.left&&t.left<r.right&&(o.push({...r,right:t.left}),r={...r,left:t.left})};return n?(s(),c(),i(),l()):(i(),l(),c(),s()),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:Kc,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=>{Ah(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 dm=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")},g2=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:dm,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:g2},Symbol.toStringTag,{value:"Module"}));const um="data:image/png;base64,",hm="Unable to resolve image.",Fh=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(hm)}),Vd="image/svg+xml";var zh,Bh;Object.freeze(Object.defineProperty({__proto__:null,DATA_URL_PNG_PREFIX:um,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(hm)}),loadImageDetails:async(e,t=null)=>{let n=null;const o=async()=>{try{const i=t??"image/*",l=URL.createObjectURL(new Blob([e],{type:i})),c=await Fh(l);n={mimeType:i,naturalDimensions:c,asUrl:l}}catch{}},r=async()=>{try{const i=new TextDecoder().decode(e),l=URL.createObjectURL(new Blob([i],{type:Vd})),c=await Fh(l);n={mimeType:t??Vd,naturalDimensions:c,asUrl:l,asSVGText:i}}catch{}};if(t===Vd?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"})),(Bh=zh||(zh={})).resolveTypedUpdates=(e,t,n,o)=>{if(e===null)return e;if(e===void 0)return o;let r=e;if(t?.shorthand){const s=t?.shorthand(e,n);s!==void 0&&(r=s)}if(r!==null&&t?.getSubType){const s=t.getSubType(r);s&&(t=s)}const i=t?.properties,l=t?.arrayType??!1;let c=r;if(t&&t.merge&&c&&o)c=t.merge(c,o,n);else if(!l&&i){const s=Object.keys({...r,...o});c=null;for(let u=0;u<s.length;u++){const h=s[u];let f,p=r[h];if(p!==void 0){const m=i[h];f=m?(0,Bh.resolveTypedUpdates)(p,m,n,o?.[h]):p}else f=o?.[h];f!=null&&(c=c??{},c[h]=f)}}return c};let x2=class extends Error{constructor(e,t=null){super(e,t),this.name="ChainedError",this._cause=t}get cause(){return this._cause}};const Nh=`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.`,Hd=`You do not have permissions to access the clipboard.
|
|
10
|
+
All copy and paste operations will be limited to the browser tab.`,pm={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:Hd,PermsWrite:cs()===nr.Safari?Nh:Hd,PermsRead:cs()===nr.Safari?Nh:Hd},$d=async()=>new Promise(e=>{document.hasFocus()?e():globalThis.addEventListener?.("focus",()=>{e()},{once:!0}),document.activeElement.focus?.()}),Wd=async(e,t,n)=>{if(cs()===nr.Safari)return await n(new Error(pm.Safari));try{const o=async l=>{try{return await l()}catch(c){if(c.message?.includes("Document is not focused"))return!1;throw c}},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)}},fm=async e=>{try{return await e.read({unsanitized:[tr]})}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 c=0;c<l.length;c++){const s=l[c];let u=o[s];i[s]=typeof u=="string"?e(s,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 y2=async(e,t=tr)=>new Promise(async(n,o)=>{try{const r=await(async(i,l)=>{if(!i)return null;const c=await fm(i);let s=!1;for(let u=0;!s&&c&&u<c.length;u++)if(s=c[u].types.includes(l),s)return await c[u].getType(l);return s?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)}}),Vh=async(e,t=tr)=>{const n=await y2(e,t);if(!n)return null;let o=null;try{o=new DOMParser().parseFromString(n,tr)}catch{console.warn("Can't parse html from clipboard.")}return o},ds="clipboard-uuid",Q0="web text/uuid",Hh=e=>`<div style="display:none" ${ds}="${e}"/>`,Fw=(e,t)=>{let n=null;try{const o=new DOMParser().parseFromString(t,tr);o.body.firstElementChild.setAttribute(ds,e),n=o.getElementsByTagName("body")[0].innerHTML}catch(o){console.warn("Can't embed uuid.",o)}return n},$h=(e,t)=>{if(!t||!e)return!1;try{const n=t.querySelectorAll(`[${ds}="${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 b1=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 Wd("clipboard-read",async()=>{await $d();const e=await y2(this._nativeClipboard,Q0);if(!this._state||e&&e===this._state.uuid)return!0;const t=await Vh(this._nativeClipboard,tr);return!this._state||($h(this._state.uuid,t)||this.clear(),!0)},async e=>{e?.message==="denied"||e.message?.includes("Document is not focused")||cs()===nr.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 Wd("clipboard-read",async()=>{if(await $d(),this._state?.uuid){const t=await y2(this._nativeClipboard,Q0);if(t&&t===e._state.uuid)return!0;const n=await Vh(this._nativeClipboard,tr);if($h(e._state?.uuid,n))return!0}return e._state={items:await fm(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:Kc(),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 Wd("clipboard-write",async()=>{await $d(),o&&r.length===0&&(r.push(new ClipboardItem({[Q0]:new Blob([o],{type:Q0})})),r.push(new ClipboardItem({[tr]:new Blob([Hh(o)],{type:tr})})));for(let l=0;l<Math.min(1,r.length);l++){const c=r[l];let s=c.types.indexOf(tr),u=null;if(s!==-1){const p=await c.getType(tr);u=await g2(p),u&&(u=Fw(o,u))}if(!u&&c.types.includes(Oi)){const p=await c.getType(Oi);if(p){let m=null;typeof p=="string"?(console.warn("text as string",p),m=p):m=await g2(p),m&&(u=`<div ${ds}="${o}">${m}</div>`)}}if(!u&&c.types.includes(Bd)){const p=await c.getType(Bd),m=dm(await p.arrayBuffer());u=`<div ${ds}="${o}"><img src="${um+m}"/></div>`}!u&&o&&(u=Hh(o));const h=new Blob([u??""],{type:tr}),f={};for(let p=0;p<c.types.length;p++){const m=c.types[p];f[m]=p===s?h:c.getType(m)}u&&s===-1&&(f[tr]=h),o&&(f[Q0]=new Blob([o],{type:Q0})),n.push(new ClipboardItem(f))}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[Oi]=new Blob([r??""],{type:Oi}))}catch(r){t=r}try{const r=await e.toHtml?.()??null;r&&(n[tr]=new Blob([r],{type:tr}))}catch(r){t=r,console.warn("export to html",r)}try{const r=await e.toImage?.()??null;r&&(n[Bd]=r)}catch(r){t=r,console.warn("export to png",r)}const o=this._write({uuid:Kc(),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(Oi)&&(o=await n[i].getType(Oi));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({[Oi]:new Blob([e],{type:Oi})})];return this._write({uuid:Kc(),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 Ud;(Ud=b1||(b1={})).ErrorMessages=pm,Ud.Global=new Ud,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 tn={Shift:"shift",Alt:"alt",Ctrl:"ctrl",Meta:"meta"},Cn={Tab:9,Enter:13,Escape:27,Space:32,Left:37,Up:38,Right:39,Down:40,F1:112},r0={Horizontal:"horizontal",Vertical:"vertical"};function mm(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=mm(e[t]))&&(o&&(o+=" "),o+=n)}else for(n in e)e[n]&&(o&&(o+=" "),o+=n);return o}function pl(){for(var e,t,n=0,o="",r=arguments.length;n<r;n++)(e=arguments[n])&&(t=mm(e))&&(o&&(o+=" "),o+=t);return o}var zw=function(){},gm=typeof window<"u",Bw=gm?d.useLayoutEffect:d.useEffect,Wh={x:0,y:0,width:0,height:0,top:0,left:0,bottom:0,right:0};const P0=gm&&window.ResizeObserver!==void 0?function(){var e=d.useState(null),t=e[0],n=e[1],o=d.useState(Wh),r=o[0],i=o[1],l=d.useMemo(function(){return new window.ResizeObserver(function(c){if(c[0]){var s=c[0].contentRect,u=s.x,h=s.y,f=s.width,p=s.height,m=s.top,g=s.left,x=s.bottom,y=s.right;i({x:u,y:h,width:f,height:p,top:m,left:g,bottom:x,right:y})}})},[]);return Bw(function(){if(t)return l.observe(t),function(){l.disconnect()}},[t]),[n,r]}:function(){return[zw,Wh]},et=(e,t)=>{const n=d.useCallback((...i)=>e?.(...i),t),o=d.useRef(null);o.current=n;const r=d.useCallback((...i)=>o.current?.(...i),[]);if(o.current)return r},Nw=e=>{const{style:t,orientation:n=r0.Vertical,...o}=e,r=n===r0.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"})})})})},Vw=e=>{const{style:t,orientation:n=r0.Vertical,...o}=e,r=n===r0.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"})})})})},b2=(e,t,n,o,r=0)=>{for(let i=0;i<n.length;i++){const l=n[i].getBoundingClientRect();let c=l.left-t,s=c+l.width;if(o){if(c<e&&s>=e)return c}else if(Math.ceil(s)>Math.ceil(e)+2)return s}return r};Object.freeze(Object.defineProperty({__proto__:null,getScrollTo:b2},Symbol.toStringTag,{value:"Module"}));const B5=d.memo(d.forwardRef((e,t)=>{const{offset:n=0,totalSize:o=0,viewportSize:r=0,style:i,className:l,orientation:c=r0.Vertical,onScrollOffset:s,onScroll:u,showCustomScrollButtons:h=!1,scrollButtonIncrement:f=200,scrollButtonInitialRepeatDelay:p=260,scrollButtonAdditionalRepeatDelay:m=120,createScrollStartButton:g=Nw,createScrollEndButton:x=Vw,...y}=e,w=et(u,[u]),b=d.useRef(null),[C,{width:_,height:E}]=P0(),[M,{width:j,height:F}]=P0(),k=c===r0.Vertical,O=k?"top":"left",S=k?"scrollTop":"scrollLeft",v=k?E:_,I=k?F:j,[T,R]=d.useState(null);d.useEffect(()=>{T!==null&&b.current&&b.current.scrollTo({behavior:"smooth",[O]:T})},[T,k]);const A=d.useCallback((z,q=!1)=>{if(!b.current)return 0;const Z=b.current.querySelector(".scrollbar-viewport"),Q=Z.getBoundingClientRect(),Y=Z.children,te=q?0:b2(z,Q[O],Y,!0,Math.max(0,z-f));return R(te),Math.max(0,te)},[]),D=d.useCallback((z,q=!1)=>{if(!b.current)return 0;const Z=b.current.querySelector(".scrollbar-viewport"),Q=Z.getBoundingClientRect(),Y=Z.children,te=Math.ceil(I-v),ie=q?te:b2(z,Q[O],Y,!1,Math.max(0,z+f));return R(ie),Math.min(te,ie)},[I,v]),L=d.useRef(null),V=d.useCallback(z=>{L.current=n;const q=z.target[S];s(q,r,o),w?.(z)},[s,r,o,n]);d.useEffect(()=>{const z=L.current;L.current=null,n!==z&&(b.current[S]=n)},[n,S]);const W=d.useRef(null),P=d.useRef(null),U=d.useCallback(()=>{W.current&&(clearTimeout(W.current),W.current=null,P.current=null)},[]),X=d.useCallback((z,q,Z,Q=p)=>{P.current=z,W.current=setTimeout(()=>{const Y=Z?A(P.current||z):D(P.current||z);Y!==P.current?X(Y,!1,Z,m):U()},q?0:Q)},[A,D,U]);d.useEffect(()=>()=>U(),[U]);const ee=n,H=d.useMemo(()=>{if(!h)return null;const z={orientation:c,disabled:Math.floor(ee)<=0||Math.floor(I-v)===0,onMouseUp:U,onMouseLeave:U,onMouseDown:()=>X(ee,!0,!0)};return g?.(z)},[h,c,ee,T,I,v]),$=d.useMemo(()=>{if(!h)return null;const z={orientation:c,disabled:Math.floor(I-v)<=Math.ceil(ee),onMouseUp:U,onMouseLeave:U,onMouseDown:()=>X(ee,!0,!1)};return x?.(z)},[h,c,ee,T,I,v]);return a.jsxs("div",{ref:t,style:{display:"flex",flex:"1",flexDirection:k?"column":"row",padding:"0",...i},className:pl("_sheetxl-scrollbar_eblx4_6",l),...y,children:[H,a.jsx("div",{className:"pseudo-scrollbar",style:{flex:"1 1 100%",display:"flex",boxSizing:"content-box",flexDirection:k?"column":"row",justifyContent:"center",alignItems:"center"},ref:C,children:a.jsx("div",{tabIndex:-1,style:{flex:"1 1 100%",overflowY:k?"scroll":"hidden",overflowX:k?"hidden":"scroll",position:"relative",willChange:"transform"},onScroll:V,ref:b,children:a.jsx("div",{ref:M,style:{position:"absolute",height:k?o-r+(E??0):1,width:k?1:o-r+(_??0)},className:"scrollbar-viewport"})})}),$]})}));B5.displayName="Scrollbar";let Uh=Date.now,Zi={},Hw=1;const sa=e=>{let t=Zi[e]!==null;return t&&(Zi[e]=null),t},qh=(e,t,n,o=0,r)=>{let i=Uh(),l=i,c=0,s=0,u=0,h=Hw++;if(h%20==0){const p={};for(let m in Zi)p[m]=!0;Zi=p}const f=function(p){let m=p!==!0,g=Uh(),x=!0;try{x=(!t||t(h))??!0}catch{x=!1}if(!Zi[h]||!x)return Zi[h]=null,void n?.(60-s/((g-i)/1e3),h,!1);if(m){u=Math.round((g-l)/16.666666666666668)-1;for(let b=0;b<Math.min(u,4);b++)f(!0),s++}o&&(c=(g-i)/o,c>1&&(c=1));let y=r?r(c):c,w=!1;try{w=e(y,g,m)}catch{w=!1}w!==!1&&c!==1||!m?m&&(l=g,requestAnimationFrame(f)):(Zi[h]=null,n?.(60-s/((g-i)/1e3),h,c===1||o==null))};return Zi[h]=!0,requestAnimationFrame(f),h},$w=function(e){return Math.pow(e-1,3)+1},Ww=function(e){return(e/=.5)<1?.5*Math.pow(e,3):.5*(Math.pow(e-2,3)+2)};let Uw=class{constructor(e,t){this.__isSingleTouch=!1,this.__isTracking=!1,this.__didDecelerationComplete=!1,this.__isGesturing=!1,this.__isDragging=!1,this.__isDecelerating=0,this.__isAnimating=0,this.__interruptedAnimation=!1,this.__lastScale=1,this.__enableScrollX=!0,this.__enableScrollY=!0,this.__clientLeft=0,this.__clientTop=0,this.__clientWidth=0,this.__clientHeight=0,this.__contentWidth=0,this.__contentHeight=0,this.__snapWidth=100,this.__snapHeight=100,this.__zoomLevel=1,this.__scrollLeft=0,this.__scrollTop=0,this.__maxScrollLeft=0,this.__maxScrollTop=0,this.__scheduledLeft=0,this.__scheduledTop=0,this.__scheduledZoom=0,this.__lastTouchLeft=0,this.__lastTouchTop=0,this.__lastTouchMove=0,this.__positions=[],this.__initialTouchLeft=0,this.__initialTouchTop=0,this.__zoomLevelStart=1,this.__minDecelerationScrollLeft=null,this.__minDecelerationScrollTop=null,this.__maxDecelerationScrollLeft=null,this.__maxDecelerationScrollTop=null,this.__decelerationVelocityX=null,this.__decelerationVelocityY=0,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:void 0,penetrationDeceleration:.03,penetrationAcceleration:.08,...t}}setDimensions(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(e,t){this.__clientLeft=e||0,this.__clientTop=t||0}setSnapSize(e,t){this.__snapWidth=e,this.__snapHeight=t}getValues(){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(e,t){const n=this.getValues();return{left:e/n.zoom,top:t/n.zoom}}getScrollMax(){return{left:this.__maxScrollLeft,top:this.__maxScrollTop}}zoomTo(e,t=!1,n,o,r){if(!this.options.zooming)throw new Error("Zooming is not enabled!");r&&(this.__zoomComplete=r),this.__isDecelerating&&(sa(this.__isDecelerating),this.__isDecelerating=0);const 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);const l=e/i;let c=l*(this.__scrollLeft+n)-n,s=l*(this.__scrollTop+o)-o;c>this.__maxScrollLeft?c=this.__maxScrollLeft:c<0&&(c=0),s>this.__maxScrollTop?s=this.__maxScrollTop:s<0&&(s=0),this.__publish(c,s,e,t)}zoomBy(e,t=!1,n=0,o=0,r){this.zoomTo(this.__zoomLevel*e,t,n,o,r)}scrollTo(e,t,n=!1,o=1){if(this.__isDecelerating&&(sa(this.__isDecelerating),this.__isDecelerating=0),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(e=0,t=0,n=!1){const o=this.__isAnimating?this.__scheduledLeft:this.__scrollLeft,r=this.__isAnimating?this.__scheduledTop:this.__scrollTop;this.scrollTo(o+(e||0),r+(t||0),n)}doMouseZoom(e,t,n,o){const r=e>0?.97:1.03;return this.zoomTo(this.__zoomLevel*r,!1,n-this.__clientLeft,o-this.__clientTop)}doTouchStart(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);let n,o;this.__interruptedAnimation=!0,this.__isDecelerating&&(sa(this.__isDecelerating),this.__isDecelerating=0,this.__interruptedAnimation=!0),this.__isAnimating&&(sa(this.__isAnimating),this.__isAnimating=0,this.__interruptedAnimation=!0);let 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(e,t,n=1){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)return;let 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);let i=this.__positions;if(this.__isDragging){let l=o-this.__lastTouchLeft,c=r-this.__lastTouchTop,s=this.__scrollLeft,u=this.__scrollTop,h=this.__zoomLevel;if(n!==void 0&&this.options.zooming){let f=h;if(h=h/this.__lastScale*n,h=Math.max(Math.min(h,this.options.maxZoom),this.options.minZoom),f!==h){let p=o-this.__clientLeft,m=r-this.__clientTop;s=(p+s)*h/f-p,u=(m+u)*h/f-m,this.__computeScrollMax(h)}}if(this.__enableScrollX){s-=l*this.options.speedMultiplier;let f=this.__maxScrollLeft;(s>f||s<0)&&(this.options.bouncing?s+=l/2*this.options.speedMultiplier:s=s>f?f:0)}if(this.__enableScrollY){u-=c*this.options.speedMultiplier;const f=this.__maxScrollTop;(u>f||u<0)&&(this.options.bouncing?u+=c/2*this.options.speedMultiplier:u=u>f?f:0)}i.length>60&&i.splice(0,30),i.push(s,u,t),this.__publish(s,u,h)}else{let l=this.options.locking?3:0,c=5,s=Math.abs(o-this.__initialTouchLeft),u=Math.abs(r-this.__initialTouchTop);this.__enableScrollX=this.options.scrollingX&&s>=l,this.__enableScrollY=this.options.scrollingY&&u>=l,i.push(this.__scrollLeft,this.__scrollTop,t),this.__isDragging=(this.__enableScrollX||this.__enableScrollY)&&(s>=c||u>=c),this.__isDragging&&(this.__interruptedAnimation=!1)}this.__lastTouchLeft=o,this.__lastTouchTop=r,this.__lastTouchMove=t,this.__lastScale=n}doTouchEnd(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){let t=this.__positions,n=t.length-1,o=n;for(let r=n;r>0&&t[r]>this.__lastTouchMove-100;r-=3)o=r;if(o!==n){const r=t[n]-t[o],i=this.__scrollLeft-t[o-2],l=this.__scrollTop-t[o-1];this.__decelerationVelocityX=i/r*(1e3/60),this.__decelerationVelocityY=l/r*(1e3/60);const 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(e,t,n,o=!1){const r=this.__isAnimating;if(r&&(sa(r),this.__isAnimating=0),o&&this.options.animating){this.__scheduledLeft=e,this.__scheduledTop=t,this.__scheduledZoom=n;const i=this.__scrollLeft,l=this.__scrollTop,c=this.__zoomLevel,s=e-i,u=t-l,h=n-c,f=function(g,x,y){y&&(this.__scrollLeft=i+s*g,this.__scrollTop=l+u*g,this.__zoomLevel=c+h*g,this.__callback&&this.__callback(this.__scrollLeft,this.__scrollTop,this.__zoomLevel))}.bind(this),p=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=qh(f,p,m,this.options.animationDuration,r?$w:Ww)}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(e=this.__zoomLevel){this.__maxScrollLeft=Math.max(this.__contentWidth*e-this.__clientWidth,0),this.__maxScrollTop=Math.max(this.__contentHeight*e-this.__clientHeight,0)}__startDeceleration(e){if(this.options.paging){const i=Math.max(Math.min(this.__scrollLeft,this.__maxScrollLeft),0),l=Math.max(Math.min(this.__scrollTop,this.__maxScrollTop),0),c=this.__clientWidth,s=this.__clientHeight;this.__minDecelerationScrollLeft=Math.floor(i/c)*c,this.__minDecelerationScrollTop=Math.floor(l/s)*s,this.__maxDecelerationScrollLeft=Math.ceil(i/c)*c,this.__maxDecelerationScrollTop=Math.ceil(l/s)*s}else this.__minDecelerationScrollLeft=0,this.__minDecelerationScrollTop=0,this.__maxDecelerationScrollLeft=this.__maxScrollLeft,this.__maxDecelerationScrollTop=this.__maxScrollTop;const t=function(i,l,c){this.__stepThroughDeceleration(c)}.bind(this),n=this.options.snapping?4:.1,o=function(){const i=Math.abs(this.__decelerationVelocityX)>=n||Math.abs(this.__decelerationVelocityY)>=n;return i||(this.__didDecelerationComplete=!0),i}.bind(this),r=function(i,l,c){this.__isDecelerating=0,this.__didDecelerationComplete&&this.options.scrollingComplete?.(),this.scrollTo(this.__scrollLeft,this.__scrollTop,this.options.snapping)}.bind(this);this.__isDecelerating=qh(t,o,r)}__stepThroughDeceleration(e){let t=this.__scrollLeft+this.__decelerationVelocityX,n=this.__scrollTop+this.__decelerationVelocityY;if(!this.options.bouncing){const o=Math.max(Math.min(this.__maxDecelerationScrollLeft,t),this.__minDecelerationScrollLeft);o!==t&&(t=o,this.__decelerationVelocityX=0);const 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){let o=0,r=0,i=this.options.penetrationDeceleration,l=this.options.penetrationAcceleration;t<this.__minDecelerationScrollLeft?o=this.__minDecelerationScrollLeft-t:t>this.__maxDecelerationScrollLeft&&(o=this.__maxDecelerationScrollLeft-t),n<this.__minDecelerationScrollTop?r=this.__minDecelerationScrollTop-n:n>this.__maxDecelerationScrollTop&&(r=this.__maxDecelerationScrollTop-n),o!==0&&(o*this.__decelerationVelocityX<=0?this.__decelerationVelocityX+=o*i:this.__decelerationVelocityX=o*l),r!==0&&(r*this.__decelerationVelocityY<=0?this.__decelerationVelocityY+=r*i:this.__decelerationVelocityY=r*l)}}};var _r=typeof window<"u"?window:{screen:{},navigator:{}},Ll=(_r.matchMedia||function(){return{matches:!1}}).bind(_r),xm=!1,qw={get passive(){return xm=!0}},Zh=function(){};_r.addEventListener&&_r.addEventListener("p",Zh,qw),_r.removeEventListener&&_r.removeEventListener("p",Zh,!1);var Zw=xm,Gw="PointerEvent"in _r,N5="ontouchstart"in _r,ym=N5||"TouchEvent"in _r&&Ll("(any-pointer: coarse)").matches,Gh=(_r.navigator.maxTouchPoints||0)>0||ym,bm=_r.navigator.userAgent||"",Kw=Ll("(pointer: coarse)").matches&&/iPad|Macintosh/.test(bm)&&Math.min(_r.screen.width||0,_r.screen.height||0)>=768,wm=(Ll("(pointer: coarse)").matches||!Ll("(pointer: fine)").matches&&N5)&&!/Windows.*Firefox/.test(bm),Xw=Ll("(any-pointer: fine)").matches||Ll("(any-hover: hover)").matches||Kw||!N5,w2=!Gh||!Xw&&wm?Gh?"touchOnly":"mouseOnly":"hybrid",Yw=w2==="mouseOnly"?"mouse":w2==="touchOnly"||wm?"touch":"mouse";const Jw=Object.freeze(Object.defineProperty({__proto__:null,deviceType:w2,primaryInput:Yw,supportsPassiveEvents:Zw,supportsPointerEvents:Gw,supportsTouchEvents:ym},Symbol.toStringTag,{value:"Module"})),Qw=new Set(["INPUT","TEXTAREA","SELECT"]),vm={};function v2(){return Jw}const Sm=e=>e==="BracketLeft"?"[":e==="BracketRight"?"]":ur.camelToPrettyCase(e),As=Object.freeze(Object.defineProperty({__proto__:null,EmptyCssProperties:vm,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:v2,focusableNodeNames:Qw,toPrettyKeyCode:Sm},Symbol.toStringTag,{value:"Module"})),ev=[];function Ii(e,t,n=ev){const o=d.useRef(null);return d.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),c=l.length;for(let s=0;s<c;s++){const u=l[s],h=i[u];Object.defineProperty(r,u,{value:h,writable:!0,configurable:!0,enumerable:!0})}return r},n),o}const Kh=e=>a.jsx(B5,{...e}),tv=({width:e,height:t})=>a.jsx("div",{className:"corner",style:{minWidth:`${e}px`,width:`${e}px`,minHeight:`${t}px`,height:`${t}px`}}),Cm=d.memo(d.forwardRef((e,t)=>{const{children:n,viewport:o,onScrollViewport:r,showHorizontalScrollbar:i=!0,showVerticalScrollbar:l=!0,createScrollCorner:c=tv,createHorizontalScrollbar:s=Kh,createVerticalScrollbar:u=Kh,style:h,touchElement:f,disableTouch:p,...m}=e,g=et(r,[r]),x=Ii(t,()=>({isScrollPane:()=>!0}),[]),y=d.useRef(null);d.useEffect(()=>{y.current&&(y.current.__scrollTop===o?.top&&y.current.__scrollLeft===o?.left||y.current.__isDecelerating||y.current?.scrollTo(o?.left,o?.top,!1))},[o?.left,o?.top,f]);const w=d.useCallback((v,I)=>{g?.({left:v,top:I})},[]),b=d.useCallback(v=>{y.current?.doTouchStart(v.touches,v.timeStamp)},[]),C=d.useCallback(v=>{v.preventDefault(),y.current?.doTouchMove(v.touches,v.timeStamp)},[]),_=d.useCallback(v=>{y.current?.doTouchEnd(v.timeStamp)},[]),E=d.useCallback(({containerWidth:v,containerHeight:I,totalWidth:T,totalHeight:R})=>{y.current.setDimensions(v,I,T,R)},[]);d.useEffect(()=>{const v=f??x.current;if(!p&&v2().supportsTouchEvents&&v&&o){if(!y.current){const I={scrollingX:!0,scrollingY:!0,decelerationRate:.95,penetrationAcceleration:.08};y.current=new Uw(w,I)}v2().supportsTouchEvents&&(v.addEventListener("touchstart",b),v.addEventListener("touchend",_),v.addEventListener("touchmove",C)),E({containerWidth:o?.width,containerHeight:o?.height,totalWidth:o?.totalWidth,totalHeight:o?.totalHeight})}return()=>{v?.removeEventListener("touchstart",b),v?.removeEventListener("touchend",_),v?.removeEventListener("touchmove",C)}},[o?.width,o?.height,o?.totalWidth,o?.totalHeight,p,f]);const[M,{width:j}]=P0(),[F,{height:k}]=P0(),O=d.useMemo(()=>{const v=u({orientation:r0.Vertical,offset:o?.top,viewportSize:o?.height,totalSize:o?.totalHeight,onScrollOffset:I=>{g?.({top:I})}});return a.jsx("div",{style:{display:"flex",flex:"0"},ref:M,children:v})},[u,o?.top,o?.height,o?.totalHeight]),S=d.useMemo(()=>{const v=s({orientation:r0.Horizontal,offset:o?.left,viewportSize:o?.width,totalSize:o?.totalWidth,onScrollOffset:I=>g?.({left:I})});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% - ${j}px)`},children:a.jsx("div",{ref:F,className:"sizer",children:v})}),l?c({width:j,height:k}):a.jsx(a.Fragment,{})]})},[s,o?.left,o?.width,o?.totalWidth,l,c,j,k]);return a.jsx("div",{style:{position:"relative",display:"flex",minWidth:l?`${j}px`:void 0,minHeight:i?`${k}px`:void 0,...h},...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?O:a.jsx(a.Fragment,{})]}),i?S:a.jsx(a.Fragment,{})]})})}));Cm.displayName="ScrollPane";const A0="error",nv="warning",Xh="info",Yh=new Set,_m={showMessage:(e,t)=>{if(t?.onceKey){if(Yh.has(t.onceKey))return;Yh.add(t.onceKey)}let n=console.log;t?.type!==nv&&t?.type!==A0||(n=console.warn),n(e)},showBusy:(e,t)=>new Promise(n=>{n(()=>{})}),showError:e=>{console.error(e)}},ov=100,rv=100,iv=1e6,lv=100,av=50,sv=d.memo(d.forwardRef((e,t)=>{const{offset:n=0,viewportSize:o=0,totalSize:r=0,minSize:i=0,endGap:l=ov,endScrollIncrement:c=rv,style:s=vm,onMouseDown:u,onScrollOffset:h,onScroll:f,scaleLimit:p=iv,scaleFactor:m=lv,precisionFactor:g=av,...x}=e;f&&console.warn("onScroll not supported for VirtualScrollbar. Use onScrollOffset instead");const y=et(u,[u]),w=()=>({offset:n,totalSize:p===0?r:Math.min(r??0,Math.max(i??0,(n??0)+(o??0))+(l??0))}),[b,C]=d.useState(w),_=p!==0&&b.totalSize>p?m:1,E=_/g,M=Math.ceil(b.totalSize/_),j=Math.ceil(b.offset/_),F=Math.ceil(o/_),k=d.useCallback(A=>{},[]),[O,S]=d.useState(!1),v=d.useRef(null);d.useLayoutEffect(()=>{if(!O){v.current={propTotalSize:r,propViewportSize:o,propOffset:n};const A=w();C(A)}},[r,o,n,O,i,l,c]);const I=et((A,D,L)=>{const V=v.current;v.current=null,V&&V.propTotalSize===r&&V.propViewportSize===o&&V.propOffset===n||(Math.abs(A-j)<E&&(A=j),h?.(A*_,j,F))},[h,_,E,j,F]),T=d.useCallback(A=>{document.removeEventListener("mousemove",k),document.removeEventListener("mouseup",T),S(!1)},[]),R=d.useCallback(A=>{y?.(A),S(!0),document.addEventListener("mousemove",k,{passive:!0}),document.addEventListener("mouseup",T,{passive:!0})},[k,T]);return a.jsx(B5,{ref:t,style:{...s},...x,offset:j,totalSize:M,viewportSize:F,onMouseDown:R,onScrollOffset:I})}));sv.displayName="VirtualScrollbar";const cv="left",dv="right",qd="top";function Zd(e,t){if(typeof e=="function")return e(t);e&&(e.current=t)}var w1=parseInt(d.version.split(".")[0],10)>=19?function(e){return t=>{const n=[];for(const o of e){const r=Zd(o,t),i=typeof r=="function";n.push(i?r:()=>Zd(o,null))}return()=>{for(const o of n)o()}}}:function(e){return t=>{for(const n of e)Zd(n,t)}};d.memo(d.forwardRef((e,t)=>{const{refFocusStart:n,...o}=e,r=d.useRef(null),i=d.useCallback(()=>{if(n)return void n?.current?.focus();const l=r.current.parentElement.children;let c=[];for(let s=0;s<l.length&&l[s]!==r.current;s++){const u=l[s].getAttribute("tabindex");if(u==null||u==="-1"||l[s].getAttribute("disabled")==="true")continue;const h=l[s];h.focus&&c.push({tabindex:parseInt(u),child:h})}c.length!==0&&(c.sort(function(s,u){return s.tabindex-u.tabindex}),c[0].child.focus())},[n]);return a.jsx("div",{tabIndex:0,ref:w1([r,t]),onFocus:i,...o})}));const uv=d.memo(d.forwardRef((e,t)=>{const{className:n,style:o,children:r,radius:i=4,strokeWidth:l=1,strokeColor:c="grey",...s}=e,[u,{width:h,height:f}]=P0(),p=d.useRef(null),m=(w,b=0)=>{const C=w/2,_=f-C+b;return function(E,M,j=!1){if(M===0)return E;function F(T,R,A){let D=R.x-T.x,L=R.y-T.y,V=Math.sqrt(D*D+L*L);return k(T,R,Math.min(1,A/V))}function k(T,R,A){return{x:T.x+(R.x-T.x)*A,y:T.y+(R.y-T.y)*A}}function O(T,R){T.length>2&&(T[T.length-2]=R.x,T[T.length-1]=R.y)}function S(T){return{x:parseFloat(T[T.length-2]),y:parseFloat(T[T.length-1])}}let v=E.split(/[,\s]/).reduce(function(T,R){let A=R.match("([a-zA-Z])(.+)");return A?(T.push(A[1]),T.push(A[2])):T.push(R),T},[]).reduce(function(T,R){return parseFloat(R)==R&&T.length?T[T.length-1].push(R):T.push([R]),T},[]),I=[];if(v.length>1){let T=S(v[0]),R=null;v[v.length-1][0]==="Z"&&v[0].length>2&&(R=["L",T.x,T.y],v[v.length-1]=R),I.push(v[0]);for(let A=1;A<v.length;A++){let D=I[I.length-1],L=v[A],V=L===R?v[1]:v[A+1];if(V&&D&&D.length>2&&L[0]==="L"&&V.length>2&&V[0]==="L"){let W,P,U=S(D),X=S(L),ee=S(V);j?(W=k(X,D.origPoint||U,M),P=k(X,V.origPoint||ee,M)):(W=F(X,U,M),P=F(X,ee,M)),O(L,W),L.origPoint=X,I.push(L);let H=k(W,X,.5),$=k(X,P,.5),z=["C",H.x,H.y,$.x,$.y,P.x,P.y];z.origPoint=X,I.push(z)}else I.push(L)}if(R){let A=S(I[I.length-1]);I.push(["Z"]),O(I[0],A)}}else I=v;return I.reduce(function(T,R){return T+R.join(" ")+" "},"")}(`M 0 ${C} L ${i-.5} ${C} L ${i-.5} ${_} L ${2*i} ${_} L ${h-2*i} ${_} M ${h-2*i} ${_} L ${h-i} ${_} L ${h-i} ${C} L ${h} ${C}`,i)},g=d.useMemo(()=>m(l),[h,f,i,l]),x=d.useMemo(()=>{if(i===0)return;const w=i/2;return m(i)+`L ${h} 0 L 0 0 L 0 ${w}`},[g,i,l]),y=d.useMemo(()=>({style:{clipPath:`path('${x}')`}}),[x]);return a.jsxs("div",{className:n,style:{display:"flex",flexDirection:"row",...o},...s,ref:w1([p,u,t]),children:[d.isValidElement(r)?d.cloneElement(r,y):a.jsx(a.Fragment,{}),a.jsx("svg",{style:{position:"absolute",top:0,left:0,pointerEvents:"none"},width:h,height:f,viewBox:`0 0 ${h} ${f}`,children:a.jsx("path",{d:g,stroke:c,fill:"none",vectorEffect:"non-scaling-stroke",strokeWidth:l})})]})})),hv={},pv=e=>{const{onPointerDown:t,style:n,splitDirection:o,paddingBefore:r=0,paddingAfter:i=0,disabled:l,key:c,hitAreaProps:s=hv,...u}=e,h=o==="row",{style:f,className:p,...m}=s;return a.jsx("div",{style:{...n,position:"relative"},...u,children:a.jsx("div",{className:pl("hit-box",p),style:{left:(h?-r:0)+"px",width:`calc(100% + ${h?r+i:0}px)`,top:(h?0:-r)+"px",height:`calc(100% + ${h?0:r+i}px)`,position:"absolute",...f},onPointerDown:l?void 0:t,...m})},c)},lc={},h0=(e,t,n=!0)=>e===null?null:e.pixels!==null?n?e.pixels:t-e.pixels:(n?e.percent:100-e.percent)/100*t,ac=(e,t=!0)=>e?.percent?`${t?e.percent:100-e.percent}%`:e?.pixels?`${e.pixels}px`:void 0,Pi=(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)},S2=d.memo(d.forwardRef((e,t)=>{const{elementBefore:n,elementAfter:o,splitDirection:r="row",fixedPane:i=null,position:l,onPositionChange:c,minBefore:s,maxBefore:u,minAfter:h,maxAfter:f,children:p,className:m,style:g,disabled:x=!1,onDragStart:y,onDragResize:w,onDragFinish:b,resizerProps:C=lc,paneProps:_=lc,paneBeforeProps:E=lc,paneAfterProps:M=lc,createResizer:j=pv}=e;if(p)throw new Error("Use elementBefore and elementAfter instead of children.");const F=d.useMemo(()=>d.isValidElement(o)&&d.isValidElement(n),[o,n]),k=d.useMemo(()=>{let ne=null;i&&(i==="before"?ne=0:i==="after"&&(ne=1));const be=ne===null;return{fixedPaneOffset:ne,isPercent:be,minBefore:Pi(s,be),maxBefore:Pi(u,be),minAfter:Pi(h,be),maxAfter:Pi(f,be)}},[s,u,h,f]),O=et(c,[c]),[S,v]=d.useState(()=>Pi(l,i===null));d.useEffect(()=>{v(Pi(l,i===null))},[l,i]);const[I,{width:T,height:R}]=P0(),[A,{width:D,height:L}]=P0(),V=r==="row"?D:L,W=r==="row"?T:R,P=d.useMemo(()=>((ne,be,ke,me)=>{const Ie=[null,null],we=[null,null];if(ne||(ne={percent:me.fixedPaneOffset===null?50:null,pixels:me.fixedPaneOffset===null?null:0}),be===0)return ne?.pixels!=null?me.fixedPaneOffset!==1?(Ie[0]=ne?.pixels,we[1]=100):(Ie[1]=ne?.pixels-ke,we[0]=100):ne?.percent!=null&&(me.fixedPaneOffset!==1?(we[0]=ne?.percent,we[1]=100-ne?.percent):(we[1]=ne?.percent,we[0]=100-ne?.percent)),{percents:we,pixels:Ie,minBefore:ac(me.minBefore,!0),maxBefore:ac(me.maxBefore,!0),minAfter:ac(me.minAfter),maxAfter:ac(me.maxAfter)};let xe=h0(ne,be,me.fixedPaneOffset!==1),Ee=be-ke,Fe=h0(me.minBefore,Ee,!0)??0,ft=h0(me.maxBefore,Ee,!0)??Ee,ut=0,Pe=0,Qe=0,nt=Ee;ut=(h0(me.maxAfter,be,!1)??ke)-ke,Pe=h0(me.minAfter,be,!1)??be,Qe=Math.max(Fe,ut),nt=Math.min(ft,Pe),xe=Math.max(Qe,Math.min(xe,nt)),Pe=Math.min(Ee-xe,h0(me.maxAfter,Ee-xe,!0)??Ee),ut=Math.min(Ee-xe,h0(me.minAfter,Ee-xe,!0)??Ee),Ie[0]=xe,Ie[1]=Ee-Ie[0];const Ke=Math.max(0,Math.min(100,xe/Ee*100));return we[0]=Ke,we[1]=100-we[0],{percents:we,pixels:Ie,minBefore:`${Fe}px`,minAfter:`${ut}px`,maxBefore:`${Ie[0]}px`,maxAfter:`${Ie[1]}px`}})(S,W,V,k),[k,S,W,V,r]),[U,X]=d.useState(!1),ee=et(y,[y]),H=et(w,[w]),$=et(b,[b]),z=d.useRef(null),q=d.useRef(null),Z=d.useRef(null),{style:Q,className:Y,...te}=_,ie={minWidth:0,minHeight:0,maxWidth:"100%",maxHeight:"100%",display:"flex",overflow:"hidden",...Q},{className:fe,style:J,...ae}=E,{className:Ce,style:Me,...re}=M,oe={flex:"1 1 100%",width:"100%",...g,flexDirection:r,display:"flex"},{className:ue,style:De,onPointerDown:ze,...mt}=C,bt=et(ne=>{const be=Pi(ne,i===null);v(be)},[i]),ve=et(ne=>{if(x||!U)return;const be=Ne.current?.getBoundingClientRect();let ke=0;ke=r==="row"?(ne.clientX??ne.touches?.[0]?.clientX)-be.x:(ne.clientY??ne.touches?.[0]?.clientY)-be.y,ke=Math.max(0,Math.min(W,ke)),k.fixedPaneOffset===1&&(ke=W-ke),l&&S.pixels===ke||v({pixels:ke,percent:null}),H?.(ke),ne.stopPropagation(),ne.preventDefault()},[k,r,x,U,S,W]),dt=et(ne=>{if(document.removeEventListener("pointermove",ve),document.removeEventListener("touchmove",ve),document.removeEventListener("pointerup",dt),U&&(X(!1),S)){if($(S.pixels),!Pi(l,i===null)||S.pixels!==l){const be={...S};be.percent===null&&(be.percent=be.pixels/W*100),O(be)}ne.stopPropagation(),ne.preventDefault()}},[S,U,l,i,W]),xt=et(ne=>{ze?.(ne),ne.defaultPrevented||x||U||(X(!0),ee(),document.addEventListener("pointermove",ve,{passive:!1}),document.addEventListener("touchmove",ve,{passive:!1}),document.addEventListener("pointerup",dt,{passive:!1}))},[ze]),Ne=Ii(t,()=>({setPosition:bt,isSplitPane:()=>!0}),[]),vt=d.useMemo(()=>F?j?.({key:"resizer",ref:w1([A,q]),className:pl("resizer",ue),onPointerDownCapture:xt,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,...De},splitDirection:r,disabled:x,...mt}):null,[F,ue,mt,r,De,x]),Xe=r==="row"?"Width":"Height",le={...ie,...J,flex:k.fixedPaneOffset===0&&P?.pixels[0]!==null?`0 0 ${Math.round(P?.pixels[0])}px`:`1 1 ${Math.round(P?.percents[0]??100)}%`,[`min${Xe}`]:P?.minBefore,[`max${Xe}`]:o?P?.maxBefore:"100%"},Ue={...ie,...Me,flex:k.fixedPaneOffset===1&&P?.pixels[1]!==null?`0 0 ${Math.round(P?.pixels[1])}px`:`1 1 ${Math.round(P?.percents[1]??100)}%`,[`min${Xe}`]:P?.minAfter,[`max${Xe}`]:n?P?.maxAfter:"100%"},ye=d.useMemo(()=>n?a.jsx("div",{ref:z,className:pl("before",Y,fe),style:le,...te,...ae,children:n},"before"):null,[n,_,E,k,P]),Se=d.useMemo(()=>o?a.jsx("div",{ref:Z,className:pl("after",Y,Ce),style:Ue,...te,...re,children:o},"after"):null,[o,_,M,k,P]);return a.jsxs("div",{ref:w1([I,Ne]),className:pl("splitPane",r==="row"?"vertical":"horizontal",{dragging:U},m),style:oe,children:[ye,vt,Se]})}));function Jh(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:c=!0}=n,s=et(o,[o]),u=et(r,[r]),h=et(i,[i]),f=d.useRef(!1),p=n?.timerInitial??230,m=n?.timerContinuous??p/2,g=d.useRef(null),x=d.useRef(null),y=d.useRef(null),w=d.useRef(null),b=d.useCallback(()=>{w.current&&(clearTimeout(w.current),w.current=null)},[]),C=d.useCallback(v=>{w.current=setTimeout(()=>{window.requestAnimationFrame(()=>{f.current!==!1&&h?.(x.current,y.current,g.current)}),C(m)},v??p)},[]);d.useEffect(()=>()=>b(),[]);const _=l?"pointer":"mouse",E=d.useCallback(v=>{v.stopPropagation(),v.stopImmediatePropagation(),v.preventDefault()},[]),M=et(v=>{document.removeEventListener(`${_}move`,k),document.removeEventListener(`${_}up`,M),document.removeEventListener("keydown",O),document.removeEventListener("keyup",S),document.removeEventListener("touchstart",E,{capture:!0}),document.removeEventListener("touchmove",E,{capture:!0}),window.removeEventListener("blur",j),b(),window.requestAnimationFrame(()=>{f.current!==!1&&(f.current=!1,u?.(v,y.current,g.current),y.current=null)})},[]),j=d.useCallback(()=>{f.current!==!1&&(f.current=!1,M(x.current))},[]),F=et(()=>{b(),C(m),window.requestAnimationFrame(()=>{f.current!==!1&&h?.(x.current,y.current,g.current)})},[m]),k=et(v=>{x.current=v,F()},[]),O=et(v=>{y.current={ctrlKey:v.ctrlKey,shiftKey:v.shiftKey,altKey:v.altKey,metaKey:v.metaKey},F()},[]),S=et(v=>{y.current={ctrlKey:v.ctrlKey,shiftKey:v.shiftKey,altKey:v.altKey,metaKey:v.metaKey},F()},[m]);return et(v=>{v.isDefaultPrevented()||(y.current={ctrlKey:v.ctrlKey,shiftKey:v.shiftKey,altKey:v.altKey,metaKey:v.metaKey},s(v,y.current)!==!1&&(g.current=v,x.current=v.nativeEvent,document.addEventListener(`${_}up`,M,{passive:!1}),document.addEventListener(`${_}move`,k,{passive:!1}),document.addEventListener("keydown",O,{passive:!1}),document.addEventListener("keyup",S,{passive:!1}),window.addEventListener("blur",j,{passive:!0}),l&&c&&(document.addEventListener("touchstart",E,{passive:!1,capture:!0}),document.addEventListener("touchmove",E,{passive:!1,capture:!0})),f.current=!0,C(p)))},[p,l])}({onPointerDown:e,onPointerMoveOrWait:(n,o,r)=>{e?.(r)},...t})}const fv=({initValue:e,useHookBody:t,applyStateChange:n})=>{const o=d.useRef(e);if(typeof t!="function")throw new Error("function expected as hook body parameter. got "+typeof t);const r=t();return d.useLayoutEffect(()=>{o.current!==r&&(o.current=r,n(r))},[n,r]),null},C2=e=>{console&&console.warn&&console.warn(e)},Gd=typeof self=="object"&&self.self===self&&self||typeof global=="object"&&global.global===global&&global||void 0;let mv=1,_2=!1,Em=!1;const Xc=[],fl=[],v1=()=>{fl.forEach(e=>e())},gv=({automaticContainerInternalUseOnly:e})=>{const[t,n]=d.useState([]),o=d.useRef([]);return o.current=t,e||_2!==!1||(Em=!0),d.useEffect(()=>{let r=!0;function i(){if(r)return fl[0]!==i?(e||_2!==!0||C2("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([...Xc])}return fl.push(i),v1(),()=>{r=!1,o.current?.length>0&&C2("SingletonHooksContainer is unmounted, but it has active singleton hooks. They will be reevaluated once SingletonHooksContainer is mounted again"),fl.splice(fl.indexOf(i),1),v1()}},[e]),a.jsx(a.Fragment,{children:t.map(({hook:r,key:i})=>d.createElement(fv,{...r,key:i}))})},km=(e,t,n={})=>{let o,r,i=!1,l=!1,c=[],{unmountIfNoConsumers:s=!1}=n;const u=f=>{r=f,ao.unstable_batchedUpdates(()=>c.forEach(p=>p(f)))},h=()=>(l||(r=typeof e=="function"?e():e,l=!0),r);return()=>{const[f,p]=d.useState(h);return d.useEffect(()=>(i||(i=!0,o=(m=>{const g=mv++;return Xc.push({hook:m,key:g}),fl.length===0&&Em===!1&&(_2=!0,(x=>{if(Gd.document&&Gd.document.createElement){const y=Gd.document.createElement("div");cd.createRoot(y).render(a.jsx(x,{automaticContainerInternalUseOnly:!0}))}else C2("Can not mount SingletonHooksContainer on server side. Did you manage to run useEffect on server? Please mount SingletonHooksContainer into your components tree manually.")})(gv)),v1(),()=>{Xc.splice(Xc.findIndex(x=>x.key===g),1),v1()}})({initValue:e,useHookBody:t,applyStateChange:u})),c.push(p),r!==f&&p(r),()=>{c.splice(c.indexOf(p),1),c.length===0&&s&&(o(),i=!1)}),[]),f}};let Tm=()=>{console.warn("You must call useEditMode before setting its state.")};const xv=km(null,()=>{const[e,t]=d.useState(null);return Tm=t,e}),dd=()=>{const e=xv();return d.useMemo(()=>({setMode:t=>{Tm(n=>(typeof t=="function"&&(t=t(n)),t?.onModeChange?.(t??null),t))},getMode:()=>e}),[e])};let yn=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}},jo=class extends yn{},V5=class jm{constructor(t,n){this._target=null,this._groupKey=null,this._root=null,this._parent=null,this._uuid=ur.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,c=i.key(),s=l.get(c);s&&o._notifyCommands(s,"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 c=this;for(;c&&!r;){let s=c._nodes.get(n);s&&(r=s),c=c._parent}}r||(r=new jm(t,n),r._parent=this,r._root=this._root,r._unListenersByCommand=null,r._listenersByKey=null,r._commandsPropertyListener=null);const i=(c,s)=>{!c.has(n)||o?c.set(n,s):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 c=0;c<t.length;c++){const s=t[c],u=s.key();if(o.has(u)&&!n){n===void 0&&console.warn("command already registered",u);continue}o.set(u,s);let h=l.get(s);h&&(h(),l.delete(s));const f=s.addPropertyListener(i);l.set(s,f);const p=s.shortcut();if(!p)continue;const m=Array.isArray(p)?p:[p];for(let g=0;g<m.length;g++){const x=ca(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 c=0;c<n.length;c++)l._nodes.delete(n[c]);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(tn.Alt),t.shiftKey&&n.push(tn.Shift),t.ctrlKey&&n.push(tn.Ctrl),t.metaKey&&n.push(tn.Meta);let o=ca({key:t.code,modifiers:n});const r=this._commandsByShortcut;let i=r.get(o);i||(o=ca({key:t.key,modifiers:n}),i=r.get(o)),!i&&t.code.startsWith("Digit")&&(o=ca({key:t.code.substring(5,t.code.length),modifiers:n}),i=this._commandsByShortcut.get(o)),!i&&t.code.startsWith("Key")&&(i=ca({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 c=0;c<r.length;c++){const s=r[c];if(!s)continue;let u=i.get(s);u||(u=new Set,i.set(s,u)),l||(l=[]),l.push(u),u.add(t)}return o.add(t),()=>{if(l)for(let c=0;c<l.length;c++)l[c].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 yv=ur.getOS()===ur.OSType.MacOS||ur.getOS()===ur.OSType.IOS?"Cmd":"Ctrl",bv=ur.getOS()===ur.OSType.MacOS||ur.getOS()===ur.OSType.IOS?"⌘":"^",ca=(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?.[tn.Ctrl]||n?.[tn.Meta])&&(o+=(o.length>0?"+":"")+(t?bv:yv)),n?.[tn.Alt]&&(o+=t?"⌥":"Alt"),n?.[tn.Shift]&&(o+=(o.length>0?"+":"")+(t?"⇧":"Shift")),o+=(o.length>0?"+":"")+Sm(e.key),o};function s0(e,t=null){const n=d.useRef(t);n.current=t;const[o,r]=d.useReducer(l=>l+1,0),i=d.useMemo(()=>Array.isArray(e)?e:[e],[e]);return d.useEffect(()=>{if(!i||i.length===0)return;const l=(u,h)=>{n.current?.onChange?.(h),r()};let c=null;t&&(c={onExecute(u,h){n.current?.onExecute?.(u,h)},onError(u,h,f){n.current?.onError?.(u,h,f)}});const s=new Set;for(let u=0;u<i.length;u++)s.add(i[u]?.addPropertyListener(ur.debounce(l,0),!0)),t&&s.add(i[u]?.addExecuteListener(c));return()=>{s.forEach(u=>{u?.()})}},[e]),o}const sc=(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 ko(e,t=null,n=null,o){const r=d.useRef(n);r.current=n,t&&!Array.isArray(t)&&(t=[t]);const[i,l]=d.useState(sc(e,t)),c=[e];return d.useEffect(()=>{const s={onGroupChange:()=>{const p=sc(e,t);l(p),r.current?.onChange?.(this)}};let u;t&&t.length>0&&(u={keys:t},s.onCommandChange=(p,m)=>{r.current?.onChange?.(e),l(sc(e,t))});const h=e?.addListener(s,u),f=sc(e,t);return l(f),r.current?.onChange&&r.current?.onChange(e),()=>{h?.()}},c),i}const Vt={Toolbar:"toolbar",Menuitem:"menuitem"};km({setClipboard:e=>{throw new Error("This is only available via the useClipboard.")},getClipboard:()=>b1.Global,refNativeCopy:{current:null},refNativeLastKey:{current:null}},()=>{const[e,t]=d.useState(b1.Global);return{setClipboard:n=>t(n),getClipboard:()=>e,refNativeCopy:d.useRef(null),refNativeLastKey:d.useRef(null)}}),d.useId;const Qh="Undo the last action.",ep="Repeat the last action or undo the redo.",wv=e=>`Redo ${e}`;function Mm(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=Mm(e[t]))&&(o&&(o+=" "),o+=n)}else for(n in e)e[n]&&(o&&(o+=" "),o+=n);return o}function Oo(){for(var e,t,n=0,o="",r=arguments.length;n<r;n++)(e=arguments[n])&&(t=Mm(e))&&(o&&(o+=" "),o+=t);return o}const or="text/html",Ai="text/plain",Kd="image/png",vv=Object.freeze({left:0,top:0}),Sv=Object.freeze({left:0,top:0,bottom:0,right:0}),Cv=Object.freeze({x:0,y:0,width:0,height:0});Object.freeze(Object.defineProperty({__proto__:null,EmptyBounds:Cv,EmptyRect:Sv,EmptyTopLeft:vv},Symbol.toStringTag,{value:"Module"}));const M0="column",us="row",_v=Object.freeze({colIndex:0,rowIndex:0}),Ev=Object.freeze({colStart:0,rowStart:0,colEnd:0,rowEnd:0}),Rm=(e,t)=>e.colStart===t.colStart?e.rowStart-t.rowStart:e.colStart-t.colStart,Im=(e,t)=>e.rowStart===t.rowStart?e.colStart-t.colStart:e.rowStart-t.rowStart,kv=(e,t)=>e.rowEnd===t.rowEnd?t.colEnd-e.colEnd:t.rowEnd-e.rowEnd,Tv=(e,t)=>e.colEnd===t.colEnd?t.rowEnd-e.rowEnd:t.colEnd-e.colEnd,tp=(e,t)=>e.colIndex===t.colIndex?e.rowIndex-t.rowIndex:e.colIndex-t.colIndex,np=(e,t)=>e.rowIndex===t.rowIndex?e.colIndex-t.colIndex:e.rowIndex-t.rowIndex,Dm=(e=us,t=!1)=>t?e!==M0?kv:Tv:e!==M0?Im:Rm,op=(e,t)=>e===t||!(!e||!t)&&e.rowIndex===t.rowIndex&&e.colIndex===t.colIndex,E2=(e,t)=>e===t||!(!e||!t)&&e.rowStart===t.rowStart&&e.rowEnd===t.rowEnd&&e.colStart===t.colStart&&e.colEnd===t.colEnd,k2=(e,t)=>!(!e||!t||e.colStart>t.colEnd||t.colStart>e.colEnd||e.rowStart>t.rowEnd||t.rowStart>e.rowEnd),rp=(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(!E2(e[n],t[n]))return!1;return!0},Xd=(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 c=n;return c?(c.colStart=o,c.rowStart=r,c.colEnd=i,c.rowEnd=l):c={colStart:o,rowStart:r,colEnd:i,rowEnd:l},c},ip=(e,t)=>{if(!t||t.length===0)return e;const n={...e};for(let o=0;o<t.length;o++){const r=t[o];k2(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},jv=[null,null],Mv=(e,t,n)=>{if(e[0].value===e[1].value)return t};function lp(e,t=2,n,o=us,r){let i=[...e];if(t<=0||e.length<=1)return i;let l=o===M0,c=0,s=!1;do{const u=i.sort(Dm(l?us:M0));i=[],i.push(u[0]);const h=u.length;let f=0,p=u[0],m=p.colStart,g=p.rowStart,x=p.colEnd,y=p.rowEnd;for(let w=1;w<h;w++){const b=u[w];let C=!1;if(C=l?p&&g===b.rowStart&&y===b.rowEnd&&x+1===b.colStart:p&&m===b.colStart&&x===b.colEnd&&y+1===b.rowStart,C){let _={colStart:m,rowStart:g,colEnd:l?b.colEnd:x,rowEnd:l?y:b.rowEnd};if(p.value!==void 0&&(_.value=p.value),n){const E=r??[null,null];E[0]=p,E[1]=b,_=n(E,_,o)}if(_){i[f]=_,s=!0,p=_,m=p.colStart,g=p.rowStart,x=p.colEnd,y=p.rowEnd;continue}}i[++f]=b,p=b,m=p.colStart,g=p.rowStart,x=p.colEnd,y=p.rowEnd}c++,l=!l,c===1&&(s=!0)}while(c<t&&s&&i.length>1);return i}Object.freeze(Object.defineProperty({__proto__:null,EmptyCell:_v,EmptyRange:Ev,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:tp,columnFirstRangeComparator:Rm,createCellComparator:(e=us,t=!1)=>t?e!==M0?(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!==M0?np:tp,createConflatingRanges:(e,t=!1)=>{const n=[];let o,r,i=Number.MIN_SAFE_INTEGER,l=Number.MIN_SAFE_INTEGER;return{append:(c,s,u)=>{let h=!0;const f=u!==void 0;if(f){const g=e?e(r,u,t):r===u?u:void 0;g===void 0?h=!1:u=g}if(h&&s===l+1&&c===i)return t?o.rowEnd=s:o.colEnd=s,l=s,void(r=u);o&&n.push(o);const p=t?c:s,m=t?s:c;o={colStart:p,rowStart:m,colEnd:p,rowEnd:m},f&&(o.value=u),i=c,l=s,r=u},done:c=>(o&&(n.push(o),o=null),c?lp(n,3,c===!0?Mv:c,t?M0:us,jv):n)}},createRangeComparator:Dm,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:ip,extendRangeToUnionRanges:(e,t)=>{if(!t||t.length===0)return e;let n=e,o=null;for(;!E2(n,o);)o=n,n=ip(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(k2(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 c=n;return c?(c.colStart=o,c.rowStart=r,c.colEnd=i,c.rowEnd=l):c={colStart:o,rowStart:r,colEnd:i,rowEnd:l},c},isCellWithinRange:(e,t)=>!(!e||!t||e.rowIndex<t.rowStart||e.rowIndex>t.rowEnd||e.colIndex<t.colStart||e.colIndex>t.colEnd),isEqualCells:op,isEqualRanges:E2,isEqualRangesArrays:rp,isEqualSelectionCoords:(e,t)=>e===t||!(!e||!t)&&e.rangeIndex===t.rangeIndex&&!!op(e.cell,t.cell)&&rp(e.ranges,t.ranges),isRangeWithinRange:(e,t)=>!(e.rowStart<t.rowStart||e.rowEnd>t.rowEnd||e.colStart<t.colStart||e.colEnd>t.colEnd),isRangesIntersect:k2,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:lp,rowFirstCellComparator:np,rowFirstRangeComparator:Im,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:Xd,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=Xd(o,e[r],n);return t&&(o=Xd(o,t,n)),o}},Symbol.toStringTag,{value:"Module"}));const Rv=typeof Symbol=="function"&&Symbol.for?Symbol.for("react.element"):60103;function Iv(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===Rv}(e)}function za(e,t){return t.clone!==!1&&t.isMergeableObject(e)?F0((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}function Dv(e,t,n){return e.concat(t).map(function(o){return za(o,n)})}function ap(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 sp(e,t){try{return t in e}catch{return!1}}function F0(e,t,n){(n=n||{}).arrayMerge=n.arrayMerge||Dv,n.isMergeableObject=n.isMergeableObject||Iv,n.cloneUnlessOtherwiseSpecified=za;const o=Array.isArray(t);return o===Array.isArray(e)?o?n.arrayMerge(e,t,n):function(r,i,l){const c={};return l.isMergeableObject(r)&&ap(r).forEach(function(s){c[s]=za(r[s],l)}),ap(i).forEach(function(s){var u,h;sp(u=r,h=s)&&(!Object.hasOwnProperty.call(u,h)||!Object.propertyIsEnumerable.call(u,h))||(sp(r,s)&&l.isMergeableObject(i[s])?c[s]=function(f,p){if(!p.customMerge)return F0;const m=p.customMerge(f);return typeof m=="function"?m:F0}(s,l)(r[s],i[s],l):c[s]=za(i[s],l))}),c}(e,t,n):za(t,n)}F0.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(n,o){return F0(n,o,t)},{})};const Lv=Object.freeze([]),Ov=Object.freeze({}),cp=e=>e,Yc=()=>"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)}),Lm=(e,t)=>e===t||!(!Array.isArray(e)||!Array.isArray(t)||e.length!==t.length)&&e.every((n,o)=>n===t[o]),da=e=>typeof e=="object"&&!Array.isArray(e)&&e!==null,Om=e=>typeof e!="object"||Array.isArray(e)||e===null?e:(Object.keys(e).forEach(function(t){e[t]&&typeof e[t]=="object"?Om(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),Pv=(e,t)=>!(e!==t&&!Lm(e,t)&&!e.isEqual?.(t)),Pm=(e,t,n=Pv)=>{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];Pm(e[l],t?.[l],n)===null&&(r=!0,delete e[l])}return r&&Object.keys(e).length===0?null:void 0},dp=typeof performance=="object"&&typeof performance.now=="function"?()=>performance.now():()=>Date.now(),up=e=>e==null,hp=(e,t)=>!(t.left>e.right||t.right<e.left||t.top>e.bottom||t.bottom<e.top),pp=!(typeof window>"u"||!window.document||!window.document.createElement),rr={Windows:"windows",MacOS:"macos",IOS:"ios",Linux:"linux",Android:"android",Safari:"safari",Firefox:"firefox",Node:"node",Unknown:"unknown"},hs=()=>{if(Am())return rr.Node;const e=globalThis.navigator!==void 0&&globalThis.navigator.userAgent?globalThis.navigator.userAgent.toLowerCase():"";return e?/(win32|win64|windows|wince)/i.test(e)?rr.Windows:/(macintosh|macintel|macppc|mac68k|macos)/i.test(e)?rr.MacOS:/(iphone|ipad|ipod)/i.test(e)?rr.IOS:/android/.test(e)?rr.Android:/linux/.test(e)?rr.Linux:/^((?!chrome|android|).)*safari/i.test(e)?rr.Safari:/^((?!chrome|android|Seamonkey).)*firefox/i.test(e)?rr.Firefox:rr.Unknown:rr.Unknown};function Am(){return typeof process<"u"&&process.release?.name==="node"||(typeof process<"u"&&process.browser,!1)}const fp=(e,t=!1)=>(document.hasFocus()||t)&&(e===document.activeElement||e?.contains(document.activeElement)),lo=Object.freeze(Object.defineProperty({__proto__:null,EmptyArray:Lv,EmptyObject:Ov,OSType:rr,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:pp,cancelTimeout:e=>{cancelAnimationFrame(e.id)},castToString:e=>e==null||e===void 0?"":typeof e!="string"?""+e:e,cloneObject:e=>up(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,c=0;function s(){let h=Date.now()-c;h<t&&h>=0?o=setTimeout(s,t-h):(o=null,n||(l=e.apply(i,r),i=r=null))}t==null&&(t=100);const u=function(){i=globalThis,r=arguments,c=Date.now();var h=n&&!o;return o||(o=setTimeout(s,t)),h&&(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:F0,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=cp){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=cp){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||!da(l))return l;o=l}return o??null},getOS:hs,hasFocus:fp,isDefined:e=>e!=null,isEmpty:e=>e==null||e==="",isEqualArrays:Lm,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:Am,isNullOrUndefined:up,isNumeric:e=>{const t=1*e;return Number.isFinite(t)&&typeof t=="number"},isObject:da,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:hp,mergeContentful:(...e)=>{const t=e.length;if(t>0&&e[t-1]!==void 0&&!da(e[t-1]))return e[t-1];let n=e[0]||{};for(let o=1;o<t;o++)n=F0(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(!pp)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:Om,removeEqualValues:Pm,removeListenerAll:e=>{if(!e)return[];for(let t=0;t<e.length;t++)e[t]&&e[t]();return[]},requestTimeout:(e,t)=>{const n=dp(),o={id:requestAnimationFrame(function r(){dp()-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 c=r[l];if(c==null&&(c={},r[l]=c),!da(c))throw new Error("Can not set path to a non object path.");r=c}if(typeof n!="number"&&typeof n!="boolean"&&typeof n!="string"&&!da(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(!hp(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})},c=()=>{t.right>r.left&&t.right<r.right&&(o.push({...r,left:t.right}),r={...r,right:t.right})},s=()=>{t.left>r.left&&t.left<r.right&&(o.push({...r,right:t.left}),r={...r,left:t.left})};return n?(s(),c(),i(),l()):(i(),l(),c(),s()),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:Yc,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=>{fp(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 Fm=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")},T2=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:Fm,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:T2},Symbol.toStringTag,{value:"Module"}));const zm="data:image/png;base64,",Bm="Unable to resolve image.",mp=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(Bm)}),Yd="image/svg+xml";var gp,xp;Object.freeze(Object.defineProperty({__proto__:null,DATA_URL_PNG_PREFIX:zm,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(Bm)}),loadImageDetails:async(e,t=null)=>{let n=null;const o=async()=>{try{const i=t??"image/*",l=URL.createObjectURL(new Blob([e],{type:i})),c=await mp(l);n={mimeType:i,naturalDimensions:c,asUrl:l}}catch{}},r=async()=>{try{const i=new TextDecoder().decode(e),l=URL.createObjectURL(new Blob([i],{type:Yd})),c=await mp(l);n={mimeType:t??Yd,naturalDimensions:c,asUrl:l,asSVGText:i}}catch{}};if(t===Yd?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"})),(xp=gp||(gp={})).resolveTypedUpdates=(e,t,n,o)=>{if(e===null)return e;if(e===void 0)return o;let r=e;if(t?.shorthand){const s=t?.shorthand(e,n);s!==void 0&&(r=s)}if(r!==null&&t?.getSubType){const s=t.getSubType(r);s&&(t=s)}const i=t?.properties,l=t?.arrayType??!1;let c=r;if(t&&t.merge&&c&&o)c=t.merge(c,o,n);else if(!l&&i){const s=Object.keys({...r,...o});c=null;for(let u=0;u<s.length;u++){const h=s[u];let f,p=r[h];if(p!==void 0){const m=i[h];f=m?(0,xp.resolveTypedUpdates)(p,m,n,o?.[h]):p}else f=o?.[h];f!=null&&(c=c??{},c[h]=f)}}return c};const yp=`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.`,Jd=`You do not have permissions to access the clipboard.
|
|
17
|
+
All copy and paste operations will be limited to the browser tab.`,Nm={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:Jd,PermsWrite:hs()===rr.Safari?yp:Jd,PermsRead:hs()===rr.Safari?yp:Jd},Qd=async()=>new Promise(e=>{document.hasFocus()?e():globalThis.addEventListener?.("focus",()=>{e()},{once:!0}),document.activeElement.focus?.()}),eu=async(e,t,n)=>{if(hs()===rr.Safari)return await n(new Error(Nm.Safari));try{const o=async l=>{try{return await l()}catch(c){if(c.message?.includes("Document is not focused"))return!1;throw c}},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)}},Vm=async e=>{try{return await e.read({unsanitized:[or]})}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 c=0;c<l.length;c++){const s=l[c];let u=o[s];i[s]=typeof u=="string"?e(s,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 j2=async(e,t=or)=>new Promise(async(n,o)=>{try{const r=await(async(i,l)=>{if(!i)return null;const c=await Vm(i);let s=!1;for(let u=0;!s&&c&&u<c.length;u++)if(s=c[u].types.includes(l),s)return await c[u].getType(l);return s?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)}}),bp=async(e,t=or)=>{const n=await j2(e,t);if(!n)return null;let o=null;try{o=new DOMParser().parseFromString(n,or)}catch{console.warn("Can't parse html from clipboard.")}return o},ps="clipboard-uuid",el="web text/uuid",wp=e=>`<div style="display:none" ${ps}="${e}"/>`,Av=(e,t)=>{let n=null;try{const o=new DOMParser().parseFromString(t,or);o.body.firstElementChild.setAttribute(ps,e),n=o.getElementsByTagName("body")[0].innerHTML}catch(o){console.warn("Can't embed uuid.",o)}return n},vp=(e,t)=>{if(!t||!e)return!1;try{const n=t.querySelectorAll(`[${ps}="${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 S1=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 eu("clipboard-read",async()=>{await Qd();const e=await j2(this._nativeClipboard,el);if(!this._state||e&&e===this._state.uuid)return!0;const t=await bp(this._nativeClipboard,or);return!this._state||(vp(this._state.uuid,t)||this.clear(),!0)},async e=>{e?.message==="denied"||e.message?.includes("Document is not focused")||hs()===rr.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 eu("clipboard-read",async()=>{if(await Qd(),this._state?.uuid){const t=await j2(this._nativeClipboard,el);if(t&&t===e._state.uuid)return!0;const n=await bp(this._nativeClipboard,or);if(vp(e._state?.uuid,n))return!0}return e._state={items:await Vm(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:Yc(),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 eu("clipboard-write",async()=>{await Qd(),o&&r.length===0&&(r.push(new ClipboardItem({[el]:new Blob([o],{type:el})})),r.push(new ClipboardItem({[or]:new Blob([wp(o)],{type:or})})));for(let l=0;l<Math.min(1,r.length);l++){const c=r[l];let s=c.types.indexOf(or),u=null;if(s!==-1){const p=await c.getType(or);u=await T2(p),u&&(u=Av(o,u))}if(!u&&c.types.includes(Ai)){const p=await c.getType(Ai);if(p){let m=null;typeof p=="string"?(console.warn("text as string",p),m=p):m=await T2(p),m&&(u=`<div ${ps}="${o}">${m}</div>`)}}if(!u&&c.types.includes(Kd)){const p=await c.getType(Kd),m=Fm(await p.arrayBuffer());u=`<div ${ps}="${o}"><img src="${zm+m}"/></div>`}!u&&o&&(u=wp(o));const h=new Blob([u??""],{type:or}),f={};for(let p=0;p<c.types.length;p++){const m=c.types[p];f[m]=p===s?h:c.getType(m)}u&&s===-1&&(f[or]=h),o&&(f[el]=new Blob([o],{type:el})),n.push(new ClipboardItem(f))}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[Ai]=new Blob([r??""],{type:Ai}))}catch(r){t=r}try{const r=await e.toHtml?.()??null;r&&(n[or]=new Blob([r],{type:or}))}catch(r){t=r,console.warn("export to html",r)}try{const r=await e.toImage?.()??null;r&&(n[Kd]=r)}catch(r){t=r,console.warn("export to png",r)}const o=this._write({uuid:Yc(),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(Ai)&&(o=await n[i].getType(Ai));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({[Ai]:new Blob([e],{type:Ai})})];return this._write({uuid:Yc(),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 tu;(tu=S1||(S1={})).ErrorMessages=Nm,tu.Global=new tu;const Ol=e=>a.jsx(B.SvgIcon,{...e,children:a.jsx("path",{})}),H5=e=>a.jsx(B.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"})}),Sp=e=>a.jsxs(B.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"})]}),Fv=e=>a.jsxs(B.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"})]}),zv=e=>a.jsxs(B.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"})]}),Bv=e=>a.jsxs(B.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"})]}),Nv=e=>a.jsx(B.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"})}),Vv=e=>a.jsx(B.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"})}),Hv=e=>a.jsxs(B.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"})]}),Cp=e=>a.jsx(B.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"})}),Hm=e=>a.jsxs(B.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 z0(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 $5="$$material";function $m(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Wm(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 _p,Ep,kp={exports:{}},$n={},Um=(Ep||(Ep=1,kp.exports=function(){if(_p)return $n;_p=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"),c=Symbol.for("react.forward_ref"),s=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),p=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 s:case u:case p:return x;default:switch(x=x&&x.$$typeof){case l:case c:case f:case h:case i:return x;default:return y}}case t:return y}}}return $n.ContextConsumer=i,$n.ContextProvider=l,$n.Element=e,$n.ForwardRef=c,$n.Fragment=n,$n.Lazy=f,$n.Memo=h,$n.Portal=t,$n.Profiler=r,$n.StrictMode=o,$n.Suspense=s,$n.SuspenseList=u,$n.isContextConsumer=function(x){return g(x)===i},$n.isContextProvider=function(x){return g(x)===l},$n.isElement=function(x){return typeof x=="object"&&x!==null&&x.$$typeof===e},$n.isForwardRef=function(x){return g(x)===c},$n.isFragment=function(x){return g(x)===n},$n.isLazy=function(x){return g(x)===f},$n.isMemo=function(x){return g(x)===h},$n.isPortal=function(x){return g(x)===t},$n.isProfiler=function(x){return g(x)===r},$n.isStrictMode=function(x){return g(x)===o},$n.isSuspense=function(x){return g(x)===s},$n.isSuspenseList=function(x){return g(x)===u},$n.isValidElementType=function(x){return typeof x=="string"||typeof x=="function"||x===n||x===r||x===o||x===s||x===u||typeof x=="object"&&x!==null&&(x.$$typeof===f||x.$$typeof===h||x.$$typeof===l||x.$$typeof===i||x.$$typeof===c||x.$$typeof===m||x.getModuleId!==void 0)},$n.typeOf=g,$n}()),kp.exports);function Ei(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 qm(e){if(o0.isValidElement(e)||Um.isValidElementType(e)||!Ei(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=qm(e[n])}),t}function Er(e,t,n={clone:!0}){const o=n.clone?{...e}:e;return Ei(e)&&Ei(t)&&Object.keys(t).forEach(r=>{o0.isValidElement(t[r])||Um.isValidElementType(t[r])?o[r]=t[r]:Ei(t[r])&&Object.prototype.hasOwnProperty.call(e,r)&&Ei(e[r])?o[r]=Er(e[r],t[r],n):n.clone?o[r]=Ei(t[r])?qm(t[r]):t[r]:o[r]=t[r]}),o}function W5(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 i0(e){if(e.type)return e;if(e.charAt(0)==="#")return i0(function(i){i=i.slice(1);const l=new RegExp(`.{1,${i.length>=6?2:1}}`,"g");let c=i.match(l);return c&&c[0].length===1&&(c=c.map(s=>s+s)),c?`rgb${c.length===4?"a":""}(${c.map((s,u)=>u<3?parseInt(s,16):Math.round(parseInt(s,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(z0(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(z0(10,o))}else r=r.split(",");return r=r.map(i=>parseFloat(i)),{type:n,values:r,colorSpace:o}}const Ba=(e,t)=>{try{return(n=>{const o=i0(n);return o.values.slice(0,3).map((r,i)=>o.type.includes("hsl")&&i!==0?`${r}%`:r).join(" ")})(e)}catch{return e}};function ud(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 Zm(e){e=i0(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,h=(u+n/30)%12)=>r-i*Math.max(Math.min(h-3,9-h,1),-1);let c="rgb";const s=[Math.round(255*l(0)),Math.round(255*l(8)),Math.round(255*l(4))];return e.type==="hsla"&&(c+="a",s.push(t[3])),ud({type:c,values:s})}function M2(e){let t=(e=i0(e)).type==="hsl"||e.type==="hsla"?i0(Zm(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 cc(e,t,n){try{return function(o,r){return o=i0(o),r=W5(r),o.type!=="rgb"&&o.type!=="hsl"||(o.type+="a"),o.type==="color"?o.values[3]=`/${r}`:o.values[3]=r,ud(o)}(e,t)}catch{return e}}function U5(e,t){if(e=i0(e),t=W5(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 ud(e)}function Zn(e,t,n){try{return U5(e,t)}catch{return e}}function q5(e,t){if(e=i0(e),t=W5(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 ud(e)}function Gn(e,t,n){try{return q5(e,t)}catch{return e}}function dc(e,t,n){try{return function(o,r=.15){return M2(o)>.5?U5(o,r):q5(o,r)}(e,t)}catch{return e}}const fs={black:"#000",white:"#fff"},$v={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"},Tp="#d32f2f",jp="#42a5f5",Mp="#0288d1";function Gm(){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:fs.white,default:fs.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=Gm();function Km(){return{text:{primary:fs.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:fs.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 Rp=Km();function Ip(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=q5(e.main,r):t==="dark"&&(e.dark=U5(e.main,i)))}function Z5(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:jp}:{main:"#1976d2",light:jp,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),c=e.error||function(g="light"){return g==="dark"?{main:"#f44336",light:"#e57373",dark:Tp}:{main:Tp,light:"#ef5350",dark:"#c62828"}}(t),s=e.info||function(g="light"){return g==="dark"?{main:"#29b6f6",light:"#4fc3f7",dark:Mp}:{main:Mp,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),h=e.warning||function(g="light"){return g==="dark"?{main:"#ffa726",light:"#ffb74d",dark:"#f57c00"}:{main:"#ed6c02",light:"#ff9800",dark:"#e65100"}}(t);function f(g){return function(x,y){const w=M2(x),b=M2(y);return(Math.max(w,b)+.05)/(Math.min(w,b)+.05)}(g,Rp.text.primary)>=n?Rp.text.primary:Wv.text.primary}const p=({color:g,name:x,mainShade:y=500,lightShade:w=300,darkShade:b=700})=>{if(!(g={...g}).main&&g[y]&&(g.main=g[y]),!g.hasOwnProperty("main"))throw new Error(z0(11,x?` (${x})`:"",y));if(typeof g.main!="string")throw new Error(z0(12,x?` (${x})`:"",JSON.stringify(g.main)));return Ip(g,"light",w,o),Ip(g,"dark",b,o),g.contrastText||(g.contrastText=f(g.main)),g};let m;return t==="light"?m=Gm():t==="dark"&&(m=Km()),Er({common:{...fs},mode:t,primary:p({color:i,name:"primary"}),secondary:p({color:l,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:p({color:c,name:"error"}),warning:p({color:h,name:"warning"}),info:p({color:s,name:"info"}),success:p({color:u,name:"success"}),grey:$v,contrastThreshold:n,getContrastText:f,augmentColor:p,tonalOffset:o,...m},r)}var Dp,Lp,Op,Pp,Ap,Fp={exports:{}};function Uv(){if(Pp)return Op;Pp=1;var e=Lp?Dp:(Lp=1,Dp="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");function t(){}function n(){}return n.resetWarningCache=t,Op=function(){function o(l,c,s,u,h,f){if(f!==e){var p=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 p.name="Invariant Violation",p}}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 R2(){return Ap||(Ap=1,Fp.exports=Uv()()),Fp.exports}function Ya(e,t){return t?Er(e,t,{clone:!1}):e}function zp(e,t){if(!e.containerQueries)return t;const n=Object.keys(t).filter(o=>o.startsWith("@container")).sort((o,r)=>{const i=/min-width:\s*([0-9.]+)/;return+(o.match(i)?.[1]||0)-+(r.match(i)?.[1]||0)});return n.length?n.reduce((o,r)=>{const i=t[r];return delete o[r],o[r]=i,o},{...t}):t}const hd={xs:0,sm:600,md:900,lg:1200,xl:1536},Bp={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${hd[e]}px)`},qv={containerQueries:e=>({up:t=>{let n=typeof t=="number"?t:hd[t]||t;return typeof n=="number"&&(n=`${n}px`),e?`@container ${e} (min-width:${n})`:`@container (min-width:${n})`}})};function Mi(e,t,n){const o=e.theme||{};if(Array.isArray(t)){const r=o.breakpoints||Bp;return t.reduce((i,l,c)=>(i[r.up(r.keys[c])]=n(t[c]),i),{})}if(typeof t=="object"){const r=o.breakpoints||Bp;return Object.keys(t).reduce((i,l)=>{if(c=r.keys,(s=l)==="@"||s.startsWith("@")&&(c.some(u=>s.startsWith(`@${u}`))||s.match(/^@\d/))){const u=function(h,f){const p=f.match(/^@([^/]+)?\/?(.+)?$/);if(!p)return null;const[,m,g]=p,x=Number.isNaN(+m)?m||0:+m;return h.containerQueries(g).up(x)}(o.containerQueries?o:qv,l);u&&(i[u]=n(t[l],l))}else if(Object.keys(r.values||hd).includes(l))i[r.up(l)]=n(t[l],l);else{const u=l;i[u]=t[u]}var c,s;return i},{})}return n(t)}function Np(e,t){return e.reduce((n,o)=>{const r=n[o];return(!r||Object.keys(r).length===0)&&delete n[o],n},t)}function Xm(e){if(typeof e!="string")throw new Error(z0(7));return e.charAt(0).toUpperCase()+e.slice(1)}function pd(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 C1(e,t,n,o=n){let r;return r=typeof e=="function"?e(n):Array.isArray(e)?e[n]||o:pd(e,n)||o,t&&(r=t(r,o,e)),r}function So(e){const{prop:t,cssProperty:n=e.prop,themeKey:o,transform:r}=e,i=l=>{if(l[t]==null)return null;const c=l[t],s=pd(l.theme,o)||{};return Mi(l,c,u=>{let h=C1(s,r,u);return u===h&&typeof u=="string"&&(h=C1(s,r,`${t}${u==="default"?"":Xm(u)}`,u)),n===!1?h:{[n]:h}})};return i.propTypes={},i.filterProps=[t],i}const Zv={m:"margin",p:"padding"},Gv={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Vp={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Kv=function(){const e={};return t=>(e[t]===void 0&&(e[t]=(n=>{if(n.length>2){if(!Vp[n])return[n];n=Vp[n]}const[o,r]=n.split(""),i=Zv[o],l=Gv[r]||"";return Array.isArray(l)?l.map(c=>i+c):[i+l]})(t)),e[t])}(),Ym=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Jm=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function Fs(e,t,n,o){const r=pd(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),c=r[l];return i>=0?c:typeof c=="number"?-c:`-${c}`}:typeof r=="function"?r:()=>{}}function G5(e){return Fs(e,"spacing",8)}function zs(e,t){return typeof t=="string"||t==null?t:e(t)}function Qm(e,t){const n=G5(e.theme);return Object.keys(e).map(o=>function(r,i,l,c){if(!i.includes(l))return null;const s=function(u,h){return f=>u.reduce((p,m)=>(p[m]=zs(h,f),p),{})}(Kv(l),c);return Mi(r,r[l],s)}(e,t,o,n)).reduce(Ya,{})}function co(e){return Qm(e,Ym)}function uo(e){return Qm(e,Jm)}function e9(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 c in i)if(Object.prototype.hasOwnProperty.call(i,c)){const s=c;n[r][s]=e9(i[s],l[s])}}else n[r]=l;else n[r]=i||{}}else n[r]===void 0&&(n[r]=e[r])}return n}co.propTypes={},co.filterProps=Ym,uo.propTypes={},uo.filterProps=Jm;const Xv={borderRadius:4};function _1(...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]?Ya(r,t[i](o)):r,{});return n.propTypes={},n.filterProps=e.reduce((o,r)=>o.concat(r.filterProps),[]),n}function Br(e){return typeof e!="number"?e:`${e}px solid`}function Ur(e,t){return So({prop:e,themeKey:"borders",transform:t})}const Yv=Ur("border",Br),Jv=Ur("borderTop",Br),Qv=Ur("borderRight",Br),eS=Ur("borderBottom",Br),tS=Ur("borderLeft",Br),nS=Ur("borderColor"),oS=Ur("borderTopColor"),rS=Ur("borderRightColor"),iS=Ur("borderBottomColor"),lS=Ur("borderLeftColor"),aS=Ur("outline",Br),sS=Ur("outlineColor"),Jc=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Fs(e.theme,"shape.borderRadius",4),n=o=>({borderRadius:zs(t,o)});return Mi(e,e.borderRadius,n)}return null};Jc.propTypes={},Jc.filterProps=["borderRadius"],_1(Yv,Jv,Qv,eS,tS,nS,oS,rS,iS,lS,Jc,aS,sS);const E1=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Fs(e.theme,"spacing",8),n=o=>({gap:zs(t,o)});return Mi(e,e.gap,n)}return null};E1.propTypes={},E1.filterProps=["gap"];const k1=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Fs(e.theme,"spacing",8),n=o=>({columnGap:zs(t,o)});return Mi(e,e.columnGap,n)}return null};k1.propTypes={},k1.filterProps=["columnGap"];const Qc=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Fs(e.theme,"spacing",8),n=o=>({rowGap:zs(t,o)});return Mi(e,e.rowGap,n)}return null};function kl(e,t){return t==="grey"?t:e}function Sr(e){return e<=1&&e!==0?100*e+"%":e}Qc.propTypes={},Qc.filterProps=["rowGap"],_1(E1,k1,Qc,So({prop:"gridColumn"}),So({prop:"gridRow"}),So({prop:"gridAutoFlow"}),So({prop:"gridAutoColumns"}),So({prop:"gridAutoRows"}),So({prop:"gridTemplateColumns"}),So({prop:"gridTemplateRows"}),So({prop:"gridTemplateAreas"}),So({prop:"gridArea"})),_1(So({prop:"color",themeKey:"palette",transform:kl}),So({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:kl}),So({prop:"backgroundColor",themeKey:"palette",transform:kl}));const cS=So({prop:"width",transform:Sr}),K5=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{const o=e.theme?.breakpoints?.values?.[n]||hd[n];return o?e.theme?.breakpoints?.unit!=="px"?{maxWidth:`${o}${e.theme.breakpoints.unit}`}:{maxWidth:o}:{maxWidth:Sr(n)}};return Mi(e,e.maxWidth,t)}return null};K5.filterProps=["maxWidth"];const dS=So({prop:"minWidth",transform:Sr}),uS=So({prop:"height",transform:Sr}),hS=So({prop:"maxHeight",transform:Sr}),pS=So({prop:"minHeight",transform:Sr});So({prop:"size",cssProperty:"width",transform:Sr}),So({prop:"size",cssProperty:"height",transform:Sr}),_1(cS,K5,dS,uS,hS,pS,So({prop:"boxSizing"}));const fd={border:{themeKey:"borders",transform:Br},borderTop:{themeKey:"borders",transform:Br},borderRight:{themeKey:"borders",transform:Br},borderBottom:{themeKey:"borders",transform:Br},borderLeft:{themeKey:"borders",transform:Br},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Br},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Jc},color:{themeKey:"palette",transform:kl},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:kl},backgroundColor:{themeKey:"palette",transform:kl},p:{style:uo},pt:{style:uo},pr:{style:uo},pb:{style:uo},pl:{style:uo},px:{style:uo},py:{style:uo},padding:{style:uo},paddingTop:{style:uo},paddingRight:{style:uo},paddingBottom:{style:uo},paddingLeft:{style:uo},paddingX:{style:uo},paddingY:{style:uo},paddingInline:{style:uo},paddingInlineStart:{style:uo},paddingInlineEnd:{style:uo},paddingBlock:{style:uo},paddingBlockStart:{style:uo},paddingBlockEnd:{style:uo},m:{style:co},mt:{style:co},mr:{style:co},mb:{style:co},ml:{style:co},mx:{style:co},my:{style:co},margin:{style:co},marginTop:{style:co},marginRight:{style:co},marginBottom:{style:co},marginLeft:{style:co},marginX:{style:co},marginY:{style:co},marginInline:{style:co},marginInlineStart:{style:co},marginInlineEnd:{style:co},marginBlock:{style:co},marginBlockStart:{style:co},marginBlockEnd:{style:co},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:E1},rowGap:{style:Qc},columnGap:{style:k1},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Sr},maxWidth:{style:K5},minWidth:{transform:Sr},height:{transform:Sr},maxHeight:{transform:Sr},minHeight:{transform:Sr},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"}},Pl=function(){function e(t,n,o,r){const i={[t]:n,theme:o},l=r[t];if(!l)return{[t]:n};const{cssProperty:c=t,themeKey:s,transform:u,style:h}=l;if(n==null)return null;if(s==="typography"&&n==="inherit")return{[t]:n};const f=pd(o,s)||{};return h?h(i):Mi(i,n,p=>{let m=C1(f,u,p);return p===m&&typeof p=="string"&&(m=C1(f,u,`${t}${p==="default"?"":Xm(p)}`,p)),c===!1?m:{[c]:m}})}return function t(n){const{sx:o,theme:r={},nested:i}=n||{};if(!o)return null;const l=r.unstable_sxConfig??fd;function c(s){let u=s;if(typeof s=="function")u=s(r);else if(typeof s!="object")return s;if(!u)return null;const h=function(m={}){return m.keys?.reduce((g,x)=>(g[m.up(x)]={},g),{})||{}}(r.breakpoints),f=Object.keys(h);let p=h;return Object.keys(u).forEach(m=>{const g=typeof(x=u[m])=="function"?x(r):x;var x;if(g!=null)if(typeof g=="object")if(l[m])p=Ya(p,e(m,g,r,l));else{const y=Mi({theme:r},g,w=>({[m]:w}));(function(...w){const b=w.reduce((_,E)=>_.concat(Object.keys(E)),[]),C=new Set(b);return w.every(_=>C.size===Object.keys(_).length)})(y,g)?p[m]=t({sx:g,theme:r,nested:!0}):p=Ya(p,y)}else p=Ya(p,e(m,g,r,l))}),!i&&r.modularCssLayers?{"@layer sx":zp(r,Np(f,p))}:zp(r,Np(f,p))}return Array.isArray(o)?o.map(c):c(o)}}();function fS(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 X5(e={},...t){const{breakpoints:n={},palette:o={},spacing:r,shape:i={},...l}=e,c=function(h){const{values:f={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:p="px",step:m=5,...g}=h,x=(_=>{const E=Object.keys(_).map(M=>({key:M,val:_[M]}))||[];return E.sort((M,j)=>M.val-j.val),E.reduce((M,j)=>({...M,[j.key]:j.val}),{})})(f),y=Object.keys(x);function w(_){return`@media (min-width:${typeof f[_]=="number"?f[_]:_}${p})`}function b(_){return`@media (max-width:${(typeof f[_]=="number"?f[_]:_)-m/100}${p})`}function C(_,E){const M=y.indexOf(E);return`@media (min-width:${typeof f[_]=="number"?f[_]:_}${p}) and (max-width:${(M!==-1&&typeof f[y[M]]=="number"?f[y[M]]:E)-m/100}${p})`}return{keys:y,values:x,up:w,down:b,between:C,only:function(_){return y.indexOf(_)+1<y.length?C(_,y[y.indexOf(_)+1]):w(_)},not:function(_){const E=y.indexOf(_);return E===0?w(y[1]):E===y.length-1?b(y[E]):C(_,y[y.indexOf(_)+1]).replace("@media","@media not all and")},unit:p,...g}}(n),s=function(h=8,f=G5({spacing:h})){if(h.mui)return h;const p=(...m)=>(m.length===0?[1]:m).map(g=>{const x=f(g);return typeof x=="number"?`${x}px`:x}).join(" ");return p.mui=!0,p}(r);let u=Er({breakpoints:c,direction:"ltr",components:{},palette:{mode:"light",...o},spacing:s,shape:{...Xv,...i}},l);return u=function(h){const f=(x,y)=>x.replace("@media",y?`@container ${y}`:"@container");function p(x,y){x.up=(...w)=>f(h.breakpoints.up(...w),y),x.down=(...w)=>f(h.breakpoints.down(...w),y),x.between=(...w)=>f(h.breakpoints.between(...w),y),x.only=(...w)=>f(h.breakpoints.only(...w),y),x.not=(...w)=>{const b=f(h.breakpoints.not(...w),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=>(p(m,x),m);return p(g),{...h,containerQueries:g}}(u),u.applyStyles=fS,u=t.reduce((h,f)=>Er(h,f),u),u.unstable_sxConfig={...fd,...l?.unstable_sxConfig},u.unstable_sx=function(h){return Pl({sx:h,theme:this})},u}Pl.filterProps=["sx"];const mS=X5(),Hp=(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 nu(e,t){const{prefix:n,shouldSkipGeneratingVar:o}=t||{},r={},i={},l={};var c,s;return c=(u,h,f)=>{if(!(typeof h!="string"&&typeof h!="number"||o&&o(u,h))){const g=`--${n?`${n}-`:""}${u.join("-")}`,x=(p=u,typeof(m=h)=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(y=>p.includes(y))||p[p.length-1].toLowerCase().includes("opacity")?m:`${m}px`:m);Object.assign(r,{[g]:x}),Hp(i,u,`var(${g})`,f),Hp(l,u,`var(${g}, ${x})`,f)}var p,m},s=u=>u[0]==="vars",function u(h,f=[],p=[]){Object.entries(h).forEach(([m,g])=>{(!s||s&&!s([...f,m]))&&g!=null&&(typeof g=="object"&&Object.keys(g).length>0?u(g,[...f,m],Array.isArray(g)?[...p,m]:p):c([...f,m],g,p))})}(e),{css:r,vars:i,varsWithDefaults:l}}function gS(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}const $p={textTransform:"uppercase"},Wp='"Roboto", "Helvetica", "Arial", sans-serif';function xS(e,t){const{fontFamily:n=Wp,fontSize:o=14,fontWeightLight:r=300,fontWeightRegular:i=400,fontWeightMedium:l=500,fontWeightBold:c=700,htmlFontSize:s=16,allVariants:u,pxToRem:h,...f}=typeof t=="function"?t(e):t,p=o/14,m=h||(y=>y/s*p+"rem"),g=(y,w,b,C,_)=>{return{fontFamily:n,fontWeight:y,fontSize:m(w),lineHeight:b,...n===Wp?{letterSpacing:(E=C/w,Math.round(1e5*E)/1e5+"em")}:{},..._,...u};var E},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,$p),caption:g(i,12,1.66,.4),overline:g(i,12,2.66,1,$p),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Er({htmlFontSize:s,pxToRem:m,fontFamily:n,fontSize:o,fontWeightLight:r,fontWeightRegular:i,fontWeightMedium:l,fontWeightBold:c,...x},f,{clone:!1})}function oo(...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 yS=["none",oo(0,2,1,-1,0,1,1,0,0,1,3,0),oo(0,3,1,-2,0,2,2,0,0,1,5,0),oo(0,3,3,-2,0,3,4,0,0,1,8,0),oo(0,2,4,-1,0,4,5,0,0,1,10,0),oo(0,3,5,-1,0,5,8,0,0,1,14,0),oo(0,3,5,-1,0,6,10,0,0,1,18,0),oo(0,4,5,-2,0,7,10,1,0,2,16,1),oo(0,5,5,-3,0,8,10,1,0,3,14,2),oo(0,5,6,-3,0,9,12,1,0,3,16,2),oo(0,6,6,-3,0,10,14,1,0,4,18,3),oo(0,6,7,-4,0,11,15,1,0,4,20,3),oo(0,7,8,-4,0,12,17,2,0,5,22,4),oo(0,7,8,-4,0,13,19,2,0,5,24,4),oo(0,7,9,-4,0,14,21,2,0,5,26,4),oo(0,8,9,-5,0,15,22,2,0,6,28,5),oo(0,8,10,-5,0,16,24,2,0,6,30,5),oo(0,8,11,-5,0,17,26,2,0,6,32,5),oo(0,9,11,-5,0,18,28,2,0,7,34,6),oo(0,9,12,-6,0,19,29,2,0,7,36,6),oo(0,10,13,-6,0,20,31,3,0,8,38,7),oo(0,10,13,-6,0,21,33,3,0,8,40,7),oo(0,10,14,-6,0,22,35,3,0,8,42,7),oo(0,11,14,-7,0,23,36,3,0,9,44,8),oo(0,11,15,-7,0,24,38,3,0,9,46,8)],bS={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)"},wS={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Up(e){return`${Math.round(e)}ms`}function vS(e){if(!e)return 0;const t=e/36;return Math.min(Math.round(10*(4+15*t**.25+t/5)),3e3)}function SS(e){const t={...bS,...e.easing},n={...wS,...e.duration};return{getAutoHeightDuration:vS,create:(o=["all"],r={})=>{const{duration:i=n.standard,easing:l=t.easeInOut,delay:c=0,...s}=r;return(Array.isArray(o)?o:[o]).map(u=>`${u} ${typeof i=="string"?i:Up(i)} ${l} ${typeof c=="string"?c:Up(c)}`).join(",")},...e,easing:t,duration:n}}const CS={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function _S(e){return Ei(e)||e===void 0||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function t9(e={}){const t={...e};return function n(o){const r=Object.entries(o);for(let i=0;i<r.length;i++){const[l,c]=r[i];!_S(c)||l.startsWith("unstable_")?delete o[l]:Ei(c)&&(o[l]={...c},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 I2(e={},...t){const{breakpoints:n,mixins:o={},spacing:r,palette:i={},transitions:l={},typography:c={},shape:s,...u}=e;if(e.vars&&e.generateThemeVars===void 0)throw new Error(z0(20));const h=Z5(i),f=X5(e);let p=Er(f,{mixins:(m=f.breakpoints,g=o,{toolbar:{minHeight:56,[m.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[m.up("sm")]:{minHeight:64}},...g}),palette:h,shadows:yS.slice(),typography:xS(h,c),transitions:SS(l),zIndex:{...CS}});var m,g;return p=Er(p,u),p=t.reduce((x,y)=>Er(x,y),p),p.unstable_sxConfig={...fd,...u?.unstable_sxConfig},p.unstable_sx=function(x){return Pl({sx:x,theme:this})},p.toRuntimeSource=t9,p}function n9(e){let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,Math.round(10*t)/1e3}const ES=[...Array(25)].map((e,t)=>{if(t===0)return"none";const n=n9(t);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`});function qp(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function Zp(e){return e==="dark"?ES:[]}function kS(e){return!!e[0].match(/(cssVarPrefix|colorSchemeSelector|modularCssLayers|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||e[0]==="palette"&&!!e[1]?.match(/(mode|contrastThreshold|tonalOffset)/)}const TS=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 c={};return(l=e.cssVarPrefix,[...[...Array(25)].map((s,u)=>`--${l?`${l}-`:""}overlays-${u}`),`--${l?`${l}-`:""}palette-AppBar-darkBg`,`--${l?`${l}-`:""}palette-AppBar-darkColor`]).forEach(s=>{c[s]=n[s],delete n[s]}),i==="media"?{[o]:n,"@media (prefers-color-scheme: dark)":{[o]:c}}:i?{[i.replace("%s",t)]:c,[`${o}, ${i.replace("%s",t)}`]:n}:{[o]:{...n,...c}}}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 Na(e){return typeof e=="string"&&e.startsWith("hsl")?Zm(e):e}function bi(e,t){`${t}Channel`in e||(e[`${t}Channel`]=Ba(Na(e[t])))}const ai=e=>{try{return e()}catch{}};function ou(e,t,n,o){if(!t)return;t=t===!0?{}:t;const r=o==="dark"?"dark":"light";if(!n)return void(e[o]=function(c){const{palette:s={mode:"light"},opacity:u,overlays:h,...f}=c,p=Z5(s);return{palette:p,opacity:{...qp(p.mode),...u},overlays:h||Zp(p.mode),...f}}({...t,palette:{mode:r,...t?.palette}}));const{palette:i,...l}=I2({...n,palette:{mode:r,...t?.palette}});return e[o]={...t,palette:i,opacity:{...qp(r),...t?.opacity},overlays:t?.overlays||Zp(r)},l}function Gp(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...n!==!0&&n,palette:Z5({...n===!0?{}:n.palette,mode:t})})}function D2(e={},...t){const{palette:n,cssVariables:o=!1,colorSchemes:r=n?void 0:{light:!0},defaultColorScheme:i=n?.mode,...l}=e,c=i||"light",s=r?.[c],u={...r,...n?{[c]:{...typeof s!="boolean"&&s,palette:n}}:void 0};if(o===!1){if(!("colorSchemes"in e))return I2(e,...t);let h=n;"palette"in e||u[c]&&(u[c]!==!0?h=u[c].palette:c==="dark"&&(h={mode:"dark"}));const f=I2({...e,palette:h},...t);return f.defaultColorScheme=c,f.colorSchemes=u,f.palette.mode==="light"&&(f.colorSchemes.light={...u.light!==!0&&u.light,palette:f.palette},Gp(f,"dark",u.dark)),f.palette.mode==="dark"&&(f.colorSchemes.dark={...u.dark!==!0&&u.dark,palette:f.palette},Gp(f,"light",u.light)),f}return n||"light"in u||c!=="light"||(u.light=!0),function(h={},...f){const{colorSchemes:p={light:!0},defaultColorScheme:m,disableCssColorScheme:g=!1,cssVarPrefix:x="mui",shouldSkipGeneratingVar:y=kS,colorSchemeSelector:w=p.light&&p.dark?"media":void 0,rootSelector:b=":root",...C}=h,_=Object.keys(p)[0],E=m||(p.light&&_!=="light"?"light":_),M=((W="mui")=>ht.unstable_createGetCssVar(W))(x),{[E]:j,light:F,dark:k,...O}=p,S={...O};let v=j;if((E==="dark"&&!("dark"in p)||E==="light"&&!("light"in p))&&(v=!0),!v)throw new Error(z0(21,E));const I=ou(S,v,C,E);F&&!S.light&&ou(S,F,void 0,"light"),k&&!S.dark&&ou(S,k,void 0,"dark");let T={defaultColorScheme:E,...I,cssVarPrefix:x,colorSchemeSelector:w,rootSelector:b,getCssVar:M,colorSchemes:S,font:{...gS(I.typography),...I.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(T.colorSchemes).forEach(W=>{const P=T.colorSchemes[W].palette,U=ee=>{const H=ee.split("-"),$=H[1],z=H[2];return M(ee,P[$][z])};var X;if(P.mode==="light"&&($e(P.common,"background","#fff"),$e(P.common,"onBackground","#000")),P.mode==="dark"&&($e(P.common,"background","#000"),$e(P.common,"onBackground","#fff")),X=P,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"].forEach(ee=>{X[ee]||(X[ee]={})}),P.mode==="light"){$e(P.Alert,"errorColor",Zn(P.error.light,.6)),$e(P.Alert,"infoColor",Zn(P.info.light,.6)),$e(P.Alert,"successColor",Zn(P.success.light,.6)),$e(P.Alert,"warningColor",Zn(P.warning.light,.6)),$e(P.Alert,"errorFilledBg",U("palette-error-main")),$e(P.Alert,"infoFilledBg",U("palette-info-main")),$e(P.Alert,"successFilledBg",U("palette-success-main")),$e(P.Alert,"warningFilledBg",U("palette-warning-main")),$e(P.Alert,"errorFilledColor",ai(()=>P.getContrastText(P.error.main))),$e(P.Alert,"infoFilledColor",ai(()=>P.getContrastText(P.info.main))),$e(P.Alert,"successFilledColor",ai(()=>P.getContrastText(P.success.main))),$e(P.Alert,"warningFilledColor",ai(()=>P.getContrastText(P.warning.main))),$e(P.Alert,"errorStandardBg",Gn(P.error.light,.9)),$e(P.Alert,"infoStandardBg",Gn(P.info.light,.9)),$e(P.Alert,"successStandardBg",Gn(P.success.light,.9)),$e(P.Alert,"warningStandardBg",Gn(P.warning.light,.9)),$e(P.Alert,"errorIconColor",U("palette-error-main")),$e(P.Alert,"infoIconColor",U("palette-info-main")),$e(P.Alert,"successIconColor",U("palette-success-main")),$e(P.Alert,"warningIconColor",U("palette-warning-main")),$e(P.AppBar,"defaultBg",U("palette-grey-100")),$e(P.Avatar,"defaultBg",U("palette-grey-400")),$e(P.Button,"inheritContainedBg",U("palette-grey-300")),$e(P.Button,"inheritContainedHoverBg",U("palette-grey-A100")),$e(P.Chip,"defaultBorder",U("palette-grey-400")),$e(P.Chip,"defaultAvatarColor",U("palette-grey-700")),$e(P.Chip,"defaultIconColor",U("palette-grey-700")),$e(P.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),$e(P.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),$e(P.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),$e(P.LinearProgress,"primaryBg",Gn(P.primary.main,.62)),$e(P.LinearProgress,"secondaryBg",Gn(P.secondary.main,.62)),$e(P.LinearProgress,"errorBg",Gn(P.error.main,.62)),$e(P.LinearProgress,"infoBg",Gn(P.info.main,.62)),$e(P.LinearProgress,"successBg",Gn(P.success.main,.62)),$e(P.LinearProgress,"warningBg",Gn(P.warning.main,.62)),$e(P.Skeleton,"bg",`rgba(${U("palette-text-primaryChannel")} / 0.11)`),$e(P.Slider,"primaryTrack",Gn(P.primary.main,.62)),$e(P.Slider,"secondaryTrack",Gn(P.secondary.main,.62)),$e(P.Slider,"errorTrack",Gn(P.error.main,.62)),$e(P.Slider,"infoTrack",Gn(P.info.main,.62)),$e(P.Slider,"successTrack",Gn(P.success.main,.62)),$e(P.Slider,"warningTrack",Gn(P.warning.main,.62));const ee=dc(P.background.default,.8);$e(P.SnackbarContent,"bg",ee),$e(P.SnackbarContent,"color",ai(()=>P.getContrastText(ee))),$e(P.SpeedDialAction,"fabHoverBg",dc(P.background.paper,.15)),$e(P.StepConnector,"border",U("palette-grey-400")),$e(P.StepContent,"border",U("palette-grey-400")),$e(P.Switch,"defaultColor",U("palette-common-white")),$e(P.Switch,"defaultDisabledColor",U("palette-grey-100")),$e(P.Switch,"primaryDisabledColor",Gn(P.primary.main,.62)),$e(P.Switch,"secondaryDisabledColor",Gn(P.secondary.main,.62)),$e(P.Switch,"errorDisabledColor",Gn(P.error.main,.62)),$e(P.Switch,"infoDisabledColor",Gn(P.info.main,.62)),$e(P.Switch,"successDisabledColor",Gn(P.success.main,.62)),$e(P.Switch,"warningDisabledColor",Gn(P.warning.main,.62)),$e(P.TableCell,"border",Gn(cc(P.divider,1),.88)),$e(P.Tooltip,"bg",cc(P.grey[700],.92))}if(P.mode==="dark"){$e(P.Alert,"errorColor",Gn(P.error.light,.6)),$e(P.Alert,"infoColor",Gn(P.info.light,.6)),$e(P.Alert,"successColor",Gn(P.success.light,.6)),$e(P.Alert,"warningColor",Gn(P.warning.light,.6)),$e(P.Alert,"errorFilledBg",U("palette-error-dark")),$e(P.Alert,"infoFilledBg",U("palette-info-dark")),$e(P.Alert,"successFilledBg",U("palette-success-dark")),$e(P.Alert,"warningFilledBg",U("palette-warning-dark")),$e(P.Alert,"errorFilledColor",ai(()=>P.getContrastText(P.error.dark))),$e(P.Alert,"infoFilledColor",ai(()=>P.getContrastText(P.info.dark))),$e(P.Alert,"successFilledColor",ai(()=>P.getContrastText(P.success.dark))),$e(P.Alert,"warningFilledColor",ai(()=>P.getContrastText(P.warning.dark))),$e(P.Alert,"errorStandardBg",Zn(P.error.light,.9)),$e(P.Alert,"infoStandardBg",Zn(P.info.light,.9)),$e(P.Alert,"successStandardBg",Zn(P.success.light,.9)),$e(P.Alert,"warningStandardBg",Zn(P.warning.light,.9)),$e(P.Alert,"errorIconColor",U("palette-error-main")),$e(P.Alert,"infoIconColor",U("palette-info-main")),$e(P.Alert,"successIconColor",U("palette-success-main")),$e(P.Alert,"warningIconColor",U("palette-warning-main")),$e(P.AppBar,"defaultBg",U("palette-grey-900")),$e(P.AppBar,"darkBg",U("palette-background-paper")),$e(P.AppBar,"darkColor",U("palette-text-primary")),$e(P.Avatar,"defaultBg",U("palette-grey-600")),$e(P.Button,"inheritContainedBg",U("palette-grey-800")),$e(P.Button,"inheritContainedHoverBg",U("palette-grey-700")),$e(P.Chip,"defaultBorder",U("palette-grey-700")),$e(P.Chip,"defaultAvatarColor",U("palette-grey-300")),$e(P.Chip,"defaultIconColor",U("palette-grey-300")),$e(P.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),$e(P.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),$e(P.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),$e(P.LinearProgress,"primaryBg",Zn(P.primary.main,.5)),$e(P.LinearProgress,"secondaryBg",Zn(P.secondary.main,.5)),$e(P.LinearProgress,"errorBg",Zn(P.error.main,.5)),$e(P.LinearProgress,"infoBg",Zn(P.info.main,.5)),$e(P.LinearProgress,"successBg",Zn(P.success.main,.5)),$e(P.LinearProgress,"warningBg",Zn(P.warning.main,.5)),$e(P.Skeleton,"bg",`rgba(${U("palette-text-primaryChannel")} / 0.13)`),$e(P.Slider,"primaryTrack",Zn(P.primary.main,.5)),$e(P.Slider,"secondaryTrack",Zn(P.secondary.main,.5)),$e(P.Slider,"errorTrack",Zn(P.error.main,.5)),$e(P.Slider,"infoTrack",Zn(P.info.main,.5)),$e(P.Slider,"successTrack",Zn(P.success.main,.5)),$e(P.Slider,"warningTrack",Zn(P.warning.main,.5));const ee=dc(P.background.default,.98);$e(P.SnackbarContent,"bg",ee),$e(P.SnackbarContent,"color",ai(()=>P.getContrastText(ee))),$e(P.SpeedDialAction,"fabHoverBg",dc(P.background.paper,.15)),$e(P.StepConnector,"border",U("palette-grey-600")),$e(P.StepContent,"border",U("palette-grey-600")),$e(P.Switch,"defaultColor",U("palette-grey-300")),$e(P.Switch,"defaultDisabledColor",U("palette-grey-600")),$e(P.Switch,"primaryDisabledColor",Zn(P.primary.main,.55)),$e(P.Switch,"secondaryDisabledColor",Zn(P.secondary.main,.55)),$e(P.Switch,"errorDisabledColor",Zn(P.error.main,.55)),$e(P.Switch,"infoDisabledColor",Zn(P.info.main,.55)),$e(P.Switch,"successDisabledColor",Zn(P.success.main,.55)),$e(P.Switch,"warningDisabledColor",Zn(P.warning.main,.55)),$e(P.TableCell,"border",Zn(cc(P.divider,1),.68)),$e(P.Tooltip,"bg",cc(P.grey[700],.92))}bi(P.background,"default"),bi(P.background,"paper"),bi(P.common,"background"),bi(P.common,"onBackground"),bi(P,"divider"),Object.keys(P).forEach(ee=>{const H=P[ee];ee!=="tonalOffset"&&H&&typeof H=="object"&&(H.main&&$e(P[ee],"mainChannel",Ba(Na(H.main))),H.light&&$e(P[ee],"lightChannel",Ba(Na(H.light))),H.dark&&$e(P[ee],"darkChannel",Ba(Na(H.dark))),H.contrastText&&$e(P[ee],"contrastTextChannel",Ba(Na(H.contrastText))),ee==="text"&&(bi(P[ee],"primary"),bi(P[ee],"secondary")),ee==="action"&&(H.active&&bi(P[ee],"active"),H.selected&&bi(P[ee],"selected")))})}),T=f.reduce((W,P)=>Er(W,P),T);const A={prefix:x,disableCssColorScheme:g,shouldSkipGeneratingVar:y,getSelector:TS(T)},{vars:D,generateThemeVars:L,generateStyleSheets:V}=function(W,P={}){const{getSelector:U=ae,disableCssColorScheme:X,colorSchemeSelector:ee}=P,{colorSchemes:H={},components:$,defaultColorScheme:z="light",...q}=W,{vars:Z,css:Q,varsWithDefaults:Y}=nu(q,P);let te=Y;const ie={},{[z]:fe,...J}=H;if(Object.entries(J||{}).forEach(([Ce,Me])=>{const{vars:re,css:oe,varsWithDefaults:ue}=nu(Me,P);te=Er(te,ue),ie[Ce]={css:oe,vars:re}}),fe){const{css:Ce,vars:Me,varsWithDefaults:re}=nu(fe,P);te=Er(te,re),ie[z]={css:Ce,vars:Me}}function ae(Ce,Me){let re=ee;if(ee==="class"&&(re=".%s"),ee==="data"&&(re="[data-%s]"),ee?.startsWith("data-")&&!ee.includes("%s")&&(re=`[${ee}="%s"]`),Ce){if(re==="media")return W.defaultColorScheme===Ce?":root":{[`@media (prefers-color-scheme: ${H[Ce]?.palette?.mode||Ce})`]:{":root":Me}};if(re)return W.defaultColorScheme===Ce?`:root, ${re.replace("%s",String(Ce))}`:re.replace("%s",String(Ce))}return":root"}return{vars:te,generateThemeVars:()=>{let Ce={...Z};return Object.entries(ie).forEach(([,{vars:Me}])=>{Ce=Er(Ce,Me)}),Ce},generateStyleSheets:()=>{const Ce=[],Me=W.defaultColorScheme||"light";function re(De,ze){Object.keys(ze).length&&Ce.push(typeof De=="string"?{[De]:{...ze}}:De)}re(U(void 0,{...Q}),Q);const{[Me]:oe,...ue}=ie;if(oe){const{css:De}=oe,ze=H[Me]?.palette?.mode,mt=!X&&ze?{colorScheme:ze,...De}:{...De};re(U(Me,{...mt}),mt)}return Object.entries(ue).forEach(([De,{css:ze}])=>{const mt=H[De]?.palette?.mode,bt=!X&&mt?{colorScheme:mt,...ze}:{...ze};re(U(De,{...bt}),bt)}),Ce}}}(T,A);return T.vars=D,Object.entries(T.colorSchemes[T.defaultColorScheme]).forEach(([W,P])=>{T[W]=P}),T.generateThemeVars=L,T.generateStyleSheets=V,T.generateSpacing=function(){return ht.createSpacing(C.spacing,G5(this))},T.getColorSchemeSelector=function(W){return function(P){return W==="media"?`@media (prefers-color-scheme: ${P})`:W?W.startsWith("data-")&&!W.includes("%s")?`[${W}="${P}"] &`:W==="class"?`.${P} &`:W==="data"?`[data-${P}] &`:`${W.replace("%s",P)} &`:"&"}}(w),T.spacing=T.generateSpacing(),T.shouldSkipGeneratingVar=y,T.unstable_sxConfig={...fd,...C?.unstable_sxConfig},T.unstable_sx=function(W){return Pl({sx:W,theme:this})},T.toRuntimeSource=t9,T}({...l,colorSchemes:u,defaultColorScheme:c,...typeof o!="boolean"&&o},...t)}const Y5=D2();function J5(){const e=ht.useTheme(Y5);return e[$5]||e}function jS(e){const{theme:t,name:n,props:o}=e;return t&&t.components&&t.components[n]&&t.components[n].defaultProps?e9(t.components[n].defaultProps,o):o}function MS({props:e,name:t,defaultTheme:n,themeId:o}){let r=function(i=mS){return function(l=null){const c=o0.useContext(fi.ThemeContext);return c&&(s=c,Object.keys(s).length!==0)?c:l;var s}(i)}(n);return r=r[o]||r,jS({theme:r,name:t,props:e})}const RS=X5();function ru(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function _0(e,t){return t&&e&&typeof e=="object"&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}function IS(e){return e?(t,n)=>n[e]:null}function e1(e,t,n){const o=typeof t=="function"?t(e):t;if(Array.isArray(o))return o.flatMap(r=>e1(e,r,n));if(Array.isArray(o?.variants)){let r;if(o.isProcessed)r=n?_0(o.style,n):o.style;else{const{variants:i,...l}=o;r=n?_0(fi.internal_serializeStyles(l),n):l}return o9(e,o.variants,[r],n)}return o?.isProcessed?n?_0(fi.internal_serializeStyles(o.style),n):o.style:n?_0(fi.internal_serializeStyles(o),n):o}function o9(e,t,n=[],o=void 0){let r;e:for(let i=0;i<t.length;i+=1){const l=t[i];if(typeof l.props=="function"){if(r??={...e,...e.ownerState,ownerState:e.ownerState},!l.props(r))continue}else for(const c in l.props)if(e[c]!==l.props[c]&&e.ownerState?.[c]!==l.props[c])continue e;typeof l.style=="function"?(r??={...e,...e.ownerState,ownerState:e.ownerState},n.push(o?_0(fi.internal_serializeStyles(l.style(r)),o):l.style(r))):n.push(o?_0(fi.internal_serializeStyles(l.style),o):l.style)}return n}function DS(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}const LS=function(e={}){const{themeId:t,defaultTheme:n=RS,rootShouldForwardProp:o=ru,slotShouldForwardProp:r=ru}=e;function i(l){(function(c,s,u){c.theme=function(h){for(const f in h)return!1;return!0}(c.theme)?u:c.theme[s]||c.theme})(l,t,n)}return(l,c={})=>{fi.internal_mutateStyles(l,E=>E.filter(M=>M!==Pl));const{name:s,slot:u,skipVariantsResolver:h,skipSx:f,overridesResolver:p=IS(DS(u)),...m}=c,g=s&&s.startsWith("Mui")||u?"components":"custom",x=h!==void 0?h:u&&u!=="Root"&&u!=="root"||!1,y=f||!1;let w=ru;u==="Root"||u==="root"?w=o:u?w=r:function(E){return typeof E=="string"&&E.charCodeAt(0)>96}(l)&&(w=void 0);const b=fi(l,{shouldForwardProp:w,label:void 0,...m}),C=E=>{if(E.__emotion_real===E)return E;if(typeof E=="function")return function(M){return e1(M,E,M.theme.modularCssLayers?g:void 0)};if(Ei(E)){const M=function(j){const{variants:F,...k}=j,O={variants:F,style:fi.internal_serializeStyles(k),isProcessed:!0};return O.style===k||F&&F.forEach(S=>{typeof S.style!="function"&&(S.style=fi.internal_serializeStyles(S.style))}),O}(E);return function(j){return M.variants?e1(j,M,j.theme.modularCssLayers?g:void 0):j.theme.modularCssLayers?_0(M.style,g):M.style}}return E},_=(...E)=>{const M=[],j=E.map(C),F=[];if(M.push(i),s&&p&&F.push(function(S){const v=S.theme,I=v.components?.[s]?.styleOverrides;if(!I)return null;const T={};for(const R in I)T[R]=e1(S,I[R],S.theme.modularCssLayers?"theme":void 0);return p(S,T)}),s&&!x&&F.push(function(S){const v=S.theme,I=v?.components?.[s]?.variants;return I?o9(S,I,[],S.theme.modularCssLayers?"theme":void 0):null}),y||F.push(Pl),Array.isArray(j[0])){const S=j.shift(),v=new Array(M.length).fill(""),I=new Array(F.length).fill("");let T;T=[...v,...S,...I],T.raw=[...v,...S.raw,...I],M.unshift(T)}const k=[...M,...j,...F],O=b(...k);return l.muiName&&(O.muiName=l.muiName),O};return b.withConfig&&(_.withConfig=b.withConfig),_}}({themeId:$5,defaultTheme:Y5,rootShouldForwardProp:e=>function(t){return t!=="ownerState"&&t!=="theme"&&t!=="sx"&&t!=="as"}(e)&&e!=="classes"}),Bs=e=>{if(e.palette.mode==="dark")return`drop-shadow(0px 0px 1px ${e.palette.mode==="dark"?e.palette.text.primary:e.palette.divider})`},Kp=(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})`},OS=d.memo(d.forwardRef((e,t)=>{const{sx:n,size:o="small",activeColor:r,children:i,className:l,...c}=e;let s=24,u=24;return o==="medium"?(s=32,u=32):o==="large"&&(s=42,u=42),a.jsx(B.Box,{ref:t,className:Oo("icon",l),sx:{width:s,height:u,...n},...c,children:i})})),r9=LS(OS)(({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}})),ge=e=>a.jsx(r9,{children:e}),PS=e=>{const{sx:t,...n}=e;return a.jsxs(B.SvgIcon,{sx:{overflow:"visible","& .activeColor":{filter:Bs},...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"})]})},Q5=e=>{const{sx:t,...n}=e;return a.jsxs(B.SvgIcon,{sx:{overflow:"visible","& .activeColor":{filter:Bs},...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"})]})},AS=e=>{const{sx:t,...n}=e;return a.jsxs(B.SvgIcon,{sx:{overflow:"visible","& .activeColor":{filter:Bs},...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"})]})},FS=e=>{const{sx:t,...n}=e;return a.jsxs(B.SvgIcon,{sx:{overflow:"visible","& .activeColor":{filter:Bs},...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"})]})},Xp=e=>a.jsxs(B.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"})]}),zS=e=>a.jsxs(B.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"})]}),BS=e=>a.jsxs(B.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"})]}),i9=e=>a.jsx(B.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"})}),NS=e=>a.jsx(B.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"})}),VS=e=>a.jsxs(B.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"})]}),HS=e=>a.jsxs(B.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"})]}),$S=e=>a.jsxs(B.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"})]}),L2=e=>a.jsx(B.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"})}),e3=e=>a.jsxs(B.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"})]}),l9=e=>a.jsxs(B.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"})]}),WS=e=>a.jsx(B.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"})}),US=e=>a.jsx(B.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"})}),qS=e=>a.jsxs(B.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"})]}),ZS=e=>a.jsxs(B.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"})]}),GS=e=>a.jsx(B.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"})}),KS=e=>a.jsxs(B.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 $o={Enter:13,Escape:27,Space:32,Up:38,Down:40,F4:115},xr={Horizontal:"horizontal",Vertical:"vertical"};function a9(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=a9(e[t]))&&(o&&(o+=" "),o+=n)}else for(n in e)e[n]&&(o&&(o+=" "),o+=n);return o}function ml(){for(var e,t,n=0,o="",r=arguments.length;n<r;n++)(e=arguments[n])&&(t=a9(e))&&(o&&(o+=" "),o+=t);return o}var XS=function(){},s9=typeof window<"u",YS=s9?d.useLayoutEffect:d.useEffect,Yp={x:0,y:0,width:0,height:0,top:0,left:0,bottom:0,right:0};const B0=s9&&window.ResizeObserver!==void 0?function(){var e=d.useState(null),t=e[0],n=e[1],o=d.useState(Yp),r=o[0],i=o[1],l=d.useMemo(function(){return new window.ResizeObserver(function(c){if(c[0]){var s=c[0].contentRect,u=s.x,h=s.y,f=s.width,p=s.height,m=s.top,g=s.left,x=s.bottom,y=s.right;i({x:u,y:h,width:f,height:p,top:m,left:g,bottom:x,right:y})}})},[]);return YS(function(){if(t)return l.observe(t),function(){l.disconnect()}},[t]),[n,r]}:function(){return[XS,Yp]},pn=(e,t)=>{const n=d.useCallback((...i)=>e?.(...i),t),o=d.useRef(null);o.current=n;const r=d.useCallback((...i)=>o.current?.(...i),[]);if(o.current)return r},JS=e=>{const{style:t,orientation:n=xr.Vertical,...o}=e,r=n===xr.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"})})})})},QS=e=>{const{style:t,orientation:n=xr.Vertical,...o}=e,r=n===xr.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"})})})})},O2=(e,t,n,o,r=0)=>{for(let i=0;i<n.length;i++){const l=n[i].getBoundingClientRect();let c=l.left-t,s=c+l.width;if(o){if(c<e&&s>=e)return c}else if(Math.ceil(s)>Math.ceil(e)+2)return s}return r};Object.freeze(Object.defineProperty({__proto__:null,getScrollTo:O2},Symbol.toStringTag,{value:"Module"}));const t3=d.memo(d.forwardRef((e,t)=>{const{offset:n=0,totalSize:o=0,viewportSize:r=0,style:i,className:l,orientation:c=xr.Vertical,onScrollOffset:s,onScroll:u,showCustomScrollButtons:h=!1,scrollButtonIncrement:f=200,scrollButtonInitialRepeatDelay:p=260,scrollButtonAdditionalRepeatDelay:m=120,createScrollStartButton:g=JS,createScrollEndButton:x=QS,...y}=e,w=pn(u,[u]),b=d.useRef(null),[C,{width:_,height:E}]=B0(),[M,{width:j,height:F}]=B0(),k=c===xr.Vertical,O=k?"top":"left",S=k?"scrollTop":"scrollLeft",v=k?E:_,I=k?F:j,[T,R]=d.useState(null);d.useEffect(()=>{T!==null&&b.current&&b.current.scrollTo({behavior:"smooth",[O]:T})},[T,k]);const A=d.useCallback((z,q=!1)=>{if(!b.current)return 0;const Z=b.current.querySelector(".scrollbar-viewport"),Q=Z.getBoundingClientRect(),Y=Z.children,te=q?0:O2(z,Q[O],Y,!0,Math.max(0,z-f));return R(te),Math.max(0,te)},[]),D=d.useCallback((z,q=!1)=>{if(!b.current)return 0;const Z=b.current.querySelector(".scrollbar-viewport"),Q=Z.getBoundingClientRect(),Y=Z.children,te=Math.ceil(I-v),ie=q?te:O2(z,Q[O],Y,!1,Math.max(0,z+f));return R(ie),Math.min(te,ie)},[I,v]),L=d.useRef(null),V=d.useCallback(z=>{L.current=n;const q=z.target[S];s(q,r,o),w?.(z)},[s,r,o,n]);d.useEffect(()=>{const z=L.current;L.current=null,n!==z&&(b.current[S]=n)},[n,S]);const W=d.useRef(null),P=d.useRef(null),U=d.useCallback(()=>{W.current&&(clearTimeout(W.current),W.current=null,P.current=null)},[]),X=d.useCallback((z,q,Z,Q=p)=>{P.current=z,W.current=setTimeout(()=>{const Y=Z?A(P.current||z):D(P.current||z);Y!==P.current?X(Y,!1,Z,m):U()},q?0:Q)},[A,D,U]);d.useEffect(()=>()=>U(),[U]);const ee=n,H=d.useMemo(()=>{if(!h)return null;const z={orientation:c,disabled:Math.floor(ee)<=0||Math.floor(I-v)===0,onMouseUp:U,onMouseLeave:U,onMouseDown:()=>X(ee,!0,!0)};return g?.(z)},[h,c,ee,T,I,v]),$=d.useMemo(()=>{if(!h)return null;const z={orientation:c,disabled:Math.floor(I-v)<=Math.ceil(ee),onMouseUp:U,onMouseLeave:U,onMouseDown:()=>X(ee,!0,!1)};return x?.(z)},[h,c,ee,T,I,v]);return a.jsxs("div",{ref:t,style:{display:"flex",flex:"1",flexDirection:k?"column":"row",padding:"0",...i},className:ml("_sheetxl-scrollbar_eblx4_6",l),...y,children:[H,a.jsx("div",{className:"pseudo-scrollbar",style:{flex:"1 1 100%",display:"flex",boxSizing:"content-box",flexDirection:k?"column":"row",justifyContent:"center",alignItems:"center"},ref:C,children:a.jsx("div",{tabIndex:-1,style:{flex:"1 1 100%",overflowY:k?"scroll":"hidden",overflowX:k?"hidden":"scroll",position:"relative",willChange:"transform"},onScroll:V,ref:b,children:a.jsx("div",{ref:M,style:{position:"absolute",height:k?o-r+(E??0):1,width:k?1:o-r+(_??0)},className:"scrollbar-viewport"})})}),$]})}));t3.displayName="Scrollbar";let Jp=Date.now,Gi={},eC=1;const ua=e=>{let t=Gi[e]!==null;return t&&(Gi[e]=null),t},Qp=(e,t,n,o=0,r)=>{let i=Jp(),l=i,c=0,s=0,u=0,h=eC++;if(h%20==0){const p={};for(let m in Gi)p[m]=!0;Gi=p}const f=function(p){let m=p!==!0,g=Jp(),x=!0;try{x=(!t||t(h))??!0}catch{x=!1}if(!Gi[h]||!x)return Gi[h]=null,void n?.(60-s/((g-i)/1e3),h,!1);if(m){u=Math.round((g-l)/16.666666666666668)-1;for(let b=0;b<Math.min(u,4);b++)f(!0),s++}o&&(c=(g-i)/o,c>1&&(c=1));let y=r?r(c):c,w=!1;try{w=e(y,g,m)}catch{w=!1}w!==!1&&c!==1||!m?m&&(l=g,requestAnimationFrame(f)):(Gi[h]=null,n?.(60-s/((g-i)/1e3),h,c===1||o==null))};return Gi[h]=!0,requestAnimationFrame(f),h},tC=function(e){return Math.pow(e-1,3)+1},nC=function(e){return(e/=.5)<1?.5*Math.pow(e,3):.5*(Math.pow(e-2,3)+2)};class oC{constructor(t,n){this.__isSingleTouch=!1,this.__isTracking=!1,this.__didDecelerationComplete=!1,this.__isGesturing=!1,this.__isDragging=!1,this.__isDecelerating=0,this.__isAnimating=0,this.__interruptedAnimation=!1,this.__lastScale=1,this.__enableScrollX=!0,this.__enableScrollY=!0,this.__clientLeft=0,this.__clientTop=0,this.__clientWidth=0,this.__clientHeight=0,this.__contentWidth=0,this.__contentHeight=0,this.__snapWidth=100,this.__snapHeight=100,this.__zoomLevel=1,this.__scrollLeft=0,this.__scrollTop=0,this.__maxScrollLeft=0,this.__maxScrollTop=0,this.__scheduledLeft=0,this.__scheduledTop=0,this.__scheduledZoom=0,this.__lastTouchLeft=0,this.__lastTouchTop=0,this.__lastTouchMove=0,this.__positions=[],this.__initialTouchLeft=0,this.__initialTouchTop=0,this.__zoomLevelStart=1,this.__minDecelerationScrollLeft=null,this.__minDecelerationScrollTop=null,this.__maxDecelerationScrollLeft=null,this.__maxDecelerationScrollTop=null,this.__decelerationVelocityX=null,this.__decelerationVelocityY=0,this.__callback=t,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:void 0,penetrationDeceleration:.03,penetrationAcceleration:.08,...n}}setDimensions(t,n,o,r){t!==null&&(this.__clientWidth=t),n!==null&&(this.__clientHeight=n),o!==null&&(this.__contentWidth=o),r!==null&&(this.__contentHeight=r),this.__computeScrollMax(),this.scrollTo(this.__scrollLeft,this.__scrollTop,!0)}setPosition(t,n){this.__clientLeft=t||0,this.__clientTop=n||0}setSnapSize(t,n){this.__snapWidth=t,this.__snapHeight=n}getValues(){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(t,n){const o=this.getValues();return{left:t/o.zoom,top:n/o.zoom}}getScrollMax(){return{left:this.__maxScrollLeft,top:this.__maxScrollTop}}zoomTo(t,n=!1,o,r,i){if(!this.options.zooming)throw new Error("Zooming is not enabled!");i&&(this.__zoomComplete=i),this.__isDecelerating&&(ua(this.__isDecelerating),this.__isDecelerating=0);const l=this.__zoomLevel;o===void 0&&(o=this.__clientWidth/2),r===void 0&&(r=this.__clientHeight/2),t=Math.max(Math.min(t,this.options.maxZoom),this.options.minZoom),this.__computeScrollMax(t);const c=t/l;let s=c*(this.__scrollLeft+o)-o,u=c*(this.__scrollTop+r)-r;s>this.__maxScrollLeft?s=this.__maxScrollLeft:s<0&&(s=0),u>this.__maxScrollTop?u=this.__maxScrollTop:u<0&&(u=0),this.__publish(s,u,t,n)}zoomBy(t,n=!1,o=0,r=0,i){this.zoomTo(this.__zoomLevel*t,n,o,r,i)}scrollTo(t,n,o=!1,r=1){if(this.__isDecelerating&&(ua(this.__isDecelerating),this.__isDecelerating=0),r!==void 0&&r!==this.__zoomLevel){if(!this.options.zooming)throw new Error("Zooming is not enabled!");t*=r,n*=r,this.__computeScrollMax(r)}else r=this.__zoomLevel;this.options.scrollingX?this.options.paging?t=Math.round(t/this.__clientWidth)*this.__clientWidth:this.options.snapping&&(t=Math.round(t/this.__snapWidth)*this.__snapWidth):t=this.__scrollLeft,this.options.scrollingY?this.options.paging?n=Math.round(n/this.__clientHeight)*this.__clientHeight:this.options.snapping&&(n=Math.round(n/this.__snapHeight)*this.__snapHeight):n=this.__scrollTop,t=Math.max(Math.min(this.__maxScrollLeft,t),0),n=Math.max(Math.min(this.__maxScrollTop,n),0),t===this.__scrollLeft&&n===this.__scrollTop&&(o=!1),this.__publish(t,n,r,o)}scrollBy(t=0,n=0,o=!1){const r=this.__isAnimating?this.__scheduledLeft:this.__scrollLeft,i=this.__isAnimating?this.__scheduledTop:this.__scrollTop;this.scrollTo(r+(t||0),i+(n||0),o)}doMouseZoom(t,n,o,r){const i=t>0?.97:1.03;return this.zoomTo(this.__zoomLevel*i,!1,o-this.__clientLeft,r-this.__clientTop)}doTouchStart(t,n){if(t.length===void 0)throw new Error("Invalid touch list: "+t);if(n instanceof Date&&(n=n.valueOf()),typeof n!="number")throw new Error("Invalid timestamp value: "+n);let o,r;this.__interruptedAnimation=!0,this.__isDecelerating&&(ua(this.__isDecelerating),this.__isDecelerating=0,this.__interruptedAnimation=!0),this.__isAnimating&&(ua(this.__isAnimating),this.__isAnimating=0,this.__interruptedAnimation=!0);let i=t.length===1;i?(o=t[0].pageX,r=t[0].pageY):(o=Math.abs(t[0].pageX+t[1].pageX)/2,r=Math.abs(t[0].pageY+t[1].pageY)/2),this.__initialTouchLeft=o,this.__initialTouchTop=r,this.__zoomLevelStart=this.__zoomLevel,this.__lastTouchLeft=o,this.__lastTouchTop=r,this.__lastTouchMove=n,this.__lastScale=1,this.__enableScrollX=!i&&this.options.scrollingX,this.__enableScrollY=!i&&this.options.scrollingY,this.__isTracking=!0,this.__didDecelerationComplete=!1,this.__isDragging=!i,this.__isSingleTouch=i,this.__positions=[]}doTouchMove(t,n,o=1){if(t.length===void 0)throw new Error("Invalid touch list: "+t);if(n instanceof Date&&(n=n.valueOf()),typeof n!="number")throw new Error("Invalid timestamp value: "+n);if(!this.__isTracking)return;let r,i;t.length===2?(r=Math.abs(t[0].pageX+t[1].pageX)/2,i=Math.abs(t[0].pageY+t[1].pageY)/2):(r=t[0].pageX,i=t[0].pageY);let l=this.__positions;if(this.__isDragging){let c=r-this.__lastTouchLeft,s=i-this.__lastTouchTop,u=this.__scrollLeft,h=this.__scrollTop,f=this.__zoomLevel;if(o!==void 0&&this.options.zooming){let p=f;if(f=f/this.__lastScale*o,f=Math.max(Math.min(f,this.options.maxZoom),this.options.minZoom),p!==f){let m=r-this.__clientLeft,g=i-this.__clientTop;u=(m+u)*f/p-m,h=(g+h)*f/p-g,this.__computeScrollMax(f)}}if(this.__enableScrollX){u-=c*this.options.speedMultiplier;let p=this.__maxScrollLeft;(u>p||u<0)&&(this.options.bouncing?u+=c/2*this.options.speedMultiplier:u=u>p?p:0)}if(this.__enableScrollY){h-=s*this.options.speedMultiplier;const p=this.__maxScrollTop;(h>p||h<0)&&(this.options.bouncing?h+=s/2*this.options.speedMultiplier:h=h>p?p:0)}l.length>60&&l.splice(0,30),l.push(u,h,n),this.__publish(u,h,f)}else{let c=this.options.locking?3:0,s=5,u=Math.abs(r-this.__initialTouchLeft),h=Math.abs(i-this.__initialTouchTop);this.__enableScrollX=this.options.scrollingX&&u>=c,this.__enableScrollY=this.options.scrollingY&&h>=c,l.push(this.__scrollLeft,this.__scrollTop,n),this.__isDragging=(this.__enableScrollX||this.__enableScrollY)&&(u>=s||h>=s),this.__isDragging&&(this.__interruptedAnimation=!1)}this.__lastTouchLeft=r,this.__lastTouchTop=i,this.__lastTouchMove=n,this.__lastScale=o}doTouchEnd(t){if(t instanceof Date&&(t=t.valueOf()),typeof t!="number")throw new Error("Invalid timestamp value: "+t);if(this.__isTracking){if(this.__isTracking=!1,this.__isDragging)if(this.__isDragging=!1,this.__isSingleTouch&&this.options.animating&&t-this.__lastTouchMove<=100){let n=this.__positions,o=n.length-1,r=o;for(let i=o;i>0&&n[i]>this.__lastTouchMove-100;i-=3)r=i;if(r!==o){const i=n[o]-n[r],l=this.__scrollLeft-n[r-2],c=this.__scrollTop-n[r-1];this.__decelerationVelocityX=l/i*(1e3/60),this.__decelerationVelocityY=c/i*(1e3/60);const s=this.options.paging||this.options.snapping?4:1;(Math.abs(this.__decelerationVelocityX)>s||Math.abs(this.__decelerationVelocityY)>s)&&this.__startDeceleration(t)}else this.options.scrollingComplete?.()}else t-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(t,n,o,r=!1){const i=this.__isAnimating;if(i&&(ua(i),this.__isAnimating=0),r&&this.options.animating){this.__scheduledLeft=t,this.__scheduledTop=n,this.__scheduledZoom=o;const l=this.__scrollLeft,c=this.__scrollTop,s=this.__zoomLevel,u=t-l,h=n-c,f=o-s,p=function(x,y,w){w&&(this.__scrollLeft=l+u*x,this.__scrollTop=c+h*x,this.__zoomLevel=s+f*x,this.__callback&&this.__callback(this.__scrollLeft,this.__scrollTop,this.__zoomLevel))}.bind(this),m=function(x){return this.__isAnimating===x}.bind(this),g=function(x,y,w){y===this.__isAnimating&&(this.__isAnimating=!1),(this.__didDecelerationComplete||w)&&this.options.scrollingComplete?.(),this.options.zooming&&(this.__computeScrollMax(),this.__zoomComplete&&(this.__zoomComplete(),this.__zoomComplete=null))}.bind(this);this.__isAnimating=Qp(p,m,g,this.options.animationDuration,i?tC:nC)}else this.__scheduledLeft=this.__scrollLeft=t,this.__scheduledTop=this.__scrollTop=n,this.__scheduledZoom=this.__zoomLevel=o,this.__callback&&this.__callback(t,n,o),this.options.zooming&&(this.__computeScrollMax(),this.__zoomComplete&&(this.__zoomComplete(),this.__zoomComplete=null))}__computeScrollMax(t=this.__zoomLevel){this.__maxScrollLeft=Math.max(this.__contentWidth*t-this.__clientWidth,0),this.__maxScrollTop=Math.max(this.__contentHeight*t-this.__clientHeight,0)}__startDeceleration(t){if(this.options.paging){const l=Math.max(Math.min(this.__scrollLeft,this.__maxScrollLeft),0),c=Math.max(Math.min(this.__scrollTop,this.__maxScrollTop),0),s=this.__clientWidth,u=this.__clientHeight;this.__minDecelerationScrollLeft=Math.floor(l/s)*s,this.__minDecelerationScrollTop=Math.floor(c/u)*u,this.__maxDecelerationScrollLeft=Math.ceil(l/s)*s,this.__maxDecelerationScrollTop=Math.ceil(c/u)*u}else this.__minDecelerationScrollLeft=0,this.__minDecelerationScrollTop=0,this.__maxDecelerationScrollLeft=this.__maxScrollLeft,this.__maxDecelerationScrollTop=this.__maxScrollTop;const n=function(l,c,s){this.__stepThroughDeceleration(s)}.bind(this),o=this.options.snapping?4:.1,r=function(){const l=Math.abs(this.__decelerationVelocityX)>=o||Math.abs(this.__decelerationVelocityY)>=o;return l||(this.__didDecelerationComplete=!0),l}.bind(this),i=function(l,c,s){this.__isDecelerating=0,this.__didDecelerationComplete&&this.options.scrollingComplete?.(),this.scrollTo(this.__scrollLeft,this.__scrollTop,this.options.snapping)}.bind(this);this.__isDecelerating=Qp(n,r,i)}__stepThroughDeceleration(t){let n=this.__scrollLeft+this.__decelerationVelocityX,o=this.__scrollTop+this.__decelerationVelocityY;if(!this.options.bouncing){const r=Math.max(Math.min(this.__maxDecelerationScrollLeft,n),this.__minDecelerationScrollLeft);r!==n&&(n=r,this.__decelerationVelocityX=0);const i=Math.max(Math.min(this.__maxDecelerationScrollTop,o),this.__minDecelerationScrollTop);i!==o&&(o=i,this.__decelerationVelocityY=0)}if(t?this.__publish(n,o,this.__zoomLevel):(this.__scrollLeft=n,this.__scrollTop=o),!this.options.paging&&(this.__decelerationVelocityX*=.95,this.__decelerationVelocityY*=.95),this.options.bouncing){let r=0,i=0,l=this.options.penetrationDeceleration,c=this.options.penetrationAcceleration;n<this.__minDecelerationScrollLeft?r=this.__minDecelerationScrollLeft-n:n>this.__maxDecelerationScrollLeft&&(r=this.__maxDecelerationScrollLeft-n),o<this.__minDecelerationScrollTop?i=this.__minDecelerationScrollTop-o:o>this.__maxDecelerationScrollTop&&(i=this.__maxDecelerationScrollTop-o),r!==0&&(r*this.__decelerationVelocityX<=0?this.__decelerationVelocityX+=r*l:this.__decelerationVelocityX=r*c),i!==0&&(i*this.__decelerationVelocityY<=0?this.__decelerationVelocityY+=i*l:this.__decelerationVelocityY=i*c)}}}var kr=typeof window<"u"?window:{screen:{},navigator:{}},Al=(kr.matchMedia||function(){return{matches:!1}}).bind(kr),c9=!1,rC={get passive(){return c9=!0}},e6=function(){};kr.addEventListener&&kr.addEventListener("p",e6,rC),kr.removeEventListener&&kr.removeEventListener("p",e6,!1);var iC=c9,lC="PointerEvent"in kr,n3="ontouchstart"in kr,d9=n3||"TouchEvent"in kr&&Al("(any-pointer: coarse)").matches,t6=(kr.navigator.maxTouchPoints||0)>0||d9,u9=kr.navigator.userAgent||"",aC=Al("(pointer: coarse)").matches&&/iPad|Macintosh/.test(u9)&&Math.min(kr.screen.width||0,kr.screen.height||0)>=768,h9=(Al("(pointer: coarse)").matches||!Al("(pointer: fine)").matches&&n3)&&!/Windows.*Firefox/.test(u9),sC=Al("(any-pointer: fine)").matches||Al("(any-hover: hover)").matches||aC||!n3,P2=!t6||!sC&&h9?t6?"touchOnly":"mouseOnly":"hybrid",cC=P2==="mouseOnly"?"mouse":P2==="touchOnly"||h9?"touch":"mouse";const dC=Object.freeze(Object.defineProperty({__proto__:null,deviceType:P2,primaryInput:cC,supportsPassiveEvents:iC,supportsPointerEvents:lC,supportsTouchEvents:d9},Symbol.toStringTag,{value:"Module"})),uC=new Set(["INPUT","TEXTAREA","SELECT"]),p9={};function A2(){return dC}const hC=Object.freeze(Object.defineProperty({__proto__:null,EmptyCssProperties:p9,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:A2,focusableNodeNames:uC,toPrettyKeyCode:e=>e==="BracketLeft"?"[":e==="BracketRight"?"]":lo.camelToPrettyCase(e)},Symbol.toStringTag,{value:"Module"})),pC=[];function md(e,t,n=pC){const o=d.useRef(null);return d.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),c=l.length;for(let s=0;s<c;s++){const u=l[s],h=i[u];Object.defineProperty(r,u,{value:h,writable:!0,configurable:!0,enumerable:!0})}return r},n),o}const n6=e=>a.jsx(t3,{...e}),fC=({width:e,height:t})=>a.jsx("div",{className:"corner",style:{minWidth:`${e}px`,width:`${e}px`,minHeight:`${t}px`,height:`${t}px`}}),mC=d.memo(d.forwardRef((e,t)=>{const{children:n,viewport:o,onScrollViewport:r,showHorizontalScrollbar:i=!0,showVerticalScrollbar:l=!0,createScrollCorner:c=fC,createHorizontalScrollbar:s=n6,createVerticalScrollbar:u=n6,style:h,touchElement:f,disableTouch:p,...m}=e,g=pn(r,[r]),x=md(t,()=>({isScrollPane:()=>!0}),[]),y=d.useRef(null);d.useEffect(()=>{y.current&&(y.current.__scrollTop===o?.top&&y.current.__scrollLeft===o?.left||y.current.__isDecelerating||y.current?.scrollTo(o?.left,o?.top,!1))},[o?.left,o?.top,f]);const w=d.useCallback((v,I)=>{g?.({left:v,top:I})},[]),b=d.useCallback(v=>{y.current?.doTouchStart(v.touches,v.timeStamp)},[]),C=d.useCallback(v=>{v.preventDefault(),y.current?.doTouchMove(v.touches,v.timeStamp)},[]),_=d.useCallback(v=>{y.current?.doTouchEnd(v.timeStamp)},[]),E=d.useCallback(({containerWidth:v,containerHeight:I,totalWidth:T,totalHeight:R})=>{y.current.setDimensions(v,I,T,R)},[]);d.useEffect(()=>{const v=f??x.current;if(!p&&A2().supportsTouchEvents&&v&&o){if(!y.current){const I={scrollingX:!0,scrollingY:!0,decelerationRate:.95,penetrationAcceleration:.08};y.current=new oC(w,I)}A2().supportsTouchEvents&&(v.addEventListener("touchstart",b),v.addEventListener("touchend",_),v.addEventListener("touchmove",C)),E({containerWidth:o?.width,containerHeight:o?.height,totalWidth:o?.totalWidth,totalHeight:o?.totalHeight})}return()=>{v?.removeEventListener("touchstart",b),v?.removeEventListener("touchend",_),v?.removeEventListener("touchmove",C)}},[o?.width,o?.height,o?.totalWidth,o?.totalHeight,p,f]);const[M,{width:j}]=B0(),[F,{height:k}]=B0(),O=d.useMemo(()=>{const v=u({orientation:xr.Vertical,offset:o?.top,viewportSize:o?.height,totalSize:o?.totalHeight,onScrollOffset:I=>{g?.({top:I})}});return a.jsx("div",{style:{display:"flex",flex:"0"},ref:M,children:v})},[u,o?.top,o?.height,o?.totalHeight]),S=d.useMemo(()=>{const v=s({orientation:xr.Horizontal,offset:o?.left,viewportSize:o?.width,totalSize:o?.totalWidth,onScrollOffset:I=>g?.({left:I})});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% - ${j}px)`},children:a.jsx("div",{ref:F,className:"sizer",children:v})}),l?c({width:j,height:k}):a.jsx(a.Fragment,{})]})},[s,o?.left,o?.width,o?.totalWidth,l,c,j,k]);return a.jsx("div",{style:{position:"relative",display:"flex",minWidth:l?`${j}px`:void 0,minHeight:i?`${k}px`:void 0,...h},...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?O:a.jsx(a.Fragment,{})]}),i?S:a.jsx(a.Fragment,{})]})})}));mC.displayName="ScrollPane";const gC=()=>{const e=document.fullscreenElement;return e?e.querySelector(".fullscreen-portal-root")||e:document.body};let uc=0;function o3(){return d.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 uc++,e(),document.addEventListener("fullscreenchange",e),()=>{document.removeEventListener("fullscreenchange",e),uc--,uc<=0&&(document.querySelectorAll(".fullscreen-portal-root").forEach(t=>{t.parentNode&&t.parentNode.removeChild(t)}),uc=0)}},[]),{getPortalContainer:gC}}const xC=100,yC=100,bC=1e6,wC=100,vC=50,SC=d.memo(d.forwardRef((e,t)=>{const{offset:n=0,viewportSize:o=0,totalSize:r=0,minSize:i=0,endGap:l=xC,endScrollIncrement:c=yC,style:s=p9,onMouseDown:u,onScrollOffset:h,onScroll:f,scaleLimit:p=bC,scaleFactor:m=wC,precisionFactor:g=vC,...x}=e;f&&console.warn("onScroll not supported for VirtualScrollbar. Use onScrollOffset instead");const y=pn(u,[u]),w=()=>({offset:n,totalSize:p===0?r:Math.min(r??0,Math.max(i??0,(n??0)+(o??0))+(l??0))}),[b,C]=d.useState(w),_=p!==0&&b.totalSize>p?m:1,E=_/g,M=Math.ceil(b.totalSize/_),j=Math.ceil(b.offset/_),F=Math.ceil(o/_),k=d.useCallback(A=>{},[]),[O,S]=d.useState(!1),v=d.useRef(null);d.useLayoutEffect(()=>{if(!O){v.current={propTotalSize:r,propViewportSize:o,propOffset:n};const A=w();C(A)}},[r,o,n,O,i,l,c]);const I=pn((A,D,L)=>{const V=v.current;v.current=null,V&&V.propTotalSize===r&&V.propViewportSize===o&&V.propOffset===n||(Math.abs(A-j)<E&&(A=j),h?.(A*_,j,F))},[h,_,E,j,F]),T=d.useCallback(A=>{document.removeEventListener("mousemove",k),document.removeEventListener("mouseup",T),S(!1)},[]),R=d.useCallback(A=>{y?.(A),S(!0),document.addEventListener("mousemove",k,{passive:!0}),document.addEventListener("mouseup",T,{passive:!0})},[k,T]);return a.jsx(t3,{ref:t,style:{...s},...x,offset:j,totalSize:M,viewportSize:F,onMouseDown:R,onScrollOffset:I})}));function iu(e,t){if(typeof e=="function")return e(t);e&&(e.current=t)}SC.displayName="VirtualScrollbar";var T1=parseInt(d.version.split(".")[0],10)>=19?function(e){return t=>{const n=[];for(const o of e){const r=iu(o,t),i=typeof r=="function";n.push(i?r:()=>iu(o,null))}return()=>{for(const o of n)o()}}}:function(e){return t=>{for(const n of e)iu(n,t)}};d.memo(d.forwardRef((e,t)=>{const{refFocusStart:n,...o}=e,r=d.useRef(null),i=d.useCallback(()=>{if(n)return void n?.current?.focus();const l=r.current.parentElement.children;let c=[];for(let s=0;s<l.length&&l[s]!==r.current;s++){const u=l[s].getAttribute("tabindex");if(u==null||u==="-1"||l[s].getAttribute("disabled")==="true")continue;const h=l[s];h.focus&&c.push({tabindex:parseInt(u),child:h})}c.length!==0&&(c.sort(function(s,u){return s.tabindex-u.tabindex}),c[0].child.focus())},[n]);return a.jsx("div",{tabIndex:0,ref:T1([r,t]),onFocus:i,...o})})),d.memo(d.forwardRef((e,t)=>{const{className:n,style:o,children:r,radius:i=4,strokeWidth:l=1,strokeColor:c="grey",...s}=e,[u,{width:h,height:f}]=B0(),p=d.useRef(null),m=(w,b=0)=>{const C=w/2,_=f-C+b;return function(E,M,j=!1){if(M===0)return E;function F(T,R,A){let D=R.x-T.x,L=R.y-T.y,V=Math.sqrt(D*D+L*L);return k(T,R,Math.min(1,A/V))}function k(T,R,A){return{x:T.x+(R.x-T.x)*A,y:T.y+(R.y-T.y)*A}}function O(T,R){T.length>2&&(T[T.length-2]=R.x,T[T.length-1]=R.y)}function S(T){return{x:parseFloat(T[T.length-2]),y:parseFloat(T[T.length-1])}}let v=E.split(/[,\s]/).reduce(function(T,R){let A=R.match("([a-zA-Z])(.+)");return A?(T.push(A[1]),T.push(A[2])):T.push(R),T},[]).reduce(function(T,R){return parseFloat(R)==R&&T.length?T[T.length-1].push(R):T.push([R]),T},[]),I=[];if(v.length>1){let T=S(v[0]),R=null;v[v.length-1][0]==="Z"&&v[0].length>2&&(R=["L",T.x,T.y],v[v.length-1]=R),I.push(v[0]);for(let A=1;A<v.length;A++){let D=I[I.length-1],L=v[A],V=L===R?v[1]:v[A+1];if(V&&D&&D.length>2&&L[0]==="L"&&V.length>2&&V[0]==="L"){let W,P,U=S(D),X=S(L),ee=S(V);j?(W=k(X,D.origPoint||U,M),P=k(X,V.origPoint||ee,M)):(W=F(X,U,M),P=F(X,ee,M)),O(L,W),L.origPoint=X,I.push(L);let H=k(W,X,.5),$=k(X,P,.5),z=["C",H.x,H.y,$.x,$.y,P.x,P.y];z.origPoint=X,I.push(z)}else I.push(L)}if(R){let A=S(I[I.length-1]);I.push(["Z"]),O(I[0],A)}}else I=v;return I.reduce(function(T,R){return T+R.join(" ")+" "},"")}(`M 0 ${C} L ${i-.5} ${C} L ${i-.5} ${_} L ${2*i} ${_} L ${h-2*i} ${_} M ${h-2*i} ${_} L ${h-i} ${_} L ${h-i} ${C} L ${h} ${C}`,i)},g=d.useMemo(()=>m(l),[h,f,i,l]),x=d.useMemo(()=>{if(i===0)return;const w=i/2;return m(i)+`L ${h} 0 L 0 0 L 0 ${w}`},[g,i,l]),y=d.useMemo(()=>({style:{clipPath:`path('${x}')`}}),[x]);return a.jsxs("div",{className:n,style:{display:"flex",flexDirection:"row",...o},...s,ref:T1([p,u,t]),children:[d.isValidElement(r)?d.cloneElement(r,y):a.jsx(a.Fragment,{}),a.jsx("svg",{style:{position:"absolute",top:0,left:0,pointerEvents:"none"},width:h,height:f,viewBox:`0 0 ${h} ${f}`,children:a.jsx("path",{d:g,stroke:c,fill:"none",vectorEffect:"non-scaling-stroke",strokeWidth:l})})]})}));const CC={},_C=e=>{const{onPointerDown:t,style:n,splitDirection:o,paddingBefore:r=0,paddingAfter:i=0,disabled:l,key:c,hitAreaProps:s=CC,...u}=e,h=o==="row",{style:f,className:p,...m}=s;return a.jsx("div",{style:{...n,position:"relative"},...u,children:a.jsx("div",{className:ml("hit-box",p),style:{left:(h?-r:0)+"px",width:`calc(100% + ${h?r+i:0}px)`,top:(h?0:-r)+"px",height:`calc(100% + ${h?0:r+i}px)`,position:"absolute",...f},onPointerDown:l?void 0:t,...m})},c)},hc={},p0=(e,t,n=!0)=>e===null?null:e.pixels!==null?n?e.pixels:t-e.pixels:(n?e.percent:100-e.percent)/100*t,pc=(e,t=!0)=>e?.percent?`${t?e.percent:100-e.percent}%`:e?.pixels?`${e.pixels}px`:void 0,Fi=(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)};d.memo(d.forwardRef((e,t)=>{const{elementBefore:n,elementAfter:o,splitDirection:r="row",fixedPane:i=null,position:l,onPositionChange:c,minBefore:s,maxBefore:u,minAfter:h,maxAfter:f,children:p,className:m,style:g,disabled:x=!1,onDragStart:y,onDragResize:w,onDragFinish:b,resizerProps:C=hc,paneProps:_=hc,paneBeforeProps:E=hc,paneAfterProps:M=hc,createResizer:j=_C}=e;if(p)throw new Error("Use elementBefore and elementAfter instead of children.");const F=d.useMemo(()=>d.isValidElement(o)&&d.isValidElement(n),[o,n]),k=d.useMemo(()=>{let ne=null;i&&(i==="before"?ne=0:i==="after"&&(ne=1));const be=ne===null;return{fixedPaneOffset:ne,isPercent:be,minBefore:Fi(s,be),maxBefore:Fi(u,be),minAfter:Fi(h,be),maxAfter:Fi(f,be)}},[s,u,h,f]),O=pn(c,[c]),[S,v]=d.useState(()=>Fi(l,i===null));d.useEffect(()=>{v(Fi(l,i===null))},[l,i]);const[I,{width:T,height:R}]=B0(),[A,{width:D,height:L}]=B0(),V=r==="row"?D:L,W=r==="row"?T:R,P=d.useMemo(()=>((ne,be,ke,me)=>{const Ie=[null,null],we=[null,null];if(ne||(ne={percent:me.fixedPaneOffset===null?50:null,pixels:me.fixedPaneOffset===null?null:0}),be===0)return ne?.pixels!=null?me.fixedPaneOffset!==1?(Ie[0]=ne?.pixels,we[1]=100):(Ie[1]=ne?.pixels-ke,we[0]=100):ne?.percent!=null&&(me.fixedPaneOffset!==1?(we[0]=ne?.percent,we[1]=100-ne?.percent):(we[1]=ne?.percent,we[0]=100-ne?.percent)),{percents:we,pixels:Ie,minBefore:pc(me.minBefore,!0),maxBefore:pc(me.maxBefore,!0),minAfter:pc(me.minAfter),maxAfter:pc(me.maxAfter)};let xe=p0(ne,be,me.fixedPaneOffset!==1),Ee=be-ke,Fe=p0(me.minBefore,Ee,!0)??0,ft=p0(me.maxBefore,Ee,!0)??Ee,ut=0,Pe=0,Qe=0,nt=Ee;ut=(p0(me.maxAfter,be,!1)??ke)-ke,Pe=p0(me.minAfter,be,!1)??be,Qe=Math.max(Fe,ut),nt=Math.min(ft,Pe),xe=Math.max(Qe,Math.min(xe,nt)),Pe=Math.min(Ee-xe,p0(me.maxAfter,Ee-xe,!0)??Ee),ut=Math.min(Ee-xe,p0(me.minAfter,Ee-xe,!0)??Ee),Ie[0]=xe,Ie[1]=Ee-Ie[0];const Ke=Math.max(0,Math.min(100,xe/Ee*100));return we[0]=Ke,we[1]=100-we[0],{percents:we,pixels:Ie,minBefore:`${Fe}px`,minAfter:`${ut}px`,maxBefore:`${Ie[0]}px`,maxAfter:`${Ie[1]}px`}})(S,W,V,k),[k,S,W,V,r]),[U,X]=d.useState(!1),ee=pn(y,[y]),H=pn(w,[w]),$=pn(b,[b]),z=d.useRef(null),q=d.useRef(null),Z=d.useRef(null),{style:Q,className:Y,...te}=_,ie={minWidth:0,minHeight:0,maxWidth:"100%",maxHeight:"100%",display:"flex",overflow:"hidden",...Q},{className:fe,style:J,...ae}=E,{className:Ce,style:Me,...re}=M,oe={flex:"1 1 100%",width:"100%",...g,flexDirection:r,display:"flex"},{className:ue,style:De,onPointerDown:ze,...mt}=C,bt=pn(ne=>{const be=Fi(ne,i===null);v(be)},[i]),ve=pn(ne=>{if(x||!U)return;const be=Ne.current?.getBoundingClientRect();let ke=0;ke=r==="row"?(ne.clientX??ne.touches?.[0]?.clientX)-be.x:(ne.clientY??ne.touches?.[0]?.clientY)-be.y,ke=Math.max(0,Math.min(W,ke)),k.fixedPaneOffset===1&&(ke=W-ke),l&&S.pixels===ke||v({pixels:ke,percent:null}),H?.(ke),ne.stopPropagation(),ne.preventDefault()},[k,r,x,U,S,W]),dt=pn(ne=>{if(document.removeEventListener("pointermove",ve),document.removeEventListener("touchmove",ve),document.removeEventListener("pointerup",dt),U&&(X(!1),S)){if($(S.pixels),!Fi(l,i===null)||S.pixels!==l){const be={...S};be.percent===null&&(be.percent=be.pixels/W*100),O(be)}ne.stopPropagation(),ne.preventDefault()}},[S,U,l,i,W]),xt=pn(ne=>{ze?.(ne),ne.defaultPrevented||x||U||(X(!0),ee(),document.addEventListener("pointermove",ve,{passive:!1}),document.addEventListener("touchmove",ve,{passive:!1}),document.addEventListener("pointerup",dt,{passive:!1}))},[ze]),Ne=md(t,()=>({setPosition:bt,isSplitPane:()=>!0}),[]),vt=d.useMemo(()=>F?j?.({key:"resizer",ref:T1([A,q]),className:ml("resizer",ue),onPointerDownCapture:xt,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,...De},splitDirection:r,disabled:x,...mt}):null,[F,ue,mt,r,De,x]),Xe=r==="row"?"Width":"Height",le={...ie,...J,flex:k.fixedPaneOffset===0&&P?.pixels[0]!==null?`0 0 ${Math.round(P?.pixels[0])}px`:`1 1 ${Math.round(P?.percents[0]??100)}%`,[`min${Xe}`]:P?.minBefore,[`max${Xe}`]:o?P?.maxBefore:"100%"},Ue={...ie,...Me,flex:k.fixedPaneOffset===1&&P?.pixels[1]!==null?`0 0 ${Math.round(P?.pixels[1])}px`:`1 1 ${Math.round(P?.percents[1]??100)}%`,[`min${Xe}`]:P?.minAfter,[`max${Xe}`]:n?P?.maxAfter:"100%"},ye=d.useMemo(()=>n?a.jsx("div",{ref:z,className:ml("before",Y,fe),style:le,...te,...ae,children:n},"before"):null,[n,_,E,k,P]),Se=d.useMemo(()=>o?a.jsx("div",{ref:Z,className:ml("after",Y,Ce),style:Ue,...te,...re,children:o},"after"):null,[o,_,M,k,P]);return a.jsxs("div",{ref:T1([I,Ne]),className:ml("splitPane",r==="row"?"vertical":"horizontal",{dragging:U},m),style:oe,children:[ye,vt,Se]})}));const EC=({initValue:e,useHookBody:t,applyStateChange:n})=>{const o=d.useRef(e);if(typeof t!="function")throw new Error("function expected as hook body parameter. got "+typeof t);const r=t();return d.useLayoutEffect(()=>{o.current!==r&&(o.current=r,n(r))},[n,r]),null},F2=e=>{console&&console.warn&&console.warn(e)},lu=typeof self=="object"&&self.self===self&&self||typeof global=="object"&&global.global===global&&global||void 0;let kC=1,z2=!1,f9=!1;const t1=[],gl=[],j1=()=>{gl.forEach(e=>e())},TC=({automaticContainerInternalUseOnly:e})=>{const[t,n]=d.useState([]),o=d.useRef([]);return o.current=t,e||z2!==!1||(f9=!0),d.useEffect(()=>{let r=!0;function i(){if(r)return gl[0]!==i?(e||z2!==!0||F2("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([...t1])}return gl.push(i),j1(),()=>{r=!1,o.current?.length>0&&F2("SingletonHooksContainer is unmounted, but it has active singleton hooks. They will be reevaluated once SingletonHooksContainer is mounted again"),gl.splice(gl.indexOf(i),1),j1()}},[e]),a.jsx(a.Fragment,{children:t.map(({hook:r,key:i})=>d.createElement(EC,{...r,key:i}))})},m9=(e,t,n={})=>{let o,r,i=!1,l=!1,c=[],{unmountIfNoConsumers:s=!1}=n;const u=f=>{r=f,ao.unstable_batchedUpdates(()=>c.forEach(p=>p(f)))},h=()=>(l||(r=typeof e=="function"?e():e,l=!0),r);return()=>{const[f,p]=d.useState(h);return d.useEffect(()=>(i||(i=!0,o=(m=>{const g=kC++;return t1.push({hook:m,key:g}),gl.length===0&&f9===!1&&(z2=!0,(x=>{if(lu.document&&lu.document.createElement){const y=lu.document.createElement("div");cd.createRoot(y).render(a.jsx(x,{automaticContainerInternalUseOnly:!0}))}else F2("Can not mount SingletonHooksContainer on server side. Did you manage to run useEffect on server? Please mount SingletonHooksContainer into your components tree manually.")})(TC)),j1(),()=>{t1.splice(t1.findIndex(x=>x.key===g),1),j1()}})({initValue:e,useHookBody:t,applyStateChange:u})),c.push(p),r!==f&&p(r),()=>{c.splice(c.indexOf(p),1),c.length===0&&s&&(o(),i=!1)}),[]),f}};function r3(e,t=null){const n=d.useRef(t);n.current=t;const[o,r]=d.useReducer(l=>l+1,0),i=d.useMemo(()=>Array.isArray(e)?e:[e],[e]);return d.useEffect(()=>{if(!i||i.length===0)return;const l=(u,h)=>{n.current?.onChange?.(h),r()};let c=null;t&&(c={onExecute(u,h){n.current?.onExecute?.(u,h)},onError(u,h,f){n.current?.onError?.(u,h,f)}});const s=new Set;for(let u=0;u<i.length;u++)s.add(i[u]?.addPropertyListener(lo.debounce(l,0),!0)),t&&s.add(i[u]?.addExecuteListener(c));return()=>{s.forEach(u=>{u?.()})}},[e]),o}m9(null,()=>{const[e,t]=d.useState(null);return e}),lo.getOS()===lo.OSType.MacOS||(lo.getOS(),lo.OSType.IOS),lo.getOS()===lo.OSType.MacOS||(lo.getOS(),lo.OSType.IOS);const fc=(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 i3(e,t=null,n=null,o){const r=d.useRef(n);r.current=n,t&&!Array.isArray(t)&&(t=[t]);const[i,l]=d.useState(fc(e,t)),c=o?[...o,e]:[e];return d.useEffect(()=>{const s={onGroupChange:()=>{const p=fc(e,t);l(p),r.current?.onChange?.(this)}};let u;t&&t.length>0&&(u={keys:t},s.onCommandChange=(p,m)=>{r.current?.onChange?.(e),l(fc(e,t))});const h=e?.addListener(s,u),f=fc(e,t);return l(f),r.current?.onChange&&r.current?.onChange(e),()=>{h?.()}},c),i}const Vr={Toolbar:"toolbar",Menuitem:"menuitem"};m9({setClipboard:e=>{throw new Error("This is only available via the useClipboard.")},getClipboard:()=>S1.Global,refNativeCopy:{current:null},refNativeLastKey:{current:null}},()=>{const[e,t]=d.useState(S1.Global);return{setClipboard:n=>t(n),getClipboard:()=>e,refNativeCopy:d.useRef(null),refNativeLastKey:d.useRef(null)}});let au=!1,jC=0;var MC=typeof document<"u"?d.useLayoutEffect:d.useEffect;const o6=()=>"sheetxl-ui-"+jC++,RC=d.useId??function(){const[e,t]=d.useState(()=>au?o6():void 0);return MC(()=>{e==null&&t(o6())},[]),d.useEffect(()=>{au||(au=!0)},[]),e},IC=e=>{const{isWalking:t=!1,themedType:n="info",...o}=e,r="copy-walking-offset-"+RC().replaceAll(":","");d.useEffect(()=>{if(!t)return;const l=`
|
|
28
|
+
@keyframes ${r} {
|
|
29
|
+
to {
|
|
30
|
+
stroke-dashoffset: 0px;
|
|
31
|
+
}
|
|
32
|
+
}`,c=document.createElement("style");return c.appendChild(document.createTextNode(l)),document.head.appendChild(c),c.sheet.insertRule(l,0),()=>{document.head.removeChild(c)}},[t]);let i=d.useMemo(()=>{if(t)return{strokeDasharray:"5px 2px",strokeDashoffset:"7px",animation:`${r} 840ms linear infinite`,willChange:"stroke-dashoffset"}},[t]);return a.jsx(B.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}})]})})},r6=e=>a.jsx(B.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"})}),DC=e=>a.jsxs(B.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"})]}),LC=e=>a.jsxs(B.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"})]}),OC=e=>a.jsxs(B.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"})]}),PC=e=>a.jsxs(B.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"})]}),AC=e=>a.jsxs(B.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"})]}),FC=e=>a.jsxs(B.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"})]}),zC=e=>a.jsxs(B.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"})]}),BC=e=>a.jsxs(B.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"})]}),NC=e=>a.jsxs(B.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"})]}),ha=e=>a.jsxs(B.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"})]}),i6=e=>a.jsxs(B.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"})]}),l6=e=>a.jsxs(B.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"})]}),VC=e=>a.jsxs(B.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"})]}),B2=e=>a.jsxs(B.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"})]}),N2=e=>a.jsxs(B.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"})]}),mc=e=>a.jsxs(B.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"})]}),ms=e=>a.jsx(B.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"})}),a6=e=>a.jsxs(B.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"})]}),s6=e=>a.jsxs(B.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"})]}),HC=e=>a.jsxs(B.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"})]}),$C=e=>a.jsxs(B.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"})]}),WC=e=>a.jsxs(B.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"})]}),UC=e=>a.jsxs(B.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"})]}),g9=e=>a.jsxs(B.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"})]}),V2=e=>a.jsxs(B.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"})]}),qC=e=>a.jsxs(B.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"})]}),ZC=e=>a.jsxs(B.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"})]}),GC=e=>a.jsxs(B.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"})]}),c6=e=>a.jsxs(B.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"})]}),KC=e=>a.jsxs(B.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"})]}),XC=e=>a.jsxs(B.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"})]}),su=e=>a.jsxs(B.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"})]}),d6=e=>a.jsxs(B.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"})]}),u6=e=>a.jsxs(B.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"})]}),h6=e=>a.jsxs(B.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"})]}),YC=e=>a.jsxs(B.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"})]}),p6=e=>a.jsxs(B.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"})]}),f6=e=>a.jsxs(B.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"})]}),m6=e=>a.jsxs(B.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"})]}),gc=e=>a.jsxs(B.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"})]}),g6=e=>a.jsxs(B.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"})]}),JC=e=>a.jsxs(B.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"})]}),QC=e=>a.jsxs(B.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"})]}),x6=e=>a.jsxs(B.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"})]}),gs=e=>a.jsxs(B.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"})]}),e_=e=>a.jsxs(B.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"})]}),t_=e=>a.jsx(B.SvgIcon,{...e,children:a.jsx("path",{d:"M5 5h5v2h-3v3h-2v-5zM14 5h5v5h-2v-3h-3v-2zM17 14h2v5h-5v-2h3v-3zM10 17v2h-5v-5h2v3h3z"})}),n_=e=>a.jsx(B.SvgIcon,{...e,children:a.jsx("path",{d:"M14 14h5v2h-3v3h-2v-5zM5 14h5v5h-2v-3h-3v-2zM8 5h2v5h-5v-2h3v-3zM19 8v2h-5v-5h2v3h3z"})}),x9=e=>a.jsx(B.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"})}),o_=e=>a.jsxs(B.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"})]}),r_=e=>a.jsx(B.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"})}),i_=e=>a.jsxs(B.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"})]}),l_=e=>a.jsxs(B.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"})]}),a_=e=>a.jsxs(B.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"})]}),s_=e=>a.jsxs(B.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"})]}),c_=e=>a.jsxs(B.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"})]}),y9=e=>a.jsxs(B.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"})]}),d_=e=>a.jsx(B.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"})}),u_=e=>a.jsxs(B.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"})]}),b9=e=>a.jsx(B.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"})}),h_=e=>a.jsx(B.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"})}),p_=e=>a.jsx(B.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"})}),y6=e=>a.jsx(B.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"})}),w9=e=>a.jsxs(B.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"})]}),f_=e=>a.jsx(B.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"})}),m_=e=>a.jsx(B.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"})}),g_=e=>a.jsx(B.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"})}),x_=e=>a.jsxs(B.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"})]}),y_=e=>a.jsxs(B.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"})]}),b_=e=>a.jsxs(B.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"})]}),w_=e=>a.jsxs(B.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"})]}),v_=e=>a.jsxs(B.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"})]}),S_=e=>a.jsxs(B.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"})]}),C_=e=>a.jsxs(B.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"})]}),__=e=>a.jsxs(B.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"})]}),E_=e=>a.jsxs(B.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"})]}),k_=e=>a.jsxs(B.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"})]}),T_=e=>a.jsxs(B.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"})]}),b6=e=>a.jsxs(B.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"})]}),w6=e=>a.jsxs(B.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"})]}),v6=e=>a.jsxs(B.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"})]}),j_=e=>a.jsxs(B.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"})]}),M_=e=>a.jsxs(B.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"})]}),R_=e=>a.jsxs(B.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"})]}),I_=e=>a.jsxs(B.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"})]}),D_=e=>a.jsxs(B.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"})]}),L_=e=>a.jsxs(B.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"})]}),O_=e=>a.jsxs(B.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"})]}),P_=e=>a.jsxs(B.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"})]}),A_=e=>a.jsxs(B.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"})]}),F_=e=>a.jsx(B.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"})}),z_=e=>a.jsx(B.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"})}),B_=e=>a.jsxs(B.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"})]}),N_=e=>a.jsxs(B.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"})]}),V_=e=>a.jsx(B.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"})}),H_=e=>a.jsxs(B.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"})]}),$_=e=>a.jsxs(B.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"})]}),W_=e=>a.jsxs(B.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"})]}),l3=e=>a.jsx(B.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"})}),v9=e=>a.jsxs(B.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"})]}),U_=e=>(t=>{const{style:n,orientation:o=xr.Vertical,...r}=t,i=o===xr.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}),S9=(e,t,n,o)=>{const{style:r,...i}=e,l=a.jsx(B.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(Ir,{title:e.disabled?n:o,enterDelay:800,enterNextDelay:1600,children:e.disabled?a.jsx("div",{style:{display:"flex"},children:l}):l})},q_=e=>S9(e,a.jsx(gn.ArrowLeft,{fontSize:"small"}),"Scroll "+(e.orientation===xr.Horizontal?"Left":"Up"),`Scroll ${e.orientation===xr.Horizontal?"left":"up"}, 'Ctrl+Click' to scroll to the beginning`),Z_=e=>S9(e,a.jsx(gn.ArrowRight,{fontSize:"small"}),"Scroll "+(e.orientation===xr.Horizontal?"Right":"Down"),`Scroll ${e.orientation===xr.Horizontal?"right":"down"}, 'Ctrl+Click' to scroll to the end`),Mt=d.memo(d.forwardRef((e,t)=>{const{orientation:n="vertical",sx:o,...r}=e,i=n==="vertical";return a.jsx(B.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 cu(e,t){if(typeof e=="function")return e(t);e&&(e.current=t)}var M1=parseInt(d.version.split(".")[0],10)>=19?function(e){return t=>{const n=[];for(const o of e){const r=cu(o,t),i=typeof r=="function";n.push(i?r:()=>cu(o,null))}return()=>{for(const o of n)o()}}}:function(e){return t=>{for(const n of e)cu(n,t)}},G_=function(){},C9=typeof window<"u",_9=C9?d.useLayoutEffect:d.useEffect,S6={x:0,y:0,width:0,height:0,top:0,left:0,bottom:0,right:0};const C6=C9&&window.ResizeObserver!==void 0?function(){var e=d.useState(null),t=e[0],n=e[1],o=d.useState(S6),r=o[0],i=o[1],l=d.useMemo(function(){return new window.ResizeObserver(function(c){if(c[0]){var s=c[0].contentRect,u=s.x,h=s.y,f=s.width,p=s.height,m=s.top,g=s.left,x=s.bottom,y=s.right;i({x:u,y:h,width:f,height:p,top:m,left:g,bottom:x,right:y})}})},[]);return _9(function(){if(t)return l.observe(t),function(){l.disconnect()}},[t]),[n,r]}:function(){return[G_,S6]};d.memo(e=>{const{sx:t,speed:n=2,size:o=70,...r}=e;return a.jsx(B.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 K_=d.memo(e=>{const{sx:t,speed:n=1.5,size:o=70,...r}=e;return a.jsx(B.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"})})]})})});d.memo(e=>{const{sx:t,speed:n=1,size:o=70,...r}=e;return a.jsx(B.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"})})]})})}),d.memo(e=>{const{sx:t,speed:n=1,size:o=70,...r}=e;return a.jsx(B.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"})})]})})}),d.memo(e=>{const{sx:t,speed:n=2,size:o=70,...r}=e;return a.jsx(B.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 X_=d.memo(e=>{const{sx:t,speed:n=1,size:o=13,width:r=64,height:i=17,...l}=e;return a.jsxs(B.Box,{sx:{width:`${r}px`,height:`${i}px`,"& .primary":{backgroundColor:c=>c.palette.grey[600],top:(i-o)/2+"px",width:()=>`${o}px`,height:()=>`${o}px`},...t},className:Oo("_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"})]})}),Y_=a.jsx(K_,{}),c0=d.memo(d.forwardRef((e,t)=>{const{sx:n,style:o,onMount:r,onUnmount:i,transitionDelay:l="1200ms",panel:c=!1,transparentBackground:s=!0,icon:u=Y_,label:h,...f}=e,p=d.useMemo(()=>typeof h=="string"?a.jsx(B.Typography,{variant:"caption",component:"div",sx:{fontSize:"0.875rem",lineHeight:1.43,letterSpacing:"0.01071em"},children:h}):h,[h]),m=d.useRef(null),g=d.useMemo(()=>{let w=a.jsxs(B.Box,{sx:{display:"flex",flexDirection:"column",alignItems:"center",rowGap:"8px"},children:[p,u]});return c===!0&&(w=a.jsx(B.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=>`${ht.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:w})),a.jsx(B.Box,{ref:M1([m,t]),className:"animatable",sx:{cursor:"wait",boxSizing:"border-box",alignItems:"center",justifyContent:"center",display:"flex",flexDirection:"column",willChange:"opacity",opacity:s?.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},...f,children:a.jsxs(B.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(B.Box,{className:"backdrop",sx:{opacity:b=>s?1.5*b.palette.action.disabledOpacity:void 0,background:b=>s?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"}}),w]})})},[n,c]),x=d.useRef(!1),y=d.useRef(!1);return _9(()=>{if(m.current&&!x.current&&!y.current){if(y.current=!0,m.current.classList.contains("animatable")&&!m.current.classList.contains("animating")){let w=!1;const b=()=>{y.current&&(x.current=!0,y.current=!1,w=!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(()=>{!w&&y.current&&m.current&&(m.current?.removeEventListener("transitionrun",b),b())},100)}else x.current=!0,y.current=!1,r?.();return()=>{}}},[m.current]),d.useEffect(()=>()=>{x.current&&(m.current?.classList.remove("animating"),x.current=!1,y.current=!1,i?.())},[]),g}));c0.displayName="LoadingPanel";const J_=/^\s*at\s+(?:(async|new|await)\s+)?(.+?)\s+\((.+?):(\d+):(\d+)\)$/,Q_=/^\s*at\s+(?:(async|new|await)\s+)?(.+?):(\d+):(\d+)\s*$/,_6=e=>{if(!e)return"";try{e=new URL(e).pathname}catch{}return(e=e.replace(/^\/+/,"")).replace(/^@?fs[\\/]/,"")},a3=d.memo(({error:e,maxLines:t=Number.MAX_SAFE_INTEGER,hideLineNumbers:n=!1})=>{const[o,r]=d.useState(null);if(!e?.stack)return null;const i=(u=>{const h=[],f=(p,m=0)=>{p&&(h.push({error:p,depth:m}),p.cause&&p.cause instanceof Error&&f(p.cause,m+1))};return f(u),h.reverse()})(e).reverse(),l=[];i.forEach(({error:u},h)=>{const f=(u.stack||"").split(`
|
|
33
|
+
`).filter(Boolean).map(p=>{let m=p.match(J_);if(m){const[,g="",x,y,w,b]=m;return{line:`at ${g?g+" ":""}${x}`,location:`${_6(y).split(/[\\/]/).pop()}:${w}:${b}`}}if(m=p.match(Q_),m){const[,g="",x,y,w]=m,b=_6(x),C=`${b.split(/[\\/]/).pop()}:${y}:${w}`;return{line:`at ${g?g+" ":""}${C}`,location:b!==C?`${b}:${y}:${w}`:void 0}}return{line:p.trim()}});f.length&&(l.push({line:h?`Caused by: ${f[0].line}`:f[0].line,isBoundary:!0}),l.push(...f.slice(1)))});const c=t?l.slice(0,t):l,s=t&&l.length>t;return a.jsxs(B.Box,{sx:{width:"100%",mt:1},children:[a.jsxs(B.Box,{sx:{display:"flex",alignItems:"center",gap:1,borderRadius:1,px:1,py:.5},children:[a.jsxs(B.Typography,{variant:"caption",component:"div",sx:{fontSize:"0.75rem",opacity:.8},children:["Stack Trace(",i.length>1?` (${i.length} frames)`:"",")"]}),a.jsx(B.Box,{sx:{flex:1}}),o&&a.jsx(B.Typography,{variant:"caption",component:"div",sx:{fontSize:"0.625rem",opacity:.8},children:o}),a.jsx(B.IconButton,{size:"small",onClick:async()=>{try{let u=0;const h=l.map(f=>{if(f.isBoundary)return u=0,f.line;u++;let p=f.location&&f.line!==f.location?`${f.line} (${f.location})`:f.line;return u>=1&&(p=` ${p}`),p}).join(`
|
|
34
|
+
`);await navigator.clipboard.writeText(h),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(gn.ContentCopy,{sx:{fontSize:"0.875rem"}})}),a.jsx(B.IconButton,{size:"small",onClick:()=>{console.log(e)},sx:{color:"inherit",opacity:.7,"&:hover":{opacity:1}},title:"Log error to console",children:a.jsx(gn.BugReport,{sx:{fontSize:"0.875rem"}})})]}),a.jsxs(B.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:[c.map((u,h)=>u.isBoundary?a.jsx(B.Box,{sx:{py:1,mt:h>0?1:0,mb:.5,borderTop:h>0?"1px solid rgba(255, 255, 255, 0.1)":"none"},children:a.jsx(B.Typography,{variant:"caption",component:"div",sx:{fontSize:"0.75rem",fontWeight:"bold",color:f=>u.isBoundary?f.palette.text.primary:f.palette.text.secondary,display:"block"},children:u.line})},`error-${h}`):a.jsxs(B.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(B.Typography,{variant:"caption",component:"div",sx:{fontSize:"0.625rem",opacity:.5,minWidth:"20px",textAlign:"right",userSelect:"none"},children:h+1}),a.jsxs(B.Box,{sx:{flex:1,overflow:"hidden"},children:[a.jsx(B.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(B.Typography,{variant:"caption",component:"div",sx:{fontSize:"0.625rem",opacity:.6,fontStyle:"italic"},children:u.location})]})]},`stack-${h}`)),s&&a.jsxs(B.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"]})]})]})});a3.displayName="StackTrace";const E9=d.memo(d.forwardRef((e,t)=>{const{sx:n,icon:o=a.jsx(gn.Error,{style:{fontSize:48}}),error:r,hideStackTrace:i=!1,stackTraceExpanded:l=!1,...c}=e,s=d.useMemo(()=>((u,h=!1)=>{if(d.isValidElement(u))return u;if(u instanceof Error)return a.jsxs(B.Box,{sx:{display:"flex",flexDirection:"column",maxWidth:"500px",width:"100%"},children:[a.jsx(B.Typography,{variant:"caption",component:"div",sx:{fontSize:"0.875rem",lineHeight:1.43,mb:1},children:u.message}),u.cause?a.jsxs(B.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,!h&&a.jsx(a3,{error:u,hideLineNumbers:!0})]});const f=u==="string"?u:`Unknown Error: ${String(u)}`;return a.jsx(B.Typography,{variant:"caption",component:"div",sx:{fontSize:"0.875rem",lineHeight:1.43,letterSpacing:"0.01071em"},children:f})})(r,i,l),[r,i,l]);return d.useMemo(()=>a.jsx(B.Box,{ref:t,sx:{boxSizing:"border-box",alignItems:"center",justifyContent:"center",display:"flex",flexDirection:"row",overflow:"hidden",width:"100%",height:"100%",...n},...c,children:a.jsxs(B.Box,{sx:{display:"flex",flex:"1 1 100%",height:"100%",alignItems:"center",justifyContent:"center",boxSizing:"border-box",position:"relative"},children:[a.jsx(B.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(B.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(B.Box,{sx:{display:"flex",flexDirection:"column",alignItems:"center",gap:u=>u.spacing(2),width:"100%",maxWidth:"600px"},children:a.jsxs(B.Box,{sx:{display:"flex",flexDirection:"row",alignItems:"flex-start",gap:u=>u.spacing(2)},children:[o,s]})})})]})}),[n])}));E9.displayName="ErrorPanel";const k9=d.memo(d.forwardRef((e,t)=>{const{chips:n,sx:o,...r}=e,i=d.useMemo(()=>{if(!n)return null;let l=null;l=Array.isArray(n)?n:[n];const c=[];for(let s=0;s<l.length;s++){const u=l[s];let h=null;typeof u=="string"?h=a.jsx(B.Chip,{label:u,color:"primary",size:"small",sx:{scale:"0.8"}},"chip-"+s):d.cloneElement(u,{key:"chip-"+s}),c.push(h)}return c},[n]);return a.jsx(B.Box,{ref:t,sx:{display:"flex",flexDirection:"row",marginLeft:"4px",gap:"2px",...o},...r,children:i})}));var H2="top",n1="bottom",$2="right",T9="left",eE=[H2,n1,$2,T9],j9="viewport",pa="popper";function E0(e){return e?(e.nodeName||"").toLowerCase():null}function Di(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Fl(e){return e instanceof Di(e).Element||e instanceof Element}function Tl(e){return e instanceof Di(e).HTMLElement||e instanceof HTMLElement}function W2(e){return typeof ShadowRoot<"u"&&(e instanceof Di(e).ShadowRoot||e instanceof ShadowRoot)}var Ja=Math.max,E6=Math.min,k6=Math.round;function U2(){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 M9(){return!/^((?!chrome|android).)*safari/i.test(U2())}function s3(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var o=e.getBoundingClientRect(),r=1,i=1;t&&Tl(e)&&(r=e.offsetWidth>0&&k6(o.width)/e.offsetWidth||1,i=e.offsetHeight>0&&k6(o.height)/e.offsetHeight||1);var l=(Fl(e)?Di(e):window).visualViewport,c=!M9()&&n,s=(o.left+(c&&l?l.offsetLeft:0))/r,u=(o.top+(c&&l?l.offsetTop:0))/i,h=o.width/r,f=o.height/i;return{width:h,height:f,top:u,right:s+h,bottom:u+f,left:s,x:s,y:u}}function Ji(e){return Di(e).getComputedStyle(e)}function tE(e){return["table","td","th"].indexOf(E0(e))>=0}function jl(e){return((Fl(e)?e.ownerDocument:e.document)||window.document).documentElement}function R1(e){return E0(e)==="html"?e:e.assignedSlot||e.parentNode||(W2(e)?e.host:null)||jl(e)}function T6(e){return Tl(e)&&Ji(e).position!=="fixed"?e.offsetParent:null}function R9(e){var t=Di(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function j6(e){return s3(jl(e)).left+R9(e).scrollLeft}function I9(e){var t=Ji(e),n=t.overflow,o=t.overflowX,r=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+r+o)}function D9(e){return["html","body","#document"].indexOf(E0(e))>=0?e.ownerDocument.body:Tl(e)&&I9(e)?e:D9(R1(e))}function L9(e,t){var n;t===void 0&&(t=[]);var o=D9(e),r=o===((n=e.ownerDocument)==null?void 0:n.body),i=Di(o),l=r?[i].concat(i.visualViewport||[],I9(o)?o:[]):o,c=t.concat(l);return r?c:c.concat(L9(R1(l)))}function q2(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function M6(e,t,n){return t===j9?q2(function(o,r){var i=Di(o),l=jl(o),c=i.visualViewport,s=l.clientWidth,u=l.clientHeight,h=0,f=0;if(c){s=c.width,u=c.height;var p=M9();(p||!p&&r==="fixed")&&(h=c.offsetLeft,f=c.offsetTop)}return{width:s,height:u,x:h+j6(o),y:f}}(e,n)):Fl(t)?function(o,r){var i=s3(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):q2(function(o){var r,i=jl(o),l=R9(o),c=(r=o.ownerDocument)==null?void 0:r.body,s=Ja(i.scrollWidth,i.clientWidth,c?c.scrollWidth:0,c?c.clientWidth:0),u=Ja(i.scrollHeight,i.clientHeight,c?c.scrollHeight:0,c?c.clientHeight:0),h=-l.scrollLeft+j6(o),f=-l.scrollTop;return Ji(c||i).direction==="rtl"&&(h+=Ja(i.clientWidth,c?c.clientWidth:0)-s),{width:s,height:u,x:h,y:f}}(jl(e)))}function nE(e){var t=L9(R1(e)),n=["absolute","fixed"].indexOf(Ji(e).position)>=0&&Tl(e)?function(o){for(var r=Di(o),i=T6(o);i&&tE(i)&&Ji(i).position==="static";)i=T6(i);return i&&(E0(i)==="html"||E0(i)==="body"&&Ji(i).position==="static")?r:i||function(l){var c=/firefox/i.test(U2());if(/Trident/i.test(U2())&&Tl(l)&&Ji(l).position==="fixed")return null;var s=R1(l);for(W2(s)&&(s=s.host);Tl(s)&&["html","body"].indexOf(E0(s))<0;){var u=Ji(s);if(u.transform!=="none"||u.perspective!=="none"||u.contain==="paint"||["transform","perspective"].indexOf(u.willChange)!==-1||c&&u.willChange==="filter"||c&&u.filter&&u.filter!=="none")return s;s=s.parentNode}return null}(o)||r}(e):e;return Fl(n)?t.filter(function(o){return Fl(o)&&function(r,i){var l=i.getRootNode&&i.getRootNode();if(r.contains(i))return!0;if(l&&W2(l)){var c=i;do{if(c&&r.isSameNode(c))return!0;c=c.parentNode||c.host}while(c)}return!1}(o,n)&&E0(o)!=="body"}):[]}const oE={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,w=y.placement,b=w===void 0?m.placement:w,C=y.strategy,_=C===void 0?m.strategy:C,E=y.boundary,M=E===void 0?"clippingParents":E,j=y.rootBoundary,F=j===void 0?j9:j,k=y.elementContext,O=k===void 0?pa:k,S=y.altBoundary,v=S!==void 0&&S,I=y.padding,T=I===void 0?0:I,R=function(z){return Object.assign({},{top:0,right:0,bottom:0,left:0},z)}(typeof T!="number"?T:(x=T,eE.reduce(function(z,q){return z[q]=x,z},{}))),A=O===pa?"reference":pa,D=m.rects.popper,L=m.elements[v?A:O],V=function(z,q,Z,Q){var Y=q==="clippingParents"?nE(z):[].concat(q),te=[].concat(Y,[Z]),ie=te[0],fe=te.reduce(function(J,ae){var Ce=M6(z,ae,Q);return J.top=Ja(Ce.top,J.top),J.right=E6(Ce.right,J.right),J.bottom=E6(Ce.bottom,J.bottom),J.left=Ja(Ce.left,J.left),J},M6(z,ie,Q));return fe.width=fe.right-fe.left,fe.height=fe.bottom-fe.top,fe.x=fe.left,fe.y=fe.top,fe}(Fl(L)?L:L.contextElement||jl(m.elements.popper),M,F,_),W=s3(m.elements.reference),P=function(z){var q,Z=z.reference,Q=z.element,Y=z.placement,te=Y?Y.split("-")[0]:null,ie=Y?Y.split("-")[1]:null,fe=Z.x+Z.width/2-Q.width/2,J=Z.y+Z.height/2-Q.height/2;switch(te){case H2:q={x:fe,y:Z.y-Q.height};break;case n1:q={x:fe,y:Z.y+Z.height};break;case $2:q={x:Z.x+Z.width,y:J};break;case T9:q={x:Z.x-Q.width,y:J};break;default:q={x:Z.x,y:Z.y}}var ae=te?function(Me){return["top","bottom"].indexOf(Me)>=0?"x":"y"}(te):null;if(ae!=null){var Ce=ae==="y"?"height":"width";switch(ie){case"start":q[ae]=q[ae]-(Z[Ce]/2-Q[Ce]/2);break;case"end":q[ae]=q[ae]+(Z[Ce]/2-Q[Ce]/2)}}return q}({reference:W,element:D,placement:b}),U=q2(Object.assign({},D,P)),X=O===pa?U:W,ee={top:V.top-X.top+R.top,bottom:X.bottom-V.bottom+R.bottom,left:V.left-X.left+R.left,right:X.right-V.right+R.right},H=m.modifiersData.offset;if(O===pa&&H){var $=H[b];Object.keys(ee).forEach(function(z){var q=[$2,n1].indexOf(z)>=0?1:-1,Z=[H2,n1].indexOf(z)>=0?"y":"x";ee[z]+=$[Z]*q})}return ee}(t,e.options),r=t.modifiersData.preventOverflow||{x:0,y:0},i=r.x,l=r.y;let c=t.rects.popper,s=c.width,u=c.height,h=t.placement.split("-")[0],f=h==="left"?"left":"right",p=h==="top"?"top":"bottom";t.modifiersData[n]={width:s-o[f]-i,height:u-o[p]-l}}},rE=[0,2],O9=d.memo(d.forwardRef((e,t)=>{const{sx:n,open:o,children:r,label:i,offsets:l=rE,anchorEl:c,anchorPosition:s,onMount:u,onOpening:h,onOpen:f,onClosing:p,onClose:m,resizeOnOverflow:g=!0,...x}=e;if(Array.isArray(r))throw new Error("children can not be an array");const y=J5(),w={name:"applyMaxSize",enabled:!0,phase:"beforeWrite",requires:["maxSize"],fn({state:V}){const{height:W}=V.modifiersData.maxSize;V.styles.popper.maxHeight=W-10+"px"}},b=d.useMemo(()=>{const V=[{name:"offset",options:{offset:l}},{name:"flip",enabled:!0,options:{rootBoundary:"document"}}];return g&&V.unshift(oE,w),V},[g,l]),[C,_]=d.useState(!1),E=d.useRef(null),M=pn(()=>{u?.(I.current,E.current)},[h]),j=pn(h,[h]),F=pn(f,[f]),k=pn(p,[p]),O=pn(()=>{_(!1),m?.()},[m]),[S,v]=d.useState(!1),I=d.useRef(null),T=d.useRef(!0),R=d.useMemo(()=>({onFirstUpdate:()=>{T.current&&(v(!0),M?.(),T.current=!1)}}),[o,C]);d.useEffect(()=>{o&&S?j?.():!o&&C&&k?.(),o&&_(o)},[o,S]);const A=d.useMemo(()=>({getBoundingClientRect:()=>s?new DOMRect(s?.left||0,s?.top||0,0,0):c.getBoundingClientRect()}),[s,c]);d.useImperativeHandle(t,()=>({instance:()=>E.current,element:()=>I.current}),[]);const{getPortalContainer:D}=o3(),L=d.useMemo(()=>({zIndex:o?"1300":"1299",display:"flex",pointerEvents:C&&o?void 0:"none",maxWidth:"100%",maxHeight:"100%",...n}),[n,o,C]);return a.jsx(B.Popper,{ref:I,popperRef:E,container:D,anchorEl:A,open:C,role:void 0,popperOptions:R,transition:!0,sx:L,placement:"bottom-start",modifiers:b,...x,children:({TransitionProps:V,placement:W,...P})=>{const{in:U,onEnter:X,onExited:ee,...H}=V??{};return a.jsx(B.Grow,{...H,in:o,onEnter:()=>{X?.(),F()},onExited:()=>{ee?.(),O()},timeout:{enter:y.transitions.duration.shorter,exit:0},style:{transformOrigin:W==="bottom-start"?"left top":"center bottom"},children:typeof r=="function"?r({TransitionProps:V,placement:W,...P}):r||{}})}})}));O9.displayName="ExhibitPopper";const Wr={Toolbar:"toolbar",Menuitem:"menuitem"},_n=e=>{const{closeFloat:t,closeFloatAll:n,floatReference:o,popupContainer:r,children:i,className:l,sx:c,...s}=e;return a.jsx(B.Box,{className:Oo("menu",l),sx:{display:"flex",flexDirection:"column",...c},...s,children:i})},R6=(e,t,n)=>a.jsx(gn.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"}),iE=/^#?([a-f\d])([a-f\d])([a-f\d])$/i,lE=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i,Z2=function(e,t=null){if(!e)return e;e=e.replace(iE,function(o,r,i,l){return r+r+i+i+l+l});let n=lE.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},Ar=function(e,t=.2,n="light"){if(!e)return e;let o=n!=="dark";return t<0&&(o=!o,t*=-1),e=Z2(e),o?ht.darken(e,Math.max(0,Math.min(1,1*t))):ht.lighten(e,Math.max(0,Math.min(1,1.5*t)))},I6=(e,t)=>{let n=D2({palette:{mode:e?"dark":"light"}}),o={typography:{},palette:{mode:e?"dark":"light",text:{secondary:e?n.palette.text.secondary:ht.alpha(n.palette.text.secondary,.75),icon:e?ht.alpha(n.palette.text.secondary,.7):ht.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=tm.deepmerge(o,t)),D2(r)};function c3(e,t){t=tm.deepmerge({track:Ar(e.palette.background.paper,.05,e?.palette.mode),thumb:Ar(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:ht.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 lo.getOS()===lo.OSType.Firefox&&(n["* .pseudo-scrollbar"]={scrollbarColor:`${t.thumb} transparent`},n["* .pseudo-scrollbar:hover:not([disabled])"]={scrollbarColor:`${t.active} transparent`}),n}const P9=d.memo(d.forwardRef((e,t)=>{const{open:n,anchorEl:o,anchorPosition:r,label:i,floatReference:l,createPopupPanel:c=_n,popperProps:s,onMount:u,onClosing:h,onClose:f,onOpening:p,onOpen:m,children:g,sx:x,...y}=e,w=pn(h,[h]),b=pn(f,[f]),C=pn(p,[p]),_=pn(m,[m]),[E,M]=d.useState(),j=d.useRef(null),F=pn((O,S)=>{M(O),u?.(j.current,S)},[u]),k=d.useMemo(()=>{const O={popupContainer:E,floatReference:l,children:g,...y},S=c(O);return a.jsx(B.Paper,{elevation:8,ref:j,sx:{display:"flex",overflow:"auto",outline:"none","&.MuiPaper-root":v=>c3(v)},tabIndex:0,children:S})},[c,g,E,l]);return a.jsx(O9,{ref:t,anchorEl:o,anchorPosition:r,label:i,open:n,onMount:F,onOpening:C,onOpen:_,onClosing:w,onClose:b,...s,children:k})}));P9.displayName="ExhibitFloatPanel";const Ui=new Map;let du=null;const qi=new Map;let ki=null;const uu=(e=null,t,n,o)=>(ki&&(ki.fn.clear(),ki=null),e===0?t:(e===null&&(e=120),ki={fn:lo.debounce(()=>t(),e),setReferences:n,isClose:o},ki.fn)),A9=(e,t)=>{if(t===null)return;e.add(t);const n=Ui.get(t.key);if(!n)return;const o=qi.get(n);o&&A9(e,o)},D6=e=>{const t=new Set;return A9(t,e),t},xi=e=>{const{anchor:t,label:n=null,parentFloat:o=null,onOpen:r,onClose:i,popperProps:l,createPopupPanel:c=_n}=e??{},s=pn(r,[r]),u=pn(i,[i]),[h,f]=d.useState(null),[p,m]=d.useState(!1),[g,x]=d.useState(!1),y=d.useMemo(()=>o===null?(du===null&&(du={key:{label:"root"},isRoot:!0,parent:null,open:()=>null,close:z=>null,closeChild:z=>null,onChildVisible:()=>{},onChildHidden:()=>{},closeAll:()=>A(0),floatElement:()=>null,anchorElement:()=>null}),du):o,[]),w=d.useMemo(()=>({label:n}),[]),b=d.useRef(null),C=d.useRef(t);d.useEffect(()=>{C.current=t},[t]);const _=z=>{const q=Ui.get(z);let Z=null;return q&&(Z=qi.get(q)?.close(0)),Z},E=()=>_(V.key),[M,j]=d.useState(),F=()=>{if(!h)return void v();const z=new Promise((q,Z)=>{j(Q=>({resolve:q,reject:Z}))});return E(),Ui.delete(y.key),f(!1),z};d.useEffect(()=>{M&&(M.resolve(),j(null))},[p,g,M]);const k=d.useCallback(()=>{let z=y;for(;z.parent;)z=z.parent;return _(z.key)},[]),O=()=>{if(h)return void v();y&&qi.get(y.key)?.open(0);const z=Ui.get(y.key);z&&z!==w&&qi.get(z)?.close(0),requestAnimationFrame(()=>{Ui.set(y.key,V.key),f(!0)})},[S,v]=d.useReducer(z=>z+1,0),I=d.useCallback(z=>c===null?null:c({closeFloat:A,closeFloatAll:L,...z}),[c]),T=c===null,R=pn((z=120)=>uu(z,O,new Set([V]),!1)(),[O]),A=pn((z=60)=>uu(z,F,D6(V),!0)(),[F]),D=pn((z=360)=>uu(z,E,D6((q=>{const Z=Ui.get(q.key);return Z&&qi.get(Z)||null})(V)),!0)(),[E]),L=pn(k,[k]),V=d.useMemo(()=>({key:w,isRoot:!1,label:n,parent:y,onChildVisible:()=>{x(!0)},onChildHidden:()=>{x(!1)},open:R,close:A,closeChild:D,closeAll:L,floatElement:()=>b.current,anchorElement:()=>C.current}),[]);d.useEffect(()=>{qi.set(w,V)},[V]),d.useEffect(()=>()=>{qi.delete(w),A(0)},[]),d.useEffect(()=>{h&&!T&&(m(!0),y.onChildVisible())},[h,T]);const W=d.useCallback(z=>{z.which===$o.Escape&&(z.preventDefault(),z.stopPropagation(),A(0))},[]),P=d.useRef(null),U=d.useCallback(()=>{const z=P.current,q=b.current;z&&q&&(requestAnimationFrame(()=>{(q.contains(document.activeElement)||document.activeElement===document.body)&&z.focus()}),P.current=null),u?.()},[]),X=d.useCallback(z=>{b.current=z,z.addEventListener("focus",Z=>{P.current=Z.relatedTarget},{once:!0,passive:!0});const q=document.activeElement;requestAnimationFrame(()=>{q===document.activeElement&&z.focus()})},[]),[ee,H]=d.useState();d.useEffect(()=>{T&&(h?s?.():h===!1&&u?.()),H(p?a.jsx(P9,{floatReference:V,open:h,label:n,anchorEl:t,onOpening:()=>{s?.(),y.onChildVisible()},onClosing:U,onClose:()=>{m(!1),y.onChildHidden()},onMount:X,popperProps:{onKeyDown:W,onMouseEnter:z=>{h&&ki?.isClose&&ki.setReferences.has(V)&&(ki.fn.clear(),ki=null,V.closeChild())},...l},createPopupPanel:I}):null)},[p,h,n,T,l,I,S]);const $=pn(z=>{if(Ui.size===0)return;let q=!1;Ui.forEach(Z=>{const Q=qi.get(Z);!q&&Q&&(Q.floatElement()?.contains?.(z.target)&&(q=!0),Q.anchorElement()?.contains?.(z.target)&&(q=!0))}),q||k()},[k]);return d.useEffect(()=>{if(!h||!y.isRoot)return;const z=q=>{$(q)};return document.addEventListener("mousedown",z),document.addEventListener("touchstart",z),document.addEventListener("focus",z),()=>{document.removeEventListener("mousedown",z),document.removeEventListener("touchstart",z),document.removeEventListener("focus",z)}},[h,y]),{component:ee,reference:V}},aE=d.memo(d.forwardRef((e,t)=>{const{nestedChildren:n,variant:o,disabled:r=!1,createPopupPanel:i,...l}=e,c={disabled:r,createPopupPanel:pn(s=>{if(!n||n.length===0)return null;const{popupContainer:u,floatReference:h,ref:f,...p}=s,m=[];for(let g=0;g<n.length;g++){const x=n[g];x&&m.push(a.jsx(aE,{parentFloat:h,...p,...x},g))}return a.jsxs(B.Box,{ref:t,sx:{display:"flex",flexDirection:"column",paddingTop:"4px",paddingBottom:"4px"},children:["Children here",m,a.jsx(yr,{parentFloat:h,children:"Close other children"})]})},[n]),...l};return a.jsx(o===Wr.Toolbar?ii:Ns,{...c})})),sE={placement:"right-start"},F9=d.memo(d.forwardRef((e,t)=>{const{children:n,sx:o,parentFloat:r,createPopupPanel:i,popperProps:l=sE,label:c,...s}=e;(function(y){if(!y)throw new Error("Invariant failed")})(d.isValidElement(n));const u=n,h=d.useMemo(()=>({...u?.props,...s,onContextMenu:y=>{u?.props?.onContextMenu?.(y),y.isDefaultPrevented()||(s?.onContextMenu?.(y),y.isDefaultPrevented()||(m(y),y.preventDefault()))}}),[s,u?.props]),f=pn(i,[i]),[p,m]=d.useState(null),{reference:g,component:x}=xi({label:c??"contextMenu",popperProps:l,parentFloat:r,anchor:{getBoundingClientRect:()=>new DOMRect(p?.clientX||0,p?.clientY||0)},onClose:()=>m(null),createPopupPanel:f});return d.useEffect(()=>{p?g.open(0):g.close(0)},[p]),a.jsxs(a.Fragment,{children:[d.cloneElement(n,h),x]})})),Ir=d.forwardRef((e,t)=>{const{slotProps:n,...o}=e,{getPortalContainer:r}=o3();return a.jsx(B.Tooltip,{ref:t,slotProps:{...n,popper:{container:r,...n?.popper||{}}},...o})});Ir.displayName="SimpleTooltip";const fa=d.memo(e=>{const{modifier:t,sx:n,...o}=e;return a.jsx(B.Box,{sx:{marginLeft:"1px",marginRight:"1px",borderRadius:"4px",borderStyle:"solid",borderTopWidth:"1px",borderLeftWidth:"1px",borderRightWidth:"1px",borderBottomWidth:"2px",borderTopColor:r=>ht.alpha(r.palette.background.paper,r.palette.action.disabledOpacity),borderLeftColor:r=>ht.alpha(r.palette.background.paper,r.palette.action.disabledOpacity),borderRightColor:r=>ht.alpha(r.palette.background.paper,r.palette.action.disabledOpacity),borderBottomColor:r=>ht.alpha(r.palette.background.paper,1-r.palette.action.disabledOpacity),backgroundColor:r=>ht.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(B.Box,{sx:{display:"flex",alignItems:"center",justifyContent:"center",textAlign:"center","& *":{fontWeight:"500"}},children:t})})}),cE=lo.getOS()===lo.OSType.MacOS||lo.getOS()===lo.OSType.IOS?"Cmd":"Ctrl",d3=(e,t=!1,n=null)=>{if(Array.isArray(e)){let i=[],l=e;for(let c=0;c<l.length;c++)i.push(d3(l[c],t,n??""+c));return a.jsx(B.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(fa,{modifier:t?"^":a.jsx("div",{style:{paddingRight:"1px"},children:cE})},"ctrl")),r.push("+")),o?.alt&&(r.push(a.jsx(fa,{modifier:t?"⌥":"Alt"},"alt")),r.push("+")),o?.shift&&(r.push(a.jsx(fa,{modifier:t?"⇧":a.jsx("div",{style:{paddingRight:"1px"},children:"Shift"})},"shift")),r.push("+")),o?.meta&&(r.push(a.jsx(fa,{modifier:t?a.jsx("div",{style:{paddingTop:"1px"},children:"⌘"}):"Meta"},"meta")),r.push("+")),r.push(a.jsx(fa,{modifier:hC.toPrettyKeyCode(e.key)},"character")),a.jsx(B.Box,{sx:{display:"flex",alignItems:"center"},children:r},n)},Uo=d.memo(d.forwardRef((e,t)=>{const{disabled:n=!1,label:o,shortcut:r,chips:i,description:l,maxWidth:c=280,useModifierSymbols:s=!1,children:u,simple:h,componentDisabled:f=!1,sx:p,...m}=e;let g=null;return r&&(g=d3(r,s)),a.jsx(Ir,{slotProps:{popper:{sx:{"& .MuiTooltip-tooltip":{marginTop:"0px !important"},...p},modifiers:[{name:"offset",options:{offset:[0,14]}}]}},className:"tooltip-wrapper",tabIndex:-1,title:!n&&o?a.jsxs(B.Box,{sx:{maxWidth:`${c}px`},ref:t,children:[a.jsxs(B.Box,{sx:{display:"flex",flexDirection:"row",marginBottom:l?"4px":"0px"},children:[a.jsx(B.Typography,{variant:"subtitle1",component:"div",flex:"1 1 100%",children:o}),i?a.jsx(k9,{chips:i}):null,g?a.jsx(B.Box,{sx:{marginLeft:"8px"}},"leadingSpace"):a.jsx(a.Fragment,{}),g]}),l?a.jsx(B.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})})})),gd=a.jsx(Ol,{}),dE=ge(a.jsx(H5,{})),Tr=d.memo(d.forwardRef((e,t)=>{const{dense:n=!0,outlined:o=!1,disableHover:r=!1,parentFloat:i,selected:l,icon:c,tooltipProps:s,children:u,primary:h,sx:f,className:p,onFocus:m,onBlur:g,...x}=e,[y,w]=d.useState(!1),b={marginRight:"0px",padding:n?"2px":"7px",borderRadius:j=>`${j.shape.borderRadius}px`,color:j=>h?void 0:j.palette.text.icon??j.palette.action.active,border:j=>`solid ${o?j.palette.divider:"transparent"} 1px`,"& .MuiTouchRipple-child":{borderRadius:j=>`${j.shape.borderRadius}px !important`},"&.Mui-selected":{backgroundColor:j=>ht.alpha(j.palette.text.primary,j.palette.action.selectedOpacity),border:j=>`solid ${o?j.palette.text?.primary:j.palette.divider} 1px`},"&.Mui-disabled":{border:j=>`solid ${o?j.palette.divider:"transparent"} 1px`},"&.Mui-disabled path.styled":{filter:"grayscale(65%)",opacity:".8"},"&.Mui-focusVisible":{outline:"solid transparent 1px",border:"1px solid transparent"},...f},C={"&:hover:not(.Mui-disabled, [disabled])":{color:j=>j.palette.text.primary,border:j=>`solid ${o?j.palette.text?.primary:j.palette.divider} 1px`,"&.Mui-selected":{backgroundColor:j=>ht.alpha(j.palette.text.primary,j.palette.action.selectedOpacity+j.palette.action.hoverOpacity)},"> .outline-hover":{outline:j=>`solid ${o?j.palette.text?.primary:j.palette.divider} 1px`},backgroundColor:null},"&.Mui-focusVisible":{outline:j=>`solid ${j.palette.primary.main} 1px`,border:j=>`1px solid ${j.palette?.primary?.main}`,zIndex:1}};let _=b;r||(_=lo.mergeContentful(b,C));const E=d.useMemo(()=>{let j=typeof c=="function"?c():c;return j===null?j:j||(l===void 0?gd:dE)},[c,l]);let M=a.jsxs(B.IconButton,{component:"div",ref:t,className:Oo({"Mui-focusVisible":y,"Mui-selected":l},p),onFocus:j=>{w(!0),m?.(j)},onBlur:j=>{w(!1),g?.(j)},size:"small",TouchRippleProps:{center:!1},sx:_,edge:"end",...x,children:[E,u]});if(s)if(s.simple&&s.label&&!s.disabled){const{label:j,description:F,maxWidth:k,shortcut:O,useModifierSymbols:S,componentDisabled:v,simple:I,chips:T,ref:R,...A}=s;M=a.jsx(Ir,{disableInteractive:!0,title:j??"",...A,children:a.jsx(B.Box,{sx:{display:"flex"},children:M})})}else M=a.jsx(Uo,{children:M,...s});return M})),uE=e=>e.icon,yr=d.memo(d.forwardRef((e,t)=>{const{icon:n=gd,renderIcon:o=uE,parentFloat:r,className:i,onFocus:l,selected:c,onBlur:s,onMouseOver:u,onMouseOut:h,onMouseEnter:f,disabled:p,children:m,sx:g,tooltipProps:x,chips:y,primary:w,...b}=e,[C,_]=d.useState(!1),[E,M]=d.useState(!1),j=d.useMemo(()=>{const k=o?.({icon:n,disabled:p,selected:c});return k?a.jsx(B.ListItemIcon,{className:Oo({"Mui-focusVisible":C,"Mui-hovered":E}),sx:{"& .MuiSvgIcon-root":{color:O=>w?void 0:O.palette.text.icon??O.palette.action.active},"&.Mui-hovered:not(.Mui-disabled, [disabled])":{"& .MuiSvgIcon-root":{color:O=>O.palette.text.primary}}},children:k}):null},[o,p,n,C,E,w,c]);let F=a.jsxs(B.MenuItem,{ref:t,disabled:p,onMouseOver:k=>{u?.(k),k.isDefaultPrevented()||M(!0)},onMouseOut:k=>{h?.(k),k.isDefaultPrevented()||M(!1)},onMouseEnter:k=>{f?.(k),k.isDefaultPrevented()||r?.closeChild()},TouchRippleProps:{center:!1},className:Oo({"Mui-focusVisible":C,"Mui-hovered":E},i),onFocus:k=>{l?.(k),_(!0)},onBlur:k=>{s?.(k),_(!1)},sx:{flex:"1 1 100%","&.Mui-disabled path.styled":{filter:"grayscale(65%)"},"&.Mui-selected":{color:k=>k.palette.text.primary},color:k=>k.palette.text.secondary,"&.Mui-hovered:not(.Mui-disabled, [disabled])":{color:k=>k.palette.text.primary},...g},...b,children:[j,m,y?a.jsx(k9,{chips:y}):null]});return x&&(F=a.jsx(Uo,{children:F,placement:"right-start",...x})),F})),zl=d.memo(d.forwardRef((e,t)=>{const{children:n,sx:o,primary:r=!1,variant:i="subtitle1",...l}=e;return a.jsx(a.Fragment,{children:a.jsx(B.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:c=>r?void 0:c.palette.text.secondary,...o},...l,children:n})})})),ii=d.memo(d.forwardRef((e,t)=>{const{dense:n=!0,outlined:o=!1,label:r,selected:i=!1,onQuickClick:l,parentFloat:c,createPopupPanel:s,popupProps:u,onPopupOpen:h,onPopupClose:f,quickButtonProps:p,createQuickButton:m,tooltip:g="",createTooltip:x,icon:y,disabled:w,buttonProps:b=lo.EmptyObject,disableHover:C,touchRippleRef:_,primary:E,children:M,sx:j,className:F,...k}=e,O=J5(),S=d.useMemo(()=>{const J=(ae,Ce,Me,re=Me)=>{const oe=typeof o=="boolean"?null:o[ae];return typeof oe=="function"?oe(Ce):oe||(o?Me:re)};return{outline:{color:ae=>J("color",ae,ae.palette.divider,"transparent"),hoverColor:ae=>J("hoverColor",ae,ae.palette.text?.primary,ae.palette.divider),focusColor:ae=>J("focusColor",ae,ae.palette?.primary?.main)},active:O.palette.mode==="dark"?O.palette.text.secondary:O.palette.text.primary,text:O.palette.text.icon??O.palette.action.active}},[o,O]),[v,I]=d.useState(!1),[T,R]=d.useState(!1),[A,D]=d.useState(!1),L=d.useRef(null),V=d.useRef(null),W=xi({anchor:L.current,label:r,createPopupPanel:s,parentFloat:c,popperProps:u?.popperProps,onClose:()=>{I(!1),f?.()},onOpen:()=>{I(!0),h?.()}}),P=pn(J=>{l?.(J),W.reference.close(0)},[l,W]),U=pn(()=>{v?W.reference.close(0):W.reference.open(0)},[v,W,c,r]),X=d.useMemo(()=>{const J={"&.bordered":{borderWidth:"1px",borderRadius:"0px",borderTopStyle:"solid",borderBottomStyle:"solid",borderColor:ue=>S.outline.color(ue),"&.Mui-focusVisible":{border:ue=>`1px solid ${S.outline.focusColor(ue)} !important`},"&:hover:not(.Mui-disabled, [disabled])":{borderColor:()=>C?"transparent":void 0,backgroundColor:()=>C?"transparent":void 0},"&.Mui-hovered:not(.Mui-disabled, [disabled])":{borderColor:ue=>S.outline.hoverColor(ue)},"&.Mui-selected:not(.Mui-disabled, [disabled])":{borderColor:ue=>S.outline.hoverColor(ue)},"&.left":{borderTopLeftRadius:ue=>`${ue.shape.borderRadius}px`,borderBottomLeftRadius:ue=>`${ue.shape.borderRadius}px`,borderLeftStyle:"solid"},"&.hard-right":{borderRightStyle:"solid",borderRightWidth:"1px",borderRightColor:ue=>S.outline.color(ue)},"&.right":{borderTopRightRadius:ue=>`${ue.shape.borderRadius}px`,borderBottomRightRadius:ue=>`${ue.shape.borderRadius}px`,borderRightStyle:"solid"},"&.divider":{borderLeftWidth:"0px !important"}},"& .MuiTouchRipple-child":{borderRadius:ue=>`${ue.shape.borderRadius}px !important`}},ae={"&.Mui-selected":{backgroundColor:ue=>ht.alpha(ue.palette.primary.main,ue.palette.action.selectedOpacity),"&:hover:not(.Mui-disabled)":{backgroundColor:ue=>ht.alpha(ue.palette.primary.main,ue.palette.action.selectedOpacity+ue.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:ue=>ht.alpha(ue.palette.primary.main,ue.palette.action.selectedOpacity)}}}},Ce={maxHeight:"100%","&.Mui-selected":{backgroundColor:ue=>ht.alpha(ue.palette.text.icon??ue.palette.action.active,ue.palette.action.selectedOpacity),"&:hover:not(.Mui-disabled)":{backgroundColor:ue=>ht.alpha(ue.palette.text.icon??ue.palette.action.active,ue.palette.action.selectedOpacity+ue.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:ue=>ht.alpha(ue.palette.text.icon??ue.palette.action.active,ue.palette.action.selectedOpacity)}}},"&:hover:not(.Mui-disabled, [disabled])":{color:ue=>ue.palette.text.primary},backgroundColor:()=>C?"transparent":void 0,color:ue=>ue.palette.text.icon,"&.Mui-disabled path.styled":{filter:"grayscale(65%)",opacity:".8"},padding:()=>n?"2px 3px":"7px",marginRight:"0"},Me=lo.mergeContentful(Ce,J),re=lo.mergeContentful(Me,ae),oe=lo.mergeContentful(Ce,J);return{quickButtonStyling:Me,openQuickButtonStyling:re,compoundStyling:oe,openCompoundStyling:lo.mergeContentful(oe,ae)}},[S,C]),ee=pn(J=>{const{children:ae,ref:Ce,...Me}=J;return a.jsx(Ir,{ref:Ce,...Me,disableInteractive:!0,children:ae})},[]),H=l||m,$=H&&(p?.tooltip||p?.createTooltip),z=J=>{const{tooltip:ae,createTooltip:Ce,sx:Me,...re}=J;let oe=a.jsx(B.IconButton,{sx:{...Me},component:"div",...re});return $&&(oe=(Ce??ee)({title:v?"":ae??g,children:a.jsx("div",{children:oe})},v)),oe},q={onKeyDown:J=>{J.keyCode===$o.Space?U():J.keyCode===$o.F4||J.keyCode===$o.Down?W.reference.open(0):J.keyCode===$o.Up&&W.reference.close(0)}};let Z=a.jsx(a.Fragment,{});const Q=d.useMemo(()=>typeof y=="function"?y():y,[y]);if(H){let J=v?X.openQuickButtonStyling:X.quickButtonStyling;const ae=(m||z)({tabIndex:-1,disabled:w,size:"small",edge:"end",onMouseEnter:()=>{W.reference.parent.closeChild()},onMouseDown:Me=>{Me.button===0&&(Me.preventDefault(),P(Me))},touchRippleRef:_,children:Q,...p,className:Oo({"Mui-focusVisible":T||v,"Mui-selected":i,"Mui-hovered":A||v,"Mui-disabled":w,bordered:!0,left:!0,"hard-right":!0},p?.className),sx:{...X.quickButtonStyling,height:"100%",...p?.sx}});let Ce=R6(!0,n,v);$&&(Ce=(x??ee)({title:v?"":g,children:Ce},v)),Z=a.jsxs(a.Fragment,{children:[ae,a.jsx(B.IconButton,{ref:V,component:"div",className:Oo({"Mui-selected":v,"Mui-hovered":A||v,"Mui-disabled":w,"Mui-focusVisible":T||v,bordered:!0,right:!0,divider:!0}),sx:{paddingLeft:(n?0:2)+"px",paddingRight:(n?0:2)+"px",width:()=>"1em",...X.quickButtonStyling,...J},TouchRippleProps:{center:!1},tabIndex:-1,disabled:w,size:"small",edge:"end",onMouseDown:Me=>{Me.button===0&&(Me.preventDefault(),U())},children:Ce})]})}else{let J=v?X.openCompoundStyling:X.compoundStyling;Z=a.jsx(Tr,{ref:V,tabIndex:-1,disabled:w,size:"small",icon:Q,className:Oo({"Mui-selected":v||i,"Mui-hovered":A,"Mui-disabled":w,"Mui-focusVisible":T||v,bordered:!0,left:!0,right:!0}),sx:{...X.quickButtonStyling,...J},onMouseDown:ae=>{ae.button===0&&(ae.preventDefault(),U())},children:R6(!1,n,v)})}const{className:Y,sx:te,...ie}=b;let fe=a.jsx(B.Box,{onFocus:()=>R(!0),onBlur:()=>R(!1),onMouseOver:()=>D(!0),onMouseOut:()=>D(!1),...q,"aria-label":"split button",ref:L,tabIndex:w?void 0:0,className:Oo(Y,"split-button-root",{"Mui-focusVisible":T||v,"Mui-selected":v||i,"Mui-hovered":A,"Mui-disabled":w}),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:J=>`${J.shape.borderRadius}px`,"&.Mui-focusVisible":{outline:J=>`solid ${J.palette.primary.main} 1px`,zIndex:2},...te},...ie,children:Z});return $||(fe=(x??ee)({title:v?"":g,children:fe},v)),a.jsxs(B.Box,{className:Oo(F,"popupIconButton"),ref:t,...k,sx:{zIndex:T||v?2:void 0,display:"flex",alignItems:"center",...j},children:[fe,W.component]})}));ii.displayName="ExhibitPopupIconButton";const hE={},Ns=d.memo(d.forwardRef((e,t)=>{const{selected:n=!1,label:o,onQuickClick:r,parentFloat:i,createPopupPanel:l,popupProps:c=hE,onPopupOpen:s,onPopupClose:u,quickButtonProps:h,createQuickButton:f,tooltip:p="",createTooltip:m,icon:g,disabled:x,touchRippleRef:y,primary:w,children:b,sx:C,..._}=e,[E,M]=d.useState(!1),[j,F]=d.useState(!1),[k,O]=d.useState(!1),[S,v]=d.useState(!1),I=d.useRef(null),T=d.useRef(null),R=d.useMemo(()=>{if(!c)return;const{popperProps:$}=c;return{placement:"right-start",offsets:[-4,-2],...$}},[c]),A=xi({anchor:I.current,label:o,createPopupPanel:l,parentFloat:i,popperProps:R,onClose:()=>{M(!1),u?.()},onOpen:()=>{M(!0),s?.()}}),D=pn($=>{$.button===0&&(r?.($),A.reference.close(0))},[r]),L=a.jsx(gn.ArrowRight,{sx:{transform:()=>{}}}),V={"&.Mui-selected":{color:$=>$.palette.text.primary,"& svg * ":{color:$=>$.palette.text.primary}}},W=d.useCallback($=>{const{children:z,ref:q,...Z}=$;return a.jsx(Ir,{ref:q,...Z,disableInteractive:!0,children:z})},[]),P=r||f,U=$=>{const{tooltip:z,createTooltip:q,...Z}=$;return a.jsx(yr,{icon:g,className:Oo({"Mui-hovered":k}),sx:{flex:"1 1 100%",...V},...Z,children:o})},X={onFocus:()=>{F(!0)},onBlur:()=>F(!1),onMouseOver:()=>{O(!0)},onMouseLeave:()=>{O(!1)},onMouseEnter:()=>{A.reference.open()},onMouseDown:$=>{$.button===0&&$.preventDefault()}};let ee=a.jsx(a.Fragment,{});if(P){const $=(f||U)({tabIndex:-1,disabled:x,onMouseEnter:()=>{A.reference.parent.closeChild()},onMouseDown:z=>{z.button===0&&(z.preventDefault(),D(z))},className:Oo("quick-left",{},h?.className),...h});ee=a.jsxs(a.Fragment,{children:[$,a.jsx(B.Divider,{sx:{ml:"0px",mr:"0px"},orientation:"vertical",variant:"middle",flexItem:!0}),a.jsx(B.MenuItem,{ref:T,className:Oo({"Mui-selected":E,"Mui-hovered":k}),sx:{borderTopLeftRadius:"0px",borderBottomLeftRadius:"0px",paddingLeft:"0px",paddingRight:"0px",marginLeft:"0px",color:z=>w?void 0:z.palette.text.secondary,"&.Mui-hovered:not(.Mui-disabled, [disabled])":{color:z=>z.palette.text.primary},...V},tabIndex:-1,disabled:x,...X,children:a.jsx(B.Box,{className:"expand-icon",sx:{flex:"none",display:"flex",border:"1px solid transparent",paddingTop:"1px",paddingBottom:"1px",color:z=>w?void 0:z.palette.text.icon??z.palette.action.active},onMouseOver:z=>{z.preventDefault(),v(!0)},onMouseLeave:()=>{v(!1)},onClick:z=>{z.preventDefault(),E?A.reference.close():A.reference.open()},children:L})})]})}else ee=a.jsxs(yr,{ref:T,tabIndex:-1,disabled:x,icon:g,className:Oo({"Mui-selected":E||n,"Mui-hovered":k}),sx:{flex:"1 1 100%",paddingRight:"0px",...V},onClick:$=>{$.preventDefault(),E?A.reference.close():A.reference.open()},...X,children:[a.jsx("div",{style:{flex:"1 1 100%"},children:o}),a.jsx(B.Box,{className:"expand-icon2",sx:{flex:"none",display:"flex",color:$=>w?void 0:$.palette.text.icon??$.palette.action.active},children:L})]});let H=a.jsx(B.Box,{"aria-label":"split button",ref:I,tabIndex:x?void 0:0,className:Oo({"Mui-disabled":x,"Mui-selected":E,"Mui-focusVisible":j||E,"Mui-hovered":k}),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},..._,children:ee});return P&&!S&&(h?.tooltip||h?.createTooltip)&&(H=(h?.createTooltip??W)({title:E?"":H??h?.tooltip,children:H},E)),a.jsxs(B.Box,{ref:t,sx:{zIndex:j||E?2:void 0,display:"flex"," .tooltip-wrapper":{display:"flex",flex:"1 1 100%"}},children:[H,A.component]})})),z9=d.memo(d.forwardRef((e,t)=>{const{onSelectToggle:n,selected:o=!1,label:r,shortcut:i,tabIndex:l=0,preventFocus:c=!1,...s}=e;return a.jsx(Uo,{label:r,shortcut:i,children:a.jsx(Tr,{ref:t,outlined:!1,tabIndex:l,selected:o,onMouseDown:u=>{c&&u.preventDefault()},onClick:()=>{n?.(!o)},...s})})})),Vs=d.memo(d.forwardRef((e,t)=>{const{children:n,selected:o=!0,outlined:r=!0,sx:i,...l}=e,c={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 ht.alpha(u.palette.text.icon??u.palette.action.active,u.palette.action.selectedOpacity)}};let s=n;return s===null&&(s=a.jsx(Ol,{})),s||(s=a.jsx(H5,{})),s=ge(s),a.jsx(B.Box,{ref:t,sx:{...c,...i},...l,children:s})}));function Ko(){return Ko=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},Ko.apply(null,arguments)}function B9(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 Hr,pE={state:{},updateModal:function(){},hideModal:function(){},destroyModal:function(){},destroyModalsByRootId:function(){},showModal:function(){return{id:"id",hide:function(){},destroy:function(){},update:function(){}}}},N9=d.createContext(void 0);(function(e){e.SHOW="SHOW",e.HIDE="HIDE",e.UPDATE="UPDATE",e.DESTROY="DESTROY",e.DESTROY_BY_ROOT_ID="DESTROY_BY_ROOT_ID",e.UNKNOWN="UNKNOWN"})(Hr||(Hr={}));var fE={};function mE(e,t){switch(t.type){case Hr.SHOW:var n,o=t.payload,r=o.id,i=o.component,l=o.props,c=o.options;return Ko({},e,((n={})[r]={component:i,props:Ko({},l,{open:!0}),options:c},n));case Hr.HIDE:var s,u=t.payload.id;return e[u]?Ko({},e,((s={})[u]=Ko({},e[u],{props:Ko({},e[u].props,{open:!1})}),s)):e;case Hr.UPDATE:var h,f=t.payload,p=f.id,m=f.props;return e[p]?Ko({},e,((h={})[p]=Ko({},e[p],{props:Ko({},e[p].props,m)}),h)):e;case Hr.DESTROY:var g=t.payload.id,x=Ko({},e);return delete x[g],x;case Hr.DESTROY_BY_ROOT_ID:var y=t.payload.rootId;return Object.keys(e).filter(function(w){return w.split(".")[0]!==y}).reduce(function(w,b){var C;return Ko({},w,((C={})[b]=e[b],C))},{});default:throw new Error("Unexpected action")}}var hu="[ERROR]: Modal ID is missing",V9=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("")},gE=["open"];function xE(e){var t=e.children,n=e.legacy,o=n!==void 0&&n,r=e.suspense,i=r===void 0||r,l=e.fallback,c=l===void 0?null:l,s=d.useReducer(mE,fE),u=s[0],h=s[1],f=d.useCallback(function(w,b){var C=B9(b,gE);w?h({type:Hr.UPDATE,payload:{id:w,props:C}}):console.error(hu)},[h]),p=d.useCallback(function(w){w?h({type:Hr.HIDE,payload:{id:w}}):console.error(hu)},[h]),m=d.useCallback(function(w){w?h({type:Hr.DESTROY,payload:{id:w}}):console.error(hu)},[h]),g=d.useCallback(function(w){w?h({type:Hr.DESTROY_BY_ROOT_ID,payload:{rootId:w}}):console.error("[ERROR]: Modal root ID is missing")},[h]),x=d.useCallback(function(w,b,C){var _=V9(8);return C&&C.rootId&&(_=C.rootId+"."+_),h({type:Hr.SHOW,payload:{id:_,component:w,props:b,options:C}}),{id:_,hide:function(){return p(_)},destroy:function(){return m(_)},update:function(E){return f(_,E)}}},[h,p,m,f]),y=i?d.Suspense:d.Fragment;return d.createElement(N9.Provider,{value:{state:u,updateModal:f,hideModal:p,destroyModal:m,showModal:x,destroyModalsByRootId:g}},t,d.createElement(y,Object.assign({},i&&{fallback:c}),Object.keys(u).map(function(w){var b,C=u[w],_=C.component,E=C.props,M=C.options,j=function(){var F,k;E!=null&&E.onExited&&E.onExited.apply(E,arguments),E!=null&&(F=E.TransitionProps)!=null&&F.onExited&&(k=E.TransitionProps).onExited.apply(k,arguments),m(w)};return b=o?{onExited:j}:{TransitionProps:Ko({},E?.TransitionProps,{onExited:j})},d.createElement(_,Object.assign({},E,{key:w,onClose:function(){M&&M.hideOnClose&&p(w),M&&M.destroyOnClose&&M.hideOnClose&&m(w),E&&E.onClose&&E.onClose.apply(E,arguments)}},M&&!M.destroyOnClose&&b))})))}var yE=["showModal","destroyModalsByRootId"],L6={disableAutoDestroy:!1};function o1(e){e===void 0&&(e=L6);var t=Ko({},L6,e).disableAutoDestroy,n=d.useContext(N9)||pE,o=n.showModal,r=n.destroyModalsByRootId,i=B9(n,yE),l=d.useRef(V9(6));return d.useEffect(function(){return function(){!t&&r&&r(l.current)}},[t,r]),Ko({showModal:d.useCallback(function(c,s,u){return o(c,s,Ko({rootId:l.current,hideOnClose:!0},u))},[o]),destroyModalsByRootId:r},i)}var H9=["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])"],I1=H9.join(","),$9=typeof Element>"u",R0=$9?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,r1=!$9&&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},D1=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)},W9=function(e,t,n){if(D1(e))return[];var o=Array.prototype.slice.apply(e.querySelectorAll(I1));return t&&R0.call(e,I1)&&o.unshift(e),o.filter(n)},U9=function e(t,n,o){for(var r=[],i=Array.from(t);i.length;){var l=i.shift();if(!D1(l,!1))if(l.tagName==="SLOT"){var c=l.assignedElements(),s=e(c.length?c:l.children,!0,o);o.flatten?r.push.apply(r,s):r.push({scopeParent:l,candidates:s})}else{R0.call(l,I1)&&o.filter(l)&&(n||!t.includes(l))&&r.push(l);var u=l.shadowRoot||typeof o.getShadowRoot=="function"&&o.getShadowRoot(l),h=!D1(u,!1)&&(!o.shadowRootFilter||o.shadowRootFilter(l));if(u&&h){var f=e(u===!0?l.children:u.children,!0,o);o.flatten?r.push.apply(r,f):r.push({scopeParent:l,candidates:f})}else i.unshift.apply(i,l.children)}}return r},q9=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},Qi=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))&&!q9(e)?0:e.tabIndex},bE=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},Z9=function(e){return e.tagName==="INPUT"},O6=function(e){var t=e.getBoundingClientRect(),n=t.width,o=t.height;return n===0&&o===0},L1=function(e,t){return!(t.disabled||D1(t)||function(n){return Z9(n)&&n.type==="hidden"}(t)||function(n,o){var r=o.displayCheck,i=o.getShadowRoot;if(getComputedStyle(n).visibility==="hidden")return!0;var l=R0.call(n,"details>summary:first-of-type")?n.parentElement:n;if(R0.call(l,"details:not([open]) *"))return!0;if(r&&r!=="full"&&r!=="legacy-full"){if(r==="non-zero-area")return O6(n)}else{if(typeof i=="function"){for(var c=n;n;){var s=n.parentElement,u=r1(n);if(s&&!s.shadowRoot&&i(s)===!0)return O6(n);n=n.assignedSlot?n.assignedSlot:s||u===n.ownerDocument?s:u.host}n=c}if(function(h){var f,p,m,g,x=h&&r1(h),y=(f=x)===null||f===void 0?void 0:f.host,w=!1;if(x&&x!==h)for(w=!!((p=y)!==null&&p!==void 0&&(m=p.ownerDocument)!==null&&m!==void 0&&m.contains(y)||h!=null&&(g=h.ownerDocument)!==null&&g!==void 0&&g.contains(h));!w&&y;){var b,C,_;w=!((C=y=(b=x=r1(y))===null||b===void 0?void 0:b.host)===null||C===void 0||(_=C.ownerDocument)===null||_===void 0||!_.contains(y))}return w}(n))return!n.getClientRects().length;if(r!=="legacy-full")return!0}return!1}(t,e)||function(n){return n.tagName==="DETAILS"&&Array.prototype.slice.apply(n.children).some(function(o){return o.tagName==="SUMMARY"})}(t)||function(n){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(n.tagName))for(var o=n.parentElement;o;){if(o.tagName==="FIELDSET"&&o.disabled){for(var r=0;r<o.children.length;r++){var i=o.children.item(r);if(i.tagName==="LEGEND")return!!R0.call(o,"fieldset[disabled] *")||!i.contains(n)}return!0}o=o.parentElement}return!1}(t))},G2=function(e,t){return!(function(n){return function(o){return Z9(o)&&o.type==="radio"}(n)&&!function(o){if(!o.name)return!0;var r,i=o.form||r1(o),l=function(s){return i.querySelectorAll('input[type="radio"][name="'+s+'"]')};if(typeof window<"u"&&window.CSS!==void 0&&typeof window.CSS.escape=="function")r=l(window.CSS.escape(o.name));else try{r=l(o.name)}catch(s){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",s.message),!1}var c=function(s,u){for(var h=0;h<s.length;h++)if(s[h].checked&&s[h].form===u)return s[h]}(r,o.form);return!c||c===o}(n)}(t)||Qi(t)<0||!L1(e,t))},wE=function(e){var t=parseInt(e.getAttribute("tabindex"),10);return!!(isNaN(t)||t>=0)},vE=function e(t){var n=[],o=[];return t.forEach(function(r,i){var l=!!r.scopeParent,c=l?r.scopeParent:r,s=function(h,f){var p=Qi(h);return p<0&&f&&!q9(h)?0:p}(c,l),u=l?e(r.candidates):c;s===0?l?n.push.apply(n,u):n.push(c):o.push({documentOrder:i,tabIndex:s,item:r,isScope:l,content:u})}),o.sort(bE).reduce(function(r,i){return i.isScope?r.push.apply(r,i.content):r.push(i.content),r},[]).concat(n)},G9=function(e,t){var n;return n=(t=t||{}).getShadowRoot?U9([e],t.includeContainer,{filter:G2.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:wE}):W9(e,t.includeContainer,G2.bind(null,t)),vE(n)},K9=function(e,t){return(t=t||{}).getShadowRoot?U9([e],t.includeContainer,{filter:L1.bind(null,t),flatten:!0,getShadowRoot:t.getShadowRoot}):W9(e,t.includeContainer,L1.bind(null,t))},b0=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return R0.call(e,I1)!==!1&&G2(t,e)},SE=H9.concat("iframe").join(","),i1=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return R0.call(e,SE)!==!1&&L1(t,e)};const CE=Object.freeze(Object.defineProperty({__proto__:null,focusable:K9,getTabIndex:Qi,isFocusable:i1,isTabbable:b0,tabbable:G9},Symbol.toStringTag,{value:"Module"}));function pu(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 _E(e,t,n){return(t=function(o){var r=function(i,l){if(typeof i!="object"||!i)return i;var c=i[Symbol.toPrimitive];if(c!==void 0){var s=c.call(i,l);if(typeof s!="object")return s;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 P6(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 A6(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?P6(Object(n),!0).forEach(function(o){_E(e,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):P6(Object(n)).forEach(function(o){Object.defineProperty(e,o,Object.getOwnPropertyDescriptor(n,o))})}return e}var Qa=function(e){return e?.key==="Tab"||e?.keyCode===9},EE=function(e){return Qa(e)&&!e.shiftKey},kE=function(e){return Qa(e)&&e.shiftKey},F6=function(e){return setTimeout(e,0)},ma=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},xc=function(e){return e.target.shadowRoot&&typeof e.composedPath=="function"?e.composedPath()[0]:e.target},TE=[];const jE=Object.freeze(Object.defineProperty({__proto__:null,createFocusTrap:function(e,t){var n,o=t?.document||document,r=t?.trapStack||TE,i=A6({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0,isKeyForward:EE,isKeyBackward:kE},t),l={containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,manuallyPaused:!1,delayInitialFocusTimer:void 0,recentNavEvent:void 0},c=function(k,O,S){return k&&k[O]!==void 0?k[O]:i[S||O]},s=function(k,O){var S=typeof O?.composedPath=="function"?O.composedPath():void 0;return l.containerGroups.findIndex(function(v){var I=v.container,T=v.tabbableNodes;return I.contains(k)||S?.includes(I)||T.find(function(R){return R===k})})},u=function(k){var O=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},S=O.hasFallback,v=S!==void 0&&S,I=O.params,T=I===void 0?[]:I,R=i[k];if(typeof R=="function"&&(R=R.apply(void 0,function(D){return function(L){if(Array.isArray(L))return pu(L)}(D)||function(L){if(typeof Symbol<"u"&&L[Symbol.iterator]!=null||L["@@iterator"]!=null)return Array.from(L)}(D)||function(L,V){if(L){if(typeof L=="string")return pu(L,V);var W={}.toString.call(L).slice(8,-1);return W==="Object"&&L.constructor&&(W=L.constructor.name),W==="Map"||W==="Set"?Array.from(L):W==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(W)?pu(L,V):void 0}}(D)||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.`)}()}(T))),R===!0&&(R=void 0),!R){if(R===void 0||R===!1)return R;throw new Error("`".concat(k,"` 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(D){throw new Error("`".concat(k,'` appears to be an invalid selector; error="').concat(D.message,'"'))}if(!A&&!v)throw new Error("`".concat(k,"` as selector refers to no known node"))}return A},h=function(){var k=u("initialFocus",{hasFallback:!0});if(k===!1)return!1;if(k===void 0||k&&!i1(k,i.tabbableOptions))if(s(o.activeElement)>=0)k=o.activeElement;else{var O=l.tabbableGroups[0];k=O&&O.firstTabbableNode||u("fallbackFocus")}else k===null&&(k=u("fallbackFocus"));if(!k)throw new Error("Your focus-trap needs to have at least one focusable element");return k},f=function(){if(l.containerGroups=l.containers.map(function(k){var O=G9(k,i.tabbableOptions),S=K9(k,i.tabbableOptions),v=O.length>0?O[0]:void 0,I=O.length>0?O[O.length-1]:void 0,T=S.find(function(D){return b0(D)}),R=S.slice().reverse().find(function(D){return b0(D)}),A=!!O.find(function(D){return Qi(D)>0});return{container:k,tabbableNodes:O,focusableNodes:S,posTabIndexesFound:A,firstTabbableNode:v,lastTabbableNode:I,firstDomTabbableNode:T,lastDomTabbableNode:R,nextTabbableNode:function(D){var L=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1],V=O.indexOf(D);return V<0?L?S.slice(S.indexOf(D)+1).find(function(W){return b0(W)}):S.slice(0,S.indexOf(D)).reverse().find(function(W){return b0(W)}):O[V+(L?1:-1)]}}}),l.tabbableGroups=l.containerGroups.filter(function(k){return k.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(k){return k.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.")},p=function(k){var O=k.activeElement;if(O)return O.shadowRoot&&O.shadowRoot.activeElement!==null?p(O.shadowRoot):O},m=function(k){k!==!1&&k!==p(document)&&(k&&k.focus?(k.focus({preventScroll:!!i.preventScroll}),l.mostRecentlyFocusedNode=k,function(O){return O.tagName&&O.tagName.toLowerCase()==="input"&&typeof O.select=="function"}(k)&&k.select()):m(h()))},g=function(k){var O=u("setReturnFocus",{params:[k]});return O||O!==!1&&k},x=function(k){var O=k.target,S=k.event,v=k.isBackward,I=v!==void 0&&v;O=O||xc(S),f();var T=null;if(l.tabbableGroups.length>0){var R=s(O,S),A=R>=0?l.containerGroups[R]:void 0;if(R<0)T=I?l.tabbableGroups[l.tabbableGroups.length-1].lastTabbableNode:l.tabbableGroups[0].firstTabbableNode;else if(I){var D=l.tabbableGroups.findIndex(function(X){var ee=X.firstTabbableNode;return O===ee});if(D<0&&(A.container===O||i1(O,i.tabbableOptions)&&!b0(O,i.tabbableOptions)&&!A.nextTabbableNode(O,!1))&&(D=R),D>=0){var L=D===0?l.tabbableGroups.length-1:D-1,V=l.tabbableGroups[L];T=Qi(O)>=0?V.lastTabbableNode:V.lastDomTabbableNode}else Qa(S)||(T=A.nextTabbableNode(O,!1))}else{var W=l.tabbableGroups.findIndex(function(X){var ee=X.lastTabbableNode;return O===ee});if(W<0&&(A.container===O||i1(O,i.tabbableOptions)&&!b0(O,i.tabbableOptions)&&!A.nextTabbableNode(O))&&(W=R),W>=0){var P=W===l.tabbableGroups.length-1?0:W+1,U=l.tabbableGroups[P];T=Qi(O)>=0?U.firstTabbableNode:U.firstDomTabbableNode}else Qa(S)||(T=A.nextTabbableNode(O))}}else T=u("fallbackFocus");return T},y=function(k){var O=xc(k);s(O,k)>=0||(ma(i.clickOutsideDeactivates,k)?n.deactivate({returnFocus:i.returnFocusOnDeactivate}):ma(i.allowOutsideClick,k)||k.preventDefault())},w=function(k){var O=xc(k),S=s(O,k)>=0;if(S||O instanceof Document)S&&(l.mostRecentlyFocusedNode=O);else{var v;k.stopImmediatePropagation();var I=!0;if(l.mostRecentlyFocusedNode)if(Qi(l.mostRecentlyFocusedNode)>0){var T=s(l.mostRecentlyFocusedNode),R=l.containerGroups[T].tabbableNodes;if(R.length>0){var A=R.findIndex(function(D){return D===l.mostRecentlyFocusedNode});A>=0&&(i.isKeyForward(l.recentNavEvent)?A+1<R.length&&(v=R[A+1],I=!1):A-1>=0&&(v=R[A-1],I=!1))}}else l.containerGroups.some(function(D){return D.tabbableNodes.some(function(L){return Qi(L)>0})})||(I=!1);else I=!1;I&&(v=x({target:l.mostRecentlyFocusedNode,isBackward:i.isKeyBackward(l.recentNavEvent)})),m(v||l.mostRecentlyFocusedNode||h())}l.recentNavEvent=void 0},b=function(k){(i.isKeyForward(k)||i.isKeyBackward(k))&&function(O){var S=arguments.length>1&&arguments[1]!==void 0&&arguments[1];l.recentNavEvent=O;var v=x({event:O,isBackward:S});v&&(Qa(O)&&O.preventDefault(),m(v))}(k,i.isKeyBackward(k))},C=function(k){var O;((O=k)==null?void 0:O.key)!=="Escape"&&O?.key!=="Esc"&&O?.keyCode!==27||ma(i.escapeDeactivates,k)===!1||(k.preventDefault(),n.deactivate())},_=function(k){var O=xc(k);s(O,k)>=0||ma(i.clickOutsideDeactivates,k)||ma(i.allowOutsideClick,k)||(k.preventDefault(),k.stopImmediatePropagation())},E=function(){if(l.active)return function(k,O){if(k.length>0){var S=k[k.length-1];S!==O&&S._setPausedState(!0)}var v=k.indexOf(O);v===-1||k.splice(v,1),k.push(O)}(r,n),l.delayInitialFocusTimer=i.delayInitialFocus?F6(function(){m(h())}):m(h()),o.addEventListener("focusin",w,!0),o.addEventListener("mousedown",y,{capture:!0,passive:!1}),o.addEventListener("touchstart",y,{capture:!0,passive:!1}),o.addEventListener("click",_,{capture:!0,passive:!1}),o.addEventListener("keydown",b,{capture:!0,passive:!1}),o.addEventListener("keydown",C),n},M=function(){if(l.active)return o.removeEventListener("focusin",w,!0),o.removeEventListener("mousedown",y,!0),o.removeEventListener("touchstart",y,!0),o.removeEventListener("click",_,!0),o.removeEventListener("keydown",b,!0),o.removeEventListener("keydown",C),n},j=typeof window<"u"&&"MutationObserver"in window?new MutationObserver(function(k){k.some(function(O){return Array.from(O.removedNodes).some(function(S){return S===l.mostRecentlyFocusedNode})})&&m(h())}):void 0,F=function(){j&&(j.disconnect(),l.active&&!l.paused&&l.containers.map(function(k){j.observe(k,{subtree:!0,childList:!0})}))};return n={get active(){return l.active},get paused(){return l.paused},activate:function(k){if(l.active)return this;var O=c(k,"onActivate"),S=c(k,"onPostActivate"),v=c(k,"checkCanFocusTrap");v||f(),l.active=!0,l.paused=!1,l.nodeFocusedBeforeActivation=p(o),O?.();var I=function(){v&&f(),E(),F(),S?.()};return v?(v(l.containers.concat()).then(I,I),this):(I(),this)},deactivate:function(k){if(!l.active)return this;var O=A6({onDeactivate:i.onDeactivate,onPostDeactivate:i.onPostDeactivate,checkCanReturnFocus:i.checkCanReturnFocus},k);clearTimeout(l.delayInitialFocusTimer),l.delayInitialFocusTimer=void 0,M(),l.active=!1,l.paused=!1,F(),function(A,D){var L=A.indexOf(D);L!==-1&&A.splice(L,1),A.length>0&&!A[A.length-1]._isManuallyPaused()&&A[A.length-1]._setPausedState(!1)}(r,n);var S=c(O,"onDeactivate"),v=c(O,"onPostDeactivate"),I=c(O,"checkCanReturnFocus"),T=c(O,"returnFocus","returnFocusOnDeactivate");S?.();var R=function(){F6(function(){T&&m(g(l.nodeFocusedBeforeActivation)),v?.()})};return T&&I?(I(g(l.nodeFocusedBeforeActivation)).then(R,R),this):(R(),this)},pause:function(k){return l.active?(l.manuallyPaused=!0,this._setPausedState(!0,k)):this},unpause:function(k){return l.active?(l.manuallyPaused=!1,r[r.length-1]!==this?this:this._setPausedState(!1,k)):this},updateContainerElements:function(k){var O=[].concat(k).filter(Boolean);return l.containers=O.map(function(S){return typeof S=="string"?o.querySelector(S):S}),l.active&&f(),F(),this}},Object.defineProperties(n,{_isManuallyPaused:{value:function(){return l.manuallyPaused}},_setPausedState:{value:function(k,O){if(l.paused===k)return this;if(l.paused=k,k){var S=c(O,"onPause"),v=c(O,"onPostPause");S?.(),M(),F(),v?.()}else{var I=c(O,"onUnpause"),T=c(O,"onPostUnpause");I?.(),f(),E(),F(),T?.()}return this}}}),n.updateContainerElements(e),n}},Symbol.toStringTag,{value:"Module"})),ME=Wm(jE),RE=Wm(CE);var z6,B6,IE=function(){if(B6)return z6;function e(f){return(e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(p){return typeof p}:function(p){return p&&typeof Symbol=="function"&&p.constructor===Symbol&&p!==Symbol.prototype?"symbol":typeof p})(f)}function t(){try{var f=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(t=function(){return!!f})()}function n(f){return(n=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(p){return p.__proto__||Object.getPrototypeOf(p)})(f)}function o(f,p){return o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(m,g){return m.__proto__=g,m},o(f,p)}function r(f){var p=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)}(f,"string");return e(p)=="symbol"?p:p+""}B6=1;var i=d,l=R2(),c=ME.createFocusTrap,s=RE.isFocusable,u=function(f){function p(m){var g;(function(w,b){if(!(w instanceof b))throw new TypeError("Cannot call a class as a function")})(this,p),function(w,b,C){(b=r(b))in w?Object.defineProperty(w,b,{value:C,enumerable:!0,configurable:!0,writable:!0}):w[b]=C}(g=function(w,b,C){return b=n(b),function(_,E){if(E&&(e(E)=="object"||typeof E=="function"))return E;if(E!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(M){if(M===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return M}(_)}(w,t()?Reflect.construct(b,C||[],n(w).constructor):b.apply(w,C))}(this,p,[m]),"getNodeForOption",function(w){var b,C=(b=this.internalOptions[w])!==null&&b!==void 0?b:this.originalOptions[w];if(typeof C=="function"){for(var _=arguments.length,E=new Array(_>1?_-1:0),M=1;M<_;M++)E[M-1]=arguments[M];C=C.apply(void 0,E)}if(C===!0&&(C=void 0),!C){if(C===void 0||C===!1)return C;throw new Error("`".concat(w,"` was specified but was not a node, or did not return a node"))}var j,F=C;if(typeof C=="string"&&!(F=(j=this.getDocument())===null||j===void 0?void 0:j.querySelector(C)))throw new Error("`".concat(w,"` 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)}(p,f),function(m,g){return g&&function(x,y){for(var w=0;w<y.length;w++){var b=y[w];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}(p,[{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||s(m.outsideClick.target,m.internalOptions.tabbableOptions))),w=m.internalOptions.preventScroll,b=w!==void 0&&w;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,w=m.paused&&!this.props.paused;if(g&&(this.updatePreviousElement(),this.focusTrap.activate()),x)return void this.deactivateTrap();y&&this.focusTrap.pause(),w&&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),h=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(h),l.string,l.bool,l.func]),fallbackFocus:l.oneOfType([l.instanceOf(h),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(h),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(h)),children:l.oneOfType([l.element,l.instanceOf(h)])},u.defaultProps={active:!0,paused:!1,focusTrapOptions:{},_createFocusTrap:c},z6=u}();const DE=$m(IE);var N6,V6,ga={exports:{}},H6={},yc={exports:{}},yo={},f0={};function O1(){return V6||(V6=1,Object.defineProperty(f0,"__esModule",{value:!0}),f0.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.`)},f0.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]},f0.int=function(e){return parseInt(e,10)},f0.isFunction=function(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Function]"},f0.isNum=function(e){return typeof e=="number"&&!isNaN(e)}),f0}var $6,W6,zi={};function K2(){if(W6)return yo;W6=1,Object.defineProperty(yo,"__esModule",{value:!0}),yo.addClassName=l,yo.addEvent=function(s,u,h,f){if(!s)return;const p={capture:!0,...f};s.addEventListener?s.addEventListener(u,h,p):s.attachEvent?s.attachEvent("on"+u,h):s["on"+u]=h},yo.addUserSelectStyles=function(s){if(!s)return;let u=s.getElementById("react-draggable-style-el");u||(u=s.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
|
+
`,s.getElementsByTagName("head")[0].appendChild(u)),s.body&&l(s.body,"react-draggable-transparent-selection")},yo.createCSSTransform=function(s,u){const h=r(s,u,"px");return{[(0,t.browserPrefixToKey)("transform",t.default)]:h}},yo.createSVGTransform=function(s,u){return r(s,u,"")},yo.getTouch=function(s,u){return s.targetTouches&&(0,e.findInArray)(s.targetTouches,h=>u===h.identifier)||s.changedTouches&&(0,e.findInArray)(s.changedTouches,h=>u===h.identifier)},yo.getTouchIdentifier=function(s){return s.targetTouches&&s.targetTouches[0]?s.targetTouches[0].identifier:s.changedTouches&&s.changedTouches[0]?s.changedTouches[0].identifier:void 0},yo.getTranslation=r,yo.innerHeight=function(s){let u=s.clientHeight;const h=s.ownerDocument.defaultView.getComputedStyle(s);return u-=(0,e.int)(h.paddingTop),u-=(0,e.int)(h.paddingBottom),u},yo.innerWidth=function(s){let u=s.clientWidth;const h=s.ownerDocument.defaultView.getComputedStyle(s);return u-=(0,e.int)(h.paddingLeft),u-=(0,e.int)(h.paddingRight),u},yo.matchesSelector=o,yo.matchesSelectorAndParentsTo=function(s,u,h){let f=s;do{if(o(f,u))return!0;if(f===h)return!1;f=f.parentNode}while(f);return!1},yo.offsetXYFromParent=function(s,u,h){const f=u===u.ownerDocument.body?{left:0,top:0}:u.getBoundingClientRect();return{x:(s.clientX+u.scrollLeft-f.left)/h,y:(s.clientY+u.scrollTop-f.top)/h}},yo.outerHeight=function(s){let u=s.clientHeight;const h=s.ownerDocument.defaultView.getComputedStyle(s);return u+=(0,e.int)(h.borderTopWidth),u+=(0,e.int)(h.borderBottomWidth),u},yo.outerWidth=function(s){let u=s.clientWidth;const h=s.ownerDocument.defaultView.getComputedStyle(s);return u+=(0,e.int)(h.borderLeftWidth),u+=(0,e.int)(h.borderRightWidth),u},yo.removeClassName=c,yo.removeEvent=function(s,u,h,f){if(!s)return;const p={capture:!0,...f};s.removeEventListener?s.removeEventListener(u,h,p):s.detachEvent?s.detachEvent("on"+u,h):s["on"+u]=null},yo.scheduleRemoveUserSelectStyles=function(s){window.requestAnimationFrame?window.requestAnimationFrame(()=>{i(s)}):i(s)};var e=O1(),t=function(s){if(typeof WeakMap=="function")var u=new WeakMap;return function(h){if(h&&h.__esModule)return h;var f,p,m={__proto__:null,default:h};if(h===null||typeof h!="object"&&typeof h!="function")return m;if(f=u){if(f.has(h))return f.get(h);f.set(h,m)}for(const g in h)g!=="default"&&{}.hasOwnProperty.call(h,g)&&((p=(f=Object.defineProperty)&&Object.getOwnPropertyDescriptor(h,g))&&(p.get||p.set)?f(m,g,p):m[g]=h[g]);return m}(s)}(function(){if($6)return zi;$6=1,Object.defineProperty(zi,"__esModule",{value:!0}),zi.browserPrefixToKey=h,zi.browserPrefixToStyle=function(f,p){return p?`-${p.toLowerCase()}-${f}`:f},zi.default=void 0,zi.getPrefix=u;const s=["Moz","Webkit","O","ms"];function u(){let f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"transform";if(typeof window>"u")return"";const p=window.document?.documentElement?.style;if(!p||f in p)return"";for(let m=0;m<s.length;m++)if(h(f,s[m])in p)return s[m];return""}function h(f,p){return p?`${p}${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}(f)}`:f}return zi.default=u(),zi}());let n="";function o(s,u){return n||(n=(0,e.findInArray)(["matches","webkitMatchesSelector","mozMatchesSelector","msMatchesSelector","oMatchesSelector"],function(h){return(0,e.isFunction)(s[h])})),!!(0,e.isFunction)(s[n])&&s[n](u)}function r(s,u,h){let{x:f,y:p}=s,m=`translate(${f}${h},${p}${h})`;return u&&(m=`translate(${typeof u.x=="string"?u.x:u.x+h}, ${typeof u.y=="string"?u.y:u.y+h})`+m),m}function i(s){if(s)try{if(s.body&&c(s.body,"react-draggable-transparent-selection"),s.selection)s.selection.empty();else{const u=(s.defaultView||window).getSelection();u&&u.type!=="Caret"&&u.removeAllRanges()}}catch{}}function l(s,u){s.classList?s.classList.add(u):s.className.match(new RegExp(`(?:^|\\s)${u}(?!\\S)`))||(s.className+=` ${u}`)}function c(s,u){s.classList?s.classList.remove(u):s.className=s.className.replace(new RegExp(`(?:^|\\s)${u}(?!\\S)`,"g"),"")}return yo}var U6,si={};function q6(){if(U6)return si;U6=1,Object.defineProperty(si,"__esModule",{value:!0}),si.canDragX=function(o){return o.props.axis==="both"||o.props.axis==="x"},si.canDragY=function(o){return o.props.axis==="both"||o.props.axis==="y"},si.createCoreData=function(o,r,i){const l=!(0,e.isNum)(o.lastX),c=n(o);return l?{node:c,deltaX:0,deltaY:0,lastX:r,lastY:i,x:r,y:i}:{node:c,deltaX:r-o.lastX,deltaY:i-o.lastY,lastX:o.lastX,lastY:o.lastY,x:r,y:i}},si.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}},si.getBoundPosition=function(o,r,i){if(!o.props.bounds)return[r,i];let{bounds:l}=o.props;l=typeof l=="string"?l:function(s){return{left:s.left,top:s.top,right:s.right,bottom:s.bottom}}(l);const c=n(o);if(typeof l=="string"){const{ownerDocument:s}=c,u=s.defaultView;let h;if(h=l==="parent"?c.parentNode:c.getRootNode().querySelector(l),!(h instanceof u.HTMLElement))throw new Error('Bounds selector "'+l+'" could not find an element.');const f=h,p=u.getComputedStyle(c),m=u.getComputedStyle(f);l={left:-c.offsetLeft+(0,e.int)(m.paddingLeft)+(0,e.int)(p.marginLeft),top:-c.offsetTop+(0,e.int)(m.paddingTop)+(0,e.int)(p.marginTop),right:(0,t.innerWidth)(f)-(0,t.outerWidth)(c)-c.offsetLeft+(0,e.int)(m.paddingRight)-(0,e.int)(p.marginRight),bottom:(0,t.innerHeight)(f)-(0,t.outerHeight)(c)-c.offsetTop+(0,e.int)(m.paddingBottom)-(0,e.int)(p.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]},si.getControlPosition=function(o,r,i){const l=typeof r=="number"?(0,t.getTouch)(o,r):null;if(typeof r=="number"&&!l)return null;const c=n(i),s=i.props.offsetParent||c.offsetParent||c.ownerDocument.body;return(0,t.offsetXYFromParent)(l||o,s,i.props.scale)},si.snapToGrid=function(o,r,i){return[Math.round(r/o[0])*o[0],Math.round(i/o[1])*o[1]]};var e=O1(),t=K2();function n(o){const r=o.findDOMNode();if(!r)throw new Error("<DraggableCore>: Unmounted during event!");return r}return si}var Z6,G6,K6,X6,xa={},fu={};function Y6(){return Z6||(Z6=1,Object.defineProperty(fu,"__esModule",{value:!0}),fu.default=function(){}),fu}function LE(){return K6||(K6=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"DraggableCore",{enumerable:!0,get:function(){return s.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 w,b,C={__proto__:null,default:y};if(y===null||typeof y!="object"&&typeof y!="function")return C;if(w=x){if(w.has(y))return w.get(y);w.set(y,C)}for(const _ in y)_!=="default"&&{}.hasOwnProperty.call(y,_)&&((b=(w=Object.defineProperty)&&Object.getOwnPropertyDescriptor(y,_))&&(b.get||b.set)?w(C,_,b):C[_]=y[_]);return C}(g)}(d),n=h(R2()),o=h(ao),r=function(){if(N6)return yc.exports;function g(y){var w,b,C="";if(typeof y=="string"||typeof y=="number")C+=y;else if(typeof y=="object")if(Array.isArray(y)){var _=y.length;for(w=0;w<_;w++)y[w]&&(b=g(y[w]))&&(C&&(C+=" "),C+=b)}else for(b in y)y[b]&&(C&&(C+=" "),C+=b);return C}function x(){for(var y,w,b=0,C="",_=arguments.length;b<_;b++)(y=arguments[b])&&(w=g(y))&&(C&&(C+=" "),C+=w);return C}return N6=1,yc.exports=x,yc.exports.clsx=x,yc.exports}(),i=K2(),l=q6(),c=O1(),s=h(function(){if(G6)return xa;G6=1,Object.defineProperty(xa,"__esModule",{value:!0}),xa.default=void 0;var g=function(S){if(typeof WeakMap=="function")var v=new WeakMap;return function(I){if(I&&I.__esModule)return I;var T,R,A={__proto__:null,default:I};if(I===null||typeof I!="object"&&typeof I!="function")return A;if(T=v){if(T.has(I))return T.get(I);T.set(I,A)}for(const D in I)D!=="default"&&{}.hasOwnProperty.call(I,D)&&((R=(T=Object.defineProperty)&&Object.getOwnPropertyDescriptor(I,D))&&(R.get||R.set)?T(A,D,R):A[D]=I[D]);return A}(S)}(d),x=E(R2()),y=E(ao),w=K2(),b=q6(),C=O1(),_=E(Y6());function E(S){return S&&S.__esModule?S:{default:S}}function M(S,v,I){return(v=function(T){var R=function(A,D){if(typeof A!="object"||!A)return A;var L=A[Symbol.toPrimitive];if(L!==void 0){var V=L.call(A,D);if(typeof V!="object")return V;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(A)}(T,"string");return typeof R=="symbol"?R:R+""}(v))in S?Object.defineProperty(S,v,{value:I,enumerable:!0,configurable:!0,writable:!0}):S[v]=I,S}const j={start:"touchstart",move:"touchmove",stop:"touchend"},F={start:"mousedown",move:"mousemove",stop:"mouseup"};let k=F,O=class extends g.Component{constructor(){super(...arguments),M(this,"dragging",!1),M(this,"lastX",NaN),M(this,"lastY",NaN),M(this,"touchIdentifier",null),M(this,"mounted",!1),M(this,"handleDragStart",S=>{if(this.props.onMouseDown(S),!this.props.allowAnyClick&&typeof S.button=="number"&&S.button!==0)return!1;const v=this.findDOMNode();if(!v||!v.ownerDocument||!v.ownerDocument.body)throw new Error("<DraggableCore> not mounted on DragStart!");const{ownerDocument:I}=v;if(this.props.disabled||!(S.target instanceof I.defaultView.Node)||this.props.handle&&!(0,w.matchesSelectorAndParentsTo)(S.target,this.props.handle,v)||this.props.cancel&&(0,w.matchesSelectorAndParentsTo)(S.target,this.props.cancel,v))return;S.type!=="touchstart"||this.props.allowMobileScroll||S.preventDefault();const T=(0,w.getTouchIdentifier)(S);this.touchIdentifier=T;const R=(0,b.getControlPosition)(S,T,this);if(R==null)return;const{x:A,y:D}=R,L=(0,b.createCoreData)(this,A,D);(0,_.default)("DraggableCore: handleDragStart: %j",L),(0,_.default)("calling",this.props.onStart),this.props.onStart(S,L)!==!1&&this.mounted!==!1&&(this.props.enableUserSelectHack&&(0,w.addUserSelectStyles)(I),this.dragging=!0,this.lastX=A,this.lastY=D,(0,w.addEvent)(I,k.move,this.handleDrag),(0,w.addEvent)(I,k.stop,this.handleDragStop))}),M(this,"handleDrag",S=>{const v=(0,b.getControlPosition)(S,this.touchIdentifier,this);if(v==null)return;let{x:I,y:T}=v;if(Array.isArray(this.props.grid)){let A=I-this.lastX,D=T-this.lastY;if([A,D]=(0,b.snapToGrid)(this.props.grid,A,D),!A&&!D)return;I=this.lastX+A,T=this.lastY+D}const R=(0,b.createCoreData)(this,I,T);if((0,_.default)("DraggableCore: handleDrag: %j",R),this.props.onDrag(S,R)!==!1&&this.mounted!==!1)this.lastX=I,this.lastY=T;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)}}),M(this,"handleDragStop",S=>{if(!this.dragging)return;const v=(0,b.getControlPosition)(S,this.touchIdentifier,this);if(v==null)return;let{x:I,y:T}=v;if(Array.isArray(this.props.grid)){let D=I-this.lastX||0,L=T-this.lastY||0;[D,L]=(0,b.snapToGrid)(this.props.grid,D,L),I=this.lastX+D,T=this.lastY+L}const R=(0,b.createCoreData)(this,I,T);if(this.props.onStop(S,R)===!1||this.mounted===!1)return!1;const A=this.findDOMNode();A&&this.props.enableUserSelectHack&&(0,w.scheduleRemoveUserSelectStyles)(A.ownerDocument),(0,_.default)("DraggableCore: handleDragStop: %j",R),this.dragging=!1,this.lastX=NaN,this.lastY=NaN,A&&((0,_.default)("DraggableCore: Removing handlers"),(0,w.removeEvent)(A.ownerDocument,k.move,this.handleDrag),(0,w.removeEvent)(A.ownerDocument,k.stop,this.handleDragStop))}),M(this,"onMouseDown",S=>(k=F,this.handleDragStart(S))),M(this,"onMouseUp",S=>(k=F,this.handleDragStop(S))),M(this,"onTouchStart",S=>(k=j,this.handleDragStart(S))),M(this,"onTouchEnd",S=>(k=j,this.handleDragStop(S)))}componentDidMount(){this.mounted=!0;const S=this.findDOMNode();S&&(0,w.addEvent)(S,j.start,this.onTouchStart,{passive:!1})}componentWillUnmount(){this.mounted=!1;const S=this.findDOMNode();if(S){const{ownerDocument:v}=S;(0,w.removeEvent)(v,F.move,this.handleDrag),(0,w.removeEvent)(v,j.move,this.handleDrag),(0,w.removeEvent)(v,F.stop,this.handleDragStop),(0,w.removeEvent)(v,j.stop,this.handleDragStop),(0,w.removeEvent)(S,j.start,this.onTouchStart,{passive:!1}),this.props.enableUserSelectHack&&(0,w.scheduleRemoveUserSelectStyles)(v)}}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 xa.default=O,M(O,"displayName","DraggableCore"),M(O,"propTypes",{allowAnyClick:x.default.bool,allowMobileScroll:x.default.bool,children:x.default.node.isRequired,disabled:x.default.bool,enableUserSelectHack:x.default.bool,offsetParent:function(S,v){if(S[v]&&S[v].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}),M(O,"defaultProps",{allowAnyClick:!1,allowMobileScroll:!1,disabled:!1,enableUserSelectHack:!0,onStart:function(){},onDrag:function(){},onStop:function(){},onMouseDown:function(){},scale:1}),xa}()),u=h(Y6());function h(g){return g&&g.__esModule?g:{default:g}}function f(){return f=Object.assign?Object.assign.bind():function(g){for(var x=1;x<arguments.length;x++){var y=arguments[x];for(var w in y)({}).hasOwnProperty.call(y,w)&&(g[w]=y[w])}return g},f.apply(null,arguments)}function p(g,x,y){return(x=function(w){var b=function(C,_){if(typeof C!="object"||!C)return C;var E=C[Symbol.toPrimitive];if(E!==void 0){var M=E.call(C,_);if(typeof M!="object")return M;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(C)}(w,"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:w}=x,{prevPropsPosition:b}=y;return!w||b&&w.x===b.x&&w.y===b.y?null:((0,u.default)("Draggable: getDerivedStateFromProps %j",{position:w,prevPropsPosition:b}),{x:w.x,y:w.y,prevPropsPosition:{...w}})}constructor(x){super(x),p(this,"onDragStart",(y,w)=>{if((0,u.default)("Draggable: onDragStart: %j",w),this.props.onStart(y,(0,l.createDraggableData)(this,w))===!1)return!1;this.setState({dragging:!0,dragged:!0})}),p(this,"onDrag",(y,w)=>{if(!this.state.dragging)return!1;(0,u.default)("Draggable: onDrag: %j",w);const b=(0,l.createDraggableData)(this,w),C={x:b.x,y:b.y,slackX:0,slackY:0};if(this.props.bounds){const{x:_,y:E}=C;C.x+=this.state.slackX,C.y+=this.state.slackY;const[M,j]=(0,l.getBoundPosition)(this,C.x,C.y);C.x=M,C.y=j,C.slackX=this.state.slackX+(_-C.x),C.slackY=this.state.slackY+(E-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)}),p(this,"onDragStop",(y,w)=>{if(!this.state.dragging||this.props.onStop(y,(0,l.createDraggableData)(this,w))===!1)return!1;(0,u.default)("Draggable: onDragStop: %j",w);const b={dragging:!1,slackX:0,slackY:0};if(this.props.position){const{x:C,y:_}=this.props.position;b.x=C,b.y=_}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:w,defaultPosition:b,defaultClassName:C,defaultClassNameDragging:_,defaultClassNameDragged:E,position:M,positionOffset:j,scale:F,...k}=this.props;let O={},S=null;const v=!M||this.state.dragging,I=M||b,T={x:(0,l.canDragX)(this)&&v?this.state.x:I.x,y:(0,l.canDragY)(this)&&v?this.state.y:I.y};this.state.isElementSVG?S=(0,i.createSVGTransform)(T,j):O=(0,i.createCSSTransform)(T,j);const R=(0,r.clsx)(w.props.className||"",C,{[_]:this.state.dragging,[E]:this.state.dragged});return t.createElement(s.default,f({},k,{onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop}),t.cloneElement(t.Children.only(w),{className:R,style:{...w.props.style,...O},transform:S}))}}e.default=m,p(m,"displayName","Draggable"),p(m,"propTypes",{...s.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:c.dontSetMe,style:c.dontSetMe,transform:c.dontSetMe}),p(m,"defaultProps",{...s.default.defaultProps,axis:"both",bounds:!1,defaultClassName:"react-draggable",defaultClassNameDragging:"react-draggable-dragging",defaultClassNameDragged:"react-draggable-dragged",defaultPosition:{x:0,y:0},scale:1})}(H6)),H6}var OE=function(){if(X6)return ga.exports;X6=1;const{default:e,DraggableCore:t}=LE();return ga.exports=e,ga.exports.default=e,ga.exports.DraggableCore=t,ga.exports}();const PE=$m(OE),J6={x:0,y:0},AE=d.memo(d.forwardRef((e,t)=>{const{defaultPosition:n=J6,PaperComponent:o=B.Paper,onDragStop:r,rootSel:i=".MuiModal-root",handleSel:l=".draggable-title",titleSize:c,rootSize:s,...u}=e,h=d.useRef(null),f=d.useMemo(()=>c&&s?{left:0,top:0,right:s.width-c.width,bottom:s.height-c.height}:null,[c,s]),[p,m]=d.useState(null),[g,x]=d.useState(null),[y,w]=d.useState(null);return d.useLayoutEffect(()=>{!p&&n&&m(n??J6)},[n]),d.useEffect(()=>{f&&p&&x({x:Math.max(0,Math.min(p.x,f.right)),y:Math.max(0,Math.min(p.y,f.bottom))})},[p,f]),a.jsx(PE,{nodeRef:h,handle:l,cancel:'[class*="MuiDialogContent-root"]',position:g,bounds:f??".MuiModal-root",onStop:r,onStart:(b,C)=>{const _=b;w({x:(_.clientX??_.touches?.[0]?.clientX)-C.x,y:(_.clientY??_.touches?.[0]?.clientY)-C.y})},onDrag:(b,C)=>{const _=b,E=_.clientX??_.touches?.[0]?.clientX,M=_.clientY??_.touches?.[0]?.clientY;m({x:E-y.x,y:M-y.y})},children:a.jsx(o,{ref:M1([h,t]),...u})})})),FE={x:"50",y:"50"},X9=d.memo(d.forwardRef((e,t)=>{const n=function({props:oe,name:ue}){return MS({props:oe,name:ue,defaultTheme:Y5,themeId:$5})}({props:e,name:"MuiDialog"}),o=J5(),r={enter:.66*o.transitions.duration.enteringScreen,exit:.66*o.transitions.duration.leavingScreen},{title:i="SheetXL",key:l="draggable-window",onCancel:c,onDone:s,onShow:u,onShown:h,onHide:f,open:p,autoFocusSel:m,children:g,TransitionComponent:x=B.Fade,TransitionProps:y,transitionDuration:w=r,BackdropComponent:b=B.Backdrop,BackdropProps:C,PaperComponent:_=B.Paper,PaperProps:E,onBackdropClick:M,sx:j,className:F,onMouseDown:k,initialPosition:O=FE,isModal:S=!1,...v}=n,I=d.useRef(null),[T,R]=d.useState(null),[A,D]=d.useState(!1),[L,V]=d.useState(!1),W=d.useRef(null),[P,U]=C6(),X=d.useRef(null),[ee,H]=C6(),$=d.useRef(null);d.useEffect(()=>{T&&D(p)},[p,T]);const z=pn(()=>{c?.(),D(!1)},[c]);d.useEffect(()=>{if(U.width===0&&U.height===0||T)return;const oe=$.current?.getBoundingClientRect(),ue=U.height-oe.height,De=U.width-oe.width;let ze=.5*De,mt=.5*ue;typeof O?.x=="number"?ze=O.x:typeof O?.x=="string"&&(ze=De*(parseFloat(O.x)/100)),typeof O?.y=="number"?mt=O.y:typeof O?.y=="string"&&(mt=ue*(parseFloat(O.y)/100)),R({x:ze,y:mt})},[U,H]);const[q,Z]=d.useState(!1),[Q,Y]=d.useState(null),[te,ie]=d.useState(null),fe=pn(oe=>{if(Q)return Q.focus(oe),!0;if(m){const ue=X.current?.querySelectorAll?.(m);if(ue&&ue.length>0)return ue[0]?.focus?.(oe),!0}return X.current?.focus?.(oe),!1},[Q,m]),J=md(t,()=>({focus:oe=>{fe(oe)}}),[]),ae={...y,onExited:oe=>{s?.(null),y?.onExited?.(oe)},onExit:oe=>{const ue=te;ue&&requestAnimationFrame(()=>{J.current?.contains(document.activeElement)&&ue.focus()}),f?.(),V(!1),y?.onExit?.(oe)},onEntered:(oe,ue)=>{u?.(),y?.onEntered?.(oe,ue)},onEntering:(oe,ue)=>{V(!0),h?.(J.current)}};d.useEffect(()=>{L&&fe()},[L]);const Ce=a.jsx(DE,{focusTrapOptions:{escapeDeactivates:!1,allowOutsideClick:!0,initialFocus:!1},ref:I,active:L,children:a.jsx(x,{in:A,timeout:w,role:"presentation",...ae,children:a.jsx(B.Box,{className:"MuiDialog-container",ref:X,tabIndex:0,sx:{outline:"none",position:"relative"},onKeyDown:oe=>{oe.which===$o.Escape&&(z(),W.current?.start(oe,{center:!1}),setTimeout(()=>W.current?.stop(oe),180)),oe.stopPropagation()},children:a.jsxs(AE,{ref:M1([$,t]),className:Oo({"Mui-focusVisible":q},F),sx:{"& *":oe=>c3(oe),pointerEvents:"auto",userSelect:"none","&:hover:not([disabled]):not(.Mui-focusVisible)":{outline:oe=>`solid ${ht.alpha(oe.palette.text?.primary,.2)} 1px`},"&.Mui-focusVisible":{outline:oe=>`solid ${ht.alpha(oe.palette.text?.primary,.2)} 1px`},position:"absolute",maxWidth:"100%",...j},defaultPosition:T,titleSize:H,rootSize:U,PaperComponent:_,...v,...E,children:[i?a.jsx(B.DialogTitle,{className:Oo({"Mui-selected":q},"draggable-title"),sx:{cursor:"move",display:"flex",color:oe=>oe.palette.text.secondary,boxSizing:"border-box",padding:"0 0",transitionProperty:"opacity",transitionDuration:oe=>`${oe.transitions.duration.shortest}ms`,opacity:.7,"&.Mui-selected":{opacity:1,transitionDuration:oe=>oe.transitions.duration.shortest/2+"ms"},backgroundColor:oe=>ht.alpha(oe.palette.action.hover,.03)},ref:ee,children:a.jsxs(B.Box,{sx:{display:"flex",flex:"1 1 10%",flexDirection:"row",alignItems:"center",marginTop:oe=>oe.spacing(1),marginLeft:oe=>oe.spacing(1),marginRight:oe=>oe.spacing(1)},children:[a.jsx(B.Box,{sx:{flex:"1 1 100%",paddingLeft:oe=>oe.spacing(1)},children:i}),a.jsx(Uo,{label:"Close",children:a.jsx(B.IconButton,{"aria-label":"close",sx:{color:oe=>oe.palette.text.icon??oe.palette.action.active},touchRippleRef:W,onPointerDown:oe=>{W.current?.start(oe,{center:!1}),oe.stopPropagation(),oe.preventDefault()},onPointerUp:z,children:a.jsx(gn.Close,{})})})]})}):null,g]})})})});let Me=null;S&&(Me=a.jsx(b,{...C,open:A,onMouseDown:oe=>{z(),C?.onMouseDown?.(oe)},onClick:oe=>{M?.(oe),C?.onClick?.(oe)},sx:{pointerEvents:"auto",...C?.sx}}));const{getPortalContainer:re}=o3();return ao.createPortal(a.jsxs(B.Box,{className:"MuiModal-root",sx:{position:"fixed",zIndex:"1300",right:"0",bottom:"0",top:"0",left:"0",outline:"0",display:"block",pointerEvents:"none"},ref:M1([J,P]),onPointerDown:oe=>{q&&(oe.target===X.current||oe.target.tabIndex<0)&&X.current?.contains(document.activeElement)},onContextMenu:oe=>{oe.isPropagationStopped()||oe.preventDefault()},onFocus:oe=>{!q&&(oe.target===X.current||oe.target.tabIndex<0)&&setTimeout(()=>{fe()},100),I.current?.focusTrap?.unpause(),Z(!0),X.current?.contains(oe.target)&&oe.target!==X.current&&Y(oe.target),oe.relatedTarget&&!te&&ie(oe.relatedTarget)},onBlur:oe=>{J?.current?.contains(oe.relatedTarget)||(ie(null),I.current?.focusTrap?.pause(),Z(!1))},children:[Me,Ce]}),re(),l+"")}));var $r=typeof window<"u"?window:{screen:{},navigator:{}},Bl=($r.matchMedia||function(){return{matches:!1}}).bind($r),zE={get passive(){return!0}},Q6=function(){};$r.addEventListener&&$r.addEventListener("p",Q6,zE),$r.removeEventListener&&$r.removeEventListener("p",Q6,!1);var u3="ontouchstart"in $r,BE=u3||"TouchEvent"in $r&&Bl("(any-pointer: coarse)").matches,e4=($r.navigator.maxTouchPoints||0)>0||BE,Y9=$r.navigator.userAgent||"",NE=Bl("(pointer: coarse)").matches&&/iPad|Macintosh/.test(Y9)&&Math.min($r.screen.width||0,$r.screen.height||0)>=768,J9=(Bl("(pointer: coarse)").matches||!Bl("(pointer: fine)").matches&&u3)&&!/Windows.*Firefox/.test(Y9),VE=Bl("(any-pointer: fine)").matches||Bl("(any-hover: hover)").matches||NE||!u3,t4=!e4||!VE&&J9?e4?"touchOnly":"mouseOnly":"hybrid",HE=t4==="mouseOnly"?"mouse":t4==="touchOnly"||J9?"touch":"mouse",es=e=>e.type==="checkbox",k0=e=>e instanceof Date,dr=e=>e==null;const Q9=e=>typeof e=="object";var Eo=e=>!dr(e)&&!Array.isArray(e)&&Q9(e)&&!k0(e),h3=typeof window<"u"&&window.HTMLElement!==void 0&&typeof document<"u";function Go(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(h3&&(e instanceof Blob||o)||!n&&!Eo(e))return e;if(t=n?[]:{},n||(r=>{const i=r.constructor&&r.constructor.prototype;return Eo(i)&&i.hasOwnProperty("isPrototypeOf")})(e))for(const r in e)e.hasOwnProperty(r)&&(t[r]=Go(e[r]));else t=e}return t}var xd=e=>/^\w*$/.test(e),Mo=e=>e===void 0,X2=e=>Array.isArray(e)?e.filter(Boolean):[],p3=e=>X2(e.replace(/["|']|\]/g,"").split(/\.|\[/)),zt=(e,t,n)=>{if(!t||!Eo(e))return n;const o=(xd(t)?[t]:p3(t)).reduce((r,i)=>dr(r)?r:r[i],e);return Mo(o)||o===e?Mo(e[t])?n:e[t]:o},pi=e=>typeof e=="boolean",eo=(e,t,n)=>{let o=-1;const r=xd(t)?[t]:p3(t),i=r.length,l=i-1;for(;++o<i;){const c=r[o];let s=n;if(o!==l){const u=e[c];s=Eo(u)||Array.isArray(u)?u:isNaN(+r[o+1])?{}:[]}if(c==="__proto__"||c==="constructor"||c==="prototype")return;e[c]=s,e=e[c]}};const eg="onChange",tg="onSubmit",xs="all",n4="pattern",o4="required",ng=d.createContext(null);ng.displayName="HookFormContext";const $E=e=>{const{children:t,...n}=e;return d.createElement(ng.Provider,{value:n},t)},WE=typeof window<"u"?o0.useLayoutEffect:o0.useEffect;var mi=e=>typeof e=="string",UE=(e,t,n,o,r)=>t?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[o]:r||!0}}:{},Va=e=>Array.isArray(e)?e:[e],r4=()=>{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=[]}}},Y2=e=>dr(e)||!Q9(e);function e0(e,t){if(Y2(e)||Y2(t))return e===t;if(k0(e)&&k0(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(k0(i)&&k0(l)||Eo(i)&&Eo(l)||Array.isArray(i)&&Array.isArray(l)?!e0(i,l):i!==l)return!1}}return!0}var mr=e=>Eo(e)&&!Object.keys(e).length,f3=e=>e.type==="file",ni=e=>typeof e=="function",P1=e=>{if(!h3)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},og=e=>e.type==="select-multiple",m3=e=>e.type==="radio",mu=e=>P1(e)&&e.isConnected;function Do(e,t){const n=Array.isArray(t)?t:xd(t)?[t]:p3(t),o=n.length===1?e:function(l,c){const s=c.slice(0,-1).length;let u=0;for(;u<s;)l=Mo(l)?u++:l[c[u++]];return l}(e,n),r=n.length-1,i=n[r];return o&&delete o[i],r!==0&&(Eo(o)&&mr(o)||Array.isArray(o)&&function(l){for(const c in l)if(l.hasOwnProperty(c)&&!Mo(l[c]))return!1;return!0}(o))&&Do(e,n.slice(0,-1)),e}var rg=e=>{for(const t in e)if(ni(e[t]))return!0;return!1};function A1(e,t={}){const n=Array.isArray(e);if(Eo(e)||n)for(const o in e)Array.isArray(e[o])||Eo(e[o])&&!rg(e[o])?(t[o]=Array.isArray(e[o])?[]:{},A1(e[o],t[o])):dr(e[o])||(t[o]=!0);return t}function ig(e,t,n){const o=Array.isArray(e);if(Eo(e)||o)for(const r in e)Array.isArray(e[r])||Eo(e[r])&&!rg(e[r])?Mo(t)||Y2(n[r])?n[r]=Array.isArray(e[r])?A1(e[r],[]):{...A1(e[r])}:ig(e[r],dr(t)?{}:t[r],n[r]):n[r]=!e0(e[r],t[r]);return n}var ya=(e,t)=>ig(e,t,A1(t));const i4={value:!1,isValid:!1},l4={value:!0,isValid:!0};var lg=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&&!Mo(e[0].attributes.value)?Mo(e[0].value)||e[0].value===""?l4:{value:e[0].value,isValid:!0}:l4:i4}return i4},ag=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:o})=>Mo(e)?e:t?e===""?NaN:e&&+e:n&&mi(e)?new Date(e):o?o(e):e;const a4={isValid:!1,value:null};var sg=e=>Array.isArray(e)?e.reduce((t,n)=>n&&n.checked&&!n.disabled?{isValid:!0,value:n.value}:t,a4):a4;function s4(e){const t=e.ref;return f3(t)?t.files:m3(t)?sg(e.refs).value:og(t)?[...t.selectedOptions].map(({value:n})=>n):es(t)?lg(e.refs).value:ag(Mo(t.value)?e.ref.value:t.value,e)}var F1=e=>e instanceof RegExp,ba=e=>Mo(e)?e:F1(e)?e.source:Eo(e)?F1(e.value)?e.value.source:e.value:e,c4=e=>({isOnSubmit:!e||e===tg,isOnBlur:e==="onBlur",isOnChange:e===eg,isOnAll:e===xs,isOnTouch:e==="onTouched"});const d4="AsyncFunction";var qE=e=>!!e&&!!e.validate&&!!(ni(e.validate)&&e.validate.constructor.name===d4||Eo(e.validate)&&Object.values(e.validate).find(t=>t.constructor.name===d4)),u4=(e,t,n)=>!n&&(t.watchAll||t.watch.has(e)||[...t.watch].some(o=>e.startsWith(o)&&/^\.\w+/.test(e.slice(o.length))));const ts=(e,t,n,o)=>{for(const r of n||Object.keys(e)){const i=zt(e,r);if(i){const{_f:l,...c}=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(ts(c,t))break}else if(Eo(c)&&ts(c,t))break}}};function h4(e,t,n){const o=zt(e,n);if(o||xd(n))return{error:o,name:n};const r=n.split(".");for(;r.length;){const i=r.join("."),l=zt(t,i),c=zt(e,i);if(l&&!Array.isArray(l)&&n!==i)return{name:n};if(c&&c.type)return{name:i,error:c};if(c&&c.root&&c.root.type)return{name:`${i}.root`,error:c.root};r.pop()}return{name:n}}var ZE=(e,t,n)=>{const o=Va(zt(e,n));return eo(o,"root",t[n]),eo(e,n,o),e},l1=e=>mi(e);function p4(e,t,n="validate"){if(l1(e)||Array.isArray(e)&&e.every(l1)||pi(e)&&!e)return{type:n,message:l1(e)?e:"",ref:t}}var tl=e=>Eo(e)&&!F1(e)?e:{value:e,message:""},f4=async(e,t,n,o,r,i)=>{const{ref:l,refs:c,required:s,maxLength:u,minLength:h,min:f,max:p,pattern:m,validate:g,name:x,valueAsNumber:y,mount:w}=e._f,b=zt(n,x);if(!w||t.has(x))return{};const C=c?c[0]:l,_=v=>{r&&C.reportValidity&&(C.setCustomValidity(pi(v)?"":v||""),C.reportValidity())},E={},M=m3(l),j=es(l),F=M||j,k=(y||f3(l))&&Mo(l.value)&&Mo(b)||P1(l)&&l.value===""||b===""||Array.isArray(b)&&!b.length,O=UE.bind(null,x,o,E),S=(v,I,T,R="maxLength",A="minLength")=>{const D=v?I:T;E[x]={type:v?R:A,message:D,ref:l,...O(v?R:A,D)}};if(i?!Array.isArray(b)||!b.length:s&&(!F&&(k||dr(b))||pi(b)&&!b||j&&!lg(c).isValid||M&&!sg(c).isValid)){const{value:v,message:I}=l1(s)?{value:!!s,message:s}:tl(s);if(v&&(E[x]={type:o4,message:I,ref:C,...O(o4,I)},!o))return _(I),E}if(!(k||dr(f)&&dr(p))){let v,I;const T=tl(p),R=tl(f);if(dr(b)||isNaN(b)){const A=l.valueAsDate||new Date(b),D=W=>new Date(new Date().toDateString()+" "+W),L=l.type=="time",V=l.type=="week";mi(T.value)&&b&&(v=L?D(b)>D(T.value):V?b>T.value:A>new Date(T.value)),mi(R.value)&&b&&(I=L?D(b)<D(R.value):V?b<R.value:A<new Date(R.value))}else{const A=l.valueAsNumber||b&&+b;dr(T.value)||(v=A>T.value),dr(R.value)||(I=A<R.value)}if((v||I)&&(S(!!v,T.message,R.message,"max","min"),!o))return _(E[x].message),E}if((u||h)&&!k&&(mi(b)||i&&Array.isArray(b))){const v=tl(u),I=tl(h),T=!dr(v.value)&&b.length>+v.value,R=!dr(I.value)&&b.length<+I.value;if((T||R)&&(S(T,v.message,I.message),!o))return _(E[x].message),E}if(m&&!k&&mi(b)){const{value:v,message:I}=tl(m);if(F1(v)&&!b.match(v)&&(E[x]={type:n4,message:I,ref:l,...O(n4,I)},!o))return _(I),E}if(g){if(ni(g)){const v=p4(await g(b,n),C);if(v&&(E[x]={...v,...O("validate",v.message)},!o))return _(v.message),E}else if(Eo(g)){let v={};for(const I in g){if(!mr(v)&&!o)break;const T=p4(await g[I](b,n),C,I);T&&(v={...T,...O(I,T.message)},_(T.message),o&&(E[x]=v))}if(!mr(v)&&(E[x]={ref:C,...v},!o))return E}}return _(!0),E};const GE={mode:tg,reValidateMode:eg,shouldFocusError:!0};function KE(e={}){let t={...GE,...e},n={submitCount:0,isDirty:!1,isReady:!1,isLoading:ni(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=(Eo(t.defaultValues)||Eo(t.values))&&Go(t.defaultValues||t.values)||{},l=t.shouldUnregister?{}:Go(i),c={action:!1,mount:!1,watch:!1},s={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set},u=0;const h={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1};let f={...h};const p={array:r4(),state:r4()},m=t.criteriaMode===xs,g=async H=>{if(!t.disabled&&(h.isValid||f.isValid||H)){const $=t.resolver?mr((await b()).errors):await C(o,!0);$!==n.isValid&&p.state.next({isValid:$})}},x=(H,$)=>{!t.disabled&&(h.isValidating||h.validatingFields||f.isValidating||f.validatingFields)&&((H||Array.from(s.mount)).forEach(z=>{z&&($?eo(n.validatingFields,z,$):Do(n.validatingFields,z))}),p.state.next({validatingFields:n.validatingFields,isValidating:!mr(n.validatingFields)}))},y=(H,$,z,q)=>{const Z=zt(o,H);if(Z){const Q=zt(l,H,Mo(z)?zt(i,H):z);Mo(Q)||q&&q.defaultChecked||$?eo(l,H,$?Q:s4(Z._f)):M(H,Q),c.mount&&g()}},w=(H,$,z,q,Z)=>{let Q=!1,Y=!1;const te={name:H};if(!t.disabled){if(!z||q){(h.isDirty||f.isDirty)&&(Y=n.isDirty,n.isDirty=te.isDirty=_(),Q=Y!==te.isDirty);const ie=e0(zt(i,H),$);Y=!!zt(n.dirtyFields,H),ie?Do(n.dirtyFields,H):eo(n.dirtyFields,H,!0),te.dirtyFields=n.dirtyFields,Q=Q||(h.dirtyFields||f.dirtyFields)&&Y!==!ie}if(z){const ie=zt(n.touchedFields,H);ie||(eo(n.touchedFields,H,z),te.touchedFields=n.touchedFields,Q=Q||(h.touchedFields||f.touchedFields)&&ie!==z)}Q&&Z&&p.state.next(te)}return Q?te:{}},b=async H=>{x(H,!0);const $=await t.resolver(l,t.context,((z,q,Z,Q)=>{const Y={};for(const te of z){const ie=zt(q,te);ie&&eo(Y,te,ie._f)}return{criteriaMode:Z,names:[...z],fields:Y,shouldUseNativeValidation:Q}})(H||s.mount,o,t.criteriaMode,t.shouldUseNativeValidation));return x(H),$},C=async(H,$,z={valid:!0})=>{for(const q in H){const Z=H[q];if(Z){const{_f:Q,...Y}=Z;if(Q){const te=s.array.has(Q.name),ie=Z._f&&qE(Z._f);ie&&h.validatingFields&&x([q],!0);const fe=await f4(Z,s.disabled,l,m,t.shouldUseNativeValidation&&!$,te);if(ie&&h.validatingFields&&x([q]),fe[Q.name]&&(z.valid=!1,$))break;!$&&(zt(fe,Q.name)?te?ZE(n.errors,fe,Q.name):eo(n.errors,Q.name,fe[Q.name]):Do(n.errors,Q.name))}!mr(Y)&&await C(Y,$,z)}}return z.valid},_=(H,$)=>!t.disabled&&(H&&$&&eo(l,H,$),!e0(v(),i)),E=(H,$,z)=>((q,Z,Q,Y,te)=>mi(q)?(Y&&Z.watch.add(q),zt(Q,q,te)):Array.isArray(q)?q.map(ie=>(Y&&Z.watch.add(ie),zt(Q,ie))):(Y&&(Z.watchAll=!0),Q))(H,s,{...c.mount?l:Mo($)?i:mi(H)?{[H]:$}:$},z,$),M=(H,$,z={})=>{const q=zt(o,H);let Z=$;if(q){const Q=q._f;Q&&(!Q.disabled&&eo(l,H,ag($,Q)),Z=P1(Q.ref)&&dr($)?"":$,og(Q.ref)?[...Q.ref.options].forEach(Y=>Y.selected=Z.includes(Y.value)):Q.refs?es(Q.ref)?Q.refs.forEach(Y=>{Y.defaultChecked&&Y.disabled||(Array.isArray(Z)?Y.checked=!!Z.find(te=>te===Y.value):Y.checked=Z===Y.value||!!Z)}):Q.refs.forEach(Y=>Y.checked=Y.value===Z):f3(Q.ref)?Q.ref.value="":(Q.ref.value=Z,Q.ref.type||p.state.next({name:H,values:Go(l)})))}(z.shouldDirty||z.shouldTouch)&&w(H,Z,z.shouldTouch,z.shouldDirty,!0),z.shouldValidate&&S(H)},j=(H,$,z)=>{for(const q in $){if(!$.hasOwnProperty(q))return;const Z=$[q],Q=H+"."+q,Y=zt(o,Q);(s.array.has(H)||Eo(Z)||Y&&!Y._f)&&!k0(Z)?j(Q,Z,z):M(Q,Z,z)}},F=(H,$,z={})=>{const q=zt(o,H),Z=s.array.has(H),Q=Go($);eo(l,H,Q),Z?(p.array.next({name:H,values:Go(l)}),(h.isDirty||h.dirtyFields||f.isDirty||f.dirtyFields)&&z.shouldDirty&&p.state.next({name:H,dirtyFields:ya(i,l),isDirty:_(H,Q)})):!q||q._f||dr(Q)?M(H,Q,z):j(H,Q,z),u4(H,s)&&p.state.next({...n}),p.state.next({name:c.mount?H:void 0,values:Go(l)})},k=async H=>{c.mount=!0;const $=H.target;let z=$.name,q=!0;const Z=zt(o,z),Q=fe=>{q=Number.isNaN(fe)||k0(fe)&&isNaN(fe.getTime())||e0(fe,zt(l,z,fe))},Y=c4(t.mode),te=c4(t.reValidateMode);if(Z){let fe,J;const ae=$.type?s4(Z._f):Eo(ie=H)&&ie.target?es(ie.target)?ie.target.checked:ie.target.value:ie,Ce=H.type==="blur"||H.type==="focusout",Me=!(De=>De.mount&&(De.required||De.min||De.max||De.maxLength||De.minLength||De.pattern||De.validate))(Z._f)&&!t.resolver&&!zt(n.errors,z)&&!Z._f.deps||((De,ze,mt,bt,ve)=>!ve.isOnAll&&(!mt&&ve.isOnTouch?!(ze||De):(mt?bt.isOnBlur:ve.isOnBlur)?!De:!(mt?bt.isOnChange:ve.isOnChange)||De))(Ce,zt(n.touchedFields,z),n.isSubmitted,te,Y),re=u4(z,s,Ce);eo(l,z,ae),Ce?(Z._f.onBlur&&Z._f.onBlur(H),r&&r(0)):Z._f.onChange&&Z._f.onChange(H);const oe=w(z,ae,Ce),ue=!mr(oe)||re;if(!Ce&&p.state.next({name:z,type:H.type,values:Go(l)}),Me)return(h.isValid||f.isValid)&&(t.mode==="onBlur"?Ce&&g():Ce||g()),ue&&p.state.next({name:z,...re?{}:oe});if(!Ce&&re&&p.state.next({...n}),t.resolver){const{errors:De}=await b([z]);if(Q(ae),q){const ze=h4(n.errors,o,z),mt=h4(De,o,ze.name||z);fe=mt.error,z=mt.name,J=mr(De)}}else x([z],!0),fe=(await f4(Z,s.disabled,l,m,t.shouldUseNativeValidation))[z],x([z]),Q(ae),q&&(fe?J=!1:(h.isValid||f.isValid)&&(J=await C(o,!0)));q&&(Z._f.deps&&S(Z._f.deps),((De,ze,mt,bt)=>{const ve=zt(n.errors,De),dt=(h.isValid||f.isValid)&&pi(ze)&&n.isValid!==ze;var xt;if(t.delayError&&mt?(xt=()=>((Ne,vt)=>{eo(n.errors,Ne,vt),p.state.next({errors:n.errors})})(De,mt),r=Ne=>{clearTimeout(u),u=setTimeout(xt,Ne)},r(t.delayError)):(clearTimeout(u),r=null,mt?eo(n.errors,De,mt):Do(n.errors,De)),(mt?!e0(ve,mt):ve)||!mr(bt)||dt){const Ne={...bt,...dt&&pi(ze)?{isValid:ze}:{},errors:n.errors,name:De};n={...n,...Ne},p.state.next(Ne)}})(z,J,fe,oe))}var ie},O=(H,$)=>{if(zt(n.errors,$)&&H.focus)return H.focus(),1},S=async(H,$={})=>{let z,q;const Z=Va(H);if(t.resolver){const Q=await(async Y=>{const{errors:te}=await b(Y);if(Y)for(const ie of Y){const fe=zt(te,ie);fe?eo(n.errors,ie,fe):Do(n.errors,ie)}else n.errors=te;return te})(Mo(H)?H:Z);z=mr(Q),q=H?!Z.some(Y=>zt(Q,Y)):z}else H?(q=(await Promise.all(Z.map(async Q=>{const Y=zt(o,Q);return await C(Y&&Y._f?{[Q]:Y}:Y)}))).every(Boolean),(q||n.isValid)&&g()):q=z=await C(o);return p.state.next({...!mi(H)||(h.isValid||f.isValid)&&z!==n.isValid?{}:{name:H},...t.resolver||!H?{isValid:z}:{},errors:n.errors}),$.shouldFocus&&!q&&ts(o,O,H?Z:s.mount),q},v=H=>{const $={...c.mount?l:i};return Mo(H)?$:mi(H)?zt($,H):H.map(z=>zt($,z))},I=(H,$)=>({invalid:!!zt(($||n).errors,H),isDirty:!!zt(($||n).dirtyFields,H),error:zt(($||n).errors,H),isValidating:!!zt(n.validatingFields,H),isTouched:!!zt(($||n).touchedFields,H)}),T=(H,$,z)=>{const q=(zt(o,H,{_f:{}})._f||{}).ref,Z=zt(n.errors,H)||{},{ref:Q,message:Y,type:te,...ie}=Z;eo(n.errors,H,{...ie,...$,ref:q}),p.state.next({name:H,errors:n.errors,isValid:!1}),z&&z.shouldFocus&&q&&q.focus&&q.focus()},R=H=>p.state.subscribe({next:$=>{var z,q,Z;z=H.name,q=$.name,Z=H.exact,z&&q&&z!==q&&!Va(z).some(Q=>Q&&(Z?Q===q:Q.startsWith(q)||q.startsWith(Q)))||!((Q,Y,te,ie)=>{te(Q);const{name:fe,...J}=Q;return mr(J)||Object.keys(J).length>=Object.keys(Y).length||Object.keys(J).find(ae=>Y[ae]===(!ie||xs))})($,H.formState||h,X,H.reRenderRoot)||H.callback({values:{...l},...n,...$})}}).unsubscribe,A=(H,$={})=>{for(const z of H?Va(H):s.mount)s.mount.delete(z),s.array.delete(z),$.keepValue||(Do(o,z),Do(l,z)),!$.keepError&&Do(n.errors,z),!$.keepDirty&&Do(n.dirtyFields,z),!$.keepTouched&&Do(n.touchedFields,z),!$.keepIsValidating&&Do(n.validatingFields,z),!t.shouldUnregister&&!$.keepDefaultValue&&Do(i,z);p.state.next({values:Go(l)}),p.state.next({...n,...$.keepDirty?{isDirty:_()}:{}}),!$.keepIsValid&&g()},D=({disabled:H,name:$})=>{(pi(H)&&c.mount||H||s.disabled.has($))&&(H?s.disabled.add($):s.disabled.delete($))},L=(H,$={})=>{let z=zt(o,H);const q=pi($.disabled)||pi(t.disabled);return eo(o,H,{...z||{},_f:{...z&&z._f?z._f:{ref:{name:H}},name:H,mount:!0,...$}}),s.mount.add(H),z?D({disabled:pi($.disabled)?$.disabled:t.disabled,name:H}):y(H,!0,$.value),{...q?{disabled:$.disabled||t.disabled}:{},...t.progressive?{required:!!$.required,min:ba($.min),max:ba($.max),minLength:ba($.minLength),maxLength:ba($.maxLength),pattern:ba($.pattern)}:{},name:H,onChange:k,onBlur:k,ref:Z=>{if(Z){L(H,$),z=zt(o,H);const Q=Mo(Z.value)&&Z.querySelectorAll&&Z.querySelectorAll("input,select,textarea")[0]||Z,Y=(ie=>m3(ie)||es(ie))(Q),te=z._f.refs||[];if(Y?te.find(ie=>ie===Q):Q===z._f.ref)return;eo(o,H,{_f:{...z._f,...Y?{refs:[...te.filter(mu),Q,...Array.isArray(zt(i,H))?[{}]:[]],ref:{type:Q.type,name:H}}:{ref:Q}}}),y(H,!1,void 0,Q)}else z=zt(o,H,{}),z._f&&(z._f.mount=!1),(t.shouldUnregister||$.shouldUnregister)&&(!((Q,Y)=>Q.has((te=>te.substring(0,te.search(/\.\d+(\.|$)/))||te)(Y)))(s.array,H)||!c.action)&&s.unMount.add(H)}}},V=()=>t.shouldFocusError&&ts(o,O,s.mount),W=(H,$)=>async z=>{let q;z&&(z.preventDefault&&z.preventDefault(),z.persist&&z.persist());let Z=Go(l);if(p.state.next({isSubmitting:!0}),t.resolver){const{errors:Q,values:Y}=await b();n.errors=Q,Z=Y}else await C(o);if(s.disabled.size)for(const Q of s.disabled)eo(Z,Q,void 0);if(Do(n.errors,"root"),mr(n.errors)){p.state.next({errors:{}});try{await H(Z,z)}catch(Q){q=Q}}else $&&await $({...n.errors},z),V(),setTimeout(V);if(p.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:mr(n.errors)&&!q,submitCount:n.submitCount+1,errors:n.errors}),q)throw q},P=(H,$={})=>{const z=H?Go(H):i,q=Go(z),Z=mr(H),Q=Z?i:q;if($.keepDefaultValues||(i=z),!$.keepValues){if($.keepDirtyValues){const Y=new Set([...s.mount,...Object.keys(ya(i,l))]);for(const te of Array.from(Y))zt(n.dirtyFields,te)?eo(Q,te,zt(l,te)):F(te,zt(Q,te))}else{if(h3&&Mo(H))for(const Y of s.mount){const te=zt(o,Y);if(te&&te._f){const ie=Array.isArray(te._f.refs)?te._f.refs[0]:te._f.ref;if(P1(ie)){const fe=ie.closest("form");if(fe){fe.reset();break}}}}for(const Y of s.mount)F(Y,zt(Q,Y))}l=Go(Q),p.array.next({values:{...Q}}),p.state.next({values:{...Q}})}s={mount:$.keepDirtyValues?s.mount:new Set,unMount:new Set,array:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},c.mount=!h.isValid||!!$.keepIsValid||!!$.keepDirtyValues,c.watch=!!t.shouldUnregister,p.state.next({submitCount:$.keepSubmitCount?n.submitCount:0,isDirty:!Z&&($.keepDirty?n.isDirty:!(!$.keepDefaultValues||e0(H,i))),isSubmitted:!!$.keepIsSubmitted&&n.isSubmitted,dirtyFields:Z?{}:$.keepDirtyValues?$.keepDefaultValues&&l?ya(i,l):n.dirtyFields:$.keepDefaultValues&&H?ya(i,H):$.keepDirty?n.dirtyFields:{},touchedFields:$.keepTouched?n.touchedFields:{},errors:$.keepErrors?n.errors:{},isSubmitSuccessful:!!$.keepIsSubmitSuccessful&&n.isSubmitSuccessful,isSubmitting:!1})},U=(H,$)=>P(ni(H)?H(l):H,$),X=H=>{n={...n,...H}},ee={control:{register:L,unregister:A,getFieldState:I,handleSubmit:W,setError:T,_subscribe:R,_runSchema:b,_focusError:V,_getWatch:E,_getDirty:_,_setValid:g,_setFieldArray:(H,$=[],z,q,Z=!0,Q=!0)=>{if(q&&z&&!t.disabled){if(c.action=!0,Q&&Array.isArray(zt(o,H))){const Y=z(zt(o,H),q.argA,q.argB);Z&&eo(o,H,Y)}if(Q&&Array.isArray(zt(n.errors,H))){const Y=z(zt(n.errors,H),q.argA,q.argB);Z&&eo(n.errors,H,Y),((te,ie)=>{!X2(zt(te,ie)).length&&Do(te,ie)})(n.errors,H)}if((h.touchedFields||f.touchedFields)&&Q&&Array.isArray(zt(n.touchedFields,H))){const Y=z(zt(n.touchedFields,H),q.argA,q.argB);Z&&eo(n.touchedFields,H,Y)}(h.dirtyFields||f.dirtyFields)&&(n.dirtyFields=ya(i,l)),p.state.next({name:H,isDirty:_(H,$),dirtyFields:n.dirtyFields,errors:n.errors,isValid:n.isValid})}else eo(l,H,$)},_setDisabledField:D,_setErrors:H=>{n.errors=H,p.state.next({errors:n.errors,isValid:!1})},_getFieldArray:H=>X2(zt(c.mount?l:i,H,t.shouldUnregister?zt(i,H,[]):[])),_reset:P,_resetDefaultValues:()=>ni(t.defaultValues)&&t.defaultValues().then(H=>{U(H,t.resetOptions),p.state.next({isLoading:!1})}),_removeUnmounted:()=>{for(const H of s.unMount){const $=zt(o,H);$&&($._f.refs?$._f.refs.every(z=>!mu(z)):!mu($._f.ref))&&A(H)}s.unMount=new Set},_disableForm:H=>{pi(H)&&(p.state.next({disabled:H}),ts(o,($,z)=>{const q=zt(o,z);q&&($.disabled=q._f.disabled||H,Array.isArray(q._f.refs)&&q._f.refs.forEach(Z=>{Z.disabled=q._f.disabled||H}))},0,!1))},_subjects:p,_proxyFormState:h,get _fields(){return o},get _formValues(){return l},get _state(){return c},set _state(H){c=H},get _defaultValues(){return i},get _names(){return s},set _names(H){s=H},get _formState(){return n},get _options(){return t},set _options(H){t={...t,...H}}},subscribe:H=>(c.mount=!0,f={...f,...H.formState},R({...H,formState:f})),trigger:S,register:L,handleSubmit:W,watch:(H,$)=>ni(H)?p.state.subscribe({next:z=>H(E(void 0,$),z)}):E(H,$,!0),setValue:F,getValues:v,reset:U,resetField:(H,$={})=>{zt(o,H)&&(Mo($.defaultValue)?F(H,Go(zt(i,H))):(F(H,$.defaultValue),eo(i,H,Go($.defaultValue))),$.keepTouched||Do(n.touchedFields,H),$.keepDirty||(Do(n.dirtyFields,H),n.isDirty=$.defaultValue?_(H,Go(zt(i,H))):_()),$.keepError||(Do(n.errors,H),h.isValid&&g()),p.state.next({...n}))},clearErrors:H=>{H&&Va(H).forEach($=>Do(n.errors,$)),p.state.next({errors:H?n.errors:{}})},unregister:A,setError:T,setFocus:(H,$={})=>{const z=zt(o,H),q=z&&z._f;if(q){const Z=q.refs?q.refs[0]:q.ref;Z.focus&&(Z.focus(),$.shouldSelect&&ni(Z.select)&&Z.select())}},getFieldState:I};return{...ee,formControl:ee}}const XE=["Ok","Cancel"],J2=d.memo(d.forwardRef((e,t)=>{const{description:n,icon:o,onCancel:r,onOption:i,onDone:l,onValidateOption:c,createOptionsButton:s,options:u=XE,autoFocusSel:h=".defaultOption",defaultOption:f=u[0],cancelOption:p="Cancel",children:m,...g}=e,x=function(S={}){const v=d.useRef(void 0),I=d.useRef(void 0),[T,R]=d.useState({isDirty:!1,isValidating:!1,isLoading:ni(S.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:S.errors||{},disabled:S.disabled||!1,isReady:!1,defaultValues:ni(S.defaultValues)?void 0:S.defaultValues});if(!v.current)if(S.formControl)v.current={...S.formControl,formState:T},S.defaultValues&&!ni(S.defaultValues)&&S.formControl.reset(S.defaultValues,S.resetOptions);else{const{formControl:D,...L}=KE(S);v.current={...L,formState:T}}const A=v.current.control;return A._options=S,WE(()=>{const D=A._subscribe({formState:A._proxyFormState,callback:()=>R({...A._formState}),reRenderRoot:!0});return R(L=>({...L,isReady:!0})),A._formState.isReady=!0,D},[A]),d.useEffect(()=>A._disableForm(S.disabled),[A,S.disabled]),d.useEffect(()=>{S.mode&&(A._options.mode=S.mode),S.reValidateMode&&(A._options.reValidateMode=S.reValidateMode)},[A,S.mode,S.reValidateMode]),d.useEffect(()=>{S.errors&&(A._setErrors(S.errors),A._focusError())},[A,S.errors]),d.useEffect(()=>{S.shouldUnregister&&A._subjects.state.next({values:A._getWatch()})},[A,S.shouldUnregister]),d.useEffect(()=>{if(A._proxyFormState.isDirty){const D=A._getDirty();D!==T.isDirty&&A._subjects.state.next({isDirty:D})}},[A,T.isDirty]),d.useEffect(()=>{S.values&&!e0(S.values,I.current)?(A._reset(S.values,A._options.resetOptions),I.current=S.values,R(D=>({...D}))):A._resetDefaultValues()},[A,S.values]),d.useEffect(()=>{A._state.mount||(A._setValid(),A._state.mount=!0),A._state.watch&&(A._state.watch=!1,A._subjects.state.next({...A._formState})),A._removeUnmounted()}),v.current.formState=((D,L,V,W=!0)=>{const P={defaultValues:L._defaultValues};for(const U in D)Object.defineProperty(P,U,{get:()=>{const X=U;return L._proxyFormState[X]!==xs&&(L._proxyFormState[X]=!W||xs),D[X]}});return P})(T,A),v.current}({shouldUseNativeValidation:!1}),{handleSubmit:y,formState:w}=x,b=d.useRef(null),C=d.useRef(null),_=d.useRef(null),E=pn(async S=>{let v;try{if(v=await Promise.resolve(c?.(S))??!0,v!==!0)return;await Promise.resolve(i?.(S,S===p,S===f)),l?.(S)}catch{}},[i,l,c,p,f]),M=pn((S,v)=>{setTimeout(()=>{E(f)},180)},[E]),j=pn(()=>{i?.(p,!0,!1),r?.(),l?.(null)},[i,p,r,l]),F=w&&(Object.keys(w.errors).length>0||w.disabled||w.isSubmitted),k=pn((S,v)=>{const I=S===p,T={className:v?"defaultOption":"action",type:v?"submit":"button",style:{minWidth:"75px"},onClick:()=>{I?j():v||E(S)}};if(s)return s(S,T,v);const R={className:v?"defaultOption":"action",variant:v?"contained":"outlined",size:"small",disabled:!I&&F,color:"primary",...T};if(v||I){const A=v?b:C;R.touchRippleRef=A,R.onPointerDown=D=>{A.current?.start(D,{center:!1}),D.stopPropagation(),D.preventDefault()}}return a.jsx(B.Button,{...R,children:a.jsx("div",{style:{paddingTop:"3px"},children:S})},`action:${S}`)},[u,f,p,s,w]),O=d.useMemo(()=>{const S=[];for(let v=0;v<u.length;v++){const I=u[v],T=f?I===f:v===0;S.push(k(I,T))}return S},[u,f,w]);return a.jsx(X9,{onCancel:j,initialPosition:{y:HE==="touch"?"15":"35"},onDone:l,autoFocusSel:h,isModal:!0,ref:t,PaperProps:{},...g,children:a.jsx($E,{...x,children:a.jsxs("form",{ref:_,onSubmit:y(M),children:[a.jsx(B.DialogContent,{dividers:!0,onKeyDown:S=>{if(S.isDefaultPrevented())return;S.stopPropagation();let v=null,I=null;const T=S.which===$o.Escape&&p;if(T)v=p,I=C;else{if(F)return;S.which===$o.Enter&&(v=f??u[0],I=b)}v&&(I.current?.start(S,{center:!1}),setTimeout(()=>{I.current?.stop(S),T&&E(v)},180))},children:a.jsxs(B.Box,{sx:{display:"flex",flexDirection:"column",whiteSpace:"pre-wrap",rowGap:S=>S.spacing(o||n?1.5:0)},children:[a.jsxs(B.Box,{sx:{display:"flex",flexDirection:"column"},children:[o,n]}),m]})}),a.jsx(B.DialogActions,{sx:{paddingTop:S=>S.spacing(1),paddingBottom:S=>S.spacing(1),paddingLeft:S=>S.spacing(1),paddingRight:S=>S.spacing(1),backgroundColor:S=>ht.alpha(S.palette.action.hover,.03)},children:O})]})})})})),YE=Object.freeze(Object.defineProperty({__proto__:null,OptionsDialog:J2,default:J2},Symbol.toStringTag,{value:"Module"})),JE=d.lazy(()=>Promise.resolve().then(()=>YE)),QE=d.lazy(()=>Promise.resolve().then(()=>require("./B9LTfguTHj9uQv3h.cjs"))),Zl=d.memo(d.forwardRef((e,t)=>{const{command:n,disabled:o=!1,shortcut:r,children:i,...l}=e;return r3(n),a.jsx(Uo,{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})})})),je=d.memo(d.forwardRef((e,t)=>{const{command:n,commandHook:o,scope:r,context:i,icon:l,label:c,disabled:s=!1,variant:u=Vr.Toolbar,shortcut:h,commandState:f,tooltipProps:p,...m}=e,g=d.useRef(null),x=d.useRef(!1),y=d.useMemo(()=>{const F={onExecute(k,O){o?.onExecute?.(k,O),x.current||(g.current?.start({center:!1}),setTimeout(()=>g.current?.stop({}),180)),x.current=!1},onError(k,O,S){o?.onError(k,O,S)}};return o?.beforeExecute&&(F.beforeExecute=o.beforeExecute),F},[o]),w=r3(n,y),b=d.useCallback(F=>{F.button===0&&F.preventDefault()},[]),C=d.useCallback(F=>{F.button===0&&n?.execute(f,o)},[w,o,f]),_=d.useCallback(F=>{F.keyCode!==$o.Enter&&F.keyCode!==$o.Space||n?.execute(f,o)},[w,o,f]),E=d.useMemo(()=>l||u===Vr.Toolbar||n?.state()?typeof l=="function"?l(n):l:gd,[w,l]),M=d.useMemo(()=>({tabIndex:0,ref:t,selected:n?.state(),icon:u===Vr.Toolbar?E:a.jsx(Vs,{selected:n?.state()??!1,children:E}),touchRippleRef:g,disabled:s||!n||n.disabled(),onMouseDown:b,onMouseUp:C,onKeyDown:_}),[w,o,s,E]);let j;return j=u===Vr.Menuitem?a.jsx(yr,{...m,chips:n?.tags(),...M,children:c??n?.label(r,i)}):a.jsx(Tr,{...m,...M}),(c||n?.label())&&((n.disabled()||s)&&(j=a.jsx("div",{children:j})),j=a.jsx(Zl,{command:n,placement:u===Vr.Toolbar?"bottom-start":"right-start",shortcut:h,...p,children:j})),j})),ek=d.memo(d.forwardRef((e,t)=>{const{command:n,scope:o,icon:r=gd,label:i,variant:l=Vr.Toolbar,disabled:c=!1,commandHook:s,...u}=e,h=d.useRef(null),f=d.useRef(!1),p=d.useMemo(()=>{const j={onExecute(F,k){s?.onExecute?.(F,k),f.current||(h.current?.start({center:!1}),setTimeout(()=>h.current?.stop({}),180)),f.current=!1},onError(F,k,O){s?.onError(F,k,O)}};return s?.beforeExecute&&(j.beforeExecute=s.beforeExecute),j},[s]),m=r3(n,p),g=()=>n?.state()?.toString()||"0",[x,y]=d.useState(g),w=pn(()=>{const j=parseFloat(x);isNaN(j)?y(g()):parseFloat(g())!==j&&n.execute(j,s)},[g,n,x,s]);d.useEffect(()=>{y(g())},[n?.state()]);const b=d.useMemo(()=>typeof r=="function"?r(n):r,[m,r]),C=d.useMemo(()=>i===void 0?n?.label(o):typeof i=="function"?i():i,[m]),_=d.useMemo(()=>a.jsx(B.IconButton,{...u,sx:{paddingTop:"0px",paddingBottom:"0px"},component:"div",disableRipple:!0,onClick:j=>j.stopPropagation(),onMouseDown:j=>{j.button===0&&j.stopPropagation()},onMouseUp:j=>{j.button===0&&j.stopPropagation()},children:a.jsx(B.Input,{inputMode:"numeric",disabled:c||!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:j=>`${Math.round(j.typography.fontSize)}px`,width:j=>"3.2em",input:{padding:"0 0",textAlign:"center",MozAppearance:"textfield"},"input::-webkit-inner-spin-button":{WebkitAppearance:"none",margin:"0"},minHeight:"24px"},value:x,onFocus:j=>{j.target?.select()},onKeyDown:j=>{if(j.which===$o.Enter)g()!==x&&(j.stopPropagation(),j.preventDefault(),w());else if(j.which===$o.Escape)g()!==x&&(y(g()),setTimeout(()=>{j.target?.select()},0),j.stopPropagation(),j.preventDefault());else{if(j.key.match("[-]")||j.key.match("[0-9.]")&&(x+j.key).length>4)return j.stopPropagation(),void j.preventDefault();if(j.which===$o.Space)return void j.preventDefault()}},onBlur:()=>{w()},onChange:j=>{if(j.target.value.length>4)return j.stopPropagation(),void j.preventDefault();y(j.target.value)}})}),[x,c,n]),E={tabIndex:0,ref:t,icon:b,touchRippleRef:h,disabled:c||!n||n.disabled(),onMouseDown:j=>{j.button===0&&j.preventDefault()},onMouseUp:j=>{j.button!==0||j.isPropagationStopped()||j.isDefaultPrevented()||j.isDefaultPrevented()||(j.preventDefault(),n?.execute(!n?.state?.(),p))},onKeyDown:j=>{j.keyCode!==$o.Enter&&j.keyCode!==$o.Space||n?.execute(!n?.state?.(),p)}};let M;return M=l===Vr.Menuitem?a.jsxs(yr,{...u,chips:n?.tags(),...E,children:[C,_]}):a.jsx(Tr,{...u,...E}),n?.label()&&((n.disabled()||c)&&(M=a.jsx("div",{children:M})),M=a.jsx(Zl,{command:n,placement:l===Vr.Toolbar?"bottom-start":"right-start",children:M})),M})),An=d.memo(d.forwardRef((e,t)=>{const{variant:n=Vr.Toolbar,quickCommand:o,onQuickClick:r,commands:i,commandState:l,commandHook:c,disabled:s,label:u,icon:h,createPopupPanel:f,tooltip:p,selected:m,scope:g,...x}=e,y=d.useRef(null),w=d.useRef(!1),b=d.useMemo(()=>{const O={onExecute(S,v){c?.onExecute?.(S,v),w.current||(y.current?.start({center:!1}),setTimeout(()=>y.current?.stop({}),180)),w.current=!1},onError(S,v,I){c?.onError(S,v,I)}};return c?.beforeExecute&&(O.beforeExecute=c.beforeExecute),O},[c]),C=i3(i,[o],null,[o]),_=C[0],{label:E,icon:M}=d.useMemo(()=>{let O=null;u&&(O=typeof u=="function"?u(_):u),O||(O=_?.label?.(g));let S=null;return h&&(S=typeof h=="function"?h(_):h),S||(S=_?.icon?.()),{label:O,icon:S}},[C,u,h]),j={disabled:s,scope:g,touchRippleRef:y,onQuickClick:r,tooltip:p,label:E,icon:M};(E||p)&&(j.createTooltip=({children:O},S)=>a.jsx(Uo,{label:E,description:p,disabled:S,children:O}));const F=pn(O=>f?.(O,i),[f,C]),k=pn(O=>_?.execute(l,b),[_]);return _?(j.quickButtonProps={},j.quickButtonProps.createTooltip=({children:O,placement:S},v)=>a.jsx(Zl,{command:_,placement:S??n===Vr.Toolbar?"bottom-start":"right-start",disabled:v,children:O}),j.disabled=j.disabled??_?.disabled(),r||(j.onQuickClick=k)):o&&(j.onQuickClick=()=>{}),j.selected=m??_?.state(),j.createPopupPanel=F,n===Vr.Toolbar?a.jsx(ii,{...x,...j,ref:t}):a.jsx(Ns,{...x,...j,ref:t})}));An.displayName="CommandPopupButton";const Nl=e=>{const{command:t,label:n,scope:o,icon:r=a.jsx(H5,{}),sx:i,...l}=e;return a.jsxs(B.Box,{sx:{display:"flex",flexDirection:"row",textTransform:"none",alignItems:"center",fontSize:c=>c.typography.subtitle2.fontSize,...i},...l,children:[r?ge(r):null,a.jsx(B.Typography,{component:"div",sx:{whiteSpace:"nowrap",lineHeight:"1",paddingLeft:c=>c.spacing(.25),paddingRight:c=>c.spacing(.25),fontSize:"inherit"},children:t?.label(o)||n})]})},Hs=d.memo(d.forwardRef((e,t)=>{const{sx:n,commands:o,commandButtonProps:r,parentFloat:i,createToolbarPalette:l,children:c,...s}=e,u=md(t,()=>({}),[]),[h,f]=d.useState(null),{reference:p}=xi({label:"toolbar",anchor:u.current,parentFloat:i,createPopupPanel:null}),m=d.useCallback(()=>{const j=h;j&&requestAnimationFrame(()=>{u.current?.contains(document.activeElement)&&j.focus()})},[]),g=d.useMemo(()=>({dense:!0,outlined:!1}),[]),x=d.useMemo(()=>{const{commandHook:j,...F}=r||{};return{commandHook:{beforeExecute:(k,O)=>j?.beforeExecute?.(k,O)!==!1&&p.closeAll(),onExecute(k,O){j?.onExecute?.(k,O),m()},onError(k,O,S){j?.onError?.(k,O,S)}},...F}},[p,r]),y=d.useMemo(()=>({...g,...x}),[g,x]),[w,b]=d.useReducer(j=>j+1,0);i3(o,[],{onChange:()=>{b()}});const C=d.useMemo(()=>({commands:o,parentFloat:p,...x}),[w,y,p,r]);let _=0;g.dense||(_+=2),g.outlined&&_++;let E=2;g.dense||(E=4);const M=d.useMemo(()=>l({commands:o,commandButtonProps:y,commandPopupProps:{commands:o,...C,...r}}),[w,y,C,l]);return a.jsx(B.Toolbar,{variant:"dense",sx:{minHeight:"unset",height:"unset",paddingTop:`${E}px`,paddingBottom:`${E}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:j=>{j.relatedTarget&&!h&&f(j.relatedTarget)},onBlur:j=>{h&&!u?.current?.contains(j.relatedTarget)&&f(null)},onKeyDown:j=>{h&&j.which===$o.Escape&&h.focus()},...s,children:a.jsx("div",{ref:u,style:{flex:"1 1 100%",display:"flex",flexWrap:"wrap",rowGap:`${E}px`,columnGap:`${_}px`,alignItems:"center",maxWidth:"100%"},children:M})})}));Hs.displayName="CommandToolbar";const tk=e=>{const{key:t,...n}=e;return a.jsx(je,{...n},t)},gi=d.memo(d.forwardRef((e,t)=>{const{popupCommandKeys:n,renderCommandButton:o=tk,scope:r,commands:i,icon:l,quickCommand:c,popupScope:s=c,commandState:u,commandHook:h,disabled:f=!1,...p}=e,m=i3(i,n?[c,...n]:[c]),g=d.useCallback((x,y)=>{const w={variant:Vr.Menuitem,commandHook:h,commandState:u,icon:l,scope:s,disabled:f},b=[];for(let C=0;C<n?.length;C++){const _=n[C];if(_===null||_==="-"){b.push(a.jsx(Mt,{orientation:"horizontal"},`element-${b.length}`));continue}const E=y.getCommand(_),M={key:`${_}-${b.length}`,command:E,...w},j=o(M);j&&b.push(j)}return _n({...x,children:b})},[f,h,u,s,n,l,o]);return n?a.jsx(An,{ref:t,commands:i,disabled:f,commandHook:h,commandState:u,scope:r,quickCommand:c,icon:l,createPopupPanel:g,...p}):o({ref:t,disabled:f,commandHook:h,commandState:u,scope:r,command:m[0],icon:l,...p})}));(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 cg=d.memo(d.forwardRef((e,t)=>{const{commands:n,commandHook:o,scope:r,disabled:i=!1,parentFloat:l,...c}=e,s=ko(n,["formatAlignLeftToggle","formatAlignCenterToggle","formatAlignRightToggle","formatAlignJustifyToggle","formatAlignCenterContinuousToggle","formatAlignFillToggle","formatAlignDistributedHorizontalToggle"]),u=d.useMemo(()=>{for(let m=0;m<s.length;m++)if(s[m]?.state())return s[m].key();return s[0]?.key()},[s]),h=d.useMemo(()=>{const m=new Map;return m.set("formatAlignLeftToggle",ge(a.jsx(gn.FormatAlignLeft,{}))),m.set("formatAlignCenterToggle",ge(a.jsx(gn.FormatAlignCenter,{}))),m.set("formatAlignRightToggle",ge(a.jsx(gn.FormatAlignRight,{}))),m.set("formatAlignJustifyToggle",ge(a.jsx(gn.FormatAlignJustify,{}))),m.set("formatAlignCenterContinuousToggle",ge(a.jsx(gn.FormatAlignCenter,{}))),m.set("formatAlignFillToggle",ge(a.jsx(gn.FormatAlignJustify,{}))),m.set("formatAlignDistributedHorizontalToggle",ge(a.jsx(gn.FormatAlignJustify,{}))),m},[]),f=d.useMemo(()=>{if(!o)return null;const m={...o};return delete m.beforeExecute,m},[o]),p=d.useCallback((m,g)=>{const x={variant:Vt.Menuitem,commandHook:o,scope:r,disabled:i},y=a.jsxs(a.Fragment,{children:[a.jsx(je,{...x,command:g.getCommand("formatAlignLeftToggle"),icon:h.get("formatAlignLeftToggle")}),a.jsx(je,{...x,command:g.getCommand("formatAlignCenterToggle"),icon:h.get("formatAlignCenterToggle")}),a.jsx(je,{...x,command:g.getCommand("formatAlignRightToggle"),icon:h.get("formatAlignRightToggle")}),a.jsx(je,{...x,command:g.getCommand("formatAlignJustifyToggle"),icon:h.get("formatAlignJustifyToggle")}),a.jsx(Mt,{orientation:"horizontal"}),a.jsx(je,{...x,command:g.getCommand("formatAlignCenterContinuousToggle"),icon:h.get("formatAlignCenterContinuousToggle")}),a.jsx(je,{...x,command:g.getCommand("formatAlignFillToggle"),icon:h.get("formatAlignFillToggle")}),a.jsx(je,{...x,command:g.getCommand("formatAlignDistributedHorizontalToggle"),icon:h.get("formatAlignDistributedHorizontalToggle")})]}),w=a.jsxs(B.Box,{sx:{className:Yn("quick-buttons"),display:"flex",alignItems:"center",justifyContent:"center"},onClick:C=>C.stopPropagation(),children:[a.jsx(je,{command:g.getCommand("formatIndentDecrease"),commandHook:f,scope:r,disabled:i,icon:ge(a.jsx(WC,{}))}),a.jsx(je,{command:g.getCommand("formatIndentIncrease"),commandHook:f,scope:r,disabled:i,icon:ge(a.jsx($C,{}))})]}),b=a.jsxs(B.Box,{sx:{display:"flex",flexDirection:"column",flex:"1 1 100%",overflow:"hidden"},...c,children:[w,a.jsx(Mt,{orientation:"horizontal"}),a.jsx(B.Box,{sx:{overflow:"auto",flex:"1 1 100%"},children:y})]});return _n({...m,children:b})},[i,o]);return a.jsx(An,{ref:t,parentFloat:l,commands:n,commandHook:o,scope:r,createPopupPanel:p,label:"Horizontal Alignment",tooltip:"Configure how text is placed in the horizontal direction of the cell.",quickCommand:u,icon:h.get(u)??a.jsx(gn.FormatAlignLeft,{}),...c})})),dg=d.memo(d.forwardRef((e,t)=>{const{commands:n,commandHook:o,scope:r,disabled:i=!1,...l}=e,c=ko(n,["formatAlignTopToggle","formatAlignMiddleToggle","formatAlignBottomToggle","formatAlignJustifyVerticalToggle","formatAlignDistributedVerticalToggle"]),s=d.useMemo(()=>{for(let f=0;f<c.length;f++)if(c[f]?.state())return c[f].key();return c[0]?.key()},[c]),u=d.useMemo(()=>{const f=new Map;return f.set("formatAlignTopToggle",ge(a.jsx(JC,{}))),f.set("formatAlignMiddleToggle",ge(a.jsx(QC,{}))),f.set("formatAlignBottomToggle",ge(a.jsx(x6,{}))),f.set("formatAlignJustifyVerticalToggle",ge(a.jsx(gn.FormatAlignJustify,{}))),f.set("formatAlignDistributedVerticalToggle",ge(a.jsx(gn.FormatAlignJustify,{}))),f},[]),h=d.useCallback((f,p)=>{const m={variant:Vt.Menuitem,commandHook:o,scope:r,disabled:i},g=a.jsxs(a.Fragment,{children:[a.jsx(je,{...m,command:p.getCommand("formatAlignTopToggle"),icon:u.get("formatAlignTopToggle")}),a.jsx(je,{...m,command:p.getCommand("formatAlignMiddleToggle"),icon:u.get("formatAlignMiddleToggle")}),a.jsx(je,{...m,command:p.getCommand("formatAlignBottomToggle"),icon:u.get("formatAlignBottomToggle")}),a.jsx(Mt,{orientation:"horizontal"}),a.jsx(je,{...m,command:p.getCommand("formatAlignJustifyVerticalToggle"),icon:u.get("formatAlignJustifyVerticalToggle")}),a.jsx(je,{...m,command:p.getCommand("formatAlignDistributedVerticalToggle"),icon:u.get("formatAlignDistributedVerticalToggle")})]});return _n({...f,children:g})},[i,o,u]);return a.jsx(An,{ref:t,commands:n,commandHook:o,createPopupPanel:h,label:"Vertical Alignment",tooltip:"Configure how text is placed in the vertical direction of the cell.",icon:u.get(s)??ge(a.jsx(x6,{})),...l})})),ug=d.memo(d.forwardRef((e,t)=>{const{commands:n,commandHook:o,scope:r,disabled:i=!1,...l}=e,c=ko(n,["formatTextOverflowVisibleToggle","formatTextOverflowWrapToggle","formatTextOverflowClipToggle","formatTextOverflowShrinkToggle"]),s=d.useMemo(()=>{for(let f=0;f<c.length;f++)if(c[f]?.state())return c[f].key();return c[0]?.key()},[c]),u=d.useMemo(()=>{const f=new Map;return f.set("formatTextOverflowVisibleToggle",ge(a.jsx(Sp,{}))),f.set("formatTextOverflowWrapToggle",ge(a.jsx(Fv,{}))),f.set("formatTextOverflowClipToggle",ge(a.jsx(zv,{}))),f.set("formatTextOverflowShrinkToggle",ge(a.jsx(Bv,{}))),f},[]),h=et((f,p)=>{const m={variant:Vt.Menuitem,commandHook:o,scope:r,disabled:i},g=a.jsxs(a.Fragment,{children:[a.jsx(je,{...m,command:p.getCommand("formatTextOverflowVisibleToggle"),icon:u.get("formatTextOverflowVisibleToggle")}),a.jsx(je,{...m,command:p.getCommand("formatTextOverflowWrapToggle"),icon:u.get("formatTextOverflowWrapToggle")}),a.jsx(je,{...m,command:p.getCommand("formatTextOverflowClipToggle"),icon:u.get("formatTextOverflowClipToggle")}),a.jsx(Mt,{orientation:"horizontal"}),a.jsx(je,{...m,command:p.getCommand("formatTextOverflowShrinkToggle"),icon:u.get("formatTextOverflowShrinkToggle")})]});return _n({...f,children:g})},[i,o,r]);return a.jsx(An,{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:h,icon:u.get(s)??ge(a.jsx(Sp,{})),...l})})),hg=d.memo(d.forwardRef((e,t)=>{const{commands:n,commandHook:o,scope:r,disabled:i=!1,...l}=e,c=ko(n,["formatTextRotate0","formatTextRotate315","formatTextRotate45","formatTextRotate90","formatTextRotate270","formatSubscriptToggle","formatTextRotateCustom"]),s=d.useMemo(()=>{const p=c.length;for(let m=0;m<p;m++){const g=c[m];if(g?.state())return g.key()}return c[1]?.key()},[c]),u=d.useMemo(()=>{const p=new Map;return p.set("formatTextRotate0",ge(a.jsx(gc,{}))),p.set("formatTextRotate315",ge(a.jsx(gc,{}))),p.set("formatTextRotate45",ge(a.jsx(p6,{}))),p.set("formatTextRotate90",ge(a.jsx(f6,{}))),p.set("formatTextRotate270",ge(a.jsx(m6,{}))),p.set("formatTextRotateCustom",ge(a.jsx(g6,{}))),p},[]),h=d.useCallback((p,m)=>{const g={variant:Vt.Menuitem,commandHook:o,scope:r,disabled:i},x=a.jsxs(a.Fragment,{children:[a.jsx(je,{...g,command:m.getCommand("formatTextRotate0"),icon:ge(a.jsx(YC,{}))}),a.jsx(Mt,{orientation:"horizontal"}),a.jsx(je,{...g,command:m.getCommand("formatTextRotate315"),icon:ge(a.jsx(gc,{}))}),a.jsx(je,{...g,command:m.getCommand("formatTextRotate45"),icon:ge(a.jsx(p6,{}))}),a.jsx(je,{...g,command:m.getCommand("formatTextRotate90"),icon:ge(a.jsx(f6,{}))}),a.jsx(je,{...g,command:m.getCommand("formatTextRotate270"),icon:ge(a.jsx(m6,{}))}),a.jsx(Mt,{orientation:"horizontal"}),a.jsx(ek,{...g,command:m.getCommand("formatTextRotateCustom"),icon:ge(a.jsx(g6,{})),label:"Custom"})]});return _n({...p,children:x})},[i,o,r,n]),f=d.useMemo(()=>(n.getCommand("formatTextRotateCustom")?.state()??0)!==0,[c]);return a.jsx(An,{ref:t,commands:n,commandHook:o,scope:r,selected:f,label:"Text Orientation",tooltip:"Rotate your text diagonally or vertically. This is a great way to label narrow columns.",createPopupPanel:h,quickCommand:f?"formatTextRotate0":"formatTextRotate315",icon:ge(u.get(s)??a.jsx(gc,{})),...l})}));function N0(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 n0="$$material";function nk(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:o=5,...r}=e,i=(h=>{const f=Object.keys(h).map(p=>({key:p,val:h[p]}))||[];return f.sort((p,m)=>p.val-m.val),f.reduce((p,m)=>({...p,[m.key]:m.val}),{})})(t),l=Object.keys(i);function c(h){return`@media (min-width:${typeof t[h]=="number"?t[h]:h}${n})`}function s(h){return`@media (max-width:${(typeof t[h]=="number"?t[h]:h)-o/100}${n})`}function u(h,f){const p=l.indexOf(f);return`@media (min-width:${typeof t[h]=="number"?t[h]:h}${n}) and (max-width:${(p!==-1&&typeof t[l[p]]=="number"?t[l[p]]:f)-o/100}${n})`}return{keys:l,values:i,up:c,down:s,between:u,only:function(h){return l.indexOf(h)+1<l.length?u(h,l[l.indexOf(h)+1]):c(h)},not:function(h){const f=l.indexOf(h);return f===0?c(l[1]):f===l.length-1?s(l[f]):u(h,l[l.indexOf(h)+1]).replace("@media","@media not all and")},unit:n,...r}}var xl=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},m4,g4,x4={exports:{}},Wn={};function ok(){if(m4)return Wn;m4=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"),c=Symbol.for("react.forward_ref"),s=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),p=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 s:case u:case p:return x;default:switch(x=x&&x.$$typeof){case l:case c:case f:case h:case i:return x;default:return y}}case t:return y}}}return Wn.ContextConsumer=i,Wn.ContextProvider=l,Wn.Element=e,Wn.ForwardRef=c,Wn.Fragment=n,Wn.Lazy=f,Wn.Memo=h,Wn.Portal=t,Wn.Profiler=r,Wn.StrictMode=o,Wn.Suspense=s,Wn.SuspenseList=u,Wn.isContextConsumer=function(x){return g(x)===i},Wn.isContextProvider=function(x){return g(x)===l},Wn.isElement=function(x){return typeof x=="object"&&x!==null&&x.$$typeof===e},Wn.isForwardRef=function(x){return g(x)===c},Wn.isFragment=function(x){return g(x)===n},Wn.isLazy=function(x){return g(x)===f},Wn.isMemo=function(x){return g(x)===h},Wn.isPortal=function(x){return g(x)===t},Wn.isProfiler=function(x){return g(x)===r},Wn.isStrictMode=function(x){return g(x)===o},Wn.isSuspense=function(x){return g(x)===s},Wn.isSuspenseList=function(x){return g(x)===u},Wn.isValidElementType=function(x){return typeof x=="string"||typeof x=="function"||x===n||x===r||x===o||x===s||x===u||typeof x=="object"&&x!==null&&(x.$$typeof===f||x.$$typeof===h||x.$$typeof===l||x.$$typeof===i||x.$$typeof===c||x.$$typeof===m||x.getModuleId!==void 0)},Wn.typeOf=g,Wn}function rk(){return g4||(g4=1,x4.exports=ok()),x4.exports}var pg=rk();function Ti(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 fg(e){if(o0.isValidElement(e)||pg.isValidElementType(e)||!Ti(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=fg(e[n])}),t}function jr(e,t,n={clone:!0}){const o=n.clone?{...e}:e;return Ti(e)&&Ti(t)&&Object.keys(t).forEach(r=>{o0.isValidElement(t[r])||pg.isValidElementType(t[r])?o[r]=t[r]:Ti(t[r])&&Object.prototype.hasOwnProperty.call(e,r)&&Ti(e[r])?o[r]=jr(e[r],t[r],n):n.clone?o[r]=Ti(t[r])?fg(t[r]):t[r]:o[r]=t[r]}),o}function g3(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 c=i.match(l);return c&&c[0].length===1&&(c=c.map(s=>s+s)),c?`rgb${c.length===4?"a":""}(${c.map((s,u)=>u<3?parseInt(s,16):Math.round(parseInt(s,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(N0(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(N0(10,o))}else r=r.split(",");return r=r.map(i=>parseFloat(i)),{type:n,values:r,colorSpace:o}}const Ha=(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 yd(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 mg(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,h=(u+n/30)%12)=>r-i*Math.max(Math.min(h-3,9-h,1),-1);let c="rgb";const s=[Math.round(255*l(0)),Math.round(255*l(8)),Math.round(255*l(4))];return e.type==="hsla"&&(c+="a",s.push(t[3])),yd({type:c,values:s})}function Q2(e){let t=(e=l0(e)).type==="hsl"||e.type==="hsla"?l0(mg(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 bc(e,t,n){try{return function(o,r){return o=l0(o),r=g3(r),o.type!=="rgb"&&o.type!=="hsl"||(o.type+="a"),o.type==="color"?o.values[3]=`/${r}`:o.values[3]=r,yd(o)}(e,t)}catch{return e}}function x3(e,t){if(e=l0(e),t=g3(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 yd(e)}function Kn(e,t,n){try{return x3(e,t)}catch{return e}}function y3(e,t){if(e=l0(e),t=g3(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 yd(e)}function Xn(e,t,n){try{return y3(e,t)}catch{return e}}function wc(e,t,n){try{return function(o,r=.15){return Q2(o)>.5?x3(o,r):y3(o,r)}(e,t)}catch{return e}}const ys={black:"#000",white:"#fff"},ik={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"},lk="#f3e5f5",ak="#ce93d8",sk="#ba68c8",ck="#ab47bc",dk="#9c27b0",uk="#7b1fa2",hk="#e57373",pk="#ef5350",fk="#f44336",y4="#d32f2f",mk="#c62828",gk="#ffb74d",xk="#ffa726",yk="#ff9800",bk="#f57c00",wk="#e65100",vk="#e3f2fd",Sk="#90caf9",b4="#42a5f5",Ck="#1976d2",_k="#1565c0",Ek="#4fc3f7",kk="#29b6f6",Tk="#03a9f4",w4="#0288d1",jk="#01579b",Mk="#81c784",Rk="#66bb6a",Ik="#4caf50",Dk="#388e3c",Lk="#2e7d32",Ok="#1b5e20";function gg(){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:ys.white,default:ys.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 Pk=gg();function xg(){return{text:{primary:ys.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:ys.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 v4=xg();function S4(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=y3(e.main,r):t==="dark"&&(e.dark=x3(e.main,i)))}function b3(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:o=.2,...r}=e,i=e.primary||function(g="light"){return g==="dark"?{main:Sk,light:vk,dark:b4}:{main:Ck,light:b4,dark:_k}}(t),l=e.secondary||function(g="light"){return g==="dark"?{main:ak,light:lk,dark:ck}:{main:dk,light:sk,dark:uk}}(t),c=e.error||function(g="light"){return g==="dark"?{main:fk,light:hk,dark:y4}:{main:y4,light:pk,dark:mk}}(t),s=e.info||function(g="light"){return g==="dark"?{main:kk,light:Ek,dark:w4}:{main:w4,light:Tk,dark:jk}}(t),u=e.success||function(g="light"){return g==="dark"?{main:Rk,light:Mk,dark:Dk}:{main:Lk,light:Ik,dark:Ok}}(t),h=e.warning||function(g="light"){return g==="dark"?{main:xk,light:gk,dark:bk}:{main:"#ed6c02",light:yk,dark:wk}}(t);function f(g){return function(y,w){const b=Q2(y),C=Q2(w);return(Math.max(b,C)+.05)/(Math.min(b,C)+.05)}(g,v4.text.primary)>=n?v4.text.primary:Pk.text.primary}const p=({color:g,name:x,mainShade:y=500,lightShade:w=300,darkShade:b=700})=>{if(!(g={...g}).main&&g[y]&&(g.main=g[y]),!g.hasOwnProperty("main"))throw new Error(N0(11,x?` (${x})`:"",y));if(typeof g.main!="string")throw new Error(N0(12,x?` (${x})`:"",JSON.stringify(g.main)));return S4(g,"light",w,o),S4(g,"dark",b,o),g.contrastText||(g.contrastText=f(g.main)),g};let m;return t==="light"?m=gg():t==="dark"&&(m=xg()),jr({common:{...ys},mode:t,primary:p({color:i,name:"primary"}),secondary:p({color:l,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:p({color:c,name:"error"}),warning:p({color:h,name:"warning"}),info:p({color:s,name:"info"}),success:p({color:u,name:"success"}),grey:ik,contrastThreshold:n,getContrastText:f,augmentColor:p,tonalOffset:o,...m},r)}var C4,_4,gu,E4,k4,T4={exports:{}};function Ak(){return _4?C4:(_4=1,C4="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}function Fk(){if(E4)return gu;E4=1;var e=Ak();function t(){}function n(){}return n.resetWarningCache=t,gu=function(){function o(l,c,s,u,h,f){if(f!==e){var p=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 p.name="Invariant Violation",p}}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},gu}function $s(){return k4||(k4=1,T4.exports=Fk()()),T4.exports}function ns(e,t){return t?jr(e,t,{clone:!1}):e}function j4(e,t){if(!e.containerQueries)return t;const n=Object.keys(t).filter(o=>o.startsWith("@container")).sort((o,r)=>{const i=/min-width:\s*([0-9.]+)/;return+(o.match(i)?.[1]||0)-+(r.match(i)?.[1]||0)});return n.length?n.reduce((o,r)=>{const i=t[r];return delete o[r],o[r]=i,o},{...t}):t}const bd={xs:0,sm:600,md:900,lg:1200,xl:1536},M4={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${bd[e]}px)`},zk={containerQueries:e=>({up:t=>{let n=typeof t=="number"?t:bd[t]||t;return typeof n=="number"&&(n=`${n}px`),e?`@container ${e} (min-width:${n})`:`@container (min-width:${n})`}})};function Ri(e,t,n){const o=e.theme||{};if(Array.isArray(t)){const r=o.breakpoints||M4;return t.reduce((i,l,c)=>(i[r.up(r.keys[c])]=n(t[c]),i),{})}if(typeof t=="object"){const r=o.breakpoints||M4;return Object.keys(t).reduce((i,l)=>{if(c=r.keys,(s=l)==="@"||s.startsWith("@")&&(c.some(u=>s.startsWith(`@${u}`))||s.match(/^@\d/))){const u=function(h,f){const p=f.match(/^@([^/]+)?\/?(.+)?$/);if(!p)return null;const[,m,g]=p,x=Number.isNaN(+m)?m||0:+m;return h.containerQueries(g).up(x)}(o.containerQueries?o:zk,l);u&&(i[u]=n(t[l],l))}else if(Object.keys(r.values||bd).includes(l))i[r.up(l)]=n(t[l],l);else{const u=l;i[u]=t[u]}var c,s;return i},{})}return n(t)}function R4(e,t){return e.reduce((n,o)=>{const r=n[o];return(!r||Object.keys(r).length===0)&&delete n[o],n},t)}function yg(e){if(typeof e!="string")throw new Error(N0(7));return e.charAt(0).toUpperCase()+e.slice(1)}function wd(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 z1(e,t,n,o=n){let r;return r=typeof e=="function"?e(n):Array.isArray(e)?e[n]||o:wd(e,n)||o,t&&(r=t(r,o,e)),r}function Co(e){const{prop:t,cssProperty:n=e.prop,themeKey:o,transform:r}=e,i=l=>{if(l[t]==null)return null;const c=l[t],s=wd(l.theme,o)||{};return Ri(l,c,u=>{let h=z1(s,r,u);return u===h&&typeof u=="string"&&(h=z1(s,r,`${t}${u==="default"?"":yg(u)}`,u)),n===!1?h:{[n]:h}})};return i.propTypes={},i.filterProps=[t],i}const Bk={m:"margin",p:"padding"},Nk={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},I4={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Vk=function(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}(e=>{if(e.length>2){if(!I4[e])return[e];e=I4[e]}const[t,n]=e.split(""),o=Bk[t],r=Nk[n]||"";return Array.isArray(r)?r.map(i=>o+i):[o+r]}),bg=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],wg=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function Ws(e,t,n,o){const r=wd(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),c=r[l];return i>=0?c:typeof c=="number"?-c:`-${c}`}:typeof r=="function"?r:()=>{}}function w3(e){return Ws(e,"spacing",8)}function Us(e,t){return typeof t=="string"||t==null?t:e(t)}function Hk(e,t,n,o){if(!t.includes(n))return null;const r=function(i,l){return c=>i.reduce((s,u)=>(s[u]=Us(l,c),s),{})}(Vk(n),o);return Ri(e,e[n],r)}function vg(e,t){const n=w3(e.theme);return Object.keys(e).map(o=>Hk(e,t,o,n)).reduce(ns,{})}function ho(e){return vg(e,bg)}function po(e){return vg(e,wg)}ho.propTypes={},ho.filterProps=bg,po.propTypes={},po.filterProps=wg;const $k={borderRadius:4};function vd(...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]?ns(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 qr(e,t){return Co({prop:e,themeKey:"borders",transform:t})}const Wk=qr("border",Nr),Uk=qr("borderTop",Nr),qk=qr("borderRight",Nr),Zk=qr("borderBottom",Nr),Gk=qr("borderLeft",Nr),Kk=qr("borderColor"),Xk=qr("borderTopColor"),Yk=qr("borderRightColor"),Jk=qr("borderBottomColor"),Qk=qr("borderLeftColor"),eT=qr("outline",Nr),tT=qr("outlineColor"),a1=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Ws(e.theme,"shape.borderRadius",4),n=o=>({borderRadius:Us(t,o)});return Ri(e,e.borderRadius,n)}return null};a1.propTypes={},a1.filterProps=["borderRadius"],vd(Wk,Uk,qk,Zk,Gk,Kk,Xk,Yk,Jk,Qk,a1,eT,tT);const B1=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Ws(e.theme,"spacing",8),n=o=>({gap:Us(t,o)});return Ri(e,e.gap,n)}return null};B1.propTypes={},B1.filterProps=["gap"];const N1=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Ws(e.theme,"spacing",8),n=o=>({columnGap:Us(t,o)});return Ri(e,e.columnGap,n)}return null};N1.propTypes={},N1.filterProps=["columnGap"];const V1=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Ws(e.theme,"spacing",8),n=o=>({rowGap:Us(t,o)});return Ri(e,e.rowGap,n)}return null};V1.propTypes={},V1.filterProps=["rowGap"];function Ml(e,t){return t==="grey"?t:e}vd(B1,N1,V1,Co({prop:"gridColumn"}),Co({prop:"gridRow"}),Co({prop:"gridAutoFlow"}),Co({prop:"gridAutoColumns"}),Co({prop:"gridAutoRows"}),Co({prop:"gridTemplateColumns"}),Co({prop:"gridTemplateRows"}),Co({prop:"gridTemplateAreas"}),Co({prop:"gridArea"}));function Cr(e){return e<=1&&e!==0?100*e+"%":e}vd(Co({prop:"color",themeKey:"palette",transform:Ml}),Co({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Ml}),Co({prop:"backgroundColor",themeKey:"palette",transform:Ml}));const nT=Co({prop:"width",transform:Cr}),v3=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{const o=e.theme?.breakpoints?.values?.[n]||bd[n];return o?e.theme?.breakpoints?.unit!=="px"?{maxWidth:`${o}${e.theme.breakpoints.unit}`}:{maxWidth:o}:{maxWidth:Cr(n)}};return Ri(e,e.maxWidth,t)}return null};v3.filterProps=["maxWidth"];const oT=Co({prop:"minWidth",transform:Cr}),rT=Co({prop:"height",transform:Cr}),iT=Co({prop:"maxHeight",transform:Cr}),lT=Co({prop:"minHeight",transform:Cr});Co({prop:"size",cssProperty:"width",transform:Cr}),Co({prop:"size",cssProperty:"height",transform:Cr});vd(nT,v3,oT,rT,iT,lT,Co({prop:"boxSizing"}));const Sd={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:a1},color:{themeKey:"palette",transform:Ml},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Ml},backgroundColor:{themeKey:"palette",transform:Ml},p:{style:po},pt:{style:po},pr:{style:po},pb:{style:po},pl:{style:po},px:{style:po},py:{style:po},padding:{style:po},paddingTop:{style:po},paddingRight:{style:po},paddingBottom:{style:po},paddingLeft:{style:po},paddingX:{style:po},paddingY:{style:po},paddingInline:{style:po},paddingInlineStart:{style:po},paddingInlineEnd:{style:po},paddingBlock:{style:po},paddingBlockStart:{style:po},paddingBlockEnd:{style:po},m:{style:ho},mt:{style:ho},mr:{style:ho},mb:{style:ho},ml:{style:ho},mx:{style:ho},my:{style:ho},margin:{style:ho},marginTop:{style:ho},marginRight:{style:ho},marginBottom:{style:ho},marginLeft:{style:ho},marginX:{style:ho},marginY:{style:ho},marginInline:{style:ho},marginInlineStart:{style:ho},marginInlineEnd:{style:ho},marginBlock:{style:ho},marginBlockStart:{style:ho},marginBlockEnd:{style:ho},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:B1},rowGap:{style:V1},columnGap:{style:N1},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Cr},maxWidth:{style:v3},minWidth:{transform:Cr},height:{transform:Cr},maxHeight:{transform:Cr},minHeight:{transform:Cr},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"}},Gl=function(){function e(t,n,o,r){const i={[t]:n,theme:o},l=r[t];if(!l)return{[t]:n};const{cssProperty:c=t,themeKey:s,transform:u,style:h}=l;if(n==null)return null;if(s==="typography"&&n==="inherit")return{[t]:n};const f=wd(o,s)||{};return h?h(i):Ri(i,n,p=>{let m=z1(f,u,p);return p===m&&typeof p=="string"&&(m=z1(f,u,`${t}${p==="default"?"":yg(p)}`,p)),c===!1?m:{[c]:m}})}return function t(n){const{sx:o,theme:r={},nested:i}=n||{};if(!o)return null;const l=r.unstable_sxConfig??Sd;function c(s){let u=s;if(typeof s=="function")u=s(r);else if(typeof s!="object")return s;if(!u)return null;const h=function(m={}){return m.keys?.reduce((x,y)=>(x[m.up(y)]={},x),{})||{}}(r.breakpoints),f=Object.keys(h);let p=h;return Object.keys(u).forEach(m=>{const g=(x=u[m],y=r,typeof x=="function"?x(y):x);var x,y;if(g!=null)if(typeof g=="object")if(l[m])p=ns(p,e(m,g,r,l));else{const w=Ri({theme:r},g,b=>({[m]:b}));(function(...b){const C=b.reduce((E,M)=>E.concat(Object.keys(M)),[]),_=new Set(C);return b.every(E=>_.size===Object.keys(E).length)})(w,g)?p[m]=t({sx:g,theme:r,nested:!0}):p=ns(p,w)}else p=ns(p,e(m,g,r,l))}),!i&&r.modularCssLayers?{"@layer sx":j4(r,R4(f,p))}:j4(r,R4(f,p))}return Array.isArray(o)?o.map(c):c(o)}}();function aT(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 Sg(e={},...t){const{breakpoints:n={},palette:o={},spacing:r,shape:i={},...l}=e,c=nk(n),s=function(h=8,f=w3({spacing:h})){if(h.mui)return h;const p=(...m)=>(m.length===0?[1]:m).map(g=>{const x=f(g);return typeof x=="number"?`${x}px`:x}).join(" ");return p.mui=!0,p}(r);let u=jr({breakpoints:c,direction:"ltr",components:{},palette:{mode:"light",...o},spacing:s,shape:{...$k,...i}},l);return u=function(h){const f=(x,y)=>x.replace("@media",y?`@container ${y}`:"@container");function p(x,y){x.up=(...w)=>f(h.breakpoints.up(...w),y),x.down=(...w)=>f(h.breakpoints.down(...w),y),x.between=(...w)=>f(h.breakpoints.between(...w),y),x.only=(...w)=>f(h.breakpoints.only(...w),y),x.not=(...w)=>{const b=f(h.breakpoints.not(...w),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=>(p(m,x),m);return p(g),{...h,containerQueries:g}}(u),u.applyStyles=aT,u=t.reduce((h,f)=>jr(h,f),u),u.unstable_sxConfig={...Sd,...l?.unstable_sxConfig},u.unstable_sx=function(h){return Gl({sx:h,theme:this})},u}Gl.filterProps=["sx"];const D4=(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 xu(e,t){const{prefix:n,shouldSkipGeneratingVar:o}=t||{},r={},i={},l={};var c,s;return c=(u,h,f)=>{if(!(typeof h!="string"&&typeof h!="number"||o&&o(u,h))){const p=`--${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,h);Object.assign(r,{[p]:m}),D4(i,u,`var(${p})`,f),D4(l,u,`var(${p}, ${m})`,f)}},s=u=>u[0]==="vars",function u(h,f=[],p=[]){Object.entries(h).forEach(([m,g])=>{(!s||s&&!s([...f,m]))&&g!=null&&(typeof g=="object"&&Object.keys(g).length>0?u(g,[...f,m],Array.isArray(g)?[...p,m]:p):c([...f,m],g,p))})}(e),{css:r,vars:i,varsWithDefaults:l}}function sT(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 cT(e,t){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...t}}const L4={textTransform:"uppercase"},O4='"Roboto", "Helvetica", "Arial", sans-serif';function Cg(e,t){const{fontFamily:n=O4,fontSize:o=14,fontWeightLight:r=300,fontWeightRegular:i=400,fontWeightMedium:l=500,fontWeightBold:c=700,htmlFontSize:s=16,allVariants:u,pxToRem:h,...f}=typeof t=="function"?t(e):t,p=o/14,m=h||(y=>y/s*p+"rem"),g=(y,w,b,C,_)=>{return{fontFamily:n,fontWeight:y,fontSize:m(w),lineHeight:b,...n===O4?{letterSpacing:(E=C/w,Math.round(1e5*E)/1e5+"em")}:{},..._,...u};var E},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,L4),caption:g(i,12,1.66,.4),overline:g(i,12,2.66,1,L4),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return jr({htmlFontSize:s,pxToRem:m,fontFamily:n,fontSize:o,fontWeightLight:r,fontWeightRegular:i,fontWeightMedium:l,fontWeightBold:c,...x},f,{clone:!1})}function ro(...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 dT=["none",ro(0,2,1,-1,0,1,1,0,0,1,3,0),ro(0,3,1,-2,0,2,2,0,0,1,5,0),ro(0,3,3,-2,0,3,4,0,0,1,8,0),ro(0,2,4,-1,0,4,5,0,0,1,10,0),ro(0,3,5,-1,0,5,8,0,0,1,14,0),ro(0,3,5,-1,0,6,10,0,0,1,18,0),ro(0,4,5,-2,0,7,10,1,0,2,16,1),ro(0,5,5,-3,0,8,10,1,0,3,14,2),ro(0,5,6,-3,0,9,12,1,0,3,16,2),ro(0,6,6,-3,0,10,14,1,0,4,18,3),ro(0,6,7,-4,0,11,15,1,0,4,20,3),ro(0,7,8,-4,0,12,17,2,0,5,22,4),ro(0,7,8,-4,0,13,19,2,0,5,24,4),ro(0,7,9,-4,0,14,21,2,0,5,26,4),ro(0,8,9,-5,0,15,22,2,0,6,28,5),ro(0,8,10,-5,0,16,24,2,0,6,30,5),ro(0,8,11,-5,0,17,26,2,0,6,32,5),ro(0,9,11,-5,0,18,28,2,0,7,34,6),ro(0,9,12,-6,0,19,29,2,0,7,36,6),ro(0,10,13,-6,0,20,31,3,0,8,38,7),ro(0,10,13,-6,0,21,33,3,0,8,40,7),ro(0,10,14,-6,0,22,35,3,0,8,42,7),ro(0,11,14,-7,0,23,36,3,0,9,44,8),ro(0,11,15,-7,0,24,38,3,0,9,46,8)],uT={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)"},hT={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function P4(e){return`${Math.round(e)}ms`}function pT(e){if(!e)return 0;const t=e/36;return Math.min(Math.round(10*(4+15*t**.25+t/5)),3e3)}function fT(e){const t={...uT,...e.easing},n={...hT,...e.duration};return{getAutoHeightDuration:pT,create:(o=["all"],r={})=>{const{duration:i=n.standard,easing:l=t.easeInOut,delay:c=0,...s}=r;return(Array.isArray(o)?o:[o]).map(u=>`${u} ${typeof i=="string"?i:P4(i)} ${l} ${typeof c=="string"?c:P4(c)}`).join(",")},...e,easing:t,duration:n}}const mT={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function gT(e){return Ti(e)||e===void 0||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function _g(e={}){const t={...e};return function n(o){const r=Object.entries(o);for(let i=0;i<r.length;i++){const[l,c]=r[i];!gT(c)||l.startsWith("unstable_")?delete o[l]:Ti(c)&&(o[l]={...c},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 e5(e={},...t){const{breakpoints:n,mixins:o={},spacing:r,palette:i={},transitions:l={},typography:c={},shape:s,...u}=e;if(e.vars&&e.generateThemeVars===void 0)throw new Error(N0(20));const h=b3(i),f=Sg(e);let p=jr(f,{mixins:cT(f.breakpoints,o),palette:h,shadows:dT.slice(),typography:Cg(h,c),transitions:fT(l),zIndex:{...mT}});return p=jr(p,u),p=t.reduce((m,g)=>jr(m,g),p),p.unstable_sxConfig={...Sd,...u?.unstable_sxConfig},p.unstable_sx=function(m){return Gl({sx:m,theme:this})},p.toRuntimeSource=_g,p}function jn(e){let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,Math.round(10*t)/1e3}const xT=[...Array(25)].map((e,t)=>{if(t===0)return"none";const n=jn(t);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`});function A4(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function F4(e){return e==="dark"?xT:[]}function yT(e){return!!e[0].match(/(cssVarPrefix|colorSchemeSelector|modularCssLayers|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||e[0]==="palette"&&!!e[1]?.match(/(mode|contrastThreshold|tonalOffset)/)}const bT=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 c={};return(l=e.cssVarPrefix,[...[...Array(25)].map((s,u)=>`--${l?`${l}-`:""}overlays-${u}`),`--${l?`${l}-`:""}palette-AppBar-darkBg`,`--${l?`${l}-`:""}palette-AppBar-darkColor`]).forEach(s=>{c[s]=n[s],delete n[s]}),i==="media"?{[o]:n,"@media (prefers-color-scheme: dark)":{[o]:c}}:i?{[i.replace("%s",t)]:c,[`${o}, ${i.replace("%s",t)}`]:n}:{[o]:{...n,...c}}}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 We(e,t,n){!e[t]&&n&&(e[t]=n)}function $a(e){return typeof e=="string"&&e.startsWith("hsl")?mg(e):e}function wi(e,t){`${t}Channel`in e||(e[`${t}Channel`]=Ha($a(e[t])))}const ci=e=>{try{return e()}catch{}};function yu(e,t,n,o){if(!t)return;t=t===!0?{}:t;const r=o==="dark"?"dark":"light";if(!n)return void(e[o]=function(c){const{palette:s={mode:"light"},opacity:u,overlays:h,...f}=c,p=b3(s);return{palette:p,opacity:{...A4(p.mode),...u},overlays:h||F4(p.mode),...f}}({...t,palette:{mode:r,...t?.palette}}));const{palette:i,...l}=e5({...n,palette:{mode:r,...t?.palette}});return e[o]={...t,palette:i,opacity:{...A4(r),...t?.opacity},overlays:t?.overlays||F4(r)},l}function wT(e={},...t){const{colorSchemes:n={light:!0},defaultColorScheme:o,disableCssColorScheme:r=!1,cssVarPrefix:i="mui",shouldSkipGeneratingVar:l=yT,colorSchemeSelector:c=n.light&&n.dark?"media":void 0,rootSelector:s=":root",...u}=e,h=Object.keys(n)[0],f=o||(n.light&&h!=="light"?"light":h),p=((O="mui")=>ht.unstable_createGetCssVar(O))(i),{[f]:m,light:g,dark:x,...y}=n,w={...y};let b=m;if((f==="dark"&&!("dark"in n)||f==="light"&&!("light"in n))&&(b=!0),!b)throw new Error(N0(21,f));const C=yu(w,b,u,f);g&&!w.light&&yu(w,g,void 0,"light"),x&&!w.dark&&yu(w,x,void 0,"dark");let _={defaultColorScheme:f,...C,cssVarPrefix:i,colorSchemeSelector:c,rootSelector:s,getCssVar:p,colorSchemes:w,font:{...sT(C.typography),...C.font},spacing:(E=u.spacing,typeof E=="number"?`${E}px`:typeof E=="string"||typeof E=="function"||Array.isArray(E)?E:"8px")};var E;Object.keys(_.colorSchemes).forEach(O=>{const S=_.colorSchemes[O].palette,v=T=>{const R=T.split("-"),A=R[1],D=R[2];return p(T,S[A][D])};var I;if(S.mode==="light"&&(We(S.common,"background","#fff"),We(S.common,"onBackground","#000")),S.mode==="dark"&&(We(S.common,"background","#000"),We(S.common,"onBackground","#fff")),I=S,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"].forEach(T=>{I[T]||(I[T]={})}),S.mode==="light"){We(S.Alert,"errorColor",Kn(S.error.light,.6)),We(S.Alert,"infoColor",Kn(S.info.light,.6)),We(S.Alert,"successColor",Kn(S.success.light,.6)),We(S.Alert,"warningColor",Kn(S.warning.light,.6)),We(S.Alert,"errorFilledBg",v("palette-error-main")),We(S.Alert,"infoFilledBg",v("palette-info-main")),We(S.Alert,"successFilledBg",v("palette-success-main")),We(S.Alert,"warningFilledBg",v("palette-warning-main")),We(S.Alert,"errorFilledColor",ci(()=>S.getContrastText(S.error.main))),We(S.Alert,"infoFilledColor",ci(()=>S.getContrastText(S.info.main))),We(S.Alert,"successFilledColor",ci(()=>S.getContrastText(S.success.main))),We(S.Alert,"warningFilledColor",ci(()=>S.getContrastText(S.warning.main))),We(S.Alert,"errorStandardBg",Xn(S.error.light,.9)),We(S.Alert,"infoStandardBg",Xn(S.info.light,.9)),We(S.Alert,"successStandardBg",Xn(S.success.light,.9)),We(S.Alert,"warningStandardBg",Xn(S.warning.light,.9)),We(S.Alert,"errorIconColor",v("palette-error-main")),We(S.Alert,"infoIconColor",v("palette-info-main")),We(S.Alert,"successIconColor",v("palette-success-main")),We(S.Alert,"warningIconColor",v("palette-warning-main")),We(S.AppBar,"defaultBg",v("palette-grey-100")),We(S.Avatar,"defaultBg",v("palette-grey-400")),We(S.Button,"inheritContainedBg",v("palette-grey-300")),We(S.Button,"inheritContainedHoverBg",v("palette-grey-A100")),We(S.Chip,"defaultBorder",v("palette-grey-400")),We(S.Chip,"defaultAvatarColor",v("palette-grey-700")),We(S.Chip,"defaultIconColor",v("palette-grey-700")),We(S.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),We(S.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),We(S.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),We(S.LinearProgress,"primaryBg",Xn(S.primary.main,.62)),We(S.LinearProgress,"secondaryBg",Xn(S.secondary.main,.62)),We(S.LinearProgress,"errorBg",Xn(S.error.main,.62)),We(S.LinearProgress,"infoBg",Xn(S.info.main,.62)),We(S.LinearProgress,"successBg",Xn(S.success.main,.62)),We(S.LinearProgress,"warningBg",Xn(S.warning.main,.62)),We(S.Skeleton,"bg",`rgba(${v("palette-text-primaryChannel")} / 0.11)`),We(S.Slider,"primaryTrack",Xn(S.primary.main,.62)),We(S.Slider,"secondaryTrack",Xn(S.secondary.main,.62)),We(S.Slider,"errorTrack",Xn(S.error.main,.62)),We(S.Slider,"infoTrack",Xn(S.info.main,.62)),We(S.Slider,"successTrack",Xn(S.success.main,.62)),We(S.Slider,"warningTrack",Xn(S.warning.main,.62));const T=wc(S.background.default,.8);We(S.SnackbarContent,"bg",T),We(S.SnackbarContent,"color",ci(()=>S.getContrastText(T))),We(S.SpeedDialAction,"fabHoverBg",wc(S.background.paper,.15)),We(S.StepConnector,"border",v("palette-grey-400")),We(S.StepContent,"border",v("palette-grey-400")),We(S.Switch,"defaultColor",v("palette-common-white")),We(S.Switch,"defaultDisabledColor",v("palette-grey-100")),We(S.Switch,"primaryDisabledColor",Xn(S.primary.main,.62)),We(S.Switch,"secondaryDisabledColor",Xn(S.secondary.main,.62)),We(S.Switch,"errorDisabledColor",Xn(S.error.main,.62)),We(S.Switch,"infoDisabledColor",Xn(S.info.main,.62)),We(S.Switch,"successDisabledColor",Xn(S.success.main,.62)),We(S.Switch,"warningDisabledColor",Xn(S.warning.main,.62)),We(S.TableCell,"border",Xn(bc(S.divider,1),.88)),We(S.Tooltip,"bg",bc(S.grey[700],.92))}if(S.mode==="dark"){We(S.Alert,"errorColor",Xn(S.error.light,.6)),We(S.Alert,"infoColor",Xn(S.info.light,.6)),We(S.Alert,"successColor",Xn(S.success.light,.6)),We(S.Alert,"warningColor",Xn(S.warning.light,.6)),We(S.Alert,"errorFilledBg",v("palette-error-dark")),We(S.Alert,"infoFilledBg",v("palette-info-dark")),We(S.Alert,"successFilledBg",v("palette-success-dark")),We(S.Alert,"warningFilledBg",v("palette-warning-dark")),We(S.Alert,"errorFilledColor",ci(()=>S.getContrastText(S.error.dark))),We(S.Alert,"infoFilledColor",ci(()=>S.getContrastText(S.info.dark))),We(S.Alert,"successFilledColor",ci(()=>S.getContrastText(S.success.dark))),We(S.Alert,"warningFilledColor",ci(()=>S.getContrastText(S.warning.dark))),We(S.Alert,"errorStandardBg",Kn(S.error.light,.9)),We(S.Alert,"infoStandardBg",Kn(S.info.light,.9)),We(S.Alert,"successStandardBg",Kn(S.success.light,.9)),We(S.Alert,"warningStandardBg",Kn(S.warning.light,.9)),We(S.Alert,"errorIconColor",v("palette-error-main")),We(S.Alert,"infoIconColor",v("palette-info-main")),We(S.Alert,"successIconColor",v("palette-success-main")),We(S.Alert,"warningIconColor",v("palette-warning-main")),We(S.AppBar,"defaultBg",v("palette-grey-900")),We(S.AppBar,"darkBg",v("palette-background-paper")),We(S.AppBar,"darkColor",v("palette-text-primary")),We(S.Avatar,"defaultBg",v("palette-grey-600")),We(S.Button,"inheritContainedBg",v("palette-grey-800")),We(S.Button,"inheritContainedHoverBg",v("palette-grey-700")),We(S.Chip,"defaultBorder",v("palette-grey-700")),We(S.Chip,"defaultAvatarColor",v("palette-grey-300")),We(S.Chip,"defaultIconColor",v("palette-grey-300")),We(S.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),We(S.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),We(S.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),We(S.LinearProgress,"primaryBg",Kn(S.primary.main,.5)),We(S.LinearProgress,"secondaryBg",Kn(S.secondary.main,.5)),We(S.LinearProgress,"errorBg",Kn(S.error.main,.5)),We(S.LinearProgress,"infoBg",Kn(S.info.main,.5)),We(S.LinearProgress,"successBg",Kn(S.success.main,.5)),We(S.LinearProgress,"warningBg",Kn(S.warning.main,.5)),We(S.Skeleton,"bg",`rgba(${v("palette-text-primaryChannel")} / 0.13)`),We(S.Slider,"primaryTrack",Kn(S.primary.main,.5)),We(S.Slider,"secondaryTrack",Kn(S.secondary.main,.5)),We(S.Slider,"errorTrack",Kn(S.error.main,.5)),We(S.Slider,"infoTrack",Kn(S.info.main,.5)),We(S.Slider,"successTrack",Kn(S.success.main,.5)),We(S.Slider,"warningTrack",Kn(S.warning.main,.5));const T=wc(S.background.default,.98);We(S.SnackbarContent,"bg",T),We(S.SnackbarContent,"color",ci(()=>S.getContrastText(T))),We(S.SpeedDialAction,"fabHoverBg",wc(S.background.paper,.15)),We(S.StepConnector,"border",v("palette-grey-600")),We(S.StepContent,"border",v("palette-grey-600")),We(S.Switch,"defaultColor",v("palette-grey-300")),We(S.Switch,"defaultDisabledColor",v("palette-grey-600")),We(S.Switch,"primaryDisabledColor",Kn(S.primary.main,.55)),We(S.Switch,"secondaryDisabledColor",Kn(S.secondary.main,.55)),We(S.Switch,"errorDisabledColor",Kn(S.error.main,.55)),We(S.Switch,"infoDisabledColor",Kn(S.info.main,.55)),We(S.Switch,"successDisabledColor",Kn(S.success.main,.55)),We(S.Switch,"warningDisabledColor",Kn(S.warning.main,.55)),We(S.TableCell,"border",Kn(bc(S.divider,1),.68)),We(S.Tooltip,"bg",bc(S.grey[700],.92))}wi(S.background,"default"),wi(S.background,"paper"),wi(S.common,"background"),wi(S.common,"onBackground"),wi(S,"divider"),Object.keys(S).forEach(T=>{const R=S[T];T!=="tonalOffset"&&R&&typeof R=="object"&&(R.main&&We(S[T],"mainChannel",Ha($a(R.main))),R.light&&We(S[T],"lightChannel",Ha($a(R.light))),R.dark&&We(S[T],"darkChannel",Ha($a(R.dark))),R.contrastText&&We(S[T],"contrastTextChannel",Ha($a(R.contrastText))),T==="text"&&(wi(S[T],"primary"),wi(S[T],"secondary")),T==="action"&&(R.active&&wi(S[T],"active"),R.selected&&wi(S[T],"selected")))})}),_=t.reduce((O,S)=>jr(O,S),_);const M={prefix:i,disableCssColorScheme:r,shouldSkipGeneratingVar:l,getSelector:bT(_)},{vars:j,generateThemeVars:F,generateStyleSheets:k}=function(O,S={}){const{getSelector:v=$,disableCssColorScheme:I,colorSchemeSelector:T}=S,{colorSchemes:R={},components:A,defaultColorScheme:D="light",...L}=O,{vars:V,css:W,varsWithDefaults:P}=xu(L,S);let U=P;const X={},{[D]:ee,...H}=R;if(Object.entries(H||{}).forEach(([z,q])=>{const{vars:Z,css:Q,varsWithDefaults:Y}=xu(q,S);U=jr(U,Y),X[z]={css:Q,vars:Z}}),ee){const{css:z,vars:q,varsWithDefaults:Z}=xu(ee,S);U=jr(U,Z),X[D]={css:z,vars:q}}function $(z,q){let Z=T;if(T==="class"&&(Z=".%s"),T==="data"&&(Z="[data-%s]"),T?.startsWith("data-")&&!T.includes("%s")&&(Z=`[${T}="%s"]`),z){if(Z==="media")return O.defaultColorScheme===z?":root":{[`@media (prefers-color-scheme: ${R[z]?.palette?.mode||z})`]:{":root":q}};if(Z)return O.defaultColorScheme===z?`:root, ${Z.replace("%s",String(z))}`:Z.replace("%s",String(z))}return":root"}return{vars:U,generateThemeVars:()=>{let z={...V};return Object.entries(X).forEach(([,{vars:q}])=>{z=jr(z,q)}),z},generateStyleSheets:()=>{const z=[],q=O.defaultColorScheme||"light";function Z(te,ie){Object.keys(ie).length&&z.push(typeof te=="string"?{[te]:{...ie}}:te)}Z(v(void 0,{...W}),W);const{[q]:Q,...Y}=X;if(Q){const{css:te}=Q,ie=R[q]?.palette?.mode,fe=!I&&ie?{colorScheme:ie,...te}:{...te};Z(v(q,{...fe}),fe)}return Object.entries(Y).forEach(([te,{css:ie}])=>{const fe=R[te]?.palette?.mode,J=!I&&fe?{colorScheme:fe,...ie}:{...ie};Z(v(te,{...J}),J)}),z}}}(_,M);return _.vars=j,Object.entries(_.colorSchemes[_.defaultColorScheme]).forEach(([O,S])=>{_[O]=S}),_.generateThemeVars=F,_.generateStyleSheets=k,_.generateSpacing=function(){return ht.createSpacing(u.spacing,w3(this))},_.getColorSchemeSelector=function(O){return function(S){return O==="media"?`@media (prefers-color-scheme: ${S})`:O?O.startsWith("data-")&&!O.includes("%s")?`[${O}="${S}"] &`:O==="class"?`.${S} &`:O==="data"?`[data-${S}] &`:`${O.replace("%s",S)} &`:"&"}}(c),_.spacing=_.generateSpacing(),_.shouldSkipGeneratingVar=l,_.unstable_sxConfig={...Sd,...u?.unstable_sxConfig},_.unstable_sx=function(O){return Gl({sx:O,theme:this})},_.toRuntimeSource=_g,_}function z4(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...n!==!0&&n,palette:b3({...n===!0?{}:n.palette,mode:t})})}function Eg(e={},...t){const{palette:n,cssVariables:o=!1,colorSchemes:r=n?void 0:{light:!0},defaultColorScheme:i=n?.mode,...l}=e,c=i||"light",s=r?.[c],u={...r,...n?{[c]:{...typeof s!="boolean"&&s,palette:n}}:void 0};if(o===!1){if(!("colorSchemes"in e))return e5(e,...t);let h=n;"palette"in e||u[c]&&(u[c]!==!0?h=u[c].palette:c==="dark"&&(h={mode:"dark"}));const f=e5({...e,palette:h},...t);return f.defaultColorScheme=c,f.colorSchemes=u,f.palette.mode==="light"&&(f.colorSchemes.light={...u.light!==!0&&u.light,palette:f.palette},z4(f,"dark",u.dark)),f.palette.mode==="dark"&&(f.colorSchemes.dark={...u.dark!==!0&&u.dark,palette:f.palette},z4(f,"light",u.light)),f}return n||"light"in u||c!=="light"||(u.light=!0),wT({...l,colorSchemes:u,defaultColorScheme:c,...typeof o!="boolean"&&o},...t)}const kg=Eg();function Zr(){const e=ht.useTheme(kg);return e[n0]||e}function vT({theme:e,...t}){const n=n0 in e?e[n0]:void 0;return a.jsx(ht.ThemeProvider,{...t,themeId:n?n0:void 0,theme:n||e})}const ST="mui-color-scheme",CT="light",_T="dark",ET="mui-mode",{CssVarsProvider:kT,useColorScheme:JL,getInitColorSchemeScript:QL}=ht.unstable_createCssVarsProvider({themeId:n0,theme:()=>Eg({cssVariables:!0}),colorSchemeStorageKey:ST,modeStorageKey:ET,defaultColorScheme:{light:CT,dark:_T},resolveTheme:e=>{const t={...e,typography:Cg(e.palette,e.typography)};return t.unstable_sx=function(n){return Gl({sx:n,theme:this})},t}}),TT=kT;function Tg({theme:e,...t}){const n=o0.useMemo(()=>{if(typeof e=="function")return e;const o=n0 in e?e[n0]:e;return"colorSchemes"in o?null:"vars"in o?e:{...e,vars:null}},[e]);return n?a.jsx(vT,{theme:n,...t}):a.jsx(TT,{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 Vn="up",Hn="down",Nn="left",On="right",H1="tl",bs="t",ws="l",vr="c",ir="text/html",Bi="text/plain",bu="image/png",jT=Object.freeze({left:0,top:0}),MT=Object.freeze({left:0,top:0,bottom:0,right:0}),RT=Object.freeze({x:0,y:0,width:0,height:0});Object.freeze(Object.defineProperty({__proto__:null,EmptyBounds:RT,EmptyRect:MT,EmptyTopLeft:jT},Symbol.toStringTag,{value:"Module"}));const gr="column",ji="row",IT=Object.freeze({colIndex:0,rowIndex:0}),DT=Object.freeze({colStart:0,rowStart:0,colEnd:0,rowEnd:0}),jg=(e,t)=>e.colStart===t.colStart?e.rowStart-t.rowStart:e.colStart-t.colStart,Mg=(e,t)=>e.rowStart===t.rowStart?e.colStart-t.colStart:e.rowStart-t.rowStart,LT=(e,t)=>e.rowEnd===t.rowEnd?t.colEnd-e.colEnd:t.rowEnd-e.rowEnd,OT=(e,t)=>e.colEnd===t.colEnd?t.rowEnd-e.rowEnd:t.colEnd-e.colEnd,B4=(e,t)=>e.colIndex===t.colIndex?e.rowIndex-t.rowIndex:e.colIndex-t.colIndex,N4=(e,t)=>e.rowIndex===t.rowIndex?e.colIndex-t.colIndex:e.rowIndex-t.rowIndex,Rg=(e=ji,t=!1)=>t?e!==gr?LT:OT:e!==gr?Mg:jg,V4=(e,t)=>e===t||!(!e||!t)&&e.rowIndex===t.rowIndex&&e.colIndex===t.colIndex,t5=(e,t)=>e===t||!(!e||!t)&&e.rowStart===t.rowStart&&e.rowEnd===t.rowEnd&&e.colStart===t.colStart&&e.colEnd===t.colEnd,n5=(e,t)=>!(!e||!t||e.colStart>t.colEnd||t.colStart>e.colEnd||e.rowStart>t.rowEnd||t.rowStart>e.rowEnd),H4=(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(!t5(e[n],t[n]))return!1;return!0},wu=(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 c=n;return c?(c.colStart=o,c.rowStart=r,c.colEnd=i,c.rowEnd=l):c={colStart:o,rowStart:r,colEnd:i,rowEnd:l},c},$4=(e,t)=>{if(!t||t.length===0)return e;const n={...e};for(let o=0;o<t.length;o++){const r=t[o];n5(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},PT=[null,null],AT=(e,t,n)=>{if(e[0].value===e[1].value)return t};function W4(e,t=2,n,o=ji,r){let i=[...e];if(t<=0||e.length<=1)return i;let l=o===gr,c=0,s=!1;do{const u=i.sort(Rg(l?ji:gr));i=[],i.push(u[0]);const h=u.length;let f=0,p=u[0],m=p.colStart,g=p.rowStart,x=p.colEnd,y=p.rowEnd;for(let w=1;w<h;w++){const b=u[w];let C=!1;if(C=l?p&&g===b.rowStart&&y===b.rowEnd&&x+1===b.colStart:p&&m===b.colStart&&x===b.colEnd&&y+1===b.rowStart,C){let _={colStart:m,rowStart:g,colEnd:l?b.colEnd:x,rowEnd:l?y:b.rowEnd};if(p.value!==void 0&&(_.value=p.value),n){const E=r??[null,null];E[0]=p,E[1]=b,_=n(E,_,o)}if(_){i[f]=_,s=!0,p=_,m=p.colStart,g=p.rowStart,x=p.colEnd,y=p.rowEnd;continue}}i[++f]=b,p=b,m=p.colStart,g=p.rowStart,x=p.colEnd,y=p.rowEnd}c++,l=!l,c===1&&(s=!0)}while(c<t&&s&&i.length>1);return i}const Lt=Object.freeze(Object.defineProperty({__proto__:null,EmptyCell:IT,EmptyRange:DT,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:B4,columnFirstRangeComparator:jg,createCellComparator:(e=ji,t=!1)=>t?e!==gr?(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!==gr?N4:B4,createConflatingRanges:(e,t=!1)=>{const n=[];let o,r,i=Number.MIN_SAFE_INTEGER,l=Number.MIN_SAFE_INTEGER;return{append:(c,s,u)=>{let h=!0;const f=u!==void 0;if(f){const g=e?e(r,u,t):r===u?u:void 0;g===void 0?h=!1:u=g}if(h&&s===l+1&&c===i)return t?o.rowEnd=s:o.colEnd=s,l=s,void(r=u);o&&n.push(o);const p=t?c:s,m=t?s:c;o={colStart:p,rowStart:m,colEnd:p,rowEnd:m},f&&(o.value=u),i=c,l=s,r=u},done:c=>(o&&(n.push(o),o=null),c?W4(n,3,c===!0?AT:c,t?gr:ji,PT):n)}},createRangeComparator:Rg,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:$4,extendRangeToUnionRanges:(e,t)=>{if(!t||t.length===0)return e;let n=e,o=null;for(;!t5(n,o);)o=n,n=$4(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(n5(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 c=n;return c?(c.colStart=o,c.rowStart=r,c.colEnd=i,c.rowEnd=l):c={colStart:o,rowStart:r,colEnd:i,rowEnd:l},c},isCellWithinRange:(e,t)=>!(!e||!t||e.rowIndex<t.rowStart||e.rowIndex>t.rowEnd||e.colIndex<t.colStart||e.colIndex>t.colEnd),isEqualCells:V4,isEqualRanges:t5,isEqualRangesArrays:H4,isEqualSelectionCoords:(e,t)=>e===t||!(!e||!t)&&e.rangeIndex===t.rangeIndex&&!!V4(e.cell,t.cell)&&H4(e.ranges,t.ranges),isRangeWithinRange:(e,t)=>!(e.rowStart<t.rowStart||e.rowEnd>t.rowEnd||e.colStart<t.colStart||e.colEnd>t.colEnd),isRangesIntersect:n5,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:W4,rowFirstCellComparator:N4,rowFirstRangeComparator:Mg,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:wu,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=wu(o,e[r],n);return t&&(o=wu(o,t,n)),o}},Symbol.toStringTag,{value:"Module"})),FT=typeof Symbol=="function"&&Symbol.for?Symbol.for("react.element"):60103;function zT(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===FT}(e)}function Wa(e,t){return t.clone!==!1&&t.isMergeableObject(e)?V0((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}function BT(e,t,n){return e.concat(t).map(function(o){return Wa(o,n)})}function U4(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 q4(e,t){try{return t in e}catch{return!1}}function V0(e,t,n){(n=n||{}).arrayMerge=n.arrayMerge||BT,n.isMergeableObject=n.isMergeableObject||zT,n.cloneUnlessOtherwiseSpecified=Wa;const o=Array.isArray(t);return o===Array.isArray(e)?o?n.arrayMerge(e,t,n):function(r,i,l){const c={};return l.isMergeableObject(r)&&U4(r).forEach(function(s){c[s]=Wa(r[s],l)}),U4(i).forEach(function(s){var u,h;q4(u=r,h=s)&&(!Object.hasOwnProperty.call(u,h)||!Object.propertyIsEnumerable.call(u,h))||(q4(r,s)&&l.isMergeableObject(i[s])?c[s]=function(f,p){if(!p.customMerge)return V0;const m=p.customMerge(f);return typeof m=="function"?m:V0}(s,l)(r[s],i[s],l):c[s]=Wa(i[s],l))}),c}(e,t,n):Wa(t,n)}V0.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(n,o){return V0(n,o,t)},{})};const NT=Object.freeze([]),VT=Object.freeze({}),Z4=e=>e,s1=()=>"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)}),Ig=(e,t)=>e===t||!(!Array.isArray(e)||!Array.isArray(t)||e.length!==t.length)&&e.every((n,o)=>n===t[o]),wa=e=>typeof e=="object"&&!Array.isArray(e)&&e!==null,Dg=e=>typeof e!="object"||Array.isArray(e)||e===null?e:(Object.keys(e).forEach(function(t){e[t]&&typeof e[t]=="object"?Dg(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),HT=(e,t)=>!(e!==t&&!Ig(e,t)&&!e.isEqual?.(t)),Lg=(e,t,n=HT)=>{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];Lg(e[l],t?.[l],n)===null&&(r=!0,delete e[l])}return r&&Object.keys(e).length===0?null:void 0},G4=typeof performance=="object"&&typeof performance.now=="function"?()=>performance.now():()=>Date.now(),K4=e=>e==null,X4=(e,t)=>!(t.left>e.right||t.right<e.left||t.top>e.bottom||t.bottom<e.top),Y4=!(typeof window>"u"||!window.document||!window.document.createElement),lr={Windows:"windows",MacOS:"macos",IOS:"ios",Linux:"linux",Android:"android",Safari:"safari",Firefox:"firefox",Node:"node",Unknown:"unknown"},vs=()=>{if(Og())return lr.Node;const e=globalThis.navigator!==void 0&&globalThis.navigator.userAgent?globalThis.navigator.userAgent.toLowerCase():"";return e?/(win32|win64|windows|wince)/i.test(e)?lr.Windows:/(macintosh|macintel|macppc|mac68k|macos)/i.test(e)?lr.MacOS:/(iphone|ipad|ipod)/i.test(e)?lr.IOS:/android/.test(e)?lr.Android:/linux/.test(e)?lr.Linux:/^((?!chrome|android|).)*safari/i.test(e)?lr.Safari:/^((?!chrome|android|Seamonkey).)*firefox/i.test(e)?lr.Firefox:lr.Unknown:lr.Unknown};function Og(){return typeof process<"u"&&process.release?.name==="node"||(typeof process<"u"&&process.browser,!1)}const J4=(e,t=!1)=>(document.hasFocus()||t)&&(e===document.activeElement||e?.contains(document.activeElement)),Ro=Object.freeze(Object.defineProperty({__proto__:null,EmptyArray:NT,EmptyObject:VT,OSType:lr,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:Y4,cancelTimeout:e=>{cancelAnimationFrame(e.id)},castToString:e=>e==null||e===void 0?"":typeof e!="string"?""+e:e,cloneObject:e=>K4(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,c=0;function s(){let h=Date.now()-c;h<t&&h>=0?o=setTimeout(s,t-h):(o=null,n||(l=e.apply(i,r),i=r=null))}t==null&&(t=100);const u=function(){i=globalThis,r=arguments,c=Date.now();var h=n&&!o;return o||(o=setTimeout(s,t)),h&&(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:V0,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=Z4){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=Z4){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||!wa(l))return l;o=l}return o??null},getOS:vs,hasFocus:J4,isDefined:e=>e!=null,isEmpty:e=>e==null||e==="",isEqualArrays:Ig,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:Og,isNullOrUndefined:K4,isNumeric:e=>{const t=1*e;return Number.isFinite(t)&&typeof t=="number"},isObject:wa,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:X4,mergeContentful:(...e)=>{const t=e.length;if(t>0&&e[t-1]!==void 0&&!wa(e[t-1]))return e[t-1];let n=e[0]||{};for(let o=1;o<t;o++)n=V0(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(!Y4)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:Dg,removeEqualValues:Lg,removeListenerAll:e=>{if(!e)return[];for(let t=0;t<e.length;t++)e[t]&&e[t]();return[]},requestTimeout:(e,t)=>{const n=G4(),o={id:requestAnimationFrame(function r(){G4()-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 c=r[l];if(c==null&&(c={},r[l]=c),!wa(c))throw new Error("Can not set path to a non object path.");r=c}if(typeof n!="number"&&typeof n!="boolean"&&typeof n!="string"&&!wa(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(!X4(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})},c=()=>{t.right>r.left&&t.right<r.right&&(o.push({...r,left:t.right}),r={...r,right:t.right})},s=()=>{t.left>r.left&&t.left<r.right&&(o.push({...r,right:t.left}),r={...r,left:t.left})};return n?(s(),c(),i(),l()):(i(),l(),c(),s()),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:s1,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=>{J4(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 Pg=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")},o5=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:Pg,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:o5},Symbol.toStringTag,{value:"Module"}));const Ag="data:image/png;base64,",Fg="Unable to resolve image.",Q4=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(Fg)}),vu="image/svg+xml";var e7,t7;Object.freeze(Object.defineProperty({__proto__:null,DATA_URL_PNG_PREFIX:Ag,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(Fg)}),loadImageDetails:async(e,t=null)=>{let n=null;const o=async()=>{try{const i=t??"image/*",l=URL.createObjectURL(new Blob([e],{type:i})),c=await Q4(l);n={mimeType:i,naturalDimensions:c,asUrl:l}}catch{}},r=async()=>{try{const i=new TextDecoder().decode(e),l=URL.createObjectURL(new Blob([i],{type:vu})),c=await Q4(l);n={mimeType:t??vu,naturalDimensions:c,asUrl:l,asSVGText:i}}catch{}};if(t===vu?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"})),(t7=e7||(e7={})).resolveTypedUpdates=(e,t,n,o)=>{if(e===null)return e;if(e===void 0)return o;let r=e;if(t?.shorthand){const s=t?.shorthand(e,n);s!==void 0&&(r=s)}if(r!==null&&t?.getSubType){const s=t.getSubType(r);s&&(t=s)}const i=t?.properties,l=t?.arrayType??!1;let c=r;if(t&&t.merge&&c&&o)c=t.merge(c,o,n);else if(!l&&i){const s=Object.keys({...r,...o});c=null;for(let u=0;u<s.length;u++){const h=s[u];let f,p=r[h];if(p!==void 0){const m=i[h];f=m?(0,t7.resolveTypedUpdates)(p,m,n,o?.[h]):p}else f=o?.[h];f!=null&&(c=c??{},c[h]=f)}}return c};const n7=`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.`,Su=`You do not have permissions to access the clipboard.
|
|
48
|
+
All copy and paste operations will be limited to the browser tab.`,zg={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:Su,PermsWrite:vs()===lr.Safari?n7:Su,PermsRead:vs()===lr.Safari?n7:Su},Cu=async()=>new Promise(e=>{document.hasFocus()?e():globalThis.addEventListener?.("focus",()=>{e()},{once:!0}),document.activeElement.focus?.()}),_u=async(e,t,n)=>{if(vs()===lr.Safari)return await n(new Error(zg.Safari));try{const o=async l=>{try{return await l()}catch(c){if(c.message?.includes("Document is not focused"))return!1;throw c}},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)}},Bg=async e=>{try{return await e.read({unsanitized:[ir]})}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 c=0;c<l.length;c++){const s=l[c];let u=o[s];i[s]=typeof u=="string"?e(s,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 r5=async(e,t=ir)=>new Promise(async(n,o)=>{try{const r=await(async(i,l)=>{if(!i)return null;const c=await Bg(i);let s=!1;for(let u=0;!s&&c&&u<c.length;u++)if(s=c[u].types.includes(l),s)return await c[u].getType(l);return s?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)}}),o7=async(e,t=ir)=>{const n=await r5(e,t);if(!n)return null;let o=null;try{o=new DOMParser().parseFromString(n,ir)}catch{console.warn("Can't parse html from clipboard.")}return o},Ss="clipboard-uuid",nl="web text/uuid",r7=e=>`<div style="display:none" ${Ss}="${e}"/>`,$T=(e,t)=>{let n=null;try{const o=new DOMParser().parseFromString(t,ir);o.body.firstElementChild.setAttribute(Ss,e),n=o.getElementsByTagName("body")[0].innerHTML}catch(o){console.warn("Can't embed uuid.",o)}return n},i7=(e,t)=>{if(!t||!e)return!1;try{const n=t.querySelectorAll(`[${Ss}="${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 $1=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 _u("clipboard-read",async()=>{await Cu();const e=await r5(this._nativeClipboard,nl);if(!this._state||e&&e===this._state.uuid)return!0;const t=await o7(this._nativeClipboard,ir);return!this._state||(i7(this._state.uuid,t)||this.clear(),!0)},async e=>{e?.message==="denied"||e.message?.includes("Document is not focused")||vs()===lr.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 _u("clipboard-read",async()=>{if(await Cu(),this._state?.uuid){const t=await r5(this._nativeClipboard,nl);if(t&&t===e._state.uuid)return!0;const n=await o7(this._nativeClipboard,ir);if(i7(e._state?.uuid,n))return!0}return e._state={items:await Bg(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:s1(),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 _u("clipboard-write",async()=>{await Cu(),o&&r.length===0&&(r.push(new ClipboardItem({[nl]:new Blob([o],{type:nl})})),r.push(new ClipboardItem({[ir]:new Blob([r7(o)],{type:ir})})));for(let l=0;l<Math.min(1,r.length);l++){const c=r[l];let s=c.types.indexOf(ir),u=null;if(s!==-1){const p=await c.getType(ir);u=await o5(p),u&&(u=$T(o,u))}if(!u&&c.types.includes(Bi)){const p=await c.getType(Bi);if(p){let m=null;typeof p=="string"?(console.warn("text as string",p),m=p):m=await o5(p),m&&(u=`<div ${Ss}="${o}">${m}</div>`)}}if(!u&&c.types.includes(bu)){const p=await c.getType(bu),m=Pg(await p.arrayBuffer());u=`<div ${Ss}="${o}"><img src="${Ag+m}"/></div>`}!u&&o&&(u=r7(o));const h=new Blob([u??""],{type:ir}),f={};for(let p=0;p<c.types.length;p++){const m=c.types[p];f[m]=p===s?h:c.getType(m)}u&&s===-1&&(f[ir]=h),o&&(f[nl]=new Blob([o],{type:nl})),n.push(new ClipboardItem(f))}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[Bi]=new Blob([r??""],{type:Bi}))}catch(r){t=r}try{const r=await e.toHtml?.()??null;r&&(n[ir]=new Blob([r],{type:ir}))}catch(r){t=r,console.warn("export to html",r)}try{const r=await e.toImage?.()??null;r&&(n[bu]=r)}catch(r){t=r,console.warn("export to png",r)}const o=this._write({uuid:s1(),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(Bi)&&(o=await n[i].getType(Bi));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({[Bi]:new Blob([e],{type:Bi})})];return this._write({uuid:s1(),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 Eu;(Eu=$1||($1={})).ErrorMessages=zg,Eu.Global=new Eu,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 Ua={Left:"left",Right:"right",Center:"center"},bo="shift",m0="alt",Vo="ctrl",a0={Horizontal:"horizontal",Vertical:"vertical"};function Ng(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=Ng(e[t]))&&(o&&(o+=" "),o+=n)}else for(n in e)e[n]&&(o&&(o+=" "),o+=n);return o}function yl(){for(var e,t,n=0,o="",r=arguments.length;n<r;n++)(e=arguments[n])&&(t=Ng(e))&&(o&&(o+=" "),o+=t);return o}var WT=function(){},Vg=typeof window<"u",UT=Vg?d.useLayoutEffect:d.useEffect,l7={x:0,y:0,width:0,height:0,top:0,left:0,bottom:0,right:0};const H0=Vg&&window.ResizeObserver!==void 0?function(){var e=d.useState(null),t=e[0],n=e[1],o=d.useState(l7),r=o[0],i=o[1],l=d.useMemo(function(){return new window.ResizeObserver(function(c){if(c[0]){var s=c[0].contentRect,u=s.x,h=s.y,f=s.width,p=s.height,m=s.top,g=s.left,x=s.bottom,y=s.right;i({x:u,y:h,width:f,height:p,top:m,left:g,bottom:x,right:y})}})},[]);return UT(function(){if(t)return l.observe(t),function(){l.disconnect()}},[t]),[n,r]}:function(){return[WT,l7]},at=(e,t)=>{const n=d.useCallback((...i)=>e?.(...i),t),o=d.useRef(null);o.current=n;const r=d.useCallback((...i)=>o.current?.(...i),[]);if(o.current)return r},qT=e=>{const{style:t,orientation:n=a0.Vertical,...o}=e,r=n===a0.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"})})})})},ZT=e=>{const{style:t,orientation:n=a0.Vertical,...o}=e,r=n===a0.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"})})})})},i5=(e,t,n,o,r=0)=>{for(let i=0;i<n.length;i++){const l=n[i].getBoundingClientRect();let c=l.left-t,s=c+l.width;if(o){if(c<e&&s>=e)return c}else if(Math.ceil(s)>Math.ceil(e)+2)return s}return r};Object.freeze(Object.defineProperty({__proto__:null,getScrollTo:i5},Symbol.toStringTag,{value:"Module"}));const S3=d.memo(d.forwardRef((e,t)=>{const{offset:n=0,totalSize:o=0,viewportSize:r=0,style:i,className:l,orientation:c=a0.Vertical,onScrollOffset:s,onScroll:u,showCustomScrollButtons:h=!1,scrollButtonIncrement:f=200,scrollButtonInitialRepeatDelay:p=260,scrollButtonAdditionalRepeatDelay:m=120,createScrollStartButton:g=qT,createScrollEndButton:x=ZT,...y}=e,w=at(u,[u]),b=d.useRef(null),[C,{width:_,height:E}]=H0(),[M,{width:j,height:F}]=H0(),k=c===a0.Vertical,O=k?"top":"left",S=k?"scrollTop":"scrollLeft",v=k?E:_,I=k?F:j,[T,R]=d.useState(null);d.useEffect(()=>{T!==null&&b.current&&b.current.scrollTo({behavior:"smooth",[O]:T})},[T,k]);const A=d.useCallback((z,q=!1)=>{if(!b.current)return 0;const Z=b.current.querySelector(".scrollbar-viewport"),Q=Z.getBoundingClientRect(),Y=Z.children,te=q?0:i5(z,Q[O],Y,!0,Math.max(0,z-f));return R(te),Math.max(0,te)},[]),D=d.useCallback((z,q=!1)=>{if(!b.current)return 0;const Z=b.current.querySelector(".scrollbar-viewport"),Q=Z.getBoundingClientRect(),Y=Z.children,te=Math.ceil(I-v),ie=q?te:i5(z,Q[O],Y,!1,Math.max(0,z+f));return R(ie),Math.min(te,ie)},[I,v]),L=d.useRef(null),V=d.useCallback(z=>{L.current=n;const q=z.target[S];s(q,r,o),w?.(z)},[s,r,o,n]);d.useEffect(()=>{const z=L.current;L.current=null,n!==z&&(b.current[S]=n)},[n,S]);const W=d.useRef(null),P=d.useRef(null),U=d.useCallback(()=>{W.current&&(clearTimeout(W.current),W.current=null,P.current=null)},[]),X=d.useCallback((z,q,Z,Q=p)=>{P.current=z,W.current=setTimeout(()=>{const Y=Z?A(P.current||z):D(P.current||z);Y!==P.current?X(Y,!1,Z,m):U()},q?0:Q)},[A,D,U]);d.useEffect(()=>()=>U(),[U]);const ee=n,H=d.useMemo(()=>{if(!h)return null;const z={orientation:c,disabled:Math.floor(ee)<=0||Math.floor(I-v)===0,onMouseUp:U,onMouseLeave:U,onMouseDown:()=>X(ee,!0,!0)};return g?.(z)},[h,c,ee,T,I,v]),$=d.useMemo(()=>{if(!h)return null;const z={orientation:c,disabled:Math.floor(I-v)<=Math.ceil(ee),onMouseUp:U,onMouseLeave:U,onMouseDown:()=>X(ee,!0,!1)};return x?.(z)},[h,c,ee,T,I,v]);return a.jsxs("div",{ref:t,style:{display:"flex",flex:"1",flexDirection:k?"column":"row",padding:"0",...i},className:yl("_sheetxl-scrollbar_eblx4_6",l),...y,children:[H,a.jsx("div",{className:"pseudo-scrollbar",style:{flex:"1 1 100%",display:"flex",boxSizing:"content-box",flexDirection:k?"column":"row",justifyContent:"center",alignItems:"center"},ref:C,children:a.jsx("div",{tabIndex:-1,style:{flex:"1 1 100%",overflowY:k?"scroll":"hidden",overflowX:k?"hidden":"scroll",position:"relative",willChange:"transform"},onScroll:V,ref:b,children:a.jsx("div",{ref:M,style:{position:"absolute",height:k?o-r+(E??0):1,width:k?1:o-r+(_??0)},className:"scrollbar-viewport"})})}),$]})}));S3.displayName="Scrollbar";let a7=Date.now,Ki={},GT=1;const va=e=>{let t=Ki[e]!==null;return t&&(Ki[e]=null),t},s7=(e,t,n,o=0,r)=>{let i=a7(),l=i,c=0,s=0,u=0,h=GT++;if(h%20==0){const p={};for(let m in Ki)p[m]=!0;Ki=p}const f=function(p){let m=p!==!0,g=a7(),x=!0;try{x=(!t||t(h))??!0}catch{x=!1}if(!Ki[h]||!x)return Ki[h]=null,void n?.(60-s/((g-i)/1e3),h,!1);if(m){u=Math.round((g-l)/16.666666666666668)-1;for(let b=0;b<Math.min(u,4);b++)f(!0),s++}o&&(c=(g-i)/o,c>1&&(c=1));let y=r?r(c):c,w=!1;try{w=e(y,g,m)}catch{w=!1}w!==!1&&c!==1||!m?m&&(l=g,requestAnimationFrame(f)):(Ki[h]=null,n?.(60-s/((g-i)/1e3),h,c===1||o==null))};return Ki[h]=!0,requestAnimationFrame(f),h},KT=function(e){return Math.pow(e-1,3)+1},XT=function(e){return(e/=.5)<1?.5*Math.pow(e,3):.5*(Math.pow(e-2,3)+2)};let YT=class{constructor(e,t){this.__isSingleTouch=!1,this.__isTracking=!1,this.__didDecelerationComplete=!1,this.__isGesturing=!1,this.__isDragging=!1,this.__isDecelerating=0,this.__isAnimating=0,this.__interruptedAnimation=!1,this.__lastScale=1,this.__enableScrollX=!0,this.__enableScrollY=!0,this.__clientLeft=0,this.__clientTop=0,this.__clientWidth=0,this.__clientHeight=0,this.__contentWidth=0,this.__contentHeight=0,this.__snapWidth=100,this.__snapHeight=100,this.__zoomLevel=1,this.__scrollLeft=0,this.__scrollTop=0,this.__maxScrollLeft=0,this.__maxScrollTop=0,this.__scheduledLeft=0,this.__scheduledTop=0,this.__scheduledZoom=0,this.__lastTouchLeft=0,this.__lastTouchTop=0,this.__lastTouchMove=0,this.__positions=[],this.__initialTouchLeft=0,this.__initialTouchTop=0,this.__zoomLevelStart=1,this.__minDecelerationScrollLeft=null,this.__minDecelerationScrollTop=null,this.__maxDecelerationScrollLeft=null,this.__maxDecelerationScrollTop=null,this.__decelerationVelocityX=null,this.__decelerationVelocityY=0,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:void 0,penetrationDeceleration:.03,penetrationAcceleration:.08,...t}}setDimensions(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(e,t){this.__clientLeft=e||0,this.__clientTop=t||0}setSnapSize(e,t){this.__snapWidth=e,this.__snapHeight=t}getValues(){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(e,t){const n=this.getValues();return{left:e/n.zoom,top:t/n.zoom}}getScrollMax(){return{left:this.__maxScrollLeft,top:this.__maxScrollTop}}zoomTo(e,t=!1,n,o,r){if(!this.options.zooming)throw new Error("Zooming is not enabled!");r&&(this.__zoomComplete=r),this.__isDecelerating&&(va(this.__isDecelerating),this.__isDecelerating=0);const 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);const l=e/i;let c=l*(this.__scrollLeft+n)-n,s=l*(this.__scrollTop+o)-o;c>this.__maxScrollLeft?c=this.__maxScrollLeft:c<0&&(c=0),s>this.__maxScrollTop?s=this.__maxScrollTop:s<0&&(s=0),this.__publish(c,s,e,t)}zoomBy(e,t=!1,n=0,o=0,r){this.zoomTo(this.__zoomLevel*e,t,n,o,r)}scrollTo(e,t,n=!1,o=1){if(this.__isDecelerating&&(va(this.__isDecelerating),this.__isDecelerating=0),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(e=0,t=0,n=!1){const o=this.__isAnimating?this.__scheduledLeft:this.__scrollLeft,r=this.__isAnimating?this.__scheduledTop:this.__scrollTop;this.scrollTo(o+(e||0),r+(t||0),n)}doMouseZoom(e,t,n,o){const r=e>0?.97:1.03;return this.zoomTo(this.__zoomLevel*r,!1,n-this.__clientLeft,o-this.__clientTop)}doTouchStart(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);let n,o;this.__interruptedAnimation=!0,this.__isDecelerating&&(va(this.__isDecelerating),this.__isDecelerating=0,this.__interruptedAnimation=!0),this.__isAnimating&&(va(this.__isAnimating),this.__isAnimating=0,this.__interruptedAnimation=!0);let 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(e,t,n=1){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)return;let 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);let i=this.__positions;if(this.__isDragging){let l=o-this.__lastTouchLeft,c=r-this.__lastTouchTop,s=this.__scrollLeft,u=this.__scrollTop,h=this.__zoomLevel;if(n!==void 0&&this.options.zooming){let f=h;if(h=h/this.__lastScale*n,h=Math.max(Math.min(h,this.options.maxZoom),this.options.minZoom),f!==h){let p=o-this.__clientLeft,m=r-this.__clientTop;s=(p+s)*h/f-p,u=(m+u)*h/f-m,this.__computeScrollMax(h)}}if(this.__enableScrollX){s-=l*this.options.speedMultiplier;let f=this.__maxScrollLeft;(s>f||s<0)&&(this.options.bouncing?s+=l/2*this.options.speedMultiplier:s=s>f?f:0)}if(this.__enableScrollY){u-=c*this.options.speedMultiplier;const f=this.__maxScrollTop;(u>f||u<0)&&(this.options.bouncing?u+=c/2*this.options.speedMultiplier:u=u>f?f:0)}i.length>60&&i.splice(0,30),i.push(s,u,t),this.__publish(s,u,h)}else{let l=this.options.locking?3:0,c=5,s=Math.abs(o-this.__initialTouchLeft),u=Math.abs(r-this.__initialTouchTop);this.__enableScrollX=this.options.scrollingX&&s>=l,this.__enableScrollY=this.options.scrollingY&&u>=l,i.push(this.__scrollLeft,this.__scrollTop,t),this.__isDragging=(this.__enableScrollX||this.__enableScrollY)&&(s>=c||u>=c),this.__isDragging&&(this.__interruptedAnimation=!1)}this.__lastTouchLeft=o,this.__lastTouchTop=r,this.__lastTouchMove=t,this.__lastScale=n}doTouchEnd(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){let t=this.__positions,n=t.length-1,o=n;for(let r=n;r>0&&t[r]>this.__lastTouchMove-100;r-=3)o=r;if(o!==n){const r=t[n]-t[o],i=this.__scrollLeft-t[o-2],l=this.__scrollTop-t[o-1];this.__decelerationVelocityX=i/r*(1e3/60),this.__decelerationVelocityY=l/r*(1e3/60);const 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(e,t,n,o=!1){const r=this.__isAnimating;if(r&&(va(r),this.__isAnimating=0),o&&this.options.animating){this.__scheduledLeft=e,this.__scheduledTop=t,this.__scheduledZoom=n;const i=this.__scrollLeft,l=this.__scrollTop,c=this.__zoomLevel,s=e-i,u=t-l,h=n-c,f=function(g,x,y){y&&(this.__scrollLeft=i+s*g,this.__scrollTop=l+u*g,this.__zoomLevel=c+h*g,this.__callback&&this.__callback(this.__scrollLeft,this.__scrollTop,this.__zoomLevel))}.bind(this),p=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=s7(f,p,m,this.options.animationDuration,r?KT:XT)}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(e=this.__zoomLevel){this.__maxScrollLeft=Math.max(this.__contentWidth*e-this.__clientWidth,0),this.__maxScrollTop=Math.max(this.__contentHeight*e-this.__clientHeight,0)}__startDeceleration(e){if(this.options.paging){const i=Math.max(Math.min(this.__scrollLeft,this.__maxScrollLeft),0),l=Math.max(Math.min(this.__scrollTop,this.__maxScrollTop),0),c=this.__clientWidth,s=this.__clientHeight;this.__minDecelerationScrollLeft=Math.floor(i/c)*c,this.__minDecelerationScrollTop=Math.floor(l/s)*s,this.__maxDecelerationScrollLeft=Math.ceil(i/c)*c,this.__maxDecelerationScrollTop=Math.ceil(l/s)*s}else this.__minDecelerationScrollLeft=0,this.__minDecelerationScrollTop=0,this.__maxDecelerationScrollLeft=this.__maxScrollLeft,this.__maxDecelerationScrollTop=this.__maxScrollTop;const t=function(i,l,c){this.__stepThroughDeceleration(c)}.bind(this),n=this.options.snapping?4:.1,o=function(){const i=Math.abs(this.__decelerationVelocityX)>=n||Math.abs(this.__decelerationVelocityY)>=n;return i||(this.__didDecelerationComplete=!0),i}.bind(this),r=function(i,l,c){this.__isDecelerating=0,this.__didDecelerationComplete&&this.options.scrollingComplete?.(),this.scrollTo(this.__scrollLeft,this.__scrollTop,this.options.snapping)}.bind(this);this.__isDecelerating=s7(t,o,r)}__stepThroughDeceleration(e){let t=this.__scrollLeft+this.__decelerationVelocityX,n=this.__scrollTop+this.__decelerationVelocityY;if(!this.options.bouncing){const o=Math.max(Math.min(this.__maxDecelerationScrollLeft,t),this.__minDecelerationScrollLeft);o!==t&&(t=o,this.__decelerationVelocityX=0);const 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){let o=0,r=0,i=this.options.penetrationDeceleration,l=this.options.penetrationAcceleration;t<this.__minDecelerationScrollLeft?o=this.__minDecelerationScrollLeft-t:t>this.__maxDecelerationScrollLeft&&(o=this.__maxDecelerationScrollLeft-t),n<this.__minDecelerationScrollTop?r=this.__minDecelerationScrollTop-n:n>this.__maxDecelerationScrollTop&&(r=this.__maxDecelerationScrollTop-n),o!==0&&(o*this.__decelerationVelocityX<=0?this.__decelerationVelocityX+=o*i:this.__decelerationVelocityX=o*l),r!==0&&(r*this.__decelerationVelocityY<=0?this.__decelerationVelocityY+=r*i:this.__decelerationVelocityY=r*l)}}};var Mr=typeof window<"u"?window:{screen:{},navigator:{}},Vl=(Mr.matchMedia||function(){return{matches:!1}}).bind(Mr),Hg=!1,JT={get passive(){return Hg=!0}},c7=function(){};Mr.addEventListener&&Mr.addEventListener("p",c7,JT),Mr.removeEventListener&&Mr.removeEventListener("p",c7,!1);var QT=Hg,ej="PointerEvent"in Mr,C3="ontouchstart"in Mr,$g=C3||"TouchEvent"in Mr&&Vl("(any-pointer: coarse)").matches,d7=(Mr.navigator.maxTouchPoints||0)>0||$g,Wg=Mr.navigator.userAgent||"",tj=Vl("(pointer: coarse)").matches&&/iPad|Macintosh/.test(Wg)&&Math.min(Mr.screen.width||0,Mr.screen.height||0)>=768,Ug=(Vl("(pointer: coarse)").matches||!Vl("(pointer: fine)").matches&&C3)&&!/Windows.*Firefox/.test(Wg),nj=Vl("(any-pointer: fine)").matches||Vl("(any-hover: hover)").matches||tj||!C3,l5=!d7||!nj&&Ug?d7?"touchOnly":"mouseOnly":"hybrid",oj=l5==="mouseOnly"?"mouse":l5==="touchOnly"||Ug?"touch":"mouse";const rj=Object.freeze(Object.defineProperty({__proto__:null,deviceType:l5,primaryInput:oj,supportsPassiveEvents:QT,supportsPointerEvents:ej,supportsTouchEvents:$g},Symbol.toStringTag,{value:"Module"})),ij=new Set(["INPUT","TEXTAREA","SELECT"]),qg={};function a5(){return rj}const $t=Object.freeze(Object.defineProperty({__proto__:null,EmptyCssProperties:qg,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:a5,focusableNodeNames:ij,toPrettyKeyCode:e=>e==="BracketLeft"?"[":e==="BracketRight"?"]":Ro.camelToPrettyCase(e)},Symbol.toStringTag,{value:"Module"})),lj=[];function Cd(e,t,n=lj){const o=d.useRef(null);return d.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),c=l.length;for(let s=0;s<c;s++){const u=l[s],h=i[u];Object.defineProperty(r,u,{value:h,writable:!0,configurable:!0,enumerable:!0})}return r},n),o}const u7=e=>a.jsx(S3,{...e}),aj=({width:e,height:t})=>a.jsx("div",{className:"corner",style:{minWidth:`${e}px`,width:`${e}px`,minHeight:`${t}px`,height:`${t}px`}}),Zg=d.memo(d.forwardRef((e,t)=>{const{children:n,viewport:o,onScrollViewport:r,showHorizontalScrollbar:i=!0,showVerticalScrollbar:l=!0,createScrollCorner:c=aj,createHorizontalScrollbar:s=u7,createVerticalScrollbar:u=u7,style:h,touchElement:f,disableTouch:p,...m}=e,g=at(r,[r]),x=Cd(t,()=>({isScrollPane:()=>!0}),[]),y=d.useRef(null);d.useEffect(()=>{y.current&&(y.current.__scrollTop===o?.top&&y.current.__scrollLeft===o?.left||y.current.__isDecelerating||y.current?.scrollTo(o?.left,o?.top,!1))},[o?.left,o?.top,f]);const w=d.useCallback((v,I)=>{g?.({left:v,top:I})},[]),b=d.useCallback(v=>{y.current?.doTouchStart(v.touches,v.timeStamp)},[]),C=d.useCallback(v=>{v.preventDefault(),y.current?.doTouchMove(v.touches,v.timeStamp)},[]),_=d.useCallback(v=>{y.current?.doTouchEnd(v.timeStamp)},[]),E=d.useCallback(({containerWidth:v,containerHeight:I,totalWidth:T,totalHeight:R})=>{y.current.setDimensions(v,I,T,R)},[]);d.useEffect(()=>{const v=f??x.current;if(!p&&a5().supportsTouchEvents&&v&&o){if(!y.current){const I={scrollingX:!0,scrollingY:!0,decelerationRate:.95,penetrationAcceleration:.08};y.current=new YT(w,I)}a5().supportsTouchEvents&&(v.addEventListener("touchstart",b),v.addEventListener("touchend",_),v.addEventListener("touchmove",C)),E({containerWidth:o?.width,containerHeight:o?.height,totalWidth:o?.totalWidth,totalHeight:o?.totalHeight})}return()=>{v?.removeEventListener("touchstart",b),v?.removeEventListener("touchend",_),v?.removeEventListener("touchmove",C)}},[o?.width,o?.height,o?.totalWidth,o?.totalHeight,p,f]);const[M,{width:j}]=H0(),[F,{height:k}]=H0(),O=d.useMemo(()=>{const v=u({orientation:a0.Vertical,offset:o?.top,viewportSize:o?.height,totalSize:o?.totalHeight,onScrollOffset:I=>{g?.({top:I})}});return a.jsx("div",{style:{display:"flex",flex:"0"},ref:M,children:v})},[u,o?.top,o?.height,o?.totalHeight]),S=d.useMemo(()=>{const v=s({orientation:a0.Horizontal,offset:o?.left,viewportSize:o?.width,totalSize:o?.totalWidth,onScrollOffset:I=>g?.({left:I})});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% - ${j}px)`},children:a.jsx("div",{ref:F,className:"sizer",children:v})}),l?c({width:j,height:k}):a.jsx(a.Fragment,{})]})},[s,o?.left,o?.width,o?.totalWidth,l,c,j,k]);return a.jsx("div",{style:{position:"relative",display:"flex",minWidth:l?`${j}px`:void 0,minHeight:i?`${k}px`:void 0,...h},...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?O:a.jsx(a.Fragment,{})]}),i?S:a.jsx(a.Fragment,{})]})})}));Zg.displayName="ScrollPane";const sj=()=>{const e=document.fullscreenElement;return e?e.querySelector(".fullscreen-portal-root")||e:document.body};let vc=0;function Gg(){return d.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 vc++,e(),document.addEventListener("fullscreenchange",e),()=>{document.removeEventListener("fullscreenchange",e),vc--,vc<=0&&(document.querySelectorAll(".fullscreen-portal-root").forEach(t=>{t.parentNode&&t.parentNode.removeChild(t)}),vc=0)}},[]),{getPortalContainer:sj}}const cj=100,dj=100,uj=1e6,hj=100,pj=50,fj=d.memo(d.forwardRef((e,t)=>{const{offset:n=0,viewportSize:o=0,totalSize:r=0,minSize:i=0,endGap:l=cj,endScrollIncrement:c=dj,style:s=qg,onMouseDown:u,onScrollOffset:h,onScroll:f,scaleLimit:p=uj,scaleFactor:m=hj,precisionFactor:g=pj,...x}=e;f&&console.warn("onScroll not supported for VirtualScrollbar. Use onScrollOffset instead");const y=at(u,[u]),w=()=>({offset:n,totalSize:p===0?r:Math.min(r??0,Math.max(i??0,(n??0)+(o??0))+(l??0))}),[b,C]=d.useState(w),_=p!==0&&b.totalSize>p?m:1,E=_/g,M=Math.ceil(b.totalSize/_),j=Math.ceil(b.offset/_),F=Math.ceil(o/_),k=d.useCallback(A=>{},[]),[O,S]=d.useState(!1),v=d.useRef(null);d.useLayoutEffect(()=>{if(!O){v.current={propTotalSize:r,propViewportSize:o,propOffset:n};const A=w();C(A)}},[r,o,n,O,i,l,c]);const I=at((A,D,L)=>{const V=v.current;v.current=null,V&&V.propTotalSize===r&&V.propViewportSize===o&&V.propOffset===n||(Math.abs(A-j)<E&&(A=j),h?.(A*_,j,F))},[h,_,E,j,F]),T=d.useCallback(A=>{document.removeEventListener("mousemove",k),document.removeEventListener("mouseup",T),S(!1)},[]),R=d.useCallback(A=>{y?.(A),S(!0),document.addEventListener("mousemove",k,{passive:!0}),document.addEventListener("mouseup",T,{passive:!0})},[k,T]);return a.jsx(S3,{ref:t,style:{...s},...x,offset:j,totalSize:M,viewportSize:F,onMouseDown:R,onScrollOffset:I})}));function ku(e,t){if(typeof e=="function")return e(t);e&&(e.current=t)}fj.displayName="VirtualScrollbar";var W1=parseInt(d.version.split(".")[0],10)>=19?function(e){return t=>{const n=[];for(const o of e){const r=ku(o,t),i=typeof r=="function";n.push(i?r:()=>ku(o,null))}return()=>{for(const o of n)o()}}}:function(e){return t=>{for(const n of e)ku(n,t)}};d.memo(d.forwardRef((e,t)=>{const{refFocusStart:n,...o}=e,r=d.useRef(null),i=d.useCallback(()=>{if(n)return void n?.current?.focus();const l=r.current.parentElement.children;let c=[];for(let s=0;s<l.length&&l[s]!==r.current;s++){const u=l[s].getAttribute("tabindex");if(u==null||u==="-1"||l[s].getAttribute("disabled")==="true")continue;const h=l[s];h.focus&&c.push({tabindex:parseInt(u),child:h})}c.length!==0&&(c.sort(function(s,u){return s.tabindex-u.tabindex}),c[0].child.focus())},[n]);return a.jsx("div",{tabIndex:0,ref:W1([r,t]),onFocus:i,...o})})),d.memo(d.forwardRef((e,t)=>{const{className:n,style:o,children:r,radius:i=4,strokeWidth:l=1,strokeColor:c="grey",...s}=e,[u,{width:h,height:f}]=H0(),p=d.useRef(null),m=(w,b=0)=>{const C=w/2,_=f-C+b;return function(E,M,j=!1){if(M===0)return E;function F(T,R,A){let D=R.x-T.x,L=R.y-T.y,V=Math.sqrt(D*D+L*L);return k(T,R,Math.min(1,A/V))}function k(T,R,A){return{x:T.x+(R.x-T.x)*A,y:T.y+(R.y-T.y)*A}}function O(T,R){T.length>2&&(T[T.length-2]=R.x,T[T.length-1]=R.y)}function S(T){return{x:parseFloat(T[T.length-2]),y:parseFloat(T[T.length-1])}}let v=E.split(/[,\s]/).reduce(function(T,R){let A=R.match("([a-zA-Z])(.+)");return A?(T.push(A[1]),T.push(A[2])):T.push(R),T},[]).reduce(function(T,R){return parseFloat(R)==R&&T.length?T[T.length-1].push(R):T.push([R]),T},[]),I=[];if(v.length>1){let T=S(v[0]),R=null;v[v.length-1][0]==="Z"&&v[0].length>2&&(R=["L",T.x,T.y],v[v.length-1]=R),I.push(v[0]);for(let A=1;A<v.length;A++){let D=I[I.length-1],L=v[A],V=L===R?v[1]:v[A+1];if(V&&D&&D.length>2&&L[0]==="L"&&V.length>2&&V[0]==="L"){let W,P,U=S(D),X=S(L),ee=S(V);j?(W=k(X,D.origPoint||U,M),P=k(X,V.origPoint||ee,M)):(W=F(X,U,M),P=F(X,ee,M)),O(L,W),L.origPoint=X,I.push(L);let H=k(W,X,.5),$=k(X,P,.5),z=["C",H.x,H.y,$.x,$.y,P.x,P.y];z.origPoint=X,I.push(z)}else I.push(L)}if(R){let A=S(I[I.length-1]);I.push(["Z"]),O(I[0],A)}}else I=v;return I.reduce(function(T,R){return T+R.join(" ")+" "},"")}(`M 0 ${C} L ${i-.5} ${C} L ${i-.5} ${_} L ${2*i} ${_} L ${h-2*i} ${_} M ${h-2*i} ${_} L ${h-i} ${_} L ${h-i} ${C} L ${h} ${C}`,i)},g=d.useMemo(()=>m(l),[h,f,i,l]),x=d.useMemo(()=>{if(i===0)return;const w=i/2;return m(i)+`L ${h} 0 L 0 0 L 0 ${w}`},[g,i,l]),y=d.useMemo(()=>({style:{clipPath:`path('${x}')`}}),[x]);return a.jsxs("div",{className:n,style:{display:"flex",flexDirection:"row",...o},...s,ref:W1([p,u,t]),children:[d.isValidElement(r)?d.cloneElement(r,y):a.jsx(a.Fragment,{}),a.jsx("svg",{style:{position:"absolute",top:0,left:0,pointerEvents:"none"},width:h,height:f,viewBox:`0 0 ${h} ${f}`,children:a.jsx("path",{d:g,stroke:c,fill:"none",vectorEffect:"non-scaling-stroke",strokeWidth:l})})]})}));const mj={},gj=e=>{const{onPointerDown:t,style:n,splitDirection:o,paddingBefore:r=0,paddingAfter:i=0,disabled:l,key:c,hitAreaProps:s=mj,...u}=e,h=o==="row",{style:f,className:p,...m}=s;return a.jsx("div",{style:{...n,position:"relative"},...u,children:a.jsx("div",{className:yl("hit-box",p),style:{left:(h?-r:0)+"px",width:`calc(100% + ${h?r+i:0}px)`,top:(h?0:-r)+"px",height:`calc(100% + ${h?0:r+i}px)`,position:"absolute",...f},onPointerDown:l?void 0:t,...m})},c)},Sc={},g0=(e,t,n=!0)=>e===null?null:e.pixels!==null?n?e.pixels:t-e.pixels:(n?e.percent:100-e.percent)/100*t,Cc=(e,t=!0)=>e?.percent?`${t?e.percent:100-e.percent}%`:e?.pixels?`${e.pixels}px`:void 0,Ni=(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 Rl(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=at(t,[t]),c=at(n,[n]),s=at(o,[o]),u=d.useRef(!1),h=e?.timerInitial??230,f=e?.timerContinuous??h/2,p=d.useRef(null),m=d.useRef(null),g=d.useRef(null),x=d.useRef(null),y=d.useCallback(()=>{x.current&&(clearTimeout(x.current),x.current=null)},[]),w=d.useCallback(O=>{x.current=setTimeout(()=>{window.requestAnimationFrame(()=>{u.current!==!1&&s?.(m.current,g.current,p.current)}),w(f)},O??h)},[]);d.useEffect(()=>()=>y(),[]);const b=r?"pointer":"mouse",C=d.useCallback(O=>{O.stopPropagation(),O.stopImmediatePropagation(),O.preventDefault()},[]),_=at(O=>{document.removeEventListener(`${b}move`,j),document.removeEventListener(`${b}up`,_),document.removeEventListener("keydown",F),document.removeEventListener("keyup",k),document.removeEventListener("touchstart",C,{capture:!0}),document.removeEventListener("touchmove",C,{capture:!0}),window.removeEventListener("blur",E),y(),window.requestAnimationFrame(()=>{u.current!==!1&&(u.current=!1,c?.(O,g.current,p.current),g.current=null)})},[]),E=d.useCallback(()=>{u.current!==!1&&(u.current=!1,_(m.current))},[]),M=at(()=>{y(),w(f),window.requestAnimationFrame(()=>{u.current!==!1&&s?.(m.current,g.current,p.current)})},[f]),j=at(O=>{m.current=O,M()},[]),F=at(O=>{g.current={ctrlKey:O.ctrlKey,shiftKey:O.shiftKey,altKey:O.altKey,metaKey:O.metaKey},M()},[]),k=at(O=>{g.current={ctrlKey:O.ctrlKey,shiftKey:O.shiftKey,altKey:O.altKey,metaKey:O.metaKey},M()},[f]);return at(O=>{O.isDefaultPrevented()||(g.current={ctrlKey:O.ctrlKey,shiftKey:O.shiftKey,altKey:O.altKey,metaKey:O.metaKey},l(O,g.current)!==!1&&(p.current=O,m.current=O.nativeEvent,document.addEventListener(`${b}up`,_,{passive:!1}),document.addEventListener(`${b}move`,j,{passive:!1}),document.addEventListener("keydown",F,{passive:!1}),document.addEventListener("keyup",k,{passive:!1}),window.addEventListener("blur",E,{passive:!0}),r&&i&&(document.addEventListener("touchstart",C,{passive:!1,capture:!0}),document.addEventListener("touchmove",C,{passive:!1,capture:!0})),u.current=!0,w(h)))},[h,r])}d.memo(d.forwardRef((e,t)=>{const{elementBefore:n,elementAfter:o,splitDirection:r="row",fixedPane:i=null,position:l,onPositionChange:c,minBefore:s,maxBefore:u,minAfter:h,maxAfter:f,children:p,className:m,style:g,disabled:x=!1,onDragStart:y,onDragResize:w,onDragFinish:b,resizerProps:C=Sc,paneProps:_=Sc,paneBeforeProps:E=Sc,paneAfterProps:M=Sc,createResizer:j=gj}=e;if(p)throw new Error("Use elementBefore and elementAfter instead of children.");const F=d.useMemo(()=>d.isValidElement(o)&&d.isValidElement(n),[o,n]),k=d.useMemo(()=>{let ne=null;i&&(i==="before"?ne=0:i==="after"&&(ne=1));const be=ne===null;return{fixedPaneOffset:ne,isPercent:be,minBefore:Ni(s,be),maxBefore:Ni(u,be),minAfter:Ni(h,be),maxAfter:Ni(f,be)}},[s,u,h,f]),O=at(c,[c]),[S,v]=d.useState(()=>Ni(l,i===null));d.useEffect(()=>{v(Ni(l,i===null))},[l,i]);const[I,{width:T,height:R}]=H0(),[A,{width:D,height:L}]=H0(),V=r==="row"?D:L,W=r==="row"?T:R,P=d.useMemo(()=>((ne,be,ke,me)=>{const Ie=[null,null],we=[null,null];if(ne||(ne={percent:me.fixedPaneOffset===null?50:null,pixels:me.fixedPaneOffset===null?null:0}),be===0)return ne?.pixels!=null?me.fixedPaneOffset!==1?(Ie[0]=ne?.pixels,we[1]=100):(Ie[1]=ne?.pixels-ke,we[0]=100):ne?.percent!=null&&(me.fixedPaneOffset!==1?(we[0]=ne?.percent,we[1]=100-ne?.percent):(we[1]=ne?.percent,we[0]=100-ne?.percent)),{percents:we,pixels:Ie,minBefore:Cc(me.minBefore,!0),maxBefore:Cc(me.maxBefore,!0),minAfter:Cc(me.minAfter),maxAfter:Cc(me.maxAfter)};let xe=g0(ne,be,me.fixedPaneOffset!==1),Ee=be-ke,Fe=g0(me.minBefore,Ee,!0)??0,ft=g0(me.maxBefore,Ee,!0)??Ee,ut=0,Pe=0,Qe=0,nt=Ee;ut=(g0(me.maxAfter,be,!1)??ke)-ke,Pe=g0(me.minAfter,be,!1)??be,Qe=Math.max(Fe,ut),nt=Math.min(ft,Pe),xe=Math.max(Qe,Math.min(xe,nt)),Pe=Math.min(Ee-xe,g0(me.maxAfter,Ee-xe,!0)??Ee),ut=Math.min(Ee-xe,g0(me.minAfter,Ee-xe,!0)??Ee),Ie[0]=xe,Ie[1]=Ee-Ie[0];const Ke=Math.max(0,Math.min(100,xe/Ee*100));return we[0]=Ke,we[1]=100-we[0],{percents:we,pixels:Ie,minBefore:`${Fe}px`,minAfter:`${ut}px`,maxBefore:`${Ie[0]}px`,maxAfter:`${Ie[1]}px`}})(S,W,V,k),[k,S,W,V,r]),[U,X]=d.useState(!1),ee=at(y,[y]),H=at(w,[w]),$=at(b,[b]),z=d.useRef(null),q=d.useRef(null),Z=d.useRef(null),{style:Q,className:Y,...te}=_,ie={minWidth:0,minHeight:0,maxWidth:"100%",maxHeight:"100%",display:"flex",overflow:"hidden",...Q},{className:fe,style:J,...ae}=E,{className:Ce,style:Me,...re}=M,oe={flex:"1 1 100%",width:"100%",...g,flexDirection:r,display:"flex"},{className:ue,style:De,onPointerDown:ze,...mt}=C,bt=at(ne=>{const be=Ni(ne,i===null);v(be)},[i]),ve=at(ne=>{if(x||!U)return;const be=Ne.current?.getBoundingClientRect();let ke=0;ke=r==="row"?(ne.clientX??ne.touches?.[0]?.clientX)-be.x:(ne.clientY??ne.touches?.[0]?.clientY)-be.y,ke=Math.max(0,Math.min(W,ke)),k.fixedPaneOffset===1&&(ke=W-ke),l&&S.pixels===ke||v({pixels:ke,percent:null}),H?.(ke),ne.stopPropagation(),ne.preventDefault()},[k,r,x,U,S,W]),dt=at(ne=>{if(document.removeEventListener("pointermove",ve),document.removeEventListener("touchmove",ve),document.removeEventListener("pointerup",dt),U&&(X(!1),S)){if($(S.pixels),!Ni(l,i===null)||S.pixels!==l){const be={...S};be.percent===null&&(be.percent=be.pixels/W*100),O(be)}ne.stopPropagation(),ne.preventDefault()}},[S,U,l,i,W]),xt=at(ne=>{ze?.(ne),ne.defaultPrevented||x||U||(X(!0),ee(),document.addEventListener("pointermove",ve,{passive:!1}),document.addEventListener("touchmove",ve,{passive:!1}),document.addEventListener("pointerup",dt,{passive:!1}))},[ze]),Ne=Cd(t,()=>({setPosition:bt,isSplitPane:()=>!0}),[]),vt=d.useMemo(()=>F?j?.({key:"resizer",ref:W1([A,q]),className:yl("resizer",ue),onPointerDownCapture:xt,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,...De},splitDirection:r,disabled:x,...mt}):null,[F,ue,mt,r,De,x]),Xe=r==="row"?"Width":"Height",le={...ie,...J,flex:k.fixedPaneOffset===0&&P?.pixels[0]!==null?`0 0 ${Math.round(P?.pixels[0])}px`:`1 1 ${Math.round(P?.percents[0]??100)}%`,[`min${Xe}`]:P?.minBefore,[`max${Xe}`]:o?P?.maxBefore:"100%"},Ue={...ie,...Me,flex:k.fixedPaneOffset===1&&P?.pixels[1]!==null?`0 0 ${Math.round(P?.pixels[1])}px`:`1 1 ${Math.round(P?.percents[1]??100)}%`,[`min${Xe}`]:P?.minAfter,[`max${Xe}`]:n?P?.maxAfter:"100%"},ye=d.useMemo(()=>n?a.jsx("div",{ref:z,className:yl("before",Y,fe),style:le,...te,...ae,children:n},"before"):null,[n,_,E,k,P]),Se=d.useMemo(()=>o?a.jsx("div",{ref:Z,className:yl("after",Y,Ce),style:Ue,...te,...re,children:o},"after"):null,[o,_,M,k,P]);return a.jsxs("div",{ref:W1([I,Ne]),className:yl("splitPane",r==="row"?"vertical":"horizontal",{dragging:U},m),style:oe,children:[ye,vt,Se]})}));const xj=({initValue:e,useHookBody:t,applyStateChange:n})=>{const o=d.useRef(e);if(typeof t!="function")throw new Error("function expected as hook body parameter. got "+typeof t);const r=t();return d.useLayoutEffect(()=>{o.current!==r&&(o.current=r,n(r))},[n,r]),null},s5=e=>{console&&console.warn&&console.warn(e)},Tu=typeof self=="object"&&self.self===self&&self||typeof global=="object"&&global.global===global&&global||void 0;let yj=1,c5=!1,Kg=!1;const c1=[],bl=[],U1=()=>{bl.forEach(e=>e())},bj=({automaticContainerInternalUseOnly:e})=>{const[t,n]=d.useState([]),o=d.useRef([]);return o.current=t,e||c5!==!1||(Kg=!0),d.useEffect(()=>{let r=!0;function i(){if(r)return bl[0]!==i?(e||c5!==!0||s5("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([...c1])}return bl.push(i),U1(),()=>{r=!1,o.current?.length>0&&s5("SingletonHooksContainer is unmounted, but it has active singleton hooks. They will be reevaluated once SingletonHooksContainer is mounted again"),bl.splice(bl.indexOf(i),1),U1()}},[e]),a.jsx(a.Fragment,{children:t.map(({hook:r,key:i})=>d.createElement(xj,{...r,key:i}))})},Xg=(e,t,n={})=>{let o,r,i=!1,l=!1,c=[],{unmountIfNoConsumers:s=!1}=n;const u=f=>{r=f,ao.unstable_batchedUpdates(()=>c.forEach(p=>p(f)))},h=()=>(l||(r=typeof e=="function"?e():e,l=!0),r);return()=>{const[f,p]=d.useState(h);return d.useEffect(()=>(i||(i=!0,o=(m=>{const g=yj++;return c1.push({hook:m,key:g}),bl.length===0&&Kg===!1&&(c5=!0,(x=>{if(Tu.document&&Tu.document.createElement){const y=Tu.document.createElement("div");cd.createRoot(y).render(a.jsx(x,{automaticContainerInternalUseOnly:!0}))}else s5("Can not mount SingletonHooksContainer on server side. Did you manage to run useEffect on server? Please mount SingletonHooksContainer into your components tree manually.")})(bj)),U1(),()=>{c1.splice(c1.findIndex(x=>x.key===g),1),U1()}})({initValue:e,useHookBody:t,applyStateChange:u})),c.push(p),r!==f&&p(r),()=>{c.splice(c.indexOf(p),1),c.length===0&&s&&(o(),i=!1)}),[]),f}};Xg(null,()=>{const[e,t]=d.useState(null);return e});let wj=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}},an=class extends wj{};Ro.getOS()===Ro.OSType.MacOS||(Ro.getOS(),Ro.OSType.IOS),Ro.getOS()===Ro.OSType.MacOS||(Ro.getOS(),Ro.OSType.IOS),Xg({setClipboard:e=>{throw new Error("This is only available via the useClipboard.")},getClipboard:()=>$1.Global,refNativeCopy:{current:null},refNativeLastKey:{current:null}},()=>{const[e,t]=d.useState($1.Global);return{setClipboard:n=>t(n),getClipboard:()=>e,refNativeCopy:d.useRef(null),refNativeLastKey:d.useRef(null)}});let ju=!1,vj=0;var Sj=typeof document<"u"?d.useLayoutEffect:d.useEffect;const h7=()=>"sheetxl-ui-"+vj++,Cj=d.useId??function(){const[e,t]=d.useState(()=>ju?h7():void 0);return Sj(()=>{e==null&&t(h7())},[]),d.useEffect(()=>{ju||(ju=!0)},[]),e},wl=({itemType:e,index:t,itemSize:n,instanceProps:o,scale:r=1})=>{let i,l,c;e==="column"?(i=o.columnMetadataMap,l=o.lastMeasuredColumnIndex,c=o.recalcColumnIndices):(i=o.rowMetadataMap,l=o.lastMeasuredRowIndex,c=o.recalcRowIndices);const s=c.length>0;if(t>l){let u=0;if(l>=0){const h=i[l];u=h.offset+h.size}for(let h=l+1;h<=t;h++){let f=s?c.includes(h)?n(h)*r:i[h]?.size||n(h)*r:n(h)*r;i[h]={offset:u,size:f},u+=f}e==="column"?o.lastMeasuredColumnIndex=t:o.lastMeasuredRowIndex=t}return i[t],i[t]},p7=({itemType:e,itemSize:t,itemCount:n,instanceProps:o,offset:r,scale:i})=>{let l,c;e==="column"?(l=o.columnMetadataMap,c=o.lastMeasuredColumnIndex):(l=o.rowMetadataMap,c=o.lastMeasuredRowIndex);let s=0;return s=(c>0?l[c].offset:0)>=r?Yg({itemType:e,itemSize:t,instanceProps:o,high:c,low:0,offset:r,scale:i}):_j({itemType:e,itemSize:t,itemCount:n,instanceProps:o,index:Math.max(0,c),offset:r,scale:i}),s=Math.min(s,n),s},Yg=({itemType:e,itemSize:t,instanceProps:n,high:o,low:r,offset:i,scale:l})=>{for(;r<=o;){const c=r+Math.floor((o-r)/2),s=wl({itemType:e,itemSize:t,index:c,instanceProps:n,scale:l}).offset;if(s===i)return c;s<i?r=c+1:s>i&&(o=c-1)}return r>0?r-1:0},_j=({itemType:e,itemSize:t,itemCount:n,instanceProps:o,index:r,offset:i,scale:l})=>{let c=1;for(;r<n&&wl({itemType:e,itemSize:t,index:r,instanceProps:o,scale:l}).offset<i;)r+=c,c*=2;return Yg({itemType:e,itemSize:t,instanceProps:o,high:Math.min(r,n-1),low:Math.floor(r/2),offset:i,scale:l})},_3="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789 ~`!@#$%^&*()-_=+[{]};:'\",<.>/?|\\",f7=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"}},Ej=e=>!0,kj=e=>!(!e||e.ctrlKey||e.metaKey||e.altKey||e.isComposing||(e.shiftKey||e.key!=="F2"&&e.key!==" "&&e.key!=="Backspace")&&(e.shiftKey&&e.key===" "||_3.indexOf(e.key)===-1)),Tj=e=>!!e&&e.type==="dblclick"&&{editMode:!0},jj=e=>{const{session:t,refLatestCoords:n,handleSubmitEdit:o,handleCancelEdit:r,cellBounds:i,isInBounds:l,getCellEditor:c,propsEditor:s,borderStrokeFill:u="rgb(33, 115, 70)",borderStrokeWidth:h=2,alignment:f=Ua.Left,style:p,...m}=e,g=d.useRef(null),x=d.useRef(null),[y,w]=d.useState(!1),b=t.coords,C=d.useCallback(async S=>{if(g.current?.getBoundingClientRect()){if(S.eventType==="keyboard"){const v=S.event,I=new KeyboardEvent(v.type,{bubbles:!0,cancelable:!0,view:window,key:v.key,code:v.code,location:v.location,repeat:v.repeat,isComposing:v.isComposing,charCode:v.charCode,keyCode:v.keyCode,which:v.which,ctrlKey:v.ctrlKey,shiftKey:v.shiftKey,altKey:v.altKey,metaKey:v.metaKey});I.isSynthetic=!0,I.key,x.current?.dispatchEvent(I)}else S.eventType==="pointer"||console.warn("unsupported event type",S);await new Promise(v=>requestAnimationFrame(v))}},[]);d.useEffect(()=>{const S=x.current;return w(!0),x.current.startEdit?.(t.startEvent),(async()=>{t.editorRefs.push(S),t.editorRefsDispatchEditorEvent.push(C);const v=[...t.events];for(let I=0;I<v.length;I++)await C(v[I]);t.onMount(S)})(),()=>{const v=t.editorRefs.indexOf(S);v!==-1&&t.editorRefs.splice(v,1),t.onUnmount(S)}},[]);const _=d.useCallback(()=>o(t),[]),E=d.useCallback(()=>{r(t)},[]),M=n.current&&Lt.isEqualCells(n.current,b),j=l&&M&&y,F=c({autoFocus:!!t.startEvent?.autoFocus,...s,onSubmitEdit:_,onCancelEdit:E,ref:x},b),k=i.x+$t.boundPixel(-h/2),O=$t.boundPixel(i.width+h/2,!0);return a.jsx("div",{tabIndex:0,ref:g,style:{background:void 0,...p,opacity:j?p?.opacity??1:0,pointerEvents:"auto",position:"absolute",boxSizing:"border-box",top:`${i.y+$t.boundPixel(-h/2)}px`,height:$t.boundPixel(i.height+h/2,!0),left:`${k}px`,width:O},...m,children:a.jsx("div",{className:"editor-container",style:{position:"absolute",boxSizing:"border-box",left:`${$t.boundPixel(1)}px`,top:`${$t.boundPixel(1)}px`,width:$t.boundPixel(i.width-2,!0),height:$t.boundPixel(i.height-2,!0),outline:`${h}px ${u} solid`,boxShadow:"rgba(60,64,67,.35) 2px 2px 6px 3px",maxHeight:"100%",overflow:"hidden",display:"flex"},children:F})})},Mj=e=>{const{view:t,canEdit:n=Ej,getCellEditor:o,onBeforeStartEdit:r,onStartEdit:i,onSubmitEdit:l,onCancelEdit:c,onDoneEdit:s,isEditorStartKeyEvent:u=kj,isEditorStartPointerEvent:h=Tj,containerProps:f,borderStrokeFill:p,borderStrokeWidth:m=2,getRangeCoords:g=null,activeCoords:x,alignment:y=Ua.Left}=e,[w,b]=d.useState(!1),[C,_]=d.useState(void 0),E=at((q,Z,Q,Y,te,ie)=>{if(!Z)return null;const fe=te?.(Z,q),J=q.getRangeCoordsBounds(fe),ae=q.toClipBounds(J),Ce=J,Me=q.getZoom();if(!ae)return null;Q&&(Q*=Me),Y&&(Y*=Me);let re=Ce,oe=!1;if(Q!==void 0){let ze={...fe},mt=0;for(;!oe&&re.width<=Q&&mt<20;){mt++,mt>19&&console.warn("max width reached");const bt=q.getTotalRangeCoords(),ve=q.getLayout();ie===Ua.Left?ze.colEnd+1<bt.colEnd?ze.colEnd=ve.getColIndex(re.x+Q):oe=!0:ie===Ua.Right?ze.colStart-1>=0?ze.colStart=ve.getColIndex(re.x-(Q-re.width)):oe=!0:ie===Ua.Center&&ze.colEnd+1<bt.colEnd&&ze.colStart-1>=0?(ze.colStart=ve.getColIndex(re.x-(Q-re.width)/2),ze.colEnd=ve.getColIndex(re.x+re.width+(Q-re.width)/2)):oe=!0,oe||(re=q.getRangeCoordsBounds(ze))}}re.height=Ce.height,Y!==void 0&&(re.height=Math.max(Y+1,Ce.height));const{width:ue,height:De}=q.getViewportSize();return{x:re.x??0,y:re.y??0,height:Math.min(De-re.y,re.height)+1,width:Math.min(ue-re.x,re.width)+1}},[y]),M=at(n,[n]),j=d.useCallback(()=>{t?.getStage()?.focus()},[t]),F=d.useRef(null),k=at(q=>{r?.(q),W(),b(!0),F.current=null},[r]),O=at(q=>{i?.(q.coords)},[i]),S=at(q=>{q.isSubmitted||q.isCancelled||(T.current.isEditorClosed=!0,j(),q.isCancelled=!0,c?.(q.coords),W())},[c]),v=at(q=>{if(q.isSubmitted||q.isCancelled)return!1;try{return F.current=q.coords,q.isEditorClosing=!0,q.isSubmitted=!0,q.isEditorSubmitted||(q.isEditorSubmitted=!0,q.editorRefs[0]?.submitEdit?.()),q.coords,l?.(q.coords),q.isEditorClosed=!0,j(),W(),!0}catch(Z){throw q.isEditorClosing=!1,q.isSubmitted=!1,Z}},[l]),I=at(q=>{b(!1),s?.(q.coords),W()},[s]),T=d.useRef(null),R=d.useRef(null),A=d.useRef(null),D=d.useRef([]),[L,V]=d.useReducer(q=>q+1,0),W=d.useCallback(q=>{q&&D.current.push(q),V()},[]),P=at(q=>{if(q.defaultPrevented||q.isSynthetic||!t)return;const Z=t?.getCellCoordsFromClient(q.clientX,q.clientY);Z&&W({eventType:"pointer",event:q,coords:Z})},[t]),U=at(q=>{const Z=q.nativeEvent;P(Z)},[t]),X=at(q=>{if(q.defaultPrevented||q.isSynthetic||!t?.getStage())return;const Z=R.current;u(q,Z)&&(q.stopPropagation(),q.preventDefault()),q.key,W({eventType:"keyboard",event:q,coords:Z})},[t]);d.useLayoutEffect(()=>{const q=(Y,te)=>{const ie=te?.cell??Y;if(!ie)return null;const fe=ie;if(!M(ie))return null;k?.(ie);const J=Ro.uuidV4();te=Object.freeze({autoFocus:!0,...te}),A.current=ie;const ae={coords:fe,startEvent:te,uuid:J,isMounted:!1,isStarted:!1,isSubmitted:!1,isEditorSubmitted:!1,isEditorClosing:!1,isEditorClosed:!1,isCancelled:!1,events:[],editorRefsDispatchEditorEvent:[],editorRefs:[],onMount:Ce=>{ae.isMounted||(ae.isMounted=!0,W())},onUnmount:Ce=>{if(ae.editorRefs.length===0){const Me=()=>{ae.isMounted=!1,W()};if(document.activeElement!==document.body)Me();else{const re=oe=>{oe.defaultPrevented||oe.target!==document.body||X(oe)};window.addEventListener("keydown",re,!0),t.getStage()?.addEventListener("focusin",()=>{window.removeEventListener("keydown",re),Me()},{once:!0}),j()}}}};return ae};if(D.current.length<=0&&!T.current)return;const Z=D.current[0];f7(Z),(Y=>{const te=[],ie=Y?.length??0;for(let fe=0;fe<ie;fe++){const J=Y[fe];te.push(f7(J))}})(D.current),T.current,T.current;let Q=T.current;if(T.current){if(T.current.isDone)T.current=null;else if(T.current.isSubmitted||T.current.isCancelled){if(T.current.isMounted)return;T.current.isDone||(I(T.current),T.current.isDone=!0)}}if(Z){if(Z.eventType==="start"){const Y=Z,te=Y.startEvent?.cell??R.current;T.current&&Lt.isEqualCells(T.current.coords,te)||(T.current=q(te,Y.startEvent))}else if(Z.eventType==="keyboard"){const Y=Z.event;if(T.current){let te=!1;switch(Y.which){case 37:case 39:case 38:case 40:case 13:case 9:te=!0}if(!te){T.current.events.push(Z);for(let ie=0;ie<T.current.editorRefsDispatchEditorEvent.length;ie++)T.current.editorRefsDispatchEditorEvent[ie](Z)}}else if(u(Y,Z.coords)){const ie=q(R.current,void 0);ie&&ie.events.push(Z),T.current=ie}}else if(Z.eventType==="pointer"){const Y=Z.event;if(T.current){T.current.events.push(Z);for(let te=0;te<T.current.editorRefsDispatchEditorEvent.length;te++)T.current.editorRefsDispatchEditorEvent[te](Z)}else{const te=Z?.coords??R.current,ie=h(Y,te);if(ie){let fe;typeof fe!="boolean"&&(fe=ie);const J=q(te,fe);J&&J.events.push(Z),T.current=J}}}else if(Z.eventType==="submit"){if(T.current&&!T.current.isSubmitted&&!T.current.isCancelled){if(!T.current.isMounted)return;v(T.current)}}else if(Z.eventType==="cancel"){if(T.current&&!T.current.isSubmitted&&!T.current.isCancelled){if(!T.current.isMounted)return;S(T.current)}}else if(Z.eventType==="coordsChange"){const Y=Z;if(R.current=Y.activeCoords,T.current,T.current&&!T.current.isSubmitted&&!T.current.isCancelled){if(!T.current.isMounted)return;try{v(T.current)}catch{}}}}D.current.length>0&&(D.current.shift(),W()),D.current.length===0&&(!T.current||T.current.isEditorClosing||T.current.isEditorClosed?!T.current&&Q&&j():T.current.isMounted&&!T.current.isStarted&&(T.current.isStarted=!0,T.current.startEvent.autoFocus&&(typeof T.current.startEvent.autoFocus=="string"?T.current.editorRefs[0]?.autoFocus(T.current.startEvent.autoFocus):T.current.editorRefs[0]?.autoFocus()),O?.(T.current),requestAnimationFrame(()=>{t&&T.current?.coords&&t.scrollCellCoordsIntoView(T.current.coords)})))},[L]),d.useEffect(()=>{A.current=x;const q=T.current?.coords;Lt.isEqualCells(q,x)||(T.current&&(T.current.isEditorClosing=!0),W({eventType:"coordsChange",activeCoords:x}))},[x]);const ee=d.useCallback(q=>{X(q.nativeEvent)},[]),{width:H=0,height:$=0}=C??{width:0,height:0},z=at(o,[o]);return{overlay:at(q=>{if(!T.current||T.current.isEditorClosed)return T.current,null;T.current.coords;let Z=E(q,T.current.coords,H,$,g,y),Q=!0;Z&&Z.width!==0&&Z.height!==0||(Z={x:0,y:0,width:H,height:H},Q=!1);const Y=q.getZoom(),te={containerBounds:{x:0,y:0,width:Z.width/Y,height:Z.height/Y},setNaturalDimensions:_,zoom:Y};return a.jsx(jj,{session:T.current,refLatestCoords:A,handleSubmitEdit:v,handleCancelEdit:S,cellBounds:Z,borderStrokeWidth:m,borderStrokeFill:p,isInBounds:Q,getCellEditor:z,propsEditor:te,alignment:y,...f},"editor:"+T.current.uuid)},[o,g,L,H,$,y,m,p]),startEdit:d.useCallback(q=>{W({eventType:"start",startEvent:q})},[]),submitEdit:d.useCallback(()=>{W({eventType:"submit"})},[]),cancelEdit:d.useCallback(()=>{W({eventType:"cancel"})},[]),onKeyboardEvent:ee,onPointerEvent:U,onKeyboardEventNative:X,onPointerEventNative:P,isEditing:w}},Rj=({gridRef:e,gridMainRef:t,orientation:n=ji,headerCount:o,selectionPolicy:r="multiple",newSelectionMode:i="clear",alwaysScrollToActiveCoords:l=!0,onDragStart:c,onDragEnd:s,pointerDownInterceptor:u,pointerMoveInterceptor:h,onPointerUp:f,newSelection:p,modifySelection:m,appendSelection:g,clearSelections:x})=>{const y=o??((n===ji?e.current?.rowCount:e.current?.columnCount)||0),w=d.useRef(null),b=d.useRef(null),C=d.useRef(!1),_=d.useRef(null),E=d.useCallback(I=>n===gr?{rowIndex:0,colIndex:I.colIndex}:{rowIndex:I.rowIndex,colIndex:0},[n]),M=d.useCallback(I=>n===gr?{rowIndex:t.current?t.current.rowCount-1:0,colIndex:I.colIndex}:{rowIndex:I.rowIndex,colIndex:t.current?t.current.columnCount-1:0},[n]),j=I=>{b.current=M(I),m(b.current,w.current)},F=d.useCallback((I,T)=>{if(!e.current)return;const R=e.current.getViewFromClient(I,T)?.getCellCoordsFromClient(I,T);return R?(n===gr?R.rowIndex=t.current.getViewport().rowStart:R.colIndex=t.current.getViewport().colStart,R):void 0},[]),k=d.useCallback((I,T=!1)=>{let R=I;return T||(R={...I},n===ji?delete R.colIndex:delete R.rowIndex),t.current?.scrollCellCoordsIntoView(R)},[n]),O=at(s,[s]),S=at(c,[c]),v=d.useMemo(()=>({onPointerDown:I=>{if(!e||!e.current||I.nativeEvent.defaultPrevented)return;const T=F(I.nativeEvent.clientX,I.nativeEvent.clientY);if(!T)return;I.nativeEvent.which;const R=I.nativeEvent.shiftKey,A=I.nativeEvent.ctrlKey||I.nativeEvent.metaKey;if(u?.(I,T)===!1)return;S?.(),C.current=!0;const D=t.current?.getViewFromClient(I.nativeEvent.clientX,I.nativeEvent.clientY),L=((V,W)=>n===gr?{...V,rowIndex:W.rowStart}:{...V,colIndex:W.colStart})(T,D.getVisibleRangeCoords());if(R)j(T);else{if(A)return((V,W=V,P)=>{w.current=E(V),b.current=M(W),g(w.current,b.current,P)})(T,T,L),void(l&&k(L,!0));((V,W=V,P)=>{w.current=E(V),b.current=M(W),p(w.current,b.current,P)})(T,T,L),j(T),l&&k(L,!0)}},onPointerMoveOrWait:Ro.throttle(I=>{if(!C.current||!e?.current)return;const T=F(I.clientX,I.clientY);if(T&&h?.(I,T)!==!1){if(Lt.isEqualCells(_.current,T))return x();j(T),k(T)}},60),onPointerUp:I=>{C.current=!1,O?.(),f?.(I)},processTouch:!0,consumeTouch:!0}),[r,l,y,i,x,u,f]);return{onPointerDown:at(Rl(v),[]),getCellCoordsFromClient:F}},Pn=(e,t,n)=>{if(!e)return t;let o=t;const r=n===On||n===Hn;for(;;){const i=e(o,!r);if(i===0)return o;r?o+=i:o-=i}},_c=(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},Ij=(e,t,n,o,r,i)=>{if(!t)return i;let{rowIndex:l,colIndex:c}=e;switch(o){case Hn:{l=Pn(n,Math.min(l+1,i),o);let s=t({rowIndex:l,colIndex:c});for(;!s&&l<i;)l=Pn(n,Math.min(++l,i),o),s=t({rowIndex:l,colIndex:c});return l}case Vn:{l=Pn(n,Math.max(l-1,i),o);let s=t({rowIndex:l,colIndex:c});for(;!s&&l>i;)l=Pn(n,Math.max(--l,i),o),s=t({rowIndex:l,colIndex:c});return l}case On:{c=Pn(n,Math.min(c+1,i),o);let s=t({rowIndex:l,colIndex:c});for(;!s&&c<i;)c=Pn(n,Math.min(++c,i),o),s=t({rowIndex:l,colIndex:c});return c}case Nn:{c=Pn(n,Math.max(c-1,i),o);let s=t({rowIndex:l,colIndex:c});for(;!s&&c>i;)c=Pn(n,Math.max(--c,i),o),s=t({rowIndex:l,colIndex:c});return c}default:return i}},Dj=(e,t=()=>!0,n,o,r,i)=>{let{rowIndex:l,colIndex:c}=e;switch(o){case Hn:{l=Pn(n,Math.min(l+1,i),o);let s=t?.({rowIndex:l,colIndex:c});for(;s&&l<i;)l=Pn(n,Math.min(++l,i),o),s=t?.({rowIndex:l,colIndex:c});return t?.({rowIndex:l,colIndex:c})?l:l-1}case Vn:{l=Pn(n,Math.max(l-1,i),o);let s=t?.({rowIndex:l,colIndex:c});for(;s&&l>i;)l=Pn(n,Math.max(--l,i),o),s=t?.({rowIndex:l,colIndex:c});return t?.({rowIndex:l,colIndex:c})?l:l+1}case On:{c=Pn(n,Math.min(c+1,i),o);let s=t?.({rowIndex:l,colIndex:c});for(;s&&c<i;)c=Pn(n,Math.min(++c,i),o),s=t?.({rowIndex:l,colIndex:c});return t?.({rowIndex:l,colIndex:c})?c:c-1}case Nn:{c=Pn(n,Math.max(c-1,i),o);let s=t?.({rowIndex:l,colIndex:c});for(;s&&c>i;)c=Pn(n,Math.max(--c,i),o),s=t?.({rowIndex:l,colIndex:c});return t?.({rowIndex:l,colIndex:c})?c:c+1}default:return null}},Lj=(e,t,n,o,r,i)=>{if(!t)return i;let l,{rowIndex:c,colIndex:s}=e;o===Hn?l={rowIndex:c+1,colIndex:s}:o===Vn?l={rowIndex:c-1,colIndex:s}:o===On?l={rowIndex:c,colIndex:s+1}:o===Nn&&(l={rowIndex:c,colIndex:s-1});const u=t(e);var h,f;return(f=t(l),!(h=u)&&!f||!h&&f||h&&!f?Ij:Dj)(e,t,n,o,!1,i)??i},m7=(e,t)=>`${e}:${t}`,g7=(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)))},x7=(e,t,n,o)=>(console.log("todo: implement convertToVisibleRanges"),e),d5=(e,t=On,n,o,r,i=null)=>{if(i&&Lt.isEqualSelectionCoords(i,e))return e;const l=e.ranges[e.rangeIndex];if(!Lt.isRangesIntersect({rowStart:e.cell.rowIndex,colStart:e.cell.colIndex,rowEnd:e.cell.rowIndex,colEnd:e.cell.colIndex},l))return e;let c={...e.cell},s=e.rangeIndex;switch(t){case On:c.colIndex=Pn(r,c.colIndex+1,t);break;case Nn:c.colIndex=Pn(r,c.colIndex-1,t);break;case Hn:c.rowIndex=Pn(o,c.rowIndex+1,t);break;case Vn:c.rowIndex=Pn(o,c.rowIndex-1,t)}const u=p=>{if(p){s=e.rangeIndex>=e.ranges.length-1?0:e.rangeIndex+1;const m=e.ranges[s];c={colIndex:m.colStart,rowIndex:m.rowStart}}else{s=e.rangeIndex<=0?e.ranges.length-1:e.rangeIndex-1;const m=e.ranges[s];c={colIndex:m.colEnd,rowIndex:m.rowEnd}}};if(t===On&&c.colIndex>l.colEnd&&c.rowIndex===l.rowEnd)u(!0);else if(t===Nn&&c.colIndex<l.colStart&&c.rowIndex===l.rowStart)u(!1);else if(t===Hn&&c.colIndex===l.colEnd&&c.rowIndex>l.rowEnd)u(!0);else if(t===Vn&&c.colIndex===l.colStart&&c.rowIndex<l.rowStart)u(!1);else{let p=c.rowIndex,m=c.colIndex;switch(t){case On:m>l.colEnd&&(p=Pn(o,p+1,t),m=l.colStart,p>l.rowEnd&&(p=l.rowStart));break;case Nn:m<l.colStart&&(p=Pn(o,p-1,t),m=l.colEnd,p<l.rowStart&&(p=l.rowEnd));break;case Hn:p>l.rowEnd&&(m=Pn(r,m+1,t),p=l.rowStart,m>l.colEnd&&(m=l.colStart));break;case Vn:p<l.rowStart&&(m=Pn(r,m-1,t),p=l.rowEnd,m<l.colStart&&(m=l.colEnd))}c={rowIndex:p,colIndex:m}}let h=n(c);if(!Lt.isRangeWithinRange(h,l)){const p=Lt.intersectRanges(h,l);p&&(h=p)}let f={rowStart:Pn(o,h.rowStart,Hn),colStart:Pn(r,h.colStart,On),rowEnd:Pn(o,h.rowEnd,Vn),colEnd:Pn(r,h.colEnd,Nn)};if(f.rowStart!==c.rowIndex||f.colStart!==c.colIndex){switch(t){case On:e.ranges[s].colStart===f.colStart&&e.ranges[s].colEnd===f.colEnd&&(c.rowIndex=f.rowEnd),c.colIndex=f.colEnd;break;case Nn:e.ranges[s].colStart===f.colStart&&e.ranges[s].colEnd===f.colEnd&&(c.rowIndex=f.rowStart),c.rowIndex===f.rowStart?c.colIndex=f.colStart+1:c.colIndex=f.colStart;break;case Hn:e.ranges[s].rowStart===f.rowStart&&e.ranges[s].rowEnd===f.rowEnd&&(c.colIndex=f.colEnd),c.rowIndex=f.rowEnd;break;case Vn:e.ranges[s].rowStart===f.rowStart&&e.ranges[s].rowEnd===f.rowEnd&&(c.colIndex=f.colStart),c.colIndex===f.colStart?c.rowIndex=f.rowStart+1:c.rowIndex=f.rowStart}return d5({cell:c,ranges:e.ranges,rangeIndex:s},t,n,o,r,i??e)}return{ranges:e.ranges,cell:c,rangeIndex:s}},y7=(e,t)=>{let n,o=0,r=0;return t.colStart<e.colStart?(n=Nn,o=e.colStart-t.colStart,r=t.colStart):t.colEnd>e.colEnd?(n=On,o=t.colEnd-e.colEnd,r=t.colEnd):t.rowStart<e.rowStart?(n=Vn,o=e.rowStart-t.rowStart,r=t.rowStart):t.rowEnd>e.rowEnd&&(n=Hn,o=t.rowEnd-e.rowEnd,r=t.rowEnd),{direction:n,amount:o,index:r}},q1=(e,t=!1,n,o)=>{if(!n)return 0;const r=!t,i=r?1:-1;let l=n(r?e:e+1),c=n(r?e+1:e),s=e+(r?2:-1),u=0;for(;(c-l)*i<=0;){if(r&&s-1>o+1||!r&&s+1<o)return u;l=c,c=n(s),s+=i,u++}return u},b7=(e,t,n,o,r)=>{const i={};let l=null,c=null;for(let s=0;s<=n.length&&n[s]<=r;s++){const u=n[s];if(u<o)continue;const h=l===u?c:t?e.getColOffset(u):e.getRowOffset(u),f=t?e.getColOffset(u+1):e.getRowOffset(u+1);l=u+1,c=f,i[u]=Object.freeze({offset:h,size:f-h,spanIndex:s})}return Object.freeze(i)},w7=(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}},Oj=(e,t,n)=>!!n&&!(e<n.x||e>n.x+n.width)&&!(t<n.y||t>n.y+n.height),Mu=(e,t=!0)=>`M ${$t.boundPixel(e.left)} ${$t.boundPixel(e.top)} L ${$t.boundPixel(e.right,!0)} ${$t.boundPixel(e.top)} L ${$t.boundPixel(e.right,!0)} ${$t.boundPixel(e.bottom,!0)} L ${$t.boundPixel(e.left)} ${$t.boundPixel(e.bottom,!0)} L ${$t.boundPixel(e.left)} ${$t.boundPixel(e.top)} ${t?"Z":""}`,vl=e=>{const{linePoints:t,bounds:n,pathProps:o,style:r,...i}=e;return a.jsx("svg",{width:`${$t.boundPixel(n.width,!0)}`,height:`${$t.boundPixel(n.height,!0)}`,viewBox:`0 0 ${$t.boundPixel(n.width,!0)} ${$t.boundPixel(n.height,!0)}`,style:{position:"absolute",left:`${$t.boundPixel(n.x)}px`,top:`${$t.boundPixel(n.y)}px`,width:`${$t.boundPixel(n.width,!0)}px`,height:`${$t.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 ${$t.boundPixel(t[0])} ${$t.boundPixel(t[1])} L ${$t.boundPixel(t[2])} ${$t.boundPixel(t[3])}`,fill:"none",vectorEffect:"non-scaling-stroke",stroke:"black",...o})})},Pj=e=>{const{x:t=0,y:n=0,width:o=0,height:r=0,fill:i,stroke:l,strokeWidth:c=0,strokeDasharray:s,strokeDashoffset:u,clipPath:h,pathBounds:f,pathProps:p,style:m,...g}=e,x=n,y=t,w=o,b=r;let C=null;if(i){let _=Mu({top:0,left:0,bottom:b,right:w});f&&(_=_+" "+Mu({top:f.y-x,left:f.x-y,bottom:f.height+f.y-x,right:f.width+f.x-y})),C=[a.jsx("path",{d:_,fill:i,stroke:"none",fillRule:"evenodd"},"fill")]}return a.jsxs("svg",{width:`${$t.boundPixel(o,!0)}`,height:`${$t.boundPixel(r,!0)}`,viewBox:`0 0 ${$t.boundPixel(o,!0)} ${$t.boundPixel(r,!0)}`,preserveAspectRatio:"none",style:{position:"absolute",left:`${$t.boundPixel(t)}px`,top:`${$t.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:Mu({top:0,left:0,right:w,bottom:b}),fill:"none",strokeDasharray:s,strokeDashoffset:u,stroke:l,vectorEffect:"non-scaling-stroke",strokeWidth:c,...p})]})},Jg=e=>{const{key:t,...n}=e;return a.jsx(_d,{...n},t)},_d=d.memo(e=>{const{stroke:t,fill:n,x:o=0,y:r=0,width:i=0,height:l=0,style:c,isAnimatedStroke:s,animatedStrokeProps:u,range:h,cell:f,...p}=e,m=s||!!u,g={name:"walking-offset",dashGap:2,speed:50,dashLength:8,...u};let x=g.dashGap+g.dashLength;const y=g.speed*x,w=Cj().replaceAll(":",""),b=`${g.name}-${w}`;let C;return d.useEffect(()=>{if(!m)return;const _=`@keyframes ${b} {
|
|
52
|
+
to {
|
|
53
|
+
stroke-dashoffset: 0px;
|
|
54
|
+
}
|
|
55
|
+
}`,E=document.createElement("style");return E.appendChild(document.createTextNode(_)),document.head.appendChild(E),E.sheet.insertRule(_,0),()=>{document.head.removeChild(E)}},[m]),m&&(C={strokeDasharray:`${g.dashLength}px ${g.dashGap}px`,strokeDashoffset:`${x}px`,animation:`${b} ${y}ms linear infinite`,willChange:"stroke-dashoffset"}),a.jsx(Pj,{x:o,y:r,width:i,height:l,stroke:t,fill:n,shapeRendering:"crispEdges",style:{...C,...c},...p})});function Qg(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=Qg(e[t]))&&(o&&(o+=" "),o+=n)}else for(n in e)e[n]&&(o&&(o+=" "),o+=n);return o}function I0(){for(var e,t,n=0,o="",r=arguments.length;n<r;n++)(e=arguments[n])&&(t=Qg(e))&&(o&&(o+=" "),o+=t);return o}_d.displayName="Selection";const ex=d.memo(d.forwardRef((e,t)=>{const{x:n=0,y:o=0,borderWidth:r=1,size:i=6,borderStroke:l,corner:c,style:s,className:u,background:h,...f}=e;if(n===0||o===0)return null;let p=!0,m=!0,g=!0,x=!0;switch(c){case"tl":p=!1,m=!1;break;case"bl":p=!1,x=!1;break;case"br":g=!1,x=!1;break;case"tr":m=!1,g=!1}return a.jsx("div",{className:I0("fill-handle",u),style:{position:"absolute",left:n-(i+(p?r:0))/2,top:o-(i+(m?r:0))/2,width:i,height:i,borderLeft:p?`${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:h,cursor:"crosshair",pointerEvents:"all",transitionDuration:"0ms",transitionTimingFunction:"linear",transitionDelay:"0",transitionProperty:"left, top",willChange:"left, top",...s},tabIndex:-1,...f})}));ex.displayName="FillHandle";var Aj=function(){},tx=typeof window<"u",Fj=tx?d.useLayoutEffect:d.useEffect,v7={x:0,y:0,width:0,height:0,top:0,left:0,bottom:0,right:0};const nx=tx&&window.ResizeObserver!==void 0?function(){var e=d.useState(null),t=e[0],n=e[1],o=d.useState(v7),r=o[0],i=o[1],l=d.useMemo(function(){return new window.ResizeObserver(function(c){if(c[0]){var s=c[0].contentRect,u=s.x,h=s.y,f=s.width,p=s.height,m=s.top,g=s.left,x=s.bottom,y=s.right;i({x:u,y:h,width:f,height:p,top:m,left:g,bottom:x,right:y})}})},[]);return Fj(function(){if(t)return l.observe(t),function(){l.disconnect()}},[t]),[n,r]}:function(){return[Aj,v7]};function Ru(e,t){if(typeof e=="function")return e(t);e&&(e.current=t)}var zj=parseInt(d.version.split(".")[0],10)>=19?function(e){return t=>{const n=[];for(const o of e){const r=Ru(o,t),i=typeof r=="function";n.push(i?r:()=>Ru(o,null))}return()=>{for(const o of n)o()}}}:function(e){return t=>{for(const n of e)Ru(n,t)}};const u5=d.memo(d.forwardRef((e,t)=>{const{range:n,view:o,anchor:r,borderStroke:i="rgb(33, 115, 70)",background:l="white",borderWidth:c=1.5,size:s=22,style:u,className:h,selectionTouchPointerHandler:f,onTouchSelectStart:p,onTouchSelectEnd:m,currentTouchAnchor:g,scrollableElement:x,scrollableRoot:y=document.body,...w}=e,b=at(p,[p]),C=at(m,[m]),{bounds:_,coordsPivot:E,key:M}=d.useMemo(()=>{if(!n||!o)return null;let A=null,D=null;switch(r){case"tl":A={colIndex:n.colEnd,rowIndex:n.rowEnd},D={colIndex:n.colStart,rowIndex:n.rowStart};break;case"br":A={colIndex:n.colStart,rowIndex:n.rowStart},D={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 L=o.getRangeCoordsBounds(D?{rowStart:D.rowIndex,colStart:D.colIndex,rowEnd:D.rowIndex,colEnd:D.colIndex}:n);const V=o.getBounds(),W=o.getViewportSize(),P=V.x,U=V.y,X=W.width,ee=W.height;switch(r){case"tl":break;case"br":L.x=L.x+L.width,L.y=L.y+L.height;break;case"t":L.x=X/2-P;break;case"b":L.x=X/2-P,L.y=L.y+L.height;break;case"l":L.y=ee/2-U;break;case"r":L.x=L.x+L.width,L.y=ee/2-U}const H=o.toClipBounds(L,0);return!H||H.width<=0||H.height<=0||L.x<0||L.y<0||L.x>X||L.y>ee?{bounds:null,coordsAnchor:null,coordsPivot:null,key:null}:{bounds:L,coordsAnchor:null,coordsPivot:A,key:"touchSelect-"+o.getAnchor()+"-"+r}},[n,o,r]),j=d.useRef(null),F=Rl(d.useMemo(()=>{const A=D=>r==="t"||r==="b"?{...D,colIndex:void 0}:r==="l"||r==="r"?{...D,rowIndex:void 0}:D;return{processTouch:!0,consumeTouch:!0,onPointerDown:(D,L)=>{const V=A(o.getCellCoordsFromClient(D.clientX,D.clientY));return j.current={coordsPivot:E},b?.(r),f.onSelectionPointerDown(D,L,o,V,E,!1,!0)},onPointerMoveOrWait:(D,L,V)=>{const W=A(o.getCellCoordsFromClient(D.clientX,D.clientY));return f.onSelectionPointerMoveOrWait(D,L,V,o,W,j.current?.coordsPivot,!0,!0)},onPointerUp:(D,L,V)=>(j.current=null,C?.(r),f.onPointerUp(D,L,V))}},[f,n,o,r])),[k,{y:O,x:S}]=nx(),v=d.useRef(null),{getPortalContainer:I}=Gg(),[T,R]=d.useState(null);return d.useEffect(()=>{const A=v.current?.getBoundingClientRect();if(!A||!_)return void R(null);let D=0,L=0,V=x;for(;V;)D+=V.scrollLeft,L+=V.scrollTop,V=y&&V===y.parentElement?null:V.parentElement;R(ao.createPortal(a.jsx("div",{className:I0("touch-select-handle",h),ref:t,style:{position:"absolute",left:D+(A?.x??0)-(s+c)/2,top:L+(A?.y??0)-(s+c)/2,width:s,height:s,borderWidth:`${c}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,...w}),y??I(),M))},[O,S,_?.x,_?.y,_?.width,_?.height,h,g,l,s,c,i,x]),_?a.jsxs(a.Fragment,{children:[a.jsx("div",{ref:zj([k,v]),style:{position:"absolute",left:_.x,top:_.y,opacity:0}}),T]}):null}));u5.displayName="TouchSelectHandle";const er=-10,Bj=Object.freeze({rowStart:0,colStart:0,rowEnd:0,colEnd:0}),ox=Object.freeze({colIndex:0,rowIndex:0}),h5=Object.freeze([]),wr=e=>{if(e&&e.cell&&e.ranges&&e.rangeIndex>-1&&e.rangeIndex<=e.ranges.length)return e;const t={cell:null,ranges:e?.ranges??h5};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=ox),Lt.isEqualSelectionCoords(t,e)?e:t},Ec=(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(vr)),!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(vr)),e.scrollCellCoordsIntoView(t)},Nj=()=>!1,rx=({gridRef:e,commands:t,layout:n,selection:o,onSelectionChange:r,onSelectionDragStart:i,onSelectionDragEnd:l,selectionPolicy:c="multiple",newSelectionMode:s="clear",allowDeselectSelection:u=!0,onFillPreview:h,onFillCancel:f,onFillDone:p,onFill:m,disableFillDrag:g=!m,fillHandleBorderColor:x="white",hiddenRowsAt:y,hiddenColumnsAt:w,isContentfulCell:b,contentfulCellFinder:C=Lj,getDataCoords:_,alwaysScrollToActiveCoords:E=!1,selectionBounds:M,pointerDownInterceptor:j,pointerMoveInterceptor:F,mergedRanges:k,canSelectionSpanMergedCells:O=Nj,onMoveDragStart:S,onMoveDragUpdate:v,onMoveDragEnd:I,onMoveDragDone:T,selectionRenderer:R=Jg,disableMoveDrag:A=!I,getCellCoordsAsRangeCoords:D=Lt.cellToRange,moveDragHitSize:L=6,moveDragOutlineSize:V=4,selectionBackgroundColor:W="rgba(16, 124, 65, 0.1)",selectionBorderColor:P="rgb(33, 115, 70)",selectionRemoveBorderColor:U="rgb(255, 0, 0)",selectionRemoveBackgroundColor:X="rgba(250, 10, 10, 0.1)",disableTouchSelection:ee=!1,touchSelectHandleProps:H})=>{const $=d.useCallback(()=>({top:M?.top??0,left:M?.left??0,bottom:e.current?.rowCount-1||0,right:e.current?.columnCount-1||0}),[]),z=at(m,[m]),q=at(h,[h]),Z=at(f,[f]),Q=at(p,[p]),Y=at(b,[b]),te=at(R,[R]),ie=at((G,K=!1)=>q1(G,K,n.getRowOffset,K?$().bottom:$().top),[n?.getRowOffset]),fe=at(y??ie,[y]),J=at((G,K=!1)=>q1(G,K,n.getColOffset,K?$().right:$().left),[n?.getColOffset]),ae=at(w??J,[w]),[Ce,Me]=d.useState(()=>wr(o)),re=d.useMemo(()=>wr(Ce),[Ce]),oe=d.useRef(re),ue=d.useRef(!0);d.useLayoutEffect(Ro.throttle(()=>{Me(G=>{ue.current=!0;const K=wr(o);return Lt.isEqualSelectionCoords(K,G)?G:K})},0),[o]),d.useLayoutEffect(()=>{oe.current=re},[re]),d.useEffect(()=>{ue.current||!r||Lt.isEqualSelectionCoords(o,re)||r(re)},[re]);const De=d.useCallback(G=>{Me(K=>{ue.current=!1,K=wr(K);let ce=typeof G=="function"?G(K.ranges):G??h5;if(Lt.isEqualRangesArrays(ce,K.ranges))return K;let pe=Math.max(ce.length?0:-1,Math.min(K.rangeIndex,ce.length-1)),Le=K.cell;pe===-1||Lt.isCellWithinRange(Le,ce[pe])||(Le={rowIndex:ce[pe].rowStart,colIndex:ce[pe].colStart}),ce.length===1&&Lt.isSingleCell(ce[0])&&Lt.isCellWithinRange(Le,ce[0])&&(ce=[],pe=-1);const Ge={cell:Le,ranges:ce,rangeIndex:pe};return Lt.isEqualSelectionCoords(Ge,K)?K:Ge})},[]),ze=at(G=>{Me(K=>{ue.current=!1,K=wr(K);const ce=G??ox,pe=D(ce);if(!Lt.isSingleCell(pe)&&K.ranges.length===0)return{ranges:[pe],rangeIndex:0,cell:ce};if(Lt.isEqualCells(ce,K.cell))return K;let Le=K.ranges,Ge=K.rangeIndex;K.ranges.length===1&&(Lt.isSingleCell(K.ranges[0])&&Lt.isCellWithinRange(ce,K.ranges[0])||!Lt.isCellWithinRange(ce,K.ranges[0]))&&(Le=[],Ge=-1);const He={ranges:Le,rangeIndex:Ge,cell:ce};return Lt.isEqualSelectionCoords(He,K)?K:He})},[D]),[mt,bt]=d.useState(null),[ve,dt]=d.useState(null),xt=d.useRef(null),[Ne,vt]=d.useState(null),Xe=d.useRef(null),le=d.useRef(null),[Ue,ye]=d.useState(null),Se=d.useRef(null),ne=d.useRef(null),be=d.useRef(k);d.useEffect(()=>{be.current=k},[k]);const ke=at((G,K={inline:"nearest",block:"nearest"})=>{let{rowIndex:ce,colIndex:pe}=G;ce===void 0&&re?.cell&&(ce=re.cell.rowIndex),pe===void 0&&re?.cell&&(pe=re.cell.colIndex),ce!==void 0&&pe!==void 0&&e.current?.scrollCellCoordsIntoView({rowIndex:ce,colIndex:pe},K)},[re]),me=d.useCallback(G=>{const K=$();return G.rowIndex<K.top||G.colIndex<K.left||G.colIndex>K.right||G.rowIndex>K.bottom},[]),Ie=at((G,K)=>{if(!e?.current)return null;const ce={rowStart:Math.min(G.rowIndex,K.rowIndex),colStart:Math.min(G.colIndex,K.colIndex),rowEnd:Math.max(G.rowIndex,K.rowIndex),colEnd:Math.max(G.colIndex,K.colIndex)};if(O?.(ce))return ce;const pe=D(G),Le=D(K),Ge={rowStart:Math.min(pe.rowStart,Le.rowStart),colStart:Math.min(pe.colStart,Le.colStart),rowEnd:Math.max(pe.rowEnd,Le.rowEnd),colEnd:Math.max(pe.colEnd,Le.colEnd)};let He;return typeof be.current=="function"?He=be.current(Ge):k&&(He=k),He?Lt.extendRangeToUnionRanges(Ge,He):Ge},[O,D]),we=at((G,K,ce)=>{const pe=G.ranges.length>0?G.ranges[G.rangeIndex]:{rowStart:G.cell.rowIndex,colStart:G.cell.colIndex,rowEnd:G.cell.rowIndex,colEnd:G.cell.colIndex},Le={rowStart:Math.min(K.rowIndex??pe.rowStart,ce.rowIndex??pe.rowStart),colStart:Math.min(K.colIndex??pe.colStart,ce.colIndex??pe.colStart),rowEnd:Math.max(K.rowIndex??pe.rowEnd,ce.rowIndex??pe.rowEnd),colEnd:Math.max(K.colIndex??pe.colEnd,ce.colIndex??pe.colEnd)},Ge={rowIndex:Le.rowStart,colIndex:Le.colStart},He={rowIndex:Le.rowEnd,colIndex:Le.colEnd};if(!me(Ge)&&!me(He))return Ie(Ge,He)},[Ie]),xe=at((G,K,ce)=>{if(c==="single"||!oe.current)return;const pe=we(oe.current,G,K??oe.current.cell);if(!pe)return;const Le=oe.current.rangeIndex;De(Ge=>Ge.length?Ge.map((He,_t)=>Le===_t?pe:He):[pe]),ce&&pe&&ze({colIndex:pe.colStart,rowIndex:pe.rowStart})},[]),Ee=d.useCallback((G,K,ce)=>{if(!oe.current)return;G={...oe.current?.cell,...G},K=K??G;const pe=we(oe.current,G,K);if(!pe)return;const Le={rowIndex:pe.rowStart,colIndex:pe.colStart},Ge={...Le,...ce};s==="clear"?(Se.current=Ge,ft()):s==="modify"?xe(Le):Fe(Le),ze(Ge)},[]),Fe=d.useCallback((G,K=G,ce)=>{c!=="multiple"||!G||me(G)||me(K)||Me(pe=>{ue.current=!1,pe=wr(pe);const Le=Ie(G,K);if(!Le)return pe;let Ge=pe.ranges.length>0?[...pe.ranges]:[Ie(pe.cell,pe.cell)];Ge.push(Le);const He={ranges:Ge,cell:{rowIndex:Le.rowStart,colIndex:Le.colStart,...ce},rangeIndex:Ge.length-1};return Lt.isEqualSelectionCoords(He,pe)?pe:He})},[]),ft=()=>{De(h5)},ut=$t.detectIt().primaryInput==="touch",Pe=d.useRef(null),Qe=d.useRef(null),nt=d.useRef(null),Ke=d.useMemo(()=>({onPointerDown:G=>{if(!e||!e.current)return!1;const K=G.nativeEvent,ce=e.current.getViewFromClient(K.clientX,K.clientY);if(K.pointerType==="touch"||K.type==="touchstart")return Qe.current={topLeft:ce.getScrollTopLeft(),point:{x:K.clientX,y:K.clientY}},!0;const pe=ce.getCellCoordsFromClient(G.nativeEvent.clientX,G.nativeEvent.clientY);if(!pe)return!1;Pe.current={anchor:ce.getAnchor(),coords:pe},ne.current=null;const Le=G.nativeEvent.which===3;if(Le&&Lt.indexOfCoords(pe,re.ranges)!==-1)return!1;const Ge=G.nativeEvent.shiftKey,He=G.nativeEvent.ctrlKey||G.nativeEvent.metaKey,_t=He,It=u,jt=re.ranges.length>0,Pt=He&&It;if(j?.(G,pe,re)===!1)return!1;i?.(oe.current,G.nativeEvent);const un=!Le&&c!=="single";if(Ge)return xe(pe),un;const Dt=Lt.isEqualCells(pe,re.cell);if(_t){if(Dt&&(!Pt||!jt))return un;if(He&&Lt.indexOfCoords(pe,re.ranges)!==-1&&It){Xe.current=pe;const Ot=Ie(pe,pe);return le.current=Ot,vt(Ot),un}return Fe(pe),un}E&&ke(pe),Dt&&re.ranges.length===0||Ee(pe)},onPointerMoveOrWait:Ro.throttle((G,K)=>{if(!e?.current||G.pointerType==="touch"||G.type==="touchmove"||!Pe.current)return;const ce=Pe.current.anchor;let pe=e.current.getViewFromLocation(ce),Le=pe.getCellCoordsFromClient(G.clientX,G.clientY);if(!Lt.isEqualCells(Le,Pe.current?.coords)&&(Pe.current={anchor:ce,coords:Le},Le&&F?.(G,Le,oe.current)!==!1)){if(Xe.current){const Ge={rowStart:Math.min(Le.rowIndex,Xe.current.rowIndex),colStart:Math.min(Le.colIndex,Xe.current.colIndex),rowEnd:Math.max(Le.rowIndex,Xe.current.rowIndex),colEnd:Math.max(Le.colIndex,Xe.current.colIndex)},He={rowIndex:Ge.rowStart,colIndex:Ge.colStart},_t={rowIndex:Ge.rowEnd,colIndex:Ge.colEnd};if(me(He)||me(_t))return;const It=Ie(He,_t);le.current=It,vt(It)}else xe(Le);nt.current=K,Ec(pe,Le,e)}},60),onPointerUp:G=>{if(Pe.current=null,G.pointerType==="touch"||G.type==="touchend"){if(Qe.current){const ce=e.current.getViewFromClient(Qe.current.point.x,Qe.current.point.y),pe=ce.getScrollTopLeft();if(pe.left===Qe.current.topLeft.left&&pe.top===Qe.current.topLeft.top){const Le=ce.getCellCoordsFromClient(Qe.current.point.x,Qe.current.point.y);Ee(Le)}}return Qe.current=null,void(Pe.current=null)}try{l?.(oe.current,G)}catch(ce){console.warn(ce)}if(!Xe.current)return;const K=le.current;Xe.current=null,le.current=null,vt(null),Me(ce=>{if(ue.current=!1,(ce=wr(ce)).ranges.length===0)return ce;let pe=[],Le=-1,Ge=ce.cell;for(let _t=0;_t<ce.ranges.length;_t++){const It=ce.ranges[_t];if(Lt.isRangesIntersect(It,K)){const jt=Ro.subtractRect({top:It.rowStart,left:It.colStart,bottom:It.rowEnd+1,right:It.colEnd+1},{top:K.rowStart,left:K.colStart,bottom:K.rowEnd+1,right:K.colEnd+1});for(let Pt=0;Pt<jt.length;Pt++){const un={rowStart:jt[Pt].top,colStart:jt[Pt].left,rowEnd:jt[Pt].bottom-1,colEnd:jt[Pt].right-1};pe.push(un),Lt.isCellWithinRange(ce.cell,un)&&(Le=pe.length-1)}}else pe.push(It);pe.length>0&&Le===-1&&Lt.isCellWithinRange(ce.cell,It)&&(Le=pe.length-1,Ge={rowIndex:pe[pe.length-1].rowStart,colIndex:pe[pe.length-1].colStart})}const He={cell:Ge,rangeIndex:Le,ranges:pe};return Lt.isEqualSelectionCoords(He,ce)?ce:He})},processTouch:!0,consumeTouch:!1}),[re,c,u,E,s]),rt=at(Rl(Ke),[]),Bt=d.useMemo(()=>({onSelectionPointerDown:(G,K,ce,pe,Le=re.cell,Ge=E,He=G.nativeEvent.shiftKey,_t=!1)=>{if(!e||!e.current)return!1;G.stopPropagation(),G.preventDefault(),G.nativeEvent.stopImmediatePropagation();const It=ce??e.current.getViewFromClient(G.nativeEvent.clientX,G.nativeEvent.clientY),jt=pe??It.getCellCoordsFromClient(G.nativeEvent.clientX,G.nativeEvent.clientY);if(!jt)return!1;Pe.current={anchor:It.getAnchor(),coords:jt},ne.current=null;const Pt=G.nativeEvent.which===3;if(Pt&&Lt.indexOfCoords(jt,re.ranges)!==-1)return!1;const un=G.nativeEvent.ctrlKey||G.nativeEvent.metaKey,Dt=un,Ot=u,Bn=re.ranges.length>0,ct=un&&Ot;if(j?.(G,jt,re)===!1)return!1;i?.(oe.current,G.nativeEvent);const Gt=!Pt&&c!=="single";if(He)return xe(jt,Le,_t),Gt;const no=Lt.isEqualCells(jt,Le);if(Dt){if(no&&(!ct||!Bn))return Gt;if(ct&&Lt.indexOfCoords(jt,re.ranges)!==-1&&Ot){Xe.current=jt;const Nt=Ie(jt,jt);return le.current=Nt,vt(Nt),Gt}return Fe(jt),Gt}Ge&&ke(jt),no&&re.ranges.length===0||Ee(jt)},onSelectionPointerMoveOrWait:(G,K,ce,pe,Le,Ge=re.cell,He=!0,_t=!1)=>{if(!e?.current||(G.stopPropagation(),G.preventDefault(),G.stopImmediatePropagation(),!Pe.current))return;const It=Pe.current.anchor;let jt=pe??e.current.getViewFromLocation(It),Pt=Le??jt.getCellCoordsFromClient(G.clientX,G.clientY);if(!Lt.isEqualCells(Pt,Pe.current?.coords)&&(Pe.current={anchor:It,coords:Pt},Pt&&F?.(G,Pt,oe.current)!==!1)){if(Xe.current){const un={rowStart:Math.min(Pt.rowIndex,Xe.current.rowIndex),colStart:Math.min(Pt.colIndex,Xe.current.colIndex),rowEnd:Math.max(Pt.rowIndex,Xe.current.rowIndex),colEnd:Math.max(Pt.colIndex,Xe.current.colIndex)},Dt={rowIndex:un.rowStart,colIndex:un.colStart},Ot={rowIndex:un.rowEnd,colIndex:un.colEnd};if(me(Dt)||me(Ot))return;const Bn=Ie(Dt,Ot);le.current=Bn,vt(Bn)}else xe(Pt,Ge,_t);He&&Ec(jt,Pt,e)}},onPointerUp:G=>{Pe.current=null,G.stopPropagation(),G.preventDefault(),G.stopImmediatePropagation();try{l?.(oe.current,G)}catch(ce){console.warn(ce)}if(!Xe.current)return;const K=le.current;Xe.current=null,le.current=null,vt(null),Me(ce=>{if(ue.current=!1,(ce=wr(ce)).ranges.length===0)return ce;let pe=[],Le=-1,Ge=ce.cell;for(let _t=0;_t<ce.ranges.length;_t++){const It=ce.ranges[_t];if(Lt.isRangesIntersect(It,K)){const jt=Ro.subtractRect({top:It.rowStart,left:It.colStart,bottom:It.rowEnd+1,right:It.colEnd+1},{top:K.rowStart,left:K.colStart,bottom:K.rowEnd+1,right:K.colEnd+1});for(let Pt=0;Pt<jt.length;Pt++){const un={rowStart:jt[Pt].top,colStart:jt[Pt].left,rowEnd:jt[Pt].bottom-1,colEnd:jt[Pt].right-1};pe.push(un),Lt.isCellWithinRange(ce.cell,un)&&(Le=pe.length-1)}}else pe.push(It);pe.length>0&&Le===-1&&Lt.isCellWithinRange(ce.cell,It)&&(Le=pe.length-1,Ge={rowIndex:pe[pe.length-1].rowStart,colIndex:pe[pe.length-1].colStart})}const He={cell:Ge,rangeIndex:Le,ranges:pe};return Lt.isEqualSelectionCoords(He,ce)?ce:He})}}),[re,c,u,E,s]),lt=at((G,K=!1,ce=!1,pe=0)=>{if(!e.current||!re.cell)return;let Le=re.cell,Ge=re.cell;if(K&&re.ranges.length>0){const ct=re.ranges[re.rangeIndex],Gt=re.cell;switch(G){case Vn:Ge={rowIndex:Gt.rowIndex===ct.rowStart?ct.rowEnd:ct.rowStart,colIndex:ct.colEnd},Le={rowIndex:Gt.rowIndex===ct.rowStart?ct.rowStart:ct.rowEnd,colIndex:ct.colStart};break;case Hn:Ge={rowIndex:Gt.rowIndex===ct.rowEnd?ct.rowStart:ct.rowEnd,colIndex:ct.colEnd},Le={rowIndex:Gt.rowIndex===ct.rowEnd?ct.rowEnd:ct.rowStart,colIndex:ct.colStart};break;case Nn:Ge={rowIndex:ct.rowEnd,colIndex:Gt.colIndex===ct.colStart?ct.colEnd:ct.colStart},Le={rowIndex:ct.rowStart,colIndex:Gt.colIndex===ct.colStart?ct.colStart:ct.colEnd};break;case On:Ge={rowIndex:ct.rowEnd,colIndex:Gt.colIndex===ct.colEnd?ct.colStart:ct.colEnd},Le={rowIndex:ct.rowStart,colIndex:Gt.colIndex===ct.colEnd?ct.colEnd:ct.colStart}}}const He=D(Ge);let{rowStart:_t,colStart:It}=He;const jt=$();if(ne.current)switch(G){case Vn:case Hn:ne.current.colIndex>=He.colStart&&ne.current.colIndex<=He.colEnd&&(It=ne.current.colIndex);break;case Nn:case On:ne.current.rowIndex>=He.rowStart&&ne.current.rowIndex<=He.rowEnd&&(_t=ne.current.rowIndex)}if(!pe){switch(G){case Vn:_t=Pn(fe,Math.max(He.rowStart-1,jt.top),G);break;case Hn:_t=Pn(fe,Math.min(He.rowEnd+1,jt.bottom),G);break;case Nn:It=Pn(ae,Math.max(He.colStart-1,jt.left),G);break;case On:It=Pn(ae,Math.min(He.colEnd+1,jt.right),G)}if(ce)switch(G){case Vn:_t=C({...Ge,colIndex:re.cell.colIndex},Y,fe,G,!1,Math.max(jt.top,fe(jt.top,!1)));break;case Hn:_t=C({...Ge,colIndex:re.cell.colIndex},Y,fe,G,!1,Math.min(jt.bottom,jt.bottom-fe(jt.bottom,!0)));break;case Nn:It=C({...Ge,rowIndex:re.cell.rowIndex},Y,ae,G,!1,Math.max(jt.left,ae(jt.left,!1)));break;case On:It=C({...Ge,rowIndex:re.cell.rowIndex},Y,ae,G,!1,Math.min(jt.right,jt.right-ae(jt.right,!0)))}}let Pt=null;if(pe){let ct=0;switch(G){case Vn:ct=n.getRowOffset(_t+1),_t=Math.max(jt.top,n.getRowIndex(ct-pe)),Pt={top:n.getRowOffset(_t+1)-(ct-e.current.getScrollPosition().top)};break;case Hn:ct=n.getRowOffset(_t),_t=Math.min(jt.bottom,n.getRowIndex(ct+pe)),Pt={top:n.getRowOffset(_t)-(ct-e.current.getScrollPosition().top)};break;case Nn:ct=n.getColOffset(It+1),It=Math.max(jt.left,n.getColIndex(ct-pe)),Pt={left:n.getColOffset(It+1)-(ct-e.current.getScrollPosition().left)};break;case On:ct=n.getColOffset(It),It=Math.min(jt.right,n.getColIndex(ct+pe)),Pt={left:n.getColOffset(It)-(ct-e.current.getScrollPosition().left)}}}const un={rowIndex:_t,colIndex:It},Dt=D(un),Ot={rowIndex:Dt.rowStart,colIndex:Dt.colStart};K||(ne.current=un);const Bn=Lt.isEqualCells(Se.current,Ot)&&Lt.isEqualCells(Se.current,Le);if(K&&!Bn?xe(Ot,Le):Ee(Ot),Pt)e.current.scrollTo(Pt);else{if(K&&Se.current){const ct=$();if(G===On&&Se.current.colIndex===ct.left||G===Nn&&Se.current.colIndex===ct.right||G===Vn&&Se.current.rowIndex===ct.bottom||G===Hn&&Se.current.rowIndex===ct.top)return}G===Nn||G===On?ke({colIndex:un.colIndex}):G!==Vn&&G!==Hn||ke({rowIndex:un.rowIndex})}},[re,D]),Jt=at(G=>{if(!e.current)return;if(re.ranges.length===0)return void lt(G);const K=D(re.cell);if(Lt.isEqualRangesArrays([K],re.ranges))return void lt(G);const ce=d5(re,G,D,fe,ae);Me(pe=>{ue.current=!1,pe=wr(pe);const Le={...pe,cell:ce.cell,rangeIndex:ce.rangeIndex};return Lt.isEqualSelectionCoords(Le,pe)?pe:Le}),ce.cell&&ke(ce.cell)},[re,D]),Wt=d.useCallback(()=>{const G=$();xe({rowIndex:G.top},{rowIndex:G.bottom})},[]),Kt=d.useCallback(()=>{const G=$();xe({colIndex:G.left},{colIndex:G.right})},[]),kn=at(()=>{re.cell&&e?.current&&ke(re.cell)},[re.cell]),Tn=d.useCallback((G=!1)=>{const K={rowIndex:$().top};G?xe(K):Ee(K),ke(K)},[]),Qn=d.useCallback((G=!1)=>{const K={rowIndex:$().bottom};G?xe(K):Ee(K),ke(K)},[]),zn=d.useCallback((G=!1)=>{const K={colIndex:$().left};G?xe(K):Ee(K),ke(K)},[]),mo=d.useCallback((G=!1)=>{const K=$(),ce={rowIndex:K.top,colIndex:K.left};G?xe(ce):Ee(ce),ke(ce)},[]),wn=d.useCallback((G=!1)=>{const K=$(),ce={colIndex:_?.()?.colEnd??K.right};G?xe(ce):Ee(ce),ke(ce)},[_]),Qt=d.useCallback((G=!1)=>{const K=$(),ce={rowIndex:_?.()?.rowEnd??K.bottom,colIndex:_?.()?.colEnd??K.right};G?xe(ce):Ee(ce),ke(ce)},[_]),Rn=at(G=>{if(!e.current||re.ranges.length<=1)return;const K=G===Nn||G===Vn;let ce=re.rangeIndex+(K?-1:1);ce<0?ce=re.ranges.length-1:ce>re.ranges.length-1&&(ce=0);const pe=re.ranges[ce],Le=d5({cell:{rowIndex:pe.rowEnd,colIndex:pe.colEnd},rangeIndex:0,ranges:[pe]},On,D,fe,ae);Me(Ge=>{ue.current=!1,Ge=wr(Ge);const He={...Ge,cell:Le.cell,rangeIndex:ce};return Lt.isEqualSelectionCoords(He,Ge)?Ge:He}),Le.cell&&ke(Le.cell)},[re,D]),Jn=at(()=>{const G=x7(re);Me(K=>{ue.current=!1,K=wr(K);const ce={...K,visibleSelection:G};return Lt.isEqualSelectionCoords(ce,K)?K:ce}),G.cell&&ke(G.cell)},[re,D]),vn=at(()=>{if(!e.current||re.ranges.length===0)return;const G=re.cell,K=re.ranges[re.rangeIndex],ce=x7({cell:G,rangeIndex:0,ranges:[K]}),pe=ce.ranges[ce.rangeIndex];let Le;Le=pe.rowStart===G.rowIndex&&pe.colStart===G.colIndex?{rowIndex:pe.rowStart,colIndex:pe.colEnd}:pe.rowStart===G.rowIndex&&pe.colEnd===G.colIndex?{rowIndex:pe.rowEnd,colIndex:pe.colStart}:pe.rowEnd===G.rowIndex&&pe.colStart===G.colIndex?{rowIndex:pe.rowEnd,colIndex:pe.colEnd}:{rowIndex:pe.rowStart,colIndex:pe.colStart},Me(Ge=>{Ge=wr(Ge);const He={...Ge,cell:Le};return Lt.isEqualSelectionCoords(He,Ge)?Ge:He}),Le&&ke(Le)},[re,D]),In=d.useCallback((G=!1)=>{lt(Hn,G,!1,e.current.getDimensions().containerHeight)},[]),sn=d.useCallback((G=!1)=>{lt(Vn,G,!1,e.current.getDimensions().containerHeight)},[]),Io=d.useCallback((G=!1)=>{lt(On,G,!1,e.current.getDimensions().containerWidth)},[]),Yo=d.useCallback((G=!1)=>{lt(Nn,G,!1,e.current.getDimensions().containerWidth)},[]),Dr=d.useCallback(()=>{Jt(Nn)},[]),Jo=d.useCallback(()=>{Jt(On)},[]),Kr=d.useCallback(()=>{Jt(Vn)},[]),Qo=d.useCallback(()=>{Jt(Hn)},[]),Lr=d.useCallback(()=>{Rn(Nn)},[]),li=d.useCallback(()=>{Rn(On)},[]),Or=d.useCallback(()=>{vn()},[]),zo=d.useCallback(()=>{lt(Nn,!1,!1)},[]),Ae=d.useCallback(()=>{lt(Nn,!0,!1)},[]),Je=d.useCallback(()=>{lt(Nn,!1,!0)},[]),tt=d.useCallback(()=>{lt(Nn,!0,!0)},[]),qe=d.useCallback(()=>{lt(On,!1,!1)},[]),it=d.useCallback(()=>{lt(On,!0,!1)},[]),St=d.useCallback(()=>{lt(On,!1,!0)},[]),Et=d.useCallback(()=>{lt(On,!0,!0)},[]),Ct=d.useCallback(()=>{lt(Vn,!1,!1)},[]),Rt=d.useCallback(()=>{lt(Vn,!0,!1)},[]),Tt=d.useCallback(()=>{lt(Vn,!1,!0)},[]),nn=d.useCallback(()=>{lt(Vn,!0,!0)},[]),Sn=d.useCallback(()=>{lt(Hn,!1,!1)},[]),cn=d.useCallback(()=>{lt(Hn,!0,!1)},[]),_e=d.useCallback(()=>{lt(Hn,!1,!0)},[]),pt=d.useCallback(()=>{lt(Hn,!0,!0)},[]),kt=d.useCallback(()=>{De(G=>G.slice(0,-1))},[]),dn=d.useMemo(()=>{const G=$();return((K,ce,pe,Le,Ge)=>{for(let He=0;He<K.length;He++){const _t=K[He];if(_t.rowStart===ce&&_t.colStart===pe&&_t.rowEnd===Le&&_t.colEnd===Ge)return!0}return!1})(re.ranges,G.top,G.left,G.bottom,G.right)},[M,re.ranges]),en=d.useCallback((G,K=!0)=>{Se.current=G,ze(G),K&&G&&e?.current&&ke(G)},[]),wt=at((G=!0)=>{const K=xt.current;if(!oe.current?.cell)return;const ce=oe.current?.ranges,pe=oe.current?.cell;if(!pe||!K||!K)return;let Le=null;if(Le=ce.length>0?ce[ce.length-1]:D(pe),Le.colEnd>=Le.colStart&&Le.rowEnd>=Le.rowStart){const Ge=y7(Le,K);let He=G?z:q;try{He?.(Le,K,Ge.direction)}catch(_t){console.warn(_t)}finally{G&&Q?.()}}},[D]),Ut=d.useRef(null),Bo=Rl(d.useMemo(()=>({onPointerDown:(G,K)=>{if(nt.current=K,!e||!e.current)return!1;const ce=e.current.getViewFromClient(G.nativeEvent.clientX,G.nativeEvent.clientY),pe=ce?.getCellCoordsFromClient(G.nativeEvent.clientX,G.nativeEvent.clientY);pe&&(G.stopPropagation(),bt("crosshair"),Ut.current={anchor:ce.getAnchor(),coords:pe})},onPointerMoveOrWait:(G,K)=>{if(g||!e?.current||!oe.current||!Ut.current)return;const ce=Ut.current.anchor;let pe=e.current.getViewFromLocation(ce),Le=pe.getCellCoordsFromClient(G.clientX,G.clientY);if(!Le)return;Ut.current={anchor:ce,coords:Le};const Ge=oe.current.ranges;let He=Ie(oe.current.cell,Le);if(!He)return;const _t=Ge.length>0,It=_t?Ge[Ge.length-1]:D(oe.current.cell);if(!He)return;const jt=He.rowStart<It.rowStart?Vn:He.rowEnd>It.rowEnd?Hn:He.colEnd>It.colEnd?On:Nn,Pt=$();jt===Nn&&(He={...It,colStart:Math.max(Pt.left,He.colStart)}),jt===Vn&&(He={...It,rowStart:Math.max(Pt.top,He.rowStart)}),jt===On&&(He={...It,colEnd:Math.min(Pt.right,He.colEnd)}),jt===Hn&&(He={...It,rowEnd:Math.min(Pt.bottom,He.rowEnd)});const un=y7(It,He);if(!O?.(It)){let Dt;typeof be.current=="function"?Dt=be.current(It):k&&(Dt=k),He=((Ot,Bn,ct,Gt,no,Nt)=>{const on={...Bn};if(ct.length===0)return on;if(no===Nn){const Fn=Ot.colEnd+1-Ot.colStart;on.colStart=Ot.colStart-Math.ceil(Nt/Fn)*Fn,on.colStart<Gt.left&&(on.colStart=on.colStart+Math.ceil((Gt.left-on.colStart)/Fn)*Fn)}else if(no===On){const Fn=Ot.colEnd+1-Ot.colStart;on.colEnd=Ot.colEnd+Math.ceil(Nt/Fn)*Fn,on.colEnd>Gt.right&&(on.colEnd=on.colEnd-Math.ceil((Gt.right-on.colEnd)/Fn)*Fn)}else if(no===Vn){const Fn=Ot.rowEnd+1-Ot.rowStart;on.rowStart=Ot.rowStart-Math.ceil(Nt/Fn)*Fn,on.rowStart<Gt.top&&(on.rowStart=on.rowStart+Math.ceil((Gt.top-on.rowStart)/Fn)*Fn)}else if(no===Hn){const Fn=Ot.rowEnd+1-Ot.rowStart;on.rowEnd=Ot.rowEnd+Math.ceil(Nt/Fn)*Fn,on.rowEnd>Gt.bottom&&(on.rowEnd=on.rowEnd-Math.ceil((Gt.bottom-on.rowEnd)/Fn)*Fn)}return on})(It,He,Dt,Pt,un.direction,un.amount)}if(_t&&Lt.isRangeWithinRange(He,It)&&(He=null),!Lt.isEqualRanges(He,xt.current)){if(dt(He),xt.current=He,!He){try{Z?.()}catch{}return void Q?.()}wt(!1)}nt.current=K,Ec(pe,Le,e)},onPointerUp:(G,K)=>{nt.current=K,Promise.resolve(wt(!0)).finally(()=>{Q?.(),dt(null),xt.current=null,Ut.current=null,bt(null),e.current?.focus()})}}),[D])),qo=d.useMemo(()=>({onPointerDown:Bo}),[Bo]),[Xt,Mn]=d.useState(null),mn=d.useRef(null),Dn=d.useMemo(()=>({onPointerDown:(G,K)=>{if(nt.current=K,!e||!e.current)return!1;const ce=e.current.getViewFromClient(G.nativeEvent.clientX,G.nativeEvent.clientY),pe=ce?.getCellCoordsFromClient(G.nativeEvent.clientX,G.nativeEvent.clientY);if(!pe)return;if(j?.(G,pe,re)===!1)return!1;G.stopPropagation(),bt("default");const Le=ce.getRelativePointFromClient(0,0),Ge=oe.current?.ranges[oe.current?.ranges.length-1]??Lt.cellToRange(oe.current?.cell),He=ce.toClipBounds(ce.getRangeCoordsBounds(Ge)),_t={x:0,y:0};He.x-Le.x>G.nativeEvent.clientX?_t.x=G.nativeEvent.clientX-(He.x-Le.x):G.nativeEvent.clientX>=He.x-Le.x+He.width&&(_t.x=Math.max(0,G.nativeEvent.clientX-(He.x-Le.x+He.width))+1),He.y-Le.y>G.nativeEvent.clientY?_t.y=G.nativeEvent.clientY-(He.y-Le.y):G.nativeEvent.clientY>=He.y-Le.y+He.height&&(_t.y=Math.max(0,G.nativeEvent.clientY-(He.y-Le.y+He.height))+1),S?.(Ge,G.nativeEvent,K),mn.current={range:Ge,anchor:ce.getAnchor(),cell:pe,isMoving:!1,extrusion:_t}},onPointerMoveOrWait:(G,K,ce)=>{if(A||!e?.current||!oe.current||!mn.current)return;const pe=G.clientX-ce.clientX,Le=G.clientY-ce.clientY;if(mn.current.isMoving=mn.current.isMoving||Math.abs(pe)>Math.max(1,2)||Math.abs(Le)>Math.max(1,2)||performance.now()-ce.timeStamp>500,!mn.current.isMoving)return;const Ge=mn.current.anchor,He=mn.current.extrusion;let _t=e.current.getViewFromLocation(Ge),It=_t.getCellCoordsFromClient(G.clientX-He.x,G.clientY-He.y,!0);if(!It)return;const jt=mn.current.cell,Pt=mn.current.range,un=$(),Dt=Pt.colEnd-Pt.colStart+1,Ot=Math.min(Math.max(0,jt.colIndex-Pt.colStart),Dt-1),Bn=Math.min(un.right-Dt+1,Math.max(un.left,It.colIndex-Ot)),ct=Pt.rowEnd-Pt.rowStart+1,Gt=Math.min(Math.max(0,jt.rowIndex-Pt.rowStart),ct-1),no=Math.min(un.bottom-ct+1,Math.max(un.top,It.rowIndex-Gt)),Nt={colStart:Bn,colEnd:Bn+Dt-1,rowStart:no,rowEnd:no+ct-1};Lt.isEqualRanges(Xt,Nt)&&!(on=>!on||!nt.current||nt.current.ctrlKey!==on.ctrlKey||nt.current.shiftKey!==on.shiftKey||nt.current.altKey!==on.altKey||nt.current.metaKey!==on.metaKey)(G)||(Mn(Nt),v?.(Nt,G,K)),nt.current=K,Ec(_t,It,e)},onPointerUp:(G,K)=>{nt.current=K;const ce=()=>{Mn(null),mn.current=null,bt(null),e.current?.focus()};if(!mn.current)return void ce();const pe=mn.current.range,Le=Xt;I?.(pe,G,K),Promise.resolve(pe&&Le&&T?.(pe,Le,G,K)).finally(()=>{ce()})}}),[Xt]),fn=Rl(Dn),to=d.useMemo(()=>({onPointerDown:fn}),[fn]),Re=d.useRef(null),se=d.useMemo(()=>{const G=Lt.isEqualSelectionCoords(re,Re.current)?Re.current:re;return Re.current=G,G},[re]),st=d.useCallback(G=>{let K=null,ce="br";const pe=[],Le={stroke:x,fill:W,strokeWidth:.5},Ge=(Dt,Ot,Bn)=>{const ct=G.toClipBounds(G.getRangeCoordsBounds(Dt),er);if(!ct)return;ct.x=ct.width>0?ct.x:ct.x-Le.strokeWidth/2,ct.y=ct.height>0?ct.y:ct.y-Le.strokeWidth/2,ct.width=Math.max(ct.width,Le.strokeWidth),ct.height=Math.max(ct.height,Le.strokeWidth);const Gt={key:`selection-fill-${Ot}`,range:Dt,...ct,...Le};if(Bn){const no=G.getCellCoordsAsRangeCoords(Bn);Gt.cell=Bn,Gt.pathBounds=G.toClipBounds(G.getRangeCoordsBounds(no),er),Gt.pathBounds&&(Gt.pathBounds.width<=0||Gt.pathBounds.height<=0)&&(delete Gt.pathBounds,delete Gt.cell)}return te(Gt)};let He=re?wr(re):null;const _t=He?.cell?G.getCellCoordsAsRangeCoords(He?.cell):Bj;!He||He.ranges&&He.ranges.length!==0||(He={ranges:[_t],rangeIndex:0,cell:He.cell});for(let Dt=0;He&&Dt<He.ranges.length;Dt++){const Ot=He.ranges[Dt],Bn=Ge(Ot,Dt,Dt===He.rangeIndex?He.cell:null);Bn&&pe.push(Bn);const ct=2,Gt=.5,no=G.toClipBounds(G.getRangeCoordsBounds(Ot,{top:0,left:0,right:0,bottom:0}),er);if(no){const Nt=(He.ranges.length,4);pe.push(te({range:Ot,key:`selection-inside-edge-${Dt}`,x:no.x-1,y:no.y-1,width:Math.max(no.width+1,0),height:Math.max(no.height+1,0),style:{overflow:"hidden"},stroke:x,strokeWidth:Nt}))}if(He.ranges.length===1){const Nt=G.toClipBounds(G.getRangeCoordsBounds(Ot),er);if(Nt){A||pe.push(te({range:Ot,key:`move-selection-hit-box-${Dt}`,x:Nt.width>1?Nt.x:Nt.x-(L/2+1),y:Nt.height>1?Nt.y:Nt.y-(L/2+1),width:Math.max(Nt.width+2,1),height:Math.max(Nt.height+2,1),stroke:"transparent",style:{boxShadow:"none"},pathProps:{cursor:Xt?void 0:"move",pointerEvents:"stroke"},strokeWidth:L,...to}));const on=ct;pe.push(te({range:Ot,key:`selection-single-${Dt}`,x:Nt.x-on/2,y:Nt.y-on/2,width:Math.max(Nt.width+on/2,1),height:Math.max(Nt.height+on/2,1),stroke:P,strokeWidth:on}))}}else{const Nt=G.toClipBounds(G.getRangeCoordsBounds(Ot,{top:-1,left:-1,right:-2,bottom:-2}),er);Nt&&pe.push(te({range:Ot,key:`selection-multi-${Dt}`,x:Nt.width>1?Nt.x:Nt.x-Gt/2,y:Nt.height>1?Nt.y:Nt.y-Gt/2,width:Math.max(Nt.width,Gt)+1,height:Math.max(Nt.height,Gt)+1,stroke:P,style:{overflow:"hidden"},strokeWidth:2}))}if(He.ranges.length>1&&Dt===He.rangeIndex){const Nt=G.getCellCoordsAsRangeCoords(He.cell),on=G.toClipBounds(G.getRangeCoordsBounds(Nt,{top:1,left:1,right:-1,bottom:-1}),er);on&&pe.push(te({range:Ot,key:`selection-anchor-${Dt}`,x:on.x,y:on.y,width:Math.max(on.width,Gt),height:Math.max(on.height,Gt),stroke:P,style:{overflow:"hidden"},strokeWidth:2}))}if(Dt===He.ranges.length-1){K=null,ce=null;const Nt=Ot.rowStart===$().top&&Ot.rowEnd===$().bottom,on=Ot.colStart===$().left&&Ot.colEnd===$().right,Fn=G.getRangeCoordsBounds(Ot);let pr=null;if(Nt||on){if(pr=G.toClipBounds(Fn,er),Object.keys(G.allViews()).length>1){const Li=G.getVisibleRangeCoords(),Xs=G.allViews()[H1],Po=G.allViews()[bs],go=G.allViews()[ws],Ft=G.getAnchor();(on&&(Ft===bs&&Xs||Ft===vr&&go||!Lt.isCellWithinRange({colIndex:Ot.colStart,rowIndex:Ot.rowEnd},Li)&&!Lt.isCellWithinRange({colIndex:Ot.colStart,rowIndex:Ot.rowEnd+1},Li))||Nt&&(Ft===ws&&Xs||Ft===vr&&Po||!Lt.isCellWithinRange({colIndex:Ot.colEnd,rowIndex:Ot.rowStart},Li)&&!Lt.isCellWithinRange({colIndex:Ot.colEnd+1,rowIndex:Ot.rowStart},Li)))&&(pr=null)}}else pr=G.toClipBounds(Fn,er);if(!pr||pr.width===0||pr.height===0)continue;K={x:pr.x+pr.width+1,y:pr.y+pr.height+1},pr.width===0||pr.height===0||Ot.rowStart===$().top&&Ot.colStart===$().left&&Ot.rowEnd===$().bottom&&Ot.colEnd===$().right||(Nt?(K.y=ct,ce="tr"):on&&(K.x=ct,ce="bl"))}}let It=null;if(Ne){const Dt=G.toClipBounds(G.getRangeCoordsBounds(Ne,{top:0,left:0,right:0,bottom:0}),er);Dt&&(It=te({...Le,range:Ne,key:"remove-selection",x:Dt.x,y:Dt.y,width:Dt.width,height:Dt.height,strokeWidth:2,stroke:U,fill:X}))}let jt=null;if(ve){const Dt=G.toClipBounds(G.getRangeCoordsBounds(ve,{top:0,left:0,right:0,bottom:0}),er);Dt&&(jt=te({range:ve,key:"selection-fill-outline",x:Dt.x-1,y:Dt.y-1,width:Dt.width+1,height:Dt.height+1,strokeWidth:2,stroke:P,strokeDasharray:"3 2"}))}let Pt=null;!g&&K&&!Xt&&(Pt=d.createElement(ex,{...K,corner:ce,size:7.5,borderStroke:`${x} solid`,style:{borderRadius:1},background:P,...qo,key:"fillHandle"}));const un=[...pe];if(It&&un.push(It),jt&&un.push(jt),Pt&&un.push(Pt),!ee&&ut&&He?.ranges.length===1&&He.ranges[He.ranges.length-1]){const Dt=He.ranges[He.ranges.length-1],Ot=Dt.rowStart===$().top&&Dt.rowEnd===$().bottom,Bn=Dt.colStart===$().left&&Dt.colEnd===$().right,ct={view:G,range:Dt,borderStroke:`${P} solid`,background:x,selectionTouchPointerHandler:Bt,...H,onTouchSelectStart:Gt=>ye(Gt),onTouchSelectEnd:()=>ye(null),currentTouchAnchor:Ue};un.push(a.jsx(u5,{anchor:Bn?"b":Ot?"r":"br",scrollableElement:e.current,...ct},"touch-select-handle-after")),un.push(a.jsx(u5,{anchor:Bn?"t":Ot?"l":"tl",scrollableElement:e.current,...ct},"touch-select-handle-before"))}if(Xt){const Dt=G.toClipBounds(G.getRangeCoordsBounds(Xt,{top:1,left:1,right:1,bottom:1}),er);Dt&&un.push(te({range:Xt,key:"selection-move-outline",x:Dt.x-V/2,y:Dt.y-V/2,width:Math.max(Dt.width+V/2,1),height:Math.max(Dt.height+V/2,1),stroke:P,style:{boxShadow:"none",transitionDuration:"70ms",transitionTimingFunction:"ease-in",transitionProperty:"left, top, width, height",willChange:"left, top, width, height"},strokeWidth:V}))}return a.jsx("div",{children:un},"selection")},[se,Ne,g,ve,A,Xt,$,x,P,W,U,X,ee,H,Ue]),gt=d.useMemo(()=>{const G=()=>e.current;return[new an("moveToPageDown",G,{label:"Page Down",description:"Shift viewport down one page.",shortcut:[{key:"PageDown"}]},()=>In(!1)),new an("selectToPageDown",G,{label:"Select To Page Down",description:"Shift viewport and select down one page.",shortcut:[{key:"PageDown",modifiers:[bo]}]},()=>In(!0)),new an("moveToPageRight",G,{label:"Page Right",description:"Shift viewport right one page.",shortcut:[{key:"PageDown",modifiers:[m0]}]},()=>Io(!1)),new an("selectToPageRight",G,{label:"Page Right",description:"Shift viewport right one page.",shortcut:[{key:"PageDown",modifiers:[m0,bo]}]},()=>Io(!0)),new an("moveToPageUp",G,{label:"Page Up",description:"Shift viewport up one page.",shortcut:[{key:"PageUp"}]},()=>sn(!1)),new an("selectToPageUp",G,{label:"Page Up",description:"Shift viewport up one page.",shortcut:[{key:"PageUp",modifiers:[bo]}]},()=>sn(!0)),new an("moveToPageLeft",G,{label:"Page Left",description:"Shift viewport left one page.",shortcut:[{key:"PageUp",modifiers:[m0]}]},()=>Yo(!1)),new an("selectToPageLeft",G,{label:"Page Left",description:"Shift viewport left one page.",shortcut:[{key:"PageUp",modifiers:[m0,bo]}]},()=>Yo(!0)),new an("selectColumn",G,{label:"Select Column",description:"Select the columns for the selected cells.",shortcut:{key:"Space",modifiers:[Vo]}},Wt),new an("selectRow",G,{label:"Select Row",description:"Select the rows for the selected cells.",shortcut:{key:"Space",modifiers:[bo]}},Kt),new an("selectToColumnStart",G,{label:"Select To Column Start",description:"Select the columns to the beginning of the sheet."},()=>Tn(!0)),new an("selectToColumnEnd",G,{label:"Select To Column End",description:"Select the columns to the end of the sheet."},()=>Qn(!0)),new an("moveToRowStart",G,{label:"Move to Row Home",description:"Move to the beginning of the row.",shortcut:[{key:"Home"}]},()=>zn(!1)),new an("selectToRowStart",G,{label:"Select to Row Home",description:"Select to the beginning of the row.",shortcut:[{key:"Home",modifiers:[bo]}]},()=>zn(!0)),new an("moveToSheetStart",G,{label:"Move to Sheet Home",description:"Move to the beginning of the sheet.",shortcut:[{key:"Home",modifiers:[Vo]}]},()=>mo(!1)),new an("selectToSheetStart",G,{label:"Select to Sheet Home",description:"Select to the beginning of the sheet.",shortcut:[{key:"Home",modifiers:[Vo,bo]}]},()=>mo(!0)),new an("moveToRowEnd",G,{label:"Move to Row End",description:"Move to the end of the row.",shortcut:[{key:"End"}]},()=>wn(!1)),new an("selectToRowEnd",G,{label:"Select to Row End",description:"Select to the end of the row.",shortcut:[{key:"End",modifiers:[bo]}]},()=>wn(!0)),new an("moveToSheetEnd",G,{label:"Move to Sheet End",description:"Move to the end of the sheet.",shortcut:[{key:"End",modifiers:[Vo]}]},()=>Qt(!1)),new an("selectToSheetEnd",G,{label:"Select to Sheet End",description:"Select to the end of the sheet.",shortcut:[{key:"End",modifiers:[Vo,bo]}]},()=>Qt(!0)),new an("scrollToActiveCoords",G,{label:"Scroll to Active Cell",description:"Scroll to the Active Cell.",shortcut:{key:"Backspace",modifiers:[Vo]}},kn),new an("scrollToActiveCoordsClearSelection",G,{label:"Scroll to Active Cell",description:"Scroll to the Active Cell and clear selection.",shortcut:{key:"Backspace",modifiers:[bo]}},()=>{ft(),en(re.cell,!0)}),new an("traverseSelectionRight",G,{label:"Traverse Right",description:"Traverse the selection moving rightward.",shortcut:{key:"Tab"}},Jo),new an("traverseSelectionLeft",G,{label:"Traverse Left",description:"Traverse the selection moving leftward.",shortcut:{key:"Tab",modifiers:[bo]}},Dr),new an("traverseSelectionDown",G,{label:"Traverse Down",description:"Traverse the selection moving downward.",shortcut:[{key:"Enter"},{key:"NumpadEnter"}]},Qo),new an("traverseSelectionUp",G,{label:"Traverse Up",description:"Traverse the selection moving upward.",shortcut:[{key:"Enter",modifiers:[bo]},{key:"NumpadEnter",modifiers:[bo]}]},Kr),new an("moveLeft",G,{label:"Move Left",description:"Move active cell to the left.",shortcut:[{key:"ArrowLeft"}]},zo),new an("selectLeft",G,{label:"Select Left",description:"Extend selection left.",shortcut:[{key:"ArrowLeft",modifiers:[bo]}]},Ae),new an("moveContentfulLeft",G,{label:"Move Left Contentful",description:"Move left to the next cell with content.",shortcut:[{key:"ArrowLeft",modifiers:[Vo]}]},Je),new an("selectContentfulLeft",G,{label:"Select Left Contentful",description:"Extend selection left to the next cell with content.",shortcut:[{key:"ArrowLeft",modifiers:[Vo,bo]}]},tt),new an("moveRight",G,{label:"Move Right",description:"Move active cell to the right.",shortcut:[{key:"ArrowRight"}]},qe),new an("selectRight",G,{label:"Select Right",description:"Extend selection right.",shortcut:[{key:"ArrowRight",modifiers:[bo]}]},it),new an("moveContentfulRight",G,{label:"Move Right Contentful",description:"Move right to the next cell with content.",shortcut:[{key:"ArrowRight",modifiers:[Vo]}]},St),new an("selectContentfulRight",G,{label:"Select Right Contentful",description:"Extend selection right to the next cell with content.",shortcut:[{key:"ArrowRight",modifiers:[Vo,bo]}]},Et),new an("moveUp",G,{label:"Move Up",description:"Move active cell to the up.",shortcut:[{key:"ArrowUp"}]},Ct),new an("selectUp",G,{label:"Select Up",description:"Extend selection up.",shortcut:[{key:"ArrowUp",modifiers:[bo]}]},Rt),new an("moveContentfulUp",G,{label:"Move Up Contentful",description:"Move up to the next cell with content.",shortcut:[{key:"ArrowUp",modifiers:[Vo]}]},Tt),new an("selectContentfulUp",G,{label:"Select Up Contentful",description:"Extend selection up to the next cell with content.",shortcut:[{key:"ArrowUp",modifiers:[Vo,bo]}]},nn),new an("moveDown",G,{label:"Move Down",description:"Move active cell to the down.",shortcut:[{key:"ArrowDown"}]},Sn),new an("selectDown",G,{label:"Select Down",description:"Extend selection down.",shortcut:[{key:"ArrowDown",modifiers:[bo]}]},cn),new an("moveContentfulDown",G,{label:"Move Down Contentful",description:"Move down to the next cell with content.",shortcut:[{key:"ArrowDown",modifiers:[Vo]}]},_e),new an("selectContentfulDown",G,{label:"Select Down Contentful",description:"Extend selection down to the next cell with content.",shortcut:[{key:"ArrowDown",modifiers:[Vo,bo]}]},pt),new an("selectVisible",G,{label:"Select Visible",description:"Select visible cells only.",shortcut:{key:";",modifiers:[m0]}},Jn),new an("traverseSelectionPreviousRange",G,{label:"Traverse Previous Range",description:"Traverse the selection to the previous range.",shortcut:{key:"ArrowLeft",modifiers:[Vo,m0]}},Lr),new an("traverseSelectionNextRange",G,{label:"Traverse Next Range",description:"Traverse the selection to the next range.",shortcut:{key:"ArrowRight",modifiers:[Vo,m0]}},li),new an("traverseSelectionCorners",G,{label:"Traverse Corners",description:"Traverse the selection through the corners of the selected range.",shortcut:{key:".",modifiers:[Vo]}},Or)]},[]);return d.useMemo(()=>{t?.addCommands(gt,!0)},[t]),{selection:se,setSelectionCell:en,setSelectionRanges:De,overlay:st,cursor:mt,onPointerDown:rt,clearLastSelection:kt,newSelection:Ee,modifySelection:xe,appendSelection:Fe,clearSelections:ft,isEntire:dn,navigate:lt,navigateSelection:Jt}};function d1(e,t){if(!e)throw new Error("Invariant failed")}const S7={"sheetxl-grid":"_sheetxl-grid_h9wwa_7"},Vj=Object.freeze({top:0,left:0}),Hj=Object.freeze({bottom:-4,right:-4}),$j=Object.freeze({horizontal:!0,vertical:!0}),C7=[H1,bs,ws,vr],di=3e3,Iu={},ix=d.memo(d.forwardRef((e,t)=>{const{width:n,height:o,rowCount:r=1,columnCount:i=1,defaultRowHeight:l,defaultColumnWidth:c,getRowHeight:s,getColumnWidth:u,layout:h,onViewportScroll:f,onImmediateScroll:p,showGridLines:m=!0,gridLineColor:g="rgb(224, 224, 224)",gridLineRowsProps:x,gridLineColumnsProps:y,clipCells:w=!0,cursor:b,freezeLeft:C=0,freezeTop:_=0,freezeLeftProps:E,freezeTopProps:M,cellRenderer:j,onViewportChange:F,onFirstRender:k,overlayRenderer:O,overlayProps:S,overlays:v,overlaysProps:I,allowOverlaysOverflow:T=!1,stageProps:R,stageWrapper:A=null,hiddenRowsAt:D,hiddenColumnsAt:L,hiddenCellAt:V,getVisibleCells:W,zoom:P=1,enableMouseWheel:U=!0,onWheelScroll:X,getCellCoordsAsRangeCoords:ee=Lt.cellToRange,scrollPoint:H=Vj,style:$={},...z}=e;d1(j),d1(!e?.children);const q=at(p,[p]),Z=at(F,[F]),Q=at(f,[f]),Y=at(X,[X]),te=at(k,[k]),ie=d.useRef(null),fe=d.useRef(null),J=d.useRef(null),[ae,Ce]=d.useReducer(Ae=>Ae+1,0),[Me,re]=d.useState({left:H?.left??0,top:H?.top??0,horizontalScrollDirection:null,verticalScrollDirection:null}),oe=d.useRef(null),ue=d.useRef(Me),{top:De,left:ze,verticalScrollDirection:mt,horizontalScrollDirection:bt}=Me,ve=d.useRef(!1),dt=(Ae=>{const{rowCount:Je,columnCount:tt,defaultRowHeight:qe,getRowHeight:it,defaultColumnWidth:St,getColumnWidth:Et}=Ae||{},Ct=d.useRef({columnMetadataMap:{},rowMetadataMap:{},lastMeasuredColumnIndex:-1,lastMeasuredRowIndex:-1,recalcColumnIndices:[],recalcRowIndices:[]}),Rt=at(Ut=>p7({itemType:"row",itemCount:Je,itemSize:it??(()=>qe??20),instanceProps:Ct.current,offset:Ut}),[Je,it,qe]),Tt=at(Ut=>Ut===-1?0:wl({itemType:"row",index:Ut,itemSize:it??(()=>qe??20),instanceProps:Ct.current}).offset,[it,qe]),nn=at(Ut=>wl({itemType:"row",index:Ut,itemSize:it??(()=>qe??20),instanceProps:Ct.current}).size,[it,qe]),Sn=at(Ut=>p7({itemType:"column",itemCount:tt,itemSize:Et??(()=>St??75),instanceProps:Ct.current,offset:Ut}),[tt,Et,St]),cn=at(Ut=>Ut===-1?0:wl({itemType:"column",index:Ut,itemSize:Et??(()=>St??75),instanceProps:Ct.current}).offset,[Et,St]),_e=at(Ut=>wl({itemType:"column",index:Ut,itemSize:Et??(()=>St??75),instanceProps:Ct.current}).size,[Et,St]),[pt,kt]=d.useReducer(Ut=>Ut+1,0),dn=()=>({getRowOffset:Tt,getColOffset:cn,getRowIndex:Rt,getColIndex:Sn}),[en,wt]=d.useState(()=>Ae?dn():null);return d.useEffect(()=>{wt(Ae?dn():null)},[pt,Je,tt,St,qe,nn,_e]),en})({rowCount:r,columnCount:i,defaultRowHeight:l,defaultColumnWidth:c,getRowHeight:s,getColumnWidth:u}),xt=d.useRef(null),Ne=d.useMemo(()=>{const Ae=h||dt;return xt.current=null,{getColOffset:Je=>Ae.getColOffset(Je)*P,getColIndex:Je=>Ae.getColIndex(Je/P),getRowOffset:Je=>Ae.getRowOffset(Je)*P,getRowIndex:Je=>Ae.getRowIndex(Je/P)}},[dt,h,P]),vt=(Ae,Je,tt)=>{const qe=(Je?.left??0)+0,it=(Je?.top??0)+0;return{getColOffset:St=>Ae.getColOffset(St)-qe,getColIndex:St=>Ae.getColIndex(St+qe),getRowOffset:St=>Ae.getRowOffset(St)-it,getRowIndex:St=>Ae.getRowIndex(St+it)}},Xe=d.useCallback((Ae,Je=!1)=>q1(Ae,Je,Ne.getRowOffset,Je?0:r),[r,Ne?.getRowOffset]),le=at(D??Xe,[D]),Ue=d.useCallback((Ae,Je=!1)=>q1(Ae,Je,Ne.getColOffset,Je?i:0),[i,Ne?.getColOffset]),ye=at(L??Ue,[L]),Se=d.useMemo(()=>Math.min(n??800,Ne.getColOffset(i)),[Ne.getColOffset,i,n]),ne=d.useMemo(()=>Math.min(o??600,Ne.getRowOffset(r)),[Ne.getRowOffset,r,o]),be=d.useCallback(Ae=>{Ro.canUseDOM&&setTimeout(()=>{ie.current?.focus({preventScroll:!0,...Ae})},0)},[]),ke=d.useCallback(Ae=>ie.current?.contains(Ae)||fe.current?.contains(Ae),[]);d.useEffect(()=>{ve.current&&(oe.current&&oe.current.left!==ue.current?.left&&oe.current.top!==ue.current?.top||(oe.current=null,Q?.({left:ze,top:De})))},[ze,De]);const me=at(()=>({top:De,left:ze}),[De,ze]),Ie=d.useMemo(()=>{const Ae=[];let Je=0,tt=0;typeof _=="number"?Je=_:(Je=_.index??0,tt=(_.scrollOffset??0)*P);const qe=tt,it=Ne.getRowOffset(Je),St=it-qe;if(Je>0){const Sn=vt(Ne,{top:tt+Ne.getRowOffset(0)}),cn=Ne.getRowIndex(qe),_e=Ne.getRowIndex(it-1);let pt;Ae[1]={minIndex:cn,maxIndex:_e,minCoord:0,maxCoord:Je-1,minBounds:0,maxBounds:St,visibleIndices:()=>pt||(pt=Object.freeze(_c(le,cn,_e)),pt),layout:Sn,maxVirtualBounds:it,scrollOffset:tt,freezeOffset:tt}}const Et=Math.max(0,ne-St),Ct=vt(Ne,{top:De+St}),Rt=Ct.getRowIndex(0),Tt=Ct.getRowIndex(Et);let nn;return Ae[0]={minIndex:Rt,maxIndex:Tt,minCoord:Je,maxCoord:r-1,minBounds:St,maxBounds:Et,visibleIndices:()=>nn||(nn=Object.freeze(_c(le,Rt,Tt)),nn),layout:Ct,maxVirtualBounds:Ne.getRowOffset(r),scrollOffset:De,freezeOffset:(Je>0?Ne.getRowOffset(Je):0)-tt},Ae},[Ne.getRowIndex,Ne.getRowOffset,le,ne,r,_,De,P]),we=d.useMemo(()=>{const Ae=[];let Je=0,tt=0;typeof C=="number"?Je=C:(Je=C.index??0,tt=(C.scrollOffset??0)*P);const qe=tt,it=Ne.getColOffset(Je),St=it-qe;if(Je>0){const Sn=vt(Ne,{left:tt+Ne.getColOffset(0)}),cn=Ne.getColIndex(qe),_e=Ne.getColIndex(it-1);let pt;Ae[1]={minIndex:cn,maxIndex:_e,minCoord:0,maxCoord:Je-1,minBounds:0,maxBounds:St,visibleIndices:()=>pt||(pt=Object.freeze(_c(ye,cn,_e)),pt),layout:Sn,maxVirtualBounds:it,scrollOffset:tt,freezeOffset:tt}}const Et=Math.max(0,Se-St),Ct=vt(Ne,{left:ze+St}),Rt=Ct.getColIndex(0),Tt=Ct.getColIndex(Et);let nn;return Ae[0]={minIndex:Rt,maxIndex:Tt,minCoord:Je,maxCoord:i-1,minBounds:St,maxBounds:Et,visibleIndices:()=>nn||(nn=Object.freeze(_c(ye,Rt,Tt)),nn),layout:Ct,maxVirtualBounds:Ne.getColOffset(i),scrollOffset:ze,freezeOffset:(Je>0?Ne.getColOffset(Je):0)-tt},Ae},[Ne.getColIndex,Ne.getColOffset,ye,Se,i,C,ze,P]),xe=d.useRef({}),Ee=d.useRef([]),Fe=d.useMemo(()=>{let Ae={};const Je=(qe,it,St,Et,Ct)=>{const Rt={vertical:Et?.vertical||!1,horizontal:Et?.horizontal||!1};if(qe>=we.length||it>=Ie.length)return null;const Tt={rowStart:Ie[it].minIndex,colStart:we[qe].minIndex,rowEnd:Ie[it].maxIndex,colEnd:we[qe].maxIndex};if(Tt.rowStart>Tt.rowEnd||Tt.colStart>Tt.colEnd)return null;const nn={getColIndex:Xt=>we[qe].layout.getColIndex(Xt),getColOffset:Xt=>we[qe].layout.getColOffset(Xt),getRowIndex:Xt=>Ie[it].layout.getRowIndex(Xt),getRowOffset:Xt=>Ie[it].layout.getRowOffset(Xt)},Sn=Object.freeze({left:Ct?.left??0,top:Ct?.top??0,right:Ct?.right??0,bottom:Ct?.bottom??0}),cn=Object.freeze({x:we[qe].minBounds,y:Ie[it].minBounds,width:we[qe].maxBounds,height:Ie[it].maxBounds}),_e=(Xt,Mn)=>w7(nn,Xt??Tt,Mn),pt={width:we[qe].maxVirtualBounds,height:Ie[it].maxVirtualBounds},kt={left:we[qe].scrollOffset,top:Ie[it].scrollOffset},dn={left:we[qe].freezeOffset,top:Ie[it].freezeOffset},en={width:Se,height:ne};let wt=null,Ut=null;const Bo=(dn.top+(Et.vertical?kt.top:0))/P,qo=(dn.left+(Et.horizontal?kt.left:0))/P;return{getStage:()=>ie.current??null,getVisibleRangeCoords:()=>Tt,toClipBounds:(Xt,Mn)=>{let mn,Dn=0;return Mn===void 0||typeof Mn=="number"?(mn=_e(Tt),Dn=Mn):mn=Mn,((fn,to,Re=0)=>{if(fn.x>to.width||fn.y>to.height)return null;const se={left:fn.x,top:fn.y,bottom:fn.height+fn.y,right:fn.width+fn.x},st={left:to.x+Re,top:to.y+Re,bottom:to.height-2*Re+to.y,right:to.width-2*Re+to.x},gt={left:Math.max(se.left,st.left),top:Math.max(se.top,st.top),bottom:Math.min(se.bottom,st.bottom),right:Math.min(se.right,st.right)},G={x:gt.left,y:gt.top,width:gt.right-gt.left,height:gt.bottom-gt.top};return G.height<0||G.width<0?null:G})(Xt??{x:0,y:0,width:cn.width,height:cn.height},mn,Dn)},toViewBounds:Xt=>qo===0&&Bo===0&&P===1?Xt:{x:(Xt.x-qo)*P,y:(Xt.y-Bo)*P,width:Xt.width*P,height:Xt.height*P},toAbsoluteBounds:Xt=>qo===0&&Bo===0&&P===1?Xt:{x:Xt.x/P+qo,y:Xt.y/P+Bo,width:Xt.width/P,height:Xt.height/P},getRelativePointFromClient:(Xt,Mn)=>{const mn=Ke(Xt,Mn);return{x:mn.x-cn.x,y:mn.y-cn.y}},getLayout:()=>nn,getCellCoordsAsRangeCoords:ee,getVisibleColumns:()=>we[qe].visibleIndices(),getVisibleRows:()=>Ie[it].visibleIndices(),getVisibleColumnOffsets:()=>(wt||(wt=b7(we[qe].layout,!0,we[qe].visibleIndices(),Tt.colStart,Tt.colEnd)),wt),getVisibleRowOffsets:()=>(Ut||(Ut=b7(Ie[it].layout,!1,Ie[it].visibleIndices(),Tt.rowStart,Tt.rowEnd)),Ut),getTotalRangeCoords:()=>({colStart:we[qe].minCoord,colEnd:we[qe].maxCoord,rowStart:Ie[it].minCoord,rowEnd:Ie[it].maxCoord}),getRangeCoordsBounds:_e,scrollCellCoordsIntoView:(Xt,Mn)=>zn(Xt,Mn,St),getCellCoordsFromClient:(Xt,Mn,mn=!1)=>{const Dn=Ke(Xt,Mn);if(!Dn)return null;const fn=nn.getColIndex(Dn.x-cn.x),to={rowIndex:nn.getRowIndex(Dn.y-cn.y),colIndex:fn};if(mn)return to;const Re=ee(to);return{rowIndex:Re.rowStart,colIndex:Re.colStart}},getZoom:()=>P,getAnchor:()=>St,getBounds:()=>cn,getInsets:()=>Sn,getTotalSize:()=>pt,getViewportSize:()=>en,getScrollTopLeft:()=>kt,getFreezeTopLeft:()=>dn,getScrollOrientation:()=>Rt,allViews:()=>Ae}};let tt=Ae[vr]=Je(0,0,vr,$j,Hj);return tt&&(Ae[vr]=tt),tt=Je(0,1,bs,{horizontal:!0}),tt&&(Ae[bs]=tt),tt=Je(1,0,ws,{vertical:!0}),tt&&(Ae[ws]=tt),tt=Je(1,1,H1,{}),tt&&(Ae[H1]=tt),xe.current=null,Ae=Object.freeze(Ae)},[Ie,we,ee]),ft=Object.keys(Fe),ut=we[0]?.maxVirtualBounds??0,Pe=Ie[0]?.maxVirtualBounds??0,Qe=d.useMemo(()=>({left:we[1]?we[1].layout.getColOffset(we[1].maxIndex+1):0,top:Ie[1]?Ie[1].layout.getRowOffset(Ie[1].maxIndex+1):0}),[Fe]);d.useEffect(()=>{if(Ee.current.length>0){for(let Ae=0;Ae<Ee.current.length;Ae++)Ee.current[Ae]();Ee.current=[]}},[Fe]);const nt=at(()=>({containerWidth:Se,containerHeight:ne,totalWidth:ut,totalHeight:Pe}),[Se,ne,Ne]);d.useEffect(()=>{!oe.current&&ve.current&&Z({top:De,left:ze,width:Se,height:ne,totalWidth:ut,totalHeight:Pe})},[De,ze,ut,Pe]),d.useEffect(()=>{ve.current&&Z({top:De,left:ze,width:Se,height:ne,totalWidth:ut,totalHeight:Pe})},[Se,ne]);const Ke=d.useCallback((Ae,Je)=>{d1(typeof Ae=="number"&&typeof Je=="number");const tt=ie.current?.getBoundingClientRect();return tt?{x:Ae-tt.x,y:Je-tt.y}:{x:Ae,y:Je}},[]),rt=at(Ae=>Fe[Ae]||null,[Fe]),Bt=at((Ae,Je)=>{if(Object.keys(Fe).length===1)return Fe[vr];const tt=Ke(Ae,Je);if(!tt)return null;const{x:qe,y:it}=tt;let St=null;const Et=C7;for(let Ct=0;!St&&Ct<Et.length;Ct++){const Rt=Fe[Et[Ct]];Rt&&Oj(qe,it,Rt.getBounds())&&(St=Rt)}return St||(St=Fe[vr]),St},[Fe,ee]),lt=at(()=>Fe[vr].getVisibleRangeCoords(),[Fe[vr]]),Jt=d.useRef(null),Wt=d.useCallback(()=>{Jt.current!==null&&Ro.cancelTimeout(Jt.current),Jt.current=Ro.requestTimeout(Kt,150)},[]),Kt=d.useCallback(()=>{Jt.current=null,re(Ae=>{const Je={...Ae,verticalScrollDirection:null,horizontalScrollDirection:null};return ue.current=Je,Je})},[]),kn=at(Ae=>{const Je=Ae?.left??Ae?.[0],tt=Ae?.top??Ae?.[1],qe=Je!==void 0?Math.min(ut-Se,Math.max(we?.[1]?.scrollOffset??0,Je)):ue.current.left,it=tt!==void 0?Math.min(Pe-ne,Math.max(Ie?.[1]?.scrollOffset??0,tt)):ue.current.top;if(ue.current.left===qe&&ue.current.top===it)return;let St=null,Et=null;ue.current.left>qe?St=Nn:ue.current.left<qe&&(St=On),ue.current.top>it?Et=Vn:ue.current.top<it&&(Et=Hn),Ro.throttle(()=>{re(Ct=>{const Rt={...Ct,left:qe,top:it,horizontalScrollDirection:St,verticalScrollDirection:Et};return ue.current=Rt,Rt})},17)(),oe.current?.top===it&&oe.current?.left===qe||(oe.current={left:qe,top:it},q({left:qe,top:it}),Z({left:qe,top:it,width:Se,height:ne,totalWidth:ut,totalHeight:Pe})),Wt()},[ut,Pe,Ie,we]);d.useEffect(()=>{oe.current||kn({left:ze,top:De})},[ut,Se,Pe,ne]),d.useLayoutEffect(()=>{oe.current={left:H?.left,top:H?.top},kn(oe.current)},[H?.left,H?.top]);const Tn=at(Ae=>{const Je=Ae?.left??Ae?.[0],tt=Ae?.top??Ae?.[1],qe=Ae?.behavior??"auto",it={left:ue.current.left+(Je??0),top:ue.current.top+(tt??0)};qe&&(it.behavior=qe),kn(it)},[ut,Se,Pe,ne]),Qn=d.useCallback(Ae=>{let Je=null;if(Object.keys(Fe).length>1){const tt=C7;for(let qe=0;!Je&&qe<tt.length;qe++){const it=Fe[tt[qe]];it&&Lt.isCellWithinRange(Ae,it.getVisibleRangeCoords())&&(Je=it)}}return Je||(Je=Fe[vr]),Je},[Fe]),zn=at((Ae,Je={inline:"nearest",block:"nearest"},tt=null)=>{const qe={rowIndex:0,colIndex:0,...Ae};let it=null;if(tt!==null){if(it=Fe[tt],it===null)return new Promise((en,wt)=>{wt("Invalid view")})}else it=Qn(qe);const St=ee(qe),Et=it.getLayout(),Ct=Et.getColOffset(St.colStart),Rt=Et.getRowOffset(St.rowStart),Tt=Et.getColOffset(St.colEnd+1),nn=Et.getRowOffset(St.rowEnd+1),Sn=it.getBounds(),cn=it.getTotalSize(),_e=it.getScrollTopLeft(),pt=((en,wt,Ut=!0)=>(Ut=Ut===!0?{block:"start",inline:"end"}:Ut===!1?{block:"end",inline:"end"}:{block:"end",inline:"end",...Ut},{left:g7(Ut.inline,en.x,en.x+en.width,wt.left,wt.left+wt.width,wt.totalWidth),top:g7(Ut.block,en.y,en.y+en.height,wt.top,wt.top+wt.height,wt.totalHeight)}))({x:Ct+_e.left,y:Rt+_e.top,width:Tt-Ct,height:nn-Rt},{left:_e.left,top:_e.top,width:Sn.width,height:Sn.height,totalWidth:cn.width,totalHeight:cn.height},Je),kt={...pt};kt.left>ze?kt.left+=20:kt.left<ze&&(kt.left-=0),kt.top>De?kt.top+=20:kt.top<De&&(kt.top-=0);const dn=it.getScrollOrientation();return dn.horizontal&&Ae.colIndex!==void 0||delete kt.left,dn.vertical&&Ae.rowIndex!==void 0||delete kt.top,new Promise((en,wt)=>{try{kn(kt),en(kt)}catch(Ut){wt(Ut)}})},[ut,Pe,Fe,ee]),mo=at(Ae=>{const Je=Ae.shiftKey;Ae.preventDefault();const{deltaX:tt,deltaY:qe,deltaMode:it}=Ae;if(J.current||Y?.(Ae)===!1)return;let St=Je?qe:tt,Et=qe;const Ct=Je||Math.abs(St)>Math.abs(Et);it===1&&(Et*=0),J.current=window.requestAnimationFrame(()=>{J.current=null,Tn(Ct?{left:St}:{top:Et})})},[ut,Se,Pe,ne,Y]),wn=d.useCallback((Ae=null)=>{xt.current=null,xe.current=null,Ce()},[]);d.useLayoutEffect(()=>{wn()},[j]);const Qt=Cd(t,()=>({stage:ie.current,focus:be,contains:ke,invalidate:wn,scrollTo:kn,scrollBy:Tn,scrollCellCoordsIntoView:zn,getScrollPosition:me,getDimensions:nt,getViewport:lt,handleWheel:mo,rowCount:r,columnCount:i,getLayout:()=>Ne,getRelativePointFromClient:Ke,getViewFromClient:Bt,getViewFromCellCoords:Qn,getViewFromLocation:rt,onViewChangeOnce:Ae=>{Ee.current.push(Ae)}}),[r,i,Fe]);d.useEffect(()=>(U&&Qt.current?.addEventListener("wheel",mo,{passive:!1}),ve.current=!0,oe.current=null,()=>{Qt.current?.removeEventListener("wheel",mo)}),[U]);const Rn=d.useRef([]),Jn=(Ae,Je)=>{!Ae||!O||(Rn.current=[],Je.push((tt=>{const qe=`view:${tt.getAnchor()}:overlay:${Je.length}`,it=O?.({key:qe,view:tt},Et=>Rn.current[0]=Et);if(!it)return null;const St=tt.getBounds();return a.jsx("div",{style:{position:"absolute",left:"0px",top:"0px",width:`${St.width}px`,height:`${St.height}px`,overflow:"hidden"},children:it},`overlay-${tt.getAnchor()}-0`)})(Ae)))},vn=d.useMemo(()=>{const Ae={},Je=Object.keys(Fe);for(let tt=0;tt<Je.length;tt++){const qe=Je[tt],it=[];Jn(Fe[qe],it),Ae[qe]={overlays:it}}return Ae},[ae,O,r,i,Ie,we]),In=(Ae,Je,tt,qe,it,St,Et)=>{if(!Ae)return;const Ct=Ae.getVisibleColumns(),Rt=Ae.getVisibleRows();if(Ct.length===0||Rt.length===0)return;let Tt=null;if(W)Tt=W(Ae);else{Tt=[];for(let Mn=0;Mn<Rt.length;Mn++)for(let mn=0;mn<Ct.length;mn++){const Dn={rowIndex:Rt[Mn],colIndex:Ct[mn]};if(V?.(Dn))continue;const fn={coords:Dn,range:ee(Dn)};Tt.push(fn)}}const nn=Ae.getVisibleColumnOffsets(),Sn=Ae.getVisibleRowOffsets(),cn=Ae.getScrollTopLeft(),_e=Ae.getFreezeTopLeft(),pt=cn.left+_e.left,kt=cn.top+_e.top,dn=Math.trunc(pt/di),en=Math.trunc(kt/di),wt={},Ut=(Mn,mn,Dn,fn,to)=>{const Re=`view:${Mn.getAnchor()}:cell:${m7(mn.rowIndex,mn.colIndex)}`,se=fn.x,st=fn.y,gt=Math.trunc((pt+se)/di)-dn,G=Math.trunc((kt+st)/di)-en;wt[G]||(wt[G]={});let K=wt[G][gt];K||(K=wt[G][gt]=[]);let ce=St?.get(Re);if(!ce){const pe=(pt+se)%di,Le=(kt+st)%di;ce=j({key:Re,coords:mn,bounds:fn,zoom:P,range:Dn,view:Mn,value:to,style:{left:$t.boundPixel(pe),top:$t.boundPixel(Le),width:$t.boundPixel(fn.width,!0),height:$t.boundPixel(fn.height,!0)}})}Et?.set(Re,ce),K.push(ce)};for(let Mn=0;Tt&&Mn<Tt.length;Mn++){const mn=Tt[Mn],Dn=mn?.coords??mn;if(!Dn)continue;const fn=mn?.range??{rowStart:Dn.rowIndex,colStart:Dn.colIndex,rowEnd:Dn.rowIndex,colEnd:Dn.colIndex},to=Ae.getVisibleRangeCoords();if(!Lt.isRangesIntersect(fn,to)&&!Lt.isRangeWithinRange(fn,to))continue;const Re=fn&&!Lt.isSingleCell(fn);if(!Re&&V?.(Dn))continue;const se=Dn.rowIndex,st=Dn.colIndex,gt=Sn[se],G=nn[st];let K=null;gt&&G&&(K={x:G.offset,y:gt.offset,width:G.size,height:gt.size});const ce=m7(fn.rowStart,fn.colStart);if(Re){if(it.has(ce))continue;it.add(ce),fn.rowEnd-fn.rowStart>0&&tt.push(fn),fn.colEnd-fn.colStart>0&&qe.push(fn)}if(Re&&(K=w7(Ae.getLayout(),fn)),!K){console.warn("no bounds for cell",ce);continue}const pe=mn?.value;Ut(Ae,Dn,fn,K,pe)}const Bo=pt%di,qo=kt%di,Xt=Object.keys(wt);for(let Mn=0;Mn<Xt.length;Mn++){const mn=wt[Xt[Mn]];if(!mn)continue;const Dn=Object.keys(mn);for(let fn=0;fn<Dn.length;fn++){const to=mn[Dn[fn]];if(!to)continue;const Re=parseInt(Xt[Mn]),se=parseInt(Dn[fn]),st=Re+en,gt=se+dn,G=`view:${Ae.getAnchor()}:segment:${gt}:${st}`;Je.push(a.jsx("div",{className:"cell-container",style:{transform:`translate(${$t.boundPixel(se*di-Bo,!0)}px, ${$t.boundPixel(Re*di-qo,!0)}px)`,willChange:"transform"},children:to},G))}}},sn=d.useMemo(()=>{const Ae=xt.current,Je=new Map,tt={},qe=Object.keys(Fe);for(let it=0;it<qe.length;it++){const St=qe[it],Et=[],Ct=[],Rt=[];In(Fe[St],Rt,Et,Ct,new Set,Ae,Je),tt[St]={cells:Rt,rangesH:Et,rangesV:Ct}}return xt.current=Je,tt},[ae,r,i,Ie,we,m,$,w,V,W,ee]),Io=(Ae,Je,tt,qe,it)=>{if(Ae)if(Je){const St=`view:${Ae.getAnchor()}:hl:`,Et=Ae.getVisibleRows();if(!Et||Et.length===0)return;const Ct=0,Rt=Ae.getBounds().width;let Tt=[];const nn=it.sort(Lt.rowFirstRangeComparator),Sn=Ae.getVisibleRangeCoords();for(let cn=0;cn<Et.length&&Et[cn]<=Sn.rowEnd;cn++){const _e=Et[cn];if(_e<Sn.rowStart)continue;let pt=!1;for(;nn.length>0&&nn[0].rowStart<=_e;){const wt=nn.shift();wt.rowEnd>_e&&(Tt.push(wt),pt=!0)}pt&&(Tt=Tt.sort(Lt.columnFirstRangeComparator));const kt=Ae.getLayout(),dn=kt.getRowOffset(_e+1);let en=Ct;for(let wt=0;wt<Tt.length+1;wt++){let Ut=en,Bo=Rt;const qo=Tt[wt];wt<Tt.length&&(Bo=Math.min(Rt,kt.getColOffset(qo.colStart)),en=Math.min(Rt,kt.getColOffset(qo.colEnd+1))),qe.push(d.createElement("path",{d:`M ${$t.boundPixel(Ut)} ${$t.boundPixel(dn,!1,tt)} L ${$t.boundPixel(Bo)} ${$t.boundPixel(dn,!1,tt)}`,stroke:g,strokeWidth:1,vectorEffect:"non-scaling-stroke",...x,key:St+_e+":"+wt}))}for(let wt=Tt.length-1;wt>=0;wt--)Tt[wt].rowEnd<=Et[cn+1]&&Tt.splice(wt,1)}}else{const St=`view:${Ae.getAnchor()}:vl:`,Et=Ae.getVisibleColumns();if(!Et||Et.length===0)return;const Ct=0,Rt=Ae.getBounds().height;let Tt=[];const nn=it.sort(Lt.columnFirstRangeComparator),Sn=Ae.getVisibleRangeCoords();for(let cn=0;cn<Et.length&&Et[cn]<=Sn.colEnd;cn++){const _e=Et[cn];if(_e<Sn.colStart)continue;let pt=!1;for(;nn.length>0&&nn[0].colStart<=_e;){const wt=nn.shift();wt.colEnd>_e&&(Tt.push(wt),pt=!0)}pt&&(Tt=Tt.sort(Lt.rowFirstRangeComparator));const kt=Ae.getLayout(),dn=kt.getColOffset(_e+1);let en=Ct;for(let wt=0;wt<Tt.length+1;wt++){let Ut=en,Bo=Rt;const qo=Tt[wt];wt<Tt.length&&(Bo=Math.min(Rt,kt.getRowOffset(qo.rowStart)),en=Math.min(Rt,kt.getRowOffset(qo.rowEnd+1)));let Xt=g;qe.push(a.jsx("path",{d:`M ${$t.boundPixel(dn,!1,tt)} ${$t.boundPixel(Ut)} L ${$t.boundPixel(dn,!1,tt)} ${$t.boundPixel(Bo)}`,stroke:Xt,strokeWidth:1,vectorEffect:"non-scaling-stroke",...y},St+_e+":"+wt))}for(let wt=Tt.length-1;wt>=0;wt--)Tt[wt].colEnd<=Et[cn+1]&&Tt.splice(wt,1)}}},Yo=Ae=>{if(!sn)return;const Je={};for(let tt=0;tt<ft.length;tt++){const qe=ft[tt],it=Fe[qe],St=[];Io(it,Ae,0,St,Ae?sn[qe].rangesH:sn[qe].rangesV);const Et=it.getRangeCoordsBounds(),Ct=Math.ceil(Et.width),Rt=Math.ceil(Et.height);Je[qe]=a.jsx("svg",{width:`${Ct}`,height:`${Rt}`,viewBox:`0 0 ${Ct} ${Rt}`,preserveAspectRatio:"none",shapeRendering:"crispEdges",style:{position:"absolute"},children:St})}return Je},Dr=d.useMemo(()=>m===!0||m?.horizontal===!0?Yo(!0):null,[ae,m,Ie,_,C,g,x,r,i,Se,ut,sn]),Jo=d.useMemo(()=>m===!0||m?.vertical===!0?Yo(!1):null,[ae,m,we,_,C,g,y,r,i,ne,Pe,sn]),Kr=d.useMemo(()=>Qe.left===0?null:a.jsx(vl,{linePoints:[0,0,0,ne+1],bounds:{x:Qe.left,y:0,width:1,height:ne+1},...E}),[ae,Qe.left,ne,E]),Qo=d.useMemo(()=>Qe.top===0?null:a.jsx(vl,{linePoints:[0,0,Se+1,0],bounds:{x:0,y:Qe.top,width:Se+1,height:1},...M}),[ae,Qe.top,Se,M]),Lr=d.useMemo(()=>{const Ae=[],Je=tt=>{if(!tt||!Fe[tt])return;const qe=Fe[tt].getBounds();return a.jsxs("div",{style:{position:"absolute",pointerEvents:"none",left:qe.x,top:qe.y,width:qe.width,height:qe.height,clip:`rect(0, ${qe.width+1}px, ${qe.height+1}px, 0)`},className:`view view-${tt}`,children:[Dr?.[tt],Jo?.[tt],sn?.[tt].cells]},`view:${tt}`)};for(let tt=0;tt<ft.length;tt++)Ae.push(Je(ft[tt]));return a.jsx(a.Fragment,{children:Ae})},[Fe,Dr,Jo,sn]),li=d.useMemo(()=>{if(!t)return;const Ae=(Et,Ct,Rt,Tt)=>{if(!Tt||Tt.length===0)return;const nn=[];for(let Sn=0;Sn<Tt.length;Sn++){const cn=Tt[Sn];let _e=Et?.get(cn);_e!==Iu&&(_e=cn(Rt)??Iu),Ct.set(cn,_e),_e&&_e!==Iu&&nn.push(_e)}return nn},Je=(Et,Ct,Rt)=>{if(!Rt)return;const Tt=Rt.getBounds(),nn=Rt.getInsets(),Sn=Rt.getAnchor();return a.jsxs("div",{className:I0("view",`view-${Sn}`,S7.view),style:{position:"absolute",pointerEvents:"none",left:Tt.x-nn.left,top:Tt.y-nn.top,width:Tt.width-(nn.left+nn.right),height:Tt.height-(nn.top+nn.bottom),clipPath:T?"inset(-2px)":"inset(0px)"},children:[Ae(Et,Ct,Rt,v),vn?.[Sn].overlays]},`view:${Sn}`)},tt=xe.current,qe={},it=[],St=Object.keys(Fe);for(let Et=0;Et<St.length;Et++){const Ct=St[Et],Rt=tt?.[Ct],Tt=qe[Ct]=new Map;it.push(Je(Rt,Tt,Fe[Ct]))}return xe.current=qe,it},[ae,Fe,T,v]),Or=d.useMemo(()=>{const{style:Ae,...Je}=R??{};return a.jsx("div",{style:{width:Se,height:ne,...Ae},className:"sheetxl-stage",tabIndex:0,ref:ie,...Je,...z,children:A?A(Lr):Lr})},[Se,ne,Lr,R,A]),zo=d.useRef(!1);return d.useEffect(()=>{!zo.current&&sn&&(zo.current=!0,te?.(Qt.current))},[sn]),a.jsxs("div",{className:I0("sheetxl-grid",S7["sheetxl-grid"]),style:{overflow:"visible",cursor:b,maxWidth:Se,maxHeight:ne,width:Se,height:ne,...$},ref:Qt,children:[Or,a.jsxs("div",{className:I0("sheetxl-overlays"),ref:fe,...I,children:[li,Kr,Qo]})]})}));ix.displayName="BaseGrid";const Ed=d.memo(d.forwardRef((e,t)=>{const{width:n,height:o,style:r={},className:i,...l}=e,[c,{width:s,height:u}]=nx();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:c,children:a.jsx(ix,{ref:t,width:n??s,height:o??u,...l})})})}));Ed.displayName="Grid";const Wj=d.memo(d.forwardRef((e,t)=>{const{showVerticalScrollbar:n,showHorizontalScrollbar:o,createHorizontalScrollbar:r,createVerticalScrollbar:i,createScrollCorner:l,viewport:c,onScrollViewport:s,style:u={},className:h,onScroll:f,...p}=e,[m,g]=d.useState(null),x=d.useRef(null),y=d.useRef(null);d1(!c),d.useImperativeHandle(t,()=>y.current&&x.current?Object.assign(y.current,x.current):null);const w=d.useCallback(b=>{y.current?.scrollTo(b),s?.(b)},[]);return a.jsx(Zg,{className:h,style:u,ref:x,showVerticalScrollbar:n,showHorizontalScrollbar:o,createHorizontalScrollbar:r,createVerticalScrollbar:i,createScrollCorner:l,viewport:m,onScrollViewport:w,children:a.jsx(Ed,{style:{width:"100%",height:"100%"},...p,onViewportChange:b=>g(b),ref:y})})}));Wj.displayName="ScrollableGrid";const _7=()=>!1,lx=d.memo(e=>{const{index:t,value:n,zoom:o,zoomScale:r=100,headerText:i=v=>`${v}`,headerStyle:l,headerStyleSelect:c=l,headerStyleSelectAll:s=c,headerStyleHover:u=s,verticalPadding:h=0,horizontalPadding:f=0,isSelected:p=_7,isSelectedAll:m=_7,coords:g,bounds:x,range:y,orientation:w,view:b,style:C,..._}=e,E=r/100,M=d.useRef(null),[j,F]=d.useState(!1),k=p?.(t)||!1,O=m?.(t)?s:k?c:l;let S=O;if(j){let v=u;typeof u=="function"&&(v=u(O)),S=Ro.mergeContentful(O,v)}return a.jsx("div",{ref:M,style:{background:S.fill,color:S.text?.fill,fontFamily:S.text?.fontFamily??l.text?.fontFamily,fontSize:96*(S.text?.fontSize??11)/72*E,fontStyle:S.text?.fontStyle,fontWeight:S.text?.fontWeight,lineHeight:1.2,display:"flex",justifyContent:"center",alignItems:"end",pointerEvents:"auto",paddingBottom:`${E}px`,...C,left:C.left-(w===gr?1:0),top:C.top-(w===ji?1:0),width:C.width+1,height:C.height+1,overflow:"hidden"},..._,onMouseMove:v=>{$t.detectIt().primaryInput!=="touch"&&v.buttons===0&&F(!0)},onMouseOut:v=>{F(!1)},children:i(t)})});lx.displayName="HeaderRenderer";const ax="ew-resize",sx="ns-resize",Uj=d.memo(d.forwardRef((e,t)=>{const{orientation:n,view:o,index:r,className:i,style:l,disabled:c=!1,disabledResize:s=!1,isNextHidden:u,isHidden:h,isSelected:f,isSelectedAll:p,showTouchDivider:m,headerStyle:g,headerStyleSelect:x,headerStyleSelectAll:y,headerStyleHover:w,bounds:b,onPointerDown:C,onAutoFit:_,...E}=e,M=n===gr;let j=g;f&&x&&(j=x),p&&y&&(j=y);const F=$t.detectIt().primaryInput==="touch";let k=M?14:8,O=k/2,S=0;u&&(S=-2),h&&(S=2),h&&(k=k/2+S,O=2*S);let v=j.dividerStrokeFill??j.strokeFill;return!(f||p)&&S===0&&(v=`linear-gradient(${M?180:90}deg, ${j.fill}, ${v} 55%, ${v} 100%)`),a.jsxs("div",{className:I0("header-divider",{disabled:c},i,`index-${r}`),ref:t,onPointerDown:F?void 0:C,onDoubleClick:F?void 0:()=>_?.(),style:{top:(M?0:-k/2+(S-1))+"px",left:(M?-k/2+(S-1):0)+"px",width:M?k:"calc(100% + 1px)",height:M?"calc(100% + 1px)":k,position:"absolute",overflow:"visible",pointerEvents:"all",cursor:c||s||F?void 0:M?ax:sx,...l},...E,children:[a.jsx("div",{style:{position:"relative",top:`${M?0:O}px`,left:`${M?O:0}px`,width:M?1:"100%",height:M?"100%":1,background:v},onDoubleClick:()=>_?.()}),m&&F?a.jsx("div",{style:{position:"absolute",cursor:"grab",zIndex:1,borderRadius:"4px",right:M?"-6px":"2px",bottom:M?"2px":"-9px",height:"24px",width:M?"24px":"18px",maxHeight:M?"calc(100% - 4px)":void 0,maxWidth:M?void 0:"calc(100% - 4px)",background:j.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:M?void 0:"rotate(90deg)"}})}):null]})})),qj=(e,t)=>a.jsx(Uj,{...e,ref:t}),Zj=d.memo(d.forwardRef((e,t)=>{const{orientation:n,view:o,index:r,disabled:i=!1,disabledResize:l=!1,resizeThreshold:c=1,dividerRenderer:s=qj,onDividerMouseDown:u,onDividerResizeStart:h,onDividerResize:f,onDividerResizeEnd:p,onDividerMouseUp:m,onDividerAutoFit:g,onPointerDown:x,...y}=e,w=at(x,[x]),b=at(g,[g]),C=n===gr;let _=C?o.getVisibleColumns():o.getVisibleRows(),E=null;_.length>0&&(C?E=o.getRangeCoordsBounds({rowStart:0,rowEnd:0,colStart:_[0],colEnd:_[_.length-1]}):o.getRangeCoordsBounds({rowStart:_[0],rowEnd:_[_.length-1],colStart:0,colEnd:0}),E=o.toClipBounds(E,er));const M=d.useRef(null),[j,F]=d.useState(null),k=(D,L)=>C?D.clientX-L.clientX:D.clientY-L.clientY,O=o.getLayout(),S=C?O.getColOffset(r+1):O.getRowOffset(r+1),v=Rl({processTouch:!0,onPointerDown:D=>{if(w?.(D),!i&&!l){const L=C?O.getColOffset(r):O.getRowOffset(r),V=S-L;M.current={isResizing:!1,startSize:V,index:r,view:o,orientation:n,onDividerMouseDown:u,onDividerResizeStart:h,onDividerResize:f,onDividerResizeEnd:p,onDividerMouseUp:m},F(M.current),u?.(r,V)}D.stopPropagation(),D.preventDefault()},onPointerUp:(D,L,V)=>{if(!M.current)return;M.current.isResizing&&M.current.onDividerResizeEnd?.(M.current.index,Math.max(0,M.current.startSize+k(D,V)),M.current.startSize);const W=M.current;M.current=null,F(M.current),W.onDividerMouseUp?.(W.index)},onPointerMoveOrWait:(D,L,V)=>{if(!M.current)return;const W=k(D,V);M.current.isResizing?M.current.onDividerResize?.(M.current.index,Math.max(0,M.current.startSize+W),M.current.startSize):Math.abs(W)>Math.max(1,c)&&(M.current={...M.current,isResizing:!0},F(M.current),M.current.onDividerResizeStart?.(M.current.index,Math.max(0,M.current.startSize+W))),D.stopPropagation(),D.preventDefault()}}),I=at(()=>{b?.(r)},[r]);if(!E)return;const T=s({bounds:E,orientation:n,view:o,index:r,disabled:i,disabledResize:l,onAutoFit:I,onPointerDown:v,...y},t);if(!T)return;const{getPortalContainer:R}=Gg();let A=null;return j&&j.isResizing&&j.index===r&&(A=ao.createPortal(a.jsx("div",{style:{position:"absolute",cursor:C?ax:sx,left:0,top:0,width:"100%",height:"100%"}}),R(),"divider:"+r)),a.jsxs(a.Fragment,{children:[A,a.jsx("div",{className:I0("header-divider-anchor"),style:{position:"absolute",pointerEvents:"auto",top:`${C?E.y:S}px`,left:`${C?S:E.x}px`,width:(C?0:E.width-1)+"px",height:(C?E.height-1:0)+"px",display:"flex"},tabIndex:-1,children:T})]})}));class Gj{naturalDimensions(t,n={}){const o=document.createElement("div");let r=n?.lineHeight??"1";!n?.lineHeight&&n.paintableText?.fontSize&&(r=Math.ceil(1.2*n.paintableText.fontSize)+"px");const i=document.createElement("div");i.style.visibility="hidden",i.style.position="absolute",i.style.textRendering="geometricprecision",i.style.display="inline-grid",i.style.overflowWrap="break-word",i.style.maxWidth=n.maxWidth?n.maxWidth+"px":"100%",i.style.lineHeight=r,i.style.letterSpacing=(n.paintableText?.letterSpacing??0)+"px",i.style.fontSize=n.paintableText?.fontSize?n.paintableText.fontSize+"px":"unset",i.style.fontFamily=n.paintableText?.fontSize?n.paintableText.fontFamily:"unset",i.style.fontWeight=n.paintableText?.fontWeight?""+n.paintableText.fontWeight:"400",i.style.fontStyle=n.paintableText?.fontStyle?n.paintableText.fontStyle:"normal",i.style.whiteSpace=n.paintableText?.wrap==="wrap"?"break-spaces":"pre",o.appendChild(i);const l=t.split(`
|
|
56
|
+
`);for(let s=0;s<l.length;s++){let u=document.createElement("span");i.appendChild(u),u.textContent=l[s]}l.length!==0&&l[l.length-1].length!==0||i.appendChild(document.createElement("br")),document.body.appendChild(i);let c=i.getBoundingClientRect();return i.remove(),{width:c.width,height:c.height,maxLineHeight:1.2*(n.paintableText?.fontSize||1056/72)}}}const Kj=((e=void 0)=>Object.freeze({clean:e,dirty:void 0,editMode:!1}))();d.memo(d.forwardRef((e,t)=>{const{editState:n=Kj,defaultTextStyle:o,onStartEdit:r,onChangeEdit:i,onSubmitEdit:l,onCancelEdit:c,onDoneEdit:s,containerBounds:u,setNaturalDimensions:h,onNavigate:f,textProperties:p,style:m,autoFocus:g,...x}=e,y=d.useRef(null),{width:w=0}=u??{},[b,C]=d.useState(()=>n);d.useEffect(()=>{C(n)},[n]);const _=p?.align||"left",E=p?.vAlign||"middle",M=p?.fill||"#040404",j=p?.wrap||"wrap",F=p?.fontFamily||"Calibri",k=p?.fontSize||11,O=p?.fontWeight||400,S=p?.fontStyle||"normal",v=b.dirty??b.clean??"";let I=2;const T=96*k/72,R=1.2*T;E==="right"&&(I+=1);const A=d.useMemo(()=>new Gj().naturalDimensions(v,{maxWidth:j==="wrap"?w-I:void 0,lineHeight:`${R}px`,paintableText:{fontStyle:S,wrap:j,letterSpacing:-.25}}),[v,j,I,T,F,O,S,h,w]),D=d.useCallback(()=>A.maxLineHeight?A.maxLineHeight+"px":"1.2",[A]),[L,V]=d.useState(D);d.useLayoutEffect(()=>{V(D())},[u,A]),d.useLayoutEffect(()=>{h?.({width:j==="wrap"?void 0:A.width+I,height:A.height})},[A,h]);const W=at(i,[i]),P=at(Z=>{if(b.dirty===Z)return;const Q={...b};Q.dirty=Z,y.current,C(Q),W?.(Q)},[b]),U=at(Z=>{if(b.editMode===Z)return;const Q={...b};Q.editMode=Z,C(Q),W?.(Q)},[b]),X=at(()=>{try{return l?.(b),s?.(),!0}catch{return!1}},[l,b]),ee=at(()=>{C(n),c?.(),s?.()},[c,n]),H=at(Z=>{if(!y.current)return;if(Z.isDefaultPrevented(),!(Z.isTrusted||Z.nativeEvent.ctrlKey||Z.nativeEvent.metaKey||Z.nativeEvent.altKey||Z.nativeEvent.isComposing)&&_3.indexOf(Z.nativeEvent.key)!==-1){const Y={...b};return Y.dirty=Z.nativeEvent.key==="Backspace"?"":(Y.dirty??"")+Z.key,C(Y),W?.(Y),void Z.preventDefault()}const Q=Z.nativeEvent.shiftKey;if(Z.which===27)return Z.preventDefault(),void ee();if(Z.which===113)return U(!0),void Z.preventDefault();if(Z.which===13&&(Z.preventDefault(),X()&&f?.(Q?Vn:Hn)),Z.which===9)return Z.preventDefault(),void(X()&&f?.(Q?Nn:On));if(!b.editMode){let Y=null;switch(Z.which){case 37:Y=Nn;break;case 39:Y=On;break;case 38:Y=Vn;break;case 40:Y=Hn}if(Y)return void X()}},[b,f]),[$,z]=d.useState(!g);d.useEffect(()=>{z(!1)},[]);const q=Cd(t,()=>({startEdit(Z){let Q=Z?.initialSelection;if(!Q){const te=y.current.value.length??0;Q={start:te,end:te,direction:"forward"}}y.current?.setSelectionRange(Q.start,Q.end,Q.direction);const Y={...n,editMode:Z?.editMode??!1};Z?.text!==void 0&&(Y.dirty=Z.text),Y.editMode===n.editMode&&Y.dirty===n.dirty||(C(Y),W?.(Y))},submitEdit:()=>X(),cancelEdit(){ee()},autoFocus(){y.current?.focus()},getLineHeight:()=>A?.maxLineHeight??R,dispatchEvent:Z=>y.current.dispatchEvent(Z)}),[n,r]);return a.jsx("div",{ref:q,...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:v,autoFocus:!1,disabled:$,name:"cell-editor",autoComplete:"off",autoCapitalize:"off",style:{flex:"1 1 100%",position:"relative",fontSize:`${T}px`,fontFamily:`${F}`,fontWeight:`${O}`,fontStyle:`${S}`,padding:"0px",marginRight:_==="right"?"3px":"0px",marginLeft:_==="left"?"2px":"0px",lineHeight:L,height:A.height,textRendering:"geometricPrecision",letterSpacing:"-0.25px",boxSizing:"border-box",borderWidth:0,outline:"none",resize:"none",overflow:"hidden",verticalAlign:"baseline",textAlign:_,background:"transparent",color:M,marginBottom:"0px",userSelect:"text",maxHeight:"100%",whiteSpace:j==="wrap"?"break-spaces":"pre",wordWrap:"break-word"},onChange:Z=>{P(Z.target.value)},onDoubleClick:Z=>{Z.isTrusted},onMouseDown:Z=>{U(!0)},onKeyDown:H})})})),d.memo(e=>{const{value:t,view:n,bounds:o,range:r,zoom:i,children:l,style:c,...s}=e;return a.jsx("div",{style:{padding:"2px 4px",fontFamily:"Calibri",letterSpacing:-.25,lineHeight:1.2,fontSize:c?.fontSize||1056/72,...c},...s,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 fo={TopLeft:"tl",Top:"t",TopRight:"tr",Left:"l",Center:"c",Right:"r",BottomLeft:"bl",Bottom:"b",BottomRight:"br"},Xo="text/html",Ci="text/plain",u1="image/png",Xj=Object.freeze({left:0,top:0}),Yj=Object.freeze({left:0,top:0,bottom:0,right:0}),Jj=Object.freeze({x:0,y:0,width:0,height:0}),Cs=Object.freeze(Object.defineProperty({__proto__:null,EmptyBounds:Jj,EmptyRect:Yj,EmptyTopLeft:Xj},Symbol.toStringTag,{value:"Module"})),D0="column",_s="row",Qj=Object.freeze({colIndex:0,rowIndex:0}),eM=Object.freeze({colStart:0,rowStart:0,colEnd:0,rowEnd:0}),cx=(e,t)=>e.colStart===t.colStart?e.rowStart-t.rowStart:e.colStart-t.colStart,dx=(e,t)=>e.rowStart===t.rowStart?e.colStart-t.colStart:e.rowStart-t.rowStart,tM=(e,t)=>e.rowEnd===t.rowEnd?t.colEnd-e.colEnd:t.rowEnd-e.rowEnd,nM=(e,t)=>e.colEnd===t.colEnd?t.rowEnd-e.rowEnd:t.colEnd-e.colEnd,E7=(e,t)=>e.colIndex===t.colIndex?e.rowIndex-t.rowIndex:e.colIndex-t.colIndex,k7=(e,t)=>e.rowIndex===t.rowIndex?e.colIndex-t.colIndex:e.rowIndex-t.rowIndex,ux=(e=_s,t=!1)=>t?e!==D0?tM:nM:e!==D0?dx:cx,T7=(e,t)=>e===t||!(!e||!t)&&e.rowIndex===t.rowIndex&&e.colIndex===t.colIndex,p5=(e,t)=>e===t||!(!e||!t)&&e.rowStart===t.rowStart&&e.rowEnd===t.rowEnd&&e.colStart===t.colStart&&e.colEnd===t.colEnd,f5=(e,t)=>!(!e||!t||e.colStart>t.colEnd||t.colStart>e.colEnd||e.rowStart>t.rowEnd||t.rowStart>e.rowEnd),j7=(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(!p5(e[n],t[n]))return!1;return!0},Du=(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 c=n;return c?(c.colStart=o,c.rowStart=r,c.colEnd=i,c.rowEnd=l):c={colStart:o,rowStart:r,colEnd:i,rowEnd:l},c},M7=(e,t)=>{if(!t||t.length===0)return e;const n={...e};for(let o=0;o<t.length;o++){const r=t[o];f5(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},oM=[null,null],rM=(e,t,n)=>{if(e[0].value===e[1].value)return t};function R7(e,t=2,n,o=_s,r){let i=[...e];if(t<=0||e.length<=1)return i;let l=o===D0,c=0,s=!1;do{const u=i.sort(ux(l?_s:D0));i=[],i.push(u[0]);const h=u.length;let f=0,p=u[0],m=p.colStart,g=p.rowStart,x=p.colEnd,y=p.rowEnd;for(let w=1;w<h;w++){const b=u[w];let C=!1;if(C=l?p&&g===b.rowStart&&y===b.rowEnd&&x+1===b.colStart:p&&m===b.colStart&&x===b.colEnd&&y+1===b.rowStart,C){let _={colStart:m,rowStart:g,colEnd:l?b.colEnd:x,rowEnd:l?y:b.rowEnd};if(p.value!==void 0&&(_.value=p.value),n){const E=r??[null,null];E[0]=p,E[1]=b,_=n(E,_,o)}if(_){i[f]=_,s=!0,p=_,m=p.colStart,g=p.rowStart,x=p.colEnd,y=p.rowEnd;continue}}i[++f]=b,p=b,m=p.colStart,g=p.rowStart,x=p.colEnd,y=p.rowEnd}c++,l=!l,c===1&&(s=!0)}while(c<t&&s&&i.length>1);return i}const _o=Object.freeze(Object.defineProperty({__proto__:null,EmptyCell:Qj,EmptyRange:eM,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:E7,columnFirstRangeComparator:cx,createCellComparator:(e=_s,t=!1)=>t?e!==D0?(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!==D0?k7:E7,createConflatingRanges:(e,t=!1)=>{const n=[];let o,r,i=Number.MIN_SAFE_INTEGER,l=Number.MIN_SAFE_INTEGER;return{append:(c,s,u)=>{let h=!0;const f=u!==void 0;if(f){const g=e?e(r,u,t):r===u?u:void 0;g===void 0?h=!1:u=g}if(h&&s===l+1&&c===i)return t?o.rowEnd=s:o.colEnd=s,l=s,void(r=u);o&&n.push(o);const p=t?c:s,m=t?s:c;o={colStart:p,rowStart:m,colEnd:p,rowEnd:m},f&&(o.value=u),i=c,l=s,r=u},done:c=>(o&&(n.push(o),o=null),c?R7(n,3,c===!0?rM:c,t?D0:_s,oM):n)}},createRangeComparator:ux,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:M7,extendRangeToUnionRanges:(e,t)=>{if(!t||t.length===0)return e;let n=e,o=null;for(;!p5(n,o);)o=n,n=M7(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(f5(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 c=n;return c?(c.colStart=o,c.rowStart=r,c.colEnd=i,c.rowEnd=l):c={colStart:o,rowStart:r,colEnd:i,rowEnd:l},c},isCellWithinRange:(e,t)=>!(!e||!t||e.rowIndex<t.rowStart||e.rowIndex>t.rowEnd||e.colIndex<t.colStart||e.colIndex>t.colEnd),isEqualCells:T7,isEqualRanges:p5,isEqualRangesArrays:j7,isEqualSelectionCoords:(e,t)=>e===t||!(!e||!t)&&e.rangeIndex===t.rangeIndex&&!!T7(e.cell,t.cell)&&j7(e.ranges,t.ranges),isRangeWithinRange:(e,t)=>!(e.rowStart<t.rowStart||e.rowEnd>t.rowEnd||e.colStart<t.colStart||e.colEnd>t.colEnd),isRangesIntersect:f5,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:R7,rowFirstCellComparator:k7,rowFirstRangeComparator:dx,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:Du,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=Du(o,e[r],n);return t&&(o=Du(o,t,n)),o}},Symbol.toStringTag,{value:"Module"})),iM=typeof Symbol=="function"&&Symbol.for?Symbol.for("react.element"):60103;function lM(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===iM}(e)}function qa(e,t){return t.clone!==!1&&t.isMergeableObject(e)?$0((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}function aM(e,t,n){return e.concat(t).map(function(o){return qa(o,n)})}function I7(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 D7(e,t){try{return t in e}catch{return!1}}function $0(e,t,n){(n=n||{}).arrayMerge=n.arrayMerge||aM,n.isMergeableObject=n.isMergeableObject||lM,n.cloneUnlessOtherwiseSpecified=qa;const o=Array.isArray(t);return o===Array.isArray(e)?o?n.arrayMerge(e,t,n):function(r,i,l){const c={};return l.isMergeableObject(r)&&I7(r).forEach(function(s){c[s]=qa(r[s],l)}),I7(i).forEach(function(s){var u,h;D7(u=r,h=s)&&(!Object.hasOwnProperty.call(u,h)||!Object.propertyIsEnumerable.call(u,h))||(D7(r,s)&&l.isMergeableObject(i[s])?c[s]=function(f,p){if(!p.customMerge)return $0;const m=p.customMerge(f);return typeof m=="function"?m:$0}(s,l)(r[s],i[s],l):c[s]=qa(i[s],l))}),c}(e,t,n):qa(t,n)}$0.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(n,o){return $0(n,o,t)},{})};const sM=Object.freeze([]),cM=Object.freeze({}),L7=e=>e,h1=()=>"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)}),hx=(e,t)=>e===t||!(!Array.isArray(e)||!Array.isArray(t)||e.length!==t.length)&&e.every((n,o)=>n===t[o]),Sa=e=>typeof e=="object"&&!Array.isArray(e)&&e!==null,px=e=>typeof e!="object"||Array.isArray(e)||e===null?e:(Object.keys(e).forEach(function(t){e[t]&&typeof e[t]=="object"?px(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),dM=(e,t)=>!(e!==t&&!hx(e,t)&&!e.isEqual?.(t)),fx=(e,t,n=dM)=>{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];fx(e[l],t?.[l],n)===null&&(r=!0,delete e[l])}return r&&Object.keys(e).length===0?null:void 0},O7=typeof performance=="object"&&typeof performance.now=="function"?()=>performance.now():()=>Date.now(),P7=e=>e==null,A7=(e,t)=>!(t.left>e.right||t.right<e.left||t.top>e.bottom||t.bottom<e.top),F7=!(typeof window>"u"||!window.document||!window.document.createElement),ar={Windows:"windows",MacOS:"macos",IOS:"ios",Linux:"linux",Android:"android",Safari:"safari",Firefox:"firefox",Node:"node",Unknown:"unknown"},Es=()=>{if(mx())return ar.Node;const e=globalThis.navigator!==void 0&&globalThis.navigator.userAgent?globalThis.navigator.userAgent.toLowerCase():"";return e?/(win32|win64|windows|wince)/i.test(e)?ar.Windows:/(macintosh|macintel|macppc|mac68k|macos)/i.test(e)?ar.MacOS:/(iphone|ipad|ipod)/i.test(e)?ar.IOS:/android/.test(e)?ar.Android:/linux/.test(e)?ar.Linux:/^((?!chrome|android|).)*safari/i.test(e)?ar.Safari:/^((?!chrome|android|Seamonkey).)*firefox/i.test(e)?ar.Firefox:ar.Unknown:ar.Unknown};function mx(){return typeof process<"u"&&process.release?.name==="node"||(typeof process<"u"&&process.browser,!1)}const z7=(e,t=!1)=>(document.hasFocus()||t)&&(e===document.activeElement||e?.contains(document.activeElement)),Ht=Object.freeze(Object.defineProperty({__proto__:null,EmptyArray:sM,EmptyObject:cM,OSType:ar,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:F7,cancelTimeout:e=>{cancelAnimationFrame(e.id)},castToString:e=>e==null||e===void 0?"":typeof e!="string"?""+e:e,cloneObject:e=>P7(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,c=0;function s(){let h=Date.now()-c;h<t&&h>=0?o=setTimeout(s,t-h):(o=null,n||(l=e.apply(i,r),i=r=null))}t==null&&(t=100);const u=function(){i=globalThis,r=arguments,c=Date.now();var h=n&&!o;return o||(o=setTimeout(s,t)),h&&(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:$0,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=L7){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=L7){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||!Sa(l))return l;o=l}return o??null},getOS:Es,hasFocus:z7,isDefined:e=>e!=null,isEmpty:e=>e==null||e==="",isEqualArrays:hx,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:mx,isNullOrUndefined:P7,isNumeric:e=>{const t=1*e;return Number.isFinite(t)&&typeof t=="number"},isObject:Sa,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:A7,mergeContentful:(...e)=>{const t=e.length;if(t>0&&e[t-1]!==void 0&&!Sa(e[t-1]))return e[t-1];let n=e[0]||{};for(let o=1;o<t;o++)n=$0(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(!F7)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:px,removeEqualValues:fx,removeListenerAll:e=>{if(!e)return[];for(let t=0;t<e.length;t++)e[t]&&e[t]();return[]},requestTimeout:(e,t)=>{const n=O7(),o={id:requestAnimationFrame(function r(){O7()-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 c=r[l];if(c==null&&(c={},r[l]=c),!Sa(c))throw new Error("Can not set path to a non object path.");r=c}if(typeof n!="number"&&typeof n!="boolean"&&typeof n!="string"&&!Sa(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(!A7(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})},c=()=>{t.right>r.left&&t.right<r.right&&(o.push({...r,left:t.right}),r={...r,right:t.right})},s=()=>{t.left>r.left&&t.left<r.right&&(o.push({...r,right:t.left}),r={...r,left:t.left})};return n?(s(),c(),i(),l()):(i(),l(),c(),s()),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:h1,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=>{z7(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 gx=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")},m5=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:gx,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:m5},Symbol.toStringTag,{value:"Module"}));const xx="data:image/png;base64,",yx="Unable to resolve image.",B7=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(yx)}),Lu="image/svg+xml";var N7,V7;Object.freeze(Object.defineProperty({__proto__:null,DATA_URL_PNG_PREFIX:xx,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(yx)}),loadImageDetails:async(e,t=null)=>{let n=null;const o=async()=>{try{const i=t??"image/*",l=URL.createObjectURL(new Blob([e],{type:i})),c=await B7(l);n={mimeType:i,naturalDimensions:c,asUrl:l}}catch{}},r=async()=>{try{const i=new TextDecoder().decode(e),l=URL.createObjectURL(new Blob([i],{type:Lu})),c=await B7(l);n={mimeType:t??Lu,naturalDimensions:c,asUrl:l,asSVGText:i}}catch{}};if(t===Lu?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"})),(V7=N7||(N7={})).resolveTypedUpdates=(e,t,n,o)=>{if(e===null)return e;if(e===void 0)return o;let r=e;if(t?.shorthand){const s=t?.shorthand(e,n);s!==void 0&&(r=s)}if(r!==null&&t?.getSubType){const s=t.getSubType(r);s&&(t=s)}const i=t?.properties,l=t?.arrayType??!1;let c=r;if(t&&t.merge&&c&&o)c=t.merge(c,o,n);else if(!l&&i){const s=Object.keys({...r,...o});c=null;for(let u=0;u<s.length;u++){const h=s[u];let f,p=r[h];if(p!==void 0){const m=i[h];f=m?(0,V7.resolveTypedUpdates)(p,m,n,o?.[h]):p}else f=o?.[h];f!=null&&(c=c??{},c[h]=f)}}return c};const H7=`The Safari browser does not support advanced copy and paste.
|
|
57
|
+
Copy and paste will be limited to within the browser tab.
|
|
58
|
+
|
|
59
|
+
Please use Chrome or Edge if external copy and paste is required.`,Ou=`You do not have permissions to access the clipboard.
|
|
60
|
+
All copy and paste operations will be limited to the browser tab.`,bx={Safari:`The Safari browser does not support advanced copy and paste.
|
|
61
|
+
Copy and paste will be limited to within the browser tab.
|
|
62
|
+
|
|
63
|
+
Please use Chrome or Edge if external copy and paste is required.`,Perms:Ou,PermsWrite:Es()===ar.Safari?H7:Ou,PermsRead:Es()===ar.Safari?H7:Ou},Pu=async()=>new Promise(e=>{document.hasFocus()?e():globalThis.addEventListener?.("focus",()=>{e()},{once:!0}),document.activeElement.focus?.()}),Au=async(e,t,n)=>{if(Es()===ar.Safari)return await n(new Error(bx.Safari));try{const o=async l=>{try{return await l()}catch(c){if(c.message?.includes("Document is not focused"))return!1;throw c}},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)}},wx=async e=>{try{return await e.read({unsanitized:[Xo]})}catch{}return await e.read()},vx=async(e,t)=>{if(!e)return null;const n=await wx(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 c=0;c<l.length;c++){const s=l[c];let u=o[s];i[s]=typeof u=="string"?e(s,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 Z1=async(e,t=Xo)=>new Promise(async(n,o)=>{try{const r=await vx(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)}}),g5=async(e,t=Xo)=>{const n=await Z1(e,t);if(!n)return null;let o=null;try{o=new DOMParser().parseFromString(n,Xo)}catch{console.warn("Can't parse html from clipboard.")}return o},uM=vx,hM=Z1,pM=g5,ks="clipboard-uuid",ol="web text/uuid",$7=e=>`<div style="display:none" ${ks}="${e}"/>`,fM=(e,t)=>{let n=null;try{const o=new DOMParser().parseFromString(t,Xo);o.body.firstElementChild.setAttribute(ks,e),n=o.getElementsByTagName("body")[0].innerHTML}catch(o){console.warn("Can't embed uuid.",o)}return n},W7=(e,t)=>{if(!t||!e)return!1;try{const n=t.querySelectorAll(`[${ks}="${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 Hl=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 Au("clipboard-read",async()=>{await Pu();const e=await Z1(this._nativeClipboard,ol);if(!this._state||e&&e===this._state.uuid)return!0;const t=await g5(this._nativeClipboard,Xo);return!this._state||(W7(this._state.uuid,t)||this.clear(),!0)},async e=>{e?.message==="denied"||e.message?.includes("Document is not focused")||Es()===ar.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 Au("clipboard-read",async()=>{if(await Pu(),this._state?.uuid){const t=await Z1(this._nativeClipboard,ol);if(t&&t===e._state.uuid)return!0;const n=await g5(this._nativeClipboard,Xo);if(W7(e._state?.uuid,n))return!0}return e._state={items:await wx(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:h1(),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 Au("clipboard-write",async()=>{await Pu(),o&&r.length===0&&(r.push(new ClipboardItem({[ol]:new Blob([o],{type:ol})})),r.push(new ClipboardItem({[Xo]:new Blob([$7(o)],{type:Xo})})));for(let l=0;l<Math.min(1,r.length);l++){const c=r[l];let s=c.types.indexOf(Xo),u=null;if(s!==-1){const p=await c.getType(Xo);u=await m5(p),u&&(u=fM(o,u))}if(!u&&c.types.includes(Ci)){const p=await c.getType(Ci);if(p){let m=null;typeof p=="string"?(console.warn("text as string",p),m=p):m=await m5(p),m&&(u=`<div ${ks}="${o}">${m}</div>`)}}if(!u&&c.types.includes(u1)){const p=await c.getType(u1),m=gx(await p.arrayBuffer());u=`<div ${ks}="${o}"><img src="${xx+m}"/></div>`}!u&&o&&(u=$7(o));const h=new Blob([u??""],{type:Xo}),f={};for(let p=0;p<c.types.length;p++){const m=c.types[p];f[m]=p===s?h:c.getType(m)}u&&s===-1&&(f[Xo]=h),o&&(f[ol]=new Blob([o],{type:ol})),n.push(new ClipboardItem(f))}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[Ci]=new Blob([r??""],{type:Ci}))}catch(r){t=r}try{const r=await e.toHtml?.()??null;r&&(n[Xo]=new Blob([r],{type:Xo}))}catch(r){t=r,console.warn("export to html",r)}try{const r=await e.toImage?.()??null;r&&(n[u1]=r)}catch(r){t=r,console.warn("export to png",r)}const o=this._write({uuid:h1(),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(Ci)&&(o=await n[i].getType(Ci));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({[Ci]:new Blob([e],{type:Ci})})];return this._write({uuid:h1(),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 Fu;(Fu=Hl||(Hl={})).ErrorMessages=bx,Fu.Global=new Fu,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 mM="left",Ln="shift",Ho="alt",yt="ctrl",Sx="meta",gM=9,Cx=13,E3=27,xM=35,yM=36,bM=37,wM=38,vM=39,SM=40,_x=46,CM=113,Ex=3,Wo={Horizontal:"horizontal",Vertical:"vertical"};function kx(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=kx(e[t]))&&(o&&(o+=" "),o+=n)}else for(n in e)e[n]&&(o&&(o+=" "),o+=n);return o}function Sl(){for(var e,t,n=0,o="",r=arguments.length;n<r;n++)(e=arguments[n])&&(t=kx(e))&&(o&&(o+=" "),o+=t);return o}var _M=function(){},Tx=typeof window<"u",EM=Tx?d.useLayoutEffect:d.useEffect,U7={x:0,y:0,width:0,height:0,top:0,left:0,bottom:0,right:0};const W0=Tx&&window.ResizeObserver!==void 0?function(){var e=d.useState(null),t=e[0],n=e[1],o=d.useState(U7),r=o[0],i=o[1],l=d.useMemo(function(){return new window.ResizeObserver(function(c){if(c[0]){var s=c[0].contentRect,u=s.x,h=s.y,f=s.width,p=s.height,m=s.top,g=s.left,x=s.bottom,y=s.right;i({x:u,y:h,width:f,height:p,top:m,left:g,bottom:x,right:y})}})},[]);return EM(function(){if(t)return l.observe(t),function(){l.disconnect()}},[t]),[n,r]}:function(){return[_M,U7]},Be=(e,t)=>{const n=d.useCallback((...i)=>e?.(...i),t),o=d.useRef(null);o.current=n;const r=d.useCallback((...i)=>o.current?.(...i),[]);if(o.current)return r},jx=e=>{const{style:t,orientation:n=Wo.Vertical,...o}=e,r=n===Wo.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"})})})})},Mx=e=>{const{style:t,orientation:n=Wo.Vertical,...o}=e,r=n===Wo.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"})})})})},kM=e=>{const{style:t,orientation:n=Wo.Vertical,...o}=e,r=n===Wo.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"})})})},x5=(e,t,n,o,r=0)=>{for(let i=0;i<n.length;i++){const l=n[i].getBoundingClientRect();let c=l.left-t,s=c+l.width;if(o){if(c<e&&s>=e)return c}else if(Math.ceil(s)>Math.ceil(e)+2)return s}return r},q7=Object.freeze(Object.defineProperty({__proto__:null,getScrollTo:x5},Symbol.toStringTag,{value:"Module"})),k3=d.memo(d.forwardRef((e,t)=>{const{offset:n=0,totalSize:o=0,viewportSize:r=0,style:i,className:l,orientation:c=Wo.Vertical,onScrollOffset:s,onScroll:u,showCustomScrollButtons:h=!1,scrollButtonIncrement:f=200,scrollButtonInitialRepeatDelay:p=260,scrollButtonAdditionalRepeatDelay:m=120,createScrollStartButton:g=jx,createScrollEndButton:x=Mx,...y}=e,w=Be(u,[u]),b=d.useRef(null),[C,{width:_,height:E}]=W0(),[M,{width:j,height:F}]=W0(),k=c===Wo.Vertical,O=k?"top":"left",S=k?"scrollTop":"scrollLeft",v=k?E:_,I=k?F:j,[T,R]=d.useState(null);d.useEffect(()=>{T!==null&&b.current&&b.current.scrollTo({behavior:"smooth",[O]:T})},[T,k]);const A=d.useCallback((z,q=!1)=>{if(!b.current)return 0;const Z=b.current.querySelector(".scrollbar-viewport"),Q=Z.getBoundingClientRect(),Y=Z.children,te=q?0:x5(z,Q[O],Y,!0,Math.max(0,z-f));return R(te),Math.max(0,te)},[]),D=d.useCallback((z,q=!1)=>{if(!b.current)return 0;const Z=b.current.querySelector(".scrollbar-viewport"),Q=Z.getBoundingClientRect(),Y=Z.children,te=Math.ceil(I-v),ie=q?te:x5(z,Q[O],Y,!1,Math.max(0,z+f));return R(ie),Math.min(te,ie)},[I,v]),L=d.useRef(null),V=d.useCallback(z=>{L.current=n;const q=z.target[S];s(q,r,o),w?.(z)},[s,r,o,n]);d.useEffect(()=>{const z=L.current;L.current=null,n!==z&&(b.current[S]=n)},[n,S]);const W=d.useRef(null),P=d.useRef(null),U=d.useCallback(()=>{W.current&&(clearTimeout(W.current),W.current=null,P.current=null)},[]),X=d.useCallback((z,q,Z,Q=p)=>{P.current=z,W.current=setTimeout(()=>{const Y=Z?A(P.current||z):D(P.current||z);Y!==P.current?X(Y,!1,Z,m):U()},q?0:Q)},[A,D,U]);d.useEffect(()=>()=>U(),[U]);const ee=n,H=d.useMemo(()=>{if(!h)return null;const z={orientation:c,disabled:Math.floor(ee)<=0||Math.floor(I-v)===0,onMouseUp:U,onMouseLeave:U,onMouseDown:()=>X(ee,!0,!0)};return g?.(z)},[h,c,ee,T,I,v]),$=d.useMemo(()=>{if(!h)return null;const z={orientation:c,disabled:Math.floor(I-v)<=Math.ceil(ee),onMouseUp:U,onMouseLeave:U,onMouseDown:()=>X(ee,!0,!1)};return x?.(z)},[h,c,ee,T,I,v]);return a.jsxs("div",{ref:t,style:{display:"flex",flex:"1",flexDirection:k?"column":"row",padding:"0",...i},className:Sl("_sheetxl-scrollbar_eblx4_6",l),...y,children:[H,a.jsx("div",{className:"pseudo-scrollbar",style:{flex:"1 1 100%",display:"flex",boxSizing:"content-box",flexDirection:k?"column":"row",justifyContent:"center",alignItems:"center"},ref:C,children:a.jsx("div",{tabIndex:-1,style:{flex:"1 1 100%",overflowY:k?"scroll":"hidden",overflowX:k?"hidden":"scroll",position:"relative",willChange:"transform"},onScroll:V,ref:b,children:a.jsx("div",{ref:M,style:{position:"absolute",height:k?o-r+(E??0):1,width:k?1:o-r+(_??0)},className:"scrollbar-viewport"})})}),$]})}));k3.displayName="Scrollbar";let Z7=Date.now,Xi={},TM=1;const Ca=e=>{let t=Xi[e]!==null;return t&&(Xi[e]=null),t},G7=(e,t,n,o=0,r)=>{let i=Z7(),l=i,c=0,s=0,u=0,h=TM++;if(h%20==0){const p={};for(let m in Xi)p[m]=!0;Xi=p}const f=function(p){let m=p!==!0,g=Z7(),x=!0;try{x=(!t||t(h))??!0}catch{x=!1}if(!Xi[h]||!x)return Xi[h]=null,void n?.(60-s/((g-i)/1e3),h,!1);if(m){u=Math.round((g-l)/16.666666666666668)-1;for(let b=0;b<Math.min(u,4);b++)f(!0),s++}o&&(c=(g-i)/o,c>1&&(c=1));let y=r?r(c):c,w=!1;try{w=e(y,g,m)}catch{w=!1}w!==!1&&c!==1||!m?m&&(l=g,requestAnimationFrame(f)):(Xi[h]=null,n?.(60-s/((g-i)/1e3),h,c===1||o==null))};return Xi[h]=!0,requestAnimationFrame(f),h},jM=function(e){return Math.pow(e-1,3)+1},MM=function(e){return(e/=.5)<1?.5*Math.pow(e,3):.5*(Math.pow(e-2,3)+2)};class RM{constructor(t,n){this.__isSingleTouch=!1,this.__isTracking=!1,this.__didDecelerationComplete=!1,this.__isGesturing=!1,this.__isDragging=!1,this.__isDecelerating=0,this.__isAnimating=0,this.__interruptedAnimation=!1,this.__lastScale=1,this.__enableScrollX=!0,this.__enableScrollY=!0,this.__clientLeft=0,this.__clientTop=0,this.__clientWidth=0,this.__clientHeight=0,this.__contentWidth=0,this.__contentHeight=0,this.__snapWidth=100,this.__snapHeight=100,this.__zoomLevel=1,this.__scrollLeft=0,this.__scrollTop=0,this.__maxScrollLeft=0,this.__maxScrollTop=0,this.__scheduledLeft=0,this.__scheduledTop=0,this.__scheduledZoom=0,this.__lastTouchLeft=0,this.__lastTouchTop=0,this.__lastTouchMove=0,this.__positions=[],this.__initialTouchLeft=0,this.__initialTouchTop=0,this.__zoomLevelStart=1,this.__minDecelerationScrollLeft=null,this.__minDecelerationScrollTop=null,this.__maxDecelerationScrollLeft=null,this.__maxDecelerationScrollTop=null,this.__decelerationVelocityX=null,this.__decelerationVelocityY=0,this.__callback=t,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:void 0,penetrationDeceleration:.03,penetrationAcceleration:.08,...n}}setDimensions(t,n,o,r){t!==null&&(this.__clientWidth=t),n!==null&&(this.__clientHeight=n),o!==null&&(this.__contentWidth=o),r!==null&&(this.__contentHeight=r),this.__computeScrollMax(),this.scrollTo(this.__scrollLeft,this.__scrollTop,!0)}setPosition(t,n){this.__clientLeft=t||0,this.__clientTop=n||0}setSnapSize(t,n){this.__snapWidth=t,this.__snapHeight=n}getValues(){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(t,n){const o=this.getValues();return{left:t/o.zoom,top:n/o.zoom}}getScrollMax(){return{left:this.__maxScrollLeft,top:this.__maxScrollTop}}zoomTo(t,n=!1,o,r,i){if(!this.options.zooming)throw new Error("Zooming is not enabled!");i&&(this.__zoomComplete=i),this.__isDecelerating&&(Ca(this.__isDecelerating),this.__isDecelerating=0);const l=this.__zoomLevel;o===void 0&&(o=this.__clientWidth/2),r===void 0&&(r=this.__clientHeight/2),t=Math.max(Math.min(t,this.options.maxZoom),this.options.minZoom),this.__computeScrollMax(t);const c=t/l;let s=c*(this.__scrollLeft+o)-o,u=c*(this.__scrollTop+r)-r;s>this.__maxScrollLeft?s=this.__maxScrollLeft:s<0&&(s=0),u>this.__maxScrollTop?u=this.__maxScrollTop:u<0&&(u=0),this.__publish(s,u,t,n)}zoomBy(t,n=!1,o=0,r=0,i){this.zoomTo(this.__zoomLevel*t,n,o,r,i)}scrollTo(t,n,o=!1,r=1){if(this.__isDecelerating&&(Ca(this.__isDecelerating),this.__isDecelerating=0),r!==void 0&&r!==this.__zoomLevel){if(!this.options.zooming)throw new Error("Zooming is not enabled!");t*=r,n*=r,this.__computeScrollMax(r)}else r=this.__zoomLevel;this.options.scrollingX?this.options.paging?t=Math.round(t/this.__clientWidth)*this.__clientWidth:this.options.snapping&&(t=Math.round(t/this.__snapWidth)*this.__snapWidth):t=this.__scrollLeft,this.options.scrollingY?this.options.paging?n=Math.round(n/this.__clientHeight)*this.__clientHeight:this.options.snapping&&(n=Math.round(n/this.__snapHeight)*this.__snapHeight):n=this.__scrollTop,t=Math.max(Math.min(this.__maxScrollLeft,t),0),n=Math.max(Math.min(this.__maxScrollTop,n),0),t===this.__scrollLeft&&n===this.__scrollTop&&(o=!1),this.__publish(t,n,r,o)}scrollBy(t=0,n=0,o=!1){const r=this.__isAnimating?this.__scheduledLeft:this.__scrollLeft,i=this.__isAnimating?this.__scheduledTop:this.__scrollTop;this.scrollTo(r+(t||0),i+(n||0),o)}doMouseZoom(t,n,o,r){const i=t>0?.97:1.03;return this.zoomTo(this.__zoomLevel*i,!1,o-this.__clientLeft,r-this.__clientTop)}doTouchStart(t,n){if(t.length===void 0)throw new Error("Invalid touch list: "+t);if(n instanceof Date&&(n=n.valueOf()),typeof n!="number")throw new Error("Invalid timestamp value: "+n);let o,r;this.__interruptedAnimation=!0,this.__isDecelerating&&(Ca(this.__isDecelerating),this.__isDecelerating=0,this.__interruptedAnimation=!0),this.__isAnimating&&(Ca(this.__isAnimating),this.__isAnimating=0,this.__interruptedAnimation=!0);let i=t.length===1;i?(o=t[0].pageX,r=t[0].pageY):(o=Math.abs(t[0].pageX+t[1].pageX)/2,r=Math.abs(t[0].pageY+t[1].pageY)/2),this.__initialTouchLeft=o,this.__initialTouchTop=r,this.__zoomLevelStart=this.__zoomLevel,this.__lastTouchLeft=o,this.__lastTouchTop=r,this.__lastTouchMove=n,this.__lastScale=1,this.__enableScrollX=!i&&this.options.scrollingX,this.__enableScrollY=!i&&this.options.scrollingY,this.__isTracking=!0,this.__didDecelerationComplete=!1,this.__isDragging=!i,this.__isSingleTouch=i,this.__positions=[]}doTouchMove(t,n,o=1){if(t.length===void 0)throw new Error("Invalid touch list: "+t);if(n instanceof Date&&(n=n.valueOf()),typeof n!="number")throw new Error("Invalid timestamp value: "+n);if(!this.__isTracking)return;let r,i;t.length===2?(r=Math.abs(t[0].pageX+t[1].pageX)/2,i=Math.abs(t[0].pageY+t[1].pageY)/2):(r=t[0].pageX,i=t[0].pageY);let l=this.__positions;if(this.__isDragging){let c=r-this.__lastTouchLeft,s=i-this.__lastTouchTop,u=this.__scrollLeft,h=this.__scrollTop,f=this.__zoomLevel;if(o!==void 0&&this.options.zooming){let p=f;if(f=f/this.__lastScale*o,f=Math.max(Math.min(f,this.options.maxZoom),this.options.minZoom),p!==f){let m=r-this.__clientLeft,g=i-this.__clientTop;u=(m+u)*f/p-m,h=(g+h)*f/p-g,this.__computeScrollMax(f)}}if(this.__enableScrollX){u-=c*this.options.speedMultiplier;let p=this.__maxScrollLeft;(u>p||u<0)&&(this.options.bouncing?u+=c/2*this.options.speedMultiplier:u=u>p?p:0)}if(this.__enableScrollY){h-=s*this.options.speedMultiplier;const p=this.__maxScrollTop;(h>p||h<0)&&(this.options.bouncing?h+=s/2*this.options.speedMultiplier:h=h>p?p:0)}l.length>60&&l.splice(0,30),l.push(u,h,n),this.__publish(u,h,f)}else{let c=this.options.locking?3:0,s=5,u=Math.abs(r-this.__initialTouchLeft),h=Math.abs(i-this.__initialTouchTop);this.__enableScrollX=this.options.scrollingX&&u>=c,this.__enableScrollY=this.options.scrollingY&&h>=c,l.push(this.__scrollLeft,this.__scrollTop,n),this.__isDragging=(this.__enableScrollX||this.__enableScrollY)&&(u>=s||h>=s),this.__isDragging&&(this.__interruptedAnimation=!1)}this.__lastTouchLeft=r,this.__lastTouchTop=i,this.__lastTouchMove=n,this.__lastScale=o}doTouchEnd(t){if(t instanceof Date&&(t=t.valueOf()),typeof t!="number")throw new Error("Invalid timestamp value: "+t);if(this.__isTracking){if(this.__isTracking=!1,this.__isDragging)if(this.__isDragging=!1,this.__isSingleTouch&&this.options.animating&&t-this.__lastTouchMove<=100){let n=this.__positions,o=n.length-1,r=o;for(let i=o;i>0&&n[i]>this.__lastTouchMove-100;i-=3)r=i;if(r!==o){const i=n[o]-n[r],l=this.__scrollLeft-n[r-2],c=this.__scrollTop-n[r-1];this.__decelerationVelocityX=l/i*(1e3/60),this.__decelerationVelocityY=c/i*(1e3/60);const s=this.options.paging||this.options.snapping?4:1;(Math.abs(this.__decelerationVelocityX)>s||Math.abs(this.__decelerationVelocityY)>s)&&this.__startDeceleration(t)}else this.options.scrollingComplete?.()}else t-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(t,n,o,r=!1){const i=this.__isAnimating;if(i&&(Ca(i),this.__isAnimating=0),r&&this.options.animating){this.__scheduledLeft=t,this.__scheduledTop=n,this.__scheduledZoom=o;const l=this.__scrollLeft,c=this.__scrollTop,s=this.__zoomLevel,u=t-l,h=n-c,f=o-s,p=function(x,y,w){w&&(this.__scrollLeft=l+u*x,this.__scrollTop=c+h*x,this.__zoomLevel=s+f*x,this.__callback&&this.__callback(this.__scrollLeft,this.__scrollTop,this.__zoomLevel))}.bind(this),m=function(x){return this.__isAnimating===x}.bind(this),g=function(x,y,w){y===this.__isAnimating&&(this.__isAnimating=!1),(this.__didDecelerationComplete||w)&&this.options.scrollingComplete?.(),this.options.zooming&&(this.__computeScrollMax(),this.__zoomComplete&&(this.__zoomComplete(),this.__zoomComplete=null))}.bind(this);this.__isAnimating=G7(p,m,g,this.options.animationDuration,i?jM:MM)}else this.__scheduledLeft=this.__scrollLeft=t,this.__scheduledTop=this.__scrollTop=n,this.__scheduledZoom=this.__zoomLevel=o,this.__callback&&this.__callback(t,n,o),this.options.zooming&&(this.__computeScrollMax(),this.__zoomComplete&&(this.__zoomComplete(),this.__zoomComplete=null))}__computeScrollMax(t=this.__zoomLevel){this.__maxScrollLeft=Math.max(this.__contentWidth*t-this.__clientWidth,0),this.__maxScrollTop=Math.max(this.__contentHeight*t-this.__clientHeight,0)}__startDeceleration(t){if(this.options.paging){const l=Math.max(Math.min(this.__scrollLeft,this.__maxScrollLeft),0),c=Math.max(Math.min(this.__scrollTop,this.__maxScrollTop),0),s=this.__clientWidth,u=this.__clientHeight;this.__minDecelerationScrollLeft=Math.floor(l/s)*s,this.__minDecelerationScrollTop=Math.floor(c/u)*u,this.__maxDecelerationScrollLeft=Math.ceil(l/s)*s,this.__maxDecelerationScrollTop=Math.ceil(c/u)*u}else this.__minDecelerationScrollLeft=0,this.__minDecelerationScrollTop=0,this.__maxDecelerationScrollLeft=this.__maxScrollLeft,this.__maxDecelerationScrollTop=this.__maxScrollTop;const n=function(l,c,s){this.__stepThroughDeceleration(s)}.bind(this),o=this.options.snapping?4:.1,r=function(){const l=Math.abs(this.__decelerationVelocityX)>=o||Math.abs(this.__decelerationVelocityY)>=o;return l||(this.__didDecelerationComplete=!0),l}.bind(this),i=function(l,c,s){this.__isDecelerating=0,this.__didDecelerationComplete&&this.options.scrollingComplete?.(),this.scrollTo(this.__scrollLeft,this.__scrollTop,this.options.snapping)}.bind(this);this.__isDecelerating=G7(n,r,i)}__stepThroughDeceleration(t){let n=this.__scrollLeft+this.__decelerationVelocityX,o=this.__scrollTop+this.__decelerationVelocityY;if(!this.options.bouncing){const r=Math.max(Math.min(this.__maxDecelerationScrollLeft,n),this.__minDecelerationScrollLeft);r!==n&&(n=r,this.__decelerationVelocityX=0);const i=Math.max(Math.min(this.__maxDecelerationScrollTop,o),this.__minDecelerationScrollTop);i!==o&&(o=i,this.__decelerationVelocityY=0)}if(t?this.__publish(n,o,this.__zoomLevel):(this.__scrollLeft=n,this.__scrollTop=o),!this.options.paging&&(this.__decelerationVelocityX*=.95,this.__decelerationVelocityY*=.95),this.options.bouncing){let r=0,i=0,l=this.options.penetrationDeceleration,c=this.options.penetrationAcceleration;n<this.__minDecelerationScrollLeft?r=this.__minDecelerationScrollLeft-n:n>this.__maxDecelerationScrollLeft&&(r=this.__maxDecelerationScrollLeft-n),o<this.__minDecelerationScrollTop?i=this.__minDecelerationScrollTop-o:o>this.__maxDecelerationScrollTop&&(i=this.__maxDecelerationScrollTop-o),r!==0&&(r*this.__decelerationVelocityX<=0?this.__decelerationVelocityX+=r*l:this.__decelerationVelocityX=r*c),i!==0&&(i*this.__decelerationVelocityY<=0?this.__decelerationVelocityY+=i*l:this.__decelerationVelocityY=i*c)}}}var Rr=typeof window<"u"?window:{screen:{},navigator:{}},$l=(Rr.matchMedia||function(){return{matches:!1}}).bind(Rr),Rx=!1,IM={get passive(){return Rx=!0}},K7=function(){};Rr.addEventListener&&Rr.addEventListener("p",K7,IM),Rr.removeEventListener&&Rr.removeEventListener("p",K7,!1);var DM=Rx,LM="PointerEvent"in Rr,T3="ontouchstart"in Rr,Ix=T3||"TouchEvent"in Rr&&$l("(any-pointer: coarse)").matches,X7=(Rr.navigator.maxTouchPoints||0)>0||Ix,Dx=Rr.navigator.userAgent||"",OM=$l("(pointer: coarse)").matches&&/iPad|Macintosh/.test(Dx)&&Math.min(Rr.screen.width||0,Rr.screen.height||0)>=768,Lx=($l("(pointer: coarse)").matches||!$l("(pointer: fine)").matches&&T3)&&!/Windows.*Firefox/.test(Dx),PM=$l("(any-pointer: fine)").matches||$l("(any-hover: hover)").matches||OM||!T3,y5=!X7||!PM&&Lx?X7?"touchOnly":"mouseOnly":"hybrid",AM=y5==="mouseOnly"?"mouse":y5==="touchOnly"||Lx?"touch":"mouse";const FM=Object.freeze(Object.defineProperty({__proto__:null,deviceType:y5,primaryInput:AM,supportsPassiveEvents:DM,supportsPointerEvents:LM,supportsTouchEvents:Ix},Symbol.toStringTag,{value:"Module"})),zM=new Set(["INPUT","TEXTAREA","SELECT"]),Ox={};function b5(){return FM}const Px=e=>e==="BracketLeft"?"[":e==="BracketRight"?"]":Ht.camelToPrettyCase(e),bn=Object.freeze(Object.defineProperty({__proto__:null,EmptyCssProperties:Ox,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:b5,focusableNodeNames:zM,toPrettyKeyCode:Px},Symbol.toStringTag,{value:"Module"})),BM=[];function Gr(e,t,n=BM){const o=d.useRef(null);return d.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),c=l.length;for(let s=0;s<c;s++){const u=l[s],h=i[u];Object.defineProperty(r,u,{value:h,writable:!0,configurable:!0,enumerable:!0})}return r},n),o}const Y7=e=>a.jsx(k3,{...e}),NM=({width:e,height:t})=>a.jsx("div",{className:"corner",style:{minWidth:`${e}px`,width:`${e}px`,minHeight:`${t}px`,height:`${t}px`}}),Ax=d.memo(d.forwardRef((e,t)=>{const{children:n,viewport:o,onScrollViewport:r,showHorizontalScrollbar:i=!0,showVerticalScrollbar:l=!0,createScrollCorner:c=NM,createHorizontalScrollbar:s=Y7,createVerticalScrollbar:u=Y7,style:h,touchElement:f,disableTouch:p,...m}=e,g=Be(r,[r]),x=Gr(t,()=>({isScrollPane:()=>!0}),[]),y=d.useRef(null);d.useEffect(()=>{y.current&&(y.current.__scrollTop===o?.top&&y.current.__scrollLeft===o?.left||y.current.__isDecelerating||y.current?.scrollTo(o?.left,o?.top,!1))},[o?.left,o?.top,f]);const w=d.useCallback((v,I)=>{g?.({left:v,top:I})},[]),b=d.useCallback(v=>{y.current?.doTouchStart(v.touches,v.timeStamp)},[]),C=d.useCallback(v=>{v.preventDefault(),y.current?.doTouchMove(v.touches,v.timeStamp)},[]),_=d.useCallback(v=>{y.current?.doTouchEnd(v.timeStamp)},[]),E=d.useCallback(({containerWidth:v,containerHeight:I,totalWidth:T,totalHeight:R})=>{y.current.setDimensions(v,I,T,R)},[]);d.useEffect(()=>{const v=f??x.current;if(!p&&b5().supportsTouchEvents&&v&&o){if(!y.current){const I={scrollingX:!0,scrollingY:!0,decelerationRate:.95,penetrationAcceleration:.08};y.current=new RM(w,I)}b5().supportsTouchEvents&&(v.addEventListener("touchstart",b),v.addEventListener("touchend",_),v.addEventListener("touchmove",C)),E({containerWidth:o?.width,containerHeight:o?.height,totalWidth:o?.totalWidth,totalHeight:o?.totalHeight})}return()=>{v?.removeEventListener("touchstart",b),v?.removeEventListener("touchend",_),v?.removeEventListener("touchmove",C)}},[o?.width,o?.height,o?.totalWidth,o?.totalHeight,p,f]);const[M,{width:j}]=W0(),[F,{height:k}]=W0(),O=d.useMemo(()=>{const v=u({orientation:Wo.Vertical,offset:o?.top,viewportSize:o?.height,totalSize:o?.totalHeight,onScrollOffset:I=>{g?.({top:I})}});return a.jsx("div",{style:{display:"flex",flex:"0"},ref:M,children:v})},[u,o?.top,o?.height,o?.totalHeight]),S=d.useMemo(()=>{const v=s({orientation:Wo.Horizontal,offset:o?.left,viewportSize:o?.width,totalSize:o?.totalWidth,onScrollOffset:I=>g?.({left:I})});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% - ${j}px)`},children:a.jsx("div",{ref:F,className:"sizer",children:v})}),l?c({width:j,height:k}):a.jsx(a.Fragment,{})]})},[s,o?.left,o?.width,o?.totalWidth,l,c,j,k]);return a.jsx("div",{style:{position:"relative",display:"flex",minWidth:l?`${j}px`:void 0,minHeight:i?`${k}px`:void 0,...h},...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?O:a.jsx(a.Fragment,{})]}),i?S:a.jsx(a.Fragment,{})]})})}));Ax.displayName="ScrollPane";const G1="error",VM="warning",J7=new Set,Fx={showMessage:(e,t)=>{if(t?.onceKey){if(J7.has(t.onceKey))return;J7.add(t.onceKey)}let n=console.log;t?.type!==VM&&t?.type!==G1||(n=console.warn),n(e)},showBusy:(e,t)=>new Promise(n=>{n(()=>{})}),showError:e=>{console.error(e)}},HM=()=>{const e=document.fullscreenElement;return e?e.querySelector(".fullscreen-portal-root")||e:document.body};let kc=0;const $M=100,WM=100,UM=1e6,qM=100,ZM=50,zx=d.memo(d.forwardRef((e,t)=>{const{offset:n=0,viewportSize:o=0,totalSize:r=0,minSize:i=0,endGap:l=$M,endScrollIncrement:c=WM,style:s=Ox,onMouseDown:u,onScrollOffset:h,onScroll:f,scaleLimit:p=UM,scaleFactor:m=qM,precisionFactor:g=ZM,...x}=e;f&&console.warn("onScroll not supported for VirtualScrollbar. Use onScrollOffset instead");const y=Be(u,[u]),w=()=>({offset:n,totalSize:p===0?r:Math.min(r??0,Math.max(i??0,(n??0)+(o??0))+(l??0))}),[b,C]=d.useState(w),_=p!==0&&b.totalSize>p?m:1,E=_/g,M=Math.ceil(b.totalSize/_),j=Math.ceil(b.offset/_),F=Math.ceil(o/_),k=d.useCallback(A=>{},[]),[O,S]=d.useState(!1),v=d.useRef(null);d.useLayoutEffect(()=>{if(!O){v.current={propTotalSize:r,propViewportSize:o,propOffset:n};const A=w();C(A)}},[r,o,n,O,i,l,c]);const I=Be((A,D,L)=>{const V=v.current;v.current=null,V&&V.propTotalSize===r&&V.propViewportSize===o&&V.propOffset===n||(Math.abs(A-j)<E&&(A=j),h?.(A*_,j,F))},[h,_,E,j,F]),T=d.useCallback(A=>{document.removeEventListener("mousemove",k),document.removeEventListener("mouseup",T),S(!1)},[]),R=d.useCallback(A=>{y?.(A),S(!0),document.addEventListener("mousemove",k,{passive:!0}),document.addEventListener("mouseup",T,{passive:!0})},[k,T]);return a.jsx(k3,{ref:t,style:{...s},...x,offset:j,totalSize:M,viewportSize:F,onMouseDown:R,onScrollOffset:I})}));zx.displayName="VirtualScrollbar";const zu="bottom",Q7="right";function Bu(e,t){if(typeof e=="function")return e(t);e&&(e.current=t)}var K1=parseInt(d.version.split(".")[0],10)>=19?function(e){return t=>{const n=[];for(const o of e){const r=Bu(o,t),i=typeof r=="function";n.push(i?r:()=>Bu(o,null))}return()=>{for(const o of n)o()}}}:function(e){return t=>{for(const n of e)Bu(n,t)}};d.memo(d.forwardRef((e,t)=>{const{refFocusStart:n,...o}=e,r=d.useRef(null),i=d.useCallback(()=>{if(n)return void n?.current?.focus();const l=r.current.parentElement.children;let c=[];for(let s=0;s<l.length&&l[s]!==r.current;s++){const u=l[s].getAttribute("tabindex");if(u==null||u==="-1"||l[s].getAttribute("disabled")==="true")continue;const h=l[s];h.focus&&c.push({tabindex:parseInt(u),child:h})}c.length!==0&&(c.sort(function(s,u){return s.tabindex-u.tabindex}),c[0].child.focus())},[n]);return a.jsx("div",{tabIndex:0,ref:K1([r,t]),onFocus:i,...o})})),d.memo(d.forwardRef((e,t)=>{const{className:n,style:o,children:r,radius:i=4,strokeWidth:l=1,strokeColor:c="grey",...s}=e,[u,{width:h,height:f}]=W0(),p=d.useRef(null),m=(w,b=0)=>{const C=w/2,_=f-C+b;return function(E,M,j=!1){if(M===0)return E;function F(T,R,A){let D=R.x-T.x,L=R.y-T.y,V=Math.sqrt(D*D+L*L);return k(T,R,Math.min(1,A/V))}function k(T,R,A){return{x:T.x+(R.x-T.x)*A,y:T.y+(R.y-T.y)*A}}function O(T,R){T.length>2&&(T[T.length-2]=R.x,T[T.length-1]=R.y)}function S(T){return{x:parseFloat(T[T.length-2]),y:parseFloat(T[T.length-1])}}let v=E.split(/[,\s]/).reduce(function(T,R){let A=R.match("([a-zA-Z])(.+)");return A?(T.push(A[1]),T.push(A[2])):T.push(R),T},[]).reduce(function(T,R){return parseFloat(R)==R&&T.length?T[T.length-1].push(R):T.push([R]),T},[]),I=[];if(v.length>1){let T=S(v[0]),R=null;v[v.length-1][0]==="Z"&&v[0].length>2&&(R=["L",T.x,T.y],v[v.length-1]=R),I.push(v[0]);for(let A=1;A<v.length;A++){let D=I[I.length-1],L=v[A],V=L===R?v[1]:v[A+1];if(V&&D&&D.length>2&&L[0]==="L"&&V.length>2&&V[0]==="L"){let W,P,U=S(D),X=S(L),ee=S(V);j?(W=k(X,D.origPoint||U,M),P=k(X,V.origPoint||ee,M)):(W=F(X,U,M),P=F(X,ee,M)),O(L,W),L.origPoint=X,I.push(L);let H=k(W,X,.5),$=k(X,P,.5),z=["C",H.x,H.y,$.x,$.y,P.x,P.y];z.origPoint=X,I.push(z)}else I.push(L)}if(R){let A=S(I[I.length-1]);I.push(["Z"]),O(I[0],A)}}else I=v;return I.reduce(function(T,R){return T+R.join(" ")+" "},"")}(`M 0 ${C} L ${i-.5} ${C} L ${i-.5} ${_} L ${2*i} ${_} L ${h-2*i} ${_} M ${h-2*i} ${_} L ${h-i} ${_} L ${h-i} ${C} L ${h} ${C}`,i)},g=d.useMemo(()=>m(l),[h,f,i,l]),x=d.useMemo(()=>{if(i===0)return;const w=i/2;return m(i)+`L ${h} 0 L 0 0 L 0 ${w}`},[g,i,l]),y=d.useMemo(()=>({style:{clipPath:`path('${x}')`}}),[x]);return a.jsxs("div",{className:n,style:{display:"flex",flexDirection:"row",...o},...s,ref:K1([p,u,t]),children:[d.isValidElement(r)?d.cloneElement(r,y):a.jsx(a.Fragment,{}),a.jsx("svg",{style:{position:"absolute",top:0,left:0,pointerEvents:"none"},width:h,height:f,viewBox:`0 0 ${h} ${f}`,children:a.jsx("path",{d:g,stroke:c,fill:"none",vectorEffect:"non-scaling-stroke",strokeWidth:l})})]})}));const GM={},KM=e=>{const{onPointerDown:t,style:n,splitDirection:o,paddingBefore:r=0,paddingAfter:i=0,disabled:l,key:c,hitAreaProps:s=GM,...u}=e,h=o==="row",{style:f,className:p,...m}=s;return a.jsx("div",{style:{...n,position:"relative"},...u,children:a.jsx("div",{className:Sl("hit-box",p),style:{left:(h?-r:0)+"px",width:`calc(100% + ${h?r+i:0}px)`,top:(h?0:-r)+"px",height:`calc(100% + ${h?0:r+i}px)`,position:"absolute",...f},onPointerDown:l?void 0:t,...m})},c)},Tc={},x0=(e,t,n=!0)=>e===null?null:e.pixels!==null?n?e.pixels:t-e.pixels:(n?e.percent:100-e.percent)/100*t,jc=(e,t=!0)=>e?.percent?`${t?e.percent:100-e.percent}%`:e?.pixels?`${e.pixels}px`:void 0,Vi=(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)};d.memo(d.forwardRef((e,t)=>{const{elementBefore:n,elementAfter:o,splitDirection:r="row",fixedPane:i=null,position:l,onPositionChange:c,minBefore:s,maxBefore:u,minAfter:h,maxAfter:f,children:p,className:m,style:g,disabled:x=!1,onDragStart:y,onDragResize:w,onDragFinish:b,resizerProps:C=Tc,paneProps:_=Tc,paneBeforeProps:E=Tc,paneAfterProps:M=Tc,createResizer:j=KM}=e;if(p)throw new Error("Use elementBefore and elementAfter instead of children.");const F=d.useMemo(()=>d.isValidElement(o)&&d.isValidElement(n),[o,n]),k=d.useMemo(()=>{let ne=null;i&&(i==="before"?ne=0:i==="after"&&(ne=1));const be=ne===null;return{fixedPaneOffset:ne,isPercent:be,minBefore:Vi(s,be),maxBefore:Vi(u,be),minAfter:Vi(h,be),maxAfter:Vi(f,be)}},[s,u,h,f]),O=Be(c,[c]),[S,v]=d.useState(()=>Vi(l,i===null));d.useEffect(()=>{v(Vi(l,i===null))},[l,i]);const[I,{width:T,height:R}]=W0(),[A,{width:D,height:L}]=W0(),V=r==="row"?D:L,W=r==="row"?T:R,P=d.useMemo(()=>((ne,be,ke,me)=>{const Ie=[null,null],we=[null,null];if(ne||(ne={percent:me.fixedPaneOffset===null?50:null,pixels:me.fixedPaneOffset===null?null:0}),be===0)return ne?.pixels!=null?me.fixedPaneOffset!==1?(Ie[0]=ne?.pixels,we[1]=100):(Ie[1]=ne?.pixels-ke,we[0]=100):ne?.percent!=null&&(me.fixedPaneOffset!==1?(we[0]=ne?.percent,we[1]=100-ne?.percent):(we[1]=ne?.percent,we[0]=100-ne?.percent)),{percents:we,pixels:Ie,minBefore:jc(me.minBefore,!0),maxBefore:jc(me.maxBefore,!0),minAfter:jc(me.minAfter),maxAfter:jc(me.maxAfter)};let xe=x0(ne,be,me.fixedPaneOffset!==1),Ee=be-ke,Fe=x0(me.minBefore,Ee,!0)??0,ft=x0(me.maxBefore,Ee,!0)??Ee,ut=0,Pe=0,Qe=0,nt=Ee;ut=(x0(me.maxAfter,be,!1)??ke)-ke,Pe=x0(me.minAfter,be,!1)??be,Qe=Math.max(Fe,ut),nt=Math.min(ft,Pe),xe=Math.max(Qe,Math.min(xe,nt)),Pe=Math.min(Ee-xe,x0(me.maxAfter,Ee-xe,!0)??Ee),ut=Math.min(Ee-xe,x0(me.minAfter,Ee-xe,!0)??Ee),Ie[0]=xe,Ie[1]=Ee-Ie[0];const Ke=Math.max(0,Math.min(100,xe/Ee*100));return we[0]=Ke,we[1]=100-we[0],{percents:we,pixels:Ie,minBefore:`${Fe}px`,minAfter:`${ut}px`,maxBefore:`${Ie[0]}px`,maxAfter:`${Ie[1]}px`}})(S,W,V,k),[k,S,W,V,r]),[U,X]=d.useState(!1),ee=Be(y,[y]),H=Be(w,[w]),$=Be(b,[b]),z=d.useRef(null),q=d.useRef(null),Z=d.useRef(null),{style:Q,className:Y,...te}=_,ie={minWidth:0,minHeight:0,maxWidth:"100%",maxHeight:"100%",display:"flex",overflow:"hidden",...Q},{className:fe,style:J,...ae}=E,{className:Ce,style:Me,...re}=M,oe={flex:"1 1 100%",width:"100%",...g,flexDirection:r,display:"flex"},{className:ue,style:De,onPointerDown:ze,...mt}=C,bt=Be(ne=>{const be=Vi(ne,i===null);v(be)},[i]),ve=Be(ne=>{if(x||!U)return;const be=Ne.current?.getBoundingClientRect();let ke=0;ke=r==="row"?(ne.clientX??ne.touches?.[0]?.clientX)-be.x:(ne.clientY??ne.touches?.[0]?.clientY)-be.y,ke=Math.max(0,Math.min(W,ke)),k.fixedPaneOffset===1&&(ke=W-ke),l&&S.pixels===ke||v({pixels:ke,percent:null}),H?.(ke),ne.stopPropagation(),ne.preventDefault()},[k,r,x,U,S,W]),dt=Be(ne=>{if(document.removeEventListener("pointermove",ve),document.removeEventListener("touchmove",ve),document.removeEventListener("pointerup",dt),U&&(X(!1),S)){if($(S.pixels),!Vi(l,i===null)||S.pixels!==l){const be={...S};be.percent===null&&(be.percent=be.pixels/W*100),O(be)}ne.stopPropagation(),ne.preventDefault()}},[S,U,l,i,W]),xt=Be(ne=>{ze?.(ne),ne.defaultPrevented||x||U||(X(!0),ee(),document.addEventListener("pointermove",ve,{passive:!1}),document.addEventListener("touchmove",ve,{passive:!1}),document.addEventListener("pointerup",dt,{passive:!1}))},[ze]),Ne=Gr(t,()=>({setPosition:bt,isSplitPane:()=>!0}),[]),vt=d.useMemo(()=>F?j?.({key:"resizer",ref:K1([A,q]),className:Sl("resizer",ue),onPointerDownCapture:xt,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,...De},splitDirection:r,disabled:x,...mt}):null,[F,ue,mt,r,De,x]),Xe=r==="row"?"Width":"Height",le={...ie,...J,flex:k.fixedPaneOffset===0&&P?.pixels[0]!==null?`0 0 ${Math.round(P?.pixels[0])}px`:`1 1 ${Math.round(P?.percents[0]??100)}%`,[`min${Xe}`]:P?.minBefore,[`max${Xe}`]:o?P?.maxBefore:"100%"},Ue={...ie,...Me,flex:k.fixedPaneOffset===1&&P?.pixels[1]!==null?`0 0 ${Math.round(P?.pixels[1])}px`:`1 1 ${Math.round(P?.percents[1]??100)}%`,[`min${Xe}`]:P?.minAfter,[`max${Xe}`]:n?P?.maxAfter:"100%"},ye=d.useMemo(()=>n?a.jsx("div",{ref:z,className:Sl("before",Y,fe),style:le,...te,...ae,children:n},"before"):null,[n,_,E,k,P]),Se=d.useMemo(()=>o?a.jsx("div",{ref:Z,className:Sl("after",Y,Ce),style:Ue,...te,...re,children:o},"after"):null,[o,_,M,k,P]);return a.jsxs("div",{ref:K1([I,Ne]),className:Sl("splitPane",r==="row"?"vertical":"horizontal",{dragging:U},m),style:oe,children:[ye,vt,Se]})}));const XM=({initValue:e,useHookBody:t,applyStateChange:n})=>{const o=d.useRef(e);if(typeof t!="function")throw new Error("function expected as hook body parameter. got "+typeof t);const r=t();return d.useLayoutEffect(()=>{o.current!==r&&(o.current=r,n(r))},[n,r]),null},w5=e=>{console&&console.warn&&console.warn(e)},Nu=typeof self=="object"&&self.self===self&&self||typeof global=="object"&&global.global===global&&global||void 0;let YM=1,v5=!1,Bx=!1;const p1=[],Cl=[],X1=()=>{Cl.forEach(e=>e())},JM=({automaticContainerInternalUseOnly:e})=>{const[t,n]=d.useState([]),o=d.useRef([]);return o.current=t,e||v5!==!1||(Bx=!0),d.useEffect(()=>{let r=!0;function i(){if(r)return Cl[0]!==i?(e||v5!==!0||w5("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([...p1])}return Cl.push(i),X1(),()=>{r=!1,o.current?.length>0&&w5("SingletonHooksContainer is unmounted, but it has active singleton hooks. They will be reevaluated once SingletonHooksContainer is mounted again"),Cl.splice(Cl.indexOf(i),1),X1()}},[e]),a.jsx(a.Fragment,{children:t.map(({hook:r,key:i})=>d.createElement(XM,{...r,key:i}))})},Nx=(e,t,n={})=>{let o,r,i=!1,l=!1,c=[],{unmountIfNoConsumers:s=!1}=n;const u=f=>{r=f,ao.unstable_batchedUpdates(()=>c.forEach(p=>p(f)))},h=()=>(l||(r=typeof e=="function"?e():e,l=!0),r);return()=>{const[f,p]=d.useState(h);return d.useEffect(()=>(i||(i=!0,o=(m=>{const g=YM++;return p1.push({hook:m,key:g}),Cl.length===0&&Bx===!1&&(v5=!0,(x=>{if(Nu.document&&Nu.document.createElement){const y=Nu.document.createElement("div");cd.createRoot(y).render(a.jsx(x,{automaticContainerInternalUseOnly:!0}))}else w5("Can not mount SingletonHooksContainer on server side. Did you manage to run useEffect on server? Please mount SingletonHooksContainer into your components tree manually.")})(JM)),X1(),()=>{p1.splice(p1.findIndex(x=>x.key===g),1),X1()}})({initValue:e,useHookBody:t,applyStateChange:u})),c.push(p),r!==f&&p(r),()=>{c.splice(c.indexOf(p),1),c.length===0&&s&&(o(),i=!1)}),[]),f}};let Vx=()=>{console.warn("You must call useEditMode before setting its state.")};const QM=Nx(null,()=>{const[e,t]=d.useState(null);return Vx=t,e}),U0=()=>{const e=QM();return d.useMemo(()=>({setMode:t=>{Vx(n=>(typeof t=="function"&&(t=t(n)),t?.onModeChange?.(t??null),t))},getMode:()=>e}),[e])};let Ve=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}},At=class extends Ve{};class Kl{constructor(t,n){this._target=null,this._groupKey=null,this._root=null,this._parent=null,this._uuid=Ht.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,c=i.key(),s=l.get(c);s&&o._notifyCommands(s,"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 c=this;for(;c&&!r;){let s=c._nodes.get(n);s&&(r=s),c=c._parent}}r||(r=new Kl(t,n),r._parent=this,r._root=this._root,r._unListenersByCommand=null,r._listenersByKey=null,r._commandsPropertyListener=null);const i=(c,s)=>{!c.has(n)||o?c.set(n,s):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 c=0;c<t.length;c++){const s=t[c],u=s.key();if(o.has(u)&&!n){n===void 0&&console.warn("command already registered",u);continue}o.set(u,s);let h=l.get(s);h&&(h(),l.delete(s));const f=s.addPropertyListener(i);l.set(s,f);const p=s.shortcut();if(!p)continue;const m=Array.isArray(p)?p:[p];for(let g=0;g<m.length;g++){const x=_a(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 c=0;c<n.length;c++)l._nodes.delete(n[c]);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(Ho),t.shiftKey&&n.push(Ln),t.ctrlKey&&n.push(yt),t.metaKey&&n.push(Sx);let o=_a({key:t.code,modifiers:n});const r=this._commandsByShortcut;let i=r.get(o);i||(o=_a({key:t.key,modifiers:n}),i=r.get(o)),!i&&t.code.startsWith("Digit")&&(o=_a({key:t.code.substring(5,t.code.length),modifiers:n}),i=this._commandsByShortcut.get(o)),!i&&t.code.startsWith("Key")&&(i=_a({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 c=0;c<r.length;c++){const s=r[c];if(!s)continue;let u=i.get(s);u||(u=new Set,i.set(s,u)),l||(l=[]),l.push(u),u.add(t)}return o.add(t),()=>{if(l)for(let c=0;c<l.length;c++)l[c].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 eR=Ht.getOS()===Ht.OSType.MacOS||Ht.getOS()===Ht.OSType.IOS?"Cmd":"Ctrl",tR=Ht.getOS()===Ht.OSType.MacOS||Ht.getOS()===Ht.OSType.IOS?"⌘":"^",_a=(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?.[yt]||n?.[Sx])&&(o+=(o.length>0?"+":"")+(t?tR:eR)),n?.[Ho]&&(o+=t?"⌥":"Alt"),n?.[Ln]&&(o+=(o.length>0?"+":"")+(t?"⇧":"Shift")),o+=(o.length>0?"+":"")+Px(e.key),o},Mc=(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 Hx(e,t=null,n=null,o){const r=d.useRef(n);r.current=n,t&&!Array.isArray(t)&&(t=[t]);const[i,l]=d.useState(Mc(e,t)),c=o?[...o,e]:[e];return d.useEffect(()=>{const s={onGroupChange:()=>{const p=Mc(e,t);l(p),r.current?.onChange?.(this)}};let u;t&&t.length>0&&(u={keys:t},s.onCommandChange=(p,m)=>{r.current?.onChange?.(e),l(Mc(e,t))});const h=e?.addListener(s,u),f=Mc(e,t);return l(f),r.current?.onChange&&r.current?.onChange(e),()=>{h?.()}},c),i}const $x=Nx({setClipboard:e=>{throw new Error("This is only available via the useClipboard.")},getClipboard:()=>Hl.Global,refNativeCopy:{current:null},refNativeLastKey:{current:null}},()=>{const[e,t]=d.useState(Hl.Global);return{setClipboard:n=>t(n),getClipboard:()=>e,refNativeCopy:d.useRef(null),refNativeLastKey:d.useRef(null)}}),Wx=e=>{const{source:t,target:n,onPaste:o,onClipboardUpdate:r,notifier:i=Fx,commands:l}=e,c=Be(r,[r]),s=Be(o,[o]),{getClipboard:u,refNativeCopy:h}=$x(),f=u();d.useMemo(()=>{const b=t?.element,C=n?.element??t?.element;if(!l)return;const _=[new At("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:[yt]}}),new At("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:[yt]}}),new At("paste",C,{label:"Paste",description:"Add content on the clipboard to your document.",shortcut:[{key:"V",modifiers:[yt]},{key:"F8",modifiers:[yt]}]})];l?.addCommands(_,!0)},[l]);const p=Be(async b=>{if(!t?.element)return;let C=null;try{C=t.doCopy?.(b),typeof C=="string"?await f.writeText(C):await f.writeReference(C)}catch(_){throw _}},[t,i]),m=Be(async b=>{const C=t?.element?.();if(C){h.current={sourceElement:C,args:b};try{await p(b)}catch(_){i?.showError?.(_)}}},[t?.element,i]),g=d.useCallback(()=>{m({isCut:!0})},[]),x=Be(async(b,C,_)=>{try{if(await b.doPaste(C,_)===!1)return;s?.(C,_)}catch(E){i?.showError?.(E)}},[s]),y=Be(async(b,C,_)=>{const E=n?.element?.();if(E&&await Ht.whenFocus(E),!b&&!C)return;const M=await i?.showBusy?.("Pasting...");if(C)try{return await x(n,C,_),void M?.()}catch(k){M?.(),i?.showError?.(k)}let j,F=n.importFromExternal;F||(F=(k,O)=>({getItemType:()=>"text",toText:()=>b.text,isClipboardItem:!0}));try{j=await F(b,{isCut:!1})}catch(k){M?.(),i?.showError?.(k)}if(j)try{const k=await Promise.resolve(j);await x(n,k,_),M?.()}catch(k){M?.(),i?.showError?.(k)}else M?.()},[x,n,i]),w=Be(async b=>{if(n?.element)try{const C=await f.readReference();if(C)return void await y(null,C,b);const _=[];_[0]=await hM(f,Ci),_[1]=await pM(f,Xo),_[2]=await uM(f,u1);const E={text:_[0]??null,html:_[1]??null,image:_[2]??null};await y(E,null,b)}catch(C){if(C?.message==="Document is not focused.")return;i?.showError?.(C)}},[y,n?.element,i]);return Be(async b=>{},[t?.element]),Be(async b=>{},[n?.element,y,i]),d.useEffect(()=>{if(!f)return;const b=async E=>{const M=await f.readReference();c?.(M)},C=E=>{i?.showMessage?.(Hl.ErrorMessages.PermsRead,{onceKey:"clipboard.features"})},_=E=>{i?.showMessage?.(Hl.ErrorMessages.PermsWrite,{onceKey:"clipboard.features"})};return f.addEventListener("clipboardchange",b),f.addEventListener("clipboarderrorread",C),f.addEventListener("clipboarderrorwrite",_),()=>{f.removeEventListener("clipboardchange",b),f.removeEventListener("clipboarderrorread",C),f.removeEventListener("clipboarderrorwrite",_)}},[f,i]),d.useEffect(()=>{},[p,y,t,n]),d.useEffect(()=>{l?.getCommand("cut")?.updateCallback(g).update({disabled:!t||!n}),l?.getCommand("copy")?.updateCallback(m).update({disabled:!t}),l?.getCommand("paste")?.updateCallback(w).update({disabled:!n})},[t,n,l]),{paste:w,copy:m,clipboard:f}};typeof document<"u"?d.useLayoutEffect:d.useEffect;d.useId;const Ts=(e=6e4)=>new Date(Math.floor(Date.now()/e)*e);Object.freeze(Object.defineProperty({__proto__:null,nowWithPrecision:Ts},Symbol.toStringTag,{value:"Module"}));const Ux=Object.freeze([8,9,10,11,12,14,16,18,20,22,24,26,28,30,36,48,72]),S5=(e,t=!0,n=Ux)=>{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=Ht.findEqualOrGreater(n,e);return t?(n[o]===e&&(o+=1),n[o]||(o-=1),n[o]):(o-=1,n[o])},nR=Object.freeze(Object.defineProperty({__proto__:null,DefaultFontSizes:Ux,findNextFontSize:S5},Symbol.toStringTag,{value:"Module"})),ef=d.memo(e=>{const{anchorLocation:t=fo.TopLeft,cellWidth:n,cellHeight:o,size:r=7,inset:i=1,darkMode:l,fill:c,pathProps:s,style:u,...h}=e,f=r,p=i;let m="red",g=[],x=[];return t===fo.TopLeft?(m=l?"rgb(255, 198, 246)":"green",g.push(p),x.push(p),g.push(p+f),x.push(p),g.push(p),x.push(p+f)):t===fo.TopRight?(m=l?"rgb(0, 255, 255)":"red",g.push(n-p),x.push(p),g.push(n-(p+f)),x.push(p),g.push(n-p),x.push(p+f)):t===fo.BottomRight?(m=l?"rgb(236, 252, 211)":"purple",g.push(n-p),x.push(o-p),g.push(n-(p+f)),x.push(o-p),g.push(n-p),x.push(o-(p+f))):t===fo.BottomLeft&&(m=l?"rgb(255, 236, 183)":"blue",g.push(p),x.push(o-p),g.push(p+f),x.push(o-p),g.push(p),x.push(o-(p+f))),a.jsx("svg",{width:`${n}`,height:`${o}`,viewBox:`0 0 ${n} ${o}`,style:{position:"absolute",width:`${n}px`,height:`${o}px`,pointerEvents:"none",...u},...h,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:c??m,...s})})}),oR=e=>{const{renderBounds:t,darkMode:n,zoom:o,disabled:r,filter:i,onFilterButtonMouseDown:l,style:c,...s}=e,u=d.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]),[h,f]=d.useState(!1),p=Math.min(Math.min(18,t.height-8),t.width);return a.jsx("div",{style:{width:`${p}px`,height:`${p}px`,right:"0px",boxShadow:`0px 0px 0px 0.5px var(${h&&!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:(p>12?1:0)+"px",marginRight:"2px",display:"flex",alignItems:"center",justifyContent:"center",cursor:r?void 0:"pointer",...c},onMouseEnter:()=>f(!0),onMouseLeave:()=>f(!1),onMouseDown:m=>{l?.(m,i)},...s,children:a.jsx("svg",{width:""+15*o,height:""+15*o,viewBox:"0 0 15 15",style:{fill:`var(${h&&!r?"--sxl-app-color-primary-dark":"--sxl-app-color-button-text"}, grey)`,opacity:r?.6:1},children:a.jsx("path",{d:u})})})},rR=e=>{const{value:t,coords:n,bounds:o,children:r,style:i,range:l,zoom:c=1,view:s,bodyStyle:u,normalStyle:h,showFormulas:f,showZeros:p,docTheme:m,onLinkMouseDown:g,onFilterButtonMouseDown:x,filterButtonProps:y,createFilterButton:w=oR,...b}=e,C=o.height/c,_=o.width/c,E=t,M=E.getValue(),j=t.getStyle(),F=u?.darkMode??!1;let k,O;const S=M&&M.isFormulaError,v=S&&M instanceof N.FormulaError.Parse;let I,T=f||v;if(T)if(E.isSpillOverflow())O="";else{const Xe=E.getFormulaText();Xe?O=Xe:k=E.getNumberFormat(N.NumberFormat.Type.General)}else k=E.getNumberFormat();T||(I=E.getTextOverflow());const R=I?I.colBounds.width+I.leftOffset+I.rightOffset:_,A=I?I.anchorBounds.x-I.leftOffset:0,D=I?I.anchorBounds.width:_,L=I?I.anchorBounds.x:0;let V,W=E.getRenderHorizontalAlignment();k&&(V=k?.formattedRuns,O=V?.runs[0]?.text??k.displayText);const P=E.getCalcStatus()===N.ICell.CalcStatus.Pending;let U=null,X=j.getFill().toCSS(F,o),ee=0,H=0;if(!j.getBorder().isEmpty()){const Xe=j.getBorder().getRight();!Xe.isNone()&&N.IBorder.BuiltInDefinitions.get(Xe.getStyle()).width>1&&(ee=1);const le=j.getBorder().getBottom();!le.isNone()&&N.IBorder.BuiltInDefinitions.get(le.getStyle()).width>1&&(H=1)}let $=null;if(_!==D||ee||H||typeof X?.backgroundPosition=="number"){const{backgroundPosition:Xe,...le}=X,Ue=Xe??0,ye=s?.getScrollTopLeft(),Se=Ue?-(o.x+(ye.left??0))%Ue:0,ne=Ue?-(o.y+(ye.top??0))%Ue:0;(Xe!==void 0||ee||H||_!==D)&&(Object.keys(le).length===1&&le.background==="none"||(X=null,$=a.jsx("div",{className:"fill",style:{marginLeft:`${Se}px`,marginTop:`${ne}px`,left:L*c,width:bn.boundPixel(D*c-Se+1+ee),height:bn.boundPixel(o.height-ne+1+H),...le}},"background")))}let z=null;const q=E.getComments(),Z=E.getWarnings(),Q=E.getErrors();if(q||S||Q.length>0||Z.length>0){const Xe={size:7*c,darkMode:F,cellWidth:D*c+2,cellHeight:C*c+2,style:{top:-1,left:L*c-1}};z=z??[],(Z.length>0||Q.length>0||S)&&z.push(a.jsx(ef,{anchorLocation:fo.TopLeft,...Xe},`indicator-${z.length}`)),q&&z.push(a.jsx(ef,{anchorLocation:fo.TopRight,...Xe},`indicator-${z.length}`))}const Y=j.getFont();let te=k?.conditionalColor;const ie=j.getAlignment(),fe=ie.getHorizontal()===N.ITextFrame.HorizontalAlignment.Fill,J=ie.getHorizontal()===N.ITextFrame.HorizontalAlignment.CenterContinuous||fe,ae=J||T?0:ie.getRotation(),Ce=E.getInsets(),Me=Ce.top+Ce.bottom;let re=Ce.left,oe=Ce.right;const ue={...i,left:i.left-1,top:i.top-1,width:i.width+1+ee,height:i.height+1+H},De=E.getColumnFilter(),ze=De&&!De?.hasHiddenButton();let mt=null;P&&(mt=a.jsxs("div",{className:"slider",children:[a.jsx("div",{className:"line"}),a.jsx("div",{className:"subline inc"})]},"pending"));const bt=!(P||ze||$||r||z||V?.runs.length>1||I||ae%360!=0);X?.background==="none"&&(X=null);let ve=J||!(!I||!(I.rightIndex>0||I.leftIndex>0||I.colSpan>1));if(!ve){const Xe=E.getSpans();(Xe.width>1||Xe.height>1)&&(ve=!0)}const dt={...X,...ue,pointerEvents:g?"auto":void 0};if(!Ht.isEmpty(O)||!Ht.isEmpty(k?.repeatPlaceholder)){const Xe=k?.canWrap??!1;let le=null,Ue=null,ye=null,Se=[],ne=!0;p||T||M!==0||(ne=!1);const be=E.getTextFrame(T);if(ne&&be){let ke=R-1-(re+oe);if(ae){le=be.layout().bounds;const Pe={x:0,y:0,width:R-1,height:C};if(V){let Qe=V.width;if(k.repeatPlaceholder||k.repeatChars.length>0){const nt=N.GeomUtils.boundsToPoints(Pe),Ke=N.GeomUtils.rotatePoints(nt,-ae);Qe=N.GeomUtils.minBoundingRect(Ke).width}le={...le,width:Qe}}ye=N.GeomUtils.clipToOuterRect({...le,width:le.width+1+re+oe},Pe,ae),ke=ye.width-1-(re+oe)+.01}let me=null;Xe&&(me={width:ke});let Ie=null,we=k?.repeatPlaceholder;const xe=be.layout(me);if(le=xe.bounds,T?le={...le,width:0}:V&&(le={...le,width:k.repeatPlaceholder||k.repeatChars.length>0?ke:V.width}),ae&&Xe){let Pe=null;xe.visitLines({visitTextLine:(Qe,nt)=>{let Ke=Qe.bounds;const rt=N.GeomUtils.boundsToPoints(Ke),Bt=N.GeomUtils.rotatePoints(rt,ae),lt=N.GeomUtils.minBoundingRect(Bt);Ke={...Ke,x:(lt.width-Ke.width)/2,y:(lt.height-Ke.height)/2},Pe=Pe?N.GeomUtils.unionBounds(Pe,Ke):Ke}}),le={...Pe,width:Pe.width+re+oe}}if(!we&&E.getType()!==N.ScalarType.String&&Math.floor(le.width)>ke){if(j.getNumberFormat()==="General"&&E.getType()===N.ScalarType.Number){const Pe=j.measureText("0"),Qe=Math.floor(ke/Pe.width),nt=M,Ke=Ht.splitNumber(nt),rt=Math.min(10,Qe-(Math.max(1,Ke.ipLength)+1)-(nt<0?1:0));if(rt>=-1){const Bt=`0${rt>0?".":""}${"#".repeat(Math.max(0,rt))}`;Ie=E.getNumberFormat(Bt).displayText,Ie==="0"&&nt<0&&(Ie="-0")}else if(Math.abs(nt)>=Math.pow(10,5)||Math.abs(nt)<=Math.pow(10,-5)){const Bt=Qe-5-(nt<0?1:0);if(Bt>=0){const lt=`0.${"0".repeat(Math.max(0,Bt-1))}E+00`;Ie=E.getNumberFormat(lt).displayText}}}Ie||(we="#")}if(!we&&V?.lastRepeatIndex>=0&&V?.width>ke&&(we="#"),we&&ke>0){const Pe=j.measureText(we),Qe=Math.floor((ke||1)/(Pe?.width||1));Ie=Qe>0?we.repeat(Qe):""}if(T&&(W=N.ITextFrame.HorizontalAlignment.Left),Ie){const Pe=j.measureText(Ie).width;Pe&&(le={...le,width:Pe})}if(Ue={...le,width:le.width+re+oe,height:le.height},ae&&!Xe){const Pe=N.GeomUtils.boundsToPoints(Ue),Qe=N.GeomUtils.rotatePoints(Pe,ae),nt=N.GeomUtils.minBoundingRect(Qe);Ue.width=nt.width,Ue.height=nt.height}W===N.ITextFrame.HorizontalAlignment.Center||W===N.ITextFrame.HorizontalAlignment.CenterContinuous?Ue.x=(R-Ue.width)/2:W===N.ITextFrame.HorizontalAlignment.Right?Ue.x=R-Ue.width-.5:Ue.x=.5,ie.getVertical()===N.ITextFrame.VerticalAlignment.Center?Ue.y=(C-Ue.height)/2:ie.getVertical()===N.ITextFrame.VerticalAlignment.Bottom?Ue.y=C-Ue.height-Me:Ue.y=Me;const Ee=bt?{...b}:void 0,Fe={style:{left:i.left-1,top:i.top-1,width:i.width+1,height:i.height+1,transform:ae?`rotate(${ae}deg)`:void 0,cursor:g?"pointer":void 0,pointerEvents:g?"auto":void 0,zIndex:ve?1:void 0,...X},onMouseDown:g,onDoubleClick:g?Pe=>{Pe.stopPropagation(),Pe.preventDefault()}:null,...Ee};v&&(Fe.style.textDecorationStyle="wavy",Fe.style.textDecorationColor=F?"rgb(0, 255, 255)":"red",Fe.style.textDecorationLine="underline");const ft=Y.getSize(),ut=(Pe,Qe,nt,Ke,rt,Bt,lt,Jt=null)=>{let Wt=ft*c,Kt=nt,kn=lt?.runs?lt.runs:[{type:N.NumberFormat.ParseRunType.Text,text:Pe,width:j.measureText(Pe,Wt).width}];lt&<?.width!==le.width&&(le={...le,width:lt?.width});let Tn=re;if(lt?.lastRepeatIndex>=0&&ke>lt?.width){const wn=lt.runs[lt.lastRepeatIndex];if(wn){const Qt=[...kn],Rn=Math.max(0,ke-1-lt.width);let Jn=0,vn="";if(Rn>0){const In=Math.floor(Rn/wn.width);vn=In>0?wn.text.repeat(In):"",Jn=Rn}Qt[lt.lastRepeatIndex]={type:N.NumberFormat.ParseRunType.Repeat,text:vn,width:Jn},kn=Qt,le={...le,width:lt.width+Jn}}}const Qn=(wn,Qt,Rn,Jn,vn,In,sn,Io,Yo,Dr=null)=>{let Jo,Kr=Kt.width;rt===N.ITextFrame.HorizontalAlignment.Justify?(Kr=vn,Bt||(Jo="justify")):rt===N.ITextFrame.HorizontalAlignment.Distributed&&(Kr=vn,Jo=Bt||wn.text.split(" ").length-1==0?"center":"justify");const{style:Qo,className:Lr,...li}=Dr;let Or=wn.text;if(rt===N.ITextFrame.HorizontalAlignment.Fill&&k?.repeatChars.length===0){const Ct=Math.max(1,Math.floor((Kt?.width??0)/(sn?.width??1)));Or=Or.repeat(Ct)}let zo=Kt.height;const Ae=Y.getVerticalAlignment(),Je=Ae===N.IFont.VerticalAlignment.Sub,tt=Ae===N.IFont.VerticalAlignment.Super;if(Je||tt){const Ct=Y.getSuperSubScale();Wt*=Ct,zo*=Ct}const qe={textAlign:Jo,textAlignLast:Jo,background:void 0,...Qo,...Y.toCSS(F,c,!0),fontSize:Wt*N.IFont.getDeviceScale()};te&&(qe.color=te.toCSS(F));const it=Tn+Qt;let St=Ce.top+Kt.y+0;if(Je&&(St+=Yo-Wt),In){const Ct=(sn.x+it)*c+1,Rt=(sn.y+St)*c+1;Rt<0?qe.marginTop=Rt:qe.paddingTop=Rt,Ct<0?(qe.width=(Qo?.width??0)-Ct,qe.left=(Qo?.left??0)+Ct):qe.paddingLeft=Ct,qe.paddingRight=Math.max(0,(Qo?.width??0)-Kr*c-Ct),qe.paddingBottom=Math.max(0,(Qo?.height??0)-Kt.height*c-Rt),qe.height=(Qo?.height??0)+(Rt<0?-Rt:0),(Rt<0||Ct<0)&&(qe.clipPath=`inset(${Rt<0?-Rt:0}px 0px 0px ${Ct<0?1-Ct:0}px)`)}else if(qe.left=(sn.x+it)*c+1,qe.top=(sn.y+St)*c+1,qe.width=sn.width*c,qe.height=sn.height*c,ae&&!Xe){qe.left=(sn.x+Qt)*c+1,qe.top=(sn.y+(Kt.y+0))*c+1;const Ct=N.GeomUtils.centerPoint({x:Tn+Qt,y:0,width:wn.width,height:Kt.height}),Rt=N.GeomUtils.centerPoint({x:Tn,y:0,width:vn,height:Kt.height}),Tt=N.GeomUtils.rotatePoints([Ct],ae,Rt),nn={x:Tt[0].x-Ct.x,y:Tt[0].y-Ct.y};qe.left=qe.left+nn.x*c,qe.top=qe.top+nn.y*c;const Sn={...Kt,x:Tn,y:Ce.top,width:Kt.width+(re+oe)},cn=N.GeomUtils.boundsToPoints(Sn),_e=N.GeomUtils.rotatePoints(cn,ae),pt=N.GeomUtils.minBoundingRect(_e);Sn.width=pt.width,Sn.height=pt.height;const kt=N.GeomUtils.centerPoint(Sn),dn={x:kt.x-Rt.x,y:kt.y-Rt.y};qe.left=qe.left+dn.x*c,qe.top=qe.top+dn.y*c}qe.lineHeight=zo*c+"px";const Et=bt?void 0:"text-line";Se.push(a.jsx("div",{className:Lr?`${Lr} ${Et}`:Et,style:qe,...li,children:Or},`text-${Kt.y}-${Jn}-${Rn}`))};if(ie.getOverflow()===N.ITextFrame.Overflow.Shrink&&ke>0){let wn=le?.width??0,Qt=0;for(;wn>1&&wn>ke&&Wt>2&&Qt<100;)Wt*=ke/wn,wn=j.measureText(Pe,Wt).width,Qt++;le={...le,width:wn}}let zn=Kt.x;rt===N.ITextFrame.HorizontalAlignment.Right?zn+=le.width-Kt.width:rt!==N.ITextFrame.HorizontalAlignment.Center&&rt!==N.ITextFrame.HorizontalAlignment.CenterContinuous||(zn+=(le.width-Kt.width)/2),lt?.lastRepeatIndex>=0&&(zn=Kt.x);const mo=kn.length;for(let wn=0;wn<mo;wn++){const Qt=kn[wn];(Qt.type===N.NumberFormat.ParseRunType.Text||Qt.type===N.NumberFormat.ParseRunType.Repeat)&&(Qt.type,N.NumberFormat.ParseRunType.Repeat,Qn(Qt,zn,wn,Qe,rt===N.ITextFrame.HorizontalAlignment.Justify||rt===N.ITextFrame.HorizontalAlignment.Distributed||lt?.lastRepeatIndex>=0?ke:Kt.width,bt,{x:Ue.x+A,y:Ue.y,width:Qt.width,height:le.height},0,Ke,Jt)),zn+=Qt.width}};Ie?ut(Ie,0,{x:0,y:0,...le},xe.lines[0].baseline,W,!0,null,Fe):xe.visitLines({visitTextLine:(Pe,Qe,nt)=>{const Ke=Pe.runs[0].text.replace(/\s+$/,""),rt=Qe===nt-1;let Bt=W===N.ITextFrame.HorizontalAlignment.Justify&&(rt||Pe.runs[0].text.endsWith(`
|
|
64
|
+
`))?N.ITextFrame.HorizontalAlignment.Left:W,lt=0;Qe>0&&(ie.getVertical()===N.ITextFrame.VerticalAlignment.Distributed||ie.getVertical()===N.ITextFrame.VerticalAlignment.Justify)&&(lt=Math.max(0,(C-(Me+3)-Pe.bounds.height*nt)/(nt-1)*Qe)),ie.getVertical()===N.ITextFrame.VerticalAlignment.Distributed&&ae&&ae%90==0&&ae%180!=0&&(Bt=N.ITextFrame.HorizontalAlignment.Distributed),Bt!==N.ITextFrame.HorizontalAlignment.Justify&&Bt!==N.ITextFrame.HorizontalAlignment.Distributed&&Bt!==N.ITextFrame.HorizontalAlignment.Fill||(le={...le,width:ke});const Jt={...Pe.bounds,y:Pe.bounds.y+lt+0,width:fe||k&&(k.repeatChars.length>0||k.spacingChars.length>0)?le.width:Pe.bounds.width};ut(Ke,Qe,Jt,be.lines[0].baseline,Bt,rt,nt===1?V:null,bt&&Qe>0?{...Fe,style:{...Fe.style,background:void 0}}:Fe)}})}Se.length>0&&(U=Se)}if(bt)return U&&U.length>0?U:a.jsx("div",{style:dt,...b});let xt=g?"auto":ue.pointerEvents,Ne=null;if(ze){const Xe={x:L*c-1,y:-1,width:D*c+1,height:C*c+1};xt="auto",Ne=w({renderBounds:Xe,darkMode:F,className:"filter-button",disabled:!E.isEditAllowed(),zoom:c,filter:E.getColumnFilter(),onFilterButtonMouseDown:x,...y}),Ne&&(Ne=a.jsx("div",{style:{...Xe,position:"absolute",zIndex:2,display:"flex",alignItems:"end"},onDoubleClick:le=>{le.stopPropagation(),le.preventDefault()},children:Ne},"filterButton"))}P&&!U&&(U=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 vt=[$,U,r,z,mt,Ne];return a.jsx("div",{style:{...X,...ue,pointerEvents:xt},...b,children:vt})},tf={text:"",placeholder:""},nf=(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)))},iR=Object.freeze([_x,yM,xM]),qx=d.memo(d.forwardRef((e,t)=>{const{editState:n,onStartEdit:o,onChangeEdit:r,onSubmitEdit:i,onCancelEdit:l,onDoneEdit:c,defaultTextStyle:s,useRichStyling:u=!0,bodyStyle:h,activeCoords:f,sheet:p,commands:m,containerBounds:g,setNaturalDimensions:x,onFocus:y,disabled:w,style:b,zoom:C=1,linesVisible:_,autoFocus:E=!1,...M}=e,{height:j=0,width:F=0}=g??{},k=h?.darkMode??!1,O=d.useRef(null),[S,v]=d.useState(!1),[I,T]=d.useState(null),[R,A]=d.useState(()=>n);d.useEffect(()=>{H.current=!1,A(n)},[n]);const D=d.useMemo(()=>{const le=R.clean();let Ue=le.getStyle();u||(Ue=Ue.createTemporaryStyle({font:{size:s?.fontSize}}));const ye=le.getFormula(),Se=Ue.getAlignment(),ne=ye?N.ITextFrame.HorizontalAlignment.Left:Se.getHorizontal(),be=Se.getVertical(),ke=Se.getOverflow()===N.ITextFrame.Overflow.Wrap||le.getType()===N.ScalarType.String&&(ne===N.ITextFrame.HorizontalAlignment.Justify||ne===N.ITextFrame.HorizontalAlignment.Distributed||be===N.ITextFrame.VerticalAlignment.Justify||be===N.ITextFrame.VerticalAlignment.Distributed),me=(xe=>{if(!xe)return tf;const Ee=xe.clean();if(!Ee)return tf;let Fe=Ee.getStyle()?.getQuotePrefix();if(xe.dirty===void 0||xe.dirty===null){let ft="",ut=Ee.getFormulaText();ut&&(ft=ut,Fe=!1),ft||(ft=Ee.toTextUnformatted(!0)??"");let Pe="";if(!xe.editMode&&Ee.isSpillOverflow()){const Qe=Ee.getSpill();if(Qe){const nt=Qe.getCell(),Ke=nt.getFormulaText();nt.isEqual(Ee)||(Pe=Ke)}}return Fe&&(ft="'"+ft),{text:ft,placeholder:Pe}}return{text:xe.dirty??"",placeholder:""}})(R),Ie=me.text,we=N.ITextFrame.toCSSHorizontalTextAlign(u&&!ye?R.clean()?.getRenderHorizontalAlignment():N.ITextFrame.HorizontalAlignment.Left);return{style:Ue,isWrapped:ke,textValue:Ie,formula:ye,frameVertAlign:be,placeholder:me.placeholder,insets:u?le.getInsets():Cs.EmptyRect,textAlign:we}},[R,s,k,C,u]),L=d.useRef(null),V=Gr(t,()=>({startEdit:le=>{O.current=le?.initialSelection;const Ue={...n,editMode:le?.editMode??!1};le?.text!==void 0&&(Ue.dirty=le.text),Ue.editMode===n.editMode&&Ue.dirty===n.dirty||(A(Ue),U?.(Ue))},submitEdit:()=>$(),cancelEdit(){z()},autoFocus(){L.current.focus()},dispatchEvent:le=>L.current.dispatchEvent(le),focus(){L.current.focus()},getLineHeight:P}),[o,n]);d.useLayoutEffect(()=>{if(!I||!S)return;const le=L.current;D.textValue,le&&le.setSelectionRange(I.start,I.end,I.direction)},[L.current,I,D.textValue]);const W=d.useMemo(()=>{const le=R?.clean(),Ue=D.style.createTemporaryTextFrame(D.textValue,le?.getType()===N.ScalarType.String),ye=u?le.getInsets().right+le.getInsets().left:0;let Se=null;return D.isWrapped&&(Se={width:F-ye}),Ue.layout(Se)},[D,F,R,u]),P=Be(()=>Math.ceil(W?.lines[0]?.bounds.height),[W]);d.useLayoutEffect(()=>{if(!W)return;const le=D.style,Ue=le.getInsets()??Cs.EmptyRect,ye=u?Ue.left+Ue.right:0,Se=u?.04*le.getFont().getSize():1,ne=Math.round(D.isWrapped?void 0:W.bounds.width+ye+Se),be=Math.round(W.bounds.height);x?.({width:ne,height:be})},[W,x,D,u,R]);const U=Be(r,[r]),X=Be(le=>{if(R.dirty===le)return;const Ue={...R};Ue.dirty=le,L.current,A(Ue),U?.(Ue)},[R]),ee=Be(le=>{if(R.editMode===le)return;const Ue={...R};Ue.editMode=le,A(Ue),U?.(Ue)},[R]),H=d.useRef(!1),$=Be(()=>{if(H.current)return!1;try{i?.(R),c?.(),H.current=!0}catch{return!1}return!0},[i,R]),z=Be(()=>{H.current=!0,A(n),l?.(),c?.()},[l,n]),q=Be(le=>{if(!L.current)return;if(le.key,le.isDefaultPrevented(),!(le.isTrusted||le.nativeEvent.ctrlKey||le.nativeEvent.metaKey||le.nativeEvent.altKey||le.nativeEvent.isComposing||_3.indexOf(le.nativeEvent.key)===-1&&le.nativeEvent.key!=="Backspace")){const me={...R};let Ie=0;return nf(me,me.dirty)&&!isNaN(parseFloat(le.key))?(me.dirty?.endsWith("%")?me.dirty=(me.dirty.substring(0,me.dirty.length-1)??"")+le.key+"%":me.dirty=(me.dirty??"")+le.key+"%",Ie=me.dirty.length-1):le.nativeEvent.key==="Backspace"?(me.dirty="",Ie=me.dirty.length):(me.dirty=(me.dirty??"")+le.key,Ie=me.dirty.length),L.current.value=me?.dirty,O.current={start:Ie,end:Ie,direction:"forward"},L.current?.setSelectionRange(Ie,Ie,"forward"),A(me),U?.(me),void le.preventDefault()}const Ue=le.nativeEvent.ctrlKey,ye=le.nativeEvent.shiftKey,Se=le.nativeEvent.altKey,ne=le.nativeEvent.metaKey;if(Ue&&le.key==="z"&&le.stopPropagation(),le.which===E3)return le.preventDefault(),void z();if(le.which===CM)return ee(!0),void le.preventDefault();const be=le.target;if(le.key==="%"&&be.selectionStart===be.selectionEnd&&be.value[be.selectionStart]==="%"&&R?.clean().getStyle().numberFormat.includes("%"))return T({start:be.selectionStart+1,end:be.selectionEnd+1,direction:be.selectionDirection}),void le.preventDefault();if(le.which===Cx){if(le.preventDefault(),ne||Se){const me=D.textValue.substring(0,be.selectionStart)+`
|
|
65
|
+
`+D.textValue.substring(be.selectionEnd);return X(me),void T({start:be.selectionStart+1,end:be.selectionStart+1,direction:be.selectionDirection})}return void($()&&p.getSelection().traverse(N.IRange.Orientation.Column,ye))}if(le.which===gM)return le.preventDefault(),void($()&&p.getSelection().traverse(N.IRange.Orientation.Row,ye));let ke=null;switch(le.which){case bM:ke=N.IRange.Direction.Left;break;case vM:ke=N.IRange.Direction.Right;break;case wM:ke=N.IRange.Direction.Up;break;case SM:ke=N.IRange.Direction.Down}!ke||Ue||ye||Se||ne||R.editMode?R.editMode&&(ke||iR.includes(le.which))&&le.stopPropagation():$()},[R,p,D]),Z=d.useCallback(()=>{L.current?.focus(),setTimeout(()=>{L.current?.select()},0)},[]),Q=d.useCallback(()=>{L.current?.focus(),console.log("implement toggleRelativeReferences")},[]),Y=Be(()=>{const le=L.current?.value;let Ue="";if(f.rowIndex>0){const ye=p.getRange({rowIndex:f.rowIndex-1,colIndex:f.colIndex}).getCell();ye&&(Ue=ye.toTextUnformatted(!0))}X(le+Ue)},[f,p]);d.useEffect(()=>p.getRange(f).addListener(()=>{const le={...R,clean:()=>p.getRange(f).getCell()};A(le),U?.(le)}),[f,p]);const te=d.useCallback(()=>{const le=R.clean().createTemporaryCell({value:Ts(),style:{numberFormat:"Medium Time"}}).toText();X((L.current?.value??"")+le)},[p]),ie=d.useCallback(()=>{const le=R.clean().createTemporaryCell({value:Ts(),style:{numberFormat:"Short Date"}}).toText();X((L.current?.value??"")+le)},[p]),fe=d.useMemo(()=>({element:()=>L.current,doCopy:le=>{const Ue=L.current.value.substring(L.current.selectionStart,L.current.selectionEnd);if(le?.isCut){const ye=L.current.value.substring(0,L.current.selectionStart)+L.current.value.substring(L.current.selectionEnd,L.current.value.length);X(ye)}return Ue}}),[L.current]),J=d.useMemo(()=>({element:()=>L.current,doPaste:async(le,Ue)=>{const ye=await le.toText?.();if(!ye)return!0;const Se=L.current.value.substring(0,L.current.selectionStart)+ye+L.current.value.substring(L.current.selectionEnd,L.current.value.length);return X(Se),T({start:L.current.selectionStart+ye.length,end:L.current.selectionStart+ye.length,direction:"forward"}),!0}}),[L.current]),ae=d.useMemo(()=>({contains:le=>L.current?.contains(le)||!1,focus(){L.current.focus()}}),[]),Ce=d.useMemo(()=>[new At("selectAll",ae,{label:"Select All",description:"Select all of the text in cell.",shortcut:{key:"a",modifiers:[yt]}},Z),new At("startEditValueAbove",ae,{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:[yt]},{key:'"',modifiers:[yt,Ln]}]},Y),new At("startEditCurrentTime",ae,{label:"Current Time",description:"Insert the current time.",shortcut:{key:"Semicolon",modifiers:[yt,Ln]}},te),new At("startEditCurrentDate",ae,{label:"Current Date",description:"Insert the current date.",shortcut:{key:"Semicolon",modifiers:[yt]}},ie),new Ve("relativeReferencesToggle",ae,{label:"Toggle References",description:"Toggles cell references from relative to absolute, to partially absolute, back to relative again.",shortcut:{key:"F4"}},Q),new Ve("toggleEditorFocus",ae,{label:"Toggle Editor Focus",description:"Moves focus between editors such as formula editor and inline editor.",shortcut:{key:"F2",modifiers:[yt]}})],[]),Me=d.useMemo(()=>{let le=null;const Ue=()=>({contains:ye=>L.current?.contains(ye)||!1,focus(){L.current.focus()}});return le=m?m.createChildGroup(Ue,"editor",!1):new Kl(Ue,"editor"),le.addCommands(Ce,!0),le},[m,Ce]),re=d.useMemo(()=>({notifier:null,source:fe,target:J,commands:Me}),[fe,J,Me]);Wx(re);const[oe,ue]=d.useState(!E);d.useEffect(()=>{ue(!1)},[]);const De=Be(le=>{v(!0),Me?.activate();const Ue=O.current;if(Ue!==!1){let ye,Se;const ne=L.current.value;nf(R,ne)&&(ye=ne.length-1,Se=ne.length-1),ye=Ue?.start??ye??ne.length,Se=Ue?.end??Se??ne.length,O.current=!1,T({start:ye,end:Se,direction:"forward"})}y?.(le)},[y,R]),ze=D.insets;let mt=ze.left+1;const bt=ze.left+ze.right+2-1,ve=W?.bounds.height??0;let dt,xt=ze.top;D.frameVertAlign===N.ITextFrame.VerticalAlignment.Center?xt=Math.max(0,(j-(ze.top+ze.bottom)-ve)/2):D.frameVertAlign===N.ITextFrame.VerticalAlignment.Bottom&&(xt=Math.max(0,j-(ze.top+ze.bottom)-ve)),_!==void 0&&W?.lines[0]?.bounds&&(dt=W?.lines[0]?.bounds.height*_);const Ne=D.style.getFont();let vt=Ne.getSize();Ne.isSuperSub()&&(vt*=Ne.getSuperSubScale()),vt*=N.IFont.getDeviceScale()*C;const Xe=u?Ne.toCSS(k,C):null;return a.jsx("div",{className:"sheet-cell-editor",onMouseDown:le=>{L.current&&document.activeElement!==L.current&&requestAnimationFrame(()=>{L.current.focus()})},ref:V,...M,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:xt*C+1,left:mt*C,width:`calc(100% - ${bt*C}px)`,maxWidth:`calc(100% - ${bt*C}px)`,height:(dt??ve)*C,maxHeight:(dt??ve)*C},children:a.jsx("textarea",{spellCheck:"false",placeholder:D.placeholder,ref:L,value:D.textValue,disabled:oe,readOnly:w||p.getProtection().isReadOnly(),name:"sheet-cell-editor",autoComplete:"off",autoCapitalize:"off",style:{flex:"1 1 100%",font:"inherit",...Xe,fontSize:vt?`${vt}px`:"inherit",textAlign:D.textAlign,lineHeight:(W?.lines[0]?.bounds.height??0)*C+"px",height:(W?.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:D.isWrapped?"normal":"pre",wordWrap:"break-word"},onFocus:De,onBlur:()=>{v(!1)},onSelect:le=>{},onChange:le=>{L.current&&!H.current&&(O.current=!1,X(le.target.value),D.textValue,le.target.value,le.target.selectionStart,le.target.selectionEnd,le.target.selectionDirection,T({start:le.target.selectionStart,end:le.target.selectionEnd,direction:le.target.selectionDirection}))},onMouseDown:le=>{S&&ee(!0)},onKeyDown:q})})})})),Zx=(e,t)=>({clean:e,dirty:t,editMode:!1}),Gx=e=>{const{length:t=0,width:n=1,dashArray:o=null,dashArrayAdditional:r=null,isDouble:i=!1,isAngled:l=!1,offsetX:c=0,offsetY:s=0,isVertical:u=!1,...h}=e,f=b=>{let C=null;if(b&&n>0){C="";for(let _=0;_<b.length;_++)C+=b[_],_<b.length-1&&(C+=",")}return C},p=f(o);let m=p;r&&(m=f(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 ${bn.boundPixel(c+b)} ${bn.boundPixel(s)} L ${bn.boundPixel(c+b)} ${bn.boundPixel(s+x)}`:`M ${bn.boundPixel(c)} ${bn.boundPixel(s+b)} L ${bn.boundPixel(c+x)} ${bn.boundPixel(s+b)}`,y=a.jsx("path",{strokeWidth:g,strokeDasharray:m,d:C,...h})}if(l){g=n/2;const b=g+g/2;let C=m,_=null;_=u?`M ${bn.boundPixel(c+b)} ${bn.boundPixel(s)} L ${bn.boundPixel(c+b)} ${bn.boundPixel(s+x)}`:`M ${bn.boundPixel(c)} ${bn.boundPixel(s+b)} L ${bn.boundPixel(c+x)} ${bn.boundPixel(s+b)}`,y=a.jsx("path",{strokeWidth:g,strokeDasharray:C,strokeDashoffset:"1",shapeRendering:"crispEdges",d:_,...h})}let w=null;return w=u?`M ${bn.boundPixel(c+g/2)} ${bn.boundPixel(s)} L ${bn.boundPixel(c+g/2)} ${bn.boundPixel(s+x)}`:`M ${bn.boundPixel(c)} ${bn.boundPixel(s+g/2)} L ${bn.boundPixel(c+x)} ${bn.boundPixel(s+g/2)}`,a.jsxs(a.Fragment,{children:[a.jsx("path",{strokeWidth:g,strokeDasharray:p,d:w,...h}),y]})};function Vu(e,t){if(typeof e=="function")return e(t);e&&(e.current=t)}var Xl=parseInt(d.version.split(".")[0],10)>=19?function(e){return t=>{const n=[];for(const o of e){const r=Vu(o,t),i=typeof r=="function";n.push(i?r:()=>Vu(o,null))}return()=>{for(const o of n)o()}}}:function(e){return t=>{for(const n of e)Vu(n,t)}},lR=function(){},Kx=typeof window<"u",Za=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},aR=Kx?d.useLayoutEffect:d.useEffect,of={x:0,y:0,width:0,height:0,top:0,left:0,bottom:0,right:0};const q0=Kx&&window.ResizeObserver!==void 0?function(){var e=d.useState(null),t=e[0],n=e[1],o=d.useState(of),r=o[0],i=o[1],l=d.useMemo(function(){return new window.ResizeObserver(function(c){if(c[0]){var s=c[0].contentRect,u=s.x,h=s.y,f=s.width,p=s.height,m=s.top,g=s.left,x=s.bottom,y=s.right;i({x:u,y:h,width:f,height:p,top:m,left:g,bottom:x,right:y})}})},[]);return aR(function(){if(t)return l.observe(t),function(){l.disconnect()}},[t]),[n,r]}:function(){return[lR,of]},sR=(e,t)=>e.colStart===t.colStart?e.rowStart-t.rowStart:e.colStart-t.colStart,cR=(e,t)=>e.rowStart===t.rowStart?e.colStart-t.colStart:e.rowStart-t.rowStart,dR=e=>{const{key:t,points:n,range:o,stroke:r,darkMode:i,forceThinBorder:l=!1,shiftIfWide:c=!1,isVertical:s=!1,intersections:u,layout:h}=e,f=N.IBorder.BuiltInDefinitions.get(l?N.IBorder.StrokeStyle.Thin:r.getStyle());if(!f)return null;const p=n[0],m=n[1],g=n[2],x=n[3];let y=1+(s?x-m:g-p),w=0;const b=r.getColor().toRGBA(i).toString(),C=f.description.toLowerCase().includes("double");let _,E;const M=s?"rowStart":"colStart",j=s?"rowEnd":"colEnd",F=s?m:p;if(u?.length>0){const v=u[0];if(v?.range[M]===o[M]){const I=N.IBorder.BuiltInDefinitions.get(v.stroke.getStyle());w=Math.floor(I.width/2)}if(u[u.length-1]?.range[j]===o[j]){const I=N.IBorder.BuiltInDefinitions.get(u[u.length-1].stroke.getStyle());y=Math.floor(y+(I.width===2?0:I.width/2))}if(C){const I=s?"colStart":"rowStart",T=s?"colEnd":"rowEnd",R=s?h?.getRowOffset:h?.getColOffset;let A=0,D=0;_=[],E=[];for(let L=0;L<u.length;L++){const V=u[L];if(V.stroke.getStyle()===N.IBorder.StrokeStyle.Double&&R){const W=R(V.range[M])-(F-w);V.range[I]<o[I]&&(_.push(W-A),A=W,_.push(1),A++),V.range[T]>o[T]&&(E.push(W-D),D=W,E.push(1),D++)}}_.length>0&&A<y&&_.push(y-A),E.length>0&&D<y&&E.push(y-D)}}let k=s?-Math.floor(f.width/2):-w,O=s?-w:-Math.floor(f.width/2);const S=c&&f.width>2?-1:0;return a.jsx(Gx,{offsetX:p+k+S,offsetY:m+O+S,length:y+w,isVertical:s,stroke:b,width:f.width,dashArray:_??f.pattern,dashArrayAdditional:E,isDouble:C,isAngled:f.description.toLowerCase().includes("slant")},t)},Xx=({getBorderAt:e,borderRenderer:t=dR,getVisibleCells:n,darkMode:o,forceThinBorder:r=!1,defaultColor:i="black",shiftIfWide:l=!1})=>{const c=Be(n,[n]);return{overlay:d.useMemo(()=>s=>{const u=s.toClipBounds(s.getRangeCoordsBounds(),-3);if(!u)return;const h=c(s);if(h.length===0)return;const f=s.getVisibleColumnOffsets(),p=s.getVisibleRowOffsets();let m=[],g=[];const x=s.getVisibleColumns(),y=s.getVisibleRows(),w=[],b=[],C=[],_=(F,k,O,S,v,I,T)=>{const R={index:S,stroke:v,visibleIndex:O,edge:I,length:T};F[k]||(F[k]=[]),F[k].length>0&&F[k][F[k].length-1]?.index===S?F[k][F[k].length-1]=R:F[k].push(R)};for(let F=0;F<h.length;F++){const k=h[F],O=k.coords;if(!O)continue;const S=k?.range??{rowStart:O.rowIndex,colStart:O.colIndex,rowEnd:O.rowIndex,colEnd:O.colIndex},v=s.getVisibleRangeCoords();if(!_o.isRangesIntersect(S,v)&&!_o.isRangeWithinRange(S,v))continue;const I=O.colIndex,T=O.rowIndex,R=f[I],A=p[T];if(S.rowEnd!==S.rowStart){const z=p[S.rowStart]?.spanIndex??-1,q=p[S.rowEnd]?.spanIndex??p[y[y.length-1]].spanIndex+1;m.push({...S,rowStart:z,rowEnd:q})}if(S.colEnd!==S.colStart){const z=f[S.colStart]?.spanIndex??-1,q=f[S.colEnd]?.spanIndex??f[x[x.length-1]].spanIndex+1;g.push({...S,colStart:z,colEnd:q})}const D=k.value,L=e(D,F);if(!L||L.isEmpty())continue;const V=L.getLeft(),W=L.getTop(),P=L.getRight(),U=L.getBottom();let X=1,ee=1;if(!R||!A)continue;const H=R.spanIndex,$=A.spanIndex;V.isNone()||_(w,H,$,T,V,N.IBorder.Edge.Left,X),W.isNone()||_(b,$,H,I,W,N.IBorder.Edge.Top,ee),P.isNone()||_(w,H+ee,$,T,P,N.IBorder.Edge.Right,X),U.isNone()||_(b,$+X,H,I,U,N.IBorder.Edge.Bottom,ee)}const E=(F,k,O)=>{const S=[];return F.forEach((v,I)=>{let T=null;v.sort((R,A)=>R.visibleIndex-A.visibleIndex);for(let R=0;R<v.length;R++){const A=v[R];if(!A?.stroke||k[I]===void 0&&k[I-1]===void 0)continue;let D=!1;if(O)for(let P=0;!D&&P<m.length;P++){let U=m[P];U.colStart<=A.index&&U.colEnd>=A.index&&U.rowStart<I&&U.rowEnd>=I&&(D=!0)}else for(let P=0;!D&&P<g.length;P++){let U=g[P];U.rowStart<=A.index&&U.rowEnd>=A.index&&U.colStart<I&&U.colEnd>=I&&(D=!0)}if(D)continue;const L=A.stroke?.getColor(),V=L?L.toRGBA().toString():i,W=A.stroke.getStyle()+":"+V;(W!==T?.key||T&&T.visibleIndex+1<A.visibleIndex)&&(T&&S.push(T),T={key:W,index:k[I]??k[I-1]+1,visibleIndex:A.visibleIndex,edge:A.edge,stroke:A.stroke,from:A.index,to:A.index+A.length-1,intersections:[],length:1}),T.to=A.index+A.length-1,T.visibleIndex=A.visibleIndex}T&&S.push(T)}),S};m=m.sort(cR),g=g.sort(sR);const M=E(w,x,!1),j=E(b,y,!0);if(M.length===0&&j.length===0)return null;for(let F=0;F<j.length;F++){const k=j[F];let O=Ht.findEqualOrGreater(M,k.from,v=>v.index),S=!1;for(;!S;){const v=M[O++];v&&v.index>=k.from&&v.index<=k.to+1&&v.from<=k.index&&v.to+1>=k.index&&(k.intersections.push({stroke:v.stroke,range:{rowStart:v.from,rowEnd:v.to+1,colStart:v.index,colEnd:v.index}}),v.intersections.push({stroke:k.stroke,range:{rowStart:k.index,rowEnd:k.index,colStart:k.from,colEnd:k.to+1}})),S=!v||v.index>k.to+1}}for(let F=0;F<j.length;F++){const k=j[F];let O=k.stroke;const S=`rBorder:${k.index}:${k.from}:${k.to}:${k.edge}`,v={rowStart:k.index,rowEnd:k.index,colStart:k.from,colEnd:k.to+1},I=s.getLayout(),T=!1,R=I.getColOffset(v.colStart),A=I.getRowOffset(v.rowStart),D=[R,A,I.getColOffset(v.colEnd),A];C.push(t({key:S,points:D,stroke:O,darkMode:o,forceThinBorder:r,shiftIfWide:l,range:v,intersections:k.intersections,layout:I,isVertical:T}))}for(let F=0;F<M.length;F++){const k=M[F];let O=k.stroke;const S=`cBorder:${k.index}:${k.from}:${k.to}:${k.edge}`,v={rowStart:k.from,rowEnd:k.to+1,colStart:k.index,colEnd:k.index},I=s.getLayout(),T=!0,R=I.getColOffset(v.colStart),A=[R,I.getRowOffset(v.rowStart),R,I.getRowOffset(v.rowEnd)];C.push(t({key:S,stroke:O,points:A,darkMode:o,forceThinBorder:r,shiftIfWide:l,range:v,intersections:k.intersections,layout:I,isVertical:T}))}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])}},rf=fo.Center,uR=Object.freeze({horizontal:!1,vertical:!1}),lf=Cs.EmptyTopLeft,hR=(e,t)=>_o.EmptyCell,pR=(e,t)=>new Promise((n,o)=>{o("StaticBorderRenderer does not support scrolling")}),j3=d.memo(e=>{const{getBorderAt:t,width:n,height:o,style:r,rowCount:i=2,columnCount:l=2,darkMode:c,forceThinBorder:s,children:u,...h}=e,f=d.useRef(null),[p,{width:m,height:g}]=q0(),x=n??m,y=o??g,w=d.useMemo(()=>{const R=[];for(let A=0;A<i;A++)for(let D=0;D<l;D++){const L={colIndex:D,rowIndex:A};R.push({coords:L,value:L})}return R},[]),b=d.useCallback(R=>w,[w]),{overlay:C}=Xx({getVisibleCells:b,getBorderAt:t,darkMode:c,forceThinBorder:s}),_=Math.floor(x/l),E=Math.floor(y/i),M={getColOffset:R=>Math.ceil(R*_)+0,getRowOffset:R=>Math.ceil(R*E)+0,getColIndex:R=>Math.floor((R-0)/_)-1,getRowIndex:R=>Math.floor((R-0)/E)-1},j={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},k=d.useMemo(()=>{const R={},A=Math.floor(x/l);for(let D=0;D<l;D++)R[D]={offset:D*A,size:A,spanIndex:D};return R},[x,y]),O=d.useMemo(()=>{const R={},A=Math.floor(y/i);for(let D=0;D<i;D++)R[D]={offset:D*A,size:A,spanIndex:D};return R},[x,y]);if(!C)return null;const S={width:x,height:y},v={width:x,height:y},I={getStage:()=>f.current,getTotalSize:()=>S,getViewportSize:()=>v,getLayout:()=>M,getCellCoordsAsRangeCoords:_o.cellToRange,getVisibleRangeCoords:()=>j,getVisibleRows:()=>{const R=[];for(let A=0;A<i;A++)R.push(A);return R},getTotalRangeCoords:()=>j,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:()=>k,getVisibleRowOffsets:()=>O,allViews:()=>({[rf]:I}),getAnchor:()=>rf,getZoom:()=>1,scrollCellCoordsIntoView:pR,getCellCoordsFromClient:hR,getScrollOrientation:()=>uR,getScrollTopLeft:()=>lf,getFreezeTopLeft:()=>lf},T=C(I);return a.jsxs("div",{style:{...r,position:"relative",display:"flex"},...h,children:[a.jsx("div",{ref:Xl([f,p]),style:{flex:"1 1 100%",display:"flex",maxWidth:"100%",maxHeight:"100%"},children:u}),T]})});function Yx(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=Yx(e[t]))&&(o&&(o+=" "),o+=n)}else for(n in e)e[n]&&(o&&(o+=" "),o+=n);return o}function br(){for(var e,t,n=0,o="",r=arguments.length;n<r;n++)(e=arguments[n])&&(t=Yx(e))&&(o&&(o+=" "),o+=t);return o}const fR=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"})]})},mR=d.memo(e=>{const{colorLicensee:t="blue",colorError:n="red",colorCredits:o="grey",credits:r="All rights reserved - Michael Ford",feature:i,style:l,...c}=e??{},[s,u]=d.useState(null);d.useEffect(()=>{(async()=>{const E=await N.LicenseManager.getDetails();u(E)})()},[]);const[h,f]=d.useState(!1),p={opacity:.65},m=d.useMemo(()=>{const E=s?.exceptions(),M=E?.length??0;if(M===0)return null;const j=[];for(let F=0;F<M;F++){const k=E[F];j.push(a.jsx("div",{style:{opacity:.8,fontSize:"16px",textAlign:"left",color:n},children:k},F))}return j},[s,n]);if(s===null||s.isValidFor(i))return null;const g=s.type(),x=!m&&g.endsWith("ity"),y=s.licensee(),w=x?1.6:1,b=135/w,C=37/w;let _=null;return!g&&y?.length>0&&(_=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},...c,children:a.jsxs("div",{style:{position:"relative",display:"flex",flexDirection:"column"},children:[h?a.jsx(fR,{style:p}):a.jsx("svg",{width:b,height:C,style:p,children:a.jsx("image",{style:{width:b,height:C},href:"https://www.sheetxl.com/watermark.svg",onError:()=>f(!0)})}),a.jsxs("div",{children:[_,m,a.jsx("div",{style:{height:"0px",fontSize:"16px",textAlign:"left",width:"0px",opacity:.8,color:o},children:r})]})]})})}),Zt=(e,t,n)=>{const o=d.useRef(t);o.current=t;const r=n?.fireOnModelChange??!0;d.useEffect(()=>{if(!e||!o.current)return;const i=Object.keys(o.current),l={},c=i.length;for(let u=0;u<c;u++){const h=i[u];l[h]=(f,p)=>{o.current[h]?.(f,p)}}const s=e.addListeners(l,n);if(r)for(let u=0;u<c;u++)l[i[u]](e);return()=>{s?.()}},[e])},Rc=new N.Color("transparent");var af,sf;(function(){if(sf)return af;sf=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 Za=="object"&&Za&&Za.Object===Object&&Za,l=typeof self=="object"&&self&&self.Object===Object&&self,c=i||l||Function("return this")(),s=Object.prototype.toString,u=Math.max,h=Math.min,f=function(){return c.Date.now()};function p(g){var x=typeof g;return!!g&&(x=="object"||x=="function")}function m(g){if(typeof g=="number")return g;if(function(w){return typeof w=="symbol"||function(b){return!!b&&typeof b=="object"}(w)&&s.call(w)=="[object Symbol]"}(g))return NaN;if(p(g)){var x=typeof g.valueOf=="function"?g.valueOf():g;g=p(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}af=function(g,x,y){var w,b,C,_,E,M,j=0,F=!1,k=!1,O=!0;if(typeof g!="function")throw new TypeError("Expected a function");function S(A){var D=w,L=b;return w=b=void 0,j=A,_=g.apply(L,D)}function v(A){var D=A-M;return M===void 0||D>=x||D<0||k&&A-j>=C}function I(){var A=f();if(v(A))return T(A);E=setTimeout(I,function(D){var L=x-(D-M);return k?h(L,C-(D-j)):L}(A))}function T(A){return E=void 0,O&&w?S(A):(w=b=void 0,_)}function R(){var A=f(),D=v(A);if(w=arguments,b=this,M=A,D){if(E===void 0)return function(L){return j=L,E=setTimeout(I,x),F?S(L):_}(M);if(k)return E=setTimeout(I,x),S(M)}return E===void 0&&(E=setTimeout(I,x)),_}return x=m(x)||0,p(y)&&(F=!!y.leading,C=(k="maxWait"in y)?u(m(y.maxWait)||0,x):C,O="trailing"in y?!!y.trailing:O),R.cancel=function(){E!==void 0&&clearTimeout(E),j=0,w=M=b=E=void 0},R.flush=function(){return E===void 0?_:T(f())},R}})();var cf,df,uf={};df||(df=1,function(){if(cf)return uf;cf=1;var e=d,t=typeof Object.is=="function"?Object.is:function(s,u){return s===u&&(s!==0||1/s==1/u)||s!=s&&u!=u},n=e.useState,o=e.useEffect,r=e.useLayoutEffect,i=e.useDebugValue;function l(s){var u=s.getSnapshot;s=s.value;try{var h=u();return!t(s,h)}catch{return!0}}var c=typeof window>"u"||window.document===void 0||window.document.createElement===void 0?function(s,u){return u()}:function(s,u){var h=u(),f=n({inst:{value:h,getSnapshot:u}}),p=f[0].inst,m=f[1];return r(function(){p.value=h,p.getSnapshot=u,l(p)&&m({inst:p})},[s,h,u]),o(function(){return l(p)&&m({inst:p}),s(function(){l(p)&&m({inst:p})})},[s]),i(h),h};uf.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:c}());var hf,pf,Ic={exports:{}},dl={exports:{}},gR=dl.exports;function ff(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}(function(){if(pf)return Ic.exports;pf=1;for(var e=(hf||(hf=1,function(){var f,p,m,g,x,y;typeof performance<"u"&&performance!==null&&performance.now?dl.exports=function(){return performance.now()}:typeof process<"u"&&process!==null&&process.hrtime?(dl.exports=function(){return(f()-x)/1e6},p=process.hrtime,g=(f=function(){var w;return 1e9*(w=p())[0]+w[1]})(),y=1e9*process.uptime(),x=g-y):Date.now?(dl.exports=function(){return Date.now()-m},m=Date.now()):(dl.exports=function(){return new Date().getTime()-m},m=new Date().getTime())}.call(gR)),dl.exports),t=typeof window>"u"?Za: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 c=0,s=0,u=[],h=1e3/60;r=function(f){if(u.length===0){var p=e(),m=Math.max(0,h-(p-c));c=m+p,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(c)}catch(y){setTimeout(function(){throw y},0)}},Math.round(m))}return u.push({handle:++s,callback:f,cancelled:!1}),s},i=function(f){for(var p=0;p<u.length;p++)u[p].handle===f&&(u[p].cancelled=!0)}}Ic.exports=function(f){return r.call(t,f)},Ic.exports.cancel=function(){i.apply(t,arguments)},Ic.exports.polyfill=function(f){f||(f=t),f.requestAnimationFrame=r,f.cancelAnimationFrame=i}})();const Y1=d.memo(d.forwardRef((e,t)=>{const{style:n=bn.EmptyCssProperties,orientation:o,sheet:r,onShowTooltip:i,onCloseTooltip:l,onScrollOffset:c,showCustomScrollButtons:s=!1,offset:u=0,totalSize:h=0,viewportSize:f=0,...p}=e;if(!r)throw new Error("SheetScrollBar needs a sheet model");const[m]=q0(),g=Be(i,[i]),x=Be(l,[l]),y=d.useMemo(()=>w===null&&b===null?null:X=>{ff(w,X),ff(b,X)},[w=m,b=t]);var w,b;const[C,_]=d.useState(()=>{const X=r.getView().getTopLeft();return o===Wo.Vertical?X.top:X.left}),E=()=>{const X=r.getView().getFreezePanes();return o===Wo.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}},[M,j]=d.useState(E),[F,k]=d.useState(null),[O,S]=d.useState(!1),v=o===Wo.Vertical?r.getRowHeaders():r.getColumnHeaders(),I=()=>{const X=r.getUsedRange()?.getCoords()??_o.EmptyRange,ee=r.getSelection().getCoords().cell;return{colIndex:Math.max(X.colEnd,ee.colIndex),rowIndex:Math.max(X.rowEnd,ee.rowIndex)}},[T,R]=d.useState(I),A=T?(o===Wo.Vertical?T.rowIndex:T.colIndex)+1:0,D=()=>{const X=I();_o.isEqualCells(T,X)||R(X)};Zt(r.getView(),{onFreezeSplitChange:()=>{j(E)}}),Zt(r.getSelection(),{onChange:D}),Zt(r,{onUsedRangeChange:D}),d.useEffect(()=>{R(I())},[r]),d.useEffect(()=>{if(!F)return O&&x?.(),void S(!1);const X=v.getTextAt(v.findIndex(C/(r.getView().getZoomScale()/100)+M.scroll+M.shift));S(!0),g?.({...F,display:(o===Wo.Vertical?"Row":"Column")+": "+X})},[u,C,M,o,F,v,O,r]);const L=Be((X,ee,H)=>{_(X);const $=X+M.scroll,z=ee+M.shift,q=H+M.shift+M.scroll;c?.($,z,q)},[c,M]),V=u-M.scroll,W=f-M.shift,P=h-(M.shift+M.scroll),U=v.findOffset(A)*(r.getView().getZoomScale()/100)-(M.scroll+M.shift);return a.jsx(zx,{ref:y,style:n,offset:V,viewportSize:W,totalSize:P,orientation:o,showCustomScrollButtons:s,onMouseDown:X=>{k({anchor:{x:X.clientX,y:X.clientY}}),X.preventDefault()},onScrollOffset:L,onMouseOut:()=>{k(null)},onMouseUp:()=>{k(null)},minSize:U,...p})}));Y1.displayName="SheetScrollbar";const mf=(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},gf=d.memo(d.forwardRef((e,t)=>{const{sheetHeader:n,gridRef:o,sheetElement:r,commands:i,oppositeSize:l=30,containerWidth:c,containerHeight:s,headerText:u,freezeStart:h,gridStyle:f,verticalPadding:p,horizontalPadding:m,onSheetContextMenu:g,onResizeHeadersStart:x,onResizeHeaders:y,onResizeHeadersEnd:w,onResizeHeadersDown:b,onResizeHeadersUp:C,scrollPoint:_,onSelectionStart:E,onSelectionEnd:M}=e,j=d.useMemo(()=>n.getOrientation(),[n]),F=d.useRef(null),[k,O]=d.useReducer(ye=>ye+1,0),[S,v]=d.useReducer(ye=>ye+1,0),I=n?.getSheet(),T=d.useRef(!1);d.useLayoutEffect(()=>{T.current=!0},[n]);const R=d.useMemo(()=>n.getEntireRange().getCoords().max+1,[n]),A=d.useMemo(()=>{const ye=j===N.IRange.Orientation.Column;return{left:ye?_.left:0,top:ye?0:_.top}},[_]),[D,L]=d.useState(I?.getView().getZoomScale()/100),[V,W]=d.useState(null);Zt(n,{onSizesChange:ye=>{L(I?.getView().getZoomScale()/100),Ce(J())}});const P=d.useCallback(()=>{F.current?.invalidate(),v()},[]),U=d.useCallback(Ht.debounce(()=>{P()},10),[]),[X,ee]=d.useState(null);Zt(n.getSheet(),{onSelectionChange(){ee(I?.getSelection().getCoords()),U()},onProtectionChange(){P()},onViewChange(){U()}}),d.useLayoutEffect(()=>{Ce(J())},[j,D,l]),d.useLayoutEffect(()=>{W(null),L(n?.getSheet().getView().getZoomScale()/100),Ce(J())},[n]);const H=d.useCallback(ye=>n.at(ye)?.isHidden()||n.at(ye)?.getSize()===0,[n]),$=d.useCallback((ye,Se)=>n.hiddenHeadersAt(ye,Se),[H]),z=Be(ye=>n.isSelected(ye),[n]),q=Be(ye=>n.isSelectedAll(ye),[n]),Z=d.useCallback(()=>n.getMinSize(),[n]),Q=d.useCallback(()=>n.getMaxSize(),[n]),Y=Be((ye,Se,ne)=>{Se/=D;const be={size:Se=Math.max(Z(),Math.min(Ht.roundAccurately(Se,Z()),Q())),hidden:!1},ke=[];if(Se<=0&&(be.hidden=!0,be.size=ne),ke.push({address:{min:ye,max:ye},update:be}),Se<0){const me=j===N.IRange.Orientation.Column,Ie=me?ae.getColOffset:ae.getRowOffset,we=me?ae.getColIndex:ae.getRowIndex,xe=Ie(ye);let Ee=we(xe+Se);const Fe=Ie(Ee);Fe===xe+Se?Ee--:ke.push({address:{min:Ee,max:Ee},update:{size:xe-Fe+Se}}),ye-Ee>1&&ke.push({address:{min:Ee+1,max:ye-1},update:{hidden:!0}})}n.updateHeaderPairs(ke),y?.(ye,Se,ne)},[k,n,D,y]),te=Be((ye,Se,ne)=>{const be=j===N.IRange.Orientation.Column;let ke=null,me={min:ye,max:ye};if(n.isSelectedAll(ye)){const Ie=n.getSelectedRuns();Ie.length>1?ke="Resize "+(be?"Columns":"Rows"):me=Ie[0];const we={hidden:Se<=0,size:(Se<=0?ne:Se)/D};n.updateHeaderPairs(mf(Ie,we,ye))}if(me){const Ie=me.max-me.min+1;let we;we=Ie===1?n.getRange(me).at(0).getDisplayText():n.getRange(me).toString(),ke=`Resize ${be?"Column":"Row"}${Ie>1?"s":""} '${we}'`}w?.(ye,Se,ke)},[k,n,w]),ie=Be((ye,Se)=>{const ne=j===N.IRange.Orientation.Column;x(ye,Se,`Resize ${ne?"Column":"Row"}(s)`)},[x]),fe=Be(ye=>{let Se=!1;const ne=j===N.IRange.Orientation.Column,be=n.getSheet().getEntireRange().getCoords(),ke=[],me=n.getSelectedRuns(),Ie=we=>{let xe;xe=ne?{colStart:we.min,rowStart:be.rowStart,colEnd:we.max,rowEnd:be.rowEnd}:{colStart:be.colStart,rowStart:we.min,colEnd:be.colEnd,rowEnd:we.max},ke.push(xe)};for(let we=0;we<me.length;we++){const xe=me[we];xe.value.isSelectedAll&&(xe.min<=ye&&xe.max>=ye&&(Se=!0),Ie(xe))}if(Se||Ie({min:ye,max:ye}),n.getSheet().getRanges(ke).autoFit({orientations:ne?N.IRange.Orientations.Column:N.IRange.Orientations.Row}),H(ye)){const we={hidden:null},xe=mf(me,we);Se||xe.push({address:ye,update:we}),n.updateHeaderPairs(xe)}w?.(ye,null,"Resize Column(s)")},[k,n,w,H]),J=()=>{const ye=j===N.IRange.Orientation.Column;return{getColOffset:Se=>ye?n.findOffset(Se):Se===0?0:l/D,getColIndex:Se=>ye?n.findIndex(Se):0,getRowOffset:Se=>ye?Se===0?0:l/D:n.findOffset(Se),getRowIndex:Se=>ye?0:n.findIndex(Se)}},[ae,Ce]=d.useState(()=>J()),Me=d.useCallback((ye,Se)=>ye.nativeEvent.which!==Ex||!q(j===N.IRange.Orientation.Column?Se.colIndex:Se.rowIndex),[j,q]),re=Be(ye=>{r.focusSheet()},[r]),oe=Be(ye=>{I?.getSelection().updateCoords(ye)},[I]),{...ue}=rx({gridRef:o,commands:null,layout:ae,selection:X,fillHandleBorderColor:f.body.fill,selectionBackgroundColor:f.selection.fill,selectionBorderColor:f.selection.strokeFill,selectionRemoveBackgroundColor:f.selectionRemove.fill,selectionRemoveBorderColor:f.selectionRemove.strokeFill,disableTouchSelection:!0,onSelectionChange:oe,canSelectionSpanMergedCells:ye=>{const Se=I.getRange(ye);return Se.isEntireColumns()||Se.isEntireRows()}}),De=Be(()=>{E?.();const ye=I?.getSelection();ye&&ye.setAdjusting(ye.getCoords())},[I,E]),ze=Be(async()=>{I?.getSelection().setAdjusting(null),M?.()},[I,M]),{...mt}=Rj({orientation:j,headerCount:R,gridRef:F,gridMainRef:o,newSelection:ue?.newSelection,modifySelection:ue?.modifySelection,appendSelection:ue?.appendSelection,clearSelections:ue?.clearSelections,pointerDownInterceptor:Me,onPointerUp:re,onDragStart:De,onDragEnd:ze}),bt=f.selection?.strokeFill;d.useEffect(()=>{if(!F.current)return void W(null);const ye=j===N.IRange.Orientation.Column,Se=n.getSelectedRuns(),ne=n.isProtected()?null:Y,be=(me,Ie,we)=>{if(we)return a.jsx("div",ye?{style:{position:"absolute",borderBottom:`${f.headerSelection.strokeWidth}px solid ${bt}`,pointerEvents:"none",top:`${bn.boundPixel(-f.headerSelection.strokeWidth/2)}px`,left:`${bn.boundPixel(we.x-f.headerSelection.strokeWidth)}px`,width:`${bn.boundPixel(we.width+f.headerSelection.strokeWidth+1,!0)}px`,height:l+f.headerSelection.strokeWidth-.5+"px"}}:{style:{position:"absolute",borderRight:`${f.headerSelection.strokeWidth}px solid ${bt}`,pointerEvents:"none",top:`${bn.boundPixel(we.y-f.headerSelection.strokeWidth)}px`,left:`${bn.boundPixel(-f.headerSelection.strokeWidth/2)}px`,width:l+f.headerSelection.strokeWidth-.5+"px",height:`${bn.boundPixel(we.height+f.headerSelection.strokeWidth+1,!0)}px`}},me)},ke=(me,Ie,we)=>{const xe={x:0,y:0,width:0,height:0};if(ye){const Ee=we.toClipBounds(we.getRangeCoordsBounds({rowStart:0,rowEnd:0,colStart:me,colEnd:Math.min(R,Ie)}),er);if(!Ee)return;xe.x=Ee.x,xe.width=Ee.width}else{const Ee=we.toClipBounds(we.getRangeCoordsBounds({rowStart:me,rowEnd:Math.min(R,Ie),colStart:0,colEnd:0}),er);if(!Ee)return;xe.y=Ee.y,xe.height=Ee.height}return{x:xe.x,y:xe.y,width:xe.width,height:xe.height}};W([me=>{const Ie=[];let we=null,xe=ye?me.getVisibleColumns():me.getVisibleRows();const Ee=ye?me.getTotalRangeCoords().colStart:me.getTotalRangeCoords().rowStart;xe.length>0&&xe[0]>Ee&&(xe=[xe[0]-1,...xe]);let Fe=[];const ft=[];for(let Ke=0;Ke<xe.length;Ke++){const rt=xe[Ke],Bt=Ke<xe.length-1?xe[Ke+1]:rt+$(rt+1,!1)+1,lt=rt+1!==Bt;if(!we||we.max<rt)if(Se.length>0&&Se[Se.length-1].max>=rt){const Kt=Ht.findEqualOrGreater(Se,rt,kn=>kn.max);we=Se[Kt]}else we=null;let Jt=!1,Wt=!1;if(we?.value&&(we.min<=rt||we.min<=Bt&&!lt)&&(Jt=!0,Wt=we.value.isSelectedAll),rt===Ee){let Kt=!1,kn=!1;we?.value&&we.min<=rt&&(Kt=!0,kn=we.value.isSelectedAll),rt>0&&ft.push({index:rt-1,isNextHidden:lt,isSelected:Kt,isSelectedAll:kn,disabledResize:!0})}if(Wt&&Fe.push(ft.length),ft.push({index:rt,isHidden:Ke===0&&$(rt,!1)>0,isNextHidden:lt,isSelected:Jt,isSelectedAll:Wt,onDividerMouseDown:b,onDividerResizeStart:ie,onDividerResize:ne,onDividerMouseUp:C,onDividerResizeEnd:te,onDividerAutoFit:fe}),lt){let Kt=!1,kn=!1;if(we&&we.min>=rt&&we.max<=Bt-1&&we.value.isSelectedAll&&Fe.push(ft.length),!(we?.value&&we.max>=Bt))if(Se.length>0&&Se[Se.length-1].max>=Bt){const Tn=Ht.findEqualOrGreater(Se,Bt,Qn=>Qn.max);we=Se[Tn]}else we=null;we?.value&&we.min<=Bt&&(Kt=we.value.isSelected,kn=we.value.isSelectedAll),Bt>0&&ft.push({index:Bt-1,isHidden:!0,isSelected:Kt,isSelectedAll:kn,onDividerMouseDown:b,onDividerResizeStart:ie,onDividerResize:ne,onDividerMouseUp:C,onDividerResizeEnd:te,onDividerAutoFit:fe})}}if(Fe.length>0){let Ke=Fe.length-1;if(Fe.length>0){const lt=ft[Fe[Ke]].index;let Jt=null;ye?(Jt=me.getRangeCoordsBounds({rowStart:0,rowEnd:0,colStart:lt,colEnd:lt}),Jt.x+Jt.width>me.getBounds().width&&(Ke-=1,Ke===0&&(Ke=-1))):(Jt=me.getRangeCoordsBounds({rowStart:lt,rowEnd:lt,colStart:0,colEnd:0}),Jt.y+Jt.height>me.getBounds().height&&(Ke-=1,Ke===0&&(Ke=-1)))}const rt=Se?.[Se.length-1],Bt=me.getAnchor();if(Bt==="t"||Bt==="l"){const lt=ft[Fe[Math.max(0,Fe.length-1)]];lt.showTouchDivider=rt&&rt.max<=lt.index}else Ke>=0&&(ft[Fe[Ke]].showTouchDivider=!0)}const{header:ut,headerSelect:Pe,headerSelectAll:Qe,headerHover:nt}=f??{};for(let Ke=0;Ke<ft.length;Ke++)Ie.push(a.jsx(Zj,{orientation:j,view:me,headerStyle:ut,headerStyleSelect:Pe,headerStyleSelectAll:Qe,headerStyleHover:nt,disabled:n.isProtected(),...ft[Ke]},`divider${Ke}`));return Ie},me=>{const Ie=[];for(let we=0;Se&&we<Se.length;we++)Ie.push(be(`selection:${me.getAnchor()}:${we}`,0,ke(Se[we].min,Se[we].max,me)));return Ie}])},[S,!0,bt,f,ae,R,h,k,D]),d.useEffect(()=>{F.current?.invalidate()},[k]);const ve=Be(ye=>u?u(ye):n.getTextAt(ye),[u,n]),dt=Be(ye=>{const{header:Se,headerSelect:ne,headerSelectAll:be,headerHover:ke}=f??{},{range:me,key:Ie,...we}=ye;return a.jsx(lx,{orientation:j,index:j===N.IRange.Orientation.Column?me.colStart:me.rowStart,isSelected:z,isSelectedAll:q,zoomScale:100*D,headerText:ve,headerStyle:Se,headerStyleSelect:ne,headerStyleSelectAll:be,headerStyleHover:ke,verticalPadding:p,horizontalPadding:m,...we},Ie)},[k,R,f,D,n]),xt=U0(),Ne=d.useMemo(()=>{const ye="white",Se="black",ne={};if(bn.detectIt().primaryInput!=="touch"){let be=j===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='${ye}'/%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='${ye}'/%3E%3C/g%3E%3C/svg%3E%0A") 15 8, pointer`;xt.getMode()?.key==="formatPainter"&&(be=`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='${ye}'/%3E%3C/g%3E%3C/svg%3E%0A") 7 12, pointer`),ne.cursor=be}return ne.backgroundColor=f?.header?.fill||"transparent",ne},[j,k,xt,f]),vt=Gr(t,()=>({scrollTo:ye=>{F.current?.scrollTo(ye)},forceRender:()=>{O()},getGridElement:()=>F.current}),[]),Xe=d.useCallback(ye=>{mt.onPointerDown(ye)},[mt]),le=d.useCallback(ye=>{const Se=mt.getCellCoordsFromClient(ye.clientX,ye.clientY);if(!Se||!g)return;const ne=j===N.IRange.Orientation.Column;g({originalEvent:ye,clientX:ye.clientX,clientY:ye.clientY,rowIndex:ne?-1:Se.rowIndex,colIndex:ne?Se.colIndex:-1}),ye.stopPropagation(),ye.preventDefault()},[mt,g]),Ue=d.useMemo(()=>{const ye=j===N.IRange.Orientation.Column;return a.jsx("div",{ref:vt,children:a.jsx(Ed,{className:"sheet-header",style:Ne,ref:F,scrollPoint:A,columnCount:ye?R:1,rowCount:ye?1:R,width:ye?c:l,height:ye?l:s,freezeLeft:ye?h:void 0,freezeTop:ye?void 0:h,hiddenColumnsAt:ye?$:void 0,hiddenRowsAt:ye?void 0:$,showGridLines:!1,layout:ae,clipCells:!1,allowOverlaysOverflow:!0,enableMouseWheel:!1,onContextMenu:le,onPointerDown:Xe,zoom:D,cellRenderer:dt,overlays:V})})},[V,ae,c,s,A,Ne,S]);return d.useEffect(()=>{T.current=!1,F.current?.invalidate(),v()},[n,f]),Ue})),xR=d.memo(d.forwardRef((e,t)=>{const{view:n,sheet:o,getVisibleCells:r,gridStyle:i}=e,l=Be((u,h)=>u.getStyle().getBorder(),[]),{overlay:c}=Xx({getVisibleCells:r,getBorderAt:l,darkMode:i.body.darkMode,shiftIfWide:!0}),s=c(n);return s&&n?s:null})),yR={key:"copy",description:"'Copy' Select destination and press ENTER or choose Paste."},bR={key:"cut",description:"'Cut' Select destination and press ENTER or choose Paste."},wR={type:N.ICell.Content.Values},vR={fitDestination:!0,type:N.ICell.Content.Formats},SR={fitDestination:!0,type:N.ICell.Content.Formulas},CR={transpose:!0},_R={fitDestination:!0,adjustCells:(e,t,n)=>({value:`=${t.getA1({$colIndex:!0,$rowIndex:!0})}`})},ER=d.memo(d.forwardRef((e,t)=>{const{view:n,element:o,sheet:r,gridStyle:i,commands:l,notifier:c}=e,s=i.body??{},u=r.getView(),{overlays:h}=(({element:f,sheet:p,sheetView:m,commands:g,onClipboardUpdate:x,onPaste:y,selectionRenderer:w=Jg,copyForegroundColor:b="rgb(33, 115, 70)",cutForegroundColor:C="rgb(33, 115, 70)",copyBackgroundColor:_="white",cutBackgroundColor:E="white",notifier:M,...j})=>{const F=Be(w,[w]),k=d.useRef(null),O=U0(),S=O.getMode(),v=d.useMemo(()=>({element:f,doCopy:D=>{const L=p.getSelectedRanges().getSnapshot(D);return new N.RangeClipboardItem(L)}}),[p,m,f]),I=d.useMemo(()=>({element:f,importFromExternal:async(D,L)=>{const V=new N.ExternalRangeClipboardItem(D,L,p.getStyles(),p.isDate1904());return await V.parse()?V:null},doPaste:async(D,L)=>{if(D?.getItemType()!=="range")return;L?.contentsOnly&&delete(L={...L,type:N.ICell.Content.Values}).contentsOnly;const V=p.getSelectedRange(),W=D.getItem(),P=W.getName();return await V.doBatch(async()=>{const U=await V.copyFrom(W,L);!U||U.isEntireRows()||U.isEntireColumns()||U.autoFit({orientations:N.IRange.Orientations.Row,minContent:!0})},{description:"Paste"+(P?` ${P}`:""),autoSelect:!0}),!0}}),[p,m,M,f]),{clipboard:T,...R}=Wx({...j,source:v,commands:g,target:I,notifier:M,onClipboardUpdate:D=>{const L=D?.getItemType()==="range"?D:null;if(L){const V=D.editMode?.(),W={...D?.isCut?.()?bR:yR,...V,args:{isClipboard:!0,...V?.args},onModeChange:P=>{P?.args?.isClipboard||T.clear(!0),V?.onModeChange?.(P)}};O.setMode(W)}k.current=L,x?.(L)},onPaste:(D,L)=>{if(D?.getItemType()!=="range")return;let V=O.getMode()?.key==="cut"||D.isCut?.();if(!V&&O.getMode()?.key==="copy"){const W=D.getItem().getCoords(),P=p.getSelectedRanges().getCoords();let U=!1;if(!U&&W&&P&&D.getItem().getSource?.()===p)for(let X=0;!U&&X<P.length;X++)U=_o.isRangesIntersect(W,P[X]);V=U}V&&O.setMode(null),f?.()?.focus(),y?.(D,L)}});d.useMemo(()=>{const D=f;if(!g)return;const L=[new Ve("pasteValues",D,{label:"Paste Values",scopedLabels:{paste:"Values"},description:`Paste only the values of the selected cells.
|
|
66
|
+
|
|
67
|
+
The formatting is not applied.`,shortcut:{key:"V",modifiers:[yt,Ln]}}),new Ve("pasteFormats",D,{label:"Paste Formatting",scopedLabels:{paste:"Formatting"},description:`Paste only the formats of the selected cells.
|
|
68
|
+
|
|
69
|
+
The content is not applied.`}),new Ve("pasteFormulas",D,{label:"Paste Formulas",scopedLabels:{paste:"Formulas"},description:"Paste only the formulas of the selected cells. The values and formatting is not applied."}),new Ve("pasteTranspose",D,{label:"Paste Transpose",scopedLabels:{paste:"Transpose"},description:"Paste with the rows and columns flipped."}),new Ve("pasteLinks",D,{label:"Paste Links",scopedLabels:{paste:"Links"},description:"Paste as formula references to the original cells."})];g.addCommands(L,!0)},[g,f]),d.useEffect(()=>{if(!g)return;const D={disabled:!p.getProtection().isFormatCellsAllowed()};g.getCommand("pasteValues").updateCallback(L=>R.paste({...wR,...L})).update(D),g.getCommand("pasteFormats").updateCallback((L,V)=>R.paste({...vR,description:V.label(),...L})).update(D),g.getCommand("pasteFormulas").updateCallback((L,V)=>R.paste({...SR,description:V.label(),...L})).update(D),g.getCommand("pasteTranspose").updateCallback((L,V)=>R.paste({...CR,description:V.label(),...L})).update(D),g.getCommand("pasteLinks").updateCallback((L,V)=>R.paste({..._R,description:V.label(),...L})).update(D),g.getCommand("cut").update(D),g.getCommand("paste").update(D)},[p,g]);const A=d.useMemo(()=>{if(!S||!k.current)return;const D=S.key;if(D!=="copy"&&D!=="cut"&&D!=="formatPainter")return;const L=k.current.getItem();if(L.getSource()!==p)return;const V=k.current.isCut?.(),W=V?E:_,P=V?C:b,U=L.getCoords(),X=U?[U]:null;return X&&X.length!==0?ee=>{const H=[];for(let $=0;$<X.length;$++){const z=X[$],q=ee.toClipBounds(ee.getRangeCoordsBounds(z,{top:0,left:0,right:1,bottom:1}),er);q&&(H.push(F({range:z,key:`copy-selection-background-${$}`,x:q.x,y:q.y,width:Math.max(q.width,0),height:Math.max(q.height,0),stroke:W,strokeWidth:2})),H.push(F({range:z,key:`copy-selection-foreground-${$}`,x:q.x+(q.width<=2?-1:0),y:q.y,width:Math.max(q.width,3),height:Math.max(q.height,3),stroke:P,strokeWidth:2,isAnimatedStroke:!0})))}return H}:null},[S,p,m,b,_,C,E]);return{...R,clipboard:T,overlays:A}})({element:o,sheet:r,sheetView:u,commands:l,copyForegroundColor:i.selection.strokeFill,copyBackgroundColor:s.fill,cutForegroundColor:i.selectionRemove.strokeFill,cutBackgroundColor:s.fill,notifier:c});return Zt(r?.getSelection(),{onChange(f){}}),d.useEffect(()=>{n?.getStage()},[n?.getStage()]),h&&n?h(n):null})),kR={key:"dragCut",description:"Drag selection to move cell contents.",cursor:"move"},TR={key:"dragCutInsert",description:"Drag selection to insert cell contents.",cursor:"copy"},jR={key:"dragCopy",description:"Drag selection to copy cell contents."},MR={key:"dragCopyInsert",description:"Drag selection to insert copied cell contents.",cursor:"move"},xf=(e,t)=>t.ctrlKey&&t.shiftKey?MR:t.ctrlKey?jR:t.shiftKey?TR:kR,RR={key:"fill",description:"Drag selection to extend series or fill.",cursor:"crosshair"},IR=d.memo(d.forwardRef((e,t)=>{const{view:n,commands:o,className:r,onFirstRender:i,notifier:l,onShowTooltip:c,onCloseTooltip:s,sheet:u,gridRef:h,gridStyle:f,isActive:p,editingCoords:m,...g}=e,x=n?.getBounds(),y=Be(c,[c]),w=Be(s,[s]),[b,C]=d.useState(()=>u?.getSelection().getCoords()),_=Be(Y=>{_o.isEqualSelectionCoords(Y,b)||u&&u.getSelection().updateCoords(Y)},[u,b]),E=U0(),M=d.useRef(null),[j,F]=d.useState(u?.getProtection().isLocked()),[k,O]=d.useState(u?.getView().getMovableSelection().length>0),S=bn.detectIt().primaryInput==="touch",v=!S&&p,I=m!==null||k,T=Be(Y=>{const te=_o.cellToRange(Y);if(u.isClosed())return te;const ie=u.getRange(te,{excludeHidden:!0}).getMerges();return ie.length===0?te:ie[0]},[u]),R=Be((Y,te,ie,fe,J,ae)=>{const Ce=u.getSelectedRange().getExtended(fe,Y).getCoords();switch(fe){case N.IRange.Direction.Up:return Ce.rowStart;case N.IRange.Direction.Down:return Ce.rowEnd;case N.IRange.Direction.Left:return Ce.colStart;case N.IRange.Direction.Right:return Ce.colEnd}},[u]),A=Be(()=>{const Y=u.getUsedRange()?.getCoords(),te=u.getRowHeaders().getUsedRange()?.getCoords(),ie=u.getColumnHeaders().getUsedRange()?.getCoords();return{...Y,colEnd:Math.max(Y?.colEnd??0,ie?.max??0),rowEnd:Math.max(Y?.rowEnd??0,te?.max??0)}},[u]),D=Be((Y,te)=>u.getRowHeaders().hiddenHeadersAt(Y,te),[u]),L=Be((Y,te)=>u.getColumnHeaders().hiddenHeadersAt(Y,te),[u]),V=Be(Y=>u.getRange(Y,{excludeHidden:!0}).getMerges(),[u]),W=Be(Y=>{u?.getSelection().setAdjusting(Y)},[u]),P=Be(async()=>{u?.getSelection().setAdjusting(null),E.getMode()?.key==="formatPainter"&&(await o?.getCommand("pasteFormats")?.execute({}),E.setMode(null))},[E,b,u,o]),U=d.useMemo(()=>{const Y=E.getMode();return Y?.key==="cut"||Y?.key==="copy"},[E]);Zt(u?.getView(),{onMovableSelectionChange:()=>{O(u.getView().getMovableSelection().length>0)}}),Zt(u?.getSelection(),{onChange(Y){const te=u.getSelection().getCoords();C(te)}}),Zt(u,{onProtectionChange:()=>{F(u.getProtection().isLocked())}});const{body:X={}}=f||{},ee=n.getLayout(),H=!(v&&b.ranges.length<=1&&m===null&&!j&&(!E.getMode()||U)),{overlay:$,onPointerDown:z}=rx({gridRef:h,commands:o,layout:ee,getCellCoordsAsRangeCoords:T,selection:b,fillHandleBorderColor:X.fill,selectionBackgroundColor:p?f.selection.fill:f.selectionInactive.fill,selectionBorderColor:p?f.selection.strokeFill:f.selectionInactive.strokeFill,selectionRemoveBackgroundColor:p?f.selectionRemove.fill:f.selectionInactive.fill,selectionRemoveBorderColor:p?f.selectionRemove.strokeFill:f.selectionInactive.strokeFill,disableFillDrag:H,disableMoveDrag:S||!(p&&b.ranges.length<=1&&m===null&&!j),disableTouchSelection:I,onSelectionChange:_,onSelectionDragStart:W,onSelectionDragEnd:P,onMoveDragStart:(Y,te,ie)=>{E.setMode(xf(0,ie))},onMoveDragUpdate:(Y,te,ie)=>{E.setMode(xf(0,ie))},onMoveDragEnd:(Y,te)=>{E.setMode(null)},onMoveDragDone:async(Y,te,ie)=>{if(_o.isEqualRanges(Y,te))return;const fe=u.getRange(te);if(l?.showOptions){const re=fe.getDifferences(Y);let oe=!1;for(let ue=0;!oe&&ue<re.getCount();ue++)oe=re.at(ue).isContentful();if(oe&&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 J=!ie.ctrlKey,ae=ie.shiftKey,Ce=ae?J?"Insert Moved Cells":"Insert Copied Cells":J?"Move Cells":"Copy Cells",Me=await l?.showBusy?.(Ce);try{const re=u.getRange(Y);await fe.doBatch(async()=>{ae?await fe.insertFrom(Y,{isCut:J,undoRange:re}):await fe.copyFrom(Y,{isCut:J,undoRange:re}),re.autoFit({skipCustomSize:!0,orientations:N.IRange.Orientations.Row,minContent:!0}),fe.autoFit({skipCustomSize:!0,orientations:N.IRange.Orientations.Row,minContent:!0})},{description:Ce,autoSelect:!0})}catch(re){l?.showError?.(re)}finally{Me?.()}},contentfulCellFinder:R,hiddenRowsAt:D,hiddenColumnsAt:L,mergedRanges:V,getDataCoords:A,canSelectionSpanMergedCells:Y=>{const te=u.getRange(Y);return te.isEntireColumns()||te.isEntireRows()},onFill:async(Y,te)=>{const ie="Auto Fill",fe=await l?.showBusy?.(ie);try{await u.doBatch(()=>{u.getRange(Y).autoFill(te),u.getRange(te).autoFit({orientations:N.IRange.Orientations.Row,skipCustomSize:!0,minContent:!0})},{description:ie,autoSelect:!0})}catch(J){l?.showError?.(J)}finally{M.current=null,fe?.()}},onFillPreview:(Y,te,ie)=>{if(h.current&&y){E.setMode(RR);try{M.current?.direction!==ie&&(M.current=null,u.getRange(Y).autoFill(te,{previewOnly:ue=>{M.current={callback:ue,direction:ie}}}));const fe=M.current?.callback?.(te);if(!fe||fe.isEmpty())return;const J=fe.toText();if(!J)return;const ae=_o.cellToRange(fe.getCoords()),Ce=n.getRelativePointFromClient(0,0);let Me=0,re=0,oe=zu;if(ie===N.IRange.Direction.Down){Me=ee.getColOffset(ae.colEnd+1)-Ce.x;const ue=ee.getRowOffset(ae.rowEnd),De=ee.getRowOffset(ae.rowEnd+1);re=De-(De-ue)/2-Ce.y,oe=Q7}else if(ie===N.IRange.Direction.Right){re=ee.getRowOffset(ae.rowEnd+1)-Ce.y;const ue=ee.getColOffset(ae.colEnd),De=ee.getColOffset(ae.colEnd+1);Me=De-(De-ue)/2-Ce.x,oe=zu}else if(ie===N.IRange.Direction.Up){Me=ee.getColOffset(ae.colEnd+1)-Ce.x;const ue=ee.getRowOffset(ae.rowStart),De=ee.getRowOffset(ae.rowStart+1);re=De-(De-ue)/2-Ce.y,oe=Q7}else if(ie===N.IRange.Direction.Left){re=ee.getRowOffset(ae.rowEnd+1)-Ce.y;const ue=ee.getColOffset(ae.colStart),De=ee.getColOffset(ae.colStart+1);Me=De-(De-ue)/2-Ce.x,oe=zu}y({anchor:{x:Me,y:re},display:J,placement:oe})}catch(fe){l?.showError?.(fe)}}},onFillDone:()=>{M.current=null,E.setMode(null),w?.()}}),q=Be(Y=>{z(bn.createSyntheticEvent(Y))},[z,m]);d.useEffect(()=>{const Y=n?.getStage();if(Y)return Y.addEventListener("pointerdown",q),()=>{Y.removeEventListener("pointerdown",q)}},[n?.getStage()]);const Z=Gr(t,()=>({}),[]),Q=d.useRef(null);return a.jsx("div",{className:br(r,"sheet-selection","_sheet-selection_12wyx_5"),style:{position:"absolute",width:x?.width,height:x?.height,overflow:"hidden",pointerEvents:"none",willChange:"none"},ref:Xl([Z,Q]),...g,children:$(n)})})),Dc=Object.freeze({x:0,y:0,width:0,height:0}),DR={fireOnModelChange:!1},LR=d.memo(d.forwardRef((e,t)=>{const{children:n,view:o,movable:r,onRefLoad:i,onRefUnload:l,onHide:c,onShow:s,onUnFocus:u,isDragging:h,updateFrameBounds:f,dragStart:p,style:m,disabled:g,renderMovable:x,...y}=e,[w,b]=d.useState(Dc),[C,_]=d.useState(null),[E,M]=d.useState(!1),j=d.useRef(null);d.useLayoutEffect(()=>{if(r.isClosed())return;const k=r.getBounds();if(!k)return;const O=o.toViewBounds(k);b(O??Dc),f(O??Dc)},[o?.getBounds()]),Zt(r,{onBoundsChange:k=>{const O=k.getBounds();if(!O)return;const S=o.toViewBounds(O);b(S??Dc),f(S)},onSelectionChange:()=>{const k=Ht.hasFocus(j.current,!0);!E&&!k||r.isSelected()||u()}}),Zt(r,{onRequestFocus:()=>Ht.whenFocus(j.current,!0)},DR),d.useEffect(()=>{const k=j.current;return i(k),()=>{l(k)}},[]);const F=d.useMemo(()=>{if(!w)return null;let{width:k,height:O}=w;return x({view:o,movable:r,disabled:g,isDragging:h,style:{position:"relative",left:0,top:0,width:k,height:O},onHide:c,onShow:s})},[o,r,w.width,w.height,g,h]);return a.jsx("div",{className:"movable",tabIndex:0,ref:Xl([j,t]),style:{display:"flex",alignItems:"stretch",justifyContent:"stretch",position:"absolute",maxWidth:"auto",maxHeight:"auto",minWidth:"auto",minHeight:"auto",left:w.x,top:w.y,width:w.width,height:w.height,...m},onMouseDown:async k=>{const O=k.shiftKey||k.ctrlKey,S=r.isSelected(),v=k.currentTarget;O&&S?r.unselect():(S&&!O||await r.select({addToSelection:O}),p(k.nativeEvent,v),v.focus())},onFocus:k=>{k.relatedTarget&&!C&&_(k.relatedTarget),M(!0)},onBlur:k=>{C&&!j?.current?.contains(k.relatedTarget)&&_(null),k.relatedTarget&&M(!1)},...y,children:F})})),OR=d.memo(d.forwardRef((e,t)=>{const{view:n,movables:o,movablesView:r,renderMovable:i,transactional:l,onUnFocus:c,onFocus:s,disabled:u=!1,disableDrag:h=!1,disableResize:f=!1,className:p,style:m,renderDirections:g=["nw","n","ne","w","e","sw","s","se"],onFirstRender:x,...y}=e,w=n.getBounds(),b=Be(x,[x]),C=Be(c,[c]),_=Be(s,[s]),[E,M]=d.useState([]),[j,F]=d.useState(!1),[k,O]=d.useState(!1),S=d.useRef(!0),v=d.useRef(new Map),I=d.useRef(new Map),T=d.useRef(new Map),R=d.useRef(new Map),A=d.useRef(new Map),D=d.useRef({onRequestFocus:ve=>(ie(ve),null)}),L=d.useRef(null),V=d.useRef(null),W=d.useRef(null),[P,U]=d.useReducer(ve=>ve+1,0);d.useLayoutEffect(()=>{U()},[n,o]),Zt(o,{onCollectionChange:()=>{const ve=o.search({address:n.getVisibleRangeCoords(),excludeHidden:!0}),dt=A.current;dt.forEach(Ne=>{Ne()}),dt.clear();const xt=D.current;for(let Ne=0;Ne<ve.length;Ne++){const vt=ve[Ne];if(vt.isClosed())continue;const Xe=vt.addListeners(xt);dt.set(vt,Xe)}U()},onInvalidated:()=>{U()}}),Zt(r,{onMovableSelectionChange(ve){ee(),U()}});const X=d.useCallback((ve,dt)=>{const xt=T.current.get(ve);W.current&&(W.current.getTargets().forEach(Ne=>{if(Ne===xt)return Ne.style.left=dt.x+"px",Ne.style.top=dt.y+"px",Ne.style.width=dt.width+"px",void(Ne.style.height=dt.height+"px")}),W.current.updateRect())},[]),ee=()=>{const ve=[],dt=r.getMovableSelection();dt.forEach(xt=>{const Ne=T.current.get(xt);Ne&&dt.indexOf(xt)!==-1&&ve.push(Ne)}),M(xt=>Ht.isEqualArrays(xt,ve)?xt:ve)},H=d.useRef(null),$=d.useMemo(()=>new Promise(ve=>{H.current=ve}),[]),z=d.useRef(null),q=Be(async(ve,dt)=>{z.current=dt,await(async()=>!(!await $.then()||!W.current))()&&z.current===dt&&W.current.dragStart(ve,dt)},[E]),[Z,Q]=d.useState(!1),Y=d.useRef(null),te=d.useRef(null),ie=Be(async(ve=null)=>{if(ve||(ve=r.getMovableSelection()[0]),!ve)return C?.(),!1;const dt=T.current.get(ve);dt?(await Ht.whenFocus(dt),dt.focus(),te.current=dt,Y.current=null):Y.current=ve},[r]);d.useEffect(()=>{Z&&E.length>0&&te.current!==E[0]&&ie(),S.current&&(b?.(),S.current=!1)},[E]);const fe=d.useMemo(()=>{const ve=o.search({address:n.getVisibleRangeCoords(),excludeHidden:!0});if(ve.length===0&&v.current.size===0)return null;const dt=(le,Ue,ye,Se=!0)=>{const ne=le.isSelected(),be={tabIndex:ye,view:n,movable:le,onRefLoad:ke=>{Y.current===le&&(ke.focus(),te.current=ke,Y.current=null),T.current.set(le,ke),I.current.set(ke,le),Ue.rendered=!0,ee()},onRefUnload:ke=>{T.current.delete(le),I.current.delete(ke),Ue.rendered=!1,ee()},onUnFocus:C,onHide:ke=>{Ue.onHide=ke},onShow:ke=>{Ue.onShow=ke},isDragging:ne&&(k||j),disabled:u,renderMovable:i,updateFrameBounds:ke=>{X(le,ke)},dragStart:q,onMouseUp:()=>{if(z.current=null,V.current){F(!1),O(!1);let ke=!1;R.current?.forEach(me=>{Ht.isEqualBounds(me.movable.getBounds(),me.startBounds)||(ke=!0)}),ke?ae():Ce()}},style:{opacity:Se?j&&ne?.7:void 0:0,zIndex:j&&ne?le.getZIndex()+ve.length:void 0,pointerEvents:Se?void 0:"none",cursor:k&&ne?"grabbing":u||h?"initial":"move",boxShadow:!ne||k&&!j?void 0:"1px 1px 2px 2px rgba(0,0,0,.15)"}};return a.jsx(LR,{...be},`movable-${le.getUUID()}`)},xt=v.current,Ne=new Map,vt=[];for(let le=0;le<ve.length;le++){const Ue=ve[le];if(Ue.isClosed())continue;let ye=xt.get(Ue);ye||(ye={frame:null,shown:null,onShow:null,onHide:null,rendered:!1,doShow:(Se,ne)=>{if(!ne||ne.shown===!0)return;ne.shown=!0;const be=++ne.visibilityRequestId;requestAnimationFrame(()=>{const ke=v.current.get(Se);ke&&be===ne.visibilityRequestId&&(ne.onShow?.(Se),ke.shown=!0)})},doHide:async(Se,ne)=>{if(!ne||ne?.shown===!1)return;ne.shown=!1;const be=++ne.visibilityRequestId,ke=await Promise.resolve(ne.onHide?.(Se));be===ne.visibilityRequestId&&ke!==!1&&(ne.shown=!1,v.current.delete(Se),U())},visibilityRequestId:0}),ye.frame=dt(Ue,ye,le,!0),vt.push(ye.frame),ye.doShow(Ue,ye),xt.delete(Ue),Ne.set(Ue,ye)}const Xe=[];return r.getMovableSelection().forEach(le=>{const Ue=xt.get(le);Ue&&(Ue.frame=dt(le,Ue,-1,!1),Xe.push(Ue.frame),xt.delete(le),Ne.set(le,Ue))}),xt.forEach((le,Ue)=>{le.frame=dt(Ue,le,-1,!1),Xe.push(le.frame),le.doHide(Ue,le),xt.delete(Ue),Ne.set(Ue,le)}),v.current=Ne,ee(),[...Xe,...vt]},[P,n,i,u,h,f,j,k]),J=Be((ve,dt)=>{const xt=`${dt} ${E.length===1?N.TextUtils.capitalize(I.current?.get(E[0]).getContent().getType()):"Drawings"}`;V.current&&(console.warn(`Transaction ${V.current.getDescription()} is being replaced by ${xt}`),V.current.rollback(),V.current=null),V.current=l.beginCommit({description:xt}),R.current.clear();for(let Ne=0;Ne<E.length;Ne++){const vt=E[Ne],Xe=I.current?.get(vt);Xe?R.current.set(vt,{movable:Xe,startBounds:n.toViewBounds(Xe.getBounds())}):console.warn("invalid element",Xe)}},[l,n,E]),ae=d.useCallback(()=>{if(!V.current)return;const ve=[];R.current?.forEach(dt=>{ve.push(dt.movable)}),V.current.commit({viewAfter:{view:r,movableSelection:ve}}),R.current.clear(),V.current=null},[]),Ce=d.useCallback(()=>{V.current&&(V.current.rollback(),V.current=null)},[]),Me=d.useRef(null);d.useEffect(()=>{Me.current&&(Me.current.onscroll=ve=>{ve.preventDefault(),ve.srcElement.scrollTop=0,ve.srcElement.scrollLeft=0})},[Me.current]);const re=Gr(t,()=>({isMovableArea:()=>!0,focusMovable:ie,focus:()=>{ie()}}),[r]),[oe,ue]=d.useState(null),De=d.useRef(!1),ze=d.useRef(!1),mt=d.useRef(!1);d.useEffect(()=>{if(u||E.length===0||mt.current||De.current)return;if(ze.current)return void requestAnimationFrame(()=>{W.current&&L.current&&W.current.refTargets.length>0&&(mt.current=!0,H.current?.(!0)),M([...E])});De.current=!0;const ve=d.lazy(async()=>{try{const dt=await Promise.resolve().then(()=>require("./CGWf__jrNH3xfu2y.cjs"));return De.current=!1,ze.current=!0,M([...E]),dt}catch(dt){return console.warn(dt),H.current?.(!1),null}});ue(ve)},[E,u,h,f]);const bt=d.useMemo(()=>!oe||u?null:a.jsx(d.Suspense,{children:a.jsx(oe,{className:br({dragging:j||k,resizing:j,moving:k}),container:null,ref:W,target:W.current?E:[],draggable:!u&&!h,resizable:!u&&!f,individualGroupable:!0,edgeDraggable:!1,throttleDrag:2,throttleResize:2,origin:!1,keepRatio:!1,renderDirections:g,onResizeStart:ve=>{J(ve.target,"Resize")},onResize:ve=>{if(!V.current)return ve.stopDrag(),void U();F(!0);const dt=ve.direction[0]!==0&&ve.direction[1]!==0;let xt=0,Ne=0;for(let vt=0;vt<E.length;vt++){const Xe=E[vt],le=R.current.get(Xe),Ue=I.current.get(Xe);if(!le||!Ue){console.warn("invalid element");continue}let ye=ve.dist[0],Se=ve.dist[1],ne=ve.drag.dist[0],be=ve.drag.dist[1],ke=le.startBounds.width,me=le.startBounds.height;vt===0?(xt=ke,Ne=me):(ye*=ke/xt,ne*=ke/xt,Se*=me/Ne,be*=me/Ne);const Ie={...le.startBounds};if(Ie.width=Math.max(0,ke+ye),Ie.height=Math.max(0,me+Se),ve.direction[0]===-1&&(Ie.width=Math.max(0,Math.min(le.startBounds.x+ke,ke-ne))),ve.direction[1]===-1&&(Ie.height=Math.max(0,Math.min(le.startBounds.y+me,me-be))),dt&&(Ue.isLockAspectRatio()||ve.inputEvent?.shiftKey)){const we=ke/me,xe=Ie.width/Ie.height;xe>we?Ie.height=Ie.width/we:xe<we&&(Ie.width=Ie.height*we)}ve.direction[0]===-1&&(Ie.x=Math.max(0,Math.min(le.startBounds.x+ke,le.startBounds.x+ke-Ie.width))),ve.direction[1]===-1&&(Ie.y=Math.min(le.startBounds.y+me,le.startBounds.y+me-Ie.height)),le.movable.setBounds(n.toAbsoluteBounds(Ie))}},onResizeEnd:ve=>{F(!1),ae()},onDragStart:ve=>{J(ve.target,"Move")},onDrag:ve=>{if(!V.current)return ve.stopDrag(),void U();O(!0);for(let dt=0;dt<E.length;dt++){const xt=E[dt],Ne=R.current.get(xt);Ne?Ne.movable.setBounds(n.toAbsoluteBounds({...Ne.startBounds,x:Ne.startBounds.x+ve.translate[0],y:Ne.startBounds.y+ve.translate[1]})):console.warn("invalid element")}},onDragEnd:ve=>{},onMouseUp:ve=>{}})}),[P,oe,E,n,u,h,f,j,k]);return a.jsx("div",{className:br(p,"movable-area","_movable-area_314c6_5"),style:{width:w.width,height:w.height,...m,position:"absolute",overflow:"hidden",willChange:"transform"},ref:Xl([re,Me]),...y,children:a.jsx("div",{className:"movable-scroll",style:{position:"absolute",cursor:"initial",left:0,top:0,width:w.width,height:w.height},...y,children:a.jsxs("div",{ref:L,style:{position:"absolute",pointerEvents:"auto"},onFocus:ve=>{_?.(),Q(!0)},onBlur:ve=>{Q(!1)},onKeyDownCapture:ve=>{if(ve.isDefaultPrevented())return;const dt=ve.nativeEvent.ctrlKey,xt=ve.nativeEvent.altKey,Ne=ve.nativeEvent.shiftKey;if(ve.which===E3){const ye=r.getMovableSelection();let Se=[...ye];return E.forEach(ne=>{if(Se.length===0)return;const be=I.current.get(ne);let ke=Se.indexOf(be);Se.splice(ke,1)}),Se.length!==ye.length&&r.selectMovables(Se),Se.length===0&&C?.(),void ve.preventDefault()}const vt=.1,Xe=ye=>{o.updateSelected(Se=>{Se.setRotation(Se.getRotation()+ye)},"Rotate")},le=(ye,Se=!0)=>{o.updateSelected(ne=>{const be=ne.getBounds();let ke=1+ye;Se||(ke=1/ke);const me=Math.sqrt(Math.pow(be.width,2)+Math.pow(be.height,2)),Ie=Math.atan2(be.height,be.width),we=ke*me;if(we<10)return;const xe=we*Math.cos(Ie),Ee=we*Math.sin(Ie),Fe={x:be.x+(be.width-xe)/2,y:be.y+(be.height-Ee)/2,width:xe,height:Ee};ne.setBounds(Fe)},"Resize")},Ue=ye=>{o.updateSelected(Se=>{const ne=Se.getBounds(),be={x:ne.x+(ye.x??0),y:ne.y+(ye.y??0),width:ne.width+(ye.width??0),height:ne.height+(ye.height??0)};Se.setBounds(be)},"Nudge")};if(ve.which===_x)o.updateSelected(ye=>{ye.delete()},"Delete"),ve.preventDefault();else if(ve.key==="a"&&dt){const ye=r.getMovableSelection();r.selectMovables(o.search(),!0),r.selectMovables(ye,!0),ve.preventDefault()}else ve.key==="ArrowLeft"?(Ne?le(vt,!1):xt?Xe(-10):Ue({x:dt?-10:-1}),ve.preventDefault()):ve.key==="ArrowRight"?(Ne?le(vt,!0):xt?Xe(10):Ue({x:dt?10:1}),ve.preventDefault()):ve.key==="ArrowUp"?(Ne?le(vt,!0):Ue({y:dt?-10:-1}),ve.preventDefault()):ve.key==="ArrowDown"&&(Ne?le(vt,!1):Ue({y:dt?10:1}),ve.preventDefault())},children:[fe,bt]})})})})),rl=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}},yf=(e,t=!0)=>{const n=[],o=t?"x":"y",r=t?"y":"x",i=t?"width":"height";let l=0,c=Number.MAX_SAFE_INTEGER,s=0;for(let f=0;f<e.length;f++){const p=e[f],m=p.getBounds();l+=m[i],c=Math.min(m[o],c),s=Math.max(m[o]+m[i],s),n.push({bounds:m,movable:p})}const u=(s-c-l)/(e.length-1);n.sort((f,p)=>{const m=f.bounds[o],g=p.bounds[o];return m!==g?m-g:f.bounds[r]-p.bounds[r]});const h=new Map;h.set(n[0].movable,n[0].bounds);for(let f=1;f<n.length-1;f++){const p=n[f-1].bounds,m={...n[f].bounds};m[o]=p[o]+p[i]+u,n[f].bounds=m,h.set(n[f].movable,m)}return h.set(n[n.length-1].movable,n[n.length-1].bounds),h},PR=d.memo(d.forwardRef((e,t)=>{const{children:n,disabled:o,description:r,view:i,isDragging:l,onHide:c,onShow:s,...u}=e;d.useEffect(()=>{},[r]);const h=Gr(t,()=>({isEmptyFrame:()=>!0}),[]),[f,{height:p,width:m}]=q0();return a.jsx("div",{...u,ref:Xl([h,f]),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})})})})),AR=d.memo(d.forwardRef((e,t)=>{const{view:n,sheet:o,movableProps:r,renderMovable:i,commands:l,target:c,notifier:s,onRepeatCommandChange:u}=e,h=function(p){const{movables:m,movablesView:g,transactional:x,commands:y,target:w,onRepeatCommandChange:b,notifier:C}=p,_=U0();d.useRef(_.getMode()).current=_.getMode();const E=Be(async(R,A,D=null,L=!0)=>{const V=async()=>{const W=await Promise.resolve(C?.showBusy?.(R.label()));try{await A();const P=D??R?.label?.();if(b){let U=null;R&&P!==!1&&(U=new At(R.key(),w,{label:P,description:P},V)),b(U)}W?.(),L&&_.setMode(null)}catch(P){W?.(),C?.showError?.(P)}};await V()},[b,C]),[M,j]=d.useReducer(R=>R+1,0),F=Be((R,A,D)=>{if(!g)return;const L=g.getMovableSelection();if(L.length===0)return;let V="Drawings";if(L.length===1){const P=L[0];V=N.TextUtils.capitalize(P.getContent().getType())??"Drawing"}const W=`${R.label()} ${V}`;E(R,()=>{let P=null;x&&(P=x.beginCommit(W));const U=g.getMovableSelection();if(U.length===0)return;const X=D?.(U);for(let ee=0;ee<U.length;ee++){const H=U[ee];A(H,X)}P?.commit()})},[g,x]),[k,O]=d.useState(g.getMovableSelection()[0]??null),[S,v]=d.useState(!k||k?.isProtected()),I=d.useMemo(()=>[new Ve("moveToFront",w,{label:"Bring to Front",description:"Move to the front of all of the other drawings.",shortcut:{key:"BracketRight",modifiers:[yt,Ln]}},function(){F(this,R=>{R.moveToFront()})}),new Ve("moveForward",w,{label:"Bring Forward",description:"Move forward one layer in the z order.",shortcut:{key:"BracketRight",modifiers:[yt]}},function(){F(this,R=>{R.moveForward()})}),new Ve("moveToBack",w,{label:"Send to Back",description:"Move to the back of all of the other drawings.",shortcut:{key:"BracketLeft",modifiers:[yt,Ln]}},function(){F(this,R=>{R.moveToBack()})}),new Ve("moveBackward",w,{label:"Send Backward",description:"Move backwards one layer in the z order.",shortcut:{key:"BracketLeft",modifiers:[yt]}},function(){F(this,R=>{R.moveBackward()})}),new Ve("toggleLockAspectRatio",w,{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 Ve("formatAnchorTypeTwoCell",w,{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 Ve("formatAnchorTypeOneCell",w,{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 Ve("formatAnchorTypeAbsolute",w,{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 Ve("formatDrawAlignLeft",w,{label:"Align Left",description:"Align the selected drawings to the left."},function(){F(this,(R,A)=>{R.setBounds({x:A.x})},rl)}),new Ve("formatDrawAlignCenter",w,{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})},rl)}),new Ve("formatDrawAlignRight",w,{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})},rl)}),new Ve("formatDrawAlignTop",w,{label:"Align Top",description:"Align the selected drawings to the top."},function(){F(this,(R,A)=>{R.setBounds({y:A.y})},rl)}),new Ve("formatDrawAlignMiddle",w,{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})},rl)}),new Ve("formatDrawAlignBottom",w,{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})},rl)}),new Ve("formatDrawDistributeHorz",w,{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=>yf(R))}),new Ve("formatDrawDistributeVert",w,{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=>yf(R,!1))}),new Ve("formatDrawFlipHorz",w,{label:"Flip Horizontally",description:"Flip the selected drawings horizontally."}),new Ve("formatDrawFlipVert",w,{label:"Flip Vertically",description:"Flip the selected drawings vertically."}),new Ve("formatDrawGroup",w,{label:"Group",description:"Group the selected drawings into a single drawing."}),new Ve("formatDrawUngroup",w,{label:"Ungroup",description:"Break the group of a drawing into individual drawings."}),new Ve("formatDrawSwapShapes",w,{label:"Swap Shapes",description:"Swap the positions of the swap."}),new Ve("formatDrawSwapShapesHorz",w,{label:"Swap Shapes Horizontally",description:"Swap the positions of the swap horizontally."}),new Ve("formatDrawSwapShapesVert",w,{label:"Swap Shapes Vertically",description:"Swap the positions of the swap vertically."})],[g,k]);d.useEffect(()=>{},[_]);const T=d.useMemo(()=>{let R=null;return R=y?y.createChildGroup(w,"movable",!1):new Kl(w,"movable"),R.addCommands(I,!0),R},[y,I]);return Zt(k,{onAnyChange:()=>{T.getCommand("formatAnchorTypeTwoCell").update({state:k?.getAnchorType()===N.IAnchored.Type.TwoCell}),T.getCommand("formatAnchorTypeOneCell").update({state:k?.getAnchorType()===N.IAnchored.Type.OneCell}),T.getCommand("formatAnchorTypeAbsolute").update({state:k?.getAnchorType()===N.IAnchored.Type.Absolute}),T.getCommand("formatAnchorTypeAbsolute").update({state:k?.getAnchorType()===N.IAnchored.Type.Absolute}),T.getCommand("toggleLockAspectRatio").update({state:k?.isLockAspectRatio()})},onProtectedChange:R=>{v(R.isProtected())},onDelete:()=>{}}),Zt(g,{onMovableSelectionChange:()=>{const R=g.getMovableSelection()[0]??null;O(R),v(!R||R.isProtected()),j()}}),Zt(m,{onCollectionChange:()=>{j()}}),d.useEffect(()=>{const R={disabled:S};T.getCommand("formatAnchorTypeTwoCell").update(R),T.getCommand("formatAnchorTypeOneCell").update(R),T.getCommand("formatAnchorTypeAbsolute").update(R),T.getCommand("toggleLockAspectRatio").update(R);const A=m.getCount(),D=g.getMovableSelection(),L=S||A<=1||D.length===0;let V={disabled:L},W=V;if(!L&&D.length===1){const X=D[0];X.getZIndex()===0&&(V={disabled:!0}),X.getZIndex()===A-1&&(W={disabled:!0})}T.getCommand("moveToFront").update(W),T.getCommand("moveForward").update(W),T.getCommand("moveToBack").update(V),T.getCommand("moveBackward").update(V);const P={disabled:S||D.length<=1};T.getCommand("formatDrawAlignLeft").update(P),T.getCommand("formatDrawAlignCenter").update(P),T.getCommand("formatDrawAlignRight").update(P),T.getCommand("formatDrawAlignTop").update(P),T.getCommand("formatDrawAlignMiddle").update(P),T.getCommand("formatDrawAlignBottom").update(P),T.getCommand("formatDrawFlipHorz").update(P),T.getCommand("formatDrawFlipVert").update(P),T.getCommand("formatDrawGroup").update(P),T.getCommand("formatDrawUngroup").update(P),T.getCommand("formatDrawSwapShapes").update(P),T.getCommand("formatDrawSwapShapesHorz").update(P),T.getCommand("formatDrawSwapShapesVert").update(P);const U={disabled:S||D.length<=2};T.getCommand("formatDrawDistributeHorz").update(U),T.getCommand("formatDrawDistributeVert").update(U)},[M,S,M]),T}({movables:o.getMovables(),movablesView:o?.getView(),transactional:o,onRepeatCommandChange:u,commands:l,target:c,notifier:s});d.useEffect(()=>{n?.getStage()},[n?.getStage()]);const f=d.useMemo(()=>a.jsx(OR,{ref:t,view:n,movables:o.getMovables(),disableResize:!o.getProtection().isObjectsAllowed(),disableDrag:!o.getProtection().isObjectsAllowed(),movablesView:o.getView(),transactional:o,renderMovable:i,...r,onFocus:()=>{h.activate(),r?.onFocus?.()}},"movable-area"),[o,r,l,h]);return f&&n?f:null})),FR=d.memo(d.forwardRef((e,t)=>{const{view:n,sheet:o,gridStyle:r,getCellEditor:i,showProtectedError:l,setEditingCoords:c,commands:s,notifier:u=Fx}=e,h=U0(),[f,p]=d.useState(null),[m,g]=d.useState(null),[x,y]=d.useState(null),[w,b]=d.useState(null),[C,_]=d.useState(null);d.useLayoutEffect(()=>{if(x===null)return b(null),void _(null);const D=()=>{const L=o.getRange(x).getCell(),V=L.getStyle();let W,P=V.getFill()?.toCSS(r.body.darkMode);P.background!=="none"&&P.background!=="transparent"||(P=o.getStyles().getNormal().getFill().toCSS(r.body.darkMode)),P.background!=="none"&&P.background!=="transparent"||(P={background:r.body.fill}),b({style:P}),L&&!L.getFormula()&&(W=L?.getRenderHorizontalAlignment()),_(W??mM)};return D(),o.getRange(x).addListener(()=>{D()})},[o,x,r?.body]);const E=Be(()=>{let D=m.editState.dirty??"";if(m.editState.dirty!==void 0){const L=N.TextUtils.clampString(D);try{const V=m.sheet.getRange(m.coords),W=`Typing '${L}' into ${V.toString()}`;return V.setValue(D,{description:W,autoFit:!0}),y(null),g(null),h.setMode(null),c(null),!0}catch(V){throw u.showError(new Error(`Unable to enter '${L}'.`,{cause:V})),V}}},[o,m,u]),M=Be(D=>o.getRange(D).getCell().getExtrusions()??_o.cellToRange(D),[o]);Be(D=>{let L=N.IRange.Orientation.Row,V=!1;D!==N.IRange.Direction.Up&&D!==N.IRange.Direction.Down||(L=N.IRange.Orientation.Column),D!==N.IRange.Direction.Left&&D!==N.IRange.Direction.Up||(V=!0),o.getSelection().traverse(L,V)},[o]);const j=d.useCallback((D,L)=>{if(i)return i(D,L);if(!o)return null;const{ref:V,...W}=D;return a.jsx(qx,{ref:V,...W,sheet:o,bodyStyle:r?.body,activeCoords:L,commands:s,onChangeEdit:P=>{const U={sheet:o,coords:L,editState:P};h.setMode(X=>({...X,description:U.editState.editMode?"Edit":"Enter",args:{...X?.args,stateAndCoords:U}}))},editState:m.editState})},[o,w,i,m,x]),{overlay:F,startEdit:k,submitEdit:O,cancelEdit:S,onKeyboardEventNative:v,onPointerEventNative:I}=Mj({view:n,activeCoords:f,getCellEditor:j,canEdit:()=>{const D=o.getProtection();if(D.isReadOnly())return!1;const L=D.isLocked();return L&&l(),!L},onBeforeStartEdit:D=>{const L=Zx(()=>o.getRange(D).getCell()),V={sheet:o,coords:D,editState:Object.freeze(L)};h.setMode({key:"edit",args:{stateAndCoords:V}}),g(V)},onStartEdit:D=>{y(D),c(D)},onSubmitEdit:E,onCancelEdit:D=>{y(null),g(null),h.setMode(null),c(null)},onDoneEdit:D=>{h.setMode(null)},containerProps:w,borderStrokeFill:r.selection?.strokeFill,borderStrokeWidth:o?.getSelection().getCoords().ranges?.length>1?1:2,alignment:C,getRangeCoords:M});Zt(o.getSelection(),{onChange(D){p(o.getSelection().getCoords().cell)}});const T=Be(D=>{I(D),x&&O()},[I,S,x]),R=d.useCallback(D=>{I(D)},[I]),A=d.useCallback(D=>{v(D)},[v]);return d.useEffect(()=>{const D=n?.getStage();if(D)return D.addEventListener("pointerdown",T),D.addEventListener("dblclick",R),D.addEventListener("keydown",A),()=>{D.removeEventListener("pointerdown",T),D.removeEventListener("dblclick",R),D.removeEventListener("keydown",A)}},[n?.getStage()]),d.useEffect(()=>{const D=h.getMode(),L=D?.key;L==="edit"||L==="enter"?m?D.args?.cancel?S():D.args?.submit?O():g(D.args?.stateAndCoords):k(D.args?.start):x&&S()},[h]),F(n,t)})),Jx="white",Qx="black",zR=`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='${Qx}' fill='${Jx}'/%3E%3C/g%3E%3C/svg%3E%0A") 15 8, pointer`,BR=`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='${Qx}' fill='${Jx}'/%3E%3C/g%3E%3C/svg%3E%0A") 12 12, pointer`,NR=d.memo(d.forwardRef((e,t)=>{const{view:n,sheet:o}=e,[r,i]=d.useState(o.getTables().getCount()>0),[l,c]=d.useState(null),[s,u]=d.useState(null),[h,f]=d.useState(null),[p,m]=d.useState(null),g=Be(()=>{if(o.getTables().getCount()>0){i(!0);const E=o.getTables().search({address:n.getVisibleRangeCoords()});c(E.length>0?E:null)}else i(!1),c(null)},[o,n]),x=Be(E=>{E.preventDefault(),E.stopPropagation();const M=n.getCellCoordsFromClient(E.clientX,E.clientY),j=o.getTables().search({address:M});j.length===1&&j[0].select()},[n,o]),y=Be(E=>{E.preventDefault(),E.stopPropagation();const M=n.getCellCoordsFromClient(E.clientX,E.clientY),j=o.getTables().search({address:M});if(j.length===1){const F=j[0].getRange().getCoords(),k={colStart:F.colStart,rowStart:M.rowIndex,colEnd:F.colEnd,rowEnd:M.rowIndex};o.getRange(k).select()}},[n,o]),w=Be(()=>{if(!r)return;const E=o.getTables().search({address:n.getVisibleRangeCoords()});c(E.length>0?E:null)},[o,r,n]);Zt(o?.getSelection(),{onChange(E){u(o.getSelection().getCoords().cell)}}),Zt(h,{onAnyChange(E){g(),w()}}),Zt(p,{onAnyChange(E){w()}}),Zt(o,{onTablesChange(E){g(),w()},onInvalidated(E){g(),w()}});const b=d.useMemo(()=>Ht.debounce(Ht.throttle(w,300),300),[]);d.useEffect(()=>{b()},[n]),d.useEffect(()=>{let E=null;if(l)for(let M=0;M<l.length&&!E;M++){const j=l[M],F=j.getRange().getCoords();N.CoordUtils.isCellWithinRange(s,F)&&(E=j)}f(E)},[s,l]);const C=Be(E=>{let M=null;if(l)for(let j=0;j<l.length;j++){const F=l[j],k=F.getRange().getCoords();let O=n.getRangeCoordsBounds(k);const S=n.getRelativePointFromClient(E.clientX,E.clientY),v=S.x,I=S.y;if(v>=O.x&&v<=O.x+O.width&&I>=O.y&&I<=O.y+O.height){const T=n.getViewportSize();v<=0||I<=0||v>=T.width||I>=T.height||(M=F)}}m(M)},[n,l]);if(d.useEffect(()=>{const E=n?.getStage();if(E&&l)return E.addEventListener("mousemove",C),E.addEventListener("mouseleave",C),()=>{E.removeEventListener("mousemove",C),E.removeEventListener("mouseleave",C)}},[l,n?.getStage()]),!n||!l||l.length===0)return null;const _=[];for(let E=0;E<l.length;E++){const M=l[E];if(M.isClosed())continue;const j=M===p,F=M===h,k=M.getRange().getCoords(),O=n.getRangeCoordsBounds(k);let S;if(j||F){const v=M.getStyle().getProperties(),I=v.headerRow?.fill?.background??v.wholeTable?.border?.top?.color?.toString();if(I&&o){const T=o.getStyles().parseColor(I);T&&(S=T.toCSS())}S||(S="var(--sxl-app-color-shadow, rgba(0,0,0,.15))")}_.push(a.jsx("div",{style:{position:"absolute",left:O.x,top:O.y,width:Math.min(16,O.width),height:O.height,pointerEvents:"all",cursor:zR},onMouseDown:y},`table-select-row-${M.getName()}`)),_.push(a.jsx("div",{style:{position:"absolute",left:O.x,top:O.y,width:Math.min(16,O.width),height:Math.min(16,O.height),pointerEvents:"all",cursor:BR},onMouseDown:x},`table-select-${M.getName()}`)),_.push(a.jsx(_d,{x:O.x,y:O.y,width:O.width,height:O.height,range:k,strokeWidth:F?.5:0,stroke:S??"var(--sxl-app-color-grey, grey)",style:{willChange:"box-shadow",transition:"box-shadow 80ms ease-in-out",boxShadow:j?`${S} 0px 0px 1px 1px`:void 0}},`table-outline-${M.getName()}`))}return _})),VR=d.memo(d.forwardRef((e,t)=>{const{view:n,sheet:o,animationTime:r=60}=e,[i,l]=d.useState(null),[c,s]=d.useState(null),u=d.useRef(null),h=Be(()=>{const y=o.getSelectedCell(),w=y.getSpill()?.getCoords()??null;_o.isEqualRanges(w,i)||(s(w?{transition:i?"move":"in",bounds:n.getRangeCoordsBounds(w),coords:w}:{transition:"out",bounds:n.getRangeCoordsBounds(i),coords:i}),l(w))},[o,n,i]);d.useEffect(()=>(u.current&&(clearTimeout(u.current),u.current=null),c&&(u.current=setTimeout(()=>{s(null),u.current=null},r)),()=>{u.current&&(clearTimeout(u.current),u.current=null)}),[c,r]);const f=d.useMemo(()=>Ht.debounce(Ht.throttle(h,80),80),[]);if(Zt(o?.getSelection(),{onChange(y){f()}}),Zt(o,{onSpillsChange(y){h()},onInvalidated(y){h()}}),!n||!i&&!c)return null;const p=o.getRange(i).getValue()instanceof N.FormulaError.Spill,m=[];let g=c?.bounds??n.getRangeCoordsBounds(i);if(c&&!Ht.isEqualBounds(c.bounds,n.getRangeCoordsBounds(c.coords))&&s(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(_d,{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:p?"6 3":void 0,opacity:c?.transition==="out"?0:1,transition:c?.transition?c.transition==="in"||c.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})),HR={position:"absolute",top:0,left:0,bottom:0,right:0},bf=(e,t)=>{const n={...e},o=t?.getNormal().getFont(),r=o?.toCSS(),i={text:{fontFamily:r?.fontFamily,fontSize:o?.getSize()}},l=n.body=Ht.mergeContentful(e.body,i);return n.body=Ht.mergeContentful({fill:"#fff",strokeFill:"#dad8d6",strokeWidth:.5,text:{fontWeight:"400",fontStyle:"normal",fill:"#040404"}},l),n.buttonSurface=Ht.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=Ht.mergeContentful(n.body,{edgeStrokeFill:"rgb(171, 171, 171)",fill:"#f0f0f0",strokeShadow:void 0,edgeStrokeWidth:1},e.header),n.header=Ht.mergeContentful(n.header,i),n.headerSelect=Ht.mergeContentful(n.header,{fill:"rgba(16, 124, 65, 0.1)",text:{fill:n.headerSelection.strokeFill,fontWeight:"700"}},e.headerSelect),n.headerSelect=Ht.mergeContentful(n.headerSelect,i),n.headerSelectAll=Ht.mergeContentful(n.headerSelect,{},e.headerSelectAll),n.headerSelectAll=Ht.mergeContentful(n.headerSelectAll,i),n},$R={fireOnModelChange:!1},wf={},ey=d.memo(d.forwardRef((e,t)=>{const{sheet:n,gridStyle:o=wf,headersStyle:r=wf,onSheetContextMenu:i,showColumnHeaders:l,columnHeaderProps:c,showRowHeaders:s,rowHeaderProps:u,showScrollbars:h=!0,scrollPaneProps:f,onViewportChange:p,commands:m,onRepeatCommandChange:g,onMoveCell:x,overlays:y,renderMovable:w,viewportComponent:b,onElementLoad:C,getCellEditor:_,onFocus:E,onBlur:M,style:j=bn.EmptyCssProperties,notifier:F,onShowTooltip:k,onShowColumnTooltip:O,onShowRowTooltip:S,onCloseTooltip:v,gridProps:I,cellRenderProps:T,...R}=e;if(d.useEffect(()=>{N.LicenseManager._validate(!0)},[]),!n)throw new Error("ISheet must be provided.");const[A,D]=d.useReducer(Re=>Re+1,0),[L,{width:V,height:W}]=q0(),P=Be(k,[k]),U=Be(O,[O]),X=Be(S,[S]),ee=Be(v,[v]),H=d.useRef(!1);d.useLayoutEffect(()=>{H.current=!0},[n]);const $=n?.getStyles(),z=d.useMemo(()=>bf(o,$),[o,$]),q=d.useMemo(()=>bf(r,$),[r,$]),{body:Z={},buttonSurface:Q={}}=z,{header:Y={},headerSelect:te={},headerSelectAll:ie={}}=q,fe=d.useRef(null),[J,ae]=d.useState(()=>n?.getView()),Ce=(J?.getZoomScale()??100)/100,Me=d.useMemo(()=>({vertical:J.isShowColumnGridlines()&&Ce>=.4,horizontal:J.isShowRowGridlines()&&Ce>=.4}),[J?.isShowColumnGridlines(),J?.isShowRowGridlines(),Ce]),re=d.useMemo(()=>{if(J?.getGridLineColor())return{strokeDasharray:"1,1"}},[J?.getGridLineColor(),z]),oe=l??J?.isShowColumnHeaders(),ue=s??J?.isShowRowHeaders(),[De,ze]=d.useState({width:0,height:0}),mt=d.useMemo(()=>{let Re=40,se=20;const st=n?.getStyles().getNormal().getFont();if(De.width>0&&De.height>0){const gt=st?.toCSS()?.fontFamily??z.header.text.fontFamily,G=st?.getSize()??z.header.text.fontSize,K=N.IFont.getSharedMeasurer()(""+De.height,Math.ceil(G*N.IFont.getDeviceScale()),gt);Re=K.width,se=K.lineHeight}return{width:Math.round(Re+5),height:Math.round(se+3)}},[De,z?.header.text,n]),bt=ue?Ce*mt.width:Y.edgeStrokeWidth,ve=oe?Ce*mt.height:Y.edgeStrokeWidth,dt=Math.max(V,(n?.getColumnHeaders().getDefaultSize()??mt.width)+bt+1),xt=Math.max(W,(n?.getRowHeaders().getDefaultSize()??mt.height)+ve+1),Ne=d.useRef(new Map),vt=d.useRef(null),Xe=()=>({getColOffset:Re=>n.getColumnHeaders().findOffset(Re),getColIndex:Re=>n.getColumnHeaders().findIndex(Re),getRowOffset:Re=>n.getRowHeaders().findOffset(Re),getRowIndex:Re=>n.getRowHeaders().findIndex(Re)}),[le,Ue]=d.useState(()=>Xe()),[ye,Se]=d.useState(!1),[ne,be]=d.useState(null),ke=!0,me=z.selection?.strokeFill,Ie=d.useCallback(()=>zo.current,[]),[we,xe]=d.useState(),Ee=Be(Re=>{xe(Re),n&&n.getView()&&n.getView().setTopLeft(Re?{left:Re.left,top:Re.top}:null),p?.(Re)},[n,p]),Fe=d.useRef(null);d.useEffect(()=>{if(!we||!n)return;const Re=n.getRangeAtBounds({x:we.left,y:we.top,width:we.width,height:we.height});Fe.current?.(),Fe.current=Re.addListener(()=>{const se=Re.getCoords();fe?.current?.invalidate(se)})},[we,n]);const[ft,ut]=d.useState(()=>n?.getView().getTopLeft()),Pe=Be(Re=>{const se=_o.cellToRange(Re);if(n.isClosed())return se;const st=n.getRange(se,{excludeHidden:!0}).getMerges();return st.length===0?se:st[0]},[n]),Qe=Re=>{if(!Re||Re.coords.colIndex===0&&Re.coords.rowIndex===0)return null;const se={};return Re.coords.colIndex>0&&(se[fo.Left]={index:Re.coords.colIndex,scrollOffset:Re.topLeft.left}),Re.coords.rowIndex>0&&(se[fo.Top]={index:Re.coords.rowIndex,scrollOffset:Re.topLeft.top}),se},[nt,Ke]=d.useState(()=>Qe(n.getView().getFreezePanes())),rt=U0(),Bt=d.useCallback(()=>fe.current,[]),lt=Be(Re=>{rt.setMode(se=>se?.key==="edit"?{...se,args:{...se.args}}:{key:"edit",args:{stateAndCoords:null,start:Re}})},[]),Jt=Be(()=>we,[we]),Wt=function(Re){const{sheet:se,onRepeatCommandChange:st,bodyStyle:gt,commands:G,target:K,notifier:ce,onStartEdit:pe,getViewport:Le}=Re,[Ge,He]=d.useState(null),[_t,It]=d.useState(null),jt=d.useRef(null),Pt=Be(pe,[pe]),un=Be(Le,[Le]),[Dt,Ot]=d.useState(),[Bn,ct]=d.useState(()=>se?.getStyles().parseColor(N.IColor.Scheme.Bg2)),[Gt,no]=d.useState(()=>se?.getStyles().getNormal().getFont().getFill()),Nt=U0();d.useRef(Nt.getMode()).current=Nt.getMode();const on=$x(),[Fn,pr]=d.useState(Ht.EmptyArray),Li=d.useCallback(()=>{if(jt.current!==se)return;const de=se.getSelectedRanges();let Oe=null;Fn.length>0&&_o.isCellWithinRange(Ge,Fn[0].getRange().getCoords())&&(Oe=Fn[0]);const Ze=se?.getSelectedCell(),Te=Ze?.getCoords()??null;ao.unstable_batchedUpdates(()=>{Pd(Oe),He(Te),It(de)})},[se,Fn,_t,Ge]),Xs=d.useCallback(Ht.debounce(Li,210),[Li]);d.useEffect(()=>{jt.current=se,Li()},[se]);const Po=Be(()=>se.getRange(Ge).getCell(),[se,Ge]),go=Be(async(de,Oe,Ze=null,Te=!1,Ye=!0)=>{const ot=de?.label?.(),rn=async()=>{const Yt=await Promise.resolve(Ye&&ce?.showBusy?.(ot??"Busy..."));try{await se.doBatch(async()=>Oe(se),ot),Te&&Nt.setMode(null),Yt&&Yt()}catch(qn){if(Yt&&Yt(),!qn)return;ce?.showError?.(qn)}},ln=[];let qt=!1;const hn=async()=>(ln.push(rn),(async()=>{if(!qt){for(qt=!0;ln.length>0;){const Yt=ln.shift();Yt&&await Yt()}qt=!1}})());if(st){let Yt=null;if(Ze!==!1&&de){const qn=Ze??ot;Yt=new At(de.key(),K,{label:qn,description:qn},hn)}st(Yt)}return hn()},[se,st,ce]),Ft=Be((de,Oe,Ze=!1,Te)=>go(de,Ye=>{const ot=Ye.getSelectedRanges();Ze&&ot.updateStyle(null,Te),ot.updateStyle(Oe,Te),ot.autoFit({expandOnly:N.IRange.Orientation.Column,minContent:!0,skipCustomSize:!0})}),[se]),hh=Be((de,Oe,Ze)=>{go(de,Te=>{let Ye=Oe;(Ze||Oe?.address)&&(Ye=Ye??{},!Ze&&Oe?.address?.startsWith("#")?Ze=Oe?.address.substring(1):Ze&&(Ye.displayText=Ze)),Te.getSelectedRange().setHyperlink(Ye)})},[se]),ph=Be((de,Oe)=>{go(de,Ze=>{Ze.getSelectedRange().setComments(Oe)})},[se]),Ql=Be((de,Oe)=>{go(de,Ze=>{Ze.getSelectedRanges().clear(Oe)})},[se]),u0=Be(async(de,Oe,Ze=!1,Te=!1)=>go(de,async Ye=>{let ot=Ye.getSelectedRanges();Ze&&(Oe===N.IRange.Orientation.Row?ot=ot.getEntireRows(Te):Oe===N.IRange.Orientation.Column&&(ot=ot.getEntireColumns(Te)));let rn=null;const ln=Nt.getMode()?.key;if(ln==="copy"||ln==="cut"){const qt=await on.getClipboard().readReference();qt&&qt.getItemType()==="range"&&(rn=qt.getItem(),rn.getCoords()||(rn=null))}if(rn){const qt=await ot.insertFrom(rn,{...rn.getMarkOptions(),orientation:Oe,autoSelect:!0});!qt||qt.isEntireRows()||qt.isEntireColumns()||qt.autoFit({orientations:N.IRange.Orientations.Row,minContent:!0}),Nt.setMode(null)}else ot.insert(Oe,{autoSelect:!0})},"Insert Cells",!1),[Nt]),[yi,Pd]=d.useState(null),dw=Be(de=>se.getStyles().setDefaultTableStyle(de),[se]),uw=Be(de=>{se.getStyles().getTableStyle(de)?.delete()},[se]),ea=Be((de,Oe)=>{go(de,async Ze=>{const Te=Ze.getSelectedRange(),Ye=Ze.getSelectedCell().getCoords();let ot=null,rn=0;const ln=Ye.rowIndex>0?Ze.getRange({rowIndex:Ye.rowIndex,colIndex:Ye.colIndex}).getExtended(N.IRange.Direction.Up):null;ln&&Ze.getRange({colStart:Ye.colIndex,rowStart:ln.getCoords().rowStart,colEnd:Ye.colIndex,rowEnd:ln.getCoords().rowStart}).isContentful()&&(ot=N.IRange.Direction.Up,rn=Ye.rowIndex-ln.getCoords().rowEnd);const qt=Ye.colIndex>0?Ze.getRange({rowIndex:Ye.rowIndex,colIndex:Ye.colIndex-1}).getExtended(N.IRange.Direction.Left):null;if(qt&&Ze.getRange({colStart:qt.getCoords().colStart,rowStart:Ye.rowIndex,colEnd:qt.getCoords().colStart,rowEnd:Ye.rowIndex}).isContentful()){const Yt=Ye.colIndex-qt.getCoords().colEnd;(Yt<rn||!ot)&&(ot=N.IRange.Direction.Left,rn=Yt)}let hn=null;if(ot===N.IRange.Direction.Up){if(hn={...ln.getCoords()},(hn.rowEnd===Ye.rowIndex||!Ze.getRange({colIndex:Ye.colIndex,rowIndex:Ye.rowIndex-1}).isContentful())&&hn.rowStart>0&&Ze.getRange({colIndex:Ye.colIndex,rowIndex:hn.rowStart-1}).isContentful()){const Yt=ln.getExtended(N.IRange.Direction.Up);hn={colStart:Ye.colIndex,rowStart:Yt.getCoords().rowStart,colEnd:Ye.colIndex,rowEnd:ln.getCoords().rowEnd}}hn.rowEnd=Ye.rowIndex-1}else if(ot===N.IRange.Direction.Left){if(hn={...qt.getCoords()},(hn.colEnd===Ye.colIndex||!Ze.getRange({colIndex:Ye.colIndex-1,rowIndex:Ye.rowIndex}).isContentful())&&hn.colStart>0&&Ze.getRange({colIndex:hn.colStart-1,rowIndex:Ye.rowIndex}).isContentful()){const Yt=qt.getExtended(N.IRange.Direction.Left);hn={colStart:Yt.getCoords().colStart,rowStart:Ye.rowIndex,colEnd:Yt.getCoords().colEnd,rowEnd:Ye.rowIndex}}hn.colEnd=Ye.colIndex-1}if(Te.size!==1&&ot){const Yt=Te.getCoords(),qn=Te.startIncrementalUpdates({orientation:N.IRange.Orientation.Column}),so={...hn},Zo=Yt.rowStart,Yr=Yt.rowEnd,Jr=Yt.colStart,Qr=Yt.colEnd,fr=ot===N.IRange.Direction.Up;for(let No=Jr;No<=Qr;No++){so.colStart=fr?No:hn.colStart+(No-Jr),so.colEnd=fr?No:hn.colEnd+(No-Jr);for(let xo=Zo;xo<=Yr;xo++){so.rowStart=fr?hn.rowStart+(xo-Zo):xo,so.rowEnd=fr?hn.rowEnd+(xo-Zo):xo;const Pr=Ze.getRange(so).toString();qn.pushAt(xo,No,`=${Oe}(${Pr})`)}}qn.apply()}else{const Yt=hn?Ze.getRange(hn).toString():"",qn=`=${Oe}(`;Pt?.({text:`${qn}${Yt})`,editMode:!0,initialSelection:{start:qn.length,end:qn.length+Yt.length}})}},!1)},[se]),Ys=Be((de,Oe,Ze=!1,Te=!0)=>{go(de,async Ye=>{let ot=null;if(yi)return void yi.updateStyleOptions(Oe);{const qt=Ye.getSelectedRanges().getFixed(!0),hn=Ye.getSelectedRange().getDefaultSortCriteria();let Yt={ranges:qt,hasHeader:hn?.options?.hasHeader??!1};ot=Te?new Promise((qn,so)=>{const Zo={tableOptions:Yt,onCancel:()=>{so()},onDone:Yr=>{qn(Yr)},context:{getNames:()=>Ye.getNames()}};ce.showWindow?.("tableNew",Zo)}):{option:"Ok",tableOptions:Yt}}const rn=await Promise.resolve(ot);if(rn?.option!=="Ok")throw null;const ln=await Promise.resolve(ce?.showBusy?.(de.label()));try{await Ye.getTables().add(rn.tableOptions.ranges.at(0),{styleName:Oe?.name,clearFormatting:Ze,hasHeader:rn.tableOptions.hasHeader}).getRange().select()}catch(qt){ln(),ce?.showError?.(qt)}ln()},!1,!0,!1)},[yi]),fh=Be(()=>gt,[gt]),mh=Be(de=>({styles:()=>se.getStyles(),table:()=>de,bodyStyle:fh,getNames:()=>se.getNames()}),[se]),hw=Be(async(de,Oe,Ze,Te=!0)=>{let Ye=null;if(!Oe){let ot=se.getSelectedRange();ot.size===1&&(ot=ot.getSurrounding());let rn=se.getTables().search({address:se.getSelectedRange()});rn.length>0&&(Oe=rn[0]),await ot.select()}if(Oe){if(Te){try{Ze&&await Oe.select()}catch{}Ye=new Promise(async(ot,rn)=>{de.update({context:mh(Oe)});const ln={command:de,commands:he,notifier:ce,onDone:hn=>{ot(hn)}},qt=await ce.showWindow?.("tableDetails",ln,{disableAutoDestroy:!0});setTimeout(()=>{qt.focus()},180)})}Promise.resolve(Ye).then(ot=>{},ot=>{ce?.showError?.(ot)})}},[ce]),gh=Be(async(de,Oe,Ze=!1)=>{let Te=null;if(Oe)Oe.isITable?Te=Oe:Oe.getValue()&&(Te=Oe.getValue());else{const Ye=se.getTables().search({address:se.getSelectedRange()});Ye.length>0&&(Te=Ye[0])}if(Te){if(!Ze){const Ye=Te.getRange().getCoords(),ot=(Ye.colEnd-Ye.colStart+1)*(Ye.rowEnd-Ye.rowStart+1);if(ot>1e4&&await ce?.showOptions({title:"Confirm",description:`Converting a table to range with '${ot}' cells will set a large number of cell styles and may affect performance.
|
|
70
|
+
Continue?`,options:["Convert","Cancel"],defaultOption:"Convert"})!=="Convert")return}go(de,async()=>{Ze?Te.delete():Te.convertToRange()},!1,!0)}},[ce]),Ad=Be((de,Oe,Ze)=>{go(de,async Te=>{let Ye=Te.getSelectedRanges();if(Ye.getCount()>1)throw new Error("Can not sort on multiple cell ranges. Please select a single range and try again.");let ot=Ye.at(0);ot.size===1&&(ot=ot.getSurrounding());const rn=Te.getSelection().getCoords().cell;let ln=ot.getDefaultSortCriteria(N.IRange.Orientation.Row,rn);if(!ln){if(Ze)throw new Error("Invalid sort selection. Sort requires a single range with data.");return}let qt=ln.options;if(Ze&&(qt=new Promise((Yt,qn)=>{const so={range:ot,options:ln.options,cell:rn,onCancel:()=>{qn()},onDone:Zo=>{Zo?Yt(Zo.options):qn()}};ce.showWindow?.("sort",so)})),qt=await Promise.resolve(qt),!qt)return;const hn=await Promise.resolve(ce?.showBusy?.(de.label()));try{ot.doBatch(()=>{const Yt={...qt,...Oe};ot.sort(Yt),ot.autoFit({orientations:Yt?.orientation===N.IRange.Orientation.Column?N.IRange.Orientations.Column:N.IRange.Orientations.Row,skipCustomSize:!0,minContent:!0})},de?.label?.())}catch(Yt){hn(),ce?.showError?.(Yt)}hn()},!1,!1,!1)},[ce]),pw=Be(()=>{console.log("compactedSelection");const de=se.getSelection().getCoords(),Oe=se.getSelectedRanges().getFlattened().getCoords(),Ze=(()=>{const ot=new Blob(["console.log('hello from worker');"],{type:"application/javascript"}),rn=URL.createObjectURL(ot),ln=new Worker(rn);return URL.revokeObjectURL(rn),ln})();setTimeout(()=>{Ze.terminate(),console.log("Worker terminated")},5e3);let Te=-1;for(let ot=0;Te===-1&&ot<Oe.length;ot++)_o.isCellWithinRange(de.cell,Oe[ot])&&(Te=ot);if(_o.isEqualRangesArrays(de.ranges,Oe))return;const Ye={cell:de.cell,ranges:Oe,rangeIndex:Te};se.getSelection().updateCoords(Ye)},[se]),fw=Be(()=>{console.log("selectComments")},[se]),xh=Be(async(de=!1,Oe=!1)=>{let Ze=null;if(Oe)Ze=se.getEntireRange();else{const Te=se.getSelectedRange();if(Te.isEntireRange()){const Ye=se.getSelection().getCoords().cell,ot=se.getRange(Ye);Ze=ot.getSurrounding(),Ze.isEntireRange()&&(Ze=ot)}else Ze=Te.getSurrounding({contentOnly:de})}Ze&&await Ze.select()},[se]),ta=Be((de,Oe,Ze)=>{go(de,async Te=>{let Ye=Te.getSelectedRanges();Ze&&(Oe===N.IRange.Orientation.Row?Ye=Ye.getEntireRows():Oe===N.IRange.Orientation.Column&&(Ye=Ye.getEntireColumns())),Ye.delete(Oe)},"Delete Cells")},[se]);Be(async de=>{let Oe=null;const Ze=un(),Te=Math.min(Ze.width-8,480),Ye=Math.min(Ze.height-8,288);try{se.getSelectedRanges(),Oe=await se.getMovables().add({bounds:{x:Ze.left+(Ze.width-Te)/2,y:Ze.top+(Ze.height-Ye)/2,width:Te,height:Ye},type:"chart",json:de.template}),Oe.select(),Nt.setMode(null)}catch(ot){ce?.showError?.(ot)}return Oe},[se,ce]);const yh=Be(async(de,Oe,Ze)=>{const Te=await ce?.showBusy?.(de.label());try{const Ye=await se.getMovables().addImage(Oe,{autoSelect:!0,...Ze});return Te(),Nt.setMode(null),Ye}catch(Ye){Te();let ot=Ye;typeof ot!="string"&&(console.warn(Ye),ot="Unable to resolve image."),ce?.showMessage?.(ot,{type:G1})}},[se,ce]),Js=Be((de,Oe)=>{go(de,async Ze=>{const Te=Ze.getSelectedRanges();Te.doBatch(()=>{const Ye=Oe===N.IRange.Direction.Up||Oe===N.IRange.Direction.Down,ot=Te.getCoords().slice().sort(_o.createRangeComparator(Ye?N.IRange.Orientation.Row:N.IRange.Orientation.Column));for(let rn=0;rn<ot.length;rn++){const ln=ot[rn];let qt=ln;const hn=Ze.getRange(qt).getMerges();let Yt=0,qn=0;if(hn.length>0){const so=hn[0];Yt=so.rowEnd-so.rowStart,qn=so.colEnd-so.colStart}Oe===N.IRange.Direction.Left?qt={...ln,colStart:ln.colEnd+qn}:Oe===N.IRange.Direction.Right?qt={...ln,colEnd:ln.colStart+qn}:Oe===N.IRange.Direction.Up?qt={...ln,rowStart:ln.rowEnd+Yt}:Oe===N.IRange.Direction.Down&&(qt={...ln,rowEnd:ln.rowStart+Yt}),Ze.getRange(qt).autoFill(ln,{filler:N.AutoFill.Types.Copy}),Ze.getRange(ln).autoFit({orientations:N.IRange.Orientations.Row,skipCustomSize:!0,minContent:!0})}},{autoSelect:!0,description:de.label()})})},[ce]),mw=Be(()=>{let de=null;const Oe=se.getSelectedCell().getCoords();if(Oe?.rowIndex>0){const Ze=se.getRange({rowIndex:Oe.rowIndex-1,colIndex:Oe.colIndex}).getCell();Ze&&(de=Ze.toTextUnformatted(!0))}Pt?.({text:de})},[se]),[na,gw]=d.useReducer(de=>de+1,0),[Qs,K0]=d.useReducer(de=>de+1,0),bh=d.useMemo(()=>[new Ve("gridlinesToggle",K,{label:"Gridlines",scopedLabels:{view:"Gridlines"},description:"Toggle whether the lines between rows and columns in the sheet are displayed."}),new Ve("sheetViewToggleGridlinesRows",K,{label:"Row Gridlines",scopedLabels:{view:"Row Gridlines",gridlines:"Rows"},description:"Toggle whether the lines between rows in the sheet are displayed."}),new Ve("sheetViewToggleGridlinesColumns",K,{label:"Column Gridlines",scopedLabels:{view:"Columns Gridlines",gridlines:"Columns"},description:"Toggle whether the lines between columns in the sheet are displayed."}),new Ve("sheetViewFormatGridlinesColor",K,{label:"Gridlines Color",description:"Color the rows and column gridlines."}),new Ve("sheetViewToggleShowHeadings",K,{label:"Headings",scopedLabels:{view:"Headings"},description:"Toggle whether the row and column headings are displayed."}),new Ve("sheetViewToggleShowHeadingRows",K,{label:"Row Headings",scopedLabels:{view:"Row Headings",headings:"Rows"},description:"Toggle whether the row headings are displayed."}),new Ve("sheetViewToggleShowHeadingColumns",K,{label:"Column Headings",scopedLabels:{view:"Columns Headings",headings:"Columns"},description:"Toggle whether the column headings are displayed."}),new Ve("sheetViewToggleShowHeadingsNumeric",K,{label:"Numeric Headers",description:"Toggle whether cell headings show numbers or A1 conventions.",shortcut:{key:"h",modifiers:[yt,Ln]}}),new Ve("sheetViewToggleFormulaView",K,{label:"Show Formulas",description:"Toggle whether cells show formula or values.",shortcut:[{key:"`",modifiers:[yt]},{key:"`",modifiers:[yt,Ln]}]}),new Ve("sheetViewToggleShowZeros",K,{label:"Show Zeros",description:"Toggle whether cell with zero value shows '0' or blank."}),new At("selectComments",K,{label:"Select Comments",description:"Select the cells with comments.",shortcut:{key:"O",modifiers:[yt,Ln]}},()=>fw()),new Ve("selectAll",K,{label:"Select All",description:"Select the closest data or the entire sheet if no data is nearby.",shortcut:[{key:"A",modifiers:[yt]},{key:"Space",modifiers:[yt,Ln]}]},(de=!1)=>xh(!1,de)),new At("selectRegion",K,{label:"Select Region",description:"Select the closest data.",shortcut:{key:"*",modifiers:[yt,Ln]}},()=>xh(!0,!1)),new At("breakSelection",K,{label:"Select Visible",description:"Break the selection based on hidden rows and columns.",shortcut:{key:"Semicolon",modifiers:[yt,Ho]}},()=>pw()),new At("formatTextRotate0",K,{label:"No Text Rotation",description:"Remove all text rotation."}),new At("formatTextRotate45",K,{label:"Angle Clockwise",description:"Angle text 45 degrees downward."}),new At("formatTextRotate90",K,{label:"Rotate Text Down",description:"Angle your text so that it aligns with the left."}),new At("formatTextRotate270",K,{label:"Rotate Text Up",description:"Angle your text so that it aligns with the right."}),new At("formatTextRotate315",K,{label:"Angle Counterclockwise",description:"Angle text 45 degrees upward."}),new Ve("formatTextRotateCustom",K,{label:"Custom Text Rotation",description:"Angle your text using a custom angle."}),new At("formatTextRotateVertical",K,{label:"Vertical Text",description:"Stack text vertically."}),new At("sortAscending",K,{label:"Sort Ascending",scopedLabels:{sort:"Ascending"},description:"Lowest to Highest."},function(){Ad(this,{reverse:!1},!1)}),new At("sortDescending",K,{label:"Sort Descending",scopedLabels:{sort:"Descending"},description:"Highest to Lowest."},function(){Ad(this,{reverse:!0},!1)}),new At("sortCustom",K,{label:"Custom Sort…",scopedLabels:{sort:"Custom…"},description:"Choose more options, such as sorting by multiple columns or rows, and case-sensitive sorts."},function(){Ad(this,{},!0)}),new Ve("protectionSheetToggle",K,{label:"Protect Sheet",scopedLabels:{sheet:"Protected"},description:`Prevent unwanted changes from others by limiting their ability to edit.
|
|
71
|
+
For example, you can prevent people from editing locked cells or making formatting changes.`}),new Ve("formatSheetTabColor",K,{label:"Tab Color",description:"Color the tab to help differentiate for other sheets."}),new Ve("formatCellStyle",K,{label:"Cell Styles",scopedLabels:{cellStyle:"Apply"},description:"A colorful style is a great way to make important data stand out on the sheet."},function(de){Ft(this,{named:de.getName()},!0)}),new Ve("formatTableStyle",K,{label:"Format as Table",scopedLabels:{table:"Apply (Keep Styles)"},description:"Create a table or apply style to the current table."},function(de){Ys(this,de)}),new Ve("formatTableStyleClearCellStyles",K,{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(de){Ys(this,de,!0)}),new Ve("formatTableStyleClearTableStyle",K,{label:"Clear Table Style",scopedLabels:{table:"Clear Style"},description:"Remove all the styling that is specific for the table."},function(){Ys(this,{name:null},!0)}),new Ve("setDefaultTableStyle",K,{label:"Set Default Table Style",scopedLabels:{table:"Set As Default"},description:"Sets the default table style used when a table is inserted."},dw),new Ve("deleteTableStyle",K,{label:"Delete Table Style",scopedLabels:{table:"Delete"},description:"Remove the current table style."},uw),new Ve("formatBorder",K,{label:"Border",description:"Create an outline border."},function(de){Ft(this,{border:de})}),new Ve("formatFillColor",K,{label:"Fill Color",description:"Color the background of the cells to make them stand out."},function(de){Ft(this,{fill:de})}),new Ve("formatFontColor",K,{label:"Font Color",description:"Change the color of your text."},function(de){Ft(this,{font:{fill:de}})}),new Ve("formatBoldToggle",K,{label:"Bold",description:"Toggle bold formatting of text.",shortcut:[{key:"B",modifiers:[yt]},{key:"2",modifiers:[yt]}]}),new Ve("formatItalicToggle",K,{label:"Italic",description:"Toggle italic formatting of text.",shortcut:[{key:"I",modifiers:[yt]},{key:"3",modifiers:[yt]}]}),new Ve("formatUnderlinedToggle",K,{label:"Underline",scopedLabels:{underline:"Single"},description:"Underline the text.",shortcut:[{key:"u",modifiers:[yt]},{key:"4",modifiers:[yt]}]}),new Ve("formatUnderlinedDoubleToggle",K,{label:"Double Underline",scopedLabels:{underline:"Double"},description:"Double underline the text."}),new Ve("formatUnderlinedAccountingToggle",K,{label:"Accounting Underline",scopedLabels:{underline:"Accounting"},description:"Use accounting underline for the text."}),new Ve("formatUnderlinedAccountingDoubleToggle",K,{label:"Double Accounting Underline",scopedLabels:{underline:"Double Accounting"},description:"Use accounting double underline the text."}),new Ve("formatStrikeThroughToggle",K,{label:"Strikethrough",description:"Toggle strike-through formatting of text.",shortcut:{key:"5",modifiers:[yt]}}),new Ve("formatSuperscriptToggle",K,{label:"Superscript",description:"Format your text to be smaller and sit at the top of the line."}),new Ve("formatSubscriptToggle",K,{label:"Subscript",description:"Format your text to be smaller and sit at the bottom of the line."}),new Ve("formatAlignTopToggle",K,{label:"Align Top",description:"Align text to the top."}),new Ve("formatTextOverflowVisibleToggle",K,{label:"Overflow Text",description:"Overflow text to the next cells."}),new Ve("formatTextOverflowWrapToggle",K,{label:"Wrap Text",description:"Wrap text with the existing cell and increase the height as required."}),new Ve("formatTextOverflowClipToggle",K,{label:"Clip Text",description:"Clip text that falls outside of the existing cell."}),new Ve("formatTextOverflowShrinkToggle",K,{label:"Shrink Text",description:"Shrink the text font to fit within existing cell."}),new Ve("formatTextOverflowEllipsisToggle",K,{label:"Ellipsis Text",description:"Add a trailing '…' to the text to indicate text is partially hidden."}),new Ve("formatAlignMiddleToggle",K,{label:"Align Middle",description:"Align text so that it is centered between the top and bottom of the cell."}),new Ve("formatAlignBottomToggle",K,{label:"Align Bottom",description:"Align text to the bottom."}),new Ve("formatAlignJustifyVerticalToggle",K,{label:"Justify Vertically",description:"Each 'word' in each line of text inside the cell is evenly distributed across the height of the cell."}),new Ve("formatAlignDistributedVerticalToggle",K,{label:"Distribute Vertically",description:"Justify your content vertically."}),new Ve("formatAlignLeftToggle",K,{label:"Align Left",description:"Align your content to the left."}),new Ve("formatAlignCenterToggle",K,{label:"Align Center",description:"Center your content."}),new Ve("formatAlignRightToggle",K,{label:"Align Right",description:"Align your content to the right."}),new Ve("formatAlignJustifyToggle",K,{label:"Align Justify",description:"Justify your content."}),new Ve("formatAlignCenterContinuousToggle",K,{label:"Center Across",description:"Center your content across multiple cells."}),new Ve("formatAlignFillToggle",K,{label:"Fill Across",description:"Repeat the value to fill the entire cell."}),new Ve("formatAlignDistributedHorizontalToggle",K,{label:"Distribute Horizontally",description:"Each 'word' in each line of text inside the cell is evenly distributed across the width of the cell."}),new At("formatFontSizeIncrease",K,{label:"Increase Font Size",description:"Make your text a bit bigger.",shortcut:{key:">",modifiers:[yt,Ln]}},function(){Ft(this,de=>({font:{size:S5(de.getFont().getSize(),!0)}}))}),new At("formatFontSizeDecrease",K,{label:"Decrease Font Size",description:"Make your text a bit smaller.",shortcut:{key:"<",modifiers:[yt,Ln]}},function(){Ft(this,de=>({font:{size:S5(de.getFont().getSize(),!1)}}))}),new Ve("formatFontFamily",K,{label:"Font",description:"Select the font your text."},function(de){Ft(this,{font:{family:de}})}),new Ve("formatFontSize",K,{label:"Font Size",description:"Change the size of your text."},function(de){Ft(this,{font:{size:de}})}),new Ve("formatNumberDialog",K,{label:"Custom Number Format",scopedLabels:{numberFormat:"Custom"},description:"Create a custom number format.",shortcut:[{key:"1",modifiers:[yt]},{key:"1",modifiers:[yt,Ho]}]},function(de,Oe){const Ze=this,Te={initialValue:de??Oe.state(),context:Oe.context(),onInputOption:(Ye,ot)=>{Ft(Ze,{numberFormat:Ye})}};ce.showWindow?.("numberFormat",Te)}),new Ve("formatNumberFormat",K,{label:"Number Format",description:"Choose the format for your cells, such as percentage, currency, date or time."},function(de){Ft(this,{numberFormat:de})}),new Ve("formatNumberFormatGeneralStyle",K,{label:"General Style",description:"Remove all specific formatting.",shortcut:{key:"Backquote",modifiers:[yt,Ln]}},function(){Ft(this,{numberFormat:N.NumberFormat.Type.General})}),new Ve("formatNumberFormatNumberStyle",K,{label:"Number Style",description:"Format as number with two decimals and comma.",shortcut:{key:"1",modifiers:[yt,Ln]}},function(){Ft(this,{numberFormat:"#,##0.00"})}),new Ve("formatNumberFormatTimeStyle",K,{label:"Time Style",description:"Format as time with hour and minute, and AM or PM.",shortcut:{key:"2",modifiers:[yt,Ln]}},function(){Ft(this,{numberFormat:"h:mm AM/PM"})}),new Ve("formatNumberFormatDateStyle",K,{label:"Date Style",description:"Format as date with day, month, and year.",shortcut:{key:"3",modifiers:[yt,Ln]}},function(){Ft(this,{numberFormat:"d-mmm-yy"})}),new Ve("formatNumberFormatAccountingStyle",K,{label:"Accounting Style",description:"Format as Dollars, Euros, or other currency.",shortcut:{key:"4",modifiers:[yt,Ln]}},function(de){Ft(this,{numberFormat:de??'_($* #,##0.00_);_($* (#,##0.00);_($* "-"??_);_(@_)'})}),new Ve("formatNumberFormatPercentStyle",K,{label:"Percent Style",description:"Format as a percent with no decimal places.",shortcut:{key:"5",modifiers:[yt,Ln]}},function(){Ft(this,{numberFormat:"0%"})}),new Ve("formatNumberFormatScientificStyle",K,{label:"Scientific Style",description:"Format as a scientific number with two decimal places .",shortcut:{key:"6",modifiers:[yt,Ln]}},function(){Ft(this,{numberFormat:"0.00E+00"})}),new Ve("formatNumberFormatCommaStyle",K,{label:"Comma Style",description:"Format with a thousands separator.",shortcut:{key:",",modifiers:[yt]}},function(){Ft(this,{numberFormat:'_(* #,##0.00_);_(* (#,##0.00);_(* "-"??_);_(@_)'})}),new Ve("formatNumberFormatIncreaseDecimal",K,{label:"Increase Decimal",description:"Show more decimal places for a more precise value."},function(){Ft(this,de=>({numberFormat:N.NumberFormat.Parser.adjustDecimalPlaces(de.getNumberFormat(),1)}))}),new Ve("formatNumberFormatDecreaseDecimal",K,{label:"Decrease Decimal",description:"Show few decimal places."},function(){Ft(this,de=>({numberFormat:N.NumberFormat.Parser.adjustDecimalPlaces(de.getNumberFormat(),-1)}))}),new Ve("displayPlaceholdersToggle",K,{label:"Display Placeholders",description:"Switch between hiding objects, displaying objects, and displaying placeholders for objects.",shortcut:{key:"6",modifiers:[yt]}}),new At("noOp",K,{label:"Do nothing",description:"Do Nothing.",shortcut:{key:"7",modifiers:[yt]}},function(){}),new Ve("displayOutlineSymbolsToggle",K,{label:"Display Outline Symbols",description:"Display or hide the outline symbols.",shortcut:{key:"8",modifiers:[yt]}}),new Ve("hideRows",K,{label:"Hide Rows",description:"Hide the rows.",shortcut:{key:"9",modifiers:[yt]}}),new Ve("unhideRows",K,{label:"Unhide Rows",description:"Unhide the rows.",shortcut:{key:"(",modifiers:[yt,Ln]}}),new Ve("hideColumns",K,{label:"Hide Columns",description:"Hide the columns.",shortcut:[{key:"0",modifiers:[yt]},{key:"0",modifiers:[yt,Ho]}]}),new Ve("unhideColumns",K,{label:"Unhide Columns",description:"Unhide the columns.",shortcut:{key:")",modifiers:[yt,Ln]}}),new Ve("quickFormulaSum",K,{label:"Quick Sum",scopedLabels:{quickFormula:"Sum"},description:"Quick sum of the cells.",shortcut:{key:"=",modifiers:[Ho]}},function(){ea(this,"SUM")}),new Ve("quickFormulaAverage",K,{label:"Quick Average",scopedLabels:{quickFormula:"Average"},description:"Quick average of the cells."},function(){ea(this,"AVERAGE")}),new Ve("quickFormulaCount",K,{label:"Quick Count",scopedLabels:{quickFormula:"Count Numbers"},description:"Quick count of the cells."},function(){ea(this,"COUNT")}),new Ve("quickFormulaMax",K,{label:"Quick Max",scopedLabels:{quickFormula:"Max"},description:"Quick maximum of the cells."},function(){ea(this,"MAX")}),new Ve("quickFormulaMin",K,{label:"Quick Min",scopedLabels:{quickFormula:"Min"},description:"Quick minimum of the cells."},function(){ea(this,"MIN")}),new Ve("startEditCurrentTime",K,{label:"Current Time",description:"Insert the current time.",shortcut:{key:"Semicolon",modifiers:[yt,Ln]}},function(){Pt?.({text:se.createTemporaryCell({value:Ts(),style:{numberFormat:"Medium Time"}}).toText()})}),new Ve("startEditCurrentDate",K,{label:"Current Date",description:"Insert the current date.",shortcut:{key:"Semicolon",modifiers:[yt]}},function(){Pt?.({text:se.createTemporaryCell({value:Ts(),style:{numberFormat:"Short Date"}}).toText()})}),new At("sheetZoomOut",K,{label:"Zoom Out",description:"Zoom out to see less detail but more area.",shortcut:[{key:"-",modifiers:[yt,Ho]},{key:"NumpadSubtract",modifiers:[yt,Ho]}]}),new At("sheetZoomIn",K,{label:"Zoom In",description:"Zoom in to see more detail but less area.",shortcut:[{key:"=",modifiers:[yt,Ho]},{key:"NumpadAdd",modifiers:[yt,Ho]}]}),new At("sheetZoom100",K,{label:"Zoom 100%",description:"Zoom document to 100%.",shortcut:{key:"o",modifiers:[yt,Ho]}}),new Ve("insertFunction",K,{label:"Insert Function",disabled:!0,scopedLabels:{insert:"Function",quickFormula:"More Functions..."},description:"Work with the formula in the current cell.",shortcut:{key:"F3",modifiers:[Ln]}},function(de,Oe){console.log("insertFunction")}),new Ve("updateHyperlink",K,{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:()=>Po,shortcut:[{key:"K",modifiers:[yt]},{key:"K",modifiers:[yt,Ho]}]},async function(de,Oe){const Ze=this,Te={context:Oe.context(),onUpdateHyperlink:(Ye,ot)=>{hh(Ze,Ye,ot)}};ce.showWindow?.("hyperlink",Te)}),new Ve("openHyperlink",K,{label:"Open Link",scopedLabels:{hyperlink:"Open"},shortcut:{key:"Enter",modifiers:[yt]},description:"Open the hyperlink or goto another location within this document.",context:()=>Po},async(de,Oe)=>{const Ze=Oe.context()();if(!Ze)return;const Te=Ze.getHyperlink();if(Te)try{await Te.open()}catch(Ye){ce?.showError?.(Ye)}}),new Ve("deleteHyperlink",K,{label:"Delete Link",scopedLabels:{hyperlink:"Delete"},description:"Remove the hyperlink.",context:()=>Po},function(de,Oe){hh(this,null,null)}),new At("insertNote",K,{label:"Insert Note",scopedLabels:{contextMenu:"Insert Note…",insert:"Note"},shortcut:{key:"F2",modifiers:[Ln]},description:"Add a note to the cell."},(de,Oe)=>{((Ze,Te)=>{Ze?.showMessage?.(a.jsxs("p",{style:{marginTop:"0px",marginBottom:"0px"},children:[Te," 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"}),"."]}))})(ce,Oe.label())}),new Ve("updateComments",K,{label:"Comments",scopedLabels:{contextMenu:"Insert Comments…",insert:"Comments…"},shortcut:{key:"M",modifiers:[yt,Ho]},description:"Add a comment to the current cell.",context:()=>Po},async function(de,Oe){const Ze=this,Te={context:Oe.context(),onUpdateComments:Ye=>{ph(Ze,Ye)}};ce.showWindow?.("comments",Te)}),new Ve("deleteComments",K,{label:"Delete Comments",description:"Remove any comments.",context:()=>Po},function(de,Oe){ph(this,null)}),new Ve("insertImageFromFile",K,{label:"Insert Image",scopedLabels:{contextMenu:"Insert Image…",insert:"Image…",insertImage:"From Device…"},description:"Insert a picture from your device."},async function(de=null){let Oe=null,Ze=null;typeof de=="string"?Ze=de:Oe=de?.file?de.file:de,(Oe||(Oe=await Ht.openFileDialog(Ze??"image/*"),Oe))&&await yh(this,{file:Oe},de?.options)}),new Ve("insertImageFromURL",K,{label:"Insert Image From Web",scopedLabels:{insert:"Image From Web",insertImage:"From the Web…"},description:"Insert a picture from the web."},async function(de){if(!de){const Oe=await ce?.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(Oe.option!=="Insert")return;de=Oe.input}de&&yh(this,{fetch:de})}),new At("insertTable",K,{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:[yt]},{key:"T",modifiers:[Ho,yt]}]},function(){Ys(this)}),new Ve("editTable",K,{label:"Edit Table…",scopedLabels:{table:"Edit…",namedItem:"Edit…"},description:"Edit the table to adjust formatting, sorting, filtering, or other advanced features."},function(de){let Oe=null,Ze=!1;de.isITable?Oe=de:de.getValue()&&(Oe=de.getValue(),Ze=!0),hw(this,Oe,Ze)}),new Ve("deleteTable",K,{label:"Delete Table",scopedLabels:{delete:"Table",table:"Delete",namedItem:"Delete"},description:`Remove the table.
|
|
72
|
+
|
|
73
|
+
The table and table specific styling will be removed but the values will be preserved.`},function(de){gh(this,de,!0)}),new Ve("convertTableToRange",K,{label:"Convert To Range",description:`Convert the table into a normal range of cells.
|
|
74
|
+
|
|
75
|
+
The values and the formatting are preserved.`},function(de){gh(this,de,!1)}),new Ve("tableTotalRowToggle",K,{label:"Toggle Table Total Row",description:"Toggle Total Row on/off.",scopedLabels:{table:"Total Row"},shortcut:{key:"T",modifiers:[yt,Ho]}},function(){const de=this.context().table();de&&de.setShowTotals(!de.getShowTotals())}),new Ve("tableHeaderRowToggle",K,{label:"Toggle Table Header Row",description:"Toggle Header Row on/off.",scopedLabels:{table:"Header Row"}},function(){const de=this.context().table();de&&de.setShowHeaders(!de.getShowHeaders())}),new Ve("autoFilterToggle",K,{label:"Toggle Filter",scopedLabels:{filter:"Filter"},description:"Toggle Auto Filter on/off.",shortcut:{key:"L",modifiers:[yt,Ln]}},function(){const de=this.context().table();de&&de.setShowFilterButton(!de.getShowFilterButton())}),new Ve("autoFilterReapply",K,{label:"Reapply Filter",scopedLabels:{filter:"Reapply"},description:"Reapply the filter and sort with the latest changes.",shortcut:{key:"L",modifiers:[yt,Ho]}}),new Ve("autoFilterClear",K,{label:"Clear Filter",scopedLabels:{filter:"Clear"},description:"Clear the filters criteria from the current filter.."}),new At("startEditValueAbove",K,{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:[yt]},{key:'"',modifiers:[yt,Ln]}]},mw),new Ve("formatPainterToggle",K,{label:"Format Painter",description:"Apply style to another part of your workbook."}),new At("insertCells",K,{label:"Insert Cells",scopedLabels:{insertCells:"At Selection"},description:"Inserts cells at the current selection.",shortcut:{key:"=",modifiers:[yt,Ln]}},function(){u0(this)}),new At("insertCellsShiftRight",K,{label:"Insert Cells (Shift Right)",scopedLabels:{insertCells:"Shift Right"},description:"Insert cells to the left and shift the current cells to the right."},function(){u0(this,N.IRange.Orientation.Column)}),new At("insertCellsShiftDown",K,{label:"Insert Cells (Shift Down)",scopedLabels:{insertCells:"Shift Down"},description:"Insert cells above and shift the current cells downward."},function(){return u0(this,N.IRange.Orientation.Row)}),new At("insertRows",K,{label:"Insert Row(s)",scopedLabels:{insertCells:"Row(s)"},description:"Insert a row above the current position."},function(){return u0(this,N.IRange.Orientation.Row,!0)}),new At("insertColumns",K,{label:"Insert Column(s)",scopedLabels:{insertCells:"Column(s)"},description:"Insert a column before the current position."},function(){return u0(this,N.IRange.Orientation.Column,!0)}),new At("insertRowsAfter",K,{label:"Insert Row Below",scopedLabels:{insertCells:"Row Below"},description:"Insert a row below the current position."},function(){return u0(this,N.IRange.Orientation.Row,!0,!0)}),new At("insertColumnsAfter",K,{label:"Insert Column After",scopedLabels:{insertCells:"Column After"},description:"Insert a column after the current position."},function(){return u0(this,N.IRange.Orientation.Column,!0,!0)}),new At("deleteCells",K,{label:"Delete Cells",scopedLabels:{deleteCells:"At Selection"},description:"Delete the cells.",shortcut:{key:"-",modifiers:[yt]}},function(){return ta(this)}),new At("deleteCellsShiftUp",K,{label:"Delete Cells (Shift Up)",scopedLabels:{deleteCells:"Shift up"},description:"Delete cells the current current downward."},function(){return ta(this,N.IRange.Orientation.Row)}),new At("deleteCellsShiftLeft",K,{label:"Delete Cells (Shift Left)",scopedLabels:{deleteCells:"Shift Left"},description:"Delete cells the current cells to the right."},function(){return ta(this,N.IRange.Orientation.Column)}),new At("deleteRows",K,{label:"Delete Rows",scopedLabels:{deleteCells:"Rows"},description:"Delete the rows at the current selection."},function(){return ta(this,N.IRange.Orientation.Row,!0)}),new At("deleteColumns",K,{label:"Delete Columns",scopedLabels:{deleteCells:"Columns"},description:"Delete the columns at the current selection."},function(){return ta(this,N.IRange.Orientation.Column,!0)}),new At("flashFill",K,{label:"Flash Fill",description:"Do a flash fill.",shortcut:[{key:"e",modifiers:[yt]},{key:"e",modifiers:[yt,Ho]}]}),new At("fillDown",K,{label:"Fill Down",description:"Copy the top-most value from the selection to the bottom of the selection.",shortcut:{key:"d",modifiers:[yt]}},function(){return Js(this,N.IRange.Direction.Down)}),new At("fillRight",K,{label:"Fill Right",description:"Copy the left-most value from the selection to the right of the selection.",shortcut:[{key:"r",modifiers:[yt]}]},function(){return Js(this,N.IRange.Direction.Right)}),new At("fillUp",K,{label:"Fill Up",description:"Copy the bottom-most value from the selection to the top of the selection."},function(){return Js(this,N.IRange.Direction.Up)}),new At("fillLeft",K,{label:"Fill Left",description:"Copy the right-most value from the selection to the left of the selection."},function(){return Js(this,N.IRange.Direction.Left)}),new At("formatBorderAddOutline",K,{label:"Add Outline Border",description:"Apply an outline border.",shortcut:{key:"7",modifiers:[yt,Ln]}},function(){return Ft(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 At("formatBorderClearOutline",K,{label:"Remove Outline Border",description:"Remove the outline border.",shortcut:{key:"_",modifiers:[yt,Ln]}},function(){return Ft(this,{border:null})}),new At("formatIndentDecrease",K,{label:"Decrease Indent",description:"Move your content closer to the border."},function(){return Ft(this,de=>{const Oe=de.getAlignment().getIndent()-1;return{alignment:{indent:Oe>0?Oe:0}}})}),new At("formatIndentIncrease",K,{label:"Increase Indent",description:"Move your content further from the border."},function(){return Ft(this,de=>{const Oe={alignment:{indent:de.getAlignment().getIndent()+1}};return de.getAlignment().getHorizontal()===N.ITextFrame.HorizontalAlignment.General&&(Oe.alignment.horizontal=N.ITextFrame.HorizontalAlignment.Left),Oe})}),new Ve("mergeToggle",K,{label:"Merge",description:"Combine and center the contents into a single cell.",shortcut:{key:"m",modifiers:[yt]}}),new At("mergeHorizontal",K,{label:"Merge Horizontally",description:"Combine the contents into horizontal rows."}),new At("mergeVertical",K,{label:"Merge Vertically",description:"Combine the contents into vertical columns."}),new At("unmerge",K,{label:"Unmerge",description:"Split merged cells into multiple cells."}),new At("clearContents",K,{label:"Clear Contents",scopedLabels:{clear:"Contents"},description:`Clear only the contents in the cells.
|
|
76
|
+
|
|
77
|
+
The formatting is not cleared.`,shortcut:{key:"Delete"}},function(){Ql(this,N.ICell.Content.Values)}),new At("clearFormats",K,{label:"Clear Formats",scopedLabels:{clear:"Formats"},description:"Clear only the formatting that is applied to the cells."},function(){Ql(this,N.ICell.Content.Formats)}),new At("clearHyperlinks",K,{label:"Clear Hyperlinks",scopedLabels:{clear:"Hyperlinks"},description:"Clear only the hyperlinks in the cells."},function(){Ql(this,N.ICell.Content.Hyperlinks)}),new At("clearComments",K,{label:"Clear Comments",scopedLabels:{clear:"Comments"},description:"Clear the comments from the cells."},function(){Ql(this,N.ICell.Content.Comments)}),new At("clearAll",K,{label:"Clear All",scopedLabels:{clear:"All"},description:`Clears everything from the cells.
|
|
78
|
+
|
|
79
|
+
All contents and formatting are removed.`,shortcut:{key:"Delete",modifiers:[yt,Ln]}},function(){Ql(this)}),new Ve("freezeToggle",K,{label:"Freeze Panes",description:"Keep rows and columns visible while the rest of the sheet scrolls (based on current selection)."}),new Ve("freezeToggleHorizontal",K,{label:"Freeze Top Rows",description:"Keep the top rows visible while scrolling through the rest of the sheet."}),new Ve("freezeToggleVertical",K,{label:"Freeze Left Columns",description:"Keep the left columns visible while scrolling through the rest of the sheet."}),new At("unfreeze",K,{label:"Unfreeze Panes",description:"Unfreeze both the rows and columns."}),new At("autoFitRows",K,{label:"Autofit Rows",description:"Adjust the rows to the best height."}),new At("autoFitColumns",K,{label:"Autofit Columns",description:"Adjust the columns to the best width."})],[]),he=d.useMemo(()=>{let de=null;return de=G?G.createChildGroup(K,"sheet",!1):new Kl(K,"sheet"),de.addCommands(bh,!0),de},[G,bh]),[oa,xw]=d.useState(!1),[ra,yw]=d.useState(!1);d.useEffect(()=>{if(jt.current!==se||!_t)return;const de=_t.getCoords(),Oe=se.getTables().search({address:de[0]});pr(rn=>Ht.isEqualArrays(rn,Oe)?rn:Oe),Ge&&Oe[0]&&_o.isCellWithinRange(Ge,Oe[0].getRange().getCoords())?Pd(Oe[0]??null):Pd(null);const Ze=se.getSelectedRanges(),Te=Ze.getMerges().length>0,Ye=Ze.isOverlapping();let ot=!0;for(let rn=0;ot&&rn<de.length;rn++)ot=_o.isSingleCell(de[rn]);yw(Ye),xw(Oe.length===0&&!Ye&&(Te||!ot))},[Qs,_t,se]),Hx(G,null,{onChange:()=>{const de=!se.getProtection().isFormatCellsAllowed(),Oe=Nt.getMode()?.key==="formatPainter";he.getCommand("formatPainterToggle").update({disabled:de||!G?.getCommand("copy"),state:()=>Oe}).updateCallback(()=>Oe?void Nt.setMode(null):he.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`}}))}},[Nt,na,G]),Zt(se.getView(),{onFreezeSplitChange:()=>{K0()}}),Zt(se.getSelection(),{onChange:()=>{Xs()}});const ec=()=>{he.getCommand("sheetViewFormatGridlinesColor").update({state:()=>se.getView().getGridLineColor(),context:()=>({onColorSelect:de=>{},darkMode:gt.darkMode,autoColor:se.getStyles().parseColor(gt.strokeFill),schemeLookup:se.getStyles().schemeLookup(),recentColors:()=>se.getStyles().recentColors(),addRecentColor:de=>se.getStyles().addRecentColor(de),clearRecentColors:()=>se.getStyles().clearRecentColors()})}),he.getCommand("formatSheetTabColor").updateCallback(de=>{se.setTabColor(de)}).update({state:()=>se?.getTabColor()??Rc,context:()=>({onColorSelect:de=>{},darkMode:gt.darkMode,autoColor:Rc,schemeLookup:se.getStyles().schemeLookup(),recentColors:()=>se.getStyles().recentColors(),addRecentColor:de=>se.getStyles().addRecentColor(de),clearRecentColors:()=>se.getStyles().clearRecentColors()})})},Fd=()=>{he.getCommand("formatBorder").update({context:()=>({onBorderSelect:de=>{Ot(de)},darkMode:gt.darkMode,quickBorder:Dt,autoColor:se.getStyles().getNormal().getFont().getFill(),autoStyle:N.IBorder.StrokeStyle.Thin,createTemporaryBorder:de=>se.getStyles().getNormal().createTemporaryStyle({border:de}).getBorder(),schemeLookup:se.getStyles().schemeLookup()})})};d.useEffect(()=>{Fd()},[Dt]),d.useEffect(()=>{const de=!se.getProtection().isInsertHyperlinksAllowed();he.getCommand("openHyperlink").update({disabled:!Po().getHyperlink()}),he.getCommand("deleteHyperlink").update({disabled:de||!Po().getHyperlink()});const Oe=Po().getHyperlink()?"Edit":"Insert",Ze="Link";he.getCommand("updateHyperlink").update({label:()=>(Po().getHyperlink(),`${Oe} ${Ze}`),scopedLabels:{contextMenu:`${Oe} ${Ze}…`,insert:`${Ze}…`,hyperlink:`${Oe}…`},disabled:de})},[Po()?.getHyperlink(),na]),d.useEffect(()=>{const de=Po().getComments(),Oe=()=>de?"Edit":"Insert",Ze=()=>de?"Comments":"Comment";he.getCommand("updateComments").update({label:()=>`${Oe()} ${Ze()}`,scopedLabels:{contextMenu:`${Oe()} ${Ze()}…`,insert:`${Ze()}…`}})},[Po()?.getComments(),na]),Zt(se,{onViewChange:()=>{const de=se.getView();he.getCommand("sheetViewToggleFormulaView").update({state:de.isShowFormulas()}),he.getCommand("sheetViewToggleShowZeros").update({state:de.isShowZeros()}),he.getCommand("gridlinesToggle").update({state:de.isShowColumnGridlines()||de.isShowRowGridlines()}),he.getCommand("sheetViewToggleGridlinesColumns").update({state:de.isShowColumnGridlines()}),he.getCommand("sheetViewToggleGridlinesRows").update({state:de.isShowRowGridlines()}),he.getCommand("sheetViewToggleShowHeadings").update({state:de.isShowColumnHeaders()||de.isShowRowHeaders()}),he.getCommand("sheetViewToggleShowHeadingColumns").update({state:de.isShowColumnHeaders()}),he.getCommand("sheetViewToggleShowHeadingRows").update({state:de.isShowRowHeaders()}),he.getCommand("sheetViewToggleShowHeadingsNumeric").update({state:()=>se.getView().getColumnHeaderStyle()===N.ISheetView.HeaderTextStyle.Zero&&se.getView().getRowHeaderStyle()===N.ISheetView.HeaderTextStyle.Zero}),ec()},onTabColorChange:()=>{ec()},onMergesChange:()=>{K0()},onMovablesChange:()=>{K0()},onTablesChange:()=>{K0()},onProtectionChange:()=>{K0(),gw()},onStyleChange:()=>{ec(),Fd(),K0()}}),d.useEffect(()=>{ec(),Fd()},[gt]),d.useEffect(()=>{const de=!se.getProtection().isFormatCellsAllowed(),Oe=Fn.length>0&&!yi||de,Ze=mh(yi),Te={context:Ze};he.getCommand("editTable").update(Te),he.getCommand("deleteTable").update(Te),he.getCommand("convertTableToRange").update(Te);const Ye={context:Ze,disabled:Oe};he.getCommand("formatTableStyle").update({label:yi?"Apply Table Style":"Format As Table",...Ye}),he.getCommand("formatTableStyleClearCellStyles").update(Ye),he.getCommand("deleteTableStyle").update(Ye),he.getCommand("convertTableToRange").update(Ye),he.getCommand("insertTable").update({disabled:Oe||Fn.length>0});const ot={context:Ze,disabled:Oe||Fn.length===0};he.getCommand("tableHeaderRowToggle").update(ot),he.getCommand("tableTotalRowToggle").update(ot),he.getCommand("autoFilterToggle").update(ot),he.getCommand("formatTableStyleClearTableStyle").update({...ot,disabled:ot.disabled||!yi||yi.getStyleOptions().name===null})},[yi,Fn,na]),d.useEffect(()=>{he.getCommand("sheetZoomOut").updateCallback(()=>{se.getView().update({zoomScale:Ht.findNextStep(se.getView().getZoomScale(),!1)})}),he.getCommand("sheetZoomIn").updateCallback(()=>{se.getView().update({zoomScale:Ht.findNextStep(se.getView().getZoomScale())})}),he.getCommand("sheetZoom100").updateCallback(()=>{se.getView().update({zoomScale:100})}),he.getCommand("gridlinesToggle").updateCallback(()=>{const de=se.getView().isShowColumnGridlines()&&se.getView().isShowRowGridlines();se.getView().update({showColumnGridlines:!de,showRowGridlines:!de})}),he.getCommand("sheetViewToggleGridlinesRows").updateCallback(()=>{se.getView().update({showRowGridlines:!se.getView().isShowRowGridlines()})}),he.getCommand("sheetViewToggleGridlinesColumns").updateCallback(()=>{se.getView().update({showColumnGridlines:!se.getView().isShowColumnGridlines()})}),he.getCommand("sheetViewFormatGridlinesColor").updateCallback(de=>{se.getView().update({gridLineColor:de})}),he.getCommand("sheetViewToggleShowHeadings").updateCallback(()=>{const de=se.getView().isShowColumnHeaders()&&se.getView().isShowRowHeaders();se.getView().update({showColumnHeaders:!de,showRowHeaders:!de})}),he.getCommand("sheetViewToggleShowHeadingColumns").updateCallback(()=>{se.getView().update({showColumnHeaders:!se.getView().isShowColumnHeaders()})}),he.getCommand("sheetViewToggleShowHeadingRows").updateCallback(()=>{se.getView().update({showRowHeaders:!se.getView().isShowRowHeaders()})}),he.getCommand("sheetViewToggleShowHeadingsNumeric").updateCallback(()=>{const de=se.getView().getColumnHeaderStyle()===N.ISheetView.HeaderTextStyle.Zero&&se.getView().getRowHeaderStyle()===N.ISheetView.HeaderTextStyle.Zero;se.getView().update({columnHeaderStyle:de?N.ISheetView.HeaderTextStyle.A1:N.ISheetView.HeaderTextStyle.Zero,rowHeaderStyle:de?N.ISheetView.HeaderTextStyle.One:N.ISheetView.HeaderTextStyle.Zero})}),he.getCommand("sheetViewToggleFormulaView").updateCallback(()=>{se.getView().update({showFormulas:!se.getView().isShowFormulas()})}),he.getCommand("sheetViewToggleShowZeros").updateCallback(()=>{se.getView().update({showZeros:!se.getView().isShowZeros()})})},[se]),d.useEffect(()=>{const de=se.getView().getFreezePanes(),Oe=()=>de.coords.rowIndex!==0,Ze=()=>de.coords.colIndex!==0,Te=()=>de.coords.rowIndex!==0||de.coords.colIndex!==0;he.getCommand("freezeToggle").updateCallback(()=>{Te()?se.getView().setFreezePanes(null):Te()?Ze()?se.getView().setFreezePanes({coords:{rowIndex:Ge.rowIndex}}):Oe()&&se.getView().setFreezePanes({coords:{colIndex:Ge.colIndex}}):se.getView().setFreezePanes({coords:Ge})}).update({state:Te,disabled:()=>!Ge||!Te()&&Ge.rowIndex===0&&Ge.colIndex===0}),he.getCommand("freezeToggleHorizontal").updateCallback(()=>{se.getView().setFreezePanes({coords:{rowIndex:Oe()?0:Ge.rowIndex}})}).update({state:Oe,disabled:()=>!Ge||!Oe()&&Ge.rowIndex===0}),he.getCommand("freezeToggleVertical").updateCallback(()=>{se.getView().setFreezePanes({coords:{colIndex:Ze()?0:Ge.colIndex}})}).update({state:Ze,disabled:()=>!Ge||!Ze()&&Ge.colIndex===0}),he.getCommand("unfreeze").updateCallback(()=>{se.getView().setFreezePanes(null)}).update({disabled:()=>!Te()})},[Qs,Ge,se,gt]);const X0=Po().getStyle(),To=X0.getFont(),tc=X0.getAlignment(),Xr=tc.getHorizontal(),ia=tc.getVertical(),la=tc.getOverflow(),Y0=tc.getRotation();return d.useEffect(()=>{he.getCommand("formatCellStyle").update({context:()=>({styles:()=>se.getStyles(),named:()=>Po().getStyle(!0).getNamed(),bodyStyle:fh,createTemporaryCell:xn=>se.createTemporaryCell(xn)})}),he.getCommand("formatFillColor").update({state:()=>{let xn=null;const Ao=X0.getFill();return Ao?.getType()===N.IFill.Type.Solid?xn=Ao.getColor():Ao?.getType()===N.IFill.Type.Gradient?xn=Ao.getStops()?.[0]?.getColor():Ao?.getType()===N.IFill.Type.Pattern&&(xn=Ao.getBackground()),xn},context:()=>{const xn=se.getStyles();return{onColorSelect:Ao=>{ct(Ao??Rc)},darkMode:gt.darkMode,quickColor:Bn,autoColor:Rc,schemeLookup:xn.schemeLookup(),recentColors:xn.recentColors(),addRecentColor:Ao=>xn.addRecentColor(Ao),clearRecentColors:()=>xn.clearRecentColors()}}}),he.getCommand("formatFontColor").update({state:()=>To.toJSON()?.fill?To.getFill():null,context:()=>{const xn=se.getStyles();return{onColorSelect:Ao=>{no(Ao)},darkMode:gt.darkMode,quickColor:Gt,autoColor:xn.getNormal().getFont().getFill(),schemeLookup:xn.schemeLookup(),recentColors:xn.recentColors(),addRecentColor:Ao=>xn.addRecentColor(Ao),clearRecentColors:()=>xn.clearRecentColors()}}}),he.getCommand("formatNumberFormat").update({state:()=>X0.getNumberFormat(),context:()=>Po}),he.getCommand("formatNumberDialog").update({state:()=>X0.getNumberFormat(),context:()=>Po}),he.getCommand("formatFontFamily").update({state:()=>To.getFamily()}),he.getCommand("formatFontSize").update({state:()=>To.getSize()});const de=function(){const xn=To.getWeight()||0;return!isNaN(xn)&&xn>500};he.getCommand("formatBoldToggle").updateCallback(function(){Ft(this,{font:{weight:de()?400:700}})}).update({state:de});const Oe=function(){return To.getStyle()===N.IFont.Style.Italic};he.getCommand("formatItalicToggle").updateCallback(function(){Ft(this,{font:{style:Oe()?N.IFont.Style.Normal:N.IFont.Style.Italic}})}).update({state:Oe}),he.getCommand("formatStrikeThroughToggle").updateCallback(function(){Ft(this,{font:{strike:!To.getStrike()}})}).update({state:To.getStrike()}),he.getCommand("formatUnderlinedToggle").updateCallback(function(){Ft(this,{font:{underline:To.getUnderline()!==N.IFont.UnderlineStyle.Single?N.IFont.UnderlineStyle.Single:N.IFont.UnderlineStyle.None}})}).update({state:To.getUnderline()===N.IFont.UnderlineStyle.Single}),he.getCommand("formatUnderlinedDoubleToggle").updateCallback(function(){Ft(this,{font:{underline:To.getUnderline()!==N.IFont.UnderlineStyle.Double?N.IFont.UnderlineStyle.Double:N.IFont.UnderlineStyle.None}})}).update({state:To.getUnderline()===N.IFont.UnderlineStyle.Double}),he.getCommand("formatUnderlinedAccountingToggle").updateCallback(function(){Ft(this,{font:{underline:To.getUnderline()!==N.IFont.UnderlineStyle.SingleAccounting?N.IFont.UnderlineStyle.SingleAccounting:N.IFont.UnderlineStyle.None}})}).update({state:To.getUnderline()===N.IFont.UnderlineStyle.SingleAccounting}),he.getCommand("formatUnderlinedAccountingDoubleToggle").updateCallback(function(){Ft(this,{font:{underline:To.getUnderline()!==N.IFont.UnderlineStyle.DoubleAccounting?N.IFont.UnderlineStyle.DoubleAccounting:N.IFont.UnderlineStyle.None}})}).update({state:To.getUnderline()===N.IFont.UnderlineStyle.DoubleAccounting}),he.getCommand("formatSuperscriptToggle").updateCallback(function(){Ft(this,{font:{verticalAlign:To.getVerticalAlignment()!==N.IFont.VerticalAlignment.Super?N.IFont.VerticalAlignment.Super:N.IFont.VerticalAlignment.Baseline}})}).update({state:To.getVerticalAlignment()===N.IFont.VerticalAlignment.Super}),he.getCommand("formatSubscriptToggle").updateCallback(function(){Ft(this,{font:{verticalAlign:To.getVerticalAlignment()!==N.IFont.VerticalAlignment.Sub?N.IFont.VerticalAlignment.Sub:N.IFont.VerticalAlignment.Baseline}})}).update({state:To.getVerticalAlignment()===N.IFont.VerticalAlignment.Sub});const Ze=()=>la===N.ITextFrame.Overflow.Visible;he.getCommand("formatTextOverflowVisibleToggle").updateCallback(function(){Ft(this,{alignment:{overflow:(Ze(),N.ITextFrame.Overflow.Visible)}})}).update({state:Ze});const Te=()=>la===N.ITextFrame.Overflow.Wrap;he.getCommand("formatTextOverflowWrapToggle").updateCallback(function(){Ft(this,{alignment:{overflow:Te()?N.ITextFrame.Overflow.Visible:N.ITextFrame.Overflow.Wrap}})}).update({state:Te});const Ye=function(){return la===N.ITextFrame.Overflow.Clip};he.getCommand("formatTextOverflowClipToggle").updateCallback(function(){Ft(this,{alignment:{overflow:Ye()?N.ITextFrame.Overflow.Visible:N.ITextFrame.Overflow.Clip}})}).update({state:Ye});const ot=function(){return la===N.ITextFrame.Overflow.Shrink};he.getCommand("formatTextOverflowShrinkToggle").updateCallback(function(){Ft(this,{alignment:{overflow:ot()?N.ITextFrame.Overflow.Visible:N.ITextFrame.Overflow.Shrink}})}).update({state:ot});const rn=function(){return la===N.ITextFrame.Overflow.Shrink};he.getCommand("formatTextOverflowEllipsisToggle").updateCallback(function(){Ft(this,{alignment:{overflow:rn()?N.ITextFrame.Overflow.Visible:N.ITextFrame.Overflow.Ellipsis}})}).update({state:rn,disabled:!0});const ln=function(){return ia===N.ITextFrame.VerticalAlignment.Top};he.getCommand("formatAlignTopToggle").updateCallback(function(){Ft(this,{alignment:{vertical:ln()?N.ITextFrame.VerticalAlignment.Bottom:N.ITextFrame.VerticalAlignment.Top}})}).update({state:ln});const qt=function(){return ia===N.ITextFrame.VerticalAlignment.Center};he.getCommand("formatAlignMiddleToggle").updateCallback(function(){Ft(this,{alignment:{vertical:qt()?N.ITextFrame.VerticalAlignment.Bottom:N.ITextFrame.VerticalAlignment.Center}})}).update({state:qt});const hn=function(){return ia===N.ITextFrame.VerticalAlignment.Bottom};he.getCommand("formatAlignBottomToggle").updateCallback(function(){Ft(this,{alignment:{vertical:(hn(),N.ITextFrame.VerticalAlignment.Bottom)}})}).update({state:hn});const Yt=function(){return ia===N.ITextFrame.VerticalAlignment.Justify};he.getCommand("formatAlignJustifyVerticalToggle").updateCallback(function(){Ft(this,{alignment:{vertical:Yt()?N.ITextFrame.VerticalAlignment.Bottom:N.ITextFrame.VerticalAlignment.Justify}})}).update({state:Yt});const qn=function(){return ia===N.ITextFrame.VerticalAlignment.Distributed};he.getCommand("formatAlignDistributedVerticalToggle").updateCallback(function(){Ft(this,{alignment:{vertical:qn()?N.ITextFrame.VerticalAlignment.Bottom:N.ITextFrame.VerticalAlignment.Distributed}})}).update({state:qn});const so=function(){return Xr===N.ITextFrame.HorizontalAlignment.Left};he.getCommand("formatAlignLeftToggle").updateCallback(function(){Ft(this,{alignment:{horizontal:so()?N.ITextFrame.HorizontalAlignment.General:N.ITextFrame.HorizontalAlignment.Left}})}).update({state:so});const Zo=function(){return Xr===N.ITextFrame.HorizontalAlignment.Center};he.getCommand("formatAlignCenterToggle").updateCallback(function(){Ft(this,{alignment:{horizontal:Zo()?N.ITextFrame.HorizontalAlignment.General:N.ITextFrame.HorizontalAlignment.Center}})}).update({state:Zo});const Yr=function(){return Xr===N.ITextFrame.HorizontalAlignment.CenterContinuous};he.getCommand("formatAlignCenterContinuousToggle").updateCallback(function(){const xn={alignment:{horizontal:Yr()?N.ITextFrame.HorizontalAlignment.General:N.ITextFrame.HorizontalAlignment.CenterContinuous,rotation:null}};Ft(this,xn)}).update({state:Yr});const Jr=function(){return Xr===N.ITextFrame.HorizontalAlignment.Fill};he.getCommand("formatAlignFillToggle").updateCallback(function(){const xn={alignment:{horizontal:Jr()?N.ITextFrame.HorizontalAlignment.General:N.ITextFrame.HorizontalAlignment.Fill,rotation:null}};Ft(this,xn)}).update({state:Jr});const Qr=function(){return Xr===N.ITextFrame.HorizontalAlignment.Distributed};he.getCommand("formatAlignDistributedHorizontalToggle").updateCallback(function(){Ft(this,{alignment:{horizontal:Qr()?N.ITextFrame.HorizontalAlignment.General:N.ITextFrame.HorizontalAlignment.Distributed}})}).update({state:Qr});const fr=function(){return Xr===N.ITextFrame.HorizontalAlignment.Right};he.getCommand("formatAlignRightToggle").updateCallback(function(){Ft(this,{alignment:{horizontal:fr()?N.ITextFrame.HorizontalAlignment.General:N.ITextFrame.HorizontalAlignment.Right}})}).update({state:fr});const No=function(){return Xr===N.ITextFrame.HorizontalAlignment.Justify};he.getCommand("formatAlignJustifyToggle").updateCallback(function(){Ft(this,{alignment:{horizontal:No()?N.ITextFrame.HorizontalAlignment.General:N.ITextFrame.HorizontalAlignment.Justify}})}).update({state:No});const xo=!se.getProtection().isFormatCellsAllowed(),Pr=Xr===N.ITextFrame.HorizontalAlignment.CenterContinuous||Xr===N.ITextFrame.HorizontalAlignment.Fill;he.getCommand("formatTextRotate0").updateCallback(function(xn){Ft(this,{alignment:{rotation:0}})}).update({disabled:xo||Pr,state:Y0===0}),he.getCommand("formatTextRotate45").updateCallback(function(xn){Ft(this,{alignment:{rotation:xn??1?45:0}})}).update({disabled:xo||Pr,state:Y0===45}),he.getCommand("formatTextRotate90").updateCallback(function(xn){Ft(this,{alignment:{rotation:xn??1?90:0}})}).update({disabled:xo||Pr,state:Y0===90}),he.getCommand("formatTextRotate270").updateCallback(function(xn){Ft(this,{alignment:{rotation:xn??1?270:0}})}).update({disabled:xo||Pr,state:Y0===270}),he.getCommand("formatTextRotate315").updateCallback(function(xn){Ft(this,{alignment:{rotation:xn??1?315:0}})}).update({disabled:xo||Pr,state:Y0===315}),he.getCommand("formatTextRotateCustom").updateCallback(function(xn){Ft(this,{alignment:{rotation:xn}})}).update({disabled:xo||Pr,state:Y0??0})},[X0,se,gt,Bn,Gt]),d.useEffect(()=>{const de=!se.getProtection().isFormatCellsAllowed(),Oe=se.getSelectedRanges().getMerges().length>0,Ze=async(io,nc)=>{go(nc,async J0=>{const oc=async(rc=!1)=>{const bw=await Promise.resolve(ce?.showBusy?.(nc.label()));try{const ic=J0.getSelectedRanges();if(ic.merge({orientations:io,discardMultipleValues:rc}),io===N.IRange.Orientations.Both){const ww={alignment:{horizontal:N.ITextFrame.HorizontalAlignment.Center}};ic.updateStyle(ww)}}catch(ic){throw ic}finally{bw?.()}};let Sh;try{await oc()}catch(rc){if(rc.type!=="discardMultipleValues")throw rc;Sh=!0}if(Sh&&ce?.showOptions){if(await ce?.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 oc(!0)}},void 0,void 0,!1)},Te=io=>{go(io,async nc=>{try{const J0=nc.getSelectedRanges();J0.unmerge();const oc={alignment:{horizontal:null}};J0.updateStyle(oc)}catch(J0){throw J0}})};he.getCommand("mergeToggle").updateCallback(function(){_o.isSingleCell(se.getSelectedRange().getCoords())||(Oe?Te(this):Ze(N.IRange.Orientations.Both,this))}).update({state:Oe,disabled:!oa||de}),he.getCommand("mergeHorizontal").updateCallback(function(){Ze(N.IRange.Orientations.Column,this)}).update({disabled:!oa||de}),he.getCommand("mergeVertical").updateCallback(function(){Ze(N.IRange.Orientations.Row,this)}).update({disabled:!oa}),he.getCommand("unmerge").updateCallback(function(){Te(this)}).update({disabled:!Oe||!oa||de});const Ye={disabled:de};he.getCommand("hideRows").updateCallback(function(){go(this,io=>{io.getRowHeaders().setHidden(io.getSelectedRanges().getCoords(),!0)})}).update(Ye),he.getCommand("hideColumns").updateCallback(function(){go(this,io=>{io.getColumnHeaders().setHidden(io.getSelectedRanges().getCoords(),!0)})}).update(Ye),he.getCommand("unhideRows").updateCallback(function(){go(this,io=>{io.getRowHeaders().setHidden(io.getSelectedRanges().getCoords(),!1)})}).update(Ye),he.getCommand("unhideColumns").updateCallback(function(){go(this,io=>{io.getColumnHeaders().setHidden(io.getSelectedRanges().getCoords(),!1)})}).update(Ye),he.getCommand("autoFitRows").updateCallback(function(){go(this,io=>{io.getSelectedRanges().autoFit({orientations:N.IRange.Orientations.Row})})}).update(Ye),he.getCommand("autoFitColumns").updateCallback(function(){go(this,io=>{io.getSelectedRanges().autoFit({orientations:N.IRange.Orientations.Column})})}).update(Ye);let ot=!1,rn=0,ln=!1,qt=!1,hn=0,Yt=!1;!_t||de||ra||(ot=_t.isEntireColumnsAny(),ot&&!_t.isEntireColumns()?ln=!0:rn=_t.getColumnCount(),qt=_t.isEntireRowsAny(),qt&&!_t.isEntireRows()?Yt=!0:hn=_t.getRowCount());const qn={disabled:de||_t&&_t.getCount()!==1};he.getCommand("sortAscending").update(qn),he.getCommand("sortDescending").update(qn);const so={disabled:ot||qt||de||ra},Zo=ot||de||ra||Yt;Zo&&(rn=1);const Yr=qt||de||ra||ln;Yr&&(hn=1);let Jr="",Qr="",fr="",No="",xo="",Pr="",xn="",Ao="",zd="";rn>1&&(Pr=Qr=rn+" ",xn=fr="s"),hn>1&&(Ao=No=hn+" ",zd=xo="s"),Nt.getMode()?.key==="copy"?(Jr=No=Qr="Copied ",fr=xo="s"):Nt.getMode()?.key==="cut"&&(Jr=No=Qr="Cut ",fr=xo="s");let wh="",vh="";if(_t){const io=_t.getDefaultShiftOrientation()===N.IRange.Orientation.Column;wh=` (${io?"Shift Right":"Shift Down"})`,vh=` (${io?"Shift Left":"Shift up"})`,he.getCommand("deleteCells").update({label:`Delete Cells${vh}`})}he.getCommand("insertCells").update({label:`Insert ${Jr}Cells${wh}`,scopedLabels:{insertCells:`${Jr}At Selection`}}),he.getCommand("insertCellsShiftRight").update(so),he.getCommand("insertCellsShiftDown").update(so),he.getCommand("deleteCellsShiftUp").update(so),he.getCommand("deleteCellsShiftLeft").update(so),he.getCommand("insertRows").update({label:`Insert ${No}Row${xo}`,scopedLabels:{insertCells:`${No}Row${xo}`},disabled:Yr}),he.getCommand("insertRowsAfter").update({label:`Insert ${No}Row${xo} Below`,disabled:Yr}),he.getCommand("insertColumns").update({label:`Insert ${Qr}Column${fr}`,scopedLabels:{insertCells:`${Qr}Column${fr}`},disabled:Zo}),he.getCommand("insertColumnsAfter").update({label:`Insert ${Qr}Column${fr} After`,disabled:Zo}),he.getCommand("deleteRows").update({label:`Delete ${Ao}Row${zd}`,scopedLabels:{deleteCells:`${Ao}Row${zd}`},disabled:Yr}),he.getCommand("deleteColumns").update({label:`Delete ${Pr}Column${xn}`,scopedLabels:{deleteCells:`${Pr}Column${xn}`},disabled:Zo})},[Qs,oa,ra,_t,Nt,ce,na]),d.useEffect(()=>{const de=se.getProtection(),Oe=se.getProtection().isLocked(),Ze=!de.isFormatCellsAllowed(),Te={disabled:Ze};he.getCommand("protectionSheetToggle").updateCallback(async(rn,ln)=>{let qt=null;try{if(Oe){let hn=null;if(de.hasPassword()){const Yt=await ce?.showInputOptions({title:"Password Required",description:"Enter a password to unprotected",options:["Unprotect","Cancel"],defaultOption:"Unprotect",inputType:"password"});if(Yt.option!=="Unprotect")return;hn=Yt.input}qt=await Promise.resolve(ce?.showBusy?.(ln.label())),await de.unlock(hn)}else qt=await Promise.resolve(ce?.showBusy?.(ln.label())),await de.lock();qt?.()}catch(hn){qt?.(),ce?.showError?.(hn)}}).update({state:Oe,label:()=>Oe?"Unprotect Sheet":"Protect Sheet",scopedLabels:{sheet:Oe?"Unprotect":"Protect"}}),he.getCommand("deleteTable").update(Te),he.getCommand("sortAscending").update(Te),he.getCommand("sortDescending").update(Te),he.getCommand("sortCustom")?.update(Te),he.getCommand("updateComments").update(Te),he.getCommand("deleteComments").update(Te),he.getCommand("insertChart")?.update(Te),he.getCommand("insertImageFromFile").update(Te),he.getCommand("insertImageFromURL").update(Te),he.getCommand("formatBorder").update(Te),he.getCommand("formatFillColor").update(Te),he.getCommand("formatFontColor").update(Te),he.getCommand("formatBoldToggle").update(Te),he.getCommand("formatItalicToggle").update(Te),he.getCommand("formatUnderlinedToggle").update(Te),he.getCommand("formatStrikeThroughToggle").update(Te),he.getCommand("formatSuperscriptToggle").update(Te),he.getCommand("formatSubscriptToggle").update(Te),he.getCommand("formatAlignTopToggle").update(Te),he.getCommand("formatTextOverflowVisibleToggle").update(Te),he.getCommand("formatTextOverflowWrapToggle").update(Te),he.getCommand("formatTextOverflowClipToggle").update(Te),he.getCommand("formatTextOverflowShrinkToggle").update(Te),he.getCommand("formatAlignMiddleToggle").update(Te),he.getCommand("formatAlignBottomToggle").update(Te),he.getCommand("formatAlignDistributedVerticalToggle").update(Te),he.getCommand("formatAlignJustifyVerticalToggle").update(Te),he.getCommand("formatAlignLeftToggle").update(Te),he.getCommand("formatAlignCenterToggle").update(Te),he.getCommand("formatAlignRightToggle").update(Te),he.getCommand("formatAlignJustifyToggle").update(Te),he.getCommand("formatAlignCenterContinuousToggle").update(Te),he.getCommand("formatAlignDistributedHorizontalToggle").update(Te),he.getCommand("formatAlignFillToggle").update(Te),he.getCommand("formatFontSizeIncrease").update(Te),he.getCommand("formatFontSizeDecrease").update(Te),he.getCommand("formatFontFamily").update(Te),he.getCommand("formatFontSize").update(Te),he.getCommand("formatNumberFormat").update(Te),he.getCommand("formatNumberFormatGeneralStyle").update(Te),he.getCommand("formatNumberFormatNumberStyle").update(Te),he.getCommand("formatNumberFormatTimeStyle").update(Te),he.getCommand("formatNumberFormatDateStyle").update(Te),he.getCommand("formatNumberFormatAccountingStyle").update(Te),he.getCommand("formatNumberFormatPercentStyle").update(Te),he.getCommand("formatNumberFormatScientificStyle").update(Te),he.getCommand("formatNumberFormatCommaStyle").update(Te),he.getCommand("formatNumberFormatIncreaseDecimal").update(Te),he.getCommand("formatNumberFormatDecreaseDecimal").update(Te),he.getCommand("hideColumns").update(Te),he.getCommand("unhideColumns").update(Te),he.getCommand("hideRows").update(Te),he.getCommand("unhideRows").update(Te),he.getCommand("quickFormulaSum").update(Te),he.getCommand("quickFormulaAverage").update(Te),he.getCommand("quickFormulaCount").update(Te),he.getCommand("quickFormulaMax").update(Te),he.getCommand("quickFormulaMin").update(Te),he.getCommand("startEditCurrentTime").update(Te),he.getCommand("startEditCurrentDate").update(Te),he.getCommand("startEditValueAbove").update(Te),he.getCommand("fillDown").update(Te),he.getCommand("fillRight").update(Te),he.getCommand("fillUp").update(Te),he.getCommand("fillLeft").update(Te),he.getCommand("formatCellStyle").update(Te),he.getCommand("formatTableStyle").update(Te),he.getCommand("formatPainterToggle").update(Te),he.getCommand("formatBorderAddOutline").update(Te),he.getCommand("formatBorderClearOutline").update(Te),he.getCommand("formatIndentDecrease").update(Te),he.getCommand("formatIndentIncrease").update(Te),he.getCommand("clearContents").update(Te),he.getCommand("clearFormats").update(Te),he.getCommand("clearAll").update(Te),he.getCommand("clearComments").update(Te),he.getCommand("clearHyperlinks").update(Te),he.getCommand("autoFilterClear").update(Te),he.getCommand("autoFilterReapply").update(Te);const Ye=Xr===N.ITextFrame.HorizontalAlignment.CenterContinuous||Xr===N.ITextFrame.HorizontalAlignment.Fill,ot={disabled:Ze||Ye};he.getCommand("formatTextRotate0").update(ot),he.getCommand("formatTextRotate45").update(ot),he.getCommand("formatTextRotate90").update(ot),he.getCommand("formatTextRotate270").update(ot),he.getCommand("formatTextRotate315").update(ot),he.getCommand("formatTextRotateCustom").update(ot),he.getCommand("formatTextRotateVertical").update(ot)},[Qs]),he}({sheet:n,commands:m,target:Bt,onRepeatCommandChange:g,bodyStyle:Z,notifier:F,onStartEdit:lt,getViewport:Jt}),[Kt,kn]=d.useState(n.getSelection().isEntire()),[Tn,Qn]=d.useState(J?.getMovableSelection().length>0),zn=ne!==null||Tn,mo=null,[wn,Qt]=d.useState(!1);d.useEffect(()=>{Qt(!1)},[n.getProtection()]);const Rn=Be(()=>{wn||(Qt(!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:G1}))},[F,wn]),Jn=d.useMemo(()=>{const Re=rt.getMode();return Re?.cursor?Re.cursor:null},[mo,rt]),[vn,In]=d.useState(null),sn=d.useRef(!1),[Io,Yo]=d.useState([]),Dr=d.useRef(null),[Jo,Kr]=d.useState(Cs.EmptyTopLeft),[Qo,Lr]=d.useState(Cs.EmptyTopLeft);d.useEffect(()=>{Kr({left:ft?.left,top:0})},[ft?.left]),d.useEffect(()=>{Lr({left:0,top:ft?.top})},[ft?.top]),Zt(n?.getView(),{onFreezeSplitChange:()=>{Ke(Qe(n.getView().getFreezePanes()))},onTopLeftChange:()=>{ut(n.getView().getTopLeft())},onMovableSelectionChange:()=>{Qn(n.getView().getMovableSelection().length>0)}}),Zt(n?.getSelection(),{onChange:()=>{kn(n.getSelection().isEntire())}}),Zt(n,{onViewChange(){ae(n.getView()),Ue(Xe())},onLayoutChange:()=>{const Re=n.getEntireRange();ze({height:Re.getRowCount(),width:Re.getColumnCount()}),Ue(Xe())},onStyleChange:()=>{Ae()},onMovablesChange:()=>{},onInvalidated:()=>{Ae()}}),Zt(n,{onRequestScrollIntoView:async(Re,se)=>{if(!se)return;const st={colIndex:se?.coords.colStart,rowIndex:se?.coords.rowStart};return await fe.current?.scrollCellCoordsIntoView(st,se?.scroll),!0},onRequestFocus:()=>Ht.whenFocus(zo.current)},$R);const li=d.useMemo(()=>{const Re=(st,gt)=>{sn.current=!0,In([G=>{if(!G.toClipBounds(G.getRangeCoordsBounds({rowStart:0,rowEnd:De.height,colStart:st,colEnd:st})))return;const K=G.getLayout(),ce=Math.max(0,K.getColOffset(st)),pe=G.getBounds(),Le=Math.min(pe.x+pe.width,K.getColOffset(st+1)),Ge=G.getAnchor();if(gt!==null&&(Ge===fo.Left||Ge===fo.Center||Ge===fo.Right)){const un=Ht.roundAccurately(gt*Ht.getDPI(),0),Dt=Ht.roundAccurately(n?.getColumnWidthAsFontUnit(gt/Ce),2).toFixed(2),Ot="Width: "+(gt?Dt+" ("+un+" pixels)":"Hidden"),Bn=kt.current.getGridElement().getRelativePointFromClient(0,0),ct=0-Bn.y,Gt=0-Bn.y+ve,no={x:ce-(Bn.x-pe.x),y:ct,width:Le-ce,height:Gt-ct};requestAnimationFrame(()=>{sn.current&&U?.({anchor:no,display:Ot})})}const He=[0,0,0,pe.height],_t={style:{boxShadow:`0.5px 0px 0px 0px ${o?.body?.fill}`},pathProps:{stroke:me}},It={x:ce-1,y:0,width:1,height:pe.height},jt={style:{boxShadow:`-0.5px 0px 0px 0px ${o?.body?.fill}`},pathProps:{stroke:me}},Pt={x:Le-1,y:0,width:1,height:pe.height};return a.jsxs(d.Fragment,{children:[a.jsx(vl,{linePoints:He,bounds:It,..._t}),a.jsx(vl,{linePoints:He,bounds:Pt,...jt})]},"resize-dividers")}])};let se=null;return{onResizeHeadersStart:(st,gt,G)=>{se=n.beginCommit(G),Re(st,gt)},onResizeHeaders:(st,gt,G)=>{Re(st,gt)},onResizeHeadersDown:(st,gt)=>{Re(st,gt)},onResizeHeadersEnd:(st,gt,G)=>{se?.commit({description:G}),se=null,requestAnimationFrame(()=>ee?.()),sn.current=!1,In(null)},onResizeHeadersUp:st=>{requestAnimationFrame(()=>ee?.()),sn.current=!1,In(null)},...c}},[n,c,ve,vn]),Or=d.useMemo(()=>{const Re=(st,gt)=>{sn.current=!0,In([G=>{if(!G.toClipBounds(G.getRangeCoordsBounds({rowStart:st,rowEnd:st,colStart:0,colEnd:De.width})))return;const K=G.getLayout(),ce=Math.max(0,K.getRowOffset(st)),pe=G.getBounds(),Le=Math.min(pe.y+pe.height,K.getRowOffset(st+1)),Ge=G.getAnchor();if(gt!==null&&(Ge===fo.Top||Ge===fo.Center||Ge===fo.Bottom)){const un=Math.floor(10*Ht.getDPI())/10,Dt=Ht.roundAccurately(gt*un,0),Ot=Ht.roundAccurately(Dt/Ce/(n?.getRowHeaders().getScaleFactor()*Ht.getDPI()),2).toFixed(2),Bn="Height: "+(gt?Ot+" ("+Dt+" pixels)":"Hidden"),ct=_e.current.getGridElement().getRelativePointFromClient(0,0),Gt=0-ct.x,no=0-ct.x+bt,Nt={x:Gt,y:ce-(ct.y-pe.y),width:no-Gt,height:Le-ce};requestAnimationFrame(()=>{sn.current&&X?.({anchor:Nt,display:Bn})})}const He=[0,0,pe.width,0],_t={style:{boxShadow:`0px 0.5px 0px 0px ${o?.body?.fill}`},pathProps:{stroke:me}},It={x:0,y:ce-1,width:pe.width,height:1},jt={style:{boxShadow:`0px -0.5px 0px 0px ${o?.body?.fill}`},pathProps:{stroke:me}},Pt={x:0,y:Le-1,width:pe.width,height:1};return a.jsxs(d.Fragment,{children:[a.jsx(vl,{linePoints:He,bounds:It,..._t}),a.jsx(vl,{linePoints:He,bounds:Pt,...jt})]},"resize-dividers")}])};let se=null;return{onResizeHeadersStart:(st,gt,G)=>{se=n.beginCommit(G),Re(st,gt)},onResizeHeaders:(st,gt,G)=>{Re(st,gt)},onResizeHeadersDown:(st,gt)=>{Re(st,gt)},onResizeHeadersEnd:(st,gt,G)=>{se?.commit({description:G}),se=null,requestAnimationFrame(()=>ee?.()),sn.current=!1,In(null)},onResizeHeadersUp:st=>{requestAnimationFrame(()=>ee?.()),sn.current=!1,In(null)},...u}},[n,u,bt]),zo=Gr(t,()=>{const Re=st=>{n?.getView()&&n.getView().selectMovables([]),vt.current=null,fe?.current?.focus(st)},se=async(st=null)=>{if(st||(st=n?.getView().getMovableSelection()[0]),!st)return!1;const gt=st.getAnchorCoords();if(!gt)return!1;const G=fe.current?.getViewFromCellCoords({colIndex:gt.colStart,rowIndex:gt.rowStart});if(!G)return!1;const K=G.getAnchor();n?.getView().getMovableSelection().indexOf(st)===-1&&n?.getView().selectMovables([st]);let ce=Ne.current?.get(K);return ce?.current?(await ce.current.focusMovable(st),!0):(vt.current={movable:st,anchor:K},!0)};return{getGridElement:()=>fe.current,getRowHeaderElement:()=>_e.current,getColumnHeaderElement:()=>kt.current,rowHeaderHeight:()=>ve,colHeaderWidth:()=>bt,startEdit:lt,submitEdit:()=>{rt.setMode(st=>st?.key!=="edit"?st:{key:"edit",args:{stateAndCoords:null,submit:!0}})},cancelEdit:()=>{rt.setMode(st=>st?.key!=="edit"?st:{key:"edit",args:{stateAndCoords:null,cancel:!0}})},isEditing:ne!==null,focus:st=>{n?.getView().getMovableSelection().length>0&&se()||Re(st)},focusSheet:Re,focusMovable:se,contains:st=>fe?.current?.contains?.(st),invalidate:Ae,isSheetElement:()=>!0,getSheet:()=>n}},[n]),Ae=d.useCallback(Re=>{H.current||(fe?.current?.invalidate(Re),D?.())},[]);d.useEffect(()=>{Ae()},[z]);const Je=Kt?ie.edgeStrokeFill:Y.fill,tt=Kt?te.fill:typeof z.headerHover=="function"?z.headerHover(Y)?.fill:Y.fill,qe=d.useMemo(()=>b?a.jsx("div",{className:br("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 it=null;oe&&ue&&(it=a.jsxs("div",{tabIndex:-1,className:"top-left-corner",style:{padding:"2 2",position:"absolute",height:`${ve}px`,width:`${bt}px`,zIndex:1,boxSizing:"border-box",cursor:"cell"},onMouseDown:Re=>{let se=!Re.ctrlKey;Wt?.getCommand("selectAll")?.execute(!se||Re.button!==0),Re.nativeEvent.which===Ex?i?.({originalEvent:Re,clientX:Re.clientX,clientY:Re.clientY,rowIndex:-1,colIndex:-1}):fe.current?.focus()},children:[a.jsx("div",{style:{height:ve-5+"px",width:ve-5+"px",clipPath:`path('M${ve-5} 0 L0 ${ve-5} L${ve-5} ${ve-5} L${ve-5} 0 Z')`,borderRight:`2px solid ${Je}`,borderBottom:`2px solid ${Je}`,background:`${tt}`,boxSizing:"border-box",position:"absolute",right:"2px",bottom:"2px"}}),a.jsx("div",{style:{position:"absolute",height:`${ve}px`,width:`${bt}px`,boxSizing:"border-box",borderRight:`solid 1px ${Y.strokeFill}`,borderBottom:`solid 1px ${Y.strokeFill}`,right:"-1px",bottom:"-1px"}})]}));const St=Be(({_left:Re,_top:se})=>{},[]),Et=Be(Re=>{if(!i)return;const se=fe.current.getViewFromClient(Re.clientX,Re.clientY)?.getCellCoordsFromClient(Re.clientX,Re.clientY);se&&(i({originalEvent:Re,clientX:Re.clientX,clientY:Re.clientY,rowIndex:se.rowIndex,colIndex:se.colIndex}),Re.stopPropagation(),Re.preventDefault())},[i]),Ct=Be(Re=>{if(Re.shiftKey||!Re.ctrlKey&&!Re.metaKey)return;const{deltaY:se}=Re;return se>0?Wt.getCommand("sheetZoomOut")?.execute():se<0&&Wt.getCommand("sheetZoomIn")?.execute(),se===0},[Wt]);d.useEffect(()=>{Yo(null),Dr.current=null,sn.current=!1,In(null);const Re=n?.getView().getTopLeft();St(Re),fe.current?.scrollTo(Re),ut(Re),ae(n.getView()),Ke(Qe(n.getView().getFreezePanes())),Ue(Xe()),D()},[n?.getView()]);const Rt=Be(Re=>{const se=Re.getVisibleRangeCoords();if(!se)return null;const st=[];return n.getRange(se).forEach((gt,G)=>{const K=G.getCoords(),ce=G.getCell();(pe=>{if(pe.isEmpty())return!1;const Le=pe.getSpans();if(Le.width>1||Le.height>1||pe.getStyle().hasVisibleStyling()||J.isShowFormulas()&&pe.getFormula()!==null)return!0;const Ge=pe.getValue();return Ge!==null&&!(!J.isShowZeros()&&Ge===0&&pe.getType()===N.ScalarType.Number)})(ce)&&st.push({coords:K,value:ce,range:J.isShowFormulas()?null:ce.getExtrusions()})},{excludeHidden:!0,includeMergeOverflow:!0}),st},[n,J.isShowZeros(),J.isShowFormulas(),ne]);d.useEffect(()=>{const Re=[];y&&Re.push(...y),vn&&Re.push(...vn),Ht.isEqualArrays(Re,Dr.current)||(Dr.current=Re,Yo(Re))},[y,vn,z]);const Tt=d.useMemo(()=>({style:{boxShadow:`0.5px 0.5px 0px 0px ${o?.body?.fill}`},pathProps:{stroke:o?.body?.text?.fill??"black"}}),[z?.header?.edgeStrokeFill]),nn=Be(Re=>{Re.isDefaultPrevented()||Re.isPropagationStopped()||(vt.current=null,n?.getView().getMovableSelection().length>0&&n.getView().selectMovables([]))},[n]),Sn=d.useMemo(()=>{const Re=rt.getMode();return Re?.key==="cut"||Re?.key==="copy"},[rt]),cn=Be(async Re=>{const se=rt.getMode();return Re.keyCode===E3&&se?(Re.preventDefault(),void rt.setMode(null)):Re.keyCode===Cx&&Sn?(Re.preventDefault(),await Wt?.getCommand("paste")?.execute(),void rt.setMode(null)):void Wt?.dispatchToFocusedCommand(Re)},[Wt,rt]),_e=d.useRef(null),pt=d.useMemo(()=>a.jsx("div",{tabIndex:-1,style:{position:"relative",flex:"0",top:`${ve+1}px`,width:`${bt+Y.edgeStrokeWidth}px`,minWidth:`${bt+Y.edgeStrokeWidth}px`,borderRight:`solid ${Y.edgeStrokeWidth}px ${Y.edgeStrokeFill}`,height:`calc(100% - ${ve}px)`,boxSizing:"border-box",zIndex:"2"},children:a.jsx(gf,{ref:_e,sheetElement:zo.current,gridRef:fe,freezeStart:nt?.[fo.Top],oppositeSize:bt,containerWidth:bt,containerHeight:xt,sheetHeader:n.getRowHeaders(),gridStyle:q,verticalPadding:Math.max(0,Math.floor(n.getStyles().getNormal().getFont().getSize()/10)),scrollPoint:Qo,onSheetContextMenu:i,tabIndex:-1,style:{position:"relative",flex:"0",top:`${ve+1}px`,width:`${bt+Y.edgeStrokeWidth}px`,minWidth:`${bt+Y.edgeStrokeWidth}px`,borderRight:`solid ${Y.edgeStrokeWidth}px ${Y.edgeStrokeFill}`,height:`calc(100% - ${ve}px)`,boxSizing:"border-box",zIndex:"2",...Or?.style},...Or})}),[bt,ve,xt,n,Qo,nt?.[fo.Top],z,ke,i,Y.fill,u]),kt=d.useRef(null),dn=d.useMemo(()=>a.jsx("div",{tabIndex:-1,style:{position:"relative",left:"0px",width:"100%",height:`${ve+Y.edgeStrokeWidth}px`,minHeight:`${ve+Y.edgeStrokeWidth}px`,borderBottom:`solid ${Y.edgeStrokeWidth}px ${Y.edgeStrokeFill}`,boxSizing:"border-box",zIndex:"1"},children:a.jsx(gf,{ref:kt,sheetElement:zo.current,gridRef:fe,freezeStart:nt?.[fo.Left],oppositeSize:ve,containerWidth:dt,containerHeight:ve,sheetHeader:n.getColumnHeaders(),gridStyle:q,scrollPoint:Jo,onSheetContextMenu:i,...li,style:{...li?.style,position:"relative",left:"0px",width:"100%",height:`${ve+Y.edgeStrokeWidth}px`,minHeight:`${ve+Y.edgeStrokeWidth}px`,borderBottom:`solid ${Y.edgeStrokeWidth}px ${Y.edgeStrokeFill}`,boxSizing:"border-box",zIndex:"1"}})}),[ve,dt,n,Jo,nt?.[fo.Left],z,Y.fill,ke,i,c]),en=Be(Re=>{const{value:se,key:st,...gt}=Re;let G=se,K=ne;if(!K||K.colIndex===Re.coords.colIndex&&K.rowIndex===Re.coords.rowIndex||(K=null),!G){const Le=Re.range;if(G=n.getRange({rowIndex:Le.rowStart,colIndex:Le.colStart}).getCell(),G.isEmpty())return null}let ce=null;G.getHyperlink()&&(ce=async Le=>{if(T?.onLinkMouseDown?.(Le),Le.button===0&&!Le.isDefaultPrevented()){Le.stopPropagation(),Le.preventDefault();try{await G.getHyperlink()?.open()}catch(Ge){F?.showError?.(Ge)}}}),K&&K.colIndex===Re.range.colStart&&K.rowIndex===Re.range.rowStart&&(G=G.createTemporaryCell({value:null}));const pe=n.getStyles();return d.createElement(rR,{...gt,key:st,bodyStyle:Z,docTheme:pe.getTheme(),normalStyle:pe.getNormal(),showFormulas:J.isShowFormulas(),showZeros:J.isShowZeros(),onLinkMouseDown:ce,...T,value:G})},[n,le,Z,ne,J?.isShowFormulas(),J.isShowZeros()]),wt=d.useCallback((Re,se)=>{const{key:st,...gt}=Re;return[a.jsx(xR,{ref:se,getVisibleCells:Rt,sheet:n,gridStyle:z,...gt},`border-${st}`),a.jsx(NR,{ref:se,sheet:n,commands:Wt,...gt},`table-${st}`),a.jsx(VR,{ref:se,sheet:n,...gt},`spill-${st}`),a.jsx(IR,{ref:se,sheet:n,commands:Wt,notifier:F,onShowTooltip:P,onCloseTooltip:ee,gridStyle:z,gridRef:fe,editingCoords:ne,isActive:ke,...gt},`selection-${st}`),a.jsx(ER,{ref:se,sheet:n,commands:Wt,gridStyle:z,element:Ie,notifier:F,...gt},`copy-paste-${st}`),a.jsx(AR,{ref:se,sheet:n,commands:Wt,target:Bt,notifier:F,renderMovable:w,movableProps:{onUnFocus:()=>{zo.current.focus()}},...gt},`movable-${st}`),a.jsx(FR,{ref:se,sheet:n,commands:Wt,notifier:F,gridStyle:z,getCellEditor:_,showProtectedError:Rn,setEditingCoords:be,...gt},`editor-${st}`)]},[n,fe.current,z,_,Wt,F]),[Ut,Bo]=d.useState(!1),qo=d.useMemo(()=>{if(dt===0||xt===0)return null;const Re=n.getStyles().getNormal(),se=Re.getFont(),st=Re.getFill(),gt=Re.getBorder(),G=Re.getFill().getType()===N.IFill.Type.None;let K=re,ce=re;const pe=(Ge,He,_t)=>_t?{stroke:gt.getBottom().isNone()?"none":Ge.getColor().toRGBA(Z.darkMode).toString(),...He}:He;ce=pe(gt.getBottom(),ce,!gt.getBottom().isNone()),ce=pe(gt.getTop(),ce,!gt.getTop().isNone()),K=pe(gt.getRight(),K,!gt.getRight().isNone()),K=pe(gt.getLeft(),K,!gt.getLeft().isNone());let Le=J?.getGridLineColor()?.toRGBA(Z.darkMode).toString()??Z.strokeFill;return G||(ce=pe(gt.getBottom(),ce,!0),ce=pe(gt.getTop(),ce,!0),K=pe(gt.getRight(),K,!0),K=pe(gt.getLeft(),K,!0)),a.jsx(Ed,{className:"sheetxl-sheet-primary",style:{...HR,...st.toCSS(Z.darkMode),...se.toCSS(Z.darkMode,Ce),"--sxl-app-color-background":Z.fill,"--sxl-app-color-shadow":z.colorShadow,"--sxl-app-color-grey":z.colorGrey,"--sxl-app-color-button-fill":Q.fill,"--sxl-app-color-button-text":Q.text?.fill,"--sxl-app-color-button-border":Q.edgeStrokeFill,"--sxl-app-color-primary-dark":z.selection.strokeFill},ref:fe,zoom:Ce,...I,onFirstRender:Ge=>{Bo(!0),I?.onFirstRender?.(Ge),Wt?.activate()},showGridLines:Me,gridLineColor:Le,gridLineColumnsProps:K,gridLineRowsProps:ce,freezeLeft:nt?.[fo.Left],freezeLeftProps:Tt,freezeTop:nt?.[fo.Top],freezeTopProps:Tt,width:dt,height:xt,columnCount:De.width,rowCount:De.height,cursor:Jn??mo??"cell",clipCells:!0,layout:le,cellRenderer:en,overlayRenderer:wt,getCellCoordsAsRangeCoords:Pe,getVisibleCells:Rt,onWheelScroll:Ct,onPointerDown:nn,onKeyDown:cn,onViewportChange:Ee,onImmediateScroll:St,scrollPoint:ft,stageProps:{onFocus:()=>{Wt?.activate()}},overlays:Io})},[A]);d.useEffect(()=>{H.current||D()},[le,nt,Ce,Wt,ft?.left,ft?.top,Z,I,dt,xt,Jn,Io,ke,mo]);let Xt={flex:"1 1 100%",display:"flex",alignContent:"stretch",position:"relative"};h||(Xt={...Xt,...j});const Mn=d.useMemo(()=>{const Re=n.getStyles().getTheme(),se=Re.getColorScheme(),st=Re.getFontScheme();return{"--sxl-doc-color-dk1":se.getDk1().toCSS(Z.darkMode),"--sxl-doc-color-dk2":se.getDk2().toCSS(Z.darkMode),"--sxl-doc-color-lt1":se.getLt1().toCSS(Z.darkMode),"--sxl-doc-color-lt2":se.getLt2().toCSS(Z.darkMode),"--sxl-doc-color-accent1":se.getAccent1().toCSS(Z.darkMode),"--sxl-doc-color-accent2":se.getAccent2().toCSS(Z.darkMode),"--sxl-doc-color-accent3":se.getAccent3().toCSS(Z.darkMode),"--sxl-doc-color-accent4":se.getAccent4().toCSS(Z.darkMode),"--sxl-doc-color-accent5":se.getAccent5().toCSS(Z.darkMode),"--sxl-doc-color-accent6":se.getAccent6().toCSS(Z.darkMode),"--sxl-doc-color-hlink":se.getHlink().toCSS(Z.darkMode),"--sxl-doc-color-fol-hlink":se.getFolHlink().toCSS(Z.darkMode),"--sxl-doc-font-major":st.getMajorFont(),"--sxl-doc-font-minor":st.getMinorFont()}},[n.getStyles().getTheme()]);let mn=a.jsx("div",{style:Xt,onTouchStart:()=>{to()},onFocus:Re=>{Se(!0),E?.(Re)},onBlur:Re=>{Se(!1),M?.(Re)},ref:zo,...R,children:a.jsx("div",{className:br("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",...Mn},children:a.jsxs("div",{style:{display:"flex",flexDirection:"row",flex:"1 1 100%"},children:[it,pt,a.jsxs("div",{style:{display:"flex",flexDirection:"column",flex:"1 1 100%",overflow:"hidden",position:"relative"},children:[dn,a.jsxs("div",{style:{display:"flex",flexDirection:"column",flex:"1 1 100%",position:"relative",borderRight:`solid ${Y.edgeStrokeWidth}px ${Y.edgeStrokeFill}`,backgroundColor:Z.fill},ref:L,onContextMenu:Et,children:[qo,qe,a.jsx(mR,{style:{position:"absolute",right:24,bottom:4},colorLicensee:z?.selection?.strokeFill,colorCredits:z?.body?.text?.fill})]})]})]})})});if(h){const Re=se=>a.jsx(Y1,{...se,sheet:n});mn=a.jsx(Ax,{style:{flex:"1 1 100%",overflow:"hidden",background:`${Y.fill}`,minHeight:2*mt.height,minWidth:2*mt.width,...j},viewport:we,touchElement:fe.current?.stage,disableTouch:zn,onScrollViewport:se=>{fe.current?.scrollTo(se)},createHorizontalScrollbar:Re,createVerticalScrollbar:Re,...f,children:mn})}d.useEffect(()=>{H.current=!1,D?.(),ye&&zo.current?.focus()},[n]);const[Dn,fn]=d.useState(!1),to=Be(()=>{Dn||fn(!0)},[Dn]);return d.useEffect(()=>{if(Ut)return typeof C=="function"&&C(),bn.detectIt().primaryInput==="touch"&&to(),()=>{}},[C,Ut,Dn]),mn}));ey.displayName="SheetElement",Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"}));const vf="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=",ty=d.memo(d.forwardRef((e,t)=>{const{children:n,disabled:o,style:r,picture:i,description:l,isDragging:c,view:s,onHide:u,onShow:h,onKeyDownCapture:f,onFocus:p,onBlur:m,loadingPanel:g,...x}=e,[y,w]=d.useState(!1),[b,C]=d.useState(null),[_,E]=d.useState(null),[M,j]=d.useState(null);d.useEffect(()=>{E(null),i.getDetails().then(O=>{w(!1),E(O.asUrl()),O.asSVGText?.()&&j(O.asSVGText())}).catch(O=>{console.warn(O),w(!0),E(vf),j(null)})},[i]);const F=Gr(t,()=>({isPictureEditor:()=>!0}),[]),k=d.useMemo(()=>{if(_||M)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:_,onLoad:()=>{C(!0)},onError:({currentTarget:O})=>{console.log("error"),O.onerror=null,E(vf),w(!0)},alt:l??`${i.getType()}`})},[b,i,_,M,c]);if(!i.isClosed())return a.jsxs("div",{className:"picture-editor",style:{position:"relative",display:"flex",flex:"1 1 100%",filter:c?"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:O=>{f?.(O)},ref:F,children:[b||y?void 0:g,k]})}));ty.displayName="PictureEditor";const WR=d.memo(d.forwardRef((e,t)=>{const{children:n,disabled:o,chart:r,view:i,isDragging:l,onHide:c,onShow:s,...u}=e;d.useEffect(()=>{},[r]);const h=Gr(t,()=>({isChartEditor:()=>!0}),[]),[f,{height:p,width:m}]=q0();if(!r.isClosed())return a.jsx("div",{...u,ref:Xl([h,f]),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()})})})})),UR=e=>a.jsx("input",{...e}),qR=d.memo(d.forwardRef((e,t)=>{const{style:n={},className:o,value:r="",onSubmit:i,onChange:l,onCancel:c,createInput:s=UR,notifier:u,styleHover:h={},dragging:f,maxLength:p,disabled:m=!1,readOnly:g=!1,...x}=e,[y,w]=d.useState(!1),[b,C]=d.useState(!1),[_,E]=d.useState(r);d.useEffect(()=>{E(r)},[r]);const M=d.useRef(null),[j,F]=d.useState(null),k=d.useCallback(function(A){const D=A.message;j!==D&&(u?.showMessage?.(D,{type:G1}),F(D))},[u,j]),O=d.useCallback(A=>{let D=!1;try{D=i?.(A)??!0}catch(L){k(L)}return D?(M.current=null,C(!1),E(A),D):(setTimeout(()=>{M.current?.focus()},0),D)},[i]),S=Be(()=>{E(r),M.current=null,C(!1),c?.()},[c,r]),v=d.useMemo(()=>{if(!b)return null;const A={className:br("_editable-input_1bqx6_6"),autoFocus:!0,spellCheck:!1,name:"editable-label",autoComplete:"off",maxLength:p,type:"text",value:_,onFocus:D=>{M.current||(M.current=D.target,setTimeout(()=>{D.target?.select()},0))},onBlur:D=>{M.current&&O(_)},onChange:D=>{b&&E(D.target.value)},onMouseDown:D=>D.stopPropagation(),onKeyDown:D=>D.code==="Escape"?(D.preventDefault(),void S()):D.code==="Enter"?(D.preventDefault(),void O(D.target.value)):void(D.code!=="Tab"?D.stopPropagation():O(D.target.value))};return a.jsx(a.Fragment,{children:s(A)})},[b,_,O,S,s,m]),[I,T]=d.useState();d.useLayoutEffect(()=>{let A=Object.assign({},n);(f||y)&&(A=Object.assign(A,h)),T(A)},[f,y,h,n]),d.useEffect(()=>{v&&l?.(_)},[v,l,_]);const R=Gr(t,()=>({startEdit(){m||g||C(!0)},cancel(){S()}}),[]);return a.jsxs("div",{...x,ref:R,style:{flexDirection:"column",display:"flex",...I},className:br(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:()=>w(!0),onMouseLeave:()=>w(!1),children:[a.jsx("div",{className:"editable-label-container",style:{textAlign:"center",display:"flex",minHeight:"1em",marginTop:"2px",opacity:b?0:1},children:_}),v]}),a.jsx("div",{style:{whiteSpace:"pre",position:"relative",maxHeight:"0px",height:"0px",visibility:"hidden",marginLeft:"1px",marginRight:"1px",overflow:"hidden",...h},children:_})]})})),kd=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0;function Yl(e){const t=Object.prototype.toString.call(e);return t==="[object Window]"||t==="[object global]"}function M3(e){return"nodeType"in e}function hr(e){var t,n;return e?Yl(e)?e:M3(e)&&(t=(n=e.ownerDocument)==null?void 0:n.defaultView)!=null?t:window:window}function R3(e){const{Document:t}=hr(e);return e instanceof t}function qs(e){return!Yl(e)&&e instanceof hr(e).HTMLElement}function ny(e){return e instanceof hr(e).SVGElement}function Wl(e){return e?Yl(e)?e.document:M3(e)?R3(e)?e:qs(e)||ny(e)?e.ownerDocument:document:document:document}const oi=kd?d.useLayoutEffect:d.useEffect;function Td(e){const t=d.useRef(e);return oi(()=>{t.current=e}),d.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 os(e,t){t===void 0&&(t=[e]);const n=d.useRef(e);return oi(()=>{n.current!==e&&(n.current=e)},t),n}function Ga(e,t){const n=d.useRef();return d.useMemo(()=>{const o=e(n.current);return n.current=o,o},[...t])}function f1(e){const t=Td(e),n=d.useRef(null),o=d.useCallback(r=>{r!==n.current&&t?.(r,n.current),n.current=r},[]);return[n,o]}function J1(e){const t=d.useRef();return d.useEffect(()=>{t.current=e},[e]),t.current}let Hu={};function js(e,t){return d.useMemo(()=>{if(t)return t;const n=Hu[e]==null?0:Hu[e]+1;return Hu[e]=n,e+"-"+n},[e,t])}function oy(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 c=Object.entries(l);for(const[s,u]of c){const h=i[s];h!=null&&(i[s]=h+e*u)}return i},{...t})}}const _l=oy(1),Ms=oy(-1);function jd(e){if(!e)return!1;const{KeyboardEvent:t}=hr(e.target);return t&&e instanceof t}function Q1(e){if(function(t){if(!t)return!1;const{TouchEvent:n}=hr(t.target);return n&&t instanceof n}(e)){if(e.touches&&e.touches.length){const{clientX:t,clientY:n}=e.touches[0];return{x:t,y:n}}if(e.changedTouches&&e.changedTouches.length){const{clientX:t,clientY:n}=e.changedTouches[0];return{x:t,y:n}}}return function(t){return"clientX"in t&&"clientY"in t}(e)?{x:e.clientX,y:e.clientY}:null}const Z0=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[Z0.Translate.toString(e),Z0.Scale.toString(e)].join(" ")}},Transition:{toString(e){let{property:t,duration:n,easing:o}=e;return t+" "+n+"ms "+o}}}),Sf="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function ZR(e){return e.matches(Sf)?e:e.querySelector(Sf)}const GR={display:"none"};function KR(e){let{id:t,value:n}=e;return d.createElement("div",{id:t,style:GR},n)}function XR(e){let{id:t,announcement:n,ariaLiveType:o="assertive"}=e;return d.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 ry=d.createContext(null),YR={draggable:`
|
|
80
|
+
To pick up a draggable item, press the space bar.
|
|
81
|
+
While dragging, use the arrow keys to move the item.
|
|
82
|
+
Press space again to drop the item in its new position, or press escape to cancel.
|
|
83
|
+
`},JR={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 QR(e){let{announcements:t=JR,container:n,hiddenTextDescribedById:o,screenReaderInstructions:r=YR}=e;const{announce:i,announcement:l}=function(){const[f,p]=d.useState("");return{announce:d.useCallback(m=>{m!=null&&p(m)},[]),announcement:f}}(),c=js("DndLiveRegion"),[s,u]=d.useState(!1);if(d.useEffect(()=>{u(!0)},[]),function(f){const p=d.useContext(ry);d.useEffect(()=>{if(!p)throw new Error("useDndMonitor must be used within a children of <DndContext>");return p(f)},[f,p])}(d.useMemo(()=>({onDragStart(f){let{active:p}=f;i(t.onDragStart({active:p}))},onDragMove(f){let{active:p,over:m}=f;t.onDragMove&&i(t.onDragMove({active:p,over:m}))},onDragOver(f){let{active:p,over:m}=f;i(t.onDragOver({active:p,over:m}))},onDragEnd(f){let{active:p,over:m}=f;i(t.onDragEnd({active:p,over:m}))},onDragCancel(f){let{active:p,over:m}=f;i(t.onDragCancel({active:p,over:m}))}}),[i,t])),!s)return null;const h=d.createElement(d.Fragment,null,d.createElement(KR,{id:o,value:r.draggable}),d.createElement(XR,{id:c,announcement:l}));return n?ao.createPortal(h,n):h}var Lo;function ed(){}function $u(e,t){return d.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 ri=Object.freeze({x:0,y:0});function iy(e,t){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function eI(e,t){const n=Q1(e);return n?(n.x-t.left)/t.width*100+"% "+(n.y-t.top)/t.height*100+"%":"0 0"}function ly(e,t){let{data:{value:n}}=e,{data:{value:o}}=t;return n-o}function tI(e,t){let{data:{value:n}}=e,{data:{value:o}}=t;return o-n}function Cf(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 ay(e,t){if(!e||e.length===0)return null;const[n]=e;return n[t]}function _f(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 nI=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:o}=e;const r=_f(t,t.left,t.top),i=[];for(const l of o){const{id:c}=l,s=n.get(c);if(s){const u=iy(_f(s),r);i.push({id:c,data:{droppableContainer:l,value:u}})}}return i.sort(ly)};function oI(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,c=i-n;if(o<r&&n<i){const s=t.width*t.height,u=e.width*e.height,h=l*c;return Number((h/(s+u-h)).toFixed(4))}return 0}const rI=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:o}=e;const r=[];for(const i of o){const{id:l}=i,c=n.get(l);if(c){const s=oI(c,t);s>0&&r.push({id:l,data:{droppableContainer:i,value:s}})}}return r.sort(tI)};function Ef(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:ri}const iI=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 sy(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 lI={ignoreTransform:!1};function Jl(e,t){t===void 0&&(t=lI);let n=e.getBoundingClientRect();if(t.ignoreTransform){const{transform:u,transformOrigin:h}=hr(e).getComputedStyle(e);u&&(n=function(f,p,m){const g=sy(p);if(!g)return f;const{scaleX:x,scaleY:y,x:w,y:b}=g,C=f.left-w-(1-x)*parseFloat(m),_=f.top-b-(1-y)*parseFloat(m.slice(m.indexOf(" ")+1)),E=x?f.width/x:f.width,M=y?f.height/y:f.height;return{width:E,height:M,top:_,right:C+E,bottom:_+M,left:C}}(n,u,h))}const{top:o,left:r,width:i,height:l,bottom:c,right:s}=n;return{top:o,left:r,width:i,height:l,bottom:c,right:s}}function kf(e){return Jl(e,{ignoreTransform:!0})}function Md(e,t){const n=[];return e?function o(r){if(t!=null&&n.length>=t||!r)return n;if(R3(r)&&r.scrollingElement!=null&&!n.includes(r.scrollingElement))return n.push(r.scrollingElement),n;if(!qs(r)||ny(r)||n.includes(r))return n;const i=hr(e).getComputedStyle(r);return r!==e&&function(l,c){c===void 0&&(c=hr(l).getComputedStyle(l));const s=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(u=>{const h=c[u];return typeof h=="string"&&s.test(h)})}(r,i)&&n.push(r),function(l,c){return c===void 0&&(c=hr(l).getComputedStyle(l)),c.position==="fixed"}(r,i)?n:o(r.parentNode)}(e):n}function cy(e){const[t]=Md(e,1);return t??null}function Wu(e){return kd&&e?Yl(e)?e:M3(e)?R3(e)||e===Wl(e).scrollingElement?window:qs(e)?e:null:null:null}function dy(e){return Yl(e)?e.scrollX:e.scrollLeft}function uy(e){return Yl(e)?e.scrollY:e.scrollTop}function C5(e){return{x:dy(e),y:uy(e)}}var Fo;function hy(e){return!(!kd||!e)&&e===document.scrollingElement}function py(e){const t={x:0,y:0},n=hy(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"})(Fo||(Fo={}));const aI={x:.2,y:.2};function sI(e,t,n,o,r){let{top:i,left:l,right:c,bottom:s}=n;o===void 0&&(o=10),r===void 0&&(r=aI);const{isTop:u,isBottom:h,isLeft:f,isRight:p}=py(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=Fo.Backward,g.y=o*Math.abs((t.top+x-i)/x)):!h&&s>=t.bottom-x&&(m.y=Fo.Forward,g.y=o*Math.abs((t.bottom-x-s)/x)),!p&&c>=t.right-y?(m.x=Fo.Forward,g.x=o*Math.abs((t.right-y-c)/y)):!f&&l<=t.left+y&&(m.x=Fo.Backward,g.x=o*Math.abs((t.left+y-l)/y)),{direction:m,speed:g}}function cI(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 fy(e){return e.reduce((t,n)=>_l(t,C5(n)),ri)}function my(e,t){if(t===void 0&&(t=Jl),!e)return;const{top:n,left:o,bottom:r,right:i}=t(e);cy(e)&&(r<=0||i<=0||n>=window.innerHeight||o>=window.innerWidth)&&e.scrollIntoView({block:"center",inline:"center"})}const dI=[["x",["left","right"],function(e){return e.reduce((t,n)=>t+dy(n),0)}],["y",["top","bottom"],function(e){return e.reduce((t,n)=>t+uy(n),0)}]];class _5{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=Md(n),r=fy(o);this.rect={...t},this.width=t.width,this.height=t.height;for(const[i,l,c]of dI)for(const s of l)Object.defineProperty(this,s,{get:()=>{const u=c(o),h=r[i]-u;return this.rect[s]+h},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}class rs{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 Uu(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 zr,En;function Tf(e){e.preventDefault()}function uI(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"})(zr||(zr={})),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"}(En||(En={}));const gy={start:[En.Space,En.Enter],cancel:[En.Esc],end:[En.Space,En.Enter,En.Tab]},hI=(e,t)=>{let{currentCoordinates:n}=t;switch(e.code){case En.Right:return{...n,x:n.x+25};case En.Left:return{...n,x:n.x-25};case En.Down:return{...n,y:n.y+25};case En.Up:return{...n,y:n.y-25}}};class I3{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 rs(Wl(n)),this.windowListeners=new rs(hr(n)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(zr.Resize,this.handleCancel),this.windowListeners.add(zr.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(zr.Keydown,this.handleKeyDown))}handleStart(){const{activeNode:t,onStart:n}=this.props,o=t.node.current;o&&my(o),n(ri)}handleKeyDown(t){if(jd(t)){const{active:n,context:o,options:r}=this.props,{keyboardCodes:i=gy,coordinateGetter:l=hI,scrollBehavior:c="smooth"}=r,{code:s}=t;if(i.end.includes(s))return void this.handleEnd(t);if(i.cancel.includes(s))return void this.handleCancel(t);const{collisionRect:u}=o.current,h=u?{x:u.left,y:u.top}:ri;this.referenceCoordinates||(this.referenceCoordinates=h);const f=l(t,{active:n,context:o.current,currentCoordinates:h});if(f){const p=Ms(f,h),m={x:0,y:0},{scrollableAncestors:g}=o.current;for(const x of g){const y=t.code,{isTop:w,isRight:b,isLeft:C,isBottom:_,maxScroll:E,minScroll:M}=py(x),j=cI(x),F={x:Math.min(y===En.Right?j.right-j.width/2:j.right,Math.max(y===En.Right?j.left:j.left+j.width/2,f.x)),y:Math.min(y===En.Down?j.bottom-j.height/2:j.bottom,Math.max(y===En.Down?j.top:j.top+j.height/2,f.y))},k=y===En.Right&&!b||y===En.Left&&!C,O=y===En.Down&&!_||y===En.Up&&!w;if(k&&F.x!==f.x){const S=x.scrollLeft+p.x,v=y===En.Right&&S<=E.x||y===En.Left&&S>=M.x;if(v&&!p.y)return void x.scrollTo({left:S,behavior:c});m.x=v?x.scrollLeft-S:y===En.Right?x.scrollLeft-E.x:x.scrollLeft-M.x,m.x&&x.scrollBy({left:-m.x,behavior:c});break}if(O&&F.y!==f.y){const S=x.scrollTop+p.y,v=y===En.Down&&S<=E.y||y===En.Up&&S>=M.y;if(v&&!p.x)return void x.scrollTo({top:S,behavior:c});m.y=v?x.scrollTop-S:y===En.Down?x.scrollTop-E.y:x.scrollTop-M.y,m.y&&x.scrollBy({top:-m.y,behavior:c});break}}this.handleMove(t,_l(Ms(f,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 jf(e){return!(!e||!("distance"in e))}function Mf(e){return!(!e||!("delay"in e))}I3.activators=[{eventName:"onKeyDown",handler:(e,t,n)=>{let{keyboardCodes:o=gy,onActivation:r}=t,{active:i}=n;const{code:l}=e.nativeEvent;if(o.start.includes(l)){const c=i.activatorNode.current;return!(c&&e.target!==c||(e.preventDefault(),r?.({event:e.nativeEvent}),0))}return!1}}];class D3{constructor(t,n,o){var r;o===void 0&&(o=function(c){const{EventTarget:s}=hr(c);return c instanceof s?c:Wl(c)}(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=Wl(l),this.documentListeners=new rs(this.document),this.listeners=new rs(o),this.windowListeners=new rs(hr(l)),this.initialCoordinates=(r=Q1(i))!=null?r:ri,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(zr.Resize,this.handleCancel),this.windowListeners.add(zr.DragStart,Tf),this.windowListeners.add(zr.VisibilityChange,this.handleCancel),this.windowListeners.add(zr.ContextMenu,Tf),this.documentListeners.add(zr.Keydown,this.handleKeydown),n){if(o!=null&&o({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(Mf(n))return this.timeoutId=setTimeout(this.handleStart,n.delay),void this.handlePending(n);if(jf(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(zr.Click,uI,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(zr.SelectionChange,this.removeTextSelection),n(t))}handleMove(t){var n;const{activated:o,initialCoordinates:r,props:i}=this,{onMove:l,options:{activationConstraint:c}}=i;if(!r)return;const s=(n=Q1(t))!=null?n:ri,u=Ms(r,s);if(!o&&c){if(jf(c)){if(c.tolerance!=null&&Uu(u,c.tolerance))return this.handleCancel();if(Uu(u,c.distance))return this.handleStart()}return Mf(c)&&Uu(u,c.tolerance)?this.handleCancel():void this.handlePending(c,u)}t.cancelable&&t.preventDefault(),l(s)}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===En.Esc&&this.handleCancel()}removeTextSelection(){var t;(t=this.document.getSelection())==null||t.removeAllRanges()}}const pI={cancel:{name:"pointercancel"},move:{name:"pointermove"},end:{name:"pointerup"}};class xy extends D3{constructor(t){const{event:n}=t,o=Wl(n.target);super(t,pI,o)}}xy.activators=[{eventName:"onPointerDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:o}=t;return!(!n.isPrimary||n.button!==0||(o?.({event:n}),0))}}];const fI={move:{name:"mousemove"},end:{name:"mouseup"}};var E5;(function(e){e[e.RightClick=2]="RightClick"})(E5||(E5={}));class yy extends D3{constructor(t){super(t,fI,Wl(t.event.target))}}yy.activators=[{eventName:"onMouseDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:o}=t;return n.button!==E5.RightClick&&(o?.({event:n}),!0)}}];const qu={cancel:{name:"touchcancel"},move:{name:"touchmove"},end:{name:"touchend"}};class by extends D3{constructor(t){super(t,qu)}static setup(){return window.addEventListener(qu.move.name,t,{capture:!1,passive:!1}),function(){window.removeEventListener(qu.move.name,t)};function t(){}}}var is,td;by.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"}(is||(is={})),function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="ReversedTreeOrder"}(td||(td={}));const mI={x:{[Fo.Backward]:!1,[Fo.Forward]:!1},y:{[Fo.Backward]:!1,[Fo.Forward]:!1}};var Rs,k5;(function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging"})(Rs||(Rs={})),(k5||(k5={})).Optimized="optimized";const Rf=new Map;function T5(e,t){return Ga(n=>e?n||(typeof t=="function"?t(e):e):null,[t,e])}function nd(e){let{callback:t,disabled:n}=e;const o=Td(t),r=d.useMemo(()=>{if(n||typeof window>"u"||window.ResizeObserver===void 0)return;const{ResizeObserver:i}=window;return new i(o)},[n]);return d.useEffect(()=>()=>r?.disconnect(),[r]),r}function gI(e){return new _5(Jl(e),e)}function If(e,t,n){t===void 0&&(t=gI);const[o,r]=d.useState(null);function i(){r(s=>{if(!e)return null;var u;if(e.isConnected===!1)return(u=s??n)!=null?u:null;const h=t(e);return JSON.stringify(s)===JSON.stringify(h)?s:h})}const l=function(s){let{callback:u,disabled:h}=s;const f=Td(u),p=d.useMemo(()=>{if(h||typeof window>"u"||window.MutationObserver===void 0)return;const{MutationObserver:m}=window;return new m(f)},[f,h]);return d.useEffect(()=>()=>p?.disconnect(),[p]),p}({callback(s){if(e)for(const u of s){const{type:h,target:f}=u;if(h==="childList"&&f instanceof HTMLElement&&f.contains(e)){i();break}}}}),c=nd({callback:i});return oi(()=>{i(),e?(c?.observe(e),l?.observe(document.body,{childList:!0,subtree:!0})):(c?.disconnect(),l?.disconnect())},[e]),o}const Df=[];function Lf(e,t){t===void 0&&(t=[]);const n=d.useRef(null);return d.useEffect(()=>{n.current=null},t),d.useEffect(()=>{const o=e!==ri;o&&!n.current&&(n.current=e),!o&&n.current&&(n.current=null)},[e]),n.current?Ms(e,n.current):ri}function Of(e){return d.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 Pf=[];function wy(e){if(!e)return null;if(e.children.length>1)return e;const t=e.children[0];return qs(t)?t:e}const xI=[{sensor:xy,options:{}},{sensor:I3,options:{}}],yI={current:{}},m1={draggable:{measure:kf},droppable:{measure:kf,strategy:Rs.WhileDragging,frequency:k5.Optimized},dragOverlay:{measure:Jl}};class ls 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 bI={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new ls,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:ed},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:m1,measureDroppableContainers:ed,windowRect:null,measuringScheduled:!1},vy={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:ed,draggableNodes:new Map,over:null,measureDroppableContainers:ed},Is=d.createContext(vy),Sy=d.createContext(bI);function wI(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new ls}}}function vI(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 ls(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 ls(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 ls(e.droppable.containers);return i.delete(n),{...e,droppable:{...e.droppable,containers:i}}}default:return e}}function SI(e){let{disabled:t}=e;const{active:n,activatorEvent:o,draggableNodes:r}=d.useContext(Is),i=J1(o),l=J1(n?.id);return d.useEffect(()=>{if(!t&&!o&&i&&l!=null){if(!jd(i)||document.activeElement===i.target)return;const c=r.get(l);if(!c)return;const{activatorNode:s,node:u}=c;if(!s.current&&!u.current)return;requestAnimationFrame(()=>{for(const h of[s.current,u.current]){if(!h)continue;const f=ZR(h);if(f){f.focus();break}}})}},[o,t,r,l,i]),null}function Cy(e,t){let{transform:n,...o}=t;return e!=null&&e.length?e.reduce((r,i)=>i({transform:r,...o}),n):n}const Rd=d.createContext({...ri,scaleX:1,scaleY:1});var Yi;(function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized"})(Yi||(Yi={}));const CI=d.memo(function(e){var t,n,o,r;let{id:i,accessibility:l,autoScroll:c=!0,children:s,sensors:u=xI,collisionDetection:h=rI,measuring:f,modifiers:p,...m}=e;const g=d.useReducer(vI,void 0,wI),[x,y]=g,[w,b]=function(){const[xe]=d.useState(()=>new Set),Ee=d.useCallback(Fe=>(xe.add(Fe),()=>xe.delete(Fe)),[xe]);return[d.useCallback(Fe=>{let{type:ft,event:ut}=Fe;xe.forEach(Pe=>{var Qe;return(Qe=Pe[ft])==null?void 0:Qe.call(Pe,ut)})},[xe]),Ee]}(),[C,_]=d.useState(Yi.Uninitialized),E=C===Yi.Initialized,{draggable:{active:M,nodes:j,translate:F},droppable:{containers:k}}=x,O=M!=null?j.get(M):null,S=d.useRef({initial:null,translated:null}),v=d.useMemo(()=>{var xe;return M!=null?{id:M,data:(xe=O?.data)!=null?xe:yI,rect:S}:null},[M,O]),I=d.useRef(null),[T,R]=d.useState(null),[A,D]=d.useState(null),L=os(m,Object.values(m)),V=js("DndDescribedBy",i),W=d.useMemo(()=>k.getEnabled(),[k]),P=d.useMemo(()=>({draggable:{...m1.draggable,...U?.draggable},droppable:{...m1.droppable,...U?.droppable},dragOverlay:{...m1.dragOverlay,...U?.dragOverlay}}),[(U=f)==null?void 0:U.draggable,U?.droppable,U?.dragOverlay]);var U;const{droppableRects:X,measureDroppableContainers:ee,measuringScheduled:H}=function(xe,Ee){let{dragging:Fe,dependencies:ft,config:ut}=Ee;const[Pe,Qe]=d.useState(null),{frequency:nt,measure:Ke,strategy:rt}=ut,Bt=d.useRef(xe),lt=function(){switch(rt){case Rs.Always:return!1;case Rs.BeforeDragging:return Fe;default:return!Fe}}(),Jt=os(lt),Wt=d.useCallback(function(Tn){Tn===void 0&&(Tn=[]),Jt.current||Qe(Qn=>Qn===null?Tn:Qn.concat(Tn.filter(zn=>!Qn.includes(zn))))},[Jt]),Kt=d.useRef(null),kn=Ga(Tn=>{if(lt&&!Fe)return Rf;if(!Tn||Tn===Rf||Bt.current!==xe||Pe!=null){const Qn=new Map;for(let zn of xe){if(!zn)continue;if(Pe&&Pe.length>0&&!Pe.includes(zn.id)&&zn.rect.current){Qn.set(zn.id,zn.rect.current);continue}const mo=zn.node.current,wn=mo?new _5(Ke(mo),mo):null;zn.rect.current=wn,wn&&Qn.set(zn.id,wn)}return Qn}return Tn},[xe,Pe,Fe,lt,Ke]);return d.useEffect(()=>{Bt.current=xe},[xe]),d.useEffect(()=>{lt||Wt()},[Fe,lt]),d.useEffect(()=>{Pe&&Pe.length>0&&Qe(null)},[JSON.stringify(Pe)]),d.useEffect(()=>{lt||typeof nt!="number"||Kt.current!==null||(Kt.current=setTimeout(()=>{Wt(),Kt.current=null},nt))},[nt,lt,Wt,...ft]),{droppableRects:kn,measureDroppableContainers:Wt,measuringScheduled:Pe!=null}}(W,{dragging:E,dependencies:[F.x,F.y],config:P.droppable}),$=function(xe,Ee){const Fe=Ee!=null?xe.get(Ee):void 0,ft=Fe?Fe.node.current:null;return Ga(ut=>{var Pe;return Ee==null?null:(Pe=ft??ut)!=null?Pe:null},[ft,Ee])}(j,M),z=d.useMemo(()=>A?Q1(A):null,[A]),q=function(){const xe=T?.autoScrollEnabled===!1,Ee=typeof c=="object"?c.enabled===!1:c===!1,Fe=E&&!xe&&!Ee;return typeof c=="object"?{...c,enabled:Fe}:{enabled:Fe}}(),Z=function(xe,Ee){return T5(xe,Ee)}($,P.draggable.measure);(function(xe){let{activeNode:Ee,measure:Fe,initialRect:ft,config:ut=!0}=xe;const Pe=d.useRef(!1),{x:Qe,y:nt}=typeof ut=="boolean"?{x:ut,y:ut}:ut;oi(()=>{if(!Qe&&!nt||!Ee)return void(Pe.current=!1);if(Pe.current||!ft)return;const Ke=Ee?.node.current;if(!Ke||Ke.isConnected===!1)return;const rt=Ef(Fe(Ke),ft);if(Qe||(rt.x=0),nt||(rt.y=0),Pe.current=!0,Math.abs(rt.x)>0||Math.abs(rt.y)>0){const Bt=cy(Ke);Bt&&Bt.scrollBy({top:rt.y,left:rt.x})}},[Ee,Qe,nt,ft,Fe])})({activeNode:M!=null?j.get(M):null,config:q.layoutShiftCompensation,initialRect:Z,measure:P.draggable.measure});const Q=If($,P.draggable.measure,Z),Y=If($?$.parentElement:null),te=d.useRef({activatorEvent:null,active:null,activeNode:$,collisionRect:null,collisions:null,droppableRects:X,draggableNodes:j,draggingNode:null,draggingNodeRect:null,droppableContainers:k,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),ie=k.getNodeFor((t=te.current.over)==null?void 0:t.id),fe=function(xe){let{measure:Ee}=xe;const[Fe,ft]=d.useState(null),ut=nd({callback:d.useCallback(Ke=>{for(const{target:rt}of Ke)if(qs(rt)){ft(Bt=>{const lt=Ee(rt);return Bt?{...Bt,width:lt.width,height:lt.height}:lt});break}},[Ee])}),Pe=d.useCallback(Ke=>{const rt=wy(Ke);ut?.disconnect(),rt&&ut?.observe(rt),ft(rt?Ee(rt):null)},[Ee,ut]),[Qe,nt]=f1(Pe);return d.useMemo(()=>({nodeRef:Qe,rect:Fe,setRef:nt}),[Fe,Qe,nt])}({measure:P.dragOverlay.measure}),J=(n=fe.nodeRef.current)!=null?n:$,ae=E?(o=fe.rect)!=null?o:Q:null,Ce=!(!fe.nodeRef.current||!fe.rect),Me=Ef(re=Ce?null:Q,T5(re));var re;const oe=Of(J?hr(J):null),ue=function(xe){const Ee=d.useRef(xe),Fe=Ga(ft=>xe?ft&&ft!==Df&&xe&&Ee.current&&xe.parentNode===Ee.current.parentNode?ft:Md(xe):Df,[xe]);return d.useEffect(()=>{Ee.current=xe},[xe]),Fe}(E?ie??$:null),De=function(xe,Ee){Ee===void 0&&(Ee=Jl);const[Fe]=xe,ft=Of(Fe?hr(Fe):null),[ut,Pe]=d.useState(Pf);function Qe(){Pe(()=>xe.length?xe.map(Ke=>hy(Ke)?ft:new _5(Ee(Ke),Ke)):Pf)}const nt=nd({callback:Qe});return oi(()=>{nt?.disconnect(),Qe(),xe.forEach(Ke=>nt?.observe(Ke))},[xe]),ut}(ue),ze=Cy(p,{transform:{x:F.x-Me.x,y:F.y-Me.y,scaleX:1,scaleY:1},activatorEvent:A,active:v,activeNodeRect:Q,containerNodeRect:Y,draggingNodeRect:ae,over:te.current.over,overlayNodeRect:fe.rect,scrollableAncestors:ue,scrollableAncestorRects:De,windowRect:oe}),mt=z?_l(z,F):null,bt=function(xe){const[Ee,Fe]=d.useState(null),ft=d.useRef(xe),ut=d.useCallback(Pe=>{const Qe=Wu(Pe.target);Qe&&Fe(nt=>nt?(nt.set(Qe,C5(Qe)),new Map(nt)):null)},[]);return d.useEffect(()=>{const Pe=ft.current;if(xe!==Pe){Qe(Pe);const nt=xe.map(Ke=>{const rt=Wu(Ke);return rt?(rt.addEventListener("scroll",ut,{passive:!0}),[rt,C5(rt)]):null}).filter(Ke=>Ke!=null);Fe(nt.length?new Map(nt):null),ft.current=xe}return()=>{Qe(xe),Qe(Pe)};function Qe(nt){nt.forEach(Ke=>{Wu(Ke)?.removeEventListener("scroll",ut)})}},[ut,xe]),d.useMemo(()=>xe.length?Ee?Array.from(Ee.values()).reduce((Pe,Qe)=>_l(Pe,Qe),ri):fy(xe):ri,[xe,Ee])}(ue),ve=Lf(bt),dt=Lf(bt,[Q]),xt=_l(ze,ve),Ne=ae?iI(ae,ze):null,vt=v&&Ne?h({active:v,collisionRect:Ne,droppableRects:X,droppableContainers:W,pointerCoordinates:mt}):null,Xe=ay(vt,"id"),[le,Ue]=d.useState(null),ye=function(xe,Ee,Fe){return{...xe,scaleX:Ee&&Fe?Ee.width/Fe.width:1,scaleY:Ee&&Fe?Ee.height/Fe.height:1}}(Ce?ze:_l(ze,dt),(r=le?.rect)!=null?r:null,Q),Se=d.useRef(null),ne=d.useCallback((xe,Ee)=>{let{sensor:Fe,options:ft}=Ee;if(I.current==null)return;const ut=j.get(I.current);if(!ut)return;const Pe=xe.nativeEvent,Qe=new Fe({active:I.current,activeNode:ut,event:Pe,options:ft,context:te,onAbort(Ke){if(!j.get(Ke))return;const{onDragAbort:rt}=L.current,Bt={id:Ke};rt?.(Bt),w({type:"onDragAbort",event:Bt})},onPending(Ke,rt,Bt,lt){if(!j.get(Ke))return;const{onDragPending:Jt}=L.current,Wt={id:Ke,constraint:rt,initialCoordinates:Bt,offset:lt};Jt?.(Wt),w({type:"onDragPending",event:Wt})},onStart(Ke){const rt=I.current;if(rt==null)return;const Bt=j.get(rt);if(!Bt)return;const{onDragStart:lt}=L.current,Jt={activatorEvent:Pe,active:{id:rt,data:Bt.data,rect:S}};ao.unstable_batchedUpdates(()=>{lt?.(Jt),_(Yi.Initializing),y({type:Lo.DragStart,initialCoordinates:Ke,active:rt}),w({type:"onDragStart",event:Jt}),R(Se.current),D(Pe)})},onMove(Ke){y({type:Lo.DragMove,coordinates:Ke})},onEnd:nt(Lo.DragEnd),onCancel:nt(Lo.DragCancel)});function nt(Ke){return async function(){const{active:rt,collisions:Bt,over:lt,scrollAdjustedTranslate:Jt}=te.current;let Wt=null;if(rt&&Jt){const{cancelDrop:Kt}=L.current;Wt={activatorEvent:Pe,active:rt,collisions:Bt,delta:Jt,over:lt},Ke===Lo.DragEnd&&typeof Kt=="function"&&await Promise.resolve(Kt(Wt))&&(Ke=Lo.DragCancel)}I.current=null,ao.unstable_batchedUpdates(()=>{y({type:Ke}),_(Yi.Uninitialized),Ue(null),R(null),D(null),Se.current=null;const Kt=Ke===Lo.DragEnd?"onDragEnd":"onDragCancel";if(Wt){const kn=L.current[Kt];kn?.(Wt),w({type:Kt,event:Wt})}})}}Se.current=Qe},[j]),be=d.useCallback((xe,Ee)=>(Fe,ft)=>{const ut=Fe.nativeEvent,Pe=j.get(ft);if(I.current!==null||!Pe||ut.dndKit||ut.defaultPrevented)return;const Qe={active:Pe};xe(Fe,Ee.options,Qe)===!0&&(ut.dndKit={capturedBy:Ee.sensor},I.current=ft,ne(Fe,Ee))},[j,ne]),ke=function(xe,Ee){return d.useMemo(()=>xe.reduce((Fe,ft)=>{const{sensor:ut}=ft;return[...Fe,...ut.activators.map(Pe=>({eventName:Pe.eventName,handler:Ee(Pe.handler,ft)}))]},[]),[xe,Ee])}(u,be);var me;me=u,d.useEffect(()=>{if(!kd)return;const xe=me.map(Ee=>{let{sensor:Fe}=Ee;return Fe.setup==null?void 0:Fe.setup()});return()=>{for(const Ee of xe)Ee?.()}},me.map(xe=>{let{sensor:Ee}=xe;return Ee})),oi(()=>{Q&&C===Yi.Initializing&&_(Yi.Initialized)},[Q,C]),d.useEffect(()=>{const{onDragMove:xe}=L.current,{active:Ee,activatorEvent:Fe,collisions:ft,over:ut}=te.current;if(!Ee||!Fe)return;const Pe={active:Ee,activatorEvent:Fe,collisions:ft,delta:{x:xt.x,y:xt.y},over:ut};ao.unstable_batchedUpdates(()=>{xe?.(Pe),w({type:"onDragMove",event:Pe})})},[xt.x,xt.y]),d.useEffect(()=>{const{active:xe,activatorEvent:Ee,collisions:Fe,droppableContainers:ft,scrollAdjustedTranslate:ut}=te.current;if(!xe||I.current==null||!Ee||!ut)return;const{onDragOver:Pe}=L.current,Qe=ft.get(Xe),nt=Qe&&Qe.rect.current?{id:Qe.id,rect:Qe.rect.current,data:Qe.data,disabled:Qe.disabled}:null,Ke={active:xe,activatorEvent:Ee,collisions:Fe,delta:{x:ut.x,y:ut.y},over:nt};ao.unstable_batchedUpdates(()=>{Ue(nt),Pe?.(Ke),w({type:"onDragOver",event:Ke})})},[Xe]),oi(()=>{te.current={activatorEvent:A,active:v,activeNode:$,collisionRect:Ne,collisions:vt,droppableRects:X,draggableNodes:j,draggingNode:J,draggingNodeRect:ae,droppableContainers:k,over:le,scrollableAncestors:ue,scrollAdjustedTranslate:xt},S.current={initial:ae,translated:Ne}},[v,$,vt,Ne,j,J,ae,X,k,le,ue,xt]),function(xe){let{acceleration:Ee,activator:Fe=is.Pointer,canScroll:ft,draggingRect:ut,enabled:Pe,interval:Qe=5,order:nt=td.TreeOrder,pointerCoordinates:Ke,scrollableAncestors:rt,scrollableAncestorRects:Bt,delta:lt,threshold:Jt}=xe;const Wt=function(Rn){let{delta:Jn,disabled:vn}=Rn;const In=J1(Jn);return Ga(sn=>{if(vn||!In||!sn)return mI;const Io=Math.sign(Jn.x-In.x),Yo=Math.sign(Jn.y-In.y);return{x:{[Fo.Backward]:sn.x[Fo.Backward]||Io===-1,[Fo.Forward]:sn.x[Fo.Forward]||Io===1},y:{[Fo.Backward]:sn.y[Fo.Backward]||Yo===-1,[Fo.Forward]:sn.y[Fo.Forward]||Yo===1}}},[vn,Jn,In])}({delta:lt,disabled:!Pe}),[Kt,kn]=function(){const Rn=d.useRef(null);return[d.useCallback((Jn,vn)=>{Rn.current=setInterval(Jn,vn)},[]),d.useCallback(()=>{Rn.current!==null&&(clearInterval(Rn.current),Rn.current=null)},[])]}(),Tn=d.useRef({x:0,y:0}),Qn=d.useRef({x:0,y:0}),zn=d.useMemo(()=>{switch(Fe){case is.Pointer:return Ke?{top:Ke.y,bottom:Ke.y,left:Ke.x,right:Ke.x}:null;case is.DraggableRect:return ut}},[Fe,ut,Ke]),mo=d.useRef(null),wn=d.useCallback(()=>{const Rn=mo.current;if(!Rn)return;const Jn=Tn.current.x*Qn.current.x,vn=Tn.current.y*Qn.current.y;Rn.scrollBy(Jn,vn)},[]),Qt=d.useMemo(()=>nt===td.TreeOrder?[...rt].reverse():rt,[nt,rt]);d.useEffect(()=>{if(Pe&&rt.length&&zn){for(const Rn of Qt){if(ft?.(Rn)===!1)continue;const Jn=rt.indexOf(Rn),vn=Bt[Jn];if(!vn)continue;const{direction:In,speed:sn}=sI(Rn,vn,zn,Ee,Jt);for(const Io of["x","y"])Wt[Io][In[Io]]||(sn[Io]=0,In[Io]=0);if(sn.x>0||sn.y>0)return kn(),mo.current=Rn,Kt(wn,Qe),Tn.current=sn,void(Qn.current=In)}Tn.current={x:0,y:0},Qn.current={x:0,y:0},kn()}else kn()},[Ee,wn,ft,kn,Pe,Qe,JSON.stringify(zn),JSON.stringify(Wt),Kt,rt,Qt,Bt,JSON.stringify(Jt)])}({...q,delta:F,draggingRect:Ne,pointerCoordinates:mt,scrollableAncestors:ue,scrollableAncestorRects:De});const Ie=d.useMemo(()=>({active:v,activeNode:$,activeNodeRect:Q,activatorEvent:A,collisions:vt,containerNodeRect:Y,dragOverlay:fe,draggableNodes:j,droppableContainers:k,droppableRects:X,over:le,measureDroppableContainers:ee,scrollableAncestors:ue,scrollableAncestorRects:De,measuringConfiguration:P,measuringScheduled:H,windowRect:oe}),[v,$,Q,A,vt,Y,fe,j,k,X,le,ee,ue,De,P,H,oe]),we=d.useMemo(()=>({activatorEvent:A,activators:ke,active:v,activeNodeRect:Q,ariaDescribedById:{draggable:V},dispatch:y,draggableNodes:j,over:le,measureDroppableContainers:ee}),[A,ke,v,Q,y,V,j,le,ee]);return d.createElement(ry.Provider,{value:b},d.createElement(Is.Provider,{value:we},d.createElement(Sy.Provider,{value:Ie},d.createElement(Rd.Provider,{value:ye},s)),d.createElement(SI,{disabled:l?.restoreFocus===!1})),d.createElement(QR,{...l,hiddenTextDescribedById:V}))}),_I=d.createContext(null),Af="button";function _y(){return d.useContext(Sy)}const EI={timeout:25};function kI(e){let{animation:t,children:n}=e;const[o,r]=d.useState(null),[i,l]=d.useState(null),c=J1(n);return n||o||!c||r(c),oi(()=>{if(!i)return;const s=o?.key,u=o?.props.id;s!=null&&u!=null?Promise.resolve(t(u,i)).then(()=>{r(null)}):r(null)},[t,o,i]),d.createElement(d.Fragment,null,n,o?d.cloneElement(o,{ref:l}):null)}const TI={x:0,y:0,scaleX:1,scaleY:1};function jI(e){let{children:t}=e;return d.createElement(Is.Provider,{value:vy},d.createElement(Rd.Provider,{value:TI},t))}const MI={position:"fixed",touchAction:"none"},RI=e=>jd(e)?"transform 250ms ease":void 0,II=d.forwardRef((e,t)=>{let{as:n,activatorEvent:o,adjustScale:r,children:i,className:l,rect:c,style:s,transform:u,transition:h=RI}=e;if(!c)return null;const f=r?u:{...u,scaleX:1,scaleY:1},p={...MI,width:c.width,height:c.height,top:c.top,left:c.left,transform:Z0.Transform.toString(f),transformOrigin:r&&o?eI(o,c):void 0,transition:typeof h=="function"?h(o):h,...s};return d.createElement(n,{className:l,style:p,ref:t},i)}),Ey={duration:250,easing:"ease",keyframes:e=>{let{transform:{initial:t,final:n}}=e;return[{transform:Z0.Transform.toString(t)},{transform:Z0.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[c,s]of Object.entries(i.active))s!==void 0&&(r[c]=n.node.style.getPropertyValue(c),n.node.style.setProperty(c,s));if(i!=null&&i.dragOverlay)for(const[c,s]of Object.entries(i.dragOverlay))s!==void 0&&o.node.style.setProperty(c,s);return l!=null&&l.active&&n.node.classList.add(l.active),l!=null&&l.dragOverlay&&o.node.classList.add(l.dragOverlay),function(){for(const[c,s]of Object.entries(r))n.node.style.setProperty(c,s);l!=null&&l.active&&n.node.classList.remove(l.active)}})({styles:{active:{opacity:"0"}}})};let Ff=0;const DI=d.memo(e=>{let{adjustScale:t=!1,children:n,dropAnimation:o,style:r,transition:i,modifiers:l,wrapperElement:c="div",className:s,zIndex:u=999}=e;const{activatorEvent:h,active:f,activeNodeRect:p,containerNodeRect:m,draggableNodes:g,droppableContainers:x,dragOverlay:y,over:w,measuringConfiguration:b,scrollableAncestors:C,scrollableAncestorRects:_,windowRect:E}=_y(),M=d.useContext(Rd),j=function(v){return d.useMemo(()=>{if(v!=null)return Ff++,Ff},[v])}(f?.id),F=Cy(l,{activatorEvent:h,active:f,activeNodeRect:p,containerNodeRect:m,draggingNodeRect:y.rect,over:w,overlayNodeRect:y.rect,scrollableAncestors:C,scrollableAncestorRects:_,transform:M,windowRect:E}),k=T5(p),O=function(v){let{config:I,draggableNodes:T,droppableContainers:R,measuringConfiguration:A}=v;return Td((D,L)=>{if(I===null)return;const V=T.get(D);if(!V)return;const W=V.node.current;if(!W)return;const P=wy(L);if(!P)return;const{transform:U}=hr(L).getComputedStyle(L),X=sy(U);if(!X)return;const ee=typeof I=="function"?I:function(H){const{duration:$,easing:z,sideEffects:q,keyframes:Z}={...Ey,...H};return Q=>{let{active:Y,dragOverlay:te,transform:ie,...fe}=Q;if(!$)return;const J=te.rect.left-Y.rect.left,ae=te.rect.top-Y.rect.top,Ce={scaleX:ie.scaleX!==1?Y.rect.width*ie.scaleX/te.rect.width:1,scaleY:ie.scaleY!==1?Y.rect.height*ie.scaleY/te.rect.height:1},Me={x:ie.x-J,y:ie.y-ae,...Ce},re=Z({...fe,active:Y,dragOverlay:te,transform:{initial:ie,final:Me}}),[oe]=re,ue=re[re.length-1];if(JSON.stringify(oe)===JSON.stringify(ue))return;const De=q?.({active:Y,dragOverlay:te,...fe}),ze=te.node.animate(re,{duration:$,easing:z,fill:"forwards"});return new Promise(mt=>{ze.onfinish=()=>{De?.(),mt()}})}}(I);return my(W,A.draggable.measure),ee({active:{id:D,data:V.data,node:W,rect:A.draggable.measure(W)},draggableNodes:T,dragOverlay:{node:L,rect:A.dragOverlay.measure(P)},droppableContainers:R,measuringConfiguration:A,transform:X})})}({config:o,draggableNodes:g,droppableContainers:x,measuringConfiguration:b}),S=k?y.setRef:void 0;return d.createElement(jI,null,d.createElement(kI,{animation:O},f&&j?d.createElement(II,{key:j,id:f.id,ref:S,as:c,activatorEvent:h,adjustScale:t,className:s,transition:i,rect:k,style:{zIndex:u,...r},transform:F},n):null))});function L3(e,t,n){const o=e.slice();return o.splice(n<0?o.length+n:n,0,o.splice(t,1)[0]),o}function LI(e,t){return e.reduce((n,o,r)=>{const i=t.get(o);return i&&(n[r]=i),n},Array(e.length))}function Lc(e){return e!==null&&e>=0}const Oc={scaleX:1,scaleY:1},OI=e=>{var t;let{rects:n,activeNodeRect:o,activeIndex:r,overIndex:i,index:l}=e;const c=(t=n[r])!=null?t:o;if(!c)return null;const s=function(u,h,f){const p=u[h],m=u[h-1],g=u[h+1];return p&&(m||g)?f<h?m?p.left-(m.left+m.width):g.left-(p.left+p.width):g?g.left-(p.left+p.width):p.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-(c.left+c.width):u.left-c.left,y:0,...Oc}:null}return l>r&&l<=i?{x:-c.width-s,y:0,...Oc}:l<r&&l>=i?{x:c.width+s,y:0,...Oc}:{x:0,y:0,...Oc}},O3=e=>{let{rects:t,activeIndex:n,overIndex:o,index:r}=e;const i=L3(t,o,n),l=t[r],c=i[r];return c&&l?{x:c.left-l.left,y:c.top-l.top,scaleX:c.width/l.width,scaleY:c.height/l.height}:null},ky="Sortable",Ty=d.createContext({activeIndex:-1,containerId:ky,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:O3,disabled:{draggable:!1,droppable:!1}});function PI(e){let{children:t,id:n,items:o,strategy:r=O3,disabled:i=!1}=e;const{active:l,dragOverlay:c,droppableRects:s,over:u,measureDroppableContainers:h}=_y(),f=js(ky,n),p=c.rect!==null,m=d.useMemo(()=>o.map(M=>typeof M=="object"&&"id"in M?M.id:M),[o]),g=l!=null,x=l?m.indexOf(l.id):-1,y=u?m.indexOf(u.id):-1,w=d.useRef(m),b=!function(M,j){if(M===j)return!0;if(M.length!==j.length)return!1;for(let F=0;F<M.length;F++)if(M[F]!==j[F])return!1;return!0}(m,w.current),C=y!==-1&&x===-1||b,_=function(M){return typeof M=="boolean"?{draggable:M,droppable:M}:M}(i);oi(()=>{b&&g&&h(m)},[b,m,g,h]),d.useEffect(()=>{w.current=m},[m]);const E=d.useMemo(()=>({activeIndex:x,containerId:f,disabled:_,disableTransforms:C,items:m,overIndex:y,useDragOverlay:p,sortedRects:LI(m,s),strategy:r}),[x,f,_.draggable,_.droppable,C,m,y,s,p,r]);return d.createElement(Ty.Provider,{value:E},t)}const AI=e=>{let{id:t,items:n,activeIndex:o,overIndex:r}=e;return L3(n,o,r).indexOf(t)},FI=e=>{let{containerId:t,isSorting:n,wasDragging:o,index:r,items:i,newIndex:l,previousItems:c,previousContainerId:s,transition:u}=e;return!(!u||!o||c!==i&&r===l||!n&&(l===r||t!==s))},zI={duration:200,easing:"ease"},jy="transform",BI=Z0.Transition.toString({property:jy,duration:0,easing:"linear"}),NI={roleDescription:"sortable"};function VI(e){let{animateLayoutChanges:t=FI,attributes:n,disabled:o,data:r,getNewIndex:i=AI,id:l,strategy:c,resizeObserverConfig:s,transition:u=zI}=e;const{items:h,containerId:f,activeIndex:p,disabled:m,disableTransforms:g,sortedRects:x,overIndex:y,useDragOverlay:w,strategy:b}=d.useContext(Ty),C=function(te,ie){var fe,J;return typeof te=="boolean"?{draggable:te,droppable:!1}:{draggable:(fe=te?.draggable)!=null?fe:ie.draggable,droppable:(J=te?.droppable)!=null?J:ie.droppable}}(o,m),_=h.indexOf(l),E=d.useMemo(()=>({sortable:{containerId:f,index:_,items:h},...r}),[f,r,_,h]),M=d.useMemo(()=>h.slice(h.indexOf(l)),[h,l]),{rect:j,node:F,isOver:k,setNodeRef:O}=function(te){let{data:ie,disabled:fe=!1,id:J,resizeObserverConfig:ae}=te;const Ce=js("Droppable"),{active:Me,dispatch:re,over:oe,measureDroppableContainers:ue}=d.useContext(Is),De=d.useRef({disabled:fe}),ze=d.useRef(!1),mt=d.useRef(null),bt=d.useRef(null),{disabled:ve,updateMeasurementsFor:dt,timeout:xt}={...EI,...ae},Ne=os(dt??J),vt=nd({callback:d.useCallback(()=>{ze.current?(bt.current!=null&&clearTimeout(bt.current),bt.current=setTimeout(()=>{ue(Array.isArray(Ne.current)?Ne.current:[Ne.current]),bt.current=null},xt)):ze.current=!0},[xt]),disabled:ve||!Me}),Xe=d.useCallback((Se,ne)=>{vt&&(ne&&(vt.unobserve(ne),ze.current=!1),Se&&vt.observe(Se))},[vt]),[le,Ue]=f1(Xe),ye=os(ie);return d.useEffect(()=>{vt&&le.current&&(vt.disconnect(),ze.current=!1,vt.observe(le.current))},[le,vt]),d.useEffect(()=>(re({type:Lo.RegisterDroppable,element:{id:J,key:Ce,disabled:fe,node:le,rect:mt,data:ye}}),()=>re({type:Lo.UnregisterDroppable,key:Ce,id:J})),[J]),d.useEffect(()=>{fe!==De.current.disabled&&(re({type:Lo.SetDroppableDisabled,id:J,key:Ce,disabled:fe}),De.current.disabled=fe)},[J,Ce,fe,re]),{active:Me,rect:mt,isOver:oe?.id===J,node:le,over:oe,setNodeRef:Ue}}({id:l,data:E,disabled:C.droppable,resizeObserverConfig:{updateMeasurementsFor:M,...s}}),{active:S,activatorEvent:v,activeNodeRect:I,attributes:T,setNodeRef:R,listeners:A,isDragging:D,over:L,setActivatorNodeRef:V,transform:W}=function(te){let{id:ie,data:fe,disabled:J=!1,attributes:ae}=te;const Ce=js("Draggable"),{activators:Me,activatorEvent:re,active:oe,activeNodeRect:ue,ariaDescribedById:De,draggableNodes:ze,over:mt}=d.useContext(Is),{role:bt=Af,roleDescription:ve="draggable",tabIndex:dt=0}=ae??{},xt=oe?.id===ie,Ne=d.useContext(xt?Rd:_I),[vt,Xe]=f1(),[le,Ue]=f1(),ye=function(ne,be){return d.useMemo(()=>ne.reduce((ke,me)=>{let{eventName:Ie,handler:we}=me;return ke[Ie]=xe=>{we(xe,be)},ke},{}),[ne,be])}(Me,ie),Se=os(fe);return oi(()=>(ze.set(ie,{id:ie,key:Ce,node:vt,activatorNode:le,data:Se}),()=>{const ne=ze.get(ie);ne&&ne.key===Ce&&ze.delete(ie)}),[ze,ie]),{active:oe,activatorEvent:re,activeNodeRect:ue,attributes:d.useMemo(()=>({role:bt,tabIndex:dt,"aria-disabled":J,"aria-pressed":!(!xt||bt!==Af)||void 0,"aria-roledescription":ve,"aria-describedby":De.draggable}),[J,bt,dt,xt,ve,De.draggable]),isDragging:xt,listeners:J?void 0:ye,node:vt,over:mt,setNodeRef:Xe,setActivatorNodeRef:Ue,transform:Ne}}({id:l,data:E,attributes:{...NI,...n},disabled:C.draggable}),P=function(){for(var te=arguments.length,ie=new Array(te),fe=0;fe<te;fe++)ie[fe]=arguments[fe];return d.useMemo(()=>J=>{ie.forEach(ae=>ae(J))},ie)}(O,R),U=!!S,X=U&&!g&&Lc(p)&&Lc(y),ee=!w&&D,H=X?(ee&&X?W:null)??(c??b)({rects:x,activeNodeRect:I,activeIndex:p,overIndex:y,index:_}):null,$=Lc(p)&&Lc(y)?i({id:l,items:h,activeIndex:p,overIndex:y}):_,z=S?.id,q=d.useRef({activeId:z,items:h,newIndex:$,containerId:f}),Z=h!==q.current.items,Q=t({active:S,containerId:f,isDragging:D,isSorting:U,id:l,index:_,items:h,newIndex:q.current.newIndex,previousItems:q.current.items,previousContainerId:q.current.containerId,transition:u,wasDragging:q.current.activeId!=null}),Y=function(te){let{disabled:ie,index:fe,node:J,rect:ae}=te;const[Ce,Me]=d.useState(null),re=d.useRef(fe);return oi(()=>{if(!ie&&fe!==re.current&&J.current){const oe=ae.current;if(oe){const ue=Jl(J.current,{ignoreTransform:!0}),De={x:oe.left-ue.left,y:oe.top-ue.top,scaleX:oe.width/ue.width,scaleY:oe.height/ue.height};(De.x||De.y)&&Me(De)}}fe!==re.current&&(re.current=fe)},[ie,fe,J,ae]),d.useEffect(()=>{Ce&&Me(null)},[Ce]),Ce}({disabled:!Q,index:_,node:F,rect:j});return d.useEffect(()=>{U&&q.current.newIndex!==$&&(q.current.newIndex=$),f!==q.current.containerId&&(q.current.containerId=f),h!==q.current.items&&(q.current.items=h)},[U,$,f,h]),d.useEffect(()=>{if(z===q.current.activeId)return;if(z!=null&&q.current.activeId==null)return void(q.current.activeId=z);const te=setTimeout(()=>{q.current.activeId=z},50);return()=>clearTimeout(te)},[z]),{active:S,activeIndex:p,attributes:T,data:E,rect:j,index:_,newIndex:$,items:h,isOver:k,isSorting:U,isDragging:D,listeners:A,node:F,overIndex:y,over:L,setNodeRef:P,setActivatorNodeRef:V,setDroppableNodeRef:O,setDraggableNodeRef:R,transform:Y??H,transition:Y||Z&&q.current.newIndex===_?BI:ee&&!jd(v)||!u||!U&&!Q?void 0:Z0.Transition.toString({...u,property:jy})}}function od(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 HI=[En.Down,En.Right,En.Up,En.Left],$I=(e,t)=>{let{context:{active:n,collisionRect:o,droppableRects:r,droppableContainers:i,over:l,scrollableAncestors:c}}=t;if(HI.includes(e.code)){if(e.preventDefault(),!n||!o)return;const s=[];i.getEnabled().forEach(f=>{if(!f||f!=null&&f.disabled)return;const p=r.get(f.id);if(p)switch(e.code){case En.Down:o.top<p.top&&s.push(f);break;case En.Up:o.top>p.top&&s.push(f);break;case En.Left:o.left>p.left&&s.push(f);break;case En.Right:o.left<p.left&&s.push(f)}});const u=(f=>{let{collisionRect:p,droppableRects:m,droppableContainers:g}=f;const x=Cf(p),y=[];for(const w of g){const{id:b}=w,C=m.get(b);if(C){const _=Cf(C),E=x.reduce((j,F,k)=>j+iy(_[k],F),0),M=Number((E/4).toFixed(4));y.push({id:b,data:{droppableContainer:w,value:M}})}}return y.sort(ly)})({collisionRect:o,droppableRects:r,droppableContainers:s});let h=ay(u,"id");if(h===l?.id&&u.length>1&&(h=u[1].id),h!=null){const f=i.get(n.id),p=i.get(h),m=p?r.get(p.id):null,g=p?.node.current;if(g&&m&&f&&p){const x=Md(g).some((_,E)=>c[E]!==_),y=zf(f,p),w=function(_,E){return!!(od(_)&&od(E)&&zf(_,E))&&_.data.current.sortable.index<E.data.current.sortable.index}(f,p),b=x||!y?{x:0,y:0}:{x:w?o.width-m.width:0,y:w?o.height-m.height:0},C={x:m.left,y:m.top};return b.x&&b.y?C:Ms(C,b)}}}};function zf(e,t){return!(!od(e)||!od(t))&&e.data.current.sortable.containerId===t.data.current.sortable.containerId}const WI=e=>{let{transform:t}=e;return{...t,y:0}},UI=d.memo(d.forwardRef((e,t)=>{const{children:n,style:o,className:r,index:i,editing:l,editable:c,selectedIndex:s,background:u,activeColor:h,borderColor:f,borderWidth:p,dragging:m,...g}=e;return a.jsxs("div",{ref:t,className:br(r),style:{...o,display:"flex",flexDirection:"column",background:s===i?"white":u,minHeight:"0px",fontFamily:"inherit",fontSize:"16px",fontWeight:s===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:s===i?"0px":"-1px",marginTop:s===i?"0px":"4px",marginBottom:"0px",background:"grey",minWidth:"1px"}}),n,s===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:s===i&&h?h?.toCSS():"none",minHeight:"2px"}})]})})),ei={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"},My=d.memo(d.forwardRef(({color:e,dragOverlay:t,dragging:n,disabled:o,fadeIn:r,handle:i,height:l,index:c,listeners:s,onRemove:u,renderItem:h,sorting:f,style:p,transition:m,transform:g,value:x,wrapperStyle:y,...w},b)=>{d.useEffect(()=>{if(t)return document.body.style.cursor="grabbing",()=>{document.body.style.cursor=""}},[t]);const C=h?h({dragOverlay:!!t,dragging:!!n,sorting:!!f,index:c,fadeIn:!!r,listeners:s,ref:b,style:p,transform:g,transition:m,value:x}):a.jsx(a.Fragment,{children:x});return a.jsx("div",{className:br("tab-item",ei.Wrapper,r&&ei.fadeIn,f&&ei.sorting,t&&ei.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":c},ref:b,children:a.jsx("div",{className:br(ei.Item,n&&ei.dragging,i&&ei.withHandle,t&&ei.dragOverlay,o&&ei.disabled,e&&ei.color,"dragging"),style:p,"data-cypress":"draggable-item",...i?void 0:s,...w,tabIndex:i?void 0:-1,children:C})})})),Bf={Row:"_Row_1kr10_1"},qI=d.memo(d.forwardRef(({children:e,horizontal:t,style:n},o)=>a.jsx("div",{ref:o,style:{...n},className:br(Bf.Row,t&&Bf.horizontal),children:e}))),ZI={...Ey},GI=d.memo(d.forwardRef((e,t)=>{const{className:n,activationConstraint:o,animateLayoutChanges:r,adjustScale:i=!1,collisionDetection:l=nI,coordinateGetter:c=$I,dropAnimation:s=ZI,getItemStyles:u=()=>({}),getNewIndex:h,handle:f=!1,items:p,onMove:m,isDisabled:g=()=>!1,measuring:x,modifiers:y,renderItem:w,renderDivider:b,reorderItems:C=L3,strategy:_=O3,style:E,useDragOverlay:M=!0,onDragStart:j,wrapperStyle:F=()=>({})}=e,[k,O]=d.useState(()=>p);d.useEffect(()=>{O(p)},[p]);const[S,v]=d.useState(null),I=function(){for(var L=arguments.length,V=new Array(L),W=0;W<L;W++)V[W]=arguments[W];return d.useMemo(()=>[...V].filter(P=>P!=null),[...V])}($u(yy,{activationConstraint:o}),$u(by,{activationConstraint:o}),$u(I3,{scrollBehavior:"Cypress"in window?"auto":void 0,coordinateGetter:c})),T=k.indexOf.bind(k),R=S?T(S):-1,A=[];k.map((L,V)=>{A.push(a.jsx(KI,{id:L,handle:f,index:V,style:u,wrapperStyle:F,disabled:g(L),renderItem:w,animateLayoutChanges:r,useDragOverlay:M,getNewIndex:h},L+"-"+V));const W=b?.({key:"divider-"+V});W&&A.push(W)});const{getPortalContainer:D}=(d.useEffect(()=>{function L(){const V=document.fullscreenElement;if(!V)return;let W=V.querySelector(".fullscreen-portal-root");W||(W=document.createElement("div"),W.className="fullscreen-portal-root _fullscreen-portal-root_1mjsr_4",V.appendChild(W))}return kc++,L(),document.addEventListener("fullscreenchange",L),()=>{document.removeEventListener("fullscreenchange",L),kc--,kc<=0&&(document.querySelectorAll(".fullscreen-portal-root").forEach(V=>{V.parentNode&&V.parentNode.removeChild(V)}),kc=0)}},[]),{getPortalContainer:HM});return a.jsxs(CI,{sensors:I,collisionDetection:l,onDragStart:L=>{const{active:V}=L;V&&(j?.(L),v(V.id))},autoScroll:{canScroll:L=>!0},onDragEnd:L=>{if(v(null),L.over){const V=T(L.over.id);R!==V&&(O(W=>C(W,R,V)),m?.(R,V))}},onDragCancel:()=>{v(null)},measuring:x,modifiers:y,children:[a.jsx("div",{style:{display:"flex",justifyContent:"flex-start",boxSizing:"border-box",...E},className:br(n,ei.Wrapper),children:a.jsx(PI,{items:k,strategy:_,children:a.jsx(qI,{ref:t,children:A})})}),M?ao.createPortal(a.jsx(DI,{adjustScale:i,dropAnimation:s,children:S?a.jsx(My,{value:k[R],handle:f,renderItem:w,wrapperStyle:F({index:R,isDragging:!0,id:k[R]}),index:R,dragging:!0,style:u({id:k[R],index:R,isSorting:S!==null,isDragging:!0,overIndex:-1,isDragOverlay:!0}),dragOverlay:!0}):null}),D()):null]})}));function KI({disabled:e,animateLayoutChanges:t,getNewIndex:n,handle:o,id:r,index:i,onRemove:l,style:c,renderItem:s,useDragOverlay:u,wrapperStyle:h}){const{attributes:f,isDragging:p,isSorting:m,listeners:g,overIndex:x,setNodeRef:y,transform:w,transition:b}=VI({id:r,animateLayoutChanges:t,disabled:e,getNewIndex:n});return a.jsx(My,{ref:y,value:r,disabled:e,dragging:p,sorting:m,handle:o,renderItem:s,index:i,style:c({index:i,id:r,isDragging:p,isSorting:m,overIndex:x}),onRemove:l?()=>l(r):void 0,transform:w,transition:b,wrapperStyle:h({index:i,isDragging:p,id:r}),listeners:g,"data-index":i,"data-id":r,dragOverlay:!u&&p,...f})}const XI=new N.Color("rgb(33, 115, 70)"),YI="#eee",JI=e=>a.jsx(UI,{...e}),Ry=d.memo(d.forwardRef((e,t)=>{const{children:n,style:o,className:r,selectedTabIndex:i=0,tabNames:l=[],onSelectedTabIndexChange:c,onTabNameChange:s,onTabMove:u,createScrollStartButton:h=jx,createScrollEndButton:f=Mx,createScrollEdgeButton:p=kM,createTabButton:m=JI,createTabDivider:g,editLabelProps:x,disabled:y=!1,disableDrag:w=!1,background:b="white",activeColor:C=XI,borderColor:_=YI,borderWidth:E=1}=e,[M,j]=d.useState(i),[F,k]=d.useState(l),O=d.useCallback(Me=>{const re=D.current?.[Me]?.closest(".tab-item")??D.current?.[Me];re&&ee.current?.scrollTo({top:re.offsetTop,left:re.offsetLeft,behavior:"smooth"})},[]);d.useEffect(()=>{O(i)},[i]);const S=d.useCallback((Me,re)=>{re!==M&&(j(re),c?.(re)),O(re)},[c,M]),v=d.useCallback((Me,re)=>{u?.(Me,re)},[u]),I=d.useRef(null),[T,R]=d.useState(-1),A=d.useCallback((Me,re)=>{s?.(Me,re)},[s]);d.useLayoutEffect(()=>{j(i)},[i]),d.useLayoutEffect(()=>{k(l)},[l]);const D=d.useRef([]),L=d.useRef(null);d.useImperativeHandle(t,()=>Object.assign({startEdit(Me){D.current?.[Me]?.startEdit()},cancel(Me){D.current?.[Me]?.cancel()}},L.current),[M,T]);const V=d.useCallback(({value:Me,index:re,dragging:oe})=>{const{style:ue,maxLength:De,...ze}=x||{},mt=a.jsx(qR,{ref:bt=>{D.current[re]=bt},value:Me,disabled:y,maxLength:De,style:{color:M===re&&C?C?.toRGBA().toString():"inherit",flex:"1 1 100%",paddingTop:"1px",paddingBottom:"1px",...ue},styleHover:{},onSubmit:bt=>(I.current=!1,R(-1),A(re,bt)),onCancel:()=>{I.current=!1,R(-1)},onChange:bt=>{I.current=!0,R(re)},...ze});return m({onClick:bt=>S(bt,re),value:Me,index:re,editing:T===re&&I.current,editable:!0,disabled:y,selectedIndex:M,background:b,activeColor:C,borderColor:_,borderWidth:E,dragging:oe,children:mt})},[M,A,S,x,y,T,m]),[W,{width:P}]=q0(),[U,{width:X}]=q0(),ee=d.useRef(null),[H,$]=d.useState({left:0,top:0,width:0,height:0}),[z,q]=d.useState(null);d.useEffect(()=>{z!==null&&ee.current&&ee.current.scrollTo({left:z,behavior:"smooth"})},[z]);const Z=d.useCallback((Me,re=!1)=>{if(!ee.current)return 0;let oe=ee.current.firstChild.getBoundingClientRect(),ue=ee.current.firstChild.firstChild.children,De=0;return De=re?0:q7.getScrollTo(Me,oe.left,ue,!0,Math.max(0,Me-200)),q(De),Math.max(0,De)},[]),Q=d.useCallback((Me,re=!1)=>{if(!ee.current)return 0;let oe=ee.current.firstChild.getBoundingClientRect(),ue=ee.current.firstChild.firstChild.children,De=0;const ze=Math.ceil(X-P);return De=re?ze:q7.getScrollTo(Me,oe.left,ue,!1,Math.max(0,Me+200)),q(De),Math.min(ze,De)},[X,P]),Y=d.useRef(null),te=d.useRef(null),ie=d.useCallback(()=>{te.current&&(clearTimeout(te.current),te.current=null,Y.current=null)},[]),fe=d.useCallback((Me,re,oe=260)=>{Y.current=Me,te.current=setTimeout(()=>{const ue=re?Z(Y.current||Me):Q(Y.current||Me);ue!==Y.current?fe(ue,re,120):ie()},oe)},[Z,Q,ie]);d.useEffect(()=>()=>ie(),[ie]);const J=d.useMemo(()=>({style:{marginLeft:"4px",marginRight:"6px"},disabled:Math.floor(H.left)<=0||Math.floor(X-P)===0,orientation:Wo.Horizontal,onMouseUp:ie,onMouseLeave:ie,onMouseDown:()=>fe(ee.current.scrollLeft,!0),onClick:Me=>Z(Math.min(ee.current.scrollLeft,z??Number.MAX_SAFE_INTEGER),Me.ctrlKey)}),[H,z,X,P]),ae=d.useMemo(()=>({style:{marginLeft:"6px",marginRight:"4px"},disabled:Math.floor(X-P)<=Math.ceil(H.left),orientation:Wo.Horizontal,onMouseUp:ie,onMouseLeave:ie,onMouseDown:()=>fe(ee.current.scrollLeft,!1),onClick:Me=>Q(Math.max(ee.current.scrollLeft,z??0),Me.ctrlKey)}),[H,z,X,P]),Ce=d.useMemo(()=>a.jsxs(a.Fragment,{children:[a.jsx("div",{style:{minWidth:"16px"}}),n,p?.(J)]}),[J,ae,h,f,n,p]);return a.jsxs("div",{style:{...o,display:"flex",alignItems:"stretch"},className:br("_TabStrip_3x0dp_1",r),ref:L,children:[a.jsx("div",{style:{borderTop:`solid ${_} ${E}px`,position:"absolute",width:"100%"}}),a.jsx("div",{style:{flex:"none",display:"flex",alignItems:"center"},children:Ce}),a.jsx("div",{className:"Tabs",ref:W,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:ee,onScroll:Me=>{$({left:Me.target.scrollLeft,top:Me.target.scrollTop,width:Me.target.scrollWidth,height:Me.target.scrollHeight})},children:a.jsx(GI,{isDisabled:Me=>y||w,items:F,strategy:OI,modifiers:[WI],ref:U,renderItem:V,renderDivider:g,onMove:v,activationConstraint:{distance:15}})})}),a.jsx("div",{style:{flex:"none",display:"flex",alignItems:"center"},children:p(ae)})]})}));Ry.displayName="TabStrip";const QI=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"})]}),eD=d.createContext(null),P3=()=>{const e=d.useContext(eD),[t]=d.useState(()=>new N.ThemeCollection);return d.useMemo(()=>e||t,[e])},tD=d.lazy(()=>Promise.resolve().then(()=>require("./n8wDl6JTlhLU6ZAW.cjs"))),nD={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"},Nf=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()),c=e.getPosition();let s={...c};s.lineNumber=1,s.column=1;let u=!1;for(let x=c.lineNumber;x>=1;x--)if(o.getLineContent(x).trim()===""){const y=A3(l,o.getOffsetAt({lineNumber:x,column:1}),"function");if(!y||rD(y)){u=!0,s.lineNumber=x+1;break}{const w=y.spans[0].start;x=o.getPositionAt(w).lineNumber,s.lineNumber=x}}let h=n,f=!1;!u&&!h.startsWith(`
|
|
84
|
+
`)&&s.lineNumber>1&&(h=`
|
|
85
|
+
`+h,f=!0);let p=!1;o.getLineCount()>1&&(h.endsWith(`
|
|
86
|
+
|
|
87
|
+
`)||(h+=`
|
|
88
|
+
|
|
89
|
+
`,p=!0));const m=[{range:new t.Range(s.lineNumber,s.column,s.lineNumber,s.column),text:`${h}`}];let g=null;o.pushEditOperations([],m,x=>(g=x[0].range,f&&g.startLineNumber++,p&&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 oD(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 j5(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:oD(n,o),lineNumber:l.lineNumber})}if(o.childItems)for(const i of o.childItems)j5(e,t,n,i,r);return r}function A3(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 c of e.childItems||[]){const s=A3(c,t,n,o);if(s)return s}}return null}}function rD(e){return e.kind==="comment"}const iD=d.memo(d.forwardRef((e,t)=>{const{className:n,style:o,commands:r,readOnly:i=!1,onClose:l,darkMode:c,loadingPanel:s,autoFocus:u=!0,onStatusChange:h,...f}=e,p=d.useRef(null),m=Be(l,[l]),g=d.useRef(!1),x=d.useMemo(()=>({contains(L){if(!p.current)return;const V=p.current.editor;return V&&V.getDomNode()?.contains(L)},focus(){if(!p.current)return;const L=p.current.editor;return L&&L.getDomNode()?.focus()}}),[]),y=d.useMemo(()=>[new Ve("help",x,{label:"Script Commands",description:"Open Editor Commands",shortcut:{key:"F1"}},()=>{})],[]),w=d.useMemo(()=>{let L=null;const V=()=>x;return L=r?r.createChildGroup(V,"scriptEditor",!1):new Kl(V,"scriptEditor"),L.addCommands(y,!0),L},[r,y]),b=Hx(w,["executeSelectedScript"])[0],C=b?.context(),_=Be(L=>{b?.execute(L)},[b]),E=d.useRef(""),[M,j]=d.useState(!1),F=Be(async()=>{if(!p.current)return null;const L=p.current,V=L.editor;if(!V)return null;const W=L.monaco,P=await(async(U,X,ee="export")=>{const H=U.getModel();if(!H)return null;const $=await X.languages.typescript.getTypeScriptWorker(),z=await $(H.uri),q=await z.getNavigationTree(H.uri.toString());let Z=null,Q=U.getSelection();const Y=Q.startLineNumber===Q.endLineNumber&&Q.startColumn===Q.endColumn?H.getLineCount():Math.min(Q.endLineNumber,H.getLineCount());for(let te=Q.startLineNumber;!Z&&te<=Y;te++){const ie=A3(q,H.getOffsetAt({lineNumber:te,column:1}),"function",ee);ie&&(Z=ie.text)}return Z})(V,W);return h?.({message:(P??"").toUpperCase()}),P?{source:V.getValue(),name:P}:null},[h]),k=Be(async(L,V,W)=>{const P=await C.getScripts().createModule({source:W?.getValue(),declarationsOnly:!0}),U=P?P.getFunctions().search():Ht.EmptyArray;P&&(async function(X,ee){const H=[];for(let $=1;$<X.getLineCount()+1;$++){const z={startLineNumber:$,startColumn:1,endLineNumber:$,endColumn:X.getLineLength($)+1},q=X.getValueInRange(z).indexOf("modelt");q!==-1&&H.push({message:"found 'modelt'",resource:"https://www.sheetxl.com",severity:ee.MarkerSeverity.Hint,startLineNumber:z.startLineNumber,startColumn:q+1,endLineNumber:z.startLineNumber,endColumn:q+5})}ee.editor.setModelMarkers(X,"owner",H)}(L,V),async function(X,ee,H,$){const z=await ee.languages.typescript.getTypeScriptWorker(),q=await z(X.uri),Z=await q.getNavigationTree(X.uri.toString()),Q=j5(X,ee,$,Z).map(Y=>{let te=null,ie=null;return Y.type==="formula"?(te="formula.margin-icon",ie="Formula"):Y.type==="macro"?(te="macro.margin-icon",ie="Macro"):Y.type==="autoRun"&&(te="autorun.margin-icon",ie="Auto Run"),{range:new ee.Range(Y.lineNumber,1,Y.lineNumber,1),options:{isWholeLine:!1,glyphMarginClassName:te,glyphMarginHoverMessage:ie,stickiness:ee.editor.TrackedRangeStickiness.NeverGrowsWhenTypingAtEdges}}});I.current&&I.current.clear(),I.current=H.createDecorationsCollection(Q)}(L,V,W,U))},[C]),O=Be(Ht.debounce(k,580),[]),S=Be(async(L=void 0)=>{if(!p.current||!C)return;const V=p.current.editor.getPosition(),W={cursor:V?V.toString():""};L!==void 0&&(W.message=L),h?.(W);const P=F();C.setSelectedFunction(P)},[C,h]);d.useEffect(()=>{if(!C)return;const L={insertSnippet:W=>{p.current?.editor&&(M?Nf(p.current.editor,p.current.monaco,W):E.current=W)}};C.setEditor(L),C.setSelectedFunction(F());const V=C.addContainerListener({onBeforeSave:async()=>{if(!p.current?.editor||!C)return;const W=p.current.editor,P=C?.getScripts().getModules().getByName("scripting"),U=P?.getSource(),X=W.getValue();if((U?.length??0)===X.length&&U===X)return;await C.saveSource(W.getValue());const ee=(U?.length??0)!==X.length||U!==X;h?.({dirty:ee})},onReadonlyChange(){},onScriptChange:async()=>{if(!p.current?.editor||!C)return;const W=p.current.editor,P=C.getScripts().getModules().search()[0]?.getSource()??"";W.setValue(P)}});return()=>{V(),C.setSelectedFunction(null),C.setEditor(null)}},[C,M]),d.useEffect(()=>()=>{if(!p.current?.editor)return;const L=p.current.editor;C?.saveSource(L.getValue())},[]);const v=Be(L=>{const V=p.current;if(!V)return!1;const W=V.editor;return!!W&&(W.focus(),!0)},[]),I=d.useRef(null),T=Be((L,V)=>{p.current={monaco:V,editor:L},j(!0),S("Loading Types");const W=C.getScripts().getModules().search()[0]?.getSource()??"";L.setValue(W),Promise.resolve().then(()=>require("./CGlk1dj000Bm5cqP.cjs")).then(U=>U.c).then(U=>{S(""),U.AutoTypings.create(L,{shareCache:!0,monaco:V,onError:X=>{X==="Not implemented yet"&&(X="Compile Errors"),console.warn("Error compiling types",X)}}).then(async X=>{const ee=L.getModel();O(ee,V,L)})}),L.addCommand("executeScript",function(U,...X){X?.[0]&&_({functionName:X?.[0]})},""),L.addAction({id:"executeScript",label:"Execute",keybindings:[V.KeyCode.F8],run:async U=>{const X=F();C.setSelectedFunction(X);const ee=await X;_(ee)}}),L.addAction({id:"saveScript",label:"Save Script",keybindings:[V.KeyMod.CtrlCmd|V.KeyCode.KeyS],run:U=>{C?.saveSource(L.getValue()).then(()=>{const X=C?.getScripts().getModules().getByName("scripting"),ee=X?.getSource(),H=L.getValue(),$=(ee?.length??0)!==H.length||ee!==H;h?.({dirty:$})})}}),L.onMouseDown(async U=>{if(U.target.type===V.editor.MouseTargetType.GUTTER_GLYPH_MARGIN){const X=U.target.position.lineNumber,ee=await V.languages.typescript.getTypeScriptWorker(),H=await ee(P.uri),$=await H.getNavigationTree(P.uri.toString()),z=L?.getValue(),q=(await C?.saveSource(z)).getFunctions().search(),Z=j5(P,V,q,$).find(Q=>Q.lineNumber===X);if(Z){const Q=U.event.browserEvent.button;Q===0?Z.type==="macro"||Z.type==="autoRun"?_({functionName:Z.name}):Z.type==="formula"&&C.quickInsertFunction?.(Z.name):Q===2&&(console.log("Context menu for function:",Z.name),U.event.browserEvent.preventDefault())}}}),L.onDidChangeModelContent(()=>{const U=L.getModel();O(U,V,L)});const P=L.getModel();(function(U,X){X.languages.registerInlayHintsProvider("typescript",{provideInlayHints(ee,H,$){const z=[];for(let q=1;q<ee.getLineCount()+1;q++){const Z={startLineNumber:q,startColumn:1,endLineNumber:q,endColumn:ee.getLineLength(q)+1},Q="hint",Y=ee.getValueInRange(Z).indexOf("hint");Y!==-1&&z.push({kind:X.languages.InlayHintKind.Type,position:{lineNumber:Z.startLineNumber,column:Y+Q.length+1},label:"[hint]"})}return{hints:z,dispose:()=>{}}}})})(0,V),P.onDidChangeContent(U=>{const X=C?.getScripts().getModules().getByName("scripting"),ee=X?.getSource(),H=L.getValue(),$=(ee?.length??0)!==H.length||ee!==H;h?.({dirty:$})}),L.onDidChangeCursorPosition(U=>{S()})},[C,h]),R=d.useMemo(()=>M?null:s||a.jsx("div",{style:{position:"absolute",width:"100%",height:"100%"},children:"Loading..."}),[M,s]),A=d.useMemo(()=>{const L=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(d.Suspense,{children:a.jsx(tD,{theme:c?"extended-dark":"extended",options:{...nD,fixedOverflowWidgets:!0,readOnly:i},language:"typescript",value:L,onValidate:V=>{let W=!1;for(let P=0;!W&&P<V?.length;P++)V[P].severity===8&&(W=!0)},beforeMount:V=>{V.languages.typescript.typescriptDefaults.setDiagnosticsOptions({noSemanticValidation:!0,noSyntaxValidation:!0}),V.languages.json.jsonDefaults.setDiagnosticsOptions({validate:!0}),V.editor.defineTheme("extended",{base:"vs",inherit:!0,rules:[],colors:{}}),V.editor.defineTheme("extended-dark",{base:"vs-dark",inherit:!0,rules:[],colors:{}}),(async()=>{let W=!1;try{const U=await(async()=>await(await fetch("https://cdn.jsdelivr.net/npm/@sheetxl/sdk/types/scripting.d.ts")).text())(),X=V.Uri.parse('inmemory://model/"sheetxl-models".d.ts'),ee=V.editor.createModel(U,"typescript",X);V.editor.setModelMarkers(ee,"default",[]),W=!0}catch(U){console.warn("cant load types",U)}V.languages.registerLinkProvider("*",{provideLinks:(U,X)=>{const ee=[],H={links:ee},$=U.getLinesContent();for(let z=1;z<=$.length;z++){const q=$[z-1],Z=V.editor.tokenize(q,"typescript");for(let Q=0;Q<Z[0].length;Q++){const Y=Z[0]?.[Q];if(Y&&Y.type.startsWith("string")){let te=Y.offset,ie=Z[0]?.[Q+1]?.offset??q.length,fe=new V.Range(z,te+1,z,ie+1),J=U.getValueInRange(fe);const ae=J[0];ae!=="`"&&ae!=="'"&&ae!=='"'||(te++,J=J.substring(1));const Ce=J[J.length-1];Ce!=="`"&&Ce!=="'"&&Ce!=='"'||(te++,J=J.substring(0,J.length-1));try{C.getRanges(J)&&ee.push({range:{endColumn:ie,endLineNumber:z,startColumn:te,startLineNumber:z},tooltip:`Goto range '${J}'`,url:`/range/${J}`})}catch(Me){console.warn(Me)}}}}return H}}),V.editor.registerLinkOpener({open(U){if(U?.path?.startsWith("/range/")){try{C.getRanges(U.path.substring(7))?.select()}catch(X){console.warn("invalid range",X)}return!0}return!1}});const P=V.languages.typescript.typescriptDefaults.getCompilerOptions();V.languages.typescript.typescriptDefaults.setCompilerOptions({...P,target:V.languages.typescript.ScriptTarget.ES2020,lib:["webworker","es2020","esnext.asynciterable"],downlevelIteration:!0,moduleResolution:V.languages.typescript.ModuleResolutionKind.Classic,baseUrl:"inmemory://model/",allowNonTsExtensions:!0}),E.current&&(await Nf(p.current.editor,p.current.monaco,E.current),E.current=null),g.current&&requestAnimationFrame(async()=>{g.current&&V.editor.focus()}),V.languages.typescript.typescriptDefaults.setDiagnosticsOptions({noSemanticValidation:!1,noSyntaxValidation:!1}),j(!0)})()},onMount:T})}),R]})},[C,w,i,R,c]),D=Gr(t,()=>({isScriptEditorElement:()=>!0,focus:L=>{v(L)},close:()=>{m?.()},getEditor:()=>C?.getEditor()}),[C]);return d.useEffect(()=>(u&&requestAnimationFrame(()=>{v()}),()=>{p.current?.editor&&requestAnimationFrame(()=>{D.current?.contains(document.activeElement)&&v()})}),[]),a.jsx("div",{className:br("script-editor","_script-editor_iy654_5",n),style:{display:"flex",flexDirection:"row",flex:"1 1 100%",position:"relative",...o},ref:D,...f,children:A})})),Iy={Preset:"preset",Custom:"custom"},Il={Start:"start",End:"end"},Zu={},lD=(e,t,n,o)=>{const r=e+"-"+t+"-"+n+(o?"-server":"");if(Zu[r])return Zu[r];const i=((l,c,s,u)=>{if(typeof document>"u"&&!u)return null;const h=u?new u:document.createElement("canvas");h.width=2*s,h.height=2*s;const f=h.getContext("2d");return f?(f.fillStyle=l,f.fillRect(0,0,h.width,h.height),f.fillStyle=c,f.fillRect(0,0,s,s),f.translate(s,s),f.fillRect(0,0,s,s),h.toDataURL()):null})(e,t,n,o);return Zu[r]=i,i},aD={},Dy=d.memo(e=>{const{className:t,style:n=As.EmptyCssProperties,white:o="transparent",grey:r="grey",size:i=8,borderRadius:l,boxShadow:c,renderers:s=aD,children:u,...h}=e,f=u,p=d.useMemo(()=>Object.assign({borderRadius:l,boxShadow:c,position:"absolute",top:"0px",left:"0px",width:"100%",height:"100%",background:`url(${lD(o,r,i,s?.canvas)}) center left`},n),[o,r,i,s]);return d.isValidElement(u)?d.cloneElement(u,{...f.props}):a.jsx("div",{style:p,...h})}),sD=d.memo(e=>{const{selectedColor:t,onSelectColor:n,onPreviewColor:o,onClick:r,onKeyDown:i,onMouseOver:l,onMouseLeave:c,onFocus:s,style:u=As.EmptyCssProperties,children:h,alphaWhite:f,alphaGrey:p,darkMode:m,alphaCheckSize:g=7,...x}=e;if(!t)throw new Error("a selectedColor is required");const y=d.useCallback(M=>{r?.(M),M.isDefaultPrevented()||(M.ctrlKey?o?.(t.toRGBA()):n?.(t.toRGBA()))},[n,o,r,t]),w=d.useCallback(M=>{l?.(M),M.isDefaultPrevented()||o?.(t.toRGBA())},[o,l,t]),b=d.useCallback(M=>{c?.(M),M.isDefaultPrevented()},[o,c]),C=d.useCallback(M=>{s?.(M),M.isDefaultPrevented()||o?.(t.toRGBA())},[o,s,t]),_=d.useCallback(M=>{i?.(M),M.isDefaultPrevented()||M.keyCode===Cn.Enter&&n?.(t.toRGBA())},[n,i,t]),E=d.useMemo(()=>t.toRGBA().alpha===1?null:a.jsx(Dy,{size:g,white:f,grey:p,style:{position:"absolute",width:"calc(100% - 1.5px)",height:"calc(100% - 1.5px)",top:"0.75px",left:"0.75px"}}),[f,p,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:_,onMouseOver:w,onMouseLeave:b,onFocus:C,children:[E,a.jsx("div",{style:{position:"absolute",top:"0px",left:"0px",height:"100%",width:"100%",background:t.toCSS(m)},children:h})]})}),Id=d.memo(e=>{const{schemeColorLookup:t,selectedColor:n,previewColor:o,colorDef:r,onSelectColorDef:i,onPreviewColorDef:l,swatchProps:c,defaultButtonSize:s=24,isLarge:u=!1,compareRGB:h=!1,darkMode:f=!1,...p}=e,m=new N.Color({val:r.definition.val,adjs:r.definition.adjs},E=>t(E)),g=h?m.toRGBA().toString():m.toString(),x=n&&(h?n.toRGBA().toString():n.toString())===g,y=o&&(h?o.toRGBA().toString():o.toString())===g,w=[];w.push({[N.IColor.AdjustmentType.Inv]:!0}),w.push({[N.IColor.AdjustmentType.Alpha]:100});const b=m.adjust(w),C=d.useCallback(()=>{i?.(r)},[i,r]),_=d.useCallback(E=>{l?.(E?r:null)},[l,r]);return a.jsx(Ir,{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:s*(u?1.2:1)+"px",height:s*(u?1.2:1)+"px",position:"relative",boxSizing:"border-box",cursor:"pointer",outline:"none"},...p,children:a.jsxs(sD,{selectedColor:m,title:null,onSelectColor:C,onPreviewColor:_,alphaCheckSize:u?9:void 0,darkMode:f,...c,children:[a.jsx("div",{style:{position:"absolute",width:"100%",height:"100%",top:"0px",left:"0px",pointerEvents:"none",borderColor:b.toRGBA(f).toString(),borderWidth:"2px",borderStyle:"solid",boxSizing:"border-box",opacity:x?"1":"0"}}),a.jsx("div",{style:{position:"absolute",width:.33*s*(u?1.2:1)+"px",height:.33*s*(u?1.2:1)+"px",left:"calc(50% - 0.5px)",top:"calc(50% - 0.5px)",transform:"translate(-50%,-50%)",pointerEvents:"none",background:b.toRGBA(f).toString(),borderRadius:"50%",opacity:y?"1":"0"}})]})})})}),Pc=d.memo(e=>{const{title:t,schemeColorLookup:n,colorDefs:o,selectedColor:r,previewColor:i,onSelectColorDef:l,onPreviewColorDef:c,style:s=As.EmptyCssProperties,compareRGB:u=!1,darkMode:h,swatchProps:f,...p}=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=d.useCallback(b=>{l?.(b)},[l]),x=d.useCallback(b=>{c?.(b)},[c]),y=d.useMemo(()=>{let b=[];for(let C=0;C<m.length;C++){let _=[],E=m[C];for(let j=0;j<E.length;j++){let F=E[j];_.push(a.jsx(Id,{schemeColorLookup:n,colorDef:F,selectedColor:r,previewColor:i,onSelectColorDef:g,onPreviewColorDef:x,swatchProps:f,compareRGB:u,darkMode:h},C+" "+j))}let M=a.jsx(B.Box,{className:"button-col",sx:{display:"flex",flexDirection:"column",justifyContent:"space-between",boxShadow:j=>j.shadows[2],borderRadius:"2px",overflow:"hidden"},children:_},""+C);b.push(M)}return b},[m,r,i,g,x]),w=d.useMemo(()=>t?a.jsx(B.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(B.Box,{style:{...s},children:[w,a.jsx(B.Box,{sx:{display:"flex",flexDirection:"row",gap:"6px",marginBottom:"14px",flexWrap:"wrap",justifyContent:"flex-start"},...p,children:y})]})}),ti=(e,t)=>({description:e,definition:{val:t,adjs:[]}}),wo=(e,t,n,o,r,i)=>{const l=ti(e,t);o?.push(l);const c=new N.Color({val:l.definition.val,adjs:l.definition.adjs},n),s=c.toString();r?.set(s,c);const u=c.toRGBA().toString();i?.set(u,c)},cD=d.lazy(()=>Promise.resolve().then(()=>require("./D2CoaVzteKVTLz2u.cjs"))),Ly=d.memo(d.forwardRef((e,t)=>{const{selectedColor:n=null,previewColor:o=e.selectedColor??null,recentColors:r,schemeLookup:i,disableAlpha:l=!1,previewDebounceTime:c=100,initialPanelType:s,defaultButtonSize:u=24,width:h,onElementLoad:f,onDone:p,onEyeDropStart:m,onEyeDropStop:g,onPreviewColor:x,onPreviewColorImmediate:y,onSelectColor:w,autoColor:b,autoColorLabel:C="Automatic",autoColorPosition:_=Il.Start,compareRGB:E=!1,darkMode:M=!1,...j}=e,F=o||n,k=et(x,[x]),O=et(y,[y]),S=et(w,[w]),v=et(m,[m]),I=et(g,[g]),[T,R]=d.useState(!1),A=Zr(),D=d.useMemo(()=>i||N.Color.getDefaultSchemeLookup(),[i]),L=d.useMemo(()=>{const J=new Map,ae=new Map,Ce=[];wo("Primary Background","bg1",D,Ce,J,ae),wo("Primary Text","tx1",D,Ce,J,ae),wo("Secondary Background","bg2",D,Ce,J,ae),wo("Secondary Text","tx2",D,Ce,J,ae),wo("Accent 1","accent1",D,Ce,J,ae),wo("Accent 2","accent2",D,Ce,J,ae),wo("Accent 3","accent3",D,Ce,J,ae),wo("Accent 4","accent4",D,Ce,J,ae),wo("Accent 5","accent5",D,Ce,J,ae),wo("Accent 6","accent6",D,Ce,J,ae);const Me=N.ITheme.buildPalette(Ce,D,J,ae),re=[];if(wo("Dark Red","C00000",D,re,J,ae),wo("Red","FF0000",D,re,J,ae),wo("Orange","FFC000",D,re,J,ae),wo("Yellow","FFFF00",D,re,J,ae),wo("Light Green","92D050",D,re,J,ae),wo("Green","00B050",D,re,J,ae),wo("Light Blue","00B0F0",D,re,J,ae),wo("Blue","0070C0",D,re,J,ae),wo("Dark Blue","002060",D,re,J,ae),l?wo("Purple Is A Fruit","7030A0",D,re,J,ae):wo("Transparent","00000000",D,re,J,ae),b){const ze=b.toString();J.set(ze,b)}const oe=new Map,ue=typeof r=="function"?r():r,De=[];for(let ze=0;ue&&ze<ue.length;ze++){const mt=ue[ze].toString();oe.set(mt,ue[ze]),De.push({description:"Recent "+(ze+1),definition:{val:ue[ze].toString()}})}return{primaryColors:Ce,modifiedPresets:Me,standardColors:re,recentColorsLimited:De,mapAllPresets:J,mapAllPresetsRGB:ae,mapRecent:oe}},[D,r,l,b]);d.useEffect(()=>{f?.()},[]);const[V,W]=d.useState(!1),P=d.useCallback(()=>{W(J=>!J)},[]);d.useEffect(()=>{if(s)W(s===Iy.Custom);else if(n){let J=n.toString(),ae=L.mapAllPresets.get(J);ae||(J=n.toRGBA().toString(),ae=L.mapAllPresetsRGB.get(J));const Ce=L.mapRecent.get(J);W(!ae&&!Ce)}},[n,s]);const U=d.useCallback(N.CommonUtils.debounce(J=>{k?.(J)},c),[k,c]),[X,ee]=d.useState();d.useEffect(()=>{ee(o||n)},[o,n]);const H=et(J=>{O&&(O(J),U(J))},[O]),$=et(J=>{H(J?new N.Color({val:J.definition.val,adjs:J.definition.adjs},D):null)},[D]),z=d.useCallback(J=>{J.ctrlKey&&W(!0)},[]),q=et(J=>{let ae=!1;if(J){const Ce=J.toString();ae=!L.mapAllPresets.has(Ce)}S?.(J,ae)},[S,L]),Z=et(J=>{const ae=J?new N.Color({val:J.definition.val,adjs:J.definition.adjs},D):null;Promise.resolve(p?.()).then(()=>{q(ae)})},[D,p]),Q=et(J=>{H(J?new N.Color(J,D):null)},[D]),Y=d.useMemo(()=>window.EyeDropper===void 0?a.jsx(a.Fragment,{}):a.jsx(B.IconButton,{"aria-label":"eye dropper",size:"small",sx:{color:J=>J.palette.text.icon??J.palette.action.active},onClick:async()=>{R(!0),v?.(),await new EyeDropper().open().then(J=>{R(!1),I?.();let ae=new N.Color(J.sRGBHex),Ce=ae.toString(),Me=L.mapAllPresets.get(Ce);if(Me||(Ce=ae.toRGBA().toString(),Me=L.mapAllPresetsRGB.get(Ce)),!Me){const re=ae.toRGBA(),oe=3;let ue=255;L.mapAllPresetsRGB.forEach((De,ze)=>{const mt=De.toRGBA(),bt=Math.abs(mt.red-re.red)+Math.abs(mt.blue-re.blue)+Math.abs(mt.green-re.green);bt<oe&&bt<ue&&(Me=De)})}W(!Me),H(Me||ae)}).catch(J=>{R(!1),J?.name!=="AbortError"&&console.error(J)})},children:a.jsx(gn.Colorize,{})}),[L,M]),te=d.useMemo(()=>{if(!V)return;const J={opacity:V?1:"0",position:"absolute",top:"0px",left:"0px",width:"100%",height:"100%",boxSizing:"border-box"};return a.jsx(d.Suspense,{fallback:a.jsx("div",{style:J,children:a.jsx(c0,{})}),children:a.jsx(cD,{style:J,selectedColor:F?F.toRGBA().toString():"transparent",onColorChange:Q,disableAlpha:l})})},[V,F]),ie=d.useMemo(()=>({onClick:z,alphaGrey:A.palette.text.icon??A.palette.action.active}),[z,A]),fe=d.useMemo(()=>{if(!b)return null;const J={description:C,definition:{val:b.getVal(),adjs:b.getAdjustments()}};return a.jsx(a.Fragment,{children:a.jsxs(B.MenuItem,{sx:{display:"flex",color:ae=>ae.palette.text.secondary},onMouseOver:()=>{$(null)},onClick:()=>{Z(null)},children:[a.jsx(B.Box,{sx:{flex:"none",boxShadow:ae=>ae.shadows[2],borderRadius:ae=>ae.spacing(.5),overflow:"hidden"},children:a.jsx(Id,{schemeColorLookup:D,colorDef:J,selectedColor:n===null?b:n,previewColor:o===null?b:o,defaultButtonSize:u,isLarge:!0,darkMode:M,compareRGB:E,swatchProps:ie})}),a.jsx(B.Typography,{noWrap:!0,component:"div",style:{display:"flex",flex:"1 1 100%",marginLeft:"8px",userSelect:"none"},children:C})]})})},[b,C,D,n,o]);return a.jsxs(B.Box,{ref:t,sx:{width:h,outline:"none",padding:"10px 10px",overflow:"hidden",boxSizing:"content-box"},...j,children:[a.jsxs("div",{style:{position:"relative",display:"flex"},children:[a.jsxs("div",{style:{opacity:V?"0":1},children:[fe&&_===Il.Start?a.jsxs(a.Fragment,{children:[fe,a.jsx(B.Divider,{light:!0,style:{marginTop:"2px",marginBottom:"10px"}})]}):null,a.jsx(Pc,{title:"Theme Colors",schemeColorLookup:D,colorDefs:L.primaryColors,selectedColor:n,previewColor:o===void 0?n:o,swatchProps:ie,onPreviewColorDef:$,onSelectColorDef:Z,compareRGB:E,darkMode:M}),a.jsx(Pc,{schemeColorLookup:D,colorDefs:L.modifiedPresets,selectedColor:n,previewColor:o===void 0?n:o,swatchProps:ie,onPreviewColorDef:$,onSelectColorDef:Z,compareRGB:E,darkMode:M}),a.jsx(B.Divider,{light:!0,style:{marginBottom:"10px"}}),a.jsx(Pc,{title:"Standard Colors",schemeColorLookup:D,colorDefs:L.standardColors,selectedColor:n,previewColor:o===void 0?n:o,swatchProps:ie,onPreviewColorDef:$,onSelectColorDef:Z,compareRGB:E,darkMode:M}),a.jsxs("div",{style:{opacity:L.recentColorsLimited.length===0?"0":void 0,display:L.recentColorsLimited.length===0?"none":void 0},children:[a.jsx(B.Divider,{light:!0,style:{marginBottom:"10px"}}),a.jsx(Pc,{title:"Recent Colors",schemeColorLookup:D,colorDefs:L.recentColorsLimited,selectedColor:n,previewColor:o===void 0?n:o,swatchProps:ie,onPreviewColorDef:$,onSelectColorDef:Z,compareRGB:E,darkMode:M})]}),fe&&_===Il.End?a.jsxs(a.Fragment,{children:[a.jsx(B.Divider,{light:!0,sx:{marginTop:"2px",marginBottom:"2px"}}),fe,a.jsx("div",{style:{marginBottom:"2px"}})]}):null]}),te]}),a.jsx(B.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:[Y,a.jsx("div",{style:{flex:"1 1 100%",background:"pink"}}),a.jsx(B.Button,{style:{minWidth:"75px",maxWidth:"75px"},value:"check",variant:"outlined",size:"small",onClick:()=>{P()},children:V?a.jsx("div",{children:"Preset"}):a.jsx("div",{children:"Custom"})}),a.jsx(B.Button,{variant:"contained",size:"small",style:{minWidth:"75px"},onClick:()=>{Promise.resolve(p?.()).then(()=>{q(X)})},children:"Done"})]})]})})),dD=a.jsx(FS,{}),F3=d.memo(d.forwardRef((e,t)=>{const{selectedColor:n,quickColor:o,icon:r=dD,tooltip:i,label:l,onPreviewColor:c,onPreviewColorImmediate:s,onSelectColor:u,variant:h=Wr.Toolbar,panelProps:f,shouldCloseFloatAll:p=!0,compareRGB:m=!1,darkMode:g=!1,...x}=e,y=et(c,[c]),w=et(s,[s]),b=et(u,[u]),[C,_]=d.useState(()=>{}),E=o||C||n||f?.autoColor,M=d.useRef(!1),j=d.useCallback(()=>{},[]),F=et(()=>{_(n)},[n]),k=et(L=>{M.current||(_(L),y?.(L))},[y]),O=et(L=>{M.current||(_(L),w?.(L))},[w]),S=et((L,V)=>{M.current||(_(void 0),b?.(L,V))},[b]),v=d.useMemo(()=>a.jsx(B.Box,{sx:{width:"24px",height:"24px",color:"inherit","--sxl-color-active":`${E?.toCSS(g)??"transparent"}`,"& .activeColor":{fill:`${E?.toCSS(g)??"transparent"}`},"& .style_grey":{fill:L=>L.palette.text.icon??L.palette.action.active}},children:typeof r=="function"?r():r}),[E,r,g]),I=et(L=>{b?.(o,!1)},[b,o]),[T,R]=d.useState(!1),A=d.useCallback(L=>{const{closeFloat:V,closeFloatAll:W}=L;return a.jsx(Ly,{...f,selectedColor:n,previewColor:C,onDone:p?W:V,onKeyDown:P=>{P.which===Cn.Enter&&(p?W():V())},onPreviewColorImmediate:O,onPreviewColor:k,onSelectColor:S,onEyeDropStart:()=>R(!0),onEyeDropStop:()=>R(!1),compareRGB:m,darkMode:g})},[n,C,p,E,f?.autoColor,g]),D={onQuickClick:o?I:void 0,createPopupPanel:A,popupProps:{popperProps:{resizeOnOverflow:!1}},onPopupOpen:F,onPopupClose:j,tooltip:i||l||"Color",label:l,icon:v,...x};return h===Wr.Toolbar?a.jsx(ii,{ref:t,...D}):a.jsx(Ns,{ref:t,...D})})),g1=82,M5=e=>{const{styleColor:t,length:n=g1,width:o=1,dashArray:r=null,sx:i,isDouble:l=!1,isAngled:c=!1,darkMode:s=!1,...u}=e;return a.jsx(B.SvgIcon,{sx:{width:`${n}px`,height:`${o}px`,color:"inherit",overflow:"visible","& .activeColor":{stroke:h=>`${t?t.toRGBA(s).toString():h.palette.text.icon??h.palette.action.active}`},"& .style_grey":{stroke:h=>h.palette.text.icon??h.palette.action.active},...i},height:o,width:n,viewBox:`0 0 ${n} ${o}`,...u,children:a.jsx(Gx,{length:n,width:o,dashArray:r,isDouble:l,isAngled:c,className:"activeColor"})})},Oy=d.memo(d.forwardRef((e,t)=>{const{variant:n,showLabels:o=!1,disabled:r=!1,createPopupPanel:i,styleColor:l,selectedStyle:c,onSelectStyle:s,showNone:u=!0,darkMode:h,sx:f,...p}=e,m=et(s,[]),g=d.useCallback(b=>{const{popupContainer:C,floatReference:_,closeFloat:E,...M}=b,j=[],F=N.IBorder.BuiltInDefinitionsArray;for(let k=0;k<F.length;k++){const O=F[k];if(O.description==="None"&&!u)continue;const S=a.jsx(M5,{styleColor:l,length:g1,width:O.width,darkMode:h,dashArray:O.pattern,isDouble:O.description.toLowerCase().includes("double"),isAngled:O.description.toLowerCase().includes("slant")});let v=null;v=o?a.jsxs(a.Fragment,{children:[a.jsx(B.Box,{sx:{marginRight:"6px"},children:O.description}),a.jsxs(B.Box,{sx:{marginLeft:"6px",marginRight:"6px",display:"flex",alignItems:"center",flex:"1 1 100%"},children:[a.jsx("div",{style:{flex:"1 1 100%"}}),S]})]}):O.description==="None"?"None":S,j.push(a.jsx(yr,{className:"border-stroke",tabIndex:0,sx:{height:"28px","& svg path.activeColor":{filter:Kp(4)},paddingLeft:"16px",background:`linear-gradient(${ht.alpha("#fff",jn(5))}, ${ht.alpha("#fff",jn(5))})`},tooltipProps:{description:o?"":O.description},icon:null,disabled:r,onMouseDown:I=>I.preventDefault(),onMouseUp:()=>{E(),m(O.style)},onKeyDown:I=>{I.which===Cn.Enter&&E()},selected:O.style===c,parentFloat:_,children:v},k))}return a.jsx(B.Box,{sx:{display:"flex",flexDirection:"column",paddingTop:"4px",paddingBottom:"4px"},children:j})},[r,u,l,c,h]),x=d.useMemo(()=>{const b=N.IBorder.BuiltInDefinitions.get(c);let C;return C=b.description==="None"?a.jsx(B.Box,{sx:{minWidth:`${g1}px`},children:"None"}):a.jsx(M5,{styleColor:l,length:g1,width:b.width,dashArray:b.pattern,darkMode:h,isDouble:b.description.toLowerCase().includes("double"),isAngled:b.description.toLowerCase().includes("slant")}),a.jsx(B.Box,{className:"border-stroke",sx:{paddingLeft:"12px",marginLeft:"4px",marginRight:"4px",height:"24px",display:"flex",alignItems:"center","& svg path.activeColor":{filter:Kp()}},children:C})},[c,l]),y=d.useMemo(()=>N.IBorder.BuiltInDefinitions.get(c),[c]),w={disabled:r,icon:x,tooltip:"Border Style: "+y.description,sx:{background:`linear-gradient(${ht.alpha("#fff",jn(5))}, ${ht.alpha("#fff",jn(5))})`,...f},createPopupPanel:g,...p};return n===Wr.Toolbar?a.jsx(ii,{...w}):a.jsx(Ns,{...w})})),Py=d.memo(d.forwardRef((e,t)=>{const{autoColor:n=null,schemeLookup:o,autoStrokeStyle:r=N.IBorder.StrokeStyle.Thin,disabled:i=!1,darkMode:l=!1,showStylingBefore:c=!0,onSelectBorder:s,onPreviewBorder:u,selectedBorder:h,createTemporaryBorder:f,...p}=e,m=et(s,[s]),g=et(u,[u]),[x,y]=d.useState(),[w,b]=d.useState(),C=x??r,_=w??n,E=h||{bottom:{style:r,color:n?.toString()}},M=et(v=>{const I={},T=v?Object.keys(v):[];let R=!1;for(let X=0;X<T.length;X++)v[T[X]]?.style&&(I[T[X]]={style:v[T[X]].style,color:v[T[X]].color},R||I[T[X]].style===N.IBorder.StrokeStyle.None||(R=!0));T.length<6&&(R=!0);const A=R?I.left:null,D=R?I.top:null,L=R?I.right:null,V=R?I.bottom:null,W=R?I.vertical:null,P=R?I.horizontal:null;let U="";return D||A||(U+="M 3,5 H 5 V 3 H 3 "),D||(U+="M 7,5 H 9 V 3 H 7 "),D||W||(U+="M 11,5 h 2 V 3 h -2 "),D||(U+="M 15,5 h 2 V 3 h -2 "),D||L||(U+="M 19,5 h 2 V 3 h -2 "),A||(U+="M 3,9 H 5 V 7 H 3 "),W||(U+="M 11,9 h 2 V 7 h -2 "),L||(U+="M 19,9 h 2 V 7 h -2 "),P||A||(U+="M 3,13 H 5 V 11 H 3 "),P||(U+="M 7,13 H 9 V 11 H 7 "),P||W||(U+="M 11,13 h 2 v -2 h -2 "),P||L||(U+="M 19,13 h 2 v -2 h -2 "),P||(U+="M 15,13 h 2 v -2 h -2 "),A||(U+="M 3,17 H 5 V 15 H 3 "),W||(U+="M 11,17 h 2 v -2 h -2 "),L||(U+="M 19,17 h 2 v -2 h -2 "),V||A||(U+="M 3,21 H 5 V 19 H 3 "),V||(U+="M 7,21 H 9 V 19 H 7 "),V||W||(U+="M 11,21 h 2 v -2 h -2 "),V||(U+="M 15,21 h 2 v -2 h -2 "),V||L||(U+="M 19,21 h 2 v -2 h -2 "),a.jsxs("div",{style:{width:"24px",height:"24px",position:"relative"},children:[a.jsx(B.SvgIcon,{sx:{position:"absolute",top:"0px",left:"0px","& path":{opacity:"0.8",transform:"translate(-0.5px, -0.5px)"}},children:a.jsx("path",{d:U})}),a.jsx(B.Box,{sx:{width:"24px",height:"24px",display:"flex",alignItems:"center",justifyContent:"center",position:"absolute",top:"-1px",left:"-1px","& svg path":{filter:Bs}},children:a.jsx(j3,{getBorderAt:(X,ee)=>{if(!f||T.length===0)return null;const H=X.rowIndex,$=X.colIndex,z={};return H===0?(z.top=I.top,z.bottom=I.horizontal):(z.top=I.horizontal,z.bottom=I.bottom),$===0?(z.left=I.left,z.right=I.vertical):(z.left=I.vertical,z.right=I.right),f?.(z)},width:18,height:18,darkMode:l,style:{top:"0px",left:"0px",width:"18px",height:"18px",minWidth:"18px",minHeight:"18px",position:"relative"}})})]})},[_,C,l]),j=d.useCallback((v,I,T)=>{let R=null;if(v&&v.length>0){let A=null;(I||T)&&(A={style:T,color:I?.toString()??null}),R={};for(let D=0;D<v.length;D++)R[v[D]]=A}return R},[]),F=d.useCallback(v=>{m?.(v)},[]),k=d.useCallback(v=>{g?.(v)},[]),O=d.useCallback(v=>{const{closeFloatAll:I,floatReference:T}=v,R=(L,V,W="bottom",P=!1)=>{const U=j(L,_??null,P?N.IBorder.StrokeStyle.None:C??null),X=P?j([],_??null,C??null):U;return a.jsx(Tr,{icon:M(X),sx:{background:`linear-gradient(${ht.alpha("#fff",jn(5))}, ${ht.alpha("#fff",jn(5))})`},tooltipProps:{label:V,simple:!0,placement:W},onClick:()=>{I(),k(U),F(U)}})},A=a.jsxs(a.Fragment,{children:[a.jsxs(B.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(B.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)]})]}),D=a.jsx(a.Fragment,{children:a.jsxs(B.Box,{sx:{display:"flex",padding:"6px 16px",flexDirection:"row",gap:"6px"},children:[a.jsx(F3,{variant:Wr.Toolbar,icon:a.jsx(Q5,{}),selectedColor:C===N.IBorder.StrokeStyle.None?new N.Color("transparent"):_,onPreviewColor:L=>{b(L)},onSelectColor:(L,V)=>{b(L)},darkMode:l,tooltip:"Border Color",panelProps:{disableAlpha:!0,autoColor:n,schemeLookup:o},disabled:i||C===N.IBorder.StrokeStyle.None,parentFloat:T,shouldCloseFloatAll:!1}),a.jsx(Oy,{selectedStyle:C,onSelectStyle:y,styleColor:_,darkMode:l,variant:Wr.Toolbar,parentFloat:T})]})});return a.jsxs(B.Box,{sx:{display:"flex",flexDirection:"column",paddingTop:"4px",paddingBottom:"4px"},onClick:L=>L.stopPropagation(),children:[c?D:A,a.jsx(Mt,{orientation:"horizontal"}),c?A:D]})},[C,_,n,o,l]),S=d.useMemo(()=>M(E),[E,l]);return a.jsx(ii,{ref:t,createPopupPanel:O,popupProps:{popperProps:{resizeOnOverflow:!1}},createTooltip:({children:v},I)=>a.jsx(Uo,{label:"Borders",description:"Set the borders.",disabled:I,children:v}),onQuickClick:()=>{m?.(E)},quickButtonProps:{sx:{}},disabled:i,icon:S,...p})})),Ay=d.memo(d.forwardRef((e,t)=>{const{commands:n,command:o,commandHook:r,variant:i=Vt.Toolbar,disabled:l=!1,autoColor:c,autoStrokeStyle:s,schemeLookup:u,createTemporaryBorder:h,selectedBorder:f,onSelectBorder:p,darkMode:m,icon:g,label:x,...y}=e,w=ko(n,["formatBorder"]),b=o??w[0],C=b?.context()??null,_=C?.autoColor??c,E=C?.autoStyle??s,M=f??C?.quickBorder,j=m??C?.darkMode,F=h??C?.createTemporaryBorder,k=u??C?.schemeLookup,O=et(v=>{C?.onBorderSelect&&C.onBorderSelect(v),p?.(v),b?.execute(v,r)},[b,p,r]),S=d.useCallback((v,I)=>{const{children:T,title:R,...A}=v;let D=v.children;return(b?.disabled()||l)&&(D=a.jsx("div",{children:D})),a.jsx(Zl,{command:b,placement:i===Vt.Toolbar?"bottom-start":"right-start",disabled:I,...A,children:D})},[b,l]);return a.jsx(Py,{ref:t,autoColor:_,darkMode:j,autoStrokeStyle:E,createTemporaryBorder:F,schemeLookup:k,selectedBorder:M,onSelectBorder:O,createTooltip:S,disabled:l||!b||b.disabled(),...y})})),Fy=d.memo(d.forwardRef((e,t)=>{const{commands:n,commandHook:o,scope:r,disabled:i=!1,...l}=e,c=d.useCallback((s,u)=>{const h={variant:Vt.Menuitem,commandHook:o,scope:r,disabled:i},f=a.jsxs(a.Fragment,{children:[a.jsx(je,{...h,command:u.getCommand("mergeToggle"),icon:ge(a.jsx(Xp,{}))}),a.jsx(je,{...h,command:u.getCommand("mergeHorizontal"),icon:ge(a.jsx(zS,{}))}),a.jsx(je,{...h,command:u.getCommand("mergeVertical"),icon:ge(a.jsx(BS,{}))}),a.jsx(Mt,{orientation:"horizontal"}),a.jsx(je,{...h,command:u.getCommand("unmerge"),icon:ge(a.jsx(i9,{}))})]});return _n({...s,children:f})},[i,o,r]);return a.jsx(An,{ref:t,commands:n,quickCommand:"mergeToggle",commandHook:o,scope:r,tooltip:"Combine or split cells.",createPopupPanel:c,icon:ge(a.jsx(Xp,{})),...l})})),zy=d.memo(d.forwardRef((e,t)=>{const{commands:n,commandHook:o,scope:r,disabled:i=!1,...l}=e,c=d.useCallback((s,u)=>{const h={variant:Vt.Menuitem,commandHook:o,scope:r,disabled:i},f=a.jsxs(a.Fragment,{children:[a.jsx(je,{...h,command:u.getCommand("freezeToggle"),icon:ge(a.jsx($S,{}))}),a.jsx(je,{...h,command:u.getCommand("freezeToggleHorizontal"),icon:ge(a.jsx(VS,{}))}),a.jsx(je,{...h,command:u.getCommand("freezeToggleVertical"),icon:ge(a.jsx(HS,{}))}),a.jsx(Mt,{orientation:"horizontal"}),a.jsx(je,{...h,command:u.getCommand("unfreeze"),icon:a.jsx(i9,{})})]});return _n({...s,children:f})},[i,o,r]);return a.jsx(An,{ref:t,commands:n,commandHook:o,createPopupPanel:c,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(NS,{}),...l})})),By=d.memo(d.forwardRef((e,t)=>{const{commands:n,commandHook:o,scope:r,disabled:i=!1,...l}=e,c=d.useCallback((s,u)=>{const h={variant:Vt.Menuitem,commandHook:o,scope:r,disabled:i},f=a.jsxs(a.Fragment,{children:[a.jsx(je,{...h,command:u.getCommand("find"),icon:ge(a.jsx(y6,{}))}),a.jsx(je,{...h,command:u.getCommand("findReplace"),icon:ge(a.jsx(w9,{}))}),a.jsx(je,{...h,command:u.getCommand("goto"),icon:ge(a.jsx(f_,{}))})]});return _n({...s,children:f})},[i,o,r]);return a.jsx(An,{ref:t,commands:n,commandHook:o,createPopupPanel:c,label:"Find & Select",tooltip:"Find and replace cells or go to a specific location.",quickCommand:"find",icon:ge(a.jsx(y6,{})),...l})})),Ny=d.memo(d.forwardRef((e,t)=>{const{command:n,commandHook:o,showQuickButtons:r=!!e.commands,commands:i,fontSizes:l=nR.DefaultFontSizes,disabled:c=!1,parentFloat:s,icon:u,label:h,sx:f,...p}=e;s0(n);const m=()=>n?.state()?.toString()||"11",[g,x]=d.useState(m),y=et(()=>{const F=parseFloat(g);isNaN(F)?x(m()):parseFloat(m())!==F&&n.execute(F,o)},[m,n,g,o]);d.useEffect(()=>{x(m())},[n?.state()]);const w=d.useMemo(()=>{if(!o)return null;const F={...o};return delete F.beforeExecute,F},[o]),b=ko(i,["formatFontSizeIncrease","formatFontSizeDecrease"]),C=d.useMemo(()=>b?a.jsxs(B.Box,{className:Yn("quick-buttons",{}),sx:{display:"flex",alignItems:"center",justifyContent:"center"},onClick:F=>F.stopPropagation(),children:[a.jsx(je,{command:b[0],commandHook:w,icon:ge(a.jsx(ZC,{}))}),a.jsx(je,{command:b[1],icon:ge(a.jsx(GC,{}))})]}):null,[b]),_=Zr(),E=d.useMemo(()=>`${N.IFont.getSharedMeasurer()("12.3",Math.round(_.typography.fontSize),_.typography.fontFamily).width}px`,[_]),M=d.useCallback(F=>{const{onMouseDown:k,onMouseUp:O,...S}=F;return a.jsx(B.IconButton,{component:"div",...S,disableRipple:!0,children:a.jsx(B.Input,{inputMode:"numeric",disabled:c||!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:v=>`1px solid ${v.palette.text.icon??v.palette.action.active}`},"&:hover:not(.Mui-disabled):not(.Mui-error):before":{borderBottom:v=>`1px solid ${v.palette.error.main}`},"::after":{borderBottom:v=>`1px solid ${v.palette.primary.main}`},paddingTop:"0px",paddingBottom:"0px",paddingLeft:"0px",paddingRight:"0px",fontSize:v=>`${Math.round(v.typography.fontSize)}px`,width:E,color:v=>v.palette.text.secondary,input:{padding:"0 0",textAlign:"center",MozAppearance:"textfield","&:hover:not(.Mui-disabled):not(.Mui-error)":{color:v=>v.palette.text.primary},"&:focus:not(.Mui-disabled):not(.Mui-error)":{color:v=>v.palette.text.primary}},"input::-webkit-inner-spin-button":{WebkitAppearance:"none",margin:"0"},minHeight:"24px"},value:g,onFocus:v=>{v.target?.select()},onKeyDown:v=>{if(v.which===Cn.Enter)m()!==g&&(v.stopPropagation(),v.preventDefault(),y());else if(v.which===Cn.Escape)m()!==g&&(x(m()),setTimeout(()=>{v.target?.select()},0),v.stopPropagation(),v.preventDefault());else{if(v.key.match("[-]")||v.key.match("[0-9.]")&&(g+v.key).length>4)return v.stopPropagation(),void v.preventDefault();if(v.which===Cn.Space)return void v.preventDefault()}},onBlur:()=>{y()},onChange:v=>{if(v.target.value.length>4)return v.stopPropagation(),void v.preventDefault();x(v.target.value)}})})},[g,c,n]),j=d.useCallback(F=>{const k=I=>{n?.execute(I,o)},O=n?.state(),S=[];for(let I=0;I<l.length;I++){const T=l[I]===O;S.push(a.jsx(yr,{selected:T,icon:T?a.jsx(Vs,{}):void 0,disabled:c||!n||n.disabled(),onMouseDown:R=>{R.button===0&&R.preventDefault()},onMouseUp:R=>{R.button===0&&k(l[I])},onKeyDown:R=>{R.keyCode!==Cn.Enter&&R.keyCode!==Cn.Space||k(l[I])},sx:{paddingTop:"4px",paddingBottom:"4px"},children:a.jsx(B.Box,{sx:{display:"flex",flex:"1 1 100%",justifyContent:"end"},children:l[I]})},"fontSize-"+I))}const v=a.jsxs(B.Box,{sx:{display:"flex",flexDirection:"column",flex:"1 1 100%",overflow:"hidden"},...p,children:[C,a.jsx(Mt,{orientation:"horizontal"}),a.jsx(B.Box,{sx:{overflow:"auto",flex:"1 1 100%"},children:S})]});return _n({...F,children:v})},[c,n?.state(),o]);return a.jsx(ii,{ref:t,sx:{...f},tabIndex:-1,outlined:!0,disabled:c,parentFloat:s,createPopupPanel:j,createTooltip:({children:F},k)=>a.jsx(Uo,{label:n?.label(),description:n?.description(),disabled:k||n?.disabled(),children:F}),createQuickButton:M,...p})})),Vf=d.memo(e=>{const{selected:t,disabled:n,formattedValue:o,handleSetFormat:r,format:i,sx:l,...c}=e;return a.jsx(yr,{sx:{maxWidth:"360px",display:"flex","*":{lineHeight:"1.2"},...l},disabled:n,selected:t,icon:t?a.jsx(Vs,{}):void 0,onMouseDown:s=>{s.button===0&&s.preventDefault()},onMouseUp:s=>{s.button===0&&r(i.numberFormat)},onKeyDown:s=>{s.keyCode!==Cn.Enter&&s.keyCode!==Cn.Space||r(i.numberFormat)},...c,children:a.jsxs(B.Box,{sx:{display:"flex",flex:"1 1 100%",flexDirection:"column",overflow:"hidden"},children:[a.jsxs(B.Typography,{component:"div",children:[i.formatType,i.formatType===N.NumberFormat.Type.Custom?"…":""]}),a.jsx(B.Typography,{variant:"caption",component:"div",sx:{color:s=>ht.alpha(s.palette.text.primary,.6),paddingTop:o&&o.length>0?"1px":void 0,overflow:"hidden",textOverflow:"ellipsis"},children:o&&o.length>0?o:" "})]})})}),Vy=d.memo(d.forwardRef((e,t)=>{const{commands:n,commandHook:o,scope:r,sx:i,disabled:l=!1,parentFloat:c,...s}=e,u=ko(n,["formatNumberFormat"])[0],h=u?.state()?N.NumberFormat.Styles.lookupStyle(u?.state()).formatType:N.NumberFormat.Type.General,f=d.useMemo(()=>{if(!o)return null;const x={...o};return delete x.beforeExecute,x},[o]),p=d.useCallback((x,y)=>{const w=O=>{o?.beforeExecute?.(u,u?.state()),u.execute(O,o),o?.onExecute?.(u,u?.state())},b=u?.context()(),C=N.NumberFormat.Styles.lookupPrimary(),_=[];for(let O=0;O<C.length;O++){let S="";if(b&&!b.isEmpty())try{S=b.getNumberFormat(C[O].numberFormat).displayText}catch(I){console.warn(I)}S===""&&C[O].formatType===N.NumberFormat.Type.General&&(S="No specific format");const v=C[O].formatType===h;_.push(a.jsx(Vf,{selected:v,disabled:l||!u||u.disabled(),formattedValue:S,handleSetFormat:w,format:C[O]},C[O].formatType))}const E={numberFormat:"",formatType:N.NumberFormat.Type.Custom},M=h===N.NumberFormat.Type.Custom,j=a.jsx(Vf,{selected:M,disabled:l||!u||u.disabled(),formattedValue:M?b.getNumberFormat().displayText:"",handleSetFormat:()=>{o?.beforeExecute?.(u,u?.state()),y.getCommand("formatNumberDialog")?.execute(u?.state()),o?.onExecute?.(u,u?.state())},format:E,sx:{flex:"0",width:"100%"}},N.NumberFormat.Type.Custom),F=a.jsxs(B.Box,{className:"quick-buttons",sx:{display:"flex",alignItems:"center",justifyContent:"center"},onClick:O=>O.stopPropagation(),children:[a.jsx(je,{command:y.getCommand("formatNumberFormatAccountingStyle"),commandHook:f,scope:r,icon:a.jsx(GS,{})}),a.jsx(je,{command:y.getCommand("formatNumberFormatPercentStyle"),commandHook:f,scope:r,icon:a.jsx(US,{})}),a.jsx(je,{command:y.getCommand("formatNumberFormatCommaStyle"),commandHook:f,scope:r,icon:a.jsx(WS,{})}),a.jsx(je,{command:y.getCommand("formatNumberFormatIncreaseDecimal"),commandHook:f,scope:r,icon:ge(a.jsx(qS,{}))}),a.jsx(je,{command:y.getCommand("formatNumberFormatDecreaseDecimal"),commandHook:f,scope:r,icon:ge(a.jsx(ZS,{}))})]}),k=a.jsxs(B.Box,{sx:{display:"flex",flexDirection:"column",flex:"1 1 100%",overflow:"hidden"},...s,children:[F,a.jsx(Mt,{orientation:"horizontal"}),a.jsx(B.Box,{sx:{overflow:"auto",flex:"1 1 100%"},children:_}),a.jsx(Mt,{orientation:"horizontal"}),j]});return _n({...x,children:k})},[u?.context(),u?.state(),o,r]),m=Zr(),g=d.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(An,{ref:t,commands:n,sx:i,outlined:!0,disabled:l,parentFloat:c,createPopupPanel:p,createTooltip:({children:x},y)=>a.jsx(Uo,{label:u?.label(),description:u?.description(),disabled:y,children:x}),icon:a.jsx(B.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(B.Box,{sx:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"pre"},children:h})}),...s})})),z3=d.memo(d.forwardRef((e,t)=>{const{commands:n,commandHook:o,scope:r,disabled:i=!1,...l}=e,c=d.useCallback((s,u)=>{const h={variant:Vt.Menuitem,commandHook:o,scope:"clear",disabled:i},f=a.jsxs(a.Fragment,{children:[a.jsx(je,{...h,command:u.getCommand("clearAll"),icon:a.jsx(Cp,{})}),a.jsx(je,{...h,command:u.getCommand("clearFormats"),icon:ge(a.jsx(Hm,{}))}),a.jsx(je,{...h,command:u.getCommand("clearContents"),icon:ge(a.jsx(Hv,{}))}),a.jsx(je,{...h,command:u.getCommand("clearComments")}),a.jsx(je,{...h,command:u.getCommand("clearHyperlinks")})]});return _n({...s,children:f})},[i,o,r]);return a.jsx(An,{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:c,icon:a.jsx(Cp,{}),...l})})),Hy=d.memo(d.forwardRef((e,t)=>{const{commands:n,commandHook:o,scope:r,disabled:i=!1,...l}=e,c=d.useCallback((s,u)=>{const h={variant:Vt.Menuitem,commandHook:o,scope:"fill",disabled:i},f=a.jsxs(a.Fragment,{children:[a.jsx(je,{...h,command:u.getCommand("fillDown"),icon:ge(a.jsx(ha,{}))}),a.jsx(je,{...h,command:u.getCommand("fillRight"),icon:ge(a.jsx(ha,{sx:{transform:"rotate(270deg)"}}))}),a.jsx(je,{...h,command:u.getCommand("fillUp"),icon:ge(a.jsx(ha,{sx:{transform:"rotate(180deg)"}}))}),a.jsx(je,{...h,command:u.getCommand("fillLeft"),icon:ge(a.jsx(ha,{sx:{transform:"rotate(90deg)"}}))})]});return _n({...s,children:f})},[i,o,r]);return a.jsx(An,{ref:t,commands:n,disabled:i,commandHook:o,label:"Fill",tooltip:"Fill the selected cells with the value from one of the corners.",createPopupPanel:c,icon:ge(a.jsx(ha,{})),...l})})),B3=d.memo(d.forwardRef((e,t)=>{const{commands:n,commandHook:o,scope:r,disabled:i=!1,disableSheet:l=!1,preferSingleMenu:c=!0,showQuickButton:s=!0,variant:u=Vt.Toolbar,...h}=e,f=["insertCellsShiftDown","insertCellsShiftRight","insertRows","insertColumns"],p=ko(n,f),{singleCommand:m,allDisabled:g}=d.useMemo(()=>{let w=null,b=0;for(let C=0;C<p.length;C++)p[C]&&!p[C]?.disabled()&&(c&&u===Vt.Menuitem&&(w=b===0?p[C]:null),b++);return{singleCommand:w,allDisabled:b===0}},[p]),x=d.useMemo(()=>{const w=new Map;return w.set("insertCellsShiftDown",ge(a.jsx(i6,{}))),w.set("insertCellsShiftRight",ge(a.jsx(i6,{sx:{transform:"rotate(270deg)"}}))),w.set("insertRows",ge(a.jsx(VC,{}))),w.set("insertColumns",ge(a.jsx(l6,{}))),w},[]),y=d.useCallback((w,b)=>{let C=null;const _={variant:Vt.Menuitem,commandHook:o,scope:"insertCells",disabled:i};l||(C=a.jsxs(a.Fragment,{children:[a.jsx(Mt,{orientation:"horizontal"}),a.jsx(je,{..._,command:b.getCommand("addSheet"),icon:ge(a.jsx(Ol,{}))})]}));const E=a.jsxs(a.Fragment,{children:[a.jsx(je,{..._,command:p[0],icon:x.get(f[0])}),a.jsx(je,{..._,command:p[1],icon:x.get(f[1])}),a.jsx(Mt,{orientation:"horizontal"}),a.jsx(je,{..._,command:p[2],icon:x.get(f[2])}),a.jsx(je,{..._,command:p[3],icon:x.get(f[3])}),C]});return _n({...w,children:E})},[i,p,o,r,x]);return m?a.jsx(je,{ref:t,variant:u,commandHook:o,disabled:i,command:m,icon:x.get(m.key()),...h}):a.jsx(An,{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:ge(a.jsx(l6,{})),...h})})),N3=d.memo(d.forwardRef((e,t)=>{const{commands:n,commandHook:o,scope:r,disabled:i=!1,disableSheet:l=!1,preferSingleMenu:c=!0,showQuickButton:s=!0,variant:u=Vt.Toolbar,...h}=e,f=ko(n,["deleteCellsShiftUp","deleteCellsShiftLeft","deleteRows","deleteColumns"]),{singleCommand:p,allDisabled:m}=d.useMemo(()=>{let y=null,w=0;for(let b=0;b<f.length;b++)f[b]&&!f[b]?.disabled()&&(c&&u===Vt.Menuitem&&(y=w===0?f[b]:null),w++);return{singleCommand:y,allDisabled:w===0}},[f]),g=d.useMemo(()=>{const y=new Map;return y.set("deleteCellsShiftUp",ge(a.jsx(a6,{sx:{transform:"rotate(0deg)"}}))),y.set("deleteCellsShiftLeft",ge(a.jsx(a6,{sx:{transform:"rotate(270deg)"}}))),y.set("deleteRows",ge(a.jsx(HC,{}))),y.set("deleteColumns",ge(a.jsx(s6,{}))),y},[]),x=d.useCallback((y,w)=>{const b={variant:Vt.Menuitem,commandHook:o,scope:"deleteCells",disabled:i};let C=null;l||(C=a.jsxs(a.Fragment,{children:[a.jsx(Mt,{orientation:"horizontal"}),a.jsx(je,{...b,command:w.getCommand("deleteSheet"),icon:ge(a.jsx(Ol,{}))})]}));const _=a.jsxs(a.Fragment,{children:[a.jsx(je,{...b,command:w.getCommand("deleteCellsShiftUp"),icon:g.get("deleteCellsShiftUp")}),a.jsx(je,{...b,command:w.getCommand("deleteCellsShiftLeft"),icon:g.get("deleteCellsShiftLeft")}),a.jsx(Mt,{orientation:"horizontal"}),a.jsx(je,{...b,command:w.getCommand("deleteRows"),icon:g.get("deleteRows")}),a.jsx(je,{...b,command:w.getCommand("deleteColumns"),icon:g.get("deleteColumns")}),C]});return _n({...y,children:_})},[i,o,r,g]);return p?a.jsx(je,{ref:t,variant:u,commandHook:o,disabled:i,command:p,icon:g.get(p.key()),...h}):a.jsx(An,{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:ge(a.jsx(s6,{})),...h})})),Ul=d.memo(d.forwardRef((e,t)=>{const{command:n,commandHook:o,onSelectColor:r,disabled:i=!1,variant:l=Vt.Toolbar,quickColor:c,panelProps:s,isSplit:u=!1,darkMode:h,icon:f,...p}=e,{autoColor:m,schemeLookup:g,recentColors:x,...y}=s;if(p.selectedColor)throw new Error("Command selectedColor will be used. Do not try to provide one as a direct argument");s0(n);const w=n?.context();let b=c??w?.quickColor;u&&!b&&(b=new N.Color("transparent"));const C=m??w?.autoColor,_=g??w?.schemeLookup,E=x??w?.recentColors,M=h??w?.darkMode,j=d.useMemo(()=>({autoColor:C,schemeLookup:_,recentColors:E,darkMode:M,...y}),[C,_,E,M]),F=et((O,S)=>{O&&S&&w?.addRecentColor&&w.addRecentColor(O),w?.onColorSelect&&w.onColorSelect(O),r?.(O,S),n?.execute(O,o)},[n,r,o,w]),k=d.useCallback((O,S)=>{const{children:v,title:I,...T}=O;let R=O.children;return(n?.disabled()||i)&&(R=a.jsx("div",{children:R})),a.jsx(Zl,{command:n,placement:l===Vt.Toolbar?"bottom-start":"right-start",disabled:S,...T,children:R})},[n,i]);return a.jsx(F3,{ref:t,panelProps:j,icon:f,quickColor:b,selectedColor:n?.state(),onSelectColor:F,variant:l===Vt.Menuitem?Wr.Menuitem:Wr.Toolbar,createTooltip:k,label:n?.label(),disabled:i||!n||n.disabled(),compareRGB:!0,darkMode:M,...p})}));Ul.displayName="ColorCommandButton";const $y=d.memo(d.forwardRef((e,t)=>{const{commands:n,commandHook:o,scope:r,disabled:i=!1,parentFloat:l,...c}=e,s=ko(n,["gridlinesToggle","sheetViewToggleGridlinesColumns","sheetViewToggleGridlinesRows"]),u=d.useCallback((h,f)=>{const p={variant:Vt.Menuitem,parentFloat:h.floatReference,commandHook:o,scope:r,disabled:i},m=a.jsxs(a.Fragment,{children:[a.jsx(je,{...p,command:f.getCommand("gridlinesToggle")}),a.jsx(Ul,{...p,command:f.getCommand("sheetViewFormatGridlinesColor"),icon:a.jsx(Q5,{}),panelProps:{disableAlpha:!0}}),a.jsx(Mt,{orientation:"horizontal"}),a.jsx(je,{...p,command:f.getCommand("sheetViewToggleGridlinesColumns")}),a.jsx(je,{...p,command:f.getCommand("sheetViewToggleGridlinesRows")})]});return _n({...h,children:m})},[i,o]);return a.jsx(An,{ref:t,parentFloat:l,quickCommand:s[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(Nl,{command:s[0],scope:"view"}),...c})})),V3=d.memo(d.forwardRef((e,t)=>{const{commands:n,commandHook:o,scope:r,disabled:i=!1,...l}=e,c=d.useCallback((s,u)=>{const h={variant:Vt.Menuitem,commandHook:o,scope:"sort",disabled:i},f=u.getCommand("sortCustom"),p=a.jsxs(a.Fragment,{children:[a.jsx(je,{...h,command:u.getCommand("sortAscending"),icon:ge(a.jsx(V2,{}))}),a.jsx(je,{...h,command:u.getCommand("sortDescending"),icon:ge(a.jsx(g9,{}))}),f?a.jsx(je,{...h,command:f,icon:ge(a.jsx(qC,{}))}):null,a.jsx(Mt,{orientation:"horizontal"}),a.jsx(je,{...h,scope:"filter",command:u.getCommand("autoFilterToggle"),icon:ge(a.jsx(L2,{}))}),a.jsx(je,{...h,scope:"filter",command:u.getCommand("autoFilterClear"),icon:ge(a.jsx(e3,{}))}),a.jsx(je,{...h,scope:"filter",command:u.getCommand("autoFilterReapply"),icon:ge(a.jsx(l9,{}))})]});return _n({...s,children:p})},[i,o,r]);return a.jsx(An,{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:c,icon:ge(a.jsx(V2,{})),...l})})),uD=d.memo(d.forwardRef((e,t)=>{const{commands:n,commandHook:o,scope:r,disabled:i=!1,...l}=e,c=d.useCallback((s,u)=>{const h={variant:Vt.Menuitem,commandHook:o,scope:"sort",disabled:i},f=a.jsxs(a.Fragment,{children:[a.jsx(je,{...h,scope:"filter",command:u.getCommand("autoFilterToggle"),icon:ge(a.jsx(L2,{}))}),a.jsx(je,{...h,scope:"filter",command:u.getCommand("autoFilterClear"),icon:ge(a.jsx(e3,{}))}),a.jsx(je,{...h,scope:"filter",command:u.getCommand("autoFilterReapply"),icon:ge(a.jsx(l9,{}))})]});return _n({...s,children:f})},[i,o,r]);return a.jsx(An,{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:c,icon:ge(a.jsx(L2,{})),...l})})),H3=d.memo(d.forwardRef((e,t)=>{const{quickCommand:n,icon:o,isRedo:r=!1,nestRedo:i=!0,undoManager:l,scope:c,sx:s,disabled:u,commands:h,...f}=e,p=[n];!r&&i&&p.push("redo");const m=ko(h,p),g=m[0],x=m[1],y=l??g?.context?.()?.undoManager;let w=u;u||(w=!g||g.disabled(),x&&!x.disabled()&&(w=!1));const[b,C]=d.useState(0),_=d.useCallback((E,M)=>{let j=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 k=R=>{g.execute(R)},O=a.jsx(yr,{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&&k(b)},onKeyDown:R=>{R.isDefaultPrevented()||R.keyCode!==Cn.Enter&&R.keyCode!==Cn.Space||k(b)},children:a.jsx(B.Typography,{component:"div",variant:"caption",sx:{fontSize:"0.875rem",letterSpacing:"0.01071em"},children:j})});if(F)return O;const S=r?y?.getRedoDescriptions():y?.getUndoDescriptions(),v=[];for(let R=0;R<S.length;R++){const A=S[R];v.push(a.jsx(yr,{sx:{maxWidth:"360px",display:"flex"},icon:a.jsx(Ol,{}),disabled:w,selected:R<b,onMouseEnter:()=>{C(R+1)},onMouseDown:D=>{D.button===0&&D.preventDefault()},onMouseUp:D=>{D.button===0&&k(R+1)},onKeyDown:D=>{D.isDefaultPrevented()||D.keyCode!==Cn.Enter&&D.keyCode!==Cn.Space||k(R+1)},children:a.jsxs(B.Box,{sx:{display:"flex",flex:"1 1 100%",flexDirection:"row",alignItems:"center",overflow:"hidden"},children:[a.jsx(B.Typography,{component:"div",children:A}),a.jsx(Ol,{})]})},`action:${R}`))}let I=null;if(!r&&i){const R={scope:"undo",commands:M,variant:Vt.Menuitem,parentFloat:E.floatReference};I=[],I.push(a.jsx(H3,{...R,quickCommand:"redo",isRedo:!0},"nested:redo")),y.hasRedo()&&y.hasUndo()&&I.push(a.jsx(Mt,{orientation:"horizontal"},"action:redo-div"))}const T=a.jsxs(B.Box,{sx:{display:"flex",flexDirection:"column",flex:"1 1 100%",overflow:"hidden"},onClick:()=>{E.closeFloatAll()},onMouseLeave:()=>{C(0)},children:[I,a.jsx(B.Box,{sx:{overflow:"auto",flex:"1 1 100%"},children:v}),a.jsx(Mt,{orientation:"horizontal"}),O]});return _n({...E,children:T})},[g?.context(),g?.state(),c,y,b,w]);return a.jsx(An,{ref:t,commands:h,quickCommand:n,scope:c,disabled:w,label:g?.label()??(r?"Redo":"Undo"),tooltip:a.jsx(a.Fragment,{children:a.jsx("span",{children:`${g?.label()??"No"} last actions.`})}),createPopupPanel:_,icon:o??ge(r?a.jsx(z_,{}):a.jsx(F_,{})),selected:!1,...f})})),Dl=N.IFontCollection.getFontList(),Wy=new Map;for(let e=0;e<Dl.length;e++)Wy.set(Dl[e].fontRef.getFamily(),Dl[e]);const Uy=d.memo(d.forwardRef((e,t)=>{const{command:n,commandHook:o,sx:r,disabled:i=!1,parentFloat:l,icon:c,label:s,...u}=e;s0(n);const h=n?.state(),f=Zr(),p=d.useMemo(()=>`${N.IFont.getSharedMeasurer()("Times New Roman",Math.round(f.typography.fontSize),f.typography.fontFamily).width}px`,[f]),m=d.useCallback(g=>{const x=C=>{n?.execute(C,o)},y=[];for(let C=0;C<Dl.length;C++)y.push({key:Dl[C].fontRef.getFamily(),description:Dl[C].fontRef.getFamily()});Wy.get(h)||y.unshift({key:h,description:h});const w=[];for(let C=0;C<y.length;C++){const _=y[C].key===h;w.push(a.jsx(yr,{sx:{display:"flex",paddingTop:"4px",paddingBottom:"4px"},selected:_,disabled:i||!n||n.disabled(),icon:_?a.jsx(Vs,{}):void 0,onMouseUp:E=>{E.button===0&&x(y[C].key)},onMouseDown:E=>{E.button===0&&E.preventDefault()},onKeyDown:E=>{E.keyCode!==Cn.Enter&&E.keyCode!==Cn.Space||x(y[C].key)},children:a.jsx(B.Box,{sx:{display:"flex",flex:"1 1 100%",flexDirection:"column",overflow:"hidden"},children:a.jsx(B.Typography,{component:"div",sx:{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",fontFamily:()=>y[C]?.key},children:y[C].description})})},C+""+y[C].key))}const b=a.jsx(B.Box,{sx:{display:"flex",flexDirection:"column",flex:"1 1 100%"},...u,children:a.jsx(B.Box,{sx:{overflow:"auto",flex:"1 1 100%"},children:w})});return _n({...g,children:b})},[i,n?.state()]);return a.jsx(ii,{ref:t,sx:{...r},outlined:!0,disabled:i,parentFloat:l,createPopupPanel:m,createTooltip:({children:g},x)=>a.jsx(Uo,{label:n?.label(),description:n?.description(),disabled:x,children:g}),icon:a.jsx(B.Box,{sx:{display:"flex",paddingLeft:"4px",paddingRight:"4px",fontSize:g=>`${Math.round(g.typography.fontSize)}px`,fontFamily:g=>g.typography.fontFamily,color:g=>g.palette.text.secondary,width:p},children:a.jsx(B.Box,{sx:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"pre"},children:h})}),...u})})),qy=d.memo(d.forwardRef((e,t)=>{const{commands:n,commandHook:o,scope:r,disabled:i=!1,...l}=e,c=ko(n,["formatStrikeThroughToggle","formatSuperscriptToggle","formatSubscriptToggle"]),s=d.useMemo(()=>{for(let f=0;f<c.length;f++)if(c[f]?.state())return c[f].key();return c[0]?.key()},[c]),u=d.useMemo(()=>{const f=new Map;return f.set("formatStrikeThroughToggle",ge(a.jsx(c6,{}))),f.set("formatSuperscriptToggle",ge(a.jsx(KC,{}))),f.set("formatSubscriptToggle",ge(a.jsx(XC,{}))),f},[]),h=d.useCallback((f,p)=>{const m={variant:Vt.Menuitem,commandHook:o,scope:"textEffects",disabled:i},g=a.jsxs(a.Fragment,{children:[a.jsx(je,{...m,command:p.getCommand("formatStrikeThroughToggle"),icon:u.get("formatStrikeThroughToggle")}),a.jsx(je,{...m,command:p.getCommand("formatSuperscriptToggle"),icon:u.get("formatSuperscriptToggle")}),a.jsx(je,{...m,command:p.getCommand("formatSubscriptToggle"),icon:u.get("formatSubscriptToggle")})]});return _n({...f,children:g})},[i,o,r]);return a.jsx(An,{ref:t,quickCommand:s,commands:n,commandHook:o,createPopupPanel:h,label:"Text Effects",tooltip:"Style your text to differentiate it.",icon:u.get(s)??ge(a.jsx(c6,{})),...l})})),Zy=d.memo(d.forwardRef((e,t)=>{const{commands:n,commandHook:o,scope:r,disabled:i=!1,...l}=e,c=ko(n,["formatUnderlinedToggle","formatUnderlinedDoubleToggle","formatUnderlinedAccountingToggle","formatUnderlinedAccountingDoubleToggle"]),s=d.useMemo(()=>{for(let f=0;f<c.length;f++)if(c[f]?.state())return c[f].key();return c[0]?.key()},[c]),u=d.useMemo(()=>{const f=new Map;return f.set("formatUnderlinedToggle",ge(a.jsx(su,{}))),f.set("formatUnderlinedDoubleToggle",ge(a.jsx(d6,{}))),f.set("formatUnderlinedAccountingToggle",ge(a.jsx(u6,{}))),f.set("formatUnderlinedAccountingDoubleToggle",ge(a.jsx(h6,{}))),f},[]),h=d.useCallback((f,p)=>{const m={variant:Vt.Menuitem,commandHook:o,scope:"underline",disabled:i},g=a.jsxs(a.Fragment,{children:[a.jsx(je,{...m,command:p.getCommand("formatUnderlinedToggle"),icon:ge(a.jsx(su,{}))}),a.jsx(je,{...m,command:p.getCommand("formatUnderlinedDoubleToggle"),icon:ge(a.jsx(d6,{}))}),a.jsx(je,{...m,command:p.getCommand("formatUnderlinedAccountingToggle"),commandHook:o,icon:ge(a.jsx(u6,{}))}),a.jsx(je,{...m,command:p.getCommand("formatUnderlinedAccountingDoubleToggle"),icon:ge(a.jsx(h6,{}))})]});return _n({...f,children:g})},[i,o,r]);return a.jsx(An,{ref:t,quickCommand:s,commands:n,commandHook:o,label:"Underline",tooltip:"All underline stylings.",createPopupPanel:h,icon:u.get(s)??ge(a.jsx(su,{})),...l})})),$3=d.memo(d.forwardRef((e,t)=>{const{command:n,commands:o,commandHook:r,scope:i,includePasteAllInPopup:l=!0,disabled:c=!1,...s}=e,u=et((h,f)=>{const p={variant:Vt.Menuitem,commandHook:r,scope:"paste",disabled:c},m=[];return l&&(m.push(d.createElement(je,{...p,command:f.getCommand("paste"),key:"paste",icon:a.jsx(r6,{})})),m.push(a.jsx(Mt,{orientation:"horizontal"},"paste-div"))),m.push(d.createElement(je,{...p,command:f.getCommand("pasteValues"),key:"pasteValues",icon:ge(a.jsx(DC,{}))})),m.push(d.createElement(je,{...p,command:f.getCommand("pasteFormats"),key:"pasteFormats",icon:ge(a.jsx(LC,{}))})),m.push(d.createElement(je,{...p,command:f.getCommand("pasteFormulas"),key:"pasteFormulas",icon:ge(a.jsx(OC,{}))})),m.push(d.createElement(je,{...p,command:f.getCommand("pasteTranspose"),key:"pasteTranspose",icon:ge(a.jsx(PC,{}))})),m.push(d.createElement(je,{...p,command:f.getCommand("pasteLinks"),key:"pasteLinks",icon:ge(a.jsx(AC,{}))})),_n({...h,children:m})},[c,r,i,l]);return a.jsx(An,{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(r6,{}),...s})})),Gy=d.memo(d.forwardRef((e,t)=>{const{commands:n,commandHook:o,scope:r,disabled:i=!1,parentFloat:l,...c}=e,s=ko(n,["sheetViewToggleShowHeadings","sheetViewToggleShowHeadingColumns","sheetViewToggleShowHeadingRows"]),u=d.useCallback((h,f)=>{const p={variant:Vt.Menuitem,parentFloat:h.floatReference,commandHook:o,scope:r,disabled:i},m=a.jsxs(a.Fragment,{children:[a.jsx(je,{...p,command:f.getCommand("sheetViewToggleShowHeadings")}),a.jsx(je,{...p,command:f.getCommand("sheetViewToggleShowHeadingsNumeric")}),a.jsx(Mt,{orientation:"horizontal"}),a.jsx(je,{...p,command:f.getCommand("sheetViewToggleShowHeadingColumns")}),a.jsx(je,{...p,command:f.getCommand("sheetViewToggleShowHeadingRows")})]});return _n({...h,children:m})},[i,o,r]);return a.jsx(An,{ref:t,parentFloat:l,quickCommand:s[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(Nl,{command:s[0],scope:"view"}),...c})})),Ky=d.memo(d.forwardRef((e,t)=>{const{commands:n,commandHook:o,scope:r="view",disabled:i=!1,...l}=e,c=d.useCallback(s=>{const u={variant:Vt.Menuitem,parentFloat:s.floatReference,commandHook:o,scope:r,disabled:i},h=a.jsxs(a.Fragment,{children:[a.jsx(je,{...u,command:n.getCommand("workbookViewToggleShowFormulaBar")}),a.jsx(je,{...u,command:n.getCommand("workbookViewToggleShowTabs")}),a.jsx(je,{...u,command:n.getCommand("workbookViewToggleShowStatusBar")}),a.jsx(Mt,{orientation:"horizontal"}),a.jsx(je,{...u,command:n.getCommand("workbookViewToggleShowHorizontalScrollBar")}),a.jsx(je,{...u,command:n.getCommand("workbookViewToggleShowVerticalScrollBar")})]});return _n({...s,children:h})},[i,n,o,r]);return a.jsx(An,{ref:t,commands:n,disabled:i,commandHook:o,scope:r,label:"Workbook View",tooltip:"Options to configure how the workbook is displayed.",createPopupPanel:c,icon:a.jsx(Nl,{icon:null,label:"Workbook View"}),...l})})),Xy=d.memo(d.forwardRef((e,t)=>{const{value:n,cellStyle:o,styles:r,createTemporaryCell:i,bodyStyle:l,sx:c,borderProps:s,disabled:u,...h}=e,f=d.useMemo(()=>i({value:n,style:o}),[n,o,i]),p=d.useMemo(()=>f.getStyle(),[f,l]),m=d.useMemo(()=>p.getFill().toCSS(l?.darkMode??!1),[p]),g=p.getInsets(),x=p.getFont(),y=d.useCallback(()=>p.getBorder(),[p]);return a.jsx(B.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(f.getRenderHorizontalAlignment()),background:"transparent",maxHeight:"100%",whiteSpace:"pre",wordWrap:"break-word"},...c},...h,children:a.jsx(j3,{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",...s?.style},...s,children:a.jsx(B.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(B.Box,{className:"text",children:n})})})})})),hD=d.memo(e=>{const{styles:t,namedStyle:n,selectedNamed:o,hasContextMenu:r=!0,bodyStyle:i,onSelectNamed:l,createTemporaryCell:c,parentFloat:s,commands:u,disabled:h,commandHook:f,...p}=e,m=d.useCallback(y=>{const w={variant:Vt.Menuitem,commandHook:f,context:"cellStyle"},b=a.jsxs(a.Fragment,{children:[a.jsx(je,{...w,sx:{fontWeight:550},command:u.getCommand("formatCellStyle"),commandState:n,disabled:h,icon:ge(a.jsx(gs,{}))}),a.jsx(Mt,{orientation:"horizontal"}),a.jsx(je,{...w,command:u.getCommand("modifyCellStyle"),commandState:{named:n}}),a.jsx(je,{...w,command:u.getCommand("deleteCellStyle"),commandState:n,disabled:h||n?.getName()===N.IStyle.BuiltInName.Normal})]}),C=a.jsx(B.Box,{sx:{display:"flex",flexDirection:"column",flex:"1 1 100%",overflow:"hidden"},children:a.jsx(B.Box,{sx:{overflow:"auto",flex:"1 1 100%"},children:b})});return _n({...y,children:C})},[]),g=n?.getName()===o?.getName();let x=a.jsx(Tr,{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:h,icon:null,onClick:()=>{l?.(n)},...p,children:a.jsx(Xy,{value:n.getName(),cellStyle:{named:n.getName()},styles:t,createTemporaryCell:c,bodyStyle:i})},n.getName());return r&&(x=a.jsx(F9,{label:n.getName(),parentFloat:s,createPopupPanel:m,children:x})),x}),Yy=d.memo(d.forwardRef((e,t)=>{const{commands:n,command:o,commandHook:r,selectedNamed:i,onSelectNamed:l,disabled:c=!1,bodyStyle:s,usePreviewIcon:u=!0,...h}=e;s0(o);const f=o?.context(),p=f?.styles,m=i??f?.named(),g=s??f?.bodyStyle(),x=et(_=>{l?.(_),o?.execute(_,r)},[o,l,r]),y=d.useCallback((_,E)=>{const M={onSelectNamed:x,styles:p(),parentFloat:_.floatReference},j=p().getCustomNamed(),F=new Map,k=[];for(let D=0;D<j.length;D++)F.set(j[D].getName(),j[D]),p().getNamed(j[D].getName()).getBuiltInID()===null&&k.push(j[D].getName());const O=D=>{let L=F.get(D);return L||(L=p().getNamed(D)),!L||L.isHidden()?null:a.jsx(hD,{namedStyle:L,selectedNamed:m,bodyStyle:f.bodyStyle(),createTemporaryCell:f.createTemporaryCell,commands:n,commandHook:r,...M},D)},S=(D,L,V=!0)=>{const W=[];for(let P=0;P<L.length;P++){const U=O(L[P]);U&&W.push(U)}return W.length===0?null:a.jsxs(B.Box,{children:[V?a.jsx(Mt,{orientation:"horizontal"}):null,a.jsx(zl,{children:D},D+"-header"),a.jsx(B.Box,{sx:{display:"flex",gap:"2px",marginBottom:"6px",flexWrap:"wrap",width:"646px",maxWidth:"100%"},children:W},D+"-presets")]},D)},v=(D,L)=>{const V=[];for(let W=0;W<L.length;W++){const P=O(L[W]);P&&V.push(P)}return V.length===0?null:a.jsx(B.Box,{sx:{display:"flex",gap:"2px",marginBottom:"6px",flexWrap:"wrap",flexDirection:"column",flex:"0 0 0%"},children:V},D+"-presets")},I=[];I.push(S("Custom",k,!1)),I.push(S("Good, Bad and Neutral",[N.IStyle.BuiltInName.Normal,N.IStyle.BuiltInName.Bad,N.IStyle.BuiltInName.Good,N.IStyle.BuiltInName.Neutral],k.length>0)),I.push(S("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])),I.push(S("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 T=[];var R,A;return T.push(v("Accent 1",[N.IStyle.BuiltInName.Accent1_20,N.IStyle.BuiltInName.Accent1_40,N.IStyle.BuiltInName.Accent1_60,N.IStyle.BuiltInName.Accent1])),T.push(v("Accent 2",[N.IStyle.BuiltInName.Accent2_20,N.IStyle.BuiltInName.Accent2_40,N.IStyle.BuiltInName.Accent2_60,N.IStyle.BuiltInName.Accent2])),T.push(v("Accent 3",[N.IStyle.BuiltInName.Accent3_20,N.IStyle.BuiltInName.Accent3_40,N.IStyle.BuiltInName.Accent3_60,N.IStyle.BuiltInName.Accent3])),T.push(v("Accent 4",[N.IStyle.BuiltInName.Accent4_20,N.IStyle.BuiltInName.Accent4_40,N.IStyle.BuiltInName.Accent4_60,N.IStyle.BuiltInName.Accent4])),T.push(v("Accent 5",[N.IStyle.BuiltInName.Accent5_20,N.IStyle.BuiltInName.Accent5_40,N.IStyle.BuiltInName.Accent5_60,N.IStyle.BuiltInName.Accent5])),T.push(v("Accent 6",[N.IStyle.BuiltInName.Accent6_20,N.IStyle.BuiltInName.Accent6_40,N.IStyle.BuiltInName.Accent6_60,N.IStyle.BuiltInName.Accent6])),I.push((R="Themed Cell Styles",A=T,a.jsxs(B.Box,{children:[a.jsx(Mt,{orientation:"horizontal"}),a.jsx(zl,{children:R},R+"-header"),a.jsx(B.Box,{sx:{display:"flex",gap:"2px",flexWrap:"wrap",alignItems:"start",flexDirection:"row"},children:A},R+"-presets")]},R))),I.push(S("Number Format",[N.IStyle.BuiltInName.Comma,N.IStyle.BuiltInName.Comma0,N.IStyle.BuiltInName.Currency,N.IStyle.BuiltInName.Currency0,N.IStyle.BuiltInName.Percent])),a.jsxs(B.Box,{sx:{display:"flex",flexDirection:"column",maxWidth:"100%",paddingTop:D=>`${D.shape.borderRadius}px`,paddingBottom:D=>`${D.shape.borderRadius}px`},children:[a.jsx(B.Box,{onContextMenu:()=>{},sx:{display:"flex",flexDirection:"column",paddingTop:"6px",paddingBottom:"0px",paddingLeft:"16px",paddingRight:"16px"},children:I}),a.jsx(Mt,{orientation:"horizontal"}),a.jsx(je,{variant:Vt.Menuitem,commandState:m,command:E.getCommand("newCellStyle"),context:"styles",commandHook:r,disabled:c,icon:ge(a.jsx(e_,{}))})]})},[m,p?.().getTheme(),g]),w=et(_=>{const E=18/N.IFont.getDeviceScale(),M=f?.createTemporaryCell(_);return M.getStyle().getFont().getSize()<=E?M:M.createTemporaryCell({style:{font:{size:E}}})},[f?.createTemporaryCell]),b=c||!o||o.disabled(),C=d.useMemo(()=>f&&u?a.jsx(Xy,{value:m?.getName()??"Custom",cellStyle:m?{named:m.getName()}:void 0,styles:f.styles(),createTemporaryCell:w,bodyStyle:f.bodyStyle(),className:"outline-hover",disabled:b,sx:{maxHeight:"24px",height:"24px",marginRight:"2px",outline:_=>`1px solid ${_.palette.action.hover}`},borderProps:{}}):ge(a.jsx(gs,{})),[m,g,b]);return a.jsx(An,{ref:t,createPopupPanel:y,outlined:u,commands:n,createTooltip:({children:_},E)=>a.jsx(Uo,{label:o?.label(),description:o?.description(),disabled:E,children:_}),selected:!1,disabled:b,label:o?.label(),icon:C,...h})})),Jy="_sheetxl-reset_ods65_1",pD=10,Qy=d.memo(d.forwardRef((e,t)=>{const{styles:n,table:o,tableStyle:r=o?.getStyle()??n.getDefaultTableStyle(),bodyStyle:i,sx:l,disabled:c,className:s,forceThinBorder:u,cellHeight:h=pD,isLive:f=!1,...p}=e,m=Math.ceil(1.3*h),[g,x]=d.useReducer(_=>_+1,0);d.useEffect(()=>{if(f&&o)return o.addListeners({onAnyChange:()=>{x()}})},[o,f]);const y=d.useMemo(()=>{let _=o?.toJSON()??{};const E={rowStart:0,colStart:0,rowEnd:4,colEnd:4};return _&&(_.styleOptions={..._.styleOptions,name:r.getName()}),_.ref=E,new N.Table({initialAnchor:E,json:_,styles:n})},[g,o,r,n]),w=d.useMemo(()=>{const _=[];for(let E=0;E<5;E++)for(let M=0;M<5;M++){const j=y.getStyleAt({colIndex:M,rowIndex:E});_.push(j)}return _},[y]),b=d.useMemo(()=>{const _=(M,j,F)=>{let k=F.getFill().toCSS(i?.darkMode??!1);const O=m-(j<4?1:0),S=h-(M<4?1:0),v=F.getFont().getFill().toCSS(i?.darkMode??!1);return k={...k,position:"absolute",boxSizing:"border-box",left:j*(m-1),top:M*(h-1),width:O,height:S},a.jsx("td",{className:`table-style-fill ${M}-${j}`,style:k,children:a.jsx("div",{className:`table-style-text ${M}-${j}`,style:{position:"absolute",boxSizing:"border-box",width:"6px",left:(O-6)/2,top:(S-1)/2,borderTop:`1px solid ${v}`}})},`${M}-${j}`)},E=[];for(let M=0;M<5;M++){const j=[];for(let F=0;F<5;F++){const k=w[5*M+F];j.push(_(M,F,k))}E.push(a.jsx("tr",{children:j},M))}return E},[y,r,i]),C=d.useCallback((_,E)=>w[E].getBorder()??null,[w]);return a.jsx(B.Box,{ref:t,className:"table-format-preview",sx:{background:i?.fill,filter:c?"grayscale(0.4) opacity(0.8);":"none","& .styled-element":{position:"absolute"},...l},...p,children:a.jsx(j3,{getBorderAt:C,rowCount:5,columnCount:5,forceThinBorder:u,width:5*(m-1)+1,height:5*(h-1)+1,darkMode:i?.darkMode??!1,style:{pointerEvents:"none"},children:a.jsx("table",{className:Yn(s,"sheetxl-table-preview",Jy),style:{borderCollapse:"collapse",width:5*(m-1)+1,height:5*(h-1)+1},children:a.jsx("tbody",{children:b})})})})})),Ea=(e,t,n,o,r)=>{e.beginPath(),e.moveTo(t+.5,n+.5),e.lineTo(o+.5,r+.5),e.stroke()},eb=d.memo(d.forwardRef((e,t)=>{const{table:n,tableStyle:o,styles:r,bodyStyle:i,disabled:l,style:c,className:s,canvas:u,...h}=e,f=d.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]),p=d.useMemo(()=>{const g=[];for(let x=0;x<5;x++)for(let y=0;y<5;y++){const w=f.getStyleAt({colIndex:y,rowIndex:x});g.push(w)}return g},[f]),m=d.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,w=i?.darkMode??!1;for(let b=0;b<5;b++)for(let C=0;C<5;C++){const _=p[5*b+C].getFill();let E=i?.fill;_.getType()===N.IFill.Type.Solid?E=_.getColor().toCSS(w,!1):_.getType()===N.IFill.Type.Gradient?E=_.getStops[0]?.color.toCSS(w,!1):_.getType()===N.IFill.Type.Pattern&&(E=_.getForeground().toCSS(w,!1)),x.fillStyle=E;const M=C*y,j=9*b;x.fillRect(M,j,13,10)}x.lineWidth=1;for(let b=0;b<5;b++)for(let C=0;C<5;C++){const _=p[5*b+C],E=C*y,M=9*b,j=_.getBorder();if(!j.isEmpty()){const O=j.getLeft();O.isNone()||(x.strokeStyle=O.getColor().toCSS(w,!1),Ea(x,E,M,E,M+9));const S=j.getTop();S.isNone()||(x.strokeStyle=S.getColor().toCSS(w,!1),Ea(x,E,M,E+y,9*b));const v=j.getRight();v.isNone()||(x.strokeStyle=v.getColor().toCSS(w,!1),Ea(x,E+y,M,E+y,M+9));const I=j.getBottom();I.isNone()||(x.strokeStyle=I.getColor().toCSS(w,!1),Ea(x,E,M+9,E+y,M+9))}x.strokeStyle=_.getFont().getFill().toCSS(w,!1);const F=4,k=2.5;Ea(x,C*y+k,9*b+F,C*y+k+7,9*b+F)}return`url(${g.toDataURL()})`},[u,f,o,i]);return a.jsx("div",{ref:t,className:Yn("table-style-preview",s),style:{backgroundImage:m,width:61,height:46,...c},...h})})),fD=d.memo(d.forwardRef((e,t)=>{const{styleOptions:n,onStyleOptionsChange:o,showHeaderRow:r,onShowHeaderRowChange:i,showTotalRow:l,onShowTotalRowChange:c,showFilterButton:s,onShowFilterButtonChange:u,sx:h,disabled:f,...p}=e;return a.jsxs(B.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)}`},...h},...p,ref:t,children:[i&&a.jsx(B.FormControlLabel,{control:a.jsx(B.Checkbox,{checked:r??!1,indeterminate:r==null,onChange:()=>i(!r),disabled:f||r==null}),label:"Header Row",labelPlacement:"end"}),c&&a.jsx(B.FormControlLabel,{control:a.jsx(B.Checkbox,{checked:l??!1,indeterminate:l==null,onChange:()=>c(!l),disabled:f||l==null}),label:"Total Row",labelPlacement:"end"}),a.jsx(B.FormControlLabel,{control:a.jsx(B.Checkbox,{checked:n?.showRowStripes??!1,indeterminate:!n,disabled:f||!n,onChange:()=>{o?.({...n,showRowStripes:!n?.showRowStripes})}}),label:"Banded Rows",labelPlacement:"end"}),a.jsx(B.FormControlLabel,{control:a.jsx(B.Checkbox,{checked:n?.showFirstColumn??!1,indeterminate:!n,disabled:f||!n,onChange:()=>{o?.({...n,showFirstColumn:!n?.showFirstColumn})}}),label:"First Column",labelPlacement:"end"}),a.jsx(B.FormControlLabel,{control:a.jsx(B.Checkbox,{checked:n?.showLastColumn??!1,indeterminate:!n,disabled:f||!n,onChange:()=>{o?.({...n,showLastColumn:!n?.showLastColumn})}}),label:"Last Column",labelPlacement:"end"}),a.jsx(B.FormControlLabel,{control:a.jsx(B.Checkbox,{checked:n?.showColumnStripes??!1,indeterminate:!n,disabled:f||!n,onChange:()=>{o?.({...n,showColumnStripes:!n?.showColumnStripes})}}),label:"Banded Columns",labelPlacement:"end"}),u&&a.jsx(B.FormControlLabel,{control:a.jsx(B.Checkbox,{checked:s??!1,indeterminate:s==null,disabled:f||!n||s==null,onChange:()=>u(!s)}),label:"Filter Button",labelPlacement:"end"})]})})),mD=d.memo(e=>{const{table:t,tableStyle:n,selectedTableStyleName:o,onSelectTableStyleName:r,styles:i,hasContextMenu:l=!0,bodyStyle:c,parentFloat:s,commands:u,disabled:h,commandHook:f,useCanvasPreview:p=!0,canvas:m,...g}=e,x=d.useCallback(C=>{const _={variant:Vt.Menuitem,commandHook:f,context:"table"},E=a.jsxs(a.Fragment,{children:[a.jsx(je,{..._,command:u.getCommand("formatTableStyleClearCellStyles"),commandState:n,disabled:h,icon:ge(a.jsx(gs,{}))}),a.jsx(je,{..._,sx:{fontWeight:550},command:u.getCommand("formatTableStyle"),commandState:{name:n.getName()},disabled:h,icon:ge(a.jsx(gs,{}))}),a.jsx(Mt,{orientation:"horizontal"}),a.jsx(je,{..._,command:u.getCommand("setDefaultTableStyle"),commandState:n.getName(),disabled:h}),a.jsx(Mt,{orientation:"horizontal"}),a.jsx(je,{..._,command:u.getCommand("deleteTableStyle"),commandState:n?.getName(),disabled:h||!n||n.isBuiltIn()})]}),M=a.jsx(B.Box,{sx:{display:"flex",flexDirection:"column",flex:"1 1 100%",overflow:"hidden"},children:a.jsx(B.Box,{sx:{overflow:"auto",flex:"1 1 100%"},children:E})});return _n({...C,children:M})},[u]),y=n?.getName()===o,w=d.useMemo(()=>{const C={table:t,tableStyle:n,styles:i,bodyStyle:c};return p?a.jsx(eb,{canvas:m,...C}):a.jsx(Qy,{...C})},[t,n,i,c]);let b=a.jsx(Tr,{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:h,icon:null,onClick:()=>{r?.(n?.getName())},...g,children:w},n.getName());return l&&(b=a.jsx(F9,{label:t.getStyleOptions().name,parentFloat:s,createPopupPanel:x,children:b})),b}),tb=d.memo(d.forwardRef((e,t)=>{const{commands:n,command:o,commandHook:r,selectedTable:i,onSelectTableStyleName:l,disabled:c=!1,bodyStyle:s,usePreviewIcon:u=!1,...h}=e;s0(o);const f=o?.context(),p=f?.styles,m=i??f?.table?.();let g="insertTable";m&&(g="editTable");const x=d.useMemo(()=>((k,O)=>{const S={rowStart:0,colStart:0,rowEnd:4,colEnd:4};return new N.Table({initialAnchor:S,styles:O,json:{name:"PreviewTable",ref:S,description:"PreviewTable",headerRowCount:1,totalsRowCount:0,styleOptions:k}})})(m?.getStyleOptions(),p?.()),[p?.().getDefaultTableStyle(),m?.getStyleOptions()]),y=m??x,[w,b]=d.useState(y);d.useEffect(()=>{b(y)},[y]);const C=s??f?.bodyStyle(),_=et(k=>{l?.(k),o?.execute({name:k},r)},[o,l,r]),E=d.useRef(null),M=d.useCallback((k,O)=>{const S={onSelectTableStyleName:_,styles:p(),parentFloat:k.floatReference};E.current||(E.current=document.createElement("canvas"));const v=P=>{const U=p().getTableStyle(P);return U?a.jsx(mD,{table:w,tableStyle:U,selectedTableStyleName:w.getStyleOptions().name,bodyStyle:f.bodyStyle(),commands:O,commandHook:r,canvas:E.current,...S},P):null},I=(P,U,X=!0)=>{const ee=[];for(let H=0;H<U.length;H++){const $=v(U[H]);$&&ee.push($)}return ee.length===0?null:a.jsxs(B.Box,{children:[X?a.jsx(Mt,{orientation:"horizontal"}):null,a.jsx(zl,{children:P},P+"-header"),a.jsx(B.Box,{sx:{display:"flex",gap:"2px",marginBottom:"6px",flexWrap:"wrap",width:"481px",maxWidth:"100%"},children:ee},P+"-presets")]},P)},T=[],R=p().getCustomTableStyles(),A=[];if(R.length>0){for(let P=0;P<R.length;P++)R[P].isShownInTableStyles()&&A.push(R[P].getName());T.push(I("Custom",A,!1))}const D=[];m&&!m.getStyleOptions().name&&D.push(null);for(let P=0;P<21;P++)D.push("TableStyleLight"+(P+1));T.push(I("Light",D,A.length>0));const L=[];for(let P=0;P<28;P++)L.push("TableStyleMedium"+(P+1));T.push(I("Medium",L));const V=[];for(let P=0;P<11;P++)V.push("TableStyleDark"+(P+1));T.push(I("Dark",V));let W=null;return m&&(W=a.jsxs(a.Fragment,{children:[a.jsx(Mt,{orientation:"horizontal"}),a.jsx(je,{variant:Vt.Menuitem,command:O.getCommand("formatTableStyleClearTableStyle"),commandHook:r,disabled:c,icon:ge(a.jsx(Hm,{}))})]})),a.jsxs(B.Box,{sx:{display:"flex",flexDirection:"column",maxWidth:"100%",paddingTop:P=>`${P.shape.borderRadius}px`,paddingBottom:P=>`${P.shape.borderRadius}px`},children:[a.jsx(B.Box,{onContextMenu:()=>{},sx:{display:"flex",flexDirection:"column",padding:"6px 16px"},children:T}),W]})},[p,p?.().getTheme(),C,w]),j=c||!o||o.disabled(),F=d.useMemo(()=>{if(!f||!u)return ge(a.jsx(gs,{}))},[w,C,j]);return a.jsx(An,{ref:t,quickCommand:g,createPopupPanel:M,commands:n,label:o?.label(),commandState:m,commandHook:r,selected:m!==null,createTooltip:({children:k},O)=>a.jsx(Uo,{label:o?.label(),description:o?.description(),disabled:O,children:k}),disabled:j,icon:F,...h})})),Fr=[];Fr.push(ti("Primary Background","bg1")),Fr.push(ti("Primary Text","tx1")),Fr.push(ti("Secondary Background","bg2")),Fr.push(ti("Secondary Text","tx2")),Fr.push(ti("Accent 1","accent1")),Fr.push(ti("Accent 2","accent2")),Fr.push(ti("Accent 3","accent3")),Fr.push(ti("Accent 4","accent4")),Fr.push(ti("Accent 5","accent5")),Fr.push(ti("Accent 6","accent6"));const nb=e=>{const{docTheme:t,onSelectTheme:n,darkMode:o,isSelected:r,outlined:i,sx:l,...c}=e,s=Zr(),u=d.useMemo(()=>{let h=[];for(let f=0;f<Fr.length;f++){const p=Fr[f];h.push(a.jsx(Id,{schemeColorLookup:t.schemeLookup(),colorDef:p,darkMode:o,selectedColor:null},f+"-colorDef"))}return a.jsx(B.Box,{sx:{display:"flex",flexDirection:"row",flex:"none"},children:a.jsx(B.Box,{sx:{display:"flex",boxShadow:f=>f.shadows[2]},children:h})})},[t,s]);return a.jsx(Tr,{sx:{borderRadius:"2px",padding:"2px",margin:"0px 0px",display:"flex",border:h=>`solid ${r?h.palette.text.primary:"transparent"} 1px`,"&:hover:not([disabled])":{border:h=>`solid ${h.palette.text.primary} 1px !important`}},icon:null,...c,children:a.jsxs(B.Box,{sx:{border:h=>`solid ${h.palette.divider} 1px`,minWidth:"200px",borderRadius:"2px",padding:"4px 4px",textAlign:"left",display:"flex",gap:"4px",flexDirection:"column",alignItems:"stretch",color:h=>r?h.palette.text.primary:void 0,"&:hover:not([disabled])":{color:h=>h.palette.text.primary}},children:[a.jsx(B.Box,{sx:{},children:t.getName()}),a.jsxs(B.Box,{sx:{paddingTop:"6px",paddingLeft:"12px",paddingRight:"12px",display:"flex",flexDirection:"column",alignItems:"stretch"},children:[u,a.jsx(B.Box,{sx:{flex:"1 1 100%",textOverflow:"ellipsis",overflow:"hidden",marginTop:"2px",whiteSpace:"pre",fontFamily:()=>t.getFontScheme().getMajorFont()},children:a.jsx(Ir,{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.
|
|
90
|
+
The heading font is '${t.getFontScheme().getMajorFont()}'.`}),placement:"bottom-start",children:a.jsx("div",{children:t.getFontScheme().getMinorFont()})})})]})]})})},ob=d.memo(d.forwardRef((e,t)=>{const{themes:n,selectedTheme:o,onSelectTheme:r,sx:i,disabled:l=!1,darkMode:c,...s}=e,u=d.useMemo(()=>{const h=n?.search({selected:o})??[],f=[];if(h.length===0)return a.jsx(zl,{sx:{paddingLeft:"16px",paddingRight:"16px",paddingTop:"6px",paddingBottom:"6px"},children:"No themes"});for(let p=0;p<h.length;p++){const m=h[p],g=o&&m?.getName()===o.getName(),x=h[p+1];x&&x.isCustom()!==m.isCustom()&&f.push(a.jsx(Mt,{orientation:"horizontal",sx:{marginBottom:"4px"}},`divider-${p}`)),f.push(a.jsx(nb,{docTheme:m,onSelectTheme:()=>r(m),isSelected:g,disabled:l,darkMode:c,onMouseDown:y=>{y.button===0&&y.preventDefault()},onMouseUp:y=>{y.button===0&&r(m)},onKeyDown:y=>{y.keyCode!==Cn.Enter&&y.keyCode!==Cn.Space||r(m)}},m.getName()))}return f},[o,r,c]);return a.jsx(B.Box,{sx:{display:"flex",flexDirection:"column",flex:"1 1 100%"},ref:t,...s,children:a.jsxs(B.Box,{sx:{display:"flex",flexDirection:"column",overflow:"hidden"},children:[a.jsx(zl,{sx:{paddingLeft:"16px",paddingRight:"16px",paddingTop:"4px",paddingBottom:"2px"},children:"Themes"}),a.jsx(Mt,{}),a.jsx(B.Box,{sx:{flex:"1 1 100%",overflow:"auto",padding:"6px 16px"},children:u})]})})})),rb=d.memo(d.forwardRef((e,t)=>{const{themes:n,selectedTheme:o,onSelectTheme:r,icon:i,tooltip:l,label:c,variant:s=Wr.Toolbar,darkMode:u,panelProps:h,...f}=e,p=i||ge(a.jsx(x9,{})),m=d.useCallback(x=>{const{closeFloatAll:y}=x;return a.jsx(ob,{...h,themes:n,selectedTheme:o,onSelectTheme:r,darkMode:u,onKeyDown:w=>{w.which===Cn.Enter&&y()}})},[n,o,r,h,u]),g={createPopupPanel:m,tooltip:l||c||"Theme",label:c,icon:p,...f};return s===Wr.Toolbar?a.jsx(ii,{ref:t,...g}):a.jsx(Ns,{ref:t,...g})})),ib=d.memo(d.forwardRef((e,t)=>{const{command:n,commandHook:o,selectedTheme:r,onSelectTheme:i,disabled:l=!1,darkMode:c,label:s,icon:u,variant:h,...f}=e;s0(n);const p=n?.context()?.themes,m=r||n?.context()?.theme,g=c??n?.context()?.darkMode,x=l||n?.disabled(),y=et(b=>{i?.(b),n?.execute(b,o)},[i,o]),w=d.useCallback((b,C)=>{const{children:_,title:E,...M}=b;let j=b.children;return(x||C)&&(j=a.jsx("div",{children:j})),a.jsx(Zl,{command:n,placement:h===Vt.Toolbar?"bottom-start":"right-start",disabled:x||C,...M,children:j})},[n,x]);return a.jsx(rb,{ref:t,themes:p,selectedTheme:m,onSelectTheme:y,variant:h===Vt.Menuitem?Wr.Menuitem:Wr.Toolbar,createTooltip:w,disabled:x,darkMode:g,icon:ge(a.jsx(x9,{})),...f})})),lb=d.memo(d.forwardRef((e,t)=>{const{commands:n,commandHook:o,scope:r,disabled:i=!1,...l}=e,c=ko(n,["themeMode"])[0],s=c?.state(),u=c?.state()!==null,h=B.useMediaQuery("(prefers-color-scheme: dark)"),f=s==="dark"||s===null&&h,p=et((m,g)=>{const x={variant:Vt.Menuitem,commandHook:o,scope:"appearance",disabled:i},y=a.jsxs(a.Fragment,{children:[a.jsx(je,{...x,command:c,icon:ge(f?a.jsx(gn.DarkMode,{}):a.jsx(gn.LightMode,{}))}),a.jsx(je,{...x,command:g.getCommand("defaultThemeMode"),icon:ge(h?a.jsx(s_,{}):a.jsx(c_,{}))}),a.jsx(Mt,{orientation:"horizontal"}),a.jsx(je,{...x,command:g.getCommand("enableDarkGrid")}),a.jsx(je,{...x,command:g.getCommand("enableDarkImages")})]});return _n({...m,children:y})},[i,c,o,r,h,s,u]);return a.jsx(An,{ref:t,quickCommand:"themeMode",commands:n,commandHook:o,createPopupPanel:p,label:"Appearance",tooltip:"Change the light/dark mode to match your viewing preference. This does not affect the view for others.",onQuickClick:()=>{c?.execute(f?"light":"dark",o)},selected:u,icon:ge(f?a.jsx(gn.DarkMode,{}):a.jsx(gn.LightMode,{})),...l})})),ab=d.memo(d.forwardRef((e,t)=>{const{commands:n,commandHook:o,scope:r,disabled:i=!1,sx:l,...c}=e,s=d.useCallback((u,h)=>{const f={variant:Vt.Menuitem,scope:"help",commandHook:{...o,beforeExecute:(m,g)=>o?.beforeExecute?.(m,g)!==!1&&u.floatReference.closeAll()},disabled:i},p=a.jsxs(a.Fragment,{children:[a.jsx(je,{...f,command:h.getCommand("showKeyboardShortcuts"),icon:ge(a.jsx(gn.Keyboard,{}))}),a.jsx(Mt,{orientation:"horizontal"}),a.jsx(je,{...f,command:h.getCommand("gotoUrlGithub"),icon:ge(a.jsx(p_,{}))}),a.jsx(je,{...f,command:h.getCommand("gotoUrlDiscord"),icon:ge(a.jsx(h_,{}))}),a.jsx(je,{...f,command:h.getCommand("gotoUrlDocumentation"),icon:ge(a.jsx(b9,{}))}),a.jsx(je,{...f,command:h.getCommand("gotoUrlIssue"),icon:ge(a.jsx(u_,{}))})]});return _n({...u,children:p})},[i,o]);return a.jsx(An,{ref:t,sx:l,commands:n,disabled:i,commandHook:o,scope:r,label:"Help",tooltip:"Help, feedback, and keyboard shortcuts.",createPopupPanel:s,icon:ge(a.jsx(d_,{sx:{transform:"scale(0.75)"}})),...c})})),W3=d.memo(d.forwardRef((e,t)=>{const{commands:n,commandHook:o,scope:r,disabled:i=!1,preferSingleMenu:l=!0,showQuickButton:c=!0,variant:s=Vt.Toolbar,...u}=e,h=ko(n,["insertImageFromFile","insertImageFromURL"]),{singleMenuCommand:f,allDisabled:p}=d.useMemo(()=>{let g=null,x=0;for(let y=0;y<h.length;y++)h[y]&&!h[y]?.disabled()&&(l&&s===Vt.Menuitem&&(g=x===0?h[y]:null),x++);return{singleMenuCommand:g,allDisabled:x===0}},[h]),m=d.useCallback((g,x)=>{const y={variant:Vt.Menuitem,commandHook:o,scope:"insertImage",disabled:i},w=a.jsxs(a.Fragment,{children:[a.jsx(je,{...y,command:x.getCommand("insertImageFromFile"),icon:ge(a.jsx(mc,{}))}),a.jsx(je,{...y,command:x.getCommand("insertImageFromURL"),icon:ge(a.jsx(mc,{}))})]});return _n({...g,children:w})},[i,o,r]);return f?a.jsx(je,{ref:t,variant:s,commandHook:o,disabled:i,command:f,icon:ge(a.jsx(mc,{})),...u}):a.jsx(An,{ref:t,variant:s,quickCommand:"insertImageFromFile",commands:n,commandHook:o,scope:r,disabled:i||p,tooltip:"Insert a picture from the web to complement your data.",createPopupPanel:m,icon:ge(a.jsx(mc,{})),...u})})),Dd=d.memo(d.forwardRef((e,t)=>{const{command:n,...o}=e,r=dd(),[i,l]=d.useState(!1),[c,s]=d.useState("info");return d.useEffect(()=>{const u=r.getMode();l(u?.key==="copy"||u?.key==="cut"),s(u?.key==="cut"?"warning":"info")},[r]),a.jsx(je,{ref:t,command:n,icon:ge(a.jsx(IC,{isWalking:i,themedType:c})),...o})})),gD=d.memo(d.forwardRef((e,t)=>{const{...n}=e;return a.jsx(gi,{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 ge(a.jsx(V_,{}));case"insertFunction":return ge(a.jsx(N_,{}));default:return null}}})})),sb=d.createContext(null);sb.displayName="HookFormContext";const cb=()=>d.useContext(sb),db=d.memo(d.forwardRef((e,t)=>{const{disabled:n,style:o,className:r,sx:i,defaultInput:l,value:c,formName:s,formOptions:u,onChangeInput:h,onValidate:f,onKeyDown:p,...m}=e,g=cb(),x=s&&g?g.register(s,u):null,[y,w]=d.useState(""),[b,C]=d.useState(""),[_,E]=d.useState(c);d.useEffect(()=>{E(c),C("")},[c]);const M=et(S=>{let v="";try{E(S),f?.(S),h?.(S)}catch(I){v=I.message??"Invalid Name"}s&&g&&(v?g.setError(s,{message:v}):g.clearErrors(s)),C(v)},[c,f,h]),j=et(async S=>{S.keyCode===Cn.Escape&&y!==c&&(M(y),g?.setValue(s,y),g?.clearErrors(s),S.stopPropagation()),p?.(S)},[p,y,c,g]),F=et(S=>{w(S.target.value??"")},[]),k=et(S=>{w(""),x?.onBlur(S)},[]),O=d.useCallback(S=>{M(S.target.value),x?.onChange(S)},[x]);return a.jsx(B.FormControl,{sx:{paddingTop:S=>S.spacing(1.5),minWidth:135,width:"100%",...i},size:"small",ref:t,className:Yn("named-input",r),...m,children:a.jsx(B.TextField,{label:"Name",placeholder:l,onFocus:F,onBlur:k,inputRef:x?.ref,disabled:n,error:!!b,helperText:b||" ",sx:{"& .MuiFormHelperText-root":{marginTop:S=>S.spacing(.5)}},InputLabelProps:{shrink:!0},InputProps:{inputProps:{className:"autoFocus",name:s,spellCheck:!1,autoComplete:"off",readOnly:n,sx:{paddingTop:S=>S.spacing(1.25),paddingBottom:S=>S.spacing(.75),backgroundImage:`linear-gradient(${ht.alpha("#fff",jn(5))}, ${ht.alpha("#fff",jn(5))})`}}},value:_??"",onChange:O,onKeyDownCapture:j,onContextMenu:S=>{S.stopPropagation()}})})}));db.displayName="NamedInput";const Ac=e=>e===null?"":e.toString(),ub=d.memo(d.forwardRef((e,t)=>{const{formName:n,formOptions:o,disabled:r,style:i,className:l,sx:c,onKeyDown:s,value:u,onChangeInput:h,resolvedAddress:f,...p}=e,m=cb(),g=n&&m?m.register(n,o):null,[x,y]=d.useState(""),[w,b]=d.useState(!1),[C,_]=d.useState(()=>Ac(u));d.useEffect(()=>{_(Ac(u)),y(""),n&&m&&m.clearErrors(n),b(!1)},[u]);const E=et(v=>{let I="";try{_(v);const T=Ac(u),R=f(v);R.toString()!==T&&h?.(R)}catch{I="Invalid Range"}n&&m&&(I?m.setError(n,{message:I}):m.clearErrors(n)),y(I),b(!0)},[C,h,n,m]),M=et(async v=>{if(w&&v.keyCode===Cn.Escape){const I=Ac(u);_(I),y(""),b(!1),v.stopPropagation()}s?.(v)},[u,h,s,w]),j=et(v=>{g?.onBlur(v)},[g]),F=d.useCallback(v=>{E(v.target.value),g?.onChange(v)},[g]),[k,O]=d.useState(!1),S=d.useMemo(()=>a.jsx(B.InputAdornment,{tabIndex:-1,sx:{display:"flex",position:"relative",flex:"0"},position:"end",children:a.jsx(z9,{disabled:!0,selected:k,onSelectToggle:v=>{O(v)},label:"Select Range",icon:ge(a.jsx(A_,{}))})}),[k]);return a.jsx(B.FormControl,{sx:{paddingTop:v=>v.spacing(1.5),minWidth:135,width:"100%",...c},size:"small",ref:t,className:Yn("range-input",l),...p,children:a.jsx(B.TextField,{label:"Range",placeholder:"Enter Range",onBlur:j,disabled:r,error:!!x,inputRef:g?.ref,helperText:x||" ",sx:{"& .MuiFormHelperText-root":{marginTop:v=>v.spacing(.5)}},InputLabelProps:{shrink:!0},InputProps:{inputProps:{spellCheck:!1,autoComplete:"off",readOnly:r,name:n,sx:{paddingTop:v=>v.spacing(1.25),paddingBottom:v=>v.spacing(.75)}},sx:{backgroundImage:`linear-gradient(${ht.alpha("#fff",jn(5))}, ${ht.alpha("#fff",jn(5))})`},endAdornment:S},value:C??"",onChange:F,onKeyDownCapture:M,onContextMenu:v=>{v.stopPropagation()}})})}));ub.displayName="RangeInput";const U3=d.memo(d.forwardRef((e,t)=>{const{sheet:n,className:o,debounceDelay:r=220,sx:i,...l}=e,[c,s]=d.useState(()=>n.getView().getZoomScale()),[u,h]=d.useState(null),f=d.useRef(0);Zt(n,{onViewChange:()=>{h(!0),f.current===0&&s(n.getView().getZoomScale())}}),d.useEffect(()=>{f.current=0,h(!1),s(n.getView().getZoomScale())},[n]),d.useEffect(()=>{f.current!==0&&N.CommonUtils.debounce(()=>{c===f.current&&(f.current=0,n.getView().update({zoomScale:c}))},r)()},[c,r]);const p=et(j=>{let F=j;j<100?F=Math.round(j/(10/9)+10):j>100&&(F=Math.round(3*j-200)),f.current=F,h(!0),s(F)},[n]),m=j=>{let F=j;return j<100?F=10/9*(j-10):j>100&&(F=(j+200)/3),F},g=m(c),[x,y]=d.useState(null),w=d.useRef(null),b=d.useCallback(()=>{const j=x;j&&requestAnimationFrame(()=>{w.current?.contains(document.activeElement)&&j.focus()})},[]),C=Jh(()=>{p(m(N.CommonUtils.findNextStep(n.getView().getZoomScale(),!1,10)))}),_=Jh(()=>p(m(N.CommonUtils.findNextStep(n.getView().getZoomScale(),!0,10)))),E=Zr(),M=d.useMemo(()=>`${N.IFont.getSharedMeasurer()("100%",Math.round(E.typography.fontSize),E.typography.fontFamily).width}px`,[E]);return a.jsxs(B.Box,{ref:t,className:Yn(o),sx:{padding:"0px 0px",display:"flex",alignItems:"center",color:j=>j.palette.text.secondary,...i},onFocus:j=>{j.relatedTarget&&!x&&y(j.relatedTarget)},onBlur:j=>{x&&!w?.current?.contains(j.relatedTarget)&&y(null)},onMouseDown:j=>{j.button===0&&j.preventDefault()},onMouseUp:j=>{j.button===0&&b()},...l,children:[a.jsx(Ir,{disableInteractive:!0,title:"Zoom Out",children:a.jsx(B.IconButton,{sx:{padding:"0","&:hover:not([disabled])":{color:j=>j.palette.primary.main},"& svg":{width:"12px",height:"12px"}},size:"small",onPointerDown:j=>{j.button!==0?j.preventDefault():C(j)},children:a.jsx(gn.Remove,{})})}),a.jsx(B.Slider,{ref:w,sx:{flex:"1 1 100%",padding:"6px 0px !important",marginRight:"2px",marginLeft:"2px","& .MuiSlider-thumb":{height:14,width:6,borderRadius:.75,"&.Mui-focusVisible":{boxShadow:j=>`0px 0px 0px 3px ${Z2(j.palette.primary.main,.16)}`},"&:focus, &:hover, &.Mui-active":{boxShadow:j=>`0px 0px 0px 2px ${Z2(j.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:()=>h(!1),onWheel:j=>{p(m(N.CommonUtils.findNextStep(n.getView().getZoomScale(),j.deltaY<0,10)))},onKeyDown:j=>{j.which===Cn.Down||j.which===Cn.Right?(p(m(N.CommonUtils.findNextStep(n.getView().getZoomScale(),!0,10))),j.preventDefault()):j.which===Cn.Up||j.which===Cn.Left?(p(m(N.CommonUtils.findNextStep(n.getView().getZoomScale(),!1,10))),j.preventDefault()):j.which!==Cn.Enter&&j.which!==Cn.Escape||b()},onChange:(j,F)=>{Math.abs(F-100)<3?p(100):p(F)},valueLabelFormat:(j,F)=>`Zoom: ${Math.round(c)}%`}),a.jsx(Ir,{disableInteractive:!0,title:"Zoom In",children:a.jsx(B.IconButton,{sx:{padding:"0","&:hover:not([disabled])":{color:j=>j.palette.primary.main},"& svg":{width:"12px",height:"12px"}},size:"small",onPointerDown:j=>{j.button!==0?j.preventDefault():_(j)},children:a.jsx(gn.Add,{})})}),a.jsxs(B.Box,{sx:{display:"flex",flexDirection:"row"},children:[a.jsx(B.Box,{sx:{minWidth:"8px"}}),a.jsx(B.Typography,{noWrap:!0,component:"div",onClick:()=>{p(100)},sx:{cursor:"pointer",display:"flex",flex:"1 1 100%",fontSize:"0.70rem",marginLeft:"2px",marginRight:"2px",userSelect:"none",justifyContent:"center",width:M},children:a.jsx("div",{children:Math.round(c)+"%"})})]})]})}));U3.displayName="SheetZoomScale";const q3=d.memo(d.forwardRef((e,t)=>{const{sx:n,sheet:o,gridStyle:r,children:i,childrenEnd:l,...c}=e;d.useImperativeHandle(t,()=>({}));const s=d.useRef(null);d.useEffect(()=>{const m=g=>g.preventDefault();return s.current?.addEventListener("wheel",m,{passive:!1}),()=>{s.current?.removeEventListener("wheel",m)}},[]);const u=dd(),h=d.useMemo(()=>{const m=u.getMode();return m?.description?m.description:"Ready"},[u]),[f,p]=d.useState(!1);return a.jsxs(B.Box,{ref:s,sx:{display:"flex",alignItems:"stretch",flexDirection:"row",flex:"0",paddingLeft:"12px",paddingRight:"12px",gap:"8px",paddingTop:"1px",minHeight:"calc(1em + 8px)",overflow:f?"visible":"hidden",boxShadow:`0px -1px 0px ${r.header.edgeStrokeFill}`,...n},onMouseOver:()=>p(!0),onMouseLeave:()=>p(!1),...c,children:[i,a.jsx("div",{style:{flex:"1 1 100%",display:"flex",alignItems:"end",overflow:"hidden"},children:a.jsx(B.Typography,{component:"div",sx:{userSelect:"none",whiteSpace:"pre",overflow:"hidden",textOverflow:"ellipsis",color:m=>m.palette.text.secondary},variant:"caption",children:h})}),l?a.jsx(B.Box,{sx:{display:"flex",alignItems:"center"},children:l}):null,a.jsx(Mt,{style:{marginTop:"6px",marginBottom:"6px"}}),a.jsx(U3,{sx:{paddingLeft:"4px",minWidth:"175px"},sheet:o})]})}));q3.displayName="StatusBar";var Hf,Fc={exports:{}},ka={},Ta={exports:{}},$f={},zc={exports:{}},Wf,vo={},Hi={};function Ld(){return Wf||(Wf=1,Object.defineProperty(Hi,"__esModule",{value:!0}),Hi.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.`)},Hi.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]},Hi.int=function(e){return parseInt(e,10)},Hi.isFunction=function(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Function]"},Hi.isNum=function(e){return typeof e=="number"&&!isNaN(e)}),Hi}var Uf,qf,$i={};function Z3(){if(qf)return vo;qf=1,Object.defineProperty(vo,"__esModule",{value:!0}),vo.addClassName=l,vo.addEvent=function(s,u,h,f){if(!s)return;const p={capture:!0,...f};s.addEventListener?s.addEventListener(u,h,p):s.attachEvent?s.attachEvent("on"+u,h):s["on"+u]=h},vo.addUserSelectStyles=function(s){if(!s)return;let u=s.getElementById("react-draggable-style-el");u||(u=s.createElement("style"),u.type="text/css",u.id="react-draggable-style-el",u.innerHTML=`.react-draggable-transparent-selection *::-moz-selection {all: inherit;}
|
|
91
|
+
`,u.innerHTML+=`.react-draggable-transparent-selection *::selection {all: inherit;}
|
|
92
|
+
`,s.getElementsByTagName("head")[0].appendChild(u)),s.body&&l(s.body,"react-draggable-transparent-selection")},vo.createCSSTransform=function(s,u){const h=r(s,u,"px");return{[(0,t.browserPrefixToKey)("transform",t.default)]:h}},vo.createSVGTransform=function(s,u){return r(s,u,"")},vo.getTouch=function(s,u){return s.targetTouches&&(0,e.findInArray)(s.targetTouches,h=>u===h.identifier)||s.changedTouches&&(0,e.findInArray)(s.changedTouches,h=>u===h.identifier)},vo.getTouchIdentifier=function(s){if(s.targetTouches&&s.targetTouches[0])return s.targetTouches[0].identifier;if(s.changedTouches&&s.changedTouches[0])return s.changedTouches[0].identifier},vo.getTranslation=r,vo.innerHeight=function(s){let u=s.clientHeight;const h=s.ownerDocument.defaultView.getComputedStyle(s);return u-=(0,e.int)(h.paddingTop),u-=(0,e.int)(h.paddingBottom),u},vo.innerWidth=function(s){let u=s.clientWidth;const h=s.ownerDocument.defaultView.getComputedStyle(s);return u-=(0,e.int)(h.paddingLeft),u-=(0,e.int)(h.paddingRight),u},vo.matchesSelector=o,vo.matchesSelectorAndParentsTo=function(s,u,h){let f=s;do{if(o(f,u))return!0;if(f===h)return!1;f=f.parentNode}while(f);return!1},vo.offsetXYFromParent=function(s,u,h){const f=u===u.ownerDocument.body?{left:0,top:0}:u.getBoundingClientRect(),p=(s.clientX+u.scrollLeft-f.left)/h,m=(s.clientY+u.scrollTop-f.top)/h;return{x:p,y:m}},vo.outerHeight=function(s){let u=s.clientHeight;const h=s.ownerDocument.defaultView.getComputedStyle(s);return u+=(0,e.int)(h.borderTopWidth),u+=(0,e.int)(h.borderBottomWidth),u},vo.outerWidth=function(s){let u=s.clientWidth;const h=s.ownerDocument.defaultView.getComputedStyle(s);return u+=(0,e.int)(h.borderLeftWidth),u+=(0,e.int)(h.borderRightWidth),u},vo.removeClassName=c,vo.removeEvent=function(s,u,h,f){if(!s)return;const p={capture:!0,...f};s.removeEventListener?s.removeEventListener(u,h,p):s.detachEvent?s.detachEvent("on"+u,h):s["on"+u]=null},vo.scheduleRemoveUserSelectStyles=function(s){window.requestAnimationFrame?window.requestAnimationFrame(()=>{i(s)}):i(s)};var e=Ld(),t=function(s,u){if(typeof WeakMap=="function")var h=new WeakMap,f=new WeakMap;return function(p,m){if(!m&&p&&p.__esModule)return p;var g,x,y={__proto__:null,default:p};if(p===null||typeof p!="object"&&typeof p!="function")return y;if(g=m?f:h){if(g.has(p))return g.get(p);g.set(p,y)}for(const w in p)w!=="default"&&{}.hasOwnProperty.call(p,w)&&((x=(g=Object.defineProperty)&&Object.getOwnPropertyDescriptor(p,w))&&(x.get||x.set)?g(y,w,x):y[w]=p[w]);return y}(s,u)}(function(){if(Uf)return $i;Uf=1,Object.defineProperty($i,"__esModule",{value:!0}),$i.browserPrefixToKey=h,$i.browserPrefixToStyle=function(f,p){return p?`-${p.toLowerCase()}-${f}`:f},$i.default=void 0,$i.getPrefix=u;const s=["Moz","Webkit","O","ms"];function u(){let f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"transform";if(typeof window>"u")return"";const p=window.document?.documentElement?.style;if(!p||f in p)return"";for(let m=0;m<s.length;m++)if(h(f,s[m])in p)return s[m];return""}function h(f,p){return p?`${p}${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}(f)}`:f}return $i.default=u(),$i}());let n="";function o(s,u){return n||(n=(0,e.findInArray)(["matches","webkitMatchesSelector","mozMatchesSelector","msMatchesSelector","oMatchesSelector"],function(h){return(0,e.isFunction)(s[h])})),!!(0,e.isFunction)(s[n])&&s[n](u)}function r(s,u,h){let{x:f,y:p}=s,m=`translate(${f}${h},${p}${h})`;return u&&(m=`translate(${`${typeof u.x=="string"?u.x:u.x+h}`}, ${`${typeof u.y=="string"?u.y:u.y+h}`})`+m),m}function i(s){if(s)try{if(s.body&&c(s.body,"react-draggable-transparent-selection"),s.selection)s.selection.empty();else{const u=(s.defaultView||window).getSelection();u&&u.type!=="Caret"&&u.removeAllRanges()}}catch{}}function l(s,u){s.classList?s.classList.add(u):s.className.match(new RegExp(`(?:^|\\s)${u}(?!\\S)`))||(s.className+=` ${u}`)}function c(s,u){s.classList?s.classList.remove(u):s.className=s.className.replace(new RegExp(`(?:^|\\s)${u}(?!\\S)`,"g"),"")}return vo}var Zf,ui={};function hb(){if(Zf)return ui;Zf=1,Object.defineProperty(ui,"__esModule",{value:!0}),ui.canDragX=function(o){return o.props.axis==="both"||o.props.axis==="x"},ui.canDragY=function(o){return o.props.axis==="both"||o.props.axis==="y"},ui.createCoreData=function(o,r,i){const l=!(0,e.isNum)(o.lastX),c=n(o);return l?{node:c,deltaX:0,deltaY:0,lastX:r,lastY:i,x:r,y:i}:{node:c,deltaX:r-o.lastX,deltaY:i-o.lastY,lastX:o.lastX,lastY:o.lastY,x:r,y:i}},ui.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}},ui.getBoundPosition=function(o,r,i){if(!o.props.bounds)return[r,i];let{bounds:l}=o.props;l=typeof l=="string"?l:function(s){return{left:s.left,top:s.top,right:s.right,bottom:s.bottom}}(l);const c=n(o);if(typeof l=="string"){const{ownerDocument:s}=c,u=s.defaultView;let h;if(l==="parent"?h=c.parentNode:h=c.getRootNode().querySelector(l),!(h instanceof u.HTMLElement))throw new Error('Bounds selector "'+l+'" could not find an element.');const f=h,p=u.getComputedStyle(c),m=u.getComputedStyle(f);l={left:-c.offsetLeft+(0,e.int)(m.paddingLeft)+(0,e.int)(p.marginLeft),top:-c.offsetTop+(0,e.int)(m.paddingTop)+(0,e.int)(p.marginTop),right:(0,t.innerWidth)(f)-(0,t.outerWidth)(c)-c.offsetLeft+(0,e.int)(m.paddingRight)-(0,e.int)(p.marginRight),bottom:(0,t.innerHeight)(f)-(0,t.outerHeight)(c)-c.offsetTop+(0,e.int)(m.paddingBottom)-(0,e.int)(p.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]},ui.getControlPosition=function(o,r,i){const l=typeof r=="number"?(0,t.getTouch)(o,r):null;if(typeof r=="number"&&!l)return null;const c=n(i),s=i.props.offsetParent||c.offsetParent||c.ownerDocument.body;return(0,t.offsetXYFromParent)(l||o,s,i.props.scale)},ui.snapToGrid=function(o,r,i){const l=Math.round(r/o[0])*o[0],c=Math.round(i/o[1])*o[1];return[l,c]};var e=Ld(),t=Z3();function n(o){const r=o.findDOMNode();if(!r)throw new Error("<DraggableCore>: Unmounted during event!");return r}return ui}var Gf,Kf,Xf,Yf,ja={},Bc={};function pb(){return Gf||(Gf=1,Object.defineProperty(Bc,"__esModule",{value:!0}),Bc.default=function(){}),Bc}function xD(){if(Kf)return ja;Kf=1,Object.defineProperty(ja,"__esModule",{value:!0}),ja.default=void 0;var e=function(m,g){if(typeof WeakMap=="function")var x=new WeakMap,y=new WeakMap;return function(w,b){if(!b&&w&&w.__esModule)return w;var C,_,E={__proto__:null,default:w};if(w===null||typeof w!="object"&&typeof w!="function")return E;if(C=b?y:x){if(C.has(w))return C.get(w);C.set(w,E)}for(const M in w)M!=="default"&&{}.hasOwnProperty.call(w,M)&&((_=(C=Object.defineProperty)&&Object.getOwnPropertyDescriptor(w,M))&&(_.get||_.set)?C(E,M,_):E[M]=w[M]);return E}(m,g)}(d),t=c($s()),n=c(ao),o=Z3(),r=hb(),i=Ld(),l=c(pb());function c(m){return m&&m.__esModule?m:{default:m}}function s(m,g,x){return(g=function(y){var w=function(b,C){if(typeof b!="object"||!b)return b;var _=b[Symbol.toPrimitive];if(_!==void 0){var E=_.call(b,C);if(typeof E!="object")return E;throw new TypeError("@@toPrimitive must return a primitive value.")}return(C==="string"?String:Number)(b)}(y,"string");return typeof w=="symbol"?w:w+""}(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"},h={start:"mousedown",move:"mousemove",stop:"mouseup"};let f=h,p=class extends e.Component{constructor(){super(...arguments),s(this,"dragging",!1),s(this,"lastX",NaN),s(this,"lastY",NaN),s(this,"touchIdentifier",null),s(this,"mounted",!1),s(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 w=(0,r.getControlPosition)(m,y,this);if(w==null)return;const{x:b,y:C}=w,_=(0,r.createCoreData)(this,b,C);(0,l.default)("DraggableCore: handleDragStart: %j",_),(0,l.default)("calling",this.props.onStart),this.props.onStart(m,_)!==!1&&this.mounted!==!1&&(this.props.enableUserSelectHack&&(0,o.addUserSelectStyles)(x),this.dragging=!0,this.lastX=b,this.lastY=C,(0,o.addEvent)(x,f.move,this.handleDrag),(0,o.addEvent)(x,f.stop,this.handleDragStop))}),s(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 w=(0,r.createCoreData)(this,x,y);if((0,l.default)("DraggableCore: handleDrag: %j",w),this.props.onDrag(m,w)!==!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)}}),s(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,_=y-this.lastY||0;[C,_]=(0,r.snapToGrid)(this.props.grid,C,_),x=this.lastX+C,y=this.lastY+_}const w=(0,r.createCoreData)(this,x,y);if(this.props.onStop(m,w)===!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",w),this.dragging=!1,this.lastX=NaN,this.lastY=NaN,b&&((0,l.default)("DraggableCore: Removing handlers"),(0,o.removeEvent)(b.ownerDocument,f.move,this.handleDrag),(0,o.removeEvent)(b.ownerDocument,f.stop,this.handleDragStop))}),s(this,"onMouseDown",m=>(f=h,this.handleDragStart(m))),s(this,"onMouseUp",m=>(f=h,this.handleDragStop(m))),s(this,"onTouchStart",m=>(f=u,this.handleDragStart(m))),s(this,"onTouchEnd",m=>(f=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,h.move,this.handleDrag),(0,o.removeEvent)(g,u.move,this.handleDrag),(0,o.removeEvent)(g,h.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 ja.default=p,s(p,"displayName","DraggableCore"),s(p,"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}),s(p,"defaultProps",{allowAnyClick:!1,allowMobileScroll:!1,disabled:!1,enableUserSelectHack:!0,onStart:function(){},onDrag:function(){},onStop:function(){},onMouseDown:function(){},scale:1}),ja}function yD(){return Xf||(Xf=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"DraggableCore",{enumerable:!0,get:function(){return s.default}}),e.default=void 0;var t=function(g,x){if(typeof WeakMap=="function")var y=new WeakMap,w=new WeakMap;return function(b,C){if(!C&&b&&b.__esModule)return b;var _,E,M={__proto__:null,default:b};if(b===null||typeof b!="object"&&typeof b!="function")return M;if(_=C?w:y){if(_.has(b))return _.get(b);_.set(b,M)}for(const j in b)j!=="default"&&{}.hasOwnProperty.call(b,j)&&((E=(_=Object.defineProperty)&&Object.getOwnPropertyDescriptor(b,j))&&(E.get||E.set)?_(M,j,E):M[j]=b[j]);return M}(g,x)}(d),n=h($s()),o=h(ao),r=function(){if(Hf)return zc.exports;function g(y){var w,b,C="";if(typeof y=="string"||typeof y=="number")C+=y;else if(typeof y=="object")if(Array.isArray(y)){var _=y.length;for(w=0;w<_;w++)y[w]&&(b=g(y[w]))&&(C&&(C+=" "),C+=b)}else for(b in y)y[b]&&(C&&(C+=" "),C+=b);return C}function x(){for(var y,w,b=0,C="",_=arguments.length;b<_;b++)(y=arguments[b])&&(w=g(y))&&(C&&(C+=" "),C+=w);return C}return Hf=1,zc.exports=x,zc.exports.clsx=x,zc.exports}(),i=Z3(),l=hb(),c=Ld(),s=h(xD()),u=h(pb());function h(g){return g&&g.__esModule?g:{default:g}}function f(){return f=Object.assign?Object.assign.bind():function(g){for(var x=1;x<arguments.length;x++){var y=arguments[x];for(var w in y)({}).hasOwnProperty.call(y,w)&&(g[w]=y[w])}return g},f.apply(null,arguments)}function p(g,x,y){return(x=function(w){var b=function(C,_){if(typeof C!="object"||!C)return C;var E=C[Symbol.toPrimitive];if(E!==void 0){var M=E.call(C,_);if(typeof M!="object")return M;throw new TypeError("@@toPrimitive must return a primitive value.")}return(_==="string"?String:Number)(C)}(w,"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:w}=x,{prevPropsPosition:b}=y;return!w||b&&w.x===b.x&&w.y===b.y?null:((0,u.default)("Draggable: getDerivedStateFromProps %j",{position:w,prevPropsPosition:b}),{x:w.x,y:w.y,prevPropsPosition:{...w}})}constructor(x){super(x),p(this,"onDragStart",(y,w)=>{if((0,u.default)("Draggable: onDragStart: %j",w),this.props.onStart(y,(0,l.createDraggableData)(this,w))===!1)return!1;this.setState({dragging:!0,dragged:!0})}),p(this,"onDrag",(y,w)=>{if(!this.state.dragging)return!1;(0,u.default)("Draggable: onDrag: %j",w);const b=(0,l.createDraggableData)(this,w),C={x:b.x,y:b.y,slackX:0,slackY:0};if(this.props.bounds){const{x:_,y:E}=C;C.x+=this.state.slackX,C.y+=this.state.slackY;const[M,j]=(0,l.getBoundPosition)(this,C.x,C.y);C.x=M,C.y=j,C.slackX=this.state.slackX+(_-C.x),C.slackY=this.state.slackY+(E-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)}),p(this,"onDragStop",(y,w)=>{if(!this.state.dragging||this.props.onStop(y,(0,l.createDraggableData)(this,w))===!1)return!1;(0,u.default)("Draggable: onDragStop: %j",w);const b={dragging:!1,slackX:0,slackY:0};if(this.props.position){const{x:C,y:_}=this.props.position;b.x=C,b.y=_}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:w,defaultPosition:b,defaultClassName:C,defaultClassNameDragging:_,defaultClassNameDragged:E,position:M,positionOffset:j,scale:F,...k}=this.props;let O={},S=null;const v=!M||this.state.dragging,I=M||b,T={x:(0,l.canDragX)(this)&&v?this.state.x:I.x,y:(0,l.canDragY)(this)&&v?this.state.y:I.y};this.state.isElementSVG?S=(0,i.createSVGTransform)(T,j):O=(0,i.createCSSTransform)(T,j);const R=(0,r.clsx)(w.props.className||"",C,{[_]:this.state.dragging,[E]:this.state.dragged});return t.createElement(s.default,f({},k,{onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop}),t.cloneElement(t.Children.only(w),{className:R,style:{...w.props.style,...O},transform:S}))}}e.default=m,p(m,"displayName","Draggable"),p(m,"propTypes",{...s.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:c.dontSetMe,style:c.dontSetMe,transform:c.dontSetMe}),p(m,"defaultProps",{...s.default.defaultProps,axis:"both",bounds:!1,defaultClassName:"react-draggable",defaultClassNameDragging:"react-draggable-dragging",defaultClassNameDragged:"react-draggable-dragged",defaultPosition:{x:0,y:0},scale:1})}($f)),$f}function fb(){if(Yf)return Ta.exports;Yf=1;const{default:e,DraggableCore:t}=yD();return Ta.exports=e,Ta.exports.default=e,Ta.exports.DraggableCore=t,Ta.exports}var Jf,Nc={};function bD(){if(Jf)return Nc;Jf=1,Nc.__esModule=!0,Nc.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=d)&&e.__esModule?e:{default:e};function n(i,l){var c=Object.keys(i);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(i);l&&(s=s.filter(function(u){return Object.getOwnPropertyDescriptor(i,u).enumerable})),c.push.apply(c,s)}return c}function o(i){for(var l=1;l<arguments.length;l++){var c=arguments[l]!=null?arguments[l]:{};l%2?n(Object(c),!0).forEach(function(s){r(i,s,c[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(c)):n(Object(c)).forEach(function(s){Object.defineProperty(i,s,Object.getOwnPropertyDescriptor(c,s))})}return i}function r(i,l,c){return(l=function(s){var u=function(h,f){if(typeof h!="object"||h===null)return h;var p=h[Symbol.toPrimitive];if(p!==void 0){var m=p.call(h,f);if(typeof m!="object")return m;throw new TypeError("@@toPrimitive must return a primitive value.")}return(f==="string"?String:Number)(h)}(s,"string");return typeof u=="symbol"?u:String(u)}(l))in i?Object.defineProperty(i,l,{value:c,enumerable:!0,configurable:!0,writable:!0}):i[l]=c,i}return Nc}var Qf,e8,Ma={};function mb(){if(Qf)return Ma;Qf=1,Ma.__esModule=!0,Ma.resizableProps=void 0;var e,t=(e=$s())&&e.__esModule?e:{default:e};fb();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,c=r[0];return c.axis==="both"||c.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,c=r[0];return c.axis==="both"||c.axis==="x"?(l=t.default.number).isRequired.apply(l,r):t.default.number.apply(t.default,r)}};return Ma.resizableProps=n,Ma}function gb(){if(e8)return ka;e8=1,ka.__esModule=!0,ka.default=void 0;var e=function(p,m){if(p&&p.__esModule)return p;if(p===null||typeof p!="object"&&typeof p!="function")return{default:p};var g=i(m);if(g&&g.has(p))return g.get(p);var x={},y=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var w in p)if(w!=="default"&&Object.prototype.hasOwnProperty.call(p,w)){var b=y?Object.getOwnPropertyDescriptor(p,w):null;b&&(b.get||b.set)?Object.defineProperty(x,w,b):x[w]=p[w]}return x.default=p,g&&g.set(p,x),x}(d),t=fb(),n=bD(),o=mb(),r=["children","className","draggableOpts","width","height","handle","handleSize","lockAspectRatio","axis","minConstraints","maxConstraints","onResize","onResizeStop","onResizeStart","resizeHandles","transformScale"];function i(p){if(typeof WeakMap!="function")return null;var m=new WeakMap,g=new WeakMap;return(i=function(x){return x?g:m})(p)}function l(){return l=Object.assign?Object.assign.bind():function(p){for(var m=1;m<arguments.length;m++){var g=arguments[m];for(var x in g)Object.prototype.hasOwnProperty.call(g,x)&&(p[x]=g[x])}return p},l.apply(this,arguments)}function c(p,m){var g=Object.keys(p);if(Object.getOwnPropertySymbols){var x=Object.getOwnPropertySymbols(p);m&&(x=x.filter(function(y){return Object.getOwnPropertyDescriptor(p,y).enumerable})),g.push.apply(g,x)}return g}function s(p){for(var m=1;m<arguments.length;m++){var g=arguments[m]!=null?arguments[m]:{};m%2?c(Object(g),!0).forEach(function(x){u(p,x,g[x])}):Object.getOwnPropertyDescriptors?Object.defineProperties(p,Object.getOwnPropertyDescriptors(g)):c(Object(g)).forEach(function(x){Object.defineProperty(p,x,Object.getOwnPropertyDescriptor(g,x))})}return p}function u(p,m,g){return(m=function(x){var y=function(w,b){if(typeof w!="object"||w===null)return w;var C=w[Symbol.toPrimitive];if(C!==void 0){var _=C.call(w,b);if(typeof _!="object")return _;throw new TypeError("@@toPrimitive must return a primitive value.")}return(b==="string"?String:Number)(w)}(x,"string");return typeof y=="symbol"?y:String(y)}(m))in p?Object.defineProperty(p,m,{value:g,enumerable:!0,configurable:!0,writable:!0}):p[m]=g,p}function h(p,m){return h=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(g,x){return g.__proto__=x,g},h(p,m)}var f=function(p){var m,g;function x(){for(var w,b=arguments.length,C=new Array(b),_=0;_<b;_++)C[_]=arguments[_];return(w=p.call.apply(p,[this].concat(C))||this).handleRefs={},w.lastHandleRect=null,w.slack=null,w}g=p,(m=x).prototype=Object.create(g.prototype),m.prototype.constructor=m,h(m,g);var y=x.prototype;return y.componentWillUnmount=function(){this.resetData()},y.resetData=function(){this.lastHandleRect=this.slack=null},y.runConstraints=function(w,b){var C=this.props,_=C.minConstraints,E=C.maxConstraints,M=C.lockAspectRatio;if(!_&&!E&&!M)return[w,b];if(M){var j=this.props.width/this.props.height,F=w-this.props.width,k=b-this.props.height;Math.abs(F)>Math.abs(k*j)?b=w/j:w=b*j}var O=w,S=b,v=this.slack||[0,0],I=v[0],T=v[1];return w+=I,b+=T,_&&(w=Math.max(_[0],w),b=Math.max(_[1],b)),E&&(w=Math.min(E[0],w),b=Math.min(E[1],b)),this.slack=[I+(O-w),T+(S-b)],[w,b]},y.resizeHandler=function(w,b){var C=this;return function(_,E){var M=E.node,j=E.deltaX,F=E.deltaY;w==="onResizeStart"&&C.resetData();var k=(C.props.axis==="both"||C.props.axis==="x")&&b!=="n"&&b!=="s",O=(C.props.axis==="both"||C.props.axis==="y")&&b!=="e"&&b!=="w";if(k||O){var S=b[0],v=b[b.length-1],I=M.getBoundingClientRect();C.lastHandleRect!=null&&(v==="w"&&(j+=I.left-C.lastHandleRect.left),S==="n"&&(F+=I.top-C.lastHandleRect.top)),C.lastHandleRect=I,v==="w"&&(j=-j),S==="n"&&(F=-F);var T=C.props.width+(k?j/C.props.transformScale:0),R=C.props.height+(O?F/C.props.transformScale:0),A=C.runConstraints(T,R);T=A[0],R=A[1];var D=T!==C.props.width||R!==C.props.height,L=typeof C.props[w]=="function"?C.props[w]:null;L&&!(w==="onResize"&&!D)&&(_.persist==null||_.persist(),L(_,{node:M,size:{width:T,height:R},handle:b})),w==="onResizeStop"&&C.resetData()}}},y.renderResizeHandle=function(w,b){var C=this.props.handle;if(!C)return e.createElement("span",{className:"react-resizable-handle react-resizable-handle-"+w,ref:b});if(typeof C=="function")return C(w,b);var _=s({ref:b},typeof C.type=="string"?{}:{handleAxis:w});return e.cloneElement(C,_)},y.render=function(){var w=this,b=this.props,C=b.children,_=b.className,E=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 M=b.resizeHandles;b.transformScale;var j=function(F,k){if(F==null)return{};var O,S,v={},I=Object.keys(F);for(S=0;S<I.length;S++)O=I[S],k.indexOf(O)>=0||(v[O]=F[O]);return v}(b,r);return(0,n.cloneElement)(C,s(s({},j),{},{className:(_?_+" ":"")+"react-resizable",children:[].concat(C.props.children,M.map(function(F){var k,O=(k=w.handleRefs[F])!=null?k:w.handleRefs[F]=e.createRef();return e.createElement(t.DraggableCore,l({},E,{nodeRef:O,key:"resizableHandle-"+F,onStop:w.resizeHandler("onResizeStop",F),onStart:w.resizeHandler("onResizeStart",F),onDrag:w.resizeHandler("onResize",F)}),w.renderResizeHandle(F,O))}))}))},x}(e.Component);return ka.default=f,f.propTypes=o.resizableProps,f.defaultProps={axis:"both",handleSize:[20,20],lockAspectRatio:!1,minConstraints:[20,20],maxConstraints:[1/0,1/0],resizeHandles:["se"],transformScale:1},ka}var t8,n8,Ra={};function wD(){if(t8)return Ra;t8=1,Ra.__esModule=!0,Ra.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={},w=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var b in m)if(b!=="default"&&Object.prototype.hasOwnProperty.call(m,b)){var C=w?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}(d),t=i($s()),n=i(gb()),o=mb(),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 c(){return c=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},c.apply(this,arguments)}function s(m,g){var x=Object.keys(m);if(Object.getOwnPropertySymbols){var y=Object.getOwnPropertySymbols(m);g&&(y=y.filter(function(w){return Object.getOwnPropertyDescriptor(m,w).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?s(Object(x),!0).forEach(function(y){h(m,y,x[y])}):Object.getOwnPropertyDescriptors?Object.defineProperties(m,Object.getOwnPropertyDescriptors(x)):s(Object(x)).forEach(function(y){Object.defineProperty(m,y,Object.getOwnPropertyDescriptor(x,y))})}return m}function h(m,g,x){return(g=function(y){var w=function(b,C){if(typeof b!="object"||b===null)return b;var _=b[Symbol.toPrimitive];if(_!==void 0){var E=_.call(b,C);if(typeof E!="object")return E;throw new TypeError("@@toPrimitive must return a primitive value.")}return(C==="string"?String:Number)(b)}(y,"string");return typeof w=="symbol"?w:String(w)}(g))in m?Object.defineProperty(m,g,{value:x,enumerable:!0,configurable:!0,writable:!0}):m[g]=x,m}function f(m,g){return f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(x,y){return x.__proto__=y,x},f(m,g)}var p=function(m){var g,x;function y(){for(var w,b=arguments.length,C=new Array(b),_=0;_<b;_++)C[_]=arguments[_];return(w=m.call.apply(m,[this].concat(C))||this).state={width:w.props.width,height:w.props.height,propsWidth:w.props.width,propsHeight:w.props.height},w.onResize=function(E,M){var j=M.size;w.props.onResize?(E.persist==null||E.persist(),w.setState(j,function(){return w.props.onResize&&w.props.onResize(E,M)})):w.setState(j)},w}return x=m,(g=y).prototype=Object.create(x.prototype),g.prototype.constructor=g,f(g,x),y.getDerivedStateFromProps=function(w,b){return b.propsWidth!==w.width||b.propsHeight!==w.height?{width:w.width,height:w.height,propsWidth:w.width,propsHeight:w.height}:null},y.prototype.render=function(){var w=this.props,b=w.handle,C=w.handleSize;w.onResize;var _=w.onResizeStart,E=w.onResizeStop,M=w.draggableOpts,j=w.minConstraints,F=w.maxConstraints,k=w.lockAspectRatio,O=w.axis;w.width,w.height;var S=w.resizeHandles,v=w.style,I=w.transformScale,T=function(R,A){if(R==null)return{};var D,L,V={},W=Object.keys(R);for(L=0;L<W.length;L++)D=W[L],A.indexOf(D)>=0||(V[D]=R[D]);return V}(w,r);return e.createElement(n.default,{axis:O,draggableOpts:M,handle:b,handleSize:C,height:this.state.height,lockAspectRatio:k,maxConstraints:F,minConstraints:j,onResizeStart:_,onResize:this.onResize,onResizeStop:E,resizeHandles:S,transformScale:I,width:this.state.width},e.createElement("div",c({},T,{style:u(u({},v),{},{width:this.state.width+"px",height:this.state.height+"px"})})))},y}(e.Component);return Ra.default=p,p.propTypes=u(u({},o.resizableProps),{},{children:t.default.element}),Ra}var vD=(n8||(n8=1,Fc.exports=function(){throw new Error("Don't instantiate Resizable directly! Use require('react-resizable').Resizable")},Fc.exports.Resizable=gb().default,Fc.exports.ResizableBox=wD().default),Fc.exports);function Gu(e,t){if(typeof e=="function")return e(t);e&&(e.current=t)}var Zs=parseInt(d.version.split(".")[0],10)>=19?function(e){return t=>{const n=[];for(const o of e){const r=Gu(o,t),i=typeof r=="function";n.push(i?r:()=>Gu(o,null))}return()=>{for(const o of n)o()}}}:function(e){return t=>{for(const n of e)Gu(n,t)}};const G3=d.memo(d.forwardRef((e,t)=>{const{disabled:n,names:o,workbook:r,restoreFocus:i,readonly:l=!1,disabled:c=!1,commandPopupButtonProps:s,sx:u,notifier:h,...f}=e,[p,m]=d.useState(null),[g,x]=d.useState(()=>r.getSelectedRanges().getCoords()),[y,w]=d.useState(!1),{reference:b}=xi({parentFloat:s?.parentFloat}),[C,_]=d.useState(()=>l||!r.getProtection().isStructureAllowed()),E=()=>p?.text??"",[M,j]=d.useState(E),F=et(()=>{if(b?.closeAll(),!M){const H=E();return j(E()),H}if(E()===M)return M;const U=M.trim().toLowerCase();if(U==="r"||U==="c")return M;try{const H=r.getRanges(M);if(H)return H.toString()}catch{}const X=o.getByName(M);if(X&&X.getRanges())return M;let ee=null;try{const H=r.getRanges(M),$=H.getCoords().map(z=>({$colEnd:!0,$rowEnd:!0,$colStart:!0,$rowStart:!0,...z}));ee=r.getRanges($)}catch{}if(!ee){const H=r.getSelectedRanges().getCoords().map($=>({$colEnd:!0,$rowEnd:!0,$colStart:!0,$rowStart:!0,...$}));ee=r.getRanges(H)}try{let H=o.getByName(M);C||H||(H=o.addReference(M,ee)),H&&m({text:H.getName()})}catch(H){j(E()),h.showMessage?.(H.message,{type:A0})}return null},[M,o,b,C]),k=et(()=>{if(r.isClosed())return;const U=[];for(let H=0;H<g.length;H++){const $=g[H];U.push({$colEnd:!0,$rowEnd:!0,$colStart:!0,$rowStart:!0,...$})}let X=null;try{X=o.lookupByRanges(U)}catch{}let ee=null;ee=X?.length>0?X[0].getName():r.getSelectedSheet().getSelectedRange().toString(),m({text:ee})},[r,g]),[O,S]=d.useState(()=>o?.search()??null);Zt(o,{onCollectionChange(U){S(o.search()),k()},onClose(U){S([])}}),d.useEffect(()=>{j(E())},[p,g]);const[v,I]=d.useState(r?.getSelectedSheet());Zt(r,{onProtectionChange:U=>{_(l||!U.getProtection().isStructureAllowed())},onSheetsChange:U=>{I(U?.getSelectedSheet())},onViewChange(U){I(U?.getSelectedSheet())}});const[T,R]=d.useState(null),A=et(N.CommonUtils.debounce(k,T?320:0),[]);Zt(v.getSelection(),{onChange:()=>{x(U=>{const X=r.getSelectedRanges().getCoords();return N.CoordUtils.isEqualRangesArrays(X,U)?U:X})},onAdjustingChange:U=>{R(U.getAdjusting())}}),d.useEffect(()=>{if(T){const U=r.getSelectedRange(),X=U.getRowCount(),ee=U.getColumnCount();let H=`${X}R x ${ee}C`;if(H.length>17&&(H=`${X}x${ee}`),X>1||ee>1)return void m({text:H,fontStyle:"italic",justifyContent:"center"})}m({text:r.getSelectedSheet().getSelectedRange().toString()}),A()},[g,r,T]);const D=d.useRef(null),L=d.useCallback(U=>{const{onMouseDown:X,onMouseUp:ee,...H}=U;return a.jsx(B.IconButton,{...H,sx:{...H?.sx,display:"flex",flex:"1 1 100%"},disableRipple:!0,children:a.jsx(B.Input,{inputMode:"text",inputProps:{tabIndex:0,name:"input-named-range",maxLength:255,className:"input",autoFocus:!1,spellCheck:!1,autoComplete:"off",ref:D},sx:{"&::before":{borderBottom:"1px solid transparent"},"&:hover:not(.Mui-disabled):not(.Mui-focused):not(.Mui-error):before":{borderBottom:$=>`1px solid ${$.palette.text.icon??$.palette.action.active}`},"&:hover:not(.Mui-disabled):not(.Mui-error):before":{borderBottom:$=>`1px solid ${$.palette.primary.main}`},"::after":{borderBottom:$=>`1px solid ${$.palette.primary.main}`},paddingTop:"0px",paddingBottom:"0px",fontSize:11*N.IFont.getDeviceScale(),fontStyle:p?.fontStyle,paddingLeft:$=>$.spacing(.75),paddingRight:$=>$.spacing(.75),boxShadow:"none",flex:"1",color:$=>$.palette.text.secondary,input:{padding:"0",textAlign:"left","&:hover:not(.Mui-disabled):not(.Mui-error)":{color:$=>$.palette.text.primary},"&:focus:not(.Mui-disabled):not(.Mui-error)":{color:$=>$.palette.text.primary}}},value:M,onFocus:$=>{$.target?.select()},onKeyDown:$=>{if($.which===Cn.Enter||$.which===Cn.Tab){let z=M;E()!==M&&($.stopPropagation(),$.preventDefault(),z=F()),z?V(z):i?.()}else if($.which===Cn.Escape)E()!==M?(j(E()),setTimeout(()=>{$.target?.select()},0),$.stopPropagation(),$.preventDefault()):i?.();else if($.which===Cn.Space)return void $.stopPropagation()},onBlur:()=>{j(E())},onChange:$=>{j($.target.value)}})})},[M,p]),V=et(async U=>{try{b?.closeAll();const X=o.lookupByRanges(U)?.[0];X&&await X?.select(),await r.getRanges(U)?.select()}catch(X){h.showMessage?.(X.message,{type:A0})}},[o,h,r]),W=d.useCallback(U=>{setTimeout(()=>{w(!0)},0);const X={variant:Vt.Menuitem,parentFloat:U.floatReference,commandHook:{...s?.commandHook,beforeExecute:(Q,Y)=>(b?.closeAll(),s?.commandHook?.beforeExecute?.(Q,Y))},scope:s?.scope,commands:s?.commands};let ee=o.search({scope:r?.getSelectedSheet().getName()});ee=ee.sort((Q,Y)=>Q.getType()===Y.getType()?Q.getName().localeCompare(Y.getName()):Q.getType()==="range"?-1:1);const H=C?null:["editNamedReference","deleteNamedReference"],$=C?null:["editTable",null,"convertTableToRange","deleteTable"],z=[],q=ee.length;for(let Q=0;Q<q;Q++){const Y=ee[Q],te=Y.getRanges();if(!te||Y.isHidden())continue;const ie=Y.getType();ie!==ee[Q-1]?.getType()&&(Q>0&&z.push(a.jsx(Mt,{orientation:"horizontal"},`type-divider-${z.length}`)),z.push(a.jsx(zl,{variant:"subtitle2",sx:{paddingLeft:"16px"},children:Y.getType()==="reference"?"Ranges":"Tables"},`type-header-${z.length}`))),ie==="reference"?z.push(d.createElement(gi,{...X,key:"named-"+z.length,popupCommandKeys:H,popupScope:"namedItem",scope:"namedItem",commandState:Y,commands:s?.commands,label:Y.getName(),quickCommand:"selectNamed",disabled:!Y.getRanges()||c,icon:fe=>{switch(fe.key()){case"editNamedReference":return ge(a.jsx(b_,{}));case"deleteNamedReference":return ge(a.jsx(w_,{}));default:return ge(a.jsx(x_,{}))}}})):ie==="table"&&z.push(d.createElement(gi,{...X,key:"namedItem-"+z.length,popupCommandKeys:$,popupScope:"namedItem",scope:"namedItem",commands:s?.commands,commandState:Y,label:Y.getName(),quickCommand:"selectNamed",disabled:!te||c,icon:fe=>(fe.key(),ge(a.jsx(ms,{})))}))}const Z=a.jsxs(B.Box,{sx:{display:"flex",flexDirection:"column",flex:"1 1 100%",overflow:"hidden"},...f,children:[C?null:a.jsx(je,{...X,scope:"namedItem",command:s?.commands.getCommand("addNamedReference"),icon:ge(a.jsx(y_,{}))}),z&&z.length>0?a.jsxs(a.Fragment,{children:[C?null:a.jsx(Mt,{orientation:"horizontal"}),a.jsx(B.Box,{sx:{overflow:"auto",flex:"1 1 100%"},children:z})]}):null]});return _n({...U,children:Z})},[r,O,o,p,C]),P=Ii(t,()=>({focus(U){D.current?.focus(U)}}),[]);return a.jsx(B.Box,{className:"outer",sx:{minWidth:120,flex:"1 1 100%",display:"flex",alignItems:"center",justifyContent:"start",...u},ref:Zs([P,t]),...f,children:a.jsx(ii,{className:"outer-button",sx:{display:"flex",flex:"1 1 100%","& .tooltip-wrapper":{display:"flex",flex:"1 1 100%",width:"100%",height:"27px"},...u},buttonProps:{sx:{backgroundColor:U=>U.palette.background.paper,backgroundImage:`linear-gradient(${ht.alpha("#fff",jn(5))}, ${ht.alpha("#fff",jn(5))})`}},tabIndex:-1,outlined:{color:U=>n?U.palette.action.disabled:ht.alpha(U.palette.divider,.2)},parentFloat:b,createPopupPanel:W,onPopupOpen:()=>w(!0),onPopupClose:()=>w(!1),createTooltip:({children:U},X)=>a.jsx(Uo,{title:X||y?"":"Name Box",disabled:X,leaveDelay:0,sx:{opacity:X||y?0:1},children:U}),createQuickButton:L})})}));G3.displayName="NamedCollectionEditor";const SD=(e,t)=>a.jsx(G3,{ref:t,...e}),K3=d.memo(d.forwardRef((e,t)=>{const{sx:n,workbook:o,sheetElement:r,gridStyle:i,showNamedCollectionEditor:l=!0,NamedCollectionEditorProps:c,renderNamedCollectionEditor:s=SD,disabled:u,commands:h,...f}=e,[p,m]=d.useState(o?.getSelectedSheet());Zt(o,{onSheetsChange:$=>{m($?.getSelectedSheet())},onViewChange($){m($?.getSelectedSheet())}});const[g,x]=d.useState(p.getSelection().getCoords().cell),y=p.getRange(g).getCell(),w=u||!y.isEditAllowed(),b=d.useRef(null),C=d.useMemo(()=>({fontSize:11}),[]);Zt(p.getSelection(),{onChange:()=>{x(p.getSelection().getCoords().cell)}}),Zt(p,{onProtectionChange(){x(p.getSelection().getCoords().cell)}});const _=b.current?.getLineHeight()??20,[E,M]=d.useState(_),[j,F]=d.useState(5),[k,O]=d.useState(1),S=et(($,{size:z})=>{$.preventDefault(),$.stopPropagation();const q=Math.floor(z.height/_);M(q*_+1),q>1&&F(q)},[_]),v=et(($,{size:z})=>{const q=Math.floor(z.height/_);O(q)},[_]),I=dd(),T=I.getMode();let R=null;T?.key==="edit"&&(R=T.args?.stateAndCoords);const A=d.useMemo(()=>{let $=R?.editState;return $||($=Zx(()=>p.getRange(g).getCell())),a.jsx(B.Box,{sx:{display:"flex",flex:"1 1 100%",flexDirection:"row",gap:4},children:a.jsx(qx,{ref:b,activeCoords:g,sheet:p,onFocus:()=>{r?.startEdit({autoFocus:!1,editMode:!0,cell:g})},defaultTextStyle:C,useRichStyling:!1,disabled:w,onChangeEdit:z=>{if(z.dirty!==void 0){const q={sheet:p,coords:g,editState:z};I.setMode(Z=>({...Z,args:{...Z?.args,stateAndCoords:q}}))}},editState:$,commands:h,onCancelEdit:()=>{r?.cancelEdit(),r?.focus()},onSubmitEdit:()=>{r?.submitEdit(),r?.focus()},linesVisible:k})})},[p,R,g,k,r]),D=d.useRef(null),L=d.useMemo(()=>l?s({names:o.getNames(),workbook:o,...c},D):null,[s,c,l,p,o,w]),V=d.useMemo(()=>a.jsxs(B.Paper,{elevation:0,sx:{display:"flex",alignItems:"center",userSelect:"none",flexGrow:0,backgroundImage:`linear-gradient(${ht.alpha("#fff",jn(5))}, ${ht.alpha("#fff",jn(5))})`,border:$=>`solid ${w?$.palette.action.disabled:ht.alpha($.palette.divider,.2)} 1px`},children:[a.jsx(Tr,{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:ge(a.jsx(m_,{})),tooltipProps:{label:"Cancel",simple:!0},disabled:w||R===null,onMouseDown:$=>{$.button===0&&$.preventDefault()},onClick:()=>{r.cancelEdit()}}),a.jsx(Tr,{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:ge(a.jsx(g_,{})),tooltipProps:{label:"Enter",simple:!0},disabled:w||R===null,onMouseDown:$=>{$.button===0&&$.preventDefault()},onClick:()=>{r.submitEdit()}}),a.jsx(Tr,{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:ge(a.jsx(B_,{sx:{transform:"scale(0.85)"}})),tooltipProps:{label:"Insert Function",simple:!0},onMouseDown:$=>{$.button===0&&$.preventDefault()}})]}),[w,R]),W=Zr(),[P,U]=d.useState(!1),X=d.useMemo(()=>a.jsxs(B.Box,{sx:{display:"flex",flexDirection:"row",flex:"1 1 100%",gap:$=>$.spacing(.5),alignItems:"start"},children:[V,a.jsxs(B.Paper,{elevation:0,sx:{display:"flex",flexDirection:"row",flex:"1 1 100%",position:"relative",fontFamily:$=>$.typography.fontFamily,fontSize:11*N.IFont.getDeviceScale(),"& .editor-placement":{top:"2px !important"},boxShadow:"none",borderRadius:$=>`${$.shape.borderRadius}px`,backgroundImage:`linear-gradient(${ht.alpha("#fff",jn(5))}, ${ht.alpha("#fff",jn(5))})`,border:$=>`solid ${w?$.palette.action.disabled:ht.alpha($.palette.divider,.2)} 1px`,"& textarea":{color:$=>w?`${$.palette.text.disabled} !important`:$.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:()=>U(!0),onBlur:()=>U(!1),onMouseDown:$=>{$.target?.classList.contains("react-resizable-handle")&&$.preventDefault()},children:[a.jsx(B.Box,{className:"formula-editor",sx:{display:"flex",flexDirection:"row",flex:"1 1 100%",position:"relative",alignSelf:"baseline",paddingLeft:$=>$.spacing(1),paddingRight:$=>$.spacing(1)},children:a.jsx(vD.ResizableBox,{height:E,draggableOpts:{grid:[_,_]},minConstraints:[_,_],maxConstraints:[15*_,15*_],onResize:v,onResizeStop:S,resizeHandles:["s"],axis:"y",style:{display:"flex",flexDirection:"column",flex:"1 1 100%",overflow:"hidden"},children:A})}),a.jsx(Tr,{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:ge(k>1?a.jsx(gn.ExpandLess,{}):a.jsx(gn.ExpandMore,{})),tooltipProps:{label:(k>1?"Collapse":"Expand")+" Formula Bar",simple:!0},onMouseDown:$=>{$.button===0&&$.preventDefault()},onClick:()=>{const $=k>1?1:j;M($*_+1),O($)}}),a.jsx(B.Box,{sx:{position:"absolute",width:"100%",height:"2px",bottom:"0",willChange:"opacity",transition:"opacity 60ms ease-in",opacity:P?1:0,borderBottomWidth:"2px",borderBottomStyle:"solid",borderBottomColor:$=>$.palette.primary.main,borderRadius:$=>`${$.shape.borderRadius}px`}})]})]}),[V,A,P,k,_]),ee=d.useMemo(()=>L||X?!L&&X?X:L&&!X?L:a.jsx(a.Fragment,{children:a.jsx(S2,{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='${W.palette.text.icon??W.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:L,elementAfter:X})}):null,[L,X]),H=Ii(t,()=>({isFormulaBarElement:()=>!0,getNamedCollectionEditorElement:()=>D.current}),[]);return a.jsx(B.Box,{sx:{display:"flex",flexDirection:"row",gap:$=>$.spacing(.5),...n},ref:H,...f,children:ee})}));K3.displayName="FormulaBar";const X3=d.memo(d.forwardRef((e,t)=>{const{filter:n,commands:o,disabled:r,sx:i,floatReference:l,...c}=e,s=d.useMemo(()=>({}),[]),u=d.useMemo(()=>({commandHook:{beforeExecute:(p,m)=>l.closeAll(),onExecute(){},onError(){console.log("onError")}},disabled:r,parentFloat:l}),[r,l]),h=d.useMemo(()=>({...s,...u,variant:Vt.Menuitem}),[s,u]),f=a.jsxs(a.Fragment,{children:[a.jsx(je,{...h,command:o.getCommand("sortAscending"),icon:ge(a.jsx(V2,{}))}),a.jsx(je,{...h,command:o.getCommand("sortDescending"),icon:ge(a.jsx(g9,{}))}),a.jsx(Mt,{orientation:"horizontal"}),a.jsx(je,{...h,command:o.getCommand("autoFilterClear"),icon:ge(a.jsx(e3,{}))}),[]]});return a.jsx(B.Box,{ref:t,sx:{paddingTop:"4px",paddingBottom:"4px",display:"flex",flexDirection:"column",...i},...c,children:f})}));X3.displayName="FilterColumnMenu";const xb=d.memo(d.forwardRef((e,t)=>{const{children:n,className:o,disabled:r,style:i,filter:l,...c}=e,s=Ii(t,()=>({isFilters:()=>!0}),[]);return a.jsx("div",{ref:s,className:Yn("filters",o),style:{position:"relative",display:"flex",flexDirection:"column",alignItems:"center",gap:"8px",...i},...c,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"})]})})}));xb.displayName="Filters";const Y3=d.memo(d.forwardRef((e,t)=>{const{children:n,sheet:o,style:r,className:i,value:l,index:c,editing:s,editable:u,disabled:h,selectedIndex:f,dragging:p,borderColor:m,borderWidth:g,activeColor:x,background:y="white",tabRadius:w=4,gridTheme:b,...C}=e,[_,E]=d.useState(()=>!!o&&o.getProtection().isLocked()),[M,j]=d.useState(()=>o?o.getTabColor():null);Zt(o,{onProtectionChange:()=>{E(o.getProtection().isLocked())},onTabColorChange:()=>{j(o.getTabColor())},onStyleChange:()=>{j(o.getTabColor())}});const F=Zr(),k=f===c;let O=null,S=null;if(M||p){let T=y;M?(S=M.toBlackOrWhite().toCSS(),T=M?.toCSS()):k||(T=F.palette.background.paper),O=a.jsx(B.Box,{sx:{position:"absolute",boxSizing:"border-box",top:"3px",left:"4px",right:"4.5px",bottom:"1.5px",opacity:k?"50%":"100%",borderRadius:"4px",border:R=>k?`${y} solid 1px`:`${R.palette.divider} solid 1px`,background:k&&M?`linear-gradient(0deg, ${T} 0%, transparent)`:T}})}let v=null;typeof m=="string"?v=m:m?.toCSS&&(v=m.toCSS());const I=k?a.jsx(B.Box,{sx:{width:"100%",borderRadius:"4px",minWidth:"4px",height:"2px",backgroundColor:T=>T.palette.primary.main}}):null;return a.jsx(Tg,{theme:k?b??F:F,children:a.jsx(B.Box,{ref:t,className:Yn(i),sx:{...r,display:"flex",flexDirection:"column",minHeight:"0px",fontWeight:k?"700":"400",fontSize:"0.85rem",letterSpacing:"0",lineHeight:"1",textTransform:"none",minWidth:"unset",cursor:p?"grabbing":void 0},...C,children:a.jsx(uv,{style:{flex:"1 1 100%",display:"flex",flexDirection:"row"},radius:w,strokeColor:k?v:"transparent",children:a.jsx(B.Button,{sx:{textTransform:"none",borderRadius:"0px",minHeight:"0px",paddingLeft:"11px",paddingRight:"12px",paddingTop:"3px",flex:"1 1 100%",paddingBottom:"3px",fontWeight:k?"700":"400",fontSize:"0.85rem",letterSpacing:"0",transition:"none",cursor:p?"grabbing":void 0,color:k?"primary":S||"text.secondary",backgroundColor:k?y:"transparent","&:hover:not([disabled])":{backgroundColor:k?y:"transparent"},"& input":{color:T=>`${T.palette.text.primary}`,textAlign:"center",fontWeight:"500"},marginTop:"0px",minWidth:"unset"},disabled:h,disableRipple:s,component:"div",children:a.jsxs(a.Fragment,{children:[O,a.jsxs(B.Box,{sx:{zIndex:"1",display:"flex",flexDirection:"row",alignItems:"center"},children:[a.jsxs(B.Box,{sx:{display:"flex",flexDirection:"column",alignItems:"center",rowGap:"1px",lineHeight:"1",marginTop:k?void 0:"1px"},children:[n,I]}),_?a.jsx(gn.Lock,{sx:{scale:"0.80",marginLeft:"2px",width:"22px",height:"22px"},color:"secondary"}):a.jsx(B.Box,{sx:{minHeight:"22px"}})]})]})},l+":"+c)})})})}));Y3.displayName="SheetTab";const J3=d.memo(d.forwardRef((e,t)=>{const{workbook:n,index:o,commands:r,scope:i="sheet",disabled:l,floatReference:c,sx:s,className:u,tabStripRef:h,...f}=e,[p,m]=d.useState(n?.getProtection());Zt(n,{onProtectionChange:b=>{m(b?.getProtection())}});const g=d.useMemo(()=>({}),[]),x=d.useMemo(()=>({commandHook:{beforeExecute:(b,C)=>c.closeAll(),onExecute(){},onError(){console.log("onError")}},scope:i,commandState:o,disabled:l||o===void 0,parentFloat:c}),[l,c]),y=d.useMemo(()=>({...g,...x}),[g,x]),w=a.jsxs(a.Fragment,{children:[a.jsx(je,{command:r.getCommand("addSheet"),commandState:o,...y,variant:Vt.Menuitem}),a.jsx(je,{command:r.getCommand("deleteSheet"),...y,variant:Vt.Menuitem}),a.jsxs(yr,{onMouseDown:b=>{b.button===0&&b.preventDefault()},onMouseUp:()=>{Promise.resolve(c.closeAll()).then(()=>{h?.startEdit(o)})},disabled:l||!p.isStructureAllowed(),parentFloat:c,children:["Rename",i!=="sheet"?" Sheet":""]}),a.jsx(je,{command:r.getCommand("duplicateSheet"),...y,variant:Vt.Menuitem}),a.jsx(je,{command:r?.getCommand("protectionSheetToggle"),...y,variant:Vt.Menuitem,icon:a.jsx(gn.Lock,{})}),a.jsx(Ul,{variant:Vt.Menuitem,command:r.getCommand("formatSheetTabColor"),icon:a.jsx(Q5,{}),panelProps:{disableAlpha:!0,autoColorLabel:"No Tab Color",autoColorPosition:Il.End},parentFloat:c}),a.jsx(Mt,{orientation:"horizontal"}),a.jsx(je,{command:r.getCommand("hideSheet"),...y,variant:Vt.Menuitem,icon:ge(a.jsx(y9,{}))})]});return a.jsx(B.Box,{ref:t,className:Yn("menu",u),sx:{...s},...f,children:w})}));J3.displayName="SheetTabMenu";const Q3=d.memo(d.forwardRef((e,t)=>{const{workbook:n,gridStyle:o,floatReference:r,closeFloatAll:i,className:l,...c}=e,[s,u]=d.useState(n?.getSheets().search()),[h,f]=d.useState(n?.getProtection());Zt(n,{onSheetsChange:m=>{u(m.getSheets().search())},onProtectionChange:m=>{f(m?.getProtection())}});const p=d.useMemo(()=>{const m=[],g=n.getSheets().search({visibility:N.ISheet.Visibility.Hidden}),x=n.getSelectedSheet();for(let y=0;y<g.length;y++){const w=g[y],b=w.getVisibility();if(b===N.ISheet.Visibility.VeryHidden)continue;const C=x===w,_=w.getProtection().isLocked(),E=w.getTabColor(),M=o?.body.fill??"transparent";let j=null,F=null,k=M;E&&(k=E.toCSS(),C||(F=E.toBlackOrWhite().toCSS()),j=a.jsx(B.Box,{sx:{position:"absolute",display:"flex",flexDirection:"column",top:"4px",left:"40px",right:"8px",bottom:"4px",background:C?k:"transparent",borderRadius:"4px",border:`solid 1px ${o.header.edgeStrokeFill}`},children:a.jsx(B.Box,{sx:{flex:"1 1 100%",boxSizing:"content-box",opacity:C||b===N.ISheet.Visibility.Hidden?"50%":"100%",border:S=>C?`${M} solid 1.5px`:`${S.palette.divider} solid 1px`,background:C&&E?`linear-gradient(0deg, ${k} 0%, ${M})`:k,borderRadius:"4px"}})}));let O=null;_&&(O=a.jsx(gn.Lock,{color:"secondary"})),b!==N.ISheet.Visibility.Visible&&(O=ge(a.jsx(y9,{style:{opacity:h.isStructureAllowed()?1:.7},color:"secondary"}))),O&&(O=a.jsx(B.Box,{sx:{display:"flex",flex:"1 1 100%",alignItems:"center",ml:"16px","& *":{lineHeight:"1em",fontSize:"1.3em"}},children:O})),m.push(a.jsx(yr,{disabled:!h.isStructureAllowed()&&b===N.ISheet.Visibility.Hidden,sx:{color:S=>{let v=C?S.palette.primary.main:S.palette.text.secondary;return F&&(v=F),b===N.ISheet.Visibility.Hidden&&(v=ht.alpha(v,S.palette.action.disabledOpacity)),v},borderLeft:S=>`${C?S.palette.primary.main:"transparent"} solid 2px`,paddingLeft:"4px",fontWeight:C?"700":"400","&:hover":{fontWeight:"700"}},icon:C?a.jsx(Vs,{}):void 0,onMouseDown:S=>S.preventDefault(),onMouseUp:()=>{Promise.resolve(r.closeAll()).then(()=>{try{w.select()}catch(S){console.error(S)}})},children:a.jsxs(a.Fragment,{children:[j,a.jsxs(B.Box,{sx:{paddingRight:"0px",paddingLeft:"4px",display:"flex",flexDirection:"row",flex:"1 1 100%",overflow:"hidden",alignItems:"center",zIndex:2},children:[a.jsxs(B.Box,{className:"sheet-name",sx:{display:"flex",flexDirection:"column",paddingLeft:"8px",paddingRight:"8px",alignItems:"center"},children:[w.getName(),a.jsx(B.Box,{sx:{height:"0px",opacity:"0",fontWeight:"700"},children:w.getName()})]}),O]})]})},""+y))}return m},[n,h,s,r,o]);return a.jsx(B.Box,{ref:t,className:Yn("menu",l),...c,children:p})}));Q3.displayName="SheetsAllMenu";let Vc=!1,yb=!1,y0=null;const o8=async e=>{const t=await N.LicenseManager.getDetails();if(yb||t.isEval()){try{const n=top??window;n.SheetXL||(n.SheetXL=Object.freeze({getSelectedWorkbook:()=>y0?.getWorkbook(),getSelectedSheet:()=>y0?.getWorkbook().getSelectedSheet(),getSelectedRange:()=>y0?.getWorkbook().getSelectedRange(),getRange:o=>y0?.getWorkbook().getRange(o),getSelectedWorkbookElement:()=>y0,getLicenseManager:()=>N.LicenseManager,moreExamples:()=>{console.table({"SheetXL.getRange('Sheet1!e5:f6').setValues([[110, 220], [210, 220]])":{Summary:"Set an array of values."},"SheetXL.getRange('a1:e5').setValue(100)":{Summary:"Set a single repeating value to a range."},"SheetXL.getRange('Sheet1!e5:f6').getValues()":{Summary:"Get the values as a 2d array (see forEach)."},"SheetXL.getSelectedRange().setValue(new Date())":{Summary:"Set current date/time using Javascript Date."},"SheetXL.getSelectedRange().setValue('10/23/95')":{Summary:"Set current date/time using string."},"SheetXL.getSelectedSheet().getUsedRange().getValues()":{Summary:"Get all of the values in a sheet."},"SheetXL.getSelectedRange().updateStyle({ fill: 'accent4' })":{Summary:"Set fill to theme color 4."},"SheetXL.getRange('E:L').updateStyle({ fill: 'accent1 lumMod 90 lumOff 40' })":{Summary:"Set some columns to a modified theme color."},"SheetXL.getRange('e5:f10').updateStyle({ style: { border: 'double blue' }})":{Summary:"Set border."},"SheetXL.getCell().getStyle().fill.toCSS()":{Summary:"Get the fill style as css for the selected cell."},"SheetXL.getRange('a1:a3').autoFill('a1:a7')":{Summary:"Autofill down."},"SheetXL.getRange('e7:i9').merge({ orientation: 'rows' })":{Summary:"Merge cells horizontally."},"SheetXL.getSelectedRange().sort({ ascending: false, hasHeader: false })":{Summary:"Sort selected cells ascending with a header."},"SheetXL.getSelectedRange().clear('all')":{Summary:"Clear the current range a different way."},"SheetXL.getSelectedSheet().getTables().add('b2:e9')":{Summary:"Create a 4x8 table at b2 for current sheet."},"SheetXL.getRange('a1:c3').copyFrom('e1:g3')":{Summary:"Copy cells."},"SheetXL.getRange('c:t').getColumnHeaders().setSize(30)":{Summary:"Set the size of columns to 30 pixels."},"SheetXL.getRange('2:3').delete()":{Summary:"Remove rows 2 and 3 and shift up."},"SheetXL.getSelectedSheet().getMovables().addImage('https://www.sheetxl.com/logo-text.svg')":{Summary:"Add an image."},"SheetXL.getSelectedSheet().getMovables().addImage('https://www.sheetxl.com/logo-text.svg', { bounds: { height: 100 } })":{Summary:"Add an image of height 100."},"SheetXL.getSelectedRange().doBatch(() => { SheetXL.getSelectedRange().setValue(1.50).updateStyle({ numberFormat: '0%' }).autoFit(); }, 'Enter 150%')":{Summary:"Set value to 100 and numberformat to 0% as a single."},"SheetXL.getSelectedRange().doBatch(() => { SheetXL.getSelectedRange().setValue('Remind Me Later').updateStyle({ namedStyle: 'Note'}).autoFit(); }, 'Set Reminder')":{Summary:"Set a value and style to Note style and autofit text."},"SheetXL.getSelectedWorkbook().getNames().addReference('Small_Range', 'A2:E5');":{Summary:"Add a named range."},"SheetXL.getSelectedWorkbook().getRange('a1:e5').addListener((e) => { console.log('got an update for:', e.getSource().toString()) })":{Summary:"Listen for updates at a range."}})}}))}catch(n){n instanceof DOMException||console.error(n),Vc=!0}if(y0!==e&&(y0=e,!Vc))try{Vc=!0,(top??window).SheetXL&&(await N.LicenseManager._validate(!0),N.LicenseManager.wasPrinted()&&(()=>{ur.consoleWithNoSource(`%cTip: You can access the API directly in the console.
|
|
93
|
+
Try
|
|
94
|
+
%c>%c SheetXL.getRange('b2:c3').setValues([[42, 'Hello Word'], [new Date(), true]]) %c
|
|
95
|
+
>%c SheetXL.moreExamples()`,"color:#ffa726;","font-family:monospace;color:#1976d2;font-size:12px;","font-family:monospace;","font-family:monospace;color:#1976d2;font-size:12px;","font-family:monospace;"),Vc=!0;const n=document.getElementById("openEditorLink");n&&n.addEventListener("click",o=>{o.preventDefault(),console.log("openScriptEditor called from console")})})())}catch(n){n instanceof DOMException||console.error(n)}}};var CD=function(){},bb=typeof window<"u",_D=bb?d.useLayoutEffect:d.useEffect,r8={x:0,y:0,width:0,height:0,top:0,left:0,bottom:0,right:0};const ql=bb&&window.ResizeObserver!==void 0?function(){var e=d.useState(null),t=e[0],n=e[1],o=d.useState(r8),r=o[0],i=o[1],l=d.useMemo(function(){return new window.ResizeObserver(function(c){if(c[0]){var s=c[0].contentRect,u=s.x,h=s.y,f=s.width,p=s.height,m=s.top,g=s.left,x=s.bottom,y=s.right;i({x:u,y:h,width:f,height:p,top:m,left:g,bottom:x,right:y})}})},[]);return _D(function(){if(t)return l.observe(t),function(){l.disconnect()}},[t]),[n,r]}:function(){return[CD,r8]};function rd(){return rd=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},rd.apply(null,arguments)}function eh(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 id(e,t){return id=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,o){return n.__proto__=o,n},id(e,t)}function wb(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,id(e,t)}function i8(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}const l8=!1,vb=d.createContext(null);var Sb=function(e){return e.scrollTop},Ka="unmounted",w0="exited",v0="entering",ul="entered",R5="exiting",_i=function(e){function t(o,r){var i;i=e.call(this,o,r)||this;var l,c=r&&!r.isMounting?o.enter:o.appear;return i.appearStatus=null,o.in?c?(l=w0,i.appearStatus=v0):l=ul:l=o.unmountOnExit||o.mountOnEnter?Ka:w0,i.state={status:l},i.nextCallback=null,i}wb(t,e),t.getDerivedStateFromProps=function(o,r){return o.in&&r.status===Ka?{status:w0}: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!==v0&&i!==ul&&(r=v0):i!==v0&&i!==ul||(r=R5)}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===v0){if(this.props.unmountOnExit||this.props.mountOnEnter){var i=this.props.nodeRef?this.props.nodeRef.current:ao.findDOMNode(this);i&&Sb(i)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===w0&&this.setState({status:Ka})},n.performEnter=function(o){var r=this,i=this.props.enter,l=this.context?this.context.isMounting:o,c=this.props.nodeRef?[l]:[ao.findDOMNode(this),l],s=c[0],u=c[1],h=this.getTimeouts(),f=l?h.appear:h.enter;!o&&!i||l8?this.safeSetState({status:ul},function(){r.props.onEntered(s)}):(this.props.onEnter(s,u),this.safeSetState({status:v0},function(){r.props.onEntering(s,u),r.onTransitionEnd(f,function(){r.safeSetState({status:ul},function(){r.props.onEntered(s,u)})})}))},n.performExit=function(){var o=this,r=this.props.exit,i=this.getTimeouts(),l=this.props.nodeRef?void 0:ao.findDOMNode(this);r&&!l8?(this.props.onExit(l),this.safeSetState({status:R5},function(){o.props.onExiting(l),o.onTransitionEnd(i.exit,function(){o.safeSetState({status:w0},function(){o.props.onExited(l)})})})):this.safeSetState({status:w0},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:ao.findDOMNode(this),l=o==null&&!this.props.addEndListener;if(i&&!l){if(this.props.addEndListener){var c=this.props.nodeRef?[this.nextCallback]:[i,this.nextCallback],s=c[0],u=c[1];this.props.addEndListener(s,u)}o!=null&&setTimeout(this.nextCallback,o)}else setTimeout(this.nextCallback,0)},n.render=function(){var o=this.state.status;if(o===Ka)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=eh(r,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return d.createElement(vb.Provider,{value:null},typeof i=="function"?i(o,l):d.cloneElement(d.Children.only(i),l))},t}(d.Component);function il(){}_i.contextType=vb,_i.propTypes={},_i.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:il,onEntering:il,onEntered:il,onExit:il,onExiting:il,onExited:il},_i.UNMOUNTED=Ka,_i.EXITED=w0,_i.ENTERING=v0,_i.ENTERED=ul,_i.EXITING=R5;var Ku=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=i8(o.className,r):o.setAttribute("class",i8(o.className&&o.className.baseVal||"",r)));var o,r})},I5=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(c,s){var u=o.resolveArguments(c,s),h=u[0],f=u[1];o.removeClasses(h,"exit"),o.addClass(h,f?"appear":"enter","base"),o.props.onEnter&&o.props.onEnter(c,s)},o.onEntering=function(c,s){var u=o.resolveArguments(c,s),h=u[0],f=u[1]?"appear":"enter";o.addClass(h,f,"active"),o.props.onEntering&&o.props.onEntering(c,s)},o.onEntered=function(c,s){var u=o.resolveArguments(c,s),h=u[0],f=u[1]?"appear":"enter";o.removeClasses(h,f),o.addClass(h,f,"done"),o.props.onEntered&&o.props.onEntered(c,s)},o.onExit=function(c){var s=o.resolveArguments(c)[0];o.removeClasses(s,"appear"),o.removeClasses(s,"enter"),o.addClass(s,"exit","base"),o.props.onExit&&o.props.onExit(c)},o.onExiting=function(c){var s=o.resolveArguments(c)[0];o.addClass(s,"exit","active"),o.props.onExiting&&o.props.onExiting(c)},o.onExited=function(c){var s=o.resolveArguments(c)[0];o.removeClasses(s,"exit"),o.addClass(s,"exit","done"),o.props.onExited&&o.props.onExited(c)},o.resolveArguments=function(c,s){return o.props.nodeRef?[o.props.nodeRef.current,c]:[c,s]},o.getClassNames=function(c){var s=o.props.classNames,u=typeof s=="string",h=u?(u&&s?s+"-":"")+c:s[c];return{baseClassName:h,activeClassName:u?h+"-active":s[c+"Active"],doneClassName:u?h+"-done":s[c+"Done"]}},o}wb(t,e);var n=t.prototype;return n.addClass=function(o,r,i){var l=this.getClassNames(r)[i+"ClassName"],c=this.getClassNames("enter").doneClassName;r==="appear"&&i==="done"&&c&&(l+=" "+c),i==="active"&&o&&Sb(o),l&&(this.appliedClasses[r][i]=l,function(s,u){s&&u&&u.split(" ").forEach(function(h){return p=h,void((f=s).classList?f.classList.add(p):function(m,g){return m.classList?!!g&&m.classList.contains(g):(" "+(m.className.baseVal||m.className)+" ").indexOf(" "+g+" ")!==-1}(f,p)||(typeof f.className=="string"?f.className=f.className+" "+p:f.setAttribute("class",(f.className&&f.className.baseVal||"")+" "+p)));var f,p})}(o,l))},n.removeClasses=function(o,r){var i=this.appliedClasses[r],l=i.base,c=i.active,s=i.done;this.appliedClasses[r]={},l&&Ku(o,l),c&&Ku(o,c),s&&Ku(o,s)},n.render=function(){var o=this.props;o.classNames;var r=eh(o,["classNames"]);return d.createElement(_i,rd({},r,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t}(d.Component);I5.defaultProps={classNames:""},I5.propTypes={};const ld={Light:"light",Dark:"dark"},Xu=.12,D5=(e,t)=>{const n={},o=s=>{const u=s.palette?.background.default??"rgba(255,255,255,1)";return{text:{fontFamily:s.typography?.fontFamily??"Calibri",fontSize:s.typography?.fontSize??8.25,fontWeight:s.typography?.fontWeightRegular??"400",fill:s.palette.mode==="dark"?s.palette?.text?.secondary:s.palette?.text?.primary},fill:u,strokeFill:Ar(u,Xu,s.palette?.mode),darkMode:s.palette.mode==="dark"}},r=o(t);n.body=o(e),n.header={...n.body,strokeFill:Ar(n.body.fill,Xu,e.palette?.mode),fill:t&&e.palette.mode==="dark"&&t.palette.mode!==e.palette.mode?n.body.fill:Ar(n.body.fill,.055,e.palette?.mode),edgeStrokeFill:e.palette.mode==="dark"?n.body.strokeFill:Ar(n.body.fill,.328,e.palette?.mode)},n.headerHover=s=>({...n.header,strokeFill:Ar(s?.fill??n.body.fill,.22,e.palette?.mode),fill:Ar(s?.fill??n.header.fill,.065,e.palette?.mode),text:{...s?.text,fontWeight:e.typography?.fontWeightBold}});const i=Ar(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:ht.alpha(i,.2),text:{...n.header.text,fill:e.palette.primary.main},dividerStrokeFill:ht.alpha(i,.7)},n.headerSelectAll={...n.headerSelect,fill:ht.alpha(i,.9),text:{...n.headerSelect.text,fill:e.palette.primary.contrastText},edgeStrokeFill:n.headerSelect.strokeFill},n.buttonSurface={...r,strokeFill:Ar(r.fill,Xu,t.palette?.mode),fill:t&&t.palette.mode==="dark"&&t.palette.mode!==e.palette.mode?r.fill:Ar(r.fill,.055,t.palette?.mode),edgeStrokeFill:t.palette.mode==="dark"?r.strokeFill:Ar(r.fill,.328,t.palette?.mode)},n.headerSelection={fill:e.palette?.primary?.main?ht.alpha(e.palette?.primary?.main,.1):void 0,strokeFill:e.palette?.primary?.main},n.headerSelectionInactive={...n.headerSelection,fill:e.palette?.divider?ht.alpha(e.palette?.divider,.05):void 0,strokeFill:"transparent"};const l=t??e,c=l.palette.mode==="dark";return n.selection={fill:l.palette?.primary?.main?ht.alpha(l.palette?.primary?.main,.1):void 0,strokeFill:l.palette?.primary?.main},n.selectionInactive={...n.selection,fill:l.palette?.divider?ht.alpha(l.palette?.divider,.05):void 0,strokeFill:"transparent"},n.selectionRemove={...n.selection,fill:ht.alpha(l.palette.warning.light,.05),strokeFill:l.palette.warning.dark},t&&(n.body=o(t)),n.colorShadow=ht.alpha(l.palette.action.active,.5),n.colorGrey=l.palette.action.active,n.filterDarkInvert=c?"hue-rotate(180deg) invert(1) brightness(95%)":"none",n};function th(e){const{mode:t}=e||{},[n,o]=d.useState(()=>{if(t==="light"||t==="dark")return{themeMode:t,source:"prop"};if(typeof document<"u"){const r=a8();if(r)return{themeMode:r,source:"class"}}return{themeMode:s8(),source:"media"}});return d.useEffect(()=>{const r=()=>{if(t)return void(t===n.themeMode&&n.source==="prop"||o(u=>({...u,themeMode:t,source:"prop"})));const s=a8();if(s)o({themeMode:s,source:"class"});else{const u=s8();o({themeMode:u,source:"media"})}},i=new MutationObserver(r),l=[document.documentElement,document.body].filter(Boolean);for(const s of l)i.observe(s,{attributes:!0,attributeFilter:["class"]});const c=window.matchMedia("(prefers-color-scheme: dark)");return c.addEventListener("change",r),r(),()=>{i.disconnect(),c.removeEventListener("change",r)}},[t]),n}function a8(){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 s8(){return typeof window>"u"?"light":window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}const Ds=d.memo(d.forwardRef((e,t)=>{const{children:n,sx:o,parentFloat:r,...i}=e,l=Ii(t,()=>({}),[]),[c,s]=ql(),u=d.useRef(null),h=d.useRef(null),[f,p]=d.useReducer(E=>E+1,0),[m,g]=d.useState(null),[x,y]=d.useState(null),[w,b]=d.useState(null),{reference:C}=xi({parentFloat:r,label:"overflow"});d.useLayoutEffect(()=>{h.current={refs:[]};const E=[],M=d.Children.toArray(n);let j=0;M.forEach((F,k)=>{E.push(a.jsx(B.Box,{sx:{display:"flex"},ref:O=>{j++,j===M.length&&p();const S={current:null};S.current=O,h.current.refs[k]=S},children:F},k))}),g(E)},[n,s]),d.useLayoutEffect(()=>{if(!m)return;const E=h.current.refs;if(!l.current||!E||E.length===0)return y(null),void b(null);const M=l.current?.getBoundingClientRect(),j=[],F=[];let k=0,O=!1;for(let v=0;!O&&v<E.length;v++){const I=E[v];if(!I)continue;if(!I.current){O=!0;continue}const T=I.current.getBoundingClientRect();k+=T?.width,k>M.width&&(O=!0)}if(!O)return y(null),void b([]);const S=u.current?.getBoundingClientRect();k=0;for(let v=0;v<E.length;v++){const I=E[v];let T=!1;if(I.current){const R=I.current.getBoundingClientRect();k+=R?.width,k<M.width-S.width&&(T=!0)}T?j.push(m[v]):F.push(m[v])}y(j.length>0?j:null),b(F.length>0?F:null)},[n,m,s,C,f]);const _=et(E=>{const M=[];for(let F=0;F<w.length;F++){let k=d.Children.toArray(w[F]);const O=k[0];k=d.Children.toArray(O.props.children?.props.children??O.props.children);const S=k[0],v={...S.props};v.parentFloat&&(v.parentFloat=E.floatReference);const I=d.cloneElement(S,v);M.push(I)}const j=a.jsx(B.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:M});return _n({...E,children:j})},[w]);return a.jsxs(B.Box,{className:"overflow-palette",sx:{display:"flex",flexDirection:"row",flex:"1 1 100%",width:"100%",maxWidth:"100%",...o},ref:Zs([l,c,t]),...i,children:[a.jsx(B.Box,{sx:{flexDirection:"row",display:"flex",maxWidth:"100%",flex:"1 1 100%"},children:x??m}),a.jsx(B.Box,{sx:{display:w!==null&&w.length===0?"none":"flex",flex:"1 1 0"},children:a.jsx(ii,{createPopupPanel:_,ref:u,parentFloat:C,createTooltip:({children:E},M)=>a.jsx(Uo,{label:"More",description:"More toolbar options…",disabled:M,children:E}),icon:a.jsx(r9,{children:a.jsx(gn.MoreHoriz,{})})})})]})})),Cb="https://unpkg.com/@sheetxl/scripting-templates/dist",sr="text/html",Wi="text/plain",Yu="image/png",ED=Object.freeze({left:0,top:0}),kD=Object.freeze({left:0,top:0,bottom:0,right:0}),TD=Object.freeze({x:0,y:0,width:0,height:0});Object.freeze(Object.defineProperty({__proto__:null,EmptyBounds:TD,EmptyRect:kD,EmptyTopLeft:ED},Symbol.toStringTag,{value:"Module"}));const L0="column",Ls="row",jD=Object.freeze({colIndex:0,rowIndex:0}),MD=Object.freeze({colStart:0,rowStart:0,colEnd:0,rowEnd:0}),_b=(e,t)=>e.colStart===t.colStart?e.rowStart-t.rowStart:e.colStart-t.colStart,Eb=(e,t)=>e.rowStart===t.rowStart?e.colStart-t.colStart:e.rowStart-t.rowStart,RD=(e,t)=>e.rowEnd===t.rowEnd?t.colEnd-e.colEnd:t.rowEnd-e.rowEnd,ID=(e,t)=>e.colEnd===t.colEnd?t.rowEnd-e.rowEnd:t.colEnd-e.colEnd,c8=(e,t)=>e.colIndex===t.colIndex?e.rowIndex-t.rowIndex:e.colIndex-t.colIndex,d8=(e,t)=>e.rowIndex===t.rowIndex?e.colIndex-t.colIndex:e.rowIndex-t.rowIndex,kb=(e=Ls,t=!1)=>t?e!==L0?RD:ID:e!==L0?Eb:_b,u8=(e,t)=>e===t||!(!e||!t)&&e.rowIndex===t.rowIndex&&e.colIndex===t.colIndex,L5=(e,t)=>e===t||!(!e||!t)&&e.rowStart===t.rowStart&&e.rowEnd===t.rowEnd&&e.colStart===t.colStart&&e.colEnd===t.colEnd,O5=(e,t)=>!(!e||!t||e.colStart>t.colEnd||t.colStart>e.colEnd||e.rowStart>t.rowEnd||t.rowStart>e.rowEnd),h8=(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(!L5(e[n],t[n]))return!1;return!0},Ju=(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 c=n;return c?(c.colStart=o,c.rowStart=r,c.colEnd=i,c.rowEnd=l):c={colStart:o,rowStart:r,colEnd:i,rowEnd:l},c},p8=(e,t)=>{if(!t||t.length===0)return e;const n={...e};for(let o=0;o<t.length;o++){const r=t[o];O5(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},DD=[null,null],LD=(e,t,n)=>{if(e[0].value===e[1].value)return t};function f8(e,t=2,n,o=Ls,r){let i=[...e];if(t<=0||e.length<=1)return i;let l=o===L0,c=0,s=!1;do{const u=i.sort(kb(l?Ls:L0));i=[],i.push(u[0]);const h=u.length;let f=0,p=u[0],m=p.colStart,g=p.rowStart,x=p.colEnd,y=p.rowEnd;for(let w=1;w<h;w++){const b=u[w];let C=!1;if(C=l?p&&g===b.rowStart&&y===b.rowEnd&&x+1===b.colStart:p&&m===b.colStart&&x===b.colEnd&&y+1===b.rowStart,C){let _={colStart:m,rowStart:g,colEnd:l?b.colEnd:x,rowEnd:l?y:b.rowEnd};if(p.value!==void 0&&(_.value=p.value),n){const E=r??[null,null];E[0]=p,E[1]=b,_=n(E,_,o)}if(_){i[f]=_,s=!0,p=_,m=p.colStart,g=p.rowStart,x=p.colEnd,y=p.rowEnd;continue}}i[++f]=b,p=b,m=p.colStart,g=p.rowStart,x=p.colEnd,y=p.rowEnd}c++,l=!l,c===1&&(s=!0)}while(c<t&&s&&i.length>1);return i}Object.freeze(Object.defineProperty({__proto__:null,EmptyCell:jD,EmptyRange:MD,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:c8,columnFirstRangeComparator:_b,createCellComparator:(e=Ls,t=!1)=>t?e!==L0?(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!==L0?d8:c8,createConflatingRanges:(e,t=!1)=>{const n=[];let o,r,i=Number.MIN_SAFE_INTEGER,l=Number.MIN_SAFE_INTEGER;return{append:(c,s,u)=>{let h=!0;const f=u!==void 0;if(f){const g=e?e(r,u,t):r===u?u:void 0;g===void 0?h=!1:u=g}if(h&&s===l+1&&c===i)return t?o.rowEnd=s:o.colEnd=s,l=s,void(r=u);o&&n.push(o);const p=t?c:s,m=t?s:c;o={colStart:p,rowStart:m,colEnd:p,rowEnd:m},f&&(o.value=u),i=c,l=s,r=u},done:c=>(o&&(n.push(o),o=null),c?f8(n,3,c===!0?LD:c,t?L0:Ls,DD):n)}},createRangeComparator:kb,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:p8,extendRangeToUnionRanges:(e,t)=>{if(!t||t.length===0)return e;let n=e,o=null;for(;!L5(n,o);)o=n,n=p8(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(O5(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 c=n;return c?(c.colStart=o,c.rowStart=r,c.colEnd=i,c.rowEnd=l):c={colStart:o,rowStart:r,colEnd:i,rowEnd:l},c},isCellWithinRange:(e,t)=>!(!e||!t||e.rowIndex<t.rowStart||e.rowIndex>t.rowEnd||e.colIndex<t.colStart||e.colIndex>t.colEnd),isEqualCells:u8,isEqualRanges:L5,isEqualRangesArrays:h8,isEqualSelectionCoords:(e,t)=>e===t||!(!e||!t)&&e.rangeIndex===t.rangeIndex&&!!u8(e.cell,t.cell)&&h8(e.ranges,t.ranges),isRangeWithinRange:(e,t)=>!(e.rowStart<t.rowStart||e.rowEnd>t.rowEnd||e.colStart<t.colStart||e.colEnd>t.colEnd),isRangesIntersect:O5,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:f8,rowFirstCellComparator:d8,rowFirstRangeComparator:Eb,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:Ju,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=Ju(o,e[r],n);return t&&(o=Ju(o,t,n)),o}},Symbol.toStringTag,{value:"Module"}));const OD=typeof Symbol=="function"&&Symbol.for?Symbol.for("react.element"):60103;function PD(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===OD}(e)}function Xa(e,t){return t.clone!==!1&&t.isMergeableObject(e)?G0((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}function AD(e,t,n){return e.concat(t).map(function(o){return Xa(o,n)})}function m8(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 g8(e,t){try{return t in e}catch{return!1}}function G0(e,t,n){(n=n||{}).arrayMerge=n.arrayMerge||AD,n.isMergeableObject=n.isMergeableObject||PD,n.cloneUnlessOtherwiseSpecified=Xa;const o=Array.isArray(t);return o===Array.isArray(e)?o?n.arrayMerge(e,t,n):function(r,i,l){const c={};return l.isMergeableObject(r)&&m8(r).forEach(function(s){c[s]=Xa(r[s],l)}),m8(i).forEach(function(s){var u,h;g8(u=r,h=s)&&(!Object.hasOwnProperty.call(u,h)||!Object.propertyIsEnumerable.call(u,h))||(g8(r,s)&&l.isMergeableObject(i[s])?c[s]=function(f,p){if(!p.customMerge)return G0;const m=p.customMerge(f);return typeof m=="function"?m:G0}(s,l)(r[s],i[s],l):c[s]=Xa(i[s],l))}),c}(e,t,n):Xa(t,n)}G0.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(n,o){return G0(n,o,t)},{})};const FD=Object.freeze([]),zD=Object.freeze({}),x8=e=>e,x1=()=>"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)}),Tb=(e,t)=>e===t||!(!Array.isArray(e)||!Array.isArray(t)||e.length!==t.length)&&e.every((n,o)=>n===t[o]),Ia=e=>typeof e=="object"&&!Array.isArray(e)&&e!==null,jb=e=>typeof e!="object"||Array.isArray(e)||e===null?e:(Object.keys(e).forEach(function(t){e[t]&&typeof e[t]=="object"?jb(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),BD=(e,t)=>!(e!==t&&!Tb(e,t)&&!e.isEqual?.(t)),Mb=(e,t,n=BD)=>{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];Mb(e[l],t?.[l],n)===null&&(r=!0,delete e[l])}return r&&Object.keys(e).length===0?null:void 0},y8=typeof performance=="object"&&typeof performance.now=="function"?()=>performance.now():()=>Date.now(),b8=e=>e==null,w8=(e,t)=>!(t.left>e.right||t.right<e.left||t.top>e.bottom||t.bottom<e.top),v8=!(typeof window>"u"||!window.document||!window.document.createElement),cr={Windows:"windows",MacOS:"macos",IOS:"ios",Linux:"linux",Android:"android",Safari:"safari",Firefox:"firefox",Node:"node",Unknown:"unknown"},Os=()=>{if(Rb())return cr.Node;const e=globalThis.navigator!==void 0&&globalThis.navigator.userAgent?globalThis.navigator.userAgent.toLowerCase():"";return e?/(win32|win64|windows|wince)/i.test(e)?cr.Windows:/(macintosh|macintel|macppc|mac68k|macos)/i.test(e)?cr.MacOS:/(iphone|ipad|ipod)/i.test(e)?cr.IOS:/android/.test(e)?cr.Android:/linux/.test(e)?cr.Linux:/^((?!chrome|android|).)*safari/i.test(e)?cr.Safari:/^((?!chrome|android|Seamonkey).)*firefox/i.test(e)?cr.Firefox:cr.Unknown:cr.Unknown};function Rb(){return typeof process<"u"&&process.release?.name==="node"||(typeof process<"u"&&process.browser,!1)}const S8=(e,t=!1)=>(document.hasFocus()||t)&&(e===document.activeElement||e?.contains(document.activeElement)),ND=Object.freeze(Object.defineProperty({__proto__:null,EmptyArray:FD,EmptyObject:zD,OSType:cr,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:v8,cancelTimeout:e=>{cancelAnimationFrame(e.id)},castToString:e=>e==null||e===void 0?"":typeof e!="string"?""+e:e,cloneObject:e=>b8(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,c=0;function s(){let h=Date.now()-c;h<t&&h>=0?o=setTimeout(s,t-h):(o=null,n||(l=e.apply(i,r),i=r=null))}t==null&&(t=100);const u=function(){i=globalThis,r=arguments,c=Date.now();var h=n&&!o;return o||(o=setTimeout(s,t)),h&&(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:G0,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=x8){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=x8){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||!Ia(l))return l;o=l}return o??null},getOS:Os,hasFocus:S8,isDefined:e=>e!=null,isEmpty:e=>e==null||e==="",isEqualArrays:Tb,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:Rb,isNullOrUndefined:b8,isNumeric:e=>{const t=1*e;return Number.isFinite(t)&&typeof t=="number"},isObject:Ia,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:w8,mergeContentful:(...e)=>{const t=e.length;if(t>0&&e[t-1]!==void 0&&!Ia(e[t-1]))return e[t-1];let n=e[0]||{};for(let o=1;o<t;o++)n=G0(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(!v8)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:jb,removeEqualValues:Mb,removeListenerAll:e=>{if(!e)return[];for(let t=0;t<e.length;t++)e[t]&&e[t]();return[]},requestTimeout:(e,t)=>{const n=y8(),o={id:requestAnimationFrame(function r(){y8()-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 c=r[l];if(c==null&&(c={},r[l]=c),!Ia(c))throw new Error("Can not set path to a non object path.");r=c}if(typeof n!="number"&&typeof n!="boolean"&&typeof n!="string"&&!Ia(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(!w8(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})},c=()=>{t.right>r.left&&t.right<r.right&&(o.push({...r,left:t.right}),r={...r,right:t.right})},s=()=>{t.left>r.left&&t.left<r.right&&(o.push({...r,right:t.left}),r={...r,left:t.left})};return n?(s(),c(),i(),l()):(i(),l(),c(),s()),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:x1,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=>{S8(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 Ib=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")},P5=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("")}),VD=Object.freeze(Object.defineProperty({__proto__:null,DEFAULT_MIME_TYPE:"*/*",arrayBufferToBase64:Ib,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:P5},Symbol.toStringTag,{value:"Module"})),Db="data:image/png;base64,",Lb="Unable to resolve image.",C8=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(Lb)}),Qu="image/svg+xml";var _8,E8;Object.freeze(Object.defineProperty({__proto__:null,DATA_URL_PNG_PREFIX:Db,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(Lb)}),loadImageDetails:async(e,t=null)=>{let n=null;const o=async()=>{try{const i=t??"image/*",l=URL.createObjectURL(new Blob([e],{type:i})),c=await C8(l);n={mimeType:i,naturalDimensions:c,asUrl:l}}catch{}},r=async()=>{try{const i=new TextDecoder().decode(e),l=URL.createObjectURL(new Blob([i],{type:Qu})),c=await C8(l);n={mimeType:t??Qu,naturalDimensions:c,asUrl:l,asSVGText:i}}catch{}};if(t===Qu?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"})),(E8=_8||(_8={})).resolveTypedUpdates=(e,t,n,o)=>{if(e===null)return e;if(e===void 0)return o;let r=e;if(t?.shorthand){const s=t?.shorthand(e,n);s!==void 0&&(r=s)}if(r!==null&&t?.getSubType){const s=t.getSubType(r);s&&(t=s)}const i=t?.properties,l=t?.arrayType??!1;let c=r;if(t&&t.merge&&c&&o)c=t.merge(c,o,n);else if(!l&&i){const s=Object.keys({...r,...o});c=null;for(let u=0;u<s.length;u++){const h=s[u];let f,p=r[h];if(p!==void 0){const m=i[h];f=m?(0,E8.resolveTypedUpdates)(p,m,n,o?.[h]):p}else f=o?.[h];f!=null&&(c=c??{},c[h]=f)}}return c};const k8=`The Safari browser does not support advanced copy and paste.
|
|
96
|
+
Copy and paste will be limited to within the browser tab.
|
|
97
|
+
|
|
98
|
+
Please use Chrome or Edge if external copy and paste is required.`,e2=`You do not have permissions to access the clipboard.
|
|
99
|
+
All copy and paste operations will be limited to the browser tab.`,Ob={Safari:`The Safari browser does not support advanced copy and paste.
|
|
100
|
+
Copy and paste will be limited to within the browser tab.
|
|
101
|
+
|
|
102
|
+
Please use Chrome or Edge if external copy and paste is required.`,Perms:e2,PermsWrite:Os()===cr.Safari?k8:e2,PermsRead:Os()===cr.Safari?k8:e2},t2=async()=>new Promise(e=>{document.hasFocus()?e():globalThis.addEventListener?.("focus",()=>{e()},{once:!0}),document.activeElement.focus?.()}),n2=async(e,t,n)=>{if(Os()===cr.Safari)return await n(new Error(Ob.Safari));try{const o=async l=>{try{return await l()}catch(c){if(c.message?.includes("Document is not focused"))return!1;throw c}},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)}},Pb=async e=>{try{return await e.read({unsanitized:[sr]})}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 c=0;c<l.length;c++){const s=l[c];let u=o[s];i[s]=typeof u=="string"?e(s,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 A5=async(e,t=sr)=>new Promise(async(n,o)=>{try{const r=await(async(i,l)=>{if(!i)return null;const c=await Pb(i);let s=!1;for(let u=0;!s&&c&&u<c.length;u++)if(s=c[u].types.includes(l),s)return await c[u].getType(l);return s?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)}}),T8=async(e,t=sr)=>{const n=await A5(e,t);if(!n)return null;let o=null;try{o=new DOMParser().parseFromString(n,sr)}catch{console.warn("Can't parse html from clipboard.")}return o},Ps="clipboard-uuid",ll="web text/uuid",j8=e=>`<div style="display:none" ${Ps}="${e}"/>`,HD=(e,t)=>{let n=null;try{const o=new DOMParser().parseFromString(t,sr);o.body.firstElementChild.setAttribute(Ps,e),n=o.getElementsByTagName("body")[0].innerHTML}catch(o){console.warn("Can't embed uuid.",o)}return n},M8=(e,t)=>{if(!t||!e)return!1;try{const n=t.querySelectorAll(`[${Ps}="${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}};class R8{constructor(t){if(t?.nativeClipboard===void 0||t?.nativeClipboard===!0)try{this._nativeClipboard=globalThis?.navigator.clipboard}catch{t?.nativeClipboard===!0&&console.warn("NativeClipboard option set to true but no native clipboard available.")}else this._nativeClipboard=t?.nativeClipboard===!1?null:t?.nativeClipboard;this._disableCheckOnFocus=t?.disableCheckOnFocus??!1,this._init()}async _checkForChanges(){this._nativeClipboard&&this._state&&!this._disableCheckOnFocus&&await n2("clipboard-read",async()=>{await t2();const t=await A5(this._nativeClipboard,ll);if(!this._state||t&&t===this._state.uuid)return!0;const n=await T8(this._nativeClipboard,sr);return!this._state||(M8(this._state.uuid,n)||this.clear(),!0)},async t=>{t?.message==="denied"||t.message?.includes("Document is not focused")||Os()===cr.Safari||console.warn("Unable to detect clipboard changes: ",t)})}_init(){const t=this;this._listeners=new Map,this._listenersCapture=new Map,this._state=null,this._nativeClipboard&&(this._onFocus=()=>{t._checkForChanges()},this._onBlur=()=>{globalThis.addEventListener?.("focus",t._onFocus,{once:!0})},globalThis.addEventListener?.("blur",this._onBlur),this._nativeClipboard.addEventListener("clipboardchange",n=>{t._checkForChanges()}))}async read(){if(!this._nativeClipboard)return this._state?.items??null;const t=this;return await n2("clipboard-read",async()=>{if(await t2(),this._state?.uuid){const n=await A5(this._nativeClipboard,ll);if(n&&n===t._state.uuid)return!0;const o=await T8(this._nativeClipboard,sr);if(M8(t._state?.uuid,o))return!0}return t._state={items:await Pb(this._nativeClipboard),uuid:null,ref:null},this.dispatchEvent(new Event("clipboardread")),!0},async n=>{this.dispatchEvent(new Event("clipboarderrorread"))}),this._state?.items??[]}async write(t){return this._write({uuid:x1(),items:t,ref:null})}async _write(t){if(!this._nativeClipboard)return this._state=t,this.dispatchEvent(new Event("clipboardwrite")),this.dispatchEvent(new Event("clipboardchange")),null;const n=this,o=[],r=t.uuid;let i=t.items??[];const l=()=>{n._state={uuid:r,ref:t.ref,items:o},n.dispatchEvent(new Event("clipboardwrite")),n.dispatchEvent(new Event("clipboardchange"))};await n2("clipboard-write",async()=>{await t2(),r&&i.length===0&&(i.push(new ClipboardItem({[ll]:new Blob([r],{type:ll})})),i.push(new ClipboardItem({[sr]:new Blob([j8(r)],{type:sr})})));for(let c=0;c<Math.min(1,i.length);c++){const s=i[c];let u=s.types.indexOf(sr),h=null;if(u!==-1){const m=await s.getType(sr);h=await P5(m),h&&(h=HD(r,h))}if(!h&&s.types.includes(Wi)){const m=await s.getType(Wi);if(m){let g=null;typeof m=="string"?(console.warn("text as string",m),g=m):g=await P5(m),g&&(h=`<div ${Ps}="${r}">${g}</div>`)}}if(!h&&s.types.includes(Yu)){const m=await s.getType(Yu),g=Ib(await m.arrayBuffer());h=`<div ${Ps}="${r}"><img src="${Db+g}"/></div>`}!h&&r&&(h=j8(r));const f=new Blob([h??""],{type:sr}),p={};for(let m=0;m<s.types.length;m++){const g=s.types[m];p[g]=m===u?f:s.getType(g)}h&&u===-1&&(p[sr]=f),r&&(p[ll]=new Blob([r],{type:ll})),o.push(new ClipboardItem(p))}try{o&&o.length!==0?await this._nativeClipboard.write(o):await(async c=>{c&&await c.writeText("")})(this._nativeClipboard)}catch(c){c.message?.includes("Document is not focused")||console.warn("Unable to write to native clipboard: ",c)}return l(),!0},async c=>{this.dispatchEvent(new Event("clipboarderrorwrite")),l()})}async writeReference(t){if(!t)return void this.clear();let n=null;const o={};try{const i=await t.toText?.()??null;i&&(o[Wi]=new Blob([i??""],{type:Wi}))}catch(i){n=i}try{const i=await t.toHtml?.()??null;i&&(o[sr]=new Blob([i],{type:sr}))}catch(i){n=i,console.warn("export to html",i)}try{const i=await t.toImage?.()??null;i&&(o[Yu]=i)}catch(i){n=i,console.warn("export to png",i)}const r=this._write({uuid:x1(),ref:t,items:Object.keys(o).length>0?[new ClipboardItem(o)]:null});if(n)throw n;return r}clear(t=!1){this._state&&(this._state=null,t&&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(t,n)=>{const o=await this.read();let r=null;for(let l=0;!r&&o&&l<o.length;l++)o[l].types.includes(Wi)&&(r=await o[l].getType(Wi));if(!r)return void t("");const i=new FileReader;i.onload=()=>{t(i.result)},i.readAsText(r),i.onerror=l=>{n(l)}})}async writeText(t){const n=[new ClipboardItem({[Wi]:new Blob([t],{type:Wi})})];return this._write({uuid:x1(),items:n,ref:null})}addEventListener(t,n,o={}){const r=o?.capture?this._listenersCapture:this._listeners;let i=r.get(t);i||(i=new Map,r.set(t,i)),i.set(n,typeof o=="boolean"?{}:o)}dispatchEvent(t){if(!t)return;const n=o=>{const r=o.get(t.type);r&&r.forEach((i,l)=>{try{typeof l=="function"?l(t):l.handleEvent&&l.handleEvent(t),i.once&&r.delete(l)}catch(c){console.warn(c)}})};return n(this._listenersCapture),n(this._listeners),!0}removeEventListener(t,n,o){const r=o?.capture?this._listenersCapture:this._listeners,i=r.get(t);i&&(i.delete(n),i.size===0&&r.delete(t))}close(){globalThis.removeEventListener?.("focus",this._onFocus),globalThis.removeEventListener?.("blur",this._onBlur)}}var o2;(o2=R8||(R8={})).ErrorMessages=Ob,o2.Global=new o2;const $D=[{key:"SheetXL",description:"SheetXL",mimeType:".sxl",exts:["sxl"],isDefault:!0,handler:async(e,t)=>(await Promise.resolve().then(()=>require("./KmAkK4F7kLQEM3IN.cjs"))).fromBufferJSON(e,t)},{key:"CSV",description:"Comma Delimited",mimeType:"text/csv",exts:["csv"],handler:async(e,t)=>(await Promise.resolve().then(()=>require("./BYrNOLTwEhs6LHAw.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("./Cby5RVhO-aNkuWsV.cjs")).then(n=>n.i)).fromBufferXLSX(e,t)}],WD=[{key:"SheetXL",mimeType:"application/vnd.sheetxl.sheet",description:"SheetXL",ext:"sxl",isDefault:!0,handler:async(e,t)=>(await Promise.resolve().then(()=>require("./KmAkK4F7kLQEM3IN.cjs"))).toBufferJSON(e,t)},{key:"CSV",mimeType:"text/csv",description:"Comma Delimited",ext:"csv",handler:async(e,t)=>(await Promise.resolve().then(()=>require("./BYrNOLTwEhs6LHAw.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("./Cby5RVhO-aNkuWsV.cjs")).then(n=>n.i)).toBufferXLSX(e,t)}];class Ab{constructor(t=$D,n=WD){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?.typedCreateWorkbookOptions?.[n]};let c;delete l.typedCreateWorkbookOptions;try{c=await i(t,l)}catch(s){throw new Error("Unable to import",{cause:s})}return c}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 c=VD.base64ToArrayBuffer(l),s=this.getReadFormatTypeForExt(r)||this._readFormatTypes[0];if(!s)throw new Error("No import type available for base64 input.");return{workbook:await this._fromArrayBuffer(c,s.key,t),title:o||"imported-file",formatType:s}}case"fetch":{let l,c,s=null;if(typeof n=="string")s=n;else{if(!n||typeof n!="object"||!("input"in n))throw new Error("Invalid fetch source provided.");{const x=n;s=x.input,l=x.init,c=x.timeout}}const u=c||3e4,h=new AbortController,f=setTimeout(()=>h.abort(),u),p=typeof s=="string"?s:s.toString(),m=r||N.TextUtils.getFileNameExtension(p),g=this.getReadFormatTypeForExt(m)||this._readFormatTypes[0];try{const x=await fetch(s,{...l,signal:h.signal});if(clearTimeout(f),!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: ${p}`);return{workbook:await this._fromArrayBuffer(y,g.key,t),title:o||N.TextUtils.getBaseName(p,!0)||"fetched-file",formatType:g}}catch(x){throw clearTimeout(f),x.name==="AbortError"?new Error(`Fetch timeout after ${u}ms: ${p}`):x}}case"buffer":{const l=n,c=this.getReadFormatTypeForExt(r)||this._readFormatTypes[0];if(!c)throw new Error("No import type available for buffer input.");return{workbook:await this._fromArrayBuffer(l,c.key,t),title:o||"buffer-file",formatType:c}}case"stream":{const l=n.getReader(),c=[];let s=0;try{for(;;){const{done:m,value:g}=await l.read();if(m)break;c.push(g),s+=g.length}}finally{l.releaseLock()}const u=new ArrayBuffer(s),h=new Uint8Array(u);let f=0;for(const m of c)h.set(m,f),f+=m.length;const p=this.getReadFormatTypeForExt(r)||this._readFormatTypes[0];if(!p)throw new Error("No import type available for stream input.");return{workbook:await this._fromArrayBuffer(u,p.key,t),title:o||"stream-file",formatType:p}}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(),c={...n,...n?.typedCreateWorkbookOptions?.[i.key]};delete c.typedCreateWorkbookOptions;const s=i.handler;if(!s)throw new Error(`Unable to resolve handler for type: ${i?.description??N.TextUtils.getFileNameExtension(t?.name)??t?.name??"(empty)"}.`);await c.onStart?.(r);const u=await s(l,c);o=new UD(t,u,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(),c=l.length;for(let h=0;!i&&h<c;h++)(l[h].ext===r||!r&&l[h].isDefault)&&(i=l[h]);if(!i)throw new Error(`Unable to determine export type for '${t}'.`);const s=t+"."+i.ext;let u=null;try{u=await this.toArrayBuffer(n,i.key)}catch(h){throw typeof h=="string"?new Error(h):h}try{await(async(h,f)=>{let p;typeof SharedArrayBuffer<"u"&&f instanceof SharedArrayBuffer?(p=new ArrayBuffer(f.byteLength),new Uint8Array(p).set(new Uint8Array(f))):p=f,function(m,g){const x=URL.createObjectURL(m),y=document.createElement("a");y.style.display="none",y.href=x,y.download=g,document.body.appendChild(y),y.click(),document.body.removeChild(y),URL.revokeObjectURL(x)}(new Blob([p],{type:"application/octet-stream"}),h)})(s,u)}catch(h){throw new Error("Unable to write file.",{cause:h})}return!0}}class UD{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 qD=new Ab;var I8,D8,ZD=function(){if(D8)return I8;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="",c=0,s=-1,u=0,h=0;h<=o.length;++h){if(h<o.length)i=o.charCodeAt(h);else{if(i===47)break;i=47}if(i===47){if(s!==h-1&&u!==1)if(s!==h-1&&u===2){if(l.length<2||c!==2||l.charCodeAt(l.length-1)!==46||l.charCodeAt(l.length-2)!==46){if(l.length>2){var f=l.lastIndexOf("/");if(f!==l.length-1){f===-1?(l="",c=0):c=(l=l.slice(0,f)).length-1-l.lastIndexOf("/"),s=h,u=0;continue}}else if(l.length===2||l.length===1){l="",c=0,s=h,u=0;continue}}r&&(l.length>0?l+="/..":l="..",c=2)}else l.length>0?l+="/"+o.slice(s+1,h):l=o.slice(s+1,h),c=h-s-1;s=h,u=0}else i===46&&u!==-1?++u:u=-1}return l}D8=1;var n={resolve:function(){for(var o,r="",i=!1,l=arguments.length-1;l>=-1&&!i;l--){var c;l>=0?c=arguments[l]:(o===void 0&&(o=process.cwd()),c=o),e(c),c.length!==0&&(r=c+"/"+r,i=c.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,c=l-i,s=1;s<r.length&&r.charCodeAt(s)===47;++s);for(var u=r.length-s,h=c<u?c:u,f=-1,p=0;p<=h;++p){if(p===h){if(u>h){if(r.charCodeAt(s+p)===47)return r.slice(s+p+1);if(p===0)return r.slice(s+p)}else c>h&&(o.charCodeAt(i+p)===47?f=p:p===0&&(f=0));break}var m=o.charCodeAt(i+p);if(m!==r.charCodeAt(s+p))break;m===47&&(f=p)}var g="";for(p=i+f+1;p<=l;++p)p!==l&&o.charCodeAt(p)!==47||(g.length===0?g+="..":g+="/..");return g.length>0?g+r.slice(s+f):(s+=f,r.charCodeAt(s)===47&&++s,r.slice(s))},_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,c=!0,s=o.length-1;s>=1;--s)if((r=o.charCodeAt(s))===47){if(!c){l=s;break}}else c=!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,c=-1,s=!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,h=-1;for(i=o.length-1;i>=0;--i){var f=o.charCodeAt(i);if(f===47){if(!s){l=i+1;break}}else h===-1&&(s=!1,h=i+1),u>=0&&(f===r.charCodeAt(u)?--u===-1&&(c=i):(u=-1,c=h))}return l===c?c=h:c===-1&&(c=o.length),o.slice(l,c)}for(i=o.length-1;i>=0;--i)if(o.charCodeAt(i)===47){if(!s){l=i+1;break}}else c===-1&&(s=!1,c=i+1);return c===-1?"":o.slice(l,c)},extname:function(o){e(o);for(var r=-1,i=0,l=-1,c=!0,s=0,u=o.length-1;u>=0;--u){var h=o.charCodeAt(u);if(h!==47)l===-1&&(c=!1,l=u+1),h===46?r===-1?r=u:s!==1&&(s=1):r!==-1&&(s=-1);else if(!c){i=u+1;break}}return r===-1||l===-1||s===0||s===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 function(r,i){var l=i.dir||i.root,c=i.base||(i.name||"")+(i.ext||"");return l?l===i.root?l+c:l+"/"+c:c}(0,o)},parse:function(o){e(o);var r={root:"",dir:"",base:"",ext:"",name:""};if(o.length===0)return r;var i,l=o.charCodeAt(0),c=l===47;c?(r.root="/",i=1):i=0;for(var s=-1,u=0,h=-1,f=!0,p=o.length-1,m=0;p>=i;--p)if((l=o.charCodeAt(p))!==47)h===-1&&(f=!1,h=p+1),l===46?s===-1?s=p:m!==1&&(m=1):s!==-1&&(m=-1);else if(!f){u=p+1;break}return s===-1||h===-1||m===0||m===1&&s===h-1&&s===u+1?h!==-1&&(r.base=r.name=u===0&&c?o.slice(1,h):o.slice(u,h)):(u===0&&c?(r.name=o.slice(1,s),r.base=o.slice(1,h)):(r.name=o.slice(u,s),r.base=o.slice(u,h)),r.ext=o.slice(s,h)),u>0?r.dir=o.slice(0,u-1):c&&(r.dir="/"),r},sep:"/",delimiter:":",win32:null,posix:null};return n.posix=n,I8=n}();const L8=/^(con|prn|aux|nul|com\d|lpt\d)$/i,O8=/[<>:"/\\|?*\u0000-\u001F]/g,T0=Object.freeze(Object.defineProperty({__proto__:null,MAX_WORKBOOK_NAME_SIZE:96,WINDOW_FILENAME_CHAR_RESERVED_REGEX:O8,WINDOW_FILENAME_RESERVED_REGEX:L8,isValidWindowsFilename:e=>!(!e||e.length>255||O8.test(e)||L8.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 ZD.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"})),GD=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(" "))},Fb=async e=>{const t=T0.relativePath(e,"./manifest.json"),n=await fetch(t);if(!n.ok)throw new x2(`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 x2(`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 c=T0.relativePath(e,l.path),s=await fetch(c);if(!s.ok)throw new Error(`Failed to fetch file at '${l.path}': ${s.statusText}`);const u=await s.text();let h=l.metadata;return h?.title||(h={title:GD(l),...h}),{path:l.path,content:u,metadata:h}}catch(c){console.error(c.message)}return null});return(await Promise.all(i)).filter(l=>l!==null)},r2={fontSize:"0.8rem",marginRight:"4px"},KD=d.memo(e=>{const{disabled:t,snippet:n,description:o,handleInsert:r,sx:i,...l}=e;let c;return c=n.metadata?.icon==="formula"?a.jsx(v9,{sx:r2}):n.metadata?.icon==="macro"?a.jsx(l3,{sx:r2}):a.jsx(gn.WebhookOutlined,{sx:r2}),a.jsx(yr,{sx:{maxWidth:"460px",display:"flex","*":{lineHeight:"1.2"},...i},disabled:t,icon:c,onMouseDown:s=>{s.button===0&&s.preventDefault()},onMouseUp:s=>{s.button===0&&r(n)},onKeyDown:s=>{s.keyCode!==Cn.Enter&&s.keyCode!==Cn.Space||r(n)},...l,children:a.jsxs(B.Box,{sx:{display:"flex",flex:"1 1 100%",flexDirection:"column",overflow:"hidden"},children:[a.jsx(B.Typography,{component:"div",children:n.metadata?.title??n.path}),a.jsx(B.Typography,{variant:"caption",component:"div",sx:{color:s=>ht.alpha(s.palette.text.secondary??s.palette.text.primary,.6),overflow:"hidden",textOverflow:"ellipsis"},children:n.metadata?.summary})]})})}),zb=d.memo(d.forwardRef((e,t)=>{const{commands:n,commandHook:o,scope:r,disabled:i=!1,scriptPath:l=Cb,...c}=e,[s,u]=d.useState([]),[h,f]=d.useState(!0),p=ko(n,["executeSelectedScript"]),m=p[0]?.context?.();d.useEffect(()=>{(async()=>{try{const x=await Fb(l);u(x)}catch{}finally{f(!1)}})()},[l]);const g=d.useCallback((x,y)=>{if(h)return a.jsx("div",{children:"Loading..."});const w={variant:Vt.Menuitem,commandHook:o,scope:"scripts",disabled:i},b=E=>{m.getEditor()?.insertSnippet(E.content),x.closeFloat()},C=[];for(let E=0;E<s.length;E++){const M=s[E];M&&C.push(a.jsx(KD,{handleInsert:b,snippet:M},M.path))}const _=a.jsxs(B.Box,{sx:{display:"flex",flexDirection:"column",flex:"1 1 100%",overflow:"hidden"},children:[C.length>0?a.jsxs(a.Fragment,{children:[a.jsx(B.Box,{sx:{overflow:"auto",flex:"1 1 100%"},children:C}),a.jsx(Mt,{orientation:"horizontal"})]}):null,d.createElement(je,{...w,key:"help",command:n.getCommand("help"),icon:ge(a.jsx(b9,{}))})]});return _n({...x,children:_})},[i,o,r,h,m]);return a.jsx(An,{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:ge(a.jsx($_,{})),...c})})),nh=d.memo(d.forwardRef((e,t)=>{const{commands:n,parentFloat:o,commandButtonProps:r,...i}=e,l=et(c=>{const{commandButtonProps:s,commandPopupProps:u}=c;return a.jsx(a.Fragment,{children:a.jsxs("div",{style:{display:"flex",flex:"1 1 100%"},children:[a.jsx("div",{children:a.jsx(Ds,{parentFloat:o,style:{},children:a.jsx(je,{...s,command:n.getCommand("saveScripts"),icon:ge(a.jsx(W_,{}))})})}),a.jsx("div",{style:{flex:"1 1 100%"}}),a.jsx("div",{children:a.jsx(Ds,{parentFloat:o,style:{},children:a.jsx(zb,{...s,commands:n})})})]})})},[n]);return a.jsx(Hs,{ref:t,commands:n,parentFloat:o,commandButtonProps:r,createToolbarPalette:l,...i})}));nh.displayName="ScriptEditorToolbar";const i2={fontSize:"1rem"},Bb=d.memo(d.forwardRef((e,t)=>{const{scriptPath:n=Cb,onScriptSelect:o,sx:r=As.EmptyCssProperties,className:i,buttonMinWidth:l=210,buttonMinHeight:c=80,gap:s=12,...u}=e,[h,f]=d.useState([]),[p,m]=d.useState(!0),[g,x]=d.useState(null);if(d.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 Fb(n);for(let _=0;_<C.length;_++){const E=C[_];E&&b.push(E)}}catch(C){x(C instanceof Error?C.message:"Failed to load scripts"),C instanceof x2||console.error("Error loading scripts:",C)}finally{f(b),m(!1)}})()},[n]),p)return a.jsx(B.Box,{display:"flex",justifyContent:"center",alignItems:"center",height:"100%",className:Yn(i,"script-select"),sx:{background:b=>b.palette.background.paper,zIndex:1e3,backgroundImage:`linear-gradient(${ht.alpha("#fff",jn(5))}, ${ht.alpha("#fff",jn(5))})`,...r},...u,children:a.jsx(B.CircularProgress,{})});let y=null;g&&(y=a.jsxs(B.Box,{display:"flex",justifyContent:"center",alignItems:"center",className:Yn(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(${ht.alpha("#fff",jn(5))}, ${ht.alpha("#fff",jn(5))})`},...u,children:[a.jsx(B.Typography,{color:"error",variant:"h6",component:"div",gutterBottom:!0,children:"Error loading Templates"}),a.jsx(B.Typography,{color:"error",component:"div",children:g})]}));const w=b=>{const C=b.metadata?.icon;return C==="macro"?a.jsx(l3,{sx:i2}):C==="formula"?a.jsx(v9,{sx:i2}):C==="autostart"?a.jsx(gn.WebhookOutlined,{sx:i2}):null};return a.jsxs(B.Box,{ref:t,className:Yn(i,"script-select"),sx:{background:b=>b.palette.background.paper,zIndex:1e3,backgroundImage:`linear-gradient(${ht.alpha("#fff",jn(5))}, ${ht.alpha("#fff",jn(5))})`,...r},...u,children:[a.jsxs(B.Box,{p:3,className:"script-select-content",sx:{overflow:"auto",flex:"1 1 auto"},children:[a.jsx(B.Typography,{variant:"h6",gutterBottom:!0,children:"Script Template"}),a.jsx(B.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(B.Typography,{variant:"body2",component:"div",color:"text.secondary",gutterBottom:!0,children:"Templates provide a foundation to customize and meet your specific needs."}),a.jsx(B.Box,{sx:{display:"grid",gridTemplateColumns:`repeat(auto-fill, minmax(${l}px, 1fr))`,gap:`${s}px`,padding:2,paddingLeft:"0px",paddingRight:"0px"},children:h.map((b,C)=>a.jsxs(B.Button,{variant:"outlined",sx:{minWidth:l,minHeight:c,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(B.Box,{sx:{display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"center",width:"100%",marginBottom:.5},children:[a.jsx(B.Typography,{variant:"subtitle2",component:"div",children:b.metadata?.title||b.path.split("/").pop()?.replace(/\.\w+$/,"")||"Untitled"}),w(b)]}),b.metadata?.summary&&a.jsx(B.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]})}));Bb.displayName="TemplateSelectPanel";const oh=d.memo(d.forwardRef((e,t)=>{const{className:n,sx:o,editorProps:r,commands:i,readOnly:l=!1,onClose:c,autoFocusSel:s,autoFocus:u=!0,scripts:h,...f}=e,p=Zr(),[m,g]=d.useState(!1),x=d.useRef(!1),[y,w]=d.useState({message:"Loading",cursor:"",dirty:!1}),[b,C]=d.useState(null);d.useEffect(()=>{let L=!1;return C(null),async function(){if(h&&(await h.start(),!L)){const V=h.getModules().search()[0]?.getSource();C({source:V||null})}}(),()=>{L=!0}},[h]);const _=d.useCallback(L=>{w(V=>({...V,...L}))},[]),E=d.useRef(null),M=d.useRef(null),[j,F]=d.useState(null),k=d.useRef(null),O=et(L=>{if(j)return j.focus(L),!0;if(s){const V=M.current?.querySelectorAll?.(s);if(V&&V.length>0)return V[0]?.focus?.(L),!0}return M.current?.focus?.(L),!1},[j,s,u]),S=d.useMemo(()=>a.jsx(c0,{transitionDelay:"160ms",style:{position:"absolute",width:"100%",height:"100%"},transparentBackground:!1}),[]),v=d.useMemo(()=>a.jsx(B.Paper,{elevation:1,tabIndex:0,sx:{display:"flex",alignItems:"center",userSelect:"none",flexGrow:1,backgroundImage:`linear-gradient(${ht.alpha("#fff",jn(5))}, ${ht.alpha("#fff",jn(5))})`,marginLeft:L=>L.spacing(.5),marginRight:L=>L.spacing(.5),marginTop:L=>L.spacing(1),marginBottom:L=>L.spacing(1)},children:a.jsx(nh,{commands:i})}),[p,i]),I=d.useMemo(()=>a.jsx(B.Box,{className:Yn("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 ${p.palette.divider}`},children:a.jsxs("div",{style:{flex:"1 1 100%",display:"flex",alignItems:"center",flexDirection:"row",justifyContent:"center"},children:[a.jsx(B.Typography,{component:"div",sx:{userSelect:"none",whiteSpace:"pre",overflow:"hidden",textOverflow:"ellipsis",flex:"1 1 100%",color:L=>L.palette.text.secondary},variant:"caption",children:y.message}),a.jsx(B.Typography,{component:"div",sx:{userSelect:"none",whiteSpace:"pre",overflow:"hidden",textOverflow:"ellipsis",flex:"none",color:L=>L.palette.text.secondary},variant:"caption",children:y.dirty?"Unsaved":""}),a.jsx(B.Typography,{component:"div",sx:{userSelect:"none",whiteSpace:"pre",overflow:"hidden",textOverflow:"ellipsis",flex:"none",marginLeft:"8px",minWidth:"90px",display:"flex",justifyContent:"end",color:L=>L.palette.text.secondary},variant:"caption",children:y.cursor})]})}),[y]),T=d.useMemo(()=>a.jsxs(B.Box,{className:Yn("script-editor-content"),sx:{display:"flex",flex:"1 1 100%",width:"100%",flexDirection:"column",boxSizing:"border-box"},children:[v,a.jsx(B.Box,{sx:{display:"flex",flex:"1 1 100%",width:"100%",flexDirection:"row",position:"relative",boxSizing:"border-box"},children:a.jsx(iD,{ref:M,loadingPanel:S,readOnly:l,onClose:c,autoFocus:u,commands:i,onStatusChange:_,darkMode:p.palette.mode==="dark",...r})}),I]}),[p,i,v,I,m,S,l,r,u,s,c,_]),R=d.useMemo(()=>a.jsx(B.DialogTitle,{className:Yn({"Mui-selected":x.current}),sx:{display:"flex",color:L=>L.palette.text.secondary,boxSizing:"border-box",padding:"0 0",transitionProperty:"opacity",transitionDuration:L=>`${L.transitions.duration.shortest}ms`,opacity:.7,"&.Mui-selected":{opacity:1,transitionDuration:L=>L.transitions.duration.shortest/2+"ms"},backgroundColor:L=>ht.alpha(L.palette.action.hover,.03),borderBottom:L=>`solid ${ht.alpha(L.palette.divider,.2)} 1px`},onPointerDown:L=>{L.isDefaultPrevented()||(L.preventDefault(),O())},children:a.jsxs(B.Box,{sx:{display:"flex",flex:"1 1 10%",flexDirection:"row",alignItems:"center",marginTop:L=>L.spacing(.25),marginBottom:L=>L.spacing(.25),marginLeft:L=>L.spacing(1),marginRight:L=>L.spacing(1)},children:[a.jsx(B.Box,{sx:{flex:"1 1 100%",paddingLeft:L=>L.spacing(1)},children:"Script (Typescript)"}),a.jsx(Uo,{label:"Close",children:a.jsx(B.IconButton,{"aria-label":"close",sx:{color:L=>L.palette.text.icon??L.palette.action.active},touchRippleRef:E,onPointerDown:L=>{E.current?.start(L,{center:!1}),L.stopPropagation(),L.preventDefault()},onPointerUp:()=>{M.current?.close()},children:a.jsx(gn.Close,{})})})]})}),[p,m]),A=d.useMemo(()=>{let L;return b===null?null:(b.source===null&&(L=a.jsx(Bb,{sx:{display:"flex",flex:"1 1 100%",flexDirection:"column",overflow:"hidden",position:"absolute",boxSizing:"border-box",width:"100%",height:"100%"},onScriptSelect:V=>{M.current?.getEditor().insertSnippet(V.content),C({source:V.content??""})}})),a.jsxs(B.Box,{tabIndex:0,className:Yn("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(${ht.alpha("#fff",jn(5))}, ${ht.alpha("#fff",jn(5))})`},onPointerDown:V=>{V.isDefaultPrevented()||M.current?.focus()},children:[R,a.jsxs(B.Box,{sx:{flex:"1 1 100%",position:"relative",display:"flex"},children:[T,L]})]}))},[v,T,n,b]),D=Ii(t,()=>({isScriptWorkspaceElement:()=>!0,focus:L=>{O(L)}}),[]);return a.jsx(B.Box,{sx:{display:"flex",flexDirection:"row",flex:"1 1 100%",position:"relative",...o},ref:D,...f,onFocus:L=>{g(!0),x.current=!0,D.current?.contains(L.target)&&L.target!==D.current&&F(L.target),L.relatedTarget&&!k.current&&(k.current=L.relatedTarget),f?.onFocus?.(L)},onBlur:L=>{D?.current?.contains(L.relatedTarget)||D?.current===L.relatedTarget||(k.current=null,x.current=!1,g(!1)),f?.onBlur?.(L)},children:A})}));oh.displayName="ScriptWorkspace";const rh=d.memo(d.forwardRef((e,t)=>{const{commands:n,commandHook:o,scope:r,disabled:i=!1,...l}=e,c=ko(n,["executeScript"])[0].context();ko(n,["showScriptEditor"]);const s=d.useCallback((u,h)=>{const f={variant:Vt.Menuitem,commandHook:o,scope:"scripts",disabled:i,shortcut:null},p=c?.getScripts(),m=p?.searchFunction({type:"macro"}),g=[];if(m)for(let y=0;y<m.length;y++){const w=m[y];g.push(a.jsx(je,{...f,command:h.getCommand("executeScript"),commandState:{declaration:w},tooltipProps:{description:`Execute ${w.getName()??"script"}`},icon:ge(a.jsx(l3,{})),label:w.getName()??`Script '${w.getName()}'`},`script-${w.getName()}-${y}`))}const x=a.jsxs(B.Box,{sx:{display:"flex",flexDirection:"column",flex:"1 1 100%",overflow:"hidden"},children:[g.length>0?a.jsxs(a.Fragment,{children:[a.jsx(B.Box,{sx:{overflow:"auto",flex:"1 1 100%"},children:g}),a.jsx(Mt,{orientation:"horizontal"})]}):null,d.createElement(je,{...f,key:"show-editor",command:h.getCommand("showScriptEditor"),icon:ge(a.jsx(P_,{}))})]});return _n({...u,children:x})},[i,c,o,r]);return a.jsx(An,{ref:t,commands:n,commandHook:o,createPopupPanel:s,selected:n.getCommand("showScriptEditor").state(),label:"Macros",tooltip:"Run or manage macros.",quickCommand:"showScriptEditor",icon:ge(a.jsx(H_,{})),...l})})),XD=d.memo(d.forwardRef((e,t)=>{const{commands:n,parentFloat:o,commandButtonProps:r,...i}=e,l=ko(n,["executeScript","showScriptEditor"]),c=l[0]?.context?.(),s=d.useCallback(u=>{const{commandButtonProps:h,commandPopupProps:f}=u,p=a.jsx(Ul,{...f,command:n.getCommand("formatFontColor"),icon:a.jsx(AS,{}),isSplit:!0,panelProps:{disableAlpha:!0}}),m=a.jsx(Ul,{...f,command:n.getCommand("formatFillColor"),icon:a.jsx(PS,{}),isSplit:!0,panelProps:{disableAlpha:!0,autoColorLabel:"No Fill",autoColorPosition:Il.End}}),g=n.getCommand("undo")?a.jsx(a.Fragment,{children:a.jsx(H3,{...f,quickCommand:"undo"})}):null,x=n.getCommand("find")?a.jsx(a.Fragment,{children:a.jsx(By,{...f})}):null;let y=null;const w=c?.getScripts();if(l[1]?.state?.()||w){let b=l[1]?.state?.();const C=w?.searchFunction({type:"macro"});for(let _=0;C&&!b&&_<C?.length;_++)b=!0;b&&(y=a.jsxs(a.Fragment,{children:[a.jsx(Mt,{}),a.jsx(rh,{...f})]}))}return a.jsxs(Ds,{parentFloat:o,children:[g,null,g?a.jsx(Mt,{}):null,a.jsx($3,{...f,command:n.getCommand("paste")}),a.jsx(je,{...h,command:n.getCommand("formatPainterToggle"),icon:ge(a.jsx(UC,{}))}),a.jsx(Dd,{...h,command:n.getCommand("copy")}),a.jsx(Mt,{}),a.jsx(Uy,{...f,command:n.getCommand("formatFontFamily")}),a.jsx(Ny,{...f,command:n.getCommand("formatFontSize")}),a.jsx(je,{...h,command:n.getCommand("formatBoldToggle"),icon:a.jsx(Vv,{})}),a.jsx(je,{...h,command:n.getCommand("formatItalicToggle"),icon:a.jsx(Nv,{})}),a.jsx(Zy,{...f}),a.jsx(qy,{...f}),p,a.jsx(Mt,{}),m,a.jsx(Ay,{...f}),a.jsx(Fy,{...f}),a.jsx(Mt,{}),a.jsx(cg,{...f}),a.jsx(dg,{...f}),a.jsx(ug,{...f}),a.jsx(hg,{...f}),a.jsx(Mt,{}),a.jsx(Vy,{...f}),a.jsx(Yy,{command:n.getCommand("formatCellStyle"),...f}),a.jsx(tb,{command:n.getCommand("formatTableStyle"),...f}),a.jsx(Mt,{}),a.jsx(B3,{...f}),a.jsx(N3,{...f}),a.jsx(Mt,{}),a.jsx(Hy,{...f}),null,a.jsx(z3,{...f}),a.jsx(V3,{...f}),x,y]})},[n,l]);return a.jsx(Hs,{ref:t,commands:n,parentFloat:o,commandButtonProps:r,createToolbarPalette:s,...i})})),YD=d.memo(d.forwardRef((e,t)=>{const{commands:n,parentFloat:o,commandButtonProps:r,...i}=e,l=et(c=>{const{commandButtonProps:s,commandPopupProps:u}=c;return a.jsxs(Ds,{parentFloat:o,children:[null,a.jsx(je,{...s,command:n.getCommand("updateHyperlink"),icon:ge(a.jsx(B2,{}))}),a.jsx(je,{...s,command:n.getCommand("updateComments"),icon:ge(a.jsx(N2,{}))}),a.jsx(W3,{...u}),a.jsx(je,{...s,command:n.getCommand("insertTable"),icon:ge(a.jsx(ms,{}))})]})},[n]);return a.jsx(Hs,{ref:t,commands:n,parentFloat:o,commandButtonProps:r,createToolbarPalette:l,...i})})),JD=d.memo(d.forwardRef((e,t)=>{const{commands:n,parentFloat:o,commandButtonProps:r,...i}=e,l=et(c=>{const{commandButtonProps:s,commandPopupProps:u}=c;return a.jsxs(Ds,{parentFloat:o,children:[a.jsx(zy,{...u}),a.jsx(je,{...s,command:n.getCommand("protectionSheetToggle"),icon:a.jsx(gn.Lock,{color:"secondary"})}),a.jsx(Mt,{}),a.jsx($y,{...u}),a.jsx(Gy,{...u}),a.jsx(Mt,{}),a.jsx(je,{...s,command:n.getCommand("sheetViewToggleFormulaView"),scope:"view",icon:a.jsx(Nl,{command:n.getCommand("sheetViewToggleFormulaView"),scope:"view"})}),a.jsx(je,{...s,command:n.getCommand("sheetViewToggleShowZeros"),scope:"view",icon:a.jsx(Nl,{command:n.getCommand("sheetViewToggleShowZeros"),scope:"view"})}),a.jsx(Mt,{}),a.jsx(Ky,{...u}),a.jsx(ib,{command:n.getCommand("selectTheme"),...u}),a.jsx(Mt,{}),a.jsx(rh,{...u,scope:"view"}),a.jsx(Mt,{}),a.jsx(je,{...s,command:n.getCommand("fullScreenToggle"),scope:"view",icon:()=>ge(n.getCommand("fullScreenToggle").state()?a.jsx(n_,{}):a.jsx(t_,{}))})]})},[n]);return a.jsx(Hs,{ref:t,commands:n,parentFloat:o,commandButtonProps:r,createToolbarPalette:l,...i})})),Nb=e=>a.jsx(nL,{...e}),QD=d.memo(e=>{const{sx:t,...n}=e;return a.jsxs(B.Box,{sx:{display:"flex",flexDirection:"column",position:"relative","&:hover:not([disabled]) .indicator":{borderBottom:o=>`${ht.alpha(o.palette.primary.main,.35)} solid 2px`}},children:[a.jsx(B.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(B.Box,{className:"indicator",sx:{width:"90%",borderRadius:"4px",minWidth:"4px",position:"absolute",bottom:"0",alignSelf:"center",display:"flex"}})]})}),eL=d.memo(e=>{const{toolbars:t,value:n,onToolbarChange:o,sx:r,...i}=e,l=d.useMemo(()=>{const c=[];for(let s=0;s<t.length;s++)c.push(a.jsx(QD,{label:t[s].label},t[s].label));return c},[t]);return a.jsx(B.Tabs,{value:n,onChange:(c,s)=>{o?.(s)},variant:"scrollable",scrollButtons:!1,sx:{paddingLeft:c=>c.spacing(1.5),paddingRight:c=>c.spacing(1.5),paddingTop:c=>c.spacing(0),paddingBottom:c=>c.spacing(0),minHeight:"26px",alignItems:"center","& .MuiTabs-indicator":{display:"flex",justifyContent:"center",backgroundColor:"transparent"},"& .MuiTabs-indicatorSpan":{width:"90%",borderRadius:"4px",minWidth:"4px",backgroundColor:c=>c.palette.primary.main},"& .MuiTab-root":{marginRight:"0px"},...r},TabIndicatorProps:{children:a.jsx("span",{className:"MuiTabs-indicatorSpan"})},...i,children:l})}),tL=d.memo(e=>{const{toolbars:t,value:n,onToolbarChange:o,selectProps:r,...i}=e,l=d.useCallback(s=>{o?.(s.target.value)},[o]),c=d.useMemo(()=>{const s=[];for(let u=0;u<t.length;u++){const h=t[u].label;s.push(a.jsx(B.MenuItem,{value:u,sx:{color:f=>{if(n===u)return f.palette.primary.main}},children:h},h))}return s},[t,n]);return a.jsx(B.FormControl,{sx:{minWidth:"125px",maxWidth:"125px","& .MuiInputBase-root":{paddingLeft:"0px",paddingRight:"0px"},"& .MuiSelect-select":{paddingTop:s=>s.spacing(.5),paddingBottom:s=>s.spacing(.5),paddingLeft:s=>s.spacing(2),color:s=>s.palette.primary.main},"& .MuiSelect-icon":{fill:s=>s.palette.text.icon??s.palette.action.active,"&:hover:not(.Mui-disabled)":{color:s=>s.palette.text.icon??s.palette.action.active}},...r},size:"small",children:a.jsx(B.Select,{value:n,onChange:l,variant:"outlined",sx:{backgroundImage:`linear-gradient(${ht.alpha("#fff",jn(5))}, ${ht.alpha("#fff",jn(5))})`},...i,children:c})})}),nL=d.memo(d.forwardRef((e,t)=>{const{commands:n,selectWrapper:o,selectProps:r={},renderCompact:i=!1,paletteWrapper:l,toolbarsProps:c,paletteProps:s={},workbook:u,sx:h,...f}=e,p=d.useMemo(()=>{const E=[],{ref:M,...j}=c?.Home||{};E.push({label:"Home",component:a.jsx(XD,{commands:n,...j})});const{ref:F,...k}=c?.Insert||{};E.push({label:"Insert",component:a.jsx(YD,{commands:n,...k})});const{ref:O,...S}=c?.View||{};return E.push({label:"View",component:a.jsx(JD,{commands:n,...S})}),E},[n]),m=d.useMemo(()=>{const E=[];for(let M=0;M<p.length;M++)E.push(d.cloneElement(p[M].component,{...p[M].component.props,key:p[M].key??p[M].label}));return E},[p]),[g,x]=d.useState(0),y=E=>{x(E)},w=d.useMemo(()=>i?a.jsx(tL,{toolbars:p,value:g,onToolbarChange:y,sx:r}):a.jsx(eL,{toolbars:p,value:g,onToolbarChange:y,sx:r}),[p,g,r,i]),{sx:b,...C}=s,_=a.jsx(B.Paper,{elevation:2,tabIndex:0,sx:{display:"flex",alignItems:"center",userSelect:"none",flexGrow:1,backgroundImage:`linear-gradient(${ht.alpha("#fff",jn(5))}, ${ht.alpha("#fff",jn(5))})`,marginLeft:E=>E.spacing(1),marginRight:E=>E.spacing(1),marginTop:E=>E.spacing(.5),marginBottom:E=>E.spacing(.5),...b},...C,children:m[g]});return a.jsxs(B.Box,{ref:t,className:"toolbarWrappers",sx:{display:"flex",flexDirection:"column",paddingTop:E=>E.spacing(.5),"*":{userSelect:"none"},...h},...f,children:[o?o(w):w,l?l(_):_]})})),oL=e=>a.jsx(J3,{...e}),rL=e=>a.jsx(Q3,{...e}),iL=e=>a.jsx(Y3,{...e}),ih=d.memo(d.forwardRef((e,t)=>{const{workbook:n,commands:o,onBeforeUserChange:r,onUserChange:i,disabled:l=!1,readOnly:c=!1,contextMenuProps:s,renderContextMenu:u=oL,sheetsAllProps:h,renderSheetsAll:f=rL,sheetTabProps:p,renderSheetTab:m,background:g="transparent",className:x,notifier:y,sx:w,borderWidth:b,borderColor:C,gridTheme:_,gridStyle:E,...M}=e,[j,F]=d.useState(n?.getSelectedSheetIndex()),[k,O]=d.useState(n?.getSheets().search()),[S,v]=d.useState(n?.getProtection());Zt(n,{onViewChange(J){F(J?.getSelectedSheetIndex())},onSheetsChange:J=>{O(J.getSheets().search())},onProtectionChange:J=>{v(J?.getProtection())}});const I=c||!S.isStructureAllowed(),T=d.useMemo(()=>{const J=[];for(let ae=0;ae<k.length;ae++)J.push(k[ae].getName());return J},[k]),R=d.useCallback(J=>{r?.(J)!==!1&&(n.getSheetAt(J).select(),i?.(J))},[n,r,i]),A=d.useCallback((J,ae)=>{n.getSheetAt(J).setName(ae),i?.(J)},[n,i]),D=d.useCallback((J,ae)=>{n.getSheetAt(J).setPosition(ae),i?.(ae)},[n,i]),L=et(()=>{if(r?.(j)===!1)return;const J=j+1;n.getSheets().add({name:void 0,autoSelect:!0}),i?.(J)},[n,r,i,j]),V=d.useMemo(()=>({placement:"top-start"}),[]),W=d.useRef(null),[P,U]=d.useState(!1),X=d.useCallback(J=>{const{closeFloatAll:ae,floatReference:Ce}=J;return f({workbook:n,gridStyle:E,floatReference:Ce,closeFloatAll:ae,...h})},[f,h,l,n,E]),{reference:ee,component:H}=xi({label:"allSheet",popperProps:V,anchor:W.current,onOpen:()=>U(!0),onClose:()=>U(!1),createPopupPanel:X}),$=d.useRef(null),[z,q]=d.useState(null),Z=d.useCallback(J=>{const{floatReference:ae}=J;return u?.({workbook:n,index:z?.index,tabStripRef:$.current,commands:o,disabled:l,floatReference:ae,...s})},[u,s,l,n,o,z]),{reference:Q,component:Y}=xi({label:"sheetTab",popperProps:V,anchor:{getBoundingClientRect:()=>new DOMRect(z?.left||0,z?.top||0,0,0)},onClose:()=>q(null),createPopupPanel:Z});d.useEffect(()=>{z?Q.open(0):Q.close(0)},[z]);const te=d.useCallback((J,ae)=>{J.preventDefault(),q({left:J.clientX-2,top:J.clientY-4,index:ae})},[]),ie=et(J=>{let ae;try{ae=n?.getSheetAt(J.index)}catch{}return ae?(m??iL)({sheet:ae,gridTheme:_,onContextMenu:Ce=>{R(J.index),te(Ce,J.index)},...J,...p}):null},[m,p,n,_]),fe=d.useMemo(()=>I?null:a.jsx(Ir,{disableInteractive:!0,title:"New sheet",children:a.jsx(B.IconButton,{disabled:l,component:"div",sx:{padding:"0","&:hover:not([disabled])":{color:J=>J.palette.primary.main},color:J=>J.palette.text.icon??J.palette.action.active,"& svg":{width:"18px",height:"18px"}},"aria-label":"addTab",size:"small",onMouseDown:J=>{J.button===0&&J.preventDefault()},onClick:()=>L(),children:a.jsx(gn.AddCircleOutline,{})})}),[l,I,L]);return a.jsxs(B.Box,{ref:t,className:Yn(x),sx:{position:"relative",display:"flex",alignItems:"stretch",flex:"1 1 100%",maxWidth:"100%",...w},...M,children:[a.jsx(Ry,{ref:$,selectedTabIndex:j,tabNames:T,onSelectedTabIndexChange:R,onTabNameChange:A,onTabMove:D,background:g,borderColor:C,borderWidth:b,activeColor:null,disabled:l,disableDrag:I,createScrollStartButton:q_,createScrollEndButton:Z_,createScrollEdgeButton:U_,createTabButton:ie,createTabDivider:J=>{const{key:ae,...Ce}=J;return a.jsx(Mt,{sx:{marginLeft:"-1px",marginRight:"0px",marginTop:"6px",marginBottom:"6px",background:Me=>ht.alpha(Me.palette.divider,.25)},...Ce},ae)},editLabelProps:{readOnly:I,maxLength:31,styleHover:{fontWeight:"700"},onKeyPress:J=>{n.isValidSheetNameCharacter(J.key)||J.preventDefault()},onCancel:()=>{i?.(j)},notifier:y},children:a.jsx(Ir,{disableInteractive:!0,title:P?"":"List all sheets",children:a.jsx(Tr,{sx:{padding:"0px",ml:.5,mr:0,mt:0,mb:0,"& svg":{transform:"scale(0.8, 1)"},color:J=>J.palette.text.icon??J.palette.action.active},ref:W,dense:!0,outlined:!1,selected:P,color:"primary","aria-label":"menu",onMouseDown:J=>{J.button===0&&J.preventDefault()},onClick:()=>{P?ee.close(0):ee.open(0)},icon:a.jsx(gn.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:fe}),a.jsx("div",{style:{borderTop:`solid ${C} ${b}px`,flex:1,minWidth:"24px"}}),Y,H]})}));ih.displayName="WorkbookStrip";const lh=d.memo(d.forwardRef((e,t)=>{const{workbook:n,commands:o,disabled:r,sx:i,floatReference:l,className:c,...s}=e,[u,h]=d.useReducer(v=>v+1,0),[f,p]=d.useState(n.getSelectedSheet()),[m,g]=d.useState(f.getSelectedRanges()),[x,y]=d.useState(f.getSelectedCell());Zt(n,{onSheetsChange(){p(n.getSelectedSheet())}}),Zt(f.getSelection(),{onChange(){g(f.getSelectedRanges()),y(f.getSelectedCell())}}),ko(o,[],{onChange:()=>{h()}});const w=d.useMemo(()=>({}),[]),b=d.useMemo(()=>({commandHook:{beforeExecute:(v,I)=>l.closeAll(),onExecute(){},onError(){console.log("onError")}},disabled:r,scope:"contextMenu",parentFloat:l}),[r,l]),C=d.useMemo(()=>({...w,...b,variant:Vt.Menuitem}),[w,b]),_=d.useMemo(()=>({commands:o,variant:Vt.Menuitem,parentFloat:l,...b}),[o,b,l]),E=[];let M=m.isEntireRows(),j=m.isEntireColumns();m&&(M&&(E.push(a.jsx(Mt,{orientation:"horizontal"},"context:"+E.length)),E.push(d.createElement(je,{command:o.getCommand("hideColumns"),...C,icon:ge(a.jsx(zC,{})),key:"context:"+E.length})),E.push(d.createElement(je,{command:o.getCommand("unhideColumns"),...C,icon:ge(a.jsx(FC,{})),key:"context:"+E.length}))),j&&(E.push(a.jsx(Mt,{orientation:"horizontal"},"context:"+E.length)),E.push(d.createElement(je,{command:o.getCommand("hideRows"),...C,icon:ge(a.jsx(NC,{})),key:"context:"+E.length})),E.push(d.createElement(je,{command:o.getCommand("unhideRows"),...C,icon:ge(a.jsx(BC,{})),key:"context:"+E.length}))),(M||j)&&E.push(a.jsx(Mt,{orientation:"horizontal"},"context:"+E.length)),M&&E.push(d.createElement(je,{command:o.getCommand("autoFitColumns"),...C,icon:ge(a.jsx(v_,{})),key:"context:"+E.length})),j&&E.push(d.createElement(je,{command:o.getCommand("autoFitRows"),...C,icon:ge(a.jsx(S_,{})),key:"context:"+E.length})));const F=[],k=o.getCommand("formatTableStyle"),O=k?.context()?.table();if(s0(k),!M&&!j){if(F.push(a.jsx(Mt,{orientation:"horizontal"},"contextBefore:"+F.length)),x?.getHyperlink())F.push(d.createElement(gi,{..._,popupCommandKeys:["updateHyperlink","deleteHyperlink"],popupScope:"hyperlink",key:"contextBefore:action"+F.length,quickCommand:"openHyperlink",icon:v=>v.key()==="openHyperlink"?ge(a.jsx(B2,{})):null}));else{const v=o.getCommand("updateHyperlink");F.push(d.createElement(je,{command:v,...C,icon:ge(a.jsx(B2,{})),key:"contextBefore:"+F.length}))}if(x?.getComments())F.push(d.createElement(gi,{..._,popupCommandKeys:["deleteComments"],key:"contextBefore:action"+F.length,quickCommand:"updateComments",icon:v=>v.key()==="updateComments"?ge(a.jsx(N2,{})):null}));else{const v=o.getCommand("updateComments");F.push(d.createElement(je,{command:v,...C,icon:ge(a.jsx(N2,{})),key:"contextBefore:"+F.length}))}O?F.push(d.createElement(gi,{..._,variant:Vt.Menuitem,key:"contextBefore:"+F.length,popupCommandKeys:["convertTableToRange","deleteTable"],popupScope:"table",scope:"context",commandState:O,quickCommand:"editTable",icon:v=>(v.key(),ge(a.jsx(ms,{})))})):F.push(d.createElement(je,{command:o.getCommand("insertTable"),...C,icon:ge(a.jsx(ms,{})),key:"context:"+E.length})),F.push(d.createElement(W3,{..._,key:"contextBefore:"+F.length}))}const S=a.jsxs(a.Fragment,{children:[a.jsx(je,{command:o.getCommand("cut"),...C,icon:a.jsx(KS,{})}),a.jsx(Dd,{command:o.getCommand("copy"),...C}),a.jsx($3,{command:o.getCommand("paste"),..._,includePasteAllInPopup:!1}),a.jsx(Mt,{orientation:"horizontal"}),a.jsx(V3,{..._}),a.jsx(Mt,{orientation:"horizontal"}),a.jsx(B3,{commands:o,..._,disableSheet:!0}),a.jsx(N3,{commands:o,..._,disableSheet:!0}),a.jsx(z3,{..._}),F,E]});return a.jsx(B.Box,{ref:t,className:Yn("menu",c),sx:{...i},...s,children:S})}));var P8,A8;lh.displayName="WorkbookContextMenu",function(){if(A8)return P8;A8=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 xl=="object"&&xl&&xl.Object===Object&&xl,l=typeof self=="object"&&self&&self.Object===Object&&self,c=i||l||Function("return this")(),s=Object.prototype.toString,u=Math.max,h=Math.min,f=function(){return c.Date.now()};function p(g){var x=typeof g;return!!g&&(x=="object"||x=="function")}function m(g){if(typeof g=="number")return g;if(function(w){return typeof w=="symbol"||function(b){return!!b&&typeof b=="object"}(w)&&s.call(w)=="[object Symbol]"}(g))return NaN;if(p(g)){var x=typeof g.valueOf=="function"?g.valueOf():g;g=p(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}P8=function(g,x,y){var w,b,C,_,E,M,j=0,F=!1,k=!1,O=!0;if(typeof g!="function")throw new TypeError("Expected a function");function S(A){var D=w,L=b;return w=b=void 0,j=A,_=g.apply(L,D)}function v(A){var D=A-M;return M===void 0||D>=x||D<0||k&&A-j>=C}function I(){var A=f();if(v(A))return T(A);E=setTimeout(I,function(D){var L=x-(D-M);return k?h(L,C-(D-j)):L}(A))}function T(A){return E=void 0,O&&w?S(A):(w=b=void 0,_)}function R(){var A=f(),D=v(A);if(w=arguments,b=this,M=A,D){if(E===void 0)return function(L){return j=L,E=setTimeout(I,x),F?S(L):_}(M);if(k)return E=setTimeout(I,x),S(M)}return E===void 0&&(E=setTimeout(I,x)),_}return x=m(x)||0,p(y)&&(F=!!y.leading,C=(k="maxWait"in y)?u(m(y.maxWait)||0,x):C,O="trailing"in y?!!y.trailing:O),R.cancel=function(){E!==void 0&&clearTimeout(E),j=0,w=M=b=E=void 0},R.flush=function(){return E===void 0?_:T(f())},R}}();var F8,z8,B8={exports:{}},l2={};z8||(z8=1,B8.exports=function(){if(F8)return l2;F8=1;var e=d,t=typeof Object.is=="function"?Object.is:function(s,u){return s===u&&(s!==0||1/s==1/u)||s!=s&&u!=u},n=e.useState,o=e.useEffect,r=e.useLayoutEffect,i=e.useDebugValue;function l(s){var u=s.getSnapshot;s=s.value;try{var h=u();return!t(s,h)}catch{return!0}}var c=typeof window>"u"||window.document===void 0||window.document.createElement===void 0?function(s,u){return u()}:function(s,u){var h=u(),f=n({inst:{value:h,getSnapshot:u}}),p=f[0].inst,m=f[1];return r(function(){p.value=h,p.getSnapshot=u,l(p)&&m({inst:p})},[s,h,u]),o(function(){return l(p)&&m({inst:p}),s(function(){l(p)&&m({inst:p})})},[s]),i(h),h};return l2.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:c,l2}()),B8.exports;var N8,V8,Da={exports:{}},hl={exports:{}},lL=hl.exports;(function(){if(V8)return Da.exports;V8=1;for(var e=(N8||(N8=1,function(){var f,p,m,g,x,y;typeof performance<"u"&&performance!==null&&performance.now?hl.exports=function(){return performance.now()}:typeof process<"u"&&process!==null&&process.hrtime?(hl.exports=function(){return(f()-x)/1e6},p=process.hrtime,f=function(){var w;return 1e9*(w=p())[0]+w[1]},g=f(),y=1e9*process.uptime(),x=g-y):Date.now?(hl.exports=function(){return Date.now()-m},m=Date.now()):(hl.exports=function(){return new Date().getTime()-m},m=new Date().getTime())}.call(lL)),hl.exports),t=typeof window>"u"?xl: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 c=0,s=0,u=[],h=1e3/60;r=function(f){if(u.length===0){var p=e(),m=Math.max(0,h-(p-c));c=m+p,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(c)}catch(y){setTimeout(function(){throw y},0)}},Math.round(m))}return u.push({handle:++s,callback:f,cancelled:!1}),s},i=function(f){for(var p=0;p<u.length;p++)u[p].handle===f&&(u[p].cancelled=!0)}}Da.exports=function(f){return r.call(t,f)},Da.exports.cancel=function(){i.apply(t,arguments)},Da.exports.polyfill=function(f){f||(f=t),f.requestAnimationFrame=r,f.cancelAnimationFrame=i},Da.exports})();var hi={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 Vb=e=>{const{workbook:t,workbookElement:n,notifier:o,commandTarget:r,commands:i,darkMode:l,onShowSidebar:c,onNewWorkbook:s=Hb}=e,[u,h]=d.useState(t?.getSelectedSheet()),[f,p]=d.useState(t?.getSheets().search()),m=et(c,[c]),g=et(s,[s]),x=d.useMemo(()=>[new jo("workbookStatistics",r,{label:"Workbook Statistics",description:"Show the workbook statistics.",shortcut:{key:"G",modifiers:[tn.Ctrl,tn.Shift]}}),new jo("showFormat",r,{label:"Show Format",description:"Open the format pane.",shortcut:{key:"F",modifiers:[tn.Ctrl,tn.Shift]}}),new yn("newCellStyle",r,{label:"New Cell Style…",scopedLabels:{cellStyle:"New Cell Style"},description:"Create a new named style can can be quickly used later."}),new yn("deleteCellStyle",r,{label:"Delete Cell Style",scopedLabels:{cellStyle:"Delete"},description:"Remove a named style that is no longer needed."}),new yn("modifyCellStyle",r,{label:"Modify Cell Style",scopedLabels:{cellStyle:"Modify"},description:"Update a style with the currently style."}),new jo("find",r,{label:"Find",description:"Open the Find window.",shortcut:[{key:"F",modifiers:[tn.Ctrl]},{key:"F5",modifiers:[tn.Shift]}]}),new jo("findReplace",r,{label:"Find & Replace",description:"Open the Find & Replace window.",shortcut:[{key:"H",modifiers:[tn.Ctrl]},{key:"H",modifiers:[tn.Ctrl,tn.Alt]}]}),new jo("goto",r,{label:"Go To",description:"Open the 'Go To' window.",shortcut:[{key:"G",modifiers:[tn.Ctrl]}]}),new jo("workbookViewToggleExpandFormulaBar",r,{label:"Toggle Expand Formula bar",description:"Expand or collapse the formula bar.",shortcut:{key:"U",modifiers:[tn.Ctrl,tn.Shift]}}),new jo("workbookViewToggleShowFormulaBar",r,{label:"View Formula bar",scopedLabels:{view:"Formula Bar"},description:"Show or hide the formula bar."}),new jo("workbookViewToggleShowTabs",r,{label:"View Sheet Tabs",description:"Show or hide the sheet tabs.",scopedLabels:{view:"Sheet Tabs"}}),new jo("workbookViewToggleShowStatusBar",r,{label:"View Status Bar",description:"Show or hide the status bar.",scopedLabels:{view:"Status Bar"}}),new jo("workbookViewToggleShowHorizontalScrollBar",r,{label:"View Horizontal Scrollbar",description:"Show or hide the horizontal scrollbar.",scopedLabels:{view:"Horizontal Scrollbar"}}),new jo("workbookViewToggleShowVerticalScrollBar",r,{label:"View Vertical Scrollbar",description:"Show or hide the vertical scrollbar.",scopedLabels:{view:"Vertical Scrollbar"}}),new yn("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 yn("deleteSheet",r,{label:"Delete Sheet",scopedLabels:{sheet:"Delete"},description:"Delete the sheet and all the data."}),new yn("addSheet",r,{label:"Insert Sheet",scopedLabels:{sheet:"Insert"},description:"Insert sheet before the current sheet.",shortcut:[{key:"F11",modifiers:[tn.Shift]},{key:"F1",modifiers:[tn.Alt,tn.Shift]}]}),new yn("duplicateSheet",r,{label:"Duplicate Sheet",description:"Duplicate the current sheet.",scopedLabels:{sheet:"Duplicate"}}),new yn("nextSheet",r,{label:"Next Sheet",scopedLabels:{sheet:"Next"},description:"Activate the next sheet.",shortcut:[{key:"PageDown",modifiers:[tn.Ctrl]}]}),new yn("previousSheet",r,{label:"Previous Sheet",scopedLabels:{sheet:"Previous"},description:"Activate the previous sheet.",shortcut:[{key:"PageUp",modifiers:[tn.Ctrl]}]}),new yn("selectNextSheet",r,{label:"Select Next Sheet",scopedLabels:{sheet:"Select Next"},description:"Select the next sheet.",shortcut:[{key:"PageDown",modifiers:[tn.Ctrl,tn.Shift]}]}),new yn("selectPreviousSheet",r,{label:"Select Previous Sheet",scopedLabels:{sheet:"Select Previous"},description:"Select the previous sheet.",shortcut:[{key:"PageUp",modifiers:[tn.Ctrl,tn.Shift]}]}),new yn("selectTheme",r,{label:"Theme",description:"Select a theme that coveys a style suitable for your data."}),new yn("selectNamed",r,{label:v=>v?.getName()??"Select Named Item",scopedLabels:{namedItem:v=>v?.getName()??"Select"},description:"Select the item."}),new yn("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 yn("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 yn("deleteNamedReference",r,{label:"Delete Named Reference",scopedLabels:{namedItem:"Delete"},description:"Remove the named reference."}),new jo("activeNameBox",r,{label:"Activate Name Box",description:"Move the focus to the name box.",shortcut:{key:"F3",modifiers:[tn.Alt]}}),new jo("createNamedReferenceFromSelection",r,{label:"Create from Selection",description:"Automatically generate names from the selected cells.",shortcut:{key:"F3",modifiers:[tn.Ctrl,tn.Shift]}}),new jo("activeNameManager",r,{label:"Activate Name Manager",description:`Create, edit, delete, and find all the names used in the workbook.
|
|
103
|
+
|
|
104
|
+
Names can be used as a substitute for cell references.`,shortcut:{key:"F3",modifiers:[tn.Ctrl]}}),new yn("fullScreenToggle",r,{label:"FullScreen",description:"Toggle showing the workbook using the full screen.",shortcut:{key:"F11"}}),new yn("showScriptEditor",r,{label:"Scripts",scopedLabels:{scripts:"Script Editor…"},description:"Show the script editor.",shortcut:[{key:"F11",modifiers:[tn.Alt]}]},function(v=!0){m?.()}),new yn("executeScript",r,{label:"Run Script",description:"Run the selected or last executed script.",shortcut:{key:"F8"}}),new yn("executeSelectedScript",r,{label:"Run Script",description:"Run the selected script.",shortcut:{key:"F8"}}),new yn("saveScripts",r,{label:"Save Script",description:"Save the current scripts."}),new yn("maximumWorkbookToggle",r,{label:"Maximize",description:"Toggle showing the workbook maximized.",shortcut:{key:"F10",modifiers:[tn.Ctrl]}}),new yn("spellCheck",r,{label:"Spell Check",description:"Check the workbook for spelling mistakes.",shortcut:{key:"F7"}}),new yn("calculateAll",r,{label:"Calculate Now",description:"Recalculate all formulas.",shortcut:{key:"F9"}}),new jo("calculate",r,{label:"Calculate Sheet",description:"Recalculate the formulas on the current sheet.",shortcut:{key:"=",modifiers:[tn.Ctrl]}}),new jo("closeWorkbook",r,{label:"Close Workbook",description:"Close the workbook.",shortcut:{key:"W",modifiers:[tn.Ctrl]}}),new jo("newWorkbook",r,{label:"New Workbook",description:"Create a new workbook in another tab.",shortcut:{key:"N",modifiers:[tn.Ctrl]}})],[]),y=d.useMemo(()=>{let v=null;return v=i?i.createChildGroup(r,"workbook",!1):new V5(r,"workbook"),v.addCommands(x,!0),v},[i,x]),w=dd(),b=d.useRef(null),C=et(()=>{let v,I=null;const T=y.getCommand("executeScript");if(T.update({disabled:!1,context:{getScripts:()=>t.getScripts()}}),!T)return;const R=y.getCommand("executeSelectedScript");if(!R)return;const A={saveSource:async D=>{let L=null,V=null;const W=t.getScripts();try{D&&(V=await o?.showBusy?.("Saving Scripts..."),L=await W.createModule({source:D})),W.addModule("scripts",L,{replace:!0}),V?.()}catch(P){V?.(),console.warn("Unable to compile",P),o?.showError?.(P)}return L},addContainerListener:D=>(_.current=D,()=>{_.current=null}),setSelectedFunction:D=>{v=D??b.current??null,Promise.resolve(v).then(L=>{R.update({disabled:L===null})})},quickInsertFunction:D=>{const L=`=${D.toUpperCase()}(`,V={text:L+")",editMode:!0,initialSelection:{start:L.length,end:L.length+0}};w.setMode(W=>W?.key==="edit"?{...W,args:{...W.args}}:{key:"edit",args:{stateAndCoords:null,start:V}})},getSelectedFunction:()=>v,setEditor:D=>{I=D??null,y.getCommand("showScriptEditor")?.update({state:D!==null})},getEditor:()=>I,getRanges:D=>{try{return t.getRanges(D)}catch{}return null},getScripts:()=>t.getScripts(),isReadOnly:()=>t.getProtection().isStructureAllowed()===!1};R.update({context:A})},[y,t,n,o]),_=d.useRef(null);Zt(t,{onBeforeSave:async()=>{await _.current?.onBeforeSave()},onProtectionChange:()=>{_.current?.onReadonlyChange()},onLoad:()=>{(async()=>(await t.getCalculation().start(),t.getScripts().start(),_.current?.onScriptChange()))()}}),Zt(t,{onSheetsChange:v=>{p(v.getSheets().search())},onViewChange(v){h(v?.getSelectedSheet())},onProtectionChange:v=>{const I={disabled:!v.getProtection().isStructureAllowed()};y.getCommand("hideSheet").update(I),y.getCommand("deleteSheet").update(I),y.getCommand("addSheet").update(I),y.getCommand("duplicateSheet").update(I),y.getCommand("selectTheme").update(I),y.getCommand("addNamedReference").update(I),y.getCommand("editNamedReference").update(I),y.getCommand("deleteNamedReference").update(I)},onScriptsChange:v=>{C()}});const{isFullscreenAvailable:E,isFullscreenEnabled:M,toggleFullscreen:j}=function(v={}){const{target:I,onChange:T,onError:R,requestFullScreenOptions:A}=v,[D,L]=d.useState(!1),[V,W]=d.useState(null),[P,U]=d.useState(!1),X=d.useCallback(()=>hi.requestFullscreen(I?.current||null,A),[I,A]),ee=d.useCallback(()=>hi.exitFullscreen(),[]),H=d.useCallback(()=>hi.fullscreenElement?ee():X(),[X,ee]),$=d.useCallback(q=>{const Z=hi.fullscreenElement;W(Z),U(!!Z),T?.(q)},[T]),z=d.useCallback(q=>{const Z=hi.fullscreenElement;W(Z),U(!!Z),R?.(q)},[R]);return d.useEffect(()=>{L(hi.fullscreenEnabled)},[]),d.useEffect(()=>(hi.on("change",$),hi.on("error",z),()=>{hi.off("change",$),hi.off("error",z)}),[$,z]),{isFullscreenAvailable:D,fullscreenElement:V,isFullscreenEnabled:P,enableFullscreen:X,disableFullscreen:ee,toggleFullscreen:H}}({target:{current:n??document.body}}),F=P3();d.useEffect(()=>{y.getCommand("selectTheme").update({state:()=>t.getTheme(),context:()=>({theme:t.getTheme(),themes:F,darkMode:l})})},[t?.getTheme(),l]);const k=et(async function(v,I){let T=null;const R=t.getScripts();if(v?.declaration||v?.functionName){const A=v.declaration?v.declaration.getName():v.functionName;R.searchFunction({name:A}).length>0&&(T=A)}if(T)try{await R.executeMacro(T),b.current=Promise.resolve({source:null,name:T})}catch(A){return void o?.showError?.(A)}},[t,o]);d.useEffect(()=>{y.getCommand("newCellStyle").updateCallback(v=>{o?.showInputOptions?.({initialValue:(()=>{let I=0;for(;;){I++;const T=`Style ${I}`;try{return t.getStyles().validateStyleName(T,!0),T}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(I,T)=>{let R=null;try{t.getStyles().validateStyleName(I,!1)}catch(L){R=L.message}let A=t.getStyles().getNamed(I),D=R;return!D&&A&&(D=`Update style '${A.getName()}'.`),{valid:R===null,message:D}}}).then(({input:I,option:T})=>{const R=t.getSelectedSheet().getSelectedRange();if(T!=="Ok")return;const A=t.getStyles().setNamed({name:I,style:R.getCell().getStyle()});R.updateStyle({named:A.getName()})})}),y.getCommand("deleteCellStyle").updateCallback(v=>{v.delete()}),y.getCommand("modifyCellStyle").updateCallback(({named:v})=>{const I=t.getSelectedSheet().getSelectedRange();t.getStyles().setNamed({name:v.getName(),style:I.getCell().getStyle()})}),y.getCommand("hideSheet").updateCallback(v=>{t.getSheetAt(v).setVisibility(N.ISheet.Visibility.Hidden)}),y.getCommand("deleteSheet").updateCallback(async v=>{t.getSheetAt(v??t.getSelectedSheetIndex())?.delete()}),y.getCommand("addSheet").updateCallback(v=>{t.getSheets().add({index:v,autoSelect:!0})}),y.getCommand("duplicateSheet").updateCallback(async v=>{(await t.getSheetAt(v??t.getSelectedSheetIndex())?.duplicate())?.select()}),y.getCommand("nextSheet").updateCallback(v=>{t.getNextSheet(v??t.getSelectedSheetIndex()).select()}),y.getCommand("previousSheet").updateCallback(v=>{t.getPreviousSheet(v??t.getSelectedSheetIndex()).select()}),y.getCommand("selectNextSheet").updateCallback(v=>{t.getNextSheet(v??t.getSelectedSheetIndex()).select()}),y.getCommand("selectPreviousSheet").updateCallback(v=>{t.getPreviousSheet(v??t.getSelectedSheetIndex()).select()}),y.getCommand("selectTheme").updateCallback(v=>{t.setTheme(v)}),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(k),y.getCommand("executeSelectedScript").updateCallback(k)},[t,o]);const O=et(async v=>{let I=0,T=null,R="Find & Replace";v?.replace&&!v?.replaceOptions?.maxCount&&(R="Replace All");const A=await o?.showBusy?.(R);try{const D=v?.scope??"sheet";let L=null;const V=t.getSelectedSheet(),W={from:V.getSelectedCell(),...v.findOptions};if(L=D==="sheet"?t.getSelectedSheet().find(v.findText,W):t.find(v.findText,W),v.replace){const P=t.replace(L,v.replaceText,v.replaceOptions);I=P.count,v.replaceOptions.maxCount&&(T=P.last)}else{let P=L.next();P.done||(I++,T=P.value)}T?.select({autoFocus:!1}),A?.(),!v.replaceOptions.maxCount&&I>1&&o?.showMessage?.(`We replaced ${I} cells.`)}catch(D){A?.(),o?.showError?.(D)}return I},[t,n]),S=et(v=>{const I={value:v,context:{selection:()=>{const T=t.getSelectedRanges(),R=[];for(let A=0;A<T.getCount();A++){const D=T.at(A).getFixed(!0).getCoords();R.push(D)}return t.getRanges(R)},getNames:()=>t.getNames()},onUpdate:async T=>{try{await T.select()}catch(R){o?.showMessage?.(R.message,{type:A0})}}};return o.showWindow?.("namedDetails",I)},[o,t,n]);return d.useEffect(()=>{const v=(I=!1)=>{const T=t.getSelectedCell(),R={onFindOrReplace:O,onKeyDown:A=>{y.findCommandByEvent(A)!==y.getCommand("find")&&y.findCommandByEvent(A)!==y.getCommand("findReplace")||A.preventDefault()},findOptions:{},findText:T.toTextUnformatted(!0)};R.replace=I,o.showWindow?.("find",R,{disableAutoDestroy:!0})};y.getCommand("find")?.update({disabled:!o?.showWindow}).updateCallback(()=>{v()}),y.getCommand("findReplace")?.update({disabled:!o?.showWindow}).updateCallback(()=>{v(!0)}),y.getCommand("goto")?.update({disabled:!o}).updateCallback(()=>{const I={onInputOption:async T=>{try{await t.getRanges(T).select()}catch(R){o?.showMessage?.(R.message,{type:A0})}},onKeyDown:T=>{y.findCommandByEvent(T)===y.getCommand("goto")&&T.preventDefault()},title:y.getCommand("goto")?.label(),inputLabel:"Location",options:["Go To"]};o?.showInputOptions?.(I)}),y.getCommand("selectNamed")?.update({disabled:!o}).updateCallback(async I=>{if(I)try{await I.select()}catch(T){o?.showError?.(T)}}),y.getCommand("addNamedReference")?.updateCallback(async function(I){S(null)}),y.getCommand("editNamedReference")?.updateCallback(async function(I){S(I)}),y.getCommand("deleteNamedReference")?.updateCallback(async function(I){I?.delete?.()}),y.getCommand("activeNameBox")?.updateCallback(async function(){n?.getFormulaBarElement()?.getNamedCollectionEditorElement()?.focus()})},[n,t,o]),Zt(t?.getView(),{onViewChange:v=>{y.getCommand("workbookViewToggleShowFormulaBar").update({state:v.isShowFormulaBar()}).updateCallback(()=>{v.setShowFormulaBar(!v.isShowFormulaBar())}),y.getCommand("workbookViewToggleShowTabs").update({state:v.isShowTabs()}).updateCallback(()=>{v.setShowTabs(!v.isShowTabs())}),y.getCommand("workbookViewToggleShowStatusBar").update({state:v.isShowStatusBar()}).updateCallback(()=>{v.setShowStatusBar(!v.isShowStatusBar())}),y.getCommand("workbookViewToggleShowHorizontalScrollBar").update({state:v.isShowHorizontalScrollbar()}).updateCallback(()=>{v.setShowHorizontalScrollbar(!v.isShowHorizontalScrollbar())}),y.getCommand("workbookViewToggleShowVerticalScrollBar").update({state:v.isShowVerticalScrollbar()}).updateCallback(()=>{v.setShowVerticalScrollbar(!v.isShowVerticalScrollbar())})}}),d.useEffect(()=>{y.getCommand("fullScreenToggle").update({state:M,disabled:!E}).updateCallback(()=>{j()})},[M,E]),d.useEffect(()=>{const v=t.getProtection().isStructureAllowed();y.getCommand("hideSheet").update({disabled:f.length<=1||!v}),y.getCommand("deleteSheet").update({disabled:f.length<=1||!v})},[f,u]),y},Hb=()=>{window.open(window.origin.toString(),"sheetxl-"+N.CommonUtils.uuidV4(),"popup=true")},$b=d.memo(d.forwardRef((e,t)=>{const{movable:n,commands:o,disabled:r,sx:i,floatReference:l,...c}=e;Zt(n,{onAnyChange(g){}});const s=d.useMemo(()=>({}),[]),u=d.useMemo(()=>({commandHook:{beforeExecute:(g,x)=>l.closeAll(),onExecute(){},onError(){console.log("onError")}},disabled:r,parentFloat:l}),[r,l]),h=d.useMemo(()=>({variant:Vt.Menuitem,...s,...u}),[s,u]),f=d.useMemo(()=>({commands:o,variant:Vt.Menuitem,parentFloat:l,...u}),[o,u,l]),p=g=>{switch(g?.key()){case"moveToFront":return ge(a.jsx(E_,{}));case"moveForward":return ge(a.jsx(k_,{}));case"moveToBack":return ge(a.jsx(__,{}));case"moveBackward":return ge(a.jsx(T_,{}));case"toggleLockAspectRatio":return ge(a.jsx(b6,{}));case"formatDrawAlignLeft":return ge(a.jsx(v6,{}));case"formatDrawAlignCenter":return ge(a.jsx(j_,{}));case"formatDrawAlignRight":return ge(a.jsx(M_,{}));case"formatDrawAlignTop":return ge(a.jsx(R_,{}));case"formatDrawAlignMiddle":return ge(a.jsx(I_,{}));case"formatDrawAlignBottom":return ge(a.jsx(D_,{}));case"formatDrawDistributeHorz":return ge(a.jsx(L_,{}));case"formatDrawDistributeVert":return ge(a.jsx(O_,{}));case"formatAnchorTypeTwoCell":case"formatAnchorTypeOneCell":case"formatAnchorTypeAbsolute":return ge(a.jsx(w6,{}));default:return null}},m=a.jsxs(a.Fragment,{children:[a.jsx(Dd,{command:o.getCommand("copy"),...h,variant:Vt.Menuitem}),[],a.jsx(Mt,{orientation:"horizontal"}),a.jsx(gi,{...f,popupCommandKeys:["moveToFront","moveForward"],quickCommand:"moveToFront",icon:p}),a.jsx(gi,{...f,popupCommandKeys:["moveToBack","moveBackward"],quickCommand:"moveToBack",icon:p}),a.jsx(Mt,{orientation:"horizontal"}),a.jsx(je,{...h,command:o.getCommand("toggleLockAspectRatio"),icon:ge(a.jsx(b6,{}))}),a.jsx(Mt,{orientation:"horizontal"}),a.jsx(gi,{...f,popupCommandKeys:["formatDrawAlignLeft","formatDrawAlignCenter","formatDrawAlignRight",null,"formatDrawAlignTop","formatDrawAlignMiddle","formatDrawAlignBottom",null,"formatDrawDistributeHorz","formatDrawDistributeVert"],label:"Align",icon:g=>p(g)||ge(a.jsx(v6,{})),tooltip:"Quickly change the placement of your drawings."}),a.jsx(Mt,{orientation:"horizontal"}),a.jsx(gi,{...f,popupCommandKeys:["formatAnchorTypeTwoCell","formatAnchorTypeOneCell","formatAnchorTypeAbsolute"],label:"Sizing",icon:g=>p(g)||ge(a.jsx(w6,{})),tooltip:"Determine how the drawing size will adjust as the cell sizes adjust."}),[]]});return a.jsx(B.Box,{ref:t,sx:{paddingTop:"4px",paddingBottom:"4px",...i},...c,children:m})}));$b.displayName="MovableContextMenu";const aL="_sheetxl-theme_4opcr_2",sL="_sheetxl-workbook_1j3lu_5",cL={fireOnModelChange:!1},a2={flex:"1 1 100%",display:"flex"},dL=e=>a.jsx(q3,{...e}),uL=e=>a.jsx(ih,{...e}),hL=e=>a.jsx($b,{...e}),pL=e=>a.jsx(lh,{...e}),fL=e=>a.jsx(X3,{...e}),mL=(e,t)=>a.jsx(K3,{ref:t,...e}),Wb=e=>a.jsx(c0,{...e}),gL=(e,t)=>a.jsx(ey,{ref:t,...e}),ah=d.memo(d.forwardRef((e,t)=>{const{workbook:n,createWorkbookOptions:o,onNewWorkbook:r,onElementLoad:i,notifier:l,autoFocus:c=!1,sx:s,style:u,className:h,onFocus:f,onBlur:p,onKeyDown:m,onRepeatCommandChange:g,commands:x,showFormulaBar:y,formulaBarProps:w,renderFormulaBar:b=mL,showTabs:C,tabsProps:_,renderTabs:E=uL,showStatusBar:M,statusBarProps:j,renderStatusBar:F=dL,toolbarProps:k,renderToolbar:O=Nb,contextMenuSx:S,renderContextMenu:v=pL,renderFilterMenu:I=fL,renderMovableMenu:T=hL,renderLoadingPanel:R=Wb,loadingPanelProps:A,sheetProps:D,renderSheet:L=gL,showHorizontalScrollbar:V,showVerticalScrollbar:W,gridTheme:P,headersTheme:U,enableDarkImages:X,...ee}=e,H=Zr(),$=P3(),z=d.useMemo(()=>{const _e={theme:$.getDefaultTheme(),...o};return n??new N.Workbook(_e)},[n]),q=d.useRef(null),[Z,Q]=d.useState(!1),Y=d.useRef(null),te=d.useMemo(()=>a.jsx(B.Box,{className:"sheetxl-viewport",sx:{width:"100%",height:"100%",boxSizing:"border-box",position:"absolute",pointerEvents:"none !important","& > :first-of-type":{position:"relative"}},ref:Y}),[]),[ie,fe]=d.useState(!1),[J,ae]=d.useState(!1),Ce=d.useCallback(()=>{fe(!0)},[]),Me=d.useRef(null),re=Ii(t,()=>({isWorkbookElement:()=>!0,getWorkbook:()=>z,getSheetElement:()=>q.current,getViewportElement:()=>Y.current,getFormulaBarElement:()=>Me.current,focus(){q&&q.current&&q.current.focus()}}),[z]),oe=d.useRef(null);d.useLayoutEffect(()=>{ie&&re.current&&(ae(!0),oe.current!==i&&(i?.({source:re.current}),oe.current=i))},[ie,re.current]),o8(re.current);const ue=d.useCallback(_e=>(q.current?.submitEdit(),!0),[]),De=d.useCallback(()=>{requestAnimationFrame(()=>{q?.current?.focus()})},[]),[ze,mt]=d.useState(z?.getSelectedSheet()),[bt,ve]=d.useState(z?.getProtection());Zt(z,{onSheetsChange:_e=>{mt(_e?.getSelectedSheet())},onViewChange(_e){mt(_e?.getSelectedSheet())},onProtectionChange:_e=>{ve(_e?.getProtection())}}),Zt(z,{onRequestSelect:async(_e,pt)=>new Promise(kt=>{q.current.getSheet()!==pt?q.current.getGridElement()?.onViewChangeOnce(()=>{q.current.getSheet()!==pt&&kt(!1),kt(!0)}):kt(!0)})},cL);const[dt,xt]=d.useReducer(_e=>_e+1,0),Ne=z?.getView();Zt(Ne,{onViewChange:_e=>{xt()}});const vt=P??H,Xe=d.useMemo(()=>D5(H,vt),[H,vt]),le=U??H,Ue=d.useMemo(()=>D5(H,le),[H,le]),[ye,Se]=d.useState(null);d.useCallback(()=>{q.current.focus()},[]);const[ne,be]=d.useState(!1),ke=d.useRef(null),me=Vb({workbook:z,workbookElement:re.current,commandTarget:()=>q.current,notifier:l,commands:x,darkMode:Xe.body.darkMode,onNewWorkbook:r,onShowSidebar:()=>{ne?ke.current?.focus():be(!0)}}),Ie=d.useRef(null),[we,xe]=d.useState(!1),[Ee,Fe]=d.useState(null),[ft,ut]=d.useState(qd),[Pe,Qe]=d.useState(N.TypesUtils.EmptyBounds),nt=()=>{xe(!1),Fe(null)},Ke=(_e,pt,kt=qd)=>{Qe(_e),ut(kt),Fe(pt),Ie.current!==null&&Ie.current.update(),xe(!0)},[rt,Bt]=d.useState("sheet"),lt=C??Ne?.isShowTabs(),Jt=V??Ne?.isShowHorizontalScrollbar(),Wt=y??Ne?.isShowFormulaBar(),Kt=M??Ne?.isShowStatusBar(),kn=W??Ne?.isShowVerticalScrollbar(),Tn=Xe?.header?.edgeStrokeFill||"rgb(171,171,171)",Qn=d.useMemo(()=>Kt?F({sheet:ze,gridStyle:Xe,...j}):null,[F,j,Kt,Xe,ze]),zn=d.useMemo(()=>O({commands:me,workbook:re.current,...k}),[me,O,k,H]),[mo,{width:wn}]=ql(),Qt=wn===0||wn>560,Rn=d.useMemo(()=>{if(!lt)return null;let _e=E({background:Xe.body.fill,borderWidth:1,borderColor:Tn,gridTheme:vt,gridStyle:Xe,onBeforeUserChange:ue,onUserChange:De,workbook:z,commands:me,sheetTabProps:{},notifier:l,..._});return Qt||(_e=a.jsx("div",{style:{flex:"none",display:"flex"},children:_e})),_e},[E,_,l,H,z,vt,Qt,me,lt]),Jn=d.useCallback(_e=>{const pt=N.CommonUtils.getOS()===N.CommonUtils.OSType.Firefox;let kt=null,dn=null,en=null;if(Jt&&(dn=a.jsx("div",{style:{display:"flex",flex:"1 1 100%",borderTop:`solid ${Tn} 1px`,maxWidth:"100%"},children:a.jsx(Y1,{style:{alignItems:"center",borderTop:(pt?6:3)+"px solid transparent",borderBottom:(Qt?6:3)+"px solid transparent",borderLeft:(pt?3:0)+"px solid transparent",borderRight:(pt?3:0)+"px solid transparent"},..._e,endGap:700,sheet:ze,showCustomScrollButtons:!pt,onShowTooltip:wt=>{Ke({x:wt.anchor.x,y:wt.anchor.y,width:0,height:0},wt.display,wt.placement)},onCloseTooltip:()=>nt()})})),lt&&Qt&&(en=Rn),lt&&Qt&&!Jt&&(en=a.jsxs(B.Box,{sx:{display:"flex",flex:"1",position:"relative",alignContent:"center"},children:[en,a.jsx(B.Box,{sx:{borderTop:`solid ${Tn} 1px`,flex:"1"}})]})),en&&Jt)kt=a.jsx(S2,{position:z.getView().getTabRatio()/10+"%",onPositionChange:({percent:wt})=>{z.getView().setTabRatio(Math.round(10*wt))},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='${H.palette.text.icon??H.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 ${Tn} 1px`,borderBottom:"solid 3px transparent"}},elementBefore:en,elementAfter:dn});else if(Jt)kt=dn;else{if(!en)return a.jsx(B.Box,{sx:{display:"flex",flex:"1",position:"relative",alignContent:"center",height:"1px",borderTop:Kt?null:`solid ${Tn} 1px`}});kt=en}return a.jsx(B.Box,{sx:{display:"flex",flex:"1",position:"relative",alignContent:"center"},children:kt})},[ze,ue,z,Xe,vt,me,lt,Jt,Kt,Qt]),[vn,In]=d.useState(null),sn=d.useMemo(()=>({placement:"right-start",...vn?.popperProps}),[vn?.popperProps]),{reference:Io,component:Yo}=xi({label:"contextMenu",popperProps:sn,anchor:vn?.anchor??{getBoundingClientRect:()=>new DOMRect(vn?.clientX||0,vn?.clientY||0)},onClose:()=>In(null),createPopupPanel:vn?.createPopupPanel});d.useEffect(()=>{vn?Io.open(0):Io.close(0)},[vn]);const Dr=et((_e,pt)=>{if(_e?.isDefaultPrevented())return!0;_e.preventDefault(),vn&&vn.anchor===_e.currentTarget?In(null):In({anchor:_e.currentTarget,popperProps:{offsets:[-4,2]},createPopupPanel:kt=>{const{floatReference:dn}=kt;return I({filter:pt,commands:me,floatReference:dn,sx:{...S}})}})},[I,S,me,z,vn]),Jo=et(_e=>{if(_e.originalEvent?.isDefaultPrevented())return!0;_e.originalEvent?.preventDefault(),In({clientX:_e.clientX,clientY:_e.clientY,createPopupPanel:pt=>{const{floatReference:kt}=pt;return v({commands:me,workbook:z,floatReference:kt,sx:{...S}})}})},[v,S,me,z]),Kr=et((_e,pt)=>{if(_e?.isDefaultPrevented())return!0;_e.preventDefault(),In({clientX:_e.clientX,clientY:_e.clientY,createPopupPanel:kt=>{const{floatReference:dn}=kt;return T({movable:pt,commands:me,floatReference:dn,sx:{...S}})}})},[T,S,me]);d.useMemo(()=>{const _e=[new jo("openContextMenu",()=>q.current,{label:"Context Menu",description:"Open the context menu.",shortcut:[{key:"F10",modifiers:[tn.Shift]},{key:"ContextMenu"}]})];me.addCommands(_e,!0)},[me]),d.useEffect(()=>{me.getCommand("openContextMenu").updateCallback(()=>{const _e=ze.getSelection().getCoords().cell;q.current?.getGridElement()?.scrollCellCoordsIntoView(_e).then(pt=>{requestAnimationFrame(()=>{const kt=ze.getView().getZoomScale()/100,dn=ze.getColumnHeaders().findOffset(_e.colIndex+1)*kt,en=ze.getRowHeaders().findOffset(_e.rowIndex+1)*kt,wt=q.current?.getGridElement()?.getRelativePointFromClient(0,0)||{x:0,y:0};Jo({clientX:dn-wt.x-pt.left+6,clientY:en-wt.y-pt.top+6})})})})},[ze]);const Qo=et(_e=>{me?.dispatchToFocusedCommand(_e)},[me]),Lr=et(()=>{o8(re.current)},[z,re.current]),li=d.useCallback(()=>{Bt("sheet")},[]),Or=d.useCallback(()=>{Bt("formulaBar")},[]),zo=et(_e=>{const pt=N.CommonUtils.getOS()===N.CommonUtils.OSType.Firefox;return a.jsx(Y1,{style:{borderLeft:"3px solid transparent",borderRight:"0px solid transparent",borderTop:(pt?3:0)+"px solid transparent",borderBottom:(pt?3:0)+"px solid transparent",width:pt?"13px":void 0},..._e,sheet:ze,endGap:700,showCustomScrollButtons:!pt,onShowTooltip:kt=>{Ke(kt.anchor,kt.display,cv)},onCloseTooltip:()=>nt()})},[ze]);d.useEffect(()=>{c&&q&&q.current&&q.current.focus()},[]);const[Ae,Je]=d.useState(null),tt=d.useCallback(_e=>{me?.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&&Je("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"&&Je(null),_e.preventDefault())},[me]),qe=et(_e=>{if(me?.getCommand("openWorkbook")&&(_e.preventDefault(),_e.stopPropagation(),Je(null),_e.dataTransfer.files&&_e.dataTransfer.files.length>0)){const pt=_e.dataTransfer.files[0];if(!pt)return;if(pt?.type?.startsWith("image/")){const kt=q.current?.getGridElement().getViewFromClient(_e.clientX,_e.clientY);if(!kt)return;const dn=kt.getRelativePointFromClient(_e.clientX,_e.clientY),en=kt.toAbsoluteBounds({...dn,width:0,height:0}),wt=kt.getCellCoordsFromClient(_e.clientX,_e.clientY);if(!wt)return;me?.getCommand("insertImageFromFile")?.execute({file:pt,options:{bounds:{x:en.x,y:en.y}},goto:{range:{...wt}}})}else me?.getCommand("openWorkbook")?.execute(pt)}},[me,Ae]),it=d.useMemo(()=>Ae?a.jsx(B.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(B.Typography,{variant:"h4",children:Ae})}):null,[Ae]),St=d.useRef(null),Et=d.useMemo(()=>a.jsx(I5,{in:!J,nodeRef:St,timeout:500,classNames:"animating",unmountOnExit:!0,children:a.jsx(B.Box,{style:{display:"flex",alignItems:"center",justifyContent:"center",left:"0px",top:"0px",width:"100%",height:"100%",pointerEvents:J?"none":s?.pointerEvents,position:"absolute",boxSizing:"border-box"},children:R({ref:St,transitionDelay:"0",transparentBackground:!1,sx:{opacity:J?0:s?.opacity,pointerEvents:J?"none":s?.pointerEvents,position:"absolute",left:"0px",top:"0px",width:"100%",height:"100%",...A}})})}),[J,R,A]),Ct=d.useMemo(()=>b({sx:{marginTop:_e=>_e.spacing(.25),marginLeft:_e=>_e.spacing(1),marginRight:_e=>_e.spacing(1)},workbook:z,sheetElement:q.current,gridStyle:Xe,onFocus:Or,...w,NamedCollectionEditorProps:{restoreFocus:_e=>q.current.focus(_e),notifier:l,...w?.NamedCollectionEditorProps,commandPopupButtonProps:{commands:me,...w?.NamedCollectionEditorProps?.commandPopupButtonProps}}},Me),[b,w,z,Xe,me,J]),Rt=d.useCallback(_e=>{const{movable:pt,...kt}=_e,dn={movable:pt,onContextMenuCapture:Ut=>{Kr(Ut,pt)},...kt},en=pt.getContent().getType();let wt=null;if(en==="picture")return a.jsx(ty,{loadingPanel:a.jsx(c0,{transitionDelay:"100",style:{position:"absolute"},sx:{border:Ut=>`solid 1px ${Ut.palette.action.active}`}}),picture:pt.getContent(),description:pt.getDescription()??pt?.getName(),...dn});if(en==="chart"){const Ut={...dn,chart:pt.getContent()};return a.jsx(WR,{...Ut})}if(wt=`Float of type '${en}'.`,typeof wt=="string"){const Ut={...dn,description:wt};wt=a.jsx(PR,{...Ut})}return a.jsx("div",{style:{position:"absolute",clipPath:"inset(0px)",display:"flex",alignItems:"stretch",justifyContent:"stretch",pointerEvents:"all"},children:wt},pt.getUUID())},[]),Tt=d.useMemo(()=>L({style:a2,onFocus:li,notifier:l,gridStyle:Xe,headersStyle:Ue,sheet:ze,commands:me,onSheetContextMenu:Jo,onViewportChange:_e=>{Se(_e)},showScrollbars:!1,viewportComponent:te,onRepeatCommandChange:g,onElementLoad:Ce,onShowColumnTooltip:_e=>{Ke(_e.anchor,_e.display,qd)},onShowRowTooltip:_e=>{Ke(_e.anchor,_e.display,dv)},onShowTooltip:_e=>{Ke({x:_e.anchor.x,y:_e.anchor.y,width:0,height:0},_e.display,_e.placement)},onCloseTooltip:()=>nt(),renderMovable:Rt,...D,cellRenderProps:{onFilterButtonMouseDown:(_e,pt)=>{D?.cellRenderProps?.onFilterButtonMouseDown(_e,pt),Dr(_e,pt)},...D?.cellRenderProps}},q),[L,me,D,ze,Xe,l,g]),nn=d.useMemo(()=>{if(!ne)return null;const _e=!bt.isStructureAllowed();return a.jsx(oh,{sx:{marginBottom:pt=>pt.spacing(.5),border:pt=>`solid ${_e?pt.palette.action.disabled:ht.alpha(pt.palette.divider,.2)} 1px`,borderRadius:pt=>`${pt.shape.borderRadius}px`,overflow:"hidden"},onClose:()=>{be(!1),requestAnimationFrame(()=>{q.current.focus()})},readOnly:_e,commands:me,ref:ke,scripts:z.getScripts()})},[ne,me,z,l,bt]),Sn=d.useMemo(()=>{const _e=a.jsx(Cm,{style:{...a2,marginRight:nn&&Qt?"0px":"6px"},viewport:ye,touchElement:q.current?.getGridElement()?.stage,onScrollViewport:wt=>{q.current?.getGridElement()?.scrollTo(wt)},showHorizontalScrollbar:Jt||lt,showVerticalScrollbar:kn,createHorizontalScrollbar:Jn,createVerticalScrollbar:zo,children:Tt});let pt=_e;Qt||(pt=a.jsxs(a.Fragment,{children:[_e,Rn]}));let kt=null,dn=4,en=13;return Qt?kt="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":(kt="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",dn=13,en=4),a.jsx(S2,{fixedPane:"after",position:"40%",minAfter:Qt?"280px":"120px",splitDirection:Qt?"row":"column",style:a2,ref:mo,resizerProps:{className:"styled-resizer",style:{minWidth:Qt?"6px":void 0,minHeight:Qt?void 0:"6px",maskImage:`url("data:image/svg+xml,%3Csvg width='${dn}' height='${en}' viewBox='0 0 ${dn} ${en}' version='1.1' fill='${H.palette.text.icon??H.palette.action.active}' xmlns='http://www.w3.org/2000/svg' xmlns:svg='http://www.w3.org/2000/svg'%3E%3Cpath d='${kt}' /%3E%3C/svg%3E%0A")`,maskRepeat:"no-repeat",maskPosition:Qt?"left center":"top center"}},elementBefore:pt,paneBeforeProps:{style:{flexDirection:"column"}},elementAfter:nn,paneAfterProps:{style:{marginLeft:Qt?"0px":"4px",marginRight:Qt?"8px":"4px"}}})},[Jt,lt,Jn,kn,ye,nn,Tt,Rn,H,Qt]),cn=d.useMemo(()=>({boxSizing:"border-box",background:_e=>_e.palette.mode!=="dark"?Xe.header.fill:_e.palette.background.paper,"& *":{...c3(H),fontWeight:400},"&.Mui-focusVisible":{},"& .viewport-overlay":{borderRight:`solid ${Tn} 1px`},...s}),[s,Xe]);return a.jsxs(B.Paper,{className:Yn("sheetxl-workbook",sL,{"Mui-focusVisible":Z},aL,h),sx:cn,style:u,square:!1,...ee,ref:re,onFocus:_e=>{Q(!0),Lr(),f?.(_e)},onBlur:_e=>{Q(!1),p?.(_e)},onKeyDown:_e=>{Qo(_e),m?.(_e)},onDragStart:_e=>{if(_e.target.src){const pt=new Image;pt.src=_e.target.src,_e.dataTransfer.setDragImage(pt,1,1)}},onDragEnter:tt,onDragLeave:tt,onDragOver:tt,onDrop:qe,children:[a.jsxs("div",{className:Yn(Jy),style:{flex:"1 1 100%",width:"100%",display:"flex",flexDirection:"column",opacity:J?void 0:0,"--sxl-app-color-high-contrast":H.palette.primary.main,"--sxl-app-color-primary":H.palette.primary.main,"--sxl-app-color-primary-dark":H.palette.primary.dark,"--sxl-app-color-primary-light":H.palette.primary.light,"--sxl-app-color-info":H.palette.info.main,"--sxl-app-color-info-dark":H.palette.info.dark,"--sxl-app-color-info-light":H.palette.info.light,"--sxl-app-color-secondary":H.palette.secondary.main,"--sxl-app-color-secondary-dark":H.palette.secondary.dark,"--sxl-app-color-secondary-light":H.palette.secondary.light,"--sxl-app-color-success":H.palette.success.main,"--sxl-app-color-success-dark":H.palette.success.dark,"--sxl-app-color-success-light":H.palette.success.light,"--sxl-app-color-warning":H.palette.warning.main,"--sxl-app-color-warning-dark":H.palette.warning.dark,"--sxl-app-color-warning-light":H.palette.warning.light,"--sxl-app-color-error":H.palette.error.main,"--sxl-app-color-error-dark":H.palette.error.dark,"--sxl-app-color-error-light":H.palette.error.light,"--sxl-app-color-text":H.palette.text.primary,"--sxl-app-color-text-secondary":H.palette.text.secondary,"--sxl-app-color-text-disabled":H.palette.text.disabled,"--sxl-app-color-background":H.palette.background.paper,"--sxl-app-color-button-surface":H.palette.grey[600],"--sxl-app-color-shadow":H.palette.action.focus,"--sxl-app-color-grey":H.palette.grey[500],"--sxl-app-filter-dark-invert":Xe.body.darkMode&&X?"hue-rotate(180deg) invert(1) brightness(95%)":"none","--sxl-app-image-background":Xe.body.darkMode?`linear-gradient(${ht.alpha("#fff",jn(5))}, ${ht.alpha("#fff",jn(5))})`:void 0},children:[zn,Wt?Ct:null,a.jsx(B.Box,{sx:{marginBottom:_e=>_e.spacing(.75)}}),Sn,Qn,a.jsx(Ir,{arrow:!0,disableInteractive:!0,open:we,title:a.jsx(B.Typography,{variant:"subtitle2",component:"div",children:Ee}),placement:ft,TransitionProps:{timeout:{exit:0}},PopperProps:{popperRef:Ie,sx:{"& .MuiTooltip-tooltip":{padding:"2px 6px","& .MuiTooltip-arrow":{display:we?"visible":"none"}}},anchorEl:{getBoundingClientRect:()=>new DOMRect(Pe.x,Pe.y,Pe.width,Pe.height)},modifiers:[{name:"offset",options:{offset:[0,0]}}]},children:a.jsx(B.Box,{})}),Yo,it]}),Et]})}));ah.displayName="WorkbookElement";const xL=(e=!1,t=!1)=>t?null:{"& input:not(:focus):not(:hover)":{color:n=>n.palette.text.secondary},backgroundColor:n=>ht.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`}},sh=d.memo(d.forwardRef((e,t)=>{const{sx:n,workbook:o,title:r="",placeHolder:i="Untitled",onTitleChange:l,readOnly:c=!1,hidden:s,...u}=e,[h,f]=d.useState(!1),[p,m]=d.useState(!1),[g,x]=d.useState(r??""),[y,w]=d.useState(""),[b,{width:C}]=ql(),[_,{width:E}]=ql(),[M,j]=d.useState(!1),F=d.useRef(null),k=d.useRef(null),O=Ii(t,()=>({requestWorkbookTitle:(S=null,v)=>{k.current={onAccept:S,requestReason:v?.requestReason},v?.selectAll&&F.current?.select(),F.current?.focus(v)},focus:S=>{F.current?.focus(S)}}),[]);return d.useLayoutEffect(()=>{j(r!==g),w(r),x(r)},[r]),d.useEffect(()=>{M&&C!==0&&ur.debounce(()=>{j(!1)},300)()},[M,C]),d.useEffect(()=>{m(g&&!T0.isValidWindowsFilename(g))},[g]),s?null:a.jsx(B.Box,{sx:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",opacity:M?"0":"1",transition:M?void 0:"opacity .25s ease-in","& .tooltip-wrapper":{maxWidth:"100%"}},ref:Zs([O,_,t]),...u,children:a.jsx(Uo,{label:k.current?.requestReason??"Workbook Name",children:a.jsxs(B.Box,{className:Yn({"Mui-focusVisible":h}),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",...xL(!0,c),...n},children:[c?a.jsx(B.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:S=>p?S.palette.error.dark:void 0},children:r??i}):a.jsx(B.Input,{sx:{width:`${Math.min(C+3,Math.max(E,O.current?.getBoundingClientRect()?.width))}px`,overflow:"hidden",whiteSpace:"nowrap",fontWeight:"600",maxWidth:"100%",border:"none",padding:"0px",margin:"0px",color:S=>p?S.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:c,spellCheck:!1,placeholder:i,onFocus:S=>{f(!0),S.target?.select()},inputProps:{name:"input-workbook-title",autoComplete:"off",ref:F},onBlur:()=>{f(!1),p?x(y):(g!==y&&(l?.(g),g&&k.current?.onAccept?.(g,"blur")),k.current=null)},onChange:S=>{if(S.target.value.length>T0.MAX_WORKBOOK_NAME_SIZE)return S.stopPropagation(),void S.preventDefault();x(S.target.value)},onKeyDown:S=>{(T0.WINDOW_FILENAME_CHAR_RESERVED_REGEX.test(S.key)||S.target?.value.length>T0.MAX_WORKBOOK_NAME_SIZE)&&S.preventDefault(),S.which===Cn.Enter||S.which===Cn.Tab?(p?x(y):(l?.(g),g&&(k.current?.onAccept?.(g,"keydown"),k.current=null)),S.stopPropagation(),S.preventDefault(),o?.focus()):S.which===Cn.Escape&&(g===y?o?.focus():(x(y),setTimeout(()=>{S.target?.select()},0)),k.current=null,S.stopPropagation(),S.preventDefault())},value:g}),a.jsx(B.Box,{ref:b,sx:{position:"absolute",visibility:"hidden",top:"-9999px",fontWeight:"600 !important",whiteSpace:"pre",fontStyle:g!==y?"italic":void 0,fontFamily:S=>S.typography.fontFamily,letterSpacing:"0.00938em"},children:g||i})]})})})}));sh.displayName="WorkbookTitle";const Ub=d.memo(d.forwardRef((e,t)=>{const{sx:n,style:o,className:r,licenseKey:i,renderLoadingPanel:l,...c}=e;i&&N.LicenseManager.setLicenseKey(i);const s=d.useMemo(()=>{const h={transitionDelay:"160ms",transparentBackground:!0};return a.jsx(B.Box,{sx:n,style:{width:"100%",height:"100%",position:"absolute",display:"flex",alignItems:"center",justifyContent:"center",...o},children:l?.(h)??a.jsx(c0,{...h})})},[n,o,l]),u=d.useMemo(()=>d.lazy(async()=>await Promise.resolve().then(()=>YL)),[]);return a.jsx(a.Fragment,{children:a.jsx(d.Suspense,{fallback:s,children:a.jsx(u,{...c,className:r,renderLoadingPanel:l,sx:n,style:o,ref:t})})})}));Ub.displayName="Studio";const yL=d.createContext(null),s2={didCatch:!1,error:null};class bL extends d.Component{constructor(t){super(t),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=s2}static getDerivedStateFromError(t){return{didCatch:!0,error:t}}resetErrorBoundary(){const{error:t}=this.state;if(t!==null){for(var n,o,r=arguments.length,i=new Array(r),l=0;l<r;l++)i[l]=arguments[l];(n=(o=this.props).onReset)===null||n===void 0||n.call(o,{args:i,reason:"imperative-api"}),this.setState(s2)}}componentDidCatch(t,n){var o,r;(o=(r=this.props).onError)===null||o===void 0||o.call(r,t,n)}componentDidUpdate(t,n){const{didCatch:o}=this.state,{resetKeys:r}=this.props;var i,l;o&&n.error!==null&&function(){let c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return c.length!==s.length||c.some((u,h)=>!Object.is(u,s[h]))}(t.resetKeys,r)&&((i=(l=this.props).onReset)===null||i===void 0||i.call(l,{next:r,prev:t.resetKeys,reason:"keys"}),this.setState(s2))}render(){const{children:t,fallbackRender:n,FallbackComponent:o,fallback:r}=this.props,{didCatch:i,error:l}=this.state;let c=t;if(i){const s={error:l,resetErrorBoundary:this.resetErrorBoundary};if(typeof n=="function")c=n(s);else if(o)c=d.createElement(o,s);else{if(r===void 0)throw l;c=r}}return d.createElement(yL.Provider,{value:{didCatch:i,error:l,resetErrorBoundary:this.resetErrorBoundary}},c)}}function qb(e){var t,n,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=qb(e[t]))&&(o&&(o+=" "),o+=n);else for(t in e)e[t]&&(o&&(o+=" "),o+=t);return o}function d0(){for(var e,t,n=0,o="";n<arguments.length;)(e=arguments[n++])&&(t=qb(e))&&(o&&(o+=" "),o+=t);return o}let wL={data:""},vL=e=>typeof window=="object"?((e?e.querySelector("#_goober"):window._goober)||Object.assign((e||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:e||wL,SL=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,CL=/\/\*[^]*?\*\/| +/g,H8=/\n+/g,C0=(e,t)=>{let n="",o="",r="";for(let i in e){let l=e[i];i[0]=="@"?i[1]=="i"?n=i+" "+l+";":o+=i[1]=="f"?C0(l,i):i+"{"+C0(l,i[1]=="k"?"":t)+"}":typeof l=="object"?o+=C0(l,t?t.replace(/([^,])+/g,c=>i.replace(/([^,]*:\S+\([^)]*\))|([^,])+/g,s=>/&/.test(s)?s.replace(/&/g,c):c?c+" "+s:s)):i):l!=null&&(i=/^--/.test(i)?i:i.replace(/[A-Z]/g,"-$&").toLowerCase(),r+=C0.p?C0.p(i,l):i+":"+l+";")}return n+(t&&r?t+"{"+r+"}":r)+o},vi={},Zb=e=>{if(typeof e=="object"){let t="";for(let n in e)t+=n+Zb(e[n]);return t}return e},_L=(e,t,n,o,r)=>{let i=Zb(e),l=vi[i]||(vi[i]=(s=>{let u=0,h=11;for(;u<s.length;)h=101*h+s.charCodeAt(u++)>>>0;return"go"+h})(i));if(!vi[l]){let s=i!==e?e:(u=>{let h,f,p=[{}];for(;h=SL.exec(u.replace(CL,""));)h[4]?p.shift():h[3]?(f=h[3].replace(H8," ").trim(),p.unshift(p[0][f]=p[0][f]||{})):p[0][h[1]]=h[2].replace(H8," ").trim();return p[0]})(e);vi[l]=C0(r?{["@keyframes "+l]:s}:s,n?"":"."+l)}let c=n&&vi.g?vi.g:null;return n&&(vi.g=vi[l]),((s,u,h,f)=>{f?u.data=u.data.replace(f,s):u.data.indexOf(s)===-1&&(u.data=h?s+u.data:u.data+s)})(vi[l],t,o,c),l};function F5(e){let t=this||{},n=e.call?e(t.p):e;return _L(n.unshift?n.raw?((o,r,i)=>o.reduce((l,c,s)=>{let u=r[s];if(u&&u.call){let h=u(i),f=h&&h.props&&h.props.className||/^go/.test(h)&&h;u=f?"."+f:h&&typeof h=="object"?h.props?"":C0(h,""):h===!1?"":h}return l+c+(u??"")},""))(n,[].slice.call(arguments,1),t.p):n.reduce((o,r)=>Object.assign(o,r&&r.call?r(t.p):r),{}):n,vL(t.target),t.g,t.o,t.k)}function Gb(e,t,n){return t&&function(o,r){for(var i=0;i<r.length;i++){var l=r[i];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(o,l.key,l)}}(e.prototype,t),e}function Un(){return Un=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Un.apply(this,arguments)}function Kb(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function Gs(e,t){if(e==null)return{};var n,o,r={},i=Object.keys(e);for(o=0;o<i.length;o++)n=i[o],t.indexOf(n)>=0||(r[n]=e[n]);return r}function $8(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}F5.bind({g:1}),F5.bind({k:1});var W8=function(){return""},Xb=d.createContext({enqueueSnackbar:W8,closeSnackbar:W8}),c2="@media (max-width:599.95px)",y1="@media (min-width:600px)",U8=function(e){return e.charAt(0).toUpperCase()+e.slice(1)},ch=function(e){return""+U8(e.vertical)+U8(e.horizontal)},Hc=function(e){return!!e||e===0},$c="unmounted",al="exited",sl="entering",La="entered",q8="exiting",dh=function(e){function t(o){var r;r=e.call(this,o)||this;var i,l=o.appear;return r.appearStatus=null,o.in?l?(i=al,r.appearStatus=sl):i=La:i=o.unmountOnExit||o.mountOnEnter?$c:al,r.state={status:i},r.nextCallback=null,r}Kb(t,e),t.getDerivedStateFromProps=function(o,r){return o.in&&r.status===$c?{status:al}: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!==sl&&i!==La&&(r=sl):i!==sl&&i!==La||(r=q8)}this.updateStatus(!1,r)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var o=this.props.timeout,r=o,i=o;return o!=null&&typeof o!="number"&&typeof o!="string"&&(i=o.exit,r=o.enter),{exit:i,enter:r}},n.updateStatus=function(o,r){o===void 0&&(o=!1),r!==null?(this.cancelNextCallback(),r===sl?this.performEnter(o):this.performExit()):this.props.unmountOnExit&&this.state.status===al&&this.setState({status:$c})},n.performEnter=function(o){var r=this,i=this.props.enter,l=o,c=this.getTimeouts();o||i?(this.props.onEnter&&this.props.onEnter(this.node,l),this.safeSetState({status:sl},function(){r.props.onEntering&&r.props.onEntering(r.node,l),r.onTransitionEnd(c.enter,function(){r.safeSetState({status:La},function(){r.props.onEntered&&r.props.onEntered(r.node,l)})})})):this.safeSetState({status:La},function(){r.props.onEntered&&r.props.onEntered(r.node,l)})},n.performExit=function(){var o=this,r=this.props.exit,i=this.getTimeouts();r?(this.props.onExit&&this.props.onExit(this.node),this.safeSetState({status:q8},function(){o.props.onExiting&&o.props.onExiting(o.node),o.onTransitionEnd(i.exit,function(){o.safeSetState({status:al},function(){o.props.onExited&&o.props.onExited(o.node)})})})):this.safeSetState({status:al},function(){o.props.onExited&&o.props.onExited(o.node)})},n.cancelNextCallback=function(){this.nextCallback!==null&&this.nextCallback.cancel&&(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(){i&&(i=!1,r.nextCallback=null,o())},this.nextCallback.cancel=function(){i=!1},this.nextCallback},n.onTransitionEnd=function(o,r){this.setNextCallback(r);var i=o==null&&!this.props.addEndListener;this.node&&!i?(this.props.addEndListener&&this.props.addEndListener(this.node,this.nextCallback),o!=null&&setTimeout(this.nextCallback,o)):setTimeout(this.nextCallback,0)},n.render=function(){var o=this.state.status;if(o===$c)return null;var r=this.props;return(0,r.children)(o,Gs(r,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]))},Gb(t,[{key:"node",get:function(){var o,r=(o=this.props.nodeRef)===null||o===void 0?void 0:o.current;if(!r)throw new Error("notistack - Custom snackbar is not refForwarding");return r}}]),t}(d.Component);function cl(){}function Z8(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function z5(e,t){return d.useMemo(function(){return e==null&&t==null?null:function(n){Z8(e,n),Z8(t,n)}},[e,t])}function ad(e){var t=e.timeout,n=e.style,o=n===void 0?{}:n,r=e.mode;return{duration:typeof t=="object"?t[r]||0:t,easing:o.transitionTimingFunction,delay:o.transitionDelay}}dh.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:cl,onEntering:cl,onEntered:cl,onExit:cl,onExiting:cl,onExited:cl};var EL="cubic-bezier(0.4, 0, 0.2, 1)",kL="cubic-bezier(0.0, 0, 0.2, 1)",TL="cubic-bezier(0.4, 0, 0.6, 1)",Yb=function(e){e.scrollTop=e.scrollTop},G8=function(e){return Math.round(e)+"ms"};function El(e,t){e===void 0&&(e=["all"]);var n=t||{},o=n.duration,r=o===void 0?300:o,i=n.easing,l=i===void 0?EL:i,c=n.delay,s=c===void 0?0:c;return(Array.isArray(e)?e:[e]).map(function(u){var h=typeof r=="string"?r:G8(r),f=typeof s=="string"?s:G8(s);return u+" "+h+" "+l+" "+f}).join(",")}function Jb(e){var t=function(n){return n&&n.ownerDocument||document}(e);return t.defaultView||window}function Wc(e,t){if(t){var n=function(o,r){var i,l=r.getBoundingClientRect(),c=Jb(r);if(r.fakeTransform)i=r.fakeTransform;else{var s=c.getComputedStyle(r);i=s.getPropertyValue("-webkit-transform")||s.getPropertyValue("transform")}var u=0,h=0;if(i&&i!=="none"&&typeof i=="string"){var f=i.split("(")[1].split(")")[0].split(",");u=parseInt(f[4],10),h=parseInt(f[5],10)}switch(o){case"left":return"translateX("+(c.innerWidth+u-l.left)+"px)";case"right":return"translateX(-"+(l.left+l.width-u)+"px)";case"up":return"translateY("+(c.innerHeight+h-l.top)+"px)";default:return"translateY(-"+(l.top+l.height-h)+"px)"}}(e,t);n&&(t.style.webkitTransform=n,t.style.transform=n)}}var Qb=d.forwardRef(function(e,t){var n=e.children,o=e.direction,r=o===void 0?"down":o,i=e.in,l=e.style,c=e.timeout,s=c===void 0?0:c,u=e.onEnter,h=e.onEntered,f=e.onExit,p=e.onExited,m=Gs(e,["children","direction","in","style","timeout","onEnter","onEntered","onExit","onExited"]),g=d.useRef(null),x=z5(n.ref,g),y=z5(x,t),w=d.useCallback(function(){g.current&&Wc(r,g.current)},[r]);return d.useEffect(function(){if(!i&&r!=="down"&&r!=="right"){var b=function(_,E){var M;function j(){for(var F=this,k=arguments.length,O=new Array(k),S=0;S<k;S++)O[S]=arguments[S];clearTimeout(M),M=setTimeout(function(){_.apply(F,O)},E)}return E===void 0&&(E=166),j.clear=function(){clearTimeout(M)},j}(function(){g.current&&Wc(r,g.current)}),C=Jb(g.current);return C.addEventListener("resize",b),function(){b.clear(),C.removeEventListener("resize",b)}}},[r,i]),d.useEffect(function(){i||w()},[i,w]),d.createElement(dh,Object.assign({appear:!0,nodeRef:g,onEnter:function(b,C){Wc(r,b),Yb(b),u&&u(b,C)},onEntered:h,onEntering:function(b){var C=l?.transitionTimingFunction||kL,_=ad({timeout:s,mode:"enter",style:Un({},l,{transitionTimingFunction:C})});b.style.webkitTransition=El("-webkit-transform",_),b.style.transition=El("transform",_),b.style.webkitTransform="none",b.style.transform="none"},onExit:function(b){var C=l?.transitionTimingFunction||TL,_=ad({timeout:s,mode:"exit",style:Un({},l,{transitionTimingFunction:C})});b.style.webkitTransition=El("-webkit-transform",_),b.style.transition=El("transform",_),Wc(r,b),f&&f(b)},onExited:function(b){b.style.webkitTransition="",b.style.transition="",p&&p(b)},in:i,timeout:s},m),function(b,C){return d.cloneElement(n,Un({ref:y,style:Un({visibility:b!=="exited"||i?void 0:"hidden"},l,{},n.props.style)},C))})});Qb.displayName="Slide";var Od=function(e){return d.createElement("svg",Object.assign({viewBox:"0 0 24 24",focusable:"false",style:{fontSize:20,marginInlineEnd:8,userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:"currentColor",flexShrink:0}},e))},jL=function(){return d.createElement(Od,null,d.createElement("path",{d:`M12 2C6.5 2 2 6.5 2 12S6.5 22 12 22 22 17.5 22 12 17.5 2 12 2M10 17L5 12L6.41
|
|
105
|
+
10.59L10 14.17L17.59 6.58L19 8L10 17Z`}))},ML=function(){return d.createElement(Od,null,d.createElement("path",{d:"M13,14H11V10H13M13,18H11V16H13M1,21H23L12,2L1,21Z"}))},RL=function(){return d.createElement(Od,null,d.createElement("path",{d:`M12,2C17.53,2 22,6.47 22,12C22,17.53 17.53,22 12,22C6.47,22 2,17.53 2,12C2,
|
|
106
|
+
6.47 6.47,2 12,2M15.59,7L12,10.59L8.41,7L7,8.41L10.59,12L7,15.59L8.41,17L12,
|
|
107
|
+
13.41L15.59,17L17,15.59L13.41,12L17,8.41L15.59,7Z`}))},IL=function(){return d.createElement(Od,null,d.createElement("path",{d:`M13,9H11V7H13M13,17H11V11H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,
|
|
108
|
+
0 22,12A10,10 0 0,0 12,2Z`}))},S0={maxSnack:3,persist:!1,hideIconVariant:!1,disableWindowBlurListener:!1,variant:"default",autoHideDuration:5e3,iconVariant:{default:void 0,success:d.createElement(jL,null),warning:d.createElement(ML,null),error:d.createElement(RL,null),info:d.createElement(IL,null)},anchorOrigin:{vertical:"bottom",horizontal:"left"},TransitionComponent:Qb,transitionDuration:{enter:225,exit:195}},DL=function(e,t){return function(n,o){return o===void 0&&(o=!1),o?Un({},S0[n],{},t[n],{},e[n]):n==="autoHideDuration"?(r=e.autoHideDuration,i=t.autoHideDuration,(l=function(c){return typeof c=="number"||c===null})(r)?r:l(i)?i:S0.autoHideDuration):n==="transitionDuration"?function(c,s){var u=function(h,f){return f.some(function(p){return typeof h===p})};return u(c,["string","number"])?c:u(c,["object"])?Un({},S0.transitionDuration,{},u(s,["object"])&&s,{},c):u(s,["string","number"])?s:u(s,["object"])?Un({},S0.transitionDuration,{},s):S0.transitionDuration}(e.transitionDuration,t.transitionDuration):e[n]||t[n]||S0[n];var r,i,l}};function Ks(e){return Object.entries(e).reduce(function(t,n){var o,r=n[0],i=n[1];return Un({},t,((o={})[r]=F5(i),o))},{})}var LL="notistack-SnackbarContainer",OL="notistack-Snackbar",ew="notistack-CollapseWrapper",PL="notistack-MuiContent",AL=function(e){return"notistack-MuiContent-"+e},K8=Ks({root:{height:0},entered:{height:"auto"}}),d2="0px",tw=d.forwardRef(function(e,t){var n=e.children,o=e.in,r=e.onExited,i=d.useRef(null),l=d.useRef(null),c=z5(t,l),s=function(){return i.current?i.current.clientHeight:0};return d.createElement(dh,{in:o,unmountOnExit:!0,onEnter:function(u){u.style.height=d2},onEntered:function(u){u.style.height="auto"},onEntering:function(u){var h=s(),f=ad({timeout:175,mode:"enter"}),p=f.duration,m=f.easing;u.style.transitionDuration=typeof p=="string"?p:p+"ms",u.style.height=h+"px",u.style.transitionTimingFunction=m||""},onExit:function(u){u.style.height=s()+"px"},onExited:r,onExiting:function(u){Yb(u);var h=ad({timeout:175,mode:"exit"}),f=h.duration,p=h.easing;u.style.transitionDuration=typeof f=="string"?f:f+"ms",u.style.height=d2,u.style.transitionTimingFunction=p||""},nodeRef:l,timeout:175},function(u,h){return d.createElement("div",Object.assign({ref:c,className:d0(K8.root,u==="entered"&&K8.entered),style:Un({pointerEvents:"all",overflow:"hidden",minHeight:d2,transition:El("height")},u==="entered"&&{overflow:"visible"},{},u==="exited"&&!o&&{visibility:"hidden"})},h),d.createElement("div",{ref:i,className:ew,style:{display:"flex",width:"100%"}},n))})});tw.displayName="Collapse";var X8={right:"left",left:"right",bottom:"up",top:"down"},FL=function(e){return"anchorOrigin"+ch(e)},zL=function(){};function as(e,t){return e.reduce(function(n,o){return o==null?n:function(){for(var r=arguments.length,i=new Array(r),l=0;l<r;l++)i[l]=arguments[l];var c=[].concat(i);t&&c.indexOf(t)===-1&&c.push(t),n.apply(this,c),o.apply(this,c)}},zL)}var BL=typeof window<"u"?d.useLayoutEffect:d.useEffect;function Y8(e){var t=d.useRef(e);return BL(function(){t.current=e}),d.useCallback(function(){return t.current.apply(void 0,arguments)},[])}var u2,nw=d.forwardRef(function(e,t){var n=e.children,o=e.className,r=e.autoHideDuration,i=e.disableWindowBlurListener,l=i!==void 0&&i,c=e.onClose,s=e.id,u=e.open,h=e.SnackbarProps,f=h===void 0?{}:h,p=d.useRef(),m=Y8(function(){c&&c.apply(void 0,arguments)}),g=Y8(function(w){c&&w!=null&&(p.current&&clearTimeout(p.current),p.current=setTimeout(function(){m(null,"timeout",s)},w))});d.useEffect(function(){return u&&g(r),function(){p.current&&clearTimeout(p.current)}},[u,r,g]);var x=function(){p.current&&clearTimeout(p.current)},y=d.useCallback(function(){r!=null&&g(.5*r)},[r,g]);return d.useEffect(function(){if(!l&&u)return window.addEventListener("focus",y),window.addEventListener("blur",x),function(){window.removeEventListener("focus",y),window.removeEventListener("blur",x)}},[l,y,u]),d.createElement("div",Object.assign({ref:t},f,{className:d0(OL,o),onMouseEnter:function(w){f.onMouseEnter&&f.onMouseEnter(w),x()},onMouseLeave:function(w){f.onMouseLeave&&f.onMouseLeave(w),y()}}),n)});nw.displayName="Snackbar";var NL=Ks({root:(u2={display:"flex",flexWrap:"wrap",flexGrow:1},u2[y1]={flexGrow:"initial",minWidth:"288px"},u2)}),uh=d.forwardRef(function(e,t){var n=e.className,o=Gs(e,["className"]);return d.createElement("div",Object.assign({ref:t,className:d0(NL.root,n)},o))});uh.displayName="SnackbarContent";var Oa=Ks({root:{backgroundColor:"#313131",fontSize:"0.875rem",lineHeight:1.43,letterSpacing:"0.01071em",color:"#fff",alignItems:"center",padding:"6px 16px",borderRadius:"4px",boxShadow:"0px 3px 5px -1px rgba(0,0,0,0.2),0px 6px 10px 0px rgba(0,0,0,0.14),0px 1px 18px 0px rgba(0,0,0,0.12)"},lessPadding:{paddingLeft:"20px"},default:{backgroundColor:"#313131"},success:{backgroundColor:"#43a047"},error:{backgroundColor:"#d32f2f"},warning:{backgroundColor:"#ff9800"},info:{backgroundColor:"#2196f3"},message:{display:"flex",alignItems:"center",padding:"8px 0"},action:{display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:"16px",marginRight:"-8px"}}),J8="notistack-snackbar",ow=d.forwardRef(function(e,t){var n=e.id,o=e.message,r=e.action,i=e.iconVariant,l=e.variant,c=e.hideIconVariant,s=e.style,u=e.className,h=i[l],f=r;return typeof f=="function"&&(f=f(n)),d.createElement(uh,{ref:t,role:"alert","aria-describedby":J8,style:s,className:d0(PL,AL(l),Oa.root,Oa[l],u,!c&&h&&Oa.lessPadding)},d.createElement("div",{id:J8,className:Oa.message},c?null:h,o),f&&d.createElement("div",{className:Oa.action},f))});ow.displayName="MaterialDesignContent";var Pa,h2,Uc,qc,p2,VL=d.memo(ow),HL=Ks({wrappedRoot:{width:"100%",position:"relative",transform:"translateX(0)",top:0,right:0,bottom:0,left:0,minWidth:"288px"}}),$L=function(e){var t=d.useRef(),n=d.useState(!0),o=n[0],r=n[1],i=as([e.snack.onClose,e.onClose]),l=d.useCallback(function(){t.current=setTimeout(function(){r(function(F){return!F})},125)},[]);d.useEffect(function(){return function(){t.current&&clearTimeout(t.current)}},[]);var c,s=e.snack,u=e.classes,h=e.Component,f=h===void 0?VL:h,p=d.useMemo(function(){return function(F){F===void 0&&(F={});var k={containerRoot:!0,containerAnchorOriginTopCenter:!0,containerAnchorOriginBottomCenter:!0,containerAnchorOriginTopRight:!0,containerAnchorOriginBottomRight:!0,containerAnchorOriginTopLeft:!0,containerAnchorOriginBottomLeft:!0};return Object.keys(F).filter(function(O){return!k[O]}).reduce(function(O,S){var v;return Un({},O,((v={})[S]=F[S],v))},{})}(u)},[u]),m=s.open,g=s.SnackbarProps,x=s.TransitionComponent,y=s.TransitionProps,w=s.transitionDuration,b=s.disableWindowBlurListener,C=s.content,_=Gs(s,["open","SnackbarProps","TransitionComponent","TransitionProps","transitionDuration","disableWindowBlurListener","content","entered","requestClose","onEnter","onEntered","onExit","onExited"]),E=Un({direction:(c=_.anchorOrigin,c.horizontal!=="center"?X8[c.horizontal]:X8[c.vertical]),timeout:w},y),M=C;typeof M=="function"&&(M=M(_.id,_.message));var j=["onEnter","onEntered","onExit","onExited"].reduce(function(F,k){var O;return Un({},F,((O={})[k]=as([e.snack[k],e[k]],_.id),O))},{});return d.createElement(tw,{in:o,onExited:j.onExited},d.createElement(nw,{open:m,id:_.id,disableWindowBlurListener:b,autoHideDuration:_.autoHideDuration,className:d0(HL.wrappedRoot,p.root,p[FL(_.anchorOrigin)]),SnackbarProps:g,onClose:i},d.createElement(x,Object.assign({},E,{appear:!0,in:m,onExit:j.onExit,onExited:l,onEnter:j.onEnter,onEntered:as([j.onEntered,function(){e.snack.requestClose&&i(null,"instructed",e.snack.id)}],_.id)}),M||d.createElement(f,Object.assign({},_)))))},Aa={default:20},Zc={default:6,dense:2},Q8="."+ew,Gc=Ks({root:(Pa={boxSizing:"border-box",display:"flex",maxHeight:"100%",position:"fixed",zIndex:1400,height:"auto",width:"auto",transition:El(["top","right","bottom","left","max-width"],{duration:300,easing:"ease"}),pointerEvents:"none"},Pa[Q8]={padding:Zc.default+"px 0px",transition:"padding 300ms ease 0ms"},Pa.maxWidth="calc(100% - "+2*Aa.default+"px)",Pa[c2]={width:"100%",maxWidth:"calc(100% - 32px)"},Pa),rootDense:(h2={},h2[Q8]={padding:Zc.dense+"px 0px"},h2),top:{top:Aa.default-Zc.default+"px",flexDirection:"column"},bottom:{bottom:Aa.default-Zc.default+"px",flexDirection:"column-reverse"},left:(Uc={left:Aa.default+"px"},Uc[y1]={alignItems:"flex-start"},Uc[c2]={left:"16px"},Uc),right:(qc={right:Aa.default+"px"},qc[y1]={alignItems:"flex-end"},qc[c2]={right:"16px"},qc),center:(p2={left:"50%",transform:"translateX(-50%)"},p2[y1]={alignItems:"center"},p2)}),WL=function(e){var t=e.classes,n=t===void 0?{}:t,o=e.anchorOrigin,r=e.dense,i=e.children,l=d0(LL,Gc[o.vertical],Gc[o.horizontal],Gc.root,n.containerRoot,n["containerAnchorOrigin"+ch(o)],r&&Gc.rootDense);return d.createElement("div",{className:l},i)},UL=d.memo(WL),em=function(e){return!(typeof e=="string"||d.isValidElement(e))},qL=function(e){function t(n){var o;return(o=e.call(this,n)||this).enqueueSnackbar=function(r,i){if(i===void 0&&(i={}),r==null)throw new Error("enqueueSnackbar called with invalid argument");var l=em(r)?r:i,c=em(r)?r.message:r,s=l.key,u=l.preventDuplicate,h=Gs(l,["key","preventDuplicate"]),f=Hc(s),p=f?s:new Date().getTime()+Math.random(),m=DL(h,o.props),g=Un({id:p},h,{message:c,open:!0,entered:!1,requestClose:!1,persist:m("persist"),action:m("action"),content:m("content"),variant:m("variant"),anchorOrigin:m("anchorOrigin"),disableWindowBlurListener:m("disableWindowBlurListener"),autoHideDuration:m("autoHideDuration"),hideIconVariant:m("hideIconVariant"),TransitionComponent:m("TransitionComponent"),transitionDuration:m("transitionDuration"),TransitionProps:m("TransitionProps",!0),iconVariant:m("iconVariant",!0),style:m("style",!0),SnackbarProps:m("SnackbarProps",!0),className:d0(o.props.className,h.className)});return g.persist&&(g.autoHideDuration=void 0),o.setState(function(x){if(u===void 0&&o.props.preventDuplicate||u){var y=function(C){return f?C.id===p:C.message===c},w=x.queue.findIndex(y)>-1,b=x.snacks.findIndex(y)>-1;if(w||b)return x}return o.handleDisplaySnack(Un({},x,{queue:[].concat(x.queue,[g])}))}),p},o.handleDisplaySnack=function(r){return r.snacks.length>=o.maxSnack?o.handleDismissOldest(r):o.processQueue(r)},o.processQueue=function(r){var i=r.queue,l=r.snacks;return i.length>0?Un({},r,{snacks:[].concat(l,[i[0]]),queue:i.slice(1,i.length)}):r},o.handleDismissOldest=function(r){if(r.snacks.some(function(s){return!s.open||s.requestClose}))return r;var i=!1,l=!1;r.snacks.reduce(function(s,u){return s+(u.open&&u.persist?1:0)},0)===o.maxSnack&&(l=!0);var c=r.snacks.map(function(s){return i||s.persist&&!l?Un({},s):(i=!0,s.entered?(s.onClose&&s.onClose(null,"maxsnack",s.id),o.props.onClose&&o.props.onClose(null,"maxsnack",s.id),Un({},s,{open:!1})):Un({},s,{requestClose:!0}))});return Un({},r,{snacks:c})},o.handleEnteredSnack=function(r,i,l){if(!Hc(l))throw new Error("handleEnteredSnack Cannot be called with undefined key");o.setState(function(c){return{snacks:c.snacks.map(function(s){return s.id===l?Un({},s,{entered:!0}):Un({},s)})}})},o.handleCloseSnack=function(r,i,l){o.props.onClose&&o.props.onClose(r,i,l);var c=l===void 0;o.setState(function(s){var u=s.snacks,h=s.queue;return{snacks:u.map(function(f){return c||f.id===l?f.entered?Un({},f,{open:!1}):Un({},f,{requestClose:!0}):Un({},f)}),queue:h.filter(function(f){return f.id!==l})}})},o.closeSnackbar=function(r){var i=o.state.snacks.find(function(l){return l.id===r});Hc(r)&&i&&i.onClose&&i.onClose(null,"instructed",r),o.handleCloseSnack(null,"instructed",r)},o.handleExitedSnack=function(r,i){if(!Hc(i))throw new Error("handleExitedSnack Cannot be called with undefined key");o.setState(function(l){var c=o.processQueue(Un({},l,{snacks:l.snacks.filter(function(s){return s.id!==i})}));return c.queue.length===0?c:o.handleDismissOldest(c)})},o.enqueueSnackbar,o.closeSnackbar,o.state={snacks:[],queue:[],contextValue:{enqueueSnackbar:o.enqueueSnackbar.bind($8(o)),closeSnackbar:o.closeSnackbar.bind($8(o))}},o}return Kb(t,e),t.prototype.render=function(){var n=this,o=this.state.contextValue,r=this.props,i=r.domRoot,l=r.children,c=r.dense,s=c!==void 0&&c,u=r.Components,h=u===void 0?{}:u,f=r.classes,p=this.state.snacks.reduce(function(g,x){var y,w=ch(x.anchorOrigin),b=g[w]||[];return Un({},g,((y={})[w]=[].concat(b,[x]),y))},{}),m=Object.keys(p).map(function(g){var x=p[g],y=x[0];return d.createElement(UL,{key:g,dense:s,anchorOrigin:y.anchorOrigin,classes:f},x.map(function(w){return d.createElement($L,{key:w.id,snack:w,classes:f,Component:h[w.variant],onClose:n.handleCloseSnack,onEnter:n.props.onEnter,onExit:n.props.onExit,onExited:as([n.handleExitedSnack,n.props.onExited],w.id),onEntered:as([n.handleEnteredSnack,n.props.onEntered],w.id)})}))});return d.createElement(Xb.Provider,{value:o},l,i?ao.createPortal(m,i):m)},Gb(t,[{key:"maxSnack",get:function(){return this.props.maxSnack||S0.maxSnack}}]),t}(d.Component),rw=function(){return d.useContext(Xb)};const ZL=[{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}],GL=[{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 iw{constructor(t=ZL,n=GL){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(()=>require("./Dh2Z7N-jImJZemiw.cjs"))).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(()=>require("./Dh2Z7N-jImJZemiw.cjs"))}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 t0=new iw,Si={card:"_card_1a398_7",actionRoot:"_actionRoot_1a398_11",icons:"_icons_1a398_16",expand:"_expand_1a398_22",expandOpen:"_expandOpen_1a398_29",stackTraceContainer:"_stackTraceContainer_1a398_33"},lw=d.forwardRef((e,t)=>{const{id:n,message:o,iconVariant:r,error:i,hideIconVariant:l,...c}=e,{closeSnackbar:s}=rw(),u=Zr(),[h,f]=d.useState(!1),p=d.useCallback(()=>{f(x=>!x)},[]),m=d.useCallback(()=>{s(n)},[n,s]);let g=i?.message;return!g&&d.isValidElement(o)&&(g=o),g||typeof o!="string"||(g=o),g||(g=`Unknown Error: ${o}`),a.jsx(uh,{ref:t,className:Yn(Si.root,"error-snackbar"),children:a.jsxs(B.Card,{className:Si.card,style:{backgroundColor:u.palette.error.dark,border:`1px solid ${u.palette.error.dark}`},children:[a.jsxs(B.CardActions,{className:Si.actionRoot,children:[l?null:r?.error,a.jsx(B.Typography,{variant:"body2",component:"div",className:Si.typography,style:{color:u.palette.text.primary},children:g}),a.jsx("div",{style:{flex:"1 1 auto"}}),a.jsxs("div",{className:Si.icons,children:[i?a.jsx(B.IconButton,{"aria-label":"Show more",size:"small",className:Yn(Si.expand,{[Si.expandOpen]:h}),style:{color:u.palette.action.active},onClick:p,children:a.jsx(gn.ExpandMore,{})}):null,a.jsx(B.IconButton,{size:"small",className:Si.expand,style:{color:u.palette.action.active},onClick:m,children:a.jsx(gn.Close,{fontSize:"small"})})]})]}),i?a.jsx(B.Collapse,{in:h,timeout:"auto",unmountOnExit:!0,children:a.jsx("div",{className:Si.stackTraceContainer,style:{backgroundColor:u.palette.error.light,borderTop:`1px solid ${u.palette.error.main}`},children:a.jsx(a3,{error:i,hideLineNumbers:!0})})}):null]})})});lw.displayName="ToastError";const aw=d.memo(d.forwardRef((e,t)=>{const{commands:n,commandHook:o,scope:r="workbook",disabled:i=!1,...l}=e,c=et(u=>{const h={variant:Vt.Menuitem,parentFloat:u.floatReference,commandHook:o,scope:r,disabled:i},f=a.jsxs(a.Fragment,{children:[a.jsx(je,{...h,command:n.getCommand("newWorkbook"),icon:ge(a.jsx(o_,{}))}),a.jsx(Mt,{orientation:"horizontal"}),a.jsx(je,{...h,command:n.getCommand("openWorkbook"),icon:ge(a.jsx(r_,{}))}),a.jsx(An,{...h,commands:n,quickCommand:"saveWorkbook",icon:ge(a.jsx(i_,{})),createPopupPanel:p=>{const m={...h,parentFloat:p.floatReference,scope:"saveWorkbook"},g=[];return t0.getWriteFormats().forEach(x=>{if(x.isDefault)return;let y=null;x.key==="CSV"?y=ge(a.jsx(a_,{})):x.key==="Excel"&&(y=ge(a.jsx(l_,{})));const w=n.getCommand(`saveWorkbookAs${x.key}`);w?g.push(d.createElement(je,{...m,key:x.key,command:w,icon:y})):console.warn(`Unable to resolve command: 'saveWorkbookAs${x.key}'`)}),_n({...p,children:g,onClick:()=>{p.closeFloatAll()}})}})]});return _n({...u,children:f,onClick:p=>{p.isDefaultPrevented||u.closeFloatAll()}})},[i,n,o,r]),s="File";return a.jsx(An,{commands:n,disabled:i,commandHook:o,scope:r,label:s,tooltip:"Options for saving and loading the workbook.",sx:{paddingBottom:"0px","& button":{paddingTop:"0px",paddingBottom:"0px",height:u=>`calc(1.25rem + ${u.spacing(2)}px)`}},...l,createPopupPanel:c,icon:a.jsx(Nl,{className:"label",icon:null,label:s})})}));aw.displayName="StandaloneFileCommandButton";const KL=a.jsx(Uo,{label:"SheetXL",description:"Visit me at sheetxl.com.",children:a.jsx(B.Box,{sx:{width:"24px",height:"24px",marginBottom:"4px",marginLeft:"6px"},children:a.jsx(QI,{onClick:()=>{window?.open("https://www.sheetxl.com","_blank")},style:{width:"24px",height:"24px",cursor:"pointer"}})})}),sw=d.memo(d.forwardRef((e,t)=>{const{commands:n,workbook:o,logo:r=KL,mainElement:i,showFileMenu:l=!0,showAppearanceMenu:c=!0,...s}=e,{reference:u}=xi(),[h,{width:f}]=ql(),p=f<530,m=l?a.jsx(aw,{commands:n,commandHook:{beforeExecute(){u?.closeAll()},onError(w,b,C){}}}):null,g=c?a.jsx(lb,{commands:n,commandHook:{beforeExecute(){u?.closeAll()},onError(w,b,C){}}}):null,x=d.useMemo(()=>({paddingLeft:w=>w.spacing(1),paddingRight:w=>w.spacing(1)}),[]),y=d.useRef(null);return a.jsx(B.Box,{ref:Zs([y,h,t]),...s,children:Nb({commands:n,renderCompact:p,workbook:o,selectWrapper:w=>a.jsxs(B.Box,{sx:{display:"flex",flex:"1",flexDirection:"row",alignItems:"stretch",gap:b=>b.spacing(1),paddingLeft:b=>b.spacing(1),paddingRight:b=>b.spacing(1)},children:[a.jsxs(B.Box,{sx:{display:"flex",flexDirection:"row",alignItems:"center",flex:"1 1 100%",gap:b=>b.spacing(.5)},children:[r,a.jsxs(B.Box,{sx:{display:"flex",flexDirection:"row",alignItems:"center",gap:b=>b.spacing(.25)},children:[m,w]})]}),a.jsx(B.Box,{sx:{display:"flex",flexDirection:"row",flex:"1 1 300%",overflow:"hidden",alignItems:"center",justifyContent:"center"},children:i}),a.jsx(B.Box,{sx:{display:"flex",alignItems:"center",justifyContent:"end",flex:p&&!g?"0 0 auto":"1 1 100%"},children:g})]}),selectProps:x,toolbarsProps:{Home:{sx:{}}}})})}));sw.displayName="StudioToolbar";const XL=e=>{const{workbook:t,setWorkbook:n,importExportDisabled:o,workbookTitle:r="export",setWorkbookTitle:i,notifier:l,requestWorkbookTitle:c,themeOptions:s,undoManager:u,commands:h,onExecute:f}=e,p=et(s?.onModeChange,[s?.onModeChange]),m=et(s?.onEnabledDarkGridChange,[s?.onEnabledDarkGridChange]),g=et(s?.onEnabledDarkImagesChange,[s?.onEnabledDarkImagesChange]),x=et(async(M=null,j=null)=>{const F=[];let k,O=null,S=null;if(typeof M=="string"?S=M:O=M,k=O?M:await ur.openFileDialog(S??t0.getAllReadFormatTypeAsString().join(",")),!k)return null;const v={source:k,createWorkbookOptions:j,onWarning:T=>{F.push(T)}},I=await t0.read(v,l);return F.length>0&&(l?.showMessage?.("Some elements were not able to be imported. See console for details."),console.warn(`Import warnings:
|
|
109
|
+
`+F.join(`
|
|
110
|
+
`))),I},[f,l,t]),y=et(async(M,j,F)=>{if(!j&&c){const k=await c("Enter Workbook name to "+(F.isDefault?"Save.":`Export as ${F.description}.`));return k!==null&&t0.writeFile(k,M,{formatType:F.key})}return t0.writeFile(j,M,{formatType:F.key})},[l,t,c]),w=d.useCallback(()=>({contains:M=>!0,focus(){}}),[]),b=d.useMemo(()=>{const M=[];o||(t0.getWriteFormats().forEach(F=>{const k=F.isDefault,O={label:k?"Save Workbook":`Save Workbook as ${F.description}`,scopedLabels:{workbook:"Save",saveWorkbook:`as ${F.description}`},tags:F.tags,description:`Save the workbook to the desktop${k?"":` as ${F.description}`}.`};k&&(O.shortcut={key:"S",modifiers:[tn.Ctrl]},M.push(new yn("saveWorkbookAs",w,{label:"Save Workbook As…",scopedLabels:{workbook:"Save as…",saveWorkbook:"as…"},shortcut:[{key:"S",modifiers:[tn.Shift,tn.Ctrl]},{key:"F12"}],description:"Save the workbook to the desktop with the provided name."},()=>{y(t,null,F).catch(v=>{l?.showError?.(v)})})));const S=k?"saveWorkbook":`saveWorkbookAs${F.key}`;M.push(new yn(S,w,O,v=>{y(t,v??r,F).catch(I=>{l?.showError?.(I)})}))}),M.push(new yn("openWorkbook",w,{label:"Open Workbook…",scopedLabels:{workbook:"Open…"},description:"Open a workbook from the desktop.",shortcut:{key:"O",modifiers:[tn.Ctrl]}},async(F=null)=>{const k={date1904:t.isDate1904(),...t.options};try{const O=await x(F,k);if(!O)return;const S=O.title,v=O.workbook,I=v.getSelectedSheet();if(O.formatType.mimeType==="text/csv"){const T=t.findValidSheetName(S);await t.doBatch(async()=>{const R=I.getUsedRange();if(!R)return void l?.showMessage("The file appears to be blank.");await t.getSheets().add({name:T,autoSelect:!0}).getRange({colStart:0,rowStart:0,colEnd:0,rowEnd:0}).copyFrom(R)},`Import CSV '${S}'`)}else t?.close(),i?.(S),n(v)}catch(O){l?.showError?.(O)}})),M.push(new yn("openWorkbookFromUrl",w,{label:"Open Workbook From Web",scopedLabels:{insert:"From Web",workbook:"From Web…"},description:"Open a workbook from the web."},async function(F){if(!F){const k=await l?.showInputOptions?.({title:"Open Workbook from the Web",description:"Enter the web address for the workbook to open.",inputLabel:"Address",initialValue:"https://www.sheetxl.com/examples/features-checklist.xlsx",inputProps:{style:{minWidth:"440px"}},options:["Open"]});if(k.option!=="Open")return;F=k.input}F&&console.log("openWorkbookFromUrl",F)})));let j=[];return s&&(j=[new yn("themeMode",w,{label:"Light/Dark Mode",scopedLabels:{appearance:"Light/Dark Mode"},description:"Toggle the application styling between light and dark mode."}),new yn("defaultThemeMode",w,{label:"Use System Light/Dark Mode",scopedLabels:{appearance:"Use System Default"},description:"Use the system settings to determine styling for light and dark mode."}),new yn("enableDarkGrid",w,{label:"Enable Dark Grid",description:"Allow the grid to render in dark mode if dark mode is being used. This is ensures that the grid will render the colors as specified in another tools (for example Excel)."}),new yn("enableDarkImages",w,{label:"Enable Dark Images",description:"Allow the images to render in dark mode if dark mode is being used. This is ensures that the images will render the colors as specified in another tools (for example Excel). This only has any effect if the grid is in dark mode."})]),[...M,...j,new jo("help",w,{label:"Show Help",description:"Provide Help.",shortcut:{key:"F1"}},()=>{}),new jo("showKeyboardShortcuts",w,{label:"Keyboard Shortcuts",description:"Show keyboard shortcuts.",shortcut:{key:"/",modifiers:[tn.Ctrl]}},()=>{}),new yn("gotoUrlGithub",w,{label:"Github",description:"Download examples, explore source code, and leave a star."},()=>{window?.open("https://github.com/sheetxl/sheetxl")}),new yn("gotoUrlDiscord",w,{label:"Discord",description:"Join our community on discord."},()=>{window?.open("https://discord.gg/NTKdwUgK9p")}),new yn("gotoUrlDocumentation",w,{label:"Documentation",description:"Read the documentation."},()=>{window?.open("https://www.sheetxl.com/docs")}),new yn("gotoUrlIssue",w,{label:"Create Issue",description:"Create an issue to identify a bug or a feature request."},()=>{window?.open("https://github.com/sheetxl/sheetxl/issues")})]},[t,r,l,o,s,h,u]),C=d.useMemo(()=>{let M=null;return M=h?h.createChildGroup(w,"standaloneWorkbook",!1):new V5(w,"standaloneWorkbook"),M.addCommands(b,!0),M},[h,b]);(({manager:M,commands:j,disabled:F,notifier:k=_m})=>{const O=et(v=>{try{M?.undo(v)}catch(I){k.showError?.(I)}},[M]),S=et(v=>{try{M?.redo(v)}catch(I){k.showError?.(I)}},[M]);d.useMemo(()=>{if(!j)return;const v={contains:T=>!0,focus(){}},I=[new yn("undo",v,{label:"Undo",description:Qh,shortcut:{key:"z",modifiers:[tn.Ctrl]},disabled:!0},O),new yn("redo",v,{label:"Redo",description:ep,shortcut:[{key:"y",modifiers:[tn.Ctrl]},{key:"F4"},{key:"Enter",modifiers:[tn.Alt]}],disabled:!0},S)];j?.addCommands(I,!0)},[j]),d.useEffect(()=>{if(!j)return;const v=()=>{const T=M?.getTopUndoDescription(),R={};var A;j.getCommand("undo").update({disabled:F||!M||!M.hasUndo(),description:T?(A=T,`Undo ${A}`):Qh,state:R,context:{undoManager:M}});const D=M?.getTopRedoDescription();j.getCommand("redo").update({disabled:F||!M||!M.hasRedo(),description:D?wv(D):ep,state:R,context:{undoManager:M}})};if(v(),!M)return;const I=M.addListener({onStackChange(){v()}});return()=>I?.()},[M,j,F])})({manager:u,commands:C,notifier:l});const{themeMode:_}=th();d.useEffect(()=>{if(!s||!C)return;const M=s.mode==="dark"||!s.mode&&_==="dark";C.getCommand("themeMode").update({state:s.mode??null,label:M?"Dark Mode":"Light Mode",scopedLabels:{appearance:M?"Dark Mode":"Light Mode"}}).updateCallback(()=>{p(M?ld.Light:ld.Dark)}),C.getCommand("defaultThemeMode").update({state:!s.mode}).updateCallback(()=>{p(null)}),C.getCommand("enableDarkGrid").update({state:s.enableDarkGrid}).updateCallback(()=>{m(!s.enableDarkGrid)}),C.getCommand("enableDarkImages").update({state:s.enableDarkImages}).updateCallback(()=>{g(!s.enableDarkImages)})},[_,s,b]);const{showModal:E}=o1();return d.useEffect(()=>{const M=()=>new Promise((j,F)=>{const k=d.lazy(()=>Promise.resolve().then(()=>require("./Bl5l1B_eznDfB_7v.cjs"))),O=E(k,{title:"Shortcut Keys Reference",commands:C,onDone:()=>{O.hide()},TransitionProps:{onExited:()=>{j(!0)}}})});C.getCommand("showKeyboardShortcuts").updateCallback(()=>M()),C.getCommand("help").updateCallback(()=>M())},[b,C]),C},cw=d.memo(d.forwardRef((e,t)=>{const{workbook:n,setWorkbook:o,refWorkbookTitle:r,titleWorkbook:i,setWorkbookTitle:l,titlePlaceHolder:c,children:s,undoManager:u,commands:h,importExportDisabled:f,themeOptions:p}=e,m=rw(),g=m?m.enqueueSnackbar:()=>{},x=m?m.closeSnackbar:()=>{},[y,w]=d.useState({isMounted:!1,label:null,starting:new Map,running:new Map}),b=d.useCallback(()=>{w(R=>({...R,isMounted:!0}))},[]),C=d.useCallback(()=>{w(R=>({...R,isMounted:!1}))},[]),_=function(){const[R,A]=d.useState(()=>new Map),{showModal:D,updateModal:L,destroyModal:V,hideModal:W}=o1({disableAutoDestroy:!0});return(P,U,X,ee)=>new Promise((H,$)=>{const z={...X,onHide:()=>{const Y=R.get(P);X?.onHide?.(),A(te=>(te.delete(P),te)),W(Y.id)},onDone:Y=>{const te=R.get(P);A(ie=>(ie.delete(P),ie)),X?.onDone?.(Y),te&&te.id&&!ee?.disableAutoDestroy&&V(te.id)},onShown:Y=>{A(te=>{const ie=te.get(P);return te.set(P,{...ie,element:Y}),te}),H(Y)},open:!0},q=R.get(P);if(q)return L(q.id,z),void H(q.element);if(!U)return void $("invalid function");const Z=d.lazy(U),Q=D(Z,z,{destroyOnClose:!ee?.disableAutoDestroy});A(Y=>(Y.set(P,{id:Q.id,element:null}),Y))})}(),E=(()=>{const{showModal:R}=o1();return A=>new Promise(D=>{const L=R(JE,{...A,onOption(V){A?.onOption?.(V,V===A.cancelOption,V===A.defaultOption),D(V)},onDone:()=>{A?.onDone?.(),L.hide()}})})})(),M=(()=>{const{showModal:R}=o1();return A=>{const{defaultOption:D=A.options?.[0],cancelOption:L="Cancel",...V}=A;return new Promise(W=>{const P=R(QE,{defaultOption:D,cancelOption:L,...V,onOption(U){V?.onOption?.(U,U===L,U===D),W({input:"",option:U})},onInputOption(U,X){V?.onInputOption?.(U,X),W({input:U,option:X})},onDone:()=>{V?.onDone?.(),P.hide()}})})}})(),j=d.useRef(new Set),F=d.useMemo(()=>{const R=(A,D)=>{if(D?.onceKey){if(j.current.has(D.onceKey))return;const V=new Set(j.current);V.add(D.onceKey),j.current=V}const L={variant:D?.type??Xh,anchorOrigin:{vertical:"top",horizontal:"center"},preventDuplicate:D?.preventDuplicate,persist:D?.persist??D?.type===A0,action:V=>a.jsx(B.IconButton,{onClick:()=>x(V),children:a.jsx(gn.CancelOutlined,{})})};D?.enqueueProps&&Object.assign(L,D.enqueueProps),A||console.log("message is 'null'",D),g(A??"Alert",L)};return{showMessage:R,showBusy:(A,D)=>{let L=null;const V=new Promise(W=>{L=W});return w(W=>{const P=new Map(W.starting);return P.set(V,L),{...W,label:A,starting:P}}),V},showWindow:(A,D,L)=>{const V={...D,onKeyDown:W=>{h?.dispatchToFocusedCommand(W),W.isDefaultPrevented()||W.isPropagationStopped()||D?.onKeyDown?.(W)}};return _(A,{sort:()=>Promise.resolve().then(()=>require("./DIR6Yr7FCZPYWi4-.cjs")),numberFormat:()=>Promise.resolve().then(()=>require("./Bh8xJY_qVp_q9NdJ.cjs")),hyperlink:()=>Promise.resolve().then(()=>require("./DeklxocxxZiZyZ5u.cjs")),comments:()=>Promise.resolve().then(()=>require("./9JbHyHSHGCO4uFHn.cjs")),find:()=>Promise.resolve().then(()=>require("./B17ClH6YVt0_UP8s.cjs")),tableDetails:()=>Promise.resolve().then(()=>require("./C1LBzI2ntslIKFn5.cjs")),tableNew:()=>Promise.resolve().then(()=>require("./D5Hr7ebLiJgvcT0k.cjs")),namedDetails:()=>Promise.resolve().then(()=>require("./Dngll9GyDqkTUUmu.cjs"))}[A],V,L)},showOptions:E,showInputOptions:M,showError:A=>{let D,L=A0,V="Unknown Error";typeof A=="string"?V=A:A instanceof Error&&(D=A,A.message&&(V=A.message)),A instanceof N.PartialError&&(L=Xh),R(V,{type:L,enqueueProps:{error:D}})}}},[]),k=d.useCallback(()=>{},[]),O=XL({workbook:n,setWorkbook:o,importExportDisabled:f,workbookTitle:i,setWorkbookTitle:l,commands:h,requestWorkbookTitle:R=>new Promise(A=>{r.current?r.current.requestWorkbookTitle((D,L)=>{A(D)},{selectAll:!0,requestReason:R}):A(c)}),themeOptions:p,undoManager:u,notifier:F,onExecute:k});d.useEffect(()=>{y.starting.size<=0||!y.isMounted||w(R=>{const A=new Map(R.running);return R.starting.forEach((D,L)=>{const V=()=>{w(W=>{const P=new Map(W.running);return P.delete(L),{...W,running:P}})};A.set(L,V),D(V)}),{...R,starting:new Map,running:A}})},[y]);const[S,v]=d.useState(null);d.useEffect(()=>{y.starting.size!==0||y.running.size!==0?v(a.jsx(c0,{icon:a.jsx(X_,{sx:{transform:"scale(0.7)",marginLeft:"-6px"}}),panel:!0,label:y.label,onMount:b,onUnmount:C,sx:{position:"absolute",left:"0",top:"0",width:"100%",height:"100%",zIndex:"9999"}})):v(null)},[y.starting,y.running]);const I=d.useMemo(()=>a.jsx(ab,{commands:O,disableHover:!0,sx:{padding:"0"},buttonProps:{sx:{maxHeight:"22px"}}}),[O]),T={notifier:F,commands:O};return n&&(T.statusBarProps={childrenEnd:I}),a.jsxs(a.Fragment,{children:[S,s?d.cloneElement(s,T):null]})}));cw.displayName="SnackbarAndCommandsWrapper";const sd=d.memo(d.forwardRef((e,t)=>{const{className:n,sx:o,style:r,onElementLoad:i,onError:l,undoManager:c,errorPanel:s=E9,onKeyDown:u,workbook:h,createWorkbookOptions:f,onWorkbookChange:p,logo:m,importExportDisabled:g=!1,themeOptions:x,autoFocus:y=!1,commands:w,title:b,onTitleChange:C,titleProps:_,renderLoadingPanel:E,...M}=e,j=d.useRef(null),F=et(p,[p]),k=et(C??_?.onTitleChange,[C??_?.onTitleChange]),O=_?.placeHolder??"Untitled",S=x?.mode,{themeMode:v,source:I}=th({mode:S}),T=d.useMemo(()=>({...x,light:I6(!1,N.CommonUtils.deepMerge(x?.theme??{},x?.light??{})),dark:I6(!0,N.CommonUtils.deepMerge(x?.theme??{},x?.dark??{}))}),[x]),R=v===ld.Dark,[A,D]=d.useState(null);d.useEffect(()=>{D(c??new N.UndoManager)},[c]);const[L,V]=d.useState(null),[W,P]=d.useState(null),U=P3();d.useLayoutEffect(()=>{if(!h||Object.keys(h).length===0&&!N.CommonUtils.isPromiseLike(h)){const oe={theme:U.getDefaultTheme(),...f};P(new N.Workbook(oe))}else P(h)},[h]),d.useLayoutEffect(()=>{if(W){if(W instanceof N.Workbook)return V({workbook:W}),void(h!==W&&F?.(W));(async()=>{try{let oe,ue=await Promise.resolve(W);ue&&ue.source&&(ue=await t0.read(ue)),ue.workbook?(z(ue.title),oe=ue.workbook):oe=ue,F?.(oe),V({workbook:oe})}catch(oe){F?.(null),V({error:oe})}})()}},[W]);const[X,ee]=d.useState(null);d.useEffect(()=>{if(!A||!L)return;A.clear();const oe=L?.workbook?.getTransactions();if(oe)return oe.addListener({onCommitEnd:ue=>{ue.getDescription()?A.addUndoOperation({description:ue.getDescription(),undo:()=>(oe.revert(ue.getId()),X.source?.focus(),()=>{oe.restore(ue.getId()),X.source?.focus()})}):console.warn("commit has no description",ue)}})},[A,L,X]);const H=et(oe=>{oe?A.setRepeatableOperation({description:oe.label(),repeat:async()=>oe.execute()}):A.setRepeatableOperation(null)},[A]),[$,z]=d.useState(b??_?.title??"");d.useEffect(()=>{z(b??_?.title??"")},[b??_?.title]),d.useEffect(()=>{k?.($)},[$]);const[q,Z]=d.useState(null),Q=d.useMemo(()=>{const oe=()=>({contains:ue=>!0,focus(){}});return w?w.createChildGroup(oe,"application",!1):new V5(oe,"application")},[w]),Y=et(oe=>{Z(oe.source.getViewportElement()),ee(oe),Q.activate("sheet"),i?.(oe)},[Q]);d.useEffect(()=>{X&&y&&X.source?.focus(typeof y=="object"?y:void 0)},[X]);const te=d.useRef(null),ie=d.useCallback(oe=>{let ue=null;return _?.hidden||(ue=a.jsx(sh,{..._,style:{maxWidth:"100%",..._?.style},workbook:j.current,ref:te,title:$,placeHolder:O,onTitleChange:De=>{z(De)}})),a.jsx(sw,{...oe,logo:m,mainElement:ue,showFileMenu:!g,showAppearanceMenu:!!(T?.onEnabledDarkGridChange||T?.onEnabledDarkImagesChange||T?.onModeChange)})},[m,$,_,T,g,Q]);d.useEffect(()=>{const oe=ue=>ue.preventDefault();return j.current?.addEventListener("wheel",oe,{passive:!1}),()=>{j.current?.removeEventListener("wheel",oe)}},[]);const fe=d.useMemo(()=>{const oe={transparentBackground:!0};return a.jsx(B.Box,{sx:o,style:{position:"absolute",top:0,left:0,right:0,bottom:0,display:"flex",alignItems:"center",justifyContent:"center",...r},children:E?.(oe)??a.jsx(c0,{...oe})})},[o,r,E]),J=d.useCallback(({error:oe})=>(l?.(oe),a.jsx(s,{sx:o,style:r,error:oe??"Unable to display empty workbook."})),[o,r,l]),ae=d.useMemo(()=>({...o,"& .SnackbarContainer-root":{position:"absolute !important"},"& .notistack-Snackbar":{minWidth:"unset"},"& .notistack-MuiContent *":{fontFamily:oe=>oe.typography.fontFamily},"& #notistack-snackbar":{maxWidth:"560px",whiteSpace:"pre-wrap"},"*":{userSelect:"none"}}),[o]),Ce=Zs([j,t]),Me=d.useMemo(()=>{if(!L)return fe;if(L.error||!L.workbook)return J({error:L.error});let oe=null,ue=null,De=!1;return T&&(oe=R?T.dark:T.light,ue=R&&T.enableDarkGrid?T.dark:T.light,De=T.enableDarkImages),a.jsx(ah,{sx:ae,style:r,tabIndex:0,autoFocus:!0,workbook:L.workbook,ref:Ce,renderToolbar:ie,onElementLoad:Y,onRepeatCommandChange:H,onKeyDown:ze=>{u?.(ze)},renderLoadingPanel:E,gridTheme:ue,headersTheme:oe,enableDarkImages:De,className:Yn(n,"sheetxl-workbook"),onContextMenu:ze=>ze.preventDefault(),...M},"WorkbookElement")},[L,$,A,fe,E,T,M,ie,ae]);let re=a.jsx(bL,{fallbackRender:J,children:a.jsx(qL,{maxSnack:3,domRoot:q,anchorOrigin:{vertical:"bottom",horizontal:"right"},autoHideDuration:3500,onClose:(oe,ue,De)=>{j.current?.focus()},Components:{error:lw},iconVariant:{success:a.jsx(B.SvgIcon,{style:{marginRight:"8px"},children:a.jsx("path",{d:"M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z"})}),error:a.jsx(C_,{style:{marginRight:"8px"}})},children:a.jsx(xE,{children:a.jsx(cw,{workbook:L?.workbook,setWorkbook:P,importExportDisabled:g,titlePlaceHolder:O,titleWorkbook:$,setWorkbookTitle:z,refWorkbookTitle:te,commands:Q,undoManager:A,themeOptions:T,children:Me})})})});return T&&(re=a.jsxs(Tg,{theme:R?T.dark:T.light,children:[T.cssBaseline?a.jsx(B.CssBaseline,{}):null,re]})),re}));sd.displayName="EagerStudio";const YL=Object.freeze(Object.defineProperty({__proto__:null,EagerStudio:sd,default:sd},Symbol.toStringTag,{value:"Module"}));exports.$7=d3,exports.$i=e=>a.jsxs(B.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.A0=Oo,exports.AppearanceCommandButton=lb,exports.At=_m,exports.AutoColorPosition=Il,exports.Bi=e=>a.jsxs(B.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.BorderCommandButton=Ay,exports.BorderPopupButton=Py,exports.BorderStyleButton=Oy,exports.Checkboard=Dy,exports.ClearCommandButton=z3,exports.ColorButton=Id,exports.ColorCommandButton=Ul,exports.ColorPanel=Ly,exports.ColorPanelType=Iy,exports.ColorPopupButton=F3,exports.D8=J2,exports.DeleteCellsCommandButton=N3,exports.DocThemeCommandButton=ib,exports.EagerStudio=sd,exports.Fi=e=>a.jsxs(B.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.FillCommandButton=Hy,exports.FilterColumnMenu=X3,exports.FilterCommandButton=uD,exports.Filters=xb,exports.FindCommandButton=By,exports.FontFamilyCommandButton=Uy,exports.FontSizeCommandButton=Ny,exports.FormulaBar=K3,exports.FreezeCommandButton=zy,exports.He=Ab,exports.HelpCommandButton=ab,exports.HorizontalAlignCommandButton=cg,exports.Ii=e=>a.jsxs(B.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.InsertCellsCommandButton=B3,exports.InsertImageCommandButton=W3,exports.InsertScriptCommandButton=zb,exports.Lo=ms,exports.MergeCommandButton=Fy,exports.NamedCollectionEditor=G3,exports.NamedInput=db,exports.NumberFormatCommandButton=Vy,exports.PasteCommandButton=$3,exports.PresetCellStylesCommandButton=Yy,exports.PresetTableStylesCommandButton=tb,exports.Pt=Mt,exports.QuickFormulaSumCommandPopupButton=gD,exports.RangeInput=ub,exports.Re=n9,exports.Ri=e=>a.jsxs(B.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.RunScriptCommandButton=rh,exports.ScriptEditorToolbar=nh,exports.ScriptWorkspace=oh,exports.SheetTab=Y3,exports.SheetTabMenu=J3,exports.SheetZoomScale=U3,exports.SheetsAllMenu=Q3,exports.SortFilterCommandButton=V3,exports.StatusBar=q3,exports.Studio=Ub,exports.StyledStrokeIcon=M5,exports.T=et,exports.THEME_ID=n0,exports.TableStyleCanvasPreview=eb,exports.TableStyleOptionsPanel=fD,exports.TableStylePreview=Qy,exports.TextEffectsCommandButton=qy,exports.TextOverflowCommandButton=ug,exports.TextRotateCommandButton=hg,exports.ThemeMode=ld,exports.ThemeSelectButton=nb,exports.ThemeSelectPanel=ob,exports.ThemeSelectPopupButton=rb,exports.UnderlineCommandButton=Zy,exports.UndoRedoCommandButton=H3,exports.VerticalAlignCommandButton=dg,exports.ViewGridLinesCommandButton=$y,exports.ViewHeadingsCommandButton=Gy,exports.WalkingCopyCommandButton=Dd,exports.Wi=e=>a.jsx(B.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.WorkbookContextMenu=lh,exports.WorkbookElement=ah,exports.WorkbookIO=t0,exports.WorkbookStrip=ih,exports.WorkbookTitle=sh,exports.WorkbookViewCommandButton=Ky,exports.Yt=ur,exports.Z=tn,exports.Z0=$o,exports._WorkbookIO=iw,exports._extends=rd,exports._objectWithoutPropertiesLoose=eh,exports._setPrototypeOf=id,exports.clsx=d0,exports.clsx$1=Yn,exports.commonjsGlobal=xl,exports.createGridStyleFromMUITheme=D5,exports.createTheme=Sg,exports.defaultNewWorkbook=Hb,exports.defaultTheme=kg,exports.eo=Cn,exports.et=ND,exports.fo=s0,exports.getDefaultExportFromCjs=function(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e},exports.getOverlayAlpha=jn,exports.io=As,exports.isPlainObject=Ti,exports.ji=w9,exports.jn=X9,exports.mt=Zt,exports.renderWorkbookLoadingPanel=Wb,exports.requirePropTypes=$s,exports.rl=z9,exports.rt=T0,exports.s0=pn,exports.setPrintExamplesOnLoad=e=>{yb=e},exports.styleFunctionSx=Gl,exports.tt=qD,exports.useMeasure=ql,exports.useResolvedThemeMode=th,exports.useTheme=Zr,exports.useWorkbookCommands=Vb,exports.vr=je,exports.w5=ge,exports.yo=Vt;
|