@sheetxl/studio-vanilla 0.4.19 → 0.4.21
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/index.cjs +80 -2
- package/browser/cjs/{BJIfDlGWvnC0eGUi.cjs → n6CXzSocLW_BCO8w.cjs} +6 -6
- package/browser/esm/{DiGLoJDZqriVp152.mjs → NBuS53B7u8hItiXf.mjs} +933 -937
- package/browser/esm/index.mjs +176 -4
- package/cdn/assets/CY8njwo06MWkoPz2.js +21 -0
- package/cdn/index.js +2 -2
- package/cdn/loader.js +1 -1
- package/package.json +3 -3
- package/browser/cjs/1FbLU-GkjsXMtg8T.cjs +0 -15
- package/browser/cjs/3xnum9EEG0qokR90.cjs +0 -12
- package/browser/cjs/5i4FVjROedZEnZNH.cjs +0 -6
- package/browser/cjs/9yZt9CqVSMBE7LUX.cjs +0 -6
- package/browser/cjs/B7V2ifI29G13Ypfn.cjs +0 -378
- package/browser/cjs/BCBl10fgrkZ5JX8E.cjs +0 -161
- package/browser/cjs/BCVApYTYfHlRzbCn.cjs +0 -6
- package/browser/cjs/BjW-ykzXN9S3TMzb.cjs +0 -11
- package/browser/cjs/Bn5tlfH0oqJI1Lk9.cjs +0 -6
- package/browser/cjs/BnD8IArw964iF-Zg.cjs +0 -1501
- package/browser/cjs/BnwSPi6FOdqxr7z1.cjs +0 -19
- package/browser/cjs/BxpKhdqadWDARG9W.cjs +0 -16
- package/browser/cjs/C8FEOglWYUtglsLP.cjs +0 -6
- package/browser/cjs/CDd6P2SfTKp4v-QA.cjs +0 -6
- package/browser/cjs/CFfq2Z-VQyMwMJKP.cjs +0 -6
- package/browser/cjs/CG1FkANzsujO3FLU.cjs +0 -6
- package/browser/cjs/CGD07mOjjl6zfCzK.cjs +0 -15
- package/browser/cjs/CMO36tnnJHrXso4Q.cjs +0 -7
- package/browser/cjs/CMfyyxtrIHPMnrBl.cjs +0 -6
- package/browser/cjs/CNue1AsHpswiVYJx.cjs +0 -6
- package/browser/cjs/C_bqbac1bCl1H0Bn.cjs +0 -6
- package/browser/cjs/C_jIzbaCWis1jB7f.cjs +0 -32
- package/browser/cjs/CaFeiasVg3jafLwL.cjs +0 -6
- package/browser/cjs/CaWJjQ_KmjWp1ooU.cjs +0 -145
- package/browser/cjs/CahVr7pzDRu3h4G3.cjs +0 -6
- package/browser/cjs/CaswMUSE1R9Noewr.cjs +0 -6
- package/browser/cjs/CfX6-fSMFgAg6iL9.cjs +0 -124
- package/browser/cjs/CkhCXLhqA4a2CnSJ.cjs +0 -6
- package/browser/cjs/CkriFKrE5BBPFQWm.cjs +0 -6
- package/browser/cjs/CuX_ftSJWqfRsXHy.cjs +0 -6
- package/browser/cjs/CznEff7u33FYbOSn.cjs +0 -6
- package/browser/cjs/D-fNsTpgGyZHdYEp.cjs +0 -6
- package/browser/cjs/DCxlQuW8eB70ZbcJ.cjs +0 -6
- package/browser/cjs/DFet-I-_FYR9s_ET.cjs +0 -6
- package/browser/cjs/DKQmNMiW6vEz1i7V.cjs +0 -6
- package/browser/cjs/DMOCfhgdy7Z8GoD-.cjs +0 -13
- package/browser/cjs/DVVk6WU7lfgpQLZG.cjs +0 -6
- package/browser/cjs/DYMFAMQ13cX03167.cjs +0 -7
- package/browser/cjs/DZVJ234kMQwb5dEy.cjs +0 -6
- package/browser/cjs/DZqqUVtfn36E0rIk.cjs +0 -6
- package/browser/cjs/DguzXHidCk2s1uCY.cjs +0 -6
- package/browser/cjs/Dhik7yBvR-5iyJcR.cjs +0 -6
- package/browser/cjs/Dms2LCMINwYEtl3S.cjs +0 -6
- package/browser/cjs/DnHgK81nepMuvMim.cjs +0 -6
- package/browser/cjs/DuJlHux5dLU53d80.cjs +0 -6
- package/browser/cjs/Dz5uLsJ16GF2Cyov.cjs +0 -6
- package/browser/cjs/Io_6AEq6KpjrZEfL.cjs +0 -6
- package/browser/cjs/R7ToEkyr-cbP0Q3N.cjs +0 -6
- package/browser/cjs/TGD3vlMtB_qnQE-M.cjs +0 -11
- package/browser/cjs/XFsZZevZgfk9vB1r.cjs +0 -6
- package/browser/cjs/bGVtUGltyeHuGKLB.cjs +0 -6
- package/browser/cjs/f-w9NYC1mTi7W9HY.cjs +0 -6
- package/browser/cjs/kGBvcCWaH3h23Ojp.cjs +0 -7
- package/browser/cjs/mUwYCSHSRCUQJ4uV.cjs +0 -42
- package/browser/cjs/qLyXB7fJpKBbTC_N.cjs +0 -6
- package/browser/cjs/s2JuJCqW6ny4lxQX.cjs +0 -6
- package/browser/esm/2Fopggi4LREIIXpY.mjs +0 -13208
- package/browser/esm/4ZXEcNsjnqWXAiUa.mjs +0 -2344
- package/browser/esm/4yxl564v_Wx022xz.mjs +0 -633
- package/browser/esm/5Ovf_TtcBCG7hgdY.mjs +0 -20
- package/browser/esm/6X4p3ajMgDNtcmLW.mjs +0 -10
- package/browser/esm/8F0vFRAXlzH-vmJl.mjs +0 -52354
- package/browser/esm/B1L8rEDpskxCqnhJ.mjs +0 -10
- package/browser/esm/BENg2ibY7Hr-SYp3.mjs +0 -10
- package/browser/esm/BHzg_9TpgdKnIlaX.mjs +0 -10
- package/browser/esm/BY9rDUy2rHkqh6hH.mjs +0 -820
- package/browser/esm/Bd2yJknZG5WTZ26u.mjs +0 -10
- package/browser/esm/BlH_AWoPr-w3-qdS.mjs +0 -10
- package/browser/esm/BmeozQuzbqa81PvH.mjs +0 -41
- package/browser/esm/BprECrKMFGb2UK2v.mjs +0 -2174
- package/browser/esm/Br_6r7a5IjKksr00.mjs +0 -390
- package/browser/esm/ByJuiohpCMXnDKmL.mjs +0 -47
- package/browser/esm/C04_X_6DkiZCUmwB.mjs +0 -1702
- package/browser/esm/C3pNOQaLBsTUp2CW.mjs +0 -10
- package/browser/esm/C4gnsPTE7_xP3Mz_.mjs +0 -1575
- package/browser/esm/C8kq7JNW8ivhRL1S.mjs +0 -3934
- package/browser/esm/CGquHZGGYOxATF73.mjs +0 -10
- package/browser/esm/CKwR5AWlnckKQRc-.mjs +0 -10
- package/browser/esm/CLSpsTCV3Onb_QXV.mjs +0 -84
- package/browser/esm/CMrXKGbxBR_LxLxN.mjs +0 -3755
- package/browser/esm/CN-UcSPqkcXnkJCx.mjs +0 -1365
- package/browser/esm/CQJsDOnipkhuGkKg.mjs +0 -56
- package/browser/esm/CTIgStBt9DOpau5q.mjs +0 -1665
- package/browser/esm/CXL9mY2kUT053cTN.mjs +0 -1346
- package/browser/esm/CZ54d8Ueai6uZgy6.mjs +0 -10
- package/browser/esm/CZM2uNUNI4W8qUw3.mjs +0 -10
- package/browser/esm/CaaAGrJF7OxdprqB.mjs +0 -10
- package/browser/esm/CnRJWnfDHzunp3N5.mjs +0 -472
- package/browser/esm/CpGYH9QSPqM4ejyF.mjs +0 -421
- package/browser/esm/CqLIq6VVhQnv6ZP4.mjs +0 -10
- package/browser/esm/CqTn7MLxDJZX7aIA.mjs +0 -10
- package/browser/esm/D3RHh0FQuMAKk4JL.mjs +0 -10
- package/browser/esm/D8hxrXJDfvDRoouY.mjs +0 -147
- package/browser/esm/DMwYqCQzDDwbzt8K.mjs +0 -44
- package/browser/esm/DNV2yXFlJ5hRF5ME.mjs +0 -46
- package/browser/esm/DUxcExPcvgbBrSXX.mjs +0 -5582
- package/browser/esm/DbTEH7CjzsjIc-ew.mjs +0 -21
- package/browser/esm/Df2lY3OJ73BCDQo6.mjs +0 -24
- package/browser/esm/DlUeNEy_cp31Am5t.mjs +0 -39
- package/browser/esm/DovESggwbqQKJEkM.mjs +0 -10
- package/browser/esm/DpNpusKUeZXcDNra.mjs +0 -29
- package/browser/esm/Dx-FJghQY8rpWJi1.mjs +0 -10
- package/browser/esm/DxObRtwZ98tP8NM3.mjs +0 -10
- package/browser/esm/FT-XJjpzjdyq4pin.mjs +0 -48
- package/browser/esm/HnfOytlj72v4rd6y.mjs +0 -425
- package/browser/esm/IChTkXO9eDekfSb7.mjs +0 -10
- package/browser/esm/KcDpdRfEgTnFwlSh.mjs +0 -21
- package/browser/esm/TVfGpAQkvkA9mx4E.mjs +0 -10
- package/browser/esm/pqikV5IyVMBYUDqP.mjs +0 -10
- package/browser/esm/qfHSXgWX4yZd3nwZ.mjs +0 -1466
- package/browser/esm/xWvOAH67Iwyf2Zge.mjs +0 -10
- package/browser/esm/xaJvLe6JwO1rQiE-.mjs +0 -12
- package/cdn/assets/15AvUM5aNUAfFLU7.js +0 -58
- package/cdn/assets/2Fopggi4LREIIXpY.js +0 -13208
- package/cdn/assets/4yxl564v_Wx022xz.js +0 -633
- package/cdn/assets/6X4p3ajMgDNtcmLW.js +0 -10
- package/cdn/assets/B1L8rEDpskxCqnhJ.js +0 -10
- package/cdn/assets/B1y38xd4JTLIrdUW.js +0 -1702
- package/cdn/assets/BENg2ibY7Hr-SYp3.js +0 -10
- package/cdn/assets/BHzg_9TpgdKnIlaX.js +0 -10
- package/cdn/assets/BXRf5zCAUE8kGNat.js +0 -46
- package/cdn/assets/BZdjtacH2DTSHsdG.js +0 -22
- package/cdn/assets/Bd2yJknZG5WTZ26u.js +0 -10
- package/cdn/assets/BlH_AWoPr-w3-qdS.js +0 -10
- package/cdn/assets/C3pNOQaLBsTUp2CW.js +0 -10
- package/cdn/assets/C6yX85fw0aO70N0-.js +0 -2346
- package/cdn/assets/CGquHZGGYOxATF73.js +0 -10
- package/cdn/assets/CKwR5AWlnckKQRc-.js +0 -10
- package/cdn/assets/CN-UcSPqkcXnkJCx.js +0 -1365
- package/cdn/assets/CSBAnGx7ebIRyjML.js +0 -21
- package/cdn/assets/CTIgStBt9DOpau5q.js +0 -1665
- package/cdn/assets/CXL9mY2kUT053cTN.js +0 -1346
- package/cdn/assets/CZ54d8Ueai6uZgy6.js +0 -10
- package/cdn/assets/CZM2uNUNI4W8qUw3.js +0 -10
- package/cdn/assets/CaaAGrJF7OxdprqB.js +0 -10
- package/cdn/assets/Cfgui52VcoZakyBi.js +0 -50
- package/cdn/assets/Ck6R7vI9j0vG-mKU.js +0 -390
- package/cdn/assets/ClTJpu1UdRW0KLAX.js +0 -23
- package/cdn/assets/Co1yPh9LPeUa-tCm.js +0 -29
- package/cdn/assets/CpGYH9QSPqM4ejyF.js +0 -421
- package/cdn/assets/CppP22dM3wzxzf_R.js +0 -3934
- package/cdn/assets/CqLIq6VVhQnv6ZP4.js +0 -10
- package/cdn/assets/CqTn7MLxDJZX7aIA.js +0 -10
- package/cdn/assets/D3RHh0FQuMAKk4JL.js +0 -10
- package/cdn/assets/DCmJyecz9jzS5Hh5.js +0 -41
- package/cdn/assets/DEHd1h8uAHbt7JQl.js +0 -425
- package/cdn/assets/DK25k4g9SWrBiPDl.js +0 -43
- package/cdn/assets/DL18SWHzmNBC5_Sq.js +0 -472
- package/cdn/assets/DZz8nVXsYYFIaomy.js +0 -3756
- package/cdn/assets/Df2lY3OJ73BCDQo6.js +0 -24
- package/cdn/assets/DidmQocPR2LUv5_-.js +0 -84
- package/cdn/assets/DifkJcFEihfAmrz6.js +0 -5582
- package/cdn/assets/Dj-9L-ifpIi1HChy.js +0 -52185
- package/cdn/assets/DovESggwbqQKJEkM.js +0 -10
- package/cdn/assets/Dwy3QqzGL-q3IHdC.js +0 -49
- package/cdn/assets/Dx-FJghQY8rpWJi1.js +0 -10
- package/cdn/assets/DxObRtwZ98tP8NM3.js +0 -10
- package/cdn/assets/IChTkXO9eDekfSb7.js +0 -10
- package/cdn/assets/KcDpdRfEgTnFwlSh.js +0 -21
- package/cdn/assets/R-6SrokApX5Vs5h6.js +0 -12
- package/cdn/assets/TVfGpAQkvkA9mx4E.js +0 -10
- package/cdn/assets/ZfVobc-p41aYisnX.js +0 -46
- package/cdn/assets/_QS_SgWjAGVcBh2y.js +0 -2177
- package/cdn/assets/_bKdjn1gFyUlsKF8.js +0 -149
- package/cdn/assets/cgKx_r-dAv2kc57N.js +0 -1575
- package/cdn/assets/lxv3lfQ08L2wD1S3.js +0 -820
- package/cdn/assets/pqikV5IyVMBYUDqP.js +0 -10
- package/cdn/assets/wXUNHjkvpeSH2dQZ.js +0 -1466
- package/cdn/assets/xWvOAH67Iwyf2Zge.js +0 -10
- package/cdn/assets/xaJvLe6JwO1rQiE-.js +0 -12
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
"use strict";/**
|
|
2
|
-
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - 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
|
-
*/Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const h=require("./B7V2ifI29G13Ypfn.cjs"),Dt=h.reactExports.createContext(),Ft=h.reactExports.createContext();function Nt(o){return h.generateUtilityClass("MuiTableCell",o)}const Bt=h.generateUtilityClasses("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),Ut=h.styled("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(o,e)=>{const{ownerState:t}=o;return[e.root,e[t.variant],e[`size${h.capitalize(t.size)}`],t.padding!=="normal"&&e[`padding${h.capitalize(t.padding)}`],t.align!=="inherit"&&e[`align${h.capitalize(t.align)}`],t.stickyHeader&&e.stickyHeader]}})(h.memoTheme(({theme:o})=>({...o.typography.body2,display:"table-cell",verticalAlign:"inherit",borderBottom:o.vars?`1px solid ${o.vars.palette.TableCell.border}`:`1px solid
|
|
7
|
-
${o.palette.mode==="light"?h.lighten(h.alpha(o.palette.divider,1),.88):h.darken(h.alpha(o.palette.divider,1),.68)}`,textAlign:"left",padding:16,variants:[{props:{variant:"head"},style:{color:(o.vars||o).palette.text.primary,lineHeight:o.typography.pxToRem(24),fontWeight:o.typography.fontWeightMedium}},{props:{variant:"body"},style:{color:(o.vars||o).palette.text.primary}},{props:{variant:"footer"},style:{color:(o.vars||o).palette.text.secondary,lineHeight:o.typography.pxToRem(21),fontSize:o.typography.pxToRem(12)}},{props:{size:"small"},style:{padding:"6px 16px",[`&.${Bt.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}}},{props:{padding:"checkbox"},style:{width:48,padding:"0 0 0 4px"}},{props:{padding:"none"},style:{padding:0}},{props:{align:"left"},style:{textAlign:"left"}},{props:{align:"center"},style:{textAlign:"center"}},{props:{align:"right"},style:{textAlign:"right",flexDirection:"row-reverse"}},{props:{align:"justify"},style:{textAlign:"justify"}},{props:({ownerState:e})=>e.stickyHeader,style:{position:"sticky",top:0,zIndex:2,backgroundColor:(o.vars||o).palette.background.default}}]}))),Ie=h.reactExports.forwardRef(function(o,e){const t=h.useDefaultProps({props:o,name:"MuiTableCell"}),{align:r="inherit",className:n,component:l,padding:i,scope:a,size:s,sortDirection:c,variant:d,...f}=t,p=h.reactExports.useContext(Dt),u=h.reactExports.useContext(Ft),_=u&&u.variant==="head";let g;g=l||(_?"th":"td");let S=a;g==="td"?S=void 0:!S&&_&&(S="col");const y=d||u&&u.variant,x={...t,align:r,component:g,padding:i||(p&&p.padding?p.padding:"normal"),size:s||(p&&p.size?p.size:"medium"),sortDirection:c,stickyHeader:y==="head"&&p&&p.stickyHeader,variant:y},v=(C=>{const{classes:b,variant:R,align:T,padding:I,size:O,stickyHeader:P}=C,z={root:["root",R,P&&"stickyHeader",T!=="inherit"&&`align${h.capitalize(T)}`,I!=="normal"&&`padding${h.capitalize(I)}`,`size${h.capitalize(O)}`]};return h.composeClasses(z,Nt,b)})(x);let w=null;return c&&(w=c==="asc"?"ascending":"descending"),h.jsxRuntimeExports.jsx(Ut,{as:g,ref:e,className:h.clsx(v.root,n),"aria-sort":w,scope:S,ownerState:x,...f})}),Vt=h.AM();function ue(o){return o!=="ownerState"&&o!=="theme"&&o!=="sx"&&o!=="as"}function U(o,e){return e&&o&&typeof o=="object"&&o.styles&&!o.styles.startsWith("@layer")&&(o.styles=`@layer ${e}{${String(o.styles)}}`),o}function $t(o){return o?(e,t)=>t[o]:null}function ae(o,e,t){const r=typeof e=="function"?e(o):e;if(Array.isArray(r))return r.flatMap(n=>ae(o,n,t));if(Array.isArray(r?.variants)){let n;if(r.isProcessed)n=t?U(r.style,t):r.style;else{const{variants:l,...i}=r;n=t?U(h.internal_serializeStyles(i),t):i}return at(o,r.variants,[n],t)}return r?.isProcessed?t?U(h.internal_serializeStyles(r.style),t):r.style:t?U(h.internal_serializeStyles(r),t):r}function at(o,e,t=[],r=void 0){let n;e:for(let l=0;l<e.length;l+=1){const i=e[l];if(typeof i.props=="function"){if(n??={...o,...o.ownerState,ownerState:o.ownerState},!i.props(n))continue}else for(const a in i.props)if(o[a]!==i.props[a]&&o.ownerState?.[a]!==i.props[a])continue e;typeof i.style=="function"?(n??={...o,...o.ownerState,ownerState:o.ownerState},t.push(r?U(h.internal_serializeStyles(i.style(n)),r):i.style(n))):t.push(r?U(h.internal_serializeStyles(i.style),r):i.style)}return t}function qt(o){return o&&o.charAt(0).toLowerCase()+o.slice(1)}const Kt=function(o={}){const{themeId:e,defaultTheme:t=Vt,rootShouldForwardProp:r=ue,slotShouldForwardProp:n=ue}=o;function l(i){var a,s,c;s=e,c=t,(a=i).theme=function(d){for(const f in d)return!1;return!0}(a.theme)?c:a.theme[s]||a.theme}return(i,a={})=>{h.internal_mutateStyles(i,b=>b.filter(R=>R!==h.O1));const{name:s,slot:c,skipVariantsResolver:d,skipSx:f,overridesResolver:p=$t(qt(c)),...u}=a,_=s&&s.startsWith("Mui")||c?"components":"custom",g=d!==void 0?d:c&&c!=="Root"&&c!=="root"||!1,S=f||!1;let y=ue;var x;c==="Root"||c==="root"?y=r:c?y=n:typeof(x=i)=="string"&&x.charCodeAt(0)>96&&(y=void 0);const v=h.styled$1(i,{shouldForwardProp:y,label:void 0,...u}),w=b=>{if(b.__emotion_real===b)return b;if(typeof b=="function")return function(R){return ae(R,b,R.theme.modularCssLayers?_:void 0)};if(h.k0(b)){const R=function(T){const{variants:I,...O}=T,P={variants:I,style:h.internal_serializeStyles(O),isProcessed:!0};return P.style===O||I&&I.forEach(z=>{typeof z.style!="function"&&(z.style=h.internal_serializeStyles(z.style))}),P}(b);return function(T){return R.variants?ae(T,R,T.theme.modularCssLayers?_:void 0):T.theme.modularCssLayers?U(R.style,_):R.style}}return b},C=(...b)=>{const R=[],T=b.map(w),I=[];if(R.push(l),s&&p&&I.push(function(z){const E=z.theme,L=E.components?.[s]?.styleOverrides;if(!L)return null;const F={};for(const Te in L)F[Te]=ae(z,L[Te],z.theme.modularCssLayers?"theme":void 0);return p(z,F)}),s&&!g&&I.push(function(z){const E=z.theme,L=E?.components?.[s]?.variants;return L?at(z,L,[],z.theme.modularCssLayers?"theme":void 0):null}),S||I.push(h.O1),Array.isArray(T[0])){const z=T.shift(),E=new Array(R.length).fill(""),L=new Array(I.length).fill("");let F;F=[...E,...z,...L],F.raw=[...E,...z.raw,...L],R.unshift(F)}const O=[...R,...T,...I],P=v(...O);return i.muiName&&(P.muiName=i.muiName),P};return v.withConfig&&(C.withConfig=v.withConfig),C}}({themeId:h.ul,defaultTheme:h.GM,rootShouldForwardProp:o=>function(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}(o)&&o!=="classes"});function G(o,e){if(!(o instanceof e))throw new TypeError("Cannot call a class as a function")}function K(o){return(K=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(o)}function ct(o){var e=function(t){if(K(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,"string");if(K(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(o);return K(e)=="symbol"?e:e+""}function Pe(o,e){for(var t=0;t<e.length;t++){var r=e[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(o,ct(r.key),r)}}function A(o,e,t){return e&&Pe(o.prototype,e),t&&Pe(o,t),Object.defineProperty(o,"prototype",{writable:!1}),o}function H(o,e){if(e&&(K(e)=="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(o)}function k(o){return(k=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(o)}function j(o,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");o.prototype=Object.create(e&&e.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),Object.defineProperty(o,"prototype",{writable:!1}),e&&h.y3(o,e)}function m(o,e,t){return(e=ct(e))in o?Object.defineProperty(o,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):o[e]=t,o}function dt(){var o=this.constructor.getDerivedStateFromProps(this.props,this.state);o!=null&&this.setState(o)}function ut(o){this.setState(function(e){return this.constructor.getDerivedStateFromProps(o,e)??null}.bind(this))}function ht(o,e){try{var t=this.props,r=this.state;this.props=o,this.state=e,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(t,r)}finally{this.props=t,this.state=r}}function ie(o){var e=o.prototype;if(!e||!e.isReactComponent)throw new Error("Can only polyfill class components");if(typeof o.getDerivedStateFromProps!="function"&&typeof e.getSnapshotBeforeUpdate!="function")return o;var t=null,r=null,n=null;if(typeof e.componentWillMount=="function"?t="componentWillMount":typeof e.UNSAFE_componentWillMount=="function"&&(t="UNSAFE_componentWillMount"),typeof e.componentWillReceiveProps=="function"?r="componentWillReceiveProps":typeof e.UNSAFE_componentWillReceiveProps=="function"&&(r="UNSAFE_componentWillReceiveProps"),typeof e.componentWillUpdate=="function"?n="componentWillUpdate":typeof e.UNSAFE_componentWillUpdate=="function"&&(n="UNSAFE_componentWillUpdate"),t!==null||r!==null||n!==null){var l=o.displayName||o.name,i=typeof o.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error(`Unsafe legacy lifecycles will not be called for components using new component APIs.
|
|
8
|
-
|
|
9
|
-
`+l+" uses "+i+" but also contains the following legacy lifecycles:"+(t!==null?`
|
|
10
|
-
`+t:"")+(r!==null?`
|
|
11
|
-
`+r:"")+(n!==null?`
|
|
12
|
-
`+n:"")+`
|
|
13
|
-
|
|
14
|
-
The above lifecycles should be removed. Learn more about this warning here:
|
|
15
|
-
https://fb.me/react-async-component-lifecycle-hooks`)}if(typeof o.getDerivedStateFromProps=="function"&&(e.componentWillMount=dt,e.componentWillReceiveProps=ut),typeof e.getSnapshotBeforeUpdate=="function"){if(typeof e.componentDidUpdate!="function")throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");e.componentWillUpdate=ht;var a=e.componentDidUpdate;e.componentDidUpdate=function(s,c,d){var f=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:d;a.call(this,s,c,f)}}return o}function Oe(o,e){var t=Object.keys(o);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(o);e&&(r=r.filter(function(n){return Object.getOwnPropertyDescriptor(o,n).enumerable})),t.push.apply(t,r)}return t}function ke(o){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?Oe(Object(t),!0).forEach(function(r){m(o,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(t)):Oe(Object(t)).forEach(function(r){Object.defineProperty(o,r,Object.getOwnPropertyDescriptor(t,r))})}return o}function ft(){try{var o=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(ft=function(){return!!o})()}dt.__suppressDeprecationWarning=!0,ut.__suppressDeprecationWarning=!0,ht.__suppressDeprecationWarning=!0;var Me=function(){function o(){var e,t,r,n;G(this,o);for(var l=arguments.length,i=new Array(l),a=0;a<l;a++)i[a]=arguments[a];return t=this,r=o,n=[].concat(i),r=k(r),m(e=H(t,ft()?Reflect.construct(r,n||[],k(t).constructor):r.apply(t,n)),"state",{scrollToColumn:0,scrollToRow:0,instanceProps:{prevScrollToColumn:0,prevScrollToRow:0}}),m(e,"_columnStartIndex",0),m(e,"_columnStopIndex",0),m(e,"_rowStartIndex",0),m(e,"_rowStopIndex",0),m(e,"_onKeyDown",function(s){var c=e.props,d=c.columnCount,f=c.disabled,p=c.mode,u=c.rowCount;if(!f){var _=e._getScrollState(),g=_.scrollToColumn,S=_.scrollToRow,y=e._getScrollState(),x=y.scrollToColumn,v=y.scrollToRow;switch(s.key){case"ArrowDown":v=Math.min(p==="cells"?v+1:e._rowStopIndex+1,u-1);break;case"ArrowLeft":x=Math.max(p==="cells"?x-1:e._columnStartIndex-1,0);break;case"ArrowRight":x=Math.min(p==="cells"?x+1:e._columnStopIndex+1,d-1);break;case"ArrowUp":v=Math.max(p==="cells"?v-1:e._rowStartIndex-1,0)}x===g&&v===S||(s.preventDefault(),e._updateScrollState({scrollToColumn:x,scrollToRow:v}))}}),m(e,"_onSectionRendered",function(s){var c=s.columnStartIndex,d=s.columnStopIndex,f=s.rowStartIndex,p=s.rowStopIndex;e._columnStartIndex=c,e._columnStopIndex=d,e._rowStartIndex=f,e._rowStopIndex=p}),e}return j(o,h.reactExports.PureComponent),A(o,[{key:"setScrollIndexes",value:function(e){var t=e.scrollToColumn,r=e.scrollToRow;this.setState({scrollToRow:r,scrollToColumn:t})}},{key:"render",value:function(){var e=this.props,t=e.className,r=e.children,n=this._getScrollState(),l=n.scrollToColumn,i=n.scrollToRow;return h.reactExports.createElement("div",{className:t,onKeyDown:this._onKeyDown},r({onSectionRendered:this._onSectionRendered,scrollToColumn:l,scrollToRow:i}))}},{key:"_getScrollState",value:function(){return this.props.isControlled?this.props:this.state}},{key:"_updateScrollState",value:function(e){var t=e.scrollToColumn,r=e.scrollToRow,n=this.props,l=n.isControlled,i=n.onScrollToChange;typeof i=="function"&&i({scrollToColumn:t,scrollToRow:r}),l||this.setState({scrollToColumn:t,scrollToRow:r})}}],[{key:"getDerivedStateFromProps",value:function(e,t){return e.isControlled?{}:e.scrollToColumn!==t.instanceProps.prevScrollToColumn||e.scrollToRow!==t.instanceProps.prevScrollToRow?ke(ke({},t),{},{scrollToColumn:e.scrollToColumn,scrollToRow:e.scrollToRow,instanceProps:{prevScrollToColumn:e.scrollToColumn,prevScrollToRow:e.scrollToRow}}):{}}}])}();function pt(o,e){var t,r,n=(t=e!==void 0?e:typeof window<"u"?window:typeof self<"u"?self:global).document!==void 0&&t.document.attachEvent;if(!n){var l=(r=t.requestAnimationFrame||t.mozRequestAnimationFrame||t.webkitRequestAnimationFrame||function(v){return t.setTimeout(v,20)},function(v){return r(v)}),i=function(){var v=t.cancelAnimationFrame||t.mozCancelAnimationFrame||t.webkitCancelAnimationFrame||t.clearTimeout;return function(w){return v(w)}}(),a=function(v){var w=v.__resizeTriggers__,C=w.firstElementChild,b=w.lastElementChild,R=C.firstElementChild;b.scrollLeft=b.scrollWidth,b.scrollTop=b.scrollHeight,R.style.width=C.offsetWidth+1+"px",R.style.height=C.offsetHeight+1+"px",C.scrollLeft=C.scrollWidth,C.scrollTop=C.scrollHeight},s=function(v){if(!(v.target.className&&typeof v.target.className.indexOf=="function"&&v.target.className.indexOf("contract-trigger")<0&&v.target.className.indexOf("expand-trigger")<0)){var w=this;a(this),this.__resizeRAF__&&i(this.__resizeRAF__),this.__resizeRAF__=l(function(){var C;((C=w).offsetWidth!=C.__resizeLast__.width||C.offsetHeight!=C.__resizeLast__.height)&&(w.__resizeLast__.width=w.offsetWidth,w.__resizeLast__.height=w.offsetHeight,w.__resizeListeners__.forEach(function(b){b.call(w,v)}))})}},c=!1,d="",f="animationstart",p="Webkit Moz O ms".split(" "),u="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "),_=t.document.createElement("fakeelement");if(_.style.animationName!==void 0&&(c=!0),c===!1){for(var g=0;g<p.length;g++)if(_.style[p[g]+"AnimationName"]!==void 0){d="-"+p[g].toLowerCase()+"-",f=u[g],c=!0;break}}var S="resizeanim",y="@"+d+"keyframes "+S+" { from { opacity: 0; } to { opacity: 0; } } ",x=d+"animation: 1ms "+S+"; "}return{addResizeListener:function(v,w){if(n)v.attachEvent("onresize",w);else{if(!v.__resizeTriggers__){var C=v.ownerDocument,b=t.getComputedStyle(v);b&&b.position=="static"&&(v.style.position="relative"),function(I){if(!I.getElementById("detectElementResize")){var O=(y||"")+".resize-triggers { "+(x||"")+'visibility: hidden; opacity: 0; } .resize-triggers, .resize-triggers > div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }',P=I.head||I.getElementsByTagName("head")[0],z=I.createElement("style");z.id="detectElementResize",z.type="text/css",o!=null&&z.setAttribute("nonce",o),z.styleSheet?z.styleSheet.cssText=O:z.appendChild(I.createTextNode(O)),P.appendChild(z)}}(C),v.__resizeLast__={},v.__resizeListeners__=[],(v.__resizeTriggers__=C.createElement("div")).className="resize-triggers";var R=C.createElement("div");R.className="expand-trigger",R.appendChild(C.createElement("div"));var T=C.createElement("div");T.className="contract-trigger",v.__resizeTriggers__.appendChild(R),v.__resizeTriggers__.appendChild(T),v.appendChild(v.__resizeTriggers__),a(v),v.addEventListener("scroll",s,!0),f&&(v.__resizeTriggers__.__animationListener__=function(I){I.animationName==S&&a(v)},v.__resizeTriggers__.addEventListener(f,v.__resizeTriggers__.__animationListener__))}v.__resizeListeners__.push(w)}},removeResizeListener:function(v,w){if(n)v.detachEvent("onresize",w);else if(v.__resizeListeners__.splice(v.__resizeListeners__.indexOf(w),1),!v.__resizeListeners__.length){v.removeEventListener("scroll",s,!0),v.__resizeTriggers__.__animationListener__&&(v.__resizeTriggers__.removeEventListener(f,v.__resizeTriggers__.__animationListener__),v.__resizeTriggers__.__animationListener__=null);try{v.__resizeTriggers__=!v.removeChild(v.__resizeTriggers__)}catch{}}}}}function Ee(o,e){var t=Object.keys(o);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(o);e&&(r=r.filter(function(n){return Object.getOwnPropertyDescriptor(o,n).enumerable})),t.push.apply(t,r)}return t}function Le(o){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?Ee(Object(t),!0).forEach(function(r){m(o,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(t)):Ee(Object(t)).forEach(function(r){Object.defineProperty(o,r,Object.getOwnPropertyDescriptor(t,r))})}return o}function mt(){try{var o=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(mt=function(){return!!o})()}m(Me,"defaultProps",{disabled:!1,isControlled:!1,mode:"edges",scrollToColumn:0,scrollToRow:0}),ie(Me);var gt=function(){function o(){var e,t,r,n;G(this,o);for(var l=arguments.length,i=new Array(l),a=0;a<l;a++)i[a]=arguments[a];return t=this,r=o,n=[].concat(i),r=k(r),m(e=H(t,mt()?Reflect.construct(r,n||[],k(t).constructor):r.apply(t,n)),"state",{height:e.props.defaultHeight||0,width:e.props.defaultWidth||0}),m(e,"_parentNode",void 0),m(e,"_autoSizer",void 0),m(e,"_window",void 0),m(e,"_detectElementResize",void 0),m(e,"_onResize",function(){var s=e.props,c=s.disableHeight,d=s.disableWidth,f=s.onResize;if(e._parentNode){var p=e._parentNode.offsetHeight||0,u=e._parentNode.offsetWidth||0,_=(e._window||window).getComputedStyle(e._parentNode)||{},g=parseInt(_.paddingLeft,10)||0,S=parseInt(_.paddingRight,10)||0,y=parseInt(_.paddingTop,10)||0,x=parseInt(_.paddingBottom,10)||0,v=p-y-x,w=u-g-S;(!c&&e.state.height!==v||!d&&e.state.width!==w)&&(e.setState({height:p-y-x,width:u-g-S}),f({height:p,width:u}))}}),m(e,"_setRef",function(s){e._autoSizer=s}),e}return j(o,h.reactExports.Component),A(o,[{key:"componentDidMount",value:function(){var e=this.props.nonce;this._autoSizer&&this._autoSizer.parentNode&&this._autoSizer.parentNode.ownerDocument&&this._autoSizer.parentNode.ownerDocument.defaultView&&this._autoSizer.parentNode instanceof this._autoSizer.parentNode.ownerDocument.defaultView.HTMLElement&&(this._parentNode=this._autoSizer.parentNode,this._window=this._autoSizer.parentNode.ownerDocument.defaultView,this._detectElementResize=pt(e,this._window),this._detectElementResize.addResizeListener(this._parentNode,this._onResize),this._onResize())}},{key:"componentWillUnmount",value:function(){this._detectElementResize&&this._parentNode&&this._detectElementResize.removeResizeListener(this._parentNode,this._onResize)}},{key:"render",value:function(){var e=this.props,t=e.children,r=e.className,n=e.disableHeight,l=e.disableWidth,i=e.style,a=this.state,s=a.height,c=a.width,d={overflow:"visible"},f={};return n||(d.height=0,f.height=s),l||(d.width=0,f.width=c),h.reactExports.createElement("div",{className:r,ref:this._setRef,style:Le(Le({},d),i)},t(f))}}])}();function vt(){try{var o=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(vt=function(){return!!o})()}m(gt,"defaultProps",{onResize:function(){},disableHeight:!1,disableWidth:!1,style:{}});var Xt=function(){function o(){var e,t,r,n;G(this,o);for(var l=arguments.length,i=new Array(l),a=0;a<l;a++)i[a]=arguments[a];return t=this,r=o,n=[].concat(i),r=k(r),m(e=H(t,vt()?Reflect.construct(r,n||[],k(t).constructor):r.apply(t,n)),"_child",h.reactExports.createRef()),m(e,"_measure",function(){var s=e.props,c=s.cache,d=s.columnIndex,f=d===void 0?0:d,p=s.parent,u=s.rowIndex,_=u===void 0?e.props.index||0:u,g=e._getCellMeasurements(),S=g.height,y=g.width;S===c.getHeight(_,f)&&y===c.getWidth(_,f)||(c.set(_,f,y,S),p&&typeof p.recomputeGridSize=="function"&&p.recomputeGridSize({columnIndex:f,rowIndex:_}))}),m(e,"_registerChild",function(s){!s||s instanceof Element||console.warn("CellMeasurer registerChild expects to be passed Element or null"),e._child.current=s,s&&e._maybeMeasureCell()}),e}return j(o,h.reactExports.PureComponent),A(o,[{key:"componentDidMount",value:function(){this._maybeMeasureCell()}},{key:"componentDidUpdate",value:function(){this._maybeMeasureCell()}},{key:"render",value:function(){var e=this,t=this.props.children,r=typeof t=="function"?t({measure:this._measure,registerChild:this._registerChild}):t;return r===null?r:h.reactExports.cloneElement(r,{ref:function(n){typeof r.ref=="function"?r.ref(n):r.ref&&(r.ref.current=n),e._child.current=n}})}},{key:"_getCellMeasurements",value:function(){var e=this.props.cache,t=this._child.current;if(t&&t.ownerDocument&&t.ownerDocument.defaultView&&t instanceof t.ownerDocument.defaultView.HTMLElement){var r=t.style.width,n=t.style.height;e.hasFixedWidth()||(t.style.width="auto"),e.hasFixedHeight()||(t.style.height="auto");var l=Math.ceil(t.offsetHeight),i=Math.ceil(t.offsetWidth);return r&&(t.style.width=r),n&&(t.style.height=n),{height:l,width:i}}return{height:0,width:0}}},{key:"_maybeMeasureCell",value:function(){var e=this.props,t=e.cache,r=e.columnIndex,n=r===void 0?0:r,l=e.parent,i=e.rowIndex,a=i===void 0?this.props.index||0:i;if(!t.has(a,n)){var s=this._getCellMeasurements(),c=s.height,d=s.width;t.set(a,n,d,c),l&&typeof l.invalidateCellSizeAfterRender=="function"&&l.invalidateCellSizeAfterRender({columnIndex:n,rowIndex:a})}}}])}();function X(){var o=!(arguments.length>0&&arguments[0]!==void 0)||arguments[0],e={};return function(t){var r=t.callback,n=t.indices,l=Object.keys(n),i=!o||l.every(function(s){var c=n[s];return Array.isArray(c)?c.length>0:c>=0}),a=l.length!==Object.keys(e).length||l.some(function(s){var c=e[s],d=n[s];return Array.isArray(d)?c.join(",")!==d.join(","):c!==d});e=n,i&&a&&r(n)}}m(Xt,"__internalCellMeasurerFlag",!1);const Yt=!(typeof window>"u"||!window.document||!window.document.createElement);var le;function ge(o){if((!le&&le!==0||o)&&Yt){var e=document.createElement("div");e.style.position="absolute",e.style.top="-9999px",e.style.width="50px",e.style.height="50px",e.style.overflow="scroll",document.body.appendChild(e),le=e.offsetWidth-e.clientWidth,document.body.removeChild(e)}return le}function Ge(o,e){var t=Object.keys(o);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(o);e&&(r=r.filter(function(n){return Object.getOwnPropertyDescriptor(o,n).enumerable})),t.push.apply(t,r)}return t}function Ae(o){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?Ge(Object(t),!0).forEach(function(r){m(o,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(t)):Ge(Object(t)).forEach(function(r){Object.defineProperty(o,r,Object.getOwnPropertyDescriptor(t,r))})}return o}function _t(){try{var o=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(_t=function(){return!!o})()}var J="requested",ce=function(){function o(){var e,t,r,n;G(this,o);for(var l=arguments.length,i=new Array(l),a=0;a<l;a++)i[a]=arguments[a];return t=this,r=o,n=[].concat(i),r=k(r),m(e=H(t,_t()?Reflect.construct(r,n||[],k(t).constructor):r.apply(t,n)),"state",{isScrolling:!1,scrollLeft:0,scrollTop:0}),m(e,"_calculateSizeAndPositionDataOnNextUpdate",!1),m(e,"_onSectionRenderedMemoizer",X()),m(e,"_onScrollMemoizer",X(!1)),m(e,"_invokeOnSectionRenderedHelper",function(){var s=e.props,c=s.cellLayoutManager,d=s.onSectionRendered;e._onSectionRenderedMemoizer({callback:d,indices:{indices:c.getLastRenderedIndices()}})}),m(e,"_setScrollingContainerRef",function(s){e._scrollingContainer=s}),m(e,"_updateScrollPositionForScrollToCell",function(){var s=e.props,c=s.cellLayoutManager,d=s.height,f=s.scrollToAlignment,p=s.scrollToCell,u=s.width,_=e.state,g=_.scrollLeft,S=_.scrollTop;if(p>=0){var y=c.getScrollPositionForCell({align:f,cellIndex:p,height:d,scrollLeft:g,scrollTop:S,width:u});y.scrollLeft===g&&y.scrollTop===S||e._setScrollPosition(y)}}),m(e,"_onScroll",function(s){if(s.target===e._scrollingContainer){e._enablePointerEventsAfterDelay();var c=e.props,d=c.cellLayoutManager,f=c.height,p=c.isScrollingChange,u=c.width,_=e._scrollbarSize,g=d.getTotalSize(),S=g.height,y=g.width,x=Math.max(0,Math.min(y-u+_,s.target.scrollLeft)),v=Math.max(0,Math.min(S-f+_,s.target.scrollTop));if(e.state.scrollLeft!==x||e.state.scrollTop!==v){var w=s.cancelable?"observed":J;e.state.isScrolling||p(!0),e.setState({isScrolling:!0,scrollLeft:x,scrollPositionChangeReason:w,scrollTop:v})}e._invokeOnScrollMemoizer({scrollLeft:x,scrollTop:v,totalWidth:y,totalHeight:S})}}),e._scrollbarSize=ge(),e._scrollbarSize===void 0?(e._scrollbarSizeMeasured=!1,e._scrollbarSize=0):e._scrollbarSizeMeasured=!0,e}return j(o,h.reactExports.PureComponent),A(o,[{key:"recomputeCellSizesAndPositions",value:function(){this._calculateSizeAndPositionDataOnNextUpdate=!0,this.forceUpdate()}},{key:"componentDidMount",value:function(){var e=this.props,t=e.cellLayoutManager,r=e.scrollLeft,n=e.scrollToCell,l=e.scrollTop;this._scrollbarSizeMeasured||(this._scrollbarSize=ge(),this._scrollbarSizeMeasured=!0,this.setState({})),n>=0?this._updateScrollPositionForScrollToCell():(r>=0||l>=0)&&this._setScrollPosition({scrollLeft:r,scrollTop:l}),this._invokeOnSectionRenderedHelper();var i=t.getTotalSize(),a=i.height,s=i.width;this._invokeOnScrollMemoizer({scrollLeft:r||0,scrollTop:l||0,totalHeight:a,totalWidth:s})}},{key:"componentDidUpdate",value:function(e,t){var r=this.props,n=r.height,l=r.scrollToAlignment,i=r.scrollToCell,a=r.width,s=this.state,c=s.scrollLeft,d=s.scrollPositionChangeReason,f=s.scrollTop;d===J&&(c>=0&&c!==t.scrollLeft&&c!==this._scrollingContainer.scrollLeft&&(this._scrollingContainer.scrollLeft=c),f>=0&&f!==t.scrollTop&&f!==this._scrollingContainer.scrollTop&&(this._scrollingContainer.scrollTop=f)),n===e.height&&l===e.scrollToAlignment&&i===e.scrollToCell&&a===e.width||this._updateScrollPositionForScrollToCell(),this._invokeOnSectionRenderedHelper()}},{key:"componentWillUnmount",value:function(){this._disablePointerEventsTimeoutId&&clearTimeout(this._disablePointerEventsTimeoutId)}},{key:"render",value:function(){var e=this.props,t=e.autoHeight,r=e.cellCount,n=e.cellLayoutManager,l=e.className,i=e.height,a=e.horizontalOverscanSize,s=e.id,c=e.noContentRenderer,d=e.style,f=e.verticalOverscanSize,p=e.width,u=this.state,_=u.isScrolling,g=u.scrollLeft,S=u.scrollTop;(this._lastRenderedCellCount!==r||this._lastRenderedCellLayoutManager!==n||this._calculateSizeAndPositionDataOnNextUpdate)&&(this._lastRenderedCellCount=r,this._lastRenderedCellLayoutManager=n,this._calculateSizeAndPositionDataOnNextUpdate=!1,n.calculateSizeAndPositionData());var y=n.getTotalSize(),x=y.height,v=y.width,w=Math.max(0,g-a),C=Math.max(0,S-f),b=Math.min(v,g+p+a),R=Math.min(x,S+i+f),T=i>0&&p>0?n.cellRenderers({height:R-C,isScrolling:_,width:b-w,x:w,y:C}):[],I={boxSizing:"border-box",direction:"ltr",height:t?"auto":i,position:"relative",WebkitOverflowScrolling:"touch",width:p,willChange:"transform"},O=x>i?this._scrollbarSize:0,P=v>p?this._scrollbarSize:0;return I.overflowX=v+O<=p?"hidden":"auto",I.overflowY=x+P<=i?"hidden":"auto",h.reactExports.createElement("div",{ref:this._setScrollingContainerRef,"aria-label":this.props["aria-label"],className:h.Ol("ReactVirtualized__Collection",l),id:s,onScroll:this._onScroll,role:"grid",style:Ae(Ae({},I),d),tabIndex:0},r>0&&h.reactExports.createElement("div",{className:"ReactVirtualized__Collection__innerScrollContainer",style:{height:x,maxHeight:x,maxWidth:v,overflow:"hidden",pointerEvents:_?"none":"",width:v}},T),r===0&&c())}},{key:"_enablePointerEventsAfterDelay",value:function(){var e=this;this._disablePointerEventsTimeoutId&&clearTimeout(this._disablePointerEventsTimeoutId),this._disablePointerEventsTimeoutId=setTimeout(function(){(0,e.props.isScrollingChange)(!1),e._disablePointerEventsTimeoutId=null,e.setState({isScrolling:!1})},150)}},{key:"_invokeOnScrollMemoizer",value:function(e){var t=this,r=e.scrollLeft,n=e.scrollTop,l=e.totalHeight,i=e.totalWidth;this._onScrollMemoizer({callback:function(a){var s=a.scrollLeft,c=a.scrollTop,d=t.props,f=d.height;(0,d.onScroll)({clientHeight:f,clientWidth:d.width,scrollHeight:l,scrollLeft:s,scrollTop:c,scrollWidth:i})},indices:{scrollLeft:r,scrollTop:n}})}},{key:"_setScrollPosition",value:function(e){var t=e.scrollLeft,r=e.scrollTop,n={scrollPositionChangeReason:J};t>=0&&(n.scrollLeft=t),r>=0&&(n.scrollTop=r),(t>=0&&t!==this.state.scrollLeft||r>=0&&r!==this.state.scrollTop)&&this.setState(n)}}],[{key:"getDerivedStateFromProps",value:function(e,t){return e.cellCount!==0||t.scrollLeft===0&&t.scrollTop===0?e.scrollLeft!==t.scrollLeft||e.scrollTop!==t.scrollTop?{scrollLeft:e.scrollLeft!=null?e.scrollLeft:t.scrollLeft,scrollTop:e.scrollTop!=null?e.scrollTop:t.scrollTop,scrollPositionChangeReason:J}:null:{scrollLeft:0,scrollTop:0,scrollPositionChangeReason:J}}}])}();m(ce,"defaultProps",{"aria-label":"grid",horizontalOverscanSize:0,noContentRenderer:function(){return null},onScroll:function(){return null},onSectionRendered:function(){return null},scrollToAlignment:"auto",scrollToCell:-1,style:{},verticalOverscanSize:0}),ce.propTypes={},ie(ce);var Jt=A(function o(e){var t=e.height,r=e.width,n=e.x,l=e.y;G(this,o),this.height=t,this.width=r,this.x=n,this.y=l,this._indexMap={},this._indices=[]},[{key:"addCellIndex",value:function(o){var e=o.index;this._indexMap[e]||(this._indexMap[e]=!0,this._indices.push(e))}},{key:"getCellIndices",value:function(){return this._indices}},{key:"toString",value:function(){return"".concat(this.x,",").concat(this.y," ").concat(this.width,"x").concat(this.height)}}]),Zt=A(function o(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:100;G(this,o),this._sectionSize=e,this._cellMetadata=[],this._sections={}},[{key:"getCellIndices",value:function(o){var e=o.height,t=o.width,r=o.x,n=o.y,l={};return this.getSections({height:e,width:t,x:r,y:n}).forEach(function(i){return i.getCellIndices().forEach(function(a){l[a]=a})}),Object.keys(l).map(function(i){return l[i]})}},{key:"getCellMetadata",value:function(o){var e=o.index;return this._cellMetadata[e]}},{key:"getSections",value:function(o){for(var e=o.height,t=o.width,r=o.x,n=o.y,l=Math.floor(r/this._sectionSize),i=Math.floor((r+t-1)/this._sectionSize),a=Math.floor(n/this._sectionSize),s=Math.floor((n+e-1)/this._sectionSize),c=[],d=l;d<=i;d++)for(var f=a;f<=s;f++){var p="".concat(d,".").concat(f);this._sections[p]||(this._sections[p]=new Jt({height:this._sectionSize,width:this._sectionSize,x:d*this._sectionSize,y:f*this._sectionSize})),c.push(this._sections[p])}return c}},{key:"getTotalSectionCount",value:function(){return Object.keys(this._sections).length}},{key:"toString",value:function(){var o=this;return Object.keys(this._sections).map(function(e){return o._sections[e].toString()})}},{key:"registerCell",value:function(o){var e=o.cellMetadatum,t=o.index;this._cellMetadata[t]=e,this.getSections(e).forEach(function(r){return r.addCellIndex({index:t})})}}]);function He(o){var e=o.align,t=e===void 0?"auto":e,r=o.cellOffset,n=o.cellSize,l=o.containerSize,i=o.currentOffset,a=r,s=a-l+n;switch(t){case"start":return a;case"end":return s;case"center":return a-(l-n)/2;default:return Math.max(s,Math.min(a,i))}}function St(){try{var o=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(St=function(){return!!o})()}var je=function(){function o(e,t){var r,n,l,i;return G(this,o),n=this,i=[e,t],l=k(l=o),(r=H(n,St()?Reflect.construct(l,i||[],k(n).constructor):l.apply(n,i)))._cellMetadata=[],r._lastRenderedCellIndices=[],r._cellCache=[],r._isScrollingChange=r._isScrollingChange.bind(r),r._setCollectionViewRef=r._setCollectionViewRef.bind(r),r}return j(o,h.reactExports.PureComponent),A(o,[{key:"forceUpdate",value:function(){this._collectionView!==void 0&&this._collectionView.forceUpdate()}},{key:"recomputeCellSizesAndPositions",value:function(){this._cellCache=[],this._collectionView.recomputeCellSizesAndPositions()}},{key:"render",value:function(){var e=h.g3({},(function(t){if(t==null)throw new TypeError("Cannot destructure "+t)}(this.props),this.props));return h.reactExports.createElement(ce,h.g3({cellLayoutManager:this,isScrollingChange:this._isScrollingChange,ref:this._setCollectionViewRef},e))}},{key:"calculateSizeAndPositionData",value:function(){var e=this.props,t=function(r){for(var n=r.cellCount,l=r.cellSizeAndPositionGetter,i=[],a=new Zt(r.sectionSize),s=0,c=0,d=0;d<n;d++){var f=l({index:d});if(f.height==null||isNaN(f.height)||f.width==null||isNaN(f.width)||f.x==null||isNaN(f.x)||f.y==null||isNaN(f.y))throw Error("Invalid metadata returned for cell ".concat(d,`:
|
|
16
|
-
x:`).concat(f.x,", y:").concat(f.y,", width:").concat(f.width,", height:").concat(f.height));s=Math.max(s,f.y+f.height),c=Math.max(c,f.x+f.width),i[d]=f,a.registerCell({cellMetadatum:f,index:d})}return{cellMetadata:i,height:s,sectionManager:a,width:c}}({cellCount:e.cellCount,cellSizeAndPositionGetter:e.cellSizeAndPositionGetter,sectionSize:e.sectionSize});this._cellMetadata=t.cellMetadata,this._sectionManager=t.sectionManager,this._height=t.height,this._width=t.width}},{key:"getLastRenderedIndices",value:function(){return this._lastRenderedCellIndices}},{key:"getScrollPositionForCell",value:function(e){var t=e.align,r=e.cellIndex,n=e.height,l=e.scrollLeft,i=e.scrollTop,a=e.width,s=this.props.cellCount;if(r>=0&&r<s){var c=this._cellMetadata[r];l=He({align:t,cellOffset:c.x,cellSize:c.width,containerSize:a,currentOffset:l}),i=He({align:t,cellOffset:c.y,cellSize:c.height,containerSize:n,currentOffset:i})}return{scrollLeft:l,scrollTop:i}}},{key:"getTotalSize",value:function(){return{height:this._height,width:this._width}}},{key:"cellRenderers",value:function(e){var t=this,r=e.height,n=e.isScrolling,l=e.width,i=e.x,a=e.y,s=this.props,c=s.cellGroupRenderer,d=s.cellRenderer;return this._lastRenderedCellIndices=this._sectionManager.getCellIndices({height:r,width:l,x:i,y:a}),c({cellCache:this._cellCache,cellRenderer:d,cellSizeAndPositionGetter:function(f){var p=f.index;return t._sectionManager.getCellMetadata({index:p})},indices:this._lastRenderedCellIndices,isScrolling:n})}},{key:"_isScrollingChange",value:function(e){e||(this._cellCache=[])}},{key:"_setCollectionViewRef",value:function(e){this._collectionView=e}}])}();function yt(){try{var o=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(yt=function(){return!!o})()}function We(o){var e=o.cellCount,t=o.cellSize,r=o.computeMetadataCallback,n=o.computeMetadataCallbackProps,l=o.nextCellsCount,i=o.nextCellSize,a=o.nextScrollToIndex,s=o.scrollToIndex,c=o.updateScrollOffsetForScrollToIndex;e===l&&(typeof t!="number"&&typeof i!="number"||t===i)||(r(n),s>=0&&s===a&&c())}function Q(o,e){if(o==null)return{};var t,r,n=h.Fw(o,e);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(o);for(r=0;r<l.length;r++)t=l[r],e.indexOf(t)===-1&&{}.propertyIsEnumerable.call(o,t)&&(n[t]=o[t])}return n}m(je,"defaultProps",{"aria-label":"grid",cellGroupRenderer:function(o){var e=o.cellCache,t=o.cellRenderer,r=o.cellSizeAndPositionGetter,n=o.indices,l=o.isScrolling;return n.map(function(i){var a=r({index:i}),s={index:i,isScrolling:l,key:i,style:{height:a.height,left:a.x,position:"absolute",top:a.y,width:a.width}};return l?(i in e||(e[i]=t(s)),e[i]):t(s)}).filter(function(i){return!!i})}}),je.propTypes={},function(){function o(e,t){var r,n,l,i;return G(this,o),n=this,i=[e,t],l=k(l=o),(r=H(n,yt()?Reflect.construct(l,i||[],k(n).constructor):l.apply(n,i)))._registerChild=r._registerChild.bind(r),r}return j(o,h.reactExports.PureComponent),A(o,[{key:"componentDidUpdate",value:function(e){var t=this.props,r=t.columnMaxWidth,n=t.columnMinWidth,l=t.columnCount,i=t.width;r===e.columnMaxWidth&&n===e.columnMinWidth&&l===e.columnCount&&i===e.width||this._registeredChild&&this._registeredChild.recomputeGridSize()}},{key:"render",value:function(){var e=this.props,t=e.children,r=e.columnMaxWidth,n=e.columnMinWidth,l=e.columnCount,i=e.width,a=n||1,s=r?Math.min(r,i):i,c=i/l;return c=Math.max(a,c),c=Math.min(s,c),c=Math.floor(c),t({adjustedWidth:Math.min(i,c*l),columnWidth:c,getColumnWidth:function(){return c},registerChild:this._registerChild})}},{key:"_registerChild",value:function(e){if(e&&typeof e.recomputeGridSize!="function")throw Error("Unexpected child type registered; only Grid/MultiGrid children are supported.");this._registeredChild=e,this._registeredChild&&this._registeredChild.recomputeGridSize()}}])}().propTypes={};var D,Qt=A(function o(e){var t=e.cellCount,r=e.cellSizeGetter,n=e.estimatedCellSize;G(this,o),m(this,"_cellSizeAndPositionData",{}),m(this,"_lastMeasuredIndex",-1),m(this,"_lastBatchedIndex",-1),m(this,"_cellCount",void 0),m(this,"_cellSizeGetter",void 0),m(this,"_estimatedCellSize",void 0),this._cellSizeGetter=r,this._cellCount=t,this._estimatedCellSize=n},[{key:"areOffsetsAdjusted",value:function(){return!1}},{key:"configure",value:function(o){var e=o.cellCount,t=o.estimatedCellSize,r=o.cellSizeGetter;this._cellCount=e,this._estimatedCellSize=t,this._cellSizeGetter=r}},{key:"getCellCount",value:function(){return this._cellCount}},{key:"getEstimatedCellSize",value:function(){return this._estimatedCellSize}},{key:"getLastMeasuredIndex",value:function(){return this._lastMeasuredIndex}},{key:"getOffsetAdjustment",value:function(){return 0}},{key:"getSizeAndPositionOfCell",value:function(o){if(o<0||o>=this._cellCount)throw Error("Requested index ".concat(o," is outside of range 0..").concat(this._cellCount));if(o>this._lastMeasuredIndex)for(var e=this.getSizeAndPositionOfLastMeasuredCell(),t=e.offset+e.size,r=this._lastMeasuredIndex+1;r<=o;r++){var n=this._cellSizeGetter({index:r});if(n===void 0||isNaN(n))throw Error("Invalid size returned for cell ".concat(r," of value ").concat(n));n===null?(this._cellSizeAndPositionData[r]={offset:t,size:0},this._lastBatchedIndex=o):(this._cellSizeAndPositionData[r]={offset:t,size:n},t+=n,this._lastMeasuredIndex=o)}return this._cellSizeAndPositionData[o]}},{key:"getSizeAndPositionOfLastMeasuredCell",value:function(){return this._lastMeasuredIndex>=0?this._cellSizeAndPositionData[this._lastMeasuredIndex]:{offset:0,size:0}}},{key:"getTotalSize",value:function(){var o=this.getSizeAndPositionOfLastMeasuredCell();return o.offset+o.size+(this._cellCount-this._lastMeasuredIndex-1)*this._estimatedCellSize}},{key:"getUpdatedOffsetForIndex",value:function(o){var e=o.align,t=e===void 0?"auto":e,r=o.containerSize,n=o.currentOffset,l=o.targetIndex;if(r<=0)return 0;var i,a=this.getSizeAndPositionOfCell(l),s=a.offset,c=s-r+a.size;switch(t){case"start":i=s;break;case"end":i=c;break;case"center":i=s-(r-a.size)/2;break;default:i=Math.max(c,Math.min(s,n))}var d=this.getTotalSize();return Math.max(0,Math.min(d-r,i))}},{key:"getVisibleCellRange",value:function(o){var e=o.containerSize,t=o.offset;if(this.getTotalSize()===0)return{};var r=t+e,n=this._findNearestCell(t),l=this.getSizeAndPositionOfCell(n);t=l.offset+l.size;for(var i=n;t<r&&i<this._cellCount-1;)i++,t+=this.getSizeAndPositionOfCell(i).size;return{start:n,stop:i}}},{key:"resetCell",value:function(o){this._lastMeasuredIndex=Math.min(this._lastMeasuredIndex,o-1)}},{key:"_binarySearch",value:function(o,e,t){for(;e<=o;){var r=e+Math.floor((o-e)/2),n=this.getSizeAndPositionOfCell(r).offset;if(n===t)return r;n<t?e=r+1:n>t&&(o=r-1)}return e>0?e-1:0}},{key:"_exponentialSearch",value:function(o,e){for(var t=1;o<this._cellCount&&this.getSizeAndPositionOfCell(o).offset<e;)o+=t,t*=2;return this._binarySearch(Math.min(o,this._cellCount-1),Math.floor(o/2),e)}},{key:"_findNearestCell",value:function(o){if(isNaN(o))throw Error("Invalid offset ".concat(o," specified"));o=Math.max(0,o);var e=this.getSizeAndPositionOfLastMeasuredCell(),t=Math.max(0,this._lastMeasuredIndex);return e.offset>=o?this._binarySearch(t,0,o):this._exponentialSearch(t,o)}}]),eo=["maxScrollSize"],De=A(function o(e){var t=e.maxScrollSize,r=t===void 0?typeof window<"u"&&window.chrome?16777100:15e5:t,n=Q(e,eo);G(this,o),m(this,"_cellSizeAndPositionManager",void 0),m(this,"_maxScrollSize",void 0),this._cellSizeAndPositionManager=new Qt(n),this._maxScrollSize=r},[{key:"areOffsetsAdjusted",value:function(){return this._cellSizeAndPositionManager.getTotalSize()>this._maxScrollSize}},{key:"configure",value:function(o){this._cellSizeAndPositionManager.configure(o)}},{key:"getCellCount",value:function(){return this._cellSizeAndPositionManager.getCellCount()}},{key:"getEstimatedCellSize",value:function(){return this._cellSizeAndPositionManager.getEstimatedCellSize()}},{key:"getLastMeasuredIndex",value:function(){return this._cellSizeAndPositionManager.getLastMeasuredIndex()}},{key:"getOffsetAdjustment",value:function(o){var e=o.containerSize,t=o.offset,r=this._cellSizeAndPositionManager.getTotalSize(),n=this.getTotalSize(),l=this._getOffsetPercentage({containerSize:e,offset:t,totalSize:n});return Math.round(l*(n-r))}},{key:"getSizeAndPositionOfCell",value:function(o){return this._cellSizeAndPositionManager.getSizeAndPositionOfCell(o)}},{key:"getSizeAndPositionOfLastMeasuredCell",value:function(){return this._cellSizeAndPositionManager.getSizeAndPositionOfLastMeasuredCell()}},{key:"getTotalSize",value:function(){return Math.min(this._maxScrollSize,this._cellSizeAndPositionManager.getTotalSize())}},{key:"getUpdatedOffsetForIndex",value:function(o){var e=o.align,t=e===void 0?"auto":e,r=o.containerSize,n=o.currentOffset,l=o.targetIndex;n=this._safeOffsetToOffset({containerSize:r,offset:n});var i=this._cellSizeAndPositionManager.getUpdatedOffsetForIndex({align:t,containerSize:r,currentOffset:n,targetIndex:l});return this._offsetToSafeOffset({containerSize:r,offset:i})}},{key:"getVisibleCellRange",value:function(o){var e=o.containerSize,t=o.offset;return t=this._safeOffsetToOffset({containerSize:e,offset:t}),this._cellSizeAndPositionManager.getVisibleCellRange({containerSize:e,offset:t})}},{key:"resetCell",value:function(o){this._cellSizeAndPositionManager.resetCell(o)}},{key:"_getOffsetPercentage",value:function(o){var e=o.containerSize,t=o.offset,r=o.totalSize;return r<=e?0:t/(r-e)}},{key:"_offsetToSafeOffset",value:function(o){var e=o.containerSize,t=o.offset,r=this._cellSizeAndPositionManager.getTotalSize(),n=this.getTotalSize();if(r===n)return t;var l=this._getOffsetPercentage({containerSize:e,offset:t,totalSize:r});return Math.round(l*(n-e))}},{key:"_safeOffsetToOffset",value:function(o){var e=o.containerSize,t=o.offset,r=this._cellSizeAndPositionManager.getTotalSize(),n=this.getTotalSize();if(r===n)return t;var l=this._getOffsetPercentage({containerSize:e,offset:t,totalSize:n});return Math.round(l*(r-e))}}]);function Fe(o){var e=o.cellSize,t=o.cellSizeAndPositionManager,r=o.previousCellsCount,n=o.previousCellSize,l=o.previousScrollToAlignment,i=o.previousScrollToIndex,a=o.previousSize,s=o.scrollOffset,c=o.scrollToAlignment,d=o.scrollToIndex,f=o.size,p=o.sizeJustIncreasedFromZero,u=o.updateScrollIndexCallback,_=t.getCellCount(),g=d>=0&&d<_;g&&(f!==a||p||!n||typeof e=="number"&&e!==n||c!==l||d!==i)?u(d):!g&&_>0&&(f<a||_<r)&&s>t.getTotalSize()-f&&u(_-1)}var to=(D=typeof window<"u"?window:typeof self<"u"?self:{}).requestAnimationFrame||D.webkitRequestAnimationFrame||D.mozRequestAnimationFrame||D.oRequestAnimationFrame||D.msRequestAnimationFrame||function(o){return D.setTimeout(o,1e3/60)},oo=D.cancelAnimationFrame||D.webkitCancelAnimationFrame||D.mozCancelAnimationFrame||D.oCancelAnimationFrame||D.msCancelAnimationFrame||function(o){D.clearTimeout(o)},Ne=to,ro=oo,Y=function(o){return ro(o.id)},Re=function(o,e){var t;Promise.resolve().then(function(){t=Date.now()});var r=function(){Date.now()-t>=e?o.call():n.id=Ne(r)},n={id:Ne(r)};return n};function Be(o,e){var t=Object.keys(o);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(o);e&&(r=r.filter(function(n){return Object.getOwnPropertyDescriptor(o,n).enumerable})),t.push.apply(t,r)}return t}function W(o){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?Be(Object(t),!0).forEach(function(r){m(o,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(t)):Be(Object(t)).forEach(function(r){Object.defineProperty(o,r,Object.getOwnPropertyDescriptor(t,r))})}return o}function xt(){try{var o=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(xt=function(){return!!o})()}var Ue="requested",B=function(){function o(e){var t,r,n,l;G(this,o),r=this,l=[e],n=k(n=o),m(t=H(r,xt()?Reflect.construct(n,l||[],k(r).constructor):n.apply(r,l)),"_onGridRenderedMemoizer",X()),m(t,"_onScrollMemoizer",X(!1)),m(t,"_deferredInvalidateColumnIndex",null),m(t,"_deferredInvalidateRowIndex",null),m(t,"_recomputeScrollLeftFlag",!1),m(t,"_recomputeScrollTopFlag",!1),m(t,"_horizontalScrollBarSize",0),m(t,"_verticalScrollBarSize",0),m(t,"_scrollbarPresenceChanged",!1),m(t,"_scrollingContainer",void 0),m(t,"_childrenToDisplay",void 0),m(t,"_columnStartIndex",void 0),m(t,"_columnStopIndex",void 0),m(t,"_rowStartIndex",void 0),m(t,"_rowStopIndex",void 0),m(t,"_renderedColumnStartIndex",0),m(t,"_renderedColumnStopIndex",0),m(t,"_renderedRowStartIndex",0),m(t,"_renderedRowStopIndex",0),m(t,"_initialScrollTop",void 0),m(t,"_initialScrollLeft",void 0),m(t,"_disablePointerEventsTimeoutId",void 0),m(t,"_styleCache",{}),m(t,"_cellCache",{}),m(t,"_debounceScrollEndedCallback",function(){t._disablePointerEventsTimeoutId=null,t.setState({isScrolling:!1,needToResetStyleCache:!1})}),m(t,"_invokeOnGridRenderedHelper",function(){var s=t.props.onSectionRendered;t._onGridRenderedMemoizer({callback:s,indices:{columnOverscanStartIndex:t._columnStartIndex,columnOverscanStopIndex:t._columnStopIndex,columnStartIndex:t._renderedColumnStartIndex,columnStopIndex:t._renderedColumnStopIndex,rowOverscanStartIndex:t._rowStartIndex,rowOverscanStopIndex:t._rowStopIndex,rowStartIndex:t._renderedRowStartIndex,rowStopIndex:t._renderedRowStopIndex}})}),m(t,"_setScrollingContainerRef",function(s){t._scrollingContainer=s,typeof t.props.elementRef=="function"?t.props.elementRef(s):K(t.props.elementRef)==="object"&&(t.props.elementRef.current=s)}),m(t,"_onScroll",function(s){s.target===t._scrollingContainer&&t.handleScrollEvent(s.target)});var i=new De({cellCount:e.columnCount,cellSizeGetter:function(s){return o._wrapSizeGetter(e.columnWidth)(s)},estimatedCellSize:o._getEstimatedColumnSize(e)}),a=new De({cellCount:e.rowCount,cellSizeGetter:function(s){return o._wrapSizeGetter(e.rowHeight)(s)},estimatedCellSize:o._getEstimatedRowSize(e)});return t.state={instanceProps:{columnSizeAndPositionManager:i,rowSizeAndPositionManager:a,prevColumnWidth:e.columnWidth,prevRowHeight:e.rowHeight,prevColumnCount:e.columnCount,prevRowCount:e.rowCount,prevIsScrolling:e.isScrolling===!0,prevScrollToColumn:e.scrollToColumn,prevScrollToRow:e.scrollToRow,scrollbarSize:0,scrollbarSizeMeasured:!1},isScrolling:!1,scrollDirectionHorizontal:1,scrollDirectionVertical:1,scrollLeft:0,scrollTop:0,scrollPositionChangeReason:null,needToResetStyleCache:!1},e.scrollToRow>0&&(t._initialScrollTop=t._getCalculatedScrollTop(e,t.state)),e.scrollToColumn>0&&(t._initialScrollLeft=t._getCalculatedScrollLeft(e,t.state)),t}return j(o,h.reactExports.PureComponent),A(o,[{key:"getOffsetForCell",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.alignment,r=t===void 0?this.props.scrollToAlignment:t,n=e.columnIndex,l=n===void 0?this.props.scrollToColumn:n,i=e.rowIndex,a=i===void 0?this.props.scrollToRow:i,s=W(W({},this.props),{},{scrollToAlignment:r,scrollToColumn:l,scrollToRow:a});return{scrollLeft:this._getCalculatedScrollLeft(s),scrollTop:this._getCalculatedScrollTop(s)}}},{key:"getTotalRowsHeight",value:function(){return this.state.instanceProps.rowSizeAndPositionManager.getTotalSize()}},{key:"getTotalColumnsWidth",value:function(){return this.state.instanceProps.columnSizeAndPositionManager.getTotalSize()}},{key:"handleScrollEvent",value:function(e){var t=e.scrollLeft,r=t===void 0?0:t,n=e.scrollTop,l=n===void 0?0:n;if(!(l<0)){this._debounceScrollEnded();var i=this.props,a=i.autoHeight,s=i.autoWidth,c=i.height,d=i.width,f=this.state.instanceProps,p=f.scrollbarSize,u=f.rowSizeAndPositionManager.getTotalSize(),_=f.columnSizeAndPositionManager.getTotalSize(),g=Math.min(Math.max(0,_-d+p),r),S=Math.min(Math.max(0,u-c+p),l);if(this.state.scrollLeft!==g||this.state.scrollTop!==S){var y={isScrolling:!0,scrollDirectionHorizontal:g!==this.state.scrollLeft?g>this.state.scrollLeft?1:-1:this.state.scrollDirectionHorizontal,scrollDirectionVertical:S!==this.state.scrollTop?S>this.state.scrollTop?1:-1:this.state.scrollDirectionVertical,scrollPositionChangeReason:"observed"};a||(y.scrollTop=S),s||(y.scrollLeft=g),y.needToResetStyleCache=!1,this.setState(y)}this._invokeOnScrollMemoizer({scrollLeft:g,scrollTop:S,totalColumnsWidth:_,totalRowsHeight:u})}}},{key:"invalidateCellSizeAfterRender",value:function(e){var t=e.columnIndex,r=e.rowIndex;this._deferredInvalidateColumnIndex=typeof this._deferredInvalidateColumnIndex=="number"?Math.min(this._deferredInvalidateColumnIndex,t):t,this._deferredInvalidateRowIndex=typeof this._deferredInvalidateRowIndex=="number"?Math.min(this._deferredInvalidateRowIndex,r):r}},{key:"measureAllCells",value:function(){var e=this.props,t=e.columnCount,r=e.rowCount,n=this.state.instanceProps;n.columnSizeAndPositionManager.getSizeAndPositionOfCell(t-1),n.rowSizeAndPositionManager.getSizeAndPositionOfCell(r-1)}},{key:"recomputeGridSize",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.columnIndex,r=t===void 0?0:t,n=e.rowIndex,l=n===void 0?0:n,i=this.props,a=i.scrollToColumn,s=i.scrollToRow,c=this.state.instanceProps;c.columnSizeAndPositionManager.resetCell(r),c.rowSizeAndPositionManager.resetCell(l),this._recomputeScrollLeftFlag=a>=0&&(this.state.scrollDirectionHorizontal===1?r<=a:r>=a),this._recomputeScrollTopFlag=s>=0&&(this.state.scrollDirectionVertical===1?l<=s:l>=s),this._styleCache={},this._cellCache={},this.forceUpdate()}},{key:"scrollToCell",value:function(e){var t=e.columnIndex,r=e.rowIndex,n=this.props.columnCount,l=this.props;n>1&&t!==void 0&&this._updateScrollLeftForScrollToColumn(W(W({},l),{},{scrollToColumn:t})),r!==void 0&&this._updateScrollTopForScrollToRow(W(W({},l),{},{scrollToRow:r}))}},{key:"componentDidMount",value:function(){var e=this.props,t=e.getScrollbarSize,r=e.height,n=e.scrollLeft,l=e.scrollToColumn,i=e.scrollTop,a=e.scrollToRow,s=e.width,c=this.state.instanceProps;if(this._initialScrollTop=0,this._initialScrollLeft=0,this._handleInvalidatedGridSize(),c.scrollbarSizeMeasured||this.setState(function(p){var u=W(W({},p),{},{needToResetStyleCache:!1});return u.instanceProps.scrollbarSize=t(),u.instanceProps.scrollbarSizeMeasured=!0,u}),typeof n=="number"&&n>=0||typeof i=="number"&&i>=0){var d=o._getScrollToPositionStateUpdate({prevState:this.state,scrollLeft:n,scrollTop:i});d&&(d.needToResetStyleCache=!1,this.setState(d))}this._scrollingContainer&&(this._scrollingContainer.scrollLeft!==this.state.scrollLeft&&(this._scrollingContainer.scrollLeft=this.state.scrollLeft),this._scrollingContainer.scrollTop!==this.state.scrollTop&&(this._scrollingContainer.scrollTop=this.state.scrollTop));var f=r>0&&s>0;l>=0&&f&&this._updateScrollLeftForScrollToColumn(),a>=0&&f&&this._updateScrollTopForScrollToRow(),this._invokeOnGridRenderedHelper(),this._invokeOnScrollMemoizer({scrollLeft:n||0,scrollTop:i||0,totalColumnsWidth:c.columnSizeAndPositionManager.getTotalSize(),totalRowsHeight:c.rowSizeAndPositionManager.getTotalSize()}),this._maybeCallOnScrollbarPresenceChange()}},{key:"componentDidUpdate",value:function(e,t){var r=this,n=this.props,l=n.autoHeight,i=n.autoWidth,a=n.columnCount,s=n.height,c=n.rowCount,d=n.scrollToAlignment,f=n.scrollToColumn,p=n.scrollToRow,u=n.width,_=this.state,g=_.scrollLeft,S=_.scrollPositionChangeReason,y=_.scrollTop,x=_.instanceProps;this._handleInvalidatedGridSize();var v=a>0&&e.columnCount===0||c>0&&e.rowCount===0;S===Ue&&(!i&&g>=0&&(g!==this._scrollingContainer.scrollLeft||v)&&(this._scrollingContainer.scrollLeft=g),!l&&y>=0&&(y!==this._scrollingContainer.scrollTop||v)&&(this._scrollingContainer.scrollTop=y));var w=(e.width===0||e.height===0)&&s>0&&u>0;if(this._recomputeScrollLeftFlag?(this._recomputeScrollLeftFlag=!1,this._updateScrollLeftForScrollToColumn(this.props)):Fe({cellSizeAndPositionManager:x.columnSizeAndPositionManager,previousCellsCount:e.columnCount,previousCellSize:e.columnWidth,previousScrollToAlignment:e.scrollToAlignment,previousScrollToIndex:e.scrollToColumn,previousSize:e.width,scrollOffset:g,scrollToAlignment:d,scrollToIndex:f,size:u,sizeJustIncreasedFromZero:w,updateScrollIndexCallback:function(){return r._updateScrollLeftForScrollToColumn(r.props)}}),this._recomputeScrollTopFlag?(this._recomputeScrollTopFlag=!1,this._updateScrollTopForScrollToRow(this.props)):Fe({cellSizeAndPositionManager:x.rowSizeAndPositionManager,previousCellsCount:e.rowCount,previousCellSize:e.rowHeight,previousScrollToAlignment:e.scrollToAlignment,previousScrollToIndex:e.scrollToRow,previousSize:e.height,scrollOffset:y,scrollToAlignment:d,scrollToIndex:p,size:s,sizeJustIncreasedFromZero:w,updateScrollIndexCallback:function(){return r._updateScrollTopForScrollToRow(r.props)}}),this._invokeOnGridRenderedHelper(),g!==t.scrollLeft||y!==t.scrollTop){var C=x.rowSizeAndPositionManager.getTotalSize(),b=x.columnSizeAndPositionManager.getTotalSize();this._invokeOnScrollMemoizer({scrollLeft:g,scrollTop:y,totalColumnsWidth:b,totalRowsHeight:C})}this._maybeCallOnScrollbarPresenceChange()}},{key:"componentWillUnmount",value:function(){this._disablePointerEventsTimeoutId&&Y(this._disablePointerEventsTimeoutId)}},{key:"render",value:function(){var e=this.props,t=e.autoContainerWidth,r=e.autoHeight,n=e.autoWidth,l=e.className,i=e.containerProps,a=e.containerRole,s=e.containerStyle,c=e.height,d=e.id,f=e.noContentRenderer,p=e.role,u=e.style,_=e.tabIndex,g=e.width,S=this.state,y=S.instanceProps,x=S.needToResetStyleCache,v=this._isScrolling(),w={boxSizing:"border-box",direction:"ltr",height:r?"auto":c,position:"relative",width:n?"auto":g,WebkitOverflowScrolling:"touch",willChange:"transform"};x&&(this._styleCache={}),this.state.isScrolling||this._resetStyleCache(),this._calculateChildrenToRender(this.props,this.state);var C=y.columnSizeAndPositionManager.getTotalSize(),b=y.rowSizeAndPositionManager.getTotalSize(),R=b>c?y.scrollbarSize:0,T=C>g?y.scrollbarSize:0;T===this._horizontalScrollBarSize&&R===this._verticalScrollBarSize||(this._horizontalScrollBarSize=T,this._verticalScrollBarSize=R,this._scrollbarPresenceChanged=!0),w.overflowX=C+R<=g?"hidden":"auto",w.overflowY=b+T<=c?"hidden":"auto";var I=this._childrenToDisplay,O=I.length===0&&c>0&&g>0;return h.reactExports.createElement("div",h.g3({ref:this._setScrollingContainerRef},i,{"aria-label":this.props["aria-label"],"aria-readonly":this.props["aria-readonly"],className:h.Ol("ReactVirtualized__Grid",l),id:d,onScroll:this._onScroll,role:p,style:W(W({},w),u),tabIndex:_}),I.length>0&&h.reactExports.createElement("div",{className:"ReactVirtualized__Grid__innerScrollContainer",role:a,style:W({width:t?"auto":C,height:b,maxWidth:C,maxHeight:b,overflow:"hidden",pointerEvents:v?"none":"",position:"relative"},s)},I),O&&f())}},{key:"_calculateChildrenToRender",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.props,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.state,r=e.cellRenderer,n=e.cellRangeRenderer,l=e.columnCount,i=e.deferredMeasurementCache,a=e.height,s=e.overscanColumnCount,c=e.overscanIndicesGetter,d=e.overscanRowCount,f=e.rowCount,p=e.width,u=e.isScrollingOptOut,_=t.scrollDirectionHorizontal,g=t.scrollDirectionVertical,S=t.instanceProps,y=this._initialScrollTop>0?this._initialScrollTop:t.scrollTop,x=this._initialScrollLeft>0?this._initialScrollLeft:t.scrollLeft,v=this._isScrolling(e,t);if(this._childrenToDisplay=[],a>0&&p>0){var w=S.columnSizeAndPositionManager.getVisibleCellRange({containerSize:p,offset:x}),C=S.rowSizeAndPositionManager.getVisibleCellRange({containerSize:a,offset:y}),b=S.columnSizeAndPositionManager.getOffsetAdjustment({containerSize:p,offset:x}),R=S.rowSizeAndPositionManager.getOffsetAdjustment({containerSize:a,offset:y});this._renderedColumnStartIndex=w.start,this._renderedColumnStopIndex=w.stop,this._renderedRowStartIndex=C.start,this._renderedRowStopIndex=C.stop;var T=c({direction:"horizontal",cellCount:l,overscanCellsCount:s,scrollDirection:_,startIndex:typeof w.start=="number"?w.start:0,stopIndex:typeof w.stop=="number"?w.stop:-1}),I=c({direction:"vertical",cellCount:f,overscanCellsCount:d,scrollDirection:g,startIndex:typeof C.start=="number"?C.start:0,stopIndex:typeof C.stop=="number"?C.stop:-1}),O=T.overscanStartIndex,P=T.overscanStopIndex,z=I.overscanStartIndex,E=I.overscanStopIndex;if(i){if(!i.hasFixedHeight()){for(var L=z;L<=E;L++)if(!i.has(L,0)){O=0,P=l-1;break}}if(!i.hasFixedWidth()){for(var F=O;F<=P;F++)if(!i.has(0,F)){z=0,E=f-1;break}}}this._childrenToDisplay=n({cellCache:this._cellCache,cellRenderer:r,columnSizeAndPositionManager:S.columnSizeAndPositionManager,columnStartIndex:O,columnStopIndex:P,deferredMeasurementCache:i,horizontalOffsetAdjustment:b,isScrolling:v,isScrollingOptOut:u,parent:this,rowSizeAndPositionManager:S.rowSizeAndPositionManager,rowStartIndex:z,rowStopIndex:E,scrollLeft:x,scrollTop:y,styleCache:this._styleCache,verticalOffsetAdjustment:R,visibleColumnIndices:w,visibleRowIndices:C}),this._columnStartIndex=O,this._columnStopIndex=P,this._rowStartIndex=z,this._rowStopIndex=E}}},{key:"_debounceScrollEnded",value:function(){var e=this.props.scrollingResetTimeInterval;this._disablePointerEventsTimeoutId&&Y(this._disablePointerEventsTimeoutId),this._disablePointerEventsTimeoutId=Re(this._debounceScrollEndedCallback,e)}},{key:"_handleInvalidatedGridSize",value:function(){if(typeof this._deferredInvalidateColumnIndex=="number"&&typeof this._deferredInvalidateRowIndex=="number"){var e=this._deferredInvalidateColumnIndex,t=this._deferredInvalidateRowIndex;this._deferredInvalidateColumnIndex=null,this._deferredInvalidateRowIndex=null,this.recomputeGridSize({columnIndex:e,rowIndex:t})}}},{key:"_invokeOnScrollMemoizer",value:function(e){var t=this,r=e.scrollLeft,n=e.scrollTop,l=e.totalColumnsWidth,i=e.totalRowsHeight;this._onScrollMemoizer({callback:function(a){var s=a.scrollLeft,c=a.scrollTop,d=t.props,f=d.height;(0,d.onScroll)({clientHeight:f,clientWidth:d.width,scrollHeight:i,scrollLeft:s,scrollTop:c,scrollWidth:l})},indices:{scrollLeft:r,scrollTop:n}})}},{key:"_isScrolling",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.props,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.state;return Object.hasOwnProperty.call(e,"isScrolling")?!!e.isScrolling:!!t.isScrolling}},{key:"_maybeCallOnScrollbarPresenceChange",value:function(){if(this._scrollbarPresenceChanged){var e=this.props.onScrollbarPresenceChange;this._scrollbarPresenceChanged=!1,e({horizontal:this._horizontalScrollBarSize>0,size:this.state.instanceProps.scrollbarSize,vertical:this._verticalScrollBarSize>0})}}},{key:"scrollToPosition",value:function(e){var t=e.scrollLeft,r=e.scrollTop,n=o._getScrollToPositionStateUpdate({prevState:this.state,scrollLeft:t,scrollTop:r});n&&(n.needToResetStyleCache=!1,this.setState(n))}},{key:"_getCalculatedScrollLeft",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.props,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.state;return o._getCalculatedScrollLeft(e,t)}},{key:"_updateScrollLeftForScrollToColumn",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.props,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.state,r=o._getScrollLeftForScrollToColumnStateUpdate(e,t);r&&(r.needToResetStyleCache=!1,this.setState(r))}},{key:"_getCalculatedScrollTop",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.props,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.state;return o._getCalculatedScrollTop(e,t)}},{key:"_resetStyleCache",value:function(){var e=this._styleCache,t=this._cellCache,r=this.props.isScrollingOptOut;this._cellCache={},this._styleCache={};for(var n=this._rowStartIndex;n<=this._rowStopIndex;n++)for(var l=this._columnStartIndex;l<=this._columnStopIndex;l++){var i="".concat(n,"-").concat(l);this._styleCache[i]=e[i],r&&(this._cellCache[i]=t[i])}}},{key:"_updateScrollTopForScrollToRow",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.props,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.state,r=o._getScrollTopForScrollToRowStateUpdate(e,t);r&&(r.needToResetStyleCache=!1,this.setState(r))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var r={};e.columnCount===0&&t.scrollLeft!==0||e.rowCount===0&&t.scrollTop!==0?(r.scrollLeft=0,r.scrollTop=0):(e.scrollLeft!==t.scrollLeft&&e.scrollToColumn<0||e.scrollTop!==t.scrollTop&&e.scrollToRow<0)&&Object.assign(r,o._getScrollToPositionStateUpdate({prevState:t,scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}));var n,l,i=t.instanceProps;return r.needToResetStyleCache=!1,e.columnWidth===i.prevColumnWidth&&e.rowHeight===i.prevRowHeight||(r.needToResetStyleCache=!0),i.columnSizeAndPositionManager.configure({cellCount:e.columnCount,estimatedCellSize:o._getEstimatedColumnSize(e),cellSizeGetter:o._wrapSizeGetter(e.columnWidth)}),i.rowSizeAndPositionManager.configure({cellCount:e.rowCount,estimatedCellSize:o._getEstimatedRowSize(e),cellSizeGetter:o._wrapSizeGetter(e.rowHeight)}),i.prevColumnCount!==0&&i.prevRowCount!==0||(i.prevColumnCount=0,i.prevRowCount=0),e.autoHeight&&e.isScrolling===!1&&i.prevIsScrolling===!0&&Object.assign(r,{isScrolling:!1}),We({cellCount:i.prevColumnCount,cellSize:typeof i.prevColumnWidth=="number"?i.prevColumnWidth:null,computeMetadataCallback:function(){return i.columnSizeAndPositionManager.resetCell(0)},computeMetadataCallbackProps:e,nextCellsCount:e.columnCount,nextCellSize:typeof e.columnWidth=="number"?e.columnWidth:null,nextScrollToIndex:e.scrollToColumn,scrollToIndex:i.prevScrollToColumn,updateScrollOffsetForScrollToIndex:function(){n=o._getScrollLeftForScrollToColumnStateUpdate(e,t)}}),We({cellCount:i.prevRowCount,cellSize:typeof i.prevRowHeight=="number"?i.prevRowHeight:null,computeMetadataCallback:function(){return i.rowSizeAndPositionManager.resetCell(0)},computeMetadataCallbackProps:e,nextCellsCount:e.rowCount,nextCellSize:typeof e.rowHeight=="number"?e.rowHeight:null,nextScrollToIndex:e.scrollToRow,scrollToIndex:i.prevScrollToRow,updateScrollOffsetForScrollToIndex:function(){l=o._getScrollTopForScrollToRowStateUpdate(e,t)}}),i.prevColumnCount=e.columnCount,i.prevColumnWidth=e.columnWidth,i.prevIsScrolling=e.isScrolling===!0,i.prevRowCount=e.rowCount,i.prevRowHeight=e.rowHeight,i.prevScrollToColumn=e.scrollToColumn,i.prevScrollToRow=e.scrollToRow,i.scrollbarSize=e.getScrollbarSize(),i.scrollbarSize===void 0?(i.scrollbarSizeMeasured=!1,i.scrollbarSize=0):i.scrollbarSizeMeasured=!0,r.instanceProps=i,W(W(W({},r),n),l)}},{key:"_getEstimatedColumnSize",value:function(e){return typeof e.columnWidth=="number"?e.columnWidth:e.estimatedColumnSize}},{key:"_getEstimatedRowSize",value:function(e){return typeof e.rowHeight=="number"?e.rowHeight:e.estimatedRowSize}},{key:"_getScrollToPositionStateUpdate",value:function(e){var t=e.prevState,r=e.scrollLeft,n=e.scrollTop,l={scrollPositionChangeReason:Ue};return typeof r=="number"&&r>=0&&(l.scrollDirectionHorizontal=r>t.scrollLeft?1:-1,l.scrollLeft=r),typeof n=="number"&&n>=0&&(l.scrollDirectionVertical=n>t.scrollTop?1:-1,l.scrollTop=n),typeof r=="number"&&r>=0&&r!==t.scrollLeft||typeof n=="number"&&n>=0&&n!==t.scrollTop?l:{}}},{key:"_wrapSizeGetter",value:function(e){return typeof e=="function"?e:function(){return e}}},{key:"_getCalculatedScrollLeft",value:function(e,t){var r=e.columnCount,n=e.height,l=e.scrollToAlignment,i=e.scrollToColumn,a=e.width,s=t.scrollLeft,c=t.instanceProps;if(r>0){var d=r-1,f=i<0?d:Math.min(d,i),p=c.rowSizeAndPositionManager.getTotalSize(),u=c.scrollbarSizeMeasured&&p>n?c.scrollbarSize:0;return c.columnSizeAndPositionManager.getUpdatedOffsetForIndex({align:l,containerSize:a-u,currentOffset:s,targetIndex:f})}return 0}},{key:"_getScrollLeftForScrollToColumnStateUpdate",value:function(e,t){var r=t.scrollLeft,n=o._getCalculatedScrollLeft(e,t);return typeof n=="number"&&n>=0&&r!==n?o._getScrollToPositionStateUpdate({prevState:t,scrollLeft:n,scrollTop:-1}):{}}},{key:"_getCalculatedScrollTop",value:function(e,t){var r=e.height,n=e.rowCount,l=e.scrollToAlignment,i=e.scrollToRow,a=e.width,s=t.scrollTop,c=t.instanceProps;if(n>0){var d=n-1,f=i<0?d:Math.min(d,i),p=c.columnSizeAndPositionManager.getTotalSize(),u=c.scrollbarSizeMeasured&&p>a?c.scrollbarSize:0;return c.rowSizeAndPositionManager.getUpdatedOffsetForIndex({align:l,containerSize:r-u,currentOffset:s,targetIndex:f})}return 0}},{key:"_getScrollTopForScrollToRowStateUpdate",value:function(e,t){var r=t.scrollTop,n=o._getCalculatedScrollTop(e,t);return typeof n=="number"&&n>=0&&r!==n?o._getScrollToPositionStateUpdate({prevState:t,scrollLeft:-1,scrollTop:n}):{}}}])}();function wt(o){var e=o.cellCount,t=o.overscanCellsCount,r=o.scrollDirection,n=o.startIndex,l=o.stopIndex;return t=Math.max(1,t),r===1?{overscanStartIndex:Math.max(0,n-1),overscanStopIndex:Math.min(e-1,l+t)}:{overscanStartIndex:Math.max(0,n-t),overscanStopIndex:Math.min(e-1,l+1)}}function ve(o,e){(e==null||e>o.length)&&(e=o.length);for(var t=0,r=Array(e);t<e;t++)r[t]=o[t];return r}function Ct(o,e){if(o){if(typeof o=="string")return ve(o,e);var t={}.toString.call(o).slice(8,-1);return t==="Object"&&o.constructor&&(t=o.constructor.name),t==="Map"||t==="Set"?Array.from(o):t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?ve(o,e):void 0}}function Rt(){try{var o=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Rt=function(){return!!o})()}m(B,"defaultProps",{"aria-label":"grid","aria-readonly":!0,autoContainerWidth:!1,autoHeight:!1,autoWidth:!1,cellRangeRenderer:function(o){for(var e=o.cellCache,t=o.cellRenderer,r=o.columnSizeAndPositionManager,n=o.columnStartIndex,l=o.columnStopIndex,i=o.deferredMeasurementCache,a=o.horizontalOffsetAdjustment,s=o.isScrolling,c=o.isScrollingOptOut,d=o.parent,f=o.rowSizeAndPositionManager,p=o.rowStartIndex,u=o.rowStopIndex,_=o.styleCache,g=o.verticalOffsetAdjustment,S=o.visibleColumnIndices,y=o.visibleRowIndices,x=[],v=r.areOffsetsAdjusted()||f.areOffsetsAdjusted(),w=!s&&!v,C=p;C<=u;C++)for(var b=f.getSizeAndPositionOfCell(C),R=n;R<=l;R++){var T=r.getSizeAndPositionOfCell(R),I=R>=S.start&&R<=S.stop&&C>=y.start&&C<=y.stop,O="".concat(C,"-").concat(R),P=void 0;w&&_[O]?P=_[O]:i&&!i.has(C,R)?P={height:"auto",left:0,position:"absolute",top:0,width:"auto"}:(P={height:b.size,left:T.offset+a,position:"absolute",top:b.offset+g,width:T.size},_[O]=P);var z={columnIndex:R,isScrolling:s,isVisible:I,key:O,parent:d,rowIndex:C,style:P},E=void 0;!c&&!s||a||g?E=t(z):(e[O]||(e[O]=t(z)),E=e[O]),E!=null&&E!==!1&&(E.props.role||(E=h.yt.cloneElement(E,{role:"gridcell"})),x.push(E))}return x},containerRole:"row",containerStyle:{},estimatedColumnSize:100,estimatedRowSize:30,getScrollbarSize:ge,noContentRenderer:function(){return null},onScroll:function(){},onScrollbarPresenceChange:function(){},onSectionRendered:function(){},overscanColumnCount:0,overscanIndicesGetter:function(o){var e=o.cellCount,t=o.overscanCellsCount,r=o.scrollDirection,n=o.startIndex,l=o.stopIndex;return r===1?{overscanStartIndex:Math.max(0,n),overscanStopIndex:Math.min(e-1,l+t)}:{overscanStartIndex:Math.max(0,n-t),overscanStopIndex:Math.min(e-1,l)}},overscanRowCount:10,role:"grid",scrollingResetTimeInterval:150,scrollToAlignment:"auto",scrollToColumn:-1,scrollToRow:-1,style:{},tabIndex:0,isScrollingOptOut:!1}),ie(B);var Ve=function(){function o(e,t){var r,n,l,i;return G(this,o),n=this,i=[e,t],l=k(l=o),(r=H(n,Rt()?Reflect.construct(l,i||[],k(n).constructor):l.apply(n,i)))._loadMoreRowsMemoizer=X(),r._onRowsRendered=r._onRowsRendered.bind(r),r._registerChild=r._registerChild.bind(r),r}return j(o,h.reactExports.PureComponent),A(o,[{key:"resetLoadMoreRowsCache",value:function(e){this._loadMoreRowsMemoizer=X(),e&&this._doStuff(this._lastRenderedStartIndex,this._lastRenderedStopIndex)}},{key:"render",value:function(){return(0,this.props.children)({onRowsRendered:this._onRowsRendered,registerChild:this._registerChild})}},{key:"_loadUnloadedRanges",value:function(e){var t=this,r=this.props.loadMoreRows;e.forEach(function(n){var l=r(n);l&&l.then(function(){var i;(i={lastRenderedStartIndex:t._lastRenderedStartIndex,lastRenderedStopIndex:t._lastRenderedStopIndex,startIndex:n.startIndex,stopIndex:n.stopIndex}).startIndex>i.lastRenderedStopIndex||i.stopIndex<i.lastRenderedStartIndex||t._registeredChild&&function(a){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,c=typeof a.recomputeGridSize=="function"?a.recomputeGridSize:a.recomputeRowHeights;c?c.call(a,s):a.forceUpdate()}(t._registeredChild,t._lastRenderedStartIndex)})})}},{key:"_onRowsRendered",value:function(e){var t=e.startIndex,r=e.stopIndex;this._lastRenderedStartIndex=t,this._lastRenderedStopIndex=r,this._doStuff(t,r)}},{key:"_doStuff",value:function(e,t){var r,n=this,l=this.props,i=l.isRowLoaded,a=l.minimumBatchSize,s=l.rowCount,c=l.threshold,d=function(p){for(var u=p.isRowLoaded,_=p.minimumBatchSize,g=p.rowCount,S=p.stopIndex,y=[],x=null,v=null,w=p.startIndex;w<=S;w++)u({index:w})?v!==null&&(y.push({startIndex:x,stopIndex:v}),x=v=null):(v=w,x===null&&(x=w));if(v!==null){for(var C=Math.min(Math.max(v,x+_-1),g-1),b=v+1;b<=C&&!u({index:b});b++)v=b;y.push({startIndex:x,stopIndex:v})}if(y.length)for(var R=y[0];R.stopIndex-R.startIndex+1<_&&R.startIndex>0;){var T=R.startIndex-1;if(u({index:T}))break;R.startIndex=T}return y}({isRowLoaded:i,minimumBatchSize:a,rowCount:s,startIndex:Math.max(0,e-c),stopIndex:Math.min(s-1,t+c)}),f=(r=[]).concat.apply(r,function(p){return function(u){if(Array.isArray(u))return ve(u)}(p)||function(u){if(typeof Symbol<"u"&&u[Symbol.iterator]!=null||u["@@iterator"]!=null)return Array.from(u)}(p)||Ct(p)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
17
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}(d.map(function(p){return[p.startIndex,p.stopIndex]})));this._loadMoreRowsMemoizer({callback:function(){n._loadUnloadedRanges(d)},indices:{squashedUnloadedRanges:f}})}},{key:"_registerChild",value:function(e){this._registeredChild=e}}])}();function bt(){try{var o=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(bt=function(){return!!o})()}m(Ve,"defaultProps",{minimumBatchSize:10,rowCount:0,threshold:15}),Ve.propTypes={};var no=function(){function o(){var e,t,r,n;G(this,o);for(var l=arguments.length,i=new Array(l),a=0;a<l;a++)i[a]=arguments[a];return t=this,r=o,n=[].concat(i),r=k(r),m(e=H(t,bt()?Reflect.construct(r,n||[],k(t).constructor):r.apply(t,n)),"Grid",void 0),m(e,"_cellRenderer",function(s){var c=s.parent,d=s.rowIndex,f=s.style,p=s.isScrolling,u=s.isVisible,_=s.key,g=e.props.rowRenderer,S=Object.getOwnPropertyDescriptor(f,"width");return S&&S.writable&&(f.width="100%"),g({index:d,style:f,isScrolling:p,isVisible:u,key:_,parent:c})}),m(e,"_setRef",function(s){e.Grid=s}),m(e,"_onScroll",function(s){var c=s.clientHeight,d=s.scrollHeight,f=s.scrollTop;(0,e.props.onScroll)({clientHeight:c,scrollHeight:d,scrollTop:f})}),m(e,"_onSectionRendered",function(s){var c=s.rowOverscanStartIndex,d=s.rowOverscanStopIndex,f=s.rowStartIndex,p=s.rowStopIndex;(0,e.props.onRowsRendered)({overscanStartIndex:c,overscanStopIndex:d,startIndex:f,stopIndex:p})}),e}return j(o,h.reactExports.PureComponent),A(o,[{key:"forceUpdateGrid",value:function(){this.Grid&&this.Grid.forceUpdate()}},{key:"getOffsetForRow",value:function(e){var t=e.alignment,r=e.index;return this.Grid?this.Grid.getOffsetForCell({alignment:t,rowIndex:r,columnIndex:0}).scrollTop:0}},{key:"invalidateCellSizeAfterRender",value:function(e){var t=e.columnIndex,r=e.rowIndex;this.Grid&&this.Grid.invalidateCellSizeAfterRender({rowIndex:r,columnIndex:t})}},{key:"measureAllRows",value:function(){this.Grid&&this.Grid.measureAllCells()}},{key:"recomputeGridSize",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.columnIndex,r=t===void 0?0:t,n=e.rowIndex,l=n===void 0?0:n;this.Grid&&this.Grid.recomputeGridSize({rowIndex:l,columnIndex:r})}},{key:"recomputeRowHeights",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;this.Grid&&this.Grid.recomputeGridSize({rowIndex:e,columnIndex:0})}},{key:"scrollToPosition",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;this.Grid&&this.Grid.scrollToPosition({scrollTop:e})}},{key:"scrollToRow",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;this.Grid&&this.Grid.scrollToCell({columnIndex:0,rowIndex:e})}},{key:"render",value:function(){var e=this.props,t=e.className,r=e.noRowsRenderer,n=e.scrollToIndex,l=e.width,i=h.Ol("ReactVirtualized__List",t);return h.reactExports.createElement(B,h.g3({},this.props,{autoContainerWidth:!0,cellRenderer:this._cellRenderer,className:i,columnWidth:l,columnCount:1,noContentRenderer:r,onScroll:this._onScroll,onSectionRendered:this._onSectionRendered,ref:this._setRef,scrollToRow:n}))}}])}();m(no,"defaultProps",{autoHeight:!1,estimatedRowSize:30,onScroll:function(){},noRowsRenderer:function(){return null},onRowsRendered:function(){},overscanIndicesGetter:wt,overscanRowCount:10,scrollToAlignment:"auto",scrollToIndex:-1,style:{}});const se=function(o,e,t,r,n){return typeof t=="function"?function(l,i,a,s,c){for(var d=a+1;i<=a;){var f=i+a>>>1;c(l[f],s)>=0?(d=f,a=f-1):i=f+1}return d}(o,r===void 0?0:0|r,n===void 0?o.length-1:0|n,e,t):function(l,i,a,s){for(var c=a+1;i<=a;){var d=i+a>>>1;l[d]>=s?(c=d,a=d-1):i=d+1}return c}(o,t===void 0?0:0|t,r===void 0?o.length-1:0|r,e)};function be(o,e,t,r,n){this.mid=o,this.left=e,this.right=t,this.leftPoints=r,this.rightPoints=n,this.count=(e?e.count:0)+(t?t.count:0)+r.length}var Z=be.prototype;function he(o,e){o.mid=e.mid,o.left=e.left,o.right=e.right,o.leftPoints=e.leftPoints,o.rightPoints=e.rightPoints,o.count=e.count}function zt(o,e){var t=re(e);o.mid=t.mid,o.left=t.left,o.right=t.right,o.leftPoints=t.leftPoints,o.rightPoints=t.rightPoints,o.count=t.count}function $e(o,e){var t=o.intervals([]);t.push(e),zt(o,t)}function qe(o,e){var t=o.intervals([]),r=t.indexOf(e);return r<0?0:(t.splice(r,1),zt(o,t),1)}function Ke(o,e,t){for(var r=0;r<o.length&&o[r][0]<=e;++r){var n=t(o[r]);if(n)return n}}function Xe(o,e,t){for(var r=o.length-1;r>=0&&o[r][1]>=e;--r){var n=t(o[r]);if(n)return n}}function Ye(o,e){for(var t=0;t<o.length;++t){var r=e(o[t]);if(r)return r}}function io(o,e){return o-e}function _e(o,e){return o[0]-e[0]||o[1]-e[1]}function Se(o,e){return o[1]-e[1]||o[0]-e[0]}function re(o){if(o.length===0)return null;for(var e=[],t=0;t<o.length;++t)e.push(o[t][0],o[t][1]);e.sort(io);var r=e[e.length>>1],n=[],l=[],i=[];for(t=0;t<o.length;++t){var a=o[t];a[1]<r?n.push(a):r<a[0]?l.push(a):i.push(a)}var s=i,c=i.slice();return s.sort(_e),c.sort(Se),new be(r,re(n),re(l),s,c)}function Tt(o){this.root=o}Z.intervals=function(o){return o.push.apply(o,this.leftPoints),this.left&&this.left.intervals(o),this.right&&this.right.intervals(o),o},Z.insert=function(o){var e=this.count-this.leftPoints.length;if(this.count+=1,o[1]<this.mid)this.left?4*(this.left.count+1)>3*(e+1)?$e(this,o):this.left.insert(o):this.left=re([o]);else if(o[0]>this.mid)this.right?4*(this.right.count+1)>3*(e+1)?$e(this,o):this.right.insert(o):this.right=re([o]);else{var t=se(this.leftPoints,o,_e),r=se(this.rightPoints,o,Se);this.leftPoints.splice(t,0,o),this.rightPoints.splice(r,0,o)}},Z.remove=function(o){var e=this.count-this.leftPoints;if(o[1]<this.mid)return this.left?4*(this.right?this.right.count:0)>3*(e-1)?qe(this,o):(l=this.left.remove(o))===2?(this.left=null,this.count-=1,1):(l===1&&(this.count-=1),l):0;if(o[0]>this.mid)return this.right?4*(this.left?this.left.count:0)>3*(e-1)?qe(this,o):(l=this.right.remove(o))===2?(this.right=null,this.count-=1,1):(l===1&&(this.count-=1),l):0;if(this.count===1)return this.leftPoints[0]===o?2:0;if(this.leftPoints.length===1&&this.leftPoints[0]===o){if(this.left&&this.right){for(var t=this,r=this.left;r.right;)t=r,r=r.right;if(t===this)r.right=this.right;else{var n=this.left,l=this.right;t.count-=r.count,t.right=r.left,r.left=n,r.right=l}he(this,r),this.count=(this.left?this.left.count:0)+(this.right?this.right.count:0)+this.leftPoints.length}else this.left?he(this,this.left):he(this,this.right);return 1}for(n=se(this.leftPoints,o,_e);n<this.leftPoints.length&&this.leftPoints[n][0]===o[0];++n)if(this.leftPoints[n]===o){for(this.count-=1,this.leftPoints.splice(n,1),l=se(this.rightPoints,o,Se);l<this.rightPoints.length&&this.rightPoints[l][1]===o[1];++l)if(this.rightPoints[l]===o)return this.rightPoints.splice(l,1),1}return 0},Z.queryPoint=function(o,e){return o<this.mid?this.left&&(t=this.left.queryPoint(o,e))?t:Ke(this.leftPoints,o,e):o>this.mid?this.right&&(t=this.right.queryPoint(o,e))?t:Xe(this.rightPoints,o,e):Ye(this.leftPoints,e);var t},Z.queryInterval=function(o,e,t){var r;return o<this.mid&&this.left&&(r=this.left.queryInterval(o,e,t))||e>this.mid&&this.right&&(r=this.right.queryInterval(o,e,t))?r:e<this.mid?Ke(this.leftPoints,e,t):o>this.mid?Xe(this.rightPoints,o,t):Ye(this.leftPoints,t)};var q=Tt.prototype;q.insert=function(o){this.root?this.root.insert(o):this.root=new be(o[0],null,null,[o],[o])},q.remove=function(o){if(this.root){var e=this.root.remove(o);return e===2&&(this.root=null),e!==0}return!1},q.queryPoint=function(o,e){if(this.root)return this.root.queryPoint(o,e)},q.queryInterval=function(o,e,t){if(o<=e&&this.root)return this.root.queryInterval(o,e,t)},Object.defineProperty(q,"count",{get:function(){return this.root?this.root.count:0}}),Object.defineProperty(q,"intervals",{get:function(){return this.root?this.root.intervals([]):[]}});var fe=A(function o(){G(this,o),m(this,"_columnSizeMap",{}),m(this,"_intervalTree",new Tt(null)),m(this,"_leftMap",{})},[{key:"estimateTotalHeight",value:function(o,e,t){var r=o-this.count;return this.tallestColumnSize+Math.ceil(r/e)*t}},{key:"range",value:function(o,e,t){var r=this;this._intervalTree.queryInterval(o,o+e,function(n){var l=function(s,c){return function(d){if(Array.isArray(d))return d}(s)||function(d,f){var p=d==null?null:typeof Symbol<"u"&&d[Symbol.iterator]||d["@@iterator"];if(p!=null){var u,_,g,S,y=[],x=!0,v=!1;try{if(g=(p=p.call(d)).next,f!==0)for(;!(x=(u=g.call(p)).done)&&(y.push(u.value),y.length!==f);x=!0);}catch(w){v=!0,_=w}finally{try{if(!x&&p.return!=null&&(S=p.return(),Object(S)!==S))return}finally{if(v)throw _}}return y}}(s,c)||Ct(s,c)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
18
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}(n,3),i=l[0];l[1];var a=l[2];return t(a,r._leftMap[a],i)})}},{key:"setPosition",value:function(o,e,t,r){this._intervalTree.insert([t,t+r,o]),this._leftMap[o]=e;var n=this._columnSizeMap,l=n[e];n[e]=l===void 0?t+r:Math.max(l,t+r)}},{key:"count",get:function(){return this._intervalTree.count}},{key:"shortestColumnSize",get:function(){var o=this._columnSizeMap,e=0;for(var t in o){var r=o[t];e=e===0?r:Math.min(e,r)}return e}},{key:"tallestColumnSize",get:function(){var o=this._columnSizeMap,e=0;for(var t in o){var r=o[t];e=Math.max(e,r)}return e}}]);function Je(o,e){var t=Object.keys(o);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(o);e&&(r=r.filter(function(n){return Object.getOwnPropertyDescriptor(o,n).enumerable})),t.push.apply(t,r)}return t}function lo(o){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?Je(Object(t),!0).forEach(function(r){m(o,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(t)):Je(Object(t)).forEach(function(r){Object.defineProperty(o,r,Object.getOwnPropertyDescriptor(t,r))})}return o}function It(){try{var o=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(It=function(){return!!o})()}var Ze=function(){function o(){var e,t,r,n;G(this,o);for(var l=arguments.length,i=new Array(l),a=0;a<l;a++)i[a]=arguments[a];return t=this,r=o,n=[].concat(i),r=k(r),m(e=H(t,It()?Reflect.construct(r,n||[],k(t).constructor):r.apply(t,n)),"state",{isScrolling:!1,scrollTop:0}),m(e,"_debounceResetIsScrollingId",void 0),m(e,"_invalidateOnUpdateStartIndex",null),m(e,"_invalidateOnUpdateStopIndex",null),m(e,"_positionCache",new fe),m(e,"_startIndex",null),m(e,"_startIndexMemoized",null),m(e,"_stopIndex",null),m(e,"_stopIndexMemoized",null),m(e,"_debounceResetIsScrollingCallback",function(){e.setState({isScrolling:!1})}),m(e,"_setScrollingContainerRef",function(s){e._scrollingContainer=s}),m(e,"_onScroll",function(s){var c=e.props.height,d=s.currentTarget.scrollTop,f=Math.min(Math.max(0,e._getEstimatedTotalHeight()-c),d);d===f&&(e._debounceResetIsScrolling(),e.state.scrollTop!==f&&e.setState({isScrolling:!0,scrollTop:f}))}),e}return j(o,h.reactExports.PureComponent),A(o,[{key:"clearCellPositions",value:function(){this._positionCache=new fe,this.forceUpdate()}},{key:"invalidateCellSizeAfterRender",value:function(e){var t=e.rowIndex;this._invalidateOnUpdateStartIndex===null?(this._invalidateOnUpdateStartIndex=t,this._invalidateOnUpdateStopIndex=t):(this._invalidateOnUpdateStartIndex=Math.min(this._invalidateOnUpdateStartIndex,t),this._invalidateOnUpdateStopIndex=Math.max(this._invalidateOnUpdateStopIndex,t))}},{key:"recomputeCellPositions",value:function(){var e=this._positionCache.count-1;this._positionCache=new fe,this._populatePositionCache(0,e),this.forceUpdate()}},{key:"componentDidMount",value:function(){this._checkInvalidateOnUpdate(),this._invokeOnScrollCallback(),this._invokeOnCellsRenderedCallback()}},{key:"componentDidUpdate",value:function(e,t){this._checkInvalidateOnUpdate(),this._invokeOnScrollCallback(),this._invokeOnCellsRenderedCallback(),this.props.scrollTop!==e.scrollTop&&this._debounceResetIsScrolling()}},{key:"componentWillUnmount",value:function(){this._debounceResetIsScrollingId&&Y(this._debounceResetIsScrollingId)}},{key:"render",value:function(){var e,t=this,r=this.props,n=r.autoHeight,l=r.cellCount,i=r.cellMeasurerCache,a=r.cellRenderer,s=r.className,c=r.height,d=r.id,f=r.keyMapper,p=r.overscanByPixels,u=r.role,_=r.style,g=r.tabIndex,S=r.width,y=r.rowDirection,x=this.state,v=x.isScrolling,w=x.scrollTop,C=[],b=this._getEstimatedTotalHeight(),R=this._positionCache.shortestColumnSize,T=this._positionCache.count,I=0;if(this._positionCache.range(Math.max(0,w-p),c+2*p,function(z,E,L){e===void 0?(I=z,e=z):(I=Math.min(I,z),e=Math.max(e,z)),C.push(a({index:z,isScrolling:v,key:f(z),parent:t,style:m(m(m(m({height:i.getHeight(z)},y==="ltr"?"left":"right",E),"position","absolute"),"top",L),"width",i.getWidth(z))}))}),R<w+c+p&&T<l)for(var O=Math.min(l-T,Math.ceil((w+c+p-R)/i.defaultHeight*S/i.defaultWidth)),P=T;P<T+O;P++)e=P,C.push(a({index:P,isScrolling:v,key:f(P),parent:this,style:{width:i.getWidth(P)}}));return this._startIndex=I,this._stopIndex=e,h.reactExports.createElement("div",{ref:this._setScrollingContainerRef,"aria-label":this.props["aria-label"],className:h.Ol("ReactVirtualized__Masonry",s),id:d,onScroll:this._onScroll,role:u,style:lo({boxSizing:"border-box",direction:"ltr",height:n?"auto":c,overflowX:"hidden",overflowY:b<c?"hidden":"auto",position:"relative",width:S,WebkitOverflowScrolling:"touch",willChange:"transform"},_),tabIndex:g},h.reactExports.createElement("div",{className:"ReactVirtualized__Masonry__innerScrollContainer",style:{width:"100%",height:b,maxWidth:"100%",maxHeight:b,overflow:"hidden",pointerEvents:v?"none":"",position:"relative"}},C))}},{key:"_checkInvalidateOnUpdate",value:function(){if(typeof this._invalidateOnUpdateStartIndex=="number"){var e=this._invalidateOnUpdateStartIndex,t=this._invalidateOnUpdateStopIndex;this._invalidateOnUpdateStartIndex=null,this._invalidateOnUpdateStopIndex=null,this._populatePositionCache(e,t),this.forceUpdate()}}},{key:"_debounceResetIsScrolling",value:function(){var e=this.props.scrollingResetTimeInterval;this._debounceResetIsScrollingId&&Y(this._debounceResetIsScrollingId),this._debounceResetIsScrollingId=Re(this._debounceResetIsScrollingCallback,e)}},{key:"_getEstimatedTotalHeight",value:function(){var e=this.props,t=e.cellCount,r=e.cellMeasurerCache,n=e.width,l=Math.max(1,Math.floor(n/r.defaultWidth));return this._positionCache.estimateTotalHeight(t,l,r.defaultHeight)}},{key:"_invokeOnScrollCallback",value:function(){var e=this.props,t=e.height,r=e.onScroll,n=this.state.scrollTop;this._onScrollMemoized!==n&&(r({clientHeight:t,scrollHeight:this._getEstimatedTotalHeight(),scrollTop:n}),this._onScrollMemoized=n)}},{key:"_invokeOnCellsRenderedCallback",value:function(){this._startIndexMemoized===this._startIndex&&this._stopIndexMemoized===this._stopIndex||((0,this.props.onCellsRendered)({startIndex:this._startIndex,stopIndex:this._stopIndex}),this._startIndexMemoized=this._startIndex,this._stopIndexMemoized=this._stopIndex)}},{key:"_populatePositionCache",value:function(e,t){for(var r=this.props,n=r.cellMeasurerCache,l=r.cellPositioner,i=e;i<=t;i++){var a=l(i),s=a.left,c=a.top;this._positionCache.setPosition(i,s,c,n.getHeight(i))}}}],[{key:"getDerivedStateFromProps",value:function(e,t){return e.scrollTop!==void 0&&t.scrollTop!==e.scrollTop?{isScrolling:!0,scrollTop:e.scrollTop}:null}}])}();function Qe(){}m(Ze,"defaultProps",{autoHeight:!1,keyMapper:function(o){return o},onCellsRendered:Qe,onScroll:Qe,overscanByPixels:20,role:"grid",scrollingResetTimeInterval:150,style:{},tabIndex:0,rowDirection:"ltr"}),ie(Ze);var pe=A(function o(){var e=this,t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};G(this,o),m(this,"_cellMeasurerCache",void 0),m(this,"_columnIndexOffset",void 0),m(this,"_rowIndexOffset",void 0),m(this,"columnWidth",function(s){var c=s.index;e._cellMeasurerCache.columnWidth({index:c+e._columnIndexOffset})}),m(this,"rowHeight",function(s){var c=s.index;e._cellMeasurerCache.rowHeight({index:c+e._rowIndexOffset})});var r=t.cellMeasurerCache,n=t.columnIndexOffset,l=n===void 0?0:n,i=t.rowIndexOffset,a=i===void 0?0:i;this._cellMeasurerCache=r,this._columnIndexOffset=l,this._rowIndexOffset=a},[{key:"clear",value:function(o,e){this._cellMeasurerCache.clear(o+this._rowIndexOffset,e+this._columnIndexOffset)}},{key:"clearAll",value:function(){this._cellMeasurerCache.clearAll()}},{key:"defaultHeight",get:function(){return this._cellMeasurerCache.defaultHeight}},{key:"defaultWidth",get:function(){return this._cellMeasurerCache.defaultWidth}},{key:"hasFixedHeight",value:function(){return this._cellMeasurerCache.hasFixedHeight()}},{key:"hasFixedWidth",value:function(){return this._cellMeasurerCache.hasFixedWidth()}},{key:"getHeight",value:function(o){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return this._cellMeasurerCache.getHeight(o+this._rowIndexOffset,e+this._columnIndexOffset)}},{key:"getWidth",value:function(o){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return this._cellMeasurerCache.getWidth(o+this._rowIndexOffset,e+this._columnIndexOffset)}},{key:"has",value:function(o){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return this._cellMeasurerCache.has(o+this._rowIndexOffset,e+this._columnIndexOffset)}},{key:"set",value:function(o,e,t,r){this._cellMeasurerCache.set(o+this._rowIndexOffset,e+this._columnIndexOffset,t,r)}}]),so=["rowIndex"],ao=["columnIndex","rowIndex"],co=["columnIndex"],uo=["onScroll","onSectionRendered","onScrollbarPresenceChange","scrollLeft","scrollToColumn","scrollTop","scrollToRow"];function et(o,e){var t=Object.keys(o);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(o);e&&(r=r.filter(function(n){return Object.getOwnPropertyDescriptor(o,n).enumerable})),t.push.apply(t,r)}return t}function M(o){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?et(Object(t),!0).forEach(function(r){m(o,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(t)):et(Object(t)).forEach(function(r){Object.defineProperty(o,r,Object.getOwnPropertyDescriptor(t,r))})}return o}function Pt(){try{var o=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Pt=function(){return!!o})()}var me=function(){function o(e,t){var r,n,l,i;G(this,o),n=this,i=[e,t],l=k(l=o),m(r=H(n,Pt()?Reflect.construct(l,i||[],k(n).constructor):l.apply(n,i)),"state",{scrollLeft:0,scrollTop:0,scrollbarSize:0,showHorizontalScrollbar:!1,showVerticalScrollbar:!1}),m(r,"_deferredInvalidateColumnIndex",null),m(r,"_deferredInvalidateRowIndex",null),m(r,"_bottomLeftGridRef",function(d){r._bottomLeftGrid=d}),m(r,"_bottomRightGridRef",function(d){r._bottomRightGrid=d}),m(r,"_cellRendererBottomLeftGrid",function(d){var f=d.rowIndex,p=Q(d,so),u=r.props,_=u.cellRenderer,g=u.fixedRowCount;return f===u.rowCount-g?h.reactExports.createElement("div",{key:p.key,style:M(M({},p.style),{},{height:20})}):_(M(M({},p),{},{parent:r,rowIndex:f+g}))}),m(r,"_cellRendererBottomRightGrid",function(d){var f=d.columnIndex,p=d.rowIndex,u=Q(d,ao),_=r.props,g=_.cellRenderer,S=_.fixedColumnCount,y=_.fixedRowCount;return g(M(M({},u),{},{columnIndex:f+S,parent:r,rowIndex:p+y}))}),m(r,"_cellRendererTopRightGrid",function(d){var f=d.columnIndex,p=Q(d,co),u=r.props,_=u.cellRenderer,g=u.columnCount,S=u.fixedColumnCount;return f===g-S?h.reactExports.createElement("div",{key:p.key,style:M(M({},p.style),{},{width:20})}):_(M(M({},p),{},{columnIndex:f+S,parent:r}))}),m(r,"_columnWidthRightGrid",function(d){var f=d.index,p=r.props,u=p.columnCount,_=p.fixedColumnCount,g=p.columnWidth,S=r.state,y=S.scrollbarSize;return S.showHorizontalScrollbar&&f===u-_?y:typeof g=="function"?g({index:f+_}):g}),m(r,"_onScroll",function(d){var f=d.scrollLeft,p=d.scrollTop;r.setState({scrollLeft:f,scrollTop:p});var u=r.props.onScroll;u&&u(d)}),m(r,"_onScrollbarPresenceChange",function(d){var f=d.horizontal,p=d.size,u=d.vertical,_=r.state,g=_.showHorizontalScrollbar,S=_.showVerticalScrollbar;if(f!==g||u!==S){r.setState({scrollbarSize:p,showHorizontalScrollbar:f,showVerticalScrollbar:u});var y=r.props.onScrollbarPresenceChange;typeof y=="function"&&y({horizontal:f,size:p,vertical:u})}}),m(r,"_onScrollLeft",function(d){var f=d.scrollLeft;r._onScroll({scrollLeft:f,scrollTop:r.state.scrollTop})}),m(r,"_onScrollTop",function(d){var f=d.scrollTop;r._onScroll({scrollTop:f,scrollLeft:r.state.scrollLeft})}),m(r,"_rowHeightBottomGrid",function(d){var f=d.index,p=r.props,u=p.fixedRowCount,_=p.rowCount,g=p.rowHeight,S=r.state,y=S.scrollbarSize;return S.showVerticalScrollbar&&f===_-u?y:typeof g=="function"?g({index:f+u}):g}),m(r,"_topLeftGridRef",function(d){r._topLeftGrid=d}),m(r,"_topRightGridRef",function(d){r._topRightGrid=d});var a=e.deferredMeasurementCache,s=e.fixedColumnCount,c=e.fixedRowCount;return r._maybeCalculateCachedStyles(!0),a&&(r._deferredMeasurementCacheBottomLeftGrid=c>0?new pe({cellMeasurerCache:a,columnIndexOffset:0,rowIndexOffset:c}):a,r._deferredMeasurementCacheBottomRightGrid=s>0||c>0?new pe({cellMeasurerCache:a,columnIndexOffset:s,rowIndexOffset:c}):a,r._deferredMeasurementCacheTopRightGrid=s>0?new pe({cellMeasurerCache:a,columnIndexOffset:s,rowIndexOffset:0}):a),r}return j(o,h.reactExports.PureComponent),A(o,[{key:"forceUpdateGrids",value:function(){this._bottomLeftGrid&&this._bottomLeftGrid.forceUpdate(),this._bottomRightGrid&&this._bottomRightGrid.forceUpdate(),this._topLeftGrid&&this._topLeftGrid.forceUpdate(),this._topRightGrid&&this._topRightGrid.forceUpdate()}},{key:"invalidateCellSizeAfterRender",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.columnIndex,r=t===void 0?0:t,n=e.rowIndex,l=n===void 0?0:n;this._deferredInvalidateColumnIndex=typeof this._deferredInvalidateColumnIndex=="number"?Math.min(this._deferredInvalidateColumnIndex,r):r,this._deferredInvalidateRowIndex=typeof this._deferredInvalidateRowIndex=="number"?Math.min(this._deferredInvalidateRowIndex,l):l}},{key:"measureAllCells",value:function(){this._bottomLeftGrid&&this._bottomLeftGrid.measureAllCells(),this._bottomRightGrid&&this._bottomRightGrid.measureAllCells(),this._topLeftGrid&&this._topLeftGrid.measureAllCells(),this._topRightGrid&&this._topRightGrid.measureAllCells()}},{key:"recomputeGridSize",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.columnIndex,r=t===void 0?0:t,n=e.rowIndex,l=n===void 0?0:n,i=this.props,a=i.fixedColumnCount,s=i.fixedRowCount,c=Math.max(0,r-a),d=Math.max(0,l-s);this._bottomLeftGrid&&this._bottomLeftGrid.recomputeGridSize({columnIndex:r,rowIndex:d}),this._bottomRightGrid&&this._bottomRightGrid.recomputeGridSize({columnIndex:c,rowIndex:d}),this._topLeftGrid&&this._topLeftGrid.recomputeGridSize({columnIndex:r,rowIndex:l}),this._topRightGrid&&this._topRightGrid.recomputeGridSize({columnIndex:c,rowIndex:l}),this._leftGridWidth=null,this._topGridHeight=null,this._maybeCalculateCachedStyles(!0)}},{key:"componentDidMount",value:function(){var e=this.props,t=e.scrollLeft,r=e.scrollTop;if(t>0||r>0){var n={};t>0&&(n.scrollLeft=t),r>0&&(n.scrollTop=r),this.setState(n)}this._handleInvalidatedGridSize()}},{key:"componentDidUpdate",value:function(){this._handleInvalidatedGridSize()}},{key:"render",value:function(){var e=this.props,t=e.onScroll,r=e.onSectionRendered;e.onScrollbarPresenceChange,e.scrollLeft;var n=e.scrollToColumn;e.scrollTop;var l=e.scrollToRow,i=Q(e,uo);if(this._prepareForRender(),this.props.width===0||this.props.height===0)return null;var a=this.state,s=a.scrollLeft,c=a.scrollTop;return h.reactExports.createElement("div",{style:this._containerOuterStyle},h.reactExports.createElement("div",{style:this._containerTopStyle},this._renderTopLeftGrid(i),this._renderTopRightGrid(M(M({},i),{},{onScroll:t,scrollLeft:s}))),h.reactExports.createElement("div",{style:this._containerBottomStyle},this._renderBottomLeftGrid(M(M({},i),{},{onScroll:t,scrollTop:c})),this._renderBottomRightGrid(M(M({},i),{},{onScroll:t,onSectionRendered:r,scrollLeft:s,scrollToColumn:n,scrollToRow:l,scrollTop:c}))))}},{key:"_getBottomGridHeight",value:function(e){return e.height-this._getTopGridHeight(e)}},{key:"_getLeftGridWidth",value:function(e){var t=e.fixedColumnCount,r=e.columnWidth;if(this._leftGridWidth==null)if(typeof r=="function"){for(var n=0,l=0;l<t;l++)n+=r({index:l});this._leftGridWidth=n}else this._leftGridWidth=r*t;return this._leftGridWidth}},{key:"_getRightGridWidth",value:function(e){return e.width-this._getLeftGridWidth(e)}},{key:"_getTopGridHeight",value:function(e){var t=e.fixedRowCount,r=e.rowHeight;if(this._topGridHeight==null)if(typeof r=="function"){for(var n=0,l=0;l<t;l++)n+=r({index:l});this._topGridHeight=n}else this._topGridHeight=r*t;return this._topGridHeight}},{key:"_handleInvalidatedGridSize",value:function(){if(typeof this._deferredInvalidateColumnIndex=="number"){var e=this._deferredInvalidateColumnIndex,t=this._deferredInvalidateRowIndex;this._deferredInvalidateColumnIndex=null,this._deferredInvalidateRowIndex=null,this.recomputeGridSize({columnIndex:e,rowIndex:t}),this.forceUpdate()}}},{key:"_maybeCalculateCachedStyles",value:function(e){var t=this.props,r=t.columnWidth,n=t.enableFixedColumnScroll,l=t.enableFixedRowScroll,i=t.height,a=t.fixedColumnCount,s=t.fixedRowCount,c=t.rowHeight,d=t.style,f=t.styleBottomLeftGrid,p=t.styleBottomRightGrid,u=t.styleTopLeftGrid,_=t.styleTopRightGrid,g=t.width,S=e||i!==this._lastRenderedHeight||g!==this._lastRenderedWidth,y=e||r!==this._lastRenderedColumnWidth||a!==this._lastRenderedFixedColumnCount,x=e||s!==this._lastRenderedFixedRowCount||c!==this._lastRenderedRowHeight;(e||S||d!==this._lastRenderedStyle)&&(this._containerOuterStyle=M({height:i,overflow:"visible",width:g},d)),(e||S||x)&&(this._containerTopStyle={height:this._getTopGridHeight(this.props),position:"relative",width:g},this._containerBottomStyle={height:i-this._getTopGridHeight(this.props),overflow:"visible",position:"relative",width:g}),(e||f!==this._lastRenderedStyleBottomLeftGrid)&&(this._bottomLeftGridStyle=M({left:0,overflowX:"hidden",overflowY:n?"auto":"hidden",position:"absolute"},f)),(e||y||p!==this._lastRenderedStyleBottomRightGrid)&&(this._bottomRightGridStyle=M({left:this._getLeftGridWidth(this.props),position:"absolute"},p)),(e||u!==this._lastRenderedStyleTopLeftGrid)&&(this._topLeftGridStyle=M({left:0,overflowX:"hidden",overflowY:"hidden",position:"absolute",top:0},u)),(e||y||_!==this._lastRenderedStyleTopRightGrid)&&(this._topRightGridStyle=M({left:this._getLeftGridWidth(this.props),overflowX:l?"auto":"hidden",overflowY:"hidden",position:"absolute",top:0},_)),this._lastRenderedColumnWidth=r,this._lastRenderedFixedColumnCount=a,this._lastRenderedFixedRowCount=s,this._lastRenderedHeight=i,this._lastRenderedRowHeight=c,this._lastRenderedStyle=d,this._lastRenderedStyleBottomLeftGrid=f,this._lastRenderedStyleBottomRightGrid=p,this._lastRenderedStyleTopLeftGrid=u,this._lastRenderedStyleTopRightGrid=_,this._lastRenderedWidth=g}},{key:"_prepareForRender",value:function(){this._lastRenderedColumnWidth===this.props.columnWidth&&this._lastRenderedFixedColumnCount===this.props.fixedColumnCount||(this._leftGridWidth=null),this._lastRenderedFixedRowCount===this.props.fixedRowCount&&this._lastRenderedRowHeight===this.props.rowHeight||(this._topGridHeight=null),this._maybeCalculateCachedStyles(),this._lastRenderedColumnWidth=this.props.columnWidth,this._lastRenderedFixedColumnCount=this.props.fixedColumnCount,this._lastRenderedFixedRowCount=this.props.fixedRowCount,this._lastRenderedRowHeight=this.props.rowHeight}},{key:"_renderBottomLeftGrid",value:function(e){var t=e.enableFixedColumnScroll,r=e.fixedColumnCount,n=e.fixedRowCount,l=e.rowCount,i=e.hideBottomLeftGridScrollbar,a=this.state.showVerticalScrollbar;if(!r)return null;var s=a?1:0,c=this._getBottomGridHeight(e),d=this._getLeftGridWidth(e),f=this.state.showVerticalScrollbar?this.state.scrollbarSize:0,p=i?d+f:d,u=h.reactExports.createElement(B,h.g3({},e,{cellRenderer:this._cellRendererBottomLeftGrid,className:this.props.classNameBottomLeftGrid,columnCount:r,deferredMeasurementCache:this._deferredMeasurementCacheBottomLeftGrid,height:c,onScroll:t?this._onScrollTop:void 0,ref:this._bottomLeftGridRef,rowCount:Math.max(0,l-n)+s,rowHeight:this._rowHeightBottomGrid,style:this._bottomLeftGridStyle,tabIndex:null,width:p}));return i?h.reactExports.createElement("div",{className:"BottomLeftGrid_ScrollWrapper",style:M(M({},this._bottomLeftGridStyle),{},{height:c,width:d,overflowY:"hidden"})},u):u}},{key:"_renderBottomRightGrid",value:function(e){var t=e.columnCount,r=e.fixedColumnCount,n=e.fixedRowCount,l=e.rowCount,i=e.scrollToColumn,a=e.scrollToRow;return h.reactExports.createElement(B,h.g3({},e,{cellRenderer:this._cellRendererBottomRightGrid,className:this.props.classNameBottomRightGrid,columnCount:Math.max(0,t-r),columnWidth:this._columnWidthRightGrid,deferredMeasurementCache:this._deferredMeasurementCacheBottomRightGrid,height:this._getBottomGridHeight(e),onScroll:this._onScroll,onScrollbarPresenceChange:this._onScrollbarPresenceChange,ref:this._bottomRightGridRef,rowCount:Math.max(0,l-n),rowHeight:this._rowHeightBottomGrid,scrollToColumn:i-r,scrollToRow:a-n,style:this._bottomRightGridStyle,width:this._getRightGridWidth(e)}))}},{key:"_renderTopLeftGrid",value:function(e){var t=e.fixedColumnCount,r=e.fixedRowCount;return t&&r?h.reactExports.createElement(B,h.g3({},e,{className:this.props.classNameTopLeftGrid,columnCount:t,height:this._getTopGridHeight(e),ref:this._topLeftGridRef,rowCount:r,style:this._topLeftGridStyle,tabIndex:null,width:this._getLeftGridWidth(e)})):null}},{key:"_renderTopRightGrid",value:function(e){var t=e.columnCount,r=e.enableFixedRowScroll,n=e.fixedColumnCount,l=e.fixedRowCount,i=e.scrollLeft,a=e.hideTopRightGridScrollbar,s=this.state,c=s.showHorizontalScrollbar,d=s.scrollbarSize;if(!l)return null;var f=c?1:0,p=this._getTopGridHeight(e),u=this._getRightGridWidth(e),_=c?d:0,g=p,S=this._topRightGridStyle;a&&(g=p+_,S=M(M({},this._topRightGridStyle),{},{left:0}));var y=h.reactExports.createElement(B,h.g3({},e,{cellRenderer:this._cellRendererTopRightGrid,className:this.props.classNameTopRightGrid,columnCount:Math.max(0,t-n)+f,columnWidth:this._columnWidthRightGrid,deferredMeasurementCache:this._deferredMeasurementCacheTopRightGrid,height:g,onScroll:r?this._onScrollLeft:void 0,ref:this._topRightGridRef,rowCount:l,scrollLeft:i,style:S,tabIndex:null,width:u}));return a?h.reactExports.createElement("div",{className:"TopRightGrid_ScrollWrapper",style:M(M({},this._topRightGridStyle),{},{height:p,width:u,overflowX:"hidden"})},y):y}}],[{key:"getDerivedStateFromProps",value:function(e,t){return e.scrollLeft!==t.scrollLeft||e.scrollTop!==t.scrollTop?{scrollLeft:e.scrollLeft!=null&&e.scrollLeft>=0?e.scrollLeft:t.scrollLeft,scrollTop:e.scrollTop!=null&&e.scrollTop>=0?e.scrollTop:t.scrollTop}:null}}])}();function Ot(){try{var o=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Ot=function(){return!!o})()}m(me,"defaultProps",{classNameBottomLeftGrid:"",classNameBottomRightGrid:"",classNameTopLeftGrid:"",classNameTopRightGrid:"",enableFixedColumnScroll:!1,enableFixedRowScroll:!1,fixedColumnCount:0,fixedRowCount:0,scrollToColumn:-1,scrollToRow:-1,style:{},styleBottomLeftGrid:{},styleBottomRightGrid:{},styleTopLeftGrid:{},styleTopRightGrid:{},hideTopRightGridScrollbar:!1,hideBottomLeftGridScrollbar:!1}),me.propTypes={},ie(me),function(){function o(e,t){var r,n,l,i;return G(this,o),n=this,i=[e,t],l=k(l=o),(r=H(n,Ot()?Reflect.construct(l,i||[],k(n).constructor):l.apply(n,i))).state={clientHeight:0,clientWidth:0,scrollHeight:0,scrollLeft:0,scrollTop:0,scrollWidth:0},r._onScroll=r._onScroll.bind(r),r}return j(o,h.reactExports.PureComponent),A(o,[{key:"render",value:function(){var e=this.props.children,t=this.state,r=t.clientHeight,n=t.clientWidth,l=t.scrollHeight,i=t.scrollLeft,a=t.scrollTop,s=t.scrollWidth;return e({clientHeight:r,clientWidth:n,onScroll:this._onScroll,scrollHeight:l,scrollLeft:i,scrollTop:a,scrollWidth:s})}},{key:"_onScroll",value:function(e){var t=e.clientHeight,r=e.clientWidth,n=e.scrollHeight,l=e.scrollLeft,i=e.scrollTop,a=e.scrollWidth;this.setState({clientHeight:t,clientWidth:r,scrollHeight:n,scrollLeft:l,scrollTop:i,scrollWidth:a})}}])}().propTypes={};var ne="ASC",ye="DESC";function kt(o){var e=o.sortDirection,t=h.Ol("ReactVirtualized__Table__sortableHeaderIcon",{"ReactVirtualized__Table__sortableHeaderIcon--ASC":e===ne,"ReactVirtualized__Table__sortableHeaderIcon--DESC":e===ye});return h.reactExports.createElement("svg",{className:t,width:18,height:18,viewBox:"0 0 24 24"},e===ne?h.reactExports.createElement("path",{d:"M7 14l5-5 5 5z"}):h.reactExports.createElement("path",{d:"M7 10l5 5 5-5z"}),h.reactExports.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}))}function Mt(){try{var o=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Mt=function(){return!!o})()}kt.propTypes={};var de=function(){function o(){return G(this,o),e=this,r=arguments,t=k(t=o),H(e,Mt()?Reflect.construct(t,r||[],k(e).constructor):t.apply(e,r));var e,t,r}return j(o,h.reactExports.Component),A(o)}();function tt(o,e){var t=Object.keys(o);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(o);e&&(r=r.filter(function(n){return Object.getOwnPropertyDescriptor(o,n).enumerable})),t.push.apply(t,r)}return t}function N(o){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?tt(Object(t),!0).forEach(function(r){m(o,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(t)):tt(Object(t)).forEach(function(r){Object.defineProperty(o,r,Object.getOwnPropertyDescriptor(t,r))})}return o}function Et(){try{var o=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Et=function(){return!!o})()}m(de,"defaultProps",{cellDataGetter:function(o){var e=o.dataKey,t=o.rowData;return typeof t.get=="function"?t.get(e):t[e]},cellRenderer:function(o){var e=o.cellData;return e==null?"":String(e)},defaultSortDirection:ne,flexGrow:0,flexShrink:1,headerRenderer:function(o){var e=o.dataKey,t=o.label,r=o.sortBy,n=o.sortDirection,l=r===e,i=[h.reactExports.createElement("span",{className:"ReactVirtualized__Table__headerTruncatedText",key:"label",title:typeof t=="string"?t:null},t)];return l&&i.push(h.reactExports.createElement(kt,{key:"SortIndicator",sortDirection:n})),i},style:{}}),de.propTypes={};var xe=function(){function o(e){var t,r,n,l;return G(this,o),r=this,l=[e],n=k(n=o),(t=H(r,Et()?Reflect.construct(n,l||[],k(r).constructor):n.apply(r,l))).state={scrollbarWidth:0},t._createColumn=t._createColumn.bind(t),t._createRow=t._createRow.bind(t),t._onScroll=t._onScroll.bind(t),t._onSectionRendered=t._onSectionRendered.bind(t),t._setRef=t._setRef.bind(t),t._setGridElementRef=t._setGridElementRef.bind(t),t}return j(o,h.reactExports.PureComponent),A(o,[{key:"forceUpdateGrid",value:function(){this.Grid&&this.Grid.forceUpdate()}},{key:"getOffsetForRow",value:function(e){var t=e.alignment,r=e.index;return this.Grid?this.Grid.getOffsetForCell({alignment:t,rowIndex:r}).scrollTop:0}},{key:"invalidateCellSizeAfterRender",value:function(e){var t=e.columnIndex,r=e.rowIndex;this.Grid&&this.Grid.invalidateCellSizeAfterRender({rowIndex:r,columnIndex:t})}},{key:"measureAllRows",value:function(){this.Grid&&this.Grid.measureAllCells()}},{key:"recomputeGridSize",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.columnIndex,r=t===void 0?0:t,n=e.rowIndex,l=n===void 0?0:n;this.Grid&&this.Grid.recomputeGridSize({rowIndex:l,columnIndex:r})}},{key:"recomputeRowHeights",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;this.Grid&&this.Grid.recomputeGridSize({rowIndex:e})}},{key:"scrollToPosition",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;this.Grid&&this.Grid.scrollToPosition({scrollTop:e})}},{key:"scrollToRow",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;this.Grid&&this.Grid.scrollToCell({columnIndex:0,rowIndex:e})}},{key:"getScrollbarWidth",value:function(){if(this.GridElement){var e=this.GridElement,t=e.clientWidth||0;return(e.offsetWidth||0)-t}return 0}},{key:"componentDidMount",value:function(){this._setScrollbarWidth()}},{key:"componentDidUpdate",value:function(){this._setScrollbarWidth()}},{key:"render",value:function(){var e=this,t=this.props,r=t.children,n=t.className,l=t.disableHeader,i=t.gridClassName,a=t.gridStyle,s=t.headerHeight,c=t.headerRowRenderer,d=t.height,f=t.id,p=t.noRowsRenderer,u=t.rowClassName,_=t.rowStyle,g=t.scrollToIndex,S=t.style,y=t.width,x=this.state.scrollbarWidth,v=l?d:d-s,w=typeof u=="function"?u({index:-1}):u,C=typeof _=="function"?_({index:-1}):_;return this._cachedColumnStyles=[],h.reactExports.Children.toArray(r).forEach(function(b,R){var T=e._getFlexStyleForColumn(b,b.props.style||de.defaultProps.style);e._cachedColumnStyles[R]=N({overflow:"hidden"},T)}),h.reactExports.createElement("div",{"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-colcount":h.reactExports.Children.toArray(r).length,"aria-rowcount":this.props.rowCount,className:h.Ol("ReactVirtualized__Table",n),id:f,role:"grid",style:S},!l&&c({className:h.Ol("ReactVirtualized__Table__headerRow",w),columns:this._getHeaderColumns(),style:N({height:s,overflow:"hidden",paddingRight:x,width:y},C)}),h.reactExports.createElement(B,h.g3({},this.props,{elementRef:this._setGridElementRef,"aria-readonly":null,autoContainerWidth:!0,className:h.Ol("ReactVirtualized__Table__Grid",i),cellRenderer:this._createRow,columnWidth:y,columnCount:1,height:v,id:void 0,noContentRenderer:p,onScroll:this._onScroll,onSectionRendered:this._onSectionRendered,ref:this._setRef,role:"rowgroup",scrollbarWidth:x,scrollToRow:g,style:N(N({},a),{},{overflowX:"hidden"})})))}},{key:"_createColumn",value:function(e){var t=e.column,r=e.columnIndex,n=e.isScrolling,l=e.parent,i=e.rowData,a=e.rowIndex,s=this.props.onColumnClick,c=t.props,d=c.cellDataGetter,f=c.cellRenderer,p=c.className,u=c.columnData,_=c.dataKey,g=c.id,S=f({cellData:d({columnData:u,dataKey:_,rowData:i}),columnData:u,columnIndex:r,dataKey:_,isScrolling:n,parent:l,rowData:i,rowIndex:a}),y=this._cachedColumnStyles[r],x=typeof S=="string"?S:null;return h.reactExports.createElement("div",{"aria-colindex":r+1,"aria-describedby":g,className:h.Ol("ReactVirtualized__Table__rowColumn",p),key:"Row"+a+"-Col"+r,onClick:function(v){s&&s({columnData:u,dataKey:_,event:v})},role:"gridcell",style:y,title:x},S)}},{key:"_createHeader",value:function(e){var t,r,n,l,i,a=e.column,s=e.index,c=this.props,d=c.headerClassName,f=c.headerStyle,p=c.onHeaderClick,u=c.sort,_=c.sortBy,g=c.sortDirection,S=a.props,y=S.columnData,x=S.dataKey,v=S.defaultSortDirection,w=S.disableSort,C=S.headerRenderer,b=S.id,R=S.label,T=!w&&u,I=h.Ol("ReactVirtualized__Table__headerColumn",d,a.props.headerClassName,{ReactVirtualized__Table__sortableHeaderColumn:T}),O=this._getFlexStyleForColumn(a,N(N({},f),a.props.headerStyle)),P=C({columnData:y,dataKey:x,disableSort:w,label:R,sortBy:_,sortDirection:g});if(T||p){var z=_!==x?v:g===ye?ne:ye,E=function(L){T&&u({defaultSortDirection:v,event:L,sortBy:x,sortDirection:z}),p&&p({columnData:y,dataKey:x,event:L})};i=a.props["aria-label"]||R||x,l="none",n=0,t=E,r=function(L){L.key!=="Enter"&&L.key!==" "||E(L)}}return _===x&&(l=g===ne?"ascending":"descending"),h.reactExports.createElement("div",{"aria-label":i,"aria-sort":l,className:I,id:b,key:"Header-Col"+s,onClick:t,onKeyDown:r,role:"columnheader",style:O,tabIndex:n},P)}},{key:"_createRow",value:function(e){var t=this,r=e.rowIndex,n=e.isScrolling,l=e.key,i=e.parent,a=e.style,s=this.props,c=s.children,d=s.onRowClick,f=s.onRowDoubleClick,p=s.onRowRightClick,u=s.onRowMouseOver,_=s.onRowMouseOut,g=s.rowClassName,S=s.rowGetter,y=s.rowRenderer,x=s.rowStyle,v=this.state.scrollbarWidth,w=typeof g=="function"?g({index:r}):g,C=typeof x=="function"?x({index:r}):x,b=S({index:r}),R=h.reactExports.Children.toArray(c).map(function(O,P){return t._createColumn({column:O,columnIndex:P,isScrolling:n,parent:i,rowData:b,rowIndex:r,scrollbarWidth:v})}),T=h.Ol("ReactVirtualized__Table__row",w),I=N(N({},a),{},{height:this._getRowHeight(r),overflow:"hidden",paddingRight:v},C);return y({className:T,columns:R,index:r,isScrolling:n,key:l,onRowClick:d,onRowDoubleClick:f,onRowRightClick:p,onRowMouseOver:u,onRowMouseOut:_,rowData:b,style:I})}},{key:"_getFlexStyleForColumn",value:function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r="".concat(e.props.flexGrow," ").concat(e.props.flexShrink," ").concat(e.props.width,"px"),n=N(N({},t),{},{flex:r,msFlex:r,WebkitFlex:r});return e.props.maxWidth&&(n.maxWidth=e.props.maxWidth),e.props.minWidth&&(n.minWidth=e.props.minWidth),n}},{key:"_getHeaderColumns",value:function(){var e=this,t=this.props,r=t.children;return(t.disableHeader?[]:h.reactExports.Children.toArray(r)).map(function(n,l){return e._createHeader({column:n,index:l})})}},{key:"_getRowHeight",value:function(e){var t=this.props.rowHeight;return typeof t=="function"?t({index:e}):t}},{key:"_onScroll",value:function(e){var t=e.clientHeight,r=e.scrollHeight,n=e.scrollTop;(0,this.props.onScroll)({clientHeight:t,scrollHeight:r,scrollTop:n})}},{key:"_onSectionRendered",value:function(e){var t=e.rowOverscanStartIndex,r=e.rowOverscanStopIndex,n=e.rowStartIndex,l=e.rowStopIndex;(0,this.props.onRowsRendered)({overscanStartIndex:t,overscanStopIndex:r,startIndex:n,stopIndex:l})}},{key:"_setRef",value:function(e){this.Grid=e}},{key:"_setGridElementRef",value:function(e){this.GridElement=e}},{key:"_setScrollbarWidth",value:function(){var e=this.getScrollbarWidth();this.setState({scrollbarWidth:e})}}])}();m(xe,"defaultProps",{disableHeader:!1,estimatedRowSize:30,headerHeight:0,headerStyle:{},noRowsRenderer:function(){return null},onRowsRendered:function(){return null},onScroll:function(){return null},overscanIndicesGetter:wt,overscanRowCount:10,rowRenderer:function(o){var e=o.className,t=o.columns,r=o.index,n=o.key,l=o.onRowClick,i=o.onRowDoubleClick,a=o.onRowMouseOut,s=o.onRowMouseOver,c=o.onRowRightClick,d=o.rowData,f=o.style,p={"aria-rowindex":r+1};return(l||i||a||s||c)&&(p["aria-label"]="row",p.tabIndex=0,l&&(p.onClick=function(u){return l({event:u,index:r,rowData:d})}),i&&(p.onDoubleClick=function(u){return i({event:u,index:r,rowData:d})}),a&&(p.onMouseOut=function(u){return a({event:u,index:r,rowData:d})}),s&&(p.onMouseOver=function(u){return s({event:u,index:r,rowData:d})}),c&&(p.onContextMenu=function(u){return c({event:u,index:r,rowData:d})})),h.reactExports.createElement("div",h.g3({},p,{className:e,key:n,role:"row",style:f}),t)},headerRowRenderer:function(o){var e=o.className,t=o.columns,r=o.style;return h.reactExports.createElement("div",{className:e,role:"row",style:r},t)},rowStyle:{},scrollToAlignment:"auto",scrollToIndex:-1,style:{}}),xe.propTypes={};var $=[],oe=null,V=null;function Lt(){V&&(V=null,document.body&&oe!=null&&(document.body.style.pointerEvents=oe),oe=null)}function ho(){Lt(),$.forEach(function(o){return o.__resetIsScrolling()})}function Gt(o){o.currentTarget===window&&oe==null&&document.body&&(oe=document.body.style.pointerEvents,document.body.style.pointerEvents="none"),function(){V&&Y(V);var e=0;$.forEach(function(t){e=Math.max(e,t.props.scrollingResetTimeInterval)}),V=Re(ho,e)}(),$.forEach(function(e){e.props.scrollElement===o.currentTarget&&e.__handleWindowScrollEvent()})}function ot(o,e){$.some(function(t){return t.props.scrollElement===e})||e.addEventListener("scroll",Gt),$.push(o)}function rt(o,e){($=$.filter(function(t){return t!==o})).length||(e.removeEventListener("scroll",Gt),V&&(Y(V),Lt()))}var ze=function(o){return o===window},ee=function(o){return o.getBoundingClientRect()};function nt(o,e){if(o){if(ze(o)){var t=window,r=t.innerHeight,n=t.innerWidth;return{height:typeof r=="number"?r:0,width:typeof n=="number"?n:0}}return ee(o)}return{height:e.serverHeight,width:e.serverWidth}}function it(o){return ze(o)&&document.documentElement?{top:"scrollY"in window?window.scrollY:document.documentElement.scrollTop,left:"scrollX"in window?window.scrollX:document.documentElement.scrollLeft}:{top:o.scrollTop,left:o.scrollLeft}}function lt(o,e){var t=Object.keys(o);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(o);e&&(r=r.filter(function(n){return Object.getOwnPropertyDescriptor(o,n).enumerable})),t.push.apply(t,r)}return t}function st(o){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?lt(Object(t),!0).forEach(function(r){m(o,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(t)):lt(Object(t)).forEach(function(r){Object.defineProperty(o,r,Object.getOwnPropertyDescriptor(t,r))})}return o}function At(){try{var o=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(At=function(){return!!o})()}var Ht=function(){return typeof window<"u"?window:void 0},fo=function(){function o(){var e,t,r,n;G(this,o);for(var l=arguments.length,i=new Array(l),a=0;a<l;a++)i[a]=arguments[a];return t=this,r=o,n=[].concat(i),r=k(r),m(e=H(t,At()?Reflect.construct(r,n||[],k(t).constructor):r.apply(t,n)),"_window",Ht()),m(e,"_isMounted",!1),m(e,"_positionFromTop",0),m(e,"_positionFromLeft",0),m(e,"_detectElementResize",void 0),m(e,"_child",void 0),m(e,"_windowScrollerRef",h.reactExports.createRef()),m(e,"state",st(st({},nt(e.props.scrollElement,e.props)),{},{isScrolling:!1,scrollLeft:0,scrollTop:0})),m(e,"_registerChild",function(s){!s||s instanceof Element||console.warn("WindowScroller registerChild expects to be passed Element or null"),e._child=s,e.updatePosition()}),m(e,"_onChildScroll",function(s){var c=s.scrollTop;if(e.state.scrollTop!==c){var d=e.props.scrollElement;d&&(typeof d.scrollTo=="function"?d.scrollTo(0,c+e._positionFromTop):d.scrollTop=c+e._positionFromTop)}}),m(e,"_registerResizeListener",function(s){s===window?window.addEventListener("resize",e._onResize,!1):e._detectElementResize.addResizeListener(s,e._onResize)}),m(e,"_unregisterResizeListener",function(s){s===window?window.removeEventListener("resize",e._onResize,!1):s&&e._detectElementResize.removeResizeListener(s,e._onResize)}),m(e,"_onResize",function(){e.updatePosition()}),m(e,"__handleWindowScrollEvent",function(){if(e._isMounted){var s=e.props.onScroll,c=e.props.scrollElement;if(c){var d=it(c),f=Math.max(0,d.left-e._positionFromLeft),p=Math.max(0,d.top-e._positionFromTop);e.setState({isScrolling:!0,scrollLeft:f,scrollTop:p}),s({scrollLeft:f,scrollTop:p})}}}),m(e,"__resetIsScrolling",function(){e.setState({isScrolling:!1})}),e}return j(o,h.reactExports.PureComponent),A(o,[{key:"updatePosition",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.props.scrollElement,t=this.props.onResize,r=this.state,n=r.height,l=r.width,i=this._child||this._windowScrollerRef.current;if(i instanceof Element&&e){var a=function(c,d){if(ze(d)&&document.documentElement){var f=document.documentElement,p=ee(c),u=ee(f);return{top:p.top-u.top,left:p.left-u.left}}var _=it(d),g=ee(c),S=ee(d);return{top:g.top+_.top-S.top,left:g.left+_.left-S.left}}(i,e);this._positionFromTop=a.top,this._positionFromLeft=a.left}var s=nt(e,this.props);n===s.height&&l===s.width||(this.setState({height:s.height,width:s.width}),t({height:s.height,width:s.width})),this.props.updateScrollTopOnUpdatePosition===!0&&(this.__handleWindowScrollEvent(),this.__resetIsScrolling())}},{key:"componentDidMount",value:function(){var e=this.props.scrollElement;this._detectElementResize=pt(),this.updatePosition(e),e&&(ot(this,e),this._registerResizeListener(e)),this._isMounted=!0}},{key:"componentDidUpdate",value:function(e,t){var r=this.props.scrollElement,n=e.scrollElement;n!==r&&n!=null&&r!=null&&(this.updatePosition(r),rt(this,n),ot(this,r),this._unregisterResizeListener(n),this._registerResizeListener(r))}},{key:"componentWillUnmount",value:function(){var e=this.props.scrollElement;e&&(rt(this,e),this._unregisterResizeListener(e)),this._isMounted=!1}},{key:"render",value:function(){var e=this.props.children,t=this.state,r=t.isScrolling,n=t.scrollTop,l=t.scrollLeft,i=t.height,a=t.width;return h.reactExports.createElement("div",{ref:this._windowScrollerRef},e({onChildScroll:this._onChildScroll,registerChild:this._registerChild,height:i,isScrolling:r,scrollLeft:l,scrollTop:n,width:a}))}}])}();m(fo,"defaultProps",{onResize:function(){},onScroll:function(){},scrollingResetTimeInterval:150,scrollElement:Ht(),serverHeight:0,serverWidth:0});const te="ReactVirtualizedDemo-flexContainer",jt="ReactVirtualizedDemo-tableRow",Wt="ReactVirtualizedDemo-tableRowHover",we="ReactVirtualizedDemo-tableCell",Ce="ReactVirtualizedDemo-noClick";class po extends h.yt.PureComponent{constructor(){super(...arguments),this.getRowClassName=({index:e})=>{const{onRowClick:t}=this.props;return h.mo(jt,te,{[Wt]:e!==-1&&t!=null})},this.cellRenderer=({cellData:e,dataKey:t,columnIndex:r,width:n})=>{const{columns:l,rowHeight:i,onRowClick:a}=this.props;let s=e,c={height:i,paddingRight:"2px",paddingTop:"0px",paddingBottom:"0px",minWidth:`${n}px`,maxWidth:`${n}px`};return t==="shortcut"?s=h.Cg(e):t==="description"&&(c={...c,fontSize:".75rem",display:"block",paddingTop:"4px",whiteSpace:"pre-line"}),h.jsxRuntimeExports.jsx(Ie,{component:"div",className:h.mo(we,te,{[Ce]:a==null}),variant:"body",style:c,align:r!=null&&l[r].numeric?"right":"left",children:s})},this.headerRenderer=({label:e,columnIndex:t,width:r})=>{const{headerHeight:n,columns:l}=this.props,i=l[t];return h.jsxRuntimeExports.jsx(Ie,{component:"div",className:h.mo(we,te,Ce),variant:"head",sx:{width:r,height:n,backgroundColor:a=>a.palette.grey[300]},align:i.numeric?"right":"left",children:h.jsxRuntimeExports.jsx("span",{children:i.label})})}}static{this.defaultProps={headerHeight:40,rowHeight:48}}render(){const{columns:e,rowHeight:t,headerHeight:r,...n}=this.props;return h.jsxRuntimeExports.jsx(gt,{children:({height:l,width:i})=>h.jsxRuntimeExports.jsx(xe,{height:l,width:i,rowHeight:t,gridStyle:{direction:"inherit"},headerHeight:r,...n,rowClassName:this.getRowClassName,children:e.map(({dataKey:a,width:s,widthLess:c,...d},f)=>{const p=c?i-c:s;return h.jsxRuntimeExports.jsx(de,{style:{flex:`1 1 ${p}px`},headerRenderer:u=>this.headerRenderer({...u,width:p,columnIndex:f}),className:te,cellDataGetter:({rowData:u,columnData:_,dataKey:g})=>u[g],cellRenderer:u=>this.cellRenderer({...u,width:p,columnIndex:f}),dataKey:a,width:p,...d},a)})})})}}const mo=Kt(po)(({theme:o})=>({"& .ReactVirtualized__Table__headerRow":{...o.direction==="rtl"&&{paddingLeft:"0 !important"},...o.direction!=="rtl"&&{paddingRight:void 0}},"& .ReactVirtualized__Table__Grid":{outline:"none"},[`& .${te}`]:{display:"flex",alignItems:"center",boxSizing:"border-box"},[`& .${jt}`]:{cursor:"pointer"},[`& .${Wt}`]:{"&:hover:not([disabled])":{backgroundColor:o.palette.grey[200]}},[`& .${we}`]:{flex:1},[`& .${Ce}`]:{cursor:"initial"}}));function go(o){const{commands:e,...t}=o,[r,n]=h.reactExports.useState(!1),[l,i]=h.reactExports.useState(""),a=h.reactExports.useMemo(()=>{let u=e.getAllCommands();r||(u=u.filter(S=>S.command.shortcut())),u.sort((S,y)=>S.command.label().localeCompare(y.command.label()));const _=[],g=S=>S.replace(/\n\n/g,`
|
|
19
|
-
`);for(let S=0;S<u.length;S++){const y=u[S].command,x=y.shortcut();if(Array.isArray(x)){const v=x;for(let w=0;w<v.length;w++)_.push({label:y.label(),description:g(y.description()),shortcut:v[w]})}else _.push({label:y.label(),description:g(y.description()),shortcut:y.shortcut()})}return _},[r,e]),[s,c]=h.reactExports.useState(null);h.reactExports.useEffect(()=>{Promise.resolve().then(()=>require("./Bn5tlfH0oqJI1Lk9.cjs")).then(u=>{c(new u.default(a,{threshold:0,ignoreLocation:!0,keys:["label","description"]}))})},[a]);const[d,f]=h.reactExports.useState(a),p=l.length>0&&d.length===0;return h.reactExports.useEffect(()=>{s&&h.Pr.debounce(()=>{if(l.trim().length===0)return void f(a);const u=s.search(l.trim()),_=new Array(u.length);for(let g=0;g<u.length;g++)_[g]=u[g].item;f(_)},90)()},[s,l]),h.jsxRuntimeExports.jsxs(h.Box,{style:{height:440,width:"100%",display:"flex",flexDirection:"column"},...t,children:[h.jsxRuntimeExports.jsxs(h.Box,{sx:{display:"flex",alignItems:"center",justifyContent:"end",marginBottom:u=>u.spacing(2),color:u=>u.palette.text.secondary},children:[h.jsxRuntimeExports.jsx(h.TextField,{InputProps:{sx:{backgroundImage:`linear-gradient(${h.alpha("#fff",h.Un(5))}, ${h.alpha("#fff",h.Un(5))})`},inputProps:{className:"input",autoFocus:!0,spellCheck:!1,placeholder:"Type to search key bindings",autoComplete:"off",sx:{paddingTop:u=>u.spacing(1),paddingBottom:u=>u.spacing(1)}},endAdornment:h.jsxRuntimeExports.jsx(h.InputAdornment,{sx:{opacity:l.length>0?1:0,display:l.length>0?"flex":"none"},position:"end",children:h.jsxRuntimeExports.jsx(h.IconButton,{"aria-label":"clear search",onClick:()=>i(""),edge:"end",children:h.jsxRuntimeExports.jsx(h._o,{})})})},sx:{flex:"1 1 40%",marginRight:u=>u.spacing(1),"& .MuiOutlinedInput-notchedOutline":{borderColor:u=>p?`${u.palette.error.main} !important`:void 0},"& .MuiInputLabel-outlined":{color:u=>p?`${u.palette.error.main} !important`:void 0}},value:l,onChange:u=>{i(u.target.value)},onKeyDown:u=>{u.which===h.Bn.Escape&&l.length>0&&(i(""),u.stopPropagation(),u.preventDefault())},onContextMenu:u=>{u.stopPropagation()}}),h.jsxRuntimeExports.jsx(h.FormControlLabel,{sx:{flex:"1 1 60%"},control:h.jsxRuntimeExports.jsx(h.Checkbox,{checked:r,onChange:()=>n(!r)}),label:"Show commands without key bindings",labelPlacement:"start"})]}),h.jsxRuntimeExports.jsx(h.Box,{sx:{flex:"1 1 100%",borderRadius:u=>`${u.shape.borderRadius}px`,border:u=>`solid ${u.palette.divider} 1px`,paddingRight:"1px",overflow:"hidden","* .MuiTableCell-head":{background:u=>u.palette.background.paper,backgroundImage:`linear-gradient(${h.alpha("#fff",h.Un(5))}, ${h.alpha("#fff",h.Un(5))})`}},children:h.jsxRuntimeExports.jsx(mo,{rowCount:d.length,rowGetter:u=>d[u.index],columns:[{width:180,label:"Command",dataKey:"label"},{width:260,label:"Key Binding",dataKey:"shortcut"},{width:240,label:"Description",dataKey:"description",widthLess:440}]})}),h.jsxRuntimeExports.jsx(h.Box,{sx:{display:"flex",flexShrink:"0",paddingLeft:u=>u.spacing(1),paddingTop:u=>u.spacing(1),paddingRight:u=>u.spacing(1),userSelect:"none",justifyContent:"flex-end"},children:h.jsxRuntimeExports.jsx(h.Typography,{noWrap:!0,component:"div",sx:{color:u=>p?u.palette.error.main:u.palette.text.secondary},children:`${d.length===0?"No":d.length} shortcut key${d.length===1?"":"s"}${l.length>0?" found":""}`})})]})}exports.default=o=>{const{title:e="Shortcut Keys",commands:t,sx:r,...n}=o;return h.jsxRuntimeExports.jsx(h.iT,{isModal:!0,onKeyDown:l=>{l.keyCode===h.Bn.F1&&l.preventDefault()},sx:{width:"780px",...r},title:e,autoFocusSel:".input",...n,children:h.jsxRuntimeExports.jsx(h.DialogContent,{dividers:!0,children:h.jsxRuntimeExports.jsx(go,{commands:t,sx:{marginBottom:"8px"}})})})};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
"use strict";/**
|
|
2
|
-
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - 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
|
-
*/Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./B7V2ifI29G13Ypfn.cjs");function me(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function re(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function ne(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?re(Object(r),!0).forEach(function(n){me(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):re(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function oe(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function ye(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ce(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function ie(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ce(Object(r),!0).forEach(function(n){ye(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ce(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function D(e){return function t(){for(var r=this,n=arguments.length,o=new Array(n),c=0;c<n;c++)o[c]=arguments[c];return o.length>=e.length?e.apply(this,o):function(){for(var a=arguments.length,u=new Array(a),s=0;s<a;s++)u[s]=arguments[s];return t.apply(r,[].concat(o,u))}}}function U(e){return{}.toString.call(e).includes("Object")}function V(e){return typeof e=="function"}var P=D(function(e,t){throw new Error(e[t]||e.default)})({initialIsRequired:"initial state is required",initialType:"initial state should be an object",initialContent:"initial state shouldn't be an empty object",handlerType:"handler should be an object or a function",handlersType:"all handlers should be a functions",selectorType:"selector should be a function",changeType:"provided value of changes should be an object",changeField:'it seams you want to change a field in the state which is not specified in the "initial" state',default:"an unknown error accured in `state-local` package"}),ve=function(e,t){return U(t)||P("changeType"),Object.keys(t).some(function(r){return n=e,o=r,!Object.prototype.hasOwnProperty.call(n,o);var n,o})&&P("changeField"),t};function be(e,t){return V(t)?t(e.current):t}function Ee(e,t){return e.current=ie(ie({},e.current),t),t}function Oe(e,t,r){return V(t)?t(e.current):Object.keys(r).forEach(function(n){var o;return(o=t[n])===null||o===void 0?void 0:o.call(t,e.current[n])}),r}var K,le={configIsRequired:"the configuration object is required",configType:"the configuration object should be an object",default:"an unknown error accured in `@monaco-editor/loader` package",deprecation:`Deprecation warning!
|
|
7
|
-
You are using deprecated way of configuration.
|
|
8
|
-
|
|
9
|
-
Instead of using
|
|
10
|
-
monaco.config({ urls: { monacoBase: '...' } })
|
|
11
|
-
use
|
|
12
|
-
monaco.config({ paths: { vs: '...' } })
|
|
13
|
-
|
|
14
|
-
For more please check the link https://github.com/suren-atoyan/monaco-loader#config
|
|
15
|
-
`},ue=(K=function(e,t){throw new Error(e[t]||e.default)},function e(){for(var t=this,r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return n.length>=K.length?K.apply(this,n):function(){for(var c=arguments.length,a=new Array(c),u=0;u<c;u++)a[u]=arguments[u];return e.apply(t,[].concat(n,a))}})(le);function se(e,t){return Object.keys(t).forEach(function(r){t[r]instanceof Object&&e[r]&&Object.assign(t[r],se(e[r],t[r]))}),ne(ne({},e),t)}var we={type:"cancelation",msg:"operation is manually canceled"};function Q(e){var t=!1,r=new Promise(function(n,o){e.then(function(c){return t?o(we):n(c)}),e.catch(o)});return r.cancel=function(){return t=!0},r}var W,fe=function(e){if(Array.isArray(e))return e}(W=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};(function(u){var s;u||P("initialIsRequired"),U(u)||P("initialType"),s=u,Object.keys(s).length||P("initialContent")})(e),function(u){V(u)||U(u)||P("handlerType"),U(u)&&Object.values(u).some(function(s){return!V(s)})&&P("handlersType")}(t);var r={current:e},n=D(Oe)(r,t),o=D(Ee)(r),c=D(ve)(e),a=D(be)(r);return[function(){var u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(s){return s};return function(s){V(s)||P("selectorType")}(u),u(r.current)},function(u){(function(){for(var s=arguments.length,g=new Array(s),O=0;O<s;O++)g[O]=arguments[O];return function(b){return g.reduceRight(function(x,M){return M(x)},b)}})(n,o,c,a)(u)}]}({config:{paths:{vs:"https://cdn.jsdelivr.net/npm/monaco-editor@0.52.2/min/vs"}},isInitialized:!1,resolve:null,reject:null,monaco:null}))||function(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e)){var t=[],r=!0,n=!1,o=void 0;try{for(var c,a=e[Symbol.iterator]();!(r=(c=a.next()).done)&&(t.push(c.value),t.length!==2);r=!0);}catch(u){n=!0,o=u}finally{try{r||a.return==null||a.return()}finally{if(n)throw o}}return t}}(W)||function(e){if(e){if(typeof e=="string")return oe(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);return t==="Object"&&e.constructor&&(t=e.constructor.name),t==="Map"||t==="Set"?Array.from(e):t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?oe(e,2):void 0}}(W)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
16
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}(),z=fe[0],B=fe[1];function je(e){return document.body.appendChild(e)}function xe(e){var t,r,n=z(function(c){return{config:c.config,reject:c.reject}}),o=(t="".concat(n.config.paths.vs,"/loader.js"),r=document.createElement("script"),t&&(r.src=t),r);return o.onload=function(){return e()},o.onerror=n.reject,o}function Me(){var e=z(function(r){return{config:r.config,resolve:r.resolve,reject:r.reject}}),t=window.require;t.config(e.config),t(["vs/editor/editor.main"],function(r){de(r),e.resolve(r)},function(r){e.reject(r)})}function de(e){z().monaco||B({monaco:e})}var X=new Promise(function(e,t){return B({resolve:e,reject:t})}),L={config:function(e){var t=function(o){var c;return o||ue("configIsRequired"),c=o,{}.toString.call(c).includes("Object")||ue("configType"),o.urls?(console.warn(le.deprecation),{paths:{vs:o.urls.monacoBase}}):o}(e),r=t.monaco,n=function(o,c){if(o==null)return{};var a,u,s=function(O,b){if(O==null)return{};var x,M,S={},R=Object.keys(O);for(M=0;M<R.length;M++)x=R[M],b.indexOf(x)>=0||(S[x]=O[x]);return S}(o,c);if(Object.getOwnPropertySymbols){var g=Object.getOwnPropertySymbols(o);for(u=0;u<g.length;u++)a=g[u],c.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(o,a)&&(s[a]=o[a])}return s}(t,["monaco"]);B(function(o){return{config:se(o.config,n),monaco:r}})},init:function(){var e=z(function(t){return{monaco:t.monaco,isInitialized:t.isInitialized,resolve:t.resolve}});if(!e.isInitialized){if(B({isInitialized:!0}),e.monaco)return e.resolve(e.monaco),Q(X);if(window.monaco&&window.monaco.editor)return de(window.monaco),e.resolve(window.monaco),Q(X);(function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return function(o){return r.reduceRight(function(c,a){return a(c)},o)}})(je,xe)(Me)}return Q(X)},__getMonacoInstance:function(){return z(function(e){return e.monaco})}},Pe={display:"flex",position:"relative",textAlign:"initial"},Se={width:"100%"},Re={display:"none"},ke={container:{display:"flex",height:"100%",width:"100%",justifyContent:"center",alignItems:"center"}},Te=function({children:e}){return i.yt.createElement("div",{style:ke.container},e)},pe=i.reactExports.memo(function({width:e,height:t,isEditorReady:r,loading:n,_ref:o,className:c,wrapperProps:a}){return i.yt.createElement("section",{style:{...Pe,width:e,height:t},...a},!r&&i.yt.createElement(Te,null,n),i.yt.createElement("div",{ref:o,style:{...Se,...!r&&Re},className:c}))}),Z=function(e){i.reactExports.useEffect(e,[])},w=function(e,t,r=!0){let n=i.reactExports.useRef(!0);i.reactExports.useEffect(n.current||!r?()=>{n.current=!1}:e,t)};function q(){}function T(e,t,r,n){return g=n,(s=e).editor.getModel(ae(s,g))||(c=t,a=r,u=n,(o=e).editor.createModel(c,a,u?ae(o,u):void 0));var o,c,a,u,s,g}function ae(e,t){return e.Uri.parse(t)}var Ie=i.reactExports.memo(function({original:e,modified:t,language:r,originalLanguage:n,modifiedLanguage:o,originalModelPath:c,modifiedModelPath:a,keepCurrentOriginalModel:u=!1,keepCurrentModifiedModel:s=!1,theme:g="light",loading:O="Loading...",options:b={},height:x="100%",width:M="100%",className:S,wrapperProps:R={},beforeMount:Y=q,onMount:$=q}){let[E,I]=i.reactExports.useState(!1),[C,m]=i.reactExports.useState(!0),y=i.reactExports.useRef(null),d=i.reactExports.useRef(null),A=i.reactExports.useRef(null),v=i.reactExports.useRef($),l=i.reactExports.useRef(Y),k=i.reactExports.useRef(!1);Z(()=>{let f=L.init();return f.then(p=>(d.current=p)&&m(!1)).catch(p=>p?.type!=="cancelation"&&console.error("Monaco initialization: error:",p)),()=>y.current?function(){let p=y.current?.getModel();u||p?.original?.dispose(),s||p?.modified?.dispose(),y.current?.dispose()}():f.cancel()}),w(()=>{if(y.current&&d.current){let f=y.current.getOriginalEditor(),p=T(d.current,e||"",n||r||"text",c||"");p!==f.getModel()&&f.setModel(p)}},[c],E),w(()=>{if(y.current&&d.current){let f=y.current.getModifiedEditor(),p=T(d.current,t||"",o||r||"text",a||"");p!==f.getModel()&&f.setModel(p)}},[a],E),w(()=>{let f=y.current.getModifiedEditor();f.getOption(d.current.editor.EditorOption.readOnly)?f.setValue(t||""):t!==f.getValue()&&(f.executeEdits("",[{range:f.getModel().getFullModelRange(),text:t||"",forceMoveMarkers:!0}]),f.pushUndoStop())},[t],E),w(()=>{y.current?.getModel()?.original.setValue(e||"")},[e],E),w(()=>{let{original:f,modified:p}=y.current.getModel();d.current.editor.setModelLanguage(f,n||r||"text"),d.current.editor.setModelLanguage(p,o||r||"text")},[r,n,o],E),w(()=>{d.current?.editor.setTheme(g)},[g],E),w(()=>{y.current?.updateOptions(b)},[b],E);let _=i.reactExports.useCallback(()=>{if(!d.current)return;l.current(d.current);let f=T(d.current,e||"",n||r||"text",c||""),p=T(d.current,t||"",o||r||"text",a||"");y.current?.setModel({original:f,modified:p})},[r,t,o,e,n,c,a]),N=i.reactExports.useCallback(()=>{!k.current&&A.current&&(y.current=d.current.editor.createDiffEditor(A.current,{automaticLayout:!0,...b}),_(),d.current?.editor.setTheme(g),I(!0),k.current=!0)},[b,g,_]);return i.reactExports.useEffect(()=>{E&&v.current(y.current,d.current)},[E]),i.reactExports.useEffect(()=>{!C&&!E&&N()},[C,E,N]),i.yt.createElement(pe,{width:M,height:x,isEditorReady:E,loading:O,_ref:A,className:S,wrapperProps:R})}),F=new Map,ge=i.reactExports.memo(function({defaultValue:e,defaultLanguage:t,defaultPath:r,value:n,language:o,path:c,theme:a="light",line:u,loading:s="Loading...",options:g={},overrideServices:O={},saveViewState:b=!0,keepCurrentModel:x=!1,width:M="100%",height:S="100%",className:R,wrapperProps:Y={},beforeMount:$=q,onMount:E=q,onChange:I,onValidate:C=q}){let[m,y]=i.reactExports.useState(!1),[d,A]=i.reactExports.useState(!0),v=i.reactExports.useRef(null),l=i.reactExports.useRef(null),k=i.reactExports.useRef(null),_=i.reactExports.useRef(E),N=i.reactExports.useRef($),f=i.reactExports.useRef(),p=i.reactExports.useRef(n),he=function(h){let j=i.reactExports.useRef();return i.reactExports.useEffect(()=>{j.current=h},[h]),j.current}(c),ee=i.reactExports.useRef(!1),G=i.reactExports.useRef(!1);Z(()=>{let h=L.init();return h.then(j=>(v.current=j)&&A(!1)).catch(j=>j?.type!=="cancelation"&&console.error("Monaco initialization: error:",j)),()=>l.current?(f.current?.dispose(),x?b&&F.set(c,l.current.saveViewState()):l.current.getModel()?.dispose(),void l.current.dispose()):h.cancel()}),w(()=>{let h=T(v.current,e||n||"",t||o||"",c||r||"");h!==l.current?.getModel()&&(b&&F.set(he,l.current?.saveViewState()),l.current?.setModel(h),b&&l.current?.restoreViewState(F.get(c)))},[c],m),w(()=>{l.current?.updateOptions(g)},[g],m),w(()=>{!l.current||n===void 0||(l.current.getOption(v.current.editor.EditorOption.readOnly)?l.current.setValue(n):n!==l.current.getValue()&&(G.current=!0,l.current.executeEdits("",[{range:l.current.getModel().getFullModelRange(),text:n,forceMoveMarkers:!0}]),l.current.pushUndoStop(),G.current=!1))},[n],m),w(()=>{let h=l.current?.getModel();h&&o&&v.current?.editor.setModelLanguage(h,o)},[o],m),w(()=>{u!==void 0&&l.current?.revealLine(u)},[u],m),w(()=>{v.current?.editor.setTheme(a)},[a],m);let te=i.reactExports.useCallback(()=>{if(k.current&&v.current&&!ee.current){N.current(v.current);let h=c||r,j=T(v.current,n||e||"",t||o||"",h||"");l.current=v.current?.editor.create(k.current,{model:j,automaticLayout:!0,...g},O),b&&l.current.restoreViewState(F.get(h)),v.current.editor.setTheme(a),u!==void 0&&l.current.revealLine(u),y(!0),ee.current=!0}},[e,t,r,n,o,c,g,O,b,a,u]);return i.reactExports.useEffect(()=>{m&&_.current(l.current,v.current)},[m]),i.reactExports.useEffect(()=>{!d&&!m&&te()},[d,m,te]),p.current=n,i.reactExports.useEffect(()=>{m&&I&&(f.current?.dispose(),f.current=l.current?.onDidChangeModelContent(h=>{G.current||I(l.current.getValue(),h)}))},[m,I]),i.reactExports.useEffect(()=>{if(m){let h=v.current.editor.onDidChangeMarkers(j=>{let H=l.current.getModel()?.uri;if(H&&j.find(J=>J.path===H.path)){let J=v.current.editor.getModelMarkers({resource:H});C?.(J)}});return()=>{h?.dispose()}}return()=>{}},[m,C]),i.yt.createElement(pe,{width:M,height:S,isEditorReady:m,loading:s,_ref:k,className:R,wrapperProps:Y})}),Ce=ge;exports.DiffEditor=Ie,exports.Editor=ge,exports.default=Ce,exports.loader=L,exports.useMonaco=function(){let[e,t]=i.reactExports.useState(L.__getMonacoInstance());return Z(()=>{let r;return e||(r=L.init(),r.then(n=>{t(n)})),()=>r?.cancel()}),e};
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
"use strict";/**
|
|
2
|
-
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - 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
|
-
*/Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});exports.default={ABS:{s:"Returns the absolute value of a number, a number without its sign",p:{number:{d:"is the real number for which you want the absolute value"}}},AGGREGATE:{s:"Returns information about the cell.",p:{functionNum:{d:"Is the number 1 to 19 that specifies the summary function for the aggregate."},options:{d:"Is the number 0 to 78 that specified the values to ignore for the aggregate."},array:{d:"Is the array or range of numerical data on which to calculate the aggregate."},K:{d:"indicates the position of the array; it is k-th largest, k-th smallest, k-th percentile, or k-th quartile."}},h:"Unimplemented"},ARABIC:{s:"Converts a Roman numeral to Arabic",p:{text:{d:"is the Roman numeral you want to convert"}}},BASE:{s:"Converts a number into a text representation with the given radix (base)",p:{number:{d:"is the number that you want to convert"},radix:{d:"is the base Radix that you want to convert the number into"},minLength:{d:"is the minimum length of the returned string",v:0}}},CEILING:{s:"Rounds a number up, to the nearest multiple of significance",p:{number:{d:"is the value you want to round"},significance:{d:"is the multiple to which you want to round",v:"undefined"}},c:"Compatible"},"CEILING.MATH":{s:"Rounds a number up, to the nearest integer or to the nearest multiple of significance",p:{number:{d:"is the real number you want to round"},significance:{d:"when given and nonzero this function will round away from zero",v:"undefined"},mode:{v:0}}},"CEILING.PRECISE":{s:"Rounds a number up to the nearest integer or to the nearest multiple of significance",p:{number:{d:"is the real number you want to round"},significance:{d:"is the multiple to which you want to round",v:1}},c:"Compatible"},COMBIN:{s:"Returns the number of combinations for a given number of items",p:{number:{d:"is the total number of items"},numberChosen:{d:"is the number of items in each combination"}}},COMBINA:{s:"Returns the number of combinations with repetitions for a given number of items",p:{number:{d:"is the total number of items"},numberChosen:{d:"is the number of items in each combination"}}},DECIMAL:{s:"Converts a text representation of a number in a given base into a decimal number",p:{number:{d:"is the number that you want to convert"},radix:{d:"is the base Radix of the number you are converting"}}},DEGREES:{s:"Converts radians to degrees",p:{angle:{d:"is the angle in radians that you want to convert"}}},EVEN:{s:"Rounds a positive number up and negative number down to the nearest even integer",p:{number:{d:"is the value to round"}}},EXP:{s:"Returns e raised to the power of a given number",p:{number:{d:"is the exponent applied to the base e. The constant e equals 2.71828182845904, the base of the natural logarithm"}}},FACT:{s:"Returns the factorial of a number, equal to 1*2*3*...* Number",p:{number:{d:"is the nonnegative number you want the factorial of"}}},FACTDOUBLE:{s:"Returns the double factorial of a number",p:{number:{d:"is the value for which to return the double factorial"}}},FLOOR:{s:"Rounds a number down to the nearest multiple of significance",p:{number:{d:"is the real number you want to round"},significance:{d:"is the multiple to which you want to round. Number and Significance must either both be positive or both be negative",v:"undefined"}},c:"Compatible"},"FLOOR.MATH":{s:"Rounds a number down, to the nearest integer or to the nearest multiple of significance",p:{number:{d:"is the real number you want to round"},significance:{d:"is the multiple to which you want to round",v:"undefined"},mode:{d:"when given and nonzero this function will round towards zero",v:0}}},"FLOOR.PRECISE":{s:"Rounds a number down to the nearest integer or to the nearest multiple of significance",p:{number:{d:"is the real number you want to round"},significance:{d:"is the multiple to which you want to round",v:1}}},GCD:{s:"Returns the greatest common divisor",p:{number:{d:"number1,number2,... are 1 to 255 values"}}},INT:{s:"Rounds a number down to the nearest integer",p:{number:{d:"is the real number you want to round down to an integer"}}},"ISO.CEILING":{s:"Rounds a number up to the nearest integer",p:{number:{d:"is the real number you want to round up to an integer"},significance:{d:"is the multiple to which you want to round number",v:"undefined"}},c:"Compatible"},LCM:{s:"Returns the least common multiple",p:{number:{d:"number1,number2,... are 1 to 255 values for which you want the least common multiple"}}},LN:{s:"Returns the natural logarithm of a number",p:{number:{d:"is the positive real number for which you want the natural logarithm"}}},LOG:{s:"Returns the logarithm of a number to the base you specify",p:{number:{d:"is the positive real number for which you want the logarithm"},base:{d:"is the base of the logarithm",v:10}}},LOG10:{s:"Returns the base-10 logarithm of a number",p:{number:{d:"is the positive real number for which you want the base-10 logarithm"}}},MDETERM:{s:"Returns the matrix determinant of an array",p:{array:{d:"is a numeric array with an equal number of rows and columns, either a cell range or an array constant"}}},MINVERSE:{s:"Returns the inverse matrix for the matrix stored in an array",p:{array:{d:"is a numeric array with an equal number of rows and columns, either a cell range or an array constant"}}},MMULT:{s:"Returns the matrix product of two arrays, an array with the same number of rows as array1 and columns as array2",p:{array1:{d:"is the first array of numbers to multiply and must have the same number of columns as Array2 has rows"},array2:{d:"is the second array of numbers to multiply and must have the same number of columns as Array1 has rows"}}},MOD:{s:"Returns the remainder after a number is divided by a divisor",p:{number:{d:"is the number for which you want to find the remainder after the division is performed"},divisor:{d:"is the number by which you want to divide Number"}}},MROUND:{s:"Returns a number rounded to the desired multiple",p:{number:{d:"is the value to round"},multiple:{d:"is the multiple to which you want to round number"}}},MULTINOMIAL:{s:"Returns the multinomial of a set of numbers",p:{number:{d:"number1,number2,... are 1 to 255 values for which you want the multinomial"}}},MUNIT:{s:"Returns the unit matrix for the specified dimension",p:{dimension:{d:"is an integer specifying the dimension of the unit matrix that you want to return"}}},ODD:{s:"Rounds a positive number up and negative number down to the nearest odd integer",p:{number:{d:"is the value to round"}}},PI:{s:"Returns the value of Pi, 3.14159265358979, accurate to 15 digits",p:{}},POWER:{s:"Returns the result of a number raised to a power",p:{number:{d:"is the base number, any real number"},power:{d:"is the exponent, to which the base number is raised"}}},PRODUCT:{s:"Multiplies all the numbers given as arguments",p:{number:{d:"number1,number2,... are 1 to 255 numbers, logical values, or text representations of numbers that you want to multiply"}}},QUOTIENT:{s:"Returns the integer portion of a division",p:{numerator:{d:"is the dividend"},denominator:{d:"is the divisor"}}},RADIANS:{s:"Converts degrees to radians",p:{angle:{d:"is an angle in degrees that you want to convert"}}},RAND:{s:"Returns a random number greater than or equal to 0 and less than 1, evenly distributed (changes on recalculation)",p:{}},RANDARRAY:{s:"Returns an array of random numbers",p:{rows:{d:"the number of rows in the returned array",v:1},columns:{d:"the number of columns in the returned array",v:1},min:{d:"the minimum number you would like returned",v:0},max:{d:"the maximum number you would like returned",v:1},integer:{d:"return an integer or a decimal value. TRUE for an integer, FALSE for a decimal number",v:!1}}},RANDBETWEEN:{s:"Returns a random number between the numbers you specify",p:{bottom:{d:"is the smallest integer RANDBETWEEN will return"},top:{d:"is the largest integer RANDBETWEEN will return"}}},ROMAN:{s:"Converts an Arabic numeral to Roman, as text",p:{number:{d:"is the Arabic numeral you want to convert"},form:{d:"is the number specifying the type of Roman numeral you want.",v:0}}},ROUND:{s:"Rounds a number to a specified number of digits",p:{number:{d:"is the number you want to round"},numDigits:{d:"is the number of digits to which you want to round. Negative rounds to the left of the decimal point to the nearest integer"}}},ROUNDDOWN:{s:"Rounds a number down, toward zero",p:{number:{d:"is any real number that you want rounded down"},numDigits:{d:"is the number of digits to which you want to round. Negative rounds to the left of the decimal point to the nearest integer"}}},ROUNDUP:{s:"Rounds a number up, away from zero",p:{number:{d:"is any real number that you want rounded up"},numDigits:{d:"is the number of digits to which you want to round. Negative rounds to the left of the decimal point to the nearest integer"}}},SEQUENCE:{s:"Returns a sequence of numbers",p:{rows:{d:"the number of rows to return"},columns:{d:"the number of columns to return",v:1},start:{d:"the first number in the sequence",v:1},step:{d:"the amount to increment each subsequent value in the sequence",v:1}}},SERIESSUM:{s:"Returns the sum of a power series based on the formula",p:{x:{d:"is the input value to the power series"},n:{d:"is the initial power to which you want to raise x"},m:{d:"is the step by which to increase n for each term in the series"},coefficients:{d:"is a set of coefficients by which each successive power of x is multiplied"}}},SIGN:{s:"Returns the sign of a number: 1 if the number is positive, zero if the number is zero, or -1 if the number is negative",p:{number:{d:"is any real number"}}},SQRT:{s:"Returns the square root of a number",p:{number:{d:"is the number for which you want the square root"}}},SQRTPI:{s:"Returns the square root of (number * Pi)",p:{number:{d:"is the number by which p is multiplied"}}},SUBTOTAL:{s:"Returns a subtotal in a list or database",p:{functionNum:{d:"is the number 1 to 11 that specifies the summary function for the subtotal."},ref:{d:"ref1,ref2,... are 1 to 254 ranges or references for which you want the subtotal"}},h:"Unimplemented"},SUM:{s:"Adds all the numbers in a range of cells",p:{number:{d:"number1,number2,... are 1 to 255 numbers to sum. Logical values and text are ignored in cells, included if typed as arguments"}}},SUMIF:{s:"Adds the cells specified by a given condition or criteria",p:{range:{d:"is the range of cells you want evaluated"},criteria:{d:"is the condition or criteria in the form of a number, expression, or text that defines which cells will be added"},sumRange:{d:"are the actual cells to sum. If omitted, the cells in range are used"}},h:"Unimplemented"},SUMIFS:{s:"Adds the cells specified by a given set of conditions or criteria",p:{sumRange:{d:"are the actual cells to sum."},criteriaRange:{d:"criteria_range1,criteria_range2,... is the range of cells you want evaluated for the particular condition"},criteria:{d:"criteria1,criteria2,... is the condition or criteria in the form of a number, expression, or text that defines which cells will be added"}},h:"Unimplemented"},SUMPRODUCT:{s:"Returns the sum of the products of corresponding ranges or arrays",p:{array1:{d:"array1,array2,... are 2 to 255 arrays for which you want to multiply and then add components. All arrays must have the same dimensions"},rest:{}}},SUMSQ:{s:"Returns the sum of the squares of the arguments. The arguments can be numbers, arrays, names, or references to cells that contain numbers",p:{number:{d:"number1,number2,... are 1 to 255 numbers, arrays, names, or references to arrays for which you want the sum of the squares"}}},SUMX2MY2:{s:"Sums the differences between the squares of two corresponding ranges or arrays",p:{arrayX:{d:"is the first range or array of numbers and can be a number or name, array, or reference that contains numbers"},arrayY:{d:"is the second range or array of numbers and can be a number or name, array, or reference that contains numbers"}}},SUMX2PY2:{s:"Returns the sum total of the sums of squares of numbers in two corresponding ranges or arrays",p:{arrayX:{d:"is the first range or array of numbers and can be a number or name, array, or reference that contains numbers"},arrayY:{d:"is the second range or array of numbers and can be a number or name, array, or reference that contains numbers"}}},SUMXMY2:{s:"Sums the squares of the differences in two corresponding ranges or arrays",p:{arrayX:{d:"is the first range or array of numbers and can be a number or name, array, or reference that contains numbers"},arrayY:{d:"is the second range or array of numbers and can be a number or name, array, or reference that contains numbers"}}},TRUNC:{s:"Truncates a number to an integer by removing the decimal, or fractional, part of the number",p:{number:{d:"is the number you want to truncate"},numDigits:{d:"is a number specifying the precision of the truncation",v:0}}}};
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
"use strict";/**
|
|
2
|
-
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - 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
|
-
*/Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});exports.default={COMPLEX:{s:"Converts real and imaginary coefficients into a complex number",p:{realNum:{d:"is the real coefficient of the complex number"},iNum:{d:"is the imaginary coefficient of the complex number"},suffix:{d:"is the suffix for the imaginary component of the complex number",v:"i"}}},IMABS:{s:"Returns the absolute value (modulus) of a complex number",p:{inumber:{d:"is a complex number for which you want the absolute value"}}},IMAGINARY:{s:"Returns the imaginary coefficient of a complex number",p:{inumber:{d:"is a complex number for which you want the imaginary coefficient"}}},IMARGUMENT:{s:"Returns the argument q, an angle expressed in radians",p:{inumber:{d:"is a complex number for which you want the argument"}}},IMCONJUGATE:{s:"Returns the complex conjugate of a complex number",p:{inumber:{d:"is a complex number for which you want the conjugate"}}},IMCOS:{s:"Returns the cosine of a complex number",p:{inumber:{d:"is a complex number for which you want the cosine"}}},IMCOSH:{s:"Returns the hyperbolic cosine of a complex number",p:{inumber:{d:"is a complex number for which you want the hyperbolic cosine"}}},IMCOT:{s:"Returns the cotangent of a complex number",p:{inumber:{d:"is a complex number for which you want the cotangent"}}},IMCSC:{s:"Returns the cosecant of a complex number",p:{inumber:{d:"is a complex number for which you want the cosecant"}}},IMCSCH:{s:"Returns the hyperbolic cosecant of a complex number",p:{inumber:{d:"is a complex number for which you want the hyperbolic cosecant"}}},IMDIV:{s:"Returns the quotient of two complex numbers",p:{inumber1:{d:"is the complex numerator or dividend"},inumber2:{d:"is the complex denominator or divisor"}}},IMEXP:{s:"Returns the exponential of a complex number",p:{inumber:{d:"is a complex number for which you want the exponential"}}},IMLN:{s:"Returns the exponential of a complex number",p:{inumber:{d:"is a complex number for which you want the exponential"}}},IMLOG10:{s:"Returns the base-10 logarithm of a complex number",p:{inumber:{d:"is a complex number for which you want the common logarithm"}}},IMLOG2:{s:"Returns the base-2 logarithm of a complex number",p:{inumber:{d:"is a complex number for which you want the base-2 logarithm"}}},IMPOWER:{s:"Returns the base-2 logarithm of a complex number",p:{inumber:{d:"is a complex number for which you want the base-2 logarithm"},number:{}}},IMPRODUCT:{s:"Returns the product of 1 to 255 complex numbers",p:{inumber:{d:"inumber1,inumber2,... Inumber1, Inumber2,... are from 1 to 255 complex numbers to multiply."}}},IMREAL:{s:"Returns the real coefficient of a complex number",p:{inumber:{d:"is a complex number for which you want the real coefficient"}}},IMSEC:{s:"Returns the secant of a complex number",p:{inumber:{d:"is a complex number for which you want the secant"}}},IMSECH:{s:"Returns the hyperbolic secant of a complex number",p:{inumber:{d:"is a complex number for which you want the hyperbolic secant"}}},IMSIN:{s:"Returns the sine of a complex number",p:{inumber:{d:"is a complex number for which you want the sine"}}},IMSINH:{s:"Returns the hyperbolic sine of a complex number",p:{inumber:{d:"is a complex number for which you want the hyperbolic sine"}}},IMSQRT:{s:"Returns the square root of a complex number",p:{inumber:{d:"is a complex number for which you want the square root"}}},IMSUB:{s:"Returns the difference of two complex numbers",p:{inumber1:{d:"is the complex number from which to subtract inumber2"},inumber2:{d:"is the complex number to subtract from inumber1"}}},IMSUM:{s:"Returns the sum of complex numbers",p:{inumber:{d:"inumber1,inumber2,... are from 1 to 255 complex numbers to add"}}},IMTAN:{s:"Returns the tangent of a complex number",p:{inumber:{d:"is a complex number for which you want the tangent"}}}};
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
"use strict";/**
|
|
2
|
-
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - 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
|
-
*/Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});exports.default={DATE:{s:"Returns the number that represents the date in Microsoft Excel date-time code",p:{year:{d:"is a number from 1900 or 1904 (depending on the workbook's date system) to 9999"},month:{d:"is a number from 1 to 12 representing the month of the year"},day:{d:"is a number from 1 to 31 representing the day of the month"}}},DATEDIF:{s:"Returns the number of days between two dates",p:{startDate:{d:"is a serial date number that represents the start date"},endDate:{d:"is a serial date number that represents the end date"},unit:{d:"is a string that specifies the unit of time to use"}},h:"Legacy"},DATESTRING:{s:"Returns NA.",p:{number:{d:"is a number that is ignored"}},h:"Legacy"},DATEVALUE:{s:"Converts a date in the form of text to a number that represents the date in Microsoft Excel date-time code",p:{dateText:{d:"is text that represents a date in a Microsoft Excel date format, between 1/1/1900 or 1/1/1904 (depending on the workbook's date system) and 12/31/9999"}}},DAY:{s:"Returns the day of the month, a number from 1 to 31.",p:{serialOrString:{d:"is a number in the date-time code used by Excel or text in time format, such as 16:48:00 or 4:48:00 PM"}}},DAYS:{s:"Returns the number of days between the two dates.",p:{endDate:{d:"start_date and end_date are the two dates between which you want to know the number of days"},startDate:{d:"start_date and end_date are the two dates between which you want to know the number of days"}}},DAYS360:{s:"Returns the number of days between two dates based on a 360-day year (twelve 30-day months)",p:{startDate:{d:"start_date and end_date are the two dates between which you want to know the number of days"},endDate:{d:"start_date and end_date are the two dates between which you want to know the number of days"},method:{d:"is a logical value specifying the calculation method: U.S. (NASD) = FALSE; European = TRUE.",v:!1}}},EDATE:{s:"Returns the serial number of the date that is the indicated number of months before or after the start date",p:{startDate:{d:"is a serial date number that represents the start date"},months:{d:"is the number of months before or after start_date"}}},EOMONTH:{s:"Returns the serial number of the last day of the month before or after a specified number of months",p:{startDate:{d:"is a serial date number that represents the start date"},months:{d:"is the number of months before or after the start_date"}}},HOUR:{s:"Returns the hour as a number from 0 (12:00 A.M.) to 23 (11:00 P.M.).",p:{serialOrString:{d:"is a number in the date-time code used by Excel or text in time format, such as 16:48:00 or 4:48:00 PM"}}},ISOWEEKNUM:{s:"Returns the ISO week number in the year for a given date",p:{serialOrString:{d:"is a number in the date-time code used by Excel or text in time format, such as 16:48:00 or 4:48:00 PM"}}},MINUTE:{s:"Returns the minute, a number from 0 to 59.",p:{serialOrString:{d:"is a number in the date-time code used by Excel or text in time format, such as 16:48:00 or 4:48:00 PM"}}},MONTH:{s:"Returns the month, a number from 1 (January) to 12 (December).",p:{serialOrString:{d:"is a number in the date-time code used by Excel"}}},NETWORKDAYS:{s:"Returns the number of whole workdays between two dates",p:{startDate:{d:"is a serial date number that represents the start date"},endDate:{d:"is a serial date number that represents the end date"},holidays:{d:"is an optional set of one or more serial date numbers to exclude from the working calendar, such as state and federal holidays and floating holidays",v:null}}},"NETWORKDAYS.INTL":{s:"Returns the number of whole workdays between two dates with custom weekend parameters",p:{startDate:{d:"is a serial date number that represents the start date"},endDate:{d:"is a serial date number that represents the end date"},weekend:{d:"is a number or string specifying when weekends occur",v:1},holidays:{d:"is an optional set of one or more serial date numbers to exclude from the working calendar, such as state and federal holidays and floating holidays",v:null}}},NOW:{s:"Returns the current date and time formatted as a date and time.",p:{}},SECOND:{s:"Returns the second, a number from 0 to 59.",p:{serialOrString:{d:"is a number in the date-time code used by Excel or text in time format, such as 16:48:23 or 4:48:47 PM"}}},TIME:{s:"Converts hours, minutes, and seconds given as numbers to an Excel serial number, formatted with a time format",p:{hour:{d:"is a number from 0 to 23 representing the hour"},minute:{d:"is a number from 0 to 59 representing the minute"},second:{d:"is a number from 0 to 59 representing the second"}}},TIMEVALUE:{s:"Converts a text time to an Excel serial number for a time, a number from 0 (12:00:00 AM) to 0.999988426 (11:59:59 PM). Format the number with a time format after entering the formula",p:{timeText:{d:"is a text string that gives a time in any one of the Excel time formats (date information in the string is ignored)"}}},TODAY:{s:"Returns the current date formatted as a date.",p:{}},WEEKDAY:{s:"Returns a number from 1 to 7 identifying the day of the week of a date.",p:{serialOrString:{d:"is a number that represents a date"},returnType:{d:"is a number: for Sunday=1 through Saturday=7, use 1; for Monday=1 through Sunday=7, use 2; for Monday=0 through Sunday=6, use 3",v:1}}},WEEKNUM:{s:"Returns the week number in the year",p:{serialOrString:{d:"is the date-time code used by Excel for date and time calculation"},returnType:{d:"is a number (1 or 2) that determines the type of the return value",v:1}}},WORKDAY:{s:"Returns the serial number of the date before or after a specified number of workdays",p:{startDate:{d:"is a serial date number that represents the start date"},days:{d:"is the number of nonweekend and non-holiday days before or after start_date"},holidays:{d:"is an optional array of one or more serial date numbers to exclude from the working calendar, such as state and federal holidays and floating holidays",v:null}}},"WORKDAY.INTL":{s:"Returns the serial number of the date before or after a specified number of workdays with custom weekend parameters",p:{startDate:{d:"is a serial date number that represents the start date"},days:{d:"is the number of nonweekend and non-holiday days before or after start_date"},weekend:{d:"is a number or string specifying when weekends occur",v:1},holidays:{d:"is an optional array of one or more serial date numbers to exclude from the working calendar, such as state and federal holidays and floating holidays",v:null}}},YEAR:{s:"Returns the year of a date, an integer in the range 1900 - 9999.",p:{serialOrString:{d:"is a number in the date-time code used by Excel"}}},YEARFRAC:{s:"Returns the year fraction representing the number of whole days between start_date and end_date",p:{startDate:{d:"is a serial date number that represents the start date"},endDate:{d:"is a serial date number that represents the end date"},basis:{d:"is the type of day count basis to use",v:0}}}};
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
"use strict";/**
|
|
2
|
-
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - 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
|
-
*/Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./B7V2ifI29G13Ypfn.cjs"),I=["Ok","Cancel"],y=t.reactExports.memo(E=>{const{initialHyperlink:a=null,initialDisplay:T=null,onUpdateHyperlink:c,context:s,onOption:d,onValidateOption:l,onDone:i,options:x=I,defaultOption:p=x?.[0],cancelOption:r="Cancel",sx:k,...C}=E,j=t.reactExports.useMemo(()=>(a??s?.()?.getHyperlink())!==null,[]),g=t.reactExports.useMemo(()=>{let e=null,o=null;a&&(typeof a=="string"?o=a:e=a);const h=e??s?.()?.getHyperlink();return{address:o??h?.getAddress()??"",textToDisplay:h?.getDisplayText()??""}},[a,s]),[n,b]=t.reactExports.useState(g.address),[u,F]=t.reactExports.useState(()=>{const e=s?.().toTextUnformatted()??T;return e===g.address?"":e}),[O,m]=t.reactExports.useState(!1),P=t.reactExports.useCallback(e=>{F(e.target.value)},[]),f=t.reactExports.useCallback(async(e,o)=>null,[]),D=t.st(async e=>{e!==r&&c?.(n===""?null:{address:n},u),d?.(e,e===r,e===p),i?.()},[n,u,c,i,d,p,r]),v=t.st(e=>{b(e.target.value),f(e.target.value,null)},[l]),H=t.st(async e=>{let o=await Promise.resolve(l?.(e));try{o!==!1&&(o=await f(n,e))}catch{}return o??!0},[l]);return t.jsxRuntimeExports.jsx(t.$4,{title:(j?"Edit":"Insert")+" Link",options:x,onDone:i,onOption:e=>D(e),onValidateOption:H,defaultOption:p,cancelOption:r,autoFocusSel:".autoFocus",sx:{width:"480px",...k},...C,children:t.jsxRuntimeExports.jsxs(t.Box,{sx:{paddingTop:e=>e.spacing(1),paddingBottom:e=>e.spacing(0),rowGap:e=>e.spacing(1),display:"flex",flexDirection:"column"},children:[t.jsxRuntimeExports.jsx(t.FormControl,{sx:{paddingTop:e=>e.spacing(1.5),minWidth:135,width:"100%"},size:"small",children:t.jsxRuntimeExports.jsx(t.TextField,{label:"Address",placeholder:"Enter a url or cell reference.",onFocus:e=>{O||e.target?.select(),m(!0)},sx:{"& .MuiFormHelperText-root":{marginTop:e=>e.spacing(.5)}},InputLabelProps:{shrink:!0},InputProps:{inputProps:{className:"autoFocus",spellCheck:!1,autoComplete:"off",sx:{paddingTop:e=>e.spacing(1.25),paddingBottom:e=>e.spacing(.75),backgroundImage:`linear-gradient(${t.alpha("#fff",t.Un(5))}, ${t.alpha("#fff",t.Un(5))})`}}},value:n,onChange:v,onContextMenu:e=>{e.stopPropagation()}})}),t.jsxRuntimeExports.jsx(t.FormControl,{sx:{paddingTop:e=>e.spacing(1.5),minWidth:135,width:"100%"},size:"small",children:t.jsxRuntimeExports.jsx(t.TextField,{label:"Display Text",placeholder:n?.startsWith("#")?n.substring(1):n,onFocus:()=>{m(!0)},sx:{"& .MuiFormHelperText-root":{marginTop:e=>e.spacing(.5)}},InputLabelProps:{shrink:!0},InputProps:{inputProps:{spellCheck:!1,autoComplete:"off",sx:{paddingTop:e=>e.spacing(1.25),paddingBottom:e=>e.spacing(.75),backgroundImage:`linear-gradient(${t.alpha("#fff",t.Un(5))}, ${t.alpha("#fff",t.Un(5))})`}}},value:u,onChange:P,onContextMenu:e=>{e.stopPropagation()}})})]})})});exports.HyperlinkDialog=y,exports.default=y;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
"use strict";/**
|
|
2
|
-
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - 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
|
-
*/Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const yt=require("./B7V2ifI29G13Ypfn.cjs");var ct,pt={exports:{}},gt=(ct||(ct=1,pt.exports=function Y(){var Q,k=typeof self<"u"?self:typeof window<"u"?window:k!==void 0?k:{},P=!k.document&&!!k.postMessage,B=k.IS_PAPA_WORKER||!1,J={},mt=0,a={};function K(t){this._handle=null,this._finished=!1,this._completed=!1,this._halted=!1,this._input=null,this._baseIndex=0,this._partialLine="",this._rowCount=0,this._start=0,this._nextChunk=null,this.isFirstChunk=!0,this._completeResults={data:[],errors:[],meta:{}},function(e){var i=at(e);i.chunkSize=parseInt(i.chunkSize),e.step||e.chunk||(i.chunkSize=null),this._handle=new ht(i),(this._handle.streamer=this)._config=i}.call(this,t),this.parseChunk=function(e,i){var n=parseInt(this._config.skipFirstNLines)||0;if(this.isFirstChunk&&0<n){let l=this._config.newline;l||(r=this._config.quoteChar||'"',l=this._handle.guessLineEndings(e,r)),e=[...e.split(l).slice(n)].join(l)}this.isFirstChunk&&_(this._config.beforeFirstChunk)&&(r=this._config.beforeFirstChunk(e))!==void 0&&(e=r),this.isFirstChunk=!1,this._halted=!1,n=this._partialLine+e;var r=(this._partialLine="",this._handle.parse(n,this._baseIndex,!this._finished));if(!this._handle.paused()&&!this._handle.aborted()){if(e=r.meta.cursor,this._finished||(this._partialLine=n.substring(e-this._baseIndex),this._baseIndex=e),r&&r.data&&(this._rowCount+=r.data.length),n=this._finished||this._config.preview&&this._rowCount>=this._config.preview,B)k.postMessage({results:r,workerId:a.WORKER_ID,finished:n});else if(_(this._config.chunk)&&!i){if(this._config.chunk(r,this._handle),this._handle.paused()||this._handle.aborted())return void(this._halted=!0);this._completeResults=r=void 0}return this._config.step||this._config.chunk||(this._completeResults.data=this._completeResults.data.concat(r.data),this._completeResults.errors=this._completeResults.errors.concat(r.errors),this._completeResults.meta=r.meta),this._completed||!n||!_(this._config.complete)||r&&r.meta.aborted||(this._config.complete(this._completeResults,this._input),this._completed=!0),n||r&&r.meta.paused||this._nextChunk(),r}this._halted=!0},this._sendError=function(e){_(this._config.error)?this._config.error(e):B&&this._config.error&&k.postMessage({workerId:a.WORKER_ID,error:e,finished:!1})}}function it(t){var e;(t=t||{}).chunkSize||(t.chunkSize=a.RemoteChunkSize),K.call(this,t),this._nextChunk=P?function(){this._readChunk(),this._chunkLoaded()}:function(){this._readChunk()},this.stream=function(i){this._input=i,this._nextChunk()},this._readChunk=function(){if(this._finished)this._chunkLoaded();else{if(e=new XMLHttpRequest,this._config.withCredentials&&(e.withCredentials=this._config.withCredentials),P||(e.onload=$(this._chunkLoaded,this),e.onerror=$(this._chunkError,this)),e.open(this._config.downloadRequestBody?"POST":"GET",this._input,!P),this._config.downloadRequestHeaders){var i,n=this._config.downloadRequestHeaders;for(i in n)e.setRequestHeader(i,n[i])}var r;this._config.chunkSize&&(r=this._start+this._config.chunkSize-1,e.setRequestHeader("Range","bytes="+this._start+"-"+r));try{e.send(this._config.downloadRequestBody)}catch(l){this._chunkError(l.message)}P&&e.status===0&&this._chunkError()}},this._chunkLoaded=function(){var i;e.readyState===4&&(e.status<200||400<=e.status?this._chunkError():(this._start+=this._config.chunkSize||e.responseText.length,this._finished=!this._config.chunkSize||this._start>=((i=(i=e).getResponseHeader("Content-Range"))!==null?parseInt(i.substring(i.lastIndexOf("/")+1)):-1),this.parseChunk(e.responseText)))},this._chunkError=function(i){i=e.statusText||i,this._sendError(new Error(i))}}function rt(t){(t=t||{}).chunkSize||(t.chunkSize=a.LocalChunkSize),K.call(this,t);var e,i,n=typeof FileReader<"u";this.stream=function(r){this._input=r,i=r.slice||r.webkitSlice||r.mozSlice,n?((e=new FileReader).onload=$(this._chunkLoaded,this),e.onerror=$(this._chunkError,this)):e=new FileReaderSync,this._nextChunk()},this._nextChunk=function(){this._finished||this._config.preview&&!(this._rowCount<this._config.preview)||this._readChunk()},this._readChunk=function(){var r=this._input,l=(this._config.chunkSize&&(l=Math.min(this._start+this._config.chunkSize,this._input.size),r=i.call(r,this._start,l)),e.readAsText(r,this._config.encoding));n||this._chunkLoaded({target:{result:l}})},this._chunkLoaded=function(r){this._start+=this._config.chunkSize,this._finished=!this._config.chunkSize||this._start>=this._input.size,this.parseChunk(r.target.result)},this._chunkError=function(){this._sendError(e.error)}}function X(t){var e;K.call(this,t=t||{}),this.stream=function(i){return e=i,this._nextChunk()},this._nextChunk=function(){var i,n;if(!this._finished)return i=this._config.chunkSize,e=i?(n=e.substring(0,i),e.substring(i)):(n=e,""),this._finished=!e,this.parseChunk(n)}}function nt(t){K.call(this,t=t||{});var e=[],i=!0,n=!1;this.pause=function(){K.prototype.pause.apply(this,arguments),this._input.pause()},this.resume=function(){K.prototype.resume.apply(this,arguments),this._input.resume()},this.stream=function(r){this._input=r,this._input.on("data",this._streamData),this._input.on("end",this._streamEnd),this._input.on("error",this._streamError)},this._checkIsFinished=function(){n&&e.length===1&&(this._finished=!0)},this._nextChunk=function(){this._checkIsFinished(),e.length?this.parseChunk(e.shift()):i=!0},this._streamData=$(function(r){try{e.push(typeof r=="string"?r:r.toString(this._config.encoding)),i&&(i=!1,this._checkIsFinished(),this.parseChunk(e.shift()))}catch(l){this._streamError(l)}},this),this._streamError=$(function(r){this._streamCleanUp(),this._sendError(r)},this),this._streamEnd=$(function(){this._streamCleanUp(),n=!0,this._streamData("")},this),this._streamCleanUp=$(function(){this._input.removeListener("data",this._streamData),this._input.removeListener("end",this._streamEnd),this._input.removeListener("error",this._streamError)},this)}function ht(t){var e,i,n,r,l=Math.pow(2,53),v=-l,M=/^\s*-?(\d+\.?|\.\d+|\d+\.\d+)([eE][-+]?\d+)?\s*$/,w=/^((\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z)))$/,m=this,T=0,o=0,j=!1,u=!1,p=[],s={data:[],errors:[],meta:{}};function C(h){return t.skipEmptyLines==="greedy"?h.join("").trim()==="":h.length===1&&h[0].length===0}function R(){if(s&&n&&(z("Delimiter","UndetectableDelimiter","Unable to auto-detect delimiting character; defaulted to '"+a.DefaultDelimiter+"'"),n=!1),t.skipEmptyLines&&(s.data=s.data.filter(function(f){return!C(f)})),L()){let f=function(O,A){_(t.transformHeader)&&(O=t.transformHeader(O,A)),p.push(O)};if(s)if(Array.isArray(s.data[0])){for(var h=0;L()&&h<s.data.length;h++)s.data[h].forEach(f);s.data.splice(0,1)}else s.data.forEach(f)}function c(f,O){for(var A=t.header?{}:[],b=0;b<f.length;b++){var y=b,g=f[b];g=((U,d)=>{return S=U,t.dynamicTypingFunction&&t.dynamicTyping[S]===void 0&&(t.dynamicTyping[S]=t.dynamicTypingFunction(S)),(t.dynamicTyping[S]||t.dynamicTyping)===!0?d==="true"||d==="TRUE"||d!=="false"&&d!=="FALSE"&&((I=>{if(M.test(I)&&(I=parseFloat(I),v<I&&I<l))return 1})(d)?parseFloat(d):w.test(d)?new Date(d):d===""?null:d):d;var S})(y=t.header?b>=p.length?"__parsed_extra":p[b]:y,g=t.transform?t.transform(g,y):g),y==="__parsed_extra"?(A[y]=A[y]||[],A[y].push(g)):A[y]=g}return t.header&&(b>p.length?z("FieldMismatch","TooManyFields","Too many fields: expected "+p.length+" fields but parsed "+b,o+O):b<p.length&&z("FieldMismatch","TooFewFields","Too few fields: expected "+p.length+" fields but parsed "+b,o+O)),A}var E;s&&(t.header||t.dynamicTyping||t.transform)&&(E=1,!s.data.length||Array.isArray(s.data[0])?(s.data=s.data.map(c),E=s.data.length):s.data=c(s.data,0),t.header&&s.meta&&(s.meta.fields=p),o+=E)}function L(){return t.header&&p.length===0}function z(h,c,E,f){h={type:h,code:c,message:E},f!==void 0&&(h.row=f),s.errors.push(h)}_(t.step)&&(r=t.step,t.step=function(h){s=h,L()?R():(R(),s.data.length!==0&&(T+=h.data.length,t.preview&&T>t.preview?i.abort():(s.data=s.data[0],r(s,m))))}),this.parse=function(h,c,E){var f=t.quoteChar||'"';return t.newline||(t.newline=this.guessLineEndings(h,f)),n=!1,t.delimiter?_(t.delimiter)&&(t.delimiter=t.delimiter(h),s.meta.delimiter=t.delimiter):((f=((O,A,b,y,g)=>{var U,d,S,I;g=g||[","," ","|",";",a.RECORD_SEP,a.UNIT_SEP];for(var Z=0;Z<g.length;Z++){for(var W,tt=g[Z],F=0,D=0,x=0,q=(S=void 0,new st({comments:y,delimiter:tt,newline:A,preview:10}).parse(O)),H=0;H<q.data.length;H++)b&&C(q.data[H])?x++:(D+=W=q.data[H].length,S===void 0?S=W:0<W&&(F+=Math.abs(W-S),S=W));0<q.data.length&&(D/=q.data.length-x),(d===void 0||F<=d)&&(I===void 0||I<D)&&1.99<D&&(d=F,U=tt,I=D)}return{successful:!!(t.delimiter=U),bestDelimiter:U}})(h,t.newline,t.skipEmptyLines,t.comments,t.delimitersToGuess)).successful?t.delimiter=f.bestDelimiter:(n=!0,t.delimiter=a.DefaultDelimiter),s.meta.delimiter=t.delimiter),f=at(t),t.preview&&t.header&&f.preview++,e=h,i=new st(f),s=i.parse(e,c,E),R(),j?{meta:{paused:!0}}:s||{meta:{paused:!1}}},this.paused=function(){return j},this.pause=function(){j=!0,i.abort(),e=_(t.chunk)?"":e.substring(i.getCharIndex())},this.resume=function(){m.streamer._halted?(j=!1,m.streamer.parseChunk(e,!0)):setTimeout(m.resume,3)},this.aborted=function(){return u},this.abort=function(){u=!0,i.abort(),s.meta.aborted=!0,_(t.complete)&&t.complete(s),e=""},this.guessLineEndings=function(h,c){h=h.substring(0,1048576),c=new RegExp(V(c)+"([^]*?)"+V(c),"gm");var E=(h=h.replace(c,"")).split("\r");if(h=1<(c=h.split(`
|
|
7
|
-
`)).length&&c[0].length<E[0].length,E.length===1||h)return`
|
|
8
|
-
`;for(var f=0,O=0;O<E.length;O++)E[O][0]===`
|
|
9
|
-
`&&f++;return f>=E.length/2?`\r
|
|
10
|
-
`:"\r"}}function V(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function st(t){var e=(t=t||{}).delimiter,i=t.newline,n=t.comments,r=t.step,l=t.preview,v=t.fastMode,M=null,w=!1,m=t.quoteChar==null?'"':t.quoteChar,T=m;if(t.escapeChar!==void 0&&(T=t.escapeChar),(typeof e!="string"||-1<a.BAD_DELIMITERS.indexOf(e))&&(e=","),n===e)throw new Error("Comment character same as delimiter");n===!0?n="#":(typeof n!="string"||-1<a.BAD_DELIMITERS.indexOf(n))&&(n=!1),i!==`
|
|
11
|
-
`&&i!=="\r"&&i!==`\r
|
|
12
|
-
`&&(i=`
|
|
13
|
-
`);var o=0,j=!1;this.parse=function(u,p,s){if(typeof u!="string")throw new Error("Input must be a string");var C=u.length,R=e.length,L=i.length,z=n.length,h=_(r),c=[],E=[],f=[],O=o=0;if(!u)return F();if(v||v!==!1&&u.indexOf(m)===-1){for(var A=u.split(i),b=0;b<A.length;b++){if(f=A[b],o+=f.length,b!==A.length-1)o+=i.length;else if(s)return F();if(!n||f.substring(0,z)!==n){if(h){if(c=[],I(f.split(e)),D(),j)return F()}else I(f.split(e));if(l&&l<=b)return c=c.slice(0,l),F(!0)}}return F()}for(var y=u.indexOf(e,o),g=u.indexOf(i,o),U=new RegExp(V(T)+V(m),"g"),d=u.indexOf(m,o);;)if(u[o]===m)for(d=o,o++;;){if((d=u.indexOf(m,d+1))===-1)return s||E.push({type:"Quotes",code:"MissingQuotes",message:"Quoted field unterminated",row:c.length,index:o}),W();if(d===C-1)return W(u.substring(o,d).replace(U,m));if(m===T&&u[d+1]===T)d++;else if(m===T||d===0||u[d-1]!==T){y!==-1&&y<d+1&&(y=u.indexOf(e,d+1));var S=Z((g=g!==-1&&g<d+1?u.indexOf(i,d+1):g)===-1?y:Math.min(y,g));if(u.substr(d+1+S,R)===e){f.push(u.substring(o,d).replace(U,m)),u[o=d+1+S+R]!==m&&(d=u.indexOf(m,o)),y=u.indexOf(e,o),g=u.indexOf(i,o);break}if(S=Z(g),u.substring(d+1+S,d+1+S+L)===i){if(f.push(u.substring(o,d).replace(U,m)),tt(d+1+S+L),y=u.indexOf(e,o),d=u.indexOf(m,o),h&&(D(),j))return F();if(l&&c.length>=l)return F(!0);break}E.push({type:"Quotes",code:"InvalidQuotes",message:"Trailing quote on quoted field is malformed",row:c.length,index:o}),d++}}else if(n&&f.length===0&&u.substring(o,o+z)===n){if(g===-1)return F();o=g+L,g=u.indexOf(i,o),y=u.indexOf(e,o)}else if(y!==-1&&(y<g||g===-1))f.push(u.substring(o,y)),o=y+R,y=u.indexOf(e,o);else{if(g===-1)break;if(f.push(u.substring(o,g)),tt(g+L),h&&(D(),j))return F();if(l&&c.length>=l)return F(!0)}return W();function I(x){c.push(x),O=o}function Z(x){return x!==-1&&(x=u.substring(d+1,x))&&x.trim()===""?x.length:0}function W(x){return s||(x===void 0&&(x=u.substring(o)),f.push(x),o=C,I(f),h&&D()),F()}function tt(x){o=x,I(f),f=[],g=u.indexOf(i,o)}function F(x){if(t.header&&!p&&c.length&&!w){var q=c[0],H=Object.create(null),ot=new Set(q);let ft=!1;for(let G=0;G<q.length;G++){let N=q[G];if(H[N=_(t.transformHeader)?t.transformHeader(N,G):N]){let et,lt=H[N];for(;et=N+"_"+lt,lt++,ot.has(et););ot.add(et),q[G]=et,H[N]++,ft=!0,(M=M===null?{}:M)[et]=N}else H[N]=1,q[G]=N;ot.add(N)}ft&&console.warn("Duplicate headers found and renamed."),w=!0}return{data:c,errors:E,meta:{delimiter:e,linebreak:i,aborted:j,truncated:!!x,cursor:O+(p||0),renamedHeaders:M}}}function D(){r(F()),c=[],E=[]}},this.abort=function(){j=!0},this.getCharIndex=function(){return o}}function _t(t){var e=t.data,i=J[e.workerId],n=!1;if(e.error)i.userError(e.error,e.file);else if(e.results&&e.results.data){var r={abort:function(){n=!0,ut(e.workerId,{data:[],errors:[],meta:{aborted:!0}})},pause:dt,resume:dt};if(_(i.userStep)){for(var l=0;l<e.results.data.length&&(i.userStep({data:e.results.data[l],errors:e.results.errors,meta:e.results.meta},r),!n);l++);delete e.results}else _(i.userChunk)&&(i.userChunk(e.results,r,e.file),delete e.results)}e.finished&&!n&&ut(e.workerId,e.results)}function ut(t,e){var i=J[t];_(i.userComplete)&&i.userComplete(e),i.terminate(),delete J[t]}function dt(){throw new Error("Not implemented.")}function at(t){if(typeof t!="object"||t===null)return t;var e,i=Array.isArray(t)?[]:{};for(e in t)i[e]=at(t[e]);return i}function $(t,e){return function(){t.apply(e,arguments)}}function _(t){return typeof t=="function"}return a.parse=function(t,e){var i,n=(e=e||{}).dynamicTyping||!1;if(_(n)&&(e.dynamicTypingFunction=n,n={}),e.dynamicTyping=n,e.transform=!!_(e.transform)&&e.transform,!e.worker||!a.WORKERS_SUPPORTED)return n=null,a.NODE_STREAM_INPUT,typeof t=="string"?(t=(i=t).charCodeAt(0)!==65279?i:i.slice(1),n=new(e.download?it:X)(e)):t.readable===!0&&_(t.read)&&_(t.on)?n=new nt(e):(k.File&&t instanceof File||t instanceof Object)&&(n=new rt(e)),n.stream(t);(n=(()=>{var r,l,v;return!!a.WORKERS_SUPPORTED&&(l=k.URL||k.webkitURL||null,v=Y.toString(),r=a.BLOB_URL||(a.BLOB_URL=l.createObjectURL(new Blob(["var global = (function() { if (typeof self !== 'undefined') { return self; } if (typeof window !== 'undefined') { return window; } if (typeof global !== 'undefined') { return global; } return {}; })(); global.IS_PAPA_WORKER=true; ","(",v,")();"],{type:"text/javascript"}))),(r=new k.Worker(r)).onmessage=_t,r.id=mt++,J[r.id]=r)})()).userStep=e.step,n.userChunk=e.chunk,n.userComplete=e.complete,n.userError=e.error,e.step=_(e.step),e.chunk=_(e.chunk),e.complete=_(e.complete),e.error=_(e.error),delete e.worker,n.postMessage({input:t,config:e,workerId:n.id})},a.unparse=function(t,e){var i=!1,n=!0,r=",",l=`\r
|
|
14
|
-
`,v='"',M=v+v,w=!1,m=null,T=!1,o=((()=>{if(typeof e=="object"){if(typeof e.delimiter!="string"||a.BAD_DELIMITERS.filter(function(p){return e.delimiter.indexOf(p)!==-1}).length||(r=e.delimiter),typeof e.quotes!="boolean"&&typeof e.quotes!="function"&&!Array.isArray(e.quotes)||(i=e.quotes),typeof e.skipEmptyLines!="boolean"&&typeof e.skipEmptyLines!="string"||(w=e.skipEmptyLines),typeof e.newline=="string"&&(l=e.newline),typeof e.quoteChar=="string"&&(v=e.quoteChar),typeof e.header=="boolean"&&(n=e.header),Array.isArray(e.columns)){if(e.columns.length===0)throw new Error("Option columns is empty");m=e.columns}e.escapeChar!==void 0&&(M=e.escapeChar+v),e.escapeFormulae instanceof RegExp?T=e.escapeFormulae:typeof e.escapeFormulae=="boolean"&&e.escapeFormulae&&(T=/^[=+\-@\t\r].*$/)}})(),new RegExp(V(v),"g"));if(typeof t=="string"&&(t=JSON.parse(t)),Array.isArray(t)){if(!t.length||Array.isArray(t[0]))return j(null,t,w);if(typeof t[0]=="object")return j(m||Object.keys(t[0]),t,w)}else if(typeof t=="object")return typeof t.data=="string"&&(t.data=JSON.parse(t.data)),Array.isArray(t.data)&&(t.fields||(t.fields=t.meta&&t.meta.fields||m),t.fields||(t.fields=Array.isArray(t.data[0])?t.fields:typeof t.data[0]=="object"?Object.keys(t.data[0]):[]),Array.isArray(t.data[0])||typeof t.data[0]=="object"||(t.data=[t.data])),j(t.fields||[],t.data||[],w);throw new Error("Unable to serialize unrecognized input");function j(p,s,C){var R="",L=(typeof p=="string"&&(p=JSON.parse(p)),typeof s=="string"&&(s=JSON.parse(s)),Array.isArray(p)&&0<p.length),z=!Array.isArray(s[0]);if(L&&n){for(var h=0;h<p.length;h++)0<h&&(R+=r),R+=u(p[h],h);0<s.length&&(R+=l)}for(var c=0;c<s.length;c++){var E=(L?p:s[c]).length,f=!1,O=L?Object.keys(s[c]).length===0:s[c].length===0;if(C&&!L&&(f=C==="greedy"?s[c].join("").trim()==="":s[c].length===1&&s[c][0].length===0),C==="greedy"&&L){for(var A=[],b=0;b<E;b++){var y=z?p[b]:b;A.push(s[c][y])}f=A.join("").trim()===""}if(!f){for(var g=0;g<E;g++){0<g&&!O&&(R+=r);var U=L&&z?p[g]:g;R+=u(s[c][U],g)}c<s.length-1&&(!C||0<E&&!O)&&(R+=l)}}return R}function u(p,s){var C,R;return p==null?"":p.constructor===Date?JSON.stringify(p).slice(1,25):(R=!1,T&&typeof p=="string"&&T.test(p)&&(p="'"+p,R=!0),C=p.toString().replace(o,M),(R=R||i===!0||typeof i=="function"&&i(p,s)||Array.isArray(i)&&i[s]||((L,z)=>{for(var h=0;h<z.length;h++)if(-1<L.indexOf(z[h]))return!0;return!1})(C,a.BAD_DELIMITERS)||-1<C.indexOf(r)||C.charAt(0)===" "||C.charAt(C.length-1)===" ")?v+C+v:C)}},a.RECORD_SEP="",a.UNIT_SEP="",a.BYTE_ORDER_MARK="\uFEFF",a.BAD_DELIMITERS=["\r",`
|
|
15
|
-
`,'"',a.BYTE_ORDER_MARK],a.WORKERS_SUPPORTED=!P&&!!k.Worker,a.NODE_STREAM_INPUT=1,a.LocalChunkSize=10485760,a.RemoteChunkSize=5242880,a.DefaultDelimiter=",",a.Parser=st,a.ParserHandle=ht,a.NetworkStreamer=it,a.FileStreamer=rt,a.StringStreamer=X,a.ReadableStreamStreamer=nt,k.jQuery&&((Q=k.jQuery).fn.parse=function(t){var e=t.config||{},i=[];return this.each(function(l){if(Q(this).prop("tagName").toUpperCase()!=="INPUT"||Q(this).attr("type").toLowerCase()!=="file"||!k.FileReader||!this.files||this.files.length===0)return!0;for(var v=0;v<this.files.length;v++)i.push({file:this.files[v],inputElem:this,instanceConfig:Q.extend({},e)})}),n(),this;function n(){if(i.length===0)_(t.complete)&&t.complete();else{var l,v,M,w=i[0];if(_(t.before)){var m=t.before(w.file,w.inputElem);if(typeof m=="object"){if(m.action==="abort")return l=w.file,v=w.inputElem,M=m.reason,void(_(t.error)&&t.error({name:"AbortError"},l,v,M));if(m.action==="skip")return void r();typeof m.config=="object"&&(w.instanceConfig=Q.extend(w.instanceConfig,m.config))}else if(m==="skip")return void r()}var T=w.instanceConfig.complete;w.instanceConfig.complete=function(o){_(T)&&T(o,w.file,w.inputElem),r()},a.parse(w.file,w.instanceConfig)}}function r(){i.splice(0,1),n()}}),B&&(k.onmessage=function(t){t=t.data,a.WORKER_ID===void 0&&t&&(a.WORKER_ID=t.workerId),typeof t.input=="string"?k.postMessage({workerId:a.WORKER_ID,results:a.parse(t.input,t.config),finished:!0}):(k.File&&t.input instanceof File||t.input instanceof Object)&&(t=a.parse(t.input,t.config))&&k.postMessage({workerId:a.WORKER_ID,results:t,finished:!0})}),(it.prototype=Object.create(K.prototype)).constructor=it,(rt.prototype=Object.create(K.prototype)).constructor=rt,(X.prototype=Object.create(X.prototype)).constructor=X,(nt.prototype=Object.create(K.prototype)).constructor=nt,a}()),pt.exports);const kt=function(Y,Q){for(var k=0;k<Q.length;k++){const P=Q[k];if(typeof P!="string"&&!Array.isArray(P)){for(const B in P)if(B!=="default"&&!(B in Y)){const J=Object.getOwnPropertyDescriptor(P,B);J&&Object.defineProperty(Y,B,J.get?J:{enumerable:!0,get:()=>P[B]})}}}return Object.freeze(Object.defineProperty(Y,Symbol.toStringTag,{value:"Module"}))}({__proto__:null,default:yt.km(gt)},[gt]);exports.p=kt;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
"use strict";/**
|
|
2
|
-
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - 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
|
-
*/Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./B7V2ifI29G13Ypfn.cjs"),v=["Ok","Cancel"],g=e.reactExports.memo(f=>{const{initialComments:h=null,onUpdateComments:c,context:C,onOption:u,onValidateOption:l,onDone:r,options:m=v,defaultOption:p=m?.[0],cancelOption:i="Cancel",sx:E,...O}=f,x=e.reactExports.useMemo(()=>{const t=h??C?.()?.getComments();let n="";if(t&&t.content&&t.content.runs){const a=t.content.runs;for(let o=0;o<a.length;o++){const k=a[o];n+=k?.text}}return n},[]),[s,j]=e.reactExports.useState(x),[y,F]=e.reactExports.useState(!1),d=e.reactExports.useCallback(async(t,n)=>null,[]),T=e.st(async t=>{const n=s===""?[]:s.split(`
|
|
7
|
-
`);if(t!==i){const a=[];for(let o=0;o<n.length;o++)a.push({text:n[o]});c?.({content:{runs:a}})}u?.(t,t===i,t===p),r?.()},[s,c,r,u,p,i]),b=e.st(t=>{j(t.target.value),d(t.target.value,null)},[l]),P=e.st(async t=>{let n=await Promise.resolve(l?.(t));try{n!==!1&&(n=await d(s,t))}catch{}return n??!0},[l,s]);return e.jsxRuntimeExports.jsx(e.$4,{title:(x?"Edit":"Insert")+" Comments",options:m,onDone:r,onOption:t=>T(t),onValidateOption:P,defaultOption:p,cancelOption:i,autoFocusSel:".autoFocus",sx:{width:"480px",...E},...O,children:e.jsxRuntimeExports.jsx(e.Box,{sx:{paddingTop:t=>t.spacing(1),paddingBottom:t=>t.spacing(0),rowGap:t=>t.spacing(1),display:"flex",flexDirection:"column"},children:e.jsxRuntimeExports.jsx(e.FormControl,{sx:{paddingTop:t=>t.spacing(1.5),minWidth:135,width:"100%"},size:"small",children:e.jsxRuntimeExports.jsx(e.TextField,{label:"Comments",placeholder:"Enter a comment.",onFocus:t=>{y||t.target?.select(),F(!0)},sx:{"& .MuiFormHelperText-root":{marginTop:t=>t.spacing(.5)}},InputLabelProps:{shrink:!0},InputProps:{inputProps:{className:"autoFocus",spellCheck:!1,autoComplete:"off",sx:{paddingTop:t=>t.spacing(1.25),paddingBottom:t=>t.spacing(.75),backgroundImage:`linear-gradient(${e.alpha("#fff",e.Un(5))}, ${e.alpha("#fff",e.Un(5))})`}}},value:s,onChange:b,onContextMenu:t=>{t.stopPropagation()}})})})})});exports.CommentsDialog=g,exports.default=g;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
"use strict";/**
|
|
2
|
-
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - 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
|
-
*/Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});exports.default={CONVERT:{s:"Converts a number from one measurement system to another",p:{number:{d:"is the value in from_unit to convert."},fromUnit:{d:"is the units for number."},toUnit:{d:"is the units for the result"}}}};
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
"use strict";/**
|
|
2
|
-
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - 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
|
-
*/Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./B7V2ifI29G13Ypfn.cjs"),w=["Ok","Cancel"],T=t.reactExports.memo(E=>{const{value:a=null,context:s,onOption:u,onValidateOption:D,onDone:c,onUpdate:d,options:x=w,defaultOption:g=x?.[0],cancelOption:m="Cancel",sx:R,...O}=E,f=t.reactExports.useMemo(()=>s?.getNames().findValidName("Range1"),[]),i=t.reactExports.useMemo(()=>{if(!a)return!0},[]),[n,j]=t.reactExports.useState({displayText:a?.getName()??f,errorText:null}),[o,V]=t.reactExports.useState({displayValue:a?.getRanges()??s?.selection()??null,errorText:null}),[y,N]=t.reactExports.useState(!1),C=t.reactExports.useCallback(async e=>!n.errorText&&!o.errorText,[s]),h=t.st((e,l,p)=>{if(!l){let r=null;i?r=s?.getNames().addReference(n?.displayText,o?.displayValue,!1):(a.getType()==="reference"&&a.doBatch(()=>{a.setName(n?.displayText),a.setReference(o?.displayValue)},`Edit Named '${n?.displayText}'`),r=a),r&&(r.select(),d(r,i))}u?.(e,l,p),c?.()},[s,n,o,c,u,g,m,d]),v=t.st(e=>{let l=null;try{s?.getNames().validateName(e)}catch(p){l=p.message}j({displayText:e,errorText:l})},[]),S=t.st(e=>{a&&a.getName().toLowerCase()===e.toLowerCase()||s?.getNames().validateName(e)},[s,a]),b=t.reactExports.useCallback(e=>{V({displayValue:e??null,errorText:null})},[]);return t.jsxRuntimeExports.jsx(t.$4,{title:(i?"Define":"Edit")+" Range",options:x,onOption:h,onValidateOption:C,defaultOption:g,cancelOption:m,autoFocusSel:".autoFocus",sx:{width:"460px",...R},...O,children:t.jsxRuntimeExports.jsxs(t.Box,{sx:{paddingTop:e=>e.spacing(1),paddingBottom:e=>e.spacing(0),rowGap:e=>e.spacing(1),range:"flex",flexDirection:"column"},children:[t.jsxRuntimeExports.jsx(t.gA,{formName:"name",defaultInput:f,value:n.displayText,onChangeInput:v,onValidate:S,onFocus:e=>{y||e.target?.select(),N(!0)}}),t.jsxRuntimeExports.jsx(t.yA,{formName:"range",value:o.displayValue,onChangeInput:b,resolvedAddress:s.getNames().getRanges.bind(s.getNames()),onFocus:e=>{y||e.target?.select(),N(!0)}})]})})});exports.NamedReferenceDialog=T,exports.default=T;
|