@unchainedshop/admin-ui 5.0.0-alpha.12 → 5.0.0-alpha.14

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 (292) hide show
  1. package/dist/{chunk-ATZJXTRA.js → chunk-5UHBGLFV.js} +39 -1
  2. package/dist/{chunk-4MXPTVDL.js → chunk-6WMH7PLC.js} +1 -1
  3. package/dist/{chunk-GWMLIF3C.js → chunk-EKWWSFDK.js} +1 -1
  4. package/dist/{chunk-Q6S3LBUF.js → chunk-JC6PXYZP.js} +7 -1
  5. package/dist/{chunk-BOMSMJF2.js → chunk-JGER2LQO.js} +1 -0
  6. package/dist/{chunk-YUXHILXY.js → chunk-M2242FCR.js} +1 -1
  7. package/dist/{chunk-33ZO52Z7.js → chunk-NUGWX3KO.js} +123 -19
  8. package/dist/{chunk-ED2FP42R.js → chunk-XZ2V6XTD.js} +2 -2
  9. package/dist/components/ui/index.d.ts +1 -0
  10. package/dist/components/ui/index.d.ts.map +1 -1
  11. package/dist/form.js +7 -99
  12. package/dist/gql/operation-types.d.ts +51 -18
  13. package/dist/gql/operation-types.d.ts.map +1 -1
  14. package/dist/gql/schema-types.d.ts +25 -0
  15. package/dist/gql/schema-types.d.ts.map +1 -1
  16. package/dist/hooks.js +4 -4
  17. package/dist/modules/UnchainedContext/UnchainedContext.d.ts +1 -0
  18. package/dist/modules/UnchainedContext/UnchainedContext.d.ts.map +1 -1
  19. package/dist/modules/UnchainedContext/useUnchainedContext.d.ts +1 -0
  20. package/dist/modules/UnchainedContext/useUnchainedContext.d.ts.map +1 -1
  21. package/dist/modules/accounts.js +47 -1
  22. package/dist/modules/assortment.js +1 -1
  23. package/dist/modules/common/components/SearchWithTags.d.ts +10 -0
  24. package/dist/modules/common/components/SearchWithTags.d.ts.map +1 -0
  25. package/dist/modules/common/hooks/useShopInfo.d.ts +1 -0
  26. package/dist/modules/common/hooks/useShopInfo.d.ts.map +1 -1
  27. package/dist/modules/enrollment.js +24 -10
  28. package/dist/modules/forms/lib/validators.d.ts +3 -1
  29. package/dist/modules/forms/lib/validators.d.ts.map +1 -1
  30. package/dist/modules/order/fragments/OrderDetailFragment.d.ts.map +1 -1
  31. package/dist/modules/order.js +0 -1
  32. package/dist/modules/product/hooks/useProductsCount.d.ts +1 -1
  33. package/dist/modules/product/hooks/useProductsCount.d.ts.map +1 -1
  34. package/dist/modules/product-review.js +1 -1
  35. package/dist/modules/product.js +436 -24
  36. package/dist/modules/quotation.js +1 -0
  37. package/dist/ui.js +1317 -411
  38. package/out/403/index.html +3 -3
  39. package/out/404/index.html +3 -3
  40. package/out/404.html +3 -3
  41. package/out/423/index.html +3 -3
  42. package/out/500/index.html +3 -3
  43. package/out/_next/static/WEaZ5SW9HLnJWzXs84JMH/_buildManifest.js +266 -0
  44. package/out/_next/static/chunks/{2_0v0fw6x71zy.js → 00p6gl0n0kga2.js} +4 -4
  45. package/out/_next/static/chunks/0389l__ljgq-b.js +1 -0
  46. package/out/_next/static/chunks/039xltalow0bh.js +1 -0
  47. package/out/_next/static/chunks/{0w9d4swf95hvu.js → 03awz8e25u6-9.js} +1 -1
  48. package/out/_next/static/chunks/04kydtjv2qqb1.js +39 -0
  49. package/out/_next/static/chunks/05ghb-a4hshp1.js +24 -0
  50. package/out/_next/static/chunks/06gqojz2tfk7h.js +33 -0
  51. package/out/_next/static/chunks/08e3-wndual-j.js +183 -0
  52. package/out/_next/static/chunks/{41c4n9whpyrjc.js → 08gngcgmdigfl.js} +2 -2
  53. package/out/_next/static/chunks/{3e7d8sb4289js.js → 08htfpcq8k2ct.js} +1 -1
  54. package/out/_next/static/chunks/{45c05mbjow5wz.js → 0ao00r36i0nko.js} +1 -1
  55. package/out/_next/static/chunks/{01isyk4v59s_4.js → 0az9r1m1m5nw7.js} +2 -2
  56. package/out/_next/static/chunks/{2q988j4vovsiy.js → 0bahbwxzev843.js} +3 -3
  57. package/out/_next/static/chunks/{1z-etrje5tsj6.js → 0ejd4so6pfsb9.js} +2 -1
  58. package/out/_next/static/chunks/0f0aouv41459l.js +99 -0
  59. package/out/_next/static/chunks/{3fevbt4ysloo8.js → 0f4mwm9gegsvc.js} +3 -3
  60. package/out/_next/static/chunks/{1fehej_7rgmmo.js → 0ffdde8s4b7e2.js} +1 -1
  61. package/out/_next/static/chunks/0ftb36h7poyeo.js +235 -0
  62. package/out/_next/static/chunks/{1z1d11slpalrq.js → 0gclli_nyb0px.js} +1 -1
  63. package/out/_next/static/chunks/{0hv3x0mo1tt7i.js → 0hv62tllrjbgx.js} +2 -2
  64. package/out/_next/static/chunks/0ik3suboifvvc.js +1 -0
  65. package/out/_next/static/chunks/{3exy4ii5maq4x.js → 0jsbw2npug66o.js} +1 -1
  66. package/out/_next/static/chunks/0lgoprkr2wj68.js +12 -0
  67. package/out/_next/static/chunks/0mpgc4f7hc1dd.js +7 -0
  68. package/out/_next/static/chunks/{2y11qf38baxpu.js → 0oauw10y-zu7q.js} +5 -5
  69. package/out/_next/static/chunks/0pnifxx4n6jz4.js +30 -0
  70. package/out/_next/static/chunks/{2bxdh-td1el8z.js → 0rj53mrsrvu49.js} +1 -1
  71. package/out/_next/static/chunks/{3ek680kdzjdr7.js → 0v2f0xq8mp63h.js} +1 -1
  72. package/out/_next/static/chunks/{32whi9clpxjd0.js → 0wvck3kmtd8h3.js} +1 -1
  73. package/out/_next/static/chunks/{3h6a3clw5m5ro.js → 0y-xf7e4lgmru.js} +1 -1
  74. package/out/_next/static/chunks/12z0--swhgre2.js +33 -0
  75. package/out/_next/static/chunks/139wqbl161pdw.js +12 -0
  76. package/out/_next/static/chunks/{1hzt0aoixrv4_.js → 13sl42_jx13hh.js} +2 -2
  77. package/out/_next/static/chunks/14wav1vmqi2oo.js +371 -0
  78. package/out/_next/static/chunks/{3b1kt-r_75q1a.js → 15oodwh44nrve.js} +2 -2
  79. package/out/_next/static/chunks/15ullli2vlj87.js +8 -0
  80. package/out/_next/static/chunks/17g3a6iz0s59f.js +837 -0
  81. package/out/_next/static/chunks/{2m38nntt3z8zi.js → 19-fs9eq1syvw.js} +3 -3
  82. package/out/_next/static/chunks/{3fu072xwkf88o.js → 195cwzh3q1i0h.js} +2 -1
  83. package/out/_next/static/chunks/1fou9xz0_rm6d.js +5 -0
  84. package/out/_next/static/chunks/{37jjn1wguhj-a.js → 1k1b69hvwr-0g.js} +1 -1
  85. package/out/_next/static/chunks/{0rrhyxuk32t3n.js → 1kyjdq0bnkw10.js} +2 -2
  86. package/out/_next/static/chunks/{0v1tb34y7e1y4.js → 1l2ix83845lui.js} +1 -1
  87. package/out/_next/static/chunks/{3x_gia2m5w9_l.js → 1ossmsdseqyeu.js} +6 -6
  88. package/out/_next/static/chunks/1pm7k55e4pfpm.js +59 -0
  89. package/out/_next/static/chunks/1pqyz1opm5_7r.js +1 -0
  90. package/out/_next/static/chunks/{39moagn46hde9.js → 1qd4fupa708s4.js} +2 -2
  91. package/out/_next/static/chunks/{3o-h2po9z09dk.js → 1t1ecrjkykbv1.js} +1 -1
  92. package/out/_next/static/chunks/{28o6402k4vuky.js → 1tej7js0fwv1h.js} +3 -3
  93. package/out/_next/static/chunks/1th8knz7txt9f.js +5 -0
  94. package/out/_next/static/chunks/1tuf110jbpl_r.js +1 -0
  95. package/out/_next/static/chunks/1tzkeg4c-br-z.js +17 -0
  96. package/out/_next/static/chunks/{0_3suta3t3lus.js → 1u7l4tos3wysc.js} +2 -2
  97. package/out/_next/static/chunks/1v0ag3k96c56s.js +1 -0
  98. package/out/_next/static/chunks/1w6iuc_ba9g-3.js +3 -0
  99. package/out/_next/static/chunks/1x7cm_fuwp9m8.js +1 -0
  100. package/out/_next/static/chunks/1yv22tvuqofr_.js +296 -0
  101. package/out/_next/static/chunks/{0rt4le6syjqdj.js → 2-s-hteo3lrnj.js} +12 -12
  102. package/out/_next/static/chunks/20p146xfq-xrq.js +5 -0
  103. package/out/_next/static/chunks/{3ujdligrod612.js → 20t2g2u3jhtvy.js} +1 -1
  104. package/out/_next/static/chunks/{1ug1ie2lrhi0a.js → 231mhpexhdm2g.js} +1 -1
  105. package/out/_next/static/chunks/24zfmgc4cu-n1.js +9 -0
  106. package/out/_next/static/chunks/{44b7_q6pkf1k9.js → 25b_pi2_ro9yy.js} +1 -1
  107. package/out/_next/static/chunks/{2uo6puoi0y082.js → 2693w1263bb3s.js} +1 -1
  108. package/out/_next/static/chunks/{0i481ym5-ss1t.js → 26yarz_db5ms0.js} +1 -1
  109. package/out/_next/static/chunks/28xbb7hkhkoup.js +1 -0
  110. package/out/_next/static/chunks/299pou8yuoq6b.js +116 -0
  111. package/out/_next/static/chunks/2_cq751vth7u7.js +81 -0
  112. package/out/_next/static/chunks/2a2cayocu5mc3.js +1 -0
  113. package/out/_next/static/chunks/{1th1-x1szvnq8.js → 2dn2ma73q9ye0.js} +1 -1
  114. package/out/_next/static/chunks/{3www97fxyknos.js → 2fnn6q9fmhu3s.js} +1 -1
  115. package/out/_next/static/chunks/{3pls-kicv4xu9.js → 2ga95n_v_6_7b.js} +1 -1
  116. package/out/_next/static/chunks/{1q7wxp4rlhy0x.js → 2gfljy_oo0nnr.js} +5 -5
  117. package/out/_next/static/chunks/{0qv2nce7okzy5.js → 2gfot_-pkeohl.js} +1 -1
  118. package/out/_next/static/chunks/2h4bxz0oww5pk.js +4 -0
  119. package/out/_next/static/chunks/2j4g1tyyp8ta1.js +1 -0
  120. package/out/_next/static/chunks/2mt78e61hd_4p.js +100 -0
  121. package/out/_next/static/chunks/{05474mknnr_tw.js → 2rri_ex6s-d8g.js} +1 -1
  122. package/out/_next/static/chunks/{2ud5j0_nqocf4.js → 2sc6dwzzc2t7n.js} +1 -1
  123. package/out/_next/static/chunks/2texlu369byon.js +1 -0
  124. package/out/_next/static/chunks/{3lr6hkso67d68.js → 2tq8sqd3-wavo.js} +2 -2
  125. package/out/_next/static/chunks/2u2obxhc_n6xk.js +119 -0
  126. package/out/_next/static/chunks/{157ndq6b9jcvv.js → 2u4cc_r_qo0s4.js} +4 -4
  127. package/out/_next/static/chunks/2u6n7ohruqpxp.js +1 -0
  128. package/out/_next/static/chunks/2u9myo1sjc-q0.js +276 -0
  129. package/out/_next/static/chunks/{0we1tw4xvdb7o.js → 2ubbeh02scr2l.js} +2 -2
  130. package/out/_next/static/chunks/{1w6gc_cygbi6h.js → 2v_bdu-atp2qq.js} +1 -1
  131. package/out/_next/static/chunks/{1gv0k-w7m83om.js → 2vyv371s8n48m.js} +2 -2
  132. package/out/_next/static/chunks/{24caedynuzux0.js → 2xd_5hafdvicw.js} +1 -1
  133. package/out/_next/static/chunks/2ym9q2u0yw0m8.js +326 -0
  134. package/out/_next/static/chunks/{131uuhqexo4si.js → 3-grp4-_b_uin.js} +2 -1
  135. package/out/_next/static/chunks/{2s-0q8i8lr2p2.js → 31i76bjr7wp3u.js} +1 -1
  136. package/out/_next/static/chunks/{1j2gw9gyg8j80.js → 32thgoqghnqfk.js} +2 -2
  137. package/out/_next/static/chunks/{3hmoy4f23y1s4.js → 33svzh7wrh2ca.js} +4 -4
  138. package/out/_next/static/chunks/{345s7967cwd02.js → 33v1m9okpss0r.js} +1 -1
  139. package/out/_next/static/chunks/34gspkpv7wikw.js +8 -0
  140. package/out/_next/static/chunks/{0mcu2o1ir2t_w.js → 35zhvtyq31ani.js} +1 -1
  141. package/out/_next/static/chunks/36vqjcd_y2j30.js +1 -0
  142. package/out/_next/static/chunks/{1msc4qrgaanh7.js → 38043sp-g7lor.js} +2 -2
  143. package/out/_next/static/chunks/395bs5xmcnl_3.js +31 -0
  144. package/out/_next/static/chunks/{2w3z7kqh6nbmw.js → 3_jqu6hq_bq0s.js} +2 -2
  145. package/out/_next/static/chunks/{153-_av1r1ssb.js → 3_tuio1shb_8w.js} +1 -1
  146. package/out/_next/static/chunks/{0br42_xli8-2x.js → 3_u_uxeaysv2y.js} +1 -1
  147. package/out/_next/static/chunks/{1bypzyw5fs3w2.js → 3e9x78_cfl4gs.js} +4 -4
  148. package/out/_next/static/chunks/3i7obrooylax2.js +1 -0
  149. package/out/_next/static/chunks/3ij_85v4doyfu.js +2 -0
  150. package/out/_next/static/chunks/3jgmo9q79w1-c.js +290 -0
  151. package/out/_next/static/chunks/{42dygj7ul4k54.js → 3jp_xvjzuj3ts.js} +2 -2
  152. package/out/_next/static/chunks/{1k06h8wbfrx_v.js → 3l9ixfzewn8ct.js} +1 -1
  153. package/out/_next/static/chunks/3ltrxqm61t2um.js +1 -0
  154. package/out/_next/static/chunks/{1bxznw06g-5u2.js → 3qt1oiw306jtf.js} +2 -2
  155. package/out/_next/static/chunks/{0zqdvl0b4w5nc.js → 3s5_6nq23zb_5.js} +1 -1
  156. package/out/_next/static/chunks/{1vzs8hvrsoslf.js → 3s_74oi_rqb7q.js} +1 -1
  157. package/out/_next/static/chunks/{2-qo63s4vlxol.js → 3skconxcf6r_s.js} +5 -5
  158. package/out/_next/static/chunks/{3xs_undkbcqp7.js → 3ud-crkzgoj7q.js} +3 -3
  159. package/out/_next/static/chunks/{2u64ldp2xfy8a.js → 3wr9v36meolw7.js} +71 -70
  160. package/out/_next/static/chunks/3xun85a44o067.js +1 -0
  161. package/out/_next/static/chunks/{0cdk-eqghrgee.js → 407elvwrmcfn6.js} +1 -1
  162. package/out/_next/static/chunks/40j4nxaeofft-.js +1 -0
  163. package/out/_next/static/chunks/{3k01tdsm6l20w.js → 42ijceja_327z.js} +2 -2
  164. package/out/_next/static/chunks/440jwge6wnjj6.js +1 -0
  165. package/out/_next/static/chunks/44xnlcqhabyj6.js +174 -0
  166. package/out/_offline/index.html +3 -3
  167. package/out/account/forgot-password/index.html +3 -3
  168. package/out/account/index.html +3 -3
  169. package/out/assortments/AssortmentDetailPage/index.html +3 -3
  170. package/out/assortments/index.html +3 -3
  171. package/out/assortments/new/index.html +3 -3
  172. package/out/copilot/index.html +3 -3
  173. package/out/country/CountryDetailPage/index.html +3 -3
  174. package/out/country/index.html +3 -3
  175. package/out/country/new/index.html +3 -3
  176. package/out/currency/CurrencyDetailPage/index.html +3 -3
  177. package/out/currency/index.html +3 -3
  178. package/out/currency/new/index.html +3 -3
  179. package/out/delivery-provider/DeliveryProviderDetailPage/index.html +3 -3
  180. package/out/delivery-provider/index.html +3 -3
  181. package/out/delivery-provider/new/index.html +3 -3
  182. package/out/enrollments/EnrollmentDetailPage/index.html +3 -3
  183. package/out/enrollments/index.html +3 -3
  184. package/out/events/EventDetailPage/index.html +3 -3
  185. package/out/events/index.html +3 -3
  186. package/out/exports/index.html +3 -3
  187. package/out/ext/[[...slug]]/index.html +3 -3
  188. package/out/external/index.html +3 -3
  189. package/out/filters/FilterDetailPage/index.html +3 -3
  190. package/out/filters/index.html +3 -3
  191. package/out/filters/new/index.html +3 -3
  192. package/out/index.html +3 -3
  193. package/out/install/index.html +3 -3
  194. package/out/language/LanguageDetailPage/index.html +3 -3
  195. package/out/language/index.html +3 -3
  196. package/out/language/new/index.html +3 -3
  197. package/out/log-in/index.html +3 -3
  198. package/out/login-code/index.html +12 -0
  199. package/out/orders/OrderDetailPage/index.html +3 -3
  200. package/out/orders/index.html +3 -3
  201. package/out/payment-provider/PaymentProviderDetailPage/index.html +3 -3
  202. package/out/payment-provider/index.html +3 -3
  203. package/out/payment-provider/new/index.html +3 -3
  204. package/out/products/ProductDetailPage/index.html +3 -3
  205. package/out/products/index.html +3 -3
  206. package/out/products/new/index.html +3 -3
  207. package/out/quotations/QuotationDetailPage/index.html +3 -3
  208. package/out/quotations/index.html +3 -3
  209. package/out/reset-password/index.html +3 -3
  210. package/out/sign-up/index.html +3 -3
  211. package/out/styleguide/index.html +3 -3
  212. package/out/tokens/TokenDetailPage/index.html +3 -3
  213. package/out/tokens/index.html +3 -3
  214. package/out/users/UserDetailPage/index.html +3 -3
  215. package/out/users/index.html +3 -3
  216. package/out/users/new/index.html +3 -3
  217. package/out/verify-email/index.html +3 -3
  218. package/out/warehousing-provider/WarehousingProviderDetailPage/index.html +3 -3
  219. package/out/warehousing-provider/index.html +3 -3
  220. package/out/warehousing-provider/new/index.html +3 -3
  221. package/out/works/WorkDetailPage/index.html +3 -3
  222. package/out/works/WorkQueueListView/index.html +3 -3
  223. package/out/works/index.html +3 -3
  224. package/out/works/management/index.html +3 -3
  225. package/package.json +1 -1
  226. package/src/modules/accounts/hooks/useLoginWithLoginCode.ts +45 -0
  227. package/src/modules/accounts/hooks/useRequestLoginCode.ts +31 -0
  228. package/src/modules/accounts/index.ts +2 -0
  229. package/src/modules/common/hooks/useShopInfo.ts +1 -0
  230. package/src/modules/enrollment/fragments/EnrollmentDetailFragment.ts +3 -2
  231. package/src/modules/enrollment/hooks/useSuspendEnrollment.ts +5 -3
  232. package/src/modules/enrollment/hooks/useTerminateEnrollment.ts +15 -3
  233. package/src/modules/enrollment/hooks/useUpdateEnrollmentExpires.ts +38 -0
  234. package/src/modules/order/fragments/OrderDetailFragment.ts +0 -1
  235. package/src/modules/product/hooks/useProductTokenization.ts +1 -0
  236. package/src/modules/product/hooks/useProductsCount.ts +4 -0
  237. package/src/modules/product/hooks/useUpdateProductCommerce.ts +2 -13
  238. package/src/modules/product/hooks/useUpdateProductTokenization.ts +8 -1
  239. package/src/modules/product/index.ts +3 -0
  240. package/src/modules/quotation/fragments/QuotationDetailFragment.ts +1 -0
  241. package/src/sdk/README.md +1 -1
  242. package/out/_next/static/bg3Z_ZBjStiTvJAHlsPDE/_buildManifest.js +0 -262
  243. package/out/_next/static/chunks/00wlebfe9j80r.js +0 -24
  244. package/out/_next/static/chunks/03x_mgpai_kbn.js +0 -1
  245. package/out/_next/static/chunks/04327_1fq5i7-.js +0 -9
  246. package/out/_next/static/chunks/0_a5fzdztv84p.js +0 -272
  247. package/out/_next/static/chunks/0d54jo566j9ka.js +0 -12
  248. package/out/_next/static/chunks/0gfia1t8drmnx.js +0 -182
  249. package/out/_next/static/chunks/0gwd6ju8j_bwr.js +0 -39
  250. package/out/_next/static/chunks/0j46qnxaxeqk_.js +0 -1
  251. package/out/_next/static/chunks/0op3htrvd-ix6.js +0 -5
  252. package/out/_next/static/chunks/1-wbp_4f-c4-3.js +0 -837
  253. package/out/_next/static/chunks/11vnr4kb9qkjr.js +0 -1
  254. package/out/_next/static/chunks/14eqp21pspjud.js +0 -234
  255. package/out/_next/static/chunks/1eokbzdgdicpa.js +0 -33
  256. package/out/_next/static/chunks/1f0t23r6y0hni.js +0 -1
  257. package/out/_next/static/chunks/1ia6hdgf7pj9y.js +0 -174
  258. package/out/_next/static/chunks/1oqc8etm-romv.js +0 -1
  259. package/out/_next/static/chunks/1tbd6m-xvx0um.js +0 -353
  260. package/out/_next/static/chunks/1tw97cvdosb89.js +0 -5
  261. package/out/_next/static/chunks/1ubmbegreszhk.js +0 -1
  262. package/out/_next/static/chunks/1uw7hr3o4w5cj.js +0 -8
  263. package/out/_next/static/chunks/1xybsisfyvqrj.js +0 -115
  264. package/out/_next/static/chunks/1zdral15la_p7.js +0 -99
  265. package/out/_next/static/chunks/2-4610weysas_.js +0 -1
  266. package/out/_next/static/chunks/22duvsj-priip.js +0 -7
  267. package/out/_next/static/chunks/22rdge7enz4nd.js +0 -12
  268. package/out/_next/static/chunks/2b4k5t_myq-pa.js +0 -1
  269. package/out/_next/static/chunks/2dz0_3jf4m9cy.js +0 -31
  270. package/out/_next/static/chunks/2erqawjj0rnih.js +0 -117
  271. package/out/_next/static/chunks/2grm6dtosrvoq.js +0 -1
  272. package/out/_next/static/chunks/2imf3_f1_ex86.js +0 -1
  273. package/out/_next/static/chunks/2iwst7mjldlcz.js +0 -1
  274. package/out/_next/static/chunks/2ja0dztzyw8zw.js +0 -1
  275. package/out/_next/static/chunks/2ja1--2x_gs49.js +0 -83
  276. package/out/_next/static/chunks/2lec5u8obskt6.js +0 -5
  277. package/out/_next/static/chunks/2pogx3xggqd8y.js +0 -1
  278. package/out/_next/static/chunks/3205eg3ochzp4.js +0 -297
  279. package/out/_next/static/chunks/3368kg846t33d.js +0 -57
  280. package/out/_next/static/chunks/33oz-znvi5-m6.js +0 -1
  281. package/out/_next/static/chunks/3e38rrs6dszgt.js +0 -8
  282. package/out/_next/static/chunks/3eth7s2-06yuz.js +0 -1
  283. package/out/_next/static/chunks/3i4_3b36nutw7.js +0 -33
  284. package/out/_next/static/chunks/3lzin6_25n8rs.js +0 -30
  285. package/out/_next/static/chunks/3onharcadlou0.js +0 -327
  286. package/out/_next/static/chunks/3tg_clsx6ux4o.js +0 -1
  287. package/out/_next/static/chunks/3ttz1zgoq3xmp.js +0 -1
  288. package/out/_next/static/chunks/3ytp87o76hzmx.js +0 -100
  289. package/out/_next/static/chunks/40kvu3lk3s9h2.js +0 -276
  290. package/out/_next/static/chunks/44qc0zn0tudui.js +0 -2
  291. /package/out/_next/static/{bg3Z_ZBjStiTvJAHlsPDE → WEaZ5SW9HLnJWzXs84JMH}/_clientMiddlewareManifest.js +0 -0
  292. /package/out/_next/static/{bg3Z_ZBjStiTvJAHlsPDE → WEaZ5SW9HLnJWzXs84JMH}/_ssgManifest.js +0 -0
@@ -0,0 +1 @@
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,13534,77341,26539,e=>{"use strict";let t;var r=e.i(91398),i=e.i(91788),n=e.i(30943),s=e.i(81912),a=e.i(30468),o=e.i(78234),l=e.i(21805),u=e.i(38070),c=e.i(98926),f=e.i(24669),h=e.i(76810),d=e.i(91584),p=e.i(15953),m=e.i(93532);function y(){}function b(){return t||(t=i.createContext(null)),i.useCallback(()=>{let e=console.error;try{return console.error=y,i.useContext(t),!0}catch(e){return!1}finally{console.error=e}},[])}var g=e.i(28775),v=e.i(50584),w=e.i(32854);let k=["refetch","fetchMore","updateQuery","startPolling","stopPolling","subscribeToMore"],S=function(e,t){let r=(0,c.f)(t?.client),n=i.useRef(void 0),s=i.useRef(void 0),a=i.useRef(()=>{}),o=(0,g.f)(()=>t,[t]),l=b();function u(){return r.watchQuery({...t,query:e,initialFetchPolicy:t?.fetchPolicy,fetchPolicy:"standby",[p.N]:!0})}let[h,d]=i.useState(r),[y,S]=i.useState(u);h!==r&&(d(r),S(u()));let x=i.useCallback((e,t)=>{let r=s.current?.data;r&&!(0,f.f)(r,e.data)&&(n.current=r),s.current=e,t()},[]),P=(0,w.f)(i.useCallback(e=>{a.current=e;let t=y.subscribe(t=>{(0,f.f)(s.current,t)||x(t,e)});return()=>{t.unsubscribe()}},[y,x]),()=>s.current||O,()=>O),E=i.useMemo(()=>{let e={};for(let t of k)e[t]=function(...e){return(0,m.k)(s.current,31,t),y[t](...e)};return e},[y]);i.useEffect(()=>{let r={query:e,errorPolicy:o?.errorPolicy,refetchOn:o?.refetchOn,refetchWritePolicy:o?.refetchWritePolicy,returnPartialData:o?.returnPartialData,notifyOnNetworkStatusChange:o?.notifyOnNetworkStatusChange,pollInterval:o?.pollInterval,nextFetchPolicy:t?.nextFetchPolicy,skipPollAttempt:t?.skipPollAttempt};"standby"!==y.options.fetchPolicy&&o?.fetchPolicy&&(r.fetchPolicy=o.fetchPolicy),y.applyOptions(r)},[e,y,o,t?.nextFetchPolicy,t?.skipPollAttempt]);let C=i.useCallback((...e)=>{(0,m.k)(!l(),32);let[t]=e,r=y.options.fetchPolicy;"standby"===r&&(r=y.options.initialFetchPolicy);let i=s.current,n=y.variables,o=y.reobserve({fetchPolicy:r,variables:t?.variables,context:t?.context??{}});return y.options.notifyOnNetworkStatusChange&&s.current===i&&!(0,f.f)(y.variables,n)&&(s.current&&(s.current={...s.current}),a.current()),o},[y,l]),_=i.useRef(C);return(0,v.f)(()=>{_.current=C}),[i.useCallback((...e)=>_.current(...e),[]),i.useMemo(()=>{let{partial:e,...t}=P;return{...E,...t,client:r,previousData:n.current,variables:y.variables,observable:y,called:!!s.current}},[r,P,E,y])]},O=(0,d.f)({data:void 0,dataState:"empty",loading:!1,networkStatus:h.f.ready,partial:!0});e.s(["f",0,S],77341);var x=e.i(76204),P=e.i(32171),E=e.i(1151),C=e.i(97046);function _(e){let t=(0,c.f)(e.client),{from:r,...n}=e,{cache:s}=t,a=(0,g.f)(()=>{let e=(Array.isArray(r)?r:[r]).map(e=>"string"==typeof e?e:null===e?null:s.identify(e));return Array.isArray(r)?e:e[0]},[s,r]),o=(0,g.f)(()=>({...n,from:a}),[n,a]),l=i.useMemo(()=>t.watchFragment(o),[t,o]),u=i.useCallback(()=>null===r?T:l.getCurrentResult(),[r,l]);return(0,w.f)(i.useCallback(e=>{let t=0,r=l.subscribe({next:()=>{clearTimeout(t),t=setTimeout(e)}});return()=>{r.unsubscribe(),clearTimeout(t)}},[l]),u,u)}let T=Object.freeze({data:{},dataState:"partial",complete:!1});var F=e.i(83015);function D(e){let t=Promise.resolve(e);return t.status="fulfilled",t.value=e,t}function j(e){return"status"in e||(e.status="pending",e.then(t=>{"pending"===e.status&&(e.status="fulfilled",e.value=t)},t=>{"pending"===e.status&&(e.status="rejected",e.reason=t)})),e}class R{observable;key={};promise;resolve;reject;subscription;listeners=new Set;autoDisposeTimeoutId;references=0;constructor(e,t,r){this.dispose=this.dispose.bind(this),this.handleNext=this.handleNext.bind(this),this.handleError=this.handleError.bind(this),this.observable=e.watchFragment(t),r.onDispose&&(this.onDispose=r.onDispose);let i=this.observable.getCurrentResult(),n=()=>{this.references||(this.autoDisposeTimeoutId=setTimeout(this.dispose,r.autoDisposeTimeoutMs??3e4))};this.promise=i.complete?D(i.data):this.createPendingPromise(),this.subscribeToFragment(),this.promise.then(n,n)}listen(e){return this.listeners.add(e),()=>{this.listeners.delete(e)}}retain(){this.references++,clearTimeout(this.autoDisposeTimeoutId);let e=!1;return()=>{e||(e=!0,this.references--,setTimeout(()=>{this.references||this.dispose()}))}}dispose(){this.subscription.unsubscribe()}onDispose(){}subscribeToFragment(){this.subscription=this.observable.subscribe(this.handleNext.bind(this),this.handleError.bind(this)),this.subscription.add(this.onDispose)}handleNext(e){switch(this.promise.status){case"pending":if(e.complete)return this.resolve?.(e.data);this.deliver(this.promise);break;case"fulfilled":if((0,f.f)(this.promise.value,e.data))return;this.promise=e.complete?D(e.data):this.createPendingPromise(),this.deliver(this.promise)}}handleError(e){this.reject?.(e)}deliver(e){this.listeners.forEach(t=>t(e))}createPendingPromise(){return j(new Promise((e,t)=>{this.resolve=e,this.reject=t}))}}var M=e.i(75557);let I=Symbol.for("apollo.internal.queryRef"),N=Symbol.for("apollo.internal.refPromise");function A(e){return{[I]:e,[N]:e.promise}}function q(e){(0,m.k)(!e||I in e,29)}function Q(e){let t=e[I];return"fulfilled"===t.promise.status?t.promise:e[N]}let V=["context","errorPolicy","fetchPolicy","refetchOn","refetchWritePolicy","returnPartialData"];class z{result;key={};observable;promise;queue;subscription;listeners=new Set;autoDisposeTimeoutId;pendingOptions;resolve;reject;references=0;softReferences=0;constructor(e,t){this.handleNext=this.handleNext.bind(this),this.dispose=this.dispose.bind(this),this.observable=e,t.onDispose&&(this.onDispose=t.onDispose),this.setResult(),this.subscribeToQuery();let r=()=>{this.references||(this.autoDisposeTimeoutId=setTimeout(this.dispose,t.autoDisposeTimeoutMs??3e4))};this.promise.then(r,r)}get disposed(){return this.subscription.closed}get watchQueryOptions(){return this.observable.options}reinitialize(){let{observable:e,pendingOptions:t}=this;this.pendingOptions=void 0,t&&e.applyOptions(t);let r=this.watchQueryOptions.fetchPolicy,i="no-cache"===r||"standby"===r;try{i?e.applyOptions({fetchPolicy:"standby"}):(e.reset(),e.applyOptions({fetchPolicy:"cache-first"})),i||this.setResult(),this.subscribeToQuery()}finally{e.applyOptions({fetchPolicy:r})}}retain(){this.references++,clearTimeout(this.autoDisposeTimeoutId);let e=!1;return()=>{e||(e=!0,this.references--,setTimeout(()=>{this.references||this.dispose()}))}}softRetain(){this.softReferences++;let e=!1;return()=>{e||(e=!0,this.softReferences--,setTimeout(()=>{this.softReferences||this.references||this.dispose()}))}}didChangeOptions(e){let t={...this.watchQueryOptions,...this.pendingOptions};return V.some(r=>r in e&&!(0,f.f)(t[r],e[r]))}applyOptions(e){if(this.disposed)return this.pendingOptions={...this.pendingOptions,...e},this.promise;let{fetchPolicy:t}=this.watchQueryOptions;return"standby"===t&&t!==e.fetchPolicy?this.initiateFetch(this.observable.reobserve(e)):this.observable.applyOptions(e),this.promise}listen(e){return this.listeners.add(e),this.queue&&(this.deliver(this.queue),this.queue=void 0),()=>{this.listeners.delete(e)}}refetch(e){return this.initiateFetch(this.observable.refetch(e))}fetchMore(e){return this.initiateFetch(this.observable.fetchMore(e))}dispose(){this.subscription.unsubscribe()}onDispose(){}handleNext(e){if("pending"===this.promise.status)void 0===e.data&&(e.data=this.result.data,e.data&&(e.dataState="complete")),this.shouldReject(e)?this.reject?.(e.error):(this.result=e,this.resolve?.(e));else{if(e.data===this.result.data&&e.networkStatus===this.result.networkStatus)return;if(void 0===e.data&&(e.data=this.result.data),this.shouldReject(e)){var t;let r;this.promise=((r=Promise.reject(t=e.error)).catch(()=>{}),r.status="rejected",r.reason=t,r),this.deliver(this.promise)}else this.result=e,this.promise=D(e),this.deliver(this.promise)}}deliver(e){0===this.listeners.size&&(this.queue=e),this.listeners.forEach(t=>t(e))}initiateFetch(e){let t=this.promise=this.createPendingPromise();return this.promise.catch(()=>{}),e.then(()=>{setTimeout(()=>{this.promise===t&&"pending"===t.status&&(this.result=this.observable.getCurrentResult(),this.resolve?.(this.result))})}).catch(e=>{this.promise===t&&this.reject?.(e)}),e}subscribeToQuery(){this.subscription=this.observable.pipe((0,M.f)(e=>!(0,f.f)(e,this.result))).subscribe(this.handleNext),this.subscription.add(this.onDispose)}setResult(){let e=this.observable.getCurrentResult();(0,f.f)(e,this.result)||(this.result=e,this.promise=e.data?D(e):this.createPendingPromise())}shouldReject(e){let{errorPolicy:t="none"}=this.watchQueryOptions;return e.error&&"none"===t}createPendingPromise(){return j(new Promise((e,t)=>{this.resolve=e,this.reject=t}))}}class L{queryRefs=new F.f;fragmentRefs=new F.f;options;constructor(e={}){this.options=e}getQueryRef(e,t){let r=this.queryRefs.lookupArray(e);return r.current||(r.current=new z(t(),{autoDisposeTimeoutMs:this.options.autoDisposeTimeoutMs,onDispose:()=>{delete r.current}})),r.current}getFragmentRef(e,t,r){let i=this.fragmentRefs.lookupArray(e);return i.current||(i.current=new R(t,r,{autoDisposeTimeoutMs:this.options.autoDisposeTimeoutMs,onDispose:()=>{delete i.current}})),i.current}add(e,t){this.queryRefs.lookupArray(e).current=t}}let B=Symbol.for("apollo.suspenseCache");function W(e){return e[B]||(e[B]=new L(e.defaultOptions.react?.suspense)),e[B]}var U=e.i(29520);let $=i.use||function(e){let t=j(e);switch(t.status){case"pending":throw t;case"rejected":throw t.reason;case"fulfilled":return t.value}};var H=e.i(44728);function K(e,t){let{queryKey:r=[],variables:n}=t,s=(0,H.f)(n),[a,o]=i.useState(s);return t!==E.f&&a!==s&&o(a=s),[e,a,...[].concat(r)]}function G(e){var t,r;let{fetchPolicy:i,returnPartialData:n}=e;(function(e="cache-first"){(0,m.k)(["cache-first","network-only","no-cache","cache-and-network"].includes(e),37,e)})(i),t=i,r=n,"no-cache"===t&&r&&U.f&&m.k.warn(38)}function J(e,t){let r=(0,c.f)(t.client),n=W(r),s=Y({client:r,query:e,options:t}),{fetchPolicy:a}=s,o=K(e,t),l=n.getQueryRef(o,()=>r.watchQuery(s)),[u,f]=i.useState([l.key,l.promise]);u[0]!==l.key&&(u[0]=l.key,u[1]=l.promise);let d=u[1];l.didChangeOptions(s)&&(u[1]=d=l.applyOptions(s)),i.useEffect(()=>{let e=l.retain(),t=l.listen(e=>{f([l.key,e])});return()=>{t(),e()}},[l]);let p=i.useMemo(()=>{let e=l.result.error,t=!!l.result.data;return{loading:!1,data:l.result.data,dataState:l.result.dataState,networkStatus:e?h.f.error:h.f.ready,error:e,complete:t,partial:!t}},[l.result]),m="standby"===a?p:$(d),y=i.useCallback(e=>{let t=l.fetchMore(e);return f([l.key,l.promise]),t},[l]),b=i.useCallback(e=>{let t=l.refetch(e);return f([l.key,l.promise]),t},[l]),g=l.observable.subscribeToMore;return i.useMemo(()=>({client:r,data:m.data,dataState:m.dataState,error:m.error,networkStatus:m.networkStatus,fetchMore:y,refetch:b,subscribeToMore:g}),[r,y,b,m,g])}function Y({client:e,query:t,options:r}){return(0,g.f)(()=>{if(r===E.f)return{query:t,fetchPolicy:"standby",[p.N]:!0};let i=r.fetchPolicy||e.defaultOptions.watchQuery?.fetchPolicy||"cache-first",n={...r,fetchPolicy:i,query:t,notifyOnNetworkStatusChange:!1,nextFetchPolicy:void 0};return U.f&&G(n),r.skip&&(n.fetchPolicy="standby"),n},[e,r,t])}function Z(e,t){let r=(0,c.f)(t.client),n=W(r),s=Y({client:r,query:e,options:t}),{fetchPolicy:a}=s,o=K(e,t),l=i.useRef("standby"!==a);l.current||="standby"!==a;let u=n.getQueryRef(o,()=>r.watchQuery(s)),[f,h]=i.useState(A(u));if(f[I]!==u&&h(A(u)),u.didChangeOptions(s)){let e=u.applyOptions(s);f[N]=e}i.useEffect(()=>{let e=setTimeout(()=>{u.disposed&&n.add(o,u)});return()=>clearTimeout(e)});let d=i.useCallback(e=>{let t=u.fetchMore(e);return h(A(u)),t},[u]),p=i.useCallback(e=>{let t=u.refetch(e);return h(A(u)),t},[u]);return i.useEffect(()=>u.softRetain(),[u]),[l.current?f:void 0,{fetchMore:d,refetch:p,subscribeToMore:u.observable.subscribeToMore}]}function X(e){let t=(0,c.f)(e.client),{from:r,variables:n}=e,{cache:s}=t,a=(0,g.f)(()=>Array.isArray(r)?r.map(e=>ee(s,e)):ee(s,r),[s,r]),o=i.useMemo(()=>Array.isArray(a)?a.join(","):a,[a]),l=W(t).getFragmentRef([e.fragment,(0,H.f)(n),o],t,{...e,variables:n,from:a}),[u,f]=i.useState([l.key,l.promise]);return i.useEffect(()=>{let e=l.retain(),t=l.listen(e=>{f([l.key,e])});return()=>{e(),t()}},[l]),u[0]!==l.key&&(u[0]=l.key,u[1]=l.promise),{data:$(u[1])}}function ee(e,t){return"string"==typeof t?t:null===t?null:e.identify(t)}function et(e){q(e);let[t,r]=i.useState(e),[n,s]=i.useState(e),a=e[I];if(t!==e)r(e),s(e);else{var o;o=Q(n),e[N]=o}return{refetch:i.useCallback(e=>{let t=a.refetch(e);return s(A(a)),t},[a]),fetchMore:i.useCallback(e=>{let t=a.fetchMore(e);return s(A(a)),t},[a]),subscribeToMore:a.observable.subscribeToMore}}function er(e){q(e);let t=i.useMemo(()=>e[I],[e]),r=i.useCallback(()=>Q(e),[e]);if(t.disposed){var n;t.reinitialize(),n=t.promise,e[N]=n}i.useEffect(()=>t.retain(),[t]);let s=$((0,w.f)(i.useCallback(r=>t.listen(t=>{e[N]=t,r()}),[t,e]),r,r));return i.useMemo(()=>({data:s.data,dataState:s.dataState,networkStatus:s.networkStatus,error:s.error}),[s])}let ei=e=>Object.assign(function(t,r={}){let i=new z(e.watchQuery({...r,query:t,notifyOnNetworkStatusChange:!1}),{autoDisposeTimeoutMs:e.defaultOptions.react?.suspense?.autoDisposeTimeoutMs}),n=A(i);return function(e,t){var r,i,n;let s,a,{softDispose:o,delayedSoftDispose:l}=(s=(r=t).softRetain(),a=r.promise,{softDispose:s,delayedSoftDispose:()=>a.finally(s).catch(()=>{})});en.register(e,l,t),i=t.retain,n=o,t.retain=function(...e){en.unregister(this);let t=i.apply(this,e);return n(),t}}(n,i),n},{toPromise:e=>(q(e),Q(e).then(()=>e))}),en=new FinalizationRegistry(e=>e());e.s(["ApolloProvider",()=>u.f,"createQueryPreloader",0,function(e){return(0,C.f)("createQueryPreloader",ei,e)(e)},"getApolloContext",()=>l.f,"reactCompilerVersion",()=>o.f,"skipToken",()=>E.f,"useApolloClient",()=>c.f,"useBackgroundQuery",0,function(e,t){return(0,C.f)("useBackgroundQuery",Z,(0,c.f)("object"==typeof t?t.client:void 0))(e,t??{})},"useFragment",0,function(e){return(0,C.f)("useFragment",_,(0,c.f)(e.client))(e)},"useLazyQuery",0,S,"useLoadableQuery",0,function(e,t={}){let r=(0,c.f)(t.client),n=W(r),s=function({client:e,query:t,options:r}){return(0,g.f)(()=>{let i=r.fetchPolicy||e.defaultOptions.watchQuery?.fetchPolicy||"cache-first",n={...r,fetchPolicy:i,query:t,notifyOnNetworkStatusChange:!1,nextFetchPolicy:void 0};return U.f&&G(n),n},[e,r,t])}({client:r,query:e,options:t}),{queryKey:a=[]}=t,[o,l]=i.useState(null);q(o);let u=o&&o[I];if(o&&u?.didChangeOptions(s)){let e=u.applyOptions(s);o[N]=e}let f=b(),h=i.useCallback(e=>{if(!u)throw Error("The query has not been loaded. Please load the query.");let t=u.fetchMore(e);return l(A(u)),t},[u]),d=i.useCallback(e=>{if(!u)throw Error("The query has not been loaded. Please load the query.");let t=u.refetch(e);return l(A(u)),t},[u]),p=i.useCallback((...t)=>{(0,m.k)(!f(),33);let[i]=t,o=[e,(0,H.f)(i),...[].concat(a)];l(A(n.getQueryRef(o,()=>r.watchQuery({...s,variables:i}))))},[e,a,n,s,f,r]),y=i.useCallback(e=>((0,m.k)(u,34),u.observable.subscribeToMore(e)),[u]);return[p,o,{fetchMore:h,refetch:d,reset:i.useCallback(()=>{l(null)},[]),subscribeToMore:y}]},"useMutation",()=>x.f,"useQuery",()=>P.f,"useQueryRefHandlers",0,function(e){let t=e[I],r=(0,c.f)(t?t.observable:void 0);return(0,C.f)("useQueryRefHandlers",et,r)(e)},"useReactiveVar",0,function(e){return(0,w.f)(i.useCallback(t=>e.onNextChange(function r(){t(),e.onNextChange(r)}),[e]),e,e)},"useReadQuery",0,function(e){let t=e[I],r=(0,c.f)(t?t.observable:void 0);return(0,C.f)("useReadQuery",er,r)(e)},"useSubscription",0,function(e,...[t={}]){let r=t===E.f?{skip:!0}:t,n=(0,c.f)(r.client),{skip:s,fetchPolicy:a,errorPolicy:o,shouldResubscribe:l,context:u,extensions:h,ignoreResults:d}=r,p=(0,g.f)(()=>r.variables,[r.variables]),y=()=>{var t,r,i,s,l;let c,f;return t=n,r=e,i=p,s=a,l=o,f={...c={query:r,variables:i,fetchPolicy:s,errorPolicy:l,context:u,extensions:h},client:t,completed:!1,result:{loading:!0,data:void 0,error:void 0},setResult(e){f.result=e}},Object.assign(t.subscribe(c),{__:f})},[b,k]=i.useState(s?null:y),S=i.useRef(y);(0,v.f)(()=>{S.current=y}),s?b&&k(b=null):b&&(n===b.__.client&&e===b.__.query&&a===b.__.fetchPolicy&&o===b.__.errorPolicy&&(0,f.f)(p,b.__.variables)||("function"==typeof l?!!l(r):l)===!1)||k(b=y());let O=i.useRef(r);i.useEffect(()=>{O.current=r});let x=!s&&!d,P=i.useMemo(()=>({loading:x,error:void 0,data:void 0}),[x]),C=i.useRef(d);(0,v.f)(()=>{C.current=d});let _=(0,w.f)(i.useCallback(e=>{if(!b)return()=>{};let t=!1,r=b.__.client,i=b.subscribe({next(i){if(t)return;let n={loading:!1,data:i.data,error:i.error};b.__.setResult(n),C.current||e(),n.error?O.current.onError?.(n.error):O.current.onData&&O.current.onData({client:r,data:n})},complete(){b.__.completed=!0,!t&&O.current.onComplete&&O.current.onComplete()}});return()=>{t=!0,setTimeout(()=>i.unsubscribe())}},[b]),()=>!b||s||d?P:b.__.result,()=>P),T=i.useCallback(()=>{(0,m.k)(!O.current.skip,35),b?.__.completed?k(S.current()):b?.restart()},[b,k,O,S]);return i.useMemo(()=>({..._,restart:T}),[_,T])},"useSuspenseFragment",0,function(e){return(0,C.f)("useSuspenseFragment",X,(0,c.f)("object"==typeof e?e.client:void 0))(e)},"useSuspenseQuery",0,function(e,t){return(0,C.f)("useSuspenseQuery",J,(0,c.f)("object"==typeof t?t.client:void 0))(e,t??{})}],95603);var es=e.i(95603),ea=e.i(3828),eo=e.i(41158),el=e.i(9675),eu=e.i(5205),ec=e.i(3326),ef=e.i(4216);e.S([ec,"FormattedDate,Q,FormattedDateParts,i,FormattedDateTimeRange,T,FormattedDisplayName,U,FormattedDuration,C,FormattedDurationParts,K,FormattedList,W,FormattedListParts,S,FormattedMessage,L,FormattedNumber,Z,FormattedNumberParts,D,FormattedPlural,d,FormattedRelativeTime,c,FormattedTime,H,FormattedTimeParts,B,IntlContext,N,IntlProvider,R,RawIntlProvider,P,createIntl,b,defineMessage,V,useIntl,X",0,ef,"InvalidConfigError,V,MessageFormatError,X,MissingDataError,C,MissingTranslationError,t,ReactIntlError,T,ReactIntlErrorCode,p,UnsupportedFormatterError,G,createIntlCache,D,defineMessages,U"],74828);var eh=e.i(74828),ed=e.i(28401),ep=e.i(58021);function em(e){return e}let{SHARED_DEP_SHIMS:ey,SDK_ENTRY_KEYS:eb,SDK_MODULE_FILES:eg,PLUGIN_EXTERNALS:ev}=e.i(57970).default,ew=(0,i.createContext)(null),ek=ew.Provider,eS=()=>{let e=(0,i.useContext)(ew);if(!e)throw Error("usePluginRuntime must be used inside a plugin component rendered by PluginSlot");return e};e.s(["h",0,ek,"m",0,eS],26539);let eO=(0,i.createContext)({manifests:[],getComponent:()=>null,getSlotPlugins:()=>[],loading:!0}),ex=async e=>{if(document.querySelector('script[type="importmap"][data-unchained-admin-ui]'))return!0;try{let t=await fetch(`${e}/admin-ui-importmap.json`,{cache:"no-cache"});if(!t.ok)return console.warn("admin-ui plugin runtime: could not fetch import map from server. Plugins depending on shared host dependencies will fail to load."),!1;let r=await t.json();if(e&&r.imports)for(let[t,i]of Object.entries(r.imports))"string"==typeof i&&i.startsWith("/")&&(r.imports[t]=`${e}${i}`);let i=document.createElement("script");return i.type="importmap",i.setAttribute("data-unchained-admin-ui",""),i.textContent=JSON.stringify(r),document.head.appendChild(i),!0}catch(e){return console.warn("admin-ui plugin runtime: failed to inject import map:",e),!1}},eP=async(e,t)=>{let r=new URL(e.bundleUrl,t||window.location.origin).href,i=await import(r);return i&&Object.keys(i).length>0?i:(console.error(`Plugin "${e.name}" loaded but exports no components. Rebuild it with the current @unchainedshop/admin-ui/plugin-build.`),null)};e.s(["h",0,({children:e})=>{let[t,o]=(0,i.useState)([]),[l,u]=(0,i.useState)(new Map),[c,f]=(0,i.useState)(!0);return(0,i.useEffect)(()=>{(()=>{if(window.__UNCHAINED_PLUGIN_DEPS__)return;let e={react:i.default,"react/jsx-runtime":r,"react-dom":n,"react-dom/client":s,"@apollo/client":a,"@apollo/client/react":es,"next/router":ea,"next/link":{default:eo.default},"next/image":{default:el.default},"next/head":{default:eu.default},"react-intl":eh,"react-toastify":ed,"react-hook-form":ep,"@unchainedshop/admin-ui/plugins":{definePlugin:em,usePluginRuntime:eS}};window.__UNCHAINED_PLUGIN_DEPS__=e})();let e=!1;return(async()=>{try{let t=(()=>{try{return new URL("/graphql").origin}catch{return""}})(),r=await fetch(`${t}/admin-ui-plugins.json`,{cache:"no-cache"});if(!r.ok||e)return void f(!1);let i=await r.json();if(e||!Array.isArray(i)||0===i.length||(o(i),!await ex(t)))return void f(!1);if(e)return;let n=new Map;await Promise.all(i.map(async e=>{try{let r=await eP(e,t);r&&n.set(e.name,r)}catch(t){console.error(`Failed to load plugin "${e.name}":`,t)}})),e||u(n)}catch(e){console.error("Failed to load plugin manifests:",e)}finally{e||f(!1)}})(),()=>{e=!0}},[]),(0,r.jsx)(eO.Provider,{value:{manifests:t,getComponent:(e,t)=>{let r=l.get(e);return r?.[t]||null},getSlotPlugins:e=>t.flatMap(t=>{let r=t.slots[e];return r?r.map(e=>({manifest:t,config:e})):[]}),loading:c},children:e})},"L",0,()=>(0,i.useContext)(eO)],13534)},57970,(e,t,r)=>{let i={react:"shims/react.js","react/jsx-runtime":"shims/react-jsx-runtime.js","react-dom":"shims/react-dom.js","react-dom/client":"shims/react-dom-client.js","@apollo/client":"shims/apollo-client.js","@apollo/client/react":"shims/apollo-client-react.js","next/router":"shims/next-router.js","next/link":"shims/next-link.js","next/image":"shims/next-image.js","next/head":"shims/next-head.js","react-intl":"shims/react-intl.js","react-toastify":"shims/react-toastify.js","react-hook-form":"shims/react-hook-form.js","@unchainedshop/admin-ui/plugins":"shims/admin-ui-plugins.js"},n=["ui","form","hooks","providers","modal","theme","modules/accounts","modules/assortment","modules/country","modules/currency","modules/delivery-provider","modules/enrollment","modules/event","modules/filter","modules/language","modules/order","modules/payment-providers","modules/product","modules/product-review","modules/quotation","modules/token","modules/warehousing-providers","modules/work"],s=Object.fromEntries(n.map(e=>[`@unchainedshop/admin-ui/${e}`,`${e}.js`])),a=[...Object.keys(i),/^@unchainedshop\/admin-ui\//];t.exports={SHARED_DEP_SHIMS:i,SDK_ENTRY_KEYS:n,SDK_MODULE_FILES:s,PLUGIN_EXTERNALS:a}},67977,69188,98901,41866,43759,e=>{"use strict";e.s(["f",0,class e{options;static fromGraphQLScalarType(t,r){return new e({...r,parse:t.parseValue,serialize:t.serialize})}constructor(e){this.options=e}parse(e){return this.options.parse(e)}serialize(e){return this.options.serialize(e)}coerceToParsed(e){return this.is(e)?e:this.parse(e)}coerceToSerialized(e){return this.is(e)?this.serialize(e):e}is(e){return this.options.is?this.options.is(e):"object"==typeof e&&null!==e}}],67977);var t=e.i(62979);let r=t.f.concat;e.s(["f",0,r],69188);let i=t.f.empty;e.s(["f",0,i],98901);let n=t.f.from;e.s(["f",0,n],41866);let s=t.f.split;e.s(["f",0,s],43759)},64501,e=>{"use strict";var t=e.i(62918),r=e.i(24669),i=e.i(83015),n=e.i(6775),s=e.i(64045),a=e.i(81288),o=e.i(99657);function l(e,t){return e===t}var u=e.i(57283),c=e.i(78538),f=e.i(34495),h=e.i(93853),d=e.i(33628),p=e.i(21910),m=e.i(87268),y=new(e.i(12884)).f(m.f),b=(e.i(33825),e.i(6044)),g=e.i(44728),v=e.i(29520),w=e.i(23938),k=e.i(21847),S=e.i(76626),O=e.i(73507),x=e.i(93532);function P(e,t){let r=t,i=[];return e.definitions.forEach(e=>{if("OperationDefinition"===e.kind)throw(0,x.b)(12,e.operation,e.name?` named '${e.name.value}'`:"");"FragmentDefinition"===e.kind&&i.push(e)}),void 0===r&&((0,x.k)(1===i.length,13,i.length),r=i[0].name.value),{...e,definitions:[{kind:"OperationDefinition",operation:"query",selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:r}}]}},...e.definitions]}}var E=e.i(57038);class C{assumeImmutableResults=!1;lookupFragment(e){return null}getRootTypename(e){return e[0].toUpperCase()+e.slice(1)}getScalar(e){}getScalarTypeForField(e,t){}configuresScalars(){return!1}serializeVariables(e,t){return t}batch(e){let t,r="string"==typeof e.optimistic?e.optimistic:!1===e.optimistic?null:void 0;return this.performTransaction(()=>t=e.update(this),r),t}recordOptimisticTransaction(e,t){this.performTransaction(e,t)}transformDocument(e){return e}transformForLink(e){return e}identify(e){}gc(){return[]}modify(e){return!1}readQuery(e,t=!!e.optimistic){return this.read({...e,rootId:e.id||"ROOT_QUERY",optimistic:t})}fragmentWatches=new i.f(!0);watchFragment(e){let t,{fragment:i,fragmentName:n,from:s}=e,a=this.getFragmentDoc(i,n),o=(Array.isArray(s)?s:[s]).map(e=>{let t=null==e?e:this.toCacheId(e);if(v.f){let e=n||(0,O.f)(i).name.value;void 0===t&&v.f&&x.k.warn(128,e)}return void 0===t?null:t});if(!Array.isArray(s)){let t=this.watchSingleFragment(o[0],a,e);return null===s?t:(0,E.f)(t,Symbol.for("apollo.transform.individualResult"),e=>({...e,data:e.data??{}}))}function l(e){let i=e.reduce((e,t,r)=>(e.data.push(t.data),e.complete&&=t.complete,e.dataState=e.complete?"complete":"partial",t.missing&&(e.missing||={},e.missing[r]=t.missing),e),{data:[],dataState:"complete",complete:!0});return(0,r.f)(t,i)||(t=i),t}if(0===o.length)return D;let f=!1,h=o.map(t=>this.watchSingleFragment(t,a,e));return Object.assign((0===h.length?w.f:new c.f(e=>{let t,{length:r}=h,i=Array(r),n=new Map;h.forEach((e,t)=>{n.has(e)||n.set(e,new Set),n.get(e).add(t)});let s=n.size,a=n.size;n.forEach((r,n)=>{let o=!1,l=n.subscribe({next:s=>{r.forEach(e=>i[e]=s),!o&&(o=!0,a--),!a&&((t||=new Set(h.filter(e=>e.dirty))).delete(n),t.size||(e.next(i.slice()),t=void 0))},complete:()=>{--s||e.complete()},error:e.error.bind(e)});e.add(l)})})).pipe((0,u.f)(l),(0,p.f)({subscribe:()=>f=!0,unsubscribe:()=>f=!1}),(0,d.f)({bufferSize:1,refCount:!0})),{getCurrentResult:()=>f&&t?t:l(h.map(e=>e.getCurrentResult()))})}onAfterBroadcast=e=>e();watchSingleFragment(e,t,r){if(null===e)return T;let{optimistic:i=!0,variables:n}=r,u=[t,(0,g.f)({id:e,optimistic:i,variables:n})],d=this.fragmentWatches.lookupArray(u);if(!d.observable){var p,m;let g,v=!1;function b(e){let i=e.result;return g&&(0,k.f)(t,{data:g.data},{data:i},r.variables)||(g={data:i,dataState:e.complete?"complete":"partial",complete:e.complete},e.missing&&(g.missing=e.missing.missing)),g}let w=new c.f(r=>{v=!0;let s=this.watch({variables:n,returnPartialData:!0,id:e,query:t,optimistic:i,immediate:!0,callback:e=>{w.dirty=!0,this.onAfterBroadcast(()=>{r.next(b(e)),w.dirty=!1})}});return()=>{v=!1,s(),this.fragmentWatches.removeArray(u)}}).pipe((void 0===m&&(m=s.f),p=null!=p?p:l,(0,a.f)(function(e,t){var r,i=!0;e.subscribe((0,o.f)(t,function(e){var n=m(e);(i||!p(r,n))&&(i=!1,r=n,t.next(e))}))})),(0,h.f)({connector:()=>new f.f(1),resetOnRefCountZero:()=>{var e;return void 0===e&&(e=y),new c.f(function(t){var r=0;r<0&&(r=0);var i=0;return e.schedule(function(){t.closed||(t.next(i++),t.complete())},r)})}}));d.observable=Object.assign(w,{dirty:!1,getCurrentResult:()=>v&&g?g:b(this.diff({id:e,query:t,returnPartialData:!0,optimistic:i,variables:n}))})}return d.observable}getFragmentDoc=(0,n.$)(P,{max:b.f["cache.fragmentQueryDocuments"]||1e3,cache:t.f,makeCacheKey:function(...e){return n.k.bind(null,...e)}(this)});readFragment(e,t=!!e.optimistic){let r=void 0!==e.from?this.toCacheId(e.from):e.id;return this.read({...e,query:this.getFragmentDoc(e.fragment,e.fragmentName),rootId:r,optimistic:t})}writeQuery({id:e,data:t,...r}){return this.write(Object.assign(r,{dataId:e||"ROOT_QUERY",result:t}))}writeFragment({data:e,fragment:t,fragmentName:r,...i}){let n=void 0!==i.from?this.toCacheId(i.from):i.id;return this.write(Object.assign(i,{query:this.getFragmentDoc(t,r),dataId:n,result:e}))}updateQuery(e,t){return this.batch({update(r){let i=r.readQuery(e),n=t(i);return null==n?i:(r.writeQuery({...e,data:n}),n)}})}updateFragment(e,t){return this.batch({update(r){let i=r.readFragment(e),n=t(i);return null==n?i:(r.writeFragment({...e,data:n}),n)}})}toCacheId(e){return"string"==typeof e?e:this.identify(e)}}v.f&&(C.prototype.getMemoryInternals=S.U);let _=Object.freeze({data:null,dataState:"complete",complete:!0}),T=Object.assign(new c.f(e=>{e.next(_)}),{dirty:!1,getCurrentResult:()=>_}),F=Object.freeze({data:[],dataState:"complete",complete:!0}),D=Object.assign(new c.f(e=>{e.next(F)}),{getCurrentResult:()=>F});e.s(["f",0,C],64501)},99431,e=>{"use strict";var t=e.i(73944),r=e.i(56776),i=e.i(51104),n=e.i(73586),s=e.i(1887),a=e.i(18597),o=e.i(65444),l=e.i(46638),u=e.i(66930),c=e.i(58008),f=e.i(26708);let{hasOwnProperty:h}=Object.prototype;function d({__typename:e,id:t,_id:r},i){if("string"==typeof e){i&&(i.keyObject=null!=t?{id:t}:null!=r?{_id:r}:void 0);let n="id";if(null==t&&null!=r&&(t=r,n="_id"),null!=t)return i?.serializeKeyField&&(t=i.serializeKeyField(e,n,t)),`${e}:${"number"==typeof t||"string"==typeof t?t:JSON.stringify(t)}`}}let p={dataIdFromObject:d,resultCaching:!0},m=/^[_a-z][_0-9a-z]*/i;e.s(["v",0,m,"y",0,d,"r",0,function(e,t){let r=(0,n.f)((0,a.f)(e));return{fragmentMap:r,lookupFragment(e){let i=r[e];return!i&&t&&(i=t.lookup(e)),i||null}}},"w",0,function(e){let t=e.match(m);return t?t[0]:e},"o",0,function e(r){switch(r.kind){case t.f.NAMED_TYPE:return r.name.value;case t.f.LIST_TYPE:return`[${e(r.type)}]`;case t.f.NON_NULL_TYPE:return e(r.type)}},"e",0,function(e,t){return(0,r.f)(t)?e.get(t.__ref,"__typename"):t&&t.__typename},"i",0,h,"j",0,function(){return new s.f},"k",0,function(e){return(0,i.f)(p,e)},"C",0,function e(t,r,i){return!!(0,u.f)(r)&&((0,o.f)(r)?r.every(r=>e(t,r,i)):t.selections.every(t=>{if((0,l.f)(t)&&(0,f.f)(t,i)){let n=(0,c.f)(t);return h.call(r,n)&&(!t.selectionSet||e(t.selectionSet,r[n],i))}return!0}))},"N",0,function(e){return(0,u.f)(e)&&!(0,r.f)(e)&&!(0,o.f)(e)}])},84936,268,14540,e=>{"use strict";var t=e.i(24669),r=e.i(6775),i=e.i(49429),n=e.i(6044),s=e.i(44728),a=e.i(33448),o=e.i(56776),l=e.i(41969),u=e.i(29520),c=e.i(76626),f=e.i(89509),h=e.i(92410),d=e.i(27988),p=e.i(11197),m=e.i(93532),y=e.i(64501),b=e.i(83015),g=e.i(22025),v=e.i(1887),w=e.i(66930),k=e.i(51306),S=e.i(91584),O=e.i(99431);let x={},P=()=>x,E={};class C{policies;group;data={};constructor(e,t){this.policies=e,this.group=t}toObject(){return{...this.data}}has(e){return void 0!==this.lookup(e,!0)}get(e,t){if(this.group.depend(e,t),O.i.call(this.data,e)){let r=this.data[e];if(r&&O.i.call(r,t))return r[t]}return"__typename"===t&&O.i.call(this.policies.rootTypenamesById,e)?this.policies.rootTypenamesById[e]:this instanceof F?this.parent.get(e,t):void 0}lookup(e,t){return(t&&this.group.depend(e,"__exists"),O.i.call(this.data,e))?this.data[e]:this instanceof F?this.parent.lookup(e,t):this.policies.rootTypenamesById[e]?{}:void 0}merge(e,t){let r;(0,o.f)(e)&&(e=e.__ref),(0,o.f)(t)&&(t=t.__ref);let i="string"==typeof e?this.lookup(r=e):e,n="string"==typeof t?this.lookup(r=t):t;if(!n)return;(0,m.k)("string"==typeof r,109),n=this.coerceStoreObject(n,(e,t)=>e.coerceToParsed(t),n.__typename||i?.__typename||this.policies.rootTypenamesById[r]);let s=new v.f({reconciler:j}).merge(i,n);if(this.data[r]=s,s!==i&&(delete this.refs[r],this.group.caching)){let e={};i||(e.__exists=1),Object.keys(n).forEach(t=>{if(!i||i[t]!==s[t]){e[t]=1;let r=(0,O.w)(t);r===t||this.policies.hasKeyArgs(s.__typename,r)||(e[r]=1),void 0!==s[t]||this instanceof F||delete s[t]}}),e.__typename&&!(i&&i.__typename)&&this.policies.rootTypenamesById[r]===s.__typename&&delete e.__typename,Object.keys(e).forEach(e=>this.group.dirty(r,e))}}modify(e,t,r){let i=this.lookup(e);if(i){let n={},s=!1,a=!0,l={DELETE:x,INVALIDATE:E,isReference:o.f,toReference:this.toReference,canRead:this.canRead,readField:(t,r)=>this.policies.readField("string"==typeof t?{fieldName:t,from:r||(0,k.f)(e)}:t,{store:this})};if(Object.keys(i).forEach(c=>{let f=(0,O.w)(c),h=i[c];if(void 0===h)return;let d="function"==typeof t?t:t[c]||(r?void 0:t[f]);if(d){let t=d===P?x:d((0,S.f)(h),{...l,fieldName:f,storeFieldName:c,storage:this.getStorage(e,c)});if(t===E)this.group.dirty(e,c);else if(t===x&&(t=void 0),t!==h&&(n[c]=t,s=!0,h=t,u.f)){let e=e=>{if(void 0===this.lookup(e.__ref))return u.f&&m.k.warn(110,e),!0};if((0,o.f)(t))e(t);else if(Array.isArray(t)){let r,i=!1;for(let n of t){if((0,o.f)(n)){if(i=!0,e(n))break}else if("object"==typeof n&&n){let[e]=this.policies.identify(n);e&&(r=n)}if(i&&void 0!==r){u.f&&m.k.warn(111,r);break}}}}}void 0!==h&&(a=!1)}),s)return this.merge(e,n),a&&(this instanceof F?this.data[e]=void 0:delete this.data[e],this.group.dirty(e,"__exists")),!0}return!1}delete(e,t,r){let i=this.lookup(e);if(i){let n=this.getFieldValue(i,"__typename"),s=t&&r?this.policies.getStoreFieldName({typename:n,fieldName:t,args:r}):t;return this.modify(e,s?{[s]:P}:P,!!r)}return!1}evict(e,t){let r=!1;return e.id&&(O.i.call(this.data,e.id)&&(r=this.delete(e.id,e.fieldName,e.args)),this instanceof F&&this!==t&&(r=this.parent.evict(e,t)||r),(e.fieldName||r)&&this.group.dirty(e.id,e.fieldName||"__exists")),r}clear(){this.replace(null)}extract(){let e=this.toObject();this.hasScalarConfig()&&(e=Object.fromEntries(Object.entries(e).map(([e,t])=>[e,t&&this.coerceStoreObject(t,(e,t)=>e.coerceToSerialized(t),t?.__typename||this.policies.rootTypenamesById[e])])));let t=[];return this.getRootIdSet().forEach(e=>{O.i.call(this.policies.rootTypenamesById,e)||t.push(e)}),t.length&&(e.__META={extraRootIds:t.sort()}),e}hasScalarConfig(){return!!this.policies.cache.config.scalars}coerceStoreObject(e,t,r=e.__typename){if(!r||!this.hasScalarConfig())return e;let i=!1,n=Object.entries(e).map(([e,n])=>{let s=(0,O.w)(e),a=this.policies.getScalarTypeForField(r,s),o=this.coerceValue(n,t,a,`${r}.${s}`);return i||=o!==n,[e,o]});return i?Object.fromEntries(n):e}coerceValue(e,t,r,i){if(null==e)return e;if(r){let n=(0,d.f)(r);if(n)if(Array.isArray(e))return e.map(e=>this.coerceValue(e,t,n[1],i));else u.f&&u.f&&m.k.warn(112,i,r,(0,p.f)(r));let s=this.policies.cache.getScalar((0,p.f)(r));if(s)return t(s,e)}return Array.isArray(e)?e.map(e=>this.coerceValue(e,t,r,i)):(0,h.f)(e)&&"__typename"in e?this.coerceStoreObject(e,t):e}replace(e){if(Object.keys(this.data).forEach(t=>{e&&O.i.call(e,t)||this.delete(t)}),e){let{__META:t,...r}=e;Object.keys(r).forEach(e=>{this.merge(e,r[e])}),t&&t.extraRootIds.forEach(this.retain,this)}}rootIds={};retain(e){return this.rootIds[e]=(this.rootIds[e]||0)+1}release(e){if(this.rootIds[e]>0){let t=--this.rootIds[e];return t||delete this.rootIds[e],t}return 0}getRootIdSet(e=new Set){return Object.keys(this.rootIds).forEach(e.add,e),this instanceof F?this.parent.getRootIdSet(e):Object.keys(this.policies.rootTypenamesById).forEach(e.add,e),e}gc(){let e=this.getRootIdSet(),t=this.toObject();e.forEach(r=>{O.i.call(t,r)&&(Object.keys(this.findChildRefIds(r)).forEach(e.add,e),delete t[r])});let r=Object.keys(t);if(r.length){let e=this;for(;e instanceof F;)e=e.parent;r.forEach(t=>e.delete(t))}return r}refs={};findChildRefIds(e){if(!O.i.call(this.refs,e)){let t=this.refs[e]={},r=this.data[e];if(!r)return t;let i=new Set([r]);i.forEach(e=>{(0,o.f)(e)&&(t[e.__ref]=!0),(0,w.f)(e)&&Object.keys(e).forEach(t=>{let r=e[t];(0,w.f)(r)&&i.add(r)})})}return this.refs[e]}makeCacheKey(){return this.group.keyMaker.lookupArray(arguments)}getFieldValue=(e,t)=>(0,S.f)((0,o.f)(e)?this.get(e.__ref,t):e&&e[t]);canRead=e=>(0,o.f)(e)?this.has(e.__ref):"object"==typeof e;toReference=(e,t)=>{if("string"==typeof e)return(0,k.f)(e);if((0,o.f)(e))return e;let[r]=this.policies.identify(e);if(r){let i=(0,k.f)(r);return t&&this.merge(r,e),i}};get supportsResultCaching(){return this.group.caching}}class _{caching;parent;d=null;keyMaker;constructor(e,t=null){this.caching=e,this.parent=t,this.resetCaching()}resetCaching(){this.d=this.caching?(0,g.f)():null,this.keyMaker=new b.f}depend(e,t){if(this.d){this.d(t+"#"+e);let r=(0,O.w)(t);r!==t&&this.d(r+"#"+e),this.parent&&this.parent.depend(e,t)}}dirty(e,t){this.d&&this.d.dirty(t+"#"+e,"__exists"===t?"forget":"setDirty")}}function T(e,t){R(e)&&e.group.depend(t,"__exists")}C.Root=class extends C{constructor({policies:e,resultCaching:t=!0,seed:r}){super(e,new _(t)),r&&this.replace(r)}stump=new D(this);addLayer(e,t){return this.stump.addLayer(e,t)}removeLayer(){return this}storageTrie=new b.f;getStorage(){return this.storageTrie.lookupArray(arguments)}};class F extends C{id;parent;replay;group;constructor(e,t,r,i){super(t.policies,i),this.id=e,this.parent=t,this.replay=r,this.group=i,r(this)}addLayer(e,t){return new F(e,this,t,this.group)}removeLayer(e){let r=this.parent.removeLayer(e);return e===this.id?(this.group.caching&&Object.keys(this.data).forEach(e=>{let i=this.data[e],n=r.lookup(e);n?i?i!==n&&Object.keys(i).forEach(r=>{(0,t.f)(i[r],n[r])||this.group.dirty(e,r)}):(this.group.dirty(e,"__exists"),Object.keys(n).forEach(t=>{this.group.dirty(e,t)})):this.delete(e)}),r):r===this.parent?this:r.addLayer(this.id,this.replay)}toObject(){return{...this.parent.toObject(),...this.data}}findChildRefIds(e){let t=this.parent.findChildRefIds(e);return O.i.call(this.data,e)?{...t,...super.findChildRefIds(e)}:t}getStorage(...e){let t=this.parent;for(;t.parent;)t=t.parent;return t.getStorage(...e)}}class D extends F{constructor(e){super("EntityStore.Stump",e,()=>{},new _(e.group.caching,e.group))}removeLayer(){return this}merge(e,t){return this.parent.merge(e,t)}}function j(e,r,i){let n=e[i],s=r[i];return(0,t.f)(n,s)?n:s}function R(e){return!!(e&&e.supportsResultCaching)}var M=e.i(73944),I=e.i(57299),N=e.i(15953),A=e.i(73528);function q(e,t){if(e.arguments&&e.arguments.length){let r={};return e.arguments.forEach(({name:e,value:i})=>(0,A.f)(r,e,i,t)),r}return null}let Q=["connection","include","skip","client","rest","export","nonreactive","stream"],V=s.f,z=Object.assign(function(e,t,r){if(t&&r&&r.connection&&r.connection.key){if(r.connection.filter&&r.connection.filter.length>0){let e=r.connection.filter?r.connection.filter:[];e.sort();let i={};e.forEach(e=>{i[e]=t[e]});let n=V(i);if("{}"!==n)return`${r.connection.key}(${n})`}return r.connection.key}let i=e;if(t){let e=V(t);"{}"!==e&&(i+=`(${e})`)}return r&&Object.keys(r).forEach(e=>{-1===Q.indexOf(e)&&(r[e]&&Object.keys(r[e]).length?i+=`@${e}(${V(r[e])})`:i+=`@${e}`)}),i},{setStringify(e){let t=V;return V=e,t}});var L=e.i(65444),B=e.i(7057),W=e.i(87408);let U={};function $(e){let t=JSON.stringify(e);return U[t]||(U[t]={})}function H(e){let t=$(e);return t.keyFieldsFn||(t.keyFieldsFn=(t,r)=>{let{serializeKeyField:i}=r,n=e=>i?(n,s)=>{let a=e(n,s),o=n===r.storeObject||n===t?r.typename:e(n,"__typename");return"string"==typeof o?i(o,s,a):a}:e,s=n((e,t)=>r.readField(t,e)),a=r.keyObject=G(e,e=>{let i=Y(r.storeObject,e,s);return void 0===i&&t!==r.storeObject&&O.i.call(t,e[0])&&(i=Y(t,e,n(J))),(0,m.k)(void 0!==i,114,e.join("."),t),i});return`${r.typename}:${JSON.stringify(a)}`})}function K(e){let t=$(e);return t.keyArgsFn||(t.keyArgsFn=(t,{field:r,variables:i,fieldName:n})=>{let s=JSON.stringify(G(e,e=>{let n=e[0],s=n.charAt(0);if("@"===s){if(r&&(0,W.f)(r.directives)){let t=n.slice(1),s=r.directives.find(e=>e.name.value===t),a=s&&q(s,i);return a&&Y(a,e.slice(1))}return}if("$"===s){let t=n.slice(1);if(i&&O.i.call(i,t)){let r=e.slice(0);return r[0]=t,Y(i,r)}return}if(t)return Y(t,e)}));return(t||"{}"!==s)&&(n+=":"+s),n})}function G(e,t){let r=new v.f;return(function e(t){let r=$(t);if(!r.paths){let i=r.paths=[],n=[];t.forEach((r,s)=>{(0,L.f)(r)?(e(r).forEach(e=>i.push(n.concat(e))),n.length=0):(n.push(r),(0,L.f)(t[s+1])||(i.push(n.slice(0)),n.length=0))})}return r.paths})(e).reduce((e,i)=>{let n=t(i);if(void 0!==n){for(let e=i.length-1;e>=0;--e)n={[i[e]]:n};e=r.merge(e,n)}return e},{})}function J(e,t){return e[t]}function Y(e,t,r){return r=r||J,function e(t){return(0,w.f)(t)?(0,L.f)(t)?t.map(e):G(Object.keys(t).sort(),e=>Y(t,e)):t}(t.reduce(function e(t,i){return(0,L.f)(t)?t.map(t=>e(t,i)):t&&r(t,i)},e))}let Z=new(e.i(98173)).f,X=new WeakMap;function ee(e){let t=X.get(e);return t||X.set(e,t={vars:new Set,dep:(0,g.f)()}),t}function et(e){ee(e).vars.forEach(t=>t.forgetCache(e))}function er(e){ee(e).vars.forEach(t=>t.attachCache(e))}function ei(e){let t=new Set,r=new Set,i=function(s){if(arguments.length>0){if(e!==s){e=s,t.forEach(e=>{var t;ee(e).dep.dirty(i),(t=e).broadcastWatches&&t.broadcastWatches()});let n=Array.from(r);r.clear(),n.forEach(t=>t(e))}}else{let e=Z.getValue();e&&(n(e),ee(e).dep(i))}return e};i.onNextChange=e=>(r.add(e),()=>{r.delete(e)});let n=i.attachCache=e=>(t.add(e),ee(e).vars.add(i),i);return i.forgetCache=e=>t.delete(e),i}function en(e){return void 0!==e.args?e.args:e.field?q(e.field,e.variables):null}e.s(["O",0,Z,"D",0,et,"v",0,ei,"T",0,er],268);let es=()=>void 0,ea=(e,t)=>t.fieldName,eo=(e,t,{mergeObjects:r})=>r(e,t),el=(e,t)=>t,eu=(e,t,{streamFieldInfo:r,existingData:i})=>{if(!e&&!i)return t;let n=[],s=e??i,a=r?.isLastChunk?t.length:Math.max(s.length,t.length);for(let e=0;e<a;e++)n[e]=void 0===t[e]?s[e]:t[e];return n};class ec{config;warnedForMissingPossibleTypes=new b.f(!0);typePolicies={};toBeAdded={};supertypeMap=new Map;fuzzySubtypes=new Map;cache;rootIdsByTypename={};rootTypenamesById={};usingPossibleTypes=!1;constructor(e){this.config=e,this.config={dataIdFromObject:O.y,...e},this.cache=this.config.cache,this.setRootTypename("Query"),this.setRootTypename("Mutation"),this.setRootTypename("Subscription"),e.possibleTypes&&this.addPossibleTypes(e.possibleTypes),e.typePolicies&&this.addTypePolicies(e.typePolicies)}identify(e,t){let r,i=this,n=t&&(t.typename||t.storeObject?.__typename)||e.__typename;if(n===this.rootTypenamesById.ROOT_QUERY)return["ROOT_QUERY"];let s=t&&t.storeObject||e,a={...t,typename:n,storeObject:s,readField:t&&t.readField||((...e)=>{let t=eh(e,s);return i.readField(t,{store:i.cache.data,variables:t.variables})})};this.cache.configuresScalars()&&(a.serializeKeyField=(e,t,r)=>this.serializeScalarValue(r,this.getScalarTypeForField(e,t)));let o=n&&this.getTypePolicy(n),l=o&&o.keyFn||this.config.dataIdFromObject;return I.w.withValue(!0,()=>{for(;l;){let t=l({...e,...s},a);if((0,L.f)(t))l=H(t);else{r=t;break}}}),r=r?String(r):void 0,a.keyObject?[r,a.keyObject]:[r]}addTypePolicies(e){Object.keys(e).forEach(t=>{let{queryType:r,mutationType:i,subscriptionType:n,...s}=e[t];r&&this.setRootTypename("Query",t),i&&this.setRootTypename("Mutation",t),n&&this.setRootTypename("Subscription",t),O.i.call(this.toBeAdded,t)?this.toBeAdded[t].push(s):this.toBeAdded[t]=[s]})}updateTypePolicy(e,t,r){let i=this.getTypePolicy(e),{keyFields:n,fields:s}=t;function a(e,t){e.merge="function"==typeof t?t:!0===t?eo:!1===t?el:e.merge}a(i,t.merge),i.keyFn=!1===n?es:(0,L.f)(n)?H(n):"function"==typeof n?n:i.keyFn,s&&Object.keys(s).forEach(t=>{let i=r[t];i&&i?.typename===e||(i=r[t]={typename:e});let n=s[t];if("function"==typeof n)i.scalar?u.f&&ep(e,t,i.scalar,"read"):i.read=n;else{let{keyArgs:r,read:s,merge:o,scalar:l}=n;l&&(i.scalar=l),i.scalar&&(u.f&&((void 0!==s||void 0!==i.read)&&ep(e,t,i.scalar,"read"),(void 0!==o||void 0!==i.merge)&&ep(e,t,i.scalar,"merge")),i.read=s=void 0,i.merge=o=void 0),i.keyFn=!1===r?ea:(0,L.f)(r)?K(r):"function"==typeof r?r:i.keyFn,"function"==typeof s&&(i.read=s),a(i,o)}i.read&&i.merge&&(i.keyFn=i.keyFn||ea)})}setRootTypename(e,t=e){let r="ROOT_"+e.toUpperCase(),i=this.rootTypenamesById[r];t!==i&&((0,m.k)(!i||i===e,115,e),i&&delete this.rootIdsByTypename[i],this.rootIdsByTypename[t]=r,this.rootTypenamesById[r]=t)}addPossibleTypes(e){this.usingPossibleTypes=!0,Object.keys(e).forEach(t=>{this.getSupertypeSet(t,!0),e[t].forEach(e=>{this.getSupertypeSet(e,!0).add(t);let r=e.match(O.v);r&&r[0]===e||this.fuzzySubtypes.set(e,new RegExp(e))})})}getTypePolicy(e){if(!O.i.call(this.typePolicies,e)){let t=this.typePolicies[e]={};t.fields={};let r=this.supertypeMap.get(e);!r&&this.fuzzySubtypes.size&&(r=this.getSupertypeSet(e,!0),this.fuzzySubtypes.forEach((t,i)=>{if(t.test(e)){let e=this.supertypeMap.get(i);e&&e.forEach(e=>r.add(e))}})),r&&r.size&&r.forEach(e=>{let{fields:r,...i}=this.getTypePolicy(e);Object.assign(t,i),Object.assign(t.fields,r)})}let t=this.toBeAdded[e];return t&&t.length&&t.splice(0).forEach(t=>{this.updateTypePolicy(e,t,this.typePolicies[e].fields)}),this.typePolicies[e]}getFieldPolicy(e,t){if(e)return this.getTypePolicy(e).fields[t]}getSupertypeSet(e,t){let r=this.supertypeMap.get(e);return!r&&t&&this.supertypeMap.set(e,r=new Set),r}fragmentMatches(e,t,r,i){if(!e.typeCondition)return!0;if(!t)return!1;let n=e.typeCondition.name.value;if(t===n)return!0;if(this.usingPossibleTypes&&this.supertypeMap.has(n)){let s=this.getSupertypeSet(t,!0),a=[s],o=e=>{let t=this.getSupertypeSet(e,!1);t&&t.size&&0>a.indexOf(t)&&a.push(t)},l=!!(r&&this.fuzzySubtypes.size),c=!1;for(let f=0;f<a.length;++f){let h=a[f];if(h.has(n))return s.has(n)||(c&&u.f&&m.k.warn(116,t,n),s.add(n)),!0;h.forEach(o),l&&f===a.length-1&&(0,O.C)(e.selectionSet,r,i)&&(l=!1,c=!0,this.fuzzySubtypes.forEach((e,r)=>{let i=t.match(e);i&&i[0]===t&&o(r)}))}}else{let r=this.warnedForMissingPossibleTypes,i=[e,t];!r.peekArray(i)&&(r.lookupArray(i),u.f&&m.k.warn(117,e.kind===M.f.FRAGMENT_DEFINITION?"fragment `"+e.name.value+"`":"inline fragment",n,t,t))}return!1}hasKeyArgs(e,t){let r=this.getFieldPolicy(e,t);return!!(r&&r.keyFn)}getStoreFieldName(e){var t,r;let i,n,s,{typename:a,fieldName:o}=e,l=this.getFieldPolicy(a,o),u=l&&l.keyFn;if(u&&a){let t={typename:a,fieldName:o,field:e.field||null,variables:e.variables},r=en(e);for(;u;){let e=u(r,t);if((0,L.f)(e))u=K(e);else{i=e||o;break}}}return(void 0===i&&(i=e.field?(t=e.field,r=e.variables,n=null,t.directives&&(n={},t.directives.forEach(e=>{n[e.name.value]={},e.arguments&&e.arguments.forEach(({name:t,value:i})=>(0,A.f)(n[e.name.value],t,i,r))})),s=null,t.arguments&&t.arguments.length&&(s={},t.arguments.forEach(({name:e,value:t})=>(0,A.f)(s,e,t,r))),z(t.name.value,s,n)):z(o,en(e))),!1===i)?o:o===(0,O.w)(i)?i:o+":"+i}getScalarTypeForField(e,t){return this.getFieldPolicy(e,t)?.scalar}serializeScalarValue(e,t){if(null==e||!t)return e;let r=(0,d.f)(t);if(r&&Array.isArray(e))return e.map(e=>this.serializeScalarValue(e,r[1]));let i=this.cache.getScalar((0,p.f)(t));return i?i.coerceToSerialized(e):e}readField(e,t){let r=e.from;if(!r||!(e.field||e.fieldName))return;if(void 0===e.typename){let i=t.store.getFieldValue(r,"__typename");i&&(e.typename=i)}let i=this.getStoreFieldName(e),n=(0,O.w)(i),s=t.store.getFieldValue(r,i),a=this.getFieldPolicy(e.typename,n),l=a&&a.read;if(l){let n=ef(this,r,e,t,t.store.getStorage((0,o.f)(r)?r.__ref:r,i));return Z.withValue(this.cache,l,[s,n])}return s}getReadFunction(e,t){let r=this.getFieldPolicy(e,t);return r&&r.read}getMergeFunction(e,t,r){let i=this.getFieldPolicy(e,t),n=i&&i.merge;return!n&&r&&(n=(i=this.getTypePolicy(r))&&i.merge),n}runMergeFunction(e,r,{field:i,typename:n,merge:s,path:a},o,l){let u=e;if(s===eo)return ed(o.store)(e,r);if(s===el)return r;o.overwrite&&(e=void 0);let c=o.extensions?.[N.j]?.deref()?.peekArray(a);if(c){let{current:e,previous:i}=c;if(i&&(0,t.f)(i.incoming,r)&&(0,t.f)(i.streamFieldInfo,e))return i.result}let f=s(e,r,function(e,t,r,i,n,s){let a={...ef(e,t,r,i,n),extensions:i.extensions,existingData:s},o=i.extensions;if(o&&N.j in o){let{[N.j]:e,...t}=o,i=e?.deref()?.peekArray(r.path);i&&(a.streamFieldInfo=i.current),a.extensions=0===Object.keys(t).length?void 0:t}return a}(this,void 0,{typename:n,fieldName:i.name.value,field:i,variables:o.variables,path:a},o,l||{},u));return c&&(c.previous={incoming:r,streamFieldInfo:c.current,result:f}),f}}function ef(e,t,r,i,n){let s=e.getStoreFieldName(r),a=(0,O.w)(s),l=r.variables||i.variables,{toReference:u,canRead:c}=i.store;return{args:en(r),field:r.field||null,fieldName:a,storeFieldName:s,variables:l,isReference:o.f,toReference:u,storage:n,cache:e.cache,canRead:c,readField:(...r)=>e.readField(eh(r,t,l),i),mergeObjects:ed(i.store)}}function eh(e,t,r){let i,{0:n,1:s,length:a}=e;return"string"==typeof n?i={fieldName:n,from:a>1?s:t}:(i={...n},O.i.call(i,"from")||(i.from=t)),u.f&&void 0===i.from&&u.f&&m.k.warn(118,(0,B.f)(Array.from(e))),void 0===i.variables&&(i.variables=r),i}function ed(e){return function(t,r){if((0,L.f)(t)||(0,L.f)(r))throw(0,m.b)(119);if((0,w.f)(t)&&(0,w.f)(r)){let i=e.getFieldValue(t,"__typename"),n=e.getFieldValue(r,"__typename");if(i&&n&&i!==n)return r;if((0,o.f)(t)&&(0,O.N)(r))return e.merge(t.__ref,r),t;if((0,O.N)(t)&&(0,o.f)(r))return e.merge(t,r.__ref),r;if((0,O.N)(t)&&(0,O.N)(r))return{...t,...r}}return r}}function ep(e,t,r,i){u.f&&m.k.warn(120,`${e}.${t}`,r,i)}var em=e.i(51104),ey=e.i(14160),eb=e.i(42628),eg=e.i(79500),ev=e.i(44871),ew=e.i(12253);let ek=(0,ew.f)(function(e){let t=e.directives?.find(e=>"defer"===e.name.value);if(!t)return!1;for(let e of t.arguments??[])if("if"===e.name.value)switch(e.value.kind){case M.f.BOOLEAN:return e.value.value;case M.f.VARIABLE:let t=e.value.name.value;return e=>!!e?.[t]}return!0},{max:n.f.isDeferredFragment||2e3});function eS(e,t){let r=ek(e);return"function"==typeof r?r(t):r}var eO=e.i(46638);let ex=(0,ew.f)(function(e){let t=e.directives?.find(e=>"stream"===e.name.value);if(!t)return!1;for(let e of t.arguments??[])if("if"===e.name.value)switch(e.value.kind){case M.f.BOOLEAN:return e.value.value;case M.f.VARIABLE:{let t=e.value.name.value;return e=>!!e?.[t]}}return!0},{max:n.f.isStreamField||2e3});function eP(e,t){let r=ex(e);return"function"==typeof r?r(t):r}var eE=e.i(58008),eC=e.i(26708);class e_ extends Error{message;path;query;variables;constructor(e,t,r,i){if(super(e),this.message=e,this.path=t,this.query=r,this.variables=i,this.name="MissingFieldError",Array.isArray(this.path)){this.missing=this.message;for(let e=this.path.length-1;e>=0;--e)this.missing={[this.path[e]]:this.missing}}else this.missing=this.path;this.__proto__=e_.prototype}missing}function eT(e){return[e.selectionSet,e.objectOrReference,e.context]}e.s(["f",0,e_],14540);class eF{executeSelectionSet;executeSubSelectedArray;prunePartialStreamArray;prunePartialBoundaries;config;knownResults=new WeakMap;keyMaker=new b.f;constructor(e){this.config=e,this.executeSelectionSet=(0,r.$)(e=>{let t=eT(e),r=this.executeSelectionSet.peek(...t);return r||(T(e.context.store,e.enclosingRef.__ref),this.execSelectionSetImpl(e))},{max:n.f["inMemoryCache.executeSelectionSet"]||5e4,keyArgs:eT,makeCacheKey(e,t,r){if(R(r.store))return r.store.makeCacheKey(e,(0,o.f)(t)?t.__ref:t,r.varString)}}),this.executeSubSelectedArray=(0,r.$)(e=>(T(e.context.store,e.enclosingRef.__ref),this.execSubSelectedArrayImpl(e)),{max:n.f["inMemoryCache.executeSubSelectedArray"]||1e4,makeCacheKey({field:e,array:t,context:r}){if(R(r.store))return r.store.makeCacheKey(e,t,r.varString)}}),this.prunePartialBoundaries=(0,r.$)(e=>this.prunePartialBoundariesImpl(e),{max:n.f["inMemoryCache.prunePartialBoundaries"]||2e4,makeCacheKey:({boundaries:e,context:t,selectionSet:r})=>{if(R(t.store))return this.keyMaker.lookup(r,e,t.streamInfo,t.isDeferPending)}}),this.prunePartialStreamArray=(0,r.$)(e=>{let{field:t,context:r,path:i}=e;return eP(t,r.variables)&&r.streamInfo?.lookupArray(i).state.depend(),this.prunePartialStreamArrayImpl(e)},{max:n.f["inMemoryCache.prunePartialStreamArray"]||2e4,makeCacheKey:({field:e,context:t,boundaries:r})=>{if(R(t.store))return this.keyMaker.lookup(e,r,t.streamInfo,t.isDeferPending)}})}diffQueryAgainstStore({store:e,query:t,rootId:r="ROOT_QUERY",variables:i,returnPartialData:n=!0,...a}){let o,l=Object.hasOwn(a,N.q),u=this.config.cache.policies;i=(0,em.f)((0,ey.f)((0,ev.f)(t)),i);let c=(0,k.f)(r),f={store:e,query:t,policies:u,variables:i,varString:(0,s.f)(i),...(0,O.r)(t,this.config.fragments),...a[N.q]},h=this.executeSelectionSet({selectionSet:(0,eg.f)(t).selectionSet,objectOrReference:c,enclosingRef:c,context:f});if(l&&function({dataState:e},t){return"deferPartial"===e||"streamPartial"===e||("complete"===e||"streaming"===e)&&!!(t.streamInfo||t.isDeferPending)}(h,f)){let e=this.prunePartialBoundaries({selectionSet:(0,eg.f)(t).selectionSet,data:h.result,boundaries:h.partialBoundaries,context:f,path:[]});h.result!==e.result&&n||(h={result:e.result,partialBoundaries:h.partialBoundaries,dataState:e.dataState})}let{result:d,dataState:p,missing:m}=h,y=!!m&&("streaming"!==p||!l);"streaming"===p&&0===Object.keys(d).length&&(p="empty"),"deferPartial"!==p&&"streamPartial"!==p&&("streaming"!==p||l)||(p="partial"),"partial"!==p||n||(p="empty");let b="complete"===p,g={result:b||"streaming"===p||n&&Object.keys(d).length?d:null,complete:b,get missing(){return y&&(o||=new e_(function(e){try{JSON.stringify(e,(e,t)=>{if("string"==typeof t)throw t;return t})}catch(e){return e}}(m),m,t,i)),o}};return l&&(g.dataState=p),g}isFresh(e,t,r,i){if(R(i.store)&&this.knownResults.get(e)===r){let n=this.executeSelectionSet.peek(r,t,i);if(n&&e===n.result)return!0}return!1}execSelectionSetImpl({selectionSet:e,objectOrReference:t,enclosingRef:r,context:n}){let s,a;if((0,o.f)(t)&&!n.policies.rootTypenamesById[t.__ref]&&!n.store.has(t.__ref))return{result:{},dataState:"empty",missing:`Dangling reference to missing ${t.__ref} object`,partialBoundaries:new eD};let{variables:l,policies:c,store:f}=n,h=f.getFieldValue(t,"__typename"),d=[],p=new v.f,y=new eD;function b(e,t){return e.missing&&(a=p.merge(a,{[t]:e.missing})),e}"string"!=typeof h||c.rootIdsByTypename[h]||d.push({__typename:h}),new Set(e.selections).forEach(e=>{if((0,eC.f)(e,l))if((0,eO.f)(e)){let l=c.readField({fieldName:e.name.value,field:e,variables:n.variables,from:t},n),f=(0,eE.f)(e);if(void 0===l){if(!i.f.added(e)){let r=(0,o.f)(t)?t.__ref:t?c.identify(t)[0]:void 0;a=p.merge(a,{[f]:`Can't find field '${e.name.value}' on ${r?`${r} object`:`object ${JSON.stringify(t||{},null,2)}`}`}),s=eR(s,"empty")}}else if((0,L.f)(l))if(l.length>0){let t=b(this.executeSubSelectedArray({field:e,array:l,enclosingRef:r,context:n}),f);l=t.result,s=eR(s,t.dataState),y.set(f,t.partialBoundaries)}else s=eR(s,"complete");else if(e.selectionSet){if(null!=l){if(u.f){let t=e.name.value;if(h){let e=c.getFieldPolicy(h,t);e?.scalar&&u.f&&m.k.warn(121,`${h}.${t}`,e.scalar)}}let t=b(this.executeSelectionSet({selectionSet:e.selectionSet,objectOrReference:l,enclosingRef:(0,o.f)(l)?l:r,context:n}),f);l=t.result,y.set(f,t.partialBoundaries),s=eR(s,"empty"===t.dataState?"partial":t.dataState)}}else i.f.added(e)||(s=eR(s,"complete"));void 0!==l&&d.push({[f]:l})}else{let i=(0,eb.f)(e,n.lookupFragment);if(!i&&e.kind===M.f.FRAGMENT_SPREAD)throw(0,m.b)(122,e.name.value);if(i&&c.fragmentMatches(i,h)){let o=eS(e,n.variables),l=this.execSelectionSetImpl({selectionSet:i.selectionSet,objectOrReference:t,enclosingRef:r,context:n}),{result:u,dataState:c}=l;y.merge(l.partialBoundaries),void 0!==u&&d.push(u),l.missing&&(a=p.merge(a,l.missing)),o&&("partial"===c||"empty"===c)&&y.add(e),s=eR(s,o?"empty"===c?"streaming":"partial"===c?"deferPartial":c:c)}}}),s||="complete";let g={result:function(e){let t=e[0]||{},r=e.length;if(r>1){let i=new v.f;for(let n=1;n<r;++n)t=i.merge(t,e[n])}return t}(d),missing:a,dataState:s,partialBoundaries:y},w=(0,S.f)(g);return w.result&&this.knownResults.set(w.result,e),w}execSubSelectedArrayImpl({field:e,array:t,enclosingRef:r,context:i}){let n,s="complete",a=new v.f,l=new eD,c=eP(e,i.variables);return e.selectionSet&&(t=t.filter(e=>void 0===e||i.store.canRead(e))),{result:t=t.map((t,f)=>{let h;if(null===t)return null;if((0,L.f)(t)?h=this.executeSubSelectedArray({field:e,array:t,enclosingRef:r,context:i}):e.selectionSet&&(h=this.executeSelectionSet({selectionSet:e.selectionSet,objectOrReference:t,enclosingRef:(0,o.f)(t)?t:r,context:i})),h){var d;let{dataState:t}=h;return l.set(f,"partial"===t?h.partialBoundaries.clone().add(e):h.partialBoundaries),s=eR(s,c&&"partial"===t?"streamPartial":t),(d=h).missing&&(n=a.merge(n,{[f]:d.missing})),d.result}return u.f&&function(e,t,r){if(!t.selectionSet){let i=new Set([r]);i.forEach(r=>{(0,w.f)(r)&&((0,m.k)(!(0,o.f)(r),123,(0,O.e)(e,r),t.name.value),Object.values(r).forEach(i.add,i))})}}(i.store,e,t),t}),dataState:s,missing:n,partialBoundaries:l}}prunePartialBoundariesImpl({boundaries:e,context:r,data:i,path:n,selectionSet:s}){let{variables:a,lookupFragment:o,policies:l}=r;if(null==i||!e)return{result:i,dataState:"complete"};let u=new v.f({arrayMerge:"truncate"}),c=!1,f="complete",h={};Object.hasOwn(i,"__typename")&&(h.__typename=i.__typename);let d=new Set(s.selections);return d.forEach(t=>{if(!(0,eC.f)(t,a))return;if((0,eO.f)(t)){let s=(0,eE.f)(t);if(!Object.hasOwn(i,s))return;let a=i[s];if(Array.isArray(a)){let i=this.prunePartialStreamArray({field:t,array:a,boundaries:e.getChild(s),context:r,path:n.concat(s)});c||=i.result!==a;let o=h[s],l=u.merge(o,i.result);o&&o.length<l.length&&(l=l.slice(0,o.length)),h[s]=l,f=eR(f,i.dataState)}else if(t.selectionSet){let i=this.prunePartialBoundaries({data:a,selectionSet:t.selectionSet,boundaries:e.getChild(s),context:r,path:n.concat(s)});c||=i.result!==a,f=eR(f,i.dataState),h[s]=Object.hasOwn(h,s)?u.merge(h[s],i.result):i.result}else h[s]=a;return}let s=(0,eb.f)(t,o),p=!1;if(r.isDeferPending&&eS(t,a)){let e=t.directives?.find(e=>"defer"===e.name.value),i=e&&function(e,t,r){let i=e.arguments?.find(e=>e.name.value===t);if(i&&i.value.kind===r&&i.value.kind===M.f.STRING)return i.value.value}(e,"label",M.f.STRING);p=r.isDeferPending(n,i)}s&&l.fragmentMatches(s,i.__typename)&&(e.has(t)||p?f=eR(f,"streaming"):s.selectionSet.selections.forEach(d.add,d))}),Object.keys(h).length!==Object.keys(i).length?c=!0:c&&e.hasSelections()&&(c=!(0,t.f)(h,i)),{result:c?h:i,dataState:f}}prunePartialStreamArrayImpl({field:e,array:t,boundaries:r,context:i,path:n}){if(!r)return{result:t,dataState:"complete"};let s=!1,a="complete",o=[],l=i.streamInfo?.peekArray(n)?.state,u=Math.min(t.length,l?.truncate?l.streamPosition:Number.MAX_SAFE_INTEGER);for(let c=0;c<u;c++){let u=t[c],f={result:u,dataState:"complete"},h=r.getChild(c);if(h?.has(e)){l?(l.truncate=!0,o=o.slice(0,l.streamPosition)):(o=[],a="complete");break}Array.isArray(u)?f=this.prunePartialStreamArray({field:e,array:u,boundaries:r.getChild(c),context:i,path:n.concat(c)}):e.selectionSet&&(f=this.prunePartialBoundaries({data:u,selectionSet:e.selectionSet,boundaries:r.getChild(c),context:i,path:n.concat(c)})),o.push(f.result),s||=f.result!==u,a=eR(a,f.dataState)}return{result:(s||=o.length!==t.length)?o:t,dataState:a}}}class eD{selections=new Set;children=new Map;add(e){return this.selections.add(e),this}has(e){return this.selections.has(e)}hasSelections(){return this.selections.size>0}getChild(e){return this.children.get(e)}clone(){return new eD().merge(this)}set(e,t){let r=this.getChild(e);this.children.set(e,r?r.clone().merge(t):t)}merge(e){return e.selections.forEach(e=>this.add(e)),e.children.forEach((e,t)=>this.set(t,e)),this}}let ej={empty:{complete:"partial",deferPartial:"partial",streaming:"partial",streamPartial:"partial"},deferPartial:{empty:"partial"},streamPartial:{deferPartial:"deferPartial",empty:"partial"},streaming:{deferPartial:"deferPartial",empty:"partial",streamPartial:"streamPartial"},complete:{deferPartial:"deferPartial",streaming:"streaming",streamPartial:"streamPartial",empty:"partial"},partial:{}};function eR(e,t){return"partial"===t?"partial":e&&e!==t?ej[e][t]||e:t}let{toString:eM}=Object.prototype;function eI(e,t,r){let i=`${t}${r}`,n=e.flavors.get(i);return n||e.flavors.set(i,n=e.clientOnly===t&&e.deferred===r?e:{...e,clientOnly:t,deferred:r}),n}class eN{cache;reader;fragments;constructor(e,t,r){this.cache=e,this.reader=t,this.fragments=r}writeToStore(e,{query:r,result:i,dataId:n,variables:a,overwrite:l,extensions:c,[N.q]:h}){let d=(0,f.f)(r),p=(0,O.j)(),y={store:e,written:{},merge:(e,t)=>p.merge(e,t),variables:a={...(0,ey.f)(d),...a},varString:(0,s.f)(a),...(0,O.r)(r,this.fragments),overwrite:!!l,incomingById:new Map,clientOnly:!1,deferred:!1,flavors:new Map,extensions:c,isDeferPending:h?.isDeferPending},b=this.processSelectionSet({result:i||{},dataId:n,selectionSet:d.selectionSet,mergeTree:{map:new Map},context:y,path:[]});if(!(0,o.f)(b))throw(0,m.b)(124,i);return y.incomingById.forEach(({storeObject:r,mergeTree:i,fieldNodeSet:n},s)=>{let a=(0,k.f)(s);if(i&&i.map.size){let e=this.applyMerges(i,a,r,y);if((0,o.f)(e))return;r=e}if(u.f&&!y.overwrite){let e={};n.forEach(t=>{t.selectionSet&&(e[t.name.value]=!0)}),Object.keys(r).forEach(n=>{let s;!0!==e[(0,O.w)(n)]||(s=i&&i.map.get(n))&&s.info&&s.info.merge||function(e,r,i,n){let s=e=>{let t=n.getFieldValue(e,i);return"object"==typeof t&&t},a=s(e);if(!a)return;let l=s(r);if(!l||(0,o.f)(a)||(0,t.f)(a,l)||Object.keys(a).every(e=>void 0!==n.getFieldValue(l,e)))return;let c=n.getFieldValue(e,"__typename")||n.getFieldValue(r,"__typename"),f=(0,O.w)(i),h=`${c}.${f}`;if(ez.has(h))return;ez.add(h);let d=[];(0,L.f)(a)||(0,L.f)(l)||[a,l].forEach(e=>{let t=n.getFieldValue(e,"__typename");"string"!=typeof t||d.includes(t)||d.push(t)}),u.f&&m.k.warn(127,f,c,d.length?"either ensure all objects of type "+d.join(" and ")+" have an ID or a custom merge function, or ":"",h,Array.isArray(a)?[...a]:{...a},Array.isArray(l)?[...l]:{...l})}(a,r,n,y.store)})}e.merge(s,r)}),e.retain(b.__ref),b}processSelectionSet({dataId:e,result:t,selectionSet:r,context:n,mergeTree:s,path:a}){let{policies:l}=this.cache,c={},f=e&&l.rootTypenamesById[e]||eL(t,r,n.fragmentMap)||e&&n.store.get(e,"__typename");"string"==typeof f&&(c.__typename=f);let h=(...e)=>{let t=eh(e,c,n.variables);if((0,o.f)(t.from)){let e=n.incomingById.get(t.from.__ref);if(e){let r=l.readField({...t,from:e.storeObject},n);if(void 0!==r)return r}}return l.readField(t,n)},d=new Set;this.flattenFields(r,t,n,a,f).forEach((e,r)=>{let n=(0,eE.f)(r),p=t[n],y=[...a,n];if(d.add(r),void 0!==p){let t,i=l.getStoreFieldName({typename:f,fieldName:r.name.value,field:r,variables:e.variables}),n=eq(s,i),a=this.processFieldValue(p,r,r.selectionSet?eI(e,!1,e.deferred):e,n,y);r.selectionSet&&((0,o.f)(a)||(0,O.N)(a))&&(t=h("__typename",a));let u=l.getMergeFunction(f,r.name.value,t);u?n.info={field:r,typename:f,merge:u,path:y}:e.extensions?.[N.j]&&Array.isArray(a)&&eP(r,e.variables)?n.info={field:r,typename:f,merge:eu,path:y}:eV(s,i),c=e.merge(c,{[i]:a})}else!u.f||e.clientOnly||e.deferred||i.f.added(r)||l.getReadFunction(f,r.name.value)||m.k.error(125,(0,eE.f)(r),t)});try{let[i,s]=l.identify(t,{typename:f,selectionSet:r,fragmentMap:n.fragmentMap,storeObject:c,readField:h});e=e||i,s&&(c=n.merge(s,c))}catch(t){if(!e)throw t}if("string"==typeof e){let i=(0,k.f)(e),a=n.written[e]||(n.written[e]=[]);if(a.indexOf(r)>=0||(a.push(r),this.reader&&this.reader.isFresh(t,i,r,n)))return i;let o=n.incomingById.get(e);return o?(o.storeObject=n.merge(o.storeObject,c),o.mergeTree=function e(t,r){if(t===r||!r||eQ(r))return t;if(!t||eQ(t))return r;let i=t.info&&r.info?{...t.info,...r.info}:t.info||r.info,n=t.map.size&&r.map.size,s={info:i,map:n?new Map:t.map.size?t.map:r.map};if(n){let i=new Set(r.map.keys());t.map.forEach((t,n)=>{s.map.set(n,e(t,r.map.get(n))),i.delete(n)}),i.forEach(i=>{s.map.set(i,e(r.map.get(i),t.map.get(i)))})}return s}(o.mergeTree,s),d.forEach(e=>o.fieldNodeSet.add(e))):n.incomingById.set(e,{storeObject:c,mergeTree:eQ(s)?void 0:s,fieldNodeSet:d}),i}return c}processFieldValue(e,t,r,i,n){return t.selectionSet&&null!==e?(0,L.f)(e)?e.map((e,s)=>{let a=this.processFieldValue(e,t,r,eq(i,s),[...n,s]);return eV(i,s),a}):this.processSelectionSet({result:e,selectionSet:t.selectionSet,context:r,mergeTree:i,path:n}):u.f?function e(t,r){switch(eM.call(t)){case"[object Array]":{if((r=r||new Map).has(t))return r.get(t);let i=t.slice(0);return r.set(t,i),i.forEach(function(t,n){i[n]=e(t,r)}),i}case"[object Object]":{if((r=r||new Map).has(t))return r.get(t);let i=Object.create(Object.getPrototypeOf(t));return r.set(t,i),Object.keys(t).forEach(n=>{i[n]=e(t[n],r)}),i}default:return t}}(e):e}flattenFields(e,t,r,i,n=eL(t,e,r.fragmentMap)){let s=new Map,{policies:a}=this.cache,o=new b.f(!1);return!function e(l,u){let c=o.lookup(l,u.clientOnly,u.deferred);c.visited||(c.visited=!0,l.selections.forEach(o=>{if(!(0,eC.f)(o,r.variables))return;let{clientOnly:l,deferred:c}=u;if(!(l&&c)&&(0,W.f)(o.directives)&&o.directives.forEach(e=>{let t=e.name.value;if("client"===t&&(l=!0),"defer"===t){let t=q(e,r.variables);t&&!1===t.if||(c||=r.isDeferPending?.(i,t?.label)??!0)}}),(0,eO.f)(o)){let e=s.get(o);e&&(l=l&&e.clientOnly,c=c&&e.deferred),s.set(o,eI(r,l,c))}else{let i=(0,eb.f)(o,r.lookupFragment);if(!i&&o.kind===M.f.FRAGMENT_SPREAD)throw(0,m.b)(126,o.name.value);i&&a.fragmentMatches(i,n,t,r.variables)&&e(i.selectionSet,eI(r,l,c))}}))}(e,r),s}applyMerges(e,t,r,i,n){if(e.map.size&&!(0,o.f)(r)){let s,a=!(0,L.f)(r)&&((0,o.f)(t)||(0,O.N)(t))?t:void 0,l=r;a&&!n&&(n=[(0,o.f)(a)?a.__ref:a]);let u=(e,t)=>(0,L.f)(e)?"number"==typeof t?e[t]:void 0:i.store.getFieldValue(e,String(t));e.map.forEach((e,t)=>{let r=u(a,t),o=u(l,t);if(void 0===o)return;n&&n.push(t);let c=this.applyMerges(e,r,o,i,n);c!==o&&(s=s||new Map).set(t,c),n&&(0,m.k)(n.pop()===t)}),s&&(r=(0,L.f)(l)?l.slice(0):{...l},s.forEach((e,t)=>{r[t]=e}))}return e.info?this.cache.policies.runMergeFunction(t,r,e.info,i,n&&i.store.getStorage(...n)):r}}let eA=[];function eq({map:e},t){return e.has(t)||e.set(t,eA.pop()||{map:new Map}),e.get(t)}function eQ(e){return!e||!(e.info||e.map.size)}function eV({map:e},t){let r=e.get(t);r&&eQ(r)&&(eA.push(r),e.delete(t))}let ez=new Set;function eL(e,t,r){let i;for(let r of t.selections)if((0,eO.f)(r)){if("__typename"===r.name.value)return e[(0,eE.f)(r)]}else i?i.push(r):i=[r];if("string"==typeof e.__typename)return e.__typename;if(i)for(let t of i){let i=eL(e,(0,eb.f)(t,r).selectionSet,r);if("string"==typeof i)return i}}class eB extends y.f{data;optimisticData;config;watches=new Set;storeReader;storeWriter;addTypenameTransform=new a.f(i.f);maybeBroadcastWatch;assumeImmutableResults=!0;policies;makeVar=ei;constructor(...e){super(),this.config=(0,O.k)(e[0]??{}),this.policies=new ec({cache:this,dataIdFromObject:this.config.dataIdFromObject,possibleTypes:this.config.possibleTypes,typePolicies:this.config.typePolicies}),this.init()}init(){let e=this.data=new C.Root({policies:this.policies,resultCaching:this.config.resultCaching});this.optimisticData=e.stump,this.resetResultCache()}resetResultCache(){let{fragments:e}=this.config;this.addTypenameTransform.resetCache(),e?.resetCaches(),this.storeWriter=new eN(this,this.storeReader=new eF({cache:this,fragments:e}),e),this.maybeBroadcastWatch=(0,r.$)((e,t)=>this.broadcastWatch(e,t),{max:n.f["inMemoryCache.maybeBroadcastWatch"]||5e3,makeCacheKey:e=>{let t=e.optimistic?this.optimisticData:this.data;if(R(t)){let{optimistic:r,id:i}=e,n=this.serializeVariables(e.query,e.variables);return t.makeCacheKey(e.query,e.callback,(0,s.f)({optimistic:r,id:i,variables:n}))}}}),new Set([this.data.group,this.optimisticData.group]).forEach(e=>e.resetCaching())}getRootTypename(e){return this.policies.rootTypenamesById[`ROOT_${e.toUpperCase()}`]}getScalar(e){return this.config.scalars?.[e]}getScalarTypeForField(e,t){return this.policies.getScalarTypeForField(e,t)}configuresScalars(){return!!this.config.scalars}serializeVariables(e,t){if(!t||0===Object.keys(t).length||!this.config.scalars&&!this.config.inputObjects)return t;let r=(0,f.f)(e)?.variableDefinitions?.reduce((e,t)=>(e[t.variable.name.value]=(0,O.o)(t.type),e),{});return r&&0!==Object.keys(r).length?this.serializeVariablesValue(t,r):t}serializeVariablesValue(e,t,r,i){if(null==e)return e;if(r){let n=(0,d.f)(r);if(n)if(Array.isArray(e))return this.serializeInputArray(e,t,n[1],i);else u.f&&u.f&&m.k.warn(113,i,r,(0,p.f)(r));let s=this.getScalar((0,p.f)(r));if(s)return s.coerceToSerialized(e)}return Array.isArray(e)?this.serializeInputArray(e,t,void 0,i):(0,h.f)(e)?this.serializeInputObject(e,t,i):e}serializeInputArray(e,t,r,i){let n=!1,s=e.map(e=>{let s=this.serializeVariablesValue(e,t,r,i);return n||=s!==e,s});return n?s:e}serializeInputObject(e,t,r){let i=!1,n=Object.entries(e).map(([e,n])=>{let s=t[e],a=r?`${r}.${e}`:e;if(!s)return[e,n];let o=this.config.inputObjects?.[(0,p.f)(s)];if(o){let t=this.serializeVariablesValue(n,o.fields,void 0,a);return i||=t!==n,[e,t]}let l=this.serializeVariablesValue(n,t,s,a);return i||=l!==n,[e,l]});return i?Object.fromEntries(n):e}restore(e){return this.init(),e&&this.data.replace(e),this}extract(e=!1){return(e?this.optimisticData:this.data).extract()}read(e){let{query:t,variables:r,returnPartialData:i=!1}=e;return this.storeReader.diffQueryAgainstStore({...e,variables:this.serializeVariables(t,r),store:e.optimistic?this.optimisticData:this.data,config:this.config,returnPartialData:i}).result}write(e){let{query:t,variables:r}=e;try{return++this.txCount,this.storeWriter.writeToStore(this.data,{...e,variables:this.serializeVariables(t,r)})}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}}modify(e){if(O.i.call(e,"id")&&!e.id)return!1;let t=e.optimistic?this.optimisticData:this.data;try{return++this.txCount,t.modify(e.id||"ROOT_QUERY",e.fields,!1)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}}diff(e){let{variables:t}=e;return this.storeReader.diffQueryAgainstStore({...e,variables:this.serializeVariables(e.query,t),store:e.optimistic?this.optimisticData:this.data,rootId:e.id||"ROOT_QUERY",config:this.config})}watch(e){this.watches.size||er(this),this.watches.add(e);let t=()=>{this.watches.delete(e)&&!this.watches.size&&et(this),this.maybeBroadcastWatch.forget(e)};if(e.immediate)try{this.maybeBroadcastWatch(e)}catch(e){throw t(),e}return t}gc(e){s.f.reset(),l.f.reset();let t=this.optimisticData.gc();return e&&!this.txCount&&e.resetResultCache&&this.resetResultCache(),t}retain(e,t){return(t?this.optimisticData:this.data).retain(e)}release(e,t){return(t?this.optimisticData:this.data).release(e)}identify(e){if((0,o.f)(e))return e.__ref;try{return this.policies.identify(e)[0]}catch(e){u.f&&m.k.warn(e)}}evict(e){if(!e.id){if(O.i.call(e,"id"))return!1;e={...e,id:"ROOT_QUERY"}}try{return++this.txCount,this.optimisticData.evict(e,this.data)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}}reset(e){return this.init(),s.f.reset(),e&&e.discardWatches?(this.watches.forEach(e=>this.maybeBroadcastWatch.forget(e)),this.watches.clear(),et(this)):this.broadcastWatches(),Promise.resolve()}removeOptimistic(e){let t=this.optimisticData.removeLayer(e);t!==this.optimisticData&&(this.optimisticData=t,this.broadcastWatches())}txCount=0;batch(e){let t,{update:r,optimistic:i=!0,removeOptimistic:n,onWatchUpdated:s}=e,a=e=>{let{data:i,optimisticData:n}=this;++this.txCount,e&&(this.data=this.optimisticData=e);try{return t=r(this)}finally{--this.txCount,this.data=i,this.optimisticData=n}},o=new Set;return s&&!this.txCount&&this.broadcastWatches({...e,onWatchUpdated:e=>(o.add(e),!1)}),"string"==typeof i?this.optimisticData=this.optimisticData.addLayer(i,a):!1===i?a(this.data):a(),"string"==typeof n&&(this.optimisticData=this.optimisticData.removeLayer(n)),s&&o.size?(this.broadcastWatches({...e,onWatchUpdated(e,t){let r=s.call(this,e,t);return!1!==r&&o.delete(e),r}}),o.size&&o.forEach(e=>this.maybeBroadcastWatch.dirty(e))):this.broadcastWatches(e),t}performTransaction(e,t){return this.batch({update:e,optimistic:t||null!==t})}transformDocument(e){return this.addTypenameTransform.transformDocument(this.addFragmentsToDocument(e))}fragmentMatches(e,t){return this.policies.fragmentMatches(e,t)}lookupFragment(e){return this.config.fragments?.lookup(e)||null}resolvesClientField(e,t){return!!this.policies.getReadFunction(e,t)}broadcastWatches(e){if(!this.txCount){let t=this.onAfterBroadcast,r=new Set;this.onAfterBroadcast=e=>{r.add(e)};try{this.watches.forEach(t=>this.maybeBroadcastWatch(t,e)),r.forEach(e=>e())}finally{this.onAfterBroadcast=t}}}addFragmentsToDocument(e){let{fragments:t}=this.config;return t?t.transform(e):e}broadcastWatch(e,r){let{lastDiff:i}=e,n=this.diff(e);(!r||(e.optimistic&&"string"==typeof r.optimistic&&(n.fromOptimisticTransaction=!0),!r.onWatchUpdated||!1!==r.onWatchUpdated.call(this,e,n,i)))&&(i&&(0,t.f)(i.result,n.result)||e.callback(e.lastDiff=n,i))}}u.f&&(eB.prototype.getMemoryInternals=c.e),e.s(["f",0,eB],84936)},76362,57283,73944,2088,64045,78538,23938,6044,83015,62918,12253,89509,62979,71393,98173,22025,6775,33448,76626,34495,6022,48531,93853,33628,57038,55735,33825,75557,21910,44728,1977,14784,27764,51080,73586,18597,58008,57299,3443,41969,42628,79500,46638,27988,11197,73528,14160,73507,65444,87408,26708,21847,44871,57828,e=>{"use strict";let t,r,i;var n,s,a=e.i(42341),o=e.i(81288),l=e.i(99657);function u(e,t){return(0,o.f)(function(r,i){var n=0;r.subscribe((0,l.f)(i,function(r){i.next(e.call(t,r,n++))}))})}e.s(["f",0,u],57283);var c=e.i(17405);function f(e,t){switch(typeof e){case"string":return JSON.stringify(e);case"function":return e.name?`[function ${e.name}]`:"[function]";case"object":return function(e,t){let r;if(null===e)return"null";if(t.includes(e))return"[Circular]";let i=[...t,e];if("function"==typeof e.toJSON){let t=e.toJSON();if(t!==e)return"string"==typeof t?t:f(t,i)}else if(Array.isArray(e)){var n,s,a=e,o=i;if(0===a.length)return"[]";if(o.length>2)return"[Array]";let t=Math.min(10,a.length),r=a.length-t,l=[];for(let e=0;e<t;++e)l.push(f(a[e],o));return 1===r?l.push("... 1 more item"):r>1&&l.push(`... ${r} more items`),"["+l.join(", ")+"]"}return n=e,s=i,0===(r=Object.entries(n)).length?"{}":s.length>2?"["+function(e){let t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if("Object"===t&&"function"==typeof e.constructor){let t=e.constructor.name;if("string"==typeof t&&""!==t)return t}return t}(n)+"]":"{ "+r.map(([e,t])=>e+": "+f(t,s)).join(", ")+" }"}(e,t);default:return String(e)}}var h=e.i(83197);e.s(["f",0,h],73944);var h=h;let d=Object.values(h),p=Object.freeze({});function m(e,t,r=a.Q){let i,n,s,o,l=new Map;for(let e of d)l.set(e,function(e,t){let r=e[t];return"object"==typeof r?r:"function"==typeof r?{enter:r,leave:void 0}:{enter:e.enter,leave:e.leave}}(t,e));let u=Array.isArray(e),h=[e],y=-1,b=e,g=[],v=[];do{let e,d=++y===h.length,m=d&&void 0!==i;if(d){if(s=0===v.length?void 0:g[g.length-1],b=o,o=v.pop(),void 0!==i)if(u){b=b.slice();let e=0;for(let t=0;t<i.length;t+=2){let r=i[t],n=i[t+1],s=r-e;null===n?(b.splice(s,1),e++):b[s]=n}}else{b={...b};for(let e=0;e<i.length;e+=2)b[i[e]]=i[e+1]}y=n.index,h=n.keys,i=n.edits,u=n.inArray,n=n.prev}else if(null!=o){if(null==(b=o[s=u?y:h[y]]))continue;g.push(s)}let w=Array.isArray(b);if(!w){(0,a.t)(b)||(0,c.f)(!1,`Invalid AST Node: ${f(b,[])}.`);let r=d?l.get(b.kind)?.leave:l.get(b.kind)?.enter;if((e=r?.call(t,b,s,o,g,v))===p)break;if(!1===e){if(!d){g.pop();continue}}else if(void 0!==e&&((i??=[]).push(s,e),!d))if((0,a.t)(e))w=Array.isArray(b=e);else{g.pop();continue}}void 0===e&&m&&(i??=[]).push(s,b),d?g.pop():(n={inArray:u,index:y,keys:h,edits:i,prev:n},h=(u=w)?b:r[b.kind]??[],y=-1,i=void 0,null!=o&&v.push(o),o=b)}while(void 0!==n)return void 0!==i?i.at(-1):e}function y(e,t,r){let i=new Set(e),n=i.size;return m(t,{Directive(e){if(i.delete(e.name.value)&&(!r||!i.size))return p}}),r?!i.size:i.size<n}e.s(["z",0,p,"c",0,m],2088);var b=e.i(93532);class g{isIncrementalResult(e){return!1}prepareRequest(e){return(0,b.k)(!y(["defer","stream"],e.query),70),e}extractErrors(){}startRequest=void 0}var v=e.i(13616),w=e.i(61340),k="function"==typeof Symbol&&Symbol.observable||"@@observable";function S(e){return e}e.s(["f",0,S],64045);var O=e.i(80406),x=e.i(49363),P=e.i(58365),E=function(){function e(e){e&&(this._subscribe=e)}return e.prototype.lift=function(t){var r=new e;return r.source=this,r.operator=t,r},e.prototype.subscribe=function(e,t,r){var i=this,n=!function(e){return e&&e instanceof v.P||e&&(0,x.f)(e.next)&&(0,x.f)(e.error)&&(0,x.f)(e.complete)&&(0,w.E)(e)}(e)?new v.N(e,t,r):e;return(0,P.N)(function(){var e=i.operator,t=i.source;n.add(e?e.call(n,t):t?i._subscribe(n):i._trySubscribe(n))}),n},e.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(t){e.error(t)}},e.prototype.forEach=function(e,t){var r=this;return new(t=C(t))(function(t,i){var n=new v.N({next:function(t){try{e(t)}catch(e){i(e),n.unsubscribe()}},error:i,complete:t});r.subscribe(n)})},e.prototype._subscribe=function(e){var t;return null==(t=this.source)?void 0:t.subscribe(e)},e.prototype[k]=function(){return this},e.prototype.pipe=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return(0===e.length?S:1===e.length?e[0]:function(t){return e.reduce(function(e,t){return t(e)},t)})(this)},e.prototype.toPromise=function(e){var t=this;return new(e=C(e))(function(e,r){var i;t.subscribe(function(e){return i=e},function(e){return r(e)},function(){return e(i)})})},e.create=function(t){return new e(t)},e}();function C(e){var t;return null!=(t=null!=e?e:O.f.Promise)?t:Promise}e.s(["f",0,E],78538);var _=new E(function(e){return e.complete()});e.s(["f",0,_],23938);var h=h,T=e.i(29520),F=e.i(42950);let D=Symbol.for("apollo.cacheSize"),j={...F.f[D]};function R(e,t){return e.definitions.find(e=>"OperationDefinition"===e.kind&&!!e.name)?.name.value??t}e.s(["f",0,j],6044);let M=()=>Object.create(null),{forEach:I,slice:N}=Array.prototype,{hasOwnProperty:A}=Object.prototype;class q{constructor(e=!0,t=M){this.weakness=e,this.makeData=t}lookup(){return this.lookupArray(arguments)}lookupArray(e){let t=this;return I.call(e,e=>t=t.getChildTrie(e)),A.call(t,"data")?t.data:t.data=this.makeData(N.call(e))}peek(){return this.peekArray(arguments)}peekArray(e){let t=this;for(let r=0,i=e.length;t&&r<i;++r){let i=t.mapFor(e[r],!1);t=i&&i.get(e[r])}return t&&t.data}remove(){return this.removeArray(arguments)}removeArray(e){let t;if(e.length){let r=e[0],i=this.mapFor(r,!1),n=i&&i.get(r);n&&(t=n.removeArray(N.call(e,1)),n.data||n.weak||n.strong&&n.strong.size||i.delete(r))}else t=this.data,delete this.data;return t}getChildTrie(e){let t=this.mapFor(e,!0),r=t.get(e);return r||t.set(e,r=new q(this.weakness,this.makeData)),r}mapFor(e,t){return this.weakness&&function(e){switch(typeof e){case"object":if(null===e)break;case"function":return!0}return!1}(e)?this.weak||(t?this.weak=new WeakMap:void 0):this.strong||(t?this.strong=new Map:void 0)}}function Q(){}e.s(["f",0,q],83015);class V{constructor(e=1/0,t=Q){this.max=e,this.dispose=t,this.map=new Map,this.newest=null,this.oldest=null}has(e){return this.map.has(e)}get(e){let t=this.getNode(e);return t&&t.value}get size(){return this.map.size}getNode(e){let t=this.map.get(e);if(t&&t!==this.newest){let{older:e,newer:r}=t;r&&(r.older=e),e&&(e.newer=r),t.older=this.newest,t.older.newer=t,t.newer=null,this.newest=t,t===this.oldest&&(this.oldest=r)}return t}set(e,t){let r=this.getNode(e);return r?r.value=t:(r={key:e,value:t,newer:null,older:this.newest},this.newest&&(this.newest.newer=r),this.newest=r,this.oldest=this.oldest||r,this.map.set(e,r),r.value)}clean(){for(;this.oldest&&this.map.size>this.max;)this.delete(this.oldest.key)}delete(e){let t=this.map.get(e);return!!t&&(t===this.newest&&(this.newest=t.older),t===this.oldest&&(this.oldest=t.newer),t.newer&&(t.newer.older=t.older),t.older&&(t.older.newer=t.newer),this.map.delete(e),this.dispose(t.value,e),!0)}}function z(){}let L="u">typeof WeakRef?WeakRef:function(e){return{deref:()=>e}},B="u">typeof WeakMap?WeakMap:Map,W="u">typeof FinalizationRegistry?FinalizationRegistry:function(){return{register:z,unregister:z}};class U{constructor(e=1/0,t=z){this.max=e,this.dispose=t,this.map=new B,this.newest=null,this.oldest=null,this.unfinalizedNodes=new Set,this.finalizationScheduled=!1,this.size=0,this.finalize=()=>{let e=this.unfinalizedNodes.values();for(let t=0;t<10024;t++){let t=e.next().value;if(!t)break;this.unfinalizedNodes.delete(t);let r=t.key;delete t.key,t.keyRef=new L(r),this.registry.register(r,t,t)}this.unfinalizedNodes.size>0?queueMicrotask(this.finalize):this.finalizationScheduled=!1},this.registry=new W(this.deleteNode.bind(this))}has(e){return this.map.has(e)}get(e){let t=this.getNode(e);return t&&t.value}getNode(e){let t=this.map.get(e);if(t&&t!==this.newest){let{older:e,newer:r}=t;r&&(r.older=e),e&&(e.newer=r),t.older=this.newest,t.older.newer=t,t.newer=null,this.newest=t,t===this.oldest&&(this.oldest=r)}return t}set(e,t){let r=this.getNode(e);return r?r.value=t:(r={key:e,value:t,newer:null,older:this.newest},this.newest&&(this.newest.newer=r),this.newest=r,this.oldest=this.oldest||r,this.scheduleFinalization(r),this.map.set(e,r),this.size++,r.value)}clean(){for(;this.oldest&&this.size>this.max;)this.deleteNode(this.oldest)}deleteNode(e){e===this.newest&&(this.newest=e.older),e===this.oldest&&(this.oldest=e.newer),e.newer&&(e.newer.older=e.older),e.older&&(e.older.newer=e.newer),this.size--;let t=e.key||e.keyRef&&e.keyRef.deref();this.dispose(e.value,t),e.keyRef?this.registry.unregister(e):this.unfinalizedNodes.delete(e),t&&this.map.delete(t)}delete(e){let t=this.map.get(e);return!!t&&(this.deleteNode(t),!0)}scheduleFinalization(e){this.unfinalizedNodes.add(e),this.finalizationScheduled||(this.finalizationScheduled=!0,queueMicrotask(this.finalize))}}e.s(["f",0,U],62918);let $=new WeakSet;function H(e){!(e.size<=(e.max||-1))&&($.has(e)||($.add(e),setTimeout(()=>{e.clean(),$.delete(e)},100)))}let K=function(e,t){let r=new U(e,t);return r.set=function(e,t){let r=U.prototype.set.call(this,e,t);return H(this),r},r},G=function(e,t){let r=new V(e,t);return r.set=function(e,t){let r=V.prototype.set.call(this,e,t);return H(this),r},r};function J(e,{max:t,makeCacheKey:r=e=>e}){let i=new q(!0),n=new K(t);return(...t)=>{let s=i.lookupArray(r(t)),a=n.get(s);if(a){if(a.error)throw a.error;return a.result}let o=n.set(s,{});try{return o.result=e(...t)}catch(e){throw o.error=e,e}}}e.s(["f",0,J],12253);let Y=J((e,t)=>{(0,b.k)(e&&"Document"===e.kind,1);let r=e.definitions.filter(e=>"OperationDefinition"===e.kind);T.f&&(e.definitions.forEach(e=>{if("OperationDefinition"!==e.kind&&"FragmentDefinition"!==e.kind)throw(0,b.b)(2,e.kind)}),(0,b.k)(r.length<=1,3,r.length)),t&&(0,b.k)(1==r.length&&r[0].operation===t,4,t,t,r[0].operation),m(e,{Field(t,i,n,s){if(t.alias&&("__typename"===t.alias.value||t.alias.value.startsWith("__ac_"))&&t.alias.value!==t.name.value){let i=e,n=[];for(let e of s)(i=i[e]).kind===h.FIELD&&n.push(i.alias?.value||i.name.value);throw n.splice(-1,1,t.name.value),(0,b.b)(5,t.alias.value,n.join("."),r[0].operation,R(e,"(anonymous)"))}}})},{max:j.checkDocument||2e3});function Z(e){return Y(e),e.definitions.filter(e=>"OperationDefinition"===e.kind)[0]}e.s(["f",0,Z],89509);class X{static empty(){return new X(()=>_)}static from(e){if(0===e.length)return X.empty();let[t,...r]=e;return t.concat(...r)}static split(e,t,r=new X((e,t)=>t(e))){return Object.assign(new X((i,n)=>{let s=e(i);return T.f&&"boolean"!=typeof s&&T.f&&b.k.warn(65,s),s?t.request(i,n):r.request(i,n)}),{left:t,right:r})}static execute(e,t,r){return e.request(function(e,{client:t}){let r={query:e.query,variables:e.variables||{},extensions:e.extensions||{},operationName:R(e.query),operationType:Z(e.query).operation},i={...e.context},n=()=>Object.freeze({...i});return Object.defineProperty(r,"setContext",{enumerable:!1,value:e=>{i="function"==typeof e?{...i,...e(n())}:{...i,...e}}}),Object.defineProperty(r,"getContext",{enumerable:!1,value:n}),Object.defineProperty(r,"client",{enumerable:!1,value:t}),r}(t,r),()=>(T.f&&T.f&&b.k.warn(66),_))}static concat(...e){return X.from(e)}constructor(e){e&&(this.request=e)}split(e,t,r){return this.concat(X.split(e,t,r))}concat(...e){return 0===e.length?this:e.reduce(this.combine.bind(this),this)}combine(e,t){return Object.assign(new X((r,i)=>e.request(r,e=>t.request(e,i))),{left:e,right:t})}request(e,t){throw(0,b.b)(67)}left;right}e.s(["f",0,X],62979);let ee=X.execute;e.s(["f",0,ee],71393);let et=null,er={},ei=1;function en(e){try{return e()}catch(e){}}let es="@wry/context:Slot",ea=en(()=>globalThis)||en(()=>e.g)||Object.create(null),eo=ea[es]||Array[es]||function(e){try{Object.defineProperty(ea,es,{value:e,enumerable:!1,writable:!1,configurable:!0})}finally{return e}}(class{constructor(){this.id=["slot",ei++,Date.now(),Math.random().toString(36).slice(2)].join(":")}hasValue(){for(let e=et;e;e=e.parent)if(this.id in e.slots){let t=e.slots[this.id];if(t===er)break;return e!==et&&(et.slots[this.id]=t),!0}return et&&(et.slots[this.id]=er),!1}getValue(){if(this.hasValue())return et.slots[this.id]}withValue(e,t,r,i){let n={__proto__:null,[this.id]:e},s=et;et={parent:s,slots:n};try{return t.apply(i,r)}finally{et=s}}static bind(e){let t=et;return function(){let r=et;try{return et=t,e.apply(this,arguments)}finally{et=r}}}static noContext(e,t,r){if(!et)return e.apply(r,t);{let i=et;try{return et=null,e.apply(r,t)}finally{et=i}}}});e.s(["f",0,eo],98173);let{bind:el,noContext:eu}=eo,ec=new eo,{hasOwnProperty:ef}=Object.prototype,eh=Array.from||function(e){let t=[];return e.forEach(e=>t.push(e)),t};function ed(e){let{unsubscribe:t}=e;"function"==typeof t&&(e.unsubscribe=void 0,t())}let ep=[];function em(e,t){if(!e)throw Error(t||"assertion failure")}function ey(e,t){let r=e.length;return r>0&&r===t.length&&e[r-1]===t[r-1]}function eb(e){switch(e.length){case 0:throw Error("unknown value");case 1:return e[0];case 2:throw e[1]}}class eg{constructor(e){this.fn=e,this.parents=new Set,this.childValues=new Map,this.dirtyChildren=null,this.dirty=!0,this.recomputing=!1,this.value=[],this.deps=null,++eg.count}peek(){if(1===this.value.length&&!ek(this))return ev(this),this.value[0]}recompute(e){var t,r,i;return em(!this.recomputing,"already recomputing"),ev(this),ek(this)?(t=this,r=e,eE(t),ec.withValue(t,ew,[t,r]),function(e,t){if("function"==typeof e.subscribe)try{ed(e),e.unsubscribe=e.subscribe.apply(null,t)}catch(t){return e.setDirty(),!1}return!0}(t,r)&&((i=t).dirty=!1,ek(i)||function(e){eS(e,ex)}(i)),eb(t.value)):eb(this.value)}setDirty(){var e;this.dirty||(this.dirty=!0,e=this,eS(e,eO),ed(this))}dispose(){this.setDirty(),eE(this),eS(this,(e,t)=>{e.setDirty(),eC(e,this)})}forget(){this.dispose()}dependOn(e){e.add(this),this.deps||(this.deps=ep.pop()||new Set),this.deps.add(e)}forgetDeps(){this.deps&&(eh(this.deps).forEach(e=>e.delete(this)),this.deps.clear(),ep.push(this.deps),this.deps=null)}}function ev(e){let t=ec.getValue();if(t)return e.parents.add(t),t.childValues.has(e)||t.childValues.set(e,[]),ek(e)?eO(t,e):ex(t,e),t}function ew(e,t){let r;e.recomputing=!0;let{normalizeResult:i}=e;i&&1===e.value.length&&(r=e.value.slice(0)),e.value.length=0;try{if(e.value[0]=e.fn.apply(null,t),i&&r&&!ey(r,e.value))try{e.value[0]=i(e.value[0],r[0])}catch(e){}}catch(t){e.value[1]=t}e.recomputing=!1}function ek(e){return e.dirty||!!(e.dirtyChildren&&e.dirtyChildren.size)}eg.count=0;function eS(e,t){let r=e.parents.size;if(r){let i=eh(e.parents);for(let n=0;n<r;++n)t(i[n],e)}}function eO(e,t){em(e.childValues.has(t)),em(ek(t));let r=!ek(e);if(e.dirtyChildren){if(e.dirtyChildren.has(t))return}else e.dirtyChildren=ep.pop()||new Set;e.dirtyChildren.add(t),r&&eS(e,eO)}function ex(e,t){em(e.childValues.has(t)),em(!ek(t));let r=e.childValues.get(t);0===r.length?e.childValues.set(t,t.value.slice(0)):ey(r,t.value)||e.setDirty(),eP(e,t),ek(e)||eS(e,ex)}function eP(e,t){let r=e.dirtyChildren;r&&(r.delete(t),0===r.size&&(ep.length<100&&ep.push(r),e.dirtyChildren=null))}function eE(e){e.childValues.size>0&&e.childValues.forEach((t,r)=>{eC(e,r)}),e.forgetDeps(),em(null===e.dirtyChildren)}function eC(e,t){t.parents.delete(e),e.childValues.delete(t),eP(e,t)}let e_={setDirty:!0,dispose:!0,forget:!0};function eT(...e){return(t||(t=new q("function"==typeof WeakMap))).lookupArray(e)}e.s(["f",0,function(e){let t=new Map,r=e&&e.subscribe;function i(e){let i=ec.getValue();if(i){let n=t.get(e);n||t.set(e,n=new Set),i.dependOn(n),"function"==typeof r&&(ed(n),n.unsubscribe=r(e))}}return i.dirty=function(e,r){let i=t.get(e);if(i){let n=r&&ef.call(e_,r)?r:"setDirty";eh(i).forEach(e=>e[n]()),t.delete(e),ed(i)}},i}],22025);let eF=new Set;function eD(e,{max:t=65536,keyArgs:r,makeCacheKey:i=eT,normalizeResult:n,subscribe:s,cache:a=V}=Object.create(null)){let o="function"==typeof a?new a(t,e=>e.dispose()):a,l=function(){let t=i.apply(null,r?r.apply(null,arguments):arguments);if(void 0===t)return e.apply(null,arguments);let a=o.get(t);a||(o.set(t,a=new eg(e)),a.normalizeResult=n,a.subscribe=s,a.forget=()=>o.delete(t));let l=a.recompute(Array.prototype.slice.call(arguments));return o.set(t,a),eF.add(o),ec.hasValue()||(eF.forEach(e=>e.clean()),eF.clear()),l};function u(e){let t=e&&o.get(e);t&&t.setDirty()}function c(e){let t=e&&o.get(e);if(t)return t.peek()}function f(e){return!!e&&o.delete(e)}return Object.defineProperty(l,"size",{get:()=>o.size,configurable:!1,enumerable:!1}),Object.freeze(l.options={max:t,keyArgs:r,makeCacheKey:i,normalizeResult:n,subscribe:s,cache:o}),l.dirtyKey=u,l.dirty=function(){u(i.apply(null,arguments))},l.peekKey=c,l.peek=function(){return c(i.apply(null,arguments))},l.forgetKey=f,l.forget=function(){return f(i.apply(null,arguments))},l.makeCacheKey=i,l.getKey=r?function(){return i.apply(null,r.apply(null,arguments))}:i,Object.freeze(l)}function ej(e){return e}e.s(["k",0,eT,"$",0,eD],6775);class eR{transform;cached;resultCache=new WeakSet;getCacheKey(e){return[e]}static identity(){return new eR(ej,{cache:!1})}static split(e,t,r=eR.identity()){return Object.assign(new eR(i=>(e(i)?t:r).transformDocument(i),{cache:!1}),{left:t,right:r})}constructor(e,t={}){this.transform=e,t.getCacheKey&&(this.getCacheKey=t.getCacheKey),this.cached=!1!==t.cache,this.resetCache()}resetCache(){if(this.cached){let e=new q;this.performWork=eD(eR.prototype.performWork.bind(this),{makeCacheKey:t=>{let r=this.getCacheKey(t);if(r)return(0,b.k)(Array.isArray(r),22),e.lookupArray(r)},max:j["documentTransform.cache"],cache:U})}}performWork(e){return Y(e),this.transform(e)}transformDocument(e){if(this.resultCache.has(e))return e;let t=this.performWork(e);return this.resultCache.add(t),t}concat(e){return Object.assign(new eR(t=>e.transformDocument(this.transformDocument(t)),{cache:!1}),{left:this,right:e})}left;right}e.s(["f",0,eR],33448);var eM=e.i(51104);function eI(){throw Error("only supported in development mode")}e.s(["U",0,eI,"s",0,eI,"e",0,eI],76626);var eN=e.i(89280),eA=e.i(57070),eq=(0,eA.f)(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),eQ=e.i(72572),eV=function(e){function t(){var t=e.call(this)||this;return t.closed=!1,t.currentObservers=null,t.observers=[],t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}return(0,eN.w)(t,e),t.prototype.lift=function(e){var t=new ez(this,this);return t.operator=e,t},t.prototype._throwIfClosed=function(){if(this.closed)throw new eq},t.prototype.next=function(e){var t=this;(0,P.N)(function(){var r,i;if(t._throwIfClosed(),!t.isStopped){t.currentObservers||(t.currentObservers=Array.from(t.observers));try{for(var n=(0,eN._)(t.currentObservers),s=n.next();!s.done;s=n.next())s.value.next(e)}catch(e){r={error:e}}finally{try{s&&!s.done&&(i=n.return)&&i.call(n)}finally{if(r)throw r.error}}}})},t.prototype.error=function(e){var t=this;(0,P.N)(function(){if(t._throwIfClosed(),!t.isStopped){t.hasError=t.isStopped=!0,t.thrownError=e;for(var r=t.observers;r.length;)r.shift().error(e)}})},t.prototype.complete=function(){var e=this;(0,P.N)(function(){if(e._throwIfClosed(),!e.isStopped){e.isStopped=!0;for(var t=e.observers;t.length;)t.shift().complete()}})},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var e;return(null==(e=this.observers)?void 0:e.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(t){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,t)},t.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},t.prototype._innerSubscribe=function(e){var t=this,r=this.hasError,i=this.isStopped,n=this.observers;return r||i?w.N:(this.currentObservers=null,n.push(e),new w.l(function(){t.currentObservers=null,(0,eQ.f)(n,e)}))},t.prototype._checkFinalizedStatuses=function(e){var t=this.hasError,r=this.thrownError,i=this.isStopped;t?e.error(r):i&&e.complete()},t.prototype.asObservable=function(){var e=new E;return e.source=this,e},t.create=function(e,t){return new ez(e,t)},t}(E),ez=function(e){function t(t,r){var i=e.call(this)||this;return i.destination=t,i.source=r,i}return(0,eN.w)(t,e),t.prototype.next=function(e){var t,r;null==(r=null==(t=this.destination)?void 0:t.next)||r.call(t,e)},t.prototype.error=function(e){var t,r;null==(r=null==(t=this.destination)?void 0:t.error)||r.call(t,e)},t.prototype.complete=function(){var e,t;null==(t=null==(e=this.destination)?void 0:e.complete)||t.call(e)},t.prototype._subscribe=function(e){var t,r;return null!=(r=null==(t=this.source)?void 0:t.subscribe(e))?r:w.N},t}(eV),eL=e.i(68827),eB=function(e){function t(t,r,i){void 0===t&&(t=1/0),void 0===r&&(r=1/0),void 0===i&&(i=eL.f);var n=e.call(this)||this;return n._bufferSize=t,n._windowTime=r,n._timestampProvider=i,n._buffer=[],n._infiniteTimeWindow=!0,n._infiniteTimeWindow=1/0===r,n._bufferSize=Math.max(1,t),n._windowTime=Math.max(1,r),n}return(0,eN.w)(t,e),t.prototype.next=function(t){var r=this.isStopped,i=this._buffer,n=this._infiniteTimeWindow,s=this._timestampProvider,a=this._windowTime;!r&&(i.push(t),n||i.push(s.now()+a)),this._trimBuffer(),e.prototype.next.call(this,t)},t.prototype._subscribe=function(e){this._throwIfClosed(),this._trimBuffer();for(var t=this._innerSubscribe(e),r=this._infiniteTimeWindow,i=this._buffer.slice(),n=0;n<i.length&&!e.closed;n+=r?1:2)e.next(i[n]);return this._checkFinalizedStatuses(e),t},t.prototype._trimBuffer=function(){var e=this._bufferSize,t=this._timestampProvider,r=this._buffer,i=this._infiniteTimeWindow,n=(i?1:2)*e;if(e<1/0&&n<r.length&&r.splice(0,r.length-n),!i){for(var s=t.now(),a=0,o=1;o<r.length&&r[o]<=s;o+=2)a=o;a&&r.splice(0,a+1)}},t}(eV);e.s(["f",0,eB],34495);var eW=function(e){return e&&"number"==typeof e.length&&"function"!=typeof e};function eU(e){return(0,x.f)(null==e?void 0:e.then)}e.s(["f",0,eW],6022);function e$(e){return Symbol.asyncIterator&&(0,x.f)(null==e?void 0:e[Symbol.asyncIterator])}function eH(e){return TypeError("You provided "+(null!==e&&"object"==typeof e?"an invalid object":"'"+e+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}var eK="function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator";function eG(e){return(0,x.f)(null==e?void 0:e[eK])}function eJ(e){return(0,eN.Q)(this,arguments,function(){var t,r,i;return(0,eN.t)(this,function(n){switch(n.label){case 0:t=e.getReader(),n.label=1;case 1:n.trys.push([1,,9,10]),n.label=2;case 2:return[4,(0,eN.Z)(t.read())];case 3:if(i=(r=n.sent()).value,!r.done)return[3,5];return[4,(0,eN.Z)(void 0)];case 4:return[2,n.sent()];case 5:return[4,(0,eN.Z)(i)];case 6:return[4,n.sent()];case 7:return n.sent(),[3,2];case 8:return[3,10];case 9:return t.releaseLock(),[7];case 10:return[2]}})})}function eY(e){return(0,x.f)(null==e?void 0:e.getReader)}var eZ=e.i(33229);function eX(e){if(e instanceof E)return e;if(null!=e){var t,r,i,n;if((0,x.f)(e[k])){return t=e,new E(function(e){var r=t[k]();if((0,x.f)(r.subscribe))return r.subscribe(e);throw TypeError("Provided object does not correctly implement Symbol.observable")})}if(eW(e)){return r=e,new E(function(e){for(var t=0;t<r.length&&!e.closed;t++)e.next(r[t]);e.complete()})}if(eU(e)){return i=e,new E(function(e){i.then(function(t){e.closed||(e.next(t),e.complete())},function(t){return e.error(t)}).then(null,eZ.f)})}if(e$(e))return e0(e);if(eG(e)){return n=e,new E(function(e){var t,r;try{for(var i=(0,eN._)(n),s=i.next();!s.done;s=i.next()){var a=s.value;if(e.next(a),e.closed)return}}catch(e){t={error:e}}finally{try{s&&!s.done&&(r=i.return)&&r.call(i)}finally{if(t)throw t.error}}e.complete()})}if(eY(e))return e0(eJ(e))}throw eH(e)}function e0(e){return new E(function(t){(function(e,t){var r,i,n,s;return(0,eN.W)(this,void 0,void 0,function(){var a;return(0,eN.t)(this,function(o){switch(o.label){case 0:o.trys.push([0,5,6,11]),r=(0,eN.I)(e),o.label=1;case 1:return[4,r.next()];case 2:if((i=o.sent()).done)return[3,4];if(a=i.value,t.next(a),t.closed)return[2];o.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return n={error:o.sent()},[3,11];case 6:if(o.trys.push([6,,9,10]),!(i&&!i.done&&(s=r.return)))return[3,8];return[4,s.call(r)];case 7:o.sent(),o.label=8;case 8:return[3,10];case 9:if(n)throw n.error;return[7];case 10:return[7];case 11:return t.complete(),[2]}})})})(e,t).catch(function(e){return t.error(e)})})}function e1(e){void 0===e&&(e={});var t=e.connector,r=void 0===t?function(){return new eV}:t,i=e.resetOnError,n=void 0===i||i,s=e.resetOnComplete,a=void 0===s||s,l=e.resetOnRefCountZero,u=void 0===l||l;return function(e){var t,i,s,l=0,c=!1,f=!1,h=function(){null==i||i.unsubscribe(),i=void 0},d=function(){h(),t=s=void 0,c=f=!1},p=function(){var e=t;d(),null==e||e.unsubscribe()};return(0,o.f)(function(e,o){l++,f||c||h();var m=s=null!=s?s:r();o.add(function(){0!=--l||f||c||(i=e8(p,u))}),m.subscribe(o),!t&&l>0&&(t=new v.N({next:function(e){return m.next(e)},error:function(e){f=!0,h(),i=e8(d,n,e),m.error(e)},complete:function(){c=!0,h(),i=e8(d,a),m.complete()}}),eX(e).subscribe(t))})(e)}}function e8(e,t){for(var r=[],i=2;i<arguments.length;i++)r[i-2]=arguments[i];if(!0===t)return void e();if(!1!==t){var n=new v.N({next:function(){n.unsubscribe(),e()}});return eX(t.apply(void 0,(0,eN.p)([],(0,eN.J)(r)))).subscribe(n)}}function e2(e,t,r){var i,n,s,a,o=!1;return e&&"object"==typeof e?(a=void 0===(i=e.bufferSize)?1/0:i,t=void 0===(n=e.windowTime)?1/0:n,o=void 0!==(s=e.refCount)&&s,r=e.scheduler):a=null!=e?e:1/0,e1({connector:function(){return new eB(a,t,r)},resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:o})}e.s(["f",0,eX],48531),e.s(["f",0,e1],93853),e.s(["f",0,e2],33628);let e4=J(function(e,t,r){let i,n;function s(e){return e!==i&&(n=r(i=e)),n}return Object.assign(e.pipe(u(s),e2({bufferSize:1,refCount:!0})),{getCurrentResult:()=>s(e.getCurrentResult())})},{max:1,makeCacheKey:e=>e.slice(0,2)});e.s(["f",0,e4],57038);var e3=e.i(30928);function e9(e){return m(e,{FragmentSpread(e){if(!e.directives?.some(({name:e})=>"unmask"===e.value))return null}})}var e7=e.i(99849),h=h;function e5(e,t){var r=(0,x.f)(e)?e:function(){return e},i=function(e){return e.error(r())};return new E(t?function(e){return t.schedule(i,0,e)}:i)}function e6(e){return(0,o.f)(function(t,r){var i,n=null,s=!1;n=t.subscribe((0,l.f)(r,void 0,void 0,function(a){i=eX(e(a,e6(e)(t))),n?(n.unsubscribe(),n=null,i.subscribe(r)):s=!0})),s&&(n.unsubscribe(),n=null,i.subscribe(r))})}var te=e.i(95065);function tt(e,t,r){return(void 0===r&&(r=1/0),(0,x.f)(t))?tt(function(r,i){return u(function(e,n){return t(r,e,i,n)})(eX(e(r,i)))},r):("number"==typeof t&&(r=t),(0,o.f)(function(t,i){var n,s,a,o,u,c,f,h;return n=r,s=[],a=0,o=0,u=!1,c=function(){!u||s.length||a||i.complete()},f=function(e){return a<n?h(e):s.push(e)},h=function(t){a++;var r=!1;eX(e(t,o++)).subscribe((0,l.f)(i,function(e){i.next(e)},function(){r=!0},void 0,function(){if(r)try{for(a--;s.length&&a<n;)!function(){var e=s.shift();h(e)}();c()}catch(e){i.error(e)}}))},t.subscribe((0,l.f)(i,f,function(){u=!0,c()})),function(){}}))}function tr(e){return e&&(0,x.f)(e.schedule)}function ti(e){return tr(e[e.length-1])?e.pop():void 0}e.s(["f",0,tt],55735),e.s(["f",0,tr],33825);var tn=e.i(32106);function ts(e,t){return void 0===t&&(t=0),(0,o.f)(function(r,i){i.add(e.schedule(function(){return r.subscribe(i)},t))})}function ta(e,t){if(!e)throw Error("Iterable cannot be null");return new E(function(r){(0,te.f)(r,t,function(){var i=e[Symbol.asyncIterator]();(0,te.f)(r,t,function(){i.next().then(function(e){e.done?r.complete():r.next(e.value)})},0,!0)})})}function to(e,t){return t?function(e,t){if(null!=e){if((0,x.f)(e[k]))return eX(e).pipe(ts(t),(0,tn.f)(t));if(eW(e))return new E(function(r){var i=0;return t.schedule(function(){i===e.length?r.complete():(r.next(e[i++]),r.closed||this.schedule())})});if(eU(e))return eX(e).pipe(ts(t),(0,tn.f)(t));if(e$(e))return ta(e,t);if(eG(e))return new E(function(r){var i;return(0,te.f)(r,t,function(){i=e[eK](),(0,te.f)(r,t,function(){var e,t,n;try{t=(e=i.next()).value,n=e.done}catch(e){r.error(e);return}n?r.complete():r.next(t)},0,!0)}),function(){return(0,x.f)(null==i?void 0:i.return)&&i.return()}});if(eY(e))return ta(eJ(e),t)}throw eH(e)}(e,t):eX(e)}function tl(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return tt(S,1)(to(e,ti(e)))}function tu(e,t){return(0,o.f)(function(r,i){var n=0;r.subscribe((0,l.f)(i,function(r){return e.call(t,r,n++)&&i.next(r)}))})}e.s(["f",0,tu],75557);var tc=(0,eA.f)(function(e){return function(){e(this),this.name="EmptyError",this.message="no elements in sequence"}});function tf(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=ti(e);return to(e,r)}(n=s||(s={})).NEXT="N",n.ERROR="E",n.COMPLETE="C";var th=function(){function e(e,t,r){this.kind=e,this.value=t,this.error=r,this.hasValue="N"===e}return e.prototype.observe=function(e){return function(e,t){var r,i,n,s=e.kind,a=e.value,o=e.error;if("string"!=typeof s)throw TypeError('Invalid notification, missing "kind"');"N"===s?null==(r=t.next)||r.call(t,a):"E"===s?null==(i=t.error)||i.call(t,o):null==(n=t.complete)||n.call(t)}(this,e)},e.prototype.do=function(e,t,r){var i=this.kind,n=this.value,s=this.error;return"N"===i?null==e?void 0:e(n):"E"===i?null==t?void 0:t(s):null==r?void 0:r()},e.prototype.accept=function(e,t,r){return(0,x.f)(null==e?void 0:e.next)?this.observe(e):this.do(e,t,r)},e.prototype.toObservable=function(){var e=this.kind,t=this.value,r=this.error,i="N"===e?tf(t):"E"===e?e5(function(){return r}):"C"===e?_:0;if(!i)throw TypeError("Unexpected notification kind "+e);return i},e.createNext=function(t){return new e("N",t)},e.createError=function(t){return new e("E",void 0,t)},e.createComplete=function(){return e.completeNotification},e.completeNotification=new e("C"),e}();function td(e,t,r){var i=(0,x.f)(e)||t||r?{next:e,error:t,complete:r}:e;return i?(0,o.f)(function(e,t){null==(r=i.subscribe)||r.call(i);var r,n=!0;e.subscribe((0,l.f)(t,function(e){var r;null==(r=i.next)||r.call(i,e),t.next(e)},function(){var e;n=!1,null==(e=i.complete)||e.call(i),t.complete()},function(e){var r;n=!1,null==(r=i.error)||r.call(i,e),t.error(e)},function(){var e,t;n&&(null==(e=i.unsubscribe)||e.call(i)),null==(t=i.finalize)||t.call(i)}))}):S}e.s(["f",0,td],21910);let tp={};T.f,T.f,T.f;let tm=Object.assign(function(e){return JSON.stringify(e,ty)},{reset(){r=new G(j.canonicalStringify||1e3)}});function ty(e,t){if(t&&"object"==typeof t){let e=Object.getPrototypeOf(t);if(e===Object.prototype||null===e){let i=Object.keys(t);if(i.every(tb))return t;let n=JSON.stringify(i),s=r.get(n);if(!s){i.sort();let e=JSON.stringify(i);s=r.get(e)||i,r.set(n,s),r.set(e,s)}let a=Object.create(e);return s.forEach(e=>{a[e]=t[e]}),a}}return t}function tb(e,t,r){return 0===t||r[t-1]<=e}T.f&&(tp.canonicalStringify=()=>r.size),tm.reset(),e.s(["f",0,tm],44728);var tg=e.i(22422),tv=e.i(94144);function tw(e){return e.map(e=>e.message||"Error message not found.").join("\n")}class tk extends Error{static is(e){return(0,tv.m)(e,"CombinedProtocolErrors")}static formatMessage=tw;errors;constructor(e){super(tk.formatMessage(e,{defaultFormatMessage:tw})),this.name="CombinedProtocolErrors",this.errors=e,(0,tv.s)(this),Object.setPrototypeOf(this,tk.prototype)}}e.s(["f",0,tk],1977);class tS extends Error{static is(e){return(0,tv.m)(e,"UnconventionalError")}constructor(e){super("An error of unexpected shape occurred.",{cause:e}),this.name="UnconventionalError",(0,tv.s)(this),Object.setPrototypeOf(this,tS.prototype)}}e.s(["f",0,tS],14784);let tO=Symbol();function tx(e){return"extensions"in e&&tk.is(e.extensions[tO])}function tP(e){return null!==e&&"object"==typeof e&&"string"==typeof e.message&&"string"==typeof e.name&&("string"==typeof e.stack||void 0===e.stack)?e:"string"==typeof e?Error(e,{cause:e}):new tS(e)}e.s(["u",0,tO,"O",0,tx,"W",0,tP],27764);let tE=new WeakSet;function tC(e){tE.add(e)}e.s(["D",0,{is:e=>tE.has(e)},"k",0,tC],51080);var t_=e.i(24669),h=h;function tT(e=[]){let t={};return e.forEach(e=>{t[e.name.value]=e}),t}function tF(e){return e.definitions.filter(e=>"FragmentDefinition"===e.kind)}e.s(["f",0,tT],73586),e.s(["f",0,tF],18597);var h=h,tD=e.i(91584);function tj(e){return e.alias?e.alias.value:e.name.value}e.s(["f",0,tj],58008);var h=h;let tR=new eo;function tM(e){let t=e.directives?.find(({name:e})=>"unmask"===e.value);if(!t)return"mask";let r=t.arguments?.find(({name:e})=>"mode"===e.value);return(T.f&&r&&(r.value.kind===h.VARIABLE?T.f&&b.k.warn(46):r.value.kind!==h.STRING?T.f&&b.k.warn(47):"migrate"!==r.value.value&&T.f&&b.k.warn(48,r.value.value)),r&&"value"in r.value&&"migrate"===r.value.value)?"migrate":"unmask"}function tI(e,t,r){return tR.withValue(!0,()=>{let i=function e(t,r,i,n,s){let{knownChanged:a}=i,o=function(e,t){if(t.has(e))return t.get(e);let r=Array.isArray(e)?[]:{};return t.set(e,r),r}(t,i.mutableTargets);if(Array.isArray(t)){for(let[l,u]of Array.from(t.entries())){if(null===u){o[l]=null;continue}let t=e(u,r,i,n,T.f?`${s||""}[${l}]`:void 0);a.has(t)&&a.add(o),o[l]=t}return a.has(o)?o:t}for(let l of r.selections){let r;if(n&&a.add(o),l.kind===h.FIELD){let u=tj(l),c=l.selectionSet;if(void 0===(r=o[u]||t[u]))continue;if(c&&null!==r){let o=e(t[u],c,i,n,T.f?`${s||""}.${u}`:void 0);a.has(o)&&(r=o)}T.f||(o[u]=r),T.f&&(n&&"__typename"!==u&&!Object.getOwnPropertyDescriptor(o,u)?.value?Object.defineProperty(o,u,function(e,t,r,i,n){let s=()=>(tR.getValue()||(T.f&&b.k.warn(42,i?`${n} '${i}'`:`anonymous ${n}`,`${r}.${e}`.replace(/^\./,"")),s=()=>t),t);return{get:()=>s(),set(e){s=()=>e},enumerable:!0,configurable:!0}}(u,r,s||"",i.operationName,i.operationType)):(delete o[u],o[u]=r))}if(l.kind===h.INLINE_FRAGMENT&&(!l.typeCondition||i.cache.fragmentMatches(l,t.__typename))&&(r=e(t,l.selectionSet,i,n,s)),l.kind===h.FRAGMENT_SPREAD){let n=l.name.value,a=i.fragmentMap[n]||(i.fragmentMap[n]=i.cache.lookupFragment(n));(0,b.k)(a,41,n);let o=tM(l);"mask"!==o&&(r=e(t,a.selectionSet,i,"migrate"===o,s))}a.has(r)&&a.add(o)}return"__typename"in t&&!("__typename"in o)&&(o.__typename=t.__typename),Object.keys(o).length!==Object.keys(t).length&&a.add(o),a.has(o)?o:t}(e,t,r,!1);return Object.isFrozen(e)&&(0,tD.f)(i),i})}function tN(e){return 7===e||8===e}e.s(["w",0,tR,"$",0,tM],57299);e.s(["f",0,tN],3443);var tA=e.i(67757);let tq=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function tQ(e){return tV[e.charCodeAt(0)]}let tV=["\\u0000","\\u0001","\\u0002","\\u0003","\\u0004","\\u0005","\\u0006","\\u0007","\\b","\\t","\\n","\\u000B","\\f","\\r","\\u000E","\\u000F","\\u0010","\\u0011","\\u0012","\\u0013","\\u0014","\\u0015","\\u0016","\\u0017","\\u0018","\\u0019","\\u001A","\\u001B","\\u001C","\\u001D","\\u001E","\\u001F","","",'\\"',"","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\\\","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\u007F","\\u0080","\\u0081","\\u0082","\\u0083","\\u0084","\\u0085","\\u0086","\\u0087","\\u0088","\\u0089","\\u008A","\\u008B","\\u008C","\\u008D","\\u008E","\\u008F","\\u0090","\\u0091","\\u0092","\\u0093","\\u0094","\\u0095","\\u0096","\\u0097","\\u0098","\\u0099","\\u009A","\\u009B","\\u009C","\\u009D","\\u009E","\\u009F"];class tz{constructor(e="",t=!1){this.next=void 0,this.tail=this,this.indentBefore=!1,this.dedentAfter=!1,this.length=e.length,this.lines=e.includes("\n")?e.split("\n"):e,this.newlines="string"==typeof this.lines?0:this.lines.length-1,this.isBlockString=t}append(e){if(0===e.length)return this;let t="string"==typeof e?new tz(e):e;return this.tail.next=t,this.tail=t.tail,this.length+=t.length,this.newlines+=t.newlines,this}indent(){return 0===this.length||(this.indentBefore=!0,this.tail.dedentAfter=!0,this.length+=2*(this.newlines+1)),this}}let tL=new tz,tB={Name:e=>new tz(e.value),Variable:e=>tW(["$",e.name]),Document:e=>tW(e.definitions,"\n\n"),OperationDefinition(e){let t=tK(e.variableDefinitions)?tH("(\n",tW(e.variableDefinitions,"\n"),"\n)"):tH("(",tW(e.variableDefinitions,", "),")"),r=tW([tH("",e.description,"\n"),tW([e.operation,tW([e.name,t]),tW(e.directives," ")]," ")]);return tW(["query"===e.operation&&r.length===e.operation.length?"":tW([r," "]),e.selectionSet])},VariableDefinition:({variable:e,type:t,defaultValue:r,directives:i,description:n})=>tW([tH("",n,"\n"),e,": ",t,tH(" = ",r),tH(" ",tW(i," "))]),SelectionSet:({selections:e})=>0===e.length?new tz("{}"):t$(e),Field({alias:e,name:t,arguments:r,directives:i,selectionSet:n}){let s=tW([tH("",e,": "),t],"");return tW([tG(s,r),tH(" ",tW(i," ")),tH(" ",n)])},Argument:({name:e,value:t})=>tW([e,": ",t]),FragmentArgument:({name:e,value:t})=>tW([e,": ",t]),FragmentSpread:({name:e,arguments:t,directives:r})=>{let i=tW(["...",e]);return tW([tG(i,t),tH(" ",tW(r," "))])},InlineFragment:({typeCondition:e,directives:t,selectionSet:r})=>tW(["...",tH("on ",e),tW(t," "),r]," "),FragmentDefinition:({name:e,typeCondition:t,variableDefinitions:r,directives:i,selectionSet:n,description:s})=>tW([tH("",s,"\n"),"fragment ",e,tH("(",tW(r,", "),")")," on ",t," ",tH("",tW(i," ")," "),n]),IntValue:({value:e})=>new tz(e),FloatValue:({value:e})=>new tz(e),StringValue:({value:e,block:t})=>new tz(!0===t?(0,tA.V)(e):`"${e.replace(tq,tQ)}"`,!0===t),BooleanValue:({value:e})=>new tz(e?"true":"false"),NullValue:()=>new tz("null"),EnumValue:({value:e})=>new tz(e),ListValue:({values:e})=>2+tU(e,", ")>80?tH("[\n",tW(e,"\n").indent(),"\n]"):tW(["[",tW(e,", "),"]"]),ObjectValue:({fields:e})=>4+tU(e,", ")>80?t$(e):tW(["{ ",tW(e,", ")," }"]),ObjectField:({name:e,value:t})=>tW([e,": ",t]),Directive:({name:e,arguments:t})=>tW(["@",e,tH("(",tW(t,", "),")")]),NamedType:({name:e})=>e,ListType:({type:e})=>tW(["[",e,"]"]),NonNullType:({type:e})=>tW([e,"!"]),SchemaDefinition:({description:e,directives:t,operationTypes:r})=>tW([tH("",e,"\n"),tW(["schema",tW(t," "),t$(r)]," ")]),OperationTypeDefinition:({operation:e,type:t})=>tW([e,": ",t]),ScalarTypeDefinition:({description:e,name:t,directives:r})=>tW([tH("",e,"\n"),tW(["scalar",t,tW(r," ")]," ")]),ObjectTypeDefinition:({description:e,name:t,interfaces:r,directives:i,fields:n})=>tW([tH("",e,"\n"),tW(["type",t,tH("implements ",tW(r," & ")),tW(i," "),t$(n)]," ")]),FieldDefinition:({description:e,name:t,arguments:r,type:i,directives:n})=>tW([tH("",e,"\n"),t,tK(r)?tH("(\n",tW(r,"\n").indent(),"\n)"):tH("(",tW(r,", "),")"),": ",i,tH(" ",tW(n," "))]),InputValueDefinition:({description:e,name:t,type:r,defaultValue:i,directives:n})=>tW([tH("",e,"\n"),t,": ",r,tH(" = ",i),tH(" ",tW(n," "))]),InterfaceTypeDefinition:({description:e,name:t,interfaces:r,directives:i,fields:n})=>tW([tH("",e,"\n"),tW(["interface",t,tH("implements ",tW(r," & ")),tW(i," "),t$(n)]," ")]),UnionTypeDefinition:({description:e,name:t,directives:r,types:i})=>tW([tH("",e,"\n"),tW(["union",t,tW(r," "),tH("= ",tW(i," | "))]," ")]),EnumTypeDefinition:({description:e,name:t,directives:r,values:i})=>tW([tH("",e,"\n"),tW(["enum",t,tW(r," "),t$(i)]," ")]),EnumValueDefinition:({description:e,name:t,directives:r})=>tW([tH("",e,"\n"),tW([t,tW(r," ")]," ")]),InputObjectTypeDefinition:({description:e,name:t,directives:r,fields:i})=>tW([tH("",e,"\n"),tW(["input",t,tW(r," "),t$(i)]," ")]),DirectiveDefinition:({description:e,name:t,arguments:r,directives:i,repeatable:n,locations:s})=>tW([tH("",e,"\n"),"directive @",t,tK(r)?tH("(\n",tW(r,"\n").indent(),"\n)"):tH("(",tW(r,", "),")"),tH(" ",tW(i," ")),n?" repeatable":""," on ",tW(s," | ")]),SchemaExtension:({directives:e,operationTypes:t})=>tW(["extend schema",tW(e," "),t$(t)]," "),ScalarTypeExtension:({name:e,directives:t})=>tW(["extend scalar",e,tW(t," ")]," "),ObjectTypeExtension:({name:e,interfaces:t,directives:r,fields:i})=>tW(["extend type",e,tH("implements ",tW(t," & ")),tW(r," "),t$(i)]," "),InterfaceTypeExtension:({name:e,interfaces:t,directives:r,fields:i})=>tW(["extend interface",e,tH("implements ",tW(t," & ")),tW(r," "),t$(i)]," "),UnionTypeExtension:({name:e,directives:t,types:r})=>tW(["extend union",e,tW(t," "),tH("= ",tW(r," | "))]," "),EnumTypeExtension:({name:e,directives:t,values:r})=>tW(["extend enum",e,tW(t," "),t$(r)]," "),InputObjectTypeExtension:({name:e,directives:t,fields:r})=>tW(["extend input",e,tW(t," "),t$(r)]," "),DirectiveExtension:({name:e,directives:t})=>tW([tW(["extend directive @",e]),tW(t," ")]," "),TypeCoordinate:({name:e})=>e,MemberCoordinate:({name:e,memberName:t})=>tW([e,tH(".",t)]),ArgumentCoordinate:({name:e,fieldName:t,argumentName:r})=>tW([e,tH(".",t),tH("(",r,":)")]),DirectiveCoordinate:({name:e})=>tW(["@",e]),DirectiveArgumentCoordinate:({name:e,argumentName:t})=>tW(["@",e,tH("(",t,":)")])};function tW(e,t=""){if(null==e||0===e.length)return tL;let r=tL;for(let i of e)void 0!==i&&0!==i.length&&(0===r.length?r="string"==typeof i?new tz(i):i:(""!==t&&r.append(t),r.append(i)));return r}function tU(e,t){let r=0;for(let i of e)0!==i.length&&(r+=(0===r?0:t.length)+i.length);return r}function t$(e){return tH("{\n",tW(e,"\n").indent(),"\n}")}function tH(e,t,r=""){return null!=t&&0!==t.length?""===e?t.append(r):new tz(e).append(t).append(r):tL}function tK(e){return e?.some(e=>0!==e.newlines)??!1}function tG(e,t){return null==t||0===t.length?e:tW([e,e.length+tU(t,", ")+2>80?tH("(\n",tW(t,"\n").indent(),"\n)"):tH("(",tW(t,", "),")")])}let tJ=Object.assign(e=>{let t=i.get(e);return t||(t=function(e,t){let r="",i="",n=0,s="",a=e;for(;void 0!==a;){let e=a.lines;if(a.indentBefore&&(n<t&&(s+=" ",i+=" "),n++),"string"==typeof e)i+=e;else{i+=e[0];let o=!a.isBlockString&&n>=t?" ":"\n"+s;for(let t=1;t<e.length;t++)r+=i,i=o+e[t]}a.dedentAfter&&(n--,s=s.slice(0,2*n)),a=a.next}return r+i}(function(e,t){let r,i=[],n={parent:[e],keys:void 0,results:[],index:-1};do{let e;n.index++;let s=void 0===n.keys?n.parent.length:n.keys.length;if(n.index===s)r=n.results,e=void 0===n.keys?void 0:n.results.kind,n=i.pop();else{if(null==(r=void 0===n.keys?n.parent[n.index]:n.parent[n.keys[n.index]])&&0!==i.length)continue;if(Array.isArray(r)){if(0!==r.length){i.push(n),n={parent:r,keys:void 0,results:[],index:-1};continue}}else{let t=r,s="string"==typeof(e=t?.kind)?a.Q[e]:void 0;if(!Array.isArray(s))throw Error(`Invalid AST Node: ${f(r,[])}.`);if(0!==s.length){i.push(n),n={parent:t,keys:s,results:{...t},index:-1};continue}}}if(void 0!==e){let i=t[e];r=i?.(r)}void 0===n.keys?n.results.push(r):n.results[n.keys[n.index]]=r}while(0!==i.length)return r}(e,tB),(void 0)??1/0),i.set(e,t)),t},{reset(){i=new K(j.print||2e3)}});function tY(e,t){switch(e.kind){case"InlineFragment":return e;case"FragmentSpread":{let r=e.name.value;if("function"==typeof t)return t(r);let i=t&&t[r];return(0,b.k)(i,11,r),i}default:return null}}function tZ(e){let t;for(let r of(Y(e),e.definitions)){if("OperationDefinition"===r.kind)return r;"FragmentDefinition"!==r.kind||t||(t=r)}if(t)return t;throw(0,b.b)(14)}function tX(e){return"Field"===e.kind}function t0(e){return e.match(/^\[(.*)\]$/)}function t1(e){return e.replace(/[[\]]/g,"")}function t8(e,t,r){let i=Z(t)?.operation,n=tT(tF(t));function s(e,t,r,i){let n=!1,s=t.map(t=>{let s=a(e,t,r,i);return n||=s!==t,s});return n?s:t}function a(e,t,i,n){if(Array.isArray(t)&&!n)return s(e,t,i,n);if(e.selectionSet)return o(e.selectionSet,t);if(null===t||!i)return t;if(n){let a=t0(n);if(a)if(Array.isArray(t))return s(e,t,i,a[1]);else T.f&&T.f&&b.k.warn(7,`${i}.${e.name.value}`,n,t1(n));let o=r.getScalar(t1(n));if(o)return o.coerceToParsed(t)}return t}function o(e,t,i){if(null===t||"object"!=typeof t)return t;let s={...t},o=!1;Object.hasOwn(t,"__typename")&&(i=t.__typename);let l=new Set(e.selections);return l.forEach(e=>{if(tX(e)){let n=tj(e);if(!Object.hasOwn(t,n))return;let l=t[n],u=a(e,l,i,i?r.getScalarTypeForField(i,e.name.value):void 0);o||=u!==l,s[n]=u}else{let t=tY(e,n);t&&i&&r.fragmentMatches(t,i)&&t.selectionSet.selections.forEach(e=>l.add(e))}}),o?s:t}return(0,b.k)(i,6),o(tZ(t).selectionSet,e,r.getRootTypename(i))}tJ.reset(),T.f&&(tp.print=()=>i?i.size:0),e.s(["f",0,tJ],41969),e.s(["f",0,tY],42628),e.s(["f",0,tZ],79500),e.s(["f",0,tX],46638),e.s(["f",0,t0],27988),e.s(["f",0,t1],11197);var t2=e.i(15953);function t4(e,t=()=>void 0){return r=>new E(i=>{let n=t();return r.subscribe({next(t){let r;try{r=e(t,n)}catch(e){i.error(e)}void 0!==r&&i.next(r)},error(e){i.error(e)},complete(){i.complete()}})})}var h=h;function t3(e,t,r,i){if(r.kind===h.INT||r.kind===h.FLOAT)e[t.value]=Number(r.value);else if(r.kind===h.BOOLEAN||r.kind===h.STRING)e[t.value]=r.value;else if(r.kind===h.OBJECT){let n={};r.fields.map(e=>t3(n,e.name,e.value,i)),e[t.value]=n}else if(r.kind===h.VARIABLE){let n=(i||{})[r.name.value];e[t.value]=n}else if(r.kind===h.LIST)e[t.value]=r.values.map(e=>{let r={};return t3(r,t,e,i),r[t.value]});else if(r.kind===h.ENUM)e[t.value]=r.value;else if(r.kind===h.NULL)e[t.value]=null;else throw(0,b.b)(21,t.value,r.kind)}function t9(e){let t={},r=e&&e.variableDefinitions;return r&&r.length&&r.forEach(e=>{e.defaultValue&&t3(t,e.variable.name,e.defaultValue)}),t}function t7(e){return!!e.errors?.length}e.s(["f",0,t3],73528),e.s(["f",0,t9],14160);var t5=e.i(66930),t6=e.i(27422),h=h;function re(e){(0,b.k)("Document"===e.kind,8),(0,b.k)(e.definitions.length<=1,9);let t=e.definitions[0];return(0,b.k)("FragmentDefinition"===t.kind,10),t}e.s(["f",0,re],73507);let rt=Array.isArray;function rr(e){return Array.isArray(e)&&e.length>0}function ri(e){let t=new Map;return function(r=e){let i=t.get(r);return i||t.set(r,i={variables:new Set,fragmentSpreads:new Set}),i}}function rn(e){let t={data:e.data};return e.error&&(t.error=e.error),t}e.s(["f",0,rt],65444),e.s(["f",0,rr],87408);let rs=new WeakMap;var ra=e.i(76810),ro=function(e){function t(t){var r=e.call(this)||this;return r._value=t,r}return(0,eN.w)(t,e),Object.defineProperty(t.prototype,"value",{get:function(){return this.getValue()},enumerable:!1,configurable:!0}),t.prototype._subscribe=function(t){var r=e.prototype._subscribe.call(this,t);return r.closed||t.next(this._value),r},t.prototype.getValue=function(){var e=this.hasError,t=this.thrownError,r=this._value;if(e)throw t;return this._throwIfClosed(),r},t.prototype.next=function(t){e.prototype.next.call(this,this._value=t)},t}(eV);function rl({directives:e},t){var r;let i;return!e||!e.length||(i=[],(r=e)&&r.length&&r.forEach(e=>{if(!function({name:{value:e}}){return"skip"===e||"include"===e}(e))return;let t=e.arguments,r=e.name.value;(0,b.k)(t&&1===t.length,18,r);let n=t[0];(0,b.k)(n.name&&"if"===n.name.value,19,r);let s=n.value;(0,b.k)(s&&("Variable"===s.kind||"BooleanValue"===s.kind),20,r),i.push({directive:e,ifArgument:n})}),i).every(({directive:e,ifArgument:r})=>{let i=!1;return"Variable"===r.value.kind?(i=t&&t[r.value.name.value],(0,b.k)(void 0!==i,17,e.name.value)):i=r.value.value,"skip"===e.name.value?!i:i})}function ru(e,{data:t,...r},{data:i,...n},s){return(0,t_.f)(r,n)&&function e(t,r,i,n){if(r===i)return!0;let s=new Set;return t.selections.every(t=>{if(s.has(t)||(s.add(t),!rl(t,n.variables)||rc(t)))return!0;if(tX(t)){let s=tj(t),a=r&&r[s],o=i&&i[s],l=t.selectionSet;if(!l)return(0,t_.f)(a,o);let u=Array.isArray(a),c=Array.isArray(o);if(u!==c)return!1;if(u&&c){let t=a.length;if(o.length!==t)return!1;for(let r=0;r<t;++r)if(!e(l,a[r],o[r],n))return!1;return!0}return e(l,a,o,n)}{let s=tY(t,n.fragmentMap);if(s)return!!rc(s)||e(s.selectionSet,r,i,n)}})}(tZ(e).selectionSet,t,i,{fragmentMap:tT(tF(e)),variables:s})}function rc(e){return!!e.directives&&e.directives.some(rf)}function rf(e){return"nonreactive"===e.name.value}function rh(e){let t=Z(e);return(0,b.k)(t&&"query"===t.operation,15),t}e.s(["f",0,rl],26708),e.s(["f",0,ru],21847),e.s(["f",0,rh],44871);var rd=e.i(52006);function rp(e){return"dataState"in e?e:{...e,dataState:e.complete?"complete":null===e.result?"empty":"partial"}}let{assign:rm,hasOwnProperty:ry}=Object,rb={loading:!0,networkStatus:ra.f.loading,data:void 0,dataState:"empty",partial:!0},rg={loading:!1,networkStatus:ra.f.ready,data:void 0,dataState:"empty",partial:!0},rv=new WeakMap;function rw(e,t){let r=e[t];"function"==typeof r&&(e[t]=function(){return rv.set(e,(rv.get(e)+1)%1e15),r.apply(this,arguments)})}class rk{options;queryName;variablesUnknown=!1;didWarnOnFeud=!1;lastMissing;get query(){return this.lastQuery}get variables(){return this.options.variables}unsubscribeFromCache;input;subject;isTornDown;queryManager;subscriptions=new Set;waitForNetworkResult;lastQuery;linkSubscription;pollingInfo;get networkStatus(){return this.subject.getValue().result.networkStatus}get cache(){return this.queryManager.cache}constructor({queryManager:e,options:t,transformedQuery:r=e.transform(t.query)}){this.queryManager=e;let{cache:i}=e;rv.has(i)||(rv.set(i,0),rw(i,"evict"),rw(i,"modify"),rw(i,"reset")),this.waitForNetworkResult="network-only"===t.fetchPolicy,this.isTornDown=!1,this.subscribeToMore=this.subscribeToMore.bind(this),this.maskResult=this.maskResult.bind(this);let{watchQuery:{fetchPolicy:n="cache-first"}={}}=e.defaultOptions,{fetchPolicy:s=n,initialFetchPolicy:a="standby"===s?n:s}=t;t[t2.N]&&((0,b.k)("standby"===s,85),this.variablesUnknown=!0),this.lastQuery=r,this.options={...t,initialFetchPolicy:a,fetchPolicy:s,variables:this.getVariablesWithDefaults(t.variables)},this.initializeObservablesQueue(),this["@@observable"]=()=>this,Symbol.observable&&(this[Symbol.observable]=()=>this);let o=Z(this.query);this.queryName=o&&o.name&&o.name.value}initializeObservablesQueue(){this.subject=new ro({query:this.query,variables:this.variables,result:rb,meta:{}});let e=this.subject.pipe(td({subscribe:()=>{this.subject.observed||(this.reobserve(),setTimeout(()=>this.updatePolling()))},unsubscribe:()=>{this.subject.observed||this.tearDownQuery()}}),t4(({query:e,variables:t,result:r,meta:i},n)=>{let{shouldEmit:s}=i;if(r===rb&&(n.previous=void 0,n.previousVariables=void 0),"standby"===this.options.fetchPolicy||2===s)return;if(1===s)return l();let{previous:a,previousVariables:o}=n;if(a){let i=this.queryManager.getDocumentInfo(e),n=this.queryManager.dataMasking,s=n?i.nonReactiveQuery:e;if((n||i.hasNonreactiveDirective?ru(s,a,r,t):(0,t_.f)(a,r))&&(0,t_.f)(o,t))return}if(!(3===s&&(!this.options.notifyOnNetworkStatusChange||(0,t_.f)(a,r))))return l();function l(){return n.previous=r,n.previousVariables=t,r}},()=>({})));this.pipe=e.pipe.bind(e),this.subscribe=e.subscribe.bind(e),this.input=new eV,this.input.complete=()=>{},this.input.pipe(this.operator).subscribe(this.subject)}subscribe;pipe;[Symbol.observable];"@@observable";getCacheDiff({optimistic:e=!0}={}){return rp(this.cache.diff({query:this.query,variables:this.variables,returnPartialData:!0,optimistic:e,[t2.q]:void 0}))}getInitialResult(e){let t=e||this.options.fetchPolicy;this.queryManager.prioritizeCacheValues&&("network-only"===t||"cache-and-network"===t)&&(t="cache-first");let r=()=>{let e=this.getCacheDiff(),{dataState:t}=e,r=this.options.returnPartialData||e.complete?e.result??void 0:void 0;return void 0===r&&(t="empty"),this.maskResult({data:r,dataState:t,loading:!e.complete,networkStatus:e.complete?ra.f.ready:ra.f.loading,partial:!e.complete})};switch(t){case"cache-only":return{...r(),loading:!1,networkStatus:ra.f.ready};case"cache-first":return r();case"cache-and-network":return{...r(),loading:!0,networkStatus:ra.f.loading};case"standby":return rg;default:return rb}}resubscribeCache(){let{variables:e,fetchPolicy:t}=this.options,r=this.query,i="standby"===t||"no-cache"===t||this.waitForNetworkResult,n=!rO({query:r,variables:e},this.unsubscribeFromCache)&&!this.waitForNetworkResult;if((i||n)&&this.unsubscribeFromCache?.(),i||!n)return;let s={query:r,variables:e,optimistic:!0,watcher:this,callback:e=>{let t=this.queryManager.getDocumentInfo(r);if((t.hasClientExports||t.hasForcedResolvers)&&(s.lastDiff=void 0),s.lastOwnDiff===e)return;let{result:i}=this.subject.getValue();(e.complete||!i.error&&i!==rb&&i!==rg)&&((0,t_.f)(i.data,e.result)||this.scheduleNotify())}},a=this.cache.watch(s);this.unsubscribeFromCache=Object.assign(()=>{this.unsubscribeFromCache=void 0,a()},{query:r,variables:e})}stableLastResult;getCurrentResult(){let{result:e}=this.subject.getValue(),t=e.networkStatus===ra.f.error||this.hasObservers()||"no-cache"===this.options.fetchPolicy?e:this.getInitialResult();return t===rb&&(t=this.getInitialResult()),(0,t_.f)(this.stableLastResult,t)||(this.stableLastResult=t),this.stableLastResult}refetch(e){let{fetchPolicy:t}=this.options,r={pollInterval:0};if("no-cache"===t?r.fetchPolicy="no-cache":r.fetchPolicy="network-only",T.f&&e&&ry.call(e,"variables")){let t=rh(this.query),r=t.variableDefinitions;r&&r.some(e=>"variables"===e.variable.name.value)||!T.f||b.k.warn(86,e,t.name?.value||t)}return e&&!(0,t_.f)(this.variables,e)&&(r.variables=this.options.variables=this.getVariablesWithDefaults({...this.variables,...e})),this._reobserve(r,{newNetworkStatus:ra.f.refetch})}fetchMore({query:e,variables:t,context:r,errorPolicy:i,updateQuery:n}){(0,b.k)("cache-only"!==this.options.fetchPolicy,87,R(this.query,"(anonymous)"));let s={...(0,eM.f)(this.options,{errorPolicy:"none"},{query:e,context:r,errorPolicy:i}),variables:e?t:{...this.variables,...t},fetchPolicy:"no-cache",notifyOnNetworkStatusChange:this.options.notifyOnNetworkStatusChange};s.query=this.transformDocument(s.query),this.lastQuery=e?this.transformDocument(this.options.query):s.query;let a=!1,o="no-cache"!==this.options.fetchPolicy;o||(0,b.k)(n,88);let{finalize:l,pushNotification:u}=this.pushOperation(ra.f.fetchMore);u({source:"newNetworkStatus",kind:"N",value:{}},{shouldEmit:3});let{promise:c,operator:f}=rx(),{observable:h}=this.queryManager.fetchObservableWithInfo(s,{networkStatus:ra.f.fetchMore,exposeExtensions:!0}),d=h.pipe(f,tu(e=>"N"===e.kind&&"network"===e.source)).subscribe({next:e=>{a=!1;let t=e.value,r=t[t2.K];if(tN(e.value.networkStatus)&&l(),o){let e=this.getCacheDiff();this.cache.batch({update:e=>{n?e.updateQuery({query:this.query,variables:this.variables,returnPartialData:!0,optimistic:!1,extensions:r},e=>n(e,{fetchMoreResult:t.data,variables:s.variables})):e.writeQuery({query:s.query,variables:s.variables,data:t.data,extensions:r})},onWatchUpdated:(r,i)=>{if(r.watcher===this&&!(0,t_.f)(i.result,e.result)){a=!0;let e=this.getCurrentResult();tN(t.networkStatus)||u({kind:"N",source:"network",value:{...e,networkStatus:t.networkStatus===ra.f.error?ra.f.ready:t.networkStatus,loading:!1,data:i.result,dataState:i.complete?"complete":"streaming"}})}}})}else{let e=this.getCurrentResult(),r=n(e.data,{fetchMoreResult:t.data,variables:s.variables});u({kind:"N",value:{...e,networkStatus:ra.f.ready,loading:!1,data:r,dataState:"streaming"===e.dataState?"streaming":"complete"},source:"network"})}}});return(0,rd.f)(c.then(e=>rn(this.maskResult(e))).finally(()=>{if(d.unsubscribe(),l(),o&&!a){let e=this.getCurrentResult();"streaming"===e.dataState?u({kind:"N",source:"network",value:{...e,dataState:"complete",networkStatus:ra.f.ready}}):u({kind:"N",source:"newNetworkStatus",value:{}},{shouldEmit:1})}}))}subscribeToMore(e){let t=this.queryManager.startGraphQLSubscription({query:e.document,variables:e.variables,context:e.context}).subscribe({next:t=>{let{updateQuery:r,onError:i}=e,{error:n}=t;n?i?i(n):b.k.error(89,n):r&&this.updateQuery((e,i)=>r(e,{subscriptionData:t,...i}))}});return this.subscriptions.add(t),()=>{this.subscriptions.delete(t)&&t.unsubscribe()}}applyOptions(e){let t=(0,eM.f)(this.options,e||{});rm(this.options,t),this.updatePolling()}async setVariables(e){return(e=this.getVariablesWithDefaults(e),(0,t_.f)(this.variables,e))?rn(this.getCurrentResult()):(this.options.variables=e,this.hasObservers())?this._reobserve({fetchPolicy:this.options.initialFetchPolicy,variables:e},{newNetworkStatus:ra.f.setVariables}):rn(this.getCurrentResult())}updateQuery(e){let{queryManager:t}=this,{result:r,complete:i}=this.getCacheDiff({optimistic:!1}),n=e(r,{variables:this.variables,complete:!!i,previousData:r});n&&(this.cache.writeQuery({query:this.options.query,data:n,variables:this.variables}),t.broadcastQueries())}startPolling(e){this.options.pollInterval=e,this.updatePolling()}stopPolling(){this.options.pollInterval=0,this.updatePolling()}applyNextFetchPolicy(e,t){if(t.nextFetchPolicy){let{fetchPolicy:r="cache-first",initialFetchPolicy:i=r}=t;"standby"===r||("function"==typeof t.nextFetchPolicy?t.fetchPolicy=t.nextFetchPolicy.call(t,r,{reason:e,options:t,observable:this,initialFetchPolicy:i}):"variables-changed"===e?t.fetchPolicy=i:t.fetchPolicy=t.nextFetchPolicy)}return t.fetchPolicy}fetch(e,t,r,i){let n=this.options.fetchPolicy;e.context??={};let s=!1,a=e=>new E(r=>{try{return e.subscribe({next(e){s=!0,r.next(e)},error:e=>r.error(e),complete:()=>r.complete()})}finally{s||(f.override=t,this.input.next({kind:"N",source:"newNetworkStatus",value:{resetError:!0},query:u,variables:c,meta:{shouldEmit:3,fetchPolicy:n}}))}}),{observable:o,fromLink:l}=this.queryManager.fetchObservableWithInfo(e,{networkStatus:t,query:r,onCacheHit:()=>{s=!0},fetchQueryOperator:a,observableQuery:this}),{query:u,variables:c}=this,f={abort:()=>{d.unsubscribe()},query:u,variables:c};this.activeOperations.add(f);let h=t==ra.f.refetch||t==ra.f.setVariables,d=(o=o.pipe(i,e1())).pipe(td({next:e=>{"newNetworkStatus"===e.source||"N"===e.kind&&e.value.loading?f.override=t:delete f.override},finalize:()=>this.activeOperations.delete(f)})).subscribe({next:e=>{let t={};h&&"N"===e.kind&&"loading"in e.value&&!e.value.loading&&(h=!1,t.shouldEmit=1),this.input.next({...e,query:u,variables:c,meta:t})}});return{fromLink:l,subscription:d,observable:o}}didWarnCacheOnlyPolling=!1;updatePolling(){if(this.queryManager.ssrMode)return;let{pollingInfo:e,options:{fetchPolicy:t,pollInterval:r}}=this,i=()=>{let{options:e}=this;return!e.pollInterval||!this.hasObservers()||"cache-only"===e.fetchPolicy||"standby"===e.fetchPolicy};if(i()){T.f&&!this.didWarnCacheOnlyPolling&&r&&"cache-only"===t&&(T.f&&b.k.warn(90,R(this.query,"(anonymous)")),this.didWarnCacheOnlyPolling=!0),this.cancelPolling();return}if(e?.interval===r)return;(e||(this.pollingInfo={})).interval=r;let n=()=>{if(i())return this.cancelPolling();this.pollingInfo&&(!tN(this.networkStatus)||this.options.skipPollAttempt?.()?s():this._reobserve({fetchPolicy:"no-cache"===this.options.initialFetchPolicy?"no-cache":"network-only"},{newNetworkStatus:ra.f.poll}).then(s,s))},s=()=>{let e=this.pollingInfo;e&&(clearTimeout(e.timeout),e.timeout=setTimeout(n,e.interval))};s()}cancelPolling(){this.pollingInfo&&(clearTimeout(this.pollingInfo.timeout),delete this.pollingInfo)}reobserve(e){return this._reobserve(e)}_reobserve(e,t){this.isTornDown=!1;let{newNetworkStatus:r,keepLastMissing:i}=t||{};i||(this.lastMissing=void 0),this.queryManager.obsQueries.add(this);let n=r===ra.f.refetch||r===ra.f.poll,s=this.variables,a=this.options.fetchPolicy,o=(0,eM.f)(this.options,e||{});this.variablesUnknown&&="standby"===o.fetchPolicy;let l=n?o:rm(this.options,o),u=this.transformDocument(l.query);this.lastQuery=u,e&&"variables"in e&&(l.variables=this.getVariablesWithDefaults(e.variables)),!n&&(this.updatePolling(),e&&e.variables&&!(0,t_.f)(e.variables,s)&&"standby"!==l.fetchPolicy&&(l.fetchPolicy===a||"function"==typeof l.nextFetchPolicy)&&(this.applyNextFetchPolicy("variables-changed",l),void 0===r&&(r=ra.f.setVariables)));let c=this.networkStatus;r||(r=ra.f.loading,c!==ra.f.loading&&e?.variables&&!(0,t_.f)(e.variables,s)&&(r=ra.f.setVariables),"standby"===l.fetchPolicy&&(r=ra.f.ready)),"standby"===l.fetchPolicy&&this.cancelPolling(),this.resubscribeCache();let{promise:f,operator:h}=rx("standby"===l.fetchPolicy?{data:void 0}:void 0),{subscription:d,observable:p,fromLink:m}=this.fetch(l,r,u,h);n||!m&&this.linkSubscription||(this.linkSubscription&&this.linkSubscription.unsubscribe(),this.linkSubscription=d);let y=Object.assign((0,rd.f)(f.then(e=>rn(this.maskResult(e))).finally(()=>{this.hasObservers()||0!==this.activeOperations.size||this.tearDownQuery()})),{retain:()=>{let e=p.subscribe({}),t=()=>e.unsubscribe();return f.then(t,t),y}});return y}hasObservers(){return this.subject.observed}stop(){this.subject.complete(),this.initializeObservablesQueue(),this.tearDownQuery()}tearDownQuery(){this.isTornDown||(this.resetNotifications(),this.unsubscribeFromCache?.(),this.linkSubscription&&(this.linkSubscription.unsubscribe(),delete this.linkSubscription),this.stopPolling(),this.subscriptions.forEach(e=>e.unsubscribe()),this.subscriptions.clear(),this.queryManager.obsQueries.delete(this),this.isTornDown=!0,this.abortActiveOperations(),this.lastMissing=void 0)}transformDocument(e){return this.queryManager.transform(e)}maskResult(e){let t=this.queryManager.maskOperation({document:this.query,data:e.data,fetchPolicy:this.options.fetchPolicy,cause:this});return t===e.data?e:{...e,data:t}}dirty=!1;notifyTimeout;resetNotifications(){this.notifyTimeout&&(clearTimeout(this.notifyTimeout),this.notifyTimeout=void 0),this.dirty=!1}scheduleNotify(){!this.dirty&&(this.dirty=!0,this.notifyTimeout||(this.notifyTimeout=setTimeout(()=>this.notify(!0),0)))}notify(e=!1){if(!e){let e=this.queryManager.getDocumentInfo(this.query);if(e.hasClientExports||e.hasForcedResolvers)return}let{dirty:t,lastMissing:r}=this,{fetchPolicy:i}=this.options;if(this.resetNotifications(),!t||"cache-only"!==i&&"cache-and-network"!==i&&this.activeOperations.size)return;let n=this.getCacheDiff(),s=this.getCurrentResult();if(!(0,t_.f)(n.result,this.getCacheDiff({optimistic:!1}).result)||!n.complete&&s.networkStatus===ra.f.streaming)return void this.deliverCacheDiff(n);if(n.complete)this.lastMissing=void 0;else if(r&&r.dmCount===rv.get(this.cache)&&(0,t_.f)(r.variables,this.variables)&&(0,t_.f)(r.missing,n.missing?.missing)){if("cache-only"!==i){var a,o;"partial"===s.dataState&&this.deliverCacheDiff(n),T.f&&!this.didWarnOnFeud&&(this.didWarnOnFeud=!0,a=this.query,o=n,T.f&&b.k.warn(92,R(a,"(anonymous)"),o.missing?.missing));return}}else this.didWarnOnFeud=!1,this.lastMissing={variables:this.variables,missing:n.missing?.missing,dmCount:rv.get(this.cache)};this.reobserveCacheFirst()}deliverCacheDiff(e){let t=this.getCurrentResult();this.input.next({kind:"N",value:{data:e.result,dataState:e.dataState,networkStatus:t.networkStatus,loading:t.loading,error:void 0,partial:!e.complete},source:"cache",query:this.query,variables:this.variables,meta:{}})}activeOperations=new Set;pushOperation(e){let t=!1,{query:r,variables:i}=this,n=()=>{this.activeOperations.delete(s)},s={override:e,abort:()=>{t=!0,n()},query:r,variables:i};return this.activeOperations.add(s),{finalize:n,pushNotification:(e,n)=>{t||this.input.next({...e,query:r,variables:i,meta:{...n}})}}}calculateNetworkStatus(e){if(e===ra.f.streaming)return e;let t=Array.from(this.activeOperations.values()).reverse().find(e=>rO(e,this)&&void 0!==e.override);return t?.override??e}abortActiveOperations(){this.activeOperations.forEach(e=>e.abort())}reset(){let e="cache-only"===this.options.fetchPolicy;this.lastMissing=void 0,this.setResult(e?rg:rb,{shouldEmit:e?1:2}),this.abortActiveOperations()}setResult(e,t){this.input.next({source:"setResult",kind:"N",value:e,query:this.query,variables:this.variables,meta:{...t}})}operator=t4(e=>{let t,{query:r,meta:i}=e;if("setResult"===e.source)return{query:r,variables:this.variables,result:e.value,meta:i};if("C"===e.kind)return;let n="resolvedVariables"in e?e.resolvedVariables:void 0;if(e.query!==this.query)return;if(!(0,t_.f)(n,this.variables)){if(!(0,t_.f)(e.variables,this.variables))return;n&&(this.options.variables=n,this.resubscribeCache())}let s=this.variables,a=this.subject.getValue();if("cache"===e.source){if((t=e.value).networkStatus===ra.f.ready&&"partial"===t.dataState&&(!this.options.returnPartialData||a.result.networkStatus===ra.f.error)&&"cache-only"!==this.options.fetchPolicy)return}else if("network"===e.source)this.waitForNetworkResult&&(this.waitForNetworkResult=!1,this.resubscribeCache()),t="E"===e.kind?{...rO(a,e)||n&&(0,t_.f)(n,a.variables)?a.result:{data:void 0,dataState:"empty",partial:!0},error:e.error,networkStatus:ra.f.error,loading:!1}:e.value,"E"===e.kind&&"streaming"===t.dataState&&(t.dataState=rs.get(e.error)??"complete"),t.error&&(i.shouldEmit=1);else if("newNetworkStatus"===e.source){let r=rO(a,e)?a.result:this.getInitialResult(i.fetchPolicy),{resetError:n}=e.value,s=n?void 0:r.error,o=s?ra.f.error:ra.f.ready;t={...r,error:s,networkStatus:o}}return(0,b.k)(t),t.error||delete t.error,t.networkStatus=this.calculateNetworkStatus(t.networkStatus),t.loading=!tN(t.networkStatus),t=this.maskResult(t),void 0!==a.result.data&&t.data!==a.result.data&&(0,t_.f)(t.data,a.result.data)&&(t.data=a.result.data),{query:r,variables:s,result:t,meta:i}});reobserveCacheFirst(){let{fetchPolicy:e,nextFetchPolicy:t}=this.options;"cache-and-network"===e||"network-only"===e?this._reobserve({fetchPolicy:"cache-first",nextFetchPolicy(r,i){return(this.nextFetchPolicy=t,"function"==typeof this.nextFetchPolicy)?this.nextFetchPolicy(r,i):e}},{keepLastMissing:!0}):this._reobserve(void 0,{keepLastMissing:!0})}getVariablesWithDefaults(e){return this.queryManager.getVariables(this.query,e)}}function rS(e){T.f&&e&&T.f&&b.k.debug(91,e)}function rO(e,t){return!!(e&&t&&e.query===t.query&&(0,t_.f)(e.variables,t.variables))}function rx(e){let t=e,r,i;return{promise:new Promise((e,t)=>{r=e,i=t}),operator:td({next(e){if("E"===e.kind)return i(e.error);"N"!==e.kind||"newNetworkStatus"===e.source||e.value.loading||(t=e.value)},finalize:()=>{if(t)r(t);else{let e="The operation was aborted.",t="AbortError";i("u">typeof DOMException?new DOMException(e,t):Object.assign(Error(e),{name:t}))}}})}}e.s(["L",0,rk,"y",0,rS],57828);let rP={},rE=new WeakMap;class rC{cache;queryManager;id;observableQuery;incremental;constructor(e,t){this.cache=e.cache;let r=(rE.get(e)||0)+1;rE.set(e,r),this.id=r+"",this.observableQuery=t,this.queryManager=e}get hasNext(){return!!this.incremental&&this.incremental.hasNext}get incrementalHandler(){return this.queryManager.incrementalHandler}maybeHandleIncrementalResult(e,t,r){return this.incrementalHandler.isIncrementalResult(t)?(this.incremental||=this.incrementalHandler.startRequest({query:r}),this.incremental.handle(e,t)):t}markQueryResult(e,{document:t,variables:r,errorPolicy:i,cacheWriteBehavior:n,returnPartialData:s,fetchPolicy:a,networkStatus:o,prunePendingDeferFragments:l}){let u={query:t,variables:r,optimistic:!0};this.observableQuery?.resetNotifications();let c=0===n,f=c?void 0:this.getDiff({...u,returnPartialData:"none"!==i||!this.incrementalHandler.extractErrors(e)?.length},this.getIncrementalInfo({prune:l})),h=this.maybeHandleIncrementalResult(f?.result,e,t),d={...h,dataState:null==h.data?"empty":"complete"};return this.incremental?.isDeferPending()&&(d.dataState="streaming"),c||!r_(d,i)||this.cache.batch({onWatchUpdated:(e,t)=>{e.watcher===this.observableQuery&&(e.lastOwnDiff=t)},update:e=>{var i,c,f;e.writeQuery({query:t,data:d.data,variables:r,overwrite:1===n,extensions:d.extensions,[t2.q]:{isDeferPending:this.incremental?.isDeferPending}});let{dataState:h,result:p}=this.getDiff({...u,returnPartialData:s&&("network-only"!==a||o===ra.f.refetch)},this.getIncrementalInfo({prune:l}));"complete"===h||"streaming"===h||s&&"partial"===h?d={...d,data:p,dataState:h}:T.f&&!this.hasNext&&(i=t,c=d.data,f=e.diff({...u,returnPartialData:!0}),T.f&&b.k.warn(93,R(i,"(anonymous)"),f.missing?.missing,c,f.result))}}),d}getIncrementalInfo({prune:e}){let t={streamInfo:this.incremental?.streamInfo};if(e&&this.incremental?.tracksPending){let e=this.incremental.isDeferPending;e()&&(t.isDeferPending||=(t,r)=>e(t,r)),this.incremental.markStreamedPendingForTruncation?.()}return t}getDiff(e,t){return rp(this.cache.diff({...e,[t2.q]:t}))}markMutationResult(e,t,r=this.cache){let i=[],n=0===t.cacheWriteBehavior,s=this.maybeHandleIncrementalResult(n?void 0:r.diff({id:"ROOT_MUTATION",query:this.queryManager.getDocumentInfo(t.document).asQuery,variables:t.variables,optimistic:!1,returnPartialData:!0}).result,e,t.document);if(s={...s,data:s.data?t8(s.data,t.document,r):s.data},"ignore"===t.errorPolicy&&(s.errors=[]),t7(s)&&"none"===t.errorPolicy)return Promise.resolve(s);let a=()=>({...s,dataState:this.hasNext?"streaming":"complete"});if(!n&&r_(s,t.errorPolicy)){i.push({result:s.data,dataId:"ROOT_MUTATION",query:t.document,variables:t.variables,extensions:s.extensions,[t2.q]:{isDeferPending:this.incremental?.isDeferPending}});let{updateQueries:e}=t;e&&this.queryManager.getObservableQueries("all").forEach(t=>{let r=t&&t.queryName;if(!r||!Object.hasOwnProperty.call(e,r))return;let n=e[r],{query:s,variables:o}=t,{result:l,complete:u}=t.getCacheDiff({optimistic:!1});if(u&&l){let e=n(l,{mutationResult:a(),queryName:s&&R(s)||void 0,queryVariables:o});e&&i.push({result:e,dataId:"ROOT_QUERY",query:s,variables:o})}})}let o=t.refetchQueries;if("function"==typeof o&&(o=o(a())),i.length>0||(o||"").length>0||t.update||t.onQueryUpdated||t.removeOptimistic){let e=[];if(this.queryManager.refetchQueries({updateCache:e=>{n||i.forEach(t=>e.write(t));let{update:r}=t;if(!n){let r=e.diff({id:"ROOT_MUTATION",query:this.queryManager.getDocumentInfo(t.document).asQuery,variables:t.variables,optimistic:!1,returnPartialData:!0});r.complete&&r.result&&(s.data=r.result)}r&&!this.hasNext&&r(e,s,{context:t.context,variables:t.variables}),n||t.keepRootFields||this.hasNext||e.modify({id:"ROOT_MUTATION",fields:(e,{fieldName:t,DELETE:r})=>"__typename"===t?e:r})},include:o,optimistic:!1,removeOptimistic:t.removeOptimistic,onQueryUpdated:t.onQueryUpdated||null}).forEach(t=>e.push(t)),t.awaitRefetchQueries||t.onQueryUpdated)return Promise.all(e).then(()=>s)}return Promise.resolve(s)}markMutationOptimistic(e,t){let r="function"==typeof e?e(t.variables,{IGNORE:rP}):e;return r!==rP&&(this.cache.recordOptimisticTransaction(e=>{try{this.markMutationResult({data:r},t,e)}catch(e){b.k.error(e)}},this.id),!0)}markSubscriptionResult(e,{document:t,variables:r,errorPolicy:i,cacheWriteBehavior:n}){if(0!==n){if(r_(e,i)){this.cache.write({query:t,result:e.data,dataId:"ROOT_SUBSCRIPTION",variables:r,extensions:e.extensions});let i=this.cache.diff({query:this.queryManager.getDocumentInfo(t).asQuery,id:"ROOT_SUBSCRIPTION",variables:r,optimistic:!1,returnPartialData:!0});if(i.complete)return i.result}this.queryManager.broadcastQueries()}else if(null!=e.data&&this.cache.configuresScalars()&&r_(e,i))return t8(e.data,t,this.cache);return e.data}}function r_(e,t="none"){let r=!t7(e);return!r&&("ignore"===t||"all"===t)&&e.data&&(r=!0),r}class rT{defaultOptions;client;clientOptions;assumeImmutableResults;documentTransform;ssrMode;defaultContext;dataMasking;incrementalHandler;localState;queryDeduplication;prioritizeCacheValues=!1;onBroadcast;mutationStore;obsQueries=new Set;fetchCancelFns=new Map;constructor(e){let t=new eR(e=>this.cache.transformDocument(e),{cache:!1});this.client=e.client,this.defaultOptions=e.defaultOptions,this.queryDeduplication=e.queryDeduplication,this.clientOptions=e.clientOptions,this.ssrMode=e.ssrMode,this.assumeImmutableResults=e.assumeImmutableResults,this.dataMasking=e.dataMasking,this.localState=e.localState,this.incrementalHandler=e.incrementalHandler;let r=e.documentTransform;this.documentTransform=r?t.concat(r).concat(t):t,this.incrementalHandler.documentTransform&&(this.documentTransform=this.documentTransform.concat(this.incrementalHandler.documentTransform)),this.defaultContext=e.defaultContext||{},(this.onBroadcast=e.onBroadcast)&&(this.mutationStore={})}get link(){return this.client.link}get cache(){return this.client.cache}stop(){this.obsQueries.forEach(e=>e.stop()),this.cancelPendingFetches((0,b.b)(94))}cancelPendingFetches(e){this.fetchCancelFns.forEach(t=>t(e)),this.fetchCancelFns.clear()}async mutate({mutation:e,variables:t,optimisticResponse:r,updateQueries:i,refetchQueries:n=[],awaitRefetchQueries:s=!1,update:a,onQueryUpdated:o,fetchPolicy:l,errorPolicy:c,keepRootFields:f,context:h}){let d=new rC(this);e=this.cache.transformForLink(this.transform(e));let{hasClientExports:p}=this.getDocumentInfo(e);t=this.getVariables(e,t),p&&(T.f&&(0,b.k)(this.localState,95,R(e,"(anonymous)")),t=await this.localState.getExportedVariables({client:this.client,document:e,variables:t,context:h}));let m=this.mutationStore&&(this.mutationStore[d.id]={mutation:e,variables:this.cache.serializeVariables(e,t),loading:!0,error:null}),y=r&&d.markMutationOptimistic(r,{document:e,variables:t,cacheWriteBehavior:2*("no-cache"!==l),errorPolicy:c,context:h,updateQueries:i,update:a,keepRootFields:f});return this.broadcastQueries(),new Promise((p,b)=>{let g={};return this.getObservableFromLink(e,{...h,optimisticResponse:y?r:void 0},t,l,{},!1).observable.pipe(rF(),tt(r=>{let u={...r};return to(d.markMutationResult(u,{document:e,variables:t,cacheWriteBehavior:2*("no-cache"!==l),errorPolicy:c,context:h,update:a,updateQueries:i,awaitRefetchQueries:s,refetchQueries:n,removeOptimistic:y?d.id:void 0,onQueryUpdated:o,keepRootFields:f}))})).pipe(u(e=>{if(t7(e)&&"none"===c)throw new tg.f(rD(e));return m&&(m.loading=!1,m.error=null),e})).subscribe({next:t=>{if(this.broadcastQueries(),!d.hasNext){let r={data:this.maskOperation({document:e,data:t.data,fetchPolicy:l,cause:g})};t7(t)&&(r.error=new tg.f(t)),Object.keys(t.extensions||{}).length&&(r.extensions=t.extensions),p(r)}},error:e=>(m&&(m.loading=!1,m.error=e),y&&this.cache.removeOptimistic(d.id),this.broadcastQueries(),"ignore"===c)?p({data:void 0}):"all"===c?p({data:void 0,error:e}):void b(e)})})}fetchQuery(e,t){return Y(e.query,a.E.QUERY),(async()=>{var r,i,n;return r=this.fetchObservableWithInfo(e,{networkStatus:t}).observable.pipe(t4(e=>{switch(e.kind){case"E":throw e.error;case"N":if("newNetworkStatus"!==e.source)return rn(e.value)}})),n="object"==typeof(i={defaultValue:{data:void 0}}),new Promise(function(e,t){var s,a=!1;r.subscribe({next:function(e){s=e,a=!0},error:t,complete:function(){a?e(s):n?e(i.defaultValue):t(new tc)}})})})()}transform(e){return this.documentTransform.transformDocument(e)}transformCache=new K(j["queryManager.getDocumentInfo"]||2e3);getDocumentInfo(e){let{transformCache:t}=this;if(!t.has(e)){let r,i=Z(e),n={hasClientExports:y(["client","export"],e,!0),hasForcedResolvers:(r=!1,m(e,{Directive:{enter(e){if("client"===e.name.value&&e.arguments&&(r=e.arguments.some(e=>"always"===e.name.value&&"BooleanValue"===e.value.kind&&!0===e.value.value)))return p}}}),r),hasNonreactiveDirective:y(["nonreactive"],e),hasIncrementalDirective:y(["defer"],e),nonReactiveQuery:m(e,{FragmentSpread:e=>{if(!e.directives?.some(e=>"unmask"===e.name.value))return{...e,directives:[...e.directives||[],{kind:h.DIRECTIVE,name:{kind:h.NAME,value:"nonreactive"}}]}}}),clientQuery:y(["client"],e)?e:null,serverQuery:function(e,t){var r,i;let n,s;Y(t);let a=ri(""),o=ri(""),l=e=>{for(let t=0,r;t<e.length&&(r=e[t]);++t)if(!rt(r)){if(r.kind===h.OPERATION_DEFINITION)return a(r.name&&r.name.value);if(r.kind===h.FRAGMENT_DEFINITION)return o(r.name.value)}return b.k.error(16),null},u=0;for(let e=t.definitions.length-1;e>=0;--e)t.definitions[e].kind===h.OPERATION_DEFINITION&&++u;let c=(r=e,n=new Map,s=new Map,r.forEach(e=>{e&&(e.name?n.set(e.name,e):e.test&&s.set(e.test,e))}),e=>{let t=n.get(e.name.value);return!t&&s.size&&s.forEach((r,i)=>{i(e)&&(t=r)}),t}),f=e=>rr(e)&&e.map(c).some(e=>e&&e.remove),d=new Map,p=!1,y={enter(e){if(f(e.directives))return p=!0,null}},g=m(t,{Field:y,InlineFragment:y,VariableDefinition:{enter:()=>!1},Variable:{enter(e,t,r,i,n){let s=l(n);s&&s.variables.add(e.name.value)}},FragmentSpread:{enter(e,t,r,i,n){if(f(e.directives))return p=!0,null;let s=l(n);s&&s.fragmentSpreads.add(e.name.value)}},FragmentDefinition:{enter(e,t,r,i){d.set(JSON.stringify(i),e)},leave:(e,t,r,i)=>e===d.get(JSON.stringify(i))?e:u>0&&e.selectionSet.selections.every(e=>e.kind===h.FIELD&&"__typename"===e.name.value)?(o(e.name.value).removed=!0,p=!0,null):void 0},Directive:{leave(e){if(c(e))return p=!0,null}}});if(!p)return t;let v=e=>(!e.transitiveVars&&(e.transitiveVars=new Set(e.variables),e.removed||e.fragmentSpreads.forEach(t=>{v(o(t)).transitiveVars.forEach(t=>{e.transitiveVars.add(t)})})),e),w=new Set;g.definitions.forEach(e=>{e.kind===h.OPERATION_DEFINITION?v(a(e.name&&e.name.value)).fragmentSpreads.forEach(e=>{w.add(e)}):e.kind!==h.FRAGMENT_DEFINITION||0!==u||o(e.name.value).removed||w.add(e.name.value)}),w.forEach(e=>{v(o(e)).fragmentSpreads.forEach(e=>{w.add(e)})});let k={enter(e){let t;if(t=e.name.value,!w.has(t)||o(t).removed)return null}};return!function e(t,r){return!t||t.selectionSet.selections.every(t=>t.kind===h.FRAGMENT_SPREAD&&e(r[t.name.value],r))}(Z(i=m(g,{FragmentSpread:k,FragmentDefinition:k,OperationDefinition:{leave(e){if(e.variableDefinitions){let t=v(a(e.name&&e.name.value)).transitiveVars;if(t.size<e.variableDefinitions.length)return{...e,variableDefinitions:e.variableDefinitions.filter(e=>t.has(e.variable.name.value))}}}}}))||re(i),tT(tF(i)))?i:null}([{name:"client",remove:!0},{name:"connection"},{name:"nonreactive"},{name:"unmask"}],e),operationType:i?.operation,defaultVars:t9(i),asQuery:{...e,definitions:e.definitions.map(e=>"OperationDefinition"===e.kind&&"query"!==e.operation?{...e,operation:"query"}:e)}};t.set(e,n)}let r=t.get(e);if(r.violation)throw r.violation;return r}getVariables(e,t){let r=this.getDocumentInfo(e).defaultVars,i=Object.entries(t??{}).map(([e,t])=>[e,void 0===t?r[e]:t]);return{...r,...Object.fromEntries(i)}}watchQuery(e){Y(e.query,a.E.QUERY);let t=this.transform(e.query);return void 0===(e={...e,variables:this.getVariables(t,e.variables)}).notifyOnNetworkStatusChange&&(e.notifyOnNetworkStatusChange=!0),new rk({queryManager:this,options:e,transformedQuery:t})}query(e){let t=this.transform(e.query);return this.fetchQuery({...e,query:t}).then(r=>({...r,data:this.maskOperation({document:t,data:r?.data,fetchPolicy:e.fetchPolicy})}))}clearStore(e={discardWatches:!0}){return this.cancelPendingFetches((0,b.b)(96)),this.obsQueries.forEach(e=>{e.reset()}),this.mutationStore&&(this.mutationStore={}),this.cache.reset(e)}getObservableQueries(e="active"){let t=new Set,r=new Map,i=new Map,n=new Set;return Array.isArray(e)&&e.forEach(e=>{if("string"==typeof e)r.set(e,e),i.set(e,!1);else if((0,t5.f)(e)&&"Document"===e.kind&&Array.isArray(e.definitions)){let t=tJ(this.transform(e));r.set(t,R(e)),i.set(t,!1)}else(0,t5.f)(e)&&e.query&&n.add(e)}),this.obsQueries.forEach(r=>{let n=tJ(this.transform(r.options.query));if("all"===e)return void t.add(r);let{queryName:s,options:{fetchPolicy:a}}=r;("active"!==e||"standby"!==a)&&("active"===e||s&&i.has(s)||n&&i.has(n))&&(t.add(r),s&&i.set(s,!0),n&&i.set(n,!0))}),n.size&&n.forEach(e=>{let r=new rk({queryManager:this,options:{...(0,e3.f)(this.defaultOptions.watchQuery,e),fetchPolicy:"network-only"}});t.add(r)}),T.f&&i.size&&i.forEach((e,t)=>{if(!e){let e=r.get(t);e?T.f&&b.k.warn(97,e):T.f&&b.k.warn(98)}}),t}refetchObservableQueries(e=!1){let t=[];return this.getObservableQueries(e?"all":"active").forEach(r=>{let{fetchPolicy:i}=r.options;(e||"standby"!==i)&&"cache-only"!==i&&t.push(r.refetch())}),this.broadcastQueries(),Promise.all(t)}startGraphQLSubscription(e){let t,{query:r,variables:i}=e,{fetchPolicy:n="cache-first",errorPolicy:s="none",context:o={},extensions:l={}}=e;return Y(r,a.E.SUBSCRIPTION),r=this.transform(r),i=this.getVariables(r,i),T.f&&(0,b.k)(!this.getDocumentInfo(r).hasClientExports||this.localState,99,R(r,"(anonymous)")),Object.assign((this.getDocumentInfo(r).hasClientExports?to(this.localState.getExportedVariables({client:this.client,document:r,variables:i,context:o})):tf(i)).pipe(tt(e=>{let{observable:i,restart:a}=this.getObservableFromLink(r,o,e,n,l),c=new rC(this);return t=a,i.pipe(u(t=>{let i=c.markSubscriptionResult(t,{document:r,variables:e,errorPolicy:s,cacheWriteBehavior:2*("no-cache"!==n)}),a={data:i??void 0};return t7(t)?a.error=new tg.f({...t,data:i}):tx(t)&&(a.error=t.extensions[tO],delete t.extensions[tO]),t.extensions&&Object.keys(t.extensions).length&&(a.extensions=t.extensions),a.error&&"none"===s&&(a.data=void 0),"ignore"===s&&delete a.error,a}),e6(e=>"ignore"===s?tf({data:void 0}):tf({data:void 0,error:e})),tu(e=>!!(e.data||e.error)))})),{restart:()=>t?.()})}broadcastQueries(){this.onBroadcast&&this.onBroadcast(),this.obsQueries.forEach(e=>e.notify())}inFlightLinkObservables=new q(!1);getObservableFromLink(e,t,r,i,n,s=t?.queryDeduplication??this.queryDeduplication){let l={},{serverQuery:u,clientQuery:c,operationType:f,hasIncrementalDirective:h}=this.getDocumentInfo(e),d=R(e),p={client:this.client};if(r=this.cache.serializeVariables(e,r),u){let{inFlightLinkObservables:e,link:i}=this;try{let c=this.incrementalHandler.prepareRequest({query:u,variables:r,context:{...this.defaultContext,...t,queryDeduplication:s},extensions:n});function m(e){return new E(t=>{function r(){return e.subscribe({next:t.next.bind(t),complete:t.complete.bind(t),error:t.error.bind(t)})}let i=r();return l.restart||=()=>{i.unsubscribe(),i=r()},()=>{i.unsubscribe(),l.restart=void 0}})}if(t=c.context,s){var y;let t=tJ(u),n=tm(r);(l=e.lookup(t,n)).observable||(l.observable=ee(i,c,p).pipe(m,(y=()=>{e.peek(t,n)===l&&e.remove(t,n)},(0,o.f)(function(e,t){try{e.subscribe(t)}finally{t.add(y)}})),f===a.E.SUBSCRIPTION?e1():e2({refCount:!0})))}else l.observable=ee(i,c,p).pipe(m)}catch(e){l.observable=e5(()=>e)}}else l.observable=tf({data:{}});if(c){let{operation:n}=Z(e);T.f&&(0,b.k)(this.localState,100,n[0].toUpperCase()+n.slice(1),d??"(anonymous)"),(0,b.k)(!h,101,n[0].toUpperCase()+n.slice(1),d??"(anonymous)"),l.observable=l.observable.pipe(tt(e=>to(this.localState.execute({client:this.client,document:c,remoteResult:e,context:t,variables:r,fetchPolicy:i}))))}return{restart:()=>l.restart?.(),observable:l.observable.pipe(e6(e=>{throw tC(e=tP(e)),e}))}}getResultsFromLink(e,{queryInfo:t,cacheWriteBehavior:r,observableQuery:i,exposeExtensions:n,prunePendingDeferFragments:s}){let{errorPolicy:a}=e,o=this.cache.transformForLink(e.query);return this.getObservableFromLink(o,e.context,e.variables,e.fetchPolicy).observable.pipe(u(l=>{let{dataState:u,...c}=t.markQueryResult(l,{...e,document:o,cacheWriteBehavior:r,returnPartialData:e.returnPartialData,prunePendingDeferFragments:s}),f=t7(c);if(f&&"none"===a){i?.resetNotifications();let e=new tg.f(rD(c));throw rs.set(e,u),e}let h="complete"!==u,d={data:c.data,...t.hasNext?{loading:!0,networkStatus:ra.f.streaming,dataState:u,partial:h}:{dataState:u,loading:!1,networkStatus:ra.f.ready,partial:h}};return n&&"extensions"in c&&(d[t2.K]=c.extensions),f&&"ignore"!==a&&(d.error=new tg.f(rD(c)),d.networkStatus!==ra.f.streaming&&(d.networkStatus=ra.f.error)),d}),e6(e=>{if("none"===a)throw i?.resetNotifications(),e;let t={data:void 0,dataState:"empty",loading:!1,networkStatus:ra.f.ready,partial:!0};return"ignore"!==a&&(t.error=e,t.networkStatus=ra.f.error),tf(t)}))}fetchObservableWithInfo(e,{networkStatus:t=ra.f.loading,query:r=e.query,fetchQueryOperator:i=e=>e,onCacheHit:n=()=>{},observableQuery:s,exposeExtensions:a}){let o,l,u=this.getVariables(r,e.variables),{fetchPolicy:c="cache-first",errorPolicy:f="none",returnPartialData:h=!1,notifyOnNetworkStatusChange:d=!0,context:p={}}=e;this.prioritizeCacheValues&&("network-only"===c||"cache-and-network"===c)&&(c="cache-first");let m=Object.assign({},e,{query:r,variables:u,fetchPolicy:c,errorPolicy:f,returnPartialData:h,networkStatus:t,notifyOnNetworkStatusChange:d,context:p}),y=new rC(this,s),g=r=>{m.variables=r;let o="no-cache"===c?0:t===ra.f.refetch&&"merge"!==m.refetchWritePolicy?1:2,l=this.fetchQueryByPolicy(m,{queryInfo:y,cacheWriteBehavior:o,onCacheHit:n,observableQuery:s,exposeExtensions:a});return l.observable=l.observable.pipe(i),"standby"!==m.fetchPolicy&&s?.applyNextFetchPolicy("after-fetch",e),l},v=()=>{this.fetchCancelFns.delete(y.id)};this.fetchCancelFns.set(y.id,e=>{w.next({kind:"E",error:e,source:"network"})});let w=new eV;if(this.getDocumentInfo(m.query).hasClientExports)T.f&&(0,b.k)(this.localState,102,R(m.query,"(anonymous)")),o=to(this.localState.getExportedVariables({client:this.client,document:m.query,variables:m.variables,context:m.context})).pipe(tt(e=>g(e).observable)),l=!0;else{let e=g(m.variables);l=e.fromLink,o=e.observable}return{observable:new E(e=>{e.add(v),o.subscribe(e),w.subscribe(e)}).pipe(e1()),fromLink:l}}refetchQueries({updateCache:e,include:t,optimistic:r=!1,removeOptimistic:i=r?(0,t6.f)("refetchQueries"):void 0,onQueryUpdated:n}){let s=new Map;t&&this.getObservableQueries(t).forEach(e=>{if("cache-only"===e.options.fetchPolicy||e.variablesUnknown)return;let t=e.getCurrentResult();s.set(e,{oq:e,lastDiff:{result:t?.data,complete:!t?.partial}})});let a=new Map;if(e){let t=new Set;this.cache.batch({update:e,optimistic:r&&i||!1,removeOptimistic:i,onWatchUpdated(e,r,i){let o=e.watcher;if(o instanceof rk&&!t.has(o)){if(t.add(o),n){s.delete(o);let e=n(o,r,i);return!0===e&&(e=o.refetch().retain()),!1!==e&&a.set(o,e),e}null!==n&&"cache-only"!==o.options.fetchPolicy&&s.set(o,{oq:o,lastDiff:i,diff:r})}}})}return s.size&&s.forEach(({oq:e,lastDiff:t,diff:r})=>{let i;n&&(r||(r=e.getCacheDiff()),i=n(e,r,t)),n&&!0!==i||(i=e.refetch().retain()),!1!==i&&a.set(e,i)}),i&&this.cache.removeOptimistic(i),a}noCacheWarningsByCause=new WeakSet;maskOperation(e){var t;let r,{document:i,data:n}=e;if(T.f){let t,{fetchPolicy:r,cause:n={}}=e,s=Z(i)?.operation;this.dataMasking&&"no-cache"===r&&(t=!0,m(i,{FragmentSpread:e=>{if(!(t=!!e.directives&&e.directives.some(e=>"unmask"===e.name.value)))return p}}),!t)&&!this.noCacheWarningsByCause.has(n)&&(this.noCacheWarningsByCause.add(n),T.f&&b.k.warn(103,R(i,`Unnamed ${s??"operation"}`)))}return this.dataMasking?(t=this.cache,r=Z(i),((0,b.k)(r,45),null==n)?n:tI(n,r.selectionSet,{operationType:r.operation,operationName:r.name?.value,fragmentMap:tT(tF(i)),cache:t,mutableTargets:new WeakMap,knownChanged:new WeakSet})):n}maskFragment(e){var t,r;let i,n,{data:s,fragment:a,fragmentName:o}=e;return this.dataMasking?(t=this.cache,r=o,i=a.definitions.filter(e=>e.kind===h.FRAGMENT_DEFINITION),void 0===r&&((0,b.k)(1===i.length,43,i.length),r=i[0].name.value),n=i.find(e=>e.name.value===r),((0,b.k)(!!n,44,r),null==s||(0,t_.f)(s,{}))?s:tI(s,n.selectionSet,{operationType:"fragment",operationName:n.name.value,fragmentMap:tT(tF(a)),cache:t,mutableTargets:new WeakMap,knownChanged:new WeakSet})):s}fetchQueryByPolicy({query:e,variables:t,fetchPolicy:r,errorPolicy:i,returnPartialData:n,context:s,networkStatus:a},{cacheWriteBehavior:c,onCacheHit:f,queryInfo:h,observableQuery:d,exposeExtensions:p}){let m=()=>h.getDiff({query:e,variables:t,returnPartialData:!0,optimistic:!0}),y=(a,o)=>{let l=a.result;T.f&&!n&&null!==l&&rS(a.missing);let u=(e,t=a.dataState)=>(a.complete||n||(e=void 0,t="empty"),{data:e,dataState:t,loading:!tN(o),networkStatus:o,partial:!a.complete}),c=e=>tf({kind:"N",value:u(e),resolvedVariables:t,source:"cache"});return(a.complete||n)&&this.getDocumentInfo(e).hasForcedResolvers?(T.f&&(0,b.k)(this.localState,104,R(e,"(anonymous)")),f(),to(this.localState.execute({client:this.client,document:e,remoteResult:l?{data:l}:void 0,context:s,variables:t,onlyRunForcedResolvers:!0,returnPartialData:!0,fetchPolicy:r}).then(e=>({kind:"N",value:u(e.data||void 0,a.complete?"complete":e.data?"partial":"empty"),resolvedVariables:t,source:"cache"})))):c("none"===i&&o===ra.f.refetch&&a.missing?void 0:l||void 0)},g=({prunePendingDeferFragments:f=!0}={})=>this.getResultsFromLink({query:e,variables:t,context:s,fetchPolicy:r,errorPolicy:i,returnPartialData:n,networkStatus:a},{cacheWriteBehavior:c,queryInfo:h,observableQuery:d,exposeExtensions:p,prunePendingDeferFragments:f}).pipe(rF(),(0,o.f)(function(e,t){e.subscribe((0,l.f)(t,function(e){t.next(th.createNext(e))},function(){t.next(th.createComplete()),t.complete()},function(e){t.next(th.createError(e)),t.complete()}))}),u(e=>({...e,resolvedVariables:t,source:"network"})));switch(r){default:case"cache-first":{let e=m();if(e.complete)return{fromLink:!1,observable:y(e,ra.f.ready)};if(n)return{fromLink:!0,observable:tl(y(e,ra.f.loading),g())};return{fromLink:!0,observable:g()}}case"cache-and-network":{let e=m();if(e.complete||n)return{fromLink:!0,observable:tl(y(e,ra.f.loading),g({prunePendingDeferFragments:!1}))};return{fromLink:!0,observable:g()}}case"cache-only":return{fromLink:!1,observable:tl(y(m(),ra.f.ready))};case"network-only":return{fromLink:!0,observable:g({prunePendingDeferFragments:a!==ra.f.refetch})};case"no-cache":return{fromLink:!0,observable:g().pipe(u(t=>("N"===t.kind&&null!=t.value.data&&this.cache.configuresScalars()&&(t.value.data=t8(t.value.data,e,this.cache)),t)))};case"standby":return{fromLink:!1,observable:_}}}}function rF(){let e=!1;return td({next(){e=!0},complete(){(0,b.k)(e,105)}})}function rD(e){if(e.extensions?.[t2.j]==null)return e;let{extensions:{[t2.j]:t,...r},...i}=e;return Object.keys(r).length>0&&(i.extensions=r),i}let rj=!1;class rR{link;cache;disableNetworkFetches;set prioritizeCacheValues(e){this.queryManager.prioritizeCacheValues=e}get prioritizeCacheValues(){return this.queryManager.prioritizeCacheValues}version;queryDeduplication;defaultOptions;devtoolsConfig;refetchEventManager;queryManager;devToolsHookCb;resetStoreCallbacks=[];clearStoreCallbacks=[];constructor(e){T.f&&((0,b.k)(e.cache,71),(0,b.k)(e.link,72));let{cache:t,documentTransform:r,ssrMode:i=!1,ssrForceFetchDelay:n=0,queryDeduplication:s=!0,defaultOptions:a,defaultContext:o,assumeImmutableResults:l=t.assumeImmutableResults,localState:u,devtools:c,dataMasking:f,link:h,incrementalHandler:d=new g,experiments:p=[],refetchEventManager:m}=e;this.link=h,this.cache=t,this.queryDeduplication=s,this.defaultOptions=a||{},this.devtoolsConfig={...c,enabled:c?.enabled??T.f},this.watchQuery=this.watchQuery.bind(this),this.query=this.query.bind(this),this.mutate=this.mutate.bind(this),this.watchFragment=this.watchFragment.bind(this),this.resetStore=this.resetStore.bind(this),this.reFetchObservableQueries=this.refetchObservableQueries=this.refetchObservableQueries.bind(this),this.version=e7.U,this.queryManager=new rT({client:this,defaultOptions:this.defaultOptions,defaultContext:o,documentTransform:r,queryDeduplication:s,ssrMode:i,dataMasking:!!f,clientOptions:e,incrementalHandler:d,assumeImmutableResults:l,onBroadcast:this.devtoolsConfig.enabled?()=>{this.devToolsHookCb&&this.devToolsHookCb()}:void 0,localState:u}),this.prioritizeCacheValues=i||n>0,n&&setTimeout(()=>{this.prioritizeCacheValues=!1},n),this.devtoolsConfig.enabled&&this.connectToDevTools(),p.forEach(t=>t.call(this,e)),this.refetchEventManager=m,this.refetchEventManager?.connect(this)}connectToDevTools(){if("u"<typeof window)return;let e=window,t=Symbol.for("apollo.devtools");if((e[t]=e[t]||[]).push(this),e.__APOLLO_CLIENT__=this,!rj&&T.f){let e;rj=!0;let t=window,r=t.navigator.userAgent;"string"==typeof r&&(r.indexOf("Chrome/")>-1?e="https://chrome.google.com/webstore/detail/apollo-client-developer-t/jdkknkkbebbapilgoeccciglkfbmbnfm":r.indexOf("Firefox/")>-1&&(e="https://addons.mozilla.org/en-US/firefox/addon/apollo-developer-tools/")),t.document&&t.top===t.self&&/^(https?|file):$/.test(t.location.protocol)&&e&&setTimeout(()=>{!t.__APOLLO_DEVTOOLS_GLOBAL_HOOK__&&T.f&&b.k.log("Download the Apollo DevTools for a better development experience: %s",e)},1e4)}}get documentTransform(){return this.queryManager.documentTransform}get localState(){return this.queryManager.localState}set localState(e){this.queryManager.localState=e}stop(){this.queryManager.stop(),this.refetchEventManager?.disconnect(this)}watchQuery(e){let{refetchOn:t}=e;if(this.defaultOptions.watchQuery){let r,i=this.defaultOptions.watchQuery.refetchOn;t&&"object"==typeof t&&("object"==typeof i?r={...i,...t}:null!=i&&(r=e=>{let r=t[e.source]??i;return"function"==typeof r?r(e):r})),e=(0,e3.f)(this.defaultOptions.watchQuery,e),r&&(e.refetchOn=r)}if(T.f){let{query:r}=e,{refetchEventManager:i}=this;if(t){let e=R(r,"(anonymous)");i?"object"==typeof t&&Object.keys(t).forEach(t=>{!i.hasSource(t)&&T.f&&b.k.warn(74,t,e)}):T.f&&b.k.warn(73,e)}}return this.queryManager.watchQuery(e)}query=e=>(this.defaultOptions.query&&(e=(0,e3.f)(this.defaultOptions.query,e)),T.f&&((0,b.k)("cache-and-network"!==e.fetchPolicy,75),(0,b.k)("standby"!==e.fetchPolicy,76),(0,b.k)(e.query,77),(0,b.k)("Document"===e.query.kind,78),(0,b.k)(!e.returnPartialData,79),(0,b.k)(!e.pollInterval,80),(0,b.k)(!e.notifyOnNetworkStatusChange,81)),this.queryManager.query(e));mutate=e=>{let t=(0,e3.f)((0,eM.f)({fetchPolicy:"network-only",errorPolicy:"none"},this.defaultOptions.mutate),e);return T.f&&((0,b.k)(t.mutation,82),(0,b.k)("network-only"===t.fetchPolicy||"no-cache"===t.fetchPolicy,83)),Y(t.mutation,a.E.MUTATION),this.queryManager.mutate(t)};subscribe(e){let t={},r=this.queryManager.startGraphQLSubscription(e);return Object.assign(r.pipe(u(r=>({...r,data:this.queryManager.maskOperation({document:e.query,data:r.data,fetchPolicy:e.fetchPolicy,cause:t})}))),{restart:r.restart})}readQuery(e,t=!!e.optimistic){return this.cache.readQuery({...e,query:this.transform(e.query)},t)}watchFragment(e){let t=this.queryManager.dataMasking,r=this.cache.watchFragment({...e,fragment:this.transform(e.fragment,t)});return T.f?e4(r,Symbol.for("apollo.transform.dev.mask"),t=>({...t,data:this.queryManager.maskFragment({...e,data:t.data})})):r}readFragment(e,t=!!e.optimistic){return this.cache.readFragment({...e,fragment:this.transform(e.fragment)},t)}writeQuery(e){let t=this.cache.writeQuery(e);return!1!==e.broadcast&&this.queryManager.broadcastQueries(),t}writeFragment(e){let t=this.cache.writeFragment(e);return!1!==e.broadcast&&this.queryManager.broadcastQueries(),t}__actionHookForDevTools(e){this.devToolsHookCb=e}__requestRaw(e){return ee(this.link,e,{client:this})}resetStore(){return Promise.resolve().then(()=>this.queryManager.clearStore({discardWatches:!1})).then(()=>Promise.all(this.resetStoreCallbacks.map(e=>e()))).then(()=>this.refetchObservableQueries())}clearStore(){return Promise.resolve().then(()=>this.queryManager.clearStore({discardWatches:!0})).then(()=>Promise.all(this.clearStoreCallbacks.map(e=>e())))}onResetStore(e){return this.resetStoreCallbacks.push(e),()=>{this.resetStoreCallbacks=this.resetStoreCallbacks.filter(t=>t!==e)}}onClearStore(e){return this.clearStoreCallbacks.push(e),()=>{this.clearStoreCallbacks=this.clearStoreCallbacks.filter(t=>t!==e)}}reFetchObservableQueries;refetchObservableQueries(e){return this.queryManager.refetchObservableQueries(e)}refetchQueries(e){let t=this.queryManager.refetchQueries(e),r=[],i=[];t.forEach((e,t)=>{r.push(t),i.push(e)});let n=Promise.all(i);return n.queries=r,n.results=i,n.catch(e=>{T.f&&b.k.debug(84,e)}),n}getObservableQueries(e="active"){return this.queryManager.getObservableQueries(e)}extract(e){return this.cache.extract(e)}restore(e){return this.cache.restore(e)}setLink(e){this.link=e}get defaultContext(){return this.queryManager.defaultContext}maskedFragmentTransform=new eR(e9);transform(e,t=!1){let r=this.queryManager.transform(e);return t?this.maskedFragmentTransform.transformDocument(r):r}}T.f&&(rR.prototype.getMemoryInternals=eI),e.s(["f",0,rR],76362)},64812,94269,60745,65322,e=>{"use strict";var t=e.i(29520),r=e.i(93532);let i=({client:e,matchesRefetchOn:t})=>e.refetchQueries({include:"active",onQueryUpdated:t});e.s(["f",0,class{sources;handlers;subscriptions=new Map;client;defaultHandler;constructor(e={}){this.sources=e.sources??{},this.handlers=e.handlers??{},this.defaultHandler=e.defaultHandler??i}connect(e){this.client!==e&&(this.client&&(t.f&&t.f&&r.k.warn(106),this.disconnect()),this.client=e,Object.entries(this.sources).forEach(([e,t])=>{"function"==typeof t&&this.subscribeToSource(e,t)}))}disconnect(e){e&&this.client!==e||(this.client=void 0,this.subscriptions.forEach(e=>e.unsubscribe()),this.subscriptions.clear())}hasSource(e){return Object.hasOwn(this.sources,e)}setEventSource(e,t){this.sources[e]=t,this.subscribeToSource(e,t)}removeEventSource(e){this.subscriptions.get(e)?.unsubscribe(),this.subscriptions.delete(e),delete this.sources[e]}setEventHandler(e,t){this.handlers[e]=t}setDefaultEventHandler(e){this.defaultHandler=e}emit(e,...i){let[n]=i;if(!this.client){t.f&&t.f&&r.k.warn(107,e);return}if(!this.hasSource(e)){t.f&&t.f&&r.k.warn(108,e);return}(this.handlers[e]??this.defaultHandler)({client:this.client,source:e,payload:n,matchesRefetchOn:function(t){let r={source:e,payload:n},i=t.options.refetchOn;return"boolean"==typeof i?i:"function"==typeof i?i(r):"function"==typeof i?.[e]?i[e](r):i?.[e]!==!1}})}subscribeToSource(e,t){this.subscriptions.get(e)?.unsubscribe(),this.subscriptions.delete(e),this.client&&this.subscriptions.set(e,t().subscribe(t=>this.emit(e,t)))}}],64812);var n=e.i(23938),s=e.i(89280),a=e.i(48531),o=e.i(78538),l=e.i(55735),u=e.i(6022),c=e.i(49363),f=e.i(57283),h=Array.isArray,d=["addListener","removeListener"],p=["addEventListener","removeEventListener"],m=["on","off"];function y(e,t,r,i){if((0,c.f)(r)&&(i=r,r=void 0),i){return y(e,t,r).pipe((n=i,(0,f.f)(function(e){return h(e)?n.apply(void 0,(0,s.p)([],(0,s.J)(e))):n(e)})))}var n,g,v,w,k=(0,s.J)((g=e,(0,c.f)(g.addEventListener)&&(0,c.f)(g.removeEventListener))?p.map(function(i){return function(n){return e[i](t,n,r)}}):(v=e,(0,c.f)(v.addListener)&&(0,c.f)(v.removeListener))?d.map(b(e,t)):(w=e,(0,c.f)(w.on)&&(0,c.f)(w.off))?m.map(b(e,t)):[],2),S=k[0],O=k[1];if(!S&&(0,u.f)(e))return(0,l.f)(function(e){return y(e,t,r)})((0,a.f)(e));if(!S)throw TypeError("Invalid event target");return new o.f(function(e){var t=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return e.next(1<t.length?t:t[0])};return S(t),function(){return O(t)}})}function b(e,t){return function(r){return function(i){return e[r](t,i)}}}var g=e.i(21953);e.s(["f",0,()=>g.f?y(window,"online"):n.f],94269);var v=e.i(75557);e.s(["f",0,()=>g.f?y(window,"visibilitychange").pipe((0,v.f)(()=>"visible"===document.visibilityState)):n.f],60745);var w=e.i(94144);class k extends Error{static is(e){return(0,w.m)(e,"LocalStateError")}path;constructor(e,t={}){super(e,{cause:t.sourceError}),this.name="LocalStateError",this.path=t.path,(0,w.s)(this),Object.setPrototypeOf(this,k.prototype)}}e.s(["f",0,k],65322)},30468,78234,e=>{"use strict";var t=e.i(76362),r=e.i(57828),i=e.i(64812),n=e.i(94269),s=e.i(60745),a=e.i(76810),o=e.i(22422),l=e.i(1977),u=e.i(51080),c=e.i(65322),f=e.i(6103),h=e.i(67913),d=e.i(14784),p=e.i(64501),m=e.i(99431),y=e.i(84936),b=e.i(268),g=e.i(14540),v=e.i(67977),w=e.i(62979),k=e.i(69188),S=e.i(98901),O=e.i(71393),x=e.i(41866),P=e.i(43759),E=e.i(64657),C=e.i(71596),_=e.i(54413),T=e.i(3285),F=e.i(91839),D=e.i(92449),j=e.i(33448),R=e.i(3443),M=e.i(56776),I=e.i(78538),N=e.i(93532),A=e.i(59080),q=e.i(99849);e.s(["ApolloCache",()=>p.f,"ApolloClient",()=>t.f,"ApolloLink",()=>w.f,"CombinedGraphQLErrors",()=>o.f,"CombinedProtocolErrors",()=>l.f,"DocumentTransform",()=>j.f,"HttpLink",()=>C.C,"InMemoryCache",()=>y.f,"LinkError",()=>u.D,"LocalStateError",()=>c.f,"MissingFieldError",()=>g.f,"NetworkStatus",()=>a.f,"Observable",()=>I.f,"ObservableQuery",()=>r.L,"RefetchEventManager",()=>i.f,"Scalar",()=>v.f,"ServerError",()=>f.f,"ServerParseError",()=>h.f,"UnconventionalError",()=>d.f,"build",()=>q.D,"checkFetcher",()=>E.f,"concat",()=>k.f,"createHttpLink",()=>C.G,"createSignalIfSupported",0,()=>{if("u"<typeof AbortController)return{controller:!1,signal:!1};let e=new AbortController,t=e.signal;return{controller:e,signal:t}},"defaultDataIdFromObject",()=>m.y,"defaultPrinter",()=>_.Q,"disableExperimentalFragmentVariables",()=>A.Z,"disableFragmentWarnings",()=>A.R,"empty",()=>S.f,"enableExperimentalFragmentVariables",()=>A.o,"execute",()=>O.f,"fallbackHttpConfig",()=>_.x,"from",()=>x.f,"gql",()=>A.a,"isNetworkRequestSettled",()=>R.f,"isReference",()=>M.f,"makeVar",()=>b.v,"onlineSource",()=>n.f,"parseAndCheckHttpResponse",()=>T.t,"resetCaches",()=>A.s,"rewriteURIForGET",()=>F.f,"selectHttpOptionsAndBody",()=>_.R,"selectHttpOptionsAndBodyInternal",()=>_.e,"selectURI",()=>D.f,"setLogVerbosity",()=>N.f,"split",()=>P.f,"version",()=>q.U,"windowFocusSource",()=>s.f],30468),e.s(["f",0,"uncompiled"],78234)},6103,67913,e=>{"use strict";var t=e.i(94144);class r extends Error{static is(e){return(0,t.m)(e,"ServerError")}response;statusCode;bodyText;constructor(e,i){super(e),this.name="ServerError",this.response=i.response,this.statusCode=i.response.status,this.bodyText=i.bodyText,(0,t.s)(this),Object.setPrototypeOf(this,r.prototype)}}e.s(["f",0,r],6103);class i extends Error{static is(e){return(0,t.m)(e,"ServerParseError")}response;statusCode;bodyText;constructor(e,r){super(e instanceof Error?e.message:"Could not parse server response",{cause:e}),this.name="ServerParseError",this.response=r.response,this.statusCode=r.response.status,this.bodyText=r.bodyText,(0,t.s)(this),Object.setPrototypeOf(this,i.prototype)}}e.s(["f",0,i],67913)},80811,87565,21273,e=>{"use strict";var t=e.i(62979),r=e.i(51104);class i extends t.f{constructor(e={}){super((t,i)=>{let n=t.client,s=n.queryManager.clientOptions,a=t.getContext();{let{name:i,version:n,transport:o="headers"}=(0,r.f)({},s.clientAwareness,e.clientAwareness,a.clientAwareness);"headers"===o&&t.setContext(({headers:e})=>({headers:(0,r.f)({"apollographql-client-name":i,"apollographql-client-version":n},e)}))}{let{transport:i="extensions"}=(0,r.f)({},s.enhancedClientAwareness,e.enhancedClientAwareness);"extensions"===i&&(t.extensions=(0,r.f)({clientLibrary:{name:"@apollo/client",version:n.version}},t.extensions)),"headers"===i&&t.setContext(({headers:e})=>({headers:(0,r.f)({"apollographql-library-name":"@apollo/client","apollographql-library-version":n.version},e)}))}return i(t)})}}e.s(["f",0,i],80811);var n=e.i(2088);e.s(["f",0,function(e,t){let r={...e},i=new Set(Object.keys(e));return(0,n.c)(t,{Variable(e,t,r){r&&"VariableDefinition"!==r.kind&&i.delete(e.name.value)}}),i.forEach(e=>{delete r[e]}),r}],87565);var s=e.i(89509);function a(e,t){return(0,s.f)(e)?.operation===t}e.s(["F",0,function(e){return a(e,"mutation")},"l",0,function(e){return a(e,"subscription")}],21273)},71596,3285,91839,54413,92449,e=>{"use strict";var t=e.i(62979),r=e.i(80811),i=e.i(78538),n=t,s=e.i(87565),a=e.i(21273),o=e.i(29520),l=e.i(51104),u=e.i(22420),c=e.i(64657),f=e.i(1977),h=e.i(27764),d=e.i(6103),p=e.i(67913),m=e.i(66930),y=e.i(93532);let{hasOwnProperty:b}=Object.prototype;async function*g(e){let t,r=new TextDecoder("utf-8"),i=e.headers?.get("content-type"),n=i?.match(/;\s*boundary=(?:'([^']+)'|"([^"]+)"|([^"'].+?))\s*(?:;|$)/i),s="\r\n--"+(n?n[1]??n[2]??n[3]??"-":"-"),a="";(0,y.k)(e.body&&"function"==typeof e.body.getReader,64);let o=e.body.getReader(),l=!1,u=!1,c=()=>u&&"-"==a[0]&&"-"==a[1];try{for(;!l;){({value:t,done:l}=await o.read());let e="string"==typeof t?t:r.decode(t,{stream:!l}),i=a.length-s.length+1,n=(a+=e).indexOf(s,i);for(;n>-1&&!c();){let e;u=!0,[e,a]=[a.slice(0,n),a.slice(n+s.length)];let t=e.indexOf("\r\n\r\n"),r=function(e){let t={};return e.split("\n").forEach(e=>{let r=e.indexOf(":");if(r>-1){let i=e.slice(0,r).trim().toLowerCase(),n=e.slice(r+1).trim();t[i]=n}}),t}(e.slice(0,t))["content-type"];if(r&&-1===r.toLowerCase().indexOf("application/json"))throw Error("Unsupported patch content type: application/json is required.");let i=e.slice(t);i&&(yield i),n=a.indexOf(s)}if(c())return}throw Error("premature end of multipart body")}finally{o.cancel().catch(()=>{})}}async function v(e,t){for await(let r of g(e)){let i=w(e,r);if(0!=Object.keys(i).length)if((0,m.f)(i)&&"payload"in i){if(1===Object.keys(i).length&&null===i.payload)return;let e={...i.payload};"errors"in i&&(e.extensions={...e.extensions,[h.u]:new f.f(i.errors??[])}),t(e)}else t(i)}}function w(e,t){if(e.status>=300)throw new d.f(`Response not successful: Received status code ${e.status}`,{response:e,bodyText:t});try{return JSON.parse(t)}catch(r){throw new p.f(r,{response:e,bodyText:t})}}function k(e){return t=>t.text().then(r=>{let i=function(e,t){let r=e.headers.get("content-type");if(r?.includes("application/graphql-response+json"))try{return JSON.parse(t)}catch(r){throw new p.f(r,{response:e,bodyText:t})}return w(e,t)}(t,r);if(!Array.isArray(i)&&!b.call(i,"data")&&!b.call(i,"errors"))throw new d.f(`Server response was malformed for query '${Array.isArray(e)?e.map(e=>e.operationName):e.operationName}'.`,{response:t,bodyText:r});return i})}function S(e,t){let r=[],i=(e,t)=>{r.push(`${e}=${encodeURIComponent(t)}`)};if("query"in t&&i("query",t.query),t.operationName&&i("operationName",t.operationName),t.variables){let e;try{e=JSON.stringify(t.variables)}catch(e){return{parseError:e}}i("variables",e)}if(t.extensions){let e;try{e=JSON.stringify(t.extensions)}catch(e){return{parseError:e}}i("extensions",e)}let n="",s=e,a=e.indexOf("#");-1!==a&&(n=e.substr(a),s=e.substr(0,a));let o=-1===s.indexOf("?")?"?":"&";return{newURI:s+o+r.join("&")+n}}e.s(["t",0,k,"B",0,v],3285),e.s(["f",0,S],91839);var O=e.i(41969);let x={http:{includeQuery:!0,includeExtensions:!0,preserveHeaderCase:!1},headers:{accept:"application/graphql-response+json,application/json;q=0.9","content-type":"application/json"},options:{method:"POST"}},P=(e,t)=>t(e);function E(e,t,...r){let i={},n={};r.forEach(e=>{i={...i,...e.options,headers:{...i.headers,...e.headers}},e.credentials&&(i.credentials=e.credentials),i.headers.accept=(e.http?.accept||[]).concat(i.headers.accept).join(","),n={...n,...e.http}}),i.headers=function(e,t){if(!t){let t={};return Object.keys(Object(e)).forEach(r=>{t[r.toLowerCase()]=e[r]}),t}let r={};Object.keys(Object(e)).forEach(t=>{r[t.toLowerCase()]={originalName:t,value:e[t]}});let i={};return Object.keys(r).forEach(e=>{i[r[e].originalName]=r[e].value}),i}(i.headers,n.preserveHeaderCase);let{operationName:s,extensions:a,variables:o,query:l}=e,u={operationName:s,variables:o};return n.includeExtensions&&Object.keys(a||{}).length&&(u.extensions=a),n.includeQuery&&(u.query=t(l,O.f)),{options:i,body:u}}e.s(["Q",0,P,"x",0,x,"R",0,function(e,t,...r){return r.unshift(t),E(e,P,...r)},"e",0,E],54413);let C=(e,t)=>{let r=e.getContext().uri;return r||("function"==typeof t?t(e):t||"/graphql")};e.s(["f",0,C],92449);let _=(0,u.f)(()=>fetch);function T(){}class F extends n.f{constructor(e={}){let{uri:t="/graphql",fetch:r,print:n=P,includeExtensions:f,preserveHeaderCase:h,useGETForQueries:d,includeUnusedVariables:p=!1,...m}=e;o.f&&(0,c.f)(r||_);let y={http:(0,l.f)({includeExtensions:f,preserveHeaderCase:h}),options:m.fetchOptions,credentials:m.credentials,headers:m.headers};super(e=>{let o=C(e,t),l=e.getContext(),c={...l.http};(0,a.l)(e.query)&&(c.accept=["multipart/mixed;boundary=graphql;subscriptionSpec=1.0",...c.accept||[]]);let{options:f,body:h}=E(e,n,x,y,{http:c,options:l.fetchOptions,credentials:l.credentials,headers:l.headers});h.variables&&!p&&(h.variables=(0,s.f)(h.variables,e.query));let m=new AbortController,b=()=>{m=void 0};if(f.signal){let e=f.signal,t=()=>{m?.abort(e.reason)};e.addEventListener("abort",t,{once:!0}),b=()=>{m?.signal.removeEventListener("abort",b),m=void 0,e.removeEventListener("abort",t),b=T},m.signal.addEventListener("abort",b,{once:!0})}return f.signal=m.signal,d&&!(0,a.F)(e.query)&&(f.method="GET"),new i.f(t=>{if("GET"===f.method){let{newURI:e,parseError:t}=S(o,h);if(t)throw t;o=e}else f.body=JSON.stringify(h);let i=r||(0,u.f)(()=>fetch)||_,n=t.next.bind(t);return i(o,f).then(t=>{e.setContext({response:t});let r=t.headers?.get("content-type");return null!==r&&/^multipart\/mixed/i.test(r)?v(t,n):k(e)(t).then(n)}).then(()=>{b(),t.complete()}).catch(e=>{b(),t.error(e)}),()=>{m&&m.abort()}})})}}class D extends t.f{constructor(e={}){let{left:i,right:n,request:s}=t.f.from([new r.f(e),new F(e)]);super(s),Object.assign(this,{left:i,right:n})}}e.s(["C",0,D,"G",0,(e={})=>new D(e)],71596)},64657,e=>{"use strict";var t=e.i(93532);e.s(["f",0,e=>{(0,t.k)(e||"u">typeof fetch,63)}])},38070,e=>{"use strict";var t=e.i(91788),r=e.i(93532),i=e.i(21805);e.s(["f",0,({client:e,children:n})=>{let s=(0,i.f)(),a=t.useContext(s),o=t.useMemo(()=>({...a,client:e||a.client}),[a,e]);return(0,r.k)(o.client,40),t.createElement(s.Provider,{value:o},n)}])},56776,e=>{"use strict";e.s(["f",0,function(e){return!!(e&&"object"==typeof e&&"string"==typeof e.__ref)}])},49429,e=>{"use strict";var t=e.i(73944),r=e.i(2088);let i={kind:t.f.FIELD,name:{kind:t.f.NAME,value:"__typename"}},n=Object.assign(function(e){return(0,r.c)(e,{SelectionSet:{enter(e,r,n){if(n&&n.kind===t.f.OPERATION_DEFINITION)return;let{selections:s}=e;if(!(!s||s.some(e=>e.kind===t.f.FIELD&&("__typename"===e.name.value||0===e.name.value.lastIndexOf("__",0))))&&!(n.kind===t.f.FIELD&&n.directives&&n.directives.some(e=>"export"===e.name.value)))return{...e,selections:[...s,i]}}}})},{added:e=>e===i});e.s(["f",0,n])},1887,e=>{"use strict";var t=e.i(66930);let{hasOwnProperty:r}=Object.prototype,i=function(e,t,r){return this.merge(e[r],t[r])},n=e=>isNaN(+e)?{}:[];e.s(["f",0,class{options;reconciler;constructor(e={}){this.options=e,this.reconciler=e.reconciler||i}merge(e,i,s={}){let a=s.atPath;if(a?.length){let[t,...r]=a;void 0===e&&(e=n(t));let o=e[t];void 0===o&&r.length&&(o=n(r[0]));let l=this.merge(o,i,{...s,atPath:r});return o!==l&&((e=this.shallowCopyForMerge(e))[t]=l),e}return(Array.isArray(e)&&Array.isArray(i)&&"truncate"===this.options.arrayMerge&&e.length>i.length&&(e=e.slice(0,i.length),this.pastCopies.add(e)),(0,t.f)(i)&&(0,t.f)(e))?(Object.keys(i).forEach(t=>{if(r.call(e,t)){let r=e[t];if(i[t]!==r){let n=this.reconciler(e,i,t);n!==r&&((e=this.shallowCopyForMerge(e))[t]=n)}}else(e=this.shallowCopyForMerge(e))[t]=i[t]}),e):i}isObject=t.f;pastCopies=new Set;shallowCopyForMerge(e){return(0,t.f)(e)&&!this.pastCopies.has(e)&&(e=Array.isArray(e)?e.slice(0):{__proto__:Object.getPrototypeOf(e),...e},this.pastCopies.add(e)),e}}])},92410,e=>{"use strict";e.s(["f",0,function(e){return null!==e&&"object"==typeof e&&(Object.getPrototypeOf(e)===Object.prototype||null===Object.getPrototypeOf(e))}])},51306,e=>{"use strict";e.s(["f",0,function(e){return{__ref:String(e)}}])}]);