@bkm016/basalt 0.1.12 → 0.1.13

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 (271) hide show
  1. package/{chunk-7jezts2n.js → chunk-06s9pr82.js} +2 -2
  2. package/{chunk-jpnf71q7.js → chunk-095adzn5.js} +2 -2
  3. package/chunk-0a7ft50x.js +18 -0
  4. package/{chunk-vjne04dp.js → chunk-0nedq669.js} +4 -4
  5. package/chunk-0x9netvr.js +5 -0
  6. package/{chunk-9as0p561.js → chunk-15ve3nmv.js} +11 -11
  7. package/chunk-1dbfmejf.js +2 -0
  8. package/{chunk-hbnmymaq.js → chunk-1q6e3mj7.js} +2 -2
  9. package/{chunk-85v69h91.js → chunk-22az84sh.js} +2 -2
  10. package/{chunk-w0rr66z7.js → chunk-2q56egb8.js} +1 -1
  11. package/{chunk-fhxy6y34.js → chunk-2tf7qfbx.js} +2 -2
  12. package/{chunk-nw1xpt3s.js → chunk-2zbj8ny6.js} +2 -2
  13. package/chunk-302n9g7p.js +2 -0
  14. package/{chunk-bk4rpnm8.js → chunk-37ndxehw.js} +2 -2
  15. package/chunk-41das1ty.js +2 -0
  16. package/{chunk-6mges89p.js → chunk-44a7f5ta.js} +5 -5
  17. package/{chunk-jn5pqy5v.js → chunk-46vy2m29.js} +1 -1
  18. package/{chunk-1zj3zvw5.js → chunk-4k9t9jvx.js} +4 -4
  19. package/{chunk-eq4wqxzt.js → chunk-4rnmxtpx.js} +2 -2
  20. package/{chunk-1xfv4bd7.js → chunk-4w9zqv0k.js} +1 -1
  21. package/chunk-6d9r9p91.js +20 -0
  22. package/chunk-6f4ht2hw.js +2 -0
  23. package/{chunk-jj4hqbrx.js → chunk-6sea12mw.js} +3 -3
  24. package/chunk-74wwdx3y.js +3 -0
  25. package/{chunk-w6f2r052.js → chunk-77c2cqp2.js} +1 -1
  26. package/chunk-7chv3knf.js +2 -0
  27. package/chunk-86yr2c0r.js +3 -0
  28. package/{chunk-6sz5q3df.js → chunk-8cgz8xv7.js} +2 -2
  29. package/{chunk-tvm4zmgj.js → chunk-959z9efn.js} +2 -2
  30. package/{chunk-eyrtbbdd.js → chunk-9e8vhzy7.js} +1 -1
  31. package/chunk-b516bp7n.js +3 -0
  32. package/chunk-bja7p3em.js +25 -0
  33. package/chunk-bng72094.js +2 -0
  34. package/{chunk-ksk49hv0.js → chunk-bp61xdsc.js} +1 -1
  35. package/chunk-bq54argx.js +2 -0
  36. package/chunk-ct77cdg7.js +2 -0
  37. package/{chunk-02d3x4mj.js → chunk-dk6fgprw.js} +3 -3
  38. package/chunk-drett6hb.js +2 -0
  39. package/{chunk-4gtgqcct.js → chunk-edbq461k.js} +3 -3
  40. package/{chunk-p2pmdbt2.js → chunk-f0h2bv11.js} +12 -12
  41. package/{chunk-8mezk0cb.js → chunk-g2etemv5.js} +2 -2
  42. package/{chunk-n0ybj4h9.js → chunk-g5p9mj1r.js} +2 -2
  43. package/{chunk-fy82qxa1.js → chunk-gpnqmtbk.js} +1 -1
  44. package/{chunk-kpe7pnhy.js → chunk-h9zxqeqr.js} +4 -4
  45. package/{chunk-qfcr5g35.js → chunk-jjtt9aq8.js} +3 -3
  46. package/{chunk-5wnmbc1b.js → chunk-kbpbrr11.js} +2 -2
  47. package/chunk-m71pj3g1.js +2 -0
  48. package/chunk-mdkfm1ak.js +7 -0
  49. package/chunk-mf04h0yy.js +7 -0
  50. package/chunk-n22vd4at.js +2 -0
  51. package/{chunk-v7wcchy2.js → chunk-nbjnwd54.js} +1 -1
  52. package/{chunk-1h34mzh7.js → chunk-pryvvs96.js} +22 -22
  53. package/{chunk-2kxnw7vs.js → chunk-r1jn77q6.js} +2 -2
  54. package/{chunk-ypqjfv3a.js → chunk-rn3jwyh1.js} +2 -2
  55. package/chunk-sgrrxsnz.js +482 -0
  56. package/chunk-sgz87ht5.js +2 -0
  57. package/{chunk-stj493dn.js → chunk-snz19yc2.js} +2 -2
  58. package/{chunk-qs8zzg50.js → chunk-szj85dqe.js} +2 -2
  59. package/{chunk-nrsd810j.js → chunk-tfhp09nj.js} +2 -2
  60. package/{chunk-hc300148.js → chunk-tfhze1vq.js} +2 -2
  61. package/{chunk-01nve4qy.js → chunk-tjg0gcks.js} +1 -1
  62. package/{chunk-cbgpymt4.js → chunk-tnj2kqb8.js} +1 -1
  63. package/{chunk-3pf1d62g.js → chunk-vqm94hz2.js} +2 -2
  64. package/{chunk-82v8jh1h.js → chunk-xvm0y99b.js} +2 -2
  65. package/{chunk-rwks9zaw.js → chunk-y23dpz5e.js} +2 -2
  66. package/{chunk-ejjem0tc.js → chunk-y4pvhes1.js} +6 -6
  67. package/{chunk-bwawt15q.js → chunk-ydzag81d.js} +2 -2
  68. package/chunk-ymg7mtcx.js +3 -0
  69. package/chunk-yy1f9jxc.js +4044 -0
  70. package/{chunk-ntks40jd.js → chunk-z0c8ek0j.js} +5 -5
  71. package/chunk-zk91579b.js +3 -0
  72. package/{chunk-0fc9apfn.js → chunk-zx75vnw8.js} +18 -18
  73. package/compiled.js +85 -12
  74. package/package.json +1 -1
  75. package/ui-test-worker.js +53 -53
  76. package/web/{chunk-aeymdtm1.js → chunk-0jbf73pr.js} +3 -3
  77. package/web/{chunk-7vgh17es.js → chunk-0rhx7qb8.js} +1 -1
  78. package/web/{chunk-7adsmqv6.js → chunk-0rvwj2wh.js} +2 -2
  79. package/web/chunk-12qf1r6m.js +1 -0
  80. package/web/{chunk-dndd757x.js → chunk-14vmr99v.js} +3 -3
  81. package/web/{chunk-4f6a8dsk.js → chunk-16jc5m0f.js} +1 -1
  82. package/web/{chunk-bra33pt0.js → chunk-1m6fx2h7.js} +2 -2
  83. package/web/{chunk-hva7xyne.js → chunk-1xm9x7d6.js} +1 -1
  84. package/web/{chunk-8539865x.js → chunk-20jxvmbw.js} +1 -1
  85. package/web/chunk-2n5xbnrt.js +1 -0
  86. package/web/{chunk-bygwbpvq.js → chunk-2sef2wft.js} +2 -2
  87. package/web/{chunk-w9gnqkez.js → chunk-2x7vmhm0.js} +2 -2
  88. package/web/{chunk-19zd0tye.js → chunk-2y1avvqj.js} +8 -8
  89. package/web/chunk-36s08nye.js +1 -0
  90. package/web/chunk-3ctmehg4.js +1 -0
  91. package/web/{chunk-ncfzmf2g.js → chunk-3jjksgze.js} +1 -1
  92. package/web/{chunk-aebrw6cv.js → chunk-3p9w8sg5.js} +2 -2
  93. package/web/{chunk-sdr5wa4z.js → chunk-3wpxymxa.js} +3 -3
  94. package/web/{chunk-v34mr9ky.js → chunk-4py9sndw.js} +3 -3
  95. package/web/chunk-4swea9sn.js +1 -0
  96. package/web/chunk-4zz5a483.js +1 -0
  97. package/web/{chunk-3rkkp6ed.js → chunk-5cwxhhae.js} +5 -5
  98. package/web/{chunk-d57fm7k0.js → chunk-5ym5ffd5.js} +2 -2
  99. package/web/{chunk-gten0rpx.js → chunk-6e87m0nm.js} +2 -2
  100. package/web/{chunk-b99k8q22.js → chunk-6rsr2cyw.js} +8 -8
  101. package/web/chunk-6y55gk1n.js +1 -0
  102. package/web/chunk-7aep7k4v.js +1 -0
  103. package/web/{chunk-yf8ykk4v.js → chunk-8j4tzff5.js} +3 -3
  104. package/web/{chunk-ny436sqg.js → chunk-8tgavnwx.js} +1 -1
  105. package/web/{chunk-xvfeq8v2.js → chunk-97t3ngqf.js} +12 -12
  106. package/web/{chunk-gkmaryr4.js → chunk-980zhtht.js} +1 -1
  107. package/web/chunk-9k7fkx80.js +1 -0
  108. package/web/{chunk-hxbfkdjd.js → chunk-9wz8jne3.js} +1 -1
  109. package/web/chunk-a00vg115.js +1 -0
  110. package/web/chunk-a4gbxnm3.js +1 -0
  111. package/web/{chunk-6f2sz84q.js → chunk-a6g3nqp0.js} +1 -1
  112. package/web/{chunk-n9v14vyd.js → chunk-a9er7a7c.js} +22 -22
  113. package/web/chunk-atppv8fk.js +1 -0
  114. package/web/{chunk-xbyrgyy0.js → chunk-awkdw9rw.js} +2 -2
  115. package/web/{chunk-hqxc9m07.js → chunk-b4gcpsbg.js} +10 -10
  116. package/web/{chunk-qdd3bx8q.js → chunk-b9jry5a3.js} +1 -1
  117. package/web/{chunk-jyf7a7yp.js → chunk-ba9qy65y.js} +1 -1
  118. package/web/chunk-bq6mep6p.js +2 -0
  119. package/web/chunk-bwy3e58v.js +1 -0
  120. package/web/{chunk-aa46mrgh.js → chunk-c57f714b.js} +2 -2
  121. package/web/{chunk-b5zf1hs3.js → chunk-c6m4vfn5.js} +101 -101
  122. package/web/{chunk-5np514v5.js → chunk-cr04125j.js} +4 -4
  123. package/web/{chunk-ym7kv2hs.js → chunk-cr05dttm.js} +1 -1
  124. package/web/{chunk-2cyzaqjy.js → chunk-ct7z7bea.js} +3 -3
  125. package/web/{chunk-y2rzeb4v.js → chunk-ct90yf8z.js} +2 -2
  126. package/web/{chunk-yjs6jmdb.js → chunk-ddg8rz82.js} +3 -3
  127. package/web/{chunk-8cnjd0f2.js → chunk-dmha2y9c.js} +18 -18
  128. package/web/{chunk-jeafmjsm.js → chunk-e57h40qa.js} +6 -6
  129. package/web/chunk-eeesa5q1.js +1 -0
  130. package/web/{chunk-4wwd3pfz.js → chunk-eqndhs21.js} +2 -2
  131. package/web/{chunk-td83xf12.js → chunk-eqxy6535.js} +2 -2
  132. package/web/{chunk-wvrs986a.js → chunk-et1rsgmp.js} +3 -3
  133. package/web/chunk-f7jpakwh.js +1 -0
  134. package/web/{chunk-v1hfbjz9.js → chunk-fnvgdvrg.js} +4 -4
  135. package/web/chunk-fp62avjh.js +1 -0
  136. package/web/{chunk-6jb2zyp6.js → chunk-frnh4zqf.js} +2 -2
  137. package/web/chunk-g0be12na.js +1 -0
  138. package/web/{chunk-60mym60n.js → chunk-g7hqafb8.js} +1 -1
  139. package/web/{chunk-wqzbxzk3.js → chunk-ga07tv37.js} +1 -1
  140. package/web/chunk-gr163fex.js +1 -0
  141. package/web/chunk-gxtz10wf.js +1 -0
  142. package/web/{chunk-pjpre6de.js → chunk-h1k2kqbs.js} +6 -6
  143. package/web/{chunk-7tkgbbf9.js → chunk-h6k1x096.js} +2 -2
  144. package/web/{chunk-885kpj14.js → chunk-jccz14ye.js} +2 -2
  145. package/web/{chunk-d73zkc4q.js → chunk-jh33m2mq.js} +2 -2
  146. package/web/{chunk-g488hxx0.js → chunk-jh3k7xex.js} +3 -3
  147. package/web/{chunk-3qxxrwsp.js → chunk-jpem3qvs.js} +10 -10
  148. package/web/chunk-k9qnvx86.js +2 -0
  149. package/web/chunk-kcnj0gan.js +1 -0
  150. package/web/{chunk-2jfesv7m.js → chunk-ke8dffnk.js} +2 -2
  151. package/web/chunk-kpp5xqsb.js +1 -0
  152. package/web/chunk-m33yted6.js +1 -0
  153. package/web/chunk-me5jqqn6.js +1 -0
  154. package/web/{chunk-7v85yvb2.js → chunk-mkxeenph.js} +1 -1
  155. package/web/{chunk-mxkbmgcv.js → chunk-mnf4ngj9.js} +1 -1
  156. package/web/{chunk-30aeb767.js → chunk-mykrm8ba.js} +2 -2
  157. package/web/chunk-mzqqwbmr.js +1 -0
  158. package/web/chunk-npyrdsf8.css +1 -0
  159. package/web/chunk-p6e2vr51.js +34 -0
  160. package/web/{chunk-3n9ypydh.js → chunk-p7pa02k9.js} +2 -2
  161. package/web/chunk-q34as3v6.js +1 -0
  162. package/web/{chunk-7ksg3ccg.js → chunk-q4vy3dkk.js} +2 -2
  163. package/web/chunk-q6c8p73w.js +1 -0
  164. package/web/{chunk-h754ntg7.js → chunk-qb8mbptk.js} +1 -1
  165. package/web/{chunk-g4zm0crw.js → chunk-qbmtah1x.js} +1 -1
  166. package/web/chunk-qn93we3a.js +1 -0
  167. package/web/{chunk-c3fty2c2.js → chunk-qq06x2ce.js} +7 -7
  168. package/web/{chunk-fj753yzt.js → chunk-qq6m2my8.js} +2 -2
  169. package/web/chunk-r1f1egve.js +1 -0
  170. package/web/{chunk-80z8s8zb.js → chunk-s935z8er.js} +1 -1
  171. package/web/{chunk-3psgr0q8.js → chunk-sq75q603.js} +20 -20
  172. package/web/{chunk-qp3tjhaq.js → chunk-ss96cz1f.js} +1 -1
  173. package/web/{chunk-hn8m1vsg.js → chunk-t82sngk9.js} +7 -7
  174. package/web/chunk-tt9410zw.js +8 -0
  175. package/web/{chunk-act3rr85.js → chunk-v4cqc9f9.js} +1 -1
  176. package/web/chunk-ve8gy05p.js +1142 -0
  177. package/web/chunk-vg1ebkce.js +1 -0
  178. package/web/{chunk-k4dnjf8n.js → chunk-vk7ch6fh.js} +3 -3
  179. package/web/chunk-vnt34mkb.js +1 -0
  180. package/web/{chunk-kerfb21g.js → chunk-w28dn4dw.js} +1 -1
  181. package/web/{chunk-rdr6wt22.js → chunk-w4tfad6c.js} +4 -4
  182. package/web/{chunk-81s15c2e.js → chunk-wpxtkxjt.js} +2 -2
  183. package/web/{chunk-h24ybwp6.js → chunk-xcyqd7cn.js} +1 -1
  184. package/web/chunk-xe121vg7.js +1 -0
  185. package/web/chunk-xh4xn1az.js +1 -0
  186. package/web/{chunk-e94pd9rr.js → chunk-xk1vkcj4.js} +9 -9
  187. package/web/chunk-xrk5ewsn.js +1 -0
  188. package/web/{chunk-5g8md2wg.js → chunk-xvm66b7v.js} +4 -4
  189. package/web/{chunk-q1zxvjhs.js → chunk-xxmaqj1m.js} +2 -2
  190. package/web/chunk-xzwxcxb4.js +1 -0
  191. package/web/{chunk-xpecre7w.js → chunk-y9waq403.js} +4 -4
  192. package/web/chunk-ydhnkws0.js +1 -0
  193. package/web/{chunk-ar6jnhm5.js → chunk-yn4t5s9r.js} +1 -1
  194. package/web/chunk-ys2tns0p.js +1 -0
  195. package/web/chunk-zb61mf0a.js +1 -0
  196. package/web/{chunk-r6kk4vp1.js → chunk-ze6azq7z.js} +4 -4
  197. package/web/chunk-zh7193nq.js +2 -0
  198. package/web/chunk-zqcg6frm.js +1 -0
  199. package/web/{chunk-enwfd8d5.js → chunk-zxrbbbtp.js} +2 -2
  200. package/web/index.html +1 -1
  201. package/worker.js +1 -1
  202. package/chunk-2fyjph3f.js +0 -2
  203. package/chunk-37zystxb.js +0 -25
  204. package/chunk-3k627vf2.js +0 -3
  205. package/chunk-7er5pz7s.js +0 -479
  206. package/chunk-7g5smgjj.js +0 -2
  207. package/chunk-7m3jagqn.js +0 -2
  208. package/chunk-9c4gdg1q.js +0 -3
  209. package/chunk-b2bxqeb4.js +0 -2
  210. package/chunk-bpw6q7g0.js +0 -3
  211. package/chunk-cdw03j4t.js +0 -20
  212. package/chunk-ch1r3ted.js +0 -2
  213. package/chunk-cmwdjes8.js +0 -18
  214. package/chunk-db7ws33a.js +0 -7
  215. package/chunk-e1x629v0.js +0 -5
  216. package/chunk-j64dc767.js +0 -3
  217. package/chunk-m4bg1apa.js +0 -7
  218. package/chunk-nhm9z3d8.js +0 -2
  219. package/chunk-pnspvnyd.js +0 -2
  220. package/chunk-qnkrrwmg.js +0 -2
  221. package/chunk-r4gm8ngh.js +0 -2
  222. package/chunk-rks90mh1.js +0 -2
  223. package/chunk-t7te60m7.js +0 -2
  224. package/chunk-tv52xajf.js +0 -2
  225. package/chunk-wqqjzsjt.js +0 -3983
  226. package/chunk-xef4642x.js +0 -3
  227. package/web/chunk-04drx71p.js +0 -1
  228. package/web/chunk-0mdf1qja.js +0 -1
  229. package/web/chunk-0rdgt4jb.css +0 -1
  230. package/web/chunk-1m0kp0g3.js +0 -8
  231. package/web/chunk-3j2tcphs.js +0 -1
  232. package/web/chunk-3k9h7a73.js +0 -1142
  233. package/web/chunk-3m1bb2fw.js +0 -1
  234. package/web/chunk-55nvm2mj.js +0 -1
  235. package/web/chunk-5dkqfnh7.js +0 -2
  236. package/web/chunk-7ky5nrrr.js +0 -1
  237. package/web/chunk-8sdjgv3k.js +0 -1
  238. package/web/chunk-9bxtzwtc.js +0 -1
  239. package/web/chunk-9jy8nc4r.js +0 -1
  240. package/web/chunk-bcjgzwef.js +0 -1
  241. package/web/chunk-cxpnj495.js +0 -2
  242. package/web/chunk-d1btrqmw.js +0 -1
  243. package/web/chunk-d94t9z70.js +0 -1
  244. package/web/chunk-e68jw0bg.js +0 -1
  245. package/web/chunk-fr4fft89.js +0 -1
  246. package/web/chunk-gckmcef6.js +0 -1
  247. package/web/chunk-gnb09wmx.js +0 -1
  248. package/web/chunk-hrgqc1vr.js +0 -1
  249. package/web/chunk-j9c8fa82.js +0 -1
  250. package/web/chunk-jz5mmp64.js +0 -1
  251. package/web/chunk-kxeaj44h.js +0 -1
  252. package/web/chunk-m0136xav.js +0 -1
  253. package/web/chunk-m1rdyvb5.js +0 -1
  254. package/web/chunk-m6vyvgm5.js +0 -1
  255. package/web/chunk-my0ec787.js +0 -1
  256. package/web/chunk-nkpdd9hw.js +0 -1
  257. package/web/chunk-pbp1p5ex.js +0 -1
  258. package/web/chunk-ph75hddv.js +0 -1
  259. package/web/chunk-phdfyqaa.js +0 -1
  260. package/web/chunk-phxa5krt.js +0 -1
  261. package/web/chunk-r4zbw4zj.js +0 -2
  262. package/web/chunk-ry4ycah9.js +0 -1
  263. package/web/chunk-sqm16fat.js +0 -1
  264. package/web/chunk-tj1fn8v2.js +0 -1
  265. package/web/chunk-v0wtk059.js +0 -34
  266. package/web/chunk-v1qt3gq4.js +0 -1
  267. package/web/chunk-v854w9yn.js +0 -1
  268. package/web/chunk-ve56gxq0.js +0 -1
  269. package/web/chunk-w573ym17.js +0 -1
  270. package/web/chunk-x0mjydtp.js +0 -1
  271. package/web/chunk-zhybh04p.js +0 -1
package/ui-test-worker.js CHANGED
@@ -1,9 +1,9 @@
1
1
  // @bun
2
- import{ur,Un,C,Bn,Fn,Wn,jr,$n,mt,Vr}from"./chunk-82v8jh1h.js";import{Dn,cr}from"./chunk-7er5pz7s.js";import"./chunk-4gtgqcct.js";import"./chunk-6mges89p.js";import{i,r,Xe,Gt}from"./chunk-bwawt15q.js";var mh=r(function(FA){FA.removeLeadingAndTrailingHTTPWhitespace=(t)=>t.replace(/^[ \t\n\r]+/u,"").replace(/[ \t\n\r]+$/u,"");FA.removeTrailingHTTPWhitespace=(t)=>t.replace(/[ \t\n\r]+$/u,"");FA.isHTTPWhitespaceChar=(t)=>t===" "||t==="\t"||t===`
3
- `||t==="\r";FA.solelyContainsHTTPTokenCodePoints=(t)=>/^[-!#$%&'*+.^_`|~A-Za-z0-9]*$/u.test(t);FA.soleyContainsHTTPQuotedStringTokenCodePoints=(t)=>/^[\t\u0020-\u007E\u0080-\u00FF]*$/u.test(t);FA.asciiLowercase=(t)=>t.replace(/[A-Z]/ug,(e)=>e.toLowerCase());FA.collectAnHTTPQuotedString=(t,e)=>{let o="";e++;while(!0){while(e<t.length&&t[e]!=='"'&&t[e]!=="\\")o+=t[e],++e;if(e>=t.length)break;let s=t[e];if(++e,s==="\\"){if(e>=t.length){o+="\\";break}o+=t[e],++e}else break}return[o,e]}});var PS=r(function(z2,fS){var{asciiLowercase:Rc,solelyContainsHTTPTokenCodePoints:WA,soleyContainsHTTPQuotedStringTokenCodePoints:_A}=mh();fS.exports=class{constructor(e){this._map=e}get size(){return this._map.size}get(e){return e=Rc(String(e)),this._map.get(e)}has(e){return e=Rc(String(e)),this._map.has(e)}set(e,o){if(e=Rc(String(e)),o=String(o),!WA(e))throw Error(`Invalid MIME type parameter name "${e}": only HTTP token code points are valid.`);if(!_A(o))throw Error(`Invalid MIME type parameter value "${o}": only HTTP quoted-string token code points are valid.`);return this._map.set(e,o)}clear(){this._map.clear()}delete(e){return e=Rc(String(e)),this._map.delete(e)}forEach(e,o){this._map.forEach(e,o)}keys(){return this._map.keys()}values(){return this._map.values()}entries(){return this._map.entries()}[Symbol.iterator](){return this._map[Symbol.iterator]()}}});var ES=r(function(J2,wS){var{removeLeadingAndTrailingHTTPWhitespace:YA,removeTrailingHTTPWhitespace:AS,isHTTPWhitespaceChar:KA,solelyContainsHTTPTokenCodePoints:cg,soleyContainsHTTPQuotedStringTokenCodePoints:QA,asciiLowercase:dg,collectAnHTTPQuotedString:jA}=mh();wS.exports=(t)=>{t=YA(t);let e=0,o="";while(e<t.length&&t[e]!=="/")o+=t[e],++e;if(o.length===0||!cg(o))return null;if(e>=t.length)return null;++e;let s="";while(e<t.length&&t[e]!==";")s+=t[e],++e;if(s=AS(s),s.length===0||!cg(s))return null;let n={type:dg(o),subtype:dg(s),parameters:new Map};while(e<t.length){++e;while(KA(t[e]))++e;let l="";while(e<t.length&&t[e]!==";"&&t[e]!=="=")l+=t[e],++e;if(l=dg(l),e<t.length){if(t[e]===";")continue;++e}let a=null;if(t[e]==='"'){[a,e]=jA(t,e);while(e<t.length&&t[e]!==";")++e}else{a="";while(e<t.length&&t[e]!==";")a+=t[e],++e;if(a=AS(a),a==="")continue}if(l.length>0&&cg(l)&&QA(a)&&!n.parameters.has(l))n.parameters.set(l,a)}return n}});var vS=r(function(Z2,xS){var{solelyContainsHTTPTokenCodePoints:qA}=mh();xS.exports=(t)=>{let e=`${t.type}/${t.subtype}`;if(t.parameters.size===0)return e;for(let[o,s]of t.parameters){if(e+=";",e+=o,e+="=",!qA(s)||s.length===0)s=s.replace(/(["\\])/ug,"\\$1"),s=`"${s}"`;e+=s}return e}});var LS=r(function(tU,NS){var $A=PS(),XA=ES(),zA=vS(),{asciiLowercase:TS,solelyContainsHTTPTokenCodePoints:CS}=mh();NS.exports=class{constructor(e){e=String(e);let o=XA(e);if(o===null)throw Error(`Could not parse MIME type string "${e}"`);this._type=o.type,this._subtype=o.subtype,this._parameters=new $A(o.parameters)}static parse(e){try{return new this(e)}catch(o){return null}}get essence(){return`${this.type}/${this.subtype}`}get type(){return this._type}set type(e){if(e=TS(String(e)),e.length===0)throw Error("Invalid type: must be a non-empty string");if(!CS(e))throw Error(`Invalid type ${e}: must contain only HTTP token code points`);this._type=e}get subtype(){return this._subtype}set subtype(e){if(e=TS(String(e)),e.length===0)throw Error("Invalid subtype: must be a non-empty string");if(!CS(e))throw Error(`Invalid subtype ${e}: must contain only HTTP token code points`);this._subtype=e}get parameters(){return this._parameters}toString(){return zA(this)}isJavaScript({prohibitParameters:e=!1}={}){switch(this._type){case"text":switch(this._subtype){case"ecmascript":case"javascript":case"javascript1.0":case"javascript1.1":case"javascript1.2":case"javascript1.3":case"javascript1.4":case"javascript1.5":case"jscript":case"livescript":case"x-ecmascript":case"x-javascript":return!e||this._parameters.size===0;default:return!1}case"application":switch(this._subtype){case"ecmascript":case"javascript":case"x-ecmascript":case"x-javascript":return!e||this._parameters.size===0;default:return!1}default:return!1}}isXML(){return this._subtype==="xml"&&(this._type==="text"||this._type==="application")||this._subtype.endsWith("+xml")}isHTML(){return this._subtype==="html"&&this._type==="text"}}});var $d={};Xe($d,{PluginWebUIContext:()=>qd,SlotButton:()=>kw,useDraftReplace:()=>Lw,usePluginWebUI:()=>OS});var Lg={};Gt(Lg,{Fragment:()=>GS,jsxDEV:()=>US},{Fragment:(D5)=>GS=D5,jsxDEV:(D5)=>US=D5});var kg={};Gt(kg,{Fragment:()=>WS,jsx:()=>_S,jsxs:()=>YS},{Fragment:(B5)=>WS=B5,jsx:(B5)=>_S=B5,jsxs:(B5)=>YS=B5});var An=(t)=>globalThis.postMessage(t),lf=0,zd=new Map;function Rg(t,e){let o=lf++;return new Promise((s,n)=>{zd.set(o,{resolve:s,reject:n}),e.addEventListener("abort",()=>An({type:"cancel",id:o}),{once:!0}),An({type:"request",id:o,input:t})})}function Fg(t){let e=zd.get(t.id);if(zd.delete(t.id),t.error)e?.reject(Error(t.error));else if(t.response)e?.resolve(t.response)}var af="http://basalt.internal";function mf(t){if(!t.startsWith("/api/")||/[\\\r\n#]/.test(t)||!new URL(t,af).pathname.startsWith("/api/"))throw Error("request path must stay within /api/")}function yf(t,e){return new Promise((o,s)=>{let l=setTimeout(()=>{e.removeEventListener("abort",a),o()},t),a=()=>{clearTimeout(l),e.removeEventListener("abort",a),s(Error("Request aborted"))};e.addEventListener("abort",a,{once:!0})})}function pf(t){if(t===void 0||t===null)return;if(typeof t!=="string")throw Error("ui_test requests require a JSON string body");if(!t)return;let e=JSON.parse(t);if(!e||typeof e!=="object"||Array.isArray(e))throw Error("request body must be a JSON object");return e}function Vg(t,e){return{async request(o,s){mf(o);let n=(s?.method??"GET").toUpperCase(),l=s?.signal?AbortSignal.any([s.signal,e]):e;l.throwIfAborted();let a=`${n} ${o}`,y=t&&Object.hasOwn(t,a)?t[a]:void 0;if(y){if(await yf(y.delayMs??0,l),l.throwIfAborted(),y.status<200||y.status>=300)throw Error(`Request failed (${y.status})`);return structuredClone(y.body)}let u=await Rg({path:o,method:n,body:pf(s?.body)},l);if(l.throwIfAborted(),u.status<200||u.status>=300)throw Error(`Request failed (${u.status})`);if(u.truncated)throw Error("API response exceeds ui_test response limit");return JSON.parse(u.body)}}}function Dg(t,e){let o=t.ownerDocument;function s(E){for(let R=E;R;R=R.parentElement){if(R.hasAttribute("hidden")||R.getAttribute("aria-hidden")==="true")return!1;let H=e.getComputedStyle(R);if(H.display==="none"||H.visibility==="hidden")return!1}return!0}function n(E){let R=E.getAttribute("aria-label");if(R!==null)return R;let H=E.getAttribute("aria-labelledby");if(H)return H.split(/\s+/).map((pt)=>o.getElementById(pt)?.textContent??"").join(" ");if("labels"in E){let pt=Array.from(E.labels??[]);if(pt.length)return pt.map((gt)=>gt.textContent).join(" ")}return E.textContent??""}function l(E){return E.hasAttribute("disabled")||E.getAttribute("aria-disabled")==="true"}function a(E){let R=[],H=o.createTreeWalker(E,4);while(H.nextNode()){let pt=H.currentNode,gt=pt?.parentElement;if(gt&&!gt.closest("script,style,textarea")&&s(gt))R.push(pt?.textContent??"")}return R.join(" ").replace(/\s+/g," ").trim()}function y(){return Array.from(t.querySelectorAll("button,[role=button]")).filter(s).map((E)=>({name:n(E).trim(),disabled:l(E),busy:E.getAttribute("aria-busy")==="true"}))}function u(){return Array.from(t.querySelectorAll("input,textarea,select")).filter((E)=>E instanceof e.HTMLInputElement||E instanceof e.HTMLTextAreaElement||E instanceof e.HTMLSelectElement).filter(s).map((E)=>({label:n(E).trim(),value:E.value}))}function c(E=t,R=!0){let H=a(E),pt=y(),gt=u();if(!R)return{text:H,buttons:pt,values:gt,truncated:!1};let Rt=new TextEncoder().encode(H);return{text:new TextDecoder().decode(Rt.slice(0,2048),{stream:!0}),buttons:pt.slice(0,50),values:gt.slice(0,50),truncated:Rt.length>2048||pt.length>50||gt.length>50}}function d(E,R){let H=Array.from(t.querySelectorAll(E)).filter((pt)=>pt instanceof e.HTMLElement).filter((pt)=>s(pt)&&n(pt).trim()===R);if(H.length!==1||!H[0])throw Error(`Expected one control named ${JSON.stringify(R)}, found ${H.length}`);return H[0]}function g(E){let R=Array.from(t.querySelectorAll(E)).filter(s),H=R[0];if(R.length!==1||!(H instanceof e.HTMLElement))throw Error(`Expected one visible element for ${E}, found ${R.length}`);return H}function f(E,R){let H=200,pt=(gt,Rt)=>{H--;let lt=[];if(Rt<R)for(let dt of gt.children){if(!H)break;lt.push(pt(dt,Rt+1))}return{tag:gt.tagName.toLowerCase(),role:gt.getAttribute("role"),class:gt.className,text:Array.from(gt.childNodes).filter((dt)=>dt.nodeType===3).map((dt)=>dt.textContent).join(" ").trim(),childCount:gt.children.length,children:lt}};return pt(E,0)}return{visible:s,isDisabled:l,snapshot:c,findByName:d,selectOne:g,outline:f,count:(E)=>t.querySelectorAll(E).length,anyVisible:(E)=>Array.from(t.querySelectorAll(E)).some(s)}}var ci=Symbol("abort"),Me=Symbol("activeElement"),Pt=Symbol("asyncTaskManager"),di=Symbol("bodyBuffer"),Nt=Symbol("buffer"),qo=Symbol("cachedResponse"),bi=Symbol("callbacks"),wn=Symbol("checked"),Ns=Symbol("childNodes"),ir=Symbol("children"),Aa=Symbol("classList"),Zr=Symbol("connectedToNode"),Bi=Symbol("disconnectedFromNode"),sr=Symbol("connectedToDocument"),nr=Symbol("disconnectedFromDocument"),xl=Symbol("contentLength"),xe=Symbol("contentType"),fr=Symbol("cssText"),Oo=Symbol("currentScript"),Go=Symbol("currentTarget"),Kt=Symbol("data"),Lr=Symbol("defaultView"),At=Symbol("destroy"),En=Symbol("dirtyness"),Y=Symbol("end"),ze=Symbol("entries"),oE=Symbol("evaluateCSS"),Uo=Symbol("evaluateScript"),to=Symbol("exceptionObserver"),Ut=Symbol("formNode"),xn=Symbol("internalId"),F=Symbol("height"),Ls=Symbol("immediatePropagationStopped"),vn=Symbol("indeterminate"),ks=Symbol("isFirstWrite"),Ms=Symbol("isFirstWriteAfterOpen"),wa=Symbol("isInPassiveEventListener"),eo=Symbol("isValue"),Is=Symbol("listenerOptions"),he=Symbol("listeners"),Wr=Symbol("itemsByName"),Rs=Symbol("nextActiveElement"),vl=Symbol("observeMutations"),ro=Symbol("mutationListeners"),x=Symbol("ownerDocument"),xt=Symbol("ownerElement"),Fs=Symbol("propagationStopped"),Eo=Symbol("readyStateManager"),Pr=Symbol("referrer"),gi=Symbol("registry"),oo=Symbol("relList"),Ea=Symbol("resetSelection"),ve=Symbol("rootNode"),Ie=Symbol("selectNode"),Ar=Symbol("selectedness"),Tn=Symbol("selection"),Tm=Symbol("setupVMContext"),be=Symbol("shadowRoot"),O=Symbol("start"),ge=Symbol("style"),wr=Symbol("target"),Je=Symbol("textAreaNode"),xa=Symbol("unobserveMutations"),Oi=Symbol("reportMutation"),Cn=Symbol("updateSelectedness"),Pe=Symbol("url"),q=Symbol("value"),V=Symbol("width"),m=Symbol("window"),vh=Symbol("windowResizeListener"),Nn=Symbol("mutationObservers"),io=Symbol("openerFrame"),Si=Symbol("openerWindow"),Cm=Symbol("pointerCaptures"),Ln=Symbol("popup"),tt=Symbol("isConnected"),W=Symbol("parentNode"),D=Symbol("nodeType"),z=Symbol("tagName"),Ft=Symbol("prefix"),Jd=Symbol("scrollHeight"),Zd=Symbol("scrollWidth"),Th=Symbol("scrollTop"),Ch=Symbol("scrollLeft"),St=Symbol("attributes"),va=Symbol("attributesProxy"),J=Symbol("namespaceURI"),Ta=Symbol("accessKey"),iE=Symbol("accessKeyLabel"),tb=Symbol("offsetHeight"),eb=Symbol("offsetWidth"),rb=Symbol("offsetLeft"),ob=Symbol("offsetTop"),ib=Symbol("clientHeight"),sb=Symbol("clientWidth"),nb=Symbol("clientLeft"),lb=Symbol("clientTop"),rt=Symbol("name"),Nm=Symbol("specified"),Vs=Symbol("adoptedStyleSheets"),Nh=Symbol("implementation"),kn=Symbol("readyState"),Ds=Symbol("publicId"),Bs=Symbol("systemId"),Ce=Symbol("validationMessage"),Ke=Symbol("validity"),Lh=Symbol("returnValue"),Gi=Symbol("elements"),sE=Symbol("length"),ab=Symbol("complete"),mb=Symbol("naturalHeight"),yb=Symbol("naturalWidth"),Bg=Symbol("loading"),k=Symbol("x"),M=Symbol("y"),nE=Symbol("defaultChecked"),$o=Symbol("files"),Be=Symbol("sheet"),kh=Symbol("volume"),Tl=Symbol("paused"),Mh=Symbol("currentTime"),Ih=Symbol("playbackRate"),Rh=Symbol("defaultPlaybackRate"),Ca=Symbol("muted"),Cl=Symbol("defaultMuted"),Fh=Symbol("preservesPitch"),pb=Symbol("buffered"),ub=Symbol("duration"),Qe=Symbol("error"),hb=Symbol("ended"),cb=Symbol("networkState"),Vh=Symbol("textTracks"),db=Symbol("seeking"),bb=Symbol("seekable"),gb=Symbol("played"),Ui=Symbol("options"),so=Symbol("content"),Ee=Symbol("mode"),Mn=Symbol("host"),_r=Symbol("setURL"),ot=Symbol("localName"),Na=Symbol("classRegistry"),Lm=Symbol("nodeStream"),no=Symbol("location"),Oe=Symbol("history"),Dh=Symbol("navigator"),Bh=Symbol("screen"),Oh=Symbol("sessionStorage"),Gh=Symbol("localStorage"),km=Symbol("sandbox"),ct=Symbol("cloneNode"),Et=Symbol("appendChild"),hr=Symbol("removeChild"),kr=Symbol("insertBefore"),La=Symbol("replaceChild"),fi=Symbol("tracks"),ka=Symbol("constraints"),Pi=Symbol("capabilities"),In=Symbol("settings"),lE=Symbol("clone"),Os=Symbol("removeNamedItem"),Q=Symbol("items"),Rn=Symbol("selectedOptions"),dr=Symbol("styleNode"),Vn=Symbol("updateSheet"),Mr=Symbol("clearCache"),Re=Symbol("onSetAttribute"),br=Symbol("onRemoveAttribute"),_=Symbol("nodeArray"),bt=Symbol("elementArray"),U=Symbol("cache"),He=Symbol("affectsCache"),Ma=Symbol("forms"),Xo=Symbol("affectsComputedStyleCache"),Nl=Symbol("query"),Ll=Symbol("computedStyle"),lo=Symbol("getFormControlItems"),Mm=Symbol("getFormControlNamedItem"),Uh=Symbol("dataset"),aE=Symbol("getNamespaceItemKey"),mE=Symbol("getNamedItemKey"),Ai=Symbol("itemsByNamespaceURI"),Vt=Symbol("proxy"),zo=Symbol("setNamedItem"),Er=Symbol("getTokenList"),Gs=Symbol("attributeName"),Ho=Symbol("selectedIndex"),On=Symbol("self"),ao=Symbol("parent"),Jo=Symbol("top"),Im=Symbol("areas"),mo=Symbol("defaultValue"),wi=Symbol("elementIdMap"),Gn=Symbol("clonable"),kl=Symbol("delegatesFocus"),Hi=Symbol("serializable"),Ei=Symbol("slotAssignment"),Wi=Symbol("assignedNodes"),Zo=Symbol("assignedToSlot"),Rm=Symbol("cells"),Fm=Symbol("rows"),Hh=Symbol("headers"),Vm=Symbol("tBodies"),Ia=Symbol("track"),Dm=Symbol("controlsList"),Wh=Symbol("mediaKeys"),Sb=Symbol("remote"),_h=Symbol("sinkId"),Yh=Symbol("srcObject"),Ml=Symbol("cues"),fb=Symbol("activeCues"),xo=Symbol("kind"),Us=Symbol("label"),Il=Symbol("language"),Bm=Symbol("id"),h=Symbol("illegalConstructor"),Pb=Symbol("state"),Om=Symbol("canvas"),Hn=Symbol("popoverTargetElement"),Gm=Symbol("composed"),Hs=Symbol("bubbles"),_i=Symbol("cancelable"),lr=Symbol("defaultPrevented"),xr=Symbol("eventPhase"),Ab=Symbol("timeStamp"),Qt=Symbol("type"),Um=Symbol("detail"),yE=Symbol("globalObject"),Hm=Symbol("destroyed"),Se=Symbol("aborted"),Wm=Symbol("browserFrames"),Kh=Symbol("windowInternalId"),K=Symbol("getItemList"),Yi=Symbol("requiredExtensions"),Ki=Symbol("systemLanguage"),_m=Symbol("transform"),se=Symbol("baseVal"),ne=Symbol("animVal"),Ym=Symbol("pathLength"),pE=Symbol("unitType"),Qi=Symbol("viewBox"),Km=Symbol("markerUnits"),Qm=Symbol("markerWidth"),jm=Symbol("markerHeight"),Ze=Symbol("values"),qm=Symbol("orientType"),$m=Symbol("orientAngle"),Xm=Symbol("refX"),zm=Symbol("refY"),j=Symbol("readOnly"),ar=Symbol("preserveAspectRatio"),ji=Symbol("animatedPoints"),qi=Symbol("points"),$i=Symbol("rx"),Xi=Symbol("ry"),yo=Symbol("cx"),po=Symbol("cy"),zi=Symbol("r"),Jm=Symbol("clipPathUnits"),Zm=Symbol("maskUnits"),ty=Symbol("maskContentUnits"),ey=Symbol("filterUnits"),ry=Symbol("primitiveUnits"),Lt=Symbol("href"),Ji=Symbol("x1"),Zi=Symbol("y1"),ts=Symbol("x2"),es=Symbol("y2"),oy=Symbol("gradientUnits"),iy=Symbol("gradientTransform"),sy=Symbol("spreadMethod"),ny=Symbol("patternUnits"),ly=Symbol("patternContentUnits"),ay=Symbol("patternTransform"),my=Symbol("fx"),yy=Symbol("fy"),rs=Symbol("offset"),_n=Symbol("disabled"),py=Symbol("textLength"),uy=Symbol("lengthAdjust"),v=Symbol("getAttribute"),A=Symbol("setAttribute"),Ir=Symbol("z"),Rl=Symbol("w"),hy=Symbol("toArray"),Fl=Symbol("fromString"),vo=Symbol("fromArray"),uE=Symbol("angle"),kt=Symbol("m11"),Dt=Symbol("m12"),zt=Symbol("m13"),Jt=Symbol("m14"),Mt=Symbol("m21"),Bt=Symbol("m22"),Zt=Symbol("m23"),te=Symbol("m24"),Wt=Symbol("m31"),jt=Symbol("m32"),qt=Symbol("m33"),_t=Symbol("m34"),It=Symbol("m41"),Ot=Symbol("m42"),$t=Symbol("m43"),Xt=Symbol("m44"),Ra=Symbol("setMatrixValue"),To=Symbol("translateSelf"),Ws=Symbol("rotateSelf"),_s=Symbol("rotateAxisAngleSelf"),os=Symbol("scaleSelf"),cy=Symbol("scale3dSelf"),dy=Symbol("scaleNonUniformSelf"),Vl=Symbol("skewXSelf"),Dl=Symbol("skewYSelf"),Co=Symbol("multiplySelf"),Ys=Symbol("matrix"),hE=Symbol("domMatrix"),Ne=Symbol("getDOMMatrix"),gr=Symbol("setDOMMatrix"),I=Symbol("attributeValue"),by=Symbol("startOffset"),Ks=Symbol("method"),gy=Symbol("spacing"),at=Symbol("in1"),uo=Symbol("in2"),Z=Symbol("result"),Sy=Symbol("bias"),fy=Symbol("divisor"),is=Symbol("edgeMode"),Py=Symbol("kernelMatrix"),ho=Symbol("kernelUnitLengthX"),co=Symbol("kernelUnitLengthY"),Ay=Symbol("orderX"),wy=Symbol("orderY"),Ey=Symbol("preserveAlpha"),xy=Symbol("targetX"),vy=Symbol("targetY"),Ty=Symbol("diffuseConstant"),ss=Symbol("surfaceScale"),Cy=Symbol("scale"),Ny=Symbol("xChannelSelector"),Ly=Symbol("yChannelSelector"),ky=Symbol("azimuth"),My=Symbol("elevation"),bo=Symbol("dx"),go=Symbol("dy"),ns=Symbol("stdDeviationX"),ls=Symbol("stdDeviationY"),Iy=Symbol("tableValues"),Ry=Symbol("slope"),Fy=Symbol("intercept"),Vy=Symbol("amplitude"),Dy=Symbol("exponent"),Og=Symbol("crossOrigin"),By=Symbol("operator"),Oy=Symbol("radiusX"),Gy=Symbol("radiusY"),Uy=Symbol("specularConstant"),as=Symbol("specularExponent"),Hy=Symbol("pointsAtX"),Wy=Symbol("pointsAtY"),_y=Symbol("pointsAtZ"),Yy=Symbol("limitingConeAngle"),Ky=Symbol("baseFrequencyX"),Qy=Symbol("baseFrequencyY"),jy=Symbol("numOctaves"),qy=Symbol("seed"),$y=Symbol("stitchTiles"),Xy=Symbol("rotateFromVectorSelf"),zy=Symbol("flipXSelf"),Jy=Symbol("flipYSelf"),Zy=Symbol("invertSelf"),wb=Symbol("getLength"),Qh=Symbol("currentScale"),tp=Symbol("rotate"),Eb=Symbol("bindMethods"),Yn=Symbol("xmlProcessingInstruction"),cE=Symbol("root"),Wo=Symbol("filterNode"),Qs=Symbol("customElementReactionStack"),Kn=Symbol("dispatching"),ms=Symbol("modules"),Rr=Symbol("preloads"),js=Symbol("body"),jh=Symbol("redirect"),Fa=Symbol("referrerPolicy"),qh=Symbol("signal"),xi=Symbol("bodyUsed"),$h=Symbol("credentials"),ep=Symbol("blocking"),Bl=Symbol("moduleImportMap"),le=Symbol("dispatchError"),Xh=Symbol("supports"),No=Symbol("reason"),p=Symbol("propertyEventListeners"),We=Symbol("cssRules"),qs=Symbol("parentRule"),Lo=Symbol("parentStyleSheet"),So=Symbol("conditionText"),ys=Symbol("keyText"),xb=Symbol("media"),rp=Symbol("styleMap"),Ol=Symbol("selectorText"),Gl=Symbol("cssParser"),$s=Symbol("cssRule"),Fr=Symbol("rulePrefix"),Yr=Symbol("virtualServerFile"),vb=Symbol("frames"),Xs=Symbol("disableEvaluation"),Tb=Symbol("validateJavaScriptExecutionEnvironment"),dE=Symbol("currentNode"),Qn=Symbol("openWebSockets"),vr=Symbol("webSocket"),Va=Symbol("moduleCache");var Cb;(function(t){t.strict="Strict",t.lax="Lax",t.none="None"})(Cb||(Cb={}));var zs=Cb;var zh={key:null,originURL:null,value:null,domain:"",path:"",expires:null,httpOnly:!1,secure:!1,sameSite:zs.lax};class op{static hasExpired(t){return t.expires&&t.expires.getTime()<Date.now()}}class Jh{static cookieMatchesURL(t,e){let o=e.hostname==="localhost"||e.hostname?.endsWith(".localhost");return(!t.secure||e.protocol==="https:"||o)&&(!t.domain||e.hostname?.endsWith(t.domain))&&(!t.path||e.pathname?.startsWith(t.path))&&(t.sameSite===zs.none&&t.secure||t.originURL?.hostname===e.hostname)}}class ip{#t=[];addCookies(t){let e=new Map,o=(s)=>`${s.key}-${s.originURL.hostname}-${s.path}-${typeof s.value}`;for(let s=0,n=this.#t.length;s<n;s++)e.set(o(this.#t[s]),s);for(let s of t){let n=Object.assign({},zh,s);if(n&&n.key&&n.originURL){let l=e.get(o(n));if(l!==void 0)this.#t.splice(l,1);if(!op.hasExpired(n))e.set(o(n),this.#t.length),this.#t.push(n)}}}getCookies(t=null,e=!1){let o=[];for(let s of this.#t)if(!op.hasExpired(s)&&(!e||!s.httpOnly)&&(!t||Jh.cookieMatchesURL(s,t)))o.push(s);return o}clearCookies(){this.#t=[]}}var Nb;(function(t){t.fresh="fresh",t.stale="stale"})(Nb||(Nb={}));var jn=Nb;var Lb;(function(t){t.invalidStateError="InvalidStateError",t.indexSizeError="IndexSizeError",t.syntaxError="SyntaxError",t.hierarchyRequestError="HierarchyRequestError",t.notSupportedError="NotSupportedError",t.wrongDocumentError="WrongDocumentError",t.invalidNodeTypeError="InvalidNodeTypeError",t.invalidCharacterError="InvalidCharacterError",t.notFoundError="NotFoundError",t.securityError="SecurityError",t.networkError="NetworkError",t.domException="DOMException",t.invalidAccessError="InvalidAccessError",t.unknownError="UnknownError",t.abortError="AbortError",t.timeoutError="TimeoutError",t.encodingError="EncodingError",t.uriMismatchError="URIMismatchError",t.inUseAttributeError="InUseAttributeError",t.namespaceError="NamespaceError"})(Lb||(Lb={}));var w=Lb;class re extends Error{constructor(t,e=null){super(t);this.name=e||w.domException}}class vi{[ze]={};constructor(t){if(t)if(t instanceof vi)this[ze]=JSON.parse(JSON.stringify(t[ze]));else if(Array.isArray(t))for(let e of t){if(e.length!==2)throw new re('Failed to construct "Headers": The provided init is not a valid array.',w.invalidStateError);this.append(e[0],e[1])}else for(let e of Object.keys(t))this.set(e,t[e])}append(t,e){let o=t.toLowerCase();if(this[ze][o])this[ze][o].value.push(e);else this[ze][o]={name:t,value:[e]}}delete(t){delete this[ze][t.toLowerCase()]}get(t){return this[ze][t.toLowerCase()]?.value.join(", ")??null}set(t,e){this[ze][t.toLowerCase()]={name:t,value:[e]}}getSetCookie(){let t=this[ze]["set-cookie"];if(!t)return[];return t.value}has(t){return!!this[ze][t.toLowerCase()]}forEach(t,e){let o=e??this[m];for(let s of Object.values(this[ze]))t.call(o,s.value.join(", "),s.name,this)}*keys(){for(let t of Object.values(this[ze]))yield t.name}*values(){for(let t of Object.values(this[ze]))yield t.value.join(", ")}*entries(){for(let t of Object.values(this[ze]))yield[t.name,t.value.join(", ")]}*[Symbol.iterator](){for(let t of Object.values(this[ze]))yield[t.name,t.value.join(", ")]}}import Da from"fs";import Ba from"path";import uf from"crypto";class Zh{#t=new Set;#e=new Set;#r;constructor(t){this.#r=t}async load(t){if(!t)throw Error("Failed to execute 'load' on 'ResponseCacheFileSystem': Directory is not specified.");let e=Ba.resolve(t),o=[];try{o=await Da.promises.readdir(e)}catch(l){return}let s=[],n=this.#r;for(let l of o)if(l.endsWith(".json"))s.push(Da.promises.readFile(Ba.join(e,l),"utf8").then((a)=>{let y=JSON.parse(a);if(y.response&&y.request&&!y.virtual)return y.response.headers=new vi(y.response.headers),y.request.headers=new vi(y.request.headers),Da.promises.readFile(Ba.join(e,l.split(".")[0]+".data")).then((u)=>{y.response.body=u;let c=n.get(y.response.url);if(!c)c=[],n.set(y.response.url,c);c.push(y)}).catch(()=>{let u=n.get(y.response.url);if(!u)u=[],n.set(y.response.url,u);u.push(y)})}).catch(()=>{}));await Promise.all(s)}async save(t){if(!t)throw Error("Failed to execute 'store' on 'ResponseCacheFileSystem': Directory is not specified.");if(!this.#r.size)return;let e=Ba.resolve(t);if(!this.#t.has(e)){this.#t.add(e);try{await Da.promises.mkdir(e,{recursive:!0})}catch(l){}}let s=this.#r,n=[];for(let l of s.values())for(let a of l)if(!a.virtual){let y={},u={};for(let[f,E]of a.response.headers.entries())y[f]=E;for(let[f,E]of a.request.headers.entries())u[f]=E;let c={...a,response:{...a.response,headers:y,body:null},request:{...a.request,headers:u}},d=JSON.stringify(c,null,3),g=uf.createHash("md5").update(d).digest("hex");if(!this.#e.has(g)){if(this.#e.add(g),n.push(Da.promises.writeFile(Ba.join(e,`${g}.json`),d)),a.response.body)n.push(Da.promises.writeFile(Ba.join(e,`${g}.data`),a.response.body))}}await Promise.all(n)}}var hf=["Cache-Control","Last-Modified","Vary","ETag"];class sp{fileSystem;#t=new Map;constructor(){this.fileSystem=new Zh(this.#t)}get(t){if(t.headers.get("Cache-Control")?.includes("no-cache"))return null;let e=t.url,o=this.#t.get(e);if(o)for(let s=0,n=o.length;s<n;s++){let l=o[s],a=l.request.method===t.method;if(a)for(let y of Object.keys(l.vary)){let u=t.headers.get(y);if(u!==null&&l.vary[y]!==u){a=!1;break}}if(a){if(l.expires&&l.expires<Date.now()){if(l.lastModified)l.state=jn.stale;else if(!l.etag)return o.splice(s,1),null}return l}}return null}add(t,e){if(t.method!=="GET"&&t.method!=="HEAD"||t.headers.get("Cache-Control")?.includes("no-cache"))return null;let o=t.url,s=this.get(t);if(e.status===304){if(!s)throw Error("ResponseCache: Cached response not found.");for(let n of hf)if(e.headers.has(n))s.response.headers.set(n,e.headers.get(n));s.cacheUpdateTime=Date.now(),s.state=jn.fresh}else{if(s){let l=this.#t.get(o);if(l){let a=l.indexOf(s);if(a!==-1)l.splice(a,1)}}s={response:{status:e.status,statusText:e.statusText,url:e.url,headers:new vi(e.headers),waitingForBody:e.waitingForBody,body:e.body??null},request:{headers:t.headers,method:t.method},vary:{},expires:null,etag:null,cacheUpdateTime:Date.now(),lastModified:null,mustRevalidate:!1,staleWhileRevalidate:!1,state:jn.fresh,virtual:e.virtual??!1};let n=this.#t.get(o);if(!n)n=[],this.#t.set(o,n);n.push(s)}if(e.headers.has("Cache-Control")){let n=e.headers.get("Age");for(let l of e.headers.get("Cache-Control").split(",")){let[a,y]=l.trim().split("=");switch(a){case"max-age":s.expires=Date.now()+parseFloat(y)*1000-(n?parseFloat(n)*1000:0);break;case"no-cache":case"no-store":let u=this.#t.get(o);if(u){let c=u.indexOf(s);if(c!==-1)u.splice(c,1)}return null;case"must-revalidate":s.mustRevalidate=!0;break;case"stale-while-revalidate":s.staleWhileRevalidate=!0;break}}}if(e.headers.has("Last-Modified"))s.lastModified=Date.parse(e.headers.get("Last-Modified"));if(e.headers.has("Vary"))for(let n of e.headers.get("Vary").split(",")){let l=n.trim(),a=t.headers.get(l);if(a)s.vary[l]=a}if(e.headers.has("ETag"))s.etag=e.headers.get("ETag");if(!s.expires){let n=e.headers.get("Expires");if(n)s.expires=Date.parse(n)}if(!s.etag&&(!s.expires||s.expires<Date.now())){let n=this.#t.get(o);if(n){let l=n.indexOf(s);if(l!==-1)n.splice(l,1)}return null}return s}clear(t){if(t){if(t.toTime)for(let e of t.url?[t.url]:this.#t.keys()){let o=this.#t.get(e);if(o){for(let s=0,n=o.length;s<n;s++)if(o[s].cacheUpdateTime<t.toTime)o.splice(s,1),s--,n--}}else if(t.url)this.#t.delete(t.url)}else this.#t.clear()}}var kb;(function(t){t[t.log=0]="log",t[t.info=1]="info",t[t.warn=2]="warn",t[t.error=3]="error"})(kb||(kb={}));var mr=kb;var Mb;(function(t){t[t.elementNode=1]="elementNode",t[t.attributeNode=2]="attributeNode",t[t.textNode=3]="textNode",t[t.cdataSectionNode=4]="cdataSectionNode",t[t.commentNode=8]="commentNode",t[t.documentNode=9]="documentNode",t[t.documentTypeNode=10]="documentTypeNode",t[t.documentFragmentNode=11]="documentFragmentNode",t[t.processingInstructionNode=7]="processingInstructionNode"})(Mb||(Mb={}));var T=Mb;var Ib;(function(t){t[t.none=0]="none",t[t.capturing=1]="capturing",t[t.atTarget=2]="atTarget",t[t.bubbling=3]="bubbling"})(Ib||(Ib={}));var ae=Ib;class N{static NONE=ae.none;static CAPTURING_PHASE=ae.capturing;static AT_TARGET=ae.atTarget;static BUBBLING_PHASE=ae.bubbling;NONE=N.NONE;CAPTURING_PHASE=N.CAPTURING_PHASE;AT_TARGET=N.AT_TARGET;BUBBLING_PHASE=N.BUBBLING_PHASE;[Gm]=!1;[Hs]=!1;[_i]=!1;[lr]=!1;[xr]=ae.none;[Ab]=performance.now();[Qt];[Kn]=!1;[Ls]=!1;[Fs]=!1;[wr]=null;[Go]=null;[wa]=!1;constructor(t,e=null){this[Qt]=t,this[Hs]=e?.bubbles??!1,this[_i]=e?.cancelable??!1,this[Gm]=e?.composed??!1}get composed(){return this[Gm]}get bubbles(){return this[Hs]}get cancelable(){return this[_i]}get defaultPrevented(){return this[lr]}get eventPhase(){return this[xr]}get timeStamp(){return this[Ab]}get type(){return this[Qt]}get target(){return this[wr]}get currentTarget(){return this[Go]}get cancelBubble(){return this[Fs]}composedPath(){if(!this[wr])return[];let t=[],e=this[wr];while(e)if(t.push(e),e.parentNode)e=e.parentNode;else if(this[Gm]&&e[D]===T.documentFragmentNode&&e.host)e=e.host;else if(e[D]===T.documentNode&&this[Qt]!=="load")e=e[m];else break;return t}initEvent(t,e=!1,o=!1){this[Qt]=t,this[Hs]=e,this[_i]=o,this[Fs]=!1,this[Ls]=!1,this[lr]=!1}preventDefault(){if(!this[wa]&&this.cancelable)this[lr]=!0}stopImmediatePropagation(){this[Ls]=!0}stopPropagation(){this[Fs]=!0}}var Rb;(function(t){t.log="log",t.table="table",t.trace="trace",t.dir="dir",t.dirxml="dirxml",t.group="group",t.groupCollapsed="groupCollapsed",t.debug="debug",t.timeLog="timeLog",t.info="info",t.count="count",t.timeEnd="timeEnd",t.warn="warn",t.countReset="countReset",t.error="error",t.assert="assert"})(Rb||(Rb={}));var Fe=Rb;class tc{static toString(t){if(this.isLogEntryCollapsed(t))return"";let e=this.getLogEntryGroupTabbing(t),o=e;for(let s of t.message)if(o+=o!==""&&o!==e?" ":"",typeof s==="object"&&(s===null||s.constructor.name==="Object"||Array.isArray(s)))try{o+=JSON.stringify(s)}catch(n){o+=Error("Failed to JSON stringify object in log entry.").stack.replace(/\n at/gm,`
2
+ import{gr,Vn,M,Kn,Qn,Xn,en,Jn,gt,tn}from"./chunk-xvm0y99b.js";import{jn,fr}from"./chunk-sgrrxsnz.js";import"./chunk-edbq461k.js";import"./chunk-44a7f5ta.js";import{i,r,Ze,Kt}from"./chunk-ydzag81d.js";var mh=r(function(FA){FA.removeLeadingAndTrailingHTTPWhitespace=(t)=>t.replace(/^[ \t\n\r]+/u,"").replace(/[ \t\n\r]+$/u,"");FA.removeTrailingHTTPWhitespace=(t)=>t.replace(/[ \t\n\r]+$/u,"");FA.isHTTPWhitespaceChar=(t)=>t===" "||t==="\t"||t===`
3
+ `||t==="\r";FA.solelyContainsHTTPTokenCodePoints=(t)=>/^[-!#$%&'*+.^_`|~A-Za-z0-9]*$/u.test(t);FA.soleyContainsHTTPQuotedStringTokenCodePoints=(t)=>/^[\t\u0020-\u007E\u0080-\u00FF]*$/u.test(t);FA.asciiLowercase=(t)=>t.replace(/[A-Z]/ug,(e)=>e.toLowerCase());FA.collectAnHTTPQuotedString=(t,e)=>{let o="";e++;while(!0){while(e<t.length&&t[e]!=='"'&&t[e]!=="\\")o+=t[e],++e;if(e>=t.length)break;let s=t[e];if(++e,s==="\\"){if(e>=t.length){o+="\\";break}o+=t[e],++e}else break}return[o,e]}});var PS=r(function(z2,fS){var{asciiLowercase:Rc,solelyContainsHTTPTokenCodePoints:WA,soleyContainsHTTPQuotedStringTokenCodePoints:_A}=mh();fS.exports=class{constructor(e){this._map=e}get size(){return this._map.size}get(e){return e=Rc(String(e)),this._map.get(e)}has(e){return e=Rc(String(e)),this._map.has(e)}set(e,o){if(e=Rc(String(e)),o=String(o),!WA(e))throw Error(`Invalid MIME type parameter name "${e}": only HTTP token code points are valid.`);if(!_A(o))throw Error(`Invalid MIME type parameter value "${o}": only HTTP quoted-string token code points are valid.`);return this._map.set(e,o)}clear(){this._map.clear()}delete(e){return e=Rc(String(e)),this._map.delete(e)}forEach(e,o){this._map.forEach(e,o)}keys(){return this._map.keys()}values(){return this._map.values()}entries(){return this._map.entries()}[Symbol.iterator](){return this._map[Symbol.iterator]()}}});var ES=r(function(J2,wS){var{removeLeadingAndTrailingHTTPWhitespace:YA,removeTrailingHTTPWhitespace:AS,isHTTPWhitespaceChar:KA,solelyContainsHTTPTokenCodePoints:cg,soleyContainsHTTPQuotedStringTokenCodePoints:QA,asciiLowercase:dg,collectAnHTTPQuotedString:jA}=mh();wS.exports=(t)=>{t=YA(t);let e=0,o="";while(e<t.length&&t[e]!=="/")o+=t[e],++e;if(o.length===0||!cg(o))return null;if(e>=t.length)return null;++e;let s="";while(e<t.length&&t[e]!==";")s+=t[e],++e;if(s=AS(s),s.length===0||!cg(s))return null;let n={type:dg(o),subtype:dg(s),parameters:new Map};while(e<t.length){++e;while(KA(t[e]))++e;let l="";while(e<t.length&&t[e]!==";"&&t[e]!=="=")l+=t[e],++e;if(l=dg(l),e<t.length){if(t[e]===";")continue;++e}let a=null;if(t[e]==='"'){[a,e]=jA(t,e);while(e<t.length&&t[e]!==";")++e}else{a="";while(e<t.length&&t[e]!==";")a+=t[e],++e;if(a=AS(a),a==="")continue}if(l.length>0&&cg(l)&&QA(a)&&!n.parameters.has(l))n.parameters.set(l,a)}return n}});var vS=r(function(Z2,xS){var{solelyContainsHTTPTokenCodePoints:qA}=mh();xS.exports=(t)=>{let e=`${t.type}/${t.subtype}`;if(t.parameters.size===0)return e;for(let[o,s]of t.parameters){if(e+=";",e+=o,e+="=",!qA(s)||s.length===0)s=s.replace(/(["\\])/ug,"\\$1"),s=`"${s}"`;e+=s}return e}});var LS=r(function(tU,NS){var $A=PS(),XA=ES(),zA=vS(),{asciiLowercase:TS,solelyContainsHTTPTokenCodePoints:CS}=mh();NS.exports=class{constructor(e){e=String(e);let o=XA(e);if(o===null)throw Error(`Could not parse MIME type string "${e}"`);this._type=o.type,this._subtype=o.subtype,this._parameters=new $A(o.parameters)}static parse(e){try{return new this(e)}catch(o){return null}}get essence(){return`${this.type}/${this.subtype}`}get type(){return this._type}set type(e){if(e=TS(String(e)),e.length===0)throw Error("Invalid type: must be a non-empty string");if(!CS(e))throw Error(`Invalid type ${e}: must contain only HTTP token code points`);this._type=e}get subtype(){return this._subtype}set subtype(e){if(e=TS(String(e)),e.length===0)throw Error("Invalid subtype: must be a non-empty string");if(!CS(e))throw Error(`Invalid subtype ${e}: must contain only HTTP token code points`);this._subtype=e}get parameters(){return this._parameters}toString(){return zA(this)}isJavaScript({prohibitParameters:e=!1}={}){switch(this._type){case"text":switch(this._subtype){case"ecmascript":case"javascript":case"javascript1.0":case"javascript1.1":case"javascript1.2":case"javascript1.3":case"javascript1.4":case"javascript1.5":case"jscript":case"livescript":case"x-ecmascript":case"x-javascript":return!e||this._parameters.size===0;default:return!1}case"application":switch(this._subtype){case"ecmascript":case"javascript":case"x-ecmascript":case"x-javascript":return!e||this._parameters.size===0;default:return!1}default:return!1}}isXML(){return this._subtype==="xml"&&(this._type==="text"||this._type==="application")||this._subtype.endsWith("+xml")}isHTML(){return this._subtype==="html"&&this._type==="text"}}});var $d={};Ze($d,{PluginWebUIContext:()=>qd,SlotButton:()=>kw,useDraftReplace:()=>Lw,usePluginWebUI:()=>OS});var Lg={};Kt(Lg,{Fragment:()=>GS,jsxDEV:()=>US},{Fragment:(D5)=>GS=D5,jsxDEV:(D5)=>US=D5});var kg={};Kt(kg,{Fragment:()=>WS,jsx:()=>_S,jsxs:()=>YS},{Fragment:(B5)=>WS=B5,jsx:(B5)=>_S=B5,jsxs:(B5)=>YS=B5});var An=(t)=>globalThis.postMessage(t),lf=0,zd=new Map;function Rg(t,e){let o=lf++;return new Promise((s,n)=>{zd.set(o,{resolve:s,reject:n}),e.addEventListener("abort",()=>An({type:"cancel",id:o}),{once:!0}),An({type:"request",id:o,input:t})})}function Fg(t){let e=zd.get(t.id);if(zd.delete(t.id),t.error)e?.reject(Error(t.error));else if(t.response)e?.resolve(t.response)}var af="http://basalt.internal";function mf(t){if(!t.startsWith("/api/")||/[\\\r\n#]/.test(t)||!new URL(t,af).pathname.startsWith("/api/"))throw Error("request path must stay within /api/")}function yf(t,e){return new Promise((o,s)=>{let l=setTimeout(()=>{e.removeEventListener("abort",a),o()},t),a=()=>{clearTimeout(l),e.removeEventListener("abort",a),s(Error("Request aborted"))};e.addEventListener("abort",a,{once:!0})})}function pf(t){if(t===void 0||t===null)return;if(typeof t!=="string")throw Error("ui_test requests require a JSON string body");if(!t)return;let e=JSON.parse(t);if(!e||typeof e!=="object"||Array.isArray(e))throw Error("request body must be a JSON object");return e}function Vg(t,e){return{async request(o,s){mf(o);let n=(s?.method??"GET").toUpperCase(),l=s?.signal?AbortSignal.any([s.signal,e]):e;l.throwIfAborted();let a=`${n} ${o}`,y=t&&Object.hasOwn(t,a)?t[a]:void 0;if(y){if(await yf(y.delayMs??0,l),l.throwIfAborted(),y.status<200||y.status>=300)throw Error(`Request failed (${y.status})`);return structuredClone(y.body)}let u=await Rg({path:o,method:n,body:pf(s?.body)},l);if(l.throwIfAborted(),u.status<200||u.status>=300)throw Error(`Request failed (${u.status})`);if(u.truncated)throw Error("API response exceeds ui_test response limit");return JSON.parse(u.body)}}}function Dg(t,e){let o=t.ownerDocument;function s(E){for(let R=E;R;R=R.parentElement){if(R.hasAttribute("hidden")||R.getAttribute("aria-hidden")==="true")return!1;let H=e.getComputedStyle(R);if(H.display==="none"||H.visibility==="hidden")return!1}return!0}function n(E){let R=E.getAttribute("aria-label");if(R!==null)return R;let H=E.getAttribute("aria-labelledby");if(H)return H.split(/\s+/).map((yt)=>o.getElementById(yt)?.textContent??"").join(" ");if("labels"in E){let yt=Array.from(E.labels??[]);if(yt.length)return yt.map((bt)=>bt.textContent).join(" ")}return E.textContent??""}function l(E){return E.hasAttribute("disabled")||E.getAttribute("aria-disabled")==="true"}function a(E){let R=[],H=o.createTreeWalker(E,4);while(H.nextNode()){let yt=H.currentNode,bt=yt?.parentElement;if(bt&&!bt.closest("script,style,textarea")&&s(bt))R.push(yt?.textContent??"")}return R.join(" ").replace(/\s+/g," ").trim()}function y(){return Array.from(t.querySelectorAll("button,[role=button]")).filter(s).map((E)=>({name:n(E).trim(),disabled:l(E),busy:E.getAttribute("aria-busy")==="true"}))}function u(){return Array.from(t.querySelectorAll("input,textarea,select")).filter((E)=>E instanceof e.HTMLInputElement||E instanceof e.HTMLTextAreaElement||E instanceof e.HTMLSelectElement).filter(s).map((E)=>({label:n(E).trim(),value:E.value}))}function c(E=t,R=!0){let H=a(E),yt=y(),bt=u();if(!R)return{text:H,buttons:yt,values:bt,truncated:!1};let Rt=new TextEncoder().encode(H);return{text:new TextDecoder().decode(Rt.slice(0,2048),{stream:!0}),buttons:yt.slice(0,50),values:bt.slice(0,50),truncated:Rt.length>2048||yt.length>50||bt.length>50}}function d(E,R){let H=Array.from(t.querySelectorAll(E)).filter((yt)=>yt instanceof e.HTMLElement).filter((yt)=>s(yt)&&n(yt).trim()===R);if(H.length!==1||!H[0])throw Error(`Expected one control named ${JSON.stringify(R)}, found ${H.length}`);return H[0]}function g(E){let R=Array.from(t.querySelectorAll(E)).filter(s),H=R[0];if(R.length!==1||!(H instanceof e.HTMLElement))throw Error(`Expected one visible element for ${E}, found ${R.length}`);return H}function f(E,R){let H=200,yt=(bt,Rt)=>{H--;let lt=[];if(Rt<R)for(let ct of bt.children){if(!H)break;lt.push(yt(ct,Rt+1))}return{tag:bt.tagName.toLowerCase(),role:bt.getAttribute("role"),class:bt.className,text:Array.from(bt.childNodes).filter((ct)=>ct.nodeType===3).map((ct)=>ct.textContent).join(" ").trim(),childCount:bt.children.length,children:lt}};return yt(E,0)}return{visible:s,isDisabled:l,snapshot:c,findByName:d,selectOne:g,outline:f,count:(E)=>t.querySelectorAll(E).length,anyVisible:(E)=>Array.from(t.querySelectorAll(E)).some(s)}}var ui=Symbol("abort"),Me=Symbol("activeElement"),Pt=Symbol("asyncTaskManager"),hi=Symbol("bodyBuffer"),Nt=Symbol("buffer"),Qo=Symbol("cachedResponse"),ci=Symbol("callbacks"),wn=Symbol("checked"),Ts=Symbol("childNodes"),ir=Symbol("children"),Aa=Symbol("classList"),zr=Symbol("connectedToNode"),Vi=Symbol("disconnectedFromNode"),sr=Symbol("connectedToDocument"),nr=Symbol("disconnectedFromDocument"),xl=Symbol("contentLength"),xe=Symbol("contentType"),Sr=Symbol("cssText"),Do=Symbol("currentScript"),Bo=Symbol("currentTarget"),Yt=Symbol("data"),Lr=Symbol("defaultView"),At=Symbol("destroy"),En=Symbol("dirtyness"),Y=Symbol("end"),Xe=Symbol("entries"),oE=Symbol("evaluateCSS"),Oo=Symbol("evaluateScript"),Jr=Symbol("exceptionObserver"),Gt=Symbol("formNode"),xn=Symbol("internalId"),F=Symbol("height"),Cs=Symbol("immediatePropagationStopped"),vn=Symbol("indeterminate"),Ns=Symbol("isFirstWrite"),Ls=Symbol("isFirstWriteAfterOpen"),wa=Symbol("isInPassiveEventListener"),Zr=Symbol("isValue"),ks=Symbol("listenerOptions"),he=Symbol("listeners"),Hr=Symbol("itemsByName"),Ms=Symbol("nextActiveElement"),vl=Symbol("observeMutations"),to=Symbol("mutationListeners"),x=Symbol("ownerDocument"),xt=Symbol("ownerElement"),Is=Symbol("propagationStopped"),Ao=Symbol("readyStateManager"),Pr=Symbol("referrer"),di=Symbol("registry"),eo=Symbol("relList"),Ea=Symbol("resetSelection"),ve=Symbol("rootNode"),Ie=Symbol("selectNode"),Ar=Symbol("selectedness"),Tn=Symbol("selection"),Tm=Symbol("setupVMContext"),be=Symbol("shadowRoot"),O=Symbol("start"),ge=Symbol("style"),wr=Symbol("target"),ze=Symbol("textAreaNode"),xa=Symbol("unobserveMutations"),Di=Symbol("reportMutation"),Cn=Symbol("updateSelectedness"),Pe=Symbol("url"),q=Symbol("value"),V=Symbol("width"),m=Symbol("window"),vh=Symbol("windowResizeListener"),Nn=Symbol("mutationObservers"),ro=Symbol("openerFrame"),bi=Symbol("openerWindow"),Cm=Symbol("pointerCaptures"),Ln=Symbol("popup"),tt=Symbol("isConnected"),W=Symbol("parentNode"),D=Symbol("nodeType"),z=Symbol("tagName"),Ft=Symbol("prefix"),Jd=Symbol("scrollHeight"),Zd=Symbol("scrollWidth"),Th=Symbol("scrollTop"),Ch=Symbol("scrollLeft"),St=Symbol("attributes"),va=Symbol("attributesProxy"),J=Symbol("namespaceURI"),Ta=Symbol("accessKey"),iE=Symbol("accessKeyLabel"),tb=Symbol("offsetHeight"),eb=Symbol("offsetWidth"),rb=Symbol("offsetLeft"),ob=Symbol("offsetTop"),ib=Symbol("clientHeight"),sb=Symbol("clientWidth"),nb=Symbol("clientLeft"),lb=Symbol("clientTop"),rt=Symbol("name"),Nm=Symbol("specified"),Rs=Symbol("adoptedStyleSheets"),Nh=Symbol("implementation"),kn=Symbol("readyState"),Fs=Symbol("publicId"),Vs=Symbol("systemId"),Ce=Symbol("validationMessage"),Ke=Symbol("validity"),Lh=Symbol("returnValue"),Bi=Symbol("elements"),sE=Symbol("length"),ab=Symbol("complete"),mb=Symbol("naturalHeight"),yb=Symbol("naturalWidth"),Bg=Symbol("loading"),L=Symbol("x"),k=Symbol("y"),nE=Symbol("defaultChecked"),jo=Symbol("files"),Be=Symbol("sheet"),kh=Symbol("volume"),Tl=Symbol("paused"),Mh=Symbol("currentTime"),Ih=Symbol("playbackRate"),Rh=Symbol("defaultPlaybackRate"),Ca=Symbol("muted"),Cl=Symbol("defaultMuted"),Fh=Symbol("preservesPitch"),pb=Symbol("buffered"),ub=Symbol("duration"),Qe=Symbol("error"),hb=Symbol("ended"),cb=Symbol("networkState"),Vh=Symbol("textTracks"),db=Symbol("seeking"),bb=Symbol("seekable"),gb=Symbol("played"),Oi=Symbol("options"),oo=Symbol("content"),Ee=Symbol("mode"),Mn=Symbol("host"),Wr=Symbol("setURL"),ot=Symbol("localName"),Na=Symbol("classRegistry"),Lm=Symbol("nodeStream"),io=Symbol("location"),Oe=Symbol("history"),Dh=Symbol("navigator"),Bh=Symbol("screen"),Oh=Symbol("sessionStorage"),Gh=Symbol("localStorage"),km=Symbol("sandbox"),ht=Symbol("cloneNode"),Et=Symbol("appendChild"),ur=Symbol("removeChild"),kr=Symbol("insertBefore"),La=Symbol("replaceChild"),gi=Symbol("tracks"),ka=Symbol("constraints"),Si=Symbol("capabilities"),In=Symbol("settings"),lE=Symbol("clone"),Ds=Symbol("removeNamedItem"),Q=Symbol("items"),Rn=Symbol("selectedOptions"),hr=Symbol("styleNode"),Fn=Symbol("updateSheet"),Mr=Symbol("clearCache"),Re=Symbol("onSetAttribute"),cr=Symbol("onRemoveAttribute"),_=Symbol("nodeArray"),dt=Symbol("elementArray"),U=Symbol("cache"),He=Symbol("affectsCache"),Ma=Symbol("forms"),qo=Symbol("affectsComputedStyleCache"),Nl=Symbol("query"),Ll=Symbol("computedStyle"),so=Symbol("getFormControlItems"),Mm=Symbol("getFormControlNamedItem"),Uh=Symbol("dataset"),aE=Symbol("getNamespaceItemKey"),mE=Symbol("getNamedItemKey"),fi=Symbol("itemsByNamespaceURI"),Vt=Symbol("proxy"),$o=Symbol("setNamedItem"),Er=Symbol("getTokenList"),Bs=Symbol("attributeName"),Go=Symbol("selectedIndex"),Dn=Symbol("self"),no=Symbol("parent"),Xo=Symbol("top"),Im=Symbol("areas"),lo=Symbol("defaultValue"),Pi=Symbol("elementIdMap"),Bn=Symbol("clonable"),kl=Symbol("delegatesFocus"),Gi=Symbol("serializable"),Ai=Symbol("slotAssignment"),Ui=Symbol("assignedNodes"),zo=Symbol("assignedToSlot"),Rm=Symbol("cells"),Fm=Symbol("rows"),Hh=Symbol("headers"),Vm=Symbol("tBodies"),Ia=Symbol("track"),Dm=Symbol("controlsList"),Wh=Symbol("mediaKeys"),Sb=Symbol("remote"),_h=Symbol("sinkId"),Yh=Symbol("srcObject"),Ml=Symbol("cues"),fb=Symbol("activeCues"),wo=Symbol("kind"),Os=Symbol("label"),Il=Symbol("language"),Bm=Symbol("id"),h=Symbol("illegalConstructor"),Pb=Symbol("state"),Om=Symbol("canvas"),On=Symbol("popoverTargetElement"),Gm=Symbol("composed"),Gs=Symbol("bubbles"),Hi=Symbol("cancelable"),lr=Symbol("defaultPrevented"),xr=Symbol("eventPhase"),Ab=Symbol("timeStamp"),Qt=Symbol("type"),Um=Symbol("detail"),yE=Symbol("globalObject"),Hm=Symbol("destroyed"),Se=Symbol("aborted"),Wm=Symbol("browserFrames"),Kh=Symbol("windowInternalId"),K=Symbol("getItemList"),Wi=Symbol("requiredExtensions"),_i=Symbol("systemLanguage"),_m=Symbol("transform"),se=Symbol("baseVal"),ne=Symbol("animVal"),Ym=Symbol("pathLength"),pE=Symbol("unitType"),Yi=Symbol("viewBox"),Km=Symbol("markerUnits"),Qm=Symbol("markerWidth"),jm=Symbol("markerHeight"),Je=Symbol("values"),qm=Symbol("orientType"),$m=Symbol("orientAngle"),Xm=Symbol("refX"),zm=Symbol("refY"),j=Symbol("readOnly"),ar=Symbol("preserveAspectRatio"),Ki=Symbol("animatedPoints"),Qi=Symbol("points"),ji=Symbol("rx"),qi=Symbol("ry"),ao=Symbol("cx"),mo=Symbol("cy"),$i=Symbol("r"),Jm=Symbol("clipPathUnits"),Zm=Symbol("maskUnits"),ty=Symbol("maskContentUnits"),ey=Symbol("filterUnits"),ry=Symbol("primitiveUnits"),Lt=Symbol("href"),Xi=Symbol("x1"),zi=Symbol("y1"),Ji=Symbol("x2"),Zi=Symbol("y2"),oy=Symbol("gradientUnits"),iy=Symbol("gradientTransform"),sy=Symbol("spreadMethod"),ny=Symbol("patternUnits"),ly=Symbol("patternContentUnits"),ay=Symbol("patternTransform"),my=Symbol("fx"),yy=Symbol("fy"),ts=Symbol("offset"),Gn=Symbol("disabled"),py=Symbol("textLength"),uy=Symbol("lengthAdjust"),v=Symbol("getAttribute"),A=Symbol("setAttribute"),Ir=Symbol("z"),Rl=Symbol("w"),hy=Symbol("toArray"),Fl=Symbol("fromString"),Eo=Symbol("fromArray"),uE=Symbol("angle"),kt=Symbol("m11"),Dt=Symbol("m12"),zt=Symbol("m13"),Jt=Symbol("m14"),Mt=Symbol("m21"),Bt=Symbol("m22"),Zt=Symbol("m23"),te=Symbol("m24"),Ht=Symbol("m31"),jt=Symbol("m32"),qt=Symbol("m33"),Wt=Symbol("m34"),It=Symbol("m41"),Ot=Symbol("m42"),$t=Symbol("m43"),Xt=Symbol("m44"),Ra=Symbol("setMatrixValue"),xo=Symbol("translateSelf"),Us=Symbol("rotateSelf"),Hs=Symbol("rotateAxisAngleSelf"),es=Symbol("scaleSelf"),cy=Symbol("scale3dSelf"),dy=Symbol("scaleNonUniformSelf"),Vl=Symbol("skewXSelf"),Dl=Symbol("skewYSelf"),vo=Symbol("multiplySelf"),Ws=Symbol("matrix"),hE=Symbol("domMatrix"),Ne=Symbol("getDOMMatrix"),dr=Symbol("setDOMMatrix"),I=Symbol("attributeValue"),by=Symbol("startOffset"),_s=Symbol("method"),gy=Symbol("spacing"),at=Symbol("in1"),yo=Symbol("in2"),Z=Symbol("result"),Sy=Symbol("bias"),fy=Symbol("divisor"),rs=Symbol("edgeMode"),Py=Symbol("kernelMatrix"),po=Symbol("kernelUnitLengthX"),uo=Symbol("kernelUnitLengthY"),Ay=Symbol("orderX"),wy=Symbol("orderY"),Ey=Symbol("preserveAlpha"),xy=Symbol("targetX"),vy=Symbol("targetY"),Ty=Symbol("diffuseConstant"),os=Symbol("surfaceScale"),Cy=Symbol("scale"),Ny=Symbol("xChannelSelector"),Ly=Symbol("yChannelSelector"),ky=Symbol("azimuth"),My=Symbol("elevation"),ho=Symbol("dx"),co=Symbol("dy"),is=Symbol("stdDeviationX"),ss=Symbol("stdDeviationY"),Iy=Symbol("tableValues"),Ry=Symbol("slope"),Fy=Symbol("intercept"),Vy=Symbol("amplitude"),Dy=Symbol("exponent"),Og=Symbol("crossOrigin"),By=Symbol("operator"),Oy=Symbol("radiusX"),Gy=Symbol("radiusY"),Uy=Symbol("specularConstant"),ns=Symbol("specularExponent"),Hy=Symbol("pointsAtX"),Wy=Symbol("pointsAtY"),_y=Symbol("pointsAtZ"),Yy=Symbol("limitingConeAngle"),Ky=Symbol("baseFrequencyX"),Qy=Symbol("baseFrequencyY"),jy=Symbol("numOctaves"),qy=Symbol("seed"),$y=Symbol("stitchTiles"),Xy=Symbol("rotateFromVectorSelf"),zy=Symbol("flipXSelf"),Jy=Symbol("flipYSelf"),Zy=Symbol("invertSelf"),wb=Symbol("getLength"),Qh=Symbol("currentScale"),tp=Symbol("rotate"),Eb=Symbol("bindMethods"),Un=Symbol("xmlProcessingInstruction"),cE=Symbol("root"),Uo=Symbol("filterNode"),Ys=Symbol("customElementReactionStack"),Hn=Symbol("dispatching"),ls=Symbol("modules"),Rr=Symbol("preloads"),Ks=Symbol("body"),jh=Symbol("redirect"),Fa=Symbol("referrerPolicy"),qh=Symbol("signal"),wi=Symbol("bodyUsed"),$h=Symbol("credentials"),ep=Symbol("blocking"),Bl=Symbol("moduleImportMap"),le=Symbol("dispatchError"),Xh=Symbol("supports"),To=Symbol("reason"),p=Symbol("propertyEventListeners"),We=Symbol("cssRules"),Qs=Symbol("parentRule"),Co=Symbol("parentStyleSheet"),bo=Symbol("conditionText"),as=Symbol("keyText"),xb=Symbol("media"),rp=Symbol("styleMap"),Ol=Symbol("selectorText"),Gl=Symbol("cssParser"),js=Symbol("cssRule"),Fr=Symbol("rulePrefix"),_r=Symbol("virtualServerFile"),vb=Symbol("frames"),qs=Symbol("disableEvaluation"),Tb=Symbol("validateJavaScriptExecutionEnvironment"),dE=Symbol("currentNode"),Wn=Symbol("openWebSockets"),vr=Symbol("webSocket"),Va=Symbol("moduleCache");var Cb;(function(t){t.strict="Strict",t.lax="Lax",t.none="None"})(Cb||(Cb={}));var $s=Cb;var zh={key:null,originURL:null,value:null,domain:"",path:"",expires:null,httpOnly:!1,secure:!1,sameSite:$s.lax};class op{static hasExpired(t){return t.expires&&t.expires.getTime()<Date.now()}}class Jh{static cookieMatchesURL(t,e){let o=e.hostname==="localhost"||e.hostname?.endsWith(".localhost");return(!t.secure||e.protocol==="https:"||o)&&(!t.domain||e.hostname?.endsWith(t.domain))&&(!t.path||e.pathname?.startsWith(t.path))&&(t.sameSite===$s.none&&t.secure||t.originURL?.hostname===e.hostname)}}class ip{#t=[];addCookies(t){let e=new Map,o=(s)=>`${s.key}-${s.originURL.hostname}-${s.path}-${typeof s.value}`;for(let s=0,n=this.#t.length;s<n;s++)e.set(o(this.#t[s]),s);for(let s of t){let n=Object.assign({},zh,s);if(n&&n.key&&n.originURL){let l=e.get(o(n));if(l!==void 0)this.#t.splice(l,1);if(!op.hasExpired(n))e.set(o(n),this.#t.length),this.#t.push(n)}}}getCookies(t=null,e=!1){let o=[];for(let s of this.#t)if(!op.hasExpired(s)&&(!e||!s.httpOnly)&&(!t||Jh.cookieMatchesURL(s,t)))o.push(s);return o}clearCookies(){this.#t=[]}}var Nb;(function(t){t.fresh="fresh",t.stale="stale"})(Nb||(Nb={}));var _n=Nb;var Lb;(function(t){t.invalidStateError="InvalidStateError",t.indexSizeError="IndexSizeError",t.syntaxError="SyntaxError",t.hierarchyRequestError="HierarchyRequestError",t.notSupportedError="NotSupportedError",t.wrongDocumentError="WrongDocumentError",t.invalidNodeTypeError="InvalidNodeTypeError",t.invalidCharacterError="InvalidCharacterError",t.notFoundError="NotFoundError",t.securityError="SecurityError",t.networkError="NetworkError",t.domException="DOMException",t.invalidAccessError="InvalidAccessError",t.unknownError="UnknownError",t.abortError="AbortError",t.timeoutError="TimeoutError",t.encodingError="EncodingError",t.uriMismatchError="URIMismatchError",t.inUseAttributeError="InUseAttributeError",t.namespaceError="NamespaceError"})(Lb||(Lb={}));var w=Lb;class re extends Error{constructor(t,e=null){super(t);this.name=e||w.domException}}class Ei{[Xe]={};constructor(t){if(t)if(t instanceof Ei)this[Xe]=JSON.parse(JSON.stringify(t[Xe]));else if(Array.isArray(t))for(let e of t){if(e.length!==2)throw new re('Failed to construct "Headers": The provided init is not a valid array.',w.invalidStateError);this.append(e[0],e[1])}else for(let e of Object.keys(t))this.set(e,t[e])}append(t,e){let o=t.toLowerCase();if(this[Xe][o])this[Xe][o].value.push(e);else this[Xe][o]={name:t,value:[e]}}delete(t){delete this[Xe][t.toLowerCase()]}get(t){return this[Xe][t.toLowerCase()]?.value.join(", ")??null}set(t,e){this[Xe][t.toLowerCase()]={name:t,value:[e]}}getSetCookie(){let t=this[Xe]["set-cookie"];if(!t)return[];return t.value}has(t){return!!this[Xe][t.toLowerCase()]}forEach(t,e){let o=e??this[m];for(let s of Object.values(this[Xe]))t.call(o,s.value.join(", "),s.name,this)}*keys(){for(let t of Object.values(this[Xe]))yield t.name}*values(){for(let t of Object.values(this[Xe]))yield t.value.join(", ")}*entries(){for(let t of Object.values(this[Xe]))yield[t.name,t.value.join(", ")]}*[Symbol.iterator](){for(let t of Object.values(this[Xe]))yield[t.name,t.value.join(", ")]}}import Da from"fs";import Ba from"path";import uf from"crypto";class Zh{#t=new Set;#e=new Set;#r;constructor(t){this.#r=t}async load(t){if(!t)throw Error("Failed to execute 'load' on 'ResponseCacheFileSystem': Directory is not specified.");let e=Ba.resolve(t),o=[];try{o=await Da.promises.readdir(e)}catch(l){return}let s=[],n=this.#r;for(let l of o)if(l.endsWith(".json"))s.push(Da.promises.readFile(Ba.join(e,l),"utf8").then((a)=>{let y=JSON.parse(a);if(y.response&&y.request&&!y.virtual)return y.response.headers=new Ei(y.response.headers),y.request.headers=new Ei(y.request.headers),Da.promises.readFile(Ba.join(e,l.split(".")[0]+".data")).then((u)=>{y.response.body=u;let c=n.get(y.response.url);if(!c)c=[],n.set(y.response.url,c);c.push(y)}).catch(()=>{let u=n.get(y.response.url);if(!u)u=[],n.set(y.response.url,u);u.push(y)})}).catch(()=>{}));await Promise.all(s)}async save(t){if(!t)throw Error("Failed to execute 'store' on 'ResponseCacheFileSystem': Directory is not specified.");if(!this.#r.size)return;let e=Ba.resolve(t);if(!this.#t.has(e)){this.#t.add(e);try{await Da.promises.mkdir(e,{recursive:!0})}catch(l){}}let s=this.#r,n=[];for(let l of s.values())for(let a of l)if(!a.virtual){let y={},u={};for(let[f,E]of a.response.headers.entries())y[f]=E;for(let[f,E]of a.request.headers.entries())u[f]=E;let c={...a,response:{...a.response,headers:y,body:null},request:{...a.request,headers:u}},d=JSON.stringify(c,null,3),g=uf.createHash("md5").update(d).digest("hex");if(!this.#e.has(g)){if(this.#e.add(g),n.push(Da.promises.writeFile(Ba.join(e,`${g}.json`),d)),a.response.body)n.push(Da.promises.writeFile(Ba.join(e,`${g}.data`),a.response.body))}}await Promise.all(n)}}var hf=["Cache-Control","Last-Modified","Vary","ETag"];class sp{fileSystem;#t=new Map;constructor(){this.fileSystem=new Zh(this.#t)}get(t){if(t.headers.get("Cache-Control")?.includes("no-cache"))return null;let e=t.url,o=this.#t.get(e);if(o)for(let s=0,n=o.length;s<n;s++){let l=o[s],a=l.request.method===t.method;if(a)for(let y of Object.keys(l.vary)){let u=t.headers.get(y);if(u!==null&&l.vary[y]!==u){a=!1;break}}if(a){if(l.expires&&l.expires<Date.now()){if(l.lastModified)l.state=_n.stale;else if(!l.etag)return o.splice(s,1),null}return l}}return null}add(t,e){if(t.method!=="GET"&&t.method!=="HEAD"||t.headers.get("Cache-Control")?.includes("no-cache"))return null;let o=t.url,s=this.get(t);if(e.status===304){if(!s)throw Error("ResponseCache: Cached response not found.");for(let n of hf)if(e.headers.has(n))s.response.headers.set(n,e.headers.get(n));s.cacheUpdateTime=Date.now(),s.state=_n.fresh}else{if(s){let l=this.#t.get(o);if(l){let a=l.indexOf(s);if(a!==-1)l.splice(a,1)}}s={response:{status:e.status,statusText:e.statusText,url:e.url,headers:new Ei(e.headers),waitingForBody:e.waitingForBody,body:e.body??null},request:{headers:t.headers,method:t.method},vary:{},expires:null,etag:null,cacheUpdateTime:Date.now(),lastModified:null,mustRevalidate:!1,staleWhileRevalidate:!1,state:_n.fresh,virtual:e.virtual??!1};let n=this.#t.get(o);if(!n)n=[],this.#t.set(o,n);n.push(s)}if(e.headers.has("Cache-Control")){let n=e.headers.get("Age");for(let l of e.headers.get("Cache-Control").split(",")){let[a,y]=l.trim().split("=");switch(a){case"max-age":s.expires=Date.now()+parseFloat(y)*1000-(n?parseFloat(n)*1000:0);break;case"no-cache":case"no-store":let u=this.#t.get(o);if(u){let c=u.indexOf(s);if(c!==-1)u.splice(c,1)}return null;case"must-revalidate":s.mustRevalidate=!0;break;case"stale-while-revalidate":s.staleWhileRevalidate=!0;break}}}if(e.headers.has("Last-Modified"))s.lastModified=Date.parse(e.headers.get("Last-Modified"));if(e.headers.has("Vary"))for(let n of e.headers.get("Vary").split(",")){let l=n.trim(),a=t.headers.get(l);if(a)s.vary[l]=a}if(e.headers.has("ETag"))s.etag=e.headers.get("ETag");if(!s.expires){let n=e.headers.get("Expires");if(n)s.expires=Date.parse(n)}if(!s.etag&&(!s.expires||s.expires<Date.now())){let n=this.#t.get(o);if(n){let l=n.indexOf(s);if(l!==-1)n.splice(l,1)}return null}return s}clear(t){if(t){if(t.toTime)for(let e of t.url?[t.url]:this.#t.keys()){let o=this.#t.get(e);if(o){for(let s=0,n=o.length;s<n;s++)if(o[s].cacheUpdateTime<t.toTime)o.splice(s,1),s--,n--}}else if(t.url)this.#t.delete(t.url)}else this.#t.clear()}}var kb;(function(t){t[t.log=0]="log",t[t.info=1]="info",t[t.warn=2]="warn",t[t.error=3]="error"})(kb||(kb={}));var mr=kb;var Mb;(function(t){t[t.elementNode=1]="elementNode",t[t.attributeNode=2]="attributeNode",t[t.textNode=3]="textNode",t[t.cdataSectionNode=4]="cdataSectionNode",t[t.commentNode=8]="commentNode",t[t.documentNode=9]="documentNode",t[t.documentTypeNode=10]="documentTypeNode",t[t.documentFragmentNode=11]="documentFragmentNode",t[t.processingInstructionNode=7]="processingInstructionNode"})(Mb||(Mb={}));var T=Mb;var Ib;(function(t){t[t.none=0]="none",t[t.capturing=1]="capturing",t[t.atTarget=2]="atTarget",t[t.bubbling=3]="bubbling"})(Ib||(Ib={}));var ae=Ib;class C{static NONE=ae.none;static CAPTURING_PHASE=ae.capturing;static AT_TARGET=ae.atTarget;static BUBBLING_PHASE=ae.bubbling;NONE=C.NONE;CAPTURING_PHASE=C.CAPTURING_PHASE;AT_TARGET=C.AT_TARGET;BUBBLING_PHASE=C.BUBBLING_PHASE;[Gm]=!1;[Gs]=!1;[Hi]=!1;[lr]=!1;[xr]=ae.none;[Ab]=performance.now();[Qt];[Hn]=!1;[Cs]=!1;[Is]=!1;[wr]=null;[Bo]=null;[wa]=!1;constructor(t,e=null){this[Qt]=t,this[Gs]=e?.bubbles??!1,this[Hi]=e?.cancelable??!1,this[Gm]=e?.composed??!1}get composed(){return this[Gm]}get bubbles(){return this[Gs]}get cancelable(){return this[Hi]}get defaultPrevented(){return this[lr]}get eventPhase(){return this[xr]}get timeStamp(){return this[Ab]}get type(){return this[Qt]}get target(){return this[wr]}get currentTarget(){return this[Bo]}get cancelBubble(){return this[Is]}composedPath(){if(!this[wr])return[];let t=[],e=this[wr];while(e)if(t.push(e),e.parentNode)e=e.parentNode;else if(this[Gm]&&e[D]===T.documentFragmentNode&&e.host)e=e.host;else if(e[D]===T.documentNode&&this[Qt]!=="load")e=e[m];else break;return t}initEvent(t,e=!1,o=!1){this[Qt]=t,this[Gs]=e,this[Hi]=o,this[Is]=!1,this[Cs]=!1,this[lr]=!1}preventDefault(){if(!this[wa]&&this.cancelable)this[lr]=!0}stopImmediatePropagation(){this[Cs]=!0}stopPropagation(){this[Is]=!0}}var Rb;(function(t){t.log="log",t.table="table",t.trace="trace",t.dir="dir",t.dirxml="dirxml",t.group="group",t.groupCollapsed="groupCollapsed",t.debug="debug",t.timeLog="timeLog",t.info="info",t.count="count",t.timeEnd="timeEnd",t.warn="warn",t.countReset="countReset",t.error="error",t.assert="assert"})(Rb||(Rb={}));var Fe=Rb;class tc{static toString(t){if(this.isLogEntryCollapsed(t))return"";let e=this.getLogEntryGroupTabbing(t),o=e;for(let s of t.message)if(o+=o!==""&&o!==e?" ":"",typeof s==="object"&&(s===null||s.constructor.name==="Object"||Array.isArray(s)))try{o+=JSON.stringify(s)}catch(n){o+=Error("Failed to JSON stringify object in log entry.").stack.replace(/\n at/gm,`
4
4
  `+e+"at")}else if(typeof s==="object"&&s.message&&s.stack)o+=s.stack.replace(/\n at/gm,`
5
5
  `+e+"at");else o+=this.getLogEntryIcon(t)+String(s);return o+`
6
- `}static getLogEntryIcon(t){switch(t.type){case Fe.group:return"\u25BC ";case Fe.groupCollapsed:return"\u25B6 "}return""}static getLogEntryGroupTabbing(t){let e="",o=t.type===Fe.group||t.type===Fe.groupCollapsed?t.group?.parent:t.group;while(o)e+=" ",o=o.parent;return e}static isLogEntryCollapsed(t){let e=t.type===Fe.group||t.type===Fe.groupCollapsed?t.group?.parent:t.group;while(e){if(e.collapsed)return!0;e=e.parent}return!1}}class Oa{#t=[];#e={print:[],clear:[]};#r=!1;get closed(){return this.#r}print(t){if(this.#r)return;this.#t.push(t),this.dispatchEvent(new N("print"))}clear(){if(this.#r)return;this.#t=[],this.dispatchEvent(new N("clear"))}close(){if(this.#r)return;this.#t=[],this.#e={print:[],clear:[]},this.#r=!0}addEventListener(t,e){if(this.#r)return;if(!this.#e[t])throw Error(`Event type "${t}" is not supported.`);this.#e[t].push(e)}removeEventListener(t,e){if(this.#r)return;if(!this.#e[t])throw Error(`Event type "${t}" is not supported.`);let o=this.#e[t].indexOf(e);if(o!==-1)this.#e[t].splice(o,1)}dispatchEvent(t){if(this.#r)return;switch(t.type){case"print":case"clear":for(let e of this.#e[t.type])e(t);break;default:throw Error(`Event type "${t.type}" is not supported.`)}}read(){let t=this.#t;return this.#t=[],t}readAsString(t=mr.log){let e=this.read(),o="";for(let s of e)if(s.level>=t)o+=tc.toString(s);return o}}class Ga extends Error{constructor(t){super(t);this.name="AsyncTaskManagerDebugError"}}var ko={setTimeout:globalThis.setTimeout.bind(globalThis),clearTimeout:globalThis.clearTimeout.bind(globalThis),clearImmediate:globalThis.clearImmediate.bind(globalThis)};class Js{static taskID=0;runningTasks={};runningTaskCount=0;runningTimers=[];runningImmediates=[];debugTrace=new Map;waitUntilCompleteTimer=null;waitUntilCompleteResolvers=[];destroyed=!1;#t=null;#e;constructor(t){this.#e=t}waitUntilComplete(){return new Promise((t,e)=>{this.waitUntilCompleteResolvers.push({resolve:t,reject:e}),this.resolveWhenComplete()})}abort(){if(this.destroyed)return new Promise((t,e)=>{this.waitUntilCompleteResolvers.push({resolve:t,reject:e}),this.resolveWhenComplete()});return this.abortAll(!1)}destroy(){if(this.destroyed)return new Promise((t,e)=>{this.waitUntilCompleteResolvers.push({resolve:t,reject:e}),this.resolveWhenComplete()});return this.abortAll(!0)}startTimer(t){if(this.destroyed){ko.clearTimeout(t);return}if(this.waitUntilCompleteTimer)ko.clearTimeout(this.waitUntilCompleteTimer),this.waitUntilCompleteTimer=null;if(this.runningTimers.push(t),this.#e.page.context.browser.settings.debug.traceWaitUntilComplete>0)this.debugTrace.set(t,new Ga().stack)}endTimer(t){if(this.destroyed){ko.clearTimeout(t);return}let e=this.runningTimers.indexOf(t);if(e!==-1)this.runningTimers.splice(e,1),this.resolveWhenComplete();if(this.#e.page.context.browser.settings.debug.traceWaitUntilComplete>0)this.debugTrace.delete(t)}startImmediate(t){if(this.destroyed){ko.clearImmediate(t);return}if(this.waitUntilCompleteTimer)ko.clearTimeout(this.waitUntilCompleteTimer),this.waitUntilCompleteTimer=null;if(this.runningImmediates.push(t),this.#e.page?.context?.browser?.settings?.debug?.traceWaitUntilComplete>0)this.debugTrace.set(t,new Ga().stack)}endImmediate(t){if(this.destroyed){ko.clearImmediate(t);return}let e=this.runningImmediates.indexOf(t);if(e!==-1)this.runningImmediates.splice(e,1),this.resolveWhenComplete();if(this.#e.page.context.browser.settings.debug.traceWaitUntilComplete>0)this.debugTrace.delete(t)}startTask(t){if(this.destroyed){if(t)t(this.destroyed);throw new this.#e.window.Error("Failed to execute 'startTask()' on 'AsyncTaskManager': The asynchronous task manager has been destroyed. This error can be thrown if scripts continue to run while a browser frame is closed.")}if(this.waitUntilCompleteTimer)ko.clearTimeout(this.waitUntilCompleteTimer),this.waitUntilCompleteTimer=null;let e=this.newTaskID();if(this.runningTasks[e]=t?t:()=>{},this.runningTaskCount++,this.#e.page.context.browser.settings.debug.traceWaitUntilComplete>0)this.debugTrace.set(e,new Ga().stack);return e}endTask(t){if(this.destroyed)return;if(this.runningTasks[t])delete this.runningTasks[t],this.runningTaskCount--,this.resolveWhenComplete();if(this.#e.page.context.browser.settings.debug.traceWaitUntilComplete>0)this.debugTrace.delete(t)}getTaskCount(){return this.runningTaskCount}newTaskID(){return this.constructor.taskID++,this.constructor.taskID}resolveWhenComplete(){if(this.applyDebugging(),this.runningTaskCount||this.runningTimers.length||this.runningImmediates.length)return;if(this.waitUntilCompleteTimer)ko.clearTimeout(this.waitUntilCompleteTimer),this.waitUntilCompleteTimer=null;this.waitUntilCompleteTimer=ko.setTimeout(()=>{if(this.waitUntilCompleteTimer=null,!this.runningTaskCount&&!this.runningTimers.length&&!this.runningImmediates.length){if(this.#t)ko.clearTimeout(this.#t);let t=this.waitUntilCompleteResolvers;this.waitUntilCompleteResolvers=[];for(let e of t)e.resolve();this.destroyed=!1}else this.applyDebugging()},1)}applyDebugging(){let t=this.#e.page.context.browser.settings.debug;if(!t?.traceWaitUntilComplete||t.traceWaitUntilComplete<1)return;if(this.#t)return;this.#t=ko.setTimeout(()=>{this.#t=null;let e=`The maximum time was reached for "waitUntilComplete()".
6
+ `}static getLogEntryIcon(t){switch(t.type){case Fe.group:return"\u25BC ";case Fe.groupCollapsed:return"\u25B6 "}return""}static getLogEntryGroupTabbing(t){let e="",o=t.type===Fe.group||t.type===Fe.groupCollapsed?t.group?.parent:t.group;while(o)e+=" ",o=o.parent;return e}static isLogEntryCollapsed(t){let e=t.type===Fe.group||t.type===Fe.groupCollapsed?t.group?.parent:t.group;while(e){if(e.collapsed)return!0;e=e.parent}return!1}}class Oa{#t=[];#e={print:[],clear:[]};#r=!1;get closed(){return this.#r}print(t){if(this.#r)return;this.#t.push(t),this.dispatchEvent(new C("print"))}clear(){if(this.#r)return;this.#t=[],this.dispatchEvent(new C("clear"))}close(){if(this.#r)return;this.#t=[],this.#e={print:[],clear:[]},this.#r=!0}addEventListener(t,e){if(this.#r)return;if(!this.#e[t])throw Error(`Event type "${t}" is not supported.`);this.#e[t].push(e)}removeEventListener(t,e){if(this.#r)return;if(!this.#e[t])throw Error(`Event type "${t}" is not supported.`);let o=this.#e[t].indexOf(e);if(o!==-1)this.#e[t].splice(o,1)}dispatchEvent(t){if(this.#r)return;switch(t.type){case"print":case"clear":for(let e of this.#e[t.type])e(t);break;default:throw Error(`Event type "${t.type}" is not supported.`)}}read(){let t=this.#t;return this.#t=[],t}readAsString(t=mr.log){let e=this.read(),o="";for(let s of e)if(s.level>=t)o+=tc.toString(s);return o}}class Ga extends Error{constructor(t){super(t);this.name="AsyncTaskManagerDebugError"}}var No={setTimeout:globalThis.setTimeout.bind(globalThis),clearTimeout:globalThis.clearTimeout.bind(globalThis),clearImmediate:globalThis.clearImmediate.bind(globalThis)};class Xs{static taskID=0;runningTasks={};runningTaskCount=0;runningTimers=[];runningImmediates=[];debugTrace=new Map;waitUntilCompleteTimer=null;waitUntilCompleteResolvers=[];destroyed=!1;#t=null;#e;constructor(t){this.#e=t}waitUntilComplete(){return new Promise((t,e)=>{this.waitUntilCompleteResolvers.push({resolve:t,reject:e}),this.resolveWhenComplete()})}abort(){if(this.destroyed)return new Promise((t,e)=>{this.waitUntilCompleteResolvers.push({resolve:t,reject:e}),this.resolveWhenComplete()});return this.abortAll(!1)}destroy(){if(this.destroyed)return new Promise((t,e)=>{this.waitUntilCompleteResolvers.push({resolve:t,reject:e}),this.resolveWhenComplete()});return this.abortAll(!0)}startTimer(t){if(this.destroyed){No.clearTimeout(t);return}if(this.waitUntilCompleteTimer)No.clearTimeout(this.waitUntilCompleteTimer),this.waitUntilCompleteTimer=null;if(this.runningTimers.push(t),this.#e.page.context.browser.settings.debug.traceWaitUntilComplete>0)this.debugTrace.set(t,new Ga().stack)}endTimer(t){if(this.destroyed){No.clearTimeout(t);return}let e=this.runningTimers.indexOf(t);if(e!==-1)this.runningTimers.splice(e,1),this.resolveWhenComplete();if(this.#e.page.context.browser.settings.debug.traceWaitUntilComplete>0)this.debugTrace.delete(t)}startImmediate(t){if(this.destroyed){No.clearImmediate(t);return}if(this.waitUntilCompleteTimer)No.clearTimeout(this.waitUntilCompleteTimer),this.waitUntilCompleteTimer=null;if(this.runningImmediates.push(t),this.#e.page?.context?.browser?.settings?.debug?.traceWaitUntilComplete>0)this.debugTrace.set(t,new Ga().stack)}endImmediate(t){if(this.destroyed){No.clearImmediate(t);return}let e=this.runningImmediates.indexOf(t);if(e!==-1)this.runningImmediates.splice(e,1),this.resolveWhenComplete();if(this.#e.page.context.browser.settings.debug.traceWaitUntilComplete>0)this.debugTrace.delete(t)}startTask(t){if(this.destroyed){if(t)t(this.destroyed);throw new this.#e.window.Error("Failed to execute 'startTask()' on 'AsyncTaskManager': The asynchronous task manager has been destroyed. This error can be thrown if scripts continue to run while a browser frame is closed.")}if(this.waitUntilCompleteTimer)No.clearTimeout(this.waitUntilCompleteTimer),this.waitUntilCompleteTimer=null;let e=this.newTaskID();if(this.runningTasks[e]=t?t:()=>{},this.runningTaskCount++,this.#e.page.context.browser.settings.debug.traceWaitUntilComplete>0)this.debugTrace.set(e,new Ga().stack);return e}endTask(t){if(this.destroyed)return;if(this.runningTasks[t])delete this.runningTasks[t],this.runningTaskCount--,this.resolveWhenComplete();if(this.#e.page.context.browser.settings.debug.traceWaitUntilComplete>0)this.debugTrace.delete(t)}getTaskCount(){return this.runningTaskCount}newTaskID(){return this.constructor.taskID++,this.constructor.taskID}resolveWhenComplete(){if(this.applyDebugging(),this.runningTaskCount||this.runningTimers.length||this.runningImmediates.length)return;if(this.waitUntilCompleteTimer)No.clearTimeout(this.waitUntilCompleteTimer),this.waitUntilCompleteTimer=null;this.waitUntilCompleteTimer=No.setTimeout(()=>{if(this.waitUntilCompleteTimer=null,!this.runningTaskCount&&!this.runningTimers.length&&!this.runningImmediates.length){if(this.#t)No.clearTimeout(this.#t);let t=this.waitUntilCompleteResolvers;this.waitUntilCompleteResolvers=[];for(let e of t)e.resolve();this.destroyed=!1}else this.applyDebugging()},1)}applyDebugging(){let t=this.#e.page.context.browser.settings.debug;if(!t?.traceWaitUntilComplete||t.traceWaitUntilComplete<1)return;if(this.#t)return;this.#t=No.setTimeout(()=>{this.#t=null;let e=`The maximum time was reached for "waitUntilComplete()".
7
7
 
8
8
  ${this.debugTrace.size} task${this.debugTrace.size===1?"":"s"} did not end in time.
9
9
 
@@ -13,18 +13,18 @@ The following traces were recorded:
13
13
  \u203E\u203E\u203E\u203E\u203E\u203E\u203E\u203E\u203E\u203E\u203E\u203E\u203E\u203E\u203E\u203E\u203E\u203E\u203E\u203E\u203E\u203E\u203E\u203E\u203E\u203E\u203E\u203E\u203E\u203E\u203E\u203E\u203E\u203E\u203E\u203E\u203E\u203E${l.replace(/AsyncTaskManagerDebugError:{0,1}/,"").replace(/\s+at /gm,`
14
14
  > `)}
15
15
 
16
- `,o++;let s=Error(e);for(let n of this.waitUntilCompleteResolvers)n.reject(s);this.abortAll(!0)},t.traceWaitUntilComplete)}abortAll(t){let e=this.runningTimers,o=this.runningImmediates,s=this.runningTasks;if(t)this.destroyed=!0;if(this.runningTasks={},this.runningTaskCount=0,this.runningImmediates=[],this.runningTimers=[],this.debugTrace=new Map,this.waitUntilCompleteTimer)ko.clearTimeout(this.waitUntilCompleteTimer),this.waitUntilCompleteTimer=null;for(let n of o)ko.clearImmediate(n);for(let n of e)ko.clearTimeout(n);for(let n of Object.keys(s))s[n](t);return new Promise((n,l)=>{this.waitUntilCompleteResolvers.push({resolve:n,reject:l}),this.resolveWhenComplete()})}}import{Buffer as cw}from"buffer";import{webcrypto as dw}from"crypto";import{TextEncoder as bw,TextDecoder as gw}from"util";import VS from"stream";import{ReadableStream as Sw}from"stream/web";import{URLSearchParams as fw}from"url";import vg from"vm";var Gg="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";class np{static btoa(t){let e=t.toString();if(/[^\u0000-\u00ff]/.test(e))throw new re("Failed to execute 'btoa' on 'Window': The string to be encoded contains characters outside of the Latin1 range.",w.invalidCharacterError);let o="",s=-6,n=0,l=0,a=0,y;while(l<e.length||s>-6){if(s<0){if(l<e.length)y=e.charCodeAt(l++),a+=8;else y=0;n=(n&255)<<8|y&255,s+=8}o+=Gg.charAt(a>0?n>>s&63:64),s-=6,a-=6}return o}static atob(t){let e=t.toString();if(/[^\u0000-\u00ff]/.test(e))throw new re("Failed to execute 'atob' on 'Window': The string to be decoded contains characters outside of the Latin1 range.",w.invalidCharacterError);if(/[^A-Za-z\d+/=]/.test(e)||e.length%4==1)throw new re("Failed to execute 'atob' on 'Window': The string to be decoded is not correctly encoded.",w.invalidCharacterError);let o="",s=-8,n=0,l,a;for(let y=0;y<e.length;y++){if((l=Gg.indexOf(e.charAt(y)))<0)continue;if(n=n<<6|l&63,(s+=6)>=0){if(a=n>>s&255,l!==64)o+=String.fromCharCode(a);n&=63,s-=8}}return o}}var Fb;(function(t){t.tryAndCatch="tryAndCatch",t.processLevel="processLevel",t.disabled="disabled"})(Fb||(Fb={}));var me=Fb;import{Buffer as lp}from"buffer";import{ReadableStream as cf}from"stream/web";class ie{type="";[Nt];constructor(t,e){let o=[];if(t)for(let s of t){let n;if(s instanceof ArrayBuffer)n=lp.from(new Uint8Array(s));else if(s instanceof ie)n=s[Nt];else if(s instanceof lp)n=s;else if(ArrayBuffer.isView(s))n=lp.from(new Uint8Array(s.buffer,s.byteOffset,s.byteLength));else n=lp.from(typeof s==="string"?s:String(s));o.push(n)}if(this[Nt]=lp.concat(o),e&&e.type&&e.type.match(/^[\u0020-\u007E]*$/))this.type=String(e.type).toLowerCase()}get size(){return this[Nt].length}slice(t=0,e=null,o=""){let s=this.size,n,l,a;if(t===void 0)n=0;else if(t<0)n=Math.max(s+t,0);else n=Math.min(t,s);if(e===null)l=s;else if(e<0)l=Math.max(s+e,0);else l=Math.min(e,s);if(o===void 0)a="";else a=o;let y=Math.max(l-n,0),c=this[Nt].slice(n,n+y),d=new ie([],{type:a});return d[Nt]=c,d}async arrayBuffer(){return new Uint8Array(this[Nt]).buffer}async text(){return this[Nt].toString()}stream(){let t=this[Nt];return new cf({start(e){e.enqueue(t),e.close()}})}toString(){return"[object Blob]"}}class Ul{#t;#e=[];constructor(t){if(!t)throw TypeError("Illegal constructor");this.#t=t}async read(){if((await this.#t.navigator.permissions.query({name:"clipboard-read"})).state==="denied")throw new this.#t.DOMException("Failed to execute 'read' on 'Clipboard': The request is not allowed");return this.#e}async readText(){if((await this.#t.navigator.permissions.query({name:"clipboard-read"})).state==="denied")throw new this.#t.DOMException("Failed to execute 'readText' on 'Clipboard': The request is not allowed");let e="";for(let o of this.#e)if(o.types.includes("text/plain")){let s=await o.getType("text/plain");if(typeof s==="string")e+=s;else e+=await s.text()}return e}async write(t){if((await this.#t.navigator.permissions.query({name:"clipboard-write"})).state==="denied")throw new this.#t.DOMException("Failed to execute 'write' on 'Clipboard': The request is not allowed");this.#e=t}async writeText(t){if((await this.#t.navigator.permissions.query({name:"clipboard-write"})).state==="denied")throw new this.#t.DOMException("Failed to execute 'writeText' on 'Clipboard': The request is not allowed");this.#e=[new this.#t.ClipboardItem({"text/plain":new ie([t],{type:"text/plain"})})]}}class ap{presentationStyle="unspecified";#t;constructor(t,e){if(this.#t=t,e?.presentationStyle)this.presentationStyle=e.presentationStyle}get types(){return Object.keys(this.#t)}async getType(t){if(!this.#t[t])throw new re(`Failed to execute 'getType' on 'ClipboardItem': The type '${t}' was not found`);if(this.#t[t]instanceof ie)return this.#t[t];return new ie([await this.#t[t]],{type:t})}}class ec{static escape(t){if(arguments.length==0)throw TypeError("`CSS.escape` requires an argument.");let e=String(t),o=e.length,s=-1,n,l="",a=e.charCodeAt(0);if(o==1&&a==45)return"\\"+e;while(++s<o){if(n=e.charCodeAt(s),n==0){l+="\uFFFD";continue}if(n>=1&&n<=31||n==127||s==0&&n>=48&&n<=57||s==1&&n>=48&&n<=57&&a==45){l+="\\"+n.toString(16)+" ";continue}if(n>=128||n==45||n==95||n>=48&&n<=57||n>=65&&n<=90||n>=97&&n<=122){l+=e.charAt(s);continue}l+="\\"+e.charAt(s)}return l}}var Ug=["Hz","Q","ch","cm","deg","dpcm","dpi","dppx","em","ex","fr","grad","in","kHz","mm","ms","number","pc","percent","pt","px","rad","rem","s","turn","vh","vmax","vmin","vw"];class ye{unit;value;constructor(t,e){if(typeof t!=="number")throw TypeError("The provided double value is non-finite");if(!Ug.includes(e))throw TypeError("Invalid unit: "+e);this.value=t,this.unit=e}}class rc{Hz=(t)=>new ye(t,"Hz");Q=(t)=>new ye(t,"Q");ch=(t)=>new ye(t,"ch");cm=(t)=>new ye(t,"cm");deg=(t)=>new ye(t,"deg");dpcm=(t)=>new ye(t,"dpcm");dpi=(t)=>new ye(t,"dpi");dppx=(t)=>new ye(t,"dppx");em=(t)=>new ye(t,"em");ex=(t)=>new ye(t,"ex");fr=(t)=>new ye(t,"fr");grad=(t)=>new ye(t,"grad");in=(t)=>new ye(t,"in");kHz=(t)=>new ye(t,"kHz");mm=(t)=>new ye(t,"mm");ms=(t)=>new ye(t,"ms");number=(t)=>new ye(t,"number");pc=(t)=>new ye(t,"pc");percent=(t)=>new ye(t,"percent");pt=(t)=>new ye(t,"pt");px=(t)=>new ye(t,"px");rad=(t)=>new ye(t,"rad");rem=(t)=>new ye(t,"rem");s=(t)=>new ye(t,"s");turn=(t)=>new ye(t,"turn");vh=(t)=>new ye(t,"vh");vmax=(t)=>new ye(t,"vmax");vmin=(t)=>new ye(t,"vmin");vw=(t)=>new ye(t,"vw");supports(t,e){return!0}escape(t){return ec.escape(t)}}var Vb;(function(t){t[t.containerRule=0]="containerRule",t[t.styleRule=1]="styleRule",t[t.importRule=3]="importRule",t[t.mediaRule=4]="mediaRule",t[t.fontFaceRule=5]="fontFaceRule",t[t.pageRule=6]="pageRule",t[t.keyframesRule=7]="keyframesRule",t[t.keyframeRule=8]="keyframeRule",t[t.namespaceRule=10]="namespaceRule",t[t.counterStyleRule=11]="counterStyleRule",t[t.supportsRule=12]="supportsRule",t[t.documentRule=13]="documentRule",t[t.fontFeatureValuesRule=14]="fontFeatureValuesRule",t[t.regionStyleRule=16]="regionStyleRule"})(Vb||(Vb={}));var ht=Vb;class _o{static CONTAINER_RULE=ht.containerRule;static STYLE_RULE=ht.styleRule;static IMPORT_RULE=ht.importRule;static MEDIA_RULE=ht.mediaRule;static FONT_FACE_RULE=ht.fontFaceRule;static PAGE_RULE=ht.pageRule;static KEYFRAMES_RULE=ht.keyframesRule;static KEYFRAME_RULE=ht.keyframeRule;static NAMESPACE_RULE=ht.namespaceRule;static COUNTER_STYLE_RULE=ht.counterStyleRule;static SUPPORTS_RULE=ht.supportsRule;static DOCUMENT_RULE=ht.documentRule;static FONT_FEATURE_VALUES_RULE=ht.fontFeatureValuesRule;static REGION_STYLE_RULE=ht.regionStyleRule;[m];[Gl];[qs]=null;[Lo]=null;constructor(t,e,o){if(t!==h)throw TypeError("Illegal constructor");this[m]=e,this[Gl]=o}get parentRule(){return this[qs]}get parentStyleSheet(){return this[Lo]}}var df=/[,()]/gm,bf=/[()]|\s+/gm;class Hl{static splitByComma(t){let e=[],o=new RegExp(df),s,n=0,l=0;while(s=o.exec(t))switch(s[0]){case"(":n++;break;case")":n--;break;case",":if(n===0){let a=t.substring(l,s.index).trim();if(a)e.push(a);l=o.lastIndex}break}if(l<t.length)e.push(t.substring(l).trim());return e}static splitBySpace(t){let e=[],o=new RegExp(bf),s,n=0,l=0;while(s=o.exec(t))switch(s[0]){case"(":n++;break;case")":n--;break;default:if(n===0){let a=t.substring(l,s.index).trim();if(a)e.push(a);l=o.lastIndex}break}if(l<t.length){let a=t.substring(l).trim();if(a)e.push(a)}return e}}var gf=/^#([0-9a-fA-F]{3,4}){1,2}$|^rgb\(([^)]*)\)$|^rgba\(([^)]*)\)$|^hsla?\(\s*(-?\d+|-?\d*.\d+)\s*,\s*(-?\d+|-?\d*.\d+)%\s*,\s*(-?\d+|-?\d*.\d+)%\s*(,\s*(-?\d+|-?\d*.\d+)\s*)?\)|(?:(rgba?|hsla?)\((var\(\s*(--[^)\s]+)\))\))/,Sf=/^(0|[-+]?[0-9]*\.?[0-9]+)(in|cm|em|mm|pt|pc|px|ex|rem|vh|vw|ch|vw|vh|vmin|vmax|Q)$/,ff=/^[-+]?[0-9]*\.?[0-9]+%$/,Pf=/^[0-9]+deg$/,Af=/^url\(\s*([^)]*)\s*\)$/,wf=/^[0-9]+$/,Ef=/^[0-9.]+$/,xf=/^calc\([^^)]+\)$/,vf=/^var\(\s*(--[^)\s]+)\)$/,Tf=/^fit-content\([^^)]+\)$/,Cf=/^((repeating-linear|linear|radial|repeating-radial|conic|repeating-conic)-gradient)\(((?:[^()]|\([^()]*\))*)\)$/,Hg=["inherit","initial","unset","revert"],Nf=["none","currentcolor","transparent","silver","gray","white","maroon","red","purple","fuchsia","green","lime","olive","yellow","navy","blue","teal","aliceblue","aqua","antiquewhite","aquamarine","azure","beige","bisque","black","blanchedalmond","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkgrey","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkslategrey","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dimgrey","dodgerblue","firebrick","floralwhite","forestgreen","gainsboro","ghostwhite","gold","goldenrod","greenyellow","grey","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightgrey","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightslategrey","lightsteelblue","lightyellow","limegreen","linen","magenta","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","oldlace","olivedrab","orange","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","rebeccapurple","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","skyblue","slateblue","slategray","slategrey","snow","springgreen","steelblue","tan","thistle","tomato","turquoise","violet","wheat","whitesmoke","yellowgreen"];class b{static getLength(t){if(t==="0")return"0px";let e=t.match(Sf);if(e){let o=parseFloat(e[1]);if(isNaN(o))return null;let s=e[2];return`${Math.round(o*1e6)/1e6}${s}`}return null}static getPercentage(t){if(t==="0")return"0%";if(ff.test(t))return t;return null}static getDegree(t){if(t==="0")return"0deg";if(Pf.test(t))return t;return null}static getCalc(t){if(xf.test(t))return t;return null}static getFitContent(t){let e=t.toLowerCase();if(e==="auto"||e==="max-content"||e==="min-content"||e==="fit-content")return e;if(Tf.test(e))return e;return null}static getMeasurement(t){return this.getLength(t)||this.getPercentage(t)||this.getCalc(t)}static getContentMeasurement(t){return this.getFitContent(t)||this.getMeasurement(t)}static getAutoMeasurement(t){if(t.toLocaleLowerCase()==="auto")return"auto";return this.getMeasurement(t)}static getInteger(t){if(wf.test(t))return t;return null}static getFloat(t){if(Ef.test(t)){let e=parseFloat(t);if(isNaN(e))return null;return String(Math.round(e*1e6)/1e6)}return null}static getGradient(t){let e=t.match(Cf);if(e){let o=e[3].trim(),s=Hl.splitByComma(o);return`${e[1]}(${s.join(", ")})`}return null}static getColor(t){let e=t.toLowerCase();if(Nf.includes(e))return e;if(gf.test(t))return t.replace(/,([^ ])/g,", $1");return null}static getURL(t){if(!t)return null;if(t.toLowerCase()==="none")return"none";let e=Af.exec(t);if(!e)return null;let o=e[1].trim();if((o[0]==='"'||o[0]==="'")&&o[0]!==o[o.length-1])return null;if(o[0]==='"'||o[0]==="'")o=o.substring(1,o.length-1);for(let s=0;s<o.length;s++)switch(o[s]){case"(":case")":case" ":case"\t":case`
17
- `:case"'":case'"':return null;case"\\":s++;break}return`url("${o}")`}static getInitial(t){return t.toLowerCase()==="initial"?"initial":null}static getVariable(t){let e=t.match(vf);if(e)return`var(${e[1]})`;return null}static getGlobal(t){let e=t.toLowerCase();return Hg.includes(e)?e:null}static getGlobalExceptInitial(t){let e=t.toLowerCase();return e!=="initial"&&Hg.includes(e)?e:null}}var Lf=/^rect\((.*)\)$/i,oc=/,(?=(?:(?:(?!\))[\s\S])*\()|[^\(\)]*$)/,je=/\s+(?=(?:(?:(?!\))[\s\S])*\()|[^\(\)]*$)/,kf=/\s+/gm,mp=["none","hidden","dotted","dashed","solid","double","groove","ridge","inset","outset"],yp=["thin","medium","thick"],Mf=["separate","collapse"],If=["repeat","repeat-x","repeat-y","no-repeat"],Rf=["border-box","padding-box","content-box"],Ff=["border-box","padding-box","content-box"],Vf=["scroll","fixed"],Df=["auto","fill","content"],Bf=["none","left","right","both"],Of=["none","left","right","inline-start","inline-end"],Gf=["caption","icon","menu","message-box","small-caption","status-bar"],Uf=["normal","bold","bolder","lighter"],Hf=["normal","italic","oblique"],Wf=["xx-small","x-small","small","medium","large","x-large","xx-large","xxx-large","smaller","larger"],_f=["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded"],Yf=["block","inline","inline-block","flex","inline-flex","grid","inline-grid","flow-root","none","contents","block flow","inline flow","inline flow-root","block flex","inline flex","block grid","inline grid","block flow-root","table","table-row","list-item"],Kf=["stretch","repeat","round","space"],Qf=["capitalize","uppercase","lowercase","none","full-width","full-size-kana"],jf=["visible","hidden","collapse"];class X{static getBorderCollapse(t,e){let o=b.getVariable(t);if(o)return{"border-collapse":{value:o,important:e}};let s=t.toLowerCase();if(b.getGlobal(s)||Mf.includes(s))return{"border-collapse":{value:s,important:e}};return null}static getDisplay(t,e){let o=b.getVariable(t);if(o)return{display:{value:o,important:e}};let s=t.toLowerCase();if(b.getGlobal(s)||Yf.includes(s))return{display:{value:s,important:e}};return null}static getDirection(t,e){let o=b.getVariable(t);if(o)return{direction:{value:o,important:e}};let s=t.toLowerCase();if(b.getGlobal(s)||s==="ltr"||s==="rtl")return{direction:{value:s,important:e}};return null}static getLetterSpacing(t,e){let o=b.getVariable(t)||b.getGlobal(t)||b.getContentMeasurement(t);return o?{"letter-spacing":{value:o,important:e}}:null}static getWordSpacing(t,e){let o=b.getVariable(t)||b.getGlobal(t)||b.getContentMeasurement(t);return o?{"word-spacing":{value:o,important:e}}:null}static getTextIndent(t,e){let o=b.getVariable(t)||b.getGlobal(t)||b.getContentMeasurement(t);return o?{"text-indent":{value:o,important:e}}:null}static getWidth(t,e){let o=b.getVariable(t)||b.getGlobal(t)||b.getContentMeasurement(t);return o?{width:{value:o,important:e}}:null}static getHeight(t,e){let o=b.getVariable(t)||b.getGlobal(t)||b.getContentMeasurement(t);return o?{height:{value:o,important:e}}:null}static getTop(t,e){let o=b.getVariable(t)||b.getGlobal(t)||b.getContentMeasurement(t);return o?{top:{value:o,important:e}}:null}static getRight(t,e){let o=b.getVariable(t)||b.getGlobal(t)||b.getContentMeasurement(t);return o?{right:{value:o,important:e}}:null}static getBottom(t,e){let o=b.getVariable(t)||b.getGlobal(t)||b.getContentMeasurement(t);return o?{bottom:{value:o,important:e}}:null}static getLeft(t,e){let o=b.getVariable(t)||b.getGlobal(t)||b.getContentMeasurement(t);return o?{left:{value:o,important:e}}:null}static getClear(t,e){let o=b.getVariable(t);if(o)return{clear:{value:o,important:e}};let s=t.toLowerCase();if(b.getGlobal(s)||Bf.includes(s))return{clear:{value:s,important:e}};return null}static getClip(t,e){let o=b.getVariable(t);if(o)return{clip:{value:o,important:e}};let s=t.toLowerCase();if(b.getGlobal(s)||s==="auto")return{clip:{value:s,important:e}};let n=s.match(Lf);if(!n)return null;let l=n[1].split(/\s*,\s*/);if(l.length!==4)return null;for(let a of l)if(!b.getMeasurement(a))return null;return{clip:{value:t,important:e}}}static getFloat(t,e){let o=b.getVariable(t);if(o)return{float:{value:o,important:e}};let s=t.toLowerCase();if(b.getGlobal(s)||Of.includes(s))return{float:{value:s,important:e}};return null}static getCSSFloat(t,e){let o=b.getVariable(t);if(o)return{"css-float":{value:o,important:e}};let s=this.getFloat(t,e);return s?{"css-float":s.float}:null}static getOutline(t,e){let o=b.getVariable(t);if(o)return{outline:{value:o,important:e}};let s=b.getGlobal(t);if(s)return{...this.getOutlineColor(s,e),...this.getOutlineStyle(s,e),...this.getOutlineWidth(s,e)};let n={...this.getOutlineColor("initial",e),...this.getOutlineStyle("initial",e),...this.getOutlineWidth("initial",e)},l=t.split(je);for(let a of l){let y=this.getOutlineWidth(a,e),u=this.getOutlineStyle(a,e),c=this.getOutlineColor(a,e);if(y===null&&u===null&&c===null)return null;Object.assign(n,y,u,c)}return n}static getOutlineColor(t,e){let o=b.getVariable(t)||b.getGlobal(t)||b.getColor(t);return o?{"outline-color":{value:o,important:e}}:null}static getOutlineOffset(t,e){let o=b.getVariable(t)||b.getLength(t);return o?{"outline-offset":{value:o,important:e}}:null}static getOutlineStyle(t,e){let o=b.getVariable(t);if(o)return{"outline-style":{value:o,important:e}};let s=t.toLowerCase();if(b.getGlobal(s)||mp.includes(s))return{"outline-style":{value:s,important:e}};return null}static getOutlineWidth(t,e){let o=b.getVariable(t);if(o)return{"outline-width":{value:o,important:e}};let s=t.toLowerCase(),n=yp.includes(s)||b.getGlobal(s)?s:b.getLength(t);if(n)return{"outline-width":{value:n,important:e}};return null}static getBorder(t,e){let o=b.getVariable(t);if(o)return{border:{value:o,important:e}};let s=b.getGlobal(t);if(s)return{...this.getBorderWidth(s,e),...this.getBorderStyle(s,e),...this.getBorderColor(s,e),...this.getBorderImage(s,e)};let n={...this.getBorderWidth("initial",e),...this.getBorderStyle("initial",e),...this.getBorderColor("initial",e),...this.getBorderImage("initial",e)},l=t.replace(/\s*,\s*/g,",").split(je);for(let a of l){let y=this.getBorderWidth(a,e),u=this.getBorderStyle(a,e),c=this.getBorderColor(a,e);if(y===null&&u===null&&c===null)return null;Object.assign(n,y,u,c)}return n}static getBorderWidth(t,e){let o=b.getVariable(t);if(o)return{"border-width":{value:o,important:e}};let s=b.getGlobal(t);if(s)return{...this.getBorderTopWidth(s,e),...this.getBorderRightWidth(s,e),...this.getBorderBottomWidth(s,e),...this.getBorderLeftWidth(s,e)};let n=t.split(je),l=this.getBorderTopWidth(n[0],e),a=this.getBorderRightWidth(n[1]||n[0],e),y=this.getBorderBottomWidth(n[2]||n[0],e),u=this.getBorderLeftWidth(n[3]||n[1]||n[0],e);if(!l||!a||!y||!u)return null;return{...l,...a,...y,...u}}static getBorderStyle(t,e){let o=b.getVariable(t);if(o)return{"border-style":{value:o,important:e}};let s=b.getGlobal(t);if(s)return{...this.getBorderTopStyle(s,e),...this.getBorderRightStyle(s,e),...this.getBorderBottomStyle(s,e),...this.getBorderLeftStyle(s,e)};let n=t.split(je),l=this.getBorderTopStyle(n[0],e),a=this.getBorderRightStyle(n[1]||n[0],e),y=this.getBorderBottomStyle(n[2]||n[0],e),u=this.getBorderLeftStyle(n[3]||n[1]||n[0],e);if(!l||!a||!y||!u)return null;return{...l,...a,...y,...u}}static getBorderColor(t,e){let o=b.getVariable(t);if(o)return{"border-color":{value:o,important:e}};let s=b.getGlobal(t);if(s)return{...this.getBorderTopColor(s,e),...this.getBorderRightColor(s,e),...this.getBorderBottomColor(s,e),...this.getBorderLeftColor(s,e)};let n=t.split(je),l=this.getBorderTopColor(n[0],e),a=this.getBorderRightColor(n[1]||n[0],e),y=this.getBorderBottomColor(n[2]||n[0],e),u=this.getBorderLeftColor(n[3]||n[1]||n[0],e);if(!l||!a||!y||!u)return null;return{...l,...a,...y,...u}}static getBorderImage(t,e){let o=b.getVariable(t);if(o)return{"border-image":{value:o,important:e}};let s=b.getGlobal(t);if(s)return{...this.getBorderImageSource(s,e),...this.getBorderImageSlice(s,e),...this.getBorderImageWidth(s,e),...this.getBorderImageOutset(s,e),...this.getBorderImageRepeat(s,e)};let n=t.replace(/\s\/\s/g,"/"),l=n.match(/\s*([a-zA-Z-]+\([^)]*\))\s*/);if(l)n=n.replace(l[0],"");let a=n.split(je);if(l)a.push(l[1]);let y={...this.getBorderImageSource("none",e),...this.getBorderImageSlice("100%",e),...this.getBorderImageWidth("1",e),...this.getBorderImageOutset("0",e),...this.getBorderImageRepeat("stretch",e)};for(let u=0,c=a.length;u<c;u++){let d=a[u],g=u>0?a[u-1]:"";if(!d.startsWith("url")&&d.includes("/")){let[f,E,R]=d.split("/"),H=this.getBorderImageSlice(`${g} ${f}`,e)||this.getBorderImageSlice(f,e),pt=this.getBorderImageWidth(E,e),gt=R&&this.getBorderImageOutset(R,e);if(!H||!pt||gt===null)return null;Object.assign(y,H,pt,gt)}else{let f=this.getBorderImageSlice(`${g} ${d}`,e)||this.getBorderImageSlice(d,e),E=this.getBorderImageSource(d,e),R=this.getBorderImageRepeat(d,e);if(!f&&!E&&!R)return null;Object.assign(y,f,E,R)}}return y}static getBorderImageSource(t,e){let o=b.getVariable(t);if(o)return{"border-image-source":{value:o,important:e}};let s=t.toLowerCase();if(b.getGlobal(s)||s==="none")return{"border-image-source":{important:e,value:s}};let n=b.getURL(t)||b.getGradient(t);if(!n)return null;return{"border-image-source":{important:e,value:n}}}static getBorderImageSlice(t,e){let o=b.getVariable(t);if(o)return{"border-image-slice":{value:o,important:e}};let s=t.toLowerCase();if(b.getGlobal(s))return{"border-image-slice":{important:e,value:s}};if(s!==s.trim())return null;let n=/(fill)|(calc\([^^)]+\))|([0-9]+%)|([0-9]+)/g,l=[],a;while(a=n.exec(s)){let y=s[a.index-1],u=s[a.index+a[0].length];if(y&&y!==" "||u&&u!==" ")return null;let c=a[1]&&"fill",d=a[2]&&b.getCalc(a[2]),g=a[3]&&b.getPercentage(a[3]),f=a[4]&&b.getInteger(a[4]);if(!c&&!d&&!g&&!f)return null;l.push(c||d||g||f)}if(!l.length||l.length>4)return null;return{"border-image-slice":{important:e,value:l.join(" ")}}}static getBorderImageWidth(t,e){let o=b.getVariable(t);if(o)return{"border-image-width":{value:o,important:e}};let s=t.toLowerCase();if(b.getGlobal(s))return{"border-image-width":{important:e,value:s}};let n=s.split(je);if(n.length>4)return null;for(let l of n)if(!b.getInteger(l)&&!b.getAutoMeasurement(l))return null;return{"border-image-width":{important:e,value:t}}}static getBorderImageOutset(t,e){if(t==="0")return{"border-image-outset":{important:e,value:t}};let o=b.getVariable(t);if(o)return{"border-image-outset":{value:o,important:e}};let s=t.toLowerCase();if(b.getGlobal(s))return{"border-image-outset":{important:e,value:s}};let n=t.split(je);if(n.length>4)return null;let l=[];for(let a of n){let y=b.getLength(a)||b.getFloat(a);if(!y)return null;l.push(y==="0px"?"0":y)}return{"border-image-outset":{important:e,value:l.join(" ")}}}static getBorderImageRepeat(t,e){let o=b.getVariable(t);if(o)return{"border-image-repeat":{value:o,important:e}};let s=t.toLowerCase();if(b.getGlobal(s))return{"border-image-repeat":{important:e,value:s}};let n=s.split(je);if(n.length>2)return null;for(let l of n)if(!Kf.includes(l))return null;return{"border-image-repeat":{important:e,value:t}}}static getBorderTopWidth(t,e){let o=b.getVariable(t);if(o)return{"border-top-width":{value:o,important:e}};let s=t.toLowerCase(),n=yp.includes(s)||b.getGlobal(s)?s:b.getLength(t);if(n)return{"border-top-width":{value:n,important:e}};return null}static getBorderRightWidth(t,e){let o=b.getVariable(t);if(o)return{"border-right-width":{value:o,important:e}};let s=t.toLowerCase(),n=yp.includes(s)||b.getGlobal(s)?s:b.getLength(t);if(n)return{"border-right-width":{value:n,important:e}};return null}static getBorderBottomWidth(t,e){let o=b.getVariable(t);if(o)return{"border-bottom-width":{value:o,important:e}};let s=t.toLowerCase(),n=yp.includes(s)||b.getGlobal(s)?s:b.getLength(t);if(n)return{"border-bottom-width":{value:n,important:e}};return null}static getBorderLeftWidth(t,e){let o=b.getVariable(t);if(o)return{"border-left-width":{value:o,important:e}};let s=t.toLowerCase(),n=yp.includes(s)||b.getGlobal(s)?s:b.getLength(t);if(n)return{"border-left-width":{value:n,important:e}};return null}static getBorderTopStyle(t,e){let o=b.getVariable(t);if(o)return{"border-top-style":{value:o,important:e}};let s=t.toLowerCase();if(b.getGlobal(s)||mp.includes(s))return{"border-top-style":{value:s,important:e}};return null}static getBorderRightStyle(t,e){let o=b.getVariable(t);if(o)return{"border-right-style":{value:o,important:e}};let s=t.toLowerCase();if(b.getGlobal(s)||mp.includes(s))return{"border-right-style":{value:s,important:e}};return null}static getBorderBottomStyle(t,e){let o=b.getVariable(t);if(o)return{"border-bottom-style":{value:o,important:e}};let s=t.toLowerCase();if(b.getGlobal(s)||mp.includes(s))return{"border-bottom-style":{value:s,important:e}};return null}static getBorderLeftStyle(t,e){let o=b.getVariable(t);if(o)return{"border-left-style":{value:o,important:e}};let s=t.toLowerCase();if(b.getGlobal(s)||mp.includes(s))return{"border-left-style":{value:s,important:e}};return null}static getBorderTopColor(t,e){let o=b.getVariable(t);if(o)return{"border-top-color":{value:o,important:e}};let s=b.getGlobal(t)||b.getColor(t);return s?{"border-top-color":{value:s,important:e}}:null}static getBorderRightColor(t,e){let o=b.getVariable(t);if(o)return{"border-right-color":{value:o,important:e}};let s=b.getGlobal(t)||b.getColor(t);return s?{"border-right-color":{value:s,important:e}}:null}static getBorderBottomColor(t,e){let o=b.getVariable(t);if(o)return{"border-bottom-color":{value:o,important:e}};let s=b.getGlobal(t)||b.getColor(t);return s?{"border-bottom-color":{value:s,important:e}}:null}static getBorderLeftColor(t,e){let o=b.getVariable(t);if(o)return{"border-left-color":{value:o,important:e}};let s=b.getGlobal(t)||b.getColor(t);return s?{"border-left-color":{value:s,important:e}}:null}static getBorderRadius(t,e){let o=b.getVariable(t);if(o)return{"border-radius":{value:o,important:e}};let s=b.getGlobal(t);if(s)return{...this.getBorderTopLeftRadius(s,e),...this.getBorderTopRightRadius(s,e),...this.getBorderBottomRightRadius(s,e),...this.getBorderBottomLeftRadius(s,e)};let n=t.split(je),l=this.getBorderTopLeftRadius(n[0],e),a=this.getBorderTopRightRadius(n[1]||n[0],e),y=this.getBorderBottomRightRadius(n[2]||n[0],e),u=this.getBorderBottomLeftRadius(n[3]||n[1]||n[0],e);if(!l||!a||!y||!u)return null;return{...l,...a,...y,...u}}static getBorderTopLeftRadius(t,e){let o=b.getVariable(t);if(o)return{"border-top-left-radius":{value:o,important:e}};let s=b.getGlobal(t)||b.getMeasurement(t);return s?{"border-top-left-radius":{important:e,value:s}}:null}static getBorderTopRightRadius(t,e){let o=b.getVariable(t);if(o)return{"border-top-right-radius":{value:o,important:e}};let s=b.getGlobal(t)||b.getMeasurement(t);return s?{"border-top-right-radius":{important:e,value:s}}:null}static getBorderBottomRightRadius(t,e){let o=b.getVariable(t);if(o)return{"border-bottom-right-radius":{value:o,important:e}};let s=b.getGlobal(t)||b.getMeasurement(t);return s?{"border-bottom-right-radius":{important:e,value:s}}:null}static getBorderBottomLeftRadius(t,e){let o=b.getVariable(t);if(o)return{"border-bottom-left-radius":{value:o,important:e}};let s=b.getGlobal(t)||b.getMeasurement(t);return s?{"border-bottom-left-radius":{important:e,value:s}}:null}static getBorderTop(t,e){let o=b.getVariable(t);if(o)return{"border-top":{value:o,important:e}};let s=b.getGlobal(t);if(s)return{...this.getBorderTopWidth(s,e),...this.getBorderTopStyle(s,e),...this.getBorderTopColor(s,e)};let n={...this.getBorderTopWidth("initial",e),...this.getBorderTopStyle("initial",e),...this.getBorderTopColor("initial",e)},l=t.split(je);for(let a of l){let y=this.getBorderTopWidth(a,e),u=this.getBorderTopStyle(a,e),c=this.getBorderTopColor(a,e);if(y===null&&u===null&&c===null)return null;Object.assign(n,y,u,c)}return n}static getBorderRight(t,e){let o=b.getVariable(t);if(o)return{"border-right":{value:o,important:e}};let s=b.getGlobal(t);if(s)return{...this.getBorderRightWidth(s,e),...this.getBorderRightStyle(s,e),...this.getBorderRightColor(s,e)};let n={...this.getBorderRightWidth("initial",e),...this.getBorderRightStyle("initial",e),...this.getBorderRightColor("initial",e)},l=t.split(je);for(let a of l){let y=this.getBorderRightWidth(a,e),u=this.getBorderRightStyle(a,e),c=this.getBorderRightColor(a,e);if(y===null&&u===null&&c===null)return null;Object.assign(n,y,u,c)}return n}static getBorderBottom(t,e){let o=b.getVariable(t);if(o)return{"border-bottom":{value:o,important:e}};let s=b.getGlobal(t);if(s)return{...this.getBorderBottomWidth(s,e),...this.getBorderBottomStyle(s,e),...this.getBorderBottomColor(s,e)};let n={...this.getBorderBottomWidth("initial",e),...this.getBorderBottomStyle("initial",e),...this.getBorderBottomColor("initial",e)},l=t.split(je);for(let a of l){let y=this.getBorderBottomWidth(a,e),u=this.getBorderBottomStyle(a,e),c=this.getBorderBottomColor(a,e);if(y===null&&u===null&&c===null)return null;Object.assign(n,y,u,c)}return n}static getBorderLeft(t,e){let o=b.getVariable(t);if(o)return{"border-left":{value:o,important:e}};let s=b.getGlobal(t);if(s)return{...this.getBorderLeftWidth(s,e),...this.getBorderLeftStyle(s,e),...this.getBorderLeftColor(s,e)};let n={...this.getBorderLeftWidth("initial",e),...this.getBorderLeftStyle("initial",e),...this.getBorderLeftColor("initial",e)},l=t.split(je);for(let a of l){let y=this.getBorderLeftWidth(a,e),u=this.getBorderLeftStyle(a,e),c=this.getBorderLeftColor(a,e);if(y===null&&u===null&&c===null)return null;Object.assign(n,y,u,c)}return n}static getPadding(t,e){let o=b.getVariable(t);if(o)return{padding:{value:o,important:e}};let s=b.getGlobal(t);if(s)return{...this.getPaddingTop(s,e),...this.getPaddingRight(s,e),...this.getPaddingBottom(s,e),...this.getPaddingLeft(s,e)};let n=t.split(je),l=this.getPaddingTop(n[0],e),a=this.getPaddingRight(n[1]||n[0],e),y=this.getPaddingBottom(n[2]||n[0],e),u=this.getPaddingLeft(n[3]||n[1]||n[0],e);if(!l||!a||!y||!u)return null;return{...l,...a,...y,...u}}static getPaddingTop(t,e){let o=b.getVariable(t);if(o)return{"padding-top":{value:o,important:e}};let s=b.getGlobal(t)||b.getMeasurement(t);return s?{"padding-top":{value:s,important:e}}:null}static getPaddingRight(t,e){let o=b.getVariable(t);if(o)return{"padding-right":{value:o,important:e}};let s=b.getGlobal(t)||b.getMeasurement(t);return s?{"padding-right":{value:s,important:e}}:null}static getPaddingBottom(t,e){let o=b.getVariable(t);if(o)return{"padding-bottom":{value:o,important:e}};let s=b.getGlobal(t)||b.getMeasurement(t);return s?{"padding-bottom":{value:s,important:e}}:null}static getPaddingLeft(t,e){let o=b.getVariable(t);if(o)return{"padding-left":{value:o,important:e}};let s=b.getGlobal(t)||b.getMeasurement(t);return s?{"padding-left":{value:s,important:e}}:null}static getMargin(t,e){let o=b.getVariable(t);if(o)return{margin:{value:o,important:e}};let s=b.getGlobal(t);if(s)return{...this.getMarginTop(s,e),...this.getMarginRight(s,e),...this.getMarginBottom(s,e),...this.getMarginLeft(s,e)};let n=t.split(je),l=this.getMarginTop(n[0],e),a=this.getMarginRight(n[1]||n[0],e),y=this.getMarginBottom(n[2]||n[0],e),u=this.getMarginLeft(n[3]||n[1]||n[0],e);if(!l||!a||!y||!u)return null;return{...l,...a,...y,...u}}static getMarginTop(t,e){let o=b.getVariable(t);if(o)return{"margin-top":{value:o,important:e}};let s=b.getGlobal(t)||b.getAutoMeasurement(t);return s?{"margin-top":{value:s,important:e}}:null}static getMarginRight(t,e){let o=b.getVariable(t);if(o)return{"margin-right":{value:o,important:e}};let s=b.getGlobal(t)||b.getAutoMeasurement(t);return s?{"margin-right":{value:s,important:e}}:null}static getMarginBottom(t,e){let o=b.getVariable(t);if(o)return{"margin-bottom":{value:o,important:e}};let s=b.getGlobal(t)||b.getAutoMeasurement(t);return s?{"margin-bottom":{value:s,important:e}}:null}static getMarginLeft(t,e){let o=b.getVariable(t);if(o)return{"margin-left":{value:o,important:e}};let s=b.getGlobal(t)||b.getAutoMeasurement(t);return s?{"margin-left":{value:s,important:e}}:null}static getFlex(t,e){let o=b.getVariable(t);if(o)return{flex:{value:o,important:e}};let s=t.trim().toLowerCase(),n=b.getGlobal(t);if(n)return{...this.getFlexGrow(n,e),...this.getFlexShrink(n,e),...this.getFlexBasis(n,e)};switch(s){case"none":return{...this.getFlexGrow("0",e),...this.getFlexShrink("0",e),...this.getFlexBasis("auto",e)};case"auto":return{...this.getFlexGrow("1",e),...this.getFlexShrink("1",e),...this.getFlexBasis("auto",e)}}let l=b.getContentMeasurement(s);if(l)return{...this.getFlexGrow("1",e),...this.getFlexShrink("1",e),...this.getFlexBasis(l,e)};let a=t.split(je),y=this.getFlexGrow(a[0],e),u=this.getFlexShrink(a[1]||"1",e),c=this.getFlexBasis(a[2]||"0%",e);if(!y||!u||!c)return null;return{...y,...u,...c}}static getFlexBasis(t,e){let o=b.getVariable(t);if(o)return{"flex-basis":{value:o,important:e}};let s=t.toLowerCase();if(b.getGlobal(s)||Df.includes(s))return{"flex-basis":{value:s,important:e}};let n=b.getContentMeasurement(s);return n?{"flex-basis":{value:n,important:e}}:null}static getFlexShrink(t,e){let o=b.getVariable(t);if(o)return{"flex-shrink":{value:o,important:e}};let s=b.getGlobal(t)||b.getFloat(t);return s?{"flex-shrink":{value:s,important:e}}:null}static getFlexGrow(t,e){let o=b.getVariable(t);if(o)return{"flex-grow":{value:o,important:e}};let s=b.getGlobal(t)||b.getFloat(t);return s?{"flex-grow":{value:s,important:e}}:null}static getBackground(t,e){let o=b.getVariable(t);if(o)return{background:{value:o,important:e}};let s=b.getGlobal(t);if(s)return{...this.getBackgroundImage(s,e),...this.getBackgroundPosition(s,e),...this.getBackgroundSize(s,e),...this.getBackgroundRepeat(s,e),...this.getBackgroundAttachment(s,e),...this.getBackgroundOrigin(s,e),...this.getBackgroundClip(s,e),...this.getBackgroundColor(s,e)};let n={...this.getBackgroundImage("initial",e),...this.getBackgroundPosition("initial",e),...this.getBackgroundSize("initial",e),...this.getBackgroundRepeat("initial",e),...this.getBackgroundAttachment("initial",e),...this.getBackgroundOrigin("initial",e),...this.getBackgroundClip("initial",e),...this.getBackgroundColor("initial",e)},l=Hl.splitBySpace(t.replace(/\s+\/\s+/g,"/")),a=[];for(let y of l)if(!y.startsWith("url")&&y.includes("/")){let[u,c]=y.split("/"),d=this.getBackgroundPositionX(u,e),g=this.getBackgroundPositionY(u,e),f=this.getBackgroundSize(c,e);if(!d&&!g||!f)return null;if(g)a.push(g["background-position-y"].value);else if(d)a.push(d["background-position-x"].value);Object.assign(n,f)}else{let u=this.getBackgroundImage(y,e),c=this.getBackgroundRepeat(y,e),d=this.getBackgroundAttachment(y,e),g=this.getBackgroundPositionX(y,e),f=this.getBackgroundPositionY(y,e),E=this.getBackgroundColor(y,e),R=this.getBackgroundOrigin(y,e),H=this.getBackgroundClip(y,e);if(!u&&!c&&!d&&!g&&!f&&!E&&!R&&!H)return null;if(g)a.push(g["background-position-x"].value);else if(f)a.push(f["background-position-y"].value);Object.assign(n,u,c,d,E,R,H)}if(a.length)Object.assign(n,this.getBackgroundPosition(a.join(" "),e));return n}static getBackgroundSize(t,e){let o=b.getVariable(t);if(o)return{"background-size":{value:o,important:e}};let s=t.toLowerCase();if(b.getGlobal(s))return{"background-size":{value:s,important:e}};let n=s.split(oc),l=[];for(let a of n){let y=a.trim().split(" ");if(y.length!==1&&y.length!==2)return null;if(y.length===1){if(y[0]!=="cover"&&y[0]!=="contain"&&!b.getAutoMeasurement(y[0]))return null;l.push(y[0])}else{if(!b.getAutoMeasurement(y[0])||!b.getAutoMeasurement(y[1]))return null;l.push(`${y[0]} ${y[1]}`)}}if(l.length===1)return{"background-size":{value:l.join(", "),important:e}};return null}static getBackgroundOrigin(t,e){let o=b.getVariable(t);if(o)return{"background-origin":{value:o,important:e}};let s=t.toLowerCase();if(b.getGlobal(s)||Rf.includes(s))return{"background-origin":{value:s,important:e}};return null}static getBackgroundClip(t,e){let o=b.getVariable(t);if(o)return{"background-clip":{value:o,important:e}};let s=t.toLowerCase();if(b.getGlobal(s)||Ff.includes(s))return{"background-clip":{value:s,important:e}};return null}static getBackgroundRepeat(t,e){let o=b.getVariable(t);if(o)return{"background-repeat":{value:o,important:e}};let s=t.toLowerCase();if(b.getGlobal(s)||If.includes(s))return{"background-repeat":{value:s,important:e}};return null}static getBackgroundAttachment(t,e){let o=b.getVariable(t);if(o)return{"background-attachment":{value:o,important:e}};let s=t.toLowerCase();if(b.getGlobal(s)||Vf.includes(s))return{"background-attachment":{value:s,important:e}};return null}static getBackgroundPosition(t,e){let o=b.getVariable(t);if(o)return{"background-position":{value:o,important:e}};let s=b.getGlobal(t);if(s)return{...this.getBackgroundPositionX(s,e),...this.getBackgroundPositionY(s,e)};let n=t.split(oc),l="",a="";for(let c of n){let d=c.trim().split(je);if(l)l+=",",a+=",";switch(d.length){case 1:if(d[0]==="top"||d[0]==="bottom")l+="center",a+=d[0];else if(d[0]==="left"||d[0]==="right")l+=d[0],a+="center";else if(d[0]==="center")l+="center",a+="center";break;case 2:l+=d[0]==="top"||d[0]==="bottom"?d[1]:d[0],a+=d[0]==="top"||d[0]==="bottom"?d[0]:d[1];break;case 3:if(d[0]==="top"||d[0]==="bottom"||d[1]==="left"||d[1]==="right"||d[2]==="left"||d[2]==="right")if(b.getMeasurement(d[1]))l+=d[2],a+=`${d[0]} ${d[1]}`;else l+=`${d[1]} ${d[2]}`,a+=d[0];else if(b.getMeasurement(d[1]))l+=`${d[0]} ${d[1]}`,a+=d[2];else l+=d[0],a+=`${d[1]} ${d[2]}`;break;case 4:l+=d[0]==="top"||d[0]==="bottom"||d[1]==="top"||d[1]==="bottom"?`${d[2]} ${d[3]}`:`${d[0]} ${d[1]}`,a+=d[0]==="top"||d[0]==="bottom"||d[1]==="top"||d[1]==="bottom"?`${d[0]} ${d[1]}`:`${d[2]} ${d[3]}`;break;default:return null}}let y=this.getBackgroundPositionX(l,e),u=this.getBackgroundPositionY(a,e);if(y&&u)return{...y,...u};return null}static getBackgroundPositionX(t,e){let o=b.getVariable(t);if(o)return{"background-position-x":{value:o,important:e}};let s=t.toLowerCase();if(b.getGlobal(s))return{"background-position-x":{value:s,important:e}};let n=s.split(oc),l="";for(let a of n){let y=a.trim().split(je);if(l)l+=",";for(let u of y){let c=b.getMeasurement(u);if(!c&&u!=="left"&&u!=="right"&&u!=="center")return null;if(l)l+=" ";l+=c||u}}return{"background-position-x":{value:l,important:e}}}static getBackgroundPositionY(t,e){let o=b.getVariable(t);if(o)return{"background-position-y":{value:o,important:e}};let s=t.toLowerCase();if(b.getGlobal(s))return{"background-position-y":{value:s,important:e}};let n=s.split(oc),l="";for(let a of n){let y=a.trim().split(je);if(l)l+=",";for(let u of y){let c=b.getMeasurement(u);if(!c&&u!=="top"&&u!=="bottom"&&u!=="center")return null;if(l)l+=" ";l+=c||u}}return{"background-position-y":{value:l,important:e}}}static getBackgroundColor(t,e){let o=b.getVariable(t);if(o)return{"background-color":{value:o,important:e}};let s=b.getGlobal(t)||b.getColor(t);return s?{["background-color"]:{important:e,value:s}}:null}static getBackgroundImage(t,e){let o=b.getVariable(t);if(o)return{"background-image":{value:o,important:e}};let s=t.toLowerCase();if(b.getGlobal(s)||s==="none")return{"background-image":{value:s,important:e}};let n=Hl.splitByComma(t),l=[];for(let a of n){let y=b.getURL(a.trim())||b.getGradient(a.trim());if(!y)return null;l.push(y)}if(l.length)return{"background-image":{value:l.join(", "),important:e}};return null}static getColor(t,e){let o=b.getVariable(t);if(o)return{color:{value:o,important:e}};let s=b.getGlobal(t)||b.getColor(t);return s?{color:{important:e,value:s}}:null}static getFloodColor(t,e){let o=b.getVariable(t);if(o)return{"flood-color":{value:o,important:e}};let s=b.getGlobal(t)||b.getColor(t);return s?{"flood-color":{important:e,value:s}}:null}static getFont(t,e){let o=b.getVariable(t);if(o)return{font:{value:o,important:e}};let s=t.toLowerCase();if(b.getGlobal(s))return{...this.getFontStyle(s,e),...this.getFontVariant(s,e),...this.getFontWeight(s,e),...this.getFontStretch(s,e),...this.getFontSize(s,e),...this.getLineHeight(s,e),...this.getFontFamily(s,e)};if(Gf.includes(s))return{font:{value:s,important:e}};let n={...this.getFontStyle("normal",e),...this.getFontVariant("normal",e),...this.getFontWeight("normal",e),...this.getFontStretch("normal",e),...this.getLineHeight("normal",e)},l=t.replace(/\s*\/\s*/g,"/").split(je);for(let a=0,y=l.length;a<y;a++){let u=l[a];if(u.includes("/")){let[c,d]=u.split("/"),g=this.getFontSize(c,e),f=this.getLineHeight(d,e);if(!g||!f)return null;Object.assign(n,g,f)}else{let c=this.getFontStyle(u,e),d=this.getFontVariant(u,e),g=this.getFontWeight(u,e),f=this.getFontSize(u,e),E=this.getFontStretch(u,e);if(c)Object.assign(n,c);else if(d)Object.assign(n,d);else if(g)Object.assign(n,g);else if(f)Object.assign(n,f);else if(E)Object.assign(n,E);else{let R=l.slice(a).join(" "),H=this.getFontFamily(R,e);if(!H)return null;Object.assign(n,H);break}}}return n}static getFontStyle(t,e){let o=b.getVariable(t);if(o)return{"font-style":{value:o,important:e}};let s=t.toLowerCase();if(b.getGlobal(s)||Hf.includes(s))return{"font-style":{value:s,important:e}};let n=t.split(je);if(n.length===2&&n[0]==="oblique")return b.getDegree(n[1])?{"font-style":{value:s,important:e}}:null;return null}static getFontVariant(t,e){let o=b.getVariable(t);if(o)return{"font-variant":{value:o,important:e}};let s=t.toLowerCase();return b.getGlobal(s)||s==="normal"||s==="small-caps"?{"font-variant":{value:s,important:e}}:null}static getFontStretch(t,e){let o=b.getVariable(t);if(o)return{"font-stretch":{value:o,important:e}};let s=t.toLowerCase();if(b.getGlobal(s)||_f.includes(s))return{"font-stretch":{value:s,important:e}};let n=b.getPercentage(t);return n?{"font-stretch":{value:n,important:e}}:null}static getFontWeight(t,e){let o=b.getVariable(t);if(o)return{"font-weight":{value:o,important:e}};let s=t.toLowerCase();if(b.getGlobal(s)||Uf.includes(s))return{"font-weight":{value:s,important:e}};let n=b.getInteger(t);return n?{"font-weight":{value:n,important:e}}:null}static getFontSize(t,e){let o=b.getVariable(t);if(o)return{"font-size":{value:o,important:e}};let s=t.toLowerCase();if(b.getGlobal(s)||Wf.includes(s))return{"font-size":{value:s,important:e}};let n=b.getMeasurement(t);return n?{"font-size":{value:n,important:e}}:null}static getLineHeight(t,e){let o=b.getVariable(t);if(o)return{"line-height":{value:o,important:e}};let s=t.toLowerCase();if(b.getGlobal(s)||s==="normal")return{"line-height":{value:s,important:e}};let n=b.getFloat(t)||b.getMeasurement(t);return n?{"line-height":{value:n,important:e}}:null}static getFontFamily(t,e){let o=b.getVariable(t);if(o)return{"font-family":{value:o,important:e}};let s=b.getGlobal(t);if(s)return{"font-family":{value:s,important:e}};let n=t.split(","),l="",a=!1;for(let y=0,u=n.length;y<u;y++){let c=n[y].trim().replace(/'/g,'"');if(!c)return null;if(c.includes(" ")){let d=(c.match(/"/g)||[]).length;if((c[0]!=='"'||y!==0)&&d!==2&&d!==0)return null;if(c[0]==='"'&&c[c.length-1]!=='"')a=!0;else if(c[0]!=='"'&&c[c.length-1]!=='"')c=`"${c}"`}else c=c.replace(/"/g,"");if(y>0)l+=", ";l+=c}if(a)l+='"';if(!l)return null;return{"font-family":{important:e,value:l}}}static getTextTransform(t,e){let o=b.getVariable(t);if(o)return{"text-transform":{value:o,important:e}};let s=t.toLowerCase(),n=b.getGlobal(s)||Qf.includes(s)&&s;if(n)return{"text-transform":{value:n,important:e}};return null}static getVisibility(t,e){let o=b.getVariable(t);if(o)return{visibility:{value:o,important:e}};let s=t.toLowerCase(),n=b.getGlobal(s)||jf.includes(s)&&s;if(n)return{visibility:{value:n,important:e}};return null}static getAspectRatio(t,e){let o=b.getVariable(t);if(o)return{"aspect-ratio":{value:o,important:e}};let s=t.toLowerCase();if(b.getGlobal(s))return{"aspect-ratio":{value:s,important:e}};let n=t,l=n.includes("auto");if(l)n=n.replace("auto","");if(n=n.replace(kf,""),!n)return{"aspect-ratio":{value:"auto",important:e}};let a=n.split("/");if(a.length>3)return null;let y=Number(a[0]),u=a[1]?Number(a[1]):1;if(isNaN(y)||isNaN(u))return null;if(l)return{"aspect-ratio":{value:`auto ${y} / ${u}`,important:e}};return{"aspect-ratio":{value:`${y} / ${u}`,important:e}}}}class yr{static getMargin(t){return this.getPaddingLikeProperty(["margin-top","margin-right","margin-bottom","margin-left"],t)}static getPadding(t){return this.getPaddingLikeProperty(["padding-top","padding-right","padding-bottom","padding-left"],t)}static getOutline(t){if(!t["outline-color"]?.value||!t["outline-style"]?.value||!t["outline-width"]?.value)return null;let e=t["outline-color"].important&&t["outline-style"].important&&t["outline-width"].important;if(b.getGlobalExceptInitial(t["outline-width"].value)&&t["outline-width"].value===t["outline-style"].value&&t["outline-width"].value===t["outline-color"].value)return{important:e,value:t["outline-width"].value};let o=[];if(!b.getInitial(t["outline-color"]?.value))o.push(t["outline-color"].value);if(!b.getInitial(t["outline-style"]?.value))o.push(t["outline-style"].value);if(!b.getInitial(t["outline-width"].value))o.push(t["outline-width"].value);return{important:e,value:o.join(" ")}}static getBorder(t){if(!t["border-top-width"]?.value||t["border-top-width"]?.value!==t["border-right-width"]?.value||t["border-top-width"]?.value!==t["border-bottom-width"]?.value||t["border-top-width"]?.value!==t["border-left-width"]?.value||!t["border-top-style"]?.value||t["border-top-style"]?.value!==t["border-right-style"]?.value||t["border-top-style"]?.value!==t["border-bottom-style"]?.value||t["border-top-style"]?.value!==t["border-left-style"]?.value||!t["border-top-color"]?.value||t["border-top-color"]?.value!==t["border-right-color"]?.value||t["border-top-color"]?.value!==t["border-bottom-color"]?.value||t["border-top-color"]?.value!==t["border-left-color"]?.value||!t["border-image-source"]?.value||!t["border-image-slice"]?.value||!t["border-image-width"]?.value||!t["border-image-outset"]?.value||!t["border-image-repeat"]?.value)return null;let e=t["border-top-width"].important&&t["border-right-width"].important&&t["border-bottom-width"].important&&t["border-left-width"].important&&t["border-top-style"].important&&t["border-right-style"].important&&t["border-bottom-style"].important&&t["border-left-style"].important&&t["border-top-color"].important&&t["border-right-color"].important&&t["border-bottom-color"].important&&t["border-left-color"].important&&t["border-image-source"].important&&t["border-image-slice"].important&&t["border-image-width"].important&&t["border-image-outset"].important&&t["border-image-repeat"].important;if(b.getGlobalExceptInitial(t["border-top-width"].value)||b.getGlobalExceptInitial(t["border-top-style"].value)||b.getGlobalExceptInitial(t["border-top-color"].value)||b.getGlobalExceptInitial(t["border-image-source"].value)||b.getGlobalExceptInitial(t["border-image-slice"].value)||b.getGlobalExceptInitial(t["border-image-width"].value)||b.getGlobalExceptInitial(t["border-image-outset"].value)||b.getGlobalExceptInitial(t["border-image-repeat"].value)){if(t["border-top-width"].value!==t["border-top-style"].value||t["border-top-width"].value!==t["border-top-color"].value||t["border-top-width"].value!==t["border-image-source"].value||t["border-top-width"].value!==t["border-image-slice"].value||t["border-top-width"].value!==t["border-image-width"].value||t["border-top-width"].value!==t["border-image-outset"].value||t["border-top-width"].value!==t["border-image-repeat"].value)return null;return{important:e,value:t["border-top-width"].value}}let o=[];if(!b.getInitial(t["border-top-width"].value))o.push(t["border-top-width"].value);if(!b.getInitial(t["border-top-style"].value))o.push(t["border-top-style"].value);if(!b.getInitial(t["border-top-color"].value))o.push(t["border-top-color"].value);return{important:e,value:o.join(" ")}}static getBorderTop(t){return this.getBorderTopRightBottomLeft("top",t)}static getBorderRight(t){return this.getBorderTopRightBottomLeft("right",t)}static getBorderBottom(t){return this.getBorderTopRightBottomLeft("bottom",t)}static getBorderLeft(t){return this.getBorderTopRightBottomLeft("left",t)}static getBorderColor(t){return this.getPaddingLikeProperty(["border-top-color","border-right-color","border-bottom-color","border-left-color"],t)}static getBorderWidth(t){return this.getPaddingLikeProperty(["border-top-width","border-right-width","border-bottom-width","border-left-width"],t)}static getBorderStyle(t){return this.getPaddingLikeProperty(["border-top-style","border-right-style","border-bottom-style","border-left-style"],t)}static getBorderRadius(t){return this.getPaddingLikeProperty(["border-top-left-radius","border-top-right-radius","border-bottom-right-radius","border-bottom-left-radius"],t)}static getBorderImage(t){if(!t["border-image-source"]?.value||!t["border-image-slice"]?.value||!t["border-image-width"]?.value||!t["border-image-outset"]?.value||!t["border-image-repeat"]?.value)return null;let e=t["border-image-source"].important&&t["border-image-slice"].important&&t["border-image-width"].important&&t["border-image-outset"].important&&t["border-image-repeat"].important;if(b.getGlobal(t["border-image-source"].value)||b.getGlobal(t["border-image-slice"].value)||b.getGlobal(t["border-image-width"].value)||b.getGlobal(t["border-image-outset"].value)||b.getGlobal(t["border-image-repeat"].value)){if(t["border-image-source"].value!==t["border-image-slice"].value||t["border-image-source"].value!==t["border-image-width"].value||t["border-image-source"].value!==t["border-image-outset"].value||t["border-image-source"].value!==t["border-image-repeat"].value)return null;return{important:e,value:t["border-image-source"].value}}return{important:e,value:`${t["border-image-source"].value} ${t["border-image-slice"].value} / ${t["border-image-width"].value} / ${t["border-image-outset"].value} ${t["border-image-repeat"].value}`}}static getBackground(t){if(!t["background-image"]?.value||!t["background-repeat"]?.value||!t["background-attachment"]?.value||!t["background-position-x"]?.value||!t["background-position-y"]?.value||!t["background-color"]?.value||!t["background-size"]?.value||!t["background-origin"]?.value||!t["background-clip"]?.value)return null;let e=t["background-image"].important&&t["background-repeat"].important&&t["background-attachment"].important&&t["background-position-x"].important&&t["background-position-y"].important&&t["background-color"].important&&t["background-size"].important&&t["background-origin"].important&&t["background-clip"].important;if(b.getGlobalExceptInitial(t["background-image"].value)||b.getGlobalExceptInitial(t["background-repeat"].value)||b.getGlobalExceptInitial(t["background-attachment"].value)||b.getGlobalExceptInitial(t["background-position-x"].value)||b.getGlobalExceptInitial(t["background-position-y"].value)||b.getGlobalExceptInitial(t["background-color"].value)||b.getGlobalExceptInitial(t["background-size"].value)||b.getGlobalExceptInitial(t["background-origin"].value)||b.getGlobalExceptInitial(t["background-clip"].value)){if(t["background-image"].value!==t["background-repeat"].value||t["background-image"].value!==t["background-attachment"].value||t["background-image"].value!==t["background-position-x"].value||t["background-image"].value!==t["background-position-y"].value||t["background-image"].value!==t["background-color"].value||t["background-image"].value!==t["background-size"].value||t["background-image"].value!==t["background-origin"].value||t["background-image"].value!==t["background-clip"].value)return null;return{important:e,value:t["background-image"].value}}let o=[];if(!b.getInitial(t["background-image"].value))o.push(t["background-image"].value);if(!b.getInitial(t["background-position-x"].value)&&!b.getInitial(t["background-position-y"].value)&&!b.getInitial(t["background-size"].value))o.push(`${t["background-position-x"].value} ${t["background-position-y"].value} / ${t["background-size"].value}`);else if(!b.getInitial(t["background-position-x"].value)&&!b.getInitial(t["background-position-y"].value))o.push(`${t["background-position-x"].value} ${t["background-position-y"].value}`);if(!b.getInitial(t["background-repeat"].value))o.push(t["background-repeat"].value);if(!b.getInitial(t["background-attachment"].value))o.push(t["background-attachment"].value);if(!b.getInitial(t["background-origin"].value))o.push(t["background-origin"].value);if(!b.getInitial(t["background-clip"].value))o.push(t["background-clip"].value);if(!b.getInitial(t["background-color"].value))o.push(t["background-color"].value);return{important:e,value:o.join(" ")}}static getBackgroundPosition(t){if(!t["background-position-x"]?.value||!t["background-position-y"]?.value)return null;let e=t["background-position-x"].important&&t["background-position-y"].important;if(b.getGlobal(t["background-position-x"].value)||b.getGlobal(t["background-position-y"].value)){if(t["background-position-x"].value!==t["background-position-y"].value)return null;return{important:e,value:t["background-position-x"].value}}let o=t["background-position-x"].value.replace(/ *, */g,",").split(","),s=t["background-position-y"].value.replace(/ *, */g,",").split(","),n=[];for(let l=0;l<o.length;l++)n.push(`${o[l]} ${s[l]}`);return{important:e,value:n.join(", ")}}static getFlex(t){if(!t["flex-grow"]?.value||!t["flex-shrink"]?.value||!t["flex-basis"]?.value)return null;let e=t["flex-grow"].important&&t["flex-shrink"].important&&t["flex-basis"].important;if(b.getGlobal(t["flex-grow"].value)||b.getGlobal(t["flex-shrink"].value)||b.getGlobal(t["flex-basis"].value)){if(t["flex-grow"].value!==t["flex-shrink"].value||t["flex-grow"].value!==t["flex-basis"].value)return null;return{important:e,value:t["flex-grow"].value}}return{important:e,value:`${t["flex-grow"].value} ${t["flex-shrink"].value} ${t["flex-basis"].value}`}}static getFont(t){if(!t["font-size"]?.value||!t["font-family"]?.value||!t["font-weight"]?.value||!t["font-style"]?.value||!t["font-variant"]?.value||!t["font-stretch"]?.value||!t["line-height"]?.value)return null;let e=t["font-size"].important&&t["font-family"].important&&t["font-weight"].important&&t["font-style"].important&&t["font-variant"].important&&t["font-stretch"].important&&t["line-height"].important;if(b.getGlobal(t["font-size"].value)||b.getGlobal(t["font-family"].value)||b.getGlobal(t["font-weight"].value)||b.getGlobal(t["font-style"].value)||b.getGlobal(t["font-variant"].value)||b.getGlobal(t["font-stretch"].value)||b.getGlobal(t["line-height"].value)){if(t["font-size"].value!==t["font-family"].value||t["font-size"].value!==t["font-weight"].value||t["font-size"].value!==t["font-style"].value||t["font-size"].value!==t["font-variant"].value||t["font-size"].value!==t["font-stretch"].value||t["font-size"].value!==t["line-height"].value)return null;return{important:e,value:t["font-size"].value}}let o=[];if(t["font-style"].value!=="normal")o.push(t["font-style"].value);if(t["font-variant"].value!=="normal")o.push(t["font-variant"].value);if(t["font-weight"].value!=="normal")o.push(t["font-weight"].value);if(t["font-stretch"].value!=="normal")o.push(t["font-stretch"].value);if(t["line-height"].value!=="normal")o.push(`${t["font-size"].value} / ${t["line-height"].value}`);else o.push(t["font-size"].value);return o.push(t["font-family"].value),{important:e,value:o.join(" ")}}static getBorderTopRightBottomLeft(t,e){if(!e[`border-${t}-width`]?.value||!e[`border-${t}-style`]?.value||!e[`border-${t}-color`]?.value)return null;let o=e[`border-${t}-width`].important&&e[`border-${t}-style`].important&&e[`border-${t}-color`].important;if(b.getGlobalExceptInitial(e[`border-${t}-width`].value)&&e[`border-${t}-width`].value===e[`border-${t}-style`].value&&e[`border-${t}-width`].value===e[`border-${t}-color`].value)return{important:o,value:e[`border-${t}-width`].value};let s=[];if(!b.getInitial(e[`border-${t}-width`].value))s.push(e[`border-${t}-width`].value);if(!b.getInitial(e[`border-${t}-style`]?.value))s.push(e[`border-${t}-style`].value);if(!b.getInitial(e[`border-${t}-color`]?.value))s.push(e[`border-${t}-color`].value);return{important:o,value:s.join(" ")}}static getPaddingLikeProperty(t,e){if(!e[t[0]]?.value||!e[t[1]]?.value||!e[t[2]]?.value||!e[t[3]]?.value)return null;let o=e[t[0]].important&&e[t[1]].important&&e[t[2]].important&&e[t[3]].important;if(b.getGlobal(e[t[0]].value)||b.getGlobal(e[t[1]].value)||b.getGlobal(e[t[2]].value)||b.getGlobal(e[t[3]].value)){if(e[t[0]].value!==e[t[1]].value||e[t[0]].value!==e[t[2]].value||e[t[0]].value!==e[t[3]].value)return null;return{important:o,value:e[t[0]].value}}let s=[e[t[0]].value];if(e[t[1]].value!==e[t[0]].value||e[t[2]].value!==e[t[0]].value||e[t[3]].value!==e[t[1]].value)s.push(e[t[1]].value);if(e[t[2]].value!==e[t[0]].value||e[t[3]].value!==e[t[1]].value)s.push(e[t[2]].value);if(e[t[3]].value!==e[t[1]].value)s.push(e[t[3]].value);return{important:o,value:s.join(" ")}}}var qf=/\s*([^:;]+?)\s*:\s*((?:[^(;]*?(?:\([^)]*\))?)*?)\s*(!important)?\s*(?:$|;)/g;class Ua{static parse(t){let e={},o=[],s=new RegExp(qf),n;while(n=s.exec(t)){let l=(n[1]??"").trim(),a=(n[2]??"").trim(),y=n[3]?!0:!1;if(l&&a){if(l.startsWith("--"))e[l]=a;o.push({name:l,value:a,important:y})}}return{rules:o,properties:e}}}var $f=[["margin"],["padding"],["border",["border-width","border-style","border-color","border-image"]],["border-radius"],["background","background-position"],["font"]];class ps{properties={};definedPropertyNames={};constructor(t){if(t?.cssText){let{rules:e}=Ua.parse(t.cssText);for(let o of e)if(o.important||!this.get(o.name)?.important)this.set(o.name,o.value,o.important)}}get(t){if(this.properties[t])return this.properties[t];switch(t){case"margin":return yr.getMargin(this.properties);case"padding":return yr.getPadding(this.properties);case"border":return yr.getBorder(this.properties);case"border-top":return yr.getBorderTop(this.properties);case"border-right":return yr.getBorderRight(this.properties);case"border-bottom":return yr.getBorderBottom(this.properties);case"border-left":return yr.getBorderLeft(this.properties);case"border-color":return yr.getBorderColor(this.properties);case"border-style":return yr.getBorderStyle(this.properties);case"border-width":return yr.getBorderWidth(this.properties);case"border-radius":return yr.getBorderRadius(this.properties);case"border-image":return yr.getBorderImage(this.properties);case"outline":return yr.getOutline(this.properties);case"background":return yr.getBackground(this.properties);case"background-position":return yr.getBackgroundPosition(this.properties);case"flex":return yr.getFlex(this.properties);case"font":return yr.getFont(this.properties)}return this.properties[t]||null}remove(t){switch(delete this.properties[t],delete this.definedPropertyNames[t],t){case"border":delete this.properties["border-top-width"],delete this.properties["border-right-width"],delete this.properties["border-bottom-width"],delete this.properties["border-left-width"],delete this.properties["border-top-style"],delete this.properties["border-right-style"],delete this.properties["border-bottom-style"],delete this.properties["border-left-style"],delete this.properties["border-top-color"],delete this.properties["border-right-color"],delete this.properties["border-bottom-color"],delete this.properties["border-left-color"],delete this.properties["border-image-source"],delete this.properties["border-image-slice"],delete this.properties["border-image-width"],delete this.properties["border-image-outset"],delete this.properties["border-image-repeat"];break;case"border-top":delete this.properties["border-top-width"],delete this.properties["border-top-style"],delete this.properties["border-top-color"],delete this.properties["border-image-source"],delete this.properties["border-image-slice"],delete this.properties["border-image-width"],delete this.properties["border-image-outset"],delete this.properties["border-image-repeat"];break;case"border-right":delete this.properties["border-right-width"],delete this.properties["border-right-style"],delete this.properties["border-right-color"],delete this.properties["border-image-source"],delete this.properties["border-image-slice"],delete this.properties["border-image-width"],delete this.properties["border-image-outset"],delete this.properties["border-image-repeat"];break;case"border-bottom":delete this.properties["border-bottom-width"],delete this.properties["border-bottom-style"],delete this.properties["border-bottom-color"],delete this.properties["border-image-source"],delete this.properties["border-image-slice"],delete this.properties["border-image-width"],delete this.properties["border-image-outset"],delete this.properties["border-image-repeat"];break;case"border-left":delete this.properties["border-left-width"],delete this.properties["border-left-style"],delete this.properties["border-left-color"],delete this.properties["border-image-source"],delete this.properties["border-image-slice"],delete this.properties["border-image-width"],delete this.properties["border-image-outset"],delete this.properties["border-image-repeat"];break;case"border-width":delete this.properties["border-top-width"],delete this.properties["border-right-width"],delete this.properties["border-bottom-width"],delete this.properties["border-left-width"];break;case"border-style":delete this.properties["border-top-style"],delete this.properties["border-right-style"],delete this.properties["border-bottom-style"],delete this.properties["border-left-style"];break;case"border-color":delete this.properties["border-top-color"],delete this.properties["border-right-color"],delete this.properties["border-bottom-color"],delete this.properties["border-left-color"];break;case"border-image":delete this.properties["border-image-source"],delete this.properties["border-image-slice"],delete this.properties["border-image-width"],delete this.properties["border-image-outset"],delete this.properties["border-image-repeat"];break;case"border-radius":delete this.properties["border-top-left-radius"],delete this.properties["border-top-right-radius"],delete this.properties["border-bottom-right-radius"],delete this.properties["border-bottom-left-radius"];break;case"outline":delete this.properties["outline-color"],delete this.properties["outline-style"],delete this.properties["outline-width"];break;case"background":delete this.properties["background-color"],delete this.properties["background-image"],delete this.properties["background-repeat"],delete this.properties["background-attachment"],delete this.properties["background-position-x"],delete this.properties["background-position-y"],delete this.properties["background-size"],delete this.properties["background-origin"],delete this.properties["background-clip"];break;case"background-position":delete this.properties["background-position-x"],delete this.properties["background-position-y"];break;case"flex":delete this.properties["flex-grow"],delete this.properties["flex-shrink"],delete this.properties["flex-basis"];break;case"font":delete this.properties["font-style"],delete this.properties["font-variant"],delete this.properties["font-weight"],delete this.properties["font-stretch"],delete this.properties["font-size"],delete this.properties["line-height"],delete this.properties["font-family"];break;case"padding":delete this.properties["padding-top"],delete this.properties["padding-right"],delete this.properties["padding-bottom"],delete this.properties["padding-left"];break;case"margin":delete this.properties["margin-top"],delete this.properties["margin-right"],delete this.properties["margin-bottom"],delete this.properties["margin-left"];break}}set(t,e,o){if(e===null){this.remove(t);return}let s=null;switch(t){case"border":s=X.getBorder(e,o);break;case"border-top":s=X.getBorderTop(e,o);break;case"border-right":s=X.getBorderRight(e,o);break;case"border-bottom":s=X.getBorderBottom(e,o);break;case"border-left":s=X.getBorderLeft(e,o);break;case"border-width":s=X.getBorderWidth(e,o);break;case"border-style":s=X.getBorderStyle(e,o);break;case"border-color":s=X.getBorderColor(e,o);break;case"border-image":s=X.getBorderImage(e,o);break;case"border-image-source":s=X.getBorderImageSource(e,o);break;case"border-image-slice":s=X.getBorderImageSlice(e,o);break;case"border-image-width":s=X.getBorderImageWidth(e,o);break;case"border-image-outset":s=X.getBorderImageOutset(e,o);break;case"border-image-repeat":s=X.getBorderImageRepeat(e,o);break;case"border-top-width":s=X.getBorderTopWidth(e,o);break;case"border-right-width":s=X.getBorderRightWidth(e,o);break;case"border-bottom-width":s=X.getBorderBottomWidth(e,o);break;case"border-left-width":s=X.getBorderLeftWidth(e,o);break;case"border-top-color":s=X.getBorderTopColor(e,o);break;case"border-right-color":s=X.getBorderRightColor(e,o);break;case"border-bottom-color":s=X.getBorderBottomColor(e,o);break;case"border-left-color":s=X.getBorderLeftColor(e,o);break;case"border-top-style":s=X.getBorderTopStyle(e,o);break;case"border-right-style":s=X.getBorderRightStyle(e,o);break;case"border-bottom-style":s=X.getBorderBottomStyle(e,o);break;case"border-left-style":s=X.getBorderLeftStyle(e,o);break;case"border-radius":s=X.getBorderRadius(e,o);break;case"border-top-left-radius":s=X.getBorderTopLeftRadius(e,o);break;case"border-top-right-radius":s=X.getBorderTopRightRadius(e,o);break;case"border-bottom-right-radius":s=X.getBorderBottomRightRadius(e,o);break;case"border-bottom-left-radius":s=X.getBorderBottomLeftRadius(e,o);break;case"border-collapse":s=X.getBorderCollapse(e,o);break;case"outline":s=X.getOutline(e,o);break;case"outline-width":s=X.getOutlineWidth(e,o);break;case"outline-style":s=X.getOutlineStyle(e,o);break;case"outline-color":s=X.getOutlineColor(e,o);break;case"letter-spacing":s=X.getLetterSpacing(e,o);break;case"word-spacing":s=X.getWordSpacing(e,o);break;case"clear":s=X.getClear(e,o);break;case"clip":s=X.getClip(e,o);break;case"css-float":s=X.getCSSFloat(e,o);break;case"float":s=X.getFloat(e,o);break;case"display":s=X.getDisplay(e,o);break;case"direction":s=X.getDirection(e,o);break;case"flex":s=X.getFlex(e,o);break;case"flex-shrink":s=X.getFlexShrink(e,o);break;case"flex-grow":s=X.getFlexGrow(e,o);break;case"flex-basis":s=X.getFlexBasis(e,o);break;case"padding":s=X.getPadding(e,o);break;case"padding-top":s=X.getPaddingTop(e,o);break;case"padding-right":s=X.getPaddingRight(e,o);break;case"padding-bottom":s=X.getPaddingBottom(e,o);break;case"padding-left":s=X.getPaddingLeft(e,o);break;case"margin":s=X.getMargin(e,o);break;case"margin-top":s=X.getMarginTop(e,o);break;case"margin-right":s=X.getMarginRight(e,o);break;case"margin-bottom":s=X.getMarginBottom(e,o);break;case"margin-left":s=X.getMarginLeft(e,o);break;case"background":s=X.getBackground(e,o);break;case"background-image":s=X.getBackgroundImage(e,o);break;case"background-color":s=X.getBackgroundColor(e,o);break;case"background-repeat":s=X.getBackgroundRepeat(e,o);break;case"background-attachment":s=X.getBackgroundAttachment(e,o);break;case"background-position":s=X.getBackgroundPosition(e,o);break;case"width":s=X.getWidth(e,o);break;case"height":s=X.getHeight(e,o);break;case"top":s=X.getTop(e,o);break;case"right":s=X.getRight(e,o);break;case"bottom":s=X.getBottom(e,o);break;case"left":s=X.getLeft(e,o);break;case"font":s=X.getFont(e,o);break;case"font-style":s=X.getFontStyle(e,o);break;case"font-variant":s=X.getFontVariant(e,o);break;case"font-weight":s=X.getFontWeight(e,o);break;case"font-stretch":s=X.getFontStretch(e,o);break;case"font-size":s=X.getFontSize(e,o);break;case"line-height":s=X.getLineHeight(e,o);break;case"text-indent":s=X.getTextIndent(e,o);break;case"font-family":s=X.getFontFamily(e,o);break;case"color":s=X.getColor(e,o);break;case"flood-color":s=X.getFloodColor(e,o);break;case"text-transform":s=X.getTextTransform(e,o);break;case"visibility":s=X.getVisibility(e,o);break;case"aspect-ratio":s=X.getAspectRatio(e,o);break;default:let n=e.trim();if(n){let l=b.getGlobal(n);s={[t]:{value:l||n,important:o}}}break}if(s!==null&&Object.keys(s).length>0)this.definedPropertyNames[t]=!0,Object.assign(this.properties,s)}clone(){let e=new this.constructor;return e.properties=JSON.parse(JSON.stringify(this.properties)),e.definedPropertyNames=Object.assign({},this.definedPropertyNames),e}size(){return Object.keys(this.properties).length}item(t){return Object.keys(this.properties)[t]||""}toString(){let t=[],e=this.clone(),o={};for(let s of $f)for(let n of s)if(Array.isArray(n)){let l=!1;for(let a of n){let y=e.get(a);if(y)o[a]=y,e.remove(a),l=!0}if(l)break}else{let l=e.get(n);if(l){o[n]=l,e.remove(n);break}}for(let s of Object.keys(e.properties))o[s]=e.get(s);for(let s of Object.keys(this.definedPropertyNames)){let n=o[s];if(n)t.push(`${s}: ${n.value}${n.important?" !important":""};`),delete o[s]}for(let s of Object.keys(o)){let n=o[s];if(n)t.push(`${s}: ${n.value}${n.important?" !important":""};`)}return t.join(" ")}}var Wg={default:"display: inline;",A:"",ABBR:"",ADDRESS:"display: block;",AREA:"",ARTICLE:"display: block;",ASIDE:"display: block;",AUDIO:"display: none;",B:"",BASE:"display: none;",BDI:"",BDO:"",BLOCKQUAOTE:"",BODY:"display: block;",TEMPLATE:"display: none;",FORM:"display: block;",INPUT:"display: inline-block;",TEXTAREA:"display: inline-block;",SCRIPT:"display: none;",IMG:"",LINK:"display: none;",STYLE:"display: none;",LABEL:"",SLOT:"display: contents;",SVG:"",CIRCLE:"",ELLIPSE:"",LINE:"",PATH:"",POLYGON:"",POLYLINE:"",RECT:"",STOP:"",USE:"",META:"display: none;",BLOCKQUOTE:"display: block;",BR:"",BUTTON:"display: inline-block;",CANVAS:"",CAPTION:"display: table-caption;",CITE:"",CODE:"",COL:"display: table-column;",COLGROUP:"display: table-column-group;",DATA:"",DATALIST:"display: none;",DD:"display: block;",DEL:"",DETAILS:"display: block;",DFN:"",DIALOG:{default:"display: none;",open:"display: block;"},DIV:"display: block;",DL:"display: block;",DT:"display: block;",EM:"",EMBED:"",FIELDSET:"display: block;",FIGCAPTION:"display: block;",FIGURE:"display: block;",FOOTER:"display: block;",H1:"display: block;",H2:"display: block;",H3:"display: block;",H4:"display: block;",H5:"display: block;",H6:"display: block;",HEAD:"display: none;",HEADER:"display: block;",HGROUP:"display: block;",HR:"display: block;",HTML:'display: block;direction: ltr;font: 16px "Times New Roman";',I:"",IFRAME:"",INS:"",KBD:"",LEGEND:"display: block;",LI:"display: list-item;",MAIN:"display: block;",MAP:"",MARK:"",MATH:"",MENU:"display: block;",MENUITEM:"",METER:"display: inline-block;",NAV:"display: block;",NOSCRIPT:"",OBJECT:"",OL:"display: block;",OPTGROUP:"display: block;",OPTION:"display: block;",OUTPUT:"unicode-bidi: isolate;",P:"display: block;",PARAM:"display: none;",PICTURE:"",PRE:"display: block;",PROGRESS:"display: inline-block;",Q:"",RB:"",RP:"display: none;",RT:"",RTC:"",RUBY:"",S:"",SAMP:"",SECTION:"display: block;",SELECT:"display: inline-block;",SMALL:"",SOURCE:"",SPAN:"",STRONG:"",SUB:"",SUMMARY:"display: block;",SUP:"",TABLE:"display: table;",TBODY:"display: table-row-group;",TD:"display: table-cell;",TFOOT:"display: table-footer-group;",TH:"display: table-cell;",THEAD:"display: table-header-group;",TIME:"",TITLE:"display: none;",TR:"display: table-row;",TRACK:"",U:"",UL:"display: block;",VAR:"",VIDEO:"",WBR:""};var _g={"border-collapse":!0,"border-spacing":!0,"caption-side":!0,color:!0,cursor:!0,direction:!0,"empty-cells":!0,"font-family":!0,"font-size":!0,"font-style":!0,"font-variant":!0,"font-weight":!0,"font-size-adjust":!0,"font-stretch":!0,font:!0,"letter-spacing":!0,"line-height":!0,"list-style-image":!0,"list-style-position":!0,"list-style-type":!0,"list-style":!0,orphans:!0,quotes:!0,"tab-size":!0,"text-align":!0,"text-align-last":!0,"text-decoration-color":!0,"text-indent":!0,"text-justify":!0,"text-shadow":!0,"text-transform":!0,visibility:!0,"white-space":!0,widows:!0,"word-break":!0,"word-spacing":!0,"word-wrap":!0};var Yg=["background-position-x","background-position-y","background-size","border-image-outset","border-top-width","border-right-width","border-bottom-width","border-left-width","border-top-left-radius","border-top-right-radius","border-bottom-right-radius","border-bottom-left-radius","border-image-width","clip","font-size","padding-top","padding-right","padding-bottom","padding-left","margin-top","margin-right","margin-bottom","margin-left","width","height","min-width","min-height","max-width","max-height","top","right","bottom","left","outline-width","outline-offset","letter-spacing","word-spacing","text-indent","line-height"];class fe{target;classes;cache=new Map;constructor(t,e){this.target=t,this.classes=e}bind(t){if(this.cache.has(t)||t===Symbol.iterator||t==="constructor")return;this.cache.set(t,!0);let e=this.target;if(!(t in e))return;for(let o of this.classes){let s=Object.getOwnPropertyDescriptor(o.prototype,t);if(s){if(typeof s.value==="function"){if(s.value.toString().startsWith("class "))return;Object.defineProperty(e,t,{...s,value:s.value.bind(e)})}else if(s.get!==void 0)Object.defineProperty(e,t,{...s,get:s.get?.bind(e),set:s.set?.bind(e)});return}}}preventBinding(t){this.cache.set(t,!0)}}class pp{[Q];[Vt];constructor(t,e){if(t!==h)throw TypeError("Illegal constructor");this[Q]=e;let o=new fe(this,this.constructor!==pp?[this.constructor,pp]:[pp]),s=new Proxy(this,{get:(n,l)=>{if(l==="length")return e.length;if(l in n||typeof l==="symbol")return o.bind(l),n[l];if(l==="")return;let a=Number(l);if(!isNaN(a))return e[a]},set(n,l,a){if(o.bind(l),typeof l==="symbol")return n[l]=a,!0;let y=Number(l);if(isNaN(y))n[l]=a;return!0},deleteProperty(n,l){if(typeof l==="symbol")return delete n[l],!0;let a=Number(l);if(isNaN(a))delete n[l];return!0},ownKeys(){return Object.keys(e)},has(n,l){if(l in n)return!0;if(typeof l==="symbol")return!1;let a=Number(l);return!isNaN(a)&&a>=0&&a<e.length},defineProperty(n,l,a){if(o.preventBinding(l),l in n)return Object.defineProperty(n,l,a),!0;return!1},getOwnPropertyDescriptor(n,l){if(l in n||typeof l==="symbol")return;let a=Number(l);if(!isNaN(a)&&e[a])return{value:e[a],writable:!1,enumerable:!0,configurable:!0}}});return this[Vt]=s,s}get length(){return this[Q].length}get[Symbol.toStringTag](){return"NodeList"}toLocaleString(){return"[object NodeList]"}toString(){return"[object NodeList]"}item(t){let e=this[Q];return t>=0&&e[t]?e[t]:null}[Symbol.iterator](){return this[Q][Symbol.iterator]()}values(){return this[Q].values()}entries(){return this[Q].entries()}forEach(t,e){let o=this[Q],s=this[Vt]??this;for(let n=0,l=o.length;n<l;n++){let a=o[n];t.call(e??a[m],a,n,s)}}keys(){return this[Q].keys()}}var Yo=pp;var Db;(function(t){t.none="none",t.descendant="descendant",t.child="child",t.adjacentSibling="adjacentSibling",t.subsequentSibling="subsequentSibling"})(Db||(Db={}));var ce=Db;class up{root;scope;tagName;id;classNames;attributes;pseudos;isPseudoElement;combinator;ignoreErrors;constructor(t){this.root=t?.scope?.[x]?.documentElement||t?.scope?.[m].document?.documentElement||null,this.scope=t?.scope||null,this.tagName=t?.tagName||null,this.id=t?.id||null,this.classNames=t?.classNames||null,this.attributes=t?.attributes||null,this.pseudos=t?.pseudos||null,this.isPseudoElement=t?.isPseudoElement||!1,this.combinator=t?.combinator||ce.none,this.ignoreErrors=t?.ignoreErrors||!1}match(t){let e=0;if(this.isPseudoElement)return null;if(this.tagName){if(this.tagName!=="*"&&this.tagName!==t[z].toUpperCase())return null;e+=1}if(this.id){if(this.id!==t.id)return null;e+=100}if(this.classNames){let o=this.matchClass(t);if(!o)return null;e+=o.priorityWeight}if(this.attributes){let o=this.matchAttributes(t);if(!o)return null;e+=o.priorityWeight}if(this.pseudos){let o=this.matchPseudo(t);if(!o)return null;e+=o.priorityWeight}return{priorityWeight:e}}matchPseudo(t){let e=t[W],o=t[W]?t[W][bt]:[];if(!this.pseudos)return{priorityWeight:0};let s=0;for(let n of this.pseudos){switch(n.name){case"not":case"nth-child":case"nth-of-type":case"nth-last-child":case"nth-last-of-type":case"is":case"where":if(!n.arguments){if(this.ignoreErrors)return null;throw new t[m].DOMException(`Failed to execute 'matches' on '${t.constructor.name}': '${this.getSelectorString()}' is not a valid selector.`)}break}if(!e)switch(n.name){case"first-child":case"last-child":case"only-child":case"first-of-type":case"last-of-type":case"only-of-type":case"nth-child":case"nth-of-type":case"nth-last-child":case"nth-last-of-type":return null}let l=this.matchPseudoItem(t,o,n);if(!l)return null;s+=l.priorityWeight}return{priorityWeight:s}}matchPseudoItem(t,e,o){switch(o.name){case"first-child":return e[0]===t?{priorityWeight:10}:null;case"last-child":return e.length&&e[e.length-1]===t?{priorityWeight:10}:null;case"only-child":return e.length===1&&e[0]===t?{priorityWeight:10}:null;case"first-of-type":for(let g of e)if(g[z]===t[z])return g===t?{priorityWeight:10}:null;return null;case"last-of-type":for(let g=e.length-1;g>=0;g--){let f=e[g];if(f[z]===t[z])return f===t?{priorityWeight:10}:null}return null;case"only-of-type":let s=!1;for(let g of e)if(g[z]===t[z]){if(s||g!==t)return null;s=!0}return s?{priorityWeight:10}:null;case"checked":return t[z]==="INPUT"&&t.checked?{priorityWeight:10}:null;case"disabled":return"disabled"in t&&t.hasAttribute("disabled")?{priorityWeight:10}:null;case"empty":return!t[bt].length?{priorityWeight:10}:null;case"root":return this.root&&t===this.root?{priorityWeight:10}:null;case"not":for(let g of o.selectorItems)if(g.match(t))return null;return{priorityWeight:10};case"nth-child":let n=-1;if(o.selectorItems?.[0]&&!o.selectorItems[0].match(t))return null;for(let g=0,f=e.length;g<f;g++){if(!o.selectorItems?.[0]||o.selectorItems[0].match(e[g]))n++;if(e[g]===t)return n!==-1&&o.nthFunction(n+1)?{priorityWeight:10}:null}return null;case"nth-of-type":let l=-1;for(let g=0,f=e.length;g<f;g++){if(e[g][z]===t[z])l++;if(e[g]===t)return l!==-1&&o.nthFunction(l+1)?{priorityWeight:10}:null}return null;case"nth-last-child":let a=-1;if(o.selectorItems?.[0]&&!o.selectorItems[0].match(t))return null;for(let g=e.length-1;g>=0;g--){if(!o.selectorItems?.[0]||o.selectorItems[0].match(e[g]))a++;if(e[g]===t)return a!==-1&&o.nthFunction(a+1)?{priorityWeight:10}:null}return null;case"nth-last-of-type":let y=-1;for(let g=e.length-1;g>=0;g--){if(e[g][z]===t[z])y++;if(e[g]===t)return y!==-1&&o.nthFunction(y+1)?{priorityWeight:10}:null}return null;case"target":let u=t[x].location.hash;if(!u)return null;return t.isConnected&&t.id===u.slice(1)?{priorityWeight:10}:null;case"is":let c=0;if(!o.selectorItems)return null;for(let g of o.selectorItems){let f=g.match(t);if(f&&c<f.priorityWeight)c=f.priorityWeight}return c?{priorityWeight:c}:null;case"where":if(!o.selectorItems)return null;for(let g of o.selectorItems)if(g.match(t))return{priorityWeight:0};return null;case"has":let d=0;if(o.arguments&&o.selectorItems)if(o.arguments[0]==="+"){let g=t.nextElementSibling;if(!g)return null;for(let f of o.selectorItems){let E=f.match(g);if(E&&d<E.priorityWeight)d=E.priorityWeight}}else if(o.arguments[0]===">")for(let g of o.selectorItems)for(let f of t[bt]){let E=g.match(f);if(E&&d<E.priorityWeight){d=E.priorityWeight;break}}else for(let g of o.selectorItems){let f=this.matchChildOfElement(g,t);if(f&&d<f.priorityWeight)d=f.priorityWeight}return d?{priorityWeight:d}:null;case"focus":case"focus-visible":return t[x].activeElement===t?{priorityWeight:10}:null;case"scope":return this.scope&&this.scope===t?{priorityWeight:10}:null;default:return null}}matchAttributes(t){if(!this.attributes)return null;let e=0;for(let o of this.attributes){let s=t[St].getNamedItem(o.name);if(!s)return null;if(e+=10,o.value!==null&&(s[q]===null||o.regExp&&!o.regExp.test(s[q])||!o.regExp&&o.value!==s[q]))return null}return{priorityWeight:e}}matchClass(t){if(!this.classNames)return null;let e=0;for(let o of this.classNames){if(!t.classList.contains(o))return null;e+=10}return{priorityWeight:e}}matchChildOfElement(t,e){for(let o of e[bt]){let s=t.match(o);if(s)return s;let n=this.matchChildOfElement(t,o);if(n)return n}return null}getSelectorString(){return`${this.tagName?this.tagName.toLowerCase():""}${this.id?`#${this.id}`:""}${this.classNames?`.${this.classNames.join(".")}`:""}${this.attributes?this.attributes.map((t)=>`[${t.name}${t.value?`${t.operator||""}="${t.value}"`:""}]`).join(""):""}${this.pseudos?this.pseudos.map((t)=>`:${t.name}${t.arguments?`(${t.arguments})`:""}`).join(""):""}`}}var Xf=/(\s*[\s,+>~]\s*)|([\[\]\(\)"'])/gm,zf=/(\*)|([a-zA-Z0-9\u00A0-\uFFFF-]+)|#(([a-zA-Z0-9\u00A0-\uFFFF_-]|\\.)+)|\.(([a-zA-Z0-9\u00A0-\uFFFF_-]|\\.)+)|\[(([a-zA-Z0-9-_]|\\.)+)\]|\[(([a-zA-Z0-9-_]|\\.)+)\s*([~|^$*]{0,1})\s*=\s*("([^"]*)"|'([^']*)')\s*(s|i){0,1}\]|\[(([a-zA-Z0-9-_]|\\.)+)\s*([~|^$*]{0,1})\s*=\s*(([a-zA-Z0-9\u00A0-\uFFFF_\u00A4\u00A3-]|\\.)+)\]|:([a-zA-Z-]+)\s*\(.+\)|:([a-zA-Z-]+)|::([a-zA-Z-]+)/gm,Jf=/:([a-zA-Z-]+)|([()])/gm,hp=/\\/g,Zf=/\\([0-9a-fA-F]{1,6})\s?|\\(.)/g,tP=/[.*+?^${}()|[\]\\]/g,Kg={odd:(t)=>(t+1)%2===0,even:(t)=>(t+1)%2!==0,alwaysFalse:()=>!1},eP=/ /g;class us{window;scope;ignoreErrors;constructor(t){this.window=t.window,this.scope=t.scope,this.ignoreErrors=t.ignoreErrors??!1}getSelectorItem(t){return this.getSelectorGroups(t)[0][0]}getSelectorGroups(t){t=t.trim();let e=[],o=[e],s=new RegExp(Xf),n={parentheses:0,brackets:0,doubleApostrophe:0,singleApostrophe:0},l=this.scope.nodeType===T.documentNode?"Document":"Element",a=new this.window.SyntaxError(`Failed to execute 'querySelectorAll' on '${l}': '${t}' is not a valid selector.`),y=null,u=0,c=null,d=ce.none;while(y=s.exec(t))if(y[1]){if(n.parentheses===0&&n.brackets===0&&n.singleApostrophe===0&&n.doubleApostrophe===0){let g=t.substring(u,y.index).trim();switch(y[1].trim()){case",":if(c=this.getSelectorGroupItem(g,d),!c){if(this.ignoreErrors)return[];throw a}e.push(c),e=[],o.push(e),d=ce.none;break;case">":if(c=this.getSelectorGroupItem(g,d),!c){if(this.ignoreErrors)return[];throw a}e.push(c),d=ce.child;break;case"+":if(c=this.getSelectorGroupItem(g,d),!c){if(this.ignoreErrors)return[];throw a}e.push(c),d=ce.adjacentSibling;break;case"~":if(c=this.getSelectorGroupItem(g,d),!c){if(this.ignoreErrors)return[];throw a}e.push(c),d=ce.subsequentSibling;break;case"":if(c=this.getSelectorGroupItem(g,d),!c){if(this.ignoreErrors)return[];throw a}e.push(c),d=ce.descendant;break}u=s.lastIndex}}else switch(y[2]){case"(":if(n.singleApostrophe===0&&n.doubleApostrophe===0)n.parentheses++;break;case")":if(n.singleApostrophe===0&&n.doubleApostrophe===0)n.parentheses--;break;case"[":if(n.singleApostrophe===0&&n.doubleApostrophe===0)n.brackets++;break;case"]":if(n.singleApostrophe===0&&n.doubleApostrophe===0)n.brackets--;break;case'"':if(n.singleApostrophe===0)n.doubleApostrophe=n.doubleApostrophe===1?0:1;break;case"'":if(n.doubleApostrophe===0)n.singleApostrophe=n.singleApostrophe===1?0:1;break}if(c=this.getSelectorGroupItem(t.substring(u),d),!c||n.parentheses!==0||n.brackets!==0||n.singleApostrophe!==0||n.doubleApostrophe!==0){if(this.ignoreErrors)return[];throw a}if(d===ce.none&&e.length>0)o.push([c]);else e.push(c);return o}getSelectorGroupItem(t,e){t=t.trim();let o=this.ignoreErrors,s=this.scope;if(!t)return null;if(t==="*")return new up({scope:s,tagName:"*",combinator:e,ignoreErrors:o});let n=new RegExp(zf),l=new up({scope:s,combinator:e,ignoreErrors:o}),a,y=0;while(a=n.exec(t)){if(t.substring(y,a.index).trim()!=="")return null;if(a[1])l.tagName="*";else if(a[2])l.tagName=a[2].toUpperCase();else if(a[3])l.id=a[3].replace(hp,"");else if(a[5])l.classNames=l.classNames||[],l.classNames.push(a[5].replace(hp,""));else if(a[7])l.attributes=l.attributes||[],l.attributes.push({name:a[7].replace(hp,""),operator:null,value:null,modifier:null,regExp:null});else if(a[9]&&(a[13]!==void 0||a[14]!==void 0)){let u=a[13]??a[14],c=us.cssUnescape(u);l.attributes=l.attributes||[],l.attributes.push({name:a[9].replace(hp,""),operator:a[11]||null,value:c,modifier:a[15]||null,regExp:this.getAttributeRegExp({operator:a[11],value:c,modifier:a[15]})})}else if(a[16]&&a[19]!==void 0){let u=us.cssUnescape(a[19]);l.attributes=l.attributes||[],l.attributes.push({name:a[16].replace(hp,""),operator:a[18]||null,value:u,modifier:null,regExp:this.getAttributeRegExp({operator:a[18],value:u})})}else if(a[21]){let u=new RegExp(Jf),c=null,d=null,g=0,f=-1;while(c=u.exec(a[0]))if(c[1]){if(g===0)d=c[1]}else if(c[2]){if(c[2]==="("){if(g===0)f=u.lastIndex;g++}else if(c[2]===")"){if(g--,g<0)return null;if(g===0){if(f===-1||!d)return null;l.pseudos=l.pseudos||[],l.pseudos.push(this.getPseudo(d,a[0].substring(f,c.index))),d=null,f=-1}}}}else if(a[22])l.pseudos=l.pseudos||[],l.pseudos.push(this.getPseudo(a[22],null));else if(a[23])l.isPseudoElement=!0;y=n.lastIndex}if(y<t.length)return null;return l}getAttributeRegExp(t){let e=t.modifier==="i"?"i":"";if(!t.operator||!t.value)return null;let o=t.value.replace(tP,"\\$&");switch(t.operator){case"~":return new RegExp(`[- ]${o}|${o}[- ]|^${o}$`,e);case"|":return new RegExp(`^${o}[- ]|^${o}$`,e);case"^":return new RegExp(`^${o}`,e);case"$":return new RegExp(`${o}$`,e);case"*":return new RegExp(`${o}`,e);default:return null}}getPseudo(t,e){let o=t.toLowerCase();if(e)e=e.trim();if(!e)return{name:o,arguments:null,selectorItems:null,nthFunction:null};switch(o){case"nth-last-child":case"nth-child":let s=e.indexOf(" of "),n=s!==-1?e.substring(0,s):e,l=s!==-1?this.getSelectorItem(e.substring(s+4).trim()):null;return{name:o,arguments:e,selectorItems:l?[l]:null,nthFunction:this.getPseudoNthFunction(n)};case"nth-of-type":case"nth-last-of-type":return{name:o,arguments:e,selectorItems:null,nthFunction:this.getPseudoNthFunction(e)};case"not":let a=[];for(let c of this.getSelectorGroups(e))if(c[0])a.push(c[0]);return{name:o,arguments:e,selectorItems:a,nthFunction:null};case"is":case"where":let y=[];for(let c of this.getSelectorGroups(e))if(c[0])y.push(c[0]);return{name:o,arguments:e,selectorItems:y,nthFunction:null};case"has":let u=[];if(!e.includes(":has(")){let c=e;if(e[0]==="+")c=e.replace("+","");else if(e[0]===">")c=e.replace(">","");for(let d of this.getSelectorGroups(c))if(d[0])u.push(d[0])}return{name:o,arguments:e||"",selectorItems:u,nthFunction:null};case"scope":case"root":default:return{name:o,arguments:e,selectorItems:null,nthFunction:null}}}getPseudoNthFunction(t){if(!t)return null;if(t==="odd")return Kg.odd;else if(t==="even")return Kg.even;let e=t.replace(eP,"").split("n"),o=parseInt(e[0],10)||0;if(e[0]=="-")o=-1;if(e.length===1)return(n)=>n==o;let s=parseInt(e[1],10)||0;if(e[0]=="+")s=1;if(o>=1||o<=-1){if(o>=1){if(Math.abs(o)===1)return(n)=>n>s-1;return(n)=>n>s-1&&(n+-1*s)%o===0}if(Math.abs(o)===1)return(n)=>n<s+1;return(n)=>n<s+1&&(n+-1*s)%o===0}if(e[0])return(n)=>n===s;return(n)=>n>s-1}static cssUnescape(t){return t.replace(Zf,(e,o,s)=>{if(o)return String.fromCodePoint(parseInt(o,16));return s})}}var Bb=/^[.#\[]?\d|[.#]$/;class yt{static querySelectorAll(t,e){let o=t[m];if(e==="")throw new o.DOMException(`Failed to execute 'querySelectorAll' on '${t.constructor.name}': The provided selector is empty.`);if(typeof e==="function")throw new o.DOMException(`Failed to execute 'querySelectorAll' on '${t.constructor.name}': '${e}' is not a valid selector.`);if(typeof e==="symbol")throw new o.TypeError(`Failed to execute 'querySelectorAll' on '${t.constructor.name}': Cannot convert a Symbol value to a string`);if(e=String(e),Bb.test(e))throw new o.DOMException(`Failed to execute 'querySelectorAll' on '${t.constructor.name}': '${e}' is not a valid selector.`);let s=t[U].querySelectorAll,n=s.get(e);if(n){if(n.result!==null){let E=n.result.deref();if(E)return E}s.delete(e)}let l=t[D]===T.documentNode?t.documentElement:t,a=new us({window:o,scope:l}).getSelectorGroups(e),y=[],u=new Yo(h,y),c=new Map,d=[],g={result:new WeakRef(u)};if(t[U].querySelectorAll.set(e,g),t[tt])(t[x]||t)[He].push(g);for(let E of a){let R=t[D]===T.elementNode?this.findAll(t,[t],E,g):this.findAll(null,t[bt],E,g);for(let H of R)if(!c.has(H.documentPosition))c.set(H.documentPosition,H.element),d.push(H.documentPosition)}let f=d.sort();for(let E=0,R=f.length;E<R;E++)y.push(c.get(f[E]));return u}static querySelector(t,e){let o=t[m];if(e==="")throw new o.DOMException(`Failed to execute 'querySelector' on '${t.constructor.name}': The provided selector is empty.`);if(typeof e==="function")throw new o.DOMException(`Failed to execute 'querySelector' on '${t.constructor.name}': '${e}' is not a valid selector.`);if(typeof e==="symbol")throw new o.TypeError(`Failed to execute 'querySelector' on '${t.constructor.name}': Cannot convert a Symbol value to a string`);if(e=String(e),Bb.test(e))throw new o.DOMException(`Failed to execute 'querySelector' on '${t.constructor.name}': '${e}' is not a valid selector.`);let s=t[U].querySelector.get(e);if(s){if(s.result!==null){if(!s.result.element)return null;let c=s.result.element.deref();if(c)return c}t[U].querySelector.delete(e)}let n={result:{element:null}};if(t[U].querySelector.set(e,n),t[tt])(t[x]||t)[He].push(n);let l=null,a=new Map,y=t[D]===T.documentNode?t.documentElement:t;for(let c of new us({window:o,scope:y}).getSelectorGroups(e)){let d=t[D]===T.elementNode?this.findFirst(t,[t],c,n):this.findFirst(null,t[bt],c,n);if(d&&!a.has(d.documentPosition)){if(a.set(d.documentPosition,!0),!l||d.documentPosition<l.documentPosition)l=d}}let u=l?.element||null;return n.result={element:u?new WeakRef(u):null},u}static matches(t,e,o){let s=o?.ignoreErrors,n=t[m];if(e==="*")return{priorityWeight:1};if(e===""){if(s)return null;throw new n.DOMException(`Failed to execute 'matches' on '${t.constructor.name}': The provided selector is empty.`)}if(typeof e==="function"){if(s)return null;throw new n.DOMException(`Failed to execute 'matches' on '${t.constructor.name}': '${e}' is not a valid selector.`)}if(typeof e==="symbol"){if(s)return null;throw new n.TypeError("Cannot convert a Symbol value to a string")}if(e=String(e),Bb.test(e)){if(s)return null;throw new n.DOMException(`Failed to execute 'matches' on '${t.constructor.name}': '${e}' is not a valid selector.`)}let l=t[U].matches.get(e);if(l){if(l.result!==null)return l.result.match;t[U].matches.delete(e)}let a={result:{match:null}};if(t[U].matches.set(e,a),t[tt])(t[x]||t)[He].push(a);let y=o?.scope||t,u=y[D]===T.documentNode?y.documentElement:y;for(let c of new us({ignoreErrors:o?.ignoreErrors,window:n,scope:u}).getSelectorGroups(e)){let d=this.matchSelector(t,c.reverse(),a);if(d)return a.result.match=d,d}return null}static matchSelector(t,e,o,s=null,n=0){let l=e[0];if(!l)return null;let a=l.match(t);if(a){if(e.length===1)return{priorityWeight:n+a.priorityWeight};switch(l.combinator){case ce.adjacentSibling:let y=t.previousElementSibling;if(y){y[He].push(o);let d=this.matchSelector(y,e.slice(1),o,l,n+a.priorityWeight);if(d)return d}break;case ce.none:case ce.child:case ce.descendant:let u=t.parentElement;if(u){u[He].push(o);let d=this.matchSelector(u,e.slice(1),o,l,n+a.priorityWeight);if(d)return d}break;case ce.subsequentSibling:let c=t.parentElement;if(c){let d=c[bt],g=d.indexOf(t);c[He].push(o);for(let f=g-1;f>=0;f--){let E=d[f];E[He].push(o);let R=this.matchSelector(E,e.slice(1),o,l,n+a.priorityWeight);if(R)return R}}break}}if(s?.combinator===ce.none||s?.combinator===ce.descendant){let y=t.parentElement;if(y)return this.matchSelector(y,e,o,s,n)}return null}static findAll(t,e,o,s,n){let l=o[0],a=o[1],y=[];if(!l)return[];for(let u=0,c=e.length;u<c;u++){let d=e[u],g=d[bt],f=(n?n+">":"")+String.fromCharCode(u);if(d[He].push(s),l.match(d))if(!a){if(t!==d)y.push({documentPosition:f,element:d})}else switch(a.combinator){case ce.adjacentSibling:let E=d.nextElementSibling;if(E)y=y.concat(this.findAll(t,[E],o.slice(1),s,f));break;case ce.none:case ce.descendant:case ce.child:y=y.concat(this.findAll(t,g,o.slice(1),s,f));break;case ce.subsequentSibling:let R=e.indexOf(d);for(let H=R+1;H<e.length;H++){let pt=e[H];y=y.concat(this.findAll(t,[pt],o.slice(1),s,f))}break}if((l.combinator===ce.none||l.combinator===ce.descendant)&&g.length)y=y.concat(this.findAll(t,g,o,s,f))}return y}static findFirst(t,e,o,s,n){let l=o[0],a=o[1];if(!l)return null;for(let y=0,u=e.length;y<u;y++){let c=e[y],d=c[bt],g=(n?n+">":"")+String.fromCharCode(y);if(c[He].push(s),l.match(c))if(!a){if(t!==c)return{documentPosition:g,element:c}}else switch(a.combinator){case ce.adjacentSibling:let f=c.nextElementSibling;if(f){let H=this.findFirst(t,[f],o.slice(1),s,g);if(H)return H}break;case ce.none:case ce.descendant:case ce.child:let E=this.findFirst(t,d,o.slice(1),s,g);if(E)return E;break;case ce.subsequentSibling:let R=e.indexOf(c);for(let H=R+1;H<e.length;H++){let pt=e[H],gt=this.findFirst(t,[pt],o.slice(1),s,g);if(gt)return gt}break}if((l.combinator===ce.none||l.combinator===ce.descendant)&&d.length){let f=this.findFirst(t,d,o,s,g);if(f)return f}}return null}}class Wl{static toPixels(t){let e=parseFloat(t.value),o=t.value.replace(e.toString(),"");if(isNaN(e))return null;switch(o){case"px":return e;case"rem":return this.round(e*parseFloat(t.rootFontSize));case"em":return this.round(e*parseFloat(t.parentFontSize));case"vw":return this.round(e*t.window.innerWidth/100);case"vh":return this.round(e*t.window.innerHeight/100);case"%":return t.parentSize!==void 0&&t.parentSize!==null?this.round(e*parseFloat(t.parentSize)/100):null;case"vmin":return this.round(e*Math.min(t.window.innerWidth,t.window.innerHeight)/100);case"vmax":return e*Math.max(t.window.innerWidth,t.window.innerHeight)/100;case"cm":return this.round(e*37.7812);case"mm":return this.round(e*3.7781);case"in":return this.round(e*96);case"pt":return this.round(e*1.3281);case"pc":return this.round(e*16);case"Q":return this.round(e*0.945);default:return null}}static round(t){return Math.round(t*1e4)/1e4}}class it{static[Wm]=new Map;static[Kh]=0;#t;constructor(t){this.#t=t}getSettings(){return this.getBrowserFrame()?.page.context.browser.settings||null}getBrowser(){return this.getBrowserFrame()?.page.context.browser||null}getBrowserPage(){return this.getBrowserFrame()?.page||null}getBrowserContext(){return this.getBrowserFrame()?.page.context||null}getBrowserFrame(){if(!this.#t)return null;return this.constructor[Wm].get(this.#t[xn])||null}getAsyncTaskManager(){return this.getBrowserFrame()?.[Pt]||null}static setWindowBrowserFrameRelation(t,e){let o=this[Wm];if(t[xn]===-1)t[xn]=this[Kh],this[Kh]++;o.set(t[xn],e)}static removeWindowBrowserFrameRelation(t){this[Wm].delete(t[xn])}}class vt{[he]={capturing:new Map,bubbling:new Map};[Is]={capturing:new Map,bubbling:new Map};get[Symbol.toStringTag](){return"EventTarget"}addEventListener(t,e,o){o=typeof o==="boolean"?{capture:o}:o||{};let s=o.capture?"capturing":"bubbling",n=this[he][s].get(t),l;if(n)l=this[Is][s].get(t);else n=[],l=[],this[he][s].set(t,n),this[Is][s].set(t,l);if(n.includes(e))return;if(n.push(e),l.push(o),o.signal&&!o.signal.aborted)o.signal.addEventListener("abort",()=>{this.removeEventListener(t,e)})}removeEventListener(t,e){let o=this[he].bubbling.get(t);if(o){let n=o.indexOf(e);if(n!==-1){o.splice(n,1),this[Is].bubbling.get(t).splice(n,1);return}}let s=this[he].capturing.get(t);if(s){let n=s.indexOf(e);if(n!==-1)s.splice(n,1),this[Is].capturing.get(t).splice(n,1)}}dispatchEvent(t){if(!(t instanceof N))throw new this[m].TypeError("Failed to execute 'dispatchEvent' on 'EventTarget': parameter 1 is not of type 'Event'.");if(!t[Kn]&&(t[Qt]!=="load"||!t[wr]))return t[Kn]=!0,t[wr]=this[Vt]||this,this.#t(t),t[Kn]=!1,!(t[_i]&&t[lr]);return this.#e(t),!(t[_i]&&t[lr])}attachEvent(t,e){this.addEventListener(t.replace("on",""),e)}detachEvent(t,e){this.removeEventListener(t.replace("on",""),e)}[At](){this[he].capturing.clear(),this[he].bubbling.clear(),this[Is].capturing.clear(),this[Is].bubbling.clear()}#t(t){let e=t.composedPath();t[xr]=ae.capturing;for(let o=e.length-1;o>=0;o--)if(t[Go]=e[o],e[o].dispatchEvent(t),t[Fs]||t[Ls]){t[xr]=ae.none,t[Go]=null;return}if(t[xr]=ae.atTarget,t[Go]=this[Vt]||this,t[wr].dispatchEvent(t),t[xr]=ae.bubbling,t[Hs]&&!t[Fs]&&!t[Ls]){for(let o=1,s=e.length;o<s;o++)if(t[Go]=e[o],e[o].dispatchEvent(t),t[Fs]||t[Ls]){t[xr]=ae.none,t[Go]=null;return}}t[xr]=ae.none,t[Go]=null}#e(t){let e=this[m],o=e?new it(e).getSettings():null,s=t.eventPhase===ae.capturing?"capturing":"bubbling",n=this[he][s].get(t.type)?.slice();if(n&&n.length){let l=this[Is][s].get(t.type).slice();for(let a=0,y=n.length;a<y;a++){let u=n[a],c=l[a];if(c?.passive)t[wa]=!0;if(e&&(this!==e||t.type!=="error")&&!o?.disableErrorCapturing&&o?.errorCapture===me.tryAndCatch)if(u.handleEvent){let d;try{d=u.handleEvent.call(u,t)}catch(g){e[le](g)}if(d instanceof Promise)d.catch((g)=>e[le](g))}else{let d;try{d=u.call(this,t)}catch(g){e[le](g)}if(d instanceof Promise)d.catch((g)=>e[le](g))}else if(u.handleEvent)u.handleEvent.call(u,t);else u.call(this,t);if(t[wa]=!1,c?.once)n.splice(a,1),l.splice(a,1),this.removeEventListener(t.type,u),a--,y--;if(t[Ls])return}}if(t.eventPhase!==ae.capturing){let l="on"+t.type.toLowerCase(),a=this[p],y=!a&&Object.hasOwn(this,l)&&this.constructor.name!=="EventTarget";if(a||y){let u=a?.get(l)??this[l];if(typeof u==="function")if(e&&(this!==e||t.type!=="error")&&!o?.disableErrorCapturing&&o?.errorCapture===me.tryAndCatch){let c;try{c=u(t)}catch(d){e[le](d)}if(c instanceof Promise)c.catch((d)=>e[le](d))}else u(t)}}}}class _l extends N{matches;media;constructor(t,e=null){super(t,e);this.matches=e?.matches??!1,this.media=e?.media??""}}var Ob;(function(t){t.all="all",t.print="print",t.screen="screen"})(Ob||(Ob={}));var ic=Ob;class Ha{mediaTypes;not;rules;ranges;rootFontSize=null;window;constructor(t){this.window=t.window,this.rootFontSize=t.rootFontSize||null,this.mediaTypes=t.mediaTypes||[],this.not=t.not||!1,this.rules=t.rules||[],this.ranges=t.ranges||[]}toString(){return`${this.not?"not ":""}${this.mediaTypes.join(", ")}${(this.not||this.mediaTypes.length>0)&&!!this.ranges.length?" and ":""}${this.ranges.map((t)=>`(${t.before?`${t.before.value} ${t.before.operator} `:""}${t.type}${t.after?` ${t.after.operator} ${t.after.value}`:""})`).join(" and ")}${(this.not||this.mediaTypes.length>0)&&!!this.rules.length?" and ":""}${this.rules.map((t)=>t.value?`(${t.name}: ${t.value})`:`(${t.name})`).join(" and ")}`}matches(){return this.not?!this.matchesAll():this.matchesAll()}matchesAll(){if(this.mediaTypes.length){let t=!1;for(let e of this.mediaTypes)if(this.matchesMediaType(e)){t=!0;break}if(!t)return!1}for(let t of this.rules)if(!this.matchesRule(t))return!1;for(let t of this.ranges)if(!this.matchesRange(t))return!1;return!0}matchesMediaType(t){if(t===ic.all)return!0;return t===new it(this.window).getSettings()?.device.mediaType}matchesRange(t){let e=t.type==="width"?this.window.innerWidth:this.window.innerHeight;if(t.before){let o=this.toPixels(t.before.value);if(o===null)return!1;switch(t.before.operator){case"<":if(o>=e)return!1;break;case"<=":if(o>e)return!1;break;case">":if(o<=e)return!1;break;case">=":if(o<e)return!1;break}}if(t.after){let o=this.toPixels(t.after.value);if(o===null)return!1;switch(t.after.operator){case"<":if(e>=o)return!1;break;case"<=":if(e>o)return!1;break;case">":if(e<=o)return!1;break;case">=":if(e<o)return!1;break}}return!0}matchesRule(t){let e=new it(this.window).getSettings();if(!e)return!1;if(!t.value){switch(t.name){case"min-width":case"max-width":case"min-height":case"max-height":case"width":case"height":case"orientation":case"prefers-color-scheme":case"hover":case"any-hover":case"any-pointer":case"pointer":case"display-mode":case"min-aspect-ratio":case"max-aspect-ratio":case"aspect-ratio":return!0;case"prefers-reduced-motion":return e.device.prefersReducedMotion==="reduce";case"forced-colors":return e.device.forcedColors==="active"}return!1}switch(t.name){case"min-width":let o=this.toPixels(t.value);return o!==null&&this.window.innerWidth>=o;case"max-width":let s=this.toPixels(t.value);return s!==null&&this.window.innerWidth<=s;case"min-height":let n=this.toPixels(t.value);return n!==null&&this.window.innerHeight>=n;case"max-height":let l=this.toPixels(t.value);return l!==null&&this.window.innerHeight<=l;case"width":let a=this.toPixels(t.value);return a!==null&&this.window.innerWidth===a;case"height":let y=this.toPixels(t.value);return y!==null&&this.window.innerHeight===y;case"orientation":return t.value==="landscape"?this.window.innerWidth>this.window.innerHeight:this.window.innerWidth<this.window.innerHeight;case"prefers-color-scheme":return t.value===e.device.prefersColorScheme;case"prefers-reduced-motion":return t.value===e.device.prefersReducedMotion;case"forced-colors":return(t.value==="none"||t.value==="active")&&t.value===e.device.forcedColors;case"any-hover":case"hover":if(t.value==="none")return this.window.navigator.maxTouchPoints>0;if(t.value==="hover")return this.window.navigator.maxTouchPoints===0;return!1;case"any-pointer":case"pointer":if(t.value==="none")return!1;if(t.value==="coarse")return this.window.navigator.maxTouchPoints>0;if(t.value==="fine")return this.window.navigator.maxTouchPoints===0;return!1;case"display-mode":return t.value==="browser";case"min-aspect-ratio":case"max-aspect-ratio":case"aspect-ratio":let u=t.value.split("/"),c=parseInt(u[0],10),d=parseInt(u[1],10);if(isNaN(c)||isNaN(d))return!1;switch(t.name){case"min-aspect-ratio":return c/d<=this.window.innerWidth/this.window.innerHeight;case"max-aspect-ratio":return c/d>=this.window.innerWidth/this.window.innerHeight;case"aspect-ratio":return c/d===this.window.innerWidth/this.window.innerHeight}}return!1}toPixels(t){if(!new it(this.window).getSettings()?.disableComputedStyleRendering&&t.endsWith("em"))return this.rootFontSize=this.rootFontSize||parseFloat(this.window.getComputedStyle(this.window.document.documentElement).fontSize),Wl.toPixels({window:this.window,value:t,rootFontSize:this.rootFontSize,parentFontSize:this.rootFontSize});return Wl.toPixels({window:this.window,value:t,rootFontSize:16,parentFontSize:16})}}var rP=/(not|only|all|screen|print)|\(([^\)]+)(\)){0,1}|(,)| +(or|and) +/g,oP=/[<>]/,iP=/(?:([0-9]+[a-z]+) *(<|<=|>|>=)){0,1} *(width|height) *(?:(<|<=|>|>=) *([0-9]+[a-z]+)){0,1}/;class cp{static parse(t){let e=new Ha({window:t.window,rootFontSize:t.rootFontSize}),o=[e],s=new RegExp(rP),n=null;while(n=s.exec(t.mediaQuery.toLowerCase()))if(n[4]===","||n[5]==="or")e=new Ha({window:t.window,rootFontSize:t.rootFontSize}),o.push(e);else if(n[1]==="all"||n[1]==="screen"||n[1]==="print")e.mediaTypes.push(n[1]);else if(n[1]==="not")e.not=!0;else if(n[2]){let l=oP.test(n[2])?n[2].match(iP):null;if(l&&(l[1]||l[5]))e.ranges.push({before:l[1]?{value:l[1],operator:l[2]}:null,type:l[3],after:l[5]?{value:l[5],operator:l[4]}:null});else{let[a,y]=n[2].split(":"),u=y?y.trim():null;if(!u&&!n[3])return[new Ha({window:t.window,rootFontSize:t.rootFontSize,not:!0,mediaTypes:[ic.all]})];e.rules.push({name:a.trim(),value:u})}}return o}}class Wa extends vt{onchange=null;#t;#e=null;#r;#o=null;constructor(t){super();this.#t=t.window,this.#r=t.media,this.#o=t.rootFontSize||null}get media(){return this.#e=this.#e||cp.parse({window:this.#t,mediaQuery:this.#r,rootFontSize:this.#o}),this.#e.map((t)=>t.toString()).join(", ")}get matches(){this.#e=this.#e||cp.parse({window:this.#t,mediaQuery:this.#r,rootFontSize:this.#o});for(let t of this.#e)if(!t.matches())return!1;return!0}addListener(t){this.addEventListener("change",t)}removeListener(t){this.removeEventListener("change",t)}addEventListener(t,e){if(super.addEventListener(t,e),t==="change"){let o=!1,s=()=>{let n=this.matches;if(n!==o)o=n,this.dispatchEvent(new _l("change",{matches:n,media:this.media}))};e[vh]=s,this.#t.addEventListener("resize",s)}}removeEventListener(t,e){if(super.removeEventListener(t,e),t==="change"&&e[vh])this.#t.removeEventListener("resize",e[vh])}}class Ti extends _o{[We]=[];get cssRules(){return this[We]}insertRule(t,e){if(arguments.length===0)throw new this[m].TypeError(`Failed to execute 'insertRule' on '${this.constructor.name}': 1 argument required, but only 0 present.`);let o=this[Gl].parseFromString(t);if(o.length===0||o.length>1)throw new this[m].DOMException(`Failed to execute 'insertRule' on '${this.constructor.name}': Failed to parse the rule '${t}'.`,w.syntaxError);if(e!==void 0){if(e=Number(e),isNaN(e)||e>this.cssRules.length)throw new this[m].DOMException(`Failed to execute 'insertRule' on '${this.constructor.name}': The index provided (${e}) is larger than the maximum index (${this.cssRules.length}).`,w.indexSizeError);return this.cssRules.splice(e,0,o[0]),e}let s=this.cssRules.length;return this.cssRules.unshift(o[0]),s}deleteRule(t){if(arguments.length===0)throw new this[m].TypeError(`Failed to execute 'deleteRule' on '${this.constructor.name}': 1 argument required, but only 0 present.`);if(t=Number(t),isNaN(t)||t<0||t>=this.cssRules.length)throw new this[m].DOMException(`Failed to execute 'deleteRule' on '${this.constructor.name}': the index (${t}) is greater than the length of the rule list.`,w.indexSizeError);this.cssRules.splice(t,1)}}class Zs extends Ti{[O]="";[Y]="";[Fr]="";get type(){return ht.containerRule}get cssText(){let t="";for(let e of this[We])t+=`
16
+ `,o++;let s=Error(e);for(let n of this.waitUntilCompleteResolvers)n.reject(s);this.abortAll(!0)},t.traceWaitUntilComplete)}abortAll(t){let e=this.runningTimers,o=this.runningImmediates,s=this.runningTasks;if(t)this.destroyed=!0;if(this.runningTasks={},this.runningTaskCount=0,this.runningImmediates=[],this.runningTimers=[],this.debugTrace=new Map,this.waitUntilCompleteTimer)No.clearTimeout(this.waitUntilCompleteTimer),this.waitUntilCompleteTimer=null;for(let n of o)No.clearImmediate(n);for(let n of e)No.clearTimeout(n);for(let n of Object.keys(s))s[n](t);return new Promise((n,l)=>{this.waitUntilCompleteResolvers.push({resolve:n,reject:l}),this.resolveWhenComplete()})}}import{Buffer as cw}from"buffer";import{webcrypto as dw}from"crypto";import{TextEncoder as bw,TextDecoder as gw}from"util";import VS from"stream";import{ReadableStream as Sw}from"stream/web";import{URLSearchParams as fw}from"url";import vg from"vm";var Gg="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";class np{static btoa(t){let e=t.toString();if(/[^\u0000-\u00ff]/.test(e))throw new re("Failed to execute 'btoa' on 'Window': The string to be encoded contains characters outside of the Latin1 range.",w.invalidCharacterError);let o="",s=-6,n=0,l=0,a=0,y;while(l<e.length||s>-6){if(s<0){if(l<e.length)y=e.charCodeAt(l++),a+=8;else y=0;n=(n&255)<<8|y&255,s+=8}o+=Gg.charAt(a>0?n>>s&63:64),s-=6,a-=6}return o}static atob(t){let e=t.toString();if(/[^\u0000-\u00ff]/.test(e))throw new re("Failed to execute 'atob' on 'Window': The string to be decoded contains characters outside of the Latin1 range.",w.invalidCharacterError);if(/[^A-Za-z\d+/=]/.test(e)||e.length%4==1)throw new re("Failed to execute 'atob' on 'Window': The string to be decoded is not correctly encoded.",w.invalidCharacterError);let o="",s=-8,n=0,l,a;for(let y=0;y<e.length;y++){if((l=Gg.indexOf(e.charAt(y)))<0)continue;if(n=n<<6|l&63,(s+=6)>=0){if(a=n>>s&255,l!==64)o+=String.fromCharCode(a);n&=63,s-=8}}return o}}var Fb;(function(t){t.tryAndCatch="tryAndCatch",t.processLevel="processLevel",t.disabled="disabled"})(Fb||(Fb={}));var me=Fb;import{Buffer as lp}from"buffer";import{ReadableStream as cf}from"stream/web";class ie{type="";[Nt];constructor(t,e){let o=[];if(t)for(let s of t){let n;if(s instanceof ArrayBuffer)n=lp.from(new Uint8Array(s));else if(s instanceof ie)n=s[Nt];else if(s instanceof lp)n=s;else if(ArrayBuffer.isView(s))n=lp.from(new Uint8Array(s.buffer,s.byteOffset,s.byteLength));else n=lp.from(typeof s==="string"?s:String(s));o.push(n)}if(this[Nt]=lp.concat(o),e&&e.type&&e.type.match(/^[\u0020-\u007E]*$/))this.type=String(e.type).toLowerCase()}get size(){return this[Nt].length}slice(t=0,e=null,o=""){let s=this.size,n,l,a;if(t===void 0)n=0;else if(t<0)n=Math.max(s+t,0);else n=Math.min(t,s);if(e===null)l=s;else if(e<0)l=Math.max(s+e,0);else l=Math.min(e,s);if(o===void 0)a="";else a=o;let y=Math.max(l-n,0),c=this[Nt].slice(n,n+y),d=new ie([],{type:a});return d[Nt]=c,d}async arrayBuffer(){return new Uint8Array(this[Nt]).buffer}async text(){return this[Nt].toString()}stream(){let t=this[Nt];return new cf({start(e){e.enqueue(t),e.close()}})}toString(){return"[object Blob]"}}class Ul{#t;#e=[];constructor(t){if(!t)throw TypeError("Illegal constructor");this.#t=t}async read(){if((await this.#t.navigator.permissions.query({name:"clipboard-read"})).state==="denied")throw new this.#t.DOMException("Failed to execute 'read' on 'Clipboard': The request is not allowed");return this.#e}async readText(){if((await this.#t.navigator.permissions.query({name:"clipboard-read"})).state==="denied")throw new this.#t.DOMException("Failed to execute 'readText' on 'Clipboard': The request is not allowed");let e="";for(let o of this.#e)if(o.types.includes("text/plain")){let s=await o.getType("text/plain");if(typeof s==="string")e+=s;else e+=await s.text()}return e}async write(t){if((await this.#t.navigator.permissions.query({name:"clipboard-write"})).state==="denied")throw new this.#t.DOMException("Failed to execute 'write' on 'Clipboard': The request is not allowed");this.#e=t}async writeText(t){if((await this.#t.navigator.permissions.query({name:"clipboard-write"})).state==="denied")throw new this.#t.DOMException("Failed to execute 'writeText' on 'Clipboard': The request is not allowed");this.#e=[new this.#t.ClipboardItem({"text/plain":new ie([t],{type:"text/plain"})})]}}class ap{presentationStyle="unspecified";#t;constructor(t,e){if(this.#t=t,e?.presentationStyle)this.presentationStyle=e.presentationStyle}get types(){return Object.keys(this.#t)}async getType(t){if(!this.#t[t])throw new re(`Failed to execute 'getType' on 'ClipboardItem': The type '${t}' was not found`);if(this.#t[t]instanceof ie)return this.#t[t];return new ie([await this.#t[t]],{type:t})}}class ec{static escape(t){if(arguments.length==0)throw TypeError("`CSS.escape` requires an argument.");let e=String(t),o=e.length,s=-1,n,l="",a=e.charCodeAt(0);if(o==1&&a==45)return"\\"+e;while(++s<o){if(n=e.charCodeAt(s),n==0){l+="\uFFFD";continue}if(n>=1&&n<=31||n==127||s==0&&n>=48&&n<=57||s==1&&n>=48&&n<=57&&a==45){l+="\\"+n.toString(16)+" ";continue}if(n>=128||n==45||n==95||n>=48&&n<=57||n>=65&&n<=90||n>=97&&n<=122){l+=e.charAt(s);continue}l+="\\"+e.charAt(s)}return l}}var Ug=["Hz","Q","ch","cm","deg","dpcm","dpi","dppx","em","ex","fr","grad","in","kHz","mm","ms","number","pc","percent","pt","px","rad","rem","s","turn","vh","vmax","vmin","vw"];class ye{unit;value;constructor(t,e){if(typeof t!=="number")throw TypeError("The provided double value is non-finite");if(!Ug.includes(e))throw TypeError("Invalid unit: "+e);this.value=t,this.unit=e}}class rc{Hz=(t)=>new ye(t,"Hz");Q=(t)=>new ye(t,"Q");ch=(t)=>new ye(t,"ch");cm=(t)=>new ye(t,"cm");deg=(t)=>new ye(t,"deg");dpcm=(t)=>new ye(t,"dpcm");dpi=(t)=>new ye(t,"dpi");dppx=(t)=>new ye(t,"dppx");em=(t)=>new ye(t,"em");ex=(t)=>new ye(t,"ex");fr=(t)=>new ye(t,"fr");grad=(t)=>new ye(t,"grad");in=(t)=>new ye(t,"in");kHz=(t)=>new ye(t,"kHz");mm=(t)=>new ye(t,"mm");ms=(t)=>new ye(t,"ms");number=(t)=>new ye(t,"number");pc=(t)=>new ye(t,"pc");percent=(t)=>new ye(t,"percent");pt=(t)=>new ye(t,"pt");px=(t)=>new ye(t,"px");rad=(t)=>new ye(t,"rad");rem=(t)=>new ye(t,"rem");s=(t)=>new ye(t,"s");turn=(t)=>new ye(t,"turn");vh=(t)=>new ye(t,"vh");vmax=(t)=>new ye(t,"vmax");vmin=(t)=>new ye(t,"vmin");vw=(t)=>new ye(t,"vw");supports(t,e){return!0}escape(t){return ec.escape(t)}}var Vb;(function(t){t[t.containerRule=0]="containerRule",t[t.styleRule=1]="styleRule",t[t.importRule=3]="importRule",t[t.mediaRule=4]="mediaRule",t[t.fontFaceRule=5]="fontFaceRule",t[t.pageRule=6]="pageRule",t[t.keyframesRule=7]="keyframesRule",t[t.keyframeRule=8]="keyframeRule",t[t.namespaceRule=10]="namespaceRule",t[t.counterStyleRule=11]="counterStyleRule",t[t.supportsRule=12]="supportsRule",t[t.documentRule=13]="documentRule",t[t.fontFeatureValuesRule=14]="fontFeatureValuesRule",t[t.regionStyleRule=16]="regionStyleRule"})(Vb||(Vb={}));var ut=Vb;class Ho{static CONTAINER_RULE=ut.containerRule;static STYLE_RULE=ut.styleRule;static IMPORT_RULE=ut.importRule;static MEDIA_RULE=ut.mediaRule;static FONT_FACE_RULE=ut.fontFaceRule;static PAGE_RULE=ut.pageRule;static KEYFRAMES_RULE=ut.keyframesRule;static KEYFRAME_RULE=ut.keyframeRule;static NAMESPACE_RULE=ut.namespaceRule;static COUNTER_STYLE_RULE=ut.counterStyleRule;static SUPPORTS_RULE=ut.supportsRule;static DOCUMENT_RULE=ut.documentRule;static FONT_FEATURE_VALUES_RULE=ut.fontFeatureValuesRule;static REGION_STYLE_RULE=ut.regionStyleRule;[m];[Gl];[Qs]=null;[Co]=null;constructor(t,e,o){if(t!==h)throw TypeError("Illegal constructor");this[m]=e,this[Gl]=o}get parentRule(){return this[Qs]}get parentStyleSheet(){return this[Co]}}var df=/[,()]/gm,bf=/[()]|\s+/gm;class Hl{static splitByComma(t){let e=[],o=new RegExp(df),s,n=0,l=0;while(s=o.exec(t))switch(s[0]){case"(":n++;break;case")":n--;break;case",":if(n===0){let a=t.substring(l,s.index).trim();if(a)e.push(a);l=o.lastIndex}break}if(l<t.length)e.push(t.substring(l).trim());return e}static splitBySpace(t){let e=[],o=new RegExp(bf),s,n=0,l=0;while(s=o.exec(t))switch(s[0]){case"(":n++;break;case")":n--;break;default:if(n===0){let a=t.substring(l,s.index).trim();if(a)e.push(a);l=o.lastIndex}break}if(l<t.length){let a=t.substring(l).trim();if(a)e.push(a)}return e}}var gf=/^#([0-9a-fA-F]{3,4}){1,2}$|^rgb\(([^)]*)\)$|^rgba\(([^)]*)\)$|^hsla?\(\s*(-?\d+|-?\d*.\d+)\s*,\s*(-?\d+|-?\d*.\d+)%\s*,\s*(-?\d+|-?\d*.\d+)%\s*(,\s*(-?\d+|-?\d*.\d+)\s*)?\)|(?:(rgba?|hsla?)\((var\(\s*(--[^)\s]+)\))\))/,Sf=/^(0|[-+]?[0-9]*\.?[0-9]+)(in|cm|em|mm|pt|pc|px|ex|rem|vh|vw|ch|vw|vh|vmin|vmax|Q)$/,ff=/^[-+]?[0-9]*\.?[0-9]+%$/,Pf=/^[0-9]+deg$/,Af=/^url\(\s*([^)]*)\s*\)$/,wf=/^[0-9]+$/,Ef=/^[0-9.]+$/,xf=/^calc\([^^)]+\)$/,vf=/^var\(\s*(--[^)\s]+)\)$/,Tf=/^fit-content\([^^)]+\)$/,Cf=/^((repeating-linear|linear|radial|repeating-radial|conic|repeating-conic)-gradient)\(((?:[^()]|\([^()]*\))*)\)$/,Hg=["inherit","initial","unset","revert"],Nf=["none","currentcolor","transparent","silver","gray","white","maroon","red","purple","fuchsia","green","lime","olive","yellow","navy","blue","teal","aliceblue","aqua","antiquewhite","aquamarine","azure","beige","bisque","black","blanchedalmond","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkgrey","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkslategrey","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dimgrey","dodgerblue","firebrick","floralwhite","forestgreen","gainsboro","ghostwhite","gold","goldenrod","greenyellow","grey","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightgrey","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightslategrey","lightsteelblue","lightyellow","limegreen","linen","magenta","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","oldlace","olivedrab","orange","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","rebeccapurple","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","skyblue","slateblue","slategray","slategrey","snow","springgreen","steelblue","tan","thistle","tomato","turquoise","violet","wheat","whitesmoke","yellowgreen"];class b{static getLength(t){if(t==="0")return"0px";let e=t.match(Sf);if(e){let o=parseFloat(e[1]);if(isNaN(o))return null;let s=e[2];return`${Math.round(o*1e6)/1e6}${s}`}return null}static getPercentage(t){if(t==="0")return"0%";if(ff.test(t))return t;return null}static getDegree(t){if(t==="0")return"0deg";if(Pf.test(t))return t;return null}static getCalc(t){if(xf.test(t))return t;return null}static getFitContent(t){let e=t.toLowerCase();if(e==="auto"||e==="max-content"||e==="min-content"||e==="fit-content")return e;if(Tf.test(e))return e;return null}static getMeasurement(t){return this.getLength(t)||this.getPercentage(t)||this.getCalc(t)}static getContentMeasurement(t){return this.getFitContent(t)||this.getMeasurement(t)}static getAutoMeasurement(t){if(t.toLocaleLowerCase()==="auto")return"auto";return this.getMeasurement(t)}static getInteger(t){if(wf.test(t))return t;return null}static getFloat(t){if(Ef.test(t)){let e=parseFloat(t);if(isNaN(e))return null;return String(Math.round(e*1e6)/1e6)}return null}static getGradient(t){let e=t.match(Cf);if(e){let o=e[3].trim(),s=Hl.splitByComma(o);return`${e[1]}(${s.join(", ")})`}return null}static getColor(t){let e=t.toLowerCase();if(Nf.includes(e))return e;if(gf.test(t))return t.replace(/,([^ ])/g,", $1");return null}static getURL(t){if(!t)return null;if(t.toLowerCase()==="none")return"none";let e=Af.exec(t);if(!e)return null;let o=e[1].trim();if((o[0]==='"'||o[0]==="'")&&o[0]!==o[o.length-1])return null;if(o[0]==='"'||o[0]==="'")o=o.substring(1,o.length-1);for(let s=0;s<o.length;s++)switch(o[s]){case"(":case")":case" ":case"\t":case`
17
+ `:case"'":case'"':return null;case"\\":s++;break}return`url("${o}")`}static getInitial(t){return t.toLowerCase()==="initial"?"initial":null}static getVariable(t){let e=t.match(vf);if(e)return`var(${e[1]})`;return null}static getGlobal(t){let e=t.toLowerCase();return Hg.includes(e)?e:null}static getGlobalExceptInitial(t){let e=t.toLowerCase();return e!=="initial"&&Hg.includes(e)?e:null}}var Lf=/^rect\((.*)\)$/i,oc=/,(?=(?:(?:(?!\))[\s\S])*\()|[^\(\)]*$)/,je=/\s+(?=(?:(?:(?!\))[\s\S])*\()|[^\(\)]*$)/,kf=/\s+/gm,mp=["none","hidden","dotted","dashed","solid","double","groove","ridge","inset","outset"],yp=["thin","medium","thick"],Mf=["separate","collapse"],If=["repeat","repeat-x","repeat-y","no-repeat"],Rf=["border-box","padding-box","content-box"],Ff=["border-box","padding-box","content-box"],Vf=["scroll","fixed"],Df=["auto","fill","content"],Bf=["none","left","right","both"],Of=["none","left","right","inline-start","inline-end"],Gf=["caption","icon","menu","message-box","small-caption","status-bar"],Uf=["normal","bold","bolder","lighter"],Hf=["normal","italic","oblique"],Wf=["xx-small","x-small","small","medium","large","x-large","xx-large","xxx-large","smaller","larger"],_f=["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded"],Yf=["block","inline","inline-block","flex","inline-flex","grid","inline-grid","flow-root","none","contents","block flow","inline flow","inline flow-root","block flex","inline flex","block grid","inline grid","block flow-root","table","table-row","list-item"],Kf=["stretch","repeat","round","space"],Qf=["capitalize","uppercase","lowercase","none","full-width","full-size-kana"],jf=["visible","hidden","collapse"];class X{static getBorderCollapse(t,e){let o=b.getVariable(t);if(o)return{"border-collapse":{value:o,important:e}};let s=t.toLowerCase();if(b.getGlobal(s)||Mf.includes(s))return{"border-collapse":{value:s,important:e}};return null}static getDisplay(t,e){let o=b.getVariable(t);if(o)return{display:{value:o,important:e}};let s=t.toLowerCase();if(b.getGlobal(s)||Yf.includes(s))return{display:{value:s,important:e}};return null}static getDirection(t,e){let o=b.getVariable(t);if(o)return{direction:{value:o,important:e}};let s=t.toLowerCase();if(b.getGlobal(s)||s==="ltr"||s==="rtl")return{direction:{value:s,important:e}};return null}static getLetterSpacing(t,e){let o=b.getVariable(t)||b.getGlobal(t)||b.getContentMeasurement(t);return o?{"letter-spacing":{value:o,important:e}}:null}static getWordSpacing(t,e){let o=b.getVariable(t)||b.getGlobal(t)||b.getContentMeasurement(t);return o?{"word-spacing":{value:o,important:e}}:null}static getTextIndent(t,e){let o=b.getVariable(t)||b.getGlobal(t)||b.getContentMeasurement(t);return o?{"text-indent":{value:o,important:e}}:null}static getWidth(t,e){let o=b.getVariable(t)||b.getGlobal(t)||b.getContentMeasurement(t);return o?{width:{value:o,important:e}}:null}static getHeight(t,e){let o=b.getVariable(t)||b.getGlobal(t)||b.getContentMeasurement(t);return o?{height:{value:o,important:e}}:null}static getTop(t,e){let o=b.getVariable(t)||b.getGlobal(t)||b.getContentMeasurement(t);return o?{top:{value:o,important:e}}:null}static getRight(t,e){let o=b.getVariable(t)||b.getGlobal(t)||b.getContentMeasurement(t);return o?{right:{value:o,important:e}}:null}static getBottom(t,e){let o=b.getVariable(t)||b.getGlobal(t)||b.getContentMeasurement(t);return o?{bottom:{value:o,important:e}}:null}static getLeft(t,e){let o=b.getVariable(t)||b.getGlobal(t)||b.getContentMeasurement(t);return o?{left:{value:o,important:e}}:null}static getClear(t,e){let o=b.getVariable(t);if(o)return{clear:{value:o,important:e}};let s=t.toLowerCase();if(b.getGlobal(s)||Bf.includes(s))return{clear:{value:s,important:e}};return null}static getClip(t,e){let o=b.getVariable(t);if(o)return{clip:{value:o,important:e}};let s=t.toLowerCase();if(b.getGlobal(s)||s==="auto")return{clip:{value:s,important:e}};let n=s.match(Lf);if(!n)return null;let l=n[1].split(/\s*,\s*/);if(l.length!==4)return null;for(let a of l)if(!b.getMeasurement(a))return null;return{clip:{value:t,important:e}}}static getFloat(t,e){let o=b.getVariable(t);if(o)return{float:{value:o,important:e}};let s=t.toLowerCase();if(b.getGlobal(s)||Of.includes(s))return{float:{value:s,important:e}};return null}static getCSSFloat(t,e){let o=b.getVariable(t);if(o)return{"css-float":{value:o,important:e}};let s=this.getFloat(t,e);return s?{"css-float":s.float}:null}static getOutline(t,e){let o=b.getVariable(t);if(o)return{outline:{value:o,important:e}};let s=b.getGlobal(t);if(s)return{...this.getOutlineColor(s,e),...this.getOutlineStyle(s,e),...this.getOutlineWidth(s,e)};let n={...this.getOutlineColor("initial",e),...this.getOutlineStyle("initial",e),...this.getOutlineWidth("initial",e)},l=t.split(je);for(let a of l){let y=this.getOutlineWidth(a,e),u=this.getOutlineStyle(a,e),c=this.getOutlineColor(a,e);if(y===null&&u===null&&c===null)return null;Object.assign(n,y,u,c)}return n}static getOutlineColor(t,e){let o=b.getVariable(t)||b.getGlobal(t)||b.getColor(t);return o?{"outline-color":{value:o,important:e}}:null}static getOutlineOffset(t,e){let o=b.getVariable(t)||b.getLength(t);return o?{"outline-offset":{value:o,important:e}}:null}static getOutlineStyle(t,e){let o=b.getVariable(t);if(o)return{"outline-style":{value:o,important:e}};let s=t.toLowerCase();if(b.getGlobal(s)||mp.includes(s))return{"outline-style":{value:s,important:e}};return null}static getOutlineWidth(t,e){let o=b.getVariable(t);if(o)return{"outline-width":{value:o,important:e}};let s=t.toLowerCase(),n=yp.includes(s)||b.getGlobal(s)?s:b.getLength(t);if(n)return{"outline-width":{value:n,important:e}};return null}static getBorder(t,e){let o=b.getVariable(t);if(o)return{border:{value:o,important:e}};let s=b.getGlobal(t);if(s)return{...this.getBorderWidth(s,e),...this.getBorderStyle(s,e),...this.getBorderColor(s,e),...this.getBorderImage(s,e)};let n={...this.getBorderWidth("initial",e),...this.getBorderStyle("initial",e),...this.getBorderColor("initial",e),...this.getBorderImage("initial",e)},l=t.replace(/\s*,\s*/g,",").split(je);for(let a of l){let y=this.getBorderWidth(a,e),u=this.getBorderStyle(a,e),c=this.getBorderColor(a,e);if(y===null&&u===null&&c===null)return null;Object.assign(n,y,u,c)}return n}static getBorderWidth(t,e){let o=b.getVariable(t);if(o)return{"border-width":{value:o,important:e}};let s=b.getGlobal(t);if(s)return{...this.getBorderTopWidth(s,e),...this.getBorderRightWidth(s,e),...this.getBorderBottomWidth(s,e),...this.getBorderLeftWidth(s,e)};let n=t.split(je),l=this.getBorderTopWidth(n[0],e),a=this.getBorderRightWidth(n[1]||n[0],e),y=this.getBorderBottomWidth(n[2]||n[0],e),u=this.getBorderLeftWidth(n[3]||n[1]||n[0],e);if(!l||!a||!y||!u)return null;return{...l,...a,...y,...u}}static getBorderStyle(t,e){let o=b.getVariable(t);if(o)return{"border-style":{value:o,important:e}};let s=b.getGlobal(t);if(s)return{...this.getBorderTopStyle(s,e),...this.getBorderRightStyle(s,e),...this.getBorderBottomStyle(s,e),...this.getBorderLeftStyle(s,e)};let n=t.split(je),l=this.getBorderTopStyle(n[0],e),a=this.getBorderRightStyle(n[1]||n[0],e),y=this.getBorderBottomStyle(n[2]||n[0],e),u=this.getBorderLeftStyle(n[3]||n[1]||n[0],e);if(!l||!a||!y||!u)return null;return{...l,...a,...y,...u}}static getBorderColor(t,e){let o=b.getVariable(t);if(o)return{"border-color":{value:o,important:e}};let s=b.getGlobal(t);if(s)return{...this.getBorderTopColor(s,e),...this.getBorderRightColor(s,e),...this.getBorderBottomColor(s,e),...this.getBorderLeftColor(s,e)};let n=t.split(je),l=this.getBorderTopColor(n[0],e),a=this.getBorderRightColor(n[1]||n[0],e),y=this.getBorderBottomColor(n[2]||n[0],e),u=this.getBorderLeftColor(n[3]||n[1]||n[0],e);if(!l||!a||!y||!u)return null;return{...l,...a,...y,...u}}static getBorderImage(t,e){let o=b.getVariable(t);if(o)return{"border-image":{value:o,important:e}};let s=b.getGlobal(t);if(s)return{...this.getBorderImageSource(s,e),...this.getBorderImageSlice(s,e),...this.getBorderImageWidth(s,e),...this.getBorderImageOutset(s,e),...this.getBorderImageRepeat(s,e)};let n=t.replace(/\s\/\s/g,"/"),l=n.match(/\s*([a-zA-Z-]+\([^)]*\))\s*/);if(l)n=n.replace(l[0],"");let a=n.split(je);if(l)a.push(l[1]);let y={...this.getBorderImageSource("none",e),...this.getBorderImageSlice("100%",e),...this.getBorderImageWidth("1",e),...this.getBorderImageOutset("0",e),...this.getBorderImageRepeat("stretch",e)};for(let u=0,c=a.length;u<c;u++){let d=a[u],g=u>0?a[u-1]:"";if(!d.startsWith("url")&&d.includes("/")){let[f,E,R]=d.split("/"),H=this.getBorderImageSlice(`${g} ${f}`,e)||this.getBorderImageSlice(f,e),yt=this.getBorderImageWidth(E,e),bt=R&&this.getBorderImageOutset(R,e);if(!H||!yt||bt===null)return null;Object.assign(y,H,yt,bt)}else{let f=this.getBorderImageSlice(`${g} ${d}`,e)||this.getBorderImageSlice(d,e),E=this.getBorderImageSource(d,e),R=this.getBorderImageRepeat(d,e);if(!f&&!E&&!R)return null;Object.assign(y,f,E,R)}}return y}static getBorderImageSource(t,e){let o=b.getVariable(t);if(o)return{"border-image-source":{value:o,important:e}};let s=t.toLowerCase();if(b.getGlobal(s)||s==="none")return{"border-image-source":{important:e,value:s}};let n=b.getURL(t)||b.getGradient(t);if(!n)return null;return{"border-image-source":{important:e,value:n}}}static getBorderImageSlice(t,e){let o=b.getVariable(t);if(o)return{"border-image-slice":{value:o,important:e}};let s=t.toLowerCase();if(b.getGlobal(s))return{"border-image-slice":{important:e,value:s}};if(s!==s.trim())return null;let n=/(fill)|(calc\([^^)]+\))|([0-9]+%)|([0-9]+)/g,l=[],a;while(a=n.exec(s)){let y=s[a.index-1],u=s[a.index+a[0].length];if(y&&y!==" "||u&&u!==" ")return null;let c=a[1]&&"fill",d=a[2]&&b.getCalc(a[2]),g=a[3]&&b.getPercentage(a[3]),f=a[4]&&b.getInteger(a[4]);if(!c&&!d&&!g&&!f)return null;l.push(c||d||g||f)}if(!l.length||l.length>4)return null;return{"border-image-slice":{important:e,value:l.join(" ")}}}static getBorderImageWidth(t,e){let o=b.getVariable(t);if(o)return{"border-image-width":{value:o,important:e}};let s=t.toLowerCase();if(b.getGlobal(s))return{"border-image-width":{important:e,value:s}};let n=s.split(je);if(n.length>4)return null;for(let l of n)if(!b.getInteger(l)&&!b.getAutoMeasurement(l))return null;return{"border-image-width":{important:e,value:t}}}static getBorderImageOutset(t,e){if(t==="0")return{"border-image-outset":{important:e,value:t}};let o=b.getVariable(t);if(o)return{"border-image-outset":{value:o,important:e}};let s=t.toLowerCase();if(b.getGlobal(s))return{"border-image-outset":{important:e,value:s}};let n=t.split(je);if(n.length>4)return null;let l=[];for(let a of n){let y=b.getLength(a)||b.getFloat(a);if(!y)return null;l.push(y==="0px"?"0":y)}return{"border-image-outset":{important:e,value:l.join(" ")}}}static getBorderImageRepeat(t,e){let o=b.getVariable(t);if(o)return{"border-image-repeat":{value:o,important:e}};let s=t.toLowerCase();if(b.getGlobal(s))return{"border-image-repeat":{important:e,value:s}};let n=s.split(je);if(n.length>2)return null;for(let l of n)if(!Kf.includes(l))return null;return{"border-image-repeat":{important:e,value:t}}}static getBorderTopWidth(t,e){let o=b.getVariable(t);if(o)return{"border-top-width":{value:o,important:e}};let s=t.toLowerCase(),n=yp.includes(s)||b.getGlobal(s)?s:b.getLength(t);if(n)return{"border-top-width":{value:n,important:e}};return null}static getBorderRightWidth(t,e){let o=b.getVariable(t);if(o)return{"border-right-width":{value:o,important:e}};let s=t.toLowerCase(),n=yp.includes(s)||b.getGlobal(s)?s:b.getLength(t);if(n)return{"border-right-width":{value:n,important:e}};return null}static getBorderBottomWidth(t,e){let o=b.getVariable(t);if(o)return{"border-bottom-width":{value:o,important:e}};let s=t.toLowerCase(),n=yp.includes(s)||b.getGlobal(s)?s:b.getLength(t);if(n)return{"border-bottom-width":{value:n,important:e}};return null}static getBorderLeftWidth(t,e){let o=b.getVariable(t);if(o)return{"border-left-width":{value:o,important:e}};let s=t.toLowerCase(),n=yp.includes(s)||b.getGlobal(s)?s:b.getLength(t);if(n)return{"border-left-width":{value:n,important:e}};return null}static getBorderTopStyle(t,e){let o=b.getVariable(t);if(o)return{"border-top-style":{value:o,important:e}};let s=t.toLowerCase();if(b.getGlobal(s)||mp.includes(s))return{"border-top-style":{value:s,important:e}};return null}static getBorderRightStyle(t,e){let o=b.getVariable(t);if(o)return{"border-right-style":{value:o,important:e}};let s=t.toLowerCase();if(b.getGlobal(s)||mp.includes(s))return{"border-right-style":{value:s,important:e}};return null}static getBorderBottomStyle(t,e){let o=b.getVariable(t);if(o)return{"border-bottom-style":{value:o,important:e}};let s=t.toLowerCase();if(b.getGlobal(s)||mp.includes(s))return{"border-bottom-style":{value:s,important:e}};return null}static getBorderLeftStyle(t,e){let o=b.getVariable(t);if(o)return{"border-left-style":{value:o,important:e}};let s=t.toLowerCase();if(b.getGlobal(s)||mp.includes(s))return{"border-left-style":{value:s,important:e}};return null}static getBorderTopColor(t,e){let o=b.getVariable(t);if(o)return{"border-top-color":{value:o,important:e}};let s=b.getGlobal(t)||b.getColor(t);return s?{"border-top-color":{value:s,important:e}}:null}static getBorderRightColor(t,e){let o=b.getVariable(t);if(o)return{"border-right-color":{value:o,important:e}};let s=b.getGlobal(t)||b.getColor(t);return s?{"border-right-color":{value:s,important:e}}:null}static getBorderBottomColor(t,e){let o=b.getVariable(t);if(o)return{"border-bottom-color":{value:o,important:e}};let s=b.getGlobal(t)||b.getColor(t);return s?{"border-bottom-color":{value:s,important:e}}:null}static getBorderLeftColor(t,e){let o=b.getVariable(t);if(o)return{"border-left-color":{value:o,important:e}};let s=b.getGlobal(t)||b.getColor(t);return s?{"border-left-color":{value:s,important:e}}:null}static getBorderRadius(t,e){let o=b.getVariable(t);if(o)return{"border-radius":{value:o,important:e}};let s=b.getGlobal(t);if(s)return{...this.getBorderTopLeftRadius(s,e),...this.getBorderTopRightRadius(s,e),...this.getBorderBottomRightRadius(s,e),...this.getBorderBottomLeftRadius(s,e)};let n=t.split(je),l=this.getBorderTopLeftRadius(n[0],e),a=this.getBorderTopRightRadius(n[1]||n[0],e),y=this.getBorderBottomRightRadius(n[2]||n[0],e),u=this.getBorderBottomLeftRadius(n[3]||n[1]||n[0],e);if(!l||!a||!y||!u)return null;return{...l,...a,...y,...u}}static getBorderTopLeftRadius(t,e){let o=b.getVariable(t);if(o)return{"border-top-left-radius":{value:o,important:e}};let s=b.getGlobal(t)||b.getMeasurement(t);return s?{"border-top-left-radius":{important:e,value:s}}:null}static getBorderTopRightRadius(t,e){let o=b.getVariable(t);if(o)return{"border-top-right-radius":{value:o,important:e}};let s=b.getGlobal(t)||b.getMeasurement(t);return s?{"border-top-right-radius":{important:e,value:s}}:null}static getBorderBottomRightRadius(t,e){let o=b.getVariable(t);if(o)return{"border-bottom-right-radius":{value:o,important:e}};let s=b.getGlobal(t)||b.getMeasurement(t);return s?{"border-bottom-right-radius":{important:e,value:s}}:null}static getBorderBottomLeftRadius(t,e){let o=b.getVariable(t);if(o)return{"border-bottom-left-radius":{value:o,important:e}};let s=b.getGlobal(t)||b.getMeasurement(t);return s?{"border-bottom-left-radius":{important:e,value:s}}:null}static getBorderTop(t,e){let o=b.getVariable(t);if(o)return{"border-top":{value:o,important:e}};let s=b.getGlobal(t);if(s)return{...this.getBorderTopWidth(s,e),...this.getBorderTopStyle(s,e),...this.getBorderTopColor(s,e)};let n={...this.getBorderTopWidth("initial",e),...this.getBorderTopStyle("initial",e),...this.getBorderTopColor("initial",e)},l=t.split(je);for(let a of l){let y=this.getBorderTopWidth(a,e),u=this.getBorderTopStyle(a,e),c=this.getBorderTopColor(a,e);if(y===null&&u===null&&c===null)return null;Object.assign(n,y,u,c)}return n}static getBorderRight(t,e){let o=b.getVariable(t);if(o)return{"border-right":{value:o,important:e}};let s=b.getGlobal(t);if(s)return{...this.getBorderRightWidth(s,e),...this.getBorderRightStyle(s,e),...this.getBorderRightColor(s,e)};let n={...this.getBorderRightWidth("initial",e),...this.getBorderRightStyle("initial",e),...this.getBorderRightColor("initial",e)},l=t.split(je);for(let a of l){let y=this.getBorderRightWidth(a,e),u=this.getBorderRightStyle(a,e),c=this.getBorderRightColor(a,e);if(y===null&&u===null&&c===null)return null;Object.assign(n,y,u,c)}return n}static getBorderBottom(t,e){let o=b.getVariable(t);if(o)return{"border-bottom":{value:o,important:e}};let s=b.getGlobal(t);if(s)return{...this.getBorderBottomWidth(s,e),...this.getBorderBottomStyle(s,e),...this.getBorderBottomColor(s,e)};let n={...this.getBorderBottomWidth("initial",e),...this.getBorderBottomStyle("initial",e),...this.getBorderBottomColor("initial",e)},l=t.split(je);for(let a of l){let y=this.getBorderBottomWidth(a,e),u=this.getBorderBottomStyle(a,e),c=this.getBorderBottomColor(a,e);if(y===null&&u===null&&c===null)return null;Object.assign(n,y,u,c)}return n}static getBorderLeft(t,e){let o=b.getVariable(t);if(o)return{"border-left":{value:o,important:e}};let s=b.getGlobal(t);if(s)return{...this.getBorderLeftWidth(s,e),...this.getBorderLeftStyle(s,e),...this.getBorderLeftColor(s,e)};let n={...this.getBorderLeftWidth("initial",e),...this.getBorderLeftStyle("initial",e),...this.getBorderLeftColor("initial",e)},l=t.split(je);for(let a of l){let y=this.getBorderLeftWidth(a,e),u=this.getBorderLeftStyle(a,e),c=this.getBorderLeftColor(a,e);if(y===null&&u===null&&c===null)return null;Object.assign(n,y,u,c)}return n}static getPadding(t,e){let o=b.getVariable(t);if(o)return{padding:{value:o,important:e}};let s=b.getGlobal(t);if(s)return{...this.getPaddingTop(s,e),...this.getPaddingRight(s,e),...this.getPaddingBottom(s,e),...this.getPaddingLeft(s,e)};let n=t.split(je),l=this.getPaddingTop(n[0],e),a=this.getPaddingRight(n[1]||n[0],e),y=this.getPaddingBottom(n[2]||n[0],e),u=this.getPaddingLeft(n[3]||n[1]||n[0],e);if(!l||!a||!y||!u)return null;return{...l,...a,...y,...u}}static getPaddingTop(t,e){let o=b.getVariable(t);if(o)return{"padding-top":{value:o,important:e}};let s=b.getGlobal(t)||b.getMeasurement(t);return s?{"padding-top":{value:s,important:e}}:null}static getPaddingRight(t,e){let o=b.getVariable(t);if(o)return{"padding-right":{value:o,important:e}};let s=b.getGlobal(t)||b.getMeasurement(t);return s?{"padding-right":{value:s,important:e}}:null}static getPaddingBottom(t,e){let o=b.getVariable(t);if(o)return{"padding-bottom":{value:o,important:e}};let s=b.getGlobal(t)||b.getMeasurement(t);return s?{"padding-bottom":{value:s,important:e}}:null}static getPaddingLeft(t,e){let o=b.getVariable(t);if(o)return{"padding-left":{value:o,important:e}};let s=b.getGlobal(t)||b.getMeasurement(t);return s?{"padding-left":{value:s,important:e}}:null}static getMargin(t,e){let o=b.getVariable(t);if(o)return{margin:{value:o,important:e}};let s=b.getGlobal(t);if(s)return{...this.getMarginTop(s,e),...this.getMarginRight(s,e),...this.getMarginBottom(s,e),...this.getMarginLeft(s,e)};let n=t.split(je),l=this.getMarginTop(n[0],e),a=this.getMarginRight(n[1]||n[0],e),y=this.getMarginBottom(n[2]||n[0],e),u=this.getMarginLeft(n[3]||n[1]||n[0],e);if(!l||!a||!y||!u)return null;return{...l,...a,...y,...u}}static getMarginTop(t,e){let o=b.getVariable(t);if(o)return{"margin-top":{value:o,important:e}};let s=b.getGlobal(t)||b.getAutoMeasurement(t);return s?{"margin-top":{value:s,important:e}}:null}static getMarginRight(t,e){let o=b.getVariable(t);if(o)return{"margin-right":{value:o,important:e}};let s=b.getGlobal(t)||b.getAutoMeasurement(t);return s?{"margin-right":{value:s,important:e}}:null}static getMarginBottom(t,e){let o=b.getVariable(t);if(o)return{"margin-bottom":{value:o,important:e}};let s=b.getGlobal(t)||b.getAutoMeasurement(t);return s?{"margin-bottom":{value:s,important:e}}:null}static getMarginLeft(t,e){let o=b.getVariable(t);if(o)return{"margin-left":{value:o,important:e}};let s=b.getGlobal(t)||b.getAutoMeasurement(t);return s?{"margin-left":{value:s,important:e}}:null}static getFlex(t,e){let o=b.getVariable(t);if(o)return{flex:{value:o,important:e}};let s=t.trim().toLowerCase(),n=b.getGlobal(t);if(n)return{...this.getFlexGrow(n,e),...this.getFlexShrink(n,e),...this.getFlexBasis(n,e)};switch(s){case"none":return{...this.getFlexGrow("0",e),...this.getFlexShrink("0",e),...this.getFlexBasis("auto",e)};case"auto":return{...this.getFlexGrow("1",e),...this.getFlexShrink("1",e),...this.getFlexBasis("auto",e)}}let l=b.getContentMeasurement(s);if(l)return{...this.getFlexGrow("1",e),...this.getFlexShrink("1",e),...this.getFlexBasis(l,e)};let a=t.split(je),y=this.getFlexGrow(a[0],e),u=this.getFlexShrink(a[1]||"1",e),c=this.getFlexBasis(a[2]||"0%",e);if(!y||!u||!c)return null;return{...y,...u,...c}}static getFlexBasis(t,e){let o=b.getVariable(t);if(o)return{"flex-basis":{value:o,important:e}};let s=t.toLowerCase();if(b.getGlobal(s)||Df.includes(s))return{"flex-basis":{value:s,important:e}};let n=b.getContentMeasurement(s);return n?{"flex-basis":{value:n,important:e}}:null}static getFlexShrink(t,e){let o=b.getVariable(t);if(o)return{"flex-shrink":{value:o,important:e}};let s=b.getGlobal(t)||b.getFloat(t);return s?{"flex-shrink":{value:s,important:e}}:null}static getFlexGrow(t,e){let o=b.getVariable(t);if(o)return{"flex-grow":{value:o,important:e}};let s=b.getGlobal(t)||b.getFloat(t);return s?{"flex-grow":{value:s,important:e}}:null}static getBackground(t,e){let o=b.getVariable(t);if(o)return{background:{value:o,important:e}};let s=b.getGlobal(t);if(s)return{...this.getBackgroundImage(s,e),...this.getBackgroundPosition(s,e),...this.getBackgroundSize(s,e),...this.getBackgroundRepeat(s,e),...this.getBackgroundAttachment(s,e),...this.getBackgroundOrigin(s,e),...this.getBackgroundClip(s,e),...this.getBackgroundColor(s,e)};let n={...this.getBackgroundImage("initial",e),...this.getBackgroundPosition("initial",e),...this.getBackgroundSize("initial",e),...this.getBackgroundRepeat("initial",e),...this.getBackgroundAttachment("initial",e),...this.getBackgroundOrigin("initial",e),...this.getBackgroundClip("initial",e),...this.getBackgroundColor("initial",e)},l=Hl.splitBySpace(t.replace(/\s+\/\s+/g,"/")),a=[];for(let y of l)if(!y.startsWith("url")&&y.includes("/")){let[u,c]=y.split("/"),d=this.getBackgroundPositionX(u,e),g=this.getBackgroundPositionY(u,e),f=this.getBackgroundSize(c,e);if(!d&&!g||!f)return null;if(g)a.push(g["background-position-y"].value);else if(d)a.push(d["background-position-x"].value);Object.assign(n,f)}else{let u=this.getBackgroundImage(y,e),c=this.getBackgroundRepeat(y,e),d=this.getBackgroundAttachment(y,e),g=this.getBackgroundPositionX(y,e),f=this.getBackgroundPositionY(y,e),E=this.getBackgroundColor(y,e),R=this.getBackgroundOrigin(y,e),H=this.getBackgroundClip(y,e);if(!u&&!c&&!d&&!g&&!f&&!E&&!R&&!H)return null;if(g)a.push(g["background-position-x"].value);else if(f)a.push(f["background-position-y"].value);Object.assign(n,u,c,d,E,R,H)}if(a.length)Object.assign(n,this.getBackgroundPosition(a.join(" "),e));return n}static getBackgroundSize(t,e){let o=b.getVariable(t);if(o)return{"background-size":{value:o,important:e}};let s=t.toLowerCase();if(b.getGlobal(s))return{"background-size":{value:s,important:e}};let n=s.split(oc),l=[];for(let a of n){let y=a.trim().split(" ");if(y.length!==1&&y.length!==2)return null;if(y.length===1){if(y[0]!=="cover"&&y[0]!=="contain"&&!b.getAutoMeasurement(y[0]))return null;l.push(y[0])}else{if(!b.getAutoMeasurement(y[0])||!b.getAutoMeasurement(y[1]))return null;l.push(`${y[0]} ${y[1]}`)}}if(l.length===1)return{"background-size":{value:l.join(", "),important:e}};return null}static getBackgroundOrigin(t,e){let o=b.getVariable(t);if(o)return{"background-origin":{value:o,important:e}};let s=t.toLowerCase();if(b.getGlobal(s)||Rf.includes(s))return{"background-origin":{value:s,important:e}};return null}static getBackgroundClip(t,e){let o=b.getVariable(t);if(o)return{"background-clip":{value:o,important:e}};let s=t.toLowerCase();if(b.getGlobal(s)||Ff.includes(s))return{"background-clip":{value:s,important:e}};return null}static getBackgroundRepeat(t,e){let o=b.getVariable(t);if(o)return{"background-repeat":{value:o,important:e}};let s=t.toLowerCase();if(b.getGlobal(s)||If.includes(s))return{"background-repeat":{value:s,important:e}};return null}static getBackgroundAttachment(t,e){let o=b.getVariable(t);if(o)return{"background-attachment":{value:o,important:e}};let s=t.toLowerCase();if(b.getGlobal(s)||Vf.includes(s))return{"background-attachment":{value:s,important:e}};return null}static getBackgroundPosition(t,e){let o=b.getVariable(t);if(o)return{"background-position":{value:o,important:e}};let s=b.getGlobal(t);if(s)return{...this.getBackgroundPositionX(s,e),...this.getBackgroundPositionY(s,e)};let n=t.split(oc),l="",a="";for(let c of n){let d=c.trim().split(je);if(l)l+=",",a+=",";switch(d.length){case 1:if(d[0]==="top"||d[0]==="bottom")l+="center",a+=d[0];else if(d[0]==="left"||d[0]==="right")l+=d[0],a+="center";else if(d[0]==="center")l+="center",a+="center";break;case 2:l+=d[0]==="top"||d[0]==="bottom"?d[1]:d[0],a+=d[0]==="top"||d[0]==="bottom"?d[0]:d[1];break;case 3:if(d[0]==="top"||d[0]==="bottom"||d[1]==="left"||d[1]==="right"||d[2]==="left"||d[2]==="right")if(b.getMeasurement(d[1]))l+=d[2],a+=`${d[0]} ${d[1]}`;else l+=`${d[1]} ${d[2]}`,a+=d[0];else if(b.getMeasurement(d[1]))l+=`${d[0]} ${d[1]}`,a+=d[2];else l+=d[0],a+=`${d[1]} ${d[2]}`;break;case 4:l+=d[0]==="top"||d[0]==="bottom"||d[1]==="top"||d[1]==="bottom"?`${d[2]} ${d[3]}`:`${d[0]} ${d[1]}`,a+=d[0]==="top"||d[0]==="bottom"||d[1]==="top"||d[1]==="bottom"?`${d[0]} ${d[1]}`:`${d[2]} ${d[3]}`;break;default:return null}}let y=this.getBackgroundPositionX(l,e),u=this.getBackgroundPositionY(a,e);if(y&&u)return{...y,...u};return null}static getBackgroundPositionX(t,e){let o=b.getVariable(t);if(o)return{"background-position-x":{value:o,important:e}};let s=t.toLowerCase();if(b.getGlobal(s))return{"background-position-x":{value:s,important:e}};let n=s.split(oc),l="";for(let a of n){let y=a.trim().split(je);if(l)l+=",";for(let u of y){let c=b.getMeasurement(u);if(!c&&u!=="left"&&u!=="right"&&u!=="center")return null;if(l)l+=" ";l+=c||u}}return{"background-position-x":{value:l,important:e}}}static getBackgroundPositionY(t,e){let o=b.getVariable(t);if(o)return{"background-position-y":{value:o,important:e}};let s=t.toLowerCase();if(b.getGlobal(s))return{"background-position-y":{value:s,important:e}};let n=s.split(oc),l="";for(let a of n){let y=a.trim().split(je);if(l)l+=",";for(let u of y){let c=b.getMeasurement(u);if(!c&&u!=="top"&&u!=="bottom"&&u!=="center")return null;if(l)l+=" ";l+=c||u}}return{"background-position-y":{value:l,important:e}}}static getBackgroundColor(t,e){let o=b.getVariable(t);if(o)return{"background-color":{value:o,important:e}};let s=b.getGlobal(t)||b.getColor(t);return s?{["background-color"]:{important:e,value:s}}:null}static getBackgroundImage(t,e){let o=b.getVariable(t);if(o)return{"background-image":{value:o,important:e}};let s=t.toLowerCase();if(b.getGlobal(s)||s==="none")return{"background-image":{value:s,important:e}};let n=Hl.splitByComma(t),l=[];for(let a of n){let y=b.getURL(a.trim())||b.getGradient(a.trim());if(!y)return null;l.push(y)}if(l.length)return{"background-image":{value:l.join(", "),important:e}};return null}static getColor(t,e){let o=b.getVariable(t);if(o)return{color:{value:o,important:e}};let s=b.getGlobal(t)||b.getColor(t);return s?{color:{important:e,value:s}}:null}static getFloodColor(t,e){let o=b.getVariable(t);if(o)return{"flood-color":{value:o,important:e}};let s=b.getGlobal(t)||b.getColor(t);return s?{"flood-color":{important:e,value:s}}:null}static getFont(t,e){let o=b.getVariable(t);if(o)return{font:{value:o,important:e}};let s=t.toLowerCase();if(b.getGlobal(s))return{...this.getFontStyle(s,e),...this.getFontVariant(s,e),...this.getFontWeight(s,e),...this.getFontStretch(s,e),...this.getFontSize(s,e),...this.getLineHeight(s,e),...this.getFontFamily(s,e)};if(Gf.includes(s))return{font:{value:s,important:e}};let n={...this.getFontStyle("normal",e),...this.getFontVariant("normal",e),...this.getFontWeight("normal",e),...this.getFontStretch("normal",e),...this.getLineHeight("normal",e)},l=t.replace(/\s*\/\s*/g,"/").split(je);for(let a=0,y=l.length;a<y;a++){let u=l[a];if(u.includes("/")){let[c,d]=u.split("/"),g=this.getFontSize(c,e),f=this.getLineHeight(d,e);if(!g||!f)return null;Object.assign(n,g,f)}else{let c=this.getFontStyle(u,e),d=this.getFontVariant(u,e),g=this.getFontWeight(u,e),f=this.getFontSize(u,e),E=this.getFontStretch(u,e);if(c)Object.assign(n,c);else if(d)Object.assign(n,d);else if(g)Object.assign(n,g);else if(f)Object.assign(n,f);else if(E)Object.assign(n,E);else{let R=l.slice(a).join(" "),H=this.getFontFamily(R,e);if(!H)return null;Object.assign(n,H);break}}}return n}static getFontStyle(t,e){let o=b.getVariable(t);if(o)return{"font-style":{value:o,important:e}};let s=t.toLowerCase();if(b.getGlobal(s)||Hf.includes(s))return{"font-style":{value:s,important:e}};let n=t.split(je);if(n.length===2&&n[0]==="oblique")return b.getDegree(n[1])?{"font-style":{value:s,important:e}}:null;return null}static getFontVariant(t,e){let o=b.getVariable(t);if(o)return{"font-variant":{value:o,important:e}};let s=t.toLowerCase();return b.getGlobal(s)||s==="normal"||s==="small-caps"?{"font-variant":{value:s,important:e}}:null}static getFontStretch(t,e){let o=b.getVariable(t);if(o)return{"font-stretch":{value:o,important:e}};let s=t.toLowerCase();if(b.getGlobal(s)||_f.includes(s))return{"font-stretch":{value:s,important:e}};let n=b.getPercentage(t);return n?{"font-stretch":{value:n,important:e}}:null}static getFontWeight(t,e){let o=b.getVariable(t);if(o)return{"font-weight":{value:o,important:e}};let s=t.toLowerCase();if(b.getGlobal(s)||Uf.includes(s))return{"font-weight":{value:s,important:e}};let n=b.getInteger(t);return n?{"font-weight":{value:n,important:e}}:null}static getFontSize(t,e){let o=b.getVariable(t);if(o)return{"font-size":{value:o,important:e}};let s=t.toLowerCase();if(b.getGlobal(s)||Wf.includes(s))return{"font-size":{value:s,important:e}};let n=b.getMeasurement(t);return n?{"font-size":{value:n,important:e}}:null}static getLineHeight(t,e){let o=b.getVariable(t);if(o)return{"line-height":{value:o,important:e}};let s=t.toLowerCase();if(b.getGlobal(s)||s==="normal")return{"line-height":{value:s,important:e}};let n=b.getFloat(t)||b.getMeasurement(t);return n?{"line-height":{value:n,important:e}}:null}static getFontFamily(t,e){let o=b.getVariable(t);if(o)return{"font-family":{value:o,important:e}};let s=b.getGlobal(t);if(s)return{"font-family":{value:s,important:e}};let n=t.split(","),l="",a=!1;for(let y=0,u=n.length;y<u;y++){let c=n[y].trim().replace(/'/g,'"');if(!c)return null;if(c.includes(" ")){let d=(c.match(/"/g)||[]).length;if((c[0]!=='"'||y!==0)&&d!==2&&d!==0)return null;if(c[0]==='"'&&c[c.length-1]!=='"')a=!0;else if(c[0]!=='"'&&c[c.length-1]!=='"')c=`"${c}"`}else c=c.replace(/"/g,"");if(y>0)l+=", ";l+=c}if(a)l+='"';if(!l)return null;return{"font-family":{important:e,value:l}}}static getTextTransform(t,e){let o=b.getVariable(t);if(o)return{"text-transform":{value:o,important:e}};let s=t.toLowerCase(),n=b.getGlobal(s)||Qf.includes(s)&&s;if(n)return{"text-transform":{value:n,important:e}};return null}static getVisibility(t,e){let o=b.getVariable(t);if(o)return{visibility:{value:o,important:e}};let s=t.toLowerCase(),n=b.getGlobal(s)||jf.includes(s)&&s;if(n)return{visibility:{value:n,important:e}};return null}static getAspectRatio(t,e){let o=b.getVariable(t);if(o)return{"aspect-ratio":{value:o,important:e}};let s=t.toLowerCase();if(b.getGlobal(s))return{"aspect-ratio":{value:s,important:e}};let n=t,l=n.includes("auto");if(l)n=n.replace("auto","");if(n=n.replace(kf,""),!n)return{"aspect-ratio":{value:"auto",important:e}};let a=n.split("/");if(a.length>3)return null;let y=Number(a[0]),u=a[1]?Number(a[1]):1;if(isNaN(y)||isNaN(u))return null;if(l)return{"aspect-ratio":{value:`auto ${y} / ${u}`,important:e}};return{"aspect-ratio":{value:`${y} / ${u}`,important:e}}}}class yr{static getMargin(t){return this.getPaddingLikeProperty(["margin-top","margin-right","margin-bottom","margin-left"],t)}static getPadding(t){return this.getPaddingLikeProperty(["padding-top","padding-right","padding-bottom","padding-left"],t)}static getOutline(t){if(!t["outline-color"]?.value||!t["outline-style"]?.value||!t["outline-width"]?.value)return null;let e=t["outline-color"].important&&t["outline-style"].important&&t["outline-width"].important;if(b.getGlobalExceptInitial(t["outline-width"].value)&&t["outline-width"].value===t["outline-style"].value&&t["outline-width"].value===t["outline-color"].value)return{important:e,value:t["outline-width"].value};let o=[];if(!b.getInitial(t["outline-color"]?.value))o.push(t["outline-color"].value);if(!b.getInitial(t["outline-style"]?.value))o.push(t["outline-style"].value);if(!b.getInitial(t["outline-width"].value))o.push(t["outline-width"].value);return{important:e,value:o.join(" ")}}static getBorder(t){if(!t["border-top-width"]?.value||t["border-top-width"]?.value!==t["border-right-width"]?.value||t["border-top-width"]?.value!==t["border-bottom-width"]?.value||t["border-top-width"]?.value!==t["border-left-width"]?.value||!t["border-top-style"]?.value||t["border-top-style"]?.value!==t["border-right-style"]?.value||t["border-top-style"]?.value!==t["border-bottom-style"]?.value||t["border-top-style"]?.value!==t["border-left-style"]?.value||!t["border-top-color"]?.value||t["border-top-color"]?.value!==t["border-right-color"]?.value||t["border-top-color"]?.value!==t["border-bottom-color"]?.value||t["border-top-color"]?.value!==t["border-left-color"]?.value||!t["border-image-source"]?.value||!t["border-image-slice"]?.value||!t["border-image-width"]?.value||!t["border-image-outset"]?.value||!t["border-image-repeat"]?.value)return null;let e=t["border-top-width"].important&&t["border-right-width"].important&&t["border-bottom-width"].important&&t["border-left-width"].important&&t["border-top-style"].important&&t["border-right-style"].important&&t["border-bottom-style"].important&&t["border-left-style"].important&&t["border-top-color"].important&&t["border-right-color"].important&&t["border-bottom-color"].important&&t["border-left-color"].important&&t["border-image-source"].important&&t["border-image-slice"].important&&t["border-image-width"].important&&t["border-image-outset"].important&&t["border-image-repeat"].important;if(b.getGlobalExceptInitial(t["border-top-width"].value)||b.getGlobalExceptInitial(t["border-top-style"].value)||b.getGlobalExceptInitial(t["border-top-color"].value)||b.getGlobalExceptInitial(t["border-image-source"].value)||b.getGlobalExceptInitial(t["border-image-slice"].value)||b.getGlobalExceptInitial(t["border-image-width"].value)||b.getGlobalExceptInitial(t["border-image-outset"].value)||b.getGlobalExceptInitial(t["border-image-repeat"].value)){if(t["border-top-width"].value!==t["border-top-style"].value||t["border-top-width"].value!==t["border-top-color"].value||t["border-top-width"].value!==t["border-image-source"].value||t["border-top-width"].value!==t["border-image-slice"].value||t["border-top-width"].value!==t["border-image-width"].value||t["border-top-width"].value!==t["border-image-outset"].value||t["border-top-width"].value!==t["border-image-repeat"].value)return null;return{important:e,value:t["border-top-width"].value}}let o=[];if(!b.getInitial(t["border-top-width"].value))o.push(t["border-top-width"].value);if(!b.getInitial(t["border-top-style"].value))o.push(t["border-top-style"].value);if(!b.getInitial(t["border-top-color"].value))o.push(t["border-top-color"].value);return{important:e,value:o.join(" ")}}static getBorderTop(t){return this.getBorderTopRightBottomLeft("top",t)}static getBorderRight(t){return this.getBorderTopRightBottomLeft("right",t)}static getBorderBottom(t){return this.getBorderTopRightBottomLeft("bottom",t)}static getBorderLeft(t){return this.getBorderTopRightBottomLeft("left",t)}static getBorderColor(t){return this.getPaddingLikeProperty(["border-top-color","border-right-color","border-bottom-color","border-left-color"],t)}static getBorderWidth(t){return this.getPaddingLikeProperty(["border-top-width","border-right-width","border-bottom-width","border-left-width"],t)}static getBorderStyle(t){return this.getPaddingLikeProperty(["border-top-style","border-right-style","border-bottom-style","border-left-style"],t)}static getBorderRadius(t){return this.getPaddingLikeProperty(["border-top-left-radius","border-top-right-radius","border-bottom-right-radius","border-bottom-left-radius"],t)}static getBorderImage(t){if(!t["border-image-source"]?.value||!t["border-image-slice"]?.value||!t["border-image-width"]?.value||!t["border-image-outset"]?.value||!t["border-image-repeat"]?.value)return null;let e=t["border-image-source"].important&&t["border-image-slice"].important&&t["border-image-width"].important&&t["border-image-outset"].important&&t["border-image-repeat"].important;if(b.getGlobal(t["border-image-source"].value)||b.getGlobal(t["border-image-slice"].value)||b.getGlobal(t["border-image-width"].value)||b.getGlobal(t["border-image-outset"].value)||b.getGlobal(t["border-image-repeat"].value)){if(t["border-image-source"].value!==t["border-image-slice"].value||t["border-image-source"].value!==t["border-image-width"].value||t["border-image-source"].value!==t["border-image-outset"].value||t["border-image-source"].value!==t["border-image-repeat"].value)return null;return{important:e,value:t["border-image-source"].value}}return{important:e,value:`${t["border-image-source"].value} ${t["border-image-slice"].value} / ${t["border-image-width"].value} / ${t["border-image-outset"].value} ${t["border-image-repeat"].value}`}}static getBackground(t){if(!t["background-image"]?.value||!t["background-repeat"]?.value||!t["background-attachment"]?.value||!t["background-position-x"]?.value||!t["background-position-y"]?.value||!t["background-color"]?.value||!t["background-size"]?.value||!t["background-origin"]?.value||!t["background-clip"]?.value)return null;let e=t["background-image"].important&&t["background-repeat"].important&&t["background-attachment"].important&&t["background-position-x"].important&&t["background-position-y"].important&&t["background-color"].important&&t["background-size"].important&&t["background-origin"].important&&t["background-clip"].important;if(b.getGlobalExceptInitial(t["background-image"].value)||b.getGlobalExceptInitial(t["background-repeat"].value)||b.getGlobalExceptInitial(t["background-attachment"].value)||b.getGlobalExceptInitial(t["background-position-x"].value)||b.getGlobalExceptInitial(t["background-position-y"].value)||b.getGlobalExceptInitial(t["background-color"].value)||b.getGlobalExceptInitial(t["background-size"].value)||b.getGlobalExceptInitial(t["background-origin"].value)||b.getGlobalExceptInitial(t["background-clip"].value)){if(t["background-image"].value!==t["background-repeat"].value||t["background-image"].value!==t["background-attachment"].value||t["background-image"].value!==t["background-position-x"].value||t["background-image"].value!==t["background-position-y"].value||t["background-image"].value!==t["background-color"].value||t["background-image"].value!==t["background-size"].value||t["background-image"].value!==t["background-origin"].value||t["background-image"].value!==t["background-clip"].value)return null;return{important:e,value:t["background-image"].value}}let o=[];if(!b.getInitial(t["background-image"].value))o.push(t["background-image"].value);if(!b.getInitial(t["background-position-x"].value)&&!b.getInitial(t["background-position-y"].value)&&!b.getInitial(t["background-size"].value))o.push(`${t["background-position-x"].value} ${t["background-position-y"].value} / ${t["background-size"].value}`);else if(!b.getInitial(t["background-position-x"].value)&&!b.getInitial(t["background-position-y"].value))o.push(`${t["background-position-x"].value} ${t["background-position-y"].value}`);if(!b.getInitial(t["background-repeat"].value))o.push(t["background-repeat"].value);if(!b.getInitial(t["background-attachment"].value))o.push(t["background-attachment"].value);if(!b.getInitial(t["background-origin"].value))o.push(t["background-origin"].value);if(!b.getInitial(t["background-clip"].value))o.push(t["background-clip"].value);if(!b.getInitial(t["background-color"].value))o.push(t["background-color"].value);return{important:e,value:o.join(" ")}}static getBackgroundPosition(t){if(!t["background-position-x"]?.value||!t["background-position-y"]?.value)return null;let e=t["background-position-x"].important&&t["background-position-y"].important;if(b.getGlobal(t["background-position-x"].value)||b.getGlobal(t["background-position-y"].value)){if(t["background-position-x"].value!==t["background-position-y"].value)return null;return{important:e,value:t["background-position-x"].value}}let o=t["background-position-x"].value.replace(/ *, */g,",").split(","),s=t["background-position-y"].value.replace(/ *, */g,",").split(","),n=[];for(let l=0;l<o.length;l++)n.push(`${o[l]} ${s[l]}`);return{important:e,value:n.join(", ")}}static getFlex(t){if(!t["flex-grow"]?.value||!t["flex-shrink"]?.value||!t["flex-basis"]?.value)return null;let e=t["flex-grow"].important&&t["flex-shrink"].important&&t["flex-basis"].important;if(b.getGlobal(t["flex-grow"].value)||b.getGlobal(t["flex-shrink"].value)||b.getGlobal(t["flex-basis"].value)){if(t["flex-grow"].value!==t["flex-shrink"].value||t["flex-grow"].value!==t["flex-basis"].value)return null;return{important:e,value:t["flex-grow"].value}}return{important:e,value:`${t["flex-grow"].value} ${t["flex-shrink"].value} ${t["flex-basis"].value}`}}static getFont(t){if(!t["font-size"]?.value||!t["font-family"]?.value||!t["font-weight"]?.value||!t["font-style"]?.value||!t["font-variant"]?.value||!t["font-stretch"]?.value||!t["line-height"]?.value)return null;let e=t["font-size"].important&&t["font-family"].important&&t["font-weight"].important&&t["font-style"].important&&t["font-variant"].important&&t["font-stretch"].important&&t["line-height"].important;if(b.getGlobal(t["font-size"].value)||b.getGlobal(t["font-family"].value)||b.getGlobal(t["font-weight"].value)||b.getGlobal(t["font-style"].value)||b.getGlobal(t["font-variant"].value)||b.getGlobal(t["font-stretch"].value)||b.getGlobal(t["line-height"].value)){if(t["font-size"].value!==t["font-family"].value||t["font-size"].value!==t["font-weight"].value||t["font-size"].value!==t["font-style"].value||t["font-size"].value!==t["font-variant"].value||t["font-size"].value!==t["font-stretch"].value||t["font-size"].value!==t["line-height"].value)return null;return{important:e,value:t["font-size"].value}}let o=[];if(t["font-style"].value!=="normal")o.push(t["font-style"].value);if(t["font-variant"].value!=="normal")o.push(t["font-variant"].value);if(t["font-weight"].value!=="normal")o.push(t["font-weight"].value);if(t["font-stretch"].value!=="normal")o.push(t["font-stretch"].value);if(t["line-height"].value!=="normal")o.push(`${t["font-size"].value} / ${t["line-height"].value}`);else o.push(t["font-size"].value);return o.push(t["font-family"].value),{important:e,value:o.join(" ")}}static getBorderTopRightBottomLeft(t,e){if(!e[`border-${t}-width`]?.value||!e[`border-${t}-style`]?.value||!e[`border-${t}-color`]?.value)return null;let o=e[`border-${t}-width`].important&&e[`border-${t}-style`].important&&e[`border-${t}-color`].important;if(b.getGlobalExceptInitial(e[`border-${t}-width`].value)&&e[`border-${t}-width`].value===e[`border-${t}-style`].value&&e[`border-${t}-width`].value===e[`border-${t}-color`].value)return{important:o,value:e[`border-${t}-width`].value};let s=[];if(!b.getInitial(e[`border-${t}-width`].value))s.push(e[`border-${t}-width`].value);if(!b.getInitial(e[`border-${t}-style`]?.value))s.push(e[`border-${t}-style`].value);if(!b.getInitial(e[`border-${t}-color`]?.value))s.push(e[`border-${t}-color`].value);return{important:o,value:s.join(" ")}}static getPaddingLikeProperty(t,e){if(!e[t[0]]?.value||!e[t[1]]?.value||!e[t[2]]?.value||!e[t[3]]?.value)return null;let o=e[t[0]].important&&e[t[1]].important&&e[t[2]].important&&e[t[3]].important;if(b.getGlobal(e[t[0]].value)||b.getGlobal(e[t[1]].value)||b.getGlobal(e[t[2]].value)||b.getGlobal(e[t[3]].value)){if(e[t[0]].value!==e[t[1]].value||e[t[0]].value!==e[t[2]].value||e[t[0]].value!==e[t[3]].value)return null;return{important:o,value:e[t[0]].value}}let s=[e[t[0]].value];if(e[t[1]].value!==e[t[0]].value||e[t[2]].value!==e[t[0]].value||e[t[3]].value!==e[t[1]].value)s.push(e[t[1]].value);if(e[t[2]].value!==e[t[0]].value||e[t[3]].value!==e[t[1]].value)s.push(e[t[2]].value);if(e[t[3]].value!==e[t[1]].value)s.push(e[t[3]].value);return{important:o,value:s.join(" ")}}}var qf=/\s*([^:;]+?)\s*:\s*((?:[^(;]*?(?:\([^)]*\))?)*?)\s*(!important)?\s*(?:$|;)/g;class Ua{static parse(t){let e={},o=[],s=new RegExp(qf),n;while(n=s.exec(t)){let l=(n[1]??"").trim(),a=(n[2]??"").trim(),y=n[3]?!0:!1;if(l&&a){if(l.startsWith("--"))e[l]=a;o.push({name:l,value:a,important:y})}}return{rules:o,properties:e}}}var $f=[["margin"],["padding"],["border",["border-width","border-style","border-color","border-image"]],["border-radius"],["background","background-position"],["font"]];class ms{properties={};definedPropertyNames={};constructor(t){if(t?.cssText){let{rules:e}=Ua.parse(t.cssText);for(let o of e)if(o.important||!this.get(o.name)?.important)this.set(o.name,o.value,o.important)}}get(t){if(this.properties[t])return this.properties[t];switch(t){case"margin":return yr.getMargin(this.properties);case"padding":return yr.getPadding(this.properties);case"border":return yr.getBorder(this.properties);case"border-top":return yr.getBorderTop(this.properties);case"border-right":return yr.getBorderRight(this.properties);case"border-bottom":return yr.getBorderBottom(this.properties);case"border-left":return yr.getBorderLeft(this.properties);case"border-color":return yr.getBorderColor(this.properties);case"border-style":return yr.getBorderStyle(this.properties);case"border-width":return yr.getBorderWidth(this.properties);case"border-radius":return yr.getBorderRadius(this.properties);case"border-image":return yr.getBorderImage(this.properties);case"outline":return yr.getOutline(this.properties);case"background":return yr.getBackground(this.properties);case"background-position":return yr.getBackgroundPosition(this.properties);case"flex":return yr.getFlex(this.properties);case"font":return yr.getFont(this.properties)}return this.properties[t]||null}remove(t){switch(delete this.properties[t],delete this.definedPropertyNames[t],t){case"border":delete this.properties["border-top-width"],delete this.properties["border-right-width"],delete this.properties["border-bottom-width"],delete this.properties["border-left-width"],delete this.properties["border-top-style"],delete this.properties["border-right-style"],delete this.properties["border-bottom-style"],delete this.properties["border-left-style"],delete this.properties["border-top-color"],delete this.properties["border-right-color"],delete this.properties["border-bottom-color"],delete this.properties["border-left-color"],delete this.properties["border-image-source"],delete this.properties["border-image-slice"],delete this.properties["border-image-width"],delete this.properties["border-image-outset"],delete this.properties["border-image-repeat"];break;case"border-top":delete this.properties["border-top-width"],delete this.properties["border-top-style"],delete this.properties["border-top-color"],delete this.properties["border-image-source"],delete this.properties["border-image-slice"],delete this.properties["border-image-width"],delete this.properties["border-image-outset"],delete this.properties["border-image-repeat"];break;case"border-right":delete this.properties["border-right-width"],delete this.properties["border-right-style"],delete this.properties["border-right-color"],delete this.properties["border-image-source"],delete this.properties["border-image-slice"],delete this.properties["border-image-width"],delete this.properties["border-image-outset"],delete this.properties["border-image-repeat"];break;case"border-bottom":delete this.properties["border-bottom-width"],delete this.properties["border-bottom-style"],delete this.properties["border-bottom-color"],delete this.properties["border-image-source"],delete this.properties["border-image-slice"],delete this.properties["border-image-width"],delete this.properties["border-image-outset"],delete this.properties["border-image-repeat"];break;case"border-left":delete this.properties["border-left-width"],delete this.properties["border-left-style"],delete this.properties["border-left-color"],delete this.properties["border-image-source"],delete this.properties["border-image-slice"],delete this.properties["border-image-width"],delete this.properties["border-image-outset"],delete this.properties["border-image-repeat"];break;case"border-width":delete this.properties["border-top-width"],delete this.properties["border-right-width"],delete this.properties["border-bottom-width"],delete this.properties["border-left-width"];break;case"border-style":delete this.properties["border-top-style"],delete this.properties["border-right-style"],delete this.properties["border-bottom-style"],delete this.properties["border-left-style"];break;case"border-color":delete this.properties["border-top-color"],delete this.properties["border-right-color"],delete this.properties["border-bottom-color"],delete this.properties["border-left-color"];break;case"border-image":delete this.properties["border-image-source"],delete this.properties["border-image-slice"],delete this.properties["border-image-width"],delete this.properties["border-image-outset"],delete this.properties["border-image-repeat"];break;case"border-radius":delete this.properties["border-top-left-radius"],delete this.properties["border-top-right-radius"],delete this.properties["border-bottom-right-radius"],delete this.properties["border-bottom-left-radius"];break;case"outline":delete this.properties["outline-color"],delete this.properties["outline-style"],delete this.properties["outline-width"];break;case"background":delete this.properties["background-color"],delete this.properties["background-image"],delete this.properties["background-repeat"],delete this.properties["background-attachment"],delete this.properties["background-position-x"],delete this.properties["background-position-y"],delete this.properties["background-size"],delete this.properties["background-origin"],delete this.properties["background-clip"];break;case"background-position":delete this.properties["background-position-x"],delete this.properties["background-position-y"];break;case"flex":delete this.properties["flex-grow"],delete this.properties["flex-shrink"],delete this.properties["flex-basis"];break;case"font":delete this.properties["font-style"],delete this.properties["font-variant"],delete this.properties["font-weight"],delete this.properties["font-stretch"],delete this.properties["font-size"],delete this.properties["line-height"],delete this.properties["font-family"];break;case"padding":delete this.properties["padding-top"],delete this.properties["padding-right"],delete this.properties["padding-bottom"],delete this.properties["padding-left"];break;case"margin":delete this.properties["margin-top"],delete this.properties["margin-right"],delete this.properties["margin-bottom"],delete this.properties["margin-left"];break}}set(t,e,o){if(e===null){this.remove(t);return}let s=null;switch(t){case"border":s=X.getBorder(e,o);break;case"border-top":s=X.getBorderTop(e,o);break;case"border-right":s=X.getBorderRight(e,o);break;case"border-bottom":s=X.getBorderBottom(e,o);break;case"border-left":s=X.getBorderLeft(e,o);break;case"border-width":s=X.getBorderWidth(e,o);break;case"border-style":s=X.getBorderStyle(e,o);break;case"border-color":s=X.getBorderColor(e,o);break;case"border-image":s=X.getBorderImage(e,o);break;case"border-image-source":s=X.getBorderImageSource(e,o);break;case"border-image-slice":s=X.getBorderImageSlice(e,o);break;case"border-image-width":s=X.getBorderImageWidth(e,o);break;case"border-image-outset":s=X.getBorderImageOutset(e,o);break;case"border-image-repeat":s=X.getBorderImageRepeat(e,o);break;case"border-top-width":s=X.getBorderTopWidth(e,o);break;case"border-right-width":s=X.getBorderRightWidth(e,o);break;case"border-bottom-width":s=X.getBorderBottomWidth(e,o);break;case"border-left-width":s=X.getBorderLeftWidth(e,o);break;case"border-top-color":s=X.getBorderTopColor(e,o);break;case"border-right-color":s=X.getBorderRightColor(e,o);break;case"border-bottom-color":s=X.getBorderBottomColor(e,o);break;case"border-left-color":s=X.getBorderLeftColor(e,o);break;case"border-top-style":s=X.getBorderTopStyle(e,o);break;case"border-right-style":s=X.getBorderRightStyle(e,o);break;case"border-bottom-style":s=X.getBorderBottomStyle(e,o);break;case"border-left-style":s=X.getBorderLeftStyle(e,o);break;case"border-radius":s=X.getBorderRadius(e,o);break;case"border-top-left-radius":s=X.getBorderTopLeftRadius(e,o);break;case"border-top-right-radius":s=X.getBorderTopRightRadius(e,o);break;case"border-bottom-right-radius":s=X.getBorderBottomRightRadius(e,o);break;case"border-bottom-left-radius":s=X.getBorderBottomLeftRadius(e,o);break;case"border-collapse":s=X.getBorderCollapse(e,o);break;case"outline":s=X.getOutline(e,o);break;case"outline-width":s=X.getOutlineWidth(e,o);break;case"outline-style":s=X.getOutlineStyle(e,o);break;case"outline-color":s=X.getOutlineColor(e,o);break;case"letter-spacing":s=X.getLetterSpacing(e,o);break;case"word-spacing":s=X.getWordSpacing(e,o);break;case"clear":s=X.getClear(e,o);break;case"clip":s=X.getClip(e,o);break;case"css-float":s=X.getCSSFloat(e,o);break;case"float":s=X.getFloat(e,o);break;case"display":s=X.getDisplay(e,o);break;case"direction":s=X.getDirection(e,o);break;case"flex":s=X.getFlex(e,o);break;case"flex-shrink":s=X.getFlexShrink(e,o);break;case"flex-grow":s=X.getFlexGrow(e,o);break;case"flex-basis":s=X.getFlexBasis(e,o);break;case"padding":s=X.getPadding(e,o);break;case"padding-top":s=X.getPaddingTop(e,o);break;case"padding-right":s=X.getPaddingRight(e,o);break;case"padding-bottom":s=X.getPaddingBottom(e,o);break;case"padding-left":s=X.getPaddingLeft(e,o);break;case"margin":s=X.getMargin(e,o);break;case"margin-top":s=X.getMarginTop(e,o);break;case"margin-right":s=X.getMarginRight(e,o);break;case"margin-bottom":s=X.getMarginBottom(e,o);break;case"margin-left":s=X.getMarginLeft(e,o);break;case"background":s=X.getBackground(e,o);break;case"background-image":s=X.getBackgroundImage(e,o);break;case"background-color":s=X.getBackgroundColor(e,o);break;case"background-repeat":s=X.getBackgroundRepeat(e,o);break;case"background-attachment":s=X.getBackgroundAttachment(e,o);break;case"background-position":s=X.getBackgroundPosition(e,o);break;case"width":s=X.getWidth(e,o);break;case"height":s=X.getHeight(e,o);break;case"top":s=X.getTop(e,o);break;case"right":s=X.getRight(e,o);break;case"bottom":s=X.getBottom(e,o);break;case"left":s=X.getLeft(e,o);break;case"font":s=X.getFont(e,o);break;case"font-style":s=X.getFontStyle(e,o);break;case"font-variant":s=X.getFontVariant(e,o);break;case"font-weight":s=X.getFontWeight(e,o);break;case"font-stretch":s=X.getFontStretch(e,o);break;case"font-size":s=X.getFontSize(e,o);break;case"line-height":s=X.getLineHeight(e,o);break;case"text-indent":s=X.getTextIndent(e,o);break;case"font-family":s=X.getFontFamily(e,o);break;case"color":s=X.getColor(e,o);break;case"flood-color":s=X.getFloodColor(e,o);break;case"text-transform":s=X.getTextTransform(e,o);break;case"visibility":s=X.getVisibility(e,o);break;case"aspect-ratio":s=X.getAspectRatio(e,o);break;default:let n=e.trim();if(n){let l=b.getGlobal(n);s={[t]:{value:l||n,important:o}}}break}if(s!==null&&Object.keys(s).length>0)this.definedPropertyNames[t]=!0,Object.assign(this.properties,s)}clone(){let e=new this.constructor;return e.properties=JSON.parse(JSON.stringify(this.properties)),e.definedPropertyNames=Object.assign({},this.definedPropertyNames),e}size(){return Object.keys(this.properties).length}item(t){return Object.keys(this.properties)[t]||""}toString(){let t=[],e=this.clone(),o={};for(let s of $f)for(let n of s)if(Array.isArray(n)){let l=!1;for(let a of n){let y=e.get(a);if(y)o[a]=y,e.remove(a),l=!0}if(l)break}else{let l=e.get(n);if(l){o[n]=l,e.remove(n);break}}for(let s of Object.keys(e.properties))o[s]=e.get(s);for(let s of Object.keys(this.definedPropertyNames)){let n=o[s];if(n)t.push(`${s}: ${n.value}${n.important?" !important":""};`),delete o[s]}for(let s of Object.keys(o)){let n=o[s];if(n)t.push(`${s}: ${n.value}${n.important?" !important":""};`)}return t.join(" ")}}var Wg={default:"display: inline;",A:"",ABBR:"",ADDRESS:"display: block;",AREA:"",ARTICLE:"display: block;",ASIDE:"display: block;",AUDIO:"display: none;",B:"",BASE:"display: none;",BDI:"",BDO:"",BLOCKQUAOTE:"",BODY:"display: block;",TEMPLATE:"display: none;",FORM:"display: block;",INPUT:"display: inline-block;",TEXTAREA:"display: inline-block;",SCRIPT:"display: none;",IMG:"",LINK:"display: none;",STYLE:"display: none;",LABEL:"",SLOT:"display: contents;",SVG:"",CIRCLE:"",ELLIPSE:"",LINE:"",PATH:"",POLYGON:"",POLYLINE:"",RECT:"",STOP:"",USE:"",META:"display: none;",BLOCKQUOTE:"display: block;",BR:"",BUTTON:"display: inline-block;",CANVAS:"",CAPTION:"display: table-caption;",CITE:"",CODE:"",COL:"display: table-column;",COLGROUP:"display: table-column-group;",DATA:"",DATALIST:"display: none;",DD:"display: block;",DEL:"",DETAILS:"display: block;",DFN:"",DIALOG:{default:"display: none;",open:"display: block;"},DIV:"display: block;",DL:"display: block;",DT:"display: block;",EM:"",EMBED:"",FIELDSET:"display: block;",FIGCAPTION:"display: block;",FIGURE:"display: block;",FOOTER:"display: block;",H1:"display: block;",H2:"display: block;",H3:"display: block;",H4:"display: block;",H5:"display: block;",H6:"display: block;",HEAD:"display: none;",HEADER:"display: block;",HGROUP:"display: block;",HR:"display: block;",HTML:'display: block;direction: ltr;font: 16px "Times New Roman";',I:"",IFRAME:"",INS:"",KBD:"",LEGEND:"display: block;",LI:"display: list-item;",MAIN:"display: block;",MAP:"",MARK:"",MATH:"",MENU:"display: block;",MENUITEM:"",METER:"display: inline-block;",NAV:"display: block;",NOSCRIPT:"",OBJECT:"",OL:"display: block;",OPTGROUP:"display: block;",OPTION:"display: block;",OUTPUT:"unicode-bidi: isolate;",P:"display: block;",PARAM:"display: none;",PICTURE:"",PRE:"display: block;",PROGRESS:"display: inline-block;",Q:"",RB:"",RP:"display: none;",RT:"",RTC:"",RUBY:"",S:"",SAMP:"",SECTION:"display: block;",SELECT:"display: inline-block;",SMALL:"",SOURCE:"",SPAN:"",STRONG:"",SUB:"",SUMMARY:"display: block;",SUP:"",TABLE:"display: table;",TBODY:"display: table-row-group;",TD:"display: table-cell;",TFOOT:"display: table-footer-group;",TH:"display: table-cell;",THEAD:"display: table-header-group;",TIME:"",TITLE:"display: none;",TR:"display: table-row;",TRACK:"",U:"",UL:"display: block;",VAR:"",VIDEO:"",WBR:""};var _g={"border-collapse":!0,"border-spacing":!0,"caption-side":!0,color:!0,cursor:!0,direction:!0,"empty-cells":!0,"font-family":!0,"font-size":!0,"font-style":!0,"font-variant":!0,"font-weight":!0,"font-size-adjust":!0,"font-stretch":!0,font:!0,"letter-spacing":!0,"line-height":!0,"list-style-image":!0,"list-style-position":!0,"list-style-type":!0,"list-style":!0,orphans:!0,quotes:!0,"tab-size":!0,"text-align":!0,"text-align-last":!0,"text-decoration-color":!0,"text-indent":!0,"text-justify":!0,"text-shadow":!0,"text-transform":!0,visibility:!0,"white-space":!0,widows:!0,"word-break":!0,"word-spacing":!0,"word-wrap":!0};var Yg=["background-position-x","background-position-y","background-size","border-image-outset","border-top-width","border-right-width","border-bottom-width","border-left-width","border-top-left-radius","border-top-right-radius","border-bottom-right-radius","border-bottom-left-radius","border-image-width","clip","font-size","padding-top","padding-right","padding-bottom","padding-left","margin-top","margin-right","margin-bottom","margin-left","width","height","min-width","min-height","max-width","max-height","top","right","bottom","left","outline-width","outline-offset","letter-spacing","word-spacing","text-indent","line-height"];class fe{target;classes;cache=new Map;constructor(t,e){this.target=t,this.classes=e}bind(t){if(this.cache.has(t)||t===Symbol.iterator||t==="constructor")return;this.cache.set(t,!0);let e=this.target;if(!(t in e))return;for(let o of this.classes){let s=Object.getOwnPropertyDescriptor(o.prototype,t);if(s){if(typeof s.value==="function"){if(s.value.toString().startsWith("class "))return;Object.defineProperty(e,t,{...s,value:s.value.bind(e)})}else if(s.get!==void 0)Object.defineProperty(e,t,{...s,get:s.get?.bind(e),set:s.set?.bind(e)});return}}}preventBinding(t){this.cache.set(t,!0)}}class pp{[Q];[Vt];constructor(t,e){if(t!==h)throw TypeError("Illegal constructor");this[Q]=e;let o=new fe(this,this.constructor!==pp?[this.constructor,pp]:[pp]),s=new Proxy(this,{get:(n,l)=>{if(l==="length")return e.length;if(l in n||typeof l==="symbol")return o.bind(l),n[l];if(l==="")return;let a=Number(l);if(!isNaN(a))return e[a]},set(n,l,a){if(o.bind(l),typeof l==="symbol")return n[l]=a,!0;let y=Number(l);if(isNaN(y))n[l]=a;return!0},deleteProperty(n,l){if(typeof l==="symbol")return delete n[l],!0;let a=Number(l);if(isNaN(a))delete n[l];return!0},ownKeys(){return Object.keys(e)},has(n,l){if(l in n)return!0;if(typeof l==="symbol")return!1;let a=Number(l);return!isNaN(a)&&a>=0&&a<e.length},defineProperty(n,l,a){if(o.preventBinding(l),l in n)return Object.defineProperty(n,l,a),!0;return!1},getOwnPropertyDescriptor(n,l){if(l in n||typeof l==="symbol")return;let a=Number(l);if(!isNaN(a)&&e[a])return{value:e[a],writable:!1,enumerable:!0,configurable:!0}}});return this[Vt]=s,s}get length(){return this[Q].length}get[Symbol.toStringTag](){return"NodeList"}toLocaleString(){return"[object NodeList]"}toString(){return"[object NodeList]"}item(t){let e=this[Q];return t>=0&&e[t]?e[t]:null}[Symbol.iterator](){return this[Q][Symbol.iterator]()}values(){return this[Q].values()}entries(){return this[Q].entries()}forEach(t,e){let o=this[Q],s=this[Vt]??this;for(let n=0,l=o.length;n<l;n++){let a=o[n];t.call(e??a[m],a,n,s)}}keys(){return this[Q].keys()}}var Wo=pp;var Db;(function(t){t.none="none",t.descendant="descendant",t.child="child",t.adjacentSibling="adjacentSibling",t.subsequentSibling="subsequentSibling"})(Db||(Db={}));var ce=Db;class up{root;scope;tagName;id;classNames;attributes;pseudos;isPseudoElement;combinator;ignoreErrors;constructor(t){this.root=t?.scope?.[x]?.documentElement||t?.scope?.[m].document?.documentElement||null,this.scope=t?.scope||null,this.tagName=t?.tagName||null,this.id=t?.id||null,this.classNames=t?.classNames||null,this.attributes=t?.attributes||null,this.pseudos=t?.pseudos||null,this.isPseudoElement=t?.isPseudoElement||!1,this.combinator=t?.combinator||ce.none,this.ignoreErrors=t?.ignoreErrors||!1}match(t){let e=0;if(this.isPseudoElement)return null;if(this.tagName){if(this.tagName!=="*"&&this.tagName!==t[z].toUpperCase())return null;e+=1}if(this.id){if(this.id!==t.id)return null;e+=100}if(this.classNames){let o=this.matchClass(t);if(!o)return null;e+=o.priorityWeight}if(this.attributes){let o=this.matchAttributes(t);if(!o)return null;e+=o.priorityWeight}if(this.pseudos){let o=this.matchPseudo(t);if(!o)return null;e+=o.priorityWeight}return{priorityWeight:e}}matchPseudo(t){let e=t[W],o=t[W]?t[W][dt]:[];if(!this.pseudos)return{priorityWeight:0};let s=0;for(let n of this.pseudos){switch(n.name){case"not":case"nth-child":case"nth-of-type":case"nth-last-child":case"nth-last-of-type":case"is":case"where":if(!n.arguments){if(this.ignoreErrors)return null;throw new t[m].DOMException(`Failed to execute 'matches' on '${t.constructor.name}': '${this.getSelectorString()}' is not a valid selector.`)}break}if(!e)switch(n.name){case"first-child":case"last-child":case"only-child":case"first-of-type":case"last-of-type":case"only-of-type":case"nth-child":case"nth-of-type":case"nth-last-child":case"nth-last-of-type":return null}let l=this.matchPseudoItem(t,o,n);if(!l)return null;s+=l.priorityWeight}return{priorityWeight:s}}matchPseudoItem(t,e,o){switch(o.name){case"first-child":return e[0]===t?{priorityWeight:10}:null;case"last-child":return e.length&&e[e.length-1]===t?{priorityWeight:10}:null;case"only-child":return e.length===1&&e[0]===t?{priorityWeight:10}:null;case"first-of-type":for(let g of e)if(g[z]===t[z])return g===t?{priorityWeight:10}:null;return null;case"last-of-type":for(let g=e.length-1;g>=0;g--){let f=e[g];if(f[z]===t[z])return f===t?{priorityWeight:10}:null}return null;case"only-of-type":let s=!1;for(let g of e)if(g[z]===t[z]){if(s||g!==t)return null;s=!0}return s?{priorityWeight:10}:null;case"checked":return t[z]==="INPUT"&&t.checked?{priorityWeight:10}:null;case"disabled":return"disabled"in t&&t.hasAttribute("disabled")?{priorityWeight:10}:null;case"empty":return!t[dt].length?{priorityWeight:10}:null;case"root":return this.root&&t===this.root?{priorityWeight:10}:null;case"not":for(let g of o.selectorItems)if(g.match(t))return null;return{priorityWeight:10};case"nth-child":let n=-1;if(o.selectorItems?.[0]&&!o.selectorItems[0].match(t))return null;for(let g=0,f=e.length;g<f;g++){if(!o.selectorItems?.[0]||o.selectorItems[0].match(e[g]))n++;if(e[g]===t)return n!==-1&&o.nthFunction(n+1)?{priorityWeight:10}:null}return null;case"nth-of-type":let l=-1;for(let g=0,f=e.length;g<f;g++){if(e[g][z]===t[z])l++;if(e[g]===t)return l!==-1&&o.nthFunction(l+1)?{priorityWeight:10}:null}return null;case"nth-last-child":let a=-1;if(o.selectorItems?.[0]&&!o.selectorItems[0].match(t))return null;for(let g=e.length-1;g>=0;g--){if(!o.selectorItems?.[0]||o.selectorItems[0].match(e[g]))a++;if(e[g]===t)return a!==-1&&o.nthFunction(a+1)?{priorityWeight:10}:null}return null;case"nth-last-of-type":let y=-1;for(let g=e.length-1;g>=0;g--){if(e[g][z]===t[z])y++;if(e[g]===t)return y!==-1&&o.nthFunction(y+1)?{priorityWeight:10}:null}return null;case"target":let u=t[x].location.hash;if(!u)return null;return t.isConnected&&t.id===u.slice(1)?{priorityWeight:10}:null;case"is":let c=0;if(!o.selectorItems)return null;for(let g of o.selectorItems){let f=g.match(t);if(f&&c<f.priorityWeight)c=f.priorityWeight}return c?{priorityWeight:c}:null;case"where":if(!o.selectorItems)return null;for(let g of o.selectorItems)if(g.match(t))return{priorityWeight:0};return null;case"has":let d=0;if(o.arguments&&o.selectorItems)if(o.arguments[0]==="+"){let g=t.nextElementSibling;if(!g)return null;for(let f of o.selectorItems){let E=f.match(g);if(E&&d<E.priorityWeight)d=E.priorityWeight}}else if(o.arguments[0]===">")for(let g of o.selectorItems)for(let f of t[dt]){let E=g.match(f);if(E&&d<E.priorityWeight){d=E.priorityWeight;break}}else for(let g of o.selectorItems){let f=this.matchChildOfElement(g,t);if(f&&d<f.priorityWeight)d=f.priorityWeight}return d?{priorityWeight:d}:null;case"focus":case"focus-visible":return t[x].activeElement===t?{priorityWeight:10}:null;case"scope":return this.scope&&this.scope===t?{priorityWeight:10}:null;default:return null}}matchAttributes(t){if(!this.attributes)return null;let e=0;for(let o of this.attributes){let s=t[St].getNamedItem(o.name);if(!s)return null;if(e+=10,o.value!==null&&(s[q]===null||o.regExp&&!o.regExp.test(s[q])||!o.regExp&&o.value!==s[q]))return null}return{priorityWeight:e}}matchClass(t){if(!this.classNames)return null;let e=0;for(let o of this.classNames){if(!t.classList.contains(o))return null;e+=10}return{priorityWeight:e}}matchChildOfElement(t,e){for(let o of e[dt]){let s=t.match(o);if(s)return s;let n=this.matchChildOfElement(t,o);if(n)return n}return null}getSelectorString(){return`${this.tagName?this.tagName.toLowerCase():""}${this.id?`#${this.id}`:""}${this.classNames?`.${this.classNames.join(".")}`:""}${this.attributes?this.attributes.map((t)=>`[${t.name}${t.value?`${t.operator||""}="${t.value}"`:""}]`).join(""):""}${this.pseudos?this.pseudos.map((t)=>`:${t.name}${t.arguments?`(${t.arguments})`:""}`).join(""):""}`}}var Xf=/(\s*[\s,+>~]\s*)|([\[\]\(\)"'])/gm,zf=/(\*)|([a-zA-Z0-9\u00A0-\uFFFF-]+)|#(([a-zA-Z0-9\u00A0-\uFFFF_-]|\\.)+)|\.(([a-zA-Z0-9\u00A0-\uFFFF_-]|\\.)+)|\[(([a-zA-Z0-9-_]|\\.)+)\]|\[(([a-zA-Z0-9-_]|\\.)+)\s*([~|^$*]{0,1})\s*=\s*("([^"]*)"|'([^']*)')\s*(s|i){0,1}\]|\[(([a-zA-Z0-9-_]|\\.)+)\s*([~|^$*]{0,1})\s*=\s*(([a-zA-Z0-9\u00A0-\uFFFF_\u00A4\u00A3-]|\\.)+)\]|:([a-zA-Z-]+)\s*\(.+\)|:([a-zA-Z-]+)|::([a-zA-Z-]+)/gm,Jf=/:([a-zA-Z-]+)|([()])/gm,hp=/\\/g,Zf=/\\([0-9a-fA-F]{1,6})\s?|\\(.)/g,tP=/[.*+?^${}()|[\]\\]/g,Kg={odd:(t)=>(t+1)%2===0,even:(t)=>(t+1)%2!==0,alwaysFalse:()=>!1},eP=/ /g;class ys{window;scope;ignoreErrors;constructor(t){this.window=t.window,this.scope=t.scope,this.ignoreErrors=t.ignoreErrors??!1}getSelectorItem(t){return this.getSelectorGroups(t)[0][0]}getSelectorGroups(t){t=t.trim();let e=[],o=[e],s=new RegExp(Xf),n={parentheses:0,brackets:0,doubleApostrophe:0,singleApostrophe:0},l=this.scope.nodeType===T.documentNode?"Document":"Element",a=new this.window.SyntaxError(`Failed to execute 'querySelectorAll' on '${l}': '${t}' is not a valid selector.`),y=null,u=0,c=null,d=ce.none;while(y=s.exec(t))if(y[1]){if(n.parentheses===0&&n.brackets===0&&n.singleApostrophe===0&&n.doubleApostrophe===0){let g=t.substring(u,y.index).trim();switch(y[1].trim()){case",":if(c=this.getSelectorGroupItem(g,d),!c){if(this.ignoreErrors)return[];throw a}e.push(c),e=[],o.push(e),d=ce.none;break;case">":if(c=this.getSelectorGroupItem(g,d),!c){if(this.ignoreErrors)return[];throw a}e.push(c),d=ce.child;break;case"+":if(c=this.getSelectorGroupItem(g,d),!c){if(this.ignoreErrors)return[];throw a}e.push(c),d=ce.adjacentSibling;break;case"~":if(c=this.getSelectorGroupItem(g,d),!c){if(this.ignoreErrors)return[];throw a}e.push(c),d=ce.subsequentSibling;break;case"":if(c=this.getSelectorGroupItem(g,d),!c){if(this.ignoreErrors)return[];throw a}e.push(c),d=ce.descendant;break}u=s.lastIndex}}else switch(y[2]){case"(":if(n.singleApostrophe===0&&n.doubleApostrophe===0)n.parentheses++;break;case")":if(n.singleApostrophe===0&&n.doubleApostrophe===0)n.parentheses--;break;case"[":if(n.singleApostrophe===0&&n.doubleApostrophe===0)n.brackets++;break;case"]":if(n.singleApostrophe===0&&n.doubleApostrophe===0)n.brackets--;break;case'"':if(n.singleApostrophe===0)n.doubleApostrophe=n.doubleApostrophe===1?0:1;break;case"'":if(n.doubleApostrophe===0)n.singleApostrophe=n.singleApostrophe===1?0:1;break}if(c=this.getSelectorGroupItem(t.substring(u),d),!c||n.parentheses!==0||n.brackets!==0||n.singleApostrophe!==0||n.doubleApostrophe!==0){if(this.ignoreErrors)return[];throw a}if(d===ce.none&&e.length>0)o.push([c]);else e.push(c);return o}getSelectorGroupItem(t,e){t=t.trim();let o=this.ignoreErrors,s=this.scope;if(!t)return null;if(t==="*")return new up({scope:s,tagName:"*",combinator:e,ignoreErrors:o});let n=new RegExp(zf),l=new up({scope:s,combinator:e,ignoreErrors:o}),a,y=0;while(a=n.exec(t)){if(t.substring(y,a.index).trim()!=="")return null;if(a[1])l.tagName="*";else if(a[2])l.tagName=a[2].toUpperCase();else if(a[3])l.id=a[3].replace(hp,"");else if(a[5])l.classNames=l.classNames||[],l.classNames.push(a[5].replace(hp,""));else if(a[7])l.attributes=l.attributes||[],l.attributes.push({name:a[7].replace(hp,""),operator:null,value:null,modifier:null,regExp:null});else if(a[9]&&(a[13]!==void 0||a[14]!==void 0)){let u=a[13]??a[14],c=ys.cssUnescape(u);l.attributes=l.attributes||[],l.attributes.push({name:a[9].replace(hp,""),operator:a[11]||null,value:c,modifier:a[15]||null,regExp:this.getAttributeRegExp({operator:a[11],value:c,modifier:a[15]})})}else if(a[16]&&a[19]!==void 0){let u=ys.cssUnescape(a[19]);l.attributes=l.attributes||[],l.attributes.push({name:a[16].replace(hp,""),operator:a[18]||null,value:u,modifier:null,regExp:this.getAttributeRegExp({operator:a[18],value:u})})}else if(a[21]){let u=new RegExp(Jf),c=null,d=null,g=0,f=-1;while(c=u.exec(a[0]))if(c[1]){if(g===0)d=c[1]}else if(c[2]){if(c[2]==="("){if(g===0)f=u.lastIndex;g++}else if(c[2]===")"){if(g--,g<0)return null;if(g===0){if(f===-1||!d)return null;l.pseudos=l.pseudos||[],l.pseudos.push(this.getPseudo(d,a[0].substring(f,c.index))),d=null,f=-1}}}}else if(a[22])l.pseudos=l.pseudos||[],l.pseudos.push(this.getPseudo(a[22],null));else if(a[23])l.isPseudoElement=!0;y=n.lastIndex}if(y<t.length)return null;return l}getAttributeRegExp(t){let e=t.modifier==="i"?"i":"";if(!t.operator||!t.value)return null;let o=t.value.replace(tP,"\\$&");switch(t.operator){case"~":return new RegExp(`[- ]${o}|${o}[- ]|^${o}$`,e);case"|":return new RegExp(`^${o}[- ]|^${o}$`,e);case"^":return new RegExp(`^${o}`,e);case"$":return new RegExp(`${o}$`,e);case"*":return new RegExp(`${o}`,e);default:return null}}getPseudo(t,e){let o=t.toLowerCase();if(e)e=e.trim();if(!e)return{name:o,arguments:null,selectorItems:null,nthFunction:null};switch(o){case"nth-last-child":case"nth-child":let s=e.indexOf(" of "),n=s!==-1?e.substring(0,s):e,l=s!==-1?this.getSelectorItem(e.substring(s+4).trim()):null;return{name:o,arguments:e,selectorItems:l?[l]:null,nthFunction:this.getPseudoNthFunction(n)};case"nth-of-type":case"nth-last-of-type":return{name:o,arguments:e,selectorItems:null,nthFunction:this.getPseudoNthFunction(e)};case"not":let a=[];for(let c of this.getSelectorGroups(e))if(c[0])a.push(c[0]);return{name:o,arguments:e,selectorItems:a,nthFunction:null};case"is":case"where":let y=[];for(let c of this.getSelectorGroups(e))if(c[0])y.push(c[0]);return{name:o,arguments:e,selectorItems:y,nthFunction:null};case"has":let u=[];if(!e.includes(":has(")){let c=e;if(e[0]==="+")c=e.replace("+","");else if(e[0]===">")c=e.replace(">","");for(let d of this.getSelectorGroups(c))if(d[0])u.push(d[0])}return{name:o,arguments:e||"",selectorItems:u,nthFunction:null};case"scope":case"root":default:return{name:o,arguments:e,selectorItems:null,nthFunction:null}}}getPseudoNthFunction(t){if(!t)return null;if(t==="odd")return Kg.odd;else if(t==="even")return Kg.even;let e=t.replace(eP,"").split("n"),o=parseInt(e[0],10)||0;if(e[0]=="-")o=-1;if(e.length===1)return(n)=>n==o;let s=parseInt(e[1],10)||0;if(e[0]=="+")s=1;if(o>=1||o<=-1){if(o>=1){if(Math.abs(o)===1)return(n)=>n>s-1;return(n)=>n>s-1&&(n+-1*s)%o===0}if(Math.abs(o)===1)return(n)=>n<s+1;return(n)=>n<s+1&&(n+-1*s)%o===0}if(e[0])return(n)=>n===s;return(n)=>n>s-1}static cssUnescape(t){return t.replace(Zf,(e,o,s)=>{if(o)return String.fromCodePoint(parseInt(o,16));return s})}}var Bb=/^[.#\[]?\d|[.#]$/;class mt{static querySelectorAll(t,e){let o=t[m];if(e==="")throw new o.DOMException(`Failed to execute 'querySelectorAll' on '${t.constructor.name}': The provided selector is empty.`);if(typeof e==="function")throw new o.DOMException(`Failed to execute 'querySelectorAll' on '${t.constructor.name}': '${e}' is not a valid selector.`);if(typeof e==="symbol")throw new o.TypeError(`Failed to execute 'querySelectorAll' on '${t.constructor.name}': Cannot convert a Symbol value to a string`);if(e=String(e),Bb.test(e))throw new o.DOMException(`Failed to execute 'querySelectorAll' on '${t.constructor.name}': '${e}' is not a valid selector.`);let s=t[U].querySelectorAll,n=s.get(e);if(n){if(n.result!==null){let E=n.result.deref();if(E)return E}s.delete(e)}let l=t[D]===T.documentNode?t.documentElement:t,a=new ys({window:o,scope:l}).getSelectorGroups(e),y=[],u=new Wo(h,y),c=new Map,d=[],g={result:new WeakRef(u)};if(t[U].querySelectorAll.set(e,g),t[tt])(t[x]||t)[He].push(g);for(let E of a){let R=t[D]===T.elementNode?this.findAll(t,[t],E,g):this.findAll(null,t[dt],E,g);for(let H of R)if(!c.has(H.documentPosition))c.set(H.documentPosition,H.element),d.push(H.documentPosition)}let f=d.sort();for(let E=0,R=f.length;E<R;E++)y.push(c.get(f[E]));return u}static querySelector(t,e){let o=t[m];if(e==="")throw new o.DOMException(`Failed to execute 'querySelector' on '${t.constructor.name}': The provided selector is empty.`);if(typeof e==="function")throw new o.DOMException(`Failed to execute 'querySelector' on '${t.constructor.name}': '${e}' is not a valid selector.`);if(typeof e==="symbol")throw new o.TypeError(`Failed to execute 'querySelector' on '${t.constructor.name}': Cannot convert a Symbol value to a string`);if(e=String(e),Bb.test(e))throw new o.DOMException(`Failed to execute 'querySelector' on '${t.constructor.name}': '${e}' is not a valid selector.`);let s=t[U].querySelector.get(e);if(s){if(s.result!==null){if(!s.result.element)return null;let c=s.result.element.deref();if(c)return c}t[U].querySelector.delete(e)}let n={result:{element:null}};if(t[U].querySelector.set(e,n),t[tt])(t[x]||t)[He].push(n);let l=null,a=new Map,y=t[D]===T.documentNode?t.documentElement:t;for(let c of new ys({window:o,scope:y}).getSelectorGroups(e)){let d=t[D]===T.elementNode?this.findFirst(t,[t],c,n):this.findFirst(null,t[dt],c,n);if(d&&!a.has(d.documentPosition)){if(a.set(d.documentPosition,!0),!l||d.documentPosition<l.documentPosition)l=d}}let u=l?.element||null;return n.result={element:u?new WeakRef(u):null},u}static matches(t,e,o){let s=o?.ignoreErrors,n=t[m];if(e==="*")return{priorityWeight:1};if(e===""){if(s)return null;throw new n.DOMException(`Failed to execute 'matches' on '${t.constructor.name}': The provided selector is empty.`)}if(typeof e==="function"){if(s)return null;throw new n.DOMException(`Failed to execute 'matches' on '${t.constructor.name}': '${e}' is not a valid selector.`)}if(typeof e==="symbol"){if(s)return null;throw new n.TypeError("Cannot convert a Symbol value to a string")}if(e=String(e),Bb.test(e)){if(s)return null;throw new n.DOMException(`Failed to execute 'matches' on '${t.constructor.name}': '${e}' is not a valid selector.`)}let l=t[U].matches.get(e);if(l){if(l.result!==null)return l.result.match;t[U].matches.delete(e)}let a={result:{match:null}};if(t[U].matches.set(e,a),t[tt])(t[x]||t)[He].push(a);let y=o?.scope||t,u=y[D]===T.documentNode?y.documentElement:y;for(let c of new ys({ignoreErrors:o?.ignoreErrors,window:n,scope:u}).getSelectorGroups(e)){let d=this.matchSelector(t,c.reverse(),a);if(d)return a.result.match=d,d}return null}static matchSelector(t,e,o,s=null,n=0){let l=e[0];if(!l)return null;let a=l.match(t);if(a){if(e.length===1)return{priorityWeight:n+a.priorityWeight};switch(l.combinator){case ce.adjacentSibling:let y=t.previousElementSibling;if(y){y[He].push(o);let d=this.matchSelector(y,e.slice(1),o,l,n+a.priorityWeight);if(d)return d}break;case ce.none:case ce.child:case ce.descendant:let u=t.parentElement;if(u){u[He].push(o);let d=this.matchSelector(u,e.slice(1),o,l,n+a.priorityWeight);if(d)return d}break;case ce.subsequentSibling:let c=t.parentElement;if(c){let d=c[dt],g=d.indexOf(t);c[He].push(o);for(let f=g-1;f>=0;f--){let E=d[f];E[He].push(o);let R=this.matchSelector(E,e.slice(1),o,l,n+a.priorityWeight);if(R)return R}}break}}if(s?.combinator===ce.none||s?.combinator===ce.descendant){let y=t.parentElement;if(y)return this.matchSelector(y,e,o,s,n)}return null}static findAll(t,e,o,s,n){let l=o[0],a=o[1],y=[];if(!l)return[];for(let u=0,c=e.length;u<c;u++){let d=e[u],g=d[dt],f=(n?n+">":"")+String.fromCharCode(u);if(d[He].push(s),l.match(d))if(!a){if(t!==d)y.push({documentPosition:f,element:d})}else switch(a.combinator){case ce.adjacentSibling:let E=d.nextElementSibling;if(E)y=y.concat(this.findAll(t,[E],o.slice(1),s,f));break;case ce.none:case ce.descendant:case ce.child:y=y.concat(this.findAll(t,g,o.slice(1),s,f));break;case ce.subsequentSibling:let R=e.indexOf(d);for(let H=R+1;H<e.length;H++){let yt=e[H];y=y.concat(this.findAll(t,[yt],o.slice(1),s,f))}break}if((l.combinator===ce.none||l.combinator===ce.descendant)&&g.length)y=y.concat(this.findAll(t,g,o,s,f))}return y}static findFirst(t,e,o,s,n){let l=o[0],a=o[1];if(!l)return null;for(let y=0,u=e.length;y<u;y++){let c=e[y],d=c[dt],g=(n?n+">":"")+String.fromCharCode(y);if(c[He].push(s),l.match(c))if(!a){if(t!==c)return{documentPosition:g,element:c}}else switch(a.combinator){case ce.adjacentSibling:let f=c.nextElementSibling;if(f){let H=this.findFirst(t,[f],o.slice(1),s,g);if(H)return H}break;case ce.none:case ce.descendant:case ce.child:let E=this.findFirst(t,d,o.slice(1),s,g);if(E)return E;break;case ce.subsequentSibling:let R=e.indexOf(c);for(let H=R+1;H<e.length;H++){let yt=e[H],bt=this.findFirst(t,[yt],o.slice(1),s,g);if(bt)return bt}break}if((l.combinator===ce.none||l.combinator===ce.descendant)&&d.length){let f=this.findFirst(t,d,o,s,g);if(f)return f}}return null}}class Wl{static toPixels(t){let e=parseFloat(t.value),o=t.value.replace(e.toString(),"");if(isNaN(e))return null;switch(o){case"px":return e;case"rem":return this.round(e*parseFloat(t.rootFontSize));case"em":return this.round(e*parseFloat(t.parentFontSize));case"vw":return this.round(e*t.window.innerWidth/100);case"vh":return this.round(e*t.window.innerHeight/100);case"%":return t.parentSize!==void 0&&t.parentSize!==null?this.round(e*parseFloat(t.parentSize)/100):null;case"vmin":return this.round(e*Math.min(t.window.innerWidth,t.window.innerHeight)/100);case"vmax":return e*Math.max(t.window.innerWidth,t.window.innerHeight)/100;case"cm":return this.round(e*37.7812);case"mm":return this.round(e*3.7781);case"in":return this.round(e*96);case"pt":return this.round(e*1.3281);case"pc":return this.round(e*16);case"Q":return this.round(e*0.945);default:return null}}static round(t){return Math.round(t*1e4)/1e4}}class it{static[Wm]=new Map;static[Kh]=0;#t;constructor(t){this.#t=t}getSettings(){return this.getBrowserFrame()?.page.context.browser.settings||null}getBrowser(){return this.getBrowserFrame()?.page.context.browser||null}getBrowserPage(){return this.getBrowserFrame()?.page||null}getBrowserContext(){return this.getBrowserFrame()?.page.context||null}getBrowserFrame(){if(!this.#t)return null;return this.constructor[Wm].get(this.#t[xn])||null}getAsyncTaskManager(){return this.getBrowserFrame()?.[Pt]||null}static setWindowBrowserFrameRelation(t,e){let o=this[Wm];if(t[xn]===-1)t[xn]=this[Kh],this[Kh]++;o.set(t[xn],e)}static removeWindowBrowserFrameRelation(t){this[Wm].delete(t[xn])}}class vt{[he]={capturing:new Map,bubbling:new Map};[ks]={capturing:new Map,bubbling:new Map};get[Symbol.toStringTag](){return"EventTarget"}addEventListener(t,e,o){o=typeof o==="boolean"?{capture:o}:o||{};let s=o.capture?"capturing":"bubbling",n=this[he][s].get(t),l;if(n)l=this[ks][s].get(t);else n=[],l=[],this[he][s].set(t,n),this[ks][s].set(t,l);if(n.includes(e))return;if(n.push(e),l.push(o),o.signal&&!o.signal.aborted)o.signal.addEventListener("abort",()=>{this.removeEventListener(t,e)})}removeEventListener(t,e){let o=this[he].bubbling.get(t);if(o){let n=o.indexOf(e);if(n!==-1){o.splice(n,1),this[ks].bubbling.get(t).splice(n,1);return}}let s=this[he].capturing.get(t);if(s){let n=s.indexOf(e);if(n!==-1)s.splice(n,1),this[ks].capturing.get(t).splice(n,1)}}dispatchEvent(t){if(!(t instanceof C))throw new this[m].TypeError("Failed to execute 'dispatchEvent' on 'EventTarget': parameter 1 is not of type 'Event'.");if(!t[Hn]&&(t[Qt]!=="load"||!t[wr]))return t[Hn]=!0,t[wr]=this[Vt]||this,this.#t(t),t[Hn]=!1,!(t[Hi]&&t[lr]);return this.#e(t),!(t[Hi]&&t[lr])}attachEvent(t,e){this.addEventListener(t.replace("on",""),e)}detachEvent(t,e){this.removeEventListener(t.replace("on",""),e)}[At](){this[he].capturing.clear(),this[he].bubbling.clear(),this[ks].capturing.clear(),this[ks].bubbling.clear()}#t(t){let e=t.composedPath();t[xr]=ae.capturing;for(let o=e.length-1;o>=0;o--)if(t[Bo]=e[o],e[o].dispatchEvent(t),t[Is]||t[Cs]){t[xr]=ae.none,t[Bo]=null;return}if(t[xr]=ae.atTarget,t[Bo]=this[Vt]||this,t[wr].dispatchEvent(t),t[xr]=ae.bubbling,t[Gs]&&!t[Is]&&!t[Cs]){for(let o=1,s=e.length;o<s;o++)if(t[Bo]=e[o],e[o].dispatchEvent(t),t[Is]||t[Cs]){t[xr]=ae.none,t[Bo]=null;return}}t[xr]=ae.none,t[Bo]=null}#e(t){let e=this[m],o=e?new it(e).getSettings():null,s=t.eventPhase===ae.capturing?"capturing":"bubbling",n=this[he][s].get(t.type)?.slice();if(n&&n.length){let l=this[ks][s].get(t.type).slice();for(let a=0,y=n.length;a<y;a++){let u=n[a],c=l[a];if(c?.passive)t[wa]=!0;if(e&&(this!==e||t.type!=="error")&&!o?.disableErrorCapturing&&o?.errorCapture===me.tryAndCatch)if(u.handleEvent){let d;try{d=u.handleEvent.call(u,t)}catch(g){e[le](g)}if(d instanceof Promise)d.catch((g)=>e[le](g))}else{let d;try{d=u.call(this,t)}catch(g){e[le](g)}if(d instanceof Promise)d.catch((g)=>e[le](g))}else if(u.handleEvent)u.handleEvent.call(u,t);else u.call(this,t);if(t[wa]=!1,c?.once)n.splice(a,1),l.splice(a,1),this.removeEventListener(t.type,u),a--,y--;if(t[Cs])return}}if(t.eventPhase!==ae.capturing){let l="on"+t.type.toLowerCase(),a=this[p],y=!a&&Object.hasOwn(this,l)&&this.constructor.name!=="EventTarget";if(a||y){let u=a?.get(l)??this[l];if(typeof u==="function")if(e&&(this!==e||t.type!=="error")&&!o?.disableErrorCapturing&&o?.errorCapture===me.tryAndCatch){let c;try{c=u(t)}catch(d){e[le](d)}if(c instanceof Promise)c.catch((d)=>e[le](d))}else u(t)}}}}class _l extends C{matches;media;constructor(t,e=null){super(t,e);this.matches=e?.matches??!1,this.media=e?.media??""}}var Ob;(function(t){t.all="all",t.print="print",t.screen="screen"})(Ob||(Ob={}));var ic=Ob;class Ha{mediaTypes;not;rules;ranges;rootFontSize=null;window;constructor(t){this.window=t.window,this.rootFontSize=t.rootFontSize||null,this.mediaTypes=t.mediaTypes||[],this.not=t.not||!1,this.rules=t.rules||[],this.ranges=t.ranges||[]}toString(){return`${this.not?"not ":""}${this.mediaTypes.join(", ")}${(this.not||this.mediaTypes.length>0)&&!!this.ranges.length?" and ":""}${this.ranges.map((t)=>`(${t.before?`${t.before.value} ${t.before.operator} `:""}${t.type}${t.after?` ${t.after.operator} ${t.after.value}`:""})`).join(" and ")}${(this.not||this.mediaTypes.length>0)&&!!this.rules.length?" and ":""}${this.rules.map((t)=>t.value?`(${t.name}: ${t.value})`:`(${t.name})`).join(" and ")}`}matches(){return this.not?!this.matchesAll():this.matchesAll()}matchesAll(){if(this.mediaTypes.length){let t=!1;for(let e of this.mediaTypes)if(this.matchesMediaType(e)){t=!0;break}if(!t)return!1}for(let t of this.rules)if(!this.matchesRule(t))return!1;for(let t of this.ranges)if(!this.matchesRange(t))return!1;return!0}matchesMediaType(t){if(t===ic.all)return!0;return t===new it(this.window).getSettings()?.device.mediaType}matchesRange(t){let e=t.type==="width"?this.window.innerWidth:this.window.innerHeight;if(t.before){let o=this.toPixels(t.before.value);if(o===null)return!1;switch(t.before.operator){case"<":if(o>=e)return!1;break;case"<=":if(o>e)return!1;break;case">":if(o<=e)return!1;break;case">=":if(o<e)return!1;break}}if(t.after){let o=this.toPixels(t.after.value);if(o===null)return!1;switch(t.after.operator){case"<":if(e>=o)return!1;break;case"<=":if(e>o)return!1;break;case">":if(e<=o)return!1;break;case">=":if(e<o)return!1;break}}return!0}matchesRule(t){let e=new it(this.window).getSettings();if(!e)return!1;if(!t.value){switch(t.name){case"min-width":case"max-width":case"min-height":case"max-height":case"width":case"height":case"orientation":case"prefers-color-scheme":case"hover":case"any-hover":case"any-pointer":case"pointer":case"display-mode":case"min-aspect-ratio":case"max-aspect-ratio":case"aspect-ratio":return!0;case"prefers-reduced-motion":return e.device.prefersReducedMotion==="reduce";case"forced-colors":return e.device.forcedColors==="active"}return!1}switch(t.name){case"min-width":let o=this.toPixels(t.value);return o!==null&&this.window.innerWidth>=o;case"max-width":let s=this.toPixels(t.value);return s!==null&&this.window.innerWidth<=s;case"min-height":let n=this.toPixels(t.value);return n!==null&&this.window.innerHeight>=n;case"max-height":let l=this.toPixels(t.value);return l!==null&&this.window.innerHeight<=l;case"width":let a=this.toPixels(t.value);return a!==null&&this.window.innerWidth===a;case"height":let y=this.toPixels(t.value);return y!==null&&this.window.innerHeight===y;case"orientation":return t.value==="landscape"?this.window.innerWidth>this.window.innerHeight:this.window.innerWidth<this.window.innerHeight;case"prefers-color-scheme":return t.value===e.device.prefersColorScheme;case"prefers-reduced-motion":return t.value===e.device.prefersReducedMotion;case"forced-colors":return(t.value==="none"||t.value==="active")&&t.value===e.device.forcedColors;case"any-hover":case"hover":if(t.value==="none")return this.window.navigator.maxTouchPoints>0;if(t.value==="hover")return this.window.navigator.maxTouchPoints===0;return!1;case"any-pointer":case"pointer":if(t.value==="none")return!1;if(t.value==="coarse")return this.window.navigator.maxTouchPoints>0;if(t.value==="fine")return this.window.navigator.maxTouchPoints===0;return!1;case"display-mode":return t.value==="browser";case"min-aspect-ratio":case"max-aspect-ratio":case"aspect-ratio":let u=t.value.split("/"),c=parseInt(u[0],10),d=parseInt(u[1],10);if(isNaN(c)||isNaN(d))return!1;switch(t.name){case"min-aspect-ratio":return c/d<=this.window.innerWidth/this.window.innerHeight;case"max-aspect-ratio":return c/d>=this.window.innerWidth/this.window.innerHeight;case"aspect-ratio":return c/d===this.window.innerWidth/this.window.innerHeight}}return!1}toPixels(t){if(!new it(this.window).getSettings()?.disableComputedStyleRendering&&t.endsWith("em"))return this.rootFontSize=this.rootFontSize||parseFloat(this.window.getComputedStyle(this.window.document.documentElement).fontSize),Wl.toPixels({window:this.window,value:t,rootFontSize:this.rootFontSize,parentFontSize:this.rootFontSize});return Wl.toPixels({window:this.window,value:t,rootFontSize:16,parentFontSize:16})}}var rP=/(not|only|all|screen|print)|\(([^\)]+)(\)){0,1}|(,)| +(or|and) +/g,oP=/[<>]/,iP=/(?:([0-9]+[a-z]+) *(<|<=|>|>=)){0,1} *(width|height) *(?:(<|<=|>|>=) *([0-9]+[a-z]+)){0,1}/;class cp{static parse(t){let e=new Ha({window:t.window,rootFontSize:t.rootFontSize}),o=[e],s=new RegExp(rP),n=null;while(n=s.exec(t.mediaQuery.toLowerCase()))if(n[4]===","||n[5]==="or")e=new Ha({window:t.window,rootFontSize:t.rootFontSize}),o.push(e);else if(n[1]==="all"||n[1]==="screen"||n[1]==="print")e.mediaTypes.push(n[1]);else if(n[1]==="not")e.not=!0;else if(n[2]){let l=oP.test(n[2])?n[2].match(iP):null;if(l&&(l[1]||l[5]))e.ranges.push({before:l[1]?{value:l[1],operator:l[2]}:null,type:l[3],after:l[5]?{value:l[5],operator:l[4]}:null});else{let[a,y]=n[2].split(":"),u=y?y.trim():null;if(!u&&!n[3])return[new Ha({window:t.window,rootFontSize:t.rootFontSize,not:!0,mediaTypes:[ic.all]})];e.rules.push({name:a.trim(),value:u})}}return o}}class Wa extends vt{onchange=null;#t;#e=null;#r;#o=null;constructor(t){super();this.#t=t.window,this.#r=t.media,this.#o=t.rootFontSize||null}get media(){return this.#e=this.#e||cp.parse({window:this.#t,mediaQuery:this.#r,rootFontSize:this.#o}),this.#e.map((t)=>t.toString()).join(", ")}get matches(){this.#e=this.#e||cp.parse({window:this.#t,mediaQuery:this.#r,rootFontSize:this.#o});for(let t of this.#e)if(!t.matches())return!1;return!0}addListener(t){this.addEventListener("change",t)}removeListener(t){this.removeEventListener("change",t)}addEventListener(t,e){if(super.addEventListener(t,e),t==="change"){let o=!1,s=()=>{let n=this.matches;if(n!==o)o=n,this.dispatchEvent(new _l("change",{matches:n,media:this.media}))};e[vh]=s,this.#t.addEventListener("resize",s)}}removeEventListener(t,e){if(super.removeEventListener(t,e),t==="change"&&e[vh])this.#t.removeEventListener("resize",e[vh])}}class xi extends Ho{[We]=[];get cssRules(){return this[We]}insertRule(t,e){if(arguments.length===0)throw new this[m].TypeError(`Failed to execute 'insertRule' on '${this.constructor.name}': 1 argument required, but only 0 present.`);let o=this[Gl].parseFromString(t);if(o.length===0||o.length>1)throw new this[m].DOMException(`Failed to execute 'insertRule' on '${this.constructor.name}': Failed to parse the rule '${t}'.`,w.syntaxError);if(e!==void 0){if(e=Number(e),isNaN(e)||e>this.cssRules.length)throw new this[m].DOMException(`Failed to execute 'insertRule' on '${this.constructor.name}': The index provided (${e}) is larger than the maximum index (${this.cssRules.length}).`,w.indexSizeError);return this.cssRules.splice(e,0,o[0]),e}let s=this.cssRules.length;return this.cssRules.unshift(o[0]),s}deleteRule(t){if(arguments.length===0)throw new this[m].TypeError(`Failed to execute 'deleteRule' on '${this.constructor.name}': 1 argument required, but only 0 present.`);if(t=Number(t),isNaN(t)||t<0||t>=this.cssRules.length)throw new this[m].DOMException(`Failed to execute 'deleteRule' on '${this.constructor.name}': the index (${t}) is greater than the length of the rule list.`,w.indexSizeError);this.cssRules.splice(t,1)}}class zs extends xi{[O]="";[Y]="";[Fr]="";get type(){return ut.containerRule}get cssText(){let t="";for(let e of this[We])t+=`
18
18
  `+e.cssText;return t+=`
19
- `,`@${this[Fr]}scope${this[O]?` (${this[O]})`:""}${this[Y]?` to (${this[Y]})`:""} {${t}}`}get start(){return this[O]}get end(){return this[Y]}}var sP=/[0-9.]+(px|rem|em|vw|vh|%|vmin|vmax|cm|mm|in|pt|pc|Q)/g,Qg=/:host\s*\(([^)]+)\)|:host-context\s*\(([^)]+)\)/,nP=/var\( *(--[^), ]+)\)/,lP=/var\( *(--[^), ]+), *([^), ]+)\)/;class sc{element;constructor(t){this.element=t}getComputedStyle(){let t=[],e=[],o={element:this.element,cssTexts:[]},s=[],n=[];if(!this.element[tt])return new ps;let l=this.element[U].computedStyle;if(l?.result){let f=l.result.deref();if(f)return f}while(o.element){if(o.element[D]===T.elementNode){if(o.element.getRootNode()[D]===T.documentNode)t.unshift(o);else s.unshift(o);if(o.element.shadowRoot)n.push(o);e.unshift(o)}if(o.element===this.element[x]){let f=this.getStyleSheets(this.element[x]);for(let E of f)this.parseCSSRules({elements:t,cssRules:E.cssRules});for(let E of n){let R=this.getStyleSheets(E.element.shadowRoot);for(let H of R)this.parseCSSRules({elements:[],cssRules:H.cssRules,hostElement:E})}o={element:null,cssTexts:[]}}else if(o.element[D]===T.documentFragmentNode&&o.element.host){let f=o.element,E=this.getStyleSheets(f);o={element:f.host,cssTexts:[]};for(let R of E)this.parseCSSRules({elements:s,cssRules:R.cssRules,hostElement:o});for(let R of n){let H=this.getStyleSheets(R.element.shadowRoot);for(let pt of H)this.parseCSSRules({elements:[],cssRules:pt.cssRules,hostElement:R})}n=[],s=[]}else o={element:o.element[W],cssTexts:[]}}let a=e[e.length-1],y=new ps,u={},c=16,d=16;for(let f of e){f.cssTexts.sort((Rt,lt)=>Rt.priorityWeight-lt.priorityWeight);let E=Wg[f.element[z]],R="";if(E){if(typeof E==="string")R+=E;else for(let Rt of Object.keys(E))if(Rt==="default"||!!f.element[Rt])R+=E[Rt]}for(let Rt of f.cssTexts)R+=Rt.cssText;let H=f.element.getAttribute("style");if(H)R+=H;let pt=Ua.parse(R),gt=pt.rules;Object.assign(u,pt.properties);for(let{name:Rt,value:lt,important:dt}of gt)if(_g[Rt]||f===a){let ee=this.parseCSSVariablesInValue(lt.trim(),u);if(ee&&(!y.get(Rt)?.important||dt)){if(y.set(Rt,ee,dt),Rt==="font"||Rt==="font-size"){let Ct=y.properties["font-size"];if(Ct!==null){let or=this.parseMeasurementsInValue({value:Ct.value,rootFontSize:c,parentFontSize:d,parentSize:d});if(f.element[z]==="HTML")c=or;else if(f!==a)d=or}}}}}for(let f of Yg){let E=y.properties[f];if(E)E.value=this.parseMeasurementsInValue({value:E.value,rootFontSize:c,parentFontSize:d,parentSize:f==="font-size"?d:null})}let g={result:new WeakRef(y)};return this.element[U].computedStyle=g,this.element[x][Xo].push(g),y}getStyleSheets(t){if(!t)return[];let e=t.querySelectorAll('style,link[rel="stylesheet"]'),o=[];for(let s of e){let n=s.sheet;if(n)o.push(n)}if(t.adoptedStyleSheets)o=o.concat(t.adoptedStyleSheets);return o}parseCSSRules(t){if(!t.hostElement&&!t.elements.length)return;let e=this.element[m];for(let o of t.cssRules)if(o.type===ht.styleRule){let s=o.selectorText;if(s)if(s[0]===":"&&s.startsWith(":host")){if(t.hostElement){let n=!0;if(s!==":host"){let l=s.match(Qg);if(l)if(yt.matches(t.hostElement.element,l[1]||l[2],{ignoreErrors:!0,scope:t.scopeElement?.element})){let y=s?.replace(Qg,"").trim();if(y&&y[0]!==":"){n=!1;for(let u of t.elements){let c=yt.matches(u.element,y,{ignoreErrors:!0,scope:t.scopeElement?.element});if(c)u.cssTexts.push({cssText:o[fr],priorityWeight:10+c.priorityWeight})}}}else n=!1}if(n)t.hostElement.cssTexts.push({cssText:o[fr],priorityWeight:10})}}else for(let n of t.elements){let l=yt.matches(n.element,s,{ignoreErrors:!0,scope:t.scopeElement?.element});if(l)n.cssTexts.push({cssText:o[fr],priorityWeight:l.priorityWeight})}}else if(o.type===ht.mediaRule&&new Wa({window:e,media:o.conditionText,rootFontSize:this.element[z]==="HTML"?16:null}).matches)this.parseCSSRules({elements:t.elements,cssRules:o.cssRules,hostElement:t.hostElement,scopeElement:t.scopeElement});else if(o.type===ht.supportsRule){if(e.CSS.supports(o.conditionText))this.parseCSSRules({elements:t.elements,cssRules:o.cssRules,hostElement:t.hostElement,scopeElement:t.scopeElement})}else if(o.type===ht.containerRule){if(o instanceof Zs){let s=[],n=null;for(let l of t.elements)if(n){if(o[Y]){if(yt.matches(l.element,o[Y],{ignoreErrors:!0,scope:n.element}))break}s.push(l)}else if(yt.matches(l.element,o[O]||":root",{ignoreErrors:!0}))n=l,s.push(l);if(s.length)this.parseCSSRules({elements:s,cssRules:o.cssRules,hostElement:t.hostElement,scopeElement:n})}}}parseCSSVariablesInValue(t,e){let o=t,s;while((s=o.match(nP))!=null)o=o.replace(s[0],e[s[1]]||"");while((s=o.match(lP))!==null)o=o.replace(s[0],e[s[1]]||s[2]);return o}parseMeasurementsInValue(t){if(new it(this.element[m]).getSettings()?.disableComputedStyleRendering)return t.value;let e=new RegExp(sP),o=t.value,s;while((s=e.exec(t.value))!==null)if(s[1]!=="px"){let n=Wl.toPixels({window:this.element[m],value:s[0],rootFontSize:t.rootFontSize,parentFontSize:t.parentFontSize,parentSize:t.parentSize});if(n!==null)o=o.replace(s[0],n+"px")}return o}}class Kr{parentRule=null;[m];#t;#e;#r={attributeValue:null,propertyManager:null};constructor(t,e,o){if(t!==h)throw TypeError("Illegal constructor");this[m]=e,this.#t=o?.element||null,this.#e=o?.element?!!o?.computed:!1}get 0(){return this.item(0)||void 0}get 1(){return this.item(1)||void 0}get 2(){return this.item(2)||void 0}get 3(){return this.item(3)||void 0}get 4(){return this.item(4)||void 0}get 5(){return this.item(5)||void 0}get 6(){return this.item(6)||void 0}get 7(){return this.item(7)||void 0}get 8(){return this.item(8)||void 0}get 9(){return this.item(9)||void 0}get 10(){return this.item(10)||void 0}get 11(){return this.item(11)||void 0}get 12(){return this.item(12)||void 0}get 13(){return this.item(13)||void 0}get 14(){return this.item(14)||void 0}get 15(){return this.item(15)||void 0}get 16(){return this.item(16)||void 0}get 17(){return this.item(17)||void 0}get 18(){return this.item(18)||void 0}get 19(){return this.item(19)||void 0}get 20(){return this.item(20)||void 0}get 21(){return this.item(21)||void 0}get 22(){return this.item(22)||void 0}get 23(){return this.item(23)||void 0}get 24(){return this.item(24)||void 0}get 25(){return this.item(25)||void 0}get 26(){return this.item(26)||void 0}get 27(){return this.item(27)||void 0}get 28(){return this.item(28)||void 0}get 29(){return this.item(29)||void 0}get 30(){return this.item(30)||void 0}get 31(){return this.item(31)||void 0}get 32(){return this.item(32)||void 0}get 33(){return this.item(33)||void 0}get 34(){return this.item(34)||void 0}get 35(){return this.item(35)||void 0}get 36(){return this.item(36)||void 0}get 37(){return this.item(37)||void 0}get 38(){return this.item(38)||void 0}get 39(){return this.item(39)||void 0}get 40(){return this.item(40)||void 0}get 41(){return this.item(41)||void 0}get 42(){return this.item(42)||void 0}get 43(){return this.item(43)||void 0}get 44(){return this.item(44)||void 0}get 45(){return this.item(45)||void 0}get 46(){return this.item(46)||void 0}get 47(){return this.item(47)||void 0}get 48(){return this.item(48)||void 0}get 49(){return this.item(49)||void 0}get 50(){return this.item(50)||void 0}get 51(){return this.item(51)||void 0}get 52(){return this.item(52)||void 0}get 53(){return this.item(53)||void 0}get 54(){return this.item(54)||void 0}get 55(){return this.item(55)||void 0}get 56(){return this.item(56)||void 0}get 57(){return this.item(57)||void 0}get 58(){return this.item(58)||void 0}get 59(){return this.item(59)||void 0}get 60(){return this.item(60)||void 0}get 61(){return this.item(61)||void 0}get 62(){return this.item(62)||void 0}get 63(){return this.item(63)||void 0}get 64(){return this.item(64)||void 0}get 65(){return this.item(65)||void 0}get 66(){return this.item(66)||void 0}get 67(){return this.item(67)||void 0}get 68(){return this.item(68)||void 0}get 69(){return this.item(69)||void 0}get 70(){return this.item(70)||void 0}get 71(){return this.item(71)||void 0}get 72(){return this.item(72)||void 0}get 73(){return this.item(73)||void 0}get 74(){return this.item(74)||void 0}get 75(){return this.item(75)||void 0}get 76(){return this.item(76)||void 0}get 77(){return this.item(77)||void 0}get 78(){return this.item(78)||void 0}get 79(){return this.item(79)||void 0}get 80(){return this.item(80)||void 0}get 81(){return this.item(81)||void 0}get 82(){return this.item(82)||void 0}get 83(){return this.item(83)||void 0}get 84(){return this.item(84)||void 0}get 85(){return this.item(85)||void 0}get 86(){return this.item(86)||void 0}get 87(){return this.item(87)||void 0}get 88(){return this.item(88)||void 0}get 89(){return this.item(89)||void 0}get 90(){return this.item(90)||void 0}get 91(){return this.item(91)||void 0}get 92(){return this.item(92)||void 0}get 93(){return this.item(93)||void 0}get 94(){return this.item(94)||void 0}get 95(){return this.item(95)||void 0}get 96(){return this.item(96)||void 0}get 97(){return this.item(97)||void 0}get 98(){return this.item(98)||void 0}get 99(){return this.item(99)||void 0}get 100(){return this.item(100)||void 0}get 101(){return this.item(101)||void 0}get 102(){return this.item(102)||void 0}get 103(){return this.item(103)||void 0}get 104(){return this.item(104)||void 0}get 105(){return this.item(105)||void 0}get 106(){return this.item(106)||void 0}get 107(){return this.item(107)||void 0}get 108(){return this.item(108)||void 0}get 109(){return this.item(109)||void 0}get 110(){return this.item(110)||void 0}get 111(){return this.item(111)||void 0}get 112(){return this.item(112)||void 0}get 113(){return this.item(113)||void 0}get 114(){return this.item(114)||void 0}get 115(){return this.item(115)||void 0}get 116(){return this.item(116)||void 0}get 117(){return this.item(117)||void 0}get 118(){return this.item(118)||void 0}get 119(){return this.item(119)||void 0}get 120(){return this.item(120)||void 0}get 121(){return this.item(121)||void 0}get 122(){return this.item(122)||void 0}get 123(){return this.item(123)||void 0}get 124(){return this.item(124)||void 0}get 125(){return this.item(125)||void 0}get 126(){return this.item(126)||void 0}get 127(){return this.item(127)||void 0}get 128(){return this.item(128)||void 0}get 129(){return this.item(129)||void 0}get 130(){return this.item(130)||void 0}get 131(){return this.item(131)||void 0}get 132(){return this.item(132)||void 0}get 133(){return this.item(133)||void 0}get 134(){return this.item(134)||void 0}get 135(){return this.item(135)||void 0}get 136(){return this.item(136)||void 0}get 137(){return this.item(137)||void 0}get 138(){return this.item(138)||void 0}get 139(){return this.item(139)||void 0}get 140(){return this.item(140)||void 0}get 141(){return this.item(141)||void 0}get 142(){return this.item(142)||void 0}get 143(){return this.item(143)||void 0}get 144(){return this.item(144)||void 0}get 145(){return this.item(145)||void 0}get 146(){return this.item(146)||void 0}get 147(){return this.item(147)||void 0}get 148(){return this.item(148)||void 0}get 149(){return this.item(149)||void 0}get 150(){return this.item(150)||void 0}get 151(){return this.item(151)||void 0}get 152(){return this.item(152)||void 0}get 153(){return this.item(153)||void 0}get 154(){return this.item(154)||void 0}get 155(){return this.item(155)||void 0}get 156(){return this.item(156)||void 0}get 157(){return this.item(157)||void 0}get 158(){return this.item(158)||void 0}get 159(){return this.item(159)||void 0}get 160(){return this.item(160)||void 0}get 161(){return this.item(161)||void 0}get 162(){return this.item(162)||void 0}get 163(){return this.item(163)||void 0}get 164(){return this.item(164)||void 0}get 165(){return this.item(165)||void 0}get 166(){return this.item(166)||void 0}get 167(){return this.item(167)||void 0}get 168(){return this.item(168)||void 0}get 169(){return this.item(169)||void 0}get 170(){return this.item(170)||void 0}get 171(){return this.item(171)||void 0}get 172(){return this.item(172)||void 0}get 173(){return this.item(173)||void 0}get 174(){return this.item(174)||void 0}get 175(){return this.item(175)||void 0}get 176(){return this.item(176)||void 0}get 177(){return this.item(177)||void 0}get 178(){return this.item(178)||void 0}get 179(){return this.item(179)||void 0}get 180(){return this.item(180)||void 0}get 181(){return this.item(181)||void 0}get 182(){return this.item(182)||void 0}get 183(){return this.item(183)||void 0}get 184(){return this.item(184)||void 0}get 185(){return this.item(185)||void 0}get 186(){return this.item(186)||void 0}get 187(){return this.item(187)||void 0}get 188(){return this.item(188)||void 0}get 189(){return this.item(189)||void 0}get 190(){return this.item(190)||void 0}get 191(){return this.item(191)||void 0}get 192(){return this.item(192)||void 0}get 193(){return this.item(193)||void 0}get 194(){return this.item(194)||void 0}get 195(){return this.item(195)||void 0}get 196(){return this.item(196)||void 0}get 197(){return this.item(197)||void 0}get 198(){return this.item(198)||void 0}get 199(){return this.item(199)||void 0}get 200(){return this.item(200)||void 0}get 201(){return this.item(201)||void 0}get 202(){return this.item(202)||void 0}get 203(){return this.item(203)||void 0}get 204(){return this.item(204)||void 0}get 205(){return this.item(205)||void 0}get 206(){return this.item(206)||void 0}get 207(){return this.item(207)||void 0}get 208(){return this.item(208)||void 0}get 209(){return this.item(209)||void 0}get 210(){return this.item(210)||void 0}get 211(){return this.item(211)||void 0}get 212(){return this.item(212)||void 0}get 213(){return this.item(213)||void 0}get 214(){return this.item(214)||void 0}get 215(){return this.item(215)||void 0}get 216(){return this.item(216)||void 0}get 217(){return this.item(217)||void 0}get 218(){return this.item(218)||void 0}get 219(){return this.item(219)||void 0}get 220(){return this.item(220)||void 0}get 221(){return this.item(221)||void 0}get 222(){return this.item(222)||void 0}get 223(){return this.item(223)||void 0}get 224(){return this.item(224)||void 0}get 225(){return this.item(225)||void 0}get 226(){return this.item(226)||void 0}get 227(){return this.item(227)||void 0}get 228(){return this.item(228)||void 0}get 229(){return this.item(229)||void 0}get 230(){return this.item(230)||void 0}get 231(){return this.item(231)||void 0}get 232(){return this.item(232)||void 0}get 233(){return this.item(233)||void 0}get 234(){return this.item(234)||void 0}get 235(){return this.item(235)||void 0}get 236(){return this.item(236)||void 0}get 237(){return this.item(237)||void 0}get 238(){return this.item(238)||void 0}get 239(){return this.item(239)||void 0}get 240(){return this.item(240)||void 0}get 241(){return this.item(241)||void 0}get 242(){return this.item(242)||void 0}get 243(){return this.item(243)||void 0}get 244(){return this.item(244)||void 0}get 245(){return this.item(245)||void 0}get 246(){return this.item(246)||void 0}get 247(){return this.item(247)||void 0}get 248(){return this.item(248)||void 0}get 249(){return this.item(249)||void 0}get 250(){return this.item(250)||void 0}get 251(){return this.item(251)||void 0}get 252(){return this.item(252)||void 0}get 253(){return this.item(253)||void 0}get 254(){return this.item(254)||void 0}get 255(){return this.item(255)||void 0}get 256(){return this.item(256)||void 0}get 257(){return this.item(257)||void 0}get 258(){return this.item(258)||void 0}get 259(){return this.item(259)||void 0}get 260(){return this.item(260)||void 0}get 261(){return this.item(261)||void 0}get 262(){return this.item(262)||void 0}get 263(){return this.item(263)||void 0}get 264(){return this.item(264)||void 0}get 265(){return this.item(265)||void 0}get 266(){return this.item(266)||void 0}get 267(){return this.item(267)||void 0}get 268(){return this.item(268)||void 0}get 269(){return this.item(269)||void 0}get 270(){return this.item(270)||void 0}get 271(){return this.item(271)||void 0}get 272(){return this.item(272)||void 0}get 273(){return this.item(273)||void 0}get 274(){return this.item(274)||void 0}get 275(){return this.item(275)||void 0}get 276(){return this.item(276)||void 0}get 277(){return this.item(277)||void 0}get 278(){return this.item(278)||void 0}get 279(){return this.item(279)||void 0}get 280(){return this.item(280)||void 0}get 281(){return this.item(281)||void 0}get 282(){return this.item(282)||void 0}get 283(){return this.item(283)||void 0}get 284(){return this.item(284)||void 0}get 285(){return this.item(285)||void 0}get 286(){return this.item(286)||void 0}get 287(){return this.item(287)||void 0}get 288(){return this.item(288)||void 0}get 289(){return this.item(289)||void 0}get 290(){return this.item(290)||void 0}get 291(){return this.item(291)||void 0}get 292(){return this.item(292)||void 0}get 293(){return this.item(293)||void 0}get 294(){return this.item(294)||void 0}get 295(){return this.item(295)||void 0}get 296(){return this.item(296)||void 0}get 297(){return this.item(297)||void 0}get 298(){return this.item(298)||void 0}get 299(){return this.item(299)||void 0}get 300(){return this.item(300)||void 0}get 301(){return this.item(301)||void 0}get 302(){return this.item(302)||void 0}get 303(){return this.item(303)||void 0}get 304(){return this.item(304)||void 0}get 305(){return this.item(305)||void 0}get 306(){return this.item(306)||void 0}get 307(){return this.item(307)||void 0}get 308(){return this.item(308)||void 0}get 309(){return this.item(309)||void 0}get 310(){return this.item(310)||void 0}get 311(){return this.item(311)||void 0}get 312(){return this.item(312)||void 0}get 313(){return this.item(313)||void 0}get 314(){return this.item(314)||void 0}get 315(){return this.item(315)||void 0}get 316(){return this.item(316)||void 0}get 317(){return this.item(317)||void 0}get 318(){return this.item(318)||void 0}get 319(){return this.item(319)||void 0}get 320(){return this.item(320)||void 0}get 321(){return this.item(321)||void 0}get 322(){return this.item(322)||void 0}get 323(){return this.item(323)||void 0}get 324(){return this.item(324)||void 0}get 325(){return this.item(325)||void 0}get 326(){return this.item(326)||void 0}get 327(){return this.item(327)||void 0}get 328(){return this.item(328)||void 0}get 329(){return this.item(329)||void 0}get 330(){return this.item(330)||void 0}get 331(){return this.item(331)||void 0}get 332(){return this.item(332)||void 0}get 333(){return this.item(333)||void 0}get 334(){return this.item(334)||void 0}get 335(){return this.item(335)||void 0}get 336(){return this.item(336)||void 0}get 337(){return this.item(337)||void 0}get 338(){return this.item(338)||void 0}get 339(){return this.item(339)||void 0}get 340(){return this.item(340)||void 0}get 341(){return this.item(341)||void 0}get 342(){return this.item(342)||void 0}get 343(){return this.item(343)||void 0}get 344(){return this.item(344)||void 0}get 345(){return this.item(345)||void 0}get 346(){return this.item(346)||void 0}get 347(){return this.item(347)||void 0}get 348(){return this.item(348)||void 0}get 349(){return this.item(349)||void 0}get 350(){return this.item(350)||void 0}get 351(){return this.item(351)||void 0}get 352(){return this.item(352)||void 0}get 353(){return this.item(353)||void 0}get 354(){return this.item(354)||void 0}get 355(){return this.item(355)||void 0}get 356(){return this.item(356)||void 0}get 357(){return this.item(357)||void 0}get 358(){return this.item(358)||void 0}get 359(){return this.item(359)||void 0}get 360(){return this.item(360)||void 0}get 361(){return this.item(361)||void 0}get 362(){return this.item(362)||void 0}get 363(){return this.item(363)||void 0}get 364(){return this.item(364)||void 0}get 365(){return this.item(365)||void 0}get 366(){return this.item(366)||void 0}get 367(){return this.item(367)||void 0}get 368(){return this.item(368)||void 0}get 369(){return this.item(369)||void 0}get 370(){return this.item(370)||void 0}get 371(){return this.item(371)||void 0}get 372(){return this.item(372)||void 0}get 373(){return this.item(373)||void 0}get 374(){return this.item(374)||void 0}get 375(){return this.item(375)||void 0}get 376(){return this.item(376)||void 0}get 377(){return this.item(377)||void 0}get 378(){return this.item(378)||void 0}get 379(){return this.item(379)||void 0}get 380(){return this.item(380)||void 0}get 381(){return this.item(381)||void 0}get 382(){return this.item(382)||void 0}get 383(){return this.item(383)||void 0}get 384(){return this.item(384)||void 0}get 385(){return this.item(385)||void 0}get 386(){return this.item(386)||void 0}get 387(){return this.item(387)||void 0}get 388(){return this.item(388)||void 0}get 389(){return this.item(389)||void 0}get 390(){return this.item(390)||void 0}get 391(){return this.item(391)||void 0}get 392(){return this.item(392)||void 0}get 393(){return this.item(393)||void 0}get accentColor(){return this.getPropertyValue("accent-color")}set accentColor(t){this.setProperty("accent-color",t)}get appRegion(){return this.getPropertyValue("app-region")}set appRegion(t){this.setProperty("app-region",t)}get alignContent(){return this.getPropertyValue("align-content")}set alignContent(t){this.setProperty("align-content",t)}get alignItems(){return this.getPropertyValue("align-items")}set alignItems(t){this.setProperty("align-items",t)}get alignSelf(){return this.getPropertyValue("align-self")}set alignSelf(t){this.setProperty("align-self",t)}get alignmentBaseline(){return this.getPropertyValue("alignment-baseline")}set alignmentBaseline(t){this.setProperty("alignment-baseline",t)}get all(){return this.getPropertyValue("all")}set all(t){this.setProperty("all",t)}get animation(){return this.getPropertyValue("animation")}set animation(t){this.setProperty("animation",t)}get animationDelay(){return this.getPropertyValue("animation-delay")}set animationDelay(t){this.setProperty("animation-delay",t)}get animationDirection(){return this.getPropertyValue("animation-direction")}set animationDirection(t){this.setProperty("animation-direction",t)}get animationDuration(){return this.getPropertyValue("animation-duration")}set animationDuration(t){this.setProperty("animation-duration",t)}get animationFillMode(){return this.getPropertyValue("animation-fill-mode")}set animationFillMode(t){this.setProperty("animation-fill-mode",t)}get animationIterationCount(){return this.getPropertyValue("animation-iteration-count")}set animationIterationCount(t){this.setProperty("animation-iteration-count",t)}get animationName(){return this.getPropertyValue("animation-name")}set animationName(t){this.setProperty("animation-name",t)}get animationPlayState(){return this.getPropertyValue("animation-play-state")}set animationPlayState(t){this.setProperty("animation-play-state",t)}get animationTimingFunction(){return this.getPropertyValue("animation-timing-function")}set animationTimingFunction(t){this.setProperty("animation-timing-function",t)}get appearance(){return this.getPropertyValue("appearance")}set appearance(t){this.setProperty("appearance",t)}get backdropFilter(){return this.getPropertyValue("backdrop-filter")}set backdropFilter(t){this.setProperty("backdrop-filter",t)}get backfaceVisibility(){return this.getPropertyValue("backface-visibility")}set backfaceVisibility(t){this.setProperty("backface-visibility",t)}get background(){return this.getPropertyValue("background")}set background(t){this.setProperty("background",t)}get backgroundAttachment(){return this.getPropertyValue("background-attachment")}set backgroundAttachment(t){this.setProperty("background-attachment",t)}get backgroundBlendMode(){return this.getPropertyValue("background-blend-mode")}set backgroundBlendMode(t){this.setProperty("background-blend-mode",t)}get backgroundClip(){return this.getPropertyValue("background-clip")}set backgroundClip(t){this.setProperty("background-clip",t)}get backgroundColor(){return this.getPropertyValue("background-color")}set backgroundColor(t){this.setProperty("background-color",t)}get backgroundImage(){return this.getPropertyValue("background-image")}set backgroundImage(t){this.setProperty("background-image",t)}get backgroundOrigin(){return this.getPropertyValue("background-origin")}set backgroundOrigin(t){this.setProperty("background-origin",t)}get backgroundPosition(){return this.getPropertyValue("background-position")}set backgroundPosition(t){this.setProperty("background-position",t)}get backgroundPositionX(){return this.getPropertyValue("background-position-x")}set backgroundPositionX(t){this.setProperty("background-position-x",t)}get backgroundPositionY(){return this.getPropertyValue("background-position-y")}set backgroundPositionY(t){this.setProperty("background-position-y",t)}get backgroundRepeat(){return this.getPropertyValue("background-repeat")}set backgroundRepeat(t){this.setProperty("background-repeat",t)}get backgroundRepeatX(){return this.getPropertyValue("background-repeat-x")}set backgroundRepeatX(t){this.setProperty("background-repeat-x",t)}get backgroundRepeatY(){return this.getPropertyValue("background-repeat-y")}set backgroundRepeatY(t){this.setProperty("background-repeat-y",t)}get backgroundSize(){return this.getPropertyValue("background-size")}set backgroundSize(t){this.setProperty("background-size",t)}get baselineShift(){return this.getPropertyValue("baseline-shift")}set baselineShift(t){this.setProperty("baseline-shift",t)}get blockSize(){return this.getPropertyValue("block-size")}set blockSize(t){this.setProperty("block-size",t)}get border(){return this.getPropertyValue("border")}set border(t){this.setProperty("border",t)}get borderBlockEnd(){return this.getPropertyValue("border-block-end")}set borderBlockEnd(t){this.setProperty("border-block-end",t)}get borderBlockEndColor(){return this.getPropertyValue("border-block-end-color")}set borderBlockEndColor(t){this.setProperty("border-block-end-color",t)}get borderBlockEndStyle(){return this.getPropertyValue("border-block-end-style")}set borderBlockEndStyle(t){this.setProperty("border-block-end-style",t)}get borderBlockEndWidth(){return this.getPropertyValue("border-block-end-width")}set borderBlockEndWidth(t){this.setProperty("border-block-end-width",t)}get borderBlockStart(){return this.getPropertyValue("border-block-start")}set borderBlockStart(t){this.setProperty("border-block-start",t)}get borderBlockStartColor(){return this.getPropertyValue("border-block-start-color")}set borderBlockStartColor(t){this.setProperty("border-block-start-color",t)}get borderBlockStartStyle(){return this.getPropertyValue("border-block-start-style")}set borderBlockStartStyle(t){this.setProperty("border-block-start-style",t)}get borderBlockStartWidth(){return this.getPropertyValue("border-block-start-width")}set borderBlockStartWidth(t){this.setProperty("border-block-start-width",t)}get borderBottom(){return this.getPropertyValue("border-bottom")}set borderBottom(t){this.setProperty("border-bottom",t)}get borderBottomColor(){return this.getPropertyValue("border-bottom-color")}set borderBottomColor(t){this.setProperty("border-bottom-color",t)}get borderBottomLeftRadius(){return this.getPropertyValue("border-bottom-left-radius")}set borderBottomLeftRadius(t){this.setProperty("border-bottom-left-radius",t)}get borderBottomRightRadius(){return this.getPropertyValue("border-bottom-right-radius")}set borderBottomRightRadius(t){this.setProperty("border-bottom-right-radius",t)}get borderBottomStyle(){return this.getPropertyValue("border-bottom-style")}set borderBottomStyle(t){this.setProperty("border-bottom-style",t)}get borderBottomWidth(){return this.getPropertyValue("border-bottom-width")}set borderBottomWidth(t){this.setProperty("border-bottom-width",t)}get borderCollapse(){return this.getPropertyValue("border-collapse")}set borderCollapse(t){this.setProperty("border-collapse",t)}get borderColor(){return this.getPropertyValue("border-color")}set borderColor(t){this.setProperty("border-color",t)}get borderImage(){return this.getPropertyValue("border-image")}set borderImage(t){this.setProperty("border-image",t)}get borderImageOutset(){return this.getPropertyValue("border-image-outset")}set borderImageOutset(t){this.setProperty("border-image-outset",t)}get borderImageRepeat(){return this.getPropertyValue("border-image-repeat")}set borderImageRepeat(t){this.setProperty("border-image-repeat",t)}get borderImageSlice(){return this.getPropertyValue("border-image-slice")}set borderImageSlice(t){this.setProperty("border-image-slice",t)}get borderImageSource(){return this.getPropertyValue("border-image-source")}set borderImageSource(t){this.setProperty("border-image-source",t)}get borderImageWidth(){return this.getPropertyValue("border-image-width")}set borderImageWidth(t){this.setProperty("border-image-width",t)}get borderInlineEnd(){return this.getPropertyValue("border-inline-end")}set borderInlineEnd(t){this.setProperty("border-inline-end",t)}get borderInlineEndColor(){return this.getPropertyValue("border-inline-end-color")}set borderInlineEndColor(t){this.setProperty("border-inline-end-color",t)}get borderInlineEndStyle(){return this.getPropertyValue("border-inline-end-style")}set borderInlineEndStyle(t){this.setProperty("border-inline-end-style",t)}get borderInlineEndWidth(){return this.getPropertyValue("border-inline-end-width")}set borderInlineEndWidth(t){this.setProperty("border-inline-end-width",t)}get borderInlineStart(){return this.getPropertyValue("border-inline-start")}set borderInlineStart(t){this.setProperty("border-inline-start",t)}get borderInlineStartColor(){return this.getPropertyValue("border-inline-start-color")}set borderInlineStartColor(t){this.setProperty("border-inline-start-color",t)}get borderInlineStartStyle(){return this.getPropertyValue("border-inline-start-style")}set borderInlineStartStyle(t){this.setProperty("border-inline-start-style",t)}get borderInlineStartWidth(){return this.getPropertyValue("border-inline-start-width")}set borderInlineStartWidth(t){this.setProperty("border-inline-start-width",t)}get borderLeft(){return this.getPropertyValue("border-left")}set borderLeft(t){this.setProperty("border-left",t)}get borderLeftColor(){return this.getPropertyValue("border-left-color")}set borderLeftColor(t){this.setProperty("border-left-color",t)}get borderLeftStyle(){return this.getPropertyValue("border-left-style")}set borderLeftStyle(t){this.setProperty("border-left-style",t)}get borderLeftWidth(){return this.getPropertyValue("border-left-width")}set borderLeftWidth(t){this.setProperty("border-left-width",t)}get borderRadius(){return this.getPropertyValue("border-radius")}set borderRadius(t){this.setProperty("border-radius",t)}get borderRight(){return this.getPropertyValue("border-right")}set borderRight(t){this.setProperty("border-right",t)}get borderRightColor(){return this.getPropertyValue("border-right-color")}set borderRightColor(t){this.setProperty("border-right-color",t)}get borderRightStyle(){return this.getPropertyValue("border-right-style")}set borderRightStyle(t){this.setProperty("border-right-style",t)}get borderRightWidth(){return this.getPropertyValue("border-right-width")}set borderRightWidth(t){this.setProperty("border-right-width",t)}get borderSpacing(){return this.getPropertyValue("border-spacing")}set borderSpacing(t){this.setProperty("border-spacing",t)}get borderStyle(){return this.getPropertyValue("border-style")}set borderStyle(t){this.setProperty("border-style",t)}get borderTop(){return this.getPropertyValue("border-top")}set borderTop(t){this.setProperty("border-top",t)}get borderTopColor(){return this.getPropertyValue("border-top-color")}set borderTopColor(t){this.setProperty("border-top-color",t)}get borderTopLeftRadius(){return this.getPropertyValue("border-top-left-radius")}set borderTopLeftRadius(t){this.setProperty("border-top-left-radius",t)}get borderTopRightRadius(){return this.getPropertyValue("border-top-right-radius")}set borderTopRightRadius(t){this.setProperty("border-top-right-radius",t)}get borderTopStyle(){return this.getPropertyValue("border-top-style")}set borderTopStyle(t){this.setProperty("border-top-style",t)}get borderTopWidth(){return this.getPropertyValue("border-top-width")}set borderTopWidth(t){this.setProperty("border-top-width",t)}get borderWidth(){return this.getPropertyValue("border-width")}set borderWidth(t){this.setProperty("border-width",t)}get borderEndEndRadius(){return this.getPropertyValue("border-end-end-radius")}set borderEndEndRadius(t){this.setProperty("border-end-end-radius",t)}get borderEndStartRadius(){return this.getPropertyValue("border-end-start-radius")}set borderEndStartRadius(t){this.setProperty("border-end-start-radius",t)}get borderStartEndRadius(){return this.getPropertyValue("border-start-end-radius")}set borderStartEndRadius(t){this.setProperty("border-start-end-radius",t)}get borderStartStartRadius(){return this.getPropertyValue("border-start-start-radius")}set borderStartStartRadius(t){this.setProperty("border-start-start-radius",t)}get bottom(){return this.getPropertyValue("bottom")}set bottom(t){this.setProperty("bottom",t)}get boxShadow(){return this.getPropertyValue("box-shadow")}set boxShadow(t){this.setProperty("box-shadow",t)}get boxSizing(){return this.getPropertyValue("box-sizing")}set boxSizing(t){this.setProperty("box-sizing",t)}get breakAfter(){return this.getPropertyValue("break-after")}set breakAfter(t){this.setProperty("break-after",t)}get breakBefore(){return this.getPropertyValue("break-before")}set breakBefore(t){this.setProperty("break-before",t)}get breakInside(){return this.getPropertyValue("break-inside")}set breakInside(t){this.setProperty("break-inside",t)}get bufferedRendering(){return this.getPropertyValue("buffered-rendering")}set bufferedRendering(t){this.setProperty("buffered-rendering",t)}get captionSide(){return this.getPropertyValue("caption-side")}set captionSide(t){this.setProperty("caption-side",t)}get caretColor(){return this.getPropertyValue("caret-color")}set caretColor(t){this.setProperty("caret-color",t)}get clear(){return this.getPropertyValue("clear")}set clear(t){this.setProperty("clear",t)}get clip(){return this.getPropertyValue("clip")}set clip(t){this.setProperty("clip",t)}get clipPath(){return this.getPropertyValue("clip-path")}set clipPath(t){this.setProperty("clip-path",t)}get clipRule(){return this.getPropertyValue("clip-rule")}set clipRule(t){this.setProperty("clip-rule",t)}get color(){return this.getPropertyValue("color")}set color(t){this.setProperty("color",t)}get colorInterpolation(){return this.getPropertyValue("color-interpolation")}set colorInterpolation(t){this.setProperty("color-interpolation",t)}get colorInterpolationFilters(){return this.getPropertyValue("color-interpolation-filters")}set colorInterpolationFilters(t){this.setProperty("color-interpolation-filters",t)}get colorRendering(){return this.getPropertyValue("color-rendering")}set colorRendering(t){this.setProperty("color-rendering",t)}get colorScheme(){return this.getPropertyValue("color-scheme")}set colorScheme(t){this.setProperty("color-scheme",t)}get columnCount(){return this.getPropertyValue("column-count")}set columnCount(t){this.setProperty("column-count",t)}get columnFill(){return this.getPropertyValue("column-fill")}set columnFill(t){this.setProperty("column-fill",t)}get columnGap(){return this.getPropertyValue("column-gap")}set columnGap(t){this.setProperty("column-gap",t)}get columnRule(){return this.getPropertyValue("column-rule")}set columnRule(t){this.setProperty("column-rule",t)}get columnRuleColor(){return this.getPropertyValue("column-rule-color")}set columnRuleColor(t){this.setProperty("column-rule-color",t)}get columnRuleStyle(){return this.getPropertyValue("column-rule-style")}set columnRuleStyle(t){this.setProperty("column-rule-style",t)}get columnRuleWidth(){return this.getPropertyValue("column-rule-width")}set columnRuleWidth(t){this.setProperty("column-rule-width",t)}get columnSpan(){return this.getPropertyValue("column-span")}set columnSpan(t){this.setProperty("column-span",t)}get columnWidth(){return this.getPropertyValue("column-width")}set columnWidth(t){this.setProperty("column-width",t)}get columns(){return this.getPropertyValue("columns")}set columns(t){this.setProperty("columns",t)}get contain(){return this.getPropertyValue("contain")}set contain(t){this.setProperty("contain",t)}get containIntrinsicSize(){return this.getPropertyValue("contain-intrinsic-size")}set containIntrinsicSize(t){this.setProperty("contain-intrinsic-size",t)}get content(){return this.getPropertyValue("content")}set content(t){this.setProperty("content",t)}get contentVisibility(){return this.getPropertyValue("content-visibility")}set contentVisibility(t){this.setProperty("content-visibility",t)}get counterIncrement(){return this.getPropertyValue("counter-increment")}set counterIncrement(t){this.setProperty("counter-increment",t)}get counterReset(){return this.getPropertyValue("counter-reset")}set counterReset(t){this.setProperty("counter-reset",t)}get counterSet(){return this.getPropertyValue("counter-set")}set counterSet(t){this.setProperty("counter-set",t)}get containIntrinsicBlockSize(){return this.getPropertyValue("contain-intrinsic-block-size")}set containIntrinsicBlockSize(t){this.setProperty("contain-intrinsic-block-size",t)}get containIntrinsicHeight(){return this.getPropertyValue("contain-intrinsic-height")}set containIntrinsicHeight(t){this.setProperty("contain-intrinsic-height",t)}get containIntrinsicInlineSize(){return this.getPropertyValue("contain-intrinsic-inline-size")}set containIntrinsicInlineSize(t){this.setProperty("contain-intrinsic-inline-size",t)}get containIntrinsicWidth(){return this.getPropertyValue("contain-intrinsic-width")}set containIntrinsicWidth(t){this.setProperty("contain-intrinsic-width",t)}get cssFloat(){return this.getPropertyValue("css-float")}set cssFloat(t){this.setProperty("css-float",t)}get cursor(){return this.getPropertyValue("cursor")}set cursor(t){this.setProperty("cursor",t)}get cx(){return this.getPropertyValue("cx")}set cx(t){this.setProperty("cx",t)}get cy(){return this.getPropertyValue("cy")}set cy(t){this.setProperty("cy",t)}get d(){return this.getPropertyValue("d")}set d(t){this.setProperty("d",t)}get direction(){return this.getPropertyValue("direction")}set direction(t){this.setProperty("direction",t)}get display(){return this.getPropertyValue("display")}set display(t){this.setProperty("display",t)}get dominantBaseline(){return this.getPropertyValue("dominant-baseline")}set dominantBaseline(t){this.setProperty("dominant-baseline",t)}get emptyCells(){return this.getPropertyValue("empty-cells")}set emptyCells(t){this.setProperty("empty-cells",t)}get fill(){return this.getPropertyValue("fill")}set fill(t){this.setProperty("fill",t)}get fillOpacity(){return this.getPropertyValue("fill-opacity")}set fillOpacity(t){this.setProperty("fill-opacity",t)}get fillRule(){return this.getPropertyValue("fill-rule")}set fillRule(t){this.setProperty("fill-rule",t)}get filter(){return this.getPropertyValue("filter")}set filter(t){this.setProperty("filter",t)}get flex(){return this.getPropertyValue("flex")}set flex(t){this.setProperty("flex",t)}get flexBasis(){return this.getPropertyValue("flex-basis")}set flexBasis(t){this.setProperty("flex-basis",t)}get flexDirection(){return this.getPropertyValue("flex-direction")}set flexDirection(t){this.setProperty("flex-direction",t)}get flexFlow(){return this.getPropertyValue("flex-flow")}set flexFlow(t){this.setProperty("flex-flow",t)}get flexGrow(){return this.getPropertyValue("flex-grow")}set flexGrow(t){this.setProperty("flex-grow",t)}get flexShrink(){return this.getPropertyValue("flex-shrink")}set flexShrink(t){this.setProperty("flex-shrink",t)}get flexWrap(){return this.getPropertyValue("flex-wrap")}set flexWrap(t){this.setProperty("flex-wrap",t)}get float(){return this.getPropertyValue("float")}set float(t){this.setProperty("float",t)}get floodColor(){return this.getPropertyValue("flood-color")}set floodColor(t){this.setProperty("flood-color",t)}get floodOpacity(){return this.getPropertyValue("flood-opacity")}set floodOpacity(t){this.setProperty("flood-opacity",t)}get font(){return this.getPropertyValue("font")}set font(t){this.setProperty("font",t)}get fontDisplay(){return this.getPropertyValue("font-display")}set fontDisplay(t){this.setProperty("font-display",t)}get fontFamily(){return this.getPropertyValue("font-family")}set fontFamily(t){this.setProperty("font-family",t)}get fontFeatureSettings(){return this.getPropertyValue("font-feature-settings")}set fontFeatureSettings(t){this.setProperty("font-feature-settings",t)}get fontKerning(){return this.getPropertyValue("font-kerning")}set fontKerning(t){this.setProperty("font-kerning",t)}get fontOpticalSizing(){return this.getPropertyValue("font-optical-sizing")}set fontOpticalSizing(t){this.setProperty("font-optical-sizing",t)}get fontSize(){return this.getPropertyValue("font-size")}set fontSize(t){this.setProperty("font-size",t)}get fontStretch(){return this.getPropertyValue("font-stretch")}set fontStretch(t){this.setProperty("font-stretch",t)}get fontStyle(){return this.getPropertyValue("font-style")}set fontStyle(t){this.setProperty("font-style",t)}get fontVariant(){return this.getPropertyValue("font-variant")}set fontVariant(t){this.setProperty("font-variant",t)}get fontVariantCaps(){return this.getPropertyValue("font-variant-caps")}set fontVariantCaps(t){this.setProperty("font-variant-caps",t)}get fontVariantEastAsian(){return this.getPropertyValue("font-variant-east-asian")}set fontVariantEastAsian(t){this.setProperty("font-variant-east-asian",t)}get fontVariantLigatures(){return this.getPropertyValue("font-variant-ligatures")}set fontVariantLigatures(t){this.setProperty("font-variant-ligatures",t)}get fontVariantNumeric(){return this.getPropertyValue("font-variant-numeric")}set fontVariantNumeric(t){this.setProperty("font-variant-numeric",t)}get fontVariationSettings(){return this.getPropertyValue("font-variation-settings")}set fontVariationSettings(t){this.setProperty("font-variation-settings",t)}get fontPalette(){return this.getPropertyValue("font-palette")}set fontPalette(t){this.setProperty("font-palette",t)}get fontSynthesisSmallCaps(){return this.getPropertyValue("font-synthesis-small-caps")}set fontSynthesisSmallCaps(t){this.setProperty("font-synthesis-small-caps",t)}get fontSynthesisStyle(){return this.getPropertyValue("font-synthesis-style")}set fontSynthesisStyle(t){this.setProperty("font-synthesis-style",t)}get fontSynthesisWeight(){return this.getPropertyValue("font-synthesis-weight")}set fontSynthesisWeight(t){this.setProperty("font-synthesis-weight",t)}get fontWeight(){return this.getPropertyValue("font-weight")}set fontWeight(t){this.setProperty("font-weight",t)}get gap(){return this.getPropertyValue("gap")}set gap(t){this.setProperty("gap",t)}get grid(){return this.getPropertyValue("grid")}set grid(t){this.setProperty("grid",t)}get gridArea(){return this.getPropertyValue("grid-area")}set gridArea(t){this.setProperty("grid-area",t)}get gridAutoColumns(){return this.getPropertyValue("grid-auto-columns")}set gridAutoColumns(t){this.setProperty("grid-auto-columns",t)}get gridAutoFlow(){return this.getPropertyValue("grid-auto-flow")}set gridAutoFlow(t){this.setProperty("grid-auto-flow",t)}get gridAutoRows(){return this.getPropertyValue("grid-auto-rows")}set gridAutoRows(t){this.setProperty("grid-auto-rows",t)}get gridColumn(){return this.getPropertyValue("grid-column")}set gridColumn(t){this.setProperty("grid-column",t)}get gridColumnEnd(){return this.getPropertyValue("grid-column-end")}set gridColumnEnd(t){this.setProperty("grid-column-end",t)}get gridColumnGap(){return this.getPropertyValue("grid-column-gap")}set gridColumnGap(t){this.setProperty("grid-column-gap",t)}get gridColumnStart(){return this.getPropertyValue("grid-column-start")}set gridColumnStart(t){this.setProperty("grid-column-start",t)}get gridGap(){return this.getPropertyValue("grid-gap")}set gridGap(t){this.setProperty("grid-gap",t)}get gridRow(){return this.getPropertyValue("grid-row")}set gridRow(t){this.setProperty("grid-row",t)}get gridRowEnd(){return this.getPropertyValue("grid-row-end")}set gridRowEnd(t){this.setProperty("grid-row-end",t)}get gridRowGap(){return this.getPropertyValue("grid-row-gap")}set gridRowGap(t){this.setProperty("grid-row-gap",t)}get gridRowStart(){return this.getPropertyValue("grid-row-start")}set gridRowStart(t){this.setProperty("grid-row-start",t)}get gridTemplate(){return this.getPropertyValue("grid-template")}set gridTemplate(t){this.setProperty("grid-template",t)}get gridTemplateAreas(){return this.getPropertyValue("grid-template-areas")}set gridTemplateAreas(t){this.setProperty("grid-template-areas",t)}get gridTemplateColumns(){return this.getPropertyValue("grid-template-columns")}set gridTemplateColumns(t){this.setProperty("grid-template-columns",t)}get gridTemplateRows(){return this.getPropertyValue("grid-template-rows")}set gridTemplateRows(t){this.setProperty("grid-template-rows",t)}get height(){return this.getPropertyValue("height")}set height(t){this.setProperty("height",t)}get hyphens(){return this.getPropertyValue("hyphens")}set hyphens(t){this.setProperty("hyphens",t)}get imageOrientation(){return this.getPropertyValue("image-orientation")}set imageOrientation(t){this.setProperty("image-orientation",t)}get imageRendering(){return this.getPropertyValue("image-rendering")}set imageRendering(t){this.setProperty("image-rendering",t)}get inherits(){return this.getPropertyValue("inherits")}set inherits(t){this.setProperty("inherits",t)}get initialValue(){return this.getPropertyValue("initial-value")}set initialValue(t){this.setProperty("initial-value",t)}get inlineSize(){return this.getPropertyValue("inline-size")}set inlineSize(t){this.setProperty("inline-size",t)}get isolation(){return this.getPropertyValue("isolation")}set isolation(t){this.setProperty("isolation",t)}get insetBlockEnd(){return this.getPropertyValue("inset-block-end")}set insetBlockEnd(t){this.setProperty("inset-block-end",t)}get insetBlockStart(){return this.getPropertyValue("inset-block-start")}set insetBlockStart(t){this.setProperty("inset-block-start",t)}get insetInlineEnd(){return this.getPropertyValue("inset-inline-end")}set insetInlineEnd(t){this.setProperty("inset-inline-end",t)}get insetInlineStart(){return this.getPropertyValue("inset-inline-start")}set insetInlineStart(t){this.setProperty("inset-inline-start",t)}get justifyContent(){return this.getPropertyValue("justify-content")}set justifyContent(t){this.setProperty("justify-content",t)}get justifyItems(){return this.getPropertyValue("justify-items")}set justifyItems(t){this.setProperty("justify-items",t)}get justifySelf(){return this.getPropertyValue("justify-self")}set justifySelf(t){this.setProperty("justify-self",t)}get left(){return this.getPropertyValue("left")}set left(t){this.setProperty("left",t)}get letterSpacing(){return this.getPropertyValue("letter-spacing")}set letterSpacing(t){this.setProperty("letter-spacing",t)}get lightingColor(){return this.getPropertyValue("lighting-color")}set lightingColor(t){this.setProperty("lighting-color",t)}get lineBreak(){return this.getPropertyValue("line-break")}set lineBreak(t){this.setProperty("line-break",t)}get lineHeight(){return this.getPropertyValue("line-height")}set lineHeight(t){this.setProperty("line-height",t)}get listStyle(){return this.getPropertyValue("list-style")}set listStyle(t){this.setProperty("list-style",t)}get listStyleImage(){return this.getPropertyValue("list-style-image")}set listStyleImage(t){this.setProperty("list-style-image",t)}get listStylePosition(){return this.getPropertyValue("list-style-position")}set listStylePosition(t){this.setProperty("list-style-position",t)}get listStyleType(){return this.getPropertyValue("list-style-type")}set listStyleType(t){this.setProperty("list-style-type",t)}get margin(){return this.getPropertyValue("margin")}set margin(t){this.setProperty("margin",t)}get marginBlockEnd(){return this.getPropertyValue("margin-block-end")}set marginBlockEnd(t){this.setProperty("margin-block-end",t)}get marginBlockStart(){return this.getPropertyValue("margin-block-start")}set marginBlockStart(t){this.setProperty("margin-block-start",t)}get marginBottom(){return this.getPropertyValue("margin-bottom")}set marginBottom(t){this.setProperty("margin-bottom",t)}get marginInlineEnd(){return this.getPropertyValue("margin-inline-end")}set marginInlineEnd(t){this.setProperty("margin-inline-end",t)}get marginInlineStart(){return this.getPropertyValue("margin-inline-start")}set marginInlineStart(t){this.setProperty("margin-inline-start",t)}get marginLeft(){return this.getPropertyValue("margin-left")}set marginLeft(t){this.setProperty("margin-left",t)}get marginRight(){return this.getPropertyValue("margin-right")}set marginRight(t){this.setProperty("margin-right",t)}get marginTop(){return this.getPropertyValue("margin-top")}set marginTop(t){this.setProperty("margin-top",t)}get marker(){return this.getPropertyValue("marker")}set marker(t){this.setProperty("marker",t)}get markerEnd(){return this.getPropertyValue("marker-end")}set markerEnd(t){this.setProperty("marker-end",t)}get markerMid(){return this.getPropertyValue("marker-mid")}set markerMid(t){this.setProperty("marker-mid",t)}get markerStart(){return this.getPropertyValue("marker-start")}set markerStart(t){this.setProperty("marker-start",t)}get mask(){return this.getPropertyValue("mask")}set mask(t){this.setProperty("mask",t)}get maskType(){return this.getPropertyValue("mask-type")}set maskType(t){this.setProperty("mask-type",t)}get maxBlockSize(){return this.getPropertyValue("max-block-size")}set maxBlockSize(t){this.setProperty("max-block-size",t)}get maxHeight(){return this.getPropertyValue("max-height")}set maxHeight(t){this.setProperty("max-height",t)}get maxInlineSize(){return this.getPropertyValue("max-inline-size")}set maxInlineSize(t){this.setProperty("max-inline-size",t)}get maxWidth(){return this.getPropertyValue("max-width")}set maxWidth(t){this.setProperty("max-width",t)}get maxZoom(){return this.getPropertyValue("max-zoom")}set maxZoom(t){this.setProperty("max-zoom",t)}get minBlockSize(){return this.getPropertyValue("min-block-size")}set minBlockSize(t){this.setProperty("min-block-size",t)}get minHeight(){return this.getPropertyValue("min-height")}set minHeight(t){this.setProperty("min-height",t)}get minInlineSize(){return this.getPropertyValue("min-inline-size")}set minInlineSize(t){this.setProperty("min-inline-size",t)}get minWidth(){return this.getPropertyValue("min-width")}set minWidth(t){this.setProperty("min-width",t)}get minZoom(){return this.getPropertyValue("min-zoom")}set minZoom(t){this.setProperty("min-zoom",t)}get mixBlendMode(){return this.getPropertyValue("mix-blend-mode")}set mixBlendMode(t){this.setProperty("mix-blend-mode",t)}get objectFit(){return this.getPropertyValue("object-fit")}set objectFit(t){this.setProperty("object-fit",t)}get objectPosition(){return this.getPropertyValue("object-position")}set objectPosition(t){this.setProperty("object-position",t)}get offset(){return this.getPropertyValue("offset")}set offset(t){this.setProperty("offset",t)}get offsetDistance(){return this.getPropertyValue("offset-distance")}set offsetDistance(t){this.setProperty("offset-distance",t)}get offsetPath(){return this.getPropertyValue("offset-path")}set offsetPath(t){this.setProperty("offset-path",t)}get offsetRotate(){return this.getPropertyValue("offset-rotate")}set offsetRotate(t){this.setProperty("offset-rotate",t)}get opacity(){return this.getPropertyValue("opacity")}set opacity(t){this.setProperty("opacity",t)}get order(){return this.getPropertyValue("order")}set order(t){this.setProperty("order",t)}get orientation(){return this.getPropertyValue("orientation")}set orientation(t){this.setProperty("orientation",t)}get orphans(){return this.getPropertyValue("orphans")}set orphans(t){this.setProperty("orphans",t)}get outline(){return this.getPropertyValue("outline")}set outline(t){this.setProperty("outline",t)}get outlineColor(){return this.getPropertyValue("outline-color")}set outlineColor(t){this.setProperty("outline-color",t)}get outlineOffset(){return this.getPropertyValue("outline-offset")}set outlineOffset(t){this.setProperty("outline-offset",t)}get outlineStyle(){return this.getPropertyValue("outline-style")}set outlineStyle(t){this.setProperty("outline-style",t)}get outlineWidth(){return this.getPropertyValue("outline-width")}set outlineWidth(t){this.setProperty("outline-width",t)}get overflow(){return this.getPropertyValue("overflow")}set overflow(t){this.setProperty("overflow",t)}get overflowAnchor(){return this.getPropertyValue("overflow-anchor")}set overflowAnchor(t){this.setProperty("overflow-anchor",t)}get overflowWrap(){return this.getPropertyValue("overflow-wrap")}set overflowWrap(t){this.setProperty("overflow-wrap",t)}get overflowX(){return this.getPropertyValue("overflow-x")}set overflowX(t){this.setProperty("overflow-x",t)}get overflowY(){return this.getPropertyValue("overflow-y")}set overflowY(t){this.setProperty("overflow-y",t)}get overscrollBehavior(){return this.getPropertyValue("overscroll-behavior")}set overscrollBehavior(t){this.setProperty("overscroll-behavior",t)}get overscrollBehaviorBlock(){return this.getPropertyValue("overscroll-behavior-block")}set overscrollBehaviorBlock(t){this.setProperty("overscroll-behavior-block",t)}get overscrollBehaviorInline(){return this.getPropertyValue("overscroll-behavior-inline")}set overscrollBehaviorInline(t){this.setProperty("overscroll-behavior-inline",t)}get overscrollBehaviorX(){return this.getPropertyValue("overscroll-behavior-x")}set overscrollBehaviorX(t){this.setProperty("overscroll-behavior-x",t)}get overscrollBehaviorY(){return this.getPropertyValue("overscroll-behavior-y")}set overscrollBehaviorY(t){this.setProperty("overscroll-behavior-y",t)}get overflowClipMargin(){return this.getPropertyValue("overflow-clip-margin")}set overflowClipMargin(t){this.setProperty("overflow-clip-margin",t)}get padding(){return this.getPropertyValue("padding")}set padding(t){this.setProperty("padding",t)}get paddingBlockEnd(){return this.getPropertyValue("padding-block-end")}set paddingBlockEnd(t){this.setProperty("padding-block-end",t)}get paddingBlockStart(){return this.getPropertyValue("padding-block-start")}set paddingBlockStart(t){this.setProperty("padding-block-start",t)}get paddingBottom(){return this.getPropertyValue("padding-bottom")}set paddingBottom(t){this.setProperty("padding-bottom",t)}get paddingInlineEnd(){return this.getPropertyValue("padding-inline-end")}set paddingInlineEnd(t){this.setProperty("padding-inline-end",t)}get paddingInlineStart(){return this.getPropertyValue("padding-inline-start")}set paddingInlineStart(t){this.setProperty("padding-inline-start",t)}get paddingLeft(){return this.getPropertyValue("padding-left")}set paddingLeft(t){this.setProperty("padding-left",t)}get paddingRight(){return this.getPropertyValue("padding-right")}set paddingRight(t){this.setProperty("padding-right",t)}get paddingTop(){return this.getPropertyValue("padding-top")}set paddingTop(t){this.setProperty("padding-top",t)}get page(){return this.getPropertyValue("page")}set page(t){this.setProperty("page",t)}get pageBreakAfter(){return this.getPropertyValue("page-break-after")}set pageBreakAfter(t){this.setProperty("page-break-after",t)}get pageBreakBefore(){return this.getPropertyValue("page-break-before")}set pageBreakBefore(t){this.setProperty("page-break-before",t)}get pageBreakInside(){return this.getPropertyValue("page-break-inside")}set pageBreakInside(t){this.setProperty("page-break-inside",t)}get pageOrientation(){return this.getPropertyValue("page-orientation")}set pageOrientation(t){this.setProperty("page-orientation",t)}get paintOrder(){return this.getPropertyValue("paint-order")}set paintOrder(t){this.setProperty("paint-order",t)}get perspective(){return this.getPropertyValue("perspective")}set perspective(t){this.setProperty("perspective",t)}get perspectiveOrigin(){return this.getPropertyValue("perspective-origin")}set perspectiveOrigin(t){this.setProperty("perspective-origin",t)}get placeContent(){return this.getPropertyValue("place-content")}set placeContent(t){this.setProperty("place-content",t)}get placeItems(){return this.getPropertyValue("place-items")}set placeItems(t){this.setProperty("place-items",t)}get placeSelf(){return this.getPropertyValue("place-self")}set placeSelf(t){this.setProperty("place-self",t)}get pointerEvents(){return this.getPropertyValue("pointer-events")}set pointerEvents(t){this.setProperty("pointer-events",t)}get position(){return this.getPropertyValue("position")}set position(t){this.setProperty("position",t)}get quotes(){return this.getPropertyValue("quotes")}set quotes(t){this.setProperty("quotes",t)}get r(){return this.getPropertyValue("r")}set r(t){this.setProperty("r",t)}get resize(){return this.getPropertyValue("resize")}set resize(t){this.setProperty("resize",t)}get right(){return this.getPropertyValue("right")}set right(t){this.setProperty("right",t)}get rowGap(){return this.getPropertyValue("row-gap")}set rowGap(t){this.setProperty("row-gap",t)}get rubyPosition(){return this.getPropertyValue("ruby-position")}set rubyPosition(t){this.setProperty("ruby-position",t)}get rx(){return this.getPropertyValue("rx")}set rx(t){this.setProperty("rx",t)}get ry(){return this.getPropertyValue("ry")}set ry(t){this.setProperty("ry",t)}get scrollBehavior(){return this.getPropertyValue("scroll-behavior")}set scrollBehavior(t){this.setProperty("scroll-behavior",t)}get scrollMargin(){return this.getPropertyValue("scroll-margin")}set scrollMargin(t){this.setProperty("scroll-margin",t)}get scrollMarginBlock(){return this.getPropertyValue("scroll-margin-block")}set scrollMarginBlock(t){this.setProperty("scroll-margin-block",t)}get scrollMarginBlockEnd(){return this.getPropertyValue("scroll-margin-block-end")}set scrollMarginBlockEnd(t){this.setProperty("scroll-margin-block-end",t)}get scrollMarginBlockStart(){return this.getPropertyValue("scroll-margin-block-start")}set scrollMarginBlockStart(t){this.setProperty("scroll-margin-block-start",t)}get scrollMarginBottom(){return this.getPropertyValue("scroll-margin-bottom")}set scrollMarginBottom(t){this.setProperty("scroll-margin-bottom",t)}get scrollMarginInline(){return this.getPropertyValue("scroll-margin-inline")}set scrollMarginInline(t){this.setProperty("scroll-margin-inline",t)}get scrollMarginInlineEnd(){return this.getPropertyValue("scroll-margin-inline-end")}set scrollMarginInlineEnd(t){this.setProperty("scroll-margin-inline-end",t)}get scrollMarginInlineStart(){return this.getPropertyValue("scroll-margin-inline-start")}set scrollMarginInlineStart(t){this.setProperty("scroll-margin-inline-start",t)}get scrollMarginLeft(){return this.getPropertyValue("scroll-margin-left")}set scrollMarginLeft(t){this.setProperty("scroll-margin-left",t)}get scrollMarginRight(){return this.getPropertyValue("scroll-margin-right")}set scrollMarginRight(t){this.setProperty("scroll-margin-right",t)}get scrollMarginTop(){return this.getPropertyValue("scroll-margin-top")}set scrollMarginTop(t){this.setProperty("scroll-margin-top",t)}get scrollPadding(){return this.getPropertyValue("scroll-padding")}set scrollPadding(t){this.setProperty("scroll-padding",t)}get scrollPaddingBlock(){return this.getPropertyValue("scroll-padding-block")}set scrollPaddingBlock(t){this.setProperty("scroll-padding-block",t)}get scrollPaddingBlockEnd(){return this.getPropertyValue("scroll-padding-block-end")}set scrollPaddingBlockEnd(t){this.setProperty("scroll-padding-block-end",t)}get scrollPaddingBlockStart(){return this.getPropertyValue("scroll-padding-block-start")}set scrollPaddingBlockStart(t){this.setProperty("scroll-padding-block-start",t)}get scrollPaddingBottom(){return this.getPropertyValue("scroll-padding-bottom")}set scrollPaddingBottom(t){this.setProperty("scroll-padding-bottom",t)}get scrollPaddingInline(){return this.getPropertyValue("scroll-padding-inline")}set scrollPaddingInline(t){this.setProperty("scroll-padding-inline",t)}get scrollPaddingInlineEnd(){return this.getPropertyValue("scroll-padding-inline-end")}set scrollPaddingInlineEnd(t){this.setProperty("scroll-padding-inline-end",t)}get scrollPaddingInlineStart(){return this.getPropertyValue("scroll-padding-inline-start")}set scrollPaddingInlineStart(t){this.setProperty("scroll-padding-inline-start",t)}get scrollPaddingLeft(){return this.getPropertyValue("scroll-padding-left")}set scrollPaddingLeft(t){this.setProperty("scroll-padding-left",t)}get scrollPaddingRight(){return this.getPropertyValue("scroll-padding-right")}set scrollPaddingRight(t){this.setProperty("scroll-padding-right",t)}get scrollPaddingTop(){return this.getPropertyValue("scroll-padding-top")}set scrollPaddingTop(t){this.setProperty("scroll-padding-top",t)}get scrollSnapAlign(){return this.getPropertyValue("scroll-snap-align")}set scrollSnapAlign(t){this.setProperty("scroll-snap-align",t)}get scrollSnapStop(){return this.getPropertyValue("scroll-snap-stop")}set scrollSnapStop(t){this.setProperty("scroll-snap-stop",t)}get scrollSnapType(){return this.getPropertyValue("scroll-snap-type")}set scrollSnapType(t){this.setProperty("scroll-snap-type",t)}get shapeImageThreshold(){return this.getPropertyValue("shape-image-threshold")}set shapeImageThreshold(t){this.setProperty("shape-image-threshold",t)}get shapeMargin(){return this.getPropertyValue("shape-margin")}set shapeMargin(t){this.setProperty("shape-margin",t)}get shapeOutside(){return this.getPropertyValue("shape-outside")}set shapeOutside(t){this.setProperty("shape-outside",t)}get shapeRendering(){return this.getPropertyValue("shape-rendering")}set shapeRendering(t){this.setProperty("shape-rendering",t)}get size(){return this.getPropertyValue("size")}set size(t){this.setProperty("size",t)}get speak(){return this.getPropertyValue("speak")}set speak(t){this.setProperty("speak",t)}get src(){return this.getPropertyValue("src")}set src(t){this.setProperty("src",t)}get stopColor(){return this.getPropertyValue("stop-color")}set stopColor(t){this.setProperty("stop-color",t)}get stopOpacity(){return this.getPropertyValue("stop-opacity")}set stopOpacity(t){this.setProperty("stop-opacity",t)}get stroke(){return this.getPropertyValue("stroke")}set stroke(t){this.setProperty("stroke",t)}get strokeDasharray(){return this.getPropertyValue("stroke-dasharray")}set strokeDasharray(t){this.setProperty("stroke-dasharray",t)}get strokeDashoffset(){return this.getPropertyValue("stroke-dashoffset")}set strokeDashoffset(t){this.setProperty("stroke-dashoffset",t)}get strokeLinecap(){return this.getPropertyValue("stroke-linecap")}set strokeLinecap(t){this.setProperty("stroke-linecap",t)}get strokeLinejoin(){return this.getPropertyValue("stroke-linejoin")}set strokeLinejoin(t){this.setProperty("stroke-linejoin",t)}get strokeMiterlimit(){return this.getPropertyValue("stroke-miterlimit")}set strokeMiterlimit(t){this.setProperty("stroke-miterlimit",t)}get strokeOpacity(){return this.getPropertyValue("stroke-opacity")}set strokeOpacity(t){this.setProperty("stroke-opacity",t)}get strokeWidth(){return this.getPropertyValue("stroke-width")}set strokeWidth(t){this.setProperty("stroke-width",t)}get syntax(){return this.getPropertyValue("syntax")}set syntax(t){this.setProperty("syntax",t)}get scrollbarGutter(){return this.getPropertyValue("scrollbar-gutter")}set scrollbarGutter(t){this.setProperty("scrollbar-gutter",t)}get tabSize(){return this.getPropertyValue("tab-size")}set tabSize(t){this.setProperty("tab-size",t)}get tableLayout(){return this.getPropertyValue("table-layout")}set tableLayout(t){this.setProperty("table-layout",t)}get textAlign(){return this.getPropertyValue("text-align")}set textAlign(t){this.setProperty("text-align",t)}get textAlignLast(){return this.getPropertyValue("text-align-last")}set textAlignLast(t){this.setProperty("text-align-last",t)}get textAnchor(){return this.getPropertyValue("text-anchor")}set textAnchor(t){this.setProperty("text-anchor",t)}get textCombineUpright(){return this.getPropertyValue("text-combine-upright")}set textCombineUpright(t){this.setProperty("text-combine-upright",t)}get textDecoration(){return this.getPropertyValue("text-decoration")}set textDecoration(t){this.setProperty("text-decoration",t)}get textDecorationColor(){return this.getPropertyValue("text-decoration-color")}set textDecorationColor(t){this.setProperty("text-decoration-color",t)}get textDecorationLine(){return this.getPropertyValue("text-decoration-line")}set textDecorationLine(t){this.setProperty("text-decoration-line",t)}get textDecorationSkipInk(){return this.getPropertyValue("text-decoration-skip-ink")}set textDecorationSkipInk(t){this.setProperty("text-decoration-skip-ink",t)}get textDecorationStyle(){return this.getPropertyValue("text-decoration-style")}set textDecorationStyle(t){this.setProperty("text-decoration-style",t)}get textIndent(){return this.getPropertyValue("text-indent")}set textIndent(t){this.setProperty("text-indent",t)}get textOrientation(){return this.getPropertyValue("text-orientation")}set textOrientation(t){this.setProperty("text-orientation",t)}get textOverflow(){return this.getPropertyValue("text-overflow")}set textOverflow(t){this.setProperty("text-overflow",t)}get textRendering(){return this.getPropertyValue("text-rendering")}set textRendering(t){this.setProperty("text-rendering",t)}get textShadow(){return this.getPropertyValue("text-shadow")}set textShadow(t){this.setProperty("text-shadow",t)}get textSizeAdjust(){return this.getPropertyValue("text-size-adjust")}set textSizeAdjust(t){this.setProperty("text-size-adjust",t)}get textTransform(){return this.getPropertyValue("text-transform")}set textTransform(t){this.setProperty("text-transform",t)}get textUnderlinePosition(){return this.getPropertyValue("text-underline-position")}set textUnderlinePosition(t){this.setProperty("text-underline-position",t)}get top(){return this.getPropertyValue("top")}set top(t){this.setProperty("top",t)}get touchAction(){return this.getPropertyValue("touch-action")}set touchAction(t){this.setProperty("touch-action",t)}get transform(){return this.getPropertyValue("transform")}set transform(t){this.setProperty("transform",t)}get transformBox(){return this.getPropertyValue("transform-box")}set transformBox(t){this.setProperty("transform-box",t)}get transformOrigin(){return this.getPropertyValue("transform-origin")}set transformOrigin(t){this.setProperty("transform-origin",t)}get transformStyle(){return this.getPropertyValue("transform-style")}set transformStyle(t){this.setProperty("transform-style",t)}get transition(){return this.getPropertyValue("transition")}set transition(t){this.setProperty("transition",t)}get transitionDelay(){return this.getPropertyValue("transition-delay")}set transitionDelay(t){this.setProperty("transition-delay",t)}get transitionDuration(){return this.getPropertyValue("transition-duration")}set transitionDuration(t){this.setProperty("transition-duration",t)}get transitionProperty(){return this.getPropertyValue("transition-property")}set transitionProperty(t){this.setProperty("transition-property",t)}get transitionTimingFunction(){return this.getPropertyValue("transition-timing-function")}set transitionTimingFunction(t){this.setProperty("transition-timing-function",t)}get textEmphasisColor(){return this.getPropertyValue("text-emphasis-color")}set textEmphasisColor(t){this.setProperty("text-emphasis-color",t)}get textEmphasisPosition(){return this.getPropertyValue("text-emphasis-position")}set textEmphasisPosition(t){this.setProperty("text-emphasis-position",t)}get textEmphasisStyle(){return this.getPropertyValue("text-emphasis-style")}set textEmphasisStyle(t){this.setProperty("text-emphasis-style",t)}get unicodeBidi(){return this.getPropertyValue("unicode-bidi")}set unicodeBidi(t){this.setProperty("unicode-bidi",t)}get unicodeRange(){return this.getPropertyValue("unicode-range")}set unicodeRange(t){this.setProperty("unicode-range",t)}get userSelect(){return this.getPropertyValue("user-select")}set userSelect(t){this.setProperty("user-select",t)}get userZoom(){return this.getPropertyValue("user-zoom")}set userZoom(t){this.setProperty("user-zoom",t)}get vectorEffect(){return this.getPropertyValue("vector-effect")}set vectorEffect(t){this.setProperty("vector-effect",t)}get verticalAlign(){return this.getPropertyValue("vertical-align")}set verticalAlign(t){this.setProperty("vertical-align",t)}get visibility(){return this.getPropertyValue("visibility")}set visibility(t){this.setProperty("visibility",t)}get whiteSpace(){return this.getPropertyValue("white-space")}set whiteSpace(t){this.setProperty("white-space",t)}get widows(){return this.getPropertyValue("widows")}set widows(t){this.setProperty("widows",t)}get width(){return this.getPropertyValue("width")}set width(t){this.setProperty("width",t)}get willChange(){return this.getPropertyValue("will-change")}set willChange(t){this.setProperty("will-change",t)}get wordBreak(){return this.getPropertyValue("word-break")}set wordBreak(t){this.setProperty("word-break",t)}get wordSpacing(){return this.getPropertyValue("word-spacing")}set wordSpacing(t){this.setProperty("word-spacing",t)}get wordWrap(){return this.getPropertyValue("word-wrap")}set wordWrap(t){this.setProperty("word-wrap",t)}get writingMode(){return this.getPropertyValue("writing-mode")}set writingMode(t){this.setProperty("writing-mode",t)}get x(){return this.getPropertyValue("x")}set x(t){this.setProperty("x",t)}get y(){return this.getPropertyValue("y")}set y(t){this.setProperty("y",t)}get zIndex(){return this.getPropertyValue("z-index")}set zIndex(t){this.setProperty("z-index",t)}get zoom(){return this.getPropertyValue("zoom")}set zoom(t){this.setProperty("zoom",t)}get containerType(){return this.getPropertyValue("container-type")}set containerType(t){this.setProperty("container-type",t)}get containerName(){return this.getPropertyValue("container-name")}set containerName(t){this.setProperty("container-name",t)}get aspectRatio(){return this.getPropertyValue("aspect-ratio")}set aspectRatio(t){this.setProperty("aspect-ratio",t)}get length(){return this.#o().size()}get cssText(){if(this.#t&&this.#e)return"";return this.#o().toString()}set cssText(t){if(this.#e)throw new this[m].DOMException("Failed to execute 'cssText' on 'CSSStyleDeclaration': These styles are computed, and the properties are therefore read-only.",w.domException);if(this.#t)this.#r.propertyManager=new ps({cssText:t}),this.#r.attributeValue=t,this.#t.setAttribute("style",this.#r.propertyManager.toString());else this.#r.propertyManager=new ps({cssText:t})}item(t){return this.#o().item(t)}setProperty(t,e,o){if(this.#e)throw new this[m].DOMException(`Failed to execute 'setProperty' on 'CSSStyleDeclaration': These styles are computed, and therefore the '${t}' property is read-only.`,w.domException);if(o!==""&&o!==void 0&&o!=="important")return;let s=String(e).trim(),n=this.#o();if(s)n.set(t,s,!!o);else n.remove(t);if(this.#t)if(this.#r.attributeValue=n.toString(),this.#r.attributeValue)this.#t.setAttribute("style",this.#r.attributeValue);else this.#t.removeAttribute("style")}removeProperty(t){if(this.#e)throw new this[m].DOMException(`Failed to execute 'removeProperty' on 'CSSStyleDeclaration': These styles are computed, and therefore the '${t}' property is read-only.`,w.domException);let e=this.#o();if(e.remove(t),this.#t)if(this.#r.attributeValue=e.toString(),this.#r.attributeValue)this.#t.setAttribute("style",this.#r.attributeValue);else this.#t.removeAttribute("style")}getPropertyValue(t){return this.#o().get(t)?.value||""}getPropertyPriority(t){return this.#o().get(t)?.important?"important":""}#o(){let t=this.#t,e=this.#r;if(!t){if(!e.propertyManager)e.propertyManager=new ps;return e.propertyManager}if(this.#e)return new sc(t).getComputedStyle();let o=t.getAttribute("style")||"";if(e.attributeValue!==o)e.propertyManager=new ps({cssText:o});return e.propertyManager}}class Ci extends Ti{[So]="";get conditionText(){return this[So]}}class Yl extends Ci{[Qt]=ht.containerRule;[Fr]="";get type(){return ht.containerRule}get cssText(){let t="";for(let e of this[We])t+=`
19
+ `,`@${this[Fr]}scope${this[O]?` (${this[O]})`:""}${this[Y]?` to (${this[Y]})`:""} {${t}}`}get start(){return this[O]}get end(){return this[Y]}}var sP=/[0-9.]+(px|rem|em|vw|vh|%|vmin|vmax|cm|mm|in|pt|pc|Q)/g,Qg=/:host\s*\(([^)]+)\)|:host-context\s*\(([^)]+)\)/,nP=/var\( *(--[^), ]+)\)/,lP=/var\( *(--[^), ]+), *([^), ]+)\)/;class sc{element;constructor(t){this.element=t}getComputedStyle(){let t=[],e=[],o={element:this.element,cssTexts:[]},s=[],n=[];if(!this.element[tt])return new ms;let l=this.element[U].computedStyle;if(l?.result){let f=l.result.deref();if(f)return f}while(o.element){if(o.element[D]===T.elementNode){if(o.element.getRootNode()[D]===T.documentNode)t.unshift(o);else s.unshift(o);if(o.element.shadowRoot)n.push(o);e.unshift(o)}if(o.element===this.element[x]){let f=this.getStyleSheets(this.element[x]);for(let E of f)this.parseCSSRules({elements:t,cssRules:E.cssRules});for(let E of n){let R=this.getStyleSheets(E.element.shadowRoot);for(let H of R)this.parseCSSRules({elements:[],cssRules:H.cssRules,hostElement:E})}o={element:null,cssTexts:[]}}else if(o.element[D]===T.documentFragmentNode&&o.element.host){let f=o.element,E=this.getStyleSheets(f);o={element:f.host,cssTexts:[]};for(let R of E)this.parseCSSRules({elements:s,cssRules:R.cssRules,hostElement:o});for(let R of n){let H=this.getStyleSheets(R.element.shadowRoot);for(let yt of H)this.parseCSSRules({elements:[],cssRules:yt.cssRules,hostElement:R})}n=[],s=[]}else o={element:o.element[W],cssTexts:[]}}let a=e[e.length-1],y=new ms,u={},c=16,d=16;for(let f of e){f.cssTexts.sort((Rt,lt)=>Rt.priorityWeight-lt.priorityWeight);let E=Wg[f.element[z]],R="";if(E){if(typeof E==="string")R+=E;else for(let Rt of Object.keys(E))if(Rt==="default"||!!f.element[Rt])R+=E[Rt]}for(let Rt of f.cssTexts)R+=Rt.cssText;let H=f.element.getAttribute("style");if(H)R+=H;let yt=Ua.parse(R),bt=yt.rules;Object.assign(u,yt.properties);for(let{name:Rt,value:lt,important:ct}of bt)if(_g[Rt]||f===a){let ee=this.parseCSSVariablesInValue(lt.trim(),u);if(ee&&(!y.get(Rt)?.important||ct)){if(y.set(Rt,ee,ct),Rt==="font"||Rt==="font-size"){let Ct=y.properties["font-size"];if(Ct!==null){let or=this.parseMeasurementsInValue({value:Ct.value,rootFontSize:c,parentFontSize:d,parentSize:d});if(f.element[z]==="HTML")c=or;else if(f!==a)d=or}}}}}for(let f of Yg){let E=y.properties[f];if(E)E.value=this.parseMeasurementsInValue({value:E.value,rootFontSize:c,parentFontSize:d,parentSize:f==="font-size"?d:null})}let g={result:new WeakRef(y)};return this.element[U].computedStyle=g,this.element[x][qo].push(g),y}getStyleSheets(t){if(!t)return[];let e=t.querySelectorAll('style,link[rel="stylesheet"]'),o=[];for(let s of e){let n=s.sheet;if(n)o.push(n)}if(t.adoptedStyleSheets)o=o.concat(t.adoptedStyleSheets);return o}parseCSSRules(t){if(!t.hostElement&&!t.elements.length)return;let e=this.element[m];for(let o of t.cssRules)if(o.type===ut.styleRule){let s=o.selectorText;if(s)if(s[0]===":"&&s.startsWith(":host")){if(t.hostElement){let n=!0;if(s!==":host"){let l=s.match(Qg);if(l)if(mt.matches(t.hostElement.element,l[1]||l[2],{ignoreErrors:!0,scope:t.scopeElement?.element})){let y=s?.replace(Qg,"").trim();if(y&&y[0]!==":"){n=!1;for(let u of t.elements){let c=mt.matches(u.element,y,{ignoreErrors:!0,scope:t.scopeElement?.element});if(c)u.cssTexts.push({cssText:o[Sr],priorityWeight:10+c.priorityWeight})}}}else n=!1}if(n)t.hostElement.cssTexts.push({cssText:o[Sr],priorityWeight:10})}}else for(let n of t.elements){let l=mt.matches(n.element,s,{ignoreErrors:!0,scope:t.scopeElement?.element});if(l)n.cssTexts.push({cssText:o[Sr],priorityWeight:l.priorityWeight})}}else if(o.type===ut.mediaRule&&new Wa({window:e,media:o.conditionText,rootFontSize:this.element[z]==="HTML"?16:null}).matches)this.parseCSSRules({elements:t.elements,cssRules:o.cssRules,hostElement:t.hostElement,scopeElement:t.scopeElement});else if(o.type===ut.supportsRule){if(e.CSS.supports(o.conditionText))this.parseCSSRules({elements:t.elements,cssRules:o.cssRules,hostElement:t.hostElement,scopeElement:t.scopeElement})}else if(o.type===ut.containerRule){if(o instanceof zs){let s=[],n=null;for(let l of t.elements)if(n){if(o[Y]){if(mt.matches(l.element,o[Y],{ignoreErrors:!0,scope:n.element}))break}s.push(l)}else if(mt.matches(l.element,o[O]||":root",{ignoreErrors:!0}))n=l,s.push(l);if(s.length)this.parseCSSRules({elements:s,cssRules:o.cssRules,hostElement:t.hostElement,scopeElement:n})}}}parseCSSVariablesInValue(t,e){let o=t,s;while((s=o.match(nP))!=null)o=o.replace(s[0],e[s[1]]||"");while((s=o.match(lP))!==null)o=o.replace(s[0],e[s[1]]||s[2]);return o}parseMeasurementsInValue(t){if(new it(this.element[m]).getSettings()?.disableComputedStyleRendering)return t.value;let e=new RegExp(sP),o=t.value,s;while((s=e.exec(t.value))!==null)if(s[1]!=="px"){let n=Wl.toPixels({window:this.element[m],value:s[0],rootFontSize:t.rootFontSize,parentFontSize:t.parentFontSize,parentSize:t.parentSize});if(n!==null)o=o.replace(s[0],n+"px")}return o}}class Yr{parentRule=null;[m];#t;#e;#r={attributeValue:null,propertyManager:null};constructor(t,e,o){if(t!==h)throw TypeError("Illegal constructor");this[m]=e,this.#t=o?.element||null,this.#e=o?.element?!!o?.computed:!1}get 0(){return this.item(0)||void 0}get 1(){return this.item(1)||void 0}get 2(){return this.item(2)||void 0}get 3(){return this.item(3)||void 0}get 4(){return this.item(4)||void 0}get 5(){return this.item(5)||void 0}get 6(){return this.item(6)||void 0}get 7(){return this.item(7)||void 0}get 8(){return this.item(8)||void 0}get 9(){return this.item(9)||void 0}get 10(){return this.item(10)||void 0}get 11(){return this.item(11)||void 0}get 12(){return this.item(12)||void 0}get 13(){return this.item(13)||void 0}get 14(){return this.item(14)||void 0}get 15(){return this.item(15)||void 0}get 16(){return this.item(16)||void 0}get 17(){return this.item(17)||void 0}get 18(){return this.item(18)||void 0}get 19(){return this.item(19)||void 0}get 20(){return this.item(20)||void 0}get 21(){return this.item(21)||void 0}get 22(){return this.item(22)||void 0}get 23(){return this.item(23)||void 0}get 24(){return this.item(24)||void 0}get 25(){return this.item(25)||void 0}get 26(){return this.item(26)||void 0}get 27(){return this.item(27)||void 0}get 28(){return this.item(28)||void 0}get 29(){return this.item(29)||void 0}get 30(){return this.item(30)||void 0}get 31(){return this.item(31)||void 0}get 32(){return this.item(32)||void 0}get 33(){return this.item(33)||void 0}get 34(){return this.item(34)||void 0}get 35(){return this.item(35)||void 0}get 36(){return this.item(36)||void 0}get 37(){return this.item(37)||void 0}get 38(){return this.item(38)||void 0}get 39(){return this.item(39)||void 0}get 40(){return this.item(40)||void 0}get 41(){return this.item(41)||void 0}get 42(){return this.item(42)||void 0}get 43(){return this.item(43)||void 0}get 44(){return this.item(44)||void 0}get 45(){return this.item(45)||void 0}get 46(){return this.item(46)||void 0}get 47(){return this.item(47)||void 0}get 48(){return this.item(48)||void 0}get 49(){return this.item(49)||void 0}get 50(){return this.item(50)||void 0}get 51(){return this.item(51)||void 0}get 52(){return this.item(52)||void 0}get 53(){return this.item(53)||void 0}get 54(){return this.item(54)||void 0}get 55(){return this.item(55)||void 0}get 56(){return this.item(56)||void 0}get 57(){return this.item(57)||void 0}get 58(){return this.item(58)||void 0}get 59(){return this.item(59)||void 0}get 60(){return this.item(60)||void 0}get 61(){return this.item(61)||void 0}get 62(){return this.item(62)||void 0}get 63(){return this.item(63)||void 0}get 64(){return this.item(64)||void 0}get 65(){return this.item(65)||void 0}get 66(){return this.item(66)||void 0}get 67(){return this.item(67)||void 0}get 68(){return this.item(68)||void 0}get 69(){return this.item(69)||void 0}get 70(){return this.item(70)||void 0}get 71(){return this.item(71)||void 0}get 72(){return this.item(72)||void 0}get 73(){return this.item(73)||void 0}get 74(){return this.item(74)||void 0}get 75(){return this.item(75)||void 0}get 76(){return this.item(76)||void 0}get 77(){return this.item(77)||void 0}get 78(){return this.item(78)||void 0}get 79(){return this.item(79)||void 0}get 80(){return this.item(80)||void 0}get 81(){return this.item(81)||void 0}get 82(){return this.item(82)||void 0}get 83(){return this.item(83)||void 0}get 84(){return this.item(84)||void 0}get 85(){return this.item(85)||void 0}get 86(){return this.item(86)||void 0}get 87(){return this.item(87)||void 0}get 88(){return this.item(88)||void 0}get 89(){return this.item(89)||void 0}get 90(){return this.item(90)||void 0}get 91(){return this.item(91)||void 0}get 92(){return this.item(92)||void 0}get 93(){return this.item(93)||void 0}get 94(){return this.item(94)||void 0}get 95(){return this.item(95)||void 0}get 96(){return this.item(96)||void 0}get 97(){return this.item(97)||void 0}get 98(){return this.item(98)||void 0}get 99(){return this.item(99)||void 0}get 100(){return this.item(100)||void 0}get 101(){return this.item(101)||void 0}get 102(){return this.item(102)||void 0}get 103(){return this.item(103)||void 0}get 104(){return this.item(104)||void 0}get 105(){return this.item(105)||void 0}get 106(){return this.item(106)||void 0}get 107(){return this.item(107)||void 0}get 108(){return this.item(108)||void 0}get 109(){return this.item(109)||void 0}get 110(){return this.item(110)||void 0}get 111(){return this.item(111)||void 0}get 112(){return this.item(112)||void 0}get 113(){return this.item(113)||void 0}get 114(){return this.item(114)||void 0}get 115(){return this.item(115)||void 0}get 116(){return this.item(116)||void 0}get 117(){return this.item(117)||void 0}get 118(){return this.item(118)||void 0}get 119(){return this.item(119)||void 0}get 120(){return this.item(120)||void 0}get 121(){return this.item(121)||void 0}get 122(){return this.item(122)||void 0}get 123(){return this.item(123)||void 0}get 124(){return this.item(124)||void 0}get 125(){return this.item(125)||void 0}get 126(){return this.item(126)||void 0}get 127(){return this.item(127)||void 0}get 128(){return this.item(128)||void 0}get 129(){return this.item(129)||void 0}get 130(){return this.item(130)||void 0}get 131(){return this.item(131)||void 0}get 132(){return this.item(132)||void 0}get 133(){return this.item(133)||void 0}get 134(){return this.item(134)||void 0}get 135(){return this.item(135)||void 0}get 136(){return this.item(136)||void 0}get 137(){return this.item(137)||void 0}get 138(){return this.item(138)||void 0}get 139(){return this.item(139)||void 0}get 140(){return this.item(140)||void 0}get 141(){return this.item(141)||void 0}get 142(){return this.item(142)||void 0}get 143(){return this.item(143)||void 0}get 144(){return this.item(144)||void 0}get 145(){return this.item(145)||void 0}get 146(){return this.item(146)||void 0}get 147(){return this.item(147)||void 0}get 148(){return this.item(148)||void 0}get 149(){return this.item(149)||void 0}get 150(){return this.item(150)||void 0}get 151(){return this.item(151)||void 0}get 152(){return this.item(152)||void 0}get 153(){return this.item(153)||void 0}get 154(){return this.item(154)||void 0}get 155(){return this.item(155)||void 0}get 156(){return this.item(156)||void 0}get 157(){return this.item(157)||void 0}get 158(){return this.item(158)||void 0}get 159(){return this.item(159)||void 0}get 160(){return this.item(160)||void 0}get 161(){return this.item(161)||void 0}get 162(){return this.item(162)||void 0}get 163(){return this.item(163)||void 0}get 164(){return this.item(164)||void 0}get 165(){return this.item(165)||void 0}get 166(){return this.item(166)||void 0}get 167(){return this.item(167)||void 0}get 168(){return this.item(168)||void 0}get 169(){return this.item(169)||void 0}get 170(){return this.item(170)||void 0}get 171(){return this.item(171)||void 0}get 172(){return this.item(172)||void 0}get 173(){return this.item(173)||void 0}get 174(){return this.item(174)||void 0}get 175(){return this.item(175)||void 0}get 176(){return this.item(176)||void 0}get 177(){return this.item(177)||void 0}get 178(){return this.item(178)||void 0}get 179(){return this.item(179)||void 0}get 180(){return this.item(180)||void 0}get 181(){return this.item(181)||void 0}get 182(){return this.item(182)||void 0}get 183(){return this.item(183)||void 0}get 184(){return this.item(184)||void 0}get 185(){return this.item(185)||void 0}get 186(){return this.item(186)||void 0}get 187(){return this.item(187)||void 0}get 188(){return this.item(188)||void 0}get 189(){return this.item(189)||void 0}get 190(){return this.item(190)||void 0}get 191(){return this.item(191)||void 0}get 192(){return this.item(192)||void 0}get 193(){return this.item(193)||void 0}get 194(){return this.item(194)||void 0}get 195(){return this.item(195)||void 0}get 196(){return this.item(196)||void 0}get 197(){return this.item(197)||void 0}get 198(){return this.item(198)||void 0}get 199(){return this.item(199)||void 0}get 200(){return this.item(200)||void 0}get 201(){return this.item(201)||void 0}get 202(){return this.item(202)||void 0}get 203(){return this.item(203)||void 0}get 204(){return this.item(204)||void 0}get 205(){return this.item(205)||void 0}get 206(){return this.item(206)||void 0}get 207(){return this.item(207)||void 0}get 208(){return this.item(208)||void 0}get 209(){return this.item(209)||void 0}get 210(){return this.item(210)||void 0}get 211(){return this.item(211)||void 0}get 212(){return this.item(212)||void 0}get 213(){return this.item(213)||void 0}get 214(){return this.item(214)||void 0}get 215(){return this.item(215)||void 0}get 216(){return this.item(216)||void 0}get 217(){return this.item(217)||void 0}get 218(){return this.item(218)||void 0}get 219(){return this.item(219)||void 0}get 220(){return this.item(220)||void 0}get 221(){return this.item(221)||void 0}get 222(){return this.item(222)||void 0}get 223(){return this.item(223)||void 0}get 224(){return this.item(224)||void 0}get 225(){return this.item(225)||void 0}get 226(){return this.item(226)||void 0}get 227(){return this.item(227)||void 0}get 228(){return this.item(228)||void 0}get 229(){return this.item(229)||void 0}get 230(){return this.item(230)||void 0}get 231(){return this.item(231)||void 0}get 232(){return this.item(232)||void 0}get 233(){return this.item(233)||void 0}get 234(){return this.item(234)||void 0}get 235(){return this.item(235)||void 0}get 236(){return this.item(236)||void 0}get 237(){return this.item(237)||void 0}get 238(){return this.item(238)||void 0}get 239(){return this.item(239)||void 0}get 240(){return this.item(240)||void 0}get 241(){return this.item(241)||void 0}get 242(){return this.item(242)||void 0}get 243(){return this.item(243)||void 0}get 244(){return this.item(244)||void 0}get 245(){return this.item(245)||void 0}get 246(){return this.item(246)||void 0}get 247(){return this.item(247)||void 0}get 248(){return this.item(248)||void 0}get 249(){return this.item(249)||void 0}get 250(){return this.item(250)||void 0}get 251(){return this.item(251)||void 0}get 252(){return this.item(252)||void 0}get 253(){return this.item(253)||void 0}get 254(){return this.item(254)||void 0}get 255(){return this.item(255)||void 0}get 256(){return this.item(256)||void 0}get 257(){return this.item(257)||void 0}get 258(){return this.item(258)||void 0}get 259(){return this.item(259)||void 0}get 260(){return this.item(260)||void 0}get 261(){return this.item(261)||void 0}get 262(){return this.item(262)||void 0}get 263(){return this.item(263)||void 0}get 264(){return this.item(264)||void 0}get 265(){return this.item(265)||void 0}get 266(){return this.item(266)||void 0}get 267(){return this.item(267)||void 0}get 268(){return this.item(268)||void 0}get 269(){return this.item(269)||void 0}get 270(){return this.item(270)||void 0}get 271(){return this.item(271)||void 0}get 272(){return this.item(272)||void 0}get 273(){return this.item(273)||void 0}get 274(){return this.item(274)||void 0}get 275(){return this.item(275)||void 0}get 276(){return this.item(276)||void 0}get 277(){return this.item(277)||void 0}get 278(){return this.item(278)||void 0}get 279(){return this.item(279)||void 0}get 280(){return this.item(280)||void 0}get 281(){return this.item(281)||void 0}get 282(){return this.item(282)||void 0}get 283(){return this.item(283)||void 0}get 284(){return this.item(284)||void 0}get 285(){return this.item(285)||void 0}get 286(){return this.item(286)||void 0}get 287(){return this.item(287)||void 0}get 288(){return this.item(288)||void 0}get 289(){return this.item(289)||void 0}get 290(){return this.item(290)||void 0}get 291(){return this.item(291)||void 0}get 292(){return this.item(292)||void 0}get 293(){return this.item(293)||void 0}get 294(){return this.item(294)||void 0}get 295(){return this.item(295)||void 0}get 296(){return this.item(296)||void 0}get 297(){return this.item(297)||void 0}get 298(){return this.item(298)||void 0}get 299(){return this.item(299)||void 0}get 300(){return this.item(300)||void 0}get 301(){return this.item(301)||void 0}get 302(){return this.item(302)||void 0}get 303(){return this.item(303)||void 0}get 304(){return this.item(304)||void 0}get 305(){return this.item(305)||void 0}get 306(){return this.item(306)||void 0}get 307(){return this.item(307)||void 0}get 308(){return this.item(308)||void 0}get 309(){return this.item(309)||void 0}get 310(){return this.item(310)||void 0}get 311(){return this.item(311)||void 0}get 312(){return this.item(312)||void 0}get 313(){return this.item(313)||void 0}get 314(){return this.item(314)||void 0}get 315(){return this.item(315)||void 0}get 316(){return this.item(316)||void 0}get 317(){return this.item(317)||void 0}get 318(){return this.item(318)||void 0}get 319(){return this.item(319)||void 0}get 320(){return this.item(320)||void 0}get 321(){return this.item(321)||void 0}get 322(){return this.item(322)||void 0}get 323(){return this.item(323)||void 0}get 324(){return this.item(324)||void 0}get 325(){return this.item(325)||void 0}get 326(){return this.item(326)||void 0}get 327(){return this.item(327)||void 0}get 328(){return this.item(328)||void 0}get 329(){return this.item(329)||void 0}get 330(){return this.item(330)||void 0}get 331(){return this.item(331)||void 0}get 332(){return this.item(332)||void 0}get 333(){return this.item(333)||void 0}get 334(){return this.item(334)||void 0}get 335(){return this.item(335)||void 0}get 336(){return this.item(336)||void 0}get 337(){return this.item(337)||void 0}get 338(){return this.item(338)||void 0}get 339(){return this.item(339)||void 0}get 340(){return this.item(340)||void 0}get 341(){return this.item(341)||void 0}get 342(){return this.item(342)||void 0}get 343(){return this.item(343)||void 0}get 344(){return this.item(344)||void 0}get 345(){return this.item(345)||void 0}get 346(){return this.item(346)||void 0}get 347(){return this.item(347)||void 0}get 348(){return this.item(348)||void 0}get 349(){return this.item(349)||void 0}get 350(){return this.item(350)||void 0}get 351(){return this.item(351)||void 0}get 352(){return this.item(352)||void 0}get 353(){return this.item(353)||void 0}get 354(){return this.item(354)||void 0}get 355(){return this.item(355)||void 0}get 356(){return this.item(356)||void 0}get 357(){return this.item(357)||void 0}get 358(){return this.item(358)||void 0}get 359(){return this.item(359)||void 0}get 360(){return this.item(360)||void 0}get 361(){return this.item(361)||void 0}get 362(){return this.item(362)||void 0}get 363(){return this.item(363)||void 0}get 364(){return this.item(364)||void 0}get 365(){return this.item(365)||void 0}get 366(){return this.item(366)||void 0}get 367(){return this.item(367)||void 0}get 368(){return this.item(368)||void 0}get 369(){return this.item(369)||void 0}get 370(){return this.item(370)||void 0}get 371(){return this.item(371)||void 0}get 372(){return this.item(372)||void 0}get 373(){return this.item(373)||void 0}get 374(){return this.item(374)||void 0}get 375(){return this.item(375)||void 0}get 376(){return this.item(376)||void 0}get 377(){return this.item(377)||void 0}get 378(){return this.item(378)||void 0}get 379(){return this.item(379)||void 0}get 380(){return this.item(380)||void 0}get 381(){return this.item(381)||void 0}get 382(){return this.item(382)||void 0}get 383(){return this.item(383)||void 0}get 384(){return this.item(384)||void 0}get 385(){return this.item(385)||void 0}get 386(){return this.item(386)||void 0}get 387(){return this.item(387)||void 0}get 388(){return this.item(388)||void 0}get 389(){return this.item(389)||void 0}get 390(){return this.item(390)||void 0}get 391(){return this.item(391)||void 0}get 392(){return this.item(392)||void 0}get 393(){return this.item(393)||void 0}get accentColor(){return this.getPropertyValue("accent-color")}set accentColor(t){this.setProperty("accent-color",t)}get appRegion(){return this.getPropertyValue("app-region")}set appRegion(t){this.setProperty("app-region",t)}get alignContent(){return this.getPropertyValue("align-content")}set alignContent(t){this.setProperty("align-content",t)}get alignItems(){return this.getPropertyValue("align-items")}set alignItems(t){this.setProperty("align-items",t)}get alignSelf(){return this.getPropertyValue("align-self")}set alignSelf(t){this.setProperty("align-self",t)}get alignmentBaseline(){return this.getPropertyValue("alignment-baseline")}set alignmentBaseline(t){this.setProperty("alignment-baseline",t)}get all(){return this.getPropertyValue("all")}set all(t){this.setProperty("all",t)}get animation(){return this.getPropertyValue("animation")}set animation(t){this.setProperty("animation",t)}get animationDelay(){return this.getPropertyValue("animation-delay")}set animationDelay(t){this.setProperty("animation-delay",t)}get animationDirection(){return this.getPropertyValue("animation-direction")}set animationDirection(t){this.setProperty("animation-direction",t)}get animationDuration(){return this.getPropertyValue("animation-duration")}set animationDuration(t){this.setProperty("animation-duration",t)}get animationFillMode(){return this.getPropertyValue("animation-fill-mode")}set animationFillMode(t){this.setProperty("animation-fill-mode",t)}get animationIterationCount(){return this.getPropertyValue("animation-iteration-count")}set animationIterationCount(t){this.setProperty("animation-iteration-count",t)}get animationName(){return this.getPropertyValue("animation-name")}set animationName(t){this.setProperty("animation-name",t)}get animationPlayState(){return this.getPropertyValue("animation-play-state")}set animationPlayState(t){this.setProperty("animation-play-state",t)}get animationTimingFunction(){return this.getPropertyValue("animation-timing-function")}set animationTimingFunction(t){this.setProperty("animation-timing-function",t)}get appearance(){return this.getPropertyValue("appearance")}set appearance(t){this.setProperty("appearance",t)}get backdropFilter(){return this.getPropertyValue("backdrop-filter")}set backdropFilter(t){this.setProperty("backdrop-filter",t)}get backfaceVisibility(){return this.getPropertyValue("backface-visibility")}set backfaceVisibility(t){this.setProperty("backface-visibility",t)}get background(){return this.getPropertyValue("background")}set background(t){this.setProperty("background",t)}get backgroundAttachment(){return this.getPropertyValue("background-attachment")}set backgroundAttachment(t){this.setProperty("background-attachment",t)}get backgroundBlendMode(){return this.getPropertyValue("background-blend-mode")}set backgroundBlendMode(t){this.setProperty("background-blend-mode",t)}get backgroundClip(){return this.getPropertyValue("background-clip")}set backgroundClip(t){this.setProperty("background-clip",t)}get backgroundColor(){return this.getPropertyValue("background-color")}set backgroundColor(t){this.setProperty("background-color",t)}get backgroundImage(){return this.getPropertyValue("background-image")}set backgroundImage(t){this.setProperty("background-image",t)}get backgroundOrigin(){return this.getPropertyValue("background-origin")}set backgroundOrigin(t){this.setProperty("background-origin",t)}get backgroundPosition(){return this.getPropertyValue("background-position")}set backgroundPosition(t){this.setProperty("background-position",t)}get backgroundPositionX(){return this.getPropertyValue("background-position-x")}set backgroundPositionX(t){this.setProperty("background-position-x",t)}get backgroundPositionY(){return this.getPropertyValue("background-position-y")}set backgroundPositionY(t){this.setProperty("background-position-y",t)}get backgroundRepeat(){return this.getPropertyValue("background-repeat")}set backgroundRepeat(t){this.setProperty("background-repeat",t)}get backgroundRepeatX(){return this.getPropertyValue("background-repeat-x")}set backgroundRepeatX(t){this.setProperty("background-repeat-x",t)}get backgroundRepeatY(){return this.getPropertyValue("background-repeat-y")}set backgroundRepeatY(t){this.setProperty("background-repeat-y",t)}get backgroundSize(){return this.getPropertyValue("background-size")}set backgroundSize(t){this.setProperty("background-size",t)}get baselineShift(){return this.getPropertyValue("baseline-shift")}set baselineShift(t){this.setProperty("baseline-shift",t)}get blockSize(){return this.getPropertyValue("block-size")}set blockSize(t){this.setProperty("block-size",t)}get border(){return this.getPropertyValue("border")}set border(t){this.setProperty("border",t)}get borderBlockEnd(){return this.getPropertyValue("border-block-end")}set borderBlockEnd(t){this.setProperty("border-block-end",t)}get borderBlockEndColor(){return this.getPropertyValue("border-block-end-color")}set borderBlockEndColor(t){this.setProperty("border-block-end-color",t)}get borderBlockEndStyle(){return this.getPropertyValue("border-block-end-style")}set borderBlockEndStyle(t){this.setProperty("border-block-end-style",t)}get borderBlockEndWidth(){return this.getPropertyValue("border-block-end-width")}set borderBlockEndWidth(t){this.setProperty("border-block-end-width",t)}get borderBlockStart(){return this.getPropertyValue("border-block-start")}set borderBlockStart(t){this.setProperty("border-block-start",t)}get borderBlockStartColor(){return this.getPropertyValue("border-block-start-color")}set borderBlockStartColor(t){this.setProperty("border-block-start-color",t)}get borderBlockStartStyle(){return this.getPropertyValue("border-block-start-style")}set borderBlockStartStyle(t){this.setProperty("border-block-start-style",t)}get borderBlockStartWidth(){return this.getPropertyValue("border-block-start-width")}set borderBlockStartWidth(t){this.setProperty("border-block-start-width",t)}get borderBottom(){return this.getPropertyValue("border-bottom")}set borderBottom(t){this.setProperty("border-bottom",t)}get borderBottomColor(){return this.getPropertyValue("border-bottom-color")}set borderBottomColor(t){this.setProperty("border-bottom-color",t)}get borderBottomLeftRadius(){return this.getPropertyValue("border-bottom-left-radius")}set borderBottomLeftRadius(t){this.setProperty("border-bottom-left-radius",t)}get borderBottomRightRadius(){return this.getPropertyValue("border-bottom-right-radius")}set borderBottomRightRadius(t){this.setProperty("border-bottom-right-radius",t)}get borderBottomStyle(){return this.getPropertyValue("border-bottom-style")}set borderBottomStyle(t){this.setProperty("border-bottom-style",t)}get borderBottomWidth(){return this.getPropertyValue("border-bottom-width")}set borderBottomWidth(t){this.setProperty("border-bottom-width",t)}get borderCollapse(){return this.getPropertyValue("border-collapse")}set borderCollapse(t){this.setProperty("border-collapse",t)}get borderColor(){return this.getPropertyValue("border-color")}set borderColor(t){this.setProperty("border-color",t)}get borderImage(){return this.getPropertyValue("border-image")}set borderImage(t){this.setProperty("border-image",t)}get borderImageOutset(){return this.getPropertyValue("border-image-outset")}set borderImageOutset(t){this.setProperty("border-image-outset",t)}get borderImageRepeat(){return this.getPropertyValue("border-image-repeat")}set borderImageRepeat(t){this.setProperty("border-image-repeat",t)}get borderImageSlice(){return this.getPropertyValue("border-image-slice")}set borderImageSlice(t){this.setProperty("border-image-slice",t)}get borderImageSource(){return this.getPropertyValue("border-image-source")}set borderImageSource(t){this.setProperty("border-image-source",t)}get borderImageWidth(){return this.getPropertyValue("border-image-width")}set borderImageWidth(t){this.setProperty("border-image-width",t)}get borderInlineEnd(){return this.getPropertyValue("border-inline-end")}set borderInlineEnd(t){this.setProperty("border-inline-end",t)}get borderInlineEndColor(){return this.getPropertyValue("border-inline-end-color")}set borderInlineEndColor(t){this.setProperty("border-inline-end-color",t)}get borderInlineEndStyle(){return this.getPropertyValue("border-inline-end-style")}set borderInlineEndStyle(t){this.setProperty("border-inline-end-style",t)}get borderInlineEndWidth(){return this.getPropertyValue("border-inline-end-width")}set borderInlineEndWidth(t){this.setProperty("border-inline-end-width",t)}get borderInlineStart(){return this.getPropertyValue("border-inline-start")}set borderInlineStart(t){this.setProperty("border-inline-start",t)}get borderInlineStartColor(){return this.getPropertyValue("border-inline-start-color")}set borderInlineStartColor(t){this.setProperty("border-inline-start-color",t)}get borderInlineStartStyle(){return this.getPropertyValue("border-inline-start-style")}set borderInlineStartStyle(t){this.setProperty("border-inline-start-style",t)}get borderInlineStartWidth(){return this.getPropertyValue("border-inline-start-width")}set borderInlineStartWidth(t){this.setProperty("border-inline-start-width",t)}get borderLeft(){return this.getPropertyValue("border-left")}set borderLeft(t){this.setProperty("border-left",t)}get borderLeftColor(){return this.getPropertyValue("border-left-color")}set borderLeftColor(t){this.setProperty("border-left-color",t)}get borderLeftStyle(){return this.getPropertyValue("border-left-style")}set borderLeftStyle(t){this.setProperty("border-left-style",t)}get borderLeftWidth(){return this.getPropertyValue("border-left-width")}set borderLeftWidth(t){this.setProperty("border-left-width",t)}get borderRadius(){return this.getPropertyValue("border-radius")}set borderRadius(t){this.setProperty("border-radius",t)}get borderRight(){return this.getPropertyValue("border-right")}set borderRight(t){this.setProperty("border-right",t)}get borderRightColor(){return this.getPropertyValue("border-right-color")}set borderRightColor(t){this.setProperty("border-right-color",t)}get borderRightStyle(){return this.getPropertyValue("border-right-style")}set borderRightStyle(t){this.setProperty("border-right-style",t)}get borderRightWidth(){return this.getPropertyValue("border-right-width")}set borderRightWidth(t){this.setProperty("border-right-width",t)}get borderSpacing(){return this.getPropertyValue("border-spacing")}set borderSpacing(t){this.setProperty("border-spacing",t)}get borderStyle(){return this.getPropertyValue("border-style")}set borderStyle(t){this.setProperty("border-style",t)}get borderTop(){return this.getPropertyValue("border-top")}set borderTop(t){this.setProperty("border-top",t)}get borderTopColor(){return this.getPropertyValue("border-top-color")}set borderTopColor(t){this.setProperty("border-top-color",t)}get borderTopLeftRadius(){return this.getPropertyValue("border-top-left-radius")}set borderTopLeftRadius(t){this.setProperty("border-top-left-radius",t)}get borderTopRightRadius(){return this.getPropertyValue("border-top-right-radius")}set borderTopRightRadius(t){this.setProperty("border-top-right-radius",t)}get borderTopStyle(){return this.getPropertyValue("border-top-style")}set borderTopStyle(t){this.setProperty("border-top-style",t)}get borderTopWidth(){return this.getPropertyValue("border-top-width")}set borderTopWidth(t){this.setProperty("border-top-width",t)}get borderWidth(){return this.getPropertyValue("border-width")}set borderWidth(t){this.setProperty("border-width",t)}get borderEndEndRadius(){return this.getPropertyValue("border-end-end-radius")}set borderEndEndRadius(t){this.setProperty("border-end-end-radius",t)}get borderEndStartRadius(){return this.getPropertyValue("border-end-start-radius")}set borderEndStartRadius(t){this.setProperty("border-end-start-radius",t)}get borderStartEndRadius(){return this.getPropertyValue("border-start-end-radius")}set borderStartEndRadius(t){this.setProperty("border-start-end-radius",t)}get borderStartStartRadius(){return this.getPropertyValue("border-start-start-radius")}set borderStartStartRadius(t){this.setProperty("border-start-start-radius",t)}get bottom(){return this.getPropertyValue("bottom")}set bottom(t){this.setProperty("bottom",t)}get boxShadow(){return this.getPropertyValue("box-shadow")}set boxShadow(t){this.setProperty("box-shadow",t)}get boxSizing(){return this.getPropertyValue("box-sizing")}set boxSizing(t){this.setProperty("box-sizing",t)}get breakAfter(){return this.getPropertyValue("break-after")}set breakAfter(t){this.setProperty("break-after",t)}get breakBefore(){return this.getPropertyValue("break-before")}set breakBefore(t){this.setProperty("break-before",t)}get breakInside(){return this.getPropertyValue("break-inside")}set breakInside(t){this.setProperty("break-inside",t)}get bufferedRendering(){return this.getPropertyValue("buffered-rendering")}set bufferedRendering(t){this.setProperty("buffered-rendering",t)}get captionSide(){return this.getPropertyValue("caption-side")}set captionSide(t){this.setProperty("caption-side",t)}get caretColor(){return this.getPropertyValue("caret-color")}set caretColor(t){this.setProperty("caret-color",t)}get clear(){return this.getPropertyValue("clear")}set clear(t){this.setProperty("clear",t)}get clip(){return this.getPropertyValue("clip")}set clip(t){this.setProperty("clip",t)}get clipPath(){return this.getPropertyValue("clip-path")}set clipPath(t){this.setProperty("clip-path",t)}get clipRule(){return this.getPropertyValue("clip-rule")}set clipRule(t){this.setProperty("clip-rule",t)}get color(){return this.getPropertyValue("color")}set color(t){this.setProperty("color",t)}get colorInterpolation(){return this.getPropertyValue("color-interpolation")}set colorInterpolation(t){this.setProperty("color-interpolation",t)}get colorInterpolationFilters(){return this.getPropertyValue("color-interpolation-filters")}set colorInterpolationFilters(t){this.setProperty("color-interpolation-filters",t)}get colorRendering(){return this.getPropertyValue("color-rendering")}set colorRendering(t){this.setProperty("color-rendering",t)}get colorScheme(){return this.getPropertyValue("color-scheme")}set colorScheme(t){this.setProperty("color-scheme",t)}get columnCount(){return this.getPropertyValue("column-count")}set columnCount(t){this.setProperty("column-count",t)}get columnFill(){return this.getPropertyValue("column-fill")}set columnFill(t){this.setProperty("column-fill",t)}get columnGap(){return this.getPropertyValue("column-gap")}set columnGap(t){this.setProperty("column-gap",t)}get columnRule(){return this.getPropertyValue("column-rule")}set columnRule(t){this.setProperty("column-rule",t)}get columnRuleColor(){return this.getPropertyValue("column-rule-color")}set columnRuleColor(t){this.setProperty("column-rule-color",t)}get columnRuleStyle(){return this.getPropertyValue("column-rule-style")}set columnRuleStyle(t){this.setProperty("column-rule-style",t)}get columnRuleWidth(){return this.getPropertyValue("column-rule-width")}set columnRuleWidth(t){this.setProperty("column-rule-width",t)}get columnSpan(){return this.getPropertyValue("column-span")}set columnSpan(t){this.setProperty("column-span",t)}get columnWidth(){return this.getPropertyValue("column-width")}set columnWidth(t){this.setProperty("column-width",t)}get columns(){return this.getPropertyValue("columns")}set columns(t){this.setProperty("columns",t)}get contain(){return this.getPropertyValue("contain")}set contain(t){this.setProperty("contain",t)}get containIntrinsicSize(){return this.getPropertyValue("contain-intrinsic-size")}set containIntrinsicSize(t){this.setProperty("contain-intrinsic-size",t)}get content(){return this.getPropertyValue("content")}set content(t){this.setProperty("content",t)}get contentVisibility(){return this.getPropertyValue("content-visibility")}set contentVisibility(t){this.setProperty("content-visibility",t)}get counterIncrement(){return this.getPropertyValue("counter-increment")}set counterIncrement(t){this.setProperty("counter-increment",t)}get counterReset(){return this.getPropertyValue("counter-reset")}set counterReset(t){this.setProperty("counter-reset",t)}get counterSet(){return this.getPropertyValue("counter-set")}set counterSet(t){this.setProperty("counter-set",t)}get containIntrinsicBlockSize(){return this.getPropertyValue("contain-intrinsic-block-size")}set containIntrinsicBlockSize(t){this.setProperty("contain-intrinsic-block-size",t)}get containIntrinsicHeight(){return this.getPropertyValue("contain-intrinsic-height")}set containIntrinsicHeight(t){this.setProperty("contain-intrinsic-height",t)}get containIntrinsicInlineSize(){return this.getPropertyValue("contain-intrinsic-inline-size")}set containIntrinsicInlineSize(t){this.setProperty("contain-intrinsic-inline-size",t)}get containIntrinsicWidth(){return this.getPropertyValue("contain-intrinsic-width")}set containIntrinsicWidth(t){this.setProperty("contain-intrinsic-width",t)}get cssFloat(){return this.getPropertyValue("css-float")}set cssFloat(t){this.setProperty("css-float",t)}get cursor(){return this.getPropertyValue("cursor")}set cursor(t){this.setProperty("cursor",t)}get cx(){return this.getPropertyValue("cx")}set cx(t){this.setProperty("cx",t)}get cy(){return this.getPropertyValue("cy")}set cy(t){this.setProperty("cy",t)}get d(){return this.getPropertyValue("d")}set d(t){this.setProperty("d",t)}get direction(){return this.getPropertyValue("direction")}set direction(t){this.setProperty("direction",t)}get display(){return this.getPropertyValue("display")}set display(t){this.setProperty("display",t)}get dominantBaseline(){return this.getPropertyValue("dominant-baseline")}set dominantBaseline(t){this.setProperty("dominant-baseline",t)}get emptyCells(){return this.getPropertyValue("empty-cells")}set emptyCells(t){this.setProperty("empty-cells",t)}get fill(){return this.getPropertyValue("fill")}set fill(t){this.setProperty("fill",t)}get fillOpacity(){return this.getPropertyValue("fill-opacity")}set fillOpacity(t){this.setProperty("fill-opacity",t)}get fillRule(){return this.getPropertyValue("fill-rule")}set fillRule(t){this.setProperty("fill-rule",t)}get filter(){return this.getPropertyValue("filter")}set filter(t){this.setProperty("filter",t)}get flex(){return this.getPropertyValue("flex")}set flex(t){this.setProperty("flex",t)}get flexBasis(){return this.getPropertyValue("flex-basis")}set flexBasis(t){this.setProperty("flex-basis",t)}get flexDirection(){return this.getPropertyValue("flex-direction")}set flexDirection(t){this.setProperty("flex-direction",t)}get flexFlow(){return this.getPropertyValue("flex-flow")}set flexFlow(t){this.setProperty("flex-flow",t)}get flexGrow(){return this.getPropertyValue("flex-grow")}set flexGrow(t){this.setProperty("flex-grow",t)}get flexShrink(){return this.getPropertyValue("flex-shrink")}set flexShrink(t){this.setProperty("flex-shrink",t)}get flexWrap(){return this.getPropertyValue("flex-wrap")}set flexWrap(t){this.setProperty("flex-wrap",t)}get float(){return this.getPropertyValue("float")}set float(t){this.setProperty("float",t)}get floodColor(){return this.getPropertyValue("flood-color")}set floodColor(t){this.setProperty("flood-color",t)}get floodOpacity(){return this.getPropertyValue("flood-opacity")}set floodOpacity(t){this.setProperty("flood-opacity",t)}get font(){return this.getPropertyValue("font")}set font(t){this.setProperty("font",t)}get fontDisplay(){return this.getPropertyValue("font-display")}set fontDisplay(t){this.setProperty("font-display",t)}get fontFamily(){return this.getPropertyValue("font-family")}set fontFamily(t){this.setProperty("font-family",t)}get fontFeatureSettings(){return this.getPropertyValue("font-feature-settings")}set fontFeatureSettings(t){this.setProperty("font-feature-settings",t)}get fontKerning(){return this.getPropertyValue("font-kerning")}set fontKerning(t){this.setProperty("font-kerning",t)}get fontOpticalSizing(){return this.getPropertyValue("font-optical-sizing")}set fontOpticalSizing(t){this.setProperty("font-optical-sizing",t)}get fontSize(){return this.getPropertyValue("font-size")}set fontSize(t){this.setProperty("font-size",t)}get fontStretch(){return this.getPropertyValue("font-stretch")}set fontStretch(t){this.setProperty("font-stretch",t)}get fontStyle(){return this.getPropertyValue("font-style")}set fontStyle(t){this.setProperty("font-style",t)}get fontVariant(){return this.getPropertyValue("font-variant")}set fontVariant(t){this.setProperty("font-variant",t)}get fontVariantCaps(){return this.getPropertyValue("font-variant-caps")}set fontVariantCaps(t){this.setProperty("font-variant-caps",t)}get fontVariantEastAsian(){return this.getPropertyValue("font-variant-east-asian")}set fontVariantEastAsian(t){this.setProperty("font-variant-east-asian",t)}get fontVariantLigatures(){return this.getPropertyValue("font-variant-ligatures")}set fontVariantLigatures(t){this.setProperty("font-variant-ligatures",t)}get fontVariantNumeric(){return this.getPropertyValue("font-variant-numeric")}set fontVariantNumeric(t){this.setProperty("font-variant-numeric",t)}get fontVariationSettings(){return this.getPropertyValue("font-variation-settings")}set fontVariationSettings(t){this.setProperty("font-variation-settings",t)}get fontPalette(){return this.getPropertyValue("font-palette")}set fontPalette(t){this.setProperty("font-palette",t)}get fontSynthesisSmallCaps(){return this.getPropertyValue("font-synthesis-small-caps")}set fontSynthesisSmallCaps(t){this.setProperty("font-synthesis-small-caps",t)}get fontSynthesisStyle(){return this.getPropertyValue("font-synthesis-style")}set fontSynthesisStyle(t){this.setProperty("font-synthesis-style",t)}get fontSynthesisWeight(){return this.getPropertyValue("font-synthesis-weight")}set fontSynthesisWeight(t){this.setProperty("font-synthesis-weight",t)}get fontWeight(){return this.getPropertyValue("font-weight")}set fontWeight(t){this.setProperty("font-weight",t)}get gap(){return this.getPropertyValue("gap")}set gap(t){this.setProperty("gap",t)}get grid(){return this.getPropertyValue("grid")}set grid(t){this.setProperty("grid",t)}get gridArea(){return this.getPropertyValue("grid-area")}set gridArea(t){this.setProperty("grid-area",t)}get gridAutoColumns(){return this.getPropertyValue("grid-auto-columns")}set gridAutoColumns(t){this.setProperty("grid-auto-columns",t)}get gridAutoFlow(){return this.getPropertyValue("grid-auto-flow")}set gridAutoFlow(t){this.setProperty("grid-auto-flow",t)}get gridAutoRows(){return this.getPropertyValue("grid-auto-rows")}set gridAutoRows(t){this.setProperty("grid-auto-rows",t)}get gridColumn(){return this.getPropertyValue("grid-column")}set gridColumn(t){this.setProperty("grid-column",t)}get gridColumnEnd(){return this.getPropertyValue("grid-column-end")}set gridColumnEnd(t){this.setProperty("grid-column-end",t)}get gridColumnGap(){return this.getPropertyValue("grid-column-gap")}set gridColumnGap(t){this.setProperty("grid-column-gap",t)}get gridColumnStart(){return this.getPropertyValue("grid-column-start")}set gridColumnStart(t){this.setProperty("grid-column-start",t)}get gridGap(){return this.getPropertyValue("grid-gap")}set gridGap(t){this.setProperty("grid-gap",t)}get gridRow(){return this.getPropertyValue("grid-row")}set gridRow(t){this.setProperty("grid-row",t)}get gridRowEnd(){return this.getPropertyValue("grid-row-end")}set gridRowEnd(t){this.setProperty("grid-row-end",t)}get gridRowGap(){return this.getPropertyValue("grid-row-gap")}set gridRowGap(t){this.setProperty("grid-row-gap",t)}get gridRowStart(){return this.getPropertyValue("grid-row-start")}set gridRowStart(t){this.setProperty("grid-row-start",t)}get gridTemplate(){return this.getPropertyValue("grid-template")}set gridTemplate(t){this.setProperty("grid-template",t)}get gridTemplateAreas(){return this.getPropertyValue("grid-template-areas")}set gridTemplateAreas(t){this.setProperty("grid-template-areas",t)}get gridTemplateColumns(){return this.getPropertyValue("grid-template-columns")}set gridTemplateColumns(t){this.setProperty("grid-template-columns",t)}get gridTemplateRows(){return this.getPropertyValue("grid-template-rows")}set gridTemplateRows(t){this.setProperty("grid-template-rows",t)}get height(){return this.getPropertyValue("height")}set height(t){this.setProperty("height",t)}get hyphens(){return this.getPropertyValue("hyphens")}set hyphens(t){this.setProperty("hyphens",t)}get imageOrientation(){return this.getPropertyValue("image-orientation")}set imageOrientation(t){this.setProperty("image-orientation",t)}get imageRendering(){return this.getPropertyValue("image-rendering")}set imageRendering(t){this.setProperty("image-rendering",t)}get inherits(){return this.getPropertyValue("inherits")}set inherits(t){this.setProperty("inherits",t)}get initialValue(){return this.getPropertyValue("initial-value")}set initialValue(t){this.setProperty("initial-value",t)}get inlineSize(){return this.getPropertyValue("inline-size")}set inlineSize(t){this.setProperty("inline-size",t)}get isolation(){return this.getPropertyValue("isolation")}set isolation(t){this.setProperty("isolation",t)}get insetBlockEnd(){return this.getPropertyValue("inset-block-end")}set insetBlockEnd(t){this.setProperty("inset-block-end",t)}get insetBlockStart(){return this.getPropertyValue("inset-block-start")}set insetBlockStart(t){this.setProperty("inset-block-start",t)}get insetInlineEnd(){return this.getPropertyValue("inset-inline-end")}set insetInlineEnd(t){this.setProperty("inset-inline-end",t)}get insetInlineStart(){return this.getPropertyValue("inset-inline-start")}set insetInlineStart(t){this.setProperty("inset-inline-start",t)}get justifyContent(){return this.getPropertyValue("justify-content")}set justifyContent(t){this.setProperty("justify-content",t)}get justifyItems(){return this.getPropertyValue("justify-items")}set justifyItems(t){this.setProperty("justify-items",t)}get justifySelf(){return this.getPropertyValue("justify-self")}set justifySelf(t){this.setProperty("justify-self",t)}get left(){return this.getPropertyValue("left")}set left(t){this.setProperty("left",t)}get letterSpacing(){return this.getPropertyValue("letter-spacing")}set letterSpacing(t){this.setProperty("letter-spacing",t)}get lightingColor(){return this.getPropertyValue("lighting-color")}set lightingColor(t){this.setProperty("lighting-color",t)}get lineBreak(){return this.getPropertyValue("line-break")}set lineBreak(t){this.setProperty("line-break",t)}get lineHeight(){return this.getPropertyValue("line-height")}set lineHeight(t){this.setProperty("line-height",t)}get listStyle(){return this.getPropertyValue("list-style")}set listStyle(t){this.setProperty("list-style",t)}get listStyleImage(){return this.getPropertyValue("list-style-image")}set listStyleImage(t){this.setProperty("list-style-image",t)}get listStylePosition(){return this.getPropertyValue("list-style-position")}set listStylePosition(t){this.setProperty("list-style-position",t)}get listStyleType(){return this.getPropertyValue("list-style-type")}set listStyleType(t){this.setProperty("list-style-type",t)}get margin(){return this.getPropertyValue("margin")}set margin(t){this.setProperty("margin",t)}get marginBlockEnd(){return this.getPropertyValue("margin-block-end")}set marginBlockEnd(t){this.setProperty("margin-block-end",t)}get marginBlockStart(){return this.getPropertyValue("margin-block-start")}set marginBlockStart(t){this.setProperty("margin-block-start",t)}get marginBottom(){return this.getPropertyValue("margin-bottom")}set marginBottom(t){this.setProperty("margin-bottom",t)}get marginInlineEnd(){return this.getPropertyValue("margin-inline-end")}set marginInlineEnd(t){this.setProperty("margin-inline-end",t)}get marginInlineStart(){return this.getPropertyValue("margin-inline-start")}set marginInlineStart(t){this.setProperty("margin-inline-start",t)}get marginLeft(){return this.getPropertyValue("margin-left")}set marginLeft(t){this.setProperty("margin-left",t)}get marginRight(){return this.getPropertyValue("margin-right")}set marginRight(t){this.setProperty("margin-right",t)}get marginTop(){return this.getPropertyValue("margin-top")}set marginTop(t){this.setProperty("margin-top",t)}get marker(){return this.getPropertyValue("marker")}set marker(t){this.setProperty("marker",t)}get markerEnd(){return this.getPropertyValue("marker-end")}set markerEnd(t){this.setProperty("marker-end",t)}get markerMid(){return this.getPropertyValue("marker-mid")}set markerMid(t){this.setProperty("marker-mid",t)}get markerStart(){return this.getPropertyValue("marker-start")}set markerStart(t){this.setProperty("marker-start",t)}get mask(){return this.getPropertyValue("mask")}set mask(t){this.setProperty("mask",t)}get maskType(){return this.getPropertyValue("mask-type")}set maskType(t){this.setProperty("mask-type",t)}get maxBlockSize(){return this.getPropertyValue("max-block-size")}set maxBlockSize(t){this.setProperty("max-block-size",t)}get maxHeight(){return this.getPropertyValue("max-height")}set maxHeight(t){this.setProperty("max-height",t)}get maxInlineSize(){return this.getPropertyValue("max-inline-size")}set maxInlineSize(t){this.setProperty("max-inline-size",t)}get maxWidth(){return this.getPropertyValue("max-width")}set maxWidth(t){this.setProperty("max-width",t)}get maxZoom(){return this.getPropertyValue("max-zoom")}set maxZoom(t){this.setProperty("max-zoom",t)}get minBlockSize(){return this.getPropertyValue("min-block-size")}set minBlockSize(t){this.setProperty("min-block-size",t)}get minHeight(){return this.getPropertyValue("min-height")}set minHeight(t){this.setProperty("min-height",t)}get minInlineSize(){return this.getPropertyValue("min-inline-size")}set minInlineSize(t){this.setProperty("min-inline-size",t)}get minWidth(){return this.getPropertyValue("min-width")}set minWidth(t){this.setProperty("min-width",t)}get minZoom(){return this.getPropertyValue("min-zoom")}set minZoom(t){this.setProperty("min-zoom",t)}get mixBlendMode(){return this.getPropertyValue("mix-blend-mode")}set mixBlendMode(t){this.setProperty("mix-blend-mode",t)}get objectFit(){return this.getPropertyValue("object-fit")}set objectFit(t){this.setProperty("object-fit",t)}get objectPosition(){return this.getPropertyValue("object-position")}set objectPosition(t){this.setProperty("object-position",t)}get offset(){return this.getPropertyValue("offset")}set offset(t){this.setProperty("offset",t)}get offsetDistance(){return this.getPropertyValue("offset-distance")}set offsetDistance(t){this.setProperty("offset-distance",t)}get offsetPath(){return this.getPropertyValue("offset-path")}set offsetPath(t){this.setProperty("offset-path",t)}get offsetRotate(){return this.getPropertyValue("offset-rotate")}set offsetRotate(t){this.setProperty("offset-rotate",t)}get opacity(){return this.getPropertyValue("opacity")}set opacity(t){this.setProperty("opacity",t)}get order(){return this.getPropertyValue("order")}set order(t){this.setProperty("order",t)}get orientation(){return this.getPropertyValue("orientation")}set orientation(t){this.setProperty("orientation",t)}get orphans(){return this.getPropertyValue("orphans")}set orphans(t){this.setProperty("orphans",t)}get outline(){return this.getPropertyValue("outline")}set outline(t){this.setProperty("outline",t)}get outlineColor(){return this.getPropertyValue("outline-color")}set outlineColor(t){this.setProperty("outline-color",t)}get outlineOffset(){return this.getPropertyValue("outline-offset")}set outlineOffset(t){this.setProperty("outline-offset",t)}get outlineStyle(){return this.getPropertyValue("outline-style")}set outlineStyle(t){this.setProperty("outline-style",t)}get outlineWidth(){return this.getPropertyValue("outline-width")}set outlineWidth(t){this.setProperty("outline-width",t)}get overflow(){return this.getPropertyValue("overflow")}set overflow(t){this.setProperty("overflow",t)}get overflowAnchor(){return this.getPropertyValue("overflow-anchor")}set overflowAnchor(t){this.setProperty("overflow-anchor",t)}get overflowWrap(){return this.getPropertyValue("overflow-wrap")}set overflowWrap(t){this.setProperty("overflow-wrap",t)}get overflowX(){return this.getPropertyValue("overflow-x")}set overflowX(t){this.setProperty("overflow-x",t)}get overflowY(){return this.getPropertyValue("overflow-y")}set overflowY(t){this.setProperty("overflow-y",t)}get overscrollBehavior(){return this.getPropertyValue("overscroll-behavior")}set overscrollBehavior(t){this.setProperty("overscroll-behavior",t)}get overscrollBehaviorBlock(){return this.getPropertyValue("overscroll-behavior-block")}set overscrollBehaviorBlock(t){this.setProperty("overscroll-behavior-block",t)}get overscrollBehaviorInline(){return this.getPropertyValue("overscroll-behavior-inline")}set overscrollBehaviorInline(t){this.setProperty("overscroll-behavior-inline",t)}get overscrollBehaviorX(){return this.getPropertyValue("overscroll-behavior-x")}set overscrollBehaviorX(t){this.setProperty("overscroll-behavior-x",t)}get overscrollBehaviorY(){return this.getPropertyValue("overscroll-behavior-y")}set overscrollBehaviorY(t){this.setProperty("overscroll-behavior-y",t)}get overflowClipMargin(){return this.getPropertyValue("overflow-clip-margin")}set overflowClipMargin(t){this.setProperty("overflow-clip-margin",t)}get padding(){return this.getPropertyValue("padding")}set padding(t){this.setProperty("padding",t)}get paddingBlockEnd(){return this.getPropertyValue("padding-block-end")}set paddingBlockEnd(t){this.setProperty("padding-block-end",t)}get paddingBlockStart(){return this.getPropertyValue("padding-block-start")}set paddingBlockStart(t){this.setProperty("padding-block-start",t)}get paddingBottom(){return this.getPropertyValue("padding-bottom")}set paddingBottom(t){this.setProperty("padding-bottom",t)}get paddingInlineEnd(){return this.getPropertyValue("padding-inline-end")}set paddingInlineEnd(t){this.setProperty("padding-inline-end",t)}get paddingInlineStart(){return this.getPropertyValue("padding-inline-start")}set paddingInlineStart(t){this.setProperty("padding-inline-start",t)}get paddingLeft(){return this.getPropertyValue("padding-left")}set paddingLeft(t){this.setProperty("padding-left",t)}get paddingRight(){return this.getPropertyValue("padding-right")}set paddingRight(t){this.setProperty("padding-right",t)}get paddingTop(){return this.getPropertyValue("padding-top")}set paddingTop(t){this.setProperty("padding-top",t)}get page(){return this.getPropertyValue("page")}set page(t){this.setProperty("page",t)}get pageBreakAfter(){return this.getPropertyValue("page-break-after")}set pageBreakAfter(t){this.setProperty("page-break-after",t)}get pageBreakBefore(){return this.getPropertyValue("page-break-before")}set pageBreakBefore(t){this.setProperty("page-break-before",t)}get pageBreakInside(){return this.getPropertyValue("page-break-inside")}set pageBreakInside(t){this.setProperty("page-break-inside",t)}get pageOrientation(){return this.getPropertyValue("page-orientation")}set pageOrientation(t){this.setProperty("page-orientation",t)}get paintOrder(){return this.getPropertyValue("paint-order")}set paintOrder(t){this.setProperty("paint-order",t)}get perspective(){return this.getPropertyValue("perspective")}set perspective(t){this.setProperty("perspective",t)}get perspectiveOrigin(){return this.getPropertyValue("perspective-origin")}set perspectiveOrigin(t){this.setProperty("perspective-origin",t)}get placeContent(){return this.getPropertyValue("place-content")}set placeContent(t){this.setProperty("place-content",t)}get placeItems(){return this.getPropertyValue("place-items")}set placeItems(t){this.setProperty("place-items",t)}get placeSelf(){return this.getPropertyValue("place-self")}set placeSelf(t){this.setProperty("place-self",t)}get pointerEvents(){return this.getPropertyValue("pointer-events")}set pointerEvents(t){this.setProperty("pointer-events",t)}get position(){return this.getPropertyValue("position")}set position(t){this.setProperty("position",t)}get quotes(){return this.getPropertyValue("quotes")}set quotes(t){this.setProperty("quotes",t)}get r(){return this.getPropertyValue("r")}set r(t){this.setProperty("r",t)}get resize(){return this.getPropertyValue("resize")}set resize(t){this.setProperty("resize",t)}get right(){return this.getPropertyValue("right")}set right(t){this.setProperty("right",t)}get rowGap(){return this.getPropertyValue("row-gap")}set rowGap(t){this.setProperty("row-gap",t)}get rubyPosition(){return this.getPropertyValue("ruby-position")}set rubyPosition(t){this.setProperty("ruby-position",t)}get rx(){return this.getPropertyValue("rx")}set rx(t){this.setProperty("rx",t)}get ry(){return this.getPropertyValue("ry")}set ry(t){this.setProperty("ry",t)}get scrollBehavior(){return this.getPropertyValue("scroll-behavior")}set scrollBehavior(t){this.setProperty("scroll-behavior",t)}get scrollMargin(){return this.getPropertyValue("scroll-margin")}set scrollMargin(t){this.setProperty("scroll-margin",t)}get scrollMarginBlock(){return this.getPropertyValue("scroll-margin-block")}set scrollMarginBlock(t){this.setProperty("scroll-margin-block",t)}get scrollMarginBlockEnd(){return this.getPropertyValue("scroll-margin-block-end")}set scrollMarginBlockEnd(t){this.setProperty("scroll-margin-block-end",t)}get scrollMarginBlockStart(){return this.getPropertyValue("scroll-margin-block-start")}set scrollMarginBlockStart(t){this.setProperty("scroll-margin-block-start",t)}get scrollMarginBottom(){return this.getPropertyValue("scroll-margin-bottom")}set scrollMarginBottom(t){this.setProperty("scroll-margin-bottom",t)}get scrollMarginInline(){return this.getPropertyValue("scroll-margin-inline")}set scrollMarginInline(t){this.setProperty("scroll-margin-inline",t)}get scrollMarginInlineEnd(){return this.getPropertyValue("scroll-margin-inline-end")}set scrollMarginInlineEnd(t){this.setProperty("scroll-margin-inline-end",t)}get scrollMarginInlineStart(){return this.getPropertyValue("scroll-margin-inline-start")}set scrollMarginInlineStart(t){this.setProperty("scroll-margin-inline-start",t)}get scrollMarginLeft(){return this.getPropertyValue("scroll-margin-left")}set scrollMarginLeft(t){this.setProperty("scroll-margin-left",t)}get scrollMarginRight(){return this.getPropertyValue("scroll-margin-right")}set scrollMarginRight(t){this.setProperty("scroll-margin-right",t)}get scrollMarginTop(){return this.getPropertyValue("scroll-margin-top")}set scrollMarginTop(t){this.setProperty("scroll-margin-top",t)}get scrollPadding(){return this.getPropertyValue("scroll-padding")}set scrollPadding(t){this.setProperty("scroll-padding",t)}get scrollPaddingBlock(){return this.getPropertyValue("scroll-padding-block")}set scrollPaddingBlock(t){this.setProperty("scroll-padding-block",t)}get scrollPaddingBlockEnd(){return this.getPropertyValue("scroll-padding-block-end")}set scrollPaddingBlockEnd(t){this.setProperty("scroll-padding-block-end",t)}get scrollPaddingBlockStart(){return this.getPropertyValue("scroll-padding-block-start")}set scrollPaddingBlockStart(t){this.setProperty("scroll-padding-block-start",t)}get scrollPaddingBottom(){return this.getPropertyValue("scroll-padding-bottom")}set scrollPaddingBottom(t){this.setProperty("scroll-padding-bottom",t)}get scrollPaddingInline(){return this.getPropertyValue("scroll-padding-inline")}set scrollPaddingInline(t){this.setProperty("scroll-padding-inline",t)}get scrollPaddingInlineEnd(){return this.getPropertyValue("scroll-padding-inline-end")}set scrollPaddingInlineEnd(t){this.setProperty("scroll-padding-inline-end",t)}get scrollPaddingInlineStart(){return this.getPropertyValue("scroll-padding-inline-start")}set scrollPaddingInlineStart(t){this.setProperty("scroll-padding-inline-start",t)}get scrollPaddingLeft(){return this.getPropertyValue("scroll-padding-left")}set scrollPaddingLeft(t){this.setProperty("scroll-padding-left",t)}get scrollPaddingRight(){return this.getPropertyValue("scroll-padding-right")}set scrollPaddingRight(t){this.setProperty("scroll-padding-right",t)}get scrollPaddingTop(){return this.getPropertyValue("scroll-padding-top")}set scrollPaddingTop(t){this.setProperty("scroll-padding-top",t)}get scrollSnapAlign(){return this.getPropertyValue("scroll-snap-align")}set scrollSnapAlign(t){this.setProperty("scroll-snap-align",t)}get scrollSnapStop(){return this.getPropertyValue("scroll-snap-stop")}set scrollSnapStop(t){this.setProperty("scroll-snap-stop",t)}get scrollSnapType(){return this.getPropertyValue("scroll-snap-type")}set scrollSnapType(t){this.setProperty("scroll-snap-type",t)}get shapeImageThreshold(){return this.getPropertyValue("shape-image-threshold")}set shapeImageThreshold(t){this.setProperty("shape-image-threshold",t)}get shapeMargin(){return this.getPropertyValue("shape-margin")}set shapeMargin(t){this.setProperty("shape-margin",t)}get shapeOutside(){return this.getPropertyValue("shape-outside")}set shapeOutside(t){this.setProperty("shape-outside",t)}get shapeRendering(){return this.getPropertyValue("shape-rendering")}set shapeRendering(t){this.setProperty("shape-rendering",t)}get size(){return this.getPropertyValue("size")}set size(t){this.setProperty("size",t)}get speak(){return this.getPropertyValue("speak")}set speak(t){this.setProperty("speak",t)}get src(){return this.getPropertyValue("src")}set src(t){this.setProperty("src",t)}get stopColor(){return this.getPropertyValue("stop-color")}set stopColor(t){this.setProperty("stop-color",t)}get stopOpacity(){return this.getPropertyValue("stop-opacity")}set stopOpacity(t){this.setProperty("stop-opacity",t)}get stroke(){return this.getPropertyValue("stroke")}set stroke(t){this.setProperty("stroke",t)}get strokeDasharray(){return this.getPropertyValue("stroke-dasharray")}set strokeDasharray(t){this.setProperty("stroke-dasharray",t)}get strokeDashoffset(){return this.getPropertyValue("stroke-dashoffset")}set strokeDashoffset(t){this.setProperty("stroke-dashoffset",t)}get strokeLinecap(){return this.getPropertyValue("stroke-linecap")}set strokeLinecap(t){this.setProperty("stroke-linecap",t)}get strokeLinejoin(){return this.getPropertyValue("stroke-linejoin")}set strokeLinejoin(t){this.setProperty("stroke-linejoin",t)}get strokeMiterlimit(){return this.getPropertyValue("stroke-miterlimit")}set strokeMiterlimit(t){this.setProperty("stroke-miterlimit",t)}get strokeOpacity(){return this.getPropertyValue("stroke-opacity")}set strokeOpacity(t){this.setProperty("stroke-opacity",t)}get strokeWidth(){return this.getPropertyValue("stroke-width")}set strokeWidth(t){this.setProperty("stroke-width",t)}get syntax(){return this.getPropertyValue("syntax")}set syntax(t){this.setProperty("syntax",t)}get scrollbarGutter(){return this.getPropertyValue("scrollbar-gutter")}set scrollbarGutter(t){this.setProperty("scrollbar-gutter",t)}get tabSize(){return this.getPropertyValue("tab-size")}set tabSize(t){this.setProperty("tab-size",t)}get tableLayout(){return this.getPropertyValue("table-layout")}set tableLayout(t){this.setProperty("table-layout",t)}get textAlign(){return this.getPropertyValue("text-align")}set textAlign(t){this.setProperty("text-align",t)}get textAlignLast(){return this.getPropertyValue("text-align-last")}set textAlignLast(t){this.setProperty("text-align-last",t)}get textAnchor(){return this.getPropertyValue("text-anchor")}set textAnchor(t){this.setProperty("text-anchor",t)}get textCombineUpright(){return this.getPropertyValue("text-combine-upright")}set textCombineUpright(t){this.setProperty("text-combine-upright",t)}get textDecoration(){return this.getPropertyValue("text-decoration")}set textDecoration(t){this.setProperty("text-decoration",t)}get textDecorationColor(){return this.getPropertyValue("text-decoration-color")}set textDecorationColor(t){this.setProperty("text-decoration-color",t)}get textDecorationLine(){return this.getPropertyValue("text-decoration-line")}set textDecorationLine(t){this.setProperty("text-decoration-line",t)}get textDecorationSkipInk(){return this.getPropertyValue("text-decoration-skip-ink")}set textDecorationSkipInk(t){this.setProperty("text-decoration-skip-ink",t)}get textDecorationStyle(){return this.getPropertyValue("text-decoration-style")}set textDecorationStyle(t){this.setProperty("text-decoration-style",t)}get textIndent(){return this.getPropertyValue("text-indent")}set textIndent(t){this.setProperty("text-indent",t)}get textOrientation(){return this.getPropertyValue("text-orientation")}set textOrientation(t){this.setProperty("text-orientation",t)}get textOverflow(){return this.getPropertyValue("text-overflow")}set textOverflow(t){this.setProperty("text-overflow",t)}get textRendering(){return this.getPropertyValue("text-rendering")}set textRendering(t){this.setProperty("text-rendering",t)}get textShadow(){return this.getPropertyValue("text-shadow")}set textShadow(t){this.setProperty("text-shadow",t)}get textSizeAdjust(){return this.getPropertyValue("text-size-adjust")}set textSizeAdjust(t){this.setProperty("text-size-adjust",t)}get textTransform(){return this.getPropertyValue("text-transform")}set textTransform(t){this.setProperty("text-transform",t)}get textUnderlinePosition(){return this.getPropertyValue("text-underline-position")}set textUnderlinePosition(t){this.setProperty("text-underline-position",t)}get top(){return this.getPropertyValue("top")}set top(t){this.setProperty("top",t)}get touchAction(){return this.getPropertyValue("touch-action")}set touchAction(t){this.setProperty("touch-action",t)}get transform(){return this.getPropertyValue("transform")}set transform(t){this.setProperty("transform",t)}get transformBox(){return this.getPropertyValue("transform-box")}set transformBox(t){this.setProperty("transform-box",t)}get transformOrigin(){return this.getPropertyValue("transform-origin")}set transformOrigin(t){this.setProperty("transform-origin",t)}get transformStyle(){return this.getPropertyValue("transform-style")}set transformStyle(t){this.setProperty("transform-style",t)}get transition(){return this.getPropertyValue("transition")}set transition(t){this.setProperty("transition",t)}get transitionDelay(){return this.getPropertyValue("transition-delay")}set transitionDelay(t){this.setProperty("transition-delay",t)}get transitionDuration(){return this.getPropertyValue("transition-duration")}set transitionDuration(t){this.setProperty("transition-duration",t)}get transitionProperty(){return this.getPropertyValue("transition-property")}set transitionProperty(t){this.setProperty("transition-property",t)}get transitionTimingFunction(){return this.getPropertyValue("transition-timing-function")}set transitionTimingFunction(t){this.setProperty("transition-timing-function",t)}get textEmphasisColor(){return this.getPropertyValue("text-emphasis-color")}set textEmphasisColor(t){this.setProperty("text-emphasis-color",t)}get textEmphasisPosition(){return this.getPropertyValue("text-emphasis-position")}set textEmphasisPosition(t){this.setProperty("text-emphasis-position",t)}get textEmphasisStyle(){return this.getPropertyValue("text-emphasis-style")}set textEmphasisStyle(t){this.setProperty("text-emphasis-style",t)}get unicodeBidi(){return this.getPropertyValue("unicode-bidi")}set unicodeBidi(t){this.setProperty("unicode-bidi",t)}get unicodeRange(){return this.getPropertyValue("unicode-range")}set unicodeRange(t){this.setProperty("unicode-range",t)}get userSelect(){return this.getPropertyValue("user-select")}set userSelect(t){this.setProperty("user-select",t)}get userZoom(){return this.getPropertyValue("user-zoom")}set userZoom(t){this.setProperty("user-zoom",t)}get vectorEffect(){return this.getPropertyValue("vector-effect")}set vectorEffect(t){this.setProperty("vector-effect",t)}get verticalAlign(){return this.getPropertyValue("vertical-align")}set verticalAlign(t){this.setProperty("vertical-align",t)}get visibility(){return this.getPropertyValue("visibility")}set visibility(t){this.setProperty("visibility",t)}get whiteSpace(){return this.getPropertyValue("white-space")}set whiteSpace(t){this.setProperty("white-space",t)}get widows(){return this.getPropertyValue("widows")}set widows(t){this.setProperty("widows",t)}get width(){return this.getPropertyValue("width")}set width(t){this.setProperty("width",t)}get willChange(){return this.getPropertyValue("will-change")}set willChange(t){this.setProperty("will-change",t)}get wordBreak(){return this.getPropertyValue("word-break")}set wordBreak(t){this.setProperty("word-break",t)}get wordSpacing(){return this.getPropertyValue("word-spacing")}set wordSpacing(t){this.setProperty("word-spacing",t)}get wordWrap(){return this.getPropertyValue("word-wrap")}set wordWrap(t){this.setProperty("word-wrap",t)}get writingMode(){return this.getPropertyValue("writing-mode")}set writingMode(t){this.setProperty("writing-mode",t)}get x(){return this.getPropertyValue("x")}set x(t){this.setProperty("x",t)}get y(){return this.getPropertyValue("y")}set y(t){this.setProperty("y",t)}get zIndex(){return this.getPropertyValue("z-index")}set zIndex(t){this.setProperty("z-index",t)}get zoom(){return this.getPropertyValue("zoom")}set zoom(t){this.setProperty("zoom",t)}get containerType(){return this.getPropertyValue("container-type")}set containerType(t){this.setProperty("container-type",t)}get containerName(){return this.getPropertyValue("container-name")}set containerName(t){this.setProperty("container-name",t)}get aspectRatio(){return this.getPropertyValue("aspect-ratio")}set aspectRatio(t){this.setProperty("aspect-ratio",t)}get length(){return this.#o().size()}get cssText(){if(this.#t&&this.#e)return"";return this.#o().toString()}set cssText(t){if(this.#e)throw new this[m].DOMException("Failed to execute 'cssText' on 'CSSStyleDeclaration': These styles are computed, and the properties are therefore read-only.",w.domException);if(this.#t)this.#r.propertyManager=new ms({cssText:t}),this.#r.attributeValue=t,this.#t.setAttribute("style",this.#r.propertyManager.toString());else this.#r.propertyManager=new ms({cssText:t})}item(t){return this.#o().item(t)}setProperty(t,e,o){if(this.#e)throw new this[m].DOMException(`Failed to execute 'setProperty' on 'CSSStyleDeclaration': These styles are computed, and therefore the '${t}' property is read-only.`,w.domException);if(o!==""&&o!==void 0&&o!=="important")return;let s=String(e).trim(),n=this.#o();if(s)n.set(t,s,!!o);else n.remove(t);if(this.#t)if(this.#r.attributeValue=n.toString(),this.#r.attributeValue)this.#t.setAttribute("style",this.#r.attributeValue);else this.#t.removeAttribute("style")}removeProperty(t){if(this.#e)throw new this[m].DOMException(`Failed to execute 'removeProperty' on 'CSSStyleDeclaration': These styles are computed, and therefore the '${t}' property is read-only.`,w.domException);let e=this.#o();if(e.remove(t),this.#t)if(this.#r.attributeValue=e.toString(),this.#r.attributeValue)this.#t.setAttribute("style",this.#r.attributeValue);else this.#t.removeAttribute("style")}getPropertyValue(t){return this.#o().get(t)?.value||""}getPropertyPriority(t){return this.#o().get(t)?.important?"important":""}#o(){let t=this.#t,e=this.#r;if(!t){if(!e.propertyManager)e.propertyManager=new ms;return e.propertyManager}if(this.#e)return new sc(t).getComputedStyle();let o=t.getAttribute("style")||"";if(e.attributeValue!==o)e.propertyManager=new ms({cssText:o});return e.propertyManager}}class vi extends xi{[bo]="";get conditionText(){return this[bo]}}class Yl extends vi{[Qt]=ut.containerRule;[Fr]="";get type(){return ut.containerRule}get cssText(){let t="";for(let e of this[We])t+=`
20
20
  `+e.cssText;return t+=`
21
- `,`@${this[Fr]}container ${this[So]} {${t}}`}}class Kl extends _o{[fr]="";#t=null;get type(){return ht.fontFaceRule}get cssText(){return`@font-face { ${this.style.cssText} }`}get style(){if(!this.#t)this.#t=new Kr(h,this[m]),this.#t.parentRule=this,this.#t.cssText=this[fr];return this.#t}}class tn extends _o{[ys]="";[fr]="";#t=null;get type(){return ht.keyframeRule}get cssText(){return`${this[ys]} { ${this.style.cssText} }`}get style(){if(!this.#t)this.#t=new Kr(h,this[m]),this.#t.parentRule=this,this.#t.cssText=this[fr];return this.#t}get keyText(){return this[ys]}}var aP=/^(from|to|[0-9]{1,3}%)\s*{([^}]*)}$/;class Ql extends _o{[We]=[];[rt]="";[Fr]="";get type(){return ht.keyframesRule}get cssText(){let t="";for(let e of this[We])t+=`
21
+ `,`@${this[Fr]}container ${this[bo]} {${t}}`}}class Kl extends Ho{[Sr]="";#t=null;get type(){return ut.fontFaceRule}get cssText(){return`@font-face { ${this.style.cssText} }`}get style(){if(!this.#t)this.#t=new Yr(h,this[m]),this.#t.parentRule=this,this.#t.cssText=this[Sr];return this.#t}}class Js extends Ho{[as]="";[Sr]="";#t=null;get type(){return ut.keyframeRule}get cssText(){return`${this[as]} { ${this.style.cssText} }`}get style(){if(!this.#t)this.#t=new Yr(h,this[m]),this.#t.parentRule=this,this.#t.cssText=this[Sr];return this.#t}get keyText(){return this[as]}}var aP=/^(from|to|[0-9]{1,3}%)\s*{([^}]*)}$/;class Ql extends Ho{[We]=[];[rt]="";[Fr]="";get type(){return ut.keyframesRule}get cssText(){let t="";for(let e of this[We])t+=`
22
22
  `+e.cssText;return t+=`
23
- `,`@${this[Fr]}keyframes ${this[rt]} { ${t}}`}get cssRules(){return this[We]}get name(){return this[rt]}get length(){return this[We].length}appendRule(t){if(arguments.length===0)throw new this[m].TypeError("Failed to execute 'appendRule' on 'CSSKeyframesRule': 1 argument required, but only 0 present.");let e=String(t).trim().match(aP);if(!e)throw new this[m].DOMException("Invalid or unexpected token",w.syntaxError);let o=new tn(h,this[m],this[Gl]),s=e[1].trim();if(s==="from")s="0%";else if(s==="to")s="100%";o[qs]=this,o[ys]=s,o[fr]=e[2].trim(),this[We].push(o)}deleteRule(t){if(arguments.length===0)throw new this[m].TypeError("Failed to execute 'deleteRule' on 'CSSKeyframesRule': 1 argument required, but only 0 present.");for(let e=0,o=this[We].length;e<o;e++)if(this[We][e][ys]===t){this[We].splice(e,1);return}}findRule(t){if(arguments.length===0)throw new this[m].TypeError("Failed to execute 'findRule' on 'CSSKeyframesRule': 1 argument required, but only 0 present.");for(let e=0,o=this[We].length;e<o;e++)if(this[We][e][ys]===t)return this[We][e];return null}}var jg=/\s*,\s*/;class qn{[$s];constructor(t,e){if(t!==h)throw TypeError("Illegal constructor");this[$s]=e;let o=new fe(this,[qn]);return new Proxy(this,{get:(s,n)=>{if(n in s||typeof n==="symbol")return o.bind(n),s[n];let l=Number(n);if(!isNaN(l))return s[K]()[l]},set(s,n,l){if(o.bind(n),n in s||typeof n==="symbol")return s[n]=l,!0;return!0},deleteProperty(s,n){if(n in s||typeof n==="symbol")return delete s[n],!0;return!0},ownKeys(s){return Object.keys(s[K]())},has(s,n){if(typeof n==="symbol")return!1;if(n in s)return!0;let l=Number(n);return!isNaN(l)&&l>=0&&l<s[K]().length},defineProperty(s,n,l){if(o.preventBinding(n),n in s)return Object.defineProperty(s,n,l),!0;return!1},getOwnPropertyDescriptor(s,n){if(n in s||typeof n==="symbol")return;let l=Number(n),a=s[K]();if(!isNaN(l)&&a[l])return{value:a[l],writable:!1,enumerable:!0,configurable:!0}}})}get length(){return this[K]().length}get mediaText(){return this[$s][So]}set mediaText(t){this[$s][So]=t===null?"":String(t).split(jg).join(", ")}item(t){return this[K]()[Number(t)]||null}appendMedium(t){let e=this[K]();if(e.indexOf(t)===-1)e.push(t),this[$s][So]=e.join(", ")}deleteMedium(t){let e=this[K](),o=e.indexOf(t);if(o!==-1)e.splice(o,1),this[$s][So]=e.join(", ")}[K](){return this[$s][So].trim()?this[$s][So].split(jg):[]}}class jl extends Ci{[xb]=new qn(h,this);get type(){return ht.mediaRule}get cssText(){let t="";for(let e of this[We])t+=`
23
+ `,`@${this[Fr]}keyframes ${this[rt]} { ${t}}`}get cssRules(){return this[We]}get name(){return this[rt]}get length(){return this[We].length}appendRule(t){if(arguments.length===0)throw new this[m].TypeError("Failed to execute 'appendRule' on 'CSSKeyframesRule': 1 argument required, but only 0 present.");let e=String(t).trim().match(aP);if(!e)throw new this[m].DOMException("Invalid or unexpected token",w.syntaxError);let o=new Js(h,this[m],this[Gl]),s=e[1].trim();if(s==="from")s="0%";else if(s==="to")s="100%";o[Qs]=this,o[as]=s,o[Sr]=e[2].trim(),this[We].push(o)}deleteRule(t){if(arguments.length===0)throw new this[m].TypeError("Failed to execute 'deleteRule' on 'CSSKeyframesRule': 1 argument required, but only 0 present.");for(let e=0,o=this[We].length;e<o;e++)if(this[We][e][as]===t){this[We].splice(e,1);return}}findRule(t){if(arguments.length===0)throw new this[m].TypeError("Failed to execute 'findRule' on 'CSSKeyframesRule': 1 argument required, but only 0 present.");for(let e=0,o=this[We].length;e<o;e++)if(this[We][e][as]===t)return this[We][e];return null}}var jg=/\s*,\s*/;class Yn{[js];constructor(t,e){if(t!==h)throw TypeError("Illegal constructor");this[js]=e;let o=new fe(this,[Yn]);return new Proxy(this,{get:(s,n)=>{if(n in s||typeof n==="symbol")return o.bind(n),s[n];let l=Number(n);if(!isNaN(l))return s[K]()[l]},set(s,n,l){if(o.bind(n),n in s||typeof n==="symbol")return s[n]=l,!0;return!0},deleteProperty(s,n){if(n in s||typeof n==="symbol")return delete s[n],!0;return!0},ownKeys(s){return Object.keys(s[K]())},has(s,n){if(typeof n==="symbol")return!1;if(n in s)return!0;let l=Number(n);return!isNaN(l)&&l>=0&&l<s[K]().length},defineProperty(s,n,l){if(o.preventBinding(n),n in s)return Object.defineProperty(s,n,l),!0;return!1},getOwnPropertyDescriptor(s,n){if(n in s||typeof n==="symbol")return;let l=Number(n),a=s[K]();if(!isNaN(l)&&a[l])return{value:a[l],writable:!1,enumerable:!0,configurable:!0}}})}get length(){return this[K]().length}get mediaText(){return this[js][bo]}set mediaText(t){this[js][bo]=t===null?"":String(t).split(jg).join(", ")}item(t){return this[K]()[Number(t)]||null}appendMedium(t){let e=this[K]();if(e.indexOf(t)===-1)e.push(t),this[js][bo]=e.join(", ")}deleteMedium(t){let e=this[K](),o=e.indexOf(t);if(o!==-1)e.splice(o,1),this[js][bo]=e.join(", ")}[K](){return this[js][bo].trim()?this[js][bo].split(jg):[]}}class jl extends vi{[xb]=new Yn(h,this);get type(){return ut.mediaRule}get cssText(){let t="";for(let e of this[We])t+=`
24
24
  `+e.cssText;return t+=t?`
25
- `:" ",`@media ${this.conditionText} {${t}}`}get media(){return this[xb]}get conditionText(){return this.media.mediaText}}class Xn{#t;constructor(t){this.#t=t}get value(){return this.#t}set value(t){this.#t=t}}class zn{#t;#e;constructor(t,e,o){if(t!==h)throw TypeError("Illegal constructor");this.#t=e,this.#e=o}toString(){return this.#t.getPropertyValue(this.#e)}}class ql{[ge];constructor(t,e){if(t!==h)throw TypeError("Illegal constructor");this[ge]=e}get size(){return this[ge].length}[Symbol.iterator](){return this.entries()}entries(){let t=this[ge].length,e=Array(t);for(let o=0;o<t;o++){let s=this[ge][o];e[o]=[s,[new Xn(this[ge].getPropertyValue(s))]]}return e.values()}values(){let t=this[ge].length,e=Array(t);for(let o=0;o<t;o++){let s=this[ge][o];e[o]=[new Xn(this[ge].getPropertyValue(s))]}return e.values()}keys(){let t=this[ge].length,e=Array(t);for(let o=0;o<t;o++)e[o]=this[ge][o];return e.values()}get(t){return new zn(h,this[ge],t)}getAll(t){return[new zn(h,this[ge],t)]}has(t){return!!this[ge].getPropertyValue(t)}}class $l extends ql{append(t,e){this[ge].setProperty(t,e)}clear(){this[ge].cssText=""}delete(t){this[ge].removeProperty(t)}set(t,e){this[ge].setProperty(t,e)}}class en extends Ti{[rp]=null;[Ol]="";[fr]="";#t=null;get type(){return ht.styleRule}get cssText(){return`${this[Ol]} { ${this.style.cssText} }`}get styleMap(){if(!this[rp])this[rp]=new $l(h,this.style);return this[rp]}get selectorText(){return this[Ol]}get style(){if(!this.#t)this.#t=new Kr(h,this[m]),this.#t.parentRule=this,this.#t.cssText=this[fr];return this.#t}}class Xl extends Ci{[Qt]=ht.supportsRule;[Fr]="";get type(){return ht.supportsRule}get cssText(){let t="";for(let e of this[We])t+=`
25
+ `:" ",`@media ${this.conditionText} {${t}}`}get media(){return this[xb]}get conditionText(){return this.media.mediaText}}class qn{#t;constructor(t){this.#t=t}get value(){return this.#t}set value(t){this.#t=t}}class $n{#t;#e;constructor(t,e,o){if(t!==h)throw TypeError("Illegal constructor");this.#t=e,this.#e=o}toString(){return this.#t.getPropertyValue(this.#e)}}class ql{[ge];constructor(t,e){if(t!==h)throw TypeError("Illegal constructor");this[ge]=e}get size(){return this[ge].length}[Symbol.iterator](){return this.entries()}entries(){let t=this[ge].length,e=Array(t);for(let o=0;o<t;o++){let s=this[ge][o];e[o]=[s,[new qn(this[ge].getPropertyValue(s))]]}return e.values()}values(){let t=this[ge].length,e=Array(t);for(let o=0;o<t;o++){let s=this[ge][o];e[o]=[new qn(this[ge].getPropertyValue(s))]}return e.values()}keys(){let t=this[ge].length,e=Array(t);for(let o=0;o<t;o++)e[o]=this[ge][o];return e.values()}get(t){return new $n(h,this[ge],t)}getAll(t){return[new $n(h,this[ge],t)]}has(t){return!!this[ge].getPropertyValue(t)}}class $l extends ql{append(t,e){this[ge].setProperty(t,e)}clear(){this[ge].cssText=""}delete(t){this[ge].removeProperty(t)}set(t,e){this[ge].setProperty(t,e)}}class Zs extends xi{[rp]=null;[Ol]="";[Sr]="";#t=null;get type(){return ut.styleRule}get cssText(){return`${this[Ol]} { ${this.style.cssText} }`}get styleMap(){if(!this[rp])this[rp]=new $l(h,this.style);return this[rp]}get selectorText(){return this[Ol]}get style(){if(!this.#t)this.#t=new Yr(h,this[m]),this.#t.parentRule=this,this.#t.cssText=this[Sr];return this.#t}}class Xl extends vi{[Qt]=ut.supportsRule;[Fr]="";get type(){return ut.supportsRule}get cssText(){let t="";for(let e of this[We])t+=`
26
26
  `+e.cssText;return t+=`
27
- `,`@${this[Fr]}supports ${this.conditionText} {${t}}`}}var Ht={html:"http://www.w3.org/1999/xhtml",svg:"http://www.w3.org/2000/svg",mathML:"http://www.w3.org/1998/Math/MathML",xml:"http://www.w3.org/XML/1998/namespace",xlink:"http://www.w3.org/1999/xlink",xmlns:"http://www.w3.org/2000/xmlns/"};var qg=new Map,$g=new Map,mP=/[A-Z]/g,yP=/[a-z]/g;class Dr{static asciiLowerCase(t){let e=qg.get(t);if(e)return e;let o=t.replace(mP,(s)=>String.fromCharCode(s.charCodeAt(0)+32));return qg.set(t,o),o}static asciiUpperCase(t){let e=$g.get(t);if(e)return e;let o=t.replace(yP,(s)=>String.fromCharCode(s.charCodeAt(0)-32));return $g.set(t,o),o}}var Xg="[-_.]|[0-9]|[a-z]|\xB7|[\xC0-\xD6]|[\xD8-\xF6]"+"|[\xF8-\u037D]|[\u037F-\u1FFF]"+"|[\u200C-\u200D]|[\u203F-\u2040]|[\u2070-\u218F]"+"|[\u2C00-\u2FEF]|[\u3001-\uD7FF]"+"|[\uF900-\uFDCF]|[\uFDF0-\uFFFD]|[\uD800\uDC00-\uDB7F\uDFFF]",pP=new RegExp(`^[a-z](${Xg})*-(${Xg})*$`,"u"),uP=["annotation-xml","color-profile","font-face","font-face-src","font-face-uri","font-face-format","font-face-name","missing-glyph"];class dp{static isValidCustomElementName(t){return pP.test(t)&&!uP.includes(t)}}class _a{[gi]=new Map;[Na]=new Map;[bi]=new Map;[Hm]=!1;#t;constructor(t){if(!t)throw TypeError("Illegal constructor");this.#t=t}define(t,e,o){if(this[Hm])return;if(!dp.isValidCustomElementName(t))throw new this.#t.DOMException(`Failed to execute 'define' on 'CustomElementRegistry': "${t}" is not a valid custom element name`);if(this[gi].has(t))throw new this.#t.DOMException(`Failed to execute 'define' on 'CustomElementRegistry': the name "${t}" has already been used with this registry`);if(this[Na].has(e))throw new this.#t.DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");let s=Dr.asciiUpperCase(t);e.prototype[m]=this.#t,e.prototype[x]=this.#t.document,e.prototype[z]=s,e.prototype[ot]=t,e.prototype[J]=Ht.html;let n=new Set,l=e.observedAttributes;if(Array.isArray(l))for(let y of l)n.add(String(y).toLowerCase());this[gi].set(t,{elementClass:e,extends:o&&o.extends?o.extends.toLowerCase():null,observedAttributes:n,lifecycleCallbacks:{connectedCallback:e.prototype.connectedCallback,disconnectedCallback:e.prototype.disconnectedCallback,attributeChangedCallback:e.prototype.attributeChangedCallback}}),this[Na].set(e,t);let a=this[bi].get(t);if(a){this[bi].delete(t);for(let y of a)y()}}get(t){return this[gi].get(t)?.elementClass}upgrade(t){}whenDefined(t){if(this[Hm])return Promise.reject(new this.#t.DOMException("Failed to execute 'whenDefined' on 'CustomElementRegistry': The custom element registry has been destroyed."));if(!dp.isValidCustomElementName(t))return Promise.reject(new this.#t.DOMException(`Failed to execute 'whenDefined' on 'CustomElementRegistry': Invalid custom element name: "${t}"`));if(this.get(t))return Promise.resolve();return new Promise((e)=>{let o=this[bi].get(t);if(o)o.push(e);else this[bi].set(t,[e])})}getName(t){return this[Na].get(t)||null}[At](){this[Hm]=!0;for(let t of this[gi].values())t.elementClass.prototype[m]=null,t.elementClass.prototype[x]=null,t.elementClass.prototype[z]=null,t.elementClass.prototype[ot]=null,t.elementClass.prototype[J]=null;this[gi]=new Map,this[Na]=new Map,this[bi]=new Map}}class hs{kind;type;#t=null;constructor(t,e=""){this.kind=typeof t==="string"?"string":"file",this.type=this.kind==="string"?e:t.type,this.#t=t}getAsFile(){if(this.kind==="string")return null;return this.#t}getAsString(t){if(this.kind==="file");t(this.#t)}}class Mo extends ie{lastModified;name;constructor(t,e,o){if(arguments.length<2)throw TypeError("Failed to construct 'File': 2 arguments required, but only "+arguments.length+" present.");super(t,o);this.name=e,this.lastModified=o&&o.lastModified?o.lastModified:Date.now()}}class zl extends Array{add(t,e){if(t instanceof Mo){this.push(new hs(t));return}if(!e)throw TypeError("Failed to execute 'add' on 'DataTransferItemList': parameter 1 is not of type 'File'.");this.push(new hs(t,e))}remove(t){this.splice(t,1)}clear(){while(this.length)this.pop()}}class bp{dropEffect="none";effectAllowed="none";items=new zl;get files(){let t=[];for(let e of this.items)if(e.kind==="file"){let o=e.getAsFile();if(o)t.push(o)}return t}get types(){return this.items.map((t)=>t.type)}clearData(){this.items.clear()}setData(t,e){for(let o=0,s=this.items.length;o<s;o++)if(this.items[o].type===t){this.items[o]=new hs(e,t);return}this.items.add(e,t)}getData(t){let e=this.#t(t);for(let o=0,s=this.items.length;o<s;o++)if(this.#t(this.items[o].type)===e){let l="";return this.items[o].getAsString((a)=>l=a),l}return""}#t(t){let e=t.toLowerCase();if(e==="text")return"text/plain";if(e==="url")return"text/uri-list";return e}setDragImage(){throw Error("Not implemented.")}}class gp{identifier;target;clientX;clientY;screenX;screenY;pageX;pageY;radiusX;radiusY;rotationAngle;force;constructor(t){this.identifier=t.identifier,this.target=t.target,this.clientX=t.clientX??0,this.clientY=t.clientY??0,this.screenX=t.screenX??0,this.screenY=t.screenY??0,this.pageX=t.pageX??0,this.pageY=t.pageY??0,this.radiusX=t.radiusX??0,this.radiusY=t.radiusY??0,this.rotationAngle=t.rotationAngle??0,this.force=t.force??0}}class Sr extends N{static NONE=0;static CAPTURING_PHASE=1;static AT_TARGET=2;static BUBBLING_PHASE=3;detail;layerX=0;layerY=0;pageX=0;pageY=0;view;constructor(t,e=null){super(t,e);this.detail=e?.detail??0,this.view=e?.view??null}}class Sp extends N{animationName;elapsedTime;pseudoElement;constructor(t,e=null){super(t,e);this.animationName=e?.animationName??"",this.elapsedTime=e?.elapsedTime??0,this.pseudoElement=e?.pseudoElement??""}}class fp extends N{clipboardData;constructor(t,e=null){super(t,e);this.clipboardData=e?.clipboardData??null}}class Pp extends N{[Um];constructor(t,e=null){super(t,e);this[Um]=e?.detail??null}get detail(){return this[Um]}initCustomEvent(t,e=!1,o=!1,s=null){this[Qt]=t,this[Hs]=e,this[_i]=o,this[Um]=s}}class rn extends Sr{message;filename;lineno;colno;error;constructor(t,e=null){super(t,e);this.message=e?.message??"",this.filename=e?.filename??"",this.lineno=e?.lineno??0,this.colno=e?.colno??0,this.error=e?.error??null}}class cs extends Sr{relatedTarget;constructor(t,e=null){super(t,e);this.relatedTarget=e?.relatedTarget??null}}class Jl extends N{newURL;oldURL;constructor(t,e=null){super(t,e);this.newURL=e?.newURL??"",this.oldURL=e?.oldURL??""}}class Ap extends Sr{data;dataTransfer;inputType;isComposing;constructor(t,e=null){super(t,e);this.data=e?.data??"",this.dataTransfer=e?.dataTransfer??null,this.inputType=e?.inputType??"",this.isComposing=e?.isComposing??!1}}class wp extends Sr{static DOM_KEY_LOCATION_STANDARD=0;static DOM_KEY_LOCATION_LEFT=1;static DOM_KEY_LOCATION_RIGHT=2;static DOM_KEY_LOCATION_NUMPAD=3;altKey;code;ctrlKey;isComposing;key;location;metaKey;repeat;shiftKey;keyCode;which;constructor(t,e=null){super(t,e);this.altKey=e?.altKey??!1,this.code=e?.code??"",this.ctrlKey=e?.ctrlKey??!1,this.isComposing=e?.isComposing??!1,this.key=e?.key??"",this.location=e?.location??0,this.metaKey=e?.metaKey??!1,this.repeat=e?.repeat??!1,this.shiftKey=e?.shiftKey??!1,this.keyCode=e?.keyCode??0,this.which=e?.which??e?.keyCode??0}getModifierState(t){if(arguments.length<1)throw TypeError("Failed to execute 'getModifierState' on 'KeyboardEvent': 1 argument required, but only 0 present.");switch(String(t).toLowerCase()){case"alt":case"altgraph":return this.altKey;case"control":return this.ctrlKey;case"meta":return this.metaKey;case"shift":return this.shiftKey;default:return!1}}}class Ep extends N{data;origin;lastEventId;source;ports;constructor(t,e=null){super(t,e);this.data=e?.data??null,this.origin=e?.origin??"",this.lastEventId=e?.lastEventId??"",this.source=e?.source??null,this.ports=e?.ports??[]}}class qe extends Sr{altKey;button;buttons;clientX;clientY;ctrlKey;metaKey;movementX;movementY;offsetX;offsetY;region;relatedTarget;screenX;screenY;shiftKey;constructor(t,e=null){super(t,e);this.altKey=e?.altKey??!1,this.button=e?.button??0,this.buttons=e?.buttons??0,this.clientX=e?.clientX??0,this.clientY=e?.clientY??0,this.ctrlKey=e?.ctrlKey??!1,this.metaKey=e?.metaKey??!1,this.movementX=e?.movementX??0,this.movementY=e?.movementY??0,this.offsetX=e?.offsetX??0,this.offsetY=e?.offsetY??0,this.region=e?.region??"",this.relatedTarget=e?.relatedTarget??null,this.screenX=e?.screenX??0,this.screenY=e?.screenY??0,this.shiftKey=e?.shiftKey??!1}}class Zl extends qe{pointerId;width;height;pressure;tangentialPressure;tiltX;tiltY;twist;altitudeAngle;azimuthAngle;pointerType;isPrimary;coalescedEvents;predictedEvents;constructor(t,e=null){super(t,e);this.pointerId=e?.pointerId??0,this.width=e?.width??1,this.height=e?.height??1,this.pressure=e?.pressure??0,this.tangentialPressure=e?.tangentialPressure??0,this.tiltX=e?.tiltX??0,this.tiltY=e?.tiltY??0,this.twist=e?.twist??0,this.altitudeAngle=e?.altitudeAngle??0,this.azimuthAngle=e?.azimuthAngle??0,this.pointerType=e?.pointerType??"",this.isPrimary=e?.isPrimary??!1,this.coalescedEvents=e?.coalescedEvents??[],this.predictedEvents=e?.predictedEvents??[]}getCoalescedEvents=()=>this.coalescedEvents;getPredictedEvents=()=>this.predictedEvents}class Io extends N{lengthComputable;loaded;total;constructor(t,e=null){super(t);this.lengthComputable=e?.lengthComputable??!1,this.loaded=e?.loaded??0,this.total=e?.total??0}}class nc extends N{key;oldValue;newValue;url;storageArea;constructor(t,e=null){super(t);this.key=e?.key??null,this.oldValue=e?.oldValue??null,this.newValue=e?.newValue??null,this.url=e?.url??"",this.storageArea=e?.storageArea??null}}class ta extends N{submitter;constructor(t,e=null){super(t,e);this.submitter=e?.submitter??null}}class xp extends Sr{altKey;changedTouches;ctrlKey;metaKey;shiftKey;targetTouches;touches;constructor(t,e=null){super(t,e);this.altKey=e?.altKey??!1,this.changedTouches=e?.changedTouches??[],this.ctrlKey=e?.ctrlKey??!1,this.metaKey=e?.metaKey??!1,this.shiftKey=e?.shiftKey??!1,this.targetTouches=e?.targetTouches??[],this.touches=e?.touches??[]}}class vp extends Sr{static DOM_DELTA_PIXEL=0;static DOM_DELTA_LINE=1;static DOM_DELTA_PAGE=2;deltaX;deltaY;deltaZ;deltaMode;constructor(t,e=null){super(t,e);this.deltaX=e?.deltaX??0,this.deltaY=e?.deltaY??0,this.deltaZ=e?.deltaZ??0,this.deltaMode=e?.deltaMode??0}}import{URL as hP}from"url";import{Blob as cP}from"buffer";class Le extends hP{constructor(t,e){try{super(t,e)}catch(o){super("about:blank");if(this[m])throw new this[m].TypeError("Invalid URL");throw o}}static createObjectURL(t){if(t instanceof ie){let e=new cP([t[Nt]],{type:t.type});return super.createObjectURL(e)}return super.createObjectURL(t)}}import{isIP as dP}from"net";var bP=/^(about|blob|data):$/,gP=["","no-referrer","no-referrer-when-downgrade","same-origin","origin","strict-origin","origin-when-cross-origin","strict-origin-when-cross-origin","unsafe-url"];class ds{static prepareRequest(t,e){if(!e.referrerPolicy)e[Fa]="strict-origin-when-cross-origin";if(e.referrer&&e.referrer!=="no-referrer")e[Pr]=this.getSentReferrer(t,e);else e[Pr]="no-referrer"}static getInitialReferrer(t,e){if(e===""||e==="no-referrer"||e==="client")return e;else if(e){let o=e instanceof Le?e:new Le(e,t.location.href);return o.origin===t.location.origin?o:"client"}return"client"}static getReferrerPolicyFromHeader(t){let e=t.get("Referrer-Policy");if(!e)return"";let o=e.split(/[,\s]+/),s="";for(let n of o)if(n&&gP.includes(n))s=n;return s}static getSentReferrer(t,e){if(e.referrer==="about:client"&&t.origin==="null")return"no-referrer";let o=new Le(e.url),s=e.referrer==="about:client"?new Le(t.href):new Le(e.referrer);if(bP.test(s.protocol))return"no-referrer";switch(s.username="",s.password="",s.hash="",e.referrerPolicy){case"no-referrer":return"no-referrer";case"origin":return new Le(s.origin);case"unsafe-url":return s;case"strict-origin":if(this.isURLPotentiallyTrustWorthy(s)&&!this.isURLPotentiallyTrustWorthy(o))return"no-referrer";return new Le(s.origin);case"strict-origin-when-cross-origin":if(s.origin===o.origin)return s;if(this.isURLPotentiallyTrustWorthy(s)&&!this.isURLPotentiallyTrustWorthy(o))return"no-referrer";return new Le(s.origin);case"same-origin":if(s.origin===o.origin)return s;return"no-referrer";case"origin-when-cross-origin":if(s.origin===o.origin)return s;return new Le(s.origin);case"no-referrer-when-downgrade":if(this.isURLPotentiallyTrustWorthy(s)&&!this.isURLPotentiallyTrustWorthy(o))return"no-referrer";return s}return"no-referrer"}static isURLPotentiallyTrustWorthy(t){if(/^about:(blank|srcdoc)$/.test(t.href))return!0;if(t.protocol==="data:")return!0;if(/^(blob|filesystem):$/.test(t.protocol))return!0;return this.isOriginPotentiallyTrustWorthy(t)}static isOriginPotentiallyTrustWorthy(t){if(/^(http|ws)s:$/.test(t.protocol))return!0;let e=t.host.replace(/(^\[)|(]$)/g,""),o=dP(e);if(o===4&&/^127\./.test(e))return!0;if(o===6&&/^(((0+:){7})|(::(0+:){0,6}))0*1$/.test(e))return!0;if(t.host==="localhost"||t.host.endsWith(".localhost"))return!1;if(t.protocol==="file:")return!0;return!1}}import LP from"http";import kP from"https";import qa from"zlib";import{URL as yc}from"url";import rS from"fs";import MP from"path";import sn from"stream";class Ya{static parse(t){if(!/^data:/i.test(t))throw TypeError('`uri` does not appear to be a Data URI (must begin with "data:")');t=t.replace(/\r?\n/g,"");let e=t.indexOf(",");if(e===-1||e<=4)throw TypeError("malformed data: URI");let o=t.substring(5,e).split(";"),s="",n=!1,l=o[0]||"text/plain";for(let c=1;c<o.length;c++)if(o[c]==="base64")n=!0;else if(o[c]){if(l+=`;${o[c]}`,o[c].indexOf("charset=")===0)s=o[c].substring(8)}if(!o[0]&&!s.length)l+=";charset=US-ASCII",s="US-ASCII";let a=n?"base64":"ascii",y=unescape(t.substring(e+1)),u=Buffer.from(y,a);return{type:l,charset:s,buffer:u}}}import{URL as zg}from"url";class ti{static isCORS(t,e){if(t=typeof t==="string"?new zg(t):t,e=typeof e==="string"?new zg(e):e,e.protocol==="about:"||e.protocol==="javascript:")return!1;return t.hostname!==e.hostname&&!t.hostname.endsWith(e.hostname)||t.protocol!==e.protocol}}import{URL as Gb}from"url";import{ReadableStream as SP}from"stream/web";var ei;(function(t){t[t.boundary=0]="boundary",t[t.headerStart=2]="headerStart",t[t.header=3]="header",t[t.data=5]="data"})(ei||(ei={}));var lc={lf:10,cr:13};class ac{formData;boundary;boundaryIndex=0;state=ei.boundary;data={contentDisposition:null,value:[],contentType:null,header:""};constructor(t,e){let o=`--${e}`;this.boundary=new Uint8Array(o.length),this.formData=new t.FormData;for(let s=0,n=o.length;s<n;s++)this.boundary[s]=o.charCodeAt(s)}write(t){let e,o;for(let s=0,n=t.length;s<n;s++)switch(e=t[s],o=t[s+1],this.state){case ei.boundary:if(e===this.boundary[this.boundaryIndex])this.boundaryIndex++;else this.boundaryIndex=0;if(this.boundaryIndex===this.boundary.length)this.state=ei.headerStart,this.boundaryIndex=0;break;case ei.headerStart:if(o!==lc.cr&&o!==lc.lf)this.data.header="",this.state=t[s-2]===lc.lf?ei.data:ei.header;break;case ei.header:if(e===lc.cr){if(this.data.header){let l=this.data.header.split(":");if(l.length>1){let a=l[0].toLowerCase(),y=l[1].trim();switch(a){case"content-disposition":this.data.contentDisposition=this.getContentDisposition(y);break;case"content-type":this.data.contentType=y;break}}}this.state=ei.headerStart}else this.data.header+=String.fromCharCode(e);break;case ei.data:if(e===this.boundary[this.boundaryIndex])this.boundaryIndex++;else this.boundaryIndex=0;if(this.boundaryIndex===this.boundary.length){if(this.state=ei.headerStart,this.data.value.length)this.appendFormData(this.data.contentDisposition.name,Buffer.from(this.data.value.slice(0,-(this.boundary.length+1))),this.data.contentDisposition.filename,this.data.contentType),this.data.value=[],this.data.contentDisposition=null,this.data.contentType=null;this.boundaryIndex=0}else this.data.value.push(e);break}}end(){if(this.data.contentDisposition&&this.data.value.length)this.appendFormData(this.data.contentDisposition.name,Buffer.from(this.data.value.slice(0,-2)),this.data.contentDisposition.filename,this.data.contentType);return this.formData}appendFormData(t,e,o,s){if(!e.length)return;if(o)this.formData.append(t,new Mo([e],o,{type:s}));else this.formData.append(t,e.toString())}getContentDisposition(t){let e=/([a-z]+) *= *"([^"]+)"/g,o={},s;while(s=e.exec(t))o[s[1]]=s[2];return o}}import{Buffer as ea}from"buffer";class Jn{static async streamToFormData(t,e,o){if(!/multipart/i.test(o))throw new t.DOMException(`Failed to build FormData object: The "content-type" header isn't of type "multipart/form-data".`,w.invalidStateError);let s=e.body;if(!s)throw new t.DOMException("Failed to build FormData object: The response body is null.",w.invalidStateError);let n=o.match(/boundary=(?:"([^"]+)"|([^;]+))/i);if(!n)throw new t.DOMException(`Failed to build FormData object: The "content-type" header doesn't contain any multipart boundary.`,w.invalidStateError);let l=s.getReader(),a=new ac(t,n[1]||n[2]),y=[],u,c=0,d=await l.read();while(!d.done){if(e[Qe])throw e[Qe];if(e[Se])throw new t.DOMException("Failed to read response body: The stream was aborted.",w.abortError);a.write(d.value),d=await l.read()}try{u=typeof y[0]==="string"?ea.from(y.join("")):ea.concat(y,c)}catch(g){throw new t.DOMException(`Could not create Buffer from response body. Error: ${g.message}.`,w.invalidStateError)}return{formData:a.end(),buffer:u}}static formDataToStream(t){let e="----HappyDOMFormDataBoundary"+Math.random().toString(36),o=[],s=`--${e}\r
27
+ `,`@${this[Fr]}supports ${this.conditionText} {${t}}`}}var Ut={html:"http://www.w3.org/1999/xhtml",svg:"http://www.w3.org/2000/svg",mathML:"http://www.w3.org/1998/Math/MathML",xml:"http://www.w3.org/XML/1998/namespace",xlink:"http://www.w3.org/1999/xlink",xmlns:"http://www.w3.org/2000/xmlns/"};var qg=new Map,$g=new Map,mP=/[A-Z]/g,yP=/[a-z]/g;class Vr{static asciiLowerCase(t){let e=qg.get(t);if(e)return e;let o=t.replace(mP,(s)=>String.fromCharCode(s.charCodeAt(0)+32));return qg.set(t,o),o}static asciiUpperCase(t){let e=$g.get(t);if(e)return e;let o=t.replace(yP,(s)=>String.fromCharCode(s.charCodeAt(0)-32));return $g.set(t,o),o}}var Xg="[-_.]|[0-9]|[a-z]|\xB7|[\xC0-\xD6]|[\xD8-\xF6]"+"|[\xF8-\u037D]|[\u037F-\u1FFF]"+"|[\u200C-\u200D]|[\u203F-\u2040]|[\u2070-\u218F]"+"|[\u2C00-\u2FEF]|[\u3001-\uD7FF]"+"|[\uF900-\uFDCF]|[\uFDF0-\uFFFD]|[\uD800\uDC00-\uDB7F\uDFFF]",pP=new RegExp(`^[a-z](${Xg})*-(${Xg})*$`,"u"),uP=["annotation-xml","color-profile","font-face","font-face-src","font-face-uri","font-face-format","font-face-name","missing-glyph"];class dp{static isValidCustomElementName(t){return pP.test(t)&&!uP.includes(t)}}class _a{[di]=new Map;[Na]=new Map;[ci]=new Map;[Hm]=!1;#t;constructor(t){if(!t)throw TypeError("Illegal constructor");this.#t=t}define(t,e,o){if(this[Hm])return;if(!dp.isValidCustomElementName(t))throw new this.#t.DOMException(`Failed to execute 'define' on 'CustomElementRegistry': "${t}" is not a valid custom element name`);if(this[di].has(t))throw new this.#t.DOMException(`Failed to execute 'define' on 'CustomElementRegistry': the name "${t}" has already been used with this registry`);if(this[Na].has(e))throw new this.#t.DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");let s=Vr.asciiUpperCase(t);e.prototype[m]=this.#t,e.prototype[x]=this.#t.document,e.prototype[z]=s,e.prototype[ot]=t,e.prototype[J]=Ut.html;let n=new Set,l=e.observedAttributes;if(Array.isArray(l))for(let y of l)n.add(String(y).toLowerCase());this[di].set(t,{elementClass:e,extends:o&&o.extends?o.extends.toLowerCase():null,observedAttributes:n,lifecycleCallbacks:{connectedCallback:e.prototype.connectedCallback,disconnectedCallback:e.prototype.disconnectedCallback,attributeChangedCallback:e.prototype.attributeChangedCallback}}),this[Na].set(e,t);let a=this[ci].get(t);if(a){this[ci].delete(t);for(let y of a)y()}}get(t){return this[di].get(t)?.elementClass}upgrade(t){}whenDefined(t){if(this[Hm])return Promise.reject(new this.#t.DOMException("Failed to execute 'whenDefined' on 'CustomElementRegistry': The custom element registry has been destroyed."));if(!dp.isValidCustomElementName(t))return Promise.reject(new this.#t.DOMException(`Failed to execute 'whenDefined' on 'CustomElementRegistry': Invalid custom element name: "${t}"`));if(this.get(t))return Promise.resolve();return new Promise((e)=>{let o=this[ci].get(t);if(o)o.push(e);else this[ci].set(t,[e])})}getName(t){return this[Na].get(t)||null}[At](){this[Hm]=!0;for(let t of this[di].values())t.elementClass.prototype[m]=null,t.elementClass.prototype[x]=null,t.elementClass.prototype[z]=null,t.elementClass.prototype[ot]=null,t.elementClass.prototype[J]=null;this[di]=new Map,this[Na]=new Map,this[ci]=new Map}}class ps{kind;type;#t=null;constructor(t,e=""){this.kind=typeof t==="string"?"string":"file",this.type=this.kind==="string"?e:t.type,this.#t=t}getAsFile(){if(this.kind==="string")return null;return this.#t}getAsString(t){if(this.kind==="file");t(this.#t)}}class Lo extends ie{lastModified;name;constructor(t,e,o){if(arguments.length<2)throw TypeError("Failed to construct 'File': 2 arguments required, but only "+arguments.length+" present.");super(t,o);this.name=e,this.lastModified=o&&o.lastModified?o.lastModified:Date.now()}}class zl extends Array{add(t,e){if(t instanceof Lo){this.push(new ps(t));return}if(!e)throw TypeError("Failed to execute 'add' on 'DataTransferItemList': parameter 1 is not of type 'File'.");this.push(new ps(t,e))}remove(t){this.splice(t,1)}clear(){while(this.length)this.pop()}}class bp{dropEffect="none";effectAllowed="none";items=new zl;get files(){let t=[];for(let e of this.items)if(e.kind==="file"){let o=e.getAsFile();if(o)t.push(o)}return t}get types(){return this.items.map((t)=>t.type)}clearData(){this.items.clear()}setData(t,e){for(let o=0,s=this.items.length;o<s;o++)if(this.items[o].type===t){this.items[o]=new ps(e,t);return}this.items.add(e,t)}getData(t){let e=this.#t(t);for(let o=0,s=this.items.length;o<s;o++)if(this.#t(this.items[o].type)===e){let l="";return this.items[o].getAsString((a)=>l=a),l}return""}#t(t){let e=t.toLowerCase();if(e==="text")return"text/plain";if(e==="url")return"text/uri-list";return e}setDragImage(){throw Error("Not implemented.")}}class gp{identifier;target;clientX;clientY;screenX;screenY;pageX;pageY;radiusX;radiusY;rotationAngle;force;constructor(t){this.identifier=t.identifier,this.target=t.target,this.clientX=t.clientX??0,this.clientY=t.clientY??0,this.screenX=t.screenX??0,this.screenY=t.screenY??0,this.pageX=t.pageX??0,this.pageY=t.pageY??0,this.radiusX=t.radiusX??0,this.radiusY=t.radiusY??0,this.rotationAngle=t.rotationAngle??0,this.force=t.force??0}}class br extends C{static NONE=0;static CAPTURING_PHASE=1;static AT_TARGET=2;static BUBBLING_PHASE=3;detail;layerX=0;layerY=0;pageX=0;pageY=0;view;constructor(t,e=null){super(t,e);this.detail=e?.detail??0,this.view=e?.view??null}}class Sp extends C{animationName;elapsedTime;pseudoElement;constructor(t,e=null){super(t,e);this.animationName=e?.animationName??"",this.elapsedTime=e?.elapsedTime??0,this.pseudoElement=e?.pseudoElement??""}}class fp extends C{clipboardData;constructor(t,e=null){super(t,e);this.clipboardData=e?.clipboardData??null}}class Pp extends C{[Um];constructor(t,e=null){super(t,e);this[Um]=e?.detail??null}get detail(){return this[Um]}initCustomEvent(t,e=!1,o=!1,s=null){this[Qt]=t,this[Gs]=e,this[Hi]=o,this[Um]=s}}class rn extends br{message;filename;lineno;colno;error;constructor(t,e=null){super(t,e);this.message=e?.message??"",this.filename=e?.filename??"",this.lineno=e?.lineno??0,this.colno=e?.colno??0,this.error=e?.error??null}}class us extends br{relatedTarget;constructor(t,e=null){super(t,e);this.relatedTarget=e?.relatedTarget??null}}class Jl extends C{newURL;oldURL;constructor(t,e=null){super(t,e);this.newURL=e?.newURL??"",this.oldURL=e?.oldURL??""}}class Ap extends br{data;dataTransfer;inputType;isComposing;constructor(t,e=null){super(t,e);this.data=e?.data??"",this.dataTransfer=e?.dataTransfer??null,this.inputType=e?.inputType??"",this.isComposing=e?.isComposing??!1}}class wp extends br{static DOM_KEY_LOCATION_STANDARD=0;static DOM_KEY_LOCATION_LEFT=1;static DOM_KEY_LOCATION_RIGHT=2;static DOM_KEY_LOCATION_NUMPAD=3;altKey;code;ctrlKey;isComposing;key;location;metaKey;repeat;shiftKey;keyCode;which;constructor(t,e=null){super(t,e);this.altKey=e?.altKey??!1,this.code=e?.code??"",this.ctrlKey=e?.ctrlKey??!1,this.isComposing=e?.isComposing??!1,this.key=e?.key??"",this.location=e?.location??0,this.metaKey=e?.metaKey??!1,this.repeat=e?.repeat??!1,this.shiftKey=e?.shiftKey??!1,this.keyCode=e?.keyCode??0,this.which=e?.which??e?.keyCode??0}getModifierState(t){if(arguments.length<1)throw TypeError("Failed to execute 'getModifierState' on 'KeyboardEvent': 1 argument required, but only 0 present.");switch(String(t).toLowerCase()){case"alt":case"altgraph":return this.altKey;case"control":return this.ctrlKey;case"meta":return this.metaKey;case"shift":return this.shiftKey;default:return!1}}}class Ep extends C{data;origin;lastEventId;source;ports;constructor(t,e=null){super(t,e);this.data=e?.data??null,this.origin=e?.origin??"",this.lastEventId=e?.lastEventId??"",this.source=e?.source??null,this.ports=e?.ports??[]}}class qe extends br{altKey;button;buttons;clientX;clientY;ctrlKey;metaKey;movementX;movementY;offsetX;offsetY;region;relatedTarget;screenX;screenY;shiftKey;constructor(t,e=null){super(t,e);this.altKey=e?.altKey??!1,this.button=e?.button??0,this.buttons=e?.buttons??0,this.clientX=e?.clientX??0,this.clientY=e?.clientY??0,this.ctrlKey=e?.ctrlKey??!1,this.metaKey=e?.metaKey??!1,this.movementX=e?.movementX??0,this.movementY=e?.movementY??0,this.offsetX=e?.offsetX??0,this.offsetY=e?.offsetY??0,this.region=e?.region??"",this.relatedTarget=e?.relatedTarget??null,this.screenX=e?.screenX??0,this.screenY=e?.screenY??0,this.shiftKey=e?.shiftKey??!1}}class Zl extends qe{pointerId;width;height;pressure;tangentialPressure;tiltX;tiltY;twist;altitudeAngle;azimuthAngle;pointerType;isPrimary;coalescedEvents;predictedEvents;constructor(t,e=null){super(t,e);this.pointerId=e?.pointerId??0,this.width=e?.width??1,this.height=e?.height??1,this.pressure=e?.pressure??0,this.tangentialPressure=e?.tangentialPressure??0,this.tiltX=e?.tiltX??0,this.tiltY=e?.tiltY??0,this.twist=e?.twist??0,this.altitudeAngle=e?.altitudeAngle??0,this.azimuthAngle=e?.azimuthAngle??0,this.pointerType=e?.pointerType??"",this.isPrimary=e?.isPrimary??!1,this.coalescedEvents=e?.coalescedEvents??[],this.predictedEvents=e?.predictedEvents??[]}getCoalescedEvents=()=>this.coalescedEvents;getPredictedEvents=()=>this.predictedEvents}class ko extends C{lengthComputable;loaded;total;constructor(t,e=null){super(t);this.lengthComputable=e?.lengthComputable??!1,this.loaded=e?.loaded??0,this.total=e?.total??0}}class nc extends C{key;oldValue;newValue;url;storageArea;constructor(t,e=null){super(t);this.key=e?.key??null,this.oldValue=e?.oldValue??null,this.newValue=e?.newValue??null,this.url=e?.url??"",this.storageArea=e?.storageArea??null}}class ta extends C{submitter;constructor(t,e=null){super(t,e);this.submitter=e?.submitter??null}}class xp extends br{altKey;changedTouches;ctrlKey;metaKey;shiftKey;targetTouches;touches;constructor(t,e=null){super(t,e);this.altKey=e?.altKey??!1,this.changedTouches=e?.changedTouches??[],this.ctrlKey=e?.ctrlKey??!1,this.metaKey=e?.metaKey??!1,this.shiftKey=e?.shiftKey??!1,this.targetTouches=e?.targetTouches??[],this.touches=e?.touches??[]}}class vp extends br{static DOM_DELTA_PIXEL=0;static DOM_DELTA_LINE=1;static DOM_DELTA_PAGE=2;deltaX;deltaY;deltaZ;deltaMode;constructor(t,e=null){super(t,e);this.deltaX=e?.deltaX??0,this.deltaY=e?.deltaY??0,this.deltaZ=e?.deltaZ??0,this.deltaMode=e?.deltaMode??0}}import{URL as hP}from"url";import{Blob as cP}from"buffer";class Le extends hP{constructor(t,e){try{super(t,e)}catch(o){super("about:blank");if(this[m])throw new this[m].TypeError("Invalid URL");throw o}}static createObjectURL(t){if(t instanceof ie){let e=new cP([t[Nt]],{type:t.type});return super.createObjectURL(e)}return super.createObjectURL(t)}}import{isIP as dP}from"net";var bP=/^(about|blob|data):$/,gP=["","no-referrer","no-referrer-when-downgrade","same-origin","origin","strict-origin","origin-when-cross-origin","strict-origin-when-cross-origin","unsafe-url"];class hs{static prepareRequest(t,e){if(!e.referrerPolicy)e[Fa]="strict-origin-when-cross-origin";if(e.referrer&&e.referrer!=="no-referrer")e[Pr]=this.getSentReferrer(t,e);else e[Pr]="no-referrer"}static getInitialReferrer(t,e){if(e===""||e==="no-referrer"||e==="client")return e;else if(e){let o=e instanceof Le?e:new Le(e,t.location.href);return o.origin===t.location.origin?o:"client"}return"client"}static getReferrerPolicyFromHeader(t){let e=t.get("Referrer-Policy");if(!e)return"";let o=e.split(/[,\s]+/),s="";for(let n of o)if(n&&gP.includes(n))s=n;return s}static getSentReferrer(t,e){if(e.referrer==="about:client"&&t.origin==="null")return"no-referrer";let o=new Le(e.url),s=e.referrer==="about:client"?new Le(t.href):new Le(e.referrer);if(bP.test(s.protocol))return"no-referrer";switch(s.username="",s.password="",s.hash="",e.referrerPolicy){case"no-referrer":return"no-referrer";case"origin":return new Le(s.origin);case"unsafe-url":return s;case"strict-origin":if(this.isURLPotentiallyTrustWorthy(s)&&!this.isURLPotentiallyTrustWorthy(o))return"no-referrer";return new Le(s.origin);case"strict-origin-when-cross-origin":if(s.origin===o.origin)return s;if(this.isURLPotentiallyTrustWorthy(s)&&!this.isURLPotentiallyTrustWorthy(o))return"no-referrer";return new Le(s.origin);case"same-origin":if(s.origin===o.origin)return s;return"no-referrer";case"origin-when-cross-origin":if(s.origin===o.origin)return s;return new Le(s.origin);case"no-referrer-when-downgrade":if(this.isURLPotentiallyTrustWorthy(s)&&!this.isURLPotentiallyTrustWorthy(o))return"no-referrer";return s}return"no-referrer"}static isURLPotentiallyTrustWorthy(t){if(/^about:(blank|srcdoc)$/.test(t.href))return!0;if(t.protocol==="data:")return!0;if(/^(blob|filesystem):$/.test(t.protocol))return!0;return this.isOriginPotentiallyTrustWorthy(t)}static isOriginPotentiallyTrustWorthy(t){if(/^(http|ws)s:$/.test(t.protocol))return!0;let e=t.host.replace(/(^\[)|(]$)/g,""),o=dP(e);if(o===4&&/^127\./.test(e))return!0;if(o===6&&/^(((0+:){7})|(::(0+:){0,6}))0*1$/.test(e))return!0;if(t.host==="localhost"||t.host.endsWith(".localhost"))return!1;if(t.protocol==="file:")return!0;return!1}}import LP from"http";import kP from"https";import qa from"zlib";import{URL as yc}from"url";import rS from"fs";import MP from"path";import sn from"stream";class Ya{static parse(t){if(!/^data:/i.test(t))throw TypeError('`uri` does not appear to be a Data URI (must begin with "data:")');t=t.replace(/\r?\n/g,"");let e=t.indexOf(",");if(e===-1||e<=4)throw TypeError("malformed data: URI");let o=t.substring(5,e).split(";"),s="",n=!1,l=o[0]||"text/plain";for(let c=1;c<o.length;c++)if(o[c]==="base64")n=!0;else if(o[c]){if(l+=`;${o[c]}`,o[c].indexOf("charset=")===0)s=o[c].substring(8)}if(!o[0]&&!s.length)l+=";charset=US-ASCII",s="US-ASCII";let a=n?"base64":"ascii",y=unescape(t.substring(e+1)),u=Buffer.from(y,a);return{type:l,charset:s,buffer:u}}}import{URL as zg}from"url";class Jo{static isCORS(t,e){if(t=typeof t==="string"?new zg(t):t,e=typeof e==="string"?new zg(e):e,e.protocol==="about:"||e.protocol==="javascript:")return!1;return t.hostname!==e.hostname&&!t.hostname.endsWith(e.hostname)||t.protocol!==e.protocol}}import{URL as Gb}from"url";import{ReadableStream as SP}from"stream/web";var Zo;(function(t){t[t.boundary=0]="boundary",t[t.headerStart=2]="headerStart",t[t.header=3]="header",t[t.data=5]="data"})(Zo||(Zo={}));var lc={lf:10,cr:13};class ac{formData;boundary;boundaryIndex=0;state=Zo.boundary;data={contentDisposition:null,value:[],contentType:null,header:""};constructor(t,e){let o=`--${e}`;this.boundary=new Uint8Array(o.length),this.formData=new t.FormData;for(let s=0,n=o.length;s<n;s++)this.boundary[s]=o.charCodeAt(s)}write(t){let e,o;for(let s=0,n=t.length;s<n;s++)switch(e=t[s],o=t[s+1],this.state){case Zo.boundary:if(e===this.boundary[this.boundaryIndex])this.boundaryIndex++;else this.boundaryIndex=0;if(this.boundaryIndex===this.boundary.length)this.state=Zo.headerStart,this.boundaryIndex=0;break;case Zo.headerStart:if(o!==lc.cr&&o!==lc.lf)this.data.header="",this.state=t[s-2]===lc.lf?Zo.data:Zo.header;break;case Zo.header:if(e===lc.cr){if(this.data.header){let l=this.data.header.split(":");if(l.length>1){let a=l[0].toLowerCase(),y=l[1].trim();switch(a){case"content-disposition":this.data.contentDisposition=this.getContentDisposition(y);break;case"content-type":this.data.contentType=y;break}}}this.state=Zo.headerStart}else this.data.header+=String.fromCharCode(e);break;case Zo.data:if(e===this.boundary[this.boundaryIndex])this.boundaryIndex++;else this.boundaryIndex=0;if(this.boundaryIndex===this.boundary.length){if(this.state=Zo.headerStart,this.data.value.length)this.appendFormData(this.data.contentDisposition.name,Buffer.from(this.data.value.slice(0,-(this.boundary.length+1))),this.data.contentDisposition.filename,this.data.contentType),this.data.value=[],this.data.contentDisposition=null,this.data.contentType=null;this.boundaryIndex=0}else this.data.value.push(e);break}}end(){if(this.data.contentDisposition&&this.data.value.length)this.appendFormData(this.data.contentDisposition.name,Buffer.from(this.data.value.slice(0,-2)),this.data.contentDisposition.filename,this.data.contentType);return this.formData}appendFormData(t,e,o,s){if(!e.length)return;if(o)this.formData.append(t,new Lo([e],o,{type:s}));else this.formData.append(t,e.toString())}getContentDisposition(t){let e=/([a-z]+) *= *"([^"]+)"/g,o={},s;while(s=e.exec(t))o[s[1]]=s[2];return o}}import{Buffer as ea}from"buffer";class zn{static async streamToFormData(t,e,o){if(!/multipart/i.test(o))throw new t.DOMException(`Failed to build FormData object: The "content-type" header isn't of type "multipart/form-data".`,w.invalidStateError);let s=e.body;if(!s)throw new t.DOMException("Failed to build FormData object: The response body is null.",w.invalidStateError);let n=o.match(/boundary=(?:"([^"]+)"|([^;]+))/i);if(!n)throw new t.DOMException(`Failed to build FormData object: The "content-type" header doesn't contain any multipart boundary.`,w.invalidStateError);let l=s.getReader(),a=new ac(t,n[1]||n[2]),y=[],u,c=0,d=await l.read();while(!d.done){if(e[Qe])throw e[Qe];if(e[Se])throw new t.DOMException("Failed to read response body: The stream was aborted.",w.abortError);a.write(d.value),d=await l.read()}try{u=typeof y[0]==="string"?ea.from(y.join("")):ea.concat(y,c)}catch(g){throw new t.DOMException(`Could not create Buffer from response body. Error: ${g.message}.`,w.invalidStateError)}return{formData:a.end(),buffer:u}}static formDataToStream(t){let e="----HappyDOMFormDataBoundary"+Math.random().toString(36),o=[],s=`--${e}\r
28
28
  Content-Disposition: form-data; name="`;for(let[l,a]of t)if(typeof a==="string")o.push(ea.from(`${s}${this.escapeName(l)}"\r
29
29
  \r
30
30
  ${a.replace(/\r(?!\n)|(?<!\r)\n/g,`\r
@@ -35,7 +35,7 @@ Content-Type: ${a.type||"application/octet-stream"}\r
35
35
  `)),o.push(a[Nt]),o.push(ea.from(`\r
36
36
  `));o.push(ea.from(`--${e}--\r
37
37
  `));let n=ea.concat(o);return{contentType:`multipart/form-data; boundary=${e}`,contentLength:n.length,buffer:n,stream:new SP({start(l){l.enqueue(n),l.close()}})}}static escapeName(t,e=!1){return(e?t:t.replace(/\r?\n|\r/g,`\r
38
- `)).replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22")}}import{ReadableStream as mc}from"stream/web";import{URLSearchParams as fP}from"url";class ra{#t=[];constructor(t,e){if(!t)return;if(e){let s=t[Vt]?t[Vt]:t;if(e.form!==s)throw new this[m].DOMException("The specified element is not owned by this form element",w.notFoundError);if(!(e[z]==="INPUT"&&(e.type==="submit"||e.type==="image")||e[z]==="BUTTON"&&e.type==="submit"))throw new this[m].TypeError("The specified element is not a submit button")}let o=t[lo]();for(let s of o){let n=s.name;if(n)switch(s[z]){case"INPUT":if(s.disabled)break;switch(s.type){case"file":if(s[$o].length===0)this.append(n,new Mo([],"",{type:"application/octet-stream"}));else for(let l of s[$o])this.append(n,l);break;case"checkbox":case"radio":if(s.checked)this.append(n,s.value);break;case"submit":case"reset":case"button":if(s===e&&s.value)this.append(n,s.value);break;default:this.append(n,s.value);break}break;case"BUTTON":if(s===e&&s.value)this.append(n,s.value);break;case"TEXTAREA":case"SELECT":this.append(n,s.value);break}}}forEach(t,e){for(let o of this.#t)t.call(e,o.value,o.name,this)}append(t,e,o){if(o&&!(e instanceof ie))throw new this[m].TypeError('Failed to execute "append" on "FormData": parameter 2 is not of type "Blob".');this.#t.push({name:t,value:this.#e(e,o)})}delete(t){let e=[];for(let o of this.#t)if(o.name!==t)e.push(o);this.#t=e}get(t){for(let e of this.#t)if(e.name===t)return e.value;return null}getAll(t){let e=[];for(let o of this.#t)if(o.name===t)e.push(o.value);return e}has(t){for(let e of this.#t)if(e.name===t)return!0;return!1}set(t,e,o){for(let s of this.#t)if(s.name===t){s.value=this.#e(e,o);return}this.append(t,e)}*keys(){for(let t of this.#t)yield t.name}*values(){for(let t of this.#t)yield t.value}*entries(){for(let t of this.#t)yield[t.name,t.value]}*[Symbol.iterator](){for(let t of this.#t)yield[t.name,t.value]}#e(t,e){if(t instanceof Mo){if(e){let o=new Mo([],e,{type:t.type,lastModified:t.lastModified});return o[Nt]=t[Nt],o}return t}if(t instanceof ie){let o=new Mo([],"blob",{type:t.type});return o[Nt]=t[Nt],o}return String(t)}}import{Buffer as Zn}from"buffer";import Jg from"stream";class tr{static getBodyStream(t){if(t===null||t===void 0)return{stream:null,buffer:null,contentType:null,contentLength:null};else if(t instanceof fP){let o=Zn.from(t.toString());return{buffer:o,stream:this.toReadableStream(o),contentType:"application/x-www-form-urlencoded;charset=UTF-8",contentLength:o.length}}else if(t instanceof ie){let o=t[Nt];return{buffer:o,stream:this.toReadableStream(o),contentType:t.type,contentLength:t.size}}else if(Zn.isBuffer(t))return{buffer:t,stream:this.toReadableStream(t),contentType:null,contentLength:t.length};else if(t instanceof ArrayBuffer){let o=Zn.from(t);return{buffer:o,stream:this.toReadableStream(o),contentType:null,contentLength:t.byteLength}}else if(ArrayBuffer.isView(t)){let o=Zn.from(t.buffer,t.byteOffset,t.byteLength);return{buffer:o,stream:this.toReadableStream(o),contentType:null,contentLength:t.byteLength}}else if(t instanceof mc)return{buffer:null,stream:t,contentType:null,contentLength:null};else if(t instanceof ra)return Jn.formDataToStream(t);let e=Zn.from(String(t));return{buffer:e,stream:this.toReadableStream(e),contentType:"text/plain;charset=UTF-8",contentLength:e.length}}static cloneBodyStream(t,e){if(e.bodyUsed)throw new t.DOMException("Failed to clone body stream of request: Request body is already used.",w.invalidStateError);if(e.body===null||e.body===void 0)return null;if(e[Nt])return this.toReadableStream(e[Nt]);if(e.body[Lm]){let n=new Jg.PassThrough,l=new Jg.PassThrough;e.body[Lm].pipe(n),e.body[Lm].pipe(l);let a=this.nodeToWebStream(n);if(js in e)e[js]=a;else e.body=a;return this.nodeToWebStream(l)}let[o,s]=e.body.tee();if(js in e)e[js]=o;else e.body=o;return s}static async consumeBodyStream(t,e){let o=e.body;if(o===null||!(o instanceof mc))return Zn.alloc(0);if(e[Qe])throw e[Qe];let s=o.getReader(),n=[],l=0;try{let a=await s.read();while(!a.done){if(e[Qe])throw e[Qe];if(e[Se])throw new t.DOMException("Failed to read response body: The stream was aborted.",w.abortError);let y=a.value;l+=y.length,n.push(y),a=await s.read()}}catch(a){if(a instanceof re)throw a;throw new t.DOMException(`Failed to read response body. Error: ${a.message}.`,w.encodingError)}try{if(typeof n[0]==="string")return Zn.from(n.join(""));return Zn.concat(n,l)}catch(a){throw new t.DOMException(`Could not create Buffer from response body. Error: ${a.message}.`,w.invalidStateError)}}static toReadableStream(t){return new mc({start(e){e.enqueue(t),e.close()}})}static nodeToWebStream(t){let e=new mc({start(o){t.on("data",(s)=>{o.enqueue(s)}),t.on("end",()=>{o.close()}),t.on("error",(s)=>{o.error(s)})}});return e[Lm]=t,e}}var PP=["","no-referrer","no-referrer-when-downgrade","same-origin","origin","strict-origin","origin-when-cross-origin","strict-origin-when-cross-origin","unsafe-url"],AP=["error","manual","follow"],wP=["data:","http:","https:"],EP=["TRACE","TRACK","CONNECT"],xP=/^[A-Z]+$/;class ri{static validateMethod(t){if(!t.method||EP.includes(t.method))throw new re(`'${t.method||""}' is not a valid HTTP method.`,w.invalidStateError);if(!xP.test(t.method))throw new re(`'${t.method}' HTTP method is unsupported.`,w.invalidStateError)}static validateBody(t){if(t.body&&(t.method==="GET"||t.method==="HEAD"))throw new re("Request with GET/HEAD method cannot have body.",w.invalidStateError)}static validateURL(t){if(t.username!==""||t.password!=="")throw new re(`${t} is an url with embedded credentials.`,w.notSupportedError)}static validateReferrerPolicy(t){if(!PP.includes(t))throw new re(`Invalid referrer policy "${t}".`,w.syntaxError)}static validateRedirect(t){if(!AP.includes(t))throw new re(`Invalid redirect "${t}".`,w.syntaxError)}static validateSchema(t){if(!wP.includes(t[Pe].protocol))throw new re(`Failed to fetch from "${t.url}": URL scheme "${t[Pe].protocol.replace(/:$/,"")}" is not supported.`,w.notSupportedError)}}class oi{static stringToCookie(t,e){let o=e.split(";"),s=o.shift();if(!s)return null;let n=s.indexOf("="),l=n!==-1?s.slice(0,n).trim():s.trim(),a=n!==-1?s.slice(n+1).trim():null,y=Object.assign({},zh,{key:l,value:a,originURL:t});if(!y.key)return null;for(let c of o){let d=c.indexOf("="),g=d!==-1?c.slice(0,d).trim().toLowerCase():c.trim().toLowerCase(),f=d!==-1?c.slice(d+1).trim():"";switch(g){case"expires":y.expires=new Date(f);break;case"max-age":y.expires=new Date(parseInt(f,10)*1000+Date.now());break;case"domain":y.domain=f;break;case"path":y.path=f[0]==="/"?f:`/${f}`;break;case"httponly":y.httpOnly=!0;break;case"secure":y.secure=!0;break;case"samesite":switch(f.toLowerCase()){case"strict":y.sameSite=zs.strict;break;case"lax":y.sameSite=zs.lax;break;case"none":y.sameSite=zs.none}break}}let u=y.key.toLowerCase();if(u.startsWith("__secure-")&&!y.secure)return null;if(u.startsWith("__host-")&&(!y.secure||y.path!=="/"||y.domain))return null;return y}static cookiesToString(t){let e=[];for(let o of t)if(o.value!==null)e.push(`${o.key}=${o.value}`);else e.push(o.key);return e.join("; ")}}import{URL as Zg}from"url";var tS=["accept-charset","accept-encoding","access-control-request-headers","access-control-request-method","connection","content-length","content-transfer-encoding","cookie","cookie2","date","dnt","expect","host","keep-alive","origin","referer","te","trailer","transfer-encoding","upgrade","via"];class bs{static removeForbiddenHeaders(t){for(let e of Object.keys(t[ze]))if(tS.includes(e)||e.startsWith("proxy-")||e.startsWith("sec-"))delete t[ze][e]}static isHeaderForbidden(t){return tS.includes(t.toLowerCase())}static getRequestHeaders(t){let e=new t.window.Headers(t.baseHeaders);t.request.headers.forEach((l,a)=>{e.set(a,l)});let o=new Zg(t.window.location.href),s=ti.isCORS(o,t.request[Pe]);if(e.set("Accept-Encoding","gzip, deflate, br"),e.set("Connection","close"),!e.has("User-Agent"))e.set("User-Agent",t.window.navigator.userAgent);if(t.request[Pr]instanceof Zg)e.set("Referer",t.request[Pr].href);if(t.request.credentials==="include"||t.request.credentials==="same-origin"&&!s){let l=t.browserFrame.page.context.cookieContainer.getCookies(t.request[Pe],!1);if(l.length>0)e.set("Cookie",oi.cookiesToString(l))}else e.delete("Cookie"),e.delete("Cookie2");if(!e.has("Accept"))e.set("Accept","*/*");if(!e.has("Content-Length")&&t.request[xl]!==null)e.set("Content-Length",String(t.request[xl]));if(!e.has("Content-Type")&&t.request[xe])e.set("Content-Type",t.request[xe]);if(s)e.set("Origin",o.origin);let n={};for(let l of Object.values(e[ze]))n[l.name]=l.value.join(", ");return n}}class Ni{[Ks];[js];[Ee]="cors";[Hh];[jh];[Fa];[qh];[xi]=!1;[$h];[Se]=!1;[Qe]=null;[xl]=null;[xe]=null;[Pr]="client";[Pe];[di];constructor(t,e){let o=this[m];if(!o)throw TypeError("Failed to construct 'Request': 'Request' was constructed outside a Window context.");if(typeof t!=="string"&&!t)throw new o.TypeError("Failed to construct 'Request': 1 argument required, only 0 present.");if(this[Ks]=(e?.method||t.method||"GET").toUpperCase(),e?.mode)switch(e.mode){case"navigate":case"websocket":throw new o.DOMException(`Failed to construct 'Request': Cannot construct a Request with a RequestInit whose mode member is set as '${e.mode}'.`,w.securityError);case"same-origin":case"no-cors":case"cors":this[Ee]=e.mode;break;default:throw new o.DOMException(`Failed to construct 'Request': The provided value '${e.mode}' is not a valid enum value of type RequestMode.`,w.syntaxError)}else if(t instanceof Ni)this[Ee]=t.mode;let{stream:s,buffer:n,contentType:l,contentLength:a}=tr.getBodyStream(t instanceof Ni&&(t[di]||t.body)?t[di]||tr.cloneBodyStream(o,t):e?.body??null);if(this[di]=n,this[js]=s,this[$h]=e?.credentials||t.credentials||"same-origin",this[Hh]=new this[m].Headers(e?.headers||t.headers||{}),bs.removeForbiddenHeaders(this.headers),a)this[xl]=a;else if(!this.body&&(this.method==="POST"||this.method==="PUT"))this[xl]=0;if(l){if(!this.headers.has("Content-Type"))this.headers.set("Content-Type",l);this[xe]=l}else if(t instanceof Ni&&t[xe])this[xe]=t[xe];if(this[jh]=e?.redirect||t.redirect||"follow",this[Fa]=(e?.referrerPolicy||t.referrerPolicy||"").toLowerCase(),this[qh]=e?.signal||t.signal||new o.AbortSignal,this[Pr]=ds.getInitialReferrer(o,e?.referrer!==null&&e?.referrer!==void 0?e?.referrer:t.referrer),t instanceof Gb)this[Pe]=t;else try{if(t instanceof Ni&&t.url)this[Pe]=new Gb(t.url,o.location.href);else this[Pe]=new Gb(t,o.location.href)}catch(y){throw new o.DOMException(`Failed to construct 'Request': Invalid URL "${t}" on document location '${o.location}'.${o.location.origin==="null"?" Relative URLs are not permitted on current document location.":""}`,w.notSupportedError)}ri.validateMethod(this),ri.validateBody(this),ri.validateURL(this[Pe]),ri.validateReferrerPolicy(this.referrerPolicy),ri.validateRedirect(this.redirect)}get method(){return this[Ks]}get body(){return this[js]}get mode(){return this[Ee]}get headers(){return this[Hh]}get redirect(){return this[jh]}get referrerPolicy(){return this[Fa]}get signal(){return this[qh]}get bodyUsed(){return this[xi]}get credentials(){return this[$h]}get referrer(){if(!this[Pr]||this[Pr]==="no-referrer")return"";if(this[Pr]==="client")return"about:client";return this[Pr].toString()}get url(){return this[Pe].href}get[Symbol.toStringTag](){return"Request"}async arrayBuffer(){let t=this[m];if(this[xi])throw new t.DOMException(`Body has already been used for "${this.url}".`,w.invalidStateError);let e=new it(t).getAsyncTaskManager();this[xi]=!0;let o=e.startTask(()=>{this[Se]=!0,this.signal[ci]()}),s;try{s=await tr.consumeBodyStream(t,this)}catch(n){throw e.endTask(o),n}return e.endTask(o),s.buffer.slice(s.byteOffset,s.byteOffset+s.byteLength)}async blob(){let t=this.headers.get("Content-Type")||"",e=await this.arrayBuffer();return new ie([e],{type:t})}async buffer(){let t=this[m];if(this[xi])throw new t.DOMException(`Body has already been used for "${this.url}".`,w.invalidStateError);let e=new it(t).getAsyncTaskManager();this[xi]=!0;let o=e.startTask(()=>{this[Se]=!0,this.signal[ci]()}),s;try{s=await tr.consumeBodyStream(t,this)}catch(n){throw e.endTask(o),n}return e.endTask(o),s}async text(){let t=this[m];if(this[xi])throw new t.DOMException(`Body has already been used for "${this.url}".`,w.invalidStateError);let e=new it(t).getAsyncTaskManager();this[xi]=!0;let o=e.startTask(()=>{this[Se]=!0,this.signal[ci]()}),s;try{s=await tr.consumeBodyStream(t,this)}catch(n){throw e.endTask(o),n}return e.endTask(o),new TextDecoder().decode(s)}async json(){let t=await this.text();return JSON.parse(t)}async formData(){let t=this[m],e=new it(t).getAsyncTaskManager(),o=this.headers.get("Content-Type")??this[xe];if(this.body&&o&&/multipart/i.test(o)){if(this[xi])throw new t.DOMException(`Body has already been used for "${this.url}".`,w.invalidStateError);this[xi]=!0;let s=e.startTask(()=>{this[Se]=!0,this.signal[ci]()}),n;try{n=(await Jn.streamToFormData(t,this,o)).formData}catch(l){throw e.endTask(s),l}return e.endTask(s),n}if(o?.startsWith("application/x-www-form-urlencoded")){let s=new URLSearchParams(await this.text()),n=new t.FormData;for(let[l,a]of s)n.append(l,a);return n}throw new t.DOMException('Failed to construct FormData object: The "content-type" header is neither "application/x-www-form-urlencoded" nor "multipart/form-data".',w.invalidStateError)}clone(){return new this[m].Request(this)}}import{URLSearchParams as vP}from"url";import{Buffer as TP}from"buffer";var CP=[301,302,303,307,308];class Ro{body=null;bodyUsed=!1;redirected=!1;type="basic";url="";status;statusText;ok;headers;[qo]=null;[Nt]=null;[Yr]=null;[Se]=!1;[Qe]=null;constructor(t,e){if(!this[m])throw TypeError(`Failed to construct '${this.constructor.name}': '${this.constructor.name}' was constructed outside a Window context.`);if(this.status=e?.status!==void 0?e.status:200,this.statusText=e?.statusText||"",this.ok=this.status>=200&&this.status<300,this.headers=new this[m].Headers(e?.headers),this.headers.delete("Set-Cookie"),this.headers.delete("Set-Cookie2"),t){let{stream:o,buffer:s,contentType:n}=tr.getBodyStream(t);if(this.body=o,s)this[Nt]=s;if(n&&!this.headers.has("Content-Type"))this.headers.set("Content-Type",n)}}get[Symbol.toStringTag](){return"Response"}async arrayBuffer(){let t=this[m];if(this.bodyUsed)throw new t.DOMException(`Body has already been used for "${this.url}".`,w.invalidStateError);let e=new it(t).getBrowserFrame();if(!e)return new ArrayBuffer(0);let o=e[Pt];this.bodyUsed=!0;let s=this[Nt];if(!s){let n=o.startTask(()=>{this[Se]=!0});try{s=await tr.consumeBodyStream(t,this)}catch(l){throw o.endTask(n),l}o.endTask(n)}return this.#t(s),s.buffer.slice(s.byteOffset,s.byteOffset+s.byteLength)}async blob(){let t=this.headers.get("Content-Type")||"",e=await this.arrayBuffer();return new ie([e],{type:t})}async buffer(){let t=this[m];if(this.bodyUsed)throw new t.DOMException(`Body has already been used for "${this.url}".`,w.invalidStateError);let e=new it(t).getBrowserFrame();if(!e)return TP.alloc(0);let o=e[Pt];this.bodyUsed=!0;let s=this[Nt];if(!s){let n=o.startTask(()=>{this[Se]=!0});try{s=await tr.consumeBodyStream(t,this)}catch(l){throw o.endTask(n),l}o.endTask(n)}return this.#t(s),s}async text(){let t=this[m];if(this.bodyUsed)throw new t.DOMException(`Body has already been used for "${this.url}".`,w.invalidStateError);let e=new it(t).getBrowserFrame();if(!e)return"";let o=e[Pt];this.bodyUsed=!0;let s=this[Nt];if(!s){let n=o.startTask(()=>{this[Se]=!0});try{s=await tr.consumeBodyStream(t,this)}catch(l){throw o.endTask(n),l}o.endTask(n)}return this.#t(s),new TextDecoder().decode(s)}async json(){let t=await this.text();return JSON.parse(t)}async formData(){let t=this[m],e=new it(t).getBrowserFrame();if(!e)return new t.FormData;let o=e[Pt],s=this.headers.get("Content-Type");if(s&&this.body&&/multipart/i.test(s)){if(this.bodyUsed)throw new t.DOMException(`Body has already been used for "${this.url}".`,w.invalidStateError);this.bodyUsed=!0;let n=e[Pt].startTask(()=>{this[Se]=!0}),l,a;try{let y=await Jn.streamToFormData(t,this,s);l=y.formData,a=y.buffer}catch(y){throw o.endTask(n),y}return this.#t(a),o.endTask(n),l}if(s?.startsWith("application/x-www-form-urlencoded")){let n=new vP(await this.text()),l=new t.FormData;for(let[a,y]of n)l.append(a,y);return l}throw new t.DOMException('Failed to build FormData object: The "content-type" header is neither "application/x-www-form-urlencoded" nor "multipart/form-data".',w.invalidStateError)}clone(){let t=this[m],e=tr.cloneBodyStream(t,this),o=new t.Response(e,{status:this.status,statusText:this.statusText,headers:this.headers});return o[qo]=this[qo],o[Nt]=this[Nt],o.ok=this.ok,o.redirected=this.redirected,o.type=this.type,o.url=this.url,o}#t(t){if(this[Nt]=t,this[qo]?.response?.waitingForBody)this[qo].response.body=t,this[qo].response.waitingForBody=!1}static redirect(t,e=302){let o=this[m];if(!CP.includes(e))throw new o.DOMException("Failed to create redirect response: Invalid redirect status code.",w.invalidStateError);return new o.Response(null,{headers:{location:new Le(t).toString()},status:e})}static error(){let t=new this[m].Response(null,{status:0,statusText:""});return t.type="error",t}static json(t,e){let o=this[m],s=JSON.stringify(t);if(s===void 0)throw new o.TypeError("data is not JSON serializable");let n=new o.Headers(e&&e.headers);if(!n.has("Content-Type"))n.set("Content-Type","application/json");return new o.Response(s,{status:200,...e,headers:n})}}var NP=[301,302,303,307,308];class tl{static isRedirect(t){return NP.includes(t)}static isMaxRedirectsReached(t){return t>=20}}class Ka{static parseResponseHeaders(t){let e=new t.browserFrame.window.Headers,o=null;for(let s of t.rawHeaders)if(!o)o=s;else{let n=o.toLowerCase();if(n==="set-cookie"||n==="set-cookie2"){let l=oi.stringToCookie(t.requestURL,s);if(l)t.browserFrame.page.context.cookieContainer.addCookies([l])}else e.append(o,s);o=null}return e}}var Qa={cert:`-----BEGIN CERTIFICATE-----
38
+ `)).replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22")}}import{ReadableStream as mc}from"stream/web";import{URLSearchParams as fP}from"url";class ra{#t=[];constructor(t,e){if(!t)return;if(e){let s=t[Vt]?t[Vt]:t;if(e.form!==s)throw new this[m].DOMException("The specified element is not owned by this form element",w.notFoundError);if(!(e[z]==="INPUT"&&(e.type==="submit"||e.type==="image")||e[z]==="BUTTON"&&e.type==="submit"))throw new this[m].TypeError("The specified element is not a submit button")}let o=t[so]();for(let s of o){let n=s.name;if(n)switch(s[z]){case"INPUT":if(s.disabled)break;switch(s.type){case"file":if(s[jo].length===0)this.append(n,new Lo([],"",{type:"application/octet-stream"}));else for(let l of s[jo])this.append(n,l);break;case"checkbox":case"radio":if(s.checked)this.append(n,s.value);break;case"submit":case"reset":case"button":if(s===e&&s.value)this.append(n,s.value);break;default:this.append(n,s.value);break}break;case"BUTTON":if(s===e&&s.value)this.append(n,s.value);break;case"TEXTAREA":case"SELECT":this.append(n,s.value);break}}}forEach(t,e){for(let o of this.#t)t.call(e,o.value,o.name,this)}append(t,e,o){if(o&&!(e instanceof ie))throw new this[m].TypeError('Failed to execute "append" on "FormData": parameter 2 is not of type "Blob".');this.#t.push({name:t,value:this.#e(e,o)})}delete(t){let e=[];for(let o of this.#t)if(o.name!==t)e.push(o);this.#t=e}get(t){for(let e of this.#t)if(e.name===t)return e.value;return null}getAll(t){let e=[];for(let o of this.#t)if(o.name===t)e.push(o.value);return e}has(t){for(let e of this.#t)if(e.name===t)return!0;return!1}set(t,e,o){for(let s of this.#t)if(s.name===t){s.value=this.#e(e,o);return}this.append(t,e)}*keys(){for(let t of this.#t)yield t.name}*values(){for(let t of this.#t)yield t.value}*entries(){for(let t of this.#t)yield[t.name,t.value]}*[Symbol.iterator](){for(let t of this.#t)yield[t.name,t.value]}#e(t,e){if(t instanceof Lo){if(e){let o=new Lo([],e,{type:t.type,lastModified:t.lastModified});return o[Nt]=t[Nt],o}return t}if(t instanceof ie){let o=new Lo([],"blob",{type:t.type});return o[Nt]=t[Nt],o}return String(t)}}import{Buffer as Zn}from"buffer";import Jg from"stream";class tr{static getBodyStream(t){if(t===null||t===void 0)return{stream:null,buffer:null,contentType:null,contentLength:null};else if(t instanceof fP){let o=Zn.from(t.toString());return{buffer:o,stream:this.toReadableStream(o),contentType:"application/x-www-form-urlencoded;charset=UTF-8",contentLength:o.length}}else if(t instanceof ie){let o=t[Nt];return{buffer:o,stream:this.toReadableStream(o),contentType:t.type,contentLength:t.size}}else if(Zn.isBuffer(t))return{buffer:t,stream:this.toReadableStream(t),contentType:null,contentLength:t.length};else if(t instanceof ArrayBuffer){let o=Zn.from(t);return{buffer:o,stream:this.toReadableStream(o),contentType:null,contentLength:t.byteLength}}else if(ArrayBuffer.isView(t)){let o=Zn.from(t.buffer,t.byteOffset,t.byteLength);return{buffer:o,stream:this.toReadableStream(o),contentType:null,contentLength:t.byteLength}}else if(t instanceof mc)return{buffer:null,stream:t,contentType:null,contentLength:null};else if(t instanceof ra)return zn.formDataToStream(t);let e=Zn.from(String(t));return{buffer:e,stream:this.toReadableStream(e),contentType:"text/plain;charset=UTF-8",contentLength:e.length}}static cloneBodyStream(t,e){if(e.bodyUsed)throw new t.DOMException("Failed to clone body stream of request: Request body is already used.",w.invalidStateError);if(e.body===null||e.body===void 0)return null;if(e[Nt])return this.toReadableStream(e[Nt]);if(e.body[Lm]){let n=new Jg.PassThrough,l=new Jg.PassThrough;e.body[Lm].pipe(n),e.body[Lm].pipe(l);let a=this.nodeToWebStream(n);if(Ks in e)e[Ks]=a;else e.body=a;return this.nodeToWebStream(l)}let[o,s]=e.body.tee();if(Ks in e)e[Ks]=o;else e.body=o;return s}static async consumeBodyStream(t,e){let o=e.body;if(o===null||!(o instanceof mc))return Zn.alloc(0);if(e[Qe])throw e[Qe];let s=o.getReader(),n=[],l=0;try{let a=await s.read();while(!a.done){if(e[Qe])throw e[Qe];if(e[Se])throw new t.DOMException("Failed to read response body: The stream was aborted.",w.abortError);let y=a.value;l+=y.length,n.push(y),a=await s.read()}}catch(a){if(a instanceof re)throw a;throw new t.DOMException(`Failed to read response body. Error: ${a.message}.`,w.encodingError)}try{if(typeof n[0]==="string")return Zn.from(n.join(""));return Zn.concat(n,l)}catch(a){throw new t.DOMException(`Could not create Buffer from response body. Error: ${a.message}.`,w.invalidStateError)}}static toReadableStream(t){return new mc({start(e){e.enqueue(t),e.close()}})}static nodeToWebStream(t){let e=new mc({start(o){t.on("data",(s)=>{o.enqueue(s)}),t.on("end",()=>{o.close()}),t.on("error",(s)=>{o.error(s)})}});return e[Lm]=t,e}}var PP=["","no-referrer","no-referrer-when-downgrade","same-origin","origin","strict-origin","origin-when-cross-origin","strict-origin-when-cross-origin","unsafe-url"],AP=["error","manual","follow"],wP=["data:","http:","https:"],EP=["TRACE","TRACK","CONNECT"],xP=/^[A-Z]+$/;class ti{static validateMethod(t){if(!t.method||EP.includes(t.method))throw new re(`'${t.method||""}' is not a valid HTTP method.`,w.invalidStateError);if(!xP.test(t.method))throw new re(`'${t.method}' HTTP method is unsupported.`,w.invalidStateError)}static validateBody(t){if(t.body&&(t.method==="GET"||t.method==="HEAD"))throw new re("Request with GET/HEAD method cannot have body.",w.invalidStateError)}static validateURL(t){if(t.username!==""||t.password!=="")throw new re(`${t} is an url with embedded credentials.`,w.notSupportedError)}static validateReferrerPolicy(t){if(!PP.includes(t))throw new re(`Invalid referrer policy "${t}".`,w.syntaxError)}static validateRedirect(t){if(!AP.includes(t))throw new re(`Invalid redirect "${t}".`,w.syntaxError)}static validateSchema(t){if(!wP.includes(t[Pe].protocol))throw new re(`Failed to fetch from "${t.url}": URL scheme "${t[Pe].protocol.replace(/:$/,"")}" is not supported.`,w.notSupportedError)}}class ei{static stringToCookie(t,e){let o=e.split(";"),s=o.shift();if(!s)return null;let n=s.indexOf("="),l=n!==-1?s.slice(0,n).trim():s.trim(),a=n!==-1?s.slice(n+1).trim():null,y=Object.assign({},zh,{key:l,value:a,originURL:t});if(!y.key)return null;for(let c of o){let d=c.indexOf("="),g=d!==-1?c.slice(0,d).trim().toLowerCase():c.trim().toLowerCase(),f=d!==-1?c.slice(d+1).trim():"";switch(g){case"expires":y.expires=new Date(f);break;case"max-age":y.expires=new Date(parseInt(f,10)*1000+Date.now());break;case"domain":y.domain=f;break;case"path":y.path=f[0]==="/"?f:`/${f}`;break;case"httponly":y.httpOnly=!0;break;case"secure":y.secure=!0;break;case"samesite":switch(f.toLowerCase()){case"strict":y.sameSite=$s.strict;break;case"lax":y.sameSite=$s.lax;break;case"none":y.sameSite=$s.none}break}}let u=y.key.toLowerCase();if(u.startsWith("__secure-")&&!y.secure)return null;if(u.startsWith("__host-")&&(!y.secure||y.path!=="/"||y.domain))return null;return y}static cookiesToString(t){let e=[];for(let o of t)if(o.value!==null)e.push(`${o.key}=${o.value}`);else e.push(o.key);return e.join("; ")}}import{URL as Zg}from"url";var tS=["accept-charset","accept-encoding","access-control-request-headers","access-control-request-method","connection","content-length","content-transfer-encoding","cookie","cookie2","date","dnt","expect","host","keep-alive","origin","referer","te","trailer","transfer-encoding","upgrade","via"];class cs{static removeForbiddenHeaders(t){for(let e of Object.keys(t[Xe]))if(tS.includes(e)||e.startsWith("proxy-")||e.startsWith("sec-"))delete t[Xe][e]}static isHeaderForbidden(t){return tS.includes(t.toLowerCase())}static getRequestHeaders(t){let e=new t.window.Headers(t.baseHeaders);t.request.headers.forEach((l,a)=>{e.set(a,l)});let o=new Zg(t.window.location.href),s=Jo.isCORS(o,t.request[Pe]);if(e.set("Accept-Encoding","gzip, deflate, br"),e.set("Connection","close"),!e.has("User-Agent"))e.set("User-Agent",t.window.navigator.userAgent);if(t.request[Pr]instanceof Zg)e.set("Referer",t.request[Pr].href);if(t.request.credentials==="include"||t.request.credentials==="same-origin"&&!s){let l=t.browserFrame.page.context.cookieContainer.getCookies(t.request[Pe],!1);if(l.length>0)e.set("Cookie",ei.cookiesToString(l))}else e.delete("Cookie"),e.delete("Cookie2");if(!e.has("Accept"))e.set("Accept","*/*");if(!e.has("Content-Length")&&t.request[xl]!==null)e.set("Content-Length",String(t.request[xl]));if(!e.has("Content-Type")&&t.request[xe])e.set("Content-Type",t.request[xe]);if(s)e.set("Origin",o.origin);let n={};for(let l of Object.values(e[Xe]))n[l.name]=l.value.join(", ");return n}}class Ti{[_s];[Ks];[Ee]="cors";[Hh];[jh];[Fa];[qh];[wi]=!1;[$h];[Se]=!1;[Qe]=null;[xl]=null;[xe]=null;[Pr]="client";[Pe];[hi];constructor(t,e){let o=this[m];if(!o)throw TypeError("Failed to construct 'Request': 'Request' was constructed outside a Window context.");if(typeof t!=="string"&&!t)throw new o.TypeError("Failed to construct 'Request': 1 argument required, only 0 present.");if(this[_s]=(e?.method||t.method||"GET").toUpperCase(),e?.mode)switch(e.mode){case"navigate":case"websocket":throw new o.DOMException(`Failed to construct 'Request': Cannot construct a Request with a RequestInit whose mode member is set as '${e.mode}'.`,w.securityError);case"same-origin":case"no-cors":case"cors":this[Ee]=e.mode;break;default:throw new o.DOMException(`Failed to construct 'Request': The provided value '${e.mode}' is not a valid enum value of type RequestMode.`,w.syntaxError)}else if(t instanceof Ti)this[Ee]=t.mode;let{stream:s,buffer:n,contentType:l,contentLength:a}=tr.getBodyStream(t instanceof Ti&&(t[hi]||t.body)?t[hi]||tr.cloneBodyStream(o,t):e?.body??null);if(this[hi]=n,this[Ks]=s,this[$h]=e?.credentials||t.credentials||"same-origin",this[Hh]=new this[m].Headers(e?.headers||t.headers||{}),cs.removeForbiddenHeaders(this.headers),a)this[xl]=a;else if(!this.body&&(this.method==="POST"||this.method==="PUT"))this[xl]=0;if(l){if(!this.headers.has("Content-Type"))this.headers.set("Content-Type",l);this[xe]=l}else if(t instanceof Ti&&t[xe])this[xe]=t[xe];if(this[jh]=e?.redirect||t.redirect||"follow",this[Fa]=(e?.referrerPolicy||t.referrerPolicy||"").toLowerCase(),this[qh]=e?.signal||t.signal||new o.AbortSignal,this[Pr]=hs.getInitialReferrer(o,e?.referrer!==null&&e?.referrer!==void 0?e?.referrer:t.referrer),t instanceof Gb)this[Pe]=t;else try{if(t instanceof Ti&&t.url)this[Pe]=new Gb(t.url,o.location.href);else this[Pe]=new Gb(t,o.location.href)}catch(y){throw new o.DOMException(`Failed to construct 'Request': Invalid URL "${t}" on document location '${o.location}'.${o.location.origin==="null"?" Relative URLs are not permitted on current document location.":""}`,w.notSupportedError)}ti.validateMethod(this),ti.validateBody(this),ti.validateURL(this[Pe]),ti.validateReferrerPolicy(this.referrerPolicy),ti.validateRedirect(this.redirect)}get method(){return this[_s]}get body(){return this[Ks]}get mode(){return this[Ee]}get headers(){return this[Hh]}get redirect(){return this[jh]}get referrerPolicy(){return this[Fa]}get signal(){return this[qh]}get bodyUsed(){return this[wi]}get credentials(){return this[$h]}get referrer(){if(!this[Pr]||this[Pr]==="no-referrer")return"";if(this[Pr]==="client")return"about:client";return this[Pr].toString()}get url(){return this[Pe].href}get[Symbol.toStringTag](){return"Request"}async arrayBuffer(){let t=this[m];if(this[wi])throw new t.DOMException(`Body has already been used for "${this.url}".`,w.invalidStateError);let e=new it(t).getAsyncTaskManager();this[wi]=!0;let o=e.startTask(()=>{this[Se]=!0,this.signal[ui]()}),s;try{s=await tr.consumeBodyStream(t,this)}catch(n){throw e.endTask(o),n}return e.endTask(o),s.buffer.slice(s.byteOffset,s.byteOffset+s.byteLength)}async blob(){let t=this.headers.get("Content-Type")||"",e=await this.arrayBuffer();return new ie([e],{type:t})}async buffer(){let t=this[m];if(this[wi])throw new t.DOMException(`Body has already been used for "${this.url}".`,w.invalidStateError);let e=new it(t).getAsyncTaskManager();this[wi]=!0;let o=e.startTask(()=>{this[Se]=!0,this.signal[ui]()}),s;try{s=await tr.consumeBodyStream(t,this)}catch(n){throw e.endTask(o),n}return e.endTask(o),s}async text(){let t=this[m];if(this[wi])throw new t.DOMException(`Body has already been used for "${this.url}".`,w.invalidStateError);let e=new it(t).getAsyncTaskManager();this[wi]=!0;let o=e.startTask(()=>{this[Se]=!0,this.signal[ui]()}),s;try{s=await tr.consumeBodyStream(t,this)}catch(n){throw e.endTask(o),n}return e.endTask(o),new TextDecoder().decode(s)}async json(){let t=await this.text();return JSON.parse(t)}async formData(){let t=this[m],e=new it(t).getAsyncTaskManager(),o=this.headers.get("Content-Type")??this[xe];if(this.body&&o&&/multipart/i.test(o)){if(this[wi])throw new t.DOMException(`Body has already been used for "${this.url}".`,w.invalidStateError);this[wi]=!0;let s=e.startTask(()=>{this[Se]=!0,this.signal[ui]()}),n;try{n=(await zn.streamToFormData(t,this,o)).formData}catch(l){throw e.endTask(s),l}return e.endTask(s),n}if(o?.startsWith("application/x-www-form-urlencoded")){let s=new URLSearchParams(await this.text()),n=new t.FormData;for(let[l,a]of s)n.append(l,a);return n}throw new t.DOMException('Failed to construct FormData object: The "content-type" header is neither "application/x-www-form-urlencoded" nor "multipart/form-data".',w.invalidStateError)}clone(){return new this[m].Request(this)}}import{URLSearchParams as vP}from"url";import{Buffer as TP}from"buffer";var CP=[301,302,303,307,308];class Mo{body=null;bodyUsed=!1;redirected=!1;type="basic";url="";status;statusText;ok;headers;[Qo]=null;[Nt]=null;[_r]=null;[Se]=!1;[Qe]=null;constructor(t,e){if(!this[m])throw TypeError(`Failed to construct '${this.constructor.name}': '${this.constructor.name}' was constructed outside a Window context.`);if(this.status=e?.status!==void 0?e.status:200,this.statusText=e?.statusText||"",this.ok=this.status>=200&&this.status<300,this.headers=new this[m].Headers(e?.headers),this.headers.delete("Set-Cookie"),this.headers.delete("Set-Cookie2"),t){let{stream:o,buffer:s,contentType:n}=tr.getBodyStream(t);if(this.body=o,s)this[Nt]=s;if(n&&!this.headers.has("Content-Type"))this.headers.set("Content-Type",n)}}get[Symbol.toStringTag](){return"Response"}async arrayBuffer(){let t=this[m];if(this.bodyUsed)throw new t.DOMException(`Body has already been used for "${this.url}".`,w.invalidStateError);let e=new it(t).getBrowserFrame();if(!e)return new ArrayBuffer(0);let o=e[Pt];this.bodyUsed=!0;let s=this[Nt];if(!s){let n=o.startTask(()=>{this[Se]=!0});try{s=await tr.consumeBodyStream(t,this)}catch(l){throw o.endTask(n),l}o.endTask(n)}return this.#t(s),s.buffer.slice(s.byteOffset,s.byteOffset+s.byteLength)}async blob(){let t=this.headers.get("Content-Type")||"",e=await this.arrayBuffer();return new ie([e],{type:t})}async buffer(){let t=this[m];if(this.bodyUsed)throw new t.DOMException(`Body has already been used for "${this.url}".`,w.invalidStateError);let e=new it(t).getBrowserFrame();if(!e)return TP.alloc(0);let o=e[Pt];this.bodyUsed=!0;let s=this[Nt];if(!s){let n=o.startTask(()=>{this[Se]=!0});try{s=await tr.consumeBodyStream(t,this)}catch(l){throw o.endTask(n),l}o.endTask(n)}return this.#t(s),s}async text(){let t=this[m];if(this.bodyUsed)throw new t.DOMException(`Body has already been used for "${this.url}".`,w.invalidStateError);let e=new it(t).getBrowserFrame();if(!e)return"";let o=e[Pt];this.bodyUsed=!0;let s=this[Nt];if(!s){let n=o.startTask(()=>{this[Se]=!0});try{s=await tr.consumeBodyStream(t,this)}catch(l){throw o.endTask(n),l}o.endTask(n)}return this.#t(s),new TextDecoder().decode(s)}async json(){let t=await this.text();return JSON.parse(t)}async formData(){let t=this[m],e=new it(t).getBrowserFrame();if(!e)return new t.FormData;let o=e[Pt],s=this.headers.get("Content-Type");if(s&&this.body&&/multipart/i.test(s)){if(this.bodyUsed)throw new t.DOMException(`Body has already been used for "${this.url}".`,w.invalidStateError);this.bodyUsed=!0;let n=e[Pt].startTask(()=>{this[Se]=!0}),l,a;try{let y=await zn.streamToFormData(t,this,s);l=y.formData,a=y.buffer}catch(y){throw o.endTask(n),y}return this.#t(a),o.endTask(n),l}if(s?.startsWith("application/x-www-form-urlencoded")){let n=new vP(await this.text()),l=new t.FormData;for(let[a,y]of n)l.append(a,y);return l}throw new t.DOMException('Failed to build FormData object: The "content-type" header is neither "application/x-www-form-urlencoded" nor "multipart/form-data".',w.invalidStateError)}clone(){let t=this[m],e=tr.cloneBodyStream(t,this),o=new t.Response(e,{status:this.status,statusText:this.statusText,headers:this.headers});return o[Qo]=this[Qo],o[Nt]=this[Nt],o.ok=this.ok,o.redirected=this.redirected,o.type=this.type,o.url=this.url,o}#t(t){if(this[Nt]=t,this[Qo]?.response?.waitingForBody)this[Qo].response.body=t,this[Qo].response.waitingForBody=!1}static redirect(t,e=302){let o=this[m];if(!CP.includes(e))throw new o.DOMException("Failed to create redirect response: Invalid redirect status code.",w.invalidStateError);return new o.Response(null,{headers:{location:new Le(t).toString()},status:e})}static error(){let t=new this[m].Response(null,{status:0,statusText:""});return t.type="error",t}static json(t,e){let o=this[m],s=JSON.stringify(t);if(s===void 0)throw new o.TypeError("data is not JSON serializable");let n=new o.Headers(e&&e.headers);if(!n.has("Content-Type"))n.set("Content-Type","application/json");return new o.Response(s,{status:200,...e,headers:n})}}var NP=[301,302,303,307,308];class tl{static isRedirect(t){return NP.includes(t)}static isMaxRedirectsReached(t){return t>=20}}class Ka{static parseResponseHeaders(t){let e=new t.browserFrame.window.Headers,o=null;for(let s of t.rawHeaders)if(!o)o=s;else{let n=o.toLowerCase();if(n==="set-cookie"||n==="set-cookie2"){let l=ei.stringToCookie(t.requestURL,s);if(l)t.browserFrame.page.context.cookieContainer.addCookies([l])}else e.append(o,s);o=null}return e}}var Qa={cert:`-----BEGIN CERTIFICATE-----
39
39
  MIIDYzCCAkugAwIBAgIUJRKB/H66hpet1VfUlm0CiXqePA4wDQYJKoZIhvcNAQEL
40
40
  BQAwQTELMAkGA1UEBhMCU0UxDjAMBgNVBAgMBVNrYW5lMQ4wDAYDVQQHDAVNYWxt
41
41
  bzESMBAGA1UECgwJSGFwcHkgRE9NMB4XDTIyMTAxMTIyMDM0OVoXDTMyMTAwODIy
@@ -82,13 +82,13 @@ M0qoTfdjpSg5Jwgd75taWt4bxGJWeflSSv8z5R0BAoGAWL8c527AbeBvx2tOYKkD
82
82
  2TFranvANNcoMrbeviZSkkGvMNDP3p8b6juJwXOIeWNr8q4vFgCzLmq6d1/9gYm2
83
83
  3XJwwyD0LKlqzkBrrKU47qrnmMosUrIRlrAzd3HbShOptxc6Iz2apSaUDKGKXkaw
84
84
  gl5OpEjeliU7Mus0BVS858g=
85
- -----END PRIVATE KEY-----`};import{Buffer as pc}from"buffer";import ja from"path";var eS="<html><head><title>Happy DOM Virtual Server - 404 Not Found</title></head><body><h1>Happy DOM Virtual Server - 404 Not Found</h1></body></html>";class gs{static getFilepath(t,e){let o=new it(t).getSettings();if(!o||!o.fetch.virtualServers&&!o.module.resolveNodeModules)return null;if(o.fetch.virtualServers)for(let s of o.fetch.virtualServers){let n=null;if(typeof s.url==="string"){let l=new URL(s.url[s.url.length-1]==="/"?s.url.slice(0,-1):s.url,t.location.origin);if(e.startsWith(l.href))n=l}else if(s.url instanceof RegExp){let l=e.match(s.url);if(l)n=new URL(l[0][l[0].length-1]==="/"?l[0].slice(0,-1):l[0],t.location.origin)}if(n){let l=e.slice(n.href.length).split("?")[0].split("#")[0];return ja.join(ja.resolve(s.directory),l.replaceAll("/",ja.sep))}}if(o.module.resolveNodeModules){let s=o.module.resolveNodeModules.url,n=new URL(s[s.length-1]==="/"?s.slice(0,-1):s,t.location.origin);if(e.startsWith(n.href)){let l=e.slice(n.href.length).split("?")[0].split("#")[0];return ja.join(ja.resolve(o.module.resolveNodeModules.directory),l.replaceAll("/",ja.sep))}}return null}static getNotFoundResponse(t){return new t.Response(eS,{status:404,statusText:"Not Found",headers:{"Content-Type":"text/html"}})}static getNotFoundSyncResponse(t,e){return{status:404,statusText:"Not Found",ok:!1,url:e,redirected:!1,headers:new t.Headers({"Content-Type":"text/html"}),body:Buffer.from(eS),[Yr]:null}}}class on{static getKey(t){return JSON.stringify({url:t.url,destination:t.destination,mode:t.mode,credentialsMode:t.credentialsMode})}}var Ub=pc.from(`0\r
85
+ -----END PRIVATE KEY-----`};import{Buffer as pc}from"buffer";import ja from"path";var eS="<html><head><title>Happy DOM Virtual Server - 404 Not Found</title></head><body><h1>Happy DOM Virtual Server - 404 Not Found</h1></body></html>";class ds{static getFilepath(t,e){let o=new it(t).getSettings();if(!o||!o.fetch.virtualServers&&!o.module.resolveNodeModules)return null;if(o.fetch.virtualServers)for(let s of o.fetch.virtualServers){let n=null;if(typeof s.url==="string"){let l=new URL(s.url[s.url.length-1]==="/"?s.url.slice(0,-1):s.url,t.location.origin);if(e.startsWith(l.href))n=l}else if(s.url instanceof RegExp){let l=e.match(s.url);if(l)n=new URL(l[0][l[0].length-1]==="/"?l[0].slice(0,-1):l[0],t.location.origin)}if(n){let l=e.slice(n.href.length).split("?")[0].split("#")[0];return ja.join(ja.resolve(s.directory),l.replaceAll("/",ja.sep))}}if(o.module.resolveNodeModules){let s=o.module.resolveNodeModules.url,n=new URL(s[s.length-1]==="/"?s.slice(0,-1):s,t.location.origin);if(e.startsWith(n.href)){let l=e.slice(n.href.length).split("?")[0].split("#")[0];return ja.join(ja.resolve(o.module.resolveNodeModules.directory),l.replaceAll("/",ja.sep))}}return null}static getNotFoundResponse(t){return new t.Response(eS,{status:404,statusText:"Not Found",headers:{"Content-Type":"text/html"}})}static getNotFoundSyncResponse(t,e){return{status:404,statusText:"Not Found",ok:!1,url:e,redirected:!1,headers:new t.Headers({"Content-Type":"text/html"}),body:Buffer.from(eS),[_r]:null}}}class on{static getKey(t){return JSON.stringify({url:t.url,destination:t.destination,mode:t.mode,credentialsMode:t.credentialsMode})}}var Ub=pc.from(`0\r
86
86
  \r
87
- `);class Br{reject=null;resolve=null;listeners={onSignalAbort:this.onSignalAbort.bind(this)};isChunkedTransfer=!1;isProperLastChunkReceived=!1;previousChunk=null;nodeRequest=null;nodeResponse=null;response=null;responseHeaders=null;interceptor;requestHeaders;request;redirectCount=0;disableCache;disableSameOriginPolicy;disablePreload;#t;#e;#r=null;constructor(t){if(this.#t=t.browserFrame,this.#e=t.window,this.#r=t.unfilteredHeaders??null,this.request=typeof t.url==="string"||t.url instanceof yc?new t.window.Request(t.url,t.init):t.url,t.contentType)this.request[xe]=t.contentType;this.redirectCount=t.redirectCount??0,this.disableCache=t.disableCache??!1,this.disableSameOriginPolicy=t.disableSameOriginPolicy??this.#t.page.context.browser.settings.fetch.disableSameOriginPolicy??!1,this.interceptor=this.#t.page.context.browser.settings.fetch.interceptor,this.requestHeaders=this.#t.page.context.browser.settings.fetch.requestHeaders,this.disablePreload=t.disablePreload??!1}async send(){if(!(this.request instanceof Ni)||!(this.request[Pe]instanceof yc))throw new this.#e.DOMException("Unknown request object. Request object must be an instance of Request.",w.invalidStateError);if(ds.prepareRequest(new yc(this.#e.location.href),this.request),this.requestHeaders){for(let e of this.requestHeaders)if(!e.url||(typeof e.url==="string"?e.url.startsWith(this.request.url):this.request.url.match(e.url)))for(let[o,s]of Object.entries(e.headers))this.request.headers.set(o,s)}if(this.interceptor?.beforeAsyncRequest){let e=this.#t[Pt].startTask(),o=await this.interceptor.beforeAsyncRequest({request:this.request,window:this.#e});if(this.#t[Pt].endTask(e),o instanceof Ro)return o}if(ri.validateSchema(this.request),this.request.signal[Se]){if(this.request.signal[No]!==void 0)throw this.request.signal[No];throw new this.#e.DOMException("signal is aborted without reason",w.abortError)}if(this.request[Pe].protocol==="data:"){let e=Ya.parse(this.request.url);this.response=new this.#e.Response(e.buffer,{headers:{"Content-Type":e.type}});let o=this.interceptor?.afterAsyncResponse?await this.interceptor.afterAsyncResponse({window:this.#e,response:this.response,request:this.request}):void 0;return o instanceof Ro?o:this.response}if(this.request[Pe].protocol==="http:"&&this.#e.location.protocol==="https:")throw new this.#e.DOMException(`Mixed Content: The page at '${this.#e.location.href}' was loaded over HTTPS, but requested an insecure XMLHttpRequest endpoint '${this.request.url}'. This request has been blocked; the content must be served over HTTPS.`,w.securityError);if(!this.disableCache){let e=await this.getCachedResponse();if(e)return e}if(!this.disablePreload){let e=on.getKey({url:this.request.url,destination:"fetch",mode:this.request.mode,credentialsMode:this.request.credentials}),o=this.#e.document[Rr].get(e);if(o){if(this.#e.document[Rr].delete(e),o.response)return o.response;let s=this.#t[Pt].startTask(),n=await o.onResponseAvailable();return this.#t[Pt].endTask(s),n}}let t=await this.getVirtualServerResponse();if(t)return t;if(!this.disableSameOriginPolicy){if(!await this.compliesWithCrossOriginPolicy())throw this.#t.page.console.warn(`Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at "${this.request.url}".`),new this.#e.DOMException(`Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at "${this.request.url}".`,w.networkError)}return await this.sendRequest()}async getCachedResponse(){if(this.disableCache)return null;let t=this.#t.page.context.responseCache.get(this.request);if(!t||t.response.waitingForBody)return null;if(t.state===jn.stale){let o=new this.#e.Headers(t.request.headers);if(t.etag)o.set("If-None-Match",t.etag);else{if(!t.lastModified)return null;o.set("If-Modified-Since",new Date(t.lastModified).toUTCString())}let s=new Br({browserFrame:this.#t,window:this.#e,url:this.request.url,init:{headers:o,method:t.request.method},disableCache:!0,disableSameOriginPolicy:!0});if(t.etag||!t.staleWhileRevalidate){let n=await s.send(),l=n.status!==304?await n.buffer():null;if(t=this.#t.page.context.responseCache.add(this.request,{...n,body:l,waitingForBody:!1}),n.status!==304){let a=new this.#e.Response(l,{status:n.status,statusText:n.statusText,headers:n.headers});return a.url=n.url,a[qo]=t,a}}else s.send().then((n)=>{n.buffer().then((l)=>{this.#t.page.context.responseCache.add(this.request,{...n,body:l,waitingForBody:!1})})})}if(!t||t.response.waitingForBody)return null;let e=new this.#e.Response(t.response.body,{status:t.response.status,statusText:t.response.statusText,headers:t.response.headers});return e.url=t.response.url,e[qo]=t,e}async getVirtualServerResponse(){let t=gs.getFilepath(this.#e,this.request.url);if(!t)return null;let e=this.#t[Pt].startTask();if(this.request.method!=="GET"){this.#t.page.console.error(`${this.request.method} ${this.request.url} 404 (Not Found)`);let u=gs.getNotFoundResponse(this.#e),c=this.interceptor?.afterAsyncResponse?await this.interceptor.afterAsyncResponse({window:this.#e,response:await u,request:this.request}):void 0;return this.#t[Pt].endTask(e),c instanceof Ro?c:u}let o;try{t=(await rS.promises.stat(t)).isDirectory()?MP.join(t,"index.html"):t,o=await rS.promises.readFile(t)}catch(u){this.#t.page.console.error(`${this.request.method} ${this.request.url} 404 (Not Found)`);let c=gs.getNotFoundResponse(this.#e),d=this.interceptor?.afterAsyncResponse?await this.interceptor.afterAsyncResponse({window:this.#e,response:await c,request:this.request}):void 0;return this.#t[Pt].endTask(e),d instanceof Ro?d:c}let s=new this.#e.ReadableStream({start:(u)=>{this.#e.queueMicrotask(()=>{u.enqueue(o),u.close()})}}),n=new this.#e.Response(s);n[Nt]=o,n[Yr]=t,n.url=this.request.url;let l=this.interceptor?.afterAsyncResponse?await this.interceptor.afterAsyncResponse({window:this.#e,response:await n,request:this.request}):void 0;this.#t[Pt].endTask(e);let a=l instanceof Ro?l:n,y={...a,body:o,waitingForBody:!1,virtual:!0};return n[qo]=this.#t.page.context.responseCache.add(this.request,y),a}async compliesWithCrossOriginPolicy(){if(this.disableSameOriginPolicy||!ti.isCORS(this.#e.location.href,this.request[Pe]))return!0;let t=this.#t.page.context.preflightResponseCache.get(this.request);if(t){if(t.allowOrigin!=="*"&&t.allowOrigin!==this.#e.location.origin)return!1;if(t.allowMethods.length!==0&&!t.allowMethods.includes(this.request.method))return!1;return!0}let e=[];for(let[y]of this.request.headers)e.push(y.toLowerCase());let o=new this.#e.Headers({"Access-Control-Request-Method":this.request.method,Origin:this.#e.location.origin});if(e.length>0)o.set("Access-Control-Request-Headers",e.slice().sort().join(","));let n=await new Br({browserFrame:this.#t,window:this.#e,url:this.request.url,init:{method:"OPTIONS"},disableCache:!0,disableSameOriginPolicy:!0,unfilteredHeaders:o}).send();if(!n.ok)return!1;let l=n.headers.get("Access-Control-Allow-Origin");if(!l)return!1;if(l!=="*"&&l!==this.#e.location.origin)return!1;let a=[];if(n.headers.has("Access-Control-Allow-Methods")){let y=n.headers.get("Access-Control-Allow-Methods");if(y!=="*")for(let u of y.split(","))a.push(u.trim().toUpperCase())}if(a.length!==0&&!a.includes(this.request.method))return!1;return!0}sendRequest(){return new Promise((t,e)=>{let o=this.#t[Pt].startTask(()=>this.onAsyncTaskManagerAbort());if(this.resolve)throw new this.#e.Error("Fetch already sent.");this.resolve=async(n)=>{if(!this.disableCache&&n instanceof Ro&&this.#t.page&&this.#t.page.context)n[qo]=this.#t.page.context.responseCache.add(this.request,{...n,headers:this.responseHeaders,body:n[Nt],waitingForBody:!n[Nt]&&!!n.body});let l=this.interceptor?.afterAsyncResponse?await this.interceptor.afterAsyncResponse({window:this.#e,response:await n,request:this.request}):void 0;this.#t[Pt].endTask(o);let a=l instanceof Ro?l:n;if(a instanceof Ro&&!a.ok)this.#t.page.console.error(`${this.request.method} ${this.request.url} ${a.status} (${a.statusText})`);t(a)},this.reject=(n)=>{this.#t[Pt].endTask(o),e(n)},this.request.signal.addEventListener("abort",this.listeners.onSignalAbort);let s=(this.request[Pe].protocol==="https:"?kP:LP).request;if(this.nodeRequest=s(this.request[Pe].href,{method:this.request.method,headers:bs.getRequestHeaders({browserFrame:this.#t,window:this.#e,request:this.request,baseHeaders:this.#r}),agent:!1,rejectUnauthorized:!this.#t.page.context.browser.settings.fetch.disableStrictSSL,key:this.request[Pe].protocol==="https:"?Qa.key:void 0,cert:this.request[Pe].protocol==="https:"?Qa.cert:void 0}),this.nodeRequest.on("error",this.onError.bind(this)),this.nodeRequest.on("socket",this.onSocket.bind(this)),this.nodeRequest.on("response",this.onResponse.bind(this)),this.request.body===null)this.nodeRequest.end();else sn.pipeline(this.request.body,this.nodeRequest,(n)=>{if(n)this.onError(n)})})}onSocket(t){let e=()=>{if(this.isChunkedTransfer&&!this.isProperLastChunkReceived){let s=new this.#e.DOMException("Premature close.",w.networkError);if(this.request[Qe]=s,this.response){if(this.response[Qe]=s,this.response.body&&!this.response.body.locked)this.response.body.cancel(s)}}},o=(s)=>{if(this.isProperLastChunkReceived=pc.compare(s.slice(-5),Ub)===0,!this.isProperLastChunkReceived&&this.previousChunk)this.isProperLastChunkReceived=pc.compare(this.previousChunk.slice(-3),Ub.slice(0,3))===0&&pc.compare(s.slice(-2),Ub.slice(3))===0;this.previousChunk=s};t.prependListener("close",e),t.on("data",o),this.nodeRequest.on("close",()=>{t.removeListener("close",e),t.removeListener("data",o)})}onSignalAbort(t){this.finalizeRequest(),this.abort(t.target?.reason)}onError(t){this.finalizeRequest(),this.#t.page.console.error(t),this.reject(new this.#e.DOMException(`Failed to execute "fetch()" on "Window" with URL "${this.request.url}": ${t.message}`,w.networkError))}onAsyncTaskManagerAbort(){let t=new this.#e.DOMException("The operation was aborted.",w.abortError);if(this.request[Se]=!0,this.request[Qe]=t,this.response)this.response[Se]=!0,this.response[Qe]=t;if(this.listeners.onSignalAbort)this.request.signal.removeEventListener("abort",this.listeners.onSignalAbort);if(this.nodeRequest&&!this.nodeRequest.destroyed)this.nodeRequest.destroy(t);if(this.nodeResponse&&!this.nodeResponse.destroyed)this.nodeResponse.destroy(t);if(this.response&&this.response.body){if(!this.response.body.locked)this.response.body.cancel(t)}}onResponse(t){if(this.isChunkedTransfer=t.headers["transfer-encoding"]==="chunked"&&!t.headers["content-length"],this.nodeRequest.setTimeout(0),this.responseHeaders=Ka.parseResponseHeaders({browserFrame:this.#t,requestURL:this.request[Pe],rawHeaders:t.rawHeaders}),this.handleRedirectResponse(t,this.responseHeaders))return;t.once("end",()=>this.request.signal.removeEventListener("abort",this.listeners.onSignalAbort));let e=sn.pipeline(t,new sn.PassThrough,(n)=>{}),o={status:t.statusCode,statusText:t.statusMessage,headers:this.responseHeaders},s=this.responseHeaders.get("Content-Encoding");if(this.request.method==="HEAD"||s===null||t.statusCode===204||t.statusCode===304){this.response=new this.#e.Response(tr.nodeToWebStream(e),o),this.response.redirected=this.redirectCount>0,this.response.url=this.request.url,this.resolve(this.response);return}if(s==="gzip"||s==="x-gzip"){let n={flush:qa.constants.Z_SYNC_FLUSH,finishFlush:qa.constants.Z_SYNC_FLUSH};e=sn.pipeline(e,qa.createGunzip(n),(l)=>{}),this.response=new this.#e.Response(tr.nodeToWebStream(e),o),this.response.redirected=this.redirectCount>0,this.response.url=this.request.url,this.resolve(this.response);return}if(s==="deflate"||s==="x-deflate"){let n=sn.pipeline(t,new sn.PassThrough,(l)=>{});n.on("data",(l)=>{if((l[0]&15)===8)e=sn.pipeline(e,qa.createInflate(),(a)=>{});else e=sn.pipeline(e,qa.createInflateRaw(),(a)=>{});this.response=new this.#e.Response(tr.nodeToWebStream(e),o),this.response.redirected=this.redirectCount>0,this.response.url=this.request.url,this.resolve(this.response)}),n.on("end",()=>{if(!this.response)this.response=new this.#e.Response(tr.nodeToWebStream(e),o),this.response.redirected=this.redirectCount>0,this.response.url=this.request.url,this.resolve(this.response)});return}if(s==="br"){e=sn.pipeline(e,qa.createBrotliDecompress(),(n)=>{}),this.response=new this.#e.Response(tr.nodeToWebStream(e),o),this.response.redirected=this.redirectCount>0,this.response.url=this.request.url,this.resolve(this.response);return}this.response=new this.#e.Response(tr.nodeToWebStream(e),o),this.response.redirected=this.redirectCount>0,this.response.url=this.request.url,this.resolve(this.response)}handleRedirectResponse(t,e){if(!tl.isRedirect(t.statusCode))return!1;switch(this.request.redirect){case"error":return this.finalizeRequest(),this.reject(new this.#e.DOMException(`URI requested responds with a redirect, redirect mode is set to "error": ${this.request.url}`,w.abortError)),!0;case"manual":return!1;case"follow":let o=e.get("Location"),s=t.statusCode===303||(t.statusCode===301||t.statusCode===302)&&this.request.method==="POST",n=null;if(o!==null)try{n=new yc(o,this.request.url)}catch{return this.finalizeRequest(),this.reject(new this.#e.DOMException(`URI requested responds with an invalid redirect URL: ${o}`,w.uriMismatchError)),!0}if(n===null)return!1;if(tl.isMaxRedirectsReached(this.redirectCount))return this.finalizeRequest(),this.reject(new this.#e.DOMException(`Maximum redirects reached at: ${this.request.url}`,w.networkError)),!0;let l=new this.#e.Headers(this.request.headers),a={method:this.request.method,signal:this.request.signal,referrer:this.request.referrer,referrerPolicy:this.request.referrerPolicy,credentials:this.request.credentials,headers:l,body:this.request[di]};if(this.request.credentials==="omit"||this.request.credentials==="same-origin"&&ti.isCORS(this.#e.location.href,n))l.delete("cookie"),l.delete("cookie2");if(this.request.signal[Se])return this.abort(this.request.signal[No]),!0;if(s)a.method="GET",a.body=void 0,l.delete("Content-Length"),l.delete("Content-Type");let y=ds.getReferrerPolicyFromHeader(l);if(y)a.referrerPolicy=y;let u=new Br({browserFrame:this.#t,window:this.#e,url:n,init:a,redirectCount:this.redirectCount+1,disableSameOriginPolicy:this.disableSameOriginPolicy,contentType:!s?this.request[xe]:null});return this.finalizeRequest(),u.send().then((c)=>this.resolve(c)).catch((c)=>this.reject(c)),!0;default:return this.finalizeRequest(),this.reject(new this.#e.DOMException(`Redirect option '${this.request.redirect}' is not a valid value of TRequestRedirect`)),!0}}finalizeRequest(){this.request.signal.removeEventListener("abort",this.listeners.onSignalAbort),this.nodeRequest?.destroy()}abort(t){let e=new this.#e.DOMException("The operation was aborted."+(t?" "+t.toString():""),w.abortError);if(this.request[Se]=!0,this.request[Qe]=e,this.response)this.response[Se]=!0,this.response[Qe]=e;if(this.nodeRequest&&!this.nodeRequest.destroyed)this.nodeRequest.destroy(e);if(this.nodeResponse&&!this.nodeResponse.destroyed)this.nodeResponse.destroy(e);if(this.response&&this.response.body){if(!this.response.body.locked)this.response.body.cancel(e)}if(this.reject)this.reject(t!==void 0?t:e)}}var Hb;(function(t){t.auto="auto",t.manual="manual"})(Hb||(Hb={}));var ii=Hb;import{URL as Wb}from"url";class Fo{static getRelativeURL(t,e){if(e=e?String(e):"about:blank",e.startsWith("about:")||e.startsWith("javascript:"))return new Wb(e);try{return new Wb(e,t.window[no].href)}catch(o){return new Wb("about:blank")}}}class $a{#t;#e;constructor(t,e){if(!t)throw TypeError("Illegal constructor");this.#t=t,this.#e=e}get length(){return this.#t?.[Oe].items.length||0}get state(){return this.#t?.[Oe].currentItem.state||null}get scrollRestoration(){return this.#t?.[Oe].currentItem.scrollRestoration||ii.auto}set scrollRestoration(t){switch(t){case ii.auto:case ii.manual:let e=this.#t?.[Oe].currentItem;if(e)e.scrollRestoration=t;break}}back(){if(!this.#e.closed)this.#t?.goBack()}forward(){if(!this.#e.closed)this.#t?.goForward()}go(t){if(!this.#e.closed)this.#t?.goSteps(t)}pushState(t,e,o){if(!this.#t||this.#e.closed)return;let s=this.#t?.[Oe];if(!s)return;if(arguments.length<2)throw new this.#e.TypeError(`Failed to execute 'pushState' on 'History': 2 arguments required, but only ${arguments.length} present.`);let n=this.#e[no],l=o?Fo.getRelativeURL(this.#t,o):n;if(o&&l.origin!==n.origin)throw new this.#e.DOMException(`Failed to execute 'pushState' on 'History': A history state object with URL '${o.toString()}' cannot be created in a document with origin '${n.origin}' and URL '${n.href}'.`,w.securityError);s.currentItem.popState=!0,s.push({title:this.#e.document.title,href:l.href,state:t,popState:!0,scrollRestoration:s.currentItem.scrollRestoration,method:s.currentItem.method||"GET",formData:s.currentItem.formData||null}),n[_r](this.#t,s.currentItem.href)}replaceState(t,e,o){if(!this.#t||this.#e.closed)return;let s=this.#t?.[Oe];if(!s)return;if(arguments.length<2)throw new this.#e.TypeError(`Failed to execute 'pushState' on 'History': 2 arguments required, but only ${arguments.length} present.`);let n=this.#e[no],l=o?Fo.getRelativeURL(this.#t,o):n;if(o&&l.origin!==n.origin)throw new this.#e.DOMException(`Failed to execute 'pushState' on 'History': A history state object with URL '${o.toString()}' cannot be created in a document with origin '${n.origin}' and URL '${n.href}'.`,w.securityError);if(s.replace({title:this.#e.document.title,href:l.href,state:t,popState:s.currentItem.popState,scrollRestoration:s.currentItem.scrollRestoration,method:s.currentItem.method,formData:s.currentItem.formData}),o)n[_r](this.#t,s.currentItem.href)}[At](){this.#t=null}}class Tp{#t;#e;constructor(t,e){this.#t=t,this.#e=e||{}}observe(t){}disconnect(){}unobserve(t){}takeRecords(){return[]}}class Cp{boundingClientRect=null;intersectionRatio=0;intersectionRect=null;isIntersecting=!1;rootBounds=null;target=null;time=0;constructor(t){Object.assign(this,t)}}class Xa{[Symbol.toStringTag]="Location";#t;#e;#r=null;#o=[];constructor(t,e){if(!t)throw TypeError("Illegal constructor");this.#t=t,this.#e=new URL(e)}get hash(){return this.#e.hash}set hash(t){let e=this.#t?.[Oe];if(!e||!this.#t)return;let o=new URL(this.#e.href),s=this.#e.hash;if(o.hash=t,o.hash!==s)e.currentItem.popState=!0,e.push({title:"",href:o.href,state:e.currentItem.state,popState:!0,scrollRestoration:ii.manual,method:e.currentItem.method,formData:e.currentItem.formData||null}),this[_r](this.#t,o.href)}get host(){return this.#e.host}set host(t){let e=new URL(this.#e.href);e.host=t,this.href=e.href}get hostname(){return this.#e.hostname}set hostname(t){let e=new URL(this.#e.href);e.hostname=t,this.href=e.href}get href(){return this.#e.href}set href(t){if(!this.#t)return;this.#t.goto(t).catch((e)=>{if(this.#t?.page?.console)this.#t.page.console.error(e);else throw e})}get origin(){return this.#e.origin}get pathname(){return this.#e.pathname}set pathname(t){let e=new URL(this.#e.href);e.pathname=t,this.href=e.href}get port(){return this.#e.port}set port(t){let e=new URL(this.#e.href);e.port=t,this.href=e.href}get protocol(){return this.#e.protocol}set protocol(t){let e=new URL(this.#e.href);e.protocol=t,this.href=e.href}get search(){return this.#e.search}set search(t){let e=new URL(this.#e.href);e.search=t,this.href=e.href}replace(t){this.href=String(t)}assign(t){this.href=String(t)}reload(){if(!this.#t)return;this.#t.goto(this.href).catch((t)=>{if(this.#t?.page.console)this.#t.page.console.error(t);else throw t})}[_r](t,e){if(!this.#t)return;if(this.#t!==t)throw Error("Failed to set URL. Browser frame mismatch.");let o=this.#e.href,s=this.#e.hash;if(this.#e.href=e,this.#e.hash!==s){let n=this.#e.href;if(this.#o.push(new Jl("hashchange",{oldURL:o,newURL:n})),this.#t?.window?.document?.[Mr](),this.#r)this.#t.window?.clearTimeout(this.#r);this.#r=this.#t.window?.setTimeout(()=>{let l=this.#o;this.#o=[];for(let a of l)this.#t?.window?.dispatchEvent(a)})}}[At](){if(this.#r)this.#t?.window?.clearTimeout(this.#r);this.#t=null}toString(){return this.#e.toString()}}class Vo{type;target;addedNodes;removedNodes;previousSibling;nextSibling;attributeName;attributeNamespace;oldValue;constructor(t){this.type=t.type,this.target=t.target,this.addedNodes=t.addedNodes||[],this.removedNodes=t.removedNodes||[],this.previousSibling=t.previousSibling||null,this.nextSibling=t.nextSibling||null,this.attributeName=t.attributeName||null,this.attributeNamespace=t.attributeNamespace||null,this.oldValue=t.oldValue||null}}class za{description;enabledPlugin;suffixes;type;constructor(t,e,o,s){this.description=t,this.enabledPlugin=e,this.suffixes=o,this.type=s}toString(){return"[object MimeType]"}}class Ja{length;constructor(t){for(let e=0,o=t.length;e<o;e++)this[e]=t[e],this[t[e].type]=t[e];this.length=t.length}item(t){return this[t]||null}namedItem(t){return this[t]||null}toString(){return"[object MimeTypeArray]"}}class Np{length=0;description;filename;name;constructor(t,e,o,s){this.description=e,this.filename=o,this.name=s;for(let n=0,l=t.length;n<l;n++)this[n]=t[n],this[t[n].type]=t[n];this.length=t.length}item(t){return this[t]||null}namedItem(t){return this[t]||null}toString(){return"[object Plugin]"}}class Za{length;constructor(t){for(let e=0,o=t.length;e<o;e++)this[e]=t[e],this[t[e].name]=t[e];this.length=t.length}item(t){return this[t]||null}namedItem(t){return this[t]||null}refresh(){}toString(){return"[object PluginArray]"}}var _b;(function(t){t.geolocation="geolocation",t.notifications="notifications",t.push="push",t.midi="midi",t.camera="camera",t.microphone="microphone",t.backgroundFetch="background-fetch",t.backgroundSync="background-sync",t.persistentStorage="persistent-storage",t.ambientLightSensor="ambient-light-sensor",t.accelerometer="accelerometer",t.gyroscope="gyroscope",t.magnetometer="magnetometer",t.screenWakeLock="screen-wake-lock",t.nfc="nfc",t.displayCapture="display-capture",t.accessibilityEvents="accessibility-events",t.clipboardRead="clipboard-read",t.clipboardWrite="clipboard-write",t.paymentHandler="payment-handler",t.idleDetection="idle-detection",t.periodicBackgroundSync="periodic-background-sync",t.systemWakeLock="system-wake-lock",t.storageAccess="storage-access",t.windowManagement="window-management",t.windowPlacement="window-placement",t.localFonts="local-fonts",t.topLevelStorageAccess="top-level-storage-access"})(_b||(_b={}));var oS=_b;class oa{#t={};#e;constructor(t){if(!t?.document)TypeError("Invalid constructor");this.#e=t}async query(t){let e=t?.name;if(e&&this.#t[e])return this.#t[e];if(!Object.values(oS).includes(e))throw Error(`Failed to execute 'query' on 'Permissions': Failed to read the 'name' property from 'PermissionDescriptor': The provided value '${e}' is not a valid enum value of type PermissionName.`);return this.#t[e]=new this.#e.PermissionStatus("granted"),this.#t[e]}}class Lp{#t;#e;#r;constructor(t){if(!t)throw TypeError("Invalid constructor");this.#t=t,this.#e=new Ul(t),this.#r=new oa(t)}get cookieEnabled(){return!0}get credentials(){return null}get geolocation(){return null}get language(){return"en-US"}get languages(){return["en-US","en"]}get locks(){return null}get maxTouchPoints(){return new it(this.#t).getSettings()?.navigator.maxTouchPoints||0}get hardwareConcurrency(){return 8}get appCodeName(){return"Mozilla"}get appName(){return"Netscape"}get appVersion(){let t=this.userAgent,e=t.indexOf("/");return e>-1?t.substring(e+1):""}get platform(){let t=this.userAgent,e=t.indexOf("("),o=t.indexOf(")");return e>-1&&o>-1?t.substring(e+1,o):""}get product(){return"Gecko"}get productSub(){return"20100101"}get vendor(){return""}get vendorSub(){return""}get userAgent(){return new it(this.#t).getSettings()?.navigator.userAgent||""}get onLine(){return!0}get permissions(){return this.#r}get clipboard(){return this.#e}get webdriver(){return!0}get doNotTrack(){return"unspecified"}get mimeTypes(){return new Ja([])}get plugins(){return new Za([])}sendBeacon(t,e){return this.#t.fetch(t,{method:"POST",body:e}),!0}toString(){return"[object Navigator]"}}var Yb;(function(t){t[t.disconnect=1]="disconnect",t[t.preceding=2]="preceding",t[t.following=4]="following",t[t.contains=8]="contains",t[t.containedBy=16]="containedBy",t[t.implementationSpecific=32]="implementationSpecific"})(Yb||(Yb={}));var Ko=Yb;class ft{static isTextNode(t){return t?.[D]===T.textNode}static isInclusiveAncestor(t,e,o=!1){if(t===null||e===null)return!1;if(t===e)return!0;if(!t[_].length)return!1;if(o&&e[tt]!==t[tt])return!1;if(o&&t===e[x]&&e[tt])return!0;let s=e[W];while(s){if(t===s)return!0;if(t[W]===s[W])return!1;s=s[W]?s[W]:o&&s.host?s.host:null}return!1}static isFollowing(t,e){if(t===e)return!1;let o=e;while(o)if(o=this.following(o),o===t)return!0;return!1}static getNodeLength(t){switch(t[D]){case T.documentTypeNode:return 0;case T.textNode:case T.processingInstructionNode:case T.commentNode:return t.data.length;default:return t[_].length}}static following(t,e){let o=t.firstChild;if(o)return o;let s=t;while(s){if(s===e)return null;let n=s.nextSibling;if(n)return n;s=s[W]}return null}static nextDescendantNode(t){while(t&&!t.nextSibling)t=t[W];if(!t)return null;return t.nextSibling}static attributeListsEqual(t,e){let o=Array.from(t[St][Q].values()),s=Array.from(e[St][Q].values());for(let n of o){let l=!1;for(let a of s)if(n[J]===a[J]&&n.localName===a.localName&&n[q]===a[q]){l=!0;break}if(!l)return!1}return!0}static isEqualNode(t,e){if(t[D]!==e[D])return!1;switch(t[D]){case T.documentTypeNode:let o=t,s=e;if(o.name!==s.name||o.publicId!==s.publicId||o.systemId!==s.systemId)return!1;break;case T.elementNode:let n=t,l=e;if(n[J]!==l[J]||n[Ft]!==l[Ft]||n[ot]!==l[ot]||n[St][Q].size!==l[St][Q].size)return!1;break;case T.attributeNode:let a=t,y=e;if(a[J]!==y[J]||a.localName!==y.localName||a[q]!==y[q])return!1;break;case T.processingInstructionNode:let u=t,c=e;if(u.target!==c.target||u.data!==c.data)return!1;break;case T.textNode:case T.commentNode:let d=t,g=e;if(d.data!==g.data)return!1;break}if(t[D]===T.elementNode&&!ft.attributeListsEqual(t,e))return!1;if(t[_].length!==e[_].length)return!1;for(let o=0;o<t[_].length;o++){let s=t[_][o],n=e[_][o];if(!ft.isEqualNode(s,n))return!1}return!0}}var Kb;(function(t){t.attributes="attributes",t.characterData="characterData",t.childList="childList"})(Kb||(Kb={}));var si=Kb;class Ve{static ownerDocuments=[];static createNode(t,e,...o){if(!e.prototype[m])this.ownerDocuments.push(t);return new e(...o)}static pullOwnerDocument(){return this.ownerDocuments.pop()||null}}class st extends vt{static ELEMENT_NODE=T.elementNode;static ATTRIBUTE_NODE=T.attributeNode;static TEXT_NODE=T.textNode;static CDATA_SECTION_NODE=T.cdataSectionNode;static COMMENT_NODE=T.commentNode;static DOCUMENT_NODE=T.documentNode;static DOCUMENT_TYPE_NODE=T.documentTypeNode;static DOCUMENT_FRAGMENT_NODE=T.documentFragmentNode;static PROCESSING_INSTRUCTION_NODE=T.processingInstructionNode;static DOCUMENT_POSITION_CONTAINED_BY=Ko.containedBy;static DOCUMENT_POSITION_CONTAINS=Ko.contains;static DOCUMENT_POSITION_DISCONNECTED=Ko.disconnect;static DOCUMENT_POSITION_FOLLOWING=Ko.following;static DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC=Ko.implementationSpecific;static DOCUMENT_POSITION_PRECEDING=Ko.preceding;[tt]=!1;[W]=null;[ve]=null;[dr]=null;[Je]=null;[Ut]=null;[Ie]=null;[ro]=[];[_]=[];[bt]=[];[Ns]=null;[Zo]=null;[U]={querySelector:new Map,querySelectorAll:new Map,matches:new Map,elementsByTagName:new Map,elementsByTagNameNS:new Map,elementByTagName:new Map,elementById:new Map,computedStyle:null};[He]=[];constructor(){super();if(this[m])this[x]=this[m].document;else{let t=Ve.pullOwnerDocument();if(!t)throw TypeError("Illegal constructor");this[x]=t,this[m]=t[m]}}get[Symbol.toStringTag](){return this.constructor.name}get isConnected(){return this[tt]}get ownerDocument(){return this[x]}get parentNode(){return this[W]}get nodeType(){return this[D]}get childNodes(){if(!this[Ns])this[Ns]=new Yo(h,this[_]);return this[Ns]}get textContent(){return""}set textContent(t){}get nodeValue(){return null}set nodeValue(t){}get nodeName(){return""}get previousSibling(){if(this[W]){let t=this[W][_],e=t.indexOf(this[Vt]||this);if(e>0)return t[e-1]}return null}get nextSibling(){if(this[W]){let t=this[W][_],e=t.indexOf(this[Vt]||this);if(e>-1&&e+1<t.length)return t[e+1]}return null}get firstChild(){let t=this[_];if(t.length>0)return t[0];return null}get lastChild(){let t=this[_];if(t.length>0)return t[t.length-1];return null}get parentElement(){let t=this[W];while(t&&t[D]!==T.elementNode)t=t[W];return t}get baseURI(){let t=this[x].querySelector("base");if(t)return t.href;return this[m].location.href}hasChildNodes(){return this[_].length>0}contains(t){if(t===void 0)return!1;let e=this[Vt]||this;return ft.isInclusiveAncestor(e,t)}getRootNode(t){if(this[tt]){if(this[ve]&&!t?.composed)return this[ve];return this[x]}let e=this;while(e[W])e=e[W];return e}cloneNode(t=!1){return this[ct](t)}appendChild(t){if(arguments.length<1)throw new this[m].TypeError("Failed to execute 'appendChild' on 'Node': 1 argument required, but only 0 present");return this[Et](t)}removeChild(t){if(arguments.length<1)throw new this[m].TypeError("Failed to execute 'removeChild' on 'Node': 1 argument required, but only 0 present");return this[hr](t)}insertBefore(t,e){if(arguments.length<2)throw new this[m].TypeError(`Failed to execute 'insertBefore' on 'Node': 2 arguments required, but only ${arguments.length} present.`);return this[kr](t,e)}replaceChild(t,e){if(arguments.length<2)throw new this[m].TypeError(`Failed to execute 'replaceChild' on 'Node': 2 arguments required, but only ${arguments.length} present.`);return this[La](t,e)}[ct](t=!1){let e=Ve.createNode(this[x],this.constructor);if(e[_].length){let o=e[_];while(o.length)e.removeChild(o[0])}if(t)for(let o of this[_]){let s=o.cloneNode(!0);if(s[W]=e,e[_].push(s),s[D]===T.elementNode)e[bt].push(s)}return e}[Et](t,e=!1){if(t[Vt])t=t[Vt];let o=this[Vt]||this;if(!e){if(t===o)throw new this[m].DOMException("Failed to execute 'appendChild' on 'Node': Not possible to append a node as a child of itself.");if(ft.isInclusiveAncestor(t,o,!0))throw new this[m].DOMException("Failed to execute 'appendChild' on 'Node': The new node is a parent of the node to insert to.",w.domException)}if(t[D]===T.documentFragmentNode){let s=t[_];while(s.length)this.appendChild(s[0]);return t}if(t[W])t[W][hr](t);if(t[W]=o,t[Mr](),this[_].push(t),t[D]===T.elementNode)this[bt].push(t);t[Zr]();for(let s of this[ro])if(s.options?.subtree&&s.callback.deref())t[vl](s);return this[Oi](new Vo({target:o,type:si.childList,addedNodes:[t]})),t}[hr](t){if(t[Vt])t=t[Vt];let e=this[_].indexOf(t);if(e===-1)throw new this[m].DOMException("Failed to execute 'removeChild' on 'Node': The node to be removed is not a child of this node.");let o=t.previousSibling,s=t.nextSibling;if(t[W]=null,t[Mr](),this[_].splice(e,1),t[D]===T.elementNode){let n=this[bt].indexOf(t);if(n!==-1)this[bt].splice(n,1)}if(t[Zo]){let n=t[Zo][Wi].indexOf(t);if(n!==-1)t[Zo][Wi].splice(n,1);t[Zo]=null}t[Bi]();for(let n of this[ro])if(n.options?.subtree&&n.callback.deref())t[xa](n);return this[Oi](new Vo({target:this[Vt]||this,type:si.childList,removedNodes:[t],previousSibling:o,nextSibling:s})),t}[kr](t,e,o=!1){if(t[Vt])t=t[Vt];if(e&&e[Vt])e=e[Vt];if(t===e)return t;let s=this[Vt]||this;if(!o){if(t===s)throw new this[m].DOMException("Failed to execute 'insertBefore' on 'Node': Not possible to insert a node as a child of itself.");if(ft.isInclusiveAncestor(t,s,!0))throw new this[m].DOMException("Failed to execute 'insertBefore' on 'Node': The new node is a parent of the node to insert to.",w.domException)}if(t[D]===T.documentFragmentNode){let a=t[_];while(a.length>0)this[kr](a[0],e,!0);return t}if(!e)return this[Et](t,!0),t;let n=this[_];if(!n.includes(e))throw new this[m].DOMException("Failed to execute 'insertBefore' on 'Node': The node before which the new node is to be inserted is not a child of this node.");if(t[W])t[W][hr](t);t[W]=s,t[Mr]();let l=n.indexOf(e);if(t[D]===T.elementNode){let a=this[bt];if(e[D]===T.elementNode)a.splice(a.indexOf(e),0,t);else{let y=!1;for(let u=l,c=n.length;u<c;u++)if(n[u][D]===T.elementNode){a.splice(a.indexOf(n[u]),0,t),y=!0;break}if(!y)a.push(t)}}n.splice(l,0,t),t[Zr]();for(let a of this[ro])if(a.options?.subtree&&a.callback.deref())t[vl](a);return this[Oi](new Vo({target:s,type:si.childList,addedNodes:[t]})),t}[La](t,e){return this.insertBefore(t,e),this.removeChild(e),e}isEqualNode(t){return ft.isEqualNode(this,t)}toString(){return`[object ${this.constructor.name}]`}[vl](t){if(this[ro].push(t),t.options.subtree)for(let e of this[_])e[vl](t)}[xa](t){let e=this[ro].indexOf(t);if(e!==-1)this[ro].splice(e,1);if(t.options.subtree)for(let o of this[_])o[xa](t)}[Oi](t){this[Mr]();let e=this[ro];if(!e.length)return;for(let o=0,s=e.length;o<s;o++){let n=e[o],l=n.callback.deref();if(l)switch(t.type){case si.childList:if(n.options.childList)l(t);break;case si.attributes:if(n.options.attributes&&(!n.options.attributeFilter||n.options.attributeFilter.includes(t.attributeName)))l(t);break;case si.characterData:if(n.options?.characterData)l(t);break}else e.splice(o,1),o--,s--}}[Mr](){let t=this[U];if(t.querySelector.size){for(let s of t.querySelector.values())if(s.result)s.result=null;t.querySelector=new Map}if(t.querySelectorAll.size){for(let s of t.querySelectorAll.values())if(s.result)s.result=null;t.querySelectorAll=new Map}if(t.matches.size){for(let s of t.matches.values())if(s.result)s.result=null;t.matches=new Map}if(t.elementsByTagName.size){for(let s of t.elementsByTagName.values())if(s.result)s.result=null;t.elementsByTagName=new Map}if(t.elementsByTagNameNS.size){for(let s of t.elementsByTagNameNS.values())if(s.result)s.result=null;t.elementsByTagNameNS=new Map}if(t.elementByTagName.size){for(let s of t.elementByTagName.values())if(s.result)s.result=null;t.elementByTagName=new Map}if(t.elementById.size){for(let s of t.elementById.values())if(s.result)s.result=null;t.elementById=new Map}let e=this[He];if(e.length){for(let s of e)s.result=null;this[He]=[]}let o=this[x];if(o&&o[Xo].length){for(let s of o[Xo])s.result=null;o[Xo]=[]}}[Zr](){let t=this[W],e=t||this[Mn],o=!1,s=!1;if(!this[tt]&&e[tt])this[tt]=!0,o=!0;else if(this[tt]&&!e[tt])this[tt]=!1,s=!0;if(this[x]=e[x]||e,this[m]=e[m]||e[Lr],t){if(this[D]!==T.documentFragmentNode)this[ve]=t[ve];let l=this[z];if(t[dr]&&l!=="STYLE")this[dr]=t[dr];if(t[Je]&&l!=="TEXTAREA")this[Je]=t[Je];if(t[Ut]&&l!=="FORM")this[Ut]=t[Ut];if(t[Ie]&&l!=="SELECT")this[Ie]=t[Ie]}let n=this[_].slice();for(let l=0,a=n.length;l<a;l++)n[l][W]=this,n[l][Zr]();if(this[be])this[be][Zr]();if(o)this[sr]();else if(s)this[nr]()}[Bi](){if(this[D]!==T.documentFragmentNode)this[ve]=null;let t=this[z];if(t!=="STYLE")this[dr]=null;if(t!=="TEXTAREA")this[Je]=null;if(t!=="FORM")this[Ut]=null;if(t!=="SELECT")this[Ie]=null;if(this[tt])this[tt]=!1,this[nr]();let e=this[_].slice();for(let o=0,s=e.length;o<s;o++)e[o][Zr]();if(this[be])this[be][Bi]()}[sr](){if(this[be])this[be][sr]()}[nr](){if(this[x][Me]===this)this[x][Mr](),this[x][Me]=null;if(this[be])this[be][nr]()}[At](){super[At](),this[tt]=!1;for(let t=0,e=this[_].length;t<e;t++)this[_][t][At]();this[ro]=[],this[W]=null,this[ve]=null,this[dr]=null,this[Je]=null,this[Ut]=null,this[Ie]=null,this[ro]=[],this[_]=[],this[bt]=[],this[Ns]=null,this[Zo]=null,this[Mr]()}compareDocumentPosition(t){if(this===t)return 0;let e=t,o=this[Vt]||this,s=null,n=null;if(e[D]===T.attributeNode)s=e,e=s[xt];if(o[D]===T.attributeNode){if(n=o,o=n[xt],s!==null&&e!==null&&o===e)for(let dt of o[St][Q].values()){if(ft.isEqualNode(dt,s))return st.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC|st.DOCUMENT_POSITION_PRECEDING;if(ft.isEqualNode(dt,n))return st.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC|st.DOCUMENT_POSITION_FOLLOWING}}let l=[],a=o;while(a){if(a===e)return st.DOCUMENT_POSITION_CONTAINS|st.DOCUMENT_POSITION_PRECEDING;l.push(a),a=a[W]}let y=[],u=e;while(u){if(u===o)return st.DOCUMENT_POSITION_CONTAINED_BY|st.DOCUMENT_POSITION_FOLLOWING;y.push(u),u=u[W]}let c=(dt,ee)=>dt[dt.length-1-ee],d=c(l,0);if(!d||d!==c(y,0))return st.DOCUMENT_POSITION_DISCONNECTED|st.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC|st.DOCUMENT_POSITION_FOLLOWING;let g=0,f=Math.min(l.length,y.length);for(let dt=0;dt<f;++dt){let ee=c(l,dt),Ct=c(y,dt);if(ee!==Ct)break;g=dt}let E=c(l,g),R=0,H=-1,pt=-1,gt=c(l,g+1),Rt=c(y,g+1),lt=(dt)=>{for(let ee of dt){if(lt(ee[_]),ee===gt)H=R;else if(ee===Rt)pt=R;if(H!==-1&&pt!==-1)break;R++}};return lt(E[_]),pt<H?st.DOCUMENT_POSITION_PRECEDING:st.DOCUMENT_POSITION_FOLLOWING}normalize(){let t=this.firstChild;while(t){if(ft.isTextNode(t)){while(ft.isTextNode(t.nextSibling))t.data+=t.nextSibling.data,t.nextSibling.remove();if(!t.data.length){let e=t;t=t.nextSibling,e.remove();continue}}else t.normalize();t=t.nextSibling}}isSameNode(t){return this===t}}st.prototype.ELEMENT_NODE=T.elementNode;st.prototype.ATTRIBUTE_NODE=T.attributeNode;st.prototype.TEXT_NODE=T.textNode;st.prototype.CDATA_SECTION_NODE=T.cdataSectionNode;st.prototype.COMMENT_NODE=T.commentNode;st.prototype.DOCUMENT_NODE=T.documentNode;st.prototype.DOCUMENT_TYPE_NODE=T.documentTypeNode;st.prototype.DOCUMENT_FRAGMENT_NODE=T.documentFragmentNode;st.prototype.PROCESSING_INSTRUCTION_NODE=T.processingInstructionNode;st.prototype.DOCUMENT_POSITION_CONTAINED_BY=Ko.containedBy;st.prototype.DOCUMENT_POSITION_CONTAINS=Ko.contains;st.prototype.DOCUMENT_POSITION_DISCONNECTED=Ko.disconnect;st.prototype.DOCUMENT_POSITION_FOLLOWING=Ko.following;st.prototype.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC=Ko.implementationSpecific;st.prototype.DOCUMENT_POSITION_PRECEDING=Ko.preceding;class tm extends st{[D]=T.attributeNode;[J]=null;[rt]=null;[ot]=null;[Ft]=null;[q]=null;[Nm]=!0;[xt]=null;get specified(){return this[Nm]}get ownerElement(){return this[xt]}get value(){return this[q]}set value(t){this[q]=t}get name(){return this[rt]||""}get localName(){return this[ot]||""}get prefix(){return this[Ft]}get textContent(){return this[q]||""}get namespaceURI(){return this[J]}[ct](t=!1){let e=super[ct](t);return e[J]=this[J],e[rt]=this[rt],e[ot]=this[ot],e[Ft]=this[Ft],e[q]=this[q],e[Nm]=this[Nm],e}}class el{static appendData(t,e){t.data+=e}static deleteData(t,e,o){t.data=t.data.substring(0,e)+t.data.substring(e+o)}static insertData(t,e,o){t.data=t.data.substring(0,e)+o+t.data.substring(e)}static replaceData(t,e,o,s){t.data=t.data.substring(0,e)+s+t.data.substring(e+o)}static substringData(t,e,o){return t.data.substring(e,e+o)}}class rl{static previousElementSibling(t){let e=t.previousSibling;while(e&&e[D]!==T.elementNode)e=e.previousSibling;return e}static nextElementSibling(t){let e=t.nextSibling;while(e&&e[D]!==T.elementNode)e=e.nextSibling;return e}}class ni{static remove(t){if(t[W])t[W].removeChild(t)}static replaceWith(t,...e){let o=t[W];if(!o)return;for(let s of e)if(s instanceof st)o.insertBefore(s,t);else o.insertBefore(o[x].createTextNode(String(s)),t);o.removeChild(t)}static before(t,...e){let o=t[W];if(!o)return;for(let s of e)if(s instanceof st)o.insertBefore(s,t);else o.insertBefore(o[x].createTextNode(String(s)),t)}static after(t,...e){let o=t[W];if(!o)return;let s=t.nextSibling;for(let n of e){let l=n instanceof st?n:o[x].createTextNode(String(n));if(!s)o.appendChild(l);else o.insertBefore(l,s)}}}class Ss extends st{[Kt]="";constructor(t){super();this[Kt]=t!==void 0?String(t):""}get length(){return this[Kt].length}get data(){return this[Kt]}set data(t){let e=this[Kt];this[Kt]=String(t),this[Oi](new Vo({target:this,type:si.characterData,oldValue:e}))}get textContent(){return this[Kt]}set textContent(t){this.data=t}get nodeValue(){return this[Kt]}set nodeValue(t){this.textContent=t}get previousElementSibling(){return rl.previousElementSibling(this)}get nextElementSibling(){return rl.nextElementSibling(this)}appendData(t){el.appendData(this,t)}deleteData(t,e){el.deleteData(this,t,e)}insertData(t,e){el.insertData(this,t,e)}replaceData(t,e,o){el.replaceData(this,t,e,o)}substringData(t,e){return el.substringData(this,t,e)}remove(){ni.remove(this)}replaceWith(...t){ni.replaceWith(this,...t)}before(...t){ni.before(this,...t)}after(...t){ni.after(this,...t)}[ct](t=!1){let e=super[ct](t);return e[Kt]=this[Kt],e}}class nn extends st{[D]=T.documentTypeNode;[rt]="";[Ds]="";[Bs]="";get name(){return this[rt]}get publicId(){return this[Ds]}get systemId(){return this[Bs]}get nodeName(){return this.name}toString(){return"[object DocumentType]"}[ct](t=!1){let e=super[ct](t);return e[rt]=this[rt],e[Ds]=this[Ds],e[Bs]=this[Bs],e}}var Qb;(function(t){t.loading="loading",t.interactive="interactive",t.complete="complete"})(Qb||(Qb={}));var uc=Qb;class hc{#t;constructor(t){this.#t=new Js(t)}waitUntilComplete(){return this.#t.waitUntilComplete()}startTask(){return this.#t.startTask()}endTask(t){this.#t.endTask(t)}destroy(){return this.#t.destroy()}}class ol{[k]=0;[M]=0;[V]=0;[F]=0;constructor(t,e,o,s){this[k]=t!==void 0&&t!==null?Number(t):0,this[M]=e!==void 0&&e!==null?Number(e):0,this[V]=o!==void 0&&o!==null?Number(o):0,this[F]=s!==void 0&&s!==null?Number(s):0}get x(){return this[k]}get y(){return this[M]}get width(){return this[V]}get height(){return this[F]}get top(){return Math.min(this[M],this[M]+this[F])}get right(){return Math.max(this[k],this[k]+this[V])}get bottom(){return Math.max(this[M],this[M]+this[F])}get left(){return Math.min(this[k],this[k]+this[V])}toJSON(){return{x:this.x,y:this.y,width:this.width,height:this.height,top:this.top,right:this.right,bottom:this.bottom,left:this.left}}static fromRect(t){return new ol(t.x,t.y,t.width,t.height)}}class li extends ol{set x(t){this[k]=t}get x(){return this[k]}set y(t){this[M]=t}get y(){return this[M]}set width(t){this[V]=t}get width(){return this[V]}set height(t){this[F]=t}get height(){return this[F]}static fromRect(t){return new li(t.x,t.y,t.width,t.height)}}var IP=/[\t\f\n\r ]+/;class Or{[xt];[Gs];[U]={items:[],attributeValue:""};[Xh];[Vt];constructor(t,e,o,s){if(t!==h)throw TypeError("Illegal constructor");this[xt]=e,this[Gs]=o,this[Xh]=s||[];let n=new fe(this,[Or]),l=new Proxy(this,{get:(a,y)=>{if(y==="length")return a[Er]().length;if(y in a||typeof y==="symbol")return n.bind(y),a[y];let u=Number(y);if(!isNaN(u))return a[Er]()[u]},set(a,y,u){if(n.bind(y),typeof y==="symbol")return a[y]=u,!0;let c=Number(y);if(isNaN(c))a[y]=u;return!0},deleteProperty(a,y){if(typeof y==="symbol")return delete a[y],!0;let u=Number(y);if(isNaN(u))delete a[y];return!0},ownKeys(a){return Object.keys(a[Er]())},has(a,y){if(y in a)return!0;if(typeof y==="symbol")return!1;let u=Number(y);return!isNaN(u)&&u>=0&&u<a[Er]().length},defineProperty(a,y,u){if(n.preventBinding(y),y in a)return Object.defineProperty(a,y,u),!0;return!1},getOwnPropertyDescriptor(a,y){if(y in a||typeof y==="symbol")return;let u=Number(y),c=a[Er]();if(!isNaN(u)&&c[u])return{value:c[u],writable:!1,enumerable:!0,configurable:!0}}});return this[Vt]=l,l}get length(){return this[Er]().length}set value(t){this[xt].setAttribute(this[Gs],t)}get value(){return this[xt].getAttribute(this[Gs])||""}[Symbol.iterator](){return this[Er]().values()}item(t){let e=this[Er]();if(typeof t==="number")return e[t]?e[t]:null;return t=Number(t),t=isNaN(t)?0:t,e[t]?e[t]:null}replace(t,e){let o=this[Er]().slice(),s=o.indexOf(t);if(s===-1)return!1;return o[s]=e,this[xt].setAttribute(this[Gs],o.join(" ")),!0}supports(t){return this[Xh].includes(t)}values(){return this[Er]().values()}entries(){return this[Er]().entries()}forEach(t,e){let o=e??this[xt][m],s=this[Er](),n=this[Vt]??this;for(let l=0,a=s.length;l<a;l++)t.call(o,s[l],l,n)}keys(){return this[Er]().keys()}add(...t){let e=this[Er]().slice(),o=new Set(e);for(let s of t)if(!o.has(s))o.add(s),e.push(s);this[xt].setAttribute(this[Gs],e.join(" "))}remove(...t){let e=this[Er](),o=new Set(t),s=e.filter((n)=>!o.has(n));this[xt].setAttribute(this[Gs],s.join(" "))}contains(t){return this[Er]().includes(t)}toggle(t,e){let o;if(e!==void 0)o=e;else o=!this.contains(t);if(o)return this.add(t),!0;return this.remove(t),!1}[Er](){let t=this[xt].getAttribute(this[Gs])??"",e=this[U];if(e.attributeValue===t)return e.items;let o=[],s=t.trim();if(s){for(let n of s.split(IP))if(!o.includes(n))o.push(n)}return e.attributeValue=t,e.items=o,o}toString(){return this.value||""}}class de{[Nl];constructor(t,e){if(t!==h)throw TypeError("Illegal constructor");this[Nl]=e;let o=new fe(this,this.constructor!==de?[this.constructor,de]:[de]);return new Proxy(this,{get:(s,n)=>{if(n==="length")return e().length;if(n in s||typeof n==="symbol")return o.bind(n),s[n];let l=Number(n);if(!isNaN(l))return e()[l];return s.namedItem(n)||void 0},set(s,n,l){if(o.bind(n),typeof n==="symbol")return s[n]=l,!0;let a=Number(n);if(isNaN(a))s[n]=l;return!0},deleteProperty(s,n){if(typeof n==="symbol")return delete s[n],!0;let l=Number(n);if(isNaN(l))delete s[n];return!0},ownKeys(){let s=[],n=e();for(let l=0;l<n.length;l++){let a=n[l],y=a.getAttribute("id")||a.getAttribute("name");if(s.push(String(l)),y)s.push(y)}return s},has(s,n){if(n in s)return!0;let l=e(),a=Number(n);if(!isNaN(a)&&a>=0&&a<l.length)return!0;n=String(n);for(let y=0;y<l.length;y++){let u=l[y],c=u.getAttribute("id")||u.getAttribute("name");if(c&&c===n)return!0}return!1},defineProperty(s,n,l){if(o.preventBinding(n),n in s)return Object.defineProperty(s,n,l),!0;return!1},getOwnPropertyDescriptor(s,n){if(n in s||typeof n==="symbol")return;let l=e(),a=Number(n);if(!isNaN(a)&&a>=0&&a<l.length)return{value:l[a],writable:!1,enumerable:!0,configurable:!0};for(let y=0;y<l.length;y++){let u=l[y],c=u.getAttribute("id")||u.getAttribute("name");if(c&&c===n)return{value:u,writable:!1,enumerable:!0,configurable:!0}}}})}get length(){return this[Nl]().length}get[Symbol.toStringTag](){return this.constructor.name}toLocaleString(){return`[object ${this.constructor.name}]`}toString(){return`[object ${this.constructor.name}]`}item(t){let e=this[Nl]();return t>=0&&e[t]?e[t]:null}[Symbol.iterator](){return this[Nl]()[Symbol.iterator]()}namedItem(t){let e=this[Nl]();t=String(t);for(let o of e)if(o.getAttribute("id")===t||o.getAttribute("name")===t)return o;return null}}class oe{static append(t,...e){for(let o of e)if(o instanceof st)t.appendChild(o);else t.appendChild(t[x].createTextNode(String(o)))}static prepend(t,...e){let o=t.firstChild;for(let s of e)if(s instanceof st)t.insertBefore(s,o);else t.insertBefore(t[x].createTextNode(String(s)),o)}static replaceChildren(t,...e){let o=t[_];while(o.length)t.removeChild(o[0]);this.append(t,...e)}static getElementsByClassName(t,e){return new de(h,()=>yt.querySelectorAll(t,`.${e.replace(/\s+/gm,".")}`)[Q])}static getElementsByTagName(t,e){let o=e.toUpperCase(),s=e==="*",n=(a,y)=>{let u=[];for(let c of a[bt]){if(s||c[z].toUpperCase()===o)u.push(c);c[He].push(y);for(let d of n(c,y))u.push(d)}return u};return new de(h,()=>{let a=t[U].elementsByTagName,y=a.get(e);if(y?.result){let d=y.result.deref();if(d)return d}let u={result:null},c=n(t,u);return u.result=new WeakRef(c),a.set(e,u),c})}static getElementsByTagNameNS(t,e,o){let s=e===Ht.html&&t[x][xe]==="text/html"?o.toUpperCase():o,n=o==="*",l=(y,u)=>{let c=[];for(let d of y[bt]){if((n||d[z]===s)&&d[J]===e)c.push(d);d[He].push(u);for(let g of l(d,u))c.push(g)}return c};return new de(h,()=>{let y=t[U].elementsByTagNameNS,u=y.get(o);if(u?.result){let g=u.result.deref();if(g)return g}let c={result:null},d=l(t,c);return c.result=new WeakRef(d),y.set(o,c),d})}static getElementByTagName(t,e){let o=e.toUpperCase(),s=(u,c)=>{for(let d of u[bt]){if(d[He].push(c),d[z]===o)return d;let g=s(d,c);if(g)return g}return null},n=t[U].elementByTagName,l=n.get(e);if(l?.result){let u=l.result.deref();if(u)return u}let a={result:null},y=s(t,a);return a.result=y?new WeakRef(y):{deref:()=>null},n.set(e,a),y}static getElementById(t,e){if(e=String(e),t[D]===st.DOCUMENT_NODE){let y=t[wi].get(e);if(y&&y.elements.length>0)return y.elements[0];return null}let o=(y,u)=>{for(let c of y[bt]){if(c[He].push(u),c.getAttribute("id")===e)return c;let d=o(c,u);if(d)return d}return null},s=t[U].elementById,n=s.get(e);if(n?.result){let y=n.result.deref();if(y)return y}let l={result:null},a=o(t,l);return l.result=a?new WeakRef(a):{deref:()=>null},s.set(e,l),a}}class em extends Array{constructor(t){super();if(t!==1&&t!==h)throw TypeError("Illegal constructor")}item(t){return this[t]??null}}class ln{[Ai]=new Map;[Wr]=new Map;[Q]=new Map;constructor(t){this[xt]=t}get length(){return this[Q].size}get[Symbol.toStringTag](){return"NamedNodeMap"}toString(){return"[object NamedNodeMap]"}[Symbol.iterator](){return this[Q].values()}item(t){let e=Array.from(this[Q].values());return t>=0&&e[t]?e[t]:null}getNamedItem(t){if(t=String(t),this[xt][J]===Ht.html&&this[xt][x][xe]==="text/html")return this[Wr].get(Dr.asciiLowerCase(t))?.[0]||null;return this[Wr].get(t)?.[0]||null}getNamedItemNS(t,e){let o=this[Ai].get(`${t||""}:${e}`);if(o&&(!o[Ft]||o[J]))return o;return null}setNamedItem(t){return this[zo](t)}setNamedItemNS(t){return this[zo](t)}removeNamedItem(t){let e=this.getNamedItem(t);if(!e)throw new this[xt][m].DOMException(`Failed to execute 'removeNamedItem' on 'NamedNodeMap': No item with name '${t}' was found.`,w.notFoundError);return this[Os](e),e}removeNamedItemNS(t,e){let o=this.getNamedItemNS(t,e);if(!o)throw new this[xt][m].DOMException(`Failed to execute 'removeNamedItemNS' on 'NamedNodeMap': No item with name '${e}' in namespace '${t}' was found.`,w.notFoundError);return this[Os](o),o}[zo](t,e=!1){if(t[xt]!==null&&t[xt]!==this[xt])throw new this[xt][m].DOMException("The attribute is in use.",w.inUseAttributeError);t[xt]=this[xt];let o=this.getNamedItemNS(t[J],t[ot])||null,s=this[Wr].get(t[rt]);if(o===t)return t;if(this[Ai].set(`${t[J]||""}:${t[ot]}`,t),this[Q].set(`${t[J]||""}:${t[rt]}`,t),!s?.length)this[Wr].set(t[rt],[t]);else{let n=s.indexOf(o);if(n!==-1)s.splice(n,1);s.push(t)}if(!e)this[xt][Re](t,o);return o}[Os](t,e=!1){t[xt]=null,this[Ai].delete(`${t[J]||""}:${t[ot]}`),this[Q].delete(`${t[J]||""}:${t[rt]}`);let o=this[Wr].get(t[rt]);if(o?.length){let s=o.indexOf(t);if(s!==-1)o.splice(s,1);if(!o.length)this[Wr].delete(t[rt])}if(!e)this[xt][br](t)}}class cc{static createProxy(t){let e=new fe(this,[ln]);return new Proxy(t,{get:(o,s)=>{if(s==="length")return t[Q].size;if(s in o||typeof s==="symbol")return e.bind(s),o[s];let n=Number(s);if(!isNaN(n))return o.item(n);return o.getNamedItem(s)||void 0},set(o,s,n){if(e.bind(s),typeof s==="symbol")return o[s]=n,!0;let l=Number(s);if(isNaN(l))o[s]=n;return!0},deleteProperty(o,s){if(typeof s==="symbol")return delete o[s],!0;let n=Number(s);if(isNaN(n))delete o[s];return!0},ownKeys(){let o=Array.from(t[Q].keys());for(let s=0,n=t[Q].size;s<n;s++)o.push(String(s));return o},has(o,s){if(typeof s==="symbol")return!1;if(s in o||t[Q].has(s))return!0;let n=Number(s);if(!isNaN(n)&&n>=0&&n<t[Q].size)return!0;return!1},defineProperty(o,s,n){if(e.preventBinding(s),s in o)return Object.defineProperty(o,s,n),!0;return!1},getOwnPropertyDescriptor(o,s){if(s in o||typeof s==="symbol")return;let n=Number(s);if(!isNaN(n)){if(n>=0){let a=o.item(n);if(a)return{value:a,writable:!1,enumerable:!0,configurable:!0}}return}let l=t[Q].get(s);if(l)return{value:l,writable:!1,enumerable:!0,configurable:!0}}})}}var jb;(function(t){t.rawText="rawText",t.noSelfDescendants="noSelfDescendants",t.noFirstLevelSelfDescendants="noFirstLevelSelfDescendants",t.noForbiddenFirstLevelDescendants="noForbiddenFirstLevelDescendants",t.noDescendants="noDescendants",t.permittedDescendants="permittedDescendants",t.textOrComments="textOrComments",t.anyDescendants="anyDescendants"})(jb||(jb={}));var G=jb;var $e={a:{className:"HTMLAnchorElement",contentModel:G.noSelfDescendants},abbr:{className:"HTMLElement",contentModel:G.anyDescendants},address:{className:"HTMLElement",contentModel:G.anyDescendants},area:{className:"HTMLAreaElement",contentModel:G.noDescendants},article:{className:"HTMLElement",contentModel:G.anyDescendants},aside:{className:"HTMLElement",contentModel:G.anyDescendants},audio:{className:"HTMLAudioElement",contentModel:G.anyDescendants},b:{className:"HTMLElement",contentModel:G.anyDescendants},base:{className:"HTMLBaseElement",contentModel:G.noDescendants},bdi:{className:"HTMLElement",contentModel:G.anyDescendants},bdo:{className:"HTMLElement",contentModel:G.anyDescendants},body:{className:"HTMLBodyElement",contentModel:G.anyDescendants},template:{className:"HTMLTemplateElement",contentModel:G.anyDescendants},form:{className:"HTMLFormElement",contentModel:G.anyDescendants},input:{className:"HTMLInputElement",contentModel:G.noDescendants},textarea:{className:"HTMLTextAreaElement",contentModel:G.anyDescendants},script:{className:"HTMLScriptElement",contentModel:G.rawText},img:{className:"HTMLImageElement",contentModel:G.noDescendants},link:{className:"HTMLLinkElement",contentModel:G.noDescendants},style:{className:"HTMLStyleElement",contentModel:G.rawText},label:{className:"HTMLLabelElement",contentModel:G.anyDescendants},slot:{className:"HTMLSlotElement",contentModel:G.anyDescendants},meta:{className:"HTMLMetaElement",contentModel:G.noDescendants},blockquote:{className:"HTMLQuoteElement",contentModel:G.anyDescendants},br:{className:"HTMLBRElement",contentModel:G.noDescendants},button:{className:"HTMLButtonElement",contentModel:G.anyDescendants},canvas:{className:"HTMLCanvasElement",contentModel:G.anyDescendants},caption:{className:"HTMLTableCaptionElement",contentModel:G.noForbiddenFirstLevelDescendants,forbiddenDescendants:["table","tbody","thead","tfoot","tr","td","th","col","colgroup"],permittedParents:["table"]},cite:{className:"HTMLElement",contentModel:G.anyDescendants},code:{className:"HTMLElement",contentModel:G.anyDescendants},col:{className:"HTMLTableColElement",contentModel:G.noDescendants,permittedParents:["colgroup"]},colgroup:{className:"HTMLTableColElement",contentModel:G.permittedDescendants,permittedDescendants:["col"]},data:{className:"HTMLDataElement",contentModel:G.anyDescendants},datalist:{className:"HTMLDataListElement",contentModel:G.anyDescendants},dd:{className:"HTMLElement",contentModel:G.noForbiddenFirstLevelDescendants,forbiddenDescendants:["dt","dd"]},del:{className:"HTMLModElement",contentModel:G.anyDescendants},details:{className:"HTMLDetailsElement",contentModel:G.anyDescendants},dfn:{className:"HTMLElement",contentModel:G.anyDescendants},dialog:{className:"HTMLDialogElement",contentModel:G.anyDescendants},div:{className:"HTMLDivElement",contentModel:G.anyDescendants},dl:{className:"HTMLDListElement",contentModel:G.anyDescendants},dt:{className:"HTMLElement",contentModel:G.noForbiddenFirstLevelDescendants,forbiddenDescendants:["dt","dd"]},em:{className:"HTMLElement",contentModel:G.anyDescendants},embed:{className:"HTMLEmbedElement",contentModel:G.noDescendants},fieldset:{className:"HTMLFieldSetElement",contentModel:G.anyDescendants},figcaption:{className:"HTMLElement",contentModel:G.anyDescendants},figure:{className:"HTMLElement",contentModel:G.anyDescendants},footer:{className:"HTMLElement",contentModel:G.anyDescendants},h1:{className:"HTMLHeadingElement",contentModel:G.noFirstLevelSelfDescendants},h2:{className:"HTMLHeadingElement",contentModel:G.noFirstLevelSelfDescendants},h3:{className:"HTMLHeadingElement",contentModel:G.noFirstLevelSelfDescendants},h4:{className:"HTMLHeadingElement",contentModel:G.noFirstLevelSelfDescendants},h5:{className:"HTMLHeadingElement",contentModel:G.noFirstLevelSelfDescendants},h6:{className:"HTMLHeadingElement",contentModel:G.noFirstLevelSelfDescendants},head:{className:"HTMLHeadElement",contentModel:G.anyDescendants},header:{className:"HTMLElement",contentModel:G.anyDescendants},hgroup:{className:"HTMLElement",contentModel:G.anyDescendants},hr:{className:"HTMLHRElement",contentModel:G.noDescendants},html:{className:"HTMLHtmlElement",contentModel:G.anyDescendants},i:{className:"HTMLElement",contentModel:G.anyDescendants},iframe:{className:"HTMLIFrameElement",contentModel:G.anyDescendants},ins:{className:"HTMLModElement",contentModel:G.anyDescendants},kbd:{className:"HTMLElement",contentModel:G.anyDescendants},legend:{className:"HTMLLegendElement",contentModel:G.anyDescendants},li:{className:"HTMLLIElement",contentModel:G.noFirstLevelSelfDescendants},main:{className:"HTMLElement",contentModel:G.anyDescendants},map:{className:"HTMLMapElement",contentModel:G.anyDescendants},mark:{className:"HTMLElement",contentModel:G.anyDescendants},menu:{className:"HTMLMenuElement",contentModel:G.anyDescendants},meter:{className:"HTMLMeterElement",contentModel:G.anyDescendants},nav:{className:"HTMLElement",contentModel:G.anyDescendants},noscript:{className:"HTMLElement",contentModel:G.anyDescendants},object:{className:"HTMLObjectElement",contentModel:G.anyDescendants},ol:{className:"HTMLOListElement",contentModel:G.anyDescendants},optgroup:{className:"HTMLOptGroupElement",contentModel:G.noFirstLevelSelfDescendants},option:{className:"HTMLOptionElement",contentModel:G.noForbiddenFirstLevelDescendants,forbiddenDescendants:["option","optgroup"]},output:{className:"HTMLOutputElement",contentModel:G.anyDescendants},p:{className:"HTMLParagraphElement",contentModel:G.noForbiddenFirstLevelDescendants,forbiddenDescendants:["address","article","aside","blockquote","details","dialog","div","dl","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","main","menu","nav","ol","p","pre","section","table","ul"]},param:{className:"HTMLParamElement",contentModel:G.noDescendants},picture:{className:"HTMLPictureElement",contentModel:G.anyDescendants},pre:{className:"HTMLPreElement",contentModel:G.anyDescendants},progress:{className:"HTMLProgressElement",contentModel:G.anyDescendants},q:{className:"HTMLQuoteElement",contentModel:G.anyDescendants},rb:{className:"HTMLElement",contentModel:G.anyDescendants},rp:{className:"HTMLElement",contentModel:G.noForbiddenFirstLevelDescendants,forbiddenDescendants:["rp","rt"]},rt:{className:"HTMLElement",contentModel:G.noForbiddenFirstLevelDescendants,forbiddenDescendants:["rp","rt"]},rtc:{className:"HTMLElement",contentModel:G.anyDescendants},ruby:{className:"HTMLElement",contentModel:G.anyDescendants},s:{className:"HTMLElement",contentModel:G.anyDescendants},samp:{className:"HTMLElement",contentModel:G.anyDescendants},section:{className:"HTMLElement",contentModel:G.anyDescendants},select:{className:"HTMLSelectElement",contentModel:G.anyDescendants},small:{className:"HTMLElement",contentModel:G.anyDescendants},source:{className:"HTMLSourceElement",contentModel:G.noDescendants},span:{className:"HTMLSpanElement",contentModel:G.anyDescendants},strong:{className:"HTMLElement",contentModel:G.anyDescendants},sub:{className:"HTMLElement",contentModel:G.anyDescendants},summary:{className:"HTMLElement",contentModel:G.anyDescendants},sup:{className:"HTMLElement",contentModel:G.anyDescendants},table:{className:"HTMLTableElement",contentModel:G.permittedDescendants,permittedDescendants:["caption","colgroup","thead","tfoot","tbody"],moveForbiddenDescendant:{exclude:[]}},tbody:{className:"HTMLTableSectionElement",contentModel:G.permittedDescendants,permittedDescendants:["tr"],permittedParents:["table"],moveForbiddenDescendant:{exclude:["caption","colgroup","thead","tfoot","tbody"]}},td:{className:"HTMLTableCellElement",contentModel:G.noForbiddenFirstLevelDescendants,forbiddenDescendants:["td","th","tr","tbody","tfoot","thead"],permittedParents:["tr"]},tfoot:{className:"HTMLTableSectionElement",contentModel:G.permittedDescendants,permittedDescendants:["tr"],permittedParents:["table"],moveForbiddenDescendant:{exclude:["caption","colgroup","thead","tfoot","tbody"]}},th:{className:"HTMLTableCellElement",contentModel:G.noForbiddenFirstLevelDescendants,forbiddenDescendants:["td","th","tr","tbody","tfoot","thead"],permittedParents:["tr"]},thead:{className:"HTMLTableSectionElement",contentModel:G.permittedDescendants,permittedDescendants:["tr"],permittedParents:["table"],moveForbiddenDescendant:{exclude:["caption","colgroup","thead","tfoot","tbody"]}},time:{className:"HTMLTimeElement",contentModel:G.anyDescendants},title:{className:"HTMLTitleElement",contentModel:G.anyDescendants},tr:{className:"HTMLTableRowElement",contentModel:G.permittedDescendants,permittedDescendants:["td","th"],permittedParents:["tbody","tfoot","thead"],addPermittedParent:"tbody",moveForbiddenDescendant:{exclude:["caption","colgroup","thead","tfoot","tbody","tr"]}},track:{className:"HTMLTrackElement",contentModel:G.noDescendants},u:{className:"HTMLElement",contentModel:G.anyDescendants},ul:{className:"HTMLUListElement",contentModel:G.anyDescendants},var:{className:"HTMLElement",contentModel:G.anyDescendants},video:{className:"HTMLVideoElement",contentModel:G.anyDescendants},wbr:{className:"HTMLElement",contentModel:G.noDescendants}};var qb,RP=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]),iS=(qb=String.fromCodePoint)!==null&&qb!==void 0?qb:(t)=>{let e="";if(t>65535)t-=65536,e+=String.fromCharCode(t>>>10&1023|55296),t=56320|t&1023;return e+=String.fromCharCode(t),e};function sS(t){var e;if(t>=55296&&t<=57343||t>1114111)return 65533;return(e=RP.get(t))!==null&&e!==void 0?e:t}function dc(t){let e=typeof atob==="function"?atob(t):typeof Buffer.from==="function"?Buffer.from(t,"base64").toString("binary"):new Buffer(t,"base64").toString("binary"),o=e.length&-2,s=new Uint16Array(o/2);for(let n=0,l=0;n<o;n+=2){let a=e.charCodeAt(n),y=e.charCodeAt(n+1);s[l++]=a|y<<8}return s}var nS=dc("QR08ALkAAgH6AYsDNQR2BO0EPgXZBQEGLAbdBxMISQrvCmQLfQurDKQNLw4fD4YPpA+6D/IPAAAAAAAAAAAAAAAAKhBMEY8TmxUWF2EYLBkxGuAa3RsJHDscWR8YIC8jSCSIJcMl6ie3Ku8rEC0CLjoupS7kLgAIRU1hYmNmZ2xtbm9wcnN0dVQAWgBeAGUAaQBzAHcAfgCBAIQAhwCSAJoAoACsALMAbABpAGcAO4DGAMZAUAA7gCYAJkBjAHUAdABlADuAwQDBQHIiZXZlAAJhAAFpeW0AcgByAGMAO4DCAMJAEGRyAADgNdgE3XIAYQB2AGUAO4DAAMBA8CFoYZFj4SFjcgBhZAAAoFMqAAFncIsAjgBvAG4ABGFmAADgNdg43fAlbHlGdW5jdGlvbgCgYSBpAG4AZwA7gMUAxUAAAWNzpACoAHIAAOA12Jzc6SFnbgCgVCJpAGwAZABlADuAwwDDQG0AbAA7gMQAxEAABGFjZWZvcnN1xQDYANoA7QDxAPYA+QD8AAABY3LJAM8AayNzbGFzaAAAoBYidgHTANUAAKDnKmUAZAAAoAYjeQARZIABY3J0AOAA5QDrAGEidXNlAACgNSLuI291bGxpcwCgLCFhAJJjcgAA4DXYBd1wAGYAAOA12Dnd5SF2ZdhiYwDyAOoAbSJwZXEAAKBOIgAHSE9hY2RlZmhpbG9yc3UXARoBHwE6AVIBVQFiAWQBZgGCAakB6QHtAfIBYwB5ACdkUABZADuAqQCpQIABY3B5ACUBKAE1AfUhdGUGYWmg0iJ0KGFsRGlmZmVyZW50aWFsRAAAoEUhbCJleXMAAKAtIQACYWVpb0EBRAFKAU0B8iFvbgxhZABpAGwAO4DHAMdAcgBjAAhhbiJpbnQAAKAwIm8AdAAKYQABZG5ZAV0BaSJsbGEAuGB0I2VyRG90ALdg8gA5AWkAp2NyImNsZQAAAkRNUFRwAXQBeQF9AW8AdAAAoJkiaSJudXMAAKCWIuwhdXMAoJUiaSJtZXMAAKCXIm8AAAFjc4cBlAFrKndpc2VDb250b3VySW50ZWdyYWwAAKAyImUjQ3VybHkAAAFEUZwBpAFvJXVibGVRdW90ZQAAoB0gdSJvdGUAAKAZIAACbG5wdbABtgHNAdgBbwBuAGWgNyIAoHQqgAFnaXQAvAHBAcUB8iJ1ZW50AKBhIm4AdAAAoC8i7yV1ckludGVncmFsAKAuIgABZnLRAdMBAKACIe8iZHVjdACgECJuLnRlckNsb2Nrd2lzZUNvbnRvdXJJbnRlZ3JhbAAAoDMi7yFzcwCgLypjAHIAAOA12J7ccABDoNMiYQBwAACgTSKABURKU1phY2VmaW9zAAsCEgIVAhgCGwIsAjQCOQI9AnMCfwNvoEUh9CJyYWhkAKARKWMAeQACZGMAeQAFZGMAeQAPZIABZ3JzACECJQIoAuchZXIAoCEgcgAAoKEhaAB2AACg5CoAAWF5MAIzAvIhb24OYRRkbAB0oAciYQCUY3IAAOA12AfdAAFhZkECawIAAWNtRQJnAvIjaXRpY2FsAAJBREdUUAJUAl8CYwJjInV0ZQC0YG8AdAFZAloC2WJiJGxlQWN1dGUA3WJyImF2ZQBgYGkibGRlANxi7yFuZACgxCJmJWVyZW50aWFsRAAAoEYhcAR9AgAAAAAAAIECjgIAABoDZgAA4DXYO91EoagAhQKJAm8AdAAAoNwgcSJ1YWwAAKBQIuIhbGUAA0NETFJVVpkCqAK1Au8C/wIRA28AbgB0AG8AdQByAEkAbgB0AGUAZwByAGEA7ADEAW8AdAKvAgAAAACwAqhgbiNBcnJvdwAAoNMhAAFlb7kC0AJmAHQAgAFBUlQAwQLGAs0CciJyb3cAAKDQIekkZ2h0QXJyb3cAoNQhZQDlACsCbgBnAAABTFLWAugC5SFmdAABQVLcAuECciJyb3cAAKD4J+kkZ2h0QXJyb3cAoPon6SRnaHRBcnJvdwCg+SdpImdodAAAAUFU9gL7AnIicm93AACg0iFlAGUAAKCoInAAQQIGAwAAAAALA3Iicm93AACg0SFvJHduQXJyb3cAAKDVIWUlcnRpY2FsQmFyAACgJSJuAAADQUJMUlRhJAM2AzoDWgNxA3oDciJyb3cAAKGTIUJVLAMwA2EAcgAAoBMpcCNBcnJvdwAAoPUhciJldmUAEWPlIWZ00gJDAwAASwMAAFIDaSVnaHRWZWN0b3IAAKBQKWUkZVZlY3RvcgAAoF4p5SJjdG9yQqC9IWEAcgAAoFYpaSJnaHQA1AFiAwAAaQNlJGVWZWN0b3IAAKBfKeUiY3RvckKgwSFhAHIAAKBXKWUAZQBBoKQiciJyb3cAAKCnIXIAcgBvAPcAtAIAAWN0gwOHA3IAAOA12J/c8iFvaxBhAAhOVGFjZGZnbG1vcHFzdHV4owOlA6kDsAO/A8IDxgPNA9ID8gP9AwEEFAQeBCAEJQRHAEphSAA7gNAA0EBjAHUAdABlADuAyQDJQIABYWl5ALYDuQO+A/Ihb24aYXIAYwA7gMoAykAtZG8AdAAWYXIAAOA12AjdcgBhAHYAZQA7gMgAyEDlIm1lbnQAoAgiAAFhcNYD2QNjAHIAEmF0AHkAUwLhAwAAAADpA20lYWxsU3F1YXJlAACg+yVlJ3J5U21hbGxTcXVhcmUAAKCrJQABZ3D2A/kDbwBuABhhZgAA4DXYPN3zImlsb26VY3UAAAFhaQYEDgRsAFSgdSppImxkZQAAoEIi7CNpYnJpdW0AoMwhAAFjaRgEGwRyAACgMCFtAACgcyphAJdjbQBsADuAywDLQAABaXApBC0E8yF0cwCgAyLvJG5lbnRpYWxFAKBHIYACY2Zpb3MAPQQ/BEMEXQRyBHkAJGRyAADgNdgJ3WwibGVkAFMCTAQAAAAAVARtJWFsbFNxdWFyZQAAoPwlZSdyeVNtYWxsU3F1YXJlAACgqiVwA2UEAABpBAAAAABtBGYAAOA12D3dwSFsbACgACLyI2llcnRyZgCgMSFjAPIAcQQABkpUYWJjZGZnb3JzdIgEiwSOBJMElwSkBKcEqwStBLIE5QTqBGMAeQADZDuAPgA+QO0hbWFkoJMD3GNyImV2ZQAeYYABZWl5AJ0EoASjBOQhaWwiYXIAYwAcYRNkbwB0ACBhcgAA4DXYCt0AoNkicABmAADgNdg+3eUiYXRlcgADRUZHTFNUvwTIBM8E1QTZBOAEcSJ1YWwATKBlIuUhc3MAoNsidSRsbEVxdWFsAACgZyJyI2VhdGVyAACgoirlIXNzAKB3IuwkYW50RXF1YWwAoH4qaSJsZGUAAKBzImMAcgAA4DXYotwAoGsiAARBYWNmaW9zdfkE/QQFBQgFCwUTBSIFKwVSIkRjeQAqZAABY3QBBQQFZQBrAMdiXmDpIXJjJGFyAACgDCFsJWJlcnRTcGFjZQAAoAsh8AEYBQAAGwVmAACgDSHpJXpvbnRhbExpbmUAoAAlAAFjdCYFKAXyABIF8iFvayZhbQBwAEQBMQU5BW8AdwBuAEgAdQBtAPAAAAFxInVhbAAAoE8iAAdFSk9hY2RmZ21ub3N0dVMFVgVZBVwFYwVtBXAFcwV6BZAFtgXFBckFzQVjAHkAFWTsIWlnMmFjAHkAAWRjAHUAdABlADuAzQDNQAABaXlnBWwFcgBjADuAzgDOQBhkbwB0ADBhcgAAoBEhcgBhAHYAZQA7gMwAzEAAoREhYXB/BYsFAAFjZ4MFhQVyACphaSNuYXJ5SQAAoEghbABpAGUA8wD6AvQBlQUAAKUFZaAsIgABZ3KaBZ4F8iFhbACgKyLzI2VjdGlvbgCgwiJpI3NpYmxlAAABQ1SsBbEFbyJtbWEAAKBjIGkibWVzAACgYiCAAWdwdAC8Bb8FwwVvAG4ALmFmAADgNdhA3WEAmWNjAHIAAKAQIWkibGRlAChh6wHSBQAA1QVjAHkABmRsADuAzwDPQIACY2Zvc3UA4QXpBe0F8gX9BQABaXnlBegFcgBjADRhGWRyAADgNdgN3XAAZgAA4DXYQd3jAfcFAAD7BXIAAOA12KXc8iFjeQhk6yFjeQRkgANISmFjZm9zAAwGDwYSBhUGHQYhBiYGYwB5ACVkYwB5AAxk8CFwYZpjAAFleRkGHAbkIWlsNmEaZHIAAOA12A7dcABmAADgNdhC3WMAcgAA4DXYptyABUpUYWNlZmxtb3N0AD0GQAZDBl4GawZkB2gHcAd0B80H2gdjAHkACWQ7gDwAPECAAmNtbnByAEwGTwZSBlUGWwb1IXRlOWHiIWRhm2NnAACg6ifsI2FjZXRyZgCgEiFyAACgniGAAWFleQBkBmcGagbyIW9uPWHkIWlsO2EbZAABZnNvBjQHdAAABUFDREZSVFVWYXKABp4GpAbGBssG3AYDByEHwQIqBwABbnKEBowGZyVsZUJyYWNrZXQAAKDoJ/Ihb3cAoZAhQlKTBpcGYQByAACg5CHpJGdodEFycm93AKDGIWUjaWxpbmcAAKAII28A9QGqBgAAsgZiJWxlQnJhY2tldAAAoOYnbgDUAbcGAAC+BmUkZVZlY3RvcgAAoGEp5SJjdG9yQqDDIWEAcgAAoFkpbCJvb3IAAKAKI2kiZ2h0AAABQVbSBtcGciJyb3cAAKCUIeUiY3RvcgCgTikAAWVy4AbwBmUAAKGjIkFW5gbrBnIicm93AACgpCHlImN0b3IAoFopaSNhbmdsZQBCorIi+wYAAAAA/wZhAHIAAKDPKXEidWFsAACgtCJwAIABRFRWAAoHEQcYB+8kd25WZWN0b3IAoFEpZSRlVmVjdG9yAACgYCnlImN0b3JCoL8hYQByAACgWCnlImN0b3JCoLwhYQByAACgUilpAGcAaAB0AGEAcgByAG8A9wDMAnMAAANFRkdMU1Q/B0cHTgdUB1gHXwfxJXVhbEdyZWF0ZXIAoNoidSRsbEVxdWFsAACgZiJyI2VhdGVyAACgdiLlIXNzAKChKuwkYW50RXF1YWwAoH0qaSJsZGUAAKByInIAAOA12A/dZaDYIuYjdGFycm93AKDaIWkiZG90AD9hgAFucHcAege1B7kHZwAAAkxSbHKCB5QHmwerB+UhZnQAAUFSiAeNB3Iicm93AACg9SfpJGdodEFycm93AKD3J+kkZ2h0QXJyb3cAoPYn5SFmdAABYXLcAqEHaQBnAGgAdABhAHIAcgBvAPcA5wJpAGcAaAB0AGEAcgByAG8A9wDuAmYAAOA12EPdZQByAAABTFK/B8YHZSRmdEFycm93AACgmSHpJGdodEFycm93AKCYIYABY2h0ANMH1QfXB/IAWgYAoLAh8iFva0FhAKBqIgAEYWNlZmlvc3XpB+wH7gf/BwMICQgOCBEIcAAAoAUpeQAcZAABZGzyB/kHaSR1bVNwYWNlAACgXyBsI2ludHJmAACgMyFyAADgNdgQ3e4jdXNQbHVzAKATInAAZgAA4DXYRN1jAPIA/gecY4AESmFjZWZvc3R1ACEIJAgoCDUIgQiFCDsKQApHCmMAeQAKZGMidXRlAENhgAFhZXkALggxCDQI8iFvbkdh5CFpbEVhHWSAAWdzdwA7CGEIfQjhInRpdmWAAU1UVgBECEwIWQhlJWRpdW1TcGFjZQAAoAsgaABpAAABY25SCFMIawBTAHAAYQBjAOUASwhlAHIAeQBUAGgAaQDuAFQI9CFlZAABR0xnCHUIcgBlAGEAdABlAHIARwByAGUAYQB0AGUA8gDrBGUAcwBzAEwAZQBzAPMA2wdMImluZQAKYHIAAOA12BHdAAJCbnB0jAiRCJkInAhyImVhawAAoGAgwiZyZWFraW5nU3BhY2WgYGYAAKAVIUOq7CqzCMIIzQgAAOcIGwkAAAAAAAAtCQAAbwkAAIcJAACdCcAJGQoAADQKAAFvdbYIvAjuI2dydWVudACgYiJwIkNhcAAAoG0ibyh1YmxlVmVydGljYWxCYXIAAKAmIoABbHF4ANII1wjhCOUibWVudACgCSL1IWFsVKBgImkibGRlAADgQiI4A2kic3RzAACgBCJyI2VhdGVyAACjbyJFRkdMU1T1CPoIAgkJCQ0JFQlxInVhbAAAoHEidSRsbEVxdWFsAADgZyI4A3IjZWF0ZXIAAOBrIjgD5SFzcwCgeSLsJGFudEVxdWFsAOB+KjgDaSJsZGUAAKB1IvUhbXBEASAJJwnvI3duSHVtcADgTiI4A3EidWFsAADgTyI4A2UAAAFmczEJRgn0JFRyaWFuZ2xlQqLqIj0JAAAAAEIJYQByAADgzyk4A3EidWFsAACg7CJzAICibiJFR0xTVABRCVYJXAlhCWkJcSJ1YWwAAKBwInIjZWF0ZXIAAKB4IuUhc3MA4GoiOAPsJGFudEVxdWFsAOB9KjgDaSJsZGUAAKB0IuUic3RlZAABR0x1CX8J8iZlYXRlckdyZWF0ZXIA4KIqOAPlI3NzTGVzcwDgoSo4A/IjZWNlZGVzAKGAIkVTjwmVCXEidWFsAADgryo4A+wkYW50RXF1YWwAoOAiAAFlaaAJqQl2JmVyc2VFbGVtZW50AACgDCLnJWh0VHJpYW5nbGVCousitgkAAAAAuwlhAHIAAODQKTgDcSJ1YWwAAKDtIgABcXXDCeAJdSNhcmVTdQAAAWJwywnVCfMhZXRF4I8iOANxInVhbAAAoOIi5SJyc2V0ReCQIjgDcSJ1YWwAAKDjIoABYmNwAOYJ8AkNCvMhZXRF4IIi0iBxInVhbAAAoIgi4yJlZWRzgKGBIkVTVAD6CQAKBwpxInVhbAAA4LAqOAPsJGFudEVxdWFsAKDhImkibGRlAADgfyI4A+UicnNldEXggyLSIHEidWFsAACgiSJpImxkZQCAoUEiRUZUACIKJwouCnEidWFsAACgRCJ1JGxsRXF1YWwAAKBHImkibGRlAACgSSJlJXJ0aWNhbEJhcgAAoCQiYwByAADgNdip3GkAbABkAGUAO4DRANFAnWMAB0VhY2RmZ21vcHJzdHV2XgphCmgKcgp2CnoKgQqRCpYKqwqtCrsKyArNCuwhaWdSYWMAdQB0AGUAO4DTANNAAAFpeWwKcQpyAGMAO4DUANRAHmRiImxhYwBQYXIAAOA12BLdcgBhAHYAZQA7gNIA0kCAAWFlaQCHCooKjQpjAHIATGFnAGEAqWNjInJvbgCfY3AAZgAA4DXYRt3lI25DdXJseQABRFGeCqYKbyV1YmxlUXVvdGUAAKAcIHUib3RlAACgGCAAoFQqAAFjbLEKtQpyAADgNdiq3GEAcwBoADuA2ADYQGkAbAHACsUKZABlADuA1QDVQGUAcwAAoDcqbQBsADuA1gDWQGUAcgAAAUJQ0wrmCgABYXLXCtoKcgAAoD4gYQBjAAABZWvgCuIKAKDeI2UAdAAAoLQjYSVyZW50aGVzaXMAAKDcI4AEYWNmaGlsb3JzAP0KAwsFCwkLCwsMCxELIwtaC3IjdGlhbEQAAKACInkAH2RyAADgNdgT3WkApmOgY/Ujc01pbnVzsWAAAWlwFQsgC24AYwBhAHIAZQBwAGwAYQBuAOUACgVmAACgGSGAobsqZWlvACoLRQtJC+MiZWRlc4CheiJFU1QANAs5C0ALcSJ1YWwAAKCvKuwkYW50RXF1YWwAoHwiaSJsZGUAAKB+Im0AZQAAoDMgAAFkcE0LUQv1IWN0AKAPIm8jcnRpb24AYaA3ImwAAKAdIgABY2leC2ILcgAA4DXYq9yoYwACVWZvc2oLbwtzC3cLTwBUADuAIgAiQHIAAOA12BTdcABmAACgGiFjAHIAAOA12KzcAAZCRWFjZWZoaW9yc3WPC5MLlwupC7YL2AvbC90LhQyTDJoMowzhIXJyAKAQKUcAO4CuAK5AgAFjbnIAnQugC6ML9SF0ZVRhZwAAoOsncgB0oKAhbAAAoBYpgAFhZXkArwuyC7UL8iFvblhh5CFpbFZhIGR2oBwhZSJyc2UAAAFFVb8LzwsAAWxxwwvIC+UibWVudACgCyL1JGlsaWJyaXVtAKDLIXAmRXF1aWxpYnJpdW0AAKBvKXIAAKAcIW8AoWPnIWh0AARBQ0RGVFVWYewLCgwQDDIMNwxeDHwM9gIAAW5y8Av4C2clbGVCcmFja2V0AACg6SfyIW93AKGSIUJM/wsDDGEAcgAAoOUhZSRmdEFycm93AACgxCFlI2lsaW5nAACgCSNvAPUBFgwAAB4MYiVsZUJyYWNrZXQAAKDnJ24A1AEjDAAAKgxlJGVWZWN0b3IAAKBdKeUiY3RvckKgwiFhAHIAAKBVKWwib29yAACgCyMAAWVyOwxLDGUAAKGiIkFWQQxGDHIicm93AACgpiHlImN0b3IAoFspaSNhbmdsZQBCorMiVgwAAAAAWgxhAHIAAKDQKXEidWFsAACgtSJwAIABRFRWAGUMbAxzDO8kd25WZWN0b3IAoE8pZSRlVmVjdG9yAACgXCnlImN0b3JCoL4hYQByAACgVCnlImN0b3JCoMAhYQByAACgUykAAXB1iQyMDGYAAKAdIe4kZEltcGxpZXMAoHAp6SRnaHRhcnJvdwCg2yEAAWNongyhDHIAAKAbIQCgsSHsJGVEZWxheWVkAKD0KYAGSE9hY2ZoaW1vcXN0dQC/DMgMzAzQDOIM5gwKDQ0NFA0ZDU8NVA1YDQABQ2PDDMYMyCFjeSlkeQAoZEYiVGN5ACxkYyJ1dGUAWmEAorwqYWVpedgM2wzeDOEM8iFvbmBh5CFpbF5hcgBjAFxhIWRyAADgNdgW3e8hcnQAAkRMUlXvDPYM/QwEDW8kd25BcnJvdwAAoJMhZSRmdEFycm93AACgkCHpJGdodEFycm93AKCSIXAjQXJyb3cAAKCRIechbWGjY+EkbGxDaXJjbGUAoBgicABmAADgNdhK3XICHw0AAAAAIg10AACgGiLhIXJlgKGhJUlTVQAqDTINSg3uJXRlcnNlY3Rpb24AoJMidQAAAWJwNw1ADfMhZXRFoI8icSJ1YWwAAKCRIuUicnNldEWgkCJxInVhbAAAoJIibiJpb24AAKCUImMAcgAA4DXYrtxhAHIAAKDGIgACYmNtcF8Nag2ODZANc6DQImUAdABFoNAicSJ1YWwAAKCGIgABY2huDYkNZSJlZHMAgKF7IkVTVAB4DX0NhA1xInVhbAAAoLAq7CRhbnRFcXVhbACgfSJpImxkZQAAoH8iVABoAGEA9ADHCwCgESIAodEiZXOVDZ8NciJzZXQARaCDInEidWFsAACghyJlAHQAAKDRIoAFSFJTYWNmaGlvcnMAtQ27Db8NyA3ODdsN3w3+DRgOHQ4jDk8AUgBOADuA3gDeQMEhREUAoCIhAAFIY8MNxg1jAHkAC2R5ACZkAAFidcwNzQ0JYKRjgAFhZXkA1A3XDdoN8iFvbmRh5CFpbGJhImRyAADgNdgX3QABZWnjDe4N8gHoDQAA7Q3lImZvcmUAoDQiYQCYYwABY27yDfkNayNTcGFjZQAA4F8gCiDTInBhY2UAoAkg7CFkZYChPCJFRlQABw4MDhMOcSJ1YWwAAKBDInUkbGxFcXVhbAAAoEUiaSJsZGUAAKBIInAAZgAA4DXYS93pI3BsZURvdACg2yAAAWN0Jw4rDnIAAOA12K/c8iFva2Zh4QpFDlYOYA5qDgAAbg5yDgAAAAAAAAAAAAB5DnwOqA6zDgAADg8RDxYPGg8AAWNySA5ODnUAdABlADuA2gDaQHIAb6CfIeMhaXIAoEkpcgDjAVsOAABdDnkADmR2AGUAbGEAAWl5Yw5oDnIAYwA7gNsA20AjZGIibGFjAHBhcgAA4DXYGN1yAGEAdgBlADuA2QDZQOEhY3JqYQABZGl/Dp8OZQByAAABQlCFDpcOAAFhcokOiw5yAF9gYQBjAAABZWuRDpMOAKDfI2UAdAAAoLUjYSVyZW50aGVzaXMAAKDdI28AbgBQoMMi7CF1cwCgjiIAAWdwqw6uDm8AbgByYWYAAOA12EzdAARBREVUYWRwc78O0g7ZDuEOBQPqDvMOBw9yInJvdwDCoZEhyA4AAMwOYQByAACgEilvJHduQXJyb3cAAKDFIW8kd25BcnJvdwAAoJUhcSV1aWxpYnJpdW0AAKBuKWUAZQBBoKUiciJyb3cAAKClIW8AdwBuAGEAcgByAG8A9wAQA2UAcgAAAUxS+Q4AD2UkZnRBcnJvdwAAoJYh6SRnaHRBcnJvdwCglyFpAGyg0gNvAG4ApWPpIW5nbmFjAHIAAOA12LDcaSJsZGUAaGFtAGwAO4DcANxAgAREYmNkZWZvc3YALQ8xDzUPNw89D3IPdg97D4AP4SFzaACgqyJhAHIAAKDrKnkAEmThIXNobKCpIgCg5ioAAWVyQQ9DDwCgwSKAAWJ0eQBJD00Paw9hAHIAAKAWIGmgFiDjIWFsAAJCTFNUWA9cD18PZg9hAHIAAKAjIukhbmV8YGUkcGFyYXRvcgAAoFgnaSJsZGUAAKBAItQkaGluU3BhY2UAoAogcgAA4DXYGd1wAGYAAOA12E3dYwByAADgNdix3GQiYXNoAACgqiKAAmNlZm9zAI4PkQ+VD5kPng/pIXJjdGHkIWdlAKDAInIAAOA12BrdcABmAADgNdhO3WMAcgAA4DXYstwAAmZpb3OqD64Prw+0D3IAAOA12BvdnmNwAGYAAOA12E/dYwByAADgNdiz3IAEQUlVYWNmb3N1AMgPyw/OD9EP2A/gD+QP6Q/uD2MAeQAvZGMAeQAHZGMAeQAuZGMAdQB0AGUAO4DdAN1AAAFpedwP3w9yAGMAdmErZHIAAOA12BzdcABmAADgNdhQ3WMAcgAA4DXYtNxtAGwAeGEABEhhY2RlZm9z/g8BEAUQDRAQEB0QIBAkEGMAeQAWZGMidXRlAHlhAAFheQkQDBDyIW9ufWEXZG8AdAB7YfIBFRAAABwQbwBXAGkAZAB0AOgAVAhhAJZjcgAAoCghcABmAACgJCFjAHIAAOA12LXc4QtCEEkQTRAAAGcQbRByEAAAAAAAAAAAeRCKEJcQ8hD9EAAAGxEhETIROREAAD4RYwB1AHQAZQA7gOEA4UByImV2ZQADYYCiPiJFZGl1eQBWEFkQWxBgEGUQAOA+IjMDAKA/InIAYwA7gOIA4kB0AGUAO4C0ALRAMGRsAGkAZwA7gOYA5kByoGEgAOA12B7dcgBhAHYAZQA7gOAA4EAAAWVwfBCGEAABZnCAEIQQ8yF5bQCgNSHoAIMQaABhALFjAAFhcI0QWwAAAWNskRCTEHIAAWFnAACgPypkApwQAAAAALEQAKInImFkc3ajEKcQqRCuEG4AZAAAoFUqAKBcKmwib3BlAACgWCoAoFoqAKMgImVsbXJzersQvRDAEN0Q5RDtEACgpCllAACgICJzAGQAYaAhImEEzhDQENIQ1BDWENgQ2hDcEACgqCkAoKkpAKCqKQCgqykAoKwpAKCtKQCgrikAoK8pdAB2oB8iYgBkoL4iAKCdKQABcHTpEOwQaAAAoCIixWDhIXJyAKB8IwABZ3D1EPgQbwBuAAVhZgAA4DXYUt0Ao0giRWFlaW9wBxEJEQ0RDxESERQRAKBwKuMhaXIAoG8qAKBKImQAAKBLInMAJ2DyIW94ZaBIIvEADhFpAG4AZwA7gOUA5UCAAWN0eQAmESoRKxFyAADgNdi23CpgbQBwAGWgSCLxAPgBaQBsAGQAZQA7gOMA40BtAGwAO4DkAORAAAFjaUERRxFvAG4AaQBuAPQA6AFuAHQAAKARKgAITmFiY2RlZmlrbG5vcHJzdWQRaBGXEZ8RpxGrEdIR1hErEjASexKKEn0RThNbE3oTbwB0AACg7SoAAWNybBGJEWsAAAJjZXBzdBF4EX0RghHvIW5nAKBMInAjc2lsb24A9mNyImltZQAAoDUgaQBtAGWgPSJxAACgzSJ2AY0RkRFlAGUAAKC9ImUAZABnoAUjZQAAoAUjcgBrAHSgtSPiIXJrAKC2IwABb3mjEaYRbgDnAHcRMWTxIXVvAKAeIIACY21wcnQAtBG5Eb4RwRHFEeEhdXPloDUi5ABwInR5dgAAoLApcwDpAH0RbgBvAPUA6gCAAWFodwDLEcwRzhGyYwCgNiHlIWVuAKBsInIAAOA12B/dZwCAA2Nvc3R1dncA4xHyEQUSEhIhEiYSKRKAAWFpdQDpEesR7xHwAKMFcgBjAACg7yVwAACgwyKAAWRwdAD4EfwRABJvAHQAAKAAKuwhdXMAoAEqaSJtZXMAAKACKnECCxIAAAAADxLjIXVwAKAGKmEAcgAAoAUm8iNpYW5nbGUAAWR1GhIeEu8hd24AoL0lcAAAoLMlcCJsdXMAAKAEKmUA5QBCD+UAkg9hInJvdwAAoA0pgAFha28ANhJoEncSAAFjbjoSZRJrAIABbHN0AEESRxJNEm8jemVuZ2UAAKDrKXEAdQBhAHIA5QBcBPIjaWFuZ2xlgKG0JWRscgBYElwSYBLvIXduAKC+JeUhZnQAoMIlaSJnaHQAAKC4JWsAAKAjJLEBbRIAAHUSsgFxEgAAcxIAoJIlAKCRJTQAAKCTJWMAawAAoIglAAFlb38ShxJx4D0A5SD1IWl2AOBhIuUgdAAAoBAjAAJwdHd4kRKVEpsSnxJmAADgNdhT3XSgpSJvAG0AAKClIvQhaWUAoMgiAAZESFVWYmRobXB0dXayEsES0RLgEvcS+xIKExoTHxMjEygTNxMAAkxSbHK5ErsSvRK/EgCgVyUAoFQlAKBWJQCgUyUAolAlRFVkdckSyxLNEs8SAKBmJQCgaSUAoGQlAKBnJQACTFJsctgS2hLcEt4SAKBdJQCgWiUAoFwlAKBZJQCjUSVITFJobHLrEu0S7xLxEvMS9RIAoGwlAKBjJQCgYCUAoGslAKBiJQCgXyVvAHgAAKDJKQACTFJscgITBBMGEwgTAKBVJQCgUiUAoBAlAKAMJQCiACVEVWR1EhMUExYTGBMAoGUlAKBoJQCgLCUAoDQlaSJudXMAAKCfIuwhdXMAoJ4iaSJtZXMAAKCgIgACTFJsci8TMRMzEzUTAKBbJQCgWCUAoBglAKAUJQCjAiVITFJobHJCE0QTRhNIE0oTTBMAoGolAKBhJQCgXiUAoDwlAKAkJQCgHCUAAWV2UhNVE3YA5QD5AGIAYQByADuApgCmQAACY2Vpb2ITZhNqE24TcgAA4DXYt9xtAGkAAKBPIG0A5aA9IogRbAAAoVwAYmh0E3YTAKDFKfMhdWIAoMgnbAF+E4QTbABloCIgdAAAoCIgcAAAoU4iRWWJE4sTAKCuKvGgTyI8BeEMqRMAAN8TABQDFB8UAAAjFDQUAAAAAIUUAAAAAI0UAAAAANcU4xT3FPsUAACIFQAAlhWAAWNwcgCuE7ET1RP1IXRlB2GAoikiYWJjZHMAuxO/E8QTzhPSE24AZAAAoEQqciJjdXAAAKBJKgABYXXIE8sTcAAAoEsqcAAAoEcqbwB0AACgQCoA4CkiAP4AAWVv2RPcE3QAAKBBIO4ABAUAAmFlaXXlE+8T9RP4E/AB6hMAAO0TcwAAoE0qbwBuAA1hZABpAGwAO4DnAOdAcgBjAAlhcABzAHOgTCptAACgUCpvAHQAC2GAAWRtbgAIFA0UEhRpAGwAO4C4ALhAcCJ0eXYAAKCyKXQAAIGiADtlGBQZFKJAcgBkAG8A9ABiAXIAAOA12CDdgAFjZWkAKBQqFDIUeQBHZGMAawBtoBMn4SFyawCgEyfHY3IAAKPLJUVjZWZtcz8UQRRHFHcUfBSAFACgwykAocYCZWxGFEkUcQAAoFciZQBhAlAUAAAAAGAUciJyb3cAAAFsclYUWhTlIWZ0AKC6IWkiZ2h0AACguyGAAlJTYWNkAGgUaRRrFG8UcxSuYACgyCRzAHQAAKCbIukhcmMAoJoi4SFzaACgnSJuImludAAAoBAqaQBkAACg7yrjIWlyAKDCKfUhYnN1oGMmaQB0AACgYybsApMUmhS2FAAAwxRvAG4AZaA6APGgVCKrAG0CnxQAAAAAoxRhAHSgLABAYAChASJmbKcUqRTuABMNZQAAAW14rhSyFOUhbnQAoAEiZQDzANIB5wG6FAAAwBRkoEUibwB0AACgbSpuAPQAzAGAAWZyeQDIFMsUzhQA4DXYVN1vAOQA1wEAgakAO3MeAdMUcgAAoBchAAFhb9oU3hRyAHIAAKC1IXMAcwAAoBcnAAFjdeYU6hRyAADgNdi43AABYnDuFPIUZaDPKgCg0SploNAqAKDSKuQhb3QAoO8igANkZWxwcnZ3AAYVEBUbFSEVRBVlFYQV4SFycgABbHIMFQ4VAKA4KQCgNSlwAhYVAAAAABkVcgAAoN4iYwAAoN8i4SFycnCgtiEAoD0pgKIqImJjZG9zACsVMBU6FT4VQRVyImNhcAAAoEgqAAFhdTQVNxVwAACgRipwAACgSipvAHQAAKCNInIAAKBFKgDgKiIA/gACYWxydksVURVuFXMVcgByAG2gtyEAoDwpeQCAAWV2dwBYFWUVaRVxAHACXxUAAAAAYxVyAGUA4wAXFXUA4wAZFWUAZQAAoM4iZSJkZ2UAAKDPImUAbgA7gKQApEBlI2Fycm93AAABbHJ7FX8V5SFmdACgtiFpImdodAAAoLchZQDkAG0VAAFjaYsVkRVvAG4AaQBuAPQAkwFuAHQAAKAxImwiY3R5AACgLSOACUFIYWJjZGVmaGlqbG9yc3R1d3oAuBW7Fb8V1RXgFegV+RUKFhUWHxZUFlcWZRbFFtsW7xb7FgUXChdyAPIAtAJhAHIAAKBlKQACZ2xyc8YVyhXOFdAV5yFlcgCgICDlIXRoAKA4IfIA9QxoAHagECAAoKMiawHZFd4VYSJyb3cAAKAPKWEA4wBfAgABYXnkFecV8iFvbg9hNGQAoUYhYW/tFfQVAAFnciEC8RVyAACgyiF0InNlcQAAoHcqgAFnbG0A/xUCFgUWO4CwALBAdABhALRjcCJ0eXYAAKCxKQABaXIOFhIW8yFodACgfykA4DXYId1hAHIAAAFschsWHRYAoMMhAKDCIYACYWVnc3YAKBauAjYWOhY+Fm0AAKHEIm9zLhY0Fm4AZABzoMQi9SFpdACgZiZhIm1tYQDdY2kAbgAAoPIiAKH3AGlvQxZRFmQAZQAAgfcAO29KFksW90BuI3RpbWVzAACgxyJuAPgAUBZjAHkAUmRjAG8CXhYAAAAAYhZyAG4AAKAeI28AcAAAoA0jgAJscHR1dwBuFnEWdRaSFp4W7CFhciRgZgAA4DXYVd0AotkCZW1wc30WhBaJFo0WcQBkoFAibwB0AACgUSJpIm51cwAAoDgi7CF1cwCgFCLxInVhcmUAoKEiYgBsAGUAYgBhAHIAdwBlAGQAZwDlANcAbgCAAWFkaAClFqoWtBZyAHIAbwD3APUMbwB3AG4AYQByAHIAbwB3APMA8xVhI3Jwb29uAAABbHK8FsAWZQBmAPQAHBZpAGcAaAD0AB4WYgHJFs8WawBhAHIAbwD3AJILbwLUFgAAAADYFnIAbgAAoB8jbwBwAACgDCOAAWNvdADhFukW7BYAAXJ55RboFgDgNdi53FVkbAAAoPYp8iFvaxFhAAFkcvMW9xZvAHQAAKDxImkA5qC/JVsSAAFhaP8WAhdyAPIANQNhAPIA1wvhIm5nbGUAoKYpAAFjaQ4XEBd5AF9k5yJyYXJyAKD/JwAJRGFjZGVmZ2xtbm9wcXJzdHV4MRc4F0YXWxcyBF4XaRd5F40XrBe0F78X2RcVGCEYLRg1GEAYAAFEbzUXgRZvAPQA+BUAAWNzPBdCF3UAdABlADuA6QDpQPQhZXIAoG4qAAJhaW95TRdQF1YXWhfyIW9uG2FyAGOgViI7gOoA6kDsIW9uAKBVIk1kbwB0ABdhAAFEcmIXZhdvAHQAAKBSIgDgNdgi3XKhmipuF3QXYQB2AGUAO4DoAOhAZKCWKm8AdAAAoJgqgKGZKmlscwCAF4UXhxfuInRlcnMAoOcjAKATIWSglSpvAHQAAKCXKoABYXBzAJMXlheiF2MAcgATYXQAeQBzogUinxcAAAAAoRdlAHQAAKAFInAAMaADIDMBqRerFwCgBCAAoAUgAAFnc7AXsRdLYXAAAKACIAABZ3C4F7sXbwBuABlhZgAA4DXYVt2AAWFscwDFF8sXzxdyAHOg1SJsAACg4yl1AHMAAKBxKmkAAKG1A2x21RfYF28AbgC1Y/VjAAJjc3V24BfoF/0XEBgAAWlv5BdWF3IAYwAAoFYiaQLuFwAAAADwF+0ADQThIW50AAFnbPUX+Rd0AHIAAKCWKuUhc3MAoJUqgAFhZWkAAxgGGAoYbABzAD1gcwB0AACgXyJ2AESgYSJEAACgeCrwImFyc2wAoOUpAAFEYRkYHRhvAHQAAKBTInIAcgAAoHEpgAFjZGkAJxgqGO0XcgAAoC8hbwD0AIwCAAFhaDEYMhi3YzuA8ADwQAABbXI5GD0YbAA7gOsA60BvAACgrCCAAWNpcABGGEgYSxhsACFgcwD0ACwEAAFlb08YVxhjAHQAYQB0AGkAbwDuABoEbgBlAG4AdABpAGEAbADlADME4Ql1GAAAgRgAAIMYiBgAAAAAoRilGAAAqhgAALsYvhjRGAAA1xgnGWwAbABpAG4AZwBkAG8AdABzAGUA8QBlF3kARGRtImFsZQAAoEAmgAFpbHIAjRiRGJ0Y7CFpZwCgA/tpApcYAAAAAJoYZwAAoAD7aQBnAACgBPsA4DXYI93sIWlnAKAB++whaWcA4GYAagCAAWFsdACvGLIYthh0AACgbSZpAGcAAKAC+24AcwAAoLElbwBmAJJh8AHCGAAAxhhmAADgNdhX3QABYWvJGMwYbADsAGsEdqDUIgCg2SphI3J0aW50AACgDSoAAWFv2hgiGQABY3PeGB8ZsQPnGP0YBRkSGRUZAAAdGbID7xjyGPQY9xj5GAAA+xg7gL0AvUAAoFMhO4C8ALxAAKBVIQCgWSEAoFshswEBGQAAAxkAoFQhAKBWIbQCCxkOGQAAAAAQGTuAvgC+QACgVyEAoFwhNQAAoFghtgEZGQAAGxkAoFohAKBdITgAAKBeIWwAAKBEIHcAbgAAoCIjYwByAADgNdi73IAIRWFiY2RlZmdpamxub3JzdHYARhlKGVoZXhlmGWkZkhmWGZkZnRmgGa0ZxhnLGc8Z4BkjGmygZyIAoIwqgAFjbXAAUBlTGVgZ9SF0ZfVhbQBhAOSgswM6FgCghipyImV2ZQAfYQABaXliGWUZcgBjAB1hM2RvAHQAIWGAoWUibHFzAMYEcBl6GfGhZSLOBAAAdhlsAGEAbgD0AN8EgKF+KmNkbACBGYQZjBljAACgqSpvAHQAb6CAKmyggioAoIQqZeDbIgD+cwAAoJQqcgAA4DXYJN3noGsirATtIWVsAKA3IWMAeQBTZIChdyJFYWoApxmpGasZAKCSKgCgpSoAoKQqAAJFYWVztBm2Gb0ZwhkAoGkicABwoIoq8iFveACgiipxoIgq8aCIKrUZaQBtAACg5yJwAGYAAOA12FjdYQB2AOUAYwIAAWNp0xnWGXIAAKAKIW0AAKFzImVs3BneGQCgjioAoJAqAIM+ADtjZGxxco0E6xn0GfgZ/BkBGgABY2nvGfEZAKCnKnIAAKB6Km8AdAAAoNci0CFhcgCglSl1ImVzdAAAoHwqgAJhZGVscwAKGvQZFhrVBCAa8AEPGgAAFBpwAHIAbwD4AFkZcgAAoHgpcQAAAWxxxAQbGmwAZQBzAPMASRlpAO0A5AQAAWVuJxouGnIjdG5lcXEAAOBpIgD+xQAsGgAFQWFiY2Vma29zeUAaQxpmGmoabRqDGocalhrCGtMacgDyAMwCAAJpbG1yShpOGlAaVBpyAHMA8ABxD2YAvWBpAGwA9AASBQABZHJYGlsaYwB5AEpkAKGUIWN3YBpkGmkAcgAAoEgpAKCtIWEAcgAAoA8h6SFyYyVhgAFhbHIAcxp7Gn8a8iF0c3WgZSZpAHQAAKBlJuwhaXAAoCYg4yFvbgCguSJyAADgNdgl3XMAAAFld4wakRphInJvdwAAoCUpYSJyb3cAAKAmKYACYW1vcHIAnxqjGqcauhq+GnIAcgAAoP8h9CFodACgOyJrAAABbHKsGrMaZSRmdGFycm93AACgqSHpJGdodGFycm93AKCqIWYAAOA12Fnd4iFhcgCgFSCAAWNsdADIGswa0BpyAADgNdi93GEAcwDoAGka8iFvaydhAAFicNca2xr1IWxsAKBDIOghZW4AoBAg4Qr2GgAA/RoAAAgbExsaGwAAIRs7GwAAAAA+G2IbmRuVG6sbAACyG80b0htjAHUAdABlADuA7QDtQAChYyBpeQEbBhtyAGMAO4DuAO5AOGQAAWN4CxsNG3kANWRjAGwAO4ChAKFAAAFmcssCFhsA4DXYJt1yAGEAdgBlADuA7ADsQIChSCFpbm8AJxsyGzYbAAFpbisbLxtuAHQAAKAMKnQAAKAtIuYhaW4AoNwpdABhAACgKSHsIWlnM2GAAWFvcABDG1sbXhuAAWNndABJG0sbWRtyACthgAFlbHAAcQVRG1UbaQBuAOUAyAVhAHIA9AByBWgAMWFmAACgtyJlAGQAtWEAoggiY2ZvdGkbbRt1G3kb4SFyZQCgBSFpAG4AdKAeImkAZQAAoN0pZABvAPQAWxsAoisiY2VscIEbhRuPG5QbYQBsAACguiIAAWdyiRuNG2UAcgDzACMQ4wCCG2EicmhrAACgFyryIW9kAKA8KgACY2dwdJ8boRukG6gbeQBRZG8AbgAvYWYAAOA12FrdYQC5Y3UAZQBzAHQAO4C/AL9AAAFjabUbuRtyAADgNdi+3G4AAKIIIkVkc3bCG8QbyBvQAwCg+SJvAHQAAKD1Inag9CIAoPMiaaBiIOwhZGUpYesB1hsAANkbYwB5AFZkbAA7gO8A70AAA2NmbW9zdeYb7hvyG/Ub+hsFHAABaXnqG+0bcgBjADVhOWRyAADgNdgn3eEhdGg3YnAAZgAA4DXYW93jAf8bAAADHHIAAOA12L/c8iFjeVhk6yFjeVRkAARhY2ZnaGpvcxUcGhwiHCYcKhwtHDAcNRzwIXBhdqC6A/BjAAFleR4cIRzkIWlsN2E6ZHIAAOA12CjdciJlZW4AOGFjAHkARWRjAHkAXGRwAGYAAOA12FzdYwByAADgNdjA3IALQUJFSGFiY2RlZmdoamxtbm9wcnN0dXYAXhxtHHEcdRx5HN8cBx0dHTwd3B3tHfEdAR4EHh0eLB5FHrwewx7hHgkfPR9LH4ABYXJ0AGQcZxxpHHIA8gBvB/IAxQLhIWlsAKAbKeEhcnIAoA4pZ6BmIgCgiyphAHIAAKBiKWMJjRwAAJAcAACVHAAAAAAAAAAAAACZHJwcAACmHKgcrRwAANIc9SF0ZTph7SJwdHl2AKC0KXIAYQDuAFoG4iFkYbtjZwAAoegnZGyhHKMcAKCRKeUAiwYAoIUqdQBvADuAqwCrQHIAgKOQIWJmaGxwc3QAuhy/HMIcxBzHHMoczhxmoOQhcwAAoB8pcwAAoB0p6wCyGnAAAKCrIWwAAKA5KWkAbQAAoHMpbAAAoKIhAKGrKmFl1hzaHGkAbAAAoBkpc6CtKgDgrSoA/oABYWJyAOUc6RztHHIAcgAAoAwpcgBrAACgcicAAWFr8Rz4HGMAAAFla/Yc9xx7YFtgAAFlc/wc/hwAoIspbAAAAWR1Ax0FHQCgjykAoI0pAAJhZXV5Dh0RHRodHB3yIW9uPmEAAWRpFR0YHWkAbAA8YewAowbiAPccO2QAAmNxcnMkHScdLB05HWEAAKA2KXUAbwDyoBwgqhEAAWR1MB00HeghYXIAoGcpcyJoYXIAAKBLKWgAAKCyIQCiZCJmZ3FzRB1FB5Qdnh10AIACYWhscnQATh1WHWUdbB2NHXIicm93AHSgkCFhAOkAzxxhI3Jwb29uAAABZHVeHWId7yF3bgCgvSFwAACgvCHlJGZ0YXJyb3dzAKDHIWkiZ2h0AIABYWhzAHUdex2DHXIicm93APOglCGdBmEAcgBwAG8AbwBuAPMAzgtxAHUAaQBnAGEAcgByAG8A9wBlGugkcmVldGltZXMAoMsi8aFkIk0HAACaHWwAYQBuAPQAXgcAon0qY2Rnc6YdqR2xHbcdYwAAoKgqbwB0AG+gfypyoIEqAKCDKmXg2iIA/nMAAKCTKoACYWRlZ3MAwB3GHcod1h3ZHXAAcAByAG8A+ACmHG8AdAAAoNYicQAAAWdxzx3SHXQA8gBGB2cAdADyAHQcdADyAFMHaQDtAGMHgAFpbHIA4h3mHeod8yFodACgfClvAG8A8gDKBgDgNdgp3UWgdiIAoJEqYQH1Hf4dcgAAAWR1YB35HWygvCEAoGopbABrAACghCVjAHkAWWQAomoiYWNodAweDx4VHhkecgDyAGsdbwByAG4AZQDyAGAW4SFyZACgaylyAGkAAKD6JQABaW8hHiQe5CFvdEBh9SFzdGGgsCPjIWhlAKCwIwACRWFlczMeNR48HkEeAKBoInAAcKCJKvIhb3gAoIkqcaCHKvGghyo0HmkAbQAAoOYiAARhYm5vcHR3elIeXB5fHoUelh6mHqsetB4AAW5yVh5ZHmcAAKDsJ3IAAKD9IXIA6wCwBmcAgAFsbXIAZh52Hnse5SFmdAABYXKIB2weaQBnAGgAdABhAHIAcgBvAPcAkwfhInBzdG8AoPwnaQBnAGgAdABhAHIAcgBvAPcAmgdwI2Fycm93AAABbHKNHpEeZQBmAPQAxhxpImdodAAAoKwhgAFhZmwAnB6fHqIecgAAoIUpAOA12F3ddQBzAACgLSppIm1lcwAAoDQqYQGvHrMecwB0AACgFyLhAIoOZaHKJbkeRhLuIWdlAKDKJWEAcgBsoCgAdAAAoJMpgAJhY2htdADMHs8e1R7bHt0ecgDyAJ0GbwByAG4AZQDyANYWYQByAGSgyyEAoG0pAKAOIHIAaQAAoL8iAANhY2hpcXTrHu8e1QfzHv0eBh/xIXVvAKA5IHIAAOA12MHcbQDloXIi+h4AAPweAKCNKgCgjyoAAWJ19xwBH28AcqAYIACgGiDyIW9rQmEAhDwAO2NkaGlscXJCBhcfxh0gHyQfKB8sHzEfAAFjaRsfHR8AoKYqcgAAoHkqcgBlAOUAkx3tIWVzAKDJIuEhcnIAoHYpdSJlc3QAAKB7KgABUGk1HzkfYQByAACglillocMlAgdfEnIAAAFkdUIfRx9zImhhcgAAoEop6CFhcgCgZikAAWVuTx9WH3IjdG5lcXEAAOBoIgD+xQBUHwAHRGFjZGVmaGlsbm9wc3VuH3Ifoh+rH68ftx+7H74f5h/uH/MfBwj/HwsgxCFvdACgOiIAAmNscHJ5H30fiR+eH3IAO4CvAK9AAAFldIEfgx8AoEImZaAgJ3MAZQAAoCAnc6CmIXQAbwCAoaYhZGx1AJQfmB+cH28AdwDuAHkDZQBmAPQA6gbwAOkO6yFlcgCgriUAAW95ph+qH+0hbWEAoCkqPGThIXNoAKAUIOElc3VyZWRhbmdsZQCgISJyAADgNdgq3W8AAKAnIYABY2RuAMQfyR/bH3IAbwA7gLUAtUBhoiMi0B8AANMf1x9zAPQAKxFpAHIAAKDwKm8AdAA7gLcAt0B1AHMA4qESIh4TAADjH3WgOCIAoCoqYwHqH+0fcAAAoNsq8gB+GnAAbAB1APMACAgAAWRw9x/7H+UhbHMAoKciZgAA4DXYXt0AAWN0AyAHIHIAAOA12MLc8CFvcwCgPiJsobwDECAVIPQiaW1hcACguCJhAPAAEyAADEdMUlZhYmNkZWZnaGlqbG1vcHJzdHV2dzwgRyBmIG0geSCqILgg2iDeIBEhFSEyIUMhTSFQIZwhnyHSIQAiIyKLIrEivyIUIwABZ3RAIEMgAODZIjgD9uBrItIgBwmAAWVsdABNIF8gYiBmAHQAAAFhclMgWCByInJvdwAAoM0h6SRnaHRhcnJvdwCgziEA4NgiOAP24Goi0iBfCekkZ2h0YXJyb3cAoM8hAAFEZHEgdSDhIXNoAKCvIuEhc2gAoK4igAJiY25wdACCIIYgiSCNIKIgbABhAACgByL1IXRlRGFnAADgICLSIACiSSJFaW9wlSCYIJwgniAA4HAqOANkAADgSyI4A3MASWFyAG8A+AAyCnUAcgBhoG4mbADzoG4mmwjzAa8gAACzIHAAO4CgAKBAbQBwAOXgTiI4AyoJgAJhZW91eQDBIMogzSDWINkg8AHGIAAAyCAAoEMqbwBuAEhh5CFpbEZhbgBnAGSgRyJvAHQAAOBtKjgDcAAAoEIqPWThIXNoAKATIACjYCJBYWRxc3jpIO0g+SD+IAIhDCFyAHIAAKDXIXIAAAFocvIg9SBrAACgJClvoJch9wAGD28AdAAA4FAiOAN1AGkA9gC7CAABZWkGIQohYQByAACgKCntAN8I6SFzdPOgBCLlCHIAAOA12CvdAAJFZXN0/wgcISshLiHxoXEiIiEAABMJ8aFxIgAJAAAnIWwAYQBuAPQAEwlpAO0AGQlyoG8iAKBvIoABQWFwADghOyE/IXIA8gBeIHIAcgAAoK4hYQByAACg8ipzogsiSiEAAAAAxwtkoPwiAKD6ImMAeQBaZIADQUVhZGVzdABcIV8hYiFmIWkhkyGWIXIA8gBXIADgZiI4A3IAcgAAoJohcgAAoCUggKFwImZxcwBwIYQhjiF0AAABYXJ1IXohcgByAG8A9wBlIWkAZwBoAHQAYQByAHIAbwD3AD4h8aFwImAhAACKIWwAYQBuAPQAZwlz4H0qOAMAoG4iaQDtAG0JcqBuImkA5aDqIkUJaQDkADoKAAFwdKMhpyFmAADgNdhf3YCBrAA7aW4AriGvIcchrEBuAIChCSJFZHYAtyG6Ib8hAOD5IjgDbwB0AADg9SI4A+EB1gjEIcYhAKD3IgCg9iJpAHagDCLhAagJzyHRIQCg/iIAoP0igAFhb3IA2CHsIfEhcgCAoSYiYXN0AOAh5SHpIWwAbABlAOwAywhsAADg/SrlIADgAiI4A2wiaW50AACgFCrjoYAi9yEAAPohdQDlAJsJY+CvKjgDZaCAIvEAkwkAAkFhaXQHIgoiFyIeInIA8gBsIHIAcgAAoZshY3cRIhQiAOAzKTgDAOCdITgDZyRodGFycm93AACgmyFyAGkA5aDrIr4JgANjaGltcHF1AC8iPCJHIpwhTSJQIloigKGBImNlcgA2Iv0JOSJ1AOUABgoA4DXYw9zvIXJ0bQKdIQAAAABEImEAcgDhAOEhbQBloEEi8aBEIiYKYQDyAMsIcwB1AAABYnBWIlgi5QDUCeUA3wmAAWJjcABgInMieCKAoYQiRWVzAGci7glqIgDgxSo4A2UAdABl4IIi0iBxAPGgiCJoImMAZaCBIvEA/gmAoYUiRWVzAH8iFgqCIgDgxio4A2UAdABl4IMi0iBxAPGgiSKAIgACZ2lscpIilCKaIpwi7AAMCWwAZABlADuA8QDxQOcAWwlpI2FuZ2xlAAABbHKkIqoi5SFmdGWg6iLxAEUJaSJnaHQAZaDrIvEAvgltoL0DAKEjAGVzuCK8InIAbwAAoBYhcAAAoAcggARESGFkZ2lscnMAziLSItYi2iLeIugi7SICIw8j4SFzaACgrSLhIXJyAKAEKXAAAOBNItIg4SFzaACgrCIAAWV04iLlIgDgZSLSIADgPgDSIG4iZmluAACg3imAAUFldADzIvci+iJyAHIAAKACKQDgZCLSIHLgPADSIGkAZQAA4LQi0iAAAUF0BiMKI3IAcgAAoAMp8iFpZQDgtSLSIGkAbQAA4Dwi0iCAAUFhbgAaIx4jKiNyAHIAAKDWIXIAAAFociMjJiNrAACgIylvoJYh9wD/DuUhYXIAoCcpUxJqFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAVCMAAF4jaSN/I4IjjSOeI8AUAAAAAKYjwCMAANoj3yMAAO8jHiQvJD8kRCQAAWNzVyNsFHUAdABlADuA8wDzQAABaXlhI2cjcgBjoJoiO4D0APRAPmSAAmFiaW9zAHEjdCN3I3EBeiNzAOgAdhTsIWFjUWF2AACgOCrvIWxkAKC8KewhaWdTYQABY3KFI4kjaQByAACgvykA4DXYLN1vA5QjAAAAAJYjAACcI24A22JhAHYAZQA7gPIA8kAAoMEpAAFibaEjjAphAHIAAKC1KQACYWNpdKwjryO6I70jcgDyAFkUAAFpcrMjtiNyAACgvinvIXNzAKC7KW4A5QDZCgCgwCmAAWFlaQDFI8gjyyNjAHIATWFnAGEAyWOAAWNkbgDRI9Qj1iPyIW9uv2MAoLYpdQDzAHgBcABmAADgNdhg3YABYWVsAOQj5yPrI3IAAKC3KXIAcAAAoLkpdQDzAHwBAKMoImFkaW9zdvkj/CMPJBMkFiQbJHIA8gBeFIChXSplZm0AAyQJJAwkcgBvoDQhZgAAoDQhO4CqAKpAO4C6ALpA5yFvZgCgtiJyAACgVipsIm9wZQAAoFcqAKBbKoABY2xvACMkJSQrJPIACCRhAHMAaAA7gPgA+EBsAACgmCJpAGwBMyQ4JGQAZQA7gPUA9UBlAHMAYaCXInMAAKA2Km0AbAA7gPYA9kDiIWFyAKA9I+EKXiQAAHokAAB8JJQkAACYJKkkAAAAALUkEQsAAPAkAAAAAAQleiUAAIMlcgCAoSUiYXN0AGUkbyQBCwCBtgA7bGokayS2QGwAZQDsABgDaQJ1JAAAAAB4JG0AAKDzKgCg/Sp5AD9kcgCAAmNpbXB0AIUkiCSLJJkSjyRuAHQAJWBvAGQALmBpAGwAAKAwIOUhbmsAoDEgcgAA4DXYLd2AAWltbwCdJKAkpCR2oMYD1WNtAGEA9AD+B24AZQAAoA4m9KHAA64kAAC0JGMjaGZvcmsAAKDUItZjAAFhdbgkxCRuAAABY2u9JMIkawBooA8hAKAOIfYAaRpzAACkKwBhYmNkZW1zdNMkIRPXJNsk4STjJOck6yTjIWlyAKAjKmkAcgAAoCIqAAFvdYsW3yQAoCUqAKByKm4AO4CxALFAaQBtAACgJip3AG8AAKAnKoABaXB1APUk+iT+JO4idGludACgFSpmAADgNdhh3W4AZAA7gKMAo0CApHoiRWFjZWlub3N1ABMlFSUYJRslTCVRJVklSSV1JQCgsypwAACgtyp1AOUAPwtjoK8qgKJ6ImFjZW5zACclLSU0JTYlSSVwAHAAcgBvAPgAFyV1AHIAbAB5AGUA8QA/C/EAOAuAAWFlcwA8JUElRSXwInByb3gAoLkqcQBxAACgtSppAG0AAKDoImkA7QBEC20AZQDzoDIgIguAAUVhcwBDJVclRSXwAEAlgAFkZnAATwtfJXElgAFhbHMAZSVpJW0l7CFhcgCgLiPpIW5lAKASI/UhcmYAoBMjdKAdIu8AWQvyIWVsAKCwIgABY2l9JYElcgAA4DXYxdzIY24iY3NwAACgCCAAA2Zpb3BzdZElKxuVJZolnyWkJXIAAOA12C7dcABmAADgNdhi3XIiaW1lAACgVyBjAHIAAOA12MbcgAFhZW8AqiW6JcAldAAAAWVpryW2JXIAbgBpAG8AbgDzABkFbgB0AACgFipzAHQAZaA/APEACRj0AG0LgApBQkhhYmNkZWZoaWxtbm9wcnN0dXgA4yXyJfYl+iVpJpAmpia9JtUm5ib4JlonaCdxJ3UnnietJ7EnyCfiJ+cngAFhcnQA6SXsJe4lcgDyAJkM8gD6AuEhaWwAoBwpYQByAPIA3BVhAHIAAKBkKYADY2RlbnFydAAGJhAmEyYYJiYmKyZaJgABZXUKJg0mAOA9IjEDdABlAFVhaQDjACAN7SJwdHl2AKCzKWcAgKHpJ2RlbAAgJiImJCYAoJIpAKClKeUA9wt1AG8AO4C7ALtAcgAApZIhYWJjZmhscHN0dz0mQCZFJkcmSiZMJk4mUSZVJlgmcAAAoHUpZqDlIXMAAKAgKQCgMylzAACgHinrALka8ACVHmwAAKBFKWkAbQAAoHQpbAAAoKMhAKCdIQABYWleJmImaQBsAACgGilvAG6gNiJhAGwA8wB2C4ABYWJyAG8mciZ2JnIA8gAvEnIAawAAoHMnAAFha3omgSZjAAABZWt/JoAmfWBdYAABZXOFJocmAKCMKWwAAAFkdYwmjiYAoI4pAKCQKQACYWV1eZcmmiajJqUm8iFvbllhAAFkaZ4moSZpAGwAV2HsAA8M4gCAJkBkAAJjbHFzrSawJrUmuiZhAACgNylkImhhcgAAoGkpdQBvAPKgHSCjAWgAAKCzIYABYWNnAMMm0iaUC2wAgKEcIWlwcwDLJs4migxuAOUAoAxhAHIA9ADaC3QAAKCtJYABaWxyANsm3ybjJvMhaHQAoH0pbwBvAPIANgwA4DXYL90AAWFv6ib1JnIAAAFkde8m8SYAoMEhbKDAIQCgbCl2oMED8WOAAWducwD+Jk4nUCdoAHQAAANhaGxyc3QKJxInISc1Jz0nRydyInJvdwB0oJIhYQDpAFYmYSNycG9vbgAAAWR1GiceJ28AdwDuAPAmcAAAoMAh5SFmdAABYWgnJy0ncgByAG8AdwDzAAkMYQByAHAAbwBvAG4A8wATBGklZ2h0YXJyb3dzAACgySFxAHUAaQBnAGEAcgByAG8A9wBZJugkcmVldGltZXMAoMwiZwDaYmkAbgBnAGQAbwB0AHMAZQDxABwYgAFhaG0AYCdjJ2YncgDyAAkMYQDyABMEAKAPIG8idXN0AGGgsSPjIWhlAKCxI+0haWQAoO4qAAJhYnB0fCeGJ4knmScAAW5ygCeDJ2cAAKDtJ3IAAKD+IXIA6wAcDIABYWZsAI8nkieVJ3IAAKCGKQDgNdhj3XUAcwAAoC4qaSJtZXMAAKA1KgABYXCiJ6gncgBnoCkAdAAAoJQp7yJsaW50AKASKmEAcgDyADwnAAJhY2hxuCe8J6EMwCfxIXVvAKA6IHIAAOA12MfcAAFidYAmxCdvAPKgGSCoAYABaGlyAM4n0ifWJ3IAZQDlAE0n7SFlcwCgyiJpAIChuSVlZmwAXAxjEt4n9CFyaQCgzinsInVoYXIAoGgpAKAeIWENBSgJKA0oSyhVKIYoAACLKLAoAAAAAOMo5ygAABApJCkxKW0pcSmHKaYpAACYKgAAAACxKmMidXRlAFthcQB1AO8ABR+ApHsiRWFjZWlucHN5ABwoHignKCooLygyKEEoRihJKACgtCrwASMoAAAlKACguCpvAG4AYWF1AOUAgw1koLAqaQBsAF9hcgBjAF1hgAFFYXMAOCg6KD0oAKC2KnAAAKC6KmkAbQAAoOki7yJsaW50AKATKmkA7QCIDUFkbwB0AGKixSKRFgAAAABTKACgZiqAA0FhY21zdHgAYChkKG8ocyh1KHkogihyAHIAAKDYIXIAAAFocmkoayjrAJAab6CYIfcAzAd0ADuApwCnQGkAO2D3IWFyAKApKW0AAAFpbn4ozQBuAHUA8wDOAHQAAKA2J3IA7+A12DDdIxkAAmFjb3mRKJUonSisKHIAcAAAoG8mAAFoeZkonChjAHkASWRIZHIAdABtAqUoAAAAAKgoaQDkAFsPYQByAGEA7ABsJDuArQCtQAABZ22zKLsobQBhAAChwwNmdroouijCY4CjPCJkZWdsbnByAMgozCjPKNMo1yjaKN4obwB0AACgairxoEMiCw5FoJ4qAKCgKkWgnSoAoJ8qZQAAoEYi7CF1cwCgJCrhIXJyAKByKWEAcgDyAPwMAAJhZWl07Sj8KAEpCCkAAWxz8Sj4KGwAcwBlAHQAbQDpAH8oaABwAACgMyrwImFyc2wAoOQpAAFkbFoPBSllAACgIyNloKoqc6CsKgDgrCoA/oABZmxwABUpGCkfKfQhY3lMZGKgLwBhoMQpcgAAoD8jZgAA4DXYZN1hAAABZHIoKRcDZQBzAHWgYCZpAHQAAKBgJoABY3N1ADYpRilhKQABYXU6KUApcABzoJMiAOCTIgD+cABzoJQiAOCUIgD+dQAAAWJwSylWKQChjyJlcz4NUCllAHQAZaCPIvEAPw0AoZAiZXNIDVspZQB0AGWgkCLxAEkNAKGhJWFmZilbBHIAZQFrKVwEAKChJWEAcgDyAAMNAAJjZW10dyl7KX8pgilyAADgNdjI3HQAbQDuAM4AaQDsAAYpYQByAOYAVw0AAWFyiimOKXIA5qAGJhESAAFhbpIpoylpImdodAAAAWVwmSmgKXAAcwBpAGwAbwDuANkXaADpAKAkcwCvYIACYmNtbnAArin8KY4NJSooKgCkgiJFZGVtbnByc7wpvinCKcgpzCnUKdgp3CkAoMUqbwB0AACgvSpkoIYibwB0AACgwyr1IWx0AKDBKgABRWXQKdIpAKDLKgCgiiLsIXVzAKC/KuEhcnIAoHkpgAFlaXUA4inxKfQpdAAAoYIiZW7oKewpcQDxoIYivSllAHEA8aCKItEpbQAAoMcqAAFicPgp+ikAoNUqAKDTKmMAgKJ7ImFjZW5zAAcqDSoUKhYqRihwAHAAcgBvAPgAIyh1AHIAbAB5AGUA8QCDDfEAfA2AAWFlcwAcKiIqPShwAHAAcgBvAPgAPChxAPEAOShnAACgaiYApoMiMTIzRWRlaGxtbnBzPCo/KkIqRSpHKlIqWCpjKmcqaypzKncqO4C5ALlAO4CyALJAO4CzALNAAKDGKgABb3NLKk4qdAAAoL4qdQBiAACg2CpkoIcibwB0AACgxCpzAAABb3VdKmAqbAAAoMknYgAAoNcq4SFycgCgeyn1IWx0AKDCKgABRWVvKnEqAKDMKgCgiyLsIXVzAKDAKoABZWl1AH0qjCqPKnQAAKGDImVugyqHKnEA8aCHIkYqZQBxAPGgiyJwKm0AAKDIKgABYnCTKpUqAKDUKgCg1iqAAUFhbgCdKqEqrCpyAHIAAKDZIXIAAAFocqYqqCrrAJUab6CZIfcAxQf3IWFyAKAqKWwAaQBnADuA3wDfQOELzyrZKtwq6SrsKvEqAAD1KjQrAAAAAAAAAAAAAEwrbCsAAHErvSsAAAAAAADRK3IC1CoAAAAA2CrnIWV0AKAWI8RjcgDrAOUKgAFhZXkA4SrkKucq8iFvbmVh5CFpbGNhQmRvAPQAIg5sInJlYwAAoBUjcgAA4DXYMd0AAmVpa2/7KhIrKCsuK/IBACsAAAkrZQAAATRm6g0EK28AcgDlAOsNYQBzorgDECsAAAAAEit5AG0A0WMAAWNuFislK2sAAAFhcxsrIStwAHAAcgBvAPgAFw5pAG0AAKA8InMA8AD9DQABYXMsKyEr8AAXDnIAbgA7gP4A/kDsATgrOyswG2QA5QBnAmUAcwCAgdcAO2JkAEMrRCtJK9dAYaCgInIAAKAxKgCgMCqAAWVwcwBRK1MraSvhAAkh4qKkIlsrXysAAAAAYytvAHQAAKA2I2kAcgAAoPEqb+A12GXdcgBrAACg2irhAHgociJpbWUAAKA0IIABYWlwAHYreSu3K2QA5QC+DYADYWRlbXBzdACFK6MrmiunK6wrsCuzK24iZ2xlAACitSVkbHFykCuUK5ornCvvIXduAKC/JeUhZnRloMMl8QACBwCgXCJpImdodABloLkl8QBdDG8AdAAAoOwlaSJudXMAAKA6KuwhdXMAoDkqYgAAoM0p6SFtZQCgOyrlInppdW0AoOIjgAFjaHQAwivKK80rAAFyecYrySsA4DXYydxGZGMAeQBbZPIhb2tnYQABaW/UK9creAD0ANERaCJlYWQAAAFsct4r5ytlAGYAdABhAHIAcgBvAPcAXQbpJGdodGFycm93AKCgIQAJQUhhYmNkZmdobG1vcHJzdHV3CiwNLBEsHSwnLDEsQCxLLFIsYix6LIQsjyzLLOgs7Sz/LAotcgDyAAkDYQByAACgYykAAWNyFSwbLHUAdABlADuA+gD6QPIACQ1yAOMBIywAACUseQBeZHYAZQBtYQABaXkrLDAscgBjADuA+wD7QENkgAFhYmgANyw6LD0scgDyANEO7CFhY3FhYQDyAOAOAAFpckQsSCzzIWh0AKB+KQDgNdgy3XIAYQB2AGUAO4D5APlAYQFWLF8scgAAAWxyWixcLACgvyEAoL4hbABrAACggCUAAWN0Zix2LG8CbCwAAAAAcyxyAG4AZaAcI3IAAKAcI28AcAAAoA8jcgBpAACg+CUAAWFsfiyBLGMAcgBrYTuAqACoQAABZ3CILIssbwBuAHNhZgAA4DXYZt0AA2FkaGxzdZksniynLLgsuyzFLHIAcgBvAPcACQ1vAHcAbgBhAHIAcgBvAPcA2A5hI3Jwb29uAAABbHKvLLMsZQBmAPQAWyxpAGcAaAD0AF0sdQDzAKYOaQAAocUDaGzBLMIs0mNvAG4AxWPwI2Fycm93cwCgyCGAAWNpdADRLOEs5CxvAtcsAAAAAN4scgBuAGWgHSNyAACgHSNvAHAAAKAOI24AZwBvYXIAaQAAoPklYwByAADgNdjK3IABZGlyAPMs9yz6LG8AdAAAoPAi7CFkZWlhaQBmoLUlAKC0JQABYW0DLQYtcgDyAMosbAA7gPwA/EDhIm5nbGUAoKcpgAdBQkRhY2RlZmxub3Byc3oAJy0qLTAtNC2bLZ0toS2/LcMtxy3TLdgt3C3gLfwtcgDyABADYQByAHag6CoAoOkqYQBzAOgA/gIAAW5yOC08LechcnQAoJwpgANla25wcnN0AJkpSC1NLVQtXi1iLYItYQBwAHAA4QAaHG8AdABoAGkAbgDnAKEXgAFoaXIAoSmzJFotbwBwAPQAdCVooJUh7wD4JgABaXVmLWotZwBtAOEAuygAAWJwbi14LXMjZXRuZXEAceCKIgD+AODLKgD+cyNldG5lcQBx4IsiAP4A4MwqAP4AAWhyhi2KLWUAdADhABIraSNhbmdsZQAAAWxyki2WLeUhZnQAoLIiaSJnaHQAAKCzInkAMmThIXNoAKCiIoABZWxyAKcttC24LWKiKCKuLQAAAACyLWEAcgAAoLsicQAAoFoi7CFpcACg7iIAAWJ0vC1eD2EA8gBfD3IAAOA12DPddAByAOkAlS1zAHUAAAFicM0t0C0A4IIi0iAA4IMi0iBwAGYAAOA12GfdcgBvAPAAWQt0AHIA6QCaLQABY3XkLegtcgAA4DXYy9wAAWJw7C30LW4AAAFFZXUt8S0A4IoiAP5uAAABRWV/LfktAOCLIgD+6SJnemFnAKCaKYADY2Vmb3BycwANLhAuJS4pLiMuLi40LukhcmN1YQABZGkULiEuAAFiZxguHC5hAHIAAKBfKmUAcaAnIgCgWSLlIXJwAKAYIXIAAOA12DTdcABmAADgNdho3WWgQCJhAHQA6ABqD2MAcgAA4DXYzNzjCuQRUC4AAFQuAABYLmIuAAAAAGMubS5wLnQuAAAAAIguki4AAJouJxIqEnQAcgDpAB0ScgAA4DXYNd0AAUFhWy5eLnIA8gDnAnIA8gCTB75jAAFBYWYuaS5yAPIA4AJyAPIAjAdhAPAAeh5pAHMAAKD7IoABZHB0APgReS6DLgABZmx9LoAuAOA12GnddQDzAP8RaQBtAOUABBIAAUFhiy6OLnIA8gDuAnIA8gCaBwABY3GVLgoScgAA4DXYzdwAAXB0nS6hLmwAdQDzACUScgDpACASAARhY2VmaW9zdbEuvC7ELsguzC7PLtQu2S5jAAABdXm2LrsudABlADuA/QD9QE9kAAFpecAuwy5yAGMAd2FLZG4AO4ClAKVAcgAA4DXYNt1jAHkAV2RwAGYAAOA12GrdYwByAADgNdjO3AABY23dLt8ueQBOZGwAO4D/AP9AAAVhY2RlZmhpb3N38y73Lv8uAi8MLxAvEy8YLx0vIi9jInV0ZQB6YQABYXn7Lv4u8iFvbn5hN2RvAHQAfGEAAWV0Bi8KL3QAcgDmAB8QYQC2Y3IAAOA12DfdYwB5ADZk5yJyYXJyAKDdIXAAZgAA4DXYa91jAHIAAOA12M/cAAFqbiYvKC8AoA0gagAAoAwg");var lS=dc("AAJhZ2xxBwARABMAFQBtAg0AAAAAAA8AcAAmYG8AcwAnYHQAPmB0ADxg9SFvdCJg");var Qr;(function(t){t[t.VALUE_LENGTH=49152]="VALUE_LENGTH",t[t.FLAG13=8192]="FLAG13",t[t.BRANCH_LENGTH=8064]="BRANCH_LENGTH",t[t.JUMP_TABLE=127]="JUMP_TABLE"})(Qr||(Qr={}));var _e;(function(t){t[t.NUM=35]="NUM",t[t.SEMI=59]="SEMI",t[t.EQUALS=61]="EQUALS",t[t.ZERO=48]="ZERO",t[t.NINE=57]="NINE",t[t.LOWER_A=97]="LOWER_A",t[t.LOWER_F=102]="LOWER_F",t[t.LOWER_X=120]="LOWER_X",t[t.LOWER_Z=122]="LOWER_Z",t[t.UPPER_A=65]="UPPER_A",t[t.UPPER_F=70]="UPPER_F",t[t.UPPER_Z=90]="UPPER_Z"})(_e||(_e={}));var aS=32;function $b(t){return t>=_e.ZERO&&t<=_e.NINE}function FP(t){return t>=_e.UPPER_A&&t<=_e.UPPER_F||t>=_e.LOWER_A&&t<=_e.LOWER_F}function VP(t){return t>=_e.UPPER_A&&t<=_e.UPPER_Z||t>=_e.LOWER_A&&t<=_e.LOWER_Z||$b(t)}function DP(t){return t===_e.EQUALS||VP(t)}var Tr;(function(t){t[t.EntityStart=0]="EntityStart",t[t.NumericStart=1]="NumericStart",t[t.NumericDecimal=2]="NumericDecimal",t[t.NumericHex=3]="NumericHex",t[t.NamedEntity=4]="NamedEntity"})(Tr||(Tr={}));var Li;(function(t){t[t.Legacy=0]="Legacy",t[t.Strict=1]="Strict",t[t.Attribute=2]="Attribute"})(Li||(Li={}));class Xb{constructor(t,e,o){this.decodeTree=t,this.emitCodePoint=e,this.errors=o,this.state=Tr.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=Li.Strict,this.runConsumed=0}startEntity(t){this.decodeMode=t,this.state=Tr.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1,this.runConsumed=0}write(t,e){switch(this.state){case Tr.EntityStart:{if(t.charCodeAt(e)===_e.NUM)return this.state=Tr.NumericStart,this.consumed+=1,this.stateNumericStart(t,e+1);return this.state=Tr.NamedEntity,this.stateNamedEntity(t,e)}case Tr.NumericStart:return this.stateNumericStart(t,e);case Tr.NumericDecimal:return this.stateNumericDecimal(t,e);case Tr.NumericHex:return this.stateNumericHex(t,e);case Tr.NamedEntity:return this.stateNamedEntity(t,e)}}stateNumericStart(t,e){if(e>=t.length)return-1;if((t.charCodeAt(e)|aS)===_e.LOWER_X)return this.state=Tr.NumericHex,this.consumed+=1,this.stateNumericHex(t,e+1);return this.state=Tr.NumericDecimal,this.stateNumericDecimal(t,e)}stateNumericHex(t,e){while(e<t.length){let o=t.charCodeAt(e);if($b(o)||FP(o)){let s=o<=_e.NINE?o-_e.ZERO:(o|aS)-_e.LOWER_A+10;this.result=this.result*16+s,this.consumed++,e++}else return this.emitNumericEntity(o,3)}return-1}stateNumericDecimal(t,e){while(e<t.length){let o=t.charCodeAt(e);if($b(o))this.result=this.result*10+(o-_e.ZERO),this.consumed++,e++;else return this.emitNumericEntity(o,2)}return-1}emitNumericEntity(t,e){var o;if(this.consumed<=e)return(o=this.errors)===null||o===void 0||o.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(t===_e.SEMI)this.consumed+=1;else if(this.decodeMode===Li.Strict)return 0;if(this.emitCodePoint(sS(this.result),this.consumed),this.errors){if(t!==_e.SEMI)this.errors.missingSemicolonAfterCharacterReference();this.errors.validateNumericCharacterReference(this.result)}return this.consumed}stateNamedEntity(t,e){let{decodeTree:o}=this,s=o[this.treeIndex],n=(s&Qr.VALUE_LENGTH)>>14;while(e<t.length){if(n===0&&(s&Qr.FLAG13)!==0){let a=(s&Qr.BRANCH_LENGTH)>>7;if(this.runConsumed===0){let y=s&Qr.JUMP_TABLE;if(t.charCodeAt(e)!==y)return this.result===0?0:this.emitNotTerminatedNamedEntity();e++,this.excess++,this.runConsumed++}while(this.runConsumed<a){if(e>=t.length)return-1;let y=this.runConsumed-1,u=o[this.treeIndex+1+(y>>1)],c=y%2===0?u&255:u>>8&255;if(t.charCodeAt(e)!==c)return this.runConsumed=0,this.result===0?0:this.emitNotTerminatedNamedEntity();e++,this.excess++,this.runConsumed++}this.runConsumed=0,this.treeIndex+=1+(a>>1),s=o[this.treeIndex],n=(s&Qr.VALUE_LENGTH)>>14}if(e>=t.length)break;let l=t.charCodeAt(e);if(l===_e.SEMI&&n!==0&&(s&Qr.FLAG13)!==0)return this.emitNamedEntityData(this.treeIndex,n,this.consumed+this.excess);if(this.treeIndex=BP(o,s,this.treeIndex+Math.max(1,n),l),this.treeIndex<0)return this.result===0||this.decodeMode===Li.Attribute&&(n===0||DP(l))?0:this.emitNotTerminatedNamedEntity();if(s=o[this.treeIndex],n=(s&Qr.VALUE_LENGTH)>>14,n!==0){if(l===_e.SEMI)return this.emitNamedEntityData(this.treeIndex,n,this.consumed+this.excess);if(this.decodeMode!==Li.Strict&&(s&Qr.FLAG13)===0)this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0}e++,this.excess++}return-1}emitNotTerminatedNamedEntity(){var t;let{result:e,decodeTree:o}=this,s=(o[e]&Qr.VALUE_LENGTH)>>14;return this.emitNamedEntityData(e,s,this.consumed),(t=this.errors)===null||t===void 0||t.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(t,e,o){let{decodeTree:s}=this;if(this.emitCodePoint(e===1?s[t]&~(Qr.VALUE_LENGTH|Qr.FLAG13):s[t+1],o),e===3)this.emitCodePoint(s[t+2],o);return o}end(){var t;switch(this.state){case Tr.NamedEntity:return this.result!==0&&(this.decodeMode!==Li.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case Tr.NumericDecimal:return this.emitNumericEntity(0,2);case Tr.NumericHex:return this.emitNumericEntity(0,3);case Tr.NumericStart:return(t=this.errors)===null||t===void 0||t.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case Tr.EntityStart:return 0}}}function mS(t){let e="",o=new Xb(t,(s)=>e+=iS(s));return function(n,l){let a=0,y=0;while((y=n.indexOf("&",y))>=0){e+=n.slice(a,y),o.startEntity(l);let c=o.write(n,y+1);if(c<0){a=y+o.end();break}a=y+c,y=c===0?a+1:a}let u=e+n.slice(a);return e="",u}}function BP(t,e,o,s){let n=(e&Qr.BRANCH_LENGTH)>>7,l=e&Qr.JUMP_TABLE;if(n===0)return l!==0&&s===l?o:-1;if(l){let c=s-l;return c<0||c>=n?-1:t[o+c]-1}let a=n+1>>1,y=0,u=n-1;while(y<=u){let c=y+u>>>1,d=c>>1,f=t[o+d]>>(c&1)*8&255;if(f<s)y=c+1;else if(f>s)u=c-1;else return t[o+a+c]}return-1}var yS=mS(nS),OP=mS(lS);function kp(t,e=Li.Legacy){return yS(t,e)}function zb(t){return yS(t,Li.Attribute)}function Mp(t){return OP(t,Li.Strict)}var lM=String.prototype.codePointAt==null?(t,e)=>(t.charCodeAt(e)&64512)===55296?(t.charCodeAt(e)-55296)*1024+t.charCodeAt(e+1)-56320+65536:t.charCodeAt(e):(t,e)=>t.codePointAt(e);function GP(t,e){return function(s){let n,l=0,a="";while(n=t.exec(s)){if(l!==n.index)a+=s.substring(l,n.index);a+=e.get(n[0].charCodeAt(0)),l=n.index+1}return a+s.substring(l)}}var Jb=GP(/[&<>\u00A0]/g,new Map([[38,"&amp;"],[60,"&lt;"],[62,"&gt;"],[160,"&nbsp;"]]));var pS;(function(t){t[t.XML=0]="XML",t[t.HTML=1]="HTML"})(pS||(pS={}));var uS;(function(t){t[t.UTF8=0]="UTF8",t[t.ASCII=1]="ASCII",t[t.Extensive=2]="Extensive",t[t.Attribute=3]="Attribute",t[t.Text=4]="Text"})(uS||(uS={}));var UP=/[&"<>\t\n\r]/g,HP=/[&"]/g,WP=/&(?:nbsp|lt|gt|amp);/g,_P={"&":"&amp;",'"':"&quot;","<":"&lt;",">":"&gt;","\t":"&#x9;","\n":"&#xA;","\r":"&#xD;"},YP={"&":"&amp;",'"':"&quot;"},KP={"&nbsp;":String.fromCharCode(160),"&lt;":"<","&gt;":">","&amp;":"&"};class De{static encodeXMLAttributeValue(t){if(t===null)return"";return t.replace(UP,(e)=>_P[e])}static decodeXMLAttributeValue(t){if(t===null)return"";return Mp(t)}static encodeHTMLAttributeValue(t){if(t===null)return"";return t.replace(HP,(e)=>YP[e])}static decodeHTMLAttributeValue(t){if(t===null)return"";return zb(t)}static encodeTextContent(t){if(t===null)return"";return Jb(t)}static decodeTextContent(t){if(t===null)return"";return t.replace(WP,(e)=>KP[e])}static decodeHTMLEntities(t){if(t===null)return"";return kp(t)}static decodeXMLEntities(t){if(t===null)return"";return Mp(t)}}class ai{options={serializableShadowRoots:!1,shadowRoots:null,allShadowRoots:!1,excludeShadowRootTags:null};constructor(t){if(t){if(t.serializableShadowRoots)this.options.serializableShadowRoots=t.serializableShadowRoots;if(t.shadowRoots)this.options.shadowRoots=t.shadowRoots;if(t.allShadowRoots)this.options.allShadowRoots=t.allShadowRoots;if(t.excludeShadowRootTags)this.options.excludeShadowRootTags=t.excludeShadowRootTags}}serializeToString(t){switch(t[D]){case T.elementNode:let e=t,o=e[Ft],s=e[ot],n=$e[e[ot]],l=o?`${o}:${s}`:s;if(n?.contentModel===G.noDescendants)return`<${l}${this.getAttributes(e)}>`;let a="";if(e.shadowRoot&&(this.options.allShadowRoots||this.options.serializableShadowRoots&&e.shadowRoot[Hi]||this.options.shadowRoots?.includes(e.shadowRoot))&&(!this.options.excludeShadowRootTags||!this.options.excludeShadowRootTags.includes(l))){a+=`<template shadowrootmode="${e.shadowRoot[Ee]}"${e.shadowRoot[Hi]?' shadowrootserializable=""':""}>`;for(let R of e.shadowRoot[_])a+=this.serializeToString(R);a+="</template>"}let y=l==="template"?t.content[_]:t[_];for(let R of y)a+=this.serializeToString(R);return`<${l}${this.getAttributes(e)}>${a}</${l}>`;case st.DOCUMENT_FRAGMENT_NODE:case st.DOCUMENT_NODE:let u="";for(let R of t[_])u+=this.serializeToString(R);return u;case T.commentNode:return`<!--${t.textContent}-->`;case T.processingInstructionNode:return`<!--?${t.target} ${t.textContent}?-->`;case T.textNode:let c=t.parentElement;if(c){if($e[c[ot]]?.contentModel===G.rawText)return t.textContent}return De.encodeTextContent(t.textContent);case T.documentTypeNode:let d=t,g=d.publicId?" PUBLIC":d.systemId?" SYSTEM":"",f=d.publicId?` "${d.publicId}"`:"",E=d.systemId?` "${d.systemId}"`:"";return`<!DOCTYPE ${d.name}${g}${f}${E}>`}return""}getAttributes(t){let e="",o=t[St][Q];if(!o.has(":is")&&t[eo])e+=' is="'+De.encodeHTMLAttributeValue(t[eo])+'"';for(let s of o.values()){let n=De.encodeHTMLAttributeValue(s[q]);e+=" "+s[rt]+'="'+n+'"'}return e}}var Ip={svg:{localName:"svg",className:"SVGSVGElement"},animate:{localName:"animate",className:"SVGAnimateElement"},animatemotion:{localName:"animateMotion",className:"SVGAnimateMotionElement"},animatetransform:{localName:"animateTransform",className:"SVGAnimateTransformElement"},circle:{localName:"circle",className:"SVGCircleElement"},clippath:{localName:"clipPath",className:"SVGClipPathElement"},defs:{localName:"defs",className:"SVGDefsElement"},desc:{localName:"desc",className:"SVGDescElement"},ellipse:{localName:"ellipse",className:"SVGEllipseElement"},feblend:{localName:"feBlend",className:"SVGFEBlendElement"},fecolormatrix:{localName:"feColorMatrix",className:"SVGFEColorMatrixElement"},fecomponenttransfer:{localName:"feComponentTransfer",className:"SVGFEComponentTransferElement"},fecomposite:{localName:"feComposite",className:"SVGFECompositeElement"},feconvolvematrix:{localName:"feConvolveMatrix",className:"SVGFEConvolveMatrixElement"},fediffuselighting:{localName:"feDiffuseLighting",className:"SVGFEDiffuseLightingElement"},fedisplacementmap:{localName:"feDisplacementMap",className:"SVGFEDisplacementMapElement"},fedistantlight:{localName:"feDistantLight",className:"SVGFEDistantLightElement"},fedropshadow:{localName:"feDropShadow",className:"SVGFEDropShadowElement"},feflood:{localName:"feFlood",className:"SVGFEFloodElement"},fefunca:{localName:"feFuncA",className:"SVGFEFuncAElement"},fefuncb:{localName:"feFuncB",className:"SVGFEFuncBElement"},fefuncg:{localName:"feFuncG",className:"SVGFEFuncGElement"},fefuncr:{localName:"feFuncR",className:"SVGFEFuncRElement"},fegaussianblur:{localName:"feGaussianBlur",className:"SVGFEGaussianBlurElement"},feimage:{localName:"feImage",className:"SVGFEImageElement"},femerge:{localName:"feMerge",className:"SVGFEMergeElement"},femergenode:{localName:"feMergeNode",className:"SVGFEMergeNodeElement"},femorphology:{localName:"feMorphology",className:"SVGFEMorphologyElement"},feoffset:{localName:"feOffset",className:"SVGFEOffsetElement"},fepointlight:{localName:"fePointLight",className:"SVGFEPointLightElement"},fespecularlighting:{localName:"feSpecularLighting",className:"SVGFESpecularLightingElement"},fespotlight:{localName:"feSpotLight",className:"SVGFESpotLightElement"},fetile:{localName:"feTile",className:"SVGFETileElement"},feturbulence:{localName:"feTurbulence",className:"SVGFETurbulenceElement"},filter:{localName:"filter",className:"SVGFilterElement"},foreignobject:{localName:"foreignObject",className:"SVGForeignObjectElement"},g:{localName:"g",className:"SVGGElement"},image:{localName:"image",className:"SVGImageElement"},line:{localName:"line",className:"SVGLineElement"},lineargradient:{localName:"linearGradient",className:"SVGLinearGradientElement"},marker:{localName:"marker",className:"SVGMarkerElement"},mask:{localName:"mask",className:"SVGMaskElement"},metadata:{localName:"metadata",className:"SVGMetadataElement"},mpath:{localName:"mpath",className:"SVGMPathElement"},path:{localName:"path",className:"SVGPathElement"},pattern:{localName:"pattern",className:"SVGPatternElement"},polygon:{localName:"polygon",className:"SVGPolygonElement"},polyline:{localName:"polyline",className:"SVGPolylineElement"},radialgradient:{localName:"radialGradient",className:"SVGRadialGradientElement"},rect:{localName:"rect",className:"SVGRectElement"},script:{localName:"script",className:"SVGScriptElement"},set:{localName:"set",className:"SVGSetElement"},stop:{localName:"stop",className:"SVGStopElement"},style:{localName:"style",className:"SVGStyleElement"},switch:{localName:"switch",className:"SVGSwitchElement"},symbol:{localName:"symbol",className:"SVGSymbolElement"},text:{localName:"text",className:"SVGTextElement"},textpath:{localName:"textPath",className:"SVGTextPathElement"},title:{localName:"title",className:"SVGTitleElement"},tspan:{localName:"tspan",className:"SVGTSpanElement"},use:{localName:"use",className:"SVGUseElement"},view:{localName:"view",className:"SVGViewElement"}};var QP=/<([^\s/!>?]+)|<\/([^\s/!>?]+)\s*>|(<!--)|(-->|--!>)|(<!)|(<\?)|(\/>)|(>)/gm,jP=/\s*([a-zA-Z0-9-_:.$@?\\<\[\]]+)\s*=\s*([^"'=<>\\`\s]+)|\s*([a-zA-Z0-9-_:.$@?\\<\[\]]+)\s*=\s*"([^"]*)("{0,1})|\s*([a-zA-Z0-9-_:.$@?\\<\[\]]+)\s*=\s*'([^']*)('{0,1})|\s*([a-zA-Z0-9-_:.$@?\\<\[\]]+)/gm,qP=/"([^"]+)"/gm,$P=/\s+/,XP=/^\s+/,Ge;(function(t){t.any="any",t.startTag="startTag",t.comment="comment",t.documentType="documentType",t.processingInstruction="processingInstruction",t.rawTextElement="rawTextElement"})(Ge||(Ge={}));var Te;(function(t){t[t.root=0]="root",t[t.doctype=1]="doctype",t[t.documentElement=2]="documentElement",t[t.head=3]="head",t[t.additionalHeadWithoutBody=4]="additionalHeadWithoutBody",t[t.body=5]="body",t[t.afterBody=6]="afterBody"})(Te||(Te={}));class Cr{window;evaluateScripts=!1;isTemplateDocumentFragment=!1;rootNode=null;rootDocument=null;nodeStack=[];tagNameStack=[];documentStructure=null;startTagIndex=0;markupRegExp=null;nextElement=null;currentNode=null;readState=Ge.any;constructor(t,e){if(this.window=t,e?.evaluateScripts)this.evaluateScripts=!0;if(e?.isTemplateDocumentFragment)this.isTemplateDocumentFragment=!0}parse(t,e){if(this.rootNode=e||this.window.document.createDocumentFragment(),this.rootDocument=this.rootNode[D]===T.documentNode?this.rootNode:this.window.document,this.nodeStack=[this.rootNode],this.tagNameStack=[null],this.currentNode=this.rootNode,this.readState=Ge.any,this.documentStructure=null,this.startTagIndex=0,this.markupRegExp=new RegExp(QP),this.rootNode[D]===T.documentNode){let{doctype:n,documentElement:l,head:a,body:y}=this.rootNode;if(!l||!a||!y)throw Error(`Failed to parse HTML: The root node must have "documentElement", "head" and "body".
87
+ `);class Dr{reject=null;resolve=null;listeners={onSignalAbort:this.onSignalAbort.bind(this)};isChunkedTransfer=!1;isProperLastChunkReceived=!1;previousChunk=null;nodeRequest=null;nodeResponse=null;response=null;responseHeaders=null;interceptor;requestHeaders;request;redirectCount=0;disableCache;disableSameOriginPolicy;disablePreload;#t;#e;#r=null;constructor(t){if(this.#t=t.browserFrame,this.#e=t.window,this.#r=t.unfilteredHeaders??null,this.request=typeof t.url==="string"||t.url instanceof yc?new t.window.Request(t.url,t.init):t.url,t.contentType)this.request[xe]=t.contentType;this.redirectCount=t.redirectCount??0,this.disableCache=t.disableCache??!1,this.disableSameOriginPolicy=t.disableSameOriginPolicy??this.#t.page.context.browser.settings.fetch.disableSameOriginPolicy??!1,this.interceptor=this.#t.page.context.browser.settings.fetch.interceptor,this.requestHeaders=this.#t.page.context.browser.settings.fetch.requestHeaders,this.disablePreload=t.disablePreload??!1}async send(){if(!(this.request instanceof Ti)||!(this.request[Pe]instanceof yc))throw new this.#e.DOMException("Unknown request object. Request object must be an instance of Request.",w.invalidStateError);if(hs.prepareRequest(new yc(this.#e.location.href),this.request),this.requestHeaders){for(let e of this.requestHeaders)if(!e.url||(typeof e.url==="string"?e.url.startsWith(this.request.url):this.request.url.match(e.url)))for(let[o,s]of Object.entries(e.headers))this.request.headers.set(o,s)}if(this.interceptor?.beforeAsyncRequest){let e=this.#t[Pt].startTask(),o=await this.interceptor.beforeAsyncRequest({request:this.request,window:this.#e});if(this.#t[Pt].endTask(e),o instanceof Mo)return o}if(ti.validateSchema(this.request),this.request.signal[Se]){if(this.request.signal[To]!==void 0)throw this.request.signal[To];throw new this.#e.DOMException("signal is aborted without reason",w.abortError)}if(this.request[Pe].protocol==="data:"){let e=Ya.parse(this.request.url);this.response=new this.#e.Response(e.buffer,{headers:{"Content-Type":e.type}});let o=this.interceptor?.afterAsyncResponse?await this.interceptor.afterAsyncResponse({window:this.#e,response:this.response,request:this.request}):void 0;return o instanceof Mo?o:this.response}if(this.request[Pe].protocol==="http:"&&this.#e.location.protocol==="https:")throw new this.#e.DOMException(`Mixed Content: The page at '${this.#e.location.href}' was loaded over HTTPS, but requested an insecure XMLHttpRequest endpoint '${this.request.url}'. This request has been blocked; the content must be served over HTTPS.`,w.securityError);if(!this.disableCache){let e=await this.getCachedResponse();if(e)return e}if(!this.disablePreload){let e=on.getKey({url:this.request.url,destination:"fetch",mode:this.request.mode,credentialsMode:this.request.credentials}),o=this.#e.document[Rr].get(e);if(o){if(this.#e.document[Rr].delete(e),o.response)return o.response;let s=this.#t[Pt].startTask(),n=await o.onResponseAvailable();return this.#t[Pt].endTask(s),n}}let t=await this.getVirtualServerResponse();if(t)return t;if(!this.disableSameOriginPolicy){if(!await this.compliesWithCrossOriginPolicy())throw this.#t.page.console.warn(`Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at "${this.request.url}".`),new this.#e.DOMException(`Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at "${this.request.url}".`,w.networkError)}return await this.sendRequest()}async getCachedResponse(){if(this.disableCache)return null;let t=this.#t.page.context.responseCache.get(this.request);if(!t||t.response.waitingForBody)return null;if(t.state===_n.stale){let o=new this.#e.Headers(t.request.headers);if(t.etag)o.set("If-None-Match",t.etag);else{if(!t.lastModified)return null;o.set("If-Modified-Since",new Date(t.lastModified).toUTCString())}let s=new Dr({browserFrame:this.#t,window:this.#e,url:this.request.url,init:{headers:o,method:t.request.method},disableCache:!0,disableSameOriginPolicy:!0});if(t.etag||!t.staleWhileRevalidate){let n=await s.send(),l=n.status!==304?await n.buffer():null;if(t=this.#t.page.context.responseCache.add(this.request,{...n,body:l,waitingForBody:!1}),n.status!==304){let a=new this.#e.Response(l,{status:n.status,statusText:n.statusText,headers:n.headers});return a.url=n.url,a[Qo]=t,a}}else s.send().then((n)=>{n.buffer().then((l)=>{this.#t.page.context.responseCache.add(this.request,{...n,body:l,waitingForBody:!1})})})}if(!t||t.response.waitingForBody)return null;let e=new this.#e.Response(t.response.body,{status:t.response.status,statusText:t.response.statusText,headers:t.response.headers});return e.url=t.response.url,e[Qo]=t,e}async getVirtualServerResponse(){let t=ds.getFilepath(this.#e,this.request.url);if(!t)return null;let e=this.#t[Pt].startTask();if(this.request.method!=="GET"){this.#t.page.console.error(`${this.request.method} ${this.request.url} 404 (Not Found)`);let u=ds.getNotFoundResponse(this.#e),c=this.interceptor?.afterAsyncResponse?await this.interceptor.afterAsyncResponse({window:this.#e,response:await u,request:this.request}):void 0;return this.#t[Pt].endTask(e),c instanceof Mo?c:u}let o;try{t=(await rS.promises.stat(t)).isDirectory()?MP.join(t,"index.html"):t,o=await rS.promises.readFile(t)}catch(u){this.#t.page.console.error(`${this.request.method} ${this.request.url} 404 (Not Found)`);let c=ds.getNotFoundResponse(this.#e),d=this.interceptor?.afterAsyncResponse?await this.interceptor.afterAsyncResponse({window:this.#e,response:await c,request:this.request}):void 0;return this.#t[Pt].endTask(e),d instanceof Mo?d:c}let s=new this.#e.ReadableStream({start:(u)=>{this.#e.queueMicrotask(()=>{u.enqueue(o),u.close()})}}),n=new this.#e.Response(s);n[Nt]=o,n[_r]=t,n.url=this.request.url;let l=this.interceptor?.afterAsyncResponse?await this.interceptor.afterAsyncResponse({window:this.#e,response:await n,request:this.request}):void 0;this.#t[Pt].endTask(e);let a=l instanceof Mo?l:n,y={...a,body:o,waitingForBody:!1,virtual:!0};return n[Qo]=this.#t.page.context.responseCache.add(this.request,y),a}async compliesWithCrossOriginPolicy(){if(this.disableSameOriginPolicy||!Jo.isCORS(this.#e.location.href,this.request[Pe]))return!0;let t=this.#t.page.context.preflightResponseCache.get(this.request);if(t){if(t.allowOrigin!=="*"&&t.allowOrigin!==this.#e.location.origin)return!1;if(t.allowMethods.length!==0&&!t.allowMethods.includes(this.request.method))return!1;return!0}let e=[];for(let[y]of this.request.headers)e.push(y.toLowerCase());let o=new this.#e.Headers({"Access-Control-Request-Method":this.request.method,Origin:this.#e.location.origin});if(e.length>0)o.set("Access-Control-Request-Headers",e.slice().sort().join(","));let n=await new Dr({browserFrame:this.#t,window:this.#e,url:this.request.url,init:{method:"OPTIONS"},disableCache:!0,disableSameOriginPolicy:!0,unfilteredHeaders:o}).send();if(!n.ok)return!1;let l=n.headers.get("Access-Control-Allow-Origin");if(!l)return!1;if(l!=="*"&&l!==this.#e.location.origin)return!1;let a=[];if(n.headers.has("Access-Control-Allow-Methods")){let y=n.headers.get("Access-Control-Allow-Methods");if(y!=="*")for(let u of y.split(","))a.push(u.trim().toUpperCase())}if(a.length!==0&&!a.includes(this.request.method))return!1;return!0}sendRequest(){return new Promise((t,e)=>{let o=this.#t[Pt].startTask(()=>this.onAsyncTaskManagerAbort());if(this.resolve)throw new this.#e.Error("Fetch already sent.");this.resolve=async(n)=>{if(!this.disableCache&&n instanceof Mo&&this.#t.page&&this.#t.page.context)n[Qo]=this.#t.page.context.responseCache.add(this.request,{...n,headers:this.responseHeaders,body:n[Nt],waitingForBody:!n[Nt]&&!!n.body});let l=this.interceptor?.afterAsyncResponse?await this.interceptor.afterAsyncResponse({window:this.#e,response:await n,request:this.request}):void 0;this.#t[Pt].endTask(o);let a=l instanceof Mo?l:n;if(a instanceof Mo&&!a.ok)this.#t.page.console.error(`${this.request.method} ${this.request.url} ${a.status} (${a.statusText})`);t(a)},this.reject=(n)=>{this.#t[Pt].endTask(o),e(n)},this.request.signal.addEventListener("abort",this.listeners.onSignalAbort);let s=(this.request[Pe].protocol==="https:"?kP:LP).request;if(this.nodeRequest=s(this.request[Pe].href,{method:this.request.method,headers:cs.getRequestHeaders({browserFrame:this.#t,window:this.#e,request:this.request,baseHeaders:this.#r}),agent:!1,rejectUnauthorized:!this.#t.page.context.browser.settings.fetch.disableStrictSSL,key:this.request[Pe].protocol==="https:"?Qa.key:void 0,cert:this.request[Pe].protocol==="https:"?Qa.cert:void 0}),this.nodeRequest.on("error",this.onError.bind(this)),this.nodeRequest.on("socket",this.onSocket.bind(this)),this.nodeRequest.on("response",this.onResponse.bind(this)),this.request.body===null)this.nodeRequest.end();else sn.pipeline(this.request.body,this.nodeRequest,(n)=>{if(n)this.onError(n)})})}onSocket(t){let e=()=>{if(this.isChunkedTransfer&&!this.isProperLastChunkReceived){let s=new this.#e.DOMException("Premature close.",w.networkError);if(this.request[Qe]=s,this.response){if(this.response[Qe]=s,this.response.body&&!this.response.body.locked)this.response.body.cancel(s)}}},o=(s)=>{if(this.isProperLastChunkReceived=pc.compare(s.slice(-5),Ub)===0,!this.isProperLastChunkReceived&&this.previousChunk)this.isProperLastChunkReceived=pc.compare(this.previousChunk.slice(-3),Ub.slice(0,3))===0&&pc.compare(s.slice(-2),Ub.slice(3))===0;this.previousChunk=s};t.prependListener("close",e),t.on("data",o),this.nodeRequest.on("close",()=>{t.removeListener("close",e),t.removeListener("data",o)})}onSignalAbort(t){this.finalizeRequest(),this.abort(t.target?.reason)}onError(t){this.finalizeRequest(),this.#t.page.console.error(t),this.reject(new this.#e.DOMException(`Failed to execute "fetch()" on "Window" with URL "${this.request.url}": ${t.message}`,w.networkError))}onAsyncTaskManagerAbort(){let t=new this.#e.DOMException("The operation was aborted.",w.abortError);if(this.request[Se]=!0,this.request[Qe]=t,this.response)this.response[Se]=!0,this.response[Qe]=t;if(this.listeners.onSignalAbort)this.request.signal.removeEventListener("abort",this.listeners.onSignalAbort);if(this.nodeRequest&&!this.nodeRequest.destroyed)this.nodeRequest.destroy(t);if(this.nodeResponse&&!this.nodeResponse.destroyed)this.nodeResponse.destroy(t);if(this.response&&this.response.body){if(!this.response.body.locked)this.response.body.cancel(t)}}onResponse(t){if(this.isChunkedTransfer=t.headers["transfer-encoding"]==="chunked"&&!t.headers["content-length"],this.nodeRequest.setTimeout(0),this.responseHeaders=Ka.parseResponseHeaders({browserFrame:this.#t,requestURL:this.request[Pe],rawHeaders:t.rawHeaders}),this.handleRedirectResponse(t,this.responseHeaders))return;t.once("end",()=>this.request.signal.removeEventListener("abort",this.listeners.onSignalAbort));let e=sn.pipeline(t,new sn.PassThrough,(n)=>{}),o={status:t.statusCode,statusText:t.statusMessage,headers:this.responseHeaders},s=this.responseHeaders.get("Content-Encoding");if(this.request.method==="HEAD"||s===null||t.statusCode===204||t.statusCode===304){this.response=new this.#e.Response(tr.nodeToWebStream(e),o),this.response.redirected=this.redirectCount>0,this.response.url=this.request.url,this.resolve(this.response);return}if(s==="gzip"||s==="x-gzip"){let n={flush:qa.constants.Z_SYNC_FLUSH,finishFlush:qa.constants.Z_SYNC_FLUSH};e=sn.pipeline(e,qa.createGunzip(n),(l)=>{}),this.response=new this.#e.Response(tr.nodeToWebStream(e),o),this.response.redirected=this.redirectCount>0,this.response.url=this.request.url,this.resolve(this.response);return}if(s==="deflate"||s==="x-deflate"){let n=sn.pipeline(t,new sn.PassThrough,(l)=>{});n.on("data",(l)=>{if((l[0]&15)===8)e=sn.pipeline(e,qa.createInflate(),(a)=>{});else e=sn.pipeline(e,qa.createInflateRaw(),(a)=>{});this.response=new this.#e.Response(tr.nodeToWebStream(e),o),this.response.redirected=this.redirectCount>0,this.response.url=this.request.url,this.resolve(this.response)}),n.on("end",()=>{if(!this.response)this.response=new this.#e.Response(tr.nodeToWebStream(e),o),this.response.redirected=this.redirectCount>0,this.response.url=this.request.url,this.resolve(this.response)});return}if(s==="br"){e=sn.pipeline(e,qa.createBrotliDecompress(),(n)=>{}),this.response=new this.#e.Response(tr.nodeToWebStream(e),o),this.response.redirected=this.redirectCount>0,this.response.url=this.request.url,this.resolve(this.response);return}this.response=new this.#e.Response(tr.nodeToWebStream(e),o),this.response.redirected=this.redirectCount>0,this.response.url=this.request.url,this.resolve(this.response)}handleRedirectResponse(t,e){if(!tl.isRedirect(t.statusCode))return!1;switch(this.request.redirect){case"error":return this.finalizeRequest(),this.reject(new this.#e.DOMException(`URI requested responds with a redirect, redirect mode is set to "error": ${this.request.url}`,w.abortError)),!0;case"manual":return!1;case"follow":let o=e.get("Location"),s=t.statusCode===303||(t.statusCode===301||t.statusCode===302)&&this.request.method==="POST",n=null;if(o!==null)try{n=new yc(o,this.request.url)}catch{return this.finalizeRequest(),this.reject(new this.#e.DOMException(`URI requested responds with an invalid redirect URL: ${o}`,w.uriMismatchError)),!0}if(n===null)return!1;if(tl.isMaxRedirectsReached(this.redirectCount))return this.finalizeRequest(),this.reject(new this.#e.DOMException(`Maximum redirects reached at: ${this.request.url}`,w.networkError)),!0;let l=new this.#e.Headers(this.request.headers),a={method:this.request.method,signal:this.request.signal,referrer:this.request.referrer,referrerPolicy:this.request.referrerPolicy,credentials:this.request.credentials,headers:l,body:this.request[hi]};if(this.request.credentials==="omit"||this.request.credentials==="same-origin"&&Jo.isCORS(this.#e.location.href,n))l.delete("cookie"),l.delete("cookie2");if(this.request.signal[Se])return this.abort(this.request.signal[To]),!0;if(s)a.method="GET",a.body=void 0,l.delete("Content-Length"),l.delete("Content-Type");let y=hs.getReferrerPolicyFromHeader(l);if(y)a.referrerPolicy=y;let u=new Dr({browserFrame:this.#t,window:this.#e,url:n,init:a,redirectCount:this.redirectCount+1,disableSameOriginPolicy:this.disableSameOriginPolicy,contentType:!s?this.request[xe]:null});return this.finalizeRequest(),u.send().then((c)=>this.resolve(c)).catch((c)=>this.reject(c)),!0;default:return this.finalizeRequest(),this.reject(new this.#e.DOMException(`Redirect option '${this.request.redirect}' is not a valid value of TRequestRedirect`)),!0}}finalizeRequest(){this.request.signal.removeEventListener("abort",this.listeners.onSignalAbort),this.nodeRequest?.destroy()}abort(t){let e=new this.#e.DOMException("The operation was aborted."+(t?" "+t.toString():""),w.abortError);if(this.request[Se]=!0,this.request[Qe]=e,this.response)this.response[Se]=!0,this.response[Qe]=e;if(this.nodeRequest&&!this.nodeRequest.destroyed)this.nodeRequest.destroy(e);if(this.nodeResponse&&!this.nodeResponse.destroyed)this.nodeResponse.destroy(e);if(this.response&&this.response.body){if(!this.response.body.locked)this.response.body.cancel(e)}if(this.reject)this.reject(t!==void 0?t:e)}}var Hb;(function(t){t.auto="auto",t.manual="manual"})(Hb||(Hb={}));var ri=Hb;import{URL as Wb}from"url";class Io{static getRelativeURL(t,e){if(e=e?String(e):"about:blank",e.startsWith("about:")||e.startsWith("javascript:"))return new Wb(e);try{return new Wb(e,t.window[io].href)}catch(o){return new Wb("about:blank")}}}class $a{#t;#e;constructor(t,e){if(!t)throw TypeError("Illegal constructor");this.#t=t,this.#e=e}get length(){return this.#t?.[Oe].items.length||0}get state(){return this.#t?.[Oe].currentItem.state||null}get scrollRestoration(){return this.#t?.[Oe].currentItem.scrollRestoration||ri.auto}set scrollRestoration(t){switch(t){case ri.auto:case ri.manual:let e=this.#t?.[Oe].currentItem;if(e)e.scrollRestoration=t;break}}back(){if(!this.#e.closed)this.#t?.goBack()}forward(){if(!this.#e.closed)this.#t?.goForward()}go(t){if(!this.#e.closed)this.#t?.goSteps(t)}pushState(t,e,o){if(!this.#t||this.#e.closed)return;let s=this.#t?.[Oe];if(!s)return;if(arguments.length<2)throw new this.#e.TypeError(`Failed to execute 'pushState' on 'History': 2 arguments required, but only ${arguments.length} present.`);let n=this.#e[io],l=o?Io.getRelativeURL(this.#t,o):n;if(o&&l.origin!==n.origin)throw new this.#e.DOMException(`Failed to execute 'pushState' on 'History': A history state object with URL '${o.toString()}' cannot be created in a document with origin '${n.origin}' and URL '${n.href}'.`,w.securityError);s.currentItem.popState=!0,s.push({title:this.#e.document.title,href:l.href,state:t,popState:!0,scrollRestoration:s.currentItem.scrollRestoration,method:s.currentItem.method||"GET",formData:s.currentItem.formData||null}),n[Wr](this.#t,s.currentItem.href)}replaceState(t,e,o){if(!this.#t||this.#e.closed)return;let s=this.#t?.[Oe];if(!s)return;if(arguments.length<2)throw new this.#e.TypeError(`Failed to execute 'pushState' on 'History': 2 arguments required, but only ${arguments.length} present.`);let n=this.#e[io],l=o?Io.getRelativeURL(this.#t,o):n;if(o&&l.origin!==n.origin)throw new this.#e.DOMException(`Failed to execute 'pushState' on 'History': A history state object with URL '${o.toString()}' cannot be created in a document with origin '${n.origin}' and URL '${n.href}'.`,w.securityError);if(s.replace({title:this.#e.document.title,href:l.href,state:t,popState:s.currentItem.popState,scrollRestoration:s.currentItem.scrollRestoration,method:s.currentItem.method,formData:s.currentItem.formData}),o)n[Wr](this.#t,s.currentItem.href)}[At](){this.#t=null}}class Tp{#t;#e;constructor(t,e){this.#t=t,this.#e=e||{}}observe(t){}disconnect(){}unobserve(t){}takeRecords(){return[]}}class Cp{boundingClientRect=null;intersectionRatio=0;intersectionRect=null;isIntersecting=!1;rootBounds=null;target=null;time=0;constructor(t){Object.assign(this,t)}}class Xa{[Symbol.toStringTag]="Location";#t;#e;#r=null;#o=[];constructor(t,e){if(!t)throw TypeError("Illegal constructor");this.#t=t,this.#e=new URL(e)}get hash(){return this.#e.hash}set hash(t){let e=this.#t?.[Oe];if(!e||!this.#t)return;let o=new URL(this.#e.href),s=this.#e.hash;if(o.hash=t,o.hash!==s)e.currentItem.popState=!0,e.push({title:"",href:o.href,state:e.currentItem.state,popState:!0,scrollRestoration:ri.manual,method:e.currentItem.method,formData:e.currentItem.formData||null}),this[Wr](this.#t,o.href)}get host(){return this.#e.host}set host(t){let e=new URL(this.#e.href);e.host=t,this.href=e.href}get hostname(){return this.#e.hostname}set hostname(t){let e=new URL(this.#e.href);e.hostname=t,this.href=e.href}get href(){return this.#e.href}set href(t){if(!this.#t)return;this.#t.goto(t).catch((e)=>{if(this.#t?.page?.console)this.#t.page.console.error(e);else throw e})}get origin(){return this.#e.origin}get pathname(){return this.#e.pathname}set pathname(t){let e=new URL(this.#e.href);e.pathname=t,this.href=e.href}get port(){return this.#e.port}set port(t){let e=new URL(this.#e.href);e.port=t,this.href=e.href}get protocol(){return this.#e.protocol}set protocol(t){let e=new URL(this.#e.href);e.protocol=t,this.href=e.href}get search(){return this.#e.search}set search(t){let e=new URL(this.#e.href);e.search=t,this.href=e.href}replace(t){this.href=String(t)}assign(t){this.href=String(t)}reload(){if(!this.#t)return;this.#t.goto(this.href).catch((t)=>{if(this.#t?.page.console)this.#t.page.console.error(t);else throw t})}[Wr](t,e){if(!this.#t)return;if(this.#t!==t)throw Error("Failed to set URL. Browser frame mismatch.");let o=this.#e.href,s=this.#e.hash;if(this.#e.href=e,this.#e.hash!==s){let n=this.#e.href;if(this.#o.push(new Jl("hashchange",{oldURL:o,newURL:n})),this.#t?.window?.document?.[Mr](),this.#r)this.#t.window?.clearTimeout(this.#r);this.#r=this.#t.window?.setTimeout(()=>{let l=this.#o;this.#o=[];for(let a of l)this.#t?.window?.dispatchEvent(a)})}}[At](){if(this.#r)this.#t?.window?.clearTimeout(this.#r);this.#t=null}toString(){return this.#e.toString()}}class Ro{type;target;addedNodes;removedNodes;previousSibling;nextSibling;attributeName;attributeNamespace;oldValue;constructor(t){this.type=t.type,this.target=t.target,this.addedNodes=t.addedNodes||[],this.removedNodes=t.removedNodes||[],this.previousSibling=t.previousSibling||null,this.nextSibling=t.nextSibling||null,this.attributeName=t.attributeName||null,this.attributeNamespace=t.attributeNamespace||null,this.oldValue=t.oldValue||null}}class za{description;enabledPlugin;suffixes;type;constructor(t,e,o,s){this.description=t,this.enabledPlugin=e,this.suffixes=o,this.type=s}toString(){return"[object MimeType]"}}class Ja{length;constructor(t){for(let e=0,o=t.length;e<o;e++)this[e]=t[e],this[t[e].type]=t[e];this.length=t.length}item(t){return this[t]||null}namedItem(t){return this[t]||null}toString(){return"[object MimeTypeArray]"}}class Np{length=0;description;filename;name;constructor(t,e,o,s){this.description=e,this.filename=o,this.name=s;for(let n=0,l=t.length;n<l;n++)this[n]=t[n],this[t[n].type]=t[n];this.length=t.length}item(t){return this[t]||null}namedItem(t){return this[t]||null}toString(){return"[object Plugin]"}}class Za{length;constructor(t){for(let e=0,o=t.length;e<o;e++)this[e]=t[e],this[t[e].name]=t[e];this.length=t.length}item(t){return this[t]||null}namedItem(t){return this[t]||null}refresh(){}toString(){return"[object PluginArray]"}}var _b;(function(t){t.geolocation="geolocation",t.notifications="notifications",t.push="push",t.midi="midi",t.camera="camera",t.microphone="microphone",t.backgroundFetch="background-fetch",t.backgroundSync="background-sync",t.persistentStorage="persistent-storage",t.ambientLightSensor="ambient-light-sensor",t.accelerometer="accelerometer",t.gyroscope="gyroscope",t.magnetometer="magnetometer",t.screenWakeLock="screen-wake-lock",t.nfc="nfc",t.displayCapture="display-capture",t.accessibilityEvents="accessibility-events",t.clipboardRead="clipboard-read",t.clipboardWrite="clipboard-write",t.paymentHandler="payment-handler",t.idleDetection="idle-detection",t.periodicBackgroundSync="periodic-background-sync",t.systemWakeLock="system-wake-lock",t.storageAccess="storage-access",t.windowManagement="window-management",t.windowPlacement="window-placement",t.localFonts="local-fonts",t.topLevelStorageAccess="top-level-storage-access"})(_b||(_b={}));var oS=_b;class oa{#t={};#e;constructor(t){if(!t?.document)TypeError("Invalid constructor");this.#e=t}async query(t){let e=t?.name;if(e&&this.#t[e])return this.#t[e];if(!Object.values(oS).includes(e))throw Error(`Failed to execute 'query' on 'Permissions': Failed to read the 'name' property from 'PermissionDescriptor': The provided value '${e}' is not a valid enum value of type PermissionName.`);return this.#t[e]=new this.#e.PermissionStatus("granted"),this.#t[e]}}class Lp{#t;#e;#r;constructor(t){if(!t)throw TypeError("Invalid constructor");this.#t=t,this.#e=new Ul(t),this.#r=new oa(t)}get cookieEnabled(){return!0}get credentials(){return null}get geolocation(){return null}get language(){return"en-US"}get languages(){return["en-US","en"]}get locks(){return null}get maxTouchPoints(){return new it(this.#t).getSettings()?.navigator.maxTouchPoints||0}get hardwareConcurrency(){return 8}get appCodeName(){return"Mozilla"}get appName(){return"Netscape"}get appVersion(){let t=this.userAgent,e=t.indexOf("/");return e>-1?t.substring(e+1):""}get platform(){let t=this.userAgent,e=t.indexOf("("),o=t.indexOf(")");return e>-1&&o>-1?t.substring(e+1,o):""}get product(){return"Gecko"}get productSub(){return"20100101"}get vendor(){return""}get vendorSub(){return""}get userAgent(){return new it(this.#t).getSettings()?.navigator.userAgent||""}get onLine(){return!0}get permissions(){return this.#r}get clipboard(){return this.#e}get webdriver(){return!0}get doNotTrack(){return"unspecified"}get mimeTypes(){return new Ja([])}get plugins(){return new Za([])}sendBeacon(t,e){return this.#t.fetch(t,{method:"POST",body:e}),!0}toString(){return"[object Navigator]"}}var Yb;(function(t){t[t.disconnect=1]="disconnect",t[t.preceding=2]="preceding",t[t.following=4]="following",t[t.contains=8]="contains",t[t.containedBy=16]="containedBy",t[t.implementationSpecific=32]="implementationSpecific"})(Yb||(Yb={}));var _o=Yb;class ft{static isTextNode(t){return t?.[D]===T.textNode}static isInclusiveAncestor(t,e,o=!1){if(t===null||e===null)return!1;if(t===e)return!0;if(!t[_].length)return!1;if(o&&e[tt]!==t[tt])return!1;if(o&&t===e[x]&&e[tt])return!0;let s=e[W];while(s){if(t===s)return!0;if(t[W]===s[W])return!1;s=s[W]?s[W]:o&&s.host?s.host:null}return!1}static isFollowing(t,e){if(t===e)return!1;let o=e;while(o)if(o=this.following(o),o===t)return!0;return!1}static getNodeLength(t){switch(t[D]){case T.documentTypeNode:return 0;case T.textNode:case T.processingInstructionNode:case T.commentNode:return t.data.length;default:return t[_].length}}static following(t,e){let o=t.firstChild;if(o)return o;let s=t;while(s){if(s===e)return null;let n=s.nextSibling;if(n)return n;s=s[W]}return null}static nextDescendantNode(t){while(t&&!t.nextSibling)t=t[W];if(!t)return null;return t.nextSibling}static attributeListsEqual(t,e){let o=Array.from(t[St][Q].values()),s=Array.from(e[St][Q].values());for(let n of o){let l=!1;for(let a of s)if(n[J]===a[J]&&n.localName===a.localName&&n[q]===a[q]){l=!0;break}if(!l)return!1}return!0}static isEqualNode(t,e){if(t[D]!==e[D])return!1;switch(t[D]){case T.documentTypeNode:let o=t,s=e;if(o.name!==s.name||o.publicId!==s.publicId||o.systemId!==s.systemId)return!1;break;case T.elementNode:let n=t,l=e;if(n[J]!==l[J]||n[Ft]!==l[Ft]||n[ot]!==l[ot]||n[St][Q].size!==l[St][Q].size)return!1;break;case T.attributeNode:let a=t,y=e;if(a[J]!==y[J]||a.localName!==y.localName||a[q]!==y[q])return!1;break;case T.processingInstructionNode:let u=t,c=e;if(u.target!==c.target||u.data!==c.data)return!1;break;case T.textNode:case T.commentNode:let d=t,g=e;if(d.data!==g.data)return!1;break}if(t[D]===T.elementNode&&!ft.attributeListsEqual(t,e))return!1;if(t[_].length!==e[_].length)return!1;for(let o=0;o<t[_].length;o++){let s=t[_][o],n=e[_][o];if(!ft.isEqualNode(s,n))return!1}return!0}}var Kb;(function(t){t.attributes="attributes",t.characterData="characterData",t.childList="childList"})(Kb||(Kb={}));var oi=Kb;class Ve{static ownerDocuments=[];static createNode(t,e,...o){if(!e.prototype[m])this.ownerDocuments.push(t);return new e(...o)}static pullOwnerDocument(){return this.ownerDocuments.pop()||null}}class st extends vt{static ELEMENT_NODE=T.elementNode;static ATTRIBUTE_NODE=T.attributeNode;static TEXT_NODE=T.textNode;static CDATA_SECTION_NODE=T.cdataSectionNode;static COMMENT_NODE=T.commentNode;static DOCUMENT_NODE=T.documentNode;static DOCUMENT_TYPE_NODE=T.documentTypeNode;static DOCUMENT_FRAGMENT_NODE=T.documentFragmentNode;static PROCESSING_INSTRUCTION_NODE=T.processingInstructionNode;static DOCUMENT_POSITION_CONTAINED_BY=_o.containedBy;static DOCUMENT_POSITION_CONTAINS=_o.contains;static DOCUMENT_POSITION_DISCONNECTED=_o.disconnect;static DOCUMENT_POSITION_FOLLOWING=_o.following;static DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC=_o.implementationSpecific;static DOCUMENT_POSITION_PRECEDING=_o.preceding;[tt]=!1;[W]=null;[ve]=null;[hr]=null;[ze]=null;[Gt]=null;[Ie]=null;[to]=[];[_]=[];[dt]=[];[Ts]=null;[zo]=null;[U]={querySelector:new Map,querySelectorAll:new Map,matches:new Map,elementsByTagName:new Map,elementsByTagNameNS:new Map,elementByTagName:new Map,elementById:new Map,computedStyle:null};[He]=[];constructor(){super();if(this[m])this[x]=this[m].document;else{let t=Ve.pullOwnerDocument();if(!t)throw TypeError("Illegal constructor");this[x]=t,this[m]=t[m]}}get[Symbol.toStringTag](){return this.constructor.name}get isConnected(){return this[tt]}get ownerDocument(){return this[x]}get parentNode(){return this[W]}get nodeType(){return this[D]}get childNodes(){if(!this[Ts])this[Ts]=new Wo(h,this[_]);return this[Ts]}get textContent(){return""}set textContent(t){}get nodeValue(){return null}set nodeValue(t){}get nodeName(){return""}get previousSibling(){if(this[W]){let t=this[W][_],e=t.indexOf(this[Vt]||this);if(e>0)return t[e-1]}return null}get nextSibling(){if(this[W]){let t=this[W][_],e=t.indexOf(this[Vt]||this);if(e>-1&&e+1<t.length)return t[e+1]}return null}get firstChild(){let t=this[_];if(t.length>0)return t[0];return null}get lastChild(){let t=this[_];if(t.length>0)return t[t.length-1];return null}get parentElement(){let t=this[W];while(t&&t[D]!==T.elementNode)t=t[W];return t}get baseURI(){let t=this[x].querySelector("base");if(t)return t.href;return this[m].location.href}hasChildNodes(){return this[_].length>0}contains(t){if(t===void 0)return!1;let e=this[Vt]||this;return ft.isInclusiveAncestor(e,t)}getRootNode(t){if(this[tt]){if(this[ve]&&!t?.composed)return this[ve];return this[x]}let e=this;while(e[W])e=e[W];return e}cloneNode(t=!1){return this[ht](t)}appendChild(t){if(arguments.length<1)throw new this[m].TypeError("Failed to execute 'appendChild' on 'Node': 1 argument required, but only 0 present");return this[Et](t)}removeChild(t){if(arguments.length<1)throw new this[m].TypeError("Failed to execute 'removeChild' on 'Node': 1 argument required, but only 0 present");return this[ur](t)}insertBefore(t,e){if(arguments.length<2)throw new this[m].TypeError(`Failed to execute 'insertBefore' on 'Node': 2 arguments required, but only ${arguments.length} present.`);return this[kr](t,e)}replaceChild(t,e){if(arguments.length<2)throw new this[m].TypeError(`Failed to execute 'replaceChild' on 'Node': 2 arguments required, but only ${arguments.length} present.`);return this[La](t,e)}[ht](t=!1){let e=Ve.createNode(this[x],this.constructor);if(e[_].length){let o=e[_];while(o.length)e.removeChild(o[0])}if(t)for(let o of this[_]){let s=o.cloneNode(!0);if(s[W]=e,e[_].push(s),s[D]===T.elementNode)e[dt].push(s)}return e}[Et](t,e=!1){if(t[Vt])t=t[Vt];let o=this[Vt]||this;if(!e){if(t===o)throw new this[m].DOMException("Failed to execute 'appendChild' on 'Node': Not possible to append a node as a child of itself.");if(ft.isInclusiveAncestor(t,o,!0))throw new this[m].DOMException("Failed to execute 'appendChild' on 'Node': The new node is a parent of the node to insert to.",w.domException)}if(t[D]===T.documentFragmentNode){let s=t[_];while(s.length)this.appendChild(s[0]);return t}if(t[W])t[W][ur](t);if(t[W]=o,t[Mr](),this[_].push(t),t[D]===T.elementNode)this[dt].push(t);t[zr]();for(let s of this[to])if(s.options?.subtree&&s.callback.deref())t[vl](s);return this[Di](new Ro({target:o,type:oi.childList,addedNodes:[t]})),t}[ur](t){if(t[Vt])t=t[Vt];let e=this[_].indexOf(t);if(e===-1)throw new this[m].DOMException("Failed to execute 'removeChild' on 'Node': The node to be removed is not a child of this node.");let o=t.previousSibling,s=t.nextSibling;if(t[W]=null,t[Mr](),this[_].splice(e,1),t[D]===T.elementNode){let n=this[dt].indexOf(t);if(n!==-1)this[dt].splice(n,1)}if(t[zo]){let n=t[zo][Ui].indexOf(t);if(n!==-1)t[zo][Ui].splice(n,1);t[zo]=null}t[Vi]();for(let n of this[to])if(n.options?.subtree&&n.callback.deref())t[xa](n);return this[Di](new Ro({target:this[Vt]||this,type:oi.childList,removedNodes:[t],previousSibling:o,nextSibling:s})),t}[kr](t,e,o=!1){if(t[Vt])t=t[Vt];if(e&&e[Vt])e=e[Vt];if(t===e)return t;let s=this[Vt]||this;if(!o){if(t===s)throw new this[m].DOMException("Failed to execute 'insertBefore' on 'Node': Not possible to insert a node as a child of itself.");if(ft.isInclusiveAncestor(t,s,!0))throw new this[m].DOMException("Failed to execute 'insertBefore' on 'Node': The new node is a parent of the node to insert to.",w.domException)}if(t[D]===T.documentFragmentNode){let a=t[_];while(a.length>0)this[kr](a[0],e,!0);return t}if(!e)return this[Et](t,!0),t;let n=this[_];if(!n.includes(e))throw new this[m].DOMException("Failed to execute 'insertBefore' on 'Node': The node before which the new node is to be inserted is not a child of this node.");if(t[W])t[W][ur](t);t[W]=s,t[Mr]();let l=n.indexOf(e);if(t[D]===T.elementNode){let a=this[dt];if(e[D]===T.elementNode)a.splice(a.indexOf(e),0,t);else{let y=!1;for(let u=l,c=n.length;u<c;u++)if(n[u][D]===T.elementNode){a.splice(a.indexOf(n[u]),0,t),y=!0;break}if(!y)a.push(t)}}n.splice(l,0,t),t[zr]();for(let a of this[to])if(a.options?.subtree&&a.callback.deref())t[vl](a);return this[Di](new Ro({target:s,type:oi.childList,addedNodes:[t]})),t}[La](t,e){return this.insertBefore(t,e),this.removeChild(e),e}isEqualNode(t){return ft.isEqualNode(this,t)}toString(){return`[object ${this.constructor.name}]`}[vl](t){if(this[to].push(t),t.options.subtree)for(let e of this[_])e[vl](t)}[xa](t){let e=this[to].indexOf(t);if(e!==-1)this[to].splice(e,1);if(t.options.subtree)for(let o of this[_])o[xa](t)}[Di](t){this[Mr]();let e=this[to];if(!e.length)return;for(let o=0,s=e.length;o<s;o++){let n=e[o],l=n.callback.deref();if(l)switch(t.type){case oi.childList:if(n.options.childList)l(t);break;case oi.attributes:if(n.options.attributes&&(!n.options.attributeFilter||n.options.attributeFilter.includes(t.attributeName)))l(t);break;case oi.characterData:if(n.options?.characterData)l(t);break}else e.splice(o,1),o--,s--}}[Mr](){let t=this[U];if(t.querySelector.size){for(let s of t.querySelector.values())if(s.result)s.result=null;t.querySelector=new Map}if(t.querySelectorAll.size){for(let s of t.querySelectorAll.values())if(s.result)s.result=null;t.querySelectorAll=new Map}if(t.matches.size){for(let s of t.matches.values())if(s.result)s.result=null;t.matches=new Map}if(t.elementsByTagName.size){for(let s of t.elementsByTagName.values())if(s.result)s.result=null;t.elementsByTagName=new Map}if(t.elementsByTagNameNS.size){for(let s of t.elementsByTagNameNS.values())if(s.result)s.result=null;t.elementsByTagNameNS=new Map}if(t.elementByTagName.size){for(let s of t.elementByTagName.values())if(s.result)s.result=null;t.elementByTagName=new Map}if(t.elementById.size){for(let s of t.elementById.values())if(s.result)s.result=null;t.elementById=new Map}let e=this[He];if(e.length){for(let s of e)s.result=null;this[He]=[]}let o=this[x];if(o&&o[qo].length){for(let s of o[qo])s.result=null;o[qo]=[]}}[zr](){let t=this[W],e=t||this[Mn],o=!1,s=!1;if(!this[tt]&&e[tt])this[tt]=!0,o=!0;else if(this[tt]&&!e[tt])this[tt]=!1,s=!0;if(this[x]=e[x]||e,this[m]=e[m]||e[Lr],t){if(this[D]!==T.documentFragmentNode)this[ve]=t[ve];let l=this[z];if(t[hr]&&l!=="STYLE")this[hr]=t[hr];if(t[ze]&&l!=="TEXTAREA")this[ze]=t[ze];if(t[Gt]&&l!=="FORM")this[Gt]=t[Gt];if(t[Ie]&&l!=="SELECT")this[Ie]=t[Ie]}let n=this[_].slice();for(let l=0,a=n.length;l<a;l++)n[l][W]=this,n[l][zr]();if(this[be])this[be][zr]();if(o)this[sr]();else if(s)this[nr]()}[Vi](){if(this[D]!==T.documentFragmentNode)this[ve]=null;let t=this[z];if(t!=="STYLE")this[hr]=null;if(t!=="TEXTAREA")this[ze]=null;if(t!=="FORM")this[Gt]=null;if(t!=="SELECT")this[Ie]=null;if(this[tt])this[tt]=!1,this[nr]();let e=this[_].slice();for(let o=0,s=e.length;o<s;o++)e[o][zr]();if(this[be])this[be][Vi]()}[sr](){if(this[be])this[be][sr]()}[nr](){if(this[x][Me]===this)this[x][Mr](),this[x][Me]=null;if(this[be])this[be][nr]()}[At](){super[At](),this[tt]=!1;for(let t=0,e=this[_].length;t<e;t++)this[_][t][At]();this[to]=[],this[W]=null,this[ve]=null,this[hr]=null,this[ze]=null,this[Gt]=null,this[Ie]=null,this[to]=[],this[_]=[],this[dt]=[],this[Ts]=null,this[zo]=null,this[Mr]()}compareDocumentPosition(t){if(this===t)return 0;let e=t,o=this[Vt]||this,s=null,n=null;if(e[D]===T.attributeNode)s=e,e=s[xt];if(o[D]===T.attributeNode){if(n=o,o=n[xt],s!==null&&e!==null&&o===e)for(let ct of o[St][Q].values()){if(ft.isEqualNode(ct,s))return st.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC|st.DOCUMENT_POSITION_PRECEDING;if(ft.isEqualNode(ct,n))return st.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC|st.DOCUMENT_POSITION_FOLLOWING}}let l=[],a=o;while(a){if(a===e)return st.DOCUMENT_POSITION_CONTAINS|st.DOCUMENT_POSITION_PRECEDING;l.push(a),a=a[W]}let y=[],u=e;while(u){if(u===o)return st.DOCUMENT_POSITION_CONTAINED_BY|st.DOCUMENT_POSITION_FOLLOWING;y.push(u),u=u[W]}let c=(ct,ee)=>ct[ct.length-1-ee],d=c(l,0);if(!d||d!==c(y,0))return st.DOCUMENT_POSITION_DISCONNECTED|st.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC|st.DOCUMENT_POSITION_FOLLOWING;let g=0,f=Math.min(l.length,y.length);for(let ct=0;ct<f;++ct){let ee=c(l,ct),Ct=c(y,ct);if(ee!==Ct)break;g=ct}let E=c(l,g),R=0,H=-1,yt=-1,bt=c(l,g+1),Rt=c(y,g+1),lt=(ct)=>{for(let ee of ct){if(lt(ee[_]),ee===bt)H=R;else if(ee===Rt)yt=R;if(H!==-1&&yt!==-1)break;R++}};return lt(E[_]),yt<H?st.DOCUMENT_POSITION_PRECEDING:st.DOCUMENT_POSITION_FOLLOWING}normalize(){let t=this.firstChild;while(t){if(ft.isTextNode(t)){while(ft.isTextNode(t.nextSibling))t.data+=t.nextSibling.data,t.nextSibling.remove();if(!t.data.length){let e=t;t=t.nextSibling,e.remove();continue}}else t.normalize();t=t.nextSibling}}isSameNode(t){return this===t}}st.prototype.ELEMENT_NODE=T.elementNode;st.prototype.ATTRIBUTE_NODE=T.attributeNode;st.prototype.TEXT_NODE=T.textNode;st.prototype.CDATA_SECTION_NODE=T.cdataSectionNode;st.prototype.COMMENT_NODE=T.commentNode;st.prototype.DOCUMENT_NODE=T.documentNode;st.prototype.DOCUMENT_TYPE_NODE=T.documentTypeNode;st.prototype.DOCUMENT_FRAGMENT_NODE=T.documentFragmentNode;st.prototype.PROCESSING_INSTRUCTION_NODE=T.processingInstructionNode;st.prototype.DOCUMENT_POSITION_CONTAINED_BY=_o.containedBy;st.prototype.DOCUMENT_POSITION_CONTAINS=_o.contains;st.prototype.DOCUMENT_POSITION_DISCONNECTED=_o.disconnect;st.prototype.DOCUMENT_POSITION_FOLLOWING=_o.following;st.prototype.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC=_o.implementationSpecific;st.prototype.DOCUMENT_POSITION_PRECEDING=_o.preceding;class tm extends st{[D]=T.attributeNode;[J]=null;[rt]=null;[ot]=null;[Ft]=null;[q]=null;[Nm]=!0;[xt]=null;get specified(){return this[Nm]}get ownerElement(){return this[xt]}get value(){return this[q]}set value(t){this[q]=t}get name(){return this[rt]||""}get localName(){return this[ot]||""}get prefix(){return this[Ft]}get textContent(){return this[q]||""}get namespaceURI(){return this[J]}[ht](t=!1){let e=super[ht](t);return e[J]=this[J],e[rt]=this[rt],e[ot]=this[ot],e[Ft]=this[Ft],e[q]=this[q],e[Nm]=this[Nm],e}}class el{static appendData(t,e){t.data+=e}static deleteData(t,e,o){t.data=t.data.substring(0,e)+t.data.substring(e+o)}static insertData(t,e,o){t.data=t.data.substring(0,e)+o+t.data.substring(e)}static replaceData(t,e,o,s){t.data=t.data.substring(0,e)+s+t.data.substring(e+o)}static substringData(t,e,o){return t.data.substring(e,e+o)}}class rl{static previousElementSibling(t){let e=t.previousSibling;while(e&&e[D]!==T.elementNode)e=e.previousSibling;return e}static nextElementSibling(t){let e=t.nextSibling;while(e&&e[D]!==T.elementNode)e=e.nextSibling;return e}}class ii{static remove(t){if(t[W])t[W].removeChild(t)}static replaceWith(t,...e){let o=t[W];if(!o)return;for(let s of e)if(s instanceof st)o.insertBefore(s,t);else o.insertBefore(o[x].createTextNode(String(s)),t);o.removeChild(t)}static before(t,...e){let o=t[W];if(!o)return;for(let s of e)if(s instanceof st)o.insertBefore(s,t);else o.insertBefore(o[x].createTextNode(String(s)),t)}static after(t,...e){let o=t[W];if(!o)return;let s=t.nextSibling;for(let n of e){let l=n instanceof st?n:o[x].createTextNode(String(n));if(!s)o.appendChild(l);else o.insertBefore(l,s)}}}class bs extends st{[Yt]="";constructor(t){super();this[Yt]=t!==void 0?String(t):""}get length(){return this[Yt].length}get data(){return this[Yt]}set data(t){let e=this[Yt];this[Yt]=String(t),this[Di](new Ro({target:this,type:oi.characterData,oldValue:e}))}get textContent(){return this[Yt]}set textContent(t){this.data=t}get nodeValue(){return this[Yt]}set nodeValue(t){this.textContent=t}get previousElementSibling(){return rl.previousElementSibling(this)}get nextElementSibling(){return rl.nextElementSibling(this)}appendData(t){el.appendData(this,t)}deleteData(t,e){el.deleteData(this,t,e)}insertData(t,e){el.insertData(this,t,e)}replaceData(t,e,o){el.replaceData(this,t,e,o)}substringData(t,e){return el.substringData(this,t,e)}remove(){ii.remove(this)}replaceWith(...t){ii.replaceWith(this,...t)}before(...t){ii.before(this,...t)}after(...t){ii.after(this,...t)}[ht](t=!1){let e=super[ht](t);return e[Yt]=this[Yt],e}}class nn extends st{[D]=T.documentTypeNode;[rt]="";[Fs]="";[Vs]="";get name(){return this[rt]}get publicId(){return this[Fs]}get systemId(){return this[Vs]}get nodeName(){return this.name}toString(){return"[object DocumentType]"}[ht](t=!1){let e=super[ht](t);return e[rt]=this[rt],e[Fs]=this[Fs],e[Vs]=this[Vs],e}}var Qb;(function(t){t.loading="loading",t.interactive="interactive",t.complete="complete"})(Qb||(Qb={}));var uc=Qb;class hc{#t;constructor(t){this.#t=new Xs(t)}waitUntilComplete(){return this.#t.waitUntilComplete()}startTask(){return this.#t.startTask()}endTask(t){this.#t.endTask(t)}destroy(){return this.#t.destroy()}}class ol{[L]=0;[k]=0;[V]=0;[F]=0;constructor(t,e,o,s){this[L]=t!==void 0&&t!==null?Number(t):0,this[k]=e!==void 0&&e!==null?Number(e):0,this[V]=o!==void 0&&o!==null?Number(o):0,this[F]=s!==void 0&&s!==null?Number(s):0}get x(){return this[L]}get y(){return this[k]}get width(){return this[V]}get height(){return this[F]}get top(){return Math.min(this[k],this[k]+this[F])}get right(){return Math.max(this[L],this[L]+this[V])}get bottom(){return Math.max(this[k],this[k]+this[F])}get left(){return Math.min(this[L],this[L]+this[V])}toJSON(){return{x:this.x,y:this.y,width:this.width,height:this.height,top:this.top,right:this.right,bottom:this.bottom,left:this.left}}static fromRect(t){return new ol(t.x,t.y,t.width,t.height)}}class si extends ol{set x(t){this[L]=t}get x(){return this[L]}set y(t){this[k]=t}get y(){return this[k]}set width(t){this[V]=t}get width(){return this[V]}set height(t){this[F]=t}get height(){return this[F]}static fromRect(t){return new si(t.x,t.y,t.width,t.height)}}var IP=/[\t\f\n\r ]+/;class Br{[xt];[Bs];[U]={items:[],attributeValue:""};[Xh];[Vt];constructor(t,e,o,s){if(t!==h)throw TypeError("Illegal constructor");this[xt]=e,this[Bs]=o,this[Xh]=s||[];let n=new fe(this,[Br]),l=new Proxy(this,{get:(a,y)=>{if(y==="length")return a[Er]().length;if(y in a||typeof y==="symbol")return n.bind(y),a[y];let u=Number(y);if(!isNaN(u))return a[Er]()[u]},set(a,y,u){if(n.bind(y),typeof y==="symbol")return a[y]=u,!0;let c=Number(y);if(isNaN(c))a[y]=u;return!0},deleteProperty(a,y){if(typeof y==="symbol")return delete a[y],!0;let u=Number(y);if(isNaN(u))delete a[y];return!0},ownKeys(a){return Object.keys(a[Er]())},has(a,y){if(y in a)return!0;if(typeof y==="symbol")return!1;let u=Number(y);return!isNaN(u)&&u>=0&&u<a[Er]().length},defineProperty(a,y,u){if(n.preventBinding(y),y in a)return Object.defineProperty(a,y,u),!0;return!1},getOwnPropertyDescriptor(a,y){if(y in a||typeof y==="symbol")return;let u=Number(y),c=a[Er]();if(!isNaN(u)&&c[u])return{value:c[u],writable:!1,enumerable:!0,configurable:!0}}});return this[Vt]=l,l}get length(){return this[Er]().length}set value(t){this[xt].setAttribute(this[Bs],t)}get value(){return this[xt].getAttribute(this[Bs])||""}[Symbol.iterator](){return this[Er]().values()}item(t){let e=this[Er]();if(typeof t==="number")return e[t]?e[t]:null;return t=Number(t),t=isNaN(t)?0:t,e[t]?e[t]:null}replace(t,e){let o=this[Er]().slice(),s=o.indexOf(t);if(s===-1)return!1;return o[s]=e,this[xt].setAttribute(this[Bs],o.join(" ")),!0}supports(t){return this[Xh].includes(t)}values(){return this[Er]().values()}entries(){return this[Er]().entries()}forEach(t,e){let o=e??this[xt][m],s=this[Er](),n=this[Vt]??this;for(let l=0,a=s.length;l<a;l++)t.call(o,s[l],l,n)}keys(){return this[Er]().keys()}add(...t){let e=this[Er]().slice(),o=new Set(e);for(let s of t)if(!o.has(s))o.add(s),e.push(s);this[xt].setAttribute(this[Bs],e.join(" "))}remove(...t){let e=this[Er](),o=new Set(t),s=e.filter((n)=>!o.has(n));this[xt].setAttribute(this[Bs],s.join(" "))}contains(t){return this[Er]().includes(t)}toggle(t,e){let o;if(e!==void 0)o=e;else o=!this.contains(t);if(o)return this.add(t),!0;return this.remove(t),!1}[Er](){let t=this[xt].getAttribute(this[Bs])??"",e=this[U];if(e.attributeValue===t)return e.items;let o=[],s=t.trim();if(s){for(let n of s.split(IP))if(!o.includes(n))o.push(n)}return e.attributeValue=t,e.items=o,o}toString(){return this.value||""}}class de{[Nl];constructor(t,e){if(t!==h)throw TypeError("Illegal constructor");this[Nl]=e;let o=new fe(this,this.constructor!==de?[this.constructor,de]:[de]);return new Proxy(this,{get:(s,n)=>{if(n==="length")return e().length;if(n in s||typeof n==="symbol")return o.bind(n),s[n];let l=Number(n);if(!isNaN(l))return e()[l];return s.namedItem(n)||void 0},set(s,n,l){if(o.bind(n),typeof n==="symbol")return s[n]=l,!0;let a=Number(n);if(isNaN(a))s[n]=l;return!0},deleteProperty(s,n){if(typeof n==="symbol")return delete s[n],!0;let l=Number(n);if(isNaN(l))delete s[n];return!0},ownKeys(){let s=[],n=e();for(let l=0;l<n.length;l++){let a=n[l],y=a.getAttribute("id")||a.getAttribute("name");if(s.push(String(l)),y)s.push(y)}return s},has(s,n){if(n in s)return!0;let l=e(),a=Number(n);if(!isNaN(a)&&a>=0&&a<l.length)return!0;n=String(n);for(let y=0;y<l.length;y++){let u=l[y],c=u.getAttribute("id")||u.getAttribute("name");if(c&&c===n)return!0}return!1},defineProperty(s,n,l){if(o.preventBinding(n),n in s)return Object.defineProperty(s,n,l),!0;return!1},getOwnPropertyDescriptor(s,n){if(n in s||typeof n==="symbol")return;let l=e(),a=Number(n);if(!isNaN(a)&&a>=0&&a<l.length)return{value:l[a],writable:!1,enumerable:!0,configurable:!0};for(let y=0;y<l.length;y++){let u=l[y],c=u.getAttribute("id")||u.getAttribute("name");if(c&&c===n)return{value:u,writable:!1,enumerable:!0,configurable:!0}}}})}get length(){return this[Nl]().length}get[Symbol.toStringTag](){return this.constructor.name}toLocaleString(){return`[object ${this.constructor.name}]`}toString(){return`[object ${this.constructor.name}]`}item(t){let e=this[Nl]();return t>=0&&e[t]?e[t]:null}[Symbol.iterator](){return this[Nl]()[Symbol.iterator]()}namedItem(t){let e=this[Nl]();t=String(t);for(let o of e)if(o.getAttribute("id")===t||o.getAttribute("name")===t)return o;return null}}class oe{static append(t,...e){for(let o of e)if(o instanceof st)t.appendChild(o);else t.appendChild(t[x].createTextNode(String(o)))}static prepend(t,...e){let o=t.firstChild;for(let s of e)if(s instanceof st)t.insertBefore(s,o);else t.insertBefore(t[x].createTextNode(String(s)),o)}static replaceChildren(t,...e){let o=t[_];while(o.length)t.removeChild(o[0]);this.append(t,...e)}static getElementsByClassName(t,e){return new de(h,()=>mt.querySelectorAll(t,`.${e.replace(/\s+/gm,".")}`)[Q])}static getElementsByTagName(t,e){let o=e.toUpperCase(),s=e==="*",n=(a,y)=>{let u=[];for(let c of a[dt]){if(s||c[z].toUpperCase()===o)u.push(c);c[He].push(y);for(let d of n(c,y))u.push(d)}return u};return new de(h,()=>{let a=t[U].elementsByTagName,y=a.get(e);if(y?.result){let d=y.result.deref();if(d)return d}let u={result:null},c=n(t,u);return u.result=new WeakRef(c),a.set(e,u),c})}static getElementsByTagNameNS(t,e,o){let s=e===Ut.html&&t[x][xe]==="text/html"?o.toUpperCase():o,n=o==="*",l=(y,u)=>{let c=[];for(let d of y[dt]){if((n||d[z]===s)&&d[J]===e)c.push(d);d[He].push(u);for(let g of l(d,u))c.push(g)}return c};return new de(h,()=>{let y=t[U].elementsByTagNameNS,u=y.get(o);if(u?.result){let g=u.result.deref();if(g)return g}let c={result:null},d=l(t,c);return c.result=new WeakRef(d),y.set(o,c),d})}static getElementByTagName(t,e){let o=e.toUpperCase(),s=(u,c)=>{for(let d of u[dt]){if(d[He].push(c),d[z]===o)return d;let g=s(d,c);if(g)return g}return null},n=t[U].elementByTagName,l=n.get(e);if(l?.result){let u=l.result.deref();if(u)return u}let a={result:null},y=s(t,a);return a.result=y?new WeakRef(y):{deref:()=>null},n.set(e,a),y}static getElementById(t,e){if(e=String(e),t[D]===st.DOCUMENT_NODE){let y=t[Pi].get(e);if(y&&y.elements.length>0)return y.elements[0];return null}let o=(y,u)=>{for(let c of y[dt]){if(c[He].push(u),c.getAttribute("id")===e)return c;let d=o(c,u);if(d)return d}return null},s=t[U].elementById,n=s.get(e);if(n?.result){let y=n.result.deref();if(y)return y}let l={result:null},a=o(t,l);return l.result=a?new WeakRef(a):{deref:()=>null},s.set(e,l),a}}class em extends Array{constructor(t){super();if(t!==1&&t!==h)throw TypeError("Illegal constructor")}item(t){return this[t]??null}}class ln{[fi]=new Map;[Hr]=new Map;[Q]=new Map;constructor(t){this[xt]=t}get length(){return this[Q].size}get[Symbol.toStringTag](){return"NamedNodeMap"}toString(){return"[object NamedNodeMap]"}[Symbol.iterator](){return this[Q].values()}item(t){let e=Array.from(this[Q].values());return t>=0&&e[t]?e[t]:null}getNamedItem(t){if(t=String(t),this[xt][J]===Ut.html&&this[xt][x][xe]==="text/html")return this[Hr].get(Vr.asciiLowerCase(t))?.[0]||null;return this[Hr].get(t)?.[0]||null}getNamedItemNS(t,e){let o=this[fi].get(`${t||""}:${e}`);if(o&&(!o[Ft]||o[J]))return o;return null}setNamedItem(t){return this[$o](t)}setNamedItemNS(t){return this[$o](t)}removeNamedItem(t){let e=this.getNamedItem(t);if(!e)throw new this[xt][m].DOMException(`Failed to execute 'removeNamedItem' on 'NamedNodeMap': No item with name '${t}' was found.`,w.notFoundError);return this[Ds](e),e}removeNamedItemNS(t,e){let o=this.getNamedItemNS(t,e);if(!o)throw new this[xt][m].DOMException(`Failed to execute 'removeNamedItemNS' on 'NamedNodeMap': No item with name '${e}' in namespace '${t}' was found.`,w.notFoundError);return this[Ds](o),o}[$o](t,e=!1){if(t[xt]!==null&&t[xt]!==this[xt])throw new this[xt][m].DOMException("The attribute is in use.",w.inUseAttributeError);t[xt]=this[xt];let o=this.getNamedItemNS(t[J],t[ot])||null,s=this[Hr].get(t[rt]);if(o===t)return t;if(this[fi].set(`${t[J]||""}:${t[ot]}`,t),this[Q].set(`${t[J]||""}:${t[rt]}`,t),!s?.length)this[Hr].set(t[rt],[t]);else{let n=s.indexOf(o);if(n!==-1)s.splice(n,1);s.push(t)}if(!e)this[xt][Re](t,o);return o}[Ds](t,e=!1){t[xt]=null,this[fi].delete(`${t[J]||""}:${t[ot]}`),this[Q].delete(`${t[J]||""}:${t[rt]}`);let o=this[Hr].get(t[rt]);if(o?.length){let s=o.indexOf(t);if(s!==-1)o.splice(s,1);if(!o.length)this[Hr].delete(t[rt])}if(!e)this[xt][cr](t)}}class cc{static createProxy(t){let e=new fe(this,[ln]);return new Proxy(t,{get:(o,s)=>{if(s==="length")return t[Q].size;if(s in o||typeof s==="symbol")return e.bind(s),o[s];let n=Number(s);if(!isNaN(n))return o.item(n);return o.getNamedItem(s)||void 0},set(o,s,n){if(e.bind(s),typeof s==="symbol")return o[s]=n,!0;let l=Number(s);if(isNaN(l))o[s]=n;return!0},deleteProperty(o,s){if(typeof s==="symbol")return delete o[s],!0;let n=Number(s);if(isNaN(n))delete o[s];return!0},ownKeys(){let o=Array.from(t[Q].keys());for(let s=0,n=t[Q].size;s<n;s++)o.push(String(s));return o},has(o,s){if(typeof s==="symbol")return!1;if(s in o||t[Q].has(s))return!0;let n=Number(s);if(!isNaN(n)&&n>=0&&n<t[Q].size)return!0;return!1},defineProperty(o,s,n){if(e.preventBinding(s),s in o)return Object.defineProperty(o,s,n),!0;return!1},getOwnPropertyDescriptor(o,s){if(s in o||typeof s==="symbol")return;let n=Number(s);if(!isNaN(n)){if(n>=0){let a=o.item(n);if(a)return{value:a,writable:!1,enumerable:!0,configurable:!0}}return}let l=t[Q].get(s);if(l)return{value:l,writable:!1,enumerable:!0,configurable:!0}}})}}var jb;(function(t){t.rawText="rawText",t.noSelfDescendants="noSelfDescendants",t.noFirstLevelSelfDescendants="noFirstLevelSelfDescendants",t.noForbiddenFirstLevelDescendants="noForbiddenFirstLevelDescendants",t.noDescendants="noDescendants",t.permittedDescendants="permittedDescendants",t.textOrComments="textOrComments",t.anyDescendants="anyDescendants"})(jb||(jb={}));var G=jb;var $e={a:{className:"HTMLAnchorElement",contentModel:G.noSelfDescendants},abbr:{className:"HTMLElement",contentModel:G.anyDescendants},address:{className:"HTMLElement",contentModel:G.anyDescendants},area:{className:"HTMLAreaElement",contentModel:G.noDescendants},article:{className:"HTMLElement",contentModel:G.anyDescendants},aside:{className:"HTMLElement",contentModel:G.anyDescendants},audio:{className:"HTMLAudioElement",contentModel:G.anyDescendants},b:{className:"HTMLElement",contentModel:G.anyDescendants},base:{className:"HTMLBaseElement",contentModel:G.noDescendants},bdi:{className:"HTMLElement",contentModel:G.anyDescendants},bdo:{className:"HTMLElement",contentModel:G.anyDescendants},body:{className:"HTMLBodyElement",contentModel:G.anyDescendants},template:{className:"HTMLTemplateElement",contentModel:G.anyDescendants},form:{className:"HTMLFormElement",contentModel:G.anyDescendants},input:{className:"HTMLInputElement",contentModel:G.noDescendants},textarea:{className:"HTMLTextAreaElement",contentModel:G.anyDescendants},script:{className:"HTMLScriptElement",contentModel:G.rawText},img:{className:"HTMLImageElement",contentModel:G.noDescendants},link:{className:"HTMLLinkElement",contentModel:G.noDescendants},style:{className:"HTMLStyleElement",contentModel:G.rawText},label:{className:"HTMLLabelElement",contentModel:G.anyDescendants},slot:{className:"HTMLSlotElement",contentModel:G.anyDescendants},meta:{className:"HTMLMetaElement",contentModel:G.noDescendants},blockquote:{className:"HTMLQuoteElement",contentModel:G.anyDescendants},br:{className:"HTMLBRElement",contentModel:G.noDescendants},button:{className:"HTMLButtonElement",contentModel:G.anyDescendants},canvas:{className:"HTMLCanvasElement",contentModel:G.anyDescendants},caption:{className:"HTMLTableCaptionElement",contentModel:G.noForbiddenFirstLevelDescendants,forbiddenDescendants:["table","tbody","thead","tfoot","tr","td","th","col","colgroup"],permittedParents:["table"]},cite:{className:"HTMLElement",contentModel:G.anyDescendants},code:{className:"HTMLElement",contentModel:G.anyDescendants},col:{className:"HTMLTableColElement",contentModel:G.noDescendants,permittedParents:["colgroup"]},colgroup:{className:"HTMLTableColElement",contentModel:G.permittedDescendants,permittedDescendants:["col"]},data:{className:"HTMLDataElement",contentModel:G.anyDescendants},datalist:{className:"HTMLDataListElement",contentModel:G.anyDescendants},dd:{className:"HTMLElement",contentModel:G.noForbiddenFirstLevelDescendants,forbiddenDescendants:["dt","dd"]},del:{className:"HTMLModElement",contentModel:G.anyDescendants},details:{className:"HTMLDetailsElement",contentModel:G.anyDescendants},dfn:{className:"HTMLElement",contentModel:G.anyDescendants},dialog:{className:"HTMLDialogElement",contentModel:G.anyDescendants},div:{className:"HTMLDivElement",contentModel:G.anyDescendants},dl:{className:"HTMLDListElement",contentModel:G.anyDescendants},dt:{className:"HTMLElement",contentModel:G.noForbiddenFirstLevelDescendants,forbiddenDescendants:["dt","dd"]},em:{className:"HTMLElement",contentModel:G.anyDescendants},embed:{className:"HTMLEmbedElement",contentModel:G.noDescendants},fieldset:{className:"HTMLFieldSetElement",contentModel:G.anyDescendants},figcaption:{className:"HTMLElement",contentModel:G.anyDescendants},figure:{className:"HTMLElement",contentModel:G.anyDescendants},footer:{className:"HTMLElement",contentModel:G.anyDescendants},h1:{className:"HTMLHeadingElement",contentModel:G.noFirstLevelSelfDescendants},h2:{className:"HTMLHeadingElement",contentModel:G.noFirstLevelSelfDescendants},h3:{className:"HTMLHeadingElement",contentModel:G.noFirstLevelSelfDescendants},h4:{className:"HTMLHeadingElement",contentModel:G.noFirstLevelSelfDescendants},h5:{className:"HTMLHeadingElement",contentModel:G.noFirstLevelSelfDescendants},h6:{className:"HTMLHeadingElement",contentModel:G.noFirstLevelSelfDescendants},head:{className:"HTMLHeadElement",contentModel:G.anyDescendants},header:{className:"HTMLElement",contentModel:G.anyDescendants},hgroup:{className:"HTMLElement",contentModel:G.anyDescendants},hr:{className:"HTMLHRElement",contentModel:G.noDescendants},html:{className:"HTMLHtmlElement",contentModel:G.anyDescendants},i:{className:"HTMLElement",contentModel:G.anyDescendants},iframe:{className:"HTMLIFrameElement",contentModel:G.anyDescendants},ins:{className:"HTMLModElement",contentModel:G.anyDescendants},kbd:{className:"HTMLElement",contentModel:G.anyDescendants},legend:{className:"HTMLLegendElement",contentModel:G.anyDescendants},li:{className:"HTMLLIElement",contentModel:G.noFirstLevelSelfDescendants},main:{className:"HTMLElement",contentModel:G.anyDescendants},map:{className:"HTMLMapElement",contentModel:G.anyDescendants},mark:{className:"HTMLElement",contentModel:G.anyDescendants},menu:{className:"HTMLMenuElement",contentModel:G.anyDescendants},meter:{className:"HTMLMeterElement",contentModel:G.anyDescendants},nav:{className:"HTMLElement",contentModel:G.anyDescendants},noscript:{className:"HTMLElement",contentModel:G.anyDescendants},object:{className:"HTMLObjectElement",contentModel:G.anyDescendants},ol:{className:"HTMLOListElement",contentModel:G.anyDescendants},optgroup:{className:"HTMLOptGroupElement",contentModel:G.noFirstLevelSelfDescendants},option:{className:"HTMLOptionElement",contentModel:G.noForbiddenFirstLevelDescendants,forbiddenDescendants:["option","optgroup"]},output:{className:"HTMLOutputElement",contentModel:G.anyDescendants},p:{className:"HTMLParagraphElement",contentModel:G.noForbiddenFirstLevelDescendants,forbiddenDescendants:["address","article","aside","blockquote","details","dialog","div","dl","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","main","menu","nav","ol","p","pre","section","table","ul"]},param:{className:"HTMLParamElement",contentModel:G.noDescendants},picture:{className:"HTMLPictureElement",contentModel:G.anyDescendants},pre:{className:"HTMLPreElement",contentModel:G.anyDescendants},progress:{className:"HTMLProgressElement",contentModel:G.anyDescendants},q:{className:"HTMLQuoteElement",contentModel:G.anyDescendants},rb:{className:"HTMLElement",contentModel:G.anyDescendants},rp:{className:"HTMLElement",contentModel:G.noForbiddenFirstLevelDescendants,forbiddenDescendants:["rp","rt"]},rt:{className:"HTMLElement",contentModel:G.noForbiddenFirstLevelDescendants,forbiddenDescendants:["rp","rt"]},rtc:{className:"HTMLElement",contentModel:G.anyDescendants},ruby:{className:"HTMLElement",contentModel:G.anyDescendants},s:{className:"HTMLElement",contentModel:G.anyDescendants},samp:{className:"HTMLElement",contentModel:G.anyDescendants},section:{className:"HTMLElement",contentModel:G.anyDescendants},select:{className:"HTMLSelectElement",contentModel:G.anyDescendants},small:{className:"HTMLElement",contentModel:G.anyDescendants},source:{className:"HTMLSourceElement",contentModel:G.noDescendants},span:{className:"HTMLSpanElement",contentModel:G.anyDescendants},strong:{className:"HTMLElement",contentModel:G.anyDescendants},sub:{className:"HTMLElement",contentModel:G.anyDescendants},summary:{className:"HTMLElement",contentModel:G.anyDescendants},sup:{className:"HTMLElement",contentModel:G.anyDescendants},table:{className:"HTMLTableElement",contentModel:G.permittedDescendants,permittedDescendants:["caption","colgroup","thead","tfoot","tbody"],moveForbiddenDescendant:{exclude:[]}},tbody:{className:"HTMLTableSectionElement",contentModel:G.permittedDescendants,permittedDescendants:["tr"],permittedParents:["table"],moveForbiddenDescendant:{exclude:["caption","colgroup","thead","tfoot","tbody"]}},td:{className:"HTMLTableCellElement",contentModel:G.noForbiddenFirstLevelDescendants,forbiddenDescendants:["td","th","tr","tbody","tfoot","thead"],permittedParents:["tr"]},tfoot:{className:"HTMLTableSectionElement",contentModel:G.permittedDescendants,permittedDescendants:["tr"],permittedParents:["table"],moveForbiddenDescendant:{exclude:["caption","colgroup","thead","tfoot","tbody"]}},th:{className:"HTMLTableCellElement",contentModel:G.noForbiddenFirstLevelDescendants,forbiddenDescendants:["td","th","tr","tbody","tfoot","thead"],permittedParents:["tr"]},thead:{className:"HTMLTableSectionElement",contentModel:G.permittedDescendants,permittedDescendants:["tr"],permittedParents:["table"],moveForbiddenDescendant:{exclude:["caption","colgroup","thead","tfoot","tbody"]}},time:{className:"HTMLTimeElement",contentModel:G.anyDescendants},title:{className:"HTMLTitleElement",contentModel:G.anyDescendants},tr:{className:"HTMLTableRowElement",contentModel:G.permittedDescendants,permittedDescendants:["td","th"],permittedParents:["tbody","tfoot","thead"],addPermittedParent:"tbody",moveForbiddenDescendant:{exclude:["caption","colgroup","thead","tfoot","tbody","tr"]}},track:{className:"HTMLTrackElement",contentModel:G.noDescendants},u:{className:"HTMLElement",contentModel:G.anyDescendants},ul:{className:"HTMLUListElement",contentModel:G.anyDescendants},var:{className:"HTMLElement",contentModel:G.anyDescendants},video:{className:"HTMLVideoElement",contentModel:G.anyDescendants},wbr:{className:"HTMLElement",contentModel:G.noDescendants}};var qb,RP=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]),iS=(qb=String.fromCodePoint)!==null&&qb!==void 0?qb:(t)=>{let e="";if(t>65535)t-=65536,e+=String.fromCharCode(t>>>10&1023|55296),t=56320|t&1023;return e+=String.fromCharCode(t),e};function sS(t){var e;if(t>=55296&&t<=57343||t>1114111)return 65533;return(e=RP.get(t))!==null&&e!==void 0?e:t}function dc(t){let e=typeof atob==="function"?atob(t):typeof Buffer.from==="function"?Buffer.from(t,"base64").toString("binary"):new Buffer(t,"base64").toString("binary"),o=e.length&-2,s=new Uint16Array(o/2);for(let n=0,l=0;n<o;n+=2){let a=e.charCodeAt(n),y=e.charCodeAt(n+1);s[l++]=a|y<<8}return s}var nS=dc("QR08ALkAAgH6AYsDNQR2BO0EPgXZBQEGLAbdBxMISQrvCmQLfQurDKQNLw4fD4YPpA+6D/IPAAAAAAAAAAAAAAAAKhBMEY8TmxUWF2EYLBkxGuAa3RsJHDscWR8YIC8jSCSIJcMl6ie3Ku8rEC0CLjoupS7kLgAIRU1hYmNmZ2xtbm9wcnN0dVQAWgBeAGUAaQBzAHcAfgCBAIQAhwCSAJoAoACsALMAbABpAGcAO4DGAMZAUAA7gCYAJkBjAHUAdABlADuAwQDBQHIiZXZlAAJhAAFpeW0AcgByAGMAO4DCAMJAEGRyAADgNdgE3XIAYQB2AGUAO4DAAMBA8CFoYZFj4SFjcgBhZAAAoFMqAAFncIsAjgBvAG4ABGFmAADgNdg43fAlbHlGdW5jdGlvbgCgYSBpAG4AZwA7gMUAxUAAAWNzpACoAHIAAOA12Jzc6SFnbgCgVCJpAGwAZABlADuAwwDDQG0AbAA7gMQAxEAABGFjZWZvcnN1xQDYANoA7QDxAPYA+QD8AAABY3LJAM8AayNzbGFzaAAAoBYidgHTANUAAKDnKmUAZAAAoAYjeQARZIABY3J0AOAA5QDrAGEidXNlAACgNSLuI291bGxpcwCgLCFhAJJjcgAA4DXYBd1wAGYAAOA12Dnd5SF2ZdhiYwDyAOoAbSJwZXEAAKBOIgAHSE9hY2RlZmhpbG9yc3UXARoBHwE6AVIBVQFiAWQBZgGCAakB6QHtAfIBYwB5ACdkUABZADuAqQCpQIABY3B5ACUBKAE1AfUhdGUGYWmg0iJ0KGFsRGlmZmVyZW50aWFsRAAAoEUhbCJleXMAAKAtIQACYWVpb0EBRAFKAU0B8iFvbgxhZABpAGwAO4DHAMdAcgBjAAhhbiJpbnQAAKAwIm8AdAAKYQABZG5ZAV0BaSJsbGEAuGB0I2VyRG90ALdg8gA5AWkAp2NyImNsZQAAAkRNUFRwAXQBeQF9AW8AdAAAoJkiaSJudXMAAKCWIuwhdXMAoJUiaSJtZXMAAKCXIm8AAAFjc4cBlAFrKndpc2VDb250b3VySW50ZWdyYWwAAKAyImUjQ3VybHkAAAFEUZwBpAFvJXVibGVRdW90ZQAAoB0gdSJvdGUAAKAZIAACbG5wdbABtgHNAdgBbwBuAGWgNyIAoHQqgAFnaXQAvAHBAcUB8iJ1ZW50AKBhIm4AdAAAoC8i7yV1ckludGVncmFsAKAuIgABZnLRAdMBAKACIe8iZHVjdACgECJuLnRlckNsb2Nrd2lzZUNvbnRvdXJJbnRlZ3JhbAAAoDMi7yFzcwCgLypjAHIAAOA12J7ccABDoNMiYQBwAACgTSKABURKU1phY2VmaW9zAAsCEgIVAhgCGwIsAjQCOQI9AnMCfwNvoEUh9CJyYWhkAKARKWMAeQACZGMAeQAFZGMAeQAPZIABZ3JzACECJQIoAuchZXIAoCEgcgAAoKEhaAB2AACg5CoAAWF5MAIzAvIhb24OYRRkbAB0oAciYQCUY3IAAOA12AfdAAFhZkECawIAAWNtRQJnAvIjaXRpY2FsAAJBREdUUAJUAl8CYwJjInV0ZQC0YG8AdAFZAloC2WJiJGxlQWN1dGUA3WJyImF2ZQBgYGkibGRlANxi7yFuZACgxCJmJWVyZW50aWFsRAAAoEYhcAR9AgAAAAAAAIECjgIAABoDZgAA4DXYO91EoagAhQKJAm8AdAAAoNwgcSJ1YWwAAKBQIuIhbGUAA0NETFJVVpkCqAK1Au8C/wIRA28AbgB0AG8AdQByAEkAbgB0AGUAZwByAGEA7ADEAW8AdAKvAgAAAACwAqhgbiNBcnJvdwAAoNMhAAFlb7kC0AJmAHQAgAFBUlQAwQLGAs0CciJyb3cAAKDQIekkZ2h0QXJyb3cAoNQhZQDlACsCbgBnAAABTFLWAugC5SFmdAABQVLcAuECciJyb3cAAKD4J+kkZ2h0QXJyb3cAoPon6SRnaHRBcnJvdwCg+SdpImdodAAAAUFU9gL7AnIicm93AACg0iFlAGUAAKCoInAAQQIGAwAAAAALA3Iicm93AACg0SFvJHduQXJyb3cAAKDVIWUlcnRpY2FsQmFyAACgJSJuAAADQUJMUlRhJAM2AzoDWgNxA3oDciJyb3cAAKGTIUJVLAMwA2EAcgAAoBMpcCNBcnJvdwAAoPUhciJldmUAEWPlIWZ00gJDAwAASwMAAFIDaSVnaHRWZWN0b3IAAKBQKWUkZVZlY3RvcgAAoF4p5SJjdG9yQqC9IWEAcgAAoFYpaSJnaHQA1AFiAwAAaQNlJGVWZWN0b3IAAKBfKeUiY3RvckKgwSFhAHIAAKBXKWUAZQBBoKQiciJyb3cAAKCnIXIAcgBvAPcAtAIAAWN0gwOHA3IAAOA12J/c8iFvaxBhAAhOVGFjZGZnbG1vcHFzdHV4owOlA6kDsAO/A8IDxgPNA9ID8gP9AwEEFAQeBCAEJQRHAEphSAA7gNAA0EBjAHUAdABlADuAyQDJQIABYWl5ALYDuQO+A/Ihb24aYXIAYwA7gMoAykAtZG8AdAAWYXIAAOA12AjdcgBhAHYAZQA7gMgAyEDlIm1lbnQAoAgiAAFhcNYD2QNjAHIAEmF0AHkAUwLhAwAAAADpA20lYWxsU3F1YXJlAACg+yVlJ3J5U21hbGxTcXVhcmUAAKCrJQABZ3D2A/kDbwBuABhhZgAA4DXYPN3zImlsb26VY3UAAAFhaQYEDgRsAFSgdSppImxkZQAAoEIi7CNpYnJpdW0AoMwhAAFjaRgEGwRyAACgMCFtAACgcyphAJdjbQBsADuAywDLQAABaXApBC0E8yF0cwCgAyLvJG5lbnRpYWxFAKBHIYACY2Zpb3MAPQQ/BEMEXQRyBHkAJGRyAADgNdgJ3WwibGVkAFMCTAQAAAAAVARtJWFsbFNxdWFyZQAAoPwlZSdyeVNtYWxsU3F1YXJlAACgqiVwA2UEAABpBAAAAABtBGYAAOA12D3dwSFsbACgACLyI2llcnRyZgCgMSFjAPIAcQQABkpUYWJjZGZnb3JzdIgEiwSOBJMElwSkBKcEqwStBLIE5QTqBGMAeQADZDuAPgA+QO0hbWFkoJMD3GNyImV2ZQAeYYABZWl5AJ0EoASjBOQhaWwiYXIAYwAcYRNkbwB0ACBhcgAA4DXYCt0AoNkicABmAADgNdg+3eUiYXRlcgADRUZHTFNUvwTIBM8E1QTZBOAEcSJ1YWwATKBlIuUhc3MAoNsidSRsbEVxdWFsAACgZyJyI2VhdGVyAACgoirlIXNzAKB3IuwkYW50RXF1YWwAoH4qaSJsZGUAAKBzImMAcgAA4DXYotwAoGsiAARBYWNmaW9zdfkE/QQFBQgFCwUTBSIFKwVSIkRjeQAqZAABY3QBBQQFZQBrAMdiXmDpIXJjJGFyAACgDCFsJWJlcnRTcGFjZQAAoAsh8AEYBQAAGwVmAACgDSHpJXpvbnRhbExpbmUAoAAlAAFjdCYFKAXyABIF8iFvayZhbQBwAEQBMQU5BW8AdwBuAEgAdQBtAPAAAAFxInVhbAAAoE8iAAdFSk9hY2RmZ21ub3N0dVMFVgVZBVwFYwVtBXAFcwV6BZAFtgXFBckFzQVjAHkAFWTsIWlnMmFjAHkAAWRjAHUAdABlADuAzQDNQAABaXlnBWwFcgBjADuAzgDOQBhkbwB0ADBhcgAAoBEhcgBhAHYAZQA7gMwAzEAAoREhYXB/BYsFAAFjZ4MFhQVyACphaSNuYXJ5SQAAoEghbABpAGUA8wD6AvQBlQUAAKUFZaAsIgABZ3KaBZ4F8iFhbACgKyLzI2VjdGlvbgCgwiJpI3NpYmxlAAABQ1SsBbEFbyJtbWEAAKBjIGkibWVzAACgYiCAAWdwdAC8Bb8FwwVvAG4ALmFmAADgNdhA3WEAmWNjAHIAAKAQIWkibGRlAChh6wHSBQAA1QVjAHkABmRsADuAzwDPQIACY2Zvc3UA4QXpBe0F8gX9BQABaXnlBegFcgBjADRhGWRyAADgNdgN3XAAZgAA4DXYQd3jAfcFAAD7BXIAAOA12KXc8iFjeQhk6yFjeQRkgANISmFjZm9zAAwGDwYSBhUGHQYhBiYGYwB5ACVkYwB5AAxk8CFwYZpjAAFleRkGHAbkIWlsNmEaZHIAAOA12A7dcABmAADgNdhC3WMAcgAA4DXYptyABUpUYWNlZmxtb3N0AD0GQAZDBl4GawZkB2gHcAd0B80H2gdjAHkACWQ7gDwAPECAAmNtbnByAEwGTwZSBlUGWwb1IXRlOWHiIWRhm2NnAACg6ifsI2FjZXRyZgCgEiFyAACgniGAAWFleQBkBmcGagbyIW9uPWHkIWlsO2EbZAABZnNvBjQHdAAABUFDREZSVFVWYXKABp4GpAbGBssG3AYDByEHwQIqBwABbnKEBowGZyVsZUJyYWNrZXQAAKDoJ/Ihb3cAoZAhQlKTBpcGYQByAACg5CHpJGdodEFycm93AKDGIWUjaWxpbmcAAKAII28A9QGqBgAAsgZiJWxlQnJhY2tldAAAoOYnbgDUAbcGAAC+BmUkZVZlY3RvcgAAoGEp5SJjdG9yQqDDIWEAcgAAoFkpbCJvb3IAAKAKI2kiZ2h0AAABQVbSBtcGciJyb3cAAKCUIeUiY3RvcgCgTikAAWVy4AbwBmUAAKGjIkFW5gbrBnIicm93AACgpCHlImN0b3IAoFopaSNhbmdsZQBCorIi+wYAAAAA/wZhAHIAAKDPKXEidWFsAACgtCJwAIABRFRWAAoHEQcYB+8kd25WZWN0b3IAoFEpZSRlVmVjdG9yAACgYCnlImN0b3JCoL8hYQByAACgWCnlImN0b3JCoLwhYQByAACgUilpAGcAaAB0AGEAcgByAG8A9wDMAnMAAANFRkdMU1Q/B0cHTgdUB1gHXwfxJXVhbEdyZWF0ZXIAoNoidSRsbEVxdWFsAACgZiJyI2VhdGVyAACgdiLlIXNzAKChKuwkYW50RXF1YWwAoH0qaSJsZGUAAKByInIAAOA12A/dZaDYIuYjdGFycm93AKDaIWkiZG90AD9hgAFucHcAege1B7kHZwAAAkxSbHKCB5QHmwerB+UhZnQAAUFSiAeNB3Iicm93AACg9SfpJGdodEFycm93AKD3J+kkZ2h0QXJyb3cAoPYn5SFmdAABYXLcAqEHaQBnAGgAdABhAHIAcgBvAPcA5wJpAGcAaAB0AGEAcgByAG8A9wDuAmYAAOA12EPdZQByAAABTFK/B8YHZSRmdEFycm93AACgmSHpJGdodEFycm93AKCYIYABY2h0ANMH1QfXB/IAWgYAoLAh8iFva0FhAKBqIgAEYWNlZmlvc3XpB+wH7gf/BwMICQgOCBEIcAAAoAUpeQAcZAABZGzyB/kHaSR1bVNwYWNlAACgXyBsI2ludHJmAACgMyFyAADgNdgQ3e4jdXNQbHVzAKATInAAZgAA4DXYRN1jAPIA/gecY4AESmFjZWZvc3R1ACEIJAgoCDUIgQiFCDsKQApHCmMAeQAKZGMidXRlAENhgAFhZXkALggxCDQI8iFvbkdh5CFpbEVhHWSAAWdzdwA7CGEIfQjhInRpdmWAAU1UVgBECEwIWQhlJWRpdW1TcGFjZQAAoAsgaABpAAABY25SCFMIawBTAHAAYQBjAOUASwhlAHIAeQBUAGgAaQDuAFQI9CFlZAABR0xnCHUIcgBlAGEAdABlAHIARwByAGUAYQB0AGUA8gDrBGUAcwBzAEwAZQBzAPMA2wdMImluZQAKYHIAAOA12BHdAAJCbnB0jAiRCJkInAhyImVhawAAoGAgwiZyZWFraW5nU3BhY2WgYGYAAKAVIUOq7CqzCMIIzQgAAOcIGwkAAAAAAAAtCQAAbwkAAIcJAACdCcAJGQoAADQKAAFvdbYIvAjuI2dydWVudACgYiJwIkNhcAAAoG0ibyh1YmxlVmVydGljYWxCYXIAAKAmIoABbHF4ANII1wjhCOUibWVudACgCSL1IWFsVKBgImkibGRlAADgQiI4A2kic3RzAACgBCJyI2VhdGVyAACjbyJFRkdMU1T1CPoIAgkJCQ0JFQlxInVhbAAAoHEidSRsbEVxdWFsAADgZyI4A3IjZWF0ZXIAAOBrIjgD5SFzcwCgeSLsJGFudEVxdWFsAOB+KjgDaSJsZGUAAKB1IvUhbXBEASAJJwnvI3duSHVtcADgTiI4A3EidWFsAADgTyI4A2UAAAFmczEJRgn0JFRyaWFuZ2xlQqLqIj0JAAAAAEIJYQByAADgzyk4A3EidWFsAACg7CJzAICibiJFR0xTVABRCVYJXAlhCWkJcSJ1YWwAAKBwInIjZWF0ZXIAAKB4IuUhc3MA4GoiOAPsJGFudEVxdWFsAOB9KjgDaSJsZGUAAKB0IuUic3RlZAABR0x1CX8J8iZlYXRlckdyZWF0ZXIA4KIqOAPlI3NzTGVzcwDgoSo4A/IjZWNlZGVzAKGAIkVTjwmVCXEidWFsAADgryo4A+wkYW50RXF1YWwAoOAiAAFlaaAJqQl2JmVyc2VFbGVtZW50AACgDCLnJWh0VHJpYW5nbGVCousitgkAAAAAuwlhAHIAAODQKTgDcSJ1YWwAAKDtIgABcXXDCeAJdSNhcmVTdQAAAWJwywnVCfMhZXRF4I8iOANxInVhbAAAoOIi5SJyc2V0ReCQIjgDcSJ1YWwAAKDjIoABYmNwAOYJ8AkNCvMhZXRF4IIi0iBxInVhbAAAoIgi4yJlZWRzgKGBIkVTVAD6CQAKBwpxInVhbAAA4LAqOAPsJGFudEVxdWFsAKDhImkibGRlAADgfyI4A+UicnNldEXggyLSIHEidWFsAACgiSJpImxkZQCAoUEiRUZUACIKJwouCnEidWFsAACgRCJ1JGxsRXF1YWwAAKBHImkibGRlAACgSSJlJXJ0aWNhbEJhcgAAoCQiYwByAADgNdip3GkAbABkAGUAO4DRANFAnWMAB0VhY2RmZ21vcHJzdHV2XgphCmgKcgp2CnoKgQqRCpYKqwqtCrsKyArNCuwhaWdSYWMAdQB0AGUAO4DTANNAAAFpeWwKcQpyAGMAO4DUANRAHmRiImxhYwBQYXIAAOA12BLdcgBhAHYAZQA7gNIA0kCAAWFlaQCHCooKjQpjAHIATGFnAGEAqWNjInJvbgCfY3AAZgAA4DXYRt3lI25DdXJseQABRFGeCqYKbyV1YmxlUXVvdGUAAKAcIHUib3RlAACgGCAAoFQqAAFjbLEKtQpyAADgNdiq3GEAcwBoADuA2ADYQGkAbAHACsUKZABlADuA1QDVQGUAcwAAoDcqbQBsADuA1gDWQGUAcgAAAUJQ0wrmCgABYXLXCtoKcgAAoD4gYQBjAAABZWvgCuIKAKDeI2UAdAAAoLQjYSVyZW50aGVzaXMAAKDcI4AEYWNmaGlsb3JzAP0KAwsFCwkLCwsMCxELIwtaC3IjdGlhbEQAAKACInkAH2RyAADgNdgT3WkApmOgY/Ujc01pbnVzsWAAAWlwFQsgC24AYwBhAHIAZQBwAGwAYQBuAOUACgVmAACgGSGAobsqZWlvACoLRQtJC+MiZWRlc4CheiJFU1QANAs5C0ALcSJ1YWwAAKCvKuwkYW50RXF1YWwAoHwiaSJsZGUAAKB+Im0AZQAAoDMgAAFkcE0LUQv1IWN0AKAPIm8jcnRpb24AYaA3ImwAAKAdIgABY2leC2ILcgAA4DXYq9yoYwACVWZvc2oLbwtzC3cLTwBUADuAIgAiQHIAAOA12BTdcABmAACgGiFjAHIAAOA12KzcAAZCRWFjZWZoaW9yc3WPC5MLlwupC7YL2AvbC90LhQyTDJoMowzhIXJyAKAQKUcAO4CuAK5AgAFjbnIAnQugC6ML9SF0ZVRhZwAAoOsncgB0oKAhbAAAoBYpgAFhZXkArwuyC7UL8iFvblhh5CFpbFZhIGR2oBwhZSJyc2UAAAFFVb8LzwsAAWxxwwvIC+UibWVudACgCyL1JGlsaWJyaXVtAKDLIXAmRXF1aWxpYnJpdW0AAKBvKXIAAKAcIW8AoWPnIWh0AARBQ0RGVFVWYewLCgwQDDIMNwxeDHwM9gIAAW5y8Av4C2clbGVCcmFja2V0AACg6SfyIW93AKGSIUJM/wsDDGEAcgAAoOUhZSRmdEFycm93AACgxCFlI2lsaW5nAACgCSNvAPUBFgwAAB4MYiVsZUJyYWNrZXQAAKDnJ24A1AEjDAAAKgxlJGVWZWN0b3IAAKBdKeUiY3RvckKgwiFhAHIAAKBVKWwib29yAACgCyMAAWVyOwxLDGUAAKGiIkFWQQxGDHIicm93AACgpiHlImN0b3IAoFspaSNhbmdsZQBCorMiVgwAAAAAWgxhAHIAAKDQKXEidWFsAACgtSJwAIABRFRWAGUMbAxzDO8kd25WZWN0b3IAoE8pZSRlVmVjdG9yAACgXCnlImN0b3JCoL4hYQByAACgVCnlImN0b3JCoMAhYQByAACgUykAAXB1iQyMDGYAAKAdIe4kZEltcGxpZXMAoHAp6SRnaHRhcnJvdwCg2yEAAWNongyhDHIAAKAbIQCgsSHsJGVEZWxheWVkAKD0KYAGSE9hY2ZoaW1vcXN0dQC/DMgMzAzQDOIM5gwKDQ0NFA0ZDU8NVA1YDQABQ2PDDMYMyCFjeSlkeQAoZEYiVGN5ACxkYyJ1dGUAWmEAorwqYWVpedgM2wzeDOEM8iFvbmBh5CFpbF5hcgBjAFxhIWRyAADgNdgW3e8hcnQAAkRMUlXvDPYM/QwEDW8kd25BcnJvdwAAoJMhZSRmdEFycm93AACgkCHpJGdodEFycm93AKCSIXAjQXJyb3cAAKCRIechbWGjY+EkbGxDaXJjbGUAoBgicABmAADgNdhK3XICHw0AAAAAIg10AACgGiLhIXJlgKGhJUlTVQAqDTINSg3uJXRlcnNlY3Rpb24AoJMidQAAAWJwNw1ADfMhZXRFoI8icSJ1YWwAAKCRIuUicnNldEWgkCJxInVhbAAAoJIibiJpb24AAKCUImMAcgAA4DXYrtxhAHIAAKDGIgACYmNtcF8Nag2ODZANc6DQImUAdABFoNAicSJ1YWwAAKCGIgABY2huDYkNZSJlZHMAgKF7IkVTVAB4DX0NhA1xInVhbAAAoLAq7CRhbnRFcXVhbACgfSJpImxkZQAAoH8iVABoAGEA9ADHCwCgESIAodEiZXOVDZ8NciJzZXQARaCDInEidWFsAACghyJlAHQAAKDRIoAFSFJTYWNmaGlvcnMAtQ27Db8NyA3ODdsN3w3+DRgOHQ4jDk8AUgBOADuA3gDeQMEhREUAoCIhAAFIY8MNxg1jAHkAC2R5ACZkAAFidcwNzQ0JYKRjgAFhZXkA1A3XDdoN8iFvbmRh5CFpbGJhImRyAADgNdgX3QABZWnjDe4N8gHoDQAA7Q3lImZvcmUAoDQiYQCYYwABY27yDfkNayNTcGFjZQAA4F8gCiDTInBhY2UAoAkg7CFkZYChPCJFRlQABw4MDhMOcSJ1YWwAAKBDInUkbGxFcXVhbAAAoEUiaSJsZGUAAKBIInAAZgAA4DXYS93pI3BsZURvdACg2yAAAWN0Jw4rDnIAAOA12K/c8iFva2Zh4QpFDlYOYA5qDgAAbg5yDgAAAAAAAAAAAAB5DnwOqA6zDgAADg8RDxYPGg8AAWNySA5ODnUAdABlADuA2gDaQHIAb6CfIeMhaXIAoEkpcgDjAVsOAABdDnkADmR2AGUAbGEAAWl5Yw5oDnIAYwA7gNsA20AjZGIibGFjAHBhcgAA4DXYGN1yAGEAdgBlADuA2QDZQOEhY3JqYQABZGl/Dp8OZQByAAABQlCFDpcOAAFhcokOiw5yAF9gYQBjAAABZWuRDpMOAKDfI2UAdAAAoLUjYSVyZW50aGVzaXMAAKDdI28AbgBQoMMi7CF1cwCgjiIAAWdwqw6uDm8AbgByYWYAAOA12EzdAARBREVUYWRwc78O0g7ZDuEOBQPqDvMOBw9yInJvdwDCoZEhyA4AAMwOYQByAACgEilvJHduQXJyb3cAAKDFIW8kd25BcnJvdwAAoJUhcSV1aWxpYnJpdW0AAKBuKWUAZQBBoKUiciJyb3cAAKClIW8AdwBuAGEAcgByAG8A9wAQA2UAcgAAAUxS+Q4AD2UkZnRBcnJvdwAAoJYh6SRnaHRBcnJvdwCglyFpAGyg0gNvAG4ApWPpIW5nbmFjAHIAAOA12LDcaSJsZGUAaGFtAGwAO4DcANxAgAREYmNkZWZvc3YALQ8xDzUPNw89D3IPdg97D4AP4SFzaACgqyJhAHIAAKDrKnkAEmThIXNobKCpIgCg5ioAAWVyQQ9DDwCgwSKAAWJ0eQBJD00Paw9hAHIAAKAWIGmgFiDjIWFsAAJCTFNUWA9cD18PZg9hAHIAAKAjIukhbmV8YGUkcGFyYXRvcgAAoFgnaSJsZGUAAKBAItQkaGluU3BhY2UAoAogcgAA4DXYGd1wAGYAAOA12E3dYwByAADgNdix3GQiYXNoAACgqiKAAmNlZm9zAI4PkQ+VD5kPng/pIXJjdGHkIWdlAKDAInIAAOA12BrdcABmAADgNdhO3WMAcgAA4DXYstwAAmZpb3OqD64Prw+0D3IAAOA12BvdnmNwAGYAAOA12E/dYwByAADgNdiz3IAEQUlVYWNmb3N1AMgPyw/OD9EP2A/gD+QP6Q/uD2MAeQAvZGMAeQAHZGMAeQAuZGMAdQB0AGUAO4DdAN1AAAFpedwP3w9yAGMAdmErZHIAAOA12BzdcABmAADgNdhQ3WMAcgAA4DXYtNxtAGwAeGEABEhhY2RlZm9z/g8BEAUQDRAQEB0QIBAkEGMAeQAWZGMidXRlAHlhAAFheQkQDBDyIW9ufWEXZG8AdAB7YfIBFRAAABwQbwBXAGkAZAB0AOgAVAhhAJZjcgAAoCghcABmAACgJCFjAHIAAOA12LXc4QtCEEkQTRAAAGcQbRByEAAAAAAAAAAAeRCKEJcQ8hD9EAAAGxEhETIROREAAD4RYwB1AHQAZQA7gOEA4UByImV2ZQADYYCiPiJFZGl1eQBWEFkQWxBgEGUQAOA+IjMDAKA/InIAYwA7gOIA4kB0AGUAO4C0ALRAMGRsAGkAZwA7gOYA5kByoGEgAOA12B7dcgBhAHYAZQA7gOAA4EAAAWVwfBCGEAABZnCAEIQQ8yF5bQCgNSHoAIMQaABhALFjAAFhcI0QWwAAAWNskRCTEHIAAWFnAACgPypkApwQAAAAALEQAKInImFkc3ajEKcQqRCuEG4AZAAAoFUqAKBcKmwib3BlAACgWCoAoFoqAKMgImVsbXJzersQvRDAEN0Q5RDtEACgpCllAACgICJzAGQAYaAhImEEzhDQENIQ1BDWENgQ2hDcEACgqCkAoKkpAKCqKQCgqykAoKwpAKCtKQCgrikAoK8pdAB2oB8iYgBkoL4iAKCdKQABcHTpEOwQaAAAoCIixWDhIXJyAKB8IwABZ3D1EPgQbwBuAAVhZgAA4DXYUt0Ao0giRWFlaW9wBxEJEQ0RDxESERQRAKBwKuMhaXIAoG8qAKBKImQAAKBLInMAJ2DyIW94ZaBIIvEADhFpAG4AZwA7gOUA5UCAAWN0eQAmESoRKxFyAADgNdi23CpgbQBwAGWgSCLxAPgBaQBsAGQAZQA7gOMA40BtAGwAO4DkAORAAAFjaUERRxFvAG4AaQBuAPQA6AFuAHQAAKARKgAITmFiY2RlZmlrbG5vcHJzdWQRaBGXEZ8RpxGrEdIR1hErEjASexKKEn0RThNbE3oTbwB0AACg7SoAAWNybBGJEWsAAAJjZXBzdBF4EX0RghHvIW5nAKBMInAjc2lsb24A9mNyImltZQAAoDUgaQBtAGWgPSJxAACgzSJ2AY0RkRFlAGUAAKC9ImUAZABnoAUjZQAAoAUjcgBrAHSgtSPiIXJrAKC2IwABb3mjEaYRbgDnAHcRMWTxIXVvAKAeIIACY21wcnQAtBG5Eb4RwRHFEeEhdXPloDUi5ABwInR5dgAAoLApcwDpAH0RbgBvAPUA6gCAAWFodwDLEcwRzhGyYwCgNiHlIWVuAKBsInIAAOA12B/dZwCAA2Nvc3R1dncA4xHyEQUSEhIhEiYSKRKAAWFpdQDpEesR7xHwAKMFcgBjAACg7yVwAACgwyKAAWRwdAD4EfwRABJvAHQAAKAAKuwhdXMAoAEqaSJtZXMAAKACKnECCxIAAAAADxLjIXVwAKAGKmEAcgAAoAUm8iNpYW5nbGUAAWR1GhIeEu8hd24AoL0lcAAAoLMlcCJsdXMAAKAEKmUA5QBCD+UAkg9hInJvdwAAoA0pgAFha28ANhJoEncSAAFjbjoSZRJrAIABbHN0AEESRxJNEm8jemVuZ2UAAKDrKXEAdQBhAHIA5QBcBPIjaWFuZ2xlgKG0JWRscgBYElwSYBLvIXduAKC+JeUhZnQAoMIlaSJnaHQAAKC4JWsAAKAjJLEBbRIAAHUSsgFxEgAAcxIAoJIlAKCRJTQAAKCTJWMAawAAoIglAAFlb38ShxJx4D0A5SD1IWl2AOBhIuUgdAAAoBAjAAJwdHd4kRKVEpsSnxJmAADgNdhT3XSgpSJvAG0AAKClIvQhaWUAoMgiAAZESFVWYmRobXB0dXayEsES0RLgEvcS+xIKExoTHxMjEygTNxMAAkxSbHK5ErsSvRK/EgCgVyUAoFQlAKBWJQCgUyUAolAlRFVkdckSyxLNEs8SAKBmJQCgaSUAoGQlAKBnJQACTFJsctgS2hLcEt4SAKBdJQCgWiUAoFwlAKBZJQCjUSVITFJobHLrEu0S7xLxEvMS9RIAoGwlAKBjJQCgYCUAoGslAKBiJQCgXyVvAHgAAKDJKQACTFJscgITBBMGEwgTAKBVJQCgUiUAoBAlAKAMJQCiACVEVWR1EhMUExYTGBMAoGUlAKBoJQCgLCUAoDQlaSJudXMAAKCfIuwhdXMAoJ4iaSJtZXMAAKCgIgACTFJsci8TMRMzEzUTAKBbJQCgWCUAoBglAKAUJQCjAiVITFJobHJCE0QTRhNIE0oTTBMAoGolAKBhJQCgXiUAoDwlAKAkJQCgHCUAAWV2UhNVE3YA5QD5AGIAYQByADuApgCmQAACY2Vpb2ITZhNqE24TcgAA4DXYt9xtAGkAAKBPIG0A5aA9IogRbAAAoVwAYmh0E3YTAKDFKfMhdWIAoMgnbAF+E4QTbABloCIgdAAAoCIgcAAAoU4iRWWJE4sTAKCuKvGgTyI8BeEMqRMAAN8TABQDFB8UAAAjFDQUAAAAAIUUAAAAAI0UAAAAANcU4xT3FPsUAACIFQAAlhWAAWNwcgCuE7ET1RP1IXRlB2GAoikiYWJjZHMAuxO/E8QTzhPSE24AZAAAoEQqciJjdXAAAKBJKgABYXXIE8sTcAAAoEsqcAAAoEcqbwB0AACgQCoA4CkiAP4AAWVv2RPcE3QAAKBBIO4ABAUAAmFlaXXlE+8T9RP4E/AB6hMAAO0TcwAAoE0qbwBuAA1hZABpAGwAO4DnAOdAcgBjAAlhcABzAHOgTCptAACgUCpvAHQAC2GAAWRtbgAIFA0UEhRpAGwAO4C4ALhAcCJ0eXYAAKCyKXQAAIGiADtlGBQZFKJAcgBkAG8A9ABiAXIAAOA12CDdgAFjZWkAKBQqFDIUeQBHZGMAawBtoBMn4SFyawCgEyfHY3IAAKPLJUVjZWZtcz8UQRRHFHcUfBSAFACgwykAocYCZWxGFEkUcQAAoFciZQBhAlAUAAAAAGAUciJyb3cAAAFsclYUWhTlIWZ0AKC6IWkiZ2h0AACguyGAAlJTYWNkAGgUaRRrFG8UcxSuYACgyCRzAHQAAKCbIukhcmMAoJoi4SFzaACgnSJuImludAAAoBAqaQBkAACg7yrjIWlyAKDCKfUhYnN1oGMmaQB0AACgYybsApMUmhS2FAAAwxRvAG4AZaA6APGgVCKrAG0CnxQAAAAAoxRhAHSgLABAYAChASJmbKcUqRTuABMNZQAAAW14rhSyFOUhbnQAoAEiZQDzANIB5wG6FAAAwBRkoEUibwB0AACgbSpuAPQAzAGAAWZyeQDIFMsUzhQA4DXYVN1vAOQA1wEAgakAO3MeAdMUcgAAoBchAAFhb9oU3hRyAHIAAKC1IXMAcwAAoBcnAAFjdeYU6hRyAADgNdi43AABYnDuFPIUZaDPKgCg0SploNAqAKDSKuQhb3QAoO8igANkZWxwcnZ3AAYVEBUbFSEVRBVlFYQV4SFycgABbHIMFQ4VAKA4KQCgNSlwAhYVAAAAABkVcgAAoN4iYwAAoN8i4SFycnCgtiEAoD0pgKIqImJjZG9zACsVMBU6FT4VQRVyImNhcAAAoEgqAAFhdTQVNxVwAACgRipwAACgSipvAHQAAKCNInIAAKBFKgDgKiIA/gACYWxydksVURVuFXMVcgByAG2gtyEAoDwpeQCAAWV2dwBYFWUVaRVxAHACXxUAAAAAYxVyAGUA4wAXFXUA4wAZFWUAZQAAoM4iZSJkZ2UAAKDPImUAbgA7gKQApEBlI2Fycm93AAABbHJ7FX8V5SFmdACgtiFpImdodAAAoLchZQDkAG0VAAFjaYsVkRVvAG4AaQBuAPQAkwFuAHQAAKAxImwiY3R5AACgLSOACUFIYWJjZGVmaGlqbG9yc3R1d3oAuBW7Fb8V1RXgFegV+RUKFhUWHxZUFlcWZRbFFtsW7xb7FgUXChdyAPIAtAJhAHIAAKBlKQACZ2xyc8YVyhXOFdAV5yFlcgCgICDlIXRoAKA4IfIA9QxoAHagECAAoKMiawHZFd4VYSJyb3cAAKAPKWEA4wBfAgABYXnkFecV8iFvbg9hNGQAoUYhYW/tFfQVAAFnciEC8RVyAACgyiF0InNlcQAAoHcqgAFnbG0A/xUCFgUWO4CwALBAdABhALRjcCJ0eXYAAKCxKQABaXIOFhIW8yFodACgfykA4DXYId1hAHIAAAFschsWHRYAoMMhAKDCIYACYWVnc3YAKBauAjYWOhY+Fm0AAKHEIm9zLhY0Fm4AZABzoMQi9SFpdACgZiZhIm1tYQDdY2kAbgAAoPIiAKH3AGlvQxZRFmQAZQAAgfcAO29KFksW90BuI3RpbWVzAACgxyJuAPgAUBZjAHkAUmRjAG8CXhYAAAAAYhZyAG4AAKAeI28AcAAAoA0jgAJscHR1dwBuFnEWdRaSFp4W7CFhciRgZgAA4DXYVd0AotkCZW1wc30WhBaJFo0WcQBkoFAibwB0AACgUSJpIm51cwAAoDgi7CF1cwCgFCLxInVhcmUAoKEiYgBsAGUAYgBhAHIAdwBlAGQAZwDlANcAbgCAAWFkaAClFqoWtBZyAHIAbwD3APUMbwB3AG4AYQByAHIAbwB3APMA8xVhI3Jwb29uAAABbHK8FsAWZQBmAPQAHBZpAGcAaAD0AB4WYgHJFs8WawBhAHIAbwD3AJILbwLUFgAAAADYFnIAbgAAoB8jbwBwAACgDCOAAWNvdADhFukW7BYAAXJ55RboFgDgNdi53FVkbAAAoPYp8iFvaxFhAAFkcvMW9xZvAHQAAKDxImkA5qC/JVsSAAFhaP8WAhdyAPIANQNhAPIA1wvhIm5nbGUAoKYpAAFjaQ4XEBd5AF9k5yJyYXJyAKD/JwAJRGFjZGVmZ2xtbm9wcXJzdHV4MRc4F0YXWxcyBF4XaRd5F40XrBe0F78X2RcVGCEYLRg1GEAYAAFEbzUXgRZvAPQA+BUAAWNzPBdCF3UAdABlADuA6QDpQPQhZXIAoG4qAAJhaW95TRdQF1YXWhfyIW9uG2FyAGOgViI7gOoA6kDsIW9uAKBVIk1kbwB0ABdhAAFEcmIXZhdvAHQAAKBSIgDgNdgi3XKhmipuF3QXYQB2AGUAO4DoAOhAZKCWKm8AdAAAoJgqgKGZKmlscwCAF4UXhxfuInRlcnMAoOcjAKATIWSglSpvAHQAAKCXKoABYXBzAJMXlheiF2MAcgATYXQAeQBzogUinxcAAAAAoRdlAHQAAKAFInAAMaADIDMBqRerFwCgBCAAoAUgAAFnc7AXsRdLYXAAAKACIAABZ3C4F7sXbwBuABlhZgAA4DXYVt2AAWFscwDFF8sXzxdyAHOg1SJsAACg4yl1AHMAAKBxKmkAAKG1A2x21RfYF28AbgC1Y/VjAAJjc3V24BfoF/0XEBgAAWlv5BdWF3IAYwAAoFYiaQLuFwAAAADwF+0ADQThIW50AAFnbPUX+Rd0AHIAAKCWKuUhc3MAoJUqgAFhZWkAAxgGGAoYbABzAD1gcwB0AACgXyJ2AESgYSJEAACgeCrwImFyc2wAoOUpAAFEYRkYHRhvAHQAAKBTInIAcgAAoHEpgAFjZGkAJxgqGO0XcgAAoC8hbwD0AIwCAAFhaDEYMhi3YzuA8ADwQAABbXI5GD0YbAA7gOsA60BvAACgrCCAAWNpcABGGEgYSxhsACFgcwD0ACwEAAFlb08YVxhjAHQAYQB0AGkAbwDuABoEbgBlAG4AdABpAGEAbADlADME4Ql1GAAAgRgAAIMYiBgAAAAAoRilGAAAqhgAALsYvhjRGAAA1xgnGWwAbABpAG4AZwBkAG8AdABzAGUA8QBlF3kARGRtImFsZQAAoEAmgAFpbHIAjRiRGJ0Y7CFpZwCgA/tpApcYAAAAAJoYZwAAoAD7aQBnAACgBPsA4DXYI93sIWlnAKAB++whaWcA4GYAagCAAWFsdACvGLIYthh0AACgbSZpAGcAAKAC+24AcwAAoLElbwBmAJJh8AHCGAAAxhhmAADgNdhX3QABYWvJGMwYbADsAGsEdqDUIgCg2SphI3J0aW50AACgDSoAAWFv2hgiGQABY3PeGB8ZsQPnGP0YBRkSGRUZAAAdGbID7xjyGPQY9xj5GAAA+xg7gL0AvUAAoFMhO4C8ALxAAKBVIQCgWSEAoFshswEBGQAAAxkAoFQhAKBWIbQCCxkOGQAAAAAQGTuAvgC+QACgVyEAoFwhNQAAoFghtgEZGQAAGxkAoFohAKBdITgAAKBeIWwAAKBEIHcAbgAAoCIjYwByAADgNdi73IAIRWFiY2RlZmdpamxub3JzdHYARhlKGVoZXhlmGWkZkhmWGZkZnRmgGa0ZxhnLGc8Z4BkjGmygZyIAoIwqgAFjbXAAUBlTGVgZ9SF0ZfVhbQBhAOSgswM6FgCghipyImV2ZQAfYQABaXliGWUZcgBjAB1hM2RvAHQAIWGAoWUibHFzAMYEcBl6GfGhZSLOBAAAdhlsAGEAbgD0AN8EgKF+KmNkbACBGYQZjBljAACgqSpvAHQAb6CAKmyggioAoIQqZeDbIgD+cwAAoJQqcgAA4DXYJN3noGsirATtIWVsAKA3IWMAeQBTZIChdyJFYWoApxmpGasZAKCSKgCgpSoAoKQqAAJFYWVztBm2Gb0ZwhkAoGkicABwoIoq8iFveACgiipxoIgq8aCIKrUZaQBtAACg5yJwAGYAAOA12FjdYQB2AOUAYwIAAWNp0xnWGXIAAKAKIW0AAKFzImVs3BneGQCgjioAoJAqAIM+ADtjZGxxco0E6xn0GfgZ/BkBGgABY2nvGfEZAKCnKnIAAKB6Km8AdAAAoNci0CFhcgCglSl1ImVzdAAAoHwqgAJhZGVscwAKGvQZFhrVBCAa8AEPGgAAFBpwAHIAbwD4AFkZcgAAoHgpcQAAAWxxxAQbGmwAZQBzAPMASRlpAO0A5AQAAWVuJxouGnIjdG5lcXEAAOBpIgD+xQAsGgAFQWFiY2Vma29zeUAaQxpmGmoabRqDGocalhrCGtMacgDyAMwCAAJpbG1yShpOGlAaVBpyAHMA8ABxD2YAvWBpAGwA9AASBQABZHJYGlsaYwB5AEpkAKGUIWN3YBpkGmkAcgAAoEgpAKCtIWEAcgAAoA8h6SFyYyVhgAFhbHIAcxp7Gn8a8iF0c3WgZSZpAHQAAKBlJuwhaXAAoCYg4yFvbgCguSJyAADgNdgl3XMAAAFld4wakRphInJvdwAAoCUpYSJyb3cAAKAmKYACYW1vcHIAnxqjGqcauhq+GnIAcgAAoP8h9CFodACgOyJrAAABbHKsGrMaZSRmdGFycm93AACgqSHpJGdodGFycm93AKCqIWYAAOA12Fnd4iFhcgCgFSCAAWNsdADIGswa0BpyAADgNdi93GEAcwDoAGka8iFvaydhAAFicNca2xr1IWxsAKBDIOghZW4AoBAg4Qr2GgAA/RoAAAgbExsaGwAAIRs7GwAAAAA+G2IbmRuVG6sbAACyG80b0htjAHUAdABlADuA7QDtQAChYyBpeQEbBhtyAGMAO4DuAO5AOGQAAWN4CxsNG3kANWRjAGwAO4ChAKFAAAFmcssCFhsA4DXYJt1yAGEAdgBlADuA7ADsQIChSCFpbm8AJxsyGzYbAAFpbisbLxtuAHQAAKAMKnQAAKAtIuYhaW4AoNwpdABhAACgKSHsIWlnM2GAAWFvcABDG1sbXhuAAWNndABJG0sbWRtyACthgAFlbHAAcQVRG1UbaQBuAOUAyAVhAHIA9AByBWgAMWFmAACgtyJlAGQAtWEAoggiY2ZvdGkbbRt1G3kb4SFyZQCgBSFpAG4AdKAeImkAZQAAoN0pZABvAPQAWxsAoisiY2VscIEbhRuPG5QbYQBsAACguiIAAWdyiRuNG2UAcgDzACMQ4wCCG2EicmhrAACgFyryIW9kAKA8KgACY2dwdJ8boRukG6gbeQBRZG8AbgAvYWYAAOA12FrdYQC5Y3UAZQBzAHQAO4C/AL9AAAFjabUbuRtyAADgNdi+3G4AAKIIIkVkc3bCG8QbyBvQAwCg+SJvAHQAAKD1Inag9CIAoPMiaaBiIOwhZGUpYesB1hsAANkbYwB5AFZkbAA7gO8A70AAA2NmbW9zdeYb7hvyG/Ub+hsFHAABaXnqG+0bcgBjADVhOWRyAADgNdgn3eEhdGg3YnAAZgAA4DXYW93jAf8bAAADHHIAAOA12L/c8iFjeVhk6yFjeVRkAARhY2ZnaGpvcxUcGhwiHCYcKhwtHDAcNRzwIXBhdqC6A/BjAAFleR4cIRzkIWlsN2E6ZHIAAOA12CjdciJlZW4AOGFjAHkARWRjAHkAXGRwAGYAAOA12FzdYwByAADgNdjA3IALQUJFSGFiY2RlZmdoamxtbm9wcnN0dXYAXhxtHHEcdRx5HN8cBx0dHTwd3B3tHfEdAR4EHh0eLB5FHrwewx7hHgkfPR9LH4ABYXJ0AGQcZxxpHHIA8gBvB/IAxQLhIWlsAKAbKeEhcnIAoA4pZ6BmIgCgiyphAHIAAKBiKWMJjRwAAJAcAACVHAAAAAAAAAAAAACZHJwcAACmHKgcrRwAANIc9SF0ZTph7SJwdHl2AKC0KXIAYQDuAFoG4iFkYbtjZwAAoegnZGyhHKMcAKCRKeUAiwYAoIUqdQBvADuAqwCrQHIAgKOQIWJmaGxwc3QAuhy/HMIcxBzHHMoczhxmoOQhcwAAoB8pcwAAoB0p6wCyGnAAAKCrIWwAAKA5KWkAbQAAoHMpbAAAoKIhAKGrKmFl1hzaHGkAbAAAoBkpc6CtKgDgrSoA/oABYWJyAOUc6RztHHIAcgAAoAwpcgBrAACgcicAAWFr8Rz4HGMAAAFla/Yc9xx7YFtgAAFlc/wc/hwAoIspbAAAAWR1Ax0FHQCgjykAoI0pAAJhZXV5Dh0RHRodHB3yIW9uPmEAAWRpFR0YHWkAbAA8YewAowbiAPccO2QAAmNxcnMkHScdLB05HWEAAKA2KXUAbwDyoBwgqhEAAWR1MB00HeghYXIAoGcpcyJoYXIAAKBLKWgAAKCyIQCiZCJmZ3FzRB1FB5Qdnh10AIACYWhscnQATh1WHWUdbB2NHXIicm93AHSgkCFhAOkAzxxhI3Jwb29uAAABZHVeHWId7yF3bgCgvSFwAACgvCHlJGZ0YXJyb3dzAKDHIWkiZ2h0AIABYWhzAHUdex2DHXIicm93APOglCGdBmEAcgBwAG8AbwBuAPMAzgtxAHUAaQBnAGEAcgByAG8A9wBlGugkcmVldGltZXMAoMsi8aFkIk0HAACaHWwAYQBuAPQAXgcAon0qY2Rnc6YdqR2xHbcdYwAAoKgqbwB0AG+gfypyoIEqAKCDKmXg2iIA/nMAAKCTKoACYWRlZ3MAwB3GHcod1h3ZHXAAcAByAG8A+ACmHG8AdAAAoNYicQAAAWdxzx3SHXQA8gBGB2cAdADyAHQcdADyAFMHaQDtAGMHgAFpbHIA4h3mHeod8yFodACgfClvAG8A8gDKBgDgNdgp3UWgdiIAoJEqYQH1Hf4dcgAAAWR1YB35HWygvCEAoGopbABrAACghCVjAHkAWWQAomoiYWNodAweDx4VHhkecgDyAGsdbwByAG4AZQDyAGAW4SFyZACgaylyAGkAAKD6JQABaW8hHiQe5CFvdEBh9SFzdGGgsCPjIWhlAKCwIwACRWFlczMeNR48HkEeAKBoInAAcKCJKvIhb3gAoIkqcaCHKvGghyo0HmkAbQAAoOYiAARhYm5vcHR3elIeXB5fHoUelh6mHqsetB4AAW5yVh5ZHmcAAKDsJ3IAAKD9IXIA6wCwBmcAgAFsbXIAZh52Hnse5SFmdAABYXKIB2weaQBnAGgAdABhAHIAcgBvAPcAkwfhInBzdG8AoPwnaQBnAGgAdABhAHIAcgBvAPcAmgdwI2Fycm93AAABbHKNHpEeZQBmAPQAxhxpImdodAAAoKwhgAFhZmwAnB6fHqIecgAAoIUpAOA12F3ddQBzAACgLSppIm1lcwAAoDQqYQGvHrMecwB0AACgFyLhAIoOZaHKJbkeRhLuIWdlAKDKJWEAcgBsoCgAdAAAoJMpgAJhY2htdADMHs8e1R7bHt0ecgDyAJ0GbwByAG4AZQDyANYWYQByAGSgyyEAoG0pAKAOIHIAaQAAoL8iAANhY2hpcXTrHu8e1QfzHv0eBh/xIXVvAKA5IHIAAOA12MHcbQDloXIi+h4AAPweAKCNKgCgjyoAAWJ19xwBH28AcqAYIACgGiDyIW9rQmEAhDwAO2NkaGlscXJCBhcfxh0gHyQfKB8sHzEfAAFjaRsfHR8AoKYqcgAAoHkqcgBlAOUAkx3tIWVzAKDJIuEhcnIAoHYpdSJlc3QAAKB7KgABUGk1HzkfYQByAACglillocMlAgdfEnIAAAFkdUIfRx9zImhhcgAAoEop6CFhcgCgZikAAWVuTx9WH3IjdG5lcXEAAOBoIgD+xQBUHwAHRGFjZGVmaGlsbm9wc3VuH3Ifoh+rH68ftx+7H74f5h/uH/MfBwj/HwsgxCFvdACgOiIAAmNscHJ5H30fiR+eH3IAO4CvAK9AAAFldIEfgx8AoEImZaAgJ3MAZQAAoCAnc6CmIXQAbwCAoaYhZGx1AJQfmB+cH28AdwDuAHkDZQBmAPQA6gbwAOkO6yFlcgCgriUAAW95ph+qH+0hbWEAoCkqPGThIXNoAKAUIOElc3VyZWRhbmdsZQCgISJyAADgNdgq3W8AAKAnIYABY2RuAMQfyR/bH3IAbwA7gLUAtUBhoiMi0B8AANMf1x9zAPQAKxFpAHIAAKDwKm8AdAA7gLcAt0B1AHMA4qESIh4TAADjH3WgOCIAoCoqYwHqH+0fcAAAoNsq8gB+GnAAbAB1APMACAgAAWRw9x/7H+UhbHMAoKciZgAA4DXYXt0AAWN0AyAHIHIAAOA12MLc8CFvcwCgPiJsobwDECAVIPQiaW1hcACguCJhAPAAEyAADEdMUlZhYmNkZWZnaGlqbG1vcHJzdHV2dzwgRyBmIG0geSCqILgg2iDeIBEhFSEyIUMhTSFQIZwhnyHSIQAiIyKLIrEivyIUIwABZ3RAIEMgAODZIjgD9uBrItIgBwmAAWVsdABNIF8gYiBmAHQAAAFhclMgWCByInJvdwAAoM0h6SRnaHRhcnJvdwCgziEA4NgiOAP24Goi0iBfCekkZ2h0YXJyb3cAoM8hAAFEZHEgdSDhIXNoAKCvIuEhc2gAoK4igAJiY25wdACCIIYgiSCNIKIgbABhAACgByL1IXRlRGFnAADgICLSIACiSSJFaW9wlSCYIJwgniAA4HAqOANkAADgSyI4A3MASWFyAG8A+AAyCnUAcgBhoG4mbADzoG4mmwjzAa8gAACzIHAAO4CgAKBAbQBwAOXgTiI4AyoJgAJhZW91eQDBIMogzSDWINkg8AHGIAAAyCAAoEMqbwBuAEhh5CFpbEZhbgBnAGSgRyJvAHQAAOBtKjgDcAAAoEIqPWThIXNoAKATIACjYCJBYWRxc3jpIO0g+SD+IAIhDCFyAHIAAKDXIXIAAAFocvIg9SBrAACgJClvoJch9wAGD28AdAAA4FAiOAN1AGkA9gC7CAABZWkGIQohYQByAACgKCntAN8I6SFzdPOgBCLlCHIAAOA12CvdAAJFZXN0/wgcISshLiHxoXEiIiEAABMJ8aFxIgAJAAAnIWwAYQBuAPQAEwlpAO0AGQlyoG8iAKBvIoABQWFwADghOyE/IXIA8gBeIHIAcgAAoK4hYQByAACg8ipzogsiSiEAAAAAxwtkoPwiAKD6ImMAeQBaZIADQUVhZGVzdABcIV8hYiFmIWkhkyGWIXIA8gBXIADgZiI4A3IAcgAAoJohcgAAoCUggKFwImZxcwBwIYQhjiF0AAABYXJ1IXohcgByAG8A9wBlIWkAZwBoAHQAYQByAHIAbwD3AD4h8aFwImAhAACKIWwAYQBuAPQAZwlz4H0qOAMAoG4iaQDtAG0JcqBuImkA5aDqIkUJaQDkADoKAAFwdKMhpyFmAADgNdhf3YCBrAA7aW4AriGvIcchrEBuAIChCSJFZHYAtyG6Ib8hAOD5IjgDbwB0AADg9SI4A+EB1gjEIcYhAKD3IgCg9iJpAHagDCLhAagJzyHRIQCg/iIAoP0igAFhb3IA2CHsIfEhcgCAoSYiYXN0AOAh5SHpIWwAbABlAOwAywhsAADg/SrlIADgAiI4A2wiaW50AACgFCrjoYAi9yEAAPohdQDlAJsJY+CvKjgDZaCAIvEAkwkAAkFhaXQHIgoiFyIeInIA8gBsIHIAcgAAoZshY3cRIhQiAOAzKTgDAOCdITgDZyRodGFycm93AACgmyFyAGkA5aDrIr4JgANjaGltcHF1AC8iPCJHIpwhTSJQIloigKGBImNlcgA2Iv0JOSJ1AOUABgoA4DXYw9zvIXJ0bQKdIQAAAABEImEAcgDhAOEhbQBloEEi8aBEIiYKYQDyAMsIcwB1AAABYnBWIlgi5QDUCeUA3wmAAWJjcABgInMieCKAoYQiRWVzAGci7glqIgDgxSo4A2UAdABl4IIi0iBxAPGgiCJoImMAZaCBIvEA/gmAoYUiRWVzAH8iFgqCIgDgxio4A2UAdABl4IMi0iBxAPGgiSKAIgACZ2lscpIilCKaIpwi7AAMCWwAZABlADuA8QDxQOcAWwlpI2FuZ2xlAAABbHKkIqoi5SFmdGWg6iLxAEUJaSJnaHQAZaDrIvEAvgltoL0DAKEjAGVzuCK8InIAbwAAoBYhcAAAoAcggARESGFkZ2lscnMAziLSItYi2iLeIugi7SICIw8j4SFzaACgrSLhIXJyAKAEKXAAAOBNItIg4SFzaACgrCIAAWV04iLlIgDgZSLSIADgPgDSIG4iZmluAACg3imAAUFldADzIvci+iJyAHIAAKACKQDgZCLSIHLgPADSIGkAZQAA4LQi0iAAAUF0BiMKI3IAcgAAoAMp8iFpZQDgtSLSIGkAbQAA4Dwi0iCAAUFhbgAaIx4jKiNyAHIAAKDWIXIAAAFociMjJiNrAACgIylvoJYh9wD/DuUhYXIAoCcpUxJqFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAVCMAAF4jaSN/I4IjjSOeI8AUAAAAAKYjwCMAANoj3yMAAO8jHiQvJD8kRCQAAWNzVyNsFHUAdABlADuA8wDzQAABaXlhI2cjcgBjoJoiO4D0APRAPmSAAmFiaW9zAHEjdCN3I3EBeiNzAOgAdhTsIWFjUWF2AACgOCrvIWxkAKC8KewhaWdTYQABY3KFI4kjaQByAACgvykA4DXYLN1vA5QjAAAAAJYjAACcI24A22JhAHYAZQA7gPIA8kAAoMEpAAFibaEjjAphAHIAAKC1KQACYWNpdKwjryO6I70jcgDyAFkUAAFpcrMjtiNyAACgvinvIXNzAKC7KW4A5QDZCgCgwCmAAWFlaQDFI8gjyyNjAHIATWFnAGEAyWOAAWNkbgDRI9Qj1iPyIW9uv2MAoLYpdQDzAHgBcABmAADgNdhg3YABYWVsAOQj5yPrI3IAAKC3KXIAcAAAoLkpdQDzAHwBAKMoImFkaW9zdvkj/CMPJBMkFiQbJHIA8gBeFIChXSplZm0AAyQJJAwkcgBvoDQhZgAAoDQhO4CqAKpAO4C6ALpA5yFvZgCgtiJyAACgVipsIm9wZQAAoFcqAKBbKoABY2xvACMkJSQrJPIACCRhAHMAaAA7gPgA+EBsAACgmCJpAGwBMyQ4JGQAZQA7gPUA9UBlAHMAYaCXInMAAKA2Km0AbAA7gPYA9kDiIWFyAKA9I+EKXiQAAHokAAB8JJQkAACYJKkkAAAAALUkEQsAAPAkAAAAAAQleiUAAIMlcgCAoSUiYXN0AGUkbyQBCwCBtgA7bGokayS2QGwAZQDsABgDaQJ1JAAAAAB4JG0AAKDzKgCg/Sp5AD9kcgCAAmNpbXB0AIUkiCSLJJkSjyRuAHQAJWBvAGQALmBpAGwAAKAwIOUhbmsAoDEgcgAA4DXYLd2AAWltbwCdJKAkpCR2oMYD1WNtAGEA9AD+B24AZQAAoA4m9KHAA64kAAC0JGMjaGZvcmsAAKDUItZjAAFhdbgkxCRuAAABY2u9JMIkawBooA8hAKAOIfYAaRpzAACkKwBhYmNkZW1zdNMkIRPXJNsk4STjJOck6yTjIWlyAKAjKmkAcgAAoCIqAAFvdYsW3yQAoCUqAKByKm4AO4CxALFAaQBtAACgJip3AG8AAKAnKoABaXB1APUk+iT+JO4idGludACgFSpmAADgNdhh3W4AZAA7gKMAo0CApHoiRWFjZWlub3N1ABMlFSUYJRslTCVRJVklSSV1JQCgsypwAACgtyp1AOUAPwtjoK8qgKJ6ImFjZW5zACclLSU0JTYlSSVwAHAAcgBvAPgAFyV1AHIAbAB5AGUA8QA/C/EAOAuAAWFlcwA8JUElRSXwInByb3gAoLkqcQBxAACgtSppAG0AAKDoImkA7QBEC20AZQDzoDIgIguAAUVhcwBDJVclRSXwAEAlgAFkZnAATwtfJXElgAFhbHMAZSVpJW0l7CFhcgCgLiPpIW5lAKASI/UhcmYAoBMjdKAdIu8AWQvyIWVsAKCwIgABY2l9JYElcgAA4DXYxdzIY24iY3NwAACgCCAAA2Zpb3BzdZElKxuVJZolnyWkJXIAAOA12C7dcABmAADgNdhi3XIiaW1lAACgVyBjAHIAAOA12MbcgAFhZW8AqiW6JcAldAAAAWVpryW2JXIAbgBpAG8AbgDzABkFbgB0AACgFipzAHQAZaA/APEACRj0AG0LgApBQkhhYmNkZWZoaWxtbm9wcnN0dXgA4yXyJfYl+iVpJpAmpia9JtUm5ib4JlonaCdxJ3UnnietJ7EnyCfiJ+cngAFhcnQA6SXsJe4lcgDyAJkM8gD6AuEhaWwAoBwpYQByAPIA3BVhAHIAAKBkKYADY2RlbnFydAAGJhAmEyYYJiYmKyZaJgABZXUKJg0mAOA9IjEDdABlAFVhaQDjACAN7SJwdHl2AKCzKWcAgKHpJ2RlbAAgJiImJCYAoJIpAKClKeUA9wt1AG8AO4C7ALtAcgAApZIhYWJjZmhscHN0dz0mQCZFJkcmSiZMJk4mUSZVJlgmcAAAoHUpZqDlIXMAAKAgKQCgMylzAACgHinrALka8ACVHmwAAKBFKWkAbQAAoHQpbAAAoKMhAKCdIQABYWleJmImaQBsAACgGilvAG6gNiJhAGwA8wB2C4ABYWJyAG8mciZ2JnIA8gAvEnIAawAAoHMnAAFha3omgSZjAAABZWt/JoAmfWBdYAABZXOFJocmAKCMKWwAAAFkdYwmjiYAoI4pAKCQKQACYWV1eZcmmiajJqUm8iFvbllhAAFkaZ4moSZpAGwAV2HsAA8M4gCAJkBkAAJjbHFzrSawJrUmuiZhAACgNylkImhhcgAAoGkpdQBvAPKgHSCjAWgAAKCzIYABYWNnAMMm0iaUC2wAgKEcIWlwcwDLJs4migxuAOUAoAxhAHIA9ADaC3QAAKCtJYABaWxyANsm3ybjJvMhaHQAoH0pbwBvAPIANgwA4DXYL90AAWFv6ib1JnIAAAFkde8m8SYAoMEhbKDAIQCgbCl2oMED8WOAAWducwD+Jk4nUCdoAHQAAANhaGxyc3QKJxInISc1Jz0nRydyInJvdwB0oJIhYQDpAFYmYSNycG9vbgAAAWR1GiceJ28AdwDuAPAmcAAAoMAh5SFmdAABYWgnJy0ncgByAG8AdwDzAAkMYQByAHAAbwBvAG4A8wATBGklZ2h0YXJyb3dzAACgySFxAHUAaQBnAGEAcgByAG8A9wBZJugkcmVldGltZXMAoMwiZwDaYmkAbgBnAGQAbwB0AHMAZQDxABwYgAFhaG0AYCdjJ2YncgDyAAkMYQDyABMEAKAPIG8idXN0AGGgsSPjIWhlAKCxI+0haWQAoO4qAAJhYnB0fCeGJ4knmScAAW5ygCeDJ2cAAKDtJ3IAAKD+IXIA6wAcDIABYWZsAI8nkieVJ3IAAKCGKQDgNdhj3XUAcwAAoC4qaSJtZXMAAKA1KgABYXCiJ6gncgBnoCkAdAAAoJQp7yJsaW50AKASKmEAcgDyADwnAAJhY2hxuCe8J6EMwCfxIXVvAKA6IHIAAOA12MfcAAFidYAmxCdvAPKgGSCoAYABaGlyAM4n0ifWJ3IAZQDlAE0n7SFlcwCgyiJpAIChuSVlZmwAXAxjEt4n9CFyaQCgzinsInVoYXIAoGgpAKAeIWENBSgJKA0oSyhVKIYoAACLKLAoAAAAAOMo5ygAABApJCkxKW0pcSmHKaYpAACYKgAAAACxKmMidXRlAFthcQB1AO8ABR+ApHsiRWFjZWlucHN5ABwoHignKCooLygyKEEoRihJKACgtCrwASMoAAAlKACguCpvAG4AYWF1AOUAgw1koLAqaQBsAF9hcgBjAF1hgAFFYXMAOCg6KD0oAKC2KnAAAKC6KmkAbQAAoOki7yJsaW50AKATKmkA7QCIDUFkbwB0AGKixSKRFgAAAABTKACgZiqAA0FhY21zdHgAYChkKG8ocyh1KHkogihyAHIAAKDYIXIAAAFocmkoayjrAJAab6CYIfcAzAd0ADuApwCnQGkAO2D3IWFyAKApKW0AAAFpbn4ozQBuAHUA8wDOAHQAAKA2J3IA7+A12DDdIxkAAmFjb3mRKJUonSisKHIAcAAAoG8mAAFoeZkonChjAHkASWRIZHIAdABtAqUoAAAAAKgoaQDkAFsPYQByAGEA7ABsJDuArQCtQAABZ22zKLsobQBhAAChwwNmdroouijCY4CjPCJkZWdsbnByAMgozCjPKNMo1yjaKN4obwB0AACgairxoEMiCw5FoJ4qAKCgKkWgnSoAoJ8qZQAAoEYi7CF1cwCgJCrhIXJyAKByKWEAcgDyAPwMAAJhZWl07Sj8KAEpCCkAAWxz8Sj4KGwAcwBlAHQAbQDpAH8oaABwAACgMyrwImFyc2wAoOQpAAFkbFoPBSllAACgIyNloKoqc6CsKgDgrCoA/oABZmxwABUpGCkfKfQhY3lMZGKgLwBhoMQpcgAAoD8jZgAA4DXYZN1hAAABZHIoKRcDZQBzAHWgYCZpAHQAAKBgJoABY3N1ADYpRilhKQABYXU6KUApcABzoJMiAOCTIgD+cABzoJQiAOCUIgD+dQAAAWJwSylWKQChjyJlcz4NUCllAHQAZaCPIvEAPw0AoZAiZXNIDVspZQB0AGWgkCLxAEkNAKGhJWFmZilbBHIAZQFrKVwEAKChJWEAcgDyAAMNAAJjZW10dyl7KX8pgilyAADgNdjI3HQAbQDuAM4AaQDsAAYpYQByAOYAVw0AAWFyiimOKXIA5qAGJhESAAFhbpIpoylpImdodAAAAWVwmSmgKXAAcwBpAGwAbwDuANkXaADpAKAkcwCvYIACYmNtbnAArin8KY4NJSooKgCkgiJFZGVtbnByc7wpvinCKcgpzCnUKdgp3CkAoMUqbwB0AACgvSpkoIYibwB0AACgwyr1IWx0AKDBKgABRWXQKdIpAKDLKgCgiiLsIXVzAKC/KuEhcnIAoHkpgAFlaXUA4inxKfQpdAAAoYIiZW7oKewpcQDxoIYivSllAHEA8aCKItEpbQAAoMcqAAFicPgp+ikAoNUqAKDTKmMAgKJ7ImFjZW5zAAcqDSoUKhYqRihwAHAAcgBvAPgAIyh1AHIAbAB5AGUA8QCDDfEAfA2AAWFlcwAcKiIqPShwAHAAcgBvAPgAPChxAPEAOShnAACgaiYApoMiMTIzRWRlaGxtbnBzPCo/KkIqRSpHKlIqWCpjKmcqaypzKncqO4C5ALlAO4CyALJAO4CzALNAAKDGKgABb3NLKk4qdAAAoL4qdQBiAACg2CpkoIcibwB0AACgxCpzAAABb3VdKmAqbAAAoMknYgAAoNcq4SFycgCgeyn1IWx0AKDCKgABRWVvKnEqAKDMKgCgiyLsIXVzAKDAKoABZWl1AH0qjCqPKnQAAKGDImVugyqHKnEA8aCHIkYqZQBxAPGgiyJwKm0AAKDIKgABYnCTKpUqAKDUKgCg1iqAAUFhbgCdKqEqrCpyAHIAAKDZIXIAAAFocqYqqCrrAJUab6CZIfcAxQf3IWFyAKAqKWwAaQBnADuA3wDfQOELzyrZKtwq6SrsKvEqAAD1KjQrAAAAAAAAAAAAAEwrbCsAAHErvSsAAAAAAADRK3IC1CoAAAAA2CrnIWV0AKAWI8RjcgDrAOUKgAFhZXkA4SrkKucq8iFvbmVh5CFpbGNhQmRvAPQAIg5sInJlYwAAoBUjcgAA4DXYMd0AAmVpa2/7KhIrKCsuK/IBACsAAAkrZQAAATRm6g0EK28AcgDlAOsNYQBzorgDECsAAAAAEit5AG0A0WMAAWNuFislK2sAAAFhcxsrIStwAHAAcgBvAPgAFw5pAG0AAKA8InMA8AD9DQABYXMsKyEr8AAXDnIAbgA7gP4A/kDsATgrOyswG2QA5QBnAmUAcwCAgdcAO2JkAEMrRCtJK9dAYaCgInIAAKAxKgCgMCqAAWVwcwBRK1MraSvhAAkh4qKkIlsrXysAAAAAYytvAHQAAKA2I2kAcgAAoPEqb+A12GXdcgBrAACg2irhAHgociJpbWUAAKA0IIABYWlwAHYreSu3K2QA5QC+DYADYWRlbXBzdACFK6MrmiunK6wrsCuzK24iZ2xlAACitSVkbHFykCuUK5ornCvvIXduAKC/JeUhZnRloMMl8QACBwCgXCJpImdodABloLkl8QBdDG8AdAAAoOwlaSJudXMAAKA6KuwhdXMAoDkqYgAAoM0p6SFtZQCgOyrlInppdW0AoOIjgAFjaHQAwivKK80rAAFyecYrySsA4DXYydxGZGMAeQBbZPIhb2tnYQABaW/UK9creAD0ANERaCJlYWQAAAFsct4r5ytlAGYAdABhAHIAcgBvAPcAXQbpJGdodGFycm93AKCgIQAJQUhhYmNkZmdobG1vcHJzdHV3CiwNLBEsHSwnLDEsQCxLLFIsYix6LIQsjyzLLOgs7Sz/LAotcgDyAAkDYQByAACgYykAAWNyFSwbLHUAdABlADuA+gD6QPIACQ1yAOMBIywAACUseQBeZHYAZQBtYQABaXkrLDAscgBjADuA+wD7QENkgAFhYmgANyw6LD0scgDyANEO7CFhY3FhYQDyAOAOAAFpckQsSCzzIWh0AKB+KQDgNdgy3XIAYQB2AGUAO4D5APlAYQFWLF8scgAAAWxyWixcLACgvyEAoL4hbABrAACggCUAAWN0Zix2LG8CbCwAAAAAcyxyAG4AZaAcI3IAAKAcI28AcAAAoA8jcgBpAACg+CUAAWFsfiyBLGMAcgBrYTuAqACoQAABZ3CILIssbwBuAHNhZgAA4DXYZt0AA2FkaGxzdZksniynLLgsuyzFLHIAcgBvAPcACQ1vAHcAbgBhAHIAcgBvAPcA2A5hI3Jwb29uAAABbHKvLLMsZQBmAPQAWyxpAGcAaAD0AF0sdQDzAKYOaQAAocUDaGzBLMIs0mNvAG4AxWPwI2Fycm93cwCgyCGAAWNpdADRLOEs5CxvAtcsAAAAAN4scgBuAGWgHSNyAACgHSNvAHAAAKAOI24AZwBvYXIAaQAAoPklYwByAADgNdjK3IABZGlyAPMs9yz6LG8AdAAAoPAi7CFkZWlhaQBmoLUlAKC0JQABYW0DLQYtcgDyAMosbAA7gPwA/EDhIm5nbGUAoKcpgAdBQkRhY2RlZmxub3Byc3oAJy0qLTAtNC2bLZ0toS2/LcMtxy3TLdgt3C3gLfwtcgDyABADYQByAHag6CoAoOkqYQBzAOgA/gIAAW5yOC08LechcnQAoJwpgANla25wcnN0AJkpSC1NLVQtXi1iLYItYQBwAHAA4QAaHG8AdABoAGkAbgDnAKEXgAFoaXIAoSmzJFotbwBwAPQAdCVooJUh7wD4JgABaXVmLWotZwBtAOEAuygAAWJwbi14LXMjZXRuZXEAceCKIgD+AODLKgD+cyNldG5lcQBx4IsiAP4A4MwqAP4AAWhyhi2KLWUAdADhABIraSNhbmdsZQAAAWxyki2WLeUhZnQAoLIiaSJnaHQAAKCzInkAMmThIXNoAKCiIoABZWxyAKcttC24LWKiKCKuLQAAAACyLWEAcgAAoLsicQAAoFoi7CFpcACg7iIAAWJ0vC1eD2EA8gBfD3IAAOA12DPddAByAOkAlS1zAHUAAAFicM0t0C0A4IIi0iAA4IMi0iBwAGYAAOA12GfdcgBvAPAAWQt0AHIA6QCaLQABY3XkLegtcgAA4DXYy9wAAWJw7C30LW4AAAFFZXUt8S0A4IoiAP5uAAABRWV/LfktAOCLIgD+6SJnemFnAKCaKYADY2Vmb3BycwANLhAuJS4pLiMuLi40LukhcmN1YQABZGkULiEuAAFiZxguHC5hAHIAAKBfKmUAcaAnIgCgWSLlIXJwAKAYIXIAAOA12DTdcABmAADgNdho3WWgQCJhAHQA6ABqD2MAcgAA4DXYzNzjCuQRUC4AAFQuAABYLmIuAAAAAGMubS5wLnQuAAAAAIguki4AAJouJxIqEnQAcgDpAB0ScgAA4DXYNd0AAUFhWy5eLnIA8gDnAnIA8gCTB75jAAFBYWYuaS5yAPIA4AJyAPIAjAdhAPAAeh5pAHMAAKD7IoABZHB0APgReS6DLgABZmx9LoAuAOA12GnddQDzAP8RaQBtAOUABBIAAUFhiy6OLnIA8gDuAnIA8gCaBwABY3GVLgoScgAA4DXYzdwAAXB0nS6hLmwAdQDzACUScgDpACASAARhY2VmaW9zdbEuvC7ELsguzC7PLtQu2S5jAAABdXm2LrsudABlADuA/QD9QE9kAAFpecAuwy5yAGMAd2FLZG4AO4ClAKVAcgAA4DXYNt1jAHkAV2RwAGYAAOA12GrdYwByAADgNdjO3AABY23dLt8ueQBOZGwAO4D/AP9AAAVhY2RlZmhpb3N38y73Lv8uAi8MLxAvEy8YLx0vIi9jInV0ZQB6YQABYXn7Lv4u8iFvbn5hN2RvAHQAfGEAAWV0Bi8KL3QAcgDmAB8QYQC2Y3IAAOA12DfdYwB5ADZk5yJyYXJyAKDdIXAAZgAA4DXYa91jAHIAAOA12M/cAAFqbiYvKC8AoA0gagAAoAwg");var lS=dc("AAJhZ2xxBwARABMAFQBtAg0AAAAAAA8AcAAmYG8AcwAnYHQAPmB0ADxg9SFvdCJg");var Kr;(function(t){t[t.VALUE_LENGTH=49152]="VALUE_LENGTH",t[t.FLAG13=8192]="FLAG13",t[t.BRANCH_LENGTH=8064]="BRANCH_LENGTH",t[t.JUMP_TABLE=127]="JUMP_TABLE"})(Kr||(Kr={}));var _e;(function(t){t[t.NUM=35]="NUM",t[t.SEMI=59]="SEMI",t[t.EQUALS=61]="EQUALS",t[t.ZERO=48]="ZERO",t[t.NINE=57]="NINE",t[t.LOWER_A=97]="LOWER_A",t[t.LOWER_F=102]="LOWER_F",t[t.LOWER_X=120]="LOWER_X",t[t.LOWER_Z=122]="LOWER_Z",t[t.UPPER_A=65]="UPPER_A",t[t.UPPER_F=70]="UPPER_F",t[t.UPPER_Z=90]="UPPER_Z"})(_e||(_e={}));var aS=32;function $b(t){return t>=_e.ZERO&&t<=_e.NINE}function FP(t){return t>=_e.UPPER_A&&t<=_e.UPPER_F||t>=_e.LOWER_A&&t<=_e.LOWER_F}function VP(t){return t>=_e.UPPER_A&&t<=_e.UPPER_Z||t>=_e.LOWER_A&&t<=_e.LOWER_Z||$b(t)}function DP(t){return t===_e.EQUALS||VP(t)}var Tr;(function(t){t[t.EntityStart=0]="EntityStart",t[t.NumericStart=1]="NumericStart",t[t.NumericDecimal=2]="NumericDecimal",t[t.NumericHex=3]="NumericHex",t[t.NamedEntity=4]="NamedEntity"})(Tr||(Tr={}));var Ci;(function(t){t[t.Legacy=0]="Legacy",t[t.Strict=1]="Strict",t[t.Attribute=2]="Attribute"})(Ci||(Ci={}));class Xb{constructor(t,e,o){this.decodeTree=t,this.emitCodePoint=e,this.errors=o,this.state=Tr.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=Ci.Strict,this.runConsumed=0}startEntity(t){this.decodeMode=t,this.state=Tr.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1,this.runConsumed=0}write(t,e){switch(this.state){case Tr.EntityStart:{if(t.charCodeAt(e)===_e.NUM)return this.state=Tr.NumericStart,this.consumed+=1,this.stateNumericStart(t,e+1);return this.state=Tr.NamedEntity,this.stateNamedEntity(t,e)}case Tr.NumericStart:return this.stateNumericStart(t,e);case Tr.NumericDecimal:return this.stateNumericDecimal(t,e);case Tr.NumericHex:return this.stateNumericHex(t,e);case Tr.NamedEntity:return this.stateNamedEntity(t,e)}}stateNumericStart(t,e){if(e>=t.length)return-1;if((t.charCodeAt(e)|aS)===_e.LOWER_X)return this.state=Tr.NumericHex,this.consumed+=1,this.stateNumericHex(t,e+1);return this.state=Tr.NumericDecimal,this.stateNumericDecimal(t,e)}stateNumericHex(t,e){while(e<t.length){let o=t.charCodeAt(e);if($b(o)||FP(o)){let s=o<=_e.NINE?o-_e.ZERO:(o|aS)-_e.LOWER_A+10;this.result=this.result*16+s,this.consumed++,e++}else return this.emitNumericEntity(o,3)}return-1}stateNumericDecimal(t,e){while(e<t.length){let o=t.charCodeAt(e);if($b(o))this.result=this.result*10+(o-_e.ZERO),this.consumed++,e++;else return this.emitNumericEntity(o,2)}return-1}emitNumericEntity(t,e){var o;if(this.consumed<=e)return(o=this.errors)===null||o===void 0||o.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(t===_e.SEMI)this.consumed+=1;else if(this.decodeMode===Ci.Strict)return 0;if(this.emitCodePoint(sS(this.result),this.consumed),this.errors){if(t!==_e.SEMI)this.errors.missingSemicolonAfterCharacterReference();this.errors.validateNumericCharacterReference(this.result)}return this.consumed}stateNamedEntity(t,e){let{decodeTree:o}=this,s=o[this.treeIndex],n=(s&Kr.VALUE_LENGTH)>>14;while(e<t.length){if(n===0&&(s&Kr.FLAG13)!==0){let a=(s&Kr.BRANCH_LENGTH)>>7;if(this.runConsumed===0){let y=s&Kr.JUMP_TABLE;if(t.charCodeAt(e)!==y)return this.result===0?0:this.emitNotTerminatedNamedEntity();e++,this.excess++,this.runConsumed++}while(this.runConsumed<a){if(e>=t.length)return-1;let y=this.runConsumed-1,u=o[this.treeIndex+1+(y>>1)],c=y%2===0?u&255:u>>8&255;if(t.charCodeAt(e)!==c)return this.runConsumed=0,this.result===0?0:this.emitNotTerminatedNamedEntity();e++,this.excess++,this.runConsumed++}this.runConsumed=0,this.treeIndex+=1+(a>>1),s=o[this.treeIndex],n=(s&Kr.VALUE_LENGTH)>>14}if(e>=t.length)break;let l=t.charCodeAt(e);if(l===_e.SEMI&&n!==0&&(s&Kr.FLAG13)!==0)return this.emitNamedEntityData(this.treeIndex,n,this.consumed+this.excess);if(this.treeIndex=BP(o,s,this.treeIndex+Math.max(1,n),l),this.treeIndex<0)return this.result===0||this.decodeMode===Ci.Attribute&&(n===0||DP(l))?0:this.emitNotTerminatedNamedEntity();if(s=o[this.treeIndex],n=(s&Kr.VALUE_LENGTH)>>14,n!==0){if(l===_e.SEMI)return this.emitNamedEntityData(this.treeIndex,n,this.consumed+this.excess);if(this.decodeMode!==Ci.Strict&&(s&Kr.FLAG13)===0)this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0}e++,this.excess++}return-1}emitNotTerminatedNamedEntity(){var t;let{result:e,decodeTree:o}=this,s=(o[e]&Kr.VALUE_LENGTH)>>14;return this.emitNamedEntityData(e,s,this.consumed),(t=this.errors)===null||t===void 0||t.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(t,e,o){let{decodeTree:s}=this;if(this.emitCodePoint(e===1?s[t]&~(Kr.VALUE_LENGTH|Kr.FLAG13):s[t+1],o),e===3)this.emitCodePoint(s[t+2],o);return o}end(){var t;switch(this.state){case Tr.NamedEntity:return this.result!==0&&(this.decodeMode!==Ci.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case Tr.NumericDecimal:return this.emitNumericEntity(0,2);case Tr.NumericHex:return this.emitNumericEntity(0,3);case Tr.NumericStart:return(t=this.errors)===null||t===void 0||t.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case Tr.EntityStart:return 0}}}function mS(t){let e="",o=new Xb(t,(s)=>e+=iS(s));return function(n,l){let a=0,y=0;while((y=n.indexOf("&",y))>=0){e+=n.slice(a,y),o.startEntity(l);let c=o.write(n,y+1);if(c<0){a=y+o.end();break}a=y+c,y=c===0?a+1:a}let u=e+n.slice(a);return e="",u}}function BP(t,e,o,s){let n=(e&Kr.BRANCH_LENGTH)>>7,l=e&Kr.JUMP_TABLE;if(n===0)return l!==0&&s===l?o:-1;if(l){let c=s-l;return c<0||c>=n?-1:t[o+c]-1}let a=n+1>>1,y=0,u=n-1;while(y<=u){let c=y+u>>>1,d=c>>1,f=t[o+d]>>(c&1)*8&255;if(f<s)y=c+1;else if(f>s)u=c-1;else return t[o+a+c]}return-1}var yS=mS(nS),OP=mS(lS);function kp(t,e=Ci.Legacy){return yS(t,e)}function zb(t){return yS(t,Ci.Attribute)}function Mp(t){return OP(t,Ci.Strict)}var lM=String.prototype.codePointAt==null?(t,e)=>(t.charCodeAt(e)&64512)===55296?(t.charCodeAt(e)-55296)*1024+t.charCodeAt(e+1)-56320+65536:t.charCodeAt(e):(t,e)=>t.codePointAt(e);function GP(t,e){return function(s){let n,l=0,a="";while(n=t.exec(s)){if(l!==n.index)a+=s.substring(l,n.index);a+=e.get(n[0].charCodeAt(0)),l=n.index+1}return a+s.substring(l)}}var Jb=GP(/[&<>\u00A0]/g,new Map([[38,"&amp;"],[60,"&lt;"],[62,"&gt;"],[160,"&nbsp;"]]));var pS;(function(t){t[t.XML=0]="XML",t[t.HTML=1]="HTML"})(pS||(pS={}));var uS;(function(t){t[t.UTF8=0]="UTF8",t[t.ASCII=1]="ASCII",t[t.Extensive=2]="Extensive",t[t.Attribute=3]="Attribute",t[t.Text=4]="Text"})(uS||(uS={}));var UP=/[&"<>\t\n\r]/g,HP=/[&"]/g,WP=/&(?:nbsp|lt|gt|amp);/g,_P={"&":"&amp;",'"':"&quot;","<":"&lt;",">":"&gt;","\t":"&#x9;","\n":"&#xA;","\r":"&#xD;"},YP={"&":"&amp;",'"':"&quot;"},KP={"&nbsp;":String.fromCharCode(160),"&lt;":"<","&gt;":">","&amp;":"&"};class De{static encodeXMLAttributeValue(t){if(t===null)return"";return t.replace(UP,(e)=>_P[e])}static decodeXMLAttributeValue(t){if(t===null)return"";return Mp(t)}static encodeHTMLAttributeValue(t){if(t===null)return"";return t.replace(HP,(e)=>YP[e])}static decodeHTMLAttributeValue(t){if(t===null)return"";return zb(t)}static encodeTextContent(t){if(t===null)return"";return Jb(t)}static decodeTextContent(t){if(t===null)return"";return t.replace(WP,(e)=>KP[e])}static decodeHTMLEntities(t){if(t===null)return"";return kp(t)}static decodeXMLEntities(t){if(t===null)return"";return Mp(t)}}class ni{options={serializableShadowRoots:!1,shadowRoots:null,allShadowRoots:!1,excludeShadowRootTags:null};constructor(t){if(t){if(t.serializableShadowRoots)this.options.serializableShadowRoots=t.serializableShadowRoots;if(t.shadowRoots)this.options.shadowRoots=t.shadowRoots;if(t.allShadowRoots)this.options.allShadowRoots=t.allShadowRoots;if(t.excludeShadowRootTags)this.options.excludeShadowRootTags=t.excludeShadowRootTags}}serializeToString(t){switch(t[D]){case T.elementNode:let e=t,o=e[Ft],s=e[ot],n=$e[e[ot]],l=o?`${o}:${s}`:s;if(n?.contentModel===G.noDescendants)return`<${l}${this.getAttributes(e)}>`;let a="";if(e.shadowRoot&&(this.options.allShadowRoots||this.options.serializableShadowRoots&&e.shadowRoot[Gi]||this.options.shadowRoots?.includes(e.shadowRoot))&&(!this.options.excludeShadowRootTags||!this.options.excludeShadowRootTags.includes(l))){a+=`<template shadowrootmode="${e.shadowRoot[Ee]}"${e.shadowRoot[Gi]?' shadowrootserializable=""':""}>`;for(let R of e.shadowRoot[_])a+=this.serializeToString(R);a+="</template>"}let y=l==="template"?t.content[_]:t[_];for(let R of y)a+=this.serializeToString(R);return`<${l}${this.getAttributes(e)}>${a}</${l}>`;case st.DOCUMENT_FRAGMENT_NODE:case st.DOCUMENT_NODE:let u="";for(let R of t[_])u+=this.serializeToString(R);return u;case T.commentNode:return`<!--${t.textContent}-->`;case T.processingInstructionNode:return`<!--?${t.target} ${t.textContent}?-->`;case T.textNode:let c=t.parentElement;if(c){if($e[c[ot]]?.contentModel===G.rawText)return t.textContent}return De.encodeTextContent(t.textContent);case T.documentTypeNode:let d=t,g=d.publicId?" PUBLIC":d.systemId?" SYSTEM":"",f=d.publicId?` "${d.publicId}"`:"",E=d.systemId?` "${d.systemId}"`:"";return`<!DOCTYPE ${d.name}${g}${f}${E}>`}return""}getAttributes(t){let e="",o=t[St][Q];if(!o.has(":is")&&t[Zr])e+=' is="'+De.encodeHTMLAttributeValue(t[Zr])+'"';for(let s of o.values()){let n=De.encodeHTMLAttributeValue(s[q]);e+=" "+s[rt]+'="'+n+'"'}return e}}var Ip={svg:{localName:"svg",className:"SVGSVGElement"},animate:{localName:"animate",className:"SVGAnimateElement"},animatemotion:{localName:"animateMotion",className:"SVGAnimateMotionElement"},animatetransform:{localName:"animateTransform",className:"SVGAnimateTransformElement"},circle:{localName:"circle",className:"SVGCircleElement"},clippath:{localName:"clipPath",className:"SVGClipPathElement"},defs:{localName:"defs",className:"SVGDefsElement"},desc:{localName:"desc",className:"SVGDescElement"},ellipse:{localName:"ellipse",className:"SVGEllipseElement"},feblend:{localName:"feBlend",className:"SVGFEBlendElement"},fecolormatrix:{localName:"feColorMatrix",className:"SVGFEColorMatrixElement"},fecomponenttransfer:{localName:"feComponentTransfer",className:"SVGFEComponentTransferElement"},fecomposite:{localName:"feComposite",className:"SVGFECompositeElement"},feconvolvematrix:{localName:"feConvolveMatrix",className:"SVGFEConvolveMatrixElement"},fediffuselighting:{localName:"feDiffuseLighting",className:"SVGFEDiffuseLightingElement"},fedisplacementmap:{localName:"feDisplacementMap",className:"SVGFEDisplacementMapElement"},fedistantlight:{localName:"feDistantLight",className:"SVGFEDistantLightElement"},fedropshadow:{localName:"feDropShadow",className:"SVGFEDropShadowElement"},feflood:{localName:"feFlood",className:"SVGFEFloodElement"},fefunca:{localName:"feFuncA",className:"SVGFEFuncAElement"},fefuncb:{localName:"feFuncB",className:"SVGFEFuncBElement"},fefuncg:{localName:"feFuncG",className:"SVGFEFuncGElement"},fefuncr:{localName:"feFuncR",className:"SVGFEFuncRElement"},fegaussianblur:{localName:"feGaussianBlur",className:"SVGFEGaussianBlurElement"},feimage:{localName:"feImage",className:"SVGFEImageElement"},femerge:{localName:"feMerge",className:"SVGFEMergeElement"},femergenode:{localName:"feMergeNode",className:"SVGFEMergeNodeElement"},femorphology:{localName:"feMorphology",className:"SVGFEMorphologyElement"},feoffset:{localName:"feOffset",className:"SVGFEOffsetElement"},fepointlight:{localName:"fePointLight",className:"SVGFEPointLightElement"},fespecularlighting:{localName:"feSpecularLighting",className:"SVGFESpecularLightingElement"},fespotlight:{localName:"feSpotLight",className:"SVGFESpotLightElement"},fetile:{localName:"feTile",className:"SVGFETileElement"},feturbulence:{localName:"feTurbulence",className:"SVGFETurbulenceElement"},filter:{localName:"filter",className:"SVGFilterElement"},foreignobject:{localName:"foreignObject",className:"SVGForeignObjectElement"},g:{localName:"g",className:"SVGGElement"},image:{localName:"image",className:"SVGImageElement"},line:{localName:"line",className:"SVGLineElement"},lineargradient:{localName:"linearGradient",className:"SVGLinearGradientElement"},marker:{localName:"marker",className:"SVGMarkerElement"},mask:{localName:"mask",className:"SVGMaskElement"},metadata:{localName:"metadata",className:"SVGMetadataElement"},mpath:{localName:"mpath",className:"SVGMPathElement"},path:{localName:"path",className:"SVGPathElement"},pattern:{localName:"pattern",className:"SVGPatternElement"},polygon:{localName:"polygon",className:"SVGPolygonElement"},polyline:{localName:"polyline",className:"SVGPolylineElement"},radialgradient:{localName:"radialGradient",className:"SVGRadialGradientElement"},rect:{localName:"rect",className:"SVGRectElement"},script:{localName:"script",className:"SVGScriptElement"},set:{localName:"set",className:"SVGSetElement"},stop:{localName:"stop",className:"SVGStopElement"},style:{localName:"style",className:"SVGStyleElement"},switch:{localName:"switch",className:"SVGSwitchElement"},symbol:{localName:"symbol",className:"SVGSymbolElement"},text:{localName:"text",className:"SVGTextElement"},textpath:{localName:"textPath",className:"SVGTextPathElement"},title:{localName:"title",className:"SVGTitleElement"},tspan:{localName:"tspan",className:"SVGTSpanElement"},use:{localName:"use",className:"SVGUseElement"},view:{localName:"view",className:"SVGViewElement"}};var QP=/<([^\s/!>?]+)|<\/([^\s/!>?]+)\s*>|(<!--)|(-->|--!>)|(<!)|(<\?)|(\/>)|(>)/gm,jP=/\s*([a-zA-Z0-9-_:.$@?\\<\[\]]+)\s*=\s*([^"'=<>\\`\s]+)|\s*([a-zA-Z0-9-_:.$@?\\<\[\]]+)\s*=\s*"([^"]*)("{0,1})|\s*([a-zA-Z0-9-_:.$@?\\<\[\]]+)\s*=\s*'([^']*)('{0,1})|\s*([a-zA-Z0-9-_:.$@?\\<\[\]]+)/gm,qP=/"([^"]+)"/gm,$P=/\s+/,XP=/^\s+/,Ge;(function(t){t.any="any",t.startTag="startTag",t.comment="comment",t.documentType="documentType",t.processingInstruction="processingInstruction",t.rawTextElement="rawTextElement"})(Ge||(Ge={}));var Te;(function(t){t[t.root=0]="root",t[t.doctype=1]="doctype",t[t.documentElement=2]="documentElement",t[t.head=3]="head",t[t.additionalHeadWithoutBody=4]="additionalHeadWithoutBody",t[t.body=5]="body",t[t.afterBody=6]="afterBody"})(Te||(Te={}));class Cr{window;evaluateScripts=!1;isTemplateDocumentFragment=!1;rootNode=null;rootDocument=null;nodeStack=[];tagNameStack=[];documentStructure=null;startTagIndex=0;markupRegExp=null;nextElement=null;currentNode=null;readState=Ge.any;constructor(t,e){if(this.window=t,e?.evaluateScripts)this.evaluateScripts=!0;if(e?.isTemplateDocumentFragment)this.isTemplateDocumentFragment=!0}parse(t,e){if(this.rootNode=e||this.window.document.createDocumentFragment(),this.rootDocument=this.rootNode[D]===T.documentNode?this.rootNode:this.window.document,this.nodeStack=[this.rootNode],this.tagNameStack=[null],this.currentNode=this.rootNode,this.readState=Ge.any,this.documentStructure=null,this.startTagIndex=0,this.markupRegExp=new RegExp(QP),this.rootNode[D]===T.documentNode){let{doctype:n,documentElement:l,head:a,body:y}=this.rootNode;if(!l||!a||!y)throw Error(`Failed to parse HTML: The root node must have "documentElement", "head" and "body".
88
88
 
89
- We should not end up here and it is therefore a bug in Happy DOM. Please report this issue.`);this.documentStructure={nodes:{doctype:n||null,documentElement:l,head:a,body:y},level:Te.root}}if(this.rootNode instanceof this.window.HTMLHtmlElement){let n=this.rootDocument.createElement("head"),l=this.rootDocument.createElement("body");while(this.rootNode[_].length>0)this.rootNode[hr](this.rootNode[_][this.rootNode[_].length-1]);this.rootNode[Et](n),this.rootNode[Et](l),this.documentStructure={nodes:{doctype:null,documentElement:this.rootNode,head:n,body:l},level:Te.documentElement}}let o,s=0;t=String(t);while(o=this.markupRegExp.exec(t)){switch(this.readState){case Ge.any:if(o.index!==s&&(o[1]||o[2]||o[3]||o[4]||o[5]!==void 0||o[6]))this.parsePlainText(t.substring(s,o.index));if(o[1])this.nextElement=this.getStartTagElement(o[1]),this.startTagIndex=this.markupRegExp.lastIndex,this.readState=Ge.startTag;else if(o[2])this.parseEndTag(o[2]);else if(o[3])this.startTagIndex=this.markupRegExp.lastIndex,this.readState=Ge.comment;else if(o[5]!==void 0)this.startTagIndex=this.markupRegExp.lastIndex,this.readState=Ge.documentType;else if(o[6])this.startTagIndex=this.markupRegExp.lastIndex,this.readState=Ge.processingInstruction;else this.parsePlainText(t.substring(s,this.markupRegExp.lastIndex));break;case Ge.startTag:if(o[7]||o[8]||o[2])if(this.nextElement){let n=t.substring(this.startTagIndex,o[2]?this.markupRegExp.lastIndex-1:o.index),l=!!o[7];this.parseEndOfStartTag(n,l)}else this.readState=Ge.any;break;case Ge.comment:if(o[4])this.parseComment(t.substring(this.startTagIndex,o.index));break;case Ge.documentType:if(o[7]||o[8])this.parseDocumentType(t.substring(this.startTagIndex,o.index));break;case Ge.processingInstruction:if(o[7]||o[8])this.parseComment("?"+t.substring(this.startTagIndex,o.index));break;case Ge.rawTextElement:if(o[2])this.parseRawTextElementContent(o[2],t.substring(this.startTagIndex,o.index));break}s=this.markupRegExp.lastIndex}if(s!==t.length&&this.currentNode)this.parsePlainText(t.substring(s));return this.rootNode}parsePlainText(t){if(this.documentStructure){let e=this.documentStructure.level,{documentElement:o,head:s,body:n}=this.documentStructure.nodes,l=(this.currentNode===this.rootNode||this.currentNode===o)&&e<Te.head&&n[bt].length===0?t.replace(XP,""):t;if(l){let a=this.rootDocument.createTextNode(De.decodeHTMLEntities(l));if(this.currentNode===s&&e===Te.additionalHeadWithoutBody)o[kr](a,n,!0);else if(this.currentNode===this.rootNode||this.currentNode===o||this.currentNode===s&&e>=Te.body)if(e===Te.head)o[kr](a,n,!0);else if(n.lastChild?.[D]===T.textNode)n.lastChild[Kt]+=t;else n[Et](a,!0);else this.currentNode[Et](a,!0)}}else{let e=this.rootDocument.createTextNode(De.decodeHTMLEntities(t));this.currentNode[Et](e,!0)}}parseEndOfStartTag(t,e){if(t&&(!this.documentStructure||this.nextElement!==this.documentStructure.nodes.head||this.documentStructure.level<Te.body)){let a=new RegExp(jP),y;while(y=a.exec(t))if(y[1]&&y[2]||y[3]&&y[5]==='"'||y[6]&&y[8]==="'"||y[9]){let u=y[1]||y[3]||y[6]||y[9]||"",c=y[2]||y[4]||y[7]||"",d=c?De.decodeHTMLAttributeValue(c):"",g=this.nextElement[St];if(this.nextElement[J]===Ht.svg){let f=u.split(":"),E=null;switch(f[0]){case"xmlns":E=!f[1]||f[1]==="xlink"?Ht.xmlns:null;break;case"xlink":E=Ht.xlink;break}if(!g.getNamedItemNS(E,f[1]??u)){let R=Ve.createNode(this.rootDocument,this.window.Attr);R[J]=E,R[rt]=u,R[ot]=E&&f[1]?f[1]:u,R[Ft]=E&&f[1]?f[0]:null,R[q]=d,g[zo](R)}}else if(!g.getNamedItem(u)){let f=this.rootDocument.createAttribute(u);f[q]=d,g[zo](f)}this.startTagIndex+=y[0].length}else if(!y[1]&&(y[3]&&!y[5]||y[6]&&!y[8]))return}let o=this.nextElement[z],s=o.toLowerCase(),n=$e[s],l=null;while(l!==this.rootNode){let a=this.currentNode[z]?.toLowerCase(),y=a?$e[a]:null;if(l===this.currentNode)throw Error("Failed to parse HTML: The parser is stuck in an infinite loop. Please report this issue.");if(l=this.currentNode,n?.contentModel===G.noFirstLevelSelfDescendants&&this.tagNameStack[this.tagNameStack.length-1]===o||y?.contentModel===G.textOrComments||y?.contentModel===G.noForbiddenFirstLevelDescendants&&y?.forbiddenDescendants?.includes(s)||y?.contentModel===G.permittedDescendants&&!y?.permittedDescendants?.includes(s)&&(!n||!n.addPermittedParent||$e[n.addPermittedParent].permittedParents&&!$e[n.addPermittedParent].permittedParents.includes(a)||$e[n.addPermittedParent].permittedDescendants&&!$e[n.addPermittedParent].permittedDescendants.includes(s))){if(y?.contentModel===G.permittedDescendants&&y.moveForbiddenDescendant&&!y.moveForbiddenDescendant.exclude.includes(s)){let u=this.currentNode;while(u)if(!u.parentNode||!$e[u.parentNode[ot]]?.permittedDescendants||$e[u.parentNode[ot]]?.permittedDescendants?.includes(s))break;else u=u.parentNode;if(u&&u.parentNode)u.parentNode.insertBefore(this.nextElement,u);else u.appendChild(this.nextElement);this.startTagIndex=this.markupRegExp.lastIndex,this.readState=Ge.any;return}this.nodeStack.pop(),this.tagNameStack.pop(),this.currentNode=this.nodeStack[this.nodeStack.length-1]||this.rootNode}else if(n?.contentModel===G.noSelfDescendants&&this.tagNameStack.includes(o))while(this.currentNode!==this.rootNode){if(this.currentNode[z]===o){this.nodeStack.pop(),this.tagNameStack.pop(),this.currentNode=this.nodeStack[this.nodeStack.length-1]||this.rootNode;break}this.nodeStack.pop(),this.tagNameStack.pop(),this.currentNode=this.nodeStack[this.nodeStack.length-1]||this.rootNode}else if(!this.isTemplateDocumentFragment&&n?.permittedParents&&!n.permittedParents.includes(a)){if(!n.addPermittedParent||$e[n.addPermittedParent].permittedParents&&!$e[n.addPermittedParent].permittedParents.includes(a)||$e[n.addPermittedParent].permittedDescendants&&!$e[n.addPermittedParent].permittedDescendants.includes(s)){this.readState=Ge.any,this.startTagIndex=this.markupRegExp.lastIndex;return}let u=this.rootDocument.createElement(n.addPermittedParent);this.currentNode[Et](u,!0),this.nodeStack.push(u),this.tagNameStack.push(u[z]),this.currentNode=u}else break}if(this.documentStructure){let{documentElement:a,head:y,body:u}=this.documentStructure.nodes,c=this.documentStructure.level;if((!n||n.contentModel!==G.rawText)&&this.nextElement!==a&&this.nextElement!==y&&this.nextElement!==u)if(a&&(this.currentNode===this.rootNode||this.currentNode===a||this.currentNode===y&&c>=Te.body)){if(c<Te.body)this.documentStructure.level=Te.afterBody;u[Et](this.nextElement,!0)}else this.currentNode[Et](this.nextElement,!0)}else this.currentNode[Et](this.nextElement,!0);if(!this.documentStructure||this.nextElement!==this.documentStructure.nodes.body||this.documentStructure.level<=Te.body){if(this.currentNode=this.nextElement,this.nodeStack.push(this.currentNode),this.tagNameStack.push(o),this.documentStructure&&this.nextElement===this.documentStructure.nodes.body)this.documentStructure.level=Te.afterBody;if(n?.contentModel===G.noDescendants||e&&this.currentNode[J]===Ht.svg)this.nodeStack.pop(),this.tagNameStack.pop(),this.currentNode=this.nodeStack[this.nodeStack.length-1]||this.rootNode,this.readState=Ge.any;else this.readState=n?.contentModel===G.rawText?Ge.rawTextElement:Ge.any}else this.readState=Ge.any;this.startTagIndex=this.markupRegExp.lastIndex}parseEndTag(t){let e=this.currentNode[J]===Ht.html?Dr.asciiUpperCase(t):Ip[Dr.asciiLowerCase(t)]?.localName||t,o=this.tagNameStack.lastIndexOf(e);if(o!==-1)this.nodeStack.splice(o,this.nodeStack.length-o),this.tagNameStack.splice(o,this.tagNameStack.length-o),this.currentNode=this.nodeStack[this.nodeStack.length-1]||this.rootNode}parseComment(t){let e=this.rootDocument.createComment(De.decodeHTMLEntities(t));if(this.documentStructure){let o=this.documentStructure.level,{documentElement:s,head:n,body:l}=this.documentStructure.nodes,a=null;if(this.currentNode===this.rootNode&&o===Te.root)a=s;else if(this.currentNode===s&&o===Te.documentElement)a=n;else if(this.currentNode===s&&o===Te.head)a=l;this.currentNode[kr](e,a,!0)}else this.currentNode[Et](e,!0);this.readState=Ge.any}parseDocumentType(t){let e=De.decodeHTMLEntities(t);if(this.documentStructure){let{doctype:o}=this.documentStructure.nodes,s=this.getDocumentType(e);if(s){if(this.currentNode===this.rootNode&&this.documentStructure.level===Te.root){if(o)o[rt]=s.name,o[Ds]=s.publicId,o[Bs]=s.systemId;else o=this.rootNode.implementation.createDocumentType(s.name,s.publicId,s.systemId),this.rootNode.insertBefore(o,this.rootNode.documentElement);this.documentStructure.level=Te.doctype}}else this.parseComment(e)}else if(!this.getDocumentType(e))this.parseComment(e);this.readState=Ge.any}parseRawTextElementContent(t,e){let o=Dr.asciiUpperCase(t);if(o!==this.currentNode[z])return;if(o==="SCRIPT")this.currentNode[Xs]=!this.evaluateScripts;else if(o==="LINK")this.currentNode[Xs]=!this.evaluateScripts;this.currentNode[Et](this.rootDocument.createTextNode(e),!0);let s=this.currentNode;if(this.nodeStack.pop(),this.tagNameStack.pop(),this.currentNode=this.nodeStack[this.nodeStack.length-1]||this.rootNode,this.readState=Ge.any,this.documentStructure){let{documentElement:n,body:l}=this.documentStructure.nodes;if(n&&(this.currentNode===this.rootNode||this.currentNode===n))l[Et](s,!0);else this.currentNode[Et](s,!0)}else this.currentNode[Et](s,!0)}getStartTagElement(t){let e=Dr.asciiLowerCase(t),o=this.currentNode[J];if(e==="svg")return this.rootDocument.createElementNS(Ht.svg,"svg");if(o===Ht.svg)return this.rootDocument.createElementNS(Ht.svg,Ip[e]?.localName||t);switch(e){case"html":if(!this.documentStructure)return null;if(this.documentStructure.level<Te.documentElement)this.documentStructure.level=Te.documentElement;return this.documentStructure.nodes.documentElement??null;case"head":if(!this.documentStructure)return null;if(this.documentStructure.level<Te.head)this.documentStructure.level=Te.head;else if(this.documentStructure.level===Te.head)this.documentStructure.level=Te.additionalHeadWithoutBody;return this.documentStructure.nodes.head??null;case"body":if(!this.documentStructure)return null;if(this.documentStructure.level<Te.body)this.documentStructure.level=Te.body;return this.documentStructure.nodes.body??null;default:return this.rootDocument.createElementNS(Ht.html,e)}}getDocumentType(t){if(!t.toUpperCase().startsWith("DOCTYPE"))return null;let e=t.split($P);if(e.length<=1)return null;let o=e.slice(1).join(" "),s=[],n=new RegExp(qP,"gm"),l=o.toUpperCase().includes("PUBLIC"),a;while(a=n.exec(o))s.push(a[1]);let y=l?s[0]||"":"",u=l?s[1]||"":s[0]||"";return{name:e[1].toLowerCase(),publicId:y,systemId:u}}}var zP=/[\x00-\x1F\x7F\x80-\x9F "\'><=\/\uFDD0-\uFDEF\uFFFE\uFFFF\u1FFFE\u1FFFF\u2FFFE\u2FFFF\u3FFFE\u3FFFF\u4FFFE\u4FFFF\u5FFFE\u5FFFF\u6FFFE\u6FFFF\u7FFFE\u7FFFF\u8FFFE\u8FFFF\u9FFFE\u9FFFF\uAFFFE\uAFFFF\uBFFFE\uBFFFF\uCFFFE\uCFFFF\uDFFFE\uDFFFF\uEFFFE\uEFFFF\uFFFFE\uFFFFF\u10FFFE\u10FFFF]/;class Zb{static validateAttributeName(t,e,o){let{method:s,instance:n}=o;if(e==="text/html"){let l=String(t).toLowerCase();if(zP.test(l)||l.length===0||l[0]==="-")throw new re(`Uncaught InvalidCharacterError: Failed to execute '${s}' on '${n}': '${t}' is not a valid attribute name.`,w.invalidCharacterError)}}}class S{static getEventListener(t,e){let o=t[p].get(e);if(o)return o;let s=t[x][Lr];if(!s)return null;let n=new it(s).getSettings();if(!n||!n.enableJavaScriptEvaluation)return null;let l=t.getAttribute(e);if(!l)return null;let a="(function anonymous($happy_dom, event) {";if(n&&!n.disableErrorCapturing&&n.errorCapture===me.tryAndCatch)a+=`try {
90
- `;if(a+=l,n&&!n.disableErrorCapturing&&n.errorCapture===me.tryAndCatch)a+="} catch(e) { $happy_dom.dispatchError(e); }";a+="})";let y=null;try{y=s[Uo](a,{filename:s.location.href}).bind(t,{dispatchError:s[le].bind(s)})}catch(u){let c=new s.SyntaxError(`Failed to read the '${e}' property from '${t.constructor.name}': ${u.message}`);if(n.disableErrorCapturing||n.errorCapture!==me.tryAndCatch)throw c;else return s[le](c),null}if(y)t[p].set(e,y);return y}}class Gr extends st{static[z]=null;static[ot]=null;static[J]=null;[Aa]=null;[eo]=null;[D]=T.elementNode;[Ft]=null;[be]=null;[Jd]=0;[Zd]=0;[Th]=0;[Ch]=0;[St]=new ln(this);[va]=null;[ir]=null;[Ll]=null;[Cm]=new Set;[p]=new Map;constructor(){super();if(!this[z])this[z]=null;if(!this[ot])this[ot]=null;if(!this[J])this[J]=null}get onfullscreenerror(){return S.getEventListener(this,"onfullscreenerror")}set onfullscreenerror(t){this[p].set("onfullscreenerror",t)}get onfullscreenchange(){return S.getEventListener(this,"onfullscreenchange")}set onfullscreenchange(t){this[p].set("onfullscreenchange",t)}get onbeforecopy(){return S.getEventListener(this,"onbeforecopy")}set onbeforecopy(t){this[p].set("onbeforecopy",t)}get onbeforecut(){return S.getEventListener(this,"onbeforecut")}set onbeforecut(t){this[p].set("onbeforecut",t)}get onbeforepaste(){return S.getEventListener(this,"onbeforepaste")}set onbeforepaste(t){this[p].set("onbeforepaste",t)}get onsearch(){return S.getEventListener(this,"onsearch")}set onsearch(t){this[p].set("onsearch",t)}get tagName(){return this[z]}get prefix(){return this[Ft]}get shadowRoot(){let t=this[be];return t&&t[Ee]==="open"?t:null}get scrollHeight(){return this[Jd]}get scrollWidth(){return this[Zd]}get scrollTop(){return this[Th]}set scrollTop(t){this[Th]=t}get scrollLeft(){return this[Ch]}set scrollLeft(t){this[Ch]=t}get attributes(){if(!this[va])this[va]=cc.createProxy(this[St]);return this[va]}get namespaceURI(){return this[J]}get children(){if(!this[ir]){let t=this[bt];this[ir]=new de(h,()=>t)}return this[ir]}get classList(){if(!this[Aa])this[Aa]=new Or(h,this,"class");return this[Aa]}set classList(t){this.setAttribute("class",t)}get id(){return this.getAttribute("id")||""}set id(t){this.setAttribute("id",t)}get className(){return this.getAttribute("class")||""}set className(t){this.setAttribute("class",t)}get nodeName(){return this[z]}get localName(){return this[ot]}get role(){return this.getAttribute("role")||""}set role(t){this.setAttribute("role",t)}get previousElementSibling(){return rl.previousElementSibling(this)}get nextElementSibling(){return rl.nextElementSibling(this)}get textContent(){let t="";for(let e of this[_])if(e[D]===T.elementNode||e[D]===T.textNode)t+=e.textContent;return t}set textContent(t){let e=this[_];while(e.length)this.removeChild(e[0]);if(t)this.appendChild(this[x].createTextNode(t))}get innerHTML(){return this.getHTML()}set innerHTML(t){let e=this[_];while(e.length)this.removeChild(e[0]);new Cr(this[m]).parse(t,this)}get outerHTML(){return new ai().serializeToString(this)}set outerHTML(t){let e=new Cr(this[m]).parse(t)[_];this.replaceWith(...e)}get childElementCount(){return this[bt].length}get firstElementChild(){return this[bt][0]??null}get lastElementChild(){let t=this[bt];return t[t.length-1]??null}get slot(){return this.getAttributeNS(null,"slot")||""}set slot(t){this.setAttribute("slot",t)}getInnerHTML(t){let e=new ai({allShadowRoots:!!t?.includeShadowRoots}),o="";for(let s of this[_])o+=e.serializeToString(s);return o}getHTML(t){let e=new ai({serializableShadowRoots:!!t?.serializableShadowRoots,shadowRoots:t?.shadowRoots??null}),o="";for(let s of this[_])o+=e.serializeToString(s);return o}[ct](t=!1){let e=super[ct](t);if(e[z]=this[z],e[ot]=this[ot],e[J]=this[J],this[be]?.[Gn])e[be]=this[be].cloneNode(t),e[be][Mn]=e;e[St]=new ln(e);for(let o of this[St][Q].values())e[St].setNamedItem(o.cloneNode(t));return e}remove(){ni.remove(this)}replaceWith(...t){ni.replaceWith(this,...t)}before(...t){ni.before(this,...t)}after(...t){ni.after(this,...t)}append(...t){oe.append(this,...t)}prepend(...t){oe.prepend(this,...t)}replaceChildren(...t){oe.replaceChildren(this,...t)}insertAdjacentElement(t,e){if(t==="beforebegin"){if(!this.parentElement)return null;this.parentElement.insertBefore(e,this)}else if(t==="afterbegin")this.insertBefore(e,this.firstChild);else if(t==="beforeend")this.appendChild(e);else if(t==="afterend"){if(!this.parentElement)return null;this.parentElement.insertBefore(e,this.nextSibling)}return e}insertAdjacentHTML(t,e){let o=new Cr(this[m]).parse(e)[_];while(o.length)this.insertAdjacentElement(t,o[0])}insertAdjacentText(t,e){if(!e)return;let o=this[x].createTextNode(e);this.insertAdjacentElement(t,o)}setAttribute(t,e){if(Zb.validateAttributeName(t,this[x][xe],{method:"setAttribute",instance:"Element"}),t=String(t),this[J]===Ht.html){let s=this[x].createAttribute(t);s[q]=String(e),this[St][zo](s)}else{let s=t.split(":"),n=null;switch(s[0]){case"xmlns":n=!s[1]||s[1]==="xlink"?Ht.xmlns:null;break;case"xlink":n=Ht.xlink;break}let l=Ve.createNode(this[x],this[m].Attr);l[J]=n,l[rt]=t,l[ot]=n&&s[1]?s[1]:t,l[Ft]=n&&s[1]?s[0]:null,l[q]=String(e),this[St][zo](l)}}setAttributeNS(t,e,o){let s=this[x].createAttributeNS(t,e);if(!t&&s[Ft])throw new this[m].DOMException("Failed to execute 'setAttributeNS' on 'Element': '' is an invalid namespace for attributes.",w.namespaceError);s[q]=String(o),this[St].setNamedItemNS(s)}getAttributeNames(){let t=[];for(let e of this[St][Q].values())t.push(e[rt]);return t}getAttribute(t){let e=this[St].getNamedItem(t);if(e)return e[q];return null}toggleAttribute(t,e){t=t.toLowerCase();let o=this[St].getNamedItem(t);if(o){if(e===!0)return!0;return this[St][Os](o),!1}if(e===!1)return!1;return this.setAttribute(t,""),!0}getAttributeNS(t,e){let o=this.getAttributeNodeNS(t,e);if(o)return o[q];return null}hasAttribute(t){return!!this.getAttributeNode(t)}hasAttributeNS(t,e){return this[St].getNamedItemNS(t,e)!==null}hasAttributes(){return this[St][Q].size>0}removeAttribute(t){let e=this[St].getNamedItem(t);if(e)this[St][Os](e)}removeAttributeNS(t,e){let o=this[St].getNamedItemNS(t,e);if(o)this[St][Os](o)}attachShadow(t){let e=this[m];if(!t)throw new e.TypeError("Failed to execute 'attachShadow' on 'Element': 1 argument required, but only 0 present.");if(!t.mode)throw new e.TypeError("Failed to execute 'attachShadow' on 'Element': Failed to read the 'mode' property from 'ShadowRootInit': Required member is undefined.");if(t.mode!=="open"&&t.mode!=="closed")throw new e.TypeError(`Failed to execute 'attachShadow' on 'Element': Failed to read the 'mode' property from 'ShadowRootInit': The provided value '${t.mode}' is not a valid enum value of type ShadowRootMode.`);if(this[be])throw new e.DOMException("Failed to execute 'attachShadow' on 'Element': Shadow root cannot be created on a host which already hosts a shadow tree.");let o=Ve.createNode(this[x],this[m].ShadowRoot);return this[be]=o,o[Mn]=this,o[Ee]=t.mode,o[Gn]=!!t.clonable,o[kl]=!!t.delegateFocus,o[Hi]=!!t.serializable,o[Ei]=t.slotAssignment==="manual"?"manual":"named",o[Zr](),this[be]}toString(){return this.outerHTML}getBoundingClientRect(){return new li}getClientRects(){let t=new em(h);return t.push(this.getBoundingClientRect()),t}setPointerCapture(t){this[Cm].add(t)}hasPointerCapture(t){return this[Cm].has(t)}releasePointerCapture(t){this[Cm].delete(t)}matches(t){return!!yt.matches(this,t)}closest(t){let e=this;while(e){if(yt.matches(e,t))return e;e=e.parentElement}return null}querySelectorAll(t){return yt.querySelectorAll(this,t)}querySelector(t){return yt.querySelector(this,t)}getElementsByClassName(t){return oe.getElementsByClassName(this,t)}getElementsByTagName(t){return oe.getElementsByTagName(this,t)}getElementsByTagNameNS(t,e){return oe.getElementsByTagNameNS(this,t,e)}setAttributeNode(t){return this[St].setNamedItem(t)}setAttributeNodeNS(t){return this[St].setNamedItemNS(t)}getAttributeNode(t){return this[St].getNamedItem(t)}getAttributeNodeNS(t,e){return this[St].getNamedItemNS(t,e)}removeAttributeNode(t){if(t[xt]!==this)throw new this[m].DOMException("Failed to execute 'removeAttributeNode' on 'Element': The node provided is owned by another element.");return this[St][Os](t),t}scroll(t,e){if(typeof t!=="object"&&arguments.length===1)throw new this[m].TypeError("Failed to execute 'scroll' on 'Element': The provided value is not of type 'ScrollToOptions'.");let o=typeof t==="object"?t:{left:t,top:e};if(o.behavior==="smooth")this[m].setTimeout(()=>{if(o.top!==void 0){let s=Number(o.top);this.scrollTop=isNaN(s)?0:s}if(o.left!==void 0){let s=Number(o.left);this.scrollLeft=isNaN(s)?0:s}});else{if(o.top!==void 0){let s=Number(o.top);this.scrollTop=isNaN(s)?0:s}if(o.left!==void 0){let s=Number(o.left);this.scrollLeft=isNaN(s)?0:s}}}scrollTo(t,e){if(typeof t!=="object"&&arguments.length===1)throw new this[m].TypeError("Failed to execute 'scrollTo' on 'Element': The provided value is not of type 'ScrollToOptions'.");this.scroll(t,e)}scrollBy(t,e){if(typeof t!=="object"&&arguments.length===1)throw new this[m].TypeError("Failed to execute 'scrollBy' on 'Element': The provided value is not of type 'ScrollToOptions'.");let o=typeof t==="object"?t:{left:t,top:e};this.scroll({left:this.scrollLeft+(o.left??0),top:this.scrollTop+(o.top??0),behavior:o.behavior})}scrollIntoView(t){}[Et](t,e=!1){let o=super[Et](t,e);return this.#r(t),o}[hr](t){let e=super[hr](t);return this.#r(t),e}[kr](t,e,o=!1){let s=super[kr](t,e,o);return this.#r(t),s}[Re](t,e){if(!t[rt])return;let o=e?e[q]:null;if(t[rt]==="slot"&&this[W]&&this[W][be]){let s=this[W][be];if(s&&t[q]!==o){if(o!==null&&e){let l=s.querySelector(`slot[name="${e[q]}"]`);if(l)l.dispatchEvent(new N("slotchange",{bubbles:!0}))}else{let l=s.querySelector("slot:not([name])");if(l)l.dispatchEvent(new N("slotchange",{bubbles:!0}))}let n=s.querySelector(`slot[name="${t[q]}"]`);if(n)n.dispatchEvent(new N("slotchange",{bubbles:!0}))}}if(this[t[rt]]!==void 0&&t[rt][0]==="o"&&t[rt][1]==="n")this[p].delete(t[rt]);if(t[rt]==="id"&&this[tt]){if(e?.[q])this.#e(e[q]);this.#t(t[q])}this[Oi](new Vo({type:si.attributes,target:this,attributeName:t[rt],oldValue:o}))}[br](t){if(t[rt]==="slot"&&this[W]&&this[W][be]){let e=this[W][be],o=e.querySelector(`slot[name="${t[q]}"]`),s=e.querySelector("slot:not([name])");if(o)o.dispatchEvent(new N("slotchange",{bubbles:!0}));if(s)s.dispatchEvent(new N("slotchange",{bubbles:!0}))}if(t[rt]==="id"&&this[tt])this.#e(t[q]);this[Oi](new Vo({type:si.attributes,target:this,attributeName:t[rt],oldValue:t[q]}))}[sr](){let t=this.getAttribute("id");if(t)this.#t(t);if(super[sr](),this[m][Qs].enqueueReaction(this,"connectedCallback"),this[be])for(let e of this[_])this.#r(e)}[nr](){super[nr]();let t=this.getAttribute("id");if(t)this.#e(t);this[m][Qs].enqueueReaction(this,"disconnectedCallback")}[At](){let t=this.getAttribute("id");if(t)this.#e(t);if(this[m][Qs].enqueueReaction(this,"disconnectedCallback"),super[At](),this[be])this[be][At]();this[Aa]=null,this[be]=null,this[va]=null,this[ir]=null,this[Ll]=null,this[p].clear(),this[St][Ai].clear(),this[St][Wr].clear(),this[St][Q].clear()}#t(t){if(!t)return;let e=this[x],o=this[m];if(this[ve]&&this[ve]!==e)return;if(!e[wi].has(t))e[wi].set(t,{elements:[],htmlCollection:null});let s=e[wi].get(t);if(!s)return;let n=this[Vt]||this;if(s.elements.push(n),s.elements.length>1){if(!s.htmlCollection)s.htmlCollection=new de(h,()=>s.elements);if(!(t in o)||o[t]===s.elements[0])o[t]=s.htmlCollection}else if(!(t in o)||s.htmlCollection!==null&&o[t]===s.htmlCollection)o[t]=n}#e(t){if(!t)return;let e=this[x],o=this[m];if(this[ve]&&this[ve]!==e)return;let s=e[wi].get(t);if(!s)return;let n=this[Vt]||this,l=s.elements.indexOf(n);if(l!==-1)s.elements.splice(l,1);if(s.elements.length===1){if(o[t]===s.htmlCollection)o[t]=s.elements[0];s.htmlCollection=null}else if(!s.elements.length){if(e[wi].delete(t),o[t]===n||o[t]===s.htmlCollection)delete o[t]}}#r(t){let e=this[be];if(!e||!this[tt])return;let o=t.getAttribute?t.getAttribute("slot"):null;if(o){let s=e.querySelector(`slot[name="${o}"]`);if(s)s.dispatchEvent(new N("slotchange",{bubbles:!0}))}else if(t[D]!==T.commentNode){let s=e.querySelector("slot:not([name])");if(s)s.dispatchEvent(new N("slotchange",{bubbles:!0}))}}}class il{static blur(t){let e=t[Vt]||t,o=e[x];if(o[Me]!==e||!e[tt]||e.disabled)return;let s=o[Rs]??null;o[Me]=null,o[Mr](),e.dispatchEvent(new cs("blur",{relatedTarget:s,bubbles:!1,composed:!0,cancelable:!0})),e.dispatchEvent(new cs("focusout",{relatedTarget:s,bubbles:!0,composed:!0,cancelable:!0}))}static focus(t){let e=t[Vt]||t,o=e[x];if(o[Me]===e||!e[tt]||e.disabled||this.isInert(e))return;o[Rs]=e;let s=o[Me];if(o[Me]!==null)o[Me].blur();o[Rs]=null,o[Me]=e,o[Mr](),e.dispatchEvent(new cs("focus",{relatedTarget:s,bubbles:!1,composed:!0})),e.dispatchEvent(new cs("focusin",{relatedTarget:s,bubbles:!0,composed:!0}))}static isInert(t){let e=t[Vt]||t;while(e&&typeof e.getAttribute==="function"){if(e.getAttribute("inert")!==null)return!0;e=e[W]}return!1}}class fs{static kebabToCamelCase(t){let e=t.split("-");for(let o=0,s=e.length;o<s;o++)e[o]=o>0?e[o].charAt(0).toUpperCase()+e[o].slice(1):e[o];return e.join("")}static camelCaseToKebab(t){return t.toString().replace(/[A-Z]+(?![a-z])|[A-Z]/g,(e,o)=>(o?"-":"")+e.toLowerCase())}}class rm{constructor(t,e){if(t!==h)throw TypeError("Illegal constructor");return new Proxy(this,{get(o,s){let n=e.getAttribute("data-"+fs.camelCaseToKebab(s));if(n!==null)return n},set(o,s,n){return e.setAttribute("data-"+fs.camelCaseToKebab(s),n),!0},deleteProperty(o,s){return e.removeAttribute("data-"+fs.camelCaseToKebab(s)),!0},ownKeys(o){let s=[];for(let n of e[St][Wr].values())if(n[0][rt].startsWith("data-"))s.push(fs.kebabToCamelCase(n[0][rt].replace("data-","")));return s},has(o,s){return e.hasAttribute("data-"+fs.camelCaseToKebab(s))},defineProperty(o,s,n){if(n.value===void 0)return!1;return e.setAttribute("data-"+fs.camelCaseToKebab(s),n.value),!0},getOwnPropertyDescriptor(o,s){let n=e.getAttribute("data-"+fs.camelCaseToKebab(s));if(!n)return;return{value:n,writable:!0,enumerable:!0,configurable:!0}}})}}class B extends Gr{static observedAttributes;[Ta]="";[tb]=0;[eb]=0;[rb]=0;[ob]=0;[ib]=0;[sb]=0;[nb]=0;[lb]=0;[ge]=null;[Uh]=null;#t=null;get oncancel(){return S.getEventListener(this,"oncancel")}set oncancel(t){this[p].set("oncancel",t)}get onerror(){return S.getEventListener(this,"onerror")}set onerror(t){this[p].set("onerror",t)}get onscroll(){return S.getEventListener(this,"onscroll")}set onscroll(t){this[p].set("onscroll",t)}get onselect(){return S.getEventListener(this,"onselect")}set onselect(t){this[p].set("onselect",t)}get onwheel(){return S.getEventListener(this,"onwheel")}set onwheel(t){this[p].set("onwheel",t)}get oncopy(){return S.getEventListener(this,"oncopy")}set oncopy(t){this[p].set("oncopy",t)}get oncut(){return S.getEventListener(this,"oncut")}set oncut(t){this[p].set("oncut",t)}get onpaste(){return S.getEventListener(this,"onpaste")}set onpaste(t){this[p].set("onpaste",t)}get oncompositionend(){return S.getEventListener(this,"oncompositionend")}set oncompositionend(t){this[p].set("oncompositionend",t)}get oncompositionstart(){return S.getEventListener(this,"oncompositionstart")}set oncompositionstart(t){this[p].set("oncompositionstart",t)}get oncompositionupdate(){return S.getEventListener(this,"oncompositionupdate")}set oncompositionupdate(t){this[p].set("oncompositionupdate",t)}get onblur(){return S.getEventListener(this,"onblur")}set onblur(t){this[p].set("onblur",t)}get onfocus(){return S.getEventListener(this,"onfocus")}set onfocus(t){this[p].set("onfocus",t)}get onfocusin(){return S.getEventListener(this,"onfocusin")}set onfocusin(t){this[p].set("onfocusin",t)}get onfocusout(){return S.getEventListener(this,"onfocusout")}set onfocusout(t){this[p].set("onfocusout",t)}get onkeydown(){return S.getEventListener(this,"onkeydown")}set onkeydown(t){this[p].set("onkeydown",t)}get onkeyup(){return S.getEventListener(this,"onkeyup")}set onkeyup(t){this[p].set("onkeyup",t)}get onauxclick(){return S.getEventListener(this,"onauxclick")}set onauxclick(t){this[p].set("onauxclick",t)}get onclick(){return S.getEventListener(this,"onclick")}set onclick(t){this[p].set("onclick",t)}get oncontextmenu(){return S.getEventListener(this,"oncontextmenu")}set oncontextmenu(t){this[p].set("oncontextmenu",t)}get ondblclick(){return S.getEventListener(this,"ondblclick")}set ondblclick(t){this[p].set("ondblclick",t)}get onmousedown(){return S.getEventListener(this,"onmousedown")}set onmousedown(t){this[p].set("onmousedown",t)}get onmouseenter(){return S.getEventListener(this,"onmouseenter")}set onmouseenter(t){this[p].set("onmouseenter",t)}get onmouseleave(){return S.getEventListener(this,"onmouseleave")}set onmouseleave(t){this[p].set("onmouseleave",t)}get onmousemove(){return S.getEventListener(this,"onmousemove")}set onmousemove(t){this[p].set("onmousemove",t)}get onmouseout(){return S.getEventListener(this,"onmouseout")}set onmouseout(t){this[p].set("onmouseout",t)}get onmouseover(){return S.getEventListener(this,"onmouseover")}set onmouseover(t){this[p].set("onmouseover",t)}get onmouseup(){return S.getEventListener(this,"onmouseup")}set onmouseup(t){this[p].set("onmouseup",t)}get ontouchcancel(){return S.getEventListener(this,"ontouchcancel")}set ontouchcancel(t){this[p].set("ontouchcancel",t)}get ontouchend(){return S.getEventListener(this,"ontouchend")}set ontouchend(t){this[p].set("ontouchend",t)}get ontouchmove(){return S.getEventListener(this,"ontouchmove")}set ontouchmove(t){this[p].set("ontouchmove",t)}get ontouchstart(){return S.getEventListener(this,"ontouchstart")}set ontouchstart(t){this[p].set("ontouchstart",t)}get oninvalid(){return S.getEventListener(this,"oninvalid")}set oninvalid(t){this[p].set("oninvalid",t)}get onanimationcancel(){return S.getEventListener(this,"onanimationcancel")}set onanimationcancel(t){this[p].set("onanimationcancel",t)}get onanimationend(){return S.getEventListener(this,"onanimationend")}set onanimationend(t){this[p].set("onanimationend",t)}get onanimationiteration(){return S.getEventListener(this,"onanimationiteration")}set onanimationiteration(t){this[p].set("onanimationiteration",t)}get onanimationstart(){return S.getEventListener(this,"onanimationstart")}set onanimationstart(t){this[p].set("onanimationstart",t)}get onbeforeinput(){return S.getEventListener(this,"onbeforeinput")}set onbeforeinput(t){this[p].set("onbeforeinput",t)}get oninput(){return S.getEventListener(this,"oninput")}set oninput(t){this[p].set("oninput",t)}get onchange(){return S.getEventListener(this,"onchange")}set onchange(t){this[p].set("onchange",t)}get ongotpointercapture(){return S.getEventListener(this,"ongotpointercapture")}set ongotpointercapture(t){this[p].set("ongotpointercapture",t)}get onlostpointercapture(){return S.getEventListener(this,"onlostpointercapture")}set onlostpointercapture(t){this[p].set("onlostpointercapture",t)}get onpointercancel(){return S.getEventListener(this,"onpointercancel")}set onpointercancel(t){this[p].set("onpointercancel",t)}get onpointerdown(){return S.getEventListener(this,"onpointerdown")}set onpointerdown(t){this[p].set("onpointerdown",t)}get onpointerenter(){return S.getEventListener(this,"onpointerenter")}set onpointerenter(t){this[p].set("onpointerenter",t)}get onpointerleave(){return S.getEventListener(this,"onpointerleave")}set onpointerleave(t){this[p].set("onpointerleave",t)}get onpointermove(){return S.getEventListener(this,"onpointermove")}set onpointermove(t){this[p].set("onpointermove",t)}get onpointerout(){return S.getEventListener(this,"onpointerout")}set onpointerout(t){this[p].set("onpointerout",t)}get onpointerover(){return S.getEventListener(this,"onpointerover")}set onpointerover(t){this[p].set("onpointerover",t)}get onpointerup(){return S.getEventListener(this,"onpointerup")}set onpointerup(t){this[p].set("onpointerup",t)}get ontransitioncancel(){return S.getEventListener(this,"ontransitioncancel")}set ontransitioncancel(t){this[p].set("ontransitioncancel",t)}get ontransitionend(){return S.getEventListener(this,"ontransitionend")}set ontransitionend(t){this[p].set("ontransitionend",t)}get ontransitionrun(){return S.getEventListener(this,"ontransitionrun")}set ontransitionrun(t){this[p].set("ontransitionrun",t)}get ontransitionstart(){return S.getEventListener(this,"ontransitionstart")}set ontransitionstart(t){this[p].set("ontransitionstart",t)}get accessKey(){return this[Ta]}set accessKey(t){this[Ta]=t}get contentEditable(){let t=String(this.getAttribute("contentEditable")).toLowerCase();switch(t){case"false":case"true":case"plaintext-only":return t;default:return"inherit"}}set contentEditable(t){switch(t=String(t).toLowerCase(),t){case"false":case"true":case"plaintext-only":case"inherit":this.setAttribute("contentEditable",t);break;default:throw new this[m].SyntaxError(`Failed to set the 'contentEditable' property on 'HTMLElement': The value provided ('${t}') is not one of 'true', 'false', 'plaintext-only', or 'inherit'.`)}}get isContentEditable(){let t=this.contentEditable;if(t==="true"||t==="plaintext-only")return!0;if(t==="inherit")return this[W]?.isContentEditable??!1;return!1}get offsetHeight(){return this[tb]}get offsetWidth(){return this[eb]}get offsetLeft(){return this[rb]}get offsetTop(){return this[ob]}get clientHeight(){return this[ib]}get clientWidth(){return this[sb]}get clientLeft(){return this[nb]}get clientTop(){return this[lb]}get tabIndex(){let t=this.getAttribute("tabindex");if(t!==null){let e=Number(t);return isNaN(e)?-1:e}return-1}set tabIndex(t){let e=Number(t);if(isNaN(e))this.setAttribute("tabindex","0");else this.setAttribute("tabindex",String(e))}get innerText(){if(!this[tt])return this.textContent;let t="";for(let e of this[_])if(e[D]===T.elementNode){let o=e,s=this[m].getComputedStyle(o);if(o[z]!=="SCRIPT"&&o[z]!=="STYLE"&&o[z]!=="svg"){let n=s.display;if(n!=="none"){let l=s.textTransform,a=o.innerText;if((n==="block"||n==="flex")&&t&&a)t+=`
91
- `;let y=a;switch(l){case"uppercase":y=y.toUpperCase();break;case"lowercase":y=y.toLowerCase();break;case"capitalize":y=y.replace(/(^|\s)\S/g,(u)=>u.toUpperCase());break}t+=y}}}else if(e[D]===T.textNode)t+=e.textContent.replace(/[\n\r]/,"");return t}set innerText(t){let e=this[_];while(e.length)this.removeChild(e[0]);let o=t.split(/[\n\r]/),s=this[x];for(let n=0,l=o.length;n<l;n++){if(n!==0)this.appendChild(s.createElement("br"));this.appendChild(s.createTextNode(o[n]))}}get outerText(){return this.innerText}set outerText(t){if(!this[W])throw new this[m].DOMException("Failed to set the 'outerHTML' property on 'Element': This element has no parent node.");let e=t.split(/[\n\r]/);for(let o=0,s=e.length;o<s;o++){if(o!==0)this[W].insertBefore(this[x].createElement("br"),this);this[W].insertBefore(this[x].createTextNode(e[o]),this)}this[W].removeChild(this)}get style(){if(!this[ge])this[ge]=new Kr(h,this[m],{element:this});return this[ge]}set style(t){this.style.cssText=typeof t==="string"?t:""}get dataset(){return this[Uh]??=new rm(h,this)}get dir(){return this.getAttribute("dir")||""}set dir(t){this.setAttribute("dir",t)}get hidden(){return this.getAttribute("hidden")!==null}set hidden(t){if(!t)this.removeAttribute("hidden");else this.setAttribute("hidden","")}get inert(){return this.getAttribute("inert")!==null}set inert(t){if(!t)this.removeAttribute("inert");else this.setAttribute("inert","")}get lang(){return this.getAttribute("lang")||""}set lang(t){this.setAttribute("lang",t)}get title(){return this.getAttribute("title")||""}set title(t){this.setAttribute("title",t)}get popover(){switch(this.getAttribute("popover")){case null:return null;case"":case"auto":return"auto";case"manual":return"manual";default:return"manual"}}set popover(t){if(t===null){this.removeAttribute("popover");return}this.setAttribute("popover",t)}click(){this.dispatchEvent(new Zl("click",{bubbles:!0,composed:!0,cancelable:!0}))}blur(){il.blur(this)}focus(){il.focus(this)}[ct](t=!1){let e=super[ct](t);return e[Ta]=this[Ta],e}[sr](){let t=this[m],e=this[ot],o=t.customElements[bi];if(this.constructor===t.HTMLElement&&e.includes("-")&&o){if(!this.#t){let s=this.#e.bind(this),n=o.get(e);if(n)n.unshift(s);else o.set(e,[s]);this.#t=s}}super[sr]()}[nr](){let t=this[m],e=this[ot],o=t.customElements[bi];if(this.constructor===t.HTMLElement&&e.includes("-")&&o){let s=o.get(e);if(s&&this.#t){let n=s.indexOf(this.#t);if(n!==-1)s.splice(n,1);if(!s.length)o.delete(e);this.#t=null}}super[nr]()}[Re](t,e){super[Re](t,e),this[m][Qs].enqueueReaction(this,"attributeChangedCallback",[t.name,e?.value??null,t.value])}[br](t){super[br](t),this[m][Qs].enqueueReaction(this,"attributeChangedCallback",[t.name,t.value,null])}[At](){super[At](),this[ge]=null,this[Uh]=null}#e(){if(!this[W])return;let t=this[m],e=this[ot],o=this[x].createElement(e),s=o[U];o[_]=this[_],o[bt]=this[bt],o[Ns]=null,o[ir]=null,o[tt]=this[tt],o[ve]=this[ve],o[Ut]=this[Ut],o[W]=this[W],o[Ie]=this[Ie],o[Je]=this[Je],o[ro]=this[ro],o[eo]=this[eo],o[U]=this[U],o[He]=this[He],o[St][Ai]=this[St][Ai],o[St][Wr]=this[St][Wr],o[St][Q]=this[St][Q];for(let u of o[St][Q].values())u[xt]=o;this[Mr](),this[_]=[],this[bt]=[],this[Ns]=null,this[ir]=null,this[W]=null,this[ve]=null,this[Ut]=null,this[Ie]=null,this[Je]=null,this[ro]=[],this[eo]=null,this[U]=s,this[He]=[],this[St][Ai]=new Map,this[St][Wr]=new Map,this[St][Q]=new Map;for(let u of o[_])u[W]=o;let n=o[W][_],l=o[W][bt];n[n.indexOf(this)]=o,l[l.indexOf(this)]=o;let a=t.customElements[bi],y=a.get(e);if(y&&this.#t){let u=y.indexOf(this.#t);if(u!==-1)y.splice(u,1);if(!y.length)a.delete(e);this.#t=null}if(o[tt]){if(o[be])o[be][tt]=!0;o[sr]()}}}class om{element;constructor(t){this.element=t}getOrigin(){try{return new URL(this.getHref()).origin}catch(t){return""}}getHref(){if(!this.element.hasAttribute("href"))return"";try{return new URL(this.element.getAttribute("href"),this.element[x].location.href).href}catch(t){return this.element.getAttribute("href")}}setHref(t){this.element.setAttribute("href",t)}getProtocol(){try{return new URL(this.getHref()).protocol}catch(t){return""}}setProtocol(t){let e;try{e=new URL(this.getHref())}catch(o){return}e.protocol=t,this.element.setAttribute("href",e.href)}getUsername(){try{return new URL(this.getHref()).username}catch(t){return""}}setUsername(t){let e;try{e=new URL(this.getHref())}catch(o){return}e.username=t,this.element.setAttribute("href",e.href)}getPassword(){try{return new URL(this.getHref()).password}catch(t){return""}}setPassword(t){let e;try{e=new URL(this.getHref())}catch(o){return}e.password=t,this.element.setAttribute("href",e.href)}getHost(){try{return new URL(this.getHref()).host}catch(t){return""}}setHost(t){let e;try{e=new URL(this.getHref())}catch(o){return}e.host=t,this.element.setAttribute("href",e.href)}getHostname(){try{return new URL(this.getHref()).hostname}catch(t){return""}}setHostname(t){let e;try{e=new URL(this.getHref())}catch(o){return}e.hostname=t,this.element.setAttribute("href",e.href)}getPort(){try{return new URL(this.getHref()).port}catch(t){return""}}setPort(t){let e;try{e=new URL(this.getHref())}catch(o){return}e.port=t,this.element.setAttribute("href",e.href)}getPathname(){try{return new URL(this.getHref()).pathname}catch(t){return""}}setPathname(t){let e;try{e=new URL(this.getHref())}catch(o){return}e.pathname=t,this.element.setAttribute("href",e.href)}getSearch(){try{return new URL(this.getHref()).search}catch(t){return""}}setSearch(t){let e;try{e=new URL(this.getHref())}catch(o){return}e.search=t,this.element.setAttribute("href",e.href)}getHash(){let t=this.element.getAttribute("href");if(t?.[0]==="#")return t;let e;try{e=new URL(this.getHref())}catch(o){return""}return e.hash}setHash(t){let e;try{e=new URL(this.getHref())}catch(o){return}e.hash=t,this.element.setAttribute("href",e.href)}}class Rp extends B{[oo]=null;#t=new om(this);get download(){return this.getAttribute("download")||""}set download(t){this.setAttribute("download",t)}get hash(){return this.#t.getHash()}set hash(t){this.#t.setHash(t)}get href(){return this.#t.getHref()}set href(t){this.#t.setHref(t)}get hreflang(){return this.getAttribute("hreflang")||""}set hreflang(t){this.setAttribute("hreflang",t)}get origin(){return this.#t.getOrigin()}get ping(){return this.getAttribute("ping")||""}set ping(t){this.setAttribute("ping",t)}get protocol(){return this.#t.getProtocol()}set protocol(t){this.#t.setProtocol(t)}get username(){return this.#t.getUsername()}set username(t){this.#t.setUsername(t)}get password(){return this.#t.getPassword()}set password(t){this.#t.setPassword(t)}get pathname(){return this.#t.getPathname()}set pathname(t){this.#t.setPathname(t)}get port(){return this.#t.getPort()}set port(t){this.#t.setPort(t)}get host(){return this.#t.getHost()}set host(t){this.#t.setHost(t)}get hostname(){return this.#t.getHostname()}set hostname(t){this.#t.setHostname(t)}get referrerPolicy(){return this.getAttribute("referrerPolicy")||""}set referrerPolicy(t){this.setAttribute("referrerPolicy",t)}get rel(){return this.getAttribute("rel")||""}set rel(t){this.setAttribute("rel",t)}get relList(){if(!this[oo])this[oo]=new Or(h,this,"rel");return this[oo]}set relList(t){this.setAttribute("rel",t)}get search(){return this.#t.getSearch()}set search(t){this.#t.setSearch(t)}get target(){return this.getAttribute("target")||""}set target(t){this.setAttribute("target",t)}get text(){return this.textContent}set text(t){this.textContent=t}get type(){return this.getAttribute("type")||""}set type(t){this.setAttribute("type",t)}get tabIndex(){let t=this.getAttribute("tabindex");if(t!==null){let e=Number(t);return isNaN(e)?0:e}return 0}set tabIndex(t){super.tabIndex=t}toString(){return this.href}dispatchEvent(t){let e=super.dispatchEvent(t);if(!t[lr]&&t.type==="click"&&t instanceof qe&&(t.eventPhase===ae.none||t.eventPhase===ae.bubbling)){let o=this.href;if(o){let s=[];if(this.relList.contains("noreferrer"))s.push("noreferrer");if(this.relList.contains("noopener"))s.push("noopener");if(this[m].open(o,this.target||"_self",s.join(",")),this[m].closed)t.stopImmediatePropagation()}}return e}}class Fp extends B{[oo]=null;#t=new om(this);get alt(){return this.getAttribute("alt")||""}set alt(t){this.setAttribute("alt",t)}get coords(){return this.getAttribute("coords")||""}set coords(t){this.setAttribute("coords",t)}get shape(){return this.getAttribute("shape")||""}set shape(t){this.setAttribute("shape",t)}get download(){return this.getAttribute("download")||""}set download(t){this.setAttribute("download",t)}get referrerPolicy(){return this.getAttribute("referrerPolicy")||""}set referrerPolicy(t){this.setAttribute("referrerPolicy",t)}get ping(){return this.getAttribute("ping")||""}set ping(t){this.setAttribute("ping",t)}get rel(){return this.getAttribute("rel")||""}set rel(t){this.setAttribute("rel",t)}get relList(){if(!this[oo])this[oo]=new Or(h,this,"rel");return this[oo]}set relList(t){this.setAttribute("rel",t)}get target(){return this.getAttribute("target")||""}set target(t){this.setAttribute("target",t)}get origin(){return this.#t.getOrigin()}get href(){return this.#t.getHref()}set href(t){this.#t.setHref(t)}get protocol(){return this.#t.getProtocol()}set protocol(t){this.#t.setProtocol(t)}get username(){return this.#t.getUsername()}set username(t){this.#t.setUsername(t)}get password(){return this.#t.getPassword()}set password(t){this.#t.setPassword(t)}get host(){return this.#t.getHost()}set host(t){this.#t.setHost(t)}get hostname(){return this.#t.getHostname()}set hostname(t){this.#t.setHostname(t)}get port(){return this.#t.getPort()}set port(t){this.#t.setPort(t)}get pathname(){return this.#t.getPathname()}set pathname(t){this.#t.setPathname(t)}get search(){return this.#t.getSearch()}set search(t){this.#t.setSearch(t)}get hash(){return this.#t.getHash()}set hash(t){this.#t.setHash(t)}get tabIndex(){let t=this.getAttribute("tabindex");if(t!==null){let e=Number(t);return isNaN(e)?0:e}return 0}set tabIndex(t){super.tabIndex=t}toString(){return this.href}dispatchEvent(t){let e=super.dispatchEvent(t);if(!t[lr]&&t[Qt]==="click"&&t[xr]===ae.none&&t instanceof qe){let o=this.href;if(o){if(this[m].open(o,this.target||"_self"),this[m].closed)t.stopImmediatePropagation()}}return e}}class sl{constructor(t){if(t!==h)throw TypeError("Illegal constructor")}get length(){return 0}get[Symbol.toStringTag](){return"TimeRanges"}toLocaleString(){return"[object TimeRanges]"}toString(){return"[object TimeRanges]"}start(t){return 0}end(t){return 0}}import JP from"crypto";class Vp extends N{track;constructor(t,e=null){super(t,e);this.track=e?.track??null}}class nl extends vt{active=!0;id=JP.randomUUID();onaddtrack=null;onremovetrack=null;[fi]=[];constructor(t){super();if(!this[m])throw TypeError(`Failed to construct '${this.constructor.name}': '${this.constructor.name}' was constructed outside a Window context.`);if(t!==void 0)this[fi]=t instanceof nl?t[fi].slice():t}addTrack(t){if(this[fi].includes(t))return;this[fi].push(t),this.dispatchEvent(new Vp("addtrack",{track:t}))}clone(){return new this.constructor(this)}getAudioTracks(){return this[fi].filter((t)=>t.kind==="audio")}getTrackById(t){for(let e of this[fi])if(e.id===t)return e;return null}getVideoTracks(){return this[fi].filter((t)=>t.kind==="video")}removeTrack(t){let e=this[fi].indexOf(t);if(e===-1)return;this[fi].splice(e,1),this.dispatchEvent(new Vp("removetrack",{track:t}))}}var tg;(function(t){t.subtitles="subtitles",t.captions="captions",t.descriptions="descriptions",t.chapters="chapters",t.metadata="metadata"})(tg||(tg={}));var Ps=tg;class an extends B{[kh]=1;[Tl]=!0;[Mh]=0;[Ih]=1;[Rh]=1;[Ca]=!1;[Cl]=!1;[Fh]=!0;[pb]=new sl(h);[ub]=NaN;[Qe]=null;[hb]=!1;[cb]=0;[kn]=0;[db]=!1;[bb]=new sl(h);[_h]="";[gb]=new sl(h);[Sb]=new this[m].RemotePlayback;[Dm]=null;[Wh]=null;[Yh]=null;[Vh]=[];get onabort(){return S.getEventListener(this,"onabort")}set onabort(t){this[p].set("onabort",t)}get oncanplay(){return S.getEventListener(this,"oncanplay")}set oncanplay(t){this[p].set("oncanplay",t)}get oncanplaythrough(){return S.getEventListener(this,"oncanplaythrough")}set oncanplaythrough(t){this[p].set("oncanplaythrough",t)}get ondurationchange(){return S.getEventListener(this,"ondurationchange")}set ondurationchange(t){this[p].set("ondurationchange",t)}get onemptied(){return S.getEventListener(this,"onemptied")}set onemptied(t){this[p].set("onemptied",t)}get onended(){return S.getEventListener(this,"onended")}set onended(t){this[p].set("onended",t)}get onloadeddata(){return S.getEventListener(this,"onloadeddata")}set onloadeddata(t){this[p].set("onloadeddata",t)}get onloadedmetadata(){return S.getEventListener(this,"onloadedmetadata")}set onloadedmetadata(t){this[p].set("onloadedmetadata",t)}get onloadstart(){return S.getEventListener(this,"onloadstart")}set onloadstart(t){this[p].set("onloadstart",t)}get onpause(){return S.getEventListener(this,"onpause")}set onpause(t){this[p].set("onpause",t)}get onplay(){return S.getEventListener(this,"onplay")}set onplay(t){this[p].set("onplay",t)}get onplaying(){return S.getEventListener(this,"onplaying")}set onplaying(t){this[p].set("onplaying",t)}get onprogress(){return S.getEventListener(this,"onprogress")}set onprogress(t){this[p].set("onprogress",t)}get onratechange(){return S.getEventListener(this,"onratechange")}set onratechange(t){this[p].set("onratechange",t)}get onresize(){return S.getEventListener(this,"onresize")}set onresize(t){this[p].set("onresize",t)}get onseeked(){return S.getEventListener(this,"onseeked")}set onseeked(t){this[p].set("onseeked",t)}get onseeking(){return S.getEventListener(this,"onseeking")}set onseeking(t){this[p].set("onseeking",t)}get onstalled(){return S.getEventListener(this,"onstalled")}set onstalled(t){this[p].set("onstalled",t)}get onsuspend(){return S.getEventListener(this,"onsuspend")}set onsuspend(t){this[p].set("onsuspend",t)}get ontimeupdate(){return S.getEventListener(this,"ontimeupdate")}set ontimeupdate(t){this[p].set("ontimeupdate",t)}get onvolumechange(){return S.getEventListener(this,"onvolumechange")}set onvolumechange(t){this[p].set("onvolumechange",t)}get onwaiting(){return S.getEventListener(this,"onwaiting")}set onwaiting(t){this[p].set("onwaiting",t)}get buffered(){return this[pb]}get duration(){return this[ub]}get error(){return this[Qe]}get ended(){return this[hb]}get networkState(){return this[cb]}get readyState(){return this[kn]}get remote(){return this[Sb]}get seeking(){return this[db]}get seekable(){return this[bb]}get sinkId(){return this[_h]}get played(){return this[gb]}get autoplay(){return this.getAttribute("autoplay")!==null}set autoplay(t){if(!t)this.removeAttribute("autoplay");else this.setAttribute("autoplay","")}get controls(){return this.getAttribute("controls")!==null}set controls(t){if(!t)this.removeAttribute("controls");else this.setAttribute("controls","")}get loop(){return this.getAttribute("loop")!==null}set loop(t){if(!t)this.removeAttribute("loop");else this.setAttribute("loop","")}get preload(){return this.getAttribute("preload")||"auto"}set preload(t){this.setAttribute("preload",t)}get src(){if(!this.hasAttribute("src"))return"";try{return new URL(this.getAttribute("src"),this[x].location.href).href}catch(t){return this.getAttribute("src")}}set src(t){if(this.setAttribute("src",t),Boolean(t))this.dispatchEvent(new N("canplay",{bubbles:!1,cancelable:!1})),this.dispatchEvent(new N("durationchange",{bubbles:!1,cancelable:!1}))}get controlsList(){if(this[Dm]===null)this[Dm]=new Or(h,this,"controlslist");return this[Dm]}set controlsList(t){this.setAttribute("controlslist",t)}get mediaKeys(){return this[Wh]}get muted(){if(this[Ca])return this[Ca];if(!this[Cl])return this.getAttribute("muted")!==null;return!1}set muted(t){if(this[Ca]=!!t,!t&&!this[Cl])this.removeAttribute("muted");else this.setAttribute("muted","")}get defaultMuted(){return this[Cl]}set defaultMuted(t){if(this[Cl]=!!t,!this[Cl]&&!this[Ca])this.removeAttribute("muted");else this.setAttribute("muted","")}get disableRemotePlayback(){return this.getAttribute("disableremoteplayback")!==null}set disableRemotePlayback(t){if(!t)this.removeAttribute("disableremoteplayback");else this.setAttribute("disableremoteplayback","")}get srcObject(){return this[Yh]}set srcObject(t){if(t!==null&&!(t instanceof nl))throw new this[m].TypeError("Failed to set the 'srcObject' property on 'HTMLMediaElement': The provided value is not of type 'MediaStream'.");this[Yh]=t}get textTracks(){let t=[];for(let e of this[Vh])t.push(e);for(let e of this.querySelectorAll("track")[Q])t.push(e.track);return new this[m].TextTrackList(h,t)}get currentSrc(){let t=this.src;if(t)return t;let e=this.querySelector("source");return e?e.src:""}get volume(){return this[kh]}set volume(t){let e=Number(t);if(isNaN(e))throw new this[m].TypeError("Failed to set the 'volume' property on 'HTMLMediaElement': The provided double value is non-finite.");if(e<0||e>1)throw new this[m].DOMException(`Failed to set the 'volume' property on 'HTMLMediaElement': The volume provided (${e}) is outside the range [0, 1].`,w.indexSizeError);this[kh]=e}get crossOrigin(){let t=this.getAttribute("crossorigin");if(t==="use-credentials")return"use-credentials";if(t!==null)return"anonymous";return null}set crossOrigin(t){this.setAttribute("crossorigin",t)}get currentTime(){return this[Mh]}set currentTime(t){let e=Number(t);if(isNaN(e))throw new this[m].TypeError("Failed to set the 'currentTime' property on 'HTMLMediaElement': The provided double value is non-finite.");this[Mh]=e}get playbackRate(){return this[Ih]}set playbackRate(t){let e=Number(t);if(isNaN(e))throw new this[m].TypeError("Failed to set the 'playbackRate' property on 'HTMLMediaElement': The provided double value is non-finite.");this[Ih]=e}get defaultPlaybackRate(){return this[Rh]}set defaultPlaybackRate(t){let e=Number(t);if(isNaN(e))throw new this[m].TypeError("Failed to set the 'defaultPlaybackRate' property on 'HTMLMediaElement': The provided double value is non-finite.");this[Rh]=e}get preservesPitch(){return this[Fh]}set preservesPitch(t){this[Fh]=Boolean(t)}get paused(){return this[Tl]}get tabIndex(){let t=this.getAttribute("tabindex");if(t!==null){let e=Number(t);return isNaN(e)?0:e}return 0}set tabIndex(t){super.tabIndex=t}addTextTrack(t,e,o){let s=this[m];if(arguments.length===0)throw new s.TypeError("Failed to execute 'addTextTrack' on 'HTMLMediaElement': 1 argument required, but only 0 present.");if(!Ps[t])throw new s.TypeError(`Failed to execute 'addTextTrack' on 'HTMLMediaElement': The provided value '${t}' is not a valid enum value of type TextTrackKind.`);let n=new s.TextTrack(h);return n[xo]=t,n[Us]=e||"",n[Il]=o||"",this[Vh].push(n),n}pause(){if(this[Tl])return;this[Tl]=!0,this.dispatchEvent(new N("pause",{bubbles:!1,cancelable:!1}))}async play(){if(!this[Tl])return;this[Tl]=!1,this.dispatchEvent(new N("play",{bubbles:!1,cancelable:!1})),this.dispatchEvent(new N("playing",{bubbles:!1,cancelable:!1}))}canPlayType(t){return""}fastSeek(t){}load(){this.dispatchEvent(new N("emptied",{bubbles:!1,cancelable:!1}))}async setMediaKeys(t){this[Wh]=t}async setSinkId(t){this[_h]=t}captureStream(){return new this[m].MediaStream}[ct](t=!1){return super[ct](t)}}class ia extends an{}class Dp extends B{get href(){if(!this.hasAttribute("href"))return this[x].location.href;try{return new URL(this.getAttribute("href"),this[x].location.href).href}catch(t){return this.getAttribute("href")}}set href(t){this.setAttribute("href",t)}get target(){return this.getAttribute("target")||""}set target(t){this.setAttribute("target",t)}[ct](t=!1){return super[ct](t)}}class Bp extends B{get onafterprint(){return S.getEventListener(this,"onafterprint")}set onafterprint(t){this[p].set("onafterprint",t)}get onbeforeprint(){return S.getEventListener(this,"onbeforeprint")}set onbeforeprint(t){this[p].set("onbeforeprint",t)}get onbeforeunload(){return S.getEventListener(this,"onbeforeunload")}set onbeforeunload(t){this[p].set("onbeforeunload",t)}get ongamepadconnected(){return S.getEventListener(this,"ongamepadconnected")}set ongamepadconnected(t){this[p].set("ongamepadconnected",t)}get ongamepaddisconnected(){return S.getEventListener(this,"ongamepaddisconnected")}set ongamepaddisconnected(t){this[p].set("ongamepaddisconnected",t)}get onhashchange(){return S.getEventListener(this,"onhashchange")}set onhashchange(t){this[p].set("onhashchange",t)}get onlanguagechange(){return S.getEventListener(this,"onlanguagechange")}set onlanguagechange(t){this[p].set("onlanguagechange",t)}get onmessage(){return S.getEventListener(this,"onmessage")}set onmessage(t){this[p].set("onmessage",t)}get onmessageerror(){return S.getEventListener(this,"onmessageerror")}set onmessageerror(t){this[p].set("onmessageerror",t)}get onoffline(){return S.getEventListener(this,"onoffline")}set onoffline(t){this[p].set("onoffline",t)}get ononline(){return S.getEventListener(this,"ononline")}set ononline(t){this[p].set("ononline",t)}get onpagehide(){return S.getEventListener(this,"onpagehide")}set onpagehide(t){this[p].set("onpagehide",t)}get onpageshow(){return S.getEventListener(this,"onpageshow")}set onpageshow(t){this[p].set("onpageshow",t)}get onpopstate(){return S.getEventListener(this,"onpopstate")}set onpopstate(t){this[p].set("onpopstate",t)}get onrejectionhandled(){return S.getEventListener(this,"onrejectionhandled")}set onrejectionhandled(t){this[p].set("onrejectionhandled",t)}get onstorage(){return S.getEventListener(this,"onstorage")}set onstorage(t){this[p].set("onstorage",t)}get onunhandledrejection(){return S.getEventListener(this,"onunhandledrejection")}set onunhandledrejection(t){this[p].set("onunhandledrejection",t)}get onunload(){return S.getEventListener(this,"onunload")}set onunload(t){this[p].set("onunload",t)}}class Op extends B{}var ZP=/^([^\x00-\x20\x22\x28\x29\x2c\x2e\x3a-\x3c\x3e\x40\x5b-\x5d\x7f-\xff]+|\x22([^\x0d\x22\x5c\x80-\xff]|\x5c[\x00-\x7f])*\x22)(\x2e([^\x00-\x20\x22\x28\x29\x2c\x2e\x3a-\x3c\x3e\x40\x5b-\x5d\x7f-\xff]+|\x22([^\x0d\x22\x5c\x80-\xff]|\x5c[\x00-\x7f])*\x22))*\x40([^\x00-\x20\x22\x28\x29\x2c\x2e\x3a-\x3c\x3e\x40\x5b-\x5d\x7f-\xff]+|\x5b([^\x0d\x5b-\x5d\x80-\xff]|\x5c[\x00-\x7f])*\x5d)(\x2e([^\x00-\x20\x22\x28\x29\x2c\x2e\x3a-\x3c\x3e\x40\x5b-\x5d\x7f-\xff]+|\x5b([^\x0d\x5b-\x5d\x80-\xff]|\x5c[\x00-\x7f])*\x5d))*$/,tA=/^(?:(?:https?|HTTPS?|ftp|FTP):\/\/)(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-zA-Z\u00a1-\uffff0-9]-*)*[a-zA-Z\u00a1-\uffff0-9]+)(?:\.(?:[a-zA-Z\u00a1-\uffff0-9]-*)*[a-zA-Z\u00a1-\uffff0-9]+)*)(?::\d{2,5})?(?:[\/?#]\S*)?$/;class qr{element;constructor(t){this.element=t}get badInput(){return this.element[ot]==="input"&&(this.element.type==="number"||this.element.type==="range")&&this.element.value.length>0&&!/^[-+]?(?:\d+|\d*[.,]\d+)$/.test(this.element.value)}get customError(){return this.element[Ce].length>0}get patternMismatch(){return this.element[ot]==="input"&&this.element.hasAttribute("pattern")&&this.element.value.length>0&&this.element.value.replace(new RegExp(this.element.getAttribute("pattern")),"").length>0}get rangeOverflow(){return this.element[ot]==="input"&&this.element.hasAttribute("max")&&(this.element.type==="number"||this.element.type==="range")&&this.element.value.length>0&&Number(this.element.value)>Number(this.element.getAttribute("max"))}get rangeUnderflow(){return this.element[ot]==="input"&&this.element.hasAttribute("min")&&(this.element.type==="number"||this.element.type==="range")&&this.element.value.length>0&&Number(this.element.value)<Number(this.element.getAttribute("min"))}get stepMismatch(){return this.element[ot]==="input"&&(this.element.type==="number"||this.element.type==="range")&&(this.element.hasAttribute("step")&&this.element.getAttribute("step")!=="any"&&Number(this.element.value)%Number(this.element.getAttribute("step"))!==0||!this.element.hasAttribute("step")&&Number(this.element.value)%1!==0)}get tooLong(){return(this.element[ot]==="input"||this.element[ot]==="textarea")&&this.element.maxLength>0&&this.element.value.length>this.element.maxLength}get tooShort(){return(this.element[ot]==="input"||this.element[ot]==="textarea")&&this.element.minLength>0&&this.element.value.length>0&&this.element.value.length<this.element.minLength}get typeMismatch(){return this.element[ot]==="input"&&this.element.value.length>0&&(this.element.type==="email"&&!ZP.test(this.element.value)||this.element.type==="url"&&!tA.test(this.element.value))}get valueMissing(){if(!this.element.required||this.element[ot]==="object"||this.element[ot]==="output")return!1;if(this.element[ot]==="input"){if(this.element.type==="checkbox")return!this.element.checked;else if(this.element.type==="radio"){if(this.element.checked)return!1;if(!this.element.name)return!0;let t=this.element[Ut]||this.element.getRootNode();return!t||!t.querySelector(`input[name="${this.element.name}"]:checked`)}}return this.element.value.length===0}get valid(){return!this.badInput&&!this.customError&&!this.patternMismatch&&!this.rangeOverflow&&!this.rangeUnderflow&&!this.stepMismatch&&!this.tooLong&&!this.tooShort&&!this.typeMismatch&&!this.valueMissing}}class $r{static getAssociatedLabelElements(t){let e=t.id,o;if(e&&t[tt])o=(t[ve]||t[x]).querySelectorAll(`label[for="${e}"]`)[Q];else o=[];let s=t[W];while(s){if(s.tagName==="LABEL"){o.push(s);break}s=s[W]}return new Yo(h,o)}}import{URL as eA}from"url";var rA=["submit","reset","button","menu"];class Gp extends B{[Ce]="";[Ke]=new qr(this);[Ut]=null;[Hn]=null;get validationMessage(){return this[Ce]}get validity(){return this[Ke]}get name(){return this.getAttribute("name")||""}set name(t){this.setAttribute("name",t)}get value(){return this.getAttribute("value")||""}set value(t){this.setAttribute("value",t)}get disabled(){return this.getAttribute("disabled")!==null}set disabled(t){if(!t)this.removeAttribute("disabled");else this.setAttribute("disabled","")}get type(){let t=this.getAttribute("type");if(t===null||!rA.includes(t))return"submit";return t}set type(t){this.setAttribute("type",t)}get formAction(){if(!this.hasAttribute("formaction"))return this[x].location.href;try{return new eA(this.getAttribute("formaction"),this[x].location.href).href}catch(t){return""}}set formAction(t){this.setAttribute("formaction",t)}get formEnctype(){return this.getAttribute("formenctype")||""}set formEnctype(t){this.setAttribute("formenctype",t)}get formMethod(){return this.getAttribute("formmethod")||""}set formMethod(t){this.setAttribute("formmethod",t)}get formNoValidate(){return this.getAttribute("formnovalidate")!==null}set formNoValidate(t){if(!t)this.removeAttribute("formnovalidate");else this.setAttribute("formnovalidate","")}get formTarget(){return this.getAttribute("formtarget")||""}set formTarget(t){this.setAttribute("formtarget",t)}get form(){if(this[Ut])return this[Ut];let t=this.getAttribute("form");if(!t||!this[tt])return null;return this[x].getElementById(t)}get labels(){return $r.getAssociatedLabelElements(this)}get popoverTargetElement(){return this[Hn]}set popoverTargetElement(t){if(t!==null&&!(t instanceof B))throw new this[m].TypeError("Failed to set the 'popoverTargetElement' property on 'HTMLInputElement': Failed to convert value to 'Element'.");this[Hn]=t}get popoverTargetAction(){let t=this.getAttribute("popovertargetaction");if(t===null||t!=="hide"&&t!=="show"&&t!=="toggle")return"toggle";return t}set popoverTargetAction(t){this.setAttribute("popovertargetaction",t)}get tabIndex(){let t=this.getAttribute("tabindex");if(t!==null){let e=Number(t);return isNaN(e)?0:e}return 0}set tabIndex(t){super.tabIndex=t}checkValidity(){let t=this.disabled||this.type==="reset"||this.type==="button"||this[Ke].valid;if(!t)this.dispatchEvent(new N("invalid",{bubbles:!0,cancelable:!0}));return t}reportValidity(){return this.checkValidity()}setCustomValidity(t){this[Ce]=String(t)}dispatchEvent(t){if(t.type==="click"&&t instanceof qe&&t.eventPhase===ae.none&&this.disabled)return!1;let e=super.dispatchEvent(t);if(!t[lr]&&t.type==="click"&&t.eventPhase===ae.none&&t instanceof qe){let o=this.type;if(o==="submit"||o==="reset"){let s=this.form;if(s){if(o==="submit"&&this[tt])s.requestSubmit(this);else if(o==="reset")s.reset()}}}return e}}class bc{height;width;constructor(t,e){this.width=t,this.height=e}close(){}}class gc{width;height;constructor(t,e){this.width=t,this.height=e}getContext(t,e){return null}async convertToBlob(t){return new ie([])}transferToImageBitmap(){return new bc(this.width,this.height)}}var cS="S3F/aBCdEfGHIjKlMnOpQRStUvWxYz1234567890+1AbC2DEf2GHi3jK34le+ab12C3+1aBCdEf==";class Up extends B{get oncontextlost(){return S.getEventListener(this,"oncontextlost")}set oncontextlost(t){this[p].set("oncontextlost",t)}get oncontextrestored(){return S.getEventListener(this,"oncontextrestored")}set oncontextrestored(t){this[p].set("oncontextrestored",t)}get onwebglcontextcreationerror(){return S.getEventListener(this,"onwebglcontextcreationerror")}set onwebglcontextcreationerror(t){this[p].set("onwebglcontextcreationerror",t)}get onwebglcontextlost(){return S.getEventListener(this,"onwebglcontextlost")}set onwebglcontextlost(t){this[p].set("onwebglcontextlost",t)}get onwebglcontextrestored(){return S.getEventListener(this,"onwebglcontextrestored")}set onwebglcontextrestored(t){this[p].set("onwebglcontextrestored",t)}get width(){let t=this.getAttribute("width");return t!==null?Number(t):300}set width(t){this.setAttribute("width",String(t))}get height(){let t=this.getAttribute("height");return t!==null?Number(t):150}set height(t){this.setAttribute("height",String(t))}captureStream(t){let e=new this[m].MediaStream,o=new this[m].CanvasCaptureMediaStreamTrack(h,this);if(o[xo]="video",o[Pi].deviceId=cS,o[Pi].aspectRatio.max=this.width,o[Pi].height.max=this.height,o[Pi].width.max=this.width,o[In].deviceId=cS,t!==void 0)o[Pi].frameRate.max=t,o[In].frameRate=t;return e.addTrack(o),e}getContext(t,e){return null}toDataURL(t,e){return""}toBlob(t,e,o){t(new ie([]))}transferControlToOffscreen(){return new gc(this.width,this.height)}}class Hp extends B{}class Wp extends B{get value(){return this.getAttribute("value")||""}set value(t){this.setAttribute("value",t)}}class _p extends B{[Ui]=null;get options(){if(!this[Ui])this[Ui]=oe.getElementsByTagName(this,"OPTION");return this[Ui]}}class Yp extends B{get ontoggle(){return S.getEventListener(this,"ontoggle")}set ontoggle(t){this[p].set("ontoggle",t)}get open(){return this.getAttribute("open")!==null}set open(t){if(t)this.setAttribute("open","");else this.removeAttribute("open")}[Re](t,e){if(super[Re](t,e),t[rt]==="open"){if(t[q]!==e?.[q])this.dispatchEvent(new N("toggle"))}}[br](t){if(super[br](t),t&&t[rt]==="open")this.dispatchEvent(new N("toggle"))}dispatchEvent(t){let e=super.dispatchEvent(t);if(!t[lr]&&t.type==="click"&&t.eventPhase===ae.bubbling&&t instanceof qe){let o=t[wr];if(o)if(o[ot]==="summary"&&o[W]===this)this.open=!this.open;else{let s=o;for(let n of this[bt])if(n[ot]==="summary"){s=n;break}if(s&&s.contains(o))this.open=!this.open}}return e}}class Kp extends B{[Lh]="";get oncancel(){return S.getEventListener(this,"oncancel")}set oncancel(t){this[p].set("oncancel",t)}get onclose(){return S.getEventListener(this,"onclose")}set onclose(t){this[p].set("onclose",t)}get returnValue(){return this[Lh]}set returnValue(t){this[Lh]=String(t)}set open(t){if(t)this.setAttribute("open","");else this.removeAttribute("open")}get open(){return this.getAttribute("open")!==null}close(t){let e=this.open;if(this.removeAttribute("open"),this.returnValue=t!==void 0?String(t):"",e)this.dispatchEvent(new N("close"))}showModal(){this.setAttribute("open","")}show(){this.setAttribute("open","")}}class Qp extends B{}class jp extends B{get height(){return this.getAttribute("height")||""}set height(t){this.setAttribute("height",t)}get width(){return this.getAttribute("width")||""}set width(t){this.setAttribute("width",t)}get src(){if(!this.hasAttribute("src"))return"";try{return new URL(this.getAttribute("src"),this[x].location.href).href}catch(t){return this.getAttribute("src")}}set src(t){this.setAttribute("src",t)}get type(){return this.getAttribute("type")||""}set type(t){this.setAttribute("type",t)}}class sa extends B{[Gi]=null;[Ut]=null;get elements(){if(!this[Gi])this[Gi]=new de(h,()=>yt.querySelectorAll(this,"input,button,textarea,select")[Q]);return this[Gi]}get form(){if(this[Ut])return this[Ut];let t=this.getAttribute("form");if(!t||!this[tt])return null;return this[x].getElementById(t)}get name(){return this.getAttribute("name")||""}set name(t){this.setAttribute("name",t)}get type(){return"fieldset"}get validationMessage(){return""}get willValidate(){return!1}get disabled(){return this.getAttribute("disabled")!==null}set disabled(t){if(!t)this.removeAttribute("disabled");else this.setAttribute("disabled","")}checkValidity(){return!0}reportValidity(){return!0}setCustomValidity(t){}}class na extends de{constructor(t,e){super(t,()=>e[lo]());this[xt]=e}namedItem(t){return this[xt][Mm](t)}}class As{static createChildFrame(t){let e=new t.constructor(t.page);return e.parentFrame=t,t.childFrames.push(e),e}static destroyFrame(t){let e=t.page.context.browser[to];if(t.closed)return Promise.resolve();return t.closed=!0,new Promise((o,s)=>{if(!t.window){o();return}if(t.parentFrame){let n=t.parentFrame.childFrames.indexOf(t);if(n!==-1)t.parentFrame.childFrames.splice(n,1)}if(!t.childFrames.length){if(t[Pt].destroy().then(()=>{if(e&&t.window)e.disconnect(t.window);if(t.window={closed:!0},t[io]=null,t[Si]=null,t[he])t[he].navigation=[];o()}).catch((n)=>s(n)),t.window)t.window[At]();return}Promise.all(t.childFrames.slice().map((n)=>this.destroyFrame(n))).then(()=>{if(t[Pt].destroy().then(()=>{if(e&&t.window)e.disconnect(t.window);if(t.window={closed:!0},t[io]=null,t[Si]=null,t[he])t[he].navigation=[];o()}).catch((n)=>s(n)),t.window)t.window[At]()}).catch((n)=>s(n))})}}var eg;(function(t){t.anyOrigin="anyOrigin",t.sameOrigin="sameOrigin",t.strictOrigin="strictOrigin"})(eg||(eg={}));var im=eg;class qp{static validateCrossOriginPolicy(t,e){let o=t.page.context.browser.settings,s=t.page.mainFrame.window.location;if(t[io])s=t[io].window.location;else if(t.parentFrame)s=t.parentFrame.window.location;if(o.navigation.crossOriginPolicy===im.sameOrigin&&s.protocol!=="about:"&&e.protocol!=="about:"&&e.protocol!=="javascript:"&&s.origin!==e.origin)return!1;if(o.navigation.crossOriginPolicy===im.strictOrigin&&s.protocol==="https:"&&e.protocol==="http:")return!1;return!0}static validateFrameNavigation(t){let e=t.page.context.browser.settings;if(t.page.context.browser.windowClass&&t.page.context===t.page.context.browser.defaultContext&&t.page.context.pages[0]===t.page&&t.page.mainFrame===t)return!1;if(e.navigation.disableMainFrameNavigation&&t.page.mainFrame===t)return!1;if(e.navigation.disableChildFrameNavigation&&t.page.mainFrame!==t)return!1;if(e.navigation.disableChildPageNavigation&&!!t[io])return!1;return!0}}class Xr{static async navigate(t){let{windowClass:e,frame:o,url:s,formData:n,method:l,goToOptions:a,disableHistory:y}=t,u=o.page.context.browser[to],c=a?.referrer||o.window.location.origin,d=Fo.getRelativeURL(o,s),g=new URL(d.href.split("#")[0]),f=new URL(o.url.split("#")[0]),E=()=>{let Ue=o[he].navigation;o[he].navigation=[];for(let Jr of Ue)Jr()};if(!o.window)throw Error('The frame has been destroyed, the "window" property is not set.');if(g.href===f.href&&d.hash&&d.hash!==o.window?.location.hash){let Ue=o[Oe];if(!y)Ue.currentItem.popState=!0,Ue.push({title:"",href:d.href,state:null,popState:!0,scrollRestoration:ii.manual,method:l||(n?"POST":"GET"),formData:n||null});return o.window.location[_r](o,d.href),null}if(d.protocol==="javascript:"){if(o&&o.page.context.browser.settings.enableJavaScriptEvaluation){let Ue=o.window[Eo],Jr=o[Pt],Cs=Ue.startTask(),vm=d.href.replace("javascript:","");await new Promise((Ig)=>{o.window.requestAnimationFrame(()=>{let sf=setImmediate(()=>{Jr.endTask(nf),Ig(null)}),nf=Jr.startTask(()=>()=>{clearImmediate(sf),Ig(null)});o.window[Uo](vm,{filename:o.url})})}),Ue.endTask(Cs),E()}return null}if(!qp.validateCrossOriginPolicy(o,d))return null;if(!qp.validateFrameNavigation(o)){if(!o.page.context.browser.settings.navigation.disableFallbackToSetURL)o.window.location[_r](o,d.href);return null}if(!y)o[Oe].push({title:"",href:d.href,state:null,popState:!1,scrollRestoration:ii.auto,method:l||(n?"POST":"GET"),formData:n||null});let R=o.window,H=o[Pt],{innerWidth:pt,innerHeight:gt,devicePixelRatio:Rt}=R,lt=o.parentFrame?o.parentFrame.window:o.page.mainFrame.window,dt=o.page.mainFrame.window;if(o[Pt]=new Js(o),o.window=new e(o,{url:d.href,width:pt,height:gt}),o.window[ao]=lt,o.window[Jo]=dt,o.window.devicePixelRatio=Rt,u)u.observe(o.window);if(c)o.window.document[Pr]=c;let ee=o[Pt].startTask(),Ct=()=>{H.destroy().then(()=>{if(u)u.disconnect(R);o[Pt].endTask(ee)}),R[At]()};if(o.childFrames.length)Promise.all(o.childFrames.map((Ue)=>As.destroyFrame(Ue))).then(Ct);else Ct();if(d.protocol==="about:"){if(a?.beforeContentCallback)a.beforeContentCallback(o.window);if(o.page.context.browser.settings.navigation.beforeContentCallback)o.page.context.browser.settings.navigation.beforeContentCallback(o.window);return await new Promise((Ue)=>o.page.mainFrame.window.requestAnimationFrame(Ue)),E(),null}let or=o.window[Eo],Ye=o[Pt],Hr=new o.window.AbortController,zr=setTimeout(()=>{Ye.endTimer(zr),Hr.abort(new o.window.DOMException("The operation was aborted. Request timed out.",w.timeoutError))},a?.timeout??30000);Ye.startTimer(zr);let Ts=or.startTask(),hi=()=>{clearTimeout(zr),Ye.endTimer(zr),or.endTask(Ts),E()},fa=new o.window.Headers(a?.headers),Bo,Pa;if(a?.hard)fa.set("Cache-Control","no-cache");let xm=new Br({browserFrame:o,window:o.window,url:d.href,disableSameOriginPolicy:!0,init:{referrer:c,referrerPolicy:a?.referrerPolicy||"origin",signal:Hr.signal,method:l||(n?"POST":"GET"),headers:fa,body:n}});try{if(Bo=await xm.send(),o.parentFrame){let Ue=o.parentFrame.window.location,Jr=Bo.headers?.get("X-Frame-Options")?.toLowerCase(),Cs=Ue.origin===d.origin||d.origin==="null";if(Jr==="deny"||Jr==="sameorigin"&&!Cs)throw Error(`Refused to display '${s}' in a frame because it set 'X-Frame-Options' to '${Jr}'.`)}Pa=await Bo.text()}catch(Ue){throw hi(),Ue}if(!o.window)return null;if(Bo.url)o.window[no][_r](o,Bo.url);if(!Bo.ok)o.page.console.error(`GET ${d.href} ${Bo.status} (${Bo.statusText})`);if(a?.beforeContentCallback)a.beforeContentCallback(o.window);if(o.page.context.browser.settings.navigation.beforeContentCallback)o.page.context.browser.settings.navigation.beforeContentCallback(o.window);return await new Promise((Ue)=>{o.window.requestAnimationFrame(()=>{let Jr,Cs=Ye.startTask(()=>()=>{clearImmediate(Jr),Ue(null)});Jr=setImmediate(()=>{Ye.endTask(Cs),Ue(null)}),o.content=Pa})}),hi(),Bo}static navigateBack(t){let{windowClass:e,frame:o,goToOptions:s}=t,n=o[Oe],l=n.items[n.items.indexOf(n.currentItem)-1];if(!l)return new Promise((u)=>{o.window.requestAnimationFrame(()=>{let c=o[he].navigation;o[he].navigation=[];for(let d of c)d();u(null)})});let a=new URL(n.currentItem.href).origin,y=new URL(l.href).origin;if(n.currentItem=l,!l.popState||a!==y)return Xr.navigate({windowClass:e,frame:o,goToOptions:{...s,referrer:o.url},url:l.href,method:l.method,formData:l.formData,disableHistory:!0});return o.window.location[_r](o,l.href),o.window.dispatchEvent(new o.window.PopStateEvent("popstate",{state:l.state,hasUAVisualTransition:!1})),Promise.resolve(null)}static navigateForward(t){let{windowClass:e,frame:o,goToOptions:s}=t,n=o[Oe],l=n.items[n.items.indexOf(n.currentItem)+1];if(!l)return new Promise((u)=>{o.window.requestAnimationFrame(()=>{let c=o[he].navigation;o[he].navigation=[];for(let d of c)d();u(null)})});let a=new URL(n.currentItem.href).origin,y=new URL(l.href).origin;if(n.currentItem=l,!l.popState||a!==y)return Xr.navigate({windowClass:e,frame:o,goToOptions:{...s,referrer:o.url},url:l.href,method:l.method,formData:l.formData,disableHistory:!0});return o.window.location[_r](o,l.href),o.window.dispatchEvent(new o.window.PopStateEvent("popstate",{state:l.state,hasUAVisualTransition:!1})),Promise.resolve(null)}static navigateSteps(t){if(!t.steps)return this.reload(t);let{windowClass:e,frame:o,goToOptions:s,steps:n}=t,l=o[Oe],a=l.items.indexOf(l.currentItem),y=a+n,u=l.items[y];if(!u)return new Promise((g)=>{o.window.requestAnimationFrame(()=>{let f=o[he].navigation;o[he].navigation=[];for(let E of f)E();g(null)})});let c=new URL(l.currentItem.href).origin,d=!0;if(n<0){for(let g=a;g>y;g--)if(!l.items[g].popState||c!==new URL(l.items[g].href).origin){d=!1;break}}else for(let g=a;g<y;g++)if(!l.items[g].popState||c!==new URL(l.items[g].href).origin){d=!1;break}if(l.currentItem=u,!d)return Xr.navigate({windowClass:e,frame:o,goToOptions:{...s,referrer:o.url},url:u.href,method:u.method,formData:u.formData,disableHistory:!0});return o.window.location[_r](o,u.href),o.window.dispatchEvent(new o.window.PopStateEvent("popstate",{state:u.state,hasUAVisualTransition:!1})),Promise.resolve(null)}static reload(t){let{windowClass:e,frame:o,goToOptions:s}=t,n=o[Oe];return Xr.navigate({windowClass:e,frame:o,goToOptions:{...s,referrer:o.url},url:n.currentItem.href,method:n.currentItem.method,formData:n.currentItem.formData,disableHistory:!0})}}class sm extends Yo{get value(){for(let t of this[Q])if(t.checked)return t.value;return null}}class nm extends B{[Gi]=null;[Vt];constructor(){super();let t=new fe(this,[nm,B,Gr,st,vt]),e=new Proxy(this,{get:(o,s)=>{if(s==="length")return o[lo]().length;if(s in o||typeof s==="symbol")return t.bind(s),o[s];let n=Number(s);if(!isNaN(n))return o[lo]()[n];return o[Mm](s)||void 0},set(o,s,n){if(t.bind(s),typeof s==="symbol")return o[s]=n,!0;let l=Number(s);if(isNaN(l))o[s]=n;return!0},deleteProperty(o,s){if(typeof s==="symbol")return delete o[s],!0;let n=Number(s);if(isNaN(n))delete o[s];return!0},ownKeys(o){return Object.keys(o[lo]())},has(o,s){if(s in o)return!0;if(typeof s==="symbol")return!1;let n=o[lo](),l=Number(s);if(!isNaN(l)&&l>=0&&l<n.length)return!0;s=String(s);for(let a=0;a<n.length;a++){let y=n[a],u=y.getAttribute("id")||y.getAttribute("name");if(u&&u===s)return!0}return!1},defineProperty(o,s,n){if(t.preventBinding(s),!n.value)return Object.defineProperty(o,s,n),!0;let l=Number(n.value);if(isNaN(l))return Object.defineProperty(o,s,n),!0;return!1},getOwnPropertyDescriptor(o,s){if(s in o)return Object.getOwnPropertyDescriptor(o,s);let n=o[lo](),l=Number(s);if(!isNaN(l)&&l>=0&&l<n.length)return{value:n[l],writable:!1,enumerable:!0,configurable:!0};for(let a=0;a<n.length;a++){let y=n[a],u=y.getAttribute("id")||y.getAttribute("name");if(u&&u===s)return{value:y,writable:!1,enumerable:!0,configurable:!0}}}});return this[Vt]=e,this[Ut]=e,e}get onformdata(){return S.getEventListener(this,"onformdata")}set onformdata(t){this[p].set("onformdata",t)}get onreset(){return S.getEventListener(this,"onreset")}set onreset(t){this[p].set("onreset",t)}get onsubmit(){return S.getEventListener(this,"onsubmit")}set onsubmit(t){this[p].set("onsubmit",t)}get elements(){if(!this[Gi])this[Gi]=new na(h,this);return this[Gi]}get length(){return this[lo]().length}get name(){return this.getAttribute("name")||""}set name(t){this.setAttribute("name",t)}get method(){return this.getAttribute("method")||"get"}set method(t){this.setAttribute("method",t)}get target(){return this.getAttribute("target")||""}set target(t){this.setAttribute("target",t)}get action(){if(!this.hasAttribute("action"))return this[x].location.href;try{return new URL(this.getAttribute("action"),this[x].location.href).href}catch(t){return""}}set action(t){this.setAttribute("action",t)}get encoding(){return this.getAttribute("encoding")||""}set encoding(t){this.setAttribute("encoding",t)}get enctype(){return this.getAttribute("enctype")||""}set enctype(t){this.setAttribute("enctype",t)}get autocomplete(){return this.getAttribute("autocomplete")||""}set autocomplete(t){this.setAttribute("autocomplete",t)}get acceptCharset(){return this.getAttribute("acceptcharset")||""}set acceptCharset(t){this.setAttribute("acceptcharset",t)}get noValidate(){return this.getAttribute("novalidate")!==null}set noValidate(t){if(!t)this.removeAttribute("novalidate");else this.setAttribute("novalidate","")}submit(){this.#t()}requestSubmit(t){if(t?.formNoValidate||this.noValidate||this.checkValidity()){let o=new ta("submit",{bubbles:!0,cancelable:!0,submitter:t||this[Vt]});if(this.dispatchEvent(o),!o.defaultPrevented)this.#t(t)}}reset(){for(let t of this[lo]())switch(t[z]){case"TEXTAREA":t[q]=null;break;case"INPUT":t[q]=null,t[wn]=null;break;case"OUTPUT":t.textContent=t[mo];break;case"SELECT":let e=!1;for(let o of t.options)if(o.hasAttribute("selected")){e=!0,o.selected=!0;break}if(!e&&t.options.length>0)t.options[0].selected=!0;break}this.dispatchEvent(new N("reset",{bubbles:!0,cancelable:!0}))}checkValidity(){let t={},e=!0;for(let o of this[lo]())if(o[z]==="INPUT"&&o.type==="radio"&&o.name){if(!t[o.name]){if(t[o.name]=!0,!o.checkValidity())e=!1}}else if(!o.checkValidity())e=!1;return e}reportValidity(){return this.checkValidity()}[ct](t=!1){return super[ct](t)}[lo](){let t=yt.querySelectorAll(this,"input,select,textarea,button,fieldset,object,output")[Q].slice();if(this[tt]){let e=this.getAttribute("id");if(e){for(let o of yt.querySelectorAll(this[x],`input[form="${e}"],select[form="${e}"],textarea[form="${e}"],button[form="${e}"],fieldset[form="${e}"],object[form="${e}"],output[form="${e}"]`)[Q])if(!t.includes(o))t.push(o)}}return t}[Mm](t){let e=this[lo](),o=[];t=String(t);for(let s of e)if(s.getAttribute("id")===t||s.getAttribute("name")===t)o.push(s);if(!o.length)return null;if(o.length===1)return o[0];return new sm(h,o)}#t(t){let e=t?.formMethod||this.method;if(e==="dialog"){let a=null,y=this;while(y){if(y[z]==="DIALOG"){a=y;break}y=y.parentElement}if(a){a.close(t?.value);return}}let o=t?.hasAttribute("formaction")?t?.formAction||this.action:this.action,s=new it(this[m]).getBrowserFrame();if(!s)return;if(!o){this[x].location.hash="#blocked";return}let n=new this[m].FormData(this,t),l;switch(t?.formTarget||this.target){default:case"_self":l=s;break;case"_top":l=s.page.mainFrame;break;case"_parent":l=s.parentFrame??s;break;case"_blank":l=s.page.context.newPage().mainFrame,l[io]=s;break}if(e==="get"){let a=new URL(o);a.search="";for(let[y,u]of n)if(typeof u==="string")a.searchParams.append(y,u);Xr.navigate({windowClass:this[x][Lr]?.constructor,frame:l,url:a.href,goToOptions:{referrer:s.page.mainFrame.window.location.origin}});return}Xr.navigate({windowClass:this[x][Lr]?.constructor,frame:l,method:e,url:o,formData:n,goToOptions:{referrer:s.page.mainFrame.window.location.origin}})}}class $p extends B{}class Xp extends B{}class zp extends B{}class Jp extends B{}class ll extends vt{window=this;location;[On]=this;#t;constructor(t,e){super();this[ao]=e??this,this[Jo]=e??this,this.location=new Proxy({},{get:()=>{throw new re(`Blocked a frame with origin "${this.parent.location.origin}" from accessing a cross-origin frame.`,w.securityError)},set:()=>{throw new re(`Blocked a frame with origin "${this.parent.location.origin}" from accessing a cross-origin frame.`,w.securityError)}}),this.#t=t}get self(){return this[On]}set self(t){this[On]=t}get top(){return this[Jo]}get parent(){return this[ao]}set parent(t){this[ao]=t}get opener(){return this.#t.opener}get closed(){return this.#t.closed}blur(){this.#t.blur()}focus(){this.#t.focus()}close(){this.#t.close()}postMessage(t,e="*",o){this.#t.postMessage(t,e,o)}}var oA=["allow-downloads","allow-forms","allow-modals","allow-orientation-lock","allow-pointer-lock","allow-popups","allow-popups-to-escape-sandbox","allow-presentation","allow-same-origin","allow-scripts","allow-top-navigation","allow-top-navigation-by-user-activation","allow-top-navigation-to-custom-protocols"];class Zp extends B{[km]=null;#t={window:null};#e=null;#r=null;get onload(){return S.getEventListener(this,"onload")}set onload(t){this[p].set("onload",t)}get onerror(){return S.getEventListener(this,"onerror")}set onerror(t){this[p].set("onerror",t)}get src(){if(!this.hasAttribute("src"))return"";try{return new URL(this.getAttribute("src"),this[x].location.href).href}catch(t){return this.getAttribute("src")}}set src(t){this.setAttribute("src",t)}get allow(){return this.getAttribute("allow")||""}set allow(t){this.setAttribute("allow",t)}get height(){return this.getAttribute("height")||""}set height(t){this.setAttribute("height",t)}get width(){return this.getAttribute("width")||""}set width(t){this.setAttribute("width",t)}get name(){return this.getAttribute("name")||""}set name(t){this.setAttribute("name",t)}get sandbox(){if(!this[km])this[km]=new Or(h,this,"sandbox");return this[km]}set sandbox(t){this.setAttribute("sandbox",t)}get srcdoc(){return this.getAttribute("srcdoc")||""}set srcdoc(t){this.setAttribute("srcdoc",t)}get referrerPolicy(){return this.getAttribute("referrerpolicy")||""}set referrerPolicy(t){this.setAttribute("referrerpolicy",t)}get contentDocument(){return this.#t.window?.document??null}get contentWindow(){return this.#t.window}get tabIndex(){let t=this.getAttribute("tabindex");if(t!==null){let e=Number(t);return isNaN(e)?0:e}return 0}set tabIndex(t){super.tabIndex=t}[sr](){super[sr](),this.#i()}[nr](){super[nr](),this.#s()}[ct](t=!1){return super[ct](t)}[Re](t,e){if(super[Re](t,e),t[rt]==="srcdoc")this.#i();if(t[rt]==="src"&&t[q]&&!this.hasAttribute("srcdoc")&&t[q]!==e?.[q])this.#i();if(t[rt]==="sandbox")this.#o()}[br](t){if(super[br](t),t[rt]==="srcdoc"||t[rt]==="src")this.#i()}#o(){let t=this[m],e=[];for(let o of this.sandbox)if(!oA.includes(o))e.push(o);if(e.length===1)t.console.error(`Error while parsing the 'sandbox' attribute: '${e[0]}' is an invalid sandbox flag.`);else if(e.length>1)t.console.error(`Error while parsing the 'sandbox' attribute: '${e.join("', '")}' are invalid sandbox flags.`)}#i(){if(!this[tt]){this.#s();return}let t=this.getAttribute("srcdoc"),e=this[m],o=new it(e).getBrowserFrame();if(!o)return;if(t!==null){if(this.#r===t)return;this.#s(),this.#e=As.createChildFrame(o),this.#e.url="about:srcdoc",this.#t.window=this.#e.window,this.#e.window[Jo]=o.window.top,this.#e.window[ao]=o.window,this.#e.window.document.open(),this.#e.window.document.write(t),this.#r=t,this[m].requestAnimationFrame(()=>this.dispatchEvent(new N("load")));return}if(this.#r!==null)this.#s();let s=o.window.location,n=Fo.getRelativeURL(o,this.src);if(this.#e&&this.#e.window.location.href===n.href)return;if(o.page.context.browser.settings.disableIframePageLoading){let y=new e.DOMException(`Failed to load iframe page "${n.href}". Iframe page loading is disabled.`,w.notSupportedError);o.page.console.error(y),this.dispatchEvent(new N("error"));return}let l=s.origin===n.origin||n.origin==="null",a=l?e:new ll(e);this.#e=this.#e??As.createChildFrame(o),this.#e.window[Jo]=a,this.#e.window[ao]=a,this.#e.goto(n.href,{referrer:s.origin,referrerPolicy:this.referrerPolicy}).then(()=>this.dispatchEvent(new N("load"))).catch((y)=>{o.page.console.error(y),this.dispatchEvent(new N("error"))}),this.#t.window=l?this.#e.window:new ll(this.#e.window,e)}#s(){if(this.#e)As.destroyFrame(this.#e),this.#e=null;this.#t.window=null,this.#r=null}}class la extends B{[z]="IMG";[ab]=!1;[mb]=0;[yb]=0;[Bg]="auto";[k]=0;[M]=0;get complete(){return this[ab]}get naturalHeight(){return this[mb]}get naturalWidth(){return this[yb]}get loading(){let t=this.getAttribute("loading");return t==="eager"||t==="lazy"?t:"auto"}set loading(t){this.setAttribute("loading",t)}get x(){return this[k]}get y(){return this[M]}get decoding(){return this.getAttribute("decoding")||"auto"}set decoding(t){this.setAttribute("decoding",t)}get crossOrigin(){return this.getAttribute("crossOrigin")}set crossOrigin(t){if(t==="anonymous"||t==="use-credentials")this.setAttribute("crossOrigin",t)}get alt(){return this.getAttribute("alt")||""}set alt(t){this.setAttribute("alt",t)}get currentSrc(){return this.src}get width(){let t=this.getAttribute("width");return t!==null?Number(t):0}set width(t){this.setAttribute("width",String(t))}get height(){let t=this.getAttribute("height");return t!==null?Number(t):0}set height(t){this.setAttribute("height",String(t))}get isMap(){return this.getAttribute("ismap")!==null}set isMap(t){if(!t)this.removeAttribute("ismap");else this.setAttribute("ismap","")}get referrerPolicy(){return this.getAttribute("referrerpolicy")||""}set referrerPolicy(t){this.setAttribute("referrerpolicy",t)}get sizes(){return this.getAttribute("sizes")||""}set sizes(t){this.setAttribute("sizes",t)}get src(){if(!this.hasAttribute("src"))return"";try{return new URL(this.getAttribute("src"),this[x].location.href).href}catch(t){return this.getAttribute("src")}}set src(t){this.setAttribute("src",t)}get srcset(){return this.getAttribute("srcset")||""}set srcset(t){this.setAttribute("srcset",t)}get useMap(){return this.getAttribute("usemap")||""}set useMap(t){this.setAttribute("usemap",t)}decode(){return Promise.resolve()}[ct](t=!1){return super[ct](t)}}class al extends Array{constructor(){super(0)}get[Symbol.toStringTag](){return this.constructor.name}item(t){return this[t]||null}}var rg=/[\n\r]/gm,Sc=(t)=>t.map((e)=>parseInt(e,10));class fc{static sanitize(t,e){switch(t.type){case"password":case"search":case"tel":case"text":return e.replace(rg,"");case"color":return/^#[a-fA-F\d]{6}$/.test(e)?e.toLowerCase():"#000000";case"email":if(t.multiple)return e.split(",").map((o)=>o.trim()).join(",");return e.trim().replace(rg,"");case"number":return!isNaN(Number.parseFloat(e))?e:"";case"range":{let o=Number.parseFloat(e),s=parseFloat(t.min)||0,n=parseFloat(t.max)||100;if(isNaN(o))return n<s?String(s):String((s+n)/2);else if(o<s)return String(s);else if(o>n)return String(n);return e}case"url":return e.trim().replace(rg,"");case"date":return this.sanitizeDate(e);case"datetime-local":{let o=e.match(/^(\d\d\d\d)-(\d\d)-(\d\d)[T ](\d\d):(\d\d)(?::(\d\d)(?:\.(\d{1,3}))?)?$/);if(!o)return"";let s=this.sanitizeDate(e.slice(0,10)),n=this.sanitizeTime(e.slice(11));if(!(s&&n))return"";if(o[6]!==void 0){if(n.indexOf(".")!==-1)n=n.replace(/(?:\.0*|(\.\d+?)0+)$/,"$1");n=n.replace(/(\d\d:\d\d)(:00)$/,"$1")}return s+"T"+n}case"month":if(!(e.match(/^(\d\d\d\d)-(\d\d)$/)&&this.parseMonthComponent(e)))return"";return this.checkBoundaries(e,t.min,t.max)?e:"";case"time":return e=this.sanitizeTime(e),e&&this.checkBoundaries(e,t.min,t.max)?e:"";case"week":{let o=e.match(/^(\d\d\d\d)-W(\d\d)$/);if(!o)return"";let[s,n]=Sc(o.slice(1,3));if(s<=0||n<1||n>53)return"";let l=this.lastIsoWeekOfYear(s);if(n<1||n>52+l)return"";if(!this.checkBoundaries(e,t.min,t.max))return"";return e}}return e}static checkBoundaries(t,e,o){if(e&&e>t)return!1;else if(o&&o<t)return!1;return!0}static parseMonthComponent(t){let[e,o]=t.split("-"),[s,n]=Sc([e,o]);if(isNaN(s)||isNaN(n)||s<=0||n<1||n>12)return"";return t}static lastIsoWeekOfYear=(t)=>{let e=new Date(+t,11,31),o=(e.getDay()+6)%7;e.setDate(e.getDate()-o+3);let s=e.getTime();if(e.setMonth(0,1),e.getDay()!==4)e.setMonth(0,1+(4-e.getDay()+7)%7);return 1+Math.ceil((s-e.getTime())/604800000)};static sanitizeDate(t){let e=t.match(/^(\d{4})-(\d{2})-(\d{2})$/);if(!e)return"";if(!this.parseMonthComponent(t.slice(0,7)))return"";let[s,n,l]=Sc(e.slice(1,4));if(l<1||l>31)return"";let a=new Date(s,n,0).getDate();if(l>a)return"";return t}static sanitizeTime(t){let e=t.match(/^(\d{2}):(\d{2})(?::(\d{2}(?:\.(\d{1,3}))?))?$/);if(!e)return"";let[o,s]=Sc(e.slice(1,3)),n=parseFloat(e[3]||"0")*1000;if(o>23||s>59||n>59999)return"";if(n===0)return`${e[1]}:${e[2]}`;else return`${e[1]}:${e[2]}${n>=1e4?`:${n/1000}`:`:0${n/1000}`}`}}var og;(function(t){t.preserve="preserve",t.select="select",t.start="start",t.end="end"})(og||(og={}));var ws=og;var ig;(function(t){t.none="none",t.forward="forward",t.backward="backward"})(ig||(ig={}));var fo=ig;class tu{static step(t,e,o){switch(t.type){case"number":return this.getNumberValue(t,e,o);case"date":case"month":case"week":case"time":case"datetime-local":case"range":return null;default:throw new re("This form element is not steppable.")}}static getNumberValue(t,e,o){let{step:s,min:n,max:l}=t,a=n!==""?Number(n):null,y=l!==""?Number(l):null,u=Number(t.value),c=s!==""?Number(s):1;if(u=isNaN(u)?0:u,c=isNaN(c)||c===0?1:c,a!==null&&!isNaN(a)&&y!==null&&!isNaN(y)&&(a>y||y<a))return t.value;if(o===0)return t.value;let d=o!==void 0?Math.ceil(o/c)*c:c,g=u+d*e,f=a!==null&&!isNaN(a)?a:0;switch(e){case-1:if(a!==null&&!isNaN(a)&&g<a)return String(a);return String(g+(u-f)%c);case 1:if(y!==null&&!isNaN(y)&&g>y)return String(f+Math.floor((y-f)/c)*c);return String(g-(u-f)%c)}}}class lm{static dateIsoWeek(t){t=typeof t==="number"?new Date(t):t,t=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate())),t.setUTCDate(t.getUTCDate()+4-(t.getUTCDay()||7));let e=new Date(Date.UTC(t.getUTCFullYear(),0,1)),o=Math.ceil(((t-e)/86400000+1)/7);return`${t.getUTCFullYear()}-W${o<10?"0":""}${o}`}static isoWeekDate(t){let[,e,o]=t.match(/^(\d{4})-W(\d{2})$/)||[];if(!e||!o||Number(o)>53||Number(o)<1)return new Date("x");let s=new Date(`${e}-01-01T00:00Z`),l=(new Date(`${e}-01-04T00:00Z`).getUTCDay()+6)%7,a=1+(Number(o)-1)*7-l+3;if(s.setUTCDate(a),s.getUTCFullYear()>Number(e))return new Date("x");return s}}import{URL as iA}from"url";var sA=new Set(["hidden","text","search","tel","url","email","password","date","month","week","time","datetime-local","number","range","color","checkbox","radio","file","submit","image","reset","button"]);class eu extends B{[q]=null;[F]=0;[V]=0;[wn]=null;[Ce]="";[Ke]=new qr(this);[$o]=new al;[vn]=!1;[Ut]=null;[Hn]=null;#t=null;#e=null;#r=fo.none;get oninput(){return S.getEventListener(this,"oninput")}set oninput(t){this[p].set("oninput",t)}get oninvalid(){return S.getEventListener(this,"oninvalid")}set oninvalid(t){this[p].set("oninvalid",t)}get onselectionchange(){return S.getEventListener(this,"onselectionchange")}set onselectionchange(t){this[p].set("onselectionchange",t)}get defaultChecked(){return this.hasAttribute("checked")}set defaultChecked(t){if(t)this.setAttribute("checked","");else this.removeAttribute("checked")}get files(){return this[$o]}set files(t){this[$o]=t}get formAction(){if(!this.hasAttribute("formaction"))return this[x].location.href;try{return new iA(this.getAttribute("formaction"),this[x].location.href).href}catch(t){return""}}set formAction(t){this.setAttribute("formaction",t)}get formEnctype(){return this.getAttribute("formenctype")||""}set formEnctype(t){this.setAttribute("formenctype",t)}get formMethod(){return this.getAttribute("formmethod")||""}set formMethod(t){this.setAttribute("formmethod",t)}get formNoValidate(){return this.getAttribute("formnovalidate")!==null}set formNoValidate(t){if(!t)this.removeAttribute("formnovalidate");else this.setAttribute("formnovalidate","")}get formTarget(){return this.getAttribute("formtarget")||""}set formTarget(t){this.setAttribute("formtarget",t)}get form(){if(this[Ut])return this[Ut];let t=this.getAttribute("form");if(!t||!this[tt])return null;return this[x].getElementById(t)}get validationMessage(){return this[Ce]}get validity(){return this[Ke]}get height(){return this[F]}set height(t){this[F]=t,this.setAttribute("height",String(t))}get width(){return this[V]}set width(t){this[V]=t,this.setAttribute("width",String(t))}get size(){let t=this.getAttribute("size");if(t!==null)return parseInt(t);return 20}set size(t){this.setAttribute("size",String(t))}get minLength(){let t=this.getAttribute("minlength");if(t!==null)return parseInt(t);return-1}set minLength(t){this.setAttribute("minlength",String(t))}get maxLength(){let t=this.getAttribute("maxlength");if(t!==null)return parseInt(t);return-1}set maxLength(t){this.setAttribute("maxlength",String(t))}get type(){let t=(this.getAttribute("type")??"").toLowerCase();return sA.has(t)?t:"text"}set type(t){this.setAttribute("type",t.toLowerCase())}get name(){return this.getAttribute("name")||""}set name(t){this.setAttribute("name",t)}get alt(){return this.getAttribute("alt")||""}set alt(t){this.setAttribute("alt",t)}get min(){return this.getAttribute("min")||""}set min(t){this.setAttribute("min",t)}get max(){return this.getAttribute("max")||""}set max(t){this.setAttribute("max",t)}get pattern(){return this.getAttribute("pattern")||""}set pattern(t){this.setAttribute("pattern",t)}get placeholder(){return this.getAttribute("placeholder")||""}set placeholder(t){this.setAttribute("placeholder",t)}get step(){return this.getAttribute("step")||""}set step(t){this.setAttribute("step",t)}get inputMode(){return this.getAttribute("inputmode")||""}set inputMode(t){this.setAttribute("inputmode",t)}get accept(){return this.getAttribute("accept")||""}set accept(t){this.setAttribute("accept",t)}get allowdirs(){return this.getAttribute("allowdirs")||""}set allowdirs(t){this.setAttribute("allowdirs",t)}get autocomplete(){return this.getAttribute("autocomplete")||""}set autocomplete(t){this.setAttribute("autocomplete",t)}get src(){return this.getAttribute("src")||""}set src(t){this.setAttribute("src",t)}get defaultValue(){return this.getAttribute("value")||""}set defaultValue(t){this.setAttribute("value",t)}get readOnly(){return this.getAttribute("readonly")!==null}set readOnly(t){if(!t)this.removeAttribute("readonly");else this.setAttribute("readonly","")}get disabled(){return this.getAttribute("disabled")!==null}set disabled(t){if(!t)this.removeAttribute("disabled");else this.setAttribute("disabled","")}get autofocus(){return this.getAttribute("autofocus")!==null}set autofocus(t){if(!t)this.removeAttribute("autofocus");else this.setAttribute("autofocus","")}get required(){return this.getAttribute("required")!==null}set required(t){if(!t)this.removeAttribute("required");else this.setAttribute("required","")}get indeterminate(){return this[vn]}set indeterminate(t){this[vn]=Boolean(t)}get multiple(){return this.getAttribute("multiple")!==null}set multiple(t){if(!t)this.removeAttribute("multiple");else this.setAttribute("multiple","")}get checked(){if(this[wn]!==null)return this[wn];return this.getAttribute("checked")!==null}set checked(t){this.#i(t)}get value(){switch(this.type){case"hidden":case"submit":case"image":case"reset":case"button":return this.getAttribute("value")||"";case"checkbox":case"radio":let t=this.getAttribute("value");return t!==null?t:"on";case"file":return this[$o].length>0?"/fake/path/"+this[$o][0].name:""}if(this[q]===null)return this.getAttribute("value")||"";return this[q]}set value(t){switch(t=t===null?"":String(t),this.type){case"hidden":case"submit":case"image":case"reset":case"button":case"checkbox":case"radio":this.setAttribute("value",t);break;case"file":if(t!==null&&t!=="")throw new this[m].DOMException('Input elements of type "file" may only programmatically set the value to empty string.',w.invalidStateError);this[$o]=new al;break;default:let e=this.value;if(this[q]=fc.sanitize(this,t),e!==this[q])this.#t=this[q].length,this.#e=this[q].length,this.#r=fo.none;break}}get selectionStart(){if(!this.#o())return null;if(this.#t===null)return this.value.length;return this.#t}set selectionStart(t){if(!this.#o())throw new this[m].DOMException(`The input element's type (${this.type}) does not support selection.`,w.invalidStateError);this.setSelectionRange(t,Math.max(t,this.selectionEnd),this.#r)}get selectionEnd(){if(!this.#o())return null;if(this.#e===null)return this.value.length;return this.#e}set selectionEnd(t){if(!this.#o())throw new this[m].DOMException(`The input element's type (${this.type}) does not support selection.`,w.invalidStateError);this.setSelectionRange(this.selectionStart,t,this.#r)}get selectionDirection(){if(!this.#o())return null;return this.#r}set selectionDirection(t){if(!this.#o())throw new this[m].DOMException(`The input element's type (${this.type}) does not support selection.`,w.invalidStateError);this.setSelectionRange(this.#t,this.#e,t)}get willValidate(){return this.type!=="hidden"&&this.type!=="reset"&&this.type!=="button"&&!this.disabled&&!this.readOnly}get valueAsDate(){switch(this.type){case"date":case"month":return isNaN(new Date(String(this.value)).getTime())?null:new Date(this.value);case"week":{let t=lm.isoWeekDate(this.value);return isNaN(t.getTime())?null:t}case"time":{let t=new Date(`1970-01-01T${this.value}Z`);return isNaN(t.getTime())?null:t}default:return null}}set valueAsDate(t){if(!["date","month","time","week"].includes(this.type))throw new this[m].DOMException("Failed to set the 'valueAsDate' property on 'HTMLInputElement': This input element does not support Date values.",w.invalidStateError);if(typeof t!=="object")throw new this[m].TypeError("Failed to set the 'valueAsDate' property on 'HTMLInputElement': Failed to convert value to 'object'.");else if(t&&!(t instanceof Date))throw new this[m].TypeError("Failed to set the 'valueAsDate' property on 'HTMLInputElement': The provided value is not a Date.");else if(t===null||isNaN(t.getTime())){this.value="";return}switch(this.type){case"date":this.value=t.toISOString().split("T")[0];break;case"month":this.value=t.toISOString().split("T")[0].slice(0,-3);break;case"time":this.value=t.toISOString().split("T")[1].slice(0,5);break;case"week":this.value=lm.dateIsoWeek(t);break}}get valueAsNumber(){let t=this.value;if(!this.type.match(/^(range|number|date|datetime-local|month|time|week)$/)||!t)return NaN;switch(this.type){case"number":return parseFloat(t);case"range":{let e=parseFloat(t),o=parseFloat(this.min)||0,s=parseFloat(this.max)||100;if(isNaN(e))return s<o?o:(o+s)/2;else if(e<o)return o;else if(e>s)return s;return e}case"date":return new Date(t).getTime();case"datetime-local":return new Date(t).getTime()-new Date(t).getTimezoneOffset()*60000;case"month":return(new Date(t).getUTCFullYear()-1970)*12+new Date(t).getUTCMonth();case"time":return new Date("1970-01-01T"+t).getTime()-new Date("1970-01-01T00:00:00").getTime();case"week":{let e=t.match(/^(\d{4})-W(\d{2})$/);if(!e)return NaN;let o=new Date(Date.UTC(parseInt(e[1],10),0)),s=o.getUTCDay(),n=((s===0?-6:1)-s)*86400000+parseInt(e[2],10)*604800000;return o.getTime()+n}default:return NaN}}set valueAsNumber(t){switch(this.type){case"number":case"range":this.value=Number(t).toString();break;case"date":case"datetime-local":{let e=new Date(Number(t));if(isNaN(e.getTime())){this.value="";break}if(this.type=="date")this.value=e.toISOString().slice(0,10);else this.value=e.toISOString().slice(0,-1);break}case"month":if(!Number.isInteger(t)||t<0)this.value="";else this.value=new Date(Date.UTC(1970,Number(t))).toISOString().slice(0,7);break;case"time":if(!Number.isInteger(t)||t<0)this.value="";else this.value=new Date(Number(t)).toISOString().slice(11,-1);break;case"week":{let e=new Date(Number(t));this.value=isNaN(e.getTime())?"":lm.dateIsoWeek(e);break}default:throw new this[m].DOMException("Failed to set the 'valueAsNumber' property on 'HTMLInputElement': This input element does not support Number values.",w.invalidStateError)}}get labels(){return $r.getAssociatedLabelElements(this)}get list(){let t=this.getAttribute("list");if(!t)return null;return(this[ve]||this[x]).querySelector(`datalist#${t}`)}get popoverTargetElement(){return this[Hn]}set popoverTargetElement(t){if(t!==null&&!(t instanceof B))throw new this[m].TypeError("Failed to set the 'popoverTargetElement' property on 'HTMLInputElement': Failed to convert value to 'Element'.");this[Hn]=t}get popoverTargetAction(){let t=this.getAttribute("popovertargetaction");if(t===null||t!=="hide"&&t!=="show"&&t!=="toggle")return"toggle";return t}set popoverTargetAction(t){this.setAttribute("popovertargetaction",t)}get tabIndex(){let t=this.getAttribute("tabindex");if(t!==null){let e=Number(t);return isNaN(e)?0:e}return 0}set tabIndex(t){super.tabIndex=t}setCustomValidity(t){this[Ce]=String(t)}select(){if(!this.#o())return;this.#t=0,this.#e=this.value.length,this.#r=fo.none,this.dispatchEvent(new N("select",{bubbles:!0,cancelable:!1}))}setSelectionRange(t,e,o="none"){if(!this.#o())throw new this[m].DOMException(`The input element's type (${this.type}) does not support selection.`,w.invalidStateError);this.#e=Math.min(e,this.value.length),this.#t=Math.min(t,this.#e),this.#r=o===fo.forward||o===fo.backward?o:fo.none,this.dispatchEvent(new N("select",{bubbles:!0,cancelable:!1}))}setRangeText(t,e=null,o=null,s=ws.preserve){if(!this.#o())throw new this[m].DOMException(`The input element's type (${this.type}) does not support selection.`,w.invalidStateError);if(e===null)e=this.#t;if(o===null)o=this.#e;if(e>o)throw new this[m].DOMException("The index is not in the allowed range.",w.invalidStateError);e=Math.min(e,this.value.length),o=Math.min(o,this.value.length);let n=this.value,l=this.#t,a=this.#e;this.value=n.slice(0,e)+t+n.slice(o);let y=e+this.value.length;switch(s){case ws.select:this.setSelectionRange(e,y);break;case ws.start:this.setSelectionRange(e,e);break;case ws.end:this.setSelectionRange(y,y);break;default:let u=t.length-(o-e);if(l>o)l+=u;else if(l>e)l=e;if(a>o)a+=u;else if(a>e)a=y;this.setSelectionRange(l,a);break}}checkValidity(){let t=this.disabled||this.readOnly||this.type==="hidden"||this.type==="reset"||this.type==="button"||this[Ke].valid;if(!t)this.dispatchEvent(new N("invalid",{bubbles:!0,cancelable:!0}));return t}reportValidity(){return this.checkValidity()}stepUp(t){let e=tu.step(this,1,t);if(e!==null)this.value=e}stepDown(t){let e=tu.step(this,-1,t);if(e!==null)this.value=e}[ct](t=!1){let e=super[ct](t);return e[q]=this[q],e[F]=this[F],e[V]=this[V],e[$o]=this[$o].slice(),e.#t=this.#t,e.#e=this.#e,e.#r=this.#r,e}dispatchEvent(t){if(t[Qt]!=="click"||t[xr]!==ae.none||!(t instanceof qe))return super.dispatchEvent(t);if(this.disabled)return!1;let e=null,o=this[vn],s=this.type;if(s==="checkbox"||s==="radio"){if(e=this.checked,this.#i(s==="checkbox"?!e:!0),s==="checkbox")o=this[vn],this[vn]=!1}let n=super.dispatchEvent(t);if(t[Qt]!=="click"||t[xr]!==ae.none||!(t instanceof qe))return n;if(t[lr]){if(e!==null)this.#i(e),this[vn]=o}else{let l=this.type;if(l==="checkbox"&&this[tt])this.dispatchEvent(new N("input",{bubbles:!0,cancelable:!0})),this.dispatchEvent(new N("change",{bubbles:!0,cancelable:!0}));else if(l==="radio"&&!e&&this[tt])this.dispatchEvent(new N("input",{bubbles:!0,cancelable:!0})),this.dispatchEvent(new N("change",{bubbles:!0,cancelable:!0}));else if(l==="submit"||l==="reset"){let a=this.form;if(a){if(l==="submit"&&this[tt])a.requestSubmit(this);else if(l==="reset")a.reset()}}}return n}#o(){let t=this.type;return t==="text"||t==="search"||t==="url"||t==="tel"||t==="password"}#i(t){if(this[wn]=t,this[Mr](),t&&this.type==="radio"&&this.name){let o=(this[Ut]||this.getRootNode()).querySelectorAll(`input[type="radio"][name="${this.name}"]`);for(let s of o)if(s!==this)s[wn]=!1}}}class ru extends B{get htmlFor(){let t=this.getAttribute("for");if(t!==null)return t;return t!==null?t:""}set htmlFor(t){this.setAttribute("for",t)}get control(){let t=this.getAttribute("for");if(t!==null){if(!t||!this[tt])return null;let e=this[ve].getElementById(t);if(e)switch(e[z]){case"INPUT":return e.type!=="hidden"?e:null;case"BUTTON":case"METER":case"OUTPUT":case"PROGRESS":case"SELECT":case"TEXTAREA":return e;default:return null}}return this.querySelector('button,input:not([type="hidden"]),meter,output,progress,select,textarea')}get form(){return this.control?.form||null}[ct](t=!1){return super[ct](t)}dispatchEvent(t){let e=super.dispatchEvent(t);if(!t[lr]&&t.type==="click"&&(t.eventPhase===ae.atTarget||t.eventPhase===ae.bubbling)&&t instanceof qe){let o=this.control;if(o&&t.target!==o)o.dispatchEvent(new qe("click",{bubbles:!0,cancelable:!0}))}return e}}class ou extends B{get form(){let t=this;while(t){if(t instanceof sa)return t.form;t=t.parentNode}return null}}class iu extends B{get value(){if(!this.hasAttribute("value"))return 0;let t=Number(this.getAttribute("value"));return isNaN(t)?0:t}set value(t){let e=Number(t);this.setAttribute("value",isNaN(e)?"0":String(e))}}import dS from"fs";import nA from"path";import lA from"child_process";class Pc{static getScript(t){let e={},o=Object.keys(t.headers).sort();for(let s of o)e[s]=t.headers[s];return`
89
+ We should not end up here and it is therefore a bug in Happy DOM. Please report this issue.`);this.documentStructure={nodes:{doctype:n||null,documentElement:l,head:a,body:y},level:Te.root}}if(this.rootNode instanceof this.window.HTMLHtmlElement){let n=this.rootDocument.createElement("head"),l=this.rootDocument.createElement("body");while(this.rootNode[_].length>0)this.rootNode[ur](this.rootNode[_][this.rootNode[_].length-1]);this.rootNode[Et](n),this.rootNode[Et](l),this.documentStructure={nodes:{doctype:null,documentElement:this.rootNode,head:n,body:l},level:Te.documentElement}}let o,s=0;t=String(t);while(o=this.markupRegExp.exec(t)){switch(this.readState){case Ge.any:if(o.index!==s&&(o[1]||o[2]||o[3]||o[4]||o[5]!==void 0||o[6]))this.parsePlainText(t.substring(s,o.index));if(o[1])this.nextElement=this.getStartTagElement(o[1]),this.startTagIndex=this.markupRegExp.lastIndex,this.readState=Ge.startTag;else if(o[2])this.parseEndTag(o[2]);else if(o[3])this.startTagIndex=this.markupRegExp.lastIndex,this.readState=Ge.comment;else if(o[5]!==void 0)this.startTagIndex=this.markupRegExp.lastIndex,this.readState=Ge.documentType;else if(o[6])this.startTagIndex=this.markupRegExp.lastIndex,this.readState=Ge.processingInstruction;else this.parsePlainText(t.substring(s,this.markupRegExp.lastIndex));break;case Ge.startTag:if(o[7]||o[8]||o[2])if(this.nextElement){let n=t.substring(this.startTagIndex,o[2]?this.markupRegExp.lastIndex-1:o.index),l=!!o[7];this.parseEndOfStartTag(n,l)}else this.readState=Ge.any;break;case Ge.comment:if(o[4])this.parseComment(t.substring(this.startTagIndex,o.index));break;case Ge.documentType:if(o[7]||o[8])this.parseDocumentType(t.substring(this.startTagIndex,o.index));break;case Ge.processingInstruction:if(o[7]||o[8])this.parseComment("?"+t.substring(this.startTagIndex,o.index));break;case Ge.rawTextElement:if(o[2])this.parseRawTextElementContent(o[2],t.substring(this.startTagIndex,o.index));break}s=this.markupRegExp.lastIndex}if(s!==t.length&&this.currentNode)this.parsePlainText(t.substring(s));return this.rootNode}parsePlainText(t){if(this.documentStructure){let e=this.documentStructure.level,{documentElement:o,head:s,body:n}=this.documentStructure.nodes,l=(this.currentNode===this.rootNode||this.currentNode===o)&&e<Te.head&&n[dt].length===0?t.replace(XP,""):t;if(l){let a=this.rootDocument.createTextNode(De.decodeHTMLEntities(l));if(this.currentNode===s&&e===Te.additionalHeadWithoutBody)o[kr](a,n,!0);else if(this.currentNode===this.rootNode||this.currentNode===o||this.currentNode===s&&e>=Te.body)if(e===Te.head)o[kr](a,n,!0);else if(n.lastChild?.[D]===T.textNode)n.lastChild[Yt]+=t;else n[Et](a,!0);else this.currentNode[Et](a,!0)}}else{let e=this.rootDocument.createTextNode(De.decodeHTMLEntities(t));this.currentNode[Et](e,!0)}}parseEndOfStartTag(t,e){if(t&&(!this.documentStructure||this.nextElement!==this.documentStructure.nodes.head||this.documentStructure.level<Te.body)){let a=new RegExp(jP),y;while(y=a.exec(t))if(y[1]&&y[2]||y[3]&&y[5]==='"'||y[6]&&y[8]==="'"||y[9]){let u=y[1]||y[3]||y[6]||y[9]||"",c=y[2]||y[4]||y[7]||"",d=c?De.decodeHTMLAttributeValue(c):"",g=this.nextElement[St];if(this.nextElement[J]===Ut.svg){let f=u.split(":"),E=null;switch(f[0]){case"xmlns":E=!f[1]||f[1]==="xlink"?Ut.xmlns:null;break;case"xlink":E=Ut.xlink;break}if(!g.getNamedItemNS(E,f[1]??u)){let R=Ve.createNode(this.rootDocument,this.window.Attr);R[J]=E,R[rt]=u,R[ot]=E&&f[1]?f[1]:u,R[Ft]=E&&f[1]?f[0]:null,R[q]=d,g[$o](R)}}else if(!g.getNamedItem(u)){let f=this.rootDocument.createAttribute(u);f[q]=d,g[$o](f)}this.startTagIndex+=y[0].length}else if(!y[1]&&(y[3]&&!y[5]||y[6]&&!y[8]))return}let o=this.nextElement[z],s=o.toLowerCase(),n=$e[s],l=null;while(l!==this.rootNode){let a=this.currentNode[z]?.toLowerCase(),y=a?$e[a]:null;if(l===this.currentNode)throw Error("Failed to parse HTML: The parser is stuck in an infinite loop. Please report this issue.");if(l=this.currentNode,n?.contentModel===G.noFirstLevelSelfDescendants&&this.tagNameStack[this.tagNameStack.length-1]===o||y?.contentModel===G.textOrComments||y?.contentModel===G.noForbiddenFirstLevelDescendants&&y?.forbiddenDescendants?.includes(s)||y?.contentModel===G.permittedDescendants&&!y?.permittedDescendants?.includes(s)&&(!n||!n.addPermittedParent||$e[n.addPermittedParent].permittedParents&&!$e[n.addPermittedParent].permittedParents.includes(a)||$e[n.addPermittedParent].permittedDescendants&&!$e[n.addPermittedParent].permittedDescendants.includes(s))){if(y?.contentModel===G.permittedDescendants&&y.moveForbiddenDescendant&&!y.moveForbiddenDescendant.exclude.includes(s)){let u=this.currentNode;while(u)if(!u.parentNode||!$e[u.parentNode[ot]]?.permittedDescendants||$e[u.parentNode[ot]]?.permittedDescendants?.includes(s))break;else u=u.parentNode;if(u&&u.parentNode)u.parentNode.insertBefore(this.nextElement,u);else u.appendChild(this.nextElement);this.startTagIndex=this.markupRegExp.lastIndex,this.readState=Ge.any;return}this.nodeStack.pop(),this.tagNameStack.pop(),this.currentNode=this.nodeStack[this.nodeStack.length-1]||this.rootNode}else if(n?.contentModel===G.noSelfDescendants&&this.tagNameStack.includes(o))while(this.currentNode!==this.rootNode){if(this.currentNode[z]===o){this.nodeStack.pop(),this.tagNameStack.pop(),this.currentNode=this.nodeStack[this.nodeStack.length-1]||this.rootNode;break}this.nodeStack.pop(),this.tagNameStack.pop(),this.currentNode=this.nodeStack[this.nodeStack.length-1]||this.rootNode}else if(!this.isTemplateDocumentFragment&&n?.permittedParents&&!n.permittedParents.includes(a)){if(!n.addPermittedParent||$e[n.addPermittedParent].permittedParents&&!$e[n.addPermittedParent].permittedParents.includes(a)||$e[n.addPermittedParent].permittedDescendants&&!$e[n.addPermittedParent].permittedDescendants.includes(s)){this.readState=Ge.any,this.startTagIndex=this.markupRegExp.lastIndex;return}let u=this.rootDocument.createElement(n.addPermittedParent);this.currentNode[Et](u,!0),this.nodeStack.push(u),this.tagNameStack.push(u[z]),this.currentNode=u}else break}if(this.documentStructure){let{documentElement:a,head:y,body:u}=this.documentStructure.nodes,c=this.documentStructure.level;if((!n||n.contentModel!==G.rawText)&&this.nextElement!==a&&this.nextElement!==y&&this.nextElement!==u)if(a&&(this.currentNode===this.rootNode||this.currentNode===a||this.currentNode===y&&c>=Te.body)){if(c<Te.body)this.documentStructure.level=Te.afterBody;u[Et](this.nextElement,!0)}else this.currentNode[Et](this.nextElement,!0)}else this.currentNode[Et](this.nextElement,!0);if(!this.documentStructure||this.nextElement!==this.documentStructure.nodes.body||this.documentStructure.level<=Te.body){if(this.currentNode=this.nextElement,this.nodeStack.push(this.currentNode),this.tagNameStack.push(o),this.documentStructure&&this.nextElement===this.documentStructure.nodes.body)this.documentStructure.level=Te.afterBody;if(n?.contentModel===G.noDescendants||e&&this.currentNode[J]===Ut.svg)this.nodeStack.pop(),this.tagNameStack.pop(),this.currentNode=this.nodeStack[this.nodeStack.length-1]||this.rootNode,this.readState=Ge.any;else this.readState=n?.contentModel===G.rawText?Ge.rawTextElement:Ge.any}else this.readState=Ge.any;this.startTagIndex=this.markupRegExp.lastIndex}parseEndTag(t){let e=this.currentNode[J]===Ut.html?Vr.asciiUpperCase(t):Ip[Vr.asciiLowerCase(t)]?.localName||t,o=this.tagNameStack.lastIndexOf(e);if(o!==-1)this.nodeStack.splice(o,this.nodeStack.length-o),this.tagNameStack.splice(o,this.tagNameStack.length-o),this.currentNode=this.nodeStack[this.nodeStack.length-1]||this.rootNode}parseComment(t){let e=this.rootDocument.createComment(De.decodeHTMLEntities(t));if(this.documentStructure){let o=this.documentStructure.level,{documentElement:s,head:n,body:l}=this.documentStructure.nodes,a=null;if(this.currentNode===this.rootNode&&o===Te.root)a=s;else if(this.currentNode===s&&o===Te.documentElement)a=n;else if(this.currentNode===s&&o===Te.head)a=l;this.currentNode[kr](e,a,!0)}else this.currentNode[Et](e,!0);this.readState=Ge.any}parseDocumentType(t){let e=De.decodeHTMLEntities(t);if(this.documentStructure){let{doctype:o}=this.documentStructure.nodes,s=this.getDocumentType(e);if(s){if(this.currentNode===this.rootNode&&this.documentStructure.level===Te.root){if(o)o[rt]=s.name,o[Fs]=s.publicId,o[Vs]=s.systemId;else o=this.rootNode.implementation.createDocumentType(s.name,s.publicId,s.systemId),this.rootNode.insertBefore(o,this.rootNode.documentElement);this.documentStructure.level=Te.doctype}}else this.parseComment(e)}else if(!this.getDocumentType(e))this.parseComment(e);this.readState=Ge.any}parseRawTextElementContent(t,e){let o=Vr.asciiUpperCase(t);if(o!==this.currentNode[z])return;if(o==="SCRIPT")this.currentNode[qs]=!this.evaluateScripts;else if(o==="LINK")this.currentNode[qs]=!this.evaluateScripts;this.currentNode[Et](this.rootDocument.createTextNode(e),!0);let s=this.currentNode;if(this.nodeStack.pop(),this.tagNameStack.pop(),this.currentNode=this.nodeStack[this.nodeStack.length-1]||this.rootNode,this.readState=Ge.any,this.documentStructure){let{documentElement:n,body:l}=this.documentStructure.nodes;if(n&&(this.currentNode===this.rootNode||this.currentNode===n))l[Et](s,!0);else this.currentNode[Et](s,!0)}else this.currentNode[Et](s,!0)}getStartTagElement(t){let e=Vr.asciiLowerCase(t),o=this.currentNode[J];if(e==="svg")return this.rootDocument.createElementNS(Ut.svg,"svg");if(o===Ut.svg)return this.rootDocument.createElementNS(Ut.svg,Ip[e]?.localName||t);switch(e){case"html":if(!this.documentStructure)return null;if(this.documentStructure.level<Te.documentElement)this.documentStructure.level=Te.documentElement;return this.documentStructure.nodes.documentElement??null;case"head":if(!this.documentStructure)return null;if(this.documentStructure.level<Te.head)this.documentStructure.level=Te.head;else if(this.documentStructure.level===Te.head)this.documentStructure.level=Te.additionalHeadWithoutBody;return this.documentStructure.nodes.head??null;case"body":if(!this.documentStructure)return null;if(this.documentStructure.level<Te.body)this.documentStructure.level=Te.body;return this.documentStructure.nodes.body??null;default:return this.rootDocument.createElementNS(Ut.html,e)}}getDocumentType(t){if(!t.toUpperCase().startsWith("DOCTYPE"))return null;let e=t.split($P);if(e.length<=1)return null;let o=e.slice(1).join(" "),s=[],n=new RegExp(qP,"gm"),l=o.toUpperCase().includes("PUBLIC"),a;while(a=n.exec(o))s.push(a[1]);let y=l?s[0]||"":"",u=l?s[1]||"":s[0]||"";return{name:e[1].toLowerCase(),publicId:y,systemId:u}}}var zP=/[\x00-\x1F\x7F\x80-\x9F "\'><=\/\uFDD0-\uFDEF\uFFFE\uFFFF\u1FFFE\u1FFFF\u2FFFE\u2FFFF\u3FFFE\u3FFFF\u4FFFE\u4FFFF\u5FFFE\u5FFFF\u6FFFE\u6FFFF\u7FFFE\u7FFFF\u8FFFE\u8FFFF\u9FFFE\u9FFFF\uAFFFE\uAFFFF\uBFFFE\uBFFFF\uCFFFE\uCFFFF\uDFFFE\uDFFFF\uEFFFE\uEFFFF\uFFFFE\uFFFFF\u10FFFE\u10FFFF]/;class Zb{static validateAttributeName(t,e,o){let{method:s,instance:n}=o;if(e==="text/html"){let l=String(t).toLowerCase();if(zP.test(l)||l.length===0||l[0]==="-")throw new re(`Uncaught InvalidCharacterError: Failed to execute '${s}' on '${n}': '${t}' is not a valid attribute name.`,w.invalidCharacterError)}}}class S{static getEventListener(t,e){let o=t[p].get(e);if(o)return o;let s=t[x][Lr];if(!s)return null;let n=new it(s).getSettings();if(!n||!n.enableJavaScriptEvaluation)return null;let l=t.getAttribute(e);if(!l)return null;let a="(function anonymous($happy_dom, event) {";if(n&&!n.disableErrorCapturing&&n.errorCapture===me.tryAndCatch)a+=`try {
90
+ `;if(a+=l,n&&!n.disableErrorCapturing&&n.errorCapture===me.tryAndCatch)a+="} catch(e) { $happy_dom.dispatchError(e); }";a+="})";let y=null;try{y=s[Oo](a,{filename:s.location.href}).bind(t,{dispatchError:s[le].bind(s)})}catch(u){let c=new s.SyntaxError(`Failed to read the '${e}' property from '${t.constructor.name}': ${u.message}`);if(n.disableErrorCapturing||n.errorCapture!==me.tryAndCatch)throw c;else return s[le](c),null}if(y)t[p].set(e,y);return y}}class Or extends st{static[z]=null;static[ot]=null;static[J]=null;[Aa]=null;[Zr]=null;[D]=T.elementNode;[Ft]=null;[be]=null;[Jd]=0;[Zd]=0;[Th]=0;[Ch]=0;[St]=new ln(this);[va]=null;[ir]=null;[Ll]=null;[Cm]=new Set;[p]=new Map;constructor(){super();if(!this[z])this[z]=null;if(!this[ot])this[ot]=null;if(!this[J])this[J]=null}get onfullscreenerror(){return S.getEventListener(this,"onfullscreenerror")}set onfullscreenerror(t){this[p].set("onfullscreenerror",t)}get onfullscreenchange(){return S.getEventListener(this,"onfullscreenchange")}set onfullscreenchange(t){this[p].set("onfullscreenchange",t)}get onbeforecopy(){return S.getEventListener(this,"onbeforecopy")}set onbeforecopy(t){this[p].set("onbeforecopy",t)}get onbeforecut(){return S.getEventListener(this,"onbeforecut")}set onbeforecut(t){this[p].set("onbeforecut",t)}get onbeforepaste(){return S.getEventListener(this,"onbeforepaste")}set onbeforepaste(t){this[p].set("onbeforepaste",t)}get onsearch(){return S.getEventListener(this,"onsearch")}set onsearch(t){this[p].set("onsearch",t)}get tagName(){return this[z]}get prefix(){return this[Ft]}get shadowRoot(){let t=this[be];return t&&t[Ee]==="open"?t:null}get scrollHeight(){return this[Jd]}get scrollWidth(){return this[Zd]}get scrollTop(){return this[Th]}set scrollTop(t){this[Th]=t}get scrollLeft(){return this[Ch]}set scrollLeft(t){this[Ch]=t}get attributes(){if(!this[va])this[va]=cc.createProxy(this[St]);return this[va]}get namespaceURI(){return this[J]}get children(){if(!this[ir]){let t=this[dt];this[ir]=new de(h,()=>t)}return this[ir]}get classList(){if(!this[Aa])this[Aa]=new Br(h,this,"class");return this[Aa]}set classList(t){this.setAttribute("class",t)}get id(){return this.getAttribute("id")||""}set id(t){this.setAttribute("id",t)}get className(){return this.getAttribute("class")||""}set className(t){this.setAttribute("class",t)}get nodeName(){return this[z]}get localName(){return this[ot]}get role(){return this.getAttribute("role")||""}set role(t){this.setAttribute("role",t)}get previousElementSibling(){return rl.previousElementSibling(this)}get nextElementSibling(){return rl.nextElementSibling(this)}get textContent(){let t="";for(let e of this[_])if(e[D]===T.elementNode||e[D]===T.textNode)t+=e.textContent;return t}set textContent(t){let e=this[_];while(e.length)this.removeChild(e[0]);if(t)this.appendChild(this[x].createTextNode(t))}get innerHTML(){return this.getHTML()}set innerHTML(t){let e=this[_];while(e.length)this.removeChild(e[0]);new Cr(this[m]).parse(t,this)}get outerHTML(){return new ni().serializeToString(this)}set outerHTML(t){let e=new Cr(this[m]).parse(t)[_];this.replaceWith(...e)}get childElementCount(){return this[dt].length}get firstElementChild(){return this[dt][0]??null}get lastElementChild(){let t=this[dt];return t[t.length-1]??null}get slot(){return this.getAttributeNS(null,"slot")||""}set slot(t){this.setAttribute("slot",t)}getInnerHTML(t){let e=new ni({allShadowRoots:!!t?.includeShadowRoots}),o="";for(let s of this[_])o+=e.serializeToString(s);return o}getHTML(t){let e=new ni({serializableShadowRoots:!!t?.serializableShadowRoots,shadowRoots:t?.shadowRoots??null}),o="";for(let s of this[_])o+=e.serializeToString(s);return o}[ht](t=!1){let e=super[ht](t);if(e[z]=this[z],e[ot]=this[ot],e[J]=this[J],this[be]?.[Bn])e[be]=this[be].cloneNode(t),e[be][Mn]=e;e[St]=new ln(e);for(let o of this[St][Q].values())e[St].setNamedItem(o.cloneNode(t));return e}remove(){ii.remove(this)}replaceWith(...t){ii.replaceWith(this,...t)}before(...t){ii.before(this,...t)}after(...t){ii.after(this,...t)}append(...t){oe.append(this,...t)}prepend(...t){oe.prepend(this,...t)}replaceChildren(...t){oe.replaceChildren(this,...t)}insertAdjacentElement(t,e){if(t==="beforebegin"){if(!this.parentElement)return null;this.parentElement.insertBefore(e,this)}else if(t==="afterbegin")this.insertBefore(e,this.firstChild);else if(t==="beforeend")this.appendChild(e);else if(t==="afterend"){if(!this.parentElement)return null;this.parentElement.insertBefore(e,this.nextSibling)}return e}insertAdjacentHTML(t,e){let o=new Cr(this[m]).parse(e)[_];while(o.length)this.insertAdjacentElement(t,o[0])}insertAdjacentText(t,e){if(!e)return;let o=this[x].createTextNode(e);this.insertAdjacentElement(t,o)}setAttribute(t,e){if(Zb.validateAttributeName(t,this[x][xe],{method:"setAttribute",instance:"Element"}),t=String(t),this[J]===Ut.html){let s=this[x].createAttribute(t);s[q]=String(e),this[St][$o](s)}else{let s=t.split(":"),n=null;switch(s[0]){case"xmlns":n=!s[1]||s[1]==="xlink"?Ut.xmlns:null;break;case"xlink":n=Ut.xlink;break}let l=Ve.createNode(this[x],this[m].Attr);l[J]=n,l[rt]=t,l[ot]=n&&s[1]?s[1]:t,l[Ft]=n&&s[1]?s[0]:null,l[q]=String(e),this[St][$o](l)}}setAttributeNS(t,e,o){let s=this[x].createAttributeNS(t,e);if(!t&&s[Ft])throw new this[m].DOMException("Failed to execute 'setAttributeNS' on 'Element': '' is an invalid namespace for attributes.",w.namespaceError);s[q]=String(o),this[St].setNamedItemNS(s)}getAttributeNames(){let t=[];for(let e of this[St][Q].values())t.push(e[rt]);return t}getAttribute(t){let e=this[St].getNamedItem(t);if(e)return e[q];return null}toggleAttribute(t,e){t=t.toLowerCase();let o=this[St].getNamedItem(t);if(o){if(e===!0)return!0;return this[St][Ds](o),!1}if(e===!1)return!1;return this.setAttribute(t,""),!0}getAttributeNS(t,e){let o=this.getAttributeNodeNS(t,e);if(o)return o[q];return null}hasAttribute(t){return!!this.getAttributeNode(t)}hasAttributeNS(t,e){return this[St].getNamedItemNS(t,e)!==null}hasAttributes(){return this[St][Q].size>0}removeAttribute(t){let e=this[St].getNamedItem(t);if(e)this[St][Ds](e)}removeAttributeNS(t,e){let o=this[St].getNamedItemNS(t,e);if(o)this[St][Ds](o)}attachShadow(t){let e=this[m];if(!t)throw new e.TypeError("Failed to execute 'attachShadow' on 'Element': 1 argument required, but only 0 present.");if(!t.mode)throw new e.TypeError("Failed to execute 'attachShadow' on 'Element': Failed to read the 'mode' property from 'ShadowRootInit': Required member is undefined.");if(t.mode!=="open"&&t.mode!=="closed")throw new e.TypeError(`Failed to execute 'attachShadow' on 'Element': Failed to read the 'mode' property from 'ShadowRootInit': The provided value '${t.mode}' is not a valid enum value of type ShadowRootMode.`);if(this[be])throw new e.DOMException("Failed to execute 'attachShadow' on 'Element': Shadow root cannot be created on a host which already hosts a shadow tree.");let o=Ve.createNode(this[x],this[m].ShadowRoot);return this[be]=o,o[Mn]=this,o[Ee]=t.mode,o[Bn]=!!t.clonable,o[kl]=!!t.delegateFocus,o[Gi]=!!t.serializable,o[Ai]=t.slotAssignment==="manual"?"manual":"named",o[zr](),this[be]}toString(){return this.outerHTML}getBoundingClientRect(){return new si}getClientRects(){let t=new em(h);return t.push(this.getBoundingClientRect()),t}setPointerCapture(t){this[Cm].add(t)}hasPointerCapture(t){return this[Cm].has(t)}releasePointerCapture(t){this[Cm].delete(t)}matches(t){return!!mt.matches(this,t)}closest(t){let e=this;while(e){if(mt.matches(e,t))return e;e=e.parentElement}return null}querySelectorAll(t){return mt.querySelectorAll(this,t)}querySelector(t){return mt.querySelector(this,t)}getElementsByClassName(t){return oe.getElementsByClassName(this,t)}getElementsByTagName(t){return oe.getElementsByTagName(this,t)}getElementsByTagNameNS(t,e){return oe.getElementsByTagNameNS(this,t,e)}setAttributeNode(t){return this[St].setNamedItem(t)}setAttributeNodeNS(t){return this[St].setNamedItemNS(t)}getAttributeNode(t){return this[St].getNamedItem(t)}getAttributeNodeNS(t,e){return this[St].getNamedItemNS(t,e)}removeAttributeNode(t){if(t[xt]!==this)throw new this[m].DOMException("Failed to execute 'removeAttributeNode' on 'Element': The node provided is owned by another element.");return this[St][Ds](t),t}scroll(t,e){if(typeof t!=="object"&&arguments.length===1)throw new this[m].TypeError("Failed to execute 'scroll' on 'Element': The provided value is not of type 'ScrollToOptions'.");let o=typeof t==="object"?t:{left:t,top:e};if(o.behavior==="smooth")this[m].setTimeout(()=>{if(o.top!==void 0){let s=Number(o.top);this.scrollTop=isNaN(s)?0:s}if(o.left!==void 0){let s=Number(o.left);this.scrollLeft=isNaN(s)?0:s}});else{if(o.top!==void 0){let s=Number(o.top);this.scrollTop=isNaN(s)?0:s}if(o.left!==void 0){let s=Number(o.left);this.scrollLeft=isNaN(s)?0:s}}}scrollTo(t,e){if(typeof t!=="object"&&arguments.length===1)throw new this[m].TypeError("Failed to execute 'scrollTo' on 'Element': The provided value is not of type 'ScrollToOptions'.");this.scroll(t,e)}scrollBy(t,e){if(typeof t!=="object"&&arguments.length===1)throw new this[m].TypeError("Failed to execute 'scrollBy' on 'Element': The provided value is not of type 'ScrollToOptions'.");let o=typeof t==="object"?t:{left:t,top:e};this.scroll({left:this.scrollLeft+(o.left??0),top:this.scrollTop+(o.top??0),behavior:o.behavior})}scrollIntoView(t){}[Et](t,e=!1){let o=super[Et](t,e);return this.#r(t),o}[ur](t){let e=super[ur](t);return this.#r(t),e}[kr](t,e,o=!1){let s=super[kr](t,e,o);return this.#r(t),s}[Re](t,e){if(!t[rt])return;let o=e?e[q]:null;if(t[rt]==="slot"&&this[W]&&this[W][be]){let s=this[W][be];if(s&&t[q]!==o){if(o!==null&&e){let l=s.querySelector(`slot[name="${e[q]}"]`);if(l)l.dispatchEvent(new C("slotchange",{bubbles:!0}))}else{let l=s.querySelector("slot:not([name])");if(l)l.dispatchEvent(new C("slotchange",{bubbles:!0}))}let n=s.querySelector(`slot[name="${t[q]}"]`);if(n)n.dispatchEvent(new C("slotchange",{bubbles:!0}))}}if(this[t[rt]]!==void 0&&t[rt][0]==="o"&&t[rt][1]==="n")this[p].delete(t[rt]);if(t[rt]==="id"&&this[tt]){if(e?.[q])this.#e(e[q]);this.#t(t[q])}this[Di](new Ro({type:oi.attributes,target:this,attributeName:t[rt],oldValue:o}))}[cr](t){if(t[rt]==="slot"&&this[W]&&this[W][be]){let e=this[W][be],o=e.querySelector(`slot[name="${t[q]}"]`),s=e.querySelector("slot:not([name])");if(o)o.dispatchEvent(new C("slotchange",{bubbles:!0}));if(s)s.dispatchEvent(new C("slotchange",{bubbles:!0}))}if(t[rt]==="id"&&this[tt])this.#e(t[q]);this[Di](new Ro({type:oi.attributes,target:this,attributeName:t[rt],oldValue:t[q]}))}[sr](){let t=this.getAttribute("id");if(t)this.#t(t);if(super[sr](),this[m][Ys].enqueueReaction(this,"connectedCallback"),this[be])for(let e of this[_])this.#r(e)}[nr](){super[nr]();let t=this.getAttribute("id");if(t)this.#e(t);this[m][Ys].enqueueReaction(this,"disconnectedCallback")}[At](){let t=this.getAttribute("id");if(t)this.#e(t);if(this[m][Ys].enqueueReaction(this,"disconnectedCallback"),super[At](),this[be])this[be][At]();this[Aa]=null,this[be]=null,this[va]=null,this[ir]=null,this[Ll]=null,this[p].clear(),this[St][fi].clear(),this[St][Hr].clear(),this[St][Q].clear()}#t(t){if(!t)return;let e=this[x],o=this[m];if(this[ve]&&this[ve]!==e)return;if(!e[Pi].has(t))e[Pi].set(t,{elements:[],htmlCollection:null});let s=e[Pi].get(t);if(!s)return;let n=this[Vt]||this;if(s.elements.push(n),s.elements.length>1){if(!s.htmlCollection)s.htmlCollection=new de(h,()=>s.elements);if(!(t in o)||o[t]===s.elements[0])o[t]=s.htmlCollection}else if(!(t in o)||s.htmlCollection!==null&&o[t]===s.htmlCollection)o[t]=n}#e(t){if(!t)return;let e=this[x],o=this[m];if(this[ve]&&this[ve]!==e)return;let s=e[Pi].get(t);if(!s)return;let n=this[Vt]||this,l=s.elements.indexOf(n);if(l!==-1)s.elements.splice(l,1);if(s.elements.length===1){if(o[t]===s.htmlCollection)o[t]=s.elements[0];s.htmlCollection=null}else if(!s.elements.length){if(e[Pi].delete(t),o[t]===n||o[t]===s.htmlCollection)delete o[t]}}#r(t){let e=this[be];if(!e||!this[tt])return;let o=t.getAttribute?t.getAttribute("slot"):null;if(o){let s=e.querySelector(`slot[name="${o}"]`);if(s)s.dispatchEvent(new C("slotchange",{bubbles:!0}))}else if(t[D]!==T.commentNode){let s=e.querySelector("slot:not([name])");if(s)s.dispatchEvent(new C("slotchange",{bubbles:!0}))}}}class il{static blur(t){let e=t[Vt]||t,o=e[x];if(o[Me]!==e||!e[tt]||e.disabled)return;let s=o[Ms]??null;o[Me]=null,o[Mr](),e.dispatchEvent(new us("blur",{relatedTarget:s,bubbles:!1,composed:!0,cancelable:!0})),e.dispatchEvent(new us("focusout",{relatedTarget:s,bubbles:!0,composed:!0,cancelable:!0}))}static focus(t){let e=t[Vt]||t,o=e[x];if(o[Me]===e||!e[tt]||e.disabled||this.isInert(e))return;o[Ms]=e;let s=o[Me];if(o[Me]!==null)o[Me].blur();o[Ms]=null,o[Me]=e,o[Mr](),e.dispatchEvent(new us("focus",{relatedTarget:s,bubbles:!1,composed:!0})),e.dispatchEvent(new us("focusin",{relatedTarget:s,bubbles:!0,composed:!0}))}static isInert(t){let e=t[Vt]||t;while(e&&typeof e.getAttribute==="function"){if(e.getAttribute("inert")!==null)return!0;e=e[W]}return!1}}class gs{static kebabToCamelCase(t){let e=t.split("-");for(let o=0,s=e.length;o<s;o++)e[o]=o>0?e[o].charAt(0).toUpperCase()+e[o].slice(1):e[o];return e.join("")}static camelCaseToKebab(t){return t.toString().replace(/[A-Z]+(?![a-z])|[A-Z]/g,(e,o)=>(o?"-":"")+e.toLowerCase())}}class rm{constructor(t,e){if(t!==h)throw TypeError("Illegal constructor");return new Proxy(this,{get(o,s){let n=e.getAttribute("data-"+gs.camelCaseToKebab(s));if(n!==null)return n},set(o,s,n){return e.setAttribute("data-"+gs.camelCaseToKebab(s),n),!0},deleteProperty(o,s){return e.removeAttribute("data-"+gs.camelCaseToKebab(s)),!0},ownKeys(o){let s=[];for(let n of e[St][Hr].values())if(n[0][rt].startsWith("data-"))s.push(gs.kebabToCamelCase(n[0][rt].replace("data-","")));return s},has(o,s){return e.hasAttribute("data-"+gs.camelCaseToKebab(s))},defineProperty(o,s,n){if(n.value===void 0)return!1;return e.setAttribute("data-"+gs.camelCaseToKebab(s),n.value),!0},getOwnPropertyDescriptor(o,s){let n=e.getAttribute("data-"+gs.camelCaseToKebab(s));if(!n)return;return{value:n,writable:!0,enumerable:!0,configurable:!0}}})}}class B extends Or{static observedAttributes;[Ta]="";[tb]=0;[eb]=0;[rb]=0;[ob]=0;[ib]=0;[sb]=0;[nb]=0;[lb]=0;[ge]=null;[Uh]=null;#t=null;get oncancel(){return S.getEventListener(this,"oncancel")}set oncancel(t){this[p].set("oncancel",t)}get onerror(){return S.getEventListener(this,"onerror")}set onerror(t){this[p].set("onerror",t)}get onscroll(){return S.getEventListener(this,"onscroll")}set onscroll(t){this[p].set("onscroll",t)}get onselect(){return S.getEventListener(this,"onselect")}set onselect(t){this[p].set("onselect",t)}get onwheel(){return S.getEventListener(this,"onwheel")}set onwheel(t){this[p].set("onwheel",t)}get oncopy(){return S.getEventListener(this,"oncopy")}set oncopy(t){this[p].set("oncopy",t)}get oncut(){return S.getEventListener(this,"oncut")}set oncut(t){this[p].set("oncut",t)}get onpaste(){return S.getEventListener(this,"onpaste")}set onpaste(t){this[p].set("onpaste",t)}get oncompositionend(){return S.getEventListener(this,"oncompositionend")}set oncompositionend(t){this[p].set("oncompositionend",t)}get oncompositionstart(){return S.getEventListener(this,"oncompositionstart")}set oncompositionstart(t){this[p].set("oncompositionstart",t)}get oncompositionupdate(){return S.getEventListener(this,"oncompositionupdate")}set oncompositionupdate(t){this[p].set("oncompositionupdate",t)}get onblur(){return S.getEventListener(this,"onblur")}set onblur(t){this[p].set("onblur",t)}get onfocus(){return S.getEventListener(this,"onfocus")}set onfocus(t){this[p].set("onfocus",t)}get onfocusin(){return S.getEventListener(this,"onfocusin")}set onfocusin(t){this[p].set("onfocusin",t)}get onfocusout(){return S.getEventListener(this,"onfocusout")}set onfocusout(t){this[p].set("onfocusout",t)}get onkeydown(){return S.getEventListener(this,"onkeydown")}set onkeydown(t){this[p].set("onkeydown",t)}get onkeyup(){return S.getEventListener(this,"onkeyup")}set onkeyup(t){this[p].set("onkeyup",t)}get onauxclick(){return S.getEventListener(this,"onauxclick")}set onauxclick(t){this[p].set("onauxclick",t)}get onclick(){return S.getEventListener(this,"onclick")}set onclick(t){this[p].set("onclick",t)}get oncontextmenu(){return S.getEventListener(this,"oncontextmenu")}set oncontextmenu(t){this[p].set("oncontextmenu",t)}get ondblclick(){return S.getEventListener(this,"ondblclick")}set ondblclick(t){this[p].set("ondblclick",t)}get onmousedown(){return S.getEventListener(this,"onmousedown")}set onmousedown(t){this[p].set("onmousedown",t)}get onmouseenter(){return S.getEventListener(this,"onmouseenter")}set onmouseenter(t){this[p].set("onmouseenter",t)}get onmouseleave(){return S.getEventListener(this,"onmouseleave")}set onmouseleave(t){this[p].set("onmouseleave",t)}get onmousemove(){return S.getEventListener(this,"onmousemove")}set onmousemove(t){this[p].set("onmousemove",t)}get onmouseout(){return S.getEventListener(this,"onmouseout")}set onmouseout(t){this[p].set("onmouseout",t)}get onmouseover(){return S.getEventListener(this,"onmouseover")}set onmouseover(t){this[p].set("onmouseover",t)}get onmouseup(){return S.getEventListener(this,"onmouseup")}set onmouseup(t){this[p].set("onmouseup",t)}get ontouchcancel(){return S.getEventListener(this,"ontouchcancel")}set ontouchcancel(t){this[p].set("ontouchcancel",t)}get ontouchend(){return S.getEventListener(this,"ontouchend")}set ontouchend(t){this[p].set("ontouchend",t)}get ontouchmove(){return S.getEventListener(this,"ontouchmove")}set ontouchmove(t){this[p].set("ontouchmove",t)}get ontouchstart(){return S.getEventListener(this,"ontouchstart")}set ontouchstart(t){this[p].set("ontouchstart",t)}get oninvalid(){return S.getEventListener(this,"oninvalid")}set oninvalid(t){this[p].set("oninvalid",t)}get onanimationcancel(){return S.getEventListener(this,"onanimationcancel")}set onanimationcancel(t){this[p].set("onanimationcancel",t)}get onanimationend(){return S.getEventListener(this,"onanimationend")}set onanimationend(t){this[p].set("onanimationend",t)}get onanimationiteration(){return S.getEventListener(this,"onanimationiteration")}set onanimationiteration(t){this[p].set("onanimationiteration",t)}get onanimationstart(){return S.getEventListener(this,"onanimationstart")}set onanimationstart(t){this[p].set("onanimationstart",t)}get onbeforeinput(){return S.getEventListener(this,"onbeforeinput")}set onbeforeinput(t){this[p].set("onbeforeinput",t)}get oninput(){return S.getEventListener(this,"oninput")}set oninput(t){this[p].set("oninput",t)}get onchange(){return S.getEventListener(this,"onchange")}set onchange(t){this[p].set("onchange",t)}get ongotpointercapture(){return S.getEventListener(this,"ongotpointercapture")}set ongotpointercapture(t){this[p].set("ongotpointercapture",t)}get onlostpointercapture(){return S.getEventListener(this,"onlostpointercapture")}set onlostpointercapture(t){this[p].set("onlostpointercapture",t)}get onpointercancel(){return S.getEventListener(this,"onpointercancel")}set onpointercancel(t){this[p].set("onpointercancel",t)}get onpointerdown(){return S.getEventListener(this,"onpointerdown")}set onpointerdown(t){this[p].set("onpointerdown",t)}get onpointerenter(){return S.getEventListener(this,"onpointerenter")}set onpointerenter(t){this[p].set("onpointerenter",t)}get onpointerleave(){return S.getEventListener(this,"onpointerleave")}set onpointerleave(t){this[p].set("onpointerleave",t)}get onpointermove(){return S.getEventListener(this,"onpointermove")}set onpointermove(t){this[p].set("onpointermove",t)}get onpointerout(){return S.getEventListener(this,"onpointerout")}set onpointerout(t){this[p].set("onpointerout",t)}get onpointerover(){return S.getEventListener(this,"onpointerover")}set onpointerover(t){this[p].set("onpointerover",t)}get onpointerup(){return S.getEventListener(this,"onpointerup")}set onpointerup(t){this[p].set("onpointerup",t)}get ontransitioncancel(){return S.getEventListener(this,"ontransitioncancel")}set ontransitioncancel(t){this[p].set("ontransitioncancel",t)}get ontransitionend(){return S.getEventListener(this,"ontransitionend")}set ontransitionend(t){this[p].set("ontransitionend",t)}get ontransitionrun(){return S.getEventListener(this,"ontransitionrun")}set ontransitionrun(t){this[p].set("ontransitionrun",t)}get ontransitionstart(){return S.getEventListener(this,"ontransitionstart")}set ontransitionstart(t){this[p].set("ontransitionstart",t)}get accessKey(){return this[Ta]}set accessKey(t){this[Ta]=t}get contentEditable(){let t=String(this.getAttribute("contentEditable")).toLowerCase();switch(t){case"false":case"true":case"plaintext-only":return t;default:return"inherit"}}set contentEditable(t){switch(t=String(t).toLowerCase(),t){case"false":case"true":case"plaintext-only":case"inherit":this.setAttribute("contentEditable",t);break;default:throw new this[m].SyntaxError(`Failed to set the 'contentEditable' property on 'HTMLElement': The value provided ('${t}') is not one of 'true', 'false', 'plaintext-only', or 'inherit'.`)}}get isContentEditable(){let t=this.contentEditable;if(t==="true"||t==="plaintext-only")return!0;if(t==="inherit")return this[W]?.isContentEditable??!1;return!1}get offsetHeight(){return this[tb]}get offsetWidth(){return this[eb]}get offsetLeft(){return this[rb]}get offsetTop(){return this[ob]}get clientHeight(){return this[ib]}get clientWidth(){return this[sb]}get clientLeft(){return this[nb]}get clientTop(){return this[lb]}get tabIndex(){let t=this.getAttribute("tabindex");if(t!==null){let e=Number(t);return isNaN(e)?-1:e}return-1}set tabIndex(t){let e=Number(t);if(isNaN(e))this.setAttribute("tabindex","0");else this.setAttribute("tabindex",String(e))}get innerText(){if(!this[tt])return this.textContent;let t="";for(let e of this[_])if(e[D]===T.elementNode){let o=e,s=this[m].getComputedStyle(o);if(o[z]!=="SCRIPT"&&o[z]!=="STYLE"&&o[z]!=="svg"){let n=s.display;if(n!=="none"){let l=s.textTransform,a=o.innerText;if((n==="block"||n==="flex")&&t&&a)t+=`
91
+ `;let y=a;switch(l){case"uppercase":y=y.toUpperCase();break;case"lowercase":y=y.toLowerCase();break;case"capitalize":y=y.replace(/(^|\s)\S/g,(u)=>u.toUpperCase());break}t+=y}}}else if(e[D]===T.textNode)t+=e.textContent.replace(/[\n\r]/,"");return t}set innerText(t){let e=this[_];while(e.length)this.removeChild(e[0]);let o=t.split(/[\n\r]/),s=this[x];for(let n=0,l=o.length;n<l;n++){if(n!==0)this.appendChild(s.createElement("br"));this.appendChild(s.createTextNode(o[n]))}}get outerText(){return this.innerText}set outerText(t){if(!this[W])throw new this[m].DOMException("Failed to set the 'outerHTML' property on 'Element': This element has no parent node.");let e=t.split(/[\n\r]/);for(let o=0,s=e.length;o<s;o++){if(o!==0)this[W].insertBefore(this[x].createElement("br"),this);this[W].insertBefore(this[x].createTextNode(e[o]),this)}this[W].removeChild(this)}get style(){if(!this[ge])this[ge]=new Yr(h,this[m],{element:this});return this[ge]}set style(t){this.style.cssText=typeof t==="string"?t:""}get dataset(){return this[Uh]??=new rm(h,this)}get dir(){return this.getAttribute("dir")||""}set dir(t){this.setAttribute("dir",t)}get hidden(){return this.getAttribute("hidden")!==null}set hidden(t){if(!t)this.removeAttribute("hidden");else this.setAttribute("hidden","")}get inert(){return this.getAttribute("inert")!==null}set inert(t){if(!t)this.removeAttribute("inert");else this.setAttribute("inert","")}get lang(){return this.getAttribute("lang")||""}set lang(t){this.setAttribute("lang",t)}get title(){return this.getAttribute("title")||""}set title(t){this.setAttribute("title",t)}get popover(){switch(this.getAttribute("popover")){case null:return null;case"":case"auto":return"auto";case"manual":return"manual";default:return"manual"}}set popover(t){if(t===null){this.removeAttribute("popover");return}this.setAttribute("popover",t)}click(){this.dispatchEvent(new Zl("click",{bubbles:!0,composed:!0,cancelable:!0}))}blur(){il.blur(this)}focus(){il.focus(this)}[ht](t=!1){let e=super[ht](t);return e[Ta]=this[Ta],e}[sr](){let t=this[m],e=this[ot],o=t.customElements[ci];if(this.constructor===t.HTMLElement&&e.includes("-")&&o){if(!this.#t){let s=this.#e.bind(this),n=o.get(e);if(n)n.unshift(s);else o.set(e,[s]);this.#t=s}}super[sr]()}[nr](){let t=this[m],e=this[ot],o=t.customElements[ci];if(this.constructor===t.HTMLElement&&e.includes("-")&&o){let s=o.get(e);if(s&&this.#t){let n=s.indexOf(this.#t);if(n!==-1)s.splice(n,1);if(!s.length)o.delete(e);this.#t=null}}super[nr]()}[Re](t,e){super[Re](t,e),this[m][Ys].enqueueReaction(this,"attributeChangedCallback",[t.name,e?.value??null,t.value])}[cr](t){super[cr](t),this[m][Ys].enqueueReaction(this,"attributeChangedCallback",[t.name,t.value,null])}[At](){super[At](),this[ge]=null,this[Uh]=null}#e(){if(!this[W])return;let t=this[m],e=this[ot],o=this[x].createElement(e),s=o[U];o[_]=this[_],o[dt]=this[dt],o[Ts]=null,o[ir]=null,o[tt]=this[tt],o[ve]=this[ve],o[Gt]=this[Gt],o[W]=this[W],o[Ie]=this[Ie],o[ze]=this[ze],o[to]=this[to],o[Zr]=this[Zr],o[U]=this[U],o[He]=this[He],o[St][fi]=this[St][fi],o[St][Hr]=this[St][Hr],o[St][Q]=this[St][Q];for(let u of o[St][Q].values())u[xt]=o;this[Mr](),this[_]=[],this[dt]=[],this[Ts]=null,this[ir]=null,this[W]=null,this[ve]=null,this[Gt]=null,this[Ie]=null,this[ze]=null,this[to]=[],this[Zr]=null,this[U]=s,this[He]=[],this[St][fi]=new Map,this[St][Hr]=new Map,this[St][Q]=new Map;for(let u of o[_])u[W]=o;let n=o[W][_],l=o[W][dt];n[n.indexOf(this)]=o,l[l.indexOf(this)]=o;let a=t.customElements[ci],y=a.get(e);if(y&&this.#t){let u=y.indexOf(this.#t);if(u!==-1)y.splice(u,1);if(!y.length)a.delete(e);this.#t=null}if(o[tt]){if(o[be])o[be][tt]=!0;o[sr]()}}}class om{element;constructor(t){this.element=t}getOrigin(){try{return new URL(this.getHref()).origin}catch(t){return""}}getHref(){if(!this.element.hasAttribute("href"))return"";try{return new URL(this.element.getAttribute("href"),this.element[x].location.href).href}catch(t){return this.element.getAttribute("href")}}setHref(t){this.element.setAttribute("href",t)}getProtocol(){try{return new URL(this.getHref()).protocol}catch(t){return""}}setProtocol(t){let e;try{e=new URL(this.getHref())}catch(o){return}e.protocol=t,this.element.setAttribute("href",e.href)}getUsername(){try{return new URL(this.getHref()).username}catch(t){return""}}setUsername(t){let e;try{e=new URL(this.getHref())}catch(o){return}e.username=t,this.element.setAttribute("href",e.href)}getPassword(){try{return new URL(this.getHref()).password}catch(t){return""}}setPassword(t){let e;try{e=new URL(this.getHref())}catch(o){return}e.password=t,this.element.setAttribute("href",e.href)}getHost(){try{return new URL(this.getHref()).host}catch(t){return""}}setHost(t){let e;try{e=new URL(this.getHref())}catch(o){return}e.host=t,this.element.setAttribute("href",e.href)}getHostname(){try{return new URL(this.getHref()).hostname}catch(t){return""}}setHostname(t){let e;try{e=new URL(this.getHref())}catch(o){return}e.hostname=t,this.element.setAttribute("href",e.href)}getPort(){try{return new URL(this.getHref()).port}catch(t){return""}}setPort(t){let e;try{e=new URL(this.getHref())}catch(o){return}e.port=t,this.element.setAttribute("href",e.href)}getPathname(){try{return new URL(this.getHref()).pathname}catch(t){return""}}setPathname(t){let e;try{e=new URL(this.getHref())}catch(o){return}e.pathname=t,this.element.setAttribute("href",e.href)}getSearch(){try{return new URL(this.getHref()).search}catch(t){return""}}setSearch(t){let e;try{e=new URL(this.getHref())}catch(o){return}e.search=t,this.element.setAttribute("href",e.href)}getHash(){let t=this.element.getAttribute("href");if(t?.[0]==="#")return t;let e;try{e=new URL(this.getHref())}catch(o){return""}return e.hash}setHash(t){let e;try{e=new URL(this.getHref())}catch(o){return}e.hash=t,this.element.setAttribute("href",e.href)}}class Rp extends B{[eo]=null;#t=new om(this);get download(){return this.getAttribute("download")||""}set download(t){this.setAttribute("download",t)}get hash(){return this.#t.getHash()}set hash(t){this.#t.setHash(t)}get href(){return this.#t.getHref()}set href(t){this.#t.setHref(t)}get hreflang(){return this.getAttribute("hreflang")||""}set hreflang(t){this.setAttribute("hreflang",t)}get origin(){return this.#t.getOrigin()}get ping(){return this.getAttribute("ping")||""}set ping(t){this.setAttribute("ping",t)}get protocol(){return this.#t.getProtocol()}set protocol(t){this.#t.setProtocol(t)}get username(){return this.#t.getUsername()}set username(t){this.#t.setUsername(t)}get password(){return this.#t.getPassword()}set password(t){this.#t.setPassword(t)}get pathname(){return this.#t.getPathname()}set pathname(t){this.#t.setPathname(t)}get port(){return this.#t.getPort()}set port(t){this.#t.setPort(t)}get host(){return this.#t.getHost()}set host(t){this.#t.setHost(t)}get hostname(){return this.#t.getHostname()}set hostname(t){this.#t.setHostname(t)}get referrerPolicy(){return this.getAttribute("referrerPolicy")||""}set referrerPolicy(t){this.setAttribute("referrerPolicy",t)}get rel(){return this.getAttribute("rel")||""}set rel(t){this.setAttribute("rel",t)}get relList(){if(!this[eo])this[eo]=new Br(h,this,"rel");return this[eo]}set relList(t){this.setAttribute("rel",t)}get search(){return this.#t.getSearch()}set search(t){this.#t.setSearch(t)}get target(){return this.getAttribute("target")||""}set target(t){this.setAttribute("target",t)}get text(){return this.textContent}set text(t){this.textContent=t}get type(){return this.getAttribute("type")||""}set type(t){this.setAttribute("type",t)}get tabIndex(){let t=this.getAttribute("tabindex");if(t!==null){let e=Number(t);return isNaN(e)?0:e}return 0}set tabIndex(t){super.tabIndex=t}toString(){return this.href}dispatchEvent(t){let e=super.dispatchEvent(t);if(!t[lr]&&t.type==="click"&&t instanceof qe&&(t.eventPhase===ae.none||t.eventPhase===ae.bubbling)){let o=this.href;if(o){let s=[];if(this.relList.contains("noreferrer"))s.push("noreferrer");if(this.relList.contains("noopener"))s.push("noopener");if(this[m].open(o,this.target||"_self",s.join(",")),this[m].closed)t.stopImmediatePropagation()}}return e}}class Fp extends B{[eo]=null;#t=new om(this);get alt(){return this.getAttribute("alt")||""}set alt(t){this.setAttribute("alt",t)}get coords(){return this.getAttribute("coords")||""}set coords(t){this.setAttribute("coords",t)}get shape(){return this.getAttribute("shape")||""}set shape(t){this.setAttribute("shape",t)}get download(){return this.getAttribute("download")||""}set download(t){this.setAttribute("download",t)}get referrerPolicy(){return this.getAttribute("referrerPolicy")||""}set referrerPolicy(t){this.setAttribute("referrerPolicy",t)}get ping(){return this.getAttribute("ping")||""}set ping(t){this.setAttribute("ping",t)}get rel(){return this.getAttribute("rel")||""}set rel(t){this.setAttribute("rel",t)}get relList(){if(!this[eo])this[eo]=new Br(h,this,"rel");return this[eo]}set relList(t){this.setAttribute("rel",t)}get target(){return this.getAttribute("target")||""}set target(t){this.setAttribute("target",t)}get origin(){return this.#t.getOrigin()}get href(){return this.#t.getHref()}set href(t){this.#t.setHref(t)}get protocol(){return this.#t.getProtocol()}set protocol(t){this.#t.setProtocol(t)}get username(){return this.#t.getUsername()}set username(t){this.#t.setUsername(t)}get password(){return this.#t.getPassword()}set password(t){this.#t.setPassword(t)}get host(){return this.#t.getHost()}set host(t){this.#t.setHost(t)}get hostname(){return this.#t.getHostname()}set hostname(t){this.#t.setHostname(t)}get port(){return this.#t.getPort()}set port(t){this.#t.setPort(t)}get pathname(){return this.#t.getPathname()}set pathname(t){this.#t.setPathname(t)}get search(){return this.#t.getSearch()}set search(t){this.#t.setSearch(t)}get hash(){return this.#t.getHash()}set hash(t){this.#t.setHash(t)}get tabIndex(){let t=this.getAttribute("tabindex");if(t!==null){let e=Number(t);return isNaN(e)?0:e}return 0}set tabIndex(t){super.tabIndex=t}toString(){return this.href}dispatchEvent(t){let e=super.dispatchEvent(t);if(!t[lr]&&t[Qt]==="click"&&t[xr]===ae.none&&t instanceof qe){let o=this.href;if(o){if(this[m].open(o,this.target||"_self"),this[m].closed)t.stopImmediatePropagation()}}return e}}class sl{constructor(t){if(t!==h)throw TypeError("Illegal constructor")}get length(){return 0}get[Symbol.toStringTag](){return"TimeRanges"}toLocaleString(){return"[object TimeRanges]"}toString(){return"[object TimeRanges]"}start(t){return 0}end(t){return 0}}import JP from"crypto";class Vp extends C{track;constructor(t,e=null){super(t,e);this.track=e?.track??null}}class nl extends vt{active=!0;id=JP.randomUUID();onaddtrack=null;onremovetrack=null;[gi]=[];constructor(t){super();if(!this[m])throw TypeError(`Failed to construct '${this.constructor.name}': '${this.constructor.name}' was constructed outside a Window context.`);if(t!==void 0)this[gi]=t instanceof nl?t[gi].slice():t}addTrack(t){if(this[gi].includes(t))return;this[gi].push(t),this.dispatchEvent(new Vp("addtrack",{track:t}))}clone(){return new this.constructor(this)}getAudioTracks(){return this[gi].filter((t)=>t.kind==="audio")}getTrackById(t){for(let e of this[gi])if(e.id===t)return e;return null}getVideoTracks(){return this[gi].filter((t)=>t.kind==="video")}removeTrack(t){let e=this[gi].indexOf(t);if(e===-1)return;this[gi].splice(e,1),this.dispatchEvent(new Vp("removetrack",{track:t}))}}var tg;(function(t){t.subtitles="subtitles",t.captions="captions",t.descriptions="descriptions",t.chapters="chapters",t.metadata="metadata"})(tg||(tg={}));var Ss=tg;class an extends B{[kh]=1;[Tl]=!0;[Mh]=0;[Ih]=1;[Rh]=1;[Ca]=!1;[Cl]=!1;[Fh]=!0;[pb]=new sl(h);[ub]=NaN;[Qe]=null;[hb]=!1;[cb]=0;[kn]=0;[db]=!1;[bb]=new sl(h);[_h]="";[gb]=new sl(h);[Sb]=new this[m].RemotePlayback;[Dm]=null;[Wh]=null;[Yh]=null;[Vh]=[];get onabort(){return S.getEventListener(this,"onabort")}set onabort(t){this[p].set("onabort",t)}get oncanplay(){return S.getEventListener(this,"oncanplay")}set oncanplay(t){this[p].set("oncanplay",t)}get oncanplaythrough(){return S.getEventListener(this,"oncanplaythrough")}set oncanplaythrough(t){this[p].set("oncanplaythrough",t)}get ondurationchange(){return S.getEventListener(this,"ondurationchange")}set ondurationchange(t){this[p].set("ondurationchange",t)}get onemptied(){return S.getEventListener(this,"onemptied")}set onemptied(t){this[p].set("onemptied",t)}get onended(){return S.getEventListener(this,"onended")}set onended(t){this[p].set("onended",t)}get onloadeddata(){return S.getEventListener(this,"onloadeddata")}set onloadeddata(t){this[p].set("onloadeddata",t)}get onloadedmetadata(){return S.getEventListener(this,"onloadedmetadata")}set onloadedmetadata(t){this[p].set("onloadedmetadata",t)}get onloadstart(){return S.getEventListener(this,"onloadstart")}set onloadstart(t){this[p].set("onloadstart",t)}get onpause(){return S.getEventListener(this,"onpause")}set onpause(t){this[p].set("onpause",t)}get onplay(){return S.getEventListener(this,"onplay")}set onplay(t){this[p].set("onplay",t)}get onplaying(){return S.getEventListener(this,"onplaying")}set onplaying(t){this[p].set("onplaying",t)}get onprogress(){return S.getEventListener(this,"onprogress")}set onprogress(t){this[p].set("onprogress",t)}get onratechange(){return S.getEventListener(this,"onratechange")}set onratechange(t){this[p].set("onratechange",t)}get onresize(){return S.getEventListener(this,"onresize")}set onresize(t){this[p].set("onresize",t)}get onseeked(){return S.getEventListener(this,"onseeked")}set onseeked(t){this[p].set("onseeked",t)}get onseeking(){return S.getEventListener(this,"onseeking")}set onseeking(t){this[p].set("onseeking",t)}get onstalled(){return S.getEventListener(this,"onstalled")}set onstalled(t){this[p].set("onstalled",t)}get onsuspend(){return S.getEventListener(this,"onsuspend")}set onsuspend(t){this[p].set("onsuspend",t)}get ontimeupdate(){return S.getEventListener(this,"ontimeupdate")}set ontimeupdate(t){this[p].set("ontimeupdate",t)}get onvolumechange(){return S.getEventListener(this,"onvolumechange")}set onvolumechange(t){this[p].set("onvolumechange",t)}get onwaiting(){return S.getEventListener(this,"onwaiting")}set onwaiting(t){this[p].set("onwaiting",t)}get buffered(){return this[pb]}get duration(){return this[ub]}get error(){return this[Qe]}get ended(){return this[hb]}get networkState(){return this[cb]}get readyState(){return this[kn]}get remote(){return this[Sb]}get seeking(){return this[db]}get seekable(){return this[bb]}get sinkId(){return this[_h]}get played(){return this[gb]}get autoplay(){return this.getAttribute("autoplay")!==null}set autoplay(t){if(!t)this.removeAttribute("autoplay");else this.setAttribute("autoplay","")}get controls(){return this.getAttribute("controls")!==null}set controls(t){if(!t)this.removeAttribute("controls");else this.setAttribute("controls","")}get loop(){return this.getAttribute("loop")!==null}set loop(t){if(!t)this.removeAttribute("loop");else this.setAttribute("loop","")}get preload(){return this.getAttribute("preload")||"auto"}set preload(t){this.setAttribute("preload",t)}get src(){if(!this.hasAttribute("src"))return"";try{return new URL(this.getAttribute("src"),this[x].location.href).href}catch(t){return this.getAttribute("src")}}set src(t){if(this.setAttribute("src",t),Boolean(t))this.dispatchEvent(new C("canplay",{bubbles:!1,cancelable:!1})),this.dispatchEvent(new C("durationchange",{bubbles:!1,cancelable:!1}))}get controlsList(){if(this[Dm]===null)this[Dm]=new Br(h,this,"controlslist");return this[Dm]}set controlsList(t){this.setAttribute("controlslist",t)}get mediaKeys(){return this[Wh]}get muted(){if(this[Ca])return this[Ca];if(!this[Cl])return this.getAttribute("muted")!==null;return!1}set muted(t){if(this[Ca]=!!t,!t&&!this[Cl])this.removeAttribute("muted");else this.setAttribute("muted","")}get defaultMuted(){return this[Cl]}set defaultMuted(t){if(this[Cl]=!!t,!this[Cl]&&!this[Ca])this.removeAttribute("muted");else this.setAttribute("muted","")}get disableRemotePlayback(){return this.getAttribute("disableremoteplayback")!==null}set disableRemotePlayback(t){if(!t)this.removeAttribute("disableremoteplayback");else this.setAttribute("disableremoteplayback","")}get srcObject(){return this[Yh]}set srcObject(t){if(t!==null&&!(t instanceof nl))throw new this[m].TypeError("Failed to set the 'srcObject' property on 'HTMLMediaElement': The provided value is not of type 'MediaStream'.");this[Yh]=t}get textTracks(){let t=[];for(let e of this[Vh])t.push(e);for(let e of this.querySelectorAll("track")[Q])t.push(e.track);return new this[m].TextTrackList(h,t)}get currentSrc(){let t=this.src;if(t)return t;let e=this.querySelector("source");return e?e.src:""}get volume(){return this[kh]}set volume(t){let e=Number(t);if(isNaN(e))throw new this[m].TypeError("Failed to set the 'volume' property on 'HTMLMediaElement': The provided double value is non-finite.");if(e<0||e>1)throw new this[m].DOMException(`Failed to set the 'volume' property on 'HTMLMediaElement': The volume provided (${e}) is outside the range [0, 1].`,w.indexSizeError);this[kh]=e}get crossOrigin(){let t=this.getAttribute("crossorigin");if(t==="use-credentials")return"use-credentials";if(t!==null)return"anonymous";return null}set crossOrigin(t){this.setAttribute("crossorigin",t)}get currentTime(){return this[Mh]}set currentTime(t){let e=Number(t);if(isNaN(e))throw new this[m].TypeError("Failed to set the 'currentTime' property on 'HTMLMediaElement': The provided double value is non-finite.");this[Mh]=e}get playbackRate(){return this[Ih]}set playbackRate(t){let e=Number(t);if(isNaN(e))throw new this[m].TypeError("Failed to set the 'playbackRate' property on 'HTMLMediaElement': The provided double value is non-finite.");this[Ih]=e}get defaultPlaybackRate(){return this[Rh]}set defaultPlaybackRate(t){let e=Number(t);if(isNaN(e))throw new this[m].TypeError("Failed to set the 'defaultPlaybackRate' property on 'HTMLMediaElement': The provided double value is non-finite.");this[Rh]=e}get preservesPitch(){return this[Fh]}set preservesPitch(t){this[Fh]=Boolean(t)}get paused(){return this[Tl]}get tabIndex(){let t=this.getAttribute("tabindex");if(t!==null){let e=Number(t);return isNaN(e)?0:e}return 0}set tabIndex(t){super.tabIndex=t}addTextTrack(t,e,o){let s=this[m];if(arguments.length===0)throw new s.TypeError("Failed to execute 'addTextTrack' on 'HTMLMediaElement': 1 argument required, but only 0 present.");if(!Ss[t])throw new s.TypeError(`Failed to execute 'addTextTrack' on 'HTMLMediaElement': The provided value '${t}' is not a valid enum value of type TextTrackKind.`);let n=new s.TextTrack(h);return n[wo]=t,n[Os]=e||"",n[Il]=o||"",this[Vh].push(n),n}pause(){if(this[Tl])return;this[Tl]=!0,this.dispatchEvent(new C("pause",{bubbles:!1,cancelable:!1}))}async play(){if(!this[Tl])return;this[Tl]=!1,this.dispatchEvent(new C("play",{bubbles:!1,cancelable:!1})),this.dispatchEvent(new C("playing",{bubbles:!1,cancelable:!1}))}canPlayType(t){return""}fastSeek(t){}load(){this.dispatchEvent(new C("emptied",{bubbles:!1,cancelable:!1}))}async setMediaKeys(t){this[Wh]=t}async setSinkId(t){this[_h]=t}captureStream(){return new this[m].MediaStream}[ht](t=!1){return super[ht](t)}}class ia extends an{}class Dp extends B{get href(){if(!this.hasAttribute("href"))return this[x].location.href;try{return new URL(this.getAttribute("href"),this[x].location.href).href}catch(t){return this.getAttribute("href")}}set href(t){this.setAttribute("href",t)}get target(){return this.getAttribute("target")||""}set target(t){this.setAttribute("target",t)}[ht](t=!1){return super[ht](t)}}class Bp extends B{get onafterprint(){return S.getEventListener(this,"onafterprint")}set onafterprint(t){this[p].set("onafterprint",t)}get onbeforeprint(){return S.getEventListener(this,"onbeforeprint")}set onbeforeprint(t){this[p].set("onbeforeprint",t)}get onbeforeunload(){return S.getEventListener(this,"onbeforeunload")}set onbeforeunload(t){this[p].set("onbeforeunload",t)}get ongamepadconnected(){return S.getEventListener(this,"ongamepadconnected")}set ongamepadconnected(t){this[p].set("ongamepadconnected",t)}get ongamepaddisconnected(){return S.getEventListener(this,"ongamepaddisconnected")}set ongamepaddisconnected(t){this[p].set("ongamepaddisconnected",t)}get onhashchange(){return S.getEventListener(this,"onhashchange")}set onhashchange(t){this[p].set("onhashchange",t)}get onlanguagechange(){return S.getEventListener(this,"onlanguagechange")}set onlanguagechange(t){this[p].set("onlanguagechange",t)}get onmessage(){return S.getEventListener(this,"onmessage")}set onmessage(t){this[p].set("onmessage",t)}get onmessageerror(){return S.getEventListener(this,"onmessageerror")}set onmessageerror(t){this[p].set("onmessageerror",t)}get onoffline(){return S.getEventListener(this,"onoffline")}set onoffline(t){this[p].set("onoffline",t)}get ononline(){return S.getEventListener(this,"ononline")}set ononline(t){this[p].set("ononline",t)}get onpagehide(){return S.getEventListener(this,"onpagehide")}set onpagehide(t){this[p].set("onpagehide",t)}get onpageshow(){return S.getEventListener(this,"onpageshow")}set onpageshow(t){this[p].set("onpageshow",t)}get onpopstate(){return S.getEventListener(this,"onpopstate")}set onpopstate(t){this[p].set("onpopstate",t)}get onrejectionhandled(){return S.getEventListener(this,"onrejectionhandled")}set onrejectionhandled(t){this[p].set("onrejectionhandled",t)}get onstorage(){return S.getEventListener(this,"onstorage")}set onstorage(t){this[p].set("onstorage",t)}get onunhandledrejection(){return S.getEventListener(this,"onunhandledrejection")}set onunhandledrejection(t){this[p].set("onunhandledrejection",t)}get onunload(){return S.getEventListener(this,"onunload")}set onunload(t){this[p].set("onunload",t)}}class Op extends B{}var ZP=/^([^\x00-\x20\x22\x28\x29\x2c\x2e\x3a-\x3c\x3e\x40\x5b-\x5d\x7f-\xff]+|\x22([^\x0d\x22\x5c\x80-\xff]|\x5c[\x00-\x7f])*\x22)(\x2e([^\x00-\x20\x22\x28\x29\x2c\x2e\x3a-\x3c\x3e\x40\x5b-\x5d\x7f-\xff]+|\x22([^\x0d\x22\x5c\x80-\xff]|\x5c[\x00-\x7f])*\x22))*\x40([^\x00-\x20\x22\x28\x29\x2c\x2e\x3a-\x3c\x3e\x40\x5b-\x5d\x7f-\xff]+|\x5b([^\x0d\x5b-\x5d\x80-\xff]|\x5c[\x00-\x7f])*\x5d)(\x2e([^\x00-\x20\x22\x28\x29\x2c\x2e\x3a-\x3c\x3e\x40\x5b-\x5d\x7f-\xff]+|\x5b([^\x0d\x5b-\x5d\x80-\xff]|\x5c[\x00-\x7f])*\x5d))*$/,tA=/^(?:(?:https?|HTTPS?|ftp|FTP):\/\/)(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-zA-Z\u00a1-\uffff0-9]-*)*[a-zA-Z\u00a1-\uffff0-9]+)(?:\.(?:[a-zA-Z\u00a1-\uffff0-9]-*)*[a-zA-Z\u00a1-\uffff0-9]+)*)(?::\d{2,5})?(?:[\/?#]\S*)?$/;class Qr{element;constructor(t){this.element=t}get badInput(){return this.element[ot]==="input"&&(this.element.type==="number"||this.element.type==="range")&&this.element.value.length>0&&!/^[-+]?(?:\d+|\d*[.,]\d+)$/.test(this.element.value)}get customError(){return this.element[Ce].length>0}get patternMismatch(){return this.element[ot]==="input"&&this.element.hasAttribute("pattern")&&this.element.value.length>0&&this.element.value.replace(new RegExp(this.element.getAttribute("pattern")),"").length>0}get rangeOverflow(){return this.element[ot]==="input"&&this.element.hasAttribute("max")&&(this.element.type==="number"||this.element.type==="range")&&this.element.value.length>0&&Number(this.element.value)>Number(this.element.getAttribute("max"))}get rangeUnderflow(){return this.element[ot]==="input"&&this.element.hasAttribute("min")&&(this.element.type==="number"||this.element.type==="range")&&this.element.value.length>0&&Number(this.element.value)<Number(this.element.getAttribute("min"))}get stepMismatch(){return this.element[ot]==="input"&&(this.element.type==="number"||this.element.type==="range")&&(this.element.hasAttribute("step")&&this.element.getAttribute("step")!=="any"&&Number(this.element.value)%Number(this.element.getAttribute("step"))!==0||!this.element.hasAttribute("step")&&Number(this.element.value)%1!==0)}get tooLong(){return(this.element[ot]==="input"||this.element[ot]==="textarea")&&this.element.maxLength>0&&this.element.value.length>this.element.maxLength}get tooShort(){return(this.element[ot]==="input"||this.element[ot]==="textarea")&&this.element.minLength>0&&this.element.value.length>0&&this.element.value.length<this.element.minLength}get typeMismatch(){return this.element[ot]==="input"&&this.element.value.length>0&&(this.element.type==="email"&&!ZP.test(this.element.value)||this.element.type==="url"&&!tA.test(this.element.value))}get valueMissing(){if(!this.element.required||this.element[ot]==="object"||this.element[ot]==="output")return!1;if(this.element[ot]==="input"){if(this.element.type==="checkbox")return!this.element.checked;else if(this.element.type==="radio"){if(this.element.checked)return!1;if(!this.element.name)return!0;let t=this.element[Gt]||this.element.getRootNode();return!t||!t.querySelector(`input[name="${this.element.name}"]:checked`)}}return this.element.value.length===0}get valid(){return!this.badInput&&!this.customError&&!this.patternMismatch&&!this.rangeOverflow&&!this.rangeUnderflow&&!this.stepMismatch&&!this.tooLong&&!this.tooShort&&!this.typeMismatch&&!this.valueMissing}}class jr{static getAssociatedLabelElements(t){let e=t.id,o;if(e&&t[tt])o=(t[ve]||t[x]).querySelectorAll(`label[for="${e}"]`)[Q];else o=[];let s=t[W];while(s){if(s.tagName==="LABEL"){o.push(s);break}s=s[W]}return new Wo(h,o)}}import{URL as eA}from"url";var rA=["submit","reset","button","menu"];class Gp extends B{[Ce]="";[Ke]=new Qr(this);[Gt]=null;[On]=null;get validationMessage(){return this[Ce]}get validity(){return this[Ke]}get name(){return this.getAttribute("name")||""}set name(t){this.setAttribute("name",t)}get value(){return this.getAttribute("value")||""}set value(t){this.setAttribute("value",t)}get disabled(){return this.getAttribute("disabled")!==null}set disabled(t){if(!t)this.removeAttribute("disabled");else this.setAttribute("disabled","")}get type(){let t=this.getAttribute("type");if(t===null||!rA.includes(t))return"submit";return t}set type(t){this.setAttribute("type",t)}get formAction(){if(!this.hasAttribute("formaction"))return this[x].location.href;try{return new eA(this.getAttribute("formaction"),this[x].location.href).href}catch(t){return""}}set formAction(t){this.setAttribute("formaction",t)}get formEnctype(){return this.getAttribute("formenctype")||""}set formEnctype(t){this.setAttribute("formenctype",t)}get formMethod(){return this.getAttribute("formmethod")||""}set formMethod(t){this.setAttribute("formmethod",t)}get formNoValidate(){return this.getAttribute("formnovalidate")!==null}set formNoValidate(t){if(!t)this.removeAttribute("formnovalidate");else this.setAttribute("formnovalidate","")}get formTarget(){return this.getAttribute("formtarget")||""}set formTarget(t){this.setAttribute("formtarget",t)}get form(){if(this[Gt])return this[Gt];let t=this.getAttribute("form");if(!t||!this[tt])return null;return this[x].getElementById(t)}get labels(){return jr.getAssociatedLabelElements(this)}get popoverTargetElement(){return this[On]}set popoverTargetElement(t){if(t!==null&&!(t instanceof B))throw new this[m].TypeError("Failed to set the 'popoverTargetElement' property on 'HTMLInputElement': Failed to convert value to 'Element'.");this[On]=t}get popoverTargetAction(){let t=this.getAttribute("popovertargetaction");if(t===null||t!=="hide"&&t!=="show"&&t!=="toggle")return"toggle";return t}set popoverTargetAction(t){this.setAttribute("popovertargetaction",t)}get tabIndex(){let t=this.getAttribute("tabindex");if(t!==null){let e=Number(t);return isNaN(e)?0:e}return 0}set tabIndex(t){super.tabIndex=t}checkValidity(){let t=this.disabled||this.type==="reset"||this.type==="button"||this[Ke].valid;if(!t)this.dispatchEvent(new C("invalid",{bubbles:!0,cancelable:!0}));return t}reportValidity(){return this.checkValidity()}setCustomValidity(t){this[Ce]=String(t)}dispatchEvent(t){if(t.type==="click"&&t instanceof qe&&t.eventPhase===ae.none&&this.disabled)return!1;let e=super.dispatchEvent(t);if(!t[lr]&&t.type==="click"&&t.eventPhase===ae.none&&t instanceof qe){let o=this.type;if(o==="submit"||o==="reset"){let s=this.form;if(s){if(o==="submit"&&this[tt])s.requestSubmit(this);else if(o==="reset")s.reset()}}}return e}}class bc{height;width;constructor(t,e){this.width=t,this.height=e}close(){}}class gc{width;height;constructor(t,e){this.width=t,this.height=e}getContext(t,e){return null}async convertToBlob(t){return new ie([])}transferToImageBitmap(){return new bc(this.width,this.height)}}var cS="S3F/aBCdEfGHIjKlMnOpQRStUvWxYz1234567890+1AbC2DEf2GHi3jK34le+ab12C3+1aBCdEf==";class Up extends B{get oncontextlost(){return S.getEventListener(this,"oncontextlost")}set oncontextlost(t){this[p].set("oncontextlost",t)}get oncontextrestored(){return S.getEventListener(this,"oncontextrestored")}set oncontextrestored(t){this[p].set("oncontextrestored",t)}get onwebglcontextcreationerror(){return S.getEventListener(this,"onwebglcontextcreationerror")}set onwebglcontextcreationerror(t){this[p].set("onwebglcontextcreationerror",t)}get onwebglcontextlost(){return S.getEventListener(this,"onwebglcontextlost")}set onwebglcontextlost(t){this[p].set("onwebglcontextlost",t)}get onwebglcontextrestored(){return S.getEventListener(this,"onwebglcontextrestored")}set onwebglcontextrestored(t){this[p].set("onwebglcontextrestored",t)}get width(){let t=this.getAttribute("width");return t!==null?Number(t):300}set width(t){this.setAttribute("width",String(t))}get height(){let t=this.getAttribute("height");return t!==null?Number(t):150}set height(t){this.setAttribute("height",String(t))}captureStream(t){let e=new this[m].MediaStream,o=new this[m].CanvasCaptureMediaStreamTrack(h,this);if(o[wo]="video",o[Si].deviceId=cS,o[Si].aspectRatio.max=this.width,o[Si].height.max=this.height,o[Si].width.max=this.width,o[In].deviceId=cS,t!==void 0)o[Si].frameRate.max=t,o[In].frameRate=t;return e.addTrack(o),e}getContext(t,e){return null}toDataURL(t,e){return""}toBlob(t,e,o){t(new ie([]))}transferControlToOffscreen(){return new gc(this.width,this.height)}}class Hp extends B{}class Wp extends B{get value(){return this.getAttribute("value")||""}set value(t){this.setAttribute("value",t)}}class _p extends B{[Oi]=null;get options(){if(!this[Oi])this[Oi]=oe.getElementsByTagName(this,"OPTION");return this[Oi]}}class Yp extends B{get ontoggle(){return S.getEventListener(this,"ontoggle")}set ontoggle(t){this[p].set("ontoggle",t)}get open(){return this.getAttribute("open")!==null}set open(t){if(t)this.setAttribute("open","");else this.removeAttribute("open")}[Re](t,e){if(super[Re](t,e),t[rt]==="open"){if(t[q]!==e?.[q])this.dispatchEvent(new C("toggle"))}}[cr](t){if(super[cr](t),t&&t[rt]==="open")this.dispatchEvent(new C("toggle"))}dispatchEvent(t){let e=super.dispatchEvent(t);if(!t[lr]&&t.type==="click"&&t.eventPhase===ae.bubbling&&t instanceof qe){let o=t[wr];if(o)if(o[ot]==="summary"&&o[W]===this)this.open=!this.open;else{let s=o;for(let n of this[dt])if(n[ot]==="summary"){s=n;break}if(s&&s.contains(o))this.open=!this.open}}return e}}class Kp extends B{[Lh]="";get oncancel(){return S.getEventListener(this,"oncancel")}set oncancel(t){this[p].set("oncancel",t)}get onclose(){return S.getEventListener(this,"onclose")}set onclose(t){this[p].set("onclose",t)}get returnValue(){return this[Lh]}set returnValue(t){this[Lh]=String(t)}set open(t){if(t)this.setAttribute("open","");else this.removeAttribute("open")}get open(){return this.getAttribute("open")!==null}close(t){let e=this.open;if(this.removeAttribute("open"),this.returnValue=t!==void 0?String(t):"",e)this.dispatchEvent(new C("close"))}showModal(){this.setAttribute("open","")}show(){this.setAttribute("open","")}}class Qp extends B{}class jp extends B{get height(){return this.getAttribute("height")||""}set height(t){this.setAttribute("height",t)}get width(){return this.getAttribute("width")||""}set width(t){this.setAttribute("width",t)}get src(){if(!this.hasAttribute("src"))return"";try{return new URL(this.getAttribute("src"),this[x].location.href).href}catch(t){return this.getAttribute("src")}}set src(t){this.setAttribute("src",t)}get type(){return this.getAttribute("type")||""}set type(t){this.setAttribute("type",t)}}class sa extends B{[Bi]=null;[Gt]=null;get elements(){if(!this[Bi])this[Bi]=new de(h,()=>mt.querySelectorAll(this,"input,button,textarea,select")[Q]);return this[Bi]}get form(){if(this[Gt])return this[Gt];let t=this.getAttribute("form");if(!t||!this[tt])return null;return this[x].getElementById(t)}get name(){return this.getAttribute("name")||""}set name(t){this.setAttribute("name",t)}get type(){return"fieldset"}get validationMessage(){return""}get willValidate(){return!1}get disabled(){return this.getAttribute("disabled")!==null}set disabled(t){if(!t)this.removeAttribute("disabled");else this.setAttribute("disabled","")}checkValidity(){return!0}reportValidity(){return!0}setCustomValidity(t){}}class na extends de{constructor(t,e){super(t,()=>e[so]());this[xt]=e}namedItem(t){return this[xt][Mm](t)}}class fs{static createChildFrame(t){let e=new t.constructor(t.page);return e.parentFrame=t,t.childFrames.push(e),e}static destroyFrame(t){let e=t.page.context.browser[Jr];if(t.closed)return Promise.resolve();return t.closed=!0,new Promise((o,s)=>{if(!t.window){o();return}if(t.parentFrame){let n=t.parentFrame.childFrames.indexOf(t);if(n!==-1)t.parentFrame.childFrames.splice(n,1)}if(!t.childFrames.length){if(t[Pt].destroy().then(()=>{if(e&&t.window)e.disconnect(t.window);if(t.window={closed:!0},t[ro]=null,t[bi]=null,t[he])t[he].navigation=[];o()}).catch((n)=>s(n)),t.window)t.window[At]();return}Promise.all(t.childFrames.slice().map((n)=>this.destroyFrame(n))).then(()=>{if(t[Pt].destroy().then(()=>{if(e&&t.window)e.disconnect(t.window);if(t.window={closed:!0},t[ro]=null,t[bi]=null,t[he])t[he].navigation=[];o()}).catch((n)=>s(n)),t.window)t.window[At]()}).catch((n)=>s(n))})}}var eg;(function(t){t.anyOrigin="anyOrigin",t.sameOrigin="sameOrigin",t.strictOrigin="strictOrigin"})(eg||(eg={}));var im=eg;class qp{static validateCrossOriginPolicy(t,e){let o=t.page.context.browser.settings,s=t.page.mainFrame.window.location;if(t[ro])s=t[ro].window.location;else if(t.parentFrame)s=t.parentFrame.window.location;if(o.navigation.crossOriginPolicy===im.sameOrigin&&s.protocol!=="about:"&&e.protocol!=="about:"&&e.protocol!=="javascript:"&&s.origin!==e.origin)return!1;if(o.navigation.crossOriginPolicy===im.strictOrigin&&s.protocol==="https:"&&e.protocol==="http:")return!1;return!0}static validateFrameNavigation(t){let e=t.page.context.browser.settings;if(t.page.context.browser.windowClass&&t.page.context===t.page.context.browser.defaultContext&&t.page.context.pages[0]===t.page&&t.page.mainFrame===t)return!1;if(e.navigation.disableMainFrameNavigation&&t.page.mainFrame===t)return!1;if(e.navigation.disableChildFrameNavigation&&t.page.mainFrame!==t)return!1;if(e.navigation.disableChildPageNavigation&&!!t[ro])return!1;return!0}}class qr{static async navigate(t){let{windowClass:e,frame:o,url:s,formData:n,method:l,goToOptions:a,disableHistory:y}=t,u=o.page.context.browser[Jr],c=a?.referrer||o.window.location.origin,d=Io.getRelativeURL(o,s),g=new URL(d.href.split("#")[0]),f=new URL(o.url.split("#")[0]),E=()=>{let Ue=o[he].navigation;o[he].navigation=[];for(let Xr of Ue)Xr()};if(!o.window)throw Error('The frame has been destroyed, the "window" property is not set.');if(g.href===f.href&&d.hash&&d.hash!==o.window?.location.hash){let Ue=o[Oe];if(!y)Ue.currentItem.popState=!0,Ue.push({title:"",href:d.href,state:null,popState:!0,scrollRestoration:ri.manual,method:l||(n?"POST":"GET"),formData:n||null});return o.window.location[Wr](o,d.href),null}if(d.protocol==="javascript:"){if(o&&o.page.context.browser.settings.enableJavaScriptEvaluation){let Ue=o.window[Ao],Xr=o[Pt],vs=Ue.startTask(),vm=d.href.replace("javascript:","");await new Promise((Ig)=>{o.window.requestAnimationFrame(()=>{let sf=setImmediate(()=>{Xr.endTask(nf),Ig(null)}),nf=Xr.startTask(()=>()=>{clearImmediate(sf),Ig(null)});o.window[Oo](vm,{filename:o.url})})}),Ue.endTask(vs),E()}return null}if(!qp.validateCrossOriginPolicy(o,d))return null;if(!qp.validateFrameNavigation(o)){if(!o.page.context.browser.settings.navigation.disableFallbackToSetURL)o.window.location[Wr](o,d.href);return null}if(!y)o[Oe].push({title:"",href:d.href,state:null,popState:!1,scrollRestoration:ri.auto,method:l||(n?"POST":"GET"),formData:n||null});let R=o.window,H=o[Pt],{innerWidth:yt,innerHeight:bt,devicePixelRatio:Rt}=R,lt=o.parentFrame?o.parentFrame.window:o.page.mainFrame.window,ct=o.page.mainFrame.window;if(o[Pt]=new Xs(o),o.window=new e(o,{url:d.href,width:yt,height:bt}),o.window[no]=lt,o.window[Xo]=ct,o.window.devicePixelRatio=Rt,u)u.observe(o.window);if(c)o.window.document[Pr]=c;let ee=o[Pt].startTask(),Ct=()=>{H.destroy().then(()=>{if(u)u.disconnect(R);o[Pt].endTask(ee)}),R[At]()};if(o.childFrames.length)Promise.all(o.childFrames.map((Ue)=>fs.destroyFrame(Ue))).then(Ct);else Ct();if(d.protocol==="about:"){if(a?.beforeContentCallback)a.beforeContentCallback(o.window);if(o.page.context.browser.settings.navigation.beforeContentCallback)o.page.context.browser.settings.navigation.beforeContentCallback(o.window);return await new Promise((Ue)=>o.page.mainFrame.window.requestAnimationFrame(Ue)),E(),null}let or=o.window[Ao],Ye=o[Pt],Ur=new o.window.AbortController,$r=setTimeout(()=>{Ye.endTimer($r),Ur.abort(new o.window.DOMException("The operation was aborted. Request timed out.",w.timeoutError))},a?.timeout??30000);Ye.startTimer($r);let xs=or.startTask(),pi=()=>{clearTimeout($r),Ye.endTimer($r),or.endTask(xs),E()},fa=new o.window.Headers(a?.headers),Vo,Pa;if(a?.hard)fa.set("Cache-Control","no-cache");let xm=new Dr({browserFrame:o,window:o.window,url:d.href,disableSameOriginPolicy:!0,init:{referrer:c,referrerPolicy:a?.referrerPolicy||"origin",signal:Ur.signal,method:l||(n?"POST":"GET"),headers:fa,body:n}});try{if(Vo=await xm.send(),o.parentFrame){let Ue=o.parentFrame.window.location,Xr=Vo.headers?.get("X-Frame-Options")?.toLowerCase(),vs=Ue.origin===d.origin||d.origin==="null";if(Xr==="deny"||Xr==="sameorigin"&&!vs)throw Error(`Refused to display '${s}' in a frame because it set 'X-Frame-Options' to '${Xr}'.`)}Pa=await Vo.text()}catch(Ue){throw pi(),Ue}if(!o.window)return null;if(Vo.url)o.window[io][Wr](o,Vo.url);if(!Vo.ok)o.page.console.error(`GET ${d.href} ${Vo.status} (${Vo.statusText})`);if(a?.beforeContentCallback)a.beforeContentCallback(o.window);if(o.page.context.browser.settings.navigation.beforeContentCallback)o.page.context.browser.settings.navigation.beforeContentCallback(o.window);return await new Promise((Ue)=>{o.window.requestAnimationFrame(()=>{let Xr,vs=Ye.startTask(()=>()=>{clearImmediate(Xr),Ue(null)});Xr=setImmediate(()=>{Ye.endTask(vs),Ue(null)}),o.content=Pa})}),pi(),Vo}static navigateBack(t){let{windowClass:e,frame:o,goToOptions:s}=t,n=o[Oe],l=n.items[n.items.indexOf(n.currentItem)-1];if(!l)return new Promise((u)=>{o.window.requestAnimationFrame(()=>{let c=o[he].navigation;o[he].navigation=[];for(let d of c)d();u(null)})});let a=new URL(n.currentItem.href).origin,y=new URL(l.href).origin;if(n.currentItem=l,!l.popState||a!==y)return qr.navigate({windowClass:e,frame:o,goToOptions:{...s,referrer:o.url},url:l.href,method:l.method,formData:l.formData,disableHistory:!0});return o.window.location[Wr](o,l.href),o.window.dispatchEvent(new o.window.PopStateEvent("popstate",{state:l.state,hasUAVisualTransition:!1})),Promise.resolve(null)}static navigateForward(t){let{windowClass:e,frame:o,goToOptions:s}=t,n=o[Oe],l=n.items[n.items.indexOf(n.currentItem)+1];if(!l)return new Promise((u)=>{o.window.requestAnimationFrame(()=>{let c=o[he].navigation;o[he].navigation=[];for(let d of c)d();u(null)})});let a=new URL(n.currentItem.href).origin,y=new URL(l.href).origin;if(n.currentItem=l,!l.popState||a!==y)return qr.navigate({windowClass:e,frame:o,goToOptions:{...s,referrer:o.url},url:l.href,method:l.method,formData:l.formData,disableHistory:!0});return o.window.location[Wr](o,l.href),o.window.dispatchEvent(new o.window.PopStateEvent("popstate",{state:l.state,hasUAVisualTransition:!1})),Promise.resolve(null)}static navigateSteps(t){if(!t.steps)return this.reload(t);let{windowClass:e,frame:o,goToOptions:s,steps:n}=t,l=o[Oe],a=l.items.indexOf(l.currentItem),y=a+n,u=l.items[y];if(!u)return new Promise((g)=>{o.window.requestAnimationFrame(()=>{let f=o[he].navigation;o[he].navigation=[];for(let E of f)E();g(null)})});let c=new URL(l.currentItem.href).origin,d=!0;if(n<0){for(let g=a;g>y;g--)if(!l.items[g].popState||c!==new URL(l.items[g].href).origin){d=!1;break}}else for(let g=a;g<y;g++)if(!l.items[g].popState||c!==new URL(l.items[g].href).origin){d=!1;break}if(l.currentItem=u,!d)return qr.navigate({windowClass:e,frame:o,goToOptions:{...s,referrer:o.url},url:u.href,method:u.method,formData:u.formData,disableHistory:!0});return o.window.location[Wr](o,u.href),o.window.dispatchEvent(new o.window.PopStateEvent("popstate",{state:u.state,hasUAVisualTransition:!1})),Promise.resolve(null)}static reload(t){let{windowClass:e,frame:o,goToOptions:s}=t,n=o[Oe];return qr.navigate({windowClass:e,frame:o,goToOptions:{...s,referrer:o.url},url:n.currentItem.href,method:n.currentItem.method,formData:n.currentItem.formData,disableHistory:!0})}}class sm extends Wo{get value(){for(let t of this[Q])if(t.checked)return t.value;return null}}class nm extends B{[Bi]=null;[Vt];constructor(){super();let t=new fe(this,[nm,B,Or,st,vt]),e=new Proxy(this,{get:(o,s)=>{if(s==="length")return o[so]().length;if(s in o||typeof s==="symbol")return t.bind(s),o[s];let n=Number(s);if(!isNaN(n))return o[so]()[n];return o[Mm](s)||void 0},set(o,s,n){if(t.bind(s),typeof s==="symbol")return o[s]=n,!0;let l=Number(s);if(isNaN(l))o[s]=n;return!0},deleteProperty(o,s){if(typeof s==="symbol")return delete o[s],!0;let n=Number(s);if(isNaN(n))delete o[s];return!0},ownKeys(o){return Object.keys(o[so]())},has(o,s){if(s in o)return!0;if(typeof s==="symbol")return!1;let n=o[so](),l=Number(s);if(!isNaN(l)&&l>=0&&l<n.length)return!0;s=String(s);for(let a=0;a<n.length;a++){let y=n[a],u=y.getAttribute("id")||y.getAttribute("name");if(u&&u===s)return!0}return!1},defineProperty(o,s,n){if(t.preventBinding(s),!n.value)return Object.defineProperty(o,s,n),!0;let l=Number(n.value);if(isNaN(l))return Object.defineProperty(o,s,n),!0;return!1},getOwnPropertyDescriptor(o,s){if(s in o)return Object.getOwnPropertyDescriptor(o,s);let n=o[so](),l=Number(s);if(!isNaN(l)&&l>=0&&l<n.length)return{value:n[l],writable:!1,enumerable:!0,configurable:!0};for(let a=0;a<n.length;a++){let y=n[a],u=y.getAttribute("id")||y.getAttribute("name");if(u&&u===s)return{value:y,writable:!1,enumerable:!0,configurable:!0}}}});return this[Vt]=e,this[Gt]=e,e}get onformdata(){return S.getEventListener(this,"onformdata")}set onformdata(t){this[p].set("onformdata",t)}get onreset(){return S.getEventListener(this,"onreset")}set onreset(t){this[p].set("onreset",t)}get onsubmit(){return S.getEventListener(this,"onsubmit")}set onsubmit(t){this[p].set("onsubmit",t)}get elements(){if(!this[Bi])this[Bi]=new na(h,this);return this[Bi]}get length(){return this[so]().length}get name(){return this.getAttribute("name")||""}set name(t){this.setAttribute("name",t)}get method(){return this.getAttribute("method")||"get"}set method(t){this.setAttribute("method",t)}get target(){return this.getAttribute("target")||""}set target(t){this.setAttribute("target",t)}get action(){if(!this.hasAttribute("action"))return this[x].location.href;try{return new URL(this.getAttribute("action"),this[x].location.href).href}catch(t){return""}}set action(t){this.setAttribute("action",t)}get encoding(){return this.getAttribute("encoding")||""}set encoding(t){this.setAttribute("encoding",t)}get enctype(){return this.getAttribute("enctype")||""}set enctype(t){this.setAttribute("enctype",t)}get autocomplete(){return this.getAttribute("autocomplete")||""}set autocomplete(t){this.setAttribute("autocomplete",t)}get acceptCharset(){return this.getAttribute("acceptcharset")||""}set acceptCharset(t){this.setAttribute("acceptcharset",t)}get noValidate(){return this.getAttribute("novalidate")!==null}set noValidate(t){if(!t)this.removeAttribute("novalidate");else this.setAttribute("novalidate","")}submit(){this.#t()}requestSubmit(t){if(t?.formNoValidate||this.noValidate||this.checkValidity()){let o=new ta("submit",{bubbles:!0,cancelable:!0,submitter:t||this[Vt]});if(this.dispatchEvent(o),!o.defaultPrevented)this.#t(t)}}reset(){for(let t of this[so]())switch(t[z]){case"TEXTAREA":t[q]=null;break;case"INPUT":t[q]=null,t[wn]=null;break;case"OUTPUT":t.textContent=t[lo];break;case"SELECT":let e=!1;for(let o of t.options)if(o.hasAttribute("selected")){e=!0,o.selected=!0;break}if(!e&&t.options.length>0)t.options[0].selected=!0;break}this.dispatchEvent(new C("reset",{bubbles:!0,cancelable:!0}))}checkValidity(){let t={},e=!0;for(let o of this[so]())if(o[z]==="INPUT"&&o.type==="radio"&&o.name){if(!t[o.name]){if(t[o.name]=!0,!o.checkValidity())e=!1}}else if(!o.checkValidity())e=!1;return e}reportValidity(){return this.checkValidity()}[ht](t=!1){return super[ht](t)}[so](){let t=mt.querySelectorAll(this,"input,select,textarea,button,fieldset,object,output")[Q].slice();if(this[tt]){let e=this.getAttribute("id");if(e){for(let o of mt.querySelectorAll(this[x],`input[form="${e}"],select[form="${e}"],textarea[form="${e}"],button[form="${e}"],fieldset[form="${e}"],object[form="${e}"],output[form="${e}"]`)[Q])if(!t.includes(o))t.push(o)}}return t}[Mm](t){let e=this[so](),o=[];t=String(t);for(let s of e)if(s.getAttribute("id")===t||s.getAttribute("name")===t)o.push(s);if(!o.length)return null;if(o.length===1)return o[0];return new sm(h,o)}#t(t){let e=t?.formMethod||this.method;if(e==="dialog"){let a=null,y=this;while(y){if(y[z]==="DIALOG"){a=y;break}y=y.parentElement}if(a){a.close(t?.value);return}}let o=t?.hasAttribute("formaction")?t?.formAction||this.action:this.action,s=new it(this[m]).getBrowserFrame();if(!s)return;if(!o){this[x].location.hash="#blocked";return}let n=new this[m].FormData(this,t),l;switch(t?.formTarget||this.target){default:case"_self":l=s;break;case"_top":l=s.page.mainFrame;break;case"_parent":l=s.parentFrame??s;break;case"_blank":l=s.page.context.newPage().mainFrame,l[ro]=s;break}if(e==="get"){let a=new URL(o);a.search="";for(let[y,u]of n)if(typeof u==="string")a.searchParams.append(y,u);qr.navigate({windowClass:this[x][Lr]?.constructor,frame:l,url:a.href,goToOptions:{referrer:s.page.mainFrame.window.location.origin}});return}qr.navigate({windowClass:this[x][Lr]?.constructor,frame:l,method:e,url:o,formData:n,goToOptions:{referrer:s.page.mainFrame.window.location.origin}})}}class $p extends B{}class Xp extends B{}class zp extends B{}class Jp extends B{}class ll extends vt{window=this;location;[Dn]=this;#t;constructor(t,e){super();this[no]=e??this,this[Xo]=e??this,this.location=new Proxy({},{get:()=>{throw new re(`Blocked a frame with origin "${this.parent.location.origin}" from accessing a cross-origin frame.`,w.securityError)},set:()=>{throw new re(`Blocked a frame with origin "${this.parent.location.origin}" from accessing a cross-origin frame.`,w.securityError)}}),this.#t=t}get self(){return this[Dn]}set self(t){this[Dn]=t}get top(){return this[Xo]}get parent(){return this[no]}set parent(t){this[no]=t}get opener(){return this.#t.opener}get closed(){return this.#t.closed}blur(){this.#t.blur()}focus(){this.#t.focus()}close(){this.#t.close()}postMessage(t,e="*",o){this.#t.postMessage(t,e,o)}}var oA=["allow-downloads","allow-forms","allow-modals","allow-orientation-lock","allow-pointer-lock","allow-popups","allow-popups-to-escape-sandbox","allow-presentation","allow-same-origin","allow-scripts","allow-top-navigation","allow-top-navigation-by-user-activation","allow-top-navigation-to-custom-protocols"];class Zp extends B{[km]=null;#t={window:null};#e=null;#r=null;get onload(){return S.getEventListener(this,"onload")}set onload(t){this[p].set("onload",t)}get onerror(){return S.getEventListener(this,"onerror")}set onerror(t){this[p].set("onerror",t)}get src(){if(!this.hasAttribute("src"))return"";try{return new URL(this.getAttribute("src"),this[x].location.href).href}catch(t){return this.getAttribute("src")}}set src(t){this.setAttribute("src",t)}get allow(){return this.getAttribute("allow")||""}set allow(t){this.setAttribute("allow",t)}get height(){return this.getAttribute("height")||""}set height(t){this.setAttribute("height",t)}get width(){return this.getAttribute("width")||""}set width(t){this.setAttribute("width",t)}get name(){return this.getAttribute("name")||""}set name(t){this.setAttribute("name",t)}get sandbox(){if(!this[km])this[km]=new Br(h,this,"sandbox");return this[km]}set sandbox(t){this.setAttribute("sandbox",t)}get srcdoc(){return this.getAttribute("srcdoc")||""}set srcdoc(t){this.setAttribute("srcdoc",t)}get referrerPolicy(){return this.getAttribute("referrerpolicy")||""}set referrerPolicy(t){this.setAttribute("referrerpolicy",t)}get contentDocument(){return this.#t.window?.document??null}get contentWindow(){return this.#t.window}get tabIndex(){let t=this.getAttribute("tabindex");if(t!==null){let e=Number(t);return isNaN(e)?0:e}return 0}set tabIndex(t){super.tabIndex=t}[sr](){super[sr](),this.#i()}[nr](){super[nr](),this.#s()}[ht](t=!1){return super[ht](t)}[Re](t,e){if(super[Re](t,e),t[rt]==="srcdoc")this.#i();if(t[rt]==="src"&&t[q]&&!this.hasAttribute("srcdoc")&&t[q]!==e?.[q])this.#i();if(t[rt]==="sandbox")this.#o()}[cr](t){if(super[cr](t),t[rt]==="srcdoc"||t[rt]==="src")this.#i()}#o(){let t=this[m],e=[];for(let o of this.sandbox)if(!oA.includes(o))e.push(o);if(e.length===1)t.console.error(`Error while parsing the 'sandbox' attribute: '${e[0]}' is an invalid sandbox flag.`);else if(e.length>1)t.console.error(`Error while parsing the 'sandbox' attribute: '${e.join("', '")}' are invalid sandbox flags.`)}#i(){if(!this[tt]){this.#s();return}let t=this.getAttribute("srcdoc"),e=this[m],o=new it(e).getBrowserFrame();if(!o)return;if(t!==null){if(this.#r===t)return;this.#s(),this.#e=fs.createChildFrame(o),this.#e.url="about:srcdoc",this.#t.window=this.#e.window,this.#e.window[Xo]=o.window.top,this.#e.window[no]=o.window,this.#e.window.document.open(),this.#e.window.document.write(t),this.#r=t,this[m].requestAnimationFrame(()=>this.dispatchEvent(new C("load")));return}if(this.#r!==null)this.#s();let s=o.window.location,n=Io.getRelativeURL(o,this.src);if(this.#e&&this.#e.window.location.href===n.href)return;if(o.page.context.browser.settings.disableIframePageLoading){let y=new e.DOMException(`Failed to load iframe page "${n.href}". Iframe page loading is disabled.`,w.notSupportedError);o.page.console.error(y),this.dispatchEvent(new C("error"));return}let l=s.origin===n.origin||n.origin==="null",a=l?e:new ll(e);this.#e=this.#e??fs.createChildFrame(o),this.#e.window[Xo]=a,this.#e.window[no]=a,this.#e.goto(n.href,{referrer:s.origin,referrerPolicy:this.referrerPolicy}).then(()=>this.dispatchEvent(new C("load"))).catch((y)=>{o.page.console.error(y),this.dispatchEvent(new C("error"))}),this.#t.window=l?this.#e.window:new ll(this.#e.window,e)}#s(){if(this.#e)fs.destroyFrame(this.#e),this.#e=null;this.#t.window=null,this.#r=null}}class la extends B{[z]="IMG";[ab]=!1;[mb]=0;[yb]=0;[Bg]="auto";[L]=0;[k]=0;get complete(){return this[ab]}get naturalHeight(){return this[mb]}get naturalWidth(){return this[yb]}get loading(){let t=this.getAttribute("loading");return t==="eager"||t==="lazy"?t:"auto"}set loading(t){this.setAttribute("loading",t)}get x(){return this[L]}get y(){return this[k]}get decoding(){return this.getAttribute("decoding")||"auto"}set decoding(t){this.setAttribute("decoding",t)}get crossOrigin(){return this.getAttribute("crossOrigin")}set crossOrigin(t){if(t==="anonymous"||t==="use-credentials")this.setAttribute("crossOrigin",t)}get alt(){return this.getAttribute("alt")||""}set alt(t){this.setAttribute("alt",t)}get currentSrc(){return this.src}get width(){let t=this.getAttribute("width");return t!==null?Number(t):0}set width(t){this.setAttribute("width",String(t))}get height(){let t=this.getAttribute("height");return t!==null?Number(t):0}set height(t){this.setAttribute("height",String(t))}get isMap(){return this.getAttribute("ismap")!==null}set isMap(t){if(!t)this.removeAttribute("ismap");else this.setAttribute("ismap","")}get referrerPolicy(){return this.getAttribute("referrerpolicy")||""}set referrerPolicy(t){this.setAttribute("referrerpolicy",t)}get sizes(){return this.getAttribute("sizes")||""}set sizes(t){this.setAttribute("sizes",t)}get src(){if(!this.hasAttribute("src"))return"";try{return new URL(this.getAttribute("src"),this[x].location.href).href}catch(t){return this.getAttribute("src")}}set src(t){this.setAttribute("src",t)}get srcset(){return this.getAttribute("srcset")||""}set srcset(t){this.setAttribute("srcset",t)}get useMap(){return this.getAttribute("usemap")||""}set useMap(t){this.setAttribute("usemap",t)}decode(){return Promise.resolve()}[ht](t=!1){return super[ht](t)}}class al extends Array{constructor(){super(0)}get[Symbol.toStringTag](){return this.constructor.name}item(t){return this[t]||null}}var rg=/[\n\r]/gm,Sc=(t)=>t.map((e)=>parseInt(e,10));class fc{static sanitize(t,e){switch(t.type){case"password":case"search":case"tel":case"text":return e.replace(rg,"");case"color":return/^#[a-fA-F\d]{6}$/.test(e)?e.toLowerCase():"#000000";case"email":if(t.multiple)return e.split(",").map((o)=>o.trim()).join(",");return e.trim().replace(rg,"");case"number":return!isNaN(Number.parseFloat(e))?e:"";case"range":{let o=Number.parseFloat(e),s=parseFloat(t.min)||0,n=parseFloat(t.max)||100;if(isNaN(o))return n<s?String(s):String((s+n)/2);else if(o<s)return String(s);else if(o>n)return String(n);return e}case"url":return e.trim().replace(rg,"");case"date":return this.sanitizeDate(e);case"datetime-local":{let o=e.match(/^(\d\d\d\d)-(\d\d)-(\d\d)[T ](\d\d):(\d\d)(?::(\d\d)(?:\.(\d{1,3}))?)?$/);if(!o)return"";let s=this.sanitizeDate(e.slice(0,10)),n=this.sanitizeTime(e.slice(11));if(!(s&&n))return"";if(o[6]!==void 0){if(n.indexOf(".")!==-1)n=n.replace(/(?:\.0*|(\.\d+?)0+)$/,"$1");n=n.replace(/(\d\d:\d\d)(:00)$/,"$1")}return s+"T"+n}case"month":if(!(e.match(/^(\d\d\d\d)-(\d\d)$/)&&this.parseMonthComponent(e)))return"";return this.checkBoundaries(e,t.min,t.max)?e:"";case"time":return e=this.sanitizeTime(e),e&&this.checkBoundaries(e,t.min,t.max)?e:"";case"week":{let o=e.match(/^(\d\d\d\d)-W(\d\d)$/);if(!o)return"";let[s,n]=Sc(o.slice(1,3));if(s<=0||n<1||n>53)return"";let l=this.lastIsoWeekOfYear(s);if(n<1||n>52+l)return"";if(!this.checkBoundaries(e,t.min,t.max))return"";return e}}return e}static checkBoundaries(t,e,o){if(e&&e>t)return!1;else if(o&&o<t)return!1;return!0}static parseMonthComponent(t){let[e,o]=t.split("-"),[s,n]=Sc([e,o]);if(isNaN(s)||isNaN(n)||s<=0||n<1||n>12)return"";return t}static lastIsoWeekOfYear=(t)=>{let e=new Date(+t,11,31),o=(e.getDay()+6)%7;e.setDate(e.getDate()-o+3);let s=e.getTime();if(e.setMonth(0,1),e.getDay()!==4)e.setMonth(0,1+(4-e.getDay()+7)%7);return 1+Math.ceil((s-e.getTime())/604800000)};static sanitizeDate(t){let e=t.match(/^(\d{4})-(\d{2})-(\d{2})$/);if(!e)return"";if(!this.parseMonthComponent(t.slice(0,7)))return"";let[s,n,l]=Sc(e.slice(1,4));if(l<1||l>31)return"";let a=new Date(s,n,0).getDate();if(l>a)return"";return t}static sanitizeTime(t){let e=t.match(/^(\d{2}):(\d{2})(?::(\d{2}(?:\.(\d{1,3}))?))?$/);if(!e)return"";let[o,s]=Sc(e.slice(1,3)),n=parseFloat(e[3]||"0")*1000;if(o>23||s>59||n>59999)return"";if(n===0)return`${e[1]}:${e[2]}`;else return`${e[1]}:${e[2]}${n>=1e4?`:${n/1000}`:`:0${n/1000}`}`}}var og;(function(t){t.preserve="preserve",t.select="select",t.start="start",t.end="end"})(og||(og={}));var Ps=og;var ig;(function(t){t.none="none",t.forward="forward",t.backward="backward"})(ig||(ig={}));var go=ig;class tu{static step(t,e,o){switch(t.type){case"number":return this.getNumberValue(t,e,o);case"date":case"month":case"week":case"time":case"datetime-local":case"range":return null;default:throw new re("This form element is not steppable.")}}static getNumberValue(t,e,o){let{step:s,min:n,max:l}=t,a=n!==""?Number(n):null,y=l!==""?Number(l):null,u=Number(t.value),c=s!==""?Number(s):1;if(u=isNaN(u)?0:u,c=isNaN(c)||c===0?1:c,a!==null&&!isNaN(a)&&y!==null&&!isNaN(y)&&(a>y||y<a))return t.value;if(o===0)return t.value;let d=o!==void 0?Math.ceil(o/c)*c:c,g=u+d*e,f=a!==null&&!isNaN(a)?a:0;switch(e){case-1:if(a!==null&&!isNaN(a)&&g<a)return String(a);return String(g+(u-f)%c);case 1:if(y!==null&&!isNaN(y)&&g>y)return String(f+Math.floor((y-f)/c)*c);return String(g-(u-f)%c)}}}class lm{static dateIsoWeek(t){t=typeof t==="number"?new Date(t):t,t=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate())),t.setUTCDate(t.getUTCDate()+4-(t.getUTCDay()||7));let e=new Date(Date.UTC(t.getUTCFullYear(),0,1)),o=Math.ceil(((t-e)/86400000+1)/7);return`${t.getUTCFullYear()}-W${o<10?"0":""}${o}`}static isoWeekDate(t){let[,e,o]=t.match(/^(\d{4})-W(\d{2})$/)||[];if(!e||!o||Number(o)>53||Number(o)<1)return new Date("x");let s=new Date(`${e}-01-01T00:00Z`),l=(new Date(`${e}-01-04T00:00Z`).getUTCDay()+6)%7,a=1+(Number(o)-1)*7-l+3;if(s.setUTCDate(a),s.getUTCFullYear()>Number(e))return new Date("x");return s}}import{URL as iA}from"url";var sA=new Set(["hidden","text","search","tel","url","email","password","date","month","week","time","datetime-local","number","range","color","checkbox","radio","file","submit","image","reset","button"]);class eu extends B{[q]=null;[F]=0;[V]=0;[wn]=null;[Ce]="";[Ke]=new Qr(this);[jo]=new al;[vn]=!1;[Gt]=null;[On]=null;#t=null;#e=null;#r=go.none;get oninput(){return S.getEventListener(this,"oninput")}set oninput(t){this[p].set("oninput",t)}get oninvalid(){return S.getEventListener(this,"oninvalid")}set oninvalid(t){this[p].set("oninvalid",t)}get onselectionchange(){return S.getEventListener(this,"onselectionchange")}set onselectionchange(t){this[p].set("onselectionchange",t)}get defaultChecked(){return this.hasAttribute("checked")}set defaultChecked(t){if(t)this.setAttribute("checked","");else this.removeAttribute("checked")}get files(){return this[jo]}set files(t){this[jo]=t}get formAction(){if(!this.hasAttribute("formaction"))return this[x].location.href;try{return new iA(this.getAttribute("formaction"),this[x].location.href).href}catch(t){return""}}set formAction(t){this.setAttribute("formaction",t)}get formEnctype(){return this.getAttribute("formenctype")||""}set formEnctype(t){this.setAttribute("formenctype",t)}get formMethod(){return this.getAttribute("formmethod")||""}set formMethod(t){this.setAttribute("formmethod",t)}get formNoValidate(){return this.getAttribute("formnovalidate")!==null}set formNoValidate(t){if(!t)this.removeAttribute("formnovalidate");else this.setAttribute("formnovalidate","")}get formTarget(){return this.getAttribute("formtarget")||""}set formTarget(t){this.setAttribute("formtarget",t)}get form(){if(this[Gt])return this[Gt];let t=this.getAttribute("form");if(!t||!this[tt])return null;return this[x].getElementById(t)}get validationMessage(){return this[Ce]}get validity(){return this[Ke]}get height(){return this[F]}set height(t){this[F]=t,this.setAttribute("height",String(t))}get width(){return this[V]}set width(t){this[V]=t,this.setAttribute("width",String(t))}get size(){let t=this.getAttribute("size");if(t!==null)return parseInt(t);return 20}set size(t){this.setAttribute("size",String(t))}get minLength(){let t=this.getAttribute("minlength");if(t!==null)return parseInt(t);return-1}set minLength(t){this.setAttribute("minlength",String(t))}get maxLength(){let t=this.getAttribute("maxlength");if(t!==null)return parseInt(t);return-1}set maxLength(t){this.setAttribute("maxlength",String(t))}get type(){let t=(this.getAttribute("type")??"").toLowerCase();return sA.has(t)?t:"text"}set type(t){this.setAttribute("type",t.toLowerCase())}get name(){return this.getAttribute("name")||""}set name(t){this.setAttribute("name",t)}get alt(){return this.getAttribute("alt")||""}set alt(t){this.setAttribute("alt",t)}get min(){return this.getAttribute("min")||""}set min(t){this.setAttribute("min",t)}get max(){return this.getAttribute("max")||""}set max(t){this.setAttribute("max",t)}get pattern(){return this.getAttribute("pattern")||""}set pattern(t){this.setAttribute("pattern",t)}get placeholder(){return this.getAttribute("placeholder")||""}set placeholder(t){this.setAttribute("placeholder",t)}get step(){return this.getAttribute("step")||""}set step(t){this.setAttribute("step",t)}get inputMode(){return this.getAttribute("inputmode")||""}set inputMode(t){this.setAttribute("inputmode",t)}get accept(){return this.getAttribute("accept")||""}set accept(t){this.setAttribute("accept",t)}get allowdirs(){return this.getAttribute("allowdirs")||""}set allowdirs(t){this.setAttribute("allowdirs",t)}get autocomplete(){return this.getAttribute("autocomplete")||""}set autocomplete(t){this.setAttribute("autocomplete",t)}get src(){return this.getAttribute("src")||""}set src(t){this.setAttribute("src",t)}get defaultValue(){return this.getAttribute("value")||""}set defaultValue(t){this.setAttribute("value",t)}get readOnly(){return this.getAttribute("readonly")!==null}set readOnly(t){if(!t)this.removeAttribute("readonly");else this.setAttribute("readonly","")}get disabled(){return this.getAttribute("disabled")!==null}set disabled(t){if(!t)this.removeAttribute("disabled");else this.setAttribute("disabled","")}get autofocus(){return this.getAttribute("autofocus")!==null}set autofocus(t){if(!t)this.removeAttribute("autofocus");else this.setAttribute("autofocus","")}get required(){return this.getAttribute("required")!==null}set required(t){if(!t)this.removeAttribute("required");else this.setAttribute("required","")}get indeterminate(){return this[vn]}set indeterminate(t){this[vn]=Boolean(t)}get multiple(){return this.getAttribute("multiple")!==null}set multiple(t){if(!t)this.removeAttribute("multiple");else this.setAttribute("multiple","")}get checked(){if(this[wn]!==null)return this[wn];return this.getAttribute("checked")!==null}set checked(t){this.#i(t)}get value(){switch(this.type){case"hidden":case"submit":case"image":case"reset":case"button":return this.getAttribute("value")||"";case"checkbox":case"radio":let t=this.getAttribute("value");return t!==null?t:"on";case"file":return this[jo].length>0?"/fake/path/"+this[jo][0].name:""}if(this[q]===null)return this.getAttribute("value")||"";return this[q]}set value(t){switch(t=t===null?"":String(t),this.type){case"hidden":case"submit":case"image":case"reset":case"button":case"checkbox":case"radio":this.setAttribute("value",t);break;case"file":if(t!==null&&t!=="")throw new this[m].DOMException('Input elements of type "file" may only programmatically set the value to empty string.',w.invalidStateError);this[jo]=new al;break;default:let e=this.value;if(this[q]=fc.sanitize(this,t),e!==this[q])this.#t=this[q].length,this.#e=this[q].length,this.#r=go.none;break}}get selectionStart(){if(!this.#o())return null;if(this.#t===null)return this.value.length;return this.#t}set selectionStart(t){if(!this.#o())throw new this[m].DOMException(`The input element's type (${this.type}) does not support selection.`,w.invalidStateError);this.setSelectionRange(t,Math.max(t,this.selectionEnd),this.#r)}get selectionEnd(){if(!this.#o())return null;if(this.#e===null)return this.value.length;return this.#e}set selectionEnd(t){if(!this.#o())throw new this[m].DOMException(`The input element's type (${this.type}) does not support selection.`,w.invalidStateError);this.setSelectionRange(this.selectionStart,t,this.#r)}get selectionDirection(){if(!this.#o())return null;return this.#r}set selectionDirection(t){if(!this.#o())throw new this[m].DOMException(`The input element's type (${this.type}) does not support selection.`,w.invalidStateError);this.setSelectionRange(this.#t,this.#e,t)}get willValidate(){return this.type!=="hidden"&&this.type!=="reset"&&this.type!=="button"&&!this.disabled&&!this.readOnly}get valueAsDate(){switch(this.type){case"date":case"month":return isNaN(new Date(String(this.value)).getTime())?null:new Date(this.value);case"week":{let t=lm.isoWeekDate(this.value);return isNaN(t.getTime())?null:t}case"time":{let t=new Date(`1970-01-01T${this.value}Z`);return isNaN(t.getTime())?null:t}default:return null}}set valueAsDate(t){if(!["date","month","time","week"].includes(this.type))throw new this[m].DOMException("Failed to set the 'valueAsDate' property on 'HTMLInputElement': This input element does not support Date values.",w.invalidStateError);if(typeof t!=="object")throw new this[m].TypeError("Failed to set the 'valueAsDate' property on 'HTMLInputElement': Failed to convert value to 'object'.");else if(t&&!(t instanceof Date))throw new this[m].TypeError("Failed to set the 'valueAsDate' property on 'HTMLInputElement': The provided value is not a Date.");else if(t===null||isNaN(t.getTime())){this.value="";return}switch(this.type){case"date":this.value=t.toISOString().split("T")[0];break;case"month":this.value=t.toISOString().split("T")[0].slice(0,-3);break;case"time":this.value=t.toISOString().split("T")[1].slice(0,5);break;case"week":this.value=lm.dateIsoWeek(t);break}}get valueAsNumber(){let t=this.value;if(!this.type.match(/^(range|number|date|datetime-local|month|time|week)$/)||!t)return NaN;switch(this.type){case"number":return parseFloat(t);case"range":{let e=parseFloat(t),o=parseFloat(this.min)||0,s=parseFloat(this.max)||100;if(isNaN(e))return s<o?o:(o+s)/2;else if(e<o)return o;else if(e>s)return s;return e}case"date":return new Date(t).getTime();case"datetime-local":return new Date(t).getTime()-new Date(t).getTimezoneOffset()*60000;case"month":return(new Date(t).getUTCFullYear()-1970)*12+new Date(t).getUTCMonth();case"time":return new Date("1970-01-01T"+t).getTime()-new Date("1970-01-01T00:00:00").getTime();case"week":{let e=t.match(/^(\d{4})-W(\d{2})$/);if(!e)return NaN;let o=new Date(Date.UTC(parseInt(e[1],10),0)),s=o.getUTCDay(),n=((s===0?-6:1)-s)*86400000+parseInt(e[2],10)*604800000;return o.getTime()+n}default:return NaN}}set valueAsNumber(t){switch(this.type){case"number":case"range":this.value=Number(t).toString();break;case"date":case"datetime-local":{let e=new Date(Number(t));if(isNaN(e.getTime())){this.value="";break}if(this.type=="date")this.value=e.toISOString().slice(0,10);else this.value=e.toISOString().slice(0,-1);break}case"month":if(!Number.isInteger(t)||t<0)this.value="";else this.value=new Date(Date.UTC(1970,Number(t))).toISOString().slice(0,7);break;case"time":if(!Number.isInteger(t)||t<0)this.value="";else this.value=new Date(Number(t)).toISOString().slice(11,-1);break;case"week":{let e=new Date(Number(t));this.value=isNaN(e.getTime())?"":lm.dateIsoWeek(e);break}default:throw new this[m].DOMException("Failed to set the 'valueAsNumber' property on 'HTMLInputElement': This input element does not support Number values.",w.invalidStateError)}}get labels(){return jr.getAssociatedLabelElements(this)}get list(){let t=this.getAttribute("list");if(!t)return null;return(this[ve]||this[x]).querySelector(`datalist#${t}`)}get popoverTargetElement(){return this[On]}set popoverTargetElement(t){if(t!==null&&!(t instanceof B))throw new this[m].TypeError("Failed to set the 'popoverTargetElement' property on 'HTMLInputElement': Failed to convert value to 'Element'.");this[On]=t}get popoverTargetAction(){let t=this.getAttribute("popovertargetaction");if(t===null||t!=="hide"&&t!=="show"&&t!=="toggle")return"toggle";return t}set popoverTargetAction(t){this.setAttribute("popovertargetaction",t)}get tabIndex(){let t=this.getAttribute("tabindex");if(t!==null){let e=Number(t);return isNaN(e)?0:e}return 0}set tabIndex(t){super.tabIndex=t}setCustomValidity(t){this[Ce]=String(t)}select(){if(!this.#o())return;this.#t=0,this.#e=this.value.length,this.#r=go.none,this.dispatchEvent(new C("select",{bubbles:!0,cancelable:!1}))}setSelectionRange(t,e,o="none"){if(!this.#o())throw new this[m].DOMException(`The input element's type (${this.type}) does not support selection.`,w.invalidStateError);this.#e=Math.min(e,this.value.length),this.#t=Math.min(t,this.#e),this.#r=o===go.forward||o===go.backward?o:go.none,this.dispatchEvent(new C("select",{bubbles:!0,cancelable:!1}))}setRangeText(t,e=null,o=null,s=Ps.preserve){if(!this.#o())throw new this[m].DOMException(`The input element's type (${this.type}) does not support selection.`,w.invalidStateError);if(e===null)e=this.#t;if(o===null)o=this.#e;if(e>o)throw new this[m].DOMException("The index is not in the allowed range.",w.invalidStateError);e=Math.min(e,this.value.length),o=Math.min(o,this.value.length);let n=this.value,l=this.#t,a=this.#e;this.value=n.slice(0,e)+t+n.slice(o);let y=e+this.value.length;switch(s){case Ps.select:this.setSelectionRange(e,y);break;case Ps.start:this.setSelectionRange(e,e);break;case Ps.end:this.setSelectionRange(y,y);break;default:let u=t.length-(o-e);if(l>o)l+=u;else if(l>e)l=e;if(a>o)a+=u;else if(a>e)a=y;this.setSelectionRange(l,a);break}}checkValidity(){let t=this.disabled||this.readOnly||this.type==="hidden"||this.type==="reset"||this.type==="button"||this[Ke].valid;if(!t)this.dispatchEvent(new C("invalid",{bubbles:!0,cancelable:!0}));return t}reportValidity(){return this.checkValidity()}stepUp(t){let e=tu.step(this,1,t);if(e!==null)this.value=e}stepDown(t){let e=tu.step(this,-1,t);if(e!==null)this.value=e}[ht](t=!1){let e=super[ht](t);return e[q]=this[q],e[F]=this[F],e[V]=this[V],e[jo]=this[jo].slice(),e.#t=this.#t,e.#e=this.#e,e.#r=this.#r,e}dispatchEvent(t){if(t[Qt]!=="click"||t[xr]!==ae.none||!(t instanceof qe))return super.dispatchEvent(t);if(this.disabled)return!1;let e=null,o=this[vn],s=this.type;if(s==="checkbox"||s==="radio"){if(e=this.checked,this.#i(s==="checkbox"?!e:!0),s==="checkbox")o=this[vn],this[vn]=!1}let n=super.dispatchEvent(t);if(t[Qt]!=="click"||t[xr]!==ae.none||!(t instanceof qe))return n;if(t[lr]){if(e!==null)this.#i(e),this[vn]=o}else{let l=this.type;if(l==="checkbox"&&this[tt])this.dispatchEvent(new C("input",{bubbles:!0,cancelable:!0})),this.dispatchEvent(new C("change",{bubbles:!0,cancelable:!0}));else if(l==="radio"&&!e&&this[tt])this.dispatchEvent(new C("input",{bubbles:!0,cancelable:!0})),this.dispatchEvent(new C("change",{bubbles:!0,cancelable:!0}));else if(l==="submit"||l==="reset"){let a=this.form;if(a){if(l==="submit"&&this[tt])a.requestSubmit(this);else if(l==="reset")a.reset()}}}return n}#o(){let t=this.type;return t==="text"||t==="search"||t==="url"||t==="tel"||t==="password"}#i(t){if(this[wn]=t,this[Mr](),t&&this.type==="radio"&&this.name){let o=(this[Gt]||this.getRootNode()).querySelectorAll(`input[type="radio"][name="${this.name}"]`);for(let s of o)if(s!==this)s[wn]=!1}}}class ru extends B{get htmlFor(){let t=this.getAttribute("for");if(t!==null)return t;return t!==null?t:""}set htmlFor(t){this.setAttribute("for",t)}get control(){let t=this.getAttribute("for");if(t!==null){if(!t||!this[tt])return null;let e=this[ve].getElementById(t);if(e)switch(e[z]){case"INPUT":return e.type!=="hidden"?e:null;case"BUTTON":case"METER":case"OUTPUT":case"PROGRESS":case"SELECT":case"TEXTAREA":return e;default:return null}}return this.querySelector('button,input:not([type="hidden"]),meter,output,progress,select,textarea')}get form(){return this.control?.form||null}[ht](t=!1){return super[ht](t)}dispatchEvent(t){let e=super.dispatchEvent(t);if(!t[lr]&&t.type==="click"&&(t.eventPhase===ae.atTarget||t.eventPhase===ae.bubbling)&&t instanceof qe){let o=this.control;if(o&&t.target!==o)o.dispatchEvent(new qe("click",{bubbles:!0,cancelable:!0}))}return e}}class ou extends B{get form(){let t=this;while(t){if(t instanceof sa)return t.form;t=t.parentNode}return null}}class iu extends B{get value(){if(!this.hasAttribute("value"))return 0;let t=Number(this.getAttribute("value"));return isNaN(t)?0:t}set value(t){let e=Number(t);this.setAttribute("value",isNaN(e)?"0":String(e))}}import dS from"fs";import nA from"path";import lA from"child_process";class Pc{static getScript(t){let e={},o=Object.keys(t.headers).sort();for(let s of o)e[s]=t.headers[s];return`
92
92
  const sendRequest = require('http${t.url.protocol==="https:"?"s":""}').request;
93
93
  const options = ${JSON.stringify({method:t.method,headers:e,agent:!1,rejectUnauthorized:!t.disableStrictSSL,key:t.url.protocol==="https:"?Qa.key:void 0,cert:t.url.protocol==="https:"?Qa.cert:void 0},null,4)};
94
94
  const request = sendRequest(${JSON.stringify(t.url.href)}, options, (incomingMessage) => {
@@ -113,22 +113,22 @@ We should not end up here and it is therefore a bug in Happy DOM. Please report
113
113
  });
114
114
  request.write(Buffer.from('${t.body?t.body.toString("base64"):""}', 'base64'));
115
115
  request.end();
116
- `}}import su from"zlib";class mn{request;redirectCount=0;disableCache;disableSameOriginPolicy;interceptor;requestHeaders;#t;#e;#r=null;constructor(t){if(this.#t=t.browserFrame,this.#e=t.window,this.#r=t.unfilteredHeaders??null,this.request=typeof t.url==="string"||t.url instanceof Le?new t.window.Request(t.url,t.init):t.url,t.contentType)this.request[xe]=t.contentType;this.redirectCount=t.redirectCount??0,this.disableCache=t.disableCache??!1,this.disableSameOriginPolicy=t.disableSameOriginPolicy??this.#t.page.context.browser.settings.fetch.disableSameOriginPolicy??!1,this.interceptor=this.#t.page.context.browser.settings.fetch.interceptor,this.requestHeaders=this.#t.page.context.browser.settings.fetch.requestHeaders}send(){if(ds.prepareRequest(new Le(this.#e.location.href),this.request),this.requestHeaders){for(let o of this.requestHeaders)if(!o.url||(typeof o.url==="string"?o.url.startsWith(this.request.url):this.request.url.match(o.url)))for(let[s,n]of Object.entries(o.headers))this.request.headers.set(s,n)}if(this.interceptor?.beforeSyncRequest){let o=this.interceptor.beforeSyncRequest({request:this.request,window:this.#e});if(typeof o==="object")return o}if(ri.validateSchema(this.request),this.request.signal[Se]){if(this.request.signal[No]!==void 0)throw this.request.signal[No];throw new this.#e.DOMException("signal is aborted without reason",w.abortError)}if(this.request[Pe].protocol==="data:"){let o=Ya.parse(this.request.url),s={status:200,statusText:"OK",ok:!0,url:this.request.url,redirected:!1,headers:new this.#e.Headers({"Content-Type":o.type}),body:o.buffer,[Yr]:null},n=this.interceptor?.afterSyncResponse?this.interceptor.afterSyncResponse({window:this.#e,response:s,request:this.request}):void 0;return typeof n==="object"?n:s}if(this.request[Pe].protocol==="http:"&&this.#e.location.protocol==="https:")throw new this.#e.DOMException(`Mixed Content: The page at '${this.#e.location.href}' was loaded over HTTPS, but requested an insecure XMLHttpRequest endpoint '${this.request.url}'. This request has been blocked; the content must be served over HTTPS.`,w.securityError);let t=this.getCachedResponse();if(t)return t;let e=this.getVirtualServerResponse();if(e)return e;if(!this.compliesWithCrossOriginPolicy())throw this.#e.console.warn(`Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at "${this.request.url}".`),new this.#e.DOMException(`Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at "${this.request.url}".`,w.networkError);return this.sendRequest()}getCachedResponse(){if(this.disableCache)return null;let t=this.#t.page.context.responseCache.get(this.request);if(!t||t.response.waitingForBody)return null;if(t.state===jn.stale){let e=new this.#e.Headers(t.request.headers);if(t.etag)e.set("If-None-Match",t.etag);else{if(!t.lastModified)return null;e.set("If-Modified-Since",new Date(t.lastModified).toUTCString())}if(t.etag||!t.staleWhileRevalidate){let s=new mn({browserFrame:this.#t,window:this.#e,url:this.request.url,init:{headers:e,method:t.request.method},disableCache:!0,disableSameOriginPolicy:!0}).send(),n=s.status!==304?s.body:null;if(t=this.#t.page.context.responseCache.add(this.request,{...s,body:n,waitingForBody:!1}),s.status!==304)return s}else new Br({browserFrame:this.#t,window:this.#e,url:this.request.url,init:{headers:e,method:t.request.method},disableCache:!0,disableSameOriginPolicy:!0}).send().then((s)=>{s.buffer().then((n)=>{this.#t.page.context.responseCache.add(this.request,{...s,body:n,waitingForBody:!1})})})}if(!t||t.response.waitingForBody)return null;return{status:t.response.status,statusText:t.response.statusText,ok:!0,url:t.response.url,redirected:!1,headers:t.response.headers,body:t.response.body,[Yr]:t.response[Yr]||null}}getVirtualServerResponse(){let t=gs.getFilepath(this.#e,this.request.url);if(!t)return null;if(this.request.method!=="GET"){this.#t.page.console.error(`${this.request.method} ${this.request.url} 404 (Not Found)`);let l=gs.getNotFoundSyncResponse(this.#e,this.request.url),a=this.interceptor?.afterSyncResponse?this.interceptor.afterSyncResponse({window:this.#e,response:l,request:this.request}):void 0;return typeof a==="object"?a:l}let e;try{t=dS.statSync(t).isDirectory()?nA.join(t,"index.html"):t,e=dS.readFileSync(t)}catch{this.#t.page.console.error(`${this.request.method} ${this.request.url} 404 (Not Found)`);let l=gs.getNotFoundSyncResponse(this.#e,this.request.url),a=this.interceptor?.afterSyncResponse?this.interceptor.afterSyncResponse({window:this.#e,response:l,request:this.request}):void 0;return typeof a==="object"?a:l}let o={status:200,statusText:"",ok:!0,url:this.request.url,redirected:!1,headers:new this.#e.Headers,body:e,[Yr]:t},s=this.interceptor?.afterSyncResponse?this.interceptor.afterSyncResponse({window:this.#e,response:o,request:this.request}):void 0,n=typeof s==="object"?s:o;return this.#t.page.context.responseCache.add(this.request,{...n,waitingForBody:!1,virtual:!0}),n}compliesWithCrossOriginPolicy(){if(this.disableSameOriginPolicy||!ti.isCORS(this.#e.location.href,this.request[Pe]))return!0;let t=this.#t.page.context.preflightResponseCache.get(this.request);if(t){if(t.allowOrigin!=="*"&&t.allowOrigin!==this.#e.location.origin)return!1;if(t.allowMethods.length!==0&&!t.allowMethods.includes(this.request.method))return!1;return!0}let e=[];for(let[y]of this.request.headers)e.push(y.toLowerCase());let o=new this.#e.Headers({"Access-Control-Request-Method":this.request.method,Origin:this.#e.location.origin});if(e.length>0)o.set("Access-Control-Request-Headers",e.slice().sort().join(","));let n=new mn({browserFrame:this.#t,window:this.#e,url:this.request.url,init:{method:"OPTIONS"},disableCache:!0,disableSameOriginPolicy:!0,unfilteredHeaders:o}).send();if(!n.ok)return!1;let l=n.headers.get("Access-Control-Allow-Origin");if(!l)return!1;if(l!=="*"&&l!==this.#e.location.origin)return!1;let a=[];if(n.headers.has("Access-Control-Allow-Methods")){let y=n.headers.get("Access-Control-Allow-Methods");if(y!=="*")for(let u of y.split(","))a.push(u.trim().toUpperCase())}if(a.length!==0&&!a.includes(this.request.method))return!1;return!0}sendRequest(){if(!this.request[di]&&this.request.body)throw new this.#e.DOMException("Streams are not supported as request body for synchronous requests.",w.notSupportedError);let t=Pc.getScript({url:this.request[Pe],method:this.request.method,headers:bs.getRequestHeaders({browserFrame:this.#t,window:this.#e,request:this.request,baseHeaders:this.#r}),disableStrictSSL:this.#t.page.context.browser.settings.fetch.disableStrictSSL,body:this.request[di]}),e=lA.execFileSync(process.argv[0],["-e",t],{encoding:"buffer",maxBuffer:1073741824});if(!e.length)throw new this.#e.DOMException(`Synchronous fetch to "${this.request.url}" failed.`,w.networkError);let{error:o,incomingMessage:s}=JSON.parse(e.toString());if(o)throw new this.#e.DOMException(`Synchronous fetch to "${this.request.url}" failed. Error: ${o}`,w.networkError);let n=Ka.parseResponseHeaders({browserFrame:this.#t,requestURL:this.request[Pe],rawHeaders:s.rawHeaders}),l={status:s.statusCode,statusText:s.statusMessage,ok:s.statusCode>=200&&s.statusCode<300,url:this.request.url,redirected:this.redirectCount>0,headers:n,body:this.parseIResponseBody({headers:n,status:s.statusCode,body:Buffer.from(s.data,"base64")})},a=this.handleRedirectResponse(l)||l;if(!this.disableCache&&!a.redirected)this.#t.page.context.responseCache.add(this.request,{status:a.status,statusText:a.statusText,url:a.url,headers:a.headers,body:a.body,waitingForBody:!1});let y=this.interceptor?.afterSyncResponse?this.interceptor.afterSyncResponse({window:this.#e,response:a,request:this.request}):void 0,u=typeof y==="object"?y:a;if(!u.ok)this.#t.page.console.error(`${this.request.method} ${this.request.url} ${u.status} (${u.statusText})`);return u}parseIResponseBody(t){let e=t.headers.get("Content-Encoding");if(this.request.method==="HEAD"||e===null||t.status===204||t.status===304)return t.body;try{if(e==="gzip"||e==="x-gzip")return su.gunzipSync(t.body,{flush:su.constants.Z_SYNC_FLUSH,finishFlush:su.constants.Z_SYNC_FLUSH});if(e==="deflate"||e==="x-deflate")return su.inflateSync(t.body);if(e==="br")return su.brotliDecompressSync(t.body)}catch(o){throw new this.#e.DOMException(`Failed to read response body. Error: ${o.message}.`,w.encodingError)}return t.body}handleRedirectResponse(t){if(!tl.isRedirect(t.status))return null;switch(this.request.redirect){case"error":throw new this.#e.DOMException(`URI requested responds with a redirect, redirect mode is set to "error": ${this.request.url}`,w.abortError);case"manual":return null;case"follow":let e=t.headers.get("Location"),o=t.status===303||(t.status===301||t.status===302)&&this.request.method==="POST",s=null;if(e!==null)try{s=new Le(e,this.request.url)}catch{throw new this.#e.DOMException(`URI requested responds with an invalid redirect URL: ${e}`,w.uriMismatchError)}if(s===null)return null;if(tl.isMaxRedirectsReached(this.redirectCount))throw new this.#e.DOMException(`Maximum redirects reached at: ${this.request.url}`,w.networkError);let n=new this.#e.Headers(this.request.headers),l={method:this.request.method,signal:this.request.signal,referrer:this.request.referrer,referrerPolicy:this.request.referrerPolicy,credentials:this.request.credentials,headers:n,body:this.request[di]};if(this.request.credentials==="omit"||this.request.credentials==="same-origin"&&ti.isCORS(this.#e.location.href,s))n.delete("cookie"),n.delete("cookie2");if(o)l.method="GET",l.body=void 0,n.delete("Content-Length"),n.delete("Content-Type");let a=ds.getReferrerPolicyFromHeader(n);if(a)l.referrerPolicy=a;return new mn({browserFrame:this.#t,window:this.#e,url:s,init:l,redirectCount:this.redirectCount+1,contentType:!o?this.request[xe]:null}).send();default:throw new this.#e.DOMException(`Redirect option '${this.request.redirect}' is not a valid value of TRequestRedirect`)}}}class ml{window;constructor(t){this.window=t}async fetch(t,e,o){let s=new it(this.window).getBrowserFrame();if(!s)return{content:"",virtualServerFile:null};if(e==="script"||e==="style"){let a=on.getKey({url:String(t),destination:e,mode:"cors",credentialsMode:o?.credentials||"same-origin"}),y=this.window.document[Rr].get(a);if(y){this.window.document[Rr].delete(a);let u=y.response||await y.onResponseAvailable();if(u&&!u.ok)throw new this.window.DOMException(`Failed to perform request to "${new Le(t,this.window.location.href).href}". Status ${y.response?.status||"0"} ${y.response?.statusText||"Unknown"}.`);return{content:y.response?.[Nt]?.toString()||"",virtualServerFile:y.response?.[Yr]||null}}}let l=await new Br({browserFrame:s,window:this.window,url:t,disableSameOriginPolicy:e==="script"||e==="style",disablePreload:!0,init:{credentials:o?.credentials,referrerPolicy:o?.referrerPolicy}}).send();if(!l.ok)throw new this.window.DOMException(`Failed to perform request to "${new Le(t,this.window.location.href).href}". Status ${l.status} ${l.statusText}.`);return{content:await l.text(),virtualServerFile:l[Yr]||null}}fetchSync(t,e,o){let s=new it(this.window).getBrowserFrame();if(!s)return{content:"",virtualServerFile:null};if(e==="script"||e==="style"){let a=on.getKey({url:String(t),destination:e,mode:"cors",credentialsMode:o?.credentials||"same-origin"}),y=this.window.document[Rr].get(a);if(y&&y.response){if(this.window.document[Rr].delete(a),!y.response.ok)throw new this.window.DOMException(`Failed to perform request to "${new Le(t,this.window.location.href).href}". Status ${y.response.status} ${y.response.statusText}.`);return{content:y.response?.[Nt]?.toString()||"",virtualServerFile:y.response?.[Yr]||null}}}let l=new mn({browserFrame:s,window:this.window,url:t,disableSameOriginPolicy:!0,init:{credentials:o?.credentials,referrerPolicy:o?.referrerPolicy}}).send();if(!l.ok)throw new this.window.DOMException(`Failed to perform request to "${new Le(t,this.window.location.href).href}". Status ${l.status} ${l.statusText}.`);return{content:l.body?.toString()||"",virtualServerFile:l[Yr]||null}}}class am{url;#t;#e;#r=null;constructor(t){this.#t=t.window,this.url=t.url,this.#e=t.source}async evaluate(){if(this.#r)return this.#r;let t=new this.#t.CSSStyleSheet;return t.replaceSync(this.#e),this.#r={default:t},this.#r}async preload(){await this.evaluate()}}class mm{url;#t;#e;#r=null;constructor(t){this.#t=t.window,this.url=t.url,this.#e=t.source}async evaluate(){if(this.#r)return this.#r;let t;try{t=JSON.parse(this.#e)}catch(e){throw new this.#t.TypeError(`Failed to parse module "${this.url.href}": ${e.message}`)}return this.#r={default:t},this.#r}async preload(){await this.evaluate()}}class nu{url;#t;#e=[];#r=null;constructor(t){this.#t=t.window,this.url=t.url}async evaluate(){throw new this.#t.TypeError("Unresolved module. We should never end up here.")}async preload(){throw new this.#t.TypeError("Unresolved module. We should never end up here.")}addResolveListener(t,e){if(this.#r){e(this.#r);return}this.#e.push({resolve:t,reject:e})}resolve(t){if(t)this.#r=t;for(let e of this.#e)if(t)e.reject(t);else e.resolve(null)}}import{URL as SA}from"url";import{URL as Ac}from"url";import lu from"path";import wc from"fs";var aA=["module","main"],mA=[".js",".mjs"];class yl{static nodeModuleResolveCache=new Map;static packageJsonCache=new Map;static getURL(t,e,o){let s=typeof e==="string"?e:e.href,n=t[Bl],l=this.resolveURL(t,s,o);if(!n)return new Ac(l,s);if(n.scopes.length){for(let a of n.scopes)if(s.includes(a.scope)){for(let y of a.rules)if(l.startsWith(y.from))return new Ac(y.to+l.replace(y.from,""),s)}}if(n.imports.length){for(let a of n.imports)if(l.startsWith(a.from))return new Ac(a.to+l.replace(a.from,""),s)}return new Ac(l,s)}static clearCache(){this.nodeModuleResolveCache.clear(),this.packageJsonCache.clear()}static resolveURL(t,e,o){let s=new it(t).getSettings();if(!s)return o;let n=o;if(s.module.resolveNodeModules)n=this.resolveNodeModuleURL(s.module.resolveNodeModules,o);if(s.module.urlResolver)n=s.module.urlResolver({url:n,parentURL:e,window:t});return n}static resolveNodeModuleURL(t,e){if(e[0]==="."||e[0]==="/"||e.startsWith("http://")||e.startsWith("https://"))return e;let o=t.url[t.url.length-1]==="/"?"":"/",s=`${t.url}${o}`,n=lu.resolve(t.directory),l=e.split("/"),a=this.nodeModuleResolveCache.get(e);if(a)return a;let y=e[0]==="@"?`${l[0]}/${l[1]}`:l[0],u=this.packageJsonCache.get(y);if(!u)try{u=JSON.parse(wc.readFileSync(lu.join(n,y,"package.json"),"utf-8")),this.packageJsonCache.set(y,u)}catch{return e}if(e[0]==="@"&&l.length===2||l.length===1){if(u.exports?.["."]?.import){let g=`${s}${y}/${u.exports["."].import.replace("./","")}`;return this.nodeModuleResolveCache.set(e,g),g}let d=t.mainFields||aA;for(let g of d)if(u[g]&&wc.existsSync(lu.join(n,y,u[g]))){let f=`${s}${e}/${u[g]}`;return this.nodeModuleResolveCache.set(e,f),f}return e}let c=l.slice(e[0]==="@"?2:1).join("/");if(u.exports)for(let d of Object.keys(u.exports)){let g=Array.isArray(u.exports[d].import)?u.exports[d].import[0]:u.exports[d].import;if(g){let f=new RegExp(`^${d.replace("./","").replace(/\./g,"\\.").replace(/\*/g,"(.*)")}$`),E=c.match(f);if(E){let R=g.replace("./","").replace("*",E[1]),H=`${s}${y}/${R}`;return this.nodeModuleResolveCache.set(e,H),H}}}if(!e.endsWith(".js")&&!e.endsWith(".mjs")){for(let d of mA)if(wc.existsSync(lu.join(n,`${e}${d}`))){let g=`${s}${e}${d}`;return this.nodeModuleResolveCache.set(e,g),g}}else if(wc.existsSync(lu.join(n,e))){let d=`${s}${e}`;return this.nodeModuleResolveCache.set(e,d),d}return e}}var yA=/import\.meta\.([a-zA-Z]+)|import\s*["']([^"']+)["'];{0,1}|import\s*\(([^)]+)\)|(import[\s{])|[\s}]from\s*["']([^"']+)["'](\s+with\s*{\s*type\s*:\s*["']([^"']+)["']\s*}){0,1}([;\s]*)|export(\s+[a-zA-Z0-9-_$]+\s+|\s+\*\s+|\s+\*\s+as\s+["'a-zA-Z0-9-_$]+\s+|\s*{[^}]+}\s*)from\s*["']([^"']+)["']|export\s*(default\s+){0,1}(async\s+){0,1}(function\*{0,1}|class)\s*([^({\s]+)|(export\s*default\s*)|export\s*{([^}]+)}|export\s+(var|let|const)\s+([^=;]+)(=|;)/gm,pA=/(\/)|(\(|\))|({|})|(\[|\])|(\${)|(`)|(')|(")|(\n)/gm,uA=/{([^}]+)}|\*\s+as\s+([a-zA-Z0-9-_$]+)|([a-zA-Z0-9-_$]+)/gm,hA=/^[a-zA-Z_$][a-zA-Z0-9_$]*$/,yn=/['"`(){}\s;=><\[\]+-,:&]/,cA=/['"`({};=><\[+-,:&]/,dA=/\/\*|\*\//gm,Ec=/export\s*/,bA=/export\s*default\s*/,gA=/;\s*$/;class xc{window;debug=!1;count={comment:0,singleLineComment:0,parentheses:0,curlyBraces:0,squareBrackets:0,regExp:0,regExpSquareBrackets:0,escapeTemplateString:0,simpleString:0,doubleString:0};debugCount={comment:[],singleLineComment:[],parentheses:[],curlyBraces:[],squareBrackets:[],regExp:[],regExpSquareBrackets:[],escapeTemplateString:[],simpleString:[],doubleString:[]};templateString=[];constructor(t){this.window=t}compile(t,e,o=null){let s=new it(this.window).getBrowserContext();if(!s)return{imports:[],execute:async()=>{}};let n=s.browser.settings;if(!n.module.disableCache&&o){let lt=s[Va].get(t);if(lt)return{imports:lt.imports,execute:this.window[Uo](lt.code,{filename:o})}}this.reset();let l=new RegExp(yA),a=[],y=[],u=this.count,c="",d="",g="",f=null,E,R,H=!0,pt=0,gt=-1;while(f=l.exec(e)){if(E=e[f.index-1]||" ",R=e.substring(pt,f.index),this.parseSyntax(R,pt),gt===-1)c+=R;if(H=u.comment===0&&u.singleLineComment===0&&u.parentheses===0&&u.curlyBraces===0&&u.squareBrackets===0&&u.regExp===0&&u.simpleString===0&&u.doubleString===0&&this.templateString.length===0,f[1]&&u.simpleString===0&&u.doubleString===0&&u.comment===0&&u.singleLineComment===0&&u.regExp===0&&(this.templateString.length===0||this.templateString[0]>0)&&yn.test(this.getNonSpacePrecedingToken(e,f.index)))c+=`$happy_dom.importMeta.${f[1]}`;else if(f[2]&&H&&yn.test(E))a.push({url:yl.getURL(this.window,t,f[2]).href,type:"esm"});else if(f[3]&&u.simpleString===0&&u.doubleString===0&&u.comment===0&&u.singleLineComment===0&&u.regExp===0&&(this.templateString.length===0||this.templateString[0]>0)&&yn.test(E))c+=`$happy_dom.dynamicImport(${f[3]})`;else if(f[4]&&H&&yn.test(E)){if(gt!==-1)throw new this.window.TypeError(`Failed to parse module: Unexpected import statement in "${t}"`);gt=f.index+f[0].length-1}else if(f[5]&&H&&gt!==-1){let lt=yl.getURL(this.window,t,f[5]).href,dt=e.substring(gt,f.index+1),ee=new RegExp(uA),Ct=null;while(Ct=ee.exec(dt))if(Ct[1]){let or=this.removeMultilineComments(Ct[1]).split(/\s*,\s*/),Ye=[];for(let Hr of or){let zr=Hr.trim().split(/\s+as\s+/),Ts=(zr[1]||zr[0]).replace(/["']/g,""),hi=zr[0].replace(/["']/g,"");if(Ts&&hi)if(hi===Ts)Ye.push({name:hi});else Ye.push({name:hi,alias:Ts})}if(!f[7]||f[7]==="esm")y.push({url:lt,properties:Ye});d+=`let {${Ye.map((Hr)=>Hr.alias?`"${Hr.name}": ${Hr.alias}`:Hr.name).join(", ")}} = $happy_dom.imports.get('${lt}')${f[8]}`}else if(Ct[2])d+=`const ${Ct[2]} = $happy_dom.imports.get('${lt}')${f[8]}`;else if(Ct[3]){if(!f[7]||f[7]==="esm")y.push({url:lt,properties:[{name:"default",alias:Ct[3]}]});d+=`let ${Ct[3]} = $happy_dom.imports.get('${lt}').default${f[8]}`}gt=-1,a.push({url:lt,type:f[7]||"esm"})}else if(f[9]&&f[10]&&H&&yn.test(E)){let lt=yl.getURL(this.window,t,f[10]).href,dt=f[9].trim();if(dt==="*")c+=`Object.assign($happy_dom.exports, $happy_dom.imports.get('${lt}'))`,a.push({url:lt,type:"esm"});else if(dt[0]==="*"){let ee=dt.split(/\s+as\s+/);if(ee.length===2){let Ct=ee[1].replace(/["']/g,"");c+=`$happy_dom.exports['${Ct}'] = $happy_dom.imports.get('${lt}')`,a.push({url:lt,type:"esm"})}}else if(dt[0]==="{"){let ee=this.removeMultilineComments(dt).slice(1,-1).split(/\s*,\s*/),Ct=[];for(let or of ee){let Ye=or.trim().split(/\s+as\s+/),Hr=(Ye[1]||Ye[0]).replace(/["']/g,""),zr=Ye[0].replace(/["']/g,"");if(Hr&&zr)Ct.push(`$happy_dom.exports['${Hr}'] = $happy_dom.imports.get('${lt}')['${zr}']`)}c+=Ct.join(`;
116
+ `}}import su from"zlib";class mn{request;redirectCount=0;disableCache;disableSameOriginPolicy;interceptor;requestHeaders;#t;#e;#r=null;constructor(t){if(this.#t=t.browserFrame,this.#e=t.window,this.#r=t.unfilteredHeaders??null,this.request=typeof t.url==="string"||t.url instanceof Le?new t.window.Request(t.url,t.init):t.url,t.contentType)this.request[xe]=t.contentType;this.redirectCount=t.redirectCount??0,this.disableCache=t.disableCache??!1,this.disableSameOriginPolicy=t.disableSameOriginPolicy??this.#t.page.context.browser.settings.fetch.disableSameOriginPolicy??!1,this.interceptor=this.#t.page.context.browser.settings.fetch.interceptor,this.requestHeaders=this.#t.page.context.browser.settings.fetch.requestHeaders}send(){if(hs.prepareRequest(new Le(this.#e.location.href),this.request),this.requestHeaders){for(let o of this.requestHeaders)if(!o.url||(typeof o.url==="string"?o.url.startsWith(this.request.url):this.request.url.match(o.url)))for(let[s,n]of Object.entries(o.headers))this.request.headers.set(s,n)}if(this.interceptor?.beforeSyncRequest){let o=this.interceptor.beforeSyncRequest({request:this.request,window:this.#e});if(typeof o==="object")return o}if(ti.validateSchema(this.request),this.request.signal[Se]){if(this.request.signal[To]!==void 0)throw this.request.signal[To];throw new this.#e.DOMException("signal is aborted without reason",w.abortError)}if(this.request[Pe].protocol==="data:"){let o=Ya.parse(this.request.url),s={status:200,statusText:"OK",ok:!0,url:this.request.url,redirected:!1,headers:new this.#e.Headers({"Content-Type":o.type}),body:o.buffer,[_r]:null},n=this.interceptor?.afterSyncResponse?this.interceptor.afterSyncResponse({window:this.#e,response:s,request:this.request}):void 0;return typeof n==="object"?n:s}if(this.request[Pe].protocol==="http:"&&this.#e.location.protocol==="https:")throw new this.#e.DOMException(`Mixed Content: The page at '${this.#e.location.href}' was loaded over HTTPS, but requested an insecure XMLHttpRequest endpoint '${this.request.url}'. This request has been blocked; the content must be served over HTTPS.`,w.securityError);let t=this.getCachedResponse();if(t)return t;let e=this.getVirtualServerResponse();if(e)return e;if(!this.compliesWithCrossOriginPolicy())throw this.#e.console.warn(`Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at "${this.request.url}".`),new this.#e.DOMException(`Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at "${this.request.url}".`,w.networkError);return this.sendRequest()}getCachedResponse(){if(this.disableCache)return null;let t=this.#t.page.context.responseCache.get(this.request);if(!t||t.response.waitingForBody)return null;if(t.state===_n.stale){let e=new this.#e.Headers(t.request.headers);if(t.etag)e.set("If-None-Match",t.etag);else{if(!t.lastModified)return null;e.set("If-Modified-Since",new Date(t.lastModified).toUTCString())}if(t.etag||!t.staleWhileRevalidate){let s=new mn({browserFrame:this.#t,window:this.#e,url:this.request.url,init:{headers:e,method:t.request.method},disableCache:!0,disableSameOriginPolicy:!0}).send(),n=s.status!==304?s.body:null;if(t=this.#t.page.context.responseCache.add(this.request,{...s,body:n,waitingForBody:!1}),s.status!==304)return s}else new Dr({browserFrame:this.#t,window:this.#e,url:this.request.url,init:{headers:e,method:t.request.method},disableCache:!0,disableSameOriginPolicy:!0}).send().then((s)=>{s.buffer().then((n)=>{this.#t.page.context.responseCache.add(this.request,{...s,body:n,waitingForBody:!1})})})}if(!t||t.response.waitingForBody)return null;return{status:t.response.status,statusText:t.response.statusText,ok:!0,url:t.response.url,redirected:!1,headers:t.response.headers,body:t.response.body,[_r]:t.response[_r]||null}}getVirtualServerResponse(){let t=ds.getFilepath(this.#e,this.request.url);if(!t)return null;if(this.request.method!=="GET"){this.#t.page.console.error(`${this.request.method} ${this.request.url} 404 (Not Found)`);let l=ds.getNotFoundSyncResponse(this.#e,this.request.url),a=this.interceptor?.afterSyncResponse?this.interceptor.afterSyncResponse({window:this.#e,response:l,request:this.request}):void 0;return typeof a==="object"?a:l}let e;try{t=dS.statSync(t).isDirectory()?nA.join(t,"index.html"):t,e=dS.readFileSync(t)}catch{this.#t.page.console.error(`${this.request.method} ${this.request.url} 404 (Not Found)`);let l=ds.getNotFoundSyncResponse(this.#e,this.request.url),a=this.interceptor?.afterSyncResponse?this.interceptor.afterSyncResponse({window:this.#e,response:l,request:this.request}):void 0;return typeof a==="object"?a:l}let o={status:200,statusText:"",ok:!0,url:this.request.url,redirected:!1,headers:new this.#e.Headers,body:e,[_r]:t},s=this.interceptor?.afterSyncResponse?this.interceptor.afterSyncResponse({window:this.#e,response:o,request:this.request}):void 0,n=typeof s==="object"?s:o;return this.#t.page.context.responseCache.add(this.request,{...n,waitingForBody:!1,virtual:!0}),n}compliesWithCrossOriginPolicy(){if(this.disableSameOriginPolicy||!Jo.isCORS(this.#e.location.href,this.request[Pe]))return!0;let t=this.#t.page.context.preflightResponseCache.get(this.request);if(t){if(t.allowOrigin!=="*"&&t.allowOrigin!==this.#e.location.origin)return!1;if(t.allowMethods.length!==0&&!t.allowMethods.includes(this.request.method))return!1;return!0}let e=[];for(let[y]of this.request.headers)e.push(y.toLowerCase());let o=new this.#e.Headers({"Access-Control-Request-Method":this.request.method,Origin:this.#e.location.origin});if(e.length>0)o.set("Access-Control-Request-Headers",e.slice().sort().join(","));let n=new mn({browserFrame:this.#t,window:this.#e,url:this.request.url,init:{method:"OPTIONS"},disableCache:!0,disableSameOriginPolicy:!0,unfilteredHeaders:o}).send();if(!n.ok)return!1;let l=n.headers.get("Access-Control-Allow-Origin");if(!l)return!1;if(l!=="*"&&l!==this.#e.location.origin)return!1;let a=[];if(n.headers.has("Access-Control-Allow-Methods")){let y=n.headers.get("Access-Control-Allow-Methods");if(y!=="*")for(let u of y.split(","))a.push(u.trim().toUpperCase())}if(a.length!==0&&!a.includes(this.request.method))return!1;return!0}sendRequest(){if(!this.request[hi]&&this.request.body)throw new this.#e.DOMException("Streams are not supported as request body for synchronous requests.",w.notSupportedError);let t=Pc.getScript({url:this.request[Pe],method:this.request.method,headers:cs.getRequestHeaders({browserFrame:this.#t,window:this.#e,request:this.request,baseHeaders:this.#r}),disableStrictSSL:this.#t.page.context.browser.settings.fetch.disableStrictSSL,body:this.request[hi]}),e=lA.execFileSync(process.argv[0],["-e",t],{encoding:"buffer",maxBuffer:1073741824});if(!e.length)throw new this.#e.DOMException(`Synchronous fetch to "${this.request.url}" failed.`,w.networkError);let{error:o,incomingMessage:s}=JSON.parse(e.toString());if(o)throw new this.#e.DOMException(`Synchronous fetch to "${this.request.url}" failed. Error: ${o}`,w.networkError);let n=Ka.parseResponseHeaders({browserFrame:this.#t,requestURL:this.request[Pe],rawHeaders:s.rawHeaders}),l={status:s.statusCode,statusText:s.statusMessage,ok:s.statusCode>=200&&s.statusCode<300,url:this.request.url,redirected:this.redirectCount>0,headers:n,body:this.parseIResponseBody({headers:n,status:s.statusCode,body:Buffer.from(s.data,"base64")})},a=this.handleRedirectResponse(l)||l;if(!this.disableCache&&!a.redirected)this.#t.page.context.responseCache.add(this.request,{status:a.status,statusText:a.statusText,url:a.url,headers:a.headers,body:a.body,waitingForBody:!1});let y=this.interceptor?.afterSyncResponse?this.interceptor.afterSyncResponse({window:this.#e,response:a,request:this.request}):void 0,u=typeof y==="object"?y:a;if(!u.ok)this.#t.page.console.error(`${this.request.method} ${this.request.url} ${u.status} (${u.statusText})`);return u}parseIResponseBody(t){let e=t.headers.get("Content-Encoding");if(this.request.method==="HEAD"||e===null||t.status===204||t.status===304)return t.body;try{if(e==="gzip"||e==="x-gzip")return su.gunzipSync(t.body,{flush:su.constants.Z_SYNC_FLUSH,finishFlush:su.constants.Z_SYNC_FLUSH});if(e==="deflate"||e==="x-deflate")return su.inflateSync(t.body);if(e==="br")return su.brotliDecompressSync(t.body)}catch(o){throw new this.#e.DOMException(`Failed to read response body. Error: ${o.message}.`,w.encodingError)}return t.body}handleRedirectResponse(t){if(!tl.isRedirect(t.status))return null;switch(this.request.redirect){case"error":throw new this.#e.DOMException(`URI requested responds with a redirect, redirect mode is set to "error": ${this.request.url}`,w.abortError);case"manual":return null;case"follow":let e=t.headers.get("Location"),o=t.status===303||(t.status===301||t.status===302)&&this.request.method==="POST",s=null;if(e!==null)try{s=new Le(e,this.request.url)}catch{throw new this.#e.DOMException(`URI requested responds with an invalid redirect URL: ${e}`,w.uriMismatchError)}if(s===null)return null;if(tl.isMaxRedirectsReached(this.redirectCount))throw new this.#e.DOMException(`Maximum redirects reached at: ${this.request.url}`,w.networkError);let n=new this.#e.Headers(this.request.headers),l={method:this.request.method,signal:this.request.signal,referrer:this.request.referrer,referrerPolicy:this.request.referrerPolicy,credentials:this.request.credentials,headers:n,body:this.request[hi]};if(this.request.credentials==="omit"||this.request.credentials==="same-origin"&&Jo.isCORS(this.#e.location.href,s))n.delete("cookie"),n.delete("cookie2");if(o)l.method="GET",l.body=void 0,n.delete("Content-Length"),n.delete("Content-Type");let a=hs.getReferrerPolicyFromHeader(n);if(a)l.referrerPolicy=a;return new mn({browserFrame:this.#t,window:this.#e,url:s,init:l,redirectCount:this.redirectCount+1,contentType:!o?this.request[xe]:null}).send();default:throw new this.#e.DOMException(`Redirect option '${this.request.redirect}' is not a valid value of TRequestRedirect`)}}}class ml{window;constructor(t){this.window=t}async fetch(t,e,o){let s=new it(this.window).getBrowserFrame();if(!s)return{content:"",virtualServerFile:null};if(e==="script"||e==="style"){let a=on.getKey({url:String(t),destination:e,mode:"cors",credentialsMode:o?.credentials||"same-origin"}),y=this.window.document[Rr].get(a);if(y){this.window.document[Rr].delete(a);let u=y.response||await y.onResponseAvailable();if(u&&!u.ok)throw new this.window.DOMException(`Failed to perform request to "${new Le(t,this.window.location.href).href}". Status ${y.response?.status||"0"} ${y.response?.statusText||"Unknown"}.`);return{content:y.response?.[Nt]?.toString()||"",virtualServerFile:y.response?.[_r]||null}}}let l=await new Dr({browserFrame:s,window:this.window,url:t,disableSameOriginPolicy:e==="script"||e==="style",disablePreload:!0,init:{credentials:o?.credentials,referrerPolicy:o?.referrerPolicy}}).send();if(!l.ok)throw new this.window.DOMException(`Failed to perform request to "${new Le(t,this.window.location.href).href}". Status ${l.status} ${l.statusText}.`);return{content:await l.text(),virtualServerFile:l[_r]||null}}fetchSync(t,e,o){let s=new it(this.window).getBrowserFrame();if(!s)return{content:"",virtualServerFile:null};if(e==="script"||e==="style"){let a=on.getKey({url:String(t),destination:e,mode:"cors",credentialsMode:o?.credentials||"same-origin"}),y=this.window.document[Rr].get(a);if(y&&y.response){if(this.window.document[Rr].delete(a),!y.response.ok)throw new this.window.DOMException(`Failed to perform request to "${new Le(t,this.window.location.href).href}". Status ${y.response.status} ${y.response.statusText}.`);return{content:y.response?.[Nt]?.toString()||"",virtualServerFile:y.response?.[_r]||null}}}let l=new mn({browserFrame:s,window:this.window,url:t,disableSameOriginPolicy:!0,init:{credentials:o?.credentials,referrerPolicy:o?.referrerPolicy}}).send();if(!l.ok)throw new this.window.DOMException(`Failed to perform request to "${new Le(t,this.window.location.href).href}". Status ${l.status} ${l.statusText}.`);return{content:l.body?.toString()||"",virtualServerFile:l[_r]||null}}}class am{url;#t;#e;#r=null;constructor(t){this.#t=t.window,this.url=t.url,this.#e=t.source}async evaluate(){if(this.#r)return this.#r;let t=new this.#t.CSSStyleSheet;return t.replaceSync(this.#e),this.#r={default:t},this.#r}async preload(){await this.evaluate()}}class mm{url;#t;#e;#r=null;constructor(t){this.#t=t.window,this.url=t.url,this.#e=t.source}async evaluate(){if(this.#r)return this.#r;let t;try{t=JSON.parse(this.#e)}catch(e){throw new this.#t.TypeError(`Failed to parse module "${this.url.href}": ${e.message}`)}return this.#r={default:t},this.#r}async preload(){await this.evaluate()}}class nu{url;#t;#e=[];#r=null;constructor(t){this.#t=t.window,this.url=t.url}async evaluate(){throw new this.#t.TypeError("Unresolved module. We should never end up here.")}async preload(){throw new this.#t.TypeError("Unresolved module. We should never end up here.")}addResolveListener(t,e){if(this.#r){e(this.#r);return}this.#e.push({resolve:t,reject:e})}resolve(t){if(t)this.#r=t;for(let e of this.#e)if(t)e.reject(t);else e.resolve(null)}}import{URL as SA}from"url";import{URL as Ac}from"url";import lu from"path";import wc from"fs";var aA=["module","main"],mA=[".js",".mjs"];class yl{static nodeModuleResolveCache=new Map;static packageJsonCache=new Map;static getURL(t,e,o){let s=typeof e==="string"?e:e.href,n=t[Bl],l=this.resolveURL(t,s,o);if(!n)return new Ac(l,s);if(n.scopes.length){for(let a of n.scopes)if(s.includes(a.scope)){for(let y of a.rules)if(l.startsWith(y.from))return new Ac(y.to+l.replace(y.from,""),s)}}if(n.imports.length){for(let a of n.imports)if(l.startsWith(a.from))return new Ac(a.to+l.replace(a.from,""),s)}return new Ac(l,s)}static clearCache(){this.nodeModuleResolveCache.clear(),this.packageJsonCache.clear()}static resolveURL(t,e,o){let s=new it(t).getSettings();if(!s)return o;let n=o;if(s.module.resolveNodeModules)n=this.resolveNodeModuleURL(s.module.resolveNodeModules,o);if(s.module.urlResolver)n=s.module.urlResolver({url:n,parentURL:e,window:t});return n}static resolveNodeModuleURL(t,e){if(e[0]==="."||e[0]==="/"||e.startsWith("http://")||e.startsWith("https://"))return e;let o=t.url[t.url.length-1]==="/"?"":"/",s=`${t.url}${o}`,n=lu.resolve(t.directory),l=e.split("/"),a=this.nodeModuleResolveCache.get(e);if(a)return a;let y=e[0]==="@"?`${l[0]}/${l[1]}`:l[0],u=this.packageJsonCache.get(y);if(!u)try{u=JSON.parse(wc.readFileSync(lu.join(n,y,"package.json"),"utf-8")),this.packageJsonCache.set(y,u)}catch{return e}if(e[0]==="@"&&l.length===2||l.length===1){if(u.exports?.["."]?.import){let g=`${s}${y}/${u.exports["."].import.replace("./","")}`;return this.nodeModuleResolveCache.set(e,g),g}let d=t.mainFields||aA;for(let g of d)if(u[g]&&wc.existsSync(lu.join(n,y,u[g]))){let f=`${s}${e}/${u[g]}`;return this.nodeModuleResolveCache.set(e,f),f}return e}let c=l.slice(e[0]==="@"?2:1).join("/");if(u.exports)for(let d of Object.keys(u.exports)){let g=Array.isArray(u.exports[d].import)?u.exports[d].import[0]:u.exports[d].import;if(g){let f=new RegExp(`^${d.replace("./","").replace(/\./g,"\\.").replace(/\*/g,"(.*)")}$`),E=c.match(f);if(E){let R=g.replace("./","").replace("*",E[1]),H=`${s}${y}/${R}`;return this.nodeModuleResolveCache.set(e,H),H}}}if(!e.endsWith(".js")&&!e.endsWith(".mjs")){for(let d of mA)if(wc.existsSync(lu.join(n,`${e}${d}`))){let g=`${s}${e}${d}`;return this.nodeModuleResolveCache.set(e,g),g}}else if(wc.existsSync(lu.join(n,e))){let d=`${s}${e}`;return this.nodeModuleResolveCache.set(e,d),d}return e}}var yA=/import\.meta\.([a-zA-Z]+)|import\s*["']([^"']+)["'];{0,1}|import\s*\(([^)]+)\)|(import[\s{])|[\s}]from\s*["']([^"']+)["'](\s+with\s*{\s*type\s*:\s*["']([^"']+)["']\s*}){0,1}([;\s]*)|export(\s+[a-zA-Z0-9-_$]+\s+|\s+\*\s+|\s+\*\s+as\s+["'a-zA-Z0-9-_$]+\s+|\s*{[^}]+}\s*)from\s*["']([^"']+)["']|export\s*(default\s+){0,1}(async\s+){0,1}(function\*{0,1}|class)\s*([^({\s]+)|(export\s*default\s*)|export\s*{([^}]+)}|export\s+(var|let|const)\s+([^=;]+)(=|;)/gm,pA=/(\/)|(\(|\))|({|})|(\[|\])|(\${)|(`)|(')|(")|(\n)/gm,uA=/{([^}]+)}|\*\s+as\s+([a-zA-Z0-9-_$]+)|([a-zA-Z0-9-_$]+)/gm,hA=/^[a-zA-Z_$][a-zA-Z0-9_$]*$/,yn=/['"`(){}\s;=><\[\]+-,:&]/,cA=/['"`({};=><\[+-,:&]/,dA=/\/\*|\*\//gm,Ec=/export\s*/,bA=/export\s*default\s*/,gA=/;\s*$/;class xc{window;debug=!1;count={comment:0,singleLineComment:0,parentheses:0,curlyBraces:0,squareBrackets:0,regExp:0,regExpSquareBrackets:0,escapeTemplateString:0,simpleString:0,doubleString:0};debugCount={comment:[],singleLineComment:[],parentheses:[],curlyBraces:[],squareBrackets:[],regExp:[],regExpSquareBrackets:[],escapeTemplateString:[],simpleString:[],doubleString:[]};templateString=[];constructor(t){this.window=t}compile(t,e,o=null){let s=new it(this.window).getBrowserContext();if(!s)return{imports:[],execute:async()=>{}};let n=s.browser.settings;if(!n.module.disableCache&&o){let lt=s[Va].get(t);if(lt)return{imports:lt.imports,execute:this.window[Oo](lt.code,{filename:o})}}this.reset();let l=new RegExp(yA),a=[],y=[],u=this.count,c="",d="",g="",f=null,E,R,H=!0,yt=0,bt=-1;while(f=l.exec(e)){if(E=e[f.index-1]||" ",R=e.substring(yt,f.index),this.parseSyntax(R,yt),bt===-1)c+=R;if(H=u.comment===0&&u.singleLineComment===0&&u.parentheses===0&&u.curlyBraces===0&&u.squareBrackets===0&&u.regExp===0&&u.simpleString===0&&u.doubleString===0&&this.templateString.length===0,f[1]&&u.simpleString===0&&u.doubleString===0&&u.comment===0&&u.singleLineComment===0&&u.regExp===0&&(this.templateString.length===0||this.templateString[0]>0)&&yn.test(this.getNonSpacePrecedingToken(e,f.index)))c+=`$happy_dom.importMeta.${f[1]}`;else if(f[2]&&H&&yn.test(E))a.push({url:yl.getURL(this.window,t,f[2]).href,type:"esm"});else if(f[3]&&u.simpleString===0&&u.doubleString===0&&u.comment===0&&u.singleLineComment===0&&u.regExp===0&&(this.templateString.length===0||this.templateString[0]>0)&&yn.test(E))c+=`$happy_dom.dynamicImport(${f[3]})`;else if(f[4]&&H&&yn.test(E)){if(bt!==-1)throw new this.window.TypeError(`Failed to parse module: Unexpected import statement in "${t}"`);bt=f.index+f[0].length-1}else if(f[5]&&H&&bt!==-1){let lt=yl.getURL(this.window,t,f[5]).href,ct=e.substring(bt,f.index+1),ee=new RegExp(uA),Ct=null;while(Ct=ee.exec(ct))if(Ct[1]){let or=this.removeMultilineComments(Ct[1]).split(/\s*,\s*/),Ye=[];for(let Ur of or){let $r=Ur.trim().split(/\s+as\s+/),xs=($r[1]||$r[0]).replace(/["']/g,""),pi=$r[0].replace(/["']/g,"");if(xs&&pi)if(pi===xs)Ye.push({name:pi});else Ye.push({name:pi,alias:xs})}if(!f[7]||f[7]==="esm")y.push({url:lt,properties:Ye});d+=`let {${Ye.map((Ur)=>Ur.alias?`"${Ur.name}": ${Ur.alias}`:Ur.name).join(", ")}} = $happy_dom.imports.get('${lt}')${f[8]}`}else if(Ct[2])d+=`const ${Ct[2]} = $happy_dom.imports.get('${lt}')${f[8]}`;else if(Ct[3]){if(!f[7]||f[7]==="esm")y.push({url:lt,properties:[{name:"default",alias:Ct[3]}]});d+=`let ${Ct[3]} = $happy_dom.imports.get('${lt}').default${f[8]}`}bt=-1,a.push({url:lt,type:f[7]||"esm"})}else if(f[9]&&f[10]&&H&&yn.test(E)){let lt=yl.getURL(this.window,t,f[10]).href,ct=f[9].trim();if(ct==="*")c+=`Object.assign($happy_dom.exports, $happy_dom.imports.get('${lt}'))`,a.push({url:lt,type:"esm"});else if(ct[0]==="*"){let ee=ct.split(/\s+as\s+/);if(ee.length===2){let Ct=ee[1].replace(/["']/g,"");c+=`$happy_dom.exports['${Ct}'] = $happy_dom.imports.get('${lt}')`,a.push({url:lt,type:"esm"})}}else if(ct[0]==="{"){let ee=this.removeMultilineComments(ct).slice(1,-1).split(/\s*,\s*/),Ct=[];for(let or of ee){let Ye=or.trim().split(/\s+as\s+/),Ur=(Ye[1]||Ye[0]).replace(/["']/g,""),$r=Ye[0].replace(/["']/g,"");if(Ur&&$r)Ct.push(`$happy_dom.exports['${Ur}'] = $happy_dom.imports.get('${lt}')['${$r}']`)}c+=Ct.join(`;
117
117
  `),a.push({url:lt,type:"esm"})}}else if(f[13]&&f[14]&&H&&yn.test(E)){let lt=f[14].replace("*","");if(lt)if(f[11])c+=f[0].replace(bA,""),g+=`$happy_dom.exports.default = ${lt};
118
118
  `;else c+=f[0].replace(Ec,""),g+=`$happy_dom.exports['${lt}'] = ${lt};
119
- `;else if(f[11])c+=`$happy_dom.exports.default = ${f[12]||""}${f[13]}${lt?" ":""}${f[14]}`;else throw new this.window.SyntaxError(`Failed to parse module: Missing function or class name in export statement in "${t}"`)}else if(f[15]&&H&&yn.test(E))c+="$happy_dom.exports.default = ";else if(f[16]&&H&&yn.test(E)){let lt=this.removeMultilineComments(f[16]).split(/\s*,\s*/),dt=[];for(let ee of lt){let Ct=ee.trim().split(/\s+as\s+/),or=(Ct[1]||Ct[0]).replace(/["']/g,""),Ye=Ct[0].replace(/["']/g,"");if(or&&Ye&&hA.test(Ye))dt.push(`$happy_dom.exports['${or}'] = ${Ye}`)}c+=dt.join(`;
120
- `)}else if(f[17]&&H&&yn.test(E))if(f[19]==="="){let lt=this.removeMultilineComments(f[18]).trim();if(lt[0]==="{"&&lt[lt.length-1]==="}"||lt[0]==="["&&lt[lt.length-1]==="]"){let dt=lt.slice(1,-1).split(/\s*,\s*/);for(let ee of dt){let Ct=ee.trim().split(/\s*:\s*/),or=(Ct[1]||Ct[0]).replace(/["']/g,"");if(or)g+=`$happy_dom.exports['${or}'] = ${or};
119
+ `;else if(f[11])c+=`$happy_dom.exports.default = ${f[12]||""}${f[13]}${lt?" ":""}${f[14]}`;else throw new this.window.SyntaxError(`Failed to parse module: Missing function or class name in export statement in "${t}"`)}else if(f[15]&&H&&yn.test(E))c+="$happy_dom.exports.default = ";else if(f[16]&&H&&yn.test(E)){let lt=this.removeMultilineComments(f[16]).split(/\s*,\s*/),ct=[];for(let ee of lt){let Ct=ee.trim().split(/\s+as\s+/),or=(Ct[1]||Ct[0]).replace(/["']/g,""),Ye=Ct[0].replace(/["']/g,"");if(or&&Ye&&hA.test(Ye))ct.push(`$happy_dom.exports['${or}'] = ${Ye}`)}c+=ct.join(`;
120
+ `)}else if(f[17]&&H&&yn.test(E))if(f[19]==="="){let lt=this.removeMultilineComments(f[18]).trim();if(lt[0]==="{"&&lt[lt.length-1]==="}"||lt[0]==="["&&lt[lt.length-1]==="]"){let ct=lt.slice(1,-1).split(/\s*,\s*/);for(let ee of ct){let Ct=ee.trim().split(/\s*:\s*/),or=(Ct[1]||Ct[0]).replace(/["']/g,"");if(or)g+=`$happy_dom.exports['${or}'] = ${or};
121
121
  `}c+=f[0].replace(Ec,"")}else c+=f[0].replace(Ec,""),g+=`$happy_dom.exports['${lt}'] = ${lt};
122
- `}else{c+=f[0].replace(Ec,"");let lt=this.removeMultilineComments(f[18]).split(",");for(let dt of lt){let ee=dt.trim();g+=`$happy_dom.exports['${ee}'] = ${ee};
123
- `}}else if(gt!==-1){let lt=e.substring(gt,f.index+1);c+=lt,this.parseSyntax(lt,gt)}else c+=f[0],this.parseSyntax(f[0],f.index);pt=l.lastIndex}if(this.debug)return{imports:a,execute:async()=>{}};if(!!d&&!gA.test(d))d=`
124
- ${d};`;if(!n.disableErrorCapturing&&n.errorCapture===me.tryAndCatch)d="(async function anonymous($happy_dom) { try {"+d;else d="(async function anonymous($happy_dom) {"+d;if(c=d+c,pt===0)c+=e;else c+=e.substring(pt);if(c+=`
122
+ `}else{c+=f[0].replace(Ec,"");let lt=this.removeMultilineComments(f[18]).split(",");for(let ct of lt){let ee=ct.trim();g+=`$happy_dom.exports['${ee}'] = ${ee};
123
+ `}}else if(bt!==-1){let lt=e.substring(bt,f.index+1);c+=lt,this.parseSyntax(lt,bt)}else c+=f[0],this.parseSyntax(f[0],f.index);yt=l.lastIndex}if(this.debug)return{imports:a,execute:async()=>{}};if(!!d&&!gA.test(d))d=`
124
+ ${d};`;if(!n.disableErrorCapturing&&n.errorCapture===me.tryAndCatch)d="(async function anonymous($happy_dom) { try {"+d;else d="(async function anonymous($happy_dom) {"+d;if(c=d+c,yt===0)c+=e;else c+=e.substring(yt);if(c+=`
125
125
  `+g,y.length>0){c+=`$happy_dom.addCircularImportResolver(() => {
126
- `;for(let lt of y)for(let dt of lt.properties)if(dt.alias)c+=`${dt.alias} = $happy_dom.imports.get('${lt.url}')['${dt.name}'];
127
- `;else c+=`${dt.name} = $happy_dom.imports.get('${lt.url}')['${dt.name}'];
128
- `;c+="});"}if(!n.disableErrorCapturing&&n.errorCapture===me.tryAndCatch)c+="} catch(e) { $happy_dom.dispatchError(e); }";c+="})";let Rt;try{Rt=this.window[Uo](c,{filename:o||t})}catch(lt){let dt=this.getError(t,e,o),ee=dt?new this.window.SyntaxError(`Failed to parse module in '${t}'. Execution error: ${lt.message}. Compile error: ${dt}`):lt;if(lt.message=`Failed to parse module in '${o}': ${ee.message}`,n.disableErrorCapturing||n.errorCapture!==me.tryAndCatch)throw ee;else return this.window[le](ee),{imports:a,execute:async()=>{}}}if(!n.module.disableCache&&o)s[Va].set(t,{imports:a,code:c});return{imports:a,execute:Rt}}parseSyntax(t,e){let o=new RegExp(pA),s=this.count,n=this.debug,l=this.debugCount,a=null,y,u;e++;while(a=o.exec(t))if(y=t[a.index-1]||" ",u=y==="\\"&&t[a.index-2]!=="\\",a[1]){if(s.simpleString===0&&s.doubleString===0&&s.singleLineComment===0&&s.regExpSquareBrackets===0&&(this.templateString.length===0||this.templateString[0]>0)){if(s.comment===1){if(y==="*"){if(s.comment=0,n)l.comment.length=0}}else if(s.regExp===0){if(t[a.index+1]==="*"){if(s.comment=1,n)l.comment=[e+a.index]}else if(t[a.index+1]==="/"){if(s.singleLineComment=1,n)l.singleLineComment=[e+a.index]}else if(cA.test(this.getNonSpacePrecedingToken(t,a.index))){if(s.regExp=1,n)l.regExp=[e+a.index]}}else if(!u){if(s.regExp=0,n)l.regExp.length=0}}}else if(a[2]){if(s.simpleString===0&&s.doubleString===0&&s.regExp===0&&s.comment===0&&s.singleLineComment===0&&(this.templateString.length===0||this.templateString[0]>0)){if(a[2]==="("){if(s.parentheses++,n)l.parentheses.push(e+a.index)}else if(a[2]===")"&&s.parentheses>0){if(s.parentheses--,n)l.parentheses.pop()}}}else if(a[3]){if(s.simpleString===0&&s.doubleString===0&&s.regExp===0&&s.comment===0&&s.singleLineComment===0&&(this.templateString.length===0||this.templateString[0]>0)){if(a[3]==="{"){if(this.templateString.length)this.templateString[0]++;if(s.curlyBraces++,n)l.curlyBraces.push(e+a.index)}else if(a[3]==="}"){if(this.templateString.length&&this.templateString[0]>0)this.templateString[0]--;if(s.curlyBraces>0){if(s.curlyBraces--,n)l.curlyBraces.pop()}}}}else if(a[4]){if(s.simpleString===0&&s.doubleString===0&&s.comment===0&&s.singleLineComment===0&&(this.templateString.length===0||this.templateString[0]>0)){if(s.regExp===1){if(!u){if(a[4]==="["&&s.regExpSquareBrackets===0){if(s.regExpSquareBrackets=1,n)l.regExpSquareBrackets=[e+a.index]}else if(a[4]==="]"&&s.regExpSquareBrackets===1){if(s.regExpSquareBrackets=0,n)l.regExpSquareBrackets.length=0}}}else if(a[4]==="["){if(s.squareBrackets++,n)l.squareBrackets.push(e+a.index)}else if(a[4]==="]"&&s.squareBrackets>0){if(s.squareBrackets--,n)l.squareBrackets.pop()}}}else if(a[5]){if(s.simpleString===0&&s.doubleString===0&&s.comment===0&&s.singleLineComment===0&&s.regExp===0&&!u){if(this.templateString[0]===0){if(this.templateString[0]=1,s.curlyBraces++,n)l.curlyBraces.push(e+a.index)}}}else if(a[6]){if(s.simpleString===0&&s.doubleString===0&&s.comment===0&&s.singleLineComment===0&&s.regExp===0&&!u)if(this.templateString?.[0]===0)this.templateString.shift();else this.templateString.unshift(0)}else if(a[7]){if(s.doubleString===0&&s.comment===0&&s.singleLineComment===0&&s.regExp===0&&!u&&(this.templateString.length===0||this.templateString[0]>0)){if(s.simpleString===0){if(s.simpleString=1,n)l.simpleString=[e+a.index]}else if(s.simpleString=0,n)l.simpleString.length=0}}else if(a[8]){if(s.simpleString===0&&s.comment===0&&s.singleLineComment===0&&s.regExp===0&&!u&&(this.templateString.length===0||this.templateString[0]>0)){if(s.doubleString===0){if(s.doubleString=1,n)l.doubleString=[e+a.index]}else if(s.doubleString=0,n)l.doubleString.length=0}}else if(a[9]){if(s.singleLineComment=0,n)l.singleLineComment.length=0}}getError(t,e,o){if(this.count.comment===0&&this.count.singleLineComment===0&&this.count.parentheses===0&&this.count.curlyBraces===0&&this.count.squareBrackets===0&&this.count.regExp===0&&this.count.regExpSquareBrackets===0&&this.count.simpleString===0&&this.count.doubleString===0)return null;if(!this.debug)this.debug=!0,this.compile(t,e,o);let s=this.debugCount;if(s.comment.length>0){let{line:n,column:l}=this.getLineAndColumn(e,s.comment[0]);return`Missing end of comment on line ${n} and column ${l}`}else if(s.regExp.length>0){let{line:n,column:l}=this.getLineAndColumn(e,s.regExp[0]);return`Missing end of regular expression on line ${n} and column ${l}`}else if(s.regExpSquareBrackets.length>0){let{line:n,column:l}=this.getLineAndColumn(e,s.regExpSquareBrackets[0]);return`Missing end of regular expression square brackets on line ${n} and column ${l}`}else if(s.simpleString.length>0){let{line:n,column:l}=this.getLineAndColumn(e,s.simpleString[0]);return`Missing end of single quote string on line ${n} and column ${l}`}else if(s.doubleString.length>0){let{line:n,column:l}=this.getLineAndColumn(e,s.doubleString[0]);return`Missing end of double quote string on line ${n} and column ${l}`}else if(s.parentheses.length>0){let{line:n,column:l}=this.getLineAndColumn(e,s.parentheses[0]);return`Missing end of parentheses on line ${n} and column ${l}`}else if(s.curlyBraces.length>0){let{line:n,column:l}=this.getLineAndColumn(e,s.curlyBraces[0]);return`Missing end of curly braces on line ${n} and column ${l}`}else if(s.squareBrackets.length>0){let{line:n,column:l}=this.getLineAndColumn(e,s.squareBrackets[0]);return`Missing end of square brackets on line ${n} and column ${l}`}else if(s.escapeTemplateString.length>0){let{line:n,column:l}=this.getLineAndColumn(e,s.escapeTemplateString[0]);return`Missing end of escaped template string on line ${n} and column ${l}`}return null}getLineAndColumn(t,e){let o=t.substring(0,e).split(`
126
+ `;for(let lt of y)for(let ct of lt.properties)if(ct.alias)c+=`${ct.alias} = $happy_dom.imports.get('${lt.url}')['${ct.name}'];
127
+ `;else c+=`${ct.name} = $happy_dom.imports.get('${lt.url}')['${ct.name}'];
128
+ `;c+="});"}if(!n.disableErrorCapturing&&n.errorCapture===me.tryAndCatch)c+="} catch(e) { $happy_dom.dispatchError(e); }";c+="})";let Rt;try{Rt=this.window[Oo](c,{filename:o||t})}catch(lt){let ct=this.getError(t,e,o),ee=ct?new this.window.SyntaxError(`Failed to parse module in '${t}'. Execution error: ${lt.message}. Compile error: ${ct}`):lt;if(lt.message=`Failed to parse module in '${o}': ${ee.message}`,n.disableErrorCapturing||n.errorCapture!==me.tryAndCatch)throw ee;else return this.window[le](ee),{imports:a,execute:async()=>{}}}if(!n.module.disableCache&&o)s[Va].set(t,{imports:a,code:c});return{imports:a,execute:Rt}}parseSyntax(t,e){let o=new RegExp(pA),s=this.count,n=this.debug,l=this.debugCount,a=null,y,u;e++;while(a=o.exec(t))if(y=t[a.index-1]||" ",u=y==="\\"&&t[a.index-2]!=="\\",a[1]){if(s.simpleString===0&&s.doubleString===0&&s.singleLineComment===0&&s.regExpSquareBrackets===0&&(this.templateString.length===0||this.templateString[0]>0)){if(s.comment===1){if(y==="*"){if(s.comment=0,n)l.comment.length=0}}else if(s.regExp===0){if(t[a.index+1]==="*"){if(s.comment=1,n)l.comment=[e+a.index]}else if(t[a.index+1]==="/"){if(s.singleLineComment=1,n)l.singleLineComment=[e+a.index]}else if(cA.test(this.getNonSpacePrecedingToken(t,a.index))){if(s.regExp=1,n)l.regExp=[e+a.index]}}else if(!u){if(s.regExp=0,n)l.regExp.length=0}}}else if(a[2]){if(s.simpleString===0&&s.doubleString===0&&s.regExp===0&&s.comment===0&&s.singleLineComment===0&&(this.templateString.length===0||this.templateString[0]>0)){if(a[2]==="("){if(s.parentheses++,n)l.parentheses.push(e+a.index)}else if(a[2]===")"&&s.parentheses>0){if(s.parentheses--,n)l.parentheses.pop()}}}else if(a[3]){if(s.simpleString===0&&s.doubleString===0&&s.regExp===0&&s.comment===0&&s.singleLineComment===0&&(this.templateString.length===0||this.templateString[0]>0)){if(a[3]==="{"){if(this.templateString.length)this.templateString[0]++;if(s.curlyBraces++,n)l.curlyBraces.push(e+a.index)}else if(a[3]==="}"){if(this.templateString.length&&this.templateString[0]>0)this.templateString[0]--;if(s.curlyBraces>0){if(s.curlyBraces--,n)l.curlyBraces.pop()}}}}else if(a[4]){if(s.simpleString===0&&s.doubleString===0&&s.comment===0&&s.singleLineComment===0&&(this.templateString.length===0||this.templateString[0]>0)){if(s.regExp===1){if(!u){if(a[4]==="["&&s.regExpSquareBrackets===0){if(s.regExpSquareBrackets=1,n)l.regExpSquareBrackets=[e+a.index]}else if(a[4]==="]"&&s.regExpSquareBrackets===1){if(s.regExpSquareBrackets=0,n)l.regExpSquareBrackets.length=0}}}else if(a[4]==="["){if(s.squareBrackets++,n)l.squareBrackets.push(e+a.index)}else if(a[4]==="]"&&s.squareBrackets>0){if(s.squareBrackets--,n)l.squareBrackets.pop()}}}else if(a[5]){if(s.simpleString===0&&s.doubleString===0&&s.comment===0&&s.singleLineComment===0&&s.regExp===0&&!u){if(this.templateString[0]===0){if(this.templateString[0]=1,s.curlyBraces++,n)l.curlyBraces.push(e+a.index)}}}else if(a[6]){if(s.simpleString===0&&s.doubleString===0&&s.comment===0&&s.singleLineComment===0&&s.regExp===0&&!u)if(this.templateString?.[0]===0)this.templateString.shift();else this.templateString.unshift(0)}else if(a[7]){if(s.doubleString===0&&s.comment===0&&s.singleLineComment===0&&s.regExp===0&&!u&&(this.templateString.length===0||this.templateString[0]>0)){if(s.simpleString===0){if(s.simpleString=1,n)l.simpleString=[e+a.index]}else if(s.simpleString=0,n)l.simpleString.length=0}}else if(a[8]){if(s.simpleString===0&&s.comment===0&&s.singleLineComment===0&&s.regExp===0&&!u&&(this.templateString.length===0||this.templateString[0]>0)){if(s.doubleString===0){if(s.doubleString=1,n)l.doubleString=[e+a.index]}else if(s.doubleString=0,n)l.doubleString.length=0}}else if(a[9]){if(s.singleLineComment=0,n)l.singleLineComment.length=0}}getError(t,e,o){if(this.count.comment===0&&this.count.singleLineComment===0&&this.count.parentheses===0&&this.count.curlyBraces===0&&this.count.squareBrackets===0&&this.count.regExp===0&&this.count.regExpSquareBrackets===0&&this.count.simpleString===0&&this.count.doubleString===0)return null;if(!this.debug)this.debug=!0,this.compile(t,e,o);let s=this.debugCount;if(s.comment.length>0){let{line:n,column:l}=this.getLineAndColumn(e,s.comment[0]);return`Missing end of comment on line ${n} and column ${l}`}else if(s.regExp.length>0){let{line:n,column:l}=this.getLineAndColumn(e,s.regExp[0]);return`Missing end of regular expression on line ${n} and column ${l}`}else if(s.regExpSquareBrackets.length>0){let{line:n,column:l}=this.getLineAndColumn(e,s.regExpSquareBrackets[0]);return`Missing end of regular expression square brackets on line ${n} and column ${l}`}else if(s.simpleString.length>0){let{line:n,column:l}=this.getLineAndColumn(e,s.simpleString[0]);return`Missing end of single quote string on line ${n} and column ${l}`}else if(s.doubleString.length>0){let{line:n,column:l}=this.getLineAndColumn(e,s.doubleString[0]);return`Missing end of double quote string on line ${n} and column ${l}`}else if(s.parentheses.length>0){let{line:n,column:l}=this.getLineAndColumn(e,s.parentheses[0]);return`Missing end of parentheses on line ${n} and column ${l}`}else if(s.curlyBraces.length>0){let{line:n,column:l}=this.getLineAndColumn(e,s.curlyBraces[0]);return`Missing end of curly braces on line ${n} and column ${l}`}else if(s.squareBrackets.length>0){let{line:n,column:l}=this.getLineAndColumn(e,s.squareBrackets[0]);return`Missing end of square brackets on line ${n} and column ${l}`}else if(s.escapeTemplateString.length>0){let{line:n,column:l}=this.getLineAndColumn(e,s.escapeTemplateString[0]);return`Missing end of escaped template string on line ${n} and column ${l}`}return null}getLineAndColumn(t,e){let o=t.substring(0,e).split(`
129
129
  `),s=o.length,n=o[o.length-1].length;return{line:s,column:n}}getNonSpacePrecedingToken(t,e){e--;let o=t[e];while(o===" "||o===`
130
- `||o==="\t")e--,o=t[e];return o||";"}removeMultilineComments(t){let e=new RegExp(dA),o,s=0,n=0,l="";while(o=e.exec(t)){if(s===0)l+=t.substring(n,o.index);if(o[0]==="/*")s++;else if(o[0]==="*/"&&s>0)s--;n=e.lastIndex}return l+=t.substring(n),l}reset(){this.count={comment:0,singleLineComment:0,parentheses:0,curlyBraces:0,squareBrackets:0,regExp:0,regExpSquareBrackets:0,escapeTemplateString:0,simpleString:0,doubleString:0},this.debugCount={comment:[],singleLineComment:[],parentheses:[],curlyBraces:[],squareBrackets:[],regExp:[],regExpSquareBrackets:[],escapeTemplateString:[],simpleString:[],doubleString:[]},this.templateString=[]}}var fA={imports:[],execute:async()=>{}};class pn{url;[m];#t;#e;#r=!1;#o=null;#i=null;#s=null;#l;constructor(t){this[m]=t.window,this.url=t.url,this.#t=t.source,this.#e=t.sourceURL||null,this.#l=t.factory}async evaluate(t=[],e=null){if(this.#s){if(t.includes(this.url.href)){if(e)this.#s.push(e);return this.#i}return new Promise((f)=>{this.#s.push(f)})}if(this.#i)return this.#i;let o=this.#m(),s=[],n=this[m];if(!new it(n).getBrowserFrame())return{};let a={};this.#i=a,this.#s=[];for(let f of o.imports)s.push(this.#l.getModule(f.url,{with:{type:f.type}}));let y=new Map,u=null,c=()=>{if(u)u()};if(s.length){let f=await Promise.all(s),E=[...t,this.url.href];for(let R of f)if(R instanceof pn){let H=await R.evaluate(E,c);y.set(R.url.href,H)}else{let H=await R.evaluate();y.set(R.url.href,H)}}let d=this.url.href;o.execute({dispatchError:n[le].bind(n),dynamicImport:this.#l.importModule.bind(this.#l),importMeta:{url:d,resolve:(f)=>new SA(f,d).href},imports:y,exports:a,addCircularImportResolver:(f)=>u=f});let g=this.#s;this.#s=null;for(let f of g)f(a);return a}async preload(){if(this.#r)return;this.#r=!0;let t=this.#m(),e=[],o=this[m];if(!new it(o).getBrowserFrame())return;for(let a of t.imports)e.push(this.#l.getModule(a.url,{with:{type:a.type}}));let n=await Promise.all(e),l=[];for(let a of n)l.push(a.preload());await Promise.all(l)}#m(){if(this.#o)return this.#o;this.#o=fA;let t=new xc(this[m]);return this.#o=t.compile(this.url.href,this.#t,this.#e),this.#o}}class Qo{window;parentURL;constructor(t,e){this.window=t,this.parentURL=e}async getModule(t,e){let o=this.window,s=this.parentURL,n=yl.getURL(o,s,t),l=n.href,a=e?.with?.type||"esm";if(a!=="esm"&&a!=="css"&&a!=="json")throw new o.TypeError(`Failed to import module "${n}" from "${s}": Unknown type "${a}"`);let y=o[ms][a].get(l);if(y){if(y instanceof nu)return await new Promise((H,pt)=>{y.addResolveListener(H,pt)}),o[ms][a].get(l);return y}if(!new it(o).getBrowserFrame())throw new o.TypeError(`Failed to import module "${n}" from "${s}": Window is closed and is no longer attached to a frame`);let c=new nu({window:o,url:n}),d=o[Eo],g=d.startTask();o[ms][a].set(l,c);let f=new ml(o),E;try{E=await f.fetch(n,"module")}catch(H){throw d.endTask(g),c.resolve(H),H}d.endTask(g);let R;switch(a){case"json":R=new mm({window:o,url:n,source:E.content});break;case"css":R=new am({window:o,url:n,source:E.content});break;case"esm":R=new pn({window:o,url:n,source:E.content,sourceURL:E.virtualServerFile||l,factory:new Qo(o,n)});break}return o[ms][a].set(l,R),c.resolve(),R}async importModule(t,e){let o=new it(this.window).getBrowserFrame();if(!o)return{};let s=o[Pt],n=s?.startTask(),a=await(await this.getModule(t,e)).evaluate();return s.endTask(n),a}}class vc{integrityMetadata=null;response=null;error=null;#t=null;onResponseAvailable(){return new Promise((t,e)=>{this.#t={resolve:t,reject:e}})}responseAvailable(t,e){if(this.response=e,this.error=t,!this.#t)return;if(t)this.#t.reject(t);else if(!e)this.#t.reject(Error("Response is null"));else this.#t.resolve(e)}}class au extends B{[Be]=null;[Xs]=!1;[oo]=null;#t=null;get onerror(){return S.getEventListener(this,"onerror")}set onerror(t){this[p].set("onerror",t)}get onload(){return S.getEventListener(this,"onload")}set onload(t){this[p].set("onload",t)}get sheet(){return this[Be]}get relList(){if(!this[oo])this[oo]=new Or(h,this,"rel",["stylesheet","modulepreload","preload"]);return this[oo]}set relList(t){this.setAttribute("rel",t)}get as(){return this.getAttribute("as")||""}set as(t){this.setAttribute("as",t)}get crossOrigin(){return this.getAttribute("crossorigin")||""}set crossOrigin(t){this.setAttribute("crossorigin",t)}get href(){if(!this.hasAttribute("href"))return"";try{return new URL(this.getAttribute("href"),this[x].location.href).href}catch(t){return this.getAttribute("href")}}set href(t){this.setAttribute("href",t)}get hreflang(){return this.getAttribute("hreflang")||""}set hreflang(t){this.setAttribute("hreflang",t)}get media(){return this.getAttribute("media")||""}set media(t){this.setAttribute("media",t)}get referrerPolicy(){return this.getAttribute("referrerPolicy")||""}set referrerPolicy(t){this.setAttribute("referrerPolicy",t)}get rel(){return this.getAttribute("rel")||""}set rel(t){this.setAttribute("rel",t)}get type(){return this.getAttribute("type")||""}set type(t){this.setAttribute("type",t)}[sr](){super[sr]();let t=this.getAttribute("rel"),e=this.getAttribute("href");if(t&&e)switch(t){case"stylesheet":this.#o(e);break;case"modulepreload":this.#e(e);break;case"preload":this.#r(e);break}}[Re](t,e){if(super[Re](t,e),t[rt]==="rel"||t[rt]==="href"){let o=this.getAttribute("rel"),s=this.getAttribute("href");if(o&&s)switch(o){case"stylesheet":this.#o(s);break;case"modulepreload":this.#e(s);break;case"preload":this.#r(s);break}}}async#e(t){let e=this[m],o=new it(e).getBrowserFrame(),s=new it(e).getSettings();if(!o||!s||!this[tt]||s.disableJavaScriptFileLoading||!s.enableJavaScriptEvaluation)return;let n=new Qo(e,e.location);if(s.disableErrorCapturing||s.errorCapture!==me.tryAndCatch)await(await n.getModule(t)).preload();else try{await(await n.getModule(t)).preload()}catch(l){o.page.console.error(l),e[le](l);return}}async#r(t){let e=this[m],o=new it(e).getBrowserFrame(),s=this.as;if(!o||!this[tt]||s!=="script"&&s!=="style"&&s!=="fetch")return;let n=o.page.context.browser.settings;if(s==="script"&&(n.disableJavaScriptFileLoading||!n.enableJavaScriptEvaluation))return;if(s==="style"&&n.disableCSSFileLoading)return;let l=new URL(t,e.location.href).href,a=on.getKey({url:l,destination:s,mode:"cors",credentialsMode:this.crossOrigin==="use-credentials"?"include":"same-origin"});if(e.document[Rr].has(a))return;let y=new vc;e.document[Rr].set(a,y);let u=new Br({browserFrame:o,window:e,url:l,disableSameOriginPolicy:s==="script"||s==="style",disablePreload:!0,init:{credentials:this.crossOrigin==="use-credentials"?"include":"same-origin"}});try{let c=await u.send();if(!c[Nt])await c.buffer();y.responseAvailable(null,c)}catch(c){y.responseAvailable(c,null),e.document[Rr].delete(a),o.page.console.error(`Failed to preload resource "${l}": ${c.message}`)}}async#o(t){let e=this[m],o=new it(e).getBrowserFrame();if(!o||t===null)return;let s=o.page.context.browser.settings;if(this[Xs]||!this[tt])return;let n;try{n=new URL(t,e.location.href).href}catch(d){return}if(this.#t===n)return;if(s&&s.disableCSSFileLoading){if(s.handleDisabledFileLoadingAsSuccess)this.dispatchEvent(new N("load"));else{let d=new e.DOMException(`Failed to load external stylesheet "${n}". CSS file loading is disabled.`,w.notSupportedError);o.page.console.error(d),this.dispatchEvent(new N("error"))}return}let l=new ml(e),a=e[Eo];this.#t=n;let y=a.startTask(),u=null,c=null;try{u=await l.fetch(n,"style",{credentials:this.crossOrigin==="use-credentials"?"include":"same-origin"})}catch(d){c=d}if(a.endTask(y),c)o.page.console.error(c),this.dispatchEvent(new N("error"));else{let d=new this[x][m].CSSStyleSheet;d.replaceSync(u.content),this[Be]=d;let g=this[x];if(g){for(let f of g[Xo])f.result=null;g[Xo]=[]}this.dispatchEvent(new N("load"))}}}class mu extends B{[Im]=null;get areas(){if(!this[Im])this[Im]=oe.getElementsByTagName(this,"area");return this[Im]}get name(){return this.getAttribute("name")||""}set name(t){this.setAttribute("name",t)}}class pl extends Array{constructor(t){super();if(t!==1&&t!==h)throw TypeError("Illegal constructor")}getCueById(t){for(let e of this)if(e.id===t)return e;return null}}class yu extends B{}class pu extends B{get content(){return this.getAttribute("content")||""}set content(t){this.setAttribute("content",t)}get httpEquiv(){return this.getAttribute("http-equiv")||""}set httpEquiv(t){this.setAttribute("http-equiv",t)}get name(){return this.getAttribute("name")||""}set name(t){this.setAttribute("name",t)}get scheme(){return this.getAttribute("scheme")||""}set scheme(t){this.setAttribute("scheme",t)}}class uu extends B{get high(){if(!this.hasAttribute("high"))return 1;let t=parseFloat(this.getAttribute("high")||"");if(isNaN(t)||t>1)return 1;return t<0?0:t}set high(t){if(t=typeof t!=="number"?Number(t):t,isNaN(t))throw new this[m].TypeError("Failed to set the 'high' property on 'HTMLMeterElement': The provided double value is non-finite.");this.setAttribute("high",String(t))}get low(){if(!this.hasAttribute("low"))return 0;let t=parseFloat(this.getAttribute("low")||"");if(isNaN(t)||t<0)return 0;return t>1?1:t}set low(t){if(t=typeof t!=="number"?Number(t):t,isNaN(t))throw new this[m].TypeError("Failed to set the 'low' property on 'HTMLMeterElement': The provided double value is non-finite.");this.setAttribute("low",String(t))}get max(){if(!this.hasAttribute("max"))return 1;let t=parseFloat(this.getAttribute("max")||"");if(isNaN(t)||t>1)return 1;return t<0?0:t}set max(t){if(t=typeof t!=="number"?Number(t):t,isNaN(t))throw new this[m].TypeError("Failed to set the 'max' property on 'HTMLMeterElement': The provided double value is non-finite.");this.setAttribute("max",String(t))}get min(){if(!this.hasAttribute("min"))return 0;let t=parseFloat(this.getAttribute("min")||"");if(isNaN(t)||t<0)return 0;return t>1?1:t}set min(t){if(t=typeof t!=="number"?Number(t):t,isNaN(t))throw new this[m].TypeError("Failed to set the 'min' property on 'HTMLMeterElement': The provided double value is non-finite.");this.setAttribute("min",String(t))}get optimum(){if(!this.hasAttribute("optimum"))return 0.5;let t=parseFloat(this.getAttribute("optimum")||"");if(isNaN(t))return 0.5;if(t<0)return 0;return t>1?1:t}set optimum(t){if(t=typeof t!=="number"?Number(t):t,isNaN(t))throw new this[m].TypeError("Failed to set the 'optimum' property on 'HTMLMeterElement': The provided double value is non-finite.");this.setAttribute("optimum",String(t))}get value(){if(!this.hasAttribute("value"))return 0;let t=parseFloat(this.getAttribute("value")||"");if(isNaN(t)||t<0)return 0;return t>1?1:t}set value(t){if(t=typeof t!=="number"?Number(t):t,isNaN(t))throw new this[m].TypeError("Failed to set the 'value' property on 'HTMLMeterElement': The provided double value is non-finite.");this.setAttribute("value",String(t))}get labels(){return $r.getAssociatedLabelElements(this)}}class hu extends B{get cite(){if(!this.hasAttribute("cite"))return"";try{return new URL(this.getAttribute("cite"),this[x].location.href).href}catch(t){return this.getAttribute("cite")}}set cite(t){this.setAttribute("cite",t)}get dateTime(){return this.getAttribute("datetime")||""}set dateTime(t){this.setAttribute("datetime",t)}}class cu extends B{get reversed(){return this.getAttribute("reversed")!==null}set reversed(t){if(!t)this.removeAttribute("reversed");else this.setAttribute("reversed","")}get start(){if(!this.hasAttribute("start"))return 1;let t=Number(this.getAttribute("start")||"");if(isNaN(t))return 1;return t}set start(t){if(typeof t!=="number")t=Number(t);if(isNaN(t))t=0;this.setAttribute("start",String(t))}get type(){return this.getAttribute("type")||""}set type(t){this.setAttribute("type",t)}}class du extends B{[Ut]=null;[Ce]="";[Ke]=new qr(this);get contentDocument(){return null}get contentWindow(){return null}get data(){if(!this.hasAttribute("data"))return"";try{return new URL(this.getAttribute("data"),this[x].location.href).href}catch(t){return this.getAttribute("data")}}set data(t){this.setAttribute("data",t)}get form(){if(this[Ut])return this[Ut];let t=this.getAttribute("form");if(!t||!this[tt])return null;return this[x].getElementById(t)}get height(){return this.getAttribute("height")||""}set height(t){this.setAttribute("height",t)}get width(){return this.getAttribute("width")||""}set width(t){this.setAttribute("width",t)}get name(){return this.getAttribute("name")||""}set name(t){this.setAttribute("name",t)}get type(){return this.getAttribute("type")||""}set type(t){this.setAttribute("type",t)}get validationMessage(){return this[Ce]}get validity(){return this[Ke]}get willValidate(){return!1}get tabIndex(){let t=this.getAttribute("tabindex");if(t!==null){let e=Number(t);return isNaN(e)?0:e}return 0}set tabIndex(t){super.tabIndex=t}checkValidity(){return!0}reportValidity(){return this.checkValidity()}setCustomValidity(t){this[Ce]=String(t)}}class bu extends B{get label(){return this.getAttribute("label")||""}set label(t){if(!t)this.removeAttribute("label");else this.setAttribute("label",t)}get disabled(){return this.getAttribute("disabled")!==null}set disabled(t){if(!t)this.removeAttribute("disabled");else this.setAttribute("disabled","")}}class un extends B{[Ar]=!1;[En]=!1;[Ie]=null;get text(){return this.innerText}set text(t){this.innerText=t}get index(){if(!this[Ie])return 0;return yt.querySelectorAll(this[Ie],"option")[Q].indexOf(this)}get form(){return this[Ie]?.form||null}get selected(){return this[Ar]}set selected(t){let e=this[Ie];if(this[En]=!0,this[Ar]=Boolean(t),e)e[Cn](this[Ar]?this:null)}get disabled(){return this.getAttribute("disabled")!==null}set disabled(t){if(!t)this.removeAttribute("disabled");else this.setAttribute("disabled","")}get value(){return this.getAttribute("value")??this.textContent}set value(t){this.setAttribute("value",t)}[Re](t,e){if(super[Re](t,e),!this[En]&&t[rt]==="selected"&&e?.[q]!==t[q]){let o=this[Ie];if(this[Ar]=!0,o)o[Cn](this)}}[br](t){if(super[br](t),t&&!this[En]&&t[rt]==="selected"){let e=this[Ie];if(this[Ar]=!1,e)e[Cn]()}}[Zr](){if(super[Zr](),this[Ie])this[Ie][Cn]()}[Bi](){if(this[Ie])this[Ie][Cn]();super[Bi]()}}class gu extends B{[Ut]=null;[Ce]="";[Ke]=new qr(this);[mo]="";get defaultValue(){return this[mo]}set defaultValue(t){this[mo]=t}get form(){if(this[Ut])return this[Ut];let t=this.getAttribute("form");if(!t||!this[tt])return null;return this[x].getElementById(t)}get htmlFor(){return this.getAttribute("for")||""}set htmlFor(t){this.setAttribute("for",t)}get labels(){return $r.getAssociatedLabelElements(this)}get name(){return this.getAttribute("name")||""}set name(t){this.setAttribute("name",t)}get value(){return this.textContent||""}set value(t){this.textContent=t}get type(){return"output"}get validationMessage(){return this[Ce]}get validity(){return this[Ke]}get willValidate(){return!1}checkValidity(){return!0}reportValidity(){return this.checkValidity()}setCustomValidity(t){this[Ce]=String(t)}}class Su extends B{}class fu extends B{}class Pu extends B{}class Au extends B{}class wu extends B{get max(){if(!this.hasAttribute("max"))return 1;let t=parseFloat(this.getAttribute("max")||"");if(isNaN(t)||t<0)return 1;return t}set max(t){if(t=typeof t!=="number"?Number(t):t,isNaN(t))throw new this[m].TypeError("Failed to set the 'max' property on 'HTMLProgressElement': The provided double value is non-finite.");this.setAttribute("max",t<0?"1":String(t))}get value(){if(!this.hasAttribute("value"))return 0;let t=parseFloat(this.getAttribute("value")||"");if(isNaN(t)||t<0)return 0;return t}set value(t){if(t=typeof t!=="number"?Number(t):t,isNaN(t))throw new this[m].TypeError("Failed to set the 'value' property on 'HTMLProgressElement': The provided double value is non-finite.");this.setAttribute("value",t<0?"0":String(t))}get position(){if(!this.hasAttribute("value"))return-1;return this.value/this.max}get labels(){return $r.getAssociatedLabelElements(this)}}class Eu extends B{get cite(){if(!this.hasAttribute("cite"))return"";try{return new URL(this.getAttribute("cite"),this[x].location.href).href}catch(t){return this.getAttribute("cite")}}set cite(t){this.setAttribute("cite",t)}}var PA=/import\s*\(([^)]+)\)/gm,AA=/(\/)|(\(|\))|({|})|(\[|\])|(\${)|(`)|(')|(")|(\n)/gm,wA=/['"`(){}\s;=><\[\]+-,:&]/,EA=/['"`({};=><\[+-,:&]/;class xu{window;count={comment:0,singleLineComment:0,parentheses:0,curlyBraces:0,squareBrackets:0,regExp:0,regExpSquareBrackets:0,escapeTemplateString:0,simpleString:0,doubleString:0};templateString=[];constructor(t){this.window=t}compile(t,e){let o=new it(this.window).getSettings();if(!o)return{execute:()=>{}};let s=new RegExp(PA),n=this.count,l="(function anonymous($happy_dom) {",a=null,y,u,c=0,d=-1;if(!o.disableErrorCapturing&&o.errorCapture===me.tryAndCatch)l+="try {";while(a=s.exec(e)){if(y=e[a.index-1]||" ",u=e.substring(c,a.index),this.parseSyntax(u,c),d===-1)l+=u;if(a[1]&&n.simpleString===0&&n.doubleString===0&&n.comment===0&&n.singleLineComment===0&&n.regExp===0&&(this.templateString.length===0||this.templateString[0]>0)&&wA.test(y))l+=`$happy_dom.dynamicImport(${a[1]})`;else l+=a[0],this.parseSyntax(a[0],a.index);c=s.lastIndex}if(c===0)l+=e;else l+=e.substring(c);if(!o.disableErrorCapturing&&o.errorCapture===me.tryAndCatch)l+="} catch (error) { $happy_dom.dispatchError(error); }";l+="})";try{return{execute:this.window[Uo](l,{filename:t})}}catch(g){if(g.message=`Failed to parse JavaScript in '${t}': ${g.message}`,o.disableErrorCapturing||o.errorCapture!==me.tryAndCatch)throw g;else return this.window[le](g),{execute:()=>{}}}}parseSyntax(t,e){let o=new RegExp(AA),s=this.count,n=null,l,a;e++;while(n=o.exec(t))if(l=t[n.index-1]||" ",a=l==="\\"&&t[n.index-2]!=="\\",n[1]){if(s.simpleString===0&&s.doubleString===0&&s.singleLineComment===0&&s.regExpSquareBrackets===0&&(this.templateString.length===0||this.templateString[0]>0)){if(s.comment===1){if(l==="*")s.comment=0}else if(s.regExp===0){if(t[n.index+1]==="*")s.comment=1;else if(t[n.index+1]==="/")s.singleLineComment=1;else if(EA.test(this.getNonSpacePrecedingToken(t,n.index)))s.regExp=1}else if(!a)s.regExp=0}}else if(n[2]){if(s.simpleString===0&&s.doubleString===0&&s.regExp===0&&s.comment===0&&s.singleLineComment===0&&(this.templateString.length===0||this.templateString[0]>0)){if(n[2]==="(")s.parentheses++;else if(n[2]===")"&&s.parentheses>0)s.parentheses--}}else if(n[3]){if(s.simpleString===0&&s.doubleString===0&&s.regExp===0&&s.comment===0&&s.singleLineComment===0&&(this.templateString.length===0||this.templateString[0]>0)){if(n[3]==="{"){if(this.templateString.length)this.templateString[0]++;s.curlyBraces++}else if(n[3]==="}"){if(this.templateString.length&&this.templateString[0]>0)this.templateString[0]--;if(s.curlyBraces>0)s.curlyBraces--}}}else if(n[4]){if(s.simpleString===0&&s.doubleString===0&&s.comment===0&&s.singleLineComment===0&&(this.templateString.length===0||this.templateString[0]>0)){if(s.regExp===1){if(!a){if(n[4]==="["&&s.regExpSquareBrackets===0)s.regExpSquareBrackets=1;else if(n[4]==="]"&&s.regExpSquareBrackets===1)s.regExpSquareBrackets=0}}else if(n[4]==="[")s.squareBrackets++;else if(n[4]==="]"&&s.squareBrackets>0)s.squareBrackets--}}else if(n[5]){if(s.simpleString===0&&s.doubleString===0&&s.comment===0&&s.singleLineComment===0&&s.regExp===0&&!a){if(this.templateString[0]===0)this.templateString[0]=1,s.curlyBraces++}}else if(n[6]){if(s.simpleString===0&&s.doubleString===0&&s.comment===0&&s.singleLineComment===0&&s.regExp===0&&!a)if(this.templateString?.[0]===0)this.templateString.shift();else this.templateString.unshift(0)}else if(n[7]){if(s.doubleString===0&&s.comment===0&&s.singleLineComment===0&&s.regExp===0&&!a&&(this.templateString.length===0||this.templateString[0]>0))if(s.simpleString===0)s.simpleString=1;else s.simpleString=0}else if(n[8]){if(s.simpleString===0&&s.comment===0&&s.singleLineComment===0&&s.regExp===0&&!a&&(this.templateString.length===0||this.templateString[0]>0))if(s.doubleString===0)s.doubleString=1;else s.doubleString=0}else if(n[9])s.singleLineComment=0}getNonSpacePrecedingToken(t,e){e--;let o=t[e];while(o===" "||o===`
131
- `||o==="\t")e--,o=t[e];return o||";"}}class vu extends B{[Xs]=!1;[ep]=null;#t=null;get onerror(){return S.getEventListener(this,"onerror")}set onerror(t){this[p].set("onerror",t)}get onload(){return S.getEventListener(this,"onload")}set onload(t){this[p].set("onload",t)}get type(){return this.getAttribute("type")||""}set type(t){this.setAttribute("type",t)}get blocking(){if(!this[ep])this[ep]=new Or(h,this,"blocking");return this[ep]}set blocking(t){this.setAttribute("blocking",t)}get crossOrigin(){return this.getAttribute("crossorigin")||""}set crossOrigin(t){this.setAttribute("crossorigin",t)}get fetchPriority(){let t=this.getAttribute("fetchpriority");switch(t){case"high":case"low":case"normal":return t;default:return"auto"}}set fetchPriority(t){this.setAttribute("fetchpriority",t)}get noModule(){return this.getAttribute("nomodule")!==null}set noModule(t){if(t)this.setAttribute("nomodule","");else this.removeAttribute("nomodule")}get integrity(){return this.getAttribute("integrity")||""}set integrity(t){this.setAttribute("integrity",t)}get referrerPolicy(){let t=this.getAttribute("referrerpolicy");switch(t){case"no-referrer":case"no-referrer-when-downgrade":case"same-origin":case"origin":case"strict-origin":case"origin-when-cross-origin":case"strict-origin-when-cross-origin":case"unsafe-url":return t;default:return""}}set referrerPolicy(t){this.setAttribute("referrerpolicy",t)}get src(){if(!this.hasAttribute("src"))return"";try{return new URL(this.getAttribute("src"),this[x].location.href).href}catch(t){return this.getAttribute("src")}}set src(t){this.setAttribute("src",t)}get charset(){return this.getAttribute("charset")||""}set charset(t){this.setAttribute("charset",t)}get lang(){return this.getAttribute("lang")||""}set lang(t){this.setAttribute("lang",t)}get async(){return this.getAttribute("async")!==null}set async(t){if(!t)this.removeAttribute("async");else this.setAttribute("async","")}get defer(){return this.getAttribute("defer")!==null}set defer(t){if(!t)this.removeAttribute("defer");else this.setAttribute("defer","")}get text(){return this.textContent}set text(t){this.textContent=t}[ct](t=!1){return super[ct](t)}[sr](){let t=new it(this[m]).getSettings();if(super[sr](),this[Xs])return;let e=this.getAttribute("src");if(e!==null)if(this.getAttribute("type")==="module")this.#i(e);else this.#s(e);else if(t&&t.enableJavaScriptEvaluation){let o=this.textContent,s=this.getAttribute("type");if(o){if(s==="module")this.#e(o);else if(s==="importmap")this.#r(o);else if(s===null||s==="application/x-ecmascript"||s==="application/x-javascript"||s.startsWith("text/javascript"))this.#o(o)}}}[Re](t,e){if(super[Re](t,e),t[rt]==="src"&&t[q]!==null&&this[tt])if(this.getAttribute("type")==="module")this.#i(t[q]);else this.#s(t[q])}#e(t){let e=this[x].location,o=this[m],s=new it(o).getSettings();if(!new it(o).getBrowserFrame()||!s||!s.enableJavaScriptEvaluation)return;this[x][Oo]=this;let l=new Qo(o,e),a=new pn({window:o,url:e,source:t,factory:l});if(s.disableErrorCapturing||s.errorCapture!==me.tryAndCatch)a.evaluate();else a.evaluate().catch((y)=>{o[le](y)});this[x][Oo]=null,this.dispatchEvent(new N("load"))}async#r(t){let e=this[m],o=new it(e).getSettings();if(!new it(e).getBrowserFrame()||!o||e[Bl]||!o.enableJavaScriptEvaluation)return;let n;if(o.disableErrorCapturing||o.errorCapture!==me.tryAndCatch)n=JSON.parse(t);else try{n=JSON.parse(t)}catch(l){e[le](l);return}if(n.imports||n.scopes){let l={imports:[],scopes:[]};if(n.imports)for(let a of Object.keys(n.imports))l.imports.push({from:a,to:n.imports[a]});if(n.scopes)for(let a of Object.keys(n.scopes)){let y={scope:a,rules:[]};for(let u of Object.keys(n.scopes[a])){let c=n.scopes[a][u];y.rules.push({from:u,to:c})}l.scopes.push(y)}e[Bl]=l}}#o(t){let e=this[m];if(!new it(e).getSettings())return;this[x][Oo]=this;let n=new xu(e).compile(e.location.href,t),l=new Qo(e,e.location);n.execute({dynamicImport:l.importModule.bind(l),dispatchError:e[le].bind(e)}),this[x][Oo]=null}async#i(t){let e=this[m],o=new it(e).getBrowserFrame(),s=new it(e).getSettings();if(!o||!s)return;if(!t||!this[tt]||this.getAttribute("type")!=="module")return;if(s&&(s.disableJavaScriptFileLoading||!s.enableJavaScriptEvaluation)){if(s.handleDisabledFileLoadingAsSuccess)this.dispatchEvent(new N("load"));else{let l=new e.DOMException(`Failed to load module "${t}". JavaScript file loading is disabled.`,w.notSupportedError);o.page.console.error(l),this.dispatchEvent(new N("error"))}return}let n=new Qo(e,e.location);if(s.disableErrorCapturing||s.errorCapture!==me.tryAndCatch)await(await n.getModule(t)).evaluate();else try{await(await n.getModule(t)).evaluate()}catch(l){o.page.console.error(l),this.dispatchEvent(new N("error"));return}this.dispatchEvent(new N("load"))}async#s(t){let e=this[m],o=new it(e).getBrowserFrame();if(!o)return;let s=o.page.context.browser.settings,n=this.getAttribute("type");if(!t||!this[tt]||n!==null&&n!=="application/x-ecmascript"&&n!=="application/x-javascript"&&!n.startsWith("text/javascript"))return;let l;try{l=new URL(t,e.location.href)}catch(E){return}let a=l.toString();if(this.#t===a)return;if(s&&(s.disableJavaScriptFileLoading||!s.enableJavaScriptEvaluation)){if(s.handleDisabledFileLoadingAsSuccess)this.dispatchEvent(new N("load"));else{let E=new e.DOMException(`Failed to load script "${l}". JavaScript file loading is disabled.`,w.notSupportedError);o.page.console.error(E),this.dispatchEvent(new N("error"))}return}this.#t=a;let y=new ml(e),u=this.getAttribute("async")!==null||this.getAttribute("defer")!==null,c=null;if(u){let E=e[Eo],R=E.startTask();try{c=await y.fetch(a,"script",{credentials:this.crossOrigin==="use-credentials"?"include":"same-origin",referrerPolicy:this.referrerPolicy})}catch(H){o.page.console.error(H),this.dispatchEvent(new N("error")),E.endTask(R);return}E.endTask(R)}else try{c=y.fetchSync(a,"script",{credentials:this.crossOrigin==="use-credentials"?"include":"same-origin",referrerPolicy:this.referrerPolicy})}catch(E){o.page.console.error(E),this.dispatchEvent(new N("error"));return}this[x][Oo]=this;let g=new xu(e).compile(c.virtualServerFile||a,c.content),f=new Qo(e,e.location);g.execute({dynamicImport:f.importModule.bind(f),dispatchError:e[le].bind(e)}),this[x][Oo]=null,this.dispatchEvent(new N("load"))}static supports(t){switch(t){case"classic":case"module":case"importmap":return!0;case"speculationrules":default:return!1}}}class ym extends de{constructor(t,e){super(t,()=>yt.querySelectorAll(e,"option")[Q]);this[xt]=e}get selectedIndex(){return this[xt].selectedIndex}set selectedIndex(t){this[xt].selectedIndex=t}add(t,e){this[xt].add(t,e)}remove(t){this[xt].remove(t)}}class pm extends B{[Ce]="";[Ke]=new qr(this);[Ui]=null;[Rn]=null;[Ho]=-1;[Vt];constructor(){super();let t=new fe(this,[pm,B,Gr,st,vt]),e=new Proxy(this,{get:(o,s)=>{if(s in o||typeof s==="symbol")return t.bind(s),o[s];let n=Number(s);if(!isNaN(n))return yt.querySelectorAll(o,"option")[Q][n]},set(o,s,n){if(t.bind(s),typeof s==="symbol")return o[s]=n,!0;let l=Number(s);if(isNaN(l))return o[s]=n,!0;if(!n||!(n instanceof un))throw new o[m].Error(`TypeError: Failed to set an indexed property [${l}] on 'HTMLSelectElement': parameter 2 is not of type 'HTMLOptionElement'.`);let a=yt.querySelectorAll(o,"option")[Q],y=o[_];while(y.length)o[hr](y[0]);for(let u=0;u<=l;u++)if(u===l)o[Et](n);else if(a[u])o[Et](a[u]);else o[Et](o[x].createElement("option"));return!0},deleteProperty(o,s){if(typeof s==="symbol")return delete o[s],!0;let n=Number(s);if(isNaN(n))delete o[s];return!0},ownKeys(o){return Object.keys(yt.querySelectorAll(o,"option")[Q])},has(o,s){if(s in o)return!0;if(typeof s==="symbol")return!1;let n=Number(s);if(!isNaN(n))return!!yt.querySelectorAll(o,"option")[Q][n];return!1},defineProperty(o,s,n){t.preventBinding(s);let l=Number(s);if(isNaN(l))return Object.defineProperty(o,s,n),!0;if(!n.value||!(n.value instanceof un))throw new o[m].Error(`TypeError: Failed to set an indexed property [${l}] on 'HTMLSelectElement': parameter 2 is not of type 'HTMLOptionElement'.`);let a=yt.querySelectorAll(o,"option")[Q],y=o[_];while(y.length)o[hr](y[0]);for(let u=0;u<=l;u++)if(u===l)o[Et](n.value);else if(a[u])o[Et](a[u]);else o[Et](o[x].createElement("option"));return!0},getOwnPropertyDescriptor(o,s){if(s in o)return Object.getOwnPropertyDescriptor(o,s);let n=Number(s);if(isNaN(n))return;let l=yt.querySelectorAll(o,"option")[Q];if(!l[n])return;return{value:l[n],writable:!0,enumerable:!0,configurable:!0}}});return this[Vt]=e,this[Ie]=e,e}get onchange(){return S.getEventListener(this,"onchange")}set onchange(t){this[p].set("onchange",t)}get oninput(){return S.getEventListener(this,"oninput")}set oninput(t){this[p].set("oninput",t)}get length(){return yt.querySelectorAll(this,"option")[Q].length}get options(){if(!this[Ui])this[Ui]=new ym(h,this);return this[Ui]}get validationMessage(){return this[Ce]}get validity(){return this[Ke]}get name(){return this.getAttribute("name")||""}set name(t){this.setAttribute("name",t)}get disabled(){return this.getAttribute("disabled")!==null}set disabled(t){if(!t)this.removeAttribute("disabled");else this.setAttribute("disabled","")}get multiple(){return this.getAttribute("multiple")!==null}set multiple(t){if(!t)this.removeAttribute("multiple");else this.setAttribute("multiple","")}get autofocus(){return this.getAttribute("autofocus")!==null}set autofocus(t){if(!t)this.removeAttribute("autofocus");else this.setAttribute("autofocus","")}get required(){return this.getAttribute("required")!==null}set required(t){if(!t)this.removeAttribute("required");else this.setAttribute("required","")}get type(){return this.hasAttributeNS(null,"multiple")?"select-multiple":"select-one"}get value(){let t=yt.querySelectorAll(this,"option")[Q];for(let e=0,o=t.length;e<o;e++){let s=t[e];if(s[Ar])return s.value}return""}set value(t){let e=yt.querySelectorAll(this,"option")[Q];this[Ho]=-1;for(let o=0,s=e.length;o<s;o++){let n=e[o];if(n.value===t)n[Ar]=!0,n[En]=!0,this[Ho]=o;else n[Ar]=!1}}get selectedIndex(){return this[Ho]}set selectedIndex(t){if(t=Number(t),isNaN(t))return;let e=yt.querySelectorAll(this,"option")[Q];if(this[Ho]=-1,typeof t==="number"&&!isNaN(t)){for(let s=0,n=e.length;s<n;s++)e[s][Ar]=!1;let o=e[t];if(o)o[Ar]=!0,o[En]=!0,this[Ho]=t}}get selectedOptions(){if(!this[Rn])this[Rn]=new de(h,()=>{let t=yt.querySelectorAll(this,"option")[Q];if(t[Rn])return t[Rn];let e=[];for(let o=0,s=t.length;o<s;o++){let n=t[o];if(n[Ar])e.push(n)}return t[Rn]=e,e});return this[Rn]}get labels(){return $r.getAssociatedLabelElements(this)}get form(){if(this[Ut])return this[Ut];let t=this.getAttribute("form");if(!t||!this[tt])return null;return this[x].getElementById(t)}get willValidate(){return this.type!=="hidden"&&this.type!=="reset"&&this.type!=="button"&&!this.disabled}get tabIndex(){let t=this.getAttribute("tabindex");if(t!==null){let e=Number(t);return isNaN(e)?0:e}return 0}set tabIndex(t){super.tabIndex=t}item(t){return this.options.item(t)}add(t,e){let o=yt.querySelectorAll(this,"option")[Q];if(!e&&e!==0){let a=this[_];while(a.length)this[hr](a[0]);for(let y of o)this[Et](y);this[Et](t);return}let s=this[m];if(typeof e!=="number"){if(!(e instanceof un))throw new s.DOMException("Failed to execute 'add' on 'HTMLFormElement': The node before which the new node is to be inserted before is not an 'HTMLOptionElement'.");e=o.indexOf(e)}if(!o[e])throw new s.DOMException("Failed to execute 'add' on 'HTMLFormElement': The node before which the new node is to be inserted before is not a child of this node.");let l=this[_];while(l.length)this[hr](l[0]);for(let a=0,y=o.length;a<y;a++){if(a===e)this[Et](t);this[Et](o[a])}}remove(t){if(typeof t==="number"){let e=yt.querySelectorAll(this,"option")[Q];if(!e[t])return;let o=this[_];while(o.length)this[hr](o[0]);for(let s=0,n=e.length;s<n;s++)if(s!==t)this[Et](e[s])}else super.remove()}setCustomValidity(t){this[Ce]=String(t)}checkValidity(){let t=this.disabled||this[Ke].valid;if(!t)this.dispatchEvent(new N("invalid",{bubbles:!0,cancelable:!0}));return t}reportValidity(){return this.checkValidity()}[Cn](t){let e=this.hasAttribute("multiple"),o=yt.querySelectorAll(this,"option")[Q],s=[];if(t)this[Ho]=-1;if(!e)for(let l=0,a=o.length;l<a;l++){let y=o[l];if(t){if(y[Ar]=y===t,y===t)this[Ho]=l}if(y[Ar])s.push(y)}if(this.#t()===1&&!s.length){this[Ho]=-1;for(let l=0,a=o.length;l<a;l++){let y=o[l],u=y[W],c=y.hasAttributeNS(null,"disabled");if(u&&u[D]===T.elementNode&&u[z]==="OPTGROUP"&&u.hasAttributeNS(null,"disabled"))c=!0;if(!c){y[Ar]=!0,this[Ho]=l;break}}}else if(s.length>=2){this[Ho]=-1;for(let l=0,a=o.length;l<a;l++)if(o[l][Ar]=l===s.length-1,l===s.length-1)this[Ho]=l}}#t(){if(this.hasAttributeNS(null,"size")){let t=parseInt(this.getAttribute("size"));if(!isNaN(t)&&t>=0)return t}return this.hasAttributeNS(null,"multiple")?4:1}}var sg;class ng extends B{[Wi]=[];get onslotchange(){return S.getEventListener(this,"onslotchange")}set onslotchange(t){this[p].set("onslotchange",t)}get name(){return this.getAttribute("name")||""}set name(t){this.setAttribute("name",t)}assign(...t){let e=this.getRootNode();if(e?.[Ei]!=="manual")return;let o=e.host;if(!o)return;for(let s of t)if(s instanceof st){if(o[_].includes(s)&&s[D]!==T.commentNode){if(s[Zo]){let n=s[Zo][Wi].indexOf(s);if(n!==-1)s[Zo][Wi].splice(n,1)}s[Zo]=this,this[Wi].push(s)}}}assignedNodes(t){return this.#t(this.name,t)}assignedElements(t){return this.#e(this.name,t)}[ct](t=!1){return super[ct](t)}[Re](t,e){if(super[Re](t,e),t[rt]==="name"&&t[q]!==e?.[q]){let o=this.#t(e?.[q]),s=this.#t(t.value);if(o.length!==s.length)this.dispatchEvent(new N("slotchange",{bubbles:!0}));else for(let n=0,l=s.length;n<l;n++)if(o[n]!==s[n]){this.dispatchEvent(new N("slotchange",{bubbles:!0}));break}}}[br](t){if(super[br](t),t[rt]==="name"&&t[q]&&this.#t(t.value).length>0)this.dispatchEvent(new N("slotchange",{bubbles:!0}))}#t(t,e){let o=this.getRootNode();if(!o?.host)return[];if(o[Ei]==="manual")return this[Wi];let s=o.host,n=!!e?.flatten,l=[];for(let a of s[_]){let y=a.slot;if(t&&y&&y===t||!t&&!y)if(n&&a instanceof sg)for(let u of a.assignedNodes(e))l.push(u);else l.push(a)}return l}#e(t,e){let o=this.getRootNode();if(!o?.host)return[];if(o[Ei]==="manual"){let a=[];for(let y of this[Wi])if(y instanceof Gr)a.push(y);return a}let s=o.host,n=!!e?.flatten,l=[];for(let a of s[bt]){let y=a.slot;if(t&&y===t||!t&&!y)if(n&&a instanceof sg)for(let u of a.assignedElements(e))l.push(u);else l.push(a)}return l}}sg=ng;var lg=ng;class Tu extends B{get height(){let t=Number(this.getAttribute("height"));return isNaN(t)||t<0?0:t}set height(t){let e=Number(t);this.setAttribute("height",isNaN(e)||e<0?"0":String(e))}get width(){let t=Number(this.getAttribute("width"));return isNaN(t)||t<0?0:t}set width(t){let e=Number(t);this.setAttribute("width",isNaN(e)||e<0?"0":String(e))}get media(){return this.getAttribute("media")||""}set media(t){this.setAttribute("media",t)}get sizes(){return this.getAttribute("sizes")||""}set sizes(t){this.setAttribute("sizes",t)}get src(){if(!this.hasAttribute("src"))return"";try{return new URL(this.getAttribute("src"),this[x].location.href).href}catch(t){return this.getAttribute("src")||""}}set src(t){this.setAttribute("src",t)}get srcset(){return this.getAttribute("srcset")||""}set srcset(t){this.setAttribute("srcset",t)}get type(){return this.getAttribute("type")||""}set type(t){this.setAttribute("type",t)}}class Cu extends B{}class Nu extends B{[Be]=null;[dr]=this;[_n]=!1;get media(){return this.getAttribute("media")||""}set media(t){this.setAttribute("media",t)}get type(){return this.getAttribute("type")||""}set type(t){this.setAttribute("type",t)}get disabled(){return this[_n]}set disabled(t){this[_n]=Boolean(t)}get sheet(){if(!this[tt])return null;if(!this[Be])this[Be]=new this[x][m].CSSStyleSheet,this[Be].replaceSync(this.textContent);return this[Be]}[nr](){super[nr](),this[Be]=null}[At](){super[At](),this[Be]=null}[Vn](){if(this[Be])this[Be].replaceSync(this.textContent)}}class aa extends B{}class Lu extends B{get abbr(){return this.getAttribute("abbr")||""}set abbr(t){this.setAttribute("abbr",t)}get cellIndex(){let t=this.parentNode;while(t){if(t[z]==="TR")return yt.querySelectorAll(t,"td,th")[Q].indexOf(this);t=t.parentNode}return-1}get colSpan(){let t=Number(this.getAttribute("colspan"));return isNaN(t)||t<1?1:t}set colSpan(t){let e=Number(t);this.setAttribute("colspan",isNaN(e)||e<1?"1":String(e))}get headers(){return this.getAttribute("headers")||""}set headers(t){this.setAttribute("headers",String(t))}get rowSpan(){let t=Number(this.getAttribute("rowspan"));return isNaN(t)||t<1?1:t}set rowSpan(t){let e=Number(t);this.setAttribute("rowspan",isNaN(e)||e<1?"1":String(e))}get scope(){return this.getAttribute("scope")||""}set scope(t){this.setAttribute("scope",t)}}class ku extends B{}class Es extends B{insertRow(t=-1){if(typeof t!=="number")t=-1;let e=yt.querySelectorAll(this,"tr")[Q];if(t<-1)throw new this[m].DOMException(`Failed to execute 'insertRow' on 'HTMLTableSectionElement': The index provided (${t}) is less than -1.`,w.indexSizeError);if(t>e.length)throw new this[m].DOMException(`Failed to execute 'insertRow' on 'HTMLTableSectionElement': The index provided (${t}) is greater than the number of rows (${e.length}).`,w.indexSizeError);let o=this[x].createElement("tr");if(t===-1||t===e.length)this.appendChild(o);else this.insertBefore(o,e[t]);return o}deleteRow(t){if(arguments.length===0)throw new this[m].TypeError("Failed to execute 'deleteRow' on 'HTMLTableSectionElement': 1 argument required, but only 0 present.");if(typeof t!=="number")t=-1;if(t<-1)throw new this[m].DOMException(`Failed to execute 'deleteRow' on 'HTMLTableSectionElement': The index provided (${t}) is less than -1.`,w.indexSizeError);let e=yt.querySelectorAll(this,"tr")[Q];if(t>=e.length)throw new this[m].DOMException(`Failed to execute 'deleteRow' on 'HTMLTableSectionElement': The index provided (${t}) is greater than the number of rows in the table (${e.length}).`,w.indexSizeError);if(t===-1)t=e.length-1;e[t].remove()}}class Mu extends B{[Fm]=null;[Vm]=null;get caption(){return yt.querySelector(this,"caption")}set caption(t){if(t){if(!(t instanceof aa))throw new this[m].TypeError("Failed to set the 'caption' property on 'HTMLTableElement': Failed to convert value to 'HTMLTableCaptionElement'.");this.caption?.remove(),this.insertBefore(t,this.firstChild)}else this.caption?.remove()}get tHead(){return yt.querySelector(this,"thead")}set tHead(t){if(t){if(!(t instanceof Es))throw new this[m].TypeError("Failed to set the 'tHead' property on 'HTMLTableElement': Failed to convert value to 'HTMLTableSectionElement'.");this.tHead?.remove();let e=!1;for(let o of this[bt])if(o[z]!=="CAPTION"&&o[z]!=="COLGROUP"){this.insertBefore(t,o),e=!0;break}if(!e)this.appendChild(t)}else this.tHead?.remove()}get tFoot(){return yt.querySelector(this,"tfoot")}set tFoot(t){if(t){if(!(t instanceof Es))throw new this[m].TypeError("Failed to set the 'tFoot' property on 'HTMLTableElement': Failed to convert value to 'HTMLTableSectionElement'.");this.tFoot?.remove();let e=!1;for(let o of this[bt])if(o[z]!=="CAPTION"&&o[z]!=="COLGROUP"&&o[z]!=="THEAD"){this.insertBefore(t,o),e=!0;break}if(!e)this.appendChild(t)}else this.tFoot?.remove()}get rows(){if(!this[Fm])this[Fm]=new de(h,()=>yt.querySelectorAll(this,"tr")[Q]);return this[Fm]}get tBodies(){if(!this[Vm])this[Vm]=new de(h,()=>yt.querySelectorAll(this,"tbody")[Q]);return this[Vm]}createTHead(){let t=this.tHead;if(t)return t;let e=this[x].createElement("thead");return this.tHead=e,e}deleteTHead(){this.tHead=null}createTFoot(){let t=this.tFoot;if(t)return t;let e=this[x].createElement("tfoot");return this.tFoot=e,e}deleteTFoot(){this.tFoot=null}createTBody(){let t=yt.querySelectorAll(this,"tbody")[Q],e=this[x].createElement("tbody");if(t.length>0){let o=t[t.length-1];return o.parentNode?.insertBefore(e,o.nextSibling),e}return this.appendChild(e),e}createCaption(){let t=this.caption;if(t)return t;let e=this[x].createElement("caption");return this.caption=e,e}deleteCaption(){this.caption=null}insertRow(t=-1){if(typeof t!=="number")t=-1;let e=yt.querySelectorAll(this,"tr")[Q];if(t<-1)throw new this[m].DOMException(`Failed to execute 'insertRow' on 'HTMLTableElement': The index provided (${t}) is less than -1.`,w.indexSizeError);if(t>e.length)throw new this[m].DOMException(`Failed to execute 'insertRow' on 'HTMLTableElement': The index provided (${t}) is greater than the number of rows (${e.length}).`,w.indexSizeError);let o=this[x].createElement("tr");if(t===-1||t===e.length){let s=yt.querySelector(this,"tbody");if(s)s.appendChild(o);else{let n=this[x].createElement("tbody");n.appendChild(o),this.appendChild(n)}return o}return e[t].parentNode?.insertBefore(o,e[t]),o}deleteRow(t){if(arguments.length===0)throw new this[m].TypeError("Failed to execute 'deleteRow' on 'HTMLTableElement': 1 argument required, but only 0 present.");if(typeof t!=="number")t=-1;if(t<-1)throw new this[m].DOMException(`Failed to execute 'deleteRow' on 'HTMLTableElement': The index provided (${t}) is less than -1.`,w.indexSizeError);let e=yt.querySelectorAll(this,"tr")[Q];if(t>=e.length)throw new this[m].DOMException(`Failed to execute 'deleteRow' on 'HTMLTableElement': The index provided (${t}) is greater than the number of rows in the table (${e.length}).`,w.indexSizeError);if(t===-1)t=e.length-1;e[t].remove()}}class Iu extends B{[Rm]=null;get cells(){if(!this[Rm])this[Rm]=new de(h,()=>yt.querySelectorAll(this,"td,th")[Q]);return this[Rm]}get rowIndex(){let t=this.parentNode;while(t){if(t[z]==="TABLE")return yt.querySelectorAll(t,"tr")[Q].indexOf(this);t=t.parentNode}return-1}get sectionRowIndex(){let t=this.parentNode;while(t){if(t instanceof Es)return yt.querySelectorAll(t,"tr")[Q].indexOf(this);t=t.parentNode}return-1}insertCell(t=-1){if(typeof t!=="number")t=-1;let e=yt.querySelectorAll(this,"td,th")[Q];if(t<-1)throw new this[m].DOMException(`Failed to execute 'insertCell' on 'HTMLTableRowElement': The index provided (${t}) is less than -1.`,w.indexSizeError);if(t>e.length)throw new this[m].DOMException(`Failed to execute 'insertCell' on 'HTMLTableRowElement': The index provided (${t}) is greater than the number of cells (${e.length}).`,w.indexSizeError);let o=this[x].createElement("td");if(t===-1||t===e.length)return this.appendChild(o),o;return e[t].parentNode?.insertBefore(o,e[t]),o}deleteCell(t){if(arguments.length===0)throw new this[m].TypeError("Failed to execute 'deleteCell' on 'HTMLTableRowElement': 1 argument required, but only 0 present.");if(typeof t!=="number")t=-1;if(t<-1)throw new this[m].DOMException(`Failed to execute 'deleteCell' on 'HTMLTableRowElement': The index provided (${t}) is less than -1.`,w.indexSizeError);let e=yt.querySelectorAll(this,"td,th")[Q];if(t>=e.length)throw new this[m].DOMException(`Failed to execute 'deleteCell' on 'HTMLTableRowElement': The index provided (${t}) is greater than the number of cells in the row (${e.length}).`,w.indexSizeError);if(t===-1)t=e.length-1;e[t].remove()}}class Ru extends B{[so]=this[x].createDocumentFragment();get content(){return this[so]}get innerHTML(){return this.getHTML()}set innerHTML(t){let e=this[so],o=e[_];while(o.length)e.removeChild(o[0]);new Cr(this[m],{isTemplateDocumentFragment:!0}).parse(t,this[so])}get firstChild(){return this[so].firstChild}get lastChild(){return this[so].lastChild}getInnerHTML(t){let e=new ai,o=this[so],s="";for(let n of o[_])s+=e.serializeToString(n);return s}getHTML(t){let e=new ai,o=this[so],s="";for(let n of o[_])s+=e.serializeToString(n);return s}[Et](t,e=!1){return this[so][Et](t,e)}[hr](t){return this[so][hr](t)}[kr](t,e,o=!1){return this[so][kr](t,e,o)}[La](t,e){return this[so][La](t,e)}[ct](t=!1){let e=super[ct](t);return e[so]=this[so].cloneNode(t),e}}class Fu extends B{type="textarea";[Ce]="";[Ke]=new qr(this);[q]=null;[Je]=this;[Ut]=null;#t=null;#e=null;#r=fo.none;get oninput(){return S.getEventListener(this,"oninput")}set oninput(t){this[p].set("oninput",t)}get onselectionchange(){return S.getEventListener(this,"onselectionchange")}set onselectionchange(t){this[p].set("onselectionchange",t)}get validationMessage(){return this[Ce]}get validity(){return this[Ke]}get defaultValue(){return this.textContent}set defaultValue(t){this.textContent=t}get minLength(){let t=this.getAttribute("minlength");if(t!==null)return parseInt(t);return-1}set minLength(t){this.setAttribute("minlength",String(t))}get maxLength(){let t=this.getAttribute("maxlength");if(t!==null)return parseInt(t);return-1}set maxLength(t){this.setAttribute("maxlength",String(t))}get name(){return this.getAttribute("name")||""}set name(t){this.setAttribute("name",t)}get placeholder(){return this.getAttribute("placeholder")||""}set placeholder(t){this.setAttribute("placeholder",t)}get inputMode(){return this.getAttribute("inputmode")||""}set inputMode(t){this.setAttribute("inputmode",t)}get cols(){return this.getAttribute("cols")||""}set cols(t){this.setAttribute("cols",t)}get rows(){return this.getAttribute("rows")||""}set rows(t){this.setAttribute("rows",t)}get autocomplete(){return this.getAttribute("autocomplete")||""}set autocomplete(t){this.setAttribute("autocomplete",t)}get readOnly(){return this.getAttribute("readonly")!==null}set readOnly(t){if(!t)this.removeAttribute("readonly");else this.setAttribute("readonly","")}get disabled(){return this.getAttribute("disabled")!==null}set disabled(t){if(!t)this.removeAttribute("disabled");else this.setAttribute("disabled","")}get autofocus(){return this.getAttribute("autofocus")!==null}set autofocus(t){if(!t)this.removeAttribute("autofocus");else this.setAttribute("autofocus","")}get required(){return this.getAttribute("required")!==null}set required(t){if(!t)this.removeAttribute("required");else this.setAttribute("required","")}get value(){if(this[q]===null)return this.textContent;return this[q]}set value(t){let e=this[q];if(this[q]=t,e!==this[q])this.#t=this[q].length,this.#e=this[q].length,this.#r=fo.none}get selectionStart(){if(this.#t===null)return this.value.length;return this.#t}set selectionStart(t){this.setSelectionRange(t,Math.max(t,this.selectionEnd),this.#r)}get selectionEnd(){if(this.#e===null)return this.value.length;return this.#e}set selectionEnd(t){this.setSelectionRange(this.selectionStart,t,this.#r)}get selectionDirection(){return this.#r}set selectionDirection(t){this.setSelectionRange(this.selectionStart,this.selectionEnd,t)}get form(){if(this[Ut])return this[Ut];let t=this.getAttribute("form");if(!t||!this[tt])return null;return this[x].getElementById(t)}get textLength(){return this.value.length}get labels(){return $r.getAssociatedLabelElements(this)}get tabIndex(){let t=this.getAttribute("tabindex");if(t!==null){let e=Number(t);return isNaN(e)?0:e}return 0}set tabIndex(t){super.tabIndex=t}select(){this.#t=0,this.#e=this.value.length,this.#r=fo.none,this.dispatchEvent(new N("select",{bubbles:!0,cancelable:!1}))}setSelectionRange(t,e,o="none"){this.#e=Math.min(e,this.value.length),this.#t=Math.min(t,this.selectionEnd),this.#r=o===fo.forward||o===fo.backward?o:fo.none,this.dispatchEvent(new N("select",{bubbles:!0,cancelable:!1}))}setRangeText(t,e=null,o=null,s=ws.preserve){if(e===null)e=this.#t!==null?this.#t:0;if(o===null)o=this.#e!==null?this.#e:this.value.length;if(e>o)throw new this[m].DOMException("The index is not in the allowed range.",w.invalidStateError);e=Math.min(e,this.value.length),o=Math.min(o,this.value.length);let n=this.value,l=this.#t!==null?this.#t:0,a=this.#e!==null?this.#e:this.value.length;this.value=n.slice(0,e)+t+n.slice(o);let y=e+this.value.length;switch(s){case ws.select:this.setSelectionRange(e,y);break;case ws.start:this.setSelectionRange(e,e);break;case ws.end:this.setSelectionRange(y,y);break;default:let u=t.length-(o-e);if(l>o)l+=u;else if(l>e)l=e;if(a>o)a+=u;else if(a>e)a=y;this.setSelectionRange(l,a);break}}setCustomValidity(t){this[Ce]=String(t)}checkValidity(){let t=this.disabled||this.readOnly||this[Ke].valid;if(!t)this.dispatchEvent(new N("invalid",{bubbles:!0,cancelable:!0}));return t}reportValidity(){return this.checkValidity()}[ct](t=!1){let e=super[ct](t);return e[q]=this[q],e.#t=this.#t,e.#e=this.#e,e.#r=this.#r,e}[Ea](){if(this[q]===null)this.#t=null,this.#e=null,this.#r=fo.none}}class Vu extends B{get dateTime(){return this.getAttribute("dateTime")||""}set dateTime(t){this.setAttribute("dateTime",t)}}class Du extends B{get text(){let t="";for(let e of this[_])if(e[D]===T.textNode)t+=e.textContent;return t}set text(t){this.textContent=t}get innerHTML(){return this.getHTML()}set innerHTML(t){this.textContent=t}}class Bu extends B{get oncuechange(){return S.getEventListener(this,"oncuechange")}set oncuechange(t){this[p].set("oncuechange",t)}get kind(){let t=this.getAttribute("kind");if(t===null)return Ps.subtitles;if(!Ps[t])return Ps.metadata;return t}set kind(t){if(!Ps[t])t=Ps.metadata;this.setAttribute("kind",t)}get src(){if(!this.hasAttribute("src"))return"";try{return new URL(this.getAttribute("src"),this[x].location.href).href}catch(t){return this.getAttribute("src")||""}}set src(t){this.setAttribute("src",t)}get srclang(){return this.getAttribute("srclang")||""}set srclang(t){this.setAttribute("srclang",t)}get label(){return this.getAttribute("label")||""}set label(t){this.setAttribute("label",t)}get default(){return this.hasAttribute("default")}set default(t){if(t)this.setAttribute("default","");else this.removeAttribute("default")}get readyState(){return 0}get track(){let t=new this[m].TextTrack(h);return t[xo]=this.kind,t[Us]=this.label,t[Il]=this.srclang,t[Ee]=this.default?"showing":"disabled",t[Bm]=this.id,t}}class Ou extends B{}class Gu extends B{}class Uu extends an{}class Hu extends Ss{[D]=T.processingInstructionNode;[wr]="";get target(){return this[wr]}}class ma extends st{[ir]=null;[ve]=this;[D]=T.documentFragmentNode;get children(){if(!this[ir]){let t=this[bt];this[ir]=new de(h,()=>t)}return this[ir]}get childElementCount(){return this[bt].length}get firstElementChild(){return this[bt][0]??null}get lastElementChild(){let t=this[bt];return t[t.length-1]??null}get textContent(){let t="";for(let e of this[_])if(e[D]===T.elementNode||e[D]===T.textNode)t+=e.textContent;return t}set textContent(t){let e=this[_];while(e.length)this.removeChild(e[0]);if(t)this.appendChild(this[x].createTextNode(t))}append(...t){oe.append(this,...t)}prepend(...t){oe.prepend(this,...t)}replaceChildren(...t){oe.replaceChildren(this,...t)}querySelectorAll(t){return yt.querySelectorAll(this,t)}querySelector(t){return yt.querySelector(this,t)}getElementById(t){return oe.getElementById(this,t)}}class Wu extends ma{[Vs]=[];[Ee]="open";[Mn]=null;[Gn]=!1;[kl]=!1;[Hi]=!1;[Ei]="named";[p]=new Map;get onslotchange(){return this[p].get("onslotchange")??null}set onslotchange(t){this[p].set("onslotchange",t)}get mode(){return this[Ee]}get host(){return this[Mn]}get clonable(){return this[Gn]}get delegatesFocus(){return this[kl]}get serializable(){return this[Hi]}get slotAssignment(){return this[Ei]}get fullscreenElement(){return null}get pictureInPictureElement(){return null}get pointerLockElement(){return null}get innerHTML(){let t=new ai,e="";for(let o of this[_])e+=t.serializeToString(o);return e}set innerHTML(t){let e=this[_];while(e.length)this.removeChild(e[0]);new Cr(this[m]).parse(t,this)}get adoptedStyleSheets(){return this[Vs]}set adoptedStyleSheets(t){this[Vs]=t}get activeElement(){let t=this[x][Me],e=t?.getRootNode();if(!e||e===this[x])return null;if(e===this)return t;while(e&&e!==this)t=e.host,e=t.getRootNode();return t}getAnimations(){return[]}setHTMLUnsafe(t){let e=this[_];while(e.length)this.removeChild(e[0]);new Cr(this[m]).parse(t,this)}toString(){return this.innerHTML}[ct](t=!1){let e=super[ct](t);return e[Ee]=this[Ee],e[Gn]=this[Gn],e[kl]=this[kl],e[Hi]=this[Hi],e[Ei]=this[Ei],e}}class et extends Gr{[ge]=null;#t=null;get onabort(){return S.getEventListener(this,"onabort")}set onabort(t){this[p].set("onabort",t)}get onanimationend(){return S.getEventListener(this,"onanimationend")}set onanimationend(t){this[p].set("onanimationend",t)}get onanimationiteration(){return S.getEventListener(this,"onanimationiteration")}set onanimationiteration(t){this[p].set("onanimationiteration",t)}get onanimationstart(){return S.getEventListener(this,"onanimationstart")}set onanimationstart(t){this[p].set("onanimationstart",t)}get onauxclick(){return S.getEventListener(this,"onauxclick")}set onauxclick(t){this[p].set("onauxclick",t)}get onblur(){return S.getEventListener(this,"onblur")}set onblur(t){this[p].set("onblur",t)}get oncancel(){return S.getEventListener(this,"oncancel")}set oncancel(t){this[p].set("oncancel",t)}get oncanplay(){return S.getEventListener(this,"oncanplay")}set oncanplay(t){this[p].set("oncanplay",t)}get oncanplaythrough(){return S.getEventListener(this,"oncanplaythrough")}set oncanplaythrough(t){this[p].set("oncanplaythrough",t)}get onchange(){return S.getEventListener(this,"onchange")}set onchange(t){this[p].set("onchange",t)}get onclick(){return S.getEventListener(this,"onclick")}set onclick(t){this[p].set("onclick",t)}get onclose(){return S.getEventListener(this,"onclose")}set onclose(t){this[p].set("onclose",t)}get oncontextmenu(){return S.getEventListener(this,"oncontextmenu")}set oncontextmenu(t){this[p].set("oncontextmenu",t)}get oncopy(){return S.getEventListener(this,"oncopy")}set oncopy(t){this[p].set("oncopy",t)}get oncuechange(){return S.getEventListener(this,"oncuechange")}set oncuechange(t){this[p].set("oncuechange",t)}get oncut(){return S.getEventListener(this,"oncut")}set oncut(t){this[p].set("oncut",t)}get ondblclick(){return S.getEventListener(this,"ondblclick")}set ondblclick(t){this[p].set("ondblclick",t)}get ondrag(){return S.getEventListener(this,"ondrag")}set ondrag(t){this[p].set("ondrag",t)}get ondragend(){return S.getEventListener(this,"ondragend")}set ondragend(t){this[p].set("ondragend",t)}get ondragenter(){return S.getEventListener(this,"ondragenter")}set ondragenter(t){this[p].set("ondragenter",t)}get ondragleave(){return S.getEventListener(this,"ondragleave")}set ondragleave(t){this[p].set("ondragleave",t)}get ondragover(){return S.getEventListener(this,"ondragover")}set ondragover(t){this[p].set("ondragover",t)}get ondragstart(){return S.getEventListener(this,"ondragstart")}set ondragstart(t){this[p].set("ondragstart",t)}get ondrop(){return S.getEventListener(this,"ondrop")}set ondrop(t){this[p].set("ondrop",t)}get ondurationchange(){return S.getEventListener(this,"ondurationchange")}set ondurationchange(t){this[p].set("ondurationchange",t)}get onemptied(){return S.getEventListener(this,"onemptied")}set onemptied(t){this[p].set("onemptied",t)}get onended(){return S.getEventListener(this,"onended")}set onended(t){this[p].set("onended",t)}get onerror(){return S.getEventListener(this,"onerror")}set onerror(t){this[p].set("onerror",t)}get onfocus(){return S.getEventListener(this,"onfocus")}set onfocus(t){this[p].set("onfocus",t)}get onformdata(){return S.getEventListener(this,"onformdata")}set onformdata(t){this[p].set("onformdata",t)}get ongotpointercapture(){return S.getEventListener(this,"ongotpointercapture")}set ongotpointercapture(t){this[p].set("ongotpointercapture",t)}get oninput(){return S.getEventListener(this,"oninput")}set oninput(t){this[p].set("oninput",t)}get oninvalid(){return S.getEventListener(this,"oninvalid")}set oninvalid(t){this[p].set("oninvalid",t)}get onkeydown(){return S.getEventListener(this,"onkeydown")}set onkeydown(t){this[p].set("onkeydown",t)}get onkeypress(){return S.getEventListener(this,"onkeypress")}set onkeypress(t){this[p].set("onkeypress",t)}get onkeyup(){return S.getEventListener(this,"onkeyup")}set onkeyup(t){this[p].set("onkeyup",t)}get onload(){return S.getEventListener(this,"onload")}set onload(t){this[p].set("onload",t)}get onloadeddata(){return S.getEventListener(this,"onloadeddata")}set onloadeddata(t){this[p].set("onloadeddata",t)}get onloadedmetadata(){return S.getEventListener(this,"onloadedmetadata")}set onloadedmetadata(t){this[p].set("onloadedmetadata",t)}get onloadstart(){return S.getEventListener(this,"onloadstart")}set onloadstart(t){this[p].set("onloadstart",t)}get onlostpointercapture(){return S.getEventListener(this,"onlostpointercapture")}set onlostpointercapture(t){this[p].set("onlostpointercapture",t)}get onmousedown(){return S.getEventListener(this,"onmousedown")}set onmousedown(t){this[p].set("onmousedown",t)}get onmouseenter(){return S.getEventListener(this,"onmouseenter")}set onmouseenter(t){this[p].set("onmouseenter",t)}get onmouseleave(){return S.getEventListener(this,"onmouseleave")}set onmouseleave(t){this[p].set("onmouseleave",t)}get onmousemove(){return S.getEventListener(this,"onmousemove")}set onmousemove(t){this[p].set("onmousemove",t)}get onmouseout(){return S.getEventListener(this,"onmouseout")}set onmouseout(t){this[p].set("onmouseout",t)}get onmouseover(){return S.getEventListener(this,"onmouseover")}set onmouseover(t){this[p].set("onmouseover",t)}get onmouseup(){return S.getEventListener(this,"onmouseup")}set onmouseup(t){this[p].set("onmouseup",t)}get onmousewheel(){return S.getEventListener(this,"onmousewheel")}set onmousewheel(t){this[p].set("onmousewheel",t)}get onpaste(){return S.getEventListener(this,"onpaste")}set onpaste(t){this[p].set("onpaste",t)}get onpause(){return S.getEventListener(this,"onpause")}set onpause(t){this[p].set("onpause",t)}get onplay(){return S.getEventListener(this,"onplay")}set onplay(t){this[p].set("onplay",t)}get onplaying(){return S.getEventListener(this,"onplaying")}set onplaying(t){this[p].set("onplaying",t)}get onpointercancel(){return S.getEventListener(this,"onpointercancel")}set onpointercancel(t){this[p].set("onpointercancel",t)}get onpointerdown(){return S.getEventListener(this,"onpointerdown")}set onpointerdown(t){this[p].set("onpointerdown",t)}get onpointerenter(){return S.getEventListener(this,"onpointerenter")}set onpointerenter(t){this[p].set("onpointerenter",t)}get onpointerleave(){return S.getEventListener(this,"onpointerleave")}set onpointerleave(t){this[p].set("onpointerleave",t)}get onpointermove(){return S.getEventListener(this,"onpointermove")}set onpointermove(t){this[p].set("onpointermove",t)}get onpointerout(){return S.getEventListener(this,"onpointerout")}set onpointerout(t){this[p].set("onpointerout",t)}get onpointerover(){return S.getEventListener(this,"onpointerover")}set onpointerover(t){this[p].set("onpointerover",t)}get onpointerrawupdate(){return S.getEventListener(this,"onpointerrawupdate")}set onpointerrawupdate(t){this[p].set("onpointerrawupdate",t)}get onpointerup(){return S.getEventListener(this,"onpointerup")}set onpointerup(t){this[p].set("onpointerup",t)}get onprogress(){return S.getEventListener(this,"onprogress")}set onprogress(t){this[p].set("onprogress",t)}get onratechange(){return S.getEventListener(this,"onratechange")}set onratechange(t){this[p].set("onratechange",t)}get onreset(){return S.getEventListener(this,"onreset")}set onreset(t){this[p].set("onreset",t)}get onresize(){return S.getEventListener(this,"onresize")}set onresize(t){this[p].set("onresize",t)}get onscroll(){return S.getEventListener(this,"onscroll")}set onscroll(t){this[p].set("onscroll",t)}get onscrollend(){return S.getEventListener(this,"onscrollend")}set onscrollend(t){this[p].set("onscrollend",t)}get onscrollsnapchange(){return S.getEventListener(this,"onscrollsnapchange")}set onscrollsnapchange(t){this[p].set("onscrollsnapchange",t)}get onscrollsnapchanging(){return S.getEventListener(this,"onscrollsnapchanging")}set onscrollsnapchanging(t){this[p].set("onscrollsnapchanging",t)}get onsecuritypolicyviolation(){return S.getEventListener(this,"onsecuritypolicyviolation")}set onsecuritypolicyviolation(t){this[p].set("onsecuritypolicyviolation",t)}get onseeked(){return S.getEventListener(this,"onseeked")}set onseeked(t){this[p].set("onseeked",t)}get onseeking(){return S.getEventListener(this,"onseeking")}set onseeking(t){this[p].set("onseeking",t)}get onselect(){return S.getEventListener(this,"onselect")}set onselect(t){this[p].set("onselect",t)}get onselectionchange(){return S.getEventListener(this,"onselectionchange")}set onselectionchange(t){this[p].set("onselectionchange",t)}get onselectstart(){return S.getEventListener(this,"onselectstart")}set onselectstart(t){this[p].set("onselectstart",t)}get onslotchange(){return S.getEventListener(this,"onslotchange")}set onslotchange(t){this[p].set("onslotchange",t)}get onstalled(){return S.getEventListener(this,"onstalled")}set onstalled(t){this[p].set("onstalled",t)}get onsubmit(){return S.getEventListener(this,"onsubmit")}set onsubmit(t){this[p].set("onsubmit",t)}get onsuspend(){return S.getEventListener(this,"onsuspend")}set onsuspend(t){this[p].set("onsuspend",t)}get ontimeupdate(){return S.getEventListener(this,"ontimeupdate")}set ontimeupdate(t){this[p].set("ontimeupdate",t)}get ontoggle(){return S.getEventListener(this,"ontoggle")}set ontoggle(t){this[p].set("ontoggle",t)}get ontransitioncancel(){return S.getEventListener(this,"ontransitioncancel")}set ontransitioncancel(t){this[p].set("ontransitioncancel",t)}get ontransitionend(){return S.getEventListener(this,"ontransitionend")}set ontransitionend(t){this[p].set("ontransitionend",t)}get ontransitionrun(){return S.getEventListener(this,"ontransitionrun")}set ontransitionrun(t){this[p].set("ontransitionrun",t)}get ontransitionstart(){return S.getEventListener(this,"ontransitionstart")}set ontransitionstart(t){this[p].set("ontransitionstart",t)}get onvolumechange(){return S.getEventListener(this,"onvolumechange")}set onvolumechange(t){this[p].set("onvolumechange",t)}get onwaiting(){return S.getEventListener(this,"onwaiting")}set onwaiting(t){this[p].set("onwaiting",t)}get onwheel(){return S.getEventListener(this,"onwheel")}set onwheel(t){this[p].set("onwheel",t)}get ownerSVGElement(){let t=this[W];while(t){if(t[ot]==="svg")return t;t=t[W]}return null}get viewportElement(){return this.ownerSVGElement}get dataset(){return this.#t??=new rm(h,this)}get style(){if(!this[ge])this[ge]=new Kr(h,this[m],{element:this});return this[ge]}get tabIndex(){let t=this.getAttribute("tabindex");return t!==null?Number(t):-1}set tabIndex(t){if(t===-1)this.removeAttribute("tabindex");else this.setAttribute("tabindex",String(t))}blur(){il.blur(this)}focus(){il.focus(this)}}class _u{observe(){}unobserve(){}disconnect(){}}class ul extends vt{width=1024;height=768;availWidth=1024;availHeight=768;colorDepth=24;pixelDepth=24;onchange=null}class ya extends ul{availLeft=0;availTop=0;left=0;top=0;isPrimary=!0;isInternal=!0;devicePixelRatio=1;label=""}class um extends vt{currentScreen;screens;oncurrentscreenchange=null;onscreenschange=null;constructor(){super();let t=new ya;this.currentScreen=t,this.screens=[t]}}class ue{static compareBoundaryPointsPosition(t,e){if(t.node===e.node){if(t.offset===e.offset)return 0;else if(t.offset<e.offset)return-1;return 1}if(ft.isFollowing(t.node,e.node))return this.compareBoundaryPointsPosition(e,t)===-1?1:-1;if(ft.isInclusiveAncestor(t.node,e.node)){let o=e.node;while(o[W]!==t.node)o=o[W];if(o[W][_].indexOf(o)<t.offset)return 1}return-1}static validateBoundaryPoint(t){if(t.node[D]===T.documentTypeNode)throw new re("DocumentType Node can't be used as boundary point.",w.invalidNodeTypeError);if(t.offset>ft.getNodeLength(t.node))throw new re("Offset out of bound.",w.indexSizeError)}static isContained(t,e){return this.compareBoundaryPointsPosition({node:t,offset:0},{node:e.startContainer,offset:e.startOffset})===1&&this.compareBoundaryPointsPosition({node:t,offset:ft.getNodeLength(t)},{node:e.endContainer,offset:e.endOffset})===-1}static isPartiallyContained(t,e){return ft.isInclusiveAncestor(t,e.startContainer)&&!ft.isInclusiveAncestor(t,e.endContainer)||!ft.isInclusiveAncestor(t,e.startContainer)&&ft.isInclusiveAncestor(t,e.endContainer)}}var ag;(function(t){t[t.forwards=1]="forwards",t[t.backwards=-1]="backwards",t[t.directionless=0]="directionless"})(ag||(ag={}));var mi=ag;class pa{#t;#e=null;#r=mi.directionless;constructor(t){this.#t=t}get rangeCount(){return this.#e?1:0}get isCollapsed(){return this.#e===null||this.#e.collapsed}get type(){if(!this.#e)return"None";else if(this.#e.collapsed)return"Caret";return"Range"}get anchorNode(){if(!this.#e)return null;return this.#r===mi.forwards?this.#e.startContainer:this.#e.endContainer}get anchorOffset(){if(!this.#e)return 0;return this.#r===mi.forwards?this.#e.startOffset:this.#e.endOffset}get baseNode(){return this.anchorNode}get baseOffset(){return this.anchorOffset}get focusNode(){if(!this.#e)return null;return this.#r===mi.forwards?this.#e.endContainer:this.#e.startContainer}get focusOffset(){if(!this.#e)return 0;return this.#r===mi.forwards?this.#e.endOffset:this.#e.startOffset}get extentNode(){return this.focusNode}get extentOffset(){return this.focusOffset}addRange(t){if(!t)throw new this.#t[m].TypeError("Failed to execute addRange on Selection. Parameter 1 is not of type Range.");if(!this.#e&&t[x]===this.#t)this.#o(t)}getRangeAt(t){if(!this.#e||t!==0)throw new this.#t[m].DOMException("Invalid range index.",w.indexSizeError);return this.#e}removeRange(t){if(this.#e!==t)throw new this.#t[m].DOMException("Invalid range.",w.notFoundError);this.#o(null)}removeAllRanges(){this.#o(null)}empty(){this.removeAllRanges()}collapse(t,e){if(t===null){this.removeAllRanges();return}if(t[D]===T.documentTypeNode)throw new this.#t[m].DOMException("DocumentType Node can't be used as boundary point.",w.invalidNodeTypeError);if(e>ft.getNodeLength(t))throw new this.#t[m].DOMException("Invalid range index.",w.indexSizeError);if(t!==this.#t&&t[x]!==this.#t)return;let o=new this.#t[m].Range;o[O].node=t,o[O].offset=e,o[Y].node=t,o[Y].offset=e,this.#o(o)}setPosition(t,e){this.collapse(t,e)}collapseToEnd(){if(this.#e===null)throw new this.#t[m].DOMException("There is no selection to collapse.",w.invalidStateError);let{node:t,offset:e}=this.#e[Y],o=new this.#t[m].Range;o[O].node=t,o[O].offset=e,o[Y].node=t,o[Y].offset=e,this.#o(o)}collapseToStart(){if(!this.#e)throw new this.#t[m].DOMException("There is no selection to collapse.",w.invalidStateError);let{node:t,offset:e}=this.#e[O],o=new this.#t[m].Range;o[O].node=t,o[O].offset=e,o[Y].node=t,o[Y].offset=e,this.#o(o)}containsNode(t,e=!1){if(!this.#e||t[x]!==this.#t)return!1;let o=ue.compareBoundaryPointsPosition(this.#e[O],{node:t,offset:0})===-1,s=ue.compareBoundaryPointsPosition(this.#e[Y],{node:t,offset:ft.getNodeLength(t)})===1;return e?o||s:o&&s}deleteFromDocument(){if(this.#e)this.#e.deleteContents()}extend(t,e){if(t!==this.#t&&t[x]!==this.#t)return;if(!this.#e)throw new this.#t[m].DOMException("There is no selection to extend.",w.invalidStateError);let o=this.anchorNode,s=this.anchorOffset,n=new this.#t[m].Range;if(n[O].node=t,n[O].offset=0,n[Y].node=t,n[Y].offset=0,t[x]!==this.#e[x])n[O].offset=e,n[Y].offset=e;else if(ue.compareBoundaryPointsPosition({node:o,offset:s},{node:t,offset:e})<=0)n[O].node=o,n[O].offset=s,n[Y].node=t,n[Y].offset=e;else n[O].node=t,n[O].offset=e,n[Y].node=o,n[Y].offset=s;this.#o(n),this.#r=ue.compareBoundaryPointsPosition({node:t,offset:e},{node:o,offset:s})===-1?mi.backwards:mi.forwards}selectAllChildren(t){if(t[D]===T.documentTypeNode)throw new this.#t[m].DOMException("DocumentType Node can't be used as boundary point.",w.invalidNodeTypeError);if(t!==this.#t&&t[x]!==this.#t)return;let e=t[_].length,o=new this.#t[m].Range;o[O].node=t,o[O].offset=0,o[Y].node=t,o[Y].offset=e,this.#o(o)}setBaseAndExtent(t,e,o,s){if(e>ft.getNodeLength(t)||s>ft.getNodeLength(o))throw new this.#t[m].DOMException("Invalid anchor or focus offset.",w.indexSizeError);if(t!==this.#t&&t[x]!==this.#t||o!==this.#t&&o[x]!==this.#t)return;let n={node:t,offset:e},l={node:o,offset:s},a=new this.#t[m].Range;if(ue.compareBoundaryPointsPosition(n,l)===-1)a[O]=n,a[Y]=l;else a[O]=l,a[Y]=n;this.#o(a),this.#r=ue.compareBoundaryPointsPosition(l,n)===-1?mi.backwards:mi.forwards}toString(){return this.#e?this.#e.toString():""}#o(t){let e=this.#e;if(this.#e=t,this.#r=t===null?mi.directionless:mi.forwards,e!==this.#e)this.#t.dispatchEvent(new N("selectionchange"))}}class hl{[Kt]={};constructor(){let t=this[Kt],e=new fe(this,[hl]);return new Proxy(this,{get:(o,s)=>{if(s in o||typeof s==="symbol")return e.bind(s),o[s];if(s in t)return t[s]},set(o,s,n){if(e.bind(s),s in o||typeof s==="symbol")return!0;return t[String(s)]=String(n),!0},deleteProperty(o,s){if(s in t)return delete t[String(s)],!0;return!1},ownKeys(){return Object.keys(t)},has(o,s){if(s in o||s in t)return!0;return!1},defineProperty(o,s,n){if(e.preventBinding(s),s in o)return Object.defineProperty(o,s,n),!0;if(n.value!==void 0)return t[String(s)]=String(n.value),!0;return!1},getOwnPropertyDescriptor(o,s){if(s in o)return;let n=t[String(s)];if(n!==void 0)return{value:n,writable:!0,enumerable:!0,configurable:!0}}})}get length(){return Object.keys(this[Kt]).length}key(t){let e=Object.keys(this[Kt])[t];return e!==void 0?e:null}setItem(t,e){this[Kt][t]=String(e)}getItem(t){return this[Kt][t]!==void 0?this[Kt][t]:null}removeItem(t){delete this[Kt][t]}clear(){let t=this[Kt];for(let e of Object.keys(t))delete t[e]}}var pe={FILTER_ACCEPT:1,FILTER_REJECT:2,FILTER_SKIP:3,SHOW_ALL:-1,SHOW_ELEMENT:1,SHOW_ATTRIBUTE:2,SHOW_TEXT:4,SHOW_CDATA_SECTION:8,SHOW_ENTITY_REFERENCE:16,SHOW_ENTITY:32,SHOW_PROCESSING_INSTRUCTION:64,SHOW_COMMENT:128,SHOW_DOCUMENT:256,SHOW_DOCUMENT_TYPE:512,SHOW_DOCUMENT_FRAGMENT:1024,SHOW_NOTATION:2048};var bS={1:pe.SHOW_ELEMENT,2:pe.SHOW_ATTRIBUTE,3:pe.SHOW_TEXT,4:pe.SHOW_CDATA_SECTION,5:pe.SHOW_ENTITY_REFERENCE,6:pe.SHOW_PROCESSING_INSTRUCTION,7:pe.SHOW_PROCESSING_INSTRUCTION,8:pe.SHOW_COMMENT,9:pe.SHOW_DOCUMENT,10:pe.SHOW_DOCUMENT_TYPE,11:pe.SHOW_DOCUMENT_FRAGMENT,12:pe.SHOW_NOTATION};var ua;(function(t){t.first="first",t.last="last"})(ua||(ua={}));var ha;(function(t){t.next="next",t.previous="previous"})(ha||(ha={}));class hn{root;whatToShow=-1;filter=null;#t=null;constructor(t,e=-1,o=null){if(!(t instanceof st))throw new re("Parameter 1 was not of type Node.");this.root=t,this.whatToShow=e,this.filter=o,this.#t=t}get currentNode(){return this.#t}set currentNode(t){if(!(t instanceof st))throw new this.root[m].TypeError("Failed to set the 'currentNode' property on 'TreeWalker': Failed to convert value to 'Node'.");this.#t=t}parentNode(){let t=this.#t;while(t!==null&&t!==this.root)if(t=t.parentNode,t!==null&&this[Wo](t)===pe.FILTER_ACCEPT)return this.#t=t,this.#t;return null}firstChild(){return this.#e(ua.first)}lastChild(){return this.#e(ua.last)}nextSibling(){return this.#r(ha.next)}previousSibling(){return this.#r(ha.previous)}previousNode(){let t=this.#t;while(t!==this.root){let e=t?.previousSibling||null;while(e!==null){let o=e,s=this[Wo](o);while(s!==pe.FILTER_REJECT&&o[_].length)o=o.lastChild,s=this[Wo](o);if(s===pe.FILTER_ACCEPT)return this.#t=o,o;e=o.previousSibling}if(t===this.root||t.parentNode===null)return null;if(t=t.parentNode,this[Wo](t)===pe.FILTER_ACCEPT)return this.#t=t,t}return null}nextNode(){let t=this.#t,e=pe.FILTER_ACCEPT;if(t===null)return null;while(!0){while(e!==pe.FILTER_REJECT&&t[_].length)if(t=t.firstChild,e=this[Wo](t),e===pe.FILTER_ACCEPT)return this.#t=t,t;while(t!==null){if(t===this.root)return null;let o=t.nextSibling;if(o!==null){t=o;break}t=t.parentNode}if(t===null)return null;if(e=this[Wo](t),e===pe.FILTER_ACCEPT)return this.#t=t,t}}[Wo](t){let e=bS[t.nodeType];if(e&&(this.whatToShow&e)==0)return pe.FILTER_SKIP;if(typeof this.filter==="function")return this.filter(t);if(this.filter)return this.filter.acceptNode(t);return pe.FILTER_ACCEPT}#e(t){let e=this.#t;if(!e)return null;e=t===ua.first?e.firstChild:e.lastChild;while(e!==null){let o=this[Wo](e);if(o===pe.FILTER_ACCEPT)return this.#t=e,e;if(o===pe.FILTER_SKIP){let s=t===ua.first?e.firstChild:e.lastChild;if(s!==null){e=s;continue}}while(e!==null){let s=t===ua.first?e.nextSibling:e.previousSibling;if(s!==null){e=s;break}let n=e.parentNode;if(n===null||n===this.root||n===this.#t)return null;e=n}}return null}#r(t){let e=this.#t;if(!e||e===this.root)return null;while(!0){let o=t===ha.next?e.nextSibling:e.previousSibling;while(o!==null){let s=o,n=this[Wo](s);if(n===pe.FILTER_ACCEPT)return this.#t=s,s;if(o=t===ha.next?s.firstChild:s.lastChild,n===pe.FILTER_REJECT||o===null)o=t===ha.next?s.nextSibling:s.previousSibling}if(e=e.parentNode,e===null||e===this.root)return null;if(this[Wo](e)===pe.FILTER_ACCEPT)return null}}}class ca{#t;#e=-1;#r=null;#o;#i=!0;constructor(t,e=-1,o=null){this.#t=t,this.#e=e,this.#r=o,this.#o=new hn(t,e,o)}get root(){return this.#t}get whatToShow(){return this.#e}get filter(){return this.#r}nextNode(){if(this.#i){if(this.#i=!1,this.#o[Wo](this.#t)!==pe.FILTER_ACCEPT)return this.#o.nextNode();return this.#t}return this.#o.nextNode()}previousNode(){return this.#o.previousNode()}}class Yu{serializeToString(t){return this.#t(t)}#t(t,e=null,o=null){switch(t[D]){case T.elementNode:let s=t,n=s[ot],l="",a=this.#e(s,o),y=s[J]===Ht.html?s[Ft]:this.#r(s,a),u=`${y?y+":":""}${n}`,c=y?e:s[J]||e,d=this.#o(s,y,e,o),g=c===Ht.html&&n==="template"?t.content[_]:t[_];for(let Rt of g)l+=this.#t(Rt,c,a);if(!l&&c===Ht.html&&$e[n.toLowerCase()]?.contentModel===G.noDescendants)return`<${u}${d} />`;if(!l&&c!==Ht.html)return`<${u}${d}/>`;return`<${u}${d}>${l}</${u}>`;case st.DOCUMENT_FRAGMENT_NODE:case st.DOCUMENT_NODE:let f="";if(t[Yn])f+=this.#t(t[Yn],e,new Map(o));for(let Rt of t[_])f+=this.#t(Rt,e,new Map(o));return f;case T.commentNode:return`<!--${t.textContent}-->`;case T.processingInstructionNode:return`<?${t.target} ${t.textContent}?>`;case T.textNode:let E=t.parentElement;if(E){if($e[E[ot]]?.contentModel===G.rawText)return t.textContent}return De.encodeTextContent(t.textContent);case T.documentTypeNode:let R=t,H=R.publicId?" PUBLIC":R.systemId?" SYSTEM":"",pt=R.publicId?` "${R.publicId}"`:"",gt=R.systemId?` "${R.systemId}"`:"";return`<!DOCTYPE ${R.name}${H}${pt}${gt}>`}return""}#e(t,e){let o=new Map(e);for(let s of t[St][Q].values())if(s[J]===Ht.xmlns&&s[Ft])o.set(s[q],s[ot]);return o}#r(t,e){if(t[Ft]&&!t[J])throw Error("Element has a prefix but no namespace.");if(!t[Ft]||!e)return null;let o=e.get(t[J]);if(o)return o;let s=new Set(e.values());if(s.has(t[Ft])){let n=1;while(s.has("n"+n))n++;return e.set(t[J],"n"+n),"n"+n}return e.set(t[J],t[Ft]),t[Ft]}#o(t,e,o,s){let n="",l="",a=new Set;for(let y of t[St][Q].values())if(y[J]===Ht.xmlns)if(e&&y[ot]===e&&t[J])l+=` xmlns:${e}="${De.encodeXMLAttributeValue(t[J])}"`,a.add(t[J]);else if(!e&&y[rt]==="xmlns"&&t[J])l+=` xmlns="${De.encodeXMLAttributeValue(t[J])}"`,a.add(t[J]);else l+=` ${y[rt]}="${De.encodeXMLAttributeValue(y[q])}"`,a.add(y[q]);else n+=` ${y[rt]}="${De.encodeXMLAttributeValue(y[q])}"`;if(t[J]&&o!==t[J]&&!a.has(t[J])){if(e&&!s?.has(t[J]))l+=` xmlns:${e}="${De.encodeXMLAttributeValue(t[J])}"`;else if(!e&&o!==t[J])l+=` xmlns="${De.encodeXMLAttributeValue(t[J])}"`}return l+n}}import{Script as xA}from"vm";var gS=new xA(`
130
+ `||o==="\t")e--,o=t[e];return o||";"}removeMultilineComments(t){let e=new RegExp(dA),o,s=0,n=0,l="";while(o=e.exec(t)){if(s===0)l+=t.substring(n,o.index);if(o[0]==="/*")s++;else if(o[0]==="*/"&&s>0)s--;n=e.lastIndex}return l+=t.substring(n),l}reset(){this.count={comment:0,singleLineComment:0,parentheses:0,curlyBraces:0,squareBrackets:0,regExp:0,regExpSquareBrackets:0,escapeTemplateString:0,simpleString:0,doubleString:0},this.debugCount={comment:[],singleLineComment:[],parentheses:[],curlyBraces:[],squareBrackets:[],regExp:[],regExpSquareBrackets:[],escapeTemplateString:[],simpleString:[],doubleString:[]},this.templateString=[]}}var fA={imports:[],execute:async()=>{}};class pn{url;[m];#t;#e;#r=!1;#o=null;#i=null;#s=null;#l;constructor(t){this[m]=t.window,this.url=t.url,this.#t=t.source,this.#e=t.sourceURL||null,this.#l=t.factory}async evaluate(t=[],e=null){if(this.#s){if(t.includes(this.url.href)){if(e)this.#s.push(e);return this.#i}return new Promise((f)=>{this.#s.push(f)})}if(this.#i)return this.#i;let o=this.#m(),s=[],n=this[m];if(!new it(n).getBrowserFrame())return{};let a={};this.#i=a,this.#s=[];for(let f of o.imports)s.push(this.#l.getModule(f.url,{with:{type:f.type}}));let y=new Map,u=null,c=()=>{if(u)u()};if(s.length){let f=await Promise.all(s),E=[...t,this.url.href];for(let R of f)if(R instanceof pn){let H=await R.evaluate(E,c);y.set(R.url.href,H)}else{let H=await R.evaluate();y.set(R.url.href,H)}}let d=this.url.href;o.execute({dispatchError:n[le].bind(n),dynamicImport:this.#l.importModule.bind(this.#l),importMeta:{url:d,resolve:(f)=>new SA(f,d).href},imports:y,exports:a,addCircularImportResolver:(f)=>u=f});let g=this.#s;this.#s=null;for(let f of g)f(a);return a}async preload(){if(this.#r)return;this.#r=!0;let t=this.#m(),e=[],o=this[m];if(!new it(o).getBrowserFrame())return;for(let a of t.imports)e.push(this.#l.getModule(a.url,{with:{type:a.type}}));let n=await Promise.all(e),l=[];for(let a of n)l.push(a.preload());await Promise.all(l)}#m(){if(this.#o)return this.#o;this.#o=fA;let t=new xc(this[m]);return this.#o=t.compile(this.url.href,this.#t,this.#e),this.#o}}class Yo{window;parentURL;constructor(t,e){this.window=t,this.parentURL=e}async getModule(t,e){let o=this.window,s=this.parentURL,n=yl.getURL(o,s,t),l=n.href,a=e?.with?.type||"esm";if(a!=="esm"&&a!=="css"&&a!=="json")throw new o.TypeError(`Failed to import module "${n}" from "${s}": Unknown type "${a}"`);let y=o[ls][a].get(l);if(y){if(y instanceof nu)return await new Promise((H,yt)=>{y.addResolveListener(H,yt)}),o[ls][a].get(l);return y}if(!new it(o).getBrowserFrame())throw new o.TypeError(`Failed to import module "${n}" from "${s}": Window is closed and is no longer attached to a frame`);let c=new nu({window:o,url:n}),d=o[Ao],g=d.startTask();o[ls][a].set(l,c);let f=new ml(o),E;try{E=await f.fetch(n,"module")}catch(H){throw d.endTask(g),c.resolve(H),H}d.endTask(g);let R;switch(a){case"json":R=new mm({window:o,url:n,source:E.content});break;case"css":R=new am({window:o,url:n,source:E.content});break;case"esm":R=new pn({window:o,url:n,source:E.content,sourceURL:E.virtualServerFile||l,factory:new Yo(o,n)});break}return o[ls][a].set(l,R),c.resolve(),R}async importModule(t,e){let o=new it(this.window).getBrowserFrame();if(!o)return{};let s=o[Pt],n=s?.startTask(),a=await(await this.getModule(t,e)).evaluate();return s.endTask(n),a}}class vc{integrityMetadata=null;response=null;error=null;#t=null;onResponseAvailable(){return new Promise((t,e)=>{this.#t={resolve:t,reject:e}})}responseAvailable(t,e){if(this.response=e,this.error=t,!this.#t)return;if(t)this.#t.reject(t);else if(!e)this.#t.reject(Error("Response is null"));else this.#t.resolve(e)}}class au extends B{[Be]=null;[qs]=!1;[eo]=null;#t=null;get onerror(){return S.getEventListener(this,"onerror")}set onerror(t){this[p].set("onerror",t)}get onload(){return S.getEventListener(this,"onload")}set onload(t){this[p].set("onload",t)}get sheet(){return this[Be]}get relList(){if(!this[eo])this[eo]=new Br(h,this,"rel",["stylesheet","modulepreload","preload"]);return this[eo]}set relList(t){this.setAttribute("rel",t)}get as(){return this.getAttribute("as")||""}set as(t){this.setAttribute("as",t)}get crossOrigin(){return this.getAttribute("crossorigin")||""}set crossOrigin(t){this.setAttribute("crossorigin",t)}get href(){if(!this.hasAttribute("href"))return"";try{return new URL(this.getAttribute("href"),this[x].location.href).href}catch(t){return this.getAttribute("href")}}set href(t){this.setAttribute("href",t)}get hreflang(){return this.getAttribute("hreflang")||""}set hreflang(t){this.setAttribute("hreflang",t)}get media(){return this.getAttribute("media")||""}set media(t){this.setAttribute("media",t)}get referrerPolicy(){return this.getAttribute("referrerPolicy")||""}set referrerPolicy(t){this.setAttribute("referrerPolicy",t)}get rel(){return this.getAttribute("rel")||""}set rel(t){this.setAttribute("rel",t)}get type(){return this.getAttribute("type")||""}set type(t){this.setAttribute("type",t)}[sr](){super[sr]();let t=this.getAttribute("rel"),e=this.getAttribute("href");if(t&&e)switch(t){case"stylesheet":this.#o(e);break;case"modulepreload":this.#e(e);break;case"preload":this.#r(e);break}}[Re](t,e){if(super[Re](t,e),t[rt]==="rel"||t[rt]==="href"){let o=this.getAttribute("rel"),s=this.getAttribute("href");if(o&&s)switch(o){case"stylesheet":this.#o(s);break;case"modulepreload":this.#e(s);break;case"preload":this.#r(s);break}}}async#e(t){let e=this[m],o=new it(e).getBrowserFrame(),s=new it(e).getSettings();if(!o||!s||!this[tt]||s.disableJavaScriptFileLoading||!s.enableJavaScriptEvaluation)return;let n=new Yo(e,e.location);if(s.disableErrorCapturing||s.errorCapture!==me.tryAndCatch)await(await n.getModule(t)).preload();else try{await(await n.getModule(t)).preload()}catch(l){o.page.console.error(l),e[le](l);return}}async#r(t){let e=this[m],o=new it(e).getBrowserFrame(),s=this.as;if(!o||!this[tt]||s!=="script"&&s!=="style"&&s!=="fetch")return;let n=o.page.context.browser.settings;if(s==="script"&&(n.disableJavaScriptFileLoading||!n.enableJavaScriptEvaluation))return;if(s==="style"&&n.disableCSSFileLoading)return;let l=new URL(t,e.location.href).href,a=on.getKey({url:l,destination:s,mode:"cors",credentialsMode:this.crossOrigin==="use-credentials"?"include":"same-origin"});if(e.document[Rr].has(a))return;let y=new vc;e.document[Rr].set(a,y);let u=new Dr({browserFrame:o,window:e,url:l,disableSameOriginPolicy:s==="script"||s==="style",disablePreload:!0,init:{credentials:this.crossOrigin==="use-credentials"?"include":"same-origin"}});try{let c=await u.send();if(!c[Nt])await c.buffer();y.responseAvailable(null,c)}catch(c){y.responseAvailable(c,null),e.document[Rr].delete(a),o.page.console.error(`Failed to preload resource "${l}": ${c.message}`)}}async#o(t){let e=this[m],o=new it(e).getBrowserFrame();if(!o||t===null)return;let s=o.page.context.browser.settings;if(this[qs]||!this[tt])return;let n;try{n=new URL(t,e.location.href).href}catch(d){return}if(this.#t===n)return;if(s&&s.disableCSSFileLoading){if(s.handleDisabledFileLoadingAsSuccess)this.dispatchEvent(new C("load"));else{let d=new e.DOMException(`Failed to load external stylesheet "${n}". CSS file loading is disabled.`,w.notSupportedError);o.page.console.error(d),this.dispatchEvent(new C("error"))}return}let l=new ml(e),a=e[Ao];this.#t=n;let y=a.startTask(),u=null,c=null;try{u=await l.fetch(n,"style",{credentials:this.crossOrigin==="use-credentials"?"include":"same-origin"})}catch(d){c=d}if(a.endTask(y),c)o.page.console.error(c),this.dispatchEvent(new C("error"));else{let d=new this[x][m].CSSStyleSheet;d.replaceSync(u.content),this[Be]=d;let g=this[x];if(g){for(let f of g[qo])f.result=null;g[qo]=[]}this.dispatchEvent(new C("load"))}}}class mu extends B{[Im]=null;get areas(){if(!this[Im])this[Im]=oe.getElementsByTagName(this,"area");return this[Im]}get name(){return this.getAttribute("name")||""}set name(t){this.setAttribute("name",t)}}class pl extends Array{constructor(t){super();if(t!==1&&t!==h)throw TypeError("Illegal constructor")}getCueById(t){for(let e of this)if(e.id===t)return e;return null}}class yu extends B{}class pu extends B{get content(){return this.getAttribute("content")||""}set content(t){this.setAttribute("content",t)}get httpEquiv(){return this.getAttribute("http-equiv")||""}set httpEquiv(t){this.setAttribute("http-equiv",t)}get name(){return this.getAttribute("name")||""}set name(t){this.setAttribute("name",t)}get scheme(){return this.getAttribute("scheme")||""}set scheme(t){this.setAttribute("scheme",t)}}class uu extends B{get high(){if(!this.hasAttribute("high"))return 1;let t=parseFloat(this.getAttribute("high")||"");if(isNaN(t)||t>1)return 1;return t<0?0:t}set high(t){if(t=typeof t!=="number"?Number(t):t,isNaN(t))throw new this[m].TypeError("Failed to set the 'high' property on 'HTMLMeterElement': The provided double value is non-finite.");this.setAttribute("high",String(t))}get low(){if(!this.hasAttribute("low"))return 0;let t=parseFloat(this.getAttribute("low")||"");if(isNaN(t)||t<0)return 0;return t>1?1:t}set low(t){if(t=typeof t!=="number"?Number(t):t,isNaN(t))throw new this[m].TypeError("Failed to set the 'low' property on 'HTMLMeterElement': The provided double value is non-finite.");this.setAttribute("low",String(t))}get max(){if(!this.hasAttribute("max"))return 1;let t=parseFloat(this.getAttribute("max")||"");if(isNaN(t)||t>1)return 1;return t<0?0:t}set max(t){if(t=typeof t!=="number"?Number(t):t,isNaN(t))throw new this[m].TypeError("Failed to set the 'max' property on 'HTMLMeterElement': The provided double value is non-finite.");this.setAttribute("max",String(t))}get min(){if(!this.hasAttribute("min"))return 0;let t=parseFloat(this.getAttribute("min")||"");if(isNaN(t)||t<0)return 0;return t>1?1:t}set min(t){if(t=typeof t!=="number"?Number(t):t,isNaN(t))throw new this[m].TypeError("Failed to set the 'min' property on 'HTMLMeterElement': The provided double value is non-finite.");this.setAttribute("min",String(t))}get optimum(){if(!this.hasAttribute("optimum"))return 0.5;let t=parseFloat(this.getAttribute("optimum")||"");if(isNaN(t))return 0.5;if(t<0)return 0;return t>1?1:t}set optimum(t){if(t=typeof t!=="number"?Number(t):t,isNaN(t))throw new this[m].TypeError("Failed to set the 'optimum' property on 'HTMLMeterElement': The provided double value is non-finite.");this.setAttribute("optimum",String(t))}get value(){if(!this.hasAttribute("value"))return 0;let t=parseFloat(this.getAttribute("value")||"");if(isNaN(t)||t<0)return 0;return t>1?1:t}set value(t){if(t=typeof t!=="number"?Number(t):t,isNaN(t))throw new this[m].TypeError("Failed to set the 'value' property on 'HTMLMeterElement': The provided double value is non-finite.");this.setAttribute("value",String(t))}get labels(){return jr.getAssociatedLabelElements(this)}}class hu extends B{get cite(){if(!this.hasAttribute("cite"))return"";try{return new URL(this.getAttribute("cite"),this[x].location.href).href}catch(t){return this.getAttribute("cite")}}set cite(t){this.setAttribute("cite",t)}get dateTime(){return this.getAttribute("datetime")||""}set dateTime(t){this.setAttribute("datetime",t)}}class cu extends B{get reversed(){return this.getAttribute("reversed")!==null}set reversed(t){if(!t)this.removeAttribute("reversed");else this.setAttribute("reversed","")}get start(){if(!this.hasAttribute("start"))return 1;let t=Number(this.getAttribute("start")||"");if(isNaN(t))return 1;return t}set start(t){if(typeof t!=="number")t=Number(t);if(isNaN(t))t=0;this.setAttribute("start",String(t))}get type(){return this.getAttribute("type")||""}set type(t){this.setAttribute("type",t)}}class du extends B{[Gt]=null;[Ce]="";[Ke]=new Qr(this);get contentDocument(){return null}get contentWindow(){return null}get data(){if(!this.hasAttribute("data"))return"";try{return new URL(this.getAttribute("data"),this[x].location.href).href}catch(t){return this.getAttribute("data")}}set data(t){this.setAttribute("data",t)}get form(){if(this[Gt])return this[Gt];let t=this.getAttribute("form");if(!t||!this[tt])return null;return this[x].getElementById(t)}get height(){return this.getAttribute("height")||""}set height(t){this.setAttribute("height",t)}get width(){return this.getAttribute("width")||""}set width(t){this.setAttribute("width",t)}get name(){return this.getAttribute("name")||""}set name(t){this.setAttribute("name",t)}get type(){return this.getAttribute("type")||""}set type(t){this.setAttribute("type",t)}get validationMessage(){return this[Ce]}get validity(){return this[Ke]}get willValidate(){return!1}get tabIndex(){let t=this.getAttribute("tabindex");if(t!==null){let e=Number(t);return isNaN(e)?0:e}return 0}set tabIndex(t){super.tabIndex=t}checkValidity(){return!0}reportValidity(){return this.checkValidity()}setCustomValidity(t){this[Ce]=String(t)}}class bu extends B{get label(){return this.getAttribute("label")||""}set label(t){if(!t)this.removeAttribute("label");else this.setAttribute("label",t)}get disabled(){return this.getAttribute("disabled")!==null}set disabled(t){if(!t)this.removeAttribute("disabled");else this.setAttribute("disabled","")}}class un extends B{[Ar]=!1;[En]=!1;[Ie]=null;get text(){return this.innerText}set text(t){this.innerText=t}get index(){if(!this[Ie])return 0;return mt.querySelectorAll(this[Ie],"option")[Q].indexOf(this)}get form(){return this[Ie]?.form||null}get selected(){return this[Ar]}set selected(t){let e=this[Ie];if(this[En]=!0,this[Ar]=Boolean(t),e)e[Cn](this[Ar]?this:null)}get disabled(){return this.getAttribute("disabled")!==null}set disabled(t){if(!t)this.removeAttribute("disabled");else this.setAttribute("disabled","")}get value(){return this.getAttribute("value")??this.textContent}set value(t){this.setAttribute("value",t)}[Re](t,e){if(super[Re](t,e),!this[En]&&t[rt]==="selected"&&e?.[q]!==t[q]){let o=this[Ie];if(this[Ar]=!0,o)o[Cn](this)}}[cr](t){if(super[cr](t),t&&!this[En]&&t[rt]==="selected"){let e=this[Ie];if(this[Ar]=!1,e)e[Cn]()}}[zr](){if(super[zr](),this[Ie])this[Ie][Cn]()}[Vi](){if(this[Ie])this[Ie][Cn]();super[Vi]()}}class gu extends B{[Gt]=null;[Ce]="";[Ke]=new Qr(this);[lo]="";get defaultValue(){return this[lo]}set defaultValue(t){this[lo]=t}get form(){if(this[Gt])return this[Gt];let t=this.getAttribute("form");if(!t||!this[tt])return null;return this[x].getElementById(t)}get htmlFor(){return this.getAttribute("for")||""}set htmlFor(t){this.setAttribute("for",t)}get labels(){return jr.getAssociatedLabelElements(this)}get name(){return this.getAttribute("name")||""}set name(t){this.setAttribute("name",t)}get value(){return this.textContent||""}set value(t){this.textContent=t}get type(){return"output"}get validationMessage(){return this[Ce]}get validity(){return this[Ke]}get willValidate(){return!1}checkValidity(){return!0}reportValidity(){return this.checkValidity()}setCustomValidity(t){this[Ce]=String(t)}}class Su extends B{}class fu extends B{}class Pu extends B{}class Au extends B{}class wu extends B{get max(){if(!this.hasAttribute("max"))return 1;let t=parseFloat(this.getAttribute("max")||"");if(isNaN(t)||t<0)return 1;return t}set max(t){if(t=typeof t!=="number"?Number(t):t,isNaN(t))throw new this[m].TypeError("Failed to set the 'max' property on 'HTMLProgressElement': The provided double value is non-finite.");this.setAttribute("max",t<0?"1":String(t))}get value(){if(!this.hasAttribute("value"))return 0;let t=parseFloat(this.getAttribute("value")||"");if(isNaN(t)||t<0)return 0;return t}set value(t){if(t=typeof t!=="number"?Number(t):t,isNaN(t))throw new this[m].TypeError("Failed to set the 'value' property on 'HTMLProgressElement': The provided double value is non-finite.");this.setAttribute("value",t<0?"0":String(t))}get position(){if(!this.hasAttribute("value"))return-1;return this.value/this.max}get labels(){return jr.getAssociatedLabelElements(this)}}class Eu extends B{get cite(){if(!this.hasAttribute("cite"))return"";try{return new URL(this.getAttribute("cite"),this[x].location.href).href}catch(t){return this.getAttribute("cite")}}set cite(t){this.setAttribute("cite",t)}}var PA=/import\s*\(([^)]+)\)/gm,AA=/(\/)|(\(|\))|({|})|(\[|\])|(\${)|(`)|(')|(")|(\n)/gm,wA=/['"`(){}\s;=><\[\]+-,:&]/,EA=/['"`({};=><\[+-,:&]/;class xu{window;count={comment:0,singleLineComment:0,parentheses:0,curlyBraces:0,squareBrackets:0,regExp:0,regExpSquareBrackets:0,escapeTemplateString:0,simpleString:0,doubleString:0};templateString=[];constructor(t){this.window=t}compile(t,e){let o=new it(this.window).getSettings();if(!o)return{execute:()=>{}};let s=new RegExp(PA),n=this.count,l="(function anonymous($happy_dom) {",a=null,y,u,c=0,d=-1;if(!o.disableErrorCapturing&&o.errorCapture===me.tryAndCatch)l+="try {";while(a=s.exec(e)){if(y=e[a.index-1]||" ",u=e.substring(c,a.index),this.parseSyntax(u,c),d===-1)l+=u;if(a[1]&&n.simpleString===0&&n.doubleString===0&&n.comment===0&&n.singleLineComment===0&&n.regExp===0&&(this.templateString.length===0||this.templateString[0]>0)&&wA.test(y))l+=`$happy_dom.dynamicImport(${a[1]})`;else l+=a[0],this.parseSyntax(a[0],a.index);c=s.lastIndex}if(c===0)l+=e;else l+=e.substring(c);if(!o.disableErrorCapturing&&o.errorCapture===me.tryAndCatch)l+="} catch (error) { $happy_dom.dispatchError(error); }";l+="})";try{return{execute:this.window[Oo](l,{filename:t})}}catch(g){if(g.message=`Failed to parse JavaScript in '${t}': ${g.message}`,o.disableErrorCapturing||o.errorCapture!==me.tryAndCatch)throw g;else return this.window[le](g),{execute:()=>{}}}}parseSyntax(t,e){let o=new RegExp(AA),s=this.count,n=null,l,a;e++;while(n=o.exec(t))if(l=t[n.index-1]||" ",a=l==="\\"&&t[n.index-2]!=="\\",n[1]){if(s.simpleString===0&&s.doubleString===0&&s.singleLineComment===0&&s.regExpSquareBrackets===0&&(this.templateString.length===0||this.templateString[0]>0)){if(s.comment===1){if(l==="*")s.comment=0}else if(s.regExp===0){if(t[n.index+1]==="*")s.comment=1;else if(t[n.index+1]==="/")s.singleLineComment=1;else if(EA.test(this.getNonSpacePrecedingToken(t,n.index)))s.regExp=1}else if(!a)s.regExp=0}}else if(n[2]){if(s.simpleString===0&&s.doubleString===0&&s.regExp===0&&s.comment===0&&s.singleLineComment===0&&(this.templateString.length===0||this.templateString[0]>0)){if(n[2]==="(")s.parentheses++;else if(n[2]===")"&&s.parentheses>0)s.parentheses--}}else if(n[3]){if(s.simpleString===0&&s.doubleString===0&&s.regExp===0&&s.comment===0&&s.singleLineComment===0&&(this.templateString.length===0||this.templateString[0]>0)){if(n[3]==="{"){if(this.templateString.length)this.templateString[0]++;s.curlyBraces++}else if(n[3]==="}"){if(this.templateString.length&&this.templateString[0]>0)this.templateString[0]--;if(s.curlyBraces>0)s.curlyBraces--}}}else if(n[4]){if(s.simpleString===0&&s.doubleString===0&&s.comment===0&&s.singleLineComment===0&&(this.templateString.length===0||this.templateString[0]>0)){if(s.regExp===1){if(!a){if(n[4]==="["&&s.regExpSquareBrackets===0)s.regExpSquareBrackets=1;else if(n[4]==="]"&&s.regExpSquareBrackets===1)s.regExpSquareBrackets=0}}else if(n[4]==="[")s.squareBrackets++;else if(n[4]==="]"&&s.squareBrackets>0)s.squareBrackets--}}else if(n[5]){if(s.simpleString===0&&s.doubleString===0&&s.comment===0&&s.singleLineComment===0&&s.regExp===0&&!a){if(this.templateString[0]===0)this.templateString[0]=1,s.curlyBraces++}}else if(n[6]){if(s.simpleString===0&&s.doubleString===0&&s.comment===0&&s.singleLineComment===0&&s.regExp===0&&!a)if(this.templateString?.[0]===0)this.templateString.shift();else this.templateString.unshift(0)}else if(n[7]){if(s.doubleString===0&&s.comment===0&&s.singleLineComment===0&&s.regExp===0&&!a&&(this.templateString.length===0||this.templateString[0]>0))if(s.simpleString===0)s.simpleString=1;else s.simpleString=0}else if(n[8]){if(s.simpleString===0&&s.comment===0&&s.singleLineComment===0&&s.regExp===0&&!a&&(this.templateString.length===0||this.templateString[0]>0))if(s.doubleString===0)s.doubleString=1;else s.doubleString=0}else if(n[9])s.singleLineComment=0}getNonSpacePrecedingToken(t,e){e--;let o=t[e];while(o===" "||o===`
131
+ `||o==="\t")e--,o=t[e];return o||";"}}class vu extends B{[qs]=!1;[ep]=null;#t=null;get onerror(){return S.getEventListener(this,"onerror")}set onerror(t){this[p].set("onerror",t)}get onload(){return S.getEventListener(this,"onload")}set onload(t){this[p].set("onload",t)}get type(){return this.getAttribute("type")||""}set type(t){this.setAttribute("type",t)}get blocking(){if(!this[ep])this[ep]=new Br(h,this,"blocking");return this[ep]}set blocking(t){this.setAttribute("blocking",t)}get crossOrigin(){return this.getAttribute("crossorigin")||""}set crossOrigin(t){this.setAttribute("crossorigin",t)}get fetchPriority(){let t=this.getAttribute("fetchpriority");switch(t){case"high":case"low":case"normal":return t;default:return"auto"}}set fetchPriority(t){this.setAttribute("fetchpriority",t)}get noModule(){return this.getAttribute("nomodule")!==null}set noModule(t){if(t)this.setAttribute("nomodule","");else this.removeAttribute("nomodule")}get integrity(){return this.getAttribute("integrity")||""}set integrity(t){this.setAttribute("integrity",t)}get referrerPolicy(){let t=this.getAttribute("referrerpolicy");switch(t){case"no-referrer":case"no-referrer-when-downgrade":case"same-origin":case"origin":case"strict-origin":case"origin-when-cross-origin":case"strict-origin-when-cross-origin":case"unsafe-url":return t;default:return""}}set referrerPolicy(t){this.setAttribute("referrerpolicy",t)}get src(){if(!this.hasAttribute("src"))return"";try{return new URL(this.getAttribute("src"),this[x].location.href).href}catch(t){return this.getAttribute("src")}}set src(t){this.setAttribute("src",t)}get charset(){return this.getAttribute("charset")||""}set charset(t){this.setAttribute("charset",t)}get lang(){return this.getAttribute("lang")||""}set lang(t){this.setAttribute("lang",t)}get async(){return this.getAttribute("async")!==null}set async(t){if(!t)this.removeAttribute("async");else this.setAttribute("async","")}get defer(){return this.getAttribute("defer")!==null}set defer(t){if(!t)this.removeAttribute("defer");else this.setAttribute("defer","")}get text(){return this.textContent}set text(t){this.textContent=t}[ht](t=!1){return super[ht](t)}[sr](){let t=new it(this[m]).getSettings();if(super[sr](),this[qs])return;let e=this.getAttribute("src");if(e!==null)if(this.getAttribute("type")==="module")this.#i(e);else this.#s(e);else if(t&&t.enableJavaScriptEvaluation){let o=this.textContent,s=this.getAttribute("type");if(o){if(s==="module")this.#e(o);else if(s==="importmap")this.#r(o);else if(s===null||s==="application/x-ecmascript"||s==="application/x-javascript"||s.startsWith("text/javascript"))this.#o(o)}}}[Re](t,e){if(super[Re](t,e),t[rt]==="src"&&t[q]!==null&&this[tt])if(this.getAttribute("type")==="module")this.#i(t[q]);else this.#s(t[q])}#e(t){let e=this[x].location,o=this[m],s=new it(o).getSettings();if(!new it(o).getBrowserFrame()||!s||!s.enableJavaScriptEvaluation)return;this[x][Do]=this;let l=new Yo(o,e),a=new pn({window:o,url:e,source:t,factory:l});if(s.disableErrorCapturing||s.errorCapture!==me.tryAndCatch)a.evaluate();else a.evaluate().catch((y)=>{o[le](y)});this[x][Do]=null,this.dispatchEvent(new C("load"))}async#r(t){let e=this[m],o=new it(e).getSettings();if(!new it(e).getBrowserFrame()||!o||e[Bl]||!o.enableJavaScriptEvaluation)return;let n;if(o.disableErrorCapturing||o.errorCapture!==me.tryAndCatch)n=JSON.parse(t);else try{n=JSON.parse(t)}catch(l){e[le](l);return}if(n.imports||n.scopes){let l={imports:[],scopes:[]};if(n.imports)for(let a of Object.keys(n.imports))l.imports.push({from:a,to:n.imports[a]});if(n.scopes)for(let a of Object.keys(n.scopes)){let y={scope:a,rules:[]};for(let u of Object.keys(n.scopes[a])){let c=n.scopes[a][u];y.rules.push({from:u,to:c})}l.scopes.push(y)}e[Bl]=l}}#o(t){let e=this[m];if(!new it(e).getSettings())return;this[x][Do]=this;let n=new xu(e).compile(e.location.href,t),l=new Yo(e,e.location);n.execute({dynamicImport:l.importModule.bind(l),dispatchError:e[le].bind(e)}),this[x][Do]=null}async#i(t){let e=this[m],o=new it(e).getBrowserFrame(),s=new it(e).getSettings();if(!o||!s)return;if(!t||!this[tt]||this.getAttribute("type")!=="module")return;if(s&&(s.disableJavaScriptFileLoading||!s.enableJavaScriptEvaluation)){if(s.handleDisabledFileLoadingAsSuccess)this.dispatchEvent(new C("load"));else{let l=new e.DOMException(`Failed to load module "${t}". JavaScript file loading is disabled.`,w.notSupportedError);o.page.console.error(l),this.dispatchEvent(new C("error"))}return}let n=new Yo(e,e.location);if(s.disableErrorCapturing||s.errorCapture!==me.tryAndCatch)await(await n.getModule(t)).evaluate();else try{await(await n.getModule(t)).evaluate()}catch(l){o.page.console.error(l),this.dispatchEvent(new C("error"));return}this.dispatchEvent(new C("load"))}async#s(t){let e=this[m],o=new it(e).getBrowserFrame();if(!o)return;let s=o.page.context.browser.settings,n=this.getAttribute("type");if(!t||!this[tt]||n!==null&&n!=="application/x-ecmascript"&&n!=="application/x-javascript"&&!n.startsWith("text/javascript"))return;let l;try{l=new URL(t,e.location.href)}catch(E){return}let a=l.toString();if(this.#t===a)return;if(s&&(s.disableJavaScriptFileLoading||!s.enableJavaScriptEvaluation)){if(s.handleDisabledFileLoadingAsSuccess)this.dispatchEvent(new C("load"));else{let E=new e.DOMException(`Failed to load script "${l}". JavaScript file loading is disabled.`,w.notSupportedError);o.page.console.error(E),this.dispatchEvent(new C("error"))}return}this.#t=a;let y=new ml(e),u=this.getAttribute("async")!==null||this.getAttribute("defer")!==null,c=null;if(u){let E=e[Ao],R=E.startTask();try{c=await y.fetch(a,"script",{credentials:this.crossOrigin==="use-credentials"?"include":"same-origin",referrerPolicy:this.referrerPolicy})}catch(H){o.page.console.error(H),this.dispatchEvent(new C("error")),E.endTask(R);return}E.endTask(R)}else try{c=y.fetchSync(a,"script",{credentials:this.crossOrigin==="use-credentials"?"include":"same-origin",referrerPolicy:this.referrerPolicy})}catch(E){o.page.console.error(E),this.dispatchEvent(new C("error"));return}this[x][Do]=this;let g=new xu(e).compile(c.virtualServerFile||a,c.content),f=new Yo(e,e.location);g.execute({dynamicImport:f.importModule.bind(f),dispatchError:e[le].bind(e)}),this[x][Do]=null,this.dispatchEvent(new C("load"))}static supports(t){switch(t){case"classic":case"module":case"importmap":return!0;case"speculationrules":default:return!1}}}class ym extends de{constructor(t,e){super(t,()=>mt.querySelectorAll(e,"option")[Q]);this[xt]=e}get selectedIndex(){return this[xt].selectedIndex}set selectedIndex(t){this[xt].selectedIndex=t}add(t,e){this[xt].add(t,e)}remove(t){this[xt].remove(t)}}class pm extends B{[Ce]="";[Ke]=new Qr(this);[Oi]=null;[Rn]=null;[Go]=-1;[Vt];constructor(){super();let t=new fe(this,[pm,B,Or,st,vt]),e=new Proxy(this,{get:(o,s)=>{if(s in o||typeof s==="symbol")return t.bind(s),o[s];let n=Number(s);if(!isNaN(n))return mt.querySelectorAll(o,"option")[Q][n]},set(o,s,n){if(t.bind(s),typeof s==="symbol")return o[s]=n,!0;let l=Number(s);if(isNaN(l))return o[s]=n,!0;if(!n||!(n instanceof un))throw new o[m].Error(`TypeError: Failed to set an indexed property [${l}] on 'HTMLSelectElement': parameter 2 is not of type 'HTMLOptionElement'.`);let a=mt.querySelectorAll(o,"option")[Q],y=o[_];while(y.length)o[ur](y[0]);for(let u=0;u<=l;u++)if(u===l)o[Et](n);else if(a[u])o[Et](a[u]);else o[Et](o[x].createElement("option"));return!0},deleteProperty(o,s){if(typeof s==="symbol")return delete o[s],!0;let n=Number(s);if(isNaN(n))delete o[s];return!0},ownKeys(o){return Object.keys(mt.querySelectorAll(o,"option")[Q])},has(o,s){if(s in o)return!0;if(typeof s==="symbol")return!1;let n=Number(s);if(!isNaN(n))return!!mt.querySelectorAll(o,"option")[Q][n];return!1},defineProperty(o,s,n){t.preventBinding(s);let l=Number(s);if(isNaN(l))return Object.defineProperty(o,s,n),!0;if(!n.value||!(n.value instanceof un))throw new o[m].Error(`TypeError: Failed to set an indexed property [${l}] on 'HTMLSelectElement': parameter 2 is not of type 'HTMLOptionElement'.`);let a=mt.querySelectorAll(o,"option")[Q],y=o[_];while(y.length)o[ur](y[0]);for(let u=0;u<=l;u++)if(u===l)o[Et](n.value);else if(a[u])o[Et](a[u]);else o[Et](o[x].createElement("option"));return!0},getOwnPropertyDescriptor(o,s){if(s in o)return Object.getOwnPropertyDescriptor(o,s);let n=Number(s);if(isNaN(n))return;let l=mt.querySelectorAll(o,"option")[Q];if(!l[n])return;return{value:l[n],writable:!0,enumerable:!0,configurable:!0}}});return this[Vt]=e,this[Ie]=e,e}get onchange(){return S.getEventListener(this,"onchange")}set onchange(t){this[p].set("onchange",t)}get oninput(){return S.getEventListener(this,"oninput")}set oninput(t){this[p].set("oninput",t)}get length(){return mt.querySelectorAll(this,"option")[Q].length}get options(){if(!this[Oi])this[Oi]=new ym(h,this);return this[Oi]}get validationMessage(){return this[Ce]}get validity(){return this[Ke]}get name(){return this.getAttribute("name")||""}set name(t){this.setAttribute("name",t)}get disabled(){return this.getAttribute("disabled")!==null}set disabled(t){if(!t)this.removeAttribute("disabled");else this.setAttribute("disabled","")}get multiple(){return this.getAttribute("multiple")!==null}set multiple(t){if(!t)this.removeAttribute("multiple");else this.setAttribute("multiple","")}get autofocus(){return this.getAttribute("autofocus")!==null}set autofocus(t){if(!t)this.removeAttribute("autofocus");else this.setAttribute("autofocus","")}get required(){return this.getAttribute("required")!==null}set required(t){if(!t)this.removeAttribute("required");else this.setAttribute("required","")}get type(){return this.hasAttributeNS(null,"multiple")?"select-multiple":"select-one"}get value(){let t=mt.querySelectorAll(this,"option")[Q];for(let e=0,o=t.length;e<o;e++){let s=t[e];if(s[Ar])return s.value}return""}set value(t){let e=mt.querySelectorAll(this,"option")[Q];this[Go]=-1;for(let o=0,s=e.length;o<s;o++){let n=e[o];if(n.value===t)n[Ar]=!0,n[En]=!0,this[Go]=o;else n[Ar]=!1}}get selectedIndex(){return this[Go]}set selectedIndex(t){if(t=Number(t),isNaN(t))return;let e=mt.querySelectorAll(this,"option")[Q];if(this[Go]=-1,typeof t==="number"&&!isNaN(t)){for(let s=0,n=e.length;s<n;s++)e[s][Ar]=!1;let o=e[t];if(o)o[Ar]=!0,o[En]=!0,this[Go]=t}}get selectedOptions(){if(!this[Rn])this[Rn]=new de(h,()=>{let t=mt.querySelectorAll(this,"option")[Q];if(t[Rn])return t[Rn];let e=[];for(let o=0,s=t.length;o<s;o++){let n=t[o];if(n[Ar])e.push(n)}return t[Rn]=e,e});return this[Rn]}get labels(){return jr.getAssociatedLabelElements(this)}get form(){if(this[Gt])return this[Gt];let t=this.getAttribute("form");if(!t||!this[tt])return null;return this[x].getElementById(t)}get willValidate(){return this.type!=="hidden"&&this.type!=="reset"&&this.type!=="button"&&!this.disabled}get tabIndex(){let t=this.getAttribute("tabindex");if(t!==null){let e=Number(t);return isNaN(e)?0:e}return 0}set tabIndex(t){super.tabIndex=t}item(t){return this.options.item(t)}add(t,e){let o=mt.querySelectorAll(this,"option")[Q];if(!e&&e!==0){let a=this[_];while(a.length)this[ur](a[0]);for(let y of o)this[Et](y);this[Et](t);return}let s=this[m];if(typeof e!=="number"){if(!(e instanceof un))throw new s.DOMException("Failed to execute 'add' on 'HTMLFormElement': The node before which the new node is to be inserted before is not an 'HTMLOptionElement'.");e=o.indexOf(e)}if(!o[e])throw new s.DOMException("Failed to execute 'add' on 'HTMLFormElement': The node before which the new node is to be inserted before is not a child of this node.");let l=this[_];while(l.length)this[ur](l[0]);for(let a=0,y=o.length;a<y;a++){if(a===e)this[Et](t);this[Et](o[a])}}remove(t){if(typeof t==="number"){let e=mt.querySelectorAll(this,"option")[Q];if(!e[t])return;let o=this[_];while(o.length)this[ur](o[0]);for(let s=0,n=e.length;s<n;s++)if(s!==t)this[Et](e[s])}else super.remove()}setCustomValidity(t){this[Ce]=String(t)}checkValidity(){let t=this.disabled||this[Ke].valid;if(!t)this.dispatchEvent(new C("invalid",{bubbles:!0,cancelable:!0}));return t}reportValidity(){return this.checkValidity()}[Cn](t){let e=this.hasAttribute("multiple"),o=mt.querySelectorAll(this,"option")[Q],s=[];if(t)this[Go]=-1;if(!e)for(let l=0,a=o.length;l<a;l++){let y=o[l];if(t){if(y[Ar]=y===t,y===t)this[Go]=l}if(y[Ar])s.push(y)}if(this.#t()===1&&!s.length){this[Go]=-1;for(let l=0,a=o.length;l<a;l++){let y=o[l],u=y[W],c=y.hasAttributeNS(null,"disabled");if(u&&u[D]===T.elementNode&&u[z]==="OPTGROUP"&&u.hasAttributeNS(null,"disabled"))c=!0;if(!c){y[Ar]=!0,this[Go]=l;break}}}else if(s.length>=2){this[Go]=-1;for(let l=0,a=o.length;l<a;l++)if(o[l][Ar]=l===s.length-1,l===s.length-1)this[Go]=l}}#t(){if(this.hasAttributeNS(null,"size")){let t=parseInt(this.getAttribute("size"));if(!isNaN(t)&&t>=0)return t}return this.hasAttributeNS(null,"multiple")?4:1}}var sg;class ng extends B{[Ui]=[];get onslotchange(){return S.getEventListener(this,"onslotchange")}set onslotchange(t){this[p].set("onslotchange",t)}get name(){return this.getAttribute("name")||""}set name(t){this.setAttribute("name",t)}assign(...t){let e=this.getRootNode();if(e?.[Ai]!=="manual")return;let o=e.host;if(!o)return;for(let s of t)if(s instanceof st){if(o[_].includes(s)&&s[D]!==T.commentNode){if(s[zo]){let n=s[zo][Ui].indexOf(s);if(n!==-1)s[zo][Ui].splice(n,1)}s[zo]=this,this[Ui].push(s)}}}assignedNodes(t){return this.#t(this.name,t)}assignedElements(t){return this.#e(this.name,t)}[ht](t=!1){return super[ht](t)}[Re](t,e){if(super[Re](t,e),t[rt]==="name"&&t[q]!==e?.[q]){let o=this.#t(e?.[q]),s=this.#t(t.value);if(o.length!==s.length)this.dispatchEvent(new C("slotchange",{bubbles:!0}));else for(let n=0,l=s.length;n<l;n++)if(o[n]!==s[n]){this.dispatchEvent(new C("slotchange",{bubbles:!0}));break}}}[cr](t){if(super[cr](t),t[rt]==="name"&&t[q]&&this.#t(t.value).length>0)this.dispatchEvent(new C("slotchange",{bubbles:!0}))}#t(t,e){let o=this.getRootNode();if(!o?.host)return[];if(o[Ai]==="manual")return this[Ui];let s=o.host,n=!!e?.flatten,l=[];for(let a of s[_]){let y=a.slot;if(t&&y&&y===t||!t&&!y)if(n&&a instanceof sg)for(let u of a.assignedNodes(e))l.push(u);else l.push(a)}return l}#e(t,e){let o=this.getRootNode();if(!o?.host)return[];if(o[Ai]==="manual"){let a=[];for(let y of this[Ui])if(y instanceof Or)a.push(y);return a}let s=o.host,n=!!e?.flatten,l=[];for(let a of s[dt]){let y=a.slot;if(t&&y===t||!t&&!y)if(n&&a instanceof sg)for(let u of a.assignedElements(e))l.push(u);else l.push(a)}return l}}sg=ng;var lg=ng;class Tu extends B{get height(){let t=Number(this.getAttribute("height"));return isNaN(t)||t<0?0:t}set height(t){let e=Number(t);this.setAttribute("height",isNaN(e)||e<0?"0":String(e))}get width(){let t=Number(this.getAttribute("width"));return isNaN(t)||t<0?0:t}set width(t){let e=Number(t);this.setAttribute("width",isNaN(e)||e<0?"0":String(e))}get media(){return this.getAttribute("media")||""}set media(t){this.setAttribute("media",t)}get sizes(){return this.getAttribute("sizes")||""}set sizes(t){this.setAttribute("sizes",t)}get src(){if(!this.hasAttribute("src"))return"";try{return new URL(this.getAttribute("src"),this[x].location.href).href}catch(t){return this.getAttribute("src")||""}}set src(t){this.setAttribute("src",t)}get srcset(){return this.getAttribute("srcset")||""}set srcset(t){this.setAttribute("srcset",t)}get type(){return this.getAttribute("type")||""}set type(t){this.setAttribute("type",t)}}class Cu extends B{}class Nu extends B{[Be]=null;[hr]=this;[Gn]=!1;get media(){return this.getAttribute("media")||""}set media(t){this.setAttribute("media",t)}get type(){return this.getAttribute("type")||""}set type(t){this.setAttribute("type",t)}get disabled(){return this[Gn]}set disabled(t){this[Gn]=Boolean(t)}get sheet(){if(!this[tt])return null;if(!this[Be])this[Be]=new this[x][m].CSSStyleSheet,this[Be].replaceSync(this.textContent);return this[Be]}[nr](){super[nr](),this[Be]=null}[At](){super[At](),this[Be]=null}[Fn](){if(this[Be])this[Be].replaceSync(this.textContent)}}class aa extends B{}class Lu extends B{get abbr(){return this.getAttribute("abbr")||""}set abbr(t){this.setAttribute("abbr",t)}get cellIndex(){let t=this.parentNode;while(t){if(t[z]==="TR")return mt.querySelectorAll(t,"td,th")[Q].indexOf(this);t=t.parentNode}return-1}get colSpan(){let t=Number(this.getAttribute("colspan"));return isNaN(t)||t<1?1:t}set colSpan(t){let e=Number(t);this.setAttribute("colspan",isNaN(e)||e<1?"1":String(e))}get headers(){return this.getAttribute("headers")||""}set headers(t){this.setAttribute("headers",String(t))}get rowSpan(){let t=Number(this.getAttribute("rowspan"));return isNaN(t)||t<1?1:t}set rowSpan(t){let e=Number(t);this.setAttribute("rowspan",isNaN(e)||e<1?"1":String(e))}get scope(){return this.getAttribute("scope")||""}set scope(t){this.setAttribute("scope",t)}}class ku extends B{}class As extends B{insertRow(t=-1){if(typeof t!=="number")t=-1;let e=mt.querySelectorAll(this,"tr")[Q];if(t<-1)throw new this[m].DOMException(`Failed to execute 'insertRow' on 'HTMLTableSectionElement': The index provided (${t}) is less than -1.`,w.indexSizeError);if(t>e.length)throw new this[m].DOMException(`Failed to execute 'insertRow' on 'HTMLTableSectionElement': The index provided (${t}) is greater than the number of rows (${e.length}).`,w.indexSizeError);let o=this[x].createElement("tr");if(t===-1||t===e.length)this.appendChild(o);else this.insertBefore(o,e[t]);return o}deleteRow(t){if(arguments.length===0)throw new this[m].TypeError("Failed to execute 'deleteRow' on 'HTMLTableSectionElement': 1 argument required, but only 0 present.");if(typeof t!=="number")t=-1;if(t<-1)throw new this[m].DOMException(`Failed to execute 'deleteRow' on 'HTMLTableSectionElement': The index provided (${t}) is less than -1.`,w.indexSizeError);let e=mt.querySelectorAll(this,"tr")[Q];if(t>=e.length)throw new this[m].DOMException(`Failed to execute 'deleteRow' on 'HTMLTableSectionElement': The index provided (${t}) is greater than the number of rows in the table (${e.length}).`,w.indexSizeError);if(t===-1)t=e.length-1;e[t].remove()}}class Mu extends B{[Fm]=null;[Vm]=null;get caption(){return mt.querySelector(this,"caption")}set caption(t){if(t){if(!(t instanceof aa))throw new this[m].TypeError("Failed to set the 'caption' property on 'HTMLTableElement': Failed to convert value to 'HTMLTableCaptionElement'.");this.caption?.remove(),this.insertBefore(t,this.firstChild)}else this.caption?.remove()}get tHead(){return mt.querySelector(this,"thead")}set tHead(t){if(t){if(!(t instanceof As))throw new this[m].TypeError("Failed to set the 'tHead' property on 'HTMLTableElement': Failed to convert value to 'HTMLTableSectionElement'.");this.tHead?.remove();let e=!1;for(let o of this[dt])if(o[z]!=="CAPTION"&&o[z]!=="COLGROUP"){this.insertBefore(t,o),e=!0;break}if(!e)this.appendChild(t)}else this.tHead?.remove()}get tFoot(){return mt.querySelector(this,"tfoot")}set tFoot(t){if(t){if(!(t instanceof As))throw new this[m].TypeError("Failed to set the 'tFoot' property on 'HTMLTableElement': Failed to convert value to 'HTMLTableSectionElement'.");this.tFoot?.remove();let e=!1;for(let o of this[dt])if(o[z]!=="CAPTION"&&o[z]!=="COLGROUP"&&o[z]!=="THEAD"){this.insertBefore(t,o),e=!0;break}if(!e)this.appendChild(t)}else this.tFoot?.remove()}get rows(){if(!this[Fm])this[Fm]=new de(h,()=>mt.querySelectorAll(this,"tr")[Q]);return this[Fm]}get tBodies(){if(!this[Vm])this[Vm]=new de(h,()=>mt.querySelectorAll(this,"tbody")[Q]);return this[Vm]}createTHead(){let t=this.tHead;if(t)return t;let e=this[x].createElement("thead");return this.tHead=e,e}deleteTHead(){this.tHead=null}createTFoot(){let t=this.tFoot;if(t)return t;let e=this[x].createElement("tfoot");return this.tFoot=e,e}deleteTFoot(){this.tFoot=null}createTBody(){let t=mt.querySelectorAll(this,"tbody")[Q],e=this[x].createElement("tbody");if(t.length>0){let o=t[t.length-1];return o.parentNode?.insertBefore(e,o.nextSibling),e}return this.appendChild(e),e}createCaption(){let t=this.caption;if(t)return t;let e=this[x].createElement("caption");return this.caption=e,e}deleteCaption(){this.caption=null}insertRow(t=-1){if(typeof t!=="number")t=-1;let e=mt.querySelectorAll(this,"tr")[Q];if(t<-1)throw new this[m].DOMException(`Failed to execute 'insertRow' on 'HTMLTableElement': The index provided (${t}) is less than -1.`,w.indexSizeError);if(t>e.length)throw new this[m].DOMException(`Failed to execute 'insertRow' on 'HTMLTableElement': The index provided (${t}) is greater than the number of rows (${e.length}).`,w.indexSizeError);let o=this[x].createElement("tr");if(t===-1||t===e.length){let s=mt.querySelector(this,"tbody");if(s)s.appendChild(o);else{let n=this[x].createElement("tbody");n.appendChild(o),this.appendChild(n)}return o}return e[t].parentNode?.insertBefore(o,e[t]),o}deleteRow(t){if(arguments.length===0)throw new this[m].TypeError("Failed to execute 'deleteRow' on 'HTMLTableElement': 1 argument required, but only 0 present.");if(typeof t!=="number")t=-1;if(t<-1)throw new this[m].DOMException(`Failed to execute 'deleteRow' on 'HTMLTableElement': The index provided (${t}) is less than -1.`,w.indexSizeError);let e=mt.querySelectorAll(this,"tr")[Q];if(t>=e.length)throw new this[m].DOMException(`Failed to execute 'deleteRow' on 'HTMLTableElement': The index provided (${t}) is greater than the number of rows in the table (${e.length}).`,w.indexSizeError);if(t===-1)t=e.length-1;e[t].remove()}}class Iu extends B{[Rm]=null;get cells(){if(!this[Rm])this[Rm]=new de(h,()=>mt.querySelectorAll(this,"td,th")[Q]);return this[Rm]}get rowIndex(){let t=this.parentNode;while(t){if(t[z]==="TABLE")return mt.querySelectorAll(t,"tr")[Q].indexOf(this);t=t.parentNode}return-1}get sectionRowIndex(){let t=this.parentNode;while(t){if(t instanceof As)return mt.querySelectorAll(t,"tr")[Q].indexOf(this);t=t.parentNode}return-1}insertCell(t=-1){if(typeof t!=="number")t=-1;let e=mt.querySelectorAll(this,"td,th")[Q];if(t<-1)throw new this[m].DOMException(`Failed to execute 'insertCell' on 'HTMLTableRowElement': The index provided (${t}) is less than -1.`,w.indexSizeError);if(t>e.length)throw new this[m].DOMException(`Failed to execute 'insertCell' on 'HTMLTableRowElement': The index provided (${t}) is greater than the number of cells (${e.length}).`,w.indexSizeError);let o=this[x].createElement("td");if(t===-1||t===e.length)return this.appendChild(o),o;return e[t].parentNode?.insertBefore(o,e[t]),o}deleteCell(t){if(arguments.length===0)throw new this[m].TypeError("Failed to execute 'deleteCell' on 'HTMLTableRowElement': 1 argument required, but only 0 present.");if(typeof t!=="number")t=-1;if(t<-1)throw new this[m].DOMException(`Failed to execute 'deleteCell' on 'HTMLTableRowElement': The index provided (${t}) is less than -1.`,w.indexSizeError);let e=mt.querySelectorAll(this,"td,th")[Q];if(t>=e.length)throw new this[m].DOMException(`Failed to execute 'deleteCell' on 'HTMLTableRowElement': The index provided (${t}) is greater than the number of cells in the row (${e.length}).`,w.indexSizeError);if(t===-1)t=e.length-1;e[t].remove()}}class Ru extends B{[oo]=this[x].createDocumentFragment();get content(){return this[oo]}get innerHTML(){return this.getHTML()}set innerHTML(t){let e=this[oo],o=e[_];while(o.length)e.removeChild(o[0]);new Cr(this[m],{isTemplateDocumentFragment:!0}).parse(t,this[oo])}get firstChild(){return this[oo].firstChild}get lastChild(){return this[oo].lastChild}getInnerHTML(t){let e=new ni,o=this[oo],s="";for(let n of o[_])s+=e.serializeToString(n);return s}getHTML(t){let e=new ni,o=this[oo],s="";for(let n of o[_])s+=e.serializeToString(n);return s}[Et](t,e=!1){return this[oo][Et](t,e)}[ur](t){return this[oo][ur](t)}[kr](t,e,o=!1){return this[oo][kr](t,e,o)}[La](t,e){return this[oo][La](t,e)}[ht](t=!1){let e=super[ht](t);return e[oo]=this[oo].cloneNode(t),e}}class Fu extends B{type="textarea";[Ce]="";[Ke]=new Qr(this);[q]=null;[ze]=this;[Gt]=null;#t=null;#e=null;#r=go.none;get oninput(){return S.getEventListener(this,"oninput")}set oninput(t){this[p].set("oninput",t)}get onselectionchange(){return S.getEventListener(this,"onselectionchange")}set onselectionchange(t){this[p].set("onselectionchange",t)}get validationMessage(){return this[Ce]}get validity(){return this[Ke]}get defaultValue(){return this.textContent}set defaultValue(t){this.textContent=t}get minLength(){let t=this.getAttribute("minlength");if(t!==null)return parseInt(t);return-1}set minLength(t){this.setAttribute("minlength",String(t))}get maxLength(){let t=this.getAttribute("maxlength");if(t!==null)return parseInt(t);return-1}set maxLength(t){this.setAttribute("maxlength",String(t))}get name(){return this.getAttribute("name")||""}set name(t){this.setAttribute("name",t)}get placeholder(){return this.getAttribute("placeholder")||""}set placeholder(t){this.setAttribute("placeholder",t)}get inputMode(){return this.getAttribute("inputmode")||""}set inputMode(t){this.setAttribute("inputmode",t)}get cols(){return this.getAttribute("cols")||""}set cols(t){this.setAttribute("cols",t)}get rows(){return this.getAttribute("rows")||""}set rows(t){this.setAttribute("rows",t)}get autocomplete(){return this.getAttribute("autocomplete")||""}set autocomplete(t){this.setAttribute("autocomplete",t)}get readOnly(){return this.getAttribute("readonly")!==null}set readOnly(t){if(!t)this.removeAttribute("readonly");else this.setAttribute("readonly","")}get disabled(){return this.getAttribute("disabled")!==null}set disabled(t){if(!t)this.removeAttribute("disabled");else this.setAttribute("disabled","")}get autofocus(){return this.getAttribute("autofocus")!==null}set autofocus(t){if(!t)this.removeAttribute("autofocus");else this.setAttribute("autofocus","")}get required(){return this.getAttribute("required")!==null}set required(t){if(!t)this.removeAttribute("required");else this.setAttribute("required","")}get value(){if(this[q]===null)return this.textContent;return this[q]}set value(t){let e=this[q];if(this[q]=t,e!==this[q])this.#t=this[q].length,this.#e=this[q].length,this.#r=go.none}get selectionStart(){if(this.#t===null)return this.value.length;return this.#t}set selectionStart(t){this.setSelectionRange(t,Math.max(t,this.selectionEnd),this.#r)}get selectionEnd(){if(this.#e===null)return this.value.length;return this.#e}set selectionEnd(t){this.setSelectionRange(this.selectionStart,t,this.#r)}get selectionDirection(){return this.#r}set selectionDirection(t){this.setSelectionRange(this.selectionStart,this.selectionEnd,t)}get form(){if(this[Gt])return this[Gt];let t=this.getAttribute("form");if(!t||!this[tt])return null;return this[x].getElementById(t)}get textLength(){return this.value.length}get labels(){return jr.getAssociatedLabelElements(this)}get tabIndex(){let t=this.getAttribute("tabindex");if(t!==null){let e=Number(t);return isNaN(e)?0:e}return 0}set tabIndex(t){super.tabIndex=t}select(){this.#t=0,this.#e=this.value.length,this.#r=go.none,this.dispatchEvent(new C("select",{bubbles:!0,cancelable:!1}))}setSelectionRange(t,e,o="none"){this.#e=Math.min(e,this.value.length),this.#t=Math.min(t,this.selectionEnd),this.#r=o===go.forward||o===go.backward?o:go.none,this.dispatchEvent(new C("select",{bubbles:!0,cancelable:!1}))}setRangeText(t,e=null,o=null,s=Ps.preserve){if(e===null)e=this.#t!==null?this.#t:0;if(o===null)o=this.#e!==null?this.#e:this.value.length;if(e>o)throw new this[m].DOMException("The index is not in the allowed range.",w.invalidStateError);e=Math.min(e,this.value.length),o=Math.min(o,this.value.length);let n=this.value,l=this.#t!==null?this.#t:0,a=this.#e!==null?this.#e:this.value.length;this.value=n.slice(0,e)+t+n.slice(o);let y=e+this.value.length;switch(s){case Ps.select:this.setSelectionRange(e,y);break;case Ps.start:this.setSelectionRange(e,e);break;case Ps.end:this.setSelectionRange(y,y);break;default:let u=t.length-(o-e);if(l>o)l+=u;else if(l>e)l=e;if(a>o)a+=u;else if(a>e)a=y;this.setSelectionRange(l,a);break}}setCustomValidity(t){this[Ce]=String(t)}checkValidity(){let t=this.disabled||this.readOnly||this[Ke].valid;if(!t)this.dispatchEvent(new C("invalid",{bubbles:!0,cancelable:!0}));return t}reportValidity(){return this.checkValidity()}[ht](t=!1){let e=super[ht](t);return e[q]=this[q],e.#t=this.#t,e.#e=this.#e,e.#r=this.#r,e}[Ea](){if(this[q]===null)this.#t=null,this.#e=null,this.#r=go.none}}class Vu extends B{get dateTime(){return this.getAttribute("dateTime")||""}set dateTime(t){this.setAttribute("dateTime",t)}}class Du extends B{get text(){let t="";for(let e of this[_])if(e[D]===T.textNode)t+=e.textContent;return t}set text(t){this.textContent=t}get innerHTML(){return this.getHTML()}set innerHTML(t){this.textContent=t}}class Bu extends B{get oncuechange(){return S.getEventListener(this,"oncuechange")}set oncuechange(t){this[p].set("oncuechange",t)}get kind(){let t=this.getAttribute("kind");if(t===null)return Ss.subtitles;if(!Ss[t])return Ss.metadata;return t}set kind(t){if(!Ss[t])t=Ss.metadata;this.setAttribute("kind",t)}get src(){if(!this.hasAttribute("src"))return"";try{return new URL(this.getAttribute("src"),this[x].location.href).href}catch(t){return this.getAttribute("src")||""}}set src(t){this.setAttribute("src",t)}get srclang(){return this.getAttribute("srclang")||""}set srclang(t){this.setAttribute("srclang",t)}get label(){return this.getAttribute("label")||""}set label(t){this.setAttribute("label",t)}get default(){return this.hasAttribute("default")}set default(t){if(t)this.setAttribute("default","");else this.removeAttribute("default")}get readyState(){return 0}get track(){let t=new this[m].TextTrack(h);return t[wo]=this.kind,t[Os]=this.label,t[Il]=this.srclang,t[Ee]=this.default?"showing":"disabled",t[Bm]=this.id,t}}class Ou extends B{}class Gu extends B{}class Uu extends an{}class Hu extends bs{[D]=T.processingInstructionNode;[wr]="";get target(){return this[wr]}}class ma extends st{[ir]=null;[ve]=this;[D]=T.documentFragmentNode;get children(){if(!this[ir]){let t=this[dt];this[ir]=new de(h,()=>t)}return this[ir]}get childElementCount(){return this[dt].length}get firstElementChild(){return this[dt][0]??null}get lastElementChild(){let t=this[dt];return t[t.length-1]??null}get textContent(){let t="";for(let e of this[_])if(e[D]===T.elementNode||e[D]===T.textNode)t+=e.textContent;return t}set textContent(t){let e=this[_];while(e.length)this.removeChild(e[0]);if(t)this.appendChild(this[x].createTextNode(t))}append(...t){oe.append(this,...t)}prepend(...t){oe.prepend(this,...t)}replaceChildren(...t){oe.replaceChildren(this,...t)}querySelectorAll(t){return mt.querySelectorAll(this,t)}querySelector(t){return mt.querySelector(this,t)}getElementById(t){return oe.getElementById(this,t)}}class Wu extends ma{[Rs]=[];[Ee]="open";[Mn]=null;[Bn]=!1;[kl]=!1;[Gi]=!1;[Ai]="named";[p]=new Map;get onslotchange(){return this[p].get("onslotchange")??null}set onslotchange(t){this[p].set("onslotchange",t)}get mode(){return this[Ee]}get host(){return this[Mn]}get clonable(){return this[Bn]}get delegatesFocus(){return this[kl]}get serializable(){return this[Gi]}get slotAssignment(){return this[Ai]}get fullscreenElement(){return null}get pictureInPictureElement(){return null}get pointerLockElement(){return null}get innerHTML(){let t=new ni,e="";for(let o of this[_])e+=t.serializeToString(o);return e}set innerHTML(t){let e=this[_];while(e.length)this.removeChild(e[0]);new Cr(this[m]).parse(t,this)}get adoptedStyleSheets(){return this[Rs]}set adoptedStyleSheets(t){this[Rs]=t}get activeElement(){let t=this[x][Me],e=t?.getRootNode();if(!e||e===this[x])return null;if(e===this)return t;while(e&&e!==this)t=e.host,e=t.getRootNode();return t}getAnimations(){return[]}setHTMLUnsafe(t){let e=this[_];while(e.length)this.removeChild(e[0]);new Cr(this[m]).parse(t,this)}toString(){return this.innerHTML}[ht](t=!1){let e=super[ht](t);return e[Ee]=this[Ee],e[Bn]=this[Bn],e[kl]=this[kl],e[Gi]=this[Gi],e[Ai]=this[Ai],e}}class et extends Or{[ge]=null;#t=null;get onabort(){return S.getEventListener(this,"onabort")}set onabort(t){this[p].set("onabort",t)}get onanimationend(){return S.getEventListener(this,"onanimationend")}set onanimationend(t){this[p].set("onanimationend",t)}get onanimationiteration(){return S.getEventListener(this,"onanimationiteration")}set onanimationiteration(t){this[p].set("onanimationiteration",t)}get onanimationstart(){return S.getEventListener(this,"onanimationstart")}set onanimationstart(t){this[p].set("onanimationstart",t)}get onauxclick(){return S.getEventListener(this,"onauxclick")}set onauxclick(t){this[p].set("onauxclick",t)}get onblur(){return S.getEventListener(this,"onblur")}set onblur(t){this[p].set("onblur",t)}get oncancel(){return S.getEventListener(this,"oncancel")}set oncancel(t){this[p].set("oncancel",t)}get oncanplay(){return S.getEventListener(this,"oncanplay")}set oncanplay(t){this[p].set("oncanplay",t)}get oncanplaythrough(){return S.getEventListener(this,"oncanplaythrough")}set oncanplaythrough(t){this[p].set("oncanplaythrough",t)}get onchange(){return S.getEventListener(this,"onchange")}set onchange(t){this[p].set("onchange",t)}get onclick(){return S.getEventListener(this,"onclick")}set onclick(t){this[p].set("onclick",t)}get onclose(){return S.getEventListener(this,"onclose")}set onclose(t){this[p].set("onclose",t)}get oncontextmenu(){return S.getEventListener(this,"oncontextmenu")}set oncontextmenu(t){this[p].set("oncontextmenu",t)}get oncopy(){return S.getEventListener(this,"oncopy")}set oncopy(t){this[p].set("oncopy",t)}get oncuechange(){return S.getEventListener(this,"oncuechange")}set oncuechange(t){this[p].set("oncuechange",t)}get oncut(){return S.getEventListener(this,"oncut")}set oncut(t){this[p].set("oncut",t)}get ondblclick(){return S.getEventListener(this,"ondblclick")}set ondblclick(t){this[p].set("ondblclick",t)}get ondrag(){return S.getEventListener(this,"ondrag")}set ondrag(t){this[p].set("ondrag",t)}get ondragend(){return S.getEventListener(this,"ondragend")}set ondragend(t){this[p].set("ondragend",t)}get ondragenter(){return S.getEventListener(this,"ondragenter")}set ondragenter(t){this[p].set("ondragenter",t)}get ondragleave(){return S.getEventListener(this,"ondragleave")}set ondragleave(t){this[p].set("ondragleave",t)}get ondragover(){return S.getEventListener(this,"ondragover")}set ondragover(t){this[p].set("ondragover",t)}get ondragstart(){return S.getEventListener(this,"ondragstart")}set ondragstart(t){this[p].set("ondragstart",t)}get ondrop(){return S.getEventListener(this,"ondrop")}set ondrop(t){this[p].set("ondrop",t)}get ondurationchange(){return S.getEventListener(this,"ondurationchange")}set ondurationchange(t){this[p].set("ondurationchange",t)}get onemptied(){return S.getEventListener(this,"onemptied")}set onemptied(t){this[p].set("onemptied",t)}get onended(){return S.getEventListener(this,"onended")}set onended(t){this[p].set("onended",t)}get onerror(){return S.getEventListener(this,"onerror")}set onerror(t){this[p].set("onerror",t)}get onfocus(){return S.getEventListener(this,"onfocus")}set onfocus(t){this[p].set("onfocus",t)}get onformdata(){return S.getEventListener(this,"onformdata")}set onformdata(t){this[p].set("onformdata",t)}get ongotpointercapture(){return S.getEventListener(this,"ongotpointercapture")}set ongotpointercapture(t){this[p].set("ongotpointercapture",t)}get oninput(){return S.getEventListener(this,"oninput")}set oninput(t){this[p].set("oninput",t)}get oninvalid(){return S.getEventListener(this,"oninvalid")}set oninvalid(t){this[p].set("oninvalid",t)}get onkeydown(){return S.getEventListener(this,"onkeydown")}set onkeydown(t){this[p].set("onkeydown",t)}get onkeypress(){return S.getEventListener(this,"onkeypress")}set onkeypress(t){this[p].set("onkeypress",t)}get onkeyup(){return S.getEventListener(this,"onkeyup")}set onkeyup(t){this[p].set("onkeyup",t)}get onload(){return S.getEventListener(this,"onload")}set onload(t){this[p].set("onload",t)}get onloadeddata(){return S.getEventListener(this,"onloadeddata")}set onloadeddata(t){this[p].set("onloadeddata",t)}get onloadedmetadata(){return S.getEventListener(this,"onloadedmetadata")}set onloadedmetadata(t){this[p].set("onloadedmetadata",t)}get onloadstart(){return S.getEventListener(this,"onloadstart")}set onloadstart(t){this[p].set("onloadstart",t)}get onlostpointercapture(){return S.getEventListener(this,"onlostpointercapture")}set onlostpointercapture(t){this[p].set("onlostpointercapture",t)}get onmousedown(){return S.getEventListener(this,"onmousedown")}set onmousedown(t){this[p].set("onmousedown",t)}get onmouseenter(){return S.getEventListener(this,"onmouseenter")}set onmouseenter(t){this[p].set("onmouseenter",t)}get onmouseleave(){return S.getEventListener(this,"onmouseleave")}set onmouseleave(t){this[p].set("onmouseleave",t)}get onmousemove(){return S.getEventListener(this,"onmousemove")}set onmousemove(t){this[p].set("onmousemove",t)}get onmouseout(){return S.getEventListener(this,"onmouseout")}set onmouseout(t){this[p].set("onmouseout",t)}get onmouseover(){return S.getEventListener(this,"onmouseover")}set onmouseover(t){this[p].set("onmouseover",t)}get onmouseup(){return S.getEventListener(this,"onmouseup")}set onmouseup(t){this[p].set("onmouseup",t)}get onmousewheel(){return S.getEventListener(this,"onmousewheel")}set onmousewheel(t){this[p].set("onmousewheel",t)}get onpaste(){return S.getEventListener(this,"onpaste")}set onpaste(t){this[p].set("onpaste",t)}get onpause(){return S.getEventListener(this,"onpause")}set onpause(t){this[p].set("onpause",t)}get onplay(){return S.getEventListener(this,"onplay")}set onplay(t){this[p].set("onplay",t)}get onplaying(){return S.getEventListener(this,"onplaying")}set onplaying(t){this[p].set("onplaying",t)}get onpointercancel(){return S.getEventListener(this,"onpointercancel")}set onpointercancel(t){this[p].set("onpointercancel",t)}get onpointerdown(){return S.getEventListener(this,"onpointerdown")}set onpointerdown(t){this[p].set("onpointerdown",t)}get onpointerenter(){return S.getEventListener(this,"onpointerenter")}set onpointerenter(t){this[p].set("onpointerenter",t)}get onpointerleave(){return S.getEventListener(this,"onpointerleave")}set onpointerleave(t){this[p].set("onpointerleave",t)}get onpointermove(){return S.getEventListener(this,"onpointermove")}set onpointermove(t){this[p].set("onpointermove",t)}get onpointerout(){return S.getEventListener(this,"onpointerout")}set onpointerout(t){this[p].set("onpointerout",t)}get onpointerover(){return S.getEventListener(this,"onpointerover")}set onpointerover(t){this[p].set("onpointerover",t)}get onpointerrawupdate(){return S.getEventListener(this,"onpointerrawupdate")}set onpointerrawupdate(t){this[p].set("onpointerrawupdate",t)}get onpointerup(){return S.getEventListener(this,"onpointerup")}set onpointerup(t){this[p].set("onpointerup",t)}get onprogress(){return S.getEventListener(this,"onprogress")}set onprogress(t){this[p].set("onprogress",t)}get onratechange(){return S.getEventListener(this,"onratechange")}set onratechange(t){this[p].set("onratechange",t)}get onreset(){return S.getEventListener(this,"onreset")}set onreset(t){this[p].set("onreset",t)}get onresize(){return S.getEventListener(this,"onresize")}set onresize(t){this[p].set("onresize",t)}get onscroll(){return S.getEventListener(this,"onscroll")}set onscroll(t){this[p].set("onscroll",t)}get onscrollend(){return S.getEventListener(this,"onscrollend")}set onscrollend(t){this[p].set("onscrollend",t)}get onscrollsnapchange(){return S.getEventListener(this,"onscrollsnapchange")}set onscrollsnapchange(t){this[p].set("onscrollsnapchange",t)}get onscrollsnapchanging(){return S.getEventListener(this,"onscrollsnapchanging")}set onscrollsnapchanging(t){this[p].set("onscrollsnapchanging",t)}get onsecuritypolicyviolation(){return S.getEventListener(this,"onsecuritypolicyviolation")}set onsecuritypolicyviolation(t){this[p].set("onsecuritypolicyviolation",t)}get onseeked(){return S.getEventListener(this,"onseeked")}set onseeked(t){this[p].set("onseeked",t)}get onseeking(){return S.getEventListener(this,"onseeking")}set onseeking(t){this[p].set("onseeking",t)}get onselect(){return S.getEventListener(this,"onselect")}set onselect(t){this[p].set("onselect",t)}get onselectionchange(){return S.getEventListener(this,"onselectionchange")}set onselectionchange(t){this[p].set("onselectionchange",t)}get onselectstart(){return S.getEventListener(this,"onselectstart")}set onselectstart(t){this[p].set("onselectstart",t)}get onslotchange(){return S.getEventListener(this,"onslotchange")}set onslotchange(t){this[p].set("onslotchange",t)}get onstalled(){return S.getEventListener(this,"onstalled")}set onstalled(t){this[p].set("onstalled",t)}get onsubmit(){return S.getEventListener(this,"onsubmit")}set onsubmit(t){this[p].set("onsubmit",t)}get onsuspend(){return S.getEventListener(this,"onsuspend")}set onsuspend(t){this[p].set("onsuspend",t)}get ontimeupdate(){return S.getEventListener(this,"ontimeupdate")}set ontimeupdate(t){this[p].set("ontimeupdate",t)}get ontoggle(){return S.getEventListener(this,"ontoggle")}set ontoggle(t){this[p].set("ontoggle",t)}get ontransitioncancel(){return S.getEventListener(this,"ontransitioncancel")}set ontransitioncancel(t){this[p].set("ontransitioncancel",t)}get ontransitionend(){return S.getEventListener(this,"ontransitionend")}set ontransitionend(t){this[p].set("ontransitionend",t)}get ontransitionrun(){return S.getEventListener(this,"ontransitionrun")}set ontransitionrun(t){this[p].set("ontransitionrun",t)}get ontransitionstart(){return S.getEventListener(this,"ontransitionstart")}set ontransitionstart(t){this[p].set("ontransitionstart",t)}get onvolumechange(){return S.getEventListener(this,"onvolumechange")}set onvolumechange(t){this[p].set("onvolumechange",t)}get onwaiting(){return S.getEventListener(this,"onwaiting")}set onwaiting(t){this[p].set("onwaiting",t)}get onwheel(){return S.getEventListener(this,"onwheel")}set onwheel(t){this[p].set("onwheel",t)}get ownerSVGElement(){let t=this[W];while(t){if(t[ot]==="svg")return t;t=t[W]}return null}get viewportElement(){return this.ownerSVGElement}get dataset(){return this.#t??=new rm(h,this)}get style(){if(!this[ge])this[ge]=new Yr(h,this[m],{element:this});return this[ge]}get tabIndex(){let t=this.getAttribute("tabindex");return t!==null?Number(t):-1}set tabIndex(t){if(t===-1)this.removeAttribute("tabindex");else this.setAttribute("tabindex",String(t))}blur(){il.blur(this)}focus(){il.focus(this)}}class _u{observe(){}unobserve(){}disconnect(){}}class ul extends vt{width=1024;height=768;availWidth=1024;availHeight=768;colorDepth=24;pixelDepth=24;onchange=null}class ya extends ul{availLeft=0;availTop=0;left=0;top=0;isPrimary=!0;isInternal=!0;devicePixelRatio=1;label=""}class um extends vt{currentScreen;screens;oncurrentscreenchange=null;onscreenschange=null;constructor(){super();let t=new ya;this.currentScreen=t,this.screens=[t]}}class ue{static compareBoundaryPointsPosition(t,e){if(t.node===e.node){if(t.offset===e.offset)return 0;else if(t.offset<e.offset)return-1;return 1}if(ft.isFollowing(t.node,e.node))return this.compareBoundaryPointsPosition(e,t)===-1?1:-1;if(ft.isInclusiveAncestor(t.node,e.node)){let o=e.node;while(o[W]!==t.node)o=o[W];if(o[W][_].indexOf(o)<t.offset)return 1}return-1}static validateBoundaryPoint(t){if(t.node[D]===T.documentTypeNode)throw new re("DocumentType Node can't be used as boundary point.",w.invalidNodeTypeError);if(t.offset>ft.getNodeLength(t.node))throw new re("Offset out of bound.",w.indexSizeError)}static isContained(t,e){return this.compareBoundaryPointsPosition({node:t,offset:0},{node:e.startContainer,offset:e.startOffset})===1&&this.compareBoundaryPointsPosition({node:t,offset:ft.getNodeLength(t)},{node:e.endContainer,offset:e.endOffset})===-1}static isPartiallyContained(t,e){return ft.isInclusiveAncestor(t,e.startContainer)&&!ft.isInclusiveAncestor(t,e.endContainer)||!ft.isInclusiveAncestor(t,e.startContainer)&&ft.isInclusiveAncestor(t,e.endContainer)}}var ag;(function(t){t[t.forwards=1]="forwards",t[t.backwards=-1]="backwards",t[t.directionless=0]="directionless"})(ag||(ag={}));var li=ag;class pa{#t;#e=null;#r=li.directionless;constructor(t){this.#t=t}get rangeCount(){return this.#e?1:0}get isCollapsed(){return this.#e===null||this.#e.collapsed}get type(){if(!this.#e)return"None";else if(this.#e.collapsed)return"Caret";return"Range"}get anchorNode(){if(!this.#e)return null;return this.#r===li.forwards?this.#e.startContainer:this.#e.endContainer}get anchorOffset(){if(!this.#e)return 0;return this.#r===li.forwards?this.#e.startOffset:this.#e.endOffset}get baseNode(){return this.anchorNode}get baseOffset(){return this.anchorOffset}get focusNode(){if(!this.#e)return null;return this.#r===li.forwards?this.#e.endContainer:this.#e.startContainer}get focusOffset(){if(!this.#e)return 0;return this.#r===li.forwards?this.#e.endOffset:this.#e.startOffset}get extentNode(){return this.focusNode}get extentOffset(){return this.focusOffset}addRange(t){if(!t)throw new this.#t[m].TypeError("Failed to execute addRange on Selection. Parameter 1 is not of type Range.");if(!this.#e&&t[x]===this.#t)this.#o(t)}getRangeAt(t){if(!this.#e||t!==0)throw new this.#t[m].DOMException("Invalid range index.",w.indexSizeError);return this.#e}removeRange(t){if(this.#e!==t)throw new this.#t[m].DOMException("Invalid range.",w.notFoundError);this.#o(null)}removeAllRanges(){this.#o(null)}empty(){this.removeAllRanges()}collapse(t,e){if(t===null){this.removeAllRanges();return}if(t[D]===T.documentTypeNode)throw new this.#t[m].DOMException("DocumentType Node can't be used as boundary point.",w.invalidNodeTypeError);if(e>ft.getNodeLength(t))throw new this.#t[m].DOMException("Invalid range index.",w.indexSizeError);if(t!==this.#t&&t[x]!==this.#t)return;let o=new this.#t[m].Range;o[O].node=t,o[O].offset=e,o[Y].node=t,o[Y].offset=e,this.#o(o)}setPosition(t,e){this.collapse(t,e)}collapseToEnd(){if(this.#e===null)throw new this.#t[m].DOMException("There is no selection to collapse.",w.invalidStateError);let{node:t,offset:e}=this.#e[Y],o=new this.#t[m].Range;o[O].node=t,o[O].offset=e,o[Y].node=t,o[Y].offset=e,this.#o(o)}collapseToStart(){if(!this.#e)throw new this.#t[m].DOMException("There is no selection to collapse.",w.invalidStateError);let{node:t,offset:e}=this.#e[O],o=new this.#t[m].Range;o[O].node=t,o[O].offset=e,o[Y].node=t,o[Y].offset=e,this.#o(o)}containsNode(t,e=!1){if(!this.#e||t[x]!==this.#t)return!1;let o=ue.compareBoundaryPointsPosition(this.#e[O],{node:t,offset:0})===-1,s=ue.compareBoundaryPointsPosition(this.#e[Y],{node:t,offset:ft.getNodeLength(t)})===1;return e?o||s:o&&s}deleteFromDocument(){if(this.#e)this.#e.deleteContents()}extend(t,e){if(t!==this.#t&&t[x]!==this.#t)return;if(!this.#e)throw new this.#t[m].DOMException("There is no selection to extend.",w.invalidStateError);let o=this.anchorNode,s=this.anchorOffset,n=new this.#t[m].Range;if(n[O].node=t,n[O].offset=0,n[Y].node=t,n[Y].offset=0,t[x]!==this.#e[x])n[O].offset=e,n[Y].offset=e;else if(ue.compareBoundaryPointsPosition({node:o,offset:s},{node:t,offset:e})<=0)n[O].node=o,n[O].offset=s,n[Y].node=t,n[Y].offset=e;else n[O].node=t,n[O].offset=e,n[Y].node=o,n[Y].offset=s;this.#o(n),this.#r=ue.compareBoundaryPointsPosition({node:t,offset:e},{node:o,offset:s})===-1?li.backwards:li.forwards}selectAllChildren(t){if(t[D]===T.documentTypeNode)throw new this.#t[m].DOMException("DocumentType Node can't be used as boundary point.",w.invalidNodeTypeError);if(t!==this.#t&&t[x]!==this.#t)return;let e=t[_].length,o=new this.#t[m].Range;o[O].node=t,o[O].offset=0,o[Y].node=t,o[Y].offset=e,this.#o(o)}setBaseAndExtent(t,e,o,s){if(e>ft.getNodeLength(t)||s>ft.getNodeLength(o))throw new this.#t[m].DOMException("Invalid anchor or focus offset.",w.indexSizeError);if(t!==this.#t&&t[x]!==this.#t||o!==this.#t&&o[x]!==this.#t)return;let n={node:t,offset:e},l={node:o,offset:s},a=new this.#t[m].Range;if(ue.compareBoundaryPointsPosition(n,l)===-1)a[O]=n,a[Y]=l;else a[O]=l,a[Y]=n;this.#o(a),this.#r=ue.compareBoundaryPointsPosition(l,n)===-1?li.backwards:li.forwards}toString(){return this.#e?this.#e.toString():""}#o(t){let e=this.#e;if(this.#e=t,this.#r=t===null?li.directionless:li.forwards,e!==this.#e)this.#t.dispatchEvent(new C("selectionchange"))}}class hl{[Yt]={};constructor(){let t=this[Yt],e=new fe(this,[hl]);return new Proxy(this,{get:(o,s)=>{if(s in o||typeof s==="symbol")return e.bind(s),o[s];if(s in t)return t[s]},set(o,s,n){if(e.bind(s),s in o||typeof s==="symbol")return!0;return t[String(s)]=String(n),!0},deleteProperty(o,s){if(s in t)return delete t[String(s)],!0;return!1},ownKeys(){return Object.keys(t)},has(o,s){if(s in o||s in t)return!0;return!1},defineProperty(o,s,n){if(e.preventBinding(s),s in o)return Object.defineProperty(o,s,n),!0;if(n.value!==void 0)return t[String(s)]=String(n.value),!0;return!1},getOwnPropertyDescriptor(o,s){if(s in o)return;let n=t[String(s)];if(n!==void 0)return{value:n,writable:!0,enumerable:!0,configurable:!0}}})}get length(){return Object.keys(this[Yt]).length}key(t){let e=Object.keys(this[Yt])[t];return e!==void 0?e:null}setItem(t,e){this[Yt][t]=String(e)}getItem(t){return this[Yt][t]!==void 0?this[Yt][t]:null}removeItem(t){delete this[Yt][t]}clear(){let t=this[Yt];for(let e of Object.keys(t))delete t[e]}}var pe={FILTER_ACCEPT:1,FILTER_REJECT:2,FILTER_SKIP:3,SHOW_ALL:-1,SHOW_ELEMENT:1,SHOW_ATTRIBUTE:2,SHOW_TEXT:4,SHOW_CDATA_SECTION:8,SHOW_ENTITY_REFERENCE:16,SHOW_ENTITY:32,SHOW_PROCESSING_INSTRUCTION:64,SHOW_COMMENT:128,SHOW_DOCUMENT:256,SHOW_DOCUMENT_TYPE:512,SHOW_DOCUMENT_FRAGMENT:1024,SHOW_NOTATION:2048};var bS={1:pe.SHOW_ELEMENT,2:pe.SHOW_ATTRIBUTE,3:pe.SHOW_TEXT,4:pe.SHOW_CDATA_SECTION,5:pe.SHOW_ENTITY_REFERENCE,6:pe.SHOW_PROCESSING_INSTRUCTION,7:pe.SHOW_PROCESSING_INSTRUCTION,8:pe.SHOW_COMMENT,9:pe.SHOW_DOCUMENT,10:pe.SHOW_DOCUMENT_TYPE,11:pe.SHOW_DOCUMENT_FRAGMENT,12:pe.SHOW_NOTATION};var ua;(function(t){t.first="first",t.last="last"})(ua||(ua={}));var ha;(function(t){t.next="next",t.previous="previous"})(ha||(ha={}));class hn{root;whatToShow=-1;filter=null;#t=null;constructor(t,e=-1,o=null){if(!(t instanceof st))throw new re("Parameter 1 was not of type Node.");this.root=t,this.whatToShow=e,this.filter=o,this.#t=t}get currentNode(){return this.#t}set currentNode(t){if(!(t instanceof st))throw new this.root[m].TypeError("Failed to set the 'currentNode' property on 'TreeWalker': Failed to convert value to 'Node'.");this.#t=t}parentNode(){let t=this.#t;while(t!==null&&t!==this.root)if(t=t.parentNode,t!==null&&this[Uo](t)===pe.FILTER_ACCEPT)return this.#t=t,this.#t;return null}firstChild(){return this.#e(ua.first)}lastChild(){return this.#e(ua.last)}nextSibling(){return this.#r(ha.next)}previousSibling(){return this.#r(ha.previous)}previousNode(){let t=this.#t;while(t!==this.root){let e=t?.previousSibling||null;while(e!==null){let o=e,s=this[Uo](o);while(s!==pe.FILTER_REJECT&&o[_].length)o=o.lastChild,s=this[Uo](o);if(s===pe.FILTER_ACCEPT)return this.#t=o,o;e=o.previousSibling}if(t===this.root||t.parentNode===null)return null;if(t=t.parentNode,this[Uo](t)===pe.FILTER_ACCEPT)return this.#t=t,t}return null}nextNode(){let t=this.#t,e=pe.FILTER_ACCEPT;if(t===null)return null;while(!0){while(e!==pe.FILTER_REJECT&&t[_].length)if(t=t.firstChild,e=this[Uo](t),e===pe.FILTER_ACCEPT)return this.#t=t,t;while(t!==null){if(t===this.root)return null;let o=t.nextSibling;if(o!==null){t=o;break}t=t.parentNode}if(t===null)return null;if(e=this[Uo](t),e===pe.FILTER_ACCEPT)return this.#t=t,t}}[Uo](t){let e=bS[t.nodeType];if(e&&(this.whatToShow&e)==0)return pe.FILTER_SKIP;if(typeof this.filter==="function")return this.filter(t);if(this.filter)return this.filter.acceptNode(t);return pe.FILTER_ACCEPT}#e(t){let e=this.#t;if(!e)return null;e=t===ua.first?e.firstChild:e.lastChild;while(e!==null){let o=this[Uo](e);if(o===pe.FILTER_ACCEPT)return this.#t=e,e;if(o===pe.FILTER_SKIP){let s=t===ua.first?e.firstChild:e.lastChild;if(s!==null){e=s;continue}}while(e!==null){let s=t===ua.first?e.nextSibling:e.previousSibling;if(s!==null){e=s;break}let n=e.parentNode;if(n===null||n===this.root||n===this.#t)return null;e=n}}return null}#r(t){let e=this.#t;if(!e||e===this.root)return null;while(!0){let o=t===ha.next?e.nextSibling:e.previousSibling;while(o!==null){let s=o,n=this[Uo](s);if(n===pe.FILTER_ACCEPT)return this.#t=s,s;if(o=t===ha.next?s.firstChild:s.lastChild,n===pe.FILTER_REJECT||o===null)o=t===ha.next?s.nextSibling:s.previousSibling}if(e=e.parentNode,e===null||e===this.root)return null;if(this[Uo](e)===pe.FILTER_ACCEPT)return null}}}class ca{#t;#e=-1;#r=null;#o;#i=!0;constructor(t,e=-1,o=null){this.#t=t,this.#e=e,this.#r=o,this.#o=new hn(t,e,o)}get root(){return this.#t}get whatToShow(){return this.#e}get filter(){return this.#r}nextNode(){if(this.#i){if(this.#i=!1,this.#o[Uo](this.#t)!==pe.FILTER_ACCEPT)return this.#o.nextNode();return this.#t}return this.#o.nextNode()}previousNode(){return this.#o.previousNode()}}class Yu{serializeToString(t){return this.#t(t)}#t(t,e=null,o=null){switch(t[D]){case T.elementNode:let s=t,n=s[ot],l="",a=this.#e(s,o),y=s[J]===Ut.html?s[Ft]:this.#r(s,a),u=`${y?y+":":""}${n}`,c=y?e:s[J]||e,d=this.#o(s,y,e,o),g=c===Ut.html&&n==="template"?t.content[_]:t[_];for(let Rt of g)l+=this.#t(Rt,c,a);if(!l&&c===Ut.html&&$e[n.toLowerCase()]?.contentModel===G.noDescendants)return`<${u}${d} />`;if(!l&&c!==Ut.html)return`<${u}${d}/>`;return`<${u}${d}>${l}</${u}>`;case st.DOCUMENT_FRAGMENT_NODE:case st.DOCUMENT_NODE:let f="";if(t[Un])f+=this.#t(t[Un],e,new Map(o));for(let Rt of t[_])f+=this.#t(Rt,e,new Map(o));return f;case T.commentNode:return`<!--${t.textContent}-->`;case T.processingInstructionNode:return`<?${t.target} ${t.textContent}?>`;case T.textNode:let E=t.parentElement;if(E){if($e[E[ot]]?.contentModel===G.rawText)return t.textContent}return De.encodeTextContent(t.textContent);case T.documentTypeNode:let R=t,H=R.publicId?" PUBLIC":R.systemId?" SYSTEM":"",yt=R.publicId?` "${R.publicId}"`:"",bt=R.systemId?` "${R.systemId}"`:"";return`<!DOCTYPE ${R.name}${H}${yt}${bt}>`}return""}#e(t,e){let o=new Map(e);for(let s of t[St][Q].values())if(s[J]===Ut.xmlns&&s[Ft])o.set(s[q],s[ot]);return o}#r(t,e){if(t[Ft]&&!t[J])throw Error("Element has a prefix but no namespace.");if(!t[Ft]||!e)return null;let o=e.get(t[J]);if(o)return o;let s=new Set(e.values());if(s.has(t[Ft])){let n=1;while(s.has("n"+n))n++;return e.set(t[J],"n"+n),"n"+n}return e.set(t[J],t[Ft]),t[Ft]}#o(t,e,o,s){let n="",l="",a=new Set;for(let y of t[St][Q].values())if(y[J]===Ut.xmlns)if(e&&y[ot]===e&&t[J])l+=` xmlns:${e}="${De.encodeXMLAttributeValue(t[J])}"`,a.add(t[J]);else if(!e&&y[rt]==="xmlns"&&t[J])l+=` xmlns="${De.encodeXMLAttributeValue(t[J])}"`,a.add(t[J]);else l+=` ${y[rt]}="${De.encodeXMLAttributeValue(y[q])}"`,a.add(y[q]);else n+=` ${y[rt]}="${De.encodeXMLAttributeValue(y[q])}"`;if(t[J]&&o!==t[J]&&!a.has(t[J])){if(e&&!s?.has(t[J]))l+=` xmlns:${e}="${De.encodeXMLAttributeValue(t[J])}"`;else if(!e&&o!==t[J])l+=` xmlns="${De.encodeXMLAttributeValue(t[J])}"`}return l+n}}import{Script as xA}from"vm";var gS=new xA(`
132
132
  this.ArrayBuffer = globalThis.ArrayBuffer;
133
133
  this.Boolean = globalThis.Boolean;
134
134
  this.DataView = globalThis.DataView;
@@ -184,35 +184,35 @@ this.AbortSignal = globalThis.AbortSignal;
184
184
  this.Array = globalThis.Array;
185
185
  this.Object = globalThis.Object;
186
186
  this.Function = globalThis.Function;
187
- `);import{URL as vA}from"url";class Tc{static openPage(t,e){let o=this.getWindowFeatures(e?.features||""),s=e?.target!==void 0?String(e.target):null,n=new vA(t.window.location.href),l=Fo.getRelativeURL(t,e?.url),a=t.window,y;if(t.window!==a)return null;switch(s){case"_self":y=t;break;case"_top":y=t.page.mainFrame;break;case"_parent":y=t.parentFrame??t;break;case"_blank":default:y=t.page.context.newPage().mainFrame,y[io]=t;break}if(y.goto(l.href,{referrer:o.noreferrer?void 0:t.window.location.origin,referrerPolicy:o.noreferrer?"no-referrer":void 0}).catch((c)=>{y.page.console.error(c)}),l.protocol==="javascript:")return y.window;if(y===t&&t.window===a)return null;if(o.popup&&s!=="_self"&&s!=="_top"&&s!=="_parent"){if(y[Ln]=!0,o?.width||o?.height)y.page.setViewport({width:o?.width,height:o?.height});if(o?.left)y.window.screenLeft=o.left,y.window.screenX=o.left;if(o?.top)y.window.screenTop=o.top,y.window.screenY=o.top}if(s&&s!=="_self"&&s!=="_top"&&s!=="_parent"&&s!=="_blank")y.window.name=s;let u=ti.isCORS(n,y.url);if(!o.noopener&&!o.noreferrer&&t.window&&y[io]&&y.window!==t.window)y[Si]=u?new ll(t.window):t.window;if(o.noopener||o.noreferrer)return null;if(u)return new ll(y.window,t.window);return y.window}static getWindowFeatures(t){let e=t.split(","),o={popup:!1,width:0,height:0,left:0,top:0,noopener:!1,noreferrer:!1};for(let s of e){let[n,l]=s.split("=");switch(n){case"popup":o.popup=!l||l==="yes"||l==="1"||l==="true";break;case"width":case"innerWidth":o.width=parseInt(l,10);break;case"height":case"innerHeight":o.height=parseInt(l,10);break;case"left":case"screenX":o.left=parseInt(l,10);break;case"top":case"screenY":o.top=parseInt(l,10);break;case"noopener":o.noopener=!0;break;case"noreferrer":o.noreferrer=!0;break}}return o}}import{PerformanceObserver as Pw,PerformanceEntry as Aw}from"perf_hooks";class Cc{#t;constructor(t){this.#t=t}createDocument(t,e,o){return new this.#t[m].HTMLDocument}createHTMLDocument(){return new this.#t[m].HTMLDocument}createDocumentType(t,e,o){let s=Ve.createNode(this.#t,nn);return s[rt]=t,s[Ds]=e,s[Bs]=o,s}}var mg;(function(t){t.hidden="hidden",t.visible="visible",t.prerender="prerender"})(mg||(mg={}));var yg=mg;var TA=/^[a-z][a-z0-9-]+$/;class cn extends st{[ir]=null;[Me]=null;[Rs]=null;[Oo]=null;[ve]=this;[ks]=!0;[Ms]=!1;[D]=T.documentNode;[tt]=!0;[Vs]=[];[Nh]=new Cc(this);[kn]=uc.interactive;[Pr]="";[Lr]=null;[Ma]=null;[Xo]=[];[x]=null;[wi]=new Map;[xe]="text/html";[Yn]=null;[Rr]=new Map;[p]=new Map;[Tn]=null;get onreadystatechange(){return this[p].get("onreadystatechange")??null}set onreadystatechange(t){this[p].set("onreadystatechange",t)}get onpointerlockchange(){return this[p].get("onpointerlockchange")??null}set onpointerlockchange(t){this[p].set("onpointerlockchange",t)}get onpointerlockerror(){return this[p].get("onpointerlockerror")??null}set onpointerlockerror(t){this[p].set("onpointerlockerror",t)}get onbeforecopy(){return this[p].get("onbeforecopy")??null}set onbeforecopy(t){this[p].set("onbeforecopy",t)}get onbeforecut(){return this[p].get("onbeforecut")??null}set onbeforecut(t){this[p].set("onbeforecut",t)}get onbeforepaste(){return this[p].get("onbeforepaste")??null}set onbeforepaste(t){this[p].set("onbeforepaste",t)}get onfreeze(){return this[p].get("onfreeze")??null}set onfreeze(t){this[p].set("onfreeze",t)}get onprerenderingchange(){return this[p].get("onprerenderingchange")??null}set onprerenderingchange(t){this[p].set("onprerenderingchange",t)}get onresume(){return this[p].get("onresume")??null}set onresume(t){this[p].set("onresume",t)}get onsearch(){return this[p].get("onsearch")??null}set onsearch(t){this[p].set("onsearch",t)}get onvisibilitychange(){return this[p].get("onvisibilitychange")??null}set onvisibilitychange(t){this[p].set("onvisibilitychange",t)}get onfullscreenchange(){return this[p].get("onfullscreenchange")??null}set onfullscreenchange(t){this[p].set("onfullscreenchange",t)}get onfullscreenerror(){return this[p].get("onfullscreenerror")??null}set onfullscreenerror(t){this[p].set("onfullscreenerror",t)}get onwebkitfullscreenchange(){return this[p].get("onwebkitfullscreenchange")??null}set onwebkitfullscreenchange(t){this[p].set("onwebkitfullscreenchange",t)}get onwebkitfullscreenerror(){return this[p].get("onwebkitfullscreenerror")??null}set onwebkitfullscreenerror(t){this[p].set("onwebkitfullscreenerror",t)}get onbeforexrselect(){return this[p].get("onbeforexrselect")??null}set onbeforexrselect(t){this[p].set("onbeforexrselect",t)}get onabort(){return this[p].get("onabort")??null}set onabort(t){this[p].set("onabort",t)}get onbeforeinput(){return this[p].get("onbeforeinput")??null}set onbeforeinput(t){this[p].set("onbeforeinput",t)}get onbeforematch(){return this[p].get("onbeforematch")??null}set onbeforematch(t){this[p].set("onbeforematch",t)}get onbeforetoggle(){return this[p].get("onbeforetoggle")??null}set onbeforetoggle(t){this[p].set("onbeforetoggle",t)}get onblur(){return this[p].get("onblur")??null}set onblur(t){this[p].set("onblur",t)}get oncancel(){return this[p].get("oncancel")??null}set oncancel(t){this[p].set("oncancel",t)}get oncanplay(){return this[p].get("oncanplay")??null}set oncanplay(t){this[p].set("oncanplay",t)}get oncanplaythrough(){return this[p].get("oncanplaythrough")??null}set oncanplaythrough(t){this[p].set("oncanplaythrough",t)}get onchange(){return this[p].get("onchange")??null}set onchange(t){this[p].set("onchange",t)}get onclick(){return this[p].get("onclick")??null}set onclick(t){this[p].set("onclick",t)}get onclose(){return this[p].get("onclose")??null}set onclose(t){this[p].set("onclose",t)}get oncontentvisibilityautostatechange(){return this[p].get("oncontentvisibilityautostatechange")??null}set oncontentvisibilityautostatechange(t){this[p].set("oncontentvisibilityautostatechange",t)}get oncontextlost(){return this[p].get("oncontextlost")??null}set oncontextlost(t){this[p].set("oncontextlost",t)}get oncontextmenu(){return this[p].get("oncontextmenu")??null}set oncontextmenu(t){this[p].set("oncontextmenu",t)}get oncontextrestored(){return this[p].get("oncontextrestored")??null}set oncontextrestored(t){this[p].set("oncontextrestored",t)}get oncuechange(){return this[p].get("oncuechange")??null}set oncuechange(t){this[p].set("oncuechange",t)}get ondblclick(){return this[p].get("ondblclick")??null}set ondblclick(t){this[p].set("ondblclick",t)}get ondrag(){return this[p].get("ondrag")??null}set ondrag(t){this[p].set("ondrag",t)}get ondragend(){return this[p].get("ondragend")??null}set ondragend(t){this[p].set("ondragend",t)}get ondragenter(){return this[p].get("ondragenter")??null}set ondragenter(t){this[p].set("ondragenter",t)}get ondragleave(){return this[p].get("ondragleave")??null}set ondragleave(t){this[p].set("ondragleave",t)}get ondragover(){return this[p].get("ondragover")??null}set ondragover(t){this[p].set("ondragover",t)}get ondragstart(){return this[p].get("ondragstart")??null}set ondragstart(t){this[p].set("ondragstart",t)}get ondrop(){return this[p].get("ondrop")??null}set ondrop(t){this[p].set("ondrop",t)}get ondurationchange(){return this[p].get("ondurationchange")??null}set ondurationchange(t){this[p].set("ondurationchange",t)}get onemptied(){return this[p].get("onemptied")??null}set onemptied(t){this[p].set("onemptied",t)}get onended(){return this[p].get("onended")??null}set onended(t){this[p].set("onended",t)}get onerror(){return this[p].get("onerror")??null}set onerror(t){this[p].set("onerror",t)}get onfocus(){return this[p].get("onfocus")??null}set onfocus(t){this[p].set("onfocus",t)}get onformdata(){return this[p].get("onformdata")??null}set onformdata(t){this[p].set("onformdata",t)}get oninput(){return this[p].get("oninput")??null}set oninput(t){this[p].set("oninput",t)}get oninvalid(){return this[p].get("oninvalid")??null}set oninvalid(t){this[p].set("oninvalid",t)}get onkeydown(){return this[p].get("onkeydown")??null}set onkeydown(t){this[p].set("onkeydown",t)}get onkeypress(){return this[p].get("onkeypress")??null}set onkeypress(t){this[p].set("onkeypress",t)}get onkeyup(){return this[p].get("onkeyup")??null}set onkeyup(t){this[p].set("onkeyup",t)}get onload(){return this[p].get("onload")??null}set onload(t){this[p].set("onload",t)}get onloadeddata(){return this[p].get("onloadeddata")??null}set onloadeddata(t){this[p].set("onloadeddata",t)}get onloadedmetadata(){return this[p].get("onloadedmetadata")??null}set onloadedmetadata(t){this[p].set("onloadedmetadata",t)}get onloadstart(){return this[p].get("onloadstart")??null}set onloadstart(t){this[p].set("onloadstart",t)}get onmousedown(){return this[p].get("onmousedown")??null}set onmousedown(t){this[p].set("onmousedown",t)}get onmouseenter(){return this[p].get("onmouseenter")??null}set onmouseenter(t){this[p].set("onmouseenter",t)}get onmouseleave(){return this[p].get("onmouseleave")??null}set onmouseleave(t){this[p].set("onmouseleave",t)}get onmousemove(){return this[p].get("onmousemove")??null}set onmousemove(t){this[p].set("onmousemove",t)}get onmouseout(){return this[p].get("onmouseout")??null}set onmouseout(t){this[p].set("onmouseout",t)}get onmouseover(){return this[p].get("onmouseover")??null}set onmouseover(t){this[p].set("onmouseover",t)}get onmouseup(){return this[p].get("onmouseup")??null}set onmouseup(t){this[p].set("onmouseup",t)}get onmousewheel(){return this[p].get("onmousewheel")??null}set onmousewheel(t){this[p].set("onmousewheel",t)}get onpause(){return this[p].get("onpause")??null}set onpause(t){this[p].set("onpause",t)}get onplay(){return this[p].get("onplay")??null}set onplay(t){this[p].set("onplay",t)}get onplaying(){return this[p].get("onplaying")??null}set onplaying(t){this[p].set("onplaying",t)}get onprogress(){return this[p].get("onprogress")??null}set onprogress(t){this[p].set("onprogress",t)}get onratechange(){return this[p].get("onratechange")??null}set onratechange(t){this[p].set("onratechange",t)}get onreset(){return this[p].get("onreset")??null}set onreset(t){this[p].set("onreset",t)}get onresize(){return this[p].get("onresize")??null}set onresize(t){this[p].set("onresize",t)}get onscroll(){return this[p].get("onscroll")??null}set onscroll(t){this[p].set("onscroll",t)}get onsecuritypolicyviolation(){return this[p].get("onsecuritypolicyviolation")??null}set onsecuritypolicyviolation(t){this[p].set("onsecuritypolicyviolation",t)}get onseeked(){return this[p].get("onseeked")??null}set onseeked(t){this[p].set("onseeked",t)}get onseeking(){return this[p].get("onseeking")??null}set onseeking(t){this[p].set("onseeking",t)}get onselect(){return this[p].get("onselect")??null}set onselect(t){this[p].set("onselect",t)}get onslotchange(){return this[p].get("onslotchange")??null}set onslotchange(t){this[p].set("onslotchange",t)}get onstalled(){return this[p].get("onstalled")??null}set onstalled(t){this[p].set("onstalled",t)}get onsubmit(){return this[p].get("onsubmit")??null}set onsubmit(t){this[p].set("onsubmit",t)}get onsuspend(){return this[p].get("onsuspend")??null}set onsuspend(t){this[p].set("onsuspend",t)}get ontimeupdate(){return this[p].get("ontimeupdate")??null}set ontimeupdate(t){this[p].set("ontimeupdate",t)}get ontoggle(){return this[p].get("ontoggle")??null}set ontoggle(t){this[p].set("ontoggle",t)}get onvolumechange(){return this[p].get("onvolumechange")??null}set onvolumechange(t){this[p].set("onvolumechange",t)}get onwaiting(){return this[p].get("onwaiting")??null}set onwaiting(t){this[p].set("onwaiting",t)}get onwebkitanimationend(){return this[p].get("onwebkitanimationend")??null}set onwebkitanimationend(t){this[p].set("onwebkitanimationend",t)}get onwebkitanimationiteration(){return this[p].get("onwebkitanimationiteration")??null}set onwebkitanimationiteration(t){this[p].set("onwebkitanimationiteration",t)}get onwebkitanimationstart(){return this[p].get("onwebkitanimationstart")??null}set onwebkitanimationstart(t){this[p].set("onwebkitanimationstart",t)}get onwebkittransitionend(){return this[p].get("onwebkittransitionend")??null}set onwebkittransitionend(t){this[p].set("onwebkittransitionend",t)}get onwheel(){return this[p].get("onwheel")??null}set onwheel(t){this[p].set("onwheel",t)}get onauxclick(){return this[p].get("onauxclick")??null}set onauxclick(t){this[p].set("onauxclick",t)}get ongotpointercapture(){return this[p].get("ongotpointercapture")??null}set ongotpointercapture(t){this[p].set("ongotpointercapture",t)}get onlostpointercapture(){return this[p].get("onlostpointercapture")??null}set onlostpointercapture(t){this[p].set("onlostpointercapture",t)}get onpointerdown(){return this[p].get("onpointerdown")??null}set onpointerdown(t){this[p].set("onpointerdown",t)}get onpointermove(){return this[p].get("onpointermove")??null}set onpointermove(t){this[p].set("onpointermove",t)}get onpointerrawupdate(){return this[p].get("onpointerrawupdate")??null}set onpointerrawupdate(t){this[p].set("onpointerrawupdate",t)}get onpointerup(){return this[p].get("onpointerup")??null}set onpointerup(t){this[p].set("onpointerup",t)}get onpointercancel(){return this[p].get("onpointercancel")??null}set onpointercancel(t){this[p].set("onpointercancel",t)}get onpointerover(){return this[p].get("onpointerover")??null}set onpointerover(t){this[p].set("onpointerover",t)}get onpointerout(){return this[p].get("onpointerout")??null}set onpointerout(t){this[p].set("onpointerout",t)}get onpointerenter(){return this[p].get("onpointerenter")??null}set onpointerenter(t){this[p].set("onpointerenter",t)}get onpointerleave(){return this[p].get("onpointerleave")??null}set onpointerleave(t){this[p].set("onpointerleave",t)}get onselectstart(){return this[p].get("onselectstart")??null}set onselectstart(t){this[p].set("onselectstart",t)}get onselectionchange(){return this[p].get("onselectionchange")??null}set onselectionchange(t){this[p].set("onselectionchange",t)}get onanimationend(){return this[p].get("onanimationend")??null}set onanimationend(t){this[p].set("onanimationend",t)}get onanimationiteration(){return this[p].get("onanimationiteration")??null}set onanimationiteration(t){this[p].set("onanimationiteration",t)}get onanimationstart(){return this[p].get("onanimationstart")??null}set onanimationstart(t){this[p].set("onanimationstart",t)}get ontransitionrun(){return this[p].get("ontransitionrun")??null}set ontransitionrun(t){this[p].set("ontransitionrun",t)}get ontransitionstart(){return this[p].get("ontransitionstart")??null}set ontransitionstart(t){this[p].set("ontransitionstart",t)}get ontransitionend(){return this[p].get("ontransitionend")??null}set ontransitionend(t){this[p].set("ontransitionend",t)}get ontransitioncancel(){return this[p].get("ontransitioncancel")??null}set ontransitioncancel(t){this[p].set("ontransitioncancel",t)}get oncopy(){return this[p].get("oncopy")??null}set oncopy(t){this[p].set("oncopy",t)}get oncut(){return this[p].get("oncut")??null}set oncut(t){this[p].set("oncut",t)}get onpaste(){return this[p].get("onpaste")??null}set onpaste(t){this[p].set("onpaste",t)}get onscrollend(){return this[p].get("onscrollend")??null}set onscrollend(t){this[p].set("onscrollend",t)}get onscrollsnapchange(){return this[p].get("onscrollsnapchange")??null}set onscrollsnapchange(t){this[p].set("onscrollsnapchange",t)}get onscrollsnapchanging(){return this[p].get("onscrollsnapchanging")??null}set onscrollsnapchanging(t){this[p].set("onscrollsnapchanging",t)}get adoptedStyleSheets(){return this[Vs]}set adoptedStyleSheets(t){this[Vs]=t}get implementation(){return this[Nh]}get readyState(){return this[kn]}get referrer(){return this[Pr]}get defaultView(){return this[Lr]}get children(){if(!this[ir]){let t=this[bt];this[ir]=new de(h,()=>t)}return this[ir]}get charset(){return this.characterSet}get characterSet(){let t=yt.querySelector(this,"meta[charset]")?.getAttributeNS(null,"charset");return t?t:"UTF-8"}get title(){let t=oe.getElementByTagName(this,"title");if(t)return t.text.trim();return""}set title(t){let e=oe.getElementByTagName(this,"title");if(e)e.textContent=t;else{let o=this.createElement("title");o.textContent=t,this.head.appendChild(o)}}get links(){return yt.querySelectorAll(this,"a[href],area[href]")}get forms(){if(!this[Ma])this[Ma]=oe.getElementsByTagName(this,"form");return this[Ma]}get childElementCount(){return this[bt].length}get firstElementChild(){return this[bt][0]??null}get lastElementChild(){let t=this[bt];return t[t.length-1]??null}get cookie(){let t=new it(this[m]).getBrowserFrame();if(!t)return"";return oi.cookiesToString(t.page.context.cookieContainer.getCookies(this[m].location,!0))}set cookie(t){let e=new it(this[m]).getBrowserFrame();if(!e)return;let o=oi.stringToCookie(this[m].location,t);if(o)e.page.context.cookieContainer.addCookies([o])}get nodeName(){return"#document"}get documentElement(){return this[bt][0]??null}get doctype(){for(let t of this[_])if(t instanceof nn)return t;return null}get body(){let t=this.documentElement;return t?oe.getElementByTagName(t,"body"):null}get head(){let t=this.documentElement;return t?oe.getElementByTagName(t,"head"):null}get styleSheets(){let t=yt.querySelectorAll(this,'link[rel="stylesheet"][href],style'),e=[];for(let o of t){let s=o.sheet;if(s)e.push(s)}return e}get activeElement(){if(this[Me]&&!this[Me][tt])this[Me]=null;if(this[Me]){let t=this[Me].getRootNode(),e=this[Me];while(t!==this)e=t.host,t=e?e.getRootNode():this;return e}return this[Me]||this.body||this.documentElement||null}get scrollingElement(){return this.documentElement}get location(){return this[m].location}get scripts(){return this.getElementsByTagName("script")}get baseURI(){let t=oe.getElementByTagName(this,"base");if(t)return t.href;return this[m].location.href}get URL(){return this[m].location.href}get documentURI(){return this.URL}get domain(){return this[m].location.hostname}get visibilityState(){if(this.defaultView)return yg.visible;return yg.hidden}get hidden(){if(this.defaultView)return!1;return!0}get currentScript(){return this[Oo]}get contentType(){return this[xe]}append(...t){oe.append(this,...t)}prepend(...t){oe.prepend(this,...t)}replaceChildren(...t){oe.replaceChildren(this,...t)}querySelectorAll(t){return yt.querySelectorAll(this,t)}querySelector(t){return yt.querySelector(this,t)}queryCommandSupported(t){if(!arguments.length)throw new this[m].TypeError("Failed to execute 'queryCommandSupported' on 'Document': 1 argument required, but only 0 present.");return!0}getElementsByClassName(t){return oe.getElementsByClassName(this,t)}getElementsByTagName(t){return oe.getElementsByTagName(this,t)}getElementsByTagNameNS(t,e){return oe.getElementsByTagNameNS(this,t,e)}getElementById(t){return oe.getElementById(this,t)}getElementsByName(t){return yt.querySelectorAll(this,`[name="${t}"]`)}write(t){if(this[ks]||this[Ms]){if(this[ks]){if(!this[Ms])this.open();this[ks]=!1}let{documentElement:e,head:o,body:s}=this;if(!e||!o||!s)this.open();this[ks]=!1,this[Ms]=!1,new Cr(this[m],{evaluateScripts:!0}).parse(t,this)}else new Cr(this[m],{evaluateScripts:!0}).parse(t,this.body)}open(){this[Ms]=!0;for(let l of this[he].bubbling.keys()){let a=this[he].bubbling.get(l);if(a)for(let y of a)this.removeEventListener(l,y)}for(let l of this[he].capturing.keys()){let a=this[he].capturing.get(l);if(a)for(let y of a)this.removeEventListener(l,y)}let t=this[_];while(t.length)this.removeChild(t[0]);let e=this[Nh].createDocumentType("html","",""),o=this.createElement("html"),s=this.createElement("body"),n=this.createElement("head");return this.appendChild(e),this.appendChild(o),o.appendChild(n),o.appendChild(s),this}close(){}createElement(t,e){return this.createElementNS(Ht.html,Dr.asciiLowerCase(String(t)),e)}createElementNS(t,e,o){let s=this[m];if(e=String(e),!e)throw new s.DOMException("Failed to execute 'createElementNS' on 'Document': The qualified name provided is empty.");let n=e.split(":"),l=n[1]??n[0],a=n[1]?n[0]:null;switch(t){case Ht.svg:let y=Ip[e.toLowerCase()],u=y&&y.localName===e?s[y.className]:s.SVGElement,c=Ve.createNode(this,u);return c[z]=e,c[ot]=l,c[Ft]=a,c[J]=t,c[eo]=o&&o.is?String(o.is):null,c;case Ht.html:let d=s.customElements[gi]?.get(o&&o.is?String(o.is):e);if(d){let H=new d.elementClass;return H[z]=Dr.asciiUpperCase(e),H[ot]=l,H[Ft]=a,H[J]=t,H[eo]=o&&o.is?String(o.is):null,H}let g=$e[e]?s[$e[e].className]:null;if(g){let H=Ve.createNode(this,g);return H[z]=Dr.asciiUpperCase(e),H[ot]=l,H[Ft]=a,H[J]=t,H[eo]=o&&o.is?String(o.is):null,H}let f=e.includes("-")?s.HTMLElement:s.HTMLUnknownElement,E=Ve.createNode(this,f);return E[z]=Dr.asciiUpperCase(e),E[ot]=l,E[Ft]=a,E[J]=t,E[eo]=o&&o.is?String(o.is):null,E;default:let R=Ve.createNode(this,Gr);return R[z]=e,R[ot]=l,R[Ft]=a,R[J]=t,R[eo]=o&&o.is?String(o.is):null,R}}createTextNode(t){if(arguments.length<1)throw new this[m].TypeError(`Failed to execute 'createTextNode' on 'Document': 1 argument required, but only ${arguments.length} present.`);return Ve.createNode(this,this[m].Text,String(t))}createComment(t){if(arguments.length<1)throw new this[m].TypeError(`Failed to execute 'createComment' on 'Document': 1 argument required, but only ${arguments.length} present.`);return Ve.createNode(this,this[m].Comment,String(t))}createDocumentFragment(){return Ve.createNode(this,this[m].DocumentFragment)}createNodeIterator(t,e=-1,o=null){return new ca(t,e,o)}createTreeWalker(t,e=-1,o=null){return new hn(t,e,o)}createEvent(t){if(typeof this[m][t]==="function")return new this[m][t]("init");return new N("init")}createAttribute(t){let e=Ve.createNode(this,this[m].Attr),o=Dr.asciiLowerCase(t),s=o.split(":");return e[rt]=o,e[ot]=s[1]??o,e[Ft]=s[1]?s[0]:null,e}createAttributeNS(t,e){let o=Ve.createNode(this,this[m].Attr),s=e.split(":");if(o[J]=t,o[rt]=e,o[ot]=s[1]??e,o[Ft]=s[1]?s[0]:null,!t&&o[Ft])throw new this[m].DOMException(`Failed to execute 'createAttributeNS' on 'Document': The namespace URI provided ('${t||""}') is not valid for the qualified name provided ('${e}').`,w.namespaceError);return o}importNode(t,e=!1){if(!(t instanceof st))throw new this[m].DOMException("Parameter 1 was not of type Node.");let o=t.cloneNode(e);return this.#t(o),o}createRange(){return new this[m].Range}adoptNode(t){if(!(t instanceof st))throw new this[m].DOMException("Parameter 1 was not of type Node.");let e=t[W]?t[W].removeChild(t):t;return Object.defineProperty(e,"ownerDocument",{value:this}),e}getSelection(){if(!this[Tn])this[Tn]=new pa(this);return this[Tn]}hasFocus(){return!!this.activeElement}createProcessingInstruction(t,e){if(arguments.length<2)throw new this[m].TypeError(`Failed to execute 'createProcessingInstruction' on 'Document': 2 arguments required, but only ${arguments.length} present.`);if(t=String(t),e=String(e),!t||!TA.test(t))throw new this[m].DOMException(`Failed to execute 'createProcessingInstruction' on 'Document': The target provided ('${t}') is not a valid name.`);if(e.includes("?>"))throw new this[m].DOMException("Failed to execute 'createProcessingInstruction' on 'Document': The data provided ('?>') contains '?>'");let o=Ve.createNode(this,this[m].ProcessingInstruction);return o[Kt]=e,o[wr]=t,o}elementFromPoint(t,e){return null}[At](){super[At](),this[ir]=null,this[Me]=null,this[Rs]=null,this[Oo]=null,this[Lr]=null,this[Vs]=[],this[Ma]=null,this[Xo]=[],this[wi].clear(),this[Yn]=null,this[Rr].clear(),this[p].clear(),this[Tn]=null}#t(t){t[x]=this;for(let e of t[_])this.#t(e)}}class Ku extends cn{constructor(){super();let t=this.createElement("html"),e=this.createElement("body"),o=this.createElement("head");this.appendChild(t),t.appendChild(o),t.appendChild(e)}[Et](t,e=!1){if(t[D]===T.textNode)throw new this[m].Error("Failed to execute 'appendChild' on 'Node': Nodes of type '#text' may not be inserted inside nodes of type '#document'.");if(t[D]===T.documentFragmentNode)return t;if(t[D]===T.elementNode&&this[bt].length!==0)throw new this[m].Error("Failed to execute 'appendChild' on 'Node': Only one element on document allowed.");return super[Et](t,e)}[kr](t,e,o=!1){if(t[D]===T.textNode)throw new this[m].Error("Failed to execute 'insertBefore' on 'Node': Nodes of type '#text' may not be inserted inside nodes of type '#document'.");if(t[D]===T.documentFragmentNode)return t;if(t[D]===T.elementNode&&this[bt].length!==0)throw new this[m].Error("Failed to execute 'insertBefore' on 'Node': Only one element on document allowed.");return super[kr](t,e,o)}}class Qu extends cn{[xe]="application/xml"}class ju extends Ss{[D]=T.textNode;[Je]=null;[dr]=null;get nodeName(){return"#text"}get wholeText(){if(!this[W])return this[Kt];let t="";for(let e=this.previousSibling;ft.isTextNode(e);e=e.previousSibling)t=e.data+t;t+=this[Kt];for(let e=this.nextSibling;ft.isTextNode(e);e=e.nextSibling)t+=e.data;return t}get data(){return this[Kt]}set data(t){if(super.data=t,this[Je])this[Je][Ea]();if(this[dr])this[dr][Vn]()}splitText(t){let e=this[Kt].length;if(t<0||t>e)throw new this[m].DOMException("The index is not in the allowed range.",w.indexSizeError);let o=e-t,s=this.substringData(t,o),n=this[x].createTextNode(s);if(this[W]!==null)this[W].insertBefore(n,this.nextSibling);return this.replaceData(t,o,""),n}toString(){return"[object Text]"}[ct](t=!1){return super[ct](t)}[Zr](){if(super[Zr](),this[Je])this[Je][Ea]();if(this[dr]&&this[Kt])this[dr][Vn]()}[Bi](){if(this[Je])this[Je][Ea]();if(this[dr]&&this[Kt])this[dr][Vn]();super[Bi]()}}class qu extends Ss{[D]=T.commentNode;get nodeName(){return"#comment"}toString(){return"[object Comment]"}[ct](t=!1){return super[ct](t)}}class $u extends la{[z]="IMG";[ot]="img";[J]=Ht.html;constructor(t=null,e=null){super();if(t!==null)this.width=t;if(e!==null)this.height=e}}class Nc extends ia{[z]="AUDIO";[ot]="audio";[J]=Ht.html;constructor(t=null){super();if(t!==null)this.src=t}}class Lc{target;options;mutationListener;#t;#e;#r;#o=[];#i=!1;#s=!1;constructor(t){this.options=t.options,this.target=t.target,this.mutationListener={options:t.options,callback:new WeakRef((e)=>this.report(e))},this.#t=t.window,this.#e=t.observer,this.#r=t.callback}report(t){if(this.#i)return;if(this.#o.push(t),this.#s)return;this.#t.queueMicrotask(()=>{if(this.#i)return;this.#s=!1;let e=this.#o;if(e?.length>0)this.#o=[],this.#r(e,this.#e)}),this.#s=!0}takeRecords(){if(this.#i)return[];let t=this.#o;return this.#o=[],t}destroy(){if(this.#i)return;this.#i=!0,this.options=null,this.target=null,this.mutationListener=null,this.#t=null,this.#e=null,this.#r=null,this.#o=null}}class Xu{#t;#e=[];#r=!1;constructor(t){if(!this[m])throw TypeError(`Failed to construct '${this.constructor.name}': '${this.constructor.name}' was constructed outside a Window context.`);this.#t=t}observe(t,e){if(this.#r)return;if(!t)throw new this[m].TypeError(`Failed to execute 'observe' on 'MutationObserver': The first parameter "target" should be of type "Node".`);if(e&&(e.attributeFilter||e.attributeOldValue)){if(e.attributes===void 0)e=Object.assign({},e,{attributes:!0,attributeFilter:e.attributeFilter,attributeOldValue:e.attributeOldValue});if(!e.attributes&&e.attributeOldValue)throw new this[m].TypeError("Failed to execute 'observe' on 'MutationObserver': The options object may only set 'attributeOldValue' to true when 'attributes' is true or not present.");if(!e.attributes&&e.attributeFilter)throw new this[m].TypeError("Failed to execute 'observe' on 'MutationObserver': The options object may only set 'attributeFilter' when 'attributes' is true or not present.")}if(e&&e.characterDataOldValue){if(e.characterData===void 0)e=Object.assign({},e,{characterData:!0,characterDataOldValue:e.characterDataOldValue});if(!e.characterData&&e.characterDataOldValue)throw new this[m].TypeError("Failed to execute 'observe' on 'MutationObserver': The options object may only set 'characterDataOldValue' to true when 'characterData' is true or not present.")}if(!e||!e.childList&&!e.attributes&&!e.characterData)throw new this[m].TypeError("Failed to execute 'observe' on 'MutationObserver': The options object must set at least one of 'attributes', 'characterData', or 'childList' to true.");e=Object.assign({},e,{attributeFilter:e.attributeFilter?e.attributeFilter.map((s)=>s.toLowerCase()):null});for(let s of this.#e)if(s.target===t){s.options=e;return}let o=new Lc({window:this[m],options:e,callback:this.#t.bind(this),observer:this,target:t});if(this.#e.push(o),!this[m][Nn].includes(this))this[m][Nn].push(this);t[vl](o.mutationListener)}disconnect(){if(this.#e.length===0)return;for(let o of this.#e)o.target[xa](o.mutationListener),o.destroy();this.#e=[];let t=this[m][Nn],e=t.indexOf(this);if(e!==-1)t.splice(e,1)}takeRecords(){let t=[];for(let e of this.#e)t=t.concat(e.takeRecords());return t}[At](){this.#r=!0,this.disconnect()}}class kc extends vt{postMessage(t,e){}start(){}close(){}}var CA=/\/\*[\s\S]*?\*\//gm;class zu{#t;constructor(t){this.#t=t}parseFromString(t){let e=this.#t,o=e[m],s=t.replace(CA,""),n=[],l=/{|}/gm,a=[],y=null,u=0,c;while(c=l.exec(s)){if(c[0]==="{"){let d=s.substring(u,c.index).trim();if(d[0]==="@"){let g=d.split(" "),f=g[0],E=g.slice(1).join(" ").trim();switch(f){case"@keyframes":case"@-webkit-keyframes":let R=new Ql(h,o,this);if(R[Fr]=f==="@-webkit-keyframes"?"-webkit-":"",R[rt]=E,R[Lo]=e,y){if(y.type===ht.mediaRule||y.type===ht.containerRule||y.type===ht.supportsRule)y.cssRules.push(R)}else n.push(R);y=R;break;case"@media":let H=E.split(","),pt=new jl(h,o,this);for(let Ct of H)pt.media.appendMedium(Ct.trim());if(pt[Lo]=e,y){if(y.type===ht.mediaRule||y.type===ht.containerRule||y.type===ht.supportsRule)y.cssRules.push(pt)}else n.push(pt);y=pt;break;case"@container":case"@-webkit-container":let gt=new Yl(h,o,this);if(gt[Fr]=f==="@-webkit-container"?"-webkit-":"",gt[So]=E,gt[Lo]=e,y){if(y.type===ht.mediaRule||y.type===ht.containerRule||y.type===ht.supportsRule)y.cssRules.push(gt)}else n.push(gt);y=gt;break;case"@supports":case"@-webkit-supports":let Rt=new Xl(h,o,this);if(Rt[Fr]=f==="@-webkit-supports"?"-webkit-":"",Rt[So]=E,Rt[Lo]=e,y){if(y.type===ht.mediaRule||y.type===ht.containerRule||y.type===ht.supportsRule)y.cssRules.push(Rt)}else n.push(Rt);y=Rt;break;case"@font-face":let lt=new Kl(h,o,this);if(lt[fr]=E,lt[Lo]=e,y){if(y.type===ht.mediaRule||y.type===ht.containerRule||y.type===ht.supportsRule)y.cssRules.push(lt)}else n.push(lt);y=lt;break;case"@scope":case"@-webkit-scope":let dt=new Zs(h,o,this);if(dt[Fr]=f==="@-webkit-scope"?"-webkit-":"",dt[Lo]=e,E){let Ct=E.split(/\s+to\s+/);if(Ct[0]&&Ct[0][0]==="("&&Ct[0][Ct[0].length-1]===")")dt[O]=Ct[0].slice(1,-1);if(Ct[1]&&Ct[1][0]==="("&&Ct[1][Ct[1].length-1]===")")dt[Y]=Ct[1].slice(1,-1)}if(y){if(y.type===ht.mediaRule||y.type===ht.containerRule||y.type===ht.supportsRule)y.cssRules.push(dt)}else n.push(dt);y=dt;break;default:let ee=new en(h,o,this);ee[Lo]=e,y=ee;break}}else if(y&&y.type===ht.keyframesRule){let g=new tn(h,o,this),f=d.trim();if(f==="from")f="0%";else if(f==="to")f="100%";g[ys]=f,g[Lo]=e,g[qs]=y,y.cssRules.push(g),y=g}else if(y&&(y.type===ht.mediaRule||y.type===ht.containerRule||y.type===ht.supportsRule)){if(this.validateSelectorText(d)){let g=new en(h,o,this);g[Ol]=d,g[Lo]=e,g[qs]=y,y.cssRules.push(g),y=g}}else if(this.validateSelectorText(d)){let g=new en(h,o,this);if(g[Ol]=d,g[Lo]=e,g[qs]=y,!y)n.push(g);y=g}if(y)a.push(y)}else{if(y){let d=s.substring(u,c.index).trim().replace(/([^;])$/,"$1;");switch(y.type){case ht.fontFaceRule:case ht.keyframeRule:case ht.styleRule:y[fr]=d;break}}a.pop(),y=a[a.length-1]||null}u=c.index+1}return n}validateSelectorText(t){let e=this.#t[m];return new us({window:e,scope:e.document,ignoreErrors:!0}).getSelectorGroups(t).length>0}}class Ju{cssRules=[];media;title;alternate;disabled;#t=null;constructor(t){this.media=t&&t.media?t.media:"",this.title=t&&t.title?t.title:"",this.alternate=t&&t.alternate?t.alternate:!1,this.disabled=t&&t.disabled?t.disabled:!1}insertRule(t,e){if(arguments.length===0)throw new this[m].TypeError("Failed to execute 'insertRule' on 'CSSStyleSheet': 1 argument required, but only 0 present.");let s=new zu(this).parseFromString(t);if(s.length===0||s.length>1)throw new this[m].DOMException(`Failed to execute 'insertRule' on 'CSSStyleSheet': Failed to parse the rule '${t}'.`,w.syntaxError);if(e!==void 0){if(e>this.cssRules.length)throw new this[m].DOMException(`Failed to execute 'insertRule' on 'CSSStyleSheet': The index provided (${e}) is larger than the maximum index (${this.cssRules.length-1}).`,w.indexSizeError);return this.cssRules.splice(e,0,s[0]),e}let n=this.cssRules.length;return this.cssRules.push(s[0]),n}deleteRule(t){if(arguments.length===0)throw new this[m].TypeError("Failed to execute 'deleteRule' on 'CSSStyleSheet': 1 argument required, but only 0 present.");this.cssRules.splice(t,1)}async replace(t){if(arguments.length===0)throw new this[m].TypeError("Failed to execute 'replace' on 'CSSStyleSheet': 1 argument required, but only 0 present.");this.replaceSync(t)}replaceSync(t){if(arguments.length===0)throw new this[m].TypeError("Failed to execute 'replaceSync' on 'CSSStyleSheet': 1 argument required, but only 0 present.");if(this.#t!==t)this.#t=t,this.cssRules=new zu(this).parseFromString(t)}}class cl extends vt{[p]=new Map;get onloadstart(){return this[p].get("onloadstart")??null}set onloadstart(t){this[p].set("onloadstart",t)}get onprogress(){return this[p].get("onprogress")??null}set onprogress(t){this[p].set("onprogress",t)}get onabort(){return this[p].get("onabort")??null}set onabort(t){this[p].set("onabort",t)}get onerror(){return this[p].get("onerror")??null}set onerror(t){this[p].set("onerror",t)}get onload(){return this[p].get("onload")??null}set onload(t){this[p].set("onload",t)}get ontimeout(){return this[p].get("ontimeout")??null}set ontimeout(t){this[p].set("ontimeout",t)}get onloadend(){return this[p].get("onloadend")??null}set onloadend(t){this[p].set("onloadend",t)}}class Mc extends cl{}class Zu{signal=new this[m].AbortSignal;abort(t){this.signal[ci](t)}}class th extends vt{[Se]=!1;[No]=void 0;onabort=null;constructor(){super();if(!this[m])throw TypeError("Failed to construct 'AbortSignal': Illegal constructor")}get[Symbol.toStringTag](){return"AbortSignal"}get aborted(){return this[Se]}set aborted(t){}get reason(){return this[No]}set reason(t){}[ci](t){if(this.aborted)return;this[No]=t!==void 0?t:new this[m].DOMException("signal is aborted without reason",w.abortError),this[Se]=!0,this.dispatchEvent(new N("abort"))}throwIfAborted(){if(this.aborted)throw this.reason}static abort(t){let e=new this;return e[No]=t!==void 0?t:new this[m].DOMException("signal is aborted without reason",w.abortError),e[Se]=!0,e}static timeout(t){let e=this[m],o=new this;return e.setTimeout(()=>{o[ci](new e.DOMException("signal timed out",w.timeoutError))},t),o}static any(t){for(let n of t)if(n[Se])return this.abort(n[No]);let e=new this,o=new Map,s=()=>{for(let n of t)n.removeEventListener("abort",o.get(n))};for(let n of t){let l=()=>{s(),e[ci](n[No])};o.set(n,l),n.addEventListener("abort",l)}return e}}class eh extends vt{state;onchange=null;constructor(t="granted"){super();this.state=t}}var pg;(function(t){t[t.unsent=0]="unsent",t[t.opened=1]="opened",t[t.headersReceived=2]="headersReceived",t[t.loading=3]="loading",t[t.done=4]="done"})(pg||(pg={}));var ke=pg;var ug;(function(t){t.arraybuffer="arraybuffer",t.blob="blob",t.document="document",t.json="json",t.text="text"})(ug||(ug={}));var xs=ug;class rh{static parse(t){if(!t.data)return"";switch(t.responseType){case xs.arraybuffer:let e=new ArrayBuffer(t.data.length),o=new Uint8Array(e);return o.set(t.data),o;case xs.blob:try{return new t.window.Blob([new Uint8Array(t.data)],{type:t.contentType||""})}catch(l){}return null;case xs.document:let n=new t.window.DOMParser;try{return n.parseFromString(t.data.toString(),"application/xml")}catch(l){}return null;case xs.json:try{return JSON.parse(t.data.toString())}catch(l){}return null;case xs.text:case"":default:return t.data.toString()}}}class Ic extends cl{static UNSENT=ke.unsent;static OPENED=ke.opened;static HEADERS_RECEIVED=ke.headersReceived;static LOADING=ke.loading;static DONE=ke.done;upload=new this[m].XMLHttpRequestUpload;withCredentials=!1;#t=!0;#e=null;#r=!1;#o=null;#i=null;#s="";#l=null;#m=Buffer.from([]);#a=ke.unsent;#y=null;constructor(){super();if(!this[m])throw TypeError(`Failed to construct '${this.constructor.name}': '${this.constructor.name}' was constructed outside a Window context.`)}get status(){return this.#i?.status||0}get statusText(){return this.#i?.statusText||""}get response(){if(!this.#i)return"";return this.#l}get responseText(){if(this.responseType!==xs.text&&this.responseType!=="")throw new this[m].DOMException(`Failed to read the 'responseText' property from 'XMLHttpRequest': The value is only accessible if the object's 'responseType' is '' or 'text' (was '${this.responseType}').`,w.invalidStateError);if(this.#l!==null)return this.#l;if(this.readyState===ke.headersReceived||this.readyState===ke.loading)return this.#m.toString()??"";return""}get responseXML(){if(this.responseType!==xs.document&&this.responseType!=="")throw new this[m].DOMException(`Failed to read the 'responseXML' property from 'XMLHttpRequest': The value is only accessible if the object's 'responseType' is '' or 'document' (was '${this.responseType}').`,w.invalidStateError);return this.responseType===""?null:this.#l}get responseURL(){return this.#i?.url||""}get readyState(){return this.#a}set responseType(t){if(this.readyState!==ke.opened&&this.readyState!==ke.unsent)throw new this[m].DOMException("Failed to set the 'responseType' property on 'XMLHttpRequest': The object's state must be OPENED or UNSENT.",w.invalidStateError);if(!this.#t)throw new this[m].DOMException("Failed to set the 'responseType' property on 'XMLHttpRequest': The response type cannot be changed for synchronous requests made from a document.",w.invalidStateError);this.#s=t}get responseType(){return this.#s}open(t,e,o=!0,s,n){let l=this[m];if(!o&&!!this.responseType&&this.responseType!==xs.text)throw new l.DOMException("Failed to execute 'open' on 'XMLHttpRequest': Synchronous requests from a document must not set a response type.",w.invalidAccessError);let a=new this[m].Headers;if(s){let y=Buffer.from(`${s}:${n||""}`);a.set("Authorization","Basic "+y.toString("base64"))}this.#t=o,this.#r=!1,this.#i=null,this.#l=null,this.#m=Buffer.from([]),this.#e=new l.AbortController,this.#o=new l.Request(e,{method:t,headers:a,signal:this.#e.signal,credentials:this.withCredentials?"include":"same-origin"}),this.#a=ke.opened}setRequestHeader(t,e){if(this.readyState!==ke.opened)throw new this[m].DOMException("Failed to execute 'setRequestHeader' on 'XMLHttpRequest': The object's state must be OPENED.",w.invalidStateError);if(bs.isHeaderForbidden(t))return!1;return this.#o.headers.set(t,e),!0}getResponseHeader(t){return this.#i?.headers.get(t)??null}getAllResponseHeaders(){if(!this.#i)return"";let t=[];for(let[e,o]of this.#i?.headers){let s=e.toLowerCase();if(s!=="set-cookie"&&s!=="set-cookie2")t.push(`${e}: ${o}`)}return t.join(`\r
188
- `)}send(t){let e=this[m];if(this.readyState!=ke.opened)throw new this[m].DOMException("Failed to execute 'send' on 'XMLHttpRequest': Connection must be opened before send() is called.",w.invalidStateError);if(typeof t==="object"&&t!==null&&t[D]===T.documentNode)t=new e.XMLSerializer().serializeToString(t);if(this.#t)this.#p(t).catch((o)=>{throw o});else this.#u(t)}abort(){if(this.#r)return;this.#r=!0,this.#e.abort()}overrideMimeType(t){if(this.readyState===ke.loading||this.readyState===ke.done)throw new this[m].DOMException("Failed to execute 'overrideMimeType' on 'XMLHttpRequest': MIME type cannot be overridden when the request state is LOADING or DONE.",w.invalidStateError);this.#y=t}async#p(t){let e=this[m],o=new it(e).getBrowserFrame();if(!o)return;let s=o[Pt],n=s.startTask(()=>this.abort());if(this.#a=ke.loading,this.#n(new N("readystatechange")),this.#n(new N("loadstart")),t)this.#o=new e.Request(this.#o.url,{method:this.#o.method,headers:this.#o.headers,signal:this.#e.signal,credentials:this.#o.credentials,body:t});this.#e.signal.addEventListener("abort",()=>{this.#r=!0,this.#a=ke.unsent,this.#n(new N("abort")),this.#n(new N("loadend")),this.#n(new N("readystatechange")),s.endTask(n)});let l=(d)=>{if(d instanceof re&&d.name===w.abortError){if(this.#r)return;this.#a=ke.unsent,this.#n(new N("abort"))}else this.#a=ke.done,this.#n(new rn("error",{error:d,message:d.message}));this.#n(new N("loadend")),this.#n(new N("readystatechange")),s.endTask(n)},a=new Br({browserFrame:o,window:e,url:this.#o.url,init:this.#o});try{this.#i=await a.send()}catch(d){l(d);return}this.#a=ke.headersReceived,this.#n(new N("readystatechange"));let y=this.#i.headers.get("Content-Length"),u=y!==null&&!isNaN(Number(y))?Number(y):null,c=0;if(this.#i.body){let d;try{for await(let g of this.#i.body){let f=typeof g==="string"?Buffer.from(g):g;this.#m=Buffer.concat([this.#m,f]),c+=g.length;try{this.#n(new Io("progress",{lengthComputable:u!==null,loaded:c,total:u!==null?u:0}))}catch(E){throw d=E,E}}}catch(g){if(g===d)throw g;l(g);return}}this.#l=rh.parse({window:e,responseType:this.#s,data:this.#m,contentType:this.#y||this.#i.headers.get("Content-Type")||this.#o.headers.get("Content-Type")}),this.#a=ke.done,this.#m=Buffer.from([]),s.endTask(n),this.#n(new N("readystatechange")),this.#n(new N("load")),this.#n(new N("loadend"))}#u(t){let e=this[m],o=new it(e).getBrowserFrame();if(!o)return;if(t)this.#o=new e.Request(this.#o.url,{method:this.#o.method,headers:this.#o.headers,signal:this.#e.signal,credentials:this.#o.credentials,body:t});this.#a=ke.loading;let s=new mn({browserFrame:o,window:e,url:this.#o.url,init:this.#o});try{this.#i=s.send()}catch(n){this.#a=ke.done,this.#n(new rn("error",{error:n,message:n.message})),this.#n(new N("loadend")),this.#n(new N("readystatechange"));return}this.#a=ke.headersReceived,this.#l=rh.parse({window:e,responseType:this.#s,data:this.#i.body,contentType:this.#y||this.#i.headers.get("Content-Type")||this.#o.headers.get("Content-Type")}),this.#a=ke.done,this.#n(new N("readystatechange")),this.#n(new N("load")),this.#n(new N("loadend"))}#n(t){let e=new it(this[m]).getBrowserFrame();if(!e?.page?.context?.browser?.settings?.errorCapture)return;let o=e.page.context.browser.settings,s=o.errorCapture;o.errorCapture=me.tryAndCatch,this.dispatchEvent(t),o.errorCapture=s}}var NA=/<([^\s/!>?]+)|<\/([^\s/!>?]+)\s*>|(<!--)|(-->)|(<!)|(<\?)|(\/>)|(>)/gm,LA=/\s*([a-zA-Z0-9-_:]+)\s*=\s*"([^"]*)("{0,1})|\s*([a-zA-Z0-9-_:]+)\s*=\s*'([^']*)('{0,1})/gm,SS=/^\s*([a-zA-Z0-9-_:]+)$/,kA=/version="[^"]+"/,MA=/"([^"]+)"/gm,oh=/\s+/,IA=/\n/g,Yt;(function(t){t.any="any",t.startTag="startTag",t.comment="comment",t.documentType="documentType",t.processingInstruction="processingInstruction",t.error="error"})(Yt||(Yt={}));var RA=Object.values(Ht);class ih{window;rootNode=null;nodeStack=[];tagNameStack=[];defaultNamespaceStack=null;namespacePrefixStack=null;startTagIndex=0;markupRegExp=null;lastIndex=0;errorIndex=0;nextElement=null;nextTagName=null;currentNode=null;readState=Yt.any;errorMessage=null;constructor(t){this.window=t}parse(t){this.rootNode=new this.window.XMLDocument,this.nodeStack=[this.rootNode],this.tagNameStack=[null],this.currentNode=this.rootNode,this.readState=Yt.any,this.defaultNamespaceStack=[null],this.namespacePrefixStack=[null],this.startTagIndex=0,this.errorIndex=0,this.errorMessage=null,this.markupRegExp=new RegExp(NA,"gm"),this.lastIndex=0;let e;this.rootNode[Lr]=this.window,t=String(t);while(e=this.markupRegExp.exec(t)){switch(this.readState){case Yt.any:if(e.index!==this.lastIndex&&(e[1]||e[2]||e[3]||e[4]||e[5]!==void 0||e[6]))this.parsePlainText(t.substring(this.lastIndex,e.index));if(e[1])this.parseStartTag(e[1]);else if(e[2]){if(!this.parseEndTag(e[2]))this.errorMessage=`Opening and ending tag mismatch: ${this.tagNameStack[this.tagNameStack.length-1]} line ${t.substring(0,this.startTagIndex).split(`
187
+ `);import{URL as vA}from"url";class Tc{static openPage(t,e){let o=this.getWindowFeatures(e?.features||""),s=e?.target!==void 0?String(e.target):null,n=new vA(t.window.location.href),l=Io.getRelativeURL(t,e?.url),a=t.window,y;if(t.window!==a)return null;switch(s){case"_self":y=t;break;case"_top":y=t.page.mainFrame;break;case"_parent":y=t.parentFrame??t;break;case"_blank":default:y=t.page.context.newPage().mainFrame,y[ro]=t;break}if(y.goto(l.href,{referrer:o.noreferrer?void 0:t.window.location.origin,referrerPolicy:o.noreferrer?"no-referrer":void 0}).catch((c)=>{y.page.console.error(c)}),l.protocol==="javascript:")return y.window;if(y===t&&t.window===a)return null;if(o.popup&&s!=="_self"&&s!=="_top"&&s!=="_parent"){if(y[Ln]=!0,o?.width||o?.height)y.page.setViewport({width:o?.width,height:o?.height});if(o?.left)y.window.screenLeft=o.left,y.window.screenX=o.left;if(o?.top)y.window.screenTop=o.top,y.window.screenY=o.top}if(s&&s!=="_self"&&s!=="_top"&&s!=="_parent"&&s!=="_blank")y.window.name=s;let u=Jo.isCORS(n,y.url);if(!o.noopener&&!o.noreferrer&&t.window&&y[ro]&&y.window!==t.window)y[bi]=u?new ll(t.window):t.window;if(o.noopener||o.noreferrer)return null;if(u)return new ll(y.window,t.window);return y.window}static getWindowFeatures(t){let e=t.split(","),o={popup:!1,width:0,height:0,left:0,top:0,noopener:!1,noreferrer:!1};for(let s of e){let[n,l]=s.split("=");switch(n){case"popup":o.popup=!l||l==="yes"||l==="1"||l==="true";break;case"width":case"innerWidth":o.width=parseInt(l,10);break;case"height":case"innerHeight":o.height=parseInt(l,10);break;case"left":case"screenX":o.left=parseInt(l,10);break;case"top":case"screenY":o.top=parseInt(l,10);break;case"noopener":o.noopener=!0;break;case"noreferrer":o.noreferrer=!0;break}}return o}}import{PerformanceObserver as Pw,PerformanceEntry as Aw}from"perf_hooks";class Cc{#t;constructor(t){this.#t=t}createDocument(t,e,o){return new this.#t[m].HTMLDocument}createHTMLDocument(){return new this.#t[m].HTMLDocument}createDocumentType(t,e,o){let s=Ve.createNode(this.#t,nn);return s[rt]=t,s[Fs]=e,s[Vs]=o,s}}var mg;(function(t){t.hidden="hidden",t.visible="visible",t.prerender="prerender"})(mg||(mg={}));var yg=mg;var TA=/^[a-z][a-z0-9-]+$/;class cn extends st{[ir]=null;[Me]=null;[Ms]=null;[Do]=null;[ve]=this;[Ns]=!0;[Ls]=!1;[D]=T.documentNode;[tt]=!0;[Rs]=[];[Nh]=new Cc(this);[kn]=uc.interactive;[Pr]="";[Lr]=null;[Ma]=null;[qo]=[];[x]=null;[Pi]=new Map;[xe]="text/html";[Un]=null;[Rr]=new Map;[p]=new Map;[Tn]=null;get onreadystatechange(){return this[p].get("onreadystatechange")??null}set onreadystatechange(t){this[p].set("onreadystatechange",t)}get onpointerlockchange(){return this[p].get("onpointerlockchange")??null}set onpointerlockchange(t){this[p].set("onpointerlockchange",t)}get onpointerlockerror(){return this[p].get("onpointerlockerror")??null}set onpointerlockerror(t){this[p].set("onpointerlockerror",t)}get onbeforecopy(){return this[p].get("onbeforecopy")??null}set onbeforecopy(t){this[p].set("onbeforecopy",t)}get onbeforecut(){return this[p].get("onbeforecut")??null}set onbeforecut(t){this[p].set("onbeforecut",t)}get onbeforepaste(){return this[p].get("onbeforepaste")??null}set onbeforepaste(t){this[p].set("onbeforepaste",t)}get onfreeze(){return this[p].get("onfreeze")??null}set onfreeze(t){this[p].set("onfreeze",t)}get onprerenderingchange(){return this[p].get("onprerenderingchange")??null}set onprerenderingchange(t){this[p].set("onprerenderingchange",t)}get onresume(){return this[p].get("onresume")??null}set onresume(t){this[p].set("onresume",t)}get onsearch(){return this[p].get("onsearch")??null}set onsearch(t){this[p].set("onsearch",t)}get onvisibilitychange(){return this[p].get("onvisibilitychange")??null}set onvisibilitychange(t){this[p].set("onvisibilitychange",t)}get onfullscreenchange(){return this[p].get("onfullscreenchange")??null}set onfullscreenchange(t){this[p].set("onfullscreenchange",t)}get onfullscreenerror(){return this[p].get("onfullscreenerror")??null}set onfullscreenerror(t){this[p].set("onfullscreenerror",t)}get onwebkitfullscreenchange(){return this[p].get("onwebkitfullscreenchange")??null}set onwebkitfullscreenchange(t){this[p].set("onwebkitfullscreenchange",t)}get onwebkitfullscreenerror(){return this[p].get("onwebkitfullscreenerror")??null}set onwebkitfullscreenerror(t){this[p].set("onwebkitfullscreenerror",t)}get onbeforexrselect(){return this[p].get("onbeforexrselect")??null}set onbeforexrselect(t){this[p].set("onbeforexrselect",t)}get onabort(){return this[p].get("onabort")??null}set onabort(t){this[p].set("onabort",t)}get onbeforeinput(){return this[p].get("onbeforeinput")??null}set onbeforeinput(t){this[p].set("onbeforeinput",t)}get onbeforematch(){return this[p].get("onbeforematch")??null}set onbeforematch(t){this[p].set("onbeforematch",t)}get onbeforetoggle(){return this[p].get("onbeforetoggle")??null}set onbeforetoggle(t){this[p].set("onbeforetoggle",t)}get onblur(){return this[p].get("onblur")??null}set onblur(t){this[p].set("onblur",t)}get oncancel(){return this[p].get("oncancel")??null}set oncancel(t){this[p].set("oncancel",t)}get oncanplay(){return this[p].get("oncanplay")??null}set oncanplay(t){this[p].set("oncanplay",t)}get oncanplaythrough(){return this[p].get("oncanplaythrough")??null}set oncanplaythrough(t){this[p].set("oncanplaythrough",t)}get onchange(){return this[p].get("onchange")??null}set onchange(t){this[p].set("onchange",t)}get onclick(){return this[p].get("onclick")??null}set onclick(t){this[p].set("onclick",t)}get onclose(){return this[p].get("onclose")??null}set onclose(t){this[p].set("onclose",t)}get oncontentvisibilityautostatechange(){return this[p].get("oncontentvisibilityautostatechange")??null}set oncontentvisibilityautostatechange(t){this[p].set("oncontentvisibilityautostatechange",t)}get oncontextlost(){return this[p].get("oncontextlost")??null}set oncontextlost(t){this[p].set("oncontextlost",t)}get oncontextmenu(){return this[p].get("oncontextmenu")??null}set oncontextmenu(t){this[p].set("oncontextmenu",t)}get oncontextrestored(){return this[p].get("oncontextrestored")??null}set oncontextrestored(t){this[p].set("oncontextrestored",t)}get oncuechange(){return this[p].get("oncuechange")??null}set oncuechange(t){this[p].set("oncuechange",t)}get ondblclick(){return this[p].get("ondblclick")??null}set ondblclick(t){this[p].set("ondblclick",t)}get ondrag(){return this[p].get("ondrag")??null}set ondrag(t){this[p].set("ondrag",t)}get ondragend(){return this[p].get("ondragend")??null}set ondragend(t){this[p].set("ondragend",t)}get ondragenter(){return this[p].get("ondragenter")??null}set ondragenter(t){this[p].set("ondragenter",t)}get ondragleave(){return this[p].get("ondragleave")??null}set ondragleave(t){this[p].set("ondragleave",t)}get ondragover(){return this[p].get("ondragover")??null}set ondragover(t){this[p].set("ondragover",t)}get ondragstart(){return this[p].get("ondragstart")??null}set ondragstart(t){this[p].set("ondragstart",t)}get ondrop(){return this[p].get("ondrop")??null}set ondrop(t){this[p].set("ondrop",t)}get ondurationchange(){return this[p].get("ondurationchange")??null}set ondurationchange(t){this[p].set("ondurationchange",t)}get onemptied(){return this[p].get("onemptied")??null}set onemptied(t){this[p].set("onemptied",t)}get onended(){return this[p].get("onended")??null}set onended(t){this[p].set("onended",t)}get onerror(){return this[p].get("onerror")??null}set onerror(t){this[p].set("onerror",t)}get onfocus(){return this[p].get("onfocus")??null}set onfocus(t){this[p].set("onfocus",t)}get onformdata(){return this[p].get("onformdata")??null}set onformdata(t){this[p].set("onformdata",t)}get oninput(){return this[p].get("oninput")??null}set oninput(t){this[p].set("oninput",t)}get oninvalid(){return this[p].get("oninvalid")??null}set oninvalid(t){this[p].set("oninvalid",t)}get onkeydown(){return this[p].get("onkeydown")??null}set onkeydown(t){this[p].set("onkeydown",t)}get onkeypress(){return this[p].get("onkeypress")??null}set onkeypress(t){this[p].set("onkeypress",t)}get onkeyup(){return this[p].get("onkeyup")??null}set onkeyup(t){this[p].set("onkeyup",t)}get onload(){return this[p].get("onload")??null}set onload(t){this[p].set("onload",t)}get onloadeddata(){return this[p].get("onloadeddata")??null}set onloadeddata(t){this[p].set("onloadeddata",t)}get onloadedmetadata(){return this[p].get("onloadedmetadata")??null}set onloadedmetadata(t){this[p].set("onloadedmetadata",t)}get onloadstart(){return this[p].get("onloadstart")??null}set onloadstart(t){this[p].set("onloadstart",t)}get onmousedown(){return this[p].get("onmousedown")??null}set onmousedown(t){this[p].set("onmousedown",t)}get onmouseenter(){return this[p].get("onmouseenter")??null}set onmouseenter(t){this[p].set("onmouseenter",t)}get onmouseleave(){return this[p].get("onmouseleave")??null}set onmouseleave(t){this[p].set("onmouseleave",t)}get onmousemove(){return this[p].get("onmousemove")??null}set onmousemove(t){this[p].set("onmousemove",t)}get onmouseout(){return this[p].get("onmouseout")??null}set onmouseout(t){this[p].set("onmouseout",t)}get onmouseover(){return this[p].get("onmouseover")??null}set onmouseover(t){this[p].set("onmouseover",t)}get onmouseup(){return this[p].get("onmouseup")??null}set onmouseup(t){this[p].set("onmouseup",t)}get onmousewheel(){return this[p].get("onmousewheel")??null}set onmousewheel(t){this[p].set("onmousewheel",t)}get onpause(){return this[p].get("onpause")??null}set onpause(t){this[p].set("onpause",t)}get onplay(){return this[p].get("onplay")??null}set onplay(t){this[p].set("onplay",t)}get onplaying(){return this[p].get("onplaying")??null}set onplaying(t){this[p].set("onplaying",t)}get onprogress(){return this[p].get("onprogress")??null}set onprogress(t){this[p].set("onprogress",t)}get onratechange(){return this[p].get("onratechange")??null}set onratechange(t){this[p].set("onratechange",t)}get onreset(){return this[p].get("onreset")??null}set onreset(t){this[p].set("onreset",t)}get onresize(){return this[p].get("onresize")??null}set onresize(t){this[p].set("onresize",t)}get onscroll(){return this[p].get("onscroll")??null}set onscroll(t){this[p].set("onscroll",t)}get onsecuritypolicyviolation(){return this[p].get("onsecuritypolicyviolation")??null}set onsecuritypolicyviolation(t){this[p].set("onsecuritypolicyviolation",t)}get onseeked(){return this[p].get("onseeked")??null}set onseeked(t){this[p].set("onseeked",t)}get onseeking(){return this[p].get("onseeking")??null}set onseeking(t){this[p].set("onseeking",t)}get onselect(){return this[p].get("onselect")??null}set onselect(t){this[p].set("onselect",t)}get onslotchange(){return this[p].get("onslotchange")??null}set onslotchange(t){this[p].set("onslotchange",t)}get onstalled(){return this[p].get("onstalled")??null}set onstalled(t){this[p].set("onstalled",t)}get onsubmit(){return this[p].get("onsubmit")??null}set onsubmit(t){this[p].set("onsubmit",t)}get onsuspend(){return this[p].get("onsuspend")??null}set onsuspend(t){this[p].set("onsuspend",t)}get ontimeupdate(){return this[p].get("ontimeupdate")??null}set ontimeupdate(t){this[p].set("ontimeupdate",t)}get ontoggle(){return this[p].get("ontoggle")??null}set ontoggle(t){this[p].set("ontoggle",t)}get onvolumechange(){return this[p].get("onvolumechange")??null}set onvolumechange(t){this[p].set("onvolumechange",t)}get onwaiting(){return this[p].get("onwaiting")??null}set onwaiting(t){this[p].set("onwaiting",t)}get onwebkitanimationend(){return this[p].get("onwebkitanimationend")??null}set onwebkitanimationend(t){this[p].set("onwebkitanimationend",t)}get onwebkitanimationiteration(){return this[p].get("onwebkitanimationiteration")??null}set onwebkitanimationiteration(t){this[p].set("onwebkitanimationiteration",t)}get onwebkitanimationstart(){return this[p].get("onwebkitanimationstart")??null}set onwebkitanimationstart(t){this[p].set("onwebkitanimationstart",t)}get onwebkittransitionend(){return this[p].get("onwebkittransitionend")??null}set onwebkittransitionend(t){this[p].set("onwebkittransitionend",t)}get onwheel(){return this[p].get("onwheel")??null}set onwheel(t){this[p].set("onwheel",t)}get onauxclick(){return this[p].get("onauxclick")??null}set onauxclick(t){this[p].set("onauxclick",t)}get ongotpointercapture(){return this[p].get("ongotpointercapture")??null}set ongotpointercapture(t){this[p].set("ongotpointercapture",t)}get onlostpointercapture(){return this[p].get("onlostpointercapture")??null}set onlostpointercapture(t){this[p].set("onlostpointercapture",t)}get onpointerdown(){return this[p].get("onpointerdown")??null}set onpointerdown(t){this[p].set("onpointerdown",t)}get onpointermove(){return this[p].get("onpointermove")??null}set onpointermove(t){this[p].set("onpointermove",t)}get onpointerrawupdate(){return this[p].get("onpointerrawupdate")??null}set onpointerrawupdate(t){this[p].set("onpointerrawupdate",t)}get onpointerup(){return this[p].get("onpointerup")??null}set onpointerup(t){this[p].set("onpointerup",t)}get onpointercancel(){return this[p].get("onpointercancel")??null}set onpointercancel(t){this[p].set("onpointercancel",t)}get onpointerover(){return this[p].get("onpointerover")??null}set onpointerover(t){this[p].set("onpointerover",t)}get onpointerout(){return this[p].get("onpointerout")??null}set onpointerout(t){this[p].set("onpointerout",t)}get onpointerenter(){return this[p].get("onpointerenter")??null}set onpointerenter(t){this[p].set("onpointerenter",t)}get onpointerleave(){return this[p].get("onpointerleave")??null}set onpointerleave(t){this[p].set("onpointerleave",t)}get onselectstart(){return this[p].get("onselectstart")??null}set onselectstart(t){this[p].set("onselectstart",t)}get onselectionchange(){return this[p].get("onselectionchange")??null}set onselectionchange(t){this[p].set("onselectionchange",t)}get onanimationend(){return this[p].get("onanimationend")??null}set onanimationend(t){this[p].set("onanimationend",t)}get onanimationiteration(){return this[p].get("onanimationiteration")??null}set onanimationiteration(t){this[p].set("onanimationiteration",t)}get onanimationstart(){return this[p].get("onanimationstart")??null}set onanimationstart(t){this[p].set("onanimationstart",t)}get ontransitionrun(){return this[p].get("ontransitionrun")??null}set ontransitionrun(t){this[p].set("ontransitionrun",t)}get ontransitionstart(){return this[p].get("ontransitionstart")??null}set ontransitionstart(t){this[p].set("ontransitionstart",t)}get ontransitionend(){return this[p].get("ontransitionend")??null}set ontransitionend(t){this[p].set("ontransitionend",t)}get ontransitioncancel(){return this[p].get("ontransitioncancel")??null}set ontransitioncancel(t){this[p].set("ontransitioncancel",t)}get oncopy(){return this[p].get("oncopy")??null}set oncopy(t){this[p].set("oncopy",t)}get oncut(){return this[p].get("oncut")??null}set oncut(t){this[p].set("oncut",t)}get onpaste(){return this[p].get("onpaste")??null}set onpaste(t){this[p].set("onpaste",t)}get onscrollend(){return this[p].get("onscrollend")??null}set onscrollend(t){this[p].set("onscrollend",t)}get onscrollsnapchange(){return this[p].get("onscrollsnapchange")??null}set onscrollsnapchange(t){this[p].set("onscrollsnapchange",t)}get onscrollsnapchanging(){return this[p].get("onscrollsnapchanging")??null}set onscrollsnapchanging(t){this[p].set("onscrollsnapchanging",t)}get adoptedStyleSheets(){return this[Rs]}set adoptedStyleSheets(t){this[Rs]=t}get implementation(){return this[Nh]}get readyState(){return this[kn]}get referrer(){return this[Pr]}get defaultView(){return this[Lr]}get children(){if(!this[ir]){let t=this[dt];this[ir]=new de(h,()=>t)}return this[ir]}get charset(){return this.characterSet}get characterSet(){let t=mt.querySelector(this,"meta[charset]")?.getAttributeNS(null,"charset");return t?t:"UTF-8"}get title(){let t=oe.getElementByTagName(this,"title");if(t)return t.text.trim();return""}set title(t){let e=oe.getElementByTagName(this,"title");if(e)e.textContent=t;else{let o=this.createElement("title");o.textContent=t,this.head.appendChild(o)}}get links(){return mt.querySelectorAll(this,"a[href],area[href]")}get forms(){if(!this[Ma])this[Ma]=oe.getElementsByTagName(this,"form");return this[Ma]}get childElementCount(){return this[dt].length}get firstElementChild(){return this[dt][0]??null}get lastElementChild(){let t=this[dt];return t[t.length-1]??null}get cookie(){let t=new it(this[m]).getBrowserFrame();if(!t)return"";return ei.cookiesToString(t.page.context.cookieContainer.getCookies(this[m].location,!0))}set cookie(t){let e=new it(this[m]).getBrowserFrame();if(!e)return;let o=ei.stringToCookie(this[m].location,t);if(o)e.page.context.cookieContainer.addCookies([o])}get nodeName(){return"#document"}get documentElement(){return this[dt][0]??null}get doctype(){for(let t of this[_])if(t instanceof nn)return t;return null}get body(){let t=this.documentElement;return t?oe.getElementByTagName(t,"body"):null}get head(){let t=this.documentElement;return t?oe.getElementByTagName(t,"head"):null}get styleSheets(){let t=mt.querySelectorAll(this,'link[rel="stylesheet"][href],style'),e=[];for(let o of t){let s=o.sheet;if(s)e.push(s)}return e}get activeElement(){if(this[Me]&&!this[Me][tt])this[Me]=null;if(this[Me]){let t=this[Me].getRootNode(),e=this[Me];while(t!==this)e=t.host,t=e?e.getRootNode():this;return e}return this[Me]||this.body||this.documentElement||null}get scrollingElement(){return this.documentElement}get location(){return this[m].location}get scripts(){return this.getElementsByTagName("script")}get baseURI(){let t=oe.getElementByTagName(this,"base");if(t)return t.href;return this[m].location.href}get URL(){return this[m].location.href}get documentURI(){return this.URL}get domain(){return this[m].location.hostname}get visibilityState(){if(this.defaultView)return yg.visible;return yg.hidden}get hidden(){if(this.defaultView)return!1;return!0}get currentScript(){return this[Do]}get contentType(){return this[xe]}append(...t){oe.append(this,...t)}prepend(...t){oe.prepend(this,...t)}replaceChildren(...t){oe.replaceChildren(this,...t)}querySelectorAll(t){return mt.querySelectorAll(this,t)}querySelector(t){return mt.querySelector(this,t)}queryCommandSupported(t){if(!arguments.length)throw new this[m].TypeError("Failed to execute 'queryCommandSupported' on 'Document': 1 argument required, but only 0 present.");return!0}getElementsByClassName(t){return oe.getElementsByClassName(this,t)}getElementsByTagName(t){return oe.getElementsByTagName(this,t)}getElementsByTagNameNS(t,e){return oe.getElementsByTagNameNS(this,t,e)}getElementById(t){return oe.getElementById(this,t)}getElementsByName(t){return mt.querySelectorAll(this,`[name="${t}"]`)}write(t){if(this[Ns]||this[Ls]){if(this[Ns]){if(!this[Ls])this.open();this[Ns]=!1}let{documentElement:e,head:o,body:s}=this;if(!e||!o||!s)this.open();this[Ns]=!1,this[Ls]=!1,new Cr(this[m],{evaluateScripts:!0}).parse(t,this)}else new Cr(this[m],{evaluateScripts:!0}).parse(t,this.body)}open(){this[Ls]=!0;for(let l of this[he].bubbling.keys()){let a=this[he].bubbling.get(l);if(a)for(let y of a)this.removeEventListener(l,y)}for(let l of this[he].capturing.keys()){let a=this[he].capturing.get(l);if(a)for(let y of a)this.removeEventListener(l,y)}let t=this[_];while(t.length)this.removeChild(t[0]);let e=this[Nh].createDocumentType("html","",""),o=this.createElement("html"),s=this.createElement("body"),n=this.createElement("head");return this.appendChild(e),this.appendChild(o),o.appendChild(n),o.appendChild(s),this}close(){}createElement(t,e){return this.createElementNS(Ut.html,Vr.asciiLowerCase(String(t)),e)}createElementNS(t,e,o){let s=this[m];if(e=String(e),!e)throw new s.DOMException("Failed to execute 'createElementNS' on 'Document': The qualified name provided is empty.");let n=e.split(":"),l=n[1]??n[0],a=n[1]?n[0]:null;switch(t){case Ut.svg:let y=Ip[e.toLowerCase()],u=y&&y.localName===e?s[y.className]:s.SVGElement,c=Ve.createNode(this,u);return c[z]=e,c[ot]=l,c[Ft]=a,c[J]=t,c[Zr]=o&&o.is?String(o.is):null,c;case Ut.html:let d=s.customElements[di]?.get(o&&o.is?String(o.is):e);if(d){let H=new d.elementClass;return H[z]=Vr.asciiUpperCase(e),H[ot]=l,H[Ft]=a,H[J]=t,H[Zr]=o&&o.is?String(o.is):null,H}let g=$e[e]?s[$e[e].className]:null;if(g){let H=Ve.createNode(this,g);return H[z]=Vr.asciiUpperCase(e),H[ot]=l,H[Ft]=a,H[J]=t,H[Zr]=o&&o.is?String(o.is):null,H}let f=e.includes("-")?s.HTMLElement:s.HTMLUnknownElement,E=Ve.createNode(this,f);return E[z]=Vr.asciiUpperCase(e),E[ot]=l,E[Ft]=a,E[J]=t,E[Zr]=o&&o.is?String(o.is):null,E;default:let R=Ve.createNode(this,Or);return R[z]=e,R[ot]=l,R[Ft]=a,R[J]=t,R[Zr]=o&&o.is?String(o.is):null,R}}createTextNode(t){if(arguments.length<1)throw new this[m].TypeError(`Failed to execute 'createTextNode' on 'Document': 1 argument required, but only ${arguments.length} present.`);return Ve.createNode(this,this[m].Text,String(t))}createComment(t){if(arguments.length<1)throw new this[m].TypeError(`Failed to execute 'createComment' on 'Document': 1 argument required, but only ${arguments.length} present.`);return Ve.createNode(this,this[m].Comment,String(t))}createDocumentFragment(){return Ve.createNode(this,this[m].DocumentFragment)}createNodeIterator(t,e=-1,o=null){return new ca(t,e,o)}createTreeWalker(t,e=-1,o=null){return new hn(t,e,o)}createEvent(t){if(typeof this[m][t]==="function")return new this[m][t]("init");return new C("init")}createAttribute(t){let e=Ve.createNode(this,this[m].Attr),o=Vr.asciiLowerCase(t),s=o.split(":");return e[rt]=o,e[ot]=s[1]??o,e[Ft]=s[1]?s[0]:null,e}createAttributeNS(t,e){let o=Ve.createNode(this,this[m].Attr),s=e.split(":");if(o[J]=t,o[rt]=e,o[ot]=s[1]??e,o[Ft]=s[1]?s[0]:null,!t&&o[Ft])throw new this[m].DOMException(`Failed to execute 'createAttributeNS' on 'Document': The namespace URI provided ('${t||""}') is not valid for the qualified name provided ('${e}').`,w.namespaceError);return o}importNode(t,e=!1){if(!(t instanceof st))throw new this[m].DOMException("Parameter 1 was not of type Node.");let o=t.cloneNode(e);return this.#t(o),o}createRange(){return new this[m].Range}adoptNode(t){if(!(t instanceof st))throw new this[m].DOMException("Parameter 1 was not of type Node.");let e=t[W]?t[W].removeChild(t):t;return Object.defineProperty(e,"ownerDocument",{value:this}),e}getSelection(){if(!this[Tn])this[Tn]=new pa(this);return this[Tn]}hasFocus(){return!!this.activeElement}createProcessingInstruction(t,e){if(arguments.length<2)throw new this[m].TypeError(`Failed to execute 'createProcessingInstruction' on 'Document': 2 arguments required, but only ${arguments.length} present.`);if(t=String(t),e=String(e),!t||!TA.test(t))throw new this[m].DOMException(`Failed to execute 'createProcessingInstruction' on 'Document': The target provided ('${t}') is not a valid name.`);if(e.includes("?>"))throw new this[m].DOMException("Failed to execute 'createProcessingInstruction' on 'Document': The data provided ('?>') contains '?>'");let o=Ve.createNode(this,this[m].ProcessingInstruction);return o[Yt]=e,o[wr]=t,o}elementFromPoint(t,e){return null}[At](){super[At](),this[ir]=null,this[Me]=null,this[Ms]=null,this[Do]=null,this[Lr]=null,this[Rs]=[],this[Ma]=null,this[qo]=[],this[Pi].clear(),this[Un]=null,this[Rr].clear(),this[p].clear(),this[Tn]=null}#t(t){t[x]=this;for(let e of t[_])this.#t(e)}}class Ku extends cn{constructor(){super();let t=this.createElement("html"),e=this.createElement("body"),o=this.createElement("head");this.appendChild(t),t.appendChild(o),t.appendChild(e)}[Et](t,e=!1){if(t[D]===T.textNode)throw new this[m].Error("Failed to execute 'appendChild' on 'Node': Nodes of type '#text' may not be inserted inside nodes of type '#document'.");if(t[D]===T.documentFragmentNode)return t;if(t[D]===T.elementNode&&this[dt].length!==0)throw new this[m].Error("Failed to execute 'appendChild' on 'Node': Only one element on document allowed.");return super[Et](t,e)}[kr](t,e,o=!1){if(t[D]===T.textNode)throw new this[m].Error("Failed to execute 'insertBefore' on 'Node': Nodes of type '#text' may not be inserted inside nodes of type '#document'.");if(t[D]===T.documentFragmentNode)return t;if(t[D]===T.elementNode&&this[dt].length!==0)throw new this[m].Error("Failed to execute 'insertBefore' on 'Node': Only one element on document allowed.");return super[kr](t,e,o)}}class Qu extends cn{[xe]="application/xml"}class ju extends bs{[D]=T.textNode;[ze]=null;[hr]=null;get nodeName(){return"#text"}get wholeText(){if(!this[W])return this[Yt];let t="";for(let e=this.previousSibling;ft.isTextNode(e);e=e.previousSibling)t=e.data+t;t+=this[Yt];for(let e=this.nextSibling;ft.isTextNode(e);e=e.nextSibling)t+=e.data;return t}get data(){return this[Yt]}set data(t){if(super.data=t,this[ze])this[ze][Ea]();if(this[hr])this[hr][Fn]()}splitText(t){let e=this[Yt].length;if(t<0||t>e)throw new this[m].DOMException("The index is not in the allowed range.",w.indexSizeError);let o=e-t,s=this.substringData(t,o),n=this[x].createTextNode(s);if(this[W]!==null)this[W].insertBefore(n,this.nextSibling);return this.replaceData(t,o,""),n}toString(){return"[object Text]"}[ht](t=!1){return super[ht](t)}[zr](){if(super[zr](),this[ze])this[ze][Ea]();if(this[hr]&&this[Yt])this[hr][Fn]()}[Vi](){if(this[ze])this[ze][Ea]();if(this[hr]&&this[Yt])this[hr][Fn]();super[Vi]()}}class qu extends bs{[D]=T.commentNode;get nodeName(){return"#comment"}toString(){return"[object Comment]"}[ht](t=!1){return super[ht](t)}}class $u extends la{[z]="IMG";[ot]="img";[J]=Ut.html;constructor(t=null,e=null){super();if(t!==null)this.width=t;if(e!==null)this.height=e}}class Nc extends ia{[z]="AUDIO";[ot]="audio";[J]=Ut.html;constructor(t=null){super();if(t!==null)this.src=t}}class Lc{target;options;mutationListener;#t;#e;#r;#o=[];#i=!1;#s=!1;constructor(t){this.options=t.options,this.target=t.target,this.mutationListener={options:t.options,callback:new WeakRef((e)=>this.report(e))},this.#t=t.window,this.#e=t.observer,this.#r=t.callback}report(t){if(this.#i)return;if(this.#o.push(t),this.#s)return;this.#t.queueMicrotask(()=>{if(this.#i)return;this.#s=!1;let e=this.#o;if(e?.length>0)this.#o=[],this.#r(e,this.#e)}),this.#s=!0}takeRecords(){if(this.#i)return[];let t=this.#o;return this.#o=[],t}destroy(){if(this.#i)return;this.#i=!0,this.options=null,this.target=null,this.mutationListener=null,this.#t=null,this.#e=null,this.#r=null,this.#o=null}}class Xu{#t;#e=[];#r=!1;constructor(t){if(!this[m])throw TypeError(`Failed to construct '${this.constructor.name}': '${this.constructor.name}' was constructed outside a Window context.`);this.#t=t}observe(t,e){if(this.#r)return;if(!t)throw new this[m].TypeError(`Failed to execute 'observe' on 'MutationObserver': The first parameter "target" should be of type "Node".`);if(e&&(e.attributeFilter||e.attributeOldValue)){if(e.attributes===void 0)e=Object.assign({},e,{attributes:!0,attributeFilter:e.attributeFilter,attributeOldValue:e.attributeOldValue});if(!e.attributes&&e.attributeOldValue)throw new this[m].TypeError("Failed to execute 'observe' on 'MutationObserver': The options object may only set 'attributeOldValue' to true when 'attributes' is true or not present.");if(!e.attributes&&e.attributeFilter)throw new this[m].TypeError("Failed to execute 'observe' on 'MutationObserver': The options object may only set 'attributeFilter' when 'attributes' is true or not present.")}if(e&&e.characterDataOldValue){if(e.characterData===void 0)e=Object.assign({},e,{characterData:!0,characterDataOldValue:e.characterDataOldValue});if(!e.characterData&&e.characterDataOldValue)throw new this[m].TypeError("Failed to execute 'observe' on 'MutationObserver': The options object may only set 'characterDataOldValue' to true when 'characterData' is true or not present.")}if(!e||!e.childList&&!e.attributes&&!e.characterData)throw new this[m].TypeError("Failed to execute 'observe' on 'MutationObserver': The options object must set at least one of 'attributes', 'characterData', or 'childList' to true.");e=Object.assign({},e,{attributeFilter:e.attributeFilter?e.attributeFilter.map((s)=>s.toLowerCase()):null});for(let s of this.#e)if(s.target===t){s.options=e;return}let o=new Lc({window:this[m],options:e,callback:this.#t.bind(this),observer:this,target:t});if(this.#e.push(o),!this[m][Nn].includes(this))this[m][Nn].push(this);t[vl](o.mutationListener)}disconnect(){if(this.#e.length===0)return;for(let o of this.#e)o.target[xa](o.mutationListener),o.destroy();this.#e=[];let t=this[m][Nn],e=t.indexOf(this);if(e!==-1)t.splice(e,1)}takeRecords(){let t=[];for(let e of this.#e)t=t.concat(e.takeRecords());return t}[At](){this.#r=!0,this.disconnect()}}class kc extends vt{postMessage(t,e){}start(){}close(){}}var CA=/\/\*[\s\S]*?\*\//gm;class zu{#t;constructor(t){this.#t=t}parseFromString(t){let e=this.#t,o=e[m],s=t.replace(CA,""),n=[],l=/{|}/gm,a=[],y=null,u=0,c;while(c=l.exec(s)){if(c[0]==="{"){let d=s.substring(u,c.index).trim();if(d[0]==="@"){let g=d.split(" "),f=g[0],E=g.slice(1).join(" ").trim();switch(f){case"@keyframes":case"@-webkit-keyframes":let R=new Ql(h,o,this);if(R[Fr]=f==="@-webkit-keyframes"?"-webkit-":"",R[rt]=E,R[Co]=e,y){if(y.type===ut.mediaRule||y.type===ut.containerRule||y.type===ut.supportsRule)y.cssRules.push(R)}else n.push(R);y=R;break;case"@media":let H=E.split(","),yt=new jl(h,o,this);for(let Ct of H)yt.media.appendMedium(Ct.trim());if(yt[Co]=e,y){if(y.type===ut.mediaRule||y.type===ut.containerRule||y.type===ut.supportsRule)y.cssRules.push(yt)}else n.push(yt);y=yt;break;case"@container":case"@-webkit-container":let bt=new Yl(h,o,this);if(bt[Fr]=f==="@-webkit-container"?"-webkit-":"",bt[bo]=E,bt[Co]=e,y){if(y.type===ut.mediaRule||y.type===ut.containerRule||y.type===ut.supportsRule)y.cssRules.push(bt)}else n.push(bt);y=bt;break;case"@supports":case"@-webkit-supports":let Rt=new Xl(h,o,this);if(Rt[Fr]=f==="@-webkit-supports"?"-webkit-":"",Rt[bo]=E,Rt[Co]=e,y){if(y.type===ut.mediaRule||y.type===ut.containerRule||y.type===ut.supportsRule)y.cssRules.push(Rt)}else n.push(Rt);y=Rt;break;case"@font-face":let lt=new Kl(h,o,this);if(lt[Sr]=E,lt[Co]=e,y){if(y.type===ut.mediaRule||y.type===ut.containerRule||y.type===ut.supportsRule)y.cssRules.push(lt)}else n.push(lt);y=lt;break;case"@scope":case"@-webkit-scope":let ct=new zs(h,o,this);if(ct[Fr]=f==="@-webkit-scope"?"-webkit-":"",ct[Co]=e,E){let Ct=E.split(/\s+to\s+/);if(Ct[0]&&Ct[0][0]==="("&&Ct[0][Ct[0].length-1]===")")ct[O]=Ct[0].slice(1,-1);if(Ct[1]&&Ct[1][0]==="("&&Ct[1][Ct[1].length-1]===")")ct[Y]=Ct[1].slice(1,-1)}if(y){if(y.type===ut.mediaRule||y.type===ut.containerRule||y.type===ut.supportsRule)y.cssRules.push(ct)}else n.push(ct);y=ct;break;default:let ee=new Zs(h,o,this);ee[Co]=e,y=ee;break}}else if(y&&y.type===ut.keyframesRule){let g=new Js(h,o,this),f=d.trim();if(f==="from")f="0%";else if(f==="to")f="100%";g[as]=f,g[Co]=e,g[Qs]=y,y.cssRules.push(g),y=g}else if(y&&(y.type===ut.mediaRule||y.type===ut.containerRule||y.type===ut.supportsRule)){if(this.validateSelectorText(d)){let g=new Zs(h,o,this);g[Ol]=d,g[Co]=e,g[Qs]=y,y.cssRules.push(g),y=g}}else if(this.validateSelectorText(d)){let g=new Zs(h,o,this);if(g[Ol]=d,g[Co]=e,g[Qs]=y,!y)n.push(g);y=g}if(y)a.push(y)}else{if(y){let d=s.substring(u,c.index).trim().replace(/([^;])$/,"$1;");switch(y.type){case ut.fontFaceRule:case ut.keyframeRule:case ut.styleRule:y[Sr]=d;break}}a.pop(),y=a[a.length-1]||null}u=c.index+1}return n}validateSelectorText(t){let e=this.#t[m];return new ys({window:e,scope:e.document,ignoreErrors:!0}).getSelectorGroups(t).length>0}}class Ju{cssRules=[];media;title;alternate;disabled;#t=null;constructor(t){this.media=t&&t.media?t.media:"",this.title=t&&t.title?t.title:"",this.alternate=t&&t.alternate?t.alternate:!1,this.disabled=t&&t.disabled?t.disabled:!1}insertRule(t,e){if(arguments.length===0)throw new this[m].TypeError("Failed to execute 'insertRule' on 'CSSStyleSheet': 1 argument required, but only 0 present.");let s=new zu(this).parseFromString(t);if(s.length===0||s.length>1)throw new this[m].DOMException(`Failed to execute 'insertRule' on 'CSSStyleSheet': Failed to parse the rule '${t}'.`,w.syntaxError);if(e!==void 0){if(e>this.cssRules.length)throw new this[m].DOMException(`Failed to execute 'insertRule' on 'CSSStyleSheet': The index provided (${e}) is larger than the maximum index (${this.cssRules.length-1}).`,w.indexSizeError);return this.cssRules.splice(e,0,s[0]),e}let n=this.cssRules.length;return this.cssRules.push(s[0]),n}deleteRule(t){if(arguments.length===0)throw new this[m].TypeError("Failed to execute 'deleteRule' on 'CSSStyleSheet': 1 argument required, but only 0 present.");this.cssRules.splice(t,1)}async replace(t){if(arguments.length===0)throw new this[m].TypeError("Failed to execute 'replace' on 'CSSStyleSheet': 1 argument required, but only 0 present.");this.replaceSync(t)}replaceSync(t){if(arguments.length===0)throw new this[m].TypeError("Failed to execute 'replaceSync' on 'CSSStyleSheet': 1 argument required, but only 0 present.");if(this.#t!==t)this.#t=t,this.cssRules=new zu(this).parseFromString(t)}}class cl extends vt{[p]=new Map;get onloadstart(){return this[p].get("onloadstart")??null}set onloadstart(t){this[p].set("onloadstart",t)}get onprogress(){return this[p].get("onprogress")??null}set onprogress(t){this[p].set("onprogress",t)}get onabort(){return this[p].get("onabort")??null}set onabort(t){this[p].set("onabort",t)}get onerror(){return this[p].get("onerror")??null}set onerror(t){this[p].set("onerror",t)}get onload(){return this[p].get("onload")??null}set onload(t){this[p].set("onload",t)}get ontimeout(){return this[p].get("ontimeout")??null}set ontimeout(t){this[p].set("ontimeout",t)}get onloadend(){return this[p].get("onloadend")??null}set onloadend(t){this[p].set("onloadend",t)}}class Mc extends cl{}class Zu{signal=new this[m].AbortSignal;abort(t){this.signal[ui](t)}}class th extends vt{[Se]=!1;[To]=void 0;onabort=null;constructor(){super();if(!this[m])throw TypeError("Failed to construct 'AbortSignal': Illegal constructor")}get[Symbol.toStringTag](){return"AbortSignal"}get aborted(){return this[Se]}set aborted(t){}get reason(){return this[To]}set reason(t){}[ui](t){if(this.aborted)return;this[To]=t!==void 0?t:new this[m].DOMException("signal is aborted without reason",w.abortError),this[Se]=!0,this.dispatchEvent(new C("abort"))}throwIfAborted(){if(this.aborted)throw this.reason}static abort(t){let e=new this;return e[To]=t!==void 0?t:new this[m].DOMException("signal is aborted without reason",w.abortError),e[Se]=!0,e}static timeout(t){let e=this[m],o=new this;return e.setTimeout(()=>{o[ui](new e.DOMException("signal timed out",w.timeoutError))},t),o}static any(t){for(let n of t)if(n[Se])return this.abort(n[To]);let e=new this,o=new Map,s=()=>{for(let n of t)n.removeEventListener("abort",o.get(n))};for(let n of t){let l=()=>{s(),e[ui](n[To])};o.set(n,l),n.addEventListener("abort",l)}return e}}class eh extends vt{state;onchange=null;constructor(t="granted"){super();this.state=t}}var pg;(function(t){t[t.unsent=0]="unsent",t[t.opened=1]="opened",t[t.headersReceived=2]="headersReceived",t[t.loading=3]="loading",t[t.done=4]="done"})(pg||(pg={}));var ke=pg;var ug;(function(t){t.arraybuffer="arraybuffer",t.blob="blob",t.document="document",t.json="json",t.text="text"})(ug||(ug={}));var ws=ug;class rh{static parse(t){if(!t.data)return"";switch(t.responseType){case ws.arraybuffer:let e=new ArrayBuffer(t.data.length),o=new Uint8Array(e);return o.set(t.data),o;case ws.blob:try{return new t.window.Blob([new Uint8Array(t.data)],{type:t.contentType||""})}catch(l){}return null;case ws.document:let n=new t.window.DOMParser;try{return n.parseFromString(t.data.toString(),"application/xml")}catch(l){}return null;case ws.json:try{return JSON.parse(t.data.toString())}catch(l){}return null;case ws.text:case"":default:return t.data.toString()}}}class Ic extends cl{static UNSENT=ke.unsent;static OPENED=ke.opened;static HEADERS_RECEIVED=ke.headersReceived;static LOADING=ke.loading;static DONE=ke.done;upload=new this[m].XMLHttpRequestUpload;withCredentials=!1;#t=!0;#e=null;#r=!1;#o=null;#i=null;#s="";#l=null;#m=Buffer.from([]);#a=ke.unsent;#y=null;constructor(){super();if(!this[m])throw TypeError(`Failed to construct '${this.constructor.name}': '${this.constructor.name}' was constructed outside a Window context.`)}get status(){return this.#i?.status||0}get statusText(){return this.#i?.statusText||""}get response(){if(!this.#i)return"";return this.#l}get responseText(){if(this.responseType!==ws.text&&this.responseType!=="")throw new this[m].DOMException(`Failed to read the 'responseText' property from 'XMLHttpRequest': The value is only accessible if the object's 'responseType' is '' or 'text' (was '${this.responseType}').`,w.invalidStateError);if(this.#l!==null)return this.#l;if(this.readyState===ke.headersReceived||this.readyState===ke.loading)return this.#m.toString()??"";return""}get responseXML(){if(this.responseType!==ws.document&&this.responseType!=="")throw new this[m].DOMException(`Failed to read the 'responseXML' property from 'XMLHttpRequest': The value is only accessible if the object's 'responseType' is '' or 'document' (was '${this.responseType}').`,w.invalidStateError);return this.responseType===""?null:this.#l}get responseURL(){return this.#i?.url||""}get readyState(){return this.#a}set responseType(t){if(this.readyState!==ke.opened&&this.readyState!==ke.unsent)throw new this[m].DOMException("Failed to set the 'responseType' property on 'XMLHttpRequest': The object's state must be OPENED or UNSENT.",w.invalidStateError);if(!this.#t)throw new this[m].DOMException("Failed to set the 'responseType' property on 'XMLHttpRequest': The response type cannot be changed for synchronous requests made from a document.",w.invalidStateError);this.#s=t}get responseType(){return this.#s}open(t,e,o=!0,s,n){let l=this[m];if(!o&&!!this.responseType&&this.responseType!==ws.text)throw new l.DOMException("Failed to execute 'open' on 'XMLHttpRequest': Synchronous requests from a document must not set a response type.",w.invalidAccessError);let a=new this[m].Headers;if(s){let y=Buffer.from(`${s}:${n||""}`);a.set("Authorization","Basic "+y.toString("base64"))}this.#t=o,this.#r=!1,this.#i=null,this.#l=null,this.#m=Buffer.from([]),this.#e=new l.AbortController,this.#o=new l.Request(e,{method:t,headers:a,signal:this.#e.signal,credentials:this.withCredentials?"include":"same-origin"}),this.#a=ke.opened}setRequestHeader(t,e){if(this.readyState!==ke.opened)throw new this[m].DOMException("Failed to execute 'setRequestHeader' on 'XMLHttpRequest': The object's state must be OPENED.",w.invalidStateError);if(cs.isHeaderForbidden(t))return!1;return this.#o.headers.set(t,e),!0}getResponseHeader(t){return this.#i?.headers.get(t)??null}getAllResponseHeaders(){if(!this.#i)return"";let t=[];for(let[e,o]of this.#i?.headers){let s=e.toLowerCase();if(s!=="set-cookie"&&s!=="set-cookie2")t.push(`${e}: ${o}`)}return t.join(`\r
188
+ `)}send(t){let e=this[m];if(this.readyState!=ke.opened)throw new this[m].DOMException("Failed to execute 'send' on 'XMLHttpRequest': Connection must be opened before send() is called.",w.invalidStateError);if(typeof t==="object"&&t!==null&&t[D]===T.documentNode)t=new e.XMLSerializer().serializeToString(t);if(this.#t)this.#p(t).catch((o)=>{throw o});else this.#u(t)}abort(){if(this.#r)return;this.#r=!0,this.#e.abort()}overrideMimeType(t){if(this.readyState===ke.loading||this.readyState===ke.done)throw new this[m].DOMException("Failed to execute 'overrideMimeType' on 'XMLHttpRequest': MIME type cannot be overridden when the request state is LOADING or DONE.",w.invalidStateError);this.#y=t}async#p(t){let e=this[m],o=new it(e).getBrowserFrame();if(!o)return;let s=o[Pt],n=s.startTask(()=>this.abort());if(this.#a=ke.loading,this.#n(new C("readystatechange")),this.#n(new C("loadstart")),t)this.#o=new e.Request(this.#o.url,{method:this.#o.method,headers:this.#o.headers,signal:this.#e.signal,credentials:this.#o.credentials,body:t});this.#e.signal.addEventListener("abort",()=>{this.#r=!0,this.#a=ke.unsent,this.#n(new C("abort")),this.#n(new C("loadend")),this.#n(new C("readystatechange")),s.endTask(n)});let l=(d)=>{if(d instanceof re&&d.name===w.abortError){if(this.#r)return;this.#a=ke.unsent,this.#n(new C("abort"))}else this.#a=ke.done,this.#n(new rn("error",{error:d,message:d.message}));this.#n(new C("loadend")),this.#n(new C("readystatechange")),s.endTask(n)},a=new Dr({browserFrame:o,window:e,url:this.#o.url,init:this.#o});try{this.#i=await a.send()}catch(d){l(d);return}this.#a=ke.headersReceived,this.#n(new C("readystatechange"));let y=this.#i.headers.get("Content-Length"),u=y!==null&&!isNaN(Number(y))?Number(y):null,c=0;if(this.#i.body){let d;try{for await(let g of this.#i.body){let f=typeof g==="string"?Buffer.from(g):g;this.#m=Buffer.concat([this.#m,f]),c+=g.length;try{this.#n(new ko("progress",{lengthComputable:u!==null,loaded:c,total:u!==null?u:0}))}catch(E){throw d=E,E}}}catch(g){if(g===d)throw g;l(g);return}}this.#l=rh.parse({window:e,responseType:this.#s,data:this.#m,contentType:this.#y||this.#i.headers.get("Content-Type")||this.#o.headers.get("Content-Type")}),this.#a=ke.done,this.#m=Buffer.from([]),s.endTask(n),this.#n(new C("readystatechange")),this.#n(new C("load")),this.#n(new C("loadend"))}#u(t){let e=this[m],o=new it(e).getBrowserFrame();if(!o)return;if(t)this.#o=new e.Request(this.#o.url,{method:this.#o.method,headers:this.#o.headers,signal:this.#e.signal,credentials:this.#o.credentials,body:t});this.#a=ke.loading;let s=new mn({browserFrame:o,window:e,url:this.#o.url,init:this.#o});try{this.#i=s.send()}catch(n){this.#a=ke.done,this.#n(new rn("error",{error:n,message:n.message})),this.#n(new C("loadend")),this.#n(new C("readystatechange"));return}this.#a=ke.headersReceived,this.#l=rh.parse({window:e,responseType:this.#s,data:this.#i.body,contentType:this.#y||this.#i.headers.get("Content-Type")||this.#o.headers.get("Content-Type")}),this.#a=ke.done,this.#n(new C("readystatechange")),this.#n(new C("load")),this.#n(new C("loadend"))}#n(t){let e=new it(this[m]).getBrowserFrame();if(!e?.page?.context?.browser?.settings?.errorCapture)return;let o=e.page.context.browser.settings,s=o.errorCapture;o.errorCapture=me.tryAndCatch,this.dispatchEvent(t),o.errorCapture=s}}var NA=/<([^\s/!>?]+)|<\/([^\s/!>?]+)\s*>|(<!--)|(-->)|(<!)|(<\?)|(\/>)|(>)/gm,LA=/\s*([a-zA-Z0-9-_:]+)\s*=\s*"([^"]*)("{0,1})|\s*([a-zA-Z0-9-_:]+)\s*=\s*'([^']*)('{0,1})/gm,SS=/^\s*([a-zA-Z0-9-_:]+)$/,kA=/version="[^"]+"/,MA=/"([^"]+)"/gm,oh=/\s+/,IA=/\n/g,_t;(function(t){t.any="any",t.startTag="startTag",t.comment="comment",t.documentType="documentType",t.processingInstruction="processingInstruction",t.error="error"})(_t||(_t={}));var RA=Object.values(Ut);class ih{window;rootNode=null;nodeStack=[];tagNameStack=[];defaultNamespaceStack=null;namespacePrefixStack=null;startTagIndex=0;markupRegExp=null;lastIndex=0;errorIndex=0;nextElement=null;nextTagName=null;currentNode=null;readState=_t.any;errorMessage=null;constructor(t){this.window=t}parse(t){this.rootNode=new this.window.XMLDocument,this.nodeStack=[this.rootNode],this.tagNameStack=[null],this.currentNode=this.rootNode,this.readState=_t.any,this.defaultNamespaceStack=[null],this.namespacePrefixStack=[null],this.startTagIndex=0,this.errorIndex=0,this.errorMessage=null,this.markupRegExp=new RegExp(NA,"gm"),this.lastIndex=0;let e;this.rootNode[Lr]=this.window,t=String(t);while(e=this.markupRegExp.exec(t)){switch(this.readState){case _t.any:if(e.index!==this.lastIndex&&(e[1]||e[2]||e[3]||e[4]||e[5]!==void 0||e[6]))this.parsePlainText(t.substring(this.lastIndex,e.index));if(e[1])this.parseStartTag(e[1]);else if(e[2]){if(!this.parseEndTag(e[2]))this.errorMessage=`Opening and ending tag mismatch: ${this.tagNameStack[this.tagNameStack.length-1]} line ${t.substring(0,this.startTagIndex).split(`
189
189
  `).length} and ${e[2]}
190
- `,this.errorIndex=this.markupRegExp.lastIndex,this.readState=Yt.error,this.removeOverflowingTextNodes()}else if(e[3])this.startTagIndex=this.markupRegExp.lastIndex,this.readState=Yt.comment;else if(e[5]!==void 0)this.startTagIndex=this.markupRegExp.lastIndex,this.readState=Yt.documentType;else if(e[6])this.startTagIndex=this.markupRegExp.lastIndex,this.readState=Yt.processingInstruction;else this.parsePlainText(t.substring(this.lastIndex,this.markupRegExp.lastIndex));break;case Yt.startTag:if(e[7]||e[8]){let o=t.substring(this.startTagIndex,e[2]?this.markupRegExp.lastIndex-1:e.index),s=!!e[7];this.parseEndOfStartTag(o,s)}else this.errorMessage=e[2]&&this.lastIndex!==this.startTagIndex?`Unescaped '&lt;' not allowed in attributes values
190
+ `,this.errorIndex=this.markupRegExp.lastIndex,this.readState=_t.error,this.removeOverflowingTextNodes()}else if(e[3])this.startTagIndex=this.markupRegExp.lastIndex,this.readState=_t.comment;else if(e[5]!==void 0)this.startTagIndex=this.markupRegExp.lastIndex,this.readState=_t.documentType;else if(e[6])this.startTagIndex=this.markupRegExp.lastIndex,this.readState=_t.processingInstruction;else this.parsePlainText(t.substring(this.lastIndex,this.markupRegExp.lastIndex));break;case _t.startTag:if(e[7]||e[8]){let o=t.substring(this.startTagIndex,e[2]?this.markupRegExp.lastIndex-1:e.index),s=!!e[7];this.parseEndOfStartTag(o,s)}else this.errorMessage=e[2]&&this.lastIndex!==this.startTagIndex?`Unescaped '&lt;' not allowed in attributes values
191
191
  `:`error parsing attribute name
192
- `,this.errorIndex=e.index,this.readState=Yt.error,this.removeOverflowingTextNodes();break;case Yt.comment:if(e[4])this.parseComment(t.substring(this.startTagIndex,e.index));break;case Yt.documentType:if(e[7]||e[8])this.parseDocumentType(t.substring(this.startTagIndex,e.index));break;case Yt.processingInstruction:if(e[7]||e[8])this.parseProcessingInstruction(t.substring(this.startTagIndex,e.index));break;case Yt.error:return this.parseError(t.slice(0,this.errorIndex),this.errorMessage),this.rootNode}this.lastIndex=this.markupRegExp.lastIndex}if(this.readState===Yt.error)return this.parseError(t.slice(0,this.errorIndex),this.errorMessage),this.rootNode;if(this.readState===Yt.comment)return this.parseError(t,`Comment not terminated
193
- `),this.removeOverflowingTextNodes(),this.rootNode;if(this.rootNode[bt].length===0)return this.parseError("","Start tag expected, '&lt;' not found"),this.rootNode;if(this.lastIndex!==t.length&&this.currentNode)this.parsePlainText(t.substring(this.lastIndex));if(this.nodeStack.length!==1)return this.parseError(t,this.nextElement?`attributes construct error
192
+ `,this.errorIndex=e.index,this.readState=_t.error,this.removeOverflowingTextNodes();break;case _t.comment:if(e[4])this.parseComment(t.substring(this.startTagIndex,e.index));break;case _t.documentType:if(e[7]||e[8])this.parseDocumentType(t.substring(this.startTagIndex,e.index));break;case _t.processingInstruction:if(e[7]||e[8])this.parseProcessingInstruction(t.substring(this.startTagIndex,e.index));break;case _t.error:return this.parseError(t.slice(0,this.errorIndex),this.errorMessage),this.rootNode}this.lastIndex=this.markupRegExp.lastIndex}if(this.readState===_t.error)return this.parseError(t.slice(0,this.errorIndex),this.errorMessage),this.rootNode;if(this.readState===_t.comment)return this.parseError(t,`Comment not terminated
193
+ `),this.removeOverflowingTextNodes(),this.rootNode;if(this.rootNode[dt].length===0)return this.parseError("","Start tag expected, '&lt;' not found"),this.rootNode;if(this.lastIndex!==t.length&&this.currentNode)this.parsePlainText(t.substring(this.lastIndex));if(this.nodeStack.length!==1)return this.parseError(t,this.nextElement?`attributes construct error
194
194
  `:`Premature end of data in tag article line 1
195
195
  `),this.rootNode;return this.rootNode}parsePlainText(t){if(this.currentNode===this.rootNode){if(t.replace(oh,""))this.errorMessage=`Extra content at the end of the document
196
- `,this.errorIndex=this.lastIndex,this.readState=Yt.error}else if(t.includes("&nbsp;"))this.errorMessage=`Entity 'nbsp' not defined
197
- `,this.errorIndex=this.lastIndex+t.indexOf("&nbsp;")+6,this.readState=Yt.error;else this.currentNode[Et](this.rootNode.createTextNode(De.decodeXMLEntities(t)),!0)}parseProcessingInstruction(t){let e=this.markupRegExp,o=t.split(oh),s=t[t.length-1]==="?";if(o[0]==="xml")if(this.currentNode!==this.rootNode||this.rootNode[_].length!==0||o.length===1)this.errorMessage=`XML declaration allowed only at the start of the document
198
- `,this.errorIndex=e.lastIndex-t.length+2,this.readState=Yt.error,this.removeOverflowingTextNodes();else if(!kA.test(o[1]))this.errorMessage=`Malformed declaration expecting version
199
- `,this.errorIndex=e.lastIndex-t.length+3,this.readState=Yt.error;else if(!s)this.errorMessage=`Blank needed here
200
- `,this.errorIndex=e.lastIndex-1,this.readState=Yt.error;else{let n=o[0],l=o.slice(1).join(" ").slice(0,-1);this.rootNode[Yn]=this.rootNode.createProcessingInstruction(n,l),this.readState=Yt.any}else if(o.length===1&&!s)this.errorMessage=`ParsePI: PI processing-instruction space expected
201
- `,this.errorIndex=e.lastIndex-1,this.readState=Yt.error;else if(o.length>1&&!s)this.errorMessage=`ParsePI: PI processing-instruction never end ...
202
- `,this.errorIndex=e.lastIndex-1,this.readState=Yt.error;else{let n=o[0],l=o.slice(1).join(" ").slice(0,-1);this.currentNode[Et](this.rootNode.createProcessingInstruction(n,l),!0),this.readState=Yt.any}}parseComment(t){if(this.currentNode!==this.rootNode)this.currentNode[Et](this.rootNode.createComment(De.decodeXMLEntities(t)),!0);this.readState=Yt.any}parseDocumentType(t){let e=this.markupRegExp;if(this.currentNode===this.rootNode&&this.rootNode[_].length===0){let o=this.getDocumentType(De.decodeXMLEntities(t));if(o?.name)this.rootNode[Et](this.window.document.implementation.createDocumentType(o.name,o.publicId,o.systemId),!0),this.readState=Yt.any;else if(o)this.errorMessage=`xmlParseDocTypeDecl : no DOCTYPE name
203
- `,this.errorIndex=e.lastIndex-t.length-2,this.readState=Yt.error;else this.errorMessage=`StartTag: invalid element name
204
- `,this.errorIndex=e.lastIndex-t.length-2,this.readState=Yt.error}else if(this.currentNode===this.rootNode&&this.rootNode[bt].length===1)this.errorMessage=`Extra content at the end of the document
205
- `,this.errorIndex=e.lastIndex-t.length-2,this.readState=Yt.error;else this.errorMessage=`StartTag: invalid element name
206
- `,this.errorIndex=e.lastIndex-t.length-2,this.readState=Yt.error}parseStartTag(t){let e=t.split(":"),o=this.namespacePrefixStack,s=this.defaultNamespaceStack;if(e.length>1)this.nextElement=this.rootNode.createElementNS(o[o.length-1]?.get(e[0])||null,t);else this.nextElement=this.rootNode.createElementNS(s[s.length-1]||null,t);o.push(new Map(o[o.length-1])),this.nextTagName=t,this.startTagIndex=this.markupRegExp.lastIndex,this.readState=Yt.startTag}parseEndOfStartTag(t,e){let o=this.namespacePrefixStack[this.namespacePrefixStack.length-1];if(t){let s=new RegExp(LA,"gm"),n,l=0;while(n=s.exec(t)){let y=t.substring(l,n.index).replace(oh,"");if(y.length){let u=y.match(SS);this.errorMessage=u?`Specification mandates value for attribute ${u[1]}
196
+ `,this.errorIndex=this.lastIndex,this.readState=_t.error}else if(t.includes("&nbsp;"))this.errorMessage=`Entity 'nbsp' not defined
197
+ `,this.errorIndex=this.lastIndex+t.indexOf("&nbsp;")+6,this.readState=_t.error;else this.currentNode[Et](this.rootNode.createTextNode(De.decodeXMLEntities(t)),!0)}parseProcessingInstruction(t){let e=this.markupRegExp,o=t.split(oh),s=t[t.length-1]==="?";if(o[0]==="xml")if(this.currentNode!==this.rootNode||this.rootNode[_].length!==0||o.length===1)this.errorMessage=`XML declaration allowed only at the start of the document
198
+ `,this.errorIndex=e.lastIndex-t.length+2,this.readState=_t.error,this.removeOverflowingTextNodes();else if(!kA.test(o[1]))this.errorMessage=`Malformed declaration expecting version
199
+ `,this.errorIndex=e.lastIndex-t.length+3,this.readState=_t.error;else if(!s)this.errorMessage=`Blank needed here
200
+ `,this.errorIndex=e.lastIndex-1,this.readState=_t.error;else{let n=o[0],l=o.slice(1).join(" ").slice(0,-1);this.rootNode[Un]=this.rootNode.createProcessingInstruction(n,l),this.readState=_t.any}else if(o.length===1&&!s)this.errorMessage=`ParsePI: PI processing-instruction space expected
201
+ `,this.errorIndex=e.lastIndex-1,this.readState=_t.error;else if(o.length>1&&!s)this.errorMessage=`ParsePI: PI processing-instruction never end ...
202
+ `,this.errorIndex=e.lastIndex-1,this.readState=_t.error;else{let n=o[0],l=o.slice(1).join(" ").slice(0,-1);this.currentNode[Et](this.rootNode.createProcessingInstruction(n,l),!0),this.readState=_t.any}}parseComment(t){if(this.currentNode!==this.rootNode)this.currentNode[Et](this.rootNode.createComment(De.decodeXMLEntities(t)),!0);this.readState=_t.any}parseDocumentType(t){let e=this.markupRegExp;if(this.currentNode===this.rootNode&&this.rootNode[_].length===0){let o=this.getDocumentType(De.decodeXMLEntities(t));if(o?.name)this.rootNode[Et](this.window.document.implementation.createDocumentType(o.name,o.publicId,o.systemId),!0),this.readState=_t.any;else if(o)this.errorMessage=`xmlParseDocTypeDecl : no DOCTYPE name
203
+ `,this.errorIndex=e.lastIndex-t.length-2,this.readState=_t.error;else this.errorMessage=`StartTag: invalid element name
204
+ `,this.errorIndex=e.lastIndex-t.length-2,this.readState=_t.error}else if(this.currentNode===this.rootNode&&this.rootNode[dt].length===1)this.errorMessage=`Extra content at the end of the document
205
+ `,this.errorIndex=e.lastIndex-t.length-2,this.readState=_t.error;else this.errorMessage=`StartTag: invalid element name
206
+ `,this.errorIndex=e.lastIndex-t.length-2,this.readState=_t.error}parseStartTag(t){let e=t.split(":"),o=this.namespacePrefixStack,s=this.defaultNamespaceStack;if(e.length>1)this.nextElement=this.rootNode.createElementNS(o[o.length-1]?.get(e[0])||null,t);else this.nextElement=this.rootNode.createElementNS(s[s.length-1]||null,t);o.push(new Map(o[o.length-1])),this.nextTagName=t,this.startTagIndex=this.markupRegExp.lastIndex,this.readState=_t.startTag}parseEndOfStartTag(t,e){let o=this.namespacePrefixStack[this.namespacePrefixStack.length-1];if(t){let s=new RegExp(LA,"gm"),n,l=0;while(n=s.exec(t)){let y=t.substring(l,n.index).replace(oh,"");if(y.length){let u=y.match(SS);this.errorMessage=u?`Specification mandates value for attribute ${u[1]}
207
207
  `:`attributes construct error
208
- `,this.errorIndex=this.startTagIndex,this.readState=Yt.error,this.removeOverflowingTextNodes();return}if(n[1]&&n[3]==='"'||n[4]&&n[6]==="'"){let u=n[1]??n[4],c=n[2]??n[5],d=c?De.decodeXMLAttributeValue(c.replace(IA," ")):"",g=this.nextElement[St],f=u.split(":");if(f.length>2||f.length===2&&(!f[0]||!f[1])){this.errorMessage=`Failed to parse QName '${u}'
209
- `,this.errorIndex=this.startTagIndex+n.index+n[0].split("=")[0].length,this.readState=Yt.error;return}let E=null;switch(f[0]){case"xmlns":E=Ht.xmlns;break;case"xlink":E=Ht.xlink;break}if(!g.getNamedItemNS(E,f[1]??u)){let R=Ve.createNode(this.rootNode,this.window.Attr);if(R[J]=E,R[rt]=u,R[ot]=E&&f[1]?f[1]:u,R[Ft]=E&&f[1]?f[0]:null,R[q]=d,g[zo](R),R[Ft]==="xmlns"){if(o.set(R[ot],d),this.nextElement[Ft]===R[ot])this.nextElement[J]=d}else if(u==="xmlns"&&!this.nextElement[Ft])if(RA.includes(d)){this.nextElement=this.rootNode.createElementNS(d,this.nextElement[z]),this.nextElement[St]=g,g[xt]=this.nextElement;for(let H of g[Q].values())H[xt]=this.nextElement}else this.nextElement[J]=d}else this.errorMessage=`Attribute ${u} redefined
210
- `,this.errorIndex=this.startTagIndex,this.readState=Yt.error;this.startTagIndex+=n[0].length}else if(n[1]&&n[3]!=='"'||n[4]&&n[6]!=="'")return;l=s.lastIndex}let a=t.substring(l).replace(oh,"");if(a.length){let y=a.match(SS);if(y)this.errorMessage=`Specification mandates value for attribute ${y[1]}
208
+ `,this.errorIndex=this.startTagIndex,this.readState=_t.error,this.removeOverflowingTextNodes();return}if(n[1]&&n[3]==='"'||n[4]&&n[6]==="'"){let u=n[1]??n[4],c=n[2]??n[5],d=c?De.decodeXMLAttributeValue(c.replace(IA," ")):"",g=this.nextElement[St],f=u.split(":");if(f.length>2||f.length===2&&(!f[0]||!f[1])){this.errorMessage=`Failed to parse QName '${u}'
209
+ `,this.errorIndex=this.startTagIndex+n.index+n[0].split("=")[0].length,this.readState=_t.error;return}let E=null;switch(f[0]){case"xmlns":E=Ut.xmlns;break;case"xlink":E=Ut.xlink;break}if(!g.getNamedItemNS(E,f[1]??u)){let R=Ve.createNode(this.rootNode,this.window.Attr);if(R[J]=E,R[rt]=u,R[ot]=E&&f[1]?f[1]:u,R[Ft]=E&&f[1]?f[0]:null,R[q]=d,g[$o](R),R[Ft]==="xmlns"){if(o.set(R[ot],d),this.nextElement[Ft]===R[ot])this.nextElement[J]=d}else if(u==="xmlns"&&!this.nextElement[Ft])if(RA.includes(d)){this.nextElement=this.rootNode.createElementNS(d,this.nextElement[z]),this.nextElement[St]=g,g[xt]=this.nextElement;for(let H of g[Q].values())H[xt]=this.nextElement}else this.nextElement[J]=d}else this.errorMessage=`Attribute ${u} redefined
210
+ `,this.errorIndex=this.startTagIndex,this.readState=_t.error;this.startTagIndex+=n[0].length}else if(n[1]&&n[3]!=='"'||n[4]&&n[6]!=="'")return;l=s.lastIndex}let a=t.substring(l).replace(oh,"");if(a.length){let y=a.match(SS);if(y)this.errorMessage=`Specification mandates value for attribute ${y[1]}
211
211
  `,this.errorIndex=this.markupRegExp.lastIndex-2;else this.errorMessage=`attributes construct error
212
- `,this.errorIndex=this.startTagIndex;this.readState=Yt.error,this.removeOverflowingTextNodes();return}}if(this.nextElement[Ft]&&!this.nextElement[J]){this.errorMessage=`Namespace prefix ${this.nextElement[Ft]} on name is not defined
213
- `,this.errorIndex=this.lastIndex,this.readState=Yt.error;return}if(this.currentNode===this.rootNode&&this.rootNode[bt].length!==0){this.errorMessage=`Extra content at the end of the document
214
- `,this.errorIndex=this.lastIndex-this.nextElement[z].length-1,this.readState=Yt.error;return}if(this.currentNode[Et](this.nextElement,!0),!e)if(this.currentNode=this.nextElement,this.nodeStack.push(this.currentNode),this.tagNameStack.push(this.nextTagName),this.currentNode[J]&&!this.currentNode[Ft])this.defaultNamespaceStack.push(this.currentNode[J]);else this.defaultNamespaceStack.push(this.defaultNamespaceStack[this.defaultNamespaceStack.length-1]);this.nextElement=null,this.nextTagName=null,this.readState=Yt.any,this.startTagIndex=this.markupRegExp.lastIndex}parseEndTag(t){if(this.tagNameStack[this.tagNameStack.length-1]===t)return this.nodeStack.pop(),this.tagNameStack.pop(),this.namespacePrefixStack.pop(),this.defaultNamespaceStack.pop(),this.currentNode=this.nodeStack[this.nodeStack.length-1]||this.rootNode,!0;return!1}parseError(t,e){let o=this.rootNode.documentElement;if(!o){let y=this.rootNode.createElementNS(Ht.html,"html"),u=this.rootNode.createElementNS(Ht.html,"body");y.appendChild(u),o=u,this.rootNode[Et](y,!0)}let s=t.split(`
215
- `),n=s[s.length-1].length+1,l=`error on line ${s.length} at column ${n}: ${e||"Unknown error"}`,a=this.rootNode.createElementNS(Ht.html,"parsererror");a.setAttribute("style","display: block; white-space: pre; border: 2px solid #c77; padding: 0 1em 0 1em; margin: 1em; background-color: #fdd; color: black"),a.innerHTML=`<h3>This page contains the following errors:</h3><div style="font-family:monospace;font-size:12px">${l}</div><h3>Below is a rendering of the page up to the first error.</h3>`,o.insertBefore(a,o.firstChild)}removeOverflowingTextNodes(){if(this.currentNode&&this.currentNode!==this.rootNode)while(this.currentNode.lastChild?.[D]===st.TEXT_NODE)this.currentNode.removeChild(this.currentNode.lastChild)}getDocumentType(t){if(!t.toUpperCase().startsWith("DOCTYPE"))return null;let e=t.split(oh);if(e.length<=1)return null;let o=e.slice(1).join(" "),s=[],n=new RegExp(MA,"gm"),l=o.toUpperCase().includes("PUBLIC"),a;while(a=n.exec(o))s.push(a[1]);let y=l?s[0]||"":"",u=l?s[1]||"":s[0]||"";return{name:e[1].toLowerCase(),publicId:y,systemId:u}}}class sh{parseFromString(t,e){if(!e)throw new this[m].DOMException('Second parameter "mimeType" is mandatory.');let o=this[m];switch(e){case"text/html":let s=new o.HTMLDocument;return s[Lr]=o,new Cr(this[m]).parse(t,s);case"image/svg+xml":case"text/xml":case"application/xml":case"application/xhtml+xml":return new ih(this[m]).parse(t);default:throw new o.DOMException(`Unknown mime type "${e}".`)}}}var hg;(function(t){t[t.endToEnd=2]="endToEnd",t[t.endToStart=3]="endToStart",t[t.startToEnd=1]="startToEnd",t[t.startToStart=0]="startToStart"})(hg||(hg={}));var er=hg;class nh{static END_TO_END=er.endToEnd;static END_TO_START=er.endToStart;static START_TO_END=er.startToEnd;static START_TO_START=er.startToStart;END_TO_END=er.endToEnd;END_TO_START=er.endToStart;START_TO_END=er.startToEnd;START_TO_START=er.startToStart;[O];[Y];[x];constructor(){let t=this[m];if(!t)throw TypeError(`Failed to construct '${this.constructor.name}': '${this.constructor.name}' was constructed outside a Window context.`);this[x]=t.document,this[O]={node:t.document,offset:0},this[Y]={node:t.document,offset:0}}get startContainer(){return this[O].node}get endContainer(){return this[Y].node}get startOffset(){if(this[O].offset>0){let t=ft.getNodeLength(this[O].node);if(this[O].offset>t)this[O].offset=t}return this[O].offset}get endOffset(){if(this[Y].offset>0){let t=ft.getNodeLength(this[Y].node);if(this[Y].offset>t)this[Y].offset=t}return this[Y].offset}get collapsed(){return this[O].node===this[Y].node&&this.startOffset===this.endOffset}get commonAncestorContainer(){let t=this[O].node;while(t){if(ft.isInclusiveAncestor(t,this[Y].node))return t;t=t[W]}return null}collapse(t=!1){if(t)this[Y]=Object.assign({},this[O]);else this[O]=Object.assign({},this[Y])}compareBoundaryPoints(t,e){if(t!==er.startToStart&&t!==er.startToEnd&&t!==er.endToEnd&&t!==er.endToStart)throw new this[m].DOMException(`The comparison method provided must be one of '${er.startToStart}', '${er.startToEnd}', '${er.endToEnd}' or '${er.endToStart}'.`,w.notSupportedError);if(this[x]!==e[x])throw new this[m].DOMException("The two Ranges are not in the same tree.",w.wrongDocumentError);let o={node:null,offset:0},s={node:null,offset:0};switch(t){case er.startToStart:o.node=this[O].node,o.offset=this.startOffset,s.node=e[O].node,s.offset=e.startOffset;break;case er.startToEnd:o.node=this[Y].node,o.offset=this.endOffset,s.node=e[O].node,s.offset=e.startOffset;break;case er.endToEnd:o.node=this[Y].node,o.offset=this.endOffset,s.node=e[Y].node,s.offset=e.endOffset;break;case er.endToStart:o.node=this[O].node,o.offset=this.startOffset,s.node=e[Y].node,s.offset=e.endOffset;break}return ue.compareBoundaryPointsPosition(o,s)}comparePoint(t,e){if(t[x]!==this[x])throw new this[m].DOMException("The two Ranges are not in the same tree.",w.wrongDocumentError);ue.validateBoundaryPoint({node:t,offset:e});let o={node:t,offset:e};if(ue.compareBoundaryPointsPosition(o,{node:this[O].node,offset:this.startOffset})===-1)return-1;else if(ue.compareBoundaryPointsPosition(o,{node:this[Y].node,offset:this.endOffset})===1)return 1;return 0}cloneContents(){let t=this[m],e=this[x].createDocumentFragment(),o=this.startOffset,s=this.endOffset;if(this.collapsed)return e;if(this[O].node===this[Y].node&&(this[O].node[D]===T.textNode||this[O].node[D]===T.processingInstructionNode||this[O].node[D]===T.commentNode)){let u=this[O].node.cloneNode(!1);return u[Kt]=u.substringData(o,s-o),e.appendChild(u),e}let n=this[O].node;while(!ft.isInclusiveAncestor(n,this[Y].node))n=n[W];let l=null;if(!ft.isInclusiveAncestor(this[O].node,this[Y].node)){let u=n.firstChild;while(!l){if(ue.isPartiallyContained(u,this))l=u;u=u.nextSibling}}let a=null;if(!ft.isInclusiveAncestor(this[Y].node,this[O].node)){let u=n.lastChild;while(!a){if(ue.isPartiallyContained(u,this))a=u;u=u.previousSibling}}let y=[];for(let u of n[_])if(ue.isContained(u,this)){if(u[D]===T.documentTypeNode)throw new t.DOMException("Invalid document type element.",w.hierarchyRequestError);y.push(u)}if(l!==null&&(l[D]===T.textNode||l[D]===T.processingInstructionNode||l[D]===T.commentNode)){let u=this[O].node.cloneNode(!1);u[Kt]=u.substringData(o,ft.getNodeLength(this[O].node)-o),e.appendChild(u)}else if(l!==null){let u=l.cloneNode();e.appendChild(u);let c=new t.Range;c[O].node=this[O].node,c[O].offset=o,c[Y].node=l,c[Y].offset=ft.getNodeLength(l);let d=c.cloneContents();u.appendChild(d)}for(let u of y){let c=u.cloneNode(!0);e.appendChild(c)}if(a!==null&&(a[D]===T.textNode||a[D]===T.processingInstructionNode||a[D]===T.commentNode)){let u=this[Y].node.cloneNode(!1);u[Kt]=u.substringData(0,s),e.appendChild(u)}else if(a!==null){let u=a.cloneNode(!1);e.appendChild(u);let c=new t.Range;c[O].node=a,c[O].offset=0,c[Y].node=this[Y].node,c[Y].offset=s;let d=c.cloneContents();u.appendChild(d)}return e}cloneRange(){let t=new this[m].Range;return t[O].node=this[O].node,t[O].offset=this[O].offset,t[Y].node=this[Y].node,t[Y].offset=this[Y].offset,t}createContextualFragment(t){return new Cr(this[m]).parse(t)}deleteContents(){let t=this.startOffset,e=this.endOffset;if(this.collapsed)return;if(this[O].node===this[Y].node&&(this[O].node[D]===T.textNode||this[O].node[D]===T.processingInstructionNode||this[O].node[D]===T.commentNode)){this[O].node.replaceData(t,e-t,"");return}let o=[],s=this[O].node,n=ft.nextDescendantNode(this[Y].node);while(s&&s!==n){if(ue.isContained(s,this)&&!ue.isContained(s[W],this))o.push(s);s=ft.following(s)}let l,a;if(ft.isInclusiveAncestor(this[O].node,this[Y].node))l=this[O].node,a=t;else{let y=this[O].node;while(y&&!ft.isInclusiveAncestor(y[W],this[Y].node))y=y[W];l=y[W],a=y[W][_].indexOf(y)+1}if(this[O].node[D]===T.textNode||this[O].node[D]===T.processingInstructionNode||this[O].node[D]===T.commentNode)this[O].node.replaceData(this.startOffset,ft.getNodeLength(this[O].node)-this.startOffset,"");for(let y of o)y[W].removeChild(y);if(this[Y].node[D]===T.textNode||this[Y].node[D]===T.processingInstructionNode||this[Y].node[D]===T.commentNode)this[Y].node.replaceData(0,e,"");this[O].node=l,this[O].offset=a,this[Y].node=l,this[Y].offset=a}detach(){}extractContents(){let t=this[m],e=this[x].createDocumentFragment(),o=this.startOffset,s=this.endOffset;if(this.collapsed)return e;if(this[O].node===this[Y].node&&(this[O].node[D]===T.textNode||this[O].node[D]===T.processingInstructionNode||this[O].node[D]===T.commentNode)){let d=this[O].node.cloneNode(!1);return d[Kt]=d.substringData(o,s-o),e.appendChild(d),this[O].node.replaceData(o,s-o,""),e}let n=this[O].node;while(!ft.isInclusiveAncestor(n,this[Y].node))n=n[W];let l=null;if(!ft.isInclusiveAncestor(this[O].node,this[Y].node)){let d=n.firstChild;while(!l){if(ue.isPartiallyContained(d,this))l=d;d=d.nextSibling}}let a=null;if(!ft.isInclusiveAncestor(this[Y].node,this[O].node)){let d=n.lastChild;while(!a){if(ue.isPartiallyContained(d,this))a=d;d=d.previousSibling}}let y=[];for(let d of n[_])if(ue.isContained(d,this)){if(d[D]===T.documentTypeNode)throw new this[m].DOMException("Invalid document type element.",w.hierarchyRequestError);y.push(d)}let u,c;if(ft.isInclusiveAncestor(this[O].node,this[Y].node))u=this[O].node,c=o;else{let d=this[O].node;while(d&&!ft.isInclusiveAncestor(d[W],this[Y].node))d=d[W];u=d[W],c=d[W][_].indexOf(d)+1}if(l!==null&&(l[D]===T.textNode||l[D]===T.processingInstructionNode||l[D]===T.commentNode)){let d=this[O].node.cloneNode(!1);d[Kt]=d.substringData(o,ft.getNodeLength(this[O].node)-o),e.appendChild(d),this[O].node.replaceData(o,ft.getNodeLength(this[O].node)-o,"")}else if(l!==null){let d=l.cloneNode(!1);e.appendChild(d);let g=new t.Range;g[O].node=this[O].node,g[O].offset=o,g[Y].node=l,g[Y].offset=ft.getNodeLength(l);let f=g.extractContents();d.appendChild(f)}for(let d of y)e.appendChild(d);if(a!==null&&(a[D]===T.textNode||a[D]===T.processingInstructionNode||a[D]===T.commentNode)){let d=this[Y].node.cloneNode(!1);d[Kt]=d.substringData(0,s),e.appendChild(d),this[Y].node.replaceData(0,s,"")}else if(a!==null){let d=a.cloneNode(!1);e.appendChild(d);let g=new t.Range;g[O].node=a,g[O].offset=0,g[Y].node=this[Y].node,g[Y].offset=s;let f=g.extractContents();d.appendChild(f)}return this[O].node=u,this[O].offset=c,this[Y].node=u,this[Y].offset=c,e}getBoundingClientRect(){return new li}getClientRects(){return new em(h)}isPointInRange(t,e=0){if(t[x]!==this[x])return!1;let o={node:t,offset:e};if(ue.validateBoundaryPoint(o),ue.compareBoundaryPointsPosition(o,{node:this[O].node,offset:this.startOffset})===-1||ue.compareBoundaryPointsPosition(o,{node:this[Y].node,offset:this.endOffset})===1)return!1;return!0}insertNode(t){if(this[O].node[D]===T.processingInstructionNode||this[O].node[D]===T.commentNode||this[O].node[D]===T.textNode&&!this[O].node[W]||t===this[O].node)throw new this[m].DOMException("Invalid start node.",w.hierarchyRequestError);let e=this[O].node[D]===T.textNode?this[O].node:this[O].node[_][this.startOffset]||null,o=!e?this[O].node:e[W];if(this[O].node[D]===T.textNode)e=this[O].node.splitText(this.startOffset);if(t===e)e=e.nextSibling;let s=t[W];if(s)s.removeChild(t);let n=!e?ft.getNodeLength(o):e[W][_].indexOf(e);if(n+=t[D]===T.documentFragmentNode?ft.getNodeLength(t):1,o.insertBefore(t,e),this.collapsed)this[Y].node=o,this[Y].offset=n}intersectsNode(t){if(t[x]!==this[x])return!1;let e=t[W];if(!e)return!0;let o=e[_].indexOf(t);return ue.compareBoundaryPointsPosition({node:e,offset:o},{node:this[Y].node,offset:this.endOffset})===-1&&ue.compareBoundaryPointsPosition({node:e,offset:o+1},{node:this[O].node,offset:this.startOffset})===1}selectNode(t){if(!t[W])throw new this[m].DOMException("The given Node has no parent.",w.invalidNodeTypeError);let e=t[W][_].indexOf(t);this[O].node=t[W],this[O].offset=e,this[Y].node=t[W],this[Y].offset=e+1}selectNodeContents(t){if(t[D]===T.documentTypeNode)throw new this[m].DOMException("DocumentType Node can't be used as boundary point.",w.invalidNodeTypeError);this[O].node=t,this[O].offset=0,this[Y].node=t,this[Y].offset=ft.getNodeLength(t)}setEnd(t,e=0){ue.validateBoundaryPoint({node:t,offset:e});let o={node:t,offset:e};if(t[x]!==this[x]||ue.compareBoundaryPointsPosition(o,{node:this[O].node,offset:this.startOffset})===-1)this[O].node=t,this[O].offset=e;this[Y].node=t,this[Y].offset=e}setStart(t,e=0){ue.validateBoundaryPoint({node:t,offset:e});let o={node:t,offset:e};if(t[x]!==this[x]||ue.compareBoundaryPointsPosition(o,{node:this[Y].node,offset:this.endOffset})===1)this[Y].node=t,this[Y].offset=e;this[O].node=t,this[O].offset=e}setEndAfter(t){if(!t[W])throw new this[m].DOMException("The given Node has no parent.",w.invalidNodeTypeError);this.setEnd(t[W],t[W][_].indexOf(t)+1)}setEndBefore(t){if(!t[W])throw new this[m].DOMException("The given Node has no parent.",w.invalidNodeTypeError);this.setEnd(t[W],t[W][_].indexOf(t))}setStartAfter(t){if(!t[W])throw new this[m].DOMException("The given Node has no parent.",w.invalidNodeTypeError);this.setStart(t[W],t[W][_].indexOf(t)+1)}setStartBefore(t){if(!t[W])throw new this[m].DOMException("The given Node has no parent.",w.invalidNodeTypeError);this.setStart(t[W],t[W][_].indexOf(t))}surroundContents(t){let e=this.commonAncestorContainer;if(!e)return;let o=ft.nextDescendantNode(e);while(e&&e!==o){if(e[D]!==T.textNode&&ue.isPartiallyContained(e,this))throw new this[m].DOMException("The Range has partially contains a non-Text node.",w.invalidStateError);e=ft.following(e)}if(t[D]===T.documentNode||t[D]===T.documentTypeNode||t[D]===T.documentFragmentNode)throw new this[m].DOMException("Invalid element type.",w.invalidNodeTypeError);let s=this.extractContents();while(t.firstChild)t.removeChild(t.firstChild);this.insertNode(t),t.appendChild(s),this.selectNode(t)}toString(){let t=this.startOffset,e=this.endOffset,o="";if(this[O].node===this[Y].node&&this[O].node[D]===T.textNode)return this[O].node.data.slice(t,e);if(this[O].node[D]===T.textNode)o+=this[O].node.data.slice(t);let s=ft.nextDescendantNode(this[Y].node),n=this[O].node;while(n&&n!==s){if(n[D]===T.textNode&&ue.isContained(n,this))o+=n.data;n=ft.following(n)}if(this[Y].node[D]===T.textNode)o+=this[Y].node.data.slice(0,e);return o}}class da extends vt{id="";startTime=0;endTime=0;pauseOnExit=!1;[Ia]=null;onenter=null;onexit=null;constructor(t){super();if(t!==h)throw TypeError("Illegal constructor");if(!this[m])throw TypeError(`Failed to construct '${this.constructor.name}': '${this.constructor.name}' was constructed outside a Window context.`)}get track(){return this[Ia]}}class lh extends da{region=null;vertical="";snapToLines=!0;line=0;lineAlign="";position="auto";positionAlign="auto";size=100;align="";text="";constructor(t,e,o){super(h);let s=this[m],n=0;if(t!==void 0)n++;if(e!==void 0)n++;if(o!==void 0)n++;if(n<3)throw new s.TypeError(`Failed to construct 'VTTCue': 3 arguments required, but only ${n} present.`);if(t=Number(t),e=Number(e),isNaN(t)||isNaN(e))throw new s.TypeError("Failed to construct 'VTTCue': The provided double value is non-finite.");this.startTime=t,this.endTime=e,this.text=String(o)}getCueAsHTML(){let t=this[m],e=t.document.createDocumentFragment();return e.appendChild(t.document.createTextNode(this.text)),e}}class hm extends vt{[xo]=Ps.subtitles;[Us]="";[Il]="";[Bm]="";[Ee]="disabled";[Ml]=new pl(h);[fb]=new pl(h);oncuechange=null;constructor(t){super();if(t!==h)throw TypeError("Illegal constructor");if(!this[m])throw TypeError(`Failed to construct '${this.constructor.name}': '${this.constructor.name}' was constructed outside a Window context.`)}get kind(){return this[xo]}get label(){return this[Us]}get language(){return this[Il]}get id(){return this[Bm]}get mode(){return this[Ee]}set mode(t){if(t!=="disabled"&&t!=="showing")return;this[Ee]=t}get cues(){if(this[Ee]==="disabled")return null;return this[Ml]}get activeCues(){if(this[Ee]==="disabled")return null;return this[fb]}addCue(t){if(this[Ml].includes(t))return;t[Ia]=this,this[Ml].push(t)}removeCue(t){let e=this[Ml].indexOf(t);if(e!==-1)t[Ia]=null,this[Ml].splice(e,1)}}class cm extends vt{[Q]=[];onaddtrack=null;onchange=null;onremovetrack=null;constructor(t,e){super();if(t!==h)throw TypeError("Illegal constructor");this[Q]=e;let o=new fe(this,[cm,vt]);return new Proxy(this,{get:(s,n)=>{if(n==="length")return e.length;if(n in s||typeof n==="symbol")return o.bind(n),s[n];let l=Number(n);if(!isNaN(l))return e[l]},set(s,n,l){if(o.bind(n),typeof n==="symbol")return s[n]=l,!0;let a=Number(n);if(isNaN(a))s[n]=l;return!0},deleteProperty(s,n){if(typeof n==="symbol")return delete s[n],!0;let l=Number(n);if(isNaN(l))delete s[n];return!0},ownKeys(){return Object.keys(e)},has(s,n){if(n in s)return!0;if(typeof n==="symbol")return!1;let l=Number(n);return!isNaN(l)&&l>=0&&l<e.length},defineProperty(s,n,l){if(o.preventBinding(n),n in s)return Object.defineProperty(s,n,l),!0;return!1},getOwnPropertyDescriptor(s,n){if(n in s||typeof n==="symbol")return;let l=Number(n);if(!isNaN(l)&&e[l])return{value:e[l],writable:!1,enumerable:!0,configurable:!0}}})}get length(){return this[Q].length}get[Symbol.toStringTag](){return"TextTrackList"}toLocaleString(){return"[object TextTrackList]"}toString(){return"[object TextTrackList]"}[Symbol.iterator](){return this[Q][Symbol.iterator]()}getTrackById(t){for(let e of this[Q])if(e.id===t)return e;return null}}class ah extends vt{[Pb]="disconnected";onconnecting=null;onconnect=null;ondisconnect=null;get state(){return this[Pb]}async watchAvailability(){}cancelWatchAvailability(){}prompt(){}}var kS=i(LS(),1);var bg;(function(t){t[t.empty=0]="empty",t[t.loading=1]="loading",t[t.done=2]="done"})(bg||(bg={}));var dn=bg;var gg;(function(t){t.buffer="buffer",t.binaryString="binaryString",t.dataURL="dataURL",t.text="text"})(gg||(gg={}));var bn=gg;var Sg;(function(t){t.abort="abort",t.error="error",t.load="load",t.loadstart="loadstart",t.loadend="loadend",t.progress="progress"})(Sg||(Sg={}));var ba=Sg;import{Buffer as JA}from"buffer";class yh extends vt{error=null;result=null;readyState=dn.empty;onabort=null;onerror=null;onload=null;onloadstart=null;onloadend=null;onprogress=null;#t=!1;#e=null;#r=null;constructor(){super();if(!this[m])throw TypeError(`Failed to construct '${this.constructor.name}': '${this.constructor.name}' was constructed outside a Window context.`)}readAsArrayBuffer(t){if(!(t instanceof ie))throw new this[m].TypeError("Failed to execute 'readAsArrayBuffer' on 'FileReader': parameter 1 is not of type 'Blob'.");this.#o(t,bn.buffer)}readAsBinaryString(t){if(!(t instanceof ie))throw new this[m].TypeError("Failed to execute 'readAsBinaryString' on 'FileReader': parameter 1 is not of type 'Blob'.");this.#o(t,bn.binaryString)}readAsDataURL(t){if(!(t instanceof ie))throw new this[m].TypeError("Failed to execute 'readAsDataURL' on 'FileReader': parameter 1 is not of type 'Blob'.");this.#o(t,bn.dataURL)}readAsText(t,e=null){if(!(t instanceof ie))throw new this[m].TypeError("Failed to execute 'readAsText' on 'FileReader': parameter 1 is not of type 'Blob'.");this.#o(t,bn.text,e||"UTF-8")}abort(){let t=this[m];if(this.#e)t.clearTimeout(this.#e);if(this.#r)t.clearTimeout(this.#r);if(this.readyState===dn.empty||this.readyState===dn.done){this.result=null;return}if(this.readyState===dn.loading)this.readyState=dn.done,this.result=null;this.#t=!0,this.dispatchEvent(new Io(ba.abort)),this.dispatchEvent(new Io(ba.loadend))}#o(t,e,o=null){let s=this[m];if(this.readyState===dn.loading)throw new s.DOMException("The object is in an invalid state.",w.invalidStateError);this.readyState=dn.loading,this.#e=s.setTimeout(()=>{if(this.#t){this.#t=!1;return}this.dispatchEvent(new Io(ba.loadstart));let n=t[Nt];if(!n)n=JA.alloc(0);this.dispatchEvent(new Io(ba.loadstart,{lengthComputable:!isNaN(t.size),total:t.size,loaded:n.length})),this.#r=s.setTimeout(()=>{if(this.#t){this.#t=!1;return}switch(e){default:case bn.buffer:{this.result=new Uint8Array(n).buffer;break}case bn.binaryString:{this.result=n.toString("binary");break}case bn.dataURL:{let l=kS.default.parse(t.type)||"application/octet-stream";this.result=`data:${l};base64,${n.toString("base64")}`;break}case bn.text:{this.result=new TextDecoder(o||"UTF-8").decode(n);break}}this.readyState=dn.done,this.dispatchEvent(new Io(ba.load)),this.dispatchEvent(new Io(ba.loadend))})})}}import ZA from"crypto";var tw={aspectRatio:{max:300,min:0.006666666666666667},deviceId:"",facingMode:[],frameRate:{max:60,min:0},height:{max:150,min:1},resizeMode:["none","crop-and-scale"],width:{max:300,min:1}},ew={deviceId:"",frameRate:60,resizeMode:"none"};class ga extends vt{contentHint="";enabled=!0;id=ZA.randomUUID();muted=!1;readyState="live";label="";[Us]="";[xo]="video";[ka]={};[Pi]=JSON.parse(JSON.stringify(tw));[In]=JSON.parse(JSON.stringify(ew));onended=null;onmute=null;onunmute=null;constructor(t){super();if(t!==h)throw TypeError("Illegal constructor");if(!this[m])throw TypeError(`Failed to construct '${this.constructor.name}': '${this.constructor.name}' was constructed outside a Window context.`)}get kind(){return this[xo]}async applyConstraints(t){this.#t(this[ka],t)}getConstraints(){return this[ka]}getCapabilities(){return this[Pi]}getSettings(){return this[In]}clone(){let t=new this.constructor(h);return t[xo]=this[xo],t[ka]=this[ka],t[Pi]=this[Pi],t[In]=this[In],t.contentHint=this.contentHint,t.enabled=this.enabled,t.label=this.label,t.muted=this.muted,t.readyState=this.readyState,t}stop(){this.readyState="ended"}#t(t,e){for(let o in e)if(e[o]!==null&&typeof e[o]==="object"&&!Array.isArray(e[o])){if(typeof t[o]!=="object")t[o]={};this.#t(t[o],e[o])}else t[o]=e[o]}}class Fc extends ga{[Om];constructor(t,e){super(t);this[Om]=e}get canvas(){return this[Om]}requestFrame(){}clone(){let t=super.clone();return t[Om]=this.canvas,t}}var fg;(function(t){t[t.connecting=0]="connecting",t[t.open=1]="open",t[t.closing=2]="closing",t[t.closed=3]="closed"})(fg||(fg={}));var Po=fg;import rw from"ws";var ow=/^[!#$%&'*+\-.^_`|~\dA-Za-z]+$/;class ph extends vt{static CONNECTING=Po.connecting;static OPEN=Po.open;static CLOSING=Po.closing;static CLOSED=Po.closed;#t=Po.closed;#e="";#r="blob";#o=null;#i;[vr]=null;constructor(t,e){super();let o=this[m],s;try{s=new URL(t)}catch{throw new o.DOMException(`The URL '${t}' is invalid.`,w.syntaxError)}if(s.protocol!=="ws:"&&s.protocol!=="wss:")throw new o.DOMException(`The URL's protocol must be either 'ws' or 'wss'. '${s.protocol}' is not allowed.`,w.syntaxError);if(s.hash)s.hash="";let n=new Set,l=e!==void 0?Array.isArray(e)?e:[e]:[];for(let a of l){if(!this.#u(a))throw new o.DOMException(`The subprotocol '${a}' is invalid.`,w.syntaxError);if(n.has(a))throw new o.DOMException(`The subprotocol '${a}' is duplicated.`,w.syntaxError);n.add(a)}this.#i=s,this.#s(s,l)}get readyState(){return this.#t}get extensions(){return this.#e}get binaryType(){return this.#r}set binaryType(t){if(t!=="blob"&&t!=="arraybuffer")return;this.#r=t}get protocol(){return this[vr]?.protocol||""}get url(){return this.#i.href}close(t,e){let o=this[m];if(t!==void 0&&t!==1000&&!(t>=3000&&t<=4999))throw new o.DOMException(`The code must be either 1000, or between 3000 and 4999. ${t} is neither.`,w.invalidAccessError);if(e!==void 0&&Buffer.byteLength(e,"utf8")>123)throw new o.DOMException("The message must not be greater than 123 bytes.",w.syntaxError);this.#l(t,e?Buffer.from(e):void 0)}send(t){let e=this[m];if(this.#t===Po.connecting)throw new e.DOMException("Still in CONNECTING state.",w.invalidStateError);if(this.#t!==Po.open)return;if(typeof t==="string"){this[vr]?.send(t,{binary:!1});return}let o;if(t instanceof ArrayBuffer)o=Buffer.from(new Uint8Array(t));else if(t instanceof ie)o=t[Nt];else if(t instanceof Buffer)o=t;else if(ArrayBuffer.isView(t))o=Buffer.from(new Uint8Array(t.buffer,t.byteOffset,t.byteLength));else o=Buffer.from(String(t));this[vr]?.send(o,{binary:!0})}[At](){super[At](),this.#l(1001)}#s(t,e){let o=this[m],s=new it(o).getBrowserContext();if(!s)return;let n=new URL(o.location.href),l=s.cookieContainer.getCookies(n,!1);this.#t=Po.connecting,this[vr]=new rw(t,e,{headers:{"user-agent":o.navigator.userAgent,cookie:oi.cookiesToString(l),origin:n.origin},rejectUnauthorized:!s.browser.settings.fetch.disableStrictSSL}),this[vr].once("open",()=>{this.#m()}),this[vr].on("message",this.#y.bind(this)),this[vr].once("close",(a,y)=>{this.#a(a,y)}),this[vr].once("upgrade",({headers:a})=>{if(a["set-cookie"]!==void 0){let y=Array.isArray(a["set-cookie"])?a["set-cookie"]:[a["set-cookie"]];for(let u of y){let c=oi.stringToCookie(n,u);if(c)s.cookieContainer.addCookies([c])}}}),this[vr].once("error",(a)=>{this.#o=a}),o[Qn].push(this)}#l(t,e){if(this.readyState===Po.connecting)if(this[vr])this[vr].terminate();else this.#t=Po.closing;else if(this[vr]&&this.readyState===Po.open)this[vr].close(t,e);this[vr]=null}#m(){if(this[vr]?.extensions)this.#e=Object.keys(this[vr].extensions).join(", ");this.#t=Po.open,this.dispatchEvent(new this[m].Event("open"))}#a(t,e){let o=this[m],s=o[Qn].indexOf(this);if(s!==-1)o[Qn].splice(s,1);this.#t=Po.closed,this.dispatchEvent(new this[m].CloseEvent("close",{wasClean:this.#o===null,code:t,reason:e.toString()}))}#y(t,e){if(this.#t!==Po.open)return;let o=this[m],s;if(e)switch(this.binaryType){case"arraybuffer":if(t instanceof o.ArrayBuffer)s=t;else if(Array.isArray(t))s=this.#p(Buffer.concat(t));else s=this.#p(t);break;case"blob":default:if(!Array.isArray(t))t=[t];s=new o.Blob(t);break}else s=String(t);this.dispatchEvent(new o.MessageEvent("message",{data:s,origin:this.#i.origin}))}#p(t){let o=new this[m].ArrayBuffer(t.byteLength);return new Uint8Array(o).set(t),o}#u(t){return ow.test(t)}}class Vc{static extendClasses(t){class e extends cn{}e.prototype[m]=t,t.Document=e;class o extends Ku{}o.prototype[m]=t,t.HTMLDocument=o;class s extends Qu{}s.prototype[m]=t,t.XMLDocument=s;class n extends ma{}n.prototype[m]=t,t.DocumentFragment=n;class l extends ju{}l.prototype[m]=t,t.Text=l;class a extends qu{}a.prototype[m]=t,t.Comment=a;class y extends $u{}y.prototype[m]=t,t.Image=y;class u extends Nc{}u.prototype[m]=t,t.Audio=u;class c extends Xu{}c.prototype[m]=t,t.MutationObserver=c;class d extends kc{}d.prototype[m]=t,t.MessagePort=d;class g extends Ju{}g.prototype[m]=t,t.CSSStyleSheet=g;class f extends re{}t.DOMException=f;class E extends vi{}E.prototype[m]=t,t.Headers=E;class R extends Ni{}R.prototype[m]=t,t.Request=R;class H extends Ro{}H.prototype[m]=t,H[m]=t,t.Response=H;class pt extends vt{}pt.prototype[m]=t,t.EventTarget=pt;class gt extends Mc{}gt.prototype[m]=t,t.XMLHttpRequestUpload=gt;class Rt extends cl{}Rt.prototype[m]=t,t.XMLHttpRequestEventTarget=Rt;class lt extends Zu{}lt.prototype[m]=t,t.AbortController=lt;class dt extends th{}dt.prototype[m]=t,dt[m]=t,t.AbortSignal=dt;class ee extends ra{}ee.prototype[m]=t,t.FormData=ee;class Ct extends eh{}Ct.prototype[m]=t,t.PermissionStatus=Ct;class or extends Ic{}or.prototype[m]=t,t.XMLHttpRequest=or;class Ye extends sh{}Ye.prototype[m]=t,t.DOMParser=Ye;class Hr extends nh{}Hr.prototype[m]=t,t.Range=Hr;class zr extends lh{}zr.prototype[m]=t,t.VTTCue=zr;class Ts extends hm{}Ts.prototype[m]=t,t.TextTrack=Ts;class hi extends cm{}hi.prototype[m]=t,t.TextTrackList=hi;class fa extends da{}fa.prototype[m]=t,t.TextTrackCue=fa;class Bo extends ah{}Bo.prototype[m]=t,t.RemotePlayback=Bo;class Pa extends yh{}Pa.prototype[m]=t,t.FileReader=Pa;class xm extends nl{}xm.prototype[m]=t,t.MediaStream=xm;class Ue extends ga{}Ue.prototype[m]=t,t.MediaStreamTrack=Ue;class Jr extends Fc{}Jr.prototype[m]=t,t.CanvasCaptureMediaStreamTrack=Jr;class Cs extends Le{}Cs.prototype[m]=t,t.URL=Cs;class vm extends ph{}vm.prototype[m]=t,t.WebSocket=vm}}class Dc{[k]=0;[M]=0;[Ir]=0;[Rl]=1;constructor(t,e,o,s){this[k]=t!==void 0&&t!==null?Number(t):0,this[M]=e!==void 0&&e!==null?Number(e):0,this[Ir]=o!==void 0&&o!==null?Number(o):0,this[Rl]=s!==void 0&&s!==null?Number(s):1}get x(){return this[k]}get y(){return this[M]}get z(){return this[Ir]}get w(){return this[Rl]}toJSON(){return{x:this.x,y:this.y,z:this.z,w:this.w}}static fromPoint(t){if(!t)return new this;return new this(t.x??null,t.y??null,t.z??null,t.w??null)}}class dm extends Dc{set x(t){this[k]=t}get x(){return this[k]}set y(t){this[M]=t}get y(){return this[M]}set z(t){this[Ir]=t}get z(){return this[Ir]}set w(t){this[Rl]=t}get w(){return this[Rl]}}var bm={a:1,b:0,c:0,d:1,e:0,f:0,m11:1,m12:0,m13:0,m14:0,m21:0,m22:1,m23:0,m24:0,m31:0,m32:0,m33:1,m34:0,m41:0,m42:0,m43:0,m44:1,is2D:!0,isIdentity:!0},iw=/([a-zA-Z0-9]+)\(([^)]+)\)/gm,sw=/[\s,]+/;class dl{[kt]=1;[Dt]=0;[zt]=0;[Jt]=0;[Mt]=0;[Bt]=1;[Zt]=0;[te]=0;[Wt]=0;[jt]=0;[qt]=1;[_t]=0;[It]=0;[Ot]=0;[$t]=0;[Xt]=1;constructor(t){if(t)this[Ra](t)}get a(){return this[kt]}get b(){return this[Dt]}get c(){return this[Mt]}get d(){return this[Bt]}get e(){return this[It]}get f(){return this[Ot]}get m11(){return this[kt]}get m12(){return this[Dt]}get m13(){return this[zt]}get m14(){return this[Jt]}get m21(){return this[Mt]}get m22(){return this[Bt]}get m23(){return this[Zt]}get m24(){return this[te]}get m31(){return this[Wt]}get m32(){return this[jt]}get m33(){return this[qt]}get m34(){return this[_t]}get m41(){return this[It]}get m42(){return this[Ot]}get m43(){return this[$t]}get m44(){return this[Xt]}get isIdentity(){return this[kt]===1&&this[Dt]===0&&this[zt]===0&&this[Jt]===0&&this[Mt]===0&&this[Bt]===1&&this[Zt]===0&&this[te]===0&&this[Wt]===0&&this[jt]===0&&this[qt]===1&&this[_t]===0&&this[It]===0&&this[Ot]===0&&this[$t]===0&&this[Xt]===1}get is2D(){return this[Wt]===0&&this[jt]===0&&this[qt]===1&&this[_t]===0&&this[$t]===0&&this[Xt]===1}toFloat32Array(t){return Float32Array.from(this[hy](t))}toFloat64Array(t){return Float64Array.from(this[hy](t))}toString(){let t=this.is2D,e=this[hy](t).join(", ");return`${t?"matrix":"matrix3d"}(${e})`}toJSON(){let{is2D:t,isIdentity:e}=this;return{m11:this[kt],m12:this[Dt],m13:this[zt],m14:this[Jt],m21:this[Mt],m22:this[Bt],m23:this[Zt],m24:this[te],m31:this[Wt],m32:this[jt],m33:this[qt],m34:this[_t],m41:this[It],m42:this[Ot],m43:this[$t],m44:this[Xt],a:this[kt],b:this[Dt],c:this[Mt],d:this[Bt],e:this[It],f:this[Ot],is2D:t,isIdentity:e}}multiply(t){let e=new this.constructor(this);return e[Co](t),e}translate(t=0,e=0,o=0){let s=new this.constructor(this);return s[To](t,e,o),s}scale(t,e,o=1,s=0,n=0,l=0){let a=new this.constructor(this);return a[os](t,e,o,s,n,l),a}scale3d(t=1,e=0,o=0,s=0){let n=new this.constructor(this);return n[cy](t,e,o,s),n}scaleNonUniform(t=1,e=1){let o=new this.constructor(this);return o[dy](t,e),o}rotateAxisAngle(t=0,e=0,o=0,s=0){let n=new this.constructor(this);return n[_s](t,e,o,s),n}rotate(t=0,e,o){let s=new this.constructor(this);return s[Ws](t,e,o),s}rotateFromVector(t=0,e=0){let o=new this.constructor(this);return o[Xy](t,e),o}skewX(t){let e=new this.constructor(this);return e[Vl](t),e}skewY(t){let e=new this.constructor(this);return e[Dl](t),e}flipX(){let t=new this.constructor(this);return t[zy](),t}flipY(){let t=new this.constructor(this);return t[Jy](),t}inverse(){let t=new this.constructor(this);return t[Zy](),t}transformPoint(t){let e=t.x??0,o=t.y??0,s=t.z??0,n=t.w??1,l=this[kt]*e+this[Mt]*o+this[Wt]*s+this[It]*n,a=this[Dt]*e+this[Bt]*o+this[jt]*s+this[Ot]*n,y=this[zt]*e+this[Zt]*o+this[qt]*s+this[$t]*n,u=this[Jt]*e+this[te]*o+this[_t]*s+this[Xt]*n;return new dm(l,a,y,u)}[Ra](t){let e=null;if(typeof t==="string"&&t.length&&t!=="none")e=this.constructor[Fl](t);else if(Array.isArray(t)||t instanceof Float64Array||t instanceof Float32Array)e=this.constructor[vo](t);else if(typeof t==="object")e=this.constructor.fromMatrix(t);else return;this[kt]=e[kt],this[Dt]=e[Dt],this[zt]=e[zt],this[Jt]=e[Jt],this[Mt]=e[Mt],this[Bt]=e[Bt],this[Zt]=e[Zt],this[te]=e[te],this[Wt]=e[Wt],this[jt]=e[jt],this[qt]=e[qt],this[_t]=e[_t],this[It]=e[It],this[Ot]=e[Ot],this[$t]=e[$t],this[Xt]=e[Xt]}[Co](t){let e=t;if(!(e instanceof dl))if(e?.m11===void 0&&e?.a!==void 0)e=Object.assign({},bm,e),e.m11=e.a,e.m12=e.b,e.m21=e.c,e.m22=e.d,e.m41=e.e,e.m42=e.f;else e=Object.assign({},bm,e);let o=this[kt]*e.m11+this[Mt]*e.m12+this[Wt]*e.m13+this[It]*e.m14,s=this[kt]*e.m21+this[Mt]*e.m22+this[Wt]*e.m23+this[It]*e.m24,n=this[kt]*e.m31+this[Mt]*e.m32+this[Wt]*e.m33+this[It]*e.m34,l=this[kt]*e.m41+this[Mt]*e.m42+this[Wt]*e.m43+this[It]*e.m44,a=this[Dt]*e.m11+this[Bt]*e.m12+this[jt]*e.m13+this[Ot]*e.m14,y=this[Dt]*e.m21+this[Bt]*e.m22+this[jt]*e.m23+this[Ot]*e.m24,u=this[Dt]*e.m31+this[Bt]*e.m32+this[jt]*e.m33+this[Ot]*e.m34,c=this[Dt]*e.m41+this[Bt]*e.m42+this[jt]*e.m43+this[Ot]*e.m44,d=this[zt]*e.m11+this[Zt]*e.m12+this[qt]*e.m13+this[$t]*e.m14,g=this[zt]*e.m21+this[Zt]*e.m22+this[qt]*e.m23+this[$t]*e.m24,f=this[zt]*e.m31+this[Zt]*e.m32+this[qt]*e.m33+this[$t]*e.m34,E=this[zt]*e.m41+this[Zt]*e.m42+this[qt]*e.m43+this[$t]*e.m44,R=this[Jt]*e.m11+this[te]*e.m12+this[_t]*e.m13+this[Xt]*e.m14,H=this[Jt]*e.m21+this[te]*e.m22+this[_t]*e.m23+this[Xt]*e.m24,pt=this[Jt]*e.m31+this[te]*e.m32+this[_t]*e.m33+this[Xt]*e.m34,gt=this[Jt]*e.m41+this[te]*e.m42+this[_t]*e.m43+this[Xt]*e.m44;this[kt]=o,this[Dt]=a,this[zt]=d,this[Jt]=R,this[Mt]=s,this[Bt]=y,this[Zt]=g,this[te]=H,this[Wt]=n,this[jt]=u,this[qt]=f,this[_t]=pt,this[It]=l,this[Ot]=c,this[$t]=E,this[Xt]=gt}[To](t=0,e=0,o=0){let s=this.constructor[vo]([1,0,0,0,0,1,0,0,0,0,1,0,t,e,o,1]);this[Co](s)}[os](t,e,o=1,s=0,n=0,l=0){if(t=t===void 0?1:Number(t),e=e===void 0?t:Number(e),s!==0||n!==0||l!==0)this[To](s,n,l);if(t!==1||e!==1||o!==1)this[Co](this.constructor[vo]([t,0,0,0,0,e,0,0,0,0,o,0,0,0,0,1]));if(s!==0||n!==0||l!==0)this[To](-s,-n,-l)}[cy](t=1,e=0,o=0,s=0){if(e!==0||o!==0||s!==0)this[To](e,o,s);if(t!==1)this[Co](this.constructor[vo]([t,0,0,0,0,t,0,0,0,0,t,0,0,0,0,1]));if(e!==0||o!==0||s!==0)this[To](-e,-o,-s)}[dy](t=1,e=1){if(t===1&&e===1)return;this[Co](this.constructor[vo]([t,0,0,0,0,e,0,0,0,0,1,0,0,0,0,1]))}[_s](t=0,e=0,o=0,s=0){if(t=Number(t),e=Number(e),o=Number(o),s=Number(s),isNaN(t)||isNaN(e)||isNaN(o)||isNaN(s))throw TypeError("Failed to execute 'rotateAxisAngleSelf' on 'DOMMatrix': The arguments must be numbers.");let n=Math.hypot(t,e,o);if(n===0)return;if(n!==1)t/=n,e/=n,o/=n;let l=-(s*Math.PI/360),a=this.#t,y=Math.sin(l)*Math.cos(l),u=Math.sin(l)*Math.sin(l),c=a(1-2*(e*e+o*o)*u),d=a(2*(t*e*u+o*y)),g=a(2*(t*o*u-e*y)),f=a(2*(t*e*u-o*y)),E=a(1-2*(t*t+o*o)*u),R=a(2*(e*o*u+t*y)),H=a(2*(t*o*u+e*y)),pt=a(2*(e*o*u-t*y)),gt=a(1-2*(t*t+e*e)*u),Rt=this.constructor[vo]([c,f,H,0,d,E,pt,0,g,R,gt,0,0,0,0,1]);this[Co](Rt)}[Ws](t=0,e,o){if(e===void 0&&o===void 0)o=t,t=0,e=0;if(e===void 0)e=0;if(o===void 0)o=0;if(t=Number(t),e=Number(e),o=Number(o),isNaN(t)||isNaN(e)||isNaN(o))throw TypeError("Failed to execute 'rotateSelf' on 'DOMMatrix': The arguments must be numbers.");if(o!==0)this[_s](0,0,1,o);if(e!==0)this[_s](0,1,0,e);if(t!==0)this[_s](1,0,0,t)}[Xy](t=0,e=0){if(t===0&&e===0)return;this[Ws](Math.atan2(e,t)*180/Math.PI)}[Vl](t){let e=Object.assign({},bm),o=Math.tan(t*Math.PI/180);e.m21=o,e.c=o,this[Co](e)}[Dl](t){let e=Object.assign({},bm),o=Math.tan(t*Math.PI/180);e.m12=o,e.b=o,this[Co](e)}[zy](){let t=this.constructor[vo]([-1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]);this[Co](t)}[Jy](){let t=this.constructor[vo]([1,0,0,0,0,-1,0,0,0,0,1,0,0,0,0,1]);this[Co](t)}[Zy](){let t=this[Bt]*this[qt]*this[Xt]-this[Bt]*this[_t]*this[$t]-this[jt]*this[Zt]*this[Xt]+this[jt]*this[te]*this[$t]+this[Ot]*this[Zt]*this[_t]-this[Ot]*this[te]*this[qt],e=-this[Dt]*this[qt]*this[Xt]+this[Dt]*this[_t]*this[$t]+this[jt]*this[zt]*this[Xt]-this[jt]*this[Jt]*this[$t]-this[Ot]*this[zt]*this[_t]+this[Ot]*this[Jt]*this[qt],o=this[Dt]*this[Zt]*this[Xt]-this[Dt]*this[te]*this[$t]-this[Bt]*this[zt]*this[Xt]+this[Bt]*this[Jt]*this[$t]+this[Ot]*this[zt]*this[te]-this[Ot]*this[Jt]*this[Zt],s=-this[Dt]*this[Zt]*this[_t]+this[Dt]*this[te]*this[qt]+this[Bt]*this[zt]*this[_t]-this[Bt]*this[Jt]*this[qt]-this[jt]*this[zt]*this[te]+this[jt]*this[Jt]*this[Zt],n=this[kt]*t+this[Mt]*e+this[Wt]*o+this[It]*s;if(n===0){this[kt]=NaN,this[Dt]=NaN,this[zt]=NaN,this[Jt]=NaN,this[Mt]=NaN,this[Bt]=NaN,this[Zt]=NaN,this[te]=NaN,this[Wt]=NaN,this[jt]=NaN,this[qt]=NaN,this[_t]=NaN,this[It]=NaN,this[Ot]=NaN,this[$t]=NaN,this[Xt]=NaN;return}let l=-this[Mt]*this[qt]*this[Xt]+this[Mt]*this[_t]*this[$t]+this[Wt]*this[Zt]*this[Xt]-this[Wt]*this[te]*this[$t]-this[It]*this[Zt]*this[_t]+this[It]*this[te]*this[qt],a=this[kt]*this[qt]*this[Xt]-this[kt]*this[_t]*this[$t]-this[Wt]*this[zt]*this[Xt]+this[Wt]*this[Jt]*this[$t]+this[It]*this[zt]*this[_t]-this[It]*this[Jt]*this[qt],y=-this[kt]*this[Zt]*this[Xt]+this[kt]*this[te]*this[$t]+this[Mt]*this[zt]*this[Xt]-this[Mt]*this[Jt]*this[$t]-this[It]*this[zt]*this[te]+this[It]*this[Jt]*this[Zt],u=this[kt]*this[Zt]*this[_t]-this[kt]*this[te]*this[qt]-this[Mt]*this[zt]*this[_t]+this[Mt]*this[Jt]*this[qt]+this[Wt]*this[zt]*this[te]-this[Wt]*this[Jt]*this[Zt],c=this[Mt]*this[jt]*this[Xt]-this[Mt]*this[_t]*this[Ot]-this[Wt]*this[Bt]*this[Xt]+this[Wt]*this[te]*this[Ot]+this[It]*this[Bt]*this[_t]-this[It]*this[te]*this[jt],d=-this[kt]*this[jt]*this[Xt]+this[kt]*this[_t]*this[Ot]+this[Wt]*this[Dt]*this[Xt]-this[Wt]*this[Jt]*this[Ot]-this[It]*this[Dt]*this[_t]+this[It]*this[Jt]*this[jt],g=this[kt]*this[Bt]*this[Xt]-this[kt]*this[te]*this[Ot]-this[Mt]*this[Dt]*this[Xt]+this[Mt]*this[Jt]*this[Ot]+this[It]*this[Dt]*this[te]-this[It]*this[Jt]*this[Bt],f=-this[kt]*this[Bt]*this[_t]+this[kt]*this[te]*this[jt]+this[Mt]*this[Dt]*this[_t]-this[Mt]*this[Jt]*this[jt]-this[Wt]*this[Dt]*this[te]+this[Wt]*this[Jt]*this[Bt],E=-this[Mt]*this[jt]*this[$t]+this[Mt]*this[qt]*this[Ot]+this[Wt]*this[Bt]*this[$t]-this[Wt]*this[Zt]*this[Ot]-this[It]*this[Bt]*this[qt]+this[It]*this[Zt]*this[jt],R=this[kt]*this[jt]*this[$t]-this[kt]*this[qt]*this[Ot]-this[Wt]*this[Dt]*this[$t]+this[Wt]*this[zt]*this[Ot]+this[It]*this[Dt]*this[qt]-this[It]*this[zt]*this[jt],H=-this[kt]*this[Bt]*this[$t]+this[kt]*this[Zt]*this[Ot]+this[Mt]*this[Dt]*this[$t]-this[Mt]*this[zt]*this[Ot]-this[It]*this[Dt]*this[Zt]+this[It]*this[zt]*this[Bt],pt=this[kt]*this[Bt]*this[qt]-this[kt]*this[Zt]*this[jt]-this[Mt]*this[Dt]*this[qt]+this[Mt]*this[zt]*this[jt]+this[Wt]*this[Dt]*this[Zt]-this[Wt]*this[zt]*this[Bt];this[kt]=t/n||0,this[Dt]=e/n||0,this[zt]=o/n||0,this[Jt]=s/n||0,this[Mt]=l/n||0,this[Bt]=a/n||0,this[Zt]=y/n||0,this[te]=u/n||0,this[Wt]=c/n||0,this[jt]=d/n||0,this[qt]=g/n||0,this[_t]=f/n||0,this[It]=E/n||0,this[Ot]=R/n||0,this[$t]=H/n||0,this[Xt]=pt/n||0}[hy](t=!1){if(t)return[this[kt],this[Dt],this[Mt],this[Bt],this[It],this[Ot]];return[this[kt],this[Dt],this[zt],this[Jt],this[Mt],this[Bt],this[Zt],this[te],this[Wt],this[jt],this[qt],this[_t],this[It],this[Ot],this[$t],this[Xt]]}#t(t,e=1000000000000000){return Math.round(t*e)/e}static fromMatrix(t){if(!(t instanceof dl))if(t?.m11===void 0&&t?.a!==void 0)t=Object.assign({},bm,t),t.m11=t.a,t.m12=t.b,t.m21=t.c,t.m22=t.d,t.m41=t.e,t.m42=t.f;else t=Object.assign({},bm,t);return this[vo]([t.m11,t.m12,t.m13,t.m14,t.m21,t.m22,t.m23,t.m24,t.m31,t.m32,t.m33,t.m34,t.m41,t.m42,t.m43,t.m44])}static fromFloat32Array(t){return this[vo](t)}static fromFloat64Array(t){return this[vo](t)}static[vo](t){if(!(t instanceof Float64Array||t instanceof Float32Array||Array.isArray(t))||t.length!==6&&t.length!==16)throw TypeError(`Failed to execute 'fromArray' on '${this.name}': '${String(t)}' is not a compatible array.`);let e=new this;if(t.length===16){let[o,s,n,l,a,y,u,c,d,g,f,E,R,H,pt,gt]=t;e[kt]=o,e[Dt]=s,e[zt]=n,e[Jt]=l,e[Mt]=a,e[Bt]=y,e[Zt]=u,e[te]=c,e[Wt]=d,e[jt]=g,e[qt]=f,e[_t]=E,e[It]=R,e[Ot]=H,e[$t]=pt,e[Xt]=gt}else if(t.length===6){let[o,s,n,l,a,y]=t;e[kt]=o,e[Dt]=s,e[Mt]=n,e[Bt]=l,e[It]=a,e[Ot]=y}return e}static[Fl](t){if(typeof t!=="string")throw TypeError(`Failed to execute 'setMatrixValue' on '${this.name}': Expected '${String(t)}' to be a string.`);let e=new this,o=new RegExp(iw),s;while(s=o.exec(t)){let n=s[1],l=s[2].split(sw);for(let d=0,g=l.length;d<g;d++)l[d]=this[wb](l[d]);let[a,y,u,c]=l;switch(n){case"perspective":if(!isNaN(a)&&a!==0&&y===void 0&&u===void 0)e[_t]=-1/a;break;case"translate":if(!isNaN(a)&&u===void 0)e[To](a,y||0,0);break;case"translate3d":if(!isNaN(a)&&!isNaN(y)&&!isNaN(u))e[To](a,y,u);break;case"translateX":if(!isNaN(a)&&y===void 0&&u===void 0)e[To](a);break;case"translateY":if(!isNaN(a)&&y===void 0&&u===void 0)e[To](0,a);break;case"translateZ":if(!isNaN(a)&&y===void 0&&u===void 0)e[To](0,0,a);break;case"matrix":case"matrix3d":if(l.length===6||l.length===16)e[Ra](this[vo](l));break;case"rotate":case"rotateZ":if(!isNaN(a)&&y===void 0&&u===void 0)e[Ws](0,0,a);break;case"rotateX":if(!isNaN(a)&&y===void 0&&u===void 0)e[Ws](a,0,0);break;case"rotateY":if(!isNaN(a)&&y===void 0&&u===void 0)e[Ws](0,a,0);case"rotate3d":if(!isNaN(a)&&!isNaN(y)&&!isNaN(u)&&!isNaN(c))e[_s](a,y,u,c);break;case"scale":if(!isNaN(a)&&a!==1&&u===void 0)e[os](a,isNaN(y)?a:y);break;case"scale3d":if(!isNaN(a)&&!isNaN(y)&&!isNaN(u))e[os](a,y,u);break;case"scaleX":if(!isNaN(a)&&y===void 0&&u===void 0)e[os](a,1,1);break;case"scaleY":if(!isNaN(a)&&y===void 0&&u===void 0)e[os](1,a,1);break;case"scaleZ":if(!isNaN(a)&&y===void 0&&u===void 0)e[os](1,1,a);break;case"skew":if(!isNaN(a))e[Vl](a);if(!isNaN(y))e[Dl](y);break;case"skewX":if(!isNaN(a)&&y===void 0)e[Vl](a);break;case"skewY":if(!isNaN(a)&&y===void 0)e[Dl](a);break;default:throw TypeError(`Failed to execute 'setMatrixValue' on '${this.name}': Unknown transform function '${s[1]}'.`)}}return e}static[wb](t){let e=parseFloat(t);switch(t.replace(e.toString(),"")){case"rem":case"em":case"vw":case"vh":case"%":case"vmin":case"vmax":throw SyntaxError(`Failed to construct '${this.name}': Lengths must be absolute, not relative`);case"rad":return e*(180/Math.PI);case"turn":return e*360;case"px":return e;case"cm":return e*37.7812;case"mm":return e*3.7781;case"in":return e*96;case"pt":return e*1.3281;case"pc":return e*16;case"Q":return e*0.945;default:return e}}}class Ao extends dl{get a(){return this[kt]}set a(t){this[kt]=t}get b(){return this[Dt]}set b(t){this[Dt]=t}get c(){return this[Mt]}set c(t){this[Mt]=t}get d(){return this[Bt]}set d(t){this[Bt]=t}get e(){return this[It]}set e(t){this[It]=t}get f(){return this[Ot]}set f(t){this[Ot]=t}get m11(){return this[kt]}set m11(t){this[kt]=t}get m12(){return this[Dt]}set m12(t){this[Dt]=t}get m13(){return this[zt]}set m13(t){this[zt]=t}get m14(){return this[Jt]}set m14(t){this[Jt]=t}get m21(){return this[Mt]}set m21(t){this[Mt]=t}get m22(){return this[Bt]}set m22(t){this[Bt]=t}get m23(){return this[Zt]}set m23(t){this[Zt]=t}get m24(){return this[te]}set m24(t){this[te]=t}get m31(){return this[Wt]}set m31(t){this[Wt]=t}get m32(){return this[jt]}set m32(t){this[jt]=t}get m33(){return this[qt]}set m33(t){this[qt]=t}get m34(){return this[_t]}set m34(t){this[_t]=t}get m41(){return this[It]}set m41(t){this[It]=t}get m42(){return this[Ot]}set m42(t){this[Ot]=t}get m43(){return this[$t]}set m43(t){this[$t]=t}get m44(){return this[Xt]}set m44(t){this[Xt]=t}setMatrixValue(t){return this[Ra](t),this}multiplySelf(t){return this[Co](t),this}translateSelf(t=0,e=0,o=0){return this[To](t,e,o),this}scaleSelf(t,e,o=1,s=0,n=0,l=0){return this[os](t,e,o,s,n,l),this}scale3dSelf(t=1,e=0,o=0,s=0){return this[cy](t,e,o,s),this}scaleNonUniformSelf(t=1,e=1){return this[dy](t,e),this}rotateAxisAngleSelf(t=0,e=0,o=0,s=0){return this[_s](t,e,o,s),this}rotateSelf(t=0,e,o){return this[Ws](t,e,o),this}rotateFromVectorSelf(t=0,e=0){return this[Xy](t,e),this}skewXSelf(t){return this[Vl](t),this}skewYSelf(t){return this[Dl](t),this}flipXSelf(){return this[zy](),this}flipYSelf(){return this[Jy](),this}invertSelf(){return this[Zy](),this}}var nw=/[\t\f\n\r ,]+/;class ki{[m];[v];[A];[j]=!1;[U]={items:[],attributeValue:""};constructor(t,e,o){if(t!==h)throw TypeError("Illegal constructor");if(this[m]=e,this[j]=!!o.readOnly,this[v]=o.getAttribute,this[A]=o.setAttribute,t!==h)throw TypeError("Illegal constructor");let s=new fe(this,[ki]);return new Proxy(this,{get:(n,l)=>{if(l==="length"||l==="numberOfItems")return n[K]().length;if(l in n||typeof l==="symbol")return s.bind(l),n[l];let a=Number(l);if(!isNaN(a))return n[K]()[a]},set(n,l,a){if(s.bind(l),typeof l==="symbol")return n[l]=a,!0;let y=Number(l);if(isNaN(y))n[l]=a;return!0},deleteProperty(n,l){if(typeof l==="symbol")return delete n[l],!0;let a=Number(l);if(isNaN(a))delete n[l];return!0},ownKeys(n){return Object.keys(n[K]())},has(n,l){if(l in n)return!0;if(typeof l==="symbol")return!1;let a=Number(l);return!isNaN(a)&&a>=0&&a<n[K]().length},defineProperty(n,l,a){if(s.preventBinding(l),l in n)return Object.defineProperty(n,l,a),!0;return!1},getOwnPropertyDescriptor(n,l){if(l in n||typeof l==="symbol")return;let a=Number(l),y=n[K]();if(!isNaN(a)&&y[a])return{value:y[a],writable:!1,enumerable:!0,configurable:!0}}})}get length(){return this[K]().length}get numberOfItems(){return this[K]().length}[Symbol.iterator](){return this[K]().values()}clear(){this[U].attributeValue="",this[U].items=[],this[A]("")}initialize(t){if(this[j])throw new this[m].TypeError("Failed to execute 'initialize' on 'SVGStringList': The object is read-only.");if(arguments.length<1)throw new this[m].TypeError(`Failed to execute 'initialize' on 'SVGStringList': 1 arguments required, but only ${arguments.length} present.`);if(t=String(t),!t){this.clear();return}return this[A](t),t}getItem(t){let e=this[K]();if(typeof t==="number")return e[t]?e[t]:null;return t=Number(t),t=isNaN(t)?0:t,e[t]?e[t]:null}insertItemBefore(t,e){if(this[j])throw new this[m].TypeError("Failed to execute 'insertItemBefore' on 'SVGStringList': The object is read-only.");if(arguments.length<2)throw new this[m].TypeError(`Failed to execute 'insertItemBefore' on 'SVGStringList': 2 arguments required, but only ${arguments.length} present.`);if(t=String(t),!t)return t;let o=this[K](),s=o.indexOf(t);if(s!==-1)o.splice(s,1);if(e<0)e=0;else if(e>o.length)e=o.length;return o.splice(e,0,t),this[A](o.join(" ")),t}replaceItem(t,e){if(this[j])throw new this[m].TypeError("Failed to execute 'replaceItem' on 'SVGStringList': The object is read-only.");if(arguments.length<2)throw new this[m].TypeError(`Failed to execute 'replaceItem' on 'SVGStringList': 2 arguments required, but only ${arguments.length} present.`);if(t=String(t),!t)return this.removeItem(e);let o=this[K]();if(e<0)e=0;else if(e>=o.length)e=o.length-1;let s=o[e];return o[e]=t,this[A](o.join(" ")),s}removeItem(t){if(this[j])throw new this[m].TypeError("Failed to execute 'removeItem' on 'SVGStringList': The object is read-only.");if(arguments.length<1)throw new this[m].TypeError(`Failed to execute 'removeItem' on 'SVGStringList': 1 argument required, but only ${arguments.length} present.`);let e=this[K]();if(t=Number(t),isNaN(t))t=0;if(t>=e.length)throw new this[m].DOMException(`Failed to execute 'removeItem' on 'SVGStringList': The index provided (${t}) is greater than the maximum bound.`,w.indexSizeError);if(t<0)throw new this[m].DOMException(`Failed to execute 'removeItem' on 'SVGStringList': The index provided (${t}) is negative.`,w.indexSizeError);let o=e[t];return e.splice(t,1),this[A](e.join(" ")),o}appendItem(t){if(this[j])throw new this[m].TypeError("Failed to execute 'appendItem' on 'SVGStringList': The object is read-only.");if(arguments.length<1)throw new this[m].TypeError(`Failed to execute 'appendItem' on 'SVGStringList': 1 argument required, but only ${arguments.length} present.`);if(t=String(t),!t)return t;let e=this[K](),o=e.indexOf(t);if(o!==-1)e.splice(o,1);return e.push(t),this[A](e.join(" ")),t}[K](){let t=this[v]()??"",e=this[U];if(e.attributeValue===t)return e.items;let o=[],s=t.trim();if(s){for(let n of s.split(nw))if(!o.includes(n))o.push(n)}return e.attributeValue=t,e.items=o,o}}var lw=/([a-zA-Z0-9]+)\(([^)]+)\)/,aw=/[\s,]+/;class rr{[m];[v]=null;[A]=null;[I]=null;[j]=!1;constructor(t,e,o){if(t!==h)throw TypeError("Illegal constructor");if(this[m]=e,o)this[j]=!!o.readOnly,this[v]=o.getAttribute||null,this[A]=o.setAttribute||null}get a(){return this[Ne]().a}set a(t){if(this[j])return;let e=this[Ne]();e.a=t,this[gr](e)}get b(){return this[Ne]().b}set b(t){if(this[j])return;let e=this[Ne]();e.b=t,this[gr](e)}get c(){return this[Ne]().c}set c(t){if(this[j])return;let e=this[Ne]();e.c=t,this[gr](e)}get d(){return this[Ne]().d}set d(t){if(this[j])return;let e=this[Ne]();e.d=t,this[gr](e)}get e(){return this[Ne]().e}set e(t){if(this[j])return;let e=this[Ne]();e.e=t,this[gr](e)}get f(){return this[Ne]().f}set f(t){if(this[j])return;let e=this[Ne]();e.f=t,this[gr](e)}multiply(t){if(!(t instanceof rr))throw new this[m].TypeError("Failed to execute 'multiply' on 'SVGMatrix': parameter 1 is not of type 'SVGMatrix'.");let e=this[Ne](),o=new rr(h,this[m]);return e.multiplySelf(t[Ne]()),o[gr](e),o}translate(t=0,e=0){let o=this[Ne](),s=new rr(h,this[m]);return o.translateSelf(t,e),s[gr](o),s}scale(t){let e=this[Ne](),o=new rr(h,this[m]);return e.scaleSelf(t),o[gr](e),o}scaleNonUniform(t=1,e=1){let o=this[Ne](),s=new rr(h,this[m]);return o.scaleNonUniformSelf(t,e),s[gr](o),s}rotate(t){let e=this[Ne](),o=new rr(h,this[m]);return e.rotateSelf(t),o[gr](e),o}rotateFromVector(t=0,e=0){let o=this[Ne](),s=new rr(h,this[m]);return o.rotateFromVectorSelf(t,e),s[gr](o),s}skewX(t){let e=this[Ne](),o=new rr(h,this[m]);return e.skewXSelf(t),o[gr](e),o}skewY(t){let e=this[Ne](),o=new rr(h,this[m]);return e.skewYSelf(t),o[gr](e),o}flipX(){let t=this[Ne](),e=new rr(h,this[m]);return t.flipXSelf(),e[gr](t),e}flipY(){let t=this[Ne](),e=new rr(h,this[m]);return t.flipYSelf(),e[gr](t),e}inverse(){let t=this[Ne](),e=new rr(h,this[m]);return t.invertSelf(),e[gr](t),e}[Ne](){let t=this[v]?this[v]():this[I];if(!t)return new Ao;let e=t.match(lw);if(!e)return new Ao;let o=[];for(let s of e[2].trim().split(aw)){let n=Number(s);if(isNaN(n))throw new this[m].TypeError(`Failed to parse transform attribute: Expected number, but got "${s}" in "${t}".`);o.push(n)}switch(e[1]){case"matrix":if(o.length!==6)throw new this[m].TypeError(`Failed to parse transform attribute: Expected 6 parameters in "${t}".`);return Ao[Fl](t);case"scale":case"translate":if(o.length!==1&&o.length!==2)throw new this[m].TypeError(`Failed to parse transform attribute: Expected 1 or 2 parameters in "${t}".`);return Ao[Fl](t);case"skewY":case"skewX":if(o.length!==1)throw new this[m].TypeError(`Failed to parse transform attribute: Expected 1 parameter in "${t}".`);return Ao[Fl](t);case"rotate":let s=new Ao;if(o.length!==1&&o.length!==3)throw new this[m].TypeError(`Failed to parse transform attribute: Expected 1 or 3 parameters in "${t}".`);let[n,l,a]=o;if(l||a)s.translateSelf(l,a);let y=n*Math.PI/180;if(s.multiplySelf(new Ao([Math.cos(y),Math.sin(y),-Math.sin(y),Math.cos(y),0,0])),l||a)s.translateSelf(-l,-a);return s;default:throw new this[m].TypeError(`Failed to parse transform attribute: Unknown transformation "${t}".`)}}[gr](t){if(this[I]=t.toString().replace(/, /g," "),this[A])this[A](this[I])}}var Pg;(function(t){t[t.unknown=0]="unknown",t[t.matrix=1]="matrix",t[t.translate=2]="translate",t[t.scale=3]="scale",t[t.rotate=4]="rotate",t[t.skewX=5]="skewX",t[t.skewY=6]="skewY"})(Pg||(Pg={}));var wo=Pg;var MS=/([a-zA-Z0-9]+)\(([^)]+)\)/,mw=/[\s,]+/;class jo{static SVG_TRANSFORM_UNKNOWN=wo.unknown;static SVG_TRANSFORM_MATRIX=wo.matrix;static SVG_TRANSFORM_TRANSLATE=wo.translate;static SVG_TRANSFORM_SCALE=wo.scale;static SVG_TRANSFORM_ROTATE=wo.rotate;static SVG_TRANSFORM_SKEWX=wo.skewX;static SVG_TRANSFORM_SKEWY=wo.skewY;[m];[v]=null;[A]=null;[I]=null;[j]=!1;[Ys]=null;constructor(t,e,o){if(t!==h)throw TypeError("Illegal constructor");if(this[m]=e,o)this[j]=!!o.readOnly,this[v]=o.getAttribute||null,this[A]=o.setAttribute||null}get type(){let e=(this[v]?this[v]():this[I])?.match(MS);if(!e)return wo.unknown;switch(e[1]){case"matrix":return wo.matrix;case"translate":return wo.translate;case"rotate":return wo.rotate;case"scale":return wo.scale;case"skewX":return wo.skewX;case"skewY":return wo.skewY}return 0}get angle(){let e=(this[v]?this[v]():this[I])?.match(MS);if(!e)return 0;let o=parseFloat(e[2].trim().split(mw)[0]);if(isNaN(o))return 0;switch(e[1]){case"rotate":case"skewX":case"skewY":return o}return 0}get matrix(){if(!this[Ys])this[Ys]=new rr(h,this[m],{readOnly:this[j],getAttribute:()=>{if(this[v])return this[v]();return this[I]},setAttribute:(t)=>{if(this[I]=t,this[A]){this[A](t);return}}});return this[Ys]}setMatrix(t){if(!(t instanceof rr))throw TypeError('Failed to set the "matrix" property on "SVGTransform": The provided value is not of type "SVGMatrix".');if(this[j])return;if(this[Ys])this[Ys][v]=null,this[Ys][A]=null;if(t[v]=()=>{if(this[v])return this[v]();return this[I]},t[A]=(e)=>{if(this[I]=e,this[A]){this[A](e);return}},this[Ys]=t,t[I]!==this[I]){if(this[I]=t[I],this[A])this[A](this[I]||"")}}setTranslate(t,e){if(arguments.length<2)throw TypeError(`Failed to execute 'setTranslate' on 'SVGTransform': 2 arguments required, but only ${arguments.length} present.`);if(t=Number(t),e=Number(e),isNaN(t)||isNaN(e))throw TypeError("Failed to execute 'setTranslate' on 'SVGTransform': The provided float value is non-finite.");if(this[j])return;if(this[I]=`translate(${t} ${e})`,this[A])this[A](this[I])}setScale(t,e){if(arguments.length<2)throw TypeError(`Failed to execute 'setScale' on 'SVGTransform': 2 arguments required, but only ${arguments.length} present.`);if(t=Number(t),e=Number(e),isNaN(t)||isNaN(e))throw TypeError("Failed to execute 'setScale' on 'SVGTransform': The provided float value is non-finite.");if(this[j])return;if(this[I]=`scale(${t} ${e})`,this[A])this[A](this[I])}setRotate(t,e,o){if(arguments.length<3)throw TypeError(`Failed to execute 'setRotate' on 'SVGTransform': 3 arguments required, but only ${arguments.length} present.`);if(t=Number(t),e=Number(e),o=Number(o),isNaN(t)||isNaN(e)||isNaN(o))throw TypeError("Failed to execute 'setRotate' on 'SVGTransform': The provided float value is non-finite.");if(this[j])return;if(this[I]=`rotate(${t} ${e} ${o})`,this[A])this[A](this[I])}setSkewX(t){if(arguments.length<1)throw TypeError(`Failed to execute 'setSkewX' on 'SVGTransform': 1 arguments required, but only ${arguments.length} present.`);if(t=Number(t),isNaN(t))throw TypeError("Failed to execute 'setSkewX' on 'SVGTransform': The provided float value is non-finite.");if(this[j])return;if(this[I]=`skewX(${t})`,this[A])this[A](this[I])}setSkewY(t){if(arguments.length<1)throw TypeError(`Failed to execute 'setSkewY' on 'SVGTransform': 1 arguments required, but only ${arguments.length} present.`);if(t=Number(t),isNaN(t))throw TypeError("Failed to execute 'setSkewY' on 'SVGTransform': The provided float value is non-finite.");if(this[j])return;if(this[I]=`skewY(${t})`,this[A])this[A](this[I])}}var yw=/([a-zA-Z0-9]+)\(([^)]+)\)/gm,gn="matrix(1 0 0 1 0 0)";class bl{[m];[v];[A];[j]=!1;[U]={items:[],attributeValue:""};constructor(t,e,o){if(t!==h)throw TypeError("Illegal constructor");this[m]=e,this[j]=!!o.readOnly,this[v]=o.getAttribute,this[A]=o.setAttribute;let s=new fe(this,[bl]);return new Proxy(this,{get:(n,l)=>{if(l==="length"||l==="numberOfItems")return n[K]().length;if(l in n||typeof l==="symbol")return s.bind(l),n[l];let a=Number(l);if(!isNaN(a))return n[K]()[a]},set(n,l,a){if(s.bind(l),typeof l==="symbol")return n[l]=a,!0;let y=Number(l);if(isNaN(y))n[l]=a;return!0},deleteProperty(n,l){if(typeof l==="symbol")return delete n[l],!0;let a=Number(l);if(isNaN(a))delete n[l];return!0},ownKeys(n){return Object.keys(n[K]())},has(n,l){if(l in n)return!0;if(typeof l==="symbol")return!1;let a=Number(l);return!isNaN(a)&&a>=0&&a<n[K]().length},defineProperty(n,l,a){if(s.preventBinding(l),l in n)return Object.defineProperty(n,l,a),!0;return!1},getOwnPropertyDescriptor(n,l){if(l in n||typeof l==="symbol")return;let a=Number(l),y=n[K]();if(!isNaN(a)&&y[a])return{value:y[a],writable:!1,enumerable:!0,configurable:!0}}})}get length(){return this[K]().length}get numberOfItems(){return this[K]().length}[Symbol.iterator](){return this[K]().values()}clear(){if(this[j])throw new this[m].TypeError("Failed to execute 'clear' on 'SVGTransformList': The object is read-only.");for(let t of this[U].items)t[v]=null,t[A]=null;this[U].items=[],this[U].attributeValue="",this[A]("")}initialize(t){if(this[j])throw new this[m].TypeError("Failed to execute 'initialize' on 'SVGTransformList': The object is read-only.");if(arguments.length<1)throw new this[m].TypeError(`Failed to execute 'initialize' on 'SVGTransformList': 1 arguments required, but only ${arguments.length} present.`);if(!(t instanceof jo))throw new this[m].TypeError("Failed to execute 'appendItem' on 'SVGTransformList': parameter 1 is not of type 'SVGTransform'.");for(let e of this[U].items)e[v]=null,e[A]=null;return t[v]=()=>t[I],t[A]=()=>{this[U].attributeValue=this[K]().map((e)=>e[I]||gn).join(" "),this[A](this[U].attributeValue)},this[U].items=[t],this[U].attributeValue=t[I],this[A](t[I]||""),t}getItem(t){let e=this[K]();if(typeof t==="number")return e[t]?e[t]:null;return t=Number(t),t=isNaN(t)?0:t,e[t]?e[t]:null}insertItemBefore(t,e){if(this[j])throw new this[m].TypeError("Failed to execute 'insertItemBefore' on 'SVGTransformList': The object is read-only.");if(arguments.length<2)throw new this[m].TypeError(`Failed to execute 'insertItemBefore' on 'SVGTransformList': 2 arguments required, but only ${arguments.length} present.`);if(!(t instanceof jo))throw new this[m].TypeError("Failed to execute 'insertItemBefore' on 'SVGTransformList': parameter 1 is not of type 'SVGTransform'.");let o=this[K](),s=o.indexOf(t);if(s!==-1)o.splice(s,1);if(e<0)e=0;else if(e>o.length)e=o.length;return o.splice(e,0,t),t[v]=()=>t[I],t[A]=()=>{this[U].attributeValue=this[K]().map((n)=>n[I]||gn).join(" "),this[A](this[U].attributeValue)},this[U].attributeValue=o.map((n)=>n[I]||gn).join(" "),this[A](this[U].attributeValue),t}replaceItem(t,e){if(this[j])throw new this[m].TypeError("Failed to execute 'replaceItem' on 'SVGTransformList': The object is read-only.");if(arguments.length<2)throw new this[m].TypeError(`Failed to execute 'replaceItem' on 'SVGTransformList': 2 arguments required, but only ${arguments.length} present.`);if(!(t instanceof jo))throw new this[m].TypeError("Failed to execute 'replaceItem' on 'SVGTransformList': parameter 1 is not of type 'SVGTransform'.");let o=this[K](),s=o.indexOf(t);if(s===e)return t;if(s!==-1)o.splice(s,1);if(e<0)e=0;else if(e>=o.length)e=o.length-1;if(o[e])o[e][v]=null,o[e][A]=null;let n=o[e];return o[e]=t,t[v]=()=>t[I],t[A]=()=>{this[U].attributeValue=this[K]().map((l)=>l[I]||gn).join(" "),this[A](this[U].attributeValue)},this[U].attributeValue=o.map((l)=>l[I]||gn).join(" "),this[A](this[U].attributeValue),n}removeItem(t){if(this[j])throw new this[m].TypeError("Failed to execute 'removeItem' on 'SVGTransformList': The object is read-only.");if(arguments.length<1)throw new this[m].TypeError(`Failed to execute 'removeItem' on 'SVGTransformList': 1 argument required, but only ${arguments.length} present.`);let e=this[K]();if(t=Number(t),isNaN(t))t=0;if(t>=e.length)throw new this[m].DOMException(`Failed to execute 'removeItem' on 'SVGTransformList': The index provided (${t}) is greater than the maximum bound.`,w.indexSizeError);if(t<0)throw new this[m].DOMException(`Failed to execute 'removeItem' on 'SVGTransformList': The index provided (${t}) is negative.`,w.indexSizeError);let o=e[t];if(o)o[v]=null,o[A]=null;return e.splice(t,1),this[U].attributeValue=e.map((s)=>s[I]||gn).join(" "),this[A](this[U].attributeValue),o}appendItem(t){if(this[j])throw new this[m].TypeError("Failed to execute 'appendItem' on 'SVGTransformList': The object is read-only.");if(arguments.length<1)throw new this[m].TypeError(`Failed to execute 'appendItem' on 'SVGTransformList': 1 argument required, but only ${arguments.length} present.`);if(!(t instanceof jo))throw new this[m].TypeError("Failed to execute 'appendItem' on 'SVGTransformList': parameter 1 is not of type 'SVGTransform'.");let e=this[K](),o=e.indexOf(t);if(o!==-1)e.splice(o,1);return e.push(t),t[v]=()=>t[I],t[A]=()=>{this[U].attributeValue=this[K]().map((s)=>s[I]||gn).join(" "),this[A](this[U].attributeValue)},this[U].attributeValue=e.map((s)=>s[I]||gn).join(" "),this[A](this[U].attributeValue),t}[K](){let t=this[v]()??"",e=this[U];if(e.attributeValue===t)return e.items;if(e.items.length)for(let n of e.items)n[v]=null,n[A]=null;let o=[],s=t.trim();if(s){let n=new RegExp(yw),l;while(l=n.exec(s)){let a=new jo(h,this[m],{readOnly:this[j],getAttribute:()=>a[I],setAttribute:()=>{this[U].attributeValue=this[K]().map((y)=>y[I]||gn).join(" "),this[A](this[U].attributeValue)}});a[I]=`${l[1]}(${l[2]})`,o.push(a)}}return e.attributeValue=t,e.items=o,o}}class vs{[m];[v];[A];[se]=null;[ne]=null;constructor(t,e,o){if(t!==h)throw TypeError("Illegal constructor");this[m]=e,this[v]=o.getAttribute,this[A]=o.setAttribute}get animVal(){if(!this[ne])this[ne]=new bl(h,this[m],{readOnly:!0,getAttribute:this[v],setAttribute:()=>{}});return this[ne]}set animVal(t){}get baseVal(){if(!this[se])this[se]=new bl(h,this[m],{getAttribute:this[v],setAttribute:this[A]});return this[se]}set baseVal(t){}}class Ae extends et{[Yi]=null;[Ki]=null;[_m]=null;get oncopy(){return S.getEventListener(this,"oncopy")}set oncopy(t){this[p].set("oncopy",t)}get oncut(){return S.getEventListener(this,"oncut")}set oncut(t){this[p].set("oncut",t)}get onpaste(){return S.getEventListener(this,"onpaste")}set onpaste(t){this[p].set("onpaste",t)}get requiredExtensions(){if(!this[Yi])this[Yi]=new ki(h,this[m],{getAttribute:()=>this.getAttribute("requiredExtensions"),setAttribute:(t)=>this.setAttribute("requiredExtensions",t)});return this[Yi]}get systemLanguage(){if(!this[Ki])this[Ki]=new ki(h,this[m],{getAttribute:()=>this.getAttribute("systemLanguage"),setAttribute:(t)=>this.setAttribute("systemLanguage",t)});return this[Ki]}get transform(){if(!this[_m])this[_m]=new vs(h,this[m],{getAttribute:()=>this.getAttribute("transform"),setAttribute:(t)=>this.setAttribute("transform",t)});return this[_m]}getBBox(){return new li}getCTM(){return new Ao}getScreenCTM(){return new Ao}}class Mi{[m];[v]=null;[A]=null;[I]=null;[j]=!1;constructor(t,e,o){if(t!==h)throw TypeError("Illegal constructor");if(this[m]=e,o)this[j]=!!o.readOnly,this[v]=o.getAttribute||null,this[A]=o.setAttribute||null}get x(){let t=this[v]?this[v]():this[I];if(!t)return 0;let e=t.split(/\s+/),o=Number(e[0]);return isNaN(o)?0:o}set x(t){if(this[j])throw new this[m].TypeError("Failed to set the 'x' property on 'SVGRect': The object is read-only.");if(this[I]=`${String(typeof t==="number"?t:parseFloat(t))} ${this.y} ${this.width} ${this.height}`,this[A])this[A](this[I])}get y(){let t=this[v]?this[v]():this[I];if(!t)return 0;let e=t.split(/\s+/),o=Number(e[1]);return isNaN(o)?0:o}set y(t){if(this[j])throw new this[m].TypeError("Failed to set the 'y' property on 'SVGRect': The object is read-only.");if(this[I]=`${this.x} ${String(typeof t==="number"?t:parseFloat(t))} ${this.width} ${this.height}`,this[A])this[A](this[I])}get width(){let t=this[v]?this[v]():this[I];if(!t)return 0;let e=t.split(/\s+/),o=Number(e[2]);return isNaN(o)?0:o}set width(t){if(this[j])throw new this[m].TypeError("Failed to set the 'width' property on 'SVGRect': The object is read-only.");if(this[I]=`${this.x} ${this.y} ${String(typeof t==="number"?t:parseFloat(t))} ${this.height}`,this[A])this[A](this[I])}get height(){let t=this[v]?this[v]():this[I];if(!t)return 0;let e=t.split(/\s+/),o=Number(e[3]);return isNaN(o)?0:o}set height(t){if(this[j])throw new this[m].TypeError("Failed to set the 'height' property on 'SVGRect': The object is read-only.");if(this[I]=`${this.x} ${this.y} ${this.width} ${String(typeof t==="number"?t:parseFloat(t))}`,this[A])this[A](this[I])}}var IS=/[\t\f\n\r, ]+/;class pr{[m];[v]=null;[A]=null;[I]=null;[j]=!1;constructor(t,e,o){if(t!==h)throw TypeError("Illegal constructor");if(this[m]=e,o)this[j]=!!o.readOnly,this[v]=o.getAttribute||null,this[A]=o.setAttribute||null}get x(){let e=((this[v]?this[v]():this[I])||"").split(IS);return e[0]?parseFloat(e[0]):0}set x(t){if(this[j])throw new this[m].TypeError("Failed to set the 'x' property on 'SVGPoint': The object is read-only.");if(this[I]=`${t} ${this.y}`,this[A])this[A](this[I])}get y(){let e=((this[v]?this[v]():this[I])||"").split(IS);return e[1]?parseFloat(e[1]):0}set y(t){if(this[j])throw new this[m].TypeError("Failed to set the 'y' property on 'SVGPoint': The object is read-only.");if(this[I]=`${this.x} ${t}`,this[A])this[A](this[I])}}var Ag;(function(t){t[t.unknown=0]="unknown",t[t.number=1]="number",t[t.percentage=2]="percentage",t[t.ems=3]="ems",t[t.exs=4]="exs",t[t.px=5]="px",t[t.cm=6]="cm",t[t.mm=7]="mm",t[t.in=8]="in",t[t.pt=9]="pt",t[t.pc=10]="pc"})(Ag||(Ag={}));var wt=Ag;var RS=/^(\d+|\d+\.\d+)(px|em|ex|cm|mm|in|pt|pc|%|)$/;class Ii{static SVG_LENGTHTYPE_UNKNOWN=wt.unknown;static SVG_LENGTHTYPE_NUMBER=wt.number;static SVG_LENGTHTYPE_PERCENTAGE=wt.percentage;static SVG_LENGTHTYPE_EMS=wt.ems;static SVG_LENGTHTYPE_EXS=wt.exs;static SVG_LENGTHTYPE_PX=wt.px;static SVG_LENGTHTYPE_CM=wt.cm;static SVG_LENGTHTYPE_MM=wt.mm;static SVG_LENGTHTYPE_IN=wt.in;static SVG_LENGTHTYPE_PT=wt.pt;static SVG_LENGTHTYPE_PC=wt.pc;[m];[v]=null;[A]=null;[I]=null;[j]=!1;constructor(t,e,o){if(t!==h)throw TypeError("Illegal constructor");if(this[m]=e,o)this[j]=!!o.readOnly,this[v]=o.getAttribute||null,this[A]=o.setAttribute||null}get unitType(){let e=(this[v]?this[v]()||"":this[I]||"").match(RS);if(!e)return wt.unknown;if(isNaN(parseFloat(e[1])))return wt.unknown;switch(e[2]){case"":return wt.number;case"px":return wt.px;case"cm":return wt.cm;case"mm":return wt.mm;case"in":return wt.in;case"pt":return wt.pt;case"pc":return wt.pc;case"em":case"ex":case"%":throw new this[m].TypeError("Failed to execute 'value' on 'SVGLength': Could not resolve relative length.");default:return wt.unknown}}get value(){let e=(this[v]?this[v]()||"":this[I]||"").match(RS);if(!e)return 0;let o=parseFloat(e[1]);if(isNaN(o))return 0;switch(e[2]){case"":return o;case"px":return o;case"cm":return o/2.54*96;case"mm":return o/25.4*96;case"in":return o*96;case"pt":return o*72;case"pc":return o*6;case"em":case"ex":case"%":throw new this[m].TypeError("Failed to execute 'value' on 'SVGLength': Could not resolve relative length.");default:return 0}}set value(t){if(this[j])throw new this[m].TypeError("Failed to set the 'value' property on 'SVGLength': The object is read-only.");if(t=typeof t!=="number"?parseFloat(String(t)):t,isNaN(t))throw new this[m].TypeError("Failed to set the 'value' property on 'SVGLength': The provided float value is non-finite.");let e="",o=t;switch(this.unitType){case wt.number:o=t,e="";break;case wt.px:o=t,e="px";break;case wt.cm:o=t/96*2.54,e="cm";break;case wt.mm:o=t/96*25.4,e="mm";break;case wt.in:o=t/96,e="in";break;case wt.pt:o=t/72,e="pt";break;case wt.pc:o=t/6,e="pc";break;case wt.percentage:case wt.ems:case wt.exs:throw new this[m].TypeError("Failed to set the 'value' property on 'SVGLength': Could not resolve relative length.");default:break}if(this[I]=String(o)+e,this[A])this[A](this[I])}get valueAsString(){return this[v]?this[v]()||"0":this[I]||"0"}get valueInSpecifiedUnits(){let t=this.valueAsString;return parseFloat(t)||0}newValueSpecifiedUnits(t,e){if(this[j])throw new this[m].TypeError("Failed to execute 'newValueSpecifiedUnits' on 'SVGLength': The object is read-only.");if(typeof t!=="number")throw new this[m].TypeError("Failed to execute 'newValueSpecifiedUnits' on 'SVGLength': parameter 1 ('unitType') is not of type 'number'.");if(e=typeof e!=="number"?parseFloat(String(e)):e,isNaN(e))throw new this[m].TypeError("Failed to execute 'newValueSpecifiedUnits' on 'SVGLength': The provided float value is non-finite.");let o="";switch(t){case wt.number:o="";break;case wt.px:o="px";break;case wt.cm:o="cm";break;case wt.mm:o="mm";break;case wt.in:o="in";break;case wt.pt:o="pt";break;case wt.pc:o="pc";break;case wt.ems:case wt.exs:case wt.percentage:throw new this[m].TypeError("Failed to execute 'newValueSpecifiedUnits' on 'SVGLength': Could not resolve relative length.");default:break}if(this[I]=String(e)+o,this[A])this[A](this[I])}convertToSpecifiedUnits(t){if(this[j])throw new this[m].TypeError("Failed to execute 'convertToSpecifiedUnits' on 'SVGLength': The object is read-only.");if(typeof t!=="number")throw new this[m].TypeError("Failed to execute 'convertToSpecifiedUnits' on 'SVGLength': parameter 1 ('unitType') is not of type 'number'.");let e=this.value,o="";switch(t){case wt.number:o="";break;case wt.px:o="px";break;case wt.cm:e=e/96*2.54,o="cm";break;case wt.mm:e=e/96*25.4,o="mm";break;case wt.in:e=e/96,o="in";break;case wt.pt:e=e/72,o="pt";break;case wt.pc:e=e/6,o="pc";break;case wt.percentage:case wt.ems:case wt.exs:throw new this[m].TypeError("Failed to execute 'convertToSpecifiedUnits' on 'SVGLength': Could not resolve relative length.");default:break}if(this[I]=String(e)+o,this[A])this[A](this[I])}}var wg;(function(t){t[t.unknown=0]="unknown",t[t.unspecified=1]="unspecified",t[t.deg=2]="deg",t[t.rad=3]="rad",t[t.grad=4]="grad"})(wg||(wg={}));var we=wg;var FS=/^(\d+|\d+\.\d+)(deg|rad|grad|turn|)$/;class Sn{static SVG_ANGLETYPE_UNKNOWN=we.unknown;static SVG_ANGLETYPE_UNSPECIFIED=we.unspecified;static SVG_ANGLETYPE_DEG=we.deg;static SVG_ANGLETYPE_RAD=we.rad;static SVG_ANGLETYPE_GRAD=we.grad;[m];[v]=null;[A]=null;[I]="";[j]=!1;constructor(t,e,o){if(t!==h)throw TypeError("Illegal constructor");if(this[m]=e,o)this[j]=!!o.readOnly,this[v]=o.getAttribute||null,this[A]=o.setAttribute||null}get unitType(){let e=(this[v]?this[v]():this[I])?.match(FS);if(!e)return we.unknown;if(isNaN(parseFloat(e[1])))return we.unknown;switch(e[2]){case"":return we.unspecified;case"deg":return we.deg;case"rad":return we.rad;case"grad":return we.grad;case"turn":return we.unknown;default:return we.unspecified}}get value(){let e=(this[v]?this[v]():this[I])?.match(FS);if(!e)return 0;let o=parseFloat(e[1]);if(isNaN(o))return 0;switch(e[2]){case"":return o;case"deg":return o;case"rad":return o*(180/Math.PI);case"grad":return o*0.9;case"turn":return o*360;default:return o}}set value(t){if(this[j])throw new this[m].TypeError("Failed to set the 'value' property on 'SVGAngle': The object is read-only.");if(t=typeof t!=="number"?parseFloat(String(t)):t,isNaN(t))throw new this[m].TypeError("Failed to set the 'value' property on 'SVGAngle': The provided float value is non-finite.");let e="",o=t;switch(this.unitType){case we.unspecified:o=t,e="";break;case we.deg:o=t,e="deg";break;case we.rad:o=t/(180/Math.PI),e="rad";break;case we.grad:o=t/0.9,e="grad";break;case we.unknown:o=t/360,e="turn";default:break}if(this[I]=String(o)+e,this[A])this[A](this[I])}get valueAsString(){return this[v]?this[v]()||"0":this[I]||"0"}get valueInSpecifiedUnits(){let t=this.valueAsString;return parseFloat(t)||0}newValueSpecifiedUnits(t,e){if(this[j])throw new this[m].TypeError("Failed to execute 'newValueSpecifiedUnits' on 'SVGAngle': The object is read-only.");if(typeof t!=="number")throw new this[m].TypeError("Failed to execute 'newValueSpecifiedUnits' on 'SVGAngle': parameter 1 ('unitType') is not of type 'number'.");if(e=typeof e!=="number"?parseFloat(e):e,isNaN(e))throw new this[m].TypeError("Failed to execute 'newValueSpecifiedUnits' on 'SVGAngle': The provided float value is non-finite.");let o="";switch(t){case we.unspecified:o="";break;case we.deg:o="deg";break;case we.rad:o="rad";break;case we.grad:o="grad";break;case we.unknown:o="turn";break;default:break}if(this[I]=String(e)+o,this[A])this[A](this[I])}convertToSpecifiedUnits(t){if(this[j])throw new this[m].TypeError("Failed to execute 'convertToSpecifiedUnits' on 'SVGAngle': The object is read-only.");if(typeof t!=="number")throw new this[m].TypeError("Failed to execute 'convertToSpecifiedUnits' on 'SVGAngle': parameter 1 ('unitType') is not of type 'number'.");let e=this.value,o="";switch(t){case we.unspecified:o="";break;case we.deg:o="deg";break;case we.rad:o="rad",e=e/(180/Math.PI);break;case we.grad:o="grad",e=e/0.9;break;case we.unknown:o="turn",e=e/360;break;default:break}if(this[I]=String(e)+o,this[A])this[A](this[I])}}class Ri{[m];[v]=null;[A]=null;[I]=null;[j]=!1;constructor(t,e,o){if(t!==h)throw TypeError("Illegal constructor");if(this[m]=e,o)this[j]=!!o.readOnly,this[v]=o.getAttribute||null,this[A]=o.setAttribute||null}get value(){let t=this[v]?this[v]():this[I];return parseFloat(t||"0")}set value(t){if(this[j])throw TypeError("Failed to set the 'value' property on 'SVGNumber': The object is read-only.");let e=typeof t!=="number"?parseFloat(String(t)):t;if(isNaN(e))throw TypeError("Failed to set the 'value' property on 'SVGNumber': The provided value is not a number.");if(this[I]=String(t),this[A])this[A](this[I]||"")}}class gl{[m];[v];[A];[se]=null;[ne]=null;constructor(t,e,o){if(t!==h)throw TypeError("Illegal constructor");this[m]=e,this[v]=o.getAttribute,this[A]=o.setAttribute}get animVal(){if(!this[ne])this[ne]=new Mi(h,this[m],{readOnly:!0,getAttribute:this[v]});return this[ne]}set animVal(t){}get baseVal(){if(!this[se])this[se]=new Mi(h,this[m],{getAttribute:this[v],setAttribute:this[A]});return this[se]}set baseVal(t){}}var Eg;(function(t){t[t.unknown=0]="unknown",t[t.meet=1]="meet",t[t.slice=2]="slice"})(Eg||(Eg={}));var fn=Eg;var xg;(function(t){t[t.unknown=0]="unknown",t[t.none=1]="none",t[t.xMinYMin=2]="xMinYMin",t[t.xMidYMin=3]="xMidYMin",t[t.xMaxYMin=4]="xMaxYMin",t[t.xMinYMid=5]="xMinYMid",t[t.xMidYMid=6]="xMidYMid",t[t.xMaxYMid=7]="xMaxYMid",t[t.xMinYMax=8]="xMinYMax",t[t.xMidYMax=9]="xMidYMax",t[t.xMaxYMax=10]="xMaxYMax"})(xg||(xg={}));var Ur=xg;var uh=Object.values(Ur);uh.length=uh.indexOf(0);var Bc=Object.values(fn);Bc.length=Bc.indexOf(0);class Sa{static SVG_MEETORSLICE_UNKNOWN=fn.unknown;static SVG_MEETORSLICE_MEET=fn.meet;static SVG_MEETORSLICE_SLICE=fn.slice;static SVG_PRESERVEASPECTRATIO_UNKNOWN=Ur.unknown;static SVG_PRESERVEASPECTRATIO_NONE=Ur.none;static SVG_PRESERVEASPECTRATIO_XMINYMIN=Ur.xMinYMin;static SVG_PRESERVEASPECTRATIO_XMIDYMIN=Ur.xMidYMin;static SVG_PRESERVEASPECTRATIO_XMAXYMIN=Ur.xMaxYMin;static SVG_PRESERVEASPECTRATIO_XMINYMID=Ur.xMinYMid;static SVG_PRESERVEASPECTRATIO_XMIDYMID=Ur.xMidYMid;static SVG_PRESERVEASPECTRATIO_XMAXYMID=Ur.xMaxYMid;static SVG_PRESERVEASPECTRATIO_XMINYMAX=Ur.xMinYMax;static SVG_PRESERVEASPECTRATIO_XMIDYMAX=Ur.xMidYMax;static SVG_PRESERVEASPECTRATIO_XMAXYMAX=Ur.xMaxYMax;[m];[v]=null;[A]=null;[I]=null;[j]=!1;constructor(t,e,o){if(t!==h)throw TypeError("Illegal constructor");if(this[m]=e,o)this[j]=!!o.readOnly,this[v]=o.getAttribute||null,this[A]=o.setAttribute||null}get align(){let t=this[v]?this[v]():this[I];if(!t)return Ur.xMidYMid;let e=t.split(/\s+/)[0];if(Ur[e]===void 0)return Ur.xMidYMid;return Ur[e]}set align(t){if(this[j])throw new this[m].TypeError("Failed to set the 'align' property on 'SVGPreserveAspectRatio': The object is read-only.");let e=Number(t);if(isNaN(e)||e<1||e>uh.length)throw new this[m].TypeError("Failed to set the 'align' property on 'SVGPreserveAspectRatio': The alignment provided is invalid.");if(this[I]=`${uh[e]} ${Bc[this.meetOrSlice]}`,this[A])this[A](this[I])}get meetOrSlice(){let t=this[v]?this[v]():this[I];if(!t)return fn.meet;let e=t.split(/\s+/)[1];if(!e||fn[e]===void 0)return fn.meet;return fn[e]}set meetOrSlice(t){if(this[j])throw new this[m].TypeError("Failed to set the 'meetOrSlice' property on 'SVGPreserveAspectRatio': The object is read-only.");let e=Number(t);if(isNaN(e)||e<1||e>2)throw new this[m].TypeError("Failed to set the 'meetOrSlice' property on 'SVGPreserveAspectRatio': The meetOrSlice provided is invalid.");if(this[I]=`${uh[this.align]} ${Bc[e]}`,this[A])this[A](this[I])}}class yi{[m];[v];[A];[se]=null;[ne]=null;constructor(t,e,o){if(t!==h)throw TypeError("Illegal constructor");this[m]=e,this[v]=o.getAttribute,this[A]=o.setAttribute}get animVal(){if(!this[ne])this[ne]=new Sa(h,this[m],{readOnly:!0,getAttribute:this[v]});return this[ne]}set animVal(t){}get baseVal(){if(!this[se])this[se]=new Sa(h,this[m],{getAttribute:this[v],setAttribute:this[A]});return this[se]}set baseVal(t){}}class L{[m];[v];[A];[se]=null;[ne]=null;constructor(t,e,o){if(t!==h)throw TypeError("Illegal constructor");this[m]=e,this[v]=o.getAttribute,this[A]=o.setAttribute}get animVal(){if(!this[ne])this[ne]=new Ii(h,this[m],{readOnly:!0,getAttribute:this[v]});return this[ne]}set animVal(t){}get baseVal(){if(!this[se])this[se]=new Ii(h,this[m],{getAttribute:this[v],setAttribute:this[A]});return this[se]}set baseVal(t){}}class hh extends Ae{[ar]=null;[k]=null;[M]=null;[V]=null;[F]=null;[Qh]=1;[Qi]=null;get onafterprint(){return S.getEventListener(this,"onafterprint")}set onafterprint(t){this[p].set("onafterprint",t)}get onbeforeprint(){return S.getEventListener(this,"onbeforeprint")}set onbeforeprint(t){this[p].set("onbeforeprint",t)}get onbeforeunload(){return S.getEventListener(this,"onbeforeunload")}set onbeforeunload(t){this[p].set("onbeforeunload",t)}get ongamepadconnected(){return S.getEventListener(this,"ongamepadconnected")}set ongamepadconnected(t){this[p].set("ongamepadconnected",t)}get ongamepaddisconnected(){return S.getEventListener(this,"ongamepaddisconnected")}set ongamepaddisconnected(t){this[p].set("ongamepaddisconnected",t)}get onhashchange(){return S.getEventListener(this,"onhashchange")}set onhashchange(t){this[p].set("onhashchange",t)}get onlanguagechange(){return S.getEventListener(this,"onlanguagechange")}set onlanguagechange(t){this[p].set("onlanguagechange",t)}get onmessage(){return S.getEventListener(this,"onmessage")}set onmessage(t){this[p].set("onmessage",t)}get onmessageerror(){return S.getEventListener(this,"onmessageerror")}set onmessageerror(t){this[p].set("onmessageerror",t)}get onoffline(){return S.getEventListener(this,"onoffline")}set onoffline(t){this[p].set("onoffline",t)}get ononline(){return S.getEventListener(this,"ononline")}set ononline(t){this[p].set("ononline",t)}get onpagehide(){return S.getEventListener(this,"onpagehide")}set onpagehide(t){this[p].set("onpagehide",t)}get onpageshow(){return S.getEventListener(this,"onpageshow")}set onpageshow(t){this[p].set("onpageshow",t)}get onpopstate(){return S.getEventListener(this,"onpopstate")}set onpopstate(t){this[p].set("onpopstate",t)}get onrejectionhandled(){return S.getEventListener(this,"onrejectionhandled")}set onrejectionhandled(t){this[p].set("onrejectionhandled",t)}get onstorage(){return S.getEventListener(this,"onstorage")}set onstorage(t){this[p].set("onstorage",t)}get onunhandledrejection(){return S.getEventListener(this,"onunhandledrejection")}set onunhandledrejection(t){this[p].set("onunhandledrejection",t)}get onunload(){return S.getEventListener(this,"onunload")}set onunload(t){this[p].set("onunload",t)}get preserveAspectRatio(){if(!this[ar])this[ar]=new yi(h,this[m],{getAttribute:()=>this.getAttribute("preserveAspectRatio"),setAttribute:(t)=>this.setAttribute("preserveAspectRatio",t)});return this[ar]}get height(){if(!this[F])this[F]=new L(h,this[m],{getAttribute:()=>this.getAttribute("height"),setAttribute:(t)=>this.setAttribute("height",t)});return this[F]}get width(){if(!this[V])this[V]=new L(h,this[m],{getAttribute:()=>this.getAttribute("width"),setAttribute:(t)=>this.setAttribute("width",t)});return this[V]}get x(){if(!this[k])this[k]=new L(h,this[m],{getAttribute:()=>this.getAttribute("x"),setAttribute:(t)=>this.setAttribute("x",t)});return this[k]}get y(){if(!this[M])this[M]=new L(h,this[m],{getAttribute:()=>this.getAttribute("y"),setAttribute:(t)=>this.setAttribute("y",t)});return this[M]}get currentScale(){return this[Qh]}set currentScale(t){let e=typeof t!=="number"?parseFloat(String(t)):t;if(isNaN(e))throw this[m].TypeError("Failed to set the 'currentScale' property on 'SVGSVGElement': The provided float value is non-finite.");if(e<1)return;this[Qh]=e}get currentTranslate(){return new pr(h,this[m])}get viewBox(){if(!this[Qi])this[Qi]=new gl(h,this[m],{getAttribute:()=>this.getAttribute("viewBox"),setAttribute:(t)=>this.setAttribute("viewBox",t)});return this[Qi]}pauseAnimations(){}unpauseAnimations(){}animationsPaused(){return!1}getCurrentTime(){return 0}setCurrentTime(t){}getIntersectionList(t,e){return new Yo(h,[])}getEnclosureList(t,e){return new Yo(h,[])}checkIntersection(t,e){return!1}checkEnclosure(t,e){return!1}deselectAll(){}createSVGNumber(){return new Ri(h,this[m])}createSVGLength(){return new Ii(h,this[m])}createSVGAngle(){return new Sn(h,this[m])}createSVGPoint(){return new pr(h,this[m])}createSVGMatrix(){return new rr(h,this[m])}createSVGRect(){return new Mi(h,this[m])}createSVGTransform(){return new jo(h,this[m])}createSVGTransformFromMatrix(t){let e=new jo(h,this[m]);return e.setMatrix(t),e}getElementsByClassName(t){return oe.getElementsByClassName(this,t)}getElementsByTagName(t){return oe.getElementsByTagName(this,t)}getElementsByTagNameNS(t,e){return oe.getElementsByTagNameNS(this,t,e)}getElementById(t){return oe.getElementById(this,t)}[ct](t=!1){return super[ct](t)}}class pi extends et{[Yi]=null;[Ki]=null;get onbegin(){return S.getEventListener(this,"onbegin")}set onbegin(t){this[p].set("onbegin",t)}get onend(){return S.getEventListener(this,"onend")}set onend(t){this[p].set("onend",t)}get onrepeat(){return S.getEventListener(this,"onrepeat")}set onrepeat(t){this[p].set("onrepeat",t)}get requiredExtensions(){if(!this[Yi])this[Yi]=new ki(h,this[m],{getAttribute:()=>this.getAttribute("requiredExtensions"),setAttribute:(t)=>this.setAttribute("requiredExtensions",t)});return this[Yi]}get systemLanguage(){if(!this[Ki])this[Ki]=new ki(h,this[m],{getAttribute:()=>this.getAttribute("systemLanguage"),setAttribute:(t)=>this.setAttribute("systemLanguage",t)});return this[Ki]}get targetElement(){return null}}class Oc extends pi{}class Gc extends pi{}class Uc extends pi{}class ut{[m];[v];[A];[mo]=0;constructor(t,e,o){if(t!==h)throw TypeError("Illegal constructor");this[m]=e,this[v]=o.getAttribute,this[A]=o.setAttribute,this[mo]=o.defaultValue||0}get animVal(){return this.baseVal}set animVal(t){}get baseVal(){let t=this[v]();if(!t)return this[mo];let e=parseFloat(t);if(isNaN(e))return this[mo];return e}set baseVal(t){let e=typeof t!=="number"?parseFloat(t):t;if(isNaN(e))throw new this[m].TypeError("TypeError: Failed to set the 'baseVal' property on 'SVGAnimatedNumber': The provided float value is non-finite.");this[A](String(e))}}class Nr extends Ae{[Ym]=null;get pathLength(){if(!this[Ym])this[Ym]=new ut(h,this[m],{getAttribute:()=>this.getAttribute("pathLength"),setAttribute:(t)=>this.setAttribute("pathLength",t)});return this[Ym]}isPointInFill(t){if(!(t instanceof pr))throw TypeError("Failed to execute 'isPointInFill' on 'SVGGeometryElement': parameter 1 is not of type 'SVGPoint'.");return!1}isPointInStroke(t){if(!(t instanceof pr))throw TypeError("Failed to execute 'isPointInFill' on 'SVGGeometryElement': parameter 1 is not of type 'SVGPoint'.");return!1}getTotalLength(){return 0}getPointAtLength(t){return new pr(h,this[m])}}class Hc extends Nr{[yo]=null;[po]=null;[zi]=null;get cx(){if(!this[yo])this[yo]=new L(h,this[m],{getAttribute:()=>this.getAttribute("cx"),setAttribute:(t)=>this.setAttribute("cx",t)});return this[yo]}get cy(){if(!this[po])this[po]=new L(h,this[m],{getAttribute:()=>this.getAttribute("cy"),setAttribute:(t)=>this.setAttribute("cy",t)});return this[po]}get r(){if(!this[zi])this[zi]=new L(h,this[m],{getAttribute:()=>this.getAttribute("r"),setAttribute:(t)=>this.setAttribute("r",t)});return this[zi]}}class Tt{[m];[v];[A];[Ze];[mo];constructor(t,e,o){if(t!==h)throw TypeError("Illegal constructor");this[m]=e,this[v]=o.getAttribute,this[A]=o.setAttribute,this[Ze]=o.values,this[mo]=o.defaultValue}get animVal(){return this.baseVal}set animVal(t){}get baseVal(){let t=this[v]();if(!t)return this[Ze].indexOf(this[mo])+1;let e=this[Ze].indexOf(t);if(e===-1){let o=this[Ze].indexOf(null);return o!==-1?o+1:0}return e+1}set baseVal(t){let e=Number(t);if(isNaN(e))e=0;if(e<1)throw TypeError(`Failed to set the 'baseVal' property on 'SVGAnimatedEnumeration': The enumeration value provided is ${e}, which is not settable.`);if(e>this[Ze].length)throw TypeError(`Failed to set the 'baseVal' property on 'SVGAnimatedEnumeration': The enumeration value provided (${e}) is larger than the largest allowed value (${this[Ze].length}).`);let o=this[v](),s=this[Ze][e-1]===null,n=s?"0":this[Ze][e-1];if(!o||s&&this[Ze].includes(o)||!s&&o!==n)this[A](n||"")}}class Wc extends et{[Jm]=null;get clipPathUnits(){if(!this[Jm])this[Jm]=new Tt(h,this[m],{getAttribute:()=>this.getAttribute("clipPathUnits"),setAttribute:(t)=>this.setAttribute("clipPathUnits",t),values:["userSpaceOnUse","objectBoundingBox"],defaultValue:"userSpaceOnUse"});return this[Jm]}}class _c extends Ae{}class Yc extends et{}class Kc extends Nr{[yo]=null;[po]=null;[$i]=null;[Xi]=null;get cx(){if(!this[yo])this[yo]=new L(h,this[m],{getAttribute:()=>this.getAttribute("cx"),setAttribute:(t)=>this.setAttribute("cx",t)});return this[yo]}get cy(){if(!this[po])this[po]=new L(h,this[m],{getAttribute:()=>this.getAttribute("cy"),setAttribute:(t)=>this.setAttribute("cy",t)});return this[po]}get rx(){if(!this[$i])this[$i]=new L(h,this[m],{getAttribute:()=>this.getAttribute("rx"),setAttribute:(t)=>this.setAttribute("rx",t)});return this[$i]}get ry(){if(!this[Xi])this[Xi]=new L(h,this[m],{getAttribute:()=>this.getAttribute("ry"),setAttribute:(t)=>this.setAttribute("ry",t)});return this[Xi]}}class nt{[m];[v];[A];constructor(t,e,o){if(t!==h)throw TypeError("Illegal constructor");this[m]=e,this[v]=o.getAttribute,this[A]=o.setAttribute}get animVal(){return this.baseVal}set animVal(t){}get baseVal(){let t=this[v]();if(!t)return"";return t}set baseVal(t){this[A](String(t))}}class Qc extends et{static SVG_FEBLEND_MODE_UNKNOWN=0;static SVG_FEBLEND_MODE_NORMAL=1;static SVG_FEBLEND_MODE_MULTIPLY=2;static SVG_FEBLEND_MODE_SCREEN=3;static SVG_FEBLEND_MODE_DARKEN=4;static SVG_FEBLEND_MODE_LIGHTEN=5;static SVG_FEBLEND_MODE_OVERLAY=6;static SVG_FEBLEND_MODE_COLOR_DODGE=7;static SVG_FEBLEND_MODE_COLOR_BURN=8;static SVG_FEBLEND_MODE_HARD_LIGHT=9;static SVG_FEBLEND_MODE_SOFT_LIGHT=10;static SVG_FEBLEND_MODE_DIFFERENCE=11;static SVG_FEBLEND_MODE_EXCLUSION=12;static SVG_FEBLEND_MODE_HUE=13;static SVG_FEBLEND_MODE_SATURATION=14;static SVG_FEBLEND_MODE_COLOR=15;static SVG_FEBLEND_MODE_LUMINOSITY=16;[F]=null;[at]=null;[uo]=null;[Ee]=null;[k]=null;[M]=null;[V]=null;get height(){if(!this[F])this[F]=new L(h,this[m],{getAttribute:()=>this.getAttribute("height"),setAttribute:(t)=>this.setAttribute("height",t)});return this[F]}get in1(){if(!this[at])this[at]=new nt(h,this[m],{getAttribute:()=>this.getAttribute("in"),setAttribute:(t)=>this.setAttribute("in",t)});return this[at]}get in2(){if(!this[uo])this[uo]=new nt(h,this[m],{getAttribute:()=>this.getAttribute("in2"),setAttribute:(t)=>this.setAttribute("in2",t)});return this[uo]}get mode(){if(!this[Ee])this[Ee]=new Tt(h,this[m],{getAttribute:()=>this.getAttribute("mode"),setAttribute:(t)=>this.setAttribute("mode",t),values:["normal","multiply","screen","darken","lighten","overlay","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],defaultValue:"normal"});return this[Ee]}get width(){if(!this[V])this[V]=new L(h,this[m],{getAttribute:()=>this.getAttribute("width"),setAttribute:(t)=>this.setAttribute("width",t)});return this[V]}get x(){if(!this[k])this[k]=new L(h,this[m],{getAttribute:()=>this.getAttribute("x"),setAttribute:(t)=>this.setAttribute("x",t)});return this[k]}get y(){if(!this[M])this[M]=new L(h,this[m],{getAttribute:()=>this.getAttribute("y"),setAttribute:(t)=>this.setAttribute("y",t)});return this[M]}}var pw=/[\t\f\n\r, ]+/;class Sl{[m];[v];[A];[j]=!1;[U]={items:[],attributeValue:""};constructor(t,e,o){if(t!==h)throw TypeError("Illegal constructor");if(this[m]=e,this[j]=!!o.readOnly,this[v]=o.getAttribute,this[A]=o.setAttribute,t!==h)throw TypeError("Illegal constructor");let s=new fe(this,[Sl]);return new Proxy(this,{get:(n,l)=>{if(l==="length"||l==="numberOfItems")return n[K]().length;if(l in n||typeof l==="symbol")return s.bind(l),n[l];let a=Number(l);if(!isNaN(a))return n[K]()[a]},set(n,l,a){if(s.bind(l),typeof l==="symbol")return n[l]=a,!0;let y=Number(l);if(isNaN(y))n[l]=a;return!0},deleteProperty(n,l){if(typeof l==="symbol")return delete n[l],!0;let a=Number(l);if(isNaN(a))delete n[l];return!0},ownKeys(n){return Object.keys(n[K]())},has(n,l){if(l in n)return!0;if(typeof l==="symbol")return!1;let a=Number(l);return!isNaN(a)&&a>=0&&a<n[K]().length},defineProperty(n,l,a){if(s.preventBinding(l),l in n)return Object.defineProperty(n,l,a),!0;return!1},getOwnPropertyDescriptor(n,l){if(l in n||typeof l==="symbol")return;let a=Number(l),y=n[K]();if(!isNaN(a)&&y[a])return{value:y[a],writable:!1,enumerable:!0,configurable:!0}}})}get length(){return this[K]().length}get numberOfItems(){return this[K]().length}[Symbol.iterator](){return this[K]().values()}clear(){if(this[j])throw new this[m].TypeError("Failed to execute 'clear' on 'SVGNumberList': The object is read-only.");for(let t of this[U].items)t[v]=null,t[A]=null;this[U].items=[],this[U].attributeValue="",this[A]("")}initialize(t){if(arguments.length<1)throw new this[m].TypeError(`Failed to execute 'initialize' on 'SVGNumberList': 1 arguments required, but only ${arguments.length} present.`);if(this[j])throw new this[m].TypeError("Failed to execute 'initialize' on 'SVGNumberList': The object is read-only.");for(let e of this[U].items)e[v]=null,e[A]=null;return t[v]=()=>t[I],t[A]=()=>{this[U].attributeValue=this[K]().map((e)=>e[I]||"0").join(" "),this[A](this[U].attributeValue)},this[U].items=[t],this[U].attributeValue=t[I],this[A](t[I]||""),t}getItem(t){let e=this[K]();if(typeof t==="number")return e[t]?e[t]:null;return t=Number(t),t=isNaN(t)?0:t,e[t]?e[t]:null}insertItemBefore(t,e){if(this[j])throw new this[m].TypeError("Failed to execute 'insertItemBefore' on 'SVGNumberList': The object is read-only.");if(arguments.length<2)throw new this[m].TypeError(`Failed to execute 'insertItemBefore' on 'SVGNumberList': 2 arguments required, but only ${arguments.length} present.`);if(!(t instanceof Ri))throw new this[m].TypeError("Failed to execute 'insertItemBefore' on 'SVGNumberList': parameter 1 is not of type 'SVGNumber'.");let o=this[K](),s=o.indexOf(t);if(s!==-1)o.splice(s,1);if(e<0)e=0;else if(e>o.length)e=o.length;return o.splice(e,0,t),t[v]=()=>t[I],t[A]=()=>{this[U].attributeValue=this[K]().map((n)=>n[I]||"0").join(" "),this[A](this[U].attributeValue)},this[U].attributeValue=o.map((n)=>n[I]||"0").join(" "),this[A](this[U].attributeValue),t}replaceItem(t,e){if(this[j])throw new this[m].TypeError("Failed to execute 'replaceItem' on 'SVGNumberList': The object is read-only.");if(arguments.length<2)throw new this[m].TypeError(`Failed to execute 'replaceItem' on 'SVGNumberList': 2 arguments required, but only ${arguments.length} present.`);if(!(t instanceof Ri))throw new this[m].TypeError("Failed to execute 'replaceItem' on 'SVGNumberList': parameter 1 is not of type 'SVGNumber'.");let o=this[K](),s=o.indexOf(t);if(s===e)return t;if(s!==-1)o.splice(s,1);if(e<0)e=0;else if(e>=o.length)e=o.length-1;if(o[e])o[e][v]=null,o[e][A]=null;let n=o[e];return o[e]=t,t[v]=()=>t[I],t[A]=()=>{this[U].attributeValue=this[K]().map((l)=>l[I]||"0").join(" "),this[A](this[U].attributeValue)},this[U].attributeValue=o.map((l)=>l[I]||"0").join(" "),this[A](this[U].attributeValue),n}removeItem(t){if(this[j])throw new this[m].TypeError("Failed to execute 'removeItem' on 'SVGNumberList': The object is read-only.");if(arguments.length<1)throw new this[m].TypeError(`Failed to execute 'removeItem' on 'SVGNumberList': 1 argument required, but only ${arguments.length} present.`);let e=this[K]();if(t=Number(t),isNaN(t))t=0;if(t>=e.length)throw new this[m].DOMException(`Failed to execute 'removeItem' on 'SVGNumberList': The index provided (${t}) is greater than the maximum bound.`,w.indexSizeError);if(t<0)throw new this[m].DOMException(`Failed to execute 'removeItem' on 'SVGNumberList': The index provided (${t}) is negative.`,w.indexSizeError);let o=e[t];if(o)o[v]=null,o[A]=null;return e.splice(t,1),this[A](e.map((s)=>s[I]||"0").join(" ")),o}appendItem(t){if(this[j])throw new this[m].TypeError("Failed to execute 'appendItem' on 'SVGNumberList': The object is read-only.");if(arguments.length<1)throw new this[m].TypeError(`Failed to execute 'appendItem' on 'SVGNumberList': 1 argument required, but only ${arguments.length} present.`);if(!(t instanceof Ri))throw new this[m].TypeError("Failed to execute 'appendItem' on 'SVGNumberList': parameter 1 is not of type 'SVGNumber'.");let e=this[K](),o=e.indexOf(t);if(o!==-1)e.splice(o,1);return e.push(t),t[v]=()=>t[I],t[A]=()=>{this[U].attributeValue=this[K]().map((s)=>s[I]||"0").join(" "),this[A](this[U].attributeValue)},this[U].attributeValue=e.map((s)=>s[I]||"0").join(" "),this[A](this[U].attributeValue),t}[K](){let t=this[v]()??"",e=this[U];if(e.attributeValue===t)return e.items;if(e.items.length)for(let n of e.items)n[v]=null,n[A]=null;let o=[],s=t.trim();if(s){let n=s.split(pw);for(let l=0,a=n.length;l<a;l++){let y=new Ri(h,this[m],{readOnly:this[j],getAttribute:()=>y[I],setAttribute:()=>{this[U].attributeValue=this[K]().map((u)=>u[I]||"0").join(" "),this[A](this[U].attributeValue)}});y[I]=String(parseFloat(n[l])),o.push(y)}}return e.attributeValue=t,e.items=o,o}}class Do{[m];[v];[A];[se]=null;[ne]=null;constructor(t,e,o){if(t!==h)throw TypeError("Illegal constructor");this[m]=e,this[v]=o.getAttribute,this[A]=o.setAttribute}get animVal(){if(!this[ne])this[ne]=new Sl(h,this[m],{readOnly:!0,getAttribute:this[v],setAttribute:()=>{}});return this[ne]}set animVal(t){}get baseVal(){if(!this[se])this[se]=new Sl(h,this[m],{getAttribute:this[v],setAttribute:this[A]});return this[se]}set baseVal(t){}}class jc extends et{static SVG_FEBLEND_TYPE_UNKNOWN=0;static SVG_FEBLEND_TYPE_MATRIX=1;static SVG_FEBLEND_TYPE_SATURATE=2;static SVG_FEBLEND_TYPE_HUEROTATE=3;static SVG_FEBLEND_TYPE_LUMINANCETOALPHA=4;[F]=null;[at]=null;[uo]=null;[Z]=null;[Qt]=null;[Ze]=null;[k]=null;[M]=null;[V]=null;get height(){if(!this[F])this[F]=new L(h,this[m],{getAttribute:()=>this.getAttribute("height"),setAttribute:(t)=>this.setAttribute("height",t)});return this[F]}get in1(){if(!this[at])this[at]=new nt(h,this[m],{getAttribute:()=>this.getAttribute("in"),setAttribute:(t)=>this.setAttribute("in",t)});return this[at]}get in2(){if(!this[uo])this[uo]=new nt(h,this[m],{getAttribute:()=>this.getAttribute("in2"),setAttribute:(t)=>this.setAttribute("in2",t)});return this[uo]}get result(){if(!this[Z])this[Z]=new nt(h,this[m],{getAttribute:()=>this.getAttribute("result"),setAttribute:(t)=>this.setAttribute("result",t)});return this[Z]}get type(){if(!this[Qt])this[Qt]=new Tt(h,this[m],{getAttribute:()=>this.getAttribute("type"),setAttribute:(t)=>this.setAttribute("type",t),values:["matrix","saturate","huerotate","luminancetoalpha"],defaultValue:"matrix"});return this[Qt]}get values(){if(!this[Ze])this[Ze]=new Do(h,this[m],{getAttribute:()=>this.getAttribute("values"),setAttribute:(t)=>this.setAttribute("values",t)});return this[Ze]}get width(){if(!this[V])this[V]=new L(h,this[m],{getAttribute:()=>this.getAttribute("width"),setAttribute:(t)=>this.setAttribute("width",t)});return this[V]}get x(){if(!this[k])this[k]=new L(h,this[m],{getAttribute:()=>this.getAttribute("x"),setAttribute:(t)=>this.setAttribute("x",t)});return this[k]}get y(){if(!this[M])this[M]=new L(h,this[m],{getAttribute:()=>this.getAttribute("y"),setAttribute:(t)=>this.setAttribute("y",t)});return this[M]}}class qc extends et{[F]=null;[at]=null;[Z]=null;[k]=null;[M]=null;[V]=null;get height(){if(!this[F])this[F]=new L(h,this[m],{getAttribute:()=>this.getAttribute("height"),setAttribute:(t)=>this.setAttribute("height",t)});return this[F]}get in1(){if(!this[at])this[at]=new nt(h,this[m],{getAttribute:()=>this.getAttribute("in"),setAttribute:(t)=>this.setAttribute("in",t)});return this[at]}get result(){if(!this[Z])this[Z]=new nt(h,this[m],{getAttribute:()=>this.getAttribute("result"),setAttribute:(t)=>this.setAttribute("result",t)});return this[Z]}get width(){if(!this[V])this[V]=new L(h,this[m],{getAttribute:()=>this.getAttribute("width"),setAttribute:(t)=>this.setAttribute("width",t)});return this[V]}get x(){if(!this[k])this[k]=new L(h,this[m],{getAttribute:()=>this.getAttribute("x"),setAttribute:(t)=>this.setAttribute("x",t)});return this[k]}get y(){if(!this[M])this[M]=new L(h,this[m],{getAttribute:()=>this.getAttribute("y"),setAttribute:(t)=>this.setAttribute("y",t)});return this[M]}}class $c extends et{static SVG_FECOMPOSITE_OPERATOR_UNKNOWN=0;static SVG_FECOMPOSITE_OPERATOR_OVER=1;static SVG_FECOMPOSITE_OPERATOR_IN=2;static SVG_FECOMPOSITE_OPERATOR_OUT=3;static SVG_FECOMPOSITE_OPERATOR_ATOP=4;static SVG_FECOMPOSITE_OPERATOR_XOR=5;static SVG_FECOMPOSITE_OPERATOR_ARITHMETIC=6;[F]=null;[at]=null;[Z]=null;[Qt]=null;[Ze]=null;[k]=null;[M]=null;[V]=null;get height(){if(!this[F])this[F]=new L(h,this[m],{getAttribute:()=>this.getAttribute("height"),setAttribute:(t)=>this.setAttribute("height",t)});return this[F]}get in1(){if(!this[at])this[at]=new nt(h,this[m],{getAttribute:()=>this.getAttribute("in"),setAttribute:(t)=>this.setAttribute("in",t)});return this[at]}get result(){if(!this[Z])this[Z]=new nt(h,this[m],{getAttribute:()=>this.getAttribute("result"),setAttribute:(t)=>this.setAttribute("result",t)});return this[Z]}get type(){if(!this[Qt])this[Qt]=new Tt(h,this[m],{getAttribute:()=>this.getAttribute("type"),setAttribute:(t)=>this.setAttribute("type",t),values:["over","in","out","atop","xor","arithmetic"],defaultValue:"over"});return this[Qt]}get values(){if(!this[Ze])this[Ze]=new Do(h,this[m],{getAttribute:()=>this.getAttribute("values"),setAttribute:(t)=>this.setAttribute("values",t)});return this[Ze]}get width(){if(!this[V])this[V]=new L(h,this[m],{getAttribute:()=>this.getAttribute("width"),setAttribute:(t)=>this.setAttribute("width",t)});return this[V]}get x(){if(!this[k])this[k]=new L(h,this[m],{getAttribute:()=>this.getAttribute("x"),setAttribute:(t)=>this.setAttribute("x",t)});return this[k]}get y(){if(!this[M])this[M]=new L(h,this[m],{getAttribute:()=>this.getAttribute("y"),setAttribute:(t)=>this.setAttribute("y",t)});return this[M]}}class gm{[m];[v];[A];constructor(t,e,o){if(t!==h)throw TypeError("Illegal constructor");this[m]=e,this[v]=o.getAttribute,this[A]=o.setAttribute}get animVal(){return this.baseVal}set animVal(t){}get baseVal(){return this[v]()==="true"}set baseVal(t){this[A](typeof t!=="boolean"?String(Boolean(t)):String(t))}}class Fi{[m];[v];[A];constructor(t,e,o){if(t!==h)throw TypeError("Illegal constructor");this[m]=e,this[v]=o.getAttribute,this[A]=o.setAttribute}get animVal(){return this.baseVal}set animVal(t){}get baseVal(){let t=this[v]();if(!t)return 0;let e=parseInt(t);if(isNaN(e))return 0;return e}set baseVal(t){let e=parseInt(String(t));if(isNaN(e))throw new this[m].TypeError("TypeError: Failed to set the 'baseVal' property on 'SVGAnimatedInteger': The provided float value is non-finite.");this[A](String(e))}}class Xc extends et{static SVG_EDGEMODE_UNKNOWN=0;static SVG_EDGEMODE_DUPLICATE=1;static SVG_EDGEMODE_WRAP=2;static SVG_EDGEMODE_NONE=3;[Sy]=null;[fy]=null;[is]=null;[F]=null;[at]=null;[Py]=null;[ho]=null;[co]=null;[Ay]=null;[wy]=null;[Ey]=null;[Z]=null;[xy]=null;[vy]=null;[V]=null;[k]=null;[M]=null;get bias(){if(!this[Sy])this[Sy]=new ut(h,this[m],{getAttribute:()=>this.getAttribute("bias"),setAttribute:(t)=>this.setAttribute("bias",t)});return this[Sy]}get divisor(){if(!this[fy])this[fy]=new ut(h,this[m],{getAttribute:()=>this.getAttribute("divisor"),setAttribute:(t)=>this.setAttribute("divisor",t)});return this[fy]}get edgeMode(){if(!this[is])this[is]=new Tt(h,this[m],{getAttribute:()=>this.getAttribute("edgeMode"),setAttribute:(t)=>this.setAttribute("edgeMode",t),values:["duplicate","wrap","none"],defaultValue:"duplicate"});return this[is]}get height(){if(!this[F])this[F]=new L(h,this[m],{getAttribute:()=>this.getAttribute("height"),setAttribute:(t)=>this.setAttribute("height",t)});return this[F]}get in1(){if(!this[at])this[at]=new nt(h,this[m],{getAttribute:()=>this.getAttribute("in"),setAttribute:(t)=>this.setAttribute("in",t)});return this[at]}get kernelMatrix(){if(!this[Py])this[Py]=new Do(h,this[m],{getAttribute:()=>this.getAttribute("kernelMatrix"),setAttribute:(t)=>this.setAttribute("kernelMatrix",t)});return this[Py]}get kernelUnitLengthX(){if(!this[ho])this[ho]=new ut(h,this[m],{getAttribute:()=>this.getAttribute("kernelUnitLengthX"),setAttribute:(t)=>this.setAttribute("kernelUnitLengthX",t)});return this[ho]}get kernelUnitLengthY(){if(!this[co])this[co]=new ut(h,this[m],{getAttribute:()=>this.getAttribute("kernelUnitLengthY"),setAttribute:(t)=>this.setAttribute("kernelUnitLengthY",t)});return this[co]}get orderX(){if(!this[Ay])this[Ay]=new Fi(h,this[m],{getAttribute:()=>this.getAttribute("orderX"),setAttribute:(t)=>this.setAttribute("orderX",t)});return this[Ay]}get orderY(){if(!this[wy])this[wy]=new Fi(h,this[m],{getAttribute:()=>this.getAttribute("orderY"),setAttribute:(t)=>this.setAttribute("orderY",t)});return this[wy]}get preserveAlpha(){if(!this[Ey])this[Ey]=new gm(h,this[m],{getAttribute:()=>this.getAttribute("preserveAlpha"),setAttribute:(t)=>this.setAttribute("preserveAlpha",t)});return this[Ey]}get result(){if(!this[Z])this[Z]=new nt(h,this[m],{getAttribute:()=>this.getAttribute("result"),setAttribute:(t)=>this.setAttribute("result",t)});return this[Z]}get targetX(){if(!this[xy])this[xy]=new Fi(h,this[m],{getAttribute:()=>this.getAttribute("targetX"),setAttribute:(t)=>this.setAttribute("targetX",t)});return this[xy]}get targetY(){if(!this[vy])this[vy]=new Fi(h,this[m],{getAttribute:()=>this.getAttribute("targetY"),setAttribute:(t)=>this.setAttribute("targetY",t)});return this[vy]}get width(){if(!this[V])this[V]=new L(h,this[m],{getAttribute:()=>this.getAttribute("width"),setAttribute:(t)=>this.setAttribute("width",t)});return this[V]}get x(){if(!this[k])this[k]=new L(h,this[m],{getAttribute:()=>this.getAttribute("x"),setAttribute:(t)=>this.setAttribute("x",t)});return this[k]}get y(){if(!this[M])this[M]=new L(h,this[m],{getAttribute:()=>this.getAttribute("y"),setAttribute:(t)=>this.setAttribute("y",t)});return this[M]}}class zc extends et{[Ty]=null;[F]=null;[at]=null;[ho]=null;[co]=null;[Z]=null;[ss]=null;[V]=null;[k]=null;[M]=null;get diffuseConstant(){if(!this[Ty])this[Ty]=new ut(h,this[m],{getAttribute:()=>this.getAttribute("diffuseConstant"),setAttribute:(t)=>this.setAttribute("diffuseConstant",t)});return this[Ty]}get height(){if(!this[F])this[F]=new L(h,this[m],{getAttribute:()=>this.getAttribute("height"),setAttribute:(t)=>this.setAttribute("height",t)});return this[F]}get in1(){if(!this[at])this[at]=new nt(h,this[m],{getAttribute:()=>this.getAttribute("in"),setAttribute:(t)=>this.setAttribute("in",t)});return this[at]}get kernelUnitLengthX(){if(!this[ho])this[ho]=new ut(h,this[m],{getAttribute:()=>this.getAttribute("kernelUnitLengthX"),setAttribute:(t)=>this.setAttribute("kernelUnitLengthX",t)});return this[ho]}get kernelUnitLengthY(){if(!this[co])this[co]=new ut(h,this[m],{getAttribute:()=>this.getAttribute("kernelUnitLengthY"),setAttribute:(t)=>this.setAttribute("kernelUnitLengthY",t)});return this[co]}get result(){if(!this[Z])this[Z]=new nt(h,this[m],{getAttribute:()=>this.getAttribute("result"),setAttribute:(t)=>this.setAttribute("result",t)});return this[Z]}get surfaceScale(){if(!this[ss])this[ss]=new ut(h,this[m],{getAttribute:()=>this.getAttribute("surfaceScale"),setAttribute:(t)=>this.setAttribute("surfaceScale",t)});return this[ss]}get width(){if(!this[V])this[V]=new L(h,this[m],{getAttribute:()=>this.getAttribute("width"),setAttribute:(t)=>this.setAttribute("width",t)});return this[V]}get x(){if(!this[k])this[k]=new L(h,this[m],{getAttribute:()=>this.getAttribute("x"),setAttribute:(t)=>this.setAttribute("x",t)});return this[k]}get y(){if(!this[M])this[M]=new L(h,this[m],{getAttribute:()=>this.getAttribute("y"),setAttribute:(t)=>this.setAttribute("y",t)});return this[M]}}class Jc extends et{static SVG_CHANNEL_UNKNOWN=0;static SVG_CHANNEL_R=1;static SVG_CHANNEL_G=2;static SVG_CHANNEL_B=3;static SVG_CHANNEL_A=4;[F]=null;[at]=null;[uo]=null;[Z]=null;[Cy]=null;[V]=null;[k]=null;[Ny]=null;[M]=null;[Ly]=null;get height(){if(!this[F])this[F]=new L(h,this[m],{getAttribute:()=>this.getAttribute("height"),setAttribute:(t)=>this.setAttribute("height",t)});return this[F]}get in1(){if(!this[at])this[at]=new nt(h,this[m],{getAttribute:()=>this.getAttribute("in"),setAttribute:(t)=>this.setAttribute("in",t)});return this[at]}get in2(){if(!this[uo])this[uo]=new nt(h,this[m],{getAttribute:()=>this.getAttribute("in2"),setAttribute:(t)=>this.setAttribute("in2",t)});return this[uo]}get result(){if(!this[Z])this[Z]=new nt(h,this[m],{getAttribute:()=>this.getAttribute("result"),setAttribute:(t)=>this.setAttribute("result",t)});return this[Z]}get scale(){if(!this[Cy])this[Cy]=new ut(h,this[m],{getAttribute:()=>this.getAttribute("scale"),setAttribute:(t)=>this.setAttribute("scale",t)});return this[Cy]}get width(){if(!this[V])this[V]=new L(h,this[m],{getAttribute:()=>this.getAttribute("width"),setAttribute:(t)=>this.setAttribute("width",t)});return this[V]}get x(){if(!this[k])this[k]=new L(h,this[m],{getAttribute:()=>this.getAttribute("x"),setAttribute:(t)=>this.setAttribute("x",t)});return this[k]}get xChannelSelector(){if(!this[Ny])this[Ny]=new Tt(h,this[m],{getAttribute:()=>this.getAttribute("xChannelSelector"),setAttribute:(t)=>this.setAttribute("xChannelSelector",t),values:["r","g","b","a"],defaultValue:"r"});return this[Ny]}get y(){if(!this[M])this[M]=new L(h,this[m],{getAttribute:()=>this.getAttribute("y"),setAttribute:(t)=>this.setAttribute("y",t)});return this[M]}get yChannelSelector(){if(!this[Ly])this[Ly]=new Tt(h,this[m],{getAttribute:()=>this.getAttribute("yChannelSelector"),setAttribute:(t)=>this.setAttribute("yChannelSelector",t),values:["r","g","b","a"],defaultValue:"r"});return this[Ly]}}class Zc extends et{[ky]=null;[My]=null;get azimuth(){if(!this[ky])this[ky]=new ut(h,this[m],{getAttribute:()=>this.getAttribute("azimuth"),setAttribute:(t)=>this.setAttribute("azimuth",t)});return this[ky]}get elevation(){if(!this[My])this[My]=new ut(h,this[m],{getAttribute:()=>this.getAttribute("elevation"),setAttribute:(t)=>this.setAttribute("elevation",t)});return this[My]}}class td extends et{[bo]=null;[go]=null;[F]=null;[at]=null;[Z]=null;[ns]=null;[ls]=null;[V]=null;[k]=null;[M]=null;get dx(){if(!this[bo])this[bo]=new ut(h,this[m],{getAttribute:()=>this.getAttribute("dx"),setAttribute:(t)=>this.setAttribute("dx",t)});return this[bo]}get dy(){if(!this[go])this[go]=new ut(h,this[m],{getAttribute:()=>this.getAttribute("dy"),setAttribute:(t)=>this.setAttribute("dy",t)});return this[go]}get height(){if(!this[F])this[F]=new L(h,this[m],{getAttribute:()=>this.getAttribute("height"),setAttribute:(t)=>this.setAttribute("height",t)});return this[F]}get in1(){if(!this[at])this[at]=new nt(h,this[m],{getAttribute:()=>this.getAttribute("in"),setAttribute:(t)=>this.setAttribute("in",t)});return this[at]}get result(){if(!this[Z])this[Z]=new nt(h,this[m],{getAttribute:()=>this.getAttribute("result"),setAttribute:(t)=>this.setAttribute("result",t)});return this[Z]}get stdDeviationX(){if(!this[ns])this[ns]=new ut(h,this[m],{getAttribute:()=>this.getAttribute("stdDeviationX"),setAttribute:(t)=>this.setAttribute("stdDeviationX",t),defaultValue:2});return this[ns]}get stdDeviationY(){if(!this[ls])this[ls]=new ut(h,this[m],{getAttribute:()=>this.getAttribute("stdDeviationY"),setAttribute:(t)=>this.setAttribute("stdDeviationY",t),defaultValue:2});return this[ls]}get width(){if(!this[V])this[V]=new L(h,this[m],{getAttribute:()=>this.getAttribute("width"),setAttribute:(t)=>this.setAttribute("width",t)});return this[V]}get x(){if(!this[k])this[k]=new L(h,this[m],{getAttribute:()=>this.getAttribute("x"),setAttribute:(t)=>this.setAttribute("x",t)});return this[k]}get y(){if(!this[M])this[M]=new L(h,this[m],{getAttribute:()=>this.getAttribute("y"),setAttribute:(t)=>this.setAttribute("y",t)});return this[M]}setStdDeviation(t,e){this.stdDeviationX.baseVal=t,this.stdDeviationY.baseVal=e}}class ed extends et{[F]=null;[Z]=null;[V]=null;[k]=null;[M]=null;get height(){if(!this[F])this[F]=new L(h,this[m],{getAttribute:()=>this.getAttribute("height"),setAttribute:(t)=>this.setAttribute("height",t)});return this[F]}get result(){if(!this[Z])this[Z]=new nt(h,this[m],{getAttribute:()=>this.getAttribute("result"),setAttribute:(t)=>this.setAttribute("result",t)});return this[Z]}get width(){if(!this[V])this[V]=new L(h,this[m],{getAttribute:()=>this.getAttribute("width"),setAttribute:(t)=>this.setAttribute("width",t)});return this[V]}get x(){if(!this[k])this[k]=new L(h,this[m],{getAttribute:()=>this.getAttribute("x"),setAttribute:(t)=>this.setAttribute("x",t)});return this[k]}get y(){if(!this[M])this[M]=new L(h,this[m],{getAttribute:()=>this.getAttribute("y"),setAttribute:(t)=>this.setAttribute("y",t)});return this[M]}}class ui extends et{static SVG_FECOMPONENTTRANSFER_TYPE_UNKNOWN=0;static SVG_FECOMPONENTTRANSFER_TYPE_IDENTITY=1;static SVG_FECOMPONENTTRANSFER_TYPE_TABLE=2;static SVG_FECOMPONENTTRANSFER_TYPE_DISCRETE=3;static SVG_FECOMPONENTTRANSFER_TYPE_LINEAR=4;static SVG_FECOMPONENTTRANSFER_TYPE_GAMMA=5;[Qt]=null;[Iy]=null;[Ry]=null;[Fy]=null;[Vy]=null;[Dy]=null;[rs]=null;get type(){if(!this[Qt])this[Qt]=new Tt(h,this[m],{getAttribute:()=>this.getAttribute("type"),setAttribute:(t)=>this.setAttribute("type",t),values:["identity","table","discrete","linear","gamma"],defaultValue:"identity"});return this[Qt]}get tableValues(){if(!this[Iy])this[Iy]=new Do(h,this[m],{getAttribute:()=>this.getAttribute("tableValues"),setAttribute:(t)=>this.setAttribute("tableValues",t)});return this[Iy]}get slope(){if(!this[Ry])this[Ry]=new ut(h,this[m],{getAttribute:()=>this.getAttribute("slope"),setAttribute:(t)=>this.setAttribute("slope",t),defaultValue:1});return this[Ry]}get intercept(){if(!this[Fy])this[Fy]=new ut(h,this[m],{getAttribute:()=>this.getAttribute("intercept"),setAttribute:(t)=>this.setAttribute("intercept",t)});return this[Fy]}get amplitude(){if(!this[Vy])this[Vy]=new ut(h,this[m],{getAttribute:()=>this.getAttribute("amplitude"),setAttribute:(t)=>this.setAttribute("amplitude",t),defaultValue:1});return this[Vy]}get exponent(){if(!this[Dy])this[Dy]=new ut(h,this[m],{getAttribute:()=>this.getAttribute("exponent"),setAttribute:(t)=>this.setAttribute("exponent",t),defaultValue:1});return this[Dy]}get offset(){if(!this[rs])this[rs]=new ut(h,this[m],{getAttribute:()=>this.getAttribute("offset"),setAttribute:(t)=>this.setAttribute("offset",t)});return this[rs]}}class rd extends ui{}class od extends ui{}class id extends ui{}class sd extends ui{}class nd extends et{static SVG_EDGEMODE_UNKNOWN=0;static SVG_EDGEMODE_DUPLICATE=1;static SVG_EDGEMODE_WRAP=2;static SVG_EDGEMODE_NONE=3;[is]=null;[F]=null;[at]=null;[Z]=null;[ns]=null;[ls]=null;[V]=null;[k]=null;[M]=null;get edgeMode(){if(!this[is])this[is]=new Tt(h,this[m],{getAttribute:()=>this.getAttribute("edgeMode"),setAttribute:(t)=>this.setAttribute("edgeMode",t),values:["duplicate","wrap","none"],defaultValue:"duplicate"});return this[is]}get height(){if(!this[F])this[F]=new L(h,this[m],{getAttribute:()=>this.getAttribute("height"),setAttribute:(t)=>this.setAttribute("height",t)});return this[F]}get in1(){if(!this[at])this[at]=new nt(h,this[m],{getAttribute:()=>this.getAttribute("in"),setAttribute:(t)=>this.setAttribute("in",t)});return this[at]}get result(){if(!this[Z])this[Z]=new nt(h,this[m],{getAttribute:()=>this.getAttribute("result"),setAttribute:(t)=>this.setAttribute("result",t)});return this[Z]}get stdDeviationX(){if(!this[ns])this[ns]=new ut(h,this[m],{getAttribute:()=>this.getAttribute("stdDeviationX")||"2",setAttribute:(t)=>this.setAttribute("stdDeviationX",t)});return this[ns]}get stdDeviationY(){if(!this[ls])this[ls]=new ut(h,this[m],{getAttribute:()=>this.getAttribute("stdDeviationY")||"2",setAttribute:(t)=>this.setAttribute("stdDeviationY",t)});return this[ls]}get width(){if(!this[V])this[V]=new L(h,this[m],{getAttribute:()=>this.getAttribute("width"),setAttribute:(t)=>this.setAttribute("width",t)});return this[V]}get x(){if(!this[k])this[k]=new L(h,this[m],{getAttribute:()=>this.getAttribute("x"),setAttribute:(t)=>this.setAttribute("x",t)});return this[k]}get y(){if(!this[M])this[M]=new L(h,this[m],{getAttribute:()=>this.getAttribute("y"),setAttribute:(t)=>this.setAttribute("y",t)});return this[M]}setStdDeviation(t,e){this.stdDeviationX.baseVal=t,this.stdDeviationY.baseVal=e}}class ld extends et{[Og]=null;[F]=null;[Lt]=null;[ar]=null;[Z]=null;[V]=null;[k]=null;[M]=null;get crossOrigin(){return this.getAttribute("crossorigin")}set crossOrigin(t){this.setAttribute("crossorigin",t)}get height(){if(!this[F])this[F]=new L(h,this[m],{getAttribute:()=>this.getAttribute("height"),setAttribute:(t)=>this.setAttribute("height",t)});return this[F]}get href(){if(!this[Lt])this[Lt]=new nt(h,this[m],{getAttribute:()=>this.getAttribute("href"),setAttribute:(t)=>this.setAttribute("href",t)});return this[Lt]}get preserveAspectRatio(){if(!this[ar])this[ar]=new yi(h,this[m],{getAttribute:()=>this.getAttribute("preserveAspectRatio"),setAttribute:(t)=>this.setAttribute("preserveAspectRatio",t)});return this[ar]}get result(){if(!this[Z])this[Z]=new nt(h,this[m],{getAttribute:()=>this.getAttribute("result"),setAttribute:(t)=>this.setAttribute("result",t)});return this[Z]}get width(){if(!this[V])this[V]=new L(h,this[m],{getAttribute:()=>this.getAttribute("width"),setAttribute:(t)=>this.setAttribute("width",t)});return this[V]}get x(){if(!this[k])this[k]=new L(h,this[m],{getAttribute:()=>this.getAttribute("x"),setAttribute:(t)=>this.setAttribute("x",t)});return this[k]}get y(){if(!this[M])this[M]=new L(h,this[m],{getAttribute:()=>this.getAttribute("y"),setAttribute:(t)=>this.setAttribute("y",t)});return this[M]}}class ad extends et{[F]=null;[Z]=null;[V]=null;[k]=null;[M]=null;get height(){if(!this[F])this[F]=new L(h,this[m],{getAttribute:()=>this.getAttribute("height"),setAttribute:(t)=>this.setAttribute("height",t)});return this[F]}get result(){if(!this[Z])this[Z]=new nt(h,this[m],{getAttribute:()=>this.getAttribute("result"),setAttribute:(t)=>this.setAttribute("result",t)});return this[Z]}get width(){if(!this[V])this[V]=new L(h,this[m],{getAttribute:()=>this.getAttribute("width"),setAttribute:(t)=>this.setAttribute("width",t)});return this[V]}get x(){if(!this[k])this[k]=new L(h,this[m],{getAttribute:()=>this.getAttribute("x"),setAttribute:(t)=>this.setAttribute("x",t)});return this[k]}get y(){if(!this[M])this[M]=new L(h,this[m],{getAttribute:()=>this.getAttribute("y"),setAttribute:(t)=>this.setAttribute("y",t)});return this[M]}}class md extends et{[at]=null;get in1(){if(!this[at])this[at]=new nt(h,this[m],{getAttribute:()=>this.getAttribute("in"),setAttribute:(t)=>this.setAttribute("in",t)});return this[at]}}class yd extends et{static SVG_MORPHOLOGY_OPERATOR_UNKNOWN=0;static SVG_MORPHOLOGY_OPERATOR_ERODE=1;static SVG_MORPHOLOGY_OPERATOR_DILATE=2;[F]=null;[at]=null;[By]=null;[Oy]=null;[Gy]=null;[Z]=null;[V]=null;[k]=null;[M]=null;get height(){if(!this[F])this[F]=new L(h,this[m],{getAttribute:()=>this.getAttribute("height"),setAttribute:(t)=>this.setAttribute("height",t)});return this[F]}get in1(){if(!this[at])this[at]=new nt(h,this[m],{getAttribute:()=>this.getAttribute("in"),setAttribute:(t)=>this.setAttribute("in",t)});return this[at]}get operator(){if(!this[By])this[By]=new Tt(h,this[m],{getAttribute:()=>this.getAttribute("operator"),setAttribute:(t)=>this.setAttribute("operator",t),values:["erode","dilate"],defaultValue:"erode"});return this[By]}get radiusX(){if(!this[Oy])this[Oy]=new ut(h,this[m],{getAttribute:()=>this.getAttribute("radiusX"),setAttribute:(t)=>this.setAttribute("radiusX",t)});return this[Oy]}get radiusY(){if(!this[Gy])this[Gy]=new ut(h,this[m],{getAttribute:()=>this.getAttribute("radiusY"),setAttribute:(t)=>this.setAttribute("radiusY",t)});return this[Gy]}get result(){if(!this[Z])this[Z]=new nt(h,this[m],{getAttribute:()=>this.getAttribute("result"),setAttribute:(t)=>this.setAttribute("result",t)});return this[Z]}get width(){if(!this[V])this[V]=new L(h,this[m],{getAttribute:()=>this.getAttribute("width"),setAttribute:(t)=>this.setAttribute("width",t)});return this[V]}get x(){if(!this[k])this[k]=new L(h,this[m],{getAttribute:()=>this.getAttribute("x"),setAttribute:(t)=>this.setAttribute("x",t)});return this[k]}get y(){if(!this[M])this[M]=new L(h,this[m],{getAttribute:()=>this.getAttribute("y"),setAttribute:(t)=>this.setAttribute("y",t)});return this[M]}}class pd extends et{[F]=null;[at]=null;[bo]=null;[go]=null;[Z]=null;[V]=null;[k]=null;[M]=null;get height(){if(!this[F])this[F]=new L(h,this[m],{getAttribute:()=>this.getAttribute("height"),setAttribute:(t)=>this.setAttribute("height",t)});return this[F]}get in1(){if(!this[at])this[at]=new nt(h,this[m],{getAttribute:()=>this.getAttribute("in"),setAttribute:(t)=>this.setAttribute("in",t)});return this[at]}get dx(){if(!this[bo])this[bo]=new ut(h,this[m],{getAttribute:()=>this.getAttribute("dx"),setAttribute:(t)=>this.setAttribute("dx",t)});return this[bo]}get dy(){if(!this[go])this[go]=new ut(h,this[m],{getAttribute:()=>this.getAttribute("dy"),setAttribute:(t)=>this.setAttribute("dy",t)});return this[go]}get result(){if(!this[Z])this[Z]=new nt(h,this[m],{getAttribute:()=>this.getAttribute("result"),setAttribute:(t)=>this.setAttribute("result",t)});return this[Z]}get width(){if(!this[V])this[V]=new L(h,this[m],{getAttribute:()=>this.getAttribute("width"),setAttribute:(t)=>this.setAttribute("width",t)});return this[V]}get x(){if(!this[k])this[k]=new L(h,this[m],{getAttribute:()=>this.getAttribute("x"),setAttribute:(t)=>this.setAttribute("x",t)});return this[k]}get y(){if(!this[M])this[M]=new L(h,this[m],{getAttribute:()=>this.getAttribute("y"),setAttribute:(t)=>this.setAttribute("y",t)});return this[M]}}class ud extends et{[k]=null;[M]=null;[Ir]=null;get x(){if(!this[k])this[k]=new ut(h,this[m],{getAttribute:()=>this.getAttribute("x"),setAttribute:(t)=>this.setAttribute("x",t)});return this[k]}get y(){if(!this[M])this[M]=new ut(h,this[m],{getAttribute:()=>this.getAttribute("y"),setAttribute:(t)=>this.setAttribute("y",t)});return this[M]}get z(){if(!this[Ir])this[Ir]=new ut(h,this[m],{getAttribute:()=>this.getAttribute("z"),setAttribute:(t)=>this.setAttribute("z",t)});return this[Ir]}}class hd extends et{[F]=null;[at]=null;[ho]=null;[co]=null;[Z]=null;[Uy]=null;[as]=null;[ss]=null;[V]=null;[k]=null;[M]=null;get height(){if(!this[F])this[F]=new L(h,this[m],{getAttribute:()=>this.getAttribute("height"),setAttribute:(t)=>this.setAttribute("height",t)});return this[F]}get in1(){if(!this[at])this[at]=new nt(h,this[m],{getAttribute:()=>this.getAttribute("in"),setAttribute:(t)=>this.setAttribute("in",t)});return this[at]}get kernelUnitLengthX(){if(!this[ho])this[ho]=new ut(h,this[m],{getAttribute:()=>this.getAttribute("kernelUnitLengthX"),setAttribute:(t)=>this.setAttribute("kernelUnitLengthX",t)});return this[ho]}get kernelUnitLengthY(){if(!this[co])this[co]=new ut(h,this[m],{getAttribute:()=>this.getAttribute("kernelUnitLengthY"),setAttribute:(t)=>this.setAttribute("kernelUnitLengthY",t)});return this[co]}get result(){if(!this[Z])this[Z]=new nt(h,this[m],{getAttribute:()=>this.getAttribute("result"),setAttribute:(t)=>this.setAttribute("result",t)});return this[Z]}get specularConstant(){if(!this[Uy])this[Uy]=new ut(h,this[m],{getAttribute:()=>this.getAttribute("specularConstant"),setAttribute:(t)=>this.setAttribute("specularConstant",t),defaultValue:1});return this[Uy]}get specularExponent(){if(!this[as])this[as]=new ut(h,this[m],{getAttribute:()=>this.getAttribute("specularExponent"),setAttribute:(t)=>this.setAttribute("specularExponent",t),defaultValue:1});return this[as]}get surfaceScale(){if(!this[ss])this[ss]=new ut(h,this[m],{getAttribute:()=>this.getAttribute("surfaceScale"),setAttribute:(t)=>this.setAttribute("surfaceScale",t),defaultValue:1});return this[ss]}get width(){if(!this[V])this[V]=new L(h,this[m],{getAttribute:()=>this.getAttribute("width"),setAttribute:(t)=>this.setAttribute("width",t)});return this[V]}get x(){if(!this[k])this[k]=new L(h,this[m],{getAttribute:()=>this.getAttribute("x"),setAttribute:(t)=>this.setAttribute("x",t)});return this[k]}get y(){if(!this[M])this[M]=new L(h,this[m],{getAttribute:()=>this.getAttribute("y"),setAttribute:(t)=>this.setAttribute("y",t)});return this[M]}}class cd extends et{[k]=null;[M]=null;[Ir]=null;[Hy]=null;[Wy]=null;[_y]=null;[as]=null;[Yy]=null;get x(){if(!this[k])this[k]=new ut(h,this[m],{getAttribute:()=>this.getAttribute("x"),setAttribute:(t)=>this.setAttribute("x",t)});return this[k]}get y(){if(!this[M])this[M]=new ut(h,this[m],{getAttribute:()=>this.getAttribute("y"),setAttribute:(t)=>this.setAttribute("y",t)});return this[M]}get z(){if(!this[Ir])this[Ir]=new ut(h,this[m],{getAttribute:()=>this.getAttribute("z"),setAttribute:(t)=>this.setAttribute("z",t)});return this[Ir]}get pointsAtX(){if(!this[Hy])this[Hy]=new ut(h,this[m],{getAttribute:()=>this.getAttribute("pointsAtX"),setAttribute:(t)=>this.setAttribute("pointsAtX",t)});return this[Hy]}get pointsAtY(){if(!this[Wy])this[Wy]=new ut(h,this[m],{getAttribute:()=>this.getAttribute("pointsAtY"),setAttribute:(t)=>this.setAttribute("pointsAtY",t)});return this[Wy]}get pointsAtZ(){if(!this[_y])this[_y]=new ut(h,this[m],{getAttribute:()=>this.getAttribute("pointsAtZ"),setAttribute:(t)=>this.setAttribute("pointsAtZ",t)});return this[_y]}get specularExponent(){if(!this[as])this[as]=new ut(h,this[m],{getAttribute:()=>this.getAttribute("specularExponent"),setAttribute:(t)=>this.setAttribute("specularExponent",t),defaultValue:1});return this[as]}get limitingConeAngle(){if(!this[Yy])this[Yy]=new ut(h,this[m],{getAttribute:()=>this.getAttribute("limitingConeAngle"),setAttribute:(t)=>this.setAttribute("limitingConeAngle",t)});return this[Yy]}}class dd extends et{[F]=null;[at]=null;[Z]=null;[V]=null;[k]=null;[M]=null;get height(){if(!this[F])this[F]=new L(h,this[m],{getAttribute:()=>this.getAttribute("height"),setAttribute:(t)=>this.setAttribute("height",t)});return this[F]}get in1(){if(!this[at])this[at]=new nt(h,this[m],{getAttribute:()=>this.getAttribute("in"),setAttribute:(t)=>this.setAttribute("in",t)});return this[at]}get result(){if(!this[Z])this[Z]=new nt(h,this[m],{getAttribute:()=>this.getAttribute("result"),setAttribute:(t)=>this.setAttribute("result",t)});return this[Z]}get width(){if(!this[V])this[V]=new L(h,this[m],{getAttribute:()=>this.getAttribute("width"),setAttribute:(t)=>this.setAttribute("width",t)});return this[V]}get x(){if(!this[k])this[k]=new L(h,this[m],{getAttribute:()=>this.getAttribute("x"),setAttribute:(t)=>this.setAttribute("x",t)});return this[k]}get y(){if(!this[M])this[M]=new L(h,this[m],{getAttribute:()=>this.getAttribute("y"),setAttribute:(t)=>this.setAttribute("y",t)});return this[M]}}class bd extends et{static SVG_TURBULENCE_TYPE_UNKNOWN=0;static SVG_TURBULENCE_TYPE_FRACTALNOISE=1;static SVG_TURBULENCE_TYPE_TURBULENCE=2;static SVG_STITCHTYPE_UNKNOWN=0;static SVG_STITCHTYPE_STITCH=1;static SVG_STITCHTYPE_NOSTITCH=2;[Ky]=null;[Qy]=null;[F]=null;[jy]=null;[Z]=null;[qy]=null;[$y]=null;[Qt]=null;[V]=null;[k]=null;[M]=null;get baseFrequencyX(){if(!this[Ky])this[Ky]=new ut(h,this[m],{getAttribute:()=>this.getAttribute("baseFrequencyX"),setAttribute:(t)=>this.setAttribute("baseFrequencyX",t)});return this[Ky]}get baseFrequencyY(){if(!this[Qy])this[Qy]=new ut(h,this[m],{getAttribute:()=>this.getAttribute("baseFrequencyY"),setAttribute:(t)=>this.setAttribute("baseFrequencyY",t)});return this[Qy]}get height(){if(!this[F])this[F]=new L(h,this[m],{getAttribute:()=>this.getAttribute("height"),setAttribute:(t)=>this.setAttribute("height",t)});return this[F]}get numOctaves(){if(!this[jy])this[jy]=new Fi(h,this[m],{getAttribute:()=>this.getAttribute("numOctaves"),setAttribute:(t)=>this.setAttribute("numOctaves",t)});return this[jy]}get result(){if(!this[Z])this[Z]=new nt(h,this[m],{getAttribute:()=>this.getAttribute("result"),setAttribute:(t)=>this.setAttribute("result",t)});return this[Z]}get seed(){if(!this[qy])this[qy]=new ut(h,this[m],{getAttribute:()=>this.getAttribute("seed"),setAttribute:(t)=>this.setAttribute("seed",t)});return this[qy]}get stitchTiles(){if(!this[$y])this[$y]=new Tt(h,this[m],{getAttribute:()=>this.getAttribute("stitchTiles"),setAttribute:(t)=>this.setAttribute("stitchTiles",t),values:["stitch","noStitch"],defaultValue:"stitch"});return this[$y]}get type(){if(!this[Qt])this[Qt]=new Tt(h,this[m],{getAttribute:()=>this.getAttribute("type"),setAttribute:(t)=>this.setAttribute("type",t),values:["fractalNoise","turbulence"],defaultValue:"turbulence"});return this[Qt]}get width(){if(!this[V])this[V]=new L(h,this[m],{getAttribute:()=>this.getAttribute("width"),setAttribute:(t)=>this.setAttribute("width",t)});return this[V]}get x(){if(!this[k])this[k]=new L(h,this[m],{getAttribute:()=>this.getAttribute("x"),setAttribute:(t)=>this.setAttribute("x",t)});return this[k]}get y(){if(!this[M])this[M]=new L(h,this[m],{getAttribute:()=>this.getAttribute("y"),setAttribute:(t)=>this.setAttribute("y",t)});return this[M]}}class gd extends et{[Lt]=null;[ey]=null;[ry]=null;[k]=null;[M]=null;[V]=null;[F]=null;get href(){if(!this[Lt])this[Lt]=new nt(h,this[m],{getAttribute:()=>this.getAttribute("href"),setAttribute:(t)=>this.setAttribute("href",t)});return this[Lt]}get filterUnits(){if(!this[ey])this[ey]=new Tt(h,this[m],{getAttribute:()=>this.getAttribute("filterUnits"),setAttribute:(t)=>this.setAttribute("filterUnits",t),values:["userSpaceOnUse","objectBoundingBox"],defaultValue:"userSpaceOnUse"});return this[ey]}get primitiveUnits(){if(!this[ry])this[ry]=new Tt(h,this[m],{getAttribute:()=>this.getAttribute("primitiveUnits"),setAttribute:(t)=>this.setAttribute("primitiveUnits",t),values:["userSpaceOnUse","objectBoundingBox"],defaultValue:"userSpaceOnUse"});return this[ry]}get height(){if(!this[F])this[F]=new L(h,this[m],{getAttribute:()=>this.getAttribute("height"),setAttribute:(t)=>this.setAttribute("height",t)});return this[F]}get width(){if(!this[V])this[V]=new L(h,this[m],{getAttribute:()=>this.getAttribute("width"),setAttribute:(t)=>this.setAttribute("width",t)});return this[V]}get x(){if(!this[k])this[k]=new L(h,this[m],{getAttribute:()=>this.getAttribute("x"),setAttribute:(t)=>this.setAttribute("x",t)});return this[k]}get y(){if(!this[M])this[M]=new L(h,this[m],{getAttribute:()=>this.getAttribute("y"),setAttribute:(t)=>this.setAttribute("y",t)});return this[M]}}class Sd extends Ae{[k]=null;[M]=null;[V]=null;[F]=null;get height(){if(!this[F])this[F]=new L(h,this[m],{getAttribute:()=>this.getAttribute("height"),setAttribute:(t)=>this.setAttribute("height",t)});return this[F]}get width(){if(!this[V])this[V]=new L(h,this[m],{getAttribute:()=>this.getAttribute("width"),setAttribute:(t)=>this.setAttribute("width",t)});return this[V]}get x(){if(!this[k])this[k]=new L(h,this[m],{getAttribute:()=>this.getAttribute("x"),setAttribute:(t)=>this.setAttribute("x",t)});return this[k]}get y(){if(!this[M])this[M]=new L(h,this[m],{getAttribute:()=>this.getAttribute("y"),setAttribute:(t)=>this.setAttribute("y",t)});return this[M]}}class fd extends Ae{}class Pd extends Ae{[Lt]=null;[ar]=null;[k]=null;[M]=null;[V]=null;[F]=null;get crossOrigin(){return this.getAttribute("crossorigin")}set crossOrigin(t){this.setAttribute("crossorigin",t)}get href(){if(!this[Lt])this[Lt]=new nt(h,this[m],{getAttribute:()=>this.getAttribute("href"),setAttribute:(t)=>this.setAttribute("href",t)});return this[Lt]}get decoding(){let t=this.getAttribute("decoding");switch(t){case"sync":case"async":case"auto":return t;default:return"auto"}}set decoding(t){this.setAttribute("decoding",t)}get preserveAspectRatio(){if(!this[ar])this[ar]=new yi(h,this[m],{getAttribute:()=>this.getAttribute("preserveAspectRatio"),setAttribute:(t)=>this.setAttribute("preserveAspectRatio",t)});return this[ar]}get height(){if(!this[F])this[F]=new L(h,this[m],{getAttribute:()=>this.getAttribute("height"),setAttribute:(t)=>this.setAttribute("height",t)});return this[F]}get width(){if(!this[V])this[V]=new L(h,this[m],{getAttribute:()=>this.getAttribute("width"),setAttribute:(t)=>this.setAttribute("width",t)});return this[V]}get x(){if(!this[k])this[k]=new L(h,this[m],{getAttribute:()=>this.getAttribute("x"),setAttribute:(t)=>this.setAttribute("x",t)});return this[k]}get y(){if(!this[M])this[M]=new L(h,this[m],{getAttribute:()=>this.getAttribute("y"),setAttribute:(t)=>this.setAttribute("y",t)});return this[M]}decode(){return Promise.resolve()}}class Ad extends Nr{[Ji]=null;[Zi]=null;[ts]=null;[es]=null;get x1(){if(!this[Ji])this[Ji]=new L(h,this[m],{getAttribute:()=>this.getAttribute("x1"),setAttribute:(t)=>this.setAttribute("x1",t)});return this[Ji]}get y1(){if(!this[Zi])this[Zi]=new L(h,this[m],{getAttribute:()=>this.getAttribute("y1"),setAttribute:(t)=>this.setAttribute("y1",t)});return this[Zi]}get x2(){if(!this[ts])this[ts]=new L(h,this[m],{getAttribute:()=>this.getAttribute("x2"),setAttribute:(t)=>this.setAttribute("x2",t)});return this[ts]}get y2(){if(!this[es])this[es]=new L(h,this[m],{getAttribute:()=>this.getAttribute("y2"),setAttribute:(t)=>this.setAttribute("y2",t)});return this[es]}}class fl extends Ae{static SVG_SPREADMETHOD_UNKNOWN=0;static SVG_SPREADMETHOD_PAD=1;static SVG_SPREADMETHOD_REFLECT=2;static SVG_SPREADMETHOD_REPEAT=3;[Lt]=null;[oy]=null;[iy]=null;[sy]=null;get href(){if(!this[Lt])this[Lt]=new nt(h,this[m],{getAttribute:()=>this.getAttribute("href"),setAttribute:(t)=>this.setAttribute("href",t)});return this[Lt]}get gradientUnits(){if(!this[oy])this[oy]=new Tt(h,this[m],{getAttribute:()=>this.getAttribute("gradientUnits"),setAttribute:(t)=>this.setAttribute("gradientUnits",t),values:["userSpaceOnUse","objectBoundingBox"],defaultValue:"objectBoundingBox"});return this[oy]}get gradientTransform(){if(!this[iy])this[iy]=new vs(h,this[m],{getAttribute:()=>this.getAttribute("gradientTransform"),setAttribute:(t)=>this.setAttribute("gradientTransform",t)});return this[iy]}get spreadMethod(){if(!this[sy])this[sy]=new Tt(h,this[m],{getAttribute:()=>this.getAttribute("spreadMethod"),setAttribute:(t)=>this.setAttribute("spreadMethod",t),values:["pad","reflect","repeat"],defaultValue:"pad"});return this[sy]}}class wd extends fl{[Ji]=null;[Zi]=null;[ts]=null;[es]=null;get x1(){if(!this[Ji])this[Ji]=new L(h,this[m],{getAttribute:()=>this.getAttribute("x1"),setAttribute:(t)=>this.setAttribute("x1",t)});return this[Ji]}get y1(){if(!this[Zi])this[Zi]=new L(h,this[m],{getAttribute:()=>this.getAttribute("y1"),setAttribute:(t)=>this.setAttribute("y1",t)});return this[Zi]}get x2(){if(!this[ts])this[ts]=new L(h,this[m],{getAttribute:()=>this.getAttribute("x2"),setAttribute:(t)=>this.setAttribute("x2",t)});return this[ts]}get y2(){if(!this[es])this[es]=new L(h,this[m],{getAttribute:()=>this.getAttribute("y2"),setAttribute:(t)=>this.setAttribute("y2",t)});return this[es]}}class Sm{[m];[v];[A];[se]=null;[ne]=null;constructor(t,e,o){if(t!==h)throw TypeError("Illegal constructor");this[m]=e,this[v]=o.getAttribute,this[A]=o.setAttribute}get animVal(){if(!this[ne])this[ne]=new Sn(h,this[m],{readOnly:!0,getAttribute:this[v]});return this[ne]}set animVal(t){}get baseVal(){if(!this[se])this[se]=new Sn(h,this[m],{getAttribute:this[v],setAttribute:this[A]});return this[se]}set baseVal(t){}}class Ed extends et{static SVG_MARKER_ORIENT_UNKNOWN=0;static SVG_MARKER_ORIENT_AUTO=1;static SVG_MARKER_ORIENT_ANGLE=2;static SVG_MARKERUNITS_UNKNOWN=0;static SVG_MARKERUNITS_USERSPACEONUSE=1;static SVG_MARKERUNITS_STROKEWIDTH=2;SVG_MARKER_ORIENT_UNKNOWN=0;SVG_MARKER_ORIENT_AUTO=1;SVG_MARKER_ORIENT_ANGLE=2;[Km]=null;[Qm]=null;[jm]=null;[qm]=null;[$m]=null;[Xm]=null;[zm]=null;[Qi]=null;[ar]=null;get markerUnits(){if(!this[Km])this[Km]=new Tt(h,this[m],{getAttribute:()=>this.getAttribute("markerUnits"),setAttribute:(t)=>this.setAttribute("markerUnits",t),values:["userSpaceOnUse","strokeWidth"],defaultValue:"strokeWidth"});return this[Km]}get markerWidth(){if(!this[Qm])this[Qm]=new L(h,this[m],{getAttribute:()=>this.getAttribute("markerWidth"),setAttribute:(t)=>this.setAttribute("markerWidth",t)});return this[Qm]}get markerHeight(){if(!this[jm])this[jm]=new L(h,this[m],{getAttribute:()=>this.getAttribute("markerHeight"),setAttribute:(t)=>this.setAttribute("markerHeight",t)});return this[jm]}get orientType(){if(!this[qm])this[qm]=new Tt(h,this[m],{getAttribute:()=>this.getAttribute("orient"),setAttribute:(t)=>this.setAttribute("orient",t),values:["auto",null],defaultValue:"auto"});return this[qm]}get orientAngle(){if(!this[$m])this[$m]=new Sm(h,this[m],{getAttribute:()=>this.getAttribute("orient"),setAttribute:(t)=>this.setAttribute("orient",t)});return this[$m]}get refX(){if(!this[Xm])this[Xm]=new L(h,this[m],{getAttribute:()=>this.getAttribute("refX"),setAttribute:(t)=>this.setAttribute("refX",t)});return this[Xm]}get refY(){if(!this[zm])this[zm]=new L(h,this[m],{getAttribute:()=>this.getAttribute("refY"),setAttribute:(t)=>this.setAttribute("refY",t)});return this[zm]}get viewBox(){if(!this[Qi])this[Qi]=new gl(h,this[m],{getAttribute:()=>this.getAttribute("viewBox"),setAttribute:(t)=>this.setAttribute("viewBox",t)});return this[Qi]}get preserveAspectRatio(){if(!this[ar])this[ar]=new yi(h,this[m],{getAttribute:()=>this.getAttribute("preserveAspectRatio"),setAttribute:(t)=>this.setAttribute("preserveAspectRatio",t)});return this[ar]}setOrientToAuto(){this.setAttribute("orient","auto")}setOrientToAngle(t){this.setAttribute("orient",t.valueAsString)}}class xd extends et{[Zm]=null;[ty]=null;[k]=null;[M]=null;[V]=null;[F]=null;get maskUnits(){if(!this[Zm])this[Zm]=new Tt(h,this[m],{getAttribute:()=>this.getAttribute("maskUnits"),setAttribute:(t)=>this.setAttribute("maskUnits",t),values:["userSpaceOnUse","objectBoundingBox"],defaultValue:"userSpaceOnUse"});return this[Zm]}get maskContentUnits(){if(!this[ty])this[ty]=new Tt(h,this[m],{getAttribute:()=>this.getAttribute("maskContentUnits"),setAttribute:(t)=>this.setAttribute("maskContentUnits",t),values:["userSpaceOnUse","objectBoundingBox"],defaultValue:"userSpaceOnUse"});return this[ty]}get width(){if(!this[V])this[V]=new L(h,this[m],{getAttribute:()=>this.getAttribute("width"),setAttribute:(t)=>this.setAttribute("width",t)});return this[V]}get height(){if(!this[F])this[F]=new L(h,this[m],{getAttribute:()=>this.getAttribute("height"),setAttribute:(t)=>this.setAttribute("height",t)});return this[F]}get x(){if(!this[k])this[k]=new L(h,this[m],{getAttribute:()=>this.getAttribute("x"),setAttribute:(t)=>this.setAttribute("x",t)});return this[k]}get y(){if(!this[M])this[M]=new L(h,this[m],{getAttribute:()=>this.getAttribute("y"),setAttribute:(t)=>this.setAttribute("y",t)});return this[M]}}class vd extends et{}class Td extends et{[Lt]=null;get href(){if(!this[Lt])this[Lt]=new nt(h,this[m],{getAttribute:()=>this.getAttribute("href"),setAttribute:(t)=>this.setAttribute("href",t)});return this[Lt]}}class Cd extends Nr{}class Nd extends et{[Lt]=null;[ny]=null;[ly]=null;[ay]=null;[k]=null;[M]=null;[V]=null;[F]=null;get href(){if(!this[Lt])this[Lt]=new nt(h,this[m],{getAttribute:()=>this.getAttribute("href"),setAttribute:(t)=>this.setAttribute("href",t)});return this[Lt]}get patternUnits(){if(!this[ny])this[ny]=new Tt(h,this[m],{getAttribute:()=>this.getAttribute("patternUnits"),setAttribute:(t)=>this.setAttribute("patternUnits",t),values:["userSpaceOnUse","objectBoundingBox"],defaultValue:"objectBoundingBox"});return this[ny]}get patternContentUnits(){if(!this[ly])this[ly]=new Tt(h,this[m],{getAttribute:()=>this.getAttribute("patternContentUnits"),setAttribute:(t)=>this.setAttribute("patternContentUnits",t),values:["userSpaceOnUse","objectBoundingBox"],defaultValue:"userSpaceOnUse"});return this[ly]}get patternTransform(){if(!this[ay])this[ay]=new vs(h,this[m],{getAttribute:()=>this.getAttribute("patternTransform"),setAttribute:(t)=>this.setAttribute("patternTransform",t)});return this[ay]}get width(){if(!this[V])this[V]=new L(h,this[m],{getAttribute:()=>this.getAttribute("width"),setAttribute:(t)=>this.setAttribute("width",t)});return this[V]}get height(){if(!this[F])this[F]=new L(h,this[m],{getAttribute:()=>this.getAttribute("height"),setAttribute:(t)=>this.setAttribute("height",t)});return this[F]}get x(){if(!this[k])this[k]=new L(h,this[m],{getAttribute:()=>this.getAttribute("x"),setAttribute:(t)=>this.setAttribute("x",t)});return this[k]}get y(){if(!this[M])this[M]=new L(h,this[m],{getAttribute:()=>this.getAttribute("y"),setAttribute:(t)=>this.setAttribute("y",t)});return this[M]}}var uw=/[\t\f\n\r, ]+/;class Vi{[m];[v];[A];[j]=!1;[U]={items:[],attributeValue:""};constructor(t,e,o){if(t!==h)throw TypeError("Illegal constructor");this[m]=e,this[j]=!!o.readOnly,this[v]=o.getAttribute,this[A]=o.setAttribute;let s=new fe(this,[Vi]);return new Proxy(this,{get:(n,l)=>{if(l==="length"||l==="numberOfItems")return n[K]().length;if(l in n||typeof l==="symbol")return s.bind(l),n[l];let a=Number(l);if(!isNaN(a))return n[K]()[a]},set(n,l,a){if(s.bind(l),typeof l==="symbol")return n[l]=a,!0;let y=Number(l);if(isNaN(y))n[l]=a;return!0},deleteProperty(n,l){if(typeof l==="symbol")return delete n[l],!0;let a=Number(l);if(isNaN(a))delete n[l];return!0},ownKeys(n){return Object.keys(n[K]())},has(n,l){if(l in n)return!0;if(typeof l==="symbol")return!1;let a=Number(l);return!isNaN(a)&&a>=0&&a<n[K]().length},defineProperty(n,l,a){if(s.preventBinding(l),l in n)return Object.defineProperty(n,l,a),!0;return!1},getOwnPropertyDescriptor(n,l){if(l in n||typeof l==="symbol")return;let a=Number(l),y=n[K]();if(!isNaN(a)&&y[a])return{value:y[a],writable:!1,enumerable:!0,configurable:!0}}})}get length(){return this[K]().length}get numberOfItems(){return this[K]().length}[Symbol.iterator](){return this[K]().values()}clear(){if(this[j])throw new this[m].TypeError("Failed to execute 'clear' on 'SVGPointList': The object is read-only.");for(let t of this[U].items)t[v]=null,t[A]=null;this[U].items=[],this[U].attributeValue="",this[A]("")}initialize(t){if(this[j])throw new this[m].TypeError("Failed to execute 'initialize' on 'SVGPointList': The object is read-only.");if(arguments.length<1)throw new this[m].TypeError(`Failed to execute 'initialize' on 'SVGPointList': 1 arguments required, but only ${arguments.length} present.`);if(!(t instanceof pr))throw new this[m].TypeError("Failed to execute 'appendItem' on 'SVGPointList': parameter 1 is not of type 'SVGPoint'.");for(let e of this[U].items)e[v]=null,e[A]=null;return t[v]=()=>t[I],t[A]=()=>{this[U].attributeValue=this[K]().map((e)=>e[I]||"0 0").join(" "),this[A](this[U].attributeValue)},this[U].items=[t],this[U].attributeValue=t[I],this[A](t[I]||""),t}getItem(t){let e=this[K]();if(typeof t==="number")return e[t]?e[t]:null;return t=Number(t),t=isNaN(t)?0:t,e[t]?e[t]:null}insertItemBefore(t,e){if(this[j])throw new this[m].TypeError("Failed to execute 'insertItemBefore' on 'SVGPointList': The object is read-only.");if(arguments.length<2)throw new this[m].TypeError(`Failed to execute 'insertItemBefore' on 'SVGPointList': 2 arguments required, but only ${arguments.length} present.`);if(!(t instanceof pr))throw new this[m].TypeError("Failed to execute 'insertItemBefore' on 'SVGPointList': parameter 1 is not of type 'SVGPoint'.");let o=this[K](),s=o.indexOf(t);if(s!==-1)o.splice(s,1);if(e<0)e=0;else if(e>o.length)e=o.length;return o.splice(e,0,t),t[v]=()=>t[I],t[A]=()=>{this[U].attributeValue=this[K]().map((n)=>n[I]||"0 0").join(" "),this[A](this[U].attributeValue)},this[U].attributeValue=o.map((n)=>n[I]||"0 0").join(" "),this[A](this[U].attributeValue),t}replaceItem(t,e){if(this[j])throw new this[m].TypeError("Failed to execute 'replaceItem' on 'SVGPointList': The object is read-only.");if(arguments.length<2)throw new this[m].TypeError(`Failed to execute 'replaceItem' on 'SVGPointList': 2 arguments required, but only ${arguments.length} present.`);if(!(t instanceof pr))throw new this[m].TypeError("Failed to execute 'replaceItem' on 'SVGPointList': parameter 1 is not of type 'SVGPoint'.");let o=this[K](),s=o.indexOf(t);if(s===e)return t;if(s!==-1)o.splice(s,1);if(e<0)e=0;else if(e>=o.length)e=o.length-1;if(o[e])o[e][v]=null,o[e][A]=null;let n=o[e];return o[e]=t,t[v]=()=>t[I],t[A]=()=>{this[U].attributeValue=this[K]().map((l)=>l[I]||"0 0").join(" "),this[A](this[U].attributeValue)},this[U].attributeValue=o.map((l)=>l[I]||"0 0").join(" "),this[A](this[U].attributeValue),n}removeItem(t){if(this[j])throw new this[m].TypeError("Failed to execute 'removeItem' on 'SVGPointList': The object is read-only.");if(arguments.length<1)throw new this[m].TypeError(`Failed to execute 'removeItem' on 'SVGPointList': 1 argument required, but only ${arguments.length} present.`);let e=this[K]();if(t=Number(t),isNaN(t))t=0;if(t>=e.length)throw new this[m].DOMException(`Failed to execute 'removeItem' on 'SVGPointList': The index provided (${t}) is greater than the maximum bound.`,w.indexSizeError);if(t<0)throw new this[m].DOMException(`Failed to execute 'removeItem' on 'SVGPointList': The index provided (${t}) is negative.`,w.indexSizeError);let o=e[t];if(o)o[v]=null,o[A]=null;return e.splice(t,1),this[A](e.map((s)=>s[I]||"0 0").join(" ")),o}appendItem(t){if(this[j])throw new this[m].TypeError("Failed to execute 'appendItem' on 'SVGPointList': The object is read-only.");if(arguments.length<1)throw new this[m].TypeError(`Failed to execute 'appendItem' on 'SVGPointList': 1 argument required, but only ${arguments.length} present.`);if(!(t instanceof pr))throw new this[m].TypeError("Failed to execute 'appendItem' on 'SVGPointList': parameter 1 is not of type 'SVGPoint'.");let e=this[K](),o=e.indexOf(t);if(o!==-1)e.splice(o,1);return e.push(t),t[v]=()=>t[I],t[A]=()=>{this[U].attributeValue=this[K]().map((s)=>s[I]||"0 0").join(" "),this[A](this[U].attributeValue)},this[U].attributeValue=e.map((s)=>s[I]||"0 0").join(" "),this[A](this[U].attributeValue),t}[K](){let t=this[v]()??"",e=this[U];if(e.attributeValue===t)return e.items;if(e.items.length)for(let n of e.items)n[v]=null,n[A]=null;let o=[],s=t.trim();if(s){let n=s.split(uw);for(let l=0,a=n.length;l<a;l+=2){let y=parseFloat(n[l]),u=n[l+1]!==void 0?" "+parseFloat(n[l+1]):"",c=new pr(h,this[m],{readOnly:this[j],getAttribute:()=>c[I],setAttribute:()=>{this[U].attributeValue=this[K]().map((d)=>d[I]||"0 0").join(" "),this[A](this[U].attributeValue)}});c[I]=`${y}${u}`,o.push(c)}}return e.attributeValue=t,e.items=o,o}}class Ld extends Nr{[ji]=null;[qi]=null;get animatedPoints(){if(!this[ji])this[ji]=new Vi(h,this[m],{readOnly:!0,getAttribute:()=>this.getAttribute("points"),setAttribute:()=>{}});return this[ji]}get points(){if(!this[qi])this[qi]=new Vi(h,this[m],{getAttribute:()=>this.getAttribute("points"),setAttribute:(t)=>this.setAttribute("points",t)});return this[qi]}}class kd extends Nr{[ji]=null;[qi]=null;get animatedPoints(){if(!this[ji])this[ji]=new Vi(h,this[m],{readOnly:!0,getAttribute:()=>this.getAttribute("points"),setAttribute:()=>{}});return this[ji]}get points(){if(!this[qi])this[qi]=new Vi(h,this[m],{getAttribute:()=>this.getAttribute("points"),setAttribute:(t)=>this.setAttribute("points",t)});return this[qi]}}class Md extends fl{[yo]=null;[po]=null;[zi]=null;[my]=null;[yy]=null;get cx(){if(!this[yo])this[yo]=new L(h,this[m],{getAttribute:()=>this.getAttribute("cx"),setAttribute:(t)=>this.setAttribute("cx",t)});return this[yo]}get cy(){if(!this[po])this[po]=new L(h,this[m],{getAttribute:()=>this.getAttribute("cy"),setAttribute:(t)=>this.setAttribute("cy",t)});return this[po]}get r(){if(!this[zi])this[zi]=new L(h,this[m],{getAttribute:()=>this.getAttribute("r"),setAttribute:(t)=>this.setAttribute("r",t)});return this[zi]}get fx(){if(!this[my])this[my]=new L(h,this[m],{getAttribute:()=>this.getAttribute("fx"),setAttribute:(t)=>this.setAttribute("fx",t)});return this[my]}get fy(){if(!this[yy])this[yy]=new L(h,this[m],{getAttribute:()=>this.getAttribute("fy"),setAttribute:(t)=>this.setAttribute("fy",t)});return this[yy]}}class Id extends Nr{[k]=null;[M]=null;[V]=null;[F]=null;[$i]=null;[Xi]=null;get x(){if(!this[k])this[k]=new L(h,this[m],{getAttribute:()=>this.getAttribute("x"),setAttribute:(t)=>this.setAttribute("x",t)});return this[k]}get y(){if(!this[M])this[M]=new L(h,this[m],{getAttribute:()=>this.getAttribute("y"),setAttribute:(t)=>this.setAttribute("y",t)});return this[M]}get height(){if(!this[F])this[F]=new L(h,this[m],{getAttribute:()=>this.getAttribute("height"),setAttribute:(t)=>this.setAttribute("height",t)});return this[F]}get width(){if(!this[V])this[V]=new L(h,this[m],{getAttribute:()=>this.getAttribute("width"),setAttribute:(t)=>this.setAttribute("width",t)});return this[V]}get rx(){if(!this[$i])this[$i]=new L(h,this[m],{getAttribute:()=>this.getAttribute("rx"),setAttribute:(t)=>this.setAttribute("rx",t)});return this[$i]}get ry(){if(!this[Xi])this[Xi]=new L(h,this[m],{getAttribute:()=>this.getAttribute("ry"),setAttribute:(t)=>this.setAttribute("ry",t)});return this[Xi]}}class Rd extends Ae{[Lt]=null;get href(){if(!this[Lt])this[Lt]=new nt(h,this[m],{getAttribute:()=>this.getAttribute("href"),setAttribute:(t)=>this.setAttribute("href",t)});return this[Lt]}get type(){return this.getAttribute("type")||""}set type(t){this.setAttribute("type",t)}}class Fd extends pi{}class Vd extends et{[rs]=null;get offset(){if(!this[rs])this[rs]=new ut(h,this[m],{getAttribute:()=>this.getAttribute("offset"),setAttribute:(t)=>this.setAttribute("offset",t)});return this[rs]}}class Dd extends et{[Be]=null;[dr]=this;[_n]=!1;get media(){return this.getAttribute("media")||"all"}set media(t){this.setAttribute("media",t)}get type(){return this.getAttribute("type")||"text/css"}set type(t){this.setAttribute("type",t)}get title(){return this.getAttribute("title")||""}set title(t){this.setAttribute("title",t)}get disabled(){return this[_n]}set disabled(t){this[_n]=Boolean(t)}get sheet(){if(!this[tt])return null;if(!this[Be])this[Be]=new this[x][m].CSSStyleSheet,this[Be].replaceSync(this.textContent);return this[Be]}[nr](){super[nr](),this[Be]=null}[At](){super[At](),this[Be]=null}[Vn](){if(this[Be])this[Be].replaceSync(this.textContent)}}class Bd extends Ae{}class Od extends Ae{}class fm extends Ae{static LENGTHADJUST_UNKNOWN=0;static LENGTHADJUST_SPACING=1;static LENGTHADJUST_SPACINGANDGLYPHS=2;[py]=null;[uy]=null;get textLength(){if(!this[py])this[py]=new L(h,this[m],{getAttribute:()=>this.getAttribute("textLength"),setAttribute:(t)=>this.setAttribute("textLength",t)});return this[py]}get lengthAdjust(){if(!this[uy])this[uy]=new Tt(h,this[m],{getAttribute:()=>this.getAttribute("lengthAdjust"),setAttribute:(t)=>this.setAttribute("lengthAdjust",t),values:["spacing","spacingAndGlyphs"],defaultValue:"spacing"});return this[uy]}getNumberOfChars(){return 0}getComputedTextLength(){return 0}getSubStringLength(t,e){return 0}getStartPositionOfChar(t){return new pr(h,this[m])}getEndPositionOfChar(t){return new pr(h,this[m])}getExtentOfChar(t){return new Mi(h,this[m])}getRotationOfChar(t){return 0}getCharNumAtPosition(t){return 0}}var hw=/[\t\f\n\r, ]+/;class Pl{[m];[v];[A];[j]=!1;[U]={items:[],attributeValue:""};constructor(t,e,o){if(t!==h)throw TypeError("Illegal constructor");this[m]=e,this[j]=!!o.readOnly,this[v]=o.getAttribute,this[A]=o.setAttribute;let s=new fe(this,[Pl]);return new Proxy(this,{get:(n,l)=>{if(l==="length"||l==="numberOfItems")return n[K]().length;if(l in n||typeof l==="symbol")return s.bind(l),n[l];let a=Number(l);if(!isNaN(a))return n[K]()[a]},set(n,l,a){if(s.bind(l),typeof l==="symbol")return n[l]=a,!0;let y=Number(l);if(isNaN(y))n[l]=a;return!0},deleteProperty(n,l){if(typeof l==="symbol")return delete n[l],!0;let a=Number(l);if(isNaN(a))delete n[l];return!0},ownKeys(n){return Object.keys(n[K]())},has(n,l){if(l in n)return!0;if(typeof l==="symbol")return!1;let a=Number(l);return!isNaN(a)&&a>=0&&a<n[K]().length},defineProperty(n,l,a){if(s.preventBinding(l),l in n)return Object.defineProperty(n,l,a),!0;return!1},getOwnPropertyDescriptor(n,l){if(l in n||typeof l==="symbol")return;let a=Number(l),y=n[K]();if(!isNaN(a)&&y[a])return{value:y[a],writable:!1,enumerable:!0,configurable:!0}}})}get length(){return this[K]().length}get numberOfItems(){return this[K]().length}[Symbol.iterator](){return this[K]().values()}clear(){this[A]("")}initialize(t){if(this[j])throw new this[m].TypeError("Failed to execute 'initialize' on 'SVGLengthList': The object is read-only.");if(arguments.length<1)throw new this[m].TypeError(`Failed to execute 'initialize' on 'SVGLengthList': 1 arguments required, but only ${arguments.length} present.`);for(let e of this[U].items)e[v]=null,e[A]=null;return t[v]=()=>t[I],t[A]=()=>{this[U].attributeValue=this[K]().map((e)=>e[I]??"0").join(" "),this[A](this[U].attributeValue)},this[U].items=[t],this[U].attributeValue=t[I],this[A](t[I]||""),t}getItem(t){let e=this[K]();if(typeof t==="number")return e[t]?e[t]:null;return t=Number(t),t=isNaN(t)?0:t,e[t]?e[t]:null}insertItemBefore(t,e){if(this[j])throw new this[m].TypeError("Failed to execute 'insertItemBefore' on 'SVGLengthList': The object is read-only.");if(arguments.length<2)throw new this[m].TypeError(`Failed to execute 'insertItemBefore' on 'SVGLengthList': 2 arguments required, but only ${arguments.length} present.`);let o=this[K](),s=o.indexOf(t);if(s!==-1)o.splice(s,1);if(e<0)e=0;else if(e>o.length)e=o.length;return o.splice(e,0,t),t[v]=()=>t[I],t[A]=()=>{this[U].attributeValue=this[K]().map((n)=>n[I]??"0").join(" "),this[A](this[U].attributeValue)},this[U].attributeValue=o.map((n)=>n[I]??"0").join(" "),this[A](this[U].attributeValue),t}replaceItem(t,e){if(this[j])throw new this[m].TypeError("Failed to execute 'replaceItem' on 'SVGLengthList': The object is read-only.");if(arguments.length<2)throw new this[m].TypeError(`Failed to execute 'replaceItem' on 'SVGLengthList': 2 arguments required, but only ${arguments.length} present.`);let o=this[K](),s=o.indexOf(t);if(s===e)return t;if(s!==-1)o.splice(s,1);if(e<0)e=0;else if(e>=o.length)e=o.length-1;if(o[e])o[e][v]=null,o[e][A]=null;let n=o[e];return o[e]=t,t[v]=()=>t[I],t[A]=()=>{this[U].attributeValue=this[K]().map((l)=>l[I]??"0").join(" "),this[A](this[U].attributeValue)},this[U].attributeValue=o.map((l)=>l[I]??"0").join(" "),this[A](this[U].attributeValue),n}removeItem(t){if(this[j])throw new this[m].TypeError("Failed to execute 'removeItem' on 'SVGLengthList': The object is read-only.");if(arguments.length<1)throw new this[m].TypeError(`Failed to execute 'removeItem' on 'SVGLengthList': 1 argument required, but only ${arguments.length} present.`);let e=this[K]();if(t=Number(t),isNaN(t))t=0;if(t>=e.length)throw new this[m].DOMException(`Failed to execute 'removeItem' on 'SVGLengthList': The index provided (${t}) is greater than the maximum bound.`,w.indexSizeError);if(t<0)throw new this[m].DOMException(`Failed to execute 'removeItem' on 'SVGLengthList': The index provided (${t}) is negative.`,w.indexSizeError);let o=e[t];if(o)o[v]=null,o[A]=null;return e.splice(t,1),this[A](e.map((s)=>s[I]??"0").join(" ")),o}appendItem(t){if(this[j])throw new this[m].TypeError("Failed to execute 'appendItem' on 'SVGLengthList': The object is read-only.");if(arguments.length<1)throw new this[m].TypeError(`Failed to execute 'appendItem' on 'SVGLengthList': 1 argument required, but only ${arguments.length} present.`);let e=this[K](),o=e.indexOf(t);if(o!==-1)e.splice(o,1);return e.push(t),t[v]=()=>t[I],t[A]=()=>{this[U].attributeValue=this[K]().map((s)=>s[I]??"0").join(" "),this[A](this[U].attributeValue)},this[U].attributeValue=e.map((s)=>s[I]??"0").join(" "),this[A](this[U].attributeValue),t}[K](){let t=this[v]()??"",e=this[U];if(e.attributeValue===t)return e.items;if(e.items.length)for(let n of e.items)n[v]=null,n[A]=null;let o=[],s=t.trim();if(s){let n=s.split(hw);for(let l=0,a=n.length;l<a;l++){let y=new Ii(h,this[m],{readOnly:this[j],getAttribute:()=>y[I],setAttribute:(u)=>{y[I]=u;let c=o.map((d)=>d[I]??"0").join(" ");e.attributeValue=c,this[A](c)}});y[I]=n[l],o.push(y)}}return e.attributeValue=t,e.items=o,o}}class Pn{[m];[v];[A];[se]=null;[ne]=null;constructor(t,e,o){if(t!==h)throw TypeError("Illegal constructor");this[m]=e,this[v]=o.getAttribute,this[A]=o.setAttribute}get animVal(){if(!this[ne])this[ne]=new Pl(h,this[m],{readOnly:!0,getAttribute:this[v],setAttribute:this[A]});return this[ne]}set animVal(t){}get baseVal(){if(!this[se])this[se]=new Pl(h,this[m],{getAttribute:this[v],setAttribute:this[A]});return this[se]}set baseVal(t){}}class Al extends fm{[k]=null;[M]=null;[bo]=null;[go]=null;[tp]=null;get x(){if(!this[k])this[k]=new Pn(h,this[m],{getAttribute:()=>this.getAttribute("x"),setAttribute:(t)=>this.setAttribute("x",t)});return this[k]}get y(){if(!this[M])this[M]=new Pn(h,this[m],{getAttribute:()=>this.getAttribute("y"),setAttribute:(t)=>this.setAttribute("y",t)});return this[M]}get dx(){if(!this[bo])this[bo]=new Pn(h,this[m],{getAttribute:()=>this.getAttribute("dx"),setAttribute:(t)=>this.setAttribute("dx",t)});return this[bo]}get dy(){if(!this[go])this[go]=new Pn(h,this[m],{getAttribute:()=>this.getAttribute("dy"),setAttribute:(t)=>this.setAttribute("dy",t)});return this[go]}get rotate(){if(!this[tp])this[tp]=new Do(h,this[m],{getAttribute:()=>this.getAttribute("rotate"),setAttribute:(t)=>this.setAttribute("rotate",t)});return this[tp]}}class Gd extends Al{}class Ud extends fm{static TEXTPATH_METHODTYPE_UNKNOWN=0;static TEXTPATH_METHODTYPE_ALIGN=1;static TEXTPATH_METHODTYPE_STRETCH=2;static TEXTPATH_SPACINGTYPE_UNKNOWN=0;static TEXTPATH_SPACINGTYPE_AUTO=1;static TEXTPATH_SPACINGTYPE_EXACT=2;[Lt]=null;[by]=null;[Ks]=null;[gy]=null;get href(){if(!this[Lt])this[Lt]=new nt(h,this[m],{getAttribute:()=>this.getAttribute("href"),setAttribute:(t)=>this.setAttribute("href",t)});return this[Lt]}get startOffset(){if(!this[by])this[by]=new L(h,this[m],{getAttribute:()=>this.getAttribute("startOffset"),setAttribute:(t)=>this.setAttribute("startOffset",t)});return this[by]}get method(){if(!this[Ks])this[Ks]=new Tt(h,this[m],{getAttribute:()=>this.getAttribute("method"),setAttribute:(t)=>this.setAttribute("method",t),values:["align","stretch"],defaultValue:"align"});return this[Ks]}get spacing(){if(!this[gy])this[gy]=new Tt(h,this[m],{getAttribute:()=>this.getAttribute("spacing"),setAttribute:(t)=>this.setAttribute("spacing",t),values:["auto","exact"],defaultValue:"exact"});return this[gy]}}class Hd extends et{}class Wd extends Al{}class _d extends Ae{[Lt]=null;[k]=null;[M]=null;[V]=null;[F]=null;get href(){if(!this[Lt])this[Lt]=new nt(h,this[m],{getAttribute:()=>this.getAttribute("href"),setAttribute:(t)=>this.setAttribute("href",t)});return this[Lt]}get x(){if(!this[k])this[k]=new L(h,this[m],{getAttribute:()=>this.getAttribute("x"),setAttribute:(t)=>this.setAttribute("x",t)});return this[k]}get y(){if(!this[M])this[M]=new L(h,this[m],{getAttribute:()=>this.getAttribute("y"),setAttribute:(t)=>this.setAttribute("y",t)});return this[M]}get width(){if(!this[V])this[V]=new L(h,this[m],{getAttribute:()=>this.getAttribute("width"),setAttribute:(t)=>this.setAttribute("width",t)});return this[V]}get height(){if(!this[F])this[F]=new L(h,this[m],{getAttribute:()=>this.getAttribute("height"),setAttribute:(t)=>this.setAttribute("height",t)});return this[F]}}class Yd extends et{}class Kd{static SVG_UNIT_TYPE_UNKNOWN=0;static SVG_UNIT_TYPE_USERSPACEONUSE=1;static SVG_UNIT_TYPE_OBJECTBOUNDINGBOX=2;SVG_UNIT_TYPE_UNKNOWN=0;SVG_UNIT_TYPE_USERSPACEONUSE=1;SVG_UNIT_TYPE_OBJECTBOUNDINGBOX=2;constructor(t){if(t!==h)throw TypeError("Illegal constructor")}}class Qd{window;constructor(t){this.window=t}enqueueReaction(t,e,o){let s=this.window.customElements[gi]?.get(t.localName);if(!s)return;if(t[x]!==this.window.document)return;switch(e){case"connectedCallback":if(s.lifecycleCallbacks.connectedCallback){let n=s.lifecycleCallbacks.connectedCallback?.call(t);if(n instanceof Promise){let l=new it(this.window).getAsyncTaskManager();if(l){let a=l.startTask();n.then(()=>l.endTask(a)).catch(()=>l.endTask(a))}}}break;case"disconnectedCallback":if(s.lifecycleCallbacks.disconnectedCallback)s.lifecycleCallbacks.disconnectedCallback.call(t);break;case"attributeChangedCallback":if(s.lifecycleCallbacks.attributeChangedCallback&&o?.length&&s.observedAttributes.has(o[0]))s.lifecycleCallbacks.attributeChangedCallback.apply(t,o);break}}}class ch extends N{state;hasUAVisualTransition;constructor(t,e=null){super(t);this.state=e?.state??null,this.hasUAVisualTransition=e?.hasUAVisualTransition??!1}}class jd extends N{code;reason;wasClean;constructor(t,e=null){super(t,e);this.code=e?.code??0,this.reason=e?.reason??"",this.wasClean=e?.wasClean??!1}}var wl={setTimeout:globalThis.setTimeout.bind(globalThis),clearTimeout:globalThis.clearTimeout.bind(globalThis),setInterval:globalThis.setInterval.bind(globalThis),clearInterval:globalThis.clearInterval.bind(globalThis),queueMicrotask:globalThis.queueMicrotask.bind(globalThis),setImmediate:globalThis.setImmediate.bind(globalThis),clearImmediate:globalThis.clearImmediate.bind(globalThis)},Tg=setTimeout.toString().includes("new Timeout"),ww=(()=>{try{return Function("return true;")(),!0}catch{return!1}})(),Ew=(()=>{try{return globalThis.Function.$UNFROZEN$=!0,delete globalThis.Function.$UNFROZEN$,!0}catch{return!1}})();class DS{constructor(){throw TypeError("Illegal constructor")}}class Cg{callback;constructor(t){this.callback=t}}class El extends vt{Node=st;Attr=tm;ShadowRoot=Wu;ProcessingInstruction=Hu;Element=Gr;CharacterData=Ss;DocumentType=nn;HTMLAnchorElement=Rp;HTMLButtonElement=Gp;HTMLOptGroupElement=bu;HTMLOptionElement=un;HTMLElement=B;HTMLUnknownElement=Gu;HTMLTemplateElement=Ru;HTMLInputElement=eu;HTMLSelectElement=pm;HTMLTextAreaElement=Fu;HTMLImageElement=la;HTMLStyleElement=Nu;HTMLLabelElement=ru;HTMLSlotElement=lg;HTMLMetaElement=pu;HTMLMediaElement=an;HTMLAudioElement=ia;HTMLVideoElement=Uu;HTMLBaseElement=Dp;HTMLDialogElement=Kp;HTMLScriptElement=vu;HTMLLinkElement=au;HTMLIFrameElement=Zp;HTMLFormElement=nm;HTMLUListElement=Ou;HTMLTrackElement=Bu;HTMLTableRowElement=Iu;HTMLTitleElement=Du;HTMLTimeElement=Vu;HTMLTableSectionElement=Es;HTMLTableCellElement=Lu;HTMLTableElement=Mu;HTMLSpanElement=Cu;HTMLSourceElement=Tu;HTMLQuoteElement=Eu;HTMLProgressElement=wu;HTMLPreElement=Au;HTMLPictureElement=Pu;HTMLParamElement=fu;HTMLParagraphElement=Su;HTMLOutputElement=gu;HTMLOListElement=cu;HTMLObjectElement=du;HTMLMeterElement=uu;HTMLMenuElement=yu;HTMLMapElement=mu;HTMLLIElement=iu;HTMLLegendElement=ou;HTMLModElement=hu;HTMLHtmlElement=Jp;HTMLHRElement=zp;HTMLHeadElement=$p;HTMLHeadingElement=Xp;HTMLFieldSetElement=sa;HTMLEmbedElement=jp;HTMLDListElement=Hp;HTMLDivElement=Qp;HTMLDetailsElement=Yp;HTMLDataListElement=_p;HTMLDataElement=Wp;HTMLTableColElement=ku;HTMLTableCaptionElement=aa;HTMLCanvasElement=Up;HTMLBRElement=Op;HTMLBodyElement=Bp;HTMLAreaElement=Fp;SVGSVGElement=hh;SVGAnimateElement=Oc;SVGAnimateMotionElement=Gc;SVGAnimateTransformElement=Uc;SVGCircleElement=Hc;SVGClipPathElement=Wc;SVGDefsElement=_c;SVGDescElement=Yc;SVGEllipseElement=Kc;SVGFEBlendElement=Qc;SVGFEColorMatrixElement=jc;SVGFEComponentTransferElement=qc;SVGFECompositeElement=$c;SVGFEConvolveMatrixElement=Xc;SVGFEDiffuseLightingElement=zc;SVGFEDisplacementMapElement=Jc;SVGFEDistantLightElement=Zc;SVGFEDropShadowElement=td;SVGFEFloodElement=ed;SVGFEFuncAElement=rd;SVGFEFuncBElement=od;SVGFEFuncGElement=id;SVGFEFuncRElement=sd;SVGFEGaussianBlurElement=nd;SVGFEImageElement=ld;SVGFEMergeElement=ad;SVGFEMergeNodeElement=md;SVGFEMorphologyElement=yd;SVGFEOffsetElement=pd;SVGFEPointLightElement=ud;SVGFESpecularLightingElement=hd;SVGFESpotLightElement=cd;SVGFETileElement=dd;SVGFETurbulenceElement=bd;SVGFilterElement=gd;SVGForeignObjectElement=Sd;SVGGElement=fd;SVGImageElement=Pd;SVGLineElement=Ad;SVGLinearGradientElement=wd;SVGMarkerElement=Ed;SVGMaskElement=xd;SVGMetadataElement=vd;SVGMPathElement=Td;SVGPathElement=Cd;SVGPatternElement=Nd;SVGPolygonElement=Ld;SVGPolylineElement=kd;SVGRadialGradientElement=Md;SVGRectElement=Id;SVGScriptElement=Rd;SVGSetElement=Fd;SVGStopElement=Vd;SVGStyleElement=Dd;SVGSwitchElement=Bd;SVGSymbolElement=Od;SVGTextElement=Gd;SVGTextPathElement=Ud;SVGTitleElement=Hd;SVGTSpanElement=Wd;SVGUseElement=_d;SVGViewElement=Yd;SVGElement=et;SVGAnimationElement=pi;SVGComponentTransferFunctionElement=ui;SVGGeometryElement=Nr;SVGGradientElement=fl;SVGTextPositioningElement=Al;SVGGraphicsElement=Ae;Event=N;UIEvent=Sr;CustomEvent=Pp;CloseEvent=jd;AnimationEvent=Sp;KeyboardEvent=wp;MessageEvent=Ep;MouseEvent=qe;PointerEvent=Zl;FocusEvent=cs;WheelEvent=vp;InputEvent=Ap;ErrorEvent=rn;StorageEvent=nc;SubmitEvent=ta;ProgressEvent=Io;MediaQueryListEvent=_l;HashChangeEvent=Jl;ClipboardEvent=fp;TouchEvent=xp;PopStateEvent=ch;Touch=gp;AudioProcessingEvent=N;BeforeInputEvent=N;BeforeUnloadEvent=N;BlobEvent=N;CompositionEvent=N;CSSFontFaceLoadEvent=N;DeviceLightEvent=N;DeviceMotionEvent=N;DeviceOrientationEvent=N;DeviceProximityEvent=N;DOMTransactionEvent=N;DragEvent=N;EditingBeforeInputEvent=N;FetchEvent=N;GamepadEvent=N;IDBVersionChangeEvent=N;MediaStreamEvent=N;MutationEvent=N;OfflineAudioCompletionEvent=N;OverconstrainedError=N;PageTransitionEvent=N;PaymentRequestUpdateEvent=N;RelatedEvent=N;RTCDataChannelEvent=N;RTCIdentityErrorEvent=N;RTCIdentityEvent=N;RTCPeerConnectionIceEvent=N;SensorEvent=N;SVGEvent=N;SVGZoomEvent=N;TimeEvent=N;TrackEvent=N;TransitionEvent=N;UserProximityEvent=N;WebGLContextEvent=N;TextEvent=N;Permissions=oa;History=$a;Navigator=Lp;Clipboard=Ul;TimeRanges=sl;TextTrackCueList=pl;ValidityState=qr;MutationRecord=Vo;IntersectionObserver=Tp;IntersectionObserverEntry=Cp;CSSStyleDeclaration=Kr;CSSRule=_o;CSSContainerRule=Yl;CSSFontFaceRule=Kl;CSSKeyframeRule=tn;CSSKeyframesRule=Ql;CSSMediaRule=jl;CSSStyleRule=en;CSSSupportsRule=Xl;CSSConditionRule=Ci;CSSGroupingRule=Ti;CSSScopeRule=Zs;DOMRect=li;DOMRectReadOnly=ol;Plugin=Np;PluginArray=Za;Location=Xa;CustomElementRegistry=_a;ResizeObserver=_u;Blob=ie;File=Mo;Storage=hl;MimeType=za;MimeTypeArray=Ja;NodeFilter=pe;HTMLCollection=de;HTMLFormControlCollection=na;HTMLOptionsCollection=ym;NodeList=Yo;RadioNodeList=sm;FileList=al;Screen=ul;ScreenDetails=um;ScreenDetailed=ya;DOMMatrixReadOnly=dl;DOMMatrix=Ao;NamedNodeMap=ln;TreeWalker=hn;NodeIterator=ca;DataTransfer=bp;DataTransferItem=hs;DataTransferItemList=zl;XMLSerializer=Yu;ClipboardItem=ap;Selection=pa;CSSUnitValue=ye;SVGAngle=Sn;SVGAnimatedAngle=Sm;SVGAnimatedBoolean=gm;SVGAnimatedEnumeration=Tt;SVGAnimatedInteger=Fi;SVGAnimatedLength=L;SVGAnimatedNumber=ut;SVGAnimatedNumberList=Do;SVGAnimatedPreserveAspectRatio=yi;SVGAnimatedRect=gl;SVGAnimatedString=nt;SVGAnimatedTransformList=vs;SVGLength=Ii;SVGLengthList=Pl;SVGMatrix=rr;SVGNumber=Ri;SVGNumberList=Sl;SVGPoint=pr;SVGPointList=Vi;SVGPreserveAspectRatio=Sa;SVGRect=Mi;SVGStringList=ki;SVGTransform=jo;SVGTransformList=bl;SVGAnimatedLengthList=Pn;SVGUnitTypes=Kd;DOMPoint=dm;StylePropertyMap=$l;StylePropertyMapReadOnly=ql;MediaList=qn;CSSKeywordValue=Xn;CSSStyleValue=zn;Window=this.constructor;URLSearchParams=fw;WritableStream=VS.Writable;ReadableStream=Sw;TransformStream=VS.Transform;PerformanceObserver=Pw;PerformanceEntry=Aw;PerformanceObserverEntryList=DS;document;customElements=new _a(this);window=this;globalThis=this;performance=performance;screenLeft=0;screenTop=0;screenX=0;screenY=0;crypto=dw;TextEncoder=bw;TextDecoder=gw;closed=!1;console;name="";Buffer=cw;[Nn]=[];[Eo];[no];[Oe];[Dh];[Bh];[Oh];[Gh];[On]=this;[Jo]=this;[ao]=this;[m]=this;[vb]=this;[xn]=-1;[Qs]=new Qd(this);[ms]={json:new Map,css:new Map,esm:new Map};[Bl]=null;[Qn]=[];[p]=new Map;#t;#e=null;#r=null;#o=null;#i=null;#s=null;#l={timeouts:null};#m=[];#a=[];constructor(t,e){super();this.#t=t,this[Tb](),this.console=t.page.console,this[Eo]=new hc(t),this[Dh]=new Lp(this),this[Bh]=new ul,this[Oh]=new hl,this[Gh]=new hl,this[no]=new Xa(this.#t,e?.url??"about:blank"),this[Oe]=new $a(this.#t,this),t[Oe].currentItem.href=e?.url??"about:blank",it.setWindowBrowserFrameRelation(this,this.#t),this[Tm](),Vc.extendClasses(this),this.document=new this.HTMLDocument,this.document[Lr]=this;let o=t[Pt].startTask(()=>this[Eo].destroy());this[Eo].waitUntilComplete().then(()=>{t[Pt].endTask(o),this.document[kn]=uc.complete,this.document.dispatchEvent(new N("readystatechange"));let s=new N("load");s[Go]=this,s[wr]=this.document,s[xr]=ae.atTarget,this.dispatchEvent(s),s[Go]=null,s[xr]=ae.none,s[Kn]=!1}),this[Eb]()}get onsearch(){return this[p].get("onsearch")??null}set onsearch(t){this[p].set("onsearch",t)}get onappinstalled(){return this[p].get("onappinstalled")??null}set onappinstalled(t){this[p].set("onappinstalled",t)}get onbeforeinstallprompt(){return this[p].get("onbeforeinstallprompt")??null}set onbeforeinstallprompt(t){this[p].set("onbeforeinstallprompt",t)}get onabort(){return this[p].get("onabort")??null}set onabort(t){this[p].set("onabort",t)}get onbeforeinput(){return this[p].get("onbeforeinput")??null}set onbeforeinput(t){this[p].set("onbeforeinput",t)}get onbeforematch(){return this[p].get("onbeforematch")??null}set onbeforematch(t){this[p].set("onbeforematch",t)}get onbeforetoggle(){return this[p].get("onbeforetoggle")??null}set onbeforetoggle(t){this[p].set("onbeforetoggle",t)}get onblur(){return this[p].get("onblur")??null}set onblur(t){this[p].set("onblur",t)}get oncancel(){return this[p].get("oncancel")??null}set oncancel(t){this[p].set("oncancel",t)}get oncanplay(){return this[p].get("oncanplay")??null}set oncanplay(t){this[p].set("oncanplay",t)}get oncanplaythrough(){return this[p].get("oncanplaythrough")??null}set oncanplaythrough(t){this[p].set("oncanplaythrough",t)}get onchange(){return this[p].get("onchange")??null}set onchange(t){this[p].set("onchange",t)}get onclick(){return this[p].get("onclick")??null}set onclick(t){this[p].set("onclick",t)}get onclose(){return this[p].get("onclose")??null}set onclose(t){this[p].set("onclose",t)}get oncommand(){return this[p].get("oncommand")??null}set oncommand(t){this[p].set("oncommand",t)}get oncontentvisibilityautostatechange(){return this[p].get("oncontentvisibilityautostatechange")??null}set oncontentvisibilityautostatechange(t){this[p].set("oncontentvisibilityautostatechange",t)}get oncontextlost(){return this[p].get("oncontextlost")??null}set oncontextlost(t){this[p].set("oncontextlost",t)}get oncontextmenu(){return this[p].get("oncontextmenu")??null}set oncontextmenu(t){this[p].set("oncontextmenu",t)}get oncontextrestored(){return this[p].get("oncontextrestored")??null}set oncontextrestored(t){this[p].set("oncontextrestored",t)}get oncuechange(){return this[p].get("oncuechange")??null}set oncuechange(t){this[p].set("oncuechange",t)}get ondblclick(){return this[p].get("ondblclick")??null}set ondblclick(t){this[p].set("ondblclick",t)}get ondrag(){return this[p].get("ondrag")??null}set ondrag(t){this[p].set("ondrag",t)}get ondragend(){return this[p].get("ondragend")??null}set ondragend(t){this[p].set("ondragend",t)}get ondragenter(){return this[p].get("ondragenter")??null}set ondragenter(t){this[p].set("ondragenter",t)}get ondragleave(){return this[p].get("ondragleave")??null}set ondragleave(t){this[p].set("ondragleave",t)}get ondragover(){return this[p].get("ondragover")??null}set ondragover(t){this[p].set("ondragover",t)}get ondragstart(){return this[p].get("ondragstart")??null}set ondragstart(t){this[p].set("ondragstart",t)}get ondrop(){return this[p].get("ondrop")??null}set ondrop(t){this[p].set("ondrop",t)}get ondurationchange(){return this[p].get("ondurationchange")??null}set ondurationchange(t){this[p].set("ondurationchange",t)}get onemptied(){return this[p].get("onemptied")??null}set onemptied(t){this[p].set("onemptied",t)}get onended(){return this[p].get("onended")??null}set onended(t){this[p].set("onended",t)}get onerror(){return this[p].get("onerror")??null}set onerror(t){this[p].set("onerror",t)}get onfocus(){return this[p].get("onfocus")??null}set onfocus(t){this[p].set("onfocus",t)}get onformdata(){return this[p].get("onformdata")??null}set onformdata(t){this[p].set("onformdata",t)}get oninput(){return this[p].get("oninput")??null}set oninput(t){this[p].set("oninput",t)}get oninvalid(){return this[p].get("oninvalid")??null}set oninvalid(t){this[p].set("oninvalid",t)}get onkeydown(){return this[p].get("onkeydown")??null}set onkeydown(t){this[p].set("onkeydown",t)}get onkeypress(){return this[p].get("onkeypress")??null}set onkeypress(t){this[p].set("onkeypress",t)}get onkeyup(){return this[p].get("onkeyup")??null}set onkeyup(t){this[p].set("onkeyup",t)}get onload(){return this[p].get("onload")??null}set onload(t){this[p].set("onload",t)}get onloadeddata(){return this[p].get("onloadeddata")??null}set onloadeddata(t){this[p].set("onloadeddata",t)}get onloadedmetadata(){return this[p].get("onloadedmetadata")??null}set onloadedmetadata(t){this[p].set("onloadedmetadata",t)}get onloadstart(){return this[p].get("onloadstart")??null}set onloadstart(t){this[p].set("onloadstart",t)}get onmousedown(){return this[p].get("onmousedown")??null}set onmousedown(t){this[p].set("onmousedown",t)}get onmouseenter(){return this[p].get("onmouseenter")??null}set onmouseenter(t){this[p].set("onmouseenter",t)}get onmouseleave(){return this[p].get("onmouseleave")??null}set onmouseleave(t){this[p].set("onmouseleave",t)}get onmousemove(){return this[p].get("onmousemove")??null}set onmousemove(t){this[p].set("onmousemove",t)}get onmouseout(){return this[p].get("onmouseout")??null}set onmouseout(t){this[p].set("onmouseout",t)}get onmouseover(){return this[p].get("onmouseover")??null}set onmouseover(t){this[p].set("onmouseover",t)}get onmouseup(){return this[p].get("onmouseup")??null}set onmouseup(t){this[p].set("onmouseup",t)}get onmousewheel(){return this[p].get("onmousewheel")??null}set onmousewheel(t){this[p].set("onmousewheel",t)}get onpause(){return this[p].get("onpause")??null}set onpause(t){this[p].set("onpause",t)}get onplay(){return this[p].get("onplay")??null}set onplay(t){this[p].set("onplay",t)}get onplaying(){return this[p].get("onplaying")??null}set onplaying(t){this[p].set("onplaying",t)}get onprogress(){return this[p].get("onprogress")??null}set onprogress(t){this[p].set("onprogress",t)}get onratechange(){return this[p].get("onratechange")??null}set onratechange(t){this[p].set("onratechange",t)}get onreset(){return this[p].get("onreset")??null}set onreset(t){this[p].set("onreset",t)}get onresize(){return this[p].get("onresize")??null}set onresize(t){this[p].set("onresize",t)}get onscroll(){return this[p].get("onscroll")??null}set onscroll(t){this[p].set("onscroll",t)}get onscrollend(){return this[p].get("onscrollend")??null}set onscrollend(t){this[p].set("onscrollend",t)}get onsecuritypolicyviolation(){return this[p].get("onsecuritypolicyviolation")??null}set onsecuritypolicyviolation(t){this[p].set("onsecuritypolicyviolation",t)}get onseeked(){return this[p].get("onseeked")??null}set onseeked(t){this[p].set("onseeked",t)}get onseeking(){return this[p].get("onseeking")??null}set onseeking(t){this[p].set("onseeking",t)}get onselect(){return this[p].get("onselect")??null}set onselect(t){this[p].set("onselect",t)}get onslotchange(){return this[p].get("onslotchange")??null}set onslotchange(t){this[p].set("onslotchange",t)}get onstalled(){return this[p].get("onstalled")??null}set onstalled(t){this[p].set("onstalled",t)}get onsubmit(){return this[p].get("onsubmit")??null}set onsubmit(t){this[p].set("onsubmit",t)}get onsuspend(){return this[p].get("onsuspend")??null}set onsuspend(t){this[p].set("onsuspend",t)}get ontimeupdate(){return this[p].get("ontimeupdate")??null}set ontimeupdate(t){this[p].set("ontimeupdate",t)}get ontoggle(){return this[p].get("ontoggle")??null}set ontoggle(t){this[p].set("ontoggle",t)}get onvolumechange(){return this[p].get("onvolumechange")??null}set onvolumechange(t){this[p].set("onvolumechange",t)}get onwaiting(){return this[p].get("onwaiting")??null}set onwaiting(t){this[p].set("onwaiting",t)}get onwebkitanimationend(){return this[p].get("onwebkitanimationend")??null}set onwebkitanimationend(t){this[p].set("onwebkitanimationend",t)}get onwebkitanimationiteration(){return this[p].get("onwebkitanimationiteration")??null}set onwebkitanimationiteration(t){this[p].set("onwebkitanimationiteration",t)}get onwebkitanimationstart(){return this[p].get("onwebkitanimationstart")??null}set onwebkitanimationstart(t){this[p].set("onwebkitanimationstart",t)}get onwebkittransitionend(){return this[p].get("onwebkittransitionend")??null}set onwebkittransitionend(t){this[p].set("onwebkittransitionend",t)}get onwheel(){return this[p].get("onwheel")??null}set onwheel(t){this[p].set("onwheel",t)}get onauxclick(){return this[p].get("onauxclick")??null}set onauxclick(t){this[p].set("onauxclick",t)}get ongotpointercapture(){return this[p].get("ongotpointercapture")??null}set ongotpointercapture(t){this[p].set("ongotpointercapture",t)}get onlostpointercapture(){return this[p].get("onlostpointercapture")??null}set onlostpointercapture(t){this[p].set("onlostpointercapture",t)}get onpointerdown(){return this[p].get("onpointerdown")??null}set onpointerdown(t){this[p].set("onpointerdown",t)}get onpointermove(){return this[p].get("onpointermove")??null}set onpointermove(t){this[p].set("onpointermove",t)}get onpointerup(){return this[p].get("onpointerup")??null}set onpointerup(t){this[p].set("onpointerup",t)}get onpointercancel(){return this[p].get("onpointercancel")??null}set onpointercancel(t){this[p].set("onpointercancel",t)}get onpointerover(){return this[p].get("onpointerover")??null}set onpointerover(t){this[p].set("onpointerover",t)}get onpointerout(){return this[p].get("onpointerout")??null}set onpointerout(t){this[p].set("onpointerout",t)}get onpointerenter(){return this[p].get("onpointerenter")??null}set onpointerenter(t){this[p].set("onpointerenter",t)}get onpointerleave(){return this[p].get("onpointerleave")??null}set onpointerleave(t){this[p].set("onpointerleave",t)}get onselectstart(){return this[p].get("onselectstart")??null}set onselectstart(t){this[p].set("onselectstart",t)}get onselectionchange(){return this[p].get("onselectionchange")??null}set onselectionchange(t){this[p].set("onselectionchange",t)}get onanimationcancel(){return this[p].get("onanimationcancel")??null}set onanimationcancel(t){this[p].set("onanimationcancel",t)}get onanimationend(){return this[p].get("onanimationend")??null}set onanimationend(t){this[p].set("onanimationend",t)}get onanimationiteration(){return this[p].get("onanimationiteration")??null}set onanimationiteration(t){this[p].set("onanimationiteration",t)}get onanimationstart(){return this[p].get("onanimationstart")??null}set onanimationstart(t){this[p].set("onanimationstart",t)}get ontransitionrun(){return this[p].get("ontransitionrun")??null}set ontransitionrun(t){this[p].set("ontransitionrun",t)}get ontransitionstart(){return this[p].get("ontransitionstart")??null}set ontransitionstart(t){this[p].set("ontransitionstart",t)}get ontransitionend(){return this[p].get("ontransitionend")??null}set ontransitionend(t){this[p].set("ontransitionend",t)}get ontransitioncancel(){return this[p].get("ontransitioncancel")??null}set ontransitioncancel(t){this[p].set("ontransitioncancel",t)}get onbeforexrselect(){return this[p].get("onbeforexrselect")??null}set onbeforexrselect(t){this[p].set("onbeforexrselect",t)}get onafterprint(){return this[p].get("onafterprint")??null}set onafterprint(t){this[p].set("onafterprint",t)}get onbeforeprint(){return this[p].get("onbeforeprint")??null}set onbeforeprint(t){this[p].set("onbeforeprint",t)}get onbeforeunload(){return this[p].get("onbeforeunload")??null}set onbeforeunload(t){this[p].set("onbeforeunload",t)}get onhashchange(){return this[p].get("onhashchange")??null}set onhashchange(t){this[p].set("onhashchange",t)}get onlanguagechange(){return this[p].get("onlanguagechange")??null}set onlanguagechange(t){this[p].set("onlanguagechange",t)}get onmessage(){return this[p].get("onmessage")??null}set onmessage(t){this[p].set("onmessage",t)}get onmessageerror(){return this[p].get("onmessageerror")??null}set onmessageerror(t){this[p].set("onmessageerror",t)}get onoffline(){return this[p].get("onoffline")??null}set onoffline(t){this[p].set("onoffline",t)}get ononline(){return this[p].get("ononline")??null}set ononline(t){this[p].set("ononline",t)}get onpagehide(){return this[p].get("onpagehide")??null}set onpagehide(t){this[p].set("onpagehide",t)}get onpageshow(){return this[p].get("onpageshow")??null}set onpageshow(t){this[p].set("onpageshow",t)}get onpopstate(){return this[p].get("onpopstate")??null}set onpopstate(t){this[p].set("onpopstate",t)}get onrejectionhandled(){return this[p].get("onrejectionhandled")??null}set onrejectionhandled(t){this[p].set("onrejectionhandled",t)}get onstorage(){return this[p].get("onstorage")??null}set onstorage(t){this[p].set("onstorage",t)}get onunhandledrejection(){return this[p].get("onunhandledrejection")??null}set onunhandledrejection(t){this[p].set("onunhandledrejection",t)}get onunload(){return this[p].get("onunload")??null}set onunload(t){this[p].set("onunload",t)}get ondevicemotion(){return this[p].get("ondevicemotion")??null}set ondevicemotion(t){this[p].set("ondevicemotion",t)}get ondeviceorientation(){return this[p].get("ondeviceorientation")??null}set ondeviceorientation(t){this[p].set("ondeviceorientation",t)}get ondeviceorientationabsolute(){return this[p].get("ondeviceorientationabsolute")??null}set ondeviceorientationabsolute(t){this[p].set("ondeviceorientationabsolute",t)}get onpointerrawupdate(){return this[p].get("onpointerrawupdate")??null}set onpointerrawupdate(t){this[p].set("onpointerrawupdate",t)}get onpageswap(){return this[p].get("onpageswap")??null}set onpageswap(t){this[p].set("onpageswap",t)}get onpagereveal(){return this[p].get("onpagereveal")??null}set onpagereveal(t){this[p].set("onpagereveal",t)}get onscrollsnapchange(){return this[p].get("onscrollsnapchange")??null}set onscrollsnapchange(t){this[p].set("onscrollsnapchange",t)}get onscrollsnapchanging(){return this[p].get("onscrollsnapchanging")??null}set onscrollsnapchanging(t){this[p].set("onscrollsnapchanging",t)}get ongamepadconnected(){return this[p].get("ongamepadconnected")??null}set ongamepadconnected(t){this[p].set("ongamepadconnected",t)}get ongamepaddisconnected(){return this[p].get("ongamepaddisconnected")??null}set ongamepaddisconnected(t){this[p].set("ongamepaddisconnected",t)}get self(){return this[On]}set self(t){this[On]=t}get top(){return this[Jo]}get parent(){return this[ao]}set parent(t){this[ao]=t}get frames(){return this[vb]}set frames(t){this[ao]=t}get location(){return this[no]}set location(t){this[no].href=t}get history(){return this[Oe]}get navigator(){return this[Dh]}get screen(){return this[Bh]}get sessionStorage(){return this[Oh]}get localStorage(){return this[Gh]}get opener(){return this.#t[Si]}get scrollX(){return this.document?.documentElement?.scrollLeft??0}get pageXOffset(){return this.scrollX}get scrollY(){return this.document?.documentElement?.scrollTop??0}get pageYOffset(){return this.scrollY}get CSS(){return new rc}get innerWidth(){if(this.#e===null)return this.#t.page.viewport.width;return this.#e}set innerWidth(t){this.#e=t}get innerHeight(){if(this.#r===null)return this.#t.page.viewport.height;return this.#r}set innerHeight(t){this.#r=t}get outerWidth(){if(this.#o===null)return this.#t.page.viewport.width;return this.#o}set outerWidth(t){this.#o=t}get outerHeight(){if(this.#i===null)return this.#t.page.viewport.height;return this.#i}set outerHeight(t){this.#i=t}get devicePixelRatio(){if(this.#s===null)return this.#t.page.viewport.devicePixelRatio;return this.#s}set devicePixelRatio(t){this.#s=t}getComputedStyle(t){return t[Ll]=t[Ll]||new Kr(h,this,{element:t,computed:!0}),t[Ll]}getSelection(){return this.document.getSelection()}scroll(t,e){if(typeof t!=="object"&&arguments.length===1)throw new this.TypeError("Failed to execute 'scroll' on 'Window': The provided value is not of type 'ScrollToOptions'.");let o=typeof t==="object"?t:{left:t,top:e};if(o.behavior==="smooth")this.setTimeout(()=>{if(o.top!==void 0){let s=Number(o.top);this.document.documentElement.scrollTop=isNaN(s)?0:s}if(o.left!==void 0){let s=Number(o.left);this.document.documentElement.scrollLeft=isNaN(s)?0:s}});else{if(o.top!==void 0){let s=Number(o.top);this.document.documentElement.scrollTop=isNaN(s)?0:s}if(o.left!==void 0){let s=Number(o.left);this.document.documentElement.scrollLeft=isNaN(s)?0:s}}}scrollTo(t,e){if(typeof t!=="object"&&arguments.length===1)throw new this.TypeError("Failed to execute 'scrollTo' on 'Window': The provided value is not of type 'ScrollToOptions'.");this.scroll(t,e)}scrollBy(t,e){if(typeof t!=="object"&&arguments.length===1)throw new this.TypeError("Failed to execute 'scrollBy' on 'Window': The provided value is not of type 'ScrollToOptions'.");let o=typeof t==="object"?t:{left:t,top:e};this.scroll({left:this.document.documentElement.scrollLeft+(o.left??0),top:this.document.documentElement.scrollTop+(o.top??0),behavior:o.behavior})}blur(){}focus(){}open(t,e,o){return Tc.openPage(this.#t,{url:t,target:e,features:o})}close(){if(this.#t.page.mainFrame===this.#t&&this.#t[Si])this[At](),this.#t.page.close()}matchMedia(t){return new Wa({window:this,media:t})}getScreenDetails(){return Promise.resolve(new um)}setTimeout(t,e=0,...o){if(this.closed)return{};let s=this.#t.page.context.browser.settings;if(s.timer.preventTimerLoops){let a=Error().stack,y=this.#m,u=this.#a,c=y.indexOf(a);if(c!==-1){if(u[c].timeout++,u[c].timeout>=(s.timer.preventTimerLoops===!0?1:s.timer.preventTimerLoops.timeout??1))return{}}else y.push(a),u.push({timeout:0,requestAnimationFrame:0})}if(!e){let a=this.#l;if(!a.timeouts){let u=!s||!s.disableErrorCapturing&&s.errorCapture===me.tryAndCatch,c=wl.setTimeout(()=>{this.#t[Pt].endTimer(c);let d=a.timeouts;a.timeouts=null;for(let g of d)if(u){let f;try{f=g.callback()}catch(E){this[le](E)}if(f instanceof Promise)f.catch((E)=>this[le](E))}else g.callback()},0);a.timeouts=[],this.#t[Pt].startTimer(c)}let y=new Cg(()=>t(...o));return a.timeouts.push(y),y}let n=!s||!s.disableErrorCapturing&&s.errorCapture===me.tryAndCatch,l=wl.setTimeout(()=>{if(this.#t[Pt].endTimer(l),n){let a;try{a=t(...o)}catch(y){this[le](y)}if(a instanceof Promise)a.catch((y)=>this[le](y))}else t(...o)},s?.timer.maxTimeout!==-1&&e&&e>s?.timer.maxTimeout?s?.timer.maxTimeout:e);return this.#t[Pt].startTimer(l),l}clearTimeout(t){if(t&&t instanceof Cg){let e=this.#l;if(!e.timeouts)return;let o=e.timeouts.indexOf(t);if(o!==-1)e.timeouts.splice(o,1);return}if(Tg&&(!t||t.constructor.name!=="Timeout"))return;wl.clearTimeout(t),this.#t[Pt].endTimer(t)}setInterval(t,e=0,...o){if(this.closed)return{};let s=this.#t.page.context.browser.settings,n=!s||!s.disableErrorCapturing&&s.errorCapture===me.tryAndCatch,l=0,a=wl.setInterval(()=>{if(n){let y;try{y=t(...o)}catch(u){this.clearInterval(a),this[le](u)}if(y instanceof Promise)y.catch((u)=>{this.clearInterval(a),this[le](u)})}else t(...o);if(s?.timer.maxIntervalIterations!==-1){if(l>=s?.timer.maxIntervalIterations)this.clearInterval(a);l++}},s?.timer.maxIntervalTime!==-1&&e&&e>s?.timer.maxIntervalTime?s?.timer.maxIntervalTime:e);return this.#t[Pt].startTimer(a),a}clearInterval(t){if(Tg&&(!t||t.constructor.name!=="Timeout"))return;wl.clearInterval(t),this.#t[Pt].endTimer(t)}requestAnimationFrame(t){if(this.closed)return{};let e=this.#t.page.context.browser.settings;if(e.timer.preventTimerLoops){let n=Error().stack,l=this.#m,a=this.#a,y=l.indexOf(n);if(y!==-1){if(a[y].requestAnimationFrame++,a[y].requestAnimationFrame>=(e.timer.preventTimerLoops===!0?1:e.timer.preventTimerLoops.requestAnimationFrame??1))return{}}else l.push(n),a.push({timeout:0,requestAnimationFrame:0})}let o=!e||!e.disableErrorCapturing&&e.errorCapture===me.tryAndCatch,s=wl.setImmediate(()=>{if(this.#t[Pt].endImmediate(s),o){let n;try{n=t(this.performance.now())}catch(l){this[le](l)}if(n instanceof Promise)n.catch((l)=>this[le](l))}else t(this.performance.now())});return this.#t[Pt].startImmediate(s),s}cancelAnimationFrame(t){if(Tg&&(!t||t.constructor.name!=="Immediate"))return;wl.clearImmediate(t),this.#t[Pt].endImmediate(t)}queueMicrotask(t){if(this.closed)return;let e=!1,o=this.#t[Pt].startTask(()=>e=!0),s=this.#t.page.context.browser.settings,n=!s||!s.disableErrorCapturing&&s.errorCapture===me.tryAndCatch;wl.queueMicrotask(()=>{if(!e)if(this.#t[Pt].endTask(o),n){let l;try{l=t()}catch(a){this[le](a)}if(l instanceof Promise)l.catch((a)=>this[le](a))}else t()})}async fetch(t,e){if(this.closed)return Promise.reject(new this.DOMException("Failed to execute 'fetch' on 'Window': The window is closed.",w.invalidStateError));return await new Br({browserFrame:this.#t,window:this,url:t,init:e}).send()}btoa(t){return np.btoa(t)}atob(t){return np.atob(t)}postMessage(t,e="*",o){if(this.closed)return;if(e&&e!=="*"&&this.location.origin!==e)throw new this.DOMException(`Failed to execute 'postMessage' on 'Window': The target origin provided ('${e}') does not match the recipient window's origin ('${this.location.origin}').`,w.securityError);try{JSON.stringify(t)}catch(s){throw new this.DOMException("Failed to execute 'postMessage' on 'Window': The provided message cannot be serialized.",w.invalidStateError)}this.setTimeout(()=>this.dispatchEvent(new Ep("message",{data:t,origin:this.#t.parentFrame?this.#t.parentFrame.window.location.origin:this.#t.window.location.origin,source:this.#t.parentFrame?this.#t.parentFrame.window:this.#t.window,lastEventId:""})))}resizeTo(t,e){if(this.closed)return;if(!t||!e)throw new this.DOMException(`Failed to execute 'resizeTo' on 'Window': 2 arguments required, but only ${arguments.length} present.`);if(this.#t[Ln])this.#t.page.setViewport({width:t,height:e})}resizeBy(t,e){if(this.closed)return;if(!t||!e)throw new this.DOMException(`Failed to execute 'resizeBy' on 'Window': 2 arguments required, but only ${arguments.length} present.`);if(this.#t[Ln]){let o=this.#t.page.viewport;this.#t.page.setViewport({width:o.width+t,height:o.height+e})}}[le](t){this.#t.page.console.error(t),this.dispatchEvent(new rn("error",{message:t.message,error:t}))}[Uo](t,e){return new vg.Script(t,e).runInContext(this)}[Tm](){if(!vg.isContext(this))vg.createContext(this),gS.runInContext(this)}[Tb](){let t=this.#t;if((ww||Ew)&&t.page.context.browser.settings.enableJavaScriptEvaluation&&!t.page.context.browser.settings.suppressInsecureJavaScriptEnvironmentWarning&&!t.page.context.browser.settings.suppressCodeGenerationFromStringsWarning)console.warn(`
212
+ `,this.errorIndex=this.startTagIndex;this.readState=_t.error,this.removeOverflowingTextNodes();return}}if(this.nextElement[Ft]&&!this.nextElement[J]){this.errorMessage=`Namespace prefix ${this.nextElement[Ft]} on name is not defined
213
+ `,this.errorIndex=this.lastIndex,this.readState=_t.error;return}if(this.currentNode===this.rootNode&&this.rootNode[dt].length!==0){this.errorMessage=`Extra content at the end of the document
214
+ `,this.errorIndex=this.lastIndex-this.nextElement[z].length-1,this.readState=_t.error;return}if(this.currentNode[Et](this.nextElement,!0),!e)if(this.currentNode=this.nextElement,this.nodeStack.push(this.currentNode),this.tagNameStack.push(this.nextTagName),this.currentNode[J]&&!this.currentNode[Ft])this.defaultNamespaceStack.push(this.currentNode[J]);else this.defaultNamespaceStack.push(this.defaultNamespaceStack[this.defaultNamespaceStack.length-1]);this.nextElement=null,this.nextTagName=null,this.readState=_t.any,this.startTagIndex=this.markupRegExp.lastIndex}parseEndTag(t){if(this.tagNameStack[this.tagNameStack.length-1]===t)return this.nodeStack.pop(),this.tagNameStack.pop(),this.namespacePrefixStack.pop(),this.defaultNamespaceStack.pop(),this.currentNode=this.nodeStack[this.nodeStack.length-1]||this.rootNode,!0;return!1}parseError(t,e){let o=this.rootNode.documentElement;if(!o){let y=this.rootNode.createElementNS(Ut.html,"html"),u=this.rootNode.createElementNS(Ut.html,"body");y.appendChild(u),o=u,this.rootNode[Et](y,!0)}let s=t.split(`
215
+ `),n=s[s.length-1].length+1,l=`error on line ${s.length} at column ${n}: ${e||"Unknown error"}`,a=this.rootNode.createElementNS(Ut.html,"parsererror");a.setAttribute("style","display: block; white-space: pre; border: 2px solid #c77; padding: 0 1em 0 1em; margin: 1em; background-color: #fdd; color: black"),a.innerHTML=`<h3>This page contains the following errors:</h3><div style="font-family:monospace;font-size:12px">${l}</div><h3>Below is a rendering of the page up to the first error.</h3>`,o.insertBefore(a,o.firstChild)}removeOverflowingTextNodes(){if(this.currentNode&&this.currentNode!==this.rootNode)while(this.currentNode.lastChild?.[D]===st.TEXT_NODE)this.currentNode.removeChild(this.currentNode.lastChild)}getDocumentType(t){if(!t.toUpperCase().startsWith("DOCTYPE"))return null;let e=t.split(oh);if(e.length<=1)return null;let o=e.slice(1).join(" "),s=[],n=new RegExp(MA,"gm"),l=o.toUpperCase().includes("PUBLIC"),a;while(a=n.exec(o))s.push(a[1]);let y=l?s[0]||"":"",u=l?s[1]||"":s[0]||"";return{name:e[1].toLowerCase(),publicId:y,systemId:u}}}class sh{parseFromString(t,e){if(!e)throw new this[m].DOMException('Second parameter "mimeType" is mandatory.');let o=this[m];switch(e){case"text/html":let s=new o.HTMLDocument;return s[Lr]=o,new Cr(this[m]).parse(t,s);case"image/svg+xml":case"text/xml":case"application/xml":case"application/xhtml+xml":return new ih(this[m]).parse(t);default:throw new o.DOMException(`Unknown mime type "${e}".`)}}}var hg;(function(t){t[t.endToEnd=2]="endToEnd",t[t.endToStart=3]="endToStart",t[t.startToEnd=1]="startToEnd",t[t.startToStart=0]="startToStart"})(hg||(hg={}));var er=hg;class nh{static END_TO_END=er.endToEnd;static END_TO_START=er.endToStart;static START_TO_END=er.startToEnd;static START_TO_START=er.startToStart;END_TO_END=er.endToEnd;END_TO_START=er.endToStart;START_TO_END=er.startToEnd;START_TO_START=er.startToStart;[O];[Y];[x];constructor(){let t=this[m];if(!t)throw TypeError(`Failed to construct '${this.constructor.name}': '${this.constructor.name}' was constructed outside a Window context.`);this[x]=t.document,this[O]={node:t.document,offset:0},this[Y]={node:t.document,offset:0}}get startContainer(){return this[O].node}get endContainer(){return this[Y].node}get startOffset(){if(this[O].offset>0){let t=ft.getNodeLength(this[O].node);if(this[O].offset>t)this[O].offset=t}return this[O].offset}get endOffset(){if(this[Y].offset>0){let t=ft.getNodeLength(this[Y].node);if(this[Y].offset>t)this[Y].offset=t}return this[Y].offset}get collapsed(){return this[O].node===this[Y].node&&this.startOffset===this.endOffset}get commonAncestorContainer(){let t=this[O].node;while(t){if(ft.isInclusiveAncestor(t,this[Y].node))return t;t=t[W]}return null}collapse(t=!1){if(t)this[Y]=Object.assign({},this[O]);else this[O]=Object.assign({},this[Y])}compareBoundaryPoints(t,e){if(t!==er.startToStart&&t!==er.startToEnd&&t!==er.endToEnd&&t!==er.endToStart)throw new this[m].DOMException(`The comparison method provided must be one of '${er.startToStart}', '${er.startToEnd}', '${er.endToEnd}' or '${er.endToStart}'.`,w.notSupportedError);if(this[x]!==e[x])throw new this[m].DOMException("The two Ranges are not in the same tree.",w.wrongDocumentError);let o={node:null,offset:0},s={node:null,offset:0};switch(t){case er.startToStart:o.node=this[O].node,o.offset=this.startOffset,s.node=e[O].node,s.offset=e.startOffset;break;case er.startToEnd:o.node=this[Y].node,o.offset=this.endOffset,s.node=e[O].node,s.offset=e.startOffset;break;case er.endToEnd:o.node=this[Y].node,o.offset=this.endOffset,s.node=e[Y].node,s.offset=e.endOffset;break;case er.endToStart:o.node=this[O].node,o.offset=this.startOffset,s.node=e[Y].node,s.offset=e.endOffset;break}return ue.compareBoundaryPointsPosition(o,s)}comparePoint(t,e){if(t[x]!==this[x])throw new this[m].DOMException("The two Ranges are not in the same tree.",w.wrongDocumentError);ue.validateBoundaryPoint({node:t,offset:e});let o={node:t,offset:e};if(ue.compareBoundaryPointsPosition(o,{node:this[O].node,offset:this.startOffset})===-1)return-1;else if(ue.compareBoundaryPointsPosition(o,{node:this[Y].node,offset:this.endOffset})===1)return 1;return 0}cloneContents(){let t=this[m],e=this[x].createDocumentFragment(),o=this.startOffset,s=this.endOffset;if(this.collapsed)return e;if(this[O].node===this[Y].node&&(this[O].node[D]===T.textNode||this[O].node[D]===T.processingInstructionNode||this[O].node[D]===T.commentNode)){let u=this[O].node.cloneNode(!1);return u[Yt]=u.substringData(o,s-o),e.appendChild(u),e}let n=this[O].node;while(!ft.isInclusiveAncestor(n,this[Y].node))n=n[W];let l=null;if(!ft.isInclusiveAncestor(this[O].node,this[Y].node)){let u=n.firstChild;while(!l){if(ue.isPartiallyContained(u,this))l=u;u=u.nextSibling}}let a=null;if(!ft.isInclusiveAncestor(this[Y].node,this[O].node)){let u=n.lastChild;while(!a){if(ue.isPartiallyContained(u,this))a=u;u=u.previousSibling}}let y=[];for(let u of n[_])if(ue.isContained(u,this)){if(u[D]===T.documentTypeNode)throw new t.DOMException("Invalid document type element.",w.hierarchyRequestError);y.push(u)}if(l!==null&&(l[D]===T.textNode||l[D]===T.processingInstructionNode||l[D]===T.commentNode)){let u=this[O].node.cloneNode(!1);u[Yt]=u.substringData(o,ft.getNodeLength(this[O].node)-o),e.appendChild(u)}else if(l!==null){let u=l.cloneNode();e.appendChild(u);let c=new t.Range;c[O].node=this[O].node,c[O].offset=o,c[Y].node=l,c[Y].offset=ft.getNodeLength(l);let d=c.cloneContents();u.appendChild(d)}for(let u of y){let c=u.cloneNode(!0);e.appendChild(c)}if(a!==null&&(a[D]===T.textNode||a[D]===T.processingInstructionNode||a[D]===T.commentNode)){let u=this[Y].node.cloneNode(!1);u[Yt]=u.substringData(0,s),e.appendChild(u)}else if(a!==null){let u=a.cloneNode(!1);e.appendChild(u);let c=new t.Range;c[O].node=a,c[O].offset=0,c[Y].node=this[Y].node,c[Y].offset=s;let d=c.cloneContents();u.appendChild(d)}return e}cloneRange(){let t=new this[m].Range;return t[O].node=this[O].node,t[O].offset=this[O].offset,t[Y].node=this[Y].node,t[Y].offset=this[Y].offset,t}createContextualFragment(t){return new Cr(this[m]).parse(t)}deleteContents(){let t=this.startOffset,e=this.endOffset;if(this.collapsed)return;if(this[O].node===this[Y].node&&(this[O].node[D]===T.textNode||this[O].node[D]===T.processingInstructionNode||this[O].node[D]===T.commentNode)){this[O].node.replaceData(t,e-t,"");return}let o=[],s=this[O].node,n=ft.nextDescendantNode(this[Y].node);while(s&&s!==n){if(ue.isContained(s,this)&&!ue.isContained(s[W],this))o.push(s);s=ft.following(s)}let l,a;if(ft.isInclusiveAncestor(this[O].node,this[Y].node))l=this[O].node,a=t;else{let y=this[O].node;while(y&&!ft.isInclusiveAncestor(y[W],this[Y].node))y=y[W];l=y[W],a=y[W][_].indexOf(y)+1}if(this[O].node[D]===T.textNode||this[O].node[D]===T.processingInstructionNode||this[O].node[D]===T.commentNode)this[O].node.replaceData(this.startOffset,ft.getNodeLength(this[O].node)-this.startOffset,"");for(let y of o)y[W].removeChild(y);if(this[Y].node[D]===T.textNode||this[Y].node[D]===T.processingInstructionNode||this[Y].node[D]===T.commentNode)this[Y].node.replaceData(0,e,"");this[O].node=l,this[O].offset=a,this[Y].node=l,this[Y].offset=a}detach(){}extractContents(){let t=this[m],e=this[x].createDocumentFragment(),o=this.startOffset,s=this.endOffset;if(this.collapsed)return e;if(this[O].node===this[Y].node&&(this[O].node[D]===T.textNode||this[O].node[D]===T.processingInstructionNode||this[O].node[D]===T.commentNode)){let d=this[O].node.cloneNode(!1);return d[Yt]=d.substringData(o,s-o),e.appendChild(d),this[O].node.replaceData(o,s-o,""),e}let n=this[O].node;while(!ft.isInclusiveAncestor(n,this[Y].node))n=n[W];let l=null;if(!ft.isInclusiveAncestor(this[O].node,this[Y].node)){let d=n.firstChild;while(!l){if(ue.isPartiallyContained(d,this))l=d;d=d.nextSibling}}let a=null;if(!ft.isInclusiveAncestor(this[Y].node,this[O].node)){let d=n.lastChild;while(!a){if(ue.isPartiallyContained(d,this))a=d;d=d.previousSibling}}let y=[];for(let d of n[_])if(ue.isContained(d,this)){if(d[D]===T.documentTypeNode)throw new this[m].DOMException("Invalid document type element.",w.hierarchyRequestError);y.push(d)}let u,c;if(ft.isInclusiveAncestor(this[O].node,this[Y].node))u=this[O].node,c=o;else{let d=this[O].node;while(d&&!ft.isInclusiveAncestor(d[W],this[Y].node))d=d[W];u=d[W],c=d[W][_].indexOf(d)+1}if(l!==null&&(l[D]===T.textNode||l[D]===T.processingInstructionNode||l[D]===T.commentNode)){let d=this[O].node.cloneNode(!1);d[Yt]=d.substringData(o,ft.getNodeLength(this[O].node)-o),e.appendChild(d),this[O].node.replaceData(o,ft.getNodeLength(this[O].node)-o,"")}else if(l!==null){let d=l.cloneNode(!1);e.appendChild(d);let g=new t.Range;g[O].node=this[O].node,g[O].offset=o,g[Y].node=l,g[Y].offset=ft.getNodeLength(l);let f=g.extractContents();d.appendChild(f)}for(let d of y)e.appendChild(d);if(a!==null&&(a[D]===T.textNode||a[D]===T.processingInstructionNode||a[D]===T.commentNode)){let d=this[Y].node.cloneNode(!1);d[Yt]=d.substringData(0,s),e.appendChild(d),this[Y].node.replaceData(0,s,"")}else if(a!==null){let d=a.cloneNode(!1);e.appendChild(d);let g=new t.Range;g[O].node=a,g[O].offset=0,g[Y].node=this[Y].node,g[Y].offset=s;let f=g.extractContents();d.appendChild(f)}return this[O].node=u,this[O].offset=c,this[Y].node=u,this[Y].offset=c,e}getBoundingClientRect(){return new si}getClientRects(){return new em(h)}isPointInRange(t,e=0){if(t[x]!==this[x])return!1;let o={node:t,offset:e};if(ue.validateBoundaryPoint(o),ue.compareBoundaryPointsPosition(o,{node:this[O].node,offset:this.startOffset})===-1||ue.compareBoundaryPointsPosition(o,{node:this[Y].node,offset:this.endOffset})===1)return!1;return!0}insertNode(t){if(this[O].node[D]===T.processingInstructionNode||this[O].node[D]===T.commentNode||this[O].node[D]===T.textNode&&!this[O].node[W]||t===this[O].node)throw new this[m].DOMException("Invalid start node.",w.hierarchyRequestError);let e=this[O].node[D]===T.textNode?this[O].node:this[O].node[_][this.startOffset]||null,o=!e?this[O].node:e[W];if(this[O].node[D]===T.textNode)e=this[O].node.splitText(this.startOffset);if(t===e)e=e.nextSibling;let s=t[W];if(s)s.removeChild(t);let n=!e?ft.getNodeLength(o):e[W][_].indexOf(e);if(n+=t[D]===T.documentFragmentNode?ft.getNodeLength(t):1,o.insertBefore(t,e),this.collapsed)this[Y].node=o,this[Y].offset=n}intersectsNode(t){if(t[x]!==this[x])return!1;let e=t[W];if(!e)return!0;let o=e[_].indexOf(t);return ue.compareBoundaryPointsPosition({node:e,offset:o},{node:this[Y].node,offset:this.endOffset})===-1&&ue.compareBoundaryPointsPosition({node:e,offset:o+1},{node:this[O].node,offset:this.startOffset})===1}selectNode(t){if(!t[W])throw new this[m].DOMException("The given Node has no parent.",w.invalidNodeTypeError);let e=t[W][_].indexOf(t);this[O].node=t[W],this[O].offset=e,this[Y].node=t[W],this[Y].offset=e+1}selectNodeContents(t){if(t[D]===T.documentTypeNode)throw new this[m].DOMException("DocumentType Node can't be used as boundary point.",w.invalidNodeTypeError);this[O].node=t,this[O].offset=0,this[Y].node=t,this[Y].offset=ft.getNodeLength(t)}setEnd(t,e=0){ue.validateBoundaryPoint({node:t,offset:e});let o={node:t,offset:e};if(t[x]!==this[x]||ue.compareBoundaryPointsPosition(o,{node:this[O].node,offset:this.startOffset})===-1)this[O].node=t,this[O].offset=e;this[Y].node=t,this[Y].offset=e}setStart(t,e=0){ue.validateBoundaryPoint({node:t,offset:e});let o={node:t,offset:e};if(t[x]!==this[x]||ue.compareBoundaryPointsPosition(o,{node:this[Y].node,offset:this.endOffset})===1)this[Y].node=t,this[Y].offset=e;this[O].node=t,this[O].offset=e}setEndAfter(t){if(!t[W])throw new this[m].DOMException("The given Node has no parent.",w.invalidNodeTypeError);this.setEnd(t[W],t[W][_].indexOf(t)+1)}setEndBefore(t){if(!t[W])throw new this[m].DOMException("The given Node has no parent.",w.invalidNodeTypeError);this.setEnd(t[W],t[W][_].indexOf(t))}setStartAfter(t){if(!t[W])throw new this[m].DOMException("The given Node has no parent.",w.invalidNodeTypeError);this.setStart(t[W],t[W][_].indexOf(t)+1)}setStartBefore(t){if(!t[W])throw new this[m].DOMException("The given Node has no parent.",w.invalidNodeTypeError);this.setStart(t[W],t[W][_].indexOf(t))}surroundContents(t){let e=this.commonAncestorContainer;if(!e)return;let o=ft.nextDescendantNode(e);while(e&&e!==o){if(e[D]!==T.textNode&&ue.isPartiallyContained(e,this))throw new this[m].DOMException("The Range has partially contains a non-Text node.",w.invalidStateError);e=ft.following(e)}if(t[D]===T.documentNode||t[D]===T.documentTypeNode||t[D]===T.documentFragmentNode)throw new this[m].DOMException("Invalid element type.",w.invalidNodeTypeError);let s=this.extractContents();while(t.firstChild)t.removeChild(t.firstChild);this.insertNode(t),t.appendChild(s),this.selectNode(t)}toString(){let t=this.startOffset,e=this.endOffset,o="";if(this[O].node===this[Y].node&&this[O].node[D]===T.textNode)return this[O].node.data.slice(t,e);if(this[O].node[D]===T.textNode)o+=this[O].node.data.slice(t);let s=ft.nextDescendantNode(this[Y].node),n=this[O].node;while(n&&n!==s){if(n[D]===T.textNode&&ue.isContained(n,this))o+=n.data;n=ft.following(n)}if(this[Y].node[D]===T.textNode)o+=this[Y].node.data.slice(0,e);return o}}class da extends vt{id="";startTime=0;endTime=0;pauseOnExit=!1;[Ia]=null;onenter=null;onexit=null;constructor(t){super();if(t!==h)throw TypeError("Illegal constructor");if(!this[m])throw TypeError(`Failed to construct '${this.constructor.name}': '${this.constructor.name}' was constructed outside a Window context.`)}get track(){return this[Ia]}}class lh extends da{region=null;vertical="";snapToLines=!0;line=0;lineAlign="";position="auto";positionAlign="auto";size=100;align="";text="";constructor(t,e,o){super(h);let s=this[m],n=0;if(t!==void 0)n++;if(e!==void 0)n++;if(o!==void 0)n++;if(n<3)throw new s.TypeError(`Failed to construct 'VTTCue': 3 arguments required, but only ${n} present.`);if(t=Number(t),e=Number(e),isNaN(t)||isNaN(e))throw new s.TypeError("Failed to construct 'VTTCue': The provided double value is non-finite.");this.startTime=t,this.endTime=e,this.text=String(o)}getCueAsHTML(){let t=this[m],e=t.document.createDocumentFragment();return e.appendChild(t.document.createTextNode(this.text)),e}}class hm extends vt{[wo]=Ss.subtitles;[Os]="";[Il]="";[Bm]="";[Ee]="disabled";[Ml]=new pl(h);[fb]=new pl(h);oncuechange=null;constructor(t){super();if(t!==h)throw TypeError("Illegal constructor");if(!this[m])throw TypeError(`Failed to construct '${this.constructor.name}': '${this.constructor.name}' was constructed outside a Window context.`)}get kind(){return this[wo]}get label(){return this[Os]}get language(){return this[Il]}get id(){return this[Bm]}get mode(){return this[Ee]}set mode(t){if(t!=="disabled"&&t!=="showing")return;this[Ee]=t}get cues(){if(this[Ee]==="disabled")return null;return this[Ml]}get activeCues(){if(this[Ee]==="disabled")return null;return this[fb]}addCue(t){if(this[Ml].includes(t))return;t[Ia]=this,this[Ml].push(t)}removeCue(t){let e=this[Ml].indexOf(t);if(e!==-1)t[Ia]=null,this[Ml].splice(e,1)}}class cm extends vt{[Q]=[];onaddtrack=null;onchange=null;onremovetrack=null;constructor(t,e){super();if(t!==h)throw TypeError("Illegal constructor");this[Q]=e;let o=new fe(this,[cm,vt]);return new Proxy(this,{get:(s,n)=>{if(n==="length")return e.length;if(n in s||typeof n==="symbol")return o.bind(n),s[n];let l=Number(n);if(!isNaN(l))return e[l]},set(s,n,l){if(o.bind(n),typeof n==="symbol")return s[n]=l,!0;let a=Number(n);if(isNaN(a))s[n]=l;return!0},deleteProperty(s,n){if(typeof n==="symbol")return delete s[n],!0;let l=Number(n);if(isNaN(l))delete s[n];return!0},ownKeys(){return Object.keys(e)},has(s,n){if(n in s)return!0;if(typeof n==="symbol")return!1;let l=Number(n);return!isNaN(l)&&l>=0&&l<e.length},defineProperty(s,n,l){if(o.preventBinding(n),n in s)return Object.defineProperty(s,n,l),!0;return!1},getOwnPropertyDescriptor(s,n){if(n in s||typeof n==="symbol")return;let l=Number(n);if(!isNaN(l)&&e[l])return{value:e[l],writable:!1,enumerable:!0,configurable:!0}}})}get length(){return this[Q].length}get[Symbol.toStringTag](){return"TextTrackList"}toLocaleString(){return"[object TextTrackList]"}toString(){return"[object TextTrackList]"}[Symbol.iterator](){return this[Q][Symbol.iterator]()}getTrackById(t){for(let e of this[Q])if(e.id===t)return e;return null}}class ah extends vt{[Pb]="disconnected";onconnecting=null;onconnect=null;ondisconnect=null;get state(){return this[Pb]}async watchAvailability(){}cancelWatchAvailability(){}prompt(){}}var kS=i(LS(),1);var bg;(function(t){t[t.empty=0]="empty",t[t.loading=1]="loading",t[t.done=2]="done"})(bg||(bg={}));var dn=bg;var gg;(function(t){t.buffer="buffer",t.binaryString="binaryString",t.dataURL="dataURL",t.text="text"})(gg||(gg={}));var bn=gg;var Sg;(function(t){t.abort="abort",t.error="error",t.load="load",t.loadstart="loadstart",t.loadend="loadend",t.progress="progress"})(Sg||(Sg={}));var ba=Sg;import{Buffer as JA}from"buffer";class yh extends vt{error=null;result=null;readyState=dn.empty;onabort=null;onerror=null;onload=null;onloadstart=null;onloadend=null;onprogress=null;#t=!1;#e=null;#r=null;constructor(){super();if(!this[m])throw TypeError(`Failed to construct '${this.constructor.name}': '${this.constructor.name}' was constructed outside a Window context.`)}readAsArrayBuffer(t){if(!(t instanceof ie))throw new this[m].TypeError("Failed to execute 'readAsArrayBuffer' on 'FileReader': parameter 1 is not of type 'Blob'.");this.#o(t,bn.buffer)}readAsBinaryString(t){if(!(t instanceof ie))throw new this[m].TypeError("Failed to execute 'readAsBinaryString' on 'FileReader': parameter 1 is not of type 'Blob'.");this.#o(t,bn.binaryString)}readAsDataURL(t){if(!(t instanceof ie))throw new this[m].TypeError("Failed to execute 'readAsDataURL' on 'FileReader': parameter 1 is not of type 'Blob'.");this.#o(t,bn.dataURL)}readAsText(t,e=null){if(!(t instanceof ie))throw new this[m].TypeError("Failed to execute 'readAsText' on 'FileReader': parameter 1 is not of type 'Blob'.");this.#o(t,bn.text,e||"UTF-8")}abort(){let t=this[m];if(this.#e)t.clearTimeout(this.#e);if(this.#r)t.clearTimeout(this.#r);if(this.readyState===dn.empty||this.readyState===dn.done){this.result=null;return}if(this.readyState===dn.loading)this.readyState=dn.done,this.result=null;this.#t=!0,this.dispatchEvent(new ko(ba.abort)),this.dispatchEvent(new ko(ba.loadend))}#o(t,e,o=null){let s=this[m];if(this.readyState===dn.loading)throw new s.DOMException("The object is in an invalid state.",w.invalidStateError);this.readyState=dn.loading,this.#e=s.setTimeout(()=>{if(this.#t){this.#t=!1;return}this.dispatchEvent(new ko(ba.loadstart));let n=t[Nt];if(!n)n=JA.alloc(0);this.dispatchEvent(new ko(ba.loadstart,{lengthComputable:!isNaN(t.size),total:t.size,loaded:n.length})),this.#r=s.setTimeout(()=>{if(this.#t){this.#t=!1;return}switch(e){default:case bn.buffer:{this.result=new Uint8Array(n).buffer;break}case bn.binaryString:{this.result=n.toString("binary");break}case bn.dataURL:{let l=kS.default.parse(t.type)||"application/octet-stream";this.result=`data:${l};base64,${n.toString("base64")}`;break}case bn.text:{this.result=new TextDecoder(o||"UTF-8").decode(n);break}}this.readyState=dn.done,this.dispatchEvent(new ko(ba.load)),this.dispatchEvent(new ko(ba.loadend))})})}}import ZA from"crypto";var tw={aspectRatio:{max:300,min:0.006666666666666667},deviceId:"",facingMode:[],frameRate:{max:60,min:0},height:{max:150,min:1},resizeMode:["none","crop-and-scale"],width:{max:300,min:1}},ew={deviceId:"",frameRate:60,resizeMode:"none"};class ga extends vt{contentHint="";enabled=!0;id=ZA.randomUUID();muted=!1;readyState="live";label="";[Os]="";[wo]="video";[ka]={};[Si]=JSON.parse(JSON.stringify(tw));[In]=JSON.parse(JSON.stringify(ew));onended=null;onmute=null;onunmute=null;constructor(t){super();if(t!==h)throw TypeError("Illegal constructor");if(!this[m])throw TypeError(`Failed to construct '${this.constructor.name}': '${this.constructor.name}' was constructed outside a Window context.`)}get kind(){return this[wo]}async applyConstraints(t){this.#t(this[ka],t)}getConstraints(){return this[ka]}getCapabilities(){return this[Si]}getSettings(){return this[In]}clone(){let t=new this.constructor(h);return t[wo]=this[wo],t[ka]=this[ka],t[Si]=this[Si],t[In]=this[In],t.contentHint=this.contentHint,t.enabled=this.enabled,t.label=this.label,t.muted=this.muted,t.readyState=this.readyState,t}stop(){this.readyState="ended"}#t(t,e){for(let o in e)if(e[o]!==null&&typeof e[o]==="object"&&!Array.isArray(e[o])){if(typeof t[o]!=="object")t[o]={};this.#t(t[o],e[o])}else t[o]=e[o]}}class Fc extends ga{[Om];constructor(t,e){super(t);this[Om]=e}get canvas(){return this[Om]}requestFrame(){}clone(){let t=super.clone();return t[Om]=this.canvas,t}}var fg;(function(t){t[t.connecting=0]="connecting",t[t.open=1]="open",t[t.closing=2]="closing",t[t.closed=3]="closed"})(fg||(fg={}));var So=fg;import rw from"ws";var ow=/^[!#$%&'*+\-.^_`|~\dA-Za-z]+$/;class ph extends vt{static CONNECTING=So.connecting;static OPEN=So.open;static CLOSING=So.closing;static CLOSED=So.closed;#t=So.closed;#e="";#r="blob";#o=null;#i;[vr]=null;constructor(t,e){super();let o=this[m],s;try{s=new URL(t)}catch{throw new o.DOMException(`The URL '${t}' is invalid.`,w.syntaxError)}if(s.protocol!=="ws:"&&s.protocol!=="wss:")throw new o.DOMException(`The URL's protocol must be either 'ws' or 'wss'. '${s.protocol}' is not allowed.`,w.syntaxError);if(s.hash)s.hash="";let n=new Set,l=e!==void 0?Array.isArray(e)?e:[e]:[];for(let a of l){if(!this.#u(a))throw new o.DOMException(`The subprotocol '${a}' is invalid.`,w.syntaxError);if(n.has(a))throw new o.DOMException(`The subprotocol '${a}' is duplicated.`,w.syntaxError);n.add(a)}this.#i=s,this.#s(s,l)}get readyState(){return this.#t}get extensions(){return this.#e}get binaryType(){return this.#r}set binaryType(t){if(t!=="blob"&&t!=="arraybuffer")return;this.#r=t}get protocol(){return this[vr]?.protocol||""}get url(){return this.#i.href}close(t,e){let o=this[m];if(t!==void 0&&t!==1000&&!(t>=3000&&t<=4999))throw new o.DOMException(`The code must be either 1000, or between 3000 and 4999. ${t} is neither.`,w.invalidAccessError);if(e!==void 0&&Buffer.byteLength(e,"utf8")>123)throw new o.DOMException("The message must not be greater than 123 bytes.",w.syntaxError);this.#l(t,e?Buffer.from(e):void 0)}send(t){let e=this[m];if(this.#t===So.connecting)throw new e.DOMException("Still in CONNECTING state.",w.invalidStateError);if(this.#t!==So.open)return;if(typeof t==="string"){this[vr]?.send(t,{binary:!1});return}let o;if(t instanceof ArrayBuffer)o=Buffer.from(new Uint8Array(t));else if(t instanceof ie)o=t[Nt];else if(t instanceof Buffer)o=t;else if(ArrayBuffer.isView(t))o=Buffer.from(new Uint8Array(t.buffer,t.byteOffset,t.byteLength));else o=Buffer.from(String(t));this[vr]?.send(o,{binary:!0})}[At](){super[At](),this.#l(1001)}#s(t,e){let o=this[m],s=new it(o).getBrowserContext();if(!s)return;let n=new URL(o.location.href),l=s.cookieContainer.getCookies(n,!1);this.#t=So.connecting,this[vr]=new rw(t,e,{headers:{"user-agent":o.navigator.userAgent,cookie:ei.cookiesToString(l),origin:n.origin},rejectUnauthorized:!s.browser.settings.fetch.disableStrictSSL}),this[vr].once("open",()=>{this.#m()}),this[vr].on("message",this.#y.bind(this)),this[vr].once("close",(a,y)=>{this.#a(a,y)}),this[vr].once("upgrade",({headers:a})=>{if(a["set-cookie"]!==void 0){let y=Array.isArray(a["set-cookie"])?a["set-cookie"]:[a["set-cookie"]];for(let u of y){let c=ei.stringToCookie(n,u);if(c)s.cookieContainer.addCookies([c])}}}),this[vr].once("error",(a)=>{this.#o=a}),o[Wn].push(this)}#l(t,e){if(this.readyState===So.connecting)if(this[vr])this[vr].terminate();else this.#t=So.closing;else if(this[vr]&&this.readyState===So.open)this[vr].close(t,e);this[vr]=null}#m(){if(this[vr]?.extensions)this.#e=Object.keys(this[vr].extensions).join(", ");this.#t=So.open,this.dispatchEvent(new this[m].Event("open"))}#a(t,e){let o=this[m],s=o[Wn].indexOf(this);if(s!==-1)o[Wn].splice(s,1);this.#t=So.closed,this.dispatchEvent(new this[m].CloseEvent("close",{wasClean:this.#o===null,code:t,reason:e.toString()}))}#y(t,e){if(this.#t!==So.open)return;let o=this[m],s;if(e)switch(this.binaryType){case"arraybuffer":if(t instanceof o.ArrayBuffer)s=t;else if(Array.isArray(t))s=this.#p(Buffer.concat(t));else s=this.#p(t);break;case"blob":default:if(!Array.isArray(t))t=[t];s=new o.Blob(t);break}else s=String(t);this.dispatchEvent(new o.MessageEvent("message",{data:s,origin:this.#i.origin}))}#p(t){let o=new this[m].ArrayBuffer(t.byteLength);return new Uint8Array(o).set(t),o}#u(t){return ow.test(t)}}class Vc{static extendClasses(t){class e extends cn{}e.prototype[m]=t,t.Document=e;class o extends Ku{}o.prototype[m]=t,t.HTMLDocument=o;class s extends Qu{}s.prototype[m]=t,t.XMLDocument=s;class n extends ma{}n.prototype[m]=t,t.DocumentFragment=n;class l extends ju{}l.prototype[m]=t,t.Text=l;class a extends qu{}a.prototype[m]=t,t.Comment=a;class y extends $u{}y.prototype[m]=t,t.Image=y;class u extends Nc{}u.prototype[m]=t,t.Audio=u;class c extends Xu{}c.prototype[m]=t,t.MutationObserver=c;class d extends kc{}d.prototype[m]=t,t.MessagePort=d;class g extends Ju{}g.prototype[m]=t,t.CSSStyleSheet=g;class f extends re{}t.DOMException=f;class E extends Ei{}E.prototype[m]=t,t.Headers=E;class R extends Ti{}R.prototype[m]=t,t.Request=R;class H extends Mo{}H.prototype[m]=t,H[m]=t,t.Response=H;class yt extends vt{}yt.prototype[m]=t,t.EventTarget=yt;class bt extends Mc{}bt.prototype[m]=t,t.XMLHttpRequestUpload=bt;class Rt extends cl{}Rt.prototype[m]=t,t.XMLHttpRequestEventTarget=Rt;class lt extends Zu{}lt.prototype[m]=t,t.AbortController=lt;class ct extends th{}ct.prototype[m]=t,ct[m]=t,t.AbortSignal=ct;class ee extends ra{}ee.prototype[m]=t,t.FormData=ee;class Ct extends eh{}Ct.prototype[m]=t,t.PermissionStatus=Ct;class or extends Ic{}or.prototype[m]=t,t.XMLHttpRequest=or;class Ye extends sh{}Ye.prototype[m]=t,t.DOMParser=Ye;class Ur extends nh{}Ur.prototype[m]=t,t.Range=Ur;class $r extends lh{}$r.prototype[m]=t,t.VTTCue=$r;class xs extends hm{}xs.prototype[m]=t,t.TextTrack=xs;class pi extends cm{}pi.prototype[m]=t,t.TextTrackList=pi;class fa extends da{}fa.prototype[m]=t,t.TextTrackCue=fa;class Vo extends ah{}Vo.prototype[m]=t,t.RemotePlayback=Vo;class Pa extends yh{}Pa.prototype[m]=t,t.FileReader=Pa;class xm extends nl{}xm.prototype[m]=t,t.MediaStream=xm;class Ue extends ga{}Ue.prototype[m]=t,t.MediaStreamTrack=Ue;class Xr extends Fc{}Xr.prototype[m]=t,t.CanvasCaptureMediaStreamTrack=Xr;class vs extends Le{}vs.prototype[m]=t,t.URL=vs;class vm extends ph{}vm.prototype[m]=t,t.WebSocket=vm}}class Dc{[L]=0;[k]=0;[Ir]=0;[Rl]=1;constructor(t,e,o,s){this[L]=t!==void 0&&t!==null?Number(t):0,this[k]=e!==void 0&&e!==null?Number(e):0,this[Ir]=o!==void 0&&o!==null?Number(o):0,this[Rl]=s!==void 0&&s!==null?Number(s):1}get x(){return this[L]}get y(){return this[k]}get z(){return this[Ir]}get w(){return this[Rl]}toJSON(){return{x:this.x,y:this.y,z:this.z,w:this.w}}static fromPoint(t){if(!t)return new this;return new this(t.x??null,t.y??null,t.z??null,t.w??null)}}class dm extends Dc{set x(t){this[L]=t}get x(){return this[L]}set y(t){this[k]=t}get y(){return this[k]}set z(t){this[Ir]=t}get z(){return this[Ir]}set w(t){this[Rl]=t}get w(){return this[Rl]}}var bm={a:1,b:0,c:0,d:1,e:0,f:0,m11:1,m12:0,m13:0,m14:0,m21:0,m22:1,m23:0,m24:0,m31:0,m32:0,m33:1,m34:0,m41:0,m42:0,m43:0,m44:1,is2D:!0,isIdentity:!0},iw=/([a-zA-Z0-9]+)\(([^)]+)\)/gm,sw=/[\s,]+/;class dl{[kt]=1;[Dt]=0;[zt]=0;[Jt]=0;[Mt]=0;[Bt]=1;[Zt]=0;[te]=0;[Ht]=0;[jt]=0;[qt]=1;[Wt]=0;[It]=0;[Ot]=0;[$t]=0;[Xt]=1;constructor(t){if(t)this[Ra](t)}get a(){return this[kt]}get b(){return this[Dt]}get c(){return this[Mt]}get d(){return this[Bt]}get e(){return this[It]}get f(){return this[Ot]}get m11(){return this[kt]}get m12(){return this[Dt]}get m13(){return this[zt]}get m14(){return this[Jt]}get m21(){return this[Mt]}get m22(){return this[Bt]}get m23(){return this[Zt]}get m24(){return this[te]}get m31(){return this[Ht]}get m32(){return this[jt]}get m33(){return this[qt]}get m34(){return this[Wt]}get m41(){return this[It]}get m42(){return this[Ot]}get m43(){return this[$t]}get m44(){return this[Xt]}get isIdentity(){return this[kt]===1&&this[Dt]===0&&this[zt]===0&&this[Jt]===0&&this[Mt]===0&&this[Bt]===1&&this[Zt]===0&&this[te]===0&&this[Ht]===0&&this[jt]===0&&this[qt]===1&&this[Wt]===0&&this[It]===0&&this[Ot]===0&&this[$t]===0&&this[Xt]===1}get is2D(){return this[Ht]===0&&this[jt]===0&&this[qt]===1&&this[Wt]===0&&this[$t]===0&&this[Xt]===1}toFloat32Array(t){return Float32Array.from(this[hy](t))}toFloat64Array(t){return Float64Array.from(this[hy](t))}toString(){let t=this.is2D,e=this[hy](t).join(", ");return`${t?"matrix":"matrix3d"}(${e})`}toJSON(){let{is2D:t,isIdentity:e}=this;return{m11:this[kt],m12:this[Dt],m13:this[zt],m14:this[Jt],m21:this[Mt],m22:this[Bt],m23:this[Zt],m24:this[te],m31:this[Ht],m32:this[jt],m33:this[qt],m34:this[Wt],m41:this[It],m42:this[Ot],m43:this[$t],m44:this[Xt],a:this[kt],b:this[Dt],c:this[Mt],d:this[Bt],e:this[It],f:this[Ot],is2D:t,isIdentity:e}}multiply(t){let e=new this.constructor(this);return e[vo](t),e}translate(t=0,e=0,o=0){let s=new this.constructor(this);return s[xo](t,e,o),s}scale(t,e,o=1,s=0,n=0,l=0){let a=new this.constructor(this);return a[es](t,e,o,s,n,l),a}scale3d(t=1,e=0,o=0,s=0){let n=new this.constructor(this);return n[cy](t,e,o,s),n}scaleNonUniform(t=1,e=1){let o=new this.constructor(this);return o[dy](t,e),o}rotateAxisAngle(t=0,e=0,o=0,s=0){let n=new this.constructor(this);return n[Hs](t,e,o,s),n}rotate(t=0,e,o){let s=new this.constructor(this);return s[Us](t,e,o),s}rotateFromVector(t=0,e=0){let o=new this.constructor(this);return o[Xy](t,e),o}skewX(t){let e=new this.constructor(this);return e[Vl](t),e}skewY(t){let e=new this.constructor(this);return e[Dl](t),e}flipX(){let t=new this.constructor(this);return t[zy](),t}flipY(){let t=new this.constructor(this);return t[Jy](),t}inverse(){let t=new this.constructor(this);return t[Zy](),t}transformPoint(t){let e=t.x??0,o=t.y??0,s=t.z??0,n=t.w??1,l=this[kt]*e+this[Mt]*o+this[Ht]*s+this[It]*n,a=this[Dt]*e+this[Bt]*o+this[jt]*s+this[Ot]*n,y=this[zt]*e+this[Zt]*o+this[qt]*s+this[$t]*n,u=this[Jt]*e+this[te]*o+this[Wt]*s+this[Xt]*n;return new dm(l,a,y,u)}[Ra](t){let e=null;if(typeof t==="string"&&t.length&&t!=="none")e=this.constructor[Fl](t);else if(Array.isArray(t)||t instanceof Float64Array||t instanceof Float32Array)e=this.constructor[Eo](t);else if(typeof t==="object")e=this.constructor.fromMatrix(t);else return;this[kt]=e[kt],this[Dt]=e[Dt],this[zt]=e[zt],this[Jt]=e[Jt],this[Mt]=e[Mt],this[Bt]=e[Bt],this[Zt]=e[Zt],this[te]=e[te],this[Ht]=e[Ht],this[jt]=e[jt],this[qt]=e[qt],this[Wt]=e[Wt],this[It]=e[It],this[Ot]=e[Ot],this[$t]=e[$t],this[Xt]=e[Xt]}[vo](t){let e=t;if(!(e instanceof dl))if(e?.m11===void 0&&e?.a!==void 0)e=Object.assign({},bm,e),e.m11=e.a,e.m12=e.b,e.m21=e.c,e.m22=e.d,e.m41=e.e,e.m42=e.f;else e=Object.assign({},bm,e);let o=this[kt]*e.m11+this[Mt]*e.m12+this[Ht]*e.m13+this[It]*e.m14,s=this[kt]*e.m21+this[Mt]*e.m22+this[Ht]*e.m23+this[It]*e.m24,n=this[kt]*e.m31+this[Mt]*e.m32+this[Ht]*e.m33+this[It]*e.m34,l=this[kt]*e.m41+this[Mt]*e.m42+this[Ht]*e.m43+this[It]*e.m44,a=this[Dt]*e.m11+this[Bt]*e.m12+this[jt]*e.m13+this[Ot]*e.m14,y=this[Dt]*e.m21+this[Bt]*e.m22+this[jt]*e.m23+this[Ot]*e.m24,u=this[Dt]*e.m31+this[Bt]*e.m32+this[jt]*e.m33+this[Ot]*e.m34,c=this[Dt]*e.m41+this[Bt]*e.m42+this[jt]*e.m43+this[Ot]*e.m44,d=this[zt]*e.m11+this[Zt]*e.m12+this[qt]*e.m13+this[$t]*e.m14,g=this[zt]*e.m21+this[Zt]*e.m22+this[qt]*e.m23+this[$t]*e.m24,f=this[zt]*e.m31+this[Zt]*e.m32+this[qt]*e.m33+this[$t]*e.m34,E=this[zt]*e.m41+this[Zt]*e.m42+this[qt]*e.m43+this[$t]*e.m44,R=this[Jt]*e.m11+this[te]*e.m12+this[Wt]*e.m13+this[Xt]*e.m14,H=this[Jt]*e.m21+this[te]*e.m22+this[Wt]*e.m23+this[Xt]*e.m24,yt=this[Jt]*e.m31+this[te]*e.m32+this[Wt]*e.m33+this[Xt]*e.m34,bt=this[Jt]*e.m41+this[te]*e.m42+this[Wt]*e.m43+this[Xt]*e.m44;this[kt]=o,this[Dt]=a,this[zt]=d,this[Jt]=R,this[Mt]=s,this[Bt]=y,this[Zt]=g,this[te]=H,this[Ht]=n,this[jt]=u,this[qt]=f,this[Wt]=yt,this[It]=l,this[Ot]=c,this[$t]=E,this[Xt]=bt}[xo](t=0,e=0,o=0){let s=this.constructor[Eo]([1,0,0,0,0,1,0,0,0,0,1,0,t,e,o,1]);this[vo](s)}[es](t,e,o=1,s=0,n=0,l=0){if(t=t===void 0?1:Number(t),e=e===void 0?t:Number(e),s!==0||n!==0||l!==0)this[xo](s,n,l);if(t!==1||e!==1||o!==1)this[vo](this.constructor[Eo]([t,0,0,0,0,e,0,0,0,0,o,0,0,0,0,1]));if(s!==0||n!==0||l!==0)this[xo](-s,-n,-l)}[cy](t=1,e=0,o=0,s=0){if(e!==0||o!==0||s!==0)this[xo](e,o,s);if(t!==1)this[vo](this.constructor[Eo]([t,0,0,0,0,t,0,0,0,0,t,0,0,0,0,1]));if(e!==0||o!==0||s!==0)this[xo](-e,-o,-s)}[dy](t=1,e=1){if(t===1&&e===1)return;this[vo](this.constructor[Eo]([t,0,0,0,0,e,0,0,0,0,1,0,0,0,0,1]))}[Hs](t=0,e=0,o=0,s=0){if(t=Number(t),e=Number(e),o=Number(o),s=Number(s),isNaN(t)||isNaN(e)||isNaN(o)||isNaN(s))throw TypeError("Failed to execute 'rotateAxisAngleSelf' on 'DOMMatrix': The arguments must be numbers.");let n=Math.hypot(t,e,o);if(n===0)return;if(n!==1)t/=n,e/=n,o/=n;let l=-(s*Math.PI/360),a=this.#t,y=Math.sin(l)*Math.cos(l),u=Math.sin(l)*Math.sin(l),c=a(1-2*(e*e+o*o)*u),d=a(2*(t*e*u+o*y)),g=a(2*(t*o*u-e*y)),f=a(2*(t*e*u-o*y)),E=a(1-2*(t*t+o*o)*u),R=a(2*(e*o*u+t*y)),H=a(2*(t*o*u+e*y)),yt=a(2*(e*o*u-t*y)),bt=a(1-2*(t*t+e*e)*u),Rt=this.constructor[Eo]([c,f,H,0,d,E,yt,0,g,R,bt,0,0,0,0,1]);this[vo](Rt)}[Us](t=0,e,o){if(e===void 0&&o===void 0)o=t,t=0,e=0;if(e===void 0)e=0;if(o===void 0)o=0;if(t=Number(t),e=Number(e),o=Number(o),isNaN(t)||isNaN(e)||isNaN(o))throw TypeError("Failed to execute 'rotateSelf' on 'DOMMatrix': The arguments must be numbers.");if(o!==0)this[Hs](0,0,1,o);if(e!==0)this[Hs](0,1,0,e);if(t!==0)this[Hs](1,0,0,t)}[Xy](t=0,e=0){if(t===0&&e===0)return;this[Us](Math.atan2(e,t)*180/Math.PI)}[Vl](t){let e=Object.assign({},bm),o=Math.tan(t*Math.PI/180);e.m21=o,e.c=o,this[vo](e)}[Dl](t){let e=Object.assign({},bm),o=Math.tan(t*Math.PI/180);e.m12=o,e.b=o,this[vo](e)}[zy](){let t=this.constructor[Eo]([-1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]);this[vo](t)}[Jy](){let t=this.constructor[Eo]([1,0,0,0,0,-1,0,0,0,0,1,0,0,0,0,1]);this[vo](t)}[Zy](){let t=this[Bt]*this[qt]*this[Xt]-this[Bt]*this[Wt]*this[$t]-this[jt]*this[Zt]*this[Xt]+this[jt]*this[te]*this[$t]+this[Ot]*this[Zt]*this[Wt]-this[Ot]*this[te]*this[qt],e=-this[Dt]*this[qt]*this[Xt]+this[Dt]*this[Wt]*this[$t]+this[jt]*this[zt]*this[Xt]-this[jt]*this[Jt]*this[$t]-this[Ot]*this[zt]*this[Wt]+this[Ot]*this[Jt]*this[qt],o=this[Dt]*this[Zt]*this[Xt]-this[Dt]*this[te]*this[$t]-this[Bt]*this[zt]*this[Xt]+this[Bt]*this[Jt]*this[$t]+this[Ot]*this[zt]*this[te]-this[Ot]*this[Jt]*this[Zt],s=-this[Dt]*this[Zt]*this[Wt]+this[Dt]*this[te]*this[qt]+this[Bt]*this[zt]*this[Wt]-this[Bt]*this[Jt]*this[qt]-this[jt]*this[zt]*this[te]+this[jt]*this[Jt]*this[Zt],n=this[kt]*t+this[Mt]*e+this[Ht]*o+this[It]*s;if(n===0){this[kt]=NaN,this[Dt]=NaN,this[zt]=NaN,this[Jt]=NaN,this[Mt]=NaN,this[Bt]=NaN,this[Zt]=NaN,this[te]=NaN,this[Ht]=NaN,this[jt]=NaN,this[qt]=NaN,this[Wt]=NaN,this[It]=NaN,this[Ot]=NaN,this[$t]=NaN,this[Xt]=NaN;return}let l=-this[Mt]*this[qt]*this[Xt]+this[Mt]*this[Wt]*this[$t]+this[Ht]*this[Zt]*this[Xt]-this[Ht]*this[te]*this[$t]-this[It]*this[Zt]*this[Wt]+this[It]*this[te]*this[qt],a=this[kt]*this[qt]*this[Xt]-this[kt]*this[Wt]*this[$t]-this[Ht]*this[zt]*this[Xt]+this[Ht]*this[Jt]*this[$t]+this[It]*this[zt]*this[Wt]-this[It]*this[Jt]*this[qt],y=-this[kt]*this[Zt]*this[Xt]+this[kt]*this[te]*this[$t]+this[Mt]*this[zt]*this[Xt]-this[Mt]*this[Jt]*this[$t]-this[It]*this[zt]*this[te]+this[It]*this[Jt]*this[Zt],u=this[kt]*this[Zt]*this[Wt]-this[kt]*this[te]*this[qt]-this[Mt]*this[zt]*this[Wt]+this[Mt]*this[Jt]*this[qt]+this[Ht]*this[zt]*this[te]-this[Ht]*this[Jt]*this[Zt],c=this[Mt]*this[jt]*this[Xt]-this[Mt]*this[Wt]*this[Ot]-this[Ht]*this[Bt]*this[Xt]+this[Ht]*this[te]*this[Ot]+this[It]*this[Bt]*this[Wt]-this[It]*this[te]*this[jt],d=-this[kt]*this[jt]*this[Xt]+this[kt]*this[Wt]*this[Ot]+this[Ht]*this[Dt]*this[Xt]-this[Ht]*this[Jt]*this[Ot]-this[It]*this[Dt]*this[Wt]+this[It]*this[Jt]*this[jt],g=this[kt]*this[Bt]*this[Xt]-this[kt]*this[te]*this[Ot]-this[Mt]*this[Dt]*this[Xt]+this[Mt]*this[Jt]*this[Ot]+this[It]*this[Dt]*this[te]-this[It]*this[Jt]*this[Bt],f=-this[kt]*this[Bt]*this[Wt]+this[kt]*this[te]*this[jt]+this[Mt]*this[Dt]*this[Wt]-this[Mt]*this[Jt]*this[jt]-this[Ht]*this[Dt]*this[te]+this[Ht]*this[Jt]*this[Bt],E=-this[Mt]*this[jt]*this[$t]+this[Mt]*this[qt]*this[Ot]+this[Ht]*this[Bt]*this[$t]-this[Ht]*this[Zt]*this[Ot]-this[It]*this[Bt]*this[qt]+this[It]*this[Zt]*this[jt],R=this[kt]*this[jt]*this[$t]-this[kt]*this[qt]*this[Ot]-this[Ht]*this[Dt]*this[$t]+this[Ht]*this[zt]*this[Ot]+this[It]*this[Dt]*this[qt]-this[It]*this[zt]*this[jt],H=-this[kt]*this[Bt]*this[$t]+this[kt]*this[Zt]*this[Ot]+this[Mt]*this[Dt]*this[$t]-this[Mt]*this[zt]*this[Ot]-this[It]*this[Dt]*this[Zt]+this[It]*this[zt]*this[Bt],yt=this[kt]*this[Bt]*this[qt]-this[kt]*this[Zt]*this[jt]-this[Mt]*this[Dt]*this[qt]+this[Mt]*this[zt]*this[jt]+this[Ht]*this[Dt]*this[Zt]-this[Ht]*this[zt]*this[Bt];this[kt]=t/n||0,this[Dt]=e/n||0,this[zt]=o/n||0,this[Jt]=s/n||0,this[Mt]=l/n||0,this[Bt]=a/n||0,this[Zt]=y/n||0,this[te]=u/n||0,this[Ht]=c/n||0,this[jt]=d/n||0,this[qt]=g/n||0,this[Wt]=f/n||0,this[It]=E/n||0,this[Ot]=R/n||0,this[$t]=H/n||0,this[Xt]=yt/n||0}[hy](t=!1){if(t)return[this[kt],this[Dt],this[Mt],this[Bt],this[It],this[Ot]];return[this[kt],this[Dt],this[zt],this[Jt],this[Mt],this[Bt],this[Zt],this[te],this[Ht],this[jt],this[qt],this[Wt],this[It],this[Ot],this[$t],this[Xt]]}#t(t,e=1000000000000000){return Math.round(t*e)/e}static fromMatrix(t){if(!(t instanceof dl))if(t?.m11===void 0&&t?.a!==void 0)t=Object.assign({},bm,t),t.m11=t.a,t.m12=t.b,t.m21=t.c,t.m22=t.d,t.m41=t.e,t.m42=t.f;else t=Object.assign({},bm,t);return this[Eo]([t.m11,t.m12,t.m13,t.m14,t.m21,t.m22,t.m23,t.m24,t.m31,t.m32,t.m33,t.m34,t.m41,t.m42,t.m43,t.m44])}static fromFloat32Array(t){return this[Eo](t)}static fromFloat64Array(t){return this[Eo](t)}static[Eo](t){if(!(t instanceof Float64Array||t instanceof Float32Array||Array.isArray(t))||t.length!==6&&t.length!==16)throw TypeError(`Failed to execute 'fromArray' on '${this.name}': '${String(t)}' is not a compatible array.`);let e=new this;if(t.length===16){let[o,s,n,l,a,y,u,c,d,g,f,E,R,H,yt,bt]=t;e[kt]=o,e[Dt]=s,e[zt]=n,e[Jt]=l,e[Mt]=a,e[Bt]=y,e[Zt]=u,e[te]=c,e[Ht]=d,e[jt]=g,e[qt]=f,e[Wt]=E,e[It]=R,e[Ot]=H,e[$t]=yt,e[Xt]=bt}else if(t.length===6){let[o,s,n,l,a,y]=t;e[kt]=o,e[Dt]=s,e[Mt]=n,e[Bt]=l,e[It]=a,e[Ot]=y}return e}static[Fl](t){if(typeof t!=="string")throw TypeError(`Failed to execute 'setMatrixValue' on '${this.name}': Expected '${String(t)}' to be a string.`);let e=new this,o=new RegExp(iw),s;while(s=o.exec(t)){let n=s[1],l=s[2].split(sw);for(let d=0,g=l.length;d<g;d++)l[d]=this[wb](l[d]);let[a,y,u,c]=l;switch(n){case"perspective":if(!isNaN(a)&&a!==0&&y===void 0&&u===void 0)e[Wt]=-1/a;break;case"translate":if(!isNaN(a)&&u===void 0)e[xo](a,y||0,0);break;case"translate3d":if(!isNaN(a)&&!isNaN(y)&&!isNaN(u))e[xo](a,y,u);break;case"translateX":if(!isNaN(a)&&y===void 0&&u===void 0)e[xo](a);break;case"translateY":if(!isNaN(a)&&y===void 0&&u===void 0)e[xo](0,a);break;case"translateZ":if(!isNaN(a)&&y===void 0&&u===void 0)e[xo](0,0,a);break;case"matrix":case"matrix3d":if(l.length===6||l.length===16)e[Ra](this[Eo](l));break;case"rotate":case"rotateZ":if(!isNaN(a)&&y===void 0&&u===void 0)e[Us](0,0,a);break;case"rotateX":if(!isNaN(a)&&y===void 0&&u===void 0)e[Us](a,0,0);break;case"rotateY":if(!isNaN(a)&&y===void 0&&u===void 0)e[Us](0,a,0);case"rotate3d":if(!isNaN(a)&&!isNaN(y)&&!isNaN(u)&&!isNaN(c))e[Hs](a,y,u,c);break;case"scale":if(!isNaN(a)&&a!==1&&u===void 0)e[es](a,isNaN(y)?a:y);break;case"scale3d":if(!isNaN(a)&&!isNaN(y)&&!isNaN(u))e[es](a,y,u);break;case"scaleX":if(!isNaN(a)&&y===void 0&&u===void 0)e[es](a,1,1);break;case"scaleY":if(!isNaN(a)&&y===void 0&&u===void 0)e[es](1,a,1);break;case"scaleZ":if(!isNaN(a)&&y===void 0&&u===void 0)e[es](1,1,a);break;case"skew":if(!isNaN(a))e[Vl](a);if(!isNaN(y))e[Dl](y);break;case"skewX":if(!isNaN(a)&&y===void 0)e[Vl](a);break;case"skewY":if(!isNaN(a)&&y===void 0)e[Dl](a);break;default:throw TypeError(`Failed to execute 'setMatrixValue' on '${this.name}': Unknown transform function '${s[1]}'.`)}}return e}static[wb](t){let e=parseFloat(t);switch(t.replace(e.toString(),"")){case"rem":case"em":case"vw":case"vh":case"%":case"vmin":case"vmax":throw SyntaxError(`Failed to construct '${this.name}': Lengths must be absolute, not relative`);case"rad":return e*(180/Math.PI);case"turn":return e*360;case"px":return e;case"cm":return e*37.7812;case"mm":return e*3.7781;case"in":return e*96;case"pt":return e*1.3281;case"pc":return e*16;case"Q":return e*0.945;default:return e}}}class fo extends dl{get a(){return this[kt]}set a(t){this[kt]=t}get b(){return this[Dt]}set b(t){this[Dt]=t}get c(){return this[Mt]}set c(t){this[Mt]=t}get d(){return this[Bt]}set d(t){this[Bt]=t}get e(){return this[It]}set e(t){this[It]=t}get f(){return this[Ot]}set f(t){this[Ot]=t}get m11(){return this[kt]}set m11(t){this[kt]=t}get m12(){return this[Dt]}set m12(t){this[Dt]=t}get m13(){return this[zt]}set m13(t){this[zt]=t}get m14(){return this[Jt]}set m14(t){this[Jt]=t}get m21(){return this[Mt]}set m21(t){this[Mt]=t}get m22(){return this[Bt]}set m22(t){this[Bt]=t}get m23(){return this[Zt]}set m23(t){this[Zt]=t}get m24(){return this[te]}set m24(t){this[te]=t}get m31(){return this[Ht]}set m31(t){this[Ht]=t}get m32(){return this[jt]}set m32(t){this[jt]=t}get m33(){return this[qt]}set m33(t){this[qt]=t}get m34(){return this[Wt]}set m34(t){this[Wt]=t}get m41(){return this[It]}set m41(t){this[It]=t}get m42(){return this[Ot]}set m42(t){this[Ot]=t}get m43(){return this[$t]}set m43(t){this[$t]=t}get m44(){return this[Xt]}set m44(t){this[Xt]=t}setMatrixValue(t){return this[Ra](t),this}multiplySelf(t){return this[vo](t),this}translateSelf(t=0,e=0,o=0){return this[xo](t,e,o),this}scaleSelf(t,e,o=1,s=0,n=0,l=0){return this[es](t,e,o,s,n,l),this}scale3dSelf(t=1,e=0,o=0,s=0){return this[cy](t,e,o,s),this}scaleNonUniformSelf(t=1,e=1){return this[dy](t,e),this}rotateAxisAngleSelf(t=0,e=0,o=0,s=0){return this[Hs](t,e,o,s),this}rotateSelf(t=0,e,o){return this[Us](t,e,o),this}rotateFromVectorSelf(t=0,e=0){return this[Xy](t,e),this}skewXSelf(t){return this[Vl](t),this}skewYSelf(t){return this[Dl](t),this}flipXSelf(){return this[zy](),this}flipYSelf(){return this[Jy](),this}invertSelf(){return this[Zy](),this}}var nw=/[\t\f\n\r ,]+/;class Ni{[m];[v];[A];[j]=!1;[U]={items:[],attributeValue:""};constructor(t,e,o){if(t!==h)throw TypeError("Illegal constructor");if(this[m]=e,this[j]=!!o.readOnly,this[v]=o.getAttribute,this[A]=o.setAttribute,t!==h)throw TypeError("Illegal constructor");let s=new fe(this,[Ni]);return new Proxy(this,{get:(n,l)=>{if(l==="length"||l==="numberOfItems")return n[K]().length;if(l in n||typeof l==="symbol")return s.bind(l),n[l];let a=Number(l);if(!isNaN(a))return n[K]()[a]},set(n,l,a){if(s.bind(l),typeof l==="symbol")return n[l]=a,!0;let y=Number(l);if(isNaN(y))n[l]=a;return!0},deleteProperty(n,l){if(typeof l==="symbol")return delete n[l],!0;let a=Number(l);if(isNaN(a))delete n[l];return!0},ownKeys(n){return Object.keys(n[K]())},has(n,l){if(l in n)return!0;if(typeof l==="symbol")return!1;let a=Number(l);return!isNaN(a)&&a>=0&&a<n[K]().length},defineProperty(n,l,a){if(s.preventBinding(l),l in n)return Object.defineProperty(n,l,a),!0;return!1},getOwnPropertyDescriptor(n,l){if(l in n||typeof l==="symbol")return;let a=Number(l),y=n[K]();if(!isNaN(a)&&y[a])return{value:y[a],writable:!1,enumerable:!0,configurable:!0}}})}get length(){return this[K]().length}get numberOfItems(){return this[K]().length}[Symbol.iterator](){return this[K]().values()}clear(){this[U].attributeValue="",this[U].items=[],this[A]("")}initialize(t){if(this[j])throw new this[m].TypeError("Failed to execute 'initialize' on 'SVGStringList': The object is read-only.");if(arguments.length<1)throw new this[m].TypeError(`Failed to execute 'initialize' on 'SVGStringList': 1 arguments required, but only ${arguments.length} present.`);if(t=String(t),!t){this.clear();return}return this[A](t),t}getItem(t){let e=this[K]();if(typeof t==="number")return e[t]?e[t]:null;return t=Number(t),t=isNaN(t)?0:t,e[t]?e[t]:null}insertItemBefore(t,e){if(this[j])throw new this[m].TypeError("Failed to execute 'insertItemBefore' on 'SVGStringList': The object is read-only.");if(arguments.length<2)throw new this[m].TypeError(`Failed to execute 'insertItemBefore' on 'SVGStringList': 2 arguments required, but only ${arguments.length} present.`);if(t=String(t),!t)return t;let o=this[K](),s=o.indexOf(t);if(s!==-1)o.splice(s,1);if(e<0)e=0;else if(e>o.length)e=o.length;return o.splice(e,0,t),this[A](o.join(" ")),t}replaceItem(t,e){if(this[j])throw new this[m].TypeError("Failed to execute 'replaceItem' on 'SVGStringList': The object is read-only.");if(arguments.length<2)throw new this[m].TypeError(`Failed to execute 'replaceItem' on 'SVGStringList': 2 arguments required, but only ${arguments.length} present.`);if(t=String(t),!t)return this.removeItem(e);let o=this[K]();if(e<0)e=0;else if(e>=o.length)e=o.length-1;let s=o[e];return o[e]=t,this[A](o.join(" ")),s}removeItem(t){if(this[j])throw new this[m].TypeError("Failed to execute 'removeItem' on 'SVGStringList': The object is read-only.");if(arguments.length<1)throw new this[m].TypeError(`Failed to execute 'removeItem' on 'SVGStringList': 1 argument required, but only ${arguments.length} present.`);let e=this[K]();if(t=Number(t),isNaN(t))t=0;if(t>=e.length)throw new this[m].DOMException(`Failed to execute 'removeItem' on 'SVGStringList': The index provided (${t}) is greater than the maximum bound.`,w.indexSizeError);if(t<0)throw new this[m].DOMException(`Failed to execute 'removeItem' on 'SVGStringList': The index provided (${t}) is negative.`,w.indexSizeError);let o=e[t];return e.splice(t,1),this[A](e.join(" ")),o}appendItem(t){if(this[j])throw new this[m].TypeError("Failed to execute 'appendItem' on 'SVGStringList': The object is read-only.");if(arguments.length<1)throw new this[m].TypeError(`Failed to execute 'appendItem' on 'SVGStringList': 1 argument required, but only ${arguments.length} present.`);if(t=String(t),!t)return t;let e=this[K](),o=e.indexOf(t);if(o!==-1)e.splice(o,1);return e.push(t),this[A](e.join(" ")),t}[K](){let t=this[v]()??"",e=this[U];if(e.attributeValue===t)return e.items;let o=[],s=t.trim();if(s){for(let n of s.split(nw))if(!o.includes(n))o.push(n)}return e.attributeValue=t,e.items=o,o}}var lw=/([a-zA-Z0-9]+)\(([^)]+)\)/,aw=/[\s,]+/;class rr{[m];[v]=null;[A]=null;[I]=null;[j]=!1;constructor(t,e,o){if(t!==h)throw TypeError("Illegal constructor");if(this[m]=e,o)this[j]=!!o.readOnly,this[v]=o.getAttribute||null,this[A]=o.setAttribute||null}get a(){return this[Ne]().a}set a(t){if(this[j])return;let e=this[Ne]();e.a=t,this[dr](e)}get b(){return this[Ne]().b}set b(t){if(this[j])return;let e=this[Ne]();e.b=t,this[dr](e)}get c(){return this[Ne]().c}set c(t){if(this[j])return;let e=this[Ne]();e.c=t,this[dr](e)}get d(){return this[Ne]().d}set d(t){if(this[j])return;let e=this[Ne]();e.d=t,this[dr](e)}get e(){return this[Ne]().e}set e(t){if(this[j])return;let e=this[Ne]();e.e=t,this[dr](e)}get f(){return this[Ne]().f}set f(t){if(this[j])return;let e=this[Ne]();e.f=t,this[dr](e)}multiply(t){if(!(t instanceof rr))throw new this[m].TypeError("Failed to execute 'multiply' on 'SVGMatrix': parameter 1 is not of type 'SVGMatrix'.");let e=this[Ne](),o=new rr(h,this[m]);return e.multiplySelf(t[Ne]()),o[dr](e),o}translate(t=0,e=0){let o=this[Ne](),s=new rr(h,this[m]);return o.translateSelf(t,e),s[dr](o),s}scale(t){let e=this[Ne](),o=new rr(h,this[m]);return e.scaleSelf(t),o[dr](e),o}scaleNonUniform(t=1,e=1){let o=this[Ne](),s=new rr(h,this[m]);return o.scaleNonUniformSelf(t,e),s[dr](o),s}rotate(t){let e=this[Ne](),o=new rr(h,this[m]);return e.rotateSelf(t),o[dr](e),o}rotateFromVector(t=0,e=0){let o=this[Ne](),s=new rr(h,this[m]);return o.rotateFromVectorSelf(t,e),s[dr](o),s}skewX(t){let e=this[Ne](),o=new rr(h,this[m]);return e.skewXSelf(t),o[dr](e),o}skewY(t){let e=this[Ne](),o=new rr(h,this[m]);return e.skewYSelf(t),o[dr](e),o}flipX(){let t=this[Ne](),e=new rr(h,this[m]);return t.flipXSelf(),e[dr](t),e}flipY(){let t=this[Ne](),e=new rr(h,this[m]);return t.flipYSelf(),e[dr](t),e}inverse(){let t=this[Ne](),e=new rr(h,this[m]);return t.invertSelf(),e[dr](t),e}[Ne](){let t=this[v]?this[v]():this[I];if(!t)return new fo;let e=t.match(lw);if(!e)return new fo;let o=[];for(let s of e[2].trim().split(aw)){let n=Number(s);if(isNaN(n))throw new this[m].TypeError(`Failed to parse transform attribute: Expected number, but got "${s}" in "${t}".`);o.push(n)}switch(e[1]){case"matrix":if(o.length!==6)throw new this[m].TypeError(`Failed to parse transform attribute: Expected 6 parameters in "${t}".`);return fo[Fl](t);case"scale":case"translate":if(o.length!==1&&o.length!==2)throw new this[m].TypeError(`Failed to parse transform attribute: Expected 1 or 2 parameters in "${t}".`);return fo[Fl](t);case"skewY":case"skewX":if(o.length!==1)throw new this[m].TypeError(`Failed to parse transform attribute: Expected 1 parameter in "${t}".`);return fo[Fl](t);case"rotate":let s=new fo;if(o.length!==1&&o.length!==3)throw new this[m].TypeError(`Failed to parse transform attribute: Expected 1 or 3 parameters in "${t}".`);let[n,l,a]=o;if(l||a)s.translateSelf(l,a);let y=n*Math.PI/180;if(s.multiplySelf(new fo([Math.cos(y),Math.sin(y),-Math.sin(y),Math.cos(y),0,0])),l||a)s.translateSelf(-l,-a);return s;default:throw new this[m].TypeError(`Failed to parse transform attribute: Unknown transformation "${t}".`)}}[dr](t){if(this[I]=t.toString().replace(/, /g," "),this[A])this[A](this[I])}}var Pg;(function(t){t[t.unknown=0]="unknown",t[t.matrix=1]="matrix",t[t.translate=2]="translate",t[t.scale=3]="scale",t[t.rotate=4]="rotate",t[t.skewX=5]="skewX",t[t.skewY=6]="skewY"})(Pg||(Pg={}));var Po=Pg;var MS=/([a-zA-Z0-9]+)\(([^)]+)\)/,mw=/[\s,]+/;class Ko{static SVG_TRANSFORM_UNKNOWN=Po.unknown;static SVG_TRANSFORM_MATRIX=Po.matrix;static SVG_TRANSFORM_TRANSLATE=Po.translate;static SVG_TRANSFORM_SCALE=Po.scale;static SVG_TRANSFORM_ROTATE=Po.rotate;static SVG_TRANSFORM_SKEWX=Po.skewX;static SVG_TRANSFORM_SKEWY=Po.skewY;[m];[v]=null;[A]=null;[I]=null;[j]=!1;[Ws]=null;constructor(t,e,o){if(t!==h)throw TypeError("Illegal constructor");if(this[m]=e,o)this[j]=!!o.readOnly,this[v]=o.getAttribute||null,this[A]=o.setAttribute||null}get type(){let e=(this[v]?this[v]():this[I])?.match(MS);if(!e)return Po.unknown;switch(e[1]){case"matrix":return Po.matrix;case"translate":return Po.translate;case"rotate":return Po.rotate;case"scale":return Po.scale;case"skewX":return Po.skewX;case"skewY":return Po.skewY}return 0}get angle(){let e=(this[v]?this[v]():this[I])?.match(MS);if(!e)return 0;let o=parseFloat(e[2].trim().split(mw)[0]);if(isNaN(o))return 0;switch(e[1]){case"rotate":case"skewX":case"skewY":return o}return 0}get matrix(){if(!this[Ws])this[Ws]=new rr(h,this[m],{readOnly:this[j],getAttribute:()=>{if(this[v])return this[v]();return this[I]},setAttribute:(t)=>{if(this[I]=t,this[A]){this[A](t);return}}});return this[Ws]}setMatrix(t){if(!(t instanceof rr))throw TypeError('Failed to set the "matrix" property on "SVGTransform": The provided value is not of type "SVGMatrix".');if(this[j])return;if(this[Ws])this[Ws][v]=null,this[Ws][A]=null;if(t[v]=()=>{if(this[v])return this[v]();return this[I]},t[A]=(e)=>{if(this[I]=e,this[A]){this[A](e);return}},this[Ws]=t,t[I]!==this[I]){if(this[I]=t[I],this[A])this[A](this[I]||"")}}setTranslate(t,e){if(arguments.length<2)throw TypeError(`Failed to execute 'setTranslate' on 'SVGTransform': 2 arguments required, but only ${arguments.length} present.`);if(t=Number(t),e=Number(e),isNaN(t)||isNaN(e))throw TypeError("Failed to execute 'setTranslate' on 'SVGTransform': The provided float value is non-finite.");if(this[j])return;if(this[I]=`translate(${t} ${e})`,this[A])this[A](this[I])}setScale(t,e){if(arguments.length<2)throw TypeError(`Failed to execute 'setScale' on 'SVGTransform': 2 arguments required, but only ${arguments.length} present.`);if(t=Number(t),e=Number(e),isNaN(t)||isNaN(e))throw TypeError("Failed to execute 'setScale' on 'SVGTransform': The provided float value is non-finite.");if(this[j])return;if(this[I]=`scale(${t} ${e})`,this[A])this[A](this[I])}setRotate(t,e,o){if(arguments.length<3)throw TypeError(`Failed to execute 'setRotate' on 'SVGTransform': 3 arguments required, but only ${arguments.length} present.`);if(t=Number(t),e=Number(e),o=Number(o),isNaN(t)||isNaN(e)||isNaN(o))throw TypeError("Failed to execute 'setRotate' on 'SVGTransform': The provided float value is non-finite.");if(this[j])return;if(this[I]=`rotate(${t} ${e} ${o})`,this[A])this[A](this[I])}setSkewX(t){if(arguments.length<1)throw TypeError(`Failed to execute 'setSkewX' on 'SVGTransform': 1 arguments required, but only ${arguments.length} present.`);if(t=Number(t),isNaN(t))throw TypeError("Failed to execute 'setSkewX' on 'SVGTransform': The provided float value is non-finite.");if(this[j])return;if(this[I]=`skewX(${t})`,this[A])this[A](this[I])}setSkewY(t){if(arguments.length<1)throw TypeError(`Failed to execute 'setSkewY' on 'SVGTransform': 1 arguments required, but only ${arguments.length} present.`);if(t=Number(t),isNaN(t))throw TypeError("Failed to execute 'setSkewY' on 'SVGTransform': The provided float value is non-finite.");if(this[j])return;if(this[I]=`skewY(${t})`,this[A])this[A](this[I])}}var yw=/([a-zA-Z0-9]+)\(([^)]+)\)/gm,gn="matrix(1 0 0 1 0 0)";class bl{[m];[v];[A];[j]=!1;[U]={items:[],attributeValue:""};constructor(t,e,o){if(t!==h)throw TypeError("Illegal constructor");this[m]=e,this[j]=!!o.readOnly,this[v]=o.getAttribute,this[A]=o.setAttribute;let s=new fe(this,[bl]);return new Proxy(this,{get:(n,l)=>{if(l==="length"||l==="numberOfItems")return n[K]().length;if(l in n||typeof l==="symbol")return s.bind(l),n[l];let a=Number(l);if(!isNaN(a))return n[K]()[a]},set(n,l,a){if(s.bind(l),typeof l==="symbol")return n[l]=a,!0;let y=Number(l);if(isNaN(y))n[l]=a;return!0},deleteProperty(n,l){if(typeof l==="symbol")return delete n[l],!0;let a=Number(l);if(isNaN(a))delete n[l];return!0},ownKeys(n){return Object.keys(n[K]())},has(n,l){if(l in n)return!0;if(typeof l==="symbol")return!1;let a=Number(l);return!isNaN(a)&&a>=0&&a<n[K]().length},defineProperty(n,l,a){if(s.preventBinding(l),l in n)return Object.defineProperty(n,l,a),!0;return!1},getOwnPropertyDescriptor(n,l){if(l in n||typeof l==="symbol")return;let a=Number(l),y=n[K]();if(!isNaN(a)&&y[a])return{value:y[a],writable:!1,enumerable:!0,configurable:!0}}})}get length(){return this[K]().length}get numberOfItems(){return this[K]().length}[Symbol.iterator](){return this[K]().values()}clear(){if(this[j])throw new this[m].TypeError("Failed to execute 'clear' on 'SVGTransformList': The object is read-only.");for(let t of this[U].items)t[v]=null,t[A]=null;this[U].items=[],this[U].attributeValue="",this[A]("")}initialize(t){if(this[j])throw new this[m].TypeError("Failed to execute 'initialize' on 'SVGTransformList': The object is read-only.");if(arguments.length<1)throw new this[m].TypeError(`Failed to execute 'initialize' on 'SVGTransformList': 1 arguments required, but only ${arguments.length} present.`);if(!(t instanceof Ko))throw new this[m].TypeError("Failed to execute 'appendItem' on 'SVGTransformList': parameter 1 is not of type 'SVGTransform'.");for(let e of this[U].items)e[v]=null,e[A]=null;return t[v]=()=>t[I],t[A]=()=>{this[U].attributeValue=this[K]().map((e)=>e[I]||gn).join(" "),this[A](this[U].attributeValue)},this[U].items=[t],this[U].attributeValue=t[I],this[A](t[I]||""),t}getItem(t){let e=this[K]();if(typeof t==="number")return e[t]?e[t]:null;return t=Number(t),t=isNaN(t)?0:t,e[t]?e[t]:null}insertItemBefore(t,e){if(this[j])throw new this[m].TypeError("Failed to execute 'insertItemBefore' on 'SVGTransformList': The object is read-only.");if(arguments.length<2)throw new this[m].TypeError(`Failed to execute 'insertItemBefore' on 'SVGTransformList': 2 arguments required, but only ${arguments.length} present.`);if(!(t instanceof Ko))throw new this[m].TypeError("Failed to execute 'insertItemBefore' on 'SVGTransformList': parameter 1 is not of type 'SVGTransform'.");let o=this[K](),s=o.indexOf(t);if(s!==-1)o.splice(s,1);if(e<0)e=0;else if(e>o.length)e=o.length;return o.splice(e,0,t),t[v]=()=>t[I],t[A]=()=>{this[U].attributeValue=this[K]().map((n)=>n[I]||gn).join(" "),this[A](this[U].attributeValue)},this[U].attributeValue=o.map((n)=>n[I]||gn).join(" "),this[A](this[U].attributeValue),t}replaceItem(t,e){if(this[j])throw new this[m].TypeError("Failed to execute 'replaceItem' on 'SVGTransformList': The object is read-only.");if(arguments.length<2)throw new this[m].TypeError(`Failed to execute 'replaceItem' on 'SVGTransformList': 2 arguments required, but only ${arguments.length} present.`);if(!(t instanceof Ko))throw new this[m].TypeError("Failed to execute 'replaceItem' on 'SVGTransformList': parameter 1 is not of type 'SVGTransform'.");let o=this[K](),s=o.indexOf(t);if(s===e)return t;if(s!==-1)o.splice(s,1);if(e<0)e=0;else if(e>=o.length)e=o.length-1;if(o[e])o[e][v]=null,o[e][A]=null;let n=o[e];return o[e]=t,t[v]=()=>t[I],t[A]=()=>{this[U].attributeValue=this[K]().map((l)=>l[I]||gn).join(" "),this[A](this[U].attributeValue)},this[U].attributeValue=o.map((l)=>l[I]||gn).join(" "),this[A](this[U].attributeValue),n}removeItem(t){if(this[j])throw new this[m].TypeError("Failed to execute 'removeItem' on 'SVGTransformList': The object is read-only.");if(arguments.length<1)throw new this[m].TypeError(`Failed to execute 'removeItem' on 'SVGTransformList': 1 argument required, but only ${arguments.length} present.`);let e=this[K]();if(t=Number(t),isNaN(t))t=0;if(t>=e.length)throw new this[m].DOMException(`Failed to execute 'removeItem' on 'SVGTransformList': The index provided (${t}) is greater than the maximum bound.`,w.indexSizeError);if(t<0)throw new this[m].DOMException(`Failed to execute 'removeItem' on 'SVGTransformList': The index provided (${t}) is negative.`,w.indexSizeError);let o=e[t];if(o)o[v]=null,o[A]=null;return e.splice(t,1),this[U].attributeValue=e.map((s)=>s[I]||gn).join(" "),this[A](this[U].attributeValue),o}appendItem(t){if(this[j])throw new this[m].TypeError("Failed to execute 'appendItem' on 'SVGTransformList': The object is read-only.");if(arguments.length<1)throw new this[m].TypeError(`Failed to execute 'appendItem' on 'SVGTransformList': 1 argument required, but only ${arguments.length} present.`);if(!(t instanceof Ko))throw new this[m].TypeError("Failed to execute 'appendItem' on 'SVGTransformList': parameter 1 is not of type 'SVGTransform'.");let e=this[K](),o=e.indexOf(t);if(o!==-1)e.splice(o,1);return e.push(t),t[v]=()=>t[I],t[A]=()=>{this[U].attributeValue=this[K]().map((s)=>s[I]||gn).join(" "),this[A](this[U].attributeValue)},this[U].attributeValue=e.map((s)=>s[I]||gn).join(" "),this[A](this[U].attributeValue),t}[K](){let t=this[v]()??"",e=this[U];if(e.attributeValue===t)return e.items;if(e.items.length)for(let n of e.items)n[v]=null,n[A]=null;let o=[],s=t.trim();if(s){let n=new RegExp(yw),l;while(l=n.exec(s)){let a=new Ko(h,this[m],{readOnly:this[j],getAttribute:()=>a[I],setAttribute:()=>{this[U].attributeValue=this[K]().map((y)=>y[I]||gn).join(" "),this[A](this[U].attributeValue)}});a[I]=`${l[1]}(${l[2]})`,o.push(a)}}return e.attributeValue=t,e.items=o,o}}class Es{[m];[v];[A];[se]=null;[ne]=null;constructor(t,e,o){if(t!==h)throw TypeError("Illegal constructor");this[m]=e,this[v]=o.getAttribute,this[A]=o.setAttribute}get animVal(){if(!this[ne])this[ne]=new bl(h,this[m],{readOnly:!0,getAttribute:this[v],setAttribute:()=>{}});return this[ne]}set animVal(t){}get baseVal(){if(!this[se])this[se]=new bl(h,this[m],{getAttribute:this[v],setAttribute:this[A]});return this[se]}set baseVal(t){}}class Ae extends et{[Wi]=null;[_i]=null;[_m]=null;get oncopy(){return S.getEventListener(this,"oncopy")}set oncopy(t){this[p].set("oncopy",t)}get oncut(){return S.getEventListener(this,"oncut")}set oncut(t){this[p].set("oncut",t)}get onpaste(){return S.getEventListener(this,"onpaste")}set onpaste(t){this[p].set("onpaste",t)}get requiredExtensions(){if(!this[Wi])this[Wi]=new Ni(h,this[m],{getAttribute:()=>this.getAttribute("requiredExtensions"),setAttribute:(t)=>this.setAttribute("requiredExtensions",t)});return this[Wi]}get systemLanguage(){if(!this[_i])this[_i]=new Ni(h,this[m],{getAttribute:()=>this.getAttribute("systemLanguage"),setAttribute:(t)=>this.setAttribute("systemLanguage",t)});return this[_i]}get transform(){if(!this[_m])this[_m]=new Es(h,this[m],{getAttribute:()=>this.getAttribute("transform"),setAttribute:(t)=>this.setAttribute("transform",t)});return this[_m]}getBBox(){return new si}getCTM(){return new fo}getScreenCTM(){return new fo}}class Li{[m];[v]=null;[A]=null;[I]=null;[j]=!1;constructor(t,e,o){if(t!==h)throw TypeError("Illegal constructor");if(this[m]=e,o)this[j]=!!o.readOnly,this[v]=o.getAttribute||null,this[A]=o.setAttribute||null}get x(){let t=this[v]?this[v]():this[I];if(!t)return 0;let e=t.split(/\s+/),o=Number(e[0]);return isNaN(o)?0:o}set x(t){if(this[j])throw new this[m].TypeError("Failed to set the 'x' property on 'SVGRect': The object is read-only.");if(this[I]=`${String(typeof t==="number"?t:parseFloat(t))} ${this.y} ${this.width} ${this.height}`,this[A])this[A](this[I])}get y(){let t=this[v]?this[v]():this[I];if(!t)return 0;let e=t.split(/\s+/),o=Number(e[1]);return isNaN(o)?0:o}set y(t){if(this[j])throw new this[m].TypeError("Failed to set the 'y' property on 'SVGRect': The object is read-only.");if(this[I]=`${this.x} ${String(typeof t==="number"?t:parseFloat(t))} ${this.width} ${this.height}`,this[A])this[A](this[I])}get width(){let t=this[v]?this[v]():this[I];if(!t)return 0;let e=t.split(/\s+/),o=Number(e[2]);return isNaN(o)?0:o}set width(t){if(this[j])throw new this[m].TypeError("Failed to set the 'width' property on 'SVGRect': The object is read-only.");if(this[I]=`${this.x} ${this.y} ${String(typeof t==="number"?t:parseFloat(t))} ${this.height}`,this[A])this[A](this[I])}get height(){let t=this[v]?this[v]():this[I];if(!t)return 0;let e=t.split(/\s+/),o=Number(e[3]);return isNaN(o)?0:o}set height(t){if(this[j])throw new this[m].TypeError("Failed to set the 'height' property on 'SVGRect': The object is read-only.");if(this[I]=`${this.x} ${this.y} ${this.width} ${String(typeof t==="number"?t:parseFloat(t))}`,this[A])this[A](this[I])}}var IS=/[\t\f\n\r, ]+/;class pr{[m];[v]=null;[A]=null;[I]=null;[j]=!1;constructor(t,e,o){if(t!==h)throw TypeError("Illegal constructor");if(this[m]=e,o)this[j]=!!o.readOnly,this[v]=o.getAttribute||null,this[A]=o.setAttribute||null}get x(){let e=((this[v]?this[v]():this[I])||"").split(IS);return e[0]?parseFloat(e[0]):0}set x(t){if(this[j])throw new this[m].TypeError("Failed to set the 'x' property on 'SVGPoint': The object is read-only.");if(this[I]=`${t} ${this.y}`,this[A])this[A](this[I])}get y(){let e=((this[v]?this[v]():this[I])||"").split(IS);return e[1]?parseFloat(e[1]):0}set y(t){if(this[j])throw new this[m].TypeError("Failed to set the 'y' property on 'SVGPoint': The object is read-only.");if(this[I]=`${this.x} ${t}`,this[A])this[A](this[I])}}var Ag;(function(t){t[t.unknown=0]="unknown",t[t.number=1]="number",t[t.percentage=2]="percentage",t[t.ems=3]="ems",t[t.exs=4]="exs",t[t.px=5]="px",t[t.cm=6]="cm",t[t.mm=7]="mm",t[t.in=8]="in",t[t.pt=9]="pt",t[t.pc=10]="pc"})(Ag||(Ag={}));var wt=Ag;var RS=/^(\d+|\d+\.\d+)(px|em|ex|cm|mm|in|pt|pc|%|)$/;class ki{static SVG_LENGTHTYPE_UNKNOWN=wt.unknown;static SVG_LENGTHTYPE_NUMBER=wt.number;static SVG_LENGTHTYPE_PERCENTAGE=wt.percentage;static SVG_LENGTHTYPE_EMS=wt.ems;static SVG_LENGTHTYPE_EXS=wt.exs;static SVG_LENGTHTYPE_PX=wt.px;static SVG_LENGTHTYPE_CM=wt.cm;static SVG_LENGTHTYPE_MM=wt.mm;static SVG_LENGTHTYPE_IN=wt.in;static SVG_LENGTHTYPE_PT=wt.pt;static SVG_LENGTHTYPE_PC=wt.pc;[m];[v]=null;[A]=null;[I]=null;[j]=!1;constructor(t,e,o){if(t!==h)throw TypeError("Illegal constructor");if(this[m]=e,o)this[j]=!!o.readOnly,this[v]=o.getAttribute||null,this[A]=o.setAttribute||null}get unitType(){let e=(this[v]?this[v]()||"":this[I]||"").match(RS);if(!e)return wt.unknown;if(isNaN(parseFloat(e[1])))return wt.unknown;switch(e[2]){case"":return wt.number;case"px":return wt.px;case"cm":return wt.cm;case"mm":return wt.mm;case"in":return wt.in;case"pt":return wt.pt;case"pc":return wt.pc;case"em":case"ex":case"%":throw new this[m].TypeError("Failed to execute 'value' on 'SVGLength': Could not resolve relative length.");default:return wt.unknown}}get value(){let e=(this[v]?this[v]()||"":this[I]||"").match(RS);if(!e)return 0;let o=parseFloat(e[1]);if(isNaN(o))return 0;switch(e[2]){case"":return o;case"px":return o;case"cm":return o/2.54*96;case"mm":return o/25.4*96;case"in":return o*96;case"pt":return o*72;case"pc":return o*6;case"em":case"ex":case"%":throw new this[m].TypeError("Failed to execute 'value' on 'SVGLength': Could not resolve relative length.");default:return 0}}set value(t){if(this[j])throw new this[m].TypeError("Failed to set the 'value' property on 'SVGLength': The object is read-only.");if(t=typeof t!=="number"?parseFloat(String(t)):t,isNaN(t))throw new this[m].TypeError("Failed to set the 'value' property on 'SVGLength': The provided float value is non-finite.");let e="",o=t;switch(this.unitType){case wt.number:o=t,e="";break;case wt.px:o=t,e="px";break;case wt.cm:o=t/96*2.54,e="cm";break;case wt.mm:o=t/96*25.4,e="mm";break;case wt.in:o=t/96,e="in";break;case wt.pt:o=t/72,e="pt";break;case wt.pc:o=t/6,e="pc";break;case wt.percentage:case wt.ems:case wt.exs:throw new this[m].TypeError("Failed to set the 'value' property on 'SVGLength': Could not resolve relative length.");default:break}if(this[I]=String(o)+e,this[A])this[A](this[I])}get valueAsString(){return this[v]?this[v]()||"0":this[I]||"0"}get valueInSpecifiedUnits(){let t=this.valueAsString;return parseFloat(t)||0}newValueSpecifiedUnits(t,e){if(this[j])throw new this[m].TypeError("Failed to execute 'newValueSpecifiedUnits' on 'SVGLength': The object is read-only.");if(typeof t!=="number")throw new this[m].TypeError("Failed to execute 'newValueSpecifiedUnits' on 'SVGLength': parameter 1 ('unitType') is not of type 'number'.");if(e=typeof e!=="number"?parseFloat(String(e)):e,isNaN(e))throw new this[m].TypeError("Failed to execute 'newValueSpecifiedUnits' on 'SVGLength': The provided float value is non-finite.");let o="";switch(t){case wt.number:o="";break;case wt.px:o="px";break;case wt.cm:o="cm";break;case wt.mm:o="mm";break;case wt.in:o="in";break;case wt.pt:o="pt";break;case wt.pc:o="pc";break;case wt.ems:case wt.exs:case wt.percentage:throw new this[m].TypeError("Failed to execute 'newValueSpecifiedUnits' on 'SVGLength': Could not resolve relative length.");default:break}if(this[I]=String(e)+o,this[A])this[A](this[I])}convertToSpecifiedUnits(t){if(this[j])throw new this[m].TypeError("Failed to execute 'convertToSpecifiedUnits' on 'SVGLength': The object is read-only.");if(typeof t!=="number")throw new this[m].TypeError("Failed to execute 'convertToSpecifiedUnits' on 'SVGLength': parameter 1 ('unitType') is not of type 'number'.");let e=this.value,o="";switch(t){case wt.number:o="";break;case wt.px:o="px";break;case wt.cm:e=e/96*2.54,o="cm";break;case wt.mm:e=e/96*25.4,o="mm";break;case wt.in:e=e/96,o="in";break;case wt.pt:e=e/72,o="pt";break;case wt.pc:e=e/6,o="pc";break;case wt.percentage:case wt.ems:case wt.exs:throw new this[m].TypeError("Failed to execute 'convertToSpecifiedUnits' on 'SVGLength': Could not resolve relative length.");default:break}if(this[I]=String(e)+o,this[A])this[A](this[I])}}var wg;(function(t){t[t.unknown=0]="unknown",t[t.unspecified=1]="unspecified",t[t.deg=2]="deg",t[t.rad=3]="rad",t[t.grad=4]="grad"})(wg||(wg={}));var we=wg;var FS=/^(\d+|\d+\.\d+)(deg|rad|grad|turn|)$/;class Sn{static SVG_ANGLETYPE_UNKNOWN=we.unknown;static SVG_ANGLETYPE_UNSPECIFIED=we.unspecified;static SVG_ANGLETYPE_DEG=we.deg;static SVG_ANGLETYPE_RAD=we.rad;static SVG_ANGLETYPE_GRAD=we.grad;[m];[v]=null;[A]=null;[I]="";[j]=!1;constructor(t,e,o){if(t!==h)throw TypeError("Illegal constructor");if(this[m]=e,o)this[j]=!!o.readOnly,this[v]=o.getAttribute||null,this[A]=o.setAttribute||null}get unitType(){let e=(this[v]?this[v]():this[I])?.match(FS);if(!e)return we.unknown;if(isNaN(parseFloat(e[1])))return we.unknown;switch(e[2]){case"":return we.unspecified;case"deg":return we.deg;case"rad":return we.rad;case"grad":return we.grad;case"turn":return we.unknown;default:return we.unspecified}}get value(){let e=(this[v]?this[v]():this[I])?.match(FS);if(!e)return 0;let o=parseFloat(e[1]);if(isNaN(o))return 0;switch(e[2]){case"":return o;case"deg":return o;case"rad":return o*(180/Math.PI);case"grad":return o*0.9;case"turn":return o*360;default:return o}}set value(t){if(this[j])throw new this[m].TypeError("Failed to set the 'value' property on 'SVGAngle': The object is read-only.");if(t=typeof t!=="number"?parseFloat(String(t)):t,isNaN(t))throw new this[m].TypeError("Failed to set the 'value' property on 'SVGAngle': The provided float value is non-finite.");let e="",o=t;switch(this.unitType){case we.unspecified:o=t,e="";break;case we.deg:o=t,e="deg";break;case we.rad:o=t/(180/Math.PI),e="rad";break;case we.grad:o=t/0.9,e="grad";break;case we.unknown:o=t/360,e="turn";default:break}if(this[I]=String(o)+e,this[A])this[A](this[I])}get valueAsString(){return this[v]?this[v]()||"0":this[I]||"0"}get valueInSpecifiedUnits(){let t=this.valueAsString;return parseFloat(t)||0}newValueSpecifiedUnits(t,e){if(this[j])throw new this[m].TypeError("Failed to execute 'newValueSpecifiedUnits' on 'SVGAngle': The object is read-only.");if(typeof t!=="number")throw new this[m].TypeError("Failed to execute 'newValueSpecifiedUnits' on 'SVGAngle': parameter 1 ('unitType') is not of type 'number'.");if(e=typeof e!=="number"?parseFloat(e):e,isNaN(e))throw new this[m].TypeError("Failed to execute 'newValueSpecifiedUnits' on 'SVGAngle': The provided float value is non-finite.");let o="";switch(t){case we.unspecified:o="";break;case we.deg:o="deg";break;case we.rad:o="rad";break;case we.grad:o="grad";break;case we.unknown:o="turn";break;default:break}if(this[I]=String(e)+o,this[A])this[A](this[I])}convertToSpecifiedUnits(t){if(this[j])throw new this[m].TypeError("Failed to execute 'convertToSpecifiedUnits' on 'SVGAngle': The object is read-only.");if(typeof t!=="number")throw new this[m].TypeError("Failed to execute 'convertToSpecifiedUnits' on 'SVGAngle': parameter 1 ('unitType') is not of type 'number'.");let e=this.value,o="";switch(t){case we.unspecified:o="";break;case we.deg:o="deg";break;case we.rad:o="rad",e=e/(180/Math.PI);break;case we.grad:o="grad",e=e/0.9;break;case we.unknown:o="turn",e=e/360;break;default:break}if(this[I]=String(e)+o,this[A])this[A](this[I])}}class Mi{[m];[v]=null;[A]=null;[I]=null;[j]=!1;constructor(t,e,o){if(t!==h)throw TypeError("Illegal constructor");if(this[m]=e,o)this[j]=!!o.readOnly,this[v]=o.getAttribute||null,this[A]=o.setAttribute||null}get value(){let t=this[v]?this[v]():this[I];return parseFloat(t||"0")}set value(t){if(this[j])throw TypeError("Failed to set the 'value' property on 'SVGNumber': The object is read-only.");let e=typeof t!=="number"?parseFloat(String(t)):t;if(isNaN(e))throw TypeError("Failed to set the 'value' property on 'SVGNumber': The provided value is not a number.");if(this[I]=String(t),this[A])this[A](this[I]||"")}}class gl{[m];[v];[A];[se]=null;[ne]=null;constructor(t,e,o){if(t!==h)throw TypeError("Illegal constructor");this[m]=e,this[v]=o.getAttribute,this[A]=o.setAttribute}get animVal(){if(!this[ne])this[ne]=new Li(h,this[m],{readOnly:!0,getAttribute:this[v]});return this[ne]}set animVal(t){}get baseVal(){if(!this[se])this[se]=new Li(h,this[m],{getAttribute:this[v],setAttribute:this[A]});return this[se]}set baseVal(t){}}var Eg;(function(t){t[t.unknown=0]="unknown",t[t.meet=1]="meet",t[t.slice=2]="slice"})(Eg||(Eg={}));var fn=Eg;var xg;(function(t){t[t.unknown=0]="unknown",t[t.none=1]="none",t[t.xMinYMin=2]="xMinYMin",t[t.xMidYMin=3]="xMidYMin",t[t.xMaxYMin=4]="xMaxYMin",t[t.xMinYMid=5]="xMinYMid",t[t.xMidYMid=6]="xMidYMid",t[t.xMaxYMid=7]="xMaxYMid",t[t.xMinYMax=8]="xMinYMax",t[t.xMidYMax=9]="xMidYMax",t[t.xMaxYMax=10]="xMaxYMax"})(xg||(xg={}));var Gr=xg;var uh=Object.values(Gr);uh.length=uh.indexOf(0);var Bc=Object.values(fn);Bc.length=Bc.indexOf(0);class Sa{static SVG_MEETORSLICE_UNKNOWN=fn.unknown;static SVG_MEETORSLICE_MEET=fn.meet;static SVG_MEETORSLICE_SLICE=fn.slice;static SVG_PRESERVEASPECTRATIO_UNKNOWN=Gr.unknown;static SVG_PRESERVEASPECTRATIO_NONE=Gr.none;static SVG_PRESERVEASPECTRATIO_XMINYMIN=Gr.xMinYMin;static SVG_PRESERVEASPECTRATIO_XMIDYMIN=Gr.xMidYMin;static SVG_PRESERVEASPECTRATIO_XMAXYMIN=Gr.xMaxYMin;static SVG_PRESERVEASPECTRATIO_XMINYMID=Gr.xMinYMid;static SVG_PRESERVEASPECTRATIO_XMIDYMID=Gr.xMidYMid;static SVG_PRESERVEASPECTRATIO_XMAXYMID=Gr.xMaxYMid;static SVG_PRESERVEASPECTRATIO_XMINYMAX=Gr.xMinYMax;static SVG_PRESERVEASPECTRATIO_XMIDYMAX=Gr.xMidYMax;static SVG_PRESERVEASPECTRATIO_XMAXYMAX=Gr.xMaxYMax;[m];[v]=null;[A]=null;[I]=null;[j]=!1;constructor(t,e,o){if(t!==h)throw TypeError("Illegal constructor");if(this[m]=e,o)this[j]=!!o.readOnly,this[v]=o.getAttribute||null,this[A]=o.setAttribute||null}get align(){let t=this[v]?this[v]():this[I];if(!t)return Gr.xMidYMid;let e=t.split(/\s+/)[0];if(Gr[e]===void 0)return Gr.xMidYMid;return Gr[e]}set align(t){if(this[j])throw new this[m].TypeError("Failed to set the 'align' property on 'SVGPreserveAspectRatio': The object is read-only.");let e=Number(t);if(isNaN(e)||e<1||e>uh.length)throw new this[m].TypeError("Failed to set the 'align' property on 'SVGPreserveAspectRatio': The alignment provided is invalid.");if(this[I]=`${uh[e]} ${Bc[this.meetOrSlice]}`,this[A])this[A](this[I])}get meetOrSlice(){let t=this[v]?this[v]():this[I];if(!t)return fn.meet;let e=t.split(/\s+/)[1];if(!e||fn[e]===void 0)return fn.meet;return fn[e]}set meetOrSlice(t){if(this[j])throw new this[m].TypeError("Failed to set the 'meetOrSlice' property on 'SVGPreserveAspectRatio': The object is read-only.");let e=Number(t);if(isNaN(e)||e<1||e>2)throw new this[m].TypeError("Failed to set the 'meetOrSlice' property on 'SVGPreserveAspectRatio': The meetOrSlice provided is invalid.");if(this[I]=`${uh[this.align]} ${Bc[e]}`,this[A])this[A](this[I])}}class ai{[m];[v];[A];[se]=null;[ne]=null;constructor(t,e,o){if(t!==h)throw TypeError("Illegal constructor");this[m]=e,this[v]=o.getAttribute,this[A]=o.setAttribute}get animVal(){if(!this[ne])this[ne]=new Sa(h,this[m],{readOnly:!0,getAttribute:this[v]});return this[ne]}set animVal(t){}get baseVal(){if(!this[se])this[se]=new Sa(h,this[m],{getAttribute:this[v],setAttribute:this[A]});return this[se]}set baseVal(t){}}class N{[m];[v];[A];[se]=null;[ne]=null;constructor(t,e,o){if(t!==h)throw TypeError("Illegal constructor");this[m]=e,this[v]=o.getAttribute,this[A]=o.setAttribute}get animVal(){if(!this[ne])this[ne]=new ki(h,this[m],{readOnly:!0,getAttribute:this[v]});return this[ne]}set animVal(t){}get baseVal(){if(!this[se])this[se]=new ki(h,this[m],{getAttribute:this[v],setAttribute:this[A]});return this[se]}set baseVal(t){}}class hh extends Ae{[ar]=null;[L]=null;[k]=null;[V]=null;[F]=null;[Qh]=1;[Yi]=null;get onafterprint(){return S.getEventListener(this,"onafterprint")}set onafterprint(t){this[p].set("onafterprint",t)}get onbeforeprint(){return S.getEventListener(this,"onbeforeprint")}set onbeforeprint(t){this[p].set("onbeforeprint",t)}get onbeforeunload(){return S.getEventListener(this,"onbeforeunload")}set onbeforeunload(t){this[p].set("onbeforeunload",t)}get ongamepadconnected(){return S.getEventListener(this,"ongamepadconnected")}set ongamepadconnected(t){this[p].set("ongamepadconnected",t)}get ongamepaddisconnected(){return S.getEventListener(this,"ongamepaddisconnected")}set ongamepaddisconnected(t){this[p].set("ongamepaddisconnected",t)}get onhashchange(){return S.getEventListener(this,"onhashchange")}set onhashchange(t){this[p].set("onhashchange",t)}get onlanguagechange(){return S.getEventListener(this,"onlanguagechange")}set onlanguagechange(t){this[p].set("onlanguagechange",t)}get onmessage(){return S.getEventListener(this,"onmessage")}set onmessage(t){this[p].set("onmessage",t)}get onmessageerror(){return S.getEventListener(this,"onmessageerror")}set onmessageerror(t){this[p].set("onmessageerror",t)}get onoffline(){return S.getEventListener(this,"onoffline")}set onoffline(t){this[p].set("onoffline",t)}get ononline(){return S.getEventListener(this,"ononline")}set ononline(t){this[p].set("ononline",t)}get onpagehide(){return S.getEventListener(this,"onpagehide")}set onpagehide(t){this[p].set("onpagehide",t)}get onpageshow(){return S.getEventListener(this,"onpageshow")}set onpageshow(t){this[p].set("onpageshow",t)}get onpopstate(){return S.getEventListener(this,"onpopstate")}set onpopstate(t){this[p].set("onpopstate",t)}get onrejectionhandled(){return S.getEventListener(this,"onrejectionhandled")}set onrejectionhandled(t){this[p].set("onrejectionhandled",t)}get onstorage(){return S.getEventListener(this,"onstorage")}set onstorage(t){this[p].set("onstorage",t)}get onunhandledrejection(){return S.getEventListener(this,"onunhandledrejection")}set onunhandledrejection(t){this[p].set("onunhandledrejection",t)}get onunload(){return S.getEventListener(this,"onunload")}set onunload(t){this[p].set("onunload",t)}get preserveAspectRatio(){if(!this[ar])this[ar]=new ai(h,this[m],{getAttribute:()=>this.getAttribute("preserveAspectRatio"),setAttribute:(t)=>this.setAttribute("preserveAspectRatio",t)});return this[ar]}get height(){if(!this[F])this[F]=new N(h,this[m],{getAttribute:()=>this.getAttribute("height"),setAttribute:(t)=>this.setAttribute("height",t)});return this[F]}get width(){if(!this[V])this[V]=new N(h,this[m],{getAttribute:()=>this.getAttribute("width"),setAttribute:(t)=>this.setAttribute("width",t)});return this[V]}get x(){if(!this[L])this[L]=new N(h,this[m],{getAttribute:()=>this.getAttribute("x"),setAttribute:(t)=>this.setAttribute("x",t)});return this[L]}get y(){if(!this[k])this[k]=new N(h,this[m],{getAttribute:()=>this.getAttribute("y"),setAttribute:(t)=>this.setAttribute("y",t)});return this[k]}get currentScale(){return this[Qh]}set currentScale(t){let e=typeof t!=="number"?parseFloat(String(t)):t;if(isNaN(e))throw this[m].TypeError("Failed to set the 'currentScale' property on 'SVGSVGElement': The provided float value is non-finite.");if(e<1)return;this[Qh]=e}get currentTranslate(){return new pr(h,this[m])}get viewBox(){if(!this[Yi])this[Yi]=new gl(h,this[m],{getAttribute:()=>this.getAttribute("viewBox"),setAttribute:(t)=>this.setAttribute("viewBox",t)});return this[Yi]}pauseAnimations(){}unpauseAnimations(){}animationsPaused(){return!1}getCurrentTime(){return 0}setCurrentTime(t){}getIntersectionList(t,e){return new Wo(h,[])}getEnclosureList(t,e){return new Wo(h,[])}checkIntersection(t,e){return!1}checkEnclosure(t,e){return!1}deselectAll(){}createSVGNumber(){return new Mi(h,this[m])}createSVGLength(){return new ki(h,this[m])}createSVGAngle(){return new Sn(h,this[m])}createSVGPoint(){return new pr(h,this[m])}createSVGMatrix(){return new rr(h,this[m])}createSVGRect(){return new Li(h,this[m])}createSVGTransform(){return new Ko(h,this[m])}createSVGTransformFromMatrix(t){let e=new Ko(h,this[m]);return e.setMatrix(t),e}getElementsByClassName(t){return oe.getElementsByClassName(this,t)}getElementsByTagName(t){return oe.getElementsByTagName(this,t)}getElementsByTagNameNS(t,e){return oe.getElementsByTagNameNS(this,t,e)}getElementById(t){return oe.getElementById(this,t)}[ht](t=!1){return super[ht](t)}}class mi extends et{[Wi]=null;[_i]=null;get onbegin(){return S.getEventListener(this,"onbegin")}set onbegin(t){this[p].set("onbegin",t)}get onend(){return S.getEventListener(this,"onend")}set onend(t){this[p].set("onend",t)}get onrepeat(){return S.getEventListener(this,"onrepeat")}set onrepeat(t){this[p].set("onrepeat",t)}get requiredExtensions(){if(!this[Wi])this[Wi]=new Ni(h,this[m],{getAttribute:()=>this.getAttribute("requiredExtensions"),setAttribute:(t)=>this.setAttribute("requiredExtensions",t)});return this[Wi]}get systemLanguage(){if(!this[_i])this[_i]=new Ni(h,this[m],{getAttribute:()=>this.getAttribute("systemLanguage"),setAttribute:(t)=>this.setAttribute("systemLanguage",t)});return this[_i]}get targetElement(){return null}}class Oc extends mi{}class Gc extends mi{}class Uc extends mi{}class pt{[m];[v];[A];[lo]=0;constructor(t,e,o){if(t!==h)throw TypeError("Illegal constructor");this[m]=e,this[v]=o.getAttribute,this[A]=o.setAttribute,this[lo]=o.defaultValue||0}get animVal(){return this.baseVal}set animVal(t){}get baseVal(){let t=this[v]();if(!t)return this[lo];let e=parseFloat(t);if(isNaN(e))return this[lo];return e}set baseVal(t){let e=typeof t!=="number"?parseFloat(t):t;if(isNaN(e))throw new this[m].TypeError("TypeError: Failed to set the 'baseVal' property on 'SVGAnimatedNumber': The provided float value is non-finite.");this[A](String(e))}}class Nr extends Ae{[Ym]=null;get pathLength(){if(!this[Ym])this[Ym]=new pt(h,this[m],{getAttribute:()=>this.getAttribute("pathLength"),setAttribute:(t)=>this.setAttribute("pathLength",t)});return this[Ym]}isPointInFill(t){if(!(t instanceof pr))throw TypeError("Failed to execute 'isPointInFill' on 'SVGGeometryElement': parameter 1 is not of type 'SVGPoint'.");return!1}isPointInStroke(t){if(!(t instanceof pr))throw TypeError("Failed to execute 'isPointInFill' on 'SVGGeometryElement': parameter 1 is not of type 'SVGPoint'.");return!1}getTotalLength(){return 0}getPointAtLength(t){return new pr(h,this[m])}}class Hc extends Nr{[ao]=null;[mo]=null;[$i]=null;get cx(){if(!this[ao])this[ao]=new N(h,this[m],{getAttribute:()=>this.getAttribute("cx"),setAttribute:(t)=>this.setAttribute("cx",t)});return this[ao]}get cy(){if(!this[mo])this[mo]=new N(h,this[m],{getAttribute:()=>this.getAttribute("cy"),setAttribute:(t)=>this.setAttribute("cy",t)});return this[mo]}get r(){if(!this[$i])this[$i]=new N(h,this[m],{getAttribute:()=>this.getAttribute("r"),setAttribute:(t)=>this.setAttribute("r",t)});return this[$i]}}class Tt{[m];[v];[A];[Je];[lo];constructor(t,e,o){if(t!==h)throw TypeError("Illegal constructor");this[m]=e,this[v]=o.getAttribute,this[A]=o.setAttribute,this[Je]=o.values,this[lo]=o.defaultValue}get animVal(){return this.baseVal}set animVal(t){}get baseVal(){let t=this[v]();if(!t)return this[Je].indexOf(this[lo])+1;let e=this[Je].indexOf(t);if(e===-1){let o=this[Je].indexOf(null);return o!==-1?o+1:0}return e+1}set baseVal(t){let e=Number(t);if(isNaN(e))e=0;if(e<1)throw TypeError(`Failed to set the 'baseVal' property on 'SVGAnimatedEnumeration': The enumeration value provided is ${e}, which is not settable.`);if(e>this[Je].length)throw TypeError(`Failed to set the 'baseVal' property on 'SVGAnimatedEnumeration': The enumeration value provided (${e}) is larger than the largest allowed value (${this[Je].length}).`);let o=this[v](),s=this[Je][e-1]===null,n=s?"0":this[Je][e-1];if(!o||s&&this[Je].includes(o)||!s&&o!==n)this[A](n||"")}}class Wc extends et{[Jm]=null;get clipPathUnits(){if(!this[Jm])this[Jm]=new Tt(h,this[m],{getAttribute:()=>this.getAttribute("clipPathUnits"),setAttribute:(t)=>this.setAttribute("clipPathUnits",t),values:["userSpaceOnUse","objectBoundingBox"],defaultValue:"userSpaceOnUse"});return this[Jm]}}class _c extends Ae{}class Yc extends et{}class Kc extends Nr{[ao]=null;[mo]=null;[ji]=null;[qi]=null;get cx(){if(!this[ao])this[ao]=new N(h,this[m],{getAttribute:()=>this.getAttribute("cx"),setAttribute:(t)=>this.setAttribute("cx",t)});return this[ao]}get cy(){if(!this[mo])this[mo]=new N(h,this[m],{getAttribute:()=>this.getAttribute("cy"),setAttribute:(t)=>this.setAttribute("cy",t)});return this[mo]}get rx(){if(!this[ji])this[ji]=new N(h,this[m],{getAttribute:()=>this.getAttribute("rx"),setAttribute:(t)=>this.setAttribute("rx",t)});return this[ji]}get ry(){if(!this[qi])this[qi]=new N(h,this[m],{getAttribute:()=>this.getAttribute("ry"),setAttribute:(t)=>this.setAttribute("ry",t)});return this[qi]}}class nt{[m];[v];[A];constructor(t,e,o){if(t!==h)throw TypeError("Illegal constructor");this[m]=e,this[v]=o.getAttribute,this[A]=o.setAttribute}get animVal(){return this.baseVal}set animVal(t){}get baseVal(){let t=this[v]();if(!t)return"";return t}set baseVal(t){this[A](String(t))}}class Qc extends et{static SVG_FEBLEND_MODE_UNKNOWN=0;static SVG_FEBLEND_MODE_NORMAL=1;static SVG_FEBLEND_MODE_MULTIPLY=2;static SVG_FEBLEND_MODE_SCREEN=3;static SVG_FEBLEND_MODE_DARKEN=4;static SVG_FEBLEND_MODE_LIGHTEN=5;static SVG_FEBLEND_MODE_OVERLAY=6;static SVG_FEBLEND_MODE_COLOR_DODGE=7;static SVG_FEBLEND_MODE_COLOR_BURN=8;static SVG_FEBLEND_MODE_HARD_LIGHT=9;static SVG_FEBLEND_MODE_SOFT_LIGHT=10;static SVG_FEBLEND_MODE_DIFFERENCE=11;static SVG_FEBLEND_MODE_EXCLUSION=12;static SVG_FEBLEND_MODE_HUE=13;static SVG_FEBLEND_MODE_SATURATION=14;static SVG_FEBLEND_MODE_COLOR=15;static SVG_FEBLEND_MODE_LUMINOSITY=16;[F]=null;[at]=null;[yo]=null;[Ee]=null;[L]=null;[k]=null;[V]=null;get height(){if(!this[F])this[F]=new N(h,this[m],{getAttribute:()=>this.getAttribute("height"),setAttribute:(t)=>this.setAttribute("height",t)});return this[F]}get in1(){if(!this[at])this[at]=new nt(h,this[m],{getAttribute:()=>this.getAttribute("in"),setAttribute:(t)=>this.setAttribute("in",t)});return this[at]}get in2(){if(!this[yo])this[yo]=new nt(h,this[m],{getAttribute:()=>this.getAttribute("in2"),setAttribute:(t)=>this.setAttribute("in2",t)});return this[yo]}get mode(){if(!this[Ee])this[Ee]=new Tt(h,this[m],{getAttribute:()=>this.getAttribute("mode"),setAttribute:(t)=>this.setAttribute("mode",t),values:["normal","multiply","screen","darken","lighten","overlay","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],defaultValue:"normal"});return this[Ee]}get width(){if(!this[V])this[V]=new N(h,this[m],{getAttribute:()=>this.getAttribute("width"),setAttribute:(t)=>this.setAttribute("width",t)});return this[V]}get x(){if(!this[L])this[L]=new N(h,this[m],{getAttribute:()=>this.getAttribute("x"),setAttribute:(t)=>this.setAttribute("x",t)});return this[L]}get y(){if(!this[k])this[k]=new N(h,this[m],{getAttribute:()=>this.getAttribute("y"),setAttribute:(t)=>this.setAttribute("y",t)});return this[k]}}var pw=/[\t\f\n\r, ]+/;class Sl{[m];[v];[A];[j]=!1;[U]={items:[],attributeValue:""};constructor(t,e,o){if(t!==h)throw TypeError("Illegal constructor");if(this[m]=e,this[j]=!!o.readOnly,this[v]=o.getAttribute,this[A]=o.setAttribute,t!==h)throw TypeError("Illegal constructor");let s=new fe(this,[Sl]);return new Proxy(this,{get:(n,l)=>{if(l==="length"||l==="numberOfItems")return n[K]().length;if(l in n||typeof l==="symbol")return s.bind(l),n[l];let a=Number(l);if(!isNaN(a))return n[K]()[a]},set(n,l,a){if(s.bind(l),typeof l==="symbol")return n[l]=a,!0;let y=Number(l);if(isNaN(y))n[l]=a;return!0},deleteProperty(n,l){if(typeof l==="symbol")return delete n[l],!0;let a=Number(l);if(isNaN(a))delete n[l];return!0},ownKeys(n){return Object.keys(n[K]())},has(n,l){if(l in n)return!0;if(typeof l==="symbol")return!1;let a=Number(l);return!isNaN(a)&&a>=0&&a<n[K]().length},defineProperty(n,l,a){if(s.preventBinding(l),l in n)return Object.defineProperty(n,l,a),!0;return!1},getOwnPropertyDescriptor(n,l){if(l in n||typeof l==="symbol")return;let a=Number(l),y=n[K]();if(!isNaN(a)&&y[a])return{value:y[a],writable:!1,enumerable:!0,configurable:!0}}})}get length(){return this[K]().length}get numberOfItems(){return this[K]().length}[Symbol.iterator](){return this[K]().values()}clear(){if(this[j])throw new this[m].TypeError("Failed to execute 'clear' on 'SVGNumberList': The object is read-only.");for(let t of this[U].items)t[v]=null,t[A]=null;this[U].items=[],this[U].attributeValue="",this[A]("")}initialize(t){if(arguments.length<1)throw new this[m].TypeError(`Failed to execute 'initialize' on 'SVGNumberList': 1 arguments required, but only ${arguments.length} present.`);if(this[j])throw new this[m].TypeError("Failed to execute 'initialize' on 'SVGNumberList': The object is read-only.");for(let e of this[U].items)e[v]=null,e[A]=null;return t[v]=()=>t[I],t[A]=()=>{this[U].attributeValue=this[K]().map((e)=>e[I]||"0").join(" "),this[A](this[U].attributeValue)},this[U].items=[t],this[U].attributeValue=t[I],this[A](t[I]||""),t}getItem(t){let e=this[K]();if(typeof t==="number")return e[t]?e[t]:null;return t=Number(t),t=isNaN(t)?0:t,e[t]?e[t]:null}insertItemBefore(t,e){if(this[j])throw new this[m].TypeError("Failed to execute 'insertItemBefore' on 'SVGNumberList': The object is read-only.");if(arguments.length<2)throw new this[m].TypeError(`Failed to execute 'insertItemBefore' on 'SVGNumberList': 2 arguments required, but only ${arguments.length} present.`);if(!(t instanceof Mi))throw new this[m].TypeError("Failed to execute 'insertItemBefore' on 'SVGNumberList': parameter 1 is not of type 'SVGNumber'.");let o=this[K](),s=o.indexOf(t);if(s!==-1)o.splice(s,1);if(e<0)e=0;else if(e>o.length)e=o.length;return o.splice(e,0,t),t[v]=()=>t[I],t[A]=()=>{this[U].attributeValue=this[K]().map((n)=>n[I]||"0").join(" "),this[A](this[U].attributeValue)},this[U].attributeValue=o.map((n)=>n[I]||"0").join(" "),this[A](this[U].attributeValue),t}replaceItem(t,e){if(this[j])throw new this[m].TypeError("Failed to execute 'replaceItem' on 'SVGNumberList': The object is read-only.");if(arguments.length<2)throw new this[m].TypeError(`Failed to execute 'replaceItem' on 'SVGNumberList': 2 arguments required, but only ${arguments.length} present.`);if(!(t instanceof Mi))throw new this[m].TypeError("Failed to execute 'replaceItem' on 'SVGNumberList': parameter 1 is not of type 'SVGNumber'.");let o=this[K](),s=o.indexOf(t);if(s===e)return t;if(s!==-1)o.splice(s,1);if(e<0)e=0;else if(e>=o.length)e=o.length-1;if(o[e])o[e][v]=null,o[e][A]=null;let n=o[e];return o[e]=t,t[v]=()=>t[I],t[A]=()=>{this[U].attributeValue=this[K]().map((l)=>l[I]||"0").join(" "),this[A](this[U].attributeValue)},this[U].attributeValue=o.map((l)=>l[I]||"0").join(" "),this[A](this[U].attributeValue),n}removeItem(t){if(this[j])throw new this[m].TypeError("Failed to execute 'removeItem' on 'SVGNumberList': The object is read-only.");if(arguments.length<1)throw new this[m].TypeError(`Failed to execute 'removeItem' on 'SVGNumberList': 1 argument required, but only ${arguments.length} present.`);let e=this[K]();if(t=Number(t),isNaN(t))t=0;if(t>=e.length)throw new this[m].DOMException(`Failed to execute 'removeItem' on 'SVGNumberList': The index provided (${t}) is greater than the maximum bound.`,w.indexSizeError);if(t<0)throw new this[m].DOMException(`Failed to execute 'removeItem' on 'SVGNumberList': The index provided (${t}) is negative.`,w.indexSizeError);let o=e[t];if(o)o[v]=null,o[A]=null;return e.splice(t,1),this[A](e.map((s)=>s[I]||"0").join(" ")),o}appendItem(t){if(this[j])throw new this[m].TypeError("Failed to execute 'appendItem' on 'SVGNumberList': The object is read-only.");if(arguments.length<1)throw new this[m].TypeError(`Failed to execute 'appendItem' on 'SVGNumberList': 1 argument required, but only ${arguments.length} present.`);if(!(t instanceof Mi))throw new this[m].TypeError("Failed to execute 'appendItem' on 'SVGNumberList': parameter 1 is not of type 'SVGNumber'.");let e=this[K](),o=e.indexOf(t);if(o!==-1)e.splice(o,1);return e.push(t),t[v]=()=>t[I],t[A]=()=>{this[U].attributeValue=this[K]().map((s)=>s[I]||"0").join(" "),this[A](this[U].attributeValue)},this[U].attributeValue=e.map((s)=>s[I]||"0").join(" "),this[A](this[U].attributeValue),t}[K](){let t=this[v]()??"",e=this[U];if(e.attributeValue===t)return e.items;if(e.items.length)for(let n of e.items)n[v]=null,n[A]=null;let o=[],s=t.trim();if(s){let n=s.split(pw);for(let l=0,a=n.length;l<a;l++){let y=new Mi(h,this[m],{readOnly:this[j],getAttribute:()=>y[I],setAttribute:()=>{this[U].attributeValue=this[K]().map((u)=>u[I]||"0").join(" "),this[A](this[U].attributeValue)}});y[I]=String(parseFloat(n[l])),o.push(y)}}return e.attributeValue=t,e.items=o,o}}class Fo{[m];[v];[A];[se]=null;[ne]=null;constructor(t,e,o){if(t!==h)throw TypeError("Illegal constructor");this[m]=e,this[v]=o.getAttribute,this[A]=o.setAttribute}get animVal(){if(!this[ne])this[ne]=new Sl(h,this[m],{readOnly:!0,getAttribute:this[v],setAttribute:()=>{}});return this[ne]}set animVal(t){}get baseVal(){if(!this[se])this[se]=new Sl(h,this[m],{getAttribute:this[v],setAttribute:this[A]});return this[se]}set baseVal(t){}}class jc extends et{static SVG_FEBLEND_TYPE_UNKNOWN=0;static SVG_FEBLEND_TYPE_MATRIX=1;static SVG_FEBLEND_TYPE_SATURATE=2;static SVG_FEBLEND_TYPE_HUEROTATE=3;static SVG_FEBLEND_TYPE_LUMINANCETOALPHA=4;[F]=null;[at]=null;[yo]=null;[Z]=null;[Qt]=null;[Je]=null;[L]=null;[k]=null;[V]=null;get height(){if(!this[F])this[F]=new N(h,this[m],{getAttribute:()=>this.getAttribute("height"),setAttribute:(t)=>this.setAttribute("height",t)});return this[F]}get in1(){if(!this[at])this[at]=new nt(h,this[m],{getAttribute:()=>this.getAttribute("in"),setAttribute:(t)=>this.setAttribute("in",t)});return this[at]}get in2(){if(!this[yo])this[yo]=new nt(h,this[m],{getAttribute:()=>this.getAttribute("in2"),setAttribute:(t)=>this.setAttribute("in2",t)});return this[yo]}get result(){if(!this[Z])this[Z]=new nt(h,this[m],{getAttribute:()=>this.getAttribute("result"),setAttribute:(t)=>this.setAttribute("result",t)});return this[Z]}get type(){if(!this[Qt])this[Qt]=new Tt(h,this[m],{getAttribute:()=>this.getAttribute("type"),setAttribute:(t)=>this.setAttribute("type",t),values:["matrix","saturate","huerotate","luminancetoalpha"],defaultValue:"matrix"});return this[Qt]}get values(){if(!this[Je])this[Je]=new Fo(h,this[m],{getAttribute:()=>this.getAttribute("values"),setAttribute:(t)=>this.setAttribute("values",t)});return this[Je]}get width(){if(!this[V])this[V]=new N(h,this[m],{getAttribute:()=>this.getAttribute("width"),setAttribute:(t)=>this.setAttribute("width",t)});return this[V]}get x(){if(!this[L])this[L]=new N(h,this[m],{getAttribute:()=>this.getAttribute("x"),setAttribute:(t)=>this.setAttribute("x",t)});return this[L]}get y(){if(!this[k])this[k]=new N(h,this[m],{getAttribute:()=>this.getAttribute("y"),setAttribute:(t)=>this.setAttribute("y",t)});return this[k]}}class qc extends et{[F]=null;[at]=null;[Z]=null;[L]=null;[k]=null;[V]=null;get height(){if(!this[F])this[F]=new N(h,this[m],{getAttribute:()=>this.getAttribute("height"),setAttribute:(t)=>this.setAttribute("height",t)});return this[F]}get in1(){if(!this[at])this[at]=new nt(h,this[m],{getAttribute:()=>this.getAttribute("in"),setAttribute:(t)=>this.setAttribute("in",t)});return this[at]}get result(){if(!this[Z])this[Z]=new nt(h,this[m],{getAttribute:()=>this.getAttribute("result"),setAttribute:(t)=>this.setAttribute("result",t)});return this[Z]}get width(){if(!this[V])this[V]=new N(h,this[m],{getAttribute:()=>this.getAttribute("width"),setAttribute:(t)=>this.setAttribute("width",t)});return this[V]}get x(){if(!this[L])this[L]=new N(h,this[m],{getAttribute:()=>this.getAttribute("x"),setAttribute:(t)=>this.setAttribute("x",t)});return this[L]}get y(){if(!this[k])this[k]=new N(h,this[m],{getAttribute:()=>this.getAttribute("y"),setAttribute:(t)=>this.setAttribute("y",t)});return this[k]}}class $c extends et{static SVG_FECOMPOSITE_OPERATOR_UNKNOWN=0;static SVG_FECOMPOSITE_OPERATOR_OVER=1;static SVG_FECOMPOSITE_OPERATOR_IN=2;static SVG_FECOMPOSITE_OPERATOR_OUT=3;static SVG_FECOMPOSITE_OPERATOR_ATOP=4;static SVG_FECOMPOSITE_OPERATOR_XOR=5;static SVG_FECOMPOSITE_OPERATOR_ARITHMETIC=6;[F]=null;[at]=null;[Z]=null;[Qt]=null;[Je]=null;[L]=null;[k]=null;[V]=null;get height(){if(!this[F])this[F]=new N(h,this[m],{getAttribute:()=>this.getAttribute("height"),setAttribute:(t)=>this.setAttribute("height",t)});return this[F]}get in1(){if(!this[at])this[at]=new nt(h,this[m],{getAttribute:()=>this.getAttribute("in"),setAttribute:(t)=>this.setAttribute("in",t)});return this[at]}get result(){if(!this[Z])this[Z]=new nt(h,this[m],{getAttribute:()=>this.getAttribute("result"),setAttribute:(t)=>this.setAttribute("result",t)});return this[Z]}get type(){if(!this[Qt])this[Qt]=new Tt(h,this[m],{getAttribute:()=>this.getAttribute("type"),setAttribute:(t)=>this.setAttribute("type",t),values:["over","in","out","atop","xor","arithmetic"],defaultValue:"over"});return this[Qt]}get values(){if(!this[Je])this[Je]=new Fo(h,this[m],{getAttribute:()=>this.getAttribute("values"),setAttribute:(t)=>this.setAttribute("values",t)});return this[Je]}get width(){if(!this[V])this[V]=new N(h,this[m],{getAttribute:()=>this.getAttribute("width"),setAttribute:(t)=>this.setAttribute("width",t)});return this[V]}get x(){if(!this[L])this[L]=new N(h,this[m],{getAttribute:()=>this.getAttribute("x"),setAttribute:(t)=>this.setAttribute("x",t)});return this[L]}get y(){if(!this[k])this[k]=new N(h,this[m],{getAttribute:()=>this.getAttribute("y"),setAttribute:(t)=>this.setAttribute("y",t)});return this[k]}}class gm{[m];[v];[A];constructor(t,e,o){if(t!==h)throw TypeError("Illegal constructor");this[m]=e,this[v]=o.getAttribute,this[A]=o.setAttribute}get animVal(){return this.baseVal}set animVal(t){}get baseVal(){return this[v]()==="true"}set baseVal(t){this[A](typeof t!=="boolean"?String(Boolean(t)):String(t))}}class Ii{[m];[v];[A];constructor(t,e,o){if(t!==h)throw TypeError("Illegal constructor");this[m]=e,this[v]=o.getAttribute,this[A]=o.setAttribute}get animVal(){return this.baseVal}set animVal(t){}get baseVal(){let t=this[v]();if(!t)return 0;let e=parseInt(t);if(isNaN(e))return 0;return e}set baseVal(t){let e=parseInt(String(t));if(isNaN(e))throw new this[m].TypeError("TypeError: Failed to set the 'baseVal' property on 'SVGAnimatedInteger': The provided float value is non-finite.");this[A](String(e))}}class Xc extends et{static SVG_EDGEMODE_UNKNOWN=0;static SVG_EDGEMODE_DUPLICATE=1;static SVG_EDGEMODE_WRAP=2;static SVG_EDGEMODE_NONE=3;[Sy]=null;[fy]=null;[rs]=null;[F]=null;[at]=null;[Py]=null;[po]=null;[uo]=null;[Ay]=null;[wy]=null;[Ey]=null;[Z]=null;[xy]=null;[vy]=null;[V]=null;[L]=null;[k]=null;get bias(){if(!this[Sy])this[Sy]=new pt(h,this[m],{getAttribute:()=>this.getAttribute("bias"),setAttribute:(t)=>this.setAttribute("bias",t)});return this[Sy]}get divisor(){if(!this[fy])this[fy]=new pt(h,this[m],{getAttribute:()=>this.getAttribute("divisor"),setAttribute:(t)=>this.setAttribute("divisor",t)});return this[fy]}get edgeMode(){if(!this[rs])this[rs]=new Tt(h,this[m],{getAttribute:()=>this.getAttribute("edgeMode"),setAttribute:(t)=>this.setAttribute("edgeMode",t),values:["duplicate","wrap","none"],defaultValue:"duplicate"});return this[rs]}get height(){if(!this[F])this[F]=new N(h,this[m],{getAttribute:()=>this.getAttribute("height"),setAttribute:(t)=>this.setAttribute("height",t)});return this[F]}get in1(){if(!this[at])this[at]=new nt(h,this[m],{getAttribute:()=>this.getAttribute("in"),setAttribute:(t)=>this.setAttribute("in",t)});return this[at]}get kernelMatrix(){if(!this[Py])this[Py]=new Fo(h,this[m],{getAttribute:()=>this.getAttribute("kernelMatrix"),setAttribute:(t)=>this.setAttribute("kernelMatrix",t)});return this[Py]}get kernelUnitLengthX(){if(!this[po])this[po]=new pt(h,this[m],{getAttribute:()=>this.getAttribute("kernelUnitLengthX"),setAttribute:(t)=>this.setAttribute("kernelUnitLengthX",t)});return this[po]}get kernelUnitLengthY(){if(!this[uo])this[uo]=new pt(h,this[m],{getAttribute:()=>this.getAttribute("kernelUnitLengthY"),setAttribute:(t)=>this.setAttribute("kernelUnitLengthY",t)});return this[uo]}get orderX(){if(!this[Ay])this[Ay]=new Ii(h,this[m],{getAttribute:()=>this.getAttribute("orderX"),setAttribute:(t)=>this.setAttribute("orderX",t)});return this[Ay]}get orderY(){if(!this[wy])this[wy]=new Ii(h,this[m],{getAttribute:()=>this.getAttribute("orderY"),setAttribute:(t)=>this.setAttribute("orderY",t)});return this[wy]}get preserveAlpha(){if(!this[Ey])this[Ey]=new gm(h,this[m],{getAttribute:()=>this.getAttribute("preserveAlpha"),setAttribute:(t)=>this.setAttribute("preserveAlpha",t)});return this[Ey]}get result(){if(!this[Z])this[Z]=new nt(h,this[m],{getAttribute:()=>this.getAttribute("result"),setAttribute:(t)=>this.setAttribute("result",t)});return this[Z]}get targetX(){if(!this[xy])this[xy]=new Ii(h,this[m],{getAttribute:()=>this.getAttribute("targetX"),setAttribute:(t)=>this.setAttribute("targetX",t)});return this[xy]}get targetY(){if(!this[vy])this[vy]=new Ii(h,this[m],{getAttribute:()=>this.getAttribute("targetY"),setAttribute:(t)=>this.setAttribute("targetY",t)});return this[vy]}get width(){if(!this[V])this[V]=new N(h,this[m],{getAttribute:()=>this.getAttribute("width"),setAttribute:(t)=>this.setAttribute("width",t)});return this[V]}get x(){if(!this[L])this[L]=new N(h,this[m],{getAttribute:()=>this.getAttribute("x"),setAttribute:(t)=>this.setAttribute("x",t)});return this[L]}get y(){if(!this[k])this[k]=new N(h,this[m],{getAttribute:()=>this.getAttribute("y"),setAttribute:(t)=>this.setAttribute("y",t)});return this[k]}}class zc extends et{[Ty]=null;[F]=null;[at]=null;[po]=null;[uo]=null;[Z]=null;[os]=null;[V]=null;[L]=null;[k]=null;get diffuseConstant(){if(!this[Ty])this[Ty]=new pt(h,this[m],{getAttribute:()=>this.getAttribute("diffuseConstant"),setAttribute:(t)=>this.setAttribute("diffuseConstant",t)});return this[Ty]}get height(){if(!this[F])this[F]=new N(h,this[m],{getAttribute:()=>this.getAttribute("height"),setAttribute:(t)=>this.setAttribute("height",t)});return this[F]}get in1(){if(!this[at])this[at]=new nt(h,this[m],{getAttribute:()=>this.getAttribute("in"),setAttribute:(t)=>this.setAttribute("in",t)});return this[at]}get kernelUnitLengthX(){if(!this[po])this[po]=new pt(h,this[m],{getAttribute:()=>this.getAttribute("kernelUnitLengthX"),setAttribute:(t)=>this.setAttribute("kernelUnitLengthX",t)});return this[po]}get kernelUnitLengthY(){if(!this[uo])this[uo]=new pt(h,this[m],{getAttribute:()=>this.getAttribute("kernelUnitLengthY"),setAttribute:(t)=>this.setAttribute("kernelUnitLengthY",t)});return this[uo]}get result(){if(!this[Z])this[Z]=new nt(h,this[m],{getAttribute:()=>this.getAttribute("result"),setAttribute:(t)=>this.setAttribute("result",t)});return this[Z]}get surfaceScale(){if(!this[os])this[os]=new pt(h,this[m],{getAttribute:()=>this.getAttribute("surfaceScale"),setAttribute:(t)=>this.setAttribute("surfaceScale",t)});return this[os]}get width(){if(!this[V])this[V]=new N(h,this[m],{getAttribute:()=>this.getAttribute("width"),setAttribute:(t)=>this.setAttribute("width",t)});return this[V]}get x(){if(!this[L])this[L]=new N(h,this[m],{getAttribute:()=>this.getAttribute("x"),setAttribute:(t)=>this.setAttribute("x",t)});return this[L]}get y(){if(!this[k])this[k]=new N(h,this[m],{getAttribute:()=>this.getAttribute("y"),setAttribute:(t)=>this.setAttribute("y",t)});return this[k]}}class Jc extends et{static SVG_CHANNEL_UNKNOWN=0;static SVG_CHANNEL_R=1;static SVG_CHANNEL_G=2;static SVG_CHANNEL_B=3;static SVG_CHANNEL_A=4;[F]=null;[at]=null;[yo]=null;[Z]=null;[Cy]=null;[V]=null;[L]=null;[Ny]=null;[k]=null;[Ly]=null;get height(){if(!this[F])this[F]=new N(h,this[m],{getAttribute:()=>this.getAttribute("height"),setAttribute:(t)=>this.setAttribute("height",t)});return this[F]}get in1(){if(!this[at])this[at]=new nt(h,this[m],{getAttribute:()=>this.getAttribute("in"),setAttribute:(t)=>this.setAttribute("in",t)});return this[at]}get in2(){if(!this[yo])this[yo]=new nt(h,this[m],{getAttribute:()=>this.getAttribute("in2"),setAttribute:(t)=>this.setAttribute("in2",t)});return this[yo]}get result(){if(!this[Z])this[Z]=new nt(h,this[m],{getAttribute:()=>this.getAttribute("result"),setAttribute:(t)=>this.setAttribute("result",t)});return this[Z]}get scale(){if(!this[Cy])this[Cy]=new pt(h,this[m],{getAttribute:()=>this.getAttribute("scale"),setAttribute:(t)=>this.setAttribute("scale",t)});return this[Cy]}get width(){if(!this[V])this[V]=new N(h,this[m],{getAttribute:()=>this.getAttribute("width"),setAttribute:(t)=>this.setAttribute("width",t)});return this[V]}get x(){if(!this[L])this[L]=new N(h,this[m],{getAttribute:()=>this.getAttribute("x"),setAttribute:(t)=>this.setAttribute("x",t)});return this[L]}get xChannelSelector(){if(!this[Ny])this[Ny]=new Tt(h,this[m],{getAttribute:()=>this.getAttribute("xChannelSelector"),setAttribute:(t)=>this.setAttribute("xChannelSelector",t),values:["r","g","b","a"],defaultValue:"r"});return this[Ny]}get y(){if(!this[k])this[k]=new N(h,this[m],{getAttribute:()=>this.getAttribute("y"),setAttribute:(t)=>this.setAttribute("y",t)});return this[k]}get yChannelSelector(){if(!this[Ly])this[Ly]=new Tt(h,this[m],{getAttribute:()=>this.getAttribute("yChannelSelector"),setAttribute:(t)=>this.setAttribute("yChannelSelector",t),values:["r","g","b","a"],defaultValue:"r"});return this[Ly]}}class Zc extends et{[ky]=null;[My]=null;get azimuth(){if(!this[ky])this[ky]=new pt(h,this[m],{getAttribute:()=>this.getAttribute("azimuth"),setAttribute:(t)=>this.setAttribute("azimuth",t)});return this[ky]}get elevation(){if(!this[My])this[My]=new pt(h,this[m],{getAttribute:()=>this.getAttribute("elevation"),setAttribute:(t)=>this.setAttribute("elevation",t)});return this[My]}}class td extends et{[ho]=null;[co]=null;[F]=null;[at]=null;[Z]=null;[is]=null;[ss]=null;[V]=null;[L]=null;[k]=null;get dx(){if(!this[ho])this[ho]=new pt(h,this[m],{getAttribute:()=>this.getAttribute("dx"),setAttribute:(t)=>this.setAttribute("dx",t)});return this[ho]}get dy(){if(!this[co])this[co]=new pt(h,this[m],{getAttribute:()=>this.getAttribute("dy"),setAttribute:(t)=>this.setAttribute("dy",t)});return this[co]}get height(){if(!this[F])this[F]=new N(h,this[m],{getAttribute:()=>this.getAttribute("height"),setAttribute:(t)=>this.setAttribute("height",t)});return this[F]}get in1(){if(!this[at])this[at]=new nt(h,this[m],{getAttribute:()=>this.getAttribute("in"),setAttribute:(t)=>this.setAttribute("in",t)});return this[at]}get result(){if(!this[Z])this[Z]=new nt(h,this[m],{getAttribute:()=>this.getAttribute("result"),setAttribute:(t)=>this.setAttribute("result",t)});return this[Z]}get stdDeviationX(){if(!this[is])this[is]=new pt(h,this[m],{getAttribute:()=>this.getAttribute("stdDeviationX"),setAttribute:(t)=>this.setAttribute("stdDeviationX",t),defaultValue:2});return this[is]}get stdDeviationY(){if(!this[ss])this[ss]=new pt(h,this[m],{getAttribute:()=>this.getAttribute("stdDeviationY"),setAttribute:(t)=>this.setAttribute("stdDeviationY",t),defaultValue:2});return this[ss]}get width(){if(!this[V])this[V]=new N(h,this[m],{getAttribute:()=>this.getAttribute("width"),setAttribute:(t)=>this.setAttribute("width",t)});return this[V]}get x(){if(!this[L])this[L]=new N(h,this[m],{getAttribute:()=>this.getAttribute("x"),setAttribute:(t)=>this.setAttribute("x",t)});return this[L]}get y(){if(!this[k])this[k]=new N(h,this[m],{getAttribute:()=>this.getAttribute("y"),setAttribute:(t)=>this.setAttribute("y",t)});return this[k]}setStdDeviation(t,e){this.stdDeviationX.baseVal=t,this.stdDeviationY.baseVal=e}}class ed extends et{[F]=null;[Z]=null;[V]=null;[L]=null;[k]=null;get height(){if(!this[F])this[F]=new N(h,this[m],{getAttribute:()=>this.getAttribute("height"),setAttribute:(t)=>this.setAttribute("height",t)});return this[F]}get result(){if(!this[Z])this[Z]=new nt(h,this[m],{getAttribute:()=>this.getAttribute("result"),setAttribute:(t)=>this.setAttribute("result",t)});return this[Z]}get width(){if(!this[V])this[V]=new N(h,this[m],{getAttribute:()=>this.getAttribute("width"),setAttribute:(t)=>this.setAttribute("width",t)});return this[V]}get x(){if(!this[L])this[L]=new N(h,this[m],{getAttribute:()=>this.getAttribute("x"),setAttribute:(t)=>this.setAttribute("x",t)});return this[L]}get y(){if(!this[k])this[k]=new N(h,this[m],{getAttribute:()=>this.getAttribute("y"),setAttribute:(t)=>this.setAttribute("y",t)});return this[k]}}class yi extends et{static SVG_FECOMPONENTTRANSFER_TYPE_UNKNOWN=0;static SVG_FECOMPONENTTRANSFER_TYPE_IDENTITY=1;static SVG_FECOMPONENTTRANSFER_TYPE_TABLE=2;static SVG_FECOMPONENTTRANSFER_TYPE_DISCRETE=3;static SVG_FECOMPONENTTRANSFER_TYPE_LINEAR=4;static SVG_FECOMPONENTTRANSFER_TYPE_GAMMA=5;[Qt]=null;[Iy]=null;[Ry]=null;[Fy]=null;[Vy]=null;[Dy]=null;[ts]=null;get type(){if(!this[Qt])this[Qt]=new Tt(h,this[m],{getAttribute:()=>this.getAttribute("type"),setAttribute:(t)=>this.setAttribute("type",t),values:["identity","table","discrete","linear","gamma"],defaultValue:"identity"});return this[Qt]}get tableValues(){if(!this[Iy])this[Iy]=new Fo(h,this[m],{getAttribute:()=>this.getAttribute("tableValues"),setAttribute:(t)=>this.setAttribute("tableValues",t)});return this[Iy]}get slope(){if(!this[Ry])this[Ry]=new pt(h,this[m],{getAttribute:()=>this.getAttribute("slope"),setAttribute:(t)=>this.setAttribute("slope",t),defaultValue:1});return this[Ry]}get intercept(){if(!this[Fy])this[Fy]=new pt(h,this[m],{getAttribute:()=>this.getAttribute("intercept"),setAttribute:(t)=>this.setAttribute("intercept",t)});return this[Fy]}get amplitude(){if(!this[Vy])this[Vy]=new pt(h,this[m],{getAttribute:()=>this.getAttribute("amplitude"),setAttribute:(t)=>this.setAttribute("amplitude",t),defaultValue:1});return this[Vy]}get exponent(){if(!this[Dy])this[Dy]=new pt(h,this[m],{getAttribute:()=>this.getAttribute("exponent"),setAttribute:(t)=>this.setAttribute("exponent",t),defaultValue:1});return this[Dy]}get offset(){if(!this[ts])this[ts]=new pt(h,this[m],{getAttribute:()=>this.getAttribute("offset"),setAttribute:(t)=>this.setAttribute("offset",t)});return this[ts]}}class rd extends yi{}class od extends yi{}class id extends yi{}class sd extends yi{}class nd extends et{static SVG_EDGEMODE_UNKNOWN=0;static SVG_EDGEMODE_DUPLICATE=1;static SVG_EDGEMODE_WRAP=2;static SVG_EDGEMODE_NONE=3;[rs]=null;[F]=null;[at]=null;[Z]=null;[is]=null;[ss]=null;[V]=null;[L]=null;[k]=null;get edgeMode(){if(!this[rs])this[rs]=new Tt(h,this[m],{getAttribute:()=>this.getAttribute("edgeMode"),setAttribute:(t)=>this.setAttribute("edgeMode",t),values:["duplicate","wrap","none"],defaultValue:"duplicate"});return this[rs]}get height(){if(!this[F])this[F]=new N(h,this[m],{getAttribute:()=>this.getAttribute("height"),setAttribute:(t)=>this.setAttribute("height",t)});return this[F]}get in1(){if(!this[at])this[at]=new nt(h,this[m],{getAttribute:()=>this.getAttribute("in"),setAttribute:(t)=>this.setAttribute("in",t)});return this[at]}get result(){if(!this[Z])this[Z]=new nt(h,this[m],{getAttribute:()=>this.getAttribute("result"),setAttribute:(t)=>this.setAttribute("result",t)});return this[Z]}get stdDeviationX(){if(!this[is])this[is]=new pt(h,this[m],{getAttribute:()=>this.getAttribute("stdDeviationX")||"2",setAttribute:(t)=>this.setAttribute("stdDeviationX",t)});return this[is]}get stdDeviationY(){if(!this[ss])this[ss]=new pt(h,this[m],{getAttribute:()=>this.getAttribute("stdDeviationY")||"2",setAttribute:(t)=>this.setAttribute("stdDeviationY",t)});return this[ss]}get width(){if(!this[V])this[V]=new N(h,this[m],{getAttribute:()=>this.getAttribute("width"),setAttribute:(t)=>this.setAttribute("width",t)});return this[V]}get x(){if(!this[L])this[L]=new N(h,this[m],{getAttribute:()=>this.getAttribute("x"),setAttribute:(t)=>this.setAttribute("x",t)});return this[L]}get y(){if(!this[k])this[k]=new N(h,this[m],{getAttribute:()=>this.getAttribute("y"),setAttribute:(t)=>this.setAttribute("y",t)});return this[k]}setStdDeviation(t,e){this.stdDeviationX.baseVal=t,this.stdDeviationY.baseVal=e}}class ld extends et{[Og]=null;[F]=null;[Lt]=null;[ar]=null;[Z]=null;[V]=null;[L]=null;[k]=null;get crossOrigin(){return this.getAttribute("crossorigin")}set crossOrigin(t){this.setAttribute("crossorigin",t)}get height(){if(!this[F])this[F]=new N(h,this[m],{getAttribute:()=>this.getAttribute("height"),setAttribute:(t)=>this.setAttribute("height",t)});return this[F]}get href(){if(!this[Lt])this[Lt]=new nt(h,this[m],{getAttribute:()=>this.getAttribute("href"),setAttribute:(t)=>this.setAttribute("href",t)});return this[Lt]}get preserveAspectRatio(){if(!this[ar])this[ar]=new ai(h,this[m],{getAttribute:()=>this.getAttribute("preserveAspectRatio"),setAttribute:(t)=>this.setAttribute("preserveAspectRatio",t)});return this[ar]}get result(){if(!this[Z])this[Z]=new nt(h,this[m],{getAttribute:()=>this.getAttribute("result"),setAttribute:(t)=>this.setAttribute("result",t)});return this[Z]}get width(){if(!this[V])this[V]=new N(h,this[m],{getAttribute:()=>this.getAttribute("width"),setAttribute:(t)=>this.setAttribute("width",t)});return this[V]}get x(){if(!this[L])this[L]=new N(h,this[m],{getAttribute:()=>this.getAttribute("x"),setAttribute:(t)=>this.setAttribute("x",t)});return this[L]}get y(){if(!this[k])this[k]=new N(h,this[m],{getAttribute:()=>this.getAttribute("y"),setAttribute:(t)=>this.setAttribute("y",t)});return this[k]}}class ad extends et{[F]=null;[Z]=null;[V]=null;[L]=null;[k]=null;get height(){if(!this[F])this[F]=new N(h,this[m],{getAttribute:()=>this.getAttribute("height"),setAttribute:(t)=>this.setAttribute("height",t)});return this[F]}get result(){if(!this[Z])this[Z]=new nt(h,this[m],{getAttribute:()=>this.getAttribute("result"),setAttribute:(t)=>this.setAttribute("result",t)});return this[Z]}get width(){if(!this[V])this[V]=new N(h,this[m],{getAttribute:()=>this.getAttribute("width"),setAttribute:(t)=>this.setAttribute("width",t)});return this[V]}get x(){if(!this[L])this[L]=new N(h,this[m],{getAttribute:()=>this.getAttribute("x"),setAttribute:(t)=>this.setAttribute("x",t)});return this[L]}get y(){if(!this[k])this[k]=new N(h,this[m],{getAttribute:()=>this.getAttribute("y"),setAttribute:(t)=>this.setAttribute("y",t)});return this[k]}}class md extends et{[at]=null;get in1(){if(!this[at])this[at]=new nt(h,this[m],{getAttribute:()=>this.getAttribute("in"),setAttribute:(t)=>this.setAttribute("in",t)});return this[at]}}class yd extends et{static SVG_MORPHOLOGY_OPERATOR_UNKNOWN=0;static SVG_MORPHOLOGY_OPERATOR_ERODE=1;static SVG_MORPHOLOGY_OPERATOR_DILATE=2;[F]=null;[at]=null;[By]=null;[Oy]=null;[Gy]=null;[Z]=null;[V]=null;[L]=null;[k]=null;get height(){if(!this[F])this[F]=new N(h,this[m],{getAttribute:()=>this.getAttribute("height"),setAttribute:(t)=>this.setAttribute("height",t)});return this[F]}get in1(){if(!this[at])this[at]=new nt(h,this[m],{getAttribute:()=>this.getAttribute("in"),setAttribute:(t)=>this.setAttribute("in",t)});return this[at]}get operator(){if(!this[By])this[By]=new Tt(h,this[m],{getAttribute:()=>this.getAttribute("operator"),setAttribute:(t)=>this.setAttribute("operator",t),values:["erode","dilate"],defaultValue:"erode"});return this[By]}get radiusX(){if(!this[Oy])this[Oy]=new pt(h,this[m],{getAttribute:()=>this.getAttribute("radiusX"),setAttribute:(t)=>this.setAttribute("radiusX",t)});return this[Oy]}get radiusY(){if(!this[Gy])this[Gy]=new pt(h,this[m],{getAttribute:()=>this.getAttribute("radiusY"),setAttribute:(t)=>this.setAttribute("radiusY",t)});return this[Gy]}get result(){if(!this[Z])this[Z]=new nt(h,this[m],{getAttribute:()=>this.getAttribute("result"),setAttribute:(t)=>this.setAttribute("result",t)});return this[Z]}get width(){if(!this[V])this[V]=new N(h,this[m],{getAttribute:()=>this.getAttribute("width"),setAttribute:(t)=>this.setAttribute("width",t)});return this[V]}get x(){if(!this[L])this[L]=new N(h,this[m],{getAttribute:()=>this.getAttribute("x"),setAttribute:(t)=>this.setAttribute("x",t)});return this[L]}get y(){if(!this[k])this[k]=new N(h,this[m],{getAttribute:()=>this.getAttribute("y"),setAttribute:(t)=>this.setAttribute("y",t)});return this[k]}}class pd extends et{[F]=null;[at]=null;[ho]=null;[co]=null;[Z]=null;[V]=null;[L]=null;[k]=null;get height(){if(!this[F])this[F]=new N(h,this[m],{getAttribute:()=>this.getAttribute("height"),setAttribute:(t)=>this.setAttribute("height",t)});return this[F]}get in1(){if(!this[at])this[at]=new nt(h,this[m],{getAttribute:()=>this.getAttribute("in"),setAttribute:(t)=>this.setAttribute("in",t)});return this[at]}get dx(){if(!this[ho])this[ho]=new pt(h,this[m],{getAttribute:()=>this.getAttribute("dx"),setAttribute:(t)=>this.setAttribute("dx",t)});return this[ho]}get dy(){if(!this[co])this[co]=new pt(h,this[m],{getAttribute:()=>this.getAttribute("dy"),setAttribute:(t)=>this.setAttribute("dy",t)});return this[co]}get result(){if(!this[Z])this[Z]=new nt(h,this[m],{getAttribute:()=>this.getAttribute("result"),setAttribute:(t)=>this.setAttribute("result",t)});return this[Z]}get width(){if(!this[V])this[V]=new N(h,this[m],{getAttribute:()=>this.getAttribute("width"),setAttribute:(t)=>this.setAttribute("width",t)});return this[V]}get x(){if(!this[L])this[L]=new N(h,this[m],{getAttribute:()=>this.getAttribute("x"),setAttribute:(t)=>this.setAttribute("x",t)});return this[L]}get y(){if(!this[k])this[k]=new N(h,this[m],{getAttribute:()=>this.getAttribute("y"),setAttribute:(t)=>this.setAttribute("y",t)});return this[k]}}class ud extends et{[L]=null;[k]=null;[Ir]=null;get x(){if(!this[L])this[L]=new pt(h,this[m],{getAttribute:()=>this.getAttribute("x"),setAttribute:(t)=>this.setAttribute("x",t)});return this[L]}get y(){if(!this[k])this[k]=new pt(h,this[m],{getAttribute:()=>this.getAttribute("y"),setAttribute:(t)=>this.setAttribute("y",t)});return this[k]}get z(){if(!this[Ir])this[Ir]=new pt(h,this[m],{getAttribute:()=>this.getAttribute("z"),setAttribute:(t)=>this.setAttribute("z",t)});return this[Ir]}}class hd extends et{[F]=null;[at]=null;[po]=null;[uo]=null;[Z]=null;[Uy]=null;[ns]=null;[os]=null;[V]=null;[L]=null;[k]=null;get height(){if(!this[F])this[F]=new N(h,this[m],{getAttribute:()=>this.getAttribute("height"),setAttribute:(t)=>this.setAttribute("height",t)});return this[F]}get in1(){if(!this[at])this[at]=new nt(h,this[m],{getAttribute:()=>this.getAttribute("in"),setAttribute:(t)=>this.setAttribute("in",t)});return this[at]}get kernelUnitLengthX(){if(!this[po])this[po]=new pt(h,this[m],{getAttribute:()=>this.getAttribute("kernelUnitLengthX"),setAttribute:(t)=>this.setAttribute("kernelUnitLengthX",t)});return this[po]}get kernelUnitLengthY(){if(!this[uo])this[uo]=new pt(h,this[m],{getAttribute:()=>this.getAttribute("kernelUnitLengthY"),setAttribute:(t)=>this.setAttribute("kernelUnitLengthY",t)});return this[uo]}get result(){if(!this[Z])this[Z]=new nt(h,this[m],{getAttribute:()=>this.getAttribute("result"),setAttribute:(t)=>this.setAttribute("result",t)});return this[Z]}get specularConstant(){if(!this[Uy])this[Uy]=new pt(h,this[m],{getAttribute:()=>this.getAttribute("specularConstant"),setAttribute:(t)=>this.setAttribute("specularConstant",t),defaultValue:1});return this[Uy]}get specularExponent(){if(!this[ns])this[ns]=new pt(h,this[m],{getAttribute:()=>this.getAttribute("specularExponent"),setAttribute:(t)=>this.setAttribute("specularExponent",t),defaultValue:1});return this[ns]}get surfaceScale(){if(!this[os])this[os]=new pt(h,this[m],{getAttribute:()=>this.getAttribute("surfaceScale"),setAttribute:(t)=>this.setAttribute("surfaceScale",t),defaultValue:1});return this[os]}get width(){if(!this[V])this[V]=new N(h,this[m],{getAttribute:()=>this.getAttribute("width"),setAttribute:(t)=>this.setAttribute("width",t)});return this[V]}get x(){if(!this[L])this[L]=new N(h,this[m],{getAttribute:()=>this.getAttribute("x"),setAttribute:(t)=>this.setAttribute("x",t)});return this[L]}get y(){if(!this[k])this[k]=new N(h,this[m],{getAttribute:()=>this.getAttribute("y"),setAttribute:(t)=>this.setAttribute("y",t)});return this[k]}}class cd extends et{[L]=null;[k]=null;[Ir]=null;[Hy]=null;[Wy]=null;[_y]=null;[ns]=null;[Yy]=null;get x(){if(!this[L])this[L]=new pt(h,this[m],{getAttribute:()=>this.getAttribute("x"),setAttribute:(t)=>this.setAttribute("x",t)});return this[L]}get y(){if(!this[k])this[k]=new pt(h,this[m],{getAttribute:()=>this.getAttribute("y"),setAttribute:(t)=>this.setAttribute("y",t)});return this[k]}get z(){if(!this[Ir])this[Ir]=new pt(h,this[m],{getAttribute:()=>this.getAttribute("z"),setAttribute:(t)=>this.setAttribute("z",t)});return this[Ir]}get pointsAtX(){if(!this[Hy])this[Hy]=new pt(h,this[m],{getAttribute:()=>this.getAttribute("pointsAtX"),setAttribute:(t)=>this.setAttribute("pointsAtX",t)});return this[Hy]}get pointsAtY(){if(!this[Wy])this[Wy]=new pt(h,this[m],{getAttribute:()=>this.getAttribute("pointsAtY"),setAttribute:(t)=>this.setAttribute("pointsAtY",t)});return this[Wy]}get pointsAtZ(){if(!this[_y])this[_y]=new pt(h,this[m],{getAttribute:()=>this.getAttribute("pointsAtZ"),setAttribute:(t)=>this.setAttribute("pointsAtZ",t)});return this[_y]}get specularExponent(){if(!this[ns])this[ns]=new pt(h,this[m],{getAttribute:()=>this.getAttribute("specularExponent"),setAttribute:(t)=>this.setAttribute("specularExponent",t),defaultValue:1});return this[ns]}get limitingConeAngle(){if(!this[Yy])this[Yy]=new pt(h,this[m],{getAttribute:()=>this.getAttribute("limitingConeAngle"),setAttribute:(t)=>this.setAttribute("limitingConeAngle",t)});return this[Yy]}}class dd extends et{[F]=null;[at]=null;[Z]=null;[V]=null;[L]=null;[k]=null;get height(){if(!this[F])this[F]=new N(h,this[m],{getAttribute:()=>this.getAttribute("height"),setAttribute:(t)=>this.setAttribute("height",t)});return this[F]}get in1(){if(!this[at])this[at]=new nt(h,this[m],{getAttribute:()=>this.getAttribute("in"),setAttribute:(t)=>this.setAttribute("in",t)});return this[at]}get result(){if(!this[Z])this[Z]=new nt(h,this[m],{getAttribute:()=>this.getAttribute("result"),setAttribute:(t)=>this.setAttribute("result",t)});return this[Z]}get width(){if(!this[V])this[V]=new N(h,this[m],{getAttribute:()=>this.getAttribute("width"),setAttribute:(t)=>this.setAttribute("width",t)});return this[V]}get x(){if(!this[L])this[L]=new N(h,this[m],{getAttribute:()=>this.getAttribute("x"),setAttribute:(t)=>this.setAttribute("x",t)});return this[L]}get y(){if(!this[k])this[k]=new N(h,this[m],{getAttribute:()=>this.getAttribute("y"),setAttribute:(t)=>this.setAttribute("y",t)});return this[k]}}class bd extends et{static SVG_TURBULENCE_TYPE_UNKNOWN=0;static SVG_TURBULENCE_TYPE_FRACTALNOISE=1;static SVG_TURBULENCE_TYPE_TURBULENCE=2;static SVG_STITCHTYPE_UNKNOWN=0;static SVG_STITCHTYPE_STITCH=1;static SVG_STITCHTYPE_NOSTITCH=2;[Ky]=null;[Qy]=null;[F]=null;[jy]=null;[Z]=null;[qy]=null;[$y]=null;[Qt]=null;[V]=null;[L]=null;[k]=null;get baseFrequencyX(){if(!this[Ky])this[Ky]=new pt(h,this[m],{getAttribute:()=>this.getAttribute("baseFrequencyX"),setAttribute:(t)=>this.setAttribute("baseFrequencyX",t)});return this[Ky]}get baseFrequencyY(){if(!this[Qy])this[Qy]=new pt(h,this[m],{getAttribute:()=>this.getAttribute("baseFrequencyY"),setAttribute:(t)=>this.setAttribute("baseFrequencyY",t)});return this[Qy]}get height(){if(!this[F])this[F]=new N(h,this[m],{getAttribute:()=>this.getAttribute("height"),setAttribute:(t)=>this.setAttribute("height",t)});return this[F]}get numOctaves(){if(!this[jy])this[jy]=new Ii(h,this[m],{getAttribute:()=>this.getAttribute("numOctaves"),setAttribute:(t)=>this.setAttribute("numOctaves",t)});return this[jy]}get result(){if(!this[Z])this[Z]=new nt(h,this[m],{getAttribute:()=>this.getAttribute("result"),setAttribute:(t)=>this.setAttribute("result",t)});return this[Z]}get seed(){if(!this[qy])this[qy]=new pt(h,this[m],{getAttribute:()=>this.getAttribute("seed"),setAttribute:(t)=>this.setAttribute("seed",t)});return this[qy]}get stitchTiles(){if(!this[$y])this[$y]=new Tt(h,this[m],{getAttribute:()=>this.getAttribute("stitchTiles"),setAttribute:(t)=>this.setAttribute("stitchTiles",t),values:["stitch","noStitch"],defaultValue:"stitch"});return this[$y]}get type(){if(!this[Qt])this[Qt]=new Tt(h,this[m],{getAttribute:()=>this.getAttribute("type"),setAttribute:(t)=>this.setAttribute("type",t),values:["fractalNoise","turbulence"],defaultValue:"turbulence"});return this[Qt]}get width(){if(!this[V])this[V]=new N(h,this[m],{getAttribute:()=>this.getAttribute("width"),setAttribute:(t)=>this.setAttribute("width",t)});return this[V]}get x(){if(!this[L])this[L]=new N(h,this[m],{getAttribute:()=>this.getAttribute("x"),setAttribute:(t)=>this.setAttribute("x",t)});return this[L]}get y(){if(!this[k])this[k]=new N(h,this[m],{getAttribute:()=>this.getAttribute("y"),setAttribute:(t)=>this.setAttribute("y",t)});return this[k]}}class gd extends et{[Lt]=null;[ey]=null;[ry]=null;[L]=null;[k]=null;[V]=null;[F]=null;get href(){if(!this[Lt])this[Lt]=new nt(h,this[m],{getAttribute:()=>this.getAttribute("href"),setAttribute:(t)=>this.setAttribute("href",t)});return this[Lt]}get filterUnits(){if(!this[ey])this[ey]=new Tt(h,this[m],{getAttribute:()=>this.getAttribute("filterUnits"),setAttribute:(t)=>this.setAttribute("filterUnits",t),values:["userSpaceOnUse","objectBoundingBox"],defaultValue:"userSpaceOnUse"});return this[ey]}get primitiveUnits(){if(!this[ry])this[ry]=new Tt(h,this[m],{getAttribute:()=>this.getAttribute("primitiveUnits"),setAttribute:(t)=>this.setAttribute("primitiveUnits",t),values:["userSpaceOnUse","objectBoundingBox"],defaultValue:"userSpaceOnUse"});return this[ry]}get height(){if(!this[F])this[F]=new N(h,this[m],{getAttribute:()=>this.getAttribute("height"),setAttribute:(t)=>this.setAttribute("height",t)});return this[F]}get width(){if(!this[V])this[V]=new N(h,this[m],{getAttribute:()=>this.getAttribute("width"),setAttribute:(t)=>this.setAttribute("width",t)});return this[V]}get x(){if(!this[L])this[L]=new N(h,this[m],{getAttribute:()=>this.getAttribute("x"),setAttribute:(t)=>this.setAttribute("x",t)});return this[L]}get y(){if(!this[k])this[k]=new N(h,this[m],{getAttribute:()=>this.getAttribute("y"),setAttribute:(t)=>this.setAttribute("y",t)});return this[k]}}class Sd extends Ae{[L]=null;[k]=null;[V]=null;[F]=null;get height(){if(!this[F])this[F]=new N(h,this[m],{getAttribute:()=>this.getAttribute("height"),setAttribute:(t)=>this.setAttribute("height",t)});return this[F]}get width(){if(!this[V])this[V]=new N(h,this[m],{getAttribute:()=>this.getAttribute("width"),setAttribute:(t)=>this.setAttribute("width",t)});return this[V]}get x(){if(!this[L])this[L]=new N(h,this[m],{getAttribute:()=>this.getAttribute("x"),setAttribute:(t)=>this.setAttribute("x",t)});return this[L]}get y(){if(!this[k])this[k]=new N(h,this[m],{getAttribute:()=>this.getAttribute("y"),setAttribute:(t)=>this.setAttribute("y",t)});return this[k]}}class fd extends Ae{}class Pd extends Ae{[Lt]=null;[ar]=null;[L]=null;[k]=null;[V]=null;[F]=null;get crossOrigin(){return this.getAttribute("crossorigin")}set crossOrigin(t){this.setAttribute("crossorigin",t)}get href(){if(!this[Lt])this[Lt]=new nt(h,this[m],{getAttribute:()=>this.getAttribute("href"),setAttribute:(t)=>this.setAttribute("href",t)});return this[Lt]}get decoding(){let t=this.getAttribute("decoding");switch(t){case"sync":case"async":case"auto":return t;default:return"auto"}}set decoding(t){this.setAttribute("decoding",t)}get preserveAspectRatio(){if(!this[ar])this[ar]=new ai(h,this[m],{getAttribute:()=>this.getAttribute("preserveAspectRatio"),setAttribute:(t)=>this.setAttribute("preserveAspectRatio",t)});return this[ar]}get height(){if(!this[F])this[F]=new N(h,this[m],{getAttribute:()=>this.getAttribute("height"),setAttribute:(t)=>this.setAttribute("height",t)});return this[F]}get width(){if(!this[V])this[V]=new N(h,this[m],{getAttribute:()=>this.getAttribute("width"),setAttribute:(t)=>this.setAttribute("width",t)});return this[V]}get x(){if(!this[L])this[L]=new N(h,this[m],{getAttribute:()=>this.getAttribute("x"),setAttribute:(t)=>this.setAttribute("x",t)});return this[L]}get y(){if(!this[k])this[k]=new N(h,this[m],{getAttribute:()=>this.getAttribute("y"),setAttribute:(t)=>this.setAttribute("y",t)});return this[k]}decode(){return Promise.resolve()}}class Ad extends Nr{[Xi]=null;[zi]=null;[Ji]=null;[Zi]=null;get x1(){if(!this[Xi])this[Xi]=new N(h,this[m],{getAttribute:()=>this.getAttribute("x1"),setAttribute:(t)=>this.setAttribute("x1",t)});return this[Xi]}get y1(){if(!this[zi])this[zi]=new N(h,this[m],{getAttribute:()=>this.getAttribute("y1"),setAttribute:(t)=>this.setAttribute("y1",t)});return this[zi]}get x2(){if(!this[Ji])this[Ji]=new N(h,this[m],{getAttribute:()=>this.getAttribute("x2"),setAttribute:(t)=>this.setAttribute("x2",t)});return this[Ji]}get y2(){if(!this[Zi])this[Zi]=new N(h,this[m],{getAttribute:()=>this.getAttribute("y2"),setAttribute:(t)=>this.setAttribute("y2",t)});return this[Zi]}}class fl extends Ae{static SVG_SPREADMETHOD_UNKNOWN=0;static SVG_SPREADMETHOD_PAD=1;static SVG_SPREADMETHOD_REFLECT=2;static SVG_SPREADMETHOD_REPEAT=3;[Lt]=null;[oy]=null;[iy]=null;[sy]=null;get href(){if(!this[Lt])this[Lt]=new nt(h,this[m],{getAttribute:()=>this.getAttribute("href"),setAttribute:(t)=>this.setAttribute("href",t)});return this[Lt]}get gradientUnits(){if(!this[oy])this[oy]=new Tt(h,this[m],{getAttribute:()=>this.getAttribute("gradientUnits"),setAttribute:(t)=>this.setAttribute("gradientUnits",t),values:["userSpaceOnUse","objectBoundingBox"],defaultValue:"objectBoundingBox"});return this[oy]}get gradientTransform(){if(!this[iy])this[iy]=new Es(h,this[m],{getAttribute:()=>this.getAttribute("gradientTransform"),setAttribute:(t)=>this.setAttribute("gradientTransform",t)});return this[iy]}get spreadMethod(){if(!this[sy])this[sy]=new Tt(h,this[m],{getAttribute:()=>this.getAttribute("spreadMethod"),setAttribute:(t)=>this.setAttribute("spreadMethod",t),values:["pad","reflect","repeat"],defaultValue:"pad"});return this[sy]}}class wd extends fl{[Xi]=null;[zi]=null;[Ji]=null;[Zi]=null;get x1(){if(!this[Xi])this[Xi]=new N(h,this[m],{getAttribute:()=>this.getAttribute("x1"),setAttribute:(t)=>this.setAttribute("x1",t)});return this[Xi]}get y1(){if(!this[zi])this[zi]=new N(h,this[m],{getAttribute:()=>this.getAttribute("y1"),setAttribute:(t)=>this.setAttribute("y1",t)});return this[zi]}get x2(){if(!this[Ji])this[Ji]=new N(h,this[m],{getAttribute:()=>this.getAttribute("x2"),setAttribute:(t)=>this.setAttribute("x2",t)});return this[Ji]}get y2(){if(!this[Zi])this[Zi]=new N(h,this[m],{getAttribute:()=>this.getAttribute("y2"),setAttribute:(t)=>this.setAttribute("y2",t)});return this[Zi]}}class Sm{[m];[v];[A];[se]=null;[ne]=null;constructor(t,e,o){if(t!==h)throw TypeError("Illegal constructor");this[m]=e,this[v]=o.getAttribute,this[A]=o.setAttribute}get animVal(){if(!this[ne])this[ne]=new Sn(h,this[m],{readOnly:!0,getAttribute:this[v]});return this[ne]}set animVal(t){}get baseVal(){if(!this[se])this[se]=new Sn(h,this[m],{getAttribute:this[v],setAttribute:this[A]});return this[se]}set baseVal(t){}}class Ed extends et{static SVG_MARKER_ORIENT_UNKNOWN=0;static SVG_MARKER_ORIENT_AUTO=1;static SVG_MARKER_ORIENT_ANGLE=2;static SVG_MARKERUNITS_UNKNOWN=0;static SVG_MARKERUNITS_USERSPACEONUSE=1;static SVG_MARKERUNITS_STROKEWIDTH=2;SVG_MARKER_ORIENT_UNKNOWN=0;SVG_MARKER_ORIENT_AUTO=1;SVG_MARKER_ORIENT_ANGLE=2;[Km]=null;[Qm]=null;[jm]=null;[qm]=null;[$m]=null;[Xm]=null;[zm]=null;[Yi]=null;[ar]=null;get markerUnits(){if(!this[Km])this[Km]=new Tt(h,this[m],{getAttribute:()=>this.getAttribute("markerUnits"),setAttribute:(t)=>this.setAttribute("markerUnits",t),values:["userSpaceOnUse","strokeWidth"],defaultValue:"strokeWidth"});return this[Km]}get markerWidth(){if(!this[Qm])this[Qm]=new N(h,this[m],{getAttribute:()=>this.getAttribute("markerWidth"),setAttribute:(t)=>this.setAttribute("markerWidth",t)});return this[Qm]}get markerHeight(){if(!this[jm])this[jm]=new N(h,this[m],{getAttribute:()=>this.getAttribute("markerHeight"),setAttribute:(t)=>this.setAttribute("markerHeight",t)});return this[jm]}get orientType(){if(!this[qm])this[qm]=new Tt(h,this[m],{getAttribute:()=>this.getAttribute("orient"),setAttribute:(t)=>this.setAttribute("orient",t),values:["auto",null],defaultValue:"auto"});return this[qm]}get orientAngle(){if(!this[$m])this[$m]=new Sm(h,this[m],{getAttribute:()=>this.getAttribute("orient"),setAttribute:(t)=>this.setAttribute("orient",t)});return this[$m]}get refX(){if(!this[Xm])this[Xm]=new N(h,this[m],{getAttribute:()=>this.getAttribute("refX"),setAttribute:(t)=>this.setAttribute("refX",t)});return this[Xm]}get refY(){if(!this[zm])this[zm]=new N(h,this[m],{getAttribute:()=>this.getAttribute("refY"),setAttribute:(t)=>this.setAttribute("refY",t)});return this[zm]}get viewBox(){if(!this[Yi])this[Yi]=new gl(h,this[m],{getAttribute:()=>this.getAttribute("viewBox"),setAttribute:(t)=>this.setAttribute("viewBox",t)});return this[Yi]}get preserveAspectRatio(){if(!this[ar])this[ar]=new ai(h,this[m],{getAttribute:()=>this.getAttribute("preserveAspectRatio"),setAttribute:(t)=>this.setAttribute("preserveAspectRatio",t)});return this[ar]}setOrientToAuto(){this.setAttribute("orient","auto")}setOrientToAngle(t){this.setAttribute("orient",t.valueAsString)}}class xd extends et{[Zm]=null;[ty]=null;[L]=null;[k]=null;[V]=null;[F]=null;get maskUnits(){if(!this[Zm])this[Zm]=new Tt(h,this[m],{getAttribute:()=>this.getAttribute("maskUnits"),setAttribute:(t)=>this.setAttribute("maskUnits",t),values:["userSpaceOnUse","objectBoundingBox"],defaultValue:"userSpaceOnUse"});return this[Zm]}get maskContentUnits(){if(!this[ty])this[ty]=new Tt(h,this[m],{getAttribute:()=>this.getAttribute("maskContentUnits"),setAttribute:(t)=>this.setAttribute("maskContentUnits",t),values:["userSpaceOnUse","objectBoundingBox"],defaultValue:"userSpaceOnUse"});return this[ty]}get width(){if(!this[V])this[V]=new N(h,this[m],{getAttribute:()=>this.getAttribute("width"),setAttribute:(t)=>this.setAttribute("width",t)});return this[V]}get height(){if(!this[F])this[F]=new N(h,this[m],{getAttribute:()=>this.getAttribute("height"),setAttribute:(t)=>this.setAttribute("height",t)});return this[F]}get x(){if(!this[L])this[L]=new N(h,this[m],{getAttribute:()=>this.getAttribute("x"),setAttribute:(t)=>this.setAttribute("x",t)});return this[L]}get y(){if(!this[k])this[k]=new N(h,this[m],{getAttribute:()=>this.getAttribute("y"),setAttribute:(t)=>this.setAttribute("y",t)});return this[k]}}class vd extends et{}class Td extends et{[Lt]=null;get href(){if(!this[Lt])this[Lt]=new nt(h,this[m],{getAttribute:()=>this.getAttribute("href"),setAttribute:(t)=>this.setAttribute("href",t)});return this[Lt]}}class Cd extends Nr{}class Nd extends et{[Lt]=null;[ny]=null;[ly]=null;[ay]=null;[L]=null;[k]=null;[V]=null;[F]=null;get href(){if(!this[Lt])this[Lt]=new nt(h,this[m],{getAttribute:()=>this.getAttribute("href"),setAttribute:(t)=>this.setAttribute("href",t)});return this[Lt]}get patternUnits(){if(!this[ny])this[ny]=new Tt(h,this[m],{getAttribute:()=>this.getAttribute("patternUnits"),setAttribute:(t)=>this.setAttribute("patternUnits",t),values:["userSpaceOnUse","objectBoundingBox"],defaultValue:"objectBoundingBox"});return this[ny]}get patternContentUnits(){if(!this[ly])this[ly]=new Tt(h,this[m],{getAttribute:()=>this.getAttribute("patternContentUnits"),setAttribute:(t)=>this.setAttribute("patternContentUnits",t),values:["userSpaceOnUse","objectBoundingBox"],defaultValue:"userSpaceOnUse"});return this[ly]}get patternTransform(){if(!this[ay])this[ay]=new Es(h,this[m],{getAttribute:()=>this.getAttribute("patternTransform"),setAttribute:(t)=>this.setAttribute("patternTransform",t)});return this[ay]}get width(){if(!this[V])this[V]=new N(h,this[m],{getAttribute:()=>this.getAttribute("width"),setAttribute:(t)=>this.setAttribute("width",t)});return this[V]}get height(){if(!this[F])this[F]=new N(h,this[m],{getAttribute:()=>this.getAttribute("height"),setAttribute:(t)=>this.setAttribute("height",t)});return this[F]}get x(){if(!this[L])this[L]=new N(h,this[m],{getAttribute:()=>this.getAttribute("x"),setAttribute:(t)=>this.setAttribute("x",t)});return this[L]}get y(){if(!this[k])this[k]=new N(h,this[m],{getAttribute:()=>this.getAttribute("y"),setAttribute:(t)=>this.setAttribute("y",t)});return this[k]}}var uw=/[\t\f\n\r, ]+/;class Ri{[m];[v];[A];[j]=!1;[U]={items:[],attributeValue:""};constructor(t,e,o){if(t!==h)throw TypeError("Illegal constructor");this[m]=e,this[j]=!!o.readOnly,this[v]=o.getAttribute,this[A]=o.setAttribute;let s=new fe(this,[Ri]);return new Proxy(this,{get:(n,l)=>{if(l==="length"||l==="numberOfItems")return n[K]().length;if(l in n||typeof l==="symbol")return s.bind(l),n[l];let a=Number(l);if(!isNaN(a))return n[K]()[a]},set(n,l,a){if(s.bind(l),typeof l==="symbol")return n[l]=a,!0;let y=Number(l);if(isNaN(y))n[l]=a;return!0},deleteProperty(n,l){if(typeof l==="symbol")return delete n[l],!0;let a=Number(l);if(isNaN(a))delete n[l];return!0},ownKeys(n){return Object.keys(n[K]())},has(n,l){if(l in n)return!0;if(typeof l==="symbol")return!1;let a=Number(l);return!isNaN(a)&&a>=0&&a<n[K]().length},defineProperty(n,l,a){if(s.preventBinding(l),l in n)return Object.defineProperty(n,l,a),!0;return!1},getOwnPropertyDescriptor(n,l){if(l in n||typeof l==="symbol")return;let a=Number(l),y=n[K]();if(!isNaN(a)&&y[a])return{value:y[a],writable:!1,enumerable:!0,configurable:!0}}})}get length(){return this[K]().length}get numberOfItems(){return this[K]().length}[Symbol.iterator](){return this[K]().values()}clear(){if(this[j])throw new this[m].TypeError("Failed to execute 'clear' on 'SVGPointList': The object is read-only.");for(let t of this[U].items)t[v]=null,t[A]=null;this[U].items=[],this[U].attributeValue="",this[A]("")}initialize(t){if(this[j])throw new this[m].TypeError("Failed to execute 'initialize' on 'SVGPointList': The object is read-only.");if(arguments.length<1)throw new this[m].TypeError(`Failed to execute 'initialize' on 'SVGPointList': 1 arguments required, but only ${arguments.length} present.`);if(!(t instanceof pr))throw new this[m].TypeError("Failed to execute 'appendItem' on 'SVGPointList': parameter 1 is not of type 'SVGPoint'.");for(let e of this[U].items)e[v]=null,e[A]=null;return t[v]=()=>t[I],t[A]=()=>{this[U].attributeValue=this[K]().map((e)=>e[I]||"0 0").join(" "),this[A](this[U].attributeValue)},this[U].items=[t],this[U].attributeValue=t[I],this[A](t[I]||""),t}getItem(t){let e=this[K]();if(typeof t==="number")return e[t]?e[t]:null;return t=Number(t),t=isNaN(t)?0:t,e[t]?e[t]:null}insertItemBefore(t,e){if(this[j])throw new this[m].TypeError("Failed to execute 'insertItemBefore' on 'SVGPointList': The object is read-only.");if(arguments.length<2)throw new this[m].TypeError(`Failed to execute 'insertItemBefore' on 'SVGPointList': 2 arguments required, but only ${arguments.length} present.`);if(!(t instanceof pr))throw new this[m].TypeError("Failed to execute 'insertItemBefore' on 'SVGPointList': parameter 1 is not of type 'SVGPoint'.");let o=this[K](),s=o.indexOf(t);if(s!==-1)o.splice(s,1);if(e<0)e=0;else if(e>o.length)e=o.length;return o.splice(e,0,t),t[v]=()=>t[I],t[A]=()=>{this[U].attributeValue=this[K]().map((n)=>n[I]||"0 0").join(" "),this[A](this[U].attributeValue)},this[U].attributeValue=o.map((n)=>n[I]||"0 0").join(" "),this[A](this[U].attributeValue),t}replaceItem(t,e){if(this[j])throw new this[m].TypeError("Failed to execute 'replaceItem' on 'SVGPointList': The object is read-only.");if(arguments.length<2)throw new this[m].TypeError(`Failed to execute 'replaceItem' on 'SVGPointList': 2 arguments required, but only ${arguments.length} present.`);if(!(t instanceof pr))throw new this[m].TypeError("Failed to execute 'replaceItem' on 'SVGPointList': parameter 1 is not of type 'SVGPoint'.");let o=this[K](),s=o.indexOf(t);if(s===e)return t;if(s!==-1)o.splice(s,1);if(e<0)e=0;else if(e>=o.length)e=o.length-1;if(o[e])o[e][v]=null,o[e][A]=null;let n=o[e];return o[e]=t,t[v]=()=>t[I],t[A]=()=>{this[U].attributeValue=this[K]().map((l)=>l[I]||"0 0").join(" "),this[A](this[U].attributeValue)},this[U].attributeValue=o.map((l)=>l[I]||"0 0").join(" "),this[A](this[U].attributeValue),n}removeItem(t){if(this[j])throw new this[m].TypeError("Failed to execute 'removeItem' on 'SVGPointList': The object is read-only.");if(arguments.length<1)throw new this[m].TypeError(`Failed to execute 'removeItem' on 'SVGPointList': 1 argument required, but only ${arguments.length} present.`);let e=this[K]();if(t=Number(t),isNaN(t))t=0;if(t>=e.length)throw new this[m].DOMException(`Failed to execute 'removeItem' on 'SVGPointList': The index provided (${t}) is greater than the maximum bound.`,w.indexSizeError);if(t<0)throw new this[m].DOMException(`Failed to execute 'removeItem' on 'SVGPointList': The index provided (${t}) is negative.`,w.indexSizeError);let o=e[t];if(o)o[v]=null,o[A]=null;return e.splice(t,1),this[A](e.map((s)=>s[I]||"0 0").join(" ")),o}appendItem(t){if(this[j])throw new this[m].TypeError("Failed to execute 'appendItem' on 'SVGPointList': The object is read-only.");if(arguments.length<1)throw new this[m].TypeError(`Failed to execute 'appendItem' on 'SVGPointList': 1 argument required, but only ${arguments.length} present.`);if(!(t instanceof pr))throw new this[m].TypeError("Failed to execute 'appendItem' on 'SVGPointList': parameter 1 is not of type 'SVGPoint'.");let e=this[K](),o=e.indexOf(t);if(o!==-1)e.splice(o,1);return e.push(t),t[v]=()=>t[I],t[A]=()=>{this[U].attributeValue=this[K]().map((s)=>s[I]||"0 0").join(" "),this[A](this[U].attributeValue)},this[U].attributeValue=e.map((s)=>s[I]||"0 0").join(" "),this[A](this[U].attributeValue),t}[K](){let t=this[v]()??"",e=this[U];if(e.attributeValue===t)return e.items;if(e.items.length)for(let n of e.items)n[v]=null,n[A]=null;let o=[],s=t.trim();if(s){let n=s.split(uw);for(let l=0,a=n.length;l<a;l+=2){let y=parseFloat(n[l]),u=n[l+1]!==void 0?" "+parseFloat(n[l+1]):"",c=new pr(h,this[m],{readOnly:this[j],getAttribute:()=>c[I],setAttribute:()=>{this[U].attributeValue=this[K]().map((d)=>d[I]||"0 0").join(" "),this[A](this[U].attributeValue)}});c[I]=`${y}${u}`,o.push(c)}}return e.attributeValue=t,e.items=o,o}}class Ld extends Nr{[Ki]=null;[Qi]=null;get animatedPoints(){if(!this[Ki])this[Ki]=new Ri(h,this[m],{readOnly:!0,getAttribute:()=>this.getAttribute("points"),setAttribute:()=>{}});return this[Ki]}get points(){if(!this[Qi])this[Qi]=new Ri(h,this[m],{getAttribute:()=>this.getAttribute("points"),setAttribute:(t)=>this.setAttribute("points",t)});return this[Qi]}}class kd extends Nr{[Ki]=null;[Qi]=null;get animatedPoints(){if(!this[Ki])this[Ki]=new Ri(h,this[m],{readOnly:!0,getAttribute:()=>this.getAttribute("points"),setAttribute:()=>{}});return this[Ki]}get points(){if(!this[Qi])this[Qi]=new Ri(h,this[m],{getAttribute:()=>this.getAttribute("points"),setAttribute:(t)=>this.setAttribute("points",t)});return this[Qi]}}class Md extends fl{[ao]=null;[mo]=null;[$i]=null;[my]=null;[yy]=null;get cx(){if(!this[ao])this[ao]=new N(h,this[m],{getAttribute:()=>this.getAttribute("cx"),setAttribute:(t)=>this.setAttribute("cx",t)});return this[ao]}get cy(){if(!this[mo])this[mo]=new N(h,this[m],{getAttribute:()=>this.getAttribute("cy"),setAttribute:(t)=>this.setAttribute("cy",t)});return this[mo]}get r(){if(!this[$i])this[$i]=new N(h,this[m],{getAttribute:()=>this.getAttribute("r"),setAttribute:(t)=>this.setAttribute("r",t)});return this[$i]}get fx(){if(!this[my])this[my]=new N(h,this[m],{getAttribute:()=>this.getAttribute("fx"),setAttribute:(t)=>this.setAttribute("fx",t)});return this[my]}get fy(){if(!this[yy])this[yy]=new N(h,this[m],{getAttribute:()=>this.getAttribute("fy"),setAttribute:(t)=>this.setAttribute("fy",t)});return this[yy]}}class Id extends Nr{[L]=null;[k]=null;[V]=null;[F]=null;[ji]=null;[qi]=null;get x(){if(!this[L])this[L]=new N(h,this[m],{getAttribute:()=>this.getAttribute("x"),setAttribute:(t)=>this.setAttribute("x",t)});return this[L]}get y(){if(!this[k])this[k]=new N(h,this[m],{getAttribute:()=>this.getAttribute("y"),setAttribute:(t)=>this.setAttribute("y",t)});return this[k]}get height(){if(!this[F])this[F]=new N(h,this[m],{getAttribute:()=>this.getAttribute("height"),setAttribute:(t)=>this.setAttribute("height",t)});return this[F]}get width(){if(!this[V])this[V]=new N(h,this[m],{getAttribute:()=>this.getAttribute("width"),setAttribute:(t)=>this.setAttribute("width",t)});return this[V]}get rx(){if(!this[ji])this[ji]=new N(h,this[m],{getAttribute:()=>this.getAttribute("rx"),setAttribute:(t)=>this.setAttribute("rx",t)});return this[ji]}get ry(){if(!this[qi])this[qi]=new N(h,this[m],{getAttribute:()=>this.getAttribute("ry"),setAttribute:(t)=>this.setAttribute("ry",t)});return this[qi]}}class Rd extends Ae{[Lt]=null;get href(){if(!this[Lt])this[Lt]=new nt(h,this[m],{getAttribute:()=>this.getAttribute("href"),setAttribute:(t)=>this.setAttribute("href",t)});return this[Lt]}get type(){return this.getAttribute("type")||""}set type(t){this.setAttribute("type",t)}}class Fd extends mi{}class Vd extends et{[ts]=null;get offset(){if(!this[ts])this[ts]=new pt(h,this[m],{getAttribute:()=>this.getAttribute("offset"),setAttribute:(t)=>this.setAttribute("offset",t)});return this[ts]}}class Dd extends et{[Be]=null;[hr]=this;[Gn]=!1;get media(){return this.getAttribute("media")||"all"}set media(t){this.setAttribute("media",t)}get type(){return this.getAttribute("type")||"text/css"}set type(t){this.setAttribute("type",t)}get title(){return this.getAttribute("title")||""}set title(t){this.setAttribute("title",t)}get disabled(){return this[Gn]}set disabled(t){this[Gn]=Boolean(t)}get sheet(){if(!this[tt])return null;if(!this[Be])this[Be]=new this[x][m].CSSStyleSheet,this[Be].replaceSync(this.textContent);return this[Be]}[nr](){super[nr](),this[Be]=null}[At](){super[At](),this[Be]=null}[Fn](){if(this[Be])this[Be].replaceSync(this.textContent)}}class Bd extends Ae{}class Od extends Ae{}class fm extends Ae{static LENGTHADJUST_UNKNOWN=0;static LENGTHADJUST_SPACING=1;static LENGTHADJUST_SPACINGANDGLYPHS=2;[py]=null;[uy]=null;get textLength(){if(!this[py])this[py]=new N(h,this[m],{getAttribute:()=>this.getAttribute("textLength"),setAttribute:(t)=>this.setAttribute("textLength",t)});return this[py]}get lengthAdjust(){if(!this[uy])this[uy]=new Tt(h,this[m],{getAttribute:()=>this.getAttribute("lengthAdjust"),setAttribute:(t)=>this.setAttribute("lengthAdjust",t),values:["spacing","spacingAndGlyphs"],defaultValue:"spacing"});return this[uy]}getNumberOfChars(){return 0}getComputedTextLength(){return 0}getSubStringLength(t,e){return 0}getStartPositionOfChar(t){return new pr(h,this[m])}getEndPositionOfChar(t){return new pr(h,this[m])}getExtentOfChar(t){return new Li(h,this[m])}getRotationOfChar(t){return 0}getCharNumAtPosition(t){return 0}}var hw=/[\t\f\n\r, ]+/;class Pl{[m];[v];[A];[j]=!1;[U]={items:[],attributeValue:""};constructor(t,e,o){if(t!==h)throw TypeError("Illegal constructor");this[m]=e,this[j]=!!o.readOnly,this[v]=o.getAttribute,this[A]=o.setAttribute;let s=new fe(this,[Pl]);return new Proxy(this,{get:(n,l)=>{if(l==="length"||l==="numberOfItems")return n[K]().length;if(l in n||typeof l==="symbol")return s.bind(l),n[l];let a=Number(l);if(!isNaN(a))return n[K]()[a]},set(n,l,a){if(s.bind(l),typeof l==="symbol")return n[l]=a,!0;let y=Number(l);if(isNaN(y))n[l]=a;return!0},deleteProperty(n,l){if(typeof l==="symbol")return delete n[l],!0;let a=Number(l);if(isNaN(a))delete n[l];return!0},ownKeys(n){return Object.keys(n[K]())},has(n,l){if(l in n)return!0;if(typeof l==="symbol")return!1;let a=Number(l);return!isNaN(a)&&a>=0&&a<n[K]().length},defineProperty(n,l,a){if(s.preventBinding(l),l in n)return Object.defineProperty(n,l,a),!0;return!1},getOwnPropertyDescriptor(n,l){if(l in n||typeof l==="symbol")return;let a=Number(l),y=n[K]();if(!isNaN(a)&&y[a])return{value:y[a],writable:!1,enumerable:!0,configurable:!0}}})}get length(){return this[K]().length}get numberOfItems(){return this[K]().length}[Symbol.iterator](){return this[K]().values()}clear(){this[A]("")}initialize(t){if(this[j])throw new this[m].TypeError("Failed to execute 'initialize' on 'SVGLengthList': The object is read-only.");if(arguments.length<1)throw new this[m].TypeError(`Failed to execute 'initialize' on 'SVGLengthList': 1 arguments required, but only ${arguments.length} present.`);for(let e of this[U].items)e[v]=null,e[A]=null;return t[v]=()=>t[I],t[A]=()=>{this[U].attributeValue=this[K]().map((e)=>e[I]??"0").join(" "),this[A](this[U].attributeValue)},this[U].items=[t],this[U].attributeValue=t[I],this[A](t[I]||""),t}getItem(t){let e=this[K]();if(typeof t==="number")return e[t]?e[t]:null;return t=Number(t),t=isNaN(t)?0:t,e[t]?e[t]:null}insertItemBefore(t,e){if(this[j])throw new this[m].TypeError("Failed to execute 'insertItemBefore' on 'SVGLengthList': The object is read-only.");if(arguments.length<2)throw new this[m].TypeError(`Failed to execute 'insertItemBefore' on 'SVGLengthList': 2 arguments required, but only ${arguments.length} present.`);let o=this[K](),s=o.indexOf(t);if(s!==-1)o.splice(s,1);if(e<0)e=0;else if(e>o.length)e=o.length;return o.splice(e,0,t),t[v]=()=>t[I],t[A]=()=>{this[U].attributeValue=this[K]().map((n)=>n[I]??"0").join(" "),this[A](this[U].attributeValue)},this[U].attributeValue=o.map((n)=>n[I]??"0").join(" "),this[A](this[U].attributeValue),t}replaceItem(t,e){if(this[j])throw new this[m].TypeError("Failed to execute 'replaceItem' on 'SVGLengthList': The object is read-only.");if(arguments.length<2)throw new this[m].TypeError(`Failed to execute 'replaceItem' on 'SVGLengthList': 2 arguments required, but only ${arguments.length} present.`);let o=this[K](),s=o.indexOf(t);if(s===e)return t;if(s!==-1)o.splice(s,1);if(e<0)e=0;else if(e>=o.length)e=o.length-1;if(o[e])o[e][v]=null,o[e][A]=null;let n=o[e];return o[e]=t,t[v]=()=>t[I],t[A]=()=>{this[U].attributeValue=this[K]().map((l)=>l[I]??"0").join(" "),this[A](this[U].attributeValue)},this[U].attributeValue=o.map((l)=>l[I]??"0").join(" "),this[A](this[U].attributeValue),n}removeItem(t){if(this[j])throw new this[m].TypeError("Failed to execute 'removeItem' on 'SVGLengthList': The object is read-only.");if(arguments.length<1)throw new this[m].TypeError(`Failed to execute 'removeItem' on 'SVGLengthList': 1 argument required, but only ${arguments.length} present.`);let e=this[K]();if(t=Number(t),isNaN(t))t=0;if(t>=e.length)throw new this[m].DOMException(`Failed to execute 'removeItem' on 'SVGLengthList': The index provided (${t}) is greater than the maximum bound.`,w.indexSizeError);if(t<0)throw new this[m].DOMException(`Failed to execute 'removeItem' on 'SVGLengthList': The index provided (${t}) is negative.`,w.indexSizeError);let o=e[t];if(o)o[v]=null,o[A]=null;return e.splice(t,1),this[A](e.map((s)=>s[I]??"0").join(" ")),o}appendItem(t){if(this[j])throw new this[m].TypeError("Failed to execute 'appendItem' on 'SVGLengthList': The object is read-only.");if(arguments.length<1)throw new this[m].TypeError(`Failed to execute 'appendItem' on 'SVGLengthList': 1 argument required, but only ${arguments.length} present.`);let e=this[K](),o=e.indexOf(t);if(o!==-1)e.splice(o,1);return e.push(t),t[v]=()=>t[I],t[A]=()=>{this[U].attributeValue=this[K]().map((s)=>s[I]??"0").join(" "),this[A](this[U].attributeValue)},this[U].attributeValue=e.map((s)=>s[I]??"0").join(" "),this[A](this[U].attributeValue),t}[K](){let t=this[v]()??"",e=this[U];if(e.attributeValue===t)return e.items;if(e.items.length)for(let n of e.items)n[v]=null,n[A]=null;let o=[],s=t.trim();if(s){let n=s.split(hw);for(let l=0,a=n.length;l<a;l++){let y=new ki(h,this[m],{readOnly:this[j],getAttribute:()=>y[I],setAttribute:(u)=>{y[I]=u;let c=o.map((d)=>d[I]??"0").join(" ");e.attributeValue=c,this[A](c)}});y[I]=n[l],o.push(y)}}return e.attributeValue=t,e.items=o,o}}class Pn{[m];[v];[A];[se]=null;[ne]=null;constructor(t,e,o){if(t!==h)throw TypeError("Illegal constructor");this[m]=e,this[v]=o.getAttribute,this[A]=o.setAttribute}get animVal(){if(!this[ne])this[ne]=new Pl(h,this[m],{readOnly:!0,getAttribute:this[v],setAttribute:this[A]});return this[ne]}set animVal(t){}get baseVal(){if(!this[se])this[se]=new Pl(h,this[m],{getAttribute:this[v],setAttribute:this[A]});return this[se]}set baseVal(t){}}class Al extends fm{[L]=null;[k]=null;[ho]=null;[co]=null;[tp]=null;get x(){if(!this[L])this[L]=new Pn(h,this[m],{getAttribute:()=>this.getAttribute("x"),setAttribute:(t)=>this.setAttribute("x",t)});return this[L]}get y(){if(!this[k])this[k]=new Pn(h,this[m],{getAttribute:()=>this.getAttribute("y"),setAttribute:(t)=>this.setAttribute("y",t)});return this[k]}get dx(){if(!this[ho])this[ho]=new Pn(h,this[m],{getAttribute:()=>this.getAttribute("dx"),setAttribute:(t)=>this.setAttribute("dx",t)});return this[ho]}get dy(){if(!this[co])this[co]=new Pn(h,this[m],{getAttribute:()=>this.getAttribute("dy"),setAttribute:(t)=>this.setAttribute("dy",t)});return this[co]}get rotate(){if(!this[tp])this[tp]=new Fo(h,this[m],{getAttribute:()=>this.getAttribute("rotate"),setAttribute:(t)=>this.setAttribute("rotate",t)});return this[tp]}}class Gd extends Al{}class Ud extends fm{static TEXTPATH_METHODTYPE_UNKNOWN=0;static TEXTPATH_METHODTYPE_ALIGN=1;static TEXTPATH_METHODTYPE_STRETCH=2;static TEXTPATH_SPACINGTYPE_UNKNOWN=0;static TEXTPATH_SPACINGTYPE_AUTO=1;static TEXTPATH_SPACINGTYPE_EXACT=2;[Lt]=null;[by]=null;[_s]=null;[gy]=null;get href(){if(!this[Lt])this[Lt]=new nt(h,this[m],{getAttribute:()=>this.getAttribute("href"),setAttribute:(t)=>this.setAttribute("href",t)});return this[Lt]}get startOffset(){if(!this[by])this[by]=new N(h,this[m],{getAttribute:()=>this.getAttribute("startOffset"),setAttribute:(t)=>this.setAttribute("startOffset",t)});return this[by]}get method(){if(!this[_s])this[_s]=new Tt(h,this[m],{getAttribute:()=>this.getAttribute("method"),setAttribute:(t)=>this.setAttribute("method",t),values:["align","stretch"],defaultValue:"align"});return this[_s]}get spacing(){if(!this[gy])this[gy]=new Tt(h,this[m],{getAttribute:()=>this.getAttribute("spacing"),setAttribute:(t)=>this.setAttribute("spacing",t),values:["auto","exact"],defaultValue:"exact"});return this[gy]}}class Hd extends et{}class Wd extends Al{}class _d extends Ae{[Lt]=null;[L]=null;[k]=null;[V]=null;[F]=null;get href(){if(!this[Lt])this[Lt]=new nt(h,this[m],{getAttribute:()=>this.getAttribute("href"),setAttribute:(t)=>this.setAttribute("href",t)});return this[Lt]}get x(){if(!this[L])this[L]=new N(h,this[m],{getAttribute:()=>this.getAttribute("x"),setAttribute:(t)=>this.setAttribute("x",t)});return this[L]}get y(){if(!this[k])this[k]=new N(h,this[m],{getAttribute:()=>this.getAttribute("y"),setAttribute:(t)=>this.setAttribute("y",t)});return this[k]}get width(){if(!this[V])this[V]=new N(h,this[m],{getAttribute:()=>this.getAttribute("width"),setAttribute:(t)=>this.setAttribute("width",t)});return this[V]}get height(){if(!this[F])this[F]=new N(h,this[m],{getAttribute:()=>this.getAttribute("height"),setAttribute:(t)=>this.setAttribute("height",t)});return this[F]}}class Yd extends et{}class Kd{static SVG_UNIT_TYPE_UNKNOWN=0;static SVG_UNIT_TYPE_USERSPACEONUSE=1;static SVG_UNIT_TYPE_OBJECTBOUNDINGBOX=2;SVG_UNIT_TYPE_UNKNOWN=0;SVG_UNIT_TYPE_USERSPACEONUSE=1;SVG_UNIT_TYPE_OBJECTBOUNDINGBOX=2;constructor(t){if(t!==h)throw TypeError("Illegal constructor")}}class Qd{window;constructor(t){this.window=t}enqueueReaction(t,e,o){let s=this.window.customElements[di]?.get(t.localName);if(!s)return;if(t[x]!==this.window.document)return;switch(e){case"connectedCallback":if(s.lifecycleCallbacks.connectedCallback){let n=s.lifecycleCallbacks.connectedCallback?.call(t);if(n instanceof Promise){let l=new it(this.window).getAsyncTaskManager();if(l){let a=l.startTask();n.then(()=>l.endTask(a)).catch(()=>l.endTask(a))}}}break;case"disconnectedCallback":if(s.lifecycleCallbacks.disconnectedCallback)s.lifecycleCallbacks.disconnectedCallback.call(t);break;case"attributeChangedCallback":if(s.lifecycleCallbacks.attributeChangedCallback&&o?.length&&s.observedAttributes.has(o[0]))s.lifecycleCallbacks.attributeChangedCallback.apply(t,o);break}}}class ch extends C{state;hasUAVisualTransition;constructor(t,e=null){super(t);this.state=e?.state??null,this.hasUAVisualTransition=e?.hasUAVisualTransition??!1}}class jd extends C{code;reason;wasClean;constructor(t,e=null){super(t,e);this.code=e?.code??0,this.reason=e?.reason??"",this.wasClean=e?.wasClean??!1}}var wl={setTimeout:globalThis.setTimeout.bind(globalThis),clearTimeout:globalThis.clearTimeout.bind(globalThis),setInterval:globalThis.setInterval.bind(globalThis),clearInterval:globalThis.clearInterval.bind(globalThis),queueMicrotask:globalThis.queueMicrotask.bind(globalThis),setImmediate:globalThis.setImmediate.bind(globalThis),clearImmediate:globalThis.clearImmediate.bind(globalThis)},Tg=setTimeout.toString().includes("new Timeout"),ww=(()=>{try{return Function("return true;")(),!0}catch{return!1}})(),Ew=(()=>{try{return globalThis.Function.$UNFROZEN$=!0,delete globalThis.Function.$UNFROZEN$,!0}catch{return!1}})();class DS{constructor(){throw TypeError("Illegal constructor")}}class Cg{callback;constructor(t){this.callback=t}}class El extends vt{Node=st;Attr=tm;ShadowRoot=Wu;ProcessingInstruction=Hu;Element=Or;CharacterData=bs;DocumentType=nn;HTMLAnchorElement=Rp;HTMLButtonElement=Gp;HTMLOptGroupElement=bu;HTMLOptionElement=un;HTMLElement=B;HTMLUnknownElement=Gu;HTMLTemplateElement=Ru;HTMLInputElement=eu;HTMLSelectElement=pm;HTMLTextAreaElement=Fu;HTMLImageElement=la;HTMLStyleElement=Nu;HTMLLabelElement=ru;HTMLSlotElement=lg;HTMLMetaElement=pu;HTMLMediaElement=an;HTMLAudioElement=ia;HTMLVideoElement=Uu;HTMLBaseElement=Dp;HTMLDialogElement=Kp;HTMLScriptElement=vu;HTMLLinkElement=au;HTMLIFrameElement=Zp;HTMLFormElement=nm;HTMLUListElement=Ou;HTMLTrackElement=Bu;HTMLTableRowElement=Iu;HTMLTitleElement=Du;HTMLTimeElement=Vu;HTMLTableSectionElement=As;HTMLTableCellElement=Lu;HTMLTableElement=Mu;HTMLSpanElement=Cu;HTMLSourceElement=Tu;HTMLQuoteElement=Eu;HTMLProgressElement=wu;HTMLPreElement=Au;HTMLPictureElement=Pu;HTMLParamElement=fu;HTMLParagraphElement=Su;HTMLOutputElement=gu;HTMLOListElement=cu;HTMLObjectElement=du;HTMLMeterElement=uu;HTMLMenuElement=yu;HTMLMapElement=mu;HTMLLIElement=iu;HTMLLegendElement=ou;HTMLModElement=hu;HTMLHtmlElement=Jp;HTMLHRElement=zp;HTMLHeadElement=$p;HTMLHeadingElement=Xp;HTMLFieldSetElement=sa;HTMLEmbedElement=jp;HTMLDListElement=Hp;HTMLDivElement=Qp;HTMLDetailsElement=Yp;HTMLDataListElement=_p;HTMLDataElement=Wp;HTMLTableColElement=ku;HTMLTableCaptionElement=aa;HTMLCanvasElement=Up;HTMLBRElement=Op;HTMLBodyElement=Bp;HTMLAreaElement=Fp;SVGSVGElement=hh;SVGAnimateElement=Oc;SVGAnimateMotionElement=Gc;SVGAnimateTransformElement=Uc;SVGCircleElement=Hc;SVGClipPathElement=Wc;SVGDefsElement=_c;SVGDescElement=Yc;SVGEllipseElement=Kc;SVGFEBlendElement=Qc;SVGFEColorMatrixElement=jc;SVGFEComponentTransferElement=qc;SVGFECompositeElement=$c;SVGFEConvolveMatrixElement=Xc;SVGFEDiffuseLightingElement=zc;SVGFEDisplacementMapElement=Jc;SVGFEDistantLightElement=Zc;SVGFEDropShadowElement=td;SVGFEFloodElement=ed;SVGFEFuncAElement=rd;SVGFEFuncBElement=od;SVGFEFuncGElement=id;SVGFEFuncRElement=sd;SVGFEGaussianBlurElement=nd;SVGFEImageElement=ld;SVGFEMergeElement=ad;SVGFEMergeNodeElement=md;SVGFEMorphologyElement=yd;SVGFEOffsetElement=pd;SVGFEPointLightElement=ud;SVGFESpecularLightingElement=hd;SVGFESpotLightElement=cd;SVGFETileElement=dd;SVGFETurbulenceElement=bd;SVGFilterElement=gd;SVGForeignObjectElement=Sd;SVGGElement=fd;SVGImageElement=Pd;SVGLineElement=Ad;SVGLinearGradientElement=wd;SVGMarkerElement=Ed;SVGMaskElement=xd;SVGMetadataElement=vd;SVGMPathElement=Td;SVGPathElement=Cd;SVGPatternElement=Nd;SVGPolygonElement=Ld;SVGPolylineElement=kd;SVGRadialGradientElement=Md;SVGRectElement=Id;SVGScriptElement=Rd;SVGSetElement=Fd;SVGStopElement=Vd;SVGStyleElement=Dd;SVGSwitchElement=Bd;SVGSymbolElement=Od;SVGTextElement=Gd;SVGTextPathElement=Ud;SVGTitleElement=Hd;SVGTSpanElement=Wd;SVGUseElement=_d;SVGViewElement=Yd;SVGElement=et;SVGAnimationElement=mi;SVGComponentTransferFunctionElement=yi;SVGGeometryElement=Nr;SVGGradientElement=fl;SVGTextPositioningElement=Al;SVGGraphicsElement=Ae;Event=C;UIEvent=br;CustomEvent=Pp;CloseEvent=jd;AnimationEvent=Sp;KeyboardEvent=wp;MessageEvent=Ep;MouseEvent=qe;PointerEvent=Zl;FocusEvent=us;WheelEvent=vp;InputEvent=Ap;ErrorEvent=rn;StorageEvent=nc;SubmitEvent=ta;ProgressEvent=ko;MediaQueryListEvent=_l;HashChangeEvent=Jl;ClipboardEvent=fp;TouchEvent=xp;PopStateEvent=ch;Touch=gp;AudioProcessingEvent=C;BeforeInputEvent=C;BeforeUnloadEvent=C;BlobEvent=C;CompositionEvent=C;CSSFontFaceLoadEvent=C;DeviceLightEvent=C;DeviceMotionEvent=C;DeviceOrientationEvent=C;DeviceProximityEvent=C;DOMTransactionEvent=C;DragEvent=C;EditingBeforeInputEvent=C;FetchEvent=C;GamepadEvent=C;IDBVersionChangeEvent=C;MediaStreamEvent=C;MutationEvent=C;OfflineAudioCompletionEvent=C;OverconstrainedError=C;PageTransitionEvent=C;PaymentRequestUpdateEvent=C;RelatedEvent=C;RTCDataChannelEvent=C;RTCIdentityErrorEvent=C;RTCIdentityEvent=C;RTCPeerConnectionIceEvent=C;SensorEvent=C;SVGEvent=C;SVGZoomEvent=C;TimeEvent=C;TrackEvent=C;TransitionEvent=C;UserProximityEvent=C;WebGLContextEvent=C;TextEvent=C;Permissions=oa;History=$a;Navigator=Lp;Clipboard=Ul;TimeRanges=sl;TextTrackCueList=pl;ValidityState=Qr;MutationRecord=Ro;IntersectionObserver=Tp;IntersectionObserverEntry=Cp;CSSStyleDeclaration=Yr;CSSRule=Ho;CSSContainerRule=Yl;CSSFontFaceRule=Kl;CSSKeyframeRule=Js;CSSKeyframesRule=Ql;CSSMediaRule=jl;CSSStyleRule=Zs;CSSSupportsRule=Xl;CSSConditionRule=vi;CSSGroupingRule=xi;CSSScopeRule=zs;DOMRect=si;DOMRectReadOnly=ol;Plugin=Np;PluginArray=Za;Location=Xa;CustomElementRegistry=_a;ResizeObserver=_u;Blob=ie;File=Lo;Storage=hl;MimeType=za;MimeTypeArray=Ja;NodeFilter=pe;HTMLCollection=de;HTMLFormControlCollection=na;HTMLOptionsCollection=ym;NodeList=Wo;RadioNodeList=sm;FileList=al;Screen=ul;ScreenDetails=um;ScreenDetailed=ya;DOMMatrixReadOnly=dl;DOMMatrix=fo;NamedNodeMap=ln;TreeWalker=hn;NodeIterator=ca;DataTransfer=bp;DataTransferItem=ps;DataTransferItemList=zl;XMLSerializer=Yu;ClipboardItem=ap;Selection=pa;CSSUnitValue=ye;SVGAngle=Sn;SVGAnimatedAngle=Sm;SVGAnimatedBoolean=gm;SVGAnimatedEnumeration=Tt;SVGAnimatedInteger=Ii;SVGAnimatedLength=N;SVGAnimatedNumber=pt;SVGAnimatedNumberList=Fo;SVGAnimatedPreserveAspectRatio=ai;SVGAnimatedRect=gl;SVGAnimatedString=nt;SVGAnimatedTransformList=Es;SVGLength=ki;SVGLengthList=Pl;SVGMatrix=rr;SVGNumber=Mi;SVGNumberList=Sl;SVGPoint=pr;SVGPointList=Ri;SVGPreserveAspectRatio=Sa;SVGRect=Li;SVGStringList=Ni;SVGTransform=Ko;SVGTransformList=bl;SVGAnimatedLengthList=Pn;SVGUnitTypes=Kd;DOMPoint=dm;StylePropertyMap=$l;StylePropertyMapReadOnly=ql;MediaList=Yn;CSSKeywordValue=qn;CSSStyleValue=$n;Window=this.constructor;URLSearchParams=fw;WritableStream=VS.Writable;ReadableStream=Sw;TransformStream=VS.Transform;PerformanceObserver=Pw;PerformanceEntry=Aw;PerformanceObserverEntryList=DS;document;customElements=new _a(this);window=this;globalThis=this;performance=performance;screenLeft=0;screenTop=0;screenX=0;screenY=0;crypto=dw;TextEncoder=bw;TextDecoder=gw;closed=!1;console;name="";Buffer=cw;[Nn]=[];[Ao];[io];[Oe];[Dh];[Bh];[Oh];[Gh];[Dn]=this;[Xo]=this;[no]=this;[m]=this;[vb]=this;[xn]=-1;[Ys]=new Qd(this);[ls]={json:new Map,css:new Map,esm:new Map};[Bl]=null;[Wn]=[];[p]=new Map;#t;#e=null;#r=null;#o=null;#i=null;#s=null;#l={timeouts:null};#m=[];#a=[];constructor(t,e){super();this.#t=t,this[Tb](),this.console=t.page.console,this[Ao]=new hc(t),this[Dh]=new Lp(this),this[Bh]=new ul,this[Oh]=new hl,this[Gh]=new hl,this[io]=new Xa(this.#t,e?.url??"about:blank"),this[Oe]=new $a(this.#t,this),t[Oe].currentItem.href=e?.url??"about:blank",it.setWindowBrowserFrameRelation(this,this.#t),this[Tm](),Vc.extendClasses(this),this.document=new this.HTMLDocument,this.document[Lr]=this;let o=t[Pt].startTask(()=>this[Ao].destroy());this[Ao].waitUntilComplete().then(()=>{t[Pt].endTask(o),this.document[kn]=uc.complete,this.document.dispatchEvent(new C("readystatechange"));let s=new C("load");s[Bo]=this,s[wr]=this.document,s[xr]=ae.atTarget,this.dispatchEvent(s),s[Bo]=null,s[xr]=ae.none,s[Hn]=!1}),this[Eb]()}get onsearch(){return this[p].get("onsearch")??null}set onsearch(t){this[p].set("onsearch",t)}get onappinstalled(){return this[p].get("onappinstalled")??null}set onappinstalled(t){this[p].set("onappinstalled",t)}get onbeforeinstallprompt(){return this[p].get("onbeforeinstallprompt")??null}set onbeforeinstallprompt(t){this[p].set("onbeforeinstallprompt",t)}get onabort(){return this[p].get("onabort")??null}set onabort(t){this[p].set("onabort",t)}get onbeforeinput(){return this[p].get("onbeforeinput")??null}set onbeforeinput(t){this[p].set("onbeforeinput",t)}get onbeforematch(){return this[p].get("onbeforematch")??null}set onbeforematch(t){this[p].set("onbeforematch",t)}get onbeforetoggle(){return this[p].get("onbeforetoggle")??null}set onbeforetoggle(t){this[p].set("onbeforetoggle",t)}get onblur(){return this[p].get("onblur")??null}set onblur(t){this[p].set("onblur",t)}get oncancel(){return this[p].get("oncancel")??null}set oncancel(t){this[p].set("oncancel",t)}get oncanplay(){return this[p].get("oncanplay")??null}set oncanplay(t){this[p].set("oncanplay",t)}get oncanplaythrough(){return this[p].get("oncanplaythrough")??null}set oncanplaythrough(t){this[p].set("oncanplaythrough",t)}get onchange(){return this[p].get("onchange")??null}set onchange(t){this[p].set("onchange",t)}get onclick(){return this[p].get("onclick")??null}set onclick(t){this[p].set("onclick",t)}get onclose(){return this[p].get("onclose")??null}set onclose(t){this[p].set("onclose",t)}get oncommand(){return this[p].get("oncommand")??null}set oncommand(t){this[p].set("oncommand",t)}get oncontentvisibilityautostatechange(){return this[p].get("oncontentvisibilityautostatechange")??null}set oncontentvisibilityautostatechange(t){this[p].set("oncontentvisibilityautostatechange",t)}get oncontextlost(){return this[p].get("oncontextlost")??null}set oncontextlost(t){this[p].set("oncontextlost",t)}get oncontextmenu(){return this[p].get("oncontextmenu")??null}set oncontextmenu(t){this[p].set("oncontextmenu",t)}get oncontextrestored(){return this[p].get("oncontextrestored")??null}set oncontextrestored(t){this[p].set("oncontextrestored",t)}get oncuechange(){return this[p].get("oncuechange")??null}set oncuechange(t){this[p].set("oncuechange",t)}get ondblclick(){return this[p].get("ondblclick")??null}set ondblclick(t){this[p].set("ondblclick",t)}get ondrag(){return this[p].get("ondrag")??null}set ondrag(t){this[p].set("ondrag",t)}get ondragend(){return this[p].get("ondragend")??null}set ondragend(t){this[p].set("ondragend",t)}get ondragenter(){return this[p].get("ondragenter")??null}set ondragenter(t){this[p].set("ondragenter",t)}get ondragleave(){return this[p].get("ondragleave")??null}set ondragleave(t){this[p].set("ondragleave",t)}get ondragover(){return this[p].get("ondragover")??null}set ondragover(t){this[p].set("ondragover",t)}get ondragstart(){return this[p].get("ondragstart")??null}set ondragstart(t){this[p].set("ondragstart",t)}get ondrop(){return this[p].get("ondrop")??null}set ondrop(t){this[p].set("ondrop",t)}get ondurationchange(){return this[p].get("ondurationchange")??null}set ondurationchange(t){this[p].set("ondurationchange",t)}get onemptied(){return this[p].get("onemptied")??null}set onemptied(t){this[p].set("onemptied",t)}get onended(){return this[p].get("onended")??null}set onended(t){this[p].set("onended",t)}get onerror(){return this[p].get("onerror")??null}set onerror(t){this[p].set("onerror",t)}get onfocus(){return this[p].get("onfocus")??null}set onfocus(t){this[p].set("onfocus",t)}get onformdata(){return this[p].get("onformdata")??null}set onformdata(t){this[p].set("onformdata",t)}get oninput(){return this[p].get("oninput")??null}set oninput(t){this[p].set("oninput",t)}get oninvalid(){return this[p].get("oninvalid")??null}set oninvalid(t){this[p].set("oninvalid",t)}get onkeydown(){return this[p].get("onkeydown")??null}set onkeydown(t){this[p].set("onkeydown",t)}get onkeypress(){return this[p].get("onkeypress")??null}set onkeypress(t){this[p].set("onkeypress",t)}get onkeyup(){return this[p].get("onkeyup")??null}set onkeyup(t){this[p].set("onkeyup",t)}get onload(){return this[p].get("onload")??null}set onload(t){this[p].set("onload",t)}get onloadeddata(){return this[p].get("onloadeddata")??null}set onloadeddata(t){this[p].set("onloadeddata",t)}get onloadedmetadata(){return this[p].get("onloadedmetadata")??null}set onloadedmetadata(t){this[p].set("onloadedmetadata",t)}get onloadstart(){return this[p].get("onloadstart")??null}set onloadstart(t){this[p].set("onloadstart",t)}get onmousedown(){return this[p].get("onmousedown")??null}set onmousedown(t){this[p].set("onmousedown",t)}get onmouseenter(){return this[p].get("onmouseenter")??null}set onmouseenter(t){this[p].set("onmouseenter",t)}get onmouseleave(){return this[p].get("onmouseleave")??null}set onmouseleave(t){this[p].set("onmouseleave",t)}get onmousemove(){return this[p].get("onmousemove")??null}set onmousemove(t){this[p].set("onmousemove",t)}get onmouseout(){return this[p].get("onmouseout")??null}set onmouseout(t){this[p].set("onmouseout",t)}get onmouseover(){return this[p].get("onmouseover")??null}set onmouseover(t){this[p].set("onmouseover",t)}get onmouseup(){return this[p].get("onmouseup")??null}set onmouseup(t){this[p].set("onmouseup",t)}get onmousewheel(){return this[p].get("onmousewheel")??null}set onmousewheel(t){this[p].set("onmousewheel",t)}get onpause(){return this[p].get("onpause")??null}set onpause(t){this[p].set("onpause",t)}get onplay(){return this[p].get("onplay")??null}set onplay(t){this[p].set("onplay",t)}get onplaying(){return this[p].get("onplaying")??null}set onplaying(t){this[p].set("onplaying",t)}get onprogress(){return this[p].get("onprogress")??null}set onprogress(t){this[p].set("onprogress",t)}get onratechange(){return this[p].get("onratechange")??null}set onratechange(t){this[p].set("onratechange",t)}get onreset(){return this[p].get("onreset")??null}set onreset(t){this[p].set("onreset",t)}get onresize(){return this[p].get("onresize")??null}set onresize(t){this[p].set("onresize",t)}get onscroll(){return this[p].get("onscroll")??null}set onscroll(t){this[p].set("onscroll",t)}get onscrollend(){return this[p].get("onscrollend")??null}set onscrollend(t){this[p].set("onscrollend",t)}get onsecuritypolicyviolation(){return this[p].get("onsecuritypolicyviolation")??null}set onsecuritypolicyviolation(t){this[p].set("onsecuritypolicyviolation",t)}get onseeked(){return this[p].get("onseeked")??null}set onseeked(t){this[p].set("onseeked",t)}get onseeking(){return this[p].get("onseeking")??null}set onseeking(t){this[p].set("onseeking",t)}get onselect(){return this[p].get("onselect")??null}set onselect(t){this[p].set("onselect",t)}get onslotchange(){return this[p].get("onslotchange")??null}set onslotchange(t){this[p].set("onslotchange",t)}get onstalled(){return this[p].get("onstalled")??null}set onstalled(t){this[p].set("onstalled",t)}get onsubmit(){return this[p].get("onsubmit")??null}set onsubmit(t){this[p].set("onsubmit",t)}get onsuspend(){return this[p].get("onsuspend")??null}set onsuspend(t){this[p].set("onsuspend",t)}get ontimeupdate(){return this[p].get("ontimeupdate")??null}set ontimeupdate(t){this[p].set("ontimeupdate",t)}get ontoggle(){return this[p].get("ontoggle")??null}set ontoggle(t){this[p].set("ontoggle",t)}get onvolumechange(){return this[p].get("onvolumechange")??null}set onvolumechange(t){this[p].set("onvolumechange",t)}get onwaiting(){return this[p].get("onwaiting")??null}set onwaiting(t){this[p].set("onwaiting",t)}get onwebkitanimationend(){return this[p].get("onwebkitanimationend")??null}set onwebkitanimationend(t){this[p].set("onwebkitanimationend",t)}get onwebkitanimationiteration(){return this[p].get("onwebkitanimationiteration")??null}set onwebkitanimationiteration(t){this[p].set("onwebkitanimationiteration",t)}get onwebkitanimationstart(){return this[p].get("onwebkitanimationstart")??null}set onwebkitanimationstart(t){this[p].set("onwebkitanimationstart",t)}get onwebkittransitionend(){return this[p].get("onwebkittransitionend")??null}set onwebkittransitionend(t){this[p].set("onwebkittransitionend",t)}get onwheel(){return this[p].get("onwheel")??null}set onwheel(t){this[p].set("onwheel",t)}get onauxclick(){return this[p].get("onauxclick")??null}set onauxclick(t){this[p].set("onauxclick",t)}get ongotpointercapture(){return this[p].get("ongotpointercapture")??null}set ongotpointercapture(t){this[p].set("ongotpointercapture",t)}get onlostpointercapture(){return this[p].get("onlostpointercapture")??null}set onlostpointercapture(t){this[p].set("onlostpointercapture",t)}get onpointerdown(){return this[p].get("onpointerdown")??null}set onpointerdown(t){this[p].set("onpointerdown",t)}get onpointermove(){return this[p].get("onpointermove")??null}set onpointermove(t){this[p].set("onpointermove",t)}get onpointerup(){return this[p].get("onpointerup")??null}set onpointerup(t){this[p].set("onpointerup",t)}get onpointercancel(){return this[p].get("onpointercancel")??null}set onpointercancel(t){this[p].set("onpointercancel",t)}get onpointerover(){return this[p].get("onpointerover")??null}set onpointerover(t){this[p].set("onpointerover",t)}get onpointerout(){return this[p].get("onpointerout")??null}set onpointerout(t){this[p].set("onpointerout",t)}get onpointerenter(){return this[p].get("onpointerenter")??null}set onpointerenter(t){this[p].set("onpointerenter",t)}get onpointerleave(){return this[p].get("onpointerleave")??null}set onpointerleave(t){this[p].set("onpointerleave",t)}get onselectstart(){return this[p].get("onselectstart")??null}set onselectstart(t){this[p].set("onselectstart",t)}get onselectionchange(){return this[p].get("onselectionchange")??null}set onselectionchange(t){this[p].set("onselectionchange",t)}get onanimationcancel(){return this[p].get("onanimationcancel")??null}set onanimationcancel(t){this[p].set("onanimationcancel",t)}get onanimationend(){return this[p].get("onanimationend")??null}set onanimationend(t){this[p].set("onanimationend",t)}get onanimationiteration(){return this[p].get("onanimationiteration")??null}set onanimationiteration(t){this[p].set("onanimationiteration",t)}get onanimationstart(){return this[p].get("onanimationstart")??null}set onanimationstart(t){this[p].set("onanimationstart",t)}get ontransitionrun(){return this[p].get("ontransitionrun")??null}set ontransitionrun(t){this[p].set("ontransitionrun",t)}get ontransitionstart(){return this[p].get("ontransitionstart")??null}set ontransitionstart(t){this[p].set("ontransitionstart",t)}get ontransitionend(){return this[p].get("ontransitionend")??null}set ontransitionend(t){this[p].set("ontransitionend",t)}get ontransitioncancel(){return this[p].get("ontransitioncancel")??null}set ontransitioncancel(t){this[p].set("ontransitioncancel",t)}get onbeforexrselect(){return this[p].get("onbeforexrselect")??null}set onbeforexrselect(t){this[p].set("onbeforexrselect",t)}get onafterprint(){return this[p].get("onafterprint")??null}set onafterprint(t){this[p].set("onafterprint",t)}get onbeforeprint(){return this[p].get("onbeforeprint")??null}set onbeforeprint(t){this[p].set("onbeforeprint",t)}get onbeforeunload(){return this[p].get("onbeforeunload")??null}set onbeforeunload(t){this[p].set("onbeforeunload",t)}get onhashchange(){return this[p].get("onhashchange")??null}set onhashchange(t){this[p].set("onhashchange",t)}get onlanguagechange(){return this[p].get("onlanguagechange")??null}set onlanguagechange(t){this[p].set("onlanguagechange",t)}get onmessage(){return this[p].get("onmessage")??null}set onmessage(t){this[p].set("onmessage",t)}get onmessageerror(){return this[p].get("onmessageerror")??null}set onmessageerror(t){this[p].set("onmessageerror",t)}get onoffline(){return this[p].get("onoffline")??null}set onoffline(t){this[p].set("onoffline",t)}get ononline(){return this[p].get("ononline")??null}set ononline(t){this[p].set("ononline",t)}get onpagehide(){return this[p].get("onpagehide")??null}set onpagehide(t){this[p].set("onpagehide",t)}get onpageshow(){return this[p].get("onpageshow")??null}set onpageshow(t){this[p].set("onpageshow",t)}get onpopstate(){return this[p].get("onpopstate")??null}set onpopstate(t){this[p].set("onpopstate",t)}get onrejectionhandled(){return this[p].get("onrejectionhandled")??null}set onrejectionhandled(t){this[p].set("onrejectionhandled",t)}get onstorage(){return this[p].get("onstorage")??null}set onstorage(t){this[p].set("onstorage",t)}get onunhandledrejection(){return this[p].get("onunhandledrejection")??null}set onunhandledrejection(t){this[p].set("onunhandledrejection",t)}get onunload(){return this[p].get("onunload")??null}set onunload(t){this[p].set("onunload",t)}get ondevicemotion(){return this[p].get("ondevicemotion")??null}set ondevicemotion(t){this[p].set("ondevicemotion",t)}get ondeviceorientation(){return this[p].get("ondeviceorientation")??null}set ondeviceorientation(t){this[p].set("ondeviceorientation",t)}get ondeviceorientationabsolute(){return this[p].get("ondeviceorientationabsolute")??null}set ondeviceorientationabsolute(t){this[p].set("ondeviceorientationabsolute",t)}get onpointerrawupdate(){return this[p].get("onpointerrawupdate")??null}set onpointerrawupdate(t){this[p].set("onpointerrawupdate",t)}get onpageswap(){return this[p].get("onpageswap")??null}set onpageswap(t){this[p].set("onpageswap",t)}get onpagereveal(){return this[p].get("onpagereveal")??null}set onpagereveal(t){this[p].set("onpagereveal",t)}get onscrollsnapchange(){return this[p].get("onscrollsnapchange")??null}set onscrollsnapchange(t){this[p].set("onscrollsnapchange",t)}get onscrollsnapchanging(){return this[p].get("onscrollsnapchanging")??null}set onscrollsnapchanging(t){this[p].set("onscrollsnapchanging",t)}get ongamepadconnected(){return this[p].get("ongamepadconnected")??null}set ongamepadconnected(t){this[p].set("ongamepadconnected",t)}get ongamepaddisconnected(){return this[p].get("ongamepaddisconnected")??null}set ongamepaddisconnected(t){this[p].set("ongamepaddisconnected",t)}get self(){return this[Dn]}set self(t){this[Dn]=t}get top(){return this[Xo]}get parent(){return this[no]}set parent(t){this[no]=t}get frames(){return this[vb]}set frames(t){this[no]=t}get location(){return this[io]}set location(t){this[io].href=t}get history(){return this[Oe]}get navigator(){return this[Dh]}get screen(){return this[Bh]}get sessionStorage(){return this[Oh]}get localStorage(){return this[Gh]}get opener(){return this.#t[bi]}get scrollX(){return this.document?.documentElement?.scrollLeft??0}get pageXOffset(){return this.scrollX}get scrollY(){return this.document?.documentElement?.scrollTop??0}get pageYOffset(){return this.scrollY}get CSS(){return new rc}get innerWidth(){if(this.#e===null)return this.#t.page.viewport.width;return this.#e}set innerWidth(t){this.#e=t}get innerHeight(){if(this.#r===null)return this.#t.page.viewport.height;return this.#r}set innerHeight(t){this.#r=t}get outerWidth(){if(this.#o===null)return this.#t.page.viewport.width;return this.#o}set outerWidth(t){this.#o=t}get outerHeight(){if(this.#i===null)return this.#t.page.viewport.height;return this.#i}set outerHeight(t){this.#i=t}get devicePixelRatio(){if(this.#s===null)return this.#t.page.viewport.devicePixelRatio;return this.#s}set devicePixelRatio(t){this.#s=t}getComputedStyle(t){return t[Ll]=t[Ll]||new Yr(h,this,{element:t,computed:!0}),t[Ll]}getSelection(){return this.document.getSelection()}scroll(t,e){if(typeof t!=="object"&&arguments.length===1)throw new this.TypeError("Failed to execute 'scroll' on 'Window': The provided value is not of type 'ScrollToOptions'.");let o=typeof t==="object"?t:{left:t,top:e};if(o.behavior==="smooth")this.setTimeout(()=>{if(o.top!==void 0){let s=Number(o.top);this.document.documentElement.scrollTop=isNaN(s)?0:s}if(o.left!==void 0){let s=Number(o.left);this.document.documentElement.scrollLeft=isNaN(s)?0:s}});else{if(o.top!==void 0){let s=Number(o.top);this.document.documentElement.scrollTop=isNaN(s)?0:s}if(o.left!==void 0){let s=Number(o.left);this.document.documentElement.scrollLeft=isNaN(s)?0:s}}}scrollTo(t,e){if(typeof t!=="object"&&arguments.length===1)throw new this.TypeError("Failed to execute 'scrollTo' on 'Window': The provided value is not of type 'ScrollToOptions'.");this.scroll(t,e)}scrollBy(t,e){if(typeof t!=="object"&&arguments.length===1)throw new this.TypeError("Failed to execute 'scrollBy' on 'Window': The provided value is not of type 'ScrollToOptions'.");let o=typeof t==="object"?t:{left:t,top:e};this.scroll({left:this.document.documentElement.scrollLeft+(o.left??0),top:this.document.documentElement.scrollTop+(o.top??0),behavior:o.behavior})}blur(){}focus(){}open(t,e,o){return Tc.openPage(this.#t,{url:t,target:e,features:o})}close(){if(this.#t.page.mainFrame===this.#t&&this.#t[bi])this[At](),this.#t.page.close()}matchMedia(t){return new Wa({window:this,media:t})}getScreenDetails(){return Promise.resolve(new um)}setTimeout(t,e=0,...o){if(this.closed)return{};let s=this.#t.page.context.browser.settings;if(s.timer.preventTimerLoops){let a=Error().stack,y=this.#m,u=this.#a,c=y.indexOf(a);if(c!==-1){if(u[c].timeout++,u[c].timeout>=(s.timer.preventTimerLoops===!0?1:s.timer.preventTimerLoops.timeout??1))return{}}else y.push(a),u.push({timeout:0,requestAnimationFrame:0})}if(!e){let a=this.#l;if(!a.timeouts){let u=!s||!s.disableErrorCapturing&&s.errorCapture===me.tryAndCatch,c=wl.setTimeout(()=>{this.#t[Pt].endTimer(c);let d=a.timeouts;a.timeouts=null;for(let g of d)if(u){let f;try{f=g.callback()}catch(E){this[le](E)}if(f instanceof Promise)f.catch((E)=>this[le](E))}else g.callback()},0);a.timeouts=[],this.#t[Pt].startTimer(c)}let y=new Cg(()=>t(...o));return a.timeouts.push(y),y}let n=!s||!s.disableErrorCapturing&&s.errorCapture===me.tryAndCatch,l=wl.setTimeout(()=>{if(this.#t[Pt].endTimer(l),n){let a;try{a=t(...o)}catch(y){this[le](y)}if(a instanceof Promise)a.catch((y)=>this[le](y))}else t(...o)},s?.timer.maxTimeout!==-1&&e&&e>s?.timer.maxTimeout?s?.timer.maxTimeout:e);return this.#t[Pt].startTimer(l),l}clearTimeout(t){if(t&&t instanceof Cg){let e=this.#l;if(!e.timeouts)return;let o=e.timeouts.indexOf(t);if(o!==-1)e.timeouts.splice(o,1);return}if(Tg&&(!t||t.constructor.name!=="Timeout"))return;wl.clearTimeout(t),this.#t[Pt].endTimer(t)}setInterval(t,e=0,...o){if(this.closed)return{};let s=this.#t.page.context.browser.settings,n=!s||!s.disableErrorCapturing&&s.errorCapture===me.tryAndCatch,l=0,a=wl.setInterval(()=>{if(n){let y;try{y=t(...o)}catch(u){this.clearInterval(a),this[le](u)}if(y instanceof Promise)y.catch((u)=>{this.clearInterval(a),this[le](u)})}else t(...o);if(s?.timer.maxIntervalIterations!==-1){if(l>=s?.timer.maxIntervalIterations)this.clearInterval(a);l++}},s?.timer.maxIntervalTime!==-1&&e&&e>s?.timer.maxIntervalTime?s?.timer.maxIntervalTime:e);return this.#t[Pt].startTimer(a),a}clearInterval(t){if(Tg&&(!t||t.constructor.name!=="Timeout"))return;wl.clearInterval(t),this.#t[Pt].endTimer(t)}requestAnimationFrame(t){if(this.closed)return{};let e=this.#t.page.context.browser.settings;if(e.timer.preventTimerLoops){let n=Error().stack,l=this.#m,a=this.#a,y=l.indexOf(n);if(y!==-1){if(a[y].requestAnimationFrame++,a[y].requestAnimationFrame>=(e.timer.preventTimerLoops===!0?1:e.timer.preventTimerLoops.requestAnimationFrame??1))return{}}else l.push(n),a.push({timeout:0,requestAnimationFrame:0})}let o=!e||!e.disableErrorCapturing&&e.errorCapture===me.tryAndCatch,s=wl.setImmediate(()=>{if(this.#t[Pt].endImmediate(s),o){let n;try{n=t(this.performance.now())}catch(l){this[le](l)}if(n instanceof Promise)n.catch((l)=>this[le](l))}else t(this.performance.now())});return this.#t[Pt].startImmediate(s),s}cancelAnimationFrame(t){if(Tg&&(!t||t.constructor.name!=="Immediate"))return;wl.clearImmediate(t),this.#t[Pt].endImmediate(t)}queueMicrotask(t){if(this.closed)return;let e=!1,o=this.#t[Pt].startTask(()=>e=!0),s=this.#t.page.context.browser.settings,n=!s||!s.disableErrorCapturing&&s.errorCapture===me.tryAndCatch;wl.queueMicrotask(()=>{if(!e)if(this.#t[Pt].endTask(o),n){let l;try{l=t()}catch(a){this[le](a)}if(l instanceof Promise)l.catch((a)=>this[le](a))}else t()})}async fetch(t,e){if(this.closed)return Promise.reject(new this.DOMException("Failed to execute 'fetch' on 'Window': The window is closed.",w.invalidStateError));return await new Dr({browserFrame:this.#t,window:this,url:t,init:e}).send()}btoa(t){return np.btoa(t)}atob(t){return np.atob(t)}postMessage(t,e="*",o){if(this.closed)return;if(e&&e!=="*"&&this.location.origin!==e)throw new this.DOMException(`Failed to execute 'postMessage' on 'Window': The target origin provided ('${e}') does not match the recipient window's origin ('${this.location.origin}').`,w.securityError);try{JSON.stringify(t)}catch(s){throw new this.DOMException("Failed to execute 'postMessage' on 'Window': The provided message cannot be serialized.",w.invalidStateError)}this.setTimeout(()=>this.dispatchEvent(new Ep("message",{data:t,origin:this.#t.parentFrame?this.#t.parentFrame.window.location.origin:this.#t.window.location.origin,source:this.#t.parentFrame?this.#t.parentFrame.window:this.#t.window,lastEventId:""})))}resizeTo(t,e){if(this.closed)return;if(!t||!e)throw new this.DOMException(`Failed to execute 'resizeTo' on 'Window': 2 arguments required, but only ${arguments.length} present.`);if(this.#t[Ln])this.#t.page.setViewport({width:t,height:e})}resizeBy(t,e){if(this.closed)return;if(!t||!e)throw new this.DOMException(`Failed to execute 'resizeBy' on 'Window': 2 arguments required, but only ${arguments.length} present.`);if(this.#t[Ln]){let o=this.#t.page.viewport;this.#t.page.setViewport({width:o.width+t,height:o.height+e})}}[le](t){this.#t.page.console.error(t),this.dispatchEvent(new rn("error",{message:t.message,error:t}))}[Oo](t,e){return new vg.Script(t,e).runInContext(this)}[Tm](){if(!vg.isContext(this))vg.createContext(this),gS.runInContext(this)}[Tb](){let t=this.#t;if((ww||Ew)&&t.page.context.browser.settings.enableJavaScriptEvaluation&&!t.page.context.browser.settings.suppressInsecureJavaScriptEnvironmentWarning&&!t.page.context.browser.settings.suppressCodeGenerationFromStringsWarning)console.warn(`
216
216
  Warning! Happy DOM has JavaScript evaluation enabled and is running in an insecure environment.
217
217
 
218
218
  A VM Context is not an isolated environment, and if you run untrusted code you are at risk of RCE (Remote Code Execution) attacks. The attacker can escape the VM and run code at process level.
@@ -221,6 +221,6 @@ It is recommended to disable code generation and freeze all builtins at process
221
221
 
222
222
  For more information, see https://github.com/capricorn86/happy-dom/wiki/JavaScript-Evaluation-Warning
223
223
 
224
- `)}[At](){if(this.closed)return;super[At](),this.closed=!0;let t=this[Nn];for(let n of t)if(n[At])n[At]();this[Nn]=[];for(let n of this[Qn])n[At]();this[Qn]=[],this.document[At]();let e=this.document.createElement("html"),o=this.document.createElement("head"),s=this.document.createElement("body");if(e.appendChild(o),e.appendChild(s),this.document[Et](e),this.location[At])this.location[At]();if(this.customElements[At])this.customElements[At]();if(this.history[At])this.history[At]();this[ms].json.clear(),this[ms].css.clear(),this[ms].esm.clear(),this.document[Rr].clear(),this.document[Me]=null,this.document[Rs]=null,this.document[Oo]=null,this.document[Tn]=null,this[ao]=null,this[Jo]=null,it.removeWindowBrowserFrameRelation(this)}[Eb](){for(let t of[El,vt]){let e=Object.getOwnPropertyDescriptors(t.prototype),o=Object.keys(e);for(let s of o){let n=e[s];if(n.get||n.set)Object.defineProperty(this,s,{...n,get:n.get?.bind(this),set:n.set?.bind(this)});else if(s!=="constructor"&&typeof n.value==="function"&&!n.value.toString().startsWith("class "))Object.defineProperty(this,s,{...n,value:n.value.bind(this)})}}}}import{Script as xw}from"vm";class Pm{static evaluate(t,e){if(!t.window)throw Error('The frame has been destroyed, the "window" property is not set.');return e=typeof e==="string"?new xw(e):e,e.runInContext(t.window)}static async evaluateModule(t,e){if(!t.window)throw Error('The frame has been destroyed, the "window" property is not set.');let o=t.window;if(e?.code){let s=e.url?new URL(e.url,o.location.href):o.location,n=e.code;switch(e?.type||"esm"){case"esm":let l=new Qo(o,s);return await new pn({window:o,url:s,source:n,factory:l}).evaluate();case"json":return await new mm({window:o,url:s,source:n}).evaluate();case"css":return await new am({window:o,url:s,source:n}).evaluate()}}if(e?.url)return await(await new Qo(o,o.location).getModule(e.url,{with:{type:e.type||"esm"}})).evaluate();return{}}}class dh{currentItem={title:"",href:"about:blank",state:null,popState:!1,scrollRestoration:ii.auto,method:"GET",formData:null};items=[this.currentItem];push(t){let e=this.items.indexOf(this.currentItem);if(e!==this.items.length-1)this.items.length=e+1;this.items.push(t),this.currentItem=t}replace(t){let e=this.items.indexOf(this.currentItem);if(e!==this.items.length-1)this.items.length=e+1;if(e===-1)throw Error("Current history item not found");this.currentItem=t,this.items[e]=t}clear(){this.items.length=0,this.currentItem={title:"",href:"about:blank",state:null,popState:!1,scrollRestoration:ii.auto,method:"GET",formData:null},this.items.push(this.currentItem)}}class Am{#t;#e={};#r={};#o=0;#i=[];constructor(t){this.#t=t}assert(t,e,...o){if(!t)this.#t.print({type:Fe.assert,level:mr.error,message:["Assertion failed:",...e?[e,...o]:o],group:this.#i[this.#i.length-1]||null})}clear(){this.#t.clear()}count(t="default"){if(!this.#e[t])this.#e[t]=0;this.#e[t]++,this.#t.print({type:Fe.count,level:mr.info,message:[`${t}: ${this.#e[t]}`],group:this.#i[this.#i.length-1]||null})}countReset(t="default"){delete this.#e[t],this.#t.print({type:Fe.countReset,level:mr.warn,message:[`${t}: 0`],group:this.#i[this.#i.length-1]||null})}debug(t,...e){this.#t.print({type:Fe.debug,level:mr.log,message:t?[t,...e]:e,group:this.#i[this.#i.length-1]||null})}dir(t){this.#t.print({type:Fe.dir,level:mr.log,message:[t],group:this.#i[this.#i.length-1]||null})}dirxml(t){this.#t.print({type:Fe.dirxml,level:mr.log,message:[t],group:this.#i[this.#i.length-1]||null})}error(t,...e){this.#t.print({type:Fe.error,level:mr.error,message:t?[t,...e]:e,group:this.#i[this.#i.length-1]||null})}exception(...t){this.error(...t)}group(t){this.#o++;let e={id:this.#o,label:t||"default",collapsed:!1,parent:this.#i[this.#i.length-1]||null};this.#i.push(e),this.#t.print({type:Fe.group,level:mr.log,message:[t||"default"],group:e})}groupCollapsed(t){this.#o++;let e={id:this.#o,label:t||"default",collapsed:!0,parent:this.#i[this.#i.length-1]||null};this.#i.push(e),this.#t.print({type:Fe.groupCollapsed,level:mr.log,message:[t||"default"],group:e})}groupEnd(){if(this.#i.length===0)return;this.#i.pop()}info(t,...e){this.#t.print({type:Fe.info,level:mr.info,message:t?[t,...e]:e,group:this.#i[this.#i.length-1]||null})}log(t,...e){this.#t.print({type:Fe.log,level:mr.log,message:t?[t,...e]:e,group:this.#i[this.#i.length-1]||null})}profile(){throw Error("Method not implemented.")}profileEnd(){throw Error("Method not implemented.")}table(t){this.#t.print({type:Fe.table,level:mr.log,message:[t],group:this.#i[this.#i.length-1]||null})}time(t="default"){this.#r[t]=performance.now()}timeEnd(t="default"){let e=this.#r[t];if(e){let o=performance.now()-e;this.#t.print({type:Fe.timeEnd,level:mr.info,message:[`${t}: ${o}ms - timer ended`],group:this.#i[this.#i.length-1]||null})}}timeLog(t="default",...e){let o=this.#r[t];if(o){let s=performance.now()-o;this.#t.print({type:Fe.timeLog,level:mr.info,message:[`${t}: ${s}ms`,...e],group:this.#i[this.#i.length-1]||null})}}timeStamp(){throw Error("Method not implemented.")}trace(t,...e){this.#t.print({type:Fe.trace,level:mr.log,message:[...t?[t,...e]:e,Error("stack").stack.replace("Error: stack","")],group:this.#i[this.#i.length-1]||null})}warn(t,...e){this.#t.print({type:Fe.warn,level:mr.warn,message:t?[t,...e]:e,group:this.#i[this.#i.length-1]||null})}}class wm{static getFrames(t){return this.findFrames(t.mainFrame)}static closePage(t){if(t.closed)return Promise.resolve();t.closed=!0;let e=t.context.pages.indexOf(t);if(e!==-1)t.context.pages.splice(e,1);return t.virtualConsolePrinter.close(),As.destroyFrame(t.mainFrame)}static findFrames(t){let e=[t];for(let o of t.childFrames)e=e.concat(this.findFrames(o));return e}}class bh{#t=new Map;get(t){let e=this.#t.get(t.url);if(e){if(e.expires<Date.now())return this.#t.delete(t.url),null;return e}return null}add(t,e){if(this.#t.delete(t.url),t.headers.get("Cache-Control")?.includes("no-cache"))return null;if(e.status<200||e.status>=300)return null;let o=e.headers.get("Access-Control-Max-Age"),s=e.headers.get("Access-Control-Allow-Origin");if(!o||!s)return null;let n=[];if(e.headers.has("Access-Control-Allow-Methods")){if(e.headers.get("Access-Control-Allow-Methods")!=="*")for(let y of e.headers.get("Access-Control-Allow-Methods").split(","))n.push(y.trim().toUpperCase())}let l={allowOrigin:s,allowMethods:n,expires:Date.now()+parseInt(o)*1000};if(isNaN(l.expires)||l.expires<Date.now())return null;return this.#t.set(t.url,l),l}clear(){this.#t.clear()}}var BS={version:"20.9.0"};var Di={disableJavaScriptEvaluation:!1,enableJavaScriptEvaluation:!1,disableJavaScriptFileLoading:!1,disableCSSFileLoading:!1,disableIframePageLoading:!1,disableComputedStyleRendering:!1,handleDisabledFileLoadingAsSuccess:!1,disableErrorCapturing:!1,errorCapture:me.tryAndCatch,enableFileSystemHttpRequests:!1,suppressCodeGenerationFromStringsWarning:!1,suppressInsecureJavaScriptEnvironmentWarning:!1,timer:{maxTimeout:-1,maxIntervalTime:-1,maxIntervalIterations:-1,preventTimerLoops:!1},fetch:{disableSameOriginPolicy:!1,disableStrictSSL:!1,interceptor:null,requestHeaders:null,virtualServers:null},module:{resolveNodeModules:null,urlResolver:null,disableCache:!1},navigation:{disableMainFrameNavigation:!1,disableChildFrameNavigation:!1,disableChildPageNavigation:!1,disableFallbackToSetURL:!1,crossOriginPolicy:im.anyOrigin,beforeContentCallback:null},navigator:{userAgent:`Mozilla/5.0 (X11; ${process.platform.charAt(0).toUpperCase()+process.platform.slice(1)+" "+process.arch}) AppleWebKit/537.36 (KHTML, like Gecko) HappyDOM/${BS.version}`,maxTouchPoints:0},device:{prefersColorScheme:"light",prefersReducedMotion:"no-preference",mediaType:"screen",forcedColors:"none"},debug:{traceWaitUntilComplete:-1},viewport:{width:1024,height:768,devicePixelRatio:1}};class gh{static createSettings(t){if(t)this.validate(Di,t);return{...Di,...t,navigation:{...Di.navigation,...t?.navigation},navigator:{...Di.navigator,...t?.navigator},timer:{...Di.timer,...t?.timer},fetch:{...Di.fetch,...t?.fetch},module:{...Di.module,...t?.module},device:{...Di.device,...t?.device},debug:{...Di.debug,...t?.debug},viewport:{...Di.viewport,...t?.viewport}}}static validate(t,e,o){for(let s of Object.keys(e)){if(t[s]===void 0){let n=o?o+"."+s:s;throw Error(`Unknown browser setting "${n}"`)}if(typeof t[s]==="object"&&!Array.isArray(t[s])&&t[s]!==null){let n=o?o+"."+s:s;if(typeof e[s]!=="object"||Array.isArray(e[s])||e[s]===null)throw Error(`Browser setting "${n}" cannot be null`);this.validate(t[s],e[s],n)}else if((typeof t[s]==="boolean"||typeof t[s]==="number"||typeof t[s]==="string")&&typeof e[s]!==typeof t[s]){if(!(s==="preventTimerLoops"&&typeof e[s]==="object"&&e[s]!==null)){let l=o?o+"."+s:s;throw Error(`Browser setting "${l}" must be of type "${typeof t[s]}"`)}}}}}class Sh{static listenerCount=0;observedWindows=[];uncaughtExceptionListener=null;uncaughtRejectionListener=null;observe(t){if(this.observedWindows.includes(t))throw Error("Browser window is already being observed.");if(this.observedWindows.push(t),this.uncaughtExceptionListener)return;this.uncaughtExceptionListener=(e,o)=>{if(o==="unhandledRejection")return;let s=null;for(let n of this.observedWindows)if(e instanceof n.Error||e instanceof n.DOMException){s=n;break}if(s)s.console.error(e),s.dispatchEvent(new s.ErrorEvent("error",{error:e,message:e.message}));else if(process.listenerCount("uncaughtException")===this.constructor.listenerCount)console.error(e),process.exit(1)},this.uncaughtRejectionListener=(e)=>{let o=null;for(let s of this.observedWindows)if(e instanceof s.Error||e instanceof s.DOMException){o=s;break}if(o)o.console.error(e),o.dispatchEvent(new o.ErrorEvent("error",{error:e,message:e.message}));else if(process.listenerCount("unhandledRejection")===this.constructor.listenerCount)console.error(e),process.exit(1)},this.constructor.listenerCount++,process.on("uncaughtException",this.uncaughtExceptionListener),process.on("unhandledRejection",this.uncaughtRejectionListener)}disconnect(t){let e=this.observedWindows.indexOf(t);if(e===-1)return;if(this.observedWindows.splice(e,1),this.observedWindows.length===0&&this.uncaughtExceptionListener){if(this.constructor.listenerCount--,process.off("uncaughtException",this.uncaughtExceptionListener),this.uncaughtRejectionListener)process.off("unhandledRejection",this.uncaughtRejectionListener);this.uncaughtExceptionListener=null,this.uncaughtRejectionListener=null}}}class fh{childFrames=[];parentFrame=null;page;closed=!1;[Pt]=new Js(this);[he]={navigation:[]};[io]=null;[Si]=null;[Ln]=!1;[Oe]=new dh;constructor(t){if(this.page=t,t.context.browser.contexts[0]?.pages[0]?.mainFrame){if(this.window=new this.page.context.browser.windowClass(this),t.context.browser[to])t.context.browser[to].observe(this.window)}}get content(){if(!this.window)throw Error('The frame has been destroyed, the "window" property is not set.');return this.window.document.documentElement.outerHTML}set content(t){if(!this.window)throw Error('The frame has been destroyed, the "window" property is not set.');this.window.document[ks]=!0,this.window.document[Ms]=!1,this.window.document.open(),this.window.document.write(t)}get url(){if(!this.window)throw Error('The frame has been destroyed, the "window" property is not set.');return this.window.location.href}set url(t){if(!this.window)throw Error('The frame has been destroyed, the "window" property is not set.');this.window[no][_r](this,Fo.getRelativeURL(this,t).href)}get document(){return this.window?.document??null}async waitUntilComplete(){await Promise.all([this[Pt].waitUntilComplete(),...this.childFrames.map((t)=>t.waitUntilComplete())])}waitForNavigation(){return new Promise((t)=>this[he].navigation.push(t))}abort(){if(!this.childFrames.length)return this[Pt].abort();return new Promise((t,e)=>{Promise.all(this.childFrames.map((o)=>o.abort()).concat([this[Pt].abort()])).then(()=>t()).catch(e)})}evaluate(t){return Pm.evaluate(this,t)}evaluateModule(t){return Pm.evaluateModule(this,t)}goto(t,e){return Xr.navigate({windowClass:this.page.context.browser.windowClass,frame:this,url:t,goToOptions:e})}goBack(t){return Xr.navigateBack({windowClass:this.page.context.browser.windowClass,frame:this,goToOptions:t})}goForward(t){return Xr.navigateForward({windowClass:this.page.context.browser.windowClass,frame:this,goToOptions:t})}goSteps(t,e){return Xr.navigateSteps({windowClass:this.page.context.browser.windowClass,frame:this,steps:t,goToOptions:e})}reload(t){return Xr.reload({windowClass:this.page.context.browser.windowClass,frame:this,goToOptions:t})}}class Em{virtualConsolePrinter=new Oa;mainFrame;context;console;viewport;closed=!1;constructor(t){this.context=t,this.console=t.browser.console??new Am(this.virtualConsolePrinter),this.mainFrame=new fh(this),this.viewport={width:t.browser.settings.viewport.width,height:t.browser.settings.viewport.height,devicePixelRatio:t.browser.settings.viewport.devicePixelRatio}}get frames(){return wm.getFrames(this)}get content(){return this.mainFrame.content}set content(t){this.mainFrame.content=t}get url(){return this.mainFrame.url}set url(t){this.mainFrame.url=t}close(){return new Promise((t,e)=>{let o=this.context;wm.closePage(this).then(()=>{if(o.pages[0]===this)o.browser.close().then(t).catch(e);else t()}).catch(e)})}waitUntilComplete(){return this.mainFrame.waitUntilComplete()}waitForNavigation(){return this.mainFrame.waitForNavigation()}abort(){return this.mainFrame.abort()}evaluate(t){return this.mainFrame.evaluate(t)}evaluateModule(t){return this.mainFrame.evaluateModule(t)}setViewport(t){let e=Object.assign({},this.viewport);if(Object.assign(this.viewport,t),e.width!==this.viewport.width||e.height!==this.viewport.height||e.devicePixelRatio!==this.viewport.devicePixelRatio)this.mainFrame.window.dispatchEvent(new N("resize"))}goto(t,e){return this.mainFrame.goto(t,e)}goBack(t){return this.mainFrame.goBack(t)}goForward(t){return this.mainFrame.goForward(t)}goSteps(t,e){return this.mainFrame.goSteps(t,e)}reload(t){return this.mainFrame.reload(t)}}class Ph{pages;browser;cookieContainer=new ip;responseCache=new sp;preflightResponseCache=new bh;closed=!1;[Va]=new Map;constructor(t){this.browser=t,this.pages=[],this.pages.push(new Em(this))}async close(){if(this.closed)return;if(this.browser.contexts[0]===this)throw Error("Cannot close the default context. Use `browser.close()` to close the browser instead.");this.closed=!0,await Promise.all(this.pages.slice().map((o)=>o.close()));let t=this.browser,e=t.contexts.indexOf(this);if(e!==-1)t.contexts.splice(e,1);this.pages=[],this.cookieContainer.clearCookies(),this.responseCache.clear(),this.preflightResponseCache.clear()}async waitUntilComplete(){await Promise.all(this.pages.map((t)=>t.waitUntilComplete()))}abort(){return new Promise((t,e)=>{if(!this.pages.length){t();return}Promise.all(this.pages.slice().map((o)=>o.abort())).then(()=>t()).catch((o)=>e(o))})}newPage(){let t=new Em(this);return this.pages.push(t),t}}class Ah{contexts;settings;console;windowClass;[to]=null;constructor(t,e){if(this.windowClass=t,this.console=e?.console||null,this.settings=gh.createSettings(e?.settings),this.settings.errorCapture===me.processLevel)this[to]=new Sh;this.contexts=[],this.contexts.push(new Ph(this))}get closed(){return this.contexts.length===0}get defaultContext(){if(this.contexts.length===0)throw Error("No default context. The browser has been closed.");return this.contexts[0]}async close(){if(this.contexts.length===0)return;let t=this.contexts;this.contexts=[],await Promise.all(t.map((e)=>e.close()))}async waitUntilComplete(){await Promise.all(this.contexts.map((t)=>t.waitUntilComplete()))}abort(){return new Promise((t,e)=>{if(!this.contexts.length){t();return}Promise.all(this.contexts.slice().map((o)=>o.abort())).then(()=>t()).catch((o)=>e(o))})}newIncognitoContext(){throw Error("Not possible to create a new context on a detached browser.")}newPage(){if(this.contexts.length===0)throw Error("No default context. The browser has been closed.");return this.contexts[0].newPage()}}class wh{#t;constructor(t){this.#t=t}get settings(){return this.#t.page.context.browser.settings}get virtualConsolePrinter(){return this.#t.page.virtualConsolePrinter}waitUntilComplete(){return this.#t.waitUntilComplete()}whenAsyncComplete(){return this.waitUntilComplete()}abort(){return this.#t.abort()}cancelAsync(){return this.abort()}close(){return this.#t.page.close()}setURL(t){this.#t.url=t}setViewport(t){this.#t.page.setViewport(t)}setWindowSize(t){this.setViewport({width:t?.width,height:t?.height})}setInnerWidth(t){this.setViewport({width:t})}setInnerHeight(t){this.setViewport({height:t})}}class Eh extends El{happyDOM;constructor(t){let o=new Ah(El,{console:t?.console,settings:t?.settings}).defaultContext.pages[0],s=o.mainFrame;if(t&&(t.width||t.height||t.innerWidth||t.innerHeight))Object.assign(o.viewport,{width:t.width||t.innerWidth||o.viewport.width,height:t.height||t.innerHeight||o.viewport.height});super(s,{url:t?.url});if(s.window=this,s.page.context.browser[to])s.page.context.browser[to].observe(this);this.happyDOM=new wh(s)}}import{Buffer as Nw}from"buffer";class xh extends Eh{Array=globalThis.Array;ArrayBuffer=globalThis.ArrayBuffer;Boolean=globalThis.Boolean;Buffer=Nw;DataView=globalThis.DataView;Date=globalThis.Date;Error=globalThis.Error;EvalError=globalThis.EvalError;Float32Array=globalThis.Float32Array;Float64Array=globalThis.Float64Array;Function=globalThis.Function;Infinity=globalThis.Infinity;Int16Array=globalThis.Int16Array;Int32Array=globalThis.Int32Array;Int8Array=globalThis.Int8Array;Intl=globalThis.Intl;JSON=globalThis.JSON;Map=globalThis.Map;Math=globalThis.Math;NaN=globalThis.NaN;Number=globalThis.Number;Object=globalThis.Object;Promise=globalThis.Promise;RangeError=globalThis.RangeError;ReferenceError=globalThis.ReferenceError;RegExp=globalThis.RegExp;Set=globalThis.Set;String=globalThis.String;Symbol=globalThis.Symbol;SyntaxError=globalThis.SyntaxError;TypeError=globalThis.TypeError;URIError=globalThis.URIError;Uint16Array=globalThis.Uint16Array;Uint32Array=globalThis.Uint32Array;Uint8Array=globalThis.Uint8Array;Uint8ClampedArray=globalThis.Uint8ClampedArray;WeakMap=globalThis.WeakMap;WeakSet=globalThis.WeakSet;decodeURI=globalThis.decodeURI;decodeURIComponent=globalThis.decodeURIComponent;encodeURI=globalThis.encodeURI;encodeURIComponent=globalThis.encodeURIComponent;eval=globalThis.eval;escape=globalThis.escape;global=globalThis;isFinite=globalThis.isFinite;isNaN=globalThis.isNaN;parseFloat=globalThis.parseFloat;parseInt=globalThis.parseInt;undefined=globalThis.undefined;unescape=globalThis.unescape;[Uo](t,e){if(e?.filename)return this.eval(`${t}
225
- //# sourceURL=${e.filename}`);return this.eval(t)}[Tm](){}}class Ng{context;active=!0;revision=0;controller;state={pending:!1,error:null};listeners=new Set;update(t){if(t?.text!==this.context?.text||t?.draftKey!==this.context?.draftKey||t?.busy!==this.context?.busy||t?.disabled!==this.context?.disabled)this.revision++;this.context=t}activate(){this.active=!0}dispose(){this.active=!1,this.controller?.abort(),this.controller=void 0,this.state={...this.state,pending:!1}}subscribe=(t)=>(this.listeners.add(t),()=>this.listeners.delete(t));getSnapshot=()=>this.state;publish(t,e){this.state={pending:t,error:e};for(let o of this.listeners)o()}clearError=()=>this.publish(this.state.pending,null);run=async(t)=>{if(!this.active||this.controller)return;let e=this.context;if(!e||e.busy||e.disabled){this.publish(!1,"\u5F53\u524D\u4E0D\u53EF\u7528\uFF0C\u672A\u6267\u884C");return}let o=this.revision,s=new AbortController;this.controller=s,this.publish(!0,null);try{let n=await t(e.text,s.signal);if(!this.active||s.signal.aborted)return;if(o!==this.revision){this.publish(!0,this.context?.busy||this.context?.disabled?"\u5F53\u524D\u4E0D\u53EF\u7528\uFF0C\u672A\u6267\u884C":"\u8349\u7A3F\u5DF2\u66F4\u6539\uFF0C\u672A\u8986\u76D6\u5F53\u524D\u5185\u5BB9");return}e.setText((l)=>{if(!this.active||s.signal.aborted||o!==this.revision||l!==e.text)return queueMicrotask(()=>{if(this.active&&!s.signal.aborted)this.publish(this.state.pending,this.context?.busy||this.context?.disabled?"\u5F53\u524D\u4E0D\u53EF\u7528\uFF0C\u672A\u6267\u884C":"\u8349\u7A3F\u5DF2\u66F4\u6539\uFF0C\u672A\u8986\u76D6\u5F53\u524D\u5185\u5BB9")}),l;return n})}catch(n){if(this.active&&!s.signal.aborted)this.publish(!0,n instanceof Error?n.message:String(n))}finally{if(this.controller===s){if(this.controller=void 0,this.active)this.publish(!1,this.state.error)}}}}var qd=Un(null);function OS(){let t=Bn(qd);if(!t)throw Error("Plugin Web UI provider is missing");return t}function Lw(t){let e=Wn(null);if(!e.current)e.current=new Ng;let o=e.current;return o.update(t.context),Fn(()=>(o.activate(),()=>o.dispose()),[o]),{...$n(o.subscribe,o.getSnapshot,o.getSnapshot),run:o.run,clearError:o.clearError}}function kw({pending:t,disabled:e,...o}){let{Button:s}=OS();return C(s,{...o,type:"button",size:"sm",variant:"ghost",disabled:e||t,loading:t,"aria-busy":t||void 0})}var Mw=Symbol.for("react.fragment");var GS=Mw,US=void 0;var Iw=Symbol.for("react.transitional.element"),Rw=Symbol.for("react.fragment");function HS(t,e,o){var s=null;if(o!==void 0&&(s=""+o),e.key!==void 0&&(s=""+e.key),"key"in e){o={};for(var n in e)n!=="key"&&(o[n]=e[n])}else o=e;return e=o.ref,{$$typeof:Iw,type:t,key:s,ref:e!==void 0?e:null,props:o}}var WS=Rw,_S=HS,YS=HS;var Fw={sans:'ui-sans-serif, system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif',serif:'ui-serif, Georgia, "PingFang SC", "Microsoft YaHei", serif',mono:'ui-monospace, "SF Mono", Menlo, Consolas, monospace'},Vw={bg:"oklch(0.984 0.002 95)",sidebar:"oklch(0.966 0.003 95)",panel:"oklch(1 0 0)",raised:"oklch(0.94 0.004 95)",bubble:"oklch(0.948 0.004 95)",line:"oklch(0.905 0.005 95)",lineStrong:"oklch(0.84 0.006 95)",ink:"oklch(0.22 0.006 250)",dim:"oklch(0.47 0.008 250)",faint:"oklch(0.63 0.008 250)",accent:"oklch(0.53 0.085 172)",accentStrong:"oklch(0.47 0.085 172)",accentInk:"oklch(0.99 0.01 172)",accentSoft:"oklch(0.53 0.085 172 / 0.11)",danger:"oklch(0.55 0.17 27)",dangerFill:"oklch(0.52 0.17 27)",dangerFillHover:"oklch(0.47 0.17 27)",success:"oklch(0.56 0.11 155)",warning:"oklch(0.7 0.14 70)",overlay:"oklch(0.2 0.01 250 / 0.32)",facet:"oklch(0.32 0.012 240)",facetLit:"oklch(0.46 0.012 240)",facetShade:"oklch(0.27 0.01 240)",hex:{bg:"#f9f9f8",panel:"#ffffff",ink:"#1b1f24",dim:"#5b6068",faint:"#878c94",line:"#e3e2dd",lineStrong:"#cfcdc7"},chartPalette:["#2a78d6","#eb6834","#1baf7a","#eda100","#e87ba4","#008300","#4a3aa7","#e34948"],chartSequential:["#cde2fb","#86b6ef","#3987e5","#1c5cab","#0d366b"]},Dw={float:"0 1px 2px oklch(0.2 0.01 250 / 0.05), 0 8px 28px -6px oklch(0.2 0.01 250 / 0.14)",composer:"0 1px 2px oklch(0.2 0.01 250 / 0.04), 0 6px 24px -8px oklch(0.2 0.01 250 / 0.1)"},Bw={scheme:"light",colors:Vw,fonts:Fw,shadows:Dw},KS={"surface.panel":"overflow-hidden rounded-xl border border-line bg-panel text-ink","surface.card":"rounded-2xl border border-line bg-panel text-ink","surface.subtle":"rounded-xl border border-line/60 bg-raised/25","surface.interactive":"overflow-hidden rounded-xl border border-line bg-panel/70 transition-colors hover:border-line-strong hover:bg-panel","surface.dock":"relative flex flex-col overflow-hidden rounded-[20px] border border-line bg-panel outline-none","surface.empty":"py-8 text-center text-xs text-faint","surface.emptyDashed":"flex flex-col items-center gap-3 rounded-2xl border border-dashed border-line-strong/70 px-6 py-16 text-center","surface.floating":"z-50 min-w-40 overflow-hidden rounded-xl border border-line bg-panel p-1 text-ink shadow-float outline-none","surface.floatingItem":"relative flex min-h-8 w-full cursor-default items-center gap-2.5 rounded-lg px-2 py-1.5 text-left text-[13.5px] outline-none select-none","surface.floatingLabel":"px-2 pt-1.5 pb-1 text-xs font-medium text-faint","surface.floatingSeparator":"-mx-1 my-1 h-px bg-line","surface.toolbarFloating":"flex items-center gap-0.5 rounded-lg border border-line/70 bg-panel/85 p-0.5 shadow-xs backdrop-blur-sm","surface.tooltip":"z-50 flex items-center gap-1.5 rounded-md bg-ink px-2 py-1 text-xs font-medium text-bg","surface.dialog":"fixed z-50 flex max-h-[min(92dvh,48rem)] w-full flex-col border border-line bg-panel shadow-float outline-none","surface.overlay":"fixed inset-0 z-40 bg-overlay backdrop-blur-[2px]","toast.item":"pointer-events-auto flex w-full items-start gap-2.5 rounded-xl border border-line bg-panel px-3.5 py-2.5 text-[13.5px] leading-5 text-ink shadow-float outline-none","toast.danger":"border-danger/35","button.base":"relative inline-flex shrink-0 items-center justify-center gap-1.5 font-medium whitespace-nowrap select-none","button.primary":"bg-accent text-accent-ink hover:bg-accent-strong","button.secondary":"border border-line bg-panel text-ink hover:border-line-strong hover:bg-raised/60","button.ghost":"text-dim hover:bg-raised hover:text-ink","button.danger":"bg-danger-fill text-white hover:bg-danger-fill-hover","button.dangerGhost":"text-danger hover:bg-danger/10","button.inverse":"bg-ink text-bg hover:bg-ink/85","control.input":"w-full rounded-[10px] border border-line bg-bg px-3 text-sm text-ink outline-none placeholder:text-faint","control.chipTrigger":"inline-flex h-8 max-w-full min-w-0 items-center gap-1.5 rounded-full border border-line bg-panel px-3 text-xs text-dim shadow-xs select-none","control.fieldTrigger":"inline-flex h-9 w-full min-w-0 items-center gap-2 rounded-[10px] border border-line bg-bg px-3 text-sm text-ink select-none","control.segmented":"relative inline-flex rounded-xl bg-raised p-1","control.segmentedPill":"pointer-events-none absolute top-0 left-0 rounded-lg bg-panel opacity-0 shadow-xs will-change-transform","control.switch":"group/switch relative inline-flex h-5.5 w-9.5 shrink-0 items-center rounded-full p-0.5","control.switchThumb":"block h-4.5 w-4.5 rounded-full bg-white","control.kbd":"inline-flex h-4.5 min-w-4.5 items-center justify-center rounded border border-line bg-raised px-1","control.badge":"inline-flex items-center rounded-md bg-raised px-1.5 py-0.5 text-[10.5px] leading-none font-medium text-faint","control.badgeAccent":"inline-flex shrink-0 items-center rounded-md bg-accent-soft px-1.5 py-0.5 text-[11px] leading-none font-medium text-accent","control.iconCircle":"group relative flex size-7 items-center justify-center rounded-full border border-line bg-raised/40 text-dim","command.inputWrap":"flex shrink-0 items-center gap-2 border-b border-line px-3","command.input":"h-11 min-w-0 flex-1 bg-transparent text-[14px] outline-none placeholder:text-faint","command.group":"text-xs font-medium text-faint","command.row":"relative flex w-full cursor-default gap-3 rounded-lg px-2.5 py-2 text-left outline-none select-none","code.base":"overflow-x-auto font-mono text-[12.5px] leading-[1.65]","code.block":"group/code my-4 font-sans not-italic first:mt-0 last:mb-0","page.container":"mx-auto max-w-3xl px-4 pt-6 pb-16 sm:px-6 sm:pt-10","page.title":"min-w-0 flex-1 font-serif text-[1.75rem] leading-tight tracking-[-0.015em]","page.description":"mb-8 text-sm text-dim","workspace.header":"flex h-12 shrink-0 items-center gap-2 border-b border-line/60 px-3","settings.groupTitle":"text-[13px] font-medium text-dim","settings.groupDesc":"mt-0.5 text-xs text-faint","settings.groupBox":"divide-y divide-line overflow-hidden rounded-2xl border border-line bg-panel","settings.row":"flex flex-wrap items-center justify-between gap-4 p-4","settings.rowTitle":"text-sm font-medium text-ink","settings.rowDesc":"mt-0.5 text-xs leading-5 break-words text-dim","status.base":"inline-flex shrink-0 items-center gap-1.5 rounded-full px-2 py-1 text-[11px] leading-none font-medium","status.success":"bg-success/10 text-success","status.warning":"bg-warning/10 text-warning","status.danger":"bg-danger/10 text-danger","status.neutral":"bg-raised text-dim","callout.base":"flex items-start gap-2.5 rounded-xl border px-3.5 py-2.5 text-[13.5px] leading-5","callout.info":"border-line bg-raised/40 text-dim","callout.danger":"border-danger/25 bg-danger/6 text-danger","chat.banner":"flex shrink-0 flex-wrap items-center justify-between gap-2 border-b border-line bg-raised/45 px-4 py-2 text-xs text-dim","chat.dockBanner":"flex shrink-0 flex-wrap items-center justify-between gap-2 rounded-[20px] border border-line bg-raised/55 px-4 py-3 text-xs text-dim","chat.userBubble":"rounded-[20px] rounded-br-md bg-bubble px-4 py-2.5 text-[14.5px] leading-[1.6] text-ink break-words whitespace-pre-wrap","chat.attachmentCard":"flex h-8 items-center gap-1.5 rounded-xl border border-line bg-panel px-2.5 text-xs text-dim","chat.prose":"font-serif text-[14.5px] leading-[1.78] tracking-[0.005em] break-words text-ink/84","chat.metaBadge":"inline-flex items-center gap-1 rounded-md border border-line/60 bg-raised/60 px-1.5 py-0.5","chat.stepRow":"group/collapsible -mx-2 flex w-[calc(100%+1rem)] items-center gap-2 rounded-lg px-2 py-1.5","chat.timelineRow":"group/collapsible -mx-2 flex w-[calc(100%+1rem)] items-center gap-2 rounded-lg px-2 py-1","chat.thinkingBody":"mt-1.5 mb-2.5 font-serif text-[13.5px] leading-[1.65] text-dim italic","chat.toolOutput":"max-h-80 overflow-auto px-4 py-3 font-mono text-[12.5px] leading-[1.65] whitespace-pre-wrap break-words","chat.diffAdd":"bg-success/10 text-success","chat.diffRemove":"bg-danger/9 text-danger","chat.foldPill":"group/fold flex cursor-pointer select-none items-center gap-2 rounded-full border border-line/70 bg-panel/90 px-3.5 py-1 text-xs text-faint","chat.scrollBottomBtn":"flex h-8 items-center gap-1.5 rounded-full border border-line bg-panel/95 px-3 text-xs font-medium text-dim shadow-float","search.highlight":"rounded-sm bg-accent-soft px-0.5 font-medium text-ink","search.filterChip":"inline-flex h-6 items-center gap-1 rounded-md border border-line bg-panel px-2 text-xs text-dim","search.filterChipActive":"inline-flex h-6 items-center gap-1 rounded-md border border-accent/35 bg-accent-soft pl-2 pr-1 text-xs font-medium text-accent","composer.box":"group/composer relative min-w-0 rounded-[20px] border border-line bg-panel","composer.input":"relative block min-h-13 w-full resize-none bg-transparent px-4 pt-3.5 pb-1.5 text-[15px] leading-6","composer.attachment":"group/att flex h-9 items-center gap-2 rounded-xl border border-line bg-raised/60 pr-1.5 pl-2.5 text-xs","sidebar.shell":"flex h-full flex-col bg-sidebar","sidebar.drawer":"fixed inset-y-0 left-0 z-0 flex w-[min(86vw,24rem)] flex-col bg-sidebar outline-none","sidebar.rightShell":"flex h-full w-full flex-col border-l border-line bg-sidebar","sidebar.rightDrawer":"fixed inset-y-0 right-0 z-50 flex w-[min(24rem,90vw)] flex-col border-l border-line bg-sidebar shadow-float outline-none","sidebar.navItem":"group flex h-9 w-full items-center gap-2.5 rounded-lg px-2 text-left text-sm select-none","sidebar.sectionTitle":"flex-1 text-xs font-medium text-faint","sidebar.hoverPill":"pointer-events-none absolute top-0 left-0 rounded-lg bg-raised/65 opacity-0","sidebar.activePill":"pointer-events-none absolute top-0 left-0 rounded-lg bg-raised opacity-0","markdown.p":"my-4 first:mt-0 last:mb-0","markdown.strong":"font-semibold text-ink","markdown.a":"font-medium text-accent underline","markdown.fileChip":"inline-flex items-baseline gap-1 rounded-md bg-raised/85 px-[0.42em] py-[0.08em] font-mono","markdown.h1":"mt-6 mb-2.5 text-[1.28em] leading-snug font-semibold text-ink first:mt-0","markdown.h2":"mt-6 mb-2.5 text-[1.16em] leading-snug font-semibold text-ink first:mt-0","markdown.h3":"mt-5.5 mb-2 text-[1.06em] font-semibold text-ink first:mt-0","markdown.h4":"mt-4.5 mb-1.5 font-semibold text-ink first:mt-0","markdown.ul":"mt-1.5 mb-5 list-disc pl-[1.5em] marker:text-faint first:mt-0 last:mb-0","markdown.ol":"mt-1.5 mb-5 list-decimal pl-[1.6em] marker:text-[0.9em] marker:text-faint first:mt-0 last:mb-0","markdown.li":"my-2 pl-1","markdown.blockquote":"my-3.5 border-l-[3px] border-line-strong pl-3.5 text-dim italic","markdown.hr":"my-5 border-line","markdown.inlineCode":"mx-[0.18em] rounded-md bg-raised/85 px-[0.38em] py-[0.12em] font-mono text-[0.84em] text-ink/95 break-words","markdown.details":"my-3.5 overflow-hidden rounded-xl border border-line bg-raised/25 not-italic first:mt-0 last:mb-0","markdown.detailsTrigger":"group/collapsible flex w-full cursor-pointer items-center gap-2 px-3.5 py-2.5 text-left font-sans text-[13.5px] leading-snug font-medium text-ink","markdown.detailsContent":"border-t border-line px-3.5 py-3","markdown.imageButton":"my-3 block cursor-zoom-in overflow-hidden rounded-xl border border-line bg-panel text-left","markdown.tableWrap":"my-4 overflow-x-auto rounded-xl border border-line font-sans not-italic first:mt-0 last:mb-0","markdown.table":"w-full border-collapse text-[13.5px]","markdown.thead":"bg-raised/50","markdown.th":"min-w-24 border-b border-line px-3 py-2 text-left font-semibold","markdown.td":"min-w-24 border-t border-line px-3 py-2 align-top [&_code]:wrap-anywhere"},Ow={themeID:"basalt",preference:"light",resolved:"light",tokens:Bw,recipes:KS};function Gw({loading:t,disabled:e,size:o,variant:s,...n}){return C("button",{type:"button",...n,disabled:e||t,"aria-busy":t||void 0})}var QS={Button:Gw,Panel:({header:t,actions:e,children:o,...s})=>C("div",s,t,e,o),PageLayout:({title:t,description:e,actions:o,children:s,"aria-label":n,className:l})=>C("section",{"aria-label":n,className:l},C("header",null,C("h1",null,t),o,e&&C("p",null,e)),s),StatusChip:({children:t,title:e})=>C("span",{title:e},t),Markdown:({text:t})=>C("div",null,t),CatalogRow:({name:t,selectLabel:e,onSelect:o,meta:s,description:n,aside:l,actions:a,toggle:y,title:u})=>C("div",null,C(o?"button":"div",o?{type:"button","aria-label":e,title:u,onClick:o}:{title:u},t,s,n),l,a,y&&C("button",{type:"button",role:"switch","aria-checked":y.checked,"aria-label":y.label,disabled:y.disabled,onClick:()=>y.onCheckedChange(!y.checked)},y.label)),Form:(t)=>C("form",t),FormError:({children:t})=>C("p",{role:"alert"},t),Switch:({checked:t,onCheckedChange:e,label:o,...s})=>C("button",{...s,type:"button",role:"switch","aria-checked":t,onClick:()=>e(!t)},o),Select:({groups:t,onValueChange:e,placeholder:o,...s})=>C("select",{...s,onChange:(n)=>e(n.currentTarget.value)},o&&C("option",{value:""},o),t.map((n,l)=>C("optgroup",{key:l,label:n.label??""},n.options.map((a)=>C("option",{key:a.value,value:a.value},a.label))))),Input:(t)=>C("input",t),Textarea:(t)=>C("textarea",t),Code:({code:t,lang:e,className:o})=>C("pre",{className:o,"data-lang":e},C("code",null,t)),CopyButton:({text:t,label:e})=>C("button",{type:"button","aria-label":e??"\u590D\u5236",onClick:()=>void globalThis.navigator?.clipboard?.writeText(typeof t==="function"?t():t)}),useColorScheme:()=>"light",useTheme:()=>Ow,style:(t,...e)=>[KS[t]??t,...e].filter(Boolean).join(" "),cn:(...t)=>t.filter(Boolean).join(" ")},jS=new Proxy(QS,{get(t,e){if(Object.hasOwn(t,e))return Reflect.get(t,e);throw Error(`ui_test does not provide UI capability ${String(e)}; use supported native controls for structural tests and a browser for this capability`)}}),Xd={react:ur,"react-dom":Vr,"react/jsx-runtime":kg,"react/jsx-dev-runtime":Lg,"@basalt/plugin/web":$d,"@basalt/ui":QS};var qS=Promise.resolve();async function Uw(){let t=qS,e=()=>{};return qS=new Promise((o)=>{e=o}),await t,e}function Hw(t){return{window:t,document:t.document,navigator:t.navigator,HTMLElement:t.HTMLElement,HTMLInputElement:t.HTMLInputElement,HTMLTextAreaElement:t.HTMLTextAreaElement,Node:t.Node,Event:t.Event,MouseEvent:t.MouseEvent,getComputedStyle:t.getComputedStyle.bind(t)}}async function Ww(t,e){let o=await Bun.build({entrypoints:["basalt-ui-entry"],target:"browser",format:"esm",throw:!1,plugins:[{name:"basalt-ui-bridge",setup(n){n.onResolve({filter:/.*/},({path:l})=>{if(l==="basalt-ui-entry")return{path:l,namespace:"test-entry"};if(Object.hasOwn(Xd,l))return{path:l,namespace:"test-bridge"};throw Error(`Unsupported ui_test import: ${l}`)}),n.onLoad({filter:/.*/,namespace:"test-entry"},()=>({contents:t,loader:"js"})),n.onLoad({filter:/.*/,namespace:"test-bridge"},({path:l})=>({loader:"js",contents:Object.keys(Xd[l]??{}).map((a,y)=>{let u=`globalThis[${JSON.stringify(e)}][${JSON.stringify(l)}][${JSON.stringify(a)}]`;return`const e${y}=${u};export {e${y} as ${a}};`}).join(`
226
- `)}))}}]}),s=o.outputs[0];if(!o.success||!s)throw Error(o.logs.map((n)=>n.message).join("; ")||"UI bridge build failed");return s.text()}function _w(t,e){if(!(typeof t==="object"&&t!==null&&("id"in t)&&t.id===e&&("apiVersion"in t)&&t.apiVersion===1))throw Error("Web module must export default with matching id and apiVersion: 1")}async function Mg(t,e,o){let s=new xh({settings:{disableJavaScriptEvaluation:!0,disableJavaScriptFileLoading:!0,disableCSSFileLoading:!0,enableFileSystemHttpRequests:!1}}),n=await Uw(),l=`__basalt_ui_${crypto.randomUUID().replaceAll("-","")}`,a={...Hw(s),[l]:Xd},y=new Map(Object.keys(a).map((c)=>[c,Object.getOwnPropertyDescriptor(globalThis,c)])),u;try{for(let[d,g]of Object.entries(a))Object.defineProperty(globalThis,d,{configurable:!0,writable:!0,value:g});u=URL.createObjectURL(new Blob([await Ww(t,l)],{type:"text/javascript"})),An({type:"importing"});let c=await import(u);return An({type:"imported"}),_w(c.default,e),await o(c.default,s)}finally{try{await s.happyDOM.close()}finally{if(u)URL.revokeObjectURL(u);for(let[c,d]of y)if(d)Object.defineProperty(globalThis,c,d);else Reflect.deleteProperty(globalThis,c);n()}}}var Yw=10,$S=1000,XS=200,Kw="button,[role=button]";async function zS(t,e,o,s){let n=Date.now()+e;while(!t()){if(Date.now()>=n)throw Error(o);await Bun.sleep(Yw),await s.settle()}}function Qw(t,e,o){if(t.disabled||t.readOnly)throw Error("Control is not editable");let s=t.tagName==="TEXTAREA"?o.HTMLTextAreaElement.prototype:o.HTMLInputElement.prototype;Object.getOwnPropertyDescriptor(s,"value")?.set?.call(t,e),mt(()=>{t.dispatchEvent(new o.Event("input",{bubbles:!0})),t.dispatchEvent(new o.Event("change",{bubbles:!0}))})}async function jw(t,e){let{inspect:o,calls:s,window:n}=e;if("click"in t){let l=typeof t.click==="string"?o.findByName(Kw,t.click):o.selectOne(t.click.selector);if(o.isDisabled(l))throw Error("Control is disabled");mt(()=>l.click())}else if("type"in t)Qw(o.findByName("input,textarea",t.type.label),t.type.text,n);else if("waitText"in t){let{waitText:l}=t;await zS(()=>o.snapshot(void 0,!1).text.includes(l),t.timeoutMs??$S,`Timed out waiting for ${JSON.stringify(l)}`,e)}else if("waitSelector"in t){let{waitSelector:l}=t;await zS(()=>o.anyVisible(l),t.timeoutMs??$S,`Timed out waiting for selector ${l}`,e)}else if("expectCount"in t){let{selector:l,n:a}=t.expectCount,y=o.count(l);if(!Number.isInteger(a)||a<0||y!==a)throw Error(`Expected ${a} elements, got ${y}`)}else if("snapshot"in t){let l=t.snapshot.depth??10;if(!Number.isInteger(l)||l<0||l>XS)throw Error(`snapshot depth must be 0\u2013${XS}`);return o.outline(o.selectOne(t.snapshot.selector),l)}else if("expectCalls"in t){let{onOpen:l,onClose:a}=t.expectCalls;if(l&&JSON.stringify(l)!==JSON.stringify(s.onOpen))throw Error(`onOpen calls differ: ${JSON.stringify(s.onOpen)}`);if(a!==void 0&&a!==s.onClose)throw Error(`Expected ${a} onClose calls, got ${s.onClose}`)}else if("expectText"in t){let l=t.within?o.selectOne(t.within):void 0;if(!o.snapshot(l,!1).text.includes(t.expectText))throw Error(`Missing text: ${t.expectText}`)}else if("expectValue"in t){let l=o.findByName("input,textarea,select",t.expectValue.label);if(l.value!==t.expectValue.value)throw Error(`Expected value ${JSON.stringify(t.expectValue.value)}, got ${JSON.stringify(l.value)}`)}else throw Error("Unknown UI step")}async function JS(t,e){let o=[];for(let s of t)try{let n=await jw(s,e);await e.settle(),o.push({step:s,ok:!0,snapshot:e.inspect.snapshot(),outline:n})}catch(n){o.push({step:s,ok:!1,snapshot:e.inspect.snapshot(),error:n instanceof Error?n.message:String(n)});break}return o}var qw=()=>({id:"ui-test",title:"",projectID:null,model:"",created:0,updated:0,status:"idle",todos:[],parentID:null,forkThroughSeq:null,kind:"main",archivedAt:null}),ZS=["page","tab","card","sidebar"],tf=(t)=>[t.slot,t.view,t.codeBlock].filter(Boolean).length;async function ef(t,e){if(e.codeBlock){let n=e.codeBlock.toLowerCase(),l=Object.entries(t.codeBlocks??{}).find(([a])=>a.toLowerCase()===n)?.[1];if(!l)throw Error(`Unknown code block: ${e.codeBlock}`);return{view:void 0,codeBlock:n,component:(await l.load()).default}}let o=e.view?t.views?.[e.view]:void 0;if(e.view&&!o)throw Error(`Unknown view: ${e.view}`);if(o&&(!ZS.includes(o.kind)||e.kind&&e.kind!==o.kind))throw Error(`View kind mismatch for ${e.view}: expected ${e.kind??ZS.join("/")}, got ${o.kind}`);let s=o?(await o.load()).default:t.slots?.[e.slot??""];if(!s)throw Error(e.view?`Missing component for view: ${e.view}`:`Unknown slot: ${e.slot}`);return{view:o,codeBlock:void 0,component:s}}function $w(t,e,o,s,n){let l=(y)=>n.onOpen.push(y),a=()=>{n.onClose++};switch(t.kind){case"page":return C(e,{connection:s,onOpen:l});case"tab":return C(e,{connection:s,onClose:a});case"card":return C(e,{connection:s,onOpen:l,sessionID:typeof o.props?.sessionID==="string"?o.props.sessionID:"ui-test",payload:o.props?.payload});case"sidebar":return C(e,{session:qw(),entries:[],...o.props,connection:s})}}function rf(t,e,o,s){return function(){let[l,a]=jr(typeof e.context?.text==="string"?e.context.text:""),[y,u]=jr(Array.isArray(e.context?.attachments)?e.context.attachments:[]),c={disabled:!1,busy:!1,draftKey:"ui-test",...e.context,text:l,setText:a,attachments:y,setAttachments:u},d=C("textarea",{"aria-label":"__basalt_host_draft__",value:l,onInput:(f)=>{let E=Reflect.get(f.currentTarget,"value");if(typeof E==="string")a(E)}}),g=t.view?[$w(t.view,t.component,e,o,s)]:t.codeBlock?[C(t.component,{code:typeof e.props?.code==="string"?e.props.code:"",lang:t.codeBlock,streaming:e.props?.streaming===!0})]:[d,C(t.component,{context:c,connection:o})];return C(qd.Provider,{value:jS},...g)}}var of=1e4;function Xw(t){let e=`ui_test requires id, exactly one of slot, view or codeBlock, and at most ${Dn} steps`;if(!t.id||tf(t)!==1||!Array.isArray(t.steps))throw Error(e);if(t.steps.length>Dn)throw Error(e);for(let o of t.steps){if(!(("waitText"in o)||("waitSelector"in o)))continue;let s=o.timeoutMs??1000;if(!Number.isInteger(s)||s<1||s>cr)throw Error(`wait timeoutMs must be between 1 and ${cr}`)}for(let o of Object.values(t.mockRoutes??{})){let s=o.delayMs??0,n=Number.isInteger(o.status)&&o.status>=100&&o.status<=599,l=Number.isInteger(s)&&s>=0&&s<=of;if(!n||!l)throw Error(`mockRoutes requires HTTP status and delayMs between 0 and ${of}`)}}async function zw(t,e,o){return Xw(o),Mg(t,o.id,async(s,n)=>{if(e){let H=n.document.createElement("style");H.textContent=e,n.document.head.append(H)}let l=await ef(s,o),a={onOpen:[],onClose:0},y=new AbortController,u=Vg(o.mockRoutes,y.signal),c=rf(l,o,u,a),d=n.document.createElement("div");n.document.body.append(d);let g,{createRoot:f}=await import("./chunk-1zj3zvw5.js"),E=f(d,{onUncaughtError:(H)=>{g=H}}),R=async()=>{if(await Bun.sleep(0),mt(()=>{}),g)throw g};try{mt(()=>E.render(C(c))),await R();let H=Dg(d,n),pt=await JS(o.steps,{window:n,inspect:H,calls:a,settle:R});return{ok:pt.every((gt)=>gt.ok),steps:pt,calls:a}}finally{mt(()=>E.unmount()),y.abort()}})}function Jw(t,e){return Mg(t,e,async(o)=>{let s=o.pageNav?.viewID??"page";return{slots:Object.keys(o.slots??{}),views:Object.keys(o.views??{}),codeBlocks:Object.keys(o.codeBlocks??{}).map((n)=>n.toLowerCase()),pageNav:o.pageNav?{viewID:s,kind:o.views?.[s]?.kind}:void 0,themes:Array.isArray(o.themes)?o.themes.map((n)=>n&&typeof n==="object"?n.id:void 0).filter((n)=>typeof n==="string"&&n.length>0):void 0}})}globalThis.onmessage=async(t)=>{let e=t.data;if(e.type==="response")return Fg(e);try{let o=e.input?await zw(e.source,e.css,e.input):await Jw(e.source,e.id);An({type:"done",result:o})}catch(o){An({type:"error",error:o instanceof Error?o.message:String(o)})}};
224
+ `)}[At](){if(this.closed)return;super[At](),this.closed=!0;let t=this[Nn];for(let n of t)if(n[At])n[At]();this[Nn]=[];for(let n of this[Wn])n[At]();this[Wn]=[],this.document[At]();let e=this.document.createElement("html"),o=this.document.createElement("head"),s=this.document.createElement("body");if(e.appendChild(o),e.appendChild(s),this.document[Et](e),this.location[At])this.location[At]();if(this.customElements[At])this.customElements[At]();if(this.history[At])this.history[At]();this[ls].json.clear(),this[ls].css.clear(),this[ls].esm.clear(),this.document[Rr].clear(),this.document[Me]=null,this.document[Ms]=null,this.document[Do]=null,this.document[Tn]=null,this[no]=null,this[Xo]=null,it.removeWindowBrowserFrameRelation(this)}[Eb](){for(let t of[El,vt]){let e=Object.getOwnPropertyDescriptors(t.prototype),o=Object.keys(e);for(let s of o){let n=e[s];if(n.get||n.set)Object.defineProperty(this,s,{...n,get:n.get?.bind(this),set:n.set?.bind(this)});else if(s!=="constructor"&&typeof n.value==="function"&&!n.value.toString().startsWith("class "))Object.defineProperty(this,s,{...n,value:n.value.bind(this)})}}}}import{Script as xw}from"vm";class Pm{static evaluate(t,e){if(!t.window)throw Error('The frame has been destroyed, the "window" property is not set.');return e=typeof e==="string"?new xw(e):e,e.runInContext(t.window)}static async evaluateModule(t,e){if(!t.window)throw Error('The frame has been destroyed, the "window" property is not set.');let o=t.window;if(e?.code){let s=e.url?new URL(e.url,o.location.href):o.location,n=e.code;switch(e?.type||"esm"){case"esm":let l=new Yo(o,s);return await new pn({window:o,url:s,source:n,factory:l}).evaluate();case"json":return await new mm({window:o,url:s,source:n}).evaluate();case"css":return await new am({window:o,url:s,source:n}).evaluate()}}if(e?.url)return await(await new Yo(o,o.location).getModule(e.url,{with:{type:e.type||"esm"}})).evaluate();return{}}}class dh{currentItem={title:"",href:"about:blank",state:null,popState:!1,scrollRestoration:ri.auto,method:"GET",formData:null};items=[this.currentItem];push(t){let e=this.items.indexOf(this.currentItem);if(e!==this.items.length-1)this.items.length=e+1;this.items.push(t),this.currentItem=t}replace(t){let e=this.items.indexOf(this.currentItem);if(e!==this.items.length-1)this.items.length=e+1;if(e===-1)throw Error("Current history item not found");this.currentItem=t,this.items[e]=t}clear(){this.items.length=0,this.currentItem={title:"",href:"about:blank",state:null,popState:!1,scrollRestoration:ri.auto,method:"GET",formData:null},this.items.push(this.currentItem)}}class Am{#t;#e={};#r={};#o=0;#i=[];constructor(t){this.#t=t}assert(t,e,...o){if(!t)this.#t.print({type:Fe.assert,level:mr.error,message:["Assertion failed:",...e?[e,...o]:o],group:this.#i[this.#i.length-1]||null})}clear(){this.#t.clear()}count(t="default"){if(!this.#e[t])this.#e[t]=0;this.#e[t]++,this.#t.print({type:Fe.count,level:mr.info,message:[`${t}: ${this.#e[t]}`],group:this.#i[this.#i.length-1]||null})}countReset(t="default"){delete this.#e[t],this.#t.print({type:Fe.countReset,level:mr.warn,message:[`${t}: 0`],group:this.#i[this.#i.length-1]||null})}debug(t,...e){this.#t.print({type:Fe.debug,level:mr.log,message:t?[t,...e]:e,group:this.#i[this.#i.length-1]||null})}dir(t){this.#t.print({type:Fe.dir,level:mr.log,message:[t],group:this.#i[this.#i.length-1]||null})}dirxml(t){this.#t.print({type:Fe.dirxml,level:mr.log,message:[t],group:this.#i[this.#i.length-1]||null})}error(t,...e){this.#t.print({type:Fe.error,level:mr.error,message:t?[t,...e]:e,group:this.#i[this.#i.length-1]||null})}exception(...t){this.error(...t)}group(t){this.#o++;let e={id:this.#o,label:t||"default",collapsed:!1,parent:this.#i[this.#i.length-1]||null};this.#i.push(e),this.#t.print({type:Fe.group,level:mr.log,message:[t||"default"],group:e})}groupCollapsed(t){this.#o++;let e={id:this.#o,label:t||"default",collapsed:!0,parent:this.#i[this.#i.length-1]||null};this.#i.push(e),this.#t.print({type:Fe.groupCollapsed,level:mr.log,message:[t||"default"],group:e})}groupEnd(){if(this.#i.length===0)return;this.#i.pop()}info(t,...e){this.#t.print({type:Fe.info,level:mr.info,message:t?[t,...e]:e,group:this.#i[this.#i.length-1]||null})}log(t,...e){this.#t.print({type:Fe.log,level:mr.log,message:t?[t,...e]:e,group:this.#i[this.#i.length-1]||null})}profile(){throw Error("Method not implemented.")}profileEnd(){throw Error("Method not implemented.")}table(t){this.#t.print({type:Fe.table,level:mr.log,message:[t],group:this.#i[this.#i.length-1]||null})}time(t="default"){this.#r[t]=performance.now()}timeEnd(t="default"){let e=this.#r[t];if(e){let o=performance.now()-e;this.#t.print({type:Fe.timeEnd,level:mr.info,message:[`${t}: ${o}ms - timer ended`],group:this.#i[this.#i.length-1]||null})}}timeLog(t="default",...e){let o=this.#r[t];if(o){let s=performance.now()-o;this.#t.print({type:Fe.timeLog,level:mr.info,message:[`${t}: ${s}ms`,...e],group:this.#i[this.#i.length-1]||null})}}timeStamp(){throw Error("Method not implemented.")}trace(t,...e){this.#t.print({type:Fe.trace,level:mr.log,message:[...t?[t,...e]:e,Error("stack").stack.replace("Error: stack","")],group:this.#i[this.#i.length-1]||null})}warn(t,...e){this.#t.print({type:Fe.warn,level:mr.warn,message:t?[t,...e]:e,group:this.#i[this.#i.length-1]||null})}}class wm{static getFrames(t){return this.findFrames(t.mainFrame)}static closePage(t){if(t.closed)return Promise.resolve();t.closed=!0;let e=t.context.pages.indexOf(t);if(e!==-1)t.context.pages.splice(e,1);return t.virtualConsolePrinter.close(),fs.destroyFrame(t.mainFrame)}static findFrames(t){let e=[t];for(let o of t.childFrames)e=e.concat(this.findFrames(o));return e}}class bh{#t=new Map;get(t){let e=this.#t.get(t.url);if(e){if(e.expires<Date.now())return this.#t.delete(t.url),null;return e}return null}add(t,e){if(this.#t.delete(t.url),t.headers.get("Cache-Control")?.includes("no-cache"))return null;if(e.status<200||e.status>=300)return null;let o=e.headers.get("Access-Control-Max-Age"),s=e.headers.get("Access-Control-Allow-Origin");if(!o||!s)return null;let n=[];if(e.headers.has("Access-Control-Allow-Methods")){if(e.headers.get("Access-Control-Allow-Methods")!=="*")for(let y of e.headers.get("Access-Control-Allow-Methods").split(","))n.push(y.trim().toUpperCase())}let l={allowOrigin:s,allowMethods:n,expires:Date.now()+parseInt(o)*1000};if(isNaN(l.expires)||l.expires<Date.now())return null;return this.#t.set(t.url,l),l}clear(){this.#t.clear()}}var BS={version:"20.9.0"};var Fi={disableJavaScriptEvaluation:!1,enableJavaScriptEvaluation:!1,disableJavaScriptFileLoading:!1,disableCSSFileLoading:!1,disableIframePageLoading:!1,disableComputedStyleRendering:!1,handleDisabledFileLoadingAsSuccess:!1,disableErrorCapturing:!1,errorCapture:me.tryAndCatch,enableFileSystemHttpRequests:!1,suppressCodeGenerationFromStringsWarning:!1,suppressInsecureJavaScriptEnvironmentWarning:!1,timer:{maxTimeout:-1,maxIntervalTime:-1,maxIntervalIterations:-1,preventTimerLoops:!1},fetch:{disableSameOriginPolicy:!1,disableStrictSSL:!1,interceptor:null,requestHeaders:null,virtualServers:null},module:{resolveNodeModules:null,urlResolver:null,disableCache:!1},navigation:{disableMainFrameNavigation:!1,disableChildFrameNavigation:!1,disableChildPageNavigation:!1,disableFallbackToSetURL:!1,crossOriginPolicy:im.anyOrigin,beforeContentCallback:null},navigator:{userAgent:`Mozilla/5.0 (X11; ${process.platform.charAt(0).toUpperCase()+process.platform.slice(1)+" "+process.arch}) AppleWebKit/537.36 (KHTML, like Gecko) HappyDOM/${BS.version}`,maxTouchPoints:0},device:{prefersColorScheme:"light",prefersReducedMotion:"no-preference",mediaType:"screen",forcedColors:"none"},debug:{traceWaitUntilComplete:-1},viewport:{width:1024,height:768,devicePixelRatio:1}};class gh{static createSettings(t){if(t)this.validate(Fi,t);return{...Fi,...t,navigation:{...Fi.navigation,...t?.navigation},navigator:{...Fi.navigator,...t?.navigator},timer:{...Fi.timer,...t?.timer},fetch:{...Fi.fetch,...t?.fetch},module:{...Fi.module,...t?.module},device:{...Fi.device,...t?.device},debug:{...Fi.debug,...t?.debug},viewport:{...Fi.viewport,...t?.viewport}}}static validate(t,e,o){for(let s of Object.keys(e)){if(t[s]===void 0){let n=o?o+"."+s:s;throw Error(`Unknown browser setting "${n}"`)}if(typeof t[s]==="object"&&!Array.isArray(t[s])&&t[s]!==null){let n=o?o+"."+s:s;if(typeof e[s]!=="object"||Array.isArray(e[s])||e[s]===null)throw Error(`Browser setting "${n}" cannot be null`);this.validate(t[s],e[s],n)}else if((typeof t[s]==="boolean"||typeof t[s]==="number"||typeof t[s]==="string")&&typeof e[s]!==typeof t[s]){if(!(s==="preventTimerLoops"&&typeof e[s]==="object"&&e[s]!==null)){let l=o?o+"."+s:s;throw Error(`Browser setting "${l}" must be of type "${typeof t[s]}"`)}}}}}class Sh{static listenerCount=0;observedWindows=[];uncaughtExceptionListener=null;uncaughtRejectionListener=null;observe(t){if(this.observedWindows.includes(t))throw Error("Browser window is already being observed.");if(this.observedWindows.push(t),this.uncaughtExceptionListener)return;this.uncaughtExceptionListener=(e,o)=>{if(o==="unhandledRejection")return;let s=null;for(let n of this.observedWindows)if(e instanceof n.Error||e instanceof n.DOMException){s=n;break}if(s)s.console.error(e),s.dispatchEvent(new s.ErrorEvent("error",{error:e,message:e.message}));else if(process.listenerCount("uncaughtException")===this.constructor.listenerCount)console.error(e),process.exit(1)},this.uncaughtRejectionListener=(e)=>{let o=null;for(let s of this.observedWindows)if(e instanceof s.Error||e instanceof s.DOMException){o=s;break}if(o)o.console.error(e),o.dispatchEvent(new o.ErrorEvent("error",{error:e,message:e.message}));else if(process.listenerCount("unhandledRejection")===this.constructor.listenerCount)console.error(e),process.exit(1)},this.constructor.listenerCount++,process.on("uncaughtException",this.uncaughtExceptionListener),process.on("unhandledRejection",this.uncaughtRejectionListener)}disconnect(t){let e=this.observedWindows.indexOf(t);if(e===-1)return;if(this.observedWindows.splice(e,1),this.observedWindows.length===0&&this.uncaughtExceptionListener){if(this.constructor.listenerCount--,process.off("uncaughtException",this.uncaughtExceptionListener),this.uncaughtRejectionListener)process.off("unhandledRejection",this.uncaughtRejectionListener);this.uncaughtExceptionListener=null,this.uncaughtRejectionListener=null}}}class fh{childFrames=[];parentFrame=null;page;closed=!1;[Pt]=new Xs(this);[he]={navigation:[]};[ro]=null;[bi]=null;[Ln]=!1;[Oe]=new dh;constructor(t){if(this.page=t,t.context.browser.contexts[0]?.pages[0]?.mainFrame){if(this.window=new this.page.context.browser.windowClass(this),t.context.browser[Jr])t.context.browser[Jr].observe(this.window)}}get content(){if(!this.window)throw Error('The frame has been destroyed, the "window" property is not set.');return this.window.document.documentElement.outerHTML}set content(t){if(!this.window)throw Error('The frame has been destroyed, the "window" property is not set.');this.window.document[Ns]=!0,this.window.document[Ls]=!1,this.window.document.open(),this.window.document.write(t)}get url(){if(!this.window)throw Error('The frame has been destroyed, the "window" property is not set.');return this.window.location.href}set url(t){if(!this.window)throw Error('The frame has been destroyed, the "window" property is not set.');this.window[io][Wr](this,Io.getRelativeURL(this,t).href)}get document(){return this.window?.document??null}async waitUntilComplete(){await Promise.all([this[Pt].waitUntilComplete(),...this.childFrames.map((t)=>t.waitUntilComplete())])}waitForNavigation(){return new Promise((t)=>this[he].navigation.push(t))}abort(){if(!this.childFrames.length)return this[Pt].abort();return new Promise((t,e)=>{Promise.all(this.childFrames.map((o)=>o.abort()).concat([this[Pt].abort()])).then(()=>t()).catch(e)})}evaluate(t){return Pm.evaluate(this,t)}evaluateModule(t){return Pm.evaluateModule(this,t)}goto(t,e){return qr.navigate({windowClass:this.page.context.browser.windowClass,frame:this,url:t,goToOptions:e})}goBack(t){return qr.navigateBack({windowClass:this.page.context.browser.windowClass,frame:this,goToOptions:t})}goForward(t){return qr.navigateForward({windowClass:this.page.context.browser.windowClass,frame:this,goToOptions:t})}goSteps(t,e){return qr.navigateSteps({windowClass:this.page.context.browser.windowClass,frame:this,steps:t,goToOptions:e})}reload(t){return qr.reload({windowClass:this.page.context.browser.windowClass,frame:this,goToOptions:t})}}class Em{virtualConsolePrinter=new Oa;mainFrame;context;console;viewport;closed=!1;constructor(t){this.context=t,this.console=t.browser.console??new Am(this.virtualConsolePrinter),this.mainFrame=new fh(this),this.viewport={width:t.browser.settings.viewport.width,height:t.browser.settings.viewport.height,devicePixelRatio:t.browser.settings.viewport.devicePixelRatio}}get frames(){return wm.getFrames(this)}get content(){return this.mainFrame.content}set content(t){this.mainFrame.content=t}get url(){return this.mainFrame.url}set url(t){this.mainFrame.url=t}close(){return new Promise((t,e)=>{let o=this.context;wm.closePage(this).then(()=>{if(o.pages[0]===this)o.browser.close().then(t).catch(e);else t()}).catch(e)})}waitUntilComplete(){return this.mainFrame.waitUntilComplete()}waitForNavigation(){return this.mainFrame.waitForNavigation()}abort(){return this.mainFrame.abort()}evaluate(t){return this.mainFrame.evaluate(t)}evaluateModule(t){return this.mainFrame.evaluateModule(t)}setViewport(t){let e=Object.assign({},this.viewport);if(Object.assign(this.viewport,t),e.width!==this.viewport.width||e.height!==this.viewport.height||e.devicePixelRatio!==this.viewport.devicePixelRatio)this.mainFrame.window.dispatchEvent(new C("resize"))}goto(t,e){return this.mainFrame.goto(t,e)}goBack(t){return this.mainFrame.goBack(t)}goForward(t){return this.mainFrame.goForward(t)}goSteps(t,e){return this.mainFrame.goSteps(t,e)}reload(t){return this.mainFrame.reload(t)}}class Ph{pages;browser;cookieContainer=new ip;responseCache=new sp;preflightResponseCache=new bh;closed=!1;[Va]=new Map;constructor(t){this.browser=t,this.pages=[],this.pages.push(new Em(this))}async close(){if(this.closed)return;if(this.browser.contexts[0]===this)throw Error("Cannot close the default context. Use `browser.close()` to close the browser instead.");this.closed=!0,await Promise.all(this.pages.slice().map((o)=>o.close()));let t=this.browser,e=t.contexts.indexOf(this);if(e!==-1)t.contexts.splice(e,1);this.pages=[],this.cookieContainer.clearCookies(),this.responseCache.clear(),this.preflightResponseCache.clear()}async waitUntilComplete(){await Promise.all(this.pages.map((t)=>t.waitUntilComplete()))}abort(){return new Promise((t,e)=>{if(!this.pages.length){t();return}Promise.all(this.pages.slice().map((o)=>o.abort())).then(()=>t()).catch((o)=>e(o))})}newPage(){let t=new Em(this);return this.pages.push(t),t}}class Ah{contexts;settings;console;windowClass;[Jr]=null;constructor(t,e){if(this.windowClass=t,this.console=e?.console||null,this.settings=gh.createSettings(e?.settings),this.settings.errorCapture===me.processLevel)this[Jr]=new Sh;this.contexts=[],this.contexts.push(new Ph(this))}get closed(){return this.contexts.length===0}get defaultContext(){if(this.contexts.length===0)throw Error("No default context. The browser has been closed.");return this.contexts[0]}async close(){if(this.contexts.length===0)return;let t=this.contexts;this.contexts=[],await Promise.all(t.map((e)=>e.close()))}async waitUntilComplete(){await Promise.all(this.contexts.map((t)=>t.waitUntilComplete()))}abort(){return new Promise((t,e)=>{if(!this.contexts.length){t();return}Promise.all(this.contexts.slice().map((o)=>o.abort())).then(()=>t()).catch((o)=>e(o))})}newIncognitoContext(){throw Error("Not possible to create a new context on a detached browser.")}newPage(){if(this.contexts.length===0)throw Error("No default context. The browser has been closed.");return this.contexts[0].newPage()}}class wh{#t;constructor(t){this.#t=t}get settings(){return this.#t.page.context.browser.settings}get virtualConsolePrinter(){return this.#t.page.virtualConsolePrinter}waitUntilComplete(){return this.#t.waitUntilComplete()}whenAsyncComplete(){return this.waitUntilComplete()}abort(){return this.#t.abort()}cancelAsync(){return this.abort()}close(){return this.#t.page.close()}setURL(t){this.#t.url=t}setViewport(t){this.#t.page.setViewport(t)}setWindowSize(t){this.setViewport({width:t?.width,height:t?.height})}setInnerWidth(t){this.setViewport({width:t})}setInnerHeight(t){this.setViewport({height:t})}}class Eh extends El{happyDOM;constructor(t){let o=new Ah(El,{console:t?.console,settings:t?.settings}).defaultContext.pages[0],s=o.mainFrame;if(t&&(t.width||t.height||t.innerWidth||t.innerHeight))Object.assign(o.viewport,{width:t.width||t.innerWidth||o.viewport.width,height:t.height||t.innerHeight||o.viewport.height});super(s,{url:t?.url});if(s.window=this,s.page.context.browser[Jr])s.page.context.browser[Jr].observe(this);this.happyDOM=new wh(s)}}import{Buffer as Nw}from"buffer";class xh extends Eh{Array=globalThis.Array;ArrayBuffer=globalThis.ArrayBuffer;Boolean=globalThis.Boolean;Buffer=Nw;DataView=globalThis.DataView;Date=globalThis.Date;Error=globalThis.Error;EvalError=globalThis.EvalError;Float32Array=globalThis.Float32Array;Float64Array=globalThis.Float64Array;Function=globalThis.Function;Infinity=globalThis.Infinity;Int16Array=globalThis.Int16Array;Int32Array=globalThis.Int32Array;Int8Array=globalThis.Int8Array;Intl=globalThis.Intl;JSON=globalThis.JSON;Map=globalThis.Map;Math=globalThis.Math;NaN=globalThis.NaN;Number=globalThis.Number;Object=globalThis.Object;Promise=globalThis.Promise;RangeError=globalThis.RangeError;ReferenceError=globalThis.ReferenceError;RegExp=globalThis.RegExp;Set=globalThis.Set;String=globalThis.String;Symbol=globalThis.Symbol;SyntaxError=globalThis.SyntaxError;TypeError=globalThis.TypeError;URIError=globalThis.URIError;Uint16Array=globalThis.Uint16Array;Uint32Array=globalThis.Uint32Array;Uint8Array=globalThis.Uint8Array;Uint8ClampedArray=globalThis.Uint8ClampedArray;WeakMap=globalThis.WeakMap;WeakSet=globalThis.WeakSet;decodeURI=globalThis.decodeURI;decodeURIComponent=globalThis.decodeURIComponent;encodeURI=globalThis.encodeURI;encodeURIComponent=globalThis.encodeURIComponent;eval=globalThis.eval;escape=globalThis.escape;global=globalThis;isFinite=globalThis.isFinite;isNaN=globalThis.isNaN;parseFloat=globalThis.parseFloat;parseInt=globalThis.parseInt;undefined=globalThis.undefined;unescape=globalThis.unescape;[Oo](t,e){if(e?.filename)return this.eval(`${t}
225
+ //# sourceURL=${e.filename}`);return this.eval(t)}[Tm](){}}class Ng{context;active=!0;revision=0;controller;state={pending:!1,error:null};listeners=new Set;update(t){if(t?.text!==this.context?.text||t?.draftKey!==this.context?.draftKey||t?.busy!==this.context?.busy||t?.disabled!==this.context?.disabled)this.revision++;this.context=t}activate(){this.active=!0}dispose(){this.active=!1,this.controller?.abort(),this.controller=void 0,this.state={...this.state,pending:!1}}subscribe=(t)=>(this.listeners.add(t),()=>this.listeners.delete(t));getSnapshot=()=>this.state;publish(t,e){this.state={pending:t,error:e};for(let o of this.listeners)o()}clearError=()=>this.publish(this.state.pending,null);run=async(t)=>{if(!this.active||this.controller)return;let e=this.context;if(!e||e.busy||e.disabled){this.publish(!1,"\u5F53\u524D\u4E0D\u53EF\u7528\uFF0C\u672A\u6267\u884C");return}let o=this.revision,s=new AbortController;this.controller=s,this.publish(!0,null);try{let n=await t(e.text,s.signal);if(!this.active||s.signal.aborted)return;if(o!==this.revision){this.publish(!0,this.context?.busy||this.context?.disabled?"\u5F53\u524D\u4E0D\u53EF\u7528\uFF0C\u672A\u6267\u884C":"\u8349\u7A3F\u5DF2\u66F4\u6539\uFF0C\u672A\u8986\u76D6\u5F53\u524D\u5185\u5BB9");return}e.setText((l)=>{if(!this.active||s.signal.aborted||o!==this.revision||l!==e.text)return queueMicrotask(()=>{if(this.active&&!s.signal.aborted)this.publish(this.state.pending,this.context?.busy||this.context?.disabled?"\u5F53\u524D\u4E0D\u53EF\u7528\uFF0C\u672A\u6267\u884C":"\u8349\u7A3F\u5DF2\u66F4\u6539\uFF0C\u672A\u8986\u76D6\u5F53\u524D\u5185\u5BB9")}),l;return n})}catch(n){if(this.active&&!s.signal.aborted)this.publish(!0,n instanceof Error?n.message:String(n))}finally{if(this.controller===s){if(this.controller=void 0,this.active)this.publish(!1,this.state.error)}}}}var qd=Vn(null);function OS(){let t=Kn(qd);if(!t)throw Error("Plugin Web UI provider is missing");return t}function Lw(t){let e=Xn(null);if(!e.current)e.current=new Ng;let o=e.current;return o.update(t.context),Qn(()=>(o.activate(),()=>o.dispose()),[o]),{...Jn(o.subscribe,o.getSnapshot,o.getSnapshot),run:o.run,clearError:o.clearError}}function kw({pending:t,disabled:e,...o}){let{Button:s}=OS();return M(s,{...o,type:"button",size:"sm",variant:"ghost",disabled:e||t,loading:t,"aria-busy":t||void 0})}var Mw=Symbol.for("react.fragment");var GS=Mw,US=void 0;var Iw=Symbol.for("react.transitional.element"),Rw=Symbol.for("react.fragment");function HS(t,e,o){var s=null;if(o!==void 0&&(s=""+o),e.key!==void 0&&(s=""+e.key),"key"in e){o={};for(var n in e)n!=="key"&&(o[n]=e[n])}else o=e;return e=o.ref,{$$typeof:Iw,type:t,key:s,ref:e!==void 0?e:null,props:o}}var WS=Rw,_S=HS,YS=HS;var Fw={sans:'ui-sans-serif, system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif',serif:'ui-serif, Georgia, "PingFang SC", "Microsoft YaHei", serif',mono:'ui-monospace, "SF Mono", Menlo, Consolas, monospace'},Vw={bg:"oklch(0.984 0.002 95)",sidebar:"oklch(0.966 0.003 95)",panel:"oklch(1 0 0)",raised:"oklch(0.94 0.004 95)",bubble:"oklch(0.948 0.004 95)",line:"oklch(0.905 0.005 95)",lineStrong:"oklch(0.84 0.006 95)",ink:"oklch(0.22 0.006 250)",dim:"oklch(0.47 0.008 250)",faint:"oklch(0.63 0.008 250)",accent:"oklch(0.53 0.085 172)",accentStrong:"oklch(0.47 0.085 172)",accentInk:"oklch(0.99 0.01 172)",accentSoft:"oklch(0.53 0.085 172 / 0.11)",danger:"oklch(0.55 0.17 27)",dangerFill:"oklch(0.52 0.17 27)",dangerFillHover:"oklch(0.47 0.17 27)",success:"oklch(0.56 0.11 155)",warning:"oklch(0.7 0.14 70)",overlay:"oklch(0.2 0.01 250 / 0.32)",facet:"oklch(0.32 0.012 240)",facetLit:"oklch(0.46 0.012 240)",facetShade:"oklch(0.27 0.01 240)",hex:{bg:"#f9f9f8",panel:"#ffffff",ink:"#1b1f24",dim:"#5b6068",faint:"#878c94",line:"#e3e2dd",lineStrong:"#cfcdc7"},chartPalette:["#2a78d6","#eb6834","#1baf7a","#eda100","#e87ba4","#008300","#4a3aa7","#e34948"],chartSequential:["#cde2fb","#86b6ef","#3987e5","#1c5cab","#0d366b"]},Dw={float:"0 1px 2px oklch(0.2 0.01 250 / 0.05), 0 8px 28px -6px oklch(0.2 0.01 250 / 0.14)",composer:"0 1px 2px oklch(0.2 0.01 250 / 0.04), 0 6px 24px -8px oklch(0.2 0.01 250 / 0.1)"},Bw={scheme:"light",colors:Vw,fonts:Fw,shadows:Dw},KS={"surface.panel":"overflow-hidden rounded-xl border border-line bg-panel text-ink","surface.card":"rounded-2xl border border-line bg-panel text-ink","surface.subtle":"rounded-xl border border-line/60 bg-raised/25","surface.interactive":"overflow-hidden rounded-xl border border-line bg-panel/70 transition-colors hover:border-line-strong hover:bg-panel","surface.dock":"relative flex flex-col overflow-hidden rounded-[20px] border border-line bg-panel outline-none","surface.empty":"py-8 text-center text-xs text-faint","surface.emptyDashed":"flex flex-col items-center gap-3 rounded-2xl border border-dashed border-line-strong/70 px-6 py-16 text-center","surface.floating":"z-50 min-w-40 overflow-hidden rounded-xl border border-line bg-panel p-1 text-ink shadow-float outline-none","surface.floatingItem":"relative flex min-h-8 w-full cursor-default items-center gap-2.5 rounded-lg px-2 py-1.5 text-left text-[13.5px] outline-none select-none","surface.floatingLabel":"px-2 pt-1.5 pb-1 text-xs font-medium text-faint","surface.floatingSeparator":"-mx-1 my-1 h-px bg-line","surface.toolbarFloating":"flex items-center gap-0.5 rounded-lg border border-line/70 bg-panel/85 p-0.5 shadow-xs backdrop-blur-sm","surface.tooltip":"z-50 flex items-center gap-1.5 rounded-md bg-ink px-2 py-1 text-xs font-medium text-bg","surface.dialog":"fixed z-50 flex max-h-[min(92dvh,48rem)] w-full flex-col border border-line bg-panel shadow-float outline-none","surface.overlay":"fixed inset-0 z-40 bg-overlay backdrop-blur-[2px]","toast.item":"pointer-events-auto flex w-full items-start gap-2.5 rounded-xl border border-line bg-panel px-3.5 py-2.5 text-[13.5px] leading-5 text-ink shadow-float outline-none","toast.danger":"border-danger/35","button.base":"relative inline-flex shrink-0 items-center justify-center gap-1.5 font-medium whitespace-nowrap select-none","button.primary":"bg-accent text-accent-ink hover:bg-accent-strong","button.secondary":"border border-line bg-panel text-ink hover:border-line-strong hover:bg-raised/60","button.ghost":"text-dim hover:bg-raised hover:text-ink","button.danger":"bg-danger-fill text-white hover:bg-danger-fill-hover","button.dangerGhost":"text-danger hover:bg-danger/10","button.inverse":"bg-ink text-bg hover:bg-ink/85","control.input":"w-full rounded-[10px] border border-line bg-bg px-3 text-sm text-ink outline-none placeholder:text-faint","control.chipTrigger":"inline-flex h-8 max-w-full min-w-0 items-center gap-1.5 rounded-full border border-line bg-panel px-3 text-xs text-dim shadow-xs select-none","control.fieldTrigger":"inline-flex h-9 w-full min-w-0 items-center gap-2 rounded-[10px] border border-line bg-bg px-3 text-sm text-ink select-none","control.segmented":"relative inline-flex rounded-xl bg-raised p-1","control.segmentedPill":"pointer-events-none absolute top-0 left-0 rounded-lg bg-panel opacity-0 shadow-xs will-change-transform","control.switch":"group/switch relative inline-flex h-5.5 w-9.5 shrink-0 items-center rounded-full p-0.5","control.switchThumb":"block h-4.5 w-4.5 rounded-full bg-white","control.kbd":"inline-flex h-4.5 min-w-4.5 items-center justify-center rounded border border-line bg-raised px-1","control.badge":"inline-flex items-center rounded-md bg-raised px-1.5 py-0.5 text-[10.5px] leading-none font-medium text-faint","control.badgeAccent":"inline-flex shrink-0 items-center rounded-md bg-accent-soft px-1.5 py-0.5 text-[11px] leading-none font-medium text-accent","control.iconCircle":"group relative flex size-7 items-center justify-center rounded-full border border-line bg-raised/40 text-dim","command.inputWrap":"flex shrink-0 items-center gap-2 border-b border-line px-3","command.input":"h-11 min-w-0 flex-1 bg-transparent text-[14px] outline-none placeholder:text-faint","command.group":"text-xs font-medium text-faint","command.row":"relative flex w-full cursor-default gap-3 rounded-lg px-2.5 py-2 text-left outline-none select-none","code.base":"overflow-x-auto font-mono text-[12.5px] leading-[1.65]","code.block":"group/code my-4 font-sans not-italic first:mt-0 last:mb-0","page.container":"mx-auto max-w-3xl px-4 pt-6 pb-16 sm:px-6 sm:pt-10","page.title":"min-w-0 flex-1 font-serif text-[1.75rem] leading-tight tracking-[-0.015em]","page.description":"mb-8 text-sm text-dim","workspace.header":"flex h-12 shrink-0 items-center gap-2 border-b border-line/60 px-3","settings.groupTitle":"text-[13px] font-medium text-dim","settings.groupDesc":"mt-0.5 text-xs text-faint","settings.groupBox":"divide-y divide-line overflow-hidden rounded-2xl border border-line bg-panel","settings.row":"flex flex-wrap items-center justify-between gap-4 p-4","settings.rowTitle":"text-sm font-medium text-ink","settings.rowDesc":"mt-0.5 text-xs leading-5 break-words text-dim","status.base":"inline-flex shrink-0 items-center gap-1.5 rounded-full px-2 py-1 text-[11px] leading-none font-medium","status.success":"bg-success/10 text-success","status.warning":"bg-warning/10 text-warning","status.danger":"bg-danger/10 text-danger","status.neutral":"bg-raised text-dim","callout.base":"flex items-start gap-2.5 rounded-xl border px-3.5 py-2.5 text-[13.5px] leading-5","callout.info":"border-line bg-raised/40 text-dim","callout.danger":"border-danger/25 bg-danger/6 text-danger","chat.banner":"flex shrink-0 flex-wrap items-center justify-between gap-2 border-b border-line bg-raised/45 px-4 py-2 text-xs text-dim","chat.dockBanner":"flex shrink-0 flex-wrap items-center justify-between gap-2 rounded-[20px] border border-line bg-raised/55 px-4 py-3 text-xs text-dim","chat.userBubble":"rounded-[20px] rounded-br-md bg-bubble px-4 py-2.5 text-[14.5px] leading-[1.6] text-ink break-words whitespace-pre-wrap","chat.attachmentCard":"flex h-8 items-center gap-1.5 rounded-xl border border-line bg-panel px-2.5 text-xs text-dim","chat.prose":"font-serif text-[14.5px] leading-[1.78] tracking-[0.005em] break-words text-ink/84","chat.metaBadge":"inline-flex items-center gap-1 rounded-md border border-line/60 bg-raised/60 px-1.5 py-0.5","chat.stepRow":"group/collapsible -mx-2 flex w-[calc(100%+1rem)] items-center gap-2 rounded-lg px-2 py-1.5","chat.timelineRow":"group/collapsible -mx-2 flex w-[calc(100%+1rem)] items-center gap-2 rounded-lg px-2 py-1","chat.thinkingBody":"mt-1.5 mb-2.5 font-serif text-[13.5px] leading-[1.65] text-dim italic","chat.toolOutput":"max-h-80 overflow-auto px-4 py-3 font-mono text-[12.5px] leading-[1.65] whitespace-pre-wrap break-words","chat.diffAdd":"bg-success/10 text-success","chat.diffRemove":"bg-danger/9 text-danger","chat.foldPill":"group/fold flex cursor-pointer select-none items-center gap-2 rounded-full border border-line/70 bg-panel/90 px-3.5 py-1 text-xs text-faint","chat.scrollBottomBtn":"flex h-8 items-center gap-1.5 rounded-full border border-line bg-panel/95 px-3 text-xs font-medium text-dim shadow-float","search.highlight":"rounded-sm bg-accent-soft px-0.5 font-medium text-ink","search.filterChip":"inline-flex h-6 items-center gap-1 rounded-md border border-line bg-panel px-2 text-xs text-dim","search.filterChipActive":"inline-flex h-6 items-center gap-1 rounded-md border border-accent/35 bg-accent-soft pl-2 pr-1 text-xs font-medium text-accent","composer.box":"group/composer relative min-w-0 rounded-[20px] border border-line bg-panel","composer.input":"relative block min-h-13 w-full resize-none bg-transparent px-4 pt-3.5 pb-1.5 text-[15px] leading-6","composer.attachment":"group/att flex h-9 items-center gap-2 rounded-xl border border-line bg-raised/60 pr-1.5 pl-2.5 text-xs","sidebar.shell":"flex h-full flex-col bg-sidebar","sidebar.drawer":"fixed inset-y-0 left-0 z-0 flex w-[min(86vw,24rem)] flex-col bg-sidebar outline-none","sidebar.rightShell":"flex h-full w-full flex-col border-l border-line bg-sidebar","sidebar.rightDrawer":"fixed inset-y-0 right-0 z-50 flex w-[min(24rem,90vw)] flex-col border-l border-line bg-sidebar shadow-float outline-none","sidebar.navItem":"group flex h-9 w-full items-center gap-2.5 rounded-lg px-2 text-left text-sm select-none","sidebar.sectionTitle":"flex-1 text-xs font-medium text-faint","sidebar.hoverPill":"pointer-events-none absolute top-0 left-0 rounded-lg bg-raised/65 opacity-0","sidebar.activePill":"pointer-events-none absolute top-0 left-0 rounded-lg bg-raised opacity-0","markdown.p":"my-4 first:mt-0 last:mb-0","markdown.strong":"font-semibold text-ink","markdown.a":"font-medium text-accent underline","markdown.fileChip":"inline-flex items-baseline gap-1 rounded-md bg-raised/85 px-[0.42em] py-[0.08em] font-mono","markdown.h1":"mt-6 mb-2.5 text-[1.28em] leading-snug font-semibold text-ink first:mt-0","markdown.h2":"mt-6 mb-2.5 text-[1.16em] leading-snug font-semibold text-ink first:mt-0","markdown.h3":"mt-5.5 mb-2 text-[1.06em] font-semibold text-ink first:mt-0","markdown.h4":"mt-4.5 mb-1.5 font-semibold text-ink first:mt-0","markdown.ul":"mt-1.5 mb-5 list-disc pl-[1.5em] marker:text-faint first:mt-0 last:mb-0","markdown.ol":"mt-1.5 mb-5 list-decimal pl-[1.6em] marker:text-[0.9em] marker:text-faint first:mt-0 last:mb-0","markdown.li":"my-2 pl-1","markdown.blockquote":"my-3.5 border-l-[3px] border-line-strong pl-3.5 text-dim italic","markdown.hr":"my-5 border-line","markdown.inlineCode":"mx-[0.18em] rounded-md bg-raised/85 px-[0.38em] py-[0.12em] font-mono text-[0.84em] text-ink/95 break-words","markdown.details":"my-3.5 overflow-hidden rounded-xl border border-line bg-raised/25 not-italic first:mt-0 last:mb-0","markdown.detailsTrigger":"group/collapsible flex w-full cursor-pointer items-center gap-2 px-3.5 py-2.5 text-left font-sans text-[13.5px] leading-snug font-medium text-ink","markdown.detailsContent":"border-t border-line px-3.5 py-3","markdown.imageButton":"my-3 block cursor-zoom-in overflow-hidden rounded-xl border border-line bg-panel text-left","markdown.tableWrap":"my-4 overflow-x-auto rounded-xl border border-line font-sans not-italic first:mt-0 last:mb-0","markdown.table":"w-full border-collapse text-[13.5px]","markdown.thead":"bg-raised/50","markdown.th":"min-w-24 border-b border-line px-3 py-2 text-left font-semibold","markdown.td":"min-w-24 border-t border-line px-3 py-2 align-top [&_code]:wrap-anywhere"},Ow={themeID:"basalt",preference:"light",resolved:"light",tokens:Bw,recipes:KS};function Gw({loading:t,disabled:e,size:o,variant:s,...n}){return M("button",{type:"button",...n,disabled:e||t,"aria-busy":t||void 0})}var QS={Button:Gw,Panel:({header:t,actions:e,children:o,...s})=>M("div",s,t,e,o),ScrollArea:({as:t="div",viewportClassName:e,viewportRef:o,children:s,...n})=>M(t,n,M("div",{className:e,ref:o},s)),PageLayout:({title:t,description:e,actions:o,children:s,"aria-label":n,className:l})=>M("section",{"aria-label":n,className:l},M("header",null,M("h1",null,t),o,e&&M("p",null,e)),s),StatusChip:({children:t,title:e})=>M("span",{title:e},t),Markdown:({text:t})=>M("div",null,t),CatalogRow:({name:t,selectLabel:e,onSelect:o,meta:s,description:n,aside:l,actions:a,toggle:y,title:u})=>M("div",null,M(o?"button":"div",o?{type:"button","aria-label":e,title:u,onClick:o}:{title:u},t,s,n),l,a,y&&M("button",{type:"button",role:"switch","aria-checked":y.checked,"aria-label":y.label,disabled:y.disabled,onClick:()=>y.onCheckedChange(!y.checked)},y.label)),Form:(t)=>M("form",t),FormError:({children:t})=>M("p",{role:"alert"},t),Switch:({checked:t,onCheckedChange:e,label:o,...s})=>M("button",{...s,type:"button",role:"switch","aria-checked":t,onClick:()=>e(!t)},o),Select:({groups:t,onValueChange:e,placeholder:o,...s})=>M("select",{...s,onChange:(n)=>e(n.currentTarget.value)},o&&M("option",{value:""},o),t.map((n,l)=>M("optgroup",{key:l,label:n.label??""},n.options.map((a)=>M("option",{key:a.value,value:a.value},a.label))))),Input:(t)=>M("input",t),Textarea:(t)=>M("textarea",t),Code:({code:t,lang:e,className:o})=>M("pre",{className:o,"data-lang":e},M("code",null,t)),CopyButton:({text:t,label:e})=>M("button",{type:"button","aria-label":e??"\u590D\u5236",onClick:()=>void globalThis.navigator?.clipboard?.writeText(typeof t==="function"?t():t)}),useColorScheme:()=>"light",useTheme:()=>Ow,style:(t,...e)=>[KS[t]??t,...e].filter(Boolean).join(" "),cn:(...t)=>t.filter(Boolean).join(" ")},jS=new Proxy(QS,{get(t,e){if(Object.hasOwn(t,e))return Reflect.get(t,e);throw Error(`ui_test does not provide UI capability ${String(e)}; use supported native controls for structural tests and a browser for this capability`)}}),Xd={react:gr,"react-dom":tn,"react/jsx-runtime":kg,"react/jsx-dev-runtime":Lg,"@basalt/plugin/web":$d,"@basalt/ui":QS};var qS=Promise.resolve();async function Uw(){let t=qS,e=()=>{};return qS=new Promise((o)=>{e=o}),await t,e}function Hw(t){return{window:t,document:t.document,navigator:t.navigator,HTMLElement:t.HTMLElement,HTMLInputElement:t.HTMLInputElement,HTMLTextAreaElement:t.HTMLTextAreaElement,Node:t.Node,Event:t.Event,MouseEvent:t.MouseEvent,getComputedStyle:t.getComputedStyle.bind(t)}}async function Ww(t,e){let o=await Bun.build({entrypoints:["basalt-ui-entry"],target:"browser",format:"esm",throw:!1,plugins:[{name:"basalt-ui-bridge",setup(n){n.onResolve({filter:/.*/},({path:l})=>{if(l==="basalt-ui-entry")return{path:l,namespace:"test-entry"};if(Object.hasOwn(Xd,l))return{path:l,namespace:"test-bridge"};throw Error(`Unsupported ui_test import: ${l}`)}),n.onLoad({filter:/.*/,namespace:"test-entry"},()=>({contents:t,loader:"js"})),n.onLoad({filter:/.*/,namespace:"test-bridge"},({path:l})=>({loader:"js",contents:Object.keys(Xd[l]??{}).map((a,y)=>{let u=`globalThis[${JSON.stringify(e)}][${JSON.stringify(l)}][${JSON.stringify(a)}]`;return`const e${y}=${u};export {e${y} as ${a}};`}).join(`
226
+ `)}))}}]}),s=o.outputs[0];if(!o.success||!s)throw Error(o.logs.map((n)=>n.message).join("; ")||"UI bridge build failed");return s.text()}function _w(t,e){if(!(typeof t==="object"&&t!==null&&("id"in t)&&t.id===e&&("apiVersion"in t)&&t.apiVersion===1))throw Error("Web module must export default with matching id and apiVersion: 1")}async function Mg(t,e,o){let s=new xh({settings:{disableJavaScriptEvaluation:!0,disableJavaScriptFileLoading:!0,disableCSSFileLoading:!0,enableFileSystemHttpRequests:!1}}),n=await Uw(),l=`__basalt_ui_${crypto.randomUUID().replaceAll("-","")}`,a={...Hw(s),[l]:Xd},y=new Map(Object.keys(a).map((c)=>[c,Object.getOwnPropertyDescriptor(globalThis,c)])),u;try{for(let[d,g]of Object.entries(a))Object.defineProperty(globalThis,d,{configurable:!0,writable:!0,value:g});u=URL.createObjectURL(new Blob([await Ww(t,l)],{type:"text/javascript"})),An({type:"importing"});let c=await import(u);return An({type:"imported"}),_w(c.default,e),await o(c.default,s)}finally{try{await s.happyDOM.close()}finally{if(u)URL.revokeObjectURL(u);for(let[c,d]of y)if(d)Object.defineProperty(globalThis,c,d);else Reflect.deleteProperty(globalThis,c);n()}}}var Yw=10,$S=1000,XS=200,Kw="button,[role=button]";async function zS(t,e,o,s){let n=Date.now()+e;while(!t()){if(Date.now()>=n)throw Error(o);await Bun.sleep(Yw),await s.settle()}}function Qw(t,e,o){if(t.disabled||t.readOnly)throw Error("Control is not editable");let s=t.tagName==="TEXTAREA"?o.HTMLTextAreaElement.prototype:o.HTMLInputElement.prototype;Object.getOwnPropertyDescriptor(s,"value")?.set?.call(t,e),gt(()=>{t.dispatchEvent(new o.Event("input",{bubbles:!0})),t.dispatchEvent(new o.Event("change",{bubbles:!0}))})}async function jw(t,e){let{inspect:o,calls:s,window:n}=e;if("click"in t){let l=typeof t.click==="string"?o.findByName(Kw,t.click):o.selectOne(t.click.selector);if(o.isDisabled(l))throw Error("Control is disabled");gt(()=>l.click())}else if("type"in t)Qw(o.findByName("input,textarea",t.type.label),t.type.text,n);else if("waitText"in t){let{waitText:l}=t;await zS(()=>o.snapshot(void 0,!1).text.includes(l),t.timeoutMs??$S,`Timed out waiting for ${JSON.stringify(l)}`,e)}else if("waitSelector"in t){let{waitSelector:l}=t;await zS(()=>o.anyVisible(l),t.timeoutMs??$S,`Timed out waiting for selector ${l}`,e)}else if("expectCount"in t){let{selector:l,n:a}=t.expectCount,y=o.count(l);if(!Number.isInteger(a)||a<0||y!==a)throw Error(`Expected ${a} elements, got ${y}`)}else if("snapshot"in t){let l=t.snapshot.depth??10;if(!Number.isInteger(l)||l<0||l>XS)throw Error(`snapshot depth must be 0\u2013${XS}`);return o.outline(o.selectOne(t.snapshot.selector),l)}else if("expectCalls"in t){let{onOpen:l,onClose:a}=t.expectCalls;if(l&&JSON.stringify(l)!==JSON.stringify(s.onOpen))throw Error(`onOpen calls differ: ${JSON.stringify(s.onOpen)}`);if(a!==void 0&&a!==s.onClose)throw Error(`Expected ${a} onClose calls, got ${s.onClose}`)}else if("expectText"in t){let l=t.within?o.selectOne(t.within):void 0;if(!o.snapshot(l,!1).text.includes(t.expectText))throw Error(`Missing text: ${t.expectText}`)}else if("expectValue"in t){let l=o.findByName("input,textarea,select",t.expectValue.label);if(l.value!==t.expectValue.value)throw Error(`Expected value ${JSON.stringify(t.expectValue.value)}, got ${JSON.stringify(l.value)}`)}else throw Error("Unknown UI step")}async function JS(t,e){let o=[];for(let s of t)try{let n=await jw(s,e);await e.settle(),o.push({step:s,ok:!0,snapshot:e.inspect.snapshot(),outline:n})}catch(n){o.push({step:s,ok:!1,snapshot:e.inspect.snapshot(),error:n instanceof Error?n.message:String(n)});break}return o}var qw=()=>({id:"ui-test",title:"",projectID:null,model:"",created:0,updated:0,status:"idle",todos:[],parentID:null,forkThroughSeq:null,kind:"main",archivedAt:null}),ZS=["page","tab","card","sidebar"],tf=(t)=>[t.slot,t.view,t.codeBlock].filter(Boolean).length;async function ef(t,e){if(e.codeBlock){let n=e.codeBlock.toLowerCase(),l=Object.entries(t.codeBlocks??{}).find(([a])=>a.toLowerCase()===n)?.[1];if(!l)throw Error(`Unknown code block: ${e.codeBlock}`);return{view:void 0,codeBlock:n,component:(await l.load()).default}}let o=e.view?t.views?.[e.view]:void 0;if(e.view&&!o)throw Error(`Unknown view: ${e.view}`);if(o&&(!ZS.includes(o.kind)||e.kind&&e.kind!==o.kind))throw Error(`View kind mismatch for ${e.view}: expected ${e.kind??ZS.join("/")}, got ${o.kind}`);let s=o?(await o.load()).default:t.slots?.[e.slot??""];if(!s)throw Error(e.view?`Missing component for view: ${e.view}`:`Unknown slot: ${e.slot}`);return{view:o,codeBlock:void 0,component:s}}function $w(t,e,o,s,n){let l=(y)=>n.onOpen.push(y),a=()=>{n.onClose++};switch(t.kind){case"page":return M(e,{connection:s,onOpen:l});case"tab":return M(e,{connection:s,onClose:a});case"card":return M(e,{connection:s,onOpen:l,sessionID:typeof o.props?.sessionID==="string"?o.props.sessionID:"ui-test",payload:o.props?.payload});case"sidebar":return M(e,{session:qw(),entries:[],...o.props,connection:s})}}function rf(t,e,o,s){return function(){let[l,a]=en(typeof e.context?.text==="string"?e.context.text:""),[y,u]=en(Array.isArray(e.context?.attachments)?e.context.attachments:[]),c={disabled:!1,busy:!1,draftKey:"ui-test",...e.context,text:l,setText:a,attachments:y,setAttachments:u},d=M("textarea",{"aria-label":"__basalt_host_draft__",value:l,onInput:(f)=>{let E=Reflect.get(f.currentTarget,"value");if(typeof E==="string")a(E)}}),g=t.view?[$w(t.view,t.component,e,o,s)]:t.codeBlock?[M(t.component,{code:typeof e.props?.code==="string"?e.props.code:"",lang:t.codeBlock,streaming:e.props?.streaming===!0})]:[d,M(t.component,{context:c,connection:o})];return M(qd.Provider,{value:jS},...g)}}var of=1e4;function Xw(t){let e=`ui_test requires id, exactly one of slot, view or codeBlock, and at most ${jn} steps`;if(!t.id||tf(t)!==1||!Array.isArray(t.steps))throw Error(e);if(t.steps.length>jn)throw Error(e);for(let o of t.steps){if(!(("waitText"in o)||("waitSelector"in o)))continue;let s=o.timeoutMs??1000;if(!Number.isInteger(s)||s<1||s>fr)throw Error(`wait timeoutMs must be between 1 and ${fr}`)}for(let o of Object.values(t.mockRoutes??{})){let s=o.delayMs??0,n=Number.isInteger(o.status)&&o.status>=100&&o.status<=599,l=Number.isInteger(s)&&s>=0&&s<=of;if(!n||!l)throw Error(`mockRoutes requires HTTP status and delayMs between 0 and ${of}`)}}async function zw(t,e,o){return Xw(o),Mg(t,o.id,async(s,n)=>{if(e){let H=n.document.createElement("style");H.textContent=e,n.document.head.append(H)}let l=await ef(s,o),a={onOpen:[],onClose:0},y=new AbortController,u=Vg(o.mockRoutes,y.signal),c=rf(l,o,u,a),d=n.document.createElement("div");n.document.body.append(d);let g,{createRoot:f}=await import("./chunk-4k9t9jvx.js"),E=f(d,{onUncaughtError:(H)=>{g=H}}),R=async()=>{if(await Bun.sleep(0),gt(()=>{}),g)throw g};try{gt(()=>E.render(M(c))),await R();let H=Dg(d,n),yt=await JS(o.steps,{window:n,inspect:H,calls:a,settle:R});return{ok:yt.every((bt)=>bt.ok),steps:yt,calls:a}}finally{gt(()=>E.unmount()),y.abort()}})}function Jw(t,e){return Mg(t,e,async(o)=>{let s=o.pageNav?.viewID??"page";return{slots:Object.keys(o.slots??{}),views:Object.keys(o.views??{}),codeBlocks:Object.keys(o.codeBlocks??{}).map((n)=>n.toLowerCase()),pageNav:o.pageNav?{viewID:s,kind:o.views?.[s]?.kind}:void 0,themes:Array.isArray(o.themes)?o.themes.map((n)=>n&&typeof n==="object"?n.id:void 0).filter((n)=>typeof n==="string"&&n.length>0):void 0}})}globalThis.onmessage=async(t)=>{let e=t.data;if(e.type==="response")return Fg(e);try{let o=e.input?await zw(e.source,e.css,e.input):await Jw(e.source,e.id);An({type:"done",result:o})}catch(o){An({type:"error",error:o instanceof Error?o.message:String(o)})}};