@sheetxl/studio-vanilla 0.7.28-beta.4 → 0.8.0-beta.10
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/esm/-LoBx7J6imeqaxCq.mjs +236 -0
- package/browser/esm/8-jmVNNbOHuXFdVQ.mjs +392 -0
- package/{cdn/assets/DJSXXWTUJGbXqLLx.js → browser/esm/B00ixdmb8-O5ijEp.mjs} +1 -1
- package/browser/esm/{ByJMrAYRARLc7uZQ2.mjs → B0Wjc3lwtjKMwnvn.mjs} +27 -29
- package/browser/esm/B3Ii8x6RquHW1jMc.mjs +299 -0
- package/{cdn/assets/BF9yh58xfvR0KbSo.js → browser/esm/B7iV5qzlmJlM2nQv.mjs} +179 -202
- package/{cdn/assets/C7xBBqvPqat9oEft2.js → browser/esm/BAH_cWcQEIBKWnl6.mjs} +101 -55
- package/browser/esm/BAdRecWK1maKGOZd.mjs +142 -0
- package/browser/esm/BBjgqNlHm-ssbSAG.mjs +47 -0
- package/browser/esm/BCWTI3jdTPG37r8W.mjs +46 -0
- package/{cdn/assets/CJGlwQusOCSy9ZAb.js → browser/esm/BMlPFJ1glExv-70Z.mjs} +5 -5
- package/browser/esm/{BrUe0MnOhxzeOngn2.mjs → BN2d5U1nw7pRtOrn.mjs} +1 -1
- package/browser/esm/BNIInlJQbJjH8B6G.mjs +84250 -0
- package/browser/esm/BPrHgyAsm2Htx15h.mjs +67 -0
- package/browser/esm/BRfat1fV3oGLwvin.mjs +76 -0
- package/browser/esm/{CXDtDYyREwoFwtMJ2.mjs → BSCja5yvevmKZPBB.mjs} +1 -1
- package/browser/esm/BThOwSja2ra4xejQ.mjs +6306 -0
- package/browser/esm/BVJUL2HhoedhbwVy.mjs +77 -0
- package/{cdn/assets/MHuhAgQAA8zcnWkd2.js → browser/esm/BWo1N4YbK_zGU0nu.mjs} +1 -1
- package/browser/esm/B_HB4y7AA88Z775Z.mjs +91 -0
- package/browser/esm/BaEZmurTZnX_yfKD.mjs +1082 -0
- package/browser/esm/BeMLfv6hWo15VCIL.mjs +239 -0
- package/browser/esm/{BjYIAiuzZbD-dk822.mjs → BhkeuRcx8RlLCQ5E.mjs} +1 -1
- package/browser/esm/Bi5-feQLtwpV6Ai8.mjs +57 -0
- package/browser/esm/BlPn_DXaEXOPxMxC.mjs +540 -0
- package/{cdn/assets/DY9zG4TdF0FAs_QP2.js → browser/esm/BsUrrzAgfyAdcCJW.mjs} +28 -13
- package/{cdn/assets/CBC_MJL6Bwk7bzQz2.js → browser/esm/BtGmrIqU9W1L8zfZ.mjs} +1 -1
- package/browser/esm/BtdRr6IbtO6Gypsk.mjs +27 -0
- package/browser/esm/BwOxnbR61WFJwy0A.mjs +607 -0
- package/browser/esm/BxhKgo_rPQ2d12HT.mjs +35 -0
- package/browser/esm/By3a43qwWICwXRmw.mjs +8035 -0
- package/browser/esm/{Cd8G1nX1dKzp-mho2.mjs → ByUcqyCNfqi5Mm7w.mjs} +2 -2
- package/{cdn/assets/DP9sLYfGGWMDI7hL2.js → browser/esm/ByqhqEMBLrnkaPKE.mjs} +26 -26
- package/browser/esm/{5LJ1sC7IPn109Ien.mjs → C-0viTjg1dT2F-sk.mjs} +2 -2
- package/browser/esm/{DnMUizHKSRwWpO_7.mjs → C3r_9RqlWrEmlXZ1.mjs} +37 -3
- package/browser/esm/C4VT6lNbpaDXCpBb.mjs +8820 -0
- package/browser/esm/{B3tC7wY_kUGXf5sb2.mjs → C5EKgE9Owsc_juw-.mjs} +1 -1
- package/{cdn/assets/BzktrYJH7SQ9GyUI2.js → browser/esm/C9NyIoUahFiyRCxP.mjs} +2 -2
- package/{cdn/assets/D5BuXc-kVnr6Xiae2.js → browser/esm/CBdNC7BOfc5TewHU.mjs} +1 -1
- package/browser/esm/CCd192S7yVpc6iOe.mjs +118 -0
- package/browser/esm/{Eszk9OugmYOhaS2s.mjs → CDsuiN--qdALFyql.mjs} +179 -202
- package/{cdn/assets/DtkqR-Hu7K4agnCs2.js → browser/esm/CFvKDDbrL3wpXnQH.mjs} +1 -1
- package/browser/esm/{DjS4iUli-T3uuUfK.mjs → CHMqT9DzYKTxPfP6.mjs} +2 -2
- package/{cdn/assets/BetL7yI63lEdQ0gM2.js → browser/esm/CMxbiQ5J79M3n1tk.mjs} +604 -405
- package/{cdn/assets/B4fSPDN923nqCDVE.js → browser/esm/CQOyeq_-pg3CM-uA.mjs} +6 -7
- package/browser/esm/CQuv-nk5jtXUfu7C.mjs +7 -0
- package/browser/esm/CRAzVh3CaAa16avf.mjs +521 -0
- package/browser/esm/{g8dDbkwbYjhKWJM22.mjs → CSEMxasVyGCekxKf.mjs} +6 -7
- package/browser/esm/CTI-mCJbJzitJZwj.mjs +25 -0
- package/browser/esm/{DrKUGkrCTKZHu8XC.mjs → CTdFZ_I-41Vr6Dy4.mjs} +1 -1
- package/browser/esm/CVcCUfSRsiZ1-6hs.mjs +119 -0
- package/browser/esm/CVxlfyE-gnJM8hOz.mjs +177 -0
- package/browser/esm/CWJzHmEgahdOfNjH.mjs +527 -0
- package/browser/esm/CWoPWWRwMgkGPFFP.mjs +7393 -0
- package/browser/esm/CZOJogyZqMfUxcXj.mjs +1141 -0
- package/{cdn/assets/Dy5Z2XIqS7-0tdjc2.js → browser/esm/CaS8_J5HfBRk5_Nw.mjs} +86 -86
- package/browser/esm/CdeXXPCp5cCYvGyD.mjs +14 -0
- package/browser/esm/{B9t9fF8FNCLomgK_.mjs → CfltjY8hY-RPwwpd.mjs} +582 -551
- package/browser/esm/Chr_TXM-48IsK8Va.mjs +155 -0
- package/browser/esm/{Ca6NSkWoi9DvRJjQ.mjs → ClJvUf8aR8vNC_3Z.mjs} +6 -6
- package/browser/esm/Clx8vvGDOTWK_M2l.mjs +484 -0
- package/browser/esm/CnWNviK4qlX2GVl6.mjs +73 -0
- package/browser/esm/{BsP1iPcd49wYIIoP.mjs → Cpza4AeltEVHASij.mjs} +3 -3
- package/browser/esm/{Dwko6HB2zePBBeBu2.mjs → CqoHxlGpZ3yzPj5V.mjs} +22 -21
- package/browser/esm/{XBb7Mxqf0beXaSJt.mjs → CtZPEkaldpJpoGtW.mjs} +2197 -2011
- package/browser/esm/CvWGtHslTdesJik-.mjs +69 -0
- package/browser/esm/Cw-4uoMuq_m7ziA3.mjs +36 -0
- package/browser/esm/CxCipDFamYSOctBo.mjs +299 -0
- package/browser/esm/Cy00y9b9j17Txyv1.mjs +466 -0
- package/browser/esm/D-55MlIn7Wo_hdjI.mjs +905 -0
- package/browser/esm/D-9f1NKcpuYSgond.mjs +412 -0
- package/browser/esm/D-KZpU6HMaP4VUva.mjs +357 -0
- package/browser/esm/D0r2MPlWLnStWJNW.mjs +622 -0
- package/browser/esm/{CXlA71yGA1Hqvp_S.mjs → D2aQPiGg0ZoMYzuf.mjs} +22 -21
- package/{cdn/assets/KJzdwvEWwCwAXuo4.js → browser/esm/D2coM-dNrlLpnUu5.mjs} +1000 -1010
- package/browser/esm/D7CGuQcwpkiuesEI.mjs +229 -0
- package/browser/esm/{BQt5lpPjssz4Lvhs.mjs → D7DWH3-5fBNx8jtc.mjs} +182 -132
- package/browser/esm/D7kkzIFPqKBK94kO.mjs +17952 -0
- package/browser/esm/D88StfSjZJi5E8Xb.mjs +5153 -0
- package/browser/esm/D8exjrado9TJrBp-.mjs +1946 -0
- package/browser/esm/DAE3Kv0Vs0VuBecT.mjs +32 -0
- package/browser/esm/DAprxR00V9qvNLL2.mjs +6607 -0
- package/browser/esm/DEvZj68igS7Q8SZE.mjs +763 -0
- package/browser/esm/DG3BfxRsbjey-B7E.mjs +441 -0
- package/browser/esm/DGCOPbZbEmt0x9z0.mjs +155 -0
- package/browser/esm/DGcvio2uhlrsE3ZY.mjs +236 -0
- package/browser/esm/DGuynZFJ9tqziqQs.mjs +92 -0
- package/browser/esm/DJqj66SnUcx0QmSN.mjs +15 -0
- package/browser/esm/DLhK_oSGg71ry6-m.mjs +86 -0
- package/browser/esm/{B_U_UpQXdbjNRthb.mjs → DLqc11Pf8vaE4Q5B.mjs} +2 -2
- package/browser/esm/DNCqTF9EbT-U1TdV.mjs +20 -0
- package/browser/esm/{DM4g0nYgYXgI44dL2.mjs → DNaPo7BQu6hr1fWq.mjs} +1 -1
- package/{cdn/assets/DRAYZ0SGlbCLkftR.js → browser/esm/DQEjvIGMgEkiaP6J.mjs} +1 -1
- package/browser/esm/{Ykh10IaXTKA2XWot.mjs → DQIRFXG4MveFkK3I.mjs} +1 -1
- package/{cdn/assets/DJk14sSSnSHiEXZ7.js → browser/esm/DRm1R4uVOkaMfXNI.mjs} +51 -11
- package/browser/esm/DSf-Db1h8rlW2A6n.mjs +122 -0
- package/browser/esm/DSviq1TNoiIAGW7W.mjs +32 -0
- package/{cdn/assets/CuIUyLNDoHvYMJaQ2.js → browser/esm/DTn9oYyiIYgyijAk.mjs} +110 -83
- package/browser/esm/{BxecIrskOMQZB-Xc.mjs → DVpi1vC8ixXvUQG_.mjs} +3 -3
- package/browser/esm/{esX6dx06TUUL-cRt.mjs → DWgp4t9N9u0eWthH.mjs} +1 -1
- package/browser/esm/{DLArQtAbWAarI8od2.mjs → DXo8mR6t5HGsmTcu.mjs} +1 -1
- package/browser/esm/DZRmBfjn2TgOTu5e.mjs +3604 -0
- package/browser/esm/{BJQfvwvEke-uN0_02.mjs → D_7BWdsu8yejhUxy.mjs} +184 -11
- package/browser/esm/D_thhK0vSez8Yfle.mjs +798 -0
- package/browser/esm/DaMKWQQTgIF08cT7.mjs +105 -0
- package/browser/esm/Db6Tvr45TS9J5Qsb.mjs +259 -0
- package/browser/esm/{Bc2Dp6W4U_22cv7c.mjs → Dc2ZwgbIEgYWwAsF.mjs} +1 -1
- package/{cdn/assets/BGWyNjrM55ce-D1o.js → browser/esm/DeUXRggj8Oz9ru_i.mjs} +2 -2
- package/{cdn/assets/CmYCYFWjq9KP6xw7.js → browser/esm/DfESVLC8CAi8m8A7.mjs} +6 -6
- package/browser/esm/{hsy1zALC1oNNm5Sf.mjs → DjdkGy-EI1kSo226.mjs} +7 -5
- package/browser/esm/DjtXfgbmXjUAoG0y.mjs +58 -0
- package/browser/esm/DlOVZD0OiAjouS6-.mjs +3563 -0
- package/browser/esm/Dme0qpRinBnhzp53.mjs +519 -0
- package/browser/esm/DnyZmrwPxShyeUjm.mjs +849 -0
- package/browser/esm/DoS1sE431fEhdOQb.mjs +216 -0
- package/browser/esm/DqBj-9o7UdXu4qhb.mjs +33 -0
- package/{cdn/assets/FVJ1akngxeMiYwPa.js → browser/esm/DrI_S0A9TQvriTua.mjs} +1 -1
- package/browser/esm/Dv2z0548SZRGTN3l.mjs +149 -0
- package/browser/esm/{Bjx-9lUaScF5-Hki2.mjs → Dv8aQFTTaQBJKDDk.mjs} +2 -5
- package/browser/esm/DvWCBuY0jAL-RmJV.mjs +3363 -0
- package/browser/esm/Dwxz0s23ra1tRtsH.mjs +7 -0
- package/{cdn/assets/D4aK0uTRJQpM63922.js → browser/esm/DxcRLd7wmBGDgJsA.mjs} +1 -1
- package/{cdn/assets/CIgn8uIPaadIJP4a2.js → browser/esm/DxwprgjYhcmfDbXH.mjs} +24 -24
- package/browser/esm/{DENx9Ts-f8adXw3Y2.mjs → Dy44qJVkwNseMG-3.mjs} +1 -1
- package/browser/esm/DyeY6XwMQ_XNUHiW.mjs +89 -0
- package/browser/esm/{BOMct7uvqiNJIS63.mjs → ErIXJFPDFXwGEL8V.mjs} +2 -2
- package/browser/esm/{C4vqrW3EmJDy1otX.mjs → FO1Jezau486fH4kN.mjs} +7 -6
- package/browser/esm/FjNOhkR7-JAIaRP6.mjs +19 -0
- package/browser/esm/H-JnJQMcZQbpvjdb.mjs +2706 -0
- package/browser/esm/J9i3r1fU0H10b2hX.mjs +1001 -0
- package/browser/esm/LAbUYeLiPG8z9cmA.mjs +277 -0
- package/browser/esm/M7RYrx20B_Yl_euJ.mjs +400 -0
- package/browser/esm/{PzCXbVRf1jOHVOAw.mjs → PtGiIWFBYP-ujLmf.mjs} +1 -1
- package/browser/esm/RLU85PsAYtKPUf6N.mjs +71 -0
- package/browser/esm/{CTwLETvNO4KeXbkK2.mjs → RfHd1JATBlcsfLPv.mjs} +5 -5
- package/{cdn/assets/Bce8ZTUCpXr5Y_zl2.js → browser/esm/SNze-adFJwKuGSQW.mjs} +48 -2
- package/browser/esm/UTZcodQydbuMfCOS.mjs +171 -0
- package/{cdn/assets/BGAXiHOiX_PZ1ww1.js → browser/esm/VwGokBaawZfZiV2X.mjs} +1 -1
- package/browser/esm/WMYR09ZOR8JbZEnx.mjs +4748 -0
- package/browser/esm/{DOIVDuyf7YyJZjcD.mjs → ZbGPiRN9j0629JJQ.mjs} +2 -2
- package/{cdn/assets/BPAEbeXV75XIAS4n.js → browser/esm/ZxsFYopF0_WWqw4Q.mjs} +1 -1
- package/browser/esm/_MPToH4oMe4rhTdZ.mjs +63 -0
- package/browser/esm/{L6LjzOx1G9Idjtxa2.mjs → _t0Mx-mUFVtmVNkU.mjs} +2 -2
- package/{cdn/assets/CgsQuAbp76UOAPHm2.js → browser/esm/_zRV52yhE4gPf3XI.mjs} +211 -189
- package/browser/esm/aUREGNA8H7p4BpMK.mjs +33 -0
- package/browser/esm/cwuYkcKwsKkPe3gG.mjs +598 -0
- package/browser/esm/{CY4ANhbzXqZMJPnL2.mjs → djM9mJznx8GzVq51.mjs} +16 -15
- package/browser/esm/{6A8iYjFWJzx5PaTP2.mjs → f1OJemsiZnbwnds-.mjs} +16 -15
- package/{cdn/assets/DOsKUeLPwFIdzQv32.js → browser/esm/i0P63Wd0RRlgJotb.mjs} +1 -1
- package/browser/esm/{BZSAb1WGbwagUKGv2.mjs → iC69oOND5T8khIWf.mjs} +18 -17
- package/browser/esm/index.mjs +644 -48
- package/browser/esm/{pFBVGSvmImMMDMuJ.mjs → kVBPUUnVyZfb8pf3.mjs} +52 -52
- package/browser/esm/{BZkd8LNLgEd5WQXO2.mjs → lqknEt3DTma5Juxs.mjs} +69 -4
- package/browser/esm/mZ92wNrHVpYdli1U.mjs +182 -0
- package/browser/esm/{CBuulf8RrSItPZJi.mjs → pKc_RPdZPLAgvNDh.mjs} +2 -2
- package/{cdn/assets/D2Ls6urWeByV5W-B.js → browser/esm/pc49xtHdprXZLW2X.mjs} +1 -1
- package/browser/esm/px-aQ8dMjiWag_pV.mjs +167 -0
- package/browser/esm/qYca4mdySLkACfo1.mjs +37 -0
- package/browser/esm/r2Az2Yc4_qj2-sn0.mjs +398 -0
- package/browser/esm/{CHmSnCPoww1StSta.mjs → rY-dC3WB558TIbum.mjs} +4 -4
- package/browser/esm/rkTVQiYG3wd8oPom.mjs +2452 -0
- package/browser/esm/sDVzjXC1mS5rucF5.mjs +2447 -0
- package/browser/esm/sxxbiJiCMOW2Eivd.mjs +24952 -0
- package/{cdn/assets/BZXvEddjoz4C8y4w.js → browser/esm/vGKTE7yjY8y-XnsW.mjs} +16 -11
- package/{cdn/assets/BRBHACVjnV1_6VLQ.js → browser/esm/x6GcENwqoUVbd60j.mjs} +1 -1
- package/{cdn/assets/CsKCqLuggHhYC93k.js → browser/esm/ycmpAs4kQfeh78Pa.mjs} +1 -1
- package/browser/esm/ztqpWR65YYMZ3EPk.mjs +811 -0
- package/cdn/assets/0vqRTRN0wEzWao1c.js +522 -0
- package/cdn/assets/514mXPTuNvdNgw35.js +412 -0
- package/{browser/esm/B6bX01HNxwBooBTX2.mjs → cdn/assets/7Sg0ht_ZCMJkPurt.js} +89 -87
- package/cdn/assets/{CY7qR8ENX314HrrD.js → 7i4WSxDsu2ApJJ2_.js} +6 -6
- package/cdn/assets/AjMG7Fb9r4Fk7Hsf.js +78 -0
- package/{browser/esm/DJSXXWTUJGbXqLLx.mjs → cdn/assets/B00ixdmb8-O5ijEp.js} +1 -1
- package/cdn/assets/{ByJMrAYRARLc7uZQ.js → B0Wjc3lwtjKMwnvn.js} +27 -29
- package/cdn/assets/B27vTQlxbHhSQJx8.js +24953 -0
- package/cdn/assets/B3NWCYKXucbHhOix.js +93 -0
- package/{browser/esm/C7xBBqvPqat9oEft.mjs → cdn/assets/BAH_cWcQEIBKWnl6.js} +101 -55
- package/cdn/assets/BAdRecWK1maKGOZd.js +142 -0
- package/cdn/assets/BB4MW8sSYEXjPvvf.js +64 -0
- package/cdn/assets/BBjgqNlHm-ssbSAG.js +47 -0
- package/cdn/assets/BI6afPOpgNYkzIWv.js +6609 -0
- package/cdn/assets/{Dgt8kua8CYlMRfdw.js → BIsbcP5RXRU2XPfx.js} +2 -2
- package/{browser/esm/CJGlwQusOCSy9ZAb2.mjs → cdn/assets/BMlPFJ1glExv-70Z.js} +5 -5
- package/cdn/assets/{BrUe0MnOhxzeOngn.js → BN2d5U1nw7pRtOrn.js} +1 -1
- package/cdn/assets/BNsqqoZY7a4N1wWC.js +905 -0
- package/cdn/assets/BPrHgyAsm2Htx15h.js +67 -0
- package/cdn/assets/{CXDtDYyREwoFwtMJ.js → BSCja5yvevmKZPBB.js} +1 -1
- package/{browser/esm/MHuhAgQAA8zcnWkd.mjs → cdn/assets/BWo1N4YbK_zGU0nu.js} +1 -1
- package/cdn/assets/B_3Musz0q2MSZ5H-.js +799 -0
- package/cdn/assets/Ba8taVvLslFcKS72.js +119 -0
- package/cdn/assets/{B0N6rTGGJN2DZPaf.js → BeQ95CzwR65il0CK.js} +2 -2
- package/cdn/assets/BelX6bvQPsGuo-x3.js +7 -0
- package/cdn/assets/{DGWhm91XZlY1GWHe2.js → Bgbi7BFR3rN5qj51.js} +22 -21
- package/cdn/assets/BgyY4zVPZSXljoCZ.js +14 -0
- package/cdn/assets/{BjYIAiuzZbD-dk82.js → BhkeuRcx8RlLCQ5E.js} +1 -1
- package/cdn/assets/BlIZ30huelIxNo6S.js +91 -0
- package/cdn/assets/BlPn_DXaEXOPxMxC.js +540 -0
- package/cdn/assets/BoFx07POTorOb5g-.js +7393 -0
- package/cdn/assets/{hClmI7sWeaBbHo3W2.js → BpZ7P0CO148rR4zW.js} +24 -23
- package/cdn/assets/BsTFy_iJXJYmaO3Z.js +763 -0
- package/cdn/assets/{DiKc6jzGM1isrN02.js → Bsn-tUx172sEG2kR.js} +59 -47
- package/{browser/esm/CBC_MJL6Bwk7bzQz.mjs → cdn/assets/BtGmrIqU9W1L8zfZ.js} +1 -1
- package/cdn/assets/BuYS_ZjSlcvWZ1JC.js +8035 -0
- package/cdn/assets/BvlfKrfrDhE9Jw4d.js +598 -0
- package/cdn/assets/BwOxnbR61WFJwy0A.js +607 -0
- package/cdn/assets/BxqXOiOyI_XiOmvN.js +156 -0
- package/cdn/assets/{Cd8G1nX1dKzp-mho.js → ByUcqyCNfqi5Mm7w.js} +2 -2
- package/{browser/esm/D8zyGG6yt4CsyA8K.mjs → cdn/assets/BzbP4jaN13wC9aSi.js} +58 -55
- package/cdn/assets/{5LJ1sC7IPn109Ien.js → C-0viTjg1dT2F-sk.js} +2 -2
- package/cdn/assets/C0CeCYdLWLjySEFe.js +123 -0
- package/cdn/assets/{DjfBSoaKM-vtbeqT.js → C32co-XulWTkEKrW.js} +2 -2
- package/cdn/assets/{DnMUizHKSRwWpO_72.js → C3r_9RqlWrEmlXZ1.js} +37 -3
- package/cdn/assets/{B3tC7wY_kUGXf5sb.js → C5EKgE9Owsc_juw-.js} +1 -1
- package/cdn/assets/C6INLvBy8kdzFpsX.js +2447 -0
- package/cdn/assets/C7fu6LrSMBlHqwUy.js +46 -0
- package/{browser/esm/BzktrYJH7SQ9GyUI.mjs → cdn/assets/C9NyIoUahFiyRCxP.js} +2 -2
- package/{browser/esm/D5BuXc-kVnr6Xiae.mjs → cdn/assets/CBdNC7BOfc5TewHU.js} +1 -1
- package/cdn/assets/{DJHOKENCVOJMx3aE2.js → CCvBdPu7W2ZF6A9J.js} +9 -9
- package/{browser/esm/DmqS0kz7jvlOw3qr.mjs → cdn/assets/CDAYVaQYywqaxg4O.js} +28 -13
- package/cdn/assets/CEYyp6Qrr_IopxpL.js +22597 -0
- package/cdn/assets/CFBgmXap8kmumhoz.js +622 -0
- package/{browser/esm/DtkqR-Hu7K4agnCs.mjs → cdn/assets/CFvKDDbrL3wpXnQH.js} +1 -1
- package/{browser/esm/BBhB25AlKEzdoI0V.mjs → cdn/assets/CHMqT9DzYKTxPfP6.js} +2 -2
- package/cdn/assets/CILUMtSddGz7WXEv.js +240 -0
- package/cdn/assets/{BynqRVXFRplO7XgC.js → CIyaijfp6itgRpFM.js} +95 -87
- package/cdn/assets/{DpNYiOK112bFC3KK2.js → CL6Tgu_rUO6G-fyq.js} +183 -10
- package/cdn/assets/CMVTwWHsRgyfSEDM.js +300 -0
- package/{browser/esm/BetL7yI63lEdQ0gM.mjs → cdn/assets/CMxbiQ5J79M3n1tk.js} +604 -405
- package/cdn/assets/COMOqucXq7X1vi0P.js +230 -0
- package/{browser/esm/B4fSPDN923nqCDVE2.mjs → cdn/assets/CQOyeq_-pg3CM-uA.js} +6 -7
- package/cdn/assets/{DaX0_AkJxkaUnNT7.js → CRXSrbGNABtzf532.js} +141 -126
- package/cdn/assets/{g8dDbkwbYjhKWJM2.js → CSEMxasVyGCekxKf.js} +6 -7
- package/cdn/assets/CSIZpJClc66_20kP.js +849 -0
- package/cdn/assets/CTI-mCJbJzitJZwj.js +25 -0
- package/cdn/assets/{DrKUGkrCTKZHu8XC.js → CTdFZ_I-41Vr6Dy4.js} +1 -1
- package/cdn/assets/CTvPIYWTcjwlJeEA.js +237 -0
- package/cdn/assets/CU5cKipVT1X8Xz7F.js +156 -0
- package/cdn/assets/CVcCUfSRsiZ1-6hs.js +119 -0
- package/cdn/assets/CWJzHmEgahdOfNjH.js +527 -0
- package/cdn/assets/CZOJogyZqMfUxcXj.js +1141 -0
- package/{browser/esm/DER7-kADXFnTmK-32.mjs → cdn/assets/CakrxSS_RXtKmcUX.js} +123 -94
- package/cdn/assets/{Bj8bWbLg1IY965tK.js → CbTN0q6XnYGJqyEp.js} +2215 -2029
- package/cdn/assets/{DQhvG3cP0HPB6giA2.js → Cfg4Dtndwurxv9LM.js} +8 -8
- package/{browser/esm/BgwHVPZp494SgQ0d2.mjs → cdn/assets/ChAKLV5zrGAHAof2.js} +44 -42
- package/cdn/assets/{BO2NRW9sjHGE9tg-2.js → CsrTRThObSryov1b.js} +182 -132
- package/cdn/assets/Cv5PLuhEmh5IDHjb.js +75 -0
- package/cdn/assets/Cw-4uoMuq_m7ziA3.js +36 -0
- package/cdn/assets/Cw7AJWd0S2sjRmr6.js +6309 -0
- package/cdn/assets/CwqRA5h1u92Cyit-.js +7 -0
- package/cdn/assets/Cy00y9b9j17Txyv1.js +466 -0
- package/cdn/assets/{CnfGgjuCEyX-PYs_2.js → D-bNmX0QsA8SuT0m.js} +33 -32
- package/{browser/esm/PAu9erpoOTNzgNbN.mjs → cdn/assets/D-yz3V2UC54rwctD.js} +16 -11
- package/cdn/assets/D32D_biNXRCZ24vG.js +87 -0
- package/cdn/assets/D8DghdqjOtBzO2Wx.js +35 -0
- package/cdn/assets/DAE3Kv0Vs0VuBecT.js +32 -0
- package/cdn/assets/DCnWyVXikb_8Dat3.js +61 -0
- package/cdn/assets/DHH_uKVzQ_kRYO2N.js +57 -0
- package/cdn/assets/DHugYwX4_ZyqGn-C.js +1947 -0
- package/cdn/assets/DJqj66SnUcx0QmSN.js +15 -0
- package/cdn/assets/{DM4g0nYgYXgI44dL.js → DNaPo7BQu6hr1fWq.js} +1 -1
- package/cdn/assets/DOHh3pUXxMM09UY5.js +3604 -0
- package/cdn/assets/DONxZZT2Iwu7psS5.js +27 -0
- package/{browser/esm/DRAYZ0SGlbCLkftR2.mjs → cdn/assets/DQEjvIGMgEkiaP6J.js} +1 -1
- package/cdn/assets/{Ykh10IaXTKA2XWot2.js → DQIRFXG4MveFkK3I.js} +1 -1
- package/cdn/assets/DQjxp9lDP9DzP8ah.js +357 -0
- package/{browser/esm/DJk14sSSnSHiEXZ72.mjs → cdn/assets/DRm1R4uVOkaMfXNI.js} +51 -11
- package/cdn/assets/DSXJHEORGmMQX_Mb.js +8391 -0
- package/cdn/assets/DSviq1TNoiIAGW7W.js +32 -0
- package/cdn/assets/{BxecIrskOMQZB-Xc.js → DVpi1vC8ixXvUQG_.js} +3 -3
- package/cdn/assets/{esX6dx06TUUL-cRt.js → DWgp4t9N9u0eWthH.js} +1 -1
- package/cdn/assets/{DLArQtAbWAarI8od.js → DXo8mR6t5HGsmTcu.js} +1 -1
- package/cdn/assets/DYvBgX17ZerZSHEJ.js +300 -0
- package/cdn/assets/DZRm4H75lnEtOG8e.js +260 -0
- package/cdn/assets/D_pMOq6FdH4RSBLc.js +3364 -0
- package/cdn/assets/{Bc2Dp6W4U_22cv7c2.js → Dc2ZwgbIEgYWwAsF.js} +1 -1
- package/cdn/assets/DckmFyHxGX4Y1gOq.js +70 -0
- package/cdn/assets/{D-tQc4bi3FzGVnFg.js → De2z8LdHaWRFiR5T.js} +179 -202
- package/{browser/esm/BGWyNjrM55ce-D1o2.mjs → cdn/assets/DeUXRggj8Oz9ru_i.js} +2 -2
- package/{browser/esm/CmYCYFWjq9KP6xw72.mjs → cdn/assets/DfESVLC8CAi8m8A7.js} +6 -6
- package/cdn/assets/DicTo_3G-KZyWDiE.js +1084 -0
- package/cdn/assets/{hsy1zALC1oNNm5Sf.js → DjdkGy-EI1kSo226.js} +7 -5
- package/cdn/assets/DjtXfgbmXjUAoG0y.js +58 -0
- package/cdn/assets/DlpgIJxNq2V4gdDq.js +74 -0
- package/cdn/assets/{Bh4hZt6639QZusIG.js → Dp-GJXOMz_b8qAxD.js} +2 -2
- package/cdn/assets/DqBj-9o7UdXu4qhb.js +33 -0
- package/{browser/esm/FVJ1akngxeMiYwPa.mjs → cdn/assets/DrI_S0A9TQvriTua.js} +1 -1
- package/cdn/assets/DuAbY54w5gJpQgss.js +84250 -0
- package/cdn/assets/{Bjx-9lUaScF5-Hki.js → Dv8aQFTTaQBJKDDk.js} +2 -5
- package/cdn/assets/DviEoeWW0EvDg1hr.js +149 -0
- package/{browser/esm/D4aK0uTRJQpM6392.mjs → cdn/assets/DxcRLd7wmBGDgJsA.js} +1 -1
- package/cdn/assets/DxisV9_27l_WU-nk.js +21 -0
- package/cdn/assets/{DENx9Ts-f8adXw3Y.js → Dy44qJVkwNseMG-3.js} +1 -1
- package/cdn/assets/ENtt4kmaU9mJfVEp.js +236 -0
- package/cdn/assets/{C4vqrW3EmJDy1otX.js → FO1Jezau486fH4kN.js} +7 -6
- package/cdn/assets/FjNOhkR7-JAIaRP6.js +19 -0
- package/{browser/esm/BmTSjuGI87QqMA-a.mjs → cdn/assets/G5z0uVlyF6CLw_PA.js} +179 -202
- package/cdn/assets/H-JnJQMcZQbpvjdb.js +2706 -0
- package/cdn/assets/J3hutJxqQiHENpIe.js +392 -0
- package/cdn/assets/J9i3r1fU0H10b2hX.js +1001 -0
- package/cdn/assets/{PzCXbVRf1jOHVOAw.js → PtGiIWFBYP-ujLmf.js} +1 -1
- package/cdn/assets/PzWqv-oXxEuzKdaT.js +484 -0
- package/cdn/assets/QJ4AkDD269D1MzmI.js +89 -0
- package/cdn/assets/{CTwLETvNO4KeXbkK.js → RfHd1JATBlcsfLPv.js} +5 -5
- package/{browser/esm/Bce8ZTUCpXr5Y_zl.mjs → cdn/assets/SNze-adFJwKuGSQW.js} +48 -2
- package/cdn/assets/UTZcodQydbuMfCOS.js +171 -0
- package/{browser/esm/DSWdYe7SDB5cYWo5.mjs → cdn/assets/VCiu_neIjCTg2NUa.js} +998 -1006
- package/{browser/esm/BGAXiHOiX_PZ1ww12.mjs → cdn/assets/VwGokBaawZfZiV2X.js} +1 -1
- package/cdn/assets/W1d6GQyySAHrtjEu.js +3563 -0
- package/cdn/assets/ZSYS1J3uR7UQuHwZ.js +217 -0
- package/{browser/esm/BPAEbeXV75XIAS4n2.mjs → cdn/assets/ZxsFYopF0_WWqw4Q.js} +1 -1
- package/cdn/assets/{L6LjzOx1G9Idjtxa.js → _t0Mx-mUFVtmVNkU.js} +2 -2
- package/cdn/assets/aHTKr1ijZ6bRi3Zg.js +33 -0
- package/cdn/assets/anQDUZhHMDPi1eha.js +812 -0
- package/cdn/assets/{Dr1U0I01_KIa9vgR2.js → dn69mDhY7Xcc91kF.js} +20 -19
- package/cdn/assets/fm3mUdTDo-STB36M.js +4749 -0
- package/cdn/assets/gpQ4FdJMbIScKnS_.js +400 -0
- package/cdn/assets/{DeFts-aGqB-RDuV1.js → hg8WYI0Yy4WPPPoP.js} +28 -27
- package/{browser/esm/DOsKUeLPwFIdzQv32.mjs → cdn/assets/i0P63Wd0RRlgJotb.js} +1 -1
- package/cdn/assets/lWY3TbG2NDscy9He.js +72 -0
- package/cdn/assets/{BZkd8LNLgEd5WQXO.js → lqknEt3DTma5Juxs.js} +69 -4
- package/cdn/assets/mK8HcIZyXkOTvL6E.js +2453 -0
- package/{browser/esm/D2Ls6urWeByV5W-B2.mjs → cdn/assets/pc49xtHdprXZLW2X.js} +1 -1
- package/cdn/assets/px-aQ8dMjiWag_pV.js +167 -0
- package/cdn/assets/qYca4mdySLkACfo1.js +37 -0
- package/{browser/esm/DHQcJqD-EtJ0Efug2.mjs → cdn/assets/w5IQWbJETgHhqMsY.js} +33 -31
- package/cdn/assets/wM7DzeOpoEGBVDBe.js +441 -0
- package/{browser/esm/BRBHACVjnV1_6VLQ2.mjs → cdn/assets/x6GcENwqoUVbd60j.js} +1 -1
- package/cdn/assets/xlXDq-qoj7eOE6_T.js +5153 -0
- package/{browser/esm/CsKCqLuggHhYC93k2.mjs → cdn/assets/ycmpAs4kQfeh78Pa.js} +1 -1
- package/cdn/index.js +2 -2
- package/package.json +13 -14
- package/browser/cjs/1XrWGMP3GmsQOMIX.cjs +0 -1
- package/browser/cjs/49_x589Na12sizKK2.cjs +0 -1
- package/browser/cjs/4nReftSsKWmnRdtf2.cjs +0 -1
- package/browser/cjs/507hQYooKKjnRzsZ2.cjs +0 -1
- package/browser/cjs/B4JJfKSI4ppwU8552.cjs +0 -1
- package/browser/cjs/B7_pDFYCVzt-3hUs.cjs +0 -1
- package/browser/cjs/BAxVLKkxFgI6cXnR2.cjs +0 -1
- package/browser/cjs/BClFnd-voK5qaz1I.cjs +0 -88
- package/browser/cjs/BEJFcqVMDMKOvs11.cjs +0 -1
- package/browser/cjs/BF-38Z7Z0FZOPl192.cjs +0 -1
- package/browser/cjs/BF14ZEAnaqxXroSj.cjs +0 -1
- package/browser/cjs/BFdq8CHyR6FQvmQA2.cjs +0 -1
- package/browser/cjs/BK0SCfN_VZYqBxoQ2.cjs +0 -1
- package/browser/cjs/BKXFdLiztqEHIjQ_2.cjs +0 -1
- package/browser/cjs/BVN0uo1XwTCtE2mh.cjs +0 -7
- package/browser/cjs/BWDfauDHqB6U_2ka2.cjs +0 -1
- package/browser/cjs/B_WV3e3yexp3dKaz.cjs +0 -9
- package/browser/cjs/BbEwESVyRYXzMlW7.cjs +0 -5
- package/browser/cjs/BjgiE9MBDkKiRL6q.cjs +0 -3
- package/browser/cjs/BnccBYHCCq9TGFx4.cjs +0 -8
- package/browser/cjs/Btc0Nzu40VYOpzLX2.cjs +0 -1
- package/browser/cjs/BvG8N7G_8CXIAlT-.cjs +0 -1
- package/browser/cjs/BwLx9ix5Sq7suAYP2.cjs +0 -1
- package/browser/cjs/Byl4bQWpLnjthChn2.cjs +0 -7
- package/browser/cjs/BzsAbsb35hYT3xUc.cjs +0 -5
- package/browser/cjs/C-bW8lKUTFFUVap4.cjs +0 -1
- package/browser/cjs/C0hGnOYkvrwxaGrw.cjs +0 -1
- package/browser/cjs/C2uDl8VIJqh58YF_2.cjs +0 -1
- package/browser/cjs/C7GpcB_YgM-RLa2P.cjs +0 -1
- package/browser/cjs/C8GZf3UAOhfisYCs.cjs +0 -1
- package/browser/cjs/C9C-pr-T_ThweQX9.cjs +0 -1
- package/browser/cjs/C9L-xibuJ434Mqqq2.cjs +0 -1
- package/browser/cjs/CEXs4eRDOv4EjbSw2.cjs +0 -1
- package/browser/cjs/CEpXnHhrczUmIwMa2.cjs +0 -1
- package/browser/cjs/CHFOXPbNUaeZbrXn.cjs +0 -1
- package/browser/cjs/CHMgm0vAbEBS1mVW.cjs +0 -1
- package/browser/cjs/CJYewYJ5Z3iojl7J.cjs +0 -1
- package/browser/cjs/CLXzYSmhCHV5LQh7.cjs +0 -1
- package/browser/cjs/CN-dCAHVcxuMSyFz.cjs +0 -1
- package/browser/cjs/CPcBvw4ZPwHVTUZF.cjs +0 -1
- package/browser/cjs/CRx1WvmgBjT8WVyB2.cjs +0 -1
- package/browser/cjs/CV4KQsHluMqo1I2Q2.cjs +0 -1
- package/browser/cjs/CW-b31_-r-_raT8Y.cjs +0 -1
- package/browser/cjs/CXlzsh_WHCOsErJ12.cjs +0 -1
- package/browser/cjs/CZfNBCd62H_Jpkhl.cjs +0 -12
- package/browser/cjs/C_7w8EJZpHw8ueuq.cjs +0 -1
- package/browser/cjs/C_IEgjM-hSJCv6Gm.cjs +0 -1
- package/browser/cjs/CbLXP9WY38wTcGn5.cjs +0 -10
- package/browser/cjs/CeF0DZ-k4DB8M47I.cjs +0 -1
- package/browser/cjs/Ck7Tc5npWk73wrF3.cjs +0 -57
- package/browser/cjs/Clu7XiAsCB48GDXN.cjs +0 -1
- package/browser/cjs/CnZfa45XxA-9Jhmp.cjs +0 -1
- package/browser/cjs/CnjaTz8HJXStwuH8.cjs +0 -1
- package/browser/cjs/CoiPEZabJyiXxLta.cjs +0 -1
- package/browser/cjs/CpJJh4UnFl1_qFui.cjs +0 -1
- package/browser/cjs/CrZlUtdX1h2RUnCP.cjs +0 -1
- package/browser/cjs/Cty5pi0fwToP1GWe.cjs +0 -7
- package/browser/cjs/Cu0UCwSpRK4OnCuP.cjs +0 -1
- package/browser/cjs/CxWeFfNAUvhHe9F-.cjs +0 -21
- package/browser/cjs/D-o-mlG9tYSuZrvy2.cjs +0 -1
- package/browser/cjs/D8-KovdJ0LjxqCe2.cjs +0 -1
- package/browser/cjs/DAA0zpvkrMOLDPxr.cjs +0 -1
- package/browser/cjs/DAXgAEDtRrsWAePT.cjs +0 -1
- package/browser/cjs/DCIlWcGDrp-5PDoA2.cjs +0 -1
- package/browser/cjs/DDPxHIqx8aIbqTRE.cjs +0 -1
- package/browser/cjs/DDnGLOLTqLFsdUDS.cjs +0 -1
- package/browser/cjs/DEOu_cHJ1FfTA9R_2.cjs +0 -1
- package/browser/cjs/DG-AY_xO8RKHtEBE.cjs +0 -2
- package/browser/cjs/DG2kqsWRUtVugjay.cjs +0 -1
- package/browser/cjs/DIbdDzNf_3S2RYZN.cjs +0 -1
- package/browser/cjs/DLYEQZzAGuSAmJsp.cjs +0 -6
- package/browser/cjs/DM7-R_ltoLbA9jde2.cjs +0 -1
- package/browser/cjs/DMp9wql2kbZKAbGe.cjs +0 -3
- package/browser/cjs/DNCC-QNp2I7saV-I.cjs +0 -1
- package/browser/cjs/DNKyaSruDogoBd2H.cjs +0 -1
- package/browser/cjs/DQTBgNqDHInvxrwS.cjs +0 -1
- package/browser/cjs/DYqvGm5rx1DB53p7.cjs +0 -1
- package/browser/cjs/DZSvmqU8nRas1uz62.cjs +0 -1
- package/browser/cjs/DcHxh5QxfVitzdhv.cjs +0 -1
- package/browser/cjs/DgGGzl7jq3i7Cqfi.cjs +0 -1
- package/browser/cjs/Dkgu60euhL6wPoYa2.cjs +0 -1
- package/browser/cjs/DsFZgtSQpC75d1M02.cjs +0 -1
- package/browser/cjs/DsgqbxMOVQmAFSDy2.cjs +0 -1
- package/browser/cjs/DtaFdoK4CppKRF6F2.cjs +0 -20
- package/browser/cjs/Dtc_8P-koQRmNT2s.cjs +0 -33
- package/browser/cjs/Du4jBiFxRIF1OjD42.cjs +0 -1
- package/browser/cjs/Dx79LP1-YCQg8B87.cjs +0 -1
- package/browser/cjs/EeOVMRq7TuptFKTc2.cjs +0 -1
- package/browser/cjs/FUM_3mQlC-6WPjkT.cjs +0 -4
- package/browser/cjs/IbciPMJP2Pam3ERm.cjs +0 -1
- package/browser/cjs/J7LQgueGGNUE9emR.cjs +0 -1
- package/browser/cjs/JfM6P_qoQQTWakZf2.cjs +0 -1
- package/browser/cjs/Kvn916ebqGc4t6hv2.cjs +0 -1
- package/browser/cjs/M19oMY91yZxf2WAR.cjs +0 -1
- package/browser/cjs/NcNz8RfT5V889CMT.cjs +0 -10
- package/browser/cjs/NzAMMcPT7SETmqPg.cjs +0 -2
- package/browser/cjs/QK9BfdSZPLmyRpGi2.cjs +0 -1
- package/browser/cjs/X1LnR885SNQaK5HZ.cjs +0 -1
- package/browser/cjs/Y78-VwYSNffwXRVz2.cjs +0 -2
- package/browser/cjs/Ytzw6iUYx5f19wfK.cjs +0 -9
- package/browser/cjs/aONv0Ys3C8xmnaR8.cjs +0 -1
- package/browser/cjs/bM25C5avKgBAJVfk2.cjs +0 -1
- package/browser/cjs/bpcQTcfzGVBK-rfT2.cjs +0 -1
- package/browser/cjs/fqTQ_p3ehzUvc1tF2.cjs +0 -1
- package/browser/cjs/h3dw1jAp2J5Pu4p32.cjs +0 -1
- package/browser/cjs/index.cjs +0 -79
- package/browser/cjs/iyvcAhhnDFxkR8tW.cjs +0 -1
- package/browser/cjs/jIxFDc3EQDDXisAC2.cjs +0 -1
- package/browser/cjs/jev6VGWTdgEgm4Yk2.cjs +0 -1
- package/browser/cjs/kqP-W5qRIy-d-ChZ.cjs +0 -1
- package/browser/cjs/lEQC21-Sk4lwHy2r2.cjs +0 -1
- package/browser/cjs/mXzhcays1ok40iiU.cjs +0 -1
- package/browser/cjs/n4ZQ0-3uSrEsInbg.cjs +0 -1
- package/browser/cjs/ppSJKdLn646BZOzg.cjs +0 -1
- package/browser/cjs/sFD2bsTPq558FCMx.cjs +0 -126
- package/browser/cjs/stXrcKZOIHl0fq5U2.cjs +0 -2
- package/browser/cjs/xQ6-wbTw5UzZUM1Y.cjs +0 -1
- package/browser/cjs/zEytED4Eleo5DVvS.cjs +0 -1
- package/browser/cjs/z_rZE1OHFPpdGBh42.cjs +0 -1
- package/browser/esm/-9NsA_4pZqcEQBX7.mjs +0 -383
- package/browser/esm/B-dSKzg5shPDd733.mjs +0 -25
- package/browser/esm/BPwpFe7c1-F62aAU.mjs +0 -518
- package/browser/esm/BT2mYkpZGrhWovkv2.mjs +0 -238
- package/browser/esm/BUKNpzG26V0YaAzW.mjs +0 -219
- package/browser/esm/BaIe3fLfPLw3FbYP2.mjs +0 -1149
- package/browser/esm/BgNWvKfVoVgVVDB4.mjs +0 -134
- package/browser/esm/Bj3gyDL2ZJUDcxt72.mjs +0 -82
- package/browser/esm/BkBT2LB95lonIiBu.mjs +0 -152
- package/browser/esm/BqMvXD8dX4ksYjnj.mjs +0 -53
- package/browser/esm/Bz3-FDGVU67Izdnv2.mjs +0 -106
- package/browser/esm/C3dXBjR3SrDCdJlm.mjs +0 -105
- package/browser/esm/CElACTFuqPAnCAMJ.mjs +0 -99
- package/browser/esm/CFVzVz9BCRBowBea.mjs +0 -6104
- package/browser/esm/CFtsbobCiLpZIzCh.mjs +0 -34
- package/browser/esm/CJ-lOo2cXlcYrg2P.mjs +0 -8255
- package/browser/esm/CRsnKeHAnKrWvuG52.mjs +0 -6713
- package/browser/esm/CbJ_xQftC08KrH3E2.mjs +0 -20
- package/browser/esm/CfjG7gHJ4oN60Clj.mjs +0 -4423
- package/browser/esm/CpEgh9EOkeMvwAuj.mjs +0 -304
- package/browser/esm/CxKAnYBWCYMkUpnr.mjs +0 -824
- package/browser/esm/Cye91DfKIFwRdDpF.mjs +0 -224
- package/browser/esm/DFQGftDcmDwUGxV8.mjs +0 -27
- package/browser/esm/DGfzktq0BrIwcb8j.mjs +0 -7813
- package/browser/esm/D_8B8jIlshd3eTIO2.mjs +0 -471
- package/browser/esm/DdaO25i-WWFSh1W0.mjs +0 -3188
- package/browser/esm/DdtDlBp6KJZjL28o.mjs +0 -4745
- package/browser/esm/DhW7Cqyuxk7D6zsW.mjs +0 -509
- package/browser/esm/DhgwMDb052opCiAA.mjs +0 -11273
- package/browser/esm/DimkHq0_x-d4uNdV.mjs +0 -50758
- package/browser/esm/DnCkPg9-xb3RvxD-.mjs +0 -44
- package/browser/esm/DuJ_gK9f35IbKDd6.mjs +0 -3651
- package/browser/esm/Duo6t8_BzIiBDrFm.mjs +0 -28435
- package/browser/esm/DxxlSejA2S6YUPWD.mjs +0 -2211
- package/browser/esm/DygUxASTETZM60uN2.mjs +0 -47
- package/browser/esm/FAHIw2t7_M_rvRio.mjs +0 -149
- package/browser/esm/HFqcMD9nTL0jdLxT.mjs +0 -15
- package/browser/esm/N-koparnupMSl92y.mjs +0 -2687
- package/browser/esm/O982fBwJ80FSdhad.mjs +0 -615
- package/browser/esm/evPbHV86yom22yGf2.mjs +0 -16301
- package/browser/esm/ohVj-y1gCC9PEHJI.mjs +0 -87
- package/browser/esm/s4trFf5sOSGNEzr3.mjs +0 -235
- package/cdn/assets/6L6HfOFw1xzxXtf22.js +0 -2211
- package/cdn/assets/B-dSKzg5shPDd733.js +0 -25
- package/cdn/assets/B2BvBxjz3Kfii_Gn2.js +0 -6715
- package/cdn/assets/B3ZyfwskutLZMYfl2.js +0 -44
- package/cdn/assets/B4492m5zRjz4JWIo2.js +0 -4745
- package/cdn/assets/B6Y_HasaiihQLVYz2.js +0 -3188
- package/cdn/assets/B8ok93z6wOu1Mo5H.js +0 -27
- package/cdn/assets/BIPjogMyMmLRly43.js +0 -106
- package/cdn/assets/BOTU30yJHbaNehFS.js +0 -176
- package/cdn/assets/B_U_UpQXdbjNRthb.js +0 -24
- package/cdn/assets/BaIe3fLfPLw3FbYP2.js +0 -1149
- package/cdn/assets/BdhFhDEa7Xed6dFE.js +0 -28436
- package/cdn/assets/BdmCBWTVHb7KuHxO2.js +0 -2687
- package/cdn/assets/Bfd3T36ocASPZddR.js +0 -3651
- package/cdn/assets/BjN8kU7URKZwGlmk2.js +0 -4423
- package/cdn/assets/BouCHi6QnBrUDYkx.js +0 -16301
- package/cdn/assets/CDqMmEdh_CPaFCCi2.js +0 -2199
- package/cdn/assets/CLhSKL0Xdm8miSTy.js +0 -34
- package/cdn/assets/CSkSOhGT8E29E2Nh2.js +0 -99
- package/cdn/assets/CXrcgTVB77CopjOJ.js +0 -518
- package/cdn/assets/Cb71rZAQvCk3wnfp.js +0 -220
- package/cdn/assets/CbJ_xQftC08KrH3E.js +0 -20
- package/cdn/assets/CblzazoiTtSuaAkj.js +0 -225
- package/cdn/assets/CdPxVRKpCOqCDHI8.js +0 -824
- package/cdn/assets/CimYGZTVXcjbjrBU2.js +0 -83
- package/cdn/assets/CpEgh9EOkeMvwAuj.js +0 -304
- package/cdn/assets/D57KcDfTbBzf_NGr.js +0 -150
- package/cdn/assets/DEFEOS3OuA23llF92.js +0 -472
- package/cdn/assets/DEyeWdXLwDRo2yYf2.js +0 -107
- package/cdn/assets/DW2yQm-sEcHogX7E.js +0 -8258
- package/cdn/assets/Dhq9e6LCpmlIkFod.js +0 -220
- package/cdn/assets/DjS4iUli-T3uuUfK.js +0 -24
- package/cdn/assets/DjS4iUli-T3uuUfK2.js +0 -24
- package/cdn/assets/DlLXCXDokJ72EW-E.js +0 -236
- package/cdn/assets/DoJfPxuL3zziG4p62.js +0 -134
- package/cdn/assets/Dq7WxMef5CTJ47QI2.js +0 -48
- package/cdn/assets/HFqcMD9nTL0jdLxT2.js +0 -15
- package/cdn/assets/HeznPoDlSj26Q4lq.js +0 -11274
- package/cdn/assets/JL1xk8XqkuTOA_as2.js +0 -239
- package/cdn/assets/NZO3-fDBtqhmCsbB2.js +0 -50758
- package/cdn/assets/Wb48SedqaKMZnxym.js +0 -7404
- package/cdn/assets/Wsgx1I_j1chJ6hwn.js +0 -152
- package/cdn/assets/XSUr59k0gaFIS1Qf2.js +0 -53
- package/cdn/assets/llvXNxZaCMnYqvSm.js +0 -6104
- package/cdn/assets/omgRvCRxe7suvog8.js +0 -510
- package/cdn/assets/xMskoOI2CK9-AmBF2.js +0 -44
- package/cdn/assets/zrS_ERBQML_OXJ4J.js +0 -87
|
@@ -0,0 +1,905 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.8.0-beta.10
|
|
3
|
+
*
|
|
4
|
+
* (C) 2026-present SheetXL Inc. & Michael T. Ford
|
|
5
|
+
* License: The license can be found at https://www.sheetxl.com/license.
|
|
6
|
+
*/
|
|
7
|
+
import { P as e, b as t, o as n, r } from "./CMxbiQ5J79M3n1tk.js";
|
|
8
|
+
var i = (e, t) => {
|
|
9
|
+
let n = /* @__PURE__ */ new Map();
|
|
10
|
+
return e.forEach((e, r) => {
|
|
11
|
+
t.get(r) !== e && n.set(r, e);
|
|
12
|
+
}), n;
|
|
13
|
+
}, a = !1, o = 0, s = (e) => {
|
|
14
|
+
if (typeof e != "string") throw Error("A stateId (string) is required. Register with 'ITransaction.IStore.create'.");
|
|
15
|
+
return e;
|
|
16
|
+
}, c = class extends Error {
|
|
17
|
+
constructor(e, t, n) {
|
|
18
|
+
super(e === "open" ? `Transaction conflict: a transaction is already open (expected commit '${t}').` : `Transaction conflict: expected commit '${t}' but current is '${n}'.`), this.name = "TransactionConflictError", this.reason = e, this.expectedCommitId = t, this.actualCommitId = n;
|
|
19
|
+
}
|
|
20
|
+
}, l = class {
|
|
21
|
+
constructor(e) {
|
|
22
|
+
this._record = e;
|
|
23
|
+
}
|
|
24
|
+
getId() {
|
|
25
|
+
return this._record.id;
|
|
26
|
+
}
|
|
27
|
+
getDescription() {
|
|
28
|
+
return this._record.description;
|
|
29
|
+
}
|
|
30
|
+
getMeta() {
|
|
31
|
+
return Object.freeze(this._record.meta);
|
|
32
|
+
}
|
|
33
|
+
getAuthor() {
|
|
34
|
+
return this._record.author;
|
|
35
|
+
}
|
|
36
|
+
getTimestamp() {
|
|
37
|
+
return this._record.timestamp;
|
|
38
|
+
}
|
|
39
|
+
getOperation() {
|
|
40
|
+
return this._record.operation;
|
|
41
|
+
}
|
|
42
|
+
getIntents() {
|
|
43
|
+
return Object.freeze({ ...this._record.intents });
|
|
44
|
+
}
|
|
45
|
+
}, u = class {
|
|
46
|
+
constructor(e) {
|
|
47
|
+
this._listeners = /* @__PURE__ */ new Set(), this._listenersState = /* @__PURE__ */ new Map(), this._commits = /* @__PURE__ */ new Map(), this._locked = !1, this._pending = null, this._versionCounter = 0, this._flushOnRead = 0, this._isSync = e?.sync ?? a, this._isTransient = e?.transient ?? !1, this._author = e?.author, this._maxCommits = e?.maxCommits ?? 1e3;
|
|
48
|
+
let t = {
|
|
49
|
+
id: "0",
|
|
50
|
+
description: "initial",
|
|
51
|
+
meta: {},
|
|
52
|
+
author: this._author,
|
|
53
|
+
timestamp: Date.now(),
|
|
54
|
+
states: /* @__PURE__ */ new Map(),
|
|
55
|
+
intents: {},
|
|
56
|
+
intentWrites: [],
|
|
57
|
+
version: 0,
|
|
58
|
+
previousId: null
|
|
59
|
+
}, n = {
|
|
60
|
+
record: t,
|
|
61
|
+
commit: new l(t)
|
|
62
|
+
};
|
|
63
|
+
this._current = n, this._cacheId = null, this._cacheState = null, this._states = t.states, this._transactionStack = [], this._restoring = !1;
|
|
64
|
+
let r = /* @__PURE__ */ new Map();
|
|
65
|
+
r.set(t.id, n), this._commits = r, this._tipId = t.id;
|
|
66
|
+
}
|
|
67
|
+
static {
|
|
68
|
+
this.setDefaultSync = (e) => {
|
|
69
|
+
a = e;
|
|
70
|
+
};
|
|
71
|
+
}
|
|
72
|
+
getLog(e, t = 100) {
|
|
73
|
+
let n = [], r = e;
|
|
74
|
+
do {
|
|
75
|
+
let e = this._commits.get(r);
|
|
76
|
+
if (!e) throw Error(`Invalid commit id: '${r}'`);
|
|
77
|
+
if (n.push(e.commit), r = e.record.previousId, !r) return n;
|
|
78
|
+
} while (n.length < t);
|
|
79
|
+
return n;
|
|
80
|
+
}
|
|
81
|
+
getCommitCount() {
|
|
82
|
+
return this._commits.size;
|
|
83
|
+
}
|
|
84
|
+
isOpenTransaction() {
|
|
85
|
+
return this._transactionStack.length > 0;
|
|
86
|
+
}
|
|
87
|
+
isRestoring() {
|
|
88
|
+
return this._restoring;
|
|
89
|
+
}
|
|
90
|
+
isAmendingOtherCommit() {
|
|
91
|
+
let e = this._transactionStack[0];
|
|
92
|
+
return e instanceof f && e._isRetargeted();
|
|
93
|
+
}
|
|
94
|
+
getPendingTransaction() {
|
|
95
|
+
return this._transactionStack[0] ?? null;
|
|
96
|
+
}
|
|
97
|
+
getCurrentTransaction() {
|
|
98
|
+
let e = this._transactionStack;
|
|
99
|
+
return e[e.length - 1] ?? null;
|
|
100
|
+
}
|
|
101
|
+
amend(e, t) {
|
|
102
|
+
let n = this.beginCommit(), r = n.getDepth() === 0 ? this._commits.get(e) : void 0;
|
|
103
|
+
n.getDepth() === 0 && (n._setAmendOf(e), r && r !== this._current && n._retarget(r));
|
|
104
|
+
try {
|
|
105
|
+
let e = t(r ? r.commit : this._current.commit);
|
|
106
|
+
return n.commit(), e;
|
|
107
|
+
} catch (e) {
|
|
108
|
+
throw n.rollback(), e;
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
_squashTip(e) {
|
|
112
|
+
if (this._transactionStack.length > 0) return !1;
|
|
113
|
+
let t = this._commits.get(this._tipId), n = t?.record.previousId;
|
|
114
|
+
if (!t || !n) return !1;
|
|
115
|
+
let r = this._commits.get(n);
|
|
116
|
+
return !!r && (r.record.states = t.record.states, r.record.intents = e(r.record.intents, t.record.intents), r.record.timestamp = t.record.timestamp, this._commits.delete(t.record.id), this._tipId = n, this._current === t && (this._current = r, this._states = r.record.states, this._cacheId = null, this._cacheState = null), !0);
|
|
117
|
+
}
|
|
118
|
+
create(t) {
|
|
119
|
+
let n = e.uuidV4();
|
|
120
|
+
if (t !== void 0) {
|
|
121
|
+
let e = this.beginCommit();
|
|
122
|
+
try {
|
|
123
|
+
e.updateState(n, t), e.commit();
|
|
124
|
+
} catch (t) {
|
|
125
|
+
throw e.rollback(), t;
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
return n;
|
|
129
|
+
}
|
|
130
|
+
getStateAt(e, t) {
|
|
131
|
+
return s(t), this._commits.get(e)?.record.states.get(t);
|
|
132
|
+
}
|
|
133
|
+
getState(e) {
|
|
134
|
+
s(e);
|
|
135
|
+
let t = this._transactionStack;
|
|
136
|
+
if (t.length === 0) {
|
|
137
|
+
if (this._cacheId === e) return this._cacheState;
|
|
138
|
+
let t = this._states.get(e);
|
|
139
|
+
return this._cacheId = e, this._cacheState = t, t;
|
|
140
|
+
}
|
|
141
|
+
if (this._flushOnRead > 0) for (let n = t.length - 1; n >= 0; n--) t[n]._isFlushedBy(e) && t[n]._flush();
|
|
142
|
+
return t[t.length - 1].getState(e);
|
|
143
|
+
}
|
|
144
|
+
getCurrentCommit(e = !0) {
|
|
145
|
+
return (e ? this._pending?.commit : null) ?? this._current.commit;
|
|
146
|
+
}
|
|
147
|
+
getTipCommit() {
|
|
148
|
+
return this._commits.get(this._tipId).commit;
|
|
149
|
+
}
|
|
150
|
+
getVersionId(e) {
|
|
151
|
+
return s(e), this._states.get(e)?.version ?? 0;
|
|
152
|
+
}
|
|
153
|
+
restore(e, t) {
|
|
154
|
+
let n = this._getCommitContainer(e, t);
|
|
155
|
+
if (this._current.commit.getId() === n.commit.getId()) return n.commit;
|
|
156
|
+
let r = i(n.record.states, this._current.record.states);
|
|
157
|
+
this._notifyStates("onBeforeCommitStart", this._current, r, !0, !1, !1, n), this._current = n, this._states = this._current.record.states, this._cacheId = null, this._cacheState = null, this._notifyStates("onAfterStateChange", n, r, !1, !0, !0), this._notify("onCommitChange", n.commit, !0), this._restoring = !0;
|
|
158
|
+
try {
|
|
159
|
+
this._notifyStates("onRestoreOrRevert", n, n.record.states, !1, !0);
|
|
160
|
+
} finally {
|
|
161
|
+
this._restoring = !1;
|
|
162
|
+
}
|
|
163
|
+
return n.commit;
|
|
164
|
+
}
|
|
165
|
+
revert(e, t) {
|
|
166
|
+
let n = this._getCommitContainer(e, t), r = this._commits.get(n.record.previousId);
|
|
167
|
+
if (!r) throw Error(`Invalid commit id: '${n.record.previousId}'`);
|
|
168
|
+
let a = i(r.record.states, this._current.record.states);
|
|
169
|
+
this._notifyStates("onBeforeCommitStart", this._current, a, !0, !1, !1, n), this._current = r, this._states = this._current.record.states, this._cacheId = null, this._cacheState = null, this._notifyStates("onAfterStateChange", r, a, !0, !1, !0, n), this._notify("onCommitChange", r.commit, !0), this._restoring = !0;
|
|
170
|
+
try {
|
|
171
|
+
this._notifyStates("onRestoreOrRevert", r, r.record.states, !0, !0, !1, n);
|
|
172
|
+
} finally {
|
|
173
|
+
this._restoring = !1;
|
|
174
|
+
}
|
|
175
|
+
return r.commit;
|
|
176
|
+
}
|
|
177
|
+
_getCommitContainer(e, t) {
|
|
178
|
+
let n = this._commits.get(e);
|
|
179
|
+
if (!n) throw Error(`Invalid commit id: '${e}'`);
|
|
180
|
+
if (this._isTransient) throw Error("Cannot revert transient store");
|
|
181
|
+
if (t?.force && this._transactionStack.length > 0 && this._transactionStack[0].rollback(), this._transactionStack.length !== 0) throw Error("Open transactions.");
|
|
182
|
+
return n;
|
|
183
|
+
}
|
|
184
|
+
_pruneForwards(e) {
|
|
185
|
+
let t = this._tipId;
|
|
186
|
+
for (; t && t !== e;) {
|
|
187
|
+
let e = this._commits.get(t);
|
|
188
|
+
if (!e) break;
|
|
189
|
+
this._commits.delete(t), t = e.record.previousId;
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
_trimOldest() {
|
|
193
|
+
if (this._commits.size <= this._maxCommits) return;
|
|
194
|
+
let e = this._commits.keys();
|
|
195
|
+
for (; this._commits.size > this._maxCommits;) this._commits.delete(e.next().value);
|
|
196
|
+
let t = this._commits.get(e.next().value);
|
|
197
|
+
t && (t.record.previousId = null);
|
|
198
|
+
}
|
|
199
|
+
beginCommit(t, n) {
|
|
200
|
+
let r = this._transactionStack;
|
|
201
|
+
r.length > 0 && r[r.length - 1]._flush();
|
|
202
|
+
let i = r.length;
|
|
203
|
+
typeof t == "string" && (t = { description: t });
|
|
204
|
+
let a = t?.expectedCommitId;
|
|
205
|
+
if (a !== void 0) {
|
|
206
|
+
let e = this._current.record.id;
|
|
207
|
+
if (i > 0 || this._restoring) throw new c("open", a, e);
|
|
208
|
+
if (e !== a) throw new c("stale", a, e);
|
|
209
|
+
}
|
|
210
|
+
if (this._locked) throw console.warn("TransactionStore locked", r), Error(`TransactionStore is locked by '${r[i - 1].getDescription()}`);
|
|
211
|
+
let o, s = t?.preventFurtherTransactions, u = this, d = (e, t, r) => {
|
|
212
|
+
let a = u._transactionStack;
|
|
213
|
+
i !== a.length - 1 && console.warn("Transaction stack out of sync", i, a.length, a), s && (this._locked = !1), a.pop(), e._isFlushedOnRead() && u._flushOnRead--, n?.(e, t, r), a.length === 0 && (u._pending = null, u._notifyClose(e._getCommit(), t, e._isElided(), e._isAmendClose()));
|
|
214
|
+
};
|
|
215
|
+
if (r.length === 0) {
|
|
216
|
+
let n = this._current.record, r = {
|
|
217
|
+
states: /* @__PURE__ */ new Map(),
|
|
218
|
+
id: e.uuidV4(),
|
|
219
|
+
description: typeof t == "string" ? t : t?.description ?? null,
|
|
220
|
+
meta: {},
|
|
221
|
+
timestamp: Date.now(),
|
|
222
|
+
author: (typeof t == "object" ? t?.author : void 0) ?? this._author ?? null,
|
|
223
|
+
version: n.version + 1,
|
|
224
|
+
previousId: n.id,
|
|
225
|
+
intents: {},
|
|
226
|
+
intentWrites: [],
|
|
227
|
+
operation: t?.operation
|
|
228
|
+
}, i = {
|
|
229
|
+
record: r,
|
|
230
|
+
commit: new l(r)
|
|
231
|
+
};
|
|
232
|
+
this._pending = i, this._notify("onCommitStart", i.commit), o = new f(this, i, n?.states, t, d);
|
|
233
|
+
} else o = r[r.length - 1].beginTransaction(t, d);
|
|
234
|
+
return s && (this._locked = !0), this._transactionStack.push(o), o._isFlushedOnRead() && this._flushOnRead++, o;
|
|
235
|
+
}
|
|
236
|
+
doBatch(e, t, n) {
|
|
237
|
+
let r, i = this.beginCommit(t, n), a = this.getCurrentCommit();
|
|
238
|
+
try {
|
|
239
|
+
r = e?.(a);
|
|
240
|
+
let n = () => {
|
|
241
|
+
i.commit(t);
|
|
242
|
+
};
|
|
243
|
+
if (r && typeof r.then == "function") return new Promise((e, t) => {
|
|
244
|
+
r.then((r) => {
|
|
245
|
+
try {
|
|
246
|
+
n(), e(r);
|
|
247
|
+
} catch (e) {
|
|
248
|
+
t(e);
|
|
249
|
+
}
|
|
250
|
+
}).catch((e) => {
|
|
251
|
+
i.rollback(), t(e);
|
|
252
|
+
});
|
|
253
|
+
});
|
|
254
|
+
n();
|
|
255
|
+
} catch (e) {
|
|
256
|
+
throw i.rollback(), e;
|
|
257
|
+
}
|
|
258
|
+
return r;
|
|
259
|
+
}
|
|
260
|
+
remove(e) {
|
|
261
|
+
s(e);
|
|
262
|
+
let t = !1, n = this._listenersState.get(e);
|
|
263
|
+
if (n) {
|
|
264
|
+
let r = this.getCurrentCommit();
|
|
265
|
+
n.forEach((e) => {
|
|
266
|
+
e.onClose?.(r);
|
|
267
|
+
}), this._listenersState.delete(e), t = !0;
|
|
268
|
+
}
|
|
269
|
+
this._current.record.states.delete(e) && (t = !0), this._commits.forEach((n) => {
|
|
270
|
+
n.record.states.delete(e) && (t = !0);
|
|
271
|
+
});
|
|
272
|
+
let r = this._transactionStack;
|
|
273
|
+
return r.length > 0 && r[0]._purgeState(e), this._cacheId = null, this._cacheState = null, t;
|
|
274
|
+
}
|
|
275
|
+
addListener(e) {
|
|
276
|
+
let t = this._listeners;
|
|
277
|
+
return t.add(e), () => {
|
|
278
|
+
t.delete(e);
|
|
279
|
+
};
|
|
280
|
+
}
|
|
281
|
+
addStateListener(e, t) {
|
|
282
|
+
if (s(e), !t) throw Error("Listener is required");
|
|
283
|
+
let n = this._listenersState.get(e);
|
|
284
|
+
return n || (n = /* @__PURE__ */ new Set(), this._listenersState.set(e, n)), n.add(t), () => {
|
|
285
|
+
n.delete(t), n.size === 0 && this._listenersState.delete(e);
|
|
286
|
+
};
|
|
287
|
+
}
|
|
288
|
+
dispatchEvents(e, t = !1) {
|
|
289
|
+
!t || this._isSync ? e() : setTimeout(e, 0);
|
|
290
|
+
}
|
|
291
|
+
_commitRecord(t, n, r) {
|
|
292
|
+
let i = t.record, a = t.commit, o = t, s = ++this._versionCounter;
|
|
293
|
+
if (n.forEach((e, t) => {
|
|
294
|
+
e != null && ((e, t, n) => {
|
|
295
|
+
Object.defineProperty(e, "id", {
|
|
296
|
+
value: t,
|
|
297
|
+
enumerable: !1,
|
|
298
|
+
configurable: !0,
|
|
299
|
+
writable: !1
|
|
300
|
+
}), Object.defineProperty(e, "version", {
|
|
301
|
+
value: n,
|
|
302
|
+
enumerable: !1,
|
|
303
|
+
configurable: !0,
|
|
304
|
+
writable: !1
|
|
305
|
+
});
|
|
306
|
+
})(e, t, s);
|
|
307
|
+
}), !this._isTransient) {
|
|
308
|
+
let n = !1;
|
|
309
|
+
if (r !== null) {
|
|
310
|
+
let s = this._current, c = this._commits.get(r) ?? s, l = c.record, u = c !== s, d = u ? l.states : s.record.states;
|
|
311
|
+
if (i.states.forEach((e, t) => {
|
|
312
|
+
d.set(t, e);
|
|
313
|
+
}), ((e, t) => {
|
|
314
|
+
for (let n = 0; n < t.length; n++) {
|
|
315
|
+
let [r, i] = t[n];
|
|
316
|
+
e[r] = typeof i == "function" ? i(e[r]) : i;
|
|
317
|
+
}
|
|
318
|
+
})(l.intents, i.intentWrites), l.meta = {
|
|
319
|
+
...l.meta,
|
|
320
|
+
...i.meta
|
|
321
|
+
}, l.timestamp = i.timestamp, n = !0, u) return void (o.record.intentWrites = e.EmptyArray);
|
|
322
|
+
i = s.record, a = s.commit, t = s;
|
|
323
|
+
}
|
|
324
|
+
this._commits.set(i.id, t), n || (i.previousId !== this._tipId && this._pruneForwards(i.previousId), this._tipId = i.id, this._trimOldest());
|
|
325
|
+
}
|
|
326
|
+
this._current = t, this._states = this._current.record.states, this._cacheId = null, this._cacheState = null, o.record.intentWrites = e.EmptyArray, r === null && this._notify("onCommitChange", a), this._notifyStates("onAfterStateChange", t, n, !1, !1, !0, o), this._notify(r === null ? "onCommitEnd" : "onAmendEnd", a, !0);
|
|
327
|
+
}
|
|
328
|
+
_notifyStates(e, t, n, r = !1, i = !1, a = !1, o = t) {
|
|
329
|
+
let s = t.commit, c = o.record.intents, l = this._listenersState;
|
|
330
|
+
n.forEach((t, n) => {
|
|
331
|
+
let o = l.get(n);
|
|
332
|
+
o && this.dispatchEvents(() => {
|
|
333
|
+
o.forEach((n) => {
|
|
334
|
+
n[e]?.(t, s, r, i, c);
|
|
335
|
+
});
|
|
336
|
+
}, a);
|
|
337
|
+
});
|
|
338
|
+
}
|
|
339
|
+
_notifyClose(e, t, n = !1, r = !1) {
|
|
340
|
+
this._listeners.forEach((i) => {
|
|
341
|
+
i.onCommitClose?.(e, t, n, r);
|
|
342
|
+
});
|
|
343
|
+
}
|
|
344
|
+
_notify(e, t, n = !1) {
|
|
345
|
+
return this.dispatchEvents(() => {
|
|
346
|
+
this._listeners.forEach((n) => {
|
|
347
|
+
n[e]?.(t);
|
|
348
|
+
});
|
|
349
|
+
}, n);
|
|
350
|
+
}
|
|
351
|
+
}, d = class {
|
|
352
|
+
constructor(e, t, n) {
|
|
353
|
+
if (this._children = /* @__PURE__ */ new Set(), this._depth = 0, this._closed = !1, this._isAmend = !1, this._readOnly = !1, this._hooks = null, this._flushing = !1, this._outcomes = null, this._store = e, this._container = t, n = typeof n == "string" ? { description: n } : n, this._description = n?.description ?? "", this._operation = n?.operation ?? null, this._readOnly = n?.readOnly ?? !1, n?.flush || n?.onCommit || n?.onRollback) {
|
|
354
|
+
let e = {
|
|
355
|
+
flush: n.flush,
|
|
356
|
+
writes: n.writes,
|
|
357
|
+
onCommit: n.onCommit,
|
|
358
|
+
onRollback: n.onRollback
|
|
359
|
+
};
|
|
360
|
+
this._hooks = e, (e.onCommit || e.onRollback) && (this._outcomes = [e]);
|
|
361
|
+
}
|
|
362
|
+
}
|
|
363
|
+
_isFlushedOnRead() {
|
|
364
|
+
return !(!this._hooks?.flush || !this._hooks.writes?.length);
|
|
365
|
+
}
|
|
366
|
+
_isFlushedBy(e) {
|
|
367
|
+
let t = this._hooks?.writes;
|
|
368
|
+
return !!t && t.includes(e);
|
|
369
|
+
}
|
|
370
|
+
_flush() {
|
|
371
|
+
let e = this._hooks?.flush;
|
|
372
|
+
if (e && !this._flushing) {
|
|
373
|
+
this._flushing = !0;
|
|
374
|
+
try {
|
|
375
|
+
e();
|
|
376
|
+
} finally {
|
|
377
|
+
this._flushing = !1;
|
|
378
|
+
}
|
|
379
|
+
}
|
|
380
|
+
}
|
|
381
|
+
_settle(e) {
|
|
382
|
+
let t = this._children;
|
|
383
|
+
for (; t.size > 0;) t.values().next().value.commit(e);
|
|
384
|
+
this._flush();
|
|
385
|
+
}
|
|
386
|
+
_adoptOutcomes(e) {
|
|
387
|
+
let t = e._outcomes;
|
|
388
|
+
if (t) {
|
|
389
|
+
if (this._outcomes) for (let e = 0; e < t.length; e++) this._outcomes.push(t[e]);
|
|
390
|
+
else this._outcomes = t;
|
|
391
|
+
}
|
|
392
|
+
}
|
|
393
|
+
_notifyOutcome(e) {
|
|
394
|
+
let t = this._outcomes;
|
|
395
|
+
if (t) {
|
|
396
|
+
this._outcomes = null;
|
|
397
|
+
for (let n = 0; n < t.length; n++) try {
|
|
398
|
+
e ? t[n].onCommit?.(e) : t[n].onRollback?.();
|
|
399
|
+
} catch (e) {
|
|
400
|
+
console.warn(e);
|
|
401
|
+
}
|
|
402
|
+
}
|
|
403
|
+
}
|
|
404
|
+
_getCommit() {
|
|
405
|
+
return this._container.commit;
|
|
406
|
+
}
|
|
407
|
+
_isElided() {
|
|
408
|
+
return !1;
|
|
409
|
+
}
|
|
410
|
+
_setAmendOf(e) {
|
|
411
|
+
this._container.amendOf = e;
|
|
412
|
+
}
|
|
413
|
+
_isAmendClose() {
|
|
414
|
+
return this._isAmend || this._container.amendOf !== void 0;
|
|
415
|
+
}
|
|
416
|
+
getIntent(e) {
|
|
417
|
+
return this._container.record.intents?.[e];
|
|
418
|
+
}
|
|
419
|
+
setIntent(e, t) {
|
|
420
|
+
let n = this._container.record, r = n.intents ??= {};
|
|
421
|
+
r[e] = typeof t == "function" ? t(r[e]) : t, (n.intentWrites ??= []).push([e, t]);
|
|
422
|
+
}
|
|
423
|
+
getDepth() {
|
|
424
|
+
return this._depth;
|
|
425
|
+
}
|
|
426
|
+
getDescription() {
|
|
427
|
+
return this._description;
|
|
428
|
+
}
|
|
429
|
+
getOperation() {
|
|
430
|
+
return this._operation;
|
|
431
|
+
}
|
|
432
|
+
getStates() {
|
|
433
|
+
return this._states;
|
|
434
|
+
}
|
|
435
|
+
beginTransaction(e, t) {
|
|
436
|
+
this._ensureOpen();
|
|
437
|
+
let n = new p(this._store, this, this._container, typeof e == "string" ? { description: e } : e, t);
|
|
438
|
+
return this._children || this._children, this._children.add(n), n;
|
|
439
|
+
}
|
|
440
|
+
isReadOnly() {
|
|
441
|
+
return this._readOnly;
|
|
442
|
+
}
|
|
443
|
+
updateState(e, t) {
|
|
444
|
+
if (this._ensureOpen(), s(e), this._readOnly) throw Error("Transaction is read-only" + (this._description ? `: '${this._description}'` : ""));
|
|
445
|
+
let n, r = this.getState(e);
|
|
446
|
+
if (typeof t == "function") {
|
|
447
|
+
if (n = t(r), n === r) return r;
|
|
448
|
+
n &&= { ...n };
|
|
449
|
+
} else {
|
|
450
|
+
if (t === void 0) return r;
|
|
451
|
+
n = {
|
|
452
|
+
...r,
|
|
453
|
+
...t
|
|
454
|
+
};
|
|
455
|
+
}
|
|
456
|
+
if (n) {
|
|
457
|
+
let t = this._states;
|
|
458
|
+
t || (t = /* @__PURE__ */ new Map(), this._states = t), t.set(e, n);
|
|
459
|
+
}
|
|
460
|
+
return n;
|
|
461
|
+
}
|
|
462
|
+
amend(e) {
|
|
463
|
+
return this._isAmend = !0, this.commit(e);
|
|
464
|
+
}
|
|
465
|
+
commit(t) {
|
|
466
|
+
return this._ensureOpen(), typeof t == "string" && (t = { description: t }), t && (t.description && (this._description = t.description), t.meta && (this._meta = e.mergeContentful(t.meta, this._meta))), this._children && this._children.forEach((e) => {
|
|
467
|
+
e.commit(t);
|
|
468
|
+
}), this;
|
|
469
|
+
}
|
|
470
|
+
isClose() {
|
|
471
|
+
return this._closed;
|
|
472
|
+
}
|
|
473
|
+
_ensureOpen() {
|
|
474
|
+
if (this._closed) throw this._descriptions ? console.warn(`stack: [${this._descriptions.join(",")}]`) : this._description && console.warn(`description: [${this._description}]`), Error("Transaction already closed");
|
|
475
|
+
}
|
|
476
|
+
_removeChild(e, t = !1) {
|
|
477
|
+
this._children.delete(e), t || this._mergeStates(e._states);
|
|
478
|
+
}
|
|
479
|
+
_purgeState(e) {
|
|
480
|
+
this._states?.delete(e), this._children.forEach((t) => {
|
|
481
|
+
t._purgeState(e);
|
|
482
|
+
});
|
|
483
|
+
}
|
|
484
|
+
_mergeStates(e) {
|
|
485
|
+
if (!e || e.size === 0) return;
|
|
486
|
+
let t = this._states;
|
|
487
|
+
return t ? (e.forEach((e, n) => {
|
|
488
|
+
t.set(n, e);
|
|
489
|
+
}), t) : (this._states = e, e);
|
|
490
|
+
}
|
|
491
|
+
get isITransaction() {
|
|
492
|
+
return !0;
|
|
493
|
+
}
|
|
494
|
+
}, f = class extends d {
|
|
495
|
+
constructor(e, t, n, r, i) {
|
|
496
|
+
super(e, t, r), this._retargeted = !1, this._elided = !1, this._prevStates = n, this._onClose = i, this._states = /* @__PURE__ */ new Map(), this._meta = t.record.meta;
|
|
497
|
+
}
|
|
498
|
+
_isElided() {
|
|
499
|
+
return this._elided;
|
|
500
|
+
}
|
|
501
|
+
_retarget(e) {
|
|
502
|
+
this._prevStates = e.record.states, this._retargeted = !0;
|
|
503
|
+
}
|
|
504
|
+
_isRetargeted() {
|
|
505
|
+
return this._retargeted;
|
|
506
|
+
}
|
|
507
|
+
getId() {
|
|
508
|
+
return this._container.commit.getId();
|
|
509
|
+
}
|
|
510
|
+
getSavepointId() {
|
|
511
|
+
return this.getId();
|
|
512
|
+
}
|
|
513
|
+
getParent() {
|
|
514
|
+
return this;
|
|
515
|
+
}
|
|
516
|
+
commit(e) {
|
|
517
|
+
this._ensureOpen(), this._settle(e);
|
|
518
|
+
let t = this._states, n = this._container;
|
|
519
|
+
if (this._store._notifyStates("onBeforeCommitStart", n, t, !1, !1), super.commit(e), this._states.size === 0) return this._closed = !0, this._elided = !0, this._onClose?.(this, !1, e), this._notifyOutcome(n.commit), this;
|
|
520
|
+
this._store._notifyStates("onBeforeCommitEnd", n, t, !1, !1), this._settle(e);
|
|
521
|
+
let r = new Map(this._prevStates);
|
|
522
|
+
this._states.forEach((e, t) => {
|
|
523
|
+
e === null ? r.delete(t) : r.set(t, e);
|
|
524
|
+
}), this._states = r, this._description && (n.record.description = this._description), this._meta && (n.record.meta = this._meta), n.record.states = r, this._closed = !0, this._onClose?.(this, !1, e);
|
|
525
|
+
let i = n.amendOf ?? (this._isAmend ? n.record.previousId : null);
|
|
526
|
+
return this._store._commitRecord(n, t, i), this._notifyOutcome(n.commit), this;
|
|
527
|
+
}
|
|
528
|
+
rollback() {
|
|
529
|
+
return this._ensureOpen(), this._children && this._children.forEach((e) => {
|
|
530
|
+
e.rollback();
|
|
531
|
+
}), this._notifyOutcome(null), this._closed = !0, this._onClose?.(this, !0, null), this;
|
|
532
|
+
}
|
|
533
|
+
updateState(e, t) {
|
|
534
|
+
let n = this.getState(e), r = super.updateState(e, t);
|
|
535
|
+
return r === n || this._states.set(e, r), r;
|
|
536
|
+
}
|
|
537
|
+
getState(e) {
|
|
538
|
+
s(e);
|
|
539
|
+
let t = this._states.get(e);
|
|
540
|
+
return t ||= this._prevStates.get(e), t;
|
|
541
|
+
}
|
|
542
|
+
}, p = class extends d {
|
|
543
|
+
constructor(e, t, n, r, i) {
|
|
544
|
+
if (super(e, n, r), this._savepointId = null, !t) throw Error("Parent transaction required");
|
|
545
|
+
this._parent = t, this._depth = this._parent.getDepth() + 1, !1 !== (typeof r == "string" ? void 0 : r?.savepoint) && (this._savepointId = `${t.getId()}:${++o}`), t.isReadOnly() && (this._readOnly = !0), this._onClose = i;
|
|
546
|
+
}
|
|
547
|
+
getId() {
|
|
548
|
+
return this._parent.getId();
|
|
549
|
+
}
|
|
550
|
+
getSavepointId() {
|
|
551
|
+
return this._savepointId ?? this._parent.getSavepointId();
|
|
552
|
+
}
|
|
553
|
+
getParent() {
|
|
554
|
+
return this._parent;
|
|
555
|
+
}
|
|
556
|
+
getState(e) {
|
|
557
|
+
if (this._states) {
|
|
558
|
+
let t = this._states.get(e);
|
|
559
|
+
if (t !== void 0) return t;
|
|
560
|
+
}
|
|
561
|
+
return this._parent.getState(e);
|
|
562
|
+
}
|
|
563
|
+
commit(e) {
|
|
564
|
+
return this._ensureOpen(), this._settle(e), super.commit(e), this._parent._removeChild(this), this._parent._adoptOutcomes(this), this._closed = !0, this._onClose?.(this, !1, e), this._parent ?? this;
|
|
565
|
+
}
|
|
566
|
+
rollback() {
|
|
567
|
+
return this._ensureOpen(), this._children && this._children.forEach((e) => {
|
|
568
|
+
e.rollback();
|
|
569
|
+
}), this._notifyOutcome(null), this._parent._removeChild(this, !0), this._closed = !0, this._onClose?.(this, !0, null), this._parent ?? this;
|
|
570
|
+
}
|
|
571
|
+
}, m = (e, t, ...n) => {
|
|
572
|
+
let r = globalThis.__SXL_LOG_EVENTS;
|
|
573
|
+
r && (typeof r != "string" || e.includes(r)) && console.log(`[sxl:${e}] ${t}`, ...n);
|
|
574
|
+
}, h = class {
|
|
575
|
+
constructor(e, t) {
|
|
576
|
+
this._listeners = /* @__PURE__ */ new Set(), this._pending = null, this._landing = null, this._listeners = /* @__PURE__ */ new Set(), this._transactions = t ?? new u({ transient: !0 }), this._stateId = this._transactions.create(), this._src = e;
|
|
577
|
+
let n = this, r = () => {
|
|
578
|
+
let e = n._landing;
|
|
579
|
+
if (m(n._label(), `drain landing=${e ? e.length : "null"}`), !e) return;
|
|
580
|
+
n._landing = null;
|
|
581
|
+
let t = /* @__PURE__ */ new Set(), r = e.length;
|
|
582
|
+
for (let i = 0; i < r; i++) {
|
|
583
|
+
let r = e[i];
|
|
584
|
+
n._doNotify(r.listeners, r.removes, r.options, t);
|
|
585
|
+
}
|
|
586
|
+
};
|
|
587
|
+
this._transactionsRemoveListener = this._transactions.addListener({
|
|
588
|
+
onCommitClose(e, t, i) {
|
|
589
|
+
let a = n._pending;
|
|
590
|
+
m(n._label(), `commitClose rollback=${t} elided=${i} pending=${a ? a.length : "null"}`), n._pending = null, t || (a && (n._landing ? n._landing.push(...a) : n._landing = a), i && r());
|
|
591
|
+
},
|
|
592
|
+
onCommitEnd: r,
|
|
593
|
+
onAmendEnd: r
|
|
594
|
+
});
|
|
595
|
+
}
|
|
596
|
+
_label() {
|
|
597
|
+
return this._src?.constructor?.name ?? "unknown";
|
|
598
|
+
}
|
|
599
|
+
_inOperation() {
|
|
600
|
+
return this._transactions.isOpenTransaction() || this._transactions.isRestoring();
|
|
601
|
+
}
|
|
602
|
+
addListeners(e, t) {
|
|
603
|
+
let n = t?.transactional ?? this._inOperation(), r = { listeners: e }, i = this, a = () => {
|
|
604
|
+
n ? i._updateEntries((e) => {
|
|
605
|
+
e.delete(r);
|
|
606
|
+
}) : i._listeners.delete(r);
|
|
607
|
+
};
|
|
608
|
+
return r.remove = t?.once ? a : null, n ? i._updateEntries((e) => {
|
|
609
|
+
e.add(r);
|
|
610
|
+
}) : i._listeners.add(r), a;
|
|
611
|
+
}
|
|
612
|
+
_updateEntries(e) {
|
|
613
|
+
let t = this._transactions, n = t.getState(this._stateId)?.listeners, r = new Set(n);
|
|
614
|
+
e(r);
|
|
615
|
+
let i = t.beginCommit();
|
|
616
|
+
try {
|
|
617
|
+
i.updateState(this._stateId, { listeners: r }), i.amend();
|
|
618
|
+
} catch (e) {
|
|
619
|
+
throw i.rollback(), e;
|
|
620
|
+
}
|
|
621
|
+
}
|
|
622
|
+
async _doNotify(e, t = null, n, r) {
|
|
623
|
+
let i = n?.source ?? this._src, a = [], o = n?.params, s = e.length;
|
|
624
|
+
for (let t = 0; t < s; t++) {
|
|
625
|
+
let n = e[t];
|
|
626
|
+
r && r.has(n) || (r?.add(n), a.push(n(i, o)));
|
|
627
|
+
}
|
|
628
|
+
let c = null;
|
|
629
|
+
if (t && (c = () => {
|
|
630
|
+
let e = t.length;
|
|
631
|
+
for (let n = 0; n < e; n++) t[n]();
|
|
632
|
+
}), n?.async) return new Promise(async (e, t) => {
|
|
633
|
+
try {
|
|
634
|
+
let t = await Promise.all(a);
|
|
635
|
+
c?.(), e(t);
|
|
636
|
+
} catch (e) {
|
|
637
|
+
c?.(), t(e);
|
|
638
|
+
}
|
|
639
|
+
});
|
|
640
|
+
c?.();
|
|
641
|
+
}
|
|
642
|
+
_collect(e, t) {
|
|
643
|
+
if (!e) return null;
|
|
644
|
+
let n = null, r = null;
|
|
645
|
+
return e.forEach((e) => {
|
|
646
|
+
let i = e.listeners[t];
|
|
647
|
+
i && ((n ??= []).push(i), e.remove && (r ??= []).push(e.remove));
|
|
648
|
+
}), n ? {
|
|
649
|
+
listeners: n,
|
|
650
|
+
removes: r
|
|
651
|
+
} : null;
|
|
652
|
+
}
|
|
653
|
+
notify(e, t) {
|
|
654
|
+
let n = this._transactions, r = t?.transactional ?? this._inOperation();
|
|
655
|
+
if (r) {
|
|
656
|
+
let r = this._collect(n.getState(this._stateId)?.listeners, e);
|
|
657
|
+
r && this._doNotify(r.listeners, r.removes, t);
|
|
658
|
+
}
|
|
659
|
+
let i = this._collect(this._listeners, e);
|
|
660
|
+
if (i) return !r || n.isRestoring() || t?.async ? (m(this._label(), `notify ${String(e)} delivered to ${i.listeners.length}`), this._doNotify(i.listeners, i.removes, t)) : ((this._pending ??= []).push({
|
|
661
|
+
listeners: i.listeners,
|
|
662
|
+
removes: i.removes,
|
|
663
|
+
options: t
|
|
664
|
+
}), void m(this._label(), `notify ${String(e)} QUEUED (open transaction) pending=${this._pending.length}`));
|
|
665
|
+
m(this._label(), `notify ${String(e)} inOperation=${r} listeners=0`);
|
|
666
|
+
}
|
|
667
|
+
close() {
|
|
668
|
+
this._transactions.remove(this._stateId), this._transactionsRemoveListener(), this._listeners.clear(), this._pending = null, this._landing = null;
|
|
669
|
+
}
|
|
670
|
+
}, g = "Item has been closed. No further operations are allowed.", _ = (e = t("op.update")) => n("error.anchor.protected", { description: n(e) }), v = class {
|
|
671
|
+
constructor(e) {
|
|
672
|
+
this._closed = !1, this._options = { ...e };
|
|
673
|
+
let t = this;
|
|
674
|
+
this._transactions = this._options?.transactions ?? new u({ transient: !0 }), this._id = this._transactions.create({ isDeleted: !1 }), this._emitter = new h(this, this._transactions), e?.json && this._fromJSON(e.json), this._options?.setContainerReadOnlyCallback?.(() => {
|
|
675
|
+
t._processOnContainerReadOnly();
|
|
676
|
+
}), this._transactionsRemoveListener = this._transactions.addStateListener(this._id, {
|
|
677
|
+
onAfterStateChange(e, n) {
|
|
678
|
+
t._processAfterStateChange(e, n);
|
|
679
|
+
},
|
|
680
|
+
onRestoreOrRevert(e, n) {
|
|
681
|
+
t._processRestoreOrRevert(e, n);
|
|
682
|
+
}
|
|
683
|
+
}), this._processInit();
|
|
684
|
+
}
|
|
685
|
+
_fromJSON(e) {}
|
|
686
|
+
isReadOnly() {
|
|
687
|
+
return this._options.isReadOnly?.() ?? !1;
|
|
688
|
+
}
|
|
689
|
+
isDeleted() {
|
|
690
|
+
let e = this._getState();
|
|
691
|
+
return e === void 0 || (e.isDeleted ?? !1);
|
|
692
|
+
}
|
|
693
|
+
getType() {
|
|
694
|
+
return this._options.type;
|
|
695
|
+
}
|
|
696
|
+
get isIModel() {
|
|
697
|
+
return !0;
|
|
698
|
+
}
|
|
699
|
+
_processTransactionDone(e) {}
|
|
700
|
+
_getActionDescription(e) {
|
|
701
|
+
return null;
|
|
702
|
+
}
|
|
703
|
+
_getState() {
|
|
704
|
+
if (this._closed) throw Error(n("error.model.modelClosed"));
|
|
705
|
+
return this._transactions.getState(this._id);
|
|
706
|
+
}
|
|
707
|
+
_beginCommit(e) {
|
|
708
|
+
return this._transactions.beginCommit(typeof e == "string" ? { description: e } : e);
|
|
709
|
+
}
|
|
710
|
+
_getTransactions() {
|
|
711
|
+
return this._transactions;
|
|
712
|
+
}
|
|
713
|
+
_updateState(e, t, n) {
|
|
714
|
+
return this._writeState(e, t, n, !1);
|
|
715
|
+
}
|
|
716
|
+
_amendState(e, t, n) {
|
|
717
|
+
return this._writeState(e, t, n, !0);
|
|
718
|
+
}
|
|
719
|
+
_writeState(e, t, r, i = !1) {
|
|
720
|
+
if (this._closed) throw Error(n("error.model.modelClosed"));
|
|
721
|
+
if (!e) return this;
|
|
722
|
+
let a = this._beginCommit(t?.description);
|
|
723
|
+
try {
|
|
724
|
+
a.updateState(this._id, e);
|
|
725
|
+
let n = !1, o = r ? r.length : 0;
|
|
726
|
+
for (let e = 0; e < o; e++) {
|
|
727
|
+
let t = r[e];
|
|
728
|
+
n ||= t === "onAnyChange", this._emitter.notify(t);
|
|
729
|
+
}
|
|
730
|
+
!n && r && o > 0 && this._emitter.notify("onAnyChange"), i ? a.amend(t) : a.commit(t);
|
|
731
|
+
} catch (e) {
|
|
732
|
+
throw a.rollback(), e;
|
|
733
|
+
}
|
|
734
|
+
return this;
|
|
735
|
+
}
|
|
736
|
+
_getEmitter() {
|
|
737
|
+
return this._emitter;
|
|
738
|
+
}
|
|
739
|
+
_processInit() {}
|
|
740
|
+
_processAfterStateChange(e, t) {}
|
|
741
|
+
_processRestoreOrRevert(e, t) {
|
|
742
|
+
this._emitter.notify("onInvalidated");
|
|
743
|
+
}
|
|
744
|
+
delete(e) {
|
|
745
|
+
this._getState().isDeleted || this._delete(e);
|
|
746
|
+
}
|
|
747
|
+
_delete(e) {
|
|
748
|
+
e = {
|
|
749
|
+
description: this._getActionDescription("delete") ?? t("op.delete"),
|
|
750
|
+
...e
|
|
751
|
+
};
|
|
752
|
+
let n = this._beginCommit(e?.description);
|
|
753
|
+
try {
|
|
754
|
+
this._options.deleteFromContainer && this._options.deleteFromContainer?.(e), this._processDelete(), n.commit();
|
|
755
|
+
} catch (e) {
|
|
756
|
+
throw n.rollback(), e;
|
|
757
|
+
}
|
|
758
|
+
}
|
|
759
|
+
_processOnContainerDeleted() {
|
|
760
|
+
this._processDelete();
|
|
761
|
+
}
|
|
762
|
+
_processDelete() {
|
|
763
|
+
this._updateState({ isDeleted: !0 }, void 0, ["onDelete"]);
|
|
764
|
+
}
|
|
765
|
+
_processOnContainerReadOnly() {
|
|
766
|
+
this._emitter.notify("onReadOnlyChange");
|
|
767
|
+
}
|
|
768
|
+
addListeners(e, t) {
|
|
769
|
+
return this._emitter.addListeners(e, t);
|
|
770
|
+
}
|
|
771
|
+
getId() {
|
|
772
|
+
return this._id;
|
|
773
|
+
}
|
|
774
|
+
getVersionId() {
|
|
775
|
+
return this._transactions.getVersionId(this._id);
|
|
776
|
+
}
|
|
777
|
+
beginCommit(e) {
|
|
778
|
+
return this._beginCommit(e);
|
|
779
|
+
}
|
|
780
|
+
doBatch(e, t) {
|
|
781
|
+
let n = this;
|
|
782
|
+
return this._transactions.doBatch(e, typeof t == "string" ? { description: t } : t, (e) => {
|
|
783
|
+
n._processTransactionDone(e);
|
|
784
|
+
});
|
|
785
|
+
}
|
|
786
|
+
isClosed() {
|
|
787
|
+
return this._closed;
|
|
788
|
+
}
|
|
789
|
+
close() {
|
|
790
|
+
this._closed || (this._emitter.notify("onClose"), this._closed = !0, this._transactionsRemoveListener?.(), this._transactions.remove(this._id));
|
|
791
|
+
}
|
|
792
|
+
}, y = class e extends v {
|
|
793
|
+
static {
|
|
794
|
+
this.instanceCounter = 0;
|
|
795
|
+
}
|
|
796
|
+
constructor(t) {
|
|
797
|
+
super(t), this._watches = /* @__PURE__ */ new Set(), this._watchesReleased = !1, this._getMovable = t.getMovable ?? null, this._addWatchOption = t.addWatch ?? null, this._getRangeOption = t.getRange ?? null;
|
|
798
|
+
let n = t.name ?? null;
|
|
799
|
+
!n && this._getMovable && (n = `${this.getTypeDescription()} ${++e.instanceCounter}`);
|
|
800
|
+
let r = t.description ?? null;
|
|
801
|
+
n === null && r === null || this._updateState({
|
|
802
|
+
name: n,
|
|
803
|
+
description: r
|
|
804
|
+
});
|
|
805
|
+
}
|
|
806
|
+
getName() {
|
|
807
|
+
return this._closed ? null : this._getState()?.name ?? null;
|
|
808
|
+
}
|
|
809
|
+
setName(e) {
|
|
810
|
+
let n = { description: t("op.setMovableName") };
|
|
811
|
+
return this._protectionCheck(n.description), this._updateState({ name: e }, n, ["onAnyChange"]), this;
|
|
812
|
+
}
|
|
813
|
+
getDescription() {
|
|
814
|
+
return this._closed ? null : this._getState()?.description ?? null;
|
|
815
|
+
}
|
|
816
|
+
setDescription(e) {
|
|
817
|
+
let n = { description: t("op.setMovableDescription") };
|
|
818
|
+
return this._protectionCheck(n.description), this._updateState({ description: e || null }, n, ["onAnyChange"]), this;
|
|
819
|
+
}
|
|
820
|
+
getMovable() {
|
|
821
|
+
return this._getMovable?.() ?? null;
|
|
822
|
+
}
|
|
823
|
+
getReferences() {
|
|
824
|
+
if (this._closed || this._watchesReleased || this._watches.size === 0) return null;
|
|
825
|
+
let e = [], t = /* @__PURE__ */ new Set();
|
|
826
|
+
for (let n of this._watches) {
|
|
827
|
+
let r = n.formula?.getReferences() ?? this._parseReference(n.expression);
|
|
828
|
+
if (!r) continue;
|
|
829
|
+
let i = r.getCount();
|
|
830
|
+
for (let n = 0; n < i; n++) {
|
|
831
|
+
let i = r.at(n);
|
|
832
|
+
if (i.isInvalid()) continue;
|
|
833
|
+
let a = `${i.getSheet().getId()}!${i.getAddress()}`;
|
|
834
|
+
t.has(a) || (t.add(a), e.push(i));
|
|
835
|
+
}
|
|
836
|
+
}
|
|
837
|
+
return e.length === 0 ? null : e[0].getSheet().getRanges(e);
|
|
838
|
+
}
|
|
839
|
+
_addWatch(e, t, n) {
|
|
840
|
+
let r = typeof e == "string" ? e : e.getExpression(), i = {
|
|
841
|
+
expression: r.startsWith("=") ? r.substring(1) : r,
|
|
842
|
+
formula: null,
|
|
843
|
+
callback: t,
|
|
844
|
+
options: n,
|
|
845
|
+
release: null
|
|
846
|
+
};
|
|
847
|
+
return this._watches.add(i), this._watchesReleased || this._hold(i, typeof e == "string" ? void 0 : e), () => {
|
|
848
|
+
this._watches.delete(i) && (i.release?.(), i.release = null, this._notifyReferencesChange());
|
|
849
|
+
};
|
|
850
|
+
}
|
|
851
|
+
_resolveRange(e) {
|
|
852
|
+
return this._getRangeOption?.(e) ?? null;
|
|
853
|
+
}
|
|
854
|
+
_hold(e, t) {
|
|
855
|
+
let n = this._addWatchOption;
|
|
856
|
+
n && (e.release = n(t ?? e.expression, (t) => {
|
|
857
|
+
e.formula = t.formula, e.expression = t.formula.getExpression(), e.callback?.(t), this._notifyReferencesChange();
|
|
858
|
+
}, e.options));
|
|
859
|
+
}
|
|
860
|
+
_parseReference(e) {
|
|
861
|
+
if (!e || e.includes("#REF!")) return null;
|
|
862
|
+
try {
|
|
863
|
+
let t = e.includes("!") ? null : this.getMovable()?.getRange().getSheet(), n = t ? t.getRange(e) : this._resolveRange(e);
|
|
864
|
+
return n && !n.isInvalid() ? n.getSheet().getRanges([n]) : null;
|
|
865
|
+
} catch {
|
|
866
|
+
return null;
|
|
867
|
+
}
|
|
868
|
+
}
|
|
869
|
+
_notifyReferencesChange() {
|
|
870
|
+
this._closed || (this._emitter.notify("onReferencesChange"), this._emitter.notify("onAnyChange"));
|
|
871
|
+
}
|
|
872
|
+
_releaseWatches() {
|
|
873
|
+
this._watchesReleased = !0;
|
|
874
|
+
for (let e of this._watches) e.release?.(), e.release = null;
|
|
875
|
+
}
|
|
876
|
+
_holdWatches() {
|
|
877
|
+
this._watchesReleased = !1;
|
|
878
|
+
for (let e of this._watches) this._hold(e, e.formula ?? void 0);
|
|
879
|
+
}
|
|
880
|
+
_processDelete() {
|
|
881
|
+
this._releaseWatches(), super._processDelete();
|
|
882
|
+
}
|
|
883
|
+
_processRestoreOrRevert(e, t) {
|
|
884
|
+
super._processRestoreOrRevert(e, t);
|
|
885
|
+
let n = e === void 0 || !0 === e.isDeleted;
|
|
886
|
+
n && !this._watchesReleased ? this._releaseWatches() : !n && this._watchesReleased && this._holdWatches();
|
|
887
|
+
}
|
|
888
|
+
_getSourceId() {
|
|
889
|
+
let e = this._getState()?.data;
|
|
890
|
+
return typeof e?.sourceId == "number" ? e.sourceId : void 0;
|
|
891
|
+
}
|
|
892
|
+
_ensureSourceId(e) {
|
|
893
|
+
let n = this._getSourceId();
|
|
894
|
+
if (n !== void 0) return n;
|
|
895
|
+
let r = e(), i = this._getState()?.data ?? {};
|
|
896
|
+
return this._updateState({ data: {
|
|
897
|
+
...i,
|
|
898
|
+
sourceId: r
|
|
899
|
+
} }, { description: t("op.connectShape") }), r;
|
|
900
|
+
}
|
|
901
|
+
_protectionCheck(e) {
|
|
902
|
+
if (this.isReadOnly()) throw new r(_(e));
|
|
903
|
+
}
|
|
904
|
+
};
|
|
905
|
+
export { v as a, u as i, g as n, y as o, h as r, _ as t };
|