@unchainedshop/admin-ui 5.0.0-alpha.7 → 5.0.0-alpha.9

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 (281) hide show
  1. package/dist/chunk-2ARWAOZW.js +17 -0
  2. package/dist/{chunk-7PPOGX7R.js → chunk-6ZZIMVID.js} +36 -3
  3. package/dist/{chunk-KCN7DDPH.js → chunk-A3WBMBUF.js} +3 -2
  4. package/dist/{chunk-QNLGYFV7.js → chunk-IYKPRAWC.js} +4 -0
  5. package/dist/{chunk-F2TCVEQX.js → chunk-QVKXUZEC.js} +1 -1
  6. package/dist/{chunk-MSPWYMDY.js → chunk-SDA2A6TP.js} +1 -1
  7. package/dist/{chunk-4VNS5WPM.js → chunk-WPLOTFGW.js} +7 -8
  8. package/dist/components/ui/form/ChoicesField.d.ts.map +1 -1
  9. package/dist/components/ui/index.d.ts +2 -0
  10. package/dist/components/ui/index.d.ts.map +1 -1
  11. package/dist/form.js +377 -314
  12. package/dist/gql/operation-types.d.ts +20 -0
  13. package/dist/gql/operation-types.d.ts.map +1 -1
  14. package/dist/gql/schema-types.d.ts +1 -0
  15. package/dist/gql/schema-types.d.ts.map +1 -1
  16. package/dist/hooks.js +2 -3
  17. package/dist/modal.js +4 -3
  18. package/dist/modules/accounts.js +1 -1
  19. package/dist/modules/assortment.js +1 -1
  20. package/dist/modules/common/components/MediaAvatar.d.ts +6 -0
  21. package/dist/modules/common/components/MediaAvatar.d.ts.map +1 -0
  22. package/dist/modules/common/components/Table.d.ts +25 -0
  23. package/dist/modules/common/components/Table.d.ts.map +1 -0
  24. package/dist/modules/common/components/TableCell.d.ts +12 -0
  25. package/dist/modules/common/components/TableCell.d.ts.map +1 -0
  26. package/dist/modules/common/components/TableRow.d.ts +10 -0
  27. package/dist/modules/common/components/TableRow.d.ts.map +1 -0
  28. package/dist/modules/country.js +1 -1
  29. package/dist/modules/currency.js +1 -1
  30. package/dist/modules/delivery-provider.js +1 -1
  31. package/dist/modules/enrollment.js +1 -1
  32. package/dist/modules/event.js +1 -1
  33. package/dist/modules/filter.js +1 -1
  34. package/dist/modules/language.js +1 -1
  35. package/dist/modules/order.js +1 -1
  36. package/dist/modules/payment-providers.js +1 -1
  37. package/dist/modules/product-review.js +1 -1
  38. package/dist/modules/product.js +2 -2
  39. package/dist/modules/quotation.js +1 -1
  40. package/dist/modules/token.js +2 -2
  41. package/dist/modules/warehousing-providers.js +1 -1
  42. package/dist/modules/work.js +6 -10
  43. package/dist/plugins.js +1 -1
  44. package/dist/providers.js +4 -3
  45. package/dist/shims/admin-ui-plugins.js +1 -1
  46. package/dist/shims/apollo-client-react.js +1 -1
  47. package/dist/shims/apollo-client.js +1 -1
  48. package/dist/shims/next-head.js +1 -1
  49. package/dist/shims/next-image.js +1 -1
  50. package/dist/shims/next-link.js +1 -1
  51. package/dist/shims/next-router.js +1 -1
  52. package/dist/shims/react-dom-client.js +1 -1
  53. package/dist/shims/react-dom.js +1 -1
  54. package/dist/shims/react-hook-form.js +1 -1
  55. package/dist/shims/react-intl.js +1 -1
  56. package/dist/shims/react-jsx-runtime.js +1 -1
  57. package/dist/shims/react-toastify.js +1 -1
  58. package/dist/shims/react.js +1 -1
  59. package/dist/theme.js +1 -1
  60. package/dist/ui.js +2434 -279
  61. package/out/403/index.html +2 -2
  62. package/out/404/index.html +2 -2
  63. package/out/404.html +2 -2
  64. package/out/423/index.html +2 -2
  65. package/out/500/index.html +2 -2
  66. package/out/_next/static/chunks/{2l4pfo_tsvn5w.js → 065x9wl2mga3m.js} +2 -2
  67. package/out/_next/static/chunks/{3l1zucp3a411p.js → 07evy5u8ldd1y.js} +2 -2
  68. package/out/_next/static/chunks/{2cmaw01_r48ot.js → 0_o5motvr7gdv.js} +7 -7
  69. package/out/_next/static/chunks/{13__7-sf28ub5.js → 0b28h3157pjxr.js} +2 -2
  70. package/out/_next/static/chunks/{1r7dh_p70r7o8.js → 0bd_--7-52ko6.js} +3 -3
  71. package/out/_next/static/chunks/{2e0dz59httb-e.js → 0bg4_y1qh5y5h.js} +4 -0
  72. package/out/_next/static/chunks/{2d1zehr8zc3vb.js → 0e7hhok2eawc3.js} +2 -2
  73. package/out/_next/static/chunks/{0qq_lp3pk8bjf.js → 0el-98_f_r8ex.js} +4 -4
  74. package/out/_next/static/chunks/{0-cyinqk2ne8t.js → 0g2igd8sj5-gg.js} +3 -3
  75. package/out/_next/static/chunks/{0qh0vqpui2alf.js → 0gx9t6j5kx_ho.js} +2 -2
  76. package/out/_next/static/chunks/{3ulbhhqw8rxd8.js → 0iebz0rtddbw8.js} +3 -3
  77. package/out/_next/static/chunks/0iy11ws57hzzr.js +99 -0
  78. package/out/_next/static/chunks/{1fvr9k_o63j_m.js → 0l4eldqr95f75.js} +3 -3
  79. package/out/_next/static/chunks/{3idwjqiel9n9v.js → 0ld6wd2it3xix.js} +5 -5
  80. package/out/_next/static/chunks/{3wy5jhrulhwb9.js → 0lzvfs3koqtzr.js} +3 -3
  81. package/out/_next/static/chunks/{0kwf2vel2xmdi.js → 0pgpevl26rrte.js} +3 -3
  82. package/out/_next/static/chunks/0r5wwinf72z4g.js +1 -0
  83. package/out/_next/static/chunks/{3m2yam5_cs1h7.js → 0s165pqd53i2e.js} +3 -3
  84. package/out/_next/static/chunks/{3v38tvcona4gy.js → 0v0928tdjepyk.js} +2 -2
  85. package/out/_next/static/chunks/{1qwid0d89bzpw.js → 0x97pf4va0tdj.js} +3 -3
  86. package/out/_next/static/chunks/{0fv1w56e25gt5.js → 10u71-qve349q.js} +3 -3
  87. package/out/_next/static/chunks/{1imv5a-ymrj2t.js → 10vpdjjvq7u53.js} +3 -3
  88. package/out/_next/static/chunks/{355nca7if7l9n.js → 13pcz259h-_kj.js} +2 -2
  89. package/out/_next/static/chunks/{0dewly3vo-mcq.js → 1a5z9hqww-usq.js} +3 -3
  90. package/out/_next/static/chunks/{19ou9pxeiwehs.js → 1feyuu-4twwai.js} +3 -3
  91. package/out/_next/static/chunks/{0sc71p-6lnm1e.js → 1i8wb5lh3jac1.js} +2 -2
  92. package/out/_next/static/chunks/{0nga8f0q2d0bl.js → 1ngpcnj86ohnv.js} +3 -3
  93. package/out/_next/static/chunks/{2nm_wdmfjcbyc.js → 1ocvneidf1syf.js} +4 -4
  94. package/out/_next/static/chunks/{42p2hm8ca34f6.js → 1p639idox1vll.js} +3 -3
  95. package/out/_next/static/chunks/{00tf1qsuwqywe.js → 1q5b4oexneef5.js} +3 -3
  96. package/out/_next/static/chunks/{2v57_n8he320z.js → 1rkg8vhvo8vgz.js} +1 -1
  97. package/out/_next/static/chunks/{0om7fxf5bczpu.js → 1s8vxngh_0xfn.js} +3 -3
  98. package/out/_next/static/chunks/{326rk3t0gtxp_.js → 1tkaly-z0eb-q.js} +3 -3
  99. package/out/_next/static/chunks/{2_l14rwu6kgzl.js → 1z1jxtjhg_5v6.js} +2 -2
  100. package/out/_next/static/chunks/{0208v89kdo_s9.js → 205q4wv45jomk.js} +3 -3
  101. package/out/_next/static/chunks/{3_dqxs_vhmfqd.js → 20usp87kxiivk.js} +3 -3
  102. package/out/_next/static/chunks/{2tm822rgn8g7-.js → 21g3gg4lmatce.js} +5 -5
  103. package/out/_next/static/chunks/{2540mqfxc7ehr.js → 224p31baeu3c3.js} +3 -3
  104. package/out/_next/static/chunks/{3hqec4-3one07.js → 22mj125470p07.js} +3 -3
  105. package/out/_next/static/chunks/{3ls4kv54f3x8u.js → 22ud9v8dzixqk.js} +3 -3
  106. package/out/_next/static/chunks/{339y1tm7s80tn.js → 24mbze45k4evy.js} +9 -9
  107. package/out/_next/static/chunks/{11oq6l46lynfn.js → 26mue2l4069m0.js} +3 -3
  108. package/out/_next/static/chunks/{0_xtedn8e1vu_.js → 26yksvb45bfug.js} +3 -3
  109. package/out/_next/static/chunks/{19pi48hqksvo9.js → 29m1e34-eyni_.js} +2 -2
  110. package/out/_next/static/chunks/{1dqgs827_hiod.js → 2__i5ksblcvil.js} +3 -3
  111. package/out/_next/static/chunks/{3cp9qqljcytup.js → 2d_tll2e3tyei.js} +2 -2
  112. package/out/_next/static/chunks/{0ij8fs6-w0pr_.js → 2dnjzvnx4dg-n.js} +6 -6
  113. package/out/_next/static/chunks/{1rw6681ieb3-5.js → 2f16josk9b_cl.js} +2 -2
  114. package/out/_next/static/chunks/{32te9ivrk54l0.js → 2g7t-73faoik2.js} +3 -3
  115. package/out/_next/static/chunks/{1184evhxs01_c.js → 2hg887w-4-saz.js} +2 -2
  116. package/out/_next/static/chunks/{447b5tn4-avdv.js → 2j3p_ne416507.js} +3 -3
  117. package/out/_next/static/chunks/{1h_o__x8jw8gt.js → 2k5rg3rwz2qz1.js} +3 -3
  118. package/out/_next/static/chunks/2kjux30i3gg-c.js +5 -0
  119. package/out/_next/static/chunks/{3doujqxnfq19f.js → 2lal4ruoql8-s.js} +3 -3
  120. package/out/_next/static/chunks/{0p09_ncs0g7m2.js → 2m4su5mqey5cb.js} +3 -3
  121. package/out/_next/static/chunks/{40s6ngsexc737.js → 2on7of8c32boh.js} +2 -2
  122. package/out/_next/static/chunks/{3il9u-mfrp2sn.js → 2skfzjx2g9hkk.js} +6 -2
  123. package/out/_next/static/chunks/{3grllla8v0ctl.js → 2sw8wfufjrcpb.js} +3 -3
  124. package/out/_next/static/chunks/{11zynllx8mmh5.js → 2szj6o9fr-rib.js} +3 -3
  125. package/out/_next/static/chunks/{0q6-fplpae_ie.js → 2zynam_mr2g6y.js} +9 -9
  126. package/out/_next/static/chunks/{3uytb2p7vzafp.js → 3-xi25w8-k-02.js} +3 -3
  127. package/out/_next/static/chunks/{2-7e3ttj92hfr.js → 32gi2dpw3twz7.js} +3 -3
  128. package/out/_next/static/chunks/348d_4lpnrkzq.js +100 -0
  129. package/out/_next/static/chunks/{0b33bcf7x5rgy.js → 35mb--fw85e9-.js} +3 -3
  130. package/out/_next/static/chunks/{2ork76jhxvxke.js → 360g4b1clnt45.js} +4 -0
  131. package/out/_next/static/chunks/{1fg6jbuxeuj0w.js → 38kjuo_3xeof3.js} +3 -3
  132. package/out/_next/static/chunks/{2t-_fecnp5yzr.js → 3krpx72smyufn.js} +3 -3
  133. package/out/_next/static/chunks/{224ovcn90ebcs.js → 3m2hre_c-kclo.js} +4 -4
  134. package/out/_next/static/chunks/3om1fkw-lrmng.js +1 -0
  135. package/out/_next/static/chunks/{14c_mq04p7pu0.js → 3p0ir-pqcslbi.js} +9 -5
  136. package/out/_next/static/chunks/{2u8ns-x384r3i.js → 3pr477_ci25mm.js} +3 -3
  137. package/out/_next/static/chunks/{2ou2_nhvunq72.js → 3r54d1b_uyq95.js} +5 -5
  138. package/out/_next/static/chunks/{0nlirgt-x5pqr.js → 3rh3nigvg06yu.js} +17 -17
  139. package/out/_next/static/chunks/{2le8e8u2nvp0j.js → 3sc7jsyx25g08.js} +3 -3
  140. package/out/_next/static/chunks/{3yvmkdc088aly.js → 3vjgbl76cgrmt.js} +1 -1
  141. package/out/_next/static/chunks/{3o23w25lfn4mo.js → 3z3k6qx61arup.js} +4 -4
  142. package/out/_next/static/chunks/{1o4hor3cwzcxc.js → 42x9tn0uff92o.js} +3 -3
  143. package/out/_next/static/chunks/{1cfjbvjo0o9fx.js → 446p1gk5cy4da.js} +1 -1
  144. package/out/_next/static/chunks/{turbopack-2w9_vscbr0eag.js → turbopack-02-k6w2e9_3af.js} +1 -1
  145. package/out/_next/static/chunks/{turbopack-05rmr02n9n2u0.js → turbopack-03fj2scz_09ul.js} +1 -1
  146. package/out/_next/static/chunks/{turbopack-3a196kafnj312.js → turbopack-0_42u9tky4zng.js} +1 -1
  147. package/out/_next/static/chunks/{turbopack-2q65pei-ck559.js → turbopack-0gnmdx6ye6n_e.js} +1 -1
  148. package/out/_next/static/chunks/turbopack-0iozo8xy34oiw.js +1 -0
  149. package/out/_next/static/chunks/{turbopack-1azvbmrq_bxq7.js → turbopack-0rb_mm-wnau-3.js} +1 -1
  150. package/out/_next/static/chunks/{turbopack-1rdxfvyldfwrq.js → turbopack-0v5-op7r79bhf.js} +1 -1
  151. package/out/_next/static/chunks/{turbopack-3a6igydfvv1_v.js → turbopack-0zf_85we0x_rs.js} +1 -1
  152. package/out/_next/static/chunks/{turbopack-0k8oea6xmzbjh.js → turbopack-1-ukcimwb2wq1.js} +1 -1
  153. package/out/_next/static/chunks/{turbopack-0xgswwqf_4vrt.js → turbopack-10anz7o9kcb98.js} +1 -1
  154. package/out/_next/static/chunks/{turbopack-1g8mmayckmfib.js → turbopack-12-4lgc8wbnmx.js} +1 -1
  155. package/out/_next/static/chunks/{turbopack-2z2joyd6mdhpo.js → turbopack-14bpgd3qmna2b.js} +1 -1
  156. package/out/_next/static/chunks/{turbopack-0s-h1cgwrfgo-.js → turbopack-16ecm5pf7vta6.js} +1 -1
  157. package/out/_next/static/chunks/{turbopack-425nfopoa8wxd.js → turbopack-16gej7p33tsw5.js} +1 -1
  158. package/out/_next/static/chunks/{turbopack-0qxkaq0f9ka24.js → turbopack-1iglf5syrme2d.js} +1 -1
  159. package/out/_next/static/chunks/{turbopack-0dj-aua684j9c.js → turbopack-1l2mxrtt6fj2q.js} +1 -1
  160. package/out/_next/static/chunks/{turbopack-298vdad77pw5z.js → turbopack-1nwkuzx-97xdl.js} +1 -1
  161. package/out/_next/static/chunks/{turbopack-3bnkwdcrz_ts-.js → turbopack-1od40dnbx8fg3.js} +1 -1
  162. package/out/_next/static/chunks/{turbopack-3r17oio1oe7jw.js → turbopack-1orl_72rr-ky-.js} +1 -1
  163. package/out/_next/static/chunks/{turbopack-02cmv-knpzk52.js → turbopack-1qg_72lzl6ek8.js} +1 -1
  164. package/out/_next/static/chunks/{turbopack-2gehqsln39zg1.js → turbopack-1rmjnbaunrx2u.js} +1 -1
  165. package/out/_next/static/chunks/{turbopack-1p11xfz8qe15i.js → turbopack-1wpa09idv1cyh.js} +1 -1
  166. package/out/_next/static/chunks/{turbopack-3vncwrj5x9j44.js → turbopack-1ykuk8u3enawr.js} +1 -1
  167. package/out/_next/static/chunks/{turbopack-07fw0g9aver98.js → turbopack-21_p8k9zs76-x.js} +1 -1
  168. package/out/_next/static/chunks/{turbopack-2it1jk212m2ud.js → turbopack-220rj632xmu2e.js} +1 -1
  169. package/out/_next/static/chunks/{turbopack-2sqnlbl-ardf7.js → turbopack-22p012gdqk61c.js} +1 -1
  170. package/out/_next/static/chunks/{turbopack-3yk72bgipb8hc.js → turbopack-25j7jj4dskbwu.js} +1 -1
  171. package/out/_next/static/chunks/{turbopack-0ricnx7znhztj.js → turbopack-27pc-r2lunwha.js} +1 -1
  172. package/out/_next/static/chunks/{turbopack-3uc-2ah0uehj3.js → turbopack-2bb143jjb45b6.js} +1 -1
  173. package/out/_next/static/chunks/{turbopack-3nta8sa99guti.js → turbopack-2esinq43hb-vc.js} +1 -1
  174. package/out/_next/static/chunks/{turbopack-3hsu2nw8qlox4.js → turbopack-2g3vf-v8r3qd2.js} +1 -1
  175. package/out/_next/static/chunks/{turbopack-2l-gbnaw39ht4.js → turbopack-2gxln6h99_6pp.js} +1 -1
  176. package/out/_next/static/chunks/{turbopack-3wxlut7e7jmsi.js → turbopack-2j5sxbr_zaxjf.js} +1 -1
  177. package/out/_next/static/chunks/{turbopack-08x92457_z4ve.js → turbopack-2j61phdts4xpn.js} +1 -1
  178. package/out/_next/static/chunks/{turbopack-0a2sfur4bx222.js → turbopack-2nd6qjscj3z2p.js} +1 -1
  179. package/out/_next/static/chunks/{turbopack-3r9uyzwi0dtwb.js → turbopack-2o76al0gsswxo.js} +1 -1
  180. package/out/_next/static/chunks/{turbopack-2n2ksqygaakbh.js → turbopack-2pe-c3nyyswmm.js} +1 -1
  181. package/out/_next/static/chunks/{turbopack-0h5lj7lnf9_tb.js → turbopack-2tz1t67cqt8ex.js} +1 -1
  182. package/out/_next/static/chunks/{turbopack-1y3x6n223v6d1.js → turbopack-2u-4w10t8mu6i.js} +1 -1
  183. package/out/_next/static/chunks/{turbopack-2068cl63o32re.js → turbopack-2u879ap4um9kt.js} +1 -1
  184. package/out/_next/static/chunks/{turbopack-3iiyu2cek78ut.js → turbopack-2ubl1vyufevbf.js} +1 -1
  185. package/out/_next/static/chunks/{turbopack-2d5v28yt0xnri.js → turbopack-2x85w-5txf7i5.js} +1 -1
  186. package/out/_next/static/chunks/{turbopack-3ww1zabqxbxit.js → turbopack-32oolm1x2hqm8.js} +1 -1
  187. package/out/_next/static/chunks/{turbopack-2hj-ffuco6-u7.js → turbopack-32unbrrzdhim9.js} +1 -1
  188. package/out/_next/static/chunks/{turbopack-2dicmowo2x4t1.js → turbopack-37e-e484qmc03.js} +1 -1
  189. package/out/_next/static/chunks/turbopack-3d9zuhypuljic.js +1 -0
  190. package/out/_next/static/chunks/{turbopack-1td004byboyz2.js → turbopack-3dl00zga30bss.js} +1 -1
  191. package/out/_next/static/chunks/{turbopack-35awx_qvevnch.js → turbopack-3f06s1e12y6j9.js} +1 -1
  192. package/out/_next/static/chunks/{turbopack-14rn07-ki7f_7.js → turbopack-3g98_iakkqypg.js} +1 -1
  193. package/out/_next/static/chunks/{turbopack-1r_uprn020kr7.js → turbopack-3j4bdo8-ldea5.js} +1 -1
  194. package/out/_next/static/chunks/{turbopack-3458e7jmj1e27.js → turbopack-3l3o1x7j1z_63.js} +1 -1
  195. package/out/_next/static/chunks/{turbopack-1330tdm8r390q.js → turbopack-3lm631px3s8-4.js} +1 -1
  196. package/out/_next/static/chunks/{turbopack-0m1qzkhnpuk2j.js → turbopack-3mwf6he42ff9n.js} +1 -1
  197. package/out/_next/static/chunks/{turbopack-1csu0s9cycwgo.js → turbopack-3oih6rrmvb7t3.js} +1 -1
  198. package/out/_next/static/chunks/{turbopack-338xrj-0fpsqu.js → turbopack-3oq88d3632ksa.js} +1 -1
  199. package/out/_next/static/chunks/{turbopack-2t6ex34_bkvoe.js → turbopack-3q1s32jzw2pnu.js} +1 -1
  200. package/out/_next/static/chunks/{turbopack-351l-va10h8kw.js → turbopack-3snas0eww9sey.js} +1 -1
  201. package/out/_next/static/chunks/{turbopack-3tntqotcyx6oq.js → turbopack-3tg-pp9_bemtn.js} +1 -1
  202. package/out/_next/static/chunks/{turbopack-0n73ad0fad4yl.js → turbopack-3tlngjwse53m1.js} +1 -1
  203. package/out/_next/static/chunks/{turbopack-0b-g0lpiikryt.js → turbopack-3tp3s3o8o9e-_.js} +1 -1
  204. package/out/_next/static/chunks/{turbopack-1hty_7i5tzg63.js → turbopack-3tyhe6yjnx5h6.js} +1 -1
  205. package/out/_next/static/chunks/{turbopack-3uvfl95p1ubqn.js → turbopack-3v3wnwaeu0os5.js} +1 -1
  206. package/out/_next/static/chunks/{turbopack-2mbsjg411_ndq.js → turbopack-3xc_rmnnnzfkm.js} +1 -1
  207. package/out/_next/static/chunks/{turbopack-1bjaxey2pj8nn.js → turbopack-4592lth1oe0jg.js} +1 -1
  208. package/out/_next/static/{hH8h6SzcZWEUFySYqRPbW → iR5ImdUZrRG-KyLitg8YP}/_buildManifest.js +63 -63
  209. package/out/_offline/index.html +2 -2
  210. package/out/account/forgot-password/index.html +2 -2
  211. package/out/account/index.html +2 -2
  212. package/out/assortments/AssortmentDetailPage/index.html +2 -2
  213. package/out/assortments/index.html +2 -2
  214. package/out/assortments/new/index.html +2 -2
  215. package/out/copilot/index.html +2 -2
  216. package/out/country/CountryDetailPage/index.html +2 -2
  217. package/out/country/index.html +2 -2
  218. package/out/country/new/index.html +2 -2
  219. package/out/currency/CurrencyDetailPage/index.html +2 -2
  220. package/out/currency/index.html +2 -2
  221. package/out/currency/new/index.html +2 -2
  222. package/out/delivery-provider/DeliveryProviderDetailPage/index.html +2 -2
  223. package/out/delivery-provider/index.html +2 -2
  224. package/out/delivery-provider/new/index.html +2 -2
  225. package/out/enrollments/EnrollmentDetailPage/index.html +2 -2
  226. package/out/enrollments/index.html +2 -2
  227. package/out/events/EventDetailPage/index.html +2 -2
  228. package/out/events/index.html +2 -2
  229. package/out/exports/index.html +2 -2
  230. package/out/ext/[[...slug]]/index.html +2 -2
  231. package/out/external/index.html +2 -2
  232. package/out/filters/FilterDetailPage/index.html +2 -2
  233. package/out/filters/index.html +2 -2
  234. package/out/filters/new/index.html +2 -2
  235. package/out/index.html +2 -2
  236. package/out/install/index.html +2 -2
  237. package/out/language/LanguageDetailPage/index.html +2 -2
  238. package/out/language/index.html +2 -2
  239. package/out/language/new/index.html +2 -2
  240. package/out/log-in/index.html +2 -2
  241. package/out/orders/OrderDetailPage/index.html +2 -2
  242. package/out/orders/index.html +2 -2
  243. package/out/payment-provider/PaymentProviderDetailPage/index.html +2 -2
  244. package/out/payment-provider/index.html +2 -2
  245. package/out/payment-provider/new/index.html +2 -2
  246. package/out/products/ProductDetailPage/index.html +2 -2
  247. package/out/products/index.html +2 -2
  248. package/out/products/new/index.html +2 -2
  249. package/out/quotations/QuotationDetailPage/index.html +2 -2
  250. package/out/quotations/index.html +2 -2
  251. package/out/reset-password/index.html +2 -2
  252. package/out/sign-up/index.html +2 -2
  253. package/out/styleguide/index.html +2 -2
  254. package/out/tokens/TokenDetailPage/index.html +2 -2
  255. package/out/tokens/index.html +2 -2
  256. package/out/users/UserDetailPage/index.html +2 -2
  257. package/out/users/index.html +2 -2
  258. package/out/users/new/index.html +2 -2
  259. package/out/verify-email/index.html +2 -2
  260. package/out/warehousing-provider/WarehousingProviderDetailPage/index.html +2 -2
  261. package/out/warehousing-provider/index.html +2 -2
  262. package/out/warehousing-provider/new/index.html +2 -2
  263. package/out/works/WorkDetailPage/index.html +2 -2
  264. package/out/works/WorkQueueListView/index.html +2 -2
  265. package/out/works/index.html +2 -2
  266. package/out/works/management/index.html +2 -2
  267. package/package.json +1 -1
  268. package/src/sdk/README.md +1 -1
  269. package/src/sdk/plugin-build.mjs +4 -2
  270. package/src/sdk/plugin-build.test.mjs +33 -1
  271. package/dist/chunk-2RTX42IE.js +0 -2083
  272. package/dist/chunk-YZGQJJCD.js +0 -37
  273. package/out/_next/static/chunks/2_vu2hve2j-6g.js +0 -5
  274. package/out/_next/static/chunks/2dvrbmh97duba.js +0 -1
  275. package/out/_next/static/chunks/2pf0d3jgcae7b.js +0 -99
  276. package/out/_next/static/chunks/2rve5gtfjiz-p.js +0 -100
  277. package/out/_next/static/chunks/3cq123yj25_36.js +0 -1
  278. package/out/_next/static/chunks/turbopack-3rgdcfralfvsa.js +0 -1
  279. package/out/_next/static/chunks/turbopack-4025_4zwqnrk-.js +0 -1
  280. /package/out/_next/static/{hH8h6SzcZWEUFySYqRPbW → iR5ImdUZrRG-KyLitg8YP}/_clientMiddlewareManifest.js +0 -0
  281. /package/out/_next/static/{hH8h6SzcZWEUFySYqRPbW → iR5ImdUZrRG-KyLitg8YP}/_ssgManifest.js +0 -0
package/dist/form.js CHANGED
@@ -1,11 +1,11 @@
1
- import { FieldWrapper_default, clsx_default, HelpText_default, JSONView_default, Tab_default, Badge_default, ChevronUpDownIcon_default, CheckIcon_default } from './chunk-MSPWYMDY.js';
2
- export { FieldWrapper_default as FieldWrapper, SubmitButton_default as SubmitButton, TagInputField_default as TagInputField } from './chunk-MSPWYMDY.js';
1
+ import { FieldWrapper_default, clsx_default, HelpText_default, JSONView_default, Tab_default, Badge_default, ChevronUpDownIcon_default, CheckIcon_default } from './chunk-SDA2A6TP.js';
2
+ export { FieldWrapper_default as FieldWrapper, SubmitButton_default as SubmitButton, TagInputField_default as TagInputField } from './chunk-SDA2A6TP.js';
3
3
  import './chunk-VDKQGOMV.js';
4
- import { useFormContext_default, useField_default, validateMaxLength, validateDate, validateEmail } from './chunk-7PPOGX7R.js';
5
- import './chunk-YZGQJJCD.js';
4
+ import { useFormContext_default, useField_default, validateMaxLength, validateDate, validateEmail } from './chunk-6ZZIMVID.js';
6
5
  import { PencilIcon_default, EyeIcon_default } from './chunk-XJBPMIC4.js';
7
- import { Y, A, r, a, y, n, o2, L, m2, l2, n2, K, u, S, x, k2, c, i3, n3, o4, V, p, m3, d, n5, w, u2, u3, N, p2, f2, y2, x2, le, s, o, n4, c2, f, s2, m, E2, i2, o3, i, l, T, k, a2, E, G } from './chunk-KCN7DDPH.js';
8
- import { __commonJS, __export, __toESM } from './chunk-4VNS5WPM.js';
6
+ import { Y, A, r, a, y, n, o2, L, m2, l2, n2, K, u, S, x, k2, c, i3, n3, o4, V, p, m3, d, n5, w, u2, u3, N, p2, f2, y2, x2, le, s, o, n4, c2, f, s2, m, E2, i2, o3, i, l, T, k, a2, E, G } from './chunk-A3WBMBUF.js';
7
+ import './chunk-2ARWAOZW.js';
8
+ import { __commonJS, __export, __toESM } from './chunk-WPLOTFGW.js';
9
9
  import * as React4 from 'react';
10
10
  import React4__default, { createContext, isValidElement, cloneElement, useRef, useCallback, useMemo, Fragment, useState, useContext, useEffect, useLayoutEffect } from 'react';
11
11
  import { jsx, jsxs, Fragment as Fragment$1 } from 'react/jsx-runtime';
@@ -577,7 +577,16 @@ var ChoicesField = ({ multiple, options, ...props }) => {
577
577
  labelClassName = "",
578
578
  inputClassName = ""
579
579
  } = props;
580
- const mappableValue = typeof field.value === "string" ? [field.value] : field.value;
580
+ const mappableValue = typeof field.value === "string" ? [field.value] : Array.isArray(field.value) ? field.value : [];
581
+ const handleChange = (event) => {
582
+ if (field.multiple) {
583
+ const clickedValue = event.target.value;
584
+ const newValues = event.target.checked ? [...mappableValue, clickedValue] : mappableValue.filter((v5) => v5 !== clickedValue);
585
+ field.setValue(newValues, true);
586
+ } else {
587
+ field.onChange(event);
588
+ }
589
+ };
581
590
  const { className, hideLabel } = props;
582
591
  return /* @__PURE__ */ jsxs(
583
592
  "div",
@@ -627,7 +636,7 @@ var ChoicesField = ({ multiple, options, ...props }) => {
627
636
  disabled: field.disabled,
628
637
  id: `${field.name}-${value}`,
629
638
  name: field.name,
630
- onChange: field.onChange,
639
+ onChange: handleChange,
631
640
  type: field.multiple ? "checkbox" : "radio"
632
641
  }
633
642
  ),
@@ -2966,7 +2975,7 @@ function normalizeUri(value) {
2966
2975
 
2967
2976
  // ../node_modules/micromark-factory-space/index.js
2968
2977
  function factorySpace(effects, ok3, type, max2) {
2969
- const limit = max2 ? max2 - 1 : Number.POSITIVE_INFINITY;
2978
+ const limit = max2 ? max2 - 1 : Infinity;
2970
2979
  let size4 = 0;
2971
2980
  return start2;
2972
2981
  function start2(code4) {
@@ -2985,6 +2994,29 @@ function factorySpace(effects, ok3, type, max2) {
2985
2994
  return ok3(code4);
2986
2995
  }
2987
2996
  }
2997
+ function factorySpaceMinMax(effects, ok3, nok, type, min2, max2) {
2998
+ let size4 = 0;
2999
+ return start2;
3000
+ function start2(code4) {
3001
+ if (markdownSpace(code4)) {
3002
+ effects.enter(type);
3003
+ return prefix(code4);
3004
+ }
3005
+ return after(code4);
3006
+ }
3007
+ function prefix(code4) {
3008
+ if (markdownSpace(code4) && size4 < max2) {
3009
+ effects.consume(code4);
3010
+ size4++;
3011
+ return prefix;
3012
+ }
3013
+ effects.exit(type);
3014
+ return after(code4);
3015
+ }
3016
+ function after(code4) {
3017
+ return size4 >= min2 ? ok3(code4) : nok(code4);
3018
+ }
3019
+ }
2988
3020
 
2989
3021
  // ../node_modules/micromark/lib/initialize/content.js
2990
3022
  var content = {
@@ -3036,6 +3068,104 @@ function initializeContent(effects) {
3036
3068
  }
3037
3069
  }
3038
3070
 
3071
+ // ../node_modules/micromark-util-edit-map/index.js
3072
+ var EditMap = class {
3073
+ /**
3074
+ * Create a new edit map.
3075
+ *
3076
+ * @returns
3077
+ * New instance.
3078
+ */
3079
+ constructor() {
3080
+ this.index = /* @__PURE__ */ new Map();
3081
+ this.map = [];
3082
+ }
3083
+ /**
3084
+ * Create an edit: a remove and/or add at a certain place.
3085
+ *
3086
+ * @param {number} index
3087
+ * Index at which to apply the edit.
3088
+ * @param {number} remove
3089
+ * Count of items to remove at the index.
3090
+ * @param {Array<Event>} add
3091
+ * Items to add at the index.
3092
+ * @returns {undefined}
3093
+ * Nothing.
3094
+ */
3095
+ add(index4, remove, add) {
3096
+ addImplementation(this, index4, remove, add, false);
3097
+ }
3098
+ /**
3099
+ * Create an edit: but insert `add` before existing additions, instead of
3100
+ * after them.
3101
+ *
3102
+ * @param {number} index
3103
+ * Index at which to apply the edit.
3104
+ * @param {number} remove
3105
+ * Count of items to remove at the index.
3106
+ * @param {Array<Event>} add
3107
+ * Items to add at the index.
3108
+ * @returns {undefined}
3109
+ * Nothing.
3110
+ */
3111
+ addBefore(index4, remove, add) {
3112
+ addImplementation(this, index4, remove, add, true);
3113
+ }
3114
+ /**
3115
+ * Done, change the events.
3116
+ *
3117
+ * @param {Array<Event>} events
3118
+ * List of events to apply the edits to.
3119
+ * @returns {undefined}
3120
+ * Nothing.
3121
+ */
3122
+ consume(events) {
3123
+ this.map.sort(function(a9, b3) {
3124
+ return a9[0] - b3[0];
3125
+ });
3126
+ if (this.map.length === 0) {
3127
+ return;
3128
+ }
3129
+ let index4 = this.map.length;
3130
+ const vecs = [];
3131
+ while (index4 > 0) {
3132
+ index4 -= 1;
3133
+ vecs.push(events.slice(this.map[index4][0] + this.map[index4][1]), this.map[index4][2]);
3134
+ events.length = this.map[index4][0];
3135
+ }
3136
+ vecs.push(events.slice());
3137
+ events.length = 0;
3138
+ let slice = vecs.pop();
3139
+ while (slice) {
3140
+ for (const element7 of slice) {
3141
+ events.push(element7);
3142
+ }
3143
+ slice = vecs.pop();
3144
+ }
3145
+ this.map.length = 0;
3146
+ this.index.clear();
3147
+ }
3148
+ };
3149
+ function addImplementation(editMap, at, remove, add, before) {
3150
+ if (remove === 0 && add.length === 0) {
3151
+ return;
3152
+ }
3153
+ const existing = editMap.index.get(at);
3154
+ if (existing) {
3155
+ existing[1] += remove;
3156
+ if (before) {
3157
+ add.push(...existing[2]);
3158
+ existing[2] = add;
3159
+ } else {
3160
+ existing[2].push(...add);
3161
+ }
3162
+ return;
3163
+ }
3164
+ const change = [at, remove, add];
3165
+ editMap.map.push(change);
3166
+ editMap.index.set(at, change);
3167
+ }
3168
+
3039
3169
  // ../node_modules/micromark/lib/initialize/document.js
3040
3170
  var document2 = {
3041
3171
  tokenize: initializeDocument
@@ -3083,8 +3213,10 @@ function initializeDocument(effects) {
3083
3213
  };
3084
3214
  index4++;
3085
3215
  }
3086
- splice(self2.events, indexBeforeFlow + 1, 0, self2.events.slice(indexBeforeExits));
3087
- self2.events.length = index4;
3216
+ const editMap = new EditMap();
3217
+ editMap.add(indexBeforeFlow + 1, 0, self2.events.slice(indexBeforeExits));
3218
+ editMap.add(indexBeforeExits, index4 - indexBeforeExits, []);
3219
+ editMap.consume(self2.events);
3088
3220
  return checkNewContainers(code4);
3089
3221
  }
3090
3222
  return start2(code4);
@@ -3103,7 +3235,9 @@ function initializeDocument(effects) {
3103
3235
  return effects.check(containerConstruct, thereIsANewContainer, thereIsNoNewContainer)(code4);
3104
3236
  }
3105
3237
  function thereIsANewContainer(code4) {
3106
- if (childFlow) closeFlow();
3238
+ if (childFlow) {
3239
+ closeFlow();
3240
+ }
3107
3241
  exitContainers(continued);
3108
3242
  return documentContinued(code4);
3109
3243
  }
@@ -3123,7 +3257,9 @@ function initializeDocument(effects) {
3123
3257
  }
3124
3258
  function flowStart(code4) {
3125
3259
  if (code4 === null) {
3126
- if (childFlow) closeFlow();
3260
+ if (childFlow) {
3261
+ closeFlow();
3262
+ }
3127
3263
  exitContainers(0);
3128
3264
  effects.consume(code4);
3129
3265
  return;
@@ -3155,9 +3291,13 @@ function initializeDocument(effects) {
3155
3291
  }
3156
3292
  function writeToChild(token, endOfFile) {
3157
3293
  const stream = self2.sliceStream(token);
3158
- if (endOfFile) stream.push(null);
3294
+ if (endOfFile) {
3295
+ stream.push(null);
3296
+ }
3159
3297
  token.previous = childToken;
3160
- if (childToken) childToken.next = token;
3298
+ if (childToken) {
3299
+ childToken.next = token;
3300
+ }
3161
3301
  childToken = token;
3162
3302
  childFlow.defineSkip(token.start);
3163
3303
  childFlow.write(stream);
@@ -3194,8 +3334,10 @@ function initializeDocument(effects) {
3194
3334
  };
3195
3335
  index4++;
3196
3336
  }
3197
- splice(self2.events, indexBeforeFlow + 1, 0, self2.events.slice(indexBeforeExits));
3198
- self2.events.length = index4;
3337
+ const editMap = new EditMap();
3338
+ editMap.add(indexBeforeFlow + 1, 0, self2.events.slice(indexBeforeExits));
3339
+ editMap.add(indexBeforeExits, index4 - indexBeforeExits, []);
3340
+ editMap.consume(self2.events);
3199
3341
  }
3200
3342
  }
3201
3343
  function exitContainers(size4) {
@@ -3250,24 +3392,17 @@ var attention = {
3250
3392
  };
3251
3393
  function resolveAllAttention(events, context) {
3252
3394
  let index4 = -1;
3253
- let open;
3254
- let group;
3255
- let text10;
3256
- let openingSequence;
3257
- let closingSequence;
3258
- let use;
3259
3395
  let nextEvents;
3260
- let offset4;
3261
3396
  while (++index4 < events.length) {
3262
3397
  if (events[index4][0] === "enter" && events[index4][1].type === "attentionSequence" && events[index4][1]._close) {
3263
- open = index4;
3398
+ let open = index4;
3264
3399
  while (open--) {
3265
3400
  if (events[open][0] === "exit" && events[open][1].type === "attentionSequence" && events[open][1]._open && // If the markers are the same:
3266
3401
  context.sliceSerialize(events[open][1]).charCodeAt(0) === context.sliceSerialize(events[index4][1]).charCodeAt(0)) {
3267
3402
  if ((events[open][1]._close || events[index4][1]._open) && (events[index4][1].end.offset - events[index4][1].start.offset) % 3 && !((events[open][1].end.offset - events[open][1].start.offset + events[index4][1].end.offset - events[index4][1].start.offset) % 3)) {
3268
3403
  continue;
3269
3404
  }
3270
- use = events[open][1].end.offset - events[open][1].start.offset > 1 && events[index4][1].end.offset - events[index4][1].start.offset > 1 ? 2 : 1;
3405
+ const use = events[open][1].end.offset - events[open][1].start.offset > 1 && events[index4][1].end.offset - events[index4][1].start.offset > 1 ? 2 : 1;
3271
3406
  const start2 = {
3272
3407
  ...events[open][1].end
3273
3408
  };
@@ -3276,21 +3411,21 @@ function resolveAllAttention(events, context) {
3276
3411
  };
3277
3412
  movePoint(start2, -use);
3278
3413
  movePoint(end, use);
3279
- openingSequence = {
3414
+ const openingSequence = {
3280
3415
  type: use > 1 ? "strongSequence" : "emphasisSequence",
3281
3416
  start: start2,
3282
3417
  end: {
3283
3418
  ...events[open][1].end
3284
3419
  }
3285
3420
  };
3286
- closingSequence = {
3421
+ const closingSequence = {
3287
3422
  type: use > 1 ? "strongSequence" : "emphasisSequence",
3288
3423
  start: {
3289
3424
  ...events[index4][1].start
3290
3425
  },
3291
3426
  end
3292
3427
  };
3293
- text10 = {
3428
+ const text10 = {
3294
3429
  type: use > 1 ? "strongText" : "emphasisText",
3295
3430
  start: {
3296
3431
  ...events[open][1].end
@@ -3299,7 +3434,7 @@ function resolveAllAttention(events, context) {
3299
3434
  ...events[index4][1].start
3300
3435
  }
3301
3436
  };
3302
- group = {
3437
+ const group = {
3303
3438
  type: use > 1 ? "strong" : "emphasis",
3304
3439
  start: {
3305
3440
  ...openingSequence.start
@@ -3321,11 +3456,10 @@ function resolveAllAttention(events, context) {
3321
3456
  nextEvents = push(nextEvents, [["enter", group, context], ["enter", openingSequence, context], ["exit", openingSequence, context], ["enter", text10, context]]);
3322
3457
  nextEvents = push(nextEvents, resolveAll(context.parser.constructs.insideSpan.null, events.slice(open + 1, index4), context));
3323
3458
  nextEvents = push(nextEvents, [["exit", text10, context], ["enter", closingSequence, context], ["exit", closingSequence, context], ["exit", group, context]]);
3459
+ let offset4 = 0;
3324
3460
  if (events[index4][1].end.offset - events[index4][1].start.offset) {
3325
3461
  offset4 = 2;
3326
3462
  nextEvents = push(nextEvents, [["enter", events[index4][1], context], ["exit", events[index4][1], context]]);
3327
- } else {
3328
- offset4 = 0;
3329
3463
  }
3330
3464
  splice(events, open - 1, index4 - open + 3, nextEvents);
3331
3465
  index4 = open + nextEvents.length - offset4 - 2;
@@ -3360,8 +3494,8 @@ function tokenizeAttention(effects, ok3) {
3360
3494
  }
3361
3495
  const token = effects.exit("attentionSequence");
3362
3496
  const after = classifyCharacter(code4);
3363
- const open = !after || after === 2 && before || attentionMarkers2.includes(code4);
3364
- const close = !before || before === 2 && after || attentionMarkers2.includes(previous3);
3497
+ const open = !after || after === 2 && before || attentionMarkers2.includes(code4) && code4 !== 42 && code4 !== 95;
3498
+ const close = !before || before === 2 && after || attentionMarkers2.includes(previous3) && previous3 !== 42 && previous3 !== 95;
3365
3499
  token._open = Boolean(marker === 42 ? open : open && (before || !close));
3366
3500
  token._close = Boolean(marker === 42 ? close : close && (after || !open));
3367
3501
  return ok3(code4);
@@ -3638,11 +3772,29 @@ function tokenizeCharacterReference(effects, ok3, nok) {
3638
3772
  }
3639
3773
  }
3640
3774
 
3641
- // ../node_modules/micromark-core-commonmark/lib/code-fenced.js
3775
+ // ../node_modules/micromark-core-commonmark/lib/partial-non-lazy-continuation.js
3642
3776
  var nonLazyContinuation = {
3643
3777
  partial: true,
3644
3778
  tokenize: tokenizeNonLazyContinuation
3645
3779
  };
3780
+ function tokenizeNonLazyContinuation(effects, ok3, nok) {
3781
+ const self2 = this;
3782
+ return start2;
3783
+ function start2(code4) {
3784
+ if (code4 === null) {
3785
+ return nok(code4);
3786
+ }
3787
+ effects.enter("lineEnding");
3788
+ effects.consume(code4);
3789
+ effects.exit("lineEnding");
3790
+ return after;
3791
+ }
3792
+ function after(code4) {
3793
+ return self2.parser.lazy[self2.now().line] ? nok(code4) : ok3(code4);
3794
+ }
3795
+ }
3796
+
3797
+ // ../node_modules/micromark-core-commonmark/lib/code-fenced.js
3646
3798
  var codeFenced = {
3647
3799
  concrete: true,
3648
3800
  name: "codeFenced",
@@ -3804,22 +3956,6 @@ function tokenizeCodeFenced(effects, ok3, nok) {
3804
3956
  }
3805
3957
  }
3806
3958
  }
3807
- function tokenizeNonLazyContinuation(effects, ok3, nok) {
3808
- const self2 = this;
3809
- return start2;
3810
- function start2(code4) {
3811
- if (code4 === null) {
3812
- return nok(code4);
3813
- }
3814
- effects.enter("lineEnding");
3815
- effects.consume(code4);
3816
- effects.exit("lineEnding");
3817
- return lineStart;
3818
- }
3819
- function lineStart(code4) {
3820
- return self2.parser.lazy[self2.now().line] ? nok(code4) : ok3(code4);
3821
- }
3822
- }
3823
3959
 
3824
3960
  // ../node_modules/micromark-core-commonmark/lib/code-indented.js
3825
3961
  var codeIndented = {
@@ -3831,15 +3967,10 @@ var furtherStart = {
3831
3967
  tokenize: tokenizeFurtherStart
3832
3968
  };
3833
3969
  function tokenizeCodeIndented(effects, ok3, nok) {
3834
- const self2 = this;
3835
3970
  return start2;
3836
3971
  function start2(code4) {
3837
3972
  effects.enter("codeIndented");
3838
- return factorySpace(effects, afterPrefix, "linePrefix", 4 + 1)(code4);
3839
- }
3840
- function afterPrefix(code4) {
3841
- const tail = self2.events[self2.events.length - 1];
3842
- return tail && tail[1].type === "linePrefix" && tail[2].sliceSerialize(tail[1], true).length >= 4 ? atBreak(code4) : nok(code4);
3973
+ return factorySpaceMinMax(effects, atBreak, nok, "linePrefix", 4, 4)(code4);
3843
3974
  }
3844
3975
  function atBreak(code4) {
3845
3976
  if (code4 === null) {
@@ -3877,11 +4008,10 @@ function tokenizeFurtherStart(effects, ok3, nok) {
3877
4008
  effects.exit("lineEnding");
3878
4009
  return furtherStart2;
3879
4010
  }
3880
- return factorySpace(effects, afterPrefix, "linePrefix", 4 + 1)(code4);
4011
+ return factorySpaceMinMax(effects, ok3, onNotEnoughPrefix, "linePrefix", 4, 4)(code4);
3881
4012
  }
3882
- function afterPrefix(code4) {
3883
- const tail = self2.events[self2.events.length - 1];
3884
- return tail && tail[1].type === "linePrefix" && tail[2].sliceSerialize(tail[1], true).length >= 4 ? ok3(code4) : markdownLineEnding(code4) ? furtherStart2(code4) : nok(code4);
4013
+ function onNotEnoughPrefix(code4) {
4014
+ return markdownLineEnding(code4) ? furtherStart2(code4) : nok(code4);
3885
4015
  }
3886
4016
  }
3887
4017
 
@@ -4765,8 +4895,6 @@ var headingAtx = {
4765
4895
  function resolveHeadingAtx(events, context) {
4766
4896
  let contentEnd = events.length - 2;
4767
4897
  let contentStart = 3;
4768
- let content3;
4769
- let text10;
4770
4898
  if (events[contentStart][1].type === "whitespace") {
4771
4899
  contentStart += 2;
4772
4900
  }
@@ -4777,12 +4905,12 @@ function resolveHeadingAtx(events, context) {
4777
4905
  contentEnd -= contentStart + 1 === contentEnd ? 2 : 4;
4778
4906
  }
4779
4907
  if (contentEnd > contentStart) {
4780
- content3 = {
4908
+ const content3 = {
4781
4909
  type: "atxHeadingText",
4782
4910
  start: events[contentStart][1].start,
4783
4911
  end: events[contentEnd][1].end
4784
4912
  };
4785
- text10 = {
4913
+ const text10 = {
4786
4914
  type: "chunkText",
4787
4915
  start: events[contentStart][1].start,
4788
4916
  end: events[contentEnd][1].end,
@@ -4925,10 +5053,6 @@ var blankLineBefore = {
4925
5053
  partial: true,
4926
5054
  tokenize: tokenizeBlankLineBefore
4927
5055
  };
4928
- var nonLazyContinuationStart = {
4929
- partial: true,
4930
- tokenize: tokenizeNonLazyContinuationStart
4931
- };
4932
5056
  function resolveToHtmlFlow(events) {
4933
5057
  let index4 = events.length;
4934
5058
  while (index4--) {
@@ -5190,7 +5314,7 @@ function tokenizeHtmlFlow(effects, ok3, nok) {
5190
5314
  return continuation;
5191
5315
  }
5192
5316
  function continuationStart(code4) {
5193
- return effects.check(nonLazyContinuationStart, continuationStartNonLazy, continuationAfter)(code4);
5317
+ return effects.check(nonLazyContinuation, continuationStartNonLazy, continuationAfter)(code4);
5194
5318
  }
5195
5319
  function continuationStartNonLazy(code4) {
5196
5320
  effects.enter("lineEnding");
@@ -5267,22 +5391,6 @@ function tokenizeHtmlFlow(effects, ok3, nok) {
5267
5391
  return ok3(code4);
5268
5392
  }
5269
5393
  }
5270
- function tokenizeNonLazyContinuationStart(effects, ok3, nok) {
5271
- const self2 = this;
5272
- return start2;
5273
- function start2(code4) {
5274
- if (markdownLineEnding(code4)) {
5275
- effects.enter("lineEnding");
5276
- effects.consume(code4);
5277
- effects.exit("lineEnding");
5278
- return after;
5279
- }
5280
- return nok(code4);
5281
- }
5282
- function after(code4) {
5283
- return self2.parser.lazy[self2.now().line] ? nok(code4) : ok3(code4);
5284
- }
5285
- }
5286
5394
  function tokenizeBlankLineBefore(effects, ok3, nok) {
5287
5395
  return start2;
5288
5396
  function start2(code4) {
@@ -5635,12 +5743,11 @@ function resolveAllLabelEnd(events) {
5635
5743
  function resolveToLabelEnd(events, context) {
5636
5744
  let index4 = events.length;
5637
5745
  let offset4 = 0;
5638
- let token;
5639
5746
  let open;
5640
5747
  let close;
5641
5748
  let media;
5642
5749
  while (index4--) {
5643
- token = events[index4][1];
5750
+ const token = events[index4][1];
5644
5751
  if (open) {
5645
5752
  if (token.type === "link" || token.type === "labelLink" && token._inactive) {
5646
5753
  break;
@@ -5699,14 +5806,14 @@ function resolveToLabelEnd(events, context) {
5699
5806
  }
5700
5807
  function tokenizeLabelEnd(effects, ok3, nok) {
5701
5808
  const self2 = this;
5702
- let index4 = self2.events.length;
5809
+ const labelStarts = self2._labelStarts;
5703
5810
  let labelStart;
5704
5811
  let defined;
5705
- while (index4--) {
5706
- if ((self2.events[index4][1].type === "labelImage" || self2.events[index4][1].type === "labelLink") && !self2.events[index4][1]._balanced) {
5707
- labelStart = self2.events[index4][1];
5708
- break;
5812
+ if (labelStarts) {
5813
+ while (labelStarts.length > 0 && labelStarts[labelStarts.length - 1]._balanced) {
5814
+ labelStarts.pop();
5709
5815
  }
5816
+ labelStart = labelStarts[labelStarts.length - 1];
5710
5817
  }
5711
5818
  return start2;
5712
5819
  function start2(code4) {
@@ -5740,6 +5847,7 @@ function tokenizeLabelEnd(effects, ok3, nok) {
5740
5847
  return effects.attempt(referenceCollapsedConstruct, labelEndOk, labelEndNok)(code4);
5741
5848
  }
5742
5849
  function labelEndOk(code4) {
5850
+ labelStarts.pop();
5743
5851
  return ok3(code4);
5744
5852
  }
5745
5853
  function labelEndNok(code4) {
@@ -5833,6 +5941,7 @@ var labelStartImage = {
5833
5941
  };
5834
5942
  function tokenizeLabelStartImage(effects, ok3, nok) {
5835
5943
  const self2 = this;
5944
+ let labelImage;
5836
5945
  return start2;
5837
5946
  function start2(code4) {
5838
5947
  effects.enter("labelImage");
@@ -5846,13 +5955,18 @@ function tokenizeLabelStartImage(effects, ok3, nok) {
5846
5955
  effects.enter("labelMarker");
5847
5956
  effects.consume(code4);
5848
5957
  effects.exit("labelMarker");
5849
- effects.exit("labelImage");
5958
+ labelImage = effects.exit("labelImage");
5850
5959
  return after;
5851
5960
  }
5852
5961
  return nok(code4);
5853
5962
  }
5854
5963
  function after(code4) {
5855
- return code4 === 94 && "_hiddenFootnoteSupport" in self2.parser.constructs ? nok(code4) : ok3(code4);
5964
+ if (code4 === 94 && "_hiddenFootnoteSupport" in self2.parser.constructs) {
5965
+ return nok(code4);
5966
+ }
5967
+ self2._labelStarts = self2._labelStarts || [];
5968
+ self2._labelStarts.push(labelImage);
5969
+ return ok3(code4);
5856
5970
  }
5857
5971
  }
5858
5972
 
@@ -5864,17 +5978,23 @@ var labelStartLink = {
5864
5978
  };
5865
5979
  function tokenizeLabelStartLink(effects, ok3, nok) {
5866
5980
  const self2 = this;
5981
+ let labelLink;
5867
5982
  return start2;
5868
5983
  function start2(code4) {
5869
5984
  effects.enter("labelLink");
5870
5985
  effects.enter("labelMarker");
5871
5986
  effects.consume(code4);
5872
5987
  effects.exit("labelMarker");
5873
- effects.exit("labelLink");
5988
+ labelLink = effects.exit("labelLink");
5874
5989
  return after;
5875
5990
  }
5876
5991
  function after(code4) {
5877
- return code4 === 94 && "_hiddenFootnoteSupport" in self2.parser.constructs ? nok(code4) : ok3(code4);
5992
+ if (code4 === 94 && "_hiddenFootnoteSupport" in self2.parser.constructs) {
5993
+ return nok(code4);
5994
+ }
5995
+ self2._labelStarts = self2._labelStarts || [];
5996
+ self2._labelStarts.push(labelLink);
5997
+ return ok3(code4);
5878
5998
  }
5879
5999
  }
5880
6000
 
@@ -6069,6 +6189,7 @@ var setextUnderline = {
6069
6189
  tokenize: tokenizeSetextUnderline
6070
6190
  };
6071
6191
  function resolveToSetextUnderline(events, context) {
6192
+ const editMap = new EditMap();
6072
6193
  let index4 = events.length;
6073
6194
  let content3;
6074
6195
  let text10;
@@ -6084,7 +6205,7 @@ function resolveToSetextUnderline(events, context) {
6084
6205
  }
6085
6206
  } else {
6086
6207
  if (events[index4][1].type === "content") {
6087
- events.splice(index4, 1);
6208
+ editMap.add(index4, 1, []);
6088
6209
  }
6089
6210
  if (!definition3 && events[index4][1].type === "definition") {
6090
6211
  definition3 = index4;
@@ -6102,15 +6223,16 @@ function resolveToSetextUnderline(events, context) {
6102
6223
  };
6103
6224
  events[text10][1].type = "setextHeadingText";
6104
6225
  if (definition3) {
6105
- events.splice(text10, 0, ["enter", heading3, context]);
6106
- events.splice(definition3 + 1, 0, ["exit", events[content3][1], context]);
6226
+ editMap.add(text10, 0, [["enter", heading3, context]]);
6227
+ editMap.add(definition3 + 1, 0, [["exit", events[content3][1], context]]);
6107
6228
  events[content3][1].end = {
6108
6229
  ...events[definition3][1].end
6109
6230
  };
6110
6231
  } else {
6111
6232
  events[content3][1] = heading3;
6112
6233
  }
6113
- events.push(["exit", heading3, context]);
6234
+ editMap.add(events.length, 0, [["exit", heading3, context]]);
6235
+ editMap.consume(events);
6114
6236
  return events;
6115
6237
  }
6116
6238
  function tokenizeSetextUnderline(effects, ok3, nok) {
@@ -6270,6 +6392,7 @@ function createResolver(extraResolver) {
6270
6392
  }
6271
6393
  }
6272
6394
  function resolveAllLineSuffixes(events, context) {
6395
+ const editMap = new EditMap();
6273
6396
  let eventIndex = 0;
6274
6397
  while (++eventIndex <= events.length) {
6275
6398
  if ((eventIndex === events.length || events[eventIndex][1].type === "lineEnding") && events[eventIndex - 1][1].type === "data") {
@@ -6287,7 +6410,9 @@ function resolveAllLineSuffixes(events, context) {
6287
6410
  size4++;
6288
6411
  bufferIndex--;
6289
6412
  }
6290
- if (bufferIndex) break;
6413
+ if (bufferIndex) {
6414
+ break;
6415
+ }
6291
6416
  bufferIndex = -1;
6292
6417
  } else if (chunk === -2) {
6293
6418
  tabs = true;
@@ -6320,13 +6445,13 @@ function resolveAllLineSuffixes(events, context) {
6320
6445
  if (data.start.offset === data.end.offset) {
6321
6446
  Object.assign(data, token);
6322
6447
  } else {
6323
- events.splice(eventIndex, 0, ["enter", token, context], ["exit", token, context]);
6324
- eventIndex += 2;
6448
+ editMap.add(eventIndex, 0, [["enter", token, context], ["exit", token, context]]);
6325
6449
  }
6326
6450
  }
6327
6451
  eventIndex++;
6328
6452
  }
6329
6453
  }
6454
+ editMap.consume(events);
6330
6455
  return events;
6331
6456
  }
6332
6457
 
@@ -6482,11 +6607,10 @@ function createTokenizer(parser, initialize, from) {
6482
6607
  accountForPotentialSkip();
6483
6608
  }
6484
6609
  function main() {
6485
- let chunkIndex;
6486
6610
  while (point5._index < chunks.length) {
6487
6611
  const chunk = chunks[point5._index];
6488
6612
  if (typeof chunk === "string") {
6489
- chunkIndex = point5._index;
6613
+ const chunkIndex = point5._index;
6490
6614
  if (point5._bufferIndex < 0) {
6491
6615
  point5._bufferIndex = 0;
6492
6616
  }
@@ -6689,30 +6813,34 @@ function serializeChunks(chunks, expandTabs) {
6689
6813
  let value;
6690
6814
  if (typeof chunk === "string") {
6691
6815
  value = chunk;
6692
- } else switch (chunk) {
6693
- case -5: {
6694
- value = "\r";
6695
- break;
6696
- }
6697
- case -4: {
6698
- value = "\n";
6699
- break;
6700
- }
6701
- case -3: {
6702
- value = "\r\n";
6703
- break;
6704
- }
6705
- case -2: {
6706
- value = expandTabs ? " " : " ";
6707
- break;
6708
- }
6709
- case -1: {
6710
- if (!expandTabs && atTab) continue;
6711
- value = " ";
6712
- break;
6713
- }
6714
- default: {
6715
- value = String.fromCharCode(chunk);
6816
+ } else {
6817
+ switch (chunk) {
6818
+ case -5: {
6819
+ value = "\r";
6820
+ break;
6821
+ }
6822
+ case -4: {
6823
+ value = "\n";
6824
+ break;
6825
+ }
6826
+ case -3: {
6827
+ value = "\r\n";
6828
+ break;
6829
+ }
6830
+ case -2: {
6831
+ value = expandTabs ? " " : " ";
6832
+ break;
6833
+ }
6834
+ case -1: {
6835
+ if (!expandTabs && atTab) {
6836
+ continue;
6837
+ }
6838
+ value = " ";
6839
+ break;
6840
+ }
6841
+ default: {
6842
+ value = String.fromCharCode(chunk);
6843
+ }
6716
6844
  }
6717
6845
  }
6718
6846
  atTab = chunk === -2;
@@ -6763,14 +6891,9 @@ function preprocess() {
6763
6891
  let atCarriageReturn;
6764
6892
  return preprocessor;
6765
6893
  function preprocessor(value, encoding, end) {
6766
- const chunks = [];
6767
- let match;
6768
- let next2;
6769
- let startPosition;
6770
- let endPosition;
6771
- let code4;
6772
6894
  value = buffer + (typeof value === "string" ? value.toString() : new TextDecoder(encoding || void 0).decode(value));
6773
- startPosition = 0;
6895
+ const chunks = [];
6896
+ let startPosition = 0;
6774
6897
  buffer = "";
6775
6898
  if (start2) {
6776
6899
  if (value.charCodeAt(0) === 65279) {
@@ -6780,9 +6903,9 @@ function preprocess() {
6780
6903
  }
6781
6904
  while (startPosition < value.length) {
6782
6905
  search.lastIndex = startPosition;
6783
- match = search.exec(value);
6784
- endPosition = match && match.index !== void 0 ? match.index : value.length;
6785
- code4 = value.charCodeAt(endPosition);
6906
+ const match = search.exec(value);
6907
+ const endPosition = match && match.index !== void 0 ? match.index : value.length;
6908
+ const code4 = value.charCodeAt(endPosition);
6786
6909
  if (!match) {
6787
6910
  buffer = value.slice(startPosition);
6788
6911
  break;
@@ -6806,9 +6929,11 @@ function preprocess() {
6806
6929
  break;
6807
6930
  }
6808
6931
  case 9: {
6809
- next2 = Math.ceil(column / 4) * 4;
6932
+ const next2 = Math.ceil(column / 4) * 4;
6810
6933
  chunks.push(-2);
6811
- while (column++ < next2) chunks.push(-1);
6934
+ while (column++ < next2) {
6935
+ chunks.push(-1);
6936
+ }
6812
6937
  break;
6813
6938
  }
6814
6939
  case 10: {
@@ -6825,8 +6950,12 @@ function preprocess() {
6825
6950
  startPosition = endPosition + 1;
6826
6951
  }
6827
6952
  if (end) {
6828
- if (atCarriageReturn) chunks.push(-5);
6829
- if (buffer) chunks.push(buffer);
6953
+ if (atCarriageReturn) {
6954
+ chunks.push(-5);
6955
+ }
6956
+ if (buffer) {
6957
+ chunks.push(buffer);
6958
+ }
6830
6959
  chunks.push(null);
6831
6960
  }
6832
6961
  return chunks;
@@ -19644,6 +19773,7 @@ var constructsWithoutStrikethrough = [
19644
19773
  "titleQuote",
19645
19774
  "titleApostrophe"
19646
19775
  ];
19776
+ handleDelete.attention = attentionDelete;
19647
19777
  handleDelete.peek = peekDelete;
19648
19778
  function gfmStrikethroughFromMarkdown() {
19649
19779
  return {
@@ -19654,35 +19784,39 @@ function gfmStrikethroughFromMarkdown() {
19654
19784
  }
19655
19785
  function gfmStrikethroughToMarkdown() {
19656
19786
  return {
19787
+ handlers: { delete: handleDelete },
19657
19788
  unsafe: [
19658
19789
  {
19659
19790
  character: "~",
19660
19791
  inConstruct: "phrasing",
19661
19792
  notInConstruct: constructsWithoutStrikethrough
19662
19793
  }
19663
- ],
19664
- handlers: { delete: handleDelete }
19794
+ ]
19665
19795
  };
19666
19796
  }
19667
19797
  function enterStrikethrough(token) {
19668
- this.enter({ type: "delete", children: [] }, token);
19798
+ this.enter({ type: "delete", children: [], position: void 0 }, token);
19669
19799
  }
19670
19800
  function exitStrikethrough(token) {
19671
19801
  this.exit(token);
19672
19802
  }
19673
19803
  function handleDelete(node2, _3, state, info) {
19674
19804
  const tracker = state.createTracker(info);
19805
+ const sequence = state.stack.includes("strikethrough") ? "~" : "~~";
19675
19806
  const exit3 = state.enter("strikethrough");
19676
- let value = tracker.move("~~");
19807
+ let value = tracker.move(sequence);
19677
19808
  value += state.containerPhrasing(node2, {
19678
19809
  ...tracker.current(),
19679
19810
  before: value,
19680
19811
  after: "~"
19681
19812
  });
19682
- value += tracker.move("~~");
19813
+ value += tracker.move(sequence);
19683
19814
  exit3();
19684
19815
  return value;
19685
19816
  }
19817
+ function attentionDelete() {
19818
+ return { construct: "strikethrough", markers: ["~"], sizes: [2, 1] };
19819
+ }
19686
19820
  function peekDelete() {
19687
19821
  return "~";
19688
19822
  }
@@ -19828,6 +19962,34 @@ function toAlignment(value) {
19828
19962
  return code4 === 67 || code4 === 99 ? 99 : code4 === 76 || code4 === 108 ? 108 : code4 === 82 || code4 === 114 ? 114 : 0;
19829
19963
  }
19830
19964
 
19965
+ // ../node_modules/mdast-util-phrasing/lib/index.js
19966
+ var phrasing = (
19967
+ /** @type {(node?: unknown) => node is Exclude<PhrasingContent, Html>} */
19968
+ convert([
19969
+ "break",
19970
+ "delete",
19971
+ "emphasis",
19972
+ // To do: next major: removed since footnotes were added to GFM.
19973
+ "footnote",
19974
+ "footnoteReference",
19975
+ "image",
19976
+ "imageReference",
19977
+ "inlineCode",
19978
+ // Enabled by `mdast-util-math`:
19979
+ "inlineMath",
19980
+ "link",
19981
+ "linkReference",
19982
+ // Enabled by `mdast-util-mdx`:
19983
+ "mdxJsxTextElement",
19984
+ // Enabled by `mdast-util-mdx`:
19985
+ "mdxTextExpression",
19986
+ "strong",
19987
+ "text",
19988
+ // Enabled by `mdast-util-directive`:
19989
+ "textDirective"
19990
+ ])
19991
+ );
19992
+
19831
19993
  // ../node_modules/mdast-util-to-markdown/lib/handle/blockquote.js
19832
19994
  function blockquote2(node2, _3, state, info) {
19833
19995
  const exit3 = state.enter("blockquote");
@@ -19869,8 +20031,9 @@ function listInScope(stack, list4, none) {
19869
20031
  function hardBreak2(_3, _1, state, info) {
19870
20032
  let index4 = -1;
19871
20033
  while (++index4 < state.unsafe.length) {
19872
- if (state.unsafe[index4].character === "\n" && patternInScope(state.stack, state.unsafe[index4])) {
19873
- return /[ \t]/.test(info.before) ? "" : " ";
20034
+ const pattern = state.unsafe[index4];
20035
+ if (pattern.character === "\n" && !pattern.before && !pattern.after && patternInScope(state.stack, pattern)) {
20036
+ return /[\t ]/.test(info.before) ? "" : " ";
19874
20037
  }
19875
20038
  }
19876
20039
  return "\\\n";
@@ -19905,8 +20068,8 @@ function formatCodeAsIndented(node2, state) {
19905
20068
  return Boolean(
19906
20069
  state.options.fences === false && node2.value && // If there’s no info…
19907
20070
  !node2.lang && // And there’s a non-whitespace character…
19908
- /[^ \r\n]/.test(node2.value) && // And the value doesn’t start or end in a blank…
19909
- !/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(node2.value)
20071
+ /[^\n\r ]/.test(node2.value) && // And the value doesn’t start or end in a blank…
20072
+ !/^[\t ]*(?:[\n\r]|$)|(?:^|[\n\r])[\t ]*$/.test(node2.value)
19910
20073
  );
19911
20074
  }
19912
20075
 
@@ -19925,7 +20088,6 @@ function checkFence(state) {
19925
20088
  function code2(node2, _3, state, info) {
19926
20089
  const marker = checkFence(state);
19927
20090
  const raw2 = node2.value || "";
19928
- const suffix = marker === "`" ? "GraveAccent" : "Tilde";
19929
20091
  if (formatCodeAsIndented(node2, state)) {
19930
20092
  const exit4 = state.enter("codeIndented");
19931
20093
  const value2 = state.indentLines(raw2, map2);
@@ -19935,6 +20097,7 @@ function code2(node2, _3, state, info) {
19935
20097
  const tracker = state.createTracker(info);
19936
20098
  const sequence = marker.repeat(Math.max(longestStreak(raw2, marker) + 1, 3));
19937
20099
  const exit3 = state.enter("codeFenced");
20100
+ const suffix = marker === "`" ? "GraveAccent" : "Tilde";
19938
20101
  let value = tracker.move(sequence);
19939
20102
  if (node2.lang) {
19940
20103
  const subexit = state.enter(`codeFencedLang${suffix}`);
@@ -20051,93 +20214,32 @@ function checkEmphasis(state) {
20051
20214
  return marker;
20052
20215
  }
20053
20216
 
20054
- // ../node_modules/mdast-util-to-markdown/lib/util/encode-character-reference.js
20055
- function encodeCharacterReference(code4) {
20056
- return "&#x" + code4.toString(16).toUpperCase() + ";";
20057
- }
20058
-
20059
- // ../node_modules/mdast-util-to-markdown/lib/util/encode-info.js
20060
- function encodeInfo(outside, inside, marker) {
20061
- const outsideKind = classifyCharacter(outside);
20062
- const insideKind = classifyCharacter(inside);
20063
- if (outsideKind === void 0) {
20064
- return insideKind === void 0 ? (
20065
- // Letter inside:
20066
- // we have to encode *both* letters for `_` as it is looser.
20067
- // it already forms for `*` (and GFMs `~`).
20068
- marker === "_" ? { inside: true, outside: true } : { inside: false, outside: false }
20069
- ) : insideKind === 1 ? (
20070
- // Whitespace inside: encode both (letter, whitespace).
20071
- { inside: true, outside: true }
20072
- ) : (
20073
- // Punctuation inside: encode outer (letter)
20074
- { inside: false, outside: true }
20075
- );
20076
- }
20077
- if (outsideKind === 1) {
20078
- return insideKind === void 0 ? (
20079
- // Letter inside: already forms.
20080
- { inside: false, outside: false }
20081
- ) : insideKind === 1 ? (
20082
- // Whitespace inside: encode both (whitespace).
20083
- { inside: true, outside: true }
20084
- ) : (
20085
- // Punctuation inside: already forms.
20086
- { inside: false, outside: false }
20087
- );
20088
- }
20089
- return insideKind === void 0 ? (
20090
- // Letter inside: already forms.
20091
- { inside: false, outside: false }
20092
- ) : insideKind === 1 ? (
20093
- // Whitespace inside: encode inner (whitespace).
20094
- { inside: true, outside: false }
20095
- ) : (
20096
- // Punctuation inside: already forms.
20097
- { inside: false, outside: false }
20098
- );
20099
- }
20100
-
20101
20217
  // ../node_modules/mdast-util-to-markdown/lib/handle/emphasis.js
20102
- emphasis2.peek = emphasisPeek;
20218
+ emphasis2.attention = attention2;
20219
+ emphasis2.peek = peek;
20103
20220
  function emphasis2(node2, _3, state, info) {
20104
- const marker = checkEmphasis(state);
20105
- const exit3 = state.enter("emphasis");
20106
- const tracker = state.createTracker(info);
20107
- const before = tracker.move(marker);
20108
- let between = tracker.move(
20109
- state.containerPhrasing(node2, {
20110
- after: marker,
20111
- before,
20112
- ...tracker.current()
20113
- })
20114
- );
20115
- const betweenHead = between.charCodeAt(0);
20116
- const open = encodeInfo(
20117
- info.before.charCodeAt(info.before.length - 1),
20118
- betweenHead,
20119
- marker
20120
- );
20121
- if (open.inside) {
20122
- between = encodeCharacterReference(betweenHead) + between.slice(1);
20123
- }
20124
- const betweenTail = between.charCodeAt(between.length - 1);
20125
- const close = encodeInfo(info.after.charCodeAt(0), betweenTail, marker);
20126
- if (close.inside) {
20127
- between = between.slice(0, -1) + encodeCharacterReference(betweenTail);
20128
- }
20129
- const after = tracker.move(marker);
20221
+ const exit3 = state.enter("phrasing");
20222
+ const value = state.containerPhrasing({ type: "root", children: [node2] }, info);
20130
20223
  exit3();
20131
- state.attentionEncodeSurroundingInfo = {
20132
- after: close.outside,
20133
- before: open.outside
20224
+ return value;
20225
+ }
20226
+ function attention2(_3, state) {
20227
+ const marker = checkEmphasis(state);
20228
+ return {
20229
+ construct: "emphasis",
20230
+ markers: marker === "*" ? ["*", "_"] : ["_", "*"],
20231
+ sizes: [1]
20134
20232
  };
20135
- return before + between + after;
20136
20233
  }
20137
- function emphasisPeek(_3, _1, state) {
20234
+ function peek(_3, _1, state) {
20138
20235
  return state.options.emphasis || "*";
20139
20236
  }
20140
20237
 
20238
+ // ../node_modules/mdast-util-to-markdown/lib/util/encode-character-reference.js
20239
+ function encodeCharacterReference(code4) {
20240
+ return "&#x" + code4.toString(16).toUpperCase() + ";";
20241
+ }
20242
+
20141
20243
  // ../node_modules/mdast-util-to-markdown/lib/util/format-heading-as-setext.js
20142
20244
  function formatHeadingAsSetext(node2, state) {
20143
20245
  let literalWithBreak = false;
@@ -20182,8 +20284,9 @@ function heading2(node2, _3, state, info) {
20182
20284
  after: "\n",
20183
20285
  ...tracker.current()
20184
20286
  });
20185
- if (/^[\t ]/.test(value)) {
20186
- value = encodeCharacterReference(value.charCodeAt(0)) + value.slice(1);
20287
+ const head = value.charCodeAt(0);
20288
+ if (head === 9 || head === 32) {
20289
+ value = encodeCharacterReference(head) + value.slice(1);
20187
20290
  }
20188
20291
  value = value ? sequence + " " + value : sequence;
20189
20292
  if (state.options.closeAtx) {
@@ -20276,7 +20379,9 @@ function imageReference2(node2, _3, state, info) {
20276
20379
  value += tracker.move(alt + "][");
20277
20380
  subexit();
20278
20381
  const stack = state.stack;
20279
- state.stack = [];
20382
+ state.stack = stack.filter(function(d3) {
20383
+ return d3 !== "phrasing";
20384
+ });
20280
20385
  subexit = state.enter("reference");
20281
20386
  const reference = state.safe(state.associationId(node2), {
20282
20387
  before: value,
@@ -20308,14 +20413,14 @@ function inlineCode2(node2, _3, state) {
20308
20413
  while (new RegExp("(^|[^`])" + sequence + "([^`]|$)").test(value)) {
20309
20414
  sequence += "`";
20310
20415
  }
20311
- if (/[^ \r\n]/.test(value) && (/^[ \r\n]/.test(value) && /[ \r\n]$/.test(value) || /^`|`$/.test(value))) {
20416
+ if (/[^\n\r ]/.test(value) && (/^[\n\r ]/.test(value) && /[\n\r ]$/.test(value) || /^`|`$/.test(value))) {
20312
20417
  value = " " + value + " ";
20313
20418
  }
20314
20419
  while (++index4 < state.unsafe.length) {
20315
20420
  const pattern = state.unsafe[index4];
20316
20421
  const expression = state.compilePattern(pattern);
20317
- let match;
20318
20422
  if (!pattern.atBreak) continue;
20423
+ let match;
20319
20424
  while (match = expression.exec(value)) {
20320
20425
  let position4 = match.index;
20321
20426
  if (value.charCodeAt(position4) === 10 && value.charCodeAt(position4 - 1) === 13) {
@@ -20335,11 +20440,11 @@ function formatLinkAsAutolink(node2, state) {
20335
20440
  const raw2 = toString(node2);
20336
20441
  return Boolean(
20337
20442
  !state.options.resourceLink && // If there’s a url…
20338
- node2.url && // And there’s a no title…
20443
+ node2.url && // And there’s no title…
20339
20444
  !node2.title && // And the content of `node` is a single text node…
20340
20445
  node2.children && node2.children.length === 1 && node2.children[0].type === "text" && // And if the url is the same as the content…
20341
20446
  (raw2 === node2.url || "mailto:" + raw2 === node2.url) && // And that starts w/ a protocol…
20342
- /^[a-z][a-z+.-]+:/i.test(node2.url) && // And that doesn’t contain ASCII control codes (character escapes and
20447
+ /^[a-z][+\-.a-z]+:/i.test(node2.url) && // And that doesn’t contain ASCII control codes (character escapes and
20343
20448
  // references don’t work), space, or angle brackets…
20344
20449
  !/[\0- <>\u007F]/.test(node2.url)
20345
20450
  );
@@ -20351,12 +20456,12 @@ function link2(node2, _3, state, info) {
20351
20456
  const quote = checkQuote(state);
20352
20457
  const suffix = quote === '"' ? "Quote" : "Apostrophe";
20353
20458
  const tracker = state.createTracker(info);
20354
- let exit3;
20355
- let subexit;
20356
20459
  if (formatLinkAsAutolink(node2, state)) {
20357
20460
  const stack = state.stack;
20358
- state.stack = [];
20359
- exit3 = state.enter("autolink");
20461
+ state.stack = stack.filter(function(d3) {
20462
+ return d3 !== "phrasing";
20463
+ });
20464
+ const exit4 = state.enter("autolink");
20360
20465
  let value2 = tracker.move("<");
20361
20466
  value2 += tracker.move(
20362
20467
  state.containerPhrasing(node2, {
@@ -20366,12 +20471,12 @@ function link2(node2, _3, state, info) {
20366
20471
  })
20367
20472
  );
20368
20473
  value2 += tracker.move(">");
20369
- exit3();
20474
+ exit4();
20370
20475
  state.stack = stack;
20371
20476
  return value2;
20372
20477
  }
20373
- exit3 = state.enter("link");
20374
- subexit = state.enter("label");
20478
+ const exit3 = state.enter("link");
20479
+ let subexit = state.enter("label");
20375
20480
  let value = tracker.move("[");
20376
20481
  value += tracker.move(
20377
20482
  state.containerPhrasing(node2, {
@@ -20441,7 +20546,9 @@ function linkReference2(node2, _3, state, info) {
20441
20546
  value += tracker.move(text10 + "][");
20442
20547
  subexit();
20443
20548
  const stack = state.stack;
20444
- state.stack = [];
20549
+ state.stack = stack.filter(function(d3) {
20550
+ return d3 !== "phrasing";
20551
+ });
20445
20552
  subexit = state.enter("reference");
20446
20553
  const reference = state.safe(state.associationId(node2), {
20447
20554
  before: value,
@@ -20607,41 +20714,16 @@ function paragraph2(node2, _3, state, info) {
20607
20714
  return value;
20608
20715
  }
20609
20716
 
20610
- // ../node_modules/mdast-util-phrasing/lib/index.js
20611
- var phrasing = (
20612
- /** @type {(node?: unknown) => node is Exclude<PhrasingContent, Html>} */
20613
- convert([
20614
- "break",
20615
- "delete",
20616
- "emphasis",
20617
- // To do: next major: removed since footnotes were added to GFM.
20618
- "footnote",
20619
- "footnoteReference",
20620
- "image",
20621
- "imageReference",
20622
- "inlineCode",
20623
- // Enabled by `mdast-util-math`:
20624
- "inlineMath",
20625
- "link",
20626
- "linkReference",
20627
- // Enabled by `mdast-util-mdx`:
20628
- "mdxJsxTextElement",
20629
- // Enabled by `mdast-util-mdx`:
20630
- "mdxTextExpression",
20631
- "strong",
20632
- "text",
20633
- // Enabled by `mdast-util-directive`:
20634
- "textDirective"
20635
- ])
20636
- );
20637
-
20638
20717
  // ../node_modules/mdast-util-to-markdown/lib/handle/root.js
20639
20718
  function root5(node2, _3, state, info) {
20640
20719
  const hasPhrasing = node2.children.some(function(d3) {
20641
20720
  return phrasing(d3);
20642
20721
  });
20643
- const container = hasPhrasing ? state.containerPhrasing : state.containerFlow;
20644
- return container.call(state, node2, info);
20722
+ if (!hasPhrasing) return state.containerFlow(node2, info);
20723
+ const exit3 = state.enter("phrasing");
20724
+ const value = state.containerPhrasing(node2, info);
20725
+ exit3();
20726
+ return value;
20645
20727
  }
20646
20728
 
20647
20729
  // ../node_modules/mdast-util-to-markdown/lib/util/check-strong.js
@@ -20656,42 +20738,23 @@ function checkStrong(state) {
20656
20738
  }
20657
20739
 
20658
20740
  // ../node_modules/mdast-util-to-markdown/lib/handle/strong.js
20659
- strong2.peek = strongPeek;
20741
+ strong2.attention = attention3;
20742
+ strong2.peek = peek2;
20660
20743
  function strong2(node2, _3, state, info) {
20661
- const marker = checkStrong(state);
20662
- const exit3 = state.enter("strong");
20663
- const tracker = state.createTracker(info);
20664
- const before = tracker.move(marker + marker);
20665
- let between = tracker.move(
20666
- state.containerPhrasing(node2, {
20667
- after: marker,
20668
- before,
20669
- ...tracker.current()
20670
- })
20671
- );
20672
- const betweenHead = between.charCodeAt(0);
20673
- const open = encodeInfo(
20674
- info.before.charCodeAt(info.before.length - 1),
20675
- betweenHead,
20676
- marker
20677
- );
20678
- if (open.inside) {
20679
- between = encodeCharacterReference(betweenHead) + between.slice(1);
20680
- }
20681
- const betweenTail = between.charCodeAt(between.length - 1);
20682
- const close = encodeInfo(info.after.charCodeAt(0), betweenTail, marker);
20683
- if (close.inside) {
20684
- between = between.slice(0, -1) + encodeCharacterReference(betweenTail);
20685
- }
20686
- const after = tracker.move(marker + marker);
20744
+ const exit3 = state.enter("phrasing");
20745
+ const value = state.containerPhrasing({ type: "root", children: [node2] }, info);
20687
20746
  exit3();
20688
- state.attentionEncodeSurroundingInfo = {
20689
- after: close.outside,
20690
- before: open.outside
20747
+ return value;
20748
+ }
20749
+ function attention3(_3, state) {
20750
+ const marker = checkStrong(state);
20751
+ return {
20752
+ construct: "strong",
20753
+ markers: marker === "*" ? ["*", "_"] : ["_", "*"],
20754
+ sizes: [2]
20691
20755
  };
20692
- return before + between + after;
20693
20756
  }
20694
- function strongPeek(_3, _1, state) {
20757
+ function peek2(_3, _1, state) {
20695
20758
  return state.options.strong || "*";
20696
20759
  }
20697
20760
 
@@ -21699,7 +21762,7 @@ function gfmStrikethrough(options) {
21699
21762
  }
21700
21763
 
21701
21764
  // ../node_modules/micromark-extension-gfm-table/lib/edit-map.js
21702
- var EditMap = class {
21765
+ var EditMap2 = class {
21703
21766
  /**
21704
21767
  * Create a new edit map.
21705
21768
  */
@@ -21720,7 +21783,7 @@ var EditMap = class {
21720
21783
  * Nothing.
21721
21784
  */
21722
21785
  add(index4, remove, add) {
21723
- addImplementation(this, index4, remove, add);
21786
+ addImplementation2(this, index4, remove, add);
21724
21787
  }
21725
21788
  // To do: add this when moving to `micromark`.
21726
21789
  // /**
@@ -21769,7 +21832,7 @@ var EditMap = class {
21769
21832
  this.index.clear();
21770
21833
  }
21771
21834
  };
21772
- function addImplementation(editMap, at, remove, add) {
21835
+ function addImplementation2(editMap, at, remove, add) {
21773
21836
  if (remove === 0 && add.length === 0) {
21774
21837
  return;
21775
21838
  }
@@ -22054,7 +22117,7 @@ function resolveTable(events, context) {
22054
22117
  let currentTable;
22055
22118
  let currentBody;
22056
22119
  let currentCell;
22057
- const map3 = new EditMap();
22120
+ const map3 = new EditMap2();
22058
22121
  while (++index4 < events.length) {
22059
22122
  const event = events[index4];
22060
22123
  const token = event[1];