@abtnode/blocklet-services 1.16.47-beta-20250717-221700-2d886a18 → 1.16.47-beta-20250721-025348-9ccb2d62

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 (188) hide show
  1. package/dist/assets/{AdapterDayjs-BZTfQON9.js → AdapterDayjs-Dc_cn1Wv.js} +1 -1
  2. package/dist/assets/{Community-CcMMU0U0.js → Community-ClHGTbNM.js} +1 -1
  3. package/dist/assets/{Google-BdWLCoXr.js → Google-BYGsR9Bd.js} +1 -1
  4. package/dist/assets/{Holiday-CQ56q1Zn.js → Holiday-D8fmDxt6.js} +1 -1
  5. package/dist/assets/{Meeting-BloE6sJb.js → Meeting-CF7NtQe5.js} +1 -1
  6. package/dist/assets/{OffSick-BDgahXbb.js → OffSick-CWwGwWYY.js} +1 -1
  7. package/dist/assets/{WorkingRemotely-Dy2yEuOf.js → WorkingRemotely-CD8ntsiV.js} +1 -1
  8. package/dist/assets/{access-control-Ccw74KG_.js → access-control-oCszV5zC.js} +1 -1
  9. package/dist/assets/{actions-C731b1S-.js → actions-CeSIZN0M.js} +1 -1
  10. package/dist/assets/{add-component-core-CbHoe5zJ.js → add-component-core-GYYnyhPI.js} +1 -1
  11. package/dist/assets/{add-resource-Cq_fc1jD.js → add-resource-vcL8WXJK.js} +1 -1
  12. package/dist/assets/{addon-DZMRJstX.js → addon-m7dEcFSm.js} +1 -1
  13. package/dist/assets/{advanced-2-zZxGm_.js → advanced-BhS7b_np.js} +1 -1
  14. package/dist/assets/api-BV16dSSm.js +1 -0
  15. package/dist/assets/{appearance-DpzMSH9F.js → appearance-BF-F41U0.js} +1 -1
  16. package/dist/assets/{arrow-down.svg-CAhyD6_b.js → arrow-down.svg-6steA5un.js} +1 -1
  17. package/dist/assets/{audit-logs-ChoY3Mh6.js → audit-logs-gbfUafHi.js} +1 -1
  18. package/dist/assets/{authorize-CRwwOLYT.js → authorize-Bfey1QAy.js} +1 -1
  19. package/dist/assets/{base-chart-ChlMjzcv.js → base-chart-u6OIGONc.js} +1 -1
  20. package/dist/assets/{base32-CkijRzDY.js → base32-DBDFptL1.js} +1 -1
  21. package/dist/assets/{branding-BFlQm__X.js → branding-Co1T-6R4.js} +1 -1
  22. package/dist/assets/{branding-1Tnui43I.js → branding-itFeNCQ6.js} +2 -2
  23. package/dist/assets/{bundle-avatar-cdYjPEnW.js → bundle-avatar-DkLBEfff.js} +1 -1
  24. package/dist/assets/button-Cnj6R5bV.js +1 -0
  25. package/dist/assets/click-to-copy-m7BzOuWH.js +1 -0
  26. package/dist/assets/cloneDeep-BpNWeRQ9.js +1 -0
  27. package/dist/assets/{collapse-DGb2BFlZ.js → collapse-DfvukfIl.js} +1 -1
  28. package/dist/assets/{complete-B-DZw0Xp.js → complete-B4B7REuC.js} +1 -1
  29. package/dist/assets/{component-B7p437A9.js → component-DMzCzNlm.js} +3 -3
  30. package/dist/assets/{config-CpnLJaUO.js → config-D-z5vAfP.js} +1 -1
  31. package/dist/assets/{config-CxEXdwoA.js → config-D3XTFUmZ.js} +1 -1
  32. package/dist/assets/{config-navigation-CU19NqaO.js → config-navigation-CfGhB5-E.js} +3 -3
  33. package/dist/assets/{config-space-B6WEaHVR.js → config-space-a6OXiuM7.js} +1 -1
  34. package/dist/assets/{confirm-B0IPtkVS.js → confirm-B4BzkG04.js} +1 -1
  35. package/dist/assets/{connect-BOc7_s4F.js → connect-B-9mXcqo.js} +1 -1
  36. package/dist/assets/{connect-NXiMoe1T.js → connect-JlblxSAY.js} +1 -1
  37. package/dist/assets/{connect-to-RFZZSI5s.js → connect-to-BL3HAXmC.js} +1 -1
  38. package/dist/assets/{content-layout-Ctpah7wH.js → content-layout-BaDbLmL5.js} +1 -1
  39. package/dist/assets/{createClass-Bj7mZfZB.js → createClass-g8bSPTyV.js} +1 -1
  40. package/dist/assets/{dashboard-ClQmhIHS.js → dashboard-CBpVHcLw.js} +3 -3
  41. package/dist/assets/{delete-confirm-DeAivjJv.js → delete-confirm-DhfRzwF1.js} +1 -1
  42. package/dist/assets/{did-address-D7SiJUQw.js → did-address-CdYAzzjR.js} +1 -1
  43. package/dist/assets/{domain-action-card-BMJauDDL.js → domain-action-card-B-0EUHm9.js} +1 -1
  44. package/dist/assets/{domain-Cx4UiImS.js → domain-q2p-uq0P.js} +1 -1
  45. package/dist/assets/domains-BvFskQMv.js +1 -0
  46. package/dist/assets/{dot-CAD4z94Q.js → dot-OPeVWPUi.js} +1 -1
  47. package/dist/assets/{edit.svg-D-deOViK.js → edit.svg-DycWG9v3.js} +1 -1
  48. package/dist/assets/{email-_MWdgnCs.js → email-BTKvn_fl.js} +3 -3
  49. package/dist/assets/{empty-spinner-DoD2SObf.js → empty-spinner-C6wgiyAQ.js} +1 -1
  50. package/dist/assets/engine-DHKpyPwC.js +1 -0
  51. package/dist/assets/{exchange-passport-B5Avk2mv.js → exchange-passport-B-9fNsX9.js} +1 -1
  52. package/dist/assets/{form-Cfox3G5b.js → form-BX4g8soo.js} +1 -1
  53. package/dist/assets/{fuel--qkuIoAW.js → fuel-DYTqXaPb.js} +1 -1
  54. package/dist/assets/{gen-access-key-B4DsFFIf.js → gen-access-key-DVBJadXn.js} +2 -2
  55. package/dist/assets/get-safe-url-Ce6hawV-.js +1 -0
  56. package/dist/assets/{home-DIigPTxS.js → home-BL8xoBlc.js} +1 -1
  57. package/dist/assets/{iframe-CQ_bWNrw.js → iframe-BTaRNGRY.js} +1 -1
  58. package/dist/assets/{index-8pSMU0so.js → index-5klv_mrK.js} +1 -1
  59. package/dist/assets/{index-pq4T68Se.js → index-B9-tuTku.js} +4 -4
  60. package/dist/assets/{index-B_4qd0Ji.js → index-B9GdL3BM.js} +1 -1
  61. package/dist/assets/{index-CSSFAW5K.js → index-BC395sak.js} +1 -1
  62. package/dist/assets/{index-MGxe3V9B.js → index-BPy8_fa2.js} +1 -1
  63. package/dist/assets/{index-Bo6LJIBD.js → index-BUJ5QfC4.js} +3 -3
  64. package/dist/assets/index-BVPDkm__.js +1 -0
  65. package/dist/assets/{index-C5pKXOxF.js → index-BaBIefeb.js} +1 -1
  66. package/dist/assets/{index-D1bv9ooM.js → index-Bo2cFOuR.js} +1 -1
  67. package/dist/assets/{index-DYbAE8u5.js → index-C-AuC2Mk.js} +1 -1
  68. package/dist/assets/{index-BEyKlMs9.js → index-CW67obch.js} +1 -1
  69. package/dist/assets/{index-BsdYXeYP.js → index-C_CqbmyE.js} +1 -1
  70. package/dist/assets/{index-C0HBWMaK.js → index-Cbxz8oHT.js} +1 -1
  71. package/dist/assets/{index-CnoeBPbk.js → index-CeczUnUx.js} +1 -1
  72. package/dist/assets/{index-dIkcxCDN.js → index-CgCJ2qDh.js} +5 -5
  73. package/dist/assets/{index-DawEtQPD.js → index-CgRDnxac.js} +1 -1
  74. package/dist/assets/{index-C-vjjw9E.js → index-CgdhTqWX.js} +1 -1
  75. package/dist/assets/{index-BGTKxy_q.js → index-D3qROm47.js} +1 -1
  76. package/dist/assets/{index-D27Eda5K.js → index-D6kePAD5.js} +1 -1
  77. package/dist/assets/{index-BpL1e-bN.js → index-D8X_0Jj0.js} +1 -1
  78. package/dist/assets/{index-DEPyMifK.js → index-DUnVGFh6.js} +1 -1
  79. package/dist/assets/{index--E0qCGk-.js → index-D_5DFMMK.js} +1 -1
  80. package/dist/assets/{index-DdCAwzrE.js → index-DcwzA8G_.js} +1 -1
  81. package/dist/assets/{index-ChVoQcrO.js → index-DjKmasIZ.js} +1 -1
  82. package/dist/assets/{index-CQb3b4r6.js → index-DseoFU10.js} +1 -1
  83. package/dist/assets/{index-b_dnNRMF.js → index-Dy8syryD.js} +1 -1
  84. package/dist/assets/{index-thbUUXKQ.js → index-DyH1BrER.js} +1 -1
  85. package/dist/assets/{index-Dl1q-Vpb.js → index-EIX4798q.js} +1 -1
  86. package/dist/assets/{index-BcuyH8tS.js → index-LvmCZD51.js} +3 -3
  87. package/dist/assets/{index-Dhyyek4_.js → index-SrN5SE_r.js} +1 -1
  88. package/dist/assets/{index-BEq2q2jr.js → index-cCGBx0sL.js} +1 -1
  89. package/dist/assets/{index-CjiaOjxw.js → index-gkhmzgqt.js} +1 -1
  90. package/dist/assets/{index-Bv6qc7SO.js → index-lf4wyjkd.js} +1 -1
  91. package/dist/assets/{index-CzB-WPWn.js → index-n78OcMXJ.js} +1 -1
  92. package/dist/assets/{index.esm-BONQrRCU.js → index.esm-JPZAjt0x.js} +1 -1
  93. package/dist/assets/{invitation-D4tu3NNd.js → invitation-CC5hPf7T.js} +1 -1
  94. package/dist/assets/{invite-DdCiERzE.js → invite-CreQ98MA.js} +1 -1
  95. package/dist/assets/{issue-passport-CmU7CVx7.js → issue-passport-CIYcm6iB.js} +1 -1
  96. package/dist/assets/{item-7fmoiGq1.js → item-C8OCvu8j.js} +1 -1
  97. package/dist/assets/{landing-page-DrswynDN.js → landing-page-DOi_4Ca6.js} +1 -1
  98. package/dist/assets/{launch-result-message-BlpIIvzr.js → launch-result-message-Dwnqr8Lq.js} +1 -1
  99. package/dist/assets/{layout-u6VjgU9W.js → layout-CIen07bA.js} +1 -1
  100. package/dist/assets/{list-s4SRm3p5.js → list-B8ZhwNC1.js} +1 -1
  101. package/dist/assets/{list-DLQOcQSS.js → list-DZy6xsmU.js} +2 -2
  102. package/dist/assets/{list-header-BROuC1JD.js → list-header-CGX6Hi0X.js} +1 -1
  103. package/dist/assets/localization-CKs8paiI.js +1 -0
  104. package/dist/assets/{lock.svg-xPuKHQ-O.js → lock.svg-COUP8tyO.js} +1 -1
  105. package/dist/assets/{log-BCe-iHkk.js → log-C9DU0cCG.js} +1 -1
  106. package/dist/assets/logger-BAwrOeMG.js +1 -0
  107. package/dist/assets/{login-CJ9QT17a.js → login-Bnu0F5eS.js} +1 -1
  108. package/dist/assets/{login-oauth-callback-Bn54mlE7.js → login-oauth-callback-C2SqP1bW.js} +1 -1
  109. package/dist/assets/{logo-uploader-Cct_Tgp9.js → logo-uploader-DgG1moIj.js} +3 -3
  110. package/dist/assets/{lost-passport-JFuuT2LW.js → lost-passport-DtNgA2rm.js} +3 -3
  111. package/dist/assets/{lottie-react.esm-Bqal_rmd.js → lottie-react.esm-M5fKy3fg.js} +1 -1
  112. package/dist/assets/omit-CxEI1_wm.js +1 -0
  113. package/dist/assets/{open-window-okQkGylu.js → open-window-RuAUils2.js} +1 -1
  114. package/dist/assets/{over-due-invoice-payment-CorS-0Po.js → over-due-invoice-payment-DhK6jNNQ.js} +1 -1
  115. package/dist/assets/{overview-CDbOiDio.js → overview-BVSh5o7h.js} +1 -1
  116. package/dist/assets/{page-header-BuVm9h5d.js → page-header-BycH8S9r.js} +1 -1
  117. package/dist/assets/{passport-item-BejfMK1X.js → passport-item-D7sQ_FxN.js} +1 -1
  118. package/dist/assets/{permission-B4PsiDVD.js → permission-C79TpiNV.js} +1 -1
  119. package/dist/assets/preferences-DfEKF75U.js +1 -0
  120. package/dist/assets/profile-embed-LKUTgx9A.js +1 -0
  121. package/dist/assets/publish-resource-BzjWpXe-.js +1 -0
  122. package/dist/assets/{question-mark-circle.svg-YsMacl4Q.js → question-mark-circle.svg-B4stD6SS.js} +1 -1
  123. package/dist/assets/{raf-schd.esm-BZ5FB5HD.js → raf-schd.esm-CHNehTG3.js} +1 -1
  124. package/dist/assets/{react-beautiful-dnd.esm-ByowwdW2.js → react-beautiful-dnd.esm-DwkY3sYg.js} +1 -1
  125. package/dist/assets/{react-stripe.esm-DjDk8Ggj.js → react-stripe.esm-BGPt6Wk8.js} +1 -1
  126. package/dist/assets/{runtime-DaXsDIcp.js → runtime-Sobb0AXT.js} +1 -1
  127. package/dist/assets/{sanitize-CCb_t50W.js → sanitize-DSvGhymV.js} +1 -1
  128. package/dist/assets/sdk-DzqJHXyQ.js +1 -0
  129. package/dist/assets/{section-BkD2aamt.js → section-BqJWD2MT.js} +1 -1
  130. package/dist/assets/{security-BGWWSAkV.js → security-BwF3YzTL.js} +1 -1
  131. package/dist/assets/{server-logo-notext.svg-BqCXmsOm.js → server-logo-notext.svg-CKQB0tIp.js} +1 -1
  132. package/dist/assets/session-BV5HR2vD.js +1 -0
  133. package/dist/assets/{setup-9fDp38sd.js → setup-Bll35TpG.js} +3 -3
  134. package/dist/assets/{shorten-label-BG5illgA.js → shorten-label-BKNhALWt.js} +1 -1
  135. package/dist/assets/{simple-select-BMWDBGsb.js → simple-select-DiucBfFO.js} +1 -1
  136. package/dist/assets/{spaces-CISW823t.js → spaces-D2uHzDSf.js} +1 -1
  137. package/dist/assets/{start-BtjRI2FT.js → start-CCbI2h7_.js} +1 -1
  138. package/dist/assets/{starting-progress-BvCdculj.js → starting-progress-C2KBufhS.js} +1 -1
  139. package/dist/assets/{status-kBSo0EE3.js → status-fhCB_pM_.js} +1 -1
  140. package/dist/assets/{step-actions-CSysf55Z.js → step-actions-C6aMtUZh.js} +1 -1
  141. package/dist/assets/{studio-DRi8O4nl.js → studio-B-QwZrdc.js} +1 -1
  142. package/dist/assets/{switch-control-BE5x5QTG.js → switch-control-88oLMAWm.js} +1 -1
  143. package/dist/assets/{table-tips-BfdUOZWj.js → table-tips-ZIxKRomr.js} +1 -1
  144. package/dist/assets/{team-DA9xMdEQ.js → team-DplrCM_m.js} +1 -1
  145. package/dist/assets/{traffic-BQj5L64I.js → traffic-BU5sjdLg.js} +1 -1
  146. package/dist/assets/{transfer-DQ-esQ54.js → transfer-DWvn8JDa.js} +1 -1
  147. package/dist/assets/{unsubscribe-dC1x4NuC.js → unsubscribe-DPIGic1H.js} +1 -1
  148. package/dist/assets/{use-mobile-DHiqEjn5.js → use-mobile-BhzP2Rp3.js} +1 -1
  149. package/dist/assets/{use-mobile-DapluIyS.js → use-mobile-BtGrkCtZ.js} +1 -1
  150. package/dist/assets/{use-server-logo-BBlO0k2-.js → use-server-logo-BFuFRBQG.js} +1 -1
  151. package/dist/assets/useAsync-DGzYJlYv.js +1 -0
  152. package/dist/assets/{useAsync-Dk1Ydzz6.js → useAsync-DcK0UTnz.js} +1 -1
  153. package/dist/assets/{useLocalStorage-CVZc_3z4.js → useLocalStorage-BRPtTalQ.js} +1 -1
  154. package/dist/assets/{useSetState-BWrXo9eH.js → useSetState-DFuQZPPV.js} +1 -1
  155. package/dist/assets/{user-center-Dx-CKzHU.js → user-center-D4QgyhnU.js} +4 -4
  156. package/dist/assets/{user-sessions-CP2hMWvQ.js → user-sessions-C2LvHnd6.js} +1 -1
  157. package/dist/assets/{util-DLU48yb8.js → util-BGfTex9R.js} +1 -1
  158. package/dist/assets/{util-Cn9ZyU8l.js → util-DtXj9fc3.js} +1 -1
  159. package/dist/assets/{vendor-arcblock-BEuhHuNQ.js → vendor-arcblock-B78OG6SS.js} +1 -1
  160. package/dist/assets/{vendor-hooks-uwq5Zgdd.js → vendor-hooks-HB6DqcLv.js} +1 -1
  161. package/dist/assets/{vendor-mui-core-BwwTYUH3.js → vendor-mui-core-DWYIngcn.js} +1 -1
  162. package/dist/assets/{vendor-mui-x-DDx3HEvj.js → vendor-mui-x-nEbm5eNb.js} +1 -1
  163. package/dist/assets/vendor-react-Dvs43sk9.js +37 -0
  164. package/dist/assets/{vendor-utils-DQY0X1ND.js → vendor-utils-J7aLFpEq.js} +1 -1
  165. package/dist/assets/{vendor-ux-BglKGRhr.js → vendor-ux-Dln42oC3.js} +1 -1
  166. package/dist/assets/{wrap-locale-DOTYikON.js → wrap-locale-BylAyLRV.js} +1 -1
  167. package/dist/assets/{zh-BcwVs5BX.js → zh-C3O8IIjK.js} +1 -1
  168. package/dist/index.html +7 -7
  169. package/dist/service-worker.js +1 -1
  170. package/package.json +24 -24
  171. package/dist/assets/api-CpymM8cn.js +0 -1
  172. package/dist/assets/button-CWzJXH1i.js +0 -1
  173. package/dist/assets/click-to-copy-DPQ0tcO7.js +0 -1
  174. package/dist/assets/cloneDeep-BnFQZ0zY.js +0 -1
  175. package/dist/assets/domains-D8HTnCBf.js +0 -1
  176. package/dist/assets/engine-C3CQWke3.js +0 -1
  177. package/dist/assets/get-safe-url-Cch2GZCp.js +0 -1
  178. package/dist/assets/index-C4mYBCsd.js +0 -1
  179. package/dist/assets/localization-CJSvysj8.js +0 -1
  180. package/dist/assets/logger-Cf2apEtv.js +0 -1
  181. package/dist/assets/omit-pzenKe9G.js +0 -1
  182. package/dist/assets/preferences-DmEdhu1e.js +0 -1
  183. package/dist/assets/profile-embed-BK2tobXZ.js +0 -1
  184. package/dist/assets/publish-resource-M4It07oz.js +0 -1
  185. package/dist/assets/sdk-CzxAlOgp.js +0 -1
  186. package/dist/assets/session-DgH_dTEB.js +0 -1
  187. package/dist/assets/useAsync-CQLW7qpa.js +0 -1
  188. package/dist/assets/vendor-react-x2lQvn4m.js +0 -38
@@ -1,38 +0,0 @@
1
- function zn(e,t){for(var r=0;r<t.length;r++){const n=t[r];if(typeof n!="string"&&!Array.isArray(n)){for(const a in n)if(a!=="default"&&!(a in e)){const l=Object.getOwnPropertyDescriptor(n,a);l&&Object.defineProperty(e,a,l.get?l:{enumerable:!0,get:()=>n[a]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var Qo=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Kr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Zo(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if(typeof t=="function"){var r=function n(){var a=!1;try{a=this instanceof n}catch{}return a?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var a=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,a.get?a:{enumerable:!0,get:function(){return e[n]}})}),r}function $n(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Yr={exports:{}},oe=Yr.exports={},xe,Te;function Qt(){throw new Error("setTimeout has not been defined")}function Zt(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?xe=setTimeout:xe=Qt}catch{xe=Qt}try{typeof clearTimeout=="function"?Te=clearTimeout:Te=Zt}catch{Te=Zt}})();function Vr(e){if(xe===setTimeout)return setTimeout(e,0);if((xe===Qt||!xe)&&setTimeout)return xe=setTimeout,setTimeout(e,0);try{return xe(e,0)}catch{try{return xe.call(null,e,0)}catch{return xe.call(this,e,0)}}}function Wn(e){if(Te===clearTimeout)return clearTimeout(e);if((Te===Zt||!Te)&&clearTimeout)return Te=clearTimeout,clearTimeout(e);try{return Te(e)}catch{try{return Te.call(null,e)}catch{return Te.call(this,e)}}}var Ue=[],it=!1,Qe,Ot=-1;function Kn(){!it||!Qe||(it=!1,Qe.length?Ue=Qe.concat(Ue):Ot=-1,Ue.length&&Jr())}function Jr(){if(!it){var e=Vr(Kn);it=!0;for(var t=Ue.length;t;){for(Qe=Ue,Ue=[];++Ot<t;)Qe&&Qe[Ot].run();Ot=-1,t=Ue.length}Qe=null,it=!1,Wn(e)}}oe.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];Ue.push(new Gr(e,t)),Ue.length===1&&!it&&Vr(Jr)};function Gr(e,t){this.fun=e,this.array=t}Gr.prototype.run=function(){this.fun.apply(null,this.array)};oe.title="browser";oe.browser=!0;oe.env={};oe.argv=[];oe.version="";oe.versions={};function Ie(){}oe.on=Ie;oe.addListener=Ie;oe.once=Ie;oe.off=Ie;oe.removeListener=Ie;oe.removeAllListeners=Ie;oe.emit=Ie;oe.prependListener=Ie;oe.prependOnceListener=Ie;oe.listeners=function(e){return[]};oe.binding=function(e){throw new Error("process.binding is not supported")};oe.cwd=function(){return"/"};oe.chdir=function(e){throw new Error("process.chdir is not supported")};oe.umask=function(){return 0};var Yn=Yr.exports;const Yt=$n(Yn);var Vt={exports:{}},k={},_r;function Vn(){if(_r)return k;_r=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),l=Symbol.for("react.consumer"),o=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),s=Symbol.for("react.suspense"),i=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),p=Symbol.iterator;function R(f){return f===null||typeof f!="object"?null:(f=p&&f[p]||f["@@iterator"],typeof f=="function"?f:null)}var y={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},S=Object.assign,P={};function _(f,E,M){this.props=f,this.context=E,this.refs=P,this.updater=M||y}_.prototype.isReactComponent={},_.prototype.setState=function(f,E){if(typeof f!="object"&&typeof f!="function"&&f!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,f,E,"setState")},_.prototype.forceUpdate=function(f){this.updater.enqueueForceUpdate(this,f,"forceUpdate")};function z(){}z.prototype=_.prototype;function U(f,E,M){this.props=f,this.context=E,this.refs=P,this.updater=M||y}var $=U.prototype=new z;$.constructor=U,S($,_.prototype),$.isPureReactComponent=!0;var I=Array.isArray,F={H:null,A:null,T:null,S:null,V:null},se=Object.prototype.hasOwnProperty;function Ee(f,E,M,L,H,X){return M=X.ref,{$$typeof:e,type:f,key:E,ref:M!==void 0?M:null,props:X}}function v(f,E){return Ee(f.type,E,void 0,void 0,void 0,f.props)}function V(f){return typeof f=="object"&&f!==null&&f.$$typeof===e}function te(f){var E={"=":"=0",":":"=2"};return"$"+f.replace(/[=:]/g,function(M){return E[M]})}var K=/\/+/g;function ue(f,E){return typeof f=="object"&&f!==null&&f.key!=null?te(""+f.key):E.toString(36)}function de(){}function ve(f){switch(f.status){case"fulfilled":return f.value;case"rejected":throw f.reason;default:switch(typeof f.status=="string"?f.then(de,de):(f.status="pending",f.then(function(E){f.status==="pending"&&(f.status="fulfilled",f.value=E)},function(E){f.status==="pending"&&(f.status="rejected",f.reason=E)})),f.status){case"fulfilled":return f.value;case"rejected":throw f.reason}}throw f}function ge(f,E,M,L,H){var X=typeof f;(X==="undefined"||X==="boolean")&&(f=null);var A=!1;if(f===null)A=!0;else switch(X){case"bigint":case"string":case"number":A=!0;break;case"object":switch(f.$$typeof){case e:case t:A=!0;break;case h:return A=f._init,ge(A(f._payload),E,M,L,H)}}if(A)return H=H(f),A=L===""?"."+ue(f,0):L,I(H)?(M="",A!=null&&(M=A.replace(K,"$&/")+"/"),ge(H,E,M,"",function(zt){return zt})):H!=null&&(V(H)&&(H=v(H,M+(H.key==null||f&&f.key===H.key?"":(""+H.key).replace(K,"$&/")+"/")+A)),E.push(H)),1;A=0;var ce=L===""?".":L+":";if(I(f))for(var q=0;q<f.length;q++)L=f[q],X=ce+ue(L,q),A+=ge(L,E,M,X,H);else if(q=R(f),typeof q=="function")for(f=q.call(f),q=0;!(L=f.next()).done;)L=L.value,X=ce+ue(L,q++),A+=ge(L,E,M,X,H);else if(X==="object"){if(typeof f.then=="function")return ge(ve(f),E,M,L,H);throw E=String(f),Error("Objects are not valid as a React child (found: "+(E==="[object Object]"?"object with keys {"+Object.keys(f).join(", ")+"}":E)+"). If you meant to render a collection of children, use an array instead.")}return A}function Re(f,E,M){if(f==null)return f;var L=[],H=0;return ge(f,L,"","",function(X){return E.call(M,X,H++)}),L}function et(f){if(f._status===-1){var E=f._result;E=E(),E.then(function(M){(f._status===0||f._status===-1)&&(f._status=1,f._result=M)},function(M){(f._status===0||f._status===-1)&&(f._status=2,f._result=M)}),f._status===-1&&(f._status=0,f._result=E)}if(f._status===1)return f._result.default;throw f._result}var Ge=typeof reportError=="function"?reportError:function(f){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var E=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof f=="object"&&f!==null&&typeof f.message=="string"?String(f.message):String(f),error:f});if(!window.dispatchEvent(E))return}else if(typeof Yt=="object"&&typeof Yt.emit=="function"){Yt.emit("uncaughtException",f);return}console.error(f)};function re(){}return k.Children={map:Re,forEach:function(f,E,M){Re(f,function(){E.apply(this,arguments)},M)},count:function(f){var E=0;return Re(f,function(){E++}),E},toArray:function(f){return Re(f,function(E){return E})||[]},only:function(f){if(!V(f))throw Error("React.Children.only expected to receive a single React element child.");return f}},k.Component=_,k.Fragment=r,k.Profiler=a,k.PureComponent=U,k.StrictMode=n,k.Suspense=s,k.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=F,k.__COMPILER_RUNTIME={__proto__:null,c:function(f){return F.H.useMemoCache(f)}},k.cache=function(f){return function(){return f.apply(null,arguments)}},k.cloneElement=function(f,E,M){if(f==null)throw Error("The argument must be a React element, but you passed "+f+".");var L=S({},f.props),H=f.key,X=void 0;if(E!=null)for(A in E.ref!==void 0&&(X=void 0),E.key!==void 0&&(H=""+E.key),E)!se.call(E,A)||A==="key"||A==="__self"||A==="__source"||A==="ref"&&E.ref===void 0||(L[A]=E[A]);var A=arguments.length-2;if(A===1)L.children=M;else if(1<A){for(var ce=Array(A),q=0;q<A;q++)ce[q]=arguments[q+2];L.children=ce}return Ee(f.type,H,void 0,void 0,X,L)},k.createContext=function(f){return f={$$typeof:o,_currentValue:f,_currentValue2:f,_threadCount:0,Provider:null,Consumer:null},f.Provider=f,f.Consumer={$$typeof:l,_context:f},f},k.createElement=function(f,E,M){var L,H={},X=null;if(E!=null)for(L in E.key!==void 0&&(X=""+E.key),E)se.call(E,L)&&L!=="key"&&L!=="__self"&&L!=="__source"&&(H[L]=E[L]);var A=arguments.length-2;if(A===1)H.children=M;else if(1<A){for(var ce=Array(A),q=0;q<A;q++)ce[q]=arguments[q+2];H.children=ce}if(f&&f.defaultProps)for(L in A=f.defaultProps,A)H[L]===void 0&&(H[L]=A[L]);return Ee(f,X,void 0,void 0,null,H)},k.createRef=function(){return{current:null}},k.forwardRef=function(f){return{$$typeof:d,render:f}},k.isValidElement=V,k.lazy=function(f){return{$$typeof:h,_payload:{_status:-1,_result:f},_init:et}},k.memo=function(f,E){return{$$typeof:i,type:f,compare:E===void 0?null:E}},k.startTransition=function(f){var E=F.T,M={};F.T=M;try{var L=f(),H=F.S;H!==null&&H(M,L),typeof L=="object"&&L!==null&&typeof L.then=="function"&&L.then(re,Ge)}catch(X){Ge(X)}finally{F.T=E}},k.unstable_useCacheRefresh=function(){return F.H.useCacheRefresh()},k.use=function(f){return F.H.use(f)},k.useActionState=function(f,E,M){return F.H.useActionState(f,E,M)},k.useCallback=function(f,E){return F.H.useCallback(f,E)},k.useContext=function(f){return F.H.useContext(f)},k.useDebugValue=function(){},k.useDeferredValue=function(f,E){return F.H.useDeferredValue(f,E)},k.useEffect=function(f,E,M){var L=F.H;if(typeof M=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return L.useEffect(f,E)},k.useId=function(){return F.H.useId()},k.useImperativeHandle=function(f,E,M){return F.H.useImperativeHandle(f,E,M)},k.useInsertionEffect=function(f,E){return F.H.useInsertionEffect(f,E)},k.useLayoutEffect=function(f,E){return F.H.useLayoutEffect(f,E)},k.useMemo=function(f,E){return F.H.useMemo(f,E)},k.useOptimistic=function(f,E){return F.H.useOptimistic(f,E)},k.useReducer=function(f,E,M){return F.H.useReducer(f,E,M)},k.useRef=function(f){return F.H.useRef(f)},k.useState=function(f){return F.H.useState(f)},k.useSyncExternalStore=function(f,E,M){return F.H.useSyncExternalStore(f,E,M)},k.useTransition=function(){return F.H.useTransition()},k.version="19.1.0",k}var Pr;function Xr(){return Pr||(Pr=1,Vt.exports=Vn()),Vt.exports}var Jt={exports:{}},fe={};/**
2
- * @license React
3
- * react-dom.production.js
4
- *
5
- * Copyright (c) Meta Platforms, Inc. and affiliates.
6
- *
7
- * This source code is licensed under the MIT license found in the
8
- * LICENSE file in the root directory of this source tree.
9
- */var Cr;function Jn(){if(Cr)return fe;Cr=1;var e=Xr();function t(s){var i="https://react.dev/errors/"+s;if(1<arguments.length){i+="?args[]="+encodeURIComponent(arguments[1]);for(var h=2;h<arguments.length;h++)i+="&args[]="+encodeURIComponent(arguments[h])}return"Minified React error #"+s+"; visit "+i+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function r(){}var n={d:{f:r,r:function(){throw Error(t(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},a=Symbol.for("react.portal");function l(s,i,h){var p=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:a,key:p==null?null:""+p,children:s,containerInfo:i,implementation:h}}var o=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function d(s,i){if(s==="font")return"";if(typeof i=="string")return i==="use-credentials"?i:""}return fe.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=n,fe.createPortal=function(s,i){var h=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!i||i.nodeType!==1&&i.nodeType!==9&&i.nodeType!==11)throw Error(t(299));return l(s,i,null,h)},fe.flushSync=function(s){var i=o.T,h=n.p;try{if(o.T=null,n.p=2,s)return s()}finally{o.T=i,n.p=h,n.d.f()}},fe.preconnect=function(s,i){typeof s=="string"&&(i?(i=i.crossOrigin,i=typeof i=="string"?i==="use-credentials"?i:"":void 0):i=null,n.d.C(s,i))},fe.prefetchDNS=function(s){typeof s=="string"&&n.d.D(s)},fe.preinit=function(s,i){if(typeof s=="string"&&i&&typeof i.as=="string"){var h=i.as,p=d(h,i.crossOrigin),R=typeof i.integrity=="string"?i.integrity:void 0,y=typeof i.fetchPriority=="string"?i.fetchPriority:void 0;h==="style"?n.d.S(s,typeof i.precedence=="string"?i.precedence:void 0,{crossOrigin:p,integrity:R,fetchPriority:y}):h==="script"&&n.d.X(s,{crossOrigin:p,integrity:R,fetchPriority:y,nonce:typeof i.nonce=="string"?i.nonce:void 0})}},fe.preinitModule=function(s,i){if(typeof s=="string")if(typeof i=="object"&&i!==null){if(i.as==null||i.as==="script"){var h=d(i.as,i.crossOrigin);n.d.M(s,{crossOrigin:h,integrity:typeof i.integrity=="string"?i.integrity:void 0,nonce:typeof i.nonce=="string"?i.nonce:void 0})}}else i==null&&n.d.M(s)},fe.preload=function(s,i){if(typeof s=="string"&&typeof i=="object"&&i!==null&&typeof i.as=="string"){var h=i.as,p=d(h,i.crossOrigin);n.d.L(s,h,{crossOrigin:p,integrity:typeof i.integrity=="string"?i.integrity:void 0,nonce:typeof i.nonce=="string"?i.nonce:void 0,type:typeof i.type=="string"?i.type:void 0,fetchPriority:typeof i.fetchPriority=="string"?i.fetchPriority:void 0,referrerPolicy:typeof i.referrerPolicy=="string"?i.referrerPolicy:void 0,imageSrcSet:typeof i.imageSrcSet=="string"?i.imageSrcSet:void 0,imageSizes:typeof i.imageSizes=="string"?i.imageSizes:void 0,media:typeof i.media=="string"?i.media:void 0})}},fe.preloadModule=function(s,i){if(typeof s=="string")if(i){var h=d(i.as,i.crossOrigin);n.d.m(s,{as:typeof i.as=="string"&&i.as!=="script"?i.as:void 0,crossOrigin:h,integrity:typeof i.integrity=="string"?i.integrity:void 0})}else n.d.m(s)},fe.requestFormReset=function(s){n.d.r(s)},fe.unstable_batchedUpdates=function(s,i){return s(i)},fe.useFormState=function(s,i,h){return o.H.useFormState(s,i,h)},fe.useFormStatus=function(){return o.H.useHostTransitionStatus()},fe.version="19.1.0",fe}var xr;function Gn(){if(xr)return Jt.exports;xr=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),Jt.exports=Jn(),Jt.exports}var g=Xr();const Xn=Kr(g),qr=zn({__proto__:null,default:Xn},[g]);var qn=Gn();const ei=Kr(qn);/**
10
- * @remix-run/router v1.19.2
11
- *
12
- * Copyright (c) Remix Software Inc.
13
- *
14
- * This source code is licensed under the MIT license found in the
15
- * LICENSE.md file in the root directory of this source tree.
16
- *
17
- * @license MIT
18
- */function ee(){return ee=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ee.apply(this,arguments)}var Q;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(Q||(Q={}));const Tr="popstate";function Qr(e){e===void 0&&(e={});let{initialEntries:t=["/"],initialIndex:r,v5Compat:n=!1}=e,a;a=t.map((y,S)=>h(y,typeof y=="string"?null:y.state,S===0?"default":void 0));let l=s(r??a.length-1),o=Q.Pop,d=null;function s(y){return Math.min(Math.max(y,0),a.length-1)}function i(){return a[l]}function h(y,S,P){S===void 0&&(S=null);let _=lt(a?i().pathname:"/",y,S,P);return Ke(_.pathname.charAt(0)==="/","relative pathnames are not supported in memory history: "+JSON.stringify(y)),_}function p(y){return typeof y=="string"?y:Ne(y)}return{get index(){return l},get action(){return o},get location(){return i()},createHref:p,createURL(y){return new URL(p(y),"http://localhost")},encodeLocation(y){let S=typeof y=="string"?Pe(y):y;return{pathname:S.pathname||"",search:S.search||"",hash:S.hash||""}},push(y,S){o=Q.Push;let P=h(y,S);l+=1,a.splice(l,a.length,P),n&&d&&d({action:o,location:P,delta:1})},replace(y,S){o=Q.Replace;let P=h(y,S);a[l]=P,n&&d&&d({action:o,location:P,delta:0})},go(y){o=Q.Pop;let S=s(l+y),P=a[S];l=S,d&&d({action:o,location:P,delta:y})},listen(y){return d=y,()=>{d=null}}}}function Qn(e){e===void 0&&(e={});function t(n,a){let{pathname:l,search:o,hash:d}=n.location;return lt("",{pathname:l,search:o,hash:d},a.state&&a.state.usr||null,a.state&&a.state.key||"default")}function r(n,a){return typeof a=="string"?a:Ne(a)}return ea(t,r,null,e)}function j(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Ke(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function Zn(){return Math.random().toString(36).substr(2,8)}function Dr(e,t){return{usr:e.state,key:e.key,idx:t}}function lt(e,t,r,n){return r===void 0&&(r=null),ee({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Pe(t):t,{state:r,key:t&&t.key||n||Zn()})}function Ne(e){let{pathname:t="/",search:r="",hash:n=""}=e;return r&&r!=="?"&&(t+=r.charAt(0)==="?"?r:"?"+r),n&&n!=="#"&&(t+=n.charAt(0)==="#"?n:"#"+n),t}function Pe(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substr(r),e=e.substr(0,r));let n=e.indexOf("?");n>=0&&(t.search=e.substr(n),e=e.substr(0,n)),e&&(t.pathname=e)}return t}function ea(e,t,r,n){n===void 0&&(n={});let{window:a=document.defaultView,v5Compat:l=!1}=n,o=a.history,d=Q.Pop,s=null,i=h();i==null&&(i=0,o.replaceState(ee({},o.state,{idx:i}),""));function h(){return(o.state||{idx:null}).idx}function p(){d=Q.Pop;let _=h(),z=_==null?null:_-i;i=_,s&&s({action:d,location:P.location,delta:z})}function R(_,z){d=Q.Push;let U=lt(P.location,_,z);i=h()+1;let $=Dr(U,i),I=P.createHref(U);try{o.pushState($,"",I)}catch(F){if(F instanceof DOMException&&F.name==="DataCloneError")throw F;a.location.assign(I)}l&&s&&s({action:d,location:P.location,delta:1})}function y(_,z){d=Q.Replace;let U=lt(P.location,_,z);i=h();let $=Dr(U,i),I=P.createHref(U);o.replaceState($,"",I),l&&s&&s({action:d,location:P.location,delta:0})}function S(_){let z=a.location.origin!=="null"?a.location.origin:a.location.href,U=typeof _=="string"?_:Ne(_);return U=U.replace(/ $/,"%20"),j(z,"No window.location.(origin|href) available to create URL for href: "+U),new URL(U,z)}let P={get action(){return d},get location(){return e(a,o)},listen(_){if(s)throw new Error("A history only accepts one active listener");return a.addEventListener(Tr,p),s=_,()=>{a.removeEventListener(Tr,p),s=null}},createHref(_){return t(a,_)},createURL:S,encodeLocation(_){let z=S(_);return{pathname:z.pathname,search:z.search,hash:z.hash}},push:R,replace:y,go(_){return o.go(_)}};return P}var G;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(G||(G={}));const ta=new Set(["lazy","caseSensitive","path","id","index","children"]);function ra(e){return e.index===!0}function mt(e,t,r,n){return r===void 0&&(r=[]),n===void 0&&(n={}),e.map((a,l)=>{let o=[...r,String(l)],d=typeof a.id=="string"?a.id:o.join("-");if(j(a.index!==!0||!a.children,"Cannot specify children on an index route"),j(!n[d],'Found a route id collision on id "'+d+`". Route id's must be globally unique within Data Router usages`),ra(a)){let s=ee({},a,t(a),{id:d});return n[d]=s,s}else{let s=ee({},a,t(a),{id:d,children:void 0});return n[d]=s,a.children&&(s.children=mt(a.children,t,o,n)),s}})}function $e(e,t,r){return r===void 0&&(r="/"),Mt(e,t,r,!1)}function Mt(e,t,r,n){let a=typeof t=="string"?Pe(t):t,l=_e(a.pathname||"/",r);if(l==null)return null;let o=en(e);na(o);let d=null;for(let s=0;d==null&&s<o.length;++s){let i=rn(l);d=da(o[s],i,n)}return d}function Zr(e,t){let{route:r,pathname:n,params:a}=e;return{id:r.id,pathname:n,params:a,data:t[r.id],handle:r.handle}}function en(e,t,r,n){t===void 0&&(t=[]),r===void 0&&(r=[]),n===void 0&&(n="");let a=(l,o,d)=>{let s={relativePath:d===void 0?l.path||"":d,caseSensitive:l.caseSensitive===!0,childrenIndex:o,route:l};s.relativePath.startsWith("/")&&(j(s.relativePath.startsWith(n),'Absolute route path "'+s.relativePath+'" nested under path '+('"'+n+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),s.relativePath=s.relativePath.slice(n.length));let i=Ae([n,s.relativePath]),h=r.concat(s);l.children&&l.children.length>0&&(j(l.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+i+'".')),en(l.children,t,h,i)),!(l.path==null&&!l.index)&&t.push({path:i,score:ca(i,l.index),routesMeta:h})};return e.forEach((l,o)=>{var d;if(l.path===""||!((d=l.path)!=null&&d.includes("?")))a(l,o);else for(let s of tn(l.path))a(l,o,s)}),t}function tn(e){let t=e.split("/");if(t.length===0)return[];let[r,...n]=t,a=r.endsWith("?"),l=r.replace(/\?$/,"");if(n.length===0)return a?[l,""]:[l];let o=tn(n.join("/")),d=[];return d.push(...o.map(s=>s===""?l:[l,s].join("/"))),a&&d.push(...o),d.map(s=>e.startsWith("/")&&s===""?"/":s)}function na(e){e.sort((t,r)=>t.score!==r.score?r.score-t.score:fa(t.routesMeta.map(n=>n.childrenIndex),r.routesMeta.map(n=>n.childrenIndex)))}const aa=/^:[\w-]+$/,oa=3,ia=2,la=1,sa=10,ua=-2,Lr=e=>e==="*";function ca(e,t){let r=e.split("/"),n=r.length;return r.some(Lr)&&(n+=ua),t&&(n+=ia),r.filter(a=>!Lr(a)).reduce((a,l)=>a+(aa.test(l)?oa:l===""?la:sa),n)}function fa(e,t){return e.length===t.length&&e.slice(0,-1).every((n,a)=>n===t[a])?e[e.length-1]-t[t.length-1]:0}function da(e,t,r){r===void 0&&(r=!1);let{routesMeta:n}=e,a={},l="/",o=[];for(let d=0;d<n.length;++d){let s=n[d],i=d===n.length-1,h=l==="/"?t:t.slice(l.length)||"/",p=st({path:s.relativePath,caseSensitive:s.caseSensitive,end:i},h),R=s.route;if(!p&&i&&r&&!n[n.length-1].route.index&&(p=st({path:s.relativePath,caseSensitive:s.caseSensitive,end:!1},h)),!p)return null;Object.assign(a,p.params),o.push({params:a,pathname:Ae([l,p.pathname]),pathnameBase:va(Ae([l,p.pathnameBase])),route:R}),p.pathnameBase!=="/"&&(l=Ae([l,p.pathnameBase]))}return o}function ha(e,t){t===void 0&&(t={});let r=e;r.endsWith("*")&&r!=="*"&&!r.endsWith("/*")&&(Ke(!1,'Route path "'+r+'" will be treated as if it were '+('"'+r.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+r.replace(/\*$/,"/*")+'".')),r=r.replace(/\*$/,"/*"));const n=r.startsWith("/")?"/":"",a=o=>o==null?"":typeof o=="string"?o:String(o),l=r.split(/\/+/).map((o,d,s)=>{if(d===s.length-1&&o==="*")return a(t["*"]);const h=o.match(/^:([\w-]+)(\??)$/);if(h){const[,p,R]=h;let y=t[p];return j(R==="?"||y!=null,'Missing ":'+p+'" param'),a(y)}return o.replace(/\?$/g,"")}).filter(o=>!!o);return n+l.join("/")}function st(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[r,n]=pa(e.path,e.caseSensitive,e.end),a=t.match(r);if(!a)return null;let l=a[0],o=l.replace(/(.)\/+$/,"$1"),d=a.slice(1);return{params:n.reduce((i,h,p)=>{let{paramName:R,isOptional:y}=h;if(R==="*"){let P=d[p]||"";o=l.slice(0,l.length-P.length).replace(/(.)\/+$/,"$1")}const S=d[p];return y&&!S?i[R]=void 0:i[R]=(S||"").replace(/%2F/g,"/"),i},{}),pathname:l,pathnameBase:o,pattern:e}}function pa(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!0),Ke(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let n=[],a="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(o,d,s)=>(n.push({paramName:d,isOptional:s!=null}),s?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(n.push({paramName:"*"}),a+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?a+="\\/*$":e!==""&&e!=="/"&&(a+="(?:(?=\\/|$))"),[new RegExp(a,t?void 0:"i"),n]}function rn(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Ke(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function _e(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,n=e.charAt(r);return n&&n!=="/"?null:e.slice(r)||"/"}function nn(e,t){t===void 0&&(t="/");let{pathname:r,search:n="",hash:a=""}=typeof e=="string"?Pe(e):e;return{pathname:r?r.startsWith("/")?r:ma(r,t):t,search:ga(n),hash:ya(a)}}function ma(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(a=>{a===".."?r.length>1&&r.pop():a!=="."&&r.push(a)}),r.length>1?r.join("/"):"/"}function Gt(e,t,r,n){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(n)+"]. Please separate it out to the ")+("`to."+r+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function an(e){return e.filter((t,r)=>r===0||t.route.path&&t.route.path.length>0)}function It(e,t){let r=an(e);return t?r.map((n,a)=>a===r.length-1?n.pathname:n.pathnameBase):r.map(n=>n.pathnameBase)}function Ft(e,t,r,n){n===void 0&&(n=!1);let a;typeof e=="string"?a=Pe(e):(a=ee({},e),j(!a.pathname||!a.pathname.includes("?"),Gt("?","pathname","search",a)),j(!a.pathname||!a.pathname.includes("#"),Gt("#","pathname","hash",a)),j(!a.search||!a.search.includes("#"),Gt("#","search","hash",a)));let l=e===""||a.pathname==="",o=l?"/":a.pathname,d;if(o==null)d=r;else{let p=t.length-1;if(!n&&o.startsWith("..")){let R=o.split("/");for(;R[0]==="..";)R.shift(),p-=1;a.pathname=R.join("/")}d=p>=0?t[p]:"/"}let s=nn(a,d),i=o&&o!=="/"&&o.endsWith("/"),h=(l||o===".")&&r.endsWith("/");return!s.pathname.endsWith("/")&&(i||h)&&(s.pathname+="/"),s}const Ae=e=>e.join("/").replace(/\/\/+/g,"/"),va=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),ga=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,ya=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e,ba=function(t,r){r===void 0&&(r={});let n=typeof r=="number"?{status:r}:r,a=new Headers(n.headers);return a.has("Content-Type")||a.set("Content-Type","application/json; charset=utf-8"),new Response(JSON.stringify(t),ee({},n,{headers:a}))};class jt extends Error{}class Ea{constructor(t,r){this.pendingKeysSet=new Set,this.subscribers=new Set,this.deferredKeys=[],j(t&&typeof t=="object"&&!Array.isArray(t),"defer() only accepts plain objects");let n;this.abortPromise=new Promise((l,o)=>n=o),this.controller=new AbortController;let a=()=>n(new jt("Deferred data aborted"));this.unlistenAbortSignal=()=>this.controller.signal.removeEventListener("abort",a),this.controller.signal.addEventListener("abort",a),this.data=Object.entries(t).reduce((l,o)=>{let[d,s]=o;return Object.assign(l,{[d]:this.trackPromise(d,s)})},{}),this.done&&this.unlistenAbortSignal(),this.init=r}trackPromise(t,r){if(!(r instanceof Promise))return r;this.deferredKeys.push(t),this.pendingKeysSet.add(t);let n=Promise.race([r,this.abortPromise]).then(a=>this.onSettle(n,t,void 0,a),a=>this.onSettle(n,t,a));return n.catch(()=>{}),Object.defineProperty(n,"_tracked",{get:()=>!0}),n}onSettle(t,r,n,a){if(this.controller.signal.aborted&&n instanceof jt)return this.unlistenAbortSignal(),Object.defineProperty(t,"_error",{get:()=>n}),Promise.reject(n);if(this.pendingKeysSet.delete(r),this.done&&this.unlistenAbortSignal(),n===void 0&&a===void 0){let l=new Error('Deferred data for key "'+r+'" resolved/rejected with `undefined`, you must resolve/reject with a value or `null`.');return Object.defineProperty(t,"_error",{get:()=>l}),this.emit(!1,r),Promise.reject(l)}return a===void 0?(Object.defineProperty(t,"_error",{get:()=>n}),this.emit(!1,r),Promise.reject(n)):(Object.defineProperty(t,"_data",{get:()=>a}),this.emit(!1,r),a)}emit(t,r){this.subscribers.forEach(n=>n(t,r))}subscribe(t){return this.subscribers.add(t),()=>this.subscribers.delete(t)}cancel(){this.controller.abort(),this.pendingKeysSet.forEach((t,r)=>this.pendingKeysSet.delete(r)),this.emit(!0)}async resolveData(t){let r=!1;if(!this.done){let n=()=>this.cancel();t.addEventListener("abort",n),r=await new Promise(a=>{this.subscribe(l=>{t.removeEventListener("abort",n),(l||this.done)&&a(l)})})}return r}get done(){return this.pendingKeysSet.size===0}get unwrappedData(){return j(this.data!==null&&this.done,"Can only unwrap data on initialized and settled deferreds"),Object.entries(this.data).reduce((t,r)=>{let[n,a]=r;return Object.assign(t,{[n]:wa(a)})},{})}get pendingKeys(){return Array.from(this.pendingKeysSet)}}function Ra(e){return e instanceof Promise&&e._tracked===!0}function wa(e){if(!Ra(e))return e;if(e._error)throw e._error;return e._data}const Sa=function(t,r){r===void 0&&(r={});let n=typeof r=="number"?{status:r}:r;return new Ea(t,n)},or=function(t,r){r===void 0&&(r=302);let n=r;typeof n=="number"?n={status:n}:typeof n.status>"u"&&(n.status=302);let a=new Headers(n.headers);return a.set("Location",t),new Response(null,ee({},n,{headers:a}))},_a=(e,t)=>{let r=or(e,t);return r.headers.set("X-Remix-Reload-Document","true"),r},Pa=(e,t)=>{let r=or(e,t);return r.headers.set("X-Remix-Replace","true"),r};class er{constructor(t,r,n,a){a===void 0&&(a=!1),this.status=t,this.statusText=r||"",this.internal=a,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}}function gt(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const on=["post","put","patch","delete"],Ca=new Set(on),xa=["get",...on],Ta=new Set(xa),Da=new Set([301,302,303,307,308]),La=new Set([307,308]),Xt={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},Oa={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},at={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},ir=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Ma=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),ln="remix-router-transitions";function ja(e){const t=e.window?e.window:typeof window<"u"?window:void 0,r=typeof t<"u"&&typeof t.document<"u"&&typeof t.document.createElement<"u",n=!r;j(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let a;if(e.mapRouteProperties)a=e.mapRouteProperties;else if(e.detectErrorBoundary){let u=e.detectErrorBoundary;a=c=>({hasErrorBoundary:u(c)})}else a=Ma;let l={},o=mt(e.routes,a,void 0,l),d,s=e.basename||"/",i=e.unstable_dataStrategy||ka,h=e.unstable_patchRoutesOnNavigation,p=ee({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1,v7_skipActionErrorRevalidation:!1},e.future),R=null,y=new Set,S=1e3,P=new Set,_=null,z=null,U=null,$=e.hydrationData!=null,I=$e(o,e.history.location,s),F=null;if(I==null&&!h){let u=pe(404,{pathname:e.history.location.pathname}),{matches:c,route:m}=kr(o);I=c,F={[m.id]:u}}I&&!e.hydrationData&&_t(I,o,e.history.location.pathname).active&&(I=null);let se;if(I)if(I.some(u=>u.route.lazy))se=!1;else if(!I.some(u=>u.route.loader))se=!0;else if(p.v7_partialHydration){let u=e.hydrationData?e.hydrationData.loaderData:null,c=e.hydrationData?e.hydrationData.errors:null,m=b=>b.route.loader?typeof b.route.loader=="function"&&b.route.loader.hydrate===!0?!1:u&&u[b.route.id]!==void 0||c&&c[b.route.id]!==void 0:!0;if(c){let b=I.findIndex(C=>c[C.route.id]!==void 0);se=I.slice(0,b+1).every(m)}else se=I.every(m)}else se=e.hydrationData!=null;else if(se=!1,I=[],p.v7_partialHydration){let u=_t(null,o,e.history.location.pathname);u.active&&u.matches&&(I=u.matches)}let Ee,v={historyAction:e.history.action,location:e.history.location,matches:I,initialized:se,navigation:Xt,restoreScrollPosition:e.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||F,fetchers:new Map,blockers:new Map},V=Q.Pop,te=!1,K,ue=!1,de=new Map,ve=null,ge=!1,Re=!1,et=[],Ge=new Set,re=new Map,f=0,E=-1,M=new Map,L=new Set,H=new Map,X=new Map,A=new Set,ce=new Map,q=new Map,zt=new Map,Et;function Pn(){if(R=e.history.listen(u=>{let{action:c,location:m,delta:b}=u;if(Et){Et(),Et=void 0;return}Ke(q.size===0||b!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let C=br({currentLocation:v.location,nextLocation:m,historyAction:c});if(C&&b!=null){let D=new Promise(N=>{Et=N});e.history.go(b*-1),wt(C,{state:"blocked",location:m,proceed(){wt(C,{state:"proceeding",proceed:void 0,reset:void 0,location:m}),D.then(()=>e.history.go(b))},reset(){let N=new Map(v.blockers);N.set(C,at),he({blockers:N})}});return}return Xe(c,m)}),r){eo(t,de);let u=()=>to(t,de);t.addEventListener("pagehide",u),ve=()=>t.removeEventListener("pagehide",u)}return v.initialized||Xe(Q.Pop,v.location,{initialHydration:!0}),Ee}function Cn(){R&&R(),ve&&ve(),y.clear(),K&&K.abort(),v.fetchers.forEach((u,c)=>Rt(c)),v.blockers.forEach((u,c)=>yr(c))}function xn(u){return y.add(u),()=>y.delete(u)}function he(u,c){c===void 0&&(c={}),v=ee({},v,u);let m=[],b=[];p.v7_fetcherPersist&&v.fetchers.forEach((C,D)=>{C.state==="idle"&&(A.has(D)?b.push(D):m.push(D))}),[...y].forEach(C=>C(v,{deletedFetchers:b,unstable_viewTransitionOpts:c.viewTransitionOpts,unstable_flushSync:c.flushSync===!0})),p.v7_fetcherPersist&&(m.forEach(C=>v.fetchers.delete(C)),b.forEach(C=>Rt(C)))}function tt(u,c,m){var b,C;let{flushSync:D}=m===void 0?{}:m,N=v.actionData!=null&&v.navigation.formMethod!=null&&Se(v.navigation.formMethod)&&v.navigation.state==="loading"&&((b=u.state)==null?void 0:b._isRedirect)!==!0,w;c.actionData?Object.keys(c.actionData).length>0?w=c.actionData:w=null:N?w=v.actionData:w=null;let O=c.loaderData?Ir(v.loaderData,c.loaderData,c.matches||[],c.errors):v.loaderData,x=v.blockers;x.size>0&&(x=new Map(x),x.forEach((J,Z)=>x.set(Z,at)));let T=te===!0||v.navigation.formMethod!=null&&Se(v.navigation.formMethod)&&((C=u.state)==null?void 0:C._isRedirect)!==!0;d&&(o=d,d=void 0),ge||V===Q.Pop||(V===Q.Push?e.history.push(u,u.state):V===Q.Replace&&e.history.replace(u,u.state));let Y;if(V===Q.Pop){let J=de.get(v.location.pathname);J&&J.has(u.pathname)?Y={currentLocation:v.location,nextLocation:u}:de.has(u.pathname)&&(Y={currentLocation:u,nextLocation:v.location})}else if(ue){let J=de.get(v.location.pathname);J?J.add(u.pathname):(J=new Set([u.pathname]),de.set(v.location.pathname,J)),Y={currentLocation:v.location,nextLocation:u}}he(ee({},c,{actionData:w,loaderData:O,historyAction:V,location:u,initialized:!0,navigation:Xt,revalidation:"idle",restoreScrollPosition:Rr(u,c.matches||v.matches),preventScrollReset:T,blockers:x}),{viewTransitionOpts:Y,flushSync:D===!0}),V=Q.Pop,te=!1,ue=!1,ge=!1,Re=!1,et=[]}async function fr(u,c){if(typeof u=="number"){e.history.go(u);return}let m=tr(v.location,v.matches,s,p.v7_prependBasename,u,p.v7_relativeSplatPath,c?.fromRouteId,c?.relative),{path:b,submission:C,error:D}=Or(p.v7_normalizeFormMethod,!1,m,c),N=v.location,w=lt(v.location,b,c&&c.state);w=ee({},w,e.history.encodeLocation(w));let O=c&&c.replace!=null?c.replace:void 0,x=Q.Push;O===!0?x=Q.Replace:O===!1||C!=null&&Se(C.formMethod)&&C.formAction===v.location.pathname+v.location.search&&(x=Q.Replace);let T=c&&"preventScrollReset"in c?c.preventScrollReset===!0:void 0,Y=(c&&c.unstable_flushSync)===!0,J=br({currentLocation:N,nextLocation:w,historyAction:x});if(J){wt(J,{state:"blocked",location:w,proceed(){wt(J,{state:"proceeding",proceed:void 0,reset:void 0,location:w}),fr(u,c)},reset(){let Z=new Map(v.blockers);Z.set(J,at),he({blockers:Z})}});return}return await Xe(x,w,{submission:C,pendingError:D,preventScrollReset:T,replace:c&&c.replace,enableViewTransition:c&&c.unstable_viewTransition,flushSync:Y})}function Tn(){if($t(),he({revalidation:"loading"}),v.navigation.state!=="submitting"){if(v.navigation.state==="idle"){Xe(v.historyAction,v.location,{startUninterruptedRevalidation:!0});return}Xe(V||v.historyAction,v.navigation.location,{overrideNavigation:v.navigation,enableViewTransition:ue===!0})}}async function Xe(u,c,m){K&&K.abort(),K=null,V=u,ge=(m&&m.startUninterruptedRevalidation)===!0,Fn(v.location,v.matches),te=(m&&m.preventScrollReset)===!0,ue=(m&&m.enableViewTransition)===!0;let b=d||o,C=m&&m.overrideNavigation,D=$e(b,c,s),N=(m&&m.flushSync)===!0,w=_t(D,b,c.pathname);if(w.active&&w.matches&&(D=w.matches),!D){let{error:W,notFoundMatches:le,route:ie}=Wt(c.pathname);tt(c,{matches:le,loaderData:{},errors:{[ie.id]:W}},{flushSync:N});return}if(v.initialized&&!Re&&Ka(v.location,c)&&!(m&&m.submission&&Se(m.submission.formMethod))){tt(c,{matches:D},{flushSync:N});return}K=new AbortController;let O=nt(e.history,c,K.signal,m&&m.submission),x;if(m&&m.pendingError)x=[ot(D).route.id,{type:G.error,error:m.pendingError}];else if(m&&m.submission&&Se(m.submission.formMethod)){let W=await Dn(O,c,m.submission,D,w.active,{replace:m.replace,flushSync:N});if(W.shortCircuited)return;if(W.pendingActionResult){let[le,ie]=W.pendingActionResult;if(be(ie)&&gt(ie.error)&&ie.error.status===404){K=null,tt(c,{matches:W.matches,loaderData:{},errors:{[le]:ie.error}});return}}D=W.matches||D,x=W.pendingActionResult,C=qt(c,m.submission),N=!1,w.active=!1,O=nt(e.history,O.url,O.signal)}let{shortCircuited:T,matches:Y,loaderData:J,errors:Z}=await Ln(O,c,D,w.active,C,m&&m.submission,m&&m.fetcherSubmission,m&&m.replace,m&&m.initialHydration===!0,N,x);T||(K=null,tt(c,ee({matches:Y||D},Fr(x),{loaderData:J,errors:Z})))}async function Dn(u,c,m,b,C,D){D===void 0&&(D={}),$t();let N=Qa(c,m);if(he({navigation:N},{flushSync:D.flushSync===!0}),C){let x=await Pt(b,c.pathname,u.signal);if(x.type==="aborted")return{shortCircuited:!0};if(x.type==="error"){let{boundaryId:T,error:Y}=St(c.pathname,x);return{matches:x.partialMatches,pendingActionResult:[T,{type:G.error,error:Y}]}}else if(x.matches)b=x.matches;else{let{notFoundMatches:T,error:Y,route:J}=Wt(c.pathname);return{matches:T,pendingActionResult:[J.id,{type:G.error,error:Y}]}}}let w,O=pt(b,c);if(!O.route.action&&!O.route.lazy)w={type:G.error,error:pe(405,{method:u.method,pathname:c.pathname,routeId:O.route.id})};else if(w=(await ft("action",v,u,[O],b,null))[O.route.id],u.signal.aborted)return{shortCircuited:!0};if(Ze(w)){let x;return D&&D.replace!=null?x=D.replace:x=Ur(w.response.headers.get("Location"),new URL(u.url),s)===v.location.pathname+v.location.search,await qe(u,w,!0,{submission:m,replace:x}),{shortCircuited:!0}}if(We(w))throw pe(400,{type:"defer-action"});if(be(w)){let x=ot(b,O.route.id);return(D&&D.replace)!==!0&&(V=Q.Push),{matches:b,pendingActionResult:[x.route.id,w]}}return{matches:b,pendingActionResult:[O.route.id,w]}}async function Ln(u,c,m,b,C,D,N,w,O,x,T){let Y=C||qt(c,D),J=D||N||Hr(Y),Z=!ge&&(!p.v7_partialHydration||!O);if(b){if(Z){let ne=dr(T);he(ee({navigation:Y},ne!==void 0?{actionData:ne}:{}),{flushSync:x})}let B=await Pt(m,c.pathname,u.signal);if(B.type==="aborted")return{shortCircuited:!0};if(B.type==="error"){let{boundaryId:ne,error:ye}=St(c.pathname,B);return{matches:B.partialMatches,loaderData:{},errors:{[ne]:ye}}}else if(B.matches)m=B.matches;else{let{error:ne,notFoundMatches:ye,route:ae}=Wt(c.pathname);return{matches:ye,loaderData:{},errors:{[ae.id]:ne}}}}let W=d||o,[le,ie]=Mr(e.history,v,m,J,c,p.v7_partialHydration&&O===!0,p.v7_skipActionErrorRevalidation,Re,et,Ge,A,H,L,W,s,T);if(Kt(B=>!(m&&m.some(ne=>ne.route.id===B))||le&&le.some(ne=>ne.route.id===B)),E=++f,le.length===0&&ie.length===0){let B=vr();return tt(c,ee({matches:m,loaderData:{},errors:T&&be(T[1])?{[T[0]]:T[1].error}:null},Fr(T),B?{fetchers:new Map(v.fetchers)}:{}),{flushSync:x}),{shortCircuited:!0}}if(Z){let B={};if(!b){B.navigation=Y;let ne=dr(T);ne!==void 0&&(B.actionData=ne)}ie.length>0&&(B.fetchers=On(ie)),he(B,{flushSync:x})}ie.forEach(B=>{re.has(B.key)&&Be(B.key),B.controller&&re.set(B.key,B.controller)});let dt=()=>ie.forEach(B=>Be(B.key));K&&K.signal.addEventListener("abort",dt);let{loaderResults:Oe,fetcherResults:rt}=await hr(v,m,le,ie,u);if(u.signal.aborted)return{shortCircuited:!0};K&&K.signal.removeEventListener("abort",dt),ie.forEach(B=>re.delete(B.key));let He=Lt(Oe);if(He)return await qe(u,He.result,!0,{replace:w}),{shortCircuited:!0};if(He=Lt(rt),He)return L.add(He.key),await qe(u,He.result,!0,{replace:w}),{shortCircuited:!0};let{loaderData:Ct,errors:Me}=Nr(v,m,le,Oe,T,ie,rt,ce);ce.forEach((B,ne)=>{B.subscribe(ye=>{(ye||B.done)&&ce.delete(ne)})}),p.v7_partialHydration&&O&&v.errors&&Object.entries(v.errors).filter(B=>{let[ne]=B;return!le.some(ye=>ye.route.id===ne)}).forEach(B=>{let[ne,ye]=B;Me=Object.assign(Me||{},{[ne]:ye})});let xt=vr(),Tt=gr(E),Dt=xt||Tt||ie.length>0;return ee({matches:m,loaderData:Ct,errors:Me},Dt?{fetchers:new Map(v.fetchers)}:{})}function dr(u){if(u&&!be(u[1]))return{[u[0]]:u[1].data};if(v.actionData)return Object.keys(v.actionData).length===0?null:v.actionData}function On(u){return u.forEach(c=>{let m=v.fetchers.get(c.key),b=ht(void 0,m?m.data:void 0);v.fetchers.set(c.key,b)}),new Map(v.fetchers)}function Mn(u,c,m,b){if(n)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");re.has(u)&&Be(u);let C=(b&&b.unstable_flushSync)===!0,D=d||o,N=tr(v.location,v.matches,s,p.v7_prependBasename,m,p.v7_relativeSplatPath,c,b?.relative),w=$e(D,N,s),O=_t(w,D,N);if(O.active&&O.matches&&(w=O.matches),!w){Le(u,c,pe(404,{pathname:N}),{flushSync:C});return}let{path:x,submission:T,error:Y}=Or(p.v7_normalizeFormMethod,!0,N,b);if(Y){Le(u,c,Y,{flushSync:C});return}let J=pt(w,x);if(te=(b&&b.preventScrollReset)===!0,T&&Se(T.formMethod)){jn(u,c,x,J,w,O.active,C,T);return}H.set(u,{routeId:c,path:x}),Un(u,c,x,J,w,O.active,C,T)}async function jn(u,c,m,b,C,D,N,w){$t(),H.delete(u);function O(ae){if(!ae.route.action&&!ae.route.lazy){let je=pe(405,{method:w.formMethod,pathname:m,routeId:c});return Le(u,c,je,{flushSync:N}),!0}return!1}if(!D&&O(b))return;let x=v.fetchers.get(u);ke(u,Za(w,x),{flushSync:N});let T=new AbortController,Y=nt(e.history,m,T.signal,w);if(D){let ae=await Pt(C,m,Y.signal);if(ae.type==="aborted")return;if(ae.type==="error"){let{error:je}=St(m,ae);Le(u,c,je,{flushSync:N});return}else if(ae.matches){if(C=ae.matches,b=pt(C,m),O(b))return}else{Le(u,c,pe(404,{pathname:m}),{flushSync:N});return}}re.set(u,T);let J=f,W=(await ft("action",v,Y,[b],C,u))[b.route.id];if(Y.signal.aborted){re.get(u)===T&&re.delete(u);return}if(p.v7_fetcherPersist&&A.has(u)){if(Ze(W)||be(W)){ke(u,ze(void 0));return}}else{if(Ze(W))if(re.delete(u),E>J){ke(u,ze(void 0));return}else return L.add(u),ke(u,ht(w)),qe(Y,W,!1,{fetcherSubmission:w});if(be(W)){Le(u,c,W.error);return}}if(We(W))throw pe(400,{type:"defer-action"});let le=v.navigation.location||v.location,ie=nt(e.history,le,T.signal),dt=d||o,Oe=v.navigation.state!=="idle"?$e(dt,v.navigation.location,s):v.matches;j(Oe,"Didn't find any matches after fetcher action");let rt=++f;M.set(u,rt);let He=ht(w,W.data);v.fetchers.set(u,He);let[Ct,Me]=Mr(e.history,v,Oe,w,le,!1,p.v7_skipActionErrorRevalidation,Re,et,Ge,A,H,L,dt,s,[b.route.id,W]);Me.filter(ae=>ae.key!==u).forEach(ae=>{let je=ae.key,Sr=v.fetchers.get(je),Hn=ht(void 0,Sr?Sr.data:void 0);v.fetchers.set(je,Hn),re.has(je)&&Be(je),ae.controller&&re.set(je,ae.controller)}),he({fetchers:new Map(v.fetchers)});let xt=()=>Me.forEach(ae=>Be(ae.key));T.signal.addEventListener("abort",xt);let{loaderResults:Tt,fetcherResults:Dt}=await hr(v,Oe,Ct,Me,ie);if(T.signal.aborted)return;T.signal.removeEventListener("abort",xt),M.delete(u),re.delete(u),Me.forEach(ae=>re.delete(ae.key));let B=Lt(Tt);if(B)return qe(ie,B.result,!1);if(B=Lt(Dt),B)return L.add(B.key),qe(ie,B.result,!1);let{loaderData:ne,errors:ye}=Nr(v,Oe,Ct,Tt,void 0,Me,Dt,ce);if(v.fetchers.has(u)){let ae=ze(W.data);v.fetchers.set(u,ae)}gr(rt),v.navigation.state==="loading"&&rt>E?(j(V,"Expected pending action"),K&&K.abort(),tt(v.navigation.location,{matches:Oe,loaderData:ne,errors:ye,fetchers:new Map(v.fetchers)})):(he({errors:ye,loaderData:Ir(v.loaderData,ne,Oe,ye),fetchers:new Map(v.fetchers)}),Re=!1)}async function Un(u,c,m,b,C,D,N,w){let O=v.fetchers.get(u);ke(u,ht(w,O?O.data:void 0),{flushSync:N});let x=new AbortController,T=nt(e.history,m,x.signal);if(D){let W=await Pt(C,m,T.signal);if(W.type==="aborted")return;if(W.type==="error"){let{error:le}=St(m,W);Le(u,c,le,{flushSync:N});return}else if(W.matches)C=W.matches,b=pt(C,m);else{Le(u,c,pe(404,{pathname:m}),{flushSync:N});return}}re.set(u,x);let Y=f,Z=(await ft("loader",v,T,[b],C,u))[b.route.id];if(We(Z)&&(Z=await lr(Z,T.signal,!0)||Z),re.get(u)===x&&re.delete(u),!T.signal.aborted){if(A.has(u)){ke(u,ze(void 0));return}if(Ze(Z))if(E>Y){ke(u,ze(void 0));return}else{L.add(u),await qe(T,Z,!1);return}if(be(Z)){Le(u,c,Z.error);return}j(!We(Z),"Unhandled fetcher deferred data"),ke(u,ze(Z.data))}}async function qe(u,c,m,b){let{submission:C,fetcherSubmission:D,replace:N}=b===void 0?{}:b;c.response.headers.has("X-Remix-Revalidate")&&(Re=!0);let w=c.response.headers.get("Location");j(w,"Expected a Location header on the redirect Response"),w=Ur(w,new URL(u.url),s);let O=lt(v.location,w,{_isRedirect:!0});if(r){let W=!1;if(c.response.headers.has("X-Remix-Reload-Document"))W=!0;else if(ir.test(w)){const le=e.history.createURL(w);W=le.origin!==t.location.origin||_e(le.pathname,s)==null}if(W){N?t.location.replace(w):t.location.assign(w);return}}K=null;let x=N===!0||c.response.headers.has("X-Remix-Replace")?Q.Replace:Q.Push,{formMethod:T,formAction:Y,formEncType:J}=v.navigation;!C&&!D&&T&&Y&&J&&(C=Hr(v.navigation));let Z=C||D;if(La.has(c.response.status)&&Z&&Se(Z.formMethod))await Xe(x,O,{submission:ee({},Z,{formAction:w}),preventScrollReset:te,enableViewTransition:m?ue:void 0});else{let W=qt(O,C);await Xe(x,O,{overrideNavigation:W,fetcherSubmission:D,preventScrollReset:te,enableViewTransition:m?ue:void 0})}}async function ft(u,c,m,b,C,D){let N,w={};try{N=await Ba(i,u,c,m,b,C,D,l,a)}catch(O){return b.forEach(x=>{w[x.route.id]={type:G.error,error:O}}),w}for(let[O,x]of Object.entries(N))if(Va(x)){let T=x.result;w[O]={type:G.redirect,response:$a(T,m,O,C,s,p.v7_relativeSplatPath)}}else w[O]=await za(x);return w}async function hr(u,c,m,b,C){let D=u.matches,N=ft("loader",u,C,m,c,null),w=Promise.all(b.map(async T=>{if(T.matches&&T.match&&T.controller){let J=(await ft("loader",u,nt(e.history,T.path,T.controller.signal),[T.match],T.matches,T.key))[T.match.route.id];return{[T.key]:J}}else return Promise.resolve({[T.key]:{type:G.error,error:pe(404,{pathname:T.path})}})})),O=await N,x=(await w).reduce((T,Y)=>Object.assign(T,Y),{});return await Promise.all([Xa(c,O,C.signal,D,u.loaderData),qa(c,x,b)]),{loaderResults:O,fetcherResults:x}}function $t(){Re=!0,et.push(...Kt()),H.forEach((u,c)=>{re.has(c)&&(Ge.add(c),Be(c))})}function ke(u,c,m){m===void 0&&(m={}),v.fetchers.set(u,c),he({fetchers:new Map(v.fetchers)},{flushSync:(m&&m.flushSync)===!0})}function Le(u,c,m,b){b===void 0&&(b={});let C=ot(v.matches,c);Rt(u),he({errors:{[C.route.id]:m},fetchers:new Map(v.fetchers)},{flushSync:(b&&b.flushSync)===!0})}function pr(u){return p.v7_fetcherPersist&&(X.set(u,(X.get(u)||0)+1),A.has(u)&&A.delete(u)),v.fetchers.get(u)||Oa}function Rt(u){let c=v.fetchers.get(u);re.has(u)&&!(c&&c.state==="loading"&&M.has(u))&&Be(u),H.delete(u),M.delete(u),L.delete(u),A.delete(u),Ge.delete(u),v.fetchers.delete(u)}function An(u){if(p.v7_fetcherPersist){let c=(X.get(u)||0)-1;c<=0?(X.delete(u),A.add(u)):X.set(u,c)}else Rt(u);he({fetchers:new Map(v.fetchers)})}function Be(u){let c=re.get(u);j(c,"Expected fetch controller: "+u),c.abort(),re.delete(u)}function mr(u){for(let c of u){let m=pr(c),b=ze(m.data);v.fetchers.set(c,b)}}function vr(){let u=[],c=!1;for(let m of L){let b=v.fetchers.get(m);j(b,"Expected fetcher: "+m),b.state==="loading"&&(L.delete(m),u.push(m),c=!0)}return mr(u),c}function gr(u){let c=[];for(let[m,b]of M)if(b<u){let C=v.fetchers.get(m);j(C,"Expected fetcher: "+m),C.state==="loading"&&(Be(m),M.delete(m),c.push(m))}return mr(c),c.length>0}function Nn(u,c){let m=v.blockers.get(u)||at;return q.get(u)!==c&&q.set(u,c),m}function yr(u){v.blockers.delete(u),q.delete(u)}function wt(u,c){let m=v.blockers.get(u)||at;j(m.state==="unblocked"&&c.state==="blocked"||m.state==="blocked"&&c.state==="blocked"||m.state==="blocked"&&c.state==="proceeding"||m.state==="blocked"&&c.state==="unblocked"||m.state==="proceeding"&&c.state==="unblocked","Invalid blocker state transition: "+m.state+" -> "+c.state);let b=new Map(v.blockers);b.set(u,c),he({blockers:b})}function br(u){let{currentLocation:c,nextLocation:m,historyAction:b}=u;if(q.size===0)return;q.size>1&&Ke(!1,"A router only supports one blocker at a time");let C=Array.from(q.entries()),[D,N]=C[C.length-1],w=v.blockers.get(D);if(!(w&&w.state==="proceeding")&&N({currentLocation:c,nextLocation:m,historyAction:b}))return D}function Wt(u){let c=pe(404,{pathname:u}),m=d||o,{matches:b,route:C}=kr(m);return Kt(),{notFoundMatches:b,route:C,error:c}}function St(u,c){return{boundaryId:ot(c.partialMatches).route.id,error:pe(400,{type:"route-discovery",pathname:u,message:c.error!=null&&"message"in c.error?c.error:String(c.error)})}}function Kt(u){let c=[];return ce.forEach((m,b)=>{(!u||u(b))&&(m.cancel(),c.push(b),ce.delete(b))}),c}function In(u,c,m){if(_=u,U=c,z=m||null,!$&&v.navigation===Xt){$=!0;let b=Rr(v.location,v.matches);b!=null&&he({restoreScrollPosition:b})}return()=>{_=null,U=null,z=null}}function Er(u,c){return z&&z(u,c.map(b=>Zr(b,v.loaderData)))||u.key}function Fn(u,c){if(_&&U){let m=Er(u,c);_[m]=U()}}function Rr(u,c){if(_){let m=Er(u,c),b=_[m];if(typeof b=="number")return b}return null}function _t(u,c,m){if(h){if(P.has(m))return{active:!1,matches:u};if(u){if(Object.keys(u[0].params).length>0)return{active:!0,matches:Mt(c,m,s,!0)}}else return{active:!0,matches:Mt(c,m,s,!0)||[]}}return{active:!1,matches:null}}async function Pt(u,c,m){let b=u;for(;;){let C=d==null,D=d||o;try{await Ia(h,c,b,D,l,a,zt,m)}catch(O){return{type:"error",error:O,partialMatches:b}}finally{C&&(o=[...o])}if(m.aborted)return{type:"aborted"};let N=$e(D,c,s);if(N)return wr(c,P),{type:"success",matches:N};let w=Mt(D,c,s,!0);if(!w||b.length===w.length&&b.every((O,x)=>O.route.id===w[x].route.id))return wr(c,P),{type:"success",matches:null};b=w}}function wr(u,c){if(c.size>=S){let m=c.values().next().value;c.delete(m)}c.add(u)}function kn(u){l={},d=mt(u,a,void 0,l)}function Bn(u,c){let m=d==null;un(u,c,d||o,l,a),m&&(o=[...o],he({}))}return Ee={get basename(){return s},get future(){return p},get state(){return v},get routes(){return o},get window(){return t},initialize:Pn,subscribe:xn,enableScrollRestoration:In,navigate:fr,fetch:Mn,revalidate:Tn,createHref:u=>e.history.createHref(u),encodeLocation:u=>e.history.encodeLocation(u),getFetcher:pr,deleteFetcher:An,dispose:Cn,getBlocker:Nn,deleteBlocker:yr,patchRoutes:Bn,_internalFetchControllers:re,_internalActiveDeferreds:ce,_internalSetRoutes:kn},Ee}function Ua(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function tr(e,t,r,n,a,l,o,d){let s,i;if(o){s=[];for(let p of t)if(s.push(p),p.route.id===o){i=p;break}}else s=t,i=t[t.length-1];let h=Ft(a||".",It(s,l),_e(e.pathname,r)||e.pathname,d==="path");return a==null&&(h.search=e.search,h.hash=e.hash),(a==null||a===""||a===".")&&i&&i.route.index&&!sr(h.search)&&(h.search=h.search?h.search.replace(/^\?/,"?index&"):"?index"),n&&r!=="/"&&(h.pathname=h.pathname==="/"?r:Ae([r,h.pathname])),Ne(h)}function Or(e,t,r,n){if(!n||!Ua(n))return{path:r};if(n.formMethod&&!Ga(n.formMethod))return{path:r,error:pe(405,{method:n.formMethod})};let a=()=>({path:r,error:pe(400,{type:"invalid-body"})}),l=n.formMethod||"get",o=e?l.toUpperCase():l.toLowerCase(),d=cn(r);if(n.body!==void 0){if(n.formEncType==="text/plain"){if(!Se(o))return a();let R=typeof n.body=="string"?n.body:n.body instanceof FormData||n.body instanceof URLSearchParams?Array.from(n.body.entries()).reduce((y,S)=>{let[P,_]=S;return""+y+P+"="+_+`
19
- `},""):String(n.body);return{path:r,submission:{formMethod:o,formAction:d,formEncType:n.formEncType,formData:void 0,json:void 0,text:R}}}else if(n.formEncType==="application/json"){if(!Se(o))return a();try{let R=typeof n.body=="string"?JSON.parse(n.body):n.body;return{path:r,submission:{formMethod:o,formAction:d,formEncType:n.formEncType,formData:void 0,json:R,text:void 0}}}catch{return a()}}}j(typeof FormData=="function","FormData is not available in this environment");let s,i;if(n.formData)s=rr(n.formData),i=n.formData;else if(n.body instanceof FormData)s=rr(n.body),i=n.body;else if(n.body instanceof URLSearchParams)s=n.body,i=Ar(s);else if(n.body==null)s=new URLSearchParams,i=new FormData;else try{s=new URLSearchParams(n.body),i=Ar(s)}catch{return a()}let h={formMethod:o,formAction:d,formEncType:n&&n.formEncType||"application/x-www-form-urlencoded",formData:i,json:void 0,text:void 0};if(Se(h.formMethod))return{path:r,submission:h};let p=Pe(r);return t&&p.search&&sr(p.search)&&s.append("index",""),p.search="?"+s,{path:Ne(p),submission:h}}function Aa(e,t){let r=e;if(t){let n=e.findIndex(a=>a.route.id===t);n>=0&&(r=e.slice(0,n))}return r}function Mr(e,t,r,n,a,l,o,d,s,i,h,p,R,y,S,P){let _=P?be(P[1])?P[1].error:P[1].data:void 0,z=e.createURL(t.location),U=e.createURL(a),$=P&&be(P[1])?P[0]:void 0,I=$?Aa(r,$):r,F=P?P[1].statusCode:void 0,se=o&&F&&F>=400,Ee=I.filter((V,te)=>{let{route:K}=V;if(K.lazy)return!0;if(K.loader==null)return!1;if(l)return typeof K.loader!="function"||K.loader.hydrate?!0:t.loaderData[K.id]===void 0&&(!t.errors||t.errors[K.id]===void 0);if(Na(t.loaderData,t.matches[te],V)||s.some(ve=>ve===V.route.id))return!0;let ue=t.matches[te],de=V;return jr(V,ee({currentUrl:z,currentParams:ue.params,nextUrl:U,nextParams:de.params},n,{actionResult:_,actionStatus:F,defaultShouldRevalidate:se?!1:d||z.pathname+z.search===U.pathname+U.search||z.search!==U.search||sn(ue,de)}))}),v=[];return p.forEach((V,te)=>{if(l||!r.some(ge=>ge.route.id===V.routeId)||h.has(te))return;let K=$e(y,V.path,S);if(!K){v.push({key:te,routeId:V.routeId,path:V.path,matches:null,match:null,controller:null});return}let ue=t.fetchers.get(te),de=pt(K,V.path),ve=!1;R.has(te)?ve=!1:i.has(te)?(i.delete(te),ve=!0):ue&&ue.state!=="idle"&&ue.data===void 0?ve=d:ve=jr(de,ee({currentUrl:z,currentParams:t.matches[t.matches.length-1].params,nextUrl:U,nextParams:r[r.length-1].params},n,{actionResult:_,actionStatus:F,defaultShouldRevalidate:se?!1:d})),ve&&v.push({key:te,routeId:V.routeId,path:V.path,matches:K,match:de,controller:new AbortController})}),[Ee,v]}function Na(e,t,r){let n=!t||r.route.id!==t.route.id,a=e[r.route.id]===void 0;return n||a}function sn(e,t){let r=e.route.path;return e.pathname!==t.pathname||r!=null&&r.endsWith("*")&&e.params["*"]!==t.params["*"]}function jr(e,t){if(e.route.shouldRevalidate){let r=e.route.shouldRevalidate(t);if(typeof r=="boolean")return r}return t.defaultShouldRevalidate}async function Ia(e,t,r,n,a,l,o,d){let s=[t,...r.map(i=>i.route.id)].join("-");try{let i=o.get(s);i||(i=e({path:t,matches:r,patch:(h,p)=>{d.aborted||un(h,p,n,a,l)}}),o.set(s,i)),i&&Ya(i)&&await i}finally{o.delete(s)}}function un(e,t,r,n,a){if(e){var l;let o=n[e];j(o,"No route found to patch children into: routeId = "+e);let d=mt(t,a,[e,"patch",String(((l=o.children)==null?void 0:l.length)||"0")],n);o.children?o.children.push(...d):o.children=d}else{let o=mt(t,a,["patch",String(r.length||"0")],n);r.push(...o)}}async function Fa(e,t,r){if(!e.lazy)return;let n=await e.lazy();if(!e.lazy)return;let a=r[e.id];j(a,"No route found in manifest");let l={};for(let o in n){let s=a[o]!==void 0&&o!=="hasErrorBoundary";Ke(!s,'Route "'+a.id+'" has a static property "'+o+'" defined but its lazy function is also returning a value for this property. '+('The lazy route property "'+o+'" will be ignored.')),!s&&!ta.has(o)&&(l[o]=n[o])}Object.assign(a,l),Object.assign(a,ee({},t(a),{lazy:void 0}))}async function ka(e){let{matches:t}=e,r=t.filter(a=>a.shouldLoad);return(await Promise.all(r.map(a=>a.resolve()))).reduce((a,l,o)=>Object.assign(a,{[r[o].route.id]:l}),{})}async function Ba(e,t,r,n,a,l,o,d,s,i){let h=l.map(y=>y.route.lazy?Fa(y.route,s,d):void 0),p=l.map((y,S)=>{let P=h[S],_=a.some(U=>U.route.id===y.route.id);return ee({},y,{shouldLoad:_,resolve:async U=>(U&&n.method==="GET"&&(y.route.lazy||y.route.loader)&&(_=!0),_?Ha(t,n,y,P,U,i):Promise.resolve({type:G.data,result:void 0}))})}),R=await e({matches:p,request:n,params:l[0].params,fetcherKey:o,context:i});try{await Promise.all(h)}catch{}return R}async function Ha(e,t,r,n,a,l){let o,d,s=i=>{let h,p=new Promise((S,P)=>h=P);d=()=>h(),t.signal.addEventListener("abort",d);let R=S=>typeof i!="function"?Promise.reject(new Error("You cannot call the handler for a route which defines a boolean "+('"'+e+'" [routeId: '+r.route.id+"]"))):i({request:t,params:r.params,context:l},...S!==void 0?[S]:[]),y=(async()=>{try{return{type:"data",result:await(a?a(P=>R(P)):R())}}catch(S){return{type:"error",result:S}}})();return Promise.race([y,p])};try{let i=r.route[e];if(n)if(i){let h,[p]=await Promise.all([s(i).catch(R=>{h=R}),n]);if(h!==void 0)throw h;o=p}else if(await n,i=r.route[e],i)o=await s(i);else if(e==="action"){let h=new URL(t.url),p=h.pathname+h.search;throw pe(405,{method:t.method,pathname:p,routeId:r.route.id})}else return{type:G.data,result:void 0};else if(i)o=await s(i);else{let h=new URL(t.url),p=h.pathname+h.search;throw pe(404,{pathname:p})}j(o.result!==void 0,"You defined "+(e==="action"?"an action":"a loader")+" for route "+('"'+r.route.id+"\" but didn't return anything from your `"+e+"` ")+"function. Please return a value or `null`.")}catch(i){return{type:G.error,result:i}}finally{d&&t.signal.removeEventListener("abort",d)}return o}async function za(e){let{result:t,type:r}=e;if(fn(t)){let i;try{let h=t.headers.get("Content-Type");h&&/\bapplication\/json\b/.test(h)?t.body==null?i=null:i=await t.json():i=await t.text()}catch(h){return{type:G.error,error:h}}return r===G.error?{type:G.error,error:new er(t.status,t.statusText,i),statusCode:t.status,headers:t.headers}:{type:G.data,data:i,statusCode:t.status,headers:t.headers}}if(r===G.error){if(Br(t)){var n;if(t.data instanceof Error){var a;return{type:G.error,error:t.data,statusCode:(a=t.init)==null?void 0:a.status}}t=new er(((n=t.init)==null?void 0:n.status)||500,void 0,t.data)}return{type:G.error,error:t,statusCode:gt(t)?t.status:void 0}}if(Ja(t)){var l,o;return{type:G.deferred,deferredData:t,statusCode:(l=t.init)==null?void 0:l.status,headers:((o=t.init)==null?void 0:o.headers)&&new Headers(t.init.headers)}}if(Br(t)){var d,s;return{type:G.data,data:t.data,statusCode:(d=t.init)==null?void 0:d.status,headers:(s=t.init)!=null&&s.headers?new Headers(t.init.headers):void 0}}return{type:G.data,data:t}}function $a(e,t,r,n,a,l){let o=e.headers.get("Location");if(j(o,"Redirects returned/thrown from loaders/actions must have a Location header"),!ir.test(o)){let d=n.slice(0,n.findIndex(s=>s.route.id===r)+1);o=tr(new URL(t.url),d,a,!0,o,l),e.headers.set("Location",o)}return e}function Ur(e,t,r){if(ir.test(e)){let n=e,a=n.startsWith("//")?new URL(t.protocol+n):new URL(n),l=_e(a.pathname,r)!=null;if(a.origin===t.origin&&l)return a.pathname+a.search+a.hash}return e}function nt(e,t,r,n){let a=e.createURL(cn(t)).toString(),l={signal:r};if(n&&Se(n.formMethod)){let{formMethod:o,formEncType:d}=n;l.method=o.toUpperCase(),d==="application/json"?(l.headers=new Headers({"Content-Type":d}),l.body=JSON.stringify(n.json)):d==="text/plain"?l.body=n.text:d==="application/x-www-form-urlencoded"&&n.formData?l.body=rr(n.formData):l.body=n.formData}return new Request(a,l)}function rr(e){let t=new URLSearchParams;for(let[r,n]of e.entries())t.append(r,typeof n=="string"?n:n.name);return t}function Ar(e){let t=new FormData;for(let[r,n]of e.entries())t.append(r,n);return t}function Wa(e,t,r,n,a){let l={},o=null,d,s=!1,i={},h=r&&be(r[1])?r[1].error:void 0;return e.forEach(p=>{if(!(p.route.id in t))return;let R=p.route.id,y=t[R];if(j(!Ze(y),"Cannot handle redirect results in processLoaderData"),be(y)){let S=y.error;h!==void 0&&(S=h,h=void 0),o=o||{};{let P=ot(e,R);o[P.route.id]==null&&(o[P.route.id]=S)}l[R]=void 0,s||(s=!0,d=gt(y.error)?y.error.status:500),y.headers&&(i[R]=y.headers)}else We(y)?(n.set(R,y.deferredData),l[R]=y.deferredData.data,y.statusCode!=null&&y.statusCode!==200&&!s&&(d=y.statusCode),y.headers&&(i[R]=y.headers)):(l[R]=y.data,y.statusCode&&y.statusCode!==200&&!s&&(d=y.statusCode),y.headers&&(i[R]=y.headers))}),h!==void 0&&r&&(o={[r[0]]:h},l[r[0]]=void 0),{loaderData:l,errors:o,statusCode:d||200,loaderHeaders:i}}function Nr(e,t,r,n,a,l,o,d){let{loaderData:s,errors:i}=Wa(t,n,a,d);return l.forEach(h=>{let{key:p,match:R,controller:y}=h,S=o[p];if(j(S,"Did not find corresponding fetcher result"),!(y&&y.signal.aborted))if(be(S)){let P=ot(e.matches,R?.route.id);i&&i[P.route.id]||(i=ee({},i,{[P.route.id]:S.error})),e.fetchers.delete(p)}else if(Ze(S))j(!1,"Unhandled fetcher revalidation redirect");else if(We(S))j(!1,"Unhandled fetcher deferred data");else{let P=ze(S.data);e.fetchers.set(p,P)}}),{loaderData:s,errors:i}}function Ir(e,t,r,n){let a=ee({},t);for(let l of r){let o=l.route.id;if(t.hasOwnProperty(o)?t[o]!==void 0&&(a[o]=t[o]):e[o]!==void 0&&l.route.loader&&(a[o]=e[o]),n&&n.hasOwnProperty(o))break}return a}function Fr(e){return e?be(e[1])?{actionData:{}}:{actionData:{[e[0]]:e[1].data}}:{}}function ot(e,t){return(t?e.slice(0,e.findIndex(n=>n.route.id===t)+1):[...e]).reverse().find(n=>n.route.hasErrorBoundary===!0)||e[0]}function kr(e){let t=e.length===1?e[0]:e.find(r=>r.index||!r.path||r.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function pe(e,t){let{pathname:r,routeId:n,method:a,type:l,message:o}=t===void 0?{}:t,d="Unknown Server Error",s="Unknown @remix-run/router error";return e===400?(d="Bad Request",l==="route-discovery"?s='Unable to match URL "'+r+'" - the `unstable_patchRoutesOnNavigation()` '+(`function threw the following error:
20
- `+o):a&&r&&n?s="You made a "+a+' request to "'+r+'" but '+('did not provide a `loader` for route "'+n+'", ')+"so there is no way to handle the request.":l==="defer-action"?s="defer() is not supported in actions":l==="invalid-body"&&(s="Unable to encode submission body")):e===403?(d="Forbidden",s='Route "'+n+'" does not match URL "'+r+'"'):e===404?(d="Not Found",s='No route matches URL "'+r+'"'):e===405&&(d="Method Not Allowed",a&&r&&n?s="You made a "+a.toUpperCase()+' request to "'+r+'" but '+('did not provide an `action` for route "'+n+'", ')+"so there is no way to handle the request.":a&&(s='Invalid request method "'+a.toUpperCase()+'"')),new er(e||500,d,new Error(s),!0)}function Lt(e){let t=Object.entries(e);for(let r=t.length-1;r>=0;r--){let[n,a]=t[r];if(Ze(a))return{key:n,result:a}}}function cn(e){let t=typeof e=="string"?Pe(e):e;return Ne(ee({},t,{hash:""}))}function Ka(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function Ya(e){return typeof e=="object"&&e!=null&&"then"in e}function Va(e){return fn(e.result)&&Da.has(e.result.status)}function We(e){return e.type===G.deferred}function be(e){return e.type===G.error}function Ze(e){return(e&&e.type)===G.redirect}function Br(e){return typeof e=="object"&&e!=null&&"type"in e&&"data"in e&&"init"in e&&e.type==="DataWithResponseInit"}function Ja(e){let t=e;return t&&typeof t=="object"&&typeof t.data=="object"&&typeof t.subscribe=="function"&&typeof t.cancel=="function"&&typeof t.resolveData=="function"}function fn(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function Ga(e){return Ta.has(e.toLowerCase())}function Se(e){return Ca.has(e.toLowerCase())}async function Xa(e,t,r,n,a){let l=Object.entries(t);for(let o=0;o<l.length;o++){let[d,s]=l[o],i=e.find(R=>R?.route.id===d);if(!i)continue;let h=n.find(R=>R.route.id===i.route.id),p=h!=null&&!sn(h,i)&&(a&&a[i.route.id])!==void 0;We(s)&&p&&await lr(s,r,!1).then(R=>{R&&(t[d]=R)})}}async function qa(e,t,r){for(let n=0;n<r.length;n++){let{key:a,routeId:l,controller:o}=r[n],d=t[a];e.find(i=>i?.route.id===l)&&We(d)&&(j(o,"Expected an AbortController for revalidating fetcher deferred result"),await lr(d,o.signal,!0).then(i=>{i&&(t[a]=i)}))}}async function lr(e,t,r){if(r===void 0&&(r=!1),!await e.deferredData.resolveData(t)){if(r)try{return{type:G.data,data:e.deferredData.unwrappedData}}catch(a){return{type:G.error,error:a}}return{type:G.data,data:e.deferredData.data}}}function sr(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function pt(e,t){let r=typeof t=="string"?Pe(t).search:t.search;if(e[e.length-1].route.index&&sr(r||""))return e[e.length-1];let n=an(e);return n[n.length-1]}function Hr(e){let{formMethod:t,formAction:r,formEncType:n,text:a,formData:l,json:o}=e;if(!(!t||!r||!n)){if(a!=null)return{formMethod:t,formAction:r,formEncType:n,formData:void 0,json:void 0,text:a};if(l!=null)return{formMethod:t,formAction:r,formEncType:n,formData:l,json:void 0,text:void 0};if(o!==void 0)return{formMethod:t,formAction:r,formEncType:n,formData:void 0,json:o,text:void 0}}}function qt(e,t){return t?{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}:{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function Qa(e,t){return{state:"submitting",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}}function ht(e,t){return e?{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function Za(e,t){return{state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0}}function ze(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function eo(e,t){try{let r=e.sessionStorage.getItem(ln);if(r){let n=JSON.parse(r);for(let[a,l]of Object.entries(n||{}))l&&Array.isArray(l)&&t.set(a,new Set(l||[]))}}catch{}}function to(e,t){if(t.size>0){let r={};for(let[n,a]of t)r[n]=[...a];try{e.sessionStorage.setItem(ln,JSON.stringify(r))}catch(n){Ke(!1,"Failed to save applied view transitions in sessionStorage ("+n+").")}}}/**
21
- * React Router v6.26.2
22
- *
23
- * Copyright (c) Remix Software Inc.
24
- *
25
- * This source code is licensed under the MIT license found in the
26
- * LICENSE.md file in the root directory of this source tree.
27
- *
28
- * @license MIT
29
- */function Ye(){return Ye=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ye.apply(this,arguments)}const ut=g.createContext(null),kt=g.createContext(null),Ut=g.createContext(null),De=g.createContext(null),ct=g.createContext(null),Ce=g.createContext({outlet:null,matches:[],isDataRoute:!1}),dn=g.createContext(null);function hn(e,t){let{relative:r}=t===void 0?{}:t;Ve()||j(!1);let{basename:n,navigator:a}=g.useContext(De),{hash:l,pathname:o,search:d}=yt(e,{relative:r}),s=o;return n!=="/"&&(s=o==="/"?n:Ae([n,o])),a.createHref({pathname:s,search:d,hash:l})}function Ve(){return g.useContext(ct)!=null}function Fe(){return Ve()||j(!1),g.useContext(ct).location}function ro(){return g.useContext(ct).navigationType}function no(e){Ve()||j(!1);let{pathname:t}=Fe();return g.useMemo(()=>st(e,rn(t)),[t,e])}function pn(e){g.useContext(De).static||g.useLayoutEffect(e)}function Bt(){let{isDataRoute:e}=g.useContext(Ce);return e?So():ao()}function ao(){Ve()||j(!1);let e=g.useContext(ut),{basename:t,future:r,navigator:n}=g.useContext(De),{matches:a}=g.useContext(Ce),{pathname:l}=Fe(),o=JSON.stringify(It(a,r.v7_relativeSplatPath)),d=g.useRef(!1);return pn(()=>{d.current=!0}),g.useCallback(function(i,h){if(h===void 0&&(h={}),!d.current)return;if(typeof i=="number"){n.go(i);return}let p=Ft(i,JSON.parse(o),l,h.relative==="path");e==null&&t!=="/"&&(p.pathname=p.pathname==="/"?t:Ae([t,p.pathname])),(h.replace?n.replace:n.push)(p,h.state,h)},[t,n,o,l,e])}const mn=g.createContext(null);function oo(){return g.useContext(mn)}function vn(e){let t=g.useContext(Ce).outlet;return t&&g.createElement(mn.Provider,{value:e},t)}function io(){let{matches:e}=g.useContext(Ce),t=e[e.length-1];return t?t.params:{}}function yt(e,t){let{relative:r}=t===void 0?{}:t,{future:n}=g.useContext(De),{matches:a}=g.useContext(Ce),{pathname:l}=Fe(),o=JSON.stringify(It(a,n.v7_relativeSplatPath));return g.useMemo(()=>Ft(e,JSON.parse(o),l,r==="path"),[e,o,l,r])}function gn(e,t){return ur(e,t)}function ur(e,t,r,n){Ve()||j(!1);let{navigator:a}=g.useContext(De),{matches:l}=g.useContext(Ce),o=l[l.length-1],d=o?o.params:{};o&&o.pathname;let s=o?o.pathnameBase:"/";o&&o.route;let i=Fe(),h;if(t){var p;let _=typeof t=="string"?Pe(t):t;s==="/"||(p=_.pathname)!=null&&p.startsWith(s)||j(!1),h=_}else h=i;let R=h.pathname||"/",y=R;if(s!=="/"){let _=s.replace(/^\//,"").split("/");y="/"+R.replace(/^\//,"").split("/").slice(_.length).join("/")}let S=$e(e,{pathname:y}),P=yn(S&&S.map(_=>Object.assign({},_,{params:Object.assign({},d,_.params),pathname:Ae([s,a.encodeLocation?a.encodeLocation(_.pathname).pathname:_.pathname]),pathnameBase:_.pathnameBase==="/"?s:Ae([s,a.encodeLocation?a.encodeLocation(_.pathnameBase).pathname:_.pathnameBase])})),l,r,n);return t&&P?g.createElement(ct.Provider,{value:{location:Ye({pathname:"/",search:"",hash:"",state:null,key:"default"},h),navigationType:Q.Pop}},P):P}function lo(){let e=En(),t=gt(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,a={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return g.createElement(g.Fragment,null,g.createElement("h2",null,"Unexpected Application Error!"),g.createElement("h3",{style:{fontStyle:"italic"}},t),r?g.createElement("pre",{style:a},r):null,null)}const so=g.createElement(lo,null);class uo extends g.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,r){return r.location!==t.location||r.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:r.error,location:r.location,revalidation:t.revalidation||r.revalidation}}componentDidCatch(t,r){console.error("React Router caught the following error during render",t,r)}render(){return this.state.error!==void 0?g.createElement(Ce.Provider,{value:this.props.routeContext},g.createElement(dn.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function co(e){let{routeContext:t,match:r,children:n}=e,a=g.useContext(ut);return a&&a.static&&a.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(a.staticContext._deepestRenderedBoundaryId=r.route.id),g.createElement(Ce.Provider,{value:t},n)}function yn(e,t,r,n){var a;if(t===void 0&&(t=[]),r===void 0&&(r=null),n===void 0&&(n=null),e==null){var l;if(!r)return null;if(r.errors)e=r.matches;else if((l=n)!=null&&l.v7_partialHydration&&t.length===0&&!r.initialized&&r.matches.length>0)e=r.matches;else return null}let o=e,d=(a=r)==null?void 0:a.errors;if(d!=null){let h=o.findIndex(p=>p.route.id&&d?.[p.route.id]!==void 0);h>=0||j(!1),o=o.slice(0,Math.min(o.length,h+1))}let s=!1,i=-1;if(r&&n&&n.v7_partialHydration)for(let h=0;h<o.length;h++){let p=o[h];if((p.route.HydrateFallback||p.route.hydrateFallbackElement)&&(i=h),p.route.id){let{loaderData:R,errors:y}=r,S=p.route.loader&&R[p.route.id]===void 0&&(!y||y[p.route.id]===void 0);if(p.route.lazy||S){s=!0,i>=0?o=o.slice(0,i+1):o=[o[0]];break}}}return o.reduceRight((h,p,R)=>{let y,S=!1,P=null,_=null;r&&(y=d&&p.route.id?d[p.route.id]:void 0,P=p.route.errorElement||so,s&&(i<0&&R===0?(_o("route-fallback"),S=!0,_=null):i===R&&(S=!0,_=p.route.hydrateFallbackElement||null)));let z=t.concat(o.slice(0,R+1)),U=()=>{let $;return y?$=P:S?$=_:p.route.Component?$=g.createElement(p.route.Component,null):p.route.element?$=p.route.element:$=h,g.createElement(co,{match:p,routeContext:{outlet:h,matches:z,isDataRoute:r!=null},children:$})};return r&&(p.route.ErrorBoundary||p.route.errorElement||R===0)?g.createElement(uo,{location:r.location,revalidation:r.revalidation,component:P,error:y,children:U(),routeContext:{outlet:null,matches:z,isDataRoute:!0}}):U()},null)}var bn=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(bn||{}),me=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(me||{});function cr(e){let t=g.useContext(ut);return t||j(!1),t}function Je(e){let t=g.useContext(kt);return t||j(!1),t}function fo(e){let t=g.useContext(Ce);return t||j(!1),t}function bt(e){let t=fo(),r=t.matches[t.matches.length-1];return r.route.id||j(!1),r.route.id}function ho(){return bt(me.UseRouteId)}function po(){return Je(me.UseNavigation).navigation}function mo(){let e=cr(),t=Je(me.UseRevalidator);return g.useMemo(()=>({revalidate:e.router.revalidate,state:t.revalidation}),[e.router.revalidate,t.revalidation])}function vo(){let{matches:e,loaderData:t}=Je(me.UseMatches);return g.useMemo(()=>e.map(r=>Zr(r,t)),[e,t])}function go(){let e=Je(me.UseLoaderData),t=bt(me.UseLoaderData);if(e.errors&&e.errors[t]!=null){console.error("You cannot `useLoaderData` in an errorElement (routeId: "+t+")");return}return e.loaderData[t]}function yo(e){return Je(me.UseRouteLoaderData).loaderData[e]}function bo(){let e=Je(me.UseActionData),t=bt(me.UseLoaderData);return e.actionData?e.actionData[t]:void 0}function En(){var e;let t=g.useContext(dn),r=Je(me.UseRouteError),n=bt(me.UseRouteError);return t!==void 0?t:(e=r.errors)==null?void 0:e[n]}function Rn(){let e=g.useContext(Ut);return e?._data}function Eo(){let e=g.useContext(Ut);return e?._error}let Ro=0;function wo(e){let{router:t,basename:r}=cr(),n=Je(me.UseBlocker),[a,l]=g.useState(""),o=g.useCallback(d=>{if(typeof e!="function")return!!e;if(r==="/")return e(d);let{currentLocation:s,nextLocation:i,historyAction:h}=d;return e({currentLocation:Ye({},s,{pathname:_e(s.pathname,r)||s.pathname}),nextLocation:Ye({},i,{pathname:_e(i.pathname,r)||i.pathname}),historyAction:h})},[r,e]);return g.useEffect(()=>{let d=String(++Ro);return l(d),()=>t.deleteBlocker(d)},[t]),g.useEffect(()=>{a!==""&&t.getBlocker(a,o)},[t,a,o]),a&&n.blockers.has(a)?n.blockers.get(a):at}function So(){let{router:e}=cr(bn.UseNavigateStable),t=bt(me.UseNavigateStable),r=g.useRef(!1);return pn(()=>{r.current=!0}),g.useCallback(function(a,l){l===void 0&&(l={}),r.current&&(typeof a=="number"?e.navigate(a):e.navigate(a,Ye({fromRouteId:t},l)))},[e,t])}const zr={};function _o(e,t,r){zr[e]||(zr[e]=!0)}const Po="startTransition",At=qr[Po];function Co(e){let{fallbackElement:t,router:r,future:n}=e,[a,l]=g.useState(r.state),{v7_startTransition:o}=n||{},d=g.useCallback(p=>{o&&At?At(()=>l(p)):l(p)},[l,o]);g.useLayoutEffect(()=>r.subscribe(d),[r,d]),g.useEffect(()=>{},[]);let s=g.useMemo(()=>({createHref:r.createHref,encodeLocation:r.encodeLocation,go:p=>r.navigate(p),push:(p,R,y)=>r.navigate(p,{state:R,preventScrollReset:y?.preventScrollReset}),replace:(p,R,y)=>r.navigate(p,{replace:!0,state:R,preventScrollReset:y?.preventScrollReset})}),[r]),i=r.basename||"/",h=g.useMemo(()=>({router:r,navigator:s,static:!1,basename:i}),[r,s,i]);return g.createElement(g.Fragment,null,g.createElement(ut.Provider,{value:h},g.createElement(kt.Provider,{value:a},g.createElement(Ht,{basename:i,location:a.location,navigationType:a.historyAction,navigator:s,future:{v7_relativeSplatPath:r.future.v7_relativeSplatPath}},a.initialized||r.future.v7_partialHydration?g.createElement(xo,{routes:r.routes,future:r.future,state:a}):t))),null)}function xo(e){let{routes:t,future:r,state:n}=e;return ur(t,void 0,n,r)}function To(e){let{basename:t,children:r,initialEntries:n,initialIndex:a,future:l}=e,o=g.useRef();o.current==null&&(o.current=Qr({initialEntries:n,initialIndex:a,v5Compat:!0}));let d=o.current,[s,i]=g.useState({action:d.action,location:d.location}),{v7_startTransition:h}=l||{},p=g.useCallback(R=>{h&&At?At(()=>i(R)):i(R)},[i,h]);return g.useLayoutEffect(()=>d.listen(p),[d,p]),g.createElement(Ht,{basename:t,children:r,location:s.location,navigationType:s.action,navigator:d,future:l})}function Do(e){let{to:t,replace:r,state:n,relative:a}=e;Ve()||j(!1);let{future:l,static:o}=g.useContext(De),{matches:d}=g.useContext(Ce),{pathname:s}=Fe(),i=Bt(),h=Ft(t,It(d,l.v7_relativeSplatPath),s,a==="path"),p=JSON.stringify(h);return g.useEffect(()=>i(JSON.parse(p),{replace:r,state:n,relative:a}),[i,p,a,r,n]),null}function Lo(e){return vn(e.context)}function wn(e){j(!1)}function Ht(e){let{basename:t="/",children:r=null,location:n,navigationType:a=Q.Pop,navigator:l,static:o=!1,future:d}=e;Ve()&&j(!1);let s=t.replace(/^\/*/,"/"),i=g.useMemo(()=>({basename:s,navigator:l,static:o,future:Ye({v7_relativeSplatPath:!1},d)}),[s,d,l,o]);typeof n=="string"&&(n=Pe(n));let{pathname:h="/",search:p="",hash:R="",state:y=null,key:S="default"}=n,P=g.useMemo(()=>{let _=_e(h,s);return _==null?null:{location:{pathname:_,search:p,hash:R,state:y,key:S},navigationType:a}},[s,h,p,R,y,S,a]);return P==null?null:g.createElement(De.Provider,{value:i},g.createElement(ct.Provider,{children:r,value:P}))}function Oo(e){let{children:t,location:r}=e;return gn(vt(t),r)}function Mo(e){let{children:t,errorElement:r,resolve:n}=e;return g.createElement(Uo,{resolve:n,errorElement:r},g.createElement(Ao,null,t))}var we=function(e){return e[e.pending=0]="pending",e[e.success=1]="success",e[e.error=2]="error",e}(we||{});const jo=new Promise(()=>{});class Uo extends g.Component{constructor(t){super(t),this.state={error:null}}static getDerivedStateFromError(t){return{error:t}}componentDidCatch(t,r){console.error("<Await> caught the following error during render",t,r)}render(){let{children:t,errorElement:r,resolve:n}=this.props,a=null,l=we.pending;if(!(n instanceof Promise))l=we.success,a=Promise.resolve(),Object.defineProperty(a,"_tracked",{get:()=>!0}),Object.defineProperty(a,"_data",{get:()=>n});else if(this.state.error){l=we.error;let o=this.state.error;a=Promise.reject().catch(()=>{}),Object.defineProperty(a,"_tracked",{get:()=>!0}),Object.defineProperty(a,"_error",{get:()=>o})}else n._tracked?(a=n,l="_error"in a?we.error:"_data"in a?we.success:we.pending):(l=we.pending,Object.defineProperty(n,"_tracked",{get:()=>!0}),a=n.then(o=>Object.defineProperty(n,"_data",{get:()=>o}),o=>Object.defineProperty(n,"_error",{get:()=>o})));if(l===we.error&&a._error instanceof jt)throw jo;if(l===we.error&&!r)throw a._error;if(l===we.error)return g.createElement(Ut.Provider,{value:a,children:r});if(l===we.success)return g.createElement(Ut.Provider,{value:a,children:t});throw a}}function Ao(e){let{children:t}=e,r=Rn(),n=typeof t=="function"?t(r):t;return g.createElement(g.Fragment,null,n)}function vt(e,t){t===void 0&&(t=[]);let r=[];return g.Children.forEach(e,(n,a)=>{if(!g.isValidElement(n))return;let l=[...t,a];if(n.type===g.Fragment){r.push.apply(r,vt(n.props.children,l));return}n.type!==wn&&j(!1),!n.props.index||!n.props.children||j(!1);let o={id:n.props.id||l.join("-"),caseSensitive:n.props.caseSensitive,element:n.props.element,Component:n.props.Component,index:n.props.index,path:n.props.path,loader:n.props.loader,action:n.props.action,errorElement:n.props.errorElement,ErrorBoundary:n.props.ErrorBoundary,hasErrorBoundary:n.props.ErrorBoundary!=null||n.props.errorElement!=null,shouldRevalidate:n.props.shouldRevalidate,handle:n.props.handle,lazy:n.props.lazy};n.props.children&&(o.children=vt(n.props.children,l)),r.push(o)}),r}function No(e){return yn(e)}function Sn(e){let t={hasErrorBoundary:e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&Object.assign(t,{element:g.createElement(e.Component),Component:void 0}),e.HydrateFallback&&Object.assign(t,{hydrateFallbackElement:g.createElement(e.HydrateFallback),HydrateFallback:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:g.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}function Io(e,t){return ja({basename:t?.basename,future:Ye({},t?.future,{v7_prependBasename:!0}),history:Qr({initialEntries:t?.initialEntries,initialIndex:t?.initialIndex}),hydrationData:t?.hydrationData,routes:e,mapRouteProperties:Sn,unstable_dataStrategy:t?.unstable_dataStrategy,unstable_patchRoutesOnNavigation:t?.unstable_patchRoutesOnNavigation}).initialize()}const ti=Object.freeze(Object.defineProperty({__proto__:null,AbortedDeferredError:jt,Await:Mo,MemoryRouter:To,Navigate:Do,get NavigationType(){return Q},Outlet:Lo,Route:wn,Router:Ht,RouterProvider:Co,Routes:Oo,UNSAFE_DataRouterContext:ut,UNSAFE_DataRouterStateContext:kt,UNSAFE_LocationContext:ct,UNSAFE_NavigationContext:De,UNSAFE_RouteContext:Ce,UNSAFE_mapRouteProperties:Sn,UNSAFE_useRouteId:ho,UNSAFE_useRoutesImpl:ur,createMemoryRouter:Io,createPath:Ne,createRoutesFromChildren:vt,createRoutesFromElements:vt,defer:Sa,generatePath:ha,isRouteErrorResponse:gt,json:ba,matchPath:st,matchRoutes:$e,parsePath:Pe,redirect:or,redirectDocument:_a,renderMatches:No,replace:Pa,resolvePath:nn,useActionData:bo,useAsyncError:Eo,useAsyncValue:Rn,useBlocker:wo,useHref:hn,useInRouterContext:Ve,useLoaderData:go,useLocation:Fe,useMatch:no,useMatches:vo,useNavigate:Bt,useNavigation:po,useNavigationType:ro,useOutlet:vn,useOutletContext:oo,useParams:io,useResolvedPath:yt,useRevalidator:mo,useRouteError:En,useRouteLoaderData:yo,useRoutes:gn},Symbol.toStringTag,{value:"Module"}));/**
30
- * React Router DOM v6.26.2
31
- *
32
- * Copyright (c) Remix Software Inc.
33
- *
34
- * This source code is licensed under the MIT license found in the
35
- * LICENSE.md file in the root directory of this source tree.
36
- *
37
- * @license MIT
38
- */function Nt(){return Nt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Nt.apply(this,arguments)}function _n(e,t){if(e==null)return{};var r={},n=Object.keys(e),a,l;for(l=0;l<n.length;l++)a=n[l],!(t.indexOf(a)>=0)&&(r[a]=e[a]);return r}function Fo(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function ko(e,t){return e.button===0&&(!t||t==="_self")&&!Fo(e)}function nr(e){return e===void 0&&(e=""),new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,r)=>{let n=e[r];return t.concat(Array.isArray(n)?n.map(a=>[r,a]):[[r,n]])},[]))}function Bo(e,t){let r=nr(e);return t&&t.forEach((n,a)=>{r.has(a)||t.getAll(a).forEach(l=>{r.append(a,l)})}),r}const Ho=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],zo=["aria-current","caseSensitive","className","end","style","to","unstable_viewTransition","children"],$o="6";try{window.__reactRouterVersion=$o}catch{}const Wo=g.createContext({isTransitioning:!1}),Ko="startTransition",$r=qr[Ko];function ri(e){let{basename:t,children:r,future:n,window:a}=e,l=g.useRef();l.current==null&&(l.current=Qn({window:a,v5Compat:!0}));let o=l.current,[d,s]=g.useState({action:o.action,location:o.location}),{v7_startTransition:i}=n||{},h=g.useCallback(p=>{i&&$r?$r(()=>s(p)):s(p)},[s,i]);return g.useLayoutEffect(()=>o.listen(h),[o,h]),g.createElement(Ht,{basename:t,children:r,location:d.location,navigationType:d.action,navigator:o,future:n})}const Yo=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Vo=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Jo=g.forwardRef(function(t,r){let{onClick:n,relative:a,reloadDocument:l,replace:o,state:d,target:s,to:i,preventScrollReset:h,unstable_viewTransition:p}=t,R=_n(t,Ho),{basename:y}=g.useContext(De),S,P=!1;if(typeof i=="string"&&Vo.test(i)&&(S=i,Yo))try{let $=new URL(window.location.href),I=i.startsWith("//")?new URL($.protocol+i):new URL(i),F=_e(I.pathname,y);I.origin===$.origin&&F!=null?i=F+I.search+I.hash:P=!0}catch{}let _=hn(i,{relative:a}),z=Xo(i,{replace:o,state:d,target:s,preventScrollReset:h,relative:a,unstable_viewTransition:p});function U($){n&&n($),$.defaultPrevented||z($)}return g.createElement("a",Nt({},R,{href:S||_,onClick:P||l?n:U,ref:r,target:s}))}),ni=g.forwardRef(function(t,r){let{"aria-current":n="page",caseSensitive:a=!1,className:l="",end:o=!1,style:d,to:s,unstable_viewTransition:i,children:h}=t,p=_n(t,zo),R=yt(s,{relative:p.relative}),y=Fe(),S=g.useContext(kt),{navigator:P,basename:_}=g.useContext(De),z=S!=null&&qo(R)&&i===!0,U=P.encodeLocation?P.encodeLocation(R).pathname:R.pathname,$=y.pathname,I=S&&S.navigation&&S.navigation.location?S.navigation.location.pathname:null;a||($=$.toLowerCase(),I=I?I.toLowerCase():null,U=U.toLowerCase()),I&&_&&(I=_e(I,_)||I);const F=U!=="/"&&U.endsWith("/")?U.length-1:U.length;let se=$===U||!o&&$.startsWith(U)&&$.charAt(F)==="/",Ee=I!=null&&(I===U||!o&&I.startsWith(U)&&I.charAt(U.length)==="/"),v={isActive:se,isPending:Ee,isTransitioning:z},V=se?n:void 0,te;typeof l=="function"?te=l(v):te=[l,se?"active":null,Ee?"pending":null,z?"transitioning":null].filter(Boolean).join(" ");let K=typeof d=="function"?d(v):d;return g.createElement(Jo,Nt({},p,{"aria-current":V,className:te,ref:r,style:K,to:s,unstable_viewTransition:i}),typeof h=="function"?h(v):h)});var ar;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(ar||(ar={}));var Wr;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(Wr||(Wr={}));function Go(e){let t=g.useContext(ut);return t||j(!1),t}function Xo(e,t){let{target:r,replace:n,state:a,preventScrollReset:l,relative:o,unstable_viewTransition:d}=t===void 0?{}:t,s=Bt(),i=Fe(),h=yt(e,{relative:o});return g.useCallback(p=>{if(ko(p,r)){p.preventDefault();let R=n!==void 0?n:Ne(i)===Ne(h);s(e,{replace:R,state:a,preventScrollReset:l,relative:o,unstable_viewTransition:d})}},[i,s,h,n,a,r,e,l,o,d])}function ai(e){let t=g.useRef(nr(e)),r=g.useRef(!1),n=Fe(),a=g.useMemo(()=>Bo(n.search,r.current?null:t.current),[n.search]),l=Bt(),o=g.useCallback((d,s)=>{const i=nr(typeof d=="function"?d(a):d);r.current=!0,l("?"+i,s)},[l,a]);return[a,o]}function qo(e,t){t===void 0&&(t={});let r=g.useContext(Wo);r==null&&j(!1);let{basename:n}=Go(ar.useViewTransitionState),a=yt(e,{relative:t.relative});if(!r.isTransitioning)return!1;let l=_e(r.currentLocation.pathname,n)||r.currentLocation.pathname,o=_e(r.nextLocation.pathname,n)||r.nextLocation.pathname;return st(a.pathname,o)!=null||st(a.pathname,l)!=null}export{ri as B,Jo as L,Do as N,qr as R,Xn as a,ei as b,qn as c,Xr as d,Zo as e,Qo as f,Kr as g,Gn as h,Bt as i,io as j,Fe as k,Oo as l,wn as m,ni as n,st as o,Yt as p,g as r,ti as t,ai as u};