@sheetxl/studio-vanilla 0.6.9 → 0.6.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/browser/cjs/{CXUE5rWOVjcuv0l_.cjs → 0g1QZyv2wrvbRsdS.cjs} +1 -1
- package/browser/cjs/{D-qChmIFBCv1KOJi.cjs → 2EWWcHVDCZl4KBZh.cjs} +1 -1
- package/browser/cjs/{BjPuP-3W9W6NYT9V.cjs → 8kr1vhDEGTvGJAzA.cjs} +1 -1
- package/browser/cjs/B-iy63zNyyCfawO7.cjs +11 -0
- package/browser/cjs/{BJolSqJdWmY2L4Ef.cjs → B256ouyF_cklxHtX.cjs} +1 -1
- package/browser/cjs/{BpKRXhkK43wUi3CT.cjs → B6FgF4mYdSVu9k73.cjs} +1 -1
- package/browser/cjs/{BQLogR50C1MmG-XE.cjs → BAhbxVlq2_8drv_m.cjs} +1 -1
- package/browser/cjs/{CG4-r53H7Fj0-ZIR.cjs → BBrRZz5B2zoHAN9Y.cjs} +2 -2
- package/browser/cjs/{CLR2tw7tediAT4i3.cjs → BLDPuLeHWaJWwDmS.cjs} +1 -1
- package/browser/cjs/{BfsUYILdtXqrRJcT.cjs → BOq6rTMNi2H5ziRF.cjs} +1 -1
- package/browser/cjs/{DGfuDq_pQpahk68H.cjs → BOyoY_HQ258IRL7A.cjs} +2 -2
- package/browser/cjs/{BDcqdbUbeR_-OhaB.cjs → BR2feSbxQhiUx0ve.cjs} +1 -1
- package/browser/cjs/BWTZzkrzhBVcZcVO.cjs +6 -0
- package/browser/cjs/{DIWL3lIzZf2aFofI.cjs → BXsNN5OIqFIISk8z.cjs} +2 -2
- package/browser/cjs/{CdZ9xkB0-a1lq_sb.cjs → BjBwKyqsdtwBZmra.cjs} +1 -1
- package/browser/cjs/{BaEJI0g_NZYXRqmi.cjs → Bsh4gxB-AZa6vrho.cjs} +2 -2
- package/browser/cjs/BykeMXuqQ1Tsu8VV.cjs +330 -0
- package/browser/cjs/C46TuR3F7SprGoGG.cjs +6 -0
- package/browser/cjs/CA-866I7v6Zutlv9.cjs +6 -0
- package/browser/cjs/{4cCHMenOpUoMX-ey.cjs → CKHVD5SXHioheGLB.cjs} +1 -1
- package/browser/cjs/{CtPiMI5aoPJOoZPJ.cjs → CM5hMK1pUIh1eBbC.cjs} +4 -4
- package/browser/cjs/{BwdB25GiF1GKOWgl.cjs → CMpcVmK6NyIHZbQe.cjs} +1 -1
- package/browser/cjs/{BKPebwj1mIm-UfnC.cjs → CS2tXWHBVQIU67gY.cjs} +2 -2
- package/browser/cjs/{CZCl2XsgHAVVRgdU.cjs → CUIFforYlaNEvC1I.cjs} +4 -4
- package/browser/cjs/{1ZoSnZDEnt4sv55J.cjs → CW9Eb3taF--hyjO6.cjs} +2 -2
- package/browser/cjs/{Dy2m6bBCyB88enAm.cjs → CXy8i5LdgNECIsU8.cjs} +1 -1
- package/browser/cjs/{BaJWOQgGQnlMkxle.cjs → CaxLcPMfTfCP3HVM.cjs} +1 -1
- package/browser/cjs/{hv5j4S3_A-WFYwNc.cjs → Ce_zwBSNT8mlAnXL.cjs} +1 -1
- package/browser/cjs/{B1wfwwcJt9yQ9pny.cjs → Chy6NUkZXtPqgrZR.cjs} +2 -2
- package/browser/cjs/{B_q-1a6tXu_2TCnG.cjs → CkUIJkk4tGcBLDzt.cjs} +1 -1
- package/browser/cjs/{BmEqdu_KT06_KPmp.cjs → Ck_XSvnhc4XECkOd.cjs} +1 -1
- package/browser/cjs/{BulFNFFGWG7Q9Qqf.cjs → Cn41imsLOCTVlRxR.cjs} +2 -2
- package/browser/cjs/{C0QVeL8Oz6OLWY4S.cjs → Cq7t367tAjzZiHrA.cjs} +1 -1
- package/browser/cjs/{CYbqkA-I7eIMNbFC.cjs → CxhPRHgwpIAMDc_a.cjs} +2 -2
- package/browser/cjs/{DMLO1Nqc6wPdNt6e.cjs → CyCkK_PTjuR-1olP.cjs} +1 -1
- package/browser/cjs/{CuXA1jL8nYqRNyHC.cjs → CzmxW1qMzEA20ta2.cjs} +2 -2
- package/browser/cjs/{DXaK7ErUogYPqrbF.cjs → D-tsTUrXJ9H8SVUo.cjs} +1 -1
- package/browser/cjs/{Bqv1apOdfGQ8HWku.cjs → D1nvLhV8dNYsMbTo.cjs} +3 -3
- package/browser/cjs/{CizXrDFtnDzvp5GD.cjs → DEC-4LETKmaxAyGk.cjs} +1 -1
- package/browser/cjs/{CJSHJZnpGkEHxwTv.cjs → DLeD6vyjEjWPn6HD.cjs} +2 -2
- package/browser/cjs/{CH8vR45FnfXkvrJK.cjs → DM_MA2z9EviuPzoA.cjs} +1 -1
- package/browser/cjs/{D7vhUxv7ilVI5dOy.cjs → DSCY0h0k7_NGFAa9.cjs} +1 -1
- package/browser/cjs/{BTN3kUQ33wHj3-SE.cjs → D_q5Ft7rHeY_SEc_.cjs} +1 -1
- package/browser/cjs/{DdeWYeqiG6oDZOLT.cjs → DfHcrDlwCCeVJVws.cjs} +1 -1
- package/browser/cjs/{D3C8w3J8yEW_mK07.cjs → DgmHf9dI4VJCZbDp.cjs} +1 -1
- package/browser/cjs/{Bsibmu1cGnqOhDce.cjs → Dko_G-DbgBQsU8gK.cjs} +3 -3
- package/browser/cjs/{DzUtl3xEaPr2h5py.cjs → DtVW16ZMhSlBHrUI.cjs} +2 -2
- package/browser/cjs/{BIHX7SNYLh8tESWI.cjs → Dvswt6wd4E_kc9U6.cjs} +4 -4
- package/browser/cjs/{N-l_Uv53y3rLMUwH.cjs → DxTLX-Xu-p7q-rx1.cjs} +1 -1
- package/browser/cjs/{DBOfqYF0FuaGdU2_.cjs → U2nILmJF7mZ0IwB0.cjs} +2 -2
- package/browser/cjs/bJoZrtU3DvP8WHgg.cjs +6 -0
- package/browser/cjs/{Cch1zyhCk3YWvO-A.cjs → fCZqW0EpUS-vX5Ub.cjs} +1 -1
- package/browser/cjs/{CeeZ0BYOlyVekqjR.cjs → hvbMSwM_KarZIwXU.cjs} +2 -2
- package/browser/cjs/index.cjs +2 -2
- package/browser/cjs/{NpqJS8IvavlIoQ7p.cjs → kUPfWN5_ixae-NhP.cjs} +1 -1
- package/browser/cjs/{P5bweAaALnbuUnFz.cjs → lVAnc94189QEW85A.cjs} +2 -2
- package/browser/cjs/{CRH3t4ElGYXJai5K.cjs → sTEaI4C-lqFBtWvq.cjs} +2 -2
- package/browser/cjs/{CKgIw2SxEAIMBJnl.cjs → yXhxuzgDDWBV547R.cjs} +1 -1
- package/{cdn/assets/BW5l6iS-31FNFEUx.js → browser/esm/4BPCTIlF0pqI05ht.mjs} +1 -1
- package/browser/esm/{BWj7rV2MefNCGjZk.mjs → 7Dybvm0k5M0Rgxi9.mjs} +3 -3
- package/browser/esm/{CJjQplFdYThKlGF6.mjs → A0mKJagiIIafETKt.mjs} +6 -6
- package/browser/esm/{4zACS7fi_-m4_ce9.mjs → B371bLYYzBAadUNu.mjs} +2 -2
- package/{cdn/assets/Bng9ix9sfxbQZqg-.js → browser/esm/B3lbG_j1N1BUm4A1.mjs} +1 -1
- package/browser/esm/{Bd_TWnJ56S2tc933.mjs → B413hlEwLRdL7jdK.mjs} +5 -5
- package/browser/esm/{3ipr8iZEA2Lr1bGA.mjs → B6EnN2PTngU4fW3X.mjs} +4 -4
- package/browser/esm/{LWUa7tpq7j9-n6Ef.mjs → BBSmKE3PyYmNnNG5.mjs} +4 -4
- package/browser/esm/{B7XHld4IQbV1dmD8.mjs → BEPO_VFY_vEEcx57.mjs} +1 -1
- package/{cdn/assets/XQ_lEQBwU6Yc24dZ.js → browser/esm/BHC5dYgDe-yxi9pL.mjs} +1 -1
- package/browser/esm/{DrBLmfEvbDdCLYHg.mjs → BHguDOHteRDQL56G.mjs} +1 -1
- package/{cdn/assets/xfzdS0frUCeEtUbz.js → browser/esm/BKB3NbD6Z1Zx00fn.mjs} +1 -1
- package/{cdn/assets/DLv9_A2FRBPPugOR.js → browser/esm/BWVfVWPfko24QQTK.mjs} +1 -1
- package/browser/esm/{Dl7WapPl0fLnWm-o.mjs → BYLVMtwTimlP_9hg.mjs} +3 -3
- package/browser/esm/{3Dpm5egDa1V9NdGx.mjs → BZ1qIk9UaulOvJeC.mjs} +1 -1
- package/browser/esm/{BD1fmHO9kWVYpTn1.mjs → BaiPAiVsT4N84J6g.mjs} +2 -2
- package/{cdn/assets/BTWAhZsiVaprBGuq.js → browser/esm/BjsepRAVD0aE76wy.mjs} +2 -2
- package/{cdn/assets/91OCWp65Lh5ppevX.js → browser/esm/BrEA-Ll98LSBU5pb.mjs} +1 -1
- package/browser/esm/{HW-V5yVryy6T8xzs.mjs → BtxyhWlEL5IaY_hm.mjs} +7 -7
- package/{cdn/assets/C8wjkakCU0WmC5Dn.js → browser/esm/BxFQDHGfap0k7f8z.mjs} +1 -1
- package/browser/esm/{BM1G3_OQLbZr0rnk.mjs → CAD2eGmHD0r_Cj4u.mjs} +3 -3
- package/browser/esm/{CwQX6aDhumT_9Q1K.mjs → CBZnNZe8v548iJ_R.mjs} +1 -1
- package/browser/esm/{BQdwnK_VSkFn4lCK.mjs → CCfcJvj7nqz0qwrf.mjs} +1 -1
- package/browser/esm/{BkL2pHNfEpgy5AjI.mjs → CGkWXHIuW7Zea8eC.mjs} +16 -16
- package/{cdn/assets/5qa-WBpZKEe4Ogh2.js → browser/esm/CMnJNhH4Ay8dZGXp.mjs} +1 -1
- package/{cdn/assets/DY20lrCHUieeDicO.js → browser/esm/CPOvQuec4xYzOXDx.mjs} +1 -1
- package/{cdn/assets/Bsch6gORnudqZwVq.js → browser/esm/CT8OrAikF_X8OlTe.mjs} +6 -8
- package/browser/esm/{DPkY06F0vQMWpBCC.mjs → Cb39jxbqw2Riaewe.mjs} +2 -2
- package/browser/esm/{i89czqIGWW-6IN90.mjs → CcUOUH3-vLOcNeWo.mjs} +1 -1
- package/browser/esm/{CwHSQHPfeogKoBoY.mjs → Cecgq9vdu7WniaRl.mjs} +1 -1
- package/browser/esm/{CwPlu0AeEpe0XYsE.mjs → CjHEGzsBP2ps07ya.mjs} +1 -1
- package/browser/esm/{0MTYz8tJRkoCGZzF.mjs → CjHoMkU6X3s9wTwJ.mjs} +1 -1
- package/{cdn/assets/CJWcf9kZErAGQkK1.js → browser/esm/Ckz0-uTyB9pPnWVd.mjs} +1 -1
- package/browser/esm/{B-cjDIBT2VklBYeC.mjs → CtlaeZi8a0W6xVye.mjs} +1 -1
- package/{cdn/assets/Ble3ihgcekQfK3B_.js → browser/esm/D3eToVxChBm1vskm.mjs} +1 -1
- package/browser/esm/{jjEKB6Jbsh3AjdA_.mjs → DJVSp6k73bUNcSEM.mjs} +1 -1
- package/browser/esm/{CUSevRNH6XNYSTMz.mjs → DJfa0QB-LbuVDa-x.mjs} +193 -192
- package/browser/esm/{dT2-g9AtdFbAepFd.mjs → DMe6xRvjt3iQ0qa4.mjs} +2 -2
- package/{cdn/assets/C9LjcFsOsH-T9RE1.js → browser/esm/DeQF8cAfpEj04GBF.mjs} +1 -1
- package/browser/esm/{DvVNH_i2C7DSqkej.mjs → DgY0aShDtY6hxbQh.mjs} +2 -2
- package/browser/esm/{dccJ0Zb4ezHbdHlw.mjs → DmbiRnIM6oc8lzbG.mjs} +1 -1
- package/browser/esm/{CgvYxl-8vcaaqQNn.mjs → DqBww2VmIy1kjaRI.mjs} +1 -1
- package/browser/esm/{DgoERJBX4ar9cKe7.mjs → DqvsG_Kt5h7OXOD4.mjs} +1 -1
- package/browser/esm/{CJRNrFY2_fuYhFzN.mjs → Dr3-VaDEehS5r3lW.mjs} +1 -1
- package/{cdn/assets/CSf8GiBiZnrqHDpM.js → browser/esm/Ds6-ZtMzNBnapRPR.mjs} +1 -1
- package/browser/esm/Dz_Xpa7-vaKrl6gi.mjs +10 -0
- package/{cdn/assets/VlS6qOo0BApKuraY.js → browser/esm/Jo81Ec76yqof_D2n.mjs} +2 -2
- package/{cdn/assets/7d1Vn9ZPowvw8KGz.js → browser/esm/QnOc_115EfuiMrV9.mjs} +2 -2
- package/browser/esm/XrnAhMT2xm37Qcui.mjs +10 -0
- package/browser/esm/{B48YCRMiJCy8-uo5.mjs → be56x0hvyZjriF-C.mjs} +2 -2
- package/browser/esm/{D_-y8IhesILZ4tnZ.mjs → cMpuf0nUKBKIvP6-.mjs} +9 -9
- package/browser/esm/{MD_E4lvBRo_augAU.mjs → e9sNJT-C4juKOvPJ.mjs} +1 -1
- package/{cdn/assets/OxSKnyWAEpg5PsII.js → browser/esm/f1sPjK-5gCikEO7x.mjs} +1 -1
- package/browser/esm/index.mjs +2 -2
- package/browser/esm/{DwIBlukg9B0cEOp-.mjs → j8k5EUdYa05M8Dx4.mjs} +4 -4
- package/browser/esm/{DaD2MU-2RQc5gMNJ.mjs → n5ivgVEV9XXtLNNI.mjs} +4 -4
- package/browser/esm/{CAJ6C5VMtWhyJJx2.mjs → nSlm8uWfv0TKCPMH.mjs} +2 -2
- package/browser/esm/{B_CyYygjLPHMFaOs.mjs → sFj63f4s74BFpJl4.mjs} +14099 -14078
- package/cdn/assets/{BLuNQHXC-V-MfDcj.js → -sMQ5ptS-I77owZz.js} +7 -7
- package/{browser/esm/BW5l6iS-31FNFEUx.mjs → cdn/assets/4BPCTIlF0pqI05ht.js} +1 -1
- package/cdn/assets/{Dz1xMt8FctgB2-OB.js → 4_eVc_NHveHr_iYh.js} +10 -10
- package/{browser/esm/Bng9ix9sfxbQZqg-.mjs → cdn/assets/B3lbG_j1N1BUm4A1.js} +1 -1
- package/cdn/assets/{C0G3pUQkCol3zN7U.js → B5ggAX8if47B8zgf.js} +33 -33
- package/cdn/assets/{DUpAuNDCz94KK39E.js → B9M_HdQR_7nCf0PF.js} +4 -4
- package/cdn/assets/{BJ8br6jkSlp0O4YB.js → BA84bb8x6bfiOlla.js} +1 -1
- package/cdn/assets/{B7XHld4IQbV1dmD8.js → BEPO_VFY_vEEcx57.js} +1 -1
- package/{browser/esm/XQ_lEQBwU6Yc24dZ.mjs → cdn/assets/BHC5dYgDe-yxi9pL.js} +1 -1
- package/cdn/assets/{DrBLmfEvbDdCLYHg.js → BHguDOHteRDQL56G.js} +1 -1
- package/cdn/assets/{UVD__1wXHI_R_JrB.js → BHqxKaUWRnqlOIwU.js} +4 -4
- package/{browser/esm/xfzdS0frUCeEtUbz.mjs → cdn/assets/BKB3NbD6Z1Zx00fn.js} +1 -1
- package/cdn/assets/{2AGc6eLTYagfdb_F.js → BWPDJIAKkspYDjeG.js} +2 -2
- package/{browser/esm/DLv9_A2FRBPPugOR.mjs → cdn/assets/BWVfVWPfko24QQTK.js} +1 -1
- package/cdn/assets/{BlQb8YFDM-0GCRen.js → BXtrrp3TwXPldY5p.js} +3 -3
- package/cdn/assets/{3Dpm5egDa1V9NdGx.js → BZ1qIk9UaulOvJeC.js} +1 -1
- package/cdn/assets/{JSGLcwOt970MLSz_.js → BkDeNlXS9IF_cU9l.js} +10 -10
- package/{browser/esm/91OCWp65Lh5ppevX.mjs → cdn/assets/BrEA-Ll98LSBU5pb.js} +1 -1
- package/cdn/assets/{DpHg8vSuOwzhZ8va.js → Bt7MaehKrr9HHrl_.js} +193 -192
- package/{browser/esm/C8wjkakCU0WmC5Dn.mjs → cdn/assets/BxFQDHGfap0k7f8z.js} +1 -1
- package/cdn/assets/{CwQX6aDhumT_9Q1K.js → CBZnNZe8v548iJ_R.js} +1 -1
- package/cdn/assets/{DO15jgHFM8r_cd4h.js → CC_ssLj3EZenV9ci.js} +3 -3
- package/cdn/assets/{BQdwnK_VSkFn4lCK.js → CCfcJvj7nqz0qwrf.js} +1 -1
- package/cdn/assets/{CqDkvFWJ5TTkA4An.js → CDl3cGYRe3FVTAa0.js} +2 -2
- package/cdn/assets/{CfbUY4iA-KC-HwMd.js → CHBYGIRMkPSTfKHz.js} +9 -9
- package/{browser/esm/5qa-WBpZKEe4Ogh2.mjs → cdn/assets/CMnJNhH4Ay8dZGXp.js} +1 -1
- package/{browser/esm/DY20lrCHUieeDicO.mjs → cdn/assets/CPOvQuec4xYzOXDx.js} +1 -1
- package/cdn/assets/{Bdj5knA_qC0CeQP_.js → CRGvn7E4ngCBM7q1.js} +2 -2
- package/cdn/assets/{Cu4iM0RF98ZktjPQ.js → CZ8wwk5mEEEIq0FP.js} +3 -3
- package/cdn/assets/{i89czqIGWW-6IN90.js → CcUOUH3-vLOcNeWo.js} +1 -1
- package/cdn/assets/{CwHSQHPfeogKoBoY.js → Cecgq9vdu7WniaRl.js} +1 -1
- package/{browser/esm/DvnbTrr1a25Bw3Q0.mjs → cdn/assets/CiQ1bXvali4tgsRH.js} +2 -2
- package/cdn/assets/{CwPlu0AeEpe0XYsE.js → CjHEGzsBP2ps07ya.js} +1 -1
- package/cdn/assets/{0MTYz8tJRkoCGZzF.js → CjHoMkU6X3s9wTwJ.js} +1 -1
- package/{browser/esm/CJWcf9kZErAGQkK1.mjs → cdn/assets/Ckz0-uTyB9pPnWVd.js} +1 -1
- package/cdn/assets/{DYUSMk7zgJjlElMh.js → CqLqtJUqZ_vShU25.js} +4 -4
- package/cdn/assets/{DYZBZ7zWUU5S9N4t.js → CwiZnPVW2X9r3FKB.js} +3 -3
- package/{browser/esm/Ble3ihgcekQfK3B_.mjs → cdn/assets/D3eToVxChBm1vskm.js} +1 -1
- package/cdn/assets/{BpHqnjG6_A_iZy--.js → D556jZ6f2NRUvUyF.js} +14936 -14915
- package/{browser/esm/C5toxLwX1xly5ni4.mjs → cdn/assets/D6KyT1Esxw1TEgUu.js} +2 -2
- package/cdn/assets/{jjEKB6Jbsh3AjdA_.js → DJVSp6k73bUNcSEM.js} +1 -1
- package/cdn/assets/{D_17PMRsUyONTQLp.js → DNwggyYaFafLdQV0.js} +21 -21
- package/cdn/assets/{CQxER7Aq1ua_kdwa.js → DUeMOZjhpvJ_6uhS.js} +2 -2
- package/cdn/assets/{D_abAgUd-7o05Qwa.js → DaB2B7Zar-aUVirp.js} +2 -2
- package/cdn/assets/Dc1kMbzWjvllPqe1.js +43 -0
- package/{browser/esm/C9LjcFsOsH-T9RE1.mjs → cdn/assets/DeQF8cAfpEj04GBF.js} +1 -1
- package/cdn/assets/{DdUcB5l48Pr_Qyce.js → DfFtQgx2dh9vIP0c.js} +9 -9
- package/cdn/assets/{BkDRMMQpYcDJo_LF.js → DiiI8CNWqen-tunB.js} +4 -4
- package/cdn/assets/{dccJ0Zb4ezHbdHlw.js → DmbiRnIM6oc8lzbG.js} +1 -1
- package/cdn/assets/{CgvYxl-8vcaaqQNn.js → DqBww2VmIy1kjaRI.js} +1 -1
- package/cdn/assets/{DgoERJBX4ar9cKe7.js → DqvsG_Kt5h7OXOD4.js} +1 -1
- package/cdn/assets/{CJRNrFY2_fuYhFzN.js → Dr3-VaDEehS5r3lW.js} +1 -1
- package/{browser/esm/CSf8GiBiZnrqHDpM.mjs → cdn/assets/Ds6-ZtMzNBnapRPR.js} +1 -1
- package/cdn/assets/Dz_Xpa7-vaKrl6gi.js +10 -0
- package/{browser/esm/DrCApYAgM59b1gkb.mjs → cdn/assets/IzSH40VnDHnVyGKo.js} +2 -2
- package/cdn/assets/{5gQ_mS4isigP5ESA.js → KtA9rkFunJ_pznZ7.js} +4 -4
- package/cdn/assets/{UqIDPaqYrdp_CbFM.js → L1HZTkI2V44CIIqF.js} +11 -11
- package/cdn/assets/XrnAhMT2xm37Qcui.js +10 -0
- package/cdn/assets/{Dl-a7-_qzDbgeRKv.js → dBypFeuqSOAN27DS.js} +4 -4
- package/cdn/assets/{MD_E4lvBRo_augAU.js → e9sNJT-C4juKOvPJ.js} +1 -1
- package/{browser/esm/OxSKnyWAEpg5PsII.mjs → cdn/assets/f1sPjK-5gCikEO7x.js} +1 -1
- package/cdn/assets/{vAlH-fnjW9UgVoQL.js → jCSnsi7oZvNEZ68R.js} +1 -1
- package/cdn/assets/{ev6SuzxjaCmJsLou.js → o4XtjKEYah97mq2L.js} +27 -27
- package/cdn/assets/{BmbVMB14jDSRfeyg.js → rS6lMMOdCvbDI366.js} +2 -2
- package/cdn/index.js +2 -2
- package/cdn/loader.js +1 -1
- package/package.json +3 -3
- package/browser/cjs/1yauO7dmzjUaAZLh.cjs +0 -11
- package/browser/cjs/BD2XOp_mCEDiU1Vc.cjs +0 -6
- package/browser/cjs/BQroH-EqHlkbCQXw.cjs +0 -6
- package/browser/cjs/DPCTm_ZmEZ2rV5oX.cjs +0 -6
- package/browser/cjs/Dl3Vea8PMrr9yITV.cjs +0 -6
- package/browser/cjs/h--y53Cz6XBstcC3.cjs +0 -330
- package/browser/esm/DKtZ47pCqe_X87ze.mjs +0 -10
- package/browser/esm/DdccOJLGMMaxHZ2C.mjs +0 -41
- package/browser/esm/DivcJTGEgdJhrXuv.mjs +0 -10
- package/cdn/assets/DKtZ47pCqe_X87ze.js +0 -10
- package/cdn/assets/DivcJTGEgdJhrXuv.js +0 -10
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";/**
|
|
2
|
-
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.6.
|
|
2
|
+
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.6.11
|
|
3
3
|
*
|
|
4
4
|
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";/**
|
|
2
|
-
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.6.
|
|
2
|
+
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.6.11
|
|
3
3
|
*
|
|
4
4
|
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
6
|
-
*/Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const y=require("./
|
|
6
|
+
*/Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const y=require("./BykeMXuqQ1Tsu8VV.cjs");exports.fromBufferCSV=async(a,c)=>{const{papaParseConfig:i,setValuesOptions:f,createWorkbookOptions:h}=c??{},o=await Promise.resolve().then(()=>require("./fCZqW0EpUS-vX5Ub.cjs")).then(n=>n.p),m=new TextDecoder().decode(a);let p=-1;const t=new y.vy(h),u=t.getSelectedSheet().getEntireRange().startIncrementalUpdates({orientation:y.w.Orientation.Row}),d=c?.onProgress;let e=0;const r={...i,transform:(n,g)=>{i?.transform&&(n=i.transform(n,g));const s=g;s===0&&p++;let l=n??"";return u.pushAt(p,s,l),e++,e%1e5==0&&d?.(e),n}};return o.parse(m,r).data,u.apply({textParser:!0,...f}),t},exports.toBufferCSV=async(a,c)=>{const{trimLeadingBlankRow:i=!0,trimLeadingBlankColumn:f=!0,excludeHidden:h=!1,sheetKey:o=null,papaParseConfig:m={}}=c||{},p=await Promise.resolve().then(()=>require("./fCZqW0EpUS-vX5Ub.cjs")).then(s=>s.p);if(!a)throw new Error("workbook must be specified");let t=null;if(o===null?t=a.getSelectedSheet():typeof o=="number"?t=a.getSheets().getItems()[o]:typeof o=="string"&&(t=a.getSheets().getByName(o)),!t)throw new Error("invalid sheetKey specified");let u=null;const d=[];let e=null,r=t.getUsedRange({excludeHidden:h});if(!r)throw new Error("Nothing to export");if(!i||!f){const s=i?r.getRowStart():0,l=f?r.getColumnStart():0;r=r.getOffsetTo(s,l)}r.forEach((s,l)=>{const w=l.getCoords(),S=l.getCell();u!==w.rowIndex&&(e&&d.push(e),e=[],u=w.rowIndex);const x=S.toTextUnformatted()??"";e.push(x)},{includeEmpty:!0,address:null}),e&&d.push(e);const n={...m},g=p.unparse(d,n);return new TextEncoder().encode(g).buffer};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";/**
|
|
2
|
-
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.6.
|
|
2
|
+
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.6.11
|
|
3
3
|
*
|
|
4
4
|
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";/**
|
|
2
|
-
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.6.
|
|
2
|
+
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.6.11
|
|
3
3
|
*
|
|
4
4
|
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";/**
|
|
2
|
-
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.6.
|
|
2
|
+
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.6.11
|
|
3
3
|
*
|
|
4
4
|
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";/**
|
|
2
|
-
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.6.
|
|
2
|
+
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.6.11
|
|
3
3
|
*
|
|
4
4
|
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";/**
|
|
2
|
-
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.6.
|
|
2
|
+
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.6.11
|
|
3
3
|
*
|
|
4
4
|
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";/**
|
|
2
|
-
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.6.
|
|
2
|
+
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.6.11
|
|
3
3
|
*
|
|
4
4
|
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
6
|
-
*/Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const f=require("./
|
|
6
|
+
*/Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const f=require("./BykeMXuqQ1Tsu8VV.cjs"),Gt=f.reactExports.createContext(),At=f.reactExports.createContext();function Wt(o){return f.generateUtilityClass("MuiTableCell",o)}const Ht=f.generateUtilityClasses("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),jt=f.styled("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(o,e)=>{const{ownerState:t}=o;return[e.root,e[t.variant],e[`size${f.capitalize(t.size)}`],t.padding!=="normal"&&e[`padding${f.capitalize(t.padding)}`],t.align!=="inherit"&&e[`align${f.capitalize(t.align)}`],t.stickyHeader&&e.stickyHeader]}})(f.memoTheme(({theme:o})=>({...o.typography.body2,display:"table-cell",verticalAlign:"inherit",borderBottom:o.vars?`1px solid ${o.vars.palette.TableCell.border}`:`1px solid
|
|
7
7
|
${o.palette.mode==="light"?f.lighten(f.alpha(o.palette.divider,1),.88):f.darken(f.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",[`&.${Ht.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}}]}))),Re=f.reactExports.forwardRef(function(o,e){const t=f.useDefaultProps({props:o,name:"MuiTableCell"}),{align:r="inherit",className:n,component:i,padding:l,scope:a,size:s,sortDirection:c,variant:d,...h}=t,p=f.reactExports.useContext(Gt),u=f.reactExports.useContext(At),S=u&&u.variant==="head";let m;m=i||(S?"th":"td");let v=a;m==="td"?v=void 0:!v&&S&&(v="col");const y=d||u&&u.variant,x={...t,align:r,component:m,padding:l||(p&&p.padding?p.padding:"normal"),size:s||(p&&p.size?p.size:"medium"),sortDirection:c,stickyHeader:y==="head"&&p&&p.stickyHeader,variant:y},_=(C=>{const{classes:R,variant:b,align:z,padding:T,size:k,stickyHeader:O}=C,P={root:["root",b,O&&"stickyHeader",z!=="inherit"&&`align${f.capitalize(z)}`,T!=="normal"&&`padding${f.capitalize(T)}`,`size${f.capitalize(k)}`]};return f.composeClasses(P,Wt,R)})(x);let w=null;return c&&(w=c==="asc"?"ascending":"descending"),f.jsxRuntimeExports.jsx(jt,{as:m,ref:e,className:f.clsx(_.root,n),"aria-sort":w,scope:v,ownerState:x,...h})});function E(o,e){if(!(o instanceof e))throw new TypeError("Cannot call a class as a function")}function $(o){return($=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 nt(o){var e=(function(t){if($(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,"string");if($(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)})(o);return $(e)=="symbol"?e:e+""}function be(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,nt(r.key),r)}}function L(o,e,t){return e&&be(o.prototype,e),t&&be(o,t),Object.defineProperty(o,"prototype",{writable:!1}),o}function A(o,e){if(e&&($(e)=="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return(function(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t})(o)}function I(o){return(I=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(o)}function W(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&&f.Zn(o,e)}function g(o,e,t){return(e=nt(e))in o?Object.defineProperty(o,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):o[e]=t,o}function it(){var o=this.constructor.getDerivedStateFromProps(this.props,this.state);o!=null&&this.setState(o)}function lt(o){this.setState(function(e){return this.constructor.getDerivedStateFromProps(o,e)??null}.bind(this))}function st(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 re(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 i=o.displayName||o.name,l=typeof o.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error(`Unsafe legacy lifecycles will not be called for components using new component APIs.
|
|
8
8
|
|
|
9
9
|
`+i+" uses "+l+" but also contains the following legacy lifecycles:"+(t!==null?`
|
|
@@ -16,4 +16,4 @@ https://fb.me/react-async-component-lifecycle-hooks`)}if(typeof o.getDerivedStat
|
|
|
16
16
|
x:`).concat(h.x,", y:").concat(h.y,", width:").concat(h.width,", height:").concat(h.height));s=Math.max(s,h.y+h.height),c=Math.max(c,h.x+h.width),l[d]=h,a.registerCell({cellMetadatum:h,index:d})}return{cellMetadata:l,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,i=e.scrollLeft,l=e.scrollTop,a=e.width,s=this.props.cellCount;if(r>=0&&r<s){var c=this._cellMetadata[r];i=Ee({align:t,cellOffset:c.x,cellSize:c.width,containerSize:a,currentOffset:i}),l=Ee({align:t,cellOffset:c.y,cellSize:c.height,containerSize:n,currentOffset:l})}return{scrollLeft:i,scrollTop:l}}},{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,i=e.width,l=e.x,a=e.y,s=this.props,c=s.cellGroupRenderer,d=s.cellRenderer;return this._lastRenderedCellIndices=this._sectionManager.getCellIndices({height:r,width:i,x:l,y:a}),c({cellCache:this._cellCache,cellRenderer:d,cellSizeAndPositionGetter:function(h){var p=h.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 gt(){try{var o=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(gt=function(){return!!o})()}function Ge(o){var e=o.cellCount,t=o.cellSize,r=o.computeMetadataCallback,n=o.computeMetadataCallbackProps,i=o.nextCellsCount,l=o.nextCellSize,a=o.nextScrollToIndex,s=o.scrollToIndex,c=o.updateScrollOffsetForScrollToIndex;e===i&&(typeof t!="number"&&typeof l!="number"||t===l)||(r(n),s>=0&&s===a&&c())}function J(o,e){if(o==null)return{};var t,r,n=f.ol(o,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(o);for(r=0;r<i.length;r++)t=i[r],e.indexOf(t)===-1&&{}.propertyIsEnumerable.call(o,t)&&(n[t]=o[t])}return n}g(Le,"defaultProps",{"aria-label":"grid",cellGroupRenderer:function(o){var e=o.cellCache,t=o.cellRenderer,r=o.cellSizeAndPositionGetter,n=o.indices,i=o.isScrolling;return n.map(function(l){var a=r({index:l}),s={index:l,isScrolling:i,key:l,style:{height:a.height,left:a.x,position:"absolute",top:a.y,width:a.width}};return i?(l in e||(e[l]=t(s)),e[l]):t(s)}).filter(function(l){return!!l})}}),Le.propTypes={},(function(){function o(e,t){var r,n,i,l;return E(this,o),n=this,l=[e,t],i=I(i=o),(r=A(n,gt()?Reflect.construct(i,l||[],I(n).constructor):i.apply(n,l)))._registerChild=r._registerChild.bind(r),r}return W(o,f.reactExports.PureComponent),L(o,[{key:"componentDidUpdate",value:function(e){var t=this.props,r=t.columnMaxWidth,n=t.columnMinWidth,i=t.columnCount,l=t.width;r===e.columnMaxWidth&&n===e.columnMinWidth&&i===e.columnCount&&l===e.width||this._registeredChild&&this._registeredChild.recomputeGridSize()}},{key:"render",value:function(){var e=this.props,t=e.children,r=e.columnMaxWidth,n=e.columnMinWidth,i=e.columnCount,l=e.width,a=n||1,s=r?Math.min(r,l):l,c=l/i;return c=Math.max(a,c),c=Math.min(s,c),c=Math.floor(c),t({adjustedWidth:Math.min(l,c*i),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,Ut=L(function o(e){var t=e.cellCount,r=e.cellSizeGetter,n=e.estimatedCellSize;E(this,o),g(this,"_cellSizeAndPositionData",{}),g(this,"_lastMeasuredIndex",-1),g(this,"_lastBatchedIndex",-1),g(this,"_cellCount",void 0),g(this,"_cellSizeGetter",void 0),g(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,i=o.targetIndex;if(r<=0)return 0;var l,a=this.getSizeAndPositionOfCell(i),s=a.offset,c=s-r+a.size;switch(t){case"start":l=s;break;case"end":l=c;break;case"center":l=s-(r-a.size)/2;break;default:l=Math.max(c,Math.min(s,n))}var d=this.getTotalSize();return Math.max(0,Math.min(d-r,l))}},{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),i=this.getSizeAndPositionOfCell(n);t=i.offset+i.size;for(var l=n;t<r&&l<this._cellCount-1;)l++,t+=this.getSizeAndPositionOfCell(l).size;return{start:n,stop:l}}},{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)}}]),Vt=["maxScrollSize"],Ae=L(function o(e){var t=e.maxScrollSize,r=t===void 0?typeof window<"u"&&window.chrome?16777100:15e5:t,n=J(e,Vt);E(this,o),g(this,"_cellSizeAndPositionManager",void 0),g(this,"_maxScrollSize",void 0),this._cellSizeAndPositionManager=new Ut(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(),i=this._getOffsetPercentage({containerSize:e,offset:t,totalSize:n});return Math.round(i*(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,i=o.targetIndex;n=this._safeOffsetToOffset({containerSize:r,offset:n});var l=this._cellSizeAndPositionManager.getUpdatedOffsetForIndex({align:t,containerSize:r,currentOffset:n,targetIndex:i});return this._offsetToSafeOffset({containerSize:r,offset:l})}},{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 i=this._getOffsetPercentage({containerSize:e,offset:t,totalSize:r});return Math.round(i*(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 i=this._getOffsetPercentage({containerSize:e,offset:t,totalSize:n});return Math.round(i*(r-e))}}]);function We(o){var e=o.cellSize,t=o.cellSizeAndPositionManager,r=o.previousCellsCount,n=o.previousCellSize,i=o.previousScrollToAlignment,l=o.previousScrollToIndex,a=o.previousSize,s=o.scrollOffset,c=o.scrollToAlignment,d=o.scrollToIndex,h=o.size,p=o.sizeJustIncreasedFromZero,u=o.updateScrollIndexCallback,S=t.getCellCount(),m=d>=0&&d<S;m&&(h!==a||p||!n||typeof e=="number"&&e!==n||c!==i||d!==l)?u(d):!m&&S>0&&(h<a||S<r)&&s>t.getTotalSize()-h&&u(S-1)}var $t=(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)},qt=D.cancelAnimationFrame||D.webkitCancelAnimationFrame||D.mozCancelAnimationFrame||D.oCancelAnimationFrame||D.msCancelAnimationFrame||function(o){D.clearTimeout(o)},He=$t,Kt=qt,K=function(o){return Kt(o.id)},xe=function(o,e){var t;Promise.resolve().then(function(){t=Date.now()});var r=function(){Date.now()-t>=e?o.call():n.id=He(r)},n={id:He(r)};return n};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 H(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){g(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 mt(){try{var o=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(mt=function(){return!!o})()}var De="requested",N=(function(){function o(e){var t,r,n,i;E(this,o),r=this,i=[e],n=I(n=o),g(t=A(r,mt()?Reflect.construct(n,i||[],I(r).constructor):n.apply(r,i)),"_onGridRenderedMemoizer",q()),g(t,"_onScrollMemoizer",q(!1)),g(t,"_deferredInvalidateColumnIndex",null),g(t,"_deferredInvalidateRowIndex",null),g(t,"_recomputeScrollLeftFlag",!1),g(t,"_recomputeScrollTopFlag",!1),g(t,"_horizontalScrollBarSize",0),g(t,"_verticalScrollBarSize",0),g(t,"_scrollbarPresenceChanged",!1),g(t,"_scrollingContainer",void 0),g(t,"_childrenToDisplay",void 0),g(t,"_columnStartIndex",void 0),g(t,"_columnStopIndex",void 0),g(t,"_rowStartIndex",void 0),g(t,"_rowStopIndex",void 0),g(t,"_renderedColumnStartIndex",0),g(t,"_renderedColumnStopIndex",0),g(t,"_renderedRowStartIndex",0),g(t,"_renderedRowStopIndex",0),g(t,"_initialScrollTop",void 0),g(t,"_initialScrollLeft",void 0),g(t,"_disablePointerEventsTimeoutId",void 0),g(t,"_styleCache",{}),g(t,"_cellCache",{}),g(t,"_debounceScrollEndedCallback",function(){t._disablePointerEventsTimeoutId=null,t.setState({isScrolling:!1,needToResetStyleCache:!1})}),g(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}})}),g(t,"_setScrollingContainerRef",function(s){t._scrollingContainer=s,typeof t.props.elementRef=="function"?t.props.elementRef(s):$(t.props.elementRef)==="object"&&(t.props.elementRef.current=s)}),g(t,"_onScroll",function(s){s.target===t._scrollingContainer&&t.handleScrollEvent(s.target)});var l=new Ae({cellCount:e.columnCount,cellSizeGetter:function(s){return o._wrapSizeGetter(e.columnWidth)(s)},estimatedCellSize:o._getEstimatedColumnSize(e)}),a=new Ae({cellCount:e.rowCount,cellSizeGetter:function(s){return o._wrapSizeGetter(e.rowHeight)(s)},estimatedCellSize:o._getEstimatedRowSize(e)});return t.state={instanceProps:{columnSizeAndPositionManager:l,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 W(o,f.reactExports.PureComponent),L(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,i=n===void 0?this.props.scrollToColumn:n,l=e.rowIndex,a=l===void 0?this.props.scrollToRow:l,s=H(H({},this.props),{},{scrollToAlignment:r,scrollToColumn:i,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,i=n===void 0?0:n;if(!(i<0)){this._debounceScrollEnded();var l=this.props,a=l.autoHeight,s=l.autoWidth,c=l.height,d=l.width,h=this.state.instanceProps,p=h.scrollbarSize,u=h.rowSizeAndPositionManager.getTotalSize(),S=h.columnSizeAndPositionManager.getTotalSize(),m=Math.min(Math.max(0,S-d+p),r),v=Math.min(Math.max(0,u-c+p),i);if(this.state.scrollLeft!==m||this.state.scrollTop!==v){var y={isScrolling:!0,scrollDirectionHorizontal:m!==this.state.scrollLeft?m>this.state.scrollLeft?1:-1:this.state.scrollDirectionHorizontal,scrollDirectionVertical:v!==this.state.scrollTop?v>this.state.scrollTop?1:-1:this.state.scrollDirectionVertical,scrollPositionChangeReason:"observed"};a||(y.scrollTop=v),s||(y.scrollLeft=m),y.needToResetStyleCache=!1,this.setState(y)}this._invokeOnScrollMemoizer({scrollLeft:m,scrollTop:v,totalColumnsWidth:S,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,i=n===void 0?0:n,l=this.props,a=l.scrollToColumn,s=l.scrollToRow,c=this.state.instanceProps;c.columnSizeAndPositionManager.resetCell(r),c.rowSizeAndPositionManager.resetCell(i),this._recomputeScrollLeftFlag=a>=0&&(this.state.scrollDirectionHorizontal===1?r<=a:r>=a),this._recomputeScrollTopFlag=s>=0&&(this.state.scrollDirectionVertical===1?i<=s:i>=s),this._styleCache={},this._cellCache={},this.forceUpdate()}},{key:"scrollToCell",value:function(e){var t=e.columnIndex,r=e.rowIndex,n=this.props.columnCount,i=this.props;n>1&&t!==void 0&&this._updateScrollLeftForScrollToColumn(H(H({},i),{},{scrollToColumn:t})),r!==void 0&&this._updateScrollTopForScrollToRow(H(H({},i),{},{scrollToRow:r}))}},{key:"componentDidMount",value:function(){var e=this.props,t=e.getScrollbarSize,r=e.height,n=e.scrollLeft,i=e.scrollToColumn,l=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=H(H({},p),{},{needToResetStyleCache:!1});return u.instanceProps.scrollbarSize=t(),u.instanceProps.scrollbarSizeMeasured=!0,u}),typeof n=="number"&&n>=0||typeof l=="number"&&l>=0){var d=o._getScrollToPositionStateUpdate({prevState:this.state,scrollLeft:n,scrollTop:l});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 h=r>0&&s>0;i>=0&&h&&this._updateScrollLeftForScrollToColumn(),a>=0&&h&&this._updateScrollTopForScrollToRow(),this._invokeOnGridRenderedHelper(),this._invokeOnScrollMemoizer({scrollLeft:n||0,scrollTop:l||0,totalColumnsWidth:c.columnSizeAndPositionManager.getTotalSize(),totalRowsHeight:c.rowSizeAndPositionManager.getTotalSize()}),this._maybeCallOnScrollbarPresenceChange()}},{key:"componentDidUpdate",value:function(e,t){var r=this,n=this.props,i=n.autoHeight,l=n.autoWidth,a=n.columnCount,s=n.height,c=n.rowCount,d=n.scrollToAlignment,h=n.scrollToColumn,p=n.scrollToRow,u=n.width,S=this.state,m=S.scrollLeft,v=S.scrollPositionChangeReason,y=S.scrollTop,x=S.instanceProps;this._handleInvalidatedGridSize();var _=a>0&&e.columnCount===0||c>0&&e.rowCount===0;v===De&&(!l&&m>=0&&(m!==this._scrollingContainer.scrollLeft||_)&&(this._scrollingContainer.scrollLeft=m),!i&&y>=0&&(y!==this._scrollingContainer.scrollTop||_)&&(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)):We({cellSizeAndPositionManager:x.columnSizeAndPositionManager,previousCellsCount:e.columnCount,previousCellSize:e.columnWidth,previousScrollToAlignment:e.scrollToAlignment,previousScrollToIndex:e.scrollToColumn,previousSize:e.width,scrollOffset:m,scrollToAlignment:d,scrollToIndex:h,size:u,sizeJustIncreasedFromZero:w,updateScrollIndexCallback:function(){return r._updateScrollLeftForScrollToColumn(r.props)}}),this._recomputeScrollTopFlag?(this._recomputeScrollTopFlag=!1,this._updateScrollTopForScrollToRow(this.props)):We({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(),m!==t.scrollLeft||y!==t.scrollTop){var C=x.rowSizeAndPositionManager.getTotalSize(),R=x.columnSizeAndPositionManager.getTotalSize();this._invokeOnScrollMemoizer({scrollLeft:m,scrollTop:y,totalColumnsWidth:R,totalRowsHeight:C})}this._maybeCallOnScrollbarPresenceChange()}},{key:"componentWillUnmount",value:function(){this._disablePointerEventsTimeoutId&&K(this._disablePointerEventsTimeoutId)}},{key:"render",value:function(){var e=this.props,t=e.autoContainerWidth,r=e.autoHeight,n=e.autoWidth,i=e.className,l=e.containerProps,a=e.containerRole,s=e.containerStyle,c=e.height,d=e.id,h=e.noContentRenderer,p=e.role,u=e.style,S=e.tabIndex,m=e.width,v=this.state,y=v.instanceProps,x=v.needToResetStyleCache,_=this._isScrolling(),w={boxSizing:"border-box",direction:"ltr",height:r?"auto":c,position:"relative",width:n?"auto":m,WebkitOverflowScrolling:"touch",willChange:"transform"};x&&(this._styleCache={}),this.state.isScrolling||this._resetStyleCache(),this._calculateChildrenToRender(this.props,this.state);var C=y.columnSizeAndPositionManager.getTotalSize(),R=y.rowSizeAndPositionManager.getTotalSize(),b=R>c?y.scrollbarSize:0,z=C>m?y.scrollbarSize:0;z===this._horizontalScrollBarSize&&b===this._verticalScrollBarSize||(this._horizontalScrollBarSize=z,this._verticalScrollBarSize=b,this._scrollbarPresenceChanged=!0),w.overflowX=C+b<=m?"hidden":"auto",w.overflowY=R+z<=c?"hidden":"auto";var T=this._childrenToDisplay,k=T.length===0&&c>0&&m>0;return f.reactExports.createElement("div",f.Yn({ref:this._setScrollingContainerRef},l,{"aria-label":this.props["aria-label"],"aria-readonly":this.props["aria-readonly"],className:f.Wt("ReactVirtualized__Grid",i),id:d,onScroll:this._onScroll,role:p,style:H(H({},w),u),tabIndex:S}),T.length>0&&f.reactExports.createElement("div",{className:"ReactVirtualized__Grid__innerScrollContainer",role:a,style:H({width:t?"auto":C,height:R,maxWidth:C,maxHeight:R,overflow:"hidden",pointerEvents:_?"none":"",position:"relative"},s)},T),k&&h())}},{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,i=e.columnCount,l=e.deferredMeasurementCache,a=e.height,s=e.overscanColumnCount,c=e.overscanIndicesGetter,d=e.overscanRowCount,h=e.rowCount,p=e.width,u=e.isScrollingOptOut,S=t.scrollDirectionHorizontal,m=t.scrollDirectionVertical,v=t.instanceProps,y=this._initialScrollTop>0?this._initialScrollTop:t.scrollTop,x=this._initialScrollLeft>0?this._initialScrollLeft:t.scrollLeft,_=this._isScrolling(e,t);if(this._childrenToDisplay=[],a>0&&p>0){var w=v.columnSizeAndPositionManager.getVisibleCellRange({containerSize:p,offset:x}),C=v.rowSizeAndPositionManager.getVisibleCellRange({containerSize:a,offset:y}),R=v.columnSizeAndPositionManager.getOffsetAdjustment({containerSize:p,offset:x}),b=v.rowSizeAndPositionManager.getOffsetAdjustment({containerSize:a,offset:y});this._renderedColumnStartIndex=w.start,this._renderedColumnStopIndex=w.stop,this._renderedRowStartIndex=C.start,this._renderedRowStopIndex=C.stop;var z=c({direction:"horizontal",cellCount:i,overscanCellsCount:s,scrollDirection:S,startIndex:typeof w.start=="number"?w.start:0,stopIndex:typeof w.stop=="number"?w.stop:-1}),T=c({direction:"vertical",cellCount:h,overscanCellsCount:d,scrollDirection:m,startIndex:typeof C.start=="number"?C.start:0,stopIndex:typeof C.stop=="number"?C.stop:-1}),k=z.overscanStartIndex,O=z.overscanStopIndex,P=T.overscanStartIndex,G=T.overscanStopIndex;if(l){if(!l.hasFixedHeight()){for(var j=P;j<=G;j++)if(!l.has(j,0)){k=0,O=i-1;break}}if(!l.hasFixedWidth()){for(var ae=k;ae<=O;ae++)if(!l.has(0,ae)){P=0,G=h-1;break}}}this._childrenToDisplay=n({cellCache:this._cellCache,cellRenderer:r,columnSizeAndPositionManager:v.columnSizeAndPositionManager,columnStartIndex:k,columnStopIndex:O,deferredMeasurementCache:l,horizontalOffsetAdjustment:R,isScrolling:_,isScrollingOptOut:u,parent:this,rowSizeAndPositionManager:v.rowSizeAndPositionManager,rowStartIndex:P,rowStopIndex:G,scrollLeft:x,scrollTop:y,styleCache:this._styleCache,verticalOffsetAdjustment:b,visibleColumnIndices:w,visibleRowIndices:C}),this._columnStartIndex=k,this._columnStopIndex=O,this._rowStartIndex=P,this._rowStopIndex=G}}},{key:"_debounceScrollEnded",value:function(){var e=this.props.scrollingResetTimeInterval;this._disablePointerEventsTimeoutId&&K(this._disablePointerEventsTimeoutId),this._disablePointerEventsTimeoutId=xe(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,i=e.totalColumnsWidth,l=e.totalRowsHeight;this._onScrollMemoizer({callback:function(a){var s=a.scrollLeft,c=a.scrollTop,d=t.props,h=d.height;(0,d.onScroll)({clientHeight:h,clientWidth:d.width,scrollHeight:l,scrollLeft:s,scrollTop:c,scrollWidth:i})},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 i=this._columnStartIndex;i<=this._columnStopIndex;i++){var l="".concat(n,"-").concat(i);this._styleCache[l]=e[l],r&&(this._cellCache[l]=t[l])}}},{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,i,l=t.instanceProps;return r.needToResetStyleCache=!1,e.columnWidth===l.prevColumnWidth&&e.rowHeight===l.prevRowHeight||(r.needToResetStyleCache=!0),l.columnSizeAndPositionManager.configure({cellCount:e.columnCount,estimatedCellSize:o._getEstimatedColumnSize(e),cellSizeGetter:o._wrapSizeGetter(e.columnWidth)}),l.rowSizeAndPositionManager.configure({cellCount:e.rowCount,estimatedCellSize:o._getEstimatedRowSize(e),cellSizeGetter:o._wrapSizeGetter(e.rowHeight)}),l.prevColumnCount!==0&&l.prevRowCount!==0||(l.prevColumnCount=0,l.prevRowCount=0),e.autoHeight&&e.isScrolling===!1&&l.prevIsScrolling===!0&&Object.assign(r,{isScrolling:!1}),Ge({cellCount:l.prevColumnCount,cellSize:typeof l.prevColumnWidth=="number"?l.prevColumnWidth:null,computeMetadataCallback:function(){return l.columnSizeAndPositionManager.resetCell(0)},computeMetadataCallbackProps:e,nextCellsCount:e.columnCount,nextCellSize:typeof e.columnWidth=="number"?e.columnWidth:null,nextScrollToIndex:e.scrollToColumn,scrollToIndex:l.prevScrollToColumn,updateScrollOffsetForScrollToIndex:function(){n=o._getScrollLeftForScrollToColumnStateUpdate(e,t)}}),Ge({cellCount:l.prevRowCount,cellSize:typeof l.prevRowHeight=="number"?l.prevRowHeight:null,computeMetadataCallback:function(){return l.rowSizeAndPositionManager.resetCell(0)},computeMetadataCallbackProps:e,nextCellsCount:e.rowCount,nextCellSize:typeof e.rowHeight=="number"?e.rowHeight:null,nextScrollToIndex:e.scrollToRow,scrollToIndex:l.prevScrollToRow,updateScrollOffsetForScrollToIndex:function(){i=o._getScrollTopForScrollToRowStateUpdate(e,t)}}),l.prevColumnCount=e.columnCount,l.prevColumnWidth=e.columnWidth,l.prevIsScrolling=e.isScrolling===!0,l.prevRowCount=e.rowCount,l.prevRowHeight=e.rowHeight,l.prevScrollToColumn=e.scrollToColumn,l.prevScrollToRow=e.scrollToRow,l.scrollbarSize=e.getScrollbarSize(),l.scrollbarSize===void 0?(l.scrollbarSizeMeasured=!1,l.scrollbarSize=0):l.scrollbarSizeMeasured=!0,r.instanceProps=l,H(H(H({},r),n),i)}},{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,i={scrollPositionChangeReason:De};return typeof r=="number"&&r>=0&&(i.scrollDirectionHorizontal=r>t.scrollLeft?1:-1,i.scrollLeft=r),typeof n=="number"&&n>=0&&(i.scrollDirectionVertical=n>t.scrollTop?1:-1,i.scrollTop=n),typeof r=="number"&&r>=0&&r!==t.scrollLeft||typeof n=="number"&&n>=0&&n!==t.scrollTop?i:{}}},{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,i=e.scrollToAlignment,l=e.scrollToColumn,a=e.width,s=t.scrollLeft,c=t.instanceProps;if(r>0){var d=r-1,h=l<0?d:Math.min(d,l),p=c.rowSizeAndPositionManager.getTotalSize(),u=c.scrollbarSizeMeasured&&p>n?c.scrollbarSize:0;return c.columnSizeAndPositionManager.getUpdatedOffsetForIndex({align:i,containerSize:a-u,currentOffset:s,targetIndex:h})}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,i=e.scrollToAlignment,l=e.scrollToRow,a=e.width,s=t.scrollTop,c=t.instanceProps;if(n>0){var d=n-1,h=l<0?d:Math.min(d,l),p=c.columnSizeAndPositionManager.getTotalSize(),u=c.scrollbarSizeMeasured&&p>a?c.scrollbarSize:0;return c.rowSizeAndPositionManager.getUpdatedOffsetForIndex({align:i,containerSize:r-u,currentOffset:s,targetIndex:h})}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 vt(o){var e=o.cellCount,t=o.overscanCellsCount,r=o.scrollDirection,n=o.startIndex,i=o.stopIndex;return t=Math.max(1,t),r===1?{overscanStartIndex:Math.max(0,n-1),overscanStopIndex:Math.min(e-1,i+t)}:{overscanStartIndex:Math.max(0,n-t),overscanStopIndex:Math.min(e-1,i+1)}}function fe(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 _t(o,e){if(o){if(typeof o=="string")return fe(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)?fe(o,e):void 0}}function St(){try{var o=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(St=function(){return!!o})()}g(N,"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,i=o.columnStopIndex,l=o.deferredMeasurementCache,a=o.horizontalOffsetAdjustment,s=o.isScrolling,c=o.isScrollingOptOut,d=o.parent,h=o.rowSizeAndPositionManager,p=o.rowStartIndex,u=o.rowStopIndex,S=o.styleCache,m=o.verticalOffsetAdjustment,v=o.visibleColumnIndices,y=o.visibleRowIndices,x=[],_=r.areOffsetsAdjusted()||h.areOffsetsAdjusted(),w=!s&&!_,C=p;C<=u;C++)for(var R=h.getSizeAndPositionOfCell(C),b=n;b<=i;b++){var z=r.getSizeAndPositionOfCell(b),T=b>=v.start&&b<=v.stop&&C>=y.start&&C<=y.stop,k="".concat(C,"-").concat(b),O=void 0;w&&S[k]?O=S[k]:l&&!l.has(C,b)?O={height:"auto",left:0,position:"absolute",top:0,width:"auto"}:(O={height:R.size,left:z.offset+a,position:"absolute",top:R.offset+m,width:z.size},S[k]=O);var P={columnIndex:b,isScrolling:s,isVisible:T,key:k,parent:d,rowIndex:C,style:O},G=void 0;!c&&!s||a||m?G=t(P):(e[k]||(e[k]=t(P)),G=e[k]),G!=null&&G!==!1&&(G.props.role||(G=f.mt.cloneElement(G,{role:"gridcell"})),x.push(G))}return x},containerRole:"row",containerStyle:{},estimatedColumnSize:100,estimatedRowSize:30,getScrollbarSize:pe,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,i=o.stopIndex;return r===1?{overscanStartIndex:Math.max(0,n),overscanStopIndex:Math.min(e-1,i+t)}:{overscanStartIndex:Math.max(0,n-t),overscanStopIndex:Math.min(e-1,i)}},overscanRowCount:10,role:"grid",scrollingResetTimeInterval:150,scrollToAlignment:"auto",scrollToColumn:-1,scrollToRow:-1,style:{},tabIndex:0,isScrollingOptOut:!1}),re(N);var Fe=(function(){function o(e,t){var r,n,i,l;return E(this,o),n=this,l=[e,t],i=I(i=o),(r=A(n,St()?Reflect.construct(i,l||[],I(n).constructor):i.apply(n,l)))._loadMoreRowsMemoizer=q(),r._onRowsRendered=r._onRowsRendered.bind(r),r._registerChild=r._registerChild.bind(r),r}return W(o,f.reactExports.PureComponent),L(o,[{key:"resetLoadMoreRowsCache",value:function(e){this._loadMoreRowsMemoizer=q(),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 i=r(n);i&&i.then(function(){var l;(l={lastRenderedStartIndex:t._lastRenderedStartIndex,lastRenderedStopIndex:t._lastRenderedStopIndex,startIndex:n.startIndex,stopIndex:n.stopIndex}).startIndex>l.lastRenderedStopIndex||l.stopIndex<l.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,i=this.props,l=i.isRowLoaded,a=i.minimumBatchSize,s=i.rowCount,c=i.threshold,d=(function(p){for(var u=p.isRowLoaded,S=p.minimumBatchSize,m=p.rowCount,v=p.stopIndex,y=[],x=null,_=null,w=p.startIndex;w<=v;w++)u({index:w})?_!==null&&(y.push({startIndex:x,stopIndex:_}),x=_=null):(_=w,x===null&&(x=w));if(_!==null){for(var C=Math.min(Math.max(_,x+S-1),m-1),R=_+1;R<=C&&!u({index:R});R++)_=R;y.push({startIndex:x,stopIndex:_})}if(y.length)for(var b=y[0];b.stopIndex-b.startIndex+1<S&&b.startIndex>0;){var z=b.startIndex-1;if(u({index:z}))break;b.startIndex=z}return y})({isRowLoaded:l,minimumBatchSize:a,rowCount:s,startIndex:Math.max(0,e-c),stopIndex:Math.min(s-1,t+c)}),h=(r=[]).concat.apply(r,(function(p){return(function(u){if(Array.isArray(u))return fe(u)})(p)||(function(u){if(typeof Symbol<"u"&&u[Symbol.iterator]!=null||u["@@iterator"]!=null)return Array.from(u)})(p)||_t(p)||(function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
17
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:h}})}},{key:"_registerChild",value:function(e){this._registeredChild=e}}])})();function yt(){try{var o=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(yt=function(){return!!o})()}g(Fe,"defaultProps",{minimumBatchSize:10,rowCount:0,threshold:15}),Fe.propTypes={};var Yt=(function(){function o(){var e,t,r,n;E(this,o);for(var i=arguments.length,l=new Array(i),a=0;a<i;a++)l[a]=arguments[a];return t=this,r=o,n=[].concat(l),r=I(r),g(e=A(t,yt()?Reflect.construct(r,n||[],I(t).constructor):r.apply(t,n)),"Grid",void 0),g(e,"_cellRenderer",function(s){var c=s.parent,d=s.rowIndex,h=s.style,p=s.isScrolling,u=s.isVisible,S=s.key,m=e.props.rowRenderer,v=Object.getOwnPropertyDescriptor(h,"width");return v&&v.writable&&(h.width="100%"),m({index:d,style:h,isScrolling:p,isVisible:u,key:S,parent:c})}),g(e,"_setRef",function(s){e.Grid=s}),g(e,"_onScroll",function(s){var c=s.clientHeight,d=s.scrollHeight,h=s.scrollTop;(0,e.props.onScroll)({clientHeight:c,scrollHeight:d,scrollTop:h})}),g(e,"_onSectionRendered",function(s){var c=s.rowOverscanStartIndex,d=s.rowOverscanStopIndex,h=s.rowStartIndex,p=s.rowStopIndex;(0,e.props.onRowsRendered)({overscanStartIndex:c,overscanStopIndex:d,startIndex:h,stopIndex:p})}),e}return W(o,f.reactExports.PureComponent),L(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,i=n===void 0?0:n;this.Grid&&this.Grid.recomputeGridSize({rowIndex:i,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,i=e.width,l=f.Wt("ReactVirtualized__List",t);return f.reactExports.createElement(N,f.Yn({},this.props,{autoContainerWidth:!0,cellRenderer:this._cellRenderer,className:l,columnWidth:i,columnCount:1,noContentRenderer:r,onScroll:this._onScroll,onSectionRendered:this._onSectionRendered,ref:this._setRef,scrollToRow:n}))}}])})();g(Yt,"defaultProps",{autoHeight:!1,estimatedRowSize:30,onScroll:function(){},noRowsRenderer:function(){return null},onRowsRendered:function(){},overscanIndicesGetter:vt,overscanRowCount:10,scrollToAlignment:"auto",scrollToIndex:-1,style:{}});const ie=function(o,e,t,r,n){return typeof t=="function"?(function(i,l,a,s,c){for(var d=a+1;l<=a;){var h=l+a>>>1;c(i[h],s)>=0?(d=h,a=h-1):l=h+1}return d})(o,r===void 0?0:0|r,n===void 0?o.length-1:0|n,e,t):(function(i,l,a,s){for(var c=a+1;l<=a;){var d=l+a>>>1;i[d]>=s?(c=d,a=d-1):l=d+1}return c})(o,t===void 0?0:0|t,r===void 0?o.length-1:0|r,e)};function we(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 X=we.prototype;function ce(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 xt(o,e){var t=te(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 Ne(o,e){var t=o.intervals([]);t.push(e),xt(o,t)}function Be(o,e){var t=o.intervals([]),r=t.indexOf(e);return r<0?0:(t.splice(r,1),xt(o,t),1)}function Ue(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 Ve(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 $e(o,e){for(var t=0;t<o.length;++t){var r=e(o[t]);if(r)return r}}function Xt(o,e){return o-e}function ge(o,e){return o[0]-e[0]||o[1]-e[1]}function me(o,e){return o[1]-e[1]||o[0]-e[0]}function te(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(Xt);var r=e[e.length>>1],n=[],i=[],l=[];for(t=0;t<o.length;++t){var a=o[t];a[1]<r?n.push(a):r<a[0]?i.push(a):l.push(a)}var s=l,c=l.slice();return s.sort(ge),c.sort(me),new we(r,te(n),te(i),s,c)}function wt(o){this.root=o}X.intervals=function(o){return o.push.apply(o,this.leftPoints),this.left&&this.left.intervals(o),this.right&&this.right.intervals(o),o},X.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)?Ne(this,o):this.left.insert(o):this.left=te([o]);else if(o[0]>this.mid)this.right?4*(this.right.count+1)>3*(e+1)?Ne(this,o):this.right.insert(o):this.right=te([o]);else{var t=ie(this.leftPoints,o,ge),r=ie(this.rightPoints,o,me);this.leftPoints.splice(t,0,o),this.rightPoints.splice(r,0,o)}},X.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)?Be(this,o):(i=this.left.remove(o))===2?(this.left=null,this.count-=1,1):(i===1&&(this.count-=1),i):0;if(o[0]>this.mid)return this.right?4*(this.left?this.left.count:0)>3*(e-1)?Be(this,o):(i=this.right.remove(o))===2?(this.right=null,this.count-=1,1):(i===1&&(this.count-=1),i):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,i=this.right;t.count-=r.count,t.right=r.left,r.left=n,r.right=i}ce(this,r),this.count=(this.left?this.left.count:0)+(this.right?this.right.count:0)+this.leftPoints.length}else this.left?ce(this,this.left):ce(this,this.right);return 1}for(n=ie(this.leftPoints,o,ge);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),i=ie(this.rightPoints,o,me);i<this.rightPoints.length&&this.rightPoints[i][1]===o[1];++i)if(this.rightPoints[i]===o)return this.rightPoints.splice(i,1),1}return 0},X.queryPoint=function(o,e){return o<this.mid?this.left&&(t=this.left.queryPoint(o,e))?t:Ue(this.leftPoints,o,e):o>this.mid?this.right&&(t=this.right.queryPoint(o,e))?t:Ve(this.rightPoints,o,e):$e(this.leftPoints,e);var t},X.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?Ue(this.leftPoints,e,t):o>this.mid?Ve(this.rightPoints,o,t):$e(this.leftPoints,t)};var V=wt.prototype;V.insert=function(o){this.root?this.root.insert(o):this.root=new we(o[0],null,null,[o],[o])},V.remove=function(o){if(this.root){var e=this.root.remove(o);return e===2&&(this.root=null),e!==0}return!1},V.queryPoint=function(o,e){if(this.root)return this.root.queryPoint(o,e)},V.queryInterval=function(o,e,t){if(o<=e&&this.root)return this.root.queryInterval(o,e,t)},Object.defineProperty(V,"count",{get:function(){return this.root?this.root.count:0}}),Object.defineProperty(V,"intervals",{get:function(){return this.root?this.root.intervals([]):[]}});var de=L(function o(){E(this,o),g(this,"_columnSizeMap",{}),g(this,"_intervalTree",new wt(null)),g(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 i=(function(s,c){return(function(d){if(Array.isArray(d))return d})(s)||(function(d,h){var p=d==null?null:typeof Symbol<"u"&&d[Symbol.iterator]||d["@@iterator"];if(p!=null){var u,S,m,v,y=[],x=!0,_=!1;try{if(m=(p=p.call(d)).next,h!==0)for(;!(x=(u=m.call(p)).done)&&(y.push(u.value),y.length!==h);x=!0);}catch(w){_=!0,S=w}finally{try{if(!x&&p.return!=null&&(v=p.return(),Object(v)!==v))return}finally{if(_)throw S}}return y}})(s,c)||_t(s,c)||(function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
18
18
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)})()})(n,3),l=i[0];i[1];var a=i[2];return t(a,r._leftMap[a],l)})}},{key:"setPosition",value:function(o,e,t,r){this._intervalTree.insert([t,t+r,o]),this._leftMap[o]=e;var n=this._columnSizeMap,i=n[e];n[e]=i===void 0?t+r:Math.max(i,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 qe(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 Jt(o){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?qe(Object(t),!0).forEach(function(r){g(o,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(t)):qe(Object(t)).forEach(function(r){Object.defineProperty(o,r,Object.getOwnPropertyDescriptor(t,r))})}return o}function Ct(){try{var o=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Ct=function(){return!!o})()}var Ke=(function(){function o(){var e,t,r,n;E(this,o);for(var i=arguments.length,l=new Array(i),a=0;a<i;a++)l[a]=arguments[a];return t=this,r=o,n=[].concat(l),r=I(r),g(e=A(t,Ct()?Reflect.construct(r,n||[],I(t).constructor):r.apply(t,n)),"state",{isScrolling:!1,scrollTop:0}),g(e,"_debounceResetIsScrollingId",void 0),g(e,"_invalidateOnUpdateStartIndex",null),g(e,"_invalidateOnUpdateStopIndex",null),g(e,"_positionCache",new de),g(e,"_startIndex",null),g(e,"_startIndexMemoized",null),g(e,"_stopIndex",null),g(e,"_stopIndexMemoized",null),g(e,"_debounceResetIsScrollingCallback",function(){e.setState({isScrolling:!1})}),g(e,"_setScrollingContainerRef",function(s){e._scrollingContainer=s}),g(e,"_onScroll",function(s){var c=e.props.height,d=s.currentTarget.scrollTop,h=Math.min(Math.max(0,e._getEstimatedTotalHeight()-c),d);d===h&&(e._debounceResetIsScrolling(),e.state.scrollTop!==h&&e.setState({isScrolling:!0,scrollTop:h}))}),e}return W(o,f.reactExports.PureComponent),L(o,[{key:"clearCellPositions",value:function(){this._positionCache=new de,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 de,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&&K(this._debounceResetIsScrollingId)}},{key:"render",value:function(){var e,t=this,r=this.props,n=r.autoHeight,i=r.cellCount,l=r.cellMeasurerCache,a=r.cellRenderer,s=r.className,c=r.height,d=r.id,h=r.keyMapper,p=r.overscanByPixels,u=r.role,S=r.style,m=r.tabIndex,v=r.width,y=r.rowDirection,x=this.state,_=x.isScrolling,w=x.scrollTop,C=[],R=this._getEstimatedTotalHeight(),b=this._positionCache.shortestColumnSize,z=this._positionCache.count,T=0;if(this._positionCache.range(Math.max(0,w-p),c+2*p,function(P,G,j){e===void 0?(T=P,e=P):(T=Math.min(T,P),e=Math.max(e,P)),C.push(a({index:P,isScrolling:_,key:h(P),parent:t,style:g(g(g(g({height:l.getHeight(P)},y==="ltr"?"left":"right",G),"position","absolute"),"top",j),"width",l.getWidth(P))}))}),b<w+c+p&&z<i)for(var k=Math.min(i-z,Math.ceil((w+c+p-b)/l.defaultHeight*v/l.defaultWidth)),O=z;O<z+k;O++)e=O,C.push(a({index:O,isScrolling:_,key:h(O),parent:this,style:{width:l.getWidth(O)}}));return this._startIndex=T,this._stopIndex=e,f.reactExports.createElement("div",{ref:this._setScrollingContainerRef,"aria-label":this.props["aria-label"],className:f.Wt("ReactVirtualized__Masonry",s),id:d,onScroll:this._onScroll,role:u,style:Jt({boxSizing:"border-box",direction:"ltr",height:n?"auto":c,overflowX:"hidden",overflowY:R<c?"hidden":"auto",position:"relative",width:v,WebkitOverflowScrolling:"touch",willChange:"transform"},S),tabIndex:m},f.reactExports.createElement("div",{className:"ReactVirtualized__Masonry__innerScrollContainer",style:{width:"100%",height:R,maxWidth:"100%",maxHeight:R,overflow:"hidden",pointerEvents:_?"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&&K(this._debounceResetIsScrollingId),this._debounceResetIsScrollingId=xe(this._debounceResetIsScrollingCallback,e)}},{key:"_getEstimatedTotalHeight",value:function(){var e=this.props,t=e.cellCount,r=e.cellMeasurerCache,n=e.width,i=Math.max(1,Math.floor(n/r.defaultWidth));return this._positionCache.estimateTotalHeight(t,i,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,i=r.cellPositioner,l=e;l<=t;l++){var a=i(l),s=a.left,c=a.top;this._positionCache.setPosition(l,s,c,n.getHeight(l))}}}],[{key:"getDerivedStateFromProps",value:function(e,t){return e.scrollTop!==void 0&&t.scrollTop!==e.scrollTop?{isScrolling:!0,scrollTop:e.scrollTop}:null}}])})();function Ye(){}g(Ke,"defaultProps",{autoHeight:!1,keyMapper:function(o){return o},onCellsRendered:Ye,onScroll:Ye,overscanByPixels:20,role:"grid",scrollingResetTimeInterval:150,style:{},tabIndex:0,rowDirection:"ltr"}),re(Ke);var ue=L(function o(){var e=this,t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};E(this,o),g(this,"_cellMeasurerCache",void 0),g(this,"_columnIndexOffset",void 0),g(this,"_rowIndexOffset",void 0),g(this,"columnWidth",function(s){var c=s.index;e._cellMeasurerCache.columnWidth({index:c+e._columnIndexOffset})}),g(this,"rowHeight",function(s){var c=s.index;e._cellMeasurerCache.rowHeight({index:c+e._rowIndexOffset})});var r=t.cellMeasurerCache,n=t.columnIndexOffset,i=n===void 0?0:n,l=t.rowIndexOffset,a=l===void 0?0:l;this._cellMeasurerCache=r,this._columnIndexOffset=i,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)}}]),Zt=["rowIndex"],Qt=["columnIndex","rowIndex"],eo=["columnIndex"],to=["onScroll","onSectionRendered","onScrollbarPresenceChange","scrollLeft","scrollToColumn","scrollTop","scrollToRow"];function Xe(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?Xe(Object(t),!0).forEach(function(r){g(o,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(t)):Xe(Object(t)).forEach(function(r){Object.defineProperty(o,r,Object.getOwnPropertyDescriptor(t,r))})}return o}function Rt(){try{var o=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Rt=function(){return!!o})()}var he=(function(){function o(e,t){var r,n,i,l;E(this,o),n=this,l=[e,t],i=I(i=o),g(r=A(n,Rt()?Reflect.construct(i,l||[],I(n).constructor):i.apply(n,l)),"state",{scrollLeft:0,scrollTop:0,scrollbarSize:0,showHorizontalScrollbar:!1,showVerticalScrollbar:!1}),g(r,"_deferredInvalidateColumnIndex",null),g(r,"_deferredInvalidateRowIndex",null),g(r,"_bottomLeftGridRef",function(d){r._bottomLeftGrid=d}),g(r,"_bottomRightGridRef",function(d){r._bottomRightGrid=d}),g(r,"_cellRendererBottomLeftGrid",function(d){var h=d.rowIndex,p=J(d,Zt),u=r.props,S=u.cellRenderer,m=u.fixedRowCount;return h===u.rowCount-m?f.reactExports.createElement("div",{key:p.key,style:M(M({},p.style),{},{height:20})}):S(M(M({},p),{},{parent:r,rowIndex:h+m}))}),g(r,"_cellRendererBottomRightGrid",function(d){var h=d.columnIndex,p=d.rowIndex,u=J(d,Qt),S=r.props,m=S.cellRenderer,v=S.fixedColumnCount,y=S.fixedRowCount;return m(M(M({},u),{},{columnIndex:h+v,parent:r,rowIndex:p+y}))}),g(r,"_cellRendererTopRightGrid",function(d){var h=d.columnIndex,p=J(d,eo),u=r.props,S=u.cellRenderer,m=u.columnCount,v=u.fixedColumnCount;return h===m-v?f.reactExports.createElement("div",{key:p.key,style:M(M({},p.style),{},{width:20})}):S(M(M({},p),{},{columnIndex:h+v,parent:r}))}),g(r,"_columnWidthRightGrid",function(d){var h=d.index,p=r.props,u=p.columnCount,S=p.fixedColumnCount,m=p.columnWidth,v=r.state,y=v.scrollbarSize;return v.showHorizontalScrollbar&&h===u-S?y:typeof m=="function"?m({index:h+S}):m}),g(r,"_onScroll",function(d){var h=d.scrollLeft,p=d.scrollTop;r.setState({scrollLeft:h,scrollTop:p});var u=r.props.onScroll;u&&u(d)}),g(r,"_onScrollbarPresenceChange",function(d){var h=d.horizontal,p=d.size,u=d.vertical,S=r.state,m=S.showHorizontalScrollbar,v=S.showVerticalScrollbar;if(h!==m||u!==v){r.setState({scrollbarSize:p,showHorizontalScrollbar:h,showVerticalScrollbar:u});var y=r.props.onScrollbarPresenceChange;typeof y=="function"&&y({horizontal:h,size:p,vertical:u})}}),g(r,"_onScrollLeft",function(d){var h=d.scrollLeft;r._onScroll({scrollLeft:h,scrollTop:r.state.scrollTop})}),g(r,"_onScrollTop",function(d){var h=d.scrollTop;r._onScroll({scrollTop:h,scrollLeft:r.state.scrollLeft})}),g(r,"_rowHeightBottomGrid",function(d){var h=d.index,p=r.props,u=p.fixedRowCount,S=p.rowCount,m=p.rowHeight,v=r.state,y=v.scrollbarSize;return v.showVerticalScrollbar&&h===S-u?y:typeof m=="function"?m({index:h+u}):m}),g(r,"_topLeftGridRef",function(d){r._topLeftGrid=d}),g(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 ue({cellMeasurerCache:a,columnIndexOffset:0,rowIndexOffset:c}):a,r._deferredMeasurementCacheBottomRightGrid=s>0||c>0?new ue({cellMeasurerCache:a,columnIndexOffset:s,rowIndexOffset:c}):a,r._deferredMeasurementCacheTopRightGrid=s>0?new ue({cellMeasurerCache:a,columnIndexOffset:s,rowIndexOffset:0}):a),r}return W(o,f.reactExports.PureComponent),L(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,i=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,i):i}},{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,i=n===void 0?0:n,l=this.props,a=l.fixedColumnCount,s=l.fixedRowCount,c=Math.max(0,r-a),d=Math.max(0,i-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:i}),this._topRightGrid&&this._topRightGrid.recomputeGridSize({columnIndex:c,rowIndex:i}),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 i=e.scrollToRow,l=J(e,to);if(this._prepareForRender(),this.props.width===0||this.props.height===0)return null;var a=this.state,s=a.scrollLeft,c=a.scrollTop;return f.reactExports.createElement("div",{style:this._containerOuterStyle},f.reactExports.createElement("div",{style:this._containerTopStyle},this._renderTopLeftGrid(l),this._renderTopRightGrid(M(M({},l),{},{onScroll:t,scrollLeft:s}))),f.reactExports.createElement("div",{style:this._containerBottomStyle},this._renderBottomLeftGrid(M(M({},l),{},{onScroll:t,scrollTop:c})),this._renderBottomRightGrid(M(M({},l),{},{onScroll:t,onSectionRendered:r,scrollLeft:s,scrollToColumn:n,scrollToRow:i,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,i=0;i<t;i++)n+=r({index:i});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,i=0;i<t;i++)n+=r({index:i});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,i=t.enableFixedRowScroll,l=t.height,a=t.fixedColumnCount,s=t.fixedRowCount,c=t.rowHeight,d=t.style,h=t.styleBottomLeftGrid,p=t.styleBottomRightGrid,u=t.styleTopLeftGrid,S=t.styleTopRightGrid,m=t.width,v=e||l!==this._lastRenderedHeight||m!==this._lastRenderedWidth,y=e||r!==this._lastRenderedColumnWidth||a!==this._lastRenderedFixedColumnCount,x=e||s!==this._lastRenderedFixedRowCount||c!==this._lastRenderedRowHeight;(e||v||d!==this._lastRenderedStyle)&&(this._containerOuterStyle=M({height:l,overflow:"visible",width:m},d)),(e||v||x)&&(this._containerTopStyle={height:this._getTopGridHeight(this.props),position:"relative",width:m},this._containerBottomStyle={height:l-this._getTopGridHeight(this.props),overflow:"visible",position:"relative",width:m}),(e||h!==this._lastRenderedStyleBottomLeftGrid)&&(this._bottomLeftGridStyle=M({left:0,overflowX:"hidden",overflowY:n?"auto":"hidden",position:"absolute"},h)),(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||S!==this._lastRenderedStyleTopRightGrid)&&(this._topRightGridStyle=M({left:this._getLeftGridWidth(this.props),overflowX:i?"auto":"hidden",overflowY:"hidden",position:"absolute",top:0},S)),this._lastRenderedColumnWidth=r,this._lastRenderedFixedColumnCount=a,this._lastRenderedFixedRowCount=s,this._lastRenderedHeight=l,this._lastRenderedRowHeight=c,this._lastRenderedStyle=d,this._lastRenderedStyleBottomLeftGrid=h,this._lastRenderedStyleBottomRightGrid=p,this._lastRenderedStyleTopLeftGrid=u,this._lastRenderedStyleTopRightGrid=S,this._lastRenderedWidth=m}},{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,i=e.rowCount,l=e.hideBottomLeftGridScrollbar,a=this.state.showVerticalScrollbar;if(!r)return null;var s=a?1:0,c=this._getBottomGridHeight(e),d=this._getLeftGridWidth(e),h=this.state.showVerticalScrollbar?this.state.scrollbarSize:0,p=l?d+h:d,u=f.reactExports.createElement(N,f.Yn({},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,i-n)+s,rowHeight:this._rowHeightBottomGrid,style:this._bottomLeftGridStyle,tabIndex:null,width:p}));return l?f.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,i=e.rowCount,l=e.scrollToColumn,a=e.scrollToRow;return f.reactExports.createElement(N,f.Yn({},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,i-n),rowHeight:this._rowHeightBottomGrid,scrollToColumn:l-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?f.reactExports.createElement(N,f.Yn({},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,i=e.fixedRowCount,l=e.scrollLeft,a=e.hideTopRightGridScrollbar,s=this.state,c=s.showHorizontalScrollbar,d=s.scrollbarSize;if(!i)return null;var h=c?1:0,p=this._getTopGridHeight(e),u=this._getRightGridWidth(e),S=c?d:0,m=p,v=this._topRightGridStyle;a&&(m=p+S,v=M(M({},this._topRightGridStyle),{},{left:0}));var y=f.reactExports.createElement(N,f.Yn({},e,{cellRenderer:this._cellRendererTopRightGrid,className:this.props.classNameTopRightGrid,columnCount:Math.max(0,t-n)+h,columnWidth:this._columnWidthRightGrid,deferredMeasurementCache:this._deferredMeasurementCacheTopRightGrid,height:m,onScroll:r?this._onScrollLeft:void 0,ref:this._topRightGridRef,rowCount:i,scrollLeft:l,style:v,tabIndex:null,width:u}));return a?f.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 bt(){try{var o=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(bt=function(){return!!o})()}g(he,"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}),he.propTypes={},re(he),(function(){function o(e,t){var r,n,i,l;return E(this,o),n=this,l=[e,t],i=I(i=o),(r=A(n,bt()?Reflect.construct(i,l||[],I(n).constructor):i.apply(n,l))).state={clientHeight:0,clientWidth:0,scrollHeight:0,scrollLeft:0,scrollTop:0,scrollWidth:0},r._onScroll=r._onScroll.bind(r),r}return W(o,f.reactExports.PureComponent),L(o,[{key:"render",value:function(){var e=this.props.children,t=this.state,r=t.clientHeight,n=t.clientWidth,i=t.scrollHeight,l=t.scrollLeft,a=t.scrollTop,s=t.scrollWidth;return e({clientHeight:r,clientWidth:n,onScroll:this._onScroll,scrollHeight:i,scrollLeft:l,scrollTop:a,scrollWidth:s})}},{key:"_onScroll",value:function(e){var t=e.clientHeight,r=e.clientWidth,n=e.scrollHeight,i=e.scrollLeft,l=e.scrollTop,a=e.scrollWidth;this.setState({clientHeight:t,clientWidth:r,scrollHeight:n,scrollLeft:i,scrollTop:l,scrollWidth:a})}}])})().propTypes={};var oe="ASC",ve="DESC";function zt(o){var e=o.sortDirection,t=f.Wt("ReactVirtualized__Table__sortableHeaderIcon",{"ReactVirtualized__Table__sortableHeaderIcon--ASC":e===oe,"ReactVirtualized__Table__sortableHeaderIcon--DESC":e===ve});return f.reactExports.createElement("svg",{className:t,width:18,height:18,viewBox:"0 0 24 24"},e===oe?f.reactExports.createElement("path",{d:"M7 14l5-5 5 5z"}):f.reactExports.createElement("path",{d:"M7 10l5 5 5-5z"}),f.reactExports.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}))}function Tt(){try{var o=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Tt=function(){return!!o})()}zt.propTypes={};var se=(function(){function o(){return E(this,o),e=this,r=arguments,t=I(t=o),A(e,Tt()?Reflect.construct(t,r||[],I(e).constructor):t.apply(e,r));var e,t,r}return W(o,f.reactExports.Component),L(o)})();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 F(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){g(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})()}g(se,"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:oe,flexGrow:0,flexShrink:1,headerRenderer:function(o){var e=o.dataKey,t=o.label,r=o.sortBy,n=o.sortDirection,i=r===e,l=[f.reactExports.createElement("span",{className:"ReactVirtualized__Table__headerTruncatedText",key:"label",title:typeof t=="string"?t:null},t)];return i&&l.push(f.reactExports.createElement(zt,{key:"SortIndicator",sortDirection:n})),l},style:{}}),se.propTypes={};var _e=(function(){function o(e){var t,r,n,i;return E(this,o),r=this,i=[e],n=I(n=o),(t=A(r,It()?Reflect.construct(n,i||[],I(r).constructor):n.apply(r,i))).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 W(o,f.reactExports.PureComponent),L(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,i=n===void 0?0:n;this.Grid&&this.Grid.recomputeGridSize({rowIndex:i,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,i=t.disableHeader,l=t.gridClassName,a=t.gridStyle,s=t.headerHeight,c=t.headerRowRenderer,d=t.height,h=t.id,p=t.noRowsRenderer,u=t.rowClassName,S=t.rowStyle,m=t.scrollToIndex,v=t.style,y=t.width,x=this.state.scrollbarWidth,_=i?d:d-s,w=typeof u=="function"?u({index:-1}):u,C=typeof S=="function"?S({index:-1}):S;return this._cachedColumnStyles=[],f.reactExports.Children.toArray(r).forEach(function(R,b){var z=e._getFlexStyleForColumn(R,R.props.style||se.defaultProps.style);e._cachedColumnStyles[b]=F({overflow:"hidden"},z)}),f.reactExports.createElement("div",{"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-colcount":f.reactExports.Children.toArray(r).length,"aria-rowcount":this.props.rowCount,className:f.Wt("ReactVirtualized__Table",n),id:h,role:"grid",style:v},!i&&c({className:f.Wt("ReactVirtualized__Table__headerRow",w),columns:this._getHeaderColumns(),style:F({height:s,overflow:"hidden",paddingRight:x,width:y},C)}),f.reactExports.createElement(N,f.Yn({},this.props,{elementRef:this._setGridElementRef,"aria-readonly":null,autoContainerWidth:!0,className:f.Wt("ReactVirtualized__Table__Grid",l),cellRenderer:this._createRow,columnWidth:y,columnCount:1,height:_,id:void 0,noContentRenderer:p,onScroll:this._onScroll,onSectionRendered:this._onSectionRendered,ref:this._setRef,role:"rowgroup",scrollbarWidth:x,scrollToRow:m,style:F(F({},a),{},{overflowX:"hidden"})})))}},{key:"_createColumn",value:function(e){var t=e.column,r=e.columnIndex,n=e.isScrolling,i=e.parent,l=e.rowData,a=e.rowIndex,s=this.props.onColumnClick,c=t.props,d=c.cellDataGetter,h=c.cellRenderer,p=c.className,u=c.columnData,S=c.dataKey,m=c.id,v=h({cellData:d({columnData:u,dataKey:S,rowData:l}),columnData:u,columnIndex:r,dataKey:S,isScrolling:n,parent:i,rowData:l,rowIndex:a}),y=this._cachedColumnStyles[r],x=typeof v=="string"?v:null;return f.reactExports.createElement("div",{"aria-colindex":r+1,"aria-describedby":m,className:f.Wt("ReactVirtualized__Table__rowColumn",p),key:"Row"+a+"-Col"+r,onClick:function(_){s&&s({columnData:u,dataKey:S,event:_})},role:"gridcell",style:y,title:x},v)}},{key:"_createHeader",value:function(e){var t,r,n,i,l,a=e.column,s=e.index,c=this.props,d=c.headerClassName,h=c.headerStyle,p=c.onHeaderClick,u=c.sort,S=c.sortBy,m=c.sortDirection,v=a.props,y=v.columnData,x=v.dataKey,_=v.defaultSortDirection,w=v.disableSort,C=v.headerRenderer,R=v.id,b=v.label,z=!w&&u,T=f.Wt("ReactVirtualized__Table__headerColumn",d,a.props.headerClassName,{ReactVirtualized__Table__sortableHeaderColumn:z}),k=this._getFlexStyleForColumn(a,F(F({},h),a.props.headerStyle)),O=C({columnData:y,dataKey:x,disableSort:w,label:b,sortBy:S,sortDirection:m});if(z||p){var P=S!==x?_:m===ve?oe:ve,G=function(j){z&&u({defaultSortDirection:_,event:j,sortBy:x,sortDirection:P}),p&&p({columnData:y,dataKey:x,event:j})};l=a.props["aria-label"]||b||x,i="none",n=0,t=G,r=function(j){j.key!=="Enter"&&j.key!==" "||G(j)}}return S===x&&(i=m===oe?"ascending":"descending"),f.reactExports.createElement("div",{"aria-label":l,"aria-sort":i,className:T,id:R,key:"Header-Col"+s,onClick:t,onKeyDown:r,role:"columnheader",style:k,tabIndex:n},O)}},{key:"_createRow",value:function(e){var t=this,r=e.rowIndex,n=e.isScrolling,i=e.key,l=e.parent,a=e.style,s=this.props,c=s.children,d=s.onRowClick,h=s.onRowDoubleClick,p=s.onRowRightClick,u=s.onRowMouseOver,S=s.onRowMouseOut,m=s.rowClassName,v=s.rowGetter,y=s.rowRenderer,x=s.rowStyle,_=this.state.scrollbarWidth,w=typeof m=="function"?m({index:r}):m,C=typeof x=="function"?x({index:r}):x,R=v({index:r}),b=f.reactExports.Children.toArray(c).map(function(k,O){return t._createColumn({column:k,columnIndex:O,isScrolling:n,parent:l,rowData:R,rowIndex:r,scrollbarWidth:_})}),z=f.Wt("ReactVirtualized__Table__row",w),T=F(F({},a),{},{height:this._getRowHeight(r),overflow:"hidden",paddingRight:_},C);return y({className:z,columns:b,index:r,isScrolling:n,key:i,onRowClick:d,onRowDoubleClick:h,onRowRightClick:p,onRowMouseOver:u,onRowMouseOut:S,rowData:R,style:T})}},{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=F(F({},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?[]:f.reactExports.Children.toArray(r)).map(function(n,i){return e._createHeader({column:n,index:i})})}},{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,i=e.rowStopIndex;(0,this.props.onRowsRendered)({overscanStartIndex:t,overscanStopIndex:r,startIndex:n,stopIndex:i})}},{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})}}])})();g(_e,"defaultProps",{disableHeader:!1,estimatedRowSize:30,headerHeight:0,headerStyle:{},noRowsRenderer:function(){return null},onRowsRendered:function(){return null},onScroll:function(){return null},overscanIndicesGetter:vt,overscanRowCount:10,rowRenderer:function(o){var e=o.className,t=o.columns,r=o.index,n=o.key,i=o.onRowClick,l=o.onRowDoubleClick,a=o.onRowMouseOut,s=o.onRowMouseOver,c=o.onRowRightClick,d=o.rowData,h=o.style,p={"aria-rowindex":r+1};return(i||l||a||s||c)&&(p["aria-label"]="row",p.tabIndex=0,i&&(p.onClick=function(u){return i({event:u,index:r,rowData:d})}),l&&(p.onDoubleClick=function(u){return l({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})})),f.reactExports.createElement("div",f.Yn({},p,{className:e,key:n,role:"row",style:h}),t)},headerRowRenderer:function(o){var e=o.className,t=o.columns,r=o.style;return f.reactExports.createElement("div",{className:e,role:"row",style:r},t)},rowStyle:{},scrollToAlignment:"auto",scrollToIndex:-1,style:{}}),_e.propTypes={};var U=[],ee=null,B=null;function Pt(){B&&(B=null,document.body&&ee!=null&&(document.body.style.pointerEvents=ee),ee=null)}function oo(){Pt(),U.forEach(function(o){return o.__resetIsScrolling()})}function kt(o){o.currentTarget===window&&ee==null&&document.body&&(ee=document.body.style.pointerEvents,document.body.style.pointerEvents="none"),(function(){B&&K(B);var e=0;U.forEach(function(t){e=Math.max(e,t.props.scrollingResetTimeInterval)}),B=xe(oo,e)})(),U.forEach(function(e){e.props.scrollElement===o.currentTarget&&e.__handleWindowScrollEvent()})}function Ze(o,e){U.some(function(t){return t.props.scrollElement===e})||e.addEventListener("scroll",kt),U.push(o)}function Qe(o,e){(U=U.filter(function(t){return t!==o})).length||(e.removeEventListener("scroll",kt),B&&(K(B),Pt()))}var Ce=function(o){return o===window},Z=function(o){return o.getBoundingClientRect()};function et(o,e){if(o){if(Ce(o)){var t=window,r=t.innerHeight,n=t.innerWidth;return{height:typeof r=="number"?r:0,width:typeof n=="number"?n:0}}return Z(o)}return{height:e.serverHeight,width:e.serverWidth}}function tt(o){return Ce(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 ot(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 rt(o){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?ot(Object(t),!0).forEach(function(r){g(o,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(t)):ot(Object(t)).forEach(function(r){Object.defineProperty(o,r,Object.getOwnPropertyDescriptor(t,r))})}return o}function Ot(){try{var o=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Ot=function(){return!!o})()}var Mt=function(){return typeof window<"u"?window:void 0},ro=(function(){function o(){var e,t,r,n;E(this,o);for(var i=arguments.length,l=new Array(i),a=0;a<i;a++)l[a]=arguments[a];return t=this,r=o,n=[].concat(l),r=I(r),g(e=A(t,Ot()?Reflect.construct(r,n||[],I(t).constructor):r.apply(t,n)),"_window",Mt()),g(e,"_isMounted",!1),g(e,"_positionFromTop",0),g(e,"_positionFromLeft",0),g(e,"_detectElementResize",void 0),g(e,"_child",void 0),g(e,"_windowScrollerRef",f.reactExports.createRef()),g(e,"state",rt(rt({},et(e.props.scrollElement,e.props)),{},{isScrolling:!1,scrollLeft:0,scrollTop:0})),g(e,"_registerChild",function(s){!s||s instanceof Element||console.warn("WindowScroller registerChild expects to be passed Element or null"),e._child=s,e.updatePosition()}),g(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)}}),g(e,"_registerResizeListener",function(s){s===window?window.addEventListener("resize",e._onResize,!1):e._detectElementResize.addResizeListener(s,e._onResize)}),g(e,"_unregisterResizeListener",function(s){s===window?window.removeEventListener("resize",e._onResize,!1):s&&e._detectElementResize.removeResizeListener(s,e._onResize)}),g(e,"_onResize",function(){e.updatePosition()}),g(e,"__handleWindowScrollEvent",function(){if(e._isMounted){var s=e.props.onScroll,c=e.props.scrollElement;if(c){var d=tt(c),h=Math.max(0,d.left-e._positionFromLeft),p=Math.max(0,d.top-e._positionFromTop);e.setState({isScrolling:!0,scrollLeft:h,scrollTop:p}),s({scrollLeft:h,scrollTop:p})}}}),g(e,"__resetIsScrolling",function(){e.setState({isScrolling:!1})}),e}return W(o,f.reactExports.PureComponent),L(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,i=r.width,l=this._child||this._windowScrollerRef.current;if(l instanceof Element&&e){var a=(function(c,d){if(Ce(d)&&document.documentElement){var h=document.documentElement,p=Z(c),u=Z(h);return{top:p.top-u.top,left:p.left-u.left}}var S=tt(d),m=Z(c),v=Z(d);return{top:m.top+S.top-v.top,left:m.left+S.left-v.left}})(l,e);this._positionFromTop=a.top,this._positionFromLeft=a.left}var s=et(e,this.props);n===s.height&&i===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=ct(),this.updatePosition(e),e&&(Ze(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),Qe(this,n),Ze(this,r),this._unregisterResizeListener(n),this._registerResizeListener(r))}},{key:"componentWillUnmount",value:function(){var e=this.props.scrollElement;e&&(Qe(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,i=t.scrollLeft,l=t.height,a=t.width;return f.reactExports.createElement("div",{ref:this._windowScrollerRef},e({onChildScroll:this._onChildScroll,registerChild:this._registerChild,height:l,isScrolling:r,scrollLeft:i,scrollTop:n,width:a}))}}])})();g(ro,"defaultProps",{onResize:function(){},onScroll:function(){},scrollingResetTimeInterval:150,scrollElement:Mt(),serverHeight:0,serverWidth:0});const Q="ReactVirtualizedDemo-flexContainer",Et="ReactVirtualizedDemo-tableRow",Lt="ReactVirtualizedDemo-tableRowHover",Se="ReactVirtualizedDemo-tableCell",ye="ReactVirtualizedDemo-noClick";class no extends f.mt.PureComponent{constructor(){super(...arguments),this.getRowClassName=({index:e})=>{const{onRowClick:t}=this.props;return f.Ae(Et,Q,{[Lt]:e!==-1&&t!=null})},this.cellRenderer=({cellData:e,dataKey:t,columnIndex:r,width:n})=>{const{columns:i,rowHeight:l,onRowClick:a}=this.props;let s=e,c={height:l,paddingRight:"2px",paddingTop:"0px",paddingBottom:"0px",minWidth:`${n}px`,maxWidth:`${n}px`};return t==="shortcut"?s=f.n5(e):t==="description"&&(c={...c,fontSize:".75rem",display:"block",paddingTop:"4px",whiteSpace:"pre-line"}),f.jsxRuntimeExports.jsx(Re,{component:"div",className:f.Ae(Se,Q,{[ye]:a==null}),variant:"body",style:c,align:r!=null&&i[r].numeric?"right":"left",children:s})},this.headerRenderer=({label:e,columnIndex:t,width:r})=>{const{headerHeight:n,columns:i}=this.props,l=i[t];return f.jsxRuntimeExports.jsx(Re,{component:"div",className:f.Ae(Se,Q,ye),variant:"head",sx:{width:r,height:n,backgroundColor:a=>a.palette.grey[300]},align:l.numeric?"right":"left",children:f.jsxRuntimeExports.jsx("span",{children:l.label})})}}static{this.defaultProps={headerHeight:40,rowHeight:48}}render(){const{columns:e,rowHeight:t,headerHeight:r,...n}=this.props;return f.jsxRuntimeExports.jsx(ut,{children:({height:i,width:l})=>f.jsxRuntimeExports.jsx(_e,{height:i,width:l,rowHeight:t,gridStyle:{direction:"inherit"},headerHeight:r,...n,rowClassName:this.getRowClassName,children:e.map(({dataKey:a,width:s,widthLess:c,...d},h)=>{const p=c?l-c:s;return f.jsxRuntimeExports.jsx(se,{style:{flex:`1 1 ${p}px`},headerRenderer:u=>this.headerRenderer({...u,width:p,columnIndex:h}),className:Q,cellDataGetter:({rowData:u,columnData:S,dataKey:m})=>u[m],cellRenderer:u=>this.cellRenderer({...u,width:p,columnIndex:h}),dataKey:a,width:p,...d},a)})})})}}const io=f.styled(no)(({theme:o})=>({"& .ReactVirtualized__Table__headerRow":{...o.direction==="rtl"&&{paddingLeft:"0 !important"},...o.direction!=="rtl"&&{paddingRight:void 0}},"& .ReactVirtualized__Table__Grid":{outline:"none"},[`& .${Q}`]:{display:"flex",alignItems:"center",boxSizing:"border-box"},[`& .${Et}`]:{cursor:"pointer"},[`& .${Lt}`]:{"&:hover:not([disabled])":{backgroundColor:o.palette.grey[200]}},[`& .${Se}`]:{flex:1},[`& .${ye}`]:{cursor:"initial"}}));function lo(o){const{commands:e,...t}=o,[r,n]=f.reactExports.useState(!1),[i,l]=f.reactExports.useState(""),a=f.reactExports.useMemo(()=>{let u=e.getAllCommands();r||(u=u.filter(v=>v.command.shortcut())),u.sort((v,y)=>v.command.label().localeCompare(y.command.label()));const S=[],m=v=>v.replace(/\n\n/g,`
|
|
19
|
-
`);for(let v=0;v<u.length;v++){const y=u[v].command,x=y.shortcut();if(Array.isArray(x)){const _=x;for(let w=0;w<_.length;w++)S.push({label:y.label(),description:m(y.description()),shortcut:_[w]})}else S.push({label:y.label(),description:m(y.description()),shortcut:y.shortcut()})}return S},[r,e]),[s,c]=f.reactExports.useState(null);f.reactExports.useEffect(()=>{Promise.resolve().then(()=>require("./
|
|
19
|
+
`);for(let v=0;v<u.length;v++){const y=u[v].command,x=y.shortcut();if(Array.isArray(x)){const _=x;for(let w=0;w<_.length;w++)S.push({label:y.label(),description:m(y.description()),shortcut:_[w]})}else S.push({label:y.label(),description:m(y.description()),shortcut:y.shortcut()})}return S},[r,e]),[s,c]=f.reactExports.useState(null);f.reactExports.useEffect(()=>{Promise.resolve().then(()=>require("./Ck_XSvnhc4XECkOd.cjs")).then(u=>{c(new u.default(a,{threshold:0,ignoreLocation:!0,keys:["label","description"]}))})},[a]);const[d,h]=f.reactExports.useState(a),p=i.length>0&&d.length===0;return f.reactExports.useEffect(()=>{s&&f.Xt.debounce(()=>{if(i.trim().length===0)return void h(a);const u=s.search(i.trim()),S=new Array(u.length);for(let m=0;m<u.length;m++)S[m]=u[m].item;h(S)},90)()},[s,i]),f.jsxRuntimeExports.jsxs(f.Box,{style:{height:440,width:"100%",display:"flex",flexDirection:"column"},...t,children:[f.jsxRuntimeExports.jsxs(f.Box,{sx:{display:"flex",alignItems:"center",justifyContent:"end",marginBottom:u=>u.spacing(2),color:u=>u.palette.text.secondary},children:[f.jsxRuntimeExports.jsx(f.TextField,{InputProps:{sx:{backgroundImage:`linear-gradient(${f.alpha("#fff",f.getOverlayAlpha(5))}, ${f.alpha("#fff",f.getOverlayAlpha(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:f.jsxRuntimeExports.jsx(f.InputAdornment,{sx:{opacity:i.length>0?1:0,display:i.length>0?"flex":"none"},position:"end",children:f.jsxRuntimeExports.jsx(f.IconButton,{"aria-label":"clear search",onClick:()=>l(""),edge:"end",children:f.jsxRuntimeExports.jsx(f.so,{})})})},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:i,onChange:u=>{l(u.target.value)},onKeyDown:u=>{u.which===f.eo.Escape&&i.length>0&&(l(""),u.stopPropagation(),u.preventDefault())},onContextMenu:u=>{u.stopPropagation()}}),f.jsxRuntimeExports.jsx(f.FormControlLabel,{sx:{flex:"1 1 60%"},control:f.jsxRuntimeExports.jsx(f.Checkbox,{checked:r,onChange:()=>n(!r)}),label:"Show commands without key bindings",labelPlacement:"start"})]}),f.jsxRuntimeExports.jsx(f.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(${f.alpha("#fff",f.getOverlayAlpha(5))}, ${f.alpha("#fff",f.getOverlayAlpha(5))})`}},children:f.jsxRuntimeExports.jsx(io,{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}]})}),f.jsxRuntimeExports.jsx(f.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:f.jsxRuntimeExports.jsx(f.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"}${i.length>0?" found":""}`})})]})}exports.default=o=>{const{title:e="Shortcut Keys",commands:t,sx:r,...n}=o;return f.jsxRuntimeExports.jsx(f.x6,{isModal:!0,onKeyDown:i=>{i.keyCode===f.eo.F1&&i.preventDefault()},sx:{width:"780px",...r},title:e,autoFocusSel:".input",...n,children:f.jsxRuntimeExports.jsx(f.DialogContent,{dividers:!0,children:f.jsxRuntimeExports.jsx(lo,{commands:t,sx:{marginBottom:"8px"}})})})};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";/**
|
|
2
|
-
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.6.
|
|
2
|
+
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.6.11
|
|
3
3
|
*
|
|
4
4
|
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
6
|
-
*/Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./
|
|
6
|
+
*/Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./BykeMXuqQ1Tsu8VV.cjs"),C=["Ok","Cancel"],u=e.reactExports.memo(d=>{const{tableOptions:n,context:r,onOption:i,onValidateOption:R,onDone:p,options:c=C,defaultOption:a=c?.[0],cancelOption:s="Cancel",sx:g,...m}=d,[b,h]=e.reactExports.useState(!1),[o,j]=e.reactExports.useState(()=>n?.hasHeader??!1),[l,O]=e.reactExports.useState(()=>n?.ranges??null),E=e.T(t=>{const x={...n,hasHeader:o,ranges:l};i?.(t,t===s,t===a),p?.({option:t,tableOptions:x})},[p,i,a,s,o,l,n]),f=e.reactExports.useCallback(async(t,x)=>null,[]);return e.jsxRuntimeExports.jsx(e.k3,{title:"Insert Table",options:c,onDone:E,onValidateOption:f,defaultOption:a,cancelOption:s,autoFocusSel:".range-input input",sx:{width:"360px",...g},...m,children:e.jsxRuntimeExports.jsxs(e.Box,{sx:{paddingTop:t=>t.spacing(1),paddingBottom:t=>t.spacing(0),rowGap:t=>t.spacing(1),display:"flex",flexDirection:"column"},children:[e.jsxRuntimeExports.jsx(e.du,{formName:"range",value:l,onChangeInput:t=>O(t),resolvedAddress:r.getNames().getRanges.bind(r.getNames()),onFocus:t=>{b||t.target?.select(),h(!0)}}),e.jsxRuntimeExports.jsx(e.FormControlLabel,{control:e.jsxRuntimeExports.jsx(e.Checkbox,{checked:o,onChange:()=>j(!o)}),label:"Table has headers",labelPlacement:"end"})]})})});exports.TableNewDialog=u,exports.default=u;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use strict";/**
|
|
2
|
-
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.6.
|
|
2
|
+
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.6.11
|
|
3
3
|
*
|
|
4
4
|
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
6
|
-
*/Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const b=require("./
|
|
6
|
+
*/Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const b=require("./BykeMXuqQ1Tsu8VV.cjs");let $=null,L=null;const le={compilerOptions:{target:"esnext"}},se=async()=>`
|
|
7
7
|
interface FirstTest {
|
|
8
8
|
isTrue?: boolean;
|
|
9
9
|
}
|
|
10
|
-
`,Y=new Map([["IReferenceRange","r"],["IRange","l"]]),Z=new Map([["IWorkbook","workbook"],["ISheet","sheet"],["ICellRanges","ranges"],["ICellRange","range"],["IFormulaContext","context"]]),V=(T,S)=>{Array.from(S.keys()).forEach(z=>{const P=S.get(z);S.set(`${T}.${z}`,P)})},ce=new Map([["Scalar","*"],["FormulaError.Known",b.M.Error],["Date","Date"],["JSON","JSON"]]),de=new Map([]),X="SheetXL";V(X,Y),V(X,Z),V(X,de);const ue=new Map([["Promise",()=>({async:!0})],["Observable",()=>({stream:!0})]]);let R=null;async function pe(){if(R)return R;try{return await(await Promise.resolve().then(()=>require("./
|
|
10
|
+
`,Y=new Map([["IReferenceRange","r"],["IRange","l"]]),Z=new Map([["IWorkbook","workbook"],["ISheet","sheet"],["ICellRanges","ranges"],["ICellRange","range"],["IFormulaContext","context"]]),V=(T,S)=>{Array.from(S.keys()).forEach(z=>{const P=S.get(z);S.set(`${T}.${z}`,P)})},ce=new Map([["Scalar","*"],["FormulaError.Known",b.M.Error],["Date","Date"],["JSON","JSON"]]),de=new Map([]),X="SheetXL";V(X,Y),V(X,Z),V(X,de);const ue=new Map([["Promise",()=>({async:!0})],["Observable",()=>({stream:!0})]]);let R=null;async function pe(){if(R)return R;try{return await(await Promise.resolve().then(()=>require("./CyCkK_PTjuR-1olP.cjs"))).initialize()}catch(T){throw R=null,T}finally{R=null}}exports.compileModule=async function(T){const S=T?.source??null;if(!S)return null;const z=(T.disableBundle||T.declarationsOnly)??!1,P=[se(),pe()],U=await Promise.all(P),ee=U[0],n=U[1];let C="",j=null;const O=[],te={allowJs:!0,declaration:!1,sourceMap:!1,inlineSourceMap:!1,inlineSources:!1,isolatedModules:!0,preserveConstEnums:!1,module:99,noResolve:!0,emitDeclarationOnly:!1,target:n.ScriptTarget.ES2020},A="script",I=`${A}.ts`,_="lib.d.ts",H="global.d.ts",F={[I]:S,[_]:`
|
|
11
11
|
/**
|
|
12
12
|
* Represents the completion of an asynchronous operation
|
|
13
13
|
*/
|
|
@@ -21,7 +21,7 @@ interface Promise<T> {
|
|
|
21
21
|
finally(onfinally?: (() => void) | undefined | null): Promise<T>;
|
|
22
22
|
}
|
|
23
23
|
`,[H]:ee},ne={getSourceFile:(e,o,y,r)=>n.createSourceFile(e,F[e],n.ScriptTarget.Latest,!0),fileExists:e=>F[e]!==void 0,readFile:e=>F[e],writeFile:(e,o)=>{F[e]=o},getCurrentDirectory:()=>"./",getCanonicalFileName:e=>e,useCaseSensitiveFileNames:()=>!0,getDefaultLibFileName:e=>_,getNewLine:()=>`
|
|
24
|
-
`},q=n.createProgram([I,H],te,ne),D=q.getTypeChecker(),re=q.getSourceFile(I),W=q.emit();W.diagnostics.length>0&&console.warn(W.diagnostics),C=F[`${A}.js`];const N=(e,o,y,r)=>{if(e){if(e.kind===n.SyntaxKind.NumberKeyword)o.scalar=b.M.Number;else if(e.kind===n.SyntaxKind.StringKeyword)o.scalar=b.M.String;else if(e.kind===n.SyntaxKind.BooleanKeyword)o.scalar=b.M.Boolean;else if(e.kind===n.SyntaxKind.UndefinedKeyword||e.kind===n.SyntaxKind.NullKeyword||e.kind===n.SyntaxKind.VoidKeyword){if(r)return void h(e,new Error(`'undefined' is not a valid type for input: '${e?.parent?.name?.escapedText}'.`));o.scalar=b.M.Null}else if(e.kind===n.SyntaxKind.BigIntKeyword)o.scalar=b.M.Number;else if(e.kind===n.SyntaxKind.AnyKeyword)o.scalar=b.M.Null;else if(e.kind===n.SyntaxKind.ArrayType){const i=e.elementType;if(!i)return void h(e,new Error(`'Array' must be typed: '${e?.parent?.name?.escapedText}'.`));o.arrayDepth=(o.arrayDepth??0)+1,N(i,o,y,r)}else if(e.kind!==n.SyntaxKind.TupleType&&e.kind===n.SyntaxKind.TypeReference){const i=e.typeName?.getText?.()??null,f=Y.get(i);let m=!1;f&&(o.range=f,m=!0);const x=ce.get(i);if(x&&(o.scalar=x),x!==void 0&&(m=!0),r){const c=Z.get(i);if(c)return c}else{const c=ue.get(i);if(c){const l={...o,...c()};let t=0;if(l.async&&t++,l.stream&&t++,t>1)return void h(e,new Error(`'${i}' cannot have multiple modifiers: '${e?.parent?.name?.escapedText}'.`));o=l,m=!0}}if(!m)return void h("node",new Error(`'${i}' is not a valid type: '${e?.parent?.name?.escapedText}'.`));const p=e.typeArguments;if(p){if(p.length!==1)return void h(e,new Error(`'${i}' must be typed with exactly 1 type: '${e?.parent?.name?.escapedText}'.`));N(p[0],o,y,r)}}}else h(e,new Error(`Type is not defined for '${o?.name??"return"}'.`))},k=[],h=(e,o)=>{k.push(o)};if(n.forEachChild(re,e=>{if(y=e,(n.getCombinedModifierFlags(y)&n.ModifierFlags.Export)!==0&&n.isFunctionDeclaration(e)){const r={},i={parameters:{}},f=e?.name?.getText();try{r.name=f;const m=D.getSymbolAtLocation(e.name).getDocumentationComment(D);if(m&&m.length>0&&m[0].text){let l=m[0].text;l=l.replace(/[\r\n]+/g,"\\n").trim(),i.summary=l}const x={};N(e.type,x,r,!1),r.returnType=x;const p={};o=e,(n.getCombinedModifierFlags(o)&n.ModifierFlags.Default)!==0&&(p.default=!0,j=f),Object.keys(p).length>0&&(r.behavior=p),r.parameters=[];const c=new Map;for(let l=0;l<e.parameters.length;l++){const t=e.parameters[l],s={};s.name=t.name?.getText();const E=N(t.type,s,r,!0);if(E){if(r.parameters.length!==0){const v=e?.parent,u=v?.name?.getText();return void h(e,new Error(`'${r.name}' contexts must be the first parameter: '${u}'.`))}r.context=E;continue}let g;if((t.initializer!==void 0&&t.initializer!==null||t.questionToken!==void 0&&t.questionToken!==null)&&(s.optional=!0,t.initializer))try{g=t.initializer.kind===n.SyntaxKind.StringLiteral?t.initializer.text:t.initializer.kind===n.SyntaxKind.NumericLiteral?parseFloat(t.initializer.text):t.initializer.kind===n.SyntaxKind.TrueKeyword||t.initializer.kind===n.SyntaxKind.FalseKeyword?t.initializer.kind===n.SyntaxKind.TrueKeyword:t.initializer.kind===n.SyntaxKind.NullKeyword?null:t.initializer.kind===n.SyntaxKind.ObjectLiteralExpression||t.initializer.kind===n.SyntaxKind.ArrayLiteralExpression?t.initializer.getText():t.initializer.getText?.()}catch(v){console.warn(`Couldn't extract default value for parameter '${s.name}'`,v)}t.dotDotDotToken&&(s.rest=!0),r.parameters.push(s);const d={description:""};i.parameters[s.name]=d;const a=D.getSymbolAtLocation(t.name).getDocumentationComment(D);a&&a.length>0&&a[0].text&&(d.description=a[0].text),g!==void 0&&(d.defaultValue=g),c.set(s.name,s)}if(e.jsDoc&&e.jsDoc.length>0){const l=e.jsDoc;for(let t=0;t<l.length;t++){const s=l[t]?.tags;if(s)for(let E=0;E<s.length;E++){const g=s[E];let d=g?.tagName?.text;if(!d)continue;d=d.toLowerCase();let a=g.comment;const v=d==="hidden";if((typeof a=="string"||v)&&(typeof a=="string"&&(a=a.replace(/[\r\n]+/g,"\\n").trim()),v||!a||(a=a.split(/\\n/)[0],a&&a.length!==0))){if(a&&typeof a=="string"){const u=/\{@link(code|plain)?\s+([^}|]+)(?:\s*\|\s*([^}]+))?\}/g;let w,K=a,M=[];for(;(w=u.exec(a))!==null;){const[B,J,oe,Q]=w,ae=[oe.trim()];Q&&ae.push(Q.trim())}a=K,M.length>0&&d==="see"&&(i.links||(i.links=[]),i.links.push(...M))}if(d==="name"){const u=a;u!==f&&(i.name=u)}else if(d!=="description"){if(d==="summary"){const u=a;u&&(i.summary=u)}else if(d==="param"){const u=g.name?.text,w=c.get(u);if(!w){k.push(new Error(`Parameter '${u}' not found in function '${f}'.`));continue}if(g.typeExpression&&g.typeExpression.type)try{const K=g.typeExpression.type;if(K.kind===n.SyntaxKind.UnionType){const M=[];w.enums=M,K.types.forEach(B=>{if(B.kind===n.SyntaxKind.LiteralType){const J=B.literal.text;J&&M.push(J)}})}}catch(K){console.warn("Error parsing JSDoc type expression:",K)}}else if(d==="returns"||d==="return")r.returnType.description=a;else if(d==="category")i.category=a;else if(d==="hidden"){let u=!0;const w=a?.toLowerCase();w==="false"?u=!1:w!=="true"&&(u=a),u!==!1&&(i.hidden=u??!0)}}}}}}Object.keys(r.returnType).length===0&&delete r.returnType,O.push([r,i])}catch(m){h(e,new Error(`'${f}': ${m.message}`))}}var o,y}),k.length>0)throw console.warn(k),new Error("There were compilation errors.",{cause:k});if(O.length===0)throw new Error("No exported functions.");const ie=`${b.Xt.uuidV4()}-script`;try{z||k.length!==0||(C=await(async function(e,o,y="/script.js",r="__SHEETXL"){try{const i=await(async function(){if($)return $;if(L){if(await L,!$)throw new Error("ESBuild initialization promise resolved, but instance is not available.");return $}let c,l;L=new Promise((t,s)=>{c=t,l=s});try{const{initialize:t}=await Promise.resolve().then(()=>require("./
|
|
24
|
+
`},q=n.createProgram([I,H],te,ne),D=q.getTypeChecker(),re=q.getSourceFile(I),W=q.emit();W.diagnostics.length>0&&console.warn(W.diagnostics),C=F[`${A}.js`];const N=(e,o,y,r)=>{if(e){if(e.kind===n.SyntaxKind.NumberKeyword)o.scalar=b.M.Number;else if(e.kind===n.SyntaxKind.StringKeyword)o.scalar=b.M.String;else if(e.kind===n.SyntaxKind.BooleanKeyword)o.scalar=b.M.Boolean;else if(e.kind===n.SyntaxKind.UndefinedKeyword||e.kind===n.SyntaxKind.NullKeyword||e.kind===n.SyntaxKind.VoidKeyword){if(r)return void h(e,new Error(`'undefined' is not a valid type for input: '${e?.parent?.name?.escapedText}'.`));o.scalar=b.M.Null}else if(e.kind===n.SyntaxKind.BigIntKeyword)o.scalar=b.M.Number;else if(e.kind===n.SyntaxKind.AnyKeyword)o.scalar=b.M.Null;else if(e.kind===n.SyntaxKind.ArrayType){const i=e.elementType;if(!i)return void h(e,new Error(`'Array' must be typed: '${e?.parent?.name?.escapedText}'.`));o.arrayDepth=(o.arrayDepth??0)+1,N(i,o,y,r)}else if(e.kind!==n.SyntaxKind.TupleType&&e.kind===n.SyntaxKind.TypeReference){const i=e.typeName?.getText?.()??null,f=Y.get(i);let m=!1;f&&(o.range=f,m=!0);const x=ce.get(i);if(x&&(o.scalar=x),x!==void 0&&(m=!0),r){const c=Z.get(i);if(c)return c}else{const c=ue.get(i);if(c){const l={...o,...c()};let t=0;if(l.async&&t++,l.stream&&t++,t>1)return void h(e,new Error(`'${i}' cannot have multiple modifiers: '${e?.parent?.name?.escapedText}'.`));o=l,m=!0}}if(!m)return void h("node",new Error(`'${i}' is not a valid type: '${e?.parent?.name?.escapedText}'.`));const p=e.typeArguments;if(p){if(p.length!==1)return void h(e,new Error(`'${i}' must be typed with exactly 1 type: '${e?.parent?.name?.escapedText}'.`));N(p[0],o,y,r)}}}else h(e,new Error(`Type is not defined for '${o?.name??"return"}'.`))},k=[],h=(e,o)=>{k.push(o)};if(n.forEachChild(re,e=>{if(y=e,(n.getCombinedModifierFlags(y)&n.ModifierFlags.Export)!==0&&n.isFunctionDeclaration(e)){const r={},i={parameters:{}},f=e?.name?.getText();try{r.name=f;const m=D.getSymbolAtLocation(e.name).getDocumentationComment(D);if(m&&m.length>0&&m[0].text){let l=m[0].text;l=l.replace(/[\r\n]+/g,"\\n").trim(),i.summary=l}const x={};N(e.type,x,r,!1),r.returnType=x;const p={};o=e,(n.getCombinedModifierFlags(o)&n.ModifierFlags.Default)!==0&&(p.default=!0,j=f),Object.keys(p).length>0&&(r.behavior=p),r.parameters=[];const c=new Map;for(let l=0;l<e.parameters.length;l++){const t=e.parameters[l],s={};s.name=t.name?.getText();const E=N(t.type,s,r,!0);if(E){if(r.parameters.length!==0){const v=e?.parent,u=v?.name?.getText();return void h(e,new Error(`'${r.name}' contexts must be the first parameter: '${u}'.`))}r.context=E;continue}let g;if((t.initializer!==void 0&&t.initializer!==null||t.questionToken!==void 0&&t.questionToken!==null)&&(s.optional=!0,t.initializer))try{g=t.initializer.kind===n.SyntaxKind.StringLiteral?t.initializer.text:t.initializer.kind===n.SyntaxKind.NumericLiteral?parseFloat(t.initializer.text):t.initializer.kind===n.SyntaxKind.TrueKeyword||t.initializer.kind===n.SyntaxKind.FalseKeyword?t.initializer.kind===n.SyntaxKind.TrueKeyword:t.initializer.kind===n.SyntaxKind.NullKeyword?null:t.initializer.kind===n.SyntaxKind.ObjectLiteralExpression||t.initializer.kind===n.SyntaxKind.ArrayLiteralExpression?t.initializer.getText():t.initializer.getText?.()}catch(v){console.warn(`Couldn't extract default value for parameter '${s.name}'`,v)}t.dotDotDotToken&&(s.rest=!0),r.parameters.push(s);const d={description:""};i.parameters[s.name]=d;const a=D.getSymbolAtLocation(t.name).getDocumentationComment(D);a&&a.length>0&&a[0].text&&(d.description=a[0].text),g!==void 0&&(d.defaultValue=g),c.set(s.name,s)}if(e.jsDoc&&e.jsDoc.length>0){const l=e.jsDoc;for(let t=0;t<l.length;t++){const s=l[t]?.tags;if(s)for(let E=0;E<s.length;E++){const g=s[E];let d=g?.tagName?.text;if(!d)continue;d=d.toLowerCase();let a=g.comment;const v=d==="hidden";if((typeof a=="string"||v)&&(typeof a=="string"&&(a=a.replace(/[\r\n]+/g,"\\n").trim()),v||!a||(a=a.split(/\\n/)[0],a&&a.length!==0))){if(a&&typeof a=="string"){const u=/\{@link(code|plain)?\s+([^}|]+)(?:\s*\|\s*([^}]+))?\}/g;let w,K=a,M=[];for(;(w=u.exec(a))!==null;){const[B,J,oe,Q]=w,ae=[oe.trim()];Q&&ae.push(Q.trim())}a=K,M.length>0&&d==="see"&&(i.links||(i.links=[]),i.links.push(...M))}if(d==="name"){const u=a;u!==f&&(i.name=u)}else if(d!=="description"){if(d==="summary"){const u=a;u&&(i.summary=u)}else if(d==="param"){const u=g.name?.text,w=c.get(u);if(!w){k.push(new Error(`Parameter '${u}' not found in function '${f}'.`));continue}if(g.typeExpression&&g.typeExpression.type)try{const K=g.typeExpression.type;if(K.kind===n.SyntaxKind.UnionType){const M=[];w.enums=M,K.types.forEach(B=>{if(B.kind===n.SyntaxKind.LiteralType){const J=B.literal.text;J&&M.push(J)}})}}catch(K){console.warn("Error parsing JSDoc type expression:",K)}}else if(d==="returns"||d==="return")r.returnType.description=a;else if(d==="category")i.category=a;else if(d==="hidden"){let u=!0;const w=a?.toLowerCase();w==="false"?u=!1:w!=="true"&&(u=a),u!==!1&&(i.hidden=u??!0)}}}}}}Object.keys(r.returnType).length===0&&delete r.returnType,O.push([r,i])}catch(m){h(e,new Error(`'${f}': ${m.message}`))}}var o,y}),k.length>0)throw console.warn(k),new Error("There were compilation errors.",{cause:k});if(O.length===0)throw new Error("No exported functions.");const ie=`${b.Xt.uuidV4()}-script`;try{z||k.length!==0||(C=await(async function(e,o,y="/script.js",r="__SHEETXL"){try{const i=await(async function(){if($)return $;if(L){if(await L,!$)throw new Error("ESBuild initialization promise resolved, but instance is not available.");return $}let c,l;L=new Promise((t,s)=>{c=t,l=s});try{const{initialize:t}=await Promise.resolve().then(()=>require("./Ce_zwBSNT8mlAnXL.cjs"));return $=await t(),c(),$}catch(t){throw console.error("Failed to import or initialize esbuild:",t),L=null,l(t),t}})(),f="@sheetxl/primitives",m=`
|
|
25
25
|
export const FormulaContext = globalThis.${r}?.FormulaContext;
|
|
26
26
|
export const ScalarType = globalThis.${r}?.ScalarType;
|
|
27
27
|
export const Observable = globalThis.${r}?.Observable;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";/**
|
|
2
|
-
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.6.
|
|
2
|
+
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.6.11
|
|
3
3
|
*
|
|
4
4
|
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";/**
|
|
2
|
-
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.6.
|
|
2
|
+
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.6.11
|
|
3
3
|
*
|
|
4
4
|
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
6
|
-
*/Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});exports.TypeScriptCompiler=class{constructor(r={}){this.workerWrapper=null}async getWorkerWrapper(){if(this.workerWrapper)return this.workerWrapper;const{createCompilerWorker:r}=await Promise.resolve().then(()=>require("./
|
|
6
|
+
*/Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});exports.TypeScriptCompiler=class{constructor(r={}){this.workerWrapper=null}async getWorkerWrapper(){if(this.workerWrapper)return this.workerWrapper;const{createCompilerWorker:r}=await Promise.resolve().then(()=>require("./CUIFforYlaNEvC1I.cjs"));return this.workerWrapper=await r(),this.workerWrapper}async compileModule(r){try{return(await this.getWorkerWrapper()).execute(r)}catch(e){throw console.error("Failed to compile using worker:",e),e}}terminate(){this.workerWrapper?.terminate(),this.workerWrapper=null}};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";/**
|
|
2
|
+
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.6.11
|
|
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={ACCRINT:{s:"Returns the accrued interest for a security that pays periodic interest.",p:{issue:{d:"is the security's issue date, expressed as a serial date number"},firstInterest:{d:"is the security's first interest date, expressed as a serial date number"},settlement:{d:"is the security's settlement date, expressed as a serial date number"},rate:{d:"is the security's annual coupon rate"},par:{d:"is the security's par value"},frequency:{d:"is the number of coupon payments per year"},basis:{d:"is the type of day count basis to use",v:0},calcMethod:{d:"is a logical value: to accrued interest from issue date = TRUE; to calculate from last coupon payment date = FALSE",v:!0}}},ACCRINTM:{s:"Returns the accrued interest for a security that pays interest at maturity",p:{issue:{d:"is the security's issue date, expressed as a serial date number"},settlement:{d:"is the security's maturity date, expressed as a serial date number"},rate:{d:"is the security's annual coupon rate"},par:{d:"is the security's par value"},basis:{d:"is the type of day count basis to use",v:0}},h:"Unimplemented"},AMORLINC:{s:"Returns the prorated linear depreciation of an asset for each accounting period.",p:{cost:{d:"is the cost of the asset"},datePurchased:{d:"is the date the asset is purchased"},firstPeriod:{d:"is the date of the end of the first period"},salvarge:{d:"is the salvage value at the end of life of the asset."},period:{d:"is the period"},rate:{d:"is the rate of depreciation"},basis:{d:"year_basis : 0 for year of 360 days, 1 for actual, 3 for year of 365 days.",v:0}},h:"Unimplemented"},COUPDAYBS:{s:"Returns the number of days from the beginning of the coupon period to the settlement date",p:{settlement:{d:"is the security's settlement date, expressed as a serial date number is the security's settlement date, expressed as a serial date number"},maturity:{d:"is the security's maturity date, expressed as a serial date number"},frequency:{d:"is the number of coupon payments per year"},basis:{d:"is the type of day count basis to use",v:0}},h:"Unimplemented"},COUPDAYS:{s:"Returns the number of days from the beginning of the coupon period to the settlement date",p:{settlement:{d:"is the security's settlement date, expressed as a serial date number"},maturity:{d:"is the security's maturity date, expressed as a serial date number"},frequency:{d:"is the number of coupon payments per year"},basis:{d:"is the type of day count basis to use",v:0}}},COUPNCD:{s:"Returns the next coupon date after the settlement date",p:{settlement:{d:"is the security's settlement date, expressed as a serial date number"},maturity:{d:"is the security's maturity date, expressed as a serial date number"},frequency:{d:"is the number of coupon payments per year"},basis:{d:"is the type of day count basis to use",v:0}},h:"Unimplemented"},COUPNUM:{s:"Returns the number of coupons payable between the settlement date and maturity date",p:{settlement:{d:"is the security's settlement date, expressed as a serial date number"},maturity:{d:"is the security's maturity date, expressed as a serial date number"},frequency:{d:"is the number of coupon payments per year"},basis:{d:"is the type of day count basis to use",v:0}},h:"Unimplemented"},COUPPCD:{s:"Returns the previous coupon date before the settlement date",p:{settlement:{d:"is the security's settlement date, expressed as a serial date number"},maturity:{d:"is the security's maturity date, expressed as a serial date number"},frequency:{d:"is the number of coupon payments per year"},basis:{d:"is the type of day count basis to use",v:0}},h:"Unimplemented"},CUMIPMT:{s:"Returns the cumulative interest paid between two periods",p:{rate:{d:"is the interest rate"},nper:{d:"is the total number of payment periods"},pv:{d:"is the present value of the investment"},startPeriod:{d:"is the first period in the calculation"},endPeriod:{d:"is the last period in the calculation"},type:{d:"is the timing of the payment"}}},CUMPRINC:{s:"Returns the cumulative principal paid on a loan between two periods",p:{rate:{d:"is the interest rate"},nper:{d:"is the total number of payment periods"},pv:{d:"is the present value of the investment"},startPeriod:{d:"is the first period in the calculation"},endPeriod:{d:"is the last period in the calculation"},type:{d:"is the timing of the payment"}}},DB:{s:"Returns the depreciation of an asset for a specified period using the fixed-declining balance method",p:{cost:{d:"is the initial cost of the asset"},salvage:{d:"is the salvage value at the end of the life of the asset"},life:{d:"is the number of periods over which the asset is being depreciated (sometimes called the useful life of the asset)"},period:{d:"is the period for which you want to calculate the depreciation. Period must use the same units as Life"},month:{d:"is the number of months in the first year",v:12}}},DDB:{s:"Returns the depreciation of an asset for a specified period using the double-declining balance method or some other method you specify",p:{cost:{d:"is the initial cost of the asset"},salvage:{d:"is the salvage value at the end of the life of the asset"},life:{d:"is the number of periods over which the asset is being depreciated (sometimes called the useful life of the asset)"},period:{d:"is the period for which you want to calculate the depreciation. Period must use the same units as Life"},factor:{d:"is the rate at which the balance declines",v:2}}},DISC:{s:"Returns the discount rate for a security",p:{settlement:{d:"is the security's settlement date, expressed as a serial date number"},maturity:{d:"is the security's maturity date, expressed as a serial date number"},pr:{d:"is the security's price per $100 face value"},redemption:{d:"is the security's redemption value per $100 face value"},basis:{d:"is the type of day count basis to use",v:0}}},DOLLARDE:{s:"Converts a dollar price, expressed as a fraction, into a dollar price, expressed as a decimal number",p:{fractionalDollar:{d:"is a number expressed as a fraction"},fraction:{d:"is the integer to use in the denominator of the fraction"}}},DOLLARFR:{s:"Converts a dollar price, expressed as a decimal number, into a dollar price, expressed as a fraction",p:{decimalDollar:{d:"is a decimal number"},fraction:{d:"is the integer to use in the denominator of the fraction"}}},DURATION:{s:"Returns the annual duration of a security with periodic interest payments",p:{settlement:{d:"is the security's settlement date, expressed as a serial date number"},maturity:{d:"is the security's maturity date, expressed as a serial date number"},coupon:{d:"is the security's annual coupon rate"},yld:{d:"is the security's annual yield"},frequency:{d:"is the number of coupon payments per year"},basis:{d:"is the type of day count basis to use",v:0}},h:"Unimplemented"},EFFECT:{s:"Returns the effective annual interest rate",p:{nominalRate:{d:"is the nominal interest rate"},npery:{d:"is the number of compounding periods per year"}}},FV:{s:"Returns the future value of an investment based on periodic, constant payments and a constant interest rate",p:{rate:{d:"is the interest rate"},nper:{d:"is the total number of payment periods"},pmt:{d:"is the payment made each period; it cannot change over the life of the investment"},pv:{d:"is the present value of the investment",v:0},type:{d:"Indicates when pmts are due.",v:0}}},FVSCHEDULE:{s:"Returns the future value of an initial principal after applying a series of compound interest rates",p:{principal:{d:"is the present value"},schedule:{d:"is an array of interest rates to apply"}}},INTRATE:{s:"Returns the interest rate for a fully invested security",p:{settlement:{d:"is the security's settlement date, expressed as a serial date number"},maturity:{d:"is the security's maturity date, expressed as a serial date number"},investment:{d:"is the amount invested in the security"},redemption:{d:"is the amount to be received at maturity"},basis:{d:"is the type of day count basis to use",v:2}},h:"Unimplemented"},IPMT:{s:"Returns the interest payment for a given period for an investment, based on periodic, constant payments and a constant interest rate",p:{rate:{d:"is the interest rate"},per:{d:"is the period for which you want to find the interest and must be in the range 1 to Nper"},nper:{d:"is the total number of payment periods"},pv:{d:"is the present value of the investment"},fv:{d:"is the future value, or a cash balance you want to attain after the last payment is made",v:0},type:{d:"is a logical value representing the timing of payment: at the end of the period = 0, at the beginning of the period = 1",v:0}}},IRR:{s:"Returns the internal rate of return for a series of cash flows",p:{values:{d:"is an array or a reference to cells that contain numbers for which you want to calculate the internal rate of return"},guess:{d:"is a number that you guess is close to the result of IRR",v:.1}},h:"Unimplemented"},ISPMT:{s:"Returns the interest paid during a specific period of an investment",p:{rate:{d:"is the interest rate"},per:{d:"period for which you want to find the interest"},nper:{d:"number of payment periods in an investment"},pv:{d:"lump sum amount that a series of future payments is right now"}}},MDURATION:{s:"Returns the Macauley modified duration for a security with an assumed par value of $100",p:{settlement:{d:"is the security's settlement date, expressed as a serial date number"},maturity:{d:"is the security's maturity date, expressed as a serial date number"},coupon:{d:"is the security's annual coupon rate"},yld:{d:"is the security's annual yield"},frequency:{d:"is the number of coupon payments per year"},basis:{d:"is the type of day count basis to use",v:2}},h:"Unimplemented"},MIRR:{s:"Returns the internal rate of return for a series of periodic cash flows, considering both cost of investment and interest on reinvestment of cash",p:{values:{d:"is an array or a reference to cells that contain numbers that represent a series of payments (negative) and income (positive) at regular periods"},financeRate:{d:"is the interest rate you pay on the money used in the cash flows"},reinvestRate:{d:"is the interest rate you receive on the cash flows as you reinvest them"}}},NOMINAL:{s:"Returns the annual nominal interest rate",p:{effectiveRate:{d:"is the effective interest rate"},npery:{d:"is the number of compounding periods per year@param npery"}}},NPER:{s:"Returns the number of periods for an investment based on periodic, constant payments and a constant interest rate",p:{rate:{d:"is the interest rate per period. For example, use 6%/4 for quarterly payments at 6% APR"},pmt:{d:"is the payment made each period; it cannot change over the life of the investment"},pv:{d:"is the present value, or the lump-sum amount that a series of future payments is worth now"},fv:{d:"is the future value, or a cash balance you want to attain after the last payment is made",v:0},type:{d:"is a logical value: payment at the beginning of the period = 1; payment at the end of the period = 0",v:0}}},NPV:{s:"Returns the net present value of an investment based on a discount rate and a series of future payments (negative values) and income (positive values)",p:{rate:{d:"is the rate of discount over the length of one period"},value:{d:"value1,value2,... are 1 to 254 payments and income, equally spaced in time and occurring at the end of each period"}}},ODDFPRICE:{s:"Returns the price per $100 face value of a security with an odd first period",p:{settlement:{d:"is the security's settlement date, expressed as a serial date number"},maturity:{d:"is the security's maturity date, expressed as a serial date number"},issue:{d:"is the security's issue date, expressed as a serial date number"},firstCoupon:{d:"is the security's first coupon date, expressed as a serial date number"},yld:{d:"is the security's annual yield"},redemption:{d:"is the security's redemption value per $100 face value"},frequency:{d:"is the number of coupon payments per year"},basis:{d:"is the type of day count basis to use",v:0}},h:"Unimplemented"},ODDFYIELD:{s:"Returns the yield of a security with an odd first period",p:{settlement:{d:"is the security's settlement date, expressed as a serial date number"},maturity:{d:"is the security's maturity date, expressed as a serial date number"},issue:{d:"is the security's issue date, expressed as a serial date number"},firstCoupon:{d:"is the security's first coupon date, expressed as a serial date number"},yld:{d:"is the security's annual yield"},redemption:{d:"is the amount to be received at maturity"},frequency:{d:"is the number of coupon payments per year"},basis:{d:"is the type of day count basis to use",v:0}},h:"Unimplemented"},ODDLPRICE:{s:"Returns the price per $100 face value of a security with an odd last period",p:{settlement:{d:"is the security's settlement date, expressed as a serial date number"},maturity:{d:"is the security's maturity date, expressed as a serial date number"},lastInterest:{d:"is the security's last coupon date, expressed as a serial date number"},rate:{d:"is the interest rate"},yld:{d:"is the security's annual yield"},redemption:{d:"is the amount to be received at maturity"},frequency:{d:"is the number of coupon payments per year"},basis:{d:"is the type of day count basis to use",v:0}},h:"Unimplemented"},ODDLYIELD:{s:"Returns the yield of a security with an odd last period",p:{settlement:{d:"is the security's settlement date, expressed as a serial date number"},maturity:{d:"is the security's maturity date, expressed as a serial date number"},lastInterest:{d:"is the security's last coupon date, expressed as a serial date number"},rate:{d:"is the interest rate"},pr:{d:"is the security's price"},redemption:{d:"is the amount to be received at maturity"},frequency:{d:"is the number of coupon payments per year"},basis:{d:"is the type of day count basis to use",v:0}},h:"Unimplemented"},PDURATION:{s:"Returns the number of periods required by an investment to reach a specified value",p:{rate:{d:"is the interest rate"},pv:{d:"is the present value of the investment"},fv:{d:"is the desired future value of the investment"}}},PMT:{s:"Calculates the payment for a loan based on constant payments and a constant interest rate",p:{rate:{d:"is the interest rate"},nper:{d:"is the total number of payment periods"},pv:{d:"is the present value of the investment"},fv:{d:"is the future value, or a cash balance you want to attain after the last payment is made",v:0},type:{d:"is a logical value: payment at the beginning of the period = 1; payment at the end of the period = 0",v:0}}},PRICE:{s:"Returns the price per $100 face value of a security that pays periodic interest",p:{settlement:{d:"is the security's settlement date, expressed as a serial date number"},maturity:{d:"is the security's maturity date, expressed as a serial date number"},rate:{d:"is the interest rate"},yld:{d:"is the security's annual yield"},redemption:{d:"is the amount to be received at maturity"},frequency:{d:"is the number of coupon payments per year"},basis:{d:"is the type of day count basis to use",v:0}},h:"Unimplemented"},PRICEDISC:{s:"Returns the price per $100 face value of a discounted security",p:{settlement:{d:"is the security's settlement date, expressed as a serial date number"},maturity:{d:"is the security's maturity date, expressed as a serial date number"},discount:{d:"is the security's discount rate"},redemption:{d:"is the amount to be received at maturity"},basis:{d:"is the type of day count basis to use",v:0}}},PRICEMAT:{s:"Returns the price per $100 face value of a security that pays interest at maturity",p:{settlement:{d:"is the security's settlement date, expressed as a serial date number"},maturity:{d:"is the security's maturity date, expressed as a serial date number"},issue:{d:"is the security's issue date, expressed as a serial date number"},rate:{d:"is the interest rate"},yld:{d:"is the security's annual yield"},basis:{d:"is the type of day count basis to use",v:0}},h:"Unimplemented"},PV:{s:"Returns the present value of an investment: the total amount that a series of future payments is worth now",p:{rate:{d:"is the interest rate"},nper:{d:"is the total number of payment periods in an investment"},pmt:{d:"is the payment made each period and cannot change over the life of the investment"},fv:{d:"is the future value, or a cash balance you want to attain after the last payment is made",v:0},type:{d:"is a logical value: payment at the beginning of the period = 1; payment at the end of the period = 0",v:0}}},RATE:{s:"Returns the interest rate per period of a loan or an investment. For example, use 6%/4 for quarterly payments at 6% APR",p:{nper:{d:"is the total number of payment periods"},pmt:{d:"is the payment made each period and cannot change over the life of the loan or investment"},pv:{d:"is the present value: the total amount that a series of future payments is worth now"},fv:{d:"is the future value, or a cash balance you want to attain after the last payment is made",v:0},type:{d:"is a logical value: payment at the beginning of the period = 1; payment at the end of the period = 0",v:0},guess:{d:"is your guess for what the rate will be",v:.1}}},RECEIVED:{s:"Returns the amount received at maturity for a fully invested security",p:{settlement:{d:"is the security's settlement date, expressed as a serial date number"},maturity:{d:"is the security's maturity date, expressed as a serial date number"},investment:{d:"is the amount invested in the security"},discount:{d:"is the security's discount rate"},basis:{d:"is the type of day count basis to use",v:0}},h:"Unimplemented"},RRI:{s:"Returns an equivalent interest rate for the growth of an investment",p:{nper:{d:"is the total number of payment periods"},pv:{d:"is the present value of the investment"},fv:{d:"is the future value of the investment"}}},SLN:{s:"Returns the straight-line depreciation of an asset for one period",p:{cost:{d:"is the initial cost of the asset"},salvage:{d:"is the salvage value at the end of the life of the asset"},life:{d:"is the number of periods over which the asset is being depreciated (sometimes called the useful life of the asset)"}}},STOCKHISTORY:{s:"Returns an array of historical quote data for a symbol and date range you specify.",p:{stock:{d:"Symbol of financial instrument to be considered or a Stock data type."},startDate:{d:"First date to return data from."},endDate:{d:"Last date to return data from."},interval:{d:"A number indicating the granularity of the data; 0 - Daily, 1 - Weekly, 2 - Monthly",v:0},headers:{d:"A logical value to add column header data; 0 - No column header, 1 - Show column header, 2 - Show instrument identifier and column header",v:1},properties:{d:"properties1,properties2,... A number indicating which column of data to return; 0 through 5",v:"[0, 1, 2, 3, 4]"}},h:"Unimplemented"},SYD:{s:"Returns the sum-of-years' digits depreciation of an asset for a specified period",p:{cost:{d:"is the initial cost of the asset"},salvage:{d:"is the salvage value at the end of the life of the asset"},life:{d:"is the number of periods over which the asset is being depreciated (sometimes called the useful life of the asset)"},per:{d:"is the period and must use the same units as Life"}}},TBILLEQ:{s:"Returns the bond-equivalent yield for a treasury bill",p:{settlement:{d:"is the Treasury bill's settlement date, expressed as a serial date number"},maturity:{d:"is the Treasury bill's maturity date, expressed as a serial date number"},discount:{d:"is the Treasury bill's discount rate"}}},TBILLPRICE:{s:"Returns the price per $100 face value for a treasury bill",p:{settlement:{d:"is the Treasury bill's settlement date, expressed as a serial date number"},maturity:{d:"is the Treasury bill's maturity date, expressed as a serial date number"},discount:{d:"is the Treasury bill's discount rate"}}},TBILLYIELD:{s:"Returns the yield for a treasury bill",p:{settlement:{d:"is the Treasury bill's settlement date, expressed as a serial date number"},maturity:{d:"is the Treasury bill's maturity date, expressed as a serial date number"},pr:{d:"is the Treasury Bill's price per $100 face value"}}},VDB:{s:"Returns the depreciation of an asset for any period you specify, including partial periods, using the double-declining balance method or some other method you specify",p:{cost:{d:"is the initial cost of the asset"},salvage:{d:"is the salvage value at the end of the life of the asset"},life:{d:"is the number of periods over which the asset is being depreciated (sometimes called the useful life of the asset)"},startPeriod:{d:"is the first period in the calculation"},endPeriod:{d:"is the last period in the calculation"},factor:{d:"is the rate at which the balance declines",v:2},noSwitch:{d:"switch to straight-line depreciation when depreciation is greater than the declining balance = FALSE; do not switch = TRUE",v:!1}},h:"Unimplemented"},XIRR:{s:"Returns the internal rate of return for a schedule of cash flows",p:{values:{d:"is a series of cash flows that correspond to a schedule of payments in dates"},dates:{d:"is a schedule of payment dates that corresponds to the cash flow payments"},guess:{d:"is a number that you guess is close to the result of XIRR",v:.1}},h:"Unimplemented"},XNPV:{s:"Returns the net present value for a schedule of cash flows",p:{rate:{d:"is the discount rate to apply to the cash flows"},values:{d:"is a series of cash flows that correspond to a schedule of payments in dates"},dates:{d:"is a schedule of payment dates that corresponds to the cash flow payments"}}},YIELD:{s:"Returns the yield on a security that pays periodic interest",p:{settlement:{d:"is the security's settlement date, expressed as a serial date number"},maturity:{d:"is the security's maturity date, expressed as a serial date number"},rate:{d:"is the security's annual coupon rate"},pr:{d:"is the security's price per $100 face value"},redemption:{d:"is the security's redemption value per $100 face value"},frequency:{d:"is the number of coupon payments per year"},basis:{d:"is the type of day count basis to use",v:0}},h:"Unimplemented"},YIELDDISC:{s:"Returns the annual yield for a discounted security. For example, a treasury bill",p:{settlement:{d:"is the security's settlement date, expressed as a serial date number"},maturity:{d:"is the security's maturity date, expressed as a serial date number"},pr:{d:"is the security's price per $100 face value"},redemption:{d:"is the security's redemption value per $100 face value"},frequency:{d:"is the number of coupon payments per year"},basis:{d:"is the type of day count basis to use",v:0}},h:"Unimplemented"},YIELDMAT:{s:"Returns the annual yield of a security that pays interest at maturity",p:{settlement:{d:"is the security's settlement date, expressed as a serial date number"},maturity:{d:"is the security's maturity date, expressed as a serial date number"},issue:{d:"is the security's issue date, expressed as a serial date number"},rate:{d:"is the interest rate"},pr:{d:"is the security's price per $100 face value"},basis:{d:"is the type of day count basis to use",v:0}},h:"Unimplemented"}};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";/**
|
|
2
|
-
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.6.
|
|
2
|
+
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.6.11
|
|
3
3
|
*
|
|
4
4
|
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";/**
|
|
2
|
-
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.6.
|
|
2
|
+
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.6.11
|
|
3
3
|
*
|
|
4
4
|
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
6
|
-
*/Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const J=require("./
|
|
6
|
+
*/Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const J=require("./BykeMXuqQ1Tsu8VV.cjs");exports.fromBufferJSON=async(w,l)=>{let u=w;(function(t){if(t.byteLength<4)return!1;const i=new Uint8Array(t),r={gzip:[31,139],zip:[80,75,3,4],bz2:[66,90,104],br:[206,178,207,129]},n=Object.keys(r);for(let f=0;f<n.length;f++){const o=n[f],e=r[o];let a=!0;for(let s=0;s<e.length;s++)if(i[s]!==e[s]){a=!1;break}if(a)return o}return!1})(u)&&(u=await(async function(t,i="gzip"){let r;typeof SharedArrayBuffer<"u"&&t instanceof SharedArrayBuffer?(r=new ArrayBuffer(t.byteLength),new Uint8Array(r).set(new Uint8Array(t))):r=t;const n=new Blob([r]).stream(),f=new DecompressionStream(i),o=n.pipeThrough(f);return(await new Response(o).blob()).arrayBuffer()})(u));let b=new TextDecoder().decode(u);const g=JSON.parse(b),p={...l?.createWorkbookOptions??{},json:g};return new J.vy(p)},exports.toBufferJSON=async(w,l)=>{const u=await w.toJSON(),b=l?.whiteSpace??0;let g;l?.beforeWrite?.(w,u),g=b===0?JSON.stringify(u):(function(i,r=2){const n=[];function f(o){const e=r*o;return n[e]===void 0&&(n[e]=" ".repeat(e)),n[e]}return(function o(e,a,s,m){if(e==null||typeof e!="object")return JSON.stringify(e);const A=f(a),O=f(a+1);if(Array.isArray(e)){const c=e.length;if(c===0)return"[]";if(s!==0)return JSON.stringify(e);let y=`[
|
|
7
7
|
`;for(let h=0;h<c;h++)y+=O+o(e[h],a+1,s+1,!0),h<c-1&&(y+=`,
|
|
8
8
|
`);return y+=`
|
|
9
9
|
`+A+"]",y}const B=Object.keys(e),d=B.length;if(d===0)return"{}";if(!(s<2))return JSON.stringify(e);let S=`{
|
package/browser/cjs/index.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";/**
|
|
2
|
-
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.6.
|
|
2
|
+
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.6.11
|
|
3
3
|
*
|
|
4
4
|
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
6
|
-
*/Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./
|
|
6
|
+
*/Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./BykeMXuqQ1Tsu8VV.cjs");exports.SheetXL=e.SheetXL,exports.default=e.SheetXL;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";/**
|
|
2
|
-
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.6.
|
|
2
|
+
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.6.11
|
|
3
3
|
*
|
|
4
4
|
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: The license can be found at https://www.sheetxl.com/license.
|