@sheetxl/studio-vanilla 0.7.2 → 0.7.4
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/{tAQ8ynkWge4wOgYz.cjs → 8ORcPDrnyLtyRBC5.cjs} +4 -4
- package/browser/cjs/{WoKc4K_4RIU3ciM4.cjs → 8gwQqoquag37n7A4.cjs} +1 -1
- package/browser/cjs/{0xZaW8IXfmN9CdOY.cjs → 9YNUOzk1ChRHaQ0A.cjs} +1 -1
- package/browser/cjs/{qaCoVlKEYbGk9Tqd.cjs → A4yAgzK3Yi1hFoyF.cjs} +1 -1
- package/browser/cjs/{B74CYOTROrzYrxzb.cjs → B0Z0aRvslQ-luY7V.cjs} +2 -2
- package/browser/cjs/{BaCL4SywKL_MRWB3.cjs → B13vFaAy_2-LVET-.cjs} +1 -1
- package/browser/cjs/{D6JCF-VcFYHjJwSo.cjs → B2LQcZ92fWIJv2Gz.cjs} +1 -1
- package/browser/cjs/{EU7_mHgKH5vka7H8.cjs → B3C8eQFrLaL-fvH-.cjs} +23 -23
- package/browser/cjs/{k5QxXqB6_DGHKlbu.cjs → B47DWuTo-MqQ3jZz.cjs} +1 -1
- package/browser/cjs/{tiLC1pjWjzfWUm8X.cjs → B4foheVEUqSBFEkt.cjs} +1 -1
- package/browser/cjs/{PlCnIIYOcSprBGC5.cjs → B7MW5qdFHlXONQ6l.cjs} +2 -2
- package/browser/cjs/{FJ3mIQn7VY9GY22I.cjs → BNPrWaUmde-C-8Vx.cjs} +1 -1
- package/browser/cjs/{B1Z1xpkromy-czPe.cjs → BeOgEB1ihIJx02Af.cjs} +1 -1
- package/browser/cjs/{ClSF7YFaazHqAjnr.cjs → BgSDdeTv_xCIgBGD.cjs} +3 -3
- package/browser/cjs/{CSi4QGULUCdxSEbO.cjs → BlswEA5cHtxUqfLX.cjs} +2 -2
- package/browser/cjs/{TjH9kpedZhA38omO.cjs → BprNr_E9PJXMBdn3.cjs} +1 -1
- package/browser/cjs/{0JlIcUEueXhYyWNb.cjs → BrKvmHqdJp6qNOFB.cjs} +1 -1
- package/browser/cjs/{Bd2qyoxjnwrGhidp.cjs → ByA09xUI5G9YbxMz.cjs} +1 -1
- package/browser/cjs/{eG5JEAxSYONX-z9E.cjs → Bzqv14cPgkvKImRH.cjs} +1 -1
- package/browser/cjs/{lPSISi0qOjKDaqKy.cjs → C23bIG7E2r_Q0RAj.cjs} +3 -3
- package/browser/cjs/{DpZr7a_2HXVTydVH.cjs → C7GKCVS4tFPkLsu7.cjs} +1 -1
- package/browser/cjs/{BhifORO0sSYZAGwS.cjs → CAiDHxx6Gd0WmW60.cjs} +2 -2
- package/browser/cjs/{B5EGVpRROPipVKYS.cjs → CBNecyEra54crLep.cjs} +2 -2
- package/browser/cjs/{CfsbrfL6VcFwp3yu.cjs → CTT_jzhLio55PSMa.cjs} +4 -4
- package/browser/cjs/{Xg5oSKbplTfPt9TS.cjs → CWOIza8vwfNX5KIr.cjs} +1 -1
- package/browser/cjs/{XGegLQpr6FukJd8l.cjs → Cd4lc7sbp3kKfIbA.cjs} +2 -2
- package/browser/cjs/Cfr9LxunC2fgJtM2.cjs +11 -0
- package/browser/cjs/{BpHhfGxWIyW3QtUV.cjs → ChIk2dRWK_RpFnZl.cjs} +3 -3
- package/browser/cjs/{Bw1q6Sd1c2hMtOOR.cjs → CwsdwMi5Xs8b4Yhg.cjs} +1 -1
- package/browser/cjs/{C0RmPXQ-rfYPoI8u.cjs → D0ApB39VH979ZUCx.cjs} +1 -1
- package/browser/cjs/{CXeKLqjkMQXO9KhH.cjs → D3tIyPRHWxjXZjiu.cjs} +383 -383
- package/browser/cjs/{CIfWv7rMa38q6f0L.cjs → D4llH4xbqGzmuVYe.cjs} +1 -1
- package/browser/cjs/{x1FSXsaFxE99cok0.cjs → D6Gix9vU3zy6x0wx.cjs} +1 -1
- package/browser/cjs/{CU-2PUL6JBlRtpQz.cjs → D6RF346wXtLKkoJ-.cjs} +2 -2
- package/browser/cjs/{BGvpDHFhSuRHs5RO.cjs → D6pv0GOQycMcOyhu.cjs} +1 -1
- package/browser/cjs/{4iZvavwvmn0rhTxn.cjs → D80cB8tOFfQNF4oS.cjs} +2 -2
- package/browser/cjs/{RH9GrgAyL3AAYwDp.cjs → DAJLF0E4eUH-LX9t.cjs} +3 -3
- package/browser/cjs/{DYTBVHRt3b8uHzM4.cjs → DEzEcMfZx0I-QgJj.cjs} +1 -1
- package/browser/cjs/{BBMg-qJB22lUyI41.cjs → DFAQXO44wRvSlwCZ.cjs} +1 -1
- package/browser/cjs/DH59epfNQumKG6UO.cjs +6 -0
- package/browser/cjs/{BBtYU1Q1kNbnpDcm.cjs → DHdO6HcI4UB6Ks3h.cjs} +2 -2
- package/browser/cjs/{BGIyPGNEf8Lomntm.cjs → DQrZ7_9M-BH9Zqhw.cjs} +2 -2
- package/browser/cjs/{DlGLLcGeYLhHqRio.cjs → DVATnEUJxTQMsLOO.cjs} +1 -1
- package/browser/cjs/{CZwxHnjJ9xcBwYhh.cjs → De082R33Q24Czdd2.cjs} +2 -2
- package/browser/cjs/{D-2WwHIUUqSp3Jbe.cjs → Dg0Zl23k4ZwHK5Nt.cjs} +2 -2
- package/browser/cjs/{DIgRd--9FST0IdEP.cjs → DnirKDgaxys3R_a-.cjs} +1 -1
- package/browser/cjs/{Bg1_-pUM6oUckREE.cjs → DsWfniauN1Pu2Go3.cjs} +1 -1
- package/browser/cjs/{BSt1tONeiSRPAxTq.cjs → JZZCpLEpsC2LCYHH.cjs} +2 -2
- package/browser/cjs/{C6ZZ6T47QGouz4MT.cjs → KuiK9SKQWvWBM3--.cjs} +1 -1
- package/browser/cjs/MD9O1VNhhdH5RoiA.cjs +330 -0
- package/browser/cjs/{DqdVPoFTOkXqFYex.cjs → Xzq847s6zAFUFWcq.cjs} +1 -1
- package/browser/cjs/{cwuDUx-2alalzUBH.cjs → dGtOlClU3aLzqX9G.cjs} +1 -1
- package/browser/cjs/index.cjs +2 -2
- package/browser/cjs/{B0Mu1GGQ-3S5CU7d.cjs → ipGL9YCfyze4LbQj.cjs} +1 -1
- package/browser/cjs/oGzYb3Ra2l_2M4Fe.cjs +6 -0
- package/browser/cjs/{Do19-WLGnRk0_G0n.cjs → pI4yZSOoBjkftfKX.cjs} +1 -1
- package/browser/cjs/{BCnTUuUuevu6nEnz.cjs → q1y9tq62y47f7mxy.cjs} +1 -1
- package/browser/cjs/{CvqGbL6eEY3I8Ngz.cjs → v9zKXidk5AvKGkz7.cjs} +1 -1
- package/browser/esm/{CTsw0yf5bt7k3qWG.mjs → 0egw9xufQUK5XQZ5.mjs} +1 -1
- package/browser/esm/{CMkLnAVjJHFvCzoy.mjs → 6dkX2k_H0PA_iz5X.mjs} +1 -1
- package/browser/esm/{DP8s7iNkbbF7Eyzy.mjs → B3ECMs0QjPnXbJEw.mjs} +8 -8
- package/browser/esm/{B3XZbvaXV3ApK7Hj.mjs → B4U-HbDDW978wKeB.mjs} +3 -3
- package/browser/esm/{BBy8UbGSHIyzdpFD.mjs → B7wG8K-M9ldv3InT.mjs} +1 -1
- package/browser/esm/{BmNiBXRAfKWNXpUU.mjs → B9wr_AwSb0JtPoMv.mjs} +1 -1
- package/{cdn/assets/BWIBOomtdE2_KipC.js → browser/esm/BDSX8FAyHcAmsE-T.mjs} +1 -1
- package/browser/esm/{BEUfHNnN047_s26K.mjs → BTM0pYbZvfLqBj6Z.mjs} +2 -2
- package/{cdn/assets/CzbSPQUDABjZq2LB.js → browser/esm/BVvwFIl1xvigNZTj.mjs} +1 -1
- package/browser/esm/{BhuEAPol3Fq5l-Ed.mjs → BfH0870g7ogWyWTa.mjs} +1 -1
- package/browser/esm/{OlERfm9IV34QhIcB.mjs → Bgcy7JI6AzSoovcw.mjs} +1 -1
- package/browser/esm/{DOO-RkJmD1NR6_zg.mjs → Bioh6T6jynIt2aBf.mjs} +6 -6
- package/{cdn/assets/BvJC5tqT7q6QPgCu.js → browser/esm/BkjhtLKdZkaleH6j.mjs} +1 -1
- package/browser/esm/{BOd0fYlpKE4x288Z.mjs → BrGzSkrQVV-CCVui.mjs} +1 -1
- package/browser/esm/{DEHBBNT-niL-b_Gk.mjs → BsryTthQuZrS1w0h.mjs} +3 -3
- package/browser/esm/{Bg9pBWj8BDzNBARl.mjs → BzCCXyLxR1Tx_PQ6.mjs} +3 -3
- package/browser/esm/{DQZdcvjVesxbx4Iz.mjs → BzXLeceeaODxxlsN.mjs} +3 -3
- package/browser/esm/{BC5GJS88mZlCHjBC.mjs → C1TJTYVoSUvCsI72.mjs} +2 -2
- package/{cdn/assets/B6Mkrs8lfI41-MPU.js → browser/esm/C2sR98LOxBBkEECx.mjs} +1 -1
- package/browser/esm/{Cj2l0rI_2jrxoxK6.mjs → C3ZYwFCm4zV0PV7L.mjs} +1 -1
- package/browser/esm/{DvMvZWbJczQmEH5x.mjs → C4aAJQZlcVwK7Bv7.mjs} +1 -1
- package/browser/esm/{FdbEVcOmGb_TmHq-.mjs → C4dAWyoYzg5AFxSE.mjs} +13 -13
- package/browser/esm/{aRXG05KxC17tAM80.mjs → CFey64nL6K_JDHyo.mjs} +1 -1
- package/browser/esm/{CxX8qCo5JpvXo2TY.mjs → CHOlVNulci003tpR.mjs} +4 -4
- package/browser/esm/{CUr9ZV_ouv-d4YYB.mjs → CKOpVcqPaB2s4dTb.mjs} +1 -1
- package/browser/esm/{Dy8tHZ6dLxW5HIp0.mjs → CR9jsRCQsHJO01J4.mjs} +14 -12
- package/browser/esm/{Ch7fEnJjTfELcHep.mjs → CSU3ycILp620z_i8.mjs} +2 -2
- package/browser/esm/CUq15BKQ0G25o03H.mjs +48 -0
- package/{cdn/assets/CYCnpu04mAcFdf_Y.js → browser/esm/Cb1GBW9E5GfRvhuS.mjs} +1 -1
- package/browser/esm/{CX2k7Kcrs0NuRmVS.mjs → CbiCECqtZzDk6jeR.mjs} +2 -2
- package/browser/esm/{D8OjAcM-gsYs2yUT.mjs → Ce3pCanMx2TnvT0I.mjs} +16 -16
- package/browser/esm/{B5uRTCAV-kZQhqT-.mjs → CfEvt84zrQGwFpt2.mjs} +1 -1
- package/browser/esm/{CX6oHKRuMxCtELBt.mjs → ChrPZQnuQU-qVVa1.mjs} +25 -25
- package/browser/esm/{bqYPGVfNa1RL62BS.mjs → CqxLzaP5z64d6Lx4.mjs} +1 -1
- package/browser/esm/{BGZHht2E8MyhXZkj.mjs → CrqJMWWEjzFZ-_Pk.mjs} +1 -1
- package/browser/esm/{Nk3XfWGh2n78qlN9.mjs → CzgyRT7Dh3AVKcWl.mjs} +1 -1
- package/{cdn/assets/CnGlSn8YFgEr-PNs.js → browser/esm/DKrP22W3r6dc2ll8.mjs} +1 -1
- package/browser/esm/{CxJUNyIFNYQB4t5O.mjs → DRVrzDz7nVU_faHO.mjs} +383 -383
- package/{cdn/assets/WBfvZdqvuzGXYHn5.js → browser/esm/DYqsn4bTq8tt9z2d.mjs} +1 -1
- package/browser/esm/{Dka3m7ki7rwK4dJr.mjs → DhT-2pf586yDvyqZ.mjs} +1 -1
- package/browser/esm/{Ck-NL9kdky7yymfq.mjs → DjtYK-s8g6tP0TRw.mjs} +2 -2
- package/browser/esm/{DVMjIpRMHwBoLb17.mjs → DswWgS_zGnCjt804.mjs} +5 -5
- package/browser/esm/{eZNYVnXio8MjaUQ3.mjs → DvaoVWL-VdS7k_i3.mjs} +2 -2
- package/{cdn/assets/CEKVD84oEReoCt7z.js → browser/esm/J_m4I2bQAeYSJPWS.mjs} +1 -1
- package/browser/esm/{ChyLU-qambE5Cer8.mjs → JgQgURqWEwvTv_wi.mjs} +1 -1
- package/{cdn/assets/DIfZkG6g0X7_frZk.js → browser/esm/NohZsi_dnB1kc2oI.mjs} +1 -1
- package/browser/esm/{C-959c3hdMZBTFub.mjs → P5B5SOdOUaZr99nj.mjs} +5 -5
- package/{cdn/assets/CplNLHZTwRjhkgtZ.js → browser/esm/UQSXr-cpRWqp8Ktj.mjs} +2 -2
- package/{cdn/assets/D3IGZGUCTa6yCgZz.js → browser/esm/VzlXiTXfqwuLrkgg.mjs} +1 -1
- package/browser/esm/{CMPSu64y8soBjhZi.mjs → YFMiozbFWZjo74Td.mjs} +1 -1
- package/browser/esm/{BT_-L-P67i6wQIlA.mjs → Z1fSZhtHNjC6OoN6.mjs} +15091 -14998
- package/{cdn/assets/ByIejS8Hi0JXEWOv.js → browser/esm/_N4vH5kWapbfarDc.mjs} +1 -1
- package/browser/esm/ee5ZMqTpvvsprimB.mjs +1480 -0
- package/browser/esm/index.mjs +2 -2
- package/browser/esm/{CIFlNJX1V1NqOSL4.mjs → ji2x5yzvwhn2JiFp.mjs} +1 -1
- package/browser/esm/{ClsM8HBeXD4VTfzr.mjs → m7fz1VY0WrHhVE1u.mjs} +1 -1
- package/browser/esm/{INsil9MokeRZA1Yk.mjs → uYFnTWRHS-M71aW3.mjs} +48 -48
- package/{cdn/assets/DjV-m93GXkWlTn7n.js → browser/esm/wrn_BUWuBI2ou-lE.mjs} +1 -1
- package/cdn/assets/{CTsw0yf5bt7k3qWG.js → 0egw9xufQUK5XQZ5.js} +1 -1
- package/cdn/assets/{CMkLnAVjJHFvCzoy.js → 6dkX2k_H0PA_iz5X.js} +1 -1
- package/cdn/assets/{iT6CIjmMLScvb29H.js → B4MTgKmMZcXoDlYG.js} +2 -2
- package/cdn/assets/{BBy8UbGSHIyzdpFD.js → B7wG8K-M9ldv3InT.js} +1 -1
- package/cdn/assets/{BmNiBXRAfKWNXpUU.js → B9wr_AwSb0JtPoMv.js} +1 -1
- package/{browser/esm/BWIBOomtdE2_KipC.mjs → cdn/assets/BDSX8FAyHcAmsE-T.js} +1 -1
- package/cdn/assets/{BBkojPuL0y3TpSwy.js → BFfLoUaapPcM_eb0.js} +10 -10
- package/cdn/assets/{DlMXEBT9RML19eig.js → BHyn4CasWPQ92Eud.js} +26 -26
- package/{browser/esm/CzbSPQUDABjZq2LB.mjs → cdn/assets/BVvwFIl1xvigNZTj.js} +1 -1
- package/cdn/assets/{CuvMveChV8ylcO8-.js → BZ1FXLdV7kLoj8S2.js} +4 -4
- package/cdn/assets/{jmUU32lmlRPz8MPG.js → BZpRwfavZD9rO_v8.js} +383 -383
- package/{browser/esm/DAMIsTTJipXpdZXr.mjs → cdn/assets/BeENppGCoF_AwA6g.js} +2 -2
- package/cdn/assets/{BhuEAPol3Fq5l-Ed.js → BfH0870g7ogWyWTa.js} +1 -1
- package/cdn/assets/{OlERfm9IV34QhIcB.js → Bgcy7JI6AzSoovcw.js} +1 -1
- package/{browser/esm/BvJC5tqT7q6QPgCu.mjs → cdn/assets/BkjhtLKdZkaleH6j.js} +1 -1
- package/cdn/assets/{B-NY3UwkHp7hcB2a.js → Bp1BVz04Xy4W95PB.js} +8 -8
- package/cdn/assets/{CFi1_-HF6o0f_bgN.js → BqbxC6sS2OoaM51Y.js} +2 -2
- package/cdn/assets/{BOd0fYlpKE4x288Z.js → BrGzSkrQVV-CCVui.js} +1 -1
- package/cdn/assets/{DCUHKQhPbhG9Ko0f.js → Bv7E-FgORAWOkyiV.js} +2 -2
- package/{browser/esm/B6Mkrs8lfI41-MPU.mjs → cdn/assets/C2sR98LOxBBkEECx.js} +1 -1
- package/cdn/assets/{Cj2l0rI_2jrxoxK6.js → C3ZYwFCm4zV0PV7L.js} +1 -1
- package/cdn/assets/{DvMvZWbJczQmEH5x.js → C4aAJQZlcVwK7Bv7.js} +1 -1
- package/cdn/assets/{aRXG05KxC17tAM80.js → CFey64nL6K_JDHyo.js} +1 -1
- package/cdn/assets/{CUr9ZV_ouv-d4YYB.js → CKOpVcqPaB2s4dTb.js} +1 -1
- package/cdn/assets/{Bi0XAZnOKm1BHMDJ.js → CR-xAI2miMYh-gdy.js} +8 -8
- package/cdn/assets/{xZ-_PIgqrJR6Aoid.js → CaHwS8usPT5gIFuY.js} +14 -14
- package/{browser/esm/CYCnpu04mAcFdf_Y.mjs → cdn/assets/Cb1GBW9E5GfRvhuS.js} +1 -1
- package/cdn/assets/{DtQSYkSfDiYViQ1O.js → CdoIc8OarIB8C5y3.js} +18 -18
- package/cdn/assets/{B5uRTCAV-kZQhqT-.js → CfEvt84zrQGwFpt2.js} +1 -1
- package/cdn/assets/{BGZHht2E8MyhXZkj.js → CrqJMWWEjzFZ-_Pk.js} +1 -1
- package/cdn/assets/{BsXEhnx6Qr_4QdIP.js → CvTBNZMoY5-DwtAb.js} +2 -2
- package/cdn/assets/CxFPsh5ojrvYoLqP.js +1480 -0
- package/cdn/assets/{Nk3XfWGh2n78qlN9.js → CzgyRT7Dh3AVKcWl.js} +1 -1
- package/cdn/assets/{DIEyT2RH6embCVJO.js → D4aEzWRsHbRiDZQf.js} +15040 -14947
- package/cdn/assets/{DQ50XfTma-DdAwis.js → D6gMyvRPXwYEpaiW.js} +1 -1
- package/cdn/assets/{Dow86PcQmdzy6Gnj.js → DAMni_kLlITX8qAW.js} +50 -50
- package/cdn/assets/{BCr6-n9xQFLepSiu.js → DK5o4bmDWZoxlyie.js} +3 -3
- package/{browser/esm/CnGlSn8YFgEr-PNs.mjs → cdn/assets/DKrP22W3r6dc2ll8.js} +1 -1
- package/cdn/assets/{Dte0EXhwPe4nCvzs.js → DMOM_dk7px3Id2fD.js} +16 -14
- package/cdn/assets/{C-HpMtCGF2w8z3PH.js → DTHfoEyAv88YJtid.js} +2 -2
- package/cdn/assets/{CmMyE3YjiPCRzfG3.js → DWxb-keKnWDZ32ov.js} +2 -2
- package/{browser/esm/WBfvZdqvuzGXYHn5.mjs → cdn/assets/DYqsn4bTq8tt9z2d.js} +1 -1
- package/cdn/assets/{C27-HwlEm9v_nrCF.js → DZSQDf-SlYIAnwqI.js} +2 -2
- package/cdn/assets/{Dka3m7ki7rwK4dJr.js → DhT-2pf586yDvyqZ.js} +1 -1
- package/cdn/assets/{DpnxBLL2_2DUDk1n.js → DuVOZ5CVHDzuF-Wf.js} +5 -5
- package/cdn/assets/{srvA2b1zeAqE3hcv.js → IQp8evg14s1_pMGI.js} +3 -3
- package/{browser/esm/CEKVD84oEReoCt7z.mjs → cdn/assets/J_m4I2bQAeYSJPWS.js} +1 -1
- package/cdn/assets/{ChyLU-qambE5Cer8.js → JgQgURqWEwvTv_wi.js} +1 -1
- package/cdn/assets/{D0HYcOC6ppNt4ce3.js → McZLFG7PefCrtXxD.js} +1 -1
- package/{browser/esm/DIfZkG6g0X7_frZk.mjs → cdn/assets/NohZsi_dnB1kc2oI.js} +1 -1
- package/cdn/assets/{BN3YW5jMoCIzAxFC.js → TAuxEP6K9MOe8hvY.js} +3 -3
- package/cdn/assets/{BzsKavCtfHdYMELA.js → UGRaW68kY1lQin4c.js} +3 -3
- package/{browser/esm/D3IGZGUCTa6yCgZz.mjs → cdn/assets/VzlXiTXfqwuLrkgg.js} +1 -1
- package/cdn/assets/{CMPSu64y8soBjhZi.js → YFMiozbFWZjo74Td.js} +1 -1
- package/{browser/esm/ByIejS8Hi0JXEWOv.mjs → cdn/assets/_N4vH5kWapbfarDc.js} +1 -1
- package/cdn/assets/ddSl0Ga-rXVB9Yci.js +22 -0
- package/cdn/assets/gRJ4OcAtWEBEGLJD.js +48 -0
- package/cdn/assets/{BDo8bFO59SyelftP.js → jeiAiNavXwDjx5bH.js} +17 -17
- package/cdn/assets/{CIFlNJX1V1NqOSL4.js → ji2x5yzvwhn2JiFp.js} +1 -1
- package/cdn/assets/{ClsM8HBeXD4VTfzr.js → m7fz1VY0WrHhVE1u.js} +1 -1
- package/cdn/assets/{uAVHmmDWOwppE6xE.js → mgzh0Oj545G9VFmY.js} +9 -9
- package/cdn/assets/{D4-e75z6d_DXa5pJ.js → pv07rmyN2zy5KZrb.js} +2 -2
- package/cdn/assets/{DSU1d5GvO21PLhGa.js → tbqH71TvrNeRjwAy.js} +3 -3
- package/{browser/esm/DjV-m93GXkWlTn7n.mjs → cdn/assets/wrn_BUWuBI2ou-lE.js} +1 -1
- package/cdn/index.js +2 -2
- package/cdn/loader.js +1 -1
- package/package.json +3 -3
- package/browser/cjs/BHYQEIDiXdpDprGm.cjs +0 -11
- package/browser/cjs/BiBsgEVyhyvZhFwd.cjs +0 -6
- package/browser/cjs/D-llMen45swGBAKB.cjs +0 -6
- package/browser/cjs/kEkuRcJueaS4LnSp.cjs +0 -330
- package/browser/esm/BVCbjrRaSItDIulh.mjs +0 -46
- package/browser/esm/CqnQiMz-oVs4I6T2.mjs +0 -1467
- package/cdn/assets/B79KMEbZmWkwjtwf.js +0 -22
- package/cdn/assets/Bno4lvuzSHzTGzBR.js +0 -46
- package/cdn/assets/CWJl6FF_2vyPvPWJ.js +0 -1467
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.7.
|
|
2
|
+
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.7.4
|
|
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.
|
|
@@ -47,7 +47,7 @@ class u {
|
|
|
47
47
|
}
|
|
48
48
|
}
|
|
49
49
|
const s = `/**
|
|
50
|
-
* @license @sheetxl/primitives - Primitives - Base types for SheetXL functions. - v0.7.
|
|
50
|
+
* @license @sheetxl/primitives - Primitives - Base types for SheetXL functions. - v0.7.4
|
|
51
51
|
*
|
|
52
52
|
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
53
53
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
@@ -83,7 +83,7 @@ var Re, ae, d;
|
|
|
83
83
|
}
|
|
84
84
|
}
|
|
85
85
|
e.Known = t;
|
|
86
|
-
class
|
|
86
|
+
class r extends t {
|
|
87
87
|
constructor(c, h) {
|
|
88
88
|
super(e.Code.Parse, e.Label.Parse, c, h);
|
|
89
89
|
}
|
|
@@ -95,8 +95,8 @@ var Re, ae, d;
|
|
|
95
95
|
return { line: c?.line ?? 1, column: c?.column ?? 1, offset: c?.offset ?? 0, length: c?.length ?? 0 };
|
|
96
96
|
}
|
|
97
97
|
}
|
|
98
|
-
e.Parse =
|
|
99
|
-
class
|
|
98
|
+
e.Parse = r;
|
|
99
|
+
class n extends t {
|
|
100
100
|
constructor(c, h) {
|
|
101
101
|
super(e.Code.Null, e.Label.Null, c, h);
|
|
102
102
|
}
|
|
@@ -104,7 +104,7 @@ var Re, ae, d;
|
|
|
104
104
|
this.code = e.Code.Null;
|
|
105
105
|
}
|
|
106
106
|
}
|
|
107
|
-
e.Null =
|
|
107
|
+
e.Null = n;
|
|
108
108
|
class o extends t {
|
|
109
109
|
constructor(c, h) {
|
|
110
110
|
super(e.Code.Div0, e.Label.Div0, c, h);
|
|
@@ -252,21 +252,21 @@ var Re, ae, d;
|
|
|
252
252
|
})(d || (d = {}));
|
|
253
253
|
const _ = {};
|
|
254
254
|
_[d.Code.Parse] = d.Parse, _[d.Code.Null] = d.Null, _[d.Code.Div0] = d.Div0, _[d.Code.Value] = d.Value, _[d.Code.Ref] = d.Ref, _[d.Code.Name] = d.Name, _[d.Code.Num] = d.Num, _[d.Code.NA] = d.NA, _[d.Code.GettingData] = d.GettingData, _[d.Code.Spill] = d.Spill, _[d.Code.Connect] = d.Connect, _[d.Code.Blocked] = d.Blocked, _[d.Code.Unknown] = d.Unknown, _[d.Code.Field] = d.Field, _[d.Code.Calc] = d.Calc, _[d.Code.Busy] = d.Busy, _[d.Code.Python] = d.Python, _[d.Code.Timeout] = d.Timeout;
|
|
255
|
-
const
|
|
255
|
+
const rt = /* @__PURE__ */ new Map(), Te = /* @__PURE__ */ new Map(), nt = /* @__PURE__ */ new Map(), ot = /* @__PURE__ */ new Map(), ke = Object.keys(_);
|
|
256
256
|
for (let e = 0; e < ke.length; e++) {
|
|
257
|
-
const t = ke[e],
|
|
258
|
-
|
|
259
|
-
const
|
|
260
|
-
|
|
257
|
+
const t = ke[e], r = _[t];
|
|
258
|
+
nt.set(d.Label[t], r), ot.set(d.Code[t], r);
|
|
259
|
+
const n = new r();
|
|
260
|
+
rt.set(n.getLabel(), n), Te.set(n.getCode(), n);
|
|
261
261
|
}
|
|
262
262
|
const xt = Te.get(d.Code.Unknown);
|
|
263
263
|
var T;
|
|
264
|
-
(T = d || (d = {})).BuiltIn = { Parse: new T.Parse(), Null: new T.Null(), Div0: new T.Div0(), Value: new T.Value(), Ref: new T.Ref(), Name: new T.Name(), Num: new T.Num(), NA: new T.NA(), GettingData: new T.GettingData(), Spill: new T.Spill(), Connect: new T.Connect(), Blocked: new T.Blocked(), Unknown: new T.Unknown(), Field: new T.Field(), Calc: new T.Calc(), Busy: new T.Busy(), Python: new T.Python(), Timeout: new T.Timeout() }, T.getBuiltInByLabel = (e) =>
|
|
265
|
-
let
|
|
266
|
-
return
|
|
264
|
+
(T = d || (d = {})).BuiltIn = { Parse: new T.Parse(), Null: new T.Null(), Div0: new T.Div0(), Value: new T.Value(), Ref: new T.Ref(), Name: new T.Name(), Num: new T.Num(), NA: new T.NA(), GettingData: new T.GettingData(), Spill: new T.Spill(), Connect: new T.Connect(), Blocked: new T.Blocked(), Unknown: new T.Unknown(), Field: new T.Field(), Calc: new T.Calc(), Busy: new T.Busy(), Python: new T.Python(), Timeout: new T.Timeout() }, T.getBuiltInByLabel = (e) => rt.get(e), T.newTypedError = (e, t, r) => {
|
|
265
|
+
let n;
|
|
266
|
+
return n = typeof e == "string" ? nt.get(e) : ot.get(e), n || (n = T.Unknown), new n(t, r);
|
|
267
267
|
}, T.getBuiltInById = (e) => Te.get(e) || xt;
|
|
268
268
|
/**
|
|
269
|
-
* @license @sheetxl/utils - Utils - Utilities used by most SheetXL components. - v0.7.
|
|
269
|
+
* @license @sheetxl/utils - Utils - Utilities used by most SheetXL components. - v0.7.4
|
|
270
270
|
*
|
|
271
271
|
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
272
272
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
@@ -276,30 +276,30 @@ Object.freeze(Object.defineProperty({ __proto__: null, EmptyBounds: Tt, EmptyRec
|
|
|
276
276
|
const j = { Column: "column", Row: "row" }, _t = Object.freeze({ colIndex: 0, rowIndex: 0 }), Ot = Object.freeze({ colStart: 0, rowStart: 0, colEnd: 0, rowEnd: 0 }), it = (e, t) => e.colStart === t.colStart ? e.rowStart - t.rowStart : e.colStart - t.colStart, at = (e, t) => e.rowStart === t.rowStart ? e.colStart - t.colStart : e.rowStart - t.rowStart, It = (e, t) => e.rowEnd === t.rowEnd ? t.colEnd - e.colEnd : t.rowEnd - e.rowEnd, Nt = (e, t) => e.colEnd === t.colEnd ? t.rowEnd - e.rowEnd : t.colEnd - e.colEnd, Le = (e, t) => e.colIndex === t.colIndex ? e.rowIndex - t.rowIndex : e.colIndex - t.colIndex, Ae = (e, t) => e.rowIndex === t.rowIndex ? e.colIndex - t.colIndex : e.rowIndex - t.rowIndex, Me = (e, t) => e.rowIndex === t.rowIndex ? t.colIndex - e.colIndex : t.rowIndex - e.rowIndex, je = (e, t) => e.colIndex === t.colIndex ? t.rowIndex - e.rowIndex : t.colIndex - e.colIndex, lt = (e = j.Row, t = !1) => t ? e !== j.Column ? It : Nt : e !== j.Column ? at : it, Pe = (e, t) => e === t || !(!e || !t) && e.rowIndex === t.rowIndex && e.colIndex === t.colIndex, Se = (e, t) => e === t || !(!e || !t) && e.rowStart === t.rowStart && e.rowEnd === t.rowEnd && e.colStart === t.colStart && e.colEnd === t.colEnd, xe = (e, t) => !(!e || !t) && !(e.colStart > t.colEnd || t.colStart > e.colEnd) && !(e.rowStart > t.rowEnd || t.rowStart > e.rowEnd), Fe = (e, t) => {
|
|
277
277
|
if (e === t) return !0;
|
|
278
278
|
if (!e || !t || e.length !== t.length) return !1;
|
|
279
|
-
for (let
|
|
279
|
+
for (let r = 0; r < e.length; r++) if (!Se(e[r], t[r])) return !1;
|
|
280
280
|
return !0;
|
|
281
|
-
}, me = (e, t,
|
|
281
|
+
}, me = (e, t, r) => {
|
|
282
282
|
if (!e && !t) return null;
|
|
283
|
-
if (!e) return
|
|
284
|
-
if (!t) return
|
|
285
|
-
const
|
|
286
|
-
let l =
|
|
287
|
-
return l ? (l.colStart =
|
|
283
|
+
if (!e) return r ? t : { ...t };
|
|
284
|
+
if (!t) return r ? e : { ...e };
|
|
285
|
+
const n = Math.min(e.colStart, t.colStart), o = Math.min(e.rowStart, t.rowStart), i = Math.max(e.colEnd, t.colEnd), a = Math.max(e.rowEnd, t.rowEnd);
|
|
286
|
+
let l = r;
|
|
287
|
+
return l ? (l.colStart = n, l.rowStart = o, l.colEnd = i, l.rowEnd = a) : l = { colStart: n, rowStart: o, colEnd: i, rowEnd: a }, l;
|
|
288
288
|
}, De = (e, t) => {
|
|
289
289
|
if (!t || t.length === 0) return e;
|
|
290
|
-
const
|
|
291
|
-
for (let
|
|
292
|
-
const o = t[
|
|
293
|
-
xe(
|
|
290
|
+
const r = { ...e };
|
|
291
|
+
for (let n = 0; n < t.length; n++) {
|
|
292
|
+
const o = t[n];
|
|
293
|
+
xe(r, o) && (r.rowStart = Math.min(r.rowStart, o.rowStart), r.colStart = Math.min(r.colStart, o.colStart), r.rowEnd = Math.max(r.rowEnd, o.rowEnd), r.colEnd = Math.max(r.colEnd, o.colEnd));
|
|
294
294
|
}
|
|
295
|
-
return
|
|
296
|
-
}, Rt = [null, null], kt = (e, t,
|
|
295
|
+
return r;
|
|
296
|
+
}, Rt = [null, null], kt = (e, t, r) => {
|
|
297
297
|
if (e[0].value === e[1].value) return t;
|
|
298
298
|
};
|
|
299
|
-
function Ue(e, t = 2,
|
|
299
|
+
function Ue(e, t = 2, r, n = j.Row, o) {
|
|
300
300
|
let i = [...e];
|
|
301
301
|
if (t <= 0 || e.length <= 1) return i;
|
|
302
|
-
let a =
|
|
302
|
+
let a = n === j.Column, l = 0, u = !1;
|
|
303
303
|
do {
|
|
304
304
|
const p = i.sort(lt(a ? j.Row : j.Column));
|
|
305
305
|
i = [], i.push(p[0]);
|
|
@@ -310,9 +310,9 @@ function Ue(e, t = 2, n, r = j.Row, o) {
|
|
|
310
310
|
let J = !1;
|
|
311
311
|
if (J = a ? f && x === I.rowStart && D === I.rowEnd && A + 1 === I.colStart : f && y === I.colStart && A === I.colEnd && D + 1 === I.rowStart, J) {
|
|
312
312
|
let E = { colStart: y, rowStart: x, colEnd: a ? I.colEnd : A, rowEnd: a ? D : I.rowEnd };
|
|
313
|
-
if (f.value !== void 0 && (E.value = f.value),
|
|
313
|
+
if (f.value !== void 0 && (E.value = f.value), r) {
|
|
314
314
|
const c = o ?? [null, null];
|
|
315
|
-
c[0] = f, c[1] = I, E =
|
|
315
|
+
c[0] = f, c[1] = I, E = r(c, E, n);
|
|
316
316
|
}
|
|
317
317
|
if (E) {
|
|
318
318
|
i[g] = E, u = !0, f = E, y = f.colStart, x = f.rowStart, A = f.colEnd, D = f.rowEnd;
|
|
@@ -327,11 +327,11 @@ function Ue(e, t = 2, n, r = j.Row, o) {
|
|
|
327
327
|
}
|
|
328
328
|
Object.freeze(Object.defineProperty({ __proto__: null, EmptyCell: _t, EmptyRange: Ot, cellToRange: (e, t) => {
|
|
329
329
|
if (!e) return null;
|
|
330
|
-
let
|
|
331
|
-
return
|
|
330
|
+
let r = t;
|
|
331
|
+
return r || (r = { ...e }, delete r.colIndex, delete r.rowIndex), r.colStart = e.colIndex ?? 0, r.rowStart = e.rowIndex ?? 0, r.colEnd = e.colIndex ?? 0, r.rowEnd = e.rowIndex ?? 0, r;
|
|
332
332
|
}, columnFirstCellComparator: Le, columnFirstRangeComparator: it, createCellComparator: (e = j.Row, t = !1) => t ? e !== j.Column ? Me : je : e !== j.Column ? Ae : Le, createConflatingRanges: (e, t = !1) => {
|
|
333
|
-
const
|
|
334
|
-
let
|
|
333
|
+
const r = [];
|
|
334
|
+
let n, o, i = Number.MIN_SAFE_INTEGER, a = Number.MIN_SAFE_INTEGER;
|
|
335
335
|
return { append: (l, u, p) => {
|
|
336
336
|
let w = !0;
|
|
337
337
|
const g = p !== void 0;
|
|
@@ -339,44 +339,44 @@ Object.freeze(Object.defineProperty({ __proto__: null, EmptyCell: _t, EmptyRange
|
|
|
339
339
|
const x = e ? e(o, p, t) : o === p ? p : void 0;
|
|
340
340
|
x === void 0 ? w = !1 : p = x;
|
|
341
341
|
}
|
|
342
|
-
if (w && u === a + 1 && l === i) return t ?
|
|
343
|
-
|
|
342
|
+
if (w && u === a + 1 && l === i) return t ? n.rowEnd = u : n.colEnd = u, a = u, void (o = p);
|
|
343
|
+
n && r.push(n);
|
|
344
344
|
const f = t ? l : u, y = t ? u : l;
|
|
345
|
-
|
|
346
|
-
}, done: (l) => (
|
|
347
|
-
}, createRangeComparator: lt, defaultRange: (e, t,
|
|
345
|
+
n = { colStart: f, rowStart: y, colEnd: f, rowEnd: y }, g && (n.value = p), i = l, a = u, o = p;
|
|
346
|
+
}, done: (l) => (n && (r.push(n), n = null), l ? Ue(r, 3, l === !0 ? kt : l, t ? j.Column : j.Row, Rt) : r) };
|
|
347
|
+
}, createRangeComparator: lt, defaultRange: (e, t, r) => e ? r ? (r.colStart = e.colStart ?? t.colStart, r.rowStart = e.rowStart ?? t.rowStart, r.colEnd = e.colEnd ?? t.colEnd, r.rowEnd = e.rowEnd ?? t.rowEnd, r) : { colStart: e.colStart ?? t.colStart, rowStart: e.rowStart ?? t.rowStart, colEnd: e.colEnd ?? t.colEnd, rowEnd: e.rowEnd ?? t.rowEnd } : t, extendRangeToIntersectingRanges: De, extendRangeToUnionRanges: (e, t) => {
|
|
348
348
|
if (!t || t.length === 0) return e;
|
|
349
|
-
let
|
|
350
|
-
for (; !Se(
|
|
351
|
-
return
|
|
349
|
+
let r = e, n = null;
|
|
350
|
+
for (; !Se(r, n); ) n = r, r = De(n, t);
|
|
351
|
+
return r;
|
|
352
352
|
}, indexOfCoords: (e, t) => {
|
|
353
|
-
const
|
|
354
|
-
for (let
|
|
353
|
+
const r = { colStart: e.colIndex, rowStart: e.rowIndex, colEnd: e.colIndex, rowEnd: e.rowIndex };
|
|
354
|
+
for (let n = t.length - 1; n >= 0; n--) if (xe(r, t[n])) return n;
|
|
355
355
|
return -1;
|
|
356
|
-
}, intersectRanges: (e, t,
|
|
357
|
-
if (!e) return
|
|
358
|
-
if (!t) return
|
|
356
|
+
}, intersectRanges: (e, t, r) => {
|
|
357
|
+
if (!e) return r ? t : { ...t };
|
|
358
|
+
if (!t) return r ? e : { ...e };
|
|
359
359
|
if (!e && !t || e.rowStart > t.rowEnd || e.rowEnd < t.rowStart || e.colStart > t.colEnd || e.colEnd < t.colStart) return null;
|
|
360
|
-
const
|
|
361
|
-
let l =
|
|
362
|
-
return l ? (l.colStart =
|
|
360
|
+
const n = Math.max(e.colStart, t.colStart), o = Math.max(e.rowStart, t.rowStart), i = Math.min(e.colEnd, t.colEnd), a = Math.min(e.rowEnd, t.rowEnd);
|
|
361
|
+
let l = r;
|
|
362
|
+
return l ? (l.colStart = n, l.rowStart = o, l.colEnd = i, l.rowEnd = a) : l = { colStart: n, rowStart: o, colEnd: i, rowEnd: a }, l;
|
|
363
363
|
}, isCellWithinRange: (e, t) => {
|
|
364
364
|
if (!e || !t) return !1;
|
|
365
|
-
const
|
|
366
|
-
if (
|
|
367
|
-
const
|
|
368
|
-
return !(
|
|
369
|
-
}, isEqualCells: Pe, isEqualRanges: Se, isEqualRangesArrays: Fe, isEqualSelectionCoords: (e, t) => e === t || !(!e || !t) && e.rangeIndex === t.rangeIndex && !!Pe(e.cell, t.cell) && Fe(e.ranges, t.ranges), isRangeWithinRange: (e, t) => !(e.rowStart < t.rowStart || e.rowEnd > t.rowEnd) && !(e.colStart < t.colStart || e.colEnd > t.colEnd), isRangesIntersect: xe, isSingleCell: (e) => !!e && e.rowEnd === e.rowStart && e.colStart === e.colEnd, isValidRange: (e) => !!e && !(typeof e.colStart != "number" || e.colStart < 0) && !(typeof e.colEnd != "number" || e.colEnd < e.colStart) && !(typeof e.rowStart != "number" || e.rowStart < 0) && !(typeof e.rowEnd != "number" || e.rowEnd < e.rowStart), mergeRangedValues: Ue, reverseColumnFirstCellComparator: je, reverseRowFirstCellComparator: Me, rowFirstCellComparator: Ae, rowFirstRangeComparator: at, sanitizeRange: (e) => e ? { colStart: e.colIndex ?? e.colStart ?? 0, rowStart: e.rowIndex ?? e.rowStart ?? 0, colEnd: e.colIndex ?? e.colEnd ?? 0, rowEnd: e.rowIndex ?? e.rowEnd ?? 0 } : null, translateRange: (e, t = -e.rowStart,
|
|
365
|
+
const r = e.rowIndex;
|
|
366
|
+
if (r < t.rowStart || r > t.rowEnd) return !1;
|
|
367
|
+
const n = e.colIndex;
|
|
368
|
+
return !(n < t.colStart || n > t.colEnd);
|
|
369
|
+
}, isEqualCells: Pe, isEqualRanges: Se, isEqualRangesArrays: Fe, isEqualSelectionCoords: (e, t) => e === t || !(!e || !t) && e.rangeIndex === t.rangeIndex && !!Pe(e.cell, t.cell) && Fe(e.ranges, t.ranges), isRangeWithinRange: (e, t) => !(e.rowStart < t.rowStart || e.rowEnd > t.rowEnd) && !(e.colStart < t.colStart || e.colEnd > t.colEnd), isRangesIntersect: xe, isSingleCell: (e) => !!e && e.rowEnd === e.rowStart && e.colStart === e.colEnd, isValidRange: (e) => !!e && !(typeof e.colStart != "number" || e.colStart < 0) && !(typeof e.colEnd != "number" || e.colEnd < e.colStart) && !(typeof e.rowStart != "number" || e.rowStart < 0) && !(typeof e.rowEnd != "number" || e.rowEnd < e.rowStart), mergeRangedValues: Ue, reverseColumnFirstCellComparator: je, reverseRowFirstCellComparator: Me, rowFirstCellComparator: Ae, rowFirstRangeComparator: at, sanitizeRange: (e) => e ? { colStart: e.colIndex ?? e.colStart ?? 0, rowStart: e.rowIndex ?? e.rowStart ?? 0, colEnd: e.colIndex ?? e.colEnd ?? 0, rowEnd: e.rowIndex ?? e.rowEnd ?? 0 } : null, translateRange: (e, t = -e.rowStart, r = -e.colStart, n) => n ? (n.colStart = e.colStart + r, n.rowStart = e.rowStart + t, n.colEnd = e.colEnd + r, n.rowEnd = e.rowEnd + t, n) : { colStart: e.colStart + r, rowStart: e.rowStart + t, colEnd: e.colEnd + r, rowEnd: e.rowEnd + t }, unionRanges: me, unionRangesArrays: (e, t, r) => {
|
|
370
370
|
if (!e || e.length === 0) return null;
|
|
371
371
|
if (e.length === 1 && !t) return e[0];
|
|
372
|
-
let
|
|
373
|
-
for (let o = 1; o < e.length; o++)
|
|
374
|
-
return t && (
|
|
372
|
+
let n = e[0];
|
|
373
|
+
for (let o = 1; o < e.length; o++) n = me(n, e[o], r);
|
|
374
|
+
return t && (n = me(n, t, r)), n;
|
|
375
375
|
} }, Symbol.toStringTag, { value: "Module" }));
|
|
376
376
|
function Lt(e) {
|
|
377
377
|
const t = Object.prototype.toString.call(e);
|
|
378
|
-
return t === "[object RegExp]" || t === "[object Date]" || (function(
|
|
379
|
-
return
|
|
378
|
+
return t === "[object RegExp]" || t === "[object Date]" || (function(r) {
|
|
379
|
+
return r.$$typeof === At;
|
|
380
380
|
})(e);
|
|
381
381
|
}
|
|
382
382
|
const At = typeof Symbol == "function" && Symbol.for ? Symbol.for("react.element") : 60103;
|
|
@@ -385,19 +385,19 @@ function Mt(e) {
|
|
|
385
385
|
return !!t && typeof t == "object";
|
|
386
386
|
})(e) && !Lt(e);
|
|
387
387
|
}
|
|
388
|
-
function
|
|
389
|
-
return t.clone !== !1 && t.isMergeableObject(e) ? Y((
|
|
390
|
-
var
|
|
388
|
+
function ne(e, t) {
|
|
389
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? Y((r = e, Array.isArray(r) ? [] : {}), e, t) : e;
|
|
390
|
+
var r;
|
|
391
391
|
}
|
|
392
|
-
function jt(e, t,
|
|
393
|
-
return e.concat(t).map(function(
|
|
394
|
-
return
|
|
392
|
+
function jt(e, t, r) {
|
|
393
|
+
return e.concat(t).map(function(n) {
|
|
394
|
+
return ne(n, r);
|
|
395
395
|
});
|
|
396
396
|
}
|
|
397
397
|
function Be(e) {
|
|
398
398
|
return Object.keys(e).concat((function(t) {
|
|
399
|
-
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(t).filter(function(
|
|
400
|
-
return Object.propertyIsEnumerable.call(t,
|
|
399
|
+
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(t).filter(function(r) {
|
|
400
|
+
return Object.propertyIsEnumerable.call(t, r);
|
|
401
401
|
}) : [];
|
|
402
402
|
})(e));
|
|
403
403
|
}
|
|
@@ -408,45 +408,45 @@ function $e(e, t) {
|
|
|
408
408
|
return !1;
|
|
409
409
|
}
|
|
410
410
|
}
|
|
411
|
-
function Pt(e, t,
|
|
412
|
-
const
|
|
413
|
-
return
|
|
414
|
-
|
|
411
|
+
function Pt(e, t, r) {
|
|
412
|
+
const n = {};
|
|
413
|
+
return r.isMergeableObject(e) && Be(e).forEach(function(o) {
|
|
414
|
+
n[o] = ne(e[o], r);
|
|
415
415
|
}), Be(t).forEach(function(o) {
|
|
416
416
|
(function(i, a) {
|
|
417
417
|
return $e(i, a) && !(Object.hasOwnProperty.call(i, a) && Object.propertyIsEnumerable.call(i, a));
|
|
418
|
-
})(e, o) || ($e(e, o) &&
|
|
418
|
+
})(e, o) || ($e(e, o) && r.isMergeableObject(t[o]) ? n[o] = (function(i, a) {
|
|
419
419
|
if (!a.customMerge) return Y;
|
|
420
420
|
const l = a.customMerge(i);
|
|
421
421
|
return typeof l == "function" ? l : Y;
|
|
422
|
-
})(o,
|
|
423
|
-
}),
|
|
422
|
+
})(o, r)(e[o], t[o], r) : n[o] = ne(t[o], r));
|
|
423
|
+
}), n;
|
|
424
424
|
}
|
|
425
|
-
function Y(e, t,
|
|
426
|
-
(
|
|
427
|
-
const
|
|
428
|
-
return
|
|
425
|
+
function Y(e, t, r) {
|
|
426
|
+
(r = r || {}).arrayMerge = r.arrayMerge || jt, r.isMergeableObject = r.isMergeableObject || Mt, r.cloneUnlessOtherwiseSpecified = ne;
|
|
427
|
+
const n = Array.isArray(t);
|
|
428
|
+
return n === Array.isArray(e) ? n ? r.arrayMerge(e, t, r) : Pt(e, t, r) : ne(t, r);
|
|
429
429
|
}
|
|
430
430
|
Y.all = function(e, t) {
|
|
431
431
|
if (!Array.isArray(e)) throw new Error("first argument should be an array");
|
|
432
|
-
return e.reduce(function(
|
|
433
|
-
return Y(
|
|
432
|
+
return e.reduce(function(r, n) {
|
|
433
|
+
return Y(r, n, t);
|
|
434
434
|
}, {});
|
|
435
435
|
};
|
|
436
436
|
const Ft = Object.freeze([]), Dt = Object.freeze({}), ze = (e) => e, de = () => "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function(e) {
|
|
437
437
|
let t = 16 * Math.random() | 0;
|
|
438
438
|
return (e === "x" ? t : 3 & t | 8).toString(16);
|
|
439
|
-
}), Ut = (e) => 1 * e, st = (e, t) => e === t || !(!Array.isArray(e) || !Array.isArray(t) || e.length !== t.length) && e.every((
|
|
439
|
+
}), Ut = (e) => 1 * e, st = (e, t) => e === t || !(!Array.isArray(e) || !Array.isArray(t) || e.length !== t.length) && e.every((r, n) => r === t[n]), re = (e) => typeof e == "object" && !Array.isArray(e) && e !== null, ct = (e) => typeof e != "object" || Array.isArray(e) || e === null ? e : (Object.keys(e).forEach(function(t) {
|
|
440
440
|
e[t] && typeof e[t] == "object" ? ct(e[t]) : e[t] !== null && e[t] !== void 0 || delete e[t], typeof e[t] == "object" && Object.keys(e[t]).length === 0 && delete e[t];
|
|
441
|
-
}), Object.keys(e).length === 0 ? null : e), Bt = (e, t) => !(e !== t && !st(e, t)) || !!e.isEqual?.(t), ut = (e, t,
|
|
441
|
+
}), Object.keys(e).length === 0 ? null : e), Bt = (e, t) => !(e !== t && !st(e, t)) || !!e.isEqual?.(t), ut = (e, t, r = Bt) => {
|
|
442
442
|
if (e == null || e === t) return null;
|
|
443
|
-
if (!e || typeof e != "object" || Array.isArray(e) || e.isImmutable?.()) return
|
|
444
|
-
const
|
|
445
|
-
if (
|
|
443
|
+
if (!e || typeof e != "object" || Array.isArray(e) || e.isImmutable?.()) return r(e, t) ? null : e;
|
|
444
|
+
const n = Object.keys(e);
|
|
445
|
+
if (n.length === 0) return null;
|
|
446
446
|
let o = !1;
|
|
447
|
-
for (let i = 0; i <
|
|
448
|
-
const a =
|
|
449
|
-
ut(e[a], t?.[a],
|
|
447
|
+
for (let i = 0; i < n.length; i++) {
|
|
448
|
+
const a = n[i];
|
|
449
|
+
ut(e[a], t?.[a], r) === null && (o = !0, delete e[a]);
|
|
450
450
|
}
|
|
451
451
|
return o && Object.keys(e).length === 0 ? null : void 0;
|
|
452
452
|
}, Ke = typeof performance == "object" && typeof performance.now == "function" ? () => performance.now() : () => Date.now(), Ve = (e) => e == null, qe = (e, t) => !(t.left > e.right || t.right < e.left || t.top > e.bottom || t.bottom < e.top), Ge = !(typeof window > "u" || !window.document || !window.document.createElement), k = { Windows: "windows", MacOS: "macos", IOS: "ios", Linux: "linux", Android: "android", Safari: "safari", Firefox: "firefox", Node: "node", Unknown: "unknown" }, oe = () => {
|
|
@@ -457,9 +457,9 @@ const Ft = Object.freeze([]), Dt = Object.freeze({}), ze = (e) => e, de = () =>
|
|
|
457
457
|
function dt() {
|
|
458
458
|
return typeof process < "u" && process.release?.name === "node" || (typeof process < "u" && process.browser, !1);
|
|
459
459
|
}
|
|
460
|
-
const We = (e, t = !1) => (document.hasFocus() || t) && (e === document.activeElement || e?.contains(document.activeElement)), $t = Object.freeze(Object.defineProperty({ __proto__: null, EmptyArray: Ft, EmptyObject: Dt, OSType: k, arrayMove: function(e, t,
|
|
461
|
-
const
|
|
462
|
-
return
|
|
460
|
+
const We = (e, t = !1) => (document.hasFocus() || t) && (e === document.activeElement || e?.contains(document.activeElement)), $t = Object.freeze(Object.defineProperty({ __proto__: null, EmptyArray: Ft, EmptyObject: Dt, OSType: k, arrayMove: function(e, t, r) {
|
|
461
|
+
const n = e.slice();
|
|
462
|
+
return n.splice(r < 0 ? n.length + r : r, 0, n.splice(t, 1)[0]), n;
|
|
463
463
|
}, asNumber: (e) => {
|
|
464
464
|
const t = Ut(e);
|
|
465
465
|
return Number.isFinite(t) ? t : 0;
|
|
@@ -471,267 +471,267 @@ const We = (e, t = !1) => (document.hasFocus() || t) && (e === document.activeEl
|
|
|
471
471
|
setTimeout(() => {
|
|
472
472
|
Function("console.log.apply(console, arguments)").apply(null, e), t();
|
|
473
473
|
});
|
|
474
|
-
}), debounce: function(e, t = 300,
|
|
475
|
-
let
|
|
474
|
+
}), debounce: function(e, t = 300, r = !1) {
|
|
475
|
+
let n, o, i, a, l = 0;
|
|
476
476
|
function u() {
|
|
477
477
|
let w = Date.now() - l;
|
|
478
|
-
w < t && w >= 0 ?
|
|
478
|
+
w < t && w >= 0 ? n = setTimeout(u, t - w) : (n = null, r || (a = e.apply(i, o), i = o = null));
|
|
479
479
|
}
|
|
480
480
|
t == null && (t = 100);
|
|
481
481
|
const p = function() {
|
|
482
482
|
i = globalThis, o = arguments, l = Date.now();
|
|
483
|
-
var w =
|
|
484
|
-
return
|
|
483
|
+
var w = r && !n;
|
|
484
|
+
return n || (n = setTimeout(u, t)), w && (a = e.apply(i, o), i = o = null), a;
|
|
485
485
|
};
|
|
486
486
|
return p.clear = function() {
|
|
487
|
-
|
|
487
|
+
n && (clearTimeout(n), n = null);
|
|
488
488
|
}, p.flush = function() {
|
|
489
|
-
|
|
489
|
+
n && (a = e.apply(i, o), i = o = null, clearTimeout(n), n = null);
|
|
490
490
|
}, p;
|
|
491
|
-
}, deepEqual: function e(t,
|
|
492
|
-
if (t ===
|
|
493
|
-
if (t &&
|
|
494
|
-
if (t.constructor !==
|
|
495
|
-
let
|
|
491
|
+
}, deepEqual: function e(t, r) {
|
|
492
|
+
if (t === r) return !0;
|
|
493
|
+
if (t && r && typeof t == "object" && typeof r == "object") {
|
|
494
|
+
if (t.constructor !== r.constructor) return !1;
|
|
495
|
+
let n, o, i;
|
|
496
496
|
if (Array.isArray(t)) {
|
|
497
|
-
if (
|
|
498
|
-
for (o =
|
|
497
|
+
if (n = t.length, n != r.length) return !1;
|
|
498
|
+
for (o = n; o-- !== 0; ) if (!e(t[o], r[o])) return !1;
|
|
499
499
|
return !0;
|
|
500
500
|
}
|
|
501
|
-
if (t instanceof Map &&
|
|
502
|
-
if (t.size !==
|
|
503
|
-
for (o of t.entries()) if (!
|
|
504
|
-
for (o of t.entries()) if (!e(o[1],
|
|
501
|
+
if (t instanceof Map && r instanceof Map) {
|
|
502
|
+
if (t.size !== r.size) return !1;
|
|
503
|
+
for (o of t.entries()) if (!r.has(o[0])) return !1;
|
|
504
|
+
for (o of t.entries()) if (!e(o[1], r.get(o[0]))) return !1;
|
|
505
505
|
return !0;
|
|
506
506
|
}
|
|
507
|
-
if (t instanceof Set &&
|
|
508
|
-
if (t.size !==
|
|
509
|
-
for (o of t.entries()) if (!
|
|
507
|
+
if (t instanceof Set && r instanceof Set) {
|
|
508
|
+
if (t.size !== r.size) return !1;
|
|
509
|
+
for (o of t.entries()) if (!r.has(o[0])) return !1;
|
|
510
510
|
return !0;
|
|
511
511
|
}
|
|
512
|
-
if (ArrayBuffer.isView(t) && ArrayBuffer.isView(
|
|
513
|
-
if (
|
|
514
|
-
for (o =
|
|
512
|
+
if (ArrayBuffer.isView(t) && ArrayBuffer.isView(r)) {
|
|
513
|
+
if (n = t.length, n != r.length) return !1;
|
|
514
|
+
for (o = n; o-- !== 0; ) if (t[o] !== r[o]) return !1;
|
|
515
515
|
return !0;
|
|
516
516
|
}
|
|
517
|
-
if (t.constructor === RegExp) return t.source ===
|
|
518
|
-
if (t.valueOf !== Object.prototype.valueOf) return t.valueOf() ===
|
|
519
|
-
if (t.toString !== Object.prototype.toString) return t.toString() ===
|
|
520
|
-
if (i = Object.keys(t),
|
|
521
|
-
for (o =
|
|
522
|
-
for (o =
|
|
517
|
+
if (t.constructor === RegExp) return t.source === r.source && t.flags === r.flags;
|
|
518
|
+
if (t.valueOf !== Object.prototype.valueOf) return t.valueOf() === r.valueOf();
|
|
519
|
+
if (t.toString !== Object.prototype.toString) return t.toString() === r.toString();
|
|
520
|
+
if (i = Object.keys(t), n = i.length, n !== Object.keys(r).length) return !1;
|
|
521
|
+
for (o = n; o-- !== 0; ) if (!Object.prototype.hasOwnProperty.call(r, i[o])) return !1;
|
|
522
|
+
for (o = n; o-- !== 0; ) {
|
|
523
523
|
let a = i[o];
|
|
524
|
-
if ((a !== "_owner" || !t.$$typeof) && !e(t[a],
|
|
524
|
+
if ((a !== "_owner" || !t.$$typeof) && !e(t[a], r[a])) return !1;
|
|
525
525
|
}
|
|
526
526
|
return !0;
|
|
527
527
|
}
|
|
528
|
-
return t != t &&
|
|
528
|
+
return t != t && r != r;
|
|
529
529
|
}, deepFreeze: function e(t) {
|
|
530
|
-
return Object.freeze(t), Object.keys(t).forEach((
|
|
531
|
-
typeof t[
|
|
530
|
+
return Object.freeze(t), Object.keys(t).forEach((r) => {
|
|
531
|
+
typeof t[r] != "object" || t[r] === null || Object.isFrozen(t[r]) || e(t[r]);
|
|
532
532
|
}), t;
|
|
533
533
|
}, deepMerge: Y, diffValues: (e, t) => {
|
|
534
|
-
const
|
|
534
|
+
const r = {}, n = Object.keys(t), o = n.length;
|
|
535
535
|
for (let i = 0; i < o; i++) {
|
|
536
|
-
const a =
|
|
537
|
-
e[a] !== t[a] && (e[a] === void 0 ?
|
|
538
|
-
}
|
|
539
|
-
return Object.keys(
|
|
540
|
-
}, findEqualOrGreater: function(e, t,
|
|
541
|
-
let
|
|
542
|
-
for (;
|
|
543
|
-
let i = Math.floor((
|
|
536
|
+
const a = n[i];
|
|
537
|
+
e[a] !== t[a] && (e[a] === void 0 ? r[a] = t[a] : r[a] = e[a]);
|
|
538
|
+
}
|
|
539
|
+
return Object.keys(r).length === 0 ? null : r;
|
|
540
|
+
}, findEqualOrGreater: function(e, t, r = ze) {
|
|
541
|
+
let n = 0, o = e.length - 1;
|
|
542
|
+
for (; n <= o; ) {
|
|
543
|
+
let i = Math.floor((n + o) / 2), a = r(e[i]);
|
|
544
544
|
if (a === t) return i;
|
|
545
|
-
a < t ?
|
|
545
|
+
a < t ? n = i + 1 : o = i - 1;
|
|
546
546
|
}
|
|
547
|
-
return
|
|
548
|
-
}, findEqualOrLesser: function(e, t,
|
|
549
|
-
let
|
|
550
|
-
for (;
|
|
551
|
-
let i = Math.floor((
|
|
547
|
+
return n;
|
|
548
|
+
}, findEqualOrLesser: function(e, t, r = ze) {
|
|
549
|
+
let n = e.length - 1, o = 0;
|
|
550
|
+
for (; n >= o; ) {
|
|
551
|
+
let i = Math.floor((n + o) / 2), a = r(e[i]);
|
|
552
552
|
if (a === t) return i;
|
|
553
|
-
a > t ?
|
|
553
|
+
a > t ? n = i - 1 : o = i + 1;
|
|
554
554
|
}
|
|
555
|
-
return
|
|
556
|
-
}, findNextStep: (e, t = !0,
|
|
557
|
-
const i = Math.max(e -
|
|
558
|
-
return Math.min(o, Math[t ? "ceil" : "floor"](i /
|
|
555
|
+
return n;
|
|
556
|
+
}, findNextStep: (e, t = !0, r = 15, n = 10, o = 400) => {
|
|
557
|
+
const i = Math.max(e - n, 0) + (t ? 1 : -1);
|
|
558
|
+
return Math.min(o, Math[t ? "ceil" : "floor"](i / r) * r + n);
|
|
559
559
|
}, getDPI: () => {
|
|
560
560
|
let e = 1;
|
|
561
561
|
return typeof window == "object" && (e = window.devicePixelRatio || 1), e;
|
|
562
562
|
}, getFromPath: (e, t) => {
|
|
563
|
-
const
|
|
564
|
-
let
|
|
565
|
-
for (let o = 0; o <
|
|
566
|
-
const i =
|
|
567
|
-
if (!
|
|
568
|
-
let a =
|
|
569
|
-
if (typeof a == "function" && (a = a.bind(
|
|
570
|
-
|
|
571
|
-
}
|
|
572
|
-
return
|
|
563
|
+
const r = t.split(".");
|
|
564
|
+
let n = e;
|
|
565
|
+
for (let o = 0; o < r.length; o++) {
|
|
566
|
+
const i = r[o];
|
|
567
|
+
if (!n) return null;
|
|
568
|
+
let a = n[i];
|
|
569
|
+
if (typeof a == "function" && (a = a.bind(n)()), !a || !re(a)) return a;
|
|
570
|
+
n = a;
|
|
571
|
+
}
|
|
572
|
+
return n ?? null;
|
|
573
573
|
}, getOS: oe, hasFocus: We, isDefined: (e) => e != null, isEmpty: (e) => e == null || e === "", isEqualArrays: st, isEqualBounds: (e, t) => e === t || !(e && !t || t && !e) && e.x === t.x && e.y === t.y && e.width === t.width && e.height === t.height, isEqualObjectKeys: (e, t) => {
|
|
574
574
|
if (e === t) return !0;
|
|
575
575
|
if (e && !t || t && !e) return !1;
|
|
576
|
-
const
|
|
577
|
-
if (
|
|
578
|
-
for (let
|
|
576
|
+
const r = Object.keys(e);
|
|
577
|
+
if (r.length !== Object.keys(t).length) return !1;
|
|
578
|
+
for (let n = 0; n < r.length; n++) if (e[r[n]] !== t[r[n]]) return !1;
|
|
579
579
|
return !0;
|
|
580
580
|
}, isNode: dt, isNullOrUndefined: Ve, isNumeric: (e) => {
|
|
581
581
|
const t = 1 * e;
|
|
582
582
|
return Number.isFinite(t) && typeof t == "number";
|
|
583
|
-
}, isObject:
|
|
583
|
+
}, isObject: re, isPromiseLike: (e) => !!e && typeof e.then == "function", isRectInsideRect: (e, t) => e.top >= t.top && e.bottom <= t.bottom && e.left >= t.left && e.right <= t.right, isRectIntersect: qe, mergeContentful: (...e) => {
|
|
584
584
|
const t = e.length;
|
|
585
|
-
if (t > 0 && e[t - 1] !== void 0 && !
|
|
586
|
-
let
|
|
587
|
-
for (let
|
|
588
|
-
return
|
|
585
|
+
if (t > 0 && e[t - 1] !== void 0 && !re(e[t - 1])) return e[t - 1];
|
|
586
|
+
let r = e[0] || {};
|
|
587
|
+
for (let n = 1; n < t; n++) r = Y(r, e[n] || {}, { arrayMerge: (o, i) => [...i] });
|
|
588
|
+
return r;
|
|
589
589
|
}, nextTick: (e) => {
|
|
590
590
|
typeof window < "u" && typeof window.requestAnimationFrame == "function" ? window.requestAnimationFrame(() => {
|
|
591
591
|
e();
|
|
592
592
|
}) : (typeof setImmediate == "function" ? setImmediate : setTimeout)(() => {
|
|
593
593
|
e();
|
|
594
594
|
});
|
|
595
|
-
}, openFileDialog: (e = "*.*") => new Promise((t,
|
|
596
|
-
if (!Ge) return void
|
|
597
|
-
const
|
|
598
|
-
|
|
595
|
+
}, openFileDialog: (e = "*.*") => new Promise((t, r) => {
|
|
596
|
+
if (!Ge) return void r("Unable to open dialog with no dom.");
|
|
597
|
+
const n = document.createElement("input");
|
|
598
|
+
n.type = "file", n.accept = e;
|
|
599
599
|
let o = null, i = !1;
|
|
600
600
|
globalThis.addEventListener?.("focus", () => {
|
|
601
601
|
setTimeout(() => {
|
|
602
602
|
o || i || (i = !0, t(null));
|
|
603
603
|
}, 1e3);
|
|
604
|
-
}, { once: !0, passive: !0 }),
|
|
605
|
-
if (o =
|
|
604
|
+
}, { once: !0, passive: !0 }), n.onchange = () => {
|
|
605
|
+
if (o = n.files[0], o) {
|
|
606
606
|
if (i) return void console.warn("File open detected after faux cancel.", o);
|
|
607
607
|
t(o);
|
|
608
608
|
}
|
|
609
|
-
},
|
|
609
|
+
}, n.autofocus = !0, n.click();
|
|
610
610
|
}), rafThrottle: (e) => {
|
|
611
|
-
let t,
|
|
612
|
-
|
|
611
|
+
let t, r = !1, n = function() {
|
|
612
|
+
r = !1, e(t);
|
|
613
613
|
};
|
|
614
614
|
return function(o) {
|
|
615
|
-
t = o, t && t.persist && t.persist(),
|
|
615
|
+
t = o, t && t.persist && t.persist(), r || (r = !0, requestAnimationFrame(n));
|
|
616
616
|
};
|
|
617
617
|
}, removeEmptyProperties: ct, removeEqualValues: ut, removeListenerAll: (e) => {
|
|
618
618
|
if (!e) return [];
|
|
619
619
|
for (let t = 0; t < e.length; t++) e[t] && e[t]();
|
|
620
620
|
return [];
|
|
621
621
|
}, requestTimeout: (e, t) => {
|
|
622
|
-
const
|
|
623
|
-
Ke() -
|
|
622
|
+
const r = Ke(), n = { id: requestAnimationFrame(function o() {
|
|
623
|
+
Ke() - r >= t ? e.call(null) : n.id = requestAnimationFrame(o);
|
|
624
624
|
}) };
|
|
625
|
-
return
|
|
625
|
+
return n;
|
|
626
626
|
}, roundAccurately: (e, t = 0) => {
|
|
627
627
|
if (e == null || !isFinite(e)) return null;
|
|
628
|
-
const
|
|
629
|
-
return Number(Math.round(e *
|
|
630
|
-
}, setToPath: (e, t,
|
|
631
|
-
const
|
|
628
|
+
const r = 10 ** t;
|
|
629
|
+
return Number(Math.round(e * r) / r);
|
|
630
|
+
}, setToPath: (e, t, r) => {
|
|
631
|
+
const n = t.split(".");
|
|
632
632
|
let o = e;
|
|
633
633
|
if (!o) throw new Error("Can not set path to a null path.");
|
|
634
|
-
for (let i = 0; o && i <
|
|
635
|
-
const a =
|
|
634
|
+
for (let i = 0; o && i < n.length - 1; i++) {
|
|
635
|
+
const a = n[i];
|
|
636
636
|
let l = o[a];
|
|
637
|
-
if (l == null && (l = {}, o[a] = l), !
|
|
637
|
+
if (l == null && (l = {}, o[a] = l), !re(l)) throw new Error("Can not set path to a non object path.");
|
|
638
638
|
o = l;
|
|
639
639
|
}
|
|
640
|
-
if (typeof
|
|
641
|
-
return o[
|
|
640
|
+
if (typeof r != "number" && typeof r != "boolean" && typeof r != "string" && !re(r)) throw new Error(\`Can not set path to \${r} that is not a a supported primitive.\`);
|
|
641
|
+
return o[n[n.length - 1]] = r, e;
|
|
642
642
|
}, splitNumber: (e) => {
|
|
643
643
|
let t = Math.abs(e);
|
|
644
644
|
if (isNaN(t) || !isFinite(e)) return null;
|
|
645
|
-
let
|
|
646
|
-
if (
|
|
647
|
-
return { ip: Math.trunc(e), fp: o, ipLength: Math.ceil(Math.log10(
|
|
648
|
-
}, subtractRect: (e, t,
|
|
645
|
+
let r = 0 | t, n = t - r, o = 0, i = 0, a = 1;
|
|
646
|
+
if (n > 5e-8) for (; i < 8 && Math.abs(o / a - n) > 5e-8; ) i++, a *= 10, o = Math.round(n * a);
|
|
647
|
+
return { ip: Math.trunc(e), fp: o, ipLength: Math.ceil(Math.log10(r + 1)), fpLength: i };
|
|
648
|
+
}, subtractRect: (e, t, r = !1) => {
|
|
649
649
|
if (!t) return [e];
|
|
650
650
|
if (!qe(e, t)) return [];
|
|
651
|
-
const
|
|
651
|
+
const n = [];
|
|
652
652
|
let o = e;
|
|
653
653
|
const i = () => {
|
|
654
|
-
t.top > o.top && t.top < o.bottom && (
|
|
654
|
+
t.top > o.top && t.top < o.bottom && (n.push({ ...o, bottom: t.top }), o = { ...o, top: t.top });
|
|
655
655
|
}, a = () => {
|
|
656
|
-
t.bottom > o.top && t.bottom < o.bottom && (
|
|
656
|
+
t.bottom > o.top && t.bottom < o.bottom && (n.push({ ...o, top: t.bottom }), o = { ...o, bottom: t.bottom });
|
|
657
657
|
}, l = () => {
|
|
658
|
-
t.right > o.left && t.right < o.right && (
|
|
658
|
+
t.right > o.left && t.right < o.right && (n.push({ ...o, left: t.right }), o = { ...o, right: t.right });
|
|
659
659
|
}, u = () => {
|
|
660
|
-
t.left > o.left && t.left < o.right && (
|
|
660
|
+
t.left > o.left && t.left < o.right && (n.push({ ...o, right: t.left }), o = { ...o, left: t.left });
|
|
661
661
|
};
|
|
662
|
-
return
|
|
662
|
+
return r ? (u(), l(), i(), a()) : (i(), a(), l(), u()), n;
|
|
663
663
|
}, textToKey: (e) => e.replace(/[^a-zA-Z0-9]/g, "").toLowerCase(), throttle: function(e, t) {
|
|
664
|
-
let
|
|
665
|
-
return (...
|
|
664
|
+
let r = null;
|
|
665
|
+
return (...n) => {
|
|
666
666
|
const o = Date.now();
|
|
667
|
-
(!
|
|
667
|
+
(!r || o - r >= t) && (r = o, e(...n));
|
|
668
668
|
};
|
|
669
669
|
}, toSafeJSON: function e(t) {
|
|
670
670
|
if (t === null || typeof t != "object") return t;
|
|
671
671
|
if (typeof t.toJSON == "function") return t.toJSON();
|
|
672
|
-
if (Array.isArray(t)) return t.map((
|
|
672
|
+
if (Array.isArray(t)) return t.map((n) => e(n));
|
|
673
673
|
if (typeof t.toString == "function" && t.toString !== Object.prototype.toString) return t.toString();
|
|
674
|
-
const
|
|
675
|
-
for (const
|
|
676
|
-
return
|
|
674
|
+
const r = {};
|
|
675
|
+
for (const n in t) t.hasOwnProperty(n) && (r[n] = e(t[n]));
|
|
676
|
+
return r;
|
|
677
677
|
}, transpose: (e) => {
|
|
678
678
|
if (!e) return e;
|
|
679
|
-
const t = e.length,
|
|
680
|
-
for (let o = 0; o <
|
|
681
|
-
for (let o = 0; o < t; o++) for (let i = 0; i <
|
|
682
|
-
return
|
|
679
|
+
const t = e.length, r = e[0].length, n = [];
|
|
680
|
+
for (let o = 0; o < r; o++) n[o] = Array(t);
|
|
681
|
+
for (let o = 0; o < t; o++) for (let i = 0; i < r; i++) n[i][o] = e[o][i];
|
|
682
|
+
return n;
|
|
683
683
|
}, uuidV4: de, validEnumValue: (e, t) => {
|
|
684
684
|
if (!Object.values(e).includes(t)) throw new Error(\`Invalid type: \${t ?? "null"}. Must be one of: \${Object.values(t).join(", ")}.\`);
|
|
685
|
-
}, whenFocus: async (e, t = !1) => new Promise((
|
|
686
|
-
We(e, t) ?
|
|
687
|
-
|
|
685
|
+
}, whenFocus: async (e, t = !1) => new Promise((r) => {
|
|
686
|
+
We(e, t) ? r(!0) : e.addEventListener("focusin", () => {
|
|
687
|
+
r(!0);
|
|
688
688
|
}, { once: !0 }), e.focus();
|
|
689
689
|
}) }, Symbol.toStringTag, { value: "Module" }));
|
|
690
690
|
Object.freeze(Object.defineProperty({ __proto__: null, MESSAGE_ERROR_INVALID_ARG: (e) => \`Invalid argument: '\${e}'.\` }, Symbol.toStringTag, { value: "Module" }));
|
|
691
691
|
const ft = (e) => {
|
|
692
|
-
const t = new Uint8Array(e),
|
|
693
|
-
let
|
|
694
|
-
for (let o = 0; o <
|
|
695
|
-
if (typeof window < "u" && typeof globalThis.btoa == "function") return globalThis.btoa(
|
|
696
|
-
if (typeof Buffer < "u") return Buffer.from(
|
|
692
|
+
const t = new Uint8Array(e), r = t.byteLength;
|
|
693
|
+
let n = "";
|
|
694
|
+
for (let o = 0; o < r; o++) n += String.fromCharCode(t[o]);
|
|
695
|
+
if (typeof window < "u" && typeof globalThis.btoa == "function") return globalThis.btoa(n);
|
|
696
|
+
if (typeof Buffer < "u") return Buffer.from(n, "binary").toString("base64");
|
|
697
697
|
throw new Error("Unsupported environment");
|
|
698
|
-
}, Ce = (e) => new Promise((t,
|
|
698
|
+
}, Ce = (e) => new Promise((t, r) => {
|
|
699
699
|
if (e) if (typeof FileReader < "u") {
|
|
700
|
-
const
|
|
701
|
-
|
|
702
|
-
t(
|
|
703
|
-
},
|
|
704
|
-
n
|
|
705
|
-
},
|
|
700
|
+
const n = new FileReader();
|
|
701
|
+
n.onload = () => {
|
|
702
|
+
t(n.result);
|
|
703
|
+
}, n.onerror = () => {
|
|
704
|
+
r(n.error);
|
|
705
|
+
}, n.readAsText(e);
|
|
706
706
|
} else if (typeof Buffer < "u") {
|
|
707
|
-
const
|
|
707
|
+
const n = (o) => Buffer.from(o).toString("utf-8");
|
|
708
708
|
e.arrayBuffer().then((o) => {
|
|
709
|
-
t(
|
|
709
|
+
t(n(o));
|
|
710
710
|
}).catch((o) => {
|
|
711
|
-
|
|
711
|
+
r(o);
|
|
712
712
|
});
|
|
713
|
-
} else
|
|
713
|
+
} else r(new Error("Unsupported environment"));
|
|
714
714
|
else t("");
|
|
715
715
|
});
|
|
716
716
|
Object.freeze(Object.defineProperty({ __proto__: null, DEFAULT_MIME_TYPE: "*/*", arrayBufferToBase64: ft, base64ToArrayBuffer: (e) => {
|
|
717
|
-
const t = typeof window < "u" && typeof globalThis.atob == "function" ? globalThis.atob(e) : Buffer.from(e, "base64").toString("binary"),
|
|
718
|
-
for (let o = 0; o <
|
|
719
|
-
return
|
|
717
|
+
const t = typeof window < "u" && typeof globalThis.atob == "function" ? globalThis.atob(e) : Buffer.from(e, "base64").toString("binary"), r = t.length, n = new Uint8Array(r);
|
|
718
|
+
for (let o = 0; o < r; o++) n[o] = t.charCodeAt(o);
|
|
719
|
+
return n.buffer;
|
|
720
720
|
}, blobToString: Ce }, Symbol.toStringTag, { value: "Module" }));
|
|
721
|
-
const pt = "data:image/png;base64,", ht = "Unable to resolve image.", Ye = (e) => new Promise(async (t,
|
|
722
|
-
let
|
|
721
|
+
const pt = "data:image/png;base64,", ht = "Unable to resolve image.", Ye = (e) => new Promise(async (t, r) => {
|
|
722
|
+
let n = null;
|
|
723
723
|
try {
|
|
724
|
-
|
|
725
|
-
t({ width:
|
|
726
|
-
}, { once: !0 }),
|
|
727
|
-
URL.revokeObjectURL(e),
|
|
728
|
-
}, { once: !0 }), await
|
|
724
|
+
n = new Image(), n.src = e, n.addEventListener("load", function() {
|
|
725
|
+
t({ width: n.naturalWidth, height: n.naturalHeight });
|
|
726
|
+
}, { once: !0 }), n.addEventListener("error", function() {
|
|
727
|
+
URL.revokeObjectURL(e), r("Invalid Image");
|
|
728
|
+
}, { once: !0 }), await n.decode("sync");
|
|
729
729
|
} catch {
|
|
730
|
-
|
|
730
|
+
n?.src && URL.revokeObjectURL(n.src);
|
|
731
731
|
}
|
|
732
|
-
|
|
732
|
+
n || r(ht);
|
|
733
733
|
}), we = "image/svg+xml";
|
|
734
|
-
Object.freeze(Object.defineProperty({ __proto__: null, DATA_URL_PNG_PREFIX: pt, getImageDataUrl: (e, t = 1) => new Promise(async (
|
|
734
|
+
Object.freeze(Object.defineProperty({ __proto__: null, DATA_URL_PNG_PREFIX: pt, getImageDataUrl: (e, t = 1) => new Promise(async (r, n) => {
|
|
735
735
|
let o = null;
|
|
736
736
|
try {
|
|
737
737
|
o = new Image(), o.src = e, o.addEventListener("load", function() {
|
|
@@ -739,42 +739,42 @@ Object.freeze(Object.defineProperty({ __proto__: null, DATA_URL_PNG_PREFIX: pt,
|
|
|
739
739
|
const i = document.createElement("canvas");
|
|
740
740
|
i.width = o.naturalWidth, i.height = o.naturalHeight, i.getContext("2d").drawImage(o, 0, 0);
|
|
741
741
|
const a = i.toDataURL("image/png", t);
|
|
742
|
-
|
|
742
|
+
r({ elemImg: o, dataUrl: a });
|
|
743
743
|
} catch (i) {
|
|
744
|
-
URL.revokeObjectURL(e),
|
|
744
|
+
URL.revokeObjectURL(e), n(i);
|
|
745
745
|
}
|
|
746
746
|
}, { once: !0 }), o.addEventListener("error", function() {
|
|
747
|
-
URL.revokeObjectURL(e),
|
|
747
|
+
URL.revokeObjectURL(e), n("Invalid Image");
|
|
748
748
|
}, { once: !0 }), await o.decode("sync");
|
|
749
749
|
} catch {
|
|
750
750
|
o?.src && URL.revokeObjectURL(o.src);
|
|
751
751
|
}
|
|
752
|
-
o ||
|
|
752
|
+
o || n(ht);
|
|
753
753
|
}), loadImageDetails: async (e, t = null) => {
|
|
754
|
-
let
|
|
755
|
-
const
|
|
754
|
+
let r = null;
|
|
755
|
+
const n = async () => {
|
|
756
756
|
try {
|
|
757
757
|
const i = t ?? "image/*", a = URL.createObjectURL(new Blob([e], { type: i })), l = await Ye(a);
|
|
758
|
-
|
|
758
|
+
r = { mimeType: i, naturalDimensions: l, asUrl: a };
|
|
759
759
|
} catch {
|
|
760
760
|
}
|
|
761
761
|
}, o = async () => {
|
|
762
762
|
try {
|
|
763
763
|
const i = new TextDecoder().decode(e), a = URL.createObjectURL(new Blob([i], { type: we })), l = await Ye(a);
|
|
764
|
-
|
|
764
|
+
r = { mimeType: t ?? we, naturalDimensions: l, asUrl: a, asSVGText: i };
|
|
765
765
|
} catch {
|
|
766
766
|
}
|
|
767
767
|
};
|
|
768
|
-
if (t === we ? await o() : t.startsWith("image/") ? await
|
|
769
|
-
return
|
|
768
|
+
if (t === we ? await o() : t.startsWith("image/") ? await n() : (await n(), r || await o()), !r) throw new Error("Failed to load image");
|
|
769
|
+
return r;
|
|
770
770
|
} }, Symbol.toStringTag, { value: "Module" }));
|
|
771
771
|
var Je, He;
|
|
772
|
-
(He = Je || (Je = {})).resolveTypedUpdates = (e, t,
|
|
772
|
+
(He = Je || (Je = {})).resolveTypedUpdates = (e, t, r, n) => {
|
|
773
773
|
if (e === null) return e;
|
|
774
|
-
if (e === void 0) return
|
|
774
|
+
if (e === void 0) return n;
|
|
775
775
|
let o = e;
|
|
776
776
|
if (t?.shorthand) {
|
|
777
|
-
const u = t?.shorthand(e,
|
|
777
|
+
const u = t?.shorthand(e, r);
|
|
778
778
|
u !== void 0 && (o = u);
|
|
779
779
|
}
|
|
780
780
|
if (o !== null && t?.getSubType) {
|
|
@@ -783,9 +783,9 @@ var Je, He;
|
|
|
783
783
|
}
|
|
784
784
|
const i = t?.properties, a = t?.arrayType ?? !1;
|
|
785
785
|
let l = o;
|
|
786
|
-
if (t && t.merge && l &&
|
|
786
|
+
if (t && t.merge && l && n) l = t.merge(l, n, r);
|
|
787
787
|
else if (!a && i) {
|
|
788
|
-
const u = Object.keys({ ...o, ...
|
|
788
|
+
const u = Object.keys({ ...o, ...n });
|
|
789
789
|
l = null;
|
|
790
790
|
const p = u.length;
|
|
791
791
|
for (let w = 0; w < p; w++) {
|
|
@@ -793,8 +793,8 @@ var Je, He;
|
|
|
793
793
|
let f, y = o[g];
|
|
794
794
|
if (y !== void 0) {
|
|
795
795
|
const x = i[g];
|
|
796
|
-
f = x ? (0, He.resolveTypedUpdates)(y, x,
|
|
797
|
-
} else f =
|
|
796
|
+
f = x ? (0, He.resolveTypedUpdates)(y, x, r, n?.[g]) : y;
|
|
797
|
+
} else f = n?.[g];
|
|
798
798
|
f != null && (l = l ?? {}, l[g] = f);
|
|
799
799
|
}
|
|
800
800
|
}
|
|
@@ -811,10 +811,10 @@ Please use Chrome or Edge if external copy and paste is required.\`, Perms: ye,
|
|
|
811
811
|
document.hasFocus() ? e() : globalThis.addEventListener?.("focus", () => {
|
|
812
812
|
e();
|
|
813
813
|
}, { once: !0 }), document.activeElement.focus?.();
|
|
814
|
-
}), be = async (e, t,
|
|
815
|
-
if (oe() === k.Safari) return await
|
|
814
|
+
}), be = async (e, t, r) => {
|
|
815
|
+
if (oe() === k.Safari) return await r(new Error(mt.Safari));
|
|
816
816
|
try {
|
|
817
|
-
const
|
|
817
|
+
const n = async (a) => {
|
|
818
818
|
try {
|
|
819
819
|
return await a();
|
|
820
820
|
} catch (l) {
|
|
@@ -823,9 +823,9 @@ Please use Chrome or Edge if external copy and paste is required.\`, Perms: ye,
|
|
|
823
823
|
}
|
|
824
824
|
}, o = await globalThis?.navigator?.permissions?.query({ name: e, allowWithoutGesture: !0, allowWithoutSanitization: !0 });
|
|
825
825
|
let i = !1;
|
|
826
|
-
if (o.state === "prompt" && (i = await
|
|
827
|
-
} catch (
|
|
828
|
-
return
|
|
826
|
+
if (o.state === "prompt" && (i = await n(t)), i || o.state !== "granted" || (i = await t()), !i) return await r(new Error(o.state));
|
|
827
|
+
} catch (n) {
|
|
828
|
+
return n.message === "No valid data on clipboard" || n.name === "DataError" ? void 0 : await r(n);
|
|
829
829
|
}
|
|
830
830
|
}, wt = async (e) => {
|
|
831
831
|
try {
|
|
@@ -835,21 +835,21 @@ Please use Chrome or Edge if external copy and paste is required.\`, Perms: ye,
|
|
|
835
835
|
return await e.read();
|
|
836
836
|
}, zt = async (e, t) => {
|
|
837
837
|
if (!e) return null;
|
|
838
|
-
const
|
|
839
|
-
let
|
|
840
|
-
for (let o = 0; !
|
|
841
|
-
return await
|
|
842
|
-
return
|
|
838
|
+
const r = await wt(e);
|
|
839
|
+
let n = !1;
|
|
840
|
+
for (let o = 0; !n && r && o < r.length; o++) if (n = r[o].types.includes(t), n)
|
|
841
|
+
return await r[o].getType(t);
|
|
842
|
+
return n ? void 0 : null;
|
|
843
843
|
};
|
|
844
844
|
if (!globalThis.ClipboardItem) {
|
|
845
|
-
const e = (
|
|
845
|
+
const e = (r, n) => new Blob([n], { type: r });
|
|
846
846
|
class t {
|
|
847
|
-
constructor(
|
|
848
|
-
this._items = {}, this._types = Object.keys(
|
|
849
|
-
const i = {}, a = Object.keys(
|
|
847
|
+
constructor(n, o) {
|
|
848
|
+
this._items = {}, this._types = Object.keys(n);
|
|
849
|
+
const i = {}, a = Object.keys(n);
|
|
850
850
|
for (let l = 0; l < a.length; l++) {
|
|
851
851
|
const u = a[l];
|
|
852
|
-
let p =
|
|
852
|
+
let p = n[u];
|
|
853
853
|
i[u] = typeof p == "string" ? e(u, p) : p;
|
|
854
854
|
}
|
|
855
855
|
this._items = i, this._presentationStyle = o?.presentationStyle ?? "unspecified";
|
|
@@ -857,55 +857,55 @@ if (!globalThis.ClipboardItem) {
|
|
|
857
857
|
get types() {
|
|
858
858
|
return this._types;
|
|
859
859
|
}
|
|
860
|
-
getType(
|
|
861
|
-
return Promise.resolve(this._items[
|
|
860
|
+
getType(n) {
|
|
861
|
+
return Promise.resolve(this._items[n]);
|
|
862
862
|
}
|
|
863
|
-
supports(
|
|
863
|
+
supports(n) {
|
|
864
864
|
return !0;
|
|
865
865
|
}
|
|
866
866
|
}
|
|
867
867
|
globalThis.ClipboardItem = t;
|
|
868
868
|
}
|
|
869
|
-
const ve = async (e, t = S.html) => new Promise(async (
|
|
869
|
+
const ve = async (e, t = S.html) => new Promise(async (r, n) => {
|
|
870
870
|
try {
|
|
871
871
|
const o = await zt(e, t);
|
|
872
872
|
if (o) {
|
|
873
873
|
const i = new FileReader();
|
|
874
874
|
i.onload = () => {
|
|
875
|
-
|
|
875
|
+
r(i.result);
|
|
876
876
|
}, i.onerror = () => {
|
|
877
|
-
|
|
877
|
+
r("");
|
|
878
878
|
}, i.readAsText(o);
|
|
879
|
-
} else
|
|
879
|
+
} else r("");
|
|
880
880
|
} catch (o) {
|
|
881
|
-
|
|
881
|
+
n(o);
|
|
882
882
|
}
|
|
883
883
|
}), Ze = async (e, t = S.html) => {
|
|
884
|
-
const
|
|
885
|
-
if (!
|
|
886
|
-
let
|
|
884
|
+
const r = await ve(e, t);
|
|
885
|
+
if (!r) return null;
|
|
886
|
+
let n = null;
|
|
887
887
|
try {
|
|
888
|
-
|
|
888
|
+
n = new DOMParser().parseFromString(r, S.html);
|
|
889
889
|
} catch {
|
|
890
890
|
console.warn("Can't parse html from clipboard.");
|
|
891
891
|
}
|
|
892
|
-
return
|
|
892
|
+
return n;
|
|
893
893
|
}, Kt = async (e) => {
|
|
894
894
|
e && await e.writeText("");
|
|
895
895
|
}, ie = "clipboard-uuid", Q = "web text/uuid", Qe = (e) => \`<div style="display:none" \${ie}="\${e}"/>\`, Vt = (e, t) => {
|
|
896
|
-
let
|
|
896
|
+
let r = null;
|
|
897
897
|
try {
|
|
898
|
-
const
|
|
899
|
-
|
|
900
|
-
} catch (
|
|
901
|
-
console.warn("Can't embed uuid.",
|
|
898
|
+
const n = new DOMParser().parseFromString(t, S.html);
|
|
899
|
+
n.body.firstElementChild.setAttribute(ie, e), r = n.getElementsByTagName("body")[0].innerHTML;
|
|
900
|
+
} catch (n) {
|
|
901
|
+
console.warn("Can't embed uuid.", n);
|
|
902
902
|
}
|
|
903
|
-
return
|
|
903
|
+
return r;
|
|
904
904
|
}, et = (e, t) => {
|
|
905
905
|
if (!t || !e) return !1;
|
|
906
906
|
try {
|
|
907
|
-
const
|
|
908
|
-
if (
|
|
907
|
+
const r = t.querySelectorAll(\`[\${ie}="\${e}"]\`);
|
|
908
|
+
if (r && r.length === 1) return !0;
|
|
909
909
|
if (t.querySelector("parsererror")) throw new Error("We are unable to parse node");
|
|
910
910
|
return !1;
|
|
911
911
|
} catch {
|
|
@@ -927,8 +927,8 @@ class tt {
|
|
|
927
927
|
await ge();
|
|
928
928
|
const t = await ve(this._nativeClipboard, Q);
|
|
929
929
|
if (!this._state || t && t === this._state.uuid) return !0;
|
|
930
|
-
const
|
|
931
|
-
return !this._state || (et(this._state.uuid,
|
|
930
|
+
const r = await Ze(this._nativeClipboard, S.html);
|
|
931
|
+
return !this._state || (et(this._state.uuid, r) || this.clear(), !0);
|
|
932
932
|
}, async (t) => {
|
|
933
933
|
t?.message === "denied" || t.message?.includes("Document is not focused") || oe() === k.Safari || console.warn("Unable to detect clipboard changes: ", t);
|
|
934
934
|
});
|
|
@@ -939,7 +939,7 @@ class tt {
|
|
|
939
939
|
t._checkForChanges();
|
|
940
940
|
}, this._onBlur = () => {
|
|
941
941
|
globalThis.addEventListener?.("focus", t._onFocus, { once: !0 });
|
|
942
|
-
}, globalThis.addEventListener?.("blur", this._onBlur), this._nativeClipboard.addEventListener("clipboardchange", (
|
|
942
|
+
}, globalThis.addEventListener?.("blur", this._onBlur), this._nativeClipboard.addEventListener("clipboardchange", (r) => {
|
|
943
943
|
t._checkForChanges();
|
|
944
944
|
}));
|
|
945
945
|
}
|
|
@@ -948,13 +948,13 @@ class tt {
|
|
|
948
948
|
const t = this;
|
|
949
949
|
return await be("clipboard-read", async () => {
|
|
950
950
|
if (await ge(), this._state?.uuid) {
|
|
951
|
-
const
|
|
952
|
-
if (
|
|
953
|
-
const
|
|
954
|
-
if (et(t._state?.uuid,
|
|
951
|
+
const r = await ve(this._nativeClipboard, Q);
|
|
952
|
+
if (r && r === t._state.uuid) return !0;
|
|
953
|
+
const n = await Ze(this._nativeClipboard, S.html);
|
|
954
|
+
if (et(t._state?.uuid, n)) return !0;
|
|
955
955
|
}
|
|
956
956
|
return t._state = { items: await wt(this._nativeClipboard), uuid: null, ref: null }, this.dispatchEvent(new Event("clipboardread")), !0;
|
|
957
|
-
}, async (
|
|
957
|
+
}, async (r) => {
|
|
958
958
|
this.dispatchEvent(new Event("clipboarderrorread"));
|
|
959
959
|
}), this._state?.items ?? [];
|
|
960
960
|
}
|
|
@@ -963,10 +963,10 @@ class tt {
|
|
|
963
963
|
}
|
|
964
964
|
async _write(t) {
|
|
965
965
|
if (!this._nativeClipboard) return this._state = t, this.dispatchEvent(new Event("clipboardwrite")), this.dispatchEvent(new Event("clipboardchange")), null;
|
|
966
|
-
const
|
|
966
|
+
const r = this, n = [], o = t.uuid;
|
|
967
967
|
let i = t.items ?? [];
|
|
968
968
|
const a = () => {
|
|
969
|
-
|
|
969
|
+
r._state = { uuid: o, ref: t.ref, items: n }, r.dispatchEvent(new Event("clipboardwrite")), r.dispatchEvent(new Event("clipboardchange"));
|
|
970
970
|
};
|
|
971
971
|
await be("clipboard-write", async () => {
|
|
972
972
|
await ge(), o && i.length === 0 && (i.push(new ClipboardItem({ [Q]: new Blob([o], { type: Q }) })), i.push(new ClipboardItem({ [S.html]: new Blob([Qe(o)], { type: S.html }) })));
|
|
@@ -994,10 +994,10 @@ class tt {
|
|
|
994
994
|
const x = u.types[y];
|
|
995
995
|
f[x] = y === p ? g : u.getType(x);
|
|
996
996
|
}
|
|
997
|
-
w && p === -1 && (f[S.html] = g), o && (f[Q] = new Blob([o], { type: Q })),
|
|
997
|
+
w && p === -1 && (f[S.html] = g), o && (f[Q] = new Blob([o], { type: Q })), n.push(new ClipboardItem(f));
|
|
998
998
|
}
|
|
999
999
|
try {
|
|
1000
|
-
|
|
1000
|
+
n && n.length !== 0 ? await this._nativeClipboard.write(n) : await Kt(this._nativeClipboard);
|
|
1001
1001
|
} catch (l) {
|
|
1002
1002
|
l.message?.includes("Document is not focused") || console.warn("Unable to write to native clipboard: ", l);
|
|
1003
1003
|
}
|
|
@@ -1008,28 +1008,28 @@ class tt {
|
|
|
1008
1008
|
}
|
|
1009
1009
|
async writeReference(t) {
|
|
1010
1010
|
if (!t) return void this.clear();
|
|
1011
|
-
let
|
|
1012
|
-
const
|
|
1011
|
+
let r = null;
|
|
1012
|
+
const n = {};
|
|
1013
1013
|
try {
|
|
1014
1014
|
const i = await t.toText?.() ?? null;
|
|
1015
|
-
i && (
|
|
1015
|
+
i && (n[S.plain] = new Blob([i ?? ""], { type: S.plain }));
|
|
1016
1016
|
} catch (i) {
|
|
1017
|
-
|
|
1017
|
+
r = i;
|
|
1018
1018
|
}
|
|
1019
1019
|
try {
|
|
1020
1020
|
const i = await t.toHtml?.() ?? null;
|
|
1021
|
-
i && (
|
|
1021
|
+
i && (n[S.html] = new Blob([i], { type: S.html }));
|
|
1022
1022
|
} catch (i) {
|
|
1023
|
-
|
|
1023
|
+
r = i, console.warn("export to html", i);
|
|
1024
1024
|
}
|
|
1025
1025
|
try {
|
|
1026
1026
|
const i = await t.toImage?.() ?? null;
|
|
1027
|
-
i && (
|
|
1027
|
+
i && (n[S.png] = i);
|
|
1028
1028
|
} catch (i) {
|
|
1029
|
-
|
|
1029
|
+
r = i, console.warn("export to png", i);
|
|
1030
1030
|
}
|
|
1031
|
-
const o = this._write({ uuid: de(), ref: t, items: Object.keys(
|
|
1032
|
-
if (
|
|
1031
|
+
const o = this._write({ uuid: de(), ref: t, items: Object.keys(n).length > 0 ? [new ClipboardItem(n)] : null });
|
|
1032
|
+
if (r) throw r;
|
|
1033
1033
|
return o;
|
|
1034
1034
|
}
|
|
1035
1035
|
clear(t = !1) {
|
|
@@ -1039,32 +1039,32 @@ class tt {
|
|
|
1039
1039
|
return await this.read(), this._state?.ref ?? null;
|
|
1040
1040
|
}
|
|
1041
1041
|
readText() {
|
|
1042
|
-
return new Promise(async (t,
|
|
1043
|
-
const
|
|
1042
|
+
return new Promise(async (t, r) => {
|
|
1043
|
+
const n = await this.read();
|
|
1044
1044
|
let o = null;
|
|
1045
|
-
for (let a = 0; !o &&
|
|
1045
|
+
for (let a = 0; !o && n && a < n.length; a++) n[a].types.includes(S.plain) && (o = await n[a].getType(S.plain));
|
|
1046
1046
|
if (!o) return void t("");
|
|
1047
1047
|
const i = new FileReader();
|
|
1048
1048
|
i.onload = () => {
|
|
1049
1049
|
t(i.result);
|
|
1050
1050
|
}, i.readAsText(o), i.onerror = (a) => {
|
|
1051
|
-
|
|
1051
|
+
r(a);
|
|
1052
1052
|
};
|
|
1053
1053
|
});
|
|
1054
1054
|
}
|
|
1055
1055
|
async writeText(t) {
|
|
1056
|
-
const
|
|
1057
|
-
return this._write({ uuid: de(), items:
|
|
1056
|
+
const r = [new ClipboardItem({ [S.plain]: new Blob([t], { type: S.plain }) })];
|
|
1057
|
+
return this._write({ uuid: de(), items: r, ref: null });
|
|
1058
1058
|
}
|
|
1059
|
-
addEventListener(t,
|
|
1060
|
-
const o =
|
|
1059
|
+
addEventListener(t, r, n = {}) {
|
|
1060
|
+
const o = n?.capture ? this._listenersCapture : this._listeners;
|
|
1061
1061
|
let i = o.get(t);
|
|
1062
|
-
i || (i = /* @__PURE__ */ new Map(), o.set(t, i)), i.set(
|
|
1062
|
+
i || (i = /* @__PURE__ */ new Map(), o.set(t, i)), i.set(r, typeof n == "boolean" ? {} : n);
|
|
1063
1063
|
}
|
|
1064
1064
|
dispatchEvent(t) {
|
|
1065
1065
|
if (!t) return;
|
|
1066
|
-
const
|
|
1067
|
-
const o =
|
|
1066
|
+
const r = (n) => {
|
|
1067
|
+
const o = n.get(t.type);
|
|
1068
1068
|
o && o.forEach((i, a) => {
|
|
1069
1069
|
try {
|
|
1070
1070
|
typeof a == "function" ? a(t) : a.handleEvent && a.handleEvent(t), i.once && o.delete(a);
|
|
@@ -1073,11 +1073,11 @@ class tt {
|
|
|
1073
1073
|
}
|
|
1074
1074
|
});
|
|
1075
1075
|
};
|
|
1076
|
-
return
|
|
1076
|
+
return r(this._listenersCapture), r(this._listeners), !0;
|
|
1077
1077
|
}
|
|
1078
|
-
removeEventListener(t,
|
|
1079
|
-
const o =
|
|
1080
|
-
i && (i.delete(
|
|
1078
|
+
removeEventListener(t, r, n) {
|
|
1079
|
+
const o = n?.capture ? this._listenersCapture : this._listeners, i = o.get(t);
|
|
1080
|
+
i && (i.delete(r), i.size === 0 && o.delete(t));
|
|
1081
1081
|
}
|
|
1082
1082
|
close() {
|
|
1083
1083
|
globalThis.removeEventListener?.("focus", this._onFocus), globalThis.removeEventListener?.("blur", this._onBlur);
|
|
@@ -1096,16 +1096,16 @@ async function Gt() {
|
|
|
1096
1096
|
return ee;
|
|
1097
1097
|
}
|
|
1098
1098
|
let e, t;
|
|
1099
|
-
le = new Promise((
|
|
1100
|
-
e =
|
|
1099
|
+
le = new Promise((r, n) => {
|
|
1100
|
+
e = r, t = n;
|
|
1101
1101
|
});
|
|
1102
1102
|
try {
|
|
1103
|
-
const { initialize:
|
|
1104
|
-
return
|
|
1103
|
+
const { initialize: r } = await Promise.resolve().then(function() {
|
|
1104
|
+
return or;
|
|
1105
1105
|
});
|
|
1106
|
-
return ee = await
|
|
1107
|
-
} catch (
|
|
1108
|
-
throw console.error("Failed to import or initialize esbuild:",
|
|
1106
|
+
return ee = await r(), e(), ee;
|
|
1107
|
+
} catch (r) {
|
|
1108
|
+
throw console.error("Failed to import or initialize esbuild:", r), le = null, t(r), r;
|
|
1109
1109
|
}
|
|
1110
1110
|
}
|
|
1111
1111
|
const Wt = {
|
|
@@ -1114,21 +1114,21 @@ const Wt = {
|
|
|
1114
1114
|
target: "esnext"
|
|
1115
1115
|
}
|
|
1116
1116
|
};
|
|
1117
|
-
async function Yt(e, t,
|
|
1117
|
+
async function Yt(e, t, r = "/script.js", n = qt) {
|
|
1118
1118
|
try {
|
|
1119
1119
|
const o = await Gt(), i = "@sheetxl/primitives", a = \`
|
|
1120
|
-
export const FormulaContext = globalThis.\${
|
|
1121
|
-
export const ScalarType = globalThis.\${
|
|
1122
|
-
export const Observable = globalThis.\${
|
|
1123
|
-
export const IRange = globalThis.\${
|
|
1124
|
-
export const FormulaError = globalThis.\${
|
|
1120
|
+
export const FormulaContext = globalThis.\${n}?.FormulaContext;
|
|
1121
|
+
export const ScalarType = globalThis.\${n}?.ScalarType;
|
|
1122
|
+
export const Observable = globalThis.\${n}?.Observable;
|
|
1123
|
+
export const IRange = globalThis.\${n}?.IRange;
|
|
1124
|
+
export const FormulaError = globalThis.\${n}?.FormulaError;
|
|
1125
1125
|
// Add more exports as needed
|
|
1126
1126
|
\`, l = {
|
|
1127
1127
|
// ESBuild.Plugin = {
|
|
1128
1128
|
name: "sheetxl-esbuild-in-memory",
|
|
1129
1129
|
setup(p) {
|
|
1130
1130
|
const w = "sheetxl-" + (/* @__PURE__ */ new Date()).getTime();
|
|
1131
|
-
p.onResolve({ filter: new RegExp(\`^(\${
|
|
1131
|
+
p.onResolve({ filter: new RegExp(\`^(\${r.replace("/", "\\\\/")}|\${i})$\`) }, (g) => ({
|
|
1132
1132
|
path: g.path,
|
|
1133
1133
|
namespace: w
|
|
1134
1134
|
})), p.onResolve({ filter: /.*/ }, (g) => {
|
|
@@ -1136,7 +1136,7 @@ async function Yt(e, t, n = "/script.js", r = qt) {
|
|
|
1136
1136
|
return console.warn(\`esbuild: Treating import "\${g.path}" as external.\`), { path: g.path, external: !0 };
|
|
1137
1137
|
}), p.onLoad({ filter: /.*/, namespace: w }, (g) => {
|
|
1138
1138
|
let f;
|
|
1139
|
-
if (g.path ===
|
|
1139
|
+
if (g.path === r)
|
|
1140
1140
|
f = t;
|
|
1141
1141
|
else if (g.path === i)
|
|
1142
1142
|
f = a;
|
|
@@ -1152,7 +1152,7 @@ async function Yt(e, t, n = "/script.js", r = qt) {
|
|
|
1152
1152
|
});
|
|
1153
1153
|
}
|
|
1154
1154
|
}, u = await o.build({
|
|
1155
|
-
entryPoints: [
|
|
1155
|
+
entryPoints: [r],
|
|
1156
1156
|
// Use the virtual entry point
|
|
1157
1157
|
bundle: !0,
|
|
1158
1158
|
// IMPORTANT: Enable bundling
|
|
@@ -1209,9 +1209,9 @@ interface Promise<T> {
|
|
|
1209
1209
|
["ICellRange", "range"],
|
|
1210
1210
|
["IFormulaContext", "context"]
|
|
1211
1211
|
]), _e = (e, t) => {
|
|
1212
|
-
Array.from(t.keys()).forEach((
|
|
1213
|
-
const o = t.get(
|
|
1214
|
-
t.set(\`\${e}.\${
|
|
1212
|
+
Array.from(t.keys()).forEach((n) => {
|
|
1213
|
+
const o = t.get(n);
|
|
1214
|
+
t.set(\`\${e}.\${n}\`, o);
|
|
1215
1215
|
});
|
|
1216
1216
|
}, Zt = /* @__PURE__ */ new Map([
|
|
1217
1217
|
["Scalar", "*"],
|
|
@@ -1224,7 +1224,7 @@ interface Promise<T> {
|
|
|
1224
1224
|
_e(Oe, yt);
|
|
1225
1225
|
_e(Oe, gt);
|
|
1226
1226
|
_e(Oe, Qt);
|
|
1227
|
-
const
|
|
1227
|
+
const er = /* @__PURE__ */ new Map([
|
|
1228
1228
|
["Promise", () => ({ async: !0 })],
|
|
1229
1229
|
// ['PromiseLike', (): Partial<IFunction.ReturnTypeJSON> => {
|
|
1230
1230
|
// return { async: true };
|
|
@@ -1232,12 +1232,12 @@ const en = /* @__PURE__ */ new Map([
|
|
|
1232
1232
|
["Observable", () => ({ stream: !0 })]
|
|
1233
1233
|
]);
|
|
1234
1234
|
let se = null;
|
|
1235
|
-
async function
|
|
1235
|
+
async function tr() {
|
|
1236
1236
|
if (se)
|
|
1237
1237
|
return se;
|
|
1238
1238
|
try {
|
|
1239
1239
|
return await (await Promise.resolve().then(function() {
|
|
1240
|
-
return
|
|
1240
|
+
return ar;
|
|
1241
1241
|
})).initialize();
|
|
1242
1242
|
} catch (e) {
|
|
1243
1243
|
throw se = null, e;
|
|
@@ -1245,14 +1245,14 @@ async function tn() {
|
|
|
1245
1245
|
se = null;
|
|
1246
1246
|
}
|
|
1247
1247
|
}
|
|
1248
|
-
async function
|
|
1248
|
+
async function rr(e) {
|
|
1249
1249
|
const t = e?.source ?? null;
|
|
1250
1250
|
if (!t) return null;
|
|
1251
|
-
const
|
|
1251
|
+
const r = (e.disableBundle || e.declarationsOnly) ?? !1, n = [
|
|
1252
1252
|
Xt(),
|
|
1253
1253
|
//import('typescript'), // when bundled, but node check causes issues. We could bundle replace isNode but felt hacky
|
|
1254
|
-
|
|
1255
|
-
], o = await Promise.all(
|
|
1254
|
+
tr()
|
|
1255
|
+
], o = await Promise.all(n), i = o[0], a = o[1];
|
|
1256
1256
|
let l = "", u = null;
|
|
1257
1257
|
const p = [], w = {
|
|
1258
1258
|
allowJs: !0,
|
|
@@ -1329,7 +1329,7 @@ async function nn(e) {
|
|
|
1329
1329
|
if (R)
|
|
1330
1330
|
return R;
|
|
1331
1331
|
} else {
|
|
1332
|
-
const R =
|
|
1332
|
+
const R = er.get(M);
|
|
1333
1333
|
if (R) {
|
|
1334
1334
|
const b = { ...m, ...R() };
|
|
1335
1335
|
let N = 0;
|
|
@@ -1476,7 +1476,7 @@ async function nn(e) {
|
|
|
1476
1476
|
throw new Error("No exported functions.");
|
|
1477
1477
|
const bt = \`\${$t.uuidV4()}-script\`;
|
|
1478
1478
|
try {
|
|
1479
|
-
!
|
|
1479
|
+
!r && B.length === 0 && (l = await Yt(a, l, g));
|
|
1480
1480
|
} catch {
|
|
1481
1481
|
console.warn("Error bundling script");
|
|
1482
1482
|
}
|
|
@@ -1492,30 +1492,30 @@ async function nn(e) {
|
|
|
1492
1492
|
return u && (Ie.autoRun = u), Ie;
|
|
1493
1493
|
}
|
|
1494
1494
|
self.addEventListener("message", async (e) => {
|
|
1495
|
-
const { id: t, params:
|
|
1495
|
+
const { id: t, params: r } = e.data;
|
|
1496
1496
|
try {
|
|
1497
|
-
const
|
|
1498
|
-
self.postMessage({ id: t, result:
|
|
1499
|
-
} catch (
|
|
1497
|
+
const n = await rr(r);
|
|
1498
|
+
self.postMessage({ id: t, result: n, error: null });
|
|
1499
|
+
} catch (n) {
|
|
1500
1500
|
self.postMessage({
|
|
1501
1501
|
id: t,
|
|
1502
1502
|
result: null,
|
|
1503
1503
|
error: {
|
|
1504
|
-
message:
|
|
1505
|
-
stack:
|
|
1506
|
-
cause:
|
|
1504
|
+
message: n.message,
|
|
1505
|
+
stack: n.stack,
|
|
1506
|
+
cause: n.cause
|
|
1507
1507
|
}
|
|
1508
1508
|
});
|
|
1509
1509
|
}
|
|
1510
1510
|
});
|
|
1511
1511
|
let ce = null;
|
|
1512
|
-
async function
|
|
1512
|
+
async function nr() {
|
|
1513
1513
|
return ce || (ce = new Promise(async (e, t) => {
|
|
1514
1514
|
try {
|
|
1515
|
-
const
|
|
1515
|
+
const r = "0.20.2", n = \`https://esm.sh/esbuild-wasm@\${r}\`, o = \`https://esm.sh/esbuild-wasm@\${r}/esbuild.wasm\`, a = (await import(
|
|
1516
1516
|
/* webpackIgnore: true */
|
|
1517
1517
|
/* @vite-ignore */
|
|
1518
|
-
|
|
1518
|
+
n
|
|
1519
1519
|
)).default;
|
|
1520
1520
|
await a.initialize({
|
|
1521
1521
|
wasmURL: o,
|
|
@@ -1523,30 +1523,30 @@ async function rn() {
|
|
|
1523
1523
|
worker: !1
|
|
1524
1524
|
// Keep processing on the current thread
|
|
1525
1525
|
}), e(a);
|
|
1526
|
-
} catch (
|
|
1527
|
-
console.error("Error initializing esbuild:",
|
|
1526
|
+
} catch (r) {
|
|
1527
|
+
console.error("Error initializing esbuild:", r), t(r);
|
|
1528
1528
|
}
|
|
1529
1529
|
}), ce);
|
|
1530
1530
|
}
|
|
1531
|
-
var
|
|
1531
|
+
var or = /* @__PURE__ */ Object.freeze({
|
|
1532
1532
|
__proto__: null,
|
|
1533
|
-
initialize:
|
|
1533
|
+
initialize: nr
|
|
1534
1534
|
});
|
|
1535
1535
|
let ue = null;
|
|
1536
|
-
async function
|
|
1536
|
+
async function ir() {
|
|
1537
1537
|
return ue || (ue = new Promise(async (e, t) => {
|
|
1538
|
-
let
|
|
1538
|
+
let r = null;
|
|
1539
1539
|
try {
|
|
1540
|
-
|
|
1541
|
-
} catch (
|
|
1542
|
-
console.error("Error initializing Browser TypeScript module:",
|
|
1540
|
+
r = await import("https://esm.sh/typescript@5.7.2");
|
|
1541
|
+
} catch (n) {
|
|
1542
|
+
console.error("Error initializing Browser TypeScript module:", n);
|
|
1543
1543
|
}
|
|
1544
|
-
|
|
1544
|
+
r || console.log("use script fallback"), e(r);
|
|
1545
1545
|
}), ue);
|
|
1546
1546
|
}
|
|
1547
|
-
var
|
|
1547
|
+
var ar = /* @__PURE__ */ Object.freeze({
|
|
1548
1548
|
__proto__: null,
|
|
1549
|
-
initialize:
|
|
1549
|
+
initialize: ir
|
|
1550
1550
|
});
|
|
1551
1551
|
`, a = typeof self < "u" && self.Blob && new Blob(["URL.revokeObjectURL(import.meta.url);", s], { type: "text/javascript;charset=utf-8" });
|
|
1552
1552
|
function d(e) {
|
|
@@ -1574,7 +1574,7 @@ async function p() {
|
|
|
1574
1574
|
return await l();
|
|
1575
1575
|
}
|
|
1576
1576
|
const l = async () => {
|
|
1577
|
-
const { compileModule: e } = await import("./
|
|
1577
|
+
const { compileModule: e } = await import("./CHOlVNulci003tpR.mjs"), n = new u((t) => e(t));
|
|
1578
1578
|
return await n.start(), n;
|
|
1579
1579
|
};
|
|
1580
1580
|
export {
|