@sheetxl/studio-vanilla 0.4.22 → 0.5.1

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.
Files changed (193) hide show
  1. package/README.md +3 -3
  2. package/browser/cjs/{7nEG2wj_Ohie6CwI.cjs → 9nujqkxYSI9ZC752.cjs} +1 -1
  3. package/browser/cjs/{C9oIS5xxO9B7vS3W.cjs → B-PgSPL2j6zjri6c.cjs} +2 -2
  4. package/browser/cjs/{Bdm_fGdkK4-pZ0tW.cjs → B7MEStBCGjzSOfyD.cjs} +2 -2
  5. package/browser/cjs/{Dws_eDddoJKDPps_.cjs → BK02DjlaEYaTTka8.cjs} +1 -1
  6. package/browser/cjs/{CrUZUIz00uPDq4EA.cjs → BQyjl-fBSVpx5oCT.cjs} +1 -1
  7. package/browser/cjs/{COuRf_8YbqEsDQOC.cjs → BRn8LkQ4nKiHvOXz.cjs} +1 -1
  8. package/browser/cjs/B_E21L-ayzOp5qGa.cjs +6 -0
  9. package/browser/cjs/{BZvC7PqILOVRl2ij.cjs → BbCJIneMSx4cf-ur.cjs} +1 -1
  10. package/browser/cjs/{DMMZr350oW-Zan7x.cjs → BcfxxMxYhAmNKCi3.cjs} +4 -4
  11. package/browser/cjs/{Bzntg1YSzOszdwLy.cjs → BjTNmmCnOvBUdiDv.cjs} +1 -1
  12. package/browser/cjs/{DqlFSswn_reXyFz8.cjs → BmixnfJY-Qdv0-vb.cjs} +1 -1
  13. package/browser/cjs/{Bk2cFYnTKxP7WbLy.cjs → Bp6L-F7UNS-L6N03.cjs} +2 -2
  14. package/browser/cjs/{CIeiC9TKv80O2_fQ.cjs → BswNvZNzfy-xnhzz.cjs} +1 -1
  15. package/browser/cjs/{DaEdjRWwuNebE2hn.cjs → BvpkPfBcSDJWY8dE.cjs} +2 -2
  16. package/browser/cjs/{CwgzE59YUQ1eOTBi.cjs → C45wa3JLoHKrKgx9.cjs} +2 -2
  17. package/browser/cjs/{QJFc55OPrJyuRvDO.cjs → C8xLSqAZLBX2dJ4N.cjs} +8 -8
  18. package/browser/cjs/{C9xTKWx1tr6NZFC8.cjs → C9jH-6oidDYMUYG6.cjs} +1 -1
  19. package/browser/cjs/{CYmpgLiDS0ZlbG11.cjs → CFQ2dYAH0BbJmrls.cjs} +2 -2
  20. package/browser/cjs/{D3qzZXPgfAtKIAP9.cjs → CQT8VGZ70QydoPyX.cjs} +5 -5
  21. package/browser/cjs/{DJMpu6kYQUW3FWjs.cjs → CRXFlr87NPJQyxUF.cjs} +1 -1
  22. package/browser/cjs/{CvvHAxM5SO6mwsyq.cjs → CSxnmIlj-ZSdiqWs.cjs} +2 -2
  23. package/browser/cjs/{BvEv8i6SisfC24C1.cjs → CXs4S4JhLFZVgvTR.cjs} +3 -3
  24. package/browser/cjs/{-AkvO2DXLOxJTxam.cjs → CdYqMzk5cMIE_Doy.cjs} +1 -1
  25. package/browser/cjs/CgZJr_HNgqQcu-4B.cjs +330 -0
  26. package/browser/cjs/{B9GyERAqyIxdqS4D.cjs → Cj9vxBt4_rKsQNb0.cjs} +1 -1
  27. package/browser/cjs/{Bi2-QXq5KvbsAXoB.cjs → CrI7eSD8XXiUCkPF.cjs} +1 -1
  28. package/browser/cjs/{tVbeAmLkaH_1Jy7R.cjs → CtJheUJbLcXjQUm3.cjs} +2 -2
  29. package/browser/cjs/{BlojFx4yQfY8ahEJ.cjs → CtwgEd3i19q5yZJp.cjs} +2 -2
  30. package/browser/cjs/{BY3tZiH_cfwBkpN8.cjs → CwQfym_96MXR9OLy.cjs} +1 -1
  31. package/browser/cjs/{CknjEH7DZBnqyPfk.cjs → Cxx1AgOSDpuJx7kX.cjs} +1 -1
  32. package/browser/cjs/{CCu9cK1DUD4oa3Nj.cjs → D1-0RbtY4BXgzZY-.cjs} +1 -1
  33. package/browser/cjs/{DmtZLv1wnSxRzPiR.cjs → D3IWZEahAgaUWvha.cjs} +2 -2
  34. package/browser/cjs/{Iek_K8QW1doYx_eo.cjs → D4my6sTVajf6SI0E.cjs} +1 -1
  35. package/browser/cjs/{BS0bGW4PmNinQUvL.cjs → D77ocr4cahSYERpG.cjs} +4 -4
  36. package/browser/cjs/{3CSmmG7E8ziDB1mP.cjs → D8o4nvExhX_QGle4.cjs} +1 -1
  37. package/browser/cjs/{BPODmSH7Z1MR1rHr.cjs → DBLdpG9-iGu4QY6E.cjs} +4 -4
  38. package/browser/cjs/{Df9S9eEGYxA_EcEr.cjs → DBe9KI_Kxj0YTvMp.cjs} +1 -1
  39. package/browser/cjs/{Cv1BFY5pqPtJd8qO.cjs → DPIjtUi5aQ4ukRIE.cjs} +1 -1
  40. package/browser/cjs/{BO8oGaHWFtHyxmQ1.cjs → DSxzu2PfTqAXFK7u.cjs} +2 -2
  41. package/browser/cjs/DWmXH4vEJaHu_J43.cjs +6 -0
  42. package/browser/cjs/{CZltonq1gEczLRHi.cjs → DWsxyYa4mEWANxQc.cjs} +4 -4
  43. package/browser/cjs/{DFJ4dyRxiUF1XPPZ.cjs → Dbv-L8d50VFkQXv3.cjs} +1 -1
  44. package/browser/cjs/{cOAjfOdF1cb-xgQG.cjs → DfMDnmbowrTm8wAQ.cjs} +1 -1
  45. package/browser/cjs/{DL7DCFUaFkr2LYhZ.cjs → DlJQcGerUQB6jtq9.cjs} +1 -1
  46. package/browser/cjs/{B0aLqzqegePPgpc2.cjs → DmgNvMLQXvQcxq1p.cjs} +1 -1
  47. package/browser/cjs/{kQ8wVygFJMcxlUv-.cjs → DvMs0RgylQcOGxo0.cjs} +1 -1
  48. package/browser/cjs/{HyVntu9KkvdKrJEt.cjs → Dz0TY19Ws28XwiPt.cjs} +2 -2
  49. package/browser/cjs/{D7q2GFLhv9QRTZJe.cjs → DzG79WXVl2LXIuWZ.cjs} +1 -1
  50. package/browser/cjs/{CQRZm8lGq26oKY31.cjs → OettkXQE2AbA_CDP.cjs} +1 -1
  51. package/browser/cjs/{Cvwrl86aXHFXJVZZ.cjs → Sup8PX3PS57TkI6V.cjs} +1 -1
  52. package/browser/cjs/{Cf1j7hiCbQ8xo4_U.cjs → U-UUeruaasnyL2cE.cjs} +3 -3
  53. package/browser/cjs/aIICSjNBKiOkNiwu.cjs +6 -0
  54. package/browser/cjs/{wNoDw92hvq2txBki.cjs → emGp26D9pBqQifHC.cjs} +1 -1
  55. package/browser/cjs/{DgSAPPq-D_vlo9jE.cjs → gYH09gta23jOsaje.cjs} +1 -1
  56. package/browser/cjs/index.cjs +2 -2
  57. package/browser/cjs/{BYRBdz-9UGZ0b_AO.cjs → s7ysGwMSg897LJKF.cjs} +1 -1
  58. package/browser/cjs/{DMfk3didwdGQLc0i.cjs → sFDhI1tJ4eXlkejB.cjs} +4 -4
  59. package/browser/cjs/{ClEc15AqSTFOf5zG.cjs → yVBWKdlLudyzwfeW.cjs} +1 -1
  60. package/{cdn/assets/Ckb6l6osoWh90VXn.js → browser/esm/0VpVo6CQYMcz_rbP.mjs} +1 -1
  61. package/{cdn/assets/CAal3t8F-VfdmgAH.js → browser/esm/3xXjUns8-1hKqD8-.mjs} +1 -1
  62. package/browser/esm/{gzl_ozUgkS0mr_32.mjs → 85NBLOptD8mgcw6l.mjs} +1 -1
  63. package/browser/esm/{oUl7lbkOPMCi30tO.mjs → AGeyhzAoOP3Q5g4x.mjs} +1 -1
  64. package/browser/esm/{BpFA0UU_TF4JO3dh.mjs → B-LKjeisA9lKu3u3.mjs} +1 -1
  65. package/{cdn/assets/DqRiTlxxpGv8z6hB.js → browser/esm/B0dOwGowibI4mMD5.mjs} +2 -2
  66. package/browser/esm/{Cx0a1WWRvJgDg4qb.mjs → B1jX3dJN0xg4OAen.mjs} +5 -5
  67. package/browser/esm/{BajFlIH_X_nvDNfp.mjs → BFu0JkHyxwv4JRrP.mjs} +2 -2
  68. package/{cdn/assets/CVlIOg6F8qrZdlQ1.js → browser/esm/BPsefDR0mPf5xvCO.mjs} +1 -1
  69. package/browser/esm/{C2xOGr0pDSHSMKoW.mjs → BXI18yI3qqOlnxNq.mjs} +1 -1
  70. package/{cdn/assets/BSdVpOzJ8SL3EBhP.js → browser/esm/BcTK3tcbPZ2IGt-X.mjs} +1 -1
  71. package/{cdn/assets/Co_HyodT3prcEvNJ.js → browser/esm/BiMdfyDtnt2rYw-r.mjs} +1 -1
  72. package/browser/esm/{BJqIPJDvrhWpZc4S.mjs → BkvpQTMeIIK3PCYY.mjs} +1 -1
  73. package/browser/esm/{D-QFKqWRP5dKwynV.mjs → Bm2Aw1SUya5OXV4a.mjs} +1 -1
  74. package/browser/esm/{BmyjN5txj3iMw_DE.mjs → Bpp0yOz56huirghZ.mjs} +1 -1
  75. package/browser/esm/{kbK4ZGVl1tl5F-UA.mjs → ByznljJVFJeVPwWx.mjs} +13 -13
  76. package/browser/esm/{fgXzhDR19HBK6PEW.mjs → C3UjDQh1BUXcPgG_.mjs} +6 -6
  77. package/browser/esm/{2d2eGHpsnUoCOFMT.mjs → C7N3fqbgilVDX1EO.mjs} +17 -17
  78. package/browser/esm/{Cm7pnWH_xgLwX_lZ.mjs → CDRkgOxkDGKlIXeW.mjs} +1 -1
  79. package/browser/esm/{d49_A3euUkzKZure.mjs → COv8vuaYs_htqziD.mjs} +1 -1
  80. package/browser/esm/{CCjuiVOyesh1IQpA.mjs → CdDk8fKkDRWivCBm.mjs} +3 -3
  81. package/browser/esm/ClHBG3R8IiFguFAt.mjs +39 -0
  82. package/{cdn/assets/B-ol51_1jHaCVeGO.js → browser/esm/ClUwUv-y_4iTiZeW.mjs} +2 -2
  83. package/browser/esm/{BBov1fpR61VyhE3Z.mjs → Clei3-jMgZKIe0CE.mjs} +1 -1
  84. package/browser/esm/{T263hpnj_sMd1bmD.mjs → Cq1zEAhyhkBIp8Ax.mjs} +2 -2
  85. package/{cdn/assets/g2unVUs-HBGBvXMs.js → browser/esm/CtnOw8c6WutmVo4I.mjs} +1 -1
  86. package/{cdn/assets/Dp--KMDeqecbq_Wc.js → browser/esm/CuQfrNq9PxAaYCFs.mjs} +1 -1
  87. package/browser/esm/{BVuoKgnuqrUwY6Fv.mjs → CvXzw2Lpr8wS9ZVg.mjs} +17 -17
  88. package/browser/esm/{Dva_qJrZGvFYbRxZ.mjs → D-SS0LY7DTyyq29t.mjs} +3 -3
  89. package/browser/esm/{Dk_OZhcDLapTaNma.mjs → D-ZTinSL4HYqEo_N.mjs} +1 -1
  90. package/{cdn/assets/BQfnqD12mz41DOr_.js → browser/esm/D-cQ1_HANeEmTVak.mjs} +1 -1
  91. package/browser/esm/{CslKfn0zxkGKrM4-.mjs → D19Bkm5jJZngaU2r.mjs} +19 -19
  92. package/browser/esm/{DWgbhx4Y4WzyAP3Z.mjs → D5ZdMGzF8-ZfDfKQ.mjs} +4 -4
  93. package/browser/esm/{CfeqmUm-TkCE2XpK.mjs → DAPpJbwAZQhDZqaM.mjs} +4 -4
  94. package/{cdn/assets/CcE9nC_34k_5iKdO.js → browser/esm/DFmGnyy1RMeIAxZc.mjs} +2 -2
  95. package/browser/esm/{tAl8qMu6C0Vlq5p-.mjs → DQBTcrsV_oNRryeC.mjs} +2 -2
  96. package/browser/esm/{Dxqx7qwqE6wbYSpB.mjs → DXpByTfBAcSlNQ1C.mjs} +13 -13
  97. package/{cdn/assets/BnEb6t4xIVuW37yn.js → browser/esm/Dc4teqz-R7x3iEb3.mjs} +2 -2
  98. package/{cdn/assets/BKYjPTKdwG8Dn1_Z.js → browser/esm/Dj-1ksuM43vA_8BP.mjs} +1 -1
  99. package/{cdn/assets/aqvSzH4m6bf7ODc6.js → browser/esm/DjC9t2nEwmPpl7WS.mjs} +1 -1
  100. package/{cdn/assets/ObudKUELIfmbm87W.js → browser/esm/DlDI3IucdebIZp8I.mjs} +1 -1
  101. package/browser/esm/{Bb0W3ByMVowTViNK.mjs → Dlydw2QbG-f-sLCH.mjs} +1 -1
  102. package/browser/esm/{Bzg-D_R4sXN-wyMx.mjs → Dm6VW-HzBzkKwcnE.mjs} +1 -1
  103. package/{cdn/assets/BJD32_Zv5gkabGc0.js → browser/esm/Dmvy9OlGZJIm4jkL.mjs} +1 -1
  104. package/{cdn/assets/CsBIABPdnqpcZcvJ.js → browser/esm/DriS0WgSxs_p_c_I.mjs} +1 -1
  105. package/browser/esm/{d8r4AqRUASAMCbBC.mjs → FgngFsAWn9GFi4za.mjs} +1 -1
  106. package/browser/esm/{SGprYj0-SzDtrM3y.mjs → IH4pKmgZQrB1Zu0L.mjs} +12 -12
  107. package/browser/esm/{CkccSfJEU471_Sui.mjs → OxQlWm5qyGb6JYye.mjs} +3 -3
  108. package/{cdn/assets/CQaM4Ka20cP71fl0.js → browser/esm/TKzzaA0mzIgbwYNm.mjs} +1 -1
  109. package/browser/esm/{CBPeZuyUIf9scEwn.mjs → Y4nqyDtRcO8b4sVz.mjs} +25 -25
  110. package/browser/esm/{Btr2FDDtI_fht0WU.mjs → YMBNcaMLJOB9vYZ5.mjs} +6 -6
  111. package/{cdn/assets/Cbq2K4YGny5wwFEf.js → browser/esm/ckTkfOwh_7TIQoI0.mjs} +1 -1
  112. package/{cdn/assets/Ys1OCodY6sXUkZ6-.js → browser/esm/hf76A0cAH97o_Rev.mjs} +1 -1
  113. package/browser/esm/index.mjs +2 -2
  114. package/browser/esm/{Cl0mB61JgZYfTh4S.mjs → jnmCbk7hZxv17d_V.mjs} +1 -1
  115. package/browser/esm/ju2xb5hRci_-szDY.mjs +46 -0
  116. package/{cdn/assets/SmC3rmOCw-Ynredz.js → browser/esm/o8ISzPTCYx_zEzDp.mjs} +1 -1
  117. package/browser/esm/{B0A2aLiKDPGGU4k-.mjs → yxVi9--jBfcQ0JHh.mjs} +16270 -16185
  118. package/cdn/assets/{BCEDMsB3yP73FGo4.js → -N2Wazi61B1TXYBK.js} +11 -11
  119. package/{browser/esm/Ckb6l6osoWh90VXn.mjs → cdn/assets/0VpVo6CQYMcz_rbP.js} +1 -1
  120. package/cdn/assets/{DBzbchpZyNJVqFwJ.js → 1xm8jyYgpkpWO8k5.js} +4 -4
  121. package/cdn/assets/{DXWy4_H6I-dyOLr6.js → 3AU1vXTH3P3UhXU7.js} +20 -20
  122. package/{browser/esm/CAal3t8F-VfdmgAH.mjs → cdn/assets/3xXjUns8-1hKqD8-.js} +1 -1
  123. package/cdn/assets/{CcP-5SrDsnDeT6SQ.js → 6c1oZ4Zev8my_1Sr.js} +50 -50
  124. package/cdn/assets/{gzl_ozUgkS0mr_32.js → 85NBLOptD8mgcw6l.js} +1 -1
  125. package/cdn/assets/{8d4z_mUqWF_BnOt4.js → B-4KZMrx7t8BQe_h.js} +4 -4
  126. package/cdn/assets/{BpFA0UU_TF4JO3dh.js → B-LKjeisA9lKu3u3.js} +1 -1
  127. package/cdn/assets/B2aUAymykYdZH6ea.js +22 -0
  128. package/cdn/assets/{BPQvYX3Tn3_XfM55.js → BDXndx4Yuhj_E8sP.js} +4 -4
  129. package/cdn/assets/{UBuQw1PVtmH3a9bE.js → BLoE30vNz4FFxozL.js} +2 -2
  130. package/cdn/assets/{CVgQlKevn28IBavQ.js → BPAkRmO-F8hAn3Zu.js} +17364 -17279
  131. package/{browser/esm/CVlIOg6F8qrZdlQ1.mjs → cdn/assets/BPsefDR0mPf5xvCO.js} +1 -1
  132. package/cdn/assets/{C2xOGr0pDSHSMKoW.js → BXI18yI3qqOlnxNq.js} +1 -1
  133. package/cdn/assets/{DKaNurhCUtSDI3-Y.js → BbHbVER_6LWLDZ63.js} +26 -26
  134. package/{browser/esm/BSdVpOzJ8SL3EBhP.mjs → cdn/assets/BcTK3tcbPZ2IGt-X.js} +1 -1
  135. package/{browser/esm/oAfM3SU0EgMxfDc0.mjs → cdn/assets/BiBRi7uHZMh8fxz5.js} +2 -2
  136. package/{browser/esm/Co_HyodT3prcEvNJ.mjs → cdn/assets/BiMdfyDtnt2rYw-r.js} +1 -1
  137. package/cdn/assets/{BJqIPJDvrhWpZc4S.js → BkvpQTMeIIK3PCYY.js} +1 -1
  138. package/cdn/assets/{D-QFKqWRP5dKwynV.js → Bm2Aw1SUya5OXV4a.js} +1 -1
  139. package/cdn/assets/{DQmcuM6zJj_UBR4j.js → Bm3Sdq1xTgtChb-Q.js} +11 -11
  140. package/cdn/assets/{B_gWDLoUXJ58kUTF.js → BoYY0EcB08017R9U.js} +2 -2
  141. package/cdn/assets/{BWHiFslK55rPiaTT.js → Bou3BFRfxUTNq4vR.js} +2 -2
  142. package/cdn/assets/{BmyjN5txj3iMw_DE.js → Bpp0yOz56huirghZ.js} +1 -1
  143. package/{browser/esm/DgFIjoPrM5dmrLHT.mjs → cdn/assets/BxtOFiIvbYJt-M5y.js} +2 -2
  144. package/cdn/assets/{Cm7pnWH_xgLwX_lZ.js → CDRkgOxkDGKlIXeW.js} +1 -1
  145. package/cdn/assets/{d49_A3euUkzKZure.js → COv8vuaYs_htqziD.js} +1 -1
  146. package/cdn/assets/Ck6vzJvkZ31US1wY.js +41 -0
  147. package/cdn/assets/{CIdfxx6BkkxIdU4J.js → CkFQYE-fhBYA_QiP.js} +2 -2
  148. package/cdn/assets/{BBov1fpR61VyhE3Z.js → Clei3-jMgZKIe0CE.js} +1 -1
  149. package/cdn/assets/{BWhbbP9qvpjw1m3d.js → CqLP3lzPLb4sglH4.js} +5 -5
  150. package/cdn/assets/Cr0Slu84CNaejRm5.js +46 -0
  151. package/cdn/assets/{u_xPkr1quUnZRgrA.js → CsVGGUkaHfpL1HLm.js} +30 -30
  152. package/{browser/esm/g2unVUs-HBGBvXMs.mjs → cdn/assets/CtnOw8c6WutmVo4I.js} +1 -1
  153. package/{browser/esm/Dp--KMDeqecbq_Wc.mjs → cdn/assets/CuQfrNq9PxAaYCFs.js} +1 -1
  154. package/cdn/assets/{B2I5EC8Y3LkhqzOe.js → CxIVxoZ16dEh6AVl.js} +13 -13
  155. package/cdn/assets/{Dk_OZhcDLapTaNma.js → D-ZTinSL4HYqEo_N.js} +1 -1
  156. package/{browser/esm/BQfnqD12mz41DOr_.mjs → cdn/assets/D-cQ1_HANeEmTVak.js} +1 -1
  157. package/cdn/assets/{CGImeT9zAECbU9zM.js → D6j_Ep7Ii-CsiXJb.js} +14 -14
  158. package/{browser/esm/AVmCEk8Fmiw2k_yK.mjs → cdn/assets/DGVqaqtgqT7-iLsS.js} +18 -18
  159. package/cdn/assets/{DIBJnPf-ZLpoUAyv.js → DL0xZucNaC25JD_B.js} +2 -2
  160. package/cdn/assets/{Bk7mWQ4jJ591qT5U.js → DijLxUufgRdT5tye.js} +3 -3
  161. package/{browser/esm/BKYjPTKdwG8Dn1_Z.mjs → cdn/assets/Dj-1ksuM43vA_8BP.js} +1 -1
  162. package/{browser/esm/aqvSzH4m6bf7ODc6.mjs → cdn/assets/DjC9t2nEwmPpl7WS.js} +1 -1
  163. package/{browser/esm/ObudKUELIfmbm87W.mjs → cdn/assets/DlDI3IucdebIZp8I.js} +1 -1
  164. package/cdn/assets/{Bb0W3ByMVowTViNK.js → Dlydw2QbG-f-sLCH.js} +1 -1
  165. package/cdn/assets/{Bzg-D_R4sXN-wyMx.js → Dm6VW-HzBzkKwcnE.js} +1 -1
  166. package/{browser/esm/BJD32_Zv5gkabGc0.mjs → cdn/assets/Dmvy9OlGZJIm4jkL.js} +1 -1
  167. package/cdn/assets/{DXlz010r4VFvz1TS.js → Do8GH_esmPz_tntb.js} +9 -9
  168. package/cdn/assets/{QtHcsa9O7bxZgew4.js → Dr-rVo6o44pqTYDU.js} +1 -1
  169. package/{browser/esm/CsBIABPdnqpcZcvJ.mjs → cdn/assets/DriS0WgSxs_p_c_I.js} +1 -1
  170. package/cdn/assets/{Dt6M8k8ljeGubAJ5.js → ECxVYs1c6UFhjnpA.js} +6 -6
  171. package/cdn/assets/{B44RkeFF8g1ncaGw.js → EPH-TGvYL0PD4nB8.js} +17 -17
  172. package/cdn/assets/{d8r4AqRUASAMCbBC.js → FgngFsAWn9GFi4za.js} +1 -1
  173. package/cdn/assets/{1we1udiYEDagZ5XN.js → GjM3sOILAXHEzXUB.js} +1 -1
  174. package/{browser/esm/CQaM4Ka20cP71fl0.mjs → cdn/assets/TKzzaA0mzIgbwYNm.js} +1 -1
  175. package/cdn/assets/{Dzb_e1lRgdeWlKbP.js → UayQBIW7tKZEuc8P.js} +3 -3
  176. package/cdn/assets/{D8hsneNA-W9ryUa9.js → ZKt-xWFAsB8fM65l.js} +3 -3
  177. package/{browser/esm/Ba4SdTfCAvYS7a3O.mjs → cdn/assets/_0rBrQes8xS_780J.js} +2 -2
  178. package/{browser/esm/Cbq2K4YGny5wwFEf.mjs → cdn/assets/ckTkfOwh_7TIQoI0.js} +1 -1
  179. package/{browser/esm/Ys1OCodY6sXUkZ6-.mjs → cdn/assets/hf76A0cAH97o_Rev.js} +1 -1
  180. package/cdn/assets/{Cl0mB61JgZYfTh4S.js → jnmCbk7hZxv17d_V.js} +1 -1
  181. package/{browser/esm/SmC3rmOCw-Ynredz.mjs → cdn/assets/o8ISzPTCYx_zEzDp.js} +1 -1
  182. package/cdn/index.js +2 -2
  183. package/cdn/loader.js +1 -1
  184. package/package.json +3 -3
  185. package/browser/cjs/Bc6lVP0c3mEzf_yK.cjs +0 -6
  186. package/browser/cjs/DB2WR3LaeOhkCAXY.cjs +0 -6
  187. package/browser/cjs/Dd7vDdIeQaFScMRQ.cjs +0 -6
  188. package/browser/cjs/QxU4KIgsHZuVigdy.cjs +0 -329
  189. package/browser/esm/CDnNRZ7jINT_Dr0K.mjs +0 -46
  190. package/browser/esm/DxJfUV0HFQT8g6H_.mjs +0 -39
  191. package/cdn/assets/BERonPR_jlfR0j1B.js +0 -46
  192. package/cdn/assets/Ct1wZ_TFb7_zG9uz.js +0 -22
  193. package/cdn/assets/o1yNcQczZA65rwUv.js +0 -41
@@ -1,5 +1,5 @@
1
1
  "use strict";/**
2
- * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.22
2
+ * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.5.1
3
3
  *
4
4
  * (C) 2025-present SheetXL Inc. & Michael T. Ford
5
5
  * License: The license can be found at https://www.sheetxl.com/license.
@@ -1,6 +1,6 @@
1
1
  "use strict";/**
2
- * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.22
2
+ * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.5.1
3
3
  *
4
4
  * (C) 2025-present SheetXL Inc. & Michael T. Ford
5
5
  * License: The license can be found at https://www.sheetxl.com/license.
6
- */Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./QxU4KIgsHZuVigdy.cjs"),D=["Input"],H=e.reactExports.memo(e.reactExports.forwardRef((f,h)=>{const{initialValue:T="",onOption:y,onValidateOption:p,onInputOption:r,onValidateInputOption:i,onDone:s,inputProps:l,inputLabel:O,inputType:E,inputPlaceHolder:j,options:u=D,autoFocusSel:v=".autoFocus",cancelOption:c,defaultOption:d=u?.[0],...w}=f,[F,S]=e.reactExports.useState(!1),[o,P]=e.reactExports.useState(T),[b,C]=e.reactExports.useState(""),[I,R]=e.reactExports.useState(!0),n=e.T(async(t,a)=>{if(!i)return!0;const g=await i?.(t,a);C(g?.message??"");const m=g?.valid??!0;return R(m),m},[i]),x=e.T(async t=>{r?.(o,t)},[o,r,s,y,c,d]),k=e.T(async t=>{t.keyCode===e.to.Enter&&await n?.(o,null)},[o,x]),V=e.T(t=>{P(t.target.value),n?.(t.target.value,null)},[p]),B=e.T(async t=>{let a=await n(o,t);try{a!==!1&&(a=await n(o,t))}catch{}return a??!0},[o,p]);return e.jsxRuntimeExports.jsx(e.L3,{options:u,onDone:s,onOption:(t,a)=>{a||x(t)},onValidateOption:B,cancelOption:c,defaultOption:d,autoFocusSel:v,ref:h,...w,children:e.jsxRuntimeExports.jsx(e.Box,{sx:{paddingTop:t=>t.spacing(1),paddingBottom:t=>t.spacing(0)},children:e.jsxRuntimeExports.jsx(e.FormControl,{sx:{paddingTop:t=>t.spacing(1.5),minWidth:135,width:"100%"},size:"small",children:e.jsxRuntimeExports.jsx(e.TextField,{onFocus:t=>{F||t.target?.select(),S(!0)},type:E,label:O,helperText:b||" ",sx:{width:"100%","& .MuiFormHelperText-root":{marginTop:t=>t.spacing(.5),color:I?void 0:"error.main"}},InputLabelProps:{shrink:!0},InputProps:{inputProps:{placeholder:j,spellCheck:!1,autoComplete:"off",...l,className:e.H0("autoFocus",l?.className),sx:{paddingTop:t=>t.spacing(1.25),paddingBottom:t=>t.spacing(.75),backgroundImage:`linear-gradient(${e.alpha("#fff",e.getOverlayAlpha(5))}, ${e.alpha("#fff",e.getOverlayAlpha(5))})`}}},value:o,onChange:V,onKeyDown:k,onContextMenu:t=>{t.stopPropagation()}})})})})}));exports.default=H;
6
+ */Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CgZJr_HNgqQcu-4B.cjs"),D=["Input"],H=e.reactExports.memo(e.reactExports.forwardRef((f,h)=>{const{initialValue:T="",onOption:y,onValidateOption:p,onInputOption:r,onValidateInputOption:i,onDone:s,inputProps:l,inputLabel:O,inputType:E,inputPlaceHolder:j,options:u=D,autoFocusSel:S=".autoFocus",cancelOption:c,defaultOption:d=u?.[0],...v}=f,[w,F]=e.reactExports.useState(!1),[o,P]=e.reactExports.useState(T),[b,C]=e.reactExports.useState(""),[I,R]=e.reactExports.useState(!0),n=e.T(async(t,a)=>{if(!i)return!0;const g=await i?.(t,a);C(g?.message??"");const m=g?.valid??!0;return R(m),m},[i]),x=e.T(async t=>{r?.(o,t)},[o,r,s,y,c,d]),k=e.T(async t=>{t.keyCode===e.eo.Enter&&await n?.(o,null)},[o,x]),V=e.T(t=>{P(t.target.value),n?.(t.target.value,null)},[p]),B=e.T(async t=>{let a=await n(o,t);try{a!==!1&&(a=await n(o,t))}catch{}return a??!0},[o,p]);return e.jsxRuntimeExports.jsx(e.S3,{options:u,onDone:s,onOption:(t,a)=>{a||x(t)},onValidateOption:B,cancelOption:c,defaultOption:d,autoFocusSel:S,ref:h,...v,children:e.jsxRuntimeExports.jsx(e.Box,{sx:{paddingTop:t=>t.spacing(1),paddingBottom:t=>t.spacing(0)},children:e.jsxRuntimeExports.jsx(e.FormControl,{sx:{paddingTop:t=>t.spacing(1.5),minWidth:135,width:"100%"},size:"small",children:e.jsxRuntimeExports.jsx(e.TextField,{onFocus:t=>{w||t.target?.select(),F(!0)},type:E,label:O,helperText:b||" ",sx:{width:"100%","& .MuiFormHelperText-root":{marginTop:t=>t.spacing(.5),color:I?void 0:"error.main"}},InputLabelProps:{shrink:!0},InputProps:{inputProps:{placeholder:j,spellCheck:!1,autoComplete:"off",...l,className:e.H0("autoFocus",l?.className),sx:{paddingTop:t=>t.spacing(1.25),paddingBottom:t=>t.spacing(.75),backgroundImage:`linear-gradient(${e.alpha("#fff",e.getOverlayAlpha(5))}, ${e.alpha("#fff",e.getOverlayAlpha(5))})`}}},value:o,onChange:V,onKeyDown:k,onContextMenu:t=>{t.stopPropagation()}})})})})}));exports.default=H;
@@ -1,11 +1,11 @@
1
1
  "use strict";/**
2
- * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.22
2
+ * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.5.1
3
3
  *
4
4
  * (C) 2025-present SheetXL Inc. & Michael T. Ford
5
5
  * License: The license can be found at https://www.sheetxl.com/license.
6
- */Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("./QxU4KIgsHZuVigdy.cjs"),Je=":A-Z_a-zÀ-ÖØ-öø-˿Ͱ-ͽͿ-῿‌‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�𐀀-󯿿",ys=new RegExp(`^[${Je}][-${Je}.0-9·̀-ͯ‿-⁀]*$`,"u");function os(i){return i>=65&&i<=90||i>=97&&i<=122||i===58||i===95||i===8204||i===8205||i>=192&&i<=214||i>=216&&i<=246||i>=248&&i<=767||i>=880&&i<=893||i>=895&&i<=8191||i>=8304&&i<=8591||i>=11264&&i<=12271||i>=12289&&i<=55295||i>=63744&&i<=64975||i>=65008&&i<=65533||i>=65536&&i<=983039}const Ye="A-Z_a-zÀ-ÖØ-öø-˿Ͱ-ͽͿ-῿‌-‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�𐀀-󯿿",bs=new RegExp(`^[${Ye}][-${Ye}.0-9·̀-ͯ‿-⁀]*$`,"u");function rs(i){return i>=65&&i<=90||i===95||i>=97&&i<=122||i>=192&&i<=214||i>=216&&i<=246||i>=248&&i<=767||i>=880&&i<=893||i>=895&&i<=8191||i>=8204&&i<=8205||i>=8304&&i<=8591||i>=11264&&i<=12271||i>=12289&&i<=55295||i>=63744&&i<=64975||i>=65008&&i<=65533||i>=65536&&i<=983039}const z=function(i){return i===32||i===10||i===13||i===9},xs=function(i){return i>=32&&i<=55295||i===10||i===13||i===9||i>=57344&&i<=65533||i>=65536&&i<=1114111},re=os,ts=function(i){return os(i)||i>=48&&i<=57||i===45||i===46||i===183||i>=768&&i<=879||i>=8255&&i<=8256},ns=[32,10,13,9],ws=ys,vs=function(i){return i>=1&&i<=55295||i>=57344&&i<=65533||i>=65536&&i<=1114111},Ss=rs,Cs=function(i){return rs(i)||i===45||i===46||i>=48&&i<=57||i===183||i>=768&&i<=879||i>=8255&&i<=8256},ks=bs,ge="http://www.w3.org/XML/1998/namespace",Zt="http://www.w3.org/2000/xmlns/",As={__proto__:null,xml:ge,xmlns:Zt},Ps={__proto__:null,amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},I=-1,lt=-2,W=13,Ht=33,ot=10,St=60,Gt=61,j=62,X=63,Qt=93,pe=i=>i===34||i===39,as=[34,39],Ds=[...as,91,j],Es=[...as,St,Qt],Os=[Gt,X,...ns],Is=[...ns,j,38,St];function ke(i,t,s){switch(t){case"xml":s!==ge&&i.fail(`xml prefix must be bound to ${ge}.`);break;case"xmlns":s!==Zt&&i.fail(`xmlns prefix must be bound to ${Zt}.`)}switch(s){case Zt:i.fail(t===""?`the default namespace may not be set to ${s}.`:`may not assign a prefix (even "xmlns") to the URI ${Zt}.`);break;case ge:switch(t){case"xml":break;case"":i.fail(`the default namespace may not be set to ${s}.`);break;default:i.fail("may not assign the xml namespace to another prefix.")}}}const Vs=i=>ks.test(i),Ls=i=>ws.test(i),es={xmldecl:"xmldeclHandler",text:"textHandler",processinginstruction:"piHandler",doctype:"doctypeHandler",comment:"commentHandler",opentagstart:"openTagStartHandler",attribute:"attributeHandler",opentag:"openTagHandler",closetag:"closeTagHandler",cdata:"cdataHandler",error:"errorHandler",end:"endHandler",ready:"readyHandler"};class Ns{constructor(t){this.i=0,this.prevI=0,this.opt=t??{},this.fragmentOpt=!!this.opt.fragment;const s=this.xmlnsOpt=!!this.opt.xmlns;if(this.trackPosition=this.opt.position!==!1,this.fileName=this.opt.fileName,s){this.nameStartCheck=Ss,this.nameCheck=Cs,this.isName=Vs,this.processAttribs=this.processAttribsNS,this.pushAttrib=this.pushAttribNS,this.ns={__proto__:null,...As};const o=this.opt.additionalNamespaces;o!=null&&(function(n,a){for(const c of Object.keys(a))ke(n,c,a[c])}(this,o),Object.assign(this.ns,o))}else this.nameStartCheck=re,this.nameCheck=ts,this.isName=Ls,this.processAttribs=this.processAttribsPlain,this.pushAttrib=this.pushAttribPlain;this.stateTable=[this.sBegin,this.sBeginWhitespace,this.sDoctype,this.sDoctypeQuote,this.sDTD,this.sDTDQuoted,this.sDTDOpenWaka,this.sDTDOpenWakaBang,this.sDTDComment,this.sDTDCommentEnding,this.sDTDCommentEnded,this.sDTDPI,this.sDTDPIEnding,this.sText,this.sEntity,this.sOpenWaka,this.sOpenWakaBang,this.sComment,this.sCommentEnding,this.sCommentEnded,this.sCData,this.sCDataEnding,this.sCDataEnding2,this.sPIFirstChar,this.sPIRest,this.sPIBody,this.sPIEnding,this.sXMLDeclNameStart,this.sXMLDeclName,this.sXMLDeclEq,this.sXMLDeclValueStart,this.sXMLDeclValue,this.sXMLDeclSeparator,this.sXMLDeclEnding,this.sOpenTag,this.sOpenTagSlash,this.sAttrib,this.sAttribName,this.sAttribNameSawWhite,this.sAttribValue,this.sAttribValueQuoted,this.sAttribValueClosed,this.sAttribValueUnquoted,this.sCloseTag,this.sCloseTagSawWhite],this._init()}get closed(){return this._closed}_init(){this.openWakaBang="",this.text="",this.name="",this.piTarget="",this.entity="",this.q=null,this.tags=[],this.tag=null,this.topNS=null,this.chunk="",this.chunkPosition=0,this.i=0,this.prevI=0,this.carriedFromPrevious=void 0,this.forbiddenState=0,this.attribList=[];const{fragmentOpt:t}=this;this.state=t?W:0,this.reportedTextBeforeRoot=this.reportedTextAfterRoot=this.closedRoot=this.sawRoot=t,this.xmlDeclPossible=!t,this.xmlDeclExpects=["version"],this.entityReturnState=void 0;let{defaultXMLVersion:s}=this.opt;if(s===void 0){if(this.opt.forceXMLVersion===!0)throw new Error("forceXMLVersion set but defaultXMLVersion is not set");s="1.0"}this.setXMLVersion(s),this.positionAtNewLine=0,this.doctype=!1,this._closed=!1,this.xmlDecl={version:void 0,encoding:void 0,standalone:void 0},this.line=1,this.column=0,this.ENTITIES=Object.create(Ps),this.readyHandler?.()}get position(){return this.chunkPosition+this.i}get columnIndex(){return this.position-this.positionAtNewLine}on(t,s){this[es[t]]=s}off(t){this[es[t]]=void 0}makeError(t){let s=this.fileName??"";return this.trackPosition&&(s.length>0&&(s+=":"),s+=`${this.line}:${this.column}`),s.length>0&&(s+=": "),new Error(s+t)}fail(t){const s=this.makeError(t),o=this.errorHandler;if(o===void 0)throw s;return o(s),this}write(t){if(this.closed)return this.fail("cannot write after close; assign an onready handler.");let s=!1;t===null?(s=!0,t=""):typeof t=="object"&&(t=t.toString()),this.carriedFromPrevious!==void 0&&(t=`${this.carriedFromPrevious}${t}`,this.carriedFromPrevious=void 0);let o=t.length;const n=t.charCodeAt(o-1);!s&&(n===13||n>=55296&&n<=56319)&&(this.carriedFromPrevious=t[o-1],o--,t=t.slice(0,o));const{stateTable:a}=this;for(this.chunk=t,this.i=0;this.i<o;)a[this.state].call(this);return this.chunkPosition+=o,s?this.end():this}close(){return this.write(null)}getCode10(){const t=this.chunk,s=this.i;if(this.prevI=s,this.i++,s>=t.length)return I;const o=t.charCodeAt(s);if(this.column++,o<55296){if(o>=32||o===9)return o;switch(o){case ot:return this.line++,this.column=0,this.positionAtNewLine=this.position,ot;case 13:return t.charCodeAt(s+1)===ot&&(this.i=s+2),this.line++,this.column=0,this.positionAtNewLine=this.position,lt;default:return this.fail("disallowed character."),o}}if(o>56319)return o>=57344&&o<=65533||this.fail("disallowed character."),o;const n=65536+1024*(o-55296)+(t.charCodeAt(s+1)-56320);return this.i=s+2,n>1114111&&this.fail("disallowed character."),n}getCode11(){const{chunk:t,i:s}=this;if(this.prevI=s,this.i=s+1,s>=t.length)return I;const o=t.charCodeAt(s);if(this.column++,o<55296){if(o>31&&o<127||o>159&&o!==8232||o===9)return o;switch(o){case ot:return this.line++,this.column=0,this.positionAtNewLine=this.position,ot;case 13:{const a=t.charCodeAt(s+1);a!==ot&&a!==133||(this.i=s+2)}case 133:case 8232:return this.line++,this.column=0,this.positionAtNewLine=this.position,lt;default:return this.fail("disallowed character."),o}}if(o>56319)return o>=57344&&o<=65533||this.fail("disallowed character."),o;const n=65536+1024*(o-55296)+(t.charCodeAt(s+1)-56320);return this.i=s+2,n>1114111&&this.fail("disallowed character."),n}getCodeNorm(){const t=this.getCode();return t===lt?ot:t}unget(){this.i=this.prevI,this.column--}captureTo(t){let{i:s}=this;const{chunk:o}=this;for(;;){const n=this.getCode(),a=n===lt,c=a?ot:n;if(c===I||t.includes(c))return this.text+=o.slice(s,this.prevI),c;a&&(this.text+=`${o.slice(s,this.prevI)}
6
+ */Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("./CgZJr_HNgqQcu-4B.cjs"),Je=":A-Z_a-zÀ-ÖØ-öø-˿Ͱ-ͽͿ-῿‌‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�𐀀-󯿿",ys=new RegExp(`^[${Je}][-${Je}.0-9·̀-ͯ‿-⁀]*$`,"u");function os(i){return i>=65&&i<=90||i>=97&&i<=122||i===58||i===95||i===8204||i===8205||i>=192&&i<=214||i>=216&&i<=246||i>=248&&i<=767||i>=880&&i<=893||i>=895&&i<=8191||i>=8304&&i<=8591||i>=11264&&i<=12271||i>=12289&&i<=55295||i>=63744&&i<=64975||i>=65008&&i<=65533||i>=65536&&i<=983039}const Ye="A-Z_a-zÀ-ÖØ-öø-˿Ͱ-ͽͿ-῿‌-‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�𐀀-󯿿",bs=new RegExp(`^[${Ye}][-${Ye}.0-9·̀-ͯ‿-⁀]*$`,"u");function rs(i){return i>=65&&i<=90||i===95||i>=97&&i<=122||i>=192&&i<=214||i>=216&&i<=246||i>=248&&i<=767||i>=880&&i<=893||i>=895&&i<=8191||i>=8204&&i<=8205||i>=8304&&i<=8591||i>=11264&&i<=12271||i>=12289&&i<=55295||i>=63744&&i<=64975||i>=65008&&i<=65533||i>=65536&&i<=983039}const z=function(i){return i===32||i===10||i===13||i===9},xs=function(i){return i>=32&&i<=55295||i===10||i===13||i===9||i>=57344&&i<=65533||i>=65536&&i<=1114111},re=os,ts=function(i){return os(i)||i>=48&&i<=57||i===45||i===46||i===183||i>=768&&i<=879||i>=8255&&i<=8256},ns=[32,10,13,9],ws=ys,vs=function(i){return i>=1&&i<=55295||i>=57344&&i<=65533||i>=65536&&i<=1114111},Ss=rs,Cs=function(i){return rs(i)||i===45||i===46||i>=48&&i<=57||i===183||i>=768&&i<=879||i>=8255&&i<=8256},ks=bs,ge="http://www.w3.org/XML/1998/namespace",Zt="http://www.w3.org/2000/xmlns/",As={__proto__:null,xml:ge,xmlns:Zt},Ds={__proto__:null,amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},I=-1,lt=-2,W=13,jt=33,ot=10,St=60,Gt=61,F=62,X=63,Qt=93,pe=i=>i===34||i===39,as=[34,39],Es=[...as,91,F],Ps=[...as,St,Qt],Os=[Gt,X,...ns],Is=[...ns,F,38,St];function ke(i,t,s){switch(t){case"xml":s!==ge&&i.fail(`xml prefix must be bound to ${ge}.`);break;case"xmlns":s!==Zt&&i.fail(`xmlns prefix must be bound to ${Zt}.`)}switch(s){case Zt:i.fail(t===""?`the default namespace may not be set to ${s}.`:`may not assign a prefix (even "xmlns") to the URI ${Zt}.`);break;case ge:switch(t){case"xml":break;case"":i.fail(`the default namespace may not be set to ${s}.`);break;default:i.fail("may not assign the xml namespace to another prefix.")}}}const Vs=i=>ks.test(i),Ls=i=>ws.test(i),es={xmldecl:"xmldeclHandler",text:"textHandler",processinginstruction:"piHandler",doctype:"doctypeHandler",comment:"commentHandler",opentagstart:"openTagStartHandler",attribute:"attributeHandler",opentag:"openTagHandler",closetag:"closeTagHandler",cdata:"cdataHandler",error:"errorHandler",end:"endHandler",ready:"readyHandler"};class Ns{constructor(t){this.i=0,this.prevI=0,this.opt=t??{},this.fragmentOpt=!!this.opt.fragment;const s=this.xmlnsOpt=!!this.opt.xmlns;if(this.trackPosition=this.opt.position!==!1,this.fileName=this.opt.fileName,s){this.nameStartCheck=Ss,this.nameCheck=Cs,this.isName=Vs,this.processAttribs=this.processAttribsNS,this.pushAttrib=this.pushAttribNS,this.ns={__proto__:null,...As};const o=this.opt.additionalNamespaces;o!=null&&(function(n,a){for(const c of Object.keys(a))ke(n,c,a[c])}(this,o),Object.assign(this.ns,o))}else this.nameStartCheck=re,this.nameCheck=ts,this.isName=Ls,this.processAttribs=this.processAttribsPlain,this.pushAttrib=this.pushAttribPlain;this.stateTable=[this.sBegin,this.sBeginWhitespace,this.sDoctype,this.sDoctypeQuote,this.sDTD,this.sDTDQuoted,this.sDTDOpenWaka,this.sDTDOpenWakaBang,this.sDTDComment,this.sDTDCommentEnding,this.sDTDCommentEnded,this.sDTDPI,this.sDTDPIEnding,this.sText,this.sEntity,this.sOpenWaka,this.sOpenWakaBang,this.sComment,this.sCommentEnding,this.sCommentEnded,this.sCData,this.sCDataEnding,this.sCDataEnding2,this.sPIFirstChar,this.sPIRest,this.sPIBody,this.sPIEnding,this.sXMLDeclNameStart,this.sXMLDeclName,this.sXMLDeclEq,this.sXMLDeclValueStart,this.sXMLDeclValue,this.sXMLDeclSeparator,this.sXMLDeclEnding,this.sOpenTag,this.sOpenTagSlash,this.sAttrib,this.sAttribName,this.sAttribNameSawWhite,this.sAttribValue,this.sAttribValueQuoted,this.sAttribValueClosed,this.sAttribValueUnquoted,this.sCloseTag,this.sCloseTagSawWhite],this._init()}get closed(){return this._closed}_init(){this.openWakaBang="",this.text="",this.name="",this.piTarget="",this.entity="",this.q=null,this.tags=[],this.tag=null,this.topNS=null,this.chunk="",this.chunkPosition=0,this.i=0,this.prevI=0,this.carriedFromPrevious=void 0,this.forbiddenState=0,this.attribList=[];const{fragmentOpt:t}=this;this.state=t?W:0,this.reportedTextBeforeRoot=this.reportedTextAfterRoot=this.closedRoot=this.sawRoot=t,this.xmlDeclPossible=!t,this.xmlDeclExpects=["version"],this.entityReturnState=void 0;let{defaultXMLVersion:s}=this.opt;if(s===void 0){if(this.opt.forceXMLVersion===!0)throw new Error("forceXMLVersion set but defaultXMLVersion is not set");s="1.0"}this.setXMLVersion(s),this.positionAtNewLine=0,this.doctype=!1,this._closed=!1,this.xmlDecl={version:void 0,encoding:void 0,standalone:void 0},this.line=1,this.column=0,this.ENTITIES=Object.create(Ds),this.readyHandler?.()}get position(){return this.chunkPosition+this.i}get columnIndex(){return this.position-this.positionAtNewLine}on(t,s){this[es[t]]=s}off(t){this[es[t]]=void 0}makeError(t){let s=this.fileName??"";return this.trackPosition&&(s.length>0&&(s+=":"),s+=`${this.line}:${this.column}`),s.length>0&&(s+=": "),new Error(s+t)}fail(t){const s=this.makeError(t),o=this.errorHandler;if(o===void 0)throw s;return o(s),this}write(t){if(this.closed)return this.fail("cannot write after close; assign an onready handler.");let s=!1;t===null?(s=!0,t=""):typeof t=="object"&&(t=t.toString()),this.carriedFromPrevious!==void 0&&(t=`${this.carriedFromPrevious}${t}`,this.carriedFromPrevious=void 0);let o=t.length;const n=t.charCodeAt(o-1);!s&&(n===13||n>=55296&&n<=56319)&&(this.carriedFromPrevious=t[o-1],o--,t=t.slice(0,o));const{stateTable:a}=this;for(this.chunk=t,this.i=0;this.i<o;)a[this.state].call(this);return this.chunkPosition+=o,s?this.end():this}close(){return this.write(null)}getCode10(){const t=this.chunk,s=this.i;if(this.prevI=s,this.i++,s>=t.length)return I;const o=t.charCodeAt(s);if(this.column++,o<55296){if(o>=32||o===9)return o;switch(o){case ot:return this.line++,this.column=0,this.positionAtNewLine=this.position,ot;case 13:return t.charCodeAt(s+1)===ot&&(this.i=s+2),this.line++,this.column=0,this.positionAtNewLine=this.position,lt;default:return this.fail("disallowed character."),o}}if(o>56319)return o>=57344&&o<=65533||this.fail("disallowed character."),o;const n=65536+1024*(o-55296)+(t.charCodeAt(s+1)-56320);return this.i=s+2,n>1114111&&this.fail("disallowed character."),n}getCode11(){const{chunk:t,i:s}=this;if(this.prevI=s,this.i=s+1,s>=t.length)return I;const o=t.charCodeAt(s);if(this.column++,o<55296){if(o>31&&o<127||o>159&&o!==8232||o===9)return o;switch(o){case ot:return this.line++,this.column=0,this.positionAtNewLine=this.position,ot;case 13:{const a=t.charCodeAt(s+1);a!==ot&&a!==133||(this.i=s+2)}case 133:case 8232:return this.line++,this.column=0,this.positionAtNewLine=this.position,lt;default:return this.fail("disallowed character."),o}}if(o>56319)return o>=57344&&o<=65533||this.fail("disallowed character."),o;const n=65536+1024*(o-55296)+(t.charCodeAt(s+1)-56320);return this.i=s+2,n>1114111&&this.fail("disallowed character."),n}getCodeNorm(){const t=this.getCode();return t===lt?ot:t}unget(){this.i=this.prevI,this.column--}captureTo(t){let{i:s}=this;const{chunk:o}=this;for(;;){const n=this.getCode(),a=n===lt,c=a?ot:n;if(c===I||t.includes(c))return this.text+=o.slice(s,this.prevI),c;a&&(this.text+=`${o.slice(s,this.prevI)}
7
7
  `,s=this.i)}}captureToChar(t){let{i:s}=this;const{chunk:o}=this;for(;;){let n=this.getCode();switch(n){case lt:this.text+=`${o.slice(s,this.prevI)}
8
- `,s=this.i,n=ot;break;case I:return this.text+=o.slice(s),!1}if(n===t)return this.text+=o.slice(s,this.prevI),!0}}captureNameChars(){const{chunk:t,i:s}=this;for(;;){const o=this.getCode();if(o===I)return this.name+=t.slice(s),I;if(!ts(o))return this.name+=t.slice(s,this.prevI),o===lt?ot:o}}skipSpaces(){for(;;){const t=this.getCodeNorm();if(t===I||!z(t))return t}}setXMLVersion(t){this.currentXMLVersion=t,t==="1.0"?(this.isChar=xs,this.getCode=this.getCode10):(this.isChar=vs,this.getCode=this.getCode11)}sBegin(){this.chunk.charCodeAt(0)===65279&&(this.i++,this.column++),this.state=1}sBeginWhitespace(){const t=this.i,s=this.skipSpaces();switch(this.prevI!==t&&(this.xmlDeclPossible=!1),s){case St:if(this.state=15,this.text.length!==0)throw new Error("no-empty text at start");break;case I:break;default:this.unget(),this.state=W,this.xmlDeclPossible=!1}}sDoctype(){const t=this.captureTo(Ds);switch(t){case j:this.doctypeHandler?.(this.text),this.text="",this.state=W,this.doctype=!0;break;case I:break;default:this.text+=String.fromCodePoint(t),t===91?this.state=4:pe(t)&&(this.state=3,this.q=t)}}sDoctypeQuote(){const t=this.q;this.captureToChar(t)&&(this.text+=String.fromCodePoint(t),this.q=null,this.state=2)}sDTD(){const t=this.captureTo(Es);t!==I&&(this.text+=String.fromCodePoint(t),t===Qt?this.state=2:t===St?this.state=6:pe(t)&&(this.state=5,this.q=t))}sDTDQuoted(){const t=this.q;this.captureToChar(t)&&(this.text+=String.fromCodePoint(t),this.state=4,this.q=null)}sDTDOpenWaka(){const t=this.getCodeNorm();switch(this.text+=String.fromCodePoint(t),t){case 33:this.state=7,this.openWakaBang="";break;case X:this.state=11;break;default:this.state=4}}sDTDOpenWakaBang(){const t=String.fromCodePoint(this.getCodeNorm()),s=this.openWakaBang+=t;this.text+=t,s!=="-"&&(this.state=s==="--"?8:4,this.openWakaBang="")}sDTDComment(){this.captureToChar(45)&&(this.text+="-",this.state=9)}sDTDCommentEnding(){const t=this.getCodeNorm();this.text+=String.fromCodePoint(t),this.state=t===45?10:8}sDTDCommentEnded(){const t=this.getCodeNorm();this.text+=String.fromCodePoint(t),t===j?this.state=4:(this.fail("malformed comment."),this.state=8)}sDTDPI(){this.captureToChar(X)&&(this.text+="?",this.state=12)}sDTDPIEnding(){const t=this.getCodeNorm();this.text+=String.fromCodePoint(t),t===j&&(this.state=4)}sText(){this.tags.length!==0?this.handleTextInRoot():this.handleTextOutsideRoot()}sEntity(){let{i:t}=this;const{chunk:s}=this;t:for(;;)switch(this.getCode()){case lt:this.entity+=`${s.slice(t,this.prevI)}
9
- `,t=this.i;break;case 59:{const{entityReturnState:o}=this,n=this.entity+s.slice(t,this.prevI);let a;this.state=o,n===""?(this.fail("empty entity name."),a="&;"):(a=this.parseEntity(n),this.entity=""),o===W&&this.textHandler===void 0||(this.text+=a);break t}case I:this.entity+=s.slice(t);break t}}sOpenWaka(){const t=this.getCode();if(re(t))this.state=34,this.unget(),this.xmlDeclPossible=!1;else switch(t){case 47:this.state=43,this.xmlDeclPossible=!1;break;case 33:this.state=16,this.openWakaBang="",this.xmlDeclPossible=!1;break;case X:this.state=23;break;default:this.fail("disallowed character in tag name"),this.state=W,this.xmlDeclPossible=!1}}sOpenWakaBang(){switch(this.openWakaBang+=String.fromCodePoint(this.getCodeNorm()),this.openWakaBang){case"[CDATA[":this.sawRoot||this.reportedTextBeforeRoot||(this.fail("text data outside of root node."),this.reportedTextBeforeRoot=!0),this.closedRoot&&!this.reportedTextAfterRoot&&(this.fail("text data outside of root node."),this.reportedTextAfterRoot=!0),this.state=20,this.openWakaBang="";break;case"--":this.state=17,this.openWakaBang="";break;case"DOCTYPE":this.state=2,(this.doctype||this.sawRoot)&&this.fail("inappropriately located doctype declaration."),this.openWakaBang="";break;default:this.openWakaBang.length>=7&&this.fail("incorrect syntax.")}}sComment(){this.captureToChar(45)&&(this.state=18)}sCommentEnding(){const t=this.getCodeNorm();t===45?(this.state=19,this.commentHandler?.(this.text),this.text=""):(this.text+=`-${String.fromCodePoint(t)}`,this.state=17)}sCommentEnded(){const t=this.getCodeNorm();t!==j?(this.fail("malformed comment."),this.text+=`--${String.fromCodePoint(t)}`,this.state=17):this.state=W}sCData(){this.captureToChar(Qt)&&(this.state=21)}sCDataEnding(){const t=this.getCodeNorm();t===Qt?this.state=22:(this.text+=`]${String.fromCodePoint(t)}`,this.state=20)}sCDataEnding2(){const t=this.getCodeNorm();switch(t){case j:this.cdataHandler?.(this.text),this.text="",this.state=W;break;case Qt:this.text+="]";break;default:this.text+=`]]${String.fromCodePoint(t)}`,this.state=20}}sPIFirstChar(){const t=this.getCodeNorm();this.nameStartCheck(t)?(this.piTarget+=String.fromCodePoint(t),this.state=24):t===X||z(t)?(this.fail("processing instruction without a target."),this.state=t===X?26:25):(this.fail("disallowed character in processing instruction name."),this.piTarget+=String.fromCodePoint(t),this.state=24)}sPIRest(){const{chunk:t,i:s}=this;for(;;){const o=this.getCodeNorm();if(o===I)return void(this.piTarget+=t.slice(s));if(!this.nameCheck(o)){this.piTarget+=t.slice(s,this.prevI);const n=o===X;n||z(o)?this.piTarget==="xml"?(this.xmlDeclPossible||this.fail("an XML declaration must be at the start of the document."),this.state=n?Ht:27):this.state=n?26:25:(this.fail("disallowed character in processing instruction name."),this.piTarget+=String.fromCodePoint(o));break}}}sPIBody(){if(this.text.length===0){const t=this.getCodeNorm();t===X?this.state=26:z(t)||(this.text=String.fromCodePoint(t))}else this.captureToChar(X)&&(this.state=26)}sPIEnding(){const t=this.getCodeNorm();if(t===j){const{piTarget:s}=this;s.toLowerCase()==="xml"&&this.fail("the XML declaration must appear at the start of the document."),this.piHandler?.({target:s,body:this.text}),this.piTarget=this.text="",this.state=W}else t===X?this.text+="?":(this.text+=`?${String.fromCodePoint(t)}`,this.state=25);this.xmlDeclPossible=!1}sXMLDeclNameStart(){const t=this.skipSpaces();t!==X?t!==I&&(this.state=28,this.name=String.fromCodePoint(t)):this.state=Ht}sXMLDeclName(){const t=this.captureTo(Os);if(t===X)return this.state=Ht,this.name+=this.text,this.text="",void this.fail("XML declaration is incomplete.");if(z(t)||t===Gt){if(this.name+=this.text,this.text="",!this.xmlDeclExpects.includes(this.name))switch(this.name.length){case 0:this.fail("did not expect any more name/value pairs.");break;case 1:this.fail(`expected the name ${this.xmlDeclExpects[0]}.`);break;default:this.fail(`expected one of ${this.xmlDeclExpects.join(", ")}`)}this.state=t===Gt?30:29}}sXMLDeclEq(){const t=this.getCodeNorm();if(t===X)return this.state=Ht,void this.fail("XML declaration is incomplete.");z(t)||(t!==Gt&&this.fail("value required."),this.state=30)}sXMLDeclValueStart(){const t=this.getCodeNorm();if(t===X)return this.state=Ht,void this.fail("XML declaration is incomplete.");z(t)||(pe(t)?this.q=t:(this.fail("value must be quoted."),this.q=32),this.state=31)}sXMLDeclValue(){const t=this.captureTo([this.q,X]);if(t===X)return this.state=Ht,this.text="",void this.fail("XML declaration is incomplete.");if(t===I)return;const s=this.text;switch(this.text="",this.name){case"version":{this.xmlDeclExpects=["encoding","standalone"];const o=s;this.xmlDecl.version=o,/^1\.[0-9]+$/.test(o)?this.opt.forceXMLVersion||this.setXMLVersion(o):this.fail("version number must match /^1\\.[0-9]+$/.");break}case"encoding":/^[A-Za-z][A-Za-z0-9._-]*$/.test(s)||this.fail("encoding value must match /^[A-Za-z0-9][A-Za-z0-9._-]*$/."),this.xmlDeclExpects=["standalone"],this.xmlDecl.encoding=s;break;case"standalone":s!=="yes"&&s!=="no"&&this.fail('standalone value must match "yes" or "no".'),this.xmlDeclExpects=[],this.xmlDecl.standalone=s}this.name="",this.state=32}sXMLDeclSeparator(){const t=this.getCodeNorm();t!==X?(z(t)||(this.fail("whitespace required."),this.unget()),this.state=27):this.state=Ht}sXMLDeclEnding(){this.getCodeNorm()===j?(this.piTarget!=="xml"?this.fail("processing instructions are not allowed before root."):this.name!=="version"&&this.xmlDeclExpects.includes("version")&&this.fail("XML declaration must contain a version."),this.xmldeclHandler?.(this.xmlDecl),this.name="",this.piTarget=this.text="",this.state=W):this.fail("The character ? is disallowed anywhere in XML declarations."),this.xmlDeclPossible=!1}sOpenTag(){const t=this.captureNameChars();if(t===I)return;const s=this.tag={name:this.name,attributes:Object.create(null)};switch(this.name="",this.xmlnsOpt&&(this.topNS=s.ns=Object.create(null)),this.openTagStartHandler?.(s),this.sawRoot=!0,!this.fragmentOpt&&this.closedRoot&&this.fail("documents may contain only one root."),t){case j:this.openTag();break;case 47:this.state=35;break;default:z(t)||this.fail("disallowed character in tag name."),this.state=36}}sOpenTagSlash(){this.getCode()===j?this.openSelfClosingTag():(this.fail("forward-slash in opening tag not followed by >."),this.state=36)}sAttrib(){const t=this.skipSpaces();t!==I&&(re(t)?(this.unget(),this.state=37):t===j?this.openTag():t===47?this.state=35:this.fail("disallowed character in attribute name."))}sAttribName(){const t=this.captureNameChars();t===Gt?this.state=39:z(t)?this.state=38:t===j?(this.fail("attribute without value."),this.pushAttrib(this.name,this.name),this.name=this.text="",this.openTag()):t!==I&&this.fail("disallowed character in attribute name.")}sAttribNameSawWhite(){const t=this.skipSpaces();switch(t){case I:return;case Gt:this.state=39;break;default:this.fail("attribute without value."),this.text="",this.name="",t===j?this.openTag():re(t)?(this.unget(),this.state=37):(this.fail("disallowed character in attribute name."),this.state=36)}}sAttribValue(){const t=this.getCodeNorm();pe(t)?(this.q=t,this.state=40):z(t)||(this.fail("unquoted attribute value."),this.state=42,this.unget())}sAttribValueQuoted(){const{q:t,chunk:s}=this;let{i:o}=this;for(;;)switch(this.getCode()){case t:return this.pushAttrib(this.name,this.text+s.slice(o,this.prevI)),this.name=this.text="",this.q=null,void(this.state=41);case 38:return this.text+=s.slice(o,this.prevI),this.state=14,void(this.entityReturnState=40);case ot:case lt:case 9:this.text+=`${s.slice(o,this.prevI)} `,o=this.i;break;case St:return this.text+=s.slice(o,this.prevI),void this.fail("disallowed character.");case I:return void(this.text+=s.slice(o))}}sAttribValueClosed(){const t=this.getCodeNorm();z(t)?this.state=36:t===j?this.openTag():t===47?this.state=35:re(t)?(this.fail("no whitespace between attributes."),this.unget(),this.state=37):this.fail("disallowed character in attribute name.")}sAttribValueUnquoted(){const t=this.captureTo(Is);switch(t){case 38:this.state=14,this.entityReturnState=42;break;case St:this.fail("disallowed character.");break;case I:break;default:this.text.includes("]]>")&&this.fail('the string "]]>" is disallowed in char data.'),this.pushAttrib(this.name,this.text),this.name=this.text="",t===j?this.openTag():this.state=36}}sCloseTag(){const t=this.captureNameChars();t===j?this.closeTag():z(t)?this.state=44:t!==I&&this.fail("disallowed character in closing tag.")}sCloseTagSawWhite(){switch(this.skipSpaces()){case j:this.closeTag();break;case I:break;default:this.fail("disallowed character in closing tag.")}}handleTextInRoot(){let{i:t,forbiddenState:s}=this;const{chunk:o,textHandler:n}=this;t:for(;;)switch(this.getCode()){case St:if(this.state=15,n!==void 0){const{text:a}=this,c=o.slice(t,this.prevI);a.length!==0?(n(a+c),this.text=""):c.length!==0&&n(c)}s=0;break t;case 38:this.state=14,this.entityReturnState=W,n!==void 0&&(this.text+=o.slice(t,this.prevI)),s=0;break t;case Qt:switch(s){case 0:s=1;break;case 1:s=2;break;case 2:break;default:throw new Error("impossible state")}break;case j:s===2&&this.fail('the string "]]>" is disallowed in char data.'),s=0;break;case lt:n!==void 0&&(this.text+=`${o.slice(t,this.prevI)}
8
+ `,s=this.i,n=ot;break;case I:return this.text+=o.slice(s),!1}if(n===t)return this.text+=o.slice(s,this.prevI),!0}}captureNameChars(){const{chunk:t,i:s}=this;for(;;){const o=this.getCode();if(o===I)return this.name+=t.slice(s),I;if(!ts(o))return this.name+=t.slice(s,this.prevI),o===lt?ot:o}}skipSpaces(){for(;;){const t=this.getCodeNorm();if(t===I||!z(t))return t}}setXMLVersion(t){this.currentXMLVersion=t,t==="1.0"?(this.isChar=xs,this.getCode=this.getCode10):(this.isChar=vs,this.getCode=this.getCode11)}sBegin(){this.chunk.charCodeAt(0)===65279&&(this.i++,this.column++),this.state=1}sBeginWhitespace(){const t=this.i,s=this.skipSpaces();switch(this.prevI!==t&&(this.xmlDeclPossible=!1),s){case St:if(this.state=15,this.text.length!==0)throw new Error("no-empty text at start");break;case I:break;default:this.unget(),this.state=W,this.xmlDeclPossible=!1}}sDoctype(){const t=this.captureTo(Es);switch(t){case F:this.doctypeHandler?.(this.text),this.text="",this.state=W,this.doctype=!0;break;case I:break;default:this.text+=String.fromCodePoint(t),t===91?this.state=4:pe(t)&&(this.state=3,this.q=t)}}sDoctypeQuote(){const t=this.q;this.captureToChar(t)&&(this.text+=String.fromCodePoint(t),this.q=null,this.state=2)}sDTD(){const t=this.captureTo(Ps);t!==I&&(this.text+=String.fromCodePoint(t),t===Qt?this.state=2:t===St?this.state=6:pe(t)&&(this.state=5,this.q=t))}sDTDQuoted(){const t=this.q;this.captureToChar(t)&&(this.text+=String.fromCodePoint(t),this.state=4,this.q=null)}sDTDOpenWaka(){const t=this.getCodeNorm();switch(this.text+=String.fromCodePoint(t),t){case 33:this.state=7,this.openWakaBang="";break;case X:this.state=11;break;default:this.state=4}}sDTDOpenWakaBang(){const t=String.fromCodePoint(this.getCodeNorm()),s=this.openWakaBang+=t;this.text+=t,s!=="-"&&(this.state=s==="--"?8:4,this.openWakaBang="")}sDTDComment(){this.captureToChar(45)&&(this.text+="-",this.state=9)}sDTDCommentEnding(){const t=this.getCodeNorm();this.text+=String.fromCodePoint(t),this.state=t===45?10:8}sDTDCommentEnded(){const t=this.getCodeNorm();this.text+=String.fromCodePoint(t),t===F?this.state=4:(this.fail("malformed comment."),this.state=8)}sDTDPI(){this.captureToChar(X)&&(this.text+="?",this.state=12)}sDTDPIEnding(){const t=this.getCodeNorm();this.text+=String.fromCodePoint(t),t===F&&(this.state=4)}sText(){this.tags.length!==0?this.handleTextInRoot():this.handleTextOutsideRoot()}sEntity(){let{i:t}=this;const{chunk:s}=this;t:for(;;)switch(this.getCode()){case lt:this.entity+=`${s.slice(t,this.prevI)}
9
+ `,t=this.i;break;case 59:{const{entityReturnState:o}=this,n=this.entity+s.slice(t,this.prevI);let a;this.state=o,n===""?(this.fail("empty entity name."),a="&;"):(a=this.parseEntity(n),this.entity=""),o===W&&this.textHandler===void 0||(this.text+=a);break t}case I:this.entity+=s.slice(t);break t}}sOpenWaka(){const t=this.getCode();if(re(t))this.state=34,this.unget(),this.xmlDeclPossible=!1;else switch(t){case 47:this.state=43,this.xmlDeclPossible=!1;break;case 33:this.state=16,this.openWakaBang="",this.xmlDeclPossible=!1;break;case X:this.state=23;break;default:this.fail("disallowed character in tag name"),this.state=W,this.xmlDeclPossible=!1}}sOpenWakaBang(){switch(this.openWakaBang+=String.fromCodePoint(this.getCodeNorm()),this.openWakaBang){case"[CDATA[":this.sawRoot||this.reportedTextBeforeRoot||(this.fail("text data outside of root node."),this.reportedTextBeforeRoot=!0),this.closedRoot&&!this.reportedTextAfterRoot&&(this.fail("text data outside of root node."),this.reportedTextAfterRoot=!0),this.state=20,this.openWakaBang="";break;case"--":this.state=17,this.openWakaBang="";break;case"DOCTYPE":this.state=2,(this.doctype||this.sawRoot)&&this.fail("inappropriately located doctype declaration."),this.openWakaBang="";break;default:this.openWakaBang.length>=7&&this.fail("incorrect syntax.")}}sComment(){this.captureToChar(45)&&(this.state=18)}sCommentEnding(){const t=this.getCodeNorm();t===45?(this.state=19,this.commentHandler?.(this.text),this.text=""):(this.text+=`-${String.fromCodePoint(t)}`,this.state=17)}sCommentEnded(){const t=this.getCodeNorm();t!==F?(this.fail("malformed comment."),this.text+=`--${String.fromCodePoint(t)}`,this.state=17):this.state=W}sCData(){this.captureToChar(Qt)&&(this.state=21)}sCDataEnding(){const t=this.getCodeNorm();t===Qt?this.state=22:(this.text+=`]${String.fromCodePoint(t)}`,this.state=20)}sCDataEnding2(){const t=this.getCodeNorm();switch(t){case F:this.cdataHandler?.(this.text),this.text="",this.state=W;break;case Qt:this.text+="]";break;default:this.text+=`]]${String.fromCodePoint(t)}`,this.state=20}}sPIFirstChar(){const t=this.getCodeNorm();this.nameStartCheck(t)?(this.piTarget+=String.fromCodePoint(t),this.state=24):t===X||z(t)?(this.fail("processing instruction without a target."),this.state=t===X?26:25):(this.fail("disallowed character in processing instruction name."),this.piTarget+=String.fromCodePoint(t),this.state=24)}sPIRest(){const{chunk:t,i:s}=this;for(;;){const o=this.getCodeNorm();if(o===I)return void(this.piTarget+=t.slice(s));if(!this.nameCheck(o)){this.piTarget+=t.slice(s,this.prevI);const n=o===X;n||z(o)?this.piTarget==="xml"?(this.xmlDeclPossible||this.fail("an XML declaration must be at the start of the document."),this.state=n?jt:27):this.state=n?26:25:(this.fail("disallowed character in processing instruction name."),this.piTarget+=String.fromCodePoint(o));break}}}sPIBody(){if(this.text.length===0){const t=this.getCodeNorm();t===X?this.state=26:z(t)||(this.text=String.fromCodePoint(t))}else this.captureToChar(X)&&(this.state=26)}sPIEnding(){const t=this.getCodeNorm();if(t===F){const{piTarget:s}=this;s.toLowerCase()==="xml"&&this.fail("the XML declaration must appear at the start of the document."),this.piHandler?.({target:s,body:this.text}),this.piTarget=this.text="",this.state=W}else t===X?this.text+="?":(this.text+=`?${String.fromCodePoint(t)}`,this.state=25);this.xmlDeclPossible=!1}sXMLDeclNameStart(){const t=this.skipSpaces();t!==X?t!==I&&(this.state=28,this.name=String.fromCodePoint(t)):this.state=jt}sXMLDeclName(){const t=this.captureTo(Os);if(t===X)return this.state=jt,this.name+=this.text,this.text="",void this.fail("XML declaration is incomplete.");if(z(t)||t===Gt){if(this.name+=this.text,this.text="",!this.xmlDeclExpects.includes(this.name))switch(this.name.length){case 0:this.fail("did not expect any more name/value pairs.");break;case 1:this.fail(`expected the name ${this.xmlDeclExpects[0]}.`);break;default:this.fail(`expected one of ${this.xmlDeclExpects.join(", ")}`)}this.state=t===Gt?30:29}}sXMLDeclEq(){const t=this.getCodeNorm();if(t===X)return this.state=jt,void this.fail("XML declaration is incomplete.");z(t)||(t!==Gt&&this.fail("value required."),this.state=30)}sXMLDeclValueStart(){const t=this.getCodeNorm();if(t===X)return this.state=jt,void this.fail("XML declaration is incomplete.");z(t)||(pe(t)?this.q=t:(this.fail("value must be quoted."),this.q=32),this.state=31)}sXMLDeclValue(){const t=this.captureTo([this.q,X]);if(t===X)return this.state=jt,this.text="",void this.fail("XML declaration is incomplete.");if(t===I)return;const s=this.text;switch(this.text="",this.name){case"version":{this.xmlDeclExpects=["encoding","standalone"];const o=s;this.xmlDecl.version=o,/^1\.[0-9]+$/.test(o)?this.opt.forceXMLVersion||this.setXMLVersion(o):this.fail("version number must match /^1\\.[0-9]+$/.");break}case"encoding":/^[A-Za-z][A-Za-z0-9._-]*$/.test(s)||this.fail("encoding value must match /^[A-Za-z0-9][A-Za-z0-9._-]*$/."),this.xmlDeclExpects=["standalone"],this.xmlDecl.encoding=s;break;case"standalone":s!=="yes"&&s!=="no"&&this.fail('standalone value must match "yes" or "no".'),this.xmlDeclExpects=[],this.xmlDecl.standalone=s}this.name="",this.state=32}sXMLDeclSeparator(){const t=this.getCodeNorm();t!==X?(z(t)||(this.fail("whitespace required."),this.unget()),this.state=27):this.state=jt}sXMLDeclEnding(){this.getCodeNorm()===F?(this.piTarget!=="xml"?this.fail("processing instructions are not allowed before root."):this.name!=="version"&&this.xmlDeclExpects.includes("version")&&this.fail("XML declaration must contain a version."),this.xmldeclHandler?.(this.xmlDecl),this.name="",this.piTarget=this.text="",this.state=W):this.fail("The character ? is disallowed anywhere in XML declarations."),this.xmlDeclPossible=!1}sOpenTag(){const t=this.captureNameChars();if(t===I)return;const s=this.tag={name:this.name,attributes:Object.create(null)};switch(this.name="",this.xmlnsOpt&&(this.topNS=s.ns=Object.create(null)),this.openTagStartHandler?.(s),this.sawRoot=!0,!this.fragmentOpt&&this.closedRoot&&this.fail("documents may contain only one root."),t){case F:this.openTag();break;case 47:this.state=35;break;default:z(t)||this.fail("disallowed character in tag name."),this.state=36}}sOpenTagSlash(){this.getCode()===F?this.openSelfClosingTag():(this.fail("forward-slash in opening tag not followed by >."),this.state=36)}sAttrib(){const t=this.skipSpaces();t!==I&&(re(t)?(this.unget(),this.state=37):t===F?this.openTag():t===47?this.state=35:this.fail("disallowed character in attribute name."))}sAttribName(){const t=this.captureNameChars();t===Gt?this.state=39:z(t)?this.state=38:t===F?(this.fail("attribute without value."),this.pushAttrib(this.name,this.name),this.name=this.text="",this.openTag()):t!==I&&this.fail("disallowed character in attribute name.")}sAttribNameSawWhite(){const t=this.skipSpaces();switch(t){case I:return;case Gt:this.state=39;break;default:this.fail("attribute without value."),this.text="",this.name="",t===F?this.openTag():re(t)?(this.unget(),this.state=37):(this.fail("disallowed character in attribute name."),this.state=36)}}sAttribValue(){const t=this.getCodeNorm();pe(t)?(this.q=t,this.state=40):z(t)||(this.fail("unquoted attribute value."),this.state=42,this.unget())}sAttribValueQuoted(){const{q:t,chunk:s}=this;let{i:o}=this;for(;;)switch(this.getCode()){case t:return this.pushAttrib(this.name,this.text+s.slice(o,this.prevI)),this.name=this.text="",this.q=null,void(this.state=41);case 38:return this.text+=s.slice(o,this.prevI),this.state=14,void(this.entityReturnState=40);case ot:case lt:case 9:this.text+=`${s.slice(o,this.prevI)} `,o=this.i;break;case St:return this.text+=s.slice(o,this.prevI),void this.fail("disallowed character.");case I:return void(this.text+=s.slice(o))}}sAttribValueClosed(){const t=this.getCodeNorm();z(t)?this.state=36:t===F?this.openTag():t===47?this.state=35:re(t)?(this.fail("no whitespace between attributes."),this.unget(),this.state=37):this.fail("disallowed character in attribute name.")}sAttribValueUnquoted(){const t=this.captureTo(Is);switch(t){case 38:this.state=14,this.entityReturnState=42;break;case St:this.fail("disallowed character.");break;case I:break;default:this.text.includes("]]>")&&this.fail('the string "]]>" is disallowed in char data.'),this.pushAttrib(this.name,this.text),this.name=this.text="",t===F?this.openTag():this.state=36}}sCloseTag(){const t=this.captureNameChars();t===F?this.closeTag():z(t)?this.state=44:t!==I&&this.fail("disallowed character in closing tag.")}sCloseTagSawWhite(){switch(this.skipSpaces()){case F:this.closeTag();break;case I:break;default:this.fail("disallowed character in closing tag.")}}handleTextInRoot(){let{i:t,forbiddenState:s}=this;const{chunk:o,textHandler:n}=this;t:for(;;)switch(this.getCode()){case St:if(this.state=15,n!==void 0){const{text:a}=this,c=o.slice(t,this.prevI);a.length!==0?(n(a+c),this.text=""):c.length!==0&&n(c)}s=0;break t;case 38:this.state=14,this.entityReturnState=W,n!==void 0&&(this.text+=o.slice(t,this.prevI)),s=0;break t;case Qt:switch(s){case 0:s=1;break;case 1:s=2;break;case 2:break;default:throw new Error("impossible state")}break;case F:s===2&&this.fail('the string "]]>" is disallowed in char data.'),s=0;break;case lt:n!==void 0&&(this.text+=`${o.slice(t,this.prevI)}
10
10
  `),t=this.i,s=0;break;case I:n!==void 0&&(this.text+=o.slice(t));break t;default:s=0}this.forbiddenState=s}handleTextOutsideRoot(){let{i:t}=this;const{chunk:s,textHandler:o}=this;let n=!1;t:for(;;){const a=this.getCode();switch(a){case St:if(this.state=15,o!==void 0){const{text:c}=this,T=s.slice(t,this.prevI);c.length!==0?(o(c+T),this.text=""):T.length!==0&&o(T)}break t;case 38:this.state=14,this.entityReturnState=W,o!==void 0&&(this.text+=s.slice(t,this.prevI)),n=!0;break t;case lt:o!==void 0&&(this.text+=`${s.slice(t,this.prevI)}
11
- `),t=this.i;break;case I:o!==void 0&&(this.text+=s.slice(t));break t;default:z(a)||(n=!0)}}n&&(this.sawRoot||this.reportedTextBeforeRoot||(this.fail("text data outside of root node."),this.reportedTextBeforeRoot=!0),this.closedRoot&&!this.reportedTextAfterRoot&&(this.fail("text data outside of root node."),this.reportedTextAfterRoot=!0))}pushAttribNS(t,s){const{prefix:o,local:n}=this.qname(t),a={name:t,prefix:o,local:n,value:s};if(this.attribList.push(a),this.attributeHandler?.(a),o==="xmlns"){const c=s.trim();this.currentXMLVersion==="1.0"&&c===""&&this.fail("invalid attempt to undefine prefix in XML 1.0"),this.topNS[n]=c,ke(this,n,c)}else if(t==="xmlns"){const c=s.trim();this.topNS[""]=c,ke(this,"",c)}}pushAttribPlain(t,s){const o={name:t,value:s};this.attribList.push(o),this.attributeHandler?.(o)}end(){this.sawRoot||this.fail("document must contain a root element.");const{tags:t}=this;for(;t.length>0;){const o=t.pop();this.fail(`unclosed tag: ${o.name}`)}this.state!==0&&this.state!==W&&this.fail("unexpected end.");const{text:s}=this;return s.length!==0&&(this.textHandler?.(s),this.text=""),this._closed=!0,this.endHandler?.(),this._init(),this}resolve(t){let s=this.topNS[t];if(s!==void 0)return s;const{tags:o}=this;for(let n=o.length-1;n>=0;n--)if(s=o[n].ns[t],s!==void 0)return s;return s=this.ns[t],s!==void 0?s:this.opt.resolvePrefix?.(t)}qname(t){const s=t.indexOf(":");if(s===-1)return{prefix:"",local:t};const o=t.slice(s+1),n=t.slice(0,s);return(n===""||o===""||o.includes(":"))&&this.fail(`malformed name: ${t}.`),{prefix:n,local:o}}processAttribsNS(){const{attribList:t}=this,s=this.tag;{const{prefix:a,local:c}=this.qname(s.name);s.prefix=a,s.local=c;const T=s.uri=this.resolve(a)??"";a!==""&&(a==="xmlns"&&this.fail('tags may not have "xmlns" as prefix.'),T===""&&(this.fail(`unbound namespace prefix: ${JSON.stringify(a)}.`),s.uri=a))}if(t.length===0)return;const{attributes:o}=s,n=new Set;for(const a of t){const{name:c,prefix:T,local:S}=a;let x,w;T===""?(x=c==="xmlns"?Zt:"",w=c):(x=this.resolve(T),x===void 0&&(this.fail(`unbound namespace prefix: ${JSON.stringify(T)}.`),x=T),w=`{${x}}${S}`),n.has(w)&&this.fail(`duplicate attribute: ${w}.`),n.add(w),a.uri=x,o[c]=a}this.attribList=[]}processAttribsPlain(){const{attribList:t}=this,s=this.tag.attributes;for(const{name:o,value:n}of t)s[o]!==void 0&&this.fail(`duplicate attribute: ${o}.`),s[o]=n;this.attribList=[]}openTag(){this.processAttribs();const{tags:t}=this,s=this.tag;s.isSelfClosing=!1,this.openTagHandler?.(s),t.push(s),this.state=W,this.name=""}openSelfClosingTag(){this.processAttribs();const{tags:t}=this,s=this.tag;s.isSelfClosing=!0,this.openTagHandler?.(s),this.closeTagHandler?.(s),(this.tag=t[t.length-1]??null)===null&&(this.closedRoot=!0),this.state=W,this.name=""}closeTag(){const{tags:t,name:s}=this;if(this.state=W,this.name="",s==="")return this.fail("weird empty close tag."),void(this.text+="</>");const o=this.closeTagHandler;let n=t.length;for(;n-- >0;){const a=this.tag=t.pop();if(this.topNS=a.ns,o?.(a),a.name===s)break;this.fail("unexpected close tag.")}n===0?this.closedRoot=!0:n<0&&(this.fail(`unmatched closing tag: ${s}.`),this.text+=`</${s}>`)}parseEntity(t){if(t[0]!=="#"){const o=this.ENTITIES[t];return o!==void 0?o:(this.fail(this.isName(t)?"undefined entity.":"disallowed character in entity name."),`&${t};`)}let s=NaN;return t[1]==="x"&&/^#x[0-9a-f]+$/i.test(t)?s=parseInt(t.slice(2),16):/^#[0-9]+$/.test(t)&&(s=parseInt(t.slice(1),10)),this.isChar(s)?String.fromCodePoint(s):(this.fail("malformed character entity."),`&${t};`)}}var Ae,Tt;(Tt=Ae||(Ae={})).Events={XmlDecl:"xmldecl",Text:"text",ProcessingInstruction:"processinginstruction",Doctype:"doctype",Comment:"comment",OpenTagStart:"opentagstart",Attribute:"attribute",OpenTag:"opentag",CloseTag:"closetag",CDdata:"cdata",Error:"error",End:"end",Ready:"ready"},Tt.parseStream=async(i,t,s)=>{const o=new Ns({position:!1,...s});let n;if(t.onOpenTagStart&&o.on(Tt.Events.OpenTagStart,t.onOpenTagStart),t.onOpenTag&&o.on(Tt.Events.OpenTag,t.onOpenTag),t.onCloseTag&&o.on(Tt.Events.CloseTag,t.onCloseTag),t.onAttribute&&o.on(Tt.Events.Attribute,t.onAttribute),t.onText&&o.on(Tt.Events.Text,t.onText),t.onError&&o.on(Tt.Events.Error,t.onError),t.onEnd){t.onEnd;const a=()=>{n=t.onEnd()};o.on(Tt.Events.End,a)}for(;;){const{value:a,done:c}=await i.read();if(c)break;o.write(a)}return o.close(),n};const v=i=>i===!0||i==="1"||i==="on"||i==="true"||i!==!1&&i!=="0"&&i!=="off"&&i!=="false"&&null,P=i=>{const t=parseInt(i);return isNaN(t)?null:t},ct=i=>{const t=parseFloat(i);return isNaN(t)?null:t},A=null;class Rs{constructor(){this._registeredVisitors=new Map}registerVisitor(t){this._registeredVisitors.set(t.from,t)}createEventHandler(t,s,o){const n=this._registeredVisitors,a=[];let c=null,T=null,S=null,x=null;const w=[],D={key:null,source:t};let b=null,d=!1;const E=(y,m)=>{let V=S.attributes[y];if(m){if(Array.isArray(m)){for(let F=0;F<m.length;F++)if(V==null||(V=m[F](V),V==null))return}else if(V==null||(V=m(V),V==null))return}return V},f={getSource:()=>b.source,setSource:y=>{b.source=y},setKey:y=>{b.key=y},getFrom:()=>S,getAttribute:(y,m)=>E(y,m)??null,hasAttribute:y=>f.getAttribute(y)!==null,getParent:()=>w[w.length-2].source,getPath:()=>{const y=[];for(let m=0;m<a.length;m++)y.push(a[m].local);return y.join("\\")},parseAttribute:E,copyToObject:(y,m,V,F)=>{const q=E(F??m,V);q!==void 0&&(y[m]=q)},copyTo:(y,m,V)=>{const F=E(V??y,m);F!==void 0&&(b.source[y]=F)},warn:y=>{o?o?.(y):console.warn(y)}};return{onOpenTag:y=>{let m=y.name;const V=m.indexOf(":");V!==-1&&(m=m.slice(V+1));const F=n.get(m);if(c={local:m,visitor:F,tag:y,destination:null},d)return a.push(c),T=m,void(S=y);x=c?.visitor??null,F&&(b=a.length===0?D:x?.to!==null?{key:null,source:{}}:null,c.destination=b,b&&w.push(b)),a.push(c),T=m,S=y,d=x?.to===null,x?.openTag?.(f)},onCloseTag:y=>{let m=y.name;const V=m.indexOf(":");if(V!==-1&&(m=m.slice(V+1)),m!==T)throw new Error(`mismatch open/close tag: '${m}'/'${T}'`);d||x?.closeTag?.(f);const F=a.pop()??null;c=a[a.length-1]??null;const q=F?.destination;if(q){w.pop(),b=w[w.length-1]??D;const ht=F.visitor;ht&&ht.to&&q.source!==void 0&&(Array.isArray(ht.to)?b.source.push?b.source.push(q.source):o?.(`Unable to parse array for ${ht.from} at ${f.getPath()}`):q.key?b.source[q.key]=q.source:typeof ht.to=="string"&&(b.source[ht.to]=q.source))}T=c?.local??null,S=c?.tag??null,x=c?.visitor??null,d=!c?.destination},onText:y=>{x?.text?.(y,f)},onEnd:s}}}const ss=(i,t,s,o=null)=>{if(!i)return null;let n=i;n.startsWith("/")&&(n=n.substring(1));let a=o?.parsedRefs?.get(i);if(a!==void 0)return a;const c=t(n);if(!c)return null;let T=c.content;try{s&&(T=s(T))}catch(S){console.warn(S)}return o?.parsedRefs?.set(i,T),T},Pe=(i,t,s,o,n=null)=>{if(!i)return null;let a=i;a.startsWith("/")&&(a=a.substring(1));let c=n?.parsedRefs?.get(i);if(c!==void 0)return c;const T=t(a);if(!T)return null;const S=T.content;try{const x=new TextDecoder().decode(S),w=s.parseFromString(x,"text/xml"),D=o.convert(w,i,n);return n?.parsedRefs?.set(i,D),D}catch(x){console.warn(x)}return null},Ut=(i,t,s,o,n=null)=>{const a=new Map;let c=t.Directory[i];const T=c?c.length:0;for(let S=0;S<T;S++){const x=c[S];if(!x)continue;let w=x;w.startsWith("/")&&(w=w.substring(1));const D=Pe(w,b=>t.files[b],s,o,n);a.set(w,D)}return a},Ms=["lt1","dk1","lt2","dk2","accent1","accent2","accent3","accent4","accent5","accent6","hlink","folHlink"],De=(i,t="dk1")=>{let s;const o=i("auto");o===void 0||o!=="1"&&o!=="true"||(s=t);const n=i("indexed");n&&(s=`index${n}`);const a=i("rgb");a&&(s=a.toLowerCase(),a.length!==8||a.startsWith("FF")||(s="FF"+a.substring(2,a.length)));const c=i("theme");c&&(s=Ms[c]);let T=i("tint");if(T&&(s+=` ${u.T$1.AdjustmentType.ETint} ${parseFloat(T)}`),s)return s},ls=i=>i&&i.replace(/^\{([\s\S]+)\}$/,"$1"),cs=i=>i==="true"||i==="1";class Ft{static{this.Collapsed=1}static{this.CustomFormat=2}static{this.CustomHeight=4}static{this.Hidden=8}static{this.Ht=16}static{this.OutlineLevel=32}static{this.Ph=64}static{this.R=128}static{this.S=256}static{this.Spans=512}static{this.ThickBot=1024}static{this.ThickTop=2048}}const $s=(i,t,s)=>{if(i[0].value[0]===i[1].value[0])return t},is={colStart:0,colEnd:0,rowStart:0,rowEnd:0},js=Object.freeze(Object.defineProperty({__proto__:null,fromBufferXLSX:async(i,t)=>{const{password:s,onWarning:o,createWorkbookOptions:n={},...a}=t??{},c=Promise.resolve().then(()=>require("./B9GyERAqyIxdqS4D.cjs")),T=Promise.resolve().then(()=>require("./Dd7vDdIeQaFScMRQ.cjs"));let S=null;try{S=new DOMParser}catch{}let x=null;S||(x=Promise.resolve().then(()=>require("./wNoDw92hvq2txBki.cjs")).then(d=>d.i));let w=null,D=null,b=null;try{const d=await Promise.all([c,T,x]);w=d[0],D=d[1],b=d[2]}catch(d){throw new Error("Unable to load XLSX parser.",{cause:d})}try{const d=w.read(i,{type:"array",sheets:[],cellStyles:!1,bookFiles:!0});if(!d.Directory)throw new Error("Unable to parse as an Excel document. Try to save as '.xlsx' and try again.");d.Directory.richstructure=["/xl/richData/rdrichvaluestructure.xml"],d.Directory.richdata=["/xl/richData/rdrichvalue.xml"];const E=new D.FromOOXMLConverter,f=S??new b.DOMParser,y=n?.resources??new u.Rm,m=y.beginPersist(),V={},F=new Set,q=new Map;q.set("richTypes",[]);const ht=new Map,Ee=[],ne=O=>d.files[O],fe=(O,U)=>{const Y=O.lastIndexOf("/"),ut=O.substring(0,Y+1)+"_rels/"+O.substring(Y+1,O.length)+".rels";let dt=U.get(ut);return dt||(dt=((M,be,xe,we,Xt=null)=>{if(!M)return null;const tt=Pe(M,be,xe,we,Xt);if(!tt)return null;const et=new Map,bt=Object.keys(tt),Bt=bt.length;for(let xt=0;xt<Bt;xt++){const Wt=bt[xt],kt=tt[Wt];et.set(Wt,kt)}return et})(ut,ne,f,E,yt),U.set(ut,dt)),dt},ae=(O,U,Y,ut=ht)=>{let dt=fe(U,ut).get(O),M=dt?.target;if(!M)return null;if(dt.targetMode==="External")return dt.target;const be=U.lastIndexOf("/"),xe=U.substring(0,be+1);M.startsWith("/")||(M=xe+M),M=(tt=>{const et=tt.split(/\/+/);return et.reduce((bt,Bt,xt)=>(Bt==="."?bt.splice(xt,1):Bt===".."&&bt.splice(xt-1,2),bt),et).join("/")})(M);const we=E?.getVisitorParamsState().get("dxfs");let Xt=ut.get(M);if(!Xt)if(dt.type==="http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet"){const tt={};Xt=tt;const et=async()=>{const bt=((L,G,Kt,_,Q,Z,wt)=>{const h=new Rs,K=new u.He.TransposedBuilder;let H=null;h.registerVisitor({from:"autoFilter",to:"filter",openTag:e=>{e.copyTo("ref",A)}}),h.registerVisitor({from:"conditionalFormatting",to:{},openTag:e=>{const r=e.getParent();r.conditionals||(r.conditionals=[]),r.conditionals.push(e.getSource());const l=e.getAttribute("sqref");l&&(e.getSource().ref=l.split(" ").join(",")),e.copyTo("pivot",v)},closeTag:e=>{const r=e.getSource();if(r.rule){const l=Object.keys(r.rule);for(let p=0;p<l.length;p++){const C=l[p];C!=="rule"&&(r[C]=r.rule[C])}}delete r.rule}}),h.registerVisitor({from:"cfRule",to:"rule",openTag:e=>{const r=e.getParent();e.copyToObject(r,"type",A),e.copyToObject(r,"priority",P),e.copyToObject(r,"stopIfTrue",v);const l=e.getAttribute("dxfId",P);if(l!==null){let p=_?.get(l);p||(Z?.(`Unable to load conditional color. Invalid dxfI: '${l}' at '${e.getPath()}'.`),p={}),r.style=p}e.copyToObject(r,"aboveAverage",v),e.copyToObject(r,"equalAverage",v),e.copyToObject(r,"stdDev",P),e.copyToObject(r,"bottom",v),e.copyToObject(r,"percent",v),e.copyToObject(r,"rank",P),e.copyToObject(r,"operator",A),e.copyToObject(r,"text",A),e.copyToObject(r,"timePeriod",A)}}),h.registerVisitor({from:"colorScale",to:"colorScale"}),h.registerVisitor({from:"dataBar",to:"dataBar",openTag:e=>{e.copyTo("maxLength",P),e.copyTo("minLength",P),e.copyTo("showValue",v)}}),h.registerVisitor({from:"iconSet",to:"iconSet",openTag:e=>{e.copyTo("iconSet",A),e.copyTo("reverse",v),e.copyTo("showValue",v)}}),h.registerVisitor({from:"formula",to:null,text:(e,r)=>{const l=r.getParent();let p=l.formulas;p||(p=[],l.formulas=p),p.push(e)}}),h.registerVisitor({from:"cfvo",to:{},openTag:e=>{const r=e.getParent();r.conditions||(r.conditions=[]),r.conditions.push(e.getSource()),e.copyTo("type",A),e.copyTo("value",ct,"val"),e.copyTo("gte",v)}}),h.registerVisitor({from:"color",to:{},openTag:e=>{const r=e.getParent();r.colors||(r.colors=[]);const l=De(p=>e.getAttribute(p));r.colors.push(l)}}),h.registerVisitor({from:"filterColumn",to:"filterColumn",openTag:e=>{const r=e.getParent();r.fields||(r.fields=[]),r.fields.push(e.getSource()),e.copyTo("offset",P,"colId"),e.copyTo("hiddenButton",v),e.copyTo("showButton",v)}}),h.registerVisitor({from:"colorFilter",to:"colorFilter",openTag:e=>{const r=e.getParent();r.criteria||(r.criteria=[]),r.criteria.push(e.getSource()),e.getSource().type=u.gd.Type.Color,e.copyTo("cellColor",v),e.copyTo("styleId",P,"dxfId")}}),h.registerVisitor({from:"dynamicFilter",to:"dynamicFilter",openTag:e=>{const r=e.getParent();r.criteria||(r.criteria=[]),r.criteria.push(e.getSource()),e.getSource().type=u.gd.Type.Dynamic,e.copyTo("dynamicType",A,"type"),e.copyTo("val",ct),e.copyTo("maxVal",ct,"maxVal")}}),h.registerVisitor({from:"iconFilter",to:"iconFilter",openTag:e=>{const r=e.getParent();r.criteria||(r.criteria=[]),r.criteria.push(e.getSource()),e.getSource().type=u.gd.Type.Icon,e.copyTo("iconId",P),e.copyTo("iconSet",A)}}),h.registerVisitor({from:"top10",to:"top10",openTag:e=>{const r=e.getParent();r.criteria||(r.criteria=[]),r.criteria.push(e.getSource()),e.getSource().type=u.gd.Type.Top10,e.copyTo("filterVal",ct),e.copyTo("percent",v),e.copyTo("top",v),e.copyTo("val",ct)}}),h.registerVisitor({from:"filters",to:"filters",openTag:e=>{const r=e.getParent();r.criteria||(r.criteria=[]),r.criteria.push(e.getSource()),e.getSource().type=u.gd.Type.Items,e.copyTo("blank",v),e.copyTo("calendarType",A)}}),h.registerVisitor({from:"dateGroupItem",to:"dateGroupItem",openTag:e=>{const r=e.getParent();r.dateGroups||(r.dateGroups=[]),r.dateGroups.push(e.getSource()),e.copyTo("group",A,"dateTimeGrouping"),e.copyTo("day",P),e.copyTo("hour",P),e.copyTo("minute",P),e.copyTo("month",P),e.copyTo("second",P),e.copyTo("year",P)}}),h.registerVisitor({from:"filter",to:"filter",openTag:e=>{const r=e.getParent();r.items||(r.items=[]),r.items.push(e.getAttribute("val",ct))}}),h.registerVisitor({from:"customFilters",to:"customFilters",openTag:e=>{const r=e.getParent();r.criteria||(r.criteria=[]),r.criteria.push(e.getSource()),e.getSource().type=u.gd.Type.Custom,e.copyTo("and",v)}}),h.registerVisitor({from:"customFilter",to:"customFilter",openTag:e=>{const r=e.getParent();r.filters||(r.filters=[]),r.filters.push(e.getSource()),e.copyTo("operator",A),e.copyTo("value",ct,"val")}}),h.registerVisitor({from:"sortState",to:"sort",openTag:e=>{e.copyTo("ref",A)}}),h.registerVisitor({from:"sortCondition",to:"sortCondition",openTag:e=>{const r=e.getParent();r.fields||(r.fields=[]);const l=e.getSource();r.fields.push(l),e.copyTo("sortOn",A,"sortBy"),e.copyTo("dxfId",A,"sortBy"),e.copyTo("iconSet",A),e.copyTo("customList",A);const p=e.getAttribute("ref");if(p){const C=u.no.fastStringToRange(p,is).colStart,pt=u.no.fastStringToRange(r.ref,is),rt=pt.colStart;l.offset=pt?C-rt:C}l.reverse=e.getAttribute("descending",v)??!1}}),h.registerVisitor({from:"AlternateContent",to:null});const ue=e=>{H=e.getSource(),e.copyTo("topLeft",A,"topLeftCell");const r=cs(e.getAttribute("defaultGridColor")),l=e.getAttribute("colorId");l===null||r||(e.getSource().gridLineColor="index"+parseFloat(l)),e.copyTo("showZeros",v),e.copyTo("showFormulas",v),e.copyTo("zoomScale",P),e.copyTo("showRowHeaders",v,"showRowColHeaders"),e.copyTo("showColumnHeaders",v,"showRowColHeaders"),e.copyTo("showRowGridlines",v,"showGridLines"),e.copyTo("showColumnGridlines",v,"showGridLines")};h.registerVisitor({from:"sheetView",to:"view",openTag:e=>{ue(e)},closeTag:()=>{H=null}}),h.registerVisitor({from:"customSheetViews",to:"customSheetViews",openTag:e=>{e.setSource([])}}),h.registerVisitor({from:"customSheetView",to:[],openTag:e=>{ue(e)},closeTag:()=>{H=null}}),h.registerVisitor({from:"selection",to:"selection",openTag:e=>{if(!H)return;e.copyTo("cell",A,"activeCell"),e.copyTo("rangeIndex",P,"activeCellId");const r=e.getAttribute("activeCell"),l=e.getAttribute("sqref");l&&l!==r&&(e.getSource().ranges=l.split(" "))}}),h.registerVisitor({from:"pane",to:"pane",openTag:e=>{if(H&&e.getAttribute("state")==="frozen"){const r={};H.freezePanes=r,e.copyToObject(r,"topLeft",A,"topLeftCell");const l=H.topLeft?u.no.fastStringToCell(H.topLeft):{colIndex:0,rowIndex:0},p={colIndex:0,rowIndex:0};e.copyToObject(p,"colIndex",P,"xSplit"),e.copyToObject(p,"rowIndex",P,"ySplit");const C={colIndex:l.colIndex+p.colIndex,rowIndex:l.rowIndex+p.rowIndex};r.coords=u.no.cellToString(C)}}}),h.registerVisitor({from:"tabColor",to:null,openTag:e=>{const r=De(l=>e.getAttribute(l));r&&(L.tabColor=r)}}),h.registerVisitor({from:"pageSetUpPr",to:"pageSetUpPr",openTag:e=>{}}),h.registerVisitor({from:"outlinePr",to:"outlinePr",openTag:e=>{}}),h.registerVisitor({from:"pageMargins",to:"pageMargins",openTag:e=>{}}),h.registerVisitor({from:"pageSetup",to:"pageSetup",openTag:e=>{}}),h.registerVisitor({from:"printOptions",to:"printOptions",openTag:e=>{}}),h.registerVisitor({from:"mergeCells",to:"merges",openTag:e=>{e.setSource([])}}),h.registerVisitor({from:"mergeCell",to:[],openTag:e=>{const r=e.getAttribute("ref");e.setSource(r)}}),h.registerVisitor({from:"hyperlinks",to:"hyperlinks",openTag:e=>{e.setSource([])}}),h.registerVisitor({from:"hyperlink",to:[],openTag:e=>{const r=e.getAttribute("r:id"),l=e.getAttribute("ref");if(!l)return void console.warn("No ref found for hyperlink");e.setKey(l);let p=r?G(r):"";if(typeof p!="string")return void console.warn("Invalid address ",p);const C=e.getAttribute("location");p.endsWith("\\")&&(p=p.substring(0,p.length-1));const pt=e.getAttribute("location");if(pt&&(C&&C!==pt&&console.warn("display and location are different",C,pt),p+="#"+pt),!p)return void console.warn("No address found for hyperlink. r:id",r);let rt;const At=e.getAttribute("tooltip");rt=At?{address:p,tooltip:At}:p,e.setSource({r:l,v:rt})}}),h.registerVisitor({from:"drawing",to:"movables",openTag:e=>{const r=e.getAttribute("r:id");if(!r)return;const l=G(r);l?e.setSource(l.movables):console.warn("no drawing found for rId",r)}}),h.registerVisitor({from:"tableParts",to:"tables",openTag:e=>{e.setSource([])}}),h.registerVisitor({from:"tablePart",to:[],openTag:e=>{const r=e.getAttribute("r:id");if(!r)return;const l=G(r);l?e.setSource(l):console.warn("no table found for rId",r)}}),h.registerVisitor({from:"worksheet",to:"worksheet",openTag:e=>{}}),h.registerVisitor({from:"sheetProtection",to:"protection",openTag:e=>{let r=!1;if(e.hasAttribute("sheet")&&v(e.getAttribute("sheet"))&&(r=!0),!r)return void e.setSource(void 0);const l=C=>C===!0||C==="1"||C==="on"||C==="true"||C===!1||C==="0"||C==="off"||C==="false"||null;e.copyTo("autoFilter",l),e.copyTo("deleteColumns",l),e.copyTo("formatCells",l),e.copyTo("formatColumns",l),e.copyTo("formatRows",l),e.copyTo("insertColumns",l),e.copyTo("insertHyperlinks",l),e.copyTo("insertRows",l),e.copyTo("objects",l),e.copyTo("pivotTables",l),e.copyTo("scenarios",l),e.copyTo("selectUnlockedCells",l),e.copyTo("selectUnlockedCells",l),e.copyTo("sort",l);const p={};e.copyToObject(p,"hash",A,"hashValue"),e.copyToObject(p,"algorithm",A,"algorithmName"),e.copyToObject(p,"salt",A,"saltValue"),e.copyToObject(p,"spinCount",P),Object.keys(p).length>0&&(e.getSource().password=p)}}),h.registerVisitor({from:"protectedRanges",to:"protectedRanges",openTag:e=>{e.setSource({})}}),h.registerVisitor({from:"protectedRange",to:{},openTag:e=>{const r=e.getAttribute("sqref");e.setKey(r),e.copyTo("name"),e.copyTo("securityDescriptor");const l={};e.copyToObject(l,"hash",A,"hashValue"),e.copyToObject(l,"algorithm",A,"algorithmName"),e.copyToObject(l,"salt",A,"saltValue"),e.copyToObject(l,"spinCount",P),Object.keys(l).length>0&&(e.getSource().password=l)}}),h.registerVisitor({from:"sheetFormatPr",to:"sheetFormatPr",openTag:e=>{e.copyToObject(L,"defaultColSize",ct,"defaultColWidth"),e.copyToObject(L,"outlineLevelCol",P,"outlineLevelCol");const r=e.getAttribute("customHeight");r!=="1"&&r!=="true"||e.copyToObject(L,"defaultRowSize",ct,"defaultRowHeight"),e.copyToObject(L,"outlineLevelRow",P,"outlineLevelRow")}}),h.registerVisitor({from:"cols",to:"cols",openTag:e=>{e.setSource([])}}),h.registerVisitor({from:"col",to:[],openTag:e=>{e.copyTo("min",r=>parseInt(r)-1),e.copyTo("max",r=>parseInt(r)-1),e.copyTo("sz",ct,"width"),e.copyTo("cs",v,"customWidth"),e.copyTo("h",v,"hidden"),e.copyTo("l",P,"outlineLevel"),e.copyTo("s",P,"style")}}),h.registerVisitor({from:"oleObjects",to:null,openTag:e=>{e.warn("'OLE Objects' are not supported.")}});let Jt=null;const ms={onOpenTag:e=>{Jt===null&&(Jt="")},onText:e=>{Jt+=e},onEnd:()=>{const e=Kt(Jt);return Jt=null,e},onError:e=>{}};return((e,r,l,p,C,pt)=>{let rt=!1,At=!1,qt=[],_t=!1,Pt=null,Yt=null,de=null,nt=null,Me=null,$e=null;const Ts=pt?.get("richData")??[],je=u.no.normalizeA1ToR1C1,He=u.Kt.createConflatingRanges(),Fe=new Map,ve=[];let te=null;const Xe=u.Kt.createConflatingRanges();let ee,Dt=!1,B=-1,J=-1,gt=null,se=null;const Se=[];let Ce=null,Be=-2,ft=0,zt="",Et="",Ot="",It="",Vt="",Lt="",Nt="",We="",qe="",_e="",ze="",Ue="",Ge="",Qe="",mt=!0,Rt=null;return{...l,onEnd:()=>{Se.length>0&&(r.rows=Se);let g=He.done($s);const k=g.length;if(k>0){const $=new Array(k);for(let N=0;N<k;N++){const at=g[N],Mt=u.no.rangeToString(at),$t=at.value[1],ie=u.no.resolveRelativeToA1($t,at.rowStart,at.colStart);$[N]=[Mt,ie]}r.formulas=$}const st=Xe.done(!0),R=st.length;if(R>0){const $=new Array(R);for(let N=0;N<R;N++){const at=st[N],Mt=u.no.rangeToString(at);$[N]=Mt}r.volatile=$}if(ve.length>0&&(r.dynamicArray=[...ve]),qt.length>0){qt.sort(u.Kt.createRangeComparator(u.w.Orientation.Column));const $=[];let N=null,at=-1,Mt=-1,$t=-1,ie=-1,vt=null;const Ze=qt.length;Ze>0&&(N=qt[0],at=N.colStart,Mt=N.colEnd,$t=N.rowEnd,ie=N.value,$.push(N));for(let jt=1;jt<Ze;jt++)vt=qt[jt],ie!==vt.value||at!==vt.colStart||Mt!==vt.colEnd||$t+1!==vt.rowEnd?($.push(vt),N=vt,at=N.colStart,Mt=N.colEnd,$t=N.rowEnd,ie=N.value):($t=vt.rowEnd,N.rowEnd=$t);let Ke=[];for(let jt=0;jt<$.length;jt++){const oe=$[jt];Ke.push({r:{colStart:oe.colStart,colEnd:oe.colEnd,rowStart:oe.rowStart,rowEnd:oe.rowEnd},v:oe.value})}r.directStyles=Ke}const it=e.build();if(it){const $=it.tuples;r.data=$}l?.onEnd?.()},onOpenTag:g=>{let k=g.name;const st=k.indexOf(":");if(st!==-1&&(k=k.slice(st+1)),ee){const R=g.attributes;switch(k){case"v":At=!0;break;case"f":switch(R.t??null){case null:case"normal":_t=!0;break;case"shared":const it=R.si;Yt=R.ref,Pt=it;break;case"array":_t=!0,Yt=R.ref,te=[Yt,!1];break;case"datatable":_t=!0,Yt=R.ref,_t=!0}R.ca!==void 0&&Xe.append(B,J);break;case"is":return void(Dt=!0)}return void(Dt&&C?.onOpenTag(g))}if(rt){if(k==="c"){ee=g;const R=g.attributes.r;J=u.no.fastStringToCol(R);const it=g.attributes.t;it===void 0?se=null:(se=it,se==="str"&&(Dt=!0));let $=g.attributes.s;$!==void 0&&($=parseInt($),Rt&&Rt.value===$&&Rt.colEnd+1===J?Rt.colEnd=J:(Rt={colStart:J,rowStart:B,colEnd:J,rowEnd:B,value:$},qt.push(Rt)))}}else{if(k==="row"){rt=!0;const R=g.attributes.r;if(B=parseInt(R)-1,ft=0,Et=g.attributes.customHeight,Et!==void 0&&(ft|=Ft.CustomHeight),Et!==qe&&(mt=!0,qe=Et),zt=g.attributes.ht,zt!==void 0&&(ft|=Ft.Ht),zt!==We&&(mt=!0,We=zt),Ot=g.attributes.hidden,Ot!==void 0&&(ft|=Ft.Hidden),Ot!==_e&&(mt=!0,_e=Ot),Vt=g.attributes.s,Vt!==void 0&&(ft|=Ft.S),Vt!==Ue&&(mt=!0,Ue=Vt),It=g.attributes.customFormat,It!==void 0&&(ft|=Ft.CustomFormat),It!==ze&&(mt=!0,ze=It),Lt=g.attributes.outlineLevel,Lt!==void 0&&(ft|=Ft.OutlineLevel),Lt!==Ge&&(mt=!0,Ge=Lt),Nt=g.attributes.collapsed,Nt!==void 0&&(ft|=Ft.Collapsed),Nt!==Qe&&(mt=!0,Qe=Nt),ft!==0)if(Be+1!==B||mt){const it=Et!==void 0&&(Et==="1"||Et==="true"),$=It!==void 0&&(It==="1"||It==="true");Ce={min:B,max:B,sz:it&&zt!==void 0?parseFloat(zt):-1,csz:it,h:Ot!==void 0&&(Ot==="1"||Ot==="true"),s:it&&Vt!==void 0&&Vt!=="0"?parseInt(Vt):0,cs:$,l:Lt===void 0||Lt==="0"?0:parseInt(Lt),cl:Nt!==void 0&&(Nt==="1"||Nt==="true")},Se.push(Ce)}else Ce.max=B;return Be=B,void(mt=!1)}l?.onOpenTag(g)}},onCloseTag:g=>{if(ee){let k=g.name;const st=k.indexOf(":");if(st!==-1&&(k=k.slice(st+1)),Dt)if(k==="is"||k==="v"){const R=C?.onEnd();R!==null&&e.addValue(B,J,""+R)}else C?.onCloseTag?.(g);return At&&(At=!1),void(k==="c"&&(ee=null,Dt=!1))}if(rt)return rt=!1,void(Rt=null);l?.onCloseTag(g)},onText:g=>{if(g=g.trim(),At){switch(gt=null,se){case null:case"n":gt=parseFloat(g);break;case"b":gt=g==="1"||g==="true";break;case"s":gt=g;break;case"e":if(g==="#VALUE!"){const st=ee.attributes.vm;if(st!==void 0){const R=Ts[parseInt(st)-1];if(R&&R.isFormulaError){gt={t:u.M.Error,v:R.getCode()};break}}}const k=u.n.getBuiltInByLabel(g);k?gt={t:u.M.Error,v:k.getCode()}:(gt=g,p?.(`Unknown formula error '${g}' in cell ${u.no.cellToString({colIndex:J,rowIndex:B})}`));break;case"str":case"inlineStr":Dt=!0}gt!==null&&e.addValue(B,J,gt)}if(te&&(se==="e"&&(te[1]=!0),ve.push(te),te=null),Pt)if(Me===Pt)nt=$e;else{if(nt=Fe.get(Pt),!nt){const k=[];de=je(g,B,J,k),nt=[de,k,g],Fe.set(Pt,nt)}Me=Pt,$e=nt}if(_t){const k=[];de=je(g,B,J,k),nt=[de,k,g]}if(nt)return He.append(B,J,nt),nt=null,_t=!1,Pt=null,void(Yt=null);Dt?C?.onText(g):rt||l?.onText(g)}}})(K,L,h.createEventHandler(L,()=>{},Z),Z,ms,wt)})(tt,(L,G=!1)=>ae(L,M,G)??null,us,we,0,L=>{o&&(L=M+": "+L,o?.(L))},q),Bt=ss(M,ne),xt=await(async(L,G=8388608)=>{await(async()=>{if(typeof ReadableStream>"u")if(typeof window>"u"){const{ReadableStream:Z}=await Promise.resolve().then(()=>require("./cOAjfOdF1cb-xgQG.cjs"));globalThis.ReadableStream=Z}else console.warn("Browser does not support ReadableStream; consider loading a polyfill.")})();const Kt=new TextDecoder("utf-8");let _=0;const Q=L instanceof Uint8Array?L:new Uint8Array(L);return new ReadableStream({pull(Z){if(_>=Q.byteLength)return void Z.close();const wt=Q.subarray(_,Math.min(_+G,Q.byteLength)),h=Kt.decode(wt,{stream:_+G<Q.byteLength});Z.enqueue(h),_+=wt.length}}).getReader()})(Bt);try{await Ae.parseStream(xt,bt,{xmlns:!1})}catch(L){throw console.warn(`Error parsing sheet: '${M}'`,L),new Error(`Error parsing sheet: '${M}'`,{cause:L})}const Wt=fe(M,ut);let kt,Re=new Map;if(Wt){const L="http://schemas.microsoft.com/office/2017/10/relationships/threadedComment";let G;Wt.forEach((_,Q)=>{_.type===L&&(kt=ae(Q,M,!1,ut)?.comments,kt&&kt.forEach(Z=>{Re.set(Z.id,Z)}))});const Kt="http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments";if(Wt.forEach((_,Q)=>{_.type===Kt&&(G=ae(Q,M,!1,ut))}),G||kt){const _=kt??[],Q=G?.comments;if(Q){const Z=G?.authors;for(let wt=0;wt<Q.length;wt++){const h=Q[wt];let K=h.authorId!==void 0?Z[h.authorId]:void 0;if((!K||K.startsWith("tc="))&&(K=ls(K.substring(3)),Re.has(K)))continue;let H=ce.get(K);H||(H=Ve.get(K)),H||(H={id:u.Yt.uuidV4(),displayName:K},Ve.set(H.displayName,H),ce.set(H.id,H)),K=H?.id??null;const ue={id:u.Yt.uuidV4(),personId:K,ref:h.ref,done:!1,asNote:!0,content:h.content};_.push(ue)}}tt.comments=_}}};Ee.push(et())}else Xt=Y?ss(M,ne,tt=>{const et=y.add({buffer:tt});return et.addReference(V),F.add(et),m.toResourceId(et)},yt):Pe(M,ne,f,E,yt);return Xt},yt={paramMap:q,getRefs:fe,getRef:ae,parsedRefs:ht,onWarning:o,addPerson:O=>null},le=[];let me=0;d.Strings&&(me=parseInt(d.Strings.Unique??d.Strings.length??0));const hs=d.Strings??[];for(let O=0;O<me;O++)le.push(hs[O]?.t??"");const Oe=new Map;let Ie=me;const us=O=>{const U=Oe.get(O);if(U!==void 0)return U;const Y=Ie;return Oe.set(O,Ie++),le.push(O),Y},ce=(Ut("richstructure",d,f,E,yt),Ut("richdata",d,f,E,yt),new Map),Ve=new Map,Le=Ut("people",d,f,E);let Ct=null;if(Le.size>0&&(Ct=Le.entries().next()?.value?.[1]?.persons,Ct)){const O=Ct.length;for(let U=0;U<O;U++){const Y=Ct[U];ce.set(Y.id,Y),ce.set(Y.displayName,Y)}}const Te=Ut("themes",d,f,E,yt);let Ne=null;if(Te&&Te.entries){let O=Te.entries().next();O?.value?.[1]&&(Ne=O.value[1])}const ds=new u.Bl(Ne);let he=Ut("styles",d,f,E,yt).entries().next()?.value[1];he&&(he=JSON.parse(u.te(he)));const ps=Ut("workbooks",d,f,E,yt);await Promise.all(Ee);const ye={...ps.entries().next().value[1],styles:he,theme:ds.toJSON()};le.length>0&&(ye.strings=le),Ct&&Ct.length>0&&(ye.people=Ct);const gs={...n,resources:y,json:ye},fs=new u.Iy(gs);return F.forEach(O=>{O.deleteReference(V)}),m.endPersist(),fs}catch(d){let E="Unable to parse XLSX.";throw d instanceof u.ne&&(E="Unable to open XLSX. There are too many rows or columns."),new Error(E,{cause:d})}},toBufferXLSX:async(i,t)=>{const s=await Promise.resolve().then(()=>require("./B9GyERAqyIxdqS4D.cjs")),o=await i.toJSON(!0),n=s.utils.book_new();for(let a=0;a<o.sheets.length;a++){const c=o.sheets[a],T=s.utils.json_to_sheet([{}]);s.utils.book_append_sheet(n,T,c.name);const S=c.sheet,x=i.getSheetAt(a),w=x.getUsedRange();if(w?(T["!ref"]=w.getA1(),w.forEach((D,b)=>{const d={t:"z"},E=b.getCell().getStyle();if(!E.isNormal()){let f=E.getNumberFormat();f!==u.Pt.Type.General&&(f===u.Pt.Type.ShortDate?f="m/d/yyyy":f===u.Pt.Type.MediumDate?f="d-mmm-yy":f===u.Pt.Type.LongDate?f="[$-x-sysdate]dddd, mmmm dd, yyyy":f===u.Pt.Type.ShortTime?f="h:mm":f===u.Pt.Type.MediumTime?f="h:mm AM/PM":f===u.Pt.Type.LongTime&&(f="h:mm:ss AM/PM"),d.z=f)}if(D!==null)switch(b.getType()){case u.M.Number:d.t="n",d.v=D;break;case u.M.String:d.t="s",d.v=D;break;case u.M.Boolean:d.t="b",d.v=D;break;case u.M.Error:d.t="e",d.v=D.toString();case u.M.RichData:}T[b.getA1()]=d})):T["!ref"]="A1:A1",S.merges?.length>0){const D=[];T["!merges"]=D;for(let b=0;b<S.merges.length;b++)D.push(s.utils.decode_range(S.merges[b]))}if(S.cols?.length>0){const D=[];T["!cols"]=D;const b=S.cols,d={width:S.defaultColSize??x.getColumnWidthAsFontUnit(x.getColumnHeaders().getDefaultSize())};for(let E=0;E<b.length;E++){const f=b[E];for(let m=D.length;m<=f.min-1;m++)D.push(d);const y={};f.sz!==void 0&&(y.width=f.sz),f.h!==void 0&&(y.hidden=f.h),f.l!==void 0&&(y.level=f.l);for(let m=f.min;m<=f.max;m++)D.push(y)}}}return s.write(n,{type:"array",bookType:"xlsx"}),s.write(n,{type:"array",bookType:"xlsx"})}},Symbol.toStringTag,{value:"Module"}));exports.a=i=>parseFloat(i)/1e3,exports.b=cs,exports.c=i=>i?u.Yt.roundAccurately(parseFloat(i)/9525,1):null,exports.d=De,exports.i=js,exports.p=i=>parseFloat(i)/6e4,exports.r=ls,exports.t=i=>i?u.Yt.roundAccurately(parseFloat(i)/12700,4):null;
11
+ `),t=this.i;break;case I:o!==void 0&&(this.text+=s.slice(t));break t;default:z(a)||(n=!0)}}n&&(this.sawRoot||this.reportedTextBeforeRoot||(this.fail("text data outside of root node."),this.reportedTextBeforeRoot=!0),this.closedRoot&&!this.reportedTextAfterRoot&&(this.fail("text data outside of root node."),this.reportedTextAfterRoot=!0))}pushAttribNS(t,s){const{prefix:o,local:n}=this.qname(t),a={name:t,prefix:o,local:n,value:s};if(this.attribList.push(a),this.attributeHandler?.(a),o==="xmlns"){const c=s.trim();this.currentXMLVersion==="1.0"&&c===""&&this.fail("invalid attempt to undefine prefix in XML 1.0"),this.topNS[n]=c,ke(this,n,c)}else if(t==="xmlns"){const c=s.trim();this.topNS[""]=c,ke(this,"",c)}}pushAttribPlain(t,s){const o={name:t,value:s};this.attribList.push(o),this.attributeHandler?.(o)}end(){this.sawRoot||this.fail("document must contain a root element.");const{tags:t}=this;for(;t.length>0;){const o=t.pop();this.fail(`unclosed tag: ${o.name}`)}this.state!==0&&this.state!==W&&this.fail("unexpected end.");const{text:s}=this;return s.length!==0&&(this.textHandler?.(s),this.text=""),this._closed=!0,this.endHandler?.(),this._init(),this}resolve(t){let s=this.topNS[t];if(s!==void 0)return s;const{tags:o}=this;for(let n=o.length-1;n>=0;n--)if(s=o[n].ns[t],s!==void 0)return s;return s=this.ns[t],s!==void 0?s:this.opt.resolvePrefix?.(t)}qname(t){const s=t.indexOf(":");if(s===-1)return{prefix:"",local:t};const o=t.slice(s+1),n=t.slice(0,s);return(n===""||o===""||o.includes(":"))&&this.fail(`malformed name: ${t}.`),{prefix:n,local:o}}processAttribsNS(){const{attribList:t}=this,s=this.tag;{const{prefix:a,local:c}=this.qname(s.name);s.prefix=a,s.local=c;const T=s.uri=this.resolve(a)??"";a!==""&&(a==="xmlns"&&this.fail('tags may not have "xmlns" as prefix.'),T===""&&(this.fail(`unbound namespace prefix: ${JSON.stringify(a)}.`),s.uri=a))}if(t.length===0)return;const{attributes:o}=s,n=new Set;for(const a of t){const{name:c,prefix:T,local:S}=a;let x,w;T===""?(x=c==="xmlns"?Zt:"",w=c):(x=this.resolve(T),x===void 0&&(this.fail(`unbound namespace prefix: ${JSON.stringify(T)}.`),x=T),w=`{${x}}${S}`),n.has(w)&&this.fail(`duplicate attribute: ${w}.`),n.add(w),a.uri=x,o[c]=a}this.attribList=[]}processAttribsPlain(){const{attribList:t}=this,s=this.tag.attributes;for(const{name:o,value:n}of t)s[o]!==void 0&&this.fail(`duplicate attribute: ${o}.`),s[o]=n;this.attribList=[]}openTag(){this.processAttribs();const{tags:t}=this,s=this.tag;s.isSelfClosing=!1,this.openTagHandler?.(s),t.push(s),this.state=W,this.name=""}openSelfClosingTag(){this.processAttribs();const{tags:t}=this,s=this.tag;s.isSelfClosing=!0,this.openTagHandler?.(s),this.closeTagHandler?.(s),(this.tag=t[t.length-1]??null)===null&&(this.closedRoot=!0),this.state=W,this.name=""}closeTag(){const{tags:t,name:s}=this;if(this.state=W,this.name="",s==="")return this.fail("weird empty close tag."),void(this.text+="</>");const o=this.closeTagHandler;let n=t.length;for(;n-- >0;){const a=this.tag=t.pop();if(this.topNS=a.ns,o?.(a),a.name===s)break;this.fail("unexpected close tag.")}n===0?this.closedRoot=!0:n<0&&(this.fail(`unmatched closing tag: ${s}.`),this.text+=`</${s}>`)}parseEntity(t){if(t[0]!=="#"){const o=this.ENTITIES[t];return o!==void 0?o:(this.fail(this.isName(t)?"undefined entity.":"disallowed character in entity name."),`&${t};`)}let s=NaN;return t[1]==="x"&&/^#x[0-9a-f]+$/i.test(t)?s=parseInt(t.slice(2),16):/^#[0-9]+$/.test(t)&&(s=parseInt(t.slice(1),10)),this.isChar(s)?String.fromCodePoint(s):(this.fail("malformed character entity."),`&${t};`)}}var Ae,Tt;(Tt=Ae||(Ae={})).Events={XmlDecl:"xmldecl",Text:"text",ProcessingInstruction:"processinginstruction",Doctype:"doctype",Comment:"comment",OpenTagStart:"opentagstart",Attribute:"attribute",OpenTag:"opentag",CloseTag:"closetag",CDdata:"cdata",Error:"error",End:"end",Ready:"ready"},Tt.parseStream=async(i,t,s)=>{const o=new Ns({position:!1,...s});let n;if(t.onOpenTagStart&&o.on(Tt.Events.OpenTagStart,t.onOpenTagStart),t.onOpenTag&&o.on(Tt.Events.OpenTag,t.onOpenTag),t.onCloseTag&&o.on(Tt.Events.CloseTag,t.onCloseTag),t.onAttribute&&o.on(Tt.Events.Attribute,t.onAttribute),t.onText&&o.on(Tt.Events.Text,t.onText),t.onError&&o.on(Tt.Events.Error,t.onError),t.onEnd){t.onEnd;const a=()=>{n=t.onEnd()};o.on(Tt.Events.End,a)}for(;;){const{value:a,done:c}=await i.read();if(c)break;o.write(a)}return o.close(),n};const v=i=>i===!0||i==="1"||i==="on"||i==="true"||i!==!1&&i!=="0"&&i!=="off"&&i!=="false"&&null,D=i=>{const t=parseInt(i);return isNaN(t)?null:t},ct=i=>{const t=parseFloat(i);return isNaN(t)?null:t},A=null;class Rs{constructor(){this._registeredVisitors=new Map}registerVisitor(t){this._registeredVisitors.set(t.from,t)}createEventHandler(t,s,o){const n=this._registeredVisitors,a=[];let c=null,T=null,S=null,x=null;const w=[],E={key:null,source:t};let b=null,d=!1;const P=(y,m)=>{let V=S.attributes[y];if(m){if(Array.isArray(m)){for(let H=0;H<m.length;H++)if(V==null||(V=m[H](V),V==null))return}else if(V==null||(V=m(V),V==null))return}return V},f={getSource:()=>b.source,setSource:y=>{b.source=y},setKey:y=>{b.key=y},getFrom:()=>S,getAttribute:(y,m)=>P(y,m)??null,hasAttribute:y=>f.getAttribute(y)!==null,getParent:()=>w[w.length-2].source,getPath:()=>{const y=[];for(let m=0;m<a.length;m++)y.push(a[m].local);return y.join("\\")},parseAttribute:P,copyToObject:(y,m,V,H)=>{const q=P(H??m,V);q!==void 0&&(y[m]=q)},copyTo:(y,m,V)=>{const H=P(V??y,m);H!==void 0&&(b.source[y]=H)},warn:y=>{o?o?.(y):console.warn(y)}};return{onOpenTag:y=>{let m=y.name;const V=m.indexOf(":");V!==-1&&(m=m.slice(V+1));const H=n.get(m);if(c={local:m,visitor:H,tag:y,destination:null},d)return a.push(c),T=m,void(S=y);x=c?.visitor??null,H&&(b=a.length===0?E:x?.to!==null?{key:null,source:{}}:null,c.destination=b,b&&w.push(b)),a.push(c),T=m,S=y,d=x?.to===null,x?.openTag?.(f)},onCloseTag:y=>{let m=y.name;const V=m.indexOf(":");if(V!==-1&&(m=m.slice(V+1)),m!==T)throw new Error(`mismatch open/close tag: '${m}'/'${T}'`);d||x?.closeTag?.(f);const H=a.pop()??null;c=a[a.length-1]??null;const q=H?.destination;if(q){w.pop(),b=w[w.length-1]??E;const ht=H.visitor;ht&&ht.to&&q.source!==void 0&&(Array.isArray(ht.to)?b.source.push?b.source.push(q.source):o?.(`Unable to parse array for ${ht.from} at ${f.getPath()}`):q.key?b.source[q.key]=q.source:typeof ht.to=="string"&&(b.source[ht.to]=q.source))}T=c?.local??null,S=c?.tag??null,x=c?.visitor??null,d=!c?.destination},onText:y=>{x?.text?.(y,f)},onEnd:s}}}const ss=(i,t,s,o=null)=>{if(!i)return null;let n=i;n.startsWith("/")&&(n=n.substring(1));let a=o?.parsedRefs?.get(i);if(a!==void 0)return a;const c=t(n);if(!c)return null;let T=c.content;try{s&&(T=s(T))}catch(S){console.warn(S)}return o?.parsedRefs?.set(i,T),T},De=(i,t,s,o,n=null)=>{if(!i)return null;let a=i;a.startsWith("/")&&(a=a.substring(1));let c=n?.parsedRefs?.get(i);if(c!==void 0)return c;const T=t(a);if(!T)return null;const S=T.content;try{const x=new TextDecoder().decode(S),w=s.parseFromString(x,"text/xml"),E=o.convert(w,i,n);return n?.parsedRefs?.set(i,E),E}catch(x){console.warn(x)}return null},Ut=(i,t,s,o,n=null)=>{const a=new Map;let c=t.Directory[i];const T=c?c.length:0;for(let S=0;S<T;S++){const x=c[S];if(!x)continue;let w=x;w.startsWith("/")&&(w=w.substring(1));const E=De(w,b=>t.files[b],s,o,n);a.set(w,E)}return a},$s=["lt1","dk1","lt2","dk2","accent1","accent2","accent3","accent4","accent5","accent6","hlink","folHlink"],Ee=(i,t="dk1")=>{let s;const o=i("auto");o===void 0||o!=="1"&&o!=="true"||(s=t);const n=i("indexed");n&&(s=`index${n}`);const a=i("rgb");a&&(s=a.toLowerCase(),a.length!==8||a.startsWith("FF")||(s="FF"+a.substring(2,a.length)));const c=i("theme");c&&(s=$s[c]);let T=i("tint");if(T&&(s+=` ${u.T$1.AdjustmentType.ETint} ${parseFloat(T)}`),s)return s},ls=i=>i&&i.replace(/^\{([\s\S]+)\}$/,"$1"),cs=i=>i==="true"||i==="1";class Ht{static{this.Collapsed=1}static{this.CustomFormat=2}static{this.CustomHeight=4}static{this.Hidden=8}static{this.Ht=16}static{this.OutlineLevel=32}static{this.Ph=64}static{this.R=128}static{this.S=256}static{this.Spans=512}static{this.ThickBot=1024}static{this.ThickTop=2048}}const Ms=(i,t,s)=>{if(i[0].value[0]===i[1].value[0])return t},is={colStart:0,colEnd:0,rowStart:0,rowEnd:0},Fs=Object.freeze(Object.defineProperty({__proto__:null,fromBufferXLSX:async(i,t)=>{const{password:s,onWarning:o,createWorkbookOptions:n={},...a}=t??{},c=Promise.resolve().then(()=>require("./Cj9vxBt4_rKsQNb0.cjs")),T=Promise.resolve().then(()=>require("./aIICSjNBKiOkNiwu.cjs"));let S=null;try{S=new DOMParser}catch{}let x=null;S||(x=Promise.resolve().then(()=>require("./emGp26D9pBqQifHC.cjs")).then(d=>d.i));let w=null,E=null,b=null;try{const d=await Promise.all([c,T,x]);w=d[0],E=d[1],b=d[2]}catch(d){throw new Error("Unable to load XLSX parser.",{cause:d})}try{const d=w.read(i,{type:"array",sheets:[],cellStyles:!1,bookFiles:!0});if(!d.Directory)throw new Error("Unable to parse as an Excel document. Try to save as '.xlsx' and try again.");d.Directory.richstructure=["/xl/richData/rdrichvaluestructure.xml"],d.Directory.richdata=["/xl/richData/rdrichvalue.xml"];const P=new E.FromOOXMLConverter,f=S??new b.DOMParser,y=n?.resources??new u.Um,m=y.beginPersist(),V={},H=new Set,q=new Map;q.set("richTypes",[]);const ht=new Map,Pe=[],ne=O=>d.files[O],fe=(O,U)=>{const Y=O.lastIndexOf("/"),ut=O.substring(0,Y+1)+"_rels/"+O.substring(Y+1,O.length)+".rels";let dt=U.get(ut);return dt||(dt=(($,be,xe,we,Xt=null)=>{if(!$)return null;const tt=De($,be,xe,we,Xt);if(!tt)return null;const et=new Map,bt=Object.keys(tt),Bt=bt.length;for(let xt=0;xt<Bt;xt++){const Wt=bt[xt],kt=tt[Wt];et.set(Wt,kt)}return et})(ut,ne,f,P,yt),U.set(ut,dt)),dt},ae=(O,U,Y,ut=ht)=>{let dt=fe(U,ut).get(O),$=dt?.target;if(!$)return null;if(dt.targetMode==="External")return dt.target;const be=U.lastIndexOf("/"),xe=U.substring(0,be+1);$.startsWith("/")||($=xe+$),$=(tt=>{const et=tt.split(/\/+/);return et.reduce((bt,Bt,xt)=>(Bt==="."?bt.splice(xt,1):Bt===".."&&bt.splice(xt-1,2),bt),et).join("/")})($);const we=P?.getVisitorParamsState().get("dxfs");let Xt=ut.get($);if(!Xt)if(dt.type==="http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet"){const tt={};Xt=tt;const et=async()=>{const bt=((L,G,Kt,_,Q,Z,wt)=>{const h=new Rs,K=new u.Ot.TransposedBuilder;let j=null;h.registerVisitor({from:"autoFilter",to:"filter",openTag:e=>{e.copyTo("ref",A)}}),h.registerVisitor({from:"conditionalFormatting",to:{},openTag:e=>{const r=e.getParent();r.conditionals||(r.conditionals=[]),r.conditionals.push(e.getSource());const l=e.getAttribute("sqref");l&&(e.getSource().ref=l.split(" ").join(",")),e.copyTo("pivot",v)},closeTag:e=>{const r=e.getSource();if(r.rule){const l=Object.keys(r.rule);for(let p=0;p<l.length;p++){const C=l[p];C!=="rule"&&(r[C]=r.rule[C])}}delete r.rule}}),h.registerVisitor({from:"cfRule",to:"rule",openTag:e=>{const r=e.getParent();e.copyToObject(r,"type",A),e.copyToObject(r,"priority",D),e.copyToObject(r,"stopIfTrue",v);const l=e.getAttribute("dxfId",D);if(l!==null){let p=_?.get(l);p||(Z?.(`Unable to load conditional color. Invalid dxfI: '${l}' at '${e.getPath()}'.`),p={}),r.style=p}e.copyToObject(r,"aboveAverage",v),e.copyToObject(r,"equalAverage",v),e.copyToObject(r,"stdDev",D),e.copyToObject(r,"bottom",v),e.copyToObject(r,"percent",v),e.copyToObject(r,"rank",D),e.copyToObject(r,"operator",A),e.copyToObject(r,"text",A),e.copyToObject(r,"timePeriod",A)}}),h.registerVisitor({from:"colorScale",to:"colorScale"}),h.registerVisitor({from:"dataBar",to:"dataBar",openTag:e=>{e.copyTo("maxLength",D),e.copyTo("minLength",D),e.copyTo("showValue",v)}}),h.registerVisitor({from:"iconSet",to:"iconSet",openTag:e=>{e.copyTo("iconSet",A),e.copyTo("reverse",v),e.copyTo("showValue",v)}}),h.registerVisitor({from:"formula",to:null,text:(e,r)=>{const l=r.getParent();let p=l.formulas;p||(p=[],l.formulas=p),p.push(e)}}),h.registerVisitor({from:"cfvo",to:{},openTag:e=>{const r=e.getParent();r.conditions||(r.conditions=[]),r.conditions.push(e.getSource()),e.copyTo("type",A),e.copyTo("value",ct,"val"),e.copyTo("gte",v)}}),h.registerVisitor({from:"color",to:{},openTag:e=>{const r=e.getParent();r.colors||(r.colors=[]);const l=Ee(p=>e.getAttribute(p));r.colors.push(l)}}),h.registerVisitor({from:"filterColumn",to:"filterColumn",openTag:e=>{const r=e.getParent();r.fields||(r.fields=[]),r.fields.push(e.getSource()),e.copyTo("offset",D,"colId"),e.copyTo("hiddenButton",v),e.copyTo("showButton",v)}}),h.registerVisitor({from:"colorFilter",to:"colorFilter",openTag:e=>{const r=e.getParent();r.criteria||(r.criteria=[]),r.criteria.push(e.getSource()),e.getSource().type=u.Fd.Type.Color,e.copyTo("cellColor",v),e.copyTo("styleId",D,"dxfId")}}),h.registerVisitor({from:"dynamicFilter",to:"dynamicFilter",openTag:e=>{const r=e.getParent();r.criteria||(r.criteria=[]),r.criteria.push(e.getSource()),e.getSource().type=u.Fd.Type.Dynamic,e.copyTo("dynamicType",A,"type"),e.copyTo("val",ct),e.copyTo("maxVal",ct,"maxVal")}}),h.registerVisitor({from:"iconFilter",to:"iconFilter",openTag:e=>{const r=e.getParent();r.criteria||(r.criteria=[]),r.criteria.push(e.getSource()),e.getSource().type=u.Fd.Type.Icon,e.copyTo("iconId",D),e.copyTo("iconSet",A)}}),h.registerVisitor({from:"top10",to:"top10",openTag:e=>{const r=e.getParent();r.criteria||(r.criteria=[]),r.criteria.push(e.getSource()),e.getSource().type=u.Fd.Type.Top10,e.copyTo("filterVal",ct),e.copyTo("percent",v),e.copyTo("top",v),e.copyTo("val",ct)}}),h.registerVisitor({from:"filters",to:"filters",openTag:e=>{const r=e.getParent();r.criteria||(r.criteria=[]),r.criteria.push(e.getSource()),e.getSource().type=u.Fd.Type.Items,e.copyTo("blank",v),e.copyTo("calendarType",A)}}),h.registerVisitor({from:"dateGroupItem",to:"dateGroupItem",openTag:e=>{const r=e.getParent();r.dateGroups||(r.dateGroups=[]),r.dateGroups.push(e.getSource()),e.copyTo("group",A,"dateTimeGrouping"),e.copyTo("day",D),e.copyTo("hour",D),e.copyTo("minute",D),e.copyTo("month",D),e.copyTo("second",D),e.copyTo("year",D)}}),h.registerVisitor({from:"filter",to:"filter",openTag:e=>{const r=e.getParent();r.items||(r.items=[]),r.items.push(e.getAttribute("val",ct))}}),h.registerVisitor({from:"customFilters",to:"customFilters",openTag:e=>{const r=e.getParent();r.criteria||(r.criteria=[]),r.criteria.push(e.getSource()),e.getSource().type=u.Fd.Type.Custom,e.copyTo("and",v)}}),h.registerVisitor({from:"customFilter",to:"customFilter",openTag:e=>{const r=e.getParent();r.filters||(r.filters=[]),r.filters.push(e.getSource()),e.copyTo("operator",A),e.copyTo("value",ct,"val")}}),h.registerVisitor({from:"sortState",to:"sort",openTag:e=>{e.copyTo("ref",A)}}),h.registerVisitor({from:"sortCondition",to:"sortCondition",openTag:e=>{const r=e.getParent();r.fields||(r.fields=[]);const l=e.getSource();r.fields.push(l),e.copyTo("sortOn",A,"sortBy"),e.copyTo("dxfId",A,"sortBy"),e.copyTo("iconSet",A),e.copyTo("customList",A);const p=e.getAttribute("ref");if(p){const C=u.Co$1.fastStringToRange(p,is).colStart,pt=u.Co$1.fastStringToRange(r.ref,is),rt=pt.colStart;l.offset=pt?C-rt:C}l.reverse=e.getAttribute("descending",v)??!1}}),h.registerVisitor({from:"AlternateContent",to:null});const ue=e=>{j=e.getSource(),e.copyTo("topLeft",A,"topLeftCell");const r=cs(e.getAttribute("defaultGridColor")),l=e.getAttribute("colorId");l===null||r||(e.getSource().gridLineColor="index"+parseFloat(l)),e.copyTo("showZeros",v),e.copyTo("showFormulas",v),e.copyTo("zoomScale",D),e.copyTo("showRowHeaders",v,"showRowColHeaders"),e.copyTo("showColumnHeaders",v,"showRowColHeaders"),e.copyTo("showRowGridlines",v,"showGridLines"),e.copyTo("showColumnGridlines",v,"showGridLines")};h.registerVisitor({from:"sheetView",to:"view",openTag:e=>{ue(e)},closeTag:()=>{j=null}}),h.registerVisitor({from:"customSheetViews",to:"customSheetViews",openTag:e=>{e.setSource([])}}),h.registerVisitor({from:"customSheetView",to:[],openTag:e=>{ue(e)},closeTag:()=>{j=null}}),h.registerVisitor({from:"selection",to:"selection",openTag:e=>{if(!j)return;e.copyTo("cell",A,"activeCell"),e.copyTo("rangeIndex",D,"activeCellId");const r=e.getAttribute("activeCell"),l=e.getAttribute("sqref");l&&l!==r&&(e.getSource().ranges=l.split(" "))}}),h.registerVisitor({from:"pane",to:"pane",openTag:e=>{if(j&&e.getAttribute("state")==="frozen"){const r={};j.freezePanes=r,e.copyToObject(r,"topLeft",A,"topLeftCell");const l=j.topLeft?u.Co$1.fastStringToCell(j.topLeft):{colIndex:0,rowIndex:0},p={colIndex:0,rowIndex:0};e.copyToObject(p,"colIndex",D,"xSplit"),e.copyToObject(p,"rowIndex",D,"ySplit");const C={colIndex:l.colIndex+p.colIndex,rowIndex:l.rowIndex+p.rowIndex};r.coords=u.Co$1.cellToString(C)}}}),h.registerVisitor({from:"tabColor",to:null,openTag:e=>{const r=Ee(l=>e.getAttribute(l));r&&(L.tabColor=r)}}),h.registerVisitor({from:"pageSetUpPr",to:"pageSetUpPr",openTag:e=>{}}),h.registerVisitor({from:"outlinePr",to:"outlinePr",openTag:e=>{}}),h.registerVisitor({from:"pageMargins",to:"pageMargins",openTag:e=>{}}),h.registerVisitor({from:"pageSetup",to:"pageSetup",openTag:e=>{}}),h.registerVisitor({from:"printOptions",to:"printOptions",openTag:e=>{}}),h.registerVisitor({from:"mergeCells",to:"merges",openTag:e=>{e.setSource([])}}),h.registerVisitor({from:"mergeCell",to:[],openTag:e=>{const r=e.getAttribute("ref");e.setSource(r)}}),h.registerVisitor({from:"hyperlinks",to:"hyperlinks",openTag:e=>{e.setSource([])}}),h.registerVisitor({from:"hyperlink",to:[],openTag:e=>{const r=e.getAttribute("r:id"),l=e.getAttribute("ref");if(!l)return void console.warn("No ref found for hyperlink");e.setKey(l);let p=r?G(r):"";if(typeof p!="string")return void console.warn("Invalid address ",p);const C=e.getAttribute("location");p.endsWith("\\")&&(p=p.substring(0,p.length-1));const pt=e.getAttribute("location");if(pt&&(C&&C!==pt&&console.warn("display and location are different",C,pt),p+="#"+pt),!p)return void console.warn("No address found for hyperlink. r:id",r);let rt;const At=e.getAttribute("tooltip");rt=At?{address:p,tooltip:At}:p,e.setSource({r:l,v:rt})}}),h.registerVisitor({from:"drawing",to:"movables",openTag:e=>{const r=e.getAttribute("r:id");if(!r)return;const l=G(r);l?e.setSource(l.movables):console.warn("no drawing found for rId",r)}}),h.registerVisitor({from:"tableParts",to:"tables",openTag:e=>{e.setSource([])}}),h.registerVisitor({from:"tablePart",to:[],openTag:e=>{const r=e.getAttribute("r:id");if(!r)return;const l=G(r);l?e.setSource(l):console.warn("no table found for rId",r)}}),h.registerVisitor({from:"worksheet",to:"worksheet",openTag:e=>{}}),h.registerVisitor({from:"sheetProtection",to:"protection",openTag:e=>{let r=!1;if(e.hasAttribute("sheet")&&v(e.getAttribute("sheet"))&&(r=!0),!r)return void e.setSource(void 0);const l=C=>C===!0||C==="1"||C==="on"||C==="true"||C===!1||C==="0"||C==="off"||C==="false"||null;e.copyTo("autoFilter",l),e.copyTo("deleteColumns",l),e.copyTo("formatCells",l),e.copyTo("formatColumns",l),e.copyTo("formatRows",l),e.copyTo("insertColumns",l),e.copyTo("insertHyperlinks",l),e.copyTo("insertRows",l),e.copyTo("objects",l),e.copyTo("pivotTables",l),e.copyTo("scenarios",l),e.copyTo("selectUnlockedCells",l),e.copyTo("selectUnlockedCells",l),e.copyTo("sort",l);const p={};e.copyToObject(p,"hash",A,"hashValue"),e.copyToObject(p,"algorithm",A,"algorithmName"),e.copyToObject(p,"salt",A,"saltValue"),e.copyToObject(p,"spinCount",D),Object.keys(p).length>0&&(e.getSource().password=p)}}),h.registerVisitor({from:"protectedRanges",to:"protectedRanges",openTag:e=>{e.setSource({})}}),h.registerVisitor({from:"protectedRange",to:{},openTag:e=>{const r=e.getAttribute("sqref");e.setKey(r),e.copyTo("name"),e.copyTo("securityDescriptor");const l={};e.copyToObject(l,"hash",A,"hashValue"),e.copyToObject(l,"algorithm",A,"algorithmName"),e.copyToObject(l,"salt",A,"saltValue"),e.copyToObject(l,"spinCount",D),Object.keys(l).length>0&&(e.getSource().password=l)}}),h.registerVisitor({from:"sheetFormatPr",to:"sheetFormatPr",openTag:e=>{e.copyToObject(L,"defaultColSize",ct,"defaultColWidth"),e.copyToObject(L,"outlineLevelCol",D,"outlineLevelCol");const r=e.getAttribute("customHeight");r!=="1"&&r!=="true"||e.copyToObject(L,"defaultRowSize",ct,"defaultRowHeight"),e.copyToObject(L,"outlineLevelRow",D,"outlineLevelRow")}}),h.registerVisitor({from:"cols",to:"cols",openTag:e=>{e.setSource([])}}),h.registerVisitor({from:"col",to:[],openTag:e=>{e.copyTo("min",r=>parseInt(r)-1),e.copyTo("max",r=>parseInt(r)-1),e.copyTo("sz",ct,"width"),e.copyTo("cs",v,"customWidth"),e.copyTo("h",v,"hidden"),e.copyTo("l",D,"outlineLevel"),e.copyTo("s",D,"style")}}),h.registerVisitor({from:"oleObjects",to:null,openTag:e=>{e.warn("'OLE Objects' are not supported.")}});let Jt=null;const ms={onOpenTag:e=>{Jt===null&&(Jt="")},onText:e=>{Jt+=e},onEnd:()=>{const e=Kt(Jt);return Jt=null,e},onError:e=>{}};return((e,r,l,p,C,pt)=>{let rt=!1,At=!1,qt=[],_t=!1,Dt=null,Yt=null,de=null,nt=null,$e=null,Me=null;const Ts=pt?.get("richData")??[],Fe=u.Co$1.normalizeA1ToR1C1,je=u.Kt.createConflatingRanges(),He=new Map,ve=[];let te=null;const Xe=u.Kt.createConflatingRanges();let ee,Et=!1,B=-1,J=-1,gt=null,se=null;const Se=[];let Ce=null,Be=-2,ft=0,zt="",Pt="",Ot="",It="",Vt="",Lt="",Nt="",We="",qe="",_e="",ze="",Ue="",Ge="",Qe="",mt=!0,Rt=null;return{...l,onEnd:()=>{Se.length>0&&(r.rows=Se);let g=je.done(Ms);const k=g.length;if(k>0){const M=new Array(k);for(let N=0;N<k;N++){const at=g[N],$t=u.Co$1.rangeToString(at),Mt=at.value[1],ie=u.Co$1.resolveRelativeToA1(Mt,at.rowStart,at.colStart);M[N]=[$t,ie]}r.formulas=M}const st=Xe.done(!0),R=st.length;if(R>0){const M=new Array(R);for(let N=0;N<R;N++){const at=st[N],$t=u.Co$1.rangeToString(at);M[N]=$t}r.volatile=M}if(ve.length>0&&(r.dynamicArray=[...ve]),qt.length>0){qt.sort(u.Kt.createRangeComparator(u.w.Orientation.Column));const M=[];let N=null,at=-1,$t=-1,Mt=-1,ie=-1,vt=null;const Ze=qt.length;Ze>0&&(N=qt[0],at=N.colStart,$t=N.colEnd,Mt=N.rowEnd,ie=N.value,M.push(N));for(let Ft=1;Ft<Ze;Ft++)vt=qt[Ft],ie!==vt.value||at!==vt.colStart||$t!==vt.colEnd||Mt+1!==vt.rowEnd?(M.push(vt),N=vt,at=N.colStart,$t=N.colEnd,Mt=N.rowEnd,ie=N.value):(Mt=vt.rowEnd,N.rowEnd=Mt);let Ke=[];for(let Ft=0;Ft<M.length;Ft++){const oe=M[Ft];Ke.push({r:{colStart:oe.colStart,colEnd:oe.colEnd,rowStart:oe.rowStart,rowEnd:oe.rowEnd},v:oe.value})}r.directStyles=Ke}const it=e.build();if(it){const M=it.tuples;r.data=M}l?.onEnd?.()},onOpenTag:g=>{let k=g.name;const st=k.indexOf(":");if(st!==-1&&(k=k.slice(st+1)),ee){const R=g.attributes;switch(k){case"v":At=!0;break;case"f":switch(R.t??null){case null:case"normal":_t=!0;break;case"shared":const it=R.si;Yt=R.ref,Dt=it;break;case"array":_t=!0,Yt=R.ref,te=[Yt,!1];break;case"datatable":_t=!0,Yt=R.ref,_t=!0}R.ca!==void 0&&Xe.append(B,J);break;case"is":return void(Et=!0)}return void(Et&&C?.onOpenTag(g))}if(rt){if(k==="c"){ee=g;const R=g.attributes.r;J=u.Co$1.fastStringToCol(R);const it=g.attributes.t;it===void 0?se=null:(se=it,se==="str"&&(Et=!0));let M=g.attributes.s;M!==void 0&&(M=parseInt(M),Rt&&Rt.value===M&&Rt.colEnd+1===J?Rt.colEnd=J:(Rt={colStart:J,rowStart:B,colEnd:J,rowEnd:B,value:M},qt.push(Rt)))}}else{if(k==="row"){rt=!0;const R=g.attributes.r;if(B=parseInt(R)-1,ft=0,Pt=g.attributes.customHeight,Pt!==void 0&&(ft|=Ht.CustomHeight),Pt!==qe&&(mt=!0,qe=Pt),zt=g.attributes.ht,zt!==void 0&&(ft|=Ht.Ht),zt!==We&&(mt=!0,We=zt),Ot=g.attributes.hidden,Ot!==void 0&&(ft|=Ht.Hidden),Ot!==_e&&(mt=!0,_e=Ot),Vt=g.attributes.s,Vt!==void 0&&(ft|=Ht.S),Vt!==Ue&&(mt=!0,Ue=Vt),It=g.attributes.customFormat,It!==void 0&&(ft|=Ht.CustomFormat),It!==ze&&(mt=!0,ze=It),Lt=g.attributes.outlineLevel,Lt!==void 0&&(ft|=Ht.OutlineLevel),Lt!==Ge&&(mt=!0,Ge=Lt),Nt=g.attributes.collapsed,Nt!==void 0&&(ft|=Ht.Collapsed),Nt!==Qe&&(mt=!0,Qe=Nt),ft!==0)if(Be+1!==B||mt){const it=Pt!==void 0&&(Pt==="1"||Pt==="true"),M=It!==void 0&&(It==="1"||It==="true");Ce={min:B,max:B,sz:it&&zt!==void 0?parseFloat(zt):-1,csz:it,h:Ot!==void 0&&(Ot==="1"||Ot==="true"),s:it&&Vt!==void 0&&Vt!=="0"?parseInt(Vt):0,cs:M,l:Lt===void 0||Lt==="0"?0:parseInt(Lt),cl:Nt!==void 0&&(Nt==="1"||Nt==="true")},Se.push(Ce)}else Ce.max=B;return Be=B,void(mt=!1)}l?.onOpenTag(g)}},onCloseTag:g=>{if(ee){let k=g.name;const st=k.indexOf(":");if(st!==-1&&(k=k.slice(st+1)),Et)if(k==="is"||k==="v"){const R=C?.onEnd();R!==null&&e.addValue(B,J,""+R)}else C?.onCloseTag?.(g);return At&&(At=!1),void(k==="c"&&(ee=null,Et=!1))}if(rt)return rt=!1,void(Rt=null);l?.onCloseTag(g)},onText:g=>{if(g=g.trim(),At){switch(gt=null,se){case null:case"n":gt=parseFloat(g);break;case"b":gt=g==="1"||g==="true";break;case"s":gt=g;break;case"e":if(g==="#VALUE!"){const st=ee.attributes.vm;if(st!==void 0){const R=Ts[parseInt(st)-1];if(R&&R.isFormulaError){gt={t:u.M.Error,v:R.getCode()};break}}}const k=u.n.getBuiltInByLabel(g);k?gt={t:u.M.Error,v:k.getCode()}:(gt=g,p?.(`Unknown formula error '${g}' in cell ${u.Co$1.cellToString({colIndex:J,rowIndex:B})}`));break;case"str":case"inlineStr":Et=!0}gt!==null&&e.addValue(B,J,gt)}if(te&&(se==="e"&&(te[1]=!0),ve.push(te),te=null),Dt)if($e===Dt)nt=Me;else{if(nt=He.get(Dt),!nt){const k=[];de=Fe(g,B,J,k),nt=[de,k,g],He.set(Dt,nt)}$e=Dt,Me=nt}if(_t){const k=[];de=Fe(g,B,J,k),nt=[de,k,g]}if(nt)return je.append(B,J,nt),nt=null,_t=!1,Dt=null,void(Yt=null);Et?C?.onText(g):rt||l?.onText(g)}}})(K,L,h.createEventHandler(L,()=>{},Z),Z,ms,wt)})(tt,(L,G=!1)=>ae(L,$,G)??null,us,we,0,L=>{o&&(L=$+": "+L,o?.(L))},q),Bt=ss($,ne),xt=await(async(L,G=8388608)=>{await(async()=>{if(typeof ReadableStream>"u")if(typeof window>"u"){const{ReadableStream:Z}=await Promise.resolve().then(()=>require("./DfMDnmbowrTm8wAQ.cjs"));globalThis.ReadableStream=Z}else console.warn("Browser does not support ReadableStream; consider loading a polyfill.")})();const Kt=new TextDecoder("utf-8");let _=0;const Q=L instanceof Uint8Array?L:new Uint8Array(L);return new ReadableStream({pull(Z){if(_>=Q.byteLength)return void Z.close();const wt=Q.subarray(_,Math.min(_+G,Q.byteLength)),h=Kt.decode(wt,{stream:_+G<Q.byteLength});Z.enqueue(h),_+=wt.length}}).getReader()})(Bt);try{await Ae.parseStream(xt,bt,{xmlns:!1})}catch(L){throw console.warn(`Error parsing sheet: '${$}'`,L),new Error(`Error parsing sheet: '${$}'`,{cause:L})}const Wt=fe($,ut);let kt,Re=new Map;if(Wt){const L="http://schemas.microsoft.com/office/2017/10/relationships/threadedComment";let G;Wt.forEach((_,Q)=>{_.type===L&&(kt=ae(Q,$,!1,ut)?.comments,kt&&kt.forEach(Z=>{Re.set(Z.id,Z)}))});const Kt="http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments";if(Wt.forEach((_,Q)=>{_.type===Kt&&(G=ae(Q,$,!1,ut))}),G||kt){const _=kt??[],Q=G?.comments;if(Q){const Z=G?.authors;for(let wt=0;wt<Q.length;wt++){const h=Q[wt];let K=h.authorId!==void 0?Z[h.authorId]:void 0;if((!K||K.startsWith("tc="))&&(K=ls(K.substring(3)),Re.has(K)))continue;let j=ce.get(K);j||(j=Ve.get(K)),j||(j={id:u.Yt.uuidV4(),displayName:K},Ve.set(j.displayName,j),ce.set(j.id,j)),K=j?.id??null;const ue={id:u.Yt.uuidV4(),personId:K,ref:h.ref,done:!1,asNote:!0,content:h.content};_.push(ue)}}tt.comments=_}}};Pe.push(et())}else Xt=Y?ss($,ne,tt=>{const et=y.add({buffer:tt});return et.addReference(V),H.add(et),m.toResourceId(et)},yt):De($,ne,f,P,yt);return Xt},yt={paramMap:q,getRefs:fe,getRef:ae,parsedRefs:ht,onWarning:o,addPerson:O=>null},le=[];let me=0;d.Strings&&(me=parseInt(d.Strings.Unique??d.Strings.length??0));const hs=d.Strings??[];for(let O=0;O<me;O++)le.push(hs[O]?.t??"");const Oe=new Map;let Ie=me;const us=O=>{const U=Oe.get(O);if(U!==void 0)return U;const Y=Ie;return Oe.set(O,Ie++),le.push(O),Y},ce=(Ut("richstructure",d,f,P,yt),Ut("richdata",d,f,P,yt),new Map),Ve=new Map,Le=Ut("people",d,f,P);let Ct=null;if(Le.size>0&&(Ct=Le.entries().next()?.value?.[1]?.persons,Ct)){const O=Ct.length;for(let U=0;U<O;U++){const Y=Ct[U];ce.set(Y.id,Y),ce.set(Y.displayName,Y)}}const Te=Ut("themes",d,f,P,yt);let Ne=null;if(Te&&Te.entries){let O=Te.entries().next();O?.value?.[1]&&(Ne=O.value[1])}const ds=new u.oc(Ne);let he=Ut("styles",d,f,P,yt).entries().next()?.value[1];he&&(he=JSON.parse(u.te(he)));const ps=Ut("workbooks",d,f,P,yt);await Promise.all(Pe);const ye={...ps.entries().next().value[1],styles:he,theme:ds.toJSON()};le.length>0&&(ye.strings=le),Ct&&Ct.length>0&&(ye.people=Ct);const gs={...n,resources:y,json:ye},fs=new u.Ly(gs);return H.forEach(O=>{O.deleteReference(V)}),m.endPersist(),fs}catch(d){let P="Unable to parse XLSX.";throw d instanceof u.ne&&(P="Unable to open XLSX. There are too many rows or columns."),new Error(P,{cause:d})}},toBufferXLSX:async(i,t)=>{const s=await Promise.resolve().then(()=>require("./Cj9vxBt4_rKsQNb0.cjs")),o=await i.toJSON(!0),n=s.utils.book_new();for(let a=0;a<o.sheets.length;a++){const c=o.sheets[a],T=s.utils.json_to_sheet([{}]);s.utils.book_append_sheet(n,T,c.name);const S=c.sheet,x=i.getSheetAt(a),w=x.getUsedRange();if(w?(T["!ref"]=w.getA1(),w.forEach((E,b)=>{const d={t:"z"},P=b.getCell().getStyle();if(!P.isNormal()){let f=P.getNumberFormat();f!==u.De.Type.General&&(f===u.De.Type.ShortDate?f="m/d/yyyy":f===u.De.Type.MediumDate?f="d-mmm-yy":f===u.De.Type.LongDate?f="[$-x-sysdate]dddd, mmmm dd, yyyy":f===u.De.Type.ShortTime?f="h:mm":f===u.De.Type.MediumTime?f="h:mm AM/PM":f===u.De.Type.LongTime&&(f="h:mm:ss AM/PM"),d.z=f)}if(E!==null)switch(b.getType()){case u.M.Number:d.t="n",d.v=E;break;case u.M.String:d.t="s",d.v=E;break;case u.M.Boolean:d.t="b",d.v=E;break;case u.M.Error:d.t="e",d.v=E.toString();case u.M.RichData:}T[b.getA1()]=d})):T["!ref"]="A1:A1",S.merges?.length>0){const E=[];T["!merges"]=E;for(let b=0;b<S.merges.length;b++)E.push(s.utils.decode_range(S.merges[b]))}if(S.cols?.length>0){const E=[];T["!cols"]=E;const b=S.cols,d={width:S.defaultColSize??x.getColumnWidthAsFontUnit(x.getColumnHeaders().getDefaultSize())};for(let P=0;P<b.length;P++){const f=b[P];for(let m=E.length;m<=f.min-1;m++)E.push(d);const y={};f.sz!==void 0&&(y.width=f.sz),f.h!==void 0&&(y.hidden=f.h),f.l!==void 0&&(y.level=f.l);for(let m=f.min;m<=f.max;m++)E.push(y)}}}return s.write(n,{type:"array",bookType:"xlsx"}),s.write(n,{type:"array",bookType:"xlsx"})}},Symbol.toStringTag,{value:"Module"}));exports.a=i=>parseFloat(i)/1e3,exports.b=cs,exports.c=i=>i?u.Yt.roundAccurately(parseFloat(i)/9525,1):null,exports.d=Ee,exports.i=Fs,exports.p=i=>parseFloat(i)/6e4,exports.r=ls,exports.t=i=>i?u.Yt.roundAccurately(parseFloat(i)/12700,4):null;
@@ -1,5 +1,5 @@
1
1
  "use strict";/**
2
- * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.22
2
+ * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.5.1
3
3
  *
4
4
  * (C) 2025-present SheetXL Inc. & Michael T. Ford
5
5
  * License: The license can be found at https://www.sheetxl.com/license.
@@ -1,9 +1,9 @@
1
1
  "use strict";/**
2
- * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.22
2
+ * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.5.1
3
3
  *
4
4
  * (C) 2025-present SheetXL Inc. & Michael T. Ford
5
5
  * License: The license can be found at https://www.sheetxl.com/license.
6
- */Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const ee=require("./QxU4KIgsHZuVigdy.cjs");function Xr(e,t){for(var n=e.length,r=0;r<n;++r)if(t(e[r],r))return!0;return!1}function to(e,t){for(var n=e.length,r=0;r<n;++r)if(t(e[r],r))return e[r];return null}function ci(e){var t=e;if(t===void 0){if(typeof navigator>"u"||!navigator)return"";t=navigator.userAgent||""}return t.toLowerCase()}function Er(e,t){try{return new RegExp(e,"g").exec(t)}catch{return null}}function Sr(e){return e.replace(/_/g,".")}function dn(e,t){var n=null,r="-1";return Xr(e,function(i){var o,a,s,u=Er("("+i.test+")((?:\\/|\\s|:)([0-9|\\.|_]+))?",t);return!(!u||i.brand||(n=i,r=u[3]||"-1",i.versionAlias?r=i.versionAlias:i.versionTest&&(o=i.versionTest.toLowerCase(),a=t,s=Er("("+o+")((?:\\/|\\s|:)([0-9|\\.|_]+))",a),r=(s?s[3]:"")||r),r=Sr(r),0))}),{preset:n,version:r}}function zn(e,t){var n={brand:"",version:"-1"};return Xr(e,function(r){var i=eo(t,r);return!!i&&(n.brand=r.id,n.version=r.versionAlias||i.version,n.version!=="-1")}),n}function eo(e,t){return to(e,function(n){var r=n.brand;return Er(""+t.test,r.toLowerCase())})}var li=[{test:"phantomjs",id:"phantomjs"},{test:"whale",id:"whale"},{test:"edgios|edge|edg",id:"edge"},{test:"msie|trident|windows phone",id:"ie",versionTest:"iemobile|msie|rv"},{test:"miuibrowser",id:"miui browser"},{test:"samsungbrowser",id:"samsung internet"},{test:"samsung",id:"samsung internet",versionTest:"version"},{test:"chrome|crios",id:"chrome"},{test:"firefox|fxios",id:"firefox"},{test:"android",id:"android browser",versionTest:"version"},{test:"safari|iphone|ipad|ipod",id:"safari",versionTest:"version"}],fi=[{test:"(?=.*applewebkit/(53[0-7]|5[0-2]|[0-4]))(?=.*\\schrome)",id:"chrome",versionTest:"chrome"},{test:"chromium",id:"chrome"},{test:"whale",id:"chrome",versionAlias:"-1",brand:!0}],sr=[{test:"applewebkit",id:"webkit",versionTest:"applewebkit|safari"}],no=[{test:"(?=(iphone|ipad))(?!(.*version))",id:"webview"},{test:"(?=(android|iphone|ipad))(?=.*(naver|daum|; wv))",id:"webview"},{test:"webview",id:"webview"}],pi=[{test:"windows phone",id:"windows phone"},{test:"windows 2000",id:"window",versionAlias:"5.0"},{test:"windows nt",id:"window"},{test:"win32|windows",id:"window"},{test:"iphone|ipad|ipod",id:"ios",versionTest:"iphone os|cpu os"},{test:"macos|macintel|mac os x",id:"mac"},{test:"android|linux armv81",id:"android"},{test:"tizen",id:"tizen"},{test:"webos|web0s",id:"webos"}];function di(e){return!!dn(no,e).preset}function ca(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.map(function(r){return r.split(" ").map(function(i){return i?""+e+i:""}).join(" ")}).join(" ")}function Ae(e,t){return function(n){n&&(e[t]=n)}}function ro(e,t,n){return function(r){r&&(e[t][n]=r)}}var Nr="undefined",io=typeof window!==Nr,la=typeof document!==Nr&&document,fa=[{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"},{open:'\\"',close:'\\"'},{open:"\\'",close:"\\'"}],Ht=1e-7,Gn={cm:function(e){return 96*e/2.54},mm:function(e){return 96*e/254},in:function(e){return 96*e},pt:function(e){return 96*e/72},pc:function(e){return 96*e/6},"%":function(e,t){return e*t/100},vw:function(e,t){return t===void 0&&(t=window.innerWidth),e/100*t},vh:function(e,t){return t===void 0&&(t=window.innerHeight),e/100*t},vmax:function(e,t){return t===void 0&&(t=Math.max(window.innerWidth,window.innerHeight)),e/100*t},vmin:function(e,t){return t===void 0&&(t=Math.min(window.innerWidth,window.innerHeight)),e/100*t}};function hi(e,t,n,r){return(e*r+t*n)/(n+r)}function Wr(e){return typeof e===Nr}function we(e){return e&&typeof e=="object"}function ne(e){return Array.isArray(e)}function nn(e){return typeof e=="string"}function Vn(e){return typeof e=="number"}function oo(e){return typeof e=="function"}function ao(e,t,n,r,i){return Dr(e,t,n)?n:function(o,a,s,u,f){for(var p,c=function(d){var g=a[d].trim();if(g===o.close&&!Dr(o,a,d))return{value:d};var v=d,b=he(f,function(x){return x.open===g});if(b&&(v=ao(b,a,d,u,f)),v===-1)return p=d,"break";p=d=v},l=s;l<u;++l){var h=c(l);if(l=p,typeof h=="object")return h.value;if(h==="break")break}return-1}(e,t,n+1,r,i)}function Dr(e,t,n){if(!e.ignore)return null;var r=t.slice(Math.max(n-3,0),n+3).join("");return new RegExp(e.ignore).exec(r)}function qr(e,t){var n=nn(t)?{separator:t}:t,r=n.separator,i=r===void 0?",":r,o=n.isSeparateFirst,a=n.isSeparateOnlyOpenClose,s=n.isSeparateOpenClose,u=s===void 0?a:s,f=n.openCloseCharacters,p=f===void 0?fa:f,c=p.map(function(m){var S=m.open,_=m.close;return S===_?S:S+"|"+_}).join("|"),l=new RegExp("(\\s*"+i+"\\s*|"+c+"|\\s+)","g"),h=e.split(l).filter(function(m){return m&&m!=="undefined"}),d=h.length,g=[],v=[];function b(){return!!v.length&&(g.push(v.join("")),v=[],!0)}for(var x,y=function(m){var S,_,k=h[m].trim(),F=m,O=he(p,function(R){return R.open===k}),w=he(p,function(R){return R.close===k});if(O){if((F=ao(O,h,m,d,p))!==-1&&u)return b()&&o?(x=m,"break"):(g.push(h.slice(m,F+1).join("")),m=F,o?(x=m,"break"):(x=m,"continue"))}else{if(w&&!Dr(w,h,m)){var D=function(){for(var R=0,P=0,B=arguments.length;P<B;P++)R+=arguments[P].length;var A=Array(R),z=0;for(P=0;P<B;P++)for(var G=arguments[P],I=0,V=G.length;I<V;I++,z++)A[z]=G[I];return A}(p);return D.splice(p.indexOf(w),1),{value:qr(e,{separator:i,isSeparateFirst:o,isSeparateOnlyOpenClose:a,isSeparateOpenClose:u,openCloseCharacters:D})}}if(S=k,_=i,!((_!==""&&_!=" "||S!==""&&S!=" ")&&S!==_||a))return b(),o?(x=m,"break"):(x=m,"continue")}F===-1&&(F=d-1),v.push(h.slice(m,F+1).join("")),x=m=F},E=0;E<d;++E){var M=y(E);if(E=x,typeof M=="object")return M.value;if(M==="break")break}return v.length&&g.push(v.join("")),g}function Mn(e){return qr(e,"")}function hn(e){return qr(e,",")}function nr(e){var t=/^([^\d|e|\-|\+]*)((?:\d|\.|-|e-|e\+)+)(\S*)$/g.exec(e);if(!t)return{prefix:"",unit:"",value:NaN};var n=t[1],r=t[2];return{prefix:n,unit:t[3],value:parseFloat(r)}}function Zn(){return Date.now?Date.now():new Date().getTime()}function $e(e,t,n){n===void 0&&(n=-1);for(var r=e.length,i=0;i<r;++i)if(t(e[i],i,e))return i;return n}function he(e,t,n){var r=$e(e,t);return r>-1?e[r]:n}var gi,vi,so=(gi=Zn(),(vi=io&&(window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.msRequestAnimationFrame))?vi.bind(window):function(e){var t=Zn();return setTimeout(function(){e(t-gi)},1e3/60)}),pa=function(){var e=io&&(window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||window.msCancelAnimationFrame);return e?e.bind(window):function(t){clearTimeout(t)}}();function wn(e){return Object.keys(e)}function ae(e,t){var n=nr(e),r=n.value,i=n.unit;if(we(t)){var o=t[i];if(o){if(oo(o))return o(r);if(Gn[i])return Gn[i](r,o)}}else if(i==="%")return r*t/100;return Gn[i]?Gn[i](r):r}function Mr(e,t,n){return Math.max(t,Math.min(e,n))}function mi(e,t,n,r){return r===void 0&&(r=e[0]/e[1]),[[kt(t[0],Ht),kt(t[0]/r,Ht)],[kt(t[1]*r,Ht),kt(t[1],Ht)]].filter(function(i){return i.every(function(o,a){var s=t[a],u=kt(s,Ht);return n?o<=s||o<=u:o>=s||o>=u})})[0]||e}function wr(e){for(var t=e.length,n=0,r=t-1;r>=0;--r)n+=e[r];return t?n/t:0}function de(e,t){var n=t[0]-e[0],r=t[1]-e[1],i=Math.atan2(r,n);return i>=0?i:i+2*Math.PI}function bi(e){var t,n=(t=e,[0,1].map(function(o){return wr(t.map(function(a){return a[o]}))})),r=de(n,e[0]),i=de(n,e[1]);return r<i&&i-r<Math.PI||r>i&&i-r<-Math.PI?1:-1}function gn(e,t){return Math.sqrt(Math.pow((t?t[0]:0)-e[0],2)+Math.pow((t?t[1]:0)-e[1],2))}function kt(e,t){if(!t)return e;var n=1/t;return Math.round(e/t)/n}function xi(e,t){return e.forEach(function(n,r){e[r]=kt(e[r],t)}),e}function Ee(e,t){return e.classList?e.classList.contains(t):!!e.className.match(new RegExp("(\\s|^)"+t+"(\\s|$)"))}function uo(e,t){e.classList?e.classList.add(t):e.className+=" "+t}function co(e,t){if(e.classList)e.classList.remove(t);else{var n=new RegExp("(\\s|^)"+t+"(\\s|$)");e.className=e.className.replace(n," ")}}function Jt(e,t,n,r){e.addEventListener(t,n,r)}function Ut(e,t,n,r){e.removeEventListener(t,n,r)}function jr(e){return e?.ownerDocument||la}function Lr(e){return jr(e).documentElement}function Be(e){return jr(e).body}function Pe(e){var t;return((t=e?.ownerDocument)===null||t===void 0?void 0:t.defaultView)||window}function lo(e){return e&&"postMessage"in e&&"blur"in e&&"self"in e}function Hr(e){return we(e)&&e.nodeName&&e.nodeType&&"ownerDocument"in e}function da(e,t,n,r,i,o){for(var a=0;a<i;++a){var s=n+a*i,u=r+a*i;e[s]+=e[u]*o,t[s]+=t[u]*o}}function ha(e,t,n,r,i){for(var o=0;o<i;++o){var a=n+o*i,s=r+o*i,u=e[a],f=t[a];e[a]=e[s],e[s]=u,t[a]=t[s],t[s]=f}}function ga(e,t,n,r,i){for(var o=0;o<r;++o){var a=n+o*r;e[a]/=i,t[a]/=i}}function ze(e,t){t===void 0&&(t=Math.sqrt(e.length));for(var n=e.slice(),r=It(t),i=0;i<t;++i){var o=t*i+i;if(!kt(n[o],Ht)){for(var a=i+1;a<t;++a)if(n[t*i+a]){ha(n,r,i,a,t);break}}if(!kt(n[o],Ht))return[];for(ga(n,r,i,t,n[o]),a=0;a<t;++a){var s=a,u=n[a+i*t];kt(u,Ht)&&i!==a&&da(n,r,s,i,t,-u)}}return r}function Pn(e,t){for(var n=e.slice(),r=e.length;r<t-1;++r)n[r]=0;return n[t-1]=1,n}function Ge(e,t,n){if(t===void 0&&(t=Math.sqrt(e.length)),t===n)return e;for(var r=It(n),i=Math.min(t,n),o=0;o<i-1;++o){for(var a=0;a<i-1;++a)r[o*n+a]=e[o*t+a];r[(o+1)*n-1]=e[(o+1)*t-1],r[(n-1)*n+o]=e[(t-1)*t+o]}return r[n*n-1]=e[t*t-1],r}function Kn(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=It(e);return t.forEach(function(i){r=Vt(r,i,e)}),r}function Vt(e,t,n){n===void 0&&(n=Math.sqrt(e.length));var r=[],i=e.length/n,o=t.length/i;if(!i)return t;if(!o)return e;for(var a=0;a<n;++a)for(var s=0;s<o;++s){r[s*n+a]=0;for(var u=0;u<i;++u)r[s*n+a]+=e[u*n+a]*t[s*i+u]}return r}function Wt(e,t){for(var n=Math.min(e.length,t.length),r=e.slice(),i=0;i<n;++i)r[i]=r[i]+t[i];return r}function bt(e,t){for(var n=Math.min(e.length,t.length),r=e.slice(),i=0;i<n;++i)r[i]=r[i]-t[i];return r}function va(e,t){return t===void 0&&(t=e.length===6),t?[e[0],e[1],0,e[2],e[3],0,e[4],e[5],1]:e}function fo(e,t){return t===void 0&&(t=e.length===9),t?[e[0],e[1],e[3],e[4],e[6],e[7]]:e}function xe(e,t,n){n===void 0&&(n=t.length);var r=Vt(e,t,n),i=r[n-1];return r.map(function(o){return o/i})}function ma(e,t){return Vt(e,[1,0,0,0,0,Math.cos(t),Math.sin(t),0,0,-Math.sin(t),Math.cos(t),0,0,0,0,1],4)}function ba(e,t){return Vt(e,[Math.cos(t),0,-Math.sin(t),0,0,1,0,0,Math.sin(t),0,Math.cos(t),0,0,0,0,1],4)}function xa(e,t){return Vt(e,rr(t,4))}function In(e,t){var n=t[0],r=n===void 0?1:n,i=t[1],o=i===void 0?1:i,a=t[2];return Vt(e,[r,0,0,0,0,o,0,0,0,0,a===void 0?1:a,0,0,0,0,1],4)}function ur(e,t){var n=t[0],r=n===void 0?0:n,i=t[1],o=i===void 0?0:i,a=t[2];return Vt(e,[1,0,0,0,0,1,0,0,0,0,1,0,r,o,a===void 0?0:a,1],4)}function yi(e,t){return Vt(e,t,4)}function rr(e,t){var n=Math.cos(e),r=Math.sin(e),i=It(t);return i[0]=n,i[1]=r,i[t]=-r,i[t+1]=n,i}function It(e){for(var t=e*e,n=[],r=0;r<t;++r)n[r]=r%(e+1)?0:1;return n}function po(e,t){for(var n=It(t),r=Math.min(e.length,t-1),i=0;i<r;++i)n[(t+1)*i]=e[i];return n}function Ie(e,t){for(var n=It(t),r=Math.min(e.length,t-1),i=0;i<r;++i)n[t*(t-1)+i]=e[i];return n}function ho(e,t,n,r,i,o,a,s){var u=e[0],f=e[1],p=t[0],c=t[1],l=n[0],h=n[1],d=r[0],g=r[1],v=i[0],b=i[1],x=o[0],y=o[1],E=a[0],M=a[1],m=s[0],S=s[1],_=ze([u,0,p,0,l,0,d,0,f,0,c,0,h,0,g,0,1,0,1,0,1,0,1,0,0,u,0,p,0,l,0,d,0,f,0,c,0,h,0,g,0,1,0,1,0,1,0,1,-v*u,-b*u,-x*p,-y*p,-E*l,-M*l,-m*d,-S*d,-v*f,-b*f,-x*c,-y*c,-E*h,-M*h,-m*g,-S*g],8);if(!_.length)return[];var k=Vt(_,[v,b,x,y,E,M,m,S],8);return k[8]=1,Ge(function(F,O){O===void 0&&(O=Math.sqrt(F.length));for(var w=[],D=0;D<O;++D)for(var R=0;R<O;++R)w[R*O+D]=F[O*D+R];return w}(k),3,4)}var vn=function(){return vn=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},vn.apply(this,arguments)};function Vr(e,t){return t===void 0&&(t=0),We(Qe(e,t))}function We(e){var t=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];return e.forEach(function(n){var r=n.matrixFunction,i=n.functionValue;r&&(t=r(t,i))}),t}function Qe(e,t){return t===void 0&&(t=0),(ne(e)?e:Mn(e)).map(function(n){var r,i=!(r=/([^(]*)\(([\s\S]*)\)([\s\S]*)/g.exec(n))||r.length<4?{}:{prefix:r[1],value:r[2],suffix:r[3]},o=i.prefix,a=i.value,s=null,u=o,f="";if(o==="translate"||o==="translateX"||o==="translate3d"){var p=we(t)?vn(vn({},t),{"o%":t["%"]}):{"%":t,"o%":t},c=hn(a).map(function(k,F){return p["%"]=F===0&&"x%"in p?t["x%"]:F===1&&"y%"in p?t["y%"]:t["o%"],ae(k,p)}),l=c[0],h=c[1],d=h===void 0?0:h,g=c[2];s=ur,f=[l,d,g===void 0?0:g]}else if(o==="translateY")s=ur,f=[0,d=ae(a,we(t)?vn({"%":t["y%"]},t):{"%":t}),0];else if(o==="translateZ")s=ur,f=[0,0,parseFloat(a)];else if(o==="scale"||o==="scale3d"){var v=hn(a).map(function(k){return parseFloat(k)}),b=v[0],x=v[1],y=x===void 0?b:x,E=v[2];s=In,f=[b,y,E===void 0?1:E]}else if(o==="scaleX")s=In,f=[b=parseFloat(a),1,1];else if(o==="scaleY")s=In,f=[1,y=parseFloat(a),1];else if(o==="scaleZ")s=In,f=[1,1,parseFloat(a)];else if(o==="rotate"||o==="rotateZ"||o==="rotateX"||o==="rotateY"){var M=nr(a),m=M.unit,S=M.value;o==="rotate"||o==="rotateZ"?(u="rotateZ",s=xa):o==="rotateX"?s=ma:o==="rotateY"&&(s=ba),f=m==="rad"?S:S*Math.PI/180}else if(o==="matrix3d")s=yi,f=hn(a).map(function(k){return parseFloat(k)});else if(o==="matrix"){var _=hn(a).map(function(k){return parseFloat(k)});s=yi,f=[_[0],_[1],0,0,_[2],_[3],0,0,0,0,1,0,_[4],_[5],0,1]}else u="";return{name:o,functionName:u,value:a,matrixFunction:s,functionValue:f}})}var ya=function(){function e(){this.keys=[],this.values=[]}var t=e.prototype;return t.get=function(n){return this.values[this.keys.indexOf(n)]},t.set=function(n,r){var i=this.keys,o=this.values,a=i.indexOf(n),s=a===-1?i.length:a;i[s]=n,o[s]=r},e}(),Ea=function(){function e(){this.object={}}var t=e.prototype;return t.get=function(n){return this.object[n]},t.set=function(n,r){this.object[n]=r},e}(),Sa=typeof Map=="function",Da=function(){function e(){}var t=e.prototype;return t.connect=function(n,r){this.prev=n,this.next=r,n&&(n.next=this),r&&(r.prev=this)},t.disconnect=function(){var n=this.prev,r=this.next;n&&(n.next=r),r&&(r.prev=n)},t.getIndex=function(){for(var n=this,r=-1;n;)n=n.prev,++r;return r},e}(),Ma=function(){function e(n,r,i,o,a,s,u,f){this.prevList=n,this.list=r,this.added=i,this.removed=o,this.changed=a,this.maintained=s,this.changedBeforeAdded=u,this.fixed=f}var t=e.prototype;return Object.defineProperty(t,"ordered",{get:function(){return this.cacheOrdered||this.caculateOrdered(),this.cacheOrdered},enumerable:!0,configurable:!0}),Object.defineProperty(t,"pureChanged",{get:function(){return this.cachePureChanged||this.caculateOrdered(),this.cachePureChanged},enumerable:!0,configurable:!0}),t.caculateOrdered=function(){var n,r,i,o,a=(n=this.changedBeforeAdded,r=this.fixed,i=[],o=[],n.forEach(function(f){var p=f[0],c=f[1],l=new Da;i[p]=l,o[c]=l}),i.forEach(function(f,p){f.connect(i[p-1])}),n.filter(function(f,p){return!r[p]}).map(function(f,p){var c=f[0],l=f[1];if(c===l)return[0,0];var h=i[c],d=o[l-1],g=h.getIndex();return h.disconnect(),d?h.connect(d,d.next):h.connect(void 0,i[0]),[g,h.getIndex()]})),s=this.changed,u=[];this.cacheOrdered=a.filter(function(f,p){var c=f[0],l=f[1],h=s[p],d=h[0],g=h[1];if(c!==l)return u.push([d,g]),!0}),this.cachePureChanged=u},e}();function go(e,t,n){var r=Sa?Map:n?Ea:ya,i=n||function(x){return x},o=[],a=[],s=[],u=e.map(i),f=t.map(i),p=new r,c=new r,l=[],h=[],d={},g=[],v=0,b=0;return u.forEach(function(x,y){p.set(x,y)}),f.forEach(function(x,y){c.set(x,y)}),u.forEach(function(x,y){var E=c.get(x);E===void 0?(++b,a.push(y)):d[E]=b}),f.forEach(function(x,y){var E=p.get(x);E===void 0?(o.push(y),++v):(s.push([E,y]),b=d[y]||0,l.push([E-b,y-v]),h.push(y===E),E!==y&&g.push([E,y]))}),a.reverse(),new Ma(e,t,o,a,g,s,l,h)}var Ei,wa=function(){function e(t,n){t===void 0&&(t=[]),this.findKeyCallback=n,this.list=[].slice.call(t)}return e.prototype.update=function(t){var n=[].slice.call(t),r=go(this.list,n,this.findKeyCallback);return this.list=n,r},e}(),vo=function(e,t){return(vo=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var i in r)r.hasOwnProperty(i)&&(n[i]=r[i])})(e,t)},Ca=typeof Map=="function"?void 0:(Ei=0,function(e){return e.__DIFF_KEY__||(e.__DIFF_KEY__=++Ei)}),mo=function(e){function t(n){return n===void 0&&(n=[]),e.call(this,n,Ca)||this}return function(n,r){function i(){this.constructor=n}vo(n,r),n.prototype=r===null?Object.create(r):(i.prototype=r.prototype,new i)}(t,e),t}(wa),Cr=function(){return Cr=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},Cr.apply(this,arguments)},bo=function(){function e(){this._events={}}var t=e.prototype;return t.on=function(n,r){if(we(n))for(var i in n)this.on(i,n[i]);else this._addEvent(n,r,{});return this},t.off=function(n,r){if(n)if(we(n))for(var i in n)this.off(i);else if(r){var o=this._events[n];if(o){var a=$e(o,function(s){return s.listener===r});a>-1&&o.splice(a,1)}}else this._events[n]=[];else this._events={};return this},t.once=function(n,r){var i=this;return r&&this._addEvent(n,r,{once:!0}),new Promise(function(o){i._addEvent(n,o,{once:!0})})},t.emit=function(n,r){var i=this;r===void 0&&(r={});var o=this._events[n];if(!n||!o)return!0;var a=!1;return r.eventType=n,r.stop=function(){a=!0},r.currentTarget=this,function(){for(var s=0,u=0,f=arguments.length;u<f;u++)s+=arguments[u].length;var p=Array(s),c=0;for(u=0;u<f;u++)for(var l=arguments[u],h=0,d=l.length;h<d;h++,c++)p[c]=l[h];return p}(o).forEach(function(s){s.listener(r),s.once&&i.off(n,s.listener)}),!a},t.trigger=function(n,r){return r===void 0&&(r={}),this.emit(n,r)},t._addEvent=function(n,r,i){var o=this._events;o[n]=o[n]||[],o[n].push(Cr({listener:r},i))},e}();function oe(e){return kt(e,Ht)}function Si(e){return e.length<3?0:Math.abs(function(t){for(var n=0,r=t.length-1;r>=0;--r)n+=t[r];return n}(e.map(function(t,n){var r=e[n+1]||e[0];return t[0]*r[1]-r[0]*t[1]})))/2}function Di(e,t){var n=t.width,r=t.height,i=t.left,o=t.top,a=Ve(e),s=a.minX,u=a.minY,f=a.maxX,p=a.maxY,c=n/(f-s),l=r/(p-u);return e.map(function(h){return[i+(h[0]-s)*c,o+(h[1]-u)*l]})}function Ve(e){var t=e.map(function(r){return r[0]}),n=e.map(function(r){return r[1]});return{minX:Math.min.apply(Math,t),minY:Math.min.apply(Math,n),maxX:Math.max.apply(Math,t),maxY:Math.max.apply(Math,n)}}function cr(e,t,n){var r=e[0],i=e[1],o=Ve(t),a=o.minX,s=o.maxX,u=[[a,i],[s,i]],f=Jn(u[0],u[1]),p=_r(t),c=[];if(p.forEach(function(d){var g,v=Jn(d[0],d[1]),b=d[0];g=v,f.every(function(x,y){return oe(x-g[y])===0})?c.push({pos:e,line:d,type:"line"}):xo(Ur(f,v),[u,d]).forEach(function(x){d.some(function(y){return M=x,!oe((E=y)[0]-M[0])&&!oe(E[1]-M[1]);var E,M})?c.push({pos:x,line:d,type:"point"}):oe(b[1]-i)!==0&&c.push({pos:x,line:d,type:"intersection"})})}),he(c,function(d){return d[0]===r}))return!0;var l=0,h={};return c.forEach(function(d){var g=d.pos,v=d.type,b=d.line;if(!(g[0]>r))if(v==="intersection")++l;else{if(v==="line")return;if(v==="point"){var x=he(b,function(M){return M[1]!==i}),y=h[g[0]],E=x[1]>i?1:-1;y?y!==E&&++l:h[g[0]]=E}}}),l%2==1}function Jn(e,t){var n=e[0],r=e[1],i=t[0]-n,o=t[1]-r;Math.abs(i)<Ht&&(i=0),Math.abs(o)<Ht&&(o=0);var a=0,s=0,u=0;return i?o?(s=1,u=-(a=-o/i)*n-r):(s=1,u=-r):o&&(a=-1,u=n),[a,s,u]}function Ur(e,t){var n=e[0],r=e[1],i=e[2],o=t[0],a=t[1],s=t[2],u=n===0&&o===0,f=r===0&&a===0,p=[];if(u&&f)return[];if(u){var c=-i/r;return c!==-s/a?[]:[[-1/0,c],[1/0,c]]}if(f){var l=-i/n;return l!==-s/o?[]:[[l,-1/0],[l,1/0]]}if(n===0)p=[[h=-(a*(d=-i/r)+s)/o,d]];else if(o===0)p=[[h=-(r*(d=-s/a)+i)/n,d]];else if(r===0)p=[[h=-i/n,d=-(o*h+s)/a]];else if(a===0)p=[[h=-s/o,d=-(n*h+i)/r]];else{var h,d;p=[[h=(r*s-a*i)/(a*n-r*o),d=-(n*h+i)/r]]}return p.map(function(g){return[g[0],g[1]]})}function xo(e,t){var n=t.map(function(c){return[0,1].map(function(l){return[Math.min(c[0][l],c[1][l]),Math.max(c[0][l],c[1][l])]})}),r=[];if(e.length===2){var i=e[0],o=i[0],a=i[1];if(oe(o-e[1][0])){if(!oe(a-e[1][1])){var s=Math.max.apply(Math,n.map(function(c){return c[0][0]})),u=Math.min.apply(Math,n.map(function(c){return c[0][1]}));if(oe(s-u)>0)return[];r=[[s,a],[u,a]]}}else{var f=Math.max.apply(Math,n.map(function(c){return c[1][0]})),p=Math.min.apply(Math,n.map(function(c){return c[1][1]}));if(oe(f-p)>0)return[];r=[[o,f],[o,p]]}}return r.length||(r=e.filter(function(c){var l=c[0],h=c[1];return n.every(function(d){return 0<=oe(l-d[0][0])&&0<=oe(d[0][1]-l)&&0<=oe(h-d[1][0])&&0<=oe(d[1][1]-h)})})),r.map(function(c){return[oe(c[0]),oe(c[1])]})}function _r(e){return function(){for(var t=0,n=0,r=arguments.length;n<r;n++)t+=arguments[n].length;var i=Array(t),o=0;for(n=0;n<r;n++)for(var a=arguments[n],s=0,u=a.length;s<u;s++,o++)i[o]=a[s];return i}(e.slice(1),[e[0]]).map(function(t,n){return[e[n],t]})}var yo=function(e,t){return(yo=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var i in r)r.hasOwnProperty(i)&&(n[i]=r[i])})(e,t)},Lt=function(){return Lt=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},Lt.apply(this,arguments)};function lr(e){return 180*(t=[e[0].clientX,e[0].clientY],r=(n=[e[1].clientX,e[1].clientY])[0]-t[0],i=n[1]-t[1],((o=Math.atan2(i,r))>=0?o:o+2*Math.PI)/Math.PI);var t,n,r,i,o}function Yn(e){return e?e.touches?function(t){for(var n=Math.min(t.length,2),r=[],i=0;i<n;++i)r.push(wi(t[i]));return r}(e.touches):[wi(e)]:[]}function Mi(e,t,n){var r=n.length,i=mn(e,r),o=i.clientX,a=i.clientY,s=i.originalClientX,u=i.originalClientY,f=mn(t,r),p=f.clientX,c=f.clientY,l=mn(n,r);return{clientX:s,clientY:u,deltaX:o-p,deltaY:a-c,distX:o-l.clientX,distY:a-l.clientY}}function fr(e){return Math.sqrt(Math.pow(e[0].clientX-e[1].clientX,2)+Math.pow(e[0].clientY-e[1].clientY,2))}function wi(e){return{clientX:e.clientX,clientY:e.clientY}}function mn(e,t){t===void 0&&(t=e.length);for(var n={clientX:0,clientY:0,originalClientX:0,originalClientY:0},r=Math.min(e.length,t),i=0;i<r;++i){var o=e[i];n.originalClientX+="originalClientX"in o?o.originalClientX:o.clientX,n.originalClientY+="originalClientY"in o?o.originalClientY:o.clientY,n.clientX+=o.clientX,n.clientY+=o.clientY}return t?{clientX:n.clientX/t,clientY:n.clientY/t,originalClientX:n.originalClientX/t,originalClientY:n.originalClientY/t}:n}var pr=function(){function e(t){this.prevClients=[],this.startClients=[],this.movement=0,this.length=0,this.startClients=t,this.prevClients=t,this.length=t.length}return e.prototype.getAngle=function(t){return t===void 0&&(t=this.prevClients),lr(t)},e.prototype.getRotation=function(t){return t===void 0&&(t=this.prevClients),lr(t)-lr(this.startClients)},e.prototype.getPosition=function(t,n){t===void 0&&(t=this.prevClients);var r=Mi(t||this.prevClients,this.prevClients,this.startClients),i=r.deltaX,o=r.deltaY;return this.movement+=Math.sqrt(i*i+o*o),this.prevClients=t,r},e.prototype.getPositions=function(t){t===void 0&&(t=this.prevClients);for(var n=this.prevClients,r=this.startClients,i=Math.min(this.length,n.length),o=[],a=0;a<i;++a)o[a]=Mi([t[a]],[n[a]],[r[a]]);return o},e.prototype.getMovement=function(t){var n=this.movement;if(!t)return n;var r=mn(t,this.length),i=mn(this.prevClients,this.length),o=r.clientX-i.clientX,a=r.clientY-i.clientY;return Math.sqrt(o*o+a*a)+n},e.prototype.getDistance=function(t){return t===void 0&&(t=this.prevClients),fr(t)},e.prototype.getScale=function(t){return t===void 0&&(t=this.prevClients),fr(t)/fr(this.startClients)},e.prototype.move=function(t,n){this.startClients.forEach(function(r){r.clientX-=t,r.clientY-=n}),this.prevClients.forEach(function(r){r.clientX-=t,r.clientY-=n})},e}(),Ci=["textarea","input"],_a=function(e){function t(n,r){r===void 0&&(r={});var i=e.call(this)||this;i.options={},i.flag=!1,i.pinchFlag=!1,i.data={},i.isDrag=!1,i.isPinch=!1,i.clientStores=[],i.targets=[],i.prevTime=0,i.doubleFlag=!1,i._useMouse=!1,i._useTouch=!1,i._useDrag=!1,i._dragFlag=!1,i._isTrusted=!1,i._isMouseEvent=!1,i._isSecondaryButton=!1,i._preventMouseEvent=!1,i._prevInputEvent=null,i._isDragAPI=!1,i._isIdle=!0,i._preventMouseEventId=0,i._window=window,i.onDragStart=function(l,h){if(h===void 0&&(h=!0),i.flag||l.cancelable!==!1){var d=l.type.indexOf("drag")>=-1;if(!i.flag||!d){i._isDragAPI=!0;var g=i.options,v=g.container,b=g.pinchOutside,x=g.preventWheelClick,y=g.preventRightClick,E=g.preventDefault,M=g.checkInput,m=g.dragFocusedInput,S=g.preventClickEventOnDragStart,_=g.preventClickEventOnDrag,k=g.preventClickEventByCondition,F=i._useTouch,O=!i.flag;if(i._isSecondaryButton=l.which===3||l.button===2,x&&(l.which===2||l.button===1)||y&&(l.which===3||l.button===2))return i.stop(),!1;if(O){var w=i._window.document.activeElement,D=l.target;if(D){var R=D.tagName.toLowerCase(),P=Ci.indexOf(R)>-1,B=D.isContentEditable;if(P||B){if(M||!m&&w===D)return!1;if(w&&(w===D||B&&w.isContentEditable&&w.contains(D))){if(!m)return!1;D.blur()}}else if((E||l.type==="touchstart")&&w){var A=w.tagName.toLowerCase();(w.isContentEditable||Ci.indexOf(A)>-1)&&w.blur()}(S||_||k)&&Jt(i._window,"click",i._onClick,!0)}i.clientStores=[new pr(Yn(l))],i._isIdle=!1,i.flag=!0,i.isDrag=!1,i._isTrusted=h,i._dragFlag=!0,i._prevInputEvent=l,i.data={},i.doubleFlag=Zn()-i.prevTime<200,i._isMouseEvent=(G=l)&&(G.type.indexOf("mouse")>-1||"button"in G),!i._isMouseEvent&&i._preventMouseEvent&&i._allowMouseEvent(),(i._preventMouseEvent||i.emit("dragStart",Lt(Lt({data:i.data,datas:i.data,inputEvent:l,isMouseEvent:i._isMouseEvent,isSecondaryButton:i._isSecondaryButton,isTrusted:h,isDouble:i.doubleFlag},i.getCurrentStore().getPosition()),{preventDefault:function(){l.preventDefault()},preventDrag:function(){i._dragFlag=!1}})))===!1&&i.stop(),i._isMouseEvent&&i.flag&&E&&l.preventDefault()}if(!i.flag)return!1;var z=0;if(O?(i._attchDragEvent(),F&&b&&(z=setTimeout(function(){Jt(v,"touchstart",i.onDragStart,{passive:!1})}))):F&&b&&Ut(v,"touchstart",i.onDragStart),i.flag&&function(I){return I.touches&&I.touches.length>=2}(l)){if(clearTimeout(z),O&&l.touches.length!==l.changedTouches.length)return;i.pinchFlag||i.onPinchStart(l)}}}var G},i.onDrag=function(l,h){if(i.flag){var d=i.options.preventDefault;!i._isMouseEvent&&d&&l.preventDefault(),i._prevInputEvent=l;var g=Yn(l),v=i.moveClients(g,l,!1);if(i._dragFlag){if((i.pinchFlag||v.deltaX||v.deltaY)&&(i._preventMouseEvent||i.emit("drag",Lt(Lt({},v),{isScroll:!!h,inputEvent:l})))===!1)return void i.stop();i.pinchFlag&&i.onPinch(l,g)}i.getCurrentStore().getPosition(g,!0)}},i.onDragEnd=function(l){if(i.flag){var h=i.options,d=h.pinchOutside,g=h.container,v=h.preventClickEventOnDrag,b=h.preventClickEventOnDragStart,x=h.preventClickEventByCondition,y=i.isDrag;(v||b||x)&&requestAnimationFrame(function(){i._allowClickEvent()}),x||b||!v||y||i._allowClickEvent(),i._useTouch&&d&&Ut(g,"touchstart",i.onDragStart),i.pinchFlag&&i.onPinchEnd(l);var E=l?.touches?Yn(l):[];E.length!==0&&i.options.keepDragging?i._addStore(new pr(E)):i.flag=!1;var M=i._getPosition(),m=Zn(),S=!y&&i.doubleFlag;i._prevInputEvent=null,i.prevTime=y||S?0:m,i.flag||(i._dettachDragEvent(),i._preventMouseEvent||i.emit("dragEnd",Lt({data:i.data,datas:i.data,isDouble:S,isDrag:y,isClick:!y,isMouseEvent:i._isMouseEvent,isSecondaryButton:i._isSecondaryButton,inputEvent:l,isTrusted:i._isTrusted},M)),i.clientStores=[],i._isMouseEvent||(i._preventMouseEvent=!0,clearTimeout(i._preventMouseEventId),i._preventMouseEventId=setTimeout(function(){i._preventMouseEvent=!1},200)),i._isIdle=!0)}},i.onBlur=function(){i.onDragEnd()},i._allowClickEvent=function(){Ut(i._window,"click",i._onClick,!0)},i._onClick=function(l){i._allowClickEvent(),i._allowMouseEvent();var h=i.options.preventClickEventByCondition;h?.(l)||(l.stopPropagation(),l.preventDefault())},i._onContextMenu=function(l){i.options.preventRightClick?i.onDragEnd(l):l.preventDefault()},i._passCallback=function(){};var o=[].concat(n),a=o[0];i._window=lo(a)?a:Pe(a),i.options=Lt({checkInput:!1,container:a&&!("document"in a)?Pe(a):a,preventRightClick:!0,preventWheelClick:!0,preventClickEventOnDragStart:!1,preventClickEventOnDrag:!1,preventClickEventByCondition:null,preventDefault:!0,checkWindowBlur:!1,keepDragging:!1,pinchThreshold:0,events:["touch","mouse"]},r);var s=i.options,u=s.container,f=s.events,p=s.checkWindowBlur;if(i._useDrag=f.indexOf("drag")>-1,i._useTouch=f.indexOf("touch")>-1,i._useMouse=f.indexOf("mouse")>-1,i.targets=o,i._useDrag&&o.forEach(function(l){Jt(l,"dragstart",i.onDragStart)}),i._useMouse&&(o.forEach(function(l){Jt(l,"mousedown",i.onDragStart),Jt(l,"mousemove",i._passCallback)}),Jt(u,"contextmenu",i._onContextMenu)),p&&Jt(Pe(),"blur",i.onBlur),i._useTouch){var c={passive:!1};o.forEach(function(l){Jt(l,"touchstart",i.onDragStart,c),Jt(l,"touchmove",i._passCallback,c)})}return i}return function(n,r){function i(){this.constructor=n}yo(n,r),n.prototype=r===null?Object.create(r):(i.prototype=r.prototype,new i)}(t,e),t.prototype.stop=function(){this.isDrag=!1,this.data={},this.clientStores=[],this.pinchFlag=!1,this.doubleFlag=!1,this.prevTime=0,this.flag=!1,this._isIdle=!0,this._allowClickEvent(),this._dettachDragEvent(),this._isDragAPI=!1},t.prototype.getMovement=function(n){return this.getCurrentStore().getMovement(n)+this.clientStores.slice(1).reduce(function(r,i){return r+i.movement},0)},t.prototype.isDragging=function(){return this.isDrag},t.prototype.isIdle=function(){return this._isIdle},t.prototype.isFlag=function(){return this.flag},t.prototype.isPinchFlag=function(){return this.pinchFlag},t.prototype.isDoubleFlag=function(){return this.doubleFlag},t.prototype.isPinching=function(){return this.isPinch},t.prototype.scrollBy=function(n,r,i,o){o===void 0&&(o=!0),this.flag&&(this.clientStores[0].move(n,r),o&&this.onDrag(i,!0))},t.prototype.move=function(n,r){var i=n[0],o=n[1],a=this.getCurrentStore().prevClients;return this.moveClients(a.map(function(s){var u=s.clientX,f=s.clientY;return{clientX:u+i,clientY:f+o,originalClientX:u,originalClientY:f}}),r,!0)},t.prototype.triggerDragStart=function(n){this.onDragStart(n,!1)},t.prototype.setEventData=function(n){var r=this.data;for(var i in n)r[i]=n[i];return this},t.prototype.setEventDatas=function(n){return this.setEventData(n)},t.prototype.getCurrentEvent=function(n){return n===void 0&&(n=this._prevInputEvent),Lt(Lt({data:this.data,datas:this.data},this._getPosition()),{movement:this.getMovement(),isDrag:this.isDrag,isPinch:this.isPinch,isScroll:!1,inputEvent:n})},t.prototype.getEventData=function(){return this.data},t.prototype.getEventDatas=function(){return this.data},t.prototype.unset=function(){var n=this,r=this.targets,i=this.options.container;this.off(),Ut(this._window,"blur",this.onBlur),this._useDrag&&r.forEach(function(o){Ut(o,"dragstart",n.onDragStart)}),this._useMouse&&(r.forEach(function(o){Ut(o,"mousedown",n.onDragStart)}),Ut(i,"contextmenu",this._onContextMenu)),this._useTouch&&(r.forEach(function(o){Ut(o,"touchstart",n.onDragStart)}),Ut(i,"touchstart",this.onDragStart)),this._prevInputEvent=null,this._allowClickEvent(),this._dettachDragEvent()},t.prototype.onPinchStart=function(n){var r=this,i=this.options.pinchThreshold;if(!(this.isDrag&&this.getMovement()>i)){var o=new pr(Yn(n));this.pinchFlag=!0,this._addStore(o),this.emit("pinchStart",Lt(Lt({data:this.data,datas:this.data,angle:o.getAngle(),touches:this.getCurrentStore().getPositions()},o.getPosition()),{inputEvent:n,isTrusted:this._isTrusted,preventDefault:function(){n.preventDefault()},preventDrag:function(){r._dragFlag=!1}}))===!1&&(this.pinchFlag=!1)}},t.prototype.onPinch=function(n,r){if(this.flag&&this.pinchFlag&&!(r.length<2)){var i=this.getCurrentStore();this.isPinch=!0,this.emit("pinch",Lt(Lt({data:this.data,datas:this.data,movement:this.getMovement(r),angle:i.getAngle(r),rotation:i.getRotation(r),touches:i.getPositions(r),scale:i.getScale(r),distance:i.getDistance(r)},i.getPosition(r)),{inputEvent:n,isTrusted:this._isTrusted}))}},t.prototype.onPinchEnd=function(n){if(this.pinchFlag){var r=this.isPinch;this.isPinch=!1,this.pinchFlag=!1;var i=this.getCurrentStore();this.emit("pinchEnd",Lt(Lt({data:this.data,datas:this.data,isPinch:r,touches:i.getPositions()},i.getPosition()),{inputEvent:n}))}},t.prototype.getCurrentStore=function(){return this.clientStores[0]},t.prototype.moveClients=function(n,r,i){var o=this._getPosition(n,i),a=this.isDrag;(o.deltaX||o.deltaY)&&(this.isDrag=!0);var s=!1;return!a&&this.isDrag&&(s=!0),Lt(Lt({data:this.data,datas:this.data},o),{movement:this.getMovement(n),isDrag:this.isDrag,isPinch:this.isPinch,isScroll:!1,isMouseEvent:this._isMouseEvent,isSecondaryButton:this._isSecondaryButton,inputEvent:r,isTrusted:this._isTrusted,isFirstDrag:s})},t.prototype._addStore=function(n){this.clientStores.splice(0,0,n)},t.prototype._getPosition=function(n,r){var i=this.getCurrentStore().getPosition(n,r),o=this.clientStores.slice(1).reduce(function(u,f){var p=f.getPosition();return u.distX+=p.distX,u.distY+=p.distY,u},i),a=o.distX,s=o.distY;return Lt(Lt({},i),{distX:a,distY:s})},t.prototype._attchDragEvent=function(){var n=this._window,r=this.options.container,i={passive:!1};this._isDragAPI&&(Jt(r,"dragover",this.onDrag,i),Jt(n,"dragend",this.onDragEnd)),this._useMouse&&(Jt(r,"mousemove",this.onDrag),Jt(n,"mouseup",this.onDragEnd)),this._useTouch&&(Jt(r,"touchmove",this.onDrag,i),Jt(n,"touchend",this.onDragEnd,i),Jt(n,"touchcancel",this.onDragEnd,i))},t.prototype._dettachDragEvent=function(){var n=this._window,r=this.options.container;this._isDragAPI&&(Ut(r,"dragover",this.onDrag),Ut(n,"dragend",this.onDragEnd)),this._useMouse&&(Ut(r,"mousemove",this.onDrag),Ut(n,"mouseup",this.onDragEnd)),this._useTouch&&(Ut(r,"touchstart",this.onDragStart),Ut(r,"touchmove",this.onDrag),Ut(n,"touchend",this.onDragEnd),Ut(n,"touchcancel",this.onDragEnd))},t.prototype._allowMouseEvent=function(){this._preventMouseEvent=!1,clearTimeout(this._preventMouseEventId)},t}(bo);function Ta(e){var t="rCS"+function(n){for(var r=5381,i=n.length;i;)r=33*r^n.charCodeAt(--i);return r>>>0}(e).toString(36);return{className:t,inject:function(n,r){r===void 0&&(r={});var i=function(s){if(s&&s.getRootNode){var u=s.getRootNode();if(u.nodeType===11)return u}}(n),o=(i||n.ownerDocument||document).querySelector('style[data-styled-id="'.concat(t,'"]'));if(o){var a=parseFloat(o.getAttribute("data-styled-count"))||0;o.setAttribute("data-styled-count","".concat(a+1))}else o=function(s,u,f,p,c){var l,h,d=jr(p),g=d.createElement("style");return g.setAttribute("type","text/css"),g.setAttribute("data-styled-id",s),g.setAttribute("data-styled-count","1"),f.nonce&&g.setAttribute("nonce",f.nonce),g.innerHTML=(l=s,h=u,f.original?h:h.replace(/([^};{\s}][^};{]*|^\s*){/gm,function(v,b){var x=b.trim();return(x?hn(x):[""]).map(function(y){var E=y.trim();return E.indexOf("@")===0?E:E.indexOf(":global")>-1?E.replace(/\:global/g,""):E.indexOf(":host")>-1?"".concat(E.replace(/\:host/g,".".concat(l))):E?".".concat(l," ").concat(E):".".concat(l)}).join(", ")+" {"})),(c||d.head||d.body).appendChild(g),g}(t,e,r,n,i);return{destroy:function(){var s,u=parseFloat(o.getAttribute("data-styled-count"))||0;u<=1?(o.remove?o.remove():(s=o.parentNode)===null||s===void 0||s.removeChild(o),o=null):o.setAttribute("data-styled-count","".concat(u-1))}}}}}var Tr=function(){return Tr=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},Tr.apply(this,arguments)};function Eo(e,t){var n=Ta(t),r=n.className;return ee.reactExports.forwardRef(function(i,o){var a=i.className,s=a===void 0?"":a;i.cspNonce;var u=function(p,c){var l={};for(var h in p)Object.prototype.hasOwnProperty.call(p,h)&&c.indexOf(h)<0&&(l[h]=p[h]);if(p!=null&&typeof Object.getOwnPropertySymbols=="function"){var d=0;for(h=Object.getOwnPropertySymbols(p);d<h.length;d++)c.indexOf(h[d])<0&&Object.prototype.propertyIsEnumerable.call(p,h[d])&&(l[h[d]]=p[h[d]])}return l}(i,["className","cspNonce"]),f=ee.reactExports.useRef();return ee.reactExports.useImperativeHandle(o,function(){return f.current},[]),ee.reactExports.useEffect(function(){var p=n.inject(f.current,{nonce:i.cspNonce});return function(){p.destroy()}},[]),ee.reactExports.createElement(e,Tr({ref:f,"data-styled-id":r,className:"".concat(s," ").concat(r)},u))})}var So=function(e,t){return(So=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i])})(e,t)};function Rn(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}So(e,t),e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var C=function(){return C=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},C.apply(this,arguments)};function T(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(t===void 0||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(s){i={error:s}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function K(e,t,n){if(arguments.length===2)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}function Cn(e,t){return C({events:[],props:[],name:e},t)}var Oa,_i,Ti,Pa=["n","w","s","e"],Zr=["n","w","s","e","nw","ne","sw","se"],rn=function(){if(typeof navigator>"u"||!navigator||!navigator.userAgentData)return!1;var e=navigator.userAgentData,t=e.brands||e.uaList;return!(!t||!t.length)}()?function(){var e=navigator.userAgentData,t=(e.uaList||e.brands).slice(),n=e.mobile||!1,r=t[0],i=(e.platform||navigator.platform).toLowerCase(),o={name:r.brand,version:r.version,majorVersion:-1,webkit:!1,webkitVersion:"-1",chromium:!1,chromiumVersion:"-1",webview:!!zn(no,t).brand||di(ci())},a={name:"unknown",version:"-1",majorVersion:-1};o.webkit=!o.chromium&&Xr(sr,function(c){return eo(t,c)});var s=zn(fi,t);if(o.chromium=!!s.brand,o.chromiumVersion=s.version||"-1",!o.chromium){var u=zn(sr,t);o.webkit=!!u.brand,o.webkitVersion=u.version||"-1"}var f=to(pi,function(c){return new RegExp(""+c.test,"g").exec(i)});a.name=f?f.id:"";var p=zn(li,t);return o.name=p.brand||o.name,o.version=(p.brand,p.version),o.webkit&&(a.name=n?"ios":"mac"),a.name==="ios"&&o.webview&&(o.version="-1"),a.version=Sr(a.version),o.version=Sr(o.version),a.majorVersion=parseInt(a.version,10),o.majorVersion=parseInt(o.version,10),{browser:o,os:a,isMobile:n,isHints:!0}}():function(){var e=ci(Oa),t=!!/mobi/g.exec(e),n={name:"unknown",version:"-1",majorVersion:-1,webview:di(e),chromium:!1,chromiumVersion:"-1",webkit:!1,webkitVersion:"-1"},r={name:"unknown",version:"-1",majorVersion:-1},i=dn(li,e),o=i.preset,a=i.version,s=dn(pi,e),u=s.preset,f=s.version,p=dn(fi,e);if(n.chromium=!!p.preset,n.chromiumVersion=p.version,!n.chromium){var c=dn(sr,e);n.webkit=!!c.preset,n.webkitVersion=c.version}return u&&(r.name=u.id,r.version=f,r.majorVersion=parseInt(f,10)),o&&(n.name=o.id,n.version=a,n.webview&&r.name==="ios"&&n.name!=="safari"&&(n.webview=!1)),n.majorVersion=parseInt(n.version,10),{browser:n,os:r,isMobile:t,isHints:!1}}(),Do=rn.browser.webkit,Mo=Do&&(_i=typeof window>"u"?{userAgent:""}:window.navigator,!!(Ti=/applewebkit\/([^\s]+)/g.exec(_i.userAgent.toLowerCase()))&&parseFloat(Ti[1])<605),wo=rn.browser.name,Co=parseInt(rn.browser.version,10),Ra=wo==="chrome",Ba=rn.browser.chromium,ka=parseInt(rn.browser.chromiumVersion,10)||0,Fa=Ra&&Co>=109||Ba&&ka>=109,Aa=wo==="firefox",za=parseInt(rn.browser.webkitVersion,10)>=612||Co>=15,Kr="moveable-",Ga=Zr.map(function(e){var t="",n="",r="center",i="center",o="calc(var(--moveable-control-padding, 20) * -1px)";return e.indexOf("n")>-1&&(t="top: ".concat(o,";"),i="bottom"),e.indexOf("s")>-1&&(t="top: 0px;",i="top"),e.indexOf("w")>-1&&(n="left: ".concat(o,";"),r="right"),e.indexOf("e")>-1&&(n="left: 0px;",r="left"),'.around-control[data-direction*="'.concat(e,`"] {
6
+ */Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const ee=require("./CgZJr_HNgqQcu-4B.cjs");function Xr(e,t){for(var n=e.length,r=0;r<n;++r)if(t(e[r],r))return!0;return!1}function to(e,t){for(var n=e.length,r=0;r<n;++r)if(t(e[r],r))return e[r];return null}function ci(e){var t=e;if(t===void 0){if(typeof navigator>"u"||!navigator)return"";t=navigator.userAgent||""}return t.toLowerCase()}function Er(e,t){try{return new RegExp(e,"g").exec(t)}catch{return null}}function Sr(e){return e.replace(/_/g,".")}function dn(e,t){var n=null,r="-1";return Xr(e,function(i){var o,a,s,u=Er("("+i.test+")((?:\\/|\\s|:)([0-9|\\.|_]+))?",t);return!(!u||i.brand||(n=i,r=u[3]||"-1",i.versionAlias?r=i.versionAlias:i.versionTest&&(o=i.versionTest.toLowerCase(),a=t,s=Er("("+o+")((?:\\/|\\s|:)([0-9|\\.|_]+))",a),r=(s?s[3]:"")||r),r=Sr(r),0))}),{preset:n,version:r}}function zn(e,t){var n={brand:"",version:"-1"};return Xr(e,function(r){var i=eo(t,r);return!!i&&(n.brand=r.id,n.version=r.versionAlias||i.version,n.version!=="-1")}),n}function eo(e,t){return to(e,function(n){var r=n.brand;return Er(""+t.test,r.toLowerCase())})}var li=[{test:"phantomjs",id:"phantomjs"},{test:"whale",id:"whale"},{test:"edgios|edge|edg",id:"edge"},{test:"msie|trident|windows phone",id:"ie",versionTest:"iemobile|msie|rv"},{test:"miuibrowser",id:"miui browser"},{test:"samsungbrowser",id:"samsung internet"},{test:"samsung",id:"samsung internet",versionTest:"version"},{test:"chrome|crios",id:"chrome"},{test:"firefox|fxios",id:"firefox"},{test:"android",id:"android browser",versionTest:"version"},{test:"safari|iphone|ipad|ipod",id:"safari",versionTest:"version"}],fi=[{test:"(?=.*applewebkit/(53[0-7]|5[0-2]|[0-4]))(?=.*\\schrome)",id:"chrome",versionTest:"chrome"},{test:"chromium",id:"chrome"},{test:"whale",id:"chrome",versionAlias:"-1",brand:!0}],sr=[{test:"applewebkit",id:"webkit",versionTest:"applewebkit|safari"}],no=[{test:"(?=(iphone|ipad))(?!(.*version))",id:"webview"},{test:"(?=(android|iphone|ipad))(?=.*(naver|daum|; wv))",id:"webview"},{test:"webview",id:"webview"}],pi=[{test:"windows phone",id:"windows phone"},{test:"windows 2000",id:"window",versionAlias:"5.0"},{test:"windows nt",id:"window"},{test:"win32|windows",id:"window"},{test:"iphone|ipad|ipod",id:"ios",versionTest:"iphone os|cpu os"},{test:"macos|macintel|mac os x",id:"mac"},{test:"android|linux armv81",id:"android"},{test:"tizen",id:"tizen"},{test:"webos|web0s",id:"webos"}];function di(e){return!!dn(no,e).preset}function ca(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.map(function(r){return r.split(" ").map(function(i){return i?""+e+i:""}).join(" ")}).join(" ")}function Ae(e,t){return function(n){n&&(e[t]=n)}}function ro(e,t,n){return function(r){r&&(e[t][n]=r)}}var Nr="undefined",io=typeof window!==Nr,la=typeof document!==Nr&&document,fa=[{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"},{open:'\\"',close:'\\"'},{open:"\\'",close:"\\'"}],Ht=1e-7,Gn={cm:function(e){return 96*e/2.54},mm:function(e){return 96*e/254},in:function(e){return 96*e},pt:function(e){return 96*e/72},pc:function(e){return 96*e/6},"%":function(e,t){return e*t/100},vw:function(e,t){return t===void 0&&(t=window.innerWidth),e/100*t},vh:function(e,t){return t===void 0&&(t=window.innerHeight),e/100*t},vmax:function(e,t){return t===void 0&&(t=Math.max(window.innerWidth,window.innerHeight)),e/100*t},vmin:function(e,t){return t===void 0&&(t=Math.min(window.innerWidth,window.innerHeight)),e/100*t}};function hi(e,t,n,r){return(e*r+t*n)/(n+r)}function Wr(e){return typeof e===Nr}function we(e){return e&&typeof e=="object"}function ne(e){return Array.isArray(e)}function nn(e){return typeof e=="string"}function Vn(e){return typeof e=="number"}function oo(e){return typeof e=="function"}function ao(e,t,n,r,i){return Dr(e,t,n)?n:function(o,a,s,u,f){for(var p,c=function(d){var g=a[d].trim();if(g===o.close&&!Dr(o,a,d))return{value:d};var v=d,b=he(f,function(x){return x.open===g});if(b&&(v=ao(b,a,d,u,f)),v===-1)return p=d,"break";p=d=v},l=s;l<u;++l){var h=c(l);if(l=p,typeof h=="object")return h.value;if(h==="break")break}return-1}(e,t,n+1,r,i)}function Dr(e,t,n){if(!e.ignore)return null;var r=t.slice(Math.max(n-3,0),n+3).join("");return new RegExp(e.ignore).exec(r)}function qr(e,t){var n=nn(t)?{separator:t}:t,r=n.separator,i=r===void 0?",":r,o=n.isSeparateFirst,a=n.isSeparateOnlyOpenClose,s=n.isSeparateOpenClose,u=s===void 0?a:s,f=n.openCloseCharacters,p=f===void 0?fa:f,c=p.map(function(m){var S=m.open,_=m.close;return S===_?S:S+"|"+_}).join("|"),l=new RegExp("(\\s*"+i+"\\s*|"+c+"|\\s+)","g"),h=e.split(l).filter(function(m){return m&&m!=="undefined"}),d=h.length,g=[],v=[];function b(){return!!v.length&&(g.push(v.join("")),v=[],!0)}for(var x,y=function(m){var S,_,k=h[m].trim(),F=m,O=he(p,function(R){return R.open===k}),w=he(p,function(R){return R.close===k});if(O){if((F=ao(O,h,m,d,p))!==-1&&u)return b()&&o?(x=m,"break"):(g.push(h.slice(m,F+1).join("")),m=F,o?(x=m,"break"):(x=m,"continue"))}else{if(w&&!Dr(w,h,m)){var D=function(){for(var R=0,P=0,B=arguments.length;P<B;P++)R+=arguments[P].length;var A=Array(R),z=0;for(P=0;P<B;P++)for(var G=arguments[P],I=0,V=G.length;I<V;I++,z++)A[z]=G[I];return A}(p);return D.splice(p.indexOf(w),1),{value:qr(e,{separator:i,isSeparateFirst:o,isSeparateOnlyOpenClose:a,isSeparateOpenClose:u,openCloseCharacters:D})}}if(S=k,_=i,!((_!==""&&_!=" "||S!==""&&S!=" ")&&S!==_||a))return b(),o?(x=m,"break"):(x=m,"continue")}F===-1&&(F=d-1),v.push(h.slice(m,F+1).join("")),x=m=F},E=0;E<d;++E){var M=y(E);if(E=x,typeof M=="object")return M.value;if(M==="break")break}return v.length&&g.push(v.join("")),g}function Mn(e){return qr(e,"")}function hn(e){return qr(e,",")}function nr(e){var t=/^([^\d|e|\-|\+]*)((?:\d|\.|-|e-|e\+)+)(\S*)$/g.exec(e);if(!t)return{prefix:"",unit:"",value:NaN};var n=t[1],r=t[2];return{prefix:n,unit:t[3],value:parseFloat(r)}}function Zn(){return Date.now?Date.now():new Date().getTime()}function $e(e,t,n){n===void 0&&(n=-1);for(var r=e.length,i=0;i<r;++i)if(t(e[i],i,e))return i;return n}function he(e,t,n){var r=$e(e,t);return r>-1?e[r]:n}var gi,vi,so=(gi=Zn(),(vi=io&&(window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.msRequestAnimationFrame))?vi.bind(window):function(e){var t=Zn();return setTimeout(function(){e(t-gi)},1e3/60)}),pa=function(){var e=io&&(window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||window.msCancelAnimationFrame);return e?e.bind(window):function(t){clearTimeout(t)}}();function wn(e){return Object.keys(e)}function ae(e,t){var n=nr(e),r=n.value,i=n.unit;if(we(t)){var o=t[i];if(o){if(oo(o))return o(r);if(Gn[i])return Gn[i](r,o)}}else if(i==="%")return r*t/100;return Gn[i]?Gn[i](r):r}function Mr(e,t,n){return Math.max(t,Math.min(e,n))}function mi(e,t,n,r){return r===void 0&&(r=e[0]/e[1]),[[kt(t[0],Ht),kt(t[0]/r,Ht)],[kt(t[1]*r,Ht),kt(t[1],Ht)]].filter(function(i){return i.every(function(o,a){var s=t[a],u=kt(s,Ht);return n?o<=s||o<=u:o>=s||o>=u})})[0]||e}function wr(e){for(var t=e.length,n=0,r=t-1;r>=0;--r)n+=e[r];return t?n/t:0}function de(e,t){var n=t[0]-e[0],r=t[1]-e[1],i=Math.atan2(r,n);return i>=0?i:i+2*Math.PI}function bi(e){var t,n=(t=e,[0,1].map(function(o){return wr(t.map(function(a){return a[o]}))})),r=de(n,e[0]),i=de(n,e[1]);return r<i&&i-r<Math.PI||r>i&&i-r<-Math.PI?1:-1}function gn(e,t){return Math.sqrt(Math.pow((t?t[0]:0)-e[0],2)+Math.pow((t?t[1]:0)-e[1],2))}function kt(e,t){if(!t)return e;var n=1/t;return Math.round(e/t)/n}function xi(e,t){return e.forEach(function(n,r){e[r]=kt(e[r],t)}),e}function Ee(e,t){return e.classList?e.classList.contains(t):!!e.className.match(new RegExp("(\\s|^)"+t+"(\\s|$)"))}function uo(e,t){e.classList?e.classList.add(t):e.className+=" "+t}function co(e,t){if(e.classList)e.classList.remove(t);else{var n=new RegExp("(\\s|^)"+t+"(\\s|$)");e.className=e.className.replace(n," ")}}function Jt(e,t,n,r){e.addEventListener(t,n,r)}function Ut(e,t,n,r){e.removeEventListener(t,n,r)}function jr(e){return e?.ownerDocument||la}function Lr(e){return jr(e).documentElement}function Be(e){return jr(e).body}function Pe(e){var t;return((t=e?.ownerDocument)===null||t===void 0?void 0:t.defaultView)||window}function lo(e){return e&&"postMessage"in e&&"blur"in e&&"self"in e}function Hr(e){return we(e)&&e.nodeName&&e.nodeType&&"ownerDocument"in e}function da(e,t,n,r,i,o){for(var a=0;a<i;++a){var s=n+a*i,u=r+a*i;e[s]+=e[u]*o,t[s]+=t[u]*o}}function ha(e,t,n,r,i){for(var o=0;o<i;++o){var a=n+o*i,s=r+o*i,u=e[a],f=t[a];e[a]=e[s],e[s]=u,t[a]=t[s],t[s]=f}}function ga(e,t,n,r,i){for(var o=0;o<r;++o){var a=n+o*r;e[a]/=i,t[a]/=i}}function ze(e,t){t===void 0&&(t=Math.sqrt(e.length));for(var n=e.slice(),r=It(t),i=0;i<t;++i){var o=t*i+i;if(!kt(n[o],Ht)){for(var a=i+1;a<t;++a)if(n[t*i+a]){ha(n,r,i,a,t);break}}if(!kt(n[o],Ht))return[];for(ga(n,r,i,t,n[o]),a=0;a<t;++a){var s=a,u=n[a+i*t];kt(u,Ht)&&i!==a&&da(n,r,s,i,t,-u)}}return r}function Pn(e,t){for(var n=e.slice(),r=e.length;r<t-1;++r)n[r]=0;return n[t-1]=1,n}function Ge(e,t,n){if(t===void 0&&(t=Math.sqrt(e.length)),t===n)return e;for(var r=It(n),i=Math.min(t,n),o=0;o<i-1;++o){for(var a=0;a<i-1;++a)r[o*n+a]=e[o*t+a];r[(o+1)*n-1]=e[(o+1)*t-1],r[(n-1)*n+o]=e[(t-1)*t+o]}return r[n*n-1]=e[t*t-1],r}function Kn(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=It(e);return t.forEach(function(i){r=Vt(r,i,e)}),r}function Vt(e,t,n){n===void 0&&(n=Math.sqrt(e.length));var r=[],i=e.length/n,o=t.length/i;if(!i)return t;if(!o)return e;for(var a=0;a<n;++a)for(var s=0;s<o;++s){r[s*n+a]=0;for(var u=0;u<i;++u)r[s*n+a]+=e[u*n+a]*t[s*i+u]}return r}function Wt(e,t){for(var n=Math.min(e.length,t.length),r=e.slice(),i=0;i<n;++i)r[i]=r[i]+t[i];return r}function bt(e,t){for(var n=Math.min(e.length,t.length),r=e.slice(),i=0;i<n;++i)r[i]=r[i]-t[i];return r}function va(e,t){return t===void 0&&(t=e.length===6),t?[e[0],e[1],0,e[2],e[3],0,e[4],e[5],1]:e}function fo(e,t){return t===void 0&&(t=e.length===9),t?[e[0],e[1],e[3],e[4],e[6],e[7]]:e}function xe(e,t,n){n===void 0&&(n=t.length);var r=Vt(e,t,n),i=r[n-1];return r.map(function(o){return o/i})}function ma(e,t){return Vt(e,[1,0,0,0,0,Math.cos(t),Math.sin(t),0,0,-Math.sin(t),Math.cos(t),0,0,0,0,1],4)}function ba(e,t){return Vt(e,[Math.cos(t),0,-Math.sin(t),0,0,1,0,0,Math.sin(t),0,Math.cos(t),0,0,0,0,1],4)}function xa(e,t){return Vt(e,rr(t,4))}function In(e,t){var n=t[0],r=n===void 0?1:n,i=t[1],o=i===void 0?1:i,a=t[2];return Vt(e,[r,0,0,0,0,o,0,0,0,0,a===void 0?1:a,0,0,0,0,1],4)}function ur(e,t){var n=t[0],r=n===void 0?0:n,i=t[1],o=i===void 0?0:i,a=t[2];return Vt(e,[1,0,0,0,0,1,0,0,0,0,1,0,r,o,a===void 0?0:a,1],4)}function yi(e,t){return Vt(e,t,4)}function rr(e,t){var n=Math.cos(e),r=Math.sin(e),i=It(t);return i[0]=n,i[1]=r,i[t]=-r,i[t+1]=n,i}function It(e){for(var t=e*e,n=[],r=0;r<t;++r)n[r]=r%(e+1)?0:1;return n}function po(e,t){for(var n=It(t),r=Math.min(e.length,t-1),i=0;i<r;++i)n[(t+1)*i]=e[i];return n}function Ie(e,t){for(var n=It(t),r=Math.min(e.length,t-1),i=0;i<r;++i)n[t*(t-1)+i]=e[i];return n}function ho(e,t,n,r,i,o,a,s){var u=e[0],f=e[1],p=t[0],c=t[1],l=n[0],h=n[1],d=r[0],g=r[1],v=i[0],b=i[1],x=o[0],y=o[1],E=a[0],M=a[1],m=s[0],S=s[1],_=ze([u,0,p,0,l,0,d,0,f,0,c,0,h,0,g,0,1,0,1,0,1,0,1,0,0,u,0,p,0,l,0,d,0,f,0,c,0,h,0,g,0,1,0,1,0,1,0,1,-v*u,-b*u,-x*p,-y*p,-E*l,-M*l,-m*d,-S*d,-v*f,-b*f,-x*c,-y*c,-E*h,-M*h,-m*g,-S*g],8);if(!_.length)return[];var k=Vt(_,[v,b,x,y,E,M,m,S],8);return k[8]=1,Ge(function(F,O){O===void 0&&(O=Math.sqrt(F.length));for(var w=[],D=0;D<O;++D)for(var R=0;R<O;++R)w[R*O+D]=F[O*D+R];return w}(k),3,4)}var vn=function(){return vn=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},vn.apply(this,arguments)};function Vr(e,t){return t===void 0&&(t=0),We(Qe(e,t))}function We(e){var t=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];return e.forEach(function(n){var r=n.matrixFunction,i=n.functionValue;r&&(t=r(t,i))}),t}function Qe(e,t){return t===void 0&&(t=0),(ne(e)?e:Mn(e)).map(function(n){var r,i=!(r=/([^(]*)\(([\s\S]*)\)([\s\S]*)/g.exec(n))||r.length<4?{}:{prefix:r[1],value:r[2],suffix:r[3]},o=i.prefix,a=i.value,s=null,u=o,f="";if(o==="translate"||o==="translateX"||o==="translate3d"){var p=we(t)?vn(vn({},t),{"o%":t["%"]}):{"%":t,"o%":t},c=hn(a).map(function(k,F){return p["%"]=F===0&&"x%"in p?t["x%"]:F===1&&"y%"in p?t["y%"]:t["o%"],ae(k,p)}),l=c[0],h=c[1],d=h===void 0?0:h,g=c[2];s=ur,f=[l,d,g===void 0?0:g]}else if(o==="translateY")s=ur,f=[0,d=ae(a,we(t)?vn({"%":t["y%"]},t):{"%":t}),0];else if(o==="translateZ")s=ur,f=[0,0,parseFloat(a)];else if(o==="scale"||o==="scale3d"){var v=hn(a).map(function(k){return parseFloat(k)}),b=v[0],x=v[1],y=x===void 0?b:x,E=v[2];s=In,f=[b,y,E===void 0?1:E]}else if(o==="scaleX")s=In,f=[b=parseFloat(a),1,1];else if(o==="scaleY")s=In,f=[1,y=parseFloat(a),1];else if(o==="scaleZ")s=In,f=[1,1,parseFloat(a)];else if(o==="rotate"||o==="rotateZ"||o==="rotateX"||o==="rotateY"){var M=nr(a),m=M.unit,S=M.value;o==="rotate"||o==="rotateZ"?(u="rotateZ",s=xa):o==="rotateX"?s=ma:o==="rotateY"&&(s=ba),f=m==="rad"?S:S*Math.PI/180}else if(o==="matrix3d")s=yi,f=hn(a).map(function(k){return parseFloat(k)});else if(o==="matrix"){var _=hn(a).map(function(k){return parseFloat(k)});s=yi,f=[_[0],_[1],0,0,_[2],_[3],0,0,0,0,1,0,_[4],_[5],0,1]}else u="";return{name:o,functionName:u,value:a,matrixFunction:s,functionValue:f}})}var ya=function(){function e(){this.keys=[],this.values=[]}var t=e.prototype;return t.get=function(n){return this.values[this.keys.indexOf(n)]},t.set=function(n,r){var i=this.keys,o=this.values,a=i.indexOf(n),s=a===-1?i.length:a;i[s]=n,o[s]=r},e}(),Ea=function(){function e(){this.object={}}var t=e.prototype;return t.get=function(n){return this.object[n]},t.set=function(n,r){this.object[n]=r},e}(),Sa=typeof Map=="function",Da=function(){function e(){}var t=e.prototype;return t.connect=function(n,r){this.prev=n,this.next=r,n&&(n.next=this),r&&(r.prev=this)},t.disconnect=function(){var n=this.prev,r=this.next;n&&(n.next=r),r&&(r.prev=n)},t.getIndex=function(){for(var n=this,r=-1;n;)n=n.prev,++r;return r},e}(),Ma=function(){function e(n,r,i,o,a,s,u,f){this.prevList=n,this.list=r,this.added=i,this.removed=o,this.changed=a,this.maintained=s,this.changedBeforeAdded=u,this.fixed=f}var t=e.prototype;return Object.defineProperty(t,"ordered",{get:function(){return this.cacheOrdered||this.caculateOrdered(),this.cacheOrdered},enumerable:!0,configurable:!0}),Object.defineProperty(t,"pureChanged",{get:function(){return this.cachePureChanged||this.caculateOrdered(),this.cachePureChanged},enumerable:!0,configurable:!0}),t.caculateOrdered=function(){var n,r,i,o,a=(n=this.changedBeforeAdded,r=this.fixed,i=[],o=[],n.forEach(function(f){var p=f[0],c=f[1],l=new Da;i[p]=l,o[c]=l}),i.forEach(function(f,p){f.connect(i[p-1])}),n.filter(function(f,p){return!r[p]}).map(function(f,p){var c=f[0],l=f[1];if(c===l)return[0,0];var h=i[c],d=o[l-1],g=h.getIndex();return h.disconnect(),d?h.connect(d,d.next):h.connect(void 0,i[0]),[g,h.getIndex()]})),s=this.changed,u=[];this.cacheOrdered=a.filter(function(f,p){var c=f[0],l=f[1],h=s[p],d=h[0],g=h[1];if(c!==l)return u.push([d,g]),!0}),this.cachePureChanged=u},e}();function go(e,t,n){var r=Sa?Map:n?Ea:ya,i=n||function(x){return x},o=[],a=[],s=[],u=e.map(i),f=t.map(i),p=new r,c=new r,l=[],h=[],d={},g=[],v=0,b=0;return u.forEach(function(x,y){p.set(x,y)}),f.forEach(function(x,y){c.set(x,y)}),u.forEach(function(x,y){var E=c.get(x);E===void 0?(++b,a.push(y)):d[E]=b}),f.forEach(function(x,y){var E=p.get(x);E===void 0?(o.push(y),++v):(s.push([E,y]),b=d[y]||0,l.push([E-b,y-v]),h.push(y===E),E!==y&&g.push([E,y]))}),a.reverse(),new Ma(e,t,o,a,g,s,l,h)}var Ei,wa=function(){function e(t,n){t===void 0&&(t=[]),this.findKeyCallback=n,this.list=[].slice.call(t)}return e.prototype.update=function(t){var n=[].slice.call(t),r=go(this.list,n,this.findKeyCallback);return this.list=n,r},e}(),vo=function(e,t){return(vo=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var i in r)r.hasOwnProperty(i)&&(n[i]=r[i])})(e,t)},Ca=typeof Map=="function"?void 0:(Ei=0,function(e){return e.__DIFF_KEY__||(e.__DIFF_KEY__=++Ei)}),mo=function(e){function t(n){return n===void 0&&(n=[]),e.call(this,n,Ca)||this}return function(n,r){function i(){this.constructor=n}vo(n,r),n.prototype=r===null?Object.create(r):(i.prototype=r.prototype,new i)}(t,e),t}(wa),Cr=function(){return Cr=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},Cr.apply(this,arguments)},bo=function(){function e(){this._events={}}var t=e.prototype;return t.on=function(n,r){if(we(n))for(var i in n)this.on(i,n[i]);else this._addEvent(n,r,{});return this},t.off=function(n,r){if(n)if(we(n))for(var i in n)this.off(i);else if(r){var o=this._events[n];if(o){var a=$e(o,function(s){return s.listener===r});a>-1&&o.splice(a,1)}}else this._events[n]=[];else this._events={};return this},t.once=function(n,r){var i=this;return r&&this._addEvent(n,r,{once:!0}),new Promise(function(o){i._addEvent(n,o,{once:!0})})},t.emit=function(n,r){var i=this;r===void 0&&(r={});var o=this._events[n];if(!n||!o)return!0;var a=!1;return r.eventType=n,r.stop=function(){a=!0},r.currentTarget=this,function(){for(var s=0,u=0,f=arguments.length;u<f;u++)s+=arguments[u].length;var p=Array(s),c=0;for(u=0;u<f;u++)for(var l=arguments[u],h=0,d=l.length;h<d;h++,c++)p[c]=l[h];return p}(o).forEach(function(s){s.listener(r),s.once&&i.off(n,s.listener)}),!a},t.trigger=function(n,r){return r===void 0&&(r={}),this.emit(n,r)},t._addEvent=function(n,r,i){var o=this._events;o[n]=o[n]||[],o[n].push(Cr({listener:r},i))},e}();function oe(e){return kt(e,Ht)}function Si(e){return e.length<3?0:Math.abs(function(t){for(var n=0,r=t.length-1;r>=0;--r)n+=t[r];return n}(e.map(function(t,n){var r=e[n+1]||e[0];return t[0]*r[1]-r[0]*t[1]})))/2}function Di(e,t){var n=t.width,r=t.height,i=t.left,o=t.top,a=Ve(e),s=a.minX,u=a.minY,f=a.maxX,p=a.maxY,c=n/(f-s),l=r/(p-u);return e.map(function(h){return[i+(h[0]-s)*c,o+(h[1]-u)*l]})}function Ve(e){var t=e.map(function(r){return r[0]}),n=e.map(function(r){return r[1]});return{minX:Math.min.apply(Math,t),minY:Math.min.apply(Math,n),maxX:Math.max.apply(Math,t),maxY:Math.max.apply(Math,n)}}function cr(e,t,n){var r=e[0],i=e[1],o=Ve(t),a=o.minX,s=o.maxX,u=[[a,i],[s,i]],f=Jn(u[0],u[1]),p=_r(t),c=[];if(p.forEach(function(d){var g,v=Jn(d[0],d[1]),b=d[0];g=v,f.every(function(x,y){return oe(x-g[y])===0})?c.push({pos:e,line:d,type:"line"}):xo(Ur(f,v),[u,d]).forEach(function(x){d.some(function(y){return M=x,!oe((E=y)[0]-M[0])&&!oe(E[1]-M[1]);var E,M})?c.push({pos:x,line:d,type:"point"}):oe(b[1]-i)!==0&&c.push({pos:x,line:d,type:"intersection"})})}),he(c,function(d){return d[0]===r}))return!0;var l=0,h={};return c.forEach(function(d){var g=d.pos,v=d.type,b=d.line;if(!(g[0]>r))if(v==="intersection")++l;else{if(v==="line")return;if(v==="point"){var x=he(b,function(M){return M[1]!==i}),y=h[g[0]],E=x[1]>i?1:-1;y?y!==E&&++l:h[g[0]]=E}}}),l%2==1}function Jn(e,t){var n=e[0],r=e[1],i=t[0]-n,o=t[1]-r;Math.abs(i)<Ht&&(i=0),Math.abs(o)<Ht&&(o=0);var a=0,s=0,u=0;return i?o?(s=1,u=-(a=-o/i)*n-r):(s=1,u=-r):o&&(a=-1,u=n),[a,s,u]}function Ur(e,t){var n=e[0],r=e[1],i=e[2],o=t[0],a=t[1],s=t[2],u=n===0&&o===0,f=r===0&&a===0,p=[];if(u&&f)return[];if(u){var c=-i/r;return c!==-s/a?[]:[[-1/0,c],[1/0,c]]}if(f){var l=-i/n;return l!==-s/o?[]:[[l,-1/0],[l,1/0]]}if(n===0)p=[[h=-(a*(d=-i/r)+s)/o,d]];else if(o===0)p=[[h=-(r*(d=-s/a)+i)/n,d]];else if(r===0)p=[[h=-i/n,d=-(o*h+s)/a]];else if(a===0)p=[[h=-s/o,d=-(n*h+i)/r]];else{var h,d;p=[[h=(r*s-a*i)/(a*n-r*o),d=-(n*h+i)/r]]}return p.map(function(g){return[g[0],g[1]]})}function xo(e,t){var n=t.map(function(c){return[0,1].map(function(l){return[Math.min(c[0][l],c[1][l]),Math.max(c[0][l],c[1][l])]})}),r=[];if(e.length===2){var i=e[0],o=i[0],a=i[1];if(oe(o-e[1][0])){if(!oe(a-e[1][1])){var s=Math.max.apply(Math,n.map(function(c){return c[0][0]})),u=Math.min.apply(Math,n.map(function(c){return c[0][1]}));if(oe(s-u)>0)return[];r=[[s,a],[u,a]]}}else{var f=Math.max.apply(Math,n.map(function(c){return c[1][0]})),p=Math.min.apply(Math,n.map(function(c){return c[1][1]}));if(oe(f-p)>0)return[];r=[[o,f],[o,p]]}}return r.length||(r=e.filter(function(c){var l=c[0],h=c[1];return n.every(function(d){return 0<=oe(l-d[0][0])&&0<=oe(d[0][1]-l)&&0<=oe(h-d[1][0])&&0<=oe(d[1][1]-h)})})),r.map(function(c){return[oe(c[0]),oe(c[1])]})}function _r(e){return function(){for(var t=0,n=0,r=arguments.length;n<r;n++)t+=arguments[n].length;var i=Array(t),o=0;for(n=0;n<r;n++)for(var a=arguments[n],s=0,u=a.length;s<u;s++,o++)i[o]=a[s];return i}(e.slice(1),[e[0]]).map(function(t,n){return[e[n],t]})}var yo=function(e,t){return(yo=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var i in r)r.hasOwnProperty(i)&&(n[i]=r[i])})(e,t)},Lt=function(){return Lt=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},Lt.apply(this,arguments)};function lr(e){return 180*(t=[e[0].clientX,e[0].clientY],r=(n=[e[1].clientX,e[1].clientY])[0]-t[0],i=n[1]-t[1],((o=Math.atan2(i,r))>=0?o:o+2*Math.PI)/Math.PI);var t,n,r,i,o}function Yn(e){return e?e.touches?function(t){for(var n=Math.min(t.length,2),r=[],i=0;i<n;++i)r.push(wi(t[i]));return r}(e.touches):[wi(e)]:[]}function Mi(e,t,n){var r=n.length,i=mn(e,r),o=i.clientX,a=i.clientY,s=i.originalClientX,u=i.originalClientY,f=mn(t,r),p=f.clientX,c=f.clientY,l=mn(n,r);return{clientX:s,clientY:u,deltaX:o-p,deltaY:a-c,distX:o-l.clientX,distY:a-l.clientY}}function fr(e){return Math.sqrt(Math.pow(e[0].clientX-e[1].clientX,2)+Math.pow(e[0].clientY-e[1].clientY,2))}function wi(e){return{clientX:e.clientX,clientY:e.clientY}}function mn(e,t){t===void 0&&(t=e.length);for(var n={clientX:0,clientY:0,originalClientX:0,originalClientY:0},r=Math.min(e.length,t),i=0;i<r;++i){var o=e[i];n.originalClientX+="originalClientX"in o?o.originalClientX:o.clientX,n.originalClientY+="originalClientY"in o?o.originalClientY:o.clientY,n.clientX+=o.clientX,n.clientY+=o.clientY}return t?{clientX:n.clientX/t,clientY:n.clientY/t,originalClientX:n.originalClientX/t,originalClientY:n.originalClientY/t}:n}var pr=function(){function e(t){this.prevClients=[],this.startClients=[],this.movement=0,this.length=0,this.startClients=t,this.prevClients=t,this.length=t.length}return e.prototype.getAngle=function(t){return t===void 0&&(t=this.prevClients),lr(t)},e.prototype.getRotation=function(t){return t===void 0&&(t=this.prevClients),lr(t)-lr(this.startClients)},e.prototype.getPosition=function(t,n){t===void 0&&(t=this.prevClients);var r=Mi(t||this.prevClients,this.prevClients,this.startClients),i=r.deltaX,o=r.deltaY;return this.movement+=Math.sqrt(i*i+o*o),this.prevClients=t,r},e.prototype.getPositions=function(t){t===void 0&&(t=this.prevClients);for(var n=this.prevClients,r=this.startClients,i=Math.min(this.length,n.length),o=[],a=0;a<i;++a)o[a]=Mi([t[a]],[n[a]],[r[a]]);return o},e.prototype.getMovement=function(t){var n=this.movement;if(!t)return n;var r=mn(t,this.length),i=mn(this.prevClients,this.length),o=r.clientX-i.clientX,a=r.clientY-i.clientY;return Math.sqrt(o*o+a*a)+n},e.prototype.getDistance=function(t){return t===void 0&&(t=this.prevClients),fr(t)},e.prototype.getScale=function(t){return t===void 0&&(t=this.prevClients),fr(t)/fr(this.startClients)},e.prototype.move=function(t,n){this.startClients.forEach(function(r){r.clientX-=t,r.clientY-=n}),this.prevClients.forEach(function(r){r.clientX-=t,r.clientY-=n})},e}(),Ci=["textarea","input"],_a=function(e){function t(n,r){r===void 0&&(r={});var i=e.call(this)||this;i.options={},i.flag=!1,i.pinchFlag=!1,i.data={},i.isDrag=!1,i.isPinch=!1,i.clientStores=[],i.targets=[],i.prevTime=0,i.doubleFlag=!1,i._useMouse=!1,i._useTouch=!1,i._useDrag=!1,i._dragFlag=!1,i._isTrusted=!1,i._isMouseEvent=!1,i._isSecondaryButton=!1,i._preventMouseEvent=!1,i._prevInputEvent=null,i._isDragAPI=!1,i._isIdle=!0,i._preventMouseEventId=0,i._window=window,i.onDragStart=function(l,h){if(h===void 0&&(h=!0),i.flag||l.cancelable!==!1){var d=l.type.indexOf("drag")>=-1;if(!i.flag||!d){i._isDragAPI=!0;var g=i.options,v=g.container,b=g.pinchOutside,x=g.preventWheelClick,y=g.preventRightClick,E=g.preventDefault,M=g.checkInput,m=g.dragFocusedInput,S=g.preventClickEventOnDragStart,_=g.preventClickEventOnDrag,k=g.preventClickEventByCondition,F=i._useTouch,O=!i.flag;if(i._isSecondaryButton=l.which===3||l.button===2,x&&(l.which===2||l.button===1)||y&&(l.which===3||l.button===2))return i.stop(),!1;if(O){var w=i._window.document.activeElement,D=l.target;if(D){var R=D.tagName.toLowerCase(),P=Ci.indexOf(R)>-1,B=D.isContentEditable;if(P||B){if(M||!m&&w===D)return!1;if(w&&(w===D||B&&w.isContentEditable&&w.contains(D))){if(!m)return!1;D.blur()}}else if((E||l.type==="touchstart")&&w){var A=w.tagName.toLowerCase();(w.isContentEditable||Ci.indexOf(A)>-1)&&w.blur()}(S||_||k)&&Jt(i._window,"click",i._onClick,!0)}i.clientStores=[new pr(Yn(l))],i._isIdle=!1,i.flag=!0,i.isDrag=!1,i._isTrusted=h,i._dragFlag=!0,i._prevInputEvent=l,i.data={},i.doubleFlag=Zn()-i.prevTime<200,i._isMouseEvent=(G=l)&&(G.type.indexOf("mouse")>-1||"button"in G),!i._isMouseEvent&&i._preventMouseEvent&&i._allowMouseEvent(),(i._preventMouseEvent||i.emit("dragStart",Lt(Lt({data:i.data,datas:i.data,inputEvent:l,isMouseEvent:i._isMouseEvent,isSecondaryButton:i._isSecondaryButton,isTrusted:h,isDouble:i.doubleFlag},i.getCurrentStore().getPosition()),{preventDefault:function(){l.preventDefault()},preventDrag:function(){i._dragFlag=!1}})))===!1&&i.stop(),i._isMouseEvent&&i.flag&&E&&l.preventDefault()}if(!i.flag)return!1;var z=0;if(O?(i._attchDragEvent(),F&&b&&(z=setTimeout(function(){Jt(v,"touchstart",i.onDragStart,{passive:!1})}))):F&&b&&Ut(v,"touchstart",i.onDragStart),i.flag&&function(I){return I.touches&&I.touches.length>=2}(l)){if(clearTimeout(z),O&&l.touches.length!==l.changedTouches.length)return;i.pinchFlag||i.onPinchStart(l)}}}var G},i.onDrag=function(l,h){if(i.flag){var d=i.options.preventDefault;!i._isMouseEvent&&d&&l.preventDefault(),i._prevInputEvent=l;var g=Yn(l),v=i.moveClients(g,l,!1);if(i._dragFlag){if((i.pinchFlag||v.deltaX||v.deltaY)&&(i._preventMouseEvent||i.emit("drag",Lt(Lt({},v),{isScroll:!!h,inputEvent:l})))===!1)return void i.stop();i.pinchFlag&&i.onPinch(l,g)}i.getCurrentStore().getPosition(g,!0)}},i.onDragEnd=function(l){if(i.flag){var h=i.options,d=h.pinchOutside,g=h.container,v=h.preventClickEventOnDrag,b=h.preventClickEventOnDragStart,x=h.preventClickEventByCondition,y=i.isDrag;(v||b||x)&&requestAnimationFrame(function(){i._allowClickEvent()}),x||b||!v||y||i._allowClickEvent(),i._useTouch&&d&&Ut(g,"touchstart",i.onDragStart),i.pinchFlag&&i.onPinchEnd(l);var E=l?.touches?Yn(l):[];E.length!==0&&i.options.keepDragging?i._addStore(new pr(E)):i.flag=!1;var M=i._getPosition(),m=Zn(),S=!y&&i.doubleFlag;i._prevInputEvent=null,i.prevTime=y||S?0:m,i.flag||(i._dettachDragEvent(),i._preventMouseEvent||i.emit("dragEnd",Lt({data:i.data,datas:i.data,isDouble:S,isDrag:y,isClick:!y,isMouseEvent:i._isMouseEvent,isSecondaryButton:i._isSecondaryButton,inputEvent:l,isTrusted:i._isTrusted},M)),i.clientStores=[],i._isMouseEvent||(i._preventMouseEvent=!0,clearTimeout(i._preventMouseEventId),i._preventMouseEventId=setTimeout(function(){i._preventMouseEvent=!1},200)),i._isIdle=!0)}},i.onBlur=function(){i.onDragEnd()},i._allowClickEvent=function(){Ut(i._window,"click",i._onClick,!0)},i._onClick=function(l){i._allowClickEvent(),i._allowMouseEvent();var h=i.options.preventClickEventByCondition;h?.(l)||(l.stopPropagation(),l.preventDefault())},i._onContextMenu=function(l){i.options.preventRightClick?i.onDragEnd(l):l.preventDefault()},i._passCallback=function(){};var o=[].concat(n),a=o[0];i._window=lo(a)?a:Pe(a),i.options=Lt({checkInput:!1,container:a&&!("document"in a)?Pe(a):a,preventRightClick:!0,preventWheelClick:!0,preventClickEventOnDragStart:!1,preventClickEventOnDrag:!1,preventClickEventByCondition:null,preventDefault:!0,checkWindowBlur:!1,keepDragging:!1,pinchThreshold:0,events:["touch","mouse"]},r);var s=i.options,u=s.container,f=s.events,p=s.checkWindowBlur;if(i._useDrag=f.indexOf("drag")>-1,i._useTouch=f.indexOf("touch")>-1,i._useMouse=f.indexOf("mouse")>-1,i.targets=o,i._useDrag&&o.forEach(function(l){Jt(l,"dragstart",i.onDragStart)}),i._useMouse&&(o.forEach(function(l){Jt(l,"mousedown",i.onDragStart),Jt(l,"mousemove",i._passCallback)}),Jt(u,"contextmenu",i._onContextMenu)),p&&Jt(Pe(),"blur",i.onBlur),i._useTouch){var c={passive:!1};o.forEach(function(l){Jt(l,"touchstart",i.onDragStart,c),Jt(l,"touchmove",i._passCallback,c)})}return i}return function(n,r){function i(){this.constructor=n}yo(n,r),n.prototype=r===null?Object.create(r):(i.prototype=r.prototype,new i)}(t,e),t.prototype.stop=function(){this.isDrag=!1,this.data={},this.clientStores=[],this.pinchFlag=!1,this.doubleFlag=!1,this.prevTime=0,this.flag=!1,this._isIdle=!0,this._allowClickEvent(),this._dettachDragEvent(),this._isDragAPI=!1},t.prototype.getMovement=function(n){return this.getCurrentStore().getMovement(n)+this.clientStores.slice(1).reduce(function(r,i){return r+i.movement},0)},t.prototype.isDragging=function(){return this.isDrag},t.prototype.isIdle=function(){return this._isIdle},t.prototype.isFlag=function(){return this.flag},t.prototype.isPinchFlag=function(){return this.pinchFlag},t.prototype.isDoubleFlag=function(){return this.doubleFlag},t.prototype.isPinching=function(){return this.isPinch},t.prototype.scrollBy=function(n,r,i,o){o===void 0&&(o=!0),this.flag&&(this.clientStores[0].move(n,r),o&&this.onDrag(i,!0))},t.prototype.move=function(n,r){var i=n[0],o=n[1],a=this.getCurrentStore().prevClients;return this.moveClients(a.map(function(s){var u=s.clientX,f=s.clientY;return{clientX:u+i,clientY:f+o,originalClientX:u,originalClientY:f}}),r,!0)},t.prototype.triggerDragStart=function(n){this.onDragStart(n,!1)},t.prototype.setEventData=function(n){var r=this.data;for(var i in n)r[i]=n[i];return this},t.prototype.setEventDatas=function(n){return this.setEventData(n)},t.prototype.getCurrentEvent=function(n){return n===void 0&&(n=this._prevInputEvent),Lt(Lt({data:this.data,datas:this.data},this._getPosition()),{movement:this.getMovement(),isDrag:this.isDrag,isPinch:this.isPinch,isScroll:!1,inputEvent:n})},t.prototype.getEventData=function(){return this.data},t.prototype.getEventDatas=function(){return this.data},t.prototype.unset=function(){var n=this,r=this.targets,i=this.options.container;this.off(),Ut(this._window,"blur",this.onBlur),this._useDrag&&r.forEach(function(o){Ut(o,"dragstart",n.onDragStart)}),this._useMouse&&(r.forEach(function(o){Ut(o,"mousedown",n.onDragStart)}),Ut(i,"contextmenu",this._onContextMenu)),this._useTouch&&(r.forEach(function(o){Ut(o,"touchstart",n.onDragStart)}),Ut(i,"touchstart",this.onDragStart)),this._prevInputEvent=null,this._allowClickEvent(),this._dettachDragEvent()},t.prototype.onPinchStart=function(n){var r=this,i=this.options.pinchThreshold;if(!(this.isDrag&&this.getMovement()>i)){var o=new pr(Yn(n));this.pinchFlag=!0,this._addStore(o),this.emit("pinchStart",Lt(Lt({data:this.data,datas:this.data,angle:o.getAngle(),touches:this.getCurrentStore().getPositions()},o.getPosition()),{inputEvent:n,isTrusted:this._isTrusted,preventDefault:function(){n.preventDefault()},preventDrag:function(){r._dragFlag=!1}}))===!1&&(this.pinchFlag=!1)}},t.prototype.onPinch=function(n,r){if(this.flag&&this.pinchFlag&&!(r.length<2)){var i=this.getCurrentStore();this.isPinch=!0,this.emit("pinch",Lt(Lt({data:this.data,datas:this.data,movement:this.getMovement(r),angle:i.getAngle(r),rotation:i.getRotation(r),touches:i.getPositions(r),scale:i.getScale(r),distance:i.getDistance(r)},i.getPosition(r)),{inputEvent:n,isTrusted:this._isTrusted}))}},t.prototype.onPinchEnd=function(n){if(this.pinchFlag){var r=this.isPinch;this.isPinch=!1,this.pinchFlag=!1;var i=this.getCurrentStore();this.emit("pinchEnd",Lt(Lt({data:this.data,datas:this.data,isPinch:r,touches:i.getPositions()},i.getPosition()),{inputEvent:n}))}},t.prototype.getCurrentStore=function(){return this.clientStores[0]},t.prototype.moveClients=function(n,r,i){var o=this._getPosition(n,i),a=this.isDrag;(o.deltaX||o.deltaY)&&(this.isDrag=!0);var s=!1;return!a&&this.isDrag&&(s=!0),Lt(Lt({data:this.data,datas:this.data},o),{movement:this.getMovement(n),isDrag:this.isDrag,isPinch:this.isPinch,isScroll:!1,isMouseEvent:this._isMouseEvent,isSecondaryButton:this._isSecondaryButton,inputEvent:r,isTrusted:this._isTrusted,isFirstDrag:s})},t.prototype._addStore=function(n){this.clientStores.splice(0,0,n)},t.prototype._getPosition=function(n,r){var i=this.getCurrentStore().getPosition(n,r),o=this.clientStores.slice(1).reduce(function(u,f){var p=f.getPosition();return u.distX+=p.distX,u.distY+=p.distY,u},i),a=o.distX,s=o.distY;return Lt(Lt({},i),{distX:a,distY:s})},t.prototype._attchDragEvent=function(){var n=this._window,r=this.options.container,i={passive:!1};this._isDragAPI&&(Jt(r,"dragover",this.onDrag,i),Jt(n,"dragend",this.onDragEnd)),this._useMouse&&(Jt(r,"mousemove",this.onDrag),Jt(n,"mouseup",this.onDragEnd)),this._useTouch&&(Jt(r,"touchmove",this.onDrag,i),Jt(n,"touchend",this.onDragEnd,i),Jt(n,"touchcancel",this.onDragEnd,i))},t.prototype._dettachDragEvent=function(){var n=this._window,r=this.options.container;this._isDragAPI&&(Ut(r,"dragover",this.onDrag),Ut(n,"dragend",this.onDragEnd)),this._useMouse&&(Ut(r,"mousemove",this.onDrag),Ut(n,"mouseup",this.onDragEnd)),this._useTouch&&(Ut(r,"touchstart",this.onDragStart),Ut(r,"touchmove",this.onDrag),Ut(n,"touchend",this.onDragEnd),Ut(n,"touchcancel",this.onDragEnd))},t.prototype._allowMouseEvent=function(){this._preventMouseEvent=!1,clearTimeout(this._preventMouseEventId)},t}(bo);function Ta(e){var t="rCS"+function(n){for(var r=5381,i=n.length;i;)r=33*r^n.charCodeAt(--i);return r>>>0}(e).toString(36);return{className:t,inject:function(n,r){r===void 0&&(r={});var i=function(s){if(s&&s.getRootNode){var u=s.getRootNode();if(u.nodeType===11)return u}}(n),o=(i||n.ownerDocument||document).querySelector('style[data-styled-id="'.concat(t,'"]'));if(o){var a=parseFloat(o.getAttribute("data-styled-count"))||0;o.setAttribute("data-styled-count","".concat(a+1))}else o=function(s,u,f,p,c){var l,h,d=jr(p),g=d.createElement("style");return g.setAttribute("type","text/css"),g.setAttribute("data-styled-id",s),g.setAttribute("data-styled-count","1"),f.nonce&&g.setAttribute("nonce",f.nonce),g.innerHTML=(l=s,h=u,f.original?h:h.replace(/([^};{\s}][^};{]*|^\s*){/gm,function(v,b){var x=b.trim();return(x?hn(x):[""]).map(function(y){var E=y.trim();return E.indexOf("@")===0?E:E.indexOf(":global")>-1?E.replace(/\:global/g,""):E.indexOf(":host")>-1?"".concat(E.replace(/\:host/g,".".concat(l))):E?".".concat(l," ").concat(E):".".concat(l)}).join(", ")+" {"})),(c||d.head||d.body).appendChild(g),g}(t,e,r,n,i);return{destroy:function(){var s,u=parseFloat(o.getAttribute("data-styled-count"))||0;u<=1?(o.remove?o.remove():(s=o.parentNode)===null||s===void 0||s.removeChild(o),o=null):o.setAttribute("data-styled-count","".concat(u-1))}}}}}var Tr=function(){return Tr=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},Tr.apply(this,arguments)};function Eo(e,t){var n=Ta(t),r=n.className;return ee.reactExports.forwardRef(function(i,o){var a=i.className,s=a===void 0?"":a;i.cspNonce;var u=function(p,c){var l={};for(var h in p)Object.prototype.hasOwnProperty.call(p,h)&&c.indexOf(h)<0&&(l[h]=p[h]);if(p!=null&&typeof Object.getOwnPropertySymbols=="function"){var d=0;for(h=Object.getOwnPropertySymbols(p);d<h.length;d++)c.indexOf(h[d])<0&&Object.prototype.propertyIsEnumerable.call(p,h[d])&&(l[h[d]]=p[h[d]])}return l}(i,["className","cspNonce"]),f=ee.reactExports.useRef();return ee.reactExports.useImperativeHandle(o,function(){return f.current},[]),ee.reactExports.useEffect(function(){var p=n.inject(f.current,{nonce:i.cspNonce});return function(){p.destroy()}},[]),ee.reactExports.createElement(e,Tr({ref:f,"data-styled-id":r,className:"".concat(s," ").concat(r)},u))})}var So=function(e,t){return(So=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i])})(e,t)};function Rn(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}So(e,t),e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var C=function(){return C=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},C.apply(this,arguments)};function T(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(t===void 0||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(s){i={error:s}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function K(e,t,n){if(arguments.length===2)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}function Cn(e,t){return C({events:[],props:[],name:e},t)}var Oa,_i,Ti,Pa=["n","w","s","e"],Zr=["n","w","s","e","nw","ne","sw","se"],rn=function(){if(typeof navigator>"u"||!navigator||!navigator.userAgentData)return!1;var e=navigator.userAgentData,t=e.brands||e.uaList;return!(!t||!t.length)}()?function(){var e=navigator.userAgentData,t=(e.uaList||e.brands).slice(),n=e.mobile||!1,r=t[0],i=(e.platform||navigator.platform).toLowerCase(),o={name:r.brand,version:r.version,majorVersion:-1,webkit:!1,webkitVersion:"-1",chromium:!1,chromiumVersion:"-1",webview:!!zn(no,t).brand||di(ci())},a={name:"unknown",version:"-1",majorVersion:-1};o.webkit=!o.chromium&&Xr(sr,function(c){return eo(t,c)});var s=zn(fi,t);if(o.chromium=!!s.brand,o.chromiumVersion=s.version||"-1",!o.chromium){var u=zn(sr,t);o.webkit=!!u.brand,o.webkitVersion=u.version||"-1"}var f=to(pi,function(c){return new RegExp(""+c.test,"g").exec(i)});a.name=f?f.id:"";var p=zn(li,t);return o.name=p.brand||o.name,o.version=(p.brand,p.version),o.webkit&&(a.name=n?"ios":"mac"),a.name==="ios"&&o.webview&&(o.version="-1"),a.version=Sr(a.version),o.version=Sr(o.version),a.majorVersion=parseInt(a.version,10),o.majorVersion=parseInt(o.version,10),{browser:o,os:a,isMobile:n,isHints:!0}}():function(){var e=ci(Oa),t=!!/mobi/g.exec(e),n={name:"unknown",version:"-1",majorVersion:-1,webview:di(e),chromium:!1,chromiumVersion:"-1",webkit:!1,webkitVersion:"-1"},r={name:"unknown",version:"-1",majorVersion:-1},i=dn(li,e),o=i.preset,a=i.version,s=dn(pi,e),u=s.preset,f=s.version,p=dn(fi,e);if(n.chromium=!!p.preset,n.chromiumVersion=p.version,!n.chromium){var c=dn(sr,e);n.webkit=!!c.preset,n.webkitVersion=c.version}return u&&(r.name=u.id,r.version=f,r.majorVersion=parseInt(f,10)),o&&(n.name=o.id,n.version=a,n.webview&&r.name==="ios"&&n.name!=="safari"&&(n.webview=!1)),n.majorVersion=parseInt(n.version,10),{browser:n,os:r,isMobile:t,isHints:!1}}(),Do=rn.browser.webkit,Mo=Do&&(_i=typeof window>"u"?{userAgent:""}:window.navigator,!!(Ti=/applewebkit\/([^\s]+)/g.exec(_i.userAgent.toLowerCase()))&&parseFloat(Ti[1])<605),wo=rn.browser.name,Co=parseInt(rn.browser.version,10),Ra=wo==="chrome",Ba=rn.browser.chromium,ka=parseInt(rn.browser.chromiumVersion,10)||0,Fa=Ra&&Co>=109||Ba&&ka>=109,Aa=wo==="firefox",za=parseInt(rn.browser.webkitVersion,10)>=612||Co>=15,Kr="moveable-",Ga=Zr.map(function(e){var t="",n="",r="center",i="center",o="calc(var(--moveable-control-padding, 20) * -1px)";return e.indexOf("n")>-1&&(t="top: ".concat(o,";"),i="bottom"),e.indexOf("s")>-1&&(t="top: 0px;",i="top"),e.indexOf("w")>-1&&(n="left: ".concat(o,";"),r="right"),e.indexOf("e")>-1&&(n="left: 0px;",r="left"),'.around-control[data-direction*="'.concat(e,`"] {
7
7
  `).concat(n).concat(t,`
8
8
  transform-origin: `).concat(r," ").concat(i,`;
9
9
  }`)}).join(`