hyperframes 0.9.31 → 0.9.33

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 (302) hide show
  1. package/dist/{add-53MR45WI.js → add-GDXM36YQ.js} +18 -18
  2. package/dist/{agentPromptGenerator-NXF7237H.js → agentPromptGenerator-KPNDH2EI.js} +36 -19
  3. package/dist/{animatedGifPrep-XF6VJW22.js → animatedGifPrep-SAKETEZ2.js} +11 -11
  4. package/dist/api.js +51 -46
  5. package/dist/{appHistory-DLDRURHW.js → appHistory-WZIHFCPK.js} +3 -3
  6. package/dist/{asset-Y3YAVXJ3.js → asset-KOJC72AQ.js} +2 -2
  7. package/dist/{assetCataloger-DRLH2VFH.js → assetCataloger-Q4ZFUI6G.js} +13 -13
  8. package/dist/{audio-TRDZQ2NW.js → audio-XZBBXKQC.js} +32 -30
  9. package/dist/{auth-MN66MWGN.js → auth-X45YSZGE.js} +4 -4
  10. package/dist/{autoUpdate-KAIIQJBV.js → autoUpdate-77XWQ564.js} +3 -3
  11. package/dist/{avatars-F2COSI7P.js → avatars-D3D22TI2.js} +20 -19
  12. package/dist/{backgroundChecks-36UG4V5N.js → backgroundChecks-2L2RWFJ3.js} +4 -4
  13. package/dist/backgroundChecksWorker.js +5 -5
  14. package/dist/{batchRender-CI6OFGS5.js → batchRender-O7J47H2Z.js} +5 -5
  15. package/dist/{beats-GBCNB763.js → beats-6RVVU56H.js} +15 -15
  16. package/dist/{benchmark-AHHMJBDN.js → benchmark-D5JRNAVQ.js} +12 -12
  17. package/dist/{billing-HME22C5A.js → billing-WT4DGZII.js} +20 -19
  18. package/dist/{browser-VZTIOZI3.js → browser-2OR737P4.js} +9 -9
  19. package/dist/{bundleWithLocalizedFonts-XLFSHMET.js → bundleWithLocalizedFonts-VBET4RVR.js} +1 -1
  20. package/dist/{capture-ZILHWIOF.js → capture-23X2CK56.js} +82 -39
  21. package/dist/{capture-NU2ZIXJB.js → capture-B34FTO6G.js} +4 -4
  22. package/dist/{captureCompositionFrame-ZWVKRKLL.js → captureCompositionFrame-TPZKEVKN.js} +19 -19
  23. package/dist/{captureFile-O7JMINHC.js → captureFile-Y2ZMB7HK.js} +3 -3
  24. package/dist/{catalog-NVEGPXGE.js → catalog-ACHSYU5Z.js} +18 -18
  25. package/dist/{catch-up-W7ST5JSZ.js → catch-up-FGANS2BB.js} +12 -12
  26. package/dist/{check-BZ652RYH.js → check-DXK4L5WP.js} +54 -54
  27. package/dist/{checkAudio-5NVSRMGL.js → checkAudio-4ISYJED3.js} +20 -20
  28. package/dist/{checkBrowser-YN454IBU.js → checkBrowser-5ECMULMP.js} +47 -47
  29. package/dist/{chunk-Q7EIUAYK.js → chunk-23354HMA.js} +3 -3
  30. package/dist/{chunk-W4OMDRZF.js → chunk-2I4DQZLQ.js} +28 -8
  31. package/dist/{chunk-O4Z4D4KA.js → chunk-2KYLVWLO.js} +1 -1
  32. package/dist/{chunk-BJSUKOWW.js → chunk-2LMCARA5.js} +2 -2
  33. package/dist/{chunk-XB77LMOP.js → chunk-2QTGQGYA.js} +1 -1
  34. package/dist/{chunk-JULHFF3J.js → chunk-2RBQLV6B.js} +1 -1
  35. package/dist/{chunk-R5U5PFDJ.js → chunk-2TBW7UOF.js} +5177 -4970
  36. package/dist/{chunk-RCWPVC4M.js → chunk-3J32XVJ6.js} +2 -2
  37. package/dist/{chunk-CP4FVXKZ.js → chunk-45ZQI734.js} +2 -2
  38. package/dist/{chunk-LHBQW4GJ.js → chunk-4CHGNFCS.js} +23 -15
  39. package/dist/{chunk-RLYYA6IR.js → chunk-4DLYTSWQ.js} +15 -8
  40. package/dist/{chunk-JLUOG6S2.js → chunk-4FTJE22M.js} +2 -2
  41. package/dist/{chunk-WAXPM7TK.js → chunk-4RPIEGL3.js} +2 -2
  42. package/dist/{chunk-ZSELEQI2.js → chunk-4US5QCXR.js} +408 -219
  43. package/dist/{chunk-CWOUPW5E.js → chunk-4WZU4FYS.js} +4 -4
  44. package/dist/{chunk-B7H5RCKP.js → chunk-5GYTBKZA.js} +2 -2
  45. package/dist/{chunk-4HSE3FWO.js → chunk-5RVPI6QL.js} +4 -4
  46. package/dist/{chunk-VEIGTKYZ.js → chunk-64F653HO.js} +36 -9
  47. package/dist/{chunk-KAICKZZK.js → chunk-6QEEF5RR.js} +1 -1
  48. package/dist/{chunk-5Q3TTLGB.js → chunk-6RV2QY4K.js} +31 -31
  49. package/dist/{chunk-3SZ43GZG.js → chunk-6ZVUTYNB.js} +6 -6
  50. package/dist/{chunk-C4U6FRZH.js → chunk-76KUCQXD.js} +14 -11
  51. package/dist/{chunk-SWOAB4GM.js → chunk-77UB5EHM.js} +1 -1
  52. package/dist/{chunk-GRHBVTBK.js → chunk-7LTXT7ME.js} +11 -9
  53. package/dist/{chunk-RBECDLMQ.js → chunk-7UUUV4PN.js} +1 -1
  54. package/dist/{chunk-X3HQA3YE.js → chunk-A4VXOJZO.js} +10 -8
  55. package/dist/{chunk-OJSOH2LS.js → chunk-ADYMQM7T.js} +2 -2
  56. package/dist/{chunk-GSXHYLW4.js → chunk-AIC7T7CC.js} +2 -2
  57. package/dist/{chunk-MQOO5Z4U.js → chunk-B66UZ2YK.js} +9 -9
  58. package/dist/{chunk-7NDF2MO3.js → chunk-BAWGEGKD.js} +216 -344
  59. package/dist/{chunk-T7PFJH2B.js → chunk-BBL6STGK.js} +2 -2
  60. package/dist/{chunk-5AMGFTMU.js → chunk-C2VZ7UPE.js} +18 -18
  61. package/dist/{chunk-CUORARXJ.js → chunk-CDI3CCAU.js} +7 -7
  62. package/dist/{chunk-C5JKRCSG.js → chunk-CHCMXYER.js} +1 -1
  63. package/dist/{chunk-J3OVTOVC.js → chunk-CHJGVW5W.js} +15 -2
  64. package/dist/{chunk-OOEZ3FT3.js → chunk-CHM3QYLF.js} +3 -3
  65. package/dist/{chunk-TCQKCUDA.js → chunk-CKJDY6EK.js} +1 -1
  66. package/dist/{chunk-DJVSNDF3.js → chunk-CNJLBAKM.js} +133 -22
  67. package/dist/chunk-DDDSTRHU.js +3890 -0
  68. package/dist/{chunk-AWL5M7BX.js → chunk-DGC2RIQE.js} +4 -4
  69. package/dist/{chunk-LP7B3JLC.js → chunk-DMW5SSUN.js} +2 -1
  70. package/dist/{chunk-WSPGX2SM.js → chunk-DMZER7D5.js} +1 -1
  71. package/dist/{chunk-3DIYMOES.js → chunk-ERJBWDPM.js} +7 -7
  72. package/dist/{chunk-56MGA4FM.js → chunk-ETWXZQN5.js} +2 -2
  73. package/dist/{chunk-MMAPQWUP.js → chunk-EX533ULK.js} +2 -2
  74. package/dist/{chunk-HM3PIREE.js → chunk-EX7WPDFA.js} +2 -2
  75. package/dist/{chunk-MX3UCKZR.js → chunk-FRH3CPW5.js} +1 -1
  76. package/dist/{chunk-F2GWIWHN.js → chunk-G2XAFJ2B.js} +2 -2
  77. package/dist/{chunk-FKW5FP4C.js → chunk-G55YEL2L.js} +129 -89
  78. package/dist/{chunk-FRBQ3FIM.js → chunk-GBIASKIH.js} +1 -1
  79. package/dist/{chunk-44VR2CWT.js → chunk-GHLLC6LJ.js} +2 -2
  80. package/dist/{chunk-BIQJKM2O.js → chunk-GOMTMQRT.js} +1 -1
  81. package/dist/{chunk-BCMR6DE4.js → chunk-HEXTAQYG.js} +2 -2
  82. package/dist/{chunk-URXVZMSI.js → chunk-HMB3IAVP.js} +2 -2
  83. package/dist/{chunk-22PWPQVX.js → chunk-HPKW6UVW.js} +6 -6
  84. package/dist/{chunk-OFQWTKPW.js → chunk-HZTRKUKE.js} +8 -2
  85. package/dist/{chunk-YJVJCNK4.js → chunk-I35B5RWZ.js} +3 -3
  86. package/dist/{chunk-SCWMPY3F.js → chunk-I3PA54IU.js} +1 -1
  87. package/dist/{chunk-IEXRKKHC.js → chunk-IEEIPTDW.js} +1 -1
  88. package/dist/{chunk-CWN75OWQ.js → chunk-IYLGUQFR.js} +19 -7
  89. package/dist/chunk-JCJJCYCP.js +392 -0
  90. package/dist/{chunk-P7LZ2WSQ.js → chunk-JSVCF4A6.js} +4 -4
  91. package/dist/{chunk-WVRAFHJU.js → chunk-K2Z6OXEI.js} +33 -5
  92. package/dist/{chunk-OBRKDUCE.js → chunk-KIAY63AB.js} +38 -4
  93. package/dist/{chunk-HYRPH6LL.js → chunk-KRWPTZBY.js} +2 -5
  94. package/dist/{chunk-6VNDEMSP.js → chunk-L6BFXQ6S.js} +8 -4
  95. package/dist/chunk-M3BJEZ7E.js +152 -0
  96. package/dist/{chunk-ZOOY4LEZ.js → chunk-MA35E5OY.js} +3 -3
  97. package/dist/{chunk-IHWNDG5C.js → chunk-MDBEAWP2.js} +3 -3
  98. package/dist/{chunk-TEOIEMTR.js → chunk-MDGNQWFN.js} +1 -1
  99. package/dist/{chunk-3YNJAXA5.js → chunk-MOR3H5FK.js} +1 -1
  100. package/dist/{chunk-O7ZX5DHD.js → chunk-MP36L7OJ.js} +2 -2
  101. package/dist/{chunk-5LLDGJGZ.js → chunk-MVIUSNPZ.js} +1 -1
  102. package/dist/{chunk-IIMW46LC.js → chunk-N2C7WJDG.js} +1 -1
  103. package/dist/{chunk-XEPGN46Q.js → chunk-N6Y645MX.js} +1 -1
  104. package/dist/{chunk-IOPIOX5K.js → chunk-N7C7U3ZR.js} +7 -4
  105. package/dist/{chunk-AQJA7TAQ.js → chunk-NQFIMBXS.js} +2 -2
  106. package/dist/{chunk-G5DZZEQF.js → chunk-O2T6ZTLN.js} +1 -1
  107. package/dist/{chunk-RHUYVGFO.js → chunk-O5CNNVRY.js} +7 -7
  108. package/dist/{chunk-6WHOI52Z.js → chunk-OD7PLYYX.js} +8 -8
  109. package/dist/{chunk-K7JA32EI.js → chunk-PNP2BO3U.js} +2 -2
  110. package/dist/{chunk-5SDUQLZ3.js → chunk-PXDRW3QN.js} +1 -1
  111. package/dist/{chunk-ZLDYDO64.js → chunk-QUUZ2BGC.js} +6 -4
  112. package/dist/{chunk-SEVZKBMA.js → chunk-QWM3NY2E.js} +4 -4
  113. package/dist/{chunk-ZQYRP22G.js → chunk-R45WFVRA.js} +1 -1
  114. package/dist/{chunk-PGGMJW7B.js → chunk-RCB4SGTB.js} +35 -7
  115. package/dist/{chunk-GGDJLN5I.js → chunk-REJ4NIBY.js} +1 -1
  116. package/dist/{chunk-5HVQV4H4.js → chunk-RGYOCAHC.js} +2 -2
  117. package/dist/{chunk-GFDXA5QO.js → chunk-ROXILOZ6.js} +2 -2
  118. package/dist/{chunk-G5S72X6Q.js → chunk-SIGASWB7.js} +4 -4
  119. package/dist/{chunk-J5LQW6VB.js → chunk-SOAQ3XXB.js} +2 -2
  120. package/dist/{chunk-RLQOYHXT.js → chunk-SUXEL7G4.js} +15 -15
  121. package/dist/{chunk-SHOE3UR6.js → chunk-SVI2CJ6R.js} +1 -1
  122. package/dist/{chunk-Q77TZ76B.js → chunk-SWPI27QV.js} +8 -8
  123. package/dist/{chunk-T54RTTFW.js → chunk-T3GSTIBS.js} +3 -3
  124. package/dist/chunk-TFBPCJPG.js +26 -0
  125. package/dist/{chunk-XDIHAX2C.js → chunk-U77L3ZQZ.js} +1 -1
  126. package/dist/{chunk-3F2DTPBD.js → chunk-UC4X6I35.js} +6 -0
  127. package/dist/{chunk-7XZS4PNM.js → chunk-UE2WSWNA.js} +1 -1
  128. package/dist/{chunk-JHOPRAJN.js → chunk-VK3MQSA2.js} +11 -5
  129. package/dist/{chunk-KAHWO4XC.js → chunk-VKZSAAXZ.js} +3 -3
  130. package/dist/chunk-VQJLTYEK.js +453 -0
  131. package/dist/{chunk-5YYGPTBP.js → chunk-VZQXHYEI.js} +3 -3
  132. package/dist/{chunk-OZNJ2QD5.js → chunk-W2FSQBUR.js} +17 -17
  133. package/dist/{chunk-RVI665CP.js → chunk-W5PW26KE.js} +1 -1
  134. package/dist/{chunk-KKUBMYCY.js → chunk-WIMVXPYG.js} +12 -12
  135. package/dist/{chunk-ALVXFXUG.js → chunk-WXOOAAT4.js} +27 -4
  136. package/dist/{chunk-OB6DVKHE.js → chunk-WYPRTHXQ.js} +2 -2
  137. package/dist/{chunk-ELWX6CAA.js → chunk-XDDBSGBD.js} +2 -2
  138. package/dist/{chunk-VPPJIWVG.js → chunk-XDRSEU2I.js} +14 -14
  139. package/dist/{chunk-3OA75WJW.js → chunk-XFXCI4IP.js} +16 -9
  140. package/dist/{chunk-RJA64ACI.js → chunk-XQWWFIBR.js} +2 -2
  141. package/dist/{chunk-FK3KV32T.js → chunk-XSHJ37U3.js} +27 -24
  142. package/dist/{chunk-Y6RU3H6C.js → chunk-XUDJ5XSQ.js} +6 -6
  143. package/dist/{chunk-DFSAC4F4.js → chunk-XVVPEWNX.js} +1 -1
  144. package/dist/chunk-Y5DOT5NQ.js +57 -0
  145. package/dist/{chunk-SWC3QIEH.js → chunk-YAS347ZS.js} +1 -1
  146. package/dist/{chunk-L6ZLOJBI.js → chunk-YDG3OXH3.js} +3 -2
  147. package/dist/{chunk-SQ63BIR2.js → chunk-YNFHZ4RI.js} +3 -3
  148. package/dist/{chunk-5BIMSULZ.js → chunk-YSHUIQ3I.js} +2 -2
  149. package/dist/chunk-YTUPQTXA.js +560 -0
  150. package/dist/{chunk-54FVSPRH.js → chunk-ZIYXPDKY.js} +2 -2
  151. package/dist/chunk-ZOAANTVI.js +193 -0
  152. package/dist/{clean-WYXHI2DO.js → clean-3IN64RHM.js} +31 -31
  153. package/dist/cli.js +71 -69
  154. package/dist/{cloud-X52P5AIE.js → cloud-LBUZBUP6.js} +4 -4
  155. package/dist/{cloud-TDXVUIUM.js → cloud-SVYXHFEG.js} +9 -8
  156. package/dist/{cloudrun-36IR6ZKU.js → cloudrun-PZOF2QGL.js} +8 -8
  157. package/dist/{compare-R2KXOV2I.js → compare-UOJ3LXQQ.js} +46 -46
  158. package/dist/{compiler-FRWUFIQC.js → compiler-5ZDHBKBQ.js} +9 -7
  159. package/dist/{component-TIBQY7KQ.js → component-EVIPLTTJ.js} +3 -3
  160. package/dist/{compositions-NQPORXIX.js → compositions-R4GG5FBO.js} +17 -17
  161. package/dist/{contactSheet-PZXG3REG.js → contactSheet-HZMP42FZ.js} +4 -4
  162. package/dist/contract/LICENSE-Unicode.txt +39 -0
  163. package/dist/contract/path-policy.json +311 -0
  164. package/dist/contract/unicode-15.1.0.json +6179 -0
  165. package/dist/{curve-DTLRPBSB.js → curve-LR3PSRW3.js} +16 -16
  166. package/dist/{cuts-73HKU767.js → cuts-DHCOBAFT.js} +17 -17
  167. package/dist/{delete-HIHA436T.js → delete-MMGGU3QP.js} +12 -11
  168. package/dist/deploy-SKIGUTM2.js +213 -0
  169. package/dist/{describeProject-4A5UXQ25.js → describeProject-L7HNTBPV.js} +12 -12
  170. package/dist/{destroy-4DOMPOYB.js → destroy-5HSMMDH7.js} +22 -18
  171. package/dist/{deterministicFonts-SKRN3TCP.js → deterministicFonts-2ZPRAI3C.js} +4 -4
  172. package/dist/{diff-JPADFUMV.js → diff-KR7VKPYL.js} +48 -47
  173. package/dist/{dist-EFXKPJJT.js → dist-3MFNUZSN.js} +4 -4
  174. package/dist/{dist-KWXQYTRT.js → dist-HK3AZNNL.js} +22 -22
  175. package/dist/{dist-FKEKIXVL.js → dist-ZGYPFYOH.js} +4 -4
  176. package/dist/docs/rendering.md +2 -0
  177. package/dist/{doctor-3OO3CONL.js → doctor-G7VGNSA5.js} +18 -18
  178. package/dist/{energy-XFPN5YIL.js → energy-H7EEH6WO.js} +17 -17
  179. package/dist/{events-6ONCYFB5.js → events-5ATZCZTK.js} +4 -4
  180. package/dist/{events-QWPZT3EQ.js → events-ASG27IXP.js} +19 -19
  181. package/dist/{events-G2MME5LQ.js → events-YD6N7OPQ.js} +9 -9
  182. package/dist/execute-OAS454OB.js +109 -0
  183. package/dist/{extract-3EV72SMY.js → extract-645SENLA.js} +20 -20
  184. package/dist/{face-JZS6P3AT.js → face-WRT5XH4I.js} +19 -19
  185. package/dist/{feedback-JVWBHRQG.js → feedback-3LKLR5MV.js} +22 -17
  186. package/dist/{ffmpeg-XDAITYSU.js → ffmpeg-PXKIZL2X.js} +11 -11
  187. package/dist/{figma-KPHTDMCQ.js → figma-RIEVJJBW.js} +3 -3
  188. package/dist/fontLocalizeCli.js +20 -20
  189. package/dist/{frames-KRVRJTKC.js → frames-OTB3J5W3.js} +19 -19
  190. package/dist/{generate-X2MYGFZX.js → generate-IUKCZW2D.js} +33 -32
  191. package/dist/{get-QM24BI7N.js → get-6WVQ7TBV.js} +12 -11
  192. package/dist/{gpuPolicy-EFJJLHVV.js → gpuPolicy-HXSVAEU4.js} +11 -11
  193. package/dist/{grade-compare-W5N5LH4X.js → grade-compare-TCAYHDEF.js} +47 -47
  194. package/dist/{gsapParser-3H7ON3DO.js → gsapParser-L7TM3RGH.js} +49 -26
  195. package/dist/hangReport.js +1 -1
  196. package/dist/{heifImagePrep-X5QRRVTV.js → heifImagePrep-GXIMK4HK.js} +12 -12
  197. package/dist/{help-LWS4YWMO.js → help-RGOL5EJD.js} +2 -1
  198. package/dist/{history-SG34LBJY.js → history-XKPRGJGS.js} +15 -15
  199. package/dist/hyperframe.manifest.json +1 -1
  200. package/dist/hyperframe.runtime.iife.js +42 -42
  201. package/dist/hyperframes-player.global.js +1 -1
  202. package/dist/{info-2FC43IYB.js → info-EYBBC42V.js} +19 -19
  203. package/dist/{init-GKY5OKDV.js → init-F2FWPSMA.js} +36 -36
  204. package/dist/{ink-7UK6YCUY.js → ink-BWFERAAT.js} +17 -17
  205. package/dist/{inspect-ZB2NTNQA.js → inspect-74N7L3BW.js} +44 -44
  206. package/dist/{installer-GALVXWPC.js → installer-LOUR7G4R.js} +8 -8
  207. package/dist/{keyframes-LSP4FLHT.js → keyframes-WB5PTKFE.js} +15 -13
  208. package/dist/{lambda-3F32DRYF.js → lambda-JYCNXUKB.js} +20 -20
  209. package/dist/{layout-XPGS3QTX.js → layout-P52EVR24.js} +44 -44
  210. package/dist/{lint-Q5SO57RK.js → lint-SL55KAS2.js} +15 -15
  211. package/dist/{lintProject-5CBL7VFV.js → lintProject-46WU53VC.js} +4 -4
  212. package/dist/{list-FL5RYSFT.js → list-LN6CQH52.js} +14 -13
  213. package/dist/{localPage-IOHQETQT.js → localPage-L6OJU3UH.js} +12 -12
  214. package/dist/{login-D4TCWDDW.js → login-WTOAMDID.js} +8 -7
  215. package/dist/{logout-7SMEH7JL.js → logout-QGNBUJKS.js} +14 -5
  216. package/dist/{look-G2BT4E4A.js → look-O6ESLJRP.js} +17 -17
  217. package/dist/{manager-F6WI43DQ.js → manager-CMEZWENF.js} +12 -12
  218. package/dist/{measure-VXQQHYMZ.js → measure-NEIXU53P.js} +11 -11
  219. package/dist/{media-treatment-ZXA3JZSL.js → media-treatment-6CAQG7MU.js} +19 -19
  220. package/dist/{media-use-63LZFAID.js → media-use-IXJFMKU7.js} +16 -9
  221. package/dist/{models-MWUVU4CY.js → models-TZALWUEY.js} +15 -15
  222. package/dist/{motionShot-U4YDT7UV.js → motionShot-OQYK6G6M.js} +24 -24
  223. package/dist/{normalize-audio-T5QJWU4P.js → normalize-audio-43PJLOBY.js} +15 -15
  224. package/dist/oauth-SAVP2YM4.js +40 -0
  225. package/dist/{open-DRLXHOW2.js → open-EOX6QY4M.js} +20 -20
  226. package/dist/{parakeetRunner-5OHEB3XZ.js → parakeetRunner-STHAXQAF.js} +19 -19
  227. package/dist/{pipeline-MAIRRYD6.js → pipeline-RRWZHFBQ.js} +14 -14
  228. package/dist/plan-JWUSMF4W.js +88 -0
  229. package/dist/{play-33A3EXX3.js → play-TUKTST32.js} +40 -34
  230. package/dist/{preflight-HSWMKB2Q.js → preflight-L42JKT6F.js} +12 -12
  231. package/dist/{present-HJIFEIDH.js → present-Z7HRDXPV.js} +34 -28
  232. package/dist/{preview-J6Z6RKMN.js → preview-HGTIRAV3.js} +31 -31
  233. package/dist/{probe-RA4VOGYY.js → probe-RXK44FY7.js} +17 -17
  234. package/dist/{producer-KWP2B4A5.js → producer-KJ2RZDJ3.js} +1 -1
  235. package/dist/{progress-TGYZ2TKQ.js → progress-IY6U35WH.js} +1 -1
  236. package/dist/{projectConfig-3YIGHLNE.js → projectConfig-K36NTJXP.js} +11 -11
  237. package/dist/{publication-QRUY2WJK.js → publication-OZWLT6K6.js} +6 -6
  238. package/dist/{publish-GV3I3GUL.js → publish-CRUTXNYM.js} +92 -30
  239. package/dist/{refresh-47T6Z2PK.js → refresh-6ONVQ3WV.js} +4 -3
  240. package/dist/{remove-background-UUITKXEQ.js → remove-background-R37HZPCG.js} +15 -15
  241. package/dist/{render-ZITQXHJP.js → render-EZMKBT7V.js} +57 -52
  242. package/dist/{render-NHVDJRFD.js → render-SU2XTMJL.js} +8 -8
  243. package/dist/{render-EC67XXR2.js → render-ZHCPCISN.js} +101 -937
  244. package/dist/{render-batch-RII4F3PD.js → render-batch-YIUOEAAL.js} +8 -8
  245. package/dist/renderSetupWorker.js +5 -5
  246. package/dist/{resolver-R3FXDZKS.js → resolver-DLCKRKQR.js} +8 -8
  247. package/dist/{reverse-2GJ5Y3WM.js → reverse-4FAVXIER.js} +1 -1
  248. package/dist/{run-24USN7TA.js → run-H4GVEJVS.js} +8 -6
  249. package/dist/{screenshotCapture-TEQVEBWB.js → screenshotCapture-CQF5FYVI.js} +14 -14
  250. package/dist/service-XDQOULGD.js +68 -0
  251. package/dist/share-CUCQALE7.js +274 -0
  252. package/dist/{sherpa-YIJR47GX.js → sherpa-WZNRQUVC.js} +18 -18
  253. package/dist/sherpaWorker.js +1 -1
  254. package/dist/{sites-LILUBMRM.js → sites-QK3F4AUS.js} +1 -1
  255. package/dist/skills/hyperframes-cli/SKILL.md +3 -3
  256. package/dist/skills/hyperframes-cli/references/preview-render.md +21 -0
  257. package/dist/skills/media-use/audio/scripts/lib/heygen.mjs +15 -4
  258. package/dist/skills/media-use/audio/scripts/lib/heygen.test.mjs +42 -6
  259. package/dist/skills/media-use/audio/scripts/lib/python.mjs +17 -2
  260. package/dist/skills/media-use/audio/scripts/lib/python.test.mjs +50 -4
  261. package/dist/skills/media-use/audio/scripts/lib/tts.mjs +11 -1
  262. package/dist/skills/media-use/scripts/lib/svg-sanitize.mjs +2 -1
  263. package/dist/skills/media-use/scripts/lib/tts-local-provider.test.mjs +31 -0
  264. package/dist/{skills-DM3XC7RQ.js → skills-J52DBZAK.js} +12 -12
  265. package/dist/{skillsUpdateCheck-ZHVFEOEN.js → skillsUpdateCheck-26DJHBTC.js} +4 -4
  266. package/dist/{snapshot-72RQQXHW.js → snapshot-ZIRQFDA7.js} +94 -69
  267. package/dist/{src-SPFGPZZQ.js → src-7BGBN6SS.js} +18 -18
  268. package/dist/{src-C43KUEBY.js → src-C3XYMTF4.js} +12 -10
  269. package/dist/{start-FSYSYLI7.js → start-QG2XNMYN.js} +31 -30
  270. package/dist/{state-W3AS6O2J.js → state-7OIPR4BG.js} +1 -1
  271. package/dist/{staticProjectServer-RHBRRGPK.js → staticProjectServer-TWMEFK3T.js} +28 -28
  272. package/dist/{status-TE74GP4Q.js → status-3UPA5WPI.js} +26 -24
  273. package/dist/studio/assets/{codec-DXM4vA6G.js → codec-qz1-OXLj.js} +1 -1
  274. package/dist/studio/assets/{hyperframes-player-D_016Ubp.js → hyperframes-player-2eG1zFX5.js} +1 -1
  275. package/dist/studio/assets/{index-dsfjBidg.css → index-BJTCbv8z.css} +1 -1
  276. package/dist/studio/assets/{index-Ob53qo6K.js → index-DDmhnfrS.js} +189 -189
  277. package/dist/studio/assets/{index-Bw4stQMm.js → index-DUveJ_YP.js} +1 -1
  278. package/dist/studio/assets/{pausedVideoDecoder-vbdgaMqL.js → pausedVideoDecoder-CoHTKUjM.js} +1 -1
  279. package/dist/studio/index.html +2 -2
  280. package/dist/{studio-api-JAOHMYPG.js → studio-api-Z42OO4JJ.js} +22 -22
  281. package/dist/{studioServer-RHCPM4CN.js → studioServer-SMN3RMVL.js} +455 -71
  282. package/dist/{sync-UZJ7DOUA.js → sync-ONTI2WSI.js} +17 -17
  283. package/dist/{synthesize-MDW4ZWTN.js → synthesize-FR5KPBRP.js} +4 -4
  284. package/dist/{telemetry-TFOEA2PM.js → telemetry-RRXALB5D.js} +9 -9
  285. package/dist/{templates-2AHM5TZ3.js → templates-BHFOSD6F.js} +23 -22
  286. package/dist/{timeline-ZGV323MP.js → timeline-Z5IHY5TN.js} +28 -28
  287. package/dist/{tokens-ERUFEWUA.js → tokens-MZVEPARM.js} +2 -2
  288. package/dist/{transcribe-6HLYS7NV.js → transcribe-5IZS4BGW.js} +37 -36
  289. package/dist/{transcribe-M5UZ2XFG.js → transcribe-M5N3YZZU.js} +15 -15
  290. package/dist/{tts-IXX2HHHJ.js → tts-ZE776B4I.js} +1 -1
  291. package/dist/{update-JDVI2XTM.js → update-EVPWBIKY.js} +14 -13
  292. package/dist/{updateCheck-GDTYPXKO.js → updateCheck-2UUEF6TC.js} +5 -3
  293. package/dist/{upgrade-SJKYBA4X.js → upgrade-DK45FD4K.js} +6 -4
  294. package/dist/{urlDownloader-2QCNXXUG.js → urlDownloader-3MPHIDSA.js} +10 -10
  295. package/dist/{validate-IUTHTA2N.js → validate-W27TQ367.js} +36 -36
  296. package/dist/{video-4BJ7WHI2.js → video-TI372QGV.js} +13 -13
  297. package/dist/{voices-UDSFBPZX.js → voices-FZV4PGT6.js} +30 -29
  298. package/dist/warmCheck.js +55 -55
  299. package/dist/warmCheckClient.js +1 -1
  300. package/package.json +2 -1
  301. package/dist/chunk-2X4PQEYM.js +0 -34
  302. package/dist/deploy-EB3FS2BT.js +0 -361
@@ -131,6 +131,7 @@ npx hyperframes render --docker # byte-identical
131
131
  | `--keyframe-interval` | seconds, e.g. `2` | — | MP4 only. A keyframe at least every N seconds. |
132
132
  | `--max-bitrate` | e.g. `8M` | — | MP4 only. Peak bitrate cap alongside the CRF/quality target. Not for WebM/MOV. |
133
133
  | `--buffer-size` | e.g. `16M` | — | MP4 only. Buffer for `--max-bitrate` (default 2x it). Needs `--max-bitrate`. |
134
+ | `--chroma-subsampling` | 420, 444 | 420 | `444` keeps full-resolution colour for thin coloured text/UI (yuv444p, lossless PNG capture, slower). SDR MP4 + software encoder only; rejected with `--gpu`, `--hdr`, other formats. Many players cannot decode 4:4:4. |
134
135
  | `--hdr` | flag | off | Force HDR output even with SDR sources. MP4 only. |
135
136
  | `--sdr` | flag | off | Force SDR even with HDR sources. |
136
137
  | `--workers` | number or `auto` | auto | Each worker spawns Chrome (~256 MB) |
@@ -202,3 +203,23 @@ Uploads the project's source (HTML + assets) and returns a stable hosted URL tha
202
203
  Use cloud rendering when the user wants hosted rendering without local Chrome, FFmpeg, or AWS, and for the final render on a paid HyperFrames plan (`cloud.md`). Use Lambda only when AWS ownership is a requirement. Use Cloud Run only when GCP ownership is a requirement. Read the matching reference before running any cloud path.
203
204
 
204
205
  Skill attribution is automatic — the examples above need no `--skill`. A project scaffolded with `hyperframes init --skill=<slug>` records its owning skill in `hyperframes.json`, and every later render inherits it on usage telemetry: re-renders, `npm run render`, and `--batch` alike. Pass `--skill=<slug>` explicitly only to stamp a project that was not scaffolded with one (its first render then persists it).
206
+
207
+ ## Share a video for review
208
+
209
+ Use `hyperframes share --public` only when the user explicitly wants anyone with
210
+ the link to access the review. First sign in with `hyperframes auth login`.
211
+ Other first-share choices are `--team`, `--invite-only` and `--private`, subject
212
+ to workspace entitlement. `--yes` is not audience consent.
213
+
214
+ Read `hyperframes share --status --json`: `ready: true` is required before
215
+ calling the video ready to watch. Re-running `share` retrieves the existing
216
+ link; `share --update` explicitly renders/uploads changed content. Five retained
217
+ free projects are counted per workspace across CLI and Desktop; versions do
218
+ not consume slots and turning a link off does not release a slot.
219
+
220
+ `publish` uploads source to legacy `/p/` pages. It is not a review share alias.
221
+ During the announced 60-day window its old behavior stays available with a
222
+ notice. The start date is release-owned and currently unscheduled. After it, new
223
+ projects are guided to Share; existing publications and legacy updates stay
224
+ reachable. After the window, legacy updates require a signed-in account.
225
+ Never convert legacy IDs or carry a legacy flag into review consent.
@@ -64,9 +64,20 @@ function envFileText(path) {
64
64
  }
65
65
  }
66
66
 
67
- // A host app sets these in the environment it spawns, never in a project file: a project's .env naming its own base
68
- // would send the person's shell HEYGEN_API_KEY to that host.
69
- const HOST_ONLY = new Set(["HEYGEN_API_BASE", "HEYGEN_ALLOW_HTTP"]);
67
+ // A project .env may supply provider keys and harmless settings only, the same policy as the CLI. Everything
68
+ // else comes from the person's own environment: a project naming the HeyGen base (HEYGEN_API_BASE) would send their
69
+ // shell key to its host, and one setting HYPERFRAMES_PYTHON, NODE_OPTIONS, HYPERFRAMES_CONFIG_DIR or a credential
70
+ // file would choose the programs and the account these scripts use.
71
+ const PROJECT_ENV_KEYS = new Set([
72
+ "HEYGEN_API_KEY",
73
+ "HYPERFRAMES_API_KEY",
74
+ "ELEVENLABS_API_KEY",
75
+ "GEMINI_API_KEY",
76
+ "GOOGLE_API_KEY",
77
+ "HYPERFRAMES_TTS_CONCURRENCY",
78
+ "HYPERFRAMES_NO_TELEMETRY",
79
+ "DO_NOT_TRACK",
80
+ ]);
70
81
 
71
82
  // Walk up ≤5 dirs from startDir; load the first .env (shell env always wins).
72
83
  export function loadEnvFromDir(startDir) {
@@ -87,7 +98,7 @@ export function loadEnvFromDir(startDir) {
87
98
  const end = val.indexOf(q, 1);
88
99
  val = end > 0 ? val.slice(1, end) : val.slice(1);
89
100
  }
90
- if (!HOST_ONLY.has(key) && !(key in process.env)) process.env[key] = val;
101
+ if (PROJECT_ENV_KEYS.has(key) && !(key in process.env)) process.env[key] = val;
91
102
  }
92
103
  return;
93
104
  }
@@ -233,32 +233,68 @@ test("loadEnvFromDir skips a .env folder and loads the .env file above it", () =
233
233
  const root = mkdtempSync(join(tmpdir(), "heygen-env-"));
234
234
  const project = join(root, "project");
235
235
  mkdirSync(join(project, ".env"), { recursive: true });
236
- writeFileSync(join(root, ".env"), "MEDIA_USE_ENV_DIR_TEST=from-parent\n");
236
+ writeFileSync(join(root, ".env"), "ELEVENLABS_API_KEY=from-parent\n");
237
+ const saved = process.env.ELEVENLABS_API_KEY;
238
+ delete process.env.ELEVENLABS_API_KEY;
237
239
  try {
238
240
  loadEnvFromDir(project);
239
- assert.equal(process.env.MEDIA_USE_ENV_DIR_TEST, "from-parent");
241
+ assert.equal(process.env.ELEVENLABS_API_KEY, "from-parent");
240
242
  } finally {
241
- delete process.env.MEDIA_USE_ENV_DIR_TEST;
243
+ if (saved === undefined) delete process.env.ELEVENLABS_API_KEY;
244
+ else process.env.ELEVENLABS_API_KEY = saved;
242
245
  rmSync(root, { recursive: true, force: true });
243
246
  }
244
247
  });
245
248
 
249
+ test("a project's .env supplies provider keys only, never programs, runtime options or another account", () => {
250
+ const keys = [
251
+ "ELEVENLABS_API_KEY",
252
+ "HYPERFRAMES_PYTHON",
253
+ "HYPERFRAMES_PARAKEET",
254
+ "NODE_OPTIONS",
255
+ "npm_config_registry",
256
+ "DYLD_INSERT_LIBRARIES",
257
+ "HYPERFRAMES_CONFIG_DIR",
258
+ "HEYGEN_ACCESS_TOKEN",
259
+ "HYPERFRAMES_CLI_ENTRY",
260
+ "GOOGLE_APPLICATION_CREDENTIALS",
261
+ ];
262
+ const saved = Object.fromEntries(keys.map((key) => [key, process.env[key]]));
263
+ for (const key of keys) delete process.env[key];
264
+ const project = mkdtempSync(join(tmpdir(), "heygen-env-"));
265
+ writeFileSync(join(project, ".env"), keys.map((key) => `${key}=/project/value`).join("\n"));
266
+ try {
267
+ loadEnvFromDir(project);
268
+ assert.equal(process.env.ELEVENLABS_API_KEY, "/project/value");
269
+ for (const key of keys.slice(1)) assert.equal(process.env[key], undefined, key);
270
+ } finally {
271
+ for (const key of keys) {
272
+ if (saved[key] === undefined) delete process.env[key];
273
+ else process.env[key] = saved[key];
274
+ }
275
+ rmSync(project, { recursive: true, force: true });
276
+ }
277
+ });
278
+
246
279
  test("a project's .env cannot name the HeyGen base, so a shell key never leaves for its host", () => {
247
280
  withCleanHeygenEnv(() => {
248
281
  const project = mkdtempSync(join(tmpdir(), "heygen-env-"));
249
282
  writeFileSync(
250
283
  join(project, ".env"),
251
- "HEYGEN_API_BASE=https://proxy.example.com\nHEYGEN_ALLOW_HTTP=1\nMEDIA_USE_ENV_BASE_TEST=loaded\n",
284
+ "HEYGEN_API_BASE=https://proxy.example.com\nHEYGEN_ALLOW_HTTP=1\nHYPERFRAMES_TTS_CONCURRENCY=3\n",
252
285
  );
286
+ const savedConcurrency = process.env.HYPERFRAMES_TTS_CONCURRENCY;
287
+ delete process.env.HYPERFRAMES_TTS_CONCURRENCY;
253
288
  try {
254
289
  process.env.HEYGEN_API_KEY = "hg_shell_real";
255
290
  loadEnvFromDir(project);
256
- assert.equal(process.env.MEDIA_USE_ENV_BASE_TEST, "loaded");
291
+ assert.equal(process.env.HYPERFRAMES_TTS_CONCURRENCY, "3");
257
292
  assert.equal(process.env.HEYGEN_API_BASE, undefined);
258
293
  assert.equal(process.env.HEYGEN_ALLOW_HTTP, undefined);
259
294
  assert.equal(heygenBase(), "https://api.heygen.com/v3");
260
295
  } finally {
261
- delete process.env.MEDIA_USE_ENV_BASE_TEST;
296
+ if (savedConcurrency === undefined) delete process.env.HYPERFRAMES_TTS_CONCURRENCY;
297
+ else process.env.HYPERFRAMES_TTS_CONCURRENCY = savedConcurrency;
262
298
  rmSync(project, { recursive: true, force: true });
263
299
  }
264
300
  });
@@ -62,13 +62,28 @@ export function pythonCommand() {
62
62
  return cached;
63
63
  }
64
64
 
65
+ // `python -c` and `python -m` put the working directory first on sys.path, ahead of installed
66
+ // packages. Dropping that entry first keeps a project file named `pip`, `numpy` or any other
67
+ // imported module from running; `sys` is built into the interpreter.
68
+ const WITHOUT_WORKING_DIRECTORY =
69
+ "import sys\nif sys.path and sys.path[0] == '': del sys.path[0]\n";
70
+
71
+ function withoutWorkingDirectory(extraArgs) {
72
+ const [flag, value, ...rest] = extraArgs;
73
+ if (flag === "-c") return ["-c", WITHOUT_WORKING_DIRECTORY + value, ...rest];
74
+ if (flag !== "-m") return extraArgs;
75
+ const runModule = `import runpy\nrunpy.run_module(${JSON.stringify(value)}, run_name="__main__", alter_sys=True)\n`;
76
+ return ["-c", WITHOUT_WORKING_DIRECTORY + runModule, ...rest];
77
+ }
78
+
65
79
  /**
66
80
  * Build a `{ cmd, args }` for running Python 3 with `extraArgs`, using the
67
81
  * resolved (or supplied) prefix. Keeps the launcher's `-3` (and any future
68
- * prefix args) ahead of the caller's own arguments.
82
+ * prefix args) ahead of the caller's own arguments. Inline code and modules
83
+ * import only installed packages, never files in the working directory.
69
84
  */
70
85
  export function pythonInvocation(extraArgs, prefix = pythonCommand()) {
71
- return { cmd: prefix[0], args: [...prefix.slice(1), ...extraArgs] };
86
+ return { cmd: prefix[0], args: [...prefix.slice(1), ...withoutWorkingDirectory(extraArgs)] };
72
87
  }
73
88
 
74
89
  /** Test-only: clear the cached resolution so a test can re-probe. */
@@ -1,6 +1,7 @@
1
1
  import { test } from "node:test";
2
2
  import assert from "node:assert/strict";
3
- import { chmodSync, mkdtempSync, rmSync, writeFileSync } from "node:fs";
3
+ import { spawnSync } from "node:child_process";
4
+ import { chmodSync, existsSync, mkdtempSync, rmSync, writeFileSync } from "node:fs";
4
5
  import { tmpdir } from "node:os";
5
6
  import { join } from "node:path";
6
7
  import { defaultProbe, resolvePythonCommand, pythonInvocation } from "./python.mjs";
@@ -123,14 +124,59 @@ test("defaultProbe rejects a command that doesn't exist", () => {
123
124
  assert.equal(defaultProbe("/nonexistent/hf-python", ["--version"]), false);
124
125
  });
125
126
 
127
+ const DROP_CWD = "import sys\nif sys.path and sys.path[0] == '': del sys.path[0]\n";
128
+
126
129
  test("pythonInvocation prepends the resolved prefix ahead of caller args", () => {
127
130
  assert.deepEqual(pythonInvocation(["-c", "import x"], ["python"]), {
128
131
  cmd: "python",
129
- args: ["-c", "import x"],
132
+ args: ["-c", `${DROP_CWD}import x`],
130
133
  });
131
134
  // The py launcher's -3 must stay ahead of the caller's own arguments.
132
- assert.deepEqual(pythonInvocation(["-c", "import x"], ["py", "-3"]), {
135
+ assert.deepEqual(pythonInvocation(["-c", "import x", "arg"], ["py", "-3"]), {
133
136
  cmd: "py",
134
- args: ["-3", "-c", "import x"],
137
+ args: ["-3", "-c", `${DROP_CWD}import x`, "arg"],
138
+ });
139
+ assert.deepEqual(pythonInvocation(["/abs/script.py", "--flag"], ["python"]), {
140
+ cmd: "python",
141
+ args: ["/abs/script.py", "--flag"],
135
142
  });
136
143
  });
144
+
145
+ test("pythonInvocation runs modules without the working directory on sys.path", () => {
146
+ const { args } = pythonInvocation(["-m", "pip", "install", "-q", "numpy"], ["python"]);
147
+ assert.deepEqual(args.slice(2), ["install", "-q", "numpy"]);
148
+ assert.equal(args[0], "-c");
149
+ assert.match(
150
+ args[1],
151
+ /^import sys\n.*\nimport runpy\nrunpy\.run_module\("pip", run_name="__main__", alter_sys=True\)\n$/s,
152
+ );
153
+ });
154
+
155
+ function hasPython3() {
156
+ return spawnSync("python3", ["--version"], { encoding: "utf-8" }).status === 0;
157
+ }
158
+
159
+ test("a module planted in the working directory is never imported", { skip: !hasPython3() }, () => {
160
+ const project = mkdtempSync(join(tmpdir(), "hf-py-cwd-"));
161
+ try {
162
+ const marker = join(project, "ran");
163
+ writeFileSync(
164
+ join(project, "hf_probe_module.py"),
165
+ `open(${JSON.stringify(marker)}, "w").write("x")\n`,
166
+ );
167
+ writeFileSync(
168
+ join(project, "hf_probe_main.py"),
169
+ `open(${JSON.stringify(marker)}, "w").write("x")\n`,
170
+ );
171
+ const env = { ...process.env, PYTHONSAFEPATH: "" };
172
+ const inline = pythonInvocation(["-c", "import hf_probe_module"], ["python3"]);
173
+ assert.notEqual(spawnSync(inline.cmd, inline.args, { cwd: project, env }).status, 0);
174
+ const module = pythonInvocation(["-m", "hf_probe_main"], ["python3"]);
175
+ assert.notEqual(spawnSync(module.cmd, module.args, { cwd: project, env }).status, 0);
176
+ assert.equal(existsSync(marker), false);
177
+ const pip = pythonInvocation(["-m", "json.tool", "--help"], ["python3"]);
178
+ assert.equal(spawnSync(pip.cmd, pip.args, { cwd: project, env }).status, 0);
179
+ } finally {
180
+ rmSync(project, { recursive: true, force: true });
181
+ }
182
+ });
@@ -18,7 +18,7 @@ import { refuseUnderLimit } from "../../../scripts/lib/credit-limit.mjs";
18
18
  import { spawn, spawnSync } from "node:child_process";
19
19
  import { existsSync, mkdirSync, mkdtempSync, readFileSync, rmSync, writeFileSync } from "node:fs";
20
20
  import { tmpdir } from "node:os";
21
- import { dirname, join } from "node:path";
21
+ import { dirname, isAbsolute, join } from "node:path";
22
22
  import { heygenAuthHeaders, heygenCredential, heygenJSON, heygenMessage } from "./heygen.mjs";
23
23
  import { pythonInvocation } from "./python.mjs";
24
24
  import { synthesizeGemini } from "./gemini-tts.mjs";
@@ -146,6 +146,14 @@ export function resolveNpxCliPath(
146
146
  return pathExists(besideNode) ? besideNode : null;
147
147
  }
148
148
 
149
+ // A HyperFrames CLI that launches this code hands over its own entry file, so `npx hyperframes`
150
+ // runs that same build with the same Node instead of whatever npx resolves from the project.
151
+ function launchingCliCommand(cmd, args, env = process.env) {
152
+ const entry = env.HYPERFRAMES_CLI_ENTRY;
153
+ if (cmd !== "npx" || args[0] !== "hyperframes" || !entry || !isAbsolute(entry)) return null;
154
+ return { cmd: process.execPath, args: [entry, ...args.slice(1).map((arg) => String(arg))] };
155
+ }
156
+
149
157
  export function resolveSpawnCommand(
150
158
  cmd,
151
159
  args,
@@ -154,6 +162,8 @@ export function resolveSpawnCommand(
154
162
  env = process.env,
155
163
  pathExists = existsSync,
156
164
  ) {
165
+ const cli = launchingCliCommand(cmd, args, env);
166
+ if (cli) return { ...cli, opts: { stdio: "ignore", windowsHide: true, ...opts } };
157
167
  if (cmd !== "npx" || platform !== "win32") {
158
168
  return { cmd, args, opts: { stdio: "ignore", ...opts } };
159
169
  }
@@ -18,4 +18,5 @@ var k0=Object.create;var gi=Object.defineProperty;var O0=Object.getOwnPropertyDe
18
18
  optgroup[disabled] > option,
19
19
  fieldset[disabled]:not(fieldset[disabled] legend:first-of-type *)
20
20
  )`,enabled:":not(:disabled)",checked:":is(:is(input[type=radio], input[type=checkbox])[checked], option:selected)",required:":is(input, select, textarea)[required]",optional:":is(input, select, textarea):not([required])",selected:"option:is([selected], select:not([multiple]):not(:has(> option[selected])) > :first-of-type)",checkbox:"[type=checkbox]",file:"[type=file]",password:"[type=password]",radio:"[type=radio]",reset:"[type=reset]",image:"[type=image]",submit:"[type=submit]",parent:":not(:empty)",header:":is(h1, h2, h3, h4, h5, h6)",button:":is(button, input[type=button])",input:":is(input, textarea, select, button)",text:"input:is(:not([type!='']), [type=text])"};var Ie=xe(Gt(),1);var pn={};function gn(t,e){return t===Ie.default.falseFunc?Ie.default.falseFunc:u=>e.isTag(u)&&t(u)}function mn(t,e){let u=e.getSiblings(t);if(u.length<=1)return[];let r=u.indexOf(t);return r<0||r===u.length-1?[]:u.slice(r+1).filter(e.isTag)}function fn(t){return{xmlMode:!!t.xmlMode,lowerCaseAttributeNames:!!t.lowerCaseAttributeNames,lowerCaseTags:!!t.lowerCaseTags,quirksMode:!!t.quirksMode,cacheResults:!!t.cacheResults,pseudos:t.pseudos,adapter:t.adapter,equals:t.equals}}var hn=(t,e,u,r,s)=>{let i=s(e,fn(u),r);return i===Ie.default.trueFunc?t:i===Ie.default.falseFunc?Ie.default.falseFunc:n=>i(n)&&t(n)},_r={is:hn,matches:hn,where:hn,not(t,e,u,r,s){let i=s(e,fn(u),r);return i===Ie.default.falseFunc?t:i===Ie.default.trueFunc?Ie.default.falseFunc:n=>!i(n)&&t(n)},has(t,e,u,r,s){let{adapter:i}=u,n=fn(u);n.relativeSelector=!0;let o=e.some(d=>d.some(Gu))?[pn]:void 0,a=s(e,n,o);if(a===Ie.default.falseFunc)return Ie.default.falseFunc;let c=gn(a,i);if(o&&a!==Ie.default.trueFunc){let{shouldTestNextSiblings:d=!1}=a;return m=>{if(!t(m))return!1;o[0]=m;let x=i.getChildren(m),v=d?[...x,...mn(m,i)]:x;return i.existsOne(c,v)}}return d=>t(d)&&i.existsOne(c,i.getChildren(d))}};function ba(t,e,u,r,s){var i;let{name:n,data:o}=e;if(Array.isArray(o)){if(!(n in _r))throw new Error(`Unknown pseudo-class :${n}(${o})`);return _r[n](t,o,u,r,s)}let a=(i=u.pseudos)===null||i===void 0?void 0:i[n],c=typeof a=="string"?a:dn[n];if(typeof c=="string"){if(o!=null)throw new Error(`Pseudo ${n} doesn't have any arguments`);let d=(0,ma.parse)(c);return _r.is(t,d,u,r,s)}if(typeof a=="function")return ln(a,n,o,1),d=>a(d,o)&&t(d);if(n in Hu)return Hu[n](t,o,u,r);if(n in Pr){let d=Pr[n];return ln(d,n,o,2),m=>d(m,u,o)&&t(m)}throw new Error(`Unknown pseudo-class :${n}`)}var Ne=xe(Lu(),1);function bn(t,e){let u=e.getParent(t);return u&&e.isTag(u)?u:null}function Sa(t,e,u,r,s){let{adapter:i,equals:n}=u;switch(e.type){case Ne.SelectorType.PseudoElement:throw new Error("Pseudo-elements are not supported by css-select");case Ne.SelectorType.ColumnCombinator:throw new Error("Column combinators are not yet supported by css-select");case Ne.SelectorType.Attribute:{if(e.namespace!=null)throw new Error("Namespaced attributes are not yet supported by css-select");return(!u.xmlMode||u.lowerCaseAttributeNames)&&(e.name=e.name.toLowerCase()),ha[e.action](t,e,u)}case Ne.SelectorType.Pseudo:return ba(t,e,u,r,s);case Ne.SelectorType.Tag:{if(e.namespace!=null)throw new Error("Namespaced tag names are not yet supported by css-select");let{name:o}=e;return(!u.xmlMode||u.lowerCaseTags)&&(o=o.toLowerCase()),function(c){return i.getName(c)===o&&t(c)}}case Ne.SelectorType.Descendant:{if(u.cacheResults===!1||typeof WeakSet>"u")return function(c){let d=c;for(;d=bn(d,i);)if(t(d))return!0;return!1};let o=new WeakSet;return function(c){let d=c;for(;d=bn(d,i);)if(!o.has(d)){if(i.isTag(d)&&t(d))return!0;o.add(d)}return!1}}case"_flexibleDescendant":return function(a){let c=a;do if(t(c))return!0;while(c=bn(c,i));return!1};case Ne.SelectorType.Parent:return function(a){return i.getChildren(a).some(c=>i.isTag(c)&&t(c))};case Ne.SelectorType.Child:return function(a){let c=i.getParent(a);return c!=null&&i.isTag(c)&&t(c)};case Ne.SelectorType.Sibling:return function(a){let c=i.getSiblings(a);for(let d=0;d<c.length;d++){let m=c[d];if(n(a,m))break;if(i.isTag(m)&&t(m))return!0}return!1};case Ne.SelectorType.Adjacent:return i.prevElementSibling?function(a){let c=i.prevElementSibling(a);return c!=null&&t(c)}:function(a){let c=i.getSiblings(a),d;for(let m=0;m<c.length;m++){let x=c[m];if(n(a,x))break;i.isTag(x)&&(d=x)}return!!d&&t(d)};case Ne.SelectorType.Universal:{if(e.namespace!=null&&e.namespace!=="*")throw new Error("Namespaced universal selectors are not yet supported by css-select");return t}}}function Sn(t,e,u){let r=Xr(t,e,u);return gn(r,e.adapter)}function Xr(t,e,u){let r=typeof t=="string"?(0,Le.parse)(t):t;return jr(r,e,u)}function xa(t){return t.type===Le.SelectorType.Pseudo&&(t.name==="scope"||Array.isArray(t.data)&&t.data.some(e=>e.some(xa)))}var CA={type:Le.SelectorType.Descendant},EA={type:"_flexibleDescendant"},yA={type:Le.SelectorType.Pseudo,name:"scope",data:null};function wA(t,{adapter:e},u){let r=!!u?.every(s=>{let i=e.isTag(s)&&e.getParent(s);return s===pn||i&&e.isTag(i)});for(let s of t){if(!(s.length>0&&Gu(s[0])&&s[0].type!==Le.SelectorType.Descendant))if(r&&!s.some(xa))s.unshift(CA);else continue;s.unshift(yA)}}function jr(t,e,u){var r;t.forEach(an),u=(r=e.context)!==null&&r!==void 0?r:u;let s=Array.isArray(u),i=u&&(Array.isArray(u)?u:[u]);if(e.relativeSelector!==!1)wA(t,e,i);else if(t.some(a=>a.length>0&&Gu(a[0])))throw new Error("Relative selectors are not allowed when the `relativeSelector` option is disabled");let n=!1,o=t.map(a=>{if(a.length>=2){let[c,d]=a;c.type!==Le.SelectorType.Pseudo||c.name!=="scope"||(s&&d.type===Le.SelectorType.Descendant?a[1]=EA:(d.type===Le.SelectorType.Adjacent||d.type===Le.SelectorType.Sibling)&&(n=!0))}return IA(a,e,i)}).reduce(NA,At.default.falseFunc);return o.shouldTestNextSiblings=n,o}function IA(t,e,u){var r;return t.reduce((s,i)=>s===At.default.falseFunc?At.default.falseFunc:Sa(s,i,e,u,jr),(r=e.rootFunc)!==null&&r!==void 0?r:At.default.trueFunc)}function NA(t,e){return e===At.default.falseFunc||t===At.default.trueFunc?t:t===At.default.falseFunc||e===At.default.trueFunc?e:function(r){return t(r)||e(r)}}var Ca=(t,e)=>t===e,TA={adapter:$t,equals:Ca};function Cn(t){var e,u,r,s;let i=t??TA;return(e=i.adapter)!==null&&e!==void 0||(i.adapter=$t),(u=i.equals)!==null&&u!==void 0||(i.equals=(s=(r=i.adapter)===null||r===void 0?void 0:r.equals)!==null&&s!==void 0?s:Ca),i}function En(t){return function(u,r,s){let i=Cn(r);return t(u,i,s)}}var Ea=En(Sn),tp=En(Xr),up=En(jr);function ya(t){return function(u,r,s){let i=Cn(s);typeof u!="function"&&(u=Xr(u,i,r));let n=DA(r,i.adapter,u.shouldTestNextSiblings);return t(u,n,i)}}function DA(t,e,u=!1){return u&&(t=BA(t,e)),Array.isArray(t)?e.removeSubsets(t):e.getChildren(t)}function BA(t,e){let u=Array.isArray(t)?t.slice(0):[t],r=u.length;for(let s=0;s<r;s++){let i=mn(u[s],e);u.push(...i)}return u}var rp=ya((t,e,u)=>t===xn.default.falseFunc||!e||e.length===0?[]:u.adapter.findAll(t,e)),sp=ya((t,e,u)=>t===xn.default.falseFunc||!e||e.length===0?null:u.adapter.findOne(t,e));function wa(t,e,u){let r=Cn(u);return(typeof e=="function"?e:Sn(e,r))(t)}var{isArray:RA}=Array,zr=({nodeType:t})=>t===1,Ia=(t,e)=>e.some(u=>zr(u)&&(t(u)||Ia(t,ou(u)))),FA=(t,e)=>e==="class"?t.classList.value:t.getAttribute(e),ou=({childNodes:t})=>t,MA=t=>{let{localName:e}=t;return Ee(t)?e.toLowerCase():e},kA=({parentNode:t})=>t,OA=t=>{let{parentNode:e}=t;return e?ou(e):t},yn=t=>RA(t)?t.map(yn).join(""):zr(t)?yn(ou(t)):t.nodeType===3?t.data:"",LA=(t,e)=>t.hasAttribute(e),GA=t=>{let{length:e}=t;for(;e--;){let u=t[e];if(e&&-1<t.lastIndexOf(u,e-1)){t.splice(e,1);continue}for(let{parentNode:r}=u;r;r=r.parentNode)if(t.includes(r)){t.splice(e,1);break}}return t},Na=(t,e)=>{let u=[];for(let r of e)zr(r)&&(t(r)&&u.push(r),u.push(...Na(t,ou(r))));return u},Ta=(t,e)=>{for(let u of e)if(t(u)||(u=Ta(t,ou(u))))return u;return null},Da={isTag:zr,existsOne:Ia,getAttributeValue:FA,getChildren:ou,getName:MA,getParent:kA,getSiblings:OA,getText:yn,hasAttrib:LA,removeSubsets:GA,findAll:Na,findOne:Ta},Ku=(t,e)=>Ea(e,{context:e.includes(":scope")?t:void 0,xmlMode:!Ee(t),adapter:Da}),Ba=(t,e)=>wa(t,e,{strict:!0,context:e.includes(":scope")?t:void 0,xmlMode:!Ee(t),adapter:Da});var Te=class t extends Oe{constructor(e,u=""){super(e,"#text",3,u)}get wholeText(){let e=[],{previousSibling:u,nextSibling:r}=this;for(;u&&u.nodeType===3;){e.unshift(u[y]);u=u.previousSibling}for(e.push(this[y]);r&&r.nodeType===3;){e.push(r[y]);r=r.nextSibling}return e.join("")}cloneNode(){let{ownerDocument:e,[y]:u}=this;return new t(e,u)}toString(){return tu(this[y])}};var QA=t=>t instanceof Ae,wn=(t,e,u)=>{let{ownerDocument:r}=t;for(let s of u)t.insertBefore(QA(s)?s:new Te(r,s),e)},au=class extends Ae{constructor(e,u,r){super(e,u,r),this[G]=null,this[p]=this[g]={[p]:null,[T]:this,[Y]:this,nodeType:-1,ownerDocument:this.ownerDocument,parentNode:null}}get childNodes(){let e=new U,{firstChild:u}=this;for(;u;)e.push(u),u=ke(u);return e}get children(){let e=new U,{firstElementChild:u}=this;for(;u;)e.push(u),u=uu(u);return e}get firstChild(){let{[p]:e,[g]:u}=this;for(;e.nodeType===2;)e=e[p];return e===u?null:e}get firstElementChild(){let{firstChild:e}=this;for(;e;){if(e.nodeType===1)return e;e=ke(e)}return null}get lastChild(){let e=this[g][T];switch(e.nodeType){case-1:return e[Y];case 2:return null}return e===this?null:e}get lastElementChild(){let{lastChild:e}=this;for(;e;){if(e.nodeType===1)return e;e=at(e)}return null}get childElementCount(){return this.children.length}prepend(...e){wn(this,this.firstChild,e)}append(...e){wn(this,this[g],e)}replaceChildren(...e){let{[p]:u,[g]:r}=this;for(;u!==r&&u.nodeType===2;)u=u[p];for(;u!==r;){let s=K(u)[p];u.remove(),u=s}e.length&&wn(this,r,e)}getElementsByClassName(e){let u=new U,{[p]:r,[g]:s}=this;for(;r!==s;)r.nodeType===1&&r.hasAttribute("class")&&r.classList.has(e)&&u.push(r),r=r[p];return u}getElementsByTagName(e){let u=new U,{[p]:r,[g]:s}=this;for(;r!==s;)r.nodeType===1&&(r.localName===e||vu(r)===e)&&u.push(r),r=r[p];return u}querySelector(e){let u=Ku(this,e),{[p]:r,[g]:s}=this;for(;r!==s;){if(r.nodeType===1&&u(r))return r;r=r.nodeType===1&&r.localName==="template"?r[g]:r[p]}return null}querySelectorAll(e){let u=Ku(this,e),r=new U,{[p]:s,[g]:i}=this;for(;s!==i;)s.nodeType===1&&u(s)&&r.push(s),s=s.nodeType===1&&s.localName==="template"?s[g]:s[p];return r}appendChild(e){return this.insertBefore(e,this[g])}contains(e){let u=e;for(;u&&u!==this;)u=u.parentNode;return u===this}insertBefore(e,u=null){if(e===u)return e;if(e===this)throw new Error("unable to append a node to itself");let r=u||this[g];switch(e.nodeType){case 1:e.remove(),e.parentNode=this,Bu(r[T],e,r),wt(e,null),Ru(e);break;case 11:{let{[G]:s,firstChild:i,lastChild:n}=e;if(i){$i(r[T],i,n,r),ce(e,e[g]),s&&s.replaceChildren();do i.parentNode=this,wt(i,null),i.nodeType===1&&Ru(i);while(i!==n&&(i=ke(i)))}break}case 3:case 8:case 4:e.remove();default:e.parentNode=this,nt(r[T],e,r),wt(e,null);break}return e}normalize(){let{[p]:e,[g]:u}=this;for(;e!==u;){let{[p]:r,[T]:s,nodeType:i}=e;i===3&&(e[y]?s&&s.nodeType===3&&(s.textContent+=e.textContent,e.remove()):e.remove()),e=r}}removeChild(e){if(e.parentNode!==this)throw new Error("node is not a child");return e.remove(),e}replaceChild(e,u){let r=K(u)[p];return u.remove(),this.insertBefore(e,r),u}};var Dt=class extends au{getElementById(e){let{[p]:u,[g]:r}=this;for(;u!==r;){if(u.nodeType===1&&u.id===e)return u;u=u[p]}return null}cloneNode(e){let{ownerDocument:u,constructor:r}=this,s=new r(u);if(e){let{[g]:i}=s;for(let n of this.childNodes)s.insertBefore(n.cloneNode(e),i)}return s}toString(){let{childNodes:e,localName:u}=this;return`<${u}>${e.join("")}</${u}>`}toJSON(){let e=[];return qo(this,e),e}};var Ht=class extends Dt{constructor(e){super(e,"#document-fragment",11)}};var lt=class t extends Ae{constructor(e,u,r="",s=""){super(e,"#document-type",10),this.name=u,this.publicId=r,this.systemId=s}cloneNode(){let{ownerDocument:e,name:u,publicId:r,systemId:s}=this;return new t(e,u,r,s)}toString(){let{name:e,publicId:u,systemId:r}=this,s=0<u.length,i=[e];return s&&i.push("PUBLIC",`"${u}"`),r.length&&(s||i.push("SYSTEM"),i.push(`"${r}"`)),`<!DOCTYPE ${i.join(" ")}>`}toJSON(){let e=[];return un(this,e),e}};var $r=t=>t.childNodes.join(""),es=(t,e)=>{let{ownerDocument:u}=t,{constructor:r}=u,s=new r;s[se]=u[se];let{childNodes:i}=Lr(s,Ee(t),e);t.replaceChildren(...i.map(va,u))};function va(t){switch(t.ownerDocument=this,t.nodeType){case 1:case 11:t.childNodes.forEach(va,this);break}return t}var cu=t=>t.replace(/(([A-Z0-9])([A-Z0-9][a-z]))|(([a-z0-9]+)([A-Z]))/g,"$2$5-$3$6").toLowerCase();var ts=new WeakMap,In=t=>`data-${cu(t)}`,HA=t=>t.slice(5).replace(/-([a-z])/g,(e,u)=>u.toUpperCase()),KA={get(t,e){if(e in t)return ts.get(t).getAttribute(In(e))},set(t,e,u){return t[e]=u,ts.get(t).setAttribute(In(e),u),!0},deleteProperty(t,e){return e in t&&ts.get(t).removeAttribute(In(e)),delete t[e]}},Uu=class{constructor(e){for(let{name:u,value:r}of e.attributes)/^data-/.test(u)&&(this[HA(u)]=r);return ts.set(this,e),new Proxy(this,KA)}};H(Uu.prototype,null);var{add:UA}=Set.prototype,Ra=(t,e)=>{for(let u of e)u&&UA.call(t,u)},Wu=({[bi]:t,value:e})=>{let u=t.getAttributeNode("class");u?u.value=e:Mu(t,new we(t.ownerDocument,"class",e))},us=class extends Set{constructor(e){super(),this[bi]=e;let u=e.getAttributeNode("class");u&&Ra(this,u.value.split(/\s+/))}get length(){return this.size}get value(){return[...this].join(" ")}add(...e){Ra(this,e),Wu(this)}contains(e){return this.has(e)}remove(...e){for(let u of e)this.delete(u);Wu(this)}toggle(e,u){if(this.has(e)){if(u)return!0;this.delete(e),Wu(this)}else if(u||arguments.length===1)return super.add(e),Wu(this),!0;return!1}replace(e,u){return this.has(e)?(this.delete(e),super.add(u),Wu(this),!0):!1}supports(){return!0}};var ss=new WeakMap,Nn=t=>[...t.keys()].filter(e=>e!==G),is=t=>{let e=ss.get(t).getAttributeNode("style");if((!e||e[qt]||t.get(G)!==e)&&(t.clear(),e)){t.set(G,e);for(let u of e[y].split(/\s*;\s*/)){let[r,...s]=u.split(":");if(s.length>0){r=r.trim();let i=s.join(":").trim();r&&i&&t.set(r,i)}}}return e},rs={get(t,e){return e in WA?t[e]:(is(t),e==="length"?Nn(t).length:/^\d+$/.test(e)?Nn(t)[e]:t.get(cu(e)))},set(t,e,u){if(e==="cssText")t[e]=u;else{let r=is(t);if(u==null?t.delete(cu(e)):t.set(cu(e),u),!r){let s=ss.get(t);r=s.ownerDocument.createAttribute("style"),s.setAttributeNode(r),t.set(G,r)}r[qt]=!1,r[y]=t.toString()}return!0}},Yu=class extends Map{constructor(e){return super(),ss.set(this,e),new Proxy(this,rs)}get cssText(){return this.toString()}set cssText(e){ss.get(this).setAttribute("style",e)}getPropertyValue(e){let u=this[G];return rs.get(u,e)}setProperty(e,u){let r=this[G];rs.set(r,e,u)}removeProperty(e){let u=this[G];rs.set(u,e,null)}[Symbol.iterator](){let e=this[G];is(e);let u=Nn(e),{length:r}=u,s=0;return{next(){let i=s===r;return{done:i,value:i?null:u[s++]}}}}get[G](){return this}toString(){let e=this[G];is(e);let u=[];return e.forEach(YA,u),u.join(";")}},{prototype:WA}=Yu;function YA(t,e){e!==G&&this.push(`${e}:${t}`)}function JA(t){return t.currentTarget}var ne=class{static get BUBBLING_PHASE(){return 3}static get AT_TARGET(){return 2}static get CAPTURING_PHASE(){return 1}static get NONE(){return 0}constructor(e,u={}){this.type=e,this.bubbles=!!u.bubbles,this.cancelBubble=!1,this._stopImmediatePropagationFlag=!1,this.cancelable=!!u.cancelable,this.eventPhase=this.NONE,this.timeStamp=Date.now(),this.defaultPrevented=!1,this.originalTarget=null,this.returnValue=null,this.srcElement=null,this.target=null,this._path=[]}get BUBBLING_PHASE(){return 3}get AT_TARGET(){return 2}get CAPTURING_PHASE(){return 1}get NONE(){return 0}preventDefault(){this.defaultPrevented=!0}composedPath(){return this._path.map(JA)}stopPropagation(){this.cancelBubble=!0}stopImmediatePropagation(){this.stopPropagation(),this._stopImmediatePropagationFlag=!0}};var Au=class extends Array{constructor(e){super(),this.ownerElement=e}getNamedItem(e){return this.ownerElement.getAttributeNode(e)}setNamedItem(e){this.ownerElement.setAttributeNode(e),this.unshift(e)}removeNamedItem(e){let u=this.getNamedItem(e);this.ownerElement.removeAttribute(e),this.splice(this.indexOf(u),1)}item(e){return e<this.length?this[e]:null}getNamedItemNS(e,u){return this.getNamedItem(u)}setNamedItemNS(e,u){return this.setNamedItem(u)}removeNamedItemNS(e,u){return this.removeNamedItem(u)}};var Kt=class extends Dt{constructor(e){super(e.ownerDocument,"#shadow-root",11),this.host=e}get innerHTML(){return $r(this)}set innerHTML(e){es(this,e)}};var qA={get(t,e){return e in t?t[e]:t.find(({name:u})=>u===e)}},Fa=(t,e,u)=>{if("ownerSVGElement"in e){let r=t.createElementNS(Mt,u);return r.ownerSVGElement=e.ownerSVGElement,r}return t.createElement(u)},VA=({localName:t,ownerDocument:e})=>e[Be].voidElements.test(t),Ge=class extends au{constructor(e,u){super(e,u,1),this[bt]=null,this[pr]=null,this[gr]=null}get isConnected(){return Hr(this)}get parentElement(){return Kr(this)}get previousSibling(){return at(this)}get nextSibling(){return ke(this)}get namespaceURI(){return"http://www.w3.org/1999/xhtml"}get previousElementSibling(){return Ur(this)}get nextElementSibling(){return uu(this)}before(...e){Wr(this,e)}after(...e){Yr(this,e)}replaceWith(...e){ku(this,e)}remove(){Jr(this[T],this,this[g][p])}get id(){return h.get(this,"id")}set id(e){h.set(this,"id",e)}get className(){return this.classList.value}set className(e){let{classList:u}=this;u.clear(),u.add(...Re(e).split(/\s+/))}get nodeName(){return vu(this)}get tagName(){return vu(this)}get classList(){return this[bt]||(this[bt]=new us(this))}get dataset(){return this[pr]||(this[pr]=new Uu(this))}getBoundingClientRect(){return{x:0,y:0,bottom:0,height:0,left:0,right:0,top:0,width:0}}get nonce(){return h.get(this,"nonce")}set nonce(e){h.set(this,"nonce",e)}get style(){return this[gr]||(this[gr]=new Yu(this))}get tabIndex(){return Fe.get(this,"tabindex")||-1}set tabIndex(e){Fe.set(this,"tabindex",e)}get slot(){return h.get(this,"slot")}set slot(e){h.set(this,"slot",e)}get innerText(){let e=[],{[p]:u,[g]:r}=this;for(;u!==r;)u.nodeType===3?e.push(u.textContent.replace(/\s+/g," ")):e.length&&u[p]!=r&&Bo.has(u.tagName)&&e.push(`
21
- `),u=u[p];return e.join("")}get textContent(){let e=[],{[p]:u,[g]:r}=this;for(;u!==r;){let s=u.nodeType;(s===3||s===4)&&e.push(u.textContent),u=u[p]}return e.join("")}set textContent(e){this.replaceChildren(),e!=null&&e!==""&&this.appendChild(new Te(this.ownerDocument,e))}get innerHTML(){return $r(this)}set innerHTML(e){es(this,e)}get outerHTML(){return this.toString()}set outerHTML(e){let u=this.ownerDocument.createElement("");u.innerHTML=e,this.replaceWith(...u.childNodes)}get attributes(){let e=new Au(this),u=this[p];for(;u.nodeType===2;)e.push(u),u=u[p];return new Proxy(e,qA)}focus(){this.dispatchEvent(new ne("focus"))}getAttribute(e){if(e==="class")return this.className;let u=this.getAttributeNode(e);return u&&(Ee(this)?u.value:tu(u.value))}getAttributeNode(e){let u=this[p];for(;u.nodeType===2;){if(u.name===e)return u;u=u[p]}return null}getAttributeNames(){let e=new U,u=this[p];for(;u.nodeType===2;)e.push(u.name),u=u[p];return e}hasAttribute(e){return!!this.getAttributeNode(e)}hasAttributes(){return this[p].nodeType===2}removeAttribute(e){e==="class"&&this[bt]&&this[bt].clear();let u=this[p];for(;u.nodeType===2;){if(u.name===e){sn(this,u);return}u=u[p]}}removeAttributeNode(e){let u=this[p];for(;u.nodeType===2;){if(u===e){sn(this,u);return}u=u[p]}}setAttribute(e,u){if(e==="class")this.className=u;else{let r=this.getAttributeNode(e);r?r.value=u:Mu(this,new we(this.ownerDocument,e,u))}}setAttributeNode(e){let{name:u}=e,r=this.getAttributeNode(u);if(r!==e){r&&this.removeAttributeNode(r);let{ownerElement:s}=e;s&&s.removeAttributeNode(e),Mu(this,e)}return r}toggleAttribute(e,u){return this.hasAttribute(e)?u?!0:(this.removeAttribute(e),!1):u||arguments.length===1?(this.setAttribute(e,""),!0):!1}get shadowRoot(){if(Je.has(this)){let{mode:e,shadowRoot:u}=Je.get(this);if(e==="open")return u}return null}attachShadow(e){if(Je.has(this))throw new Error("operation not supported");let u=new Kt(this);return Je.set(this,{mode:e.mode,shadowRoot:u}),u}matches(e){return Ba(this,e)}closest(e){let u=this,r=Ku(u,e);for(;u&&!r(u);)u=u.parentElement;return u}insertAdjacentElement(e,u){let{parentElement:r}=this;switch(e){case"beforebegin":if(r){r.insertBefore(u,this);break}return null;case"afterbegin":this.insertBefore(u,this.firstChild);break;case"beforeend":this.insertBefore(u,null);break;case"afterend":if(r){r.insertBefore(u,this.nextSibling);break}return null}return u}insertAdjacentHTML(e,u){this.insertAdjacentElement(e,Mr(this.ownerDocument,u))}insertAdjacentText(e,u){let r=this.ownerDocument.createTextNode(u);this.insertAdjacentElement(e,r)}cloneNode(e=!1){let{ownerDocument:u,localName:r}=this,s=d=>{d.parentNode=n,ce(o,d),o=d},i=Fa(u,this,r),n=i,o=i,{[p]:a,[g]:c}=this;for(;a!==c&&(e||a.nodeType===2);){switch(a.nodeType){case-1:ce(o,n[g]),o=n[g],n=n.parentNode;break;case 1:{let d=Fa(u,a,a.localName);s(d),n=d;break}case 2:{let d=a.cloneNode(e);d.ownerElement=n,s(d);break}case 3:case 8:case 4:s(a.cloneNode(e));break}a=a[p]}return ce(o,i[g]),i}toString(){let e=[],{[g]:u}=this,r={[p]:this},s=!1;do switch(r=r[p],r.nodeType){case 2:{let i=" "+r;switch(i){case" id":case" class":case" style":break;default:e.push(i)}break}case-1:{let i=r[Y];s?("ownerSVGElement"in i?e.push(" />"):VA(i)?e.push(Ee(i)?">":" />"):e.push(`></${i.localName}>`),s=!1):e.push(`</${i.localName}>`);break}case 1:s&&e.push(">"),r.toString!==this.toString?(e.push(r.toString()),r=r[g],s=!1):(e.push(`<${r.localName}`),s=!0);break;case 3:case 8:case 4:e.push((s?">":"")+r),s=!1;break}while(r!==u);return e.join("")}toJSON(){let e=[];return rn(this,e),e}getAttributeNS(e,u){return this.getAttribute(u)}getElementsByTagNameNS(e,u){return this.getElementsByTagName(u)}hasAttributeNS(e,u){return this.hasAttribute(u)}removeAttributeNS(e,u){this.removeAttribute(u)}setAttributeNS(e,u,r){this.setAttribute(u,r)}setAttributeNodeNS(e){return this.setAttributeNode(e)}};var Tn=new WeakMap,ZA={get(t,e){return t[e]},set(t,e,u){return t[e]=u,!0}},Qe=class extends Ge{constructor(e,u,r=null){super(e,u),this.ownerSVGElement=r}get className(){return Tn.has(this)||Tn.set(this,new Proxy({baseVal:"",animVal:""},ZA)),Tn.get(this)}set className(e){let{classList:u}=this;u.clear(),u.add(...Re(e).split(/\s+/))}get namespaceURI(){return"http://www.w3.org/2000/svg"}getAttribute(e){return e==="class"?[...this.classList].join(" "):super.getAttribute(e)}setAttribute(e,u){if(e==="class")this.className=u;else if(e==="style"){let{className:r}=this;r.baseVal=r.animVal=u}super.setAttribute(e,u)}};var oe=()=>{throw new TypeError("Illegal constructor")};function Dn(){oe()}H(Dn,we);Dn.prototype=we.prototype;function Bn(){oe()}H(Bn,Nt);Bn.prototype=Nt.prototype;function vn(){oe()}H(vn,Oe);vn.prototype=Oe.prototype;function Rn(){oe()}H(Rn,Tt);Rn.prototype=Tt.prototype;function Fn(){oe()}H(Fn,Ht);Fn.prototype=Ht.prototype;function Mn(){oe()}H(Mn,lt);Mn.prototype=lt.prototype;function kn(){oe()}H(kn,Ge);kn.prototype=Ge.prototype;function On(){oe()}H(On,Ae);On.prototype=Ae.prototype;function Ln(){oe()}H(Ln,Kt);Ln.prototype=Kt.prototype;function Gn(){oe()}H(Gn,Te);Gn.prototype=Te.prototype;function Qn(){oe()}H(Qn,Qe);Qn.prototype=Qe.prototype;var Ma={Attr:Dn,CDATASection:Bn,CharacterData:vn,Comment:Rn,DocumentFragment:Fn,DocumentType:Mn,Element:kn,Node:On,ShadowRoot:Ln,Text:Gn,SVGElement:Qn};var Ju=new WeakMap,A={get(t,e){return Ju.has(t)&&Ju.get(t)[e]||null},set(t,e,u){Ju.has(t)||Ju.set(t,{});let r=Ju.get(t),s=e.slice(2);r[e]&&t.removeEventListener(s,r[e],!1),(r[e]=u)&&t.addEventListener(s,u,!1)}},l=class extends Ge{static get observedAttributes(){return[]}constructor(e=null,u=""){super(e,u);let r=!e,s;if(r){let{constructor:i}=this;if(!kt.has(i))throw new Error("unable to initialize this Custom Element");({ownerDocument:e,localName:u,options:s}=kt.get(i))}if(e[xt]){let{element:i,values:n}=e[xt];e[xt]=null;for(let[o,a]of n)i[o]=a;return i}r&&(this.ownerDocument=this[g].ownerDocument=e,this.localName=u,ot.set(this,{connected:!1}),s.is&&this.setAttribute("is",s.is))}blur(){this.dispatchEvent(new ne("blur"))}click(){let e=new ne("click",{bubbles:!0,cancelable:!0});e.button=0,this.dispatchEvent(e)}get accessKeyLabel(){let{accessKey:e}=this;return e&&`Alt+Shift+${e}`}get isContentEditable(){return this.hasAttribute("contenteditable")}get contentEditable(){return C.get(this,"contenteditable")}set contentEditable(e){C.set(this,"contenteditable",e)}get draggable(){return C.get(this,"draggable")}set draggable(e){C.set(this,"draggable",e)}get hidden(){return C.get(this,"hidden")}set hidden(e){C.set(this,"hidden",e)}get spellcheck(){return C.get(this,"spellcheck")}set spellcheck(e){C.set(this,"spellcheck",e)}get accessKey(){return h.get(this,"accesskey")}set accessKey(e){h.set(this,"accesskey",e)}get dir(){return h.get(this,"dir")}set dir(e){h.set(this,"dir",e)}get lang(){return h.get(this,"lang")}set lang(e){h.set(this,"lang",e)}get title(){return h.get(this,"title")}set title(e){h.set(this,"title",e)}get onabort(){return A.get(this,"onabort")}set onabort(e){A.set(this,"onabort",e)}get onblur(){return A.get(this,"onblur")}set onblur(e){A.set(this,"onblur",e)}get oncancel(){return A.get(this,"oncancel")}set oncancel(e){A.set(this,"oncancel",e)}get oncanplay(){return A.get(this,"oncanplay")}set oncanplay(e){A.set(this,"oncanplay",e)}get oncanplaythrough(){return A.get(this,"oncanplaythrough")}set oncanplaythrough(e){A.set(this,"oncanplaythrough",e)}get onchange(){return A.get(this,"onchange")}set onchange(e){A.set(this,"onchange",e)}get onclick(){return A.get(this,"onclick")}set onclick(e){A.set(this,"onclick",e)}get onclose(){return A.get(this,"onclose")}set onclose(e){A.set(this,"onclose",e)}get oncontextmenu(){return A.get(this,"oncontextmenu")}set oncontextmenu(e){A.set(this,"oncontextmenu",e)}get oncuechange(){return A.get(this,"oncuechange")}set oncuechange(e){A.set(this,"oncuechange",e)}get ondblclick(){return A.get(this,"ondblclick")}set ondblclick(e){A.set(this,"ondblclick",e)}get ondrag(){return A.get(this,"ondrag")}set ondrag(e){A.set(this,"ondrag",e)}get ondragend(){return A.get(this,"ondragend")}set ondragend(e){A.set(this,"ondragend",e)}get ondragenter(){return A.get(this,"ondragenter")}set ondragenter(e){A.set(this,"ondragenter",e)}get ondragleave(){return A.get(this,"ondragleave")}set ondragleave(e){A.set(this,"ondragleave",e)}get ondragover(){return A.get(this,"ondragover")}set ondragover(e){A.set(this,"ondragover",e)}get ondragstart(){return A.get(this,"ondragstart")}set ondragstart(e){A.set(this,"ondragstart",e)}get ondrop(){return A.get(this,"ondrop")}set ondrop(e){A.set(this,"ondrop",e)}get ondurationchange(){return A.get(this,"ondurationchange")}set ondurationchange(e){A.set(this,"ondurationchange",e)}get onemptied(){return A.get(this,"onemptied")}set onemptied(e){A.set(this,"onemptied",e)}get onended(){return A.get(this,"onended")}set onended(e){A.set(this,"onended",e)}get onerror(){return A.get(this,"onerror")}set onerror(e){A.set(this,"onerror",e)}get onfocus(){return A.get(this,"onfocus")}set onfocus(e){A.set(this,"onfocus",e)}get oninput(){return A.get(this,"oninput")}set oninput(e){A.set(this,"oninput",e)}get oninvalid(){return A.get(this,"oninvalid")}set oninvalid(e){A.set(this,"oninvalid",e)}get onkeydown(){return A.get(this,"onkeydown")}set onkeydown(e){A.set(this,"onkeydown",e)}get onkeypress(){return A.get(this,"onkeypress")}set onkeypress(e){A.set(this,"onkeypress",e)}get onkeyup(){return A.get(this,"onkeyup")}set onkeyup(e){A.set(this,"onkeyup",e)}get onload(){return A.get(this,"onload")}set onload(e){A.set(this,"onload",e)}get onloadeddata(){return A.get(this,"onloadeddata")}set onloadeddata(e){A.set(this,"onloadeddata",e)}get onloadedmetadata(){return A.get(this,"onloadedmetadata")}set onloadedmetadata(e){A.set(this,"onloadedmetadata",e)}get onloadstart(){return A.get(this,"onloadstart")}set onloadstart(e){A.set(this,"onloadstart",e)}get onmousedown(){return A.get(this,"onmousedown")}set onmousedown(e){A.set(this,"onmousedown",e)}get onmouseenter(){return A.get(this,"onmouseenter")}set onmouseenter(e){A.set(this,"onmouseenter",e)}get onmouseleave(){return A.get(this,"onmouseleave")}set onmouseleave(e){A.set(this,"onmouseleave",e)}get onmousemove(){return A.get(this,"onmousemove")}set onmousemove(e){A.set(this,"onmousemove",e)}get onmouseout(){return A.get(this,"onmouseout")}set onmouseout(e){A.set(this,"onmouseout",e)}get onmouseover(){return A.get(this,"onmouseover")}set onmouseover(e){A.set(this,"onmouseover",e)}get onmouseup(){return A.get(this,"onmouseup")}set onmouseup(e){A.set(this,"onmouseup",e)}get onmousewheel(){return A.get(this,"onmousewheel")}set onmousewheel(e){A.set(this,"onmousewheel",e)}get onpause(){return A.get(this,"onpause")}set onpause(e){A.set(this,"onpause",e)}get onplay(){return A.get(this,"onplay")}set onplay(e){A.set(this,"onplay",e)}get onplaying(){return A.get(this,"onplaying")}set onplaying(e){A.set(this,"onplaying",e)}get onprogress(){return A.get(this,"onprogress")}set onprogress(e){A.set(this,"onprogress",e)}get onratechange(){return A.get(this,"onratechange")}set onratechange(e){A.set(this,"onratechange",e)}get onreset(){return A.get(this,"onreset")}set onreset(e){A.set(this,"onreset",e)}get onresize(){return A.get(this,"onresize")}set onresize(e){A.set(this,"onresize",e)}get onscroll(){return A.get(this,"onscroll")}set onscroll(e){A.set(this,"onscroll",e)}get onseeked(){return A.get(this,"onseeked")}set onseeked(e){A.set(this,"onseeked",e)}get onseeking(){return A.get(this,"onseeking")}set onseeking(e){A.set(this,"onseeking",e)}get onselect(){return A.get(this,"onselect")}set onselect(e){A.set(this,"onselect",e)}get onshow(){return A.get(this,"onshow")}set onshow(e){A.set(this,"onshow",e)}get onstalled(){return A.get(this,"onstalled")}set onstalled(e){A.set(this,"onstalled",e)}get onsubmit(){return A.get(this,"onsubmit")}set onsubmit(e){A.set(this,"onsubmit",e)}get onsuspend(){return A.get(this,"onsuspend")}set onsuspend(e){A.set(this,"onsuspend",e)}get ontimeupdate(){return A.get(this,"ontimeupdate")}set ontimeupdate(e){A.set(this,"ontimeupdate",e)}get ontoggle(){return A.get(this,"ontoggle")}set ontoggle(e){A.set(this,"ontoggle",e)}get onvolumechange(){return A.get(this,"onvolumechange")}set onvolumechange(e){A.set(this,"onvolumechange",e)}get onwaiting(){return A.get(this,"onwaiting")}set onwaiting(e){A.set(this,"onwaiting",e)}get onauxclick(){return A.get(this,"onauxclick")}set onauxclick(e){A.set(this,"onauxclick",e)}get ongotpointercapture(){return A.get(this,"ongotpointercapture")}set ongotpointercapture(e){A.set(this,"ongotpointercapture",e)}get onlostpointercapture(){return A.get(this,"onlostpointercapture")}set onlostpointercapture(e){A.set(this,"onlostpointercapture",e)}get onpointercancel(){return A.get(this,"onpointercancel")}set onpointercancel(e){A.set(this,"onpointercancel",e)}get onpointerdown(){return A.get(this,"onpointerdown")}set onpointerdown(e){A.set(this,"onpointerdown",e)}get onpointerenter(){return A.get(this,"onpointerenter")}set onpointerenter(e){A.set(this,"onpointerenter",e)}get onpointerleave(){return A.get(this,"onpointerleave")}set onpointerleave(e){A.set(this,"onpointerleave",e)}get onpointermove(){return A.get(this,"onpointermove")}set onpointermove(e){A.set(this,"onpointermove",e)}get onpointerout(){return A.get(this,"onpointerout")}set onpointerout(e){A.set(this,"onpointerout",e)}get onpointerover(){return A.get(this,"onpointerover")}set onpointerover(e){A.set(this,"onpointerover",e)}get onpointerup(){return A.get(this,"onpointerup")}set onpointerup(e){A.set(this,"onpointerup",e)}};var ka="template",qu=class extends l{constructor(e){super(e,ka);let u=this.ownerDocument.createDocumentFragment();(this[pu]=u)[G]=this}get content(){if(this.hasChildNodes()&&!this[pu].hasChildNodes())for(let e of this.childNodes)this[pu].appendChild(e.cloneNode(!0));return this[pu]}};E(ka,qu);var ns=class extends l{constructor(e,u="html"){super(e,u)}};var{toString:PA}=l.prototype,Ze=class extends l{get innerHTML(){return this.textContent}set innerHTML(e){this.textContent=e}toString(){return PA.call(this.cloneNode()).replace("><",()=>`>${this.textContent}<`)}};var Oa="script",Vu=class extends Ze{constructor(e,u=Oa){super(e,u)}get type(){return h.get(this,"type")}set type(e){h.set(this,"type",e)}get src(){return h.get(this,"src")}set src(e){h.set(this,"src",e)}get defer(){return C.get(this,"defer")}set defer(e){C.set(this,"defer",e)}get crossOrigin(){return h.get(this,"crossorigin")}set crossOrigin(e){h.set(this,"crossorigin",e)}get nomodule(){return C.get(this,"nomodule")}set nomodule(e){C.set(this,"nomodule",e)}get referrerPolicy(){return h.get(this,"referrerpolicy")}set referrerPolicy(e){h.set(this,"referrerpolicy",e)}get nonce(){return h.get(this,"nonce")}set nonce(e){h.set(this,"nonce",e)}get async(){return C.get(this,"async")}set async(e){C.set(this,"async",e)}get text(){return this.textContent}set text(e){this.textContent=e}};E(Oa,Vu);var os=class extends l{constructor(e,u="frame"){super(e,u)}};var La="iframe",Zu=class extends l{constructor(e,u=La){super(e,u)}get src(){return h.get(this,"src")}set src(e){h.set(this,"src",e)}get srcdoc(){return h.get(this,"srcdoc")}set srcdoc(e){h.set(this,"srcdoc",e)}get name(){return h.get(this,"name")}set name(e){h.set(this,"name",e)}get allow(){return h.get(this,"allow")}set allow(e){h.set(this,"allow",e)}get allowFullscreen(){return C.get(this,"allowfullscreen")}set allowFullscreen(e){C.set(this,"allowfullscreen",e)}get referrerPolicy(){return h.get(this,"referrerpolicy")}set referrerPolicy(e){h.set(this,"referrerpolicy",e)}get loading(){return h.get(this,"loading")}set loading(e){h.set(this,"loading",e)}};E(La,Zu);var as=class extends l{constructor(e,u="object"){super(e,u)}};var cs=class extends l{constructor(e,u="head"){super(e,u)}};var As=class extends l{constructor(e,u="body"){super(e,u)}};var o0=xe(n0(),1);var a0="style",Xu=class extends Ze{constructor(e,u=a0){super(e,u),this[vt]=null}get sheet(){let e=this[vt];return e!==null?e:this[vt]=(0,o0.parse)(this.textContent)}get innerHTML(){return super.innerHTML||""}set innerHTML(e){super.textContent=e,this[vt]=null}get innerText(){return super.innerText||""}set innerText(e){super.textContent=e,this[vt]=null}get textContent(){return super.textContent||""}set textContent(e){super.textContent=e,this[vt]=null}};E(a0,Xu);var ju=class extends l{constructor(e,u="time"){super(e,u)}get dateTime(){return h.get(this,"datetime")}set dateTime(e){h.set(this,"datetime",e)}};E("time",ju);var Cs=class extends l{constructor(e,u="fieldset"){super(e,u)}};var Es=class extends l{constructor(e,u="embed"){super(e,u)}};var ys=class extends l{constructor(e,u="hr"){super(e,u)}};var ws=class extends l{constructor(e,u="progress"){super(e,u)}};var Is=class extends l{constructor(e,u="p"){super(e,u)}};var Ns=class extends l{constructor(e,u="table"){super(e,u)}};var Ts=class extends l{constructor(e,u="frameset"){super(e,u)}};var Ds=class extends l{constructor(e,u="li"){super(e,u)}};var Bs=class extends l{constructor(e,u="base"){super(e,u)}};var vs=class extends l{constructor(e,u="datalist"){super(e,u)}};var c0="input",zu=class extends l{constructor(e,u=c0){super(e,u)}get autofocus(){return C.get(this,"autofocus")||-1}set autofocus(e){C.set(this,"autofocus",e)}get disabled(){return C.get(this,"disabled")}set disabled(e){C.set(this,"disabled",e)}get name(){return this.getAttribute("name")}set name(e){this.setAttribute("name",e)}get placeholder(){return this.getAttribute("placeholder")}set placeholder(e){this.setAttribute("placeholder",e)}get type(){return this.getAttribute("type")}set type(e){this.setAttribute("type",e)}get value(){return h.get(this,"value")}set value(e){h.set(this,"value",e)}};E(c0,zu);var Rs=class extends l{constructor(e,u="param"){super(e,u)}};var Fs=class extends l{constructor(e,u="media"){super(e,u)}};var Ms=class extends l{constructor(e,u="audio"){super(e,u)}};var A0="h1",$u=class extends l{constructor(e,u=A0){super(e,u)}};E([A0,"h2","h3","h4","h5","h6"],$u);var ks=class extends l{constructor(e,u="dir"){super(e,u)}};var Os=class extends l{constructor(e,u="quote"){super(e,u)}};var f0=xe(h0(),1);var{createCanvas:_A}=f0.default,p0="canvas",er=class extends l{constructor(e,u=p0){super(e,u),this[pe]=_A(300,150)}get width(){return this[pe].width}set width(e){Fe.set(this,"width",e),this[pe].width=e}get height(){return this[pe].height}set height(e){Fe.set(this,"height",e),this[pe].height=e}getContext(e){return this[pe].getContext(e)}toDataURL(...e){return this[pe].toDataURL(...e)}};E(p0,er);var Ls=class extends l{constructor(e,u="legend"){super(e,u)}};var g0="option",tr=class extends l{constructor(e,u=g0){super(e,u)}get value(){return h.get(this,"value")}set value(e){h.set(this,"value",e)}get selected(){return C.get(this,"selected")}set selected(e){let u=this.parentElement?.querySelector("option[selected]");u&&u!==this&&(u.selected=!1),C.set(this,"selected",e)}};E(g0,tr);var Gs=class extends l{constructor(e,u="span"){super(e,u)}};var Qs=class extends l{constructor(e,u="meter"){super(e,u)}};var Hs=class extends l{constructor(e,u="video"){super(e,u)}};var Ks=class extends l{constructor(e,u="td"){super(e,u)}};var m0="title",ur=class extends Ze{constructor(e,u=m0){super(e,u)}};E(m0,ur);var Us=class extends l{constructor(e,u="output"){super(e,u)}};var Ws=class extends l{constructor(e,u="tr"){super(e,u)}};var Ys=class extends l{constructor(e,u="data"){super(e,u)}};var Js=class extends l{constructor(e,u="menu"){super(e,u)}};var b0="select",rr=class extends l{constructor(e,u=b0){super(e,u)}get options(){let e=new U,{firstElementChild:u}=this;for(;u;)u.tagName==="OPTGROUP"?e.push(...u.children):e.push(u),u=u.nextElementSibling;return e}get disabled(){return C.get(this,"disabled")}set disabled(e){C.set(this,"disabled",e)}get name(){return this.getAttribute("name")}set name(e){this.setAttribute("name",e)}get value(){return this.querySelector("option[selected]")?.value}};E(b0,rr);var qs=class extends l{constructor(e,u="br"){super(e,u)}};var S0="button",sr=class extends l{constructor(e,u=S0){super(e,u)}get disabled(){return C.get(this,"disabled")}set disabled(e){C.set(this,"disabled",e)}get name(){return this.getAttribute("name")}set name(e){this.setAttribute("name",e)}get type(){return this.getAttribute("type")}set type(e){this.setAttribute("type",e)}};E(S0,sr);var Vs=class extends l{constructor(e,u="map"){super(e,u)}};var Zs=class extends l{constructor(e,u="optgroup"){super(e,u)}};var Ps=class extends l{constructor(e,u="dl"){super(e,u)}};var x0="textarea",ir=class extends Ze{constructor(e,u=x0){super(e,u)}get disabled(){return C.get(this,"disabled")}set disabled(e){C.set(this,"disabled",e)}get name(){return this.getAttribute("name")}set name(e){this.setAttribute("name",e)}get placeholder(){return this.getAttribute("placeholder")}set placeholder(e){this.setAttribute("placeholder",e)}get type(){return this.getAttribute("type")}set type(e){this.setAttribute("type",e)}get value(){return this.textContent}set value(e){this.textContent=e}};E(x0,ir);var _s=class extends l{constructor(e,u="font"){super(e,u)}};var Xs=class extends l{constructor(e,u="div"){super(e,u)}};var C0="link",nr=class extends l{constructor(e,u=C0){super(e,u)}get disabled(){return C.get(this,"disabled")}set disabled(e){C.set(this,"disabled",e)}get href(){return h.get(this,"href").trim()}set href(e){h.set(this,"href",e)}get hreflang(){return h.get(this,"hreflang")}set hreflang(e){h.set(this,"hreflang",e)}get media(){return h.get(this,"media")}set media(e){h.set(this,"media",e)}get rel(){return h.get(this,"rel")}set rel(e){h.set(this,"rel",e)}get type(){return h.get(this,"type")}set type(e){h.set(this,"type",e)}};E(C0,nr);var E0="slot",or=class extends l{constructor(e,u=E0){super(e,u)}get name(){return this.getAttribute("name")}set name(e){this.setAttribute("name",e)}assign(){}assignedNodes(e){let u=!!this.name,r=this.getRootNode().host?.childNodes??[],s;if(u?s=[...r].filter(i=>i.slot===this.name):s=[...r].filter(i=>!i.slot),e?.flatten){let i=[];for(let n of s)n.localName==="slot"?i.push(...n.assignedNodes({flatten:!0})):i.push(n);s=i}return s.length?s:[...this.childNodes]}assignedElements(e){let u=this.assignedNodes(e).filter(r=>r.nodeType===1);return u.length?u:[...this.children]}};E(E0,or);var js=class extends l{constructor(e,u="form"){super(e,u)}};var y0="img",Yt=class extends l{constructor(e,u=y0){super(e,u)}get alt(){return h.get(this,"alt")}set alt(e){h.set(this,"alt",e)}get sizes(){return h.get(this,"sizes")}set sizes(e){h.set(this,"sizes",e)}get src(){return h.get(this,"src")}set src(e){h.set(this,"src",e)}get srcset(){return h.get(this,"srcset")}set srcset(e){h.set(this,"srcset",e)}get title(){return h.get(this,"title")}set title(e){h.set(this,"title",e)}get width(){return Fe.get(this,"width")}set width(e){Fe.set(this,"width",e)}get height(){return Fe.get(this,"height")}set height(e){Fe.set(this,"height",e)}};E(y0,Yt);var zs=class extends l{constructor(e,u="pre"){super(e,u)}};var $s=class extends l{constructor(e,u="ul"){super(e,u)}};var w0="meta",ar=class extends l{constructor(e,u=w0){super(e,u)}get name(){return h.get(this,"name")}set name(e){h.set(this,"name",e)}get httpEquiv(){return h.get(this,"http-equiv")}set httpEquiv(e){h.set(this,"http-equiv",e)}get content(){return h.get(this,"content")}set content(e){h.set(this,"content",e)}get charset(){return h.get(this,"charset")}set charset(e){h.set(this,"charset",e)}get media(){return h.get(this,"media")}set media(e){h.set(this,"media",e)}};E(w0,ar);var ei=class extends l{constructor(e,u="picture"){super(e,u)}};var ti=class extends l{constructor(e,u="area"){super(e,u)}};var ui=class extends l{constructor(e,u="ol"){super(e,u)}};var ri=class extends l{constructor(e,u="caption"){super(e,u)}};var I0="a",cr=class extends l{constructor(e,u=I0){super(e,u)}get href(){return encodeURI(decodeURI(h.get(this,"href"))).trim()}set href(e){h.set(this,"href",decodeURI(e))}get download(){return encodeURI(decodeURI(h.get(this,"download")))}set download(e){h.set(this,"download",decodeURI(e))}get target(){return h.get(this,"target")}set target(e){h.set(this,"target",e)}get type(){return h.get(this,"type")}set type(e){h.set(this,"type",e)}get rel(){return h.get(this,"rel")}set rel(e){h.set(this,"rel",e)}};E(I0,cr);var si=class extends l{constructor(e,u="label"){super(e,u)}};var ii=class extends l{constructor(e,u="unknown"){super(e,u)}};var ni=class extends l{constructor(e,u="mod"){super(e,u)}};var oi=class extends l{constructor(e,u="details"){super(e,u)}};var N0="source",Ar=class extends l{constructor(e,u=N0){super(e,u)}get src(){return h.get(this,"src")}set src(e){h.set(this,"src",e)}get srcset(){return h.get(this,"srcset")}set srcset(e){h.set(this,"srcset",e)}get sizes(){return h.get(this,"sizes")}set sizes(e){h.set(this,"sizes",e)}get type(){return h.get(this,"type")}set type(e){h.set(this,"type",e)}};E(N0,Ar);var ai=class extends l{constructor(e,u="track"){super(e,u)}};var ci=class extends l{constructor(e,u="marquee"){super(e,u)}};var T0={HTMLElement:l,HTMLTemplateElement:qu,HTMLHtmlElement:ns,HTMLScriptElement:Vu,HTMLFrameElement:os,HTMLIFrameElement:Zu,HTMLObjectElement:as,HTMLHeadElement:cs,HTMLBodyElement:As,HTMLStyleElement:Xu,HTMLTimeElement:ju,HTMLFieldSetElement:Cs,HTMLEmbedElement:Es,HTMLHRElement:ys,HTMLProgressElement:ws,HTMLParagraphElement:Is,HTMLTableElement:Ns,HTMLFrameSetElement:Ts,HTMLLIElement:Ds,HTMLBaseElement:Bs,HTMLDataListElement:vs,HTMLInputElement:zu,HTMLParamElement:Rs,HTMLMediaElement:Fs,HTMLAudioElement:Ms,HTMLHeadingElement:$u,HTMLDirectoryElement:ks,HTMLQuoteElement:Os,HTMLCanvasElement:er,HTMLLegendElement:Ls,HTMLOptionElement:tr,HTMLSpanElement:Gs,HTMLMeterElement:Qs,HTMLVideoElement:Hs,HTMLTableCellElement:Ks,HTMLTitleElement:ur,HTMLOutputElement:Us,HTMLTableRowElement:Ws,HTMLDataElement:Ys,HTMLMenuElement:Js,HTMLSelectElement:rr,HTMLBRElement:qs,HTMLButtonElement:sr,HTMLMapElement:Vs,HTMLOptGroupElement:Zs,HTMLDListElement:Ps,HTMLTextAreaElement:ir,HTMLFontElement:_s,HTMLDivElement:Xs,HTMLLinkElement:nr,HTMLSlotElement:or,HTMLFormElement:js,HTMLImageElement:Yt,HTMLPreElement:zs,HTMLUListElement:$s,HTMLMetaElement:ar,HTMLPictureElement:ei,HTMLAreaElement:ti,HTMLOListElement:ui,HTMLTableCaptionElement:ri,HTMLAnchorElement:cr,HTMLLabelElement:si,HTMLUnknownElement:ii,HTMLModElement:ni,HTMLDetailsElement:oi,HTMLSourceElement:Ar,HTMLTrackElement:ai,HTMLMarqueeElement:ci};var Ai={test:()=>!0},D0={"text/html":{docType:"<!DOCTYPE html>",ignoreCase:!0,voidElements:/^(?:area|base|br|col|embed|hr|img|input|keygen|link|menuitem|meta|param|source|track|wbr)$/i},"image/svg+xml":{docType:'<?xml version="1.0" encoding="utf-8"?>',ignoreCase:!1,voidElements:Ai},"text/xml":{docType:'<?xml version="1.0" encoding="utf-8"?>',ignoreCase:!1,voidElements:Ai},"application/xml":{docType:'<?xml version="1.0" encoding="utf-8"?>',ignoreCase:!1,voidElements:Ai},"application/xhtml+xml":{docType:'<?xml version="1.0" encoding="utf-8"?>',ignoreCase:!1,voidElements:Ai}};var hu=class extends ne{constructor(e,u={}){super(e,u),this.detail=u.detail}};var lr=class extends ne{constructor(e,u={}){super(e,u),this.inputType=u.inputType,this.data=u.data,this.dataTransfer=u.dataTransfer,this.isComposing=u.isComposing||!1,this.ranges=u.ranges}};var B0=t=>class extends Yt{constructor(u,r){switch(super(t),arguments.length){case 1:this.height=u,this.width=u;break;case 2:this.height=r,this.width=u;break}}};var v0=({[Y]:t,[g]:e},u=null)=>{Fr(t[T],e[p]);do{let r=K(t),s=r===e?r:r[p];u?u.insertBefore(t,u[g]):t.remove(),t=s}while(t!==e)},li=class t{constructor(){this[Y]=null,this[g]=null,this.commonAncestorContainer=null}insertNode(e){this[g].parentNode.insertBefore(e,this[Y])}selectNode(e){this[Y]=e,this[g]=K(e)}selectNodeContents(e){this.selectNode(e),this.commonAncestorContainer=e}surroundContents(e){e.replaceChildren(this.extractContents())}setStartBefore(e){this[Y]=e}setStartAfter(e){this[Y]=e.nextSibling}setEndBefore(e){this[g]=K(e.previousSibling)}setEndAfter(e){this[g]=K(e)}cloneContents(){let{[Y]:e,[g]:u}=this,r=e.ownerDocument.createDocumentFragment();for(;e!==u;)r.insertBefore(e.cloneNode(!0),r[g]),e=K(e),e!==u&&(e=e[p]);return r}deleteContents(){v0(this)}extractContents(){let e=this[Y].ownerDocument.createDocumentFragment();return v0(this,e),e}createContextualFragment(e){let{commonAncestorContainer:u}=this,r="ownerSVGElement"in u,s=r?u.ownerDocument:u,i=Mr(s,e);if(r){let n=[...i.childNodes];i=s.createDocumentFragment(),Object.setPrototypeOf(i,Qe.prototype),i.ownerSVGElement=s;for(let o of n)Object.setPrototypeOf(o,Qe.prototype),o.ownerSVGElement=s,i.appendChild(o)}else this.selectNode(i);return i}cloneRange(){let e=new t;return e[Y]=this[Y],e[g]=this[g],e}};var XA=({nodeType:t},e)=>{switch(t){case 1:return e&Zi;case 3:return e&Pi;case 8:return e&Xi;case 4:return e&_i}return 0},di=class{constructor(e,u=Vi){this.root=e,this.currentNode=e,this.whatToShow=u;let{[p]:r,[g]:s}=e;if(e.nodeType===9){let{documentElement:n}=e;r=n,s=n[g]}let i=[];for(;r&&r!==s;)XA(r,u)&&i.push(r),r=r[p];this[G]={i:0,nodes:i}}nextNode(){let e=this[G];return this.currentNode=e.i<e.nodes.length?e.nodes[e.i++]:null,this.currentNode}};var R0=(t,e,u)=>{let{[p]:r,[g]:s}=e;return t.call({ownerDocument:e,[p]:r,[g]:s},u)},F0=ko({},Ma,T0,{CustomEvent:hu,Event:ne,EventTarget:It,InputEvent:lr,NamedNodeMap:Au,NodeList:U}),hi=new WeakMap,Se=class extends Dt{constructor(e){super(null,"#document",9),this[se]={active:!1,registry:null},this[We]={active:!1,class:null},this[Be]=D0[e],this[St]=null,this[gu]=null,this[Zt]=null,this[pe]=null,this[xt]=null}get defaultView(){return hi.has(this)||hi.set(this,new Proxy(globalThis,{set:(e,u,r)=>{switch(u){case"addEventListener":case"removeEventListener":case"dispatchEvent":this[Vt][u]=r;break;default:e[u]=r;break}return!0},get:(e,u)=>{switch(u){case"addEventListener":case"removeEventListener":case"dispatchEvent":if(!this[Vt]){let r=this[Vt]=new It;r.dispatchEvent=r.dispatchEvent.bind(r),r.addEventListener=r.addEventListener.bind(r),r.removeEventListener=r.removeEventListener.bind(r)}return this[Vt][u];case"document":return this;case"navigator":return{userAgent:"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.150 Safari/537.36"};case"window":return hi.get(this);case"customElements":return this[se].registry||(this[se]=new kr(this)),this[se];case"performance":return e.performance;case"DOMParser":return this[gu];case"Image":return this[pe]||(this[pe]=B0(this)),this[pe];case"MutationObserver":return this[We].class||(this[We]=new Gr(this)),this[We].class}return this[Zt]&&this[Zt][u]||F0[u]||e[u]}})),hi.get(this)}get doctype(){let e=this[St];if(e)return e;let{firstChild:u}=this;return u&&u.nodeType===10?this[St]=u:null}set doctype(e){if(/^([a-z:]+)(\s+system|\s+public(\s+"([^"]+)")?)?(\s+"([^"]+)")?/i.test(e)){let{$1:u,$4:r,$6:s}=RegExp;this[St]=new lt(this,u,r,s),nt(this,this[St],this[p])}}get documentElement(){return this.firstElementChild}get isConnected(){return!0}_getParent(){return this[Vt]}createAttribute(e){return new we(this,e)}createCDATASection(e){return new Nt(this,e)}createComment(e){return new Tt(this,e)}createDocumentFragment(){return new Ht(this)}createDocumentType(e,u,r){return new lt(this,e,u,r)}createElement(e){return new Ge(this,e)}createRange(){let e=new li;return e.commonAncestorContainer=this,e}createTextNode(e){return new Te(this,e)}createTreeWalker(e,u=-1){return new di(e,u)}createNodeIterator(e,u=-1){return this.createTreeWalker(e,u)}createEvent(e){let u=Oo(e==="Event"?new ne(""):new hu(""));return u.initEvent=u.initCustomEvent=(r,s=!1,i=!1,n)=>{u.bubbles=!!s,Lo(u,{type:{value:r},canBubble:{value:s},cancelable:{value:i},detail:{value:n}})},u}cloneNode(e=!1){let{constructor:u,[se]:r,[St]:s}=this,i=new u;if(i[se]=r,e){let n=i[g],{childNodes:o}=this;for(let{length:a}=o,c=0;c<a;c++)i.insertBefore(o[c].cloneNode(!0),n);s&&(i[St]=o[0])}return i}importNode(e){let u=1<arguments.length&&!!arguments[1],r=e.cloneNode(u),{[se]:s}=this,{active:i}=s,n=o=>{let{ownerDocument:a,nodeType:c}=o;o.ownerDocument=this,i&&a!==this&&c===1&&s.upgrade(o)};if(n(r),u)switch(r.nodeType){case 1:case 11:{let{[p]:o,[g]:a}=r;for(;o!==a;)o.nodeType===1&&n(o),o=o[p];break}}return r}toString(){return this.childNodes.join("")}querySelector(e){return R0(super.querySelector,this,e)}querySelectorAll(e){return R0(super.querySelectorAll,this,e)}getElementsByTagNameNS(e,u){return this.getElementsByTagName(u)}createAttributeNS(e,u){return this.createAttribute(u)}createElementNS(e,u,r){return e===Mt?new Qe(this,u,null):this.createElement(u,r)}};H(F0.Document=function(){oe()},Se).prototype=Se.prototype;var jA=(t,e,u,r)=>{if(!e&&eu.has(u)){let n=eu.get(u);return new n(t,u)}let{[se]:{active:s,registry:i}}=t;if(s){let n=e?r.is:u;if(i.has(n)){let{Class:o}=i.get(n),a=new o(t,u);return ot.set(a,{connected:!1}),a}}return new l(t,u)},dr=class extends Se{constructor(){super("text/html")}get all(){let e=new U,{[p]:u,[g]:r}=this;for(;u!==r;)u.nodeType===1&&e.push(u),u=u[p];return e}get head(){let{documentElement:e}=this,{firstElementChild:u}=e;return(!u||u.tagName!=="HEAD")&&(u=this.createElement("head"),e.prepend(u)),u}get body(){let{head:e}=this,{nextElementSibling:u}=e;return(!u||u.tagName!=="BODY")&&(u=this.createElement("body"),e.after(u)),u}get title(){let{head:e}=this;return e.getElementsByTagName("title").at(0)?.textContent||""}set title(e){let{head:u}=this,r=u.getElementsByTagName("title").at(0);r?r.textContent=e:u.insertBefore(this.createElement("title"),u.firstChild).textContent=e}createElement(e,u){let r=!!(u&&u.is),s=jA(this,r,e,u);return r&&s.setAttribute("is",u.is),s}};var fi=class extends Se{constructor(){super("image/svg+xml")}toString(){return this[Be].docType+super.toString()}};var pi=class extends Se{constructor(){super("text/xml")}toString(){return this[Be].docType+super.toString()}};var hr=class t{parseFromString(e,u,r=null){let s=!1,i;return u==="text/html"?(s=!0,i=new dr):u==="image/svg+xml"?i=new fi:i=new pi,i[gu]=t,r&&(i[Zt]=r),s&&e==="..."&&(e="<!doctype html><html><head></head><body></body></html>"),e?Lr(i,s,e):i}};var{parse:fx}=JSON;function zA(){oe()}H(zA,Se).prototype=Se.prototype;var $A=new Set(["svg","g","defs","symbol","use","image","a","switch","rect","circle","ellipse","line","polyline","polygon","path","text","tspan","textPath","linearGradient","radialGradient","stop","pattern","mask","clipPath","marker","filter","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","title","desc","metadata","style"]),el=new Set(["id","class","style","transform","viewBox","width","height","x","y","x1","y1","x2","y2","cx","cy","r","rx","ry","fx","fy","points","d","offset","enable-background","gradientUnits","gradientTransform","spreadMethod","patternUnits","patternContentUnits","patternTransform","maskUnits","maskContentUnits","clipPathUnits","clip-rule","filterUnits","primitiveUnits","preserveAspectRatio","space","lang","role","focusable","tabindex","version","baseProfile","fill","fill-opacity","fill-rule","stroke","stroke-width","stroke-opacity","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-dasharray","stroke-dashoffset","opacity","color","stop-color","stop-opacity","font-family","font-size","font-weight","font-style","text-anchor","dominant-baseline","alignment-baseline","letter-spacing","word-spacing","text-decoration","clip-path","mask","filter","marker-start","marker-mid","marker-end","marker","cursor","pointer-events","visibility","display","overflow","vector-effect","paint-order","color-interpolation","color-interpolation-filters","isolation","mix-blend-mode","startOffset","method","spacing","side","textLength","lengthAdjust","in","in2","result","mode","type","values","dx","dy","stdDeviation","edgeMode","k1","k2","k3","k4","operator","radius","scale","xChannelSelector","yChannelSelector","baseFrequency","numOctaves","seed","stitchTiles","tableValues","slope","intercept","amplitude","exponent","order","divisor","bias","targetX","targetY","kernelMatrix","preserveAlpha","kernelUnitLength","surfaceScale","diffuseConstant","specularConstant","specularExponent","lighting-color","flood-color","flood-opacity","azimuth","elevation","pointsAtX","pointsAtY","pointsAtZ","limitingConeAngle"]);function tl(t){let e=t.lastIndexOf(":");return e===-1?t:t.slice(e+1)}function ul(t,e){let u=t.trim();return u.startsWith("#")?!0:/^data:image\//i.test(u)&&e.toLowerCase()!=="a"}var rl=new Set(["","url","rgb","rgba","hsl","hsla","hwb","lab","lch","oklab","oklch","color","color-mix","var","calc","min","max","clamp","matrix","matrix3d","translate","translatex","translatey","translatez","translate3d","scale","scalex","scaley","scalez","scale3d","rotate","rotatex","rotatey","rotatez","rotate3d","skew","skewx","skewy","perspective","cubic-bezier","steps","blur","brightness","contrast","drop-shadow","grayscale","hue-rotate","invert","opacity","saturate","sepia"]);function sl(t,e){if(t===void 0)return e??"";let u=parseInt(t,16);return u===0||u>1114111||u>=55296&&u<=57343?"\uFFFD":String.fromCodePoint(u)}function il(t){return t.replace(/\\([0-9a-f]{1,6})[ \t\n\r\f]?|\\([\s\S])/gi,(e,u,r)=>sl(u,r)).toLowerCase()}function nl(t){return t!==void 0&&/[-\w]/.test(t)}function ol(t,e){let u=e;for(;nl(t[u-1]);)u--;return t.slice(u,e)}function al(t){for(let e=t.indexOf("(");e!==-1;e=t.indexOf("(",e+1))if(!rl.has(ol(t,e)))return!1;return!0}function cl(t){let e=t.trim().replace(/^['"]/,"");return e.startsWith("#")&&!e.includes("(")}function Al(t){for(let e=t.indexOf("url(");e!==-1;){let u=t.indexOf(")",e+4);if(u===-1||!cl(t.slice(e+4,u)))return!1;e=t.indexOf("url(",u+1)}return!0}function M0(t){let e=il(t);return!e.includes("@import")&&al(e)&&Al(e)}function ll(t){return t==="xmlns"||t.startsWith("xmlns:")}function dl(t){return el.has(t)||t.startsWith("aria-")||t.startsWith("data-")}function hl(t,e,u){if(ll(e))return!0;let r=tl(e);return r==="href"?ul(u,t):dl(r)&&M0(u)}function Lx(t){let e=new hr().parseFromString(t,"image/svg+xml"),u=e.documentElement;if(!u)return"";for(let r of[...e.querySelectorAll("*")])if(r.isConnected){if(!$A.has(r.tagName)){r.remove();continue}if(r.tagName==="style"&&!M0(r.textContent)){r.remove();continue}for(let s of[...r.attributes])hl(r.tagName,s.name,s.value)||r.removeAttribute(s.name)}return u.isConnected?u.outerHTML:""}export{Lx as sanitizeSvg};
21
+ `),u=u[p];return e.join("")}get textContent(){let e=[],{[p]:u,[g]:r}=this;for(;u!==r;){let s=u.nodeType;(s===3||s===4)&&e.push(u.textContent),u=u[p]}return e.join("")}set textContent(e){this.replaceChildren(),e!=null&&e!==""&&this.appendChild(new Te(this.ownerDocument,e))}get innerHTML(){return $r(this)}set innerHTML(e){es(this,e)}get outerHTML(){return this.toString()}set outerHTML(e){let u=this.ownerDocument.createElement("");u.innerHTML=e,this.replaceWith(...u.childNodes)}get attributes(){let e=new Au(this),u=this[p];for(;u.nodeType===2;)e.push(u),u=u[p];return new Proxy(e,qA)}focus(){this.dispatchEvent(new ne("focus"))}getAttribute(e){if(e==="class")return this.className;let u=this.getAttributeNode(e);return u&&(Ee(this)?u.value:tu(u.value))}getAttributeNode(e){let u=this[p];for(;u.nodeType===2;){if(u.name===e)return u;u=u[p]}return null}getAttributeNames(){let e=new U,u=this[p];for(;u.nodeType===2;)e.push(u.name),u=u[p];return e}hasAttribute(e){return!!this.getAttributeNode(e)}hasAttributes(){return this[p].nodeType===2}removeAttribute(e){e==="class"&&this[bt]&&this[bt].clear();let u=this[p];for(;u.nodeType===2;){if(u.name===e){sn(this,u);return}u=u[p]}}removeAttributeNode(e){let u=this[p];for(;u.nodeType===2;){if(u===e){sn(this,u);return}u=u[p]}}setAttribute(e,u){if(e==="class")this.className=u;else{let r=this.getAttributeNode(e);r?r.value=u:Mu(this,new we(this.ownerDocument,e,u))}}setAttributeNode(e){let{name:u}=e,r=this.getAttributeNode(u);if(r!==e){r&&this.removeAttributeNode(r);let{ownerElement:s}=e;s&&s.removeAttributeNode(e),Mu(this,e)}return r}toggleAttribute(e,u){return this.hasAttribute(e)?u?!0:(this.removeAttribute(e),!1):u||arguments.length===1?(this.setAttribute(e,""),!0):!1}get shadowRoot(){if(Je.has(this)){let{mode:e,shadowRoot:u}=Je.get(this);if(e==="open")return u}return null}attachShadow(e){if(Je.has(this))throw new Error("operation not supported");let u=new Kt(this);return Je.set(this,{mode:e.mode,shadowRoot:u}),u}matches(e){return Ba(this,e)}closest(e){let u=this,r=Ku(u,e);for(;u&&!r(u);)u=u.parentElement;return u}insertAdjacentElement(e,u){let{parentElement:r}=this;switch(e){case"beforebegin":if(r){r.insertBefore(u,this);break}return null;case"afterbegin":this.insertBefore(u,this.firstChild);break;case"beforeend":this.insertBefore(u,null);break;case"afterend":if(r){r.insertBefore(u,this.nextSibling);break}return null}return u}insertAdjacentHTML(e,u){this.insertAdjacentElement(e,Mr(this.ownerDocument,u))}insertAdjacentText(e,u){let r=this.ownerDocument.createTextNode(u);this.insertAdjacentElement(e,r)}cloneNode(e=!1){let{ownerDocument:u,localName:r}=this,s=d=>{d.parentNode=n,ce(o,d),o=d},i=Fa(u,this,r),n=i,o=i,{[p]:a,[g]:c}=this;for(;a!==c&&(e||a.nodeType===2);){switch(a.nodeType){case-1:ce(o,n[g]),o=n[g],n=n.parentNode;break;case 1:{let d=Fa(u,a,a.localName);s(d),n=d;break}case 2:{let d=a.cloneNode(e);d.ownerElement=n,s(d);break}case 3:case 8:case 4:s(a.cloneNode(e));break}a=a[p]}return ce(o,i[g]),i}toString(){let e=[],{[g]:u}=this,r={[p]:this},s=!1;do switch(r=r[p],r.nodeType){case 2:{let i=" "+r;switch(i){case" id":case" class":case" style":break;default:e.push(i)}break}case-1:{let i=r[Y];s?("ownerSVGElement"in i?e.push(" />"):VA(i)?e.push(Ee(i)?">":" />"):e.push(`></${i.localName}>`),s=!1):e.push(`</${i.localName}>`);break}case 1:s&&e.push(">"),r.toString!==this.toString?(e.push(r.toString()),r=r[g],s=!1):(e.push(`<${r.localName}`),s=!0);break;case 3:case 8:case 4:e.push((s?">":"")+r),s=!1;break}while(r!==u);return e.join("")}toJSON(){let e=[];return rn(this,e),e}getAttributeNS(e,u){return this.getAttribute(u)}getElementsByTagNameNS(e,u){return this.getElementsByTagName(u)}hasAttributeNS(e,u){return this.hasAttribute(u)}removeAttributeNS(e,u){this.removeAttribute(u)}setAttributeNS(e,u,r){this.setAttribute(u,r)}setAttributeNodeNS(e){return this.setAttributeNode(e)}};var Tn=new WeakMap,ZA={get(t,e){return t[e]},set(t,e,u){return t[e]=u,!0}},Qe=class extends Ge{constructor(e,u,r=null){super(e,u),this.ownerSVGElement=r}get className(){return Tn.has(this)||Tn.set(this,new Proxy({baseVal:"",animVal:""},ZA)),Tn.get(this)}set className(e){let{classList:u}=this;u.clear(),u.add(...Re(e).split(/\s+/))}get namespaceURI(){return"http://www.w3.org/2000/svg"}getAttribute(e){return e==="class"?[...this.classList].join(" "):super.getAttribute(e)}setAttribute(e,u){if(e==="class")this.className=u;else if(e==="style"){let{className:r}=this;r.baseVal=r.animVal=u}super.setAttribute(e,u)}};var oe=()=>{throw new TypeError("Illegal constructor")};function Dn(){oe()}H(Dn,we);Dn.prototype=we.prototype;function Bn(){oe()}H(Bn,Nt);Bn.prototype=Nt.prototype;function vn(){oe()}H(vn,Oe);vn.prototype=Oe.prototype;function Rn(){oe()}H(Rn,Tt);Rn.prototype=Tt.prototype;function Fn(){oe()}H(Fn,Ht);Fn.prototype=Ht.prototype;function Mn(){oe()}H(Mn,lt);Mn.prototype=lt.prototype;function kn(){oe()}H(kn,Ge);kn.prototype=Ge.prototype;function On(){oe()}H(On,Ae);On.prototype=Ae.prototype;function Ln(){oe()}H(Ln,Kt);Ln.prototype=Kt.prototype;function Gn(){oe()}H(Gn,Te);Gn.prototype=Te.prototype;function Qn(){oe()}H(Qn,Qe);Qn.prototype=Qe.prototype;var Ma={Attr:Dn,CDATASection:Bn,CharacterData:vn,Comment:Rn,DocumentFragment:Fn,DocumentType:Mn,Element:kn,Node:On,ShadowRoot:Ln,Text:Gn,SVGElement:Qn};var Ju=new WeakMap,A={get(t,e){return Ju.has(t)&&Ju.get(t)[e]||null},set(t,e,u){Ju.has(t)||Ju.set(t,{});let r=Ju.get(t),s=e.slice(2);r[e]&&t.removeEventListener(s,r[e],!1),(r[e]=u)&&t.addEventListener(s,u,!1)}},l=class extends Ge{static get observedAttributes(){return[]}constructor(e=null,u=""){super(e,u);let r=!e,s;if(r){let{constructor:i}=this;if(!kt.has(i))throw new Error("unable to initialize this Custom Element");({ownerDocument:e,localName:u,options:s}=kt.get(i))}if(e[xt]){let{element:i,values:n}=e[xt];e[xt]=null;for(let[o,a]of n)i[o]=a;return i}r&&(this.ownerDocument=this[g].ownerDocument=e,this.localName=u,ot.set(this,{connected:!1}),s.is&&this.setAttribute("is",s.is))}blur(){this.dispatchEvent(new ne("blur"))}click(){let e=new ne("click",{bubbles:!0,cancelable:!0});e.button=0,this.dispatchEvent(e)}get accessKeyLabel(){let{accessKey:e}=this;return e&&`Alt+Shift+${e}`}get isContentEditable(){return this.hasAttribute("contenteditable")}get contentEditable(){return C.get(this,"contenteditable")}set contentEditable(e){C.set(this,"contenteditable",e)}get draggable(){return C.get(this,"draggable")}set draggable(e){C.set(this,"draggable",e)}get hidden(){return C.get(this,"hidden")}set hidden(e){C.set(this,"hidden",e)}get spellcheck(){return C.get(this,"spellcheck")}set spellcheck(e){C.set(this,"spellcheck",e)}get accessKey(){return h.get(this,"accesskey")}set accessKey(e){h.set(this,"accesskey",e)}get dir(){return h.get(this,"dir")}set dir(e){h.set(this,"dir",e)}get lang(){return h.get(this,"lang")}set lang(e){h.set(this,"lang",e)}get title(){return h.get(this,"title")}set title(e){h.set(this,"title",e)}get onabort(){return A.get(this,"onabort")}set onabort(e){A.set(this,"onabort",e)}get onblur(){return A.get(this,"onblur")}set onblur(e){A.set(this,"onblur",e)}get oncancel(){return A.get(this,"oncancel")}set oncancel(e){A.set(this,"oncancel",e)}get oncanplay(){return A.get(this,"oncanplay")}set oncanplay(e){A.set(this,"oncanplay",e)}get oncanplaythrough(){return A.get(this,"oncanplaythrough")}set oncanplaythrough(e){A.set(this,"oncanplaythrough",e)}get onchange(){return A.get(this,"onchange")}set onchange(e){A.set(this,"onchange",e)}get onclick(){return A.get(this,"onclick")}set onclick(e){A.set(this,"onclick",e)}get onclose(){return A.get(this,"onclose")}set onclose(e){A.set(this,"onclose",e)}get oncontextmenu(){return A.get(this,"oncontextmenu")}set oncontextmenu(e){A.set(this,"oncontextmenu",e)}get oncuechange(){return A.get(this,"oncuechange")}set oncuechange(e){A.set(this,"oncuechange",e)}get ondblclick(){return A.get(this,"ondblclick")}set ondblclick(e){A.set(this,"ondblclick",e)}get ondrag(){return A.get(this,"ondrag")}set ondrag(e){A.set(this,"ondrag",e)}get ondragend(){return A.get(this,"ondragend")}set ondragend(e){A.set(this,"ondragend",e)}get ondragenter(){return A.get(this,"ondragenter")}set ondragenter(e){A.set(this,"ondragenter",e)}get ondragleave(){return A.get(this,"ondragleave")}set ondragleave(e){A.set(this,"ondragleave",e)}get ondragover(){return A.get(this,"ondragover")}set ondragover(e){A.set(this,"ondragover",e)}get ondragstart(){return A.get(this,"ondragstart")}set ondragstart(e){A.set(this,"ondragstart",e)}get ondrop(){return A.get(this,"ondrop")}set ondrop(e){A.set(this,"ondrop",e)}get ondurationchange(){return A.get(this,"ondurationchange")}set ondurationchange(e){A.set(this,"ondurationchange",e)}get onemptied(){return A.get(this,"onemptied")}set onemptied(e){A.set(this,"onemptied",e)}get onended(){return A.get(this,"onended")}set onended(e){A.set(this,"onended",e)}get onerror(){return A.get(this,"onerror")}set onerror(e){A.set(this,"onerror",e)}get onfocus(){return A.get(this,"onfocus")}set onfocus(e){A.set(this,"onfocus",e)}get oninput(){return A.get(this,"oninput")}set oninput(e){A.set(this,"oninput",e)}get oninvalid(){return A.get(this,"oninvalid")}set oninvalid(e){A.set(this,"oninvalid",e)}get onkeydown(){return A.get(this,"onkeydown")}set onkeydown(e){A.set(this,"onkeydown",e)}get onkeypress(){return A.get(this,"onkeypress")}set onkeypress(e){A.set(this,"onkeypress",e)}get onkeyup(){return A.get(this,"onkeyup")}set onkeyup(e){A.set(this,"onkeyup",e)}get onload(){return A.get(this,"onload")}set onload(e){A.set(this,"onload",e)}get onloadeddata(){return A.get(this,"onloadeddata")}set onloadeddata(e){A.set(this,"onloadeddata",e)}get onloadedmetadata(){return A.get(this,"onloadedmetadata")}set onloadedmetadata(e){A.set(this,"onloadedmetadata",e)}get onloadstart(){return A.get(this,"onloadstart")}set onloadstart(e){A.set(this,"onloadstart",e)}get onmousedown(){return A.get(this,"onmousedown")}set onmousedown(e){A.set(this,"onmousedown",e)}get onmouseenter(){return A.get(this,"onmouseenter")}set onmouseenter(e){A.set(this,"onmouseenter",e)}get onmouseleave(){return A.get(this,"onmouseleave")}set onmouseleave(e){A.set(this,"onmouseleave",e)}get onmousemove(){return A.get(this,"onmousemove")}set onmousemove(e){A.set(this,"onmousemove",e)}get onmouseout(){return A.get(this,"onmouseout")}set onmouseout(e){A.set(this,"onmouseout",e)}get onmouseover(){return A.get(this,"onmouseover")}set onmouseover(e){A.set(this,"onmouseover",e)}get onmouseup(){return A.get(this,"onmouseup")}set onmouseup(e){A.set(this,"onmouseup",e)}get onmousewheel(){return A.get(this,"onmousewheel")}set onmousewheel(e){A.set(this,"onmousewheel",e)}get onpause(){return A.get(this,"onpause")}set onpause(e){A.set(this,"onpause",e)}get onplay(){return A.get(this,"onplay")}set onplay(e){A.set(this,"onplay",e)}get onplaying(){return A.get(this,"onplaying")}set onplaying(e){A.set(this,"onplaying",e)}get onprogress(){return A.get(this,"onprogress")}set onprogress(e){A.set(this,"onprogress",e)}get onratechange(){return A.get(this,"onratechange")}set onratechange(e){A.set(this,"onratechange",e)}get onreset(){return A.get(this,"onreset")}set onreset(e){A.set(this,"onreset",e)}get onresize(){return A.get(this,"onresize")}set onresize(e){A.set(this,"onresize",e)}get onscroll(){return A.get(this,"onscroll")}set onscroll(e){A.set(this,"onscroll",e)}get onseeked(){return A.get(this,"onseeked")}set onseeked(e){A.set(this,"onseeked",e)}get onseeking(){return A.get(this,"onseeking")}set onseeking(e){A.set(this,"onseeking",e)}get onselect(){return A.get(this,"onselect")}set onselect(e){A.set(this,"onselect",e)}get onshow(){return A.get(this,"onshow")}set onshow(e){A.set(this,"onshow",e)}get onstalled(){return A.get(this,"onstalled")}set onstalled(e){A.set(this,"onstalled",e)}get onsubmit(){return A.get(this,"onsubmit")}set onsubmit(e){A.set(this,"onsubmit",e)}get onsuspend(){return A.get(this,"onsuspend")}set onsuspend(e){A.set(this,"onsuspend",e)}get ontimeupdate(){return A.get(this,"ontimeupdate")}set ontimeupdate(e){A.set(this,"ontimeupdate",e)}get ontoggle(){return A.get(this,"ontoggle")}set ontoggle(e){A.set(this,"ontoggle",e)}get onvolumechange(){return A.get(this,"onvolumechange")}set onvolumechange(e){A.set(this,"onvolumechange",e)}get onwaiting(){return A.get(this,"onwaiting")}set onwaiting(e){A.set(this,"onwaiting",e)}get onauxclick(){return A.get(this,"onauxclick")}set onauxclick(e){A.set(this,"onauxclick",e)}get ongotpointercapture(){return A.get(this,"ongotpointercapture")}set ongotpointercapture(e){A.set(this,"ongotpointercapture",e)}get onlostpointercapture(){return A.get(this,"onlostpointercapture")}set onlostpointercapture(e){A.set(this,"onlostpointercapture",e)}get onpointercancel(){return A.get(this,"onpointercancel")}set onpointercancel(e){A.set(this,"onpointercancel",e)}get onpointerdown(){return A.get(this,"onpointerdown")}set onpointerdown(e){A.set(this,"onpointerdown",e)}get onpointerenter(){return A.get(this,"onpointerenter")}set onpointerenter(e){A.set(this,"onpointerenter",e)}get onpointerleave(){return A.get(this,"onpointerleave")}set onpointerleave(e){A.set(this,"onpointerleave",e)}get onpointermove(){return A.get(this,"onpointermove")}set onpointermove(e){A.set(this,"onpointermove",e)}get onpointerout(){return A.get(this,"onpointerout")}set onpointerout(e){A.set(this,"onpointerout",e)}get onpointerover(){return A.get(this,"onpointerover")}set onpointerover(e){A.set(this,"onpointerover",e)}get onpointerup(){return A.get(this,"onpointerup")}set onpointerup(e){A.set(this,"onpointerup",e)}};var ka="template",qu=class extends l{constructor(e){super(e,ka);let u=this.ownerDocument.createDocumentFragment();(this[pu]=u)[G]=this}get content(){if(this.hasChildNodes()&&!this[pu].hasChildNodes())for(let e of this.childNodes)this[pu].appendChild(e.cloneNode(!0));return this[pu]}};E(ka,qu);var ns=class extends l{constructor(e,u="html"){super(e,u)}};var{toString:PA}=l.prototype,Ze=class extends l{get innerHTML(){return this.textContent}set innerHTML(e){this.textContent=e}toString(){return PA.call(this.cloneNode()).replace("><",()=>`>${this.textContent}<`)}};var Oa="script",Vu=class extends Ze{constructor(e,u=Oa){super(e,u)}get type(){return h.get(this,"type")}set type(e){h.set(this,"type",e)}get src(){return h.get(this,"src")}set src(e){h.set(this,"src",e)}get defer(){return C.get(this,"defer")}set defer(e){C.set(this,"defer",e)}get crossOrigin(){return h.get(this,"crossorigin")}set crossOrigin(e){h.set(this,"crossorigin",e)}get nomodule(){return C.get(this,"nomodule")}set nomodule(e){C.set(this,"nomodule",e)}get referrerPolicy(){return h.get(this,"referrerpolicy")}set referrerPolicy(e){h.set(this,"referrerpolicy",e)}get nonce(){return h.get(this,"nonce")}set nonce(e){h.set(this,"nonce",e)}get async(){return C.get(this,"async")}set async(e){C.set(this,"async",e)}get text(){return this.textContent}set text(e){this.textContent=e}};E(Oa,Vu);var os=class extends l{constructor(e,u="frame"){super(e,u)}};var La="iframe",Zu=class extends l{constructor(e,u=La){super(e,u)}get src(){return h.get(this,"src")}set src(e){h.set(this,"src",e)}get srcdoc(){return h.get(this,"srcdoc")}set srcdoc(e){h.set(this,"srcdoc",e)}get name(){return h.get(this,"name")}set name(e){h.set(this,"name",e)}get allow(){return h.get(this,"allow")}set allow(e){h.set(this,"allow",e)}get allowFullscreen(){return C.get(this,"allowfullscreen")}set allowFullscreen(e){C.set(this,"allowfullscreen",e)}get referrerPolicy(){return h.get(this,"referrerpolicy")}set referrerPolicy(e){h.set(this,"referrerpolicy",e)}get loading(){return h.get(this,"loading")}set loading(e){h.set(this,"loading",e)}};E(La,Zu);var as=class extends l{constructor(e,u="object"){super(e,u)}};var cs=class extends l{constructor(e,u="head"){super(e,u)}};var As=class extends l{constructor(e,u="body"){super(e,u)}};var o0=xe(n0(),1);var a0="style",Xu=class extends Ze{constructor(e,u=a0){super(e,u),this[vt]=null}get sheet(){let e=this[vt];return e!==null?e:this[vt]=(0,o0.parse)(this.textContent)}get innerHTML(){return super.innerHTML||""}set innerHTML(e){super.textContent=e,this[vt]=null}get innerText(){return super.innerText||""}set innerText(e){super.textContent=e,this[vt]=null}get textContent(){return super.textContent||""}set textContent(e){super.textContent=e,this[vt]=null}};E(a0,Xu);var ju=class extends l{constructor(e,u="time"){super(e,u)}get dateTime(){return h.get(this,"datetime")}set dateTime(e){h.set(this,"datetime",e)}};E("time",ju);var Cs=class extends l{constructor(e,u="fieldset"){super(e,u)}};var Es=class extends l{constructor(e,u="embed"){super(e,u)}};var ys=class extends l{constructor(e,u="hr"){super(e,u)}};var ws=class extends l{constructor(e,u="progress"){super(e,u)}};var Is=class extends l{constructor(e,u="p"){super(e,u)}};var Ns=class extends l{constructor(e,u="table"){super(e,u)}};var Ts=class extends l{constructor(e,u="frameset"){super(e,u)}};var Ds=class extends l{constructor(e,u="li"){super(e,u)}};var Bs=class extends l{constructor(e,u="base"){super(e,u)}};var vs=class extends l{constructor(e,u="datalist"){super(e,u)}};var c0="input",zu=class extends l{constructor(e,u=c0){super(e,u)}get autofocus(){return C.get(this,"autofocus")||-1}set autofocus(e){C.set(this,"autofocus",e)}get disabled(){return C.get(this,"disabled")}set disabled(e){C.set(this,"disabled",e)}get name(){return this.getAttribute("name")}set name(e){this.setAttribute("name",e)}get placeholder(){return this.getAttribute("placeholder")}set placeholder(e){this.setAttribute("placeholder",e)}get type(){return this.getAttribute("type")}set type(e){this.setAttribute("type",e)}get value(){return h.get(this,"value")}set value(e){h.set(this,"value",e)}};E(c0,zu);var Rs=class extends l{constructor(e,u="param"){super(e,u)}};var Fs=class extends l{constructor(e,u="media"){super(e,u)}};var Ms=class extends l{constructor(e,u="audio"){super(e,u)}};var A0="h1",$u=class extends l{constructor(e,u=A0){super(e,u)}};E([A0,"h2","h3","h4","h5","h6"],$u);var ks=class extends l{constructor(e,u="dir"){super(e,u)}};var Os=class extends l{constructor(e,u="quote"){super(e,u)}};var f0=xe(h0(),1);var{createCanvas:_A}=f0.default,p0="canvas",er=class extends l{constructor(e,u=p0){super(e,u),this[pe]=_A(300,150)}get width(){return this[pe].width}set width(e){Fe.set(this,"width",e),this[pe].width=e}get height(){return this[pe].height}set height(e){Fe.set(this,"height",e),this[pe].height=e}getContext(e){return this[pe].getContext(e)}toDataURL(...e){return this[pe].toDataURL(...e)}};E(p0,er);var Ls=class extends l{constructor(e,u="legend"){super(e,u)}};var g0="option",tr=class extends l{constructor(e,u=g0){super(e,u)}get value(){return h.get(this,"value")}set value(e){h.set(this,"value",e)}get selected(){return C.get(this,"selected")}set selected(e){let u=this.parentElement?.querySelector("option[selected]");u&&u!==this&&(u.selected=!1),C.set(this,"selected",e)}};E(g0,tr);var Gs=class extends l{constructor(e,u="span"){super(e,u)}};var Qs=class extends l{constructor(e,u="meter"){super(e,u)}};var Hs=class extends l{constructor(e,u="video"){super(e,u)}};var Ks=class extends l{constructor(e,u="td"){super(e,u)}};var m0="title",ur=class extends Ze{constructor(e,u=m0){super(e,u)}};E(m0,ur);var Us=class extends l{constructor(e,u="output"){super(e,u)}};var Ws=class extends l{constructor(e,u="tr"){super(e,u)}};var Ys=class extends l{constructor(e,u="data"){super(e,u)}};var Js=class extends l{constructor(e,u="menu"){super(e,u)}};var b0="select",rr=class extends l{constructor(e,u=b0){super(e,u)}get options(){let e=new U,{firstElementChild:u}=this;for(;u;)u.tagName==="OPTGROUP"?e.push(...u.children):e.push(u),u=u.nextElementSibling;return e}get disabled(){return C.get(this,"disabled")}set disabled(e){C.set(this,"disabled",e)}get name(){return this.getAttribute("name")}set name(e){this.setAttribute("name",e)}get value(){return this.querySelector("option[selected]")?.value}};E(b0,rr);var qs=class extends l{constructor(e,u="br"){super(e,u)}};var S0="button",sr=class extends l{constructor(e,u=S0){super(e,u)}get disabled(){return C.get(this,"disabled")}set disabled(e){C.set(this,"disabled",e)}get name(){return this.getAttribute("name")}set name(e){this.setAttribute("name",e)}get type(){return this.getAttribute("type")}set type(e){this.setAttribute("type",e)}};E(S0,sr);var Vs=class extends l{constructor(e,u="map"){super(e,u)}};var Zs=class extends l{constructor(e,u="optgroup"){super(e,u)}};var Ps=class extends l{constructor(e,u="dl"){super(e,u)}};var x0="textarea",ir=class extends Ze{constructor(e,u=x0){super(e,u)}get disabled(){return C.get(this,"disabled")}set disabled(e){C.set(this,"disabled",e)}get name(){return this.getAttribute("name")}set name(e){this.setAttribute("name",e)}get placeholder(){return this.getAttribute("placeholder")}set placeholder(e){this.setAttribute("placeholder",e)}get type(){return this.getAttribute("type")}set type(e){this.setAttribute("type",e)}get value(){return this.textContent}set value(e){this.textContent=e}};E(x0,ir);var _s=class extends l{constructor(e,u="font"){super(e,u)}};var Xs=class extends l{constructor(e,u="div"){super(e,u)}};var C0="link",nr=class extends l{constructor(e,u=C0){super(e,u)}get disabled(){return C.get(this,"disabled")}set disabled(e){C.set(this,"disabled",e)}get href(){return h.get(this,"href").trim()}set href(e){h.set(this,"href",e)}get hreflang(){return h.get(this,"hreflang")}set hreflang(e){h.set(this,"hreflang",e)}get media(){return h.get(this,"media")}set media(e){h.set(this,"media",e)}get rel(){return h.get(this,"rel")}set rel(e){h.set(this,"rel",e)}get type(){return h.get(this,"type")}set type(e){h.set(this,"type",e)}};E(C0,nr);var E0="slot",or=class extends l{constructor(e,u=E0){super(e,u)}get name(){return this.getAttribute("name")}set name(e){this.setAttribute("name",e)}assign(){}assignedNodes(e){let u=!!this.name,r=this.getRootNode().host?.childNodes??[],s;if(u?s=[...r].filter(i=>i.slot===this.name):s=[...r].filter(i=>!i.slot),e?.flatten){let i=[];for(let n of s)n.localName==="slot"?i.push(...n.assignedNodes({flatten:!0})):i.push(n);s=i}return s.length?s:[...this.childNodes]}assignedElements(e){let u=this.assignedNodes(e).filter(r=>r.nodeType===1);return u.length?u:[...this.children]}};E(E0,or);var js=class extends l{constructor(e,u="form"){super(e,u)}};var y0="img",Yt=class extends l{constructor(e,u=y0){super(e,u)}get alt(){return h.get(this,"alt")}set alt(e){h.set(this,"alt",e)}get sizes(){return h.get(this,"sizes")}set sizes(e){h.set(this,"sizes",e)}get src(){return h.get(this,"src")}set src(e){h.set(this,"src",e)}get srcset(){return h.get(this,"srcset")}set srcset(e){h.set(this,"srcset",e)}get title(){return h.get(this,"title")}set title(e){h.set(this,"title",e)}get width(){return Fe.get(this,"width")}set width(e){Fe.set(this,"width",e)}get height(){return Fe.get(this,"height")}set height(e){Fe.set(this,"height",e)}};E(y0,Yt);var zs=class extends l{constructor(e,u="pre"){super(e,u)}};var $s=class extends l{constructor(e,u="ul"){super(e,u)}};var w0="meta",ar=class extends l{constructor(e,u=w0){super(e,u)}get name(){return h.get(this,"name")}set name(e){h.set(this,"name",e)}get httpEquiv(){return h.get(this,"http-equiv")}set httpEquiv(e){h.set(this,"http-equiv",e)}get content(){return h.get(this,"content")}set content(e){h.set(this,"content",e)}get charset(){return h.get(this,"charset")}set charset(e){h.set(this,"charset",e)}get media(){return h.get(this,"media")}set media(e){h.set(this,"media",e)}};E(w0,ar);var ei=class extends l{constructor(e,u="picture"){super(e,u)}};var ti=class extends l{constructor(e,u="area"){super(e,u)}};var ui=class extends l{constructor(e,u="ol"){super(e,u)}};var ri=class extends l{constructor(e,u="caption"){super(e,u)}};var I0="a",cr=class extends l{constructor(e,u=I0){super(e,u)}get href(){return encodeURI(decodeURI(h.get(this,"href"))).trim()}set href(e){h.set(this,"href",decodeURI(e))}get download(){return encodeURI(decodeURI(h.get(this,"download")))}set download(e){h.set(this,"download",decodeURI(e))}get target(){return h.get(this,"target")}set target(e){h.set(this,"target",e)}get type(){return h.get(this,"type")}set type(e){h.set(this,"type",e)}get rel(){return h.get(this,"rel")}set rel(e){h.set(this,"rel",e)}};E(I0,cr);var si=class extends l{constructor(e,u="label"){super(e,u)}};var ii=class extends l{constructor(e,u="unknown"){super(e,u)}};var ni=class extends l{constructor(e,u="mod"){super(e,u)}};var oi=class extends l{constructor(e,u="details"){super(e,u)}};var N0="source",Ar=class extends l{constructor(e,u=N0){super(e,u)}get src(){return h.get(this,"src")}set src(e){h.set(this,"src",e)}get srcset(){return h.get(this,"srcset")}set srcset(e){h.set(this,"srcset",e)}get sizes(){return h.get(this,"sizes")}set sizes(e){h.set(this,"sizes",e)}get type(){return h.get(this,"type")}set type(e){h.set(this,"type",e)}};E(N0,Ar);var ai=class extends l{constructor(e,u="track"){super(e,u)}};var ci=class extends l{constructor(e,u="marquee"){super(e,u)}};var T0={HTMLElement:l,HTMLTemplateElement:qu,HTMLHtmlElement:ns,HTMLScriptElement:Vu,HTMLFrameElement:os,HTMLIFrameElement:Zu,HTMLObjectElement:as,HTMLHeadElement:cs,HTMLBodyElement:As,HTMLStyleElement:Xu,HTMLTimeElement:ju,HTMLFieldSetElement:Cs,HTMLEmbedElement:Es,HTMLHRElement:ys,HTMLProgressElement:ws,HTMLParagraphElement:Is,HTMLTableElement:Ns,HTMLFrameSetElement:Ts,HTMLLIElement:Ds,HTMLBaseElement:Bs,HTMLDataListElement:vs,HTMLInputElement:zu,HTMLParamElement:Rs,HTMLMediaElement:Fs,HTMLAudioElement:Ms,HTMLHeadingElement:$u,HTMLDirectoryElement:ks,HTMLQuoteElement:Os,HTMLCanvasElement:er,HTMLLegendElement:Ls,HTMLOptionElement:tr,HTMLSpanElement:Gs,HTMLMeterElement:Qs,HTMLVideoElement:Hs,HTMLTableCellElement:Ks,HTMLTitleElement:ur,HTMLOutputElement:Us,HTMLTableRowElement:Ws,HTMLDataElement:Ys,HTMLMenuElement:Js,HTMLSelectElement:rr,HTMLBRElement:qs,HTMLButtonElement:sr,HTMLMapElement:Vs,HTMLOptGroupElement:Zs,HTMLDListElement:Ps,HTMLTextAreaElement:ir,HTMLFontElement:_s,HTMLDivElement:Xs,HTMLLinkElement:nr,HTMLSlotElement:or,HTMLFormElement:js,HTMLImageElement:Yt,HTMLPreElement:zs,HTMLUListElement:$s,HTMLMetaElement:ar,HTMLPictureElement:ei,HTMLAreaElement:ti,HTMLOListElement:ui,HTMLTableCaptionElement:ri,HTMLAnchorElement:cr,HTMLLabelElement:si,HTMLUnknownElement:ii,HTMLModElement:ni,HTMLDetailsElement:oi,HTMLSourceElement:Ar,HTMLTrackElement:ai,HTMLMarqueeElement:ci};var Ai={test:()=>!0},D0={"text/html":{docType:"<!DOCTYPE html>",ignoreCase:!0,voidElements:/^(?:area|base|br|col|embed|hr|img|input|keygen|link|menuitem|meta|param|source|track|wbr)$/i},"image/svg+xml":{docType:'<?xml version="1.0" encoding="utf-8"?>',ignoreCase:!1,voidElements:Ai},"text/xml":{docType:'<?xml version="1.0" encoding="utf-8"?>',ignoreCase:!1,voidElements:Ai},"application/xml":{docType:'<?xml version="1.0" encoding="utf-8"?>',ignoreCase:!1,voidElements:Ai},"application/xhtml+xml":{docType:'<?xml version="1.0" encoding="utf-8"?>',ignoreCase:!1,voidElements:Ai}};var hu=class extends ne{constructor(e,u={}){super(e,u),this.detail=u.detail}};var lr=class extends ne{constructor(e,u={}){super(e,u),this.inputType=u.inputType,this.data=u.data,this.dataTransfer=u.dataTransfer,this.isComposing=u.isComposing||!1,this.ranges=u.ranges}};var B0=t=>class extends Yt{constructor(u,r){switch(super(t),arguments.length){case 1:this.height=u,this.width=u;break;case 2:this.height=r,this.width=u;break}}};var v0=({[Y]:t,[g]:e},u=null)=>{Fr(t[T],e[p]);do{let r=K(t),s=r===e?r:r[p];u?u.insertBefore(t,u[g]):t.remove(),t=s}while(t!==e)},li=class t{constructor(){this[Y]=null,this[g]=null,this.commonAncestorContainer=null}insertNode(e){this[g].parentNode.insertBefore(e,this[Y])}selectNode(e){this[Y]=e,this[g]=K(e)}selectNodeContents(e){this.selectNode(e),this.commonAncestorContainer=e}surroundContents(e){e.replaceChildren(this.extractContents())}setStartBefore(e){this[Y]=e}setStartAfter(e){this[Y]=e.nextSibling}setEndBefore(e){this[g]=K(e.previousSibling)}setEndAfter(e){this[g]=K(e)}cloneContents(){let{[Y]:e,[g]:u}=this,r=e.ownerDocument.createDocumentFragment();for(;e!==u;)r.insertBefore(e.cloneNode(!0),r[g]),e=K(e),e!==u&&(e=e[p]);return r}deleteContents(){v0(this)}extractContents(){let e=this[Y].ownerDocument.createDocumentFragment();return v0(this,e),e}createContextualFragment(e){let{commonAncestorContainer:u}=this,r="ownerSVGElement"in u,s=r?u.ownerDocument:u,i=Mr(s,e);if(r){let n=[...i.childNodes];i=s.createDocumentFragment(),Object.setPrototypeOf(i,Qe.prototype),i.ownerSVGElement=s;for(let o of n)Object.setPrototypeOf(o,Qe.prototype),o.ownerSVGElement=s,i.appendChild(o)}else this.selectNode(i);return i}cloneRange(){let e=new t;return e[Y]=this[Y],e[g]=this[g],e}};var XA=({nodeType:t},e)=>{switch(t){case 1:return e&Zi;case 3:return e&Pi;case 8:return e&Xi;case 4:return e&_i}return 0},di=class{constructor(e,u=Vi){this.root=e,this.currentNode=e,this.whatToShow=u;let{[p]:r,[g]:s}=e;if(e.nodeType===9){let{documentElement:n}=e;r=n,s=n[g]}let i=[];for(;r&&r!==s;)XA(r,u)&&i.push(r),r=r[p];this[G]={i:0,nodes:i}}nextNode(){let e=this[G];return this.currentNode=e.i<e.nodes.length?e.nodes[e.i++]:null,this.currentNode}};var R0=(t,e,u)=>{let{[p]:r,[g]:s}=e;return t.call({ownerDocument:e,[p]:r,[g]:s},u)},F0=ko({},Ma,T0,{CustomEvent:hu,Event:ne,EventTarget:It,InputEvent:lr,NamedNodeMap:Au,NodeList:U}),hi=new WeakMap,Se=class extends Dt{constructor(e){super(null,"#document",9),this[se]={active:!1,registry:null},this[We]={active:!1,class:null},this[Be]=D0[e],this[St]=null,this[gu]=null,this[Zt]=null,this[pe]=null,this[xt]=null}get defaultView(){return hi.has(this)||hi.set(this,new Proxy(globalThis,{set:(e,u,r)=>{switch(u){case"addEventListener":case"removeEventListener":case"dispatchEvent":this[Vt][u]=r;break;default:e[u]=r;break}return!0},get:(e,u)=>{switch(u){case"addEventListener":case"removeEventListener":case"dispatchEvent":if(!this[Vt]){let r=this[Vt]=new It;r.dispatchEvent=r.dispatchEvent.bind(r),r.addEventListener=r.addEventListener.bind(r),r.removeEventListener=r.removeEventListener.bind(r)}return this[Vt][u];case"document":return this;case"navigator":return{userAgent:"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.150 Safari/537.36"};case"window":return hi.get(this);case"customElements":return this[se].registry||(this[se]=new kr(this)),this[se];case"performance":return e.performance;case"DOMParser":return this[gu];case"Image":return this[pe]||(this[pe]=B0(this)),this[pe];case"MutationObserver":return this[We].class||(this[We]=new Gr(this)),this[We].class}return this[Zt]&&this[Zt][u]||F0[u]||e[u]}})),hi.get(this)}get doctype(){let e=this[St];if(e)return e;let{firstChild:u}=this;return u&&u.nodeType===10?this[St]=u:null}set doctype(e){if(/^([a-z:]+)(\s+system|\s+public(\s+"([^"]+)")?)?(\s+"([^"]+)")?/i.test(e)){let{$1:u,$4:r,$6:s}=RegExp;this[St]=new lt(this,u,r,s),nt(this,this[St],this[p])}}get documentElement(){return this.firstElementChild}get isConnected(){return!0}_getParent(){return this[Vt]}createAttribute(e){return new we(this,e)}createCDATASection(e){return new Nt(this,e)}createComment(e){return new Tt(this,e)}createDocumentFragment(){return new Ht(this)}createDocumentType(e,u,r){return new lt(this,e,u,r)}createElement(e){return new Ge(this,e)}createRange(){let e=new li;return e.commonAncestorContainer=this,e}createTextNode(e){return new Te(this,e)}createTreeWalker(e,u=-1){return new di(e,u)}createNodeIterator(e,u=-1){return this.createTreeWalker(e,u)}createEvent(e){let u=Oo(e==="Event"?new ne(""):new hu(""));return u.initEvent=u.initCustomEvent=(r,s=!1,i=!1,n)=>{u.bubbles=!!s,Lo(u,{type:{value:r},canBubble:{value:s},cancelable:{value:i},detail:{value:n}})},u}cloneNode(e=!1){let{constructor:u,[se]:r,[St]:s}=this,i=new u;if(i[se]=r,e){let n=i[g],{childNodes:o}=this;for(let{length:a}=o,c=0;c<a;c++)i.insertBefore(o[c].cloneNode(!0),n);s&&(i[St]=o[0])}return i}importNode(e){let u=1<arguments.length&&!!arguments[1],r=e.cloneNode(u),{[se]:s}=this,{active:i}=s,n=o=>{let{ownerDocument:a,nodeType:c}=o;o.ownerDocument=this,i&&a!==this&&c===1&&s.upgrade(o)};if(n(r),u)switch(r.nodeType){case 1:case 11:{let{[p]:o,[g]:a}=r;for(;o!==a;)o.nodeType===1&&n(o),o=o[p];break}}return r}toString(){return this.childNodes.join("")}querySelector(e){return R0(super.querySelector,this,e)}querySelectorAll(e){return R0(super.querySelectorAll,this,e)}getElementsByTagNameNS(e,u){return this.getElementsByTagName(u)}createAttributeNS(e,u){return this.createAttribute(u)}createElementNS(e,u,r){return e===Mt?new Qe(this,u,null):this.createElement(u,r)}};H(F0.Document=function(){oe()},Se).prototype=Se.prototype;var jA=(t,e,u,r)=>{if(!e&&eu.has(u)){let n=eu.get(u);return new n(t,u)}let{[se]:{active:s,registry:i}}=t;if(s){let n=e?r.is:u;if(i.has(n)){let{Class:o}=i.get(n),a=new o(t,u);return ot.set(a,{connected:!1}),a}}return new l(t,u)},dr=class extends Se{constructor(){super("text/html")}get all(){let e=new U,{[p]:u,[g]:r}=this;for(;u!==r;)u.nodeType===1&&e.push(u),u=u[p];return e}get head(){let{documentElement:e}=this,{firstElementChild:u}=e;return(!u||u.tagName!=="HEAD")&&(u=this.createElement("head"),e.prepend(u)),u}get body(){let{head:e}=this,{nextElementSibling:u}=e;return(!u||u.tagName!=="BODY")&&(u=this.createElement("body"),e.after(u)),u}get title(){let{head:e}=this;return e.getElementsByTagName("title").at(0)?.textContent||""}set title(e){let{head:u}=this,r=u.getElementsByTagName("title").at(0);r?r.textContent=e:u.insertBefore(this.createElement("title"),u.firstChild).textContent=e}createElement(e,u){let r=!!(u&&u.is),s=jA(this,r,e,u);return r&&s.setAttribute("is",u.is),s}};var fi=class extends Se{constructor(){super("image/svg+xml")}toString(){return this[Be].docType+super.toString()}};var pi=class extends Se{constructor(){super("text/xml")}toString(){return this[Be].docType+super.toString()}};var hr=class t{parseFromString(e,u,r=null){let s=!1,i;return u==="text/html"?(s=!0,i=new dr):u==="image/svg+xml"?i=new fi:i=new pi,i[gu]=t,r&&(i[Zt]=r),s&&e==="..."&&(e="<!doctype html><html><head></head><body></body></html>"),e?Lr(i,s,e):i}};var{parse:fx}=JSON;function zA(){oe()}H(zA,Se).prototype=Se.prototype;var $A=new Set(["svg","g","defs","symbol","use","image","a","switch","rect","circle","ellipse","line","polyline","polygon","path","text","tspan","textPath","linearGradient","radialGradient","stop","pattern","mask","clipPath","marker","filter","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","title","desc","metadata","style"]),el=new Set(["id","class","style","transform","viewBox","width","height","x","y","x1","y1","x2","y2","cx","cy","r","rx","ry","fx","fy","points","d","offset","enable-background","gradientUnits","gradientTransform","spreadMethod","patternUnits","patternContentUnits","patternTransform","maskUnits","maskContentUnits","clipPathUnits","clip-rule","filterUnits","primitiveUnits","preserveAspectRatio","space","lang","role","focusable","tabindex","version","baseProfile","fill","fill-opacity","fill-rule","stroke","stroke-width","stroke-opacity","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-dasharray","stroke-dashoffset","opacity","color","stop-color","stop-opacity","font-family","font-size","font-weight","font-style","text-anchor","dominant-baseline","alignment-baseline","letter-spacing","word-spacing","text-decoration","clip-path","mask","filter","marker-start","marker-mid","marker-end","marker","cursor","pointer-events","visibility","display","overflow","vector-effect","paint-order","color-interpolation","color-interpolation-filters","isolation","mix-blend-mode","startOffset","method","spacing","side","textLength","lengthAdjust","in","in2","result","mode","type","values","dx","dy","stdDeviation","edgeMode","k1","k2","k3","k4","operator","radius","scale","xChannelSelector","yChannelSelector","baseFrequency","numOctaves","seed","stitchTiles","tableValues","slope","intercept","amplitude","exponent","order","divisor","bias","targetX","targetY","kernelMatrix","preserveAlpha","kernelUnitLength","surfaceScale","diffuseConstant","specularConstant","specularExponent","lighting-color","flood-color","flood-opacity","azimuth","elevation","pointsAtX","pointsAtY","pointsAtZ","limitingConeAngle"]);function tl(t){let e=t.lastIndexOf(":");return e===-1?t:t.slice(e+1)}function ul(t,e){let u=t.trim();return u.startsWith("#")?!0:/^data:image\//i.test(u)&&e.toLowerCase()!=="a"}var rl=new Set(["","url","rgb","rgba","hsl","hsla","hwb","lab","lch","oklab","oklch","color","color-mix","var","calc","min","max","clamp","matrix","matrix3d","translate","translatex","translatey","translatez","translate3d","scale","scalex","scaley","scalez","scale3d","rotate","rotatex","rotatey","rotatez","rotate3d","skew","skewx","skewy","perspective","cubic-bezier","steps","blur","brightness","contrast","drop-shadow","grayscale","hue-rotate","invert","opacity","saturate","sepia"]);function sl(t,e){if(t===void 0)return e??"";let u=parseInt(t,16);return u===0||u>1114111||u>=55296&&u<=57343?"\uFFFD":String.fromCodePoint(u)}function il(t){return t.replace(/\r\n?|\f/g,`
22
+ `).replace(/\\([0-9a-f]{1,6})[ \t\n]?|\\([\s\S])/gi,(e,u,r)=>sl(u,r)).toLowerCase()}function nl(t){return t!==void 0&&/[-\w]/.test(t)}function ol(t,e){let u=e;for(;nl(t[u-1]);)u--;return t.slice(u,e)}function al(t){for(let e=t.indexOf("(");e!==-1;e=t.indexOf("(",e+1))if(!rl.has(ol(t,e)))return!1;return!0}function cl(t){let e=t.trim().replace(/^['"]/,"");return e.startsWith("#")&&!e.includes("(")}function Al(t){for(let e=t.indexOf("url(");e!==-1;){let u=t.indexOf(")",e+4);if(u===-1||!cl(t.slice(e+4,u)))return!1;e=t.indexOf("url(",u+1)}return!0}function M0(t){let e=il(t);return!e.includes("@import")&&al(e)&&Al(e)}function ll(t){return t==="xmlns"||t.startsWith("xmlns:")}function dl(t){return el.has(t)||t.startsWith("aria-")||t.startsWith("data-")}function hl(t,e,u){if(ll(e))return!0;let r=tl(e);return r==="href"?ul(u,t):dl(r)&&M0(u)}function Lx(t){let e=new hr().parseFromString(t,"image/svg+xml"),u=e.documentElement;if(!u)return"";for(let r of[...e.querySelectorAll("*")])if(r.isConnected){if(!$A.has(r.tagName)){r.remove();continue}if(r.tagName==="style"&&!M0(r.textContent)){r.remove();continue}for(let s of[...r.attributes])hl(r.tagName,s.name,s.value)||r.removeAttribute(s.name)}return u.isConnected?u.outerHTML:""}export{Lx as sanitizeSvg};
@@ -70,3 +70,34 @@ test("non-win32: spawns plain npx unchanged", async () => {
70
70
  assert.deepEqual(captured[0].args.slice(0, 3), ["hyperframes", "tts", "hola"]);
71
71
  assert.ok(captured[0].args.includes("--lang"));
72
72
  });
73
+
74
+ test("a launching CLI's entry file runs instead of npx, on every platform", async () => {
75
+ for (const platform of ["darwin", "linux", "win32"]) {
76
+ const captured = [];
77
+ const fakeExec = (cmd, args) => captured.push({ cmd, args });
78
+ const entry = "/opt/hf/dist/cli.js";
79
+ const env = { ...envWithNpxCli, HYPERFRAMES_CLI_ENTRY: entry };
80
+
81
+ await localTtsGenerate("hi", {}, platform, fakeExec, env, pathExists);
82
+
83
+ assert.equal(captured.length, 1);
84
+ assert.equal(captured[0].cmd, process.execPath);
85
+ assert.deepEqual(captured[0].args.slice(0, 3), [entry, "tts", "hi"]);
86
+ }
87
+ });
88
+
89
+ test("a relative CLI entry is ignored and npx resolves as before", async () => {
90
+ const captured = [];
91
+ const fakeExec = (cmd, args) => captured.push({ cmd, args });
92
+
93
+ await localTtsGenerate(
94
+ "hi",
95
+ {},
96
+ "darwin",
97
+ fakeExec,
98
+ { HYPERFRAMES_CLI_ENTRY: "cli.js" },
99
+ () => false,
100
+ );
101
+
102
+ assert.equal(captured[0].cmd, "npx");
103
+ });