ocean-brain 0.13.3 → 0.14.0

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 (158) hide show
  1. package/README.md +66 -2
  2. package/dist/mcp.js +439 -480
  3. package/package.json +2 -2
  4. package/server/client/dist/assets/{ArrowRight.es-BlNsZQFs.js → ArrowRight.es-nBJws3ws.js} +1 -1
  5. package/server/client/dist/assets/{AuxiliaryPanelHeader-HAttwVby.js → AuxiliaryPanelHeader-BN_2axQu.js} +1 -1
  6. package/server/client/dist/assets/{Calendar-DwQBllfw.js → Calendar-vA4Xa4Qr.js} +1 -1
  7. package/server/client/dist/assets/{Callout-CcYyvHQP.js → Callout-Bo2P960P.js} +1 -1
  8. package/server/client/dist/assets/{CaretUp.es-C8iY5OlB.js → CaretUp.es-DDbqKn78.js} +1 -1
  9. package/server/client/dist/assets/{CheckCircle.es-Dqr3WImn.js → CheckCircle.es-CyY9aLBF.js} +1 -1
  10. package/server/client/dist/assets/{Copy.es-fMv0ETir.js → Copy.es-BwX4tEoU.js} +1 -1
  11. package/server/client/dist/assets/{File.es-CHtXXafR.js → File.es-DeTgvUnI.js} +1 -1
  12. package/server/client/dist/assets/{FileText.es-DPIwDCEe.js → FileText.es-C-bpw8dQ.js} +1 -1
  13. package/server/client/dist/assets/{FlowArrow.es-Dxee98ir.js → FlowArrow.es-CKcMBOmX.js} +1 -1
  14. package/server/client/dist/assets/{Graph-hVj6vAYJ.js → Graph-BNoSRJP3.js} +1 -1
  15. package/server/client/dist/assets/{Graph-CdEu8eAn.js → Graph-DYYxNAWn.js} +1 -1
  16. package/server/client/dist/assets/{Image.es-CjXY1JVf.js → Image.es-d4jWnijM.js} +1 -1
  17. package/server/client/dist/assets/{Info.es-CYxg-Vku.js → Info.es-DVzN2joA.js} +1 -1
  18. package/server/client/dist/assets/Integration-gDDtIJYJ.js +1 -0
  19. package/server/client/dist/assets/{LinkSimple.es-B-P-7Iem.js → LinkSimple.es-BD4aGTc3.js} +1 -1
  20. package/server/client/dist/assets/Note-FL31jb2U.js +19 -0
  21. package/server/client/dist/assets/{NotePropertiesPanel-6P7UfRBR.js → NotePropertiesPanel-os22Ppnu.js} +1 -1
  22. package/server/client/dist/assets/{Plus.es-Dy6onD-Z.js → Plus.es-Cl8zOOZa.js} +1 -1
  23. package/server/client/dist/assets/Reminders-Dt2JuGci.js +1 -0
  24. package/server/client/dist/assets/{Search-AaD1Mt0d.js → Search-CPPTW2PO.js} +2 -2
  25. package/server/client/dist/assets/{SurfaceCard-D5QxOte_.js → SurfaceCard-jL2qzrzF.js} +1 -1
  26. package/server/client/dist/assets/{Tag-B2Qiq1Hv.js → Tag-3DbGmuxa.js} +1 -1
  27. package/server/client/dist/assets/{TagNotes-B27G1ZVg.js → TagNotes-DLwRF8pT.js} +1 -1
  28. package/server/client/dist/assets/Trash.es-fxukjAO6.js +1 -0
  29. package/server/client/dist/assets/{ViewChip-BVkZAXyx.js → ViewChip-CVe_HNyd.js} +1 -1
  30. package/server/client/dist/assets/Views-8ghLRax7.js +1 -0
  31. package/server/client/dist/assets/{abnfDiagram-N423BO3Z-D44O4T7q.js → abnfDiagram-N423BO3Z-CPgGmCbn.js} +1 -1
  32. package/server/client/dist/assets/app-Bcl0U7r9.css +1 -0
  33. package/server/client/dist/assets/app-DzChh-V0.js +151 -0
  34. package/server/client/dist/assets/{arc-Cil9fXuW.js → arc-DqTgRpuF.js} +1 -1
  35. package/server/client/dist/assets/{architectureDiagram-T3A2C74G-Cjq6ayF2.js → architectureDiagram-T3A2C74G-rTYMAQ-J.js} +1 -1
  36. package/server/client/dist/assets/{blockDiagram-VBNYF7ZC-B2Xm5N0i.js → blockDiagram-VBNYF7ZC-BOluytVz.js} +1 -1
  37. package/server/client/dist/assets/{c4Diagram-5PPSVZJV-Dp0y-lCR.js → c4Diagram-5PPSVZJV-C8gbPpcb.js} +1 -1
  38. package/server/client/dist/assets/{calendar-data-wB0ifXdo.js → calendar-data-BQ24n348.js} +1 -1
  39. package/server/client/dist/assets/channel--aI9fJWX.js +1 -0
  40. package/server/client/dist/assets/{chunk-2GRJ4B5K-CWaaNkFx.js → chunk-2GRJ4B5K-CRER5Ka0.js} +1 -1
  41. package/server/client/dist/assets/{chunk-2Q5K7J3B-Ces-xz2S.js → chunk-2Q5K7J3B-hxmJWGu_.js} +1 -1
  42. package/server/client/dist/assets/{chunk-5RXB4S5H-B-4Chlfc.js → chunk-5RXB4S5H-Bpr5Us8Y.js} +1 -1
  43. package/server/client/dist/assets/{chunk-5VM5RSS4-C8_HVwuz.js → chunk-5VM5RSS4-CKUz9fAb.js} +1 -1
  44. package/server/client/dist/assets/{chunk-6Q2QTUOP-xZ8ofRqk.js → chunk-6Q2QTUOP-B8XEOHPN.js} +1 -1
  45. package/server/client/dist/assets/{chunk-GF5L2VYU-Bpa43a7s.js → chunk-GF5L2VYU-BBUD-HJi.js} +1 -1
  46. package/server/client/dist/assets/{chunk-JWPE2WC7-DsyTXbuq.js → chunk-JWPE2WC7-Dq6_B8-d.js} +1 -1
  47. package/server/client/dist/assets/{chunk-KBJHAD2P-BDhjm9-8.js → chunk-KBJHAD2P--2VZEwNJ.js} +1 -1
  48. package/server/client/dist/assets/{chunk-RYQCIY6F-Cn-jdp6I.js → chunk-RYQCIY6F-CKCwnKiC.js} +1 -1
  49. package/server/client/dist/assets/{chunk-XXDRQBXY-BKsc_0wh.js → chunk-XXDRQBXY-VDufR1Oi.js} +1 -1
  50. package/server/client/dist/assets/classDiagram-JCYQIIEL-BsbwE38V.js +1 -0
  51. package/server/client/dist/assets/classDiagram-v2-OCEON4UE-BsbwE38V.js +1 -0
  52. package/server/client/dist/assets/{cose-bilkent-JH36ORCC-jmn3Q4zj.js → cose-bilkent-JH36ORCC-D4nqOx8S.js} +1 -1
  53. package/server/client/dist/assets/{cynefinDiagram-MW4NZA55-BpLstuBJ.js → cynefinDiagram-MW4NZA55-CUuLMs-6.js} +1 -1
  54. package/server/client/dist/assets/{dagre-VZM6K2ZE-B5ft5Yzm.js → dagre-VZM6K2ZE-CUSkhZgS.js} +1 -1
  55. package/server/client/dist/assets/{diagram-7IWD3JNH-B_W9IsWZ.js → diagram-7IWD3JNH-D95eVcKx.js} +4 -4
  56. package/server/client/dist/assets/{diagram-B4RE2ZJO-32chS3GX.js → diagram-B4RE2ZJO-7OH_fb0K.js} +1 -1
  57. package/server/client/dist/assets/{diagram-LBJQPF4R-Bqupdb3-.js → diagram-LBJQPF4R-D9UwEIMd.js} +1 -1
  58. package/server/client/dist/assets/{diagram-Q27KOJAE-BD8jKBsv.js → diagram-Q27KOJAE-Dx7WFDuX.js} +1 -1
  59. package/server/client/dist/assets/{diagram-UB23O5K3-C40jAU8D.js → diagram-UB23O5K3-D2BYwAKT.js} +1 -1
  60. package/server/client/dist/assets/{ebnfDiagram-BXEA7PRR-BQfW9mFA.js → ebnfDiagram-BXEA7PRR-DbeA-fk4.js} +1 -1
  61. package/server/client/dist/assets/{erDiagram-JOGREHBK-ILZnLzz2.js → erDiagram-JOGREHBK-jWW-ICGO.js} +1 -1
  62. package/server/client/dist/assets/{flowDiagram-UKHOOZJN-CDmwr2dI.js → flowDiagram-UKHOOZJN-68iZdxxw.js} +1 -1
  63. package/server/client/dist/assets/{ganttDiagram-PKOTCBZU-DBcrUc49.js → ganttDiagram-PKOTCBZU-CxwY3VXg.js} +1 -1
  64. package/server/client/dist/assets/{gitGraphDiagram-DS77QQ5N-_xO6__FK.js → gitGraphDiagram-DS77QQ5N-Ci6o5MfZ.js} +1 -1
  65. package/server/client/dist/assets/{image.api-ChvlfuZg.js → image.api-CyIIEGkG.js} +1 -1
  66. package/server/client/dist/assets/index-Iy_BgP1R.js +1 -0
  67. package/server/client/dist/assets/{infoDiagram-6WML65LV-CuIIcu-L.js → infoDiagram-6WML65LV-DY7aMdjV.js} +1 -1
  68. package/server/client/dist/assets/integrations-LOdTs1T6.js +1 -0
  69. package/server/client/dist/assets/{ishikawaDiagram-WSZJBQD7-BVtRGTOj.js → ishikawaDiagram-WSZJBQD7-Bh5qKh1d.js} +1 -1
  70. package/server/client/dist/assets/{journeyDiagram-NVQOT4AX-D5-Nzb2N.js → journeyDiagram-NVQOT4AX-B_svXTTT.js} +1 -1
  71. package/server/client/dist/assets/{kanban-definition-27J2QSJJ-DmOhgC8H.js → kanban-definition-27J2QSJJ-CaJslHGg.js} +1 -1
  72. package/server/client/dist/assets/manage-image-DXedfr7U.js +1 -0
  73. package/server/client/dist/assets/{manage-image-detail-Dw3tAW3h.js → manage-image-detail-DmifOPNU.js} +1 -1
  74. package/server/client/dist/assets/{mcp-admin-adapter-D0R8p9az.js → mcp-admin-adapter-CmKsg1vd.js} +1 -1
  75. package/server/client/dist/assets/mcp-d8IzsoRz.js +5 -0
  76. package/server/client/dist/assets/{mermaid.core-C2tL9tq7.js → mermaid.core-BfUQM5vF.js} +4 -4
  77. package/server/client/dist/assets/{mindmap-definition-FAOFIHXS-DuvsPqrh.js → mindmap-definition-FAOFIHXS-DGbkJda2.js} +1 -1
  78. package/server/client/dist/assets/{note-core-YhYEmI_R.js → note-core-DRBsBf9H.js} +9 -9
  79. package/server/client/dist/assets/{note-runtime-B3ats-dC.js → note-runtime-ztZvXRIu.js} +16 -16
  80. package/server/client/dist/assets/{note-ui-BtzPk8gA.js → note-ui-DRnAnwKv.js} +1 -1
  81. package/server/client/dist/assets/{pegDiagram-VL7TDLO6-D64crEZV.js → pegDiagram-VL7TDLO6-Bip6zQct.js} +1 -1
  82. package/server/client/dist/assets/{pieDiagram-7S7Q4E2Y--kl7vopC.js → pieDiagram-7S7Q4E2Y-CjfjGY8Y.js} +1 -1
  83. package/server/client/dist/assets/{placeholder-B5uPsE7-.js → placeholder-G6iEBbDy.js} +1 -1
  84. package/server/client/dist/assets/{properties-B7Fv95qY.js → properties-BPobx_Qk.js} +1 -1
  85. package/server/client/dist/assets/{quadrantDiagram-CIZ2JOQS-DuvJ4M2y.js → quadrantDiagram-CIZ2JOQS-B6F1yUT-.js} +1 -1
  86. package/server/client/dist/assets/{railroadDiagram-AXF67PYL-BMKmCOY7.js → railroadDiagram-AXF67PYL-D-0fLe0F.js} +1 -1
  87. package/server/client/dist/assets/{requirementDiagram-LRYGKXZP-DY1eJcy0.js → requirementDiagram-LRYGKXZP-tm4mnCyJ.js} +1 -1
  88. package/server/client/dist/assets/route-preload.js +2 -2
  89. package/server/client/dist/assets/{sankeyDiagram-W5VNT64P-C3Ka4GKM.js → sankeyDiagram-W5VNT64P-DSBWFurb.js} +1 -1
  90. package/server/client/dist/assets/{search-ddYl3qH-.js → search-DanMKCC8.js} +1 -1
  91. package/server/client/dist/assets/{search-admin-adapter-Daf7e2YQ.js → search-admin-adapter-7sTcWTmv.js} +1 -1
  92. package/server/client/dist/assets/{sequenceDiagram-SI44F4Z6-Bhpwtk2s.js → sequenceDiagram-SI44F4Z6-KrwjjJIV.js} +1 -1
  93. package/server/client/dist/assets/{sizeCapture-X5ZJPWSS-BFta71TW.js → sizeCapture-X5ZJPWSS-DL2cn_Q6.js} +1 -1
  94. package/server/client/dist/assets/{stateDiagram-OKZ733FA-D6GCn1io.js → stateDiagram-OKZ733FA-CKuNDH85.js} +1 -1
  95. package/server/client/dist/assets/{stateDiagram-v2-UEYNNEHI-g4yinGDn.js → stateDiagram-v2-UEYNNEHI-BFaj2wbM.js} +1 -1
  96. package/server/client/dist/assets/{swimlanes-SLNWSIFB-DLFvOjUl.js → swimlanes-SLNWSIFB-5S17nqhK.js} +2 -2
  97. package/server/client/dist/assets/swimlanesDiagram-ULZ7WXOC-dexsHJq2.js +8 -0
  98. package/server/client/dist/assets/{tag.api-DEUROVKQ.js → tag.api-kKZl04yY.js} +1 -1
  99. package/server/client/dist/assets/{time-PxWila4-.js → time-BwwQGbK-.js} +38 -38
  100. package/server/client/dist/assets/{timeline-definition-Z64GVDOM-DTSIekSM.js → timeline-definition-Z64GVDOM-CU1hp_7d.js} +3 -3
  101. package/server/client/dist/assets/{trash-BHida7BG.js → trash-Cepvi7G8.js} +1 -1
  102. package/server/client/dist/assets/url-Bp8sXMb4.js +1 -0
  103. package/server/client/dist/assets/{useNoteMutate-BjvZUmtX.js → useNoteMutate-D-mZKXjl.js} +3 -3
  104. package/server/client/dist/assets/{useReminderMutate-C5n-5LM-.js → useReminderMutate-Cexk1ydX.js} +1 -1
  105. package/server/client/dist/assets/{vennDiagram-T6HMQDX7-CMNqSI2X.js → vennDiagram-T6HMQDX7-MoiVLnil.js} +1 -1
  106. package/server/client/dist/assets/{wardleyDiagram-T6FBY63Y-DV-JOYqB.js → wardleyDiagram-T6FBY63Y-cZkfdI6C.js} +1 -1
  107. package/server/client/dist/assets/{xychartDiagram-ELKLHX3M-BUIniF4m.js → xychartDiagram-ELKLHX3M-B63hxD-r.js} +1 -1
  108. package/server/client/dist/index.html +6 -6
  109. package/server/dist/app.js +2 -0
  110. package/server/dist/features/integration/auth.js +21 -0
  111. package/server/dist/features/integration/manifest.js +87 -0
  112. package/server/dist/features/integration/schema.js +54 -0
  113. package/server/dist/features/integration/service.js +173 -0
  114. package/server/dist/features/mcp-admin/service.js +19 -83
  115. package/server/dist/features/note/graphql/note.field.resolver.js +1 -1
  116. package/server/dist/features/note/graphql/note.query.resolver.js +6 -0
  117. package/server/dist/features/note/graphql/note.type-defs.js +13 -1
  118. package/server/dist/features/note/http/authoring.js +493 -0
  119. package/server/dist/features/note/http/mcp.js +15 -463
  120. package/server/dist/features/note/services/authoring.js +17 -1
  121. package/server/dist/features/note/services/markdown-intent-write.js +1 -0
  122. package/server/dist/features/note/services/markdown-read.js +85 -0
  123. package/server/dist/features/note/services/properties.js +36 -30
  124. package/server/dist/features/note/services/search.js +17 -0
  125. package/server/dist/features/search/graphql/resolver.js +10 -1
  126. package/server/dist/features/search/graphql/type-defs.js +3 -0
  127. package/server/dist/features/tag/graphql/tag.query.resolver.js +10 -0
  128. package/server/dist/features/tag/graphql/tag.type-defs.js +1 -0
  129. package/server/dist/features/view/graphql/mcp.query.resolver.js +22 -0
  130. package/server/dist/features/view/graphql/view.query.resolver.js +2 -0
  131. package/server/dist/features/view/graphql/view.type-defs.js +27 -0
  132. package/server/dist/features/view/services/mcp-read.js +142 -0
  133. package/server/dist/features/view/services/workspace.js +12 -4
  134. package/server/dist/modules/auth-guard.js +24 -1
  135. package/server/dist/modules/integration-token.js +27 -0
  136. package/server/dist/modules/mcp-auth.js +37 -23
  137. package/server/dist/modules/mcp-token.js +6 -25
  138. package/server/dist/routes/api.js +2 -0
  139. package/server/dist/routes/graphql.js +2 -1
  140. package/server/dist/routes/integrations.js +117 -0
  141. package/server/dist/routes/mcp.js +29 -9
  142. package/server/prisma/migrations/20260917120000_0020_plugin_installations/migration.sql +39 -0
  143. package/server/prisma/migrations/20260917150000_0021_integration_connections/migration.sql +29 -0
  144. package/server/prisma/schema.prisma +34 -10
  145. package/server/client/dist/assets/Note-CpzLtGVM.js +0 -19
  146. package/server/client/dist/assets/Reminders-DnuALBL6.js +0 -1
  147. package/server/client/dist/assets/Trash.es-XEcWG_aq.js +0 -1
  148. package/server/client/dist/assets/Views-B5oh8GVM.js +0 -1
  149. package/server/client/dist/assets/app-EwvT7bMw.css +0 -1
  150. package/server/client/dist/assets/app-NgiBDISG.js +0 -151
  151. package/server/client/dist/assets/channel-DZFalh-h.js +0 -1
  152. package/server/client/dist/assets/classDiagram-JCYQIIEL-CkEhFvVV.js +0 -1
  153. package/server/client/dist/assets/classDiagram-v2-OCEON4UE-CkEhFvVV.js +0 -1
  154. package/server/client/dist/assets/index-CIEap4bu.js +0 -1
  155. package/server/client/dist/assets/manage-image-CSJ3Flgc.js +0 -1
  156. package/server/client/dist/assets/mcp-D8footel.js +0 -5
  157. package/server/client/dist/assets/swimlanesDiagram-ULZ7WXOC-Ci4mcvmo.js +0 -8
  158. package/server/client/dist/assets/url-DKUMNVCI.js +0 -1
@@ -0,0 +1,151 @@
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/Calendar-vA4Xa4Qr.js","assets/floating-ui.react-dom-BWTnA00G.js","assets/time-BwwQGbK-.js","assets/url-Bp8sXMb4.js","assets/useNoteMutate-D-mZKXjl.js","assets/calendar-data-BQ24n348.js","assets/FileText.es-C-bpw8dQ.js","assets/Callout-Bo2P960P.js","assets/Info.es-DVzN2joA.js","assets/preload-helper-BXl3LOEh.js","assets/Graph-BNoSRJP3.js","assets/Views-8ghLRax7.js","assets/tag.api-kKZl04yY.js","assets/SurfaceCard-jL2qzrzF.js","assets/ViewChip-CVe_HNyd.js","assets/ArrowRight.es-nBJws3ws.js","assets/CheckCircle.es-CyY9aLBF.js","assets/Plus.es-Cl8zOOZa.js","assets/Reminders-Dt2JuGci.js","assets/useReminderMutate-Cexk1ydX.js","assets/Graph-DYYxNAWn.js","assets/transform-BUB79_za.js","assets/isObject-U9U2HXiq.js","assets/toNumber-DE3J3kMD.js","assets/ordinal-Cboi1Yqb.js","assets/init-Gi6I4Gst.js","assets/colors-Cc3OSVma.js","assets/min-tv6RD-6E.js","assets/FlowArrow.es-CKcMBOmX.js","assets/CaretUp.es-DDbqKn78.js","assets/LinkSimple.es-BD4aGTc3.js","assets/Search-CPPTW2PO.js","assets/AuxiliaryPanelHeader-BN_2axQu.js","assets/search-admin-adapter-7sTcWTmv.js","assets/File.es-DeTgvUnI.js","assets/Tag-3DbGmuxa.js","assets/Note-FL31jb2U.js","assets/NotePropertiesPanel-os22Ppnu.js","assets/note-ui-DRnAnwKv.js","assets/note-core-DRBsBf9H.js","assets/note-runtime-ztZvXRIu.js","assets/note-ui-DL8owV-U.css","assets/image.api-CyIIEGkG.js","assets/Copy.es-BwX4tEoU.js","assets/TagNotes-DLwRF8pT.js","assets/index-Iy_BgP1R.js","assets/mcp-admin-adapter-CmKsg1vd.js","assets/Image.es-d4jWnijM.js","assets/Trash.es-fxukjAO6.js","assets/integrations-LOdTs1T6.js","assets/Integration-gDDtIJYJ.js","assets/mcp-d8IzsoRz.js","assets/search-DanMKCC8.js","assets/trash-Cepvi7G8.js","assets/manage-image-DXedfr7U.js","assets/image-delete-confirmation-D7xrODQV.js","assets/manage-image-detail-DmifOPNU.js","assets/properties-BPobx_Qk.js","assets/placeholder-G6iEBbDy.js"])))=>i.map(i=>d[i]);
2
+ import{j as p,r as d,b as G,a as mt}from"./floating-ui.react-dom-BWTnA00G.js";import{q as Ds,t as js,v as Vs,w as Os,x as ks,l as Fs,u as Hs,a as cr,b as Bs,e as lr,o as $s,s as Zs,j as zs,n as Us,d as xo,m as Ks,h as Gs,R as Ws}from"./useNoteMutate-D-mZKXjl.js";import{aE as Ue,aF as St,aG as te,aH as X,aI as Rt,aJ as qe,aK as dr,aL as qs,aM as Xs,aN as Ys,aO as Qs,aP as Js,aQ as ea,aR as ta,aS as Ke,aT as wo,aU as na,aV as bn,aW as oa,aX as So,aY as ce,aZ as Ro,a_ as ht,a$ as ra,b0 as sa,b1 as Mt,b2 as aa,b3 as j,b4 as Eo,b5 as ia,G as ca,b6 as la,b7 as da,at as Ce,ap as Bn,b8 as ua,b9 as Co,ba as le,bb as yn,bc as Ft,bd as $n,be as ha,bf as fa,A as Qe,f as ae,u as Zn,bg as pa,bh as ma,bi as ga,bj as va,T as ne,x as xn,bk as ur,y as ft,bl as hr,bm as ba,L as ya,N as xa,g as Z,c as ie,F as wa,q as Xe,e as Sa,i as fr,Q as pr,aD as Ra,l as gt,D as Et,bn as Ea,K as Ca,az as _a,R as Pa,O as Aa,h as Ma,P as La,k as Ia,E as Ta,bo as Na,bp as Da,bq as ja,br as z,bs as Va,a2 as An,bt as _o,bu as Oa}from"./time-BwwQGbK-.js";import{_ as H}from"./preload-helper-BXl3LOEh.js";import{g as Lt,N as zn,I as Un,H as sn,V as Kn,G as mr,C as gr,R as vr,f as br,j as yr,T as xr,k as ka,h as Fa,i as Ha,S as Ba,a as $a,d as Za,c as za,e as Ua,b as Ka}from"./url-Bp8sXMb4.js";import{f as wr,G as Ga}from"./Graph-BNoSRJP3.js";(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))o(r);new MutationObserver(r=>{for(const s of r)if(s.type==="childList")for(const a of s.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&o(a)}).observe(document,{childList:!0,subtree:!0});function n(r){const s={};return r.integrity&&(s.integrity=r.integrity),r.referrerPolicy&&(s.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?s.credentials="include":r.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function o(r){if(r.ep)return;r.ep=!0;const s=n(r);fetch(r.href,s)}})();const Gn={DARK:"(prefers-color-scheme: dark)",LIGHT:"(prefers-color-scheme: light)",RETINA:"(min-resolution: 2dppx)",RESPONSIVE:e=>`screen and (max-width: ${e})`},Sr=e=>typeof window<"u"&&window.matchMedia?window.matchMedia(e):null,Wn=(e,t,n=!0)=>{const o=Sr(e);n&&t(o?.matches||!1);const r=s=>{t?.(s.matches)};return o?.addEventListener("change",r),()=>{o?.removeEventListener("change",r)}},Wa=(e,t=!0)=>Wn(Gn.DARK,e,t),qa=(e,t,n=!0)=>Wn(Gn.RESPONSIVE(e),t,n),Xa={MEDIA_QUERY:Gn,listenThemeChange:Wa,listenResponsiveChange:qa,createMediaQuery:Sr,listenMediaQueryChange:Wn};var D=(e=>(e[e.None=0]="None",e[e.Mutable=1]="Mutable",e[e.Watching=2]="Watching",e[e.RecursedCheck=4]="RecursedCheck",e[e.Recursed=8]="Recursed",e[e.Dirty=16]="Dirty",e[e.Pending=32]="Pending",e))(D||{});function Rr({update:e,notify:t,unwatched:n}){return{link:o,unlink:r,propagate:s,checkDirty:a,shallowPropagate:i};function o(c,u,h){const f=u.depsTail;if(f!==void 0&&f.dep===c)return;const m=f!==void 0?f.nextDep:u.deps;if(m!==void 0&&m.dep===c){m.version=h,u.depsTail=m;return}const g=c.subsTail;if(g!==void 0&&g.version===h&&g.sub===u)return;const v=u.depsTail=c.subsTail={version:h,dep:c,sub:u,prevDep:f,nextDep:m,prevSub:g,nextSub:void 0};m!==void 0&&(m.prevDep=v),f!==void 0?f.nextDep=v:u.deps=v,g!==void 0?g.nextSub=v:c.subs=v}function r(c,u=c.sub){const h=c.dep,f=c.prevDep,m=c.nextDep,g=c.nextSub,v=c.prevSub;return m!==void 0?m.prevDep=f:u.depsTail=f,f!==void 0?f.nextDep=m:u.deps=m,g!==void 0?g.prevSub=v:h.subsTail=v,v!==void 0?v.nextSub=g:(h.subs=g)===void 0&&n(h),m}function s(c){let u=c.nextSub,h;e:do{const f=c.sub;let m=f.flags;if(m&60?m&12?m&4?!(m&48)&&l(c,f)?(f.flags=m|40,m&=1):m=0:f.flags=m&-9|32:m=0:f.flags=m|32,m&2&&t(f),m&1){const g=f.subs;if(g!==void 0){const v=(c=g).nextSub;v!==void 0&&(h={value:u,prev:h},u=v);continue}}if((c=u)!==void 0){u=c.nextSub;continue}for(;h!==void 0;)if(c=h.value,h=h.prev,c!==void 0){u=c.nextSub;continue e}break}while(!0)}function a(c,u){let h,f=0,m=!1;e:do{const g=c.dep,v=g.flags;if(u.flags&16)m=!0;else if((v&17)===17){if(e(g)){const b=g.subs;b.nextSub!==void 0&&i(b),m=!0}}else if((v&33)===33){(c.nextSub!==void 0||c.prevSub!==void 0)&&(h={value:c,prev:h}),c=g.deps,u=g,++f;continue}if(!m){const b=c.nextDep;if(b!==void 0){c=b;continue}}for(;f--;){const b=u.subs,y=b.nextSub!==void 0;if(y?(c=h.value,h=h.prev):c=b,m){if(e(u)){y&&i(b),u=c.sub;continue}m=!1}else u.flags&=-33;u=c.sub;const w=c.nextDep;if(w!==void 0){c=w;continue e}}return m}while(!0)}function i(c){do{const u=c.sub,h=u.flags;(h&48)===32&&(u.flags=h|16,(h&6)===2&&t(u))}while((c=c.nextSub)!==void 0)}function l(c,u){let h=u.depsTail;for(;h!==void 0;){if(h===c)return!0;h=h.prevDep}return!1}}let qn=0,Ve=0,vt=0;const Se=[],{link:yh,unlink:Er,propagate:xh,checkDirty:Ya,shallowPropagate:wh}=Rr({update(e){return e.depsTail!==void 0?ti(e):ni(e)},notify(e){let t=vt,n=t;do if(Se[t++]=e,e.flags&=-3,e=e.subs?.sub,e===void 0||!(e.flags&2))break;while(!0);for(vt=t;n<--t;){const o=Se[n];Se[n++]=Se[t],Se[t]=o}},unwatched(e){e.flags&1?e.depsTail!==void 0&&(e.depsTail=void 0,e.flags=17,an(e)):si.call(e)}});function Qa(){return qn}function Ja(){++qn}function ei(){--qn||ri()}function ti(e){e.depsTail=void 0,e.flags=5;try{const t=e.value;return t!==(e.value=e.getter(t))}finally{e.flags&=-5,an(e)}}function ni(e){return e.flags=1,e.currentValue!==(e.currentValue=e.pendingValue)}function oi(e){const t=e.flags;if(t&16||t&32&&Ya(e.deps,e)){e.depsTail=void 0,e.flags=6;try{e.fn()}finally{e.flags&=-5,an(e)}}else e.flags=2}function ri(){try{for(;Ve<vt;){const e=Se[Ve];Se[Ve++]=void 0,oi(e)}}finally{for(;Ve<vt;){const e=Se[Ve];Se[Ve++]=void 0,e.flags|=10}Ve=0,vt=0}}function si(){this.depsTail=void 0,this.flags=0,an(this);const e=this.subs;e!==void 0&&Er(e)}function an(e){const t=e.depsTail;let n=t!==void 0?t.nextDep:e.deps;for(;n!==void 0;)n=Er(n,e)}function Xn(e,t,n){const o=typeof e=="object",r=o?e:void 0;return{next:(o?e.next:e)?.bind(r),error:(o?e.error:t)?.bind(r),complete:(o?e.complete:n)?.bind(r)}}const Mn=[];let Kt=0;const{link:Po,unlink:ai,propagate:ii,checkDirty:Cr,shallowPropagate:Ao}=Rr({update(e){return e._update()},notify(e){Mn[Ln++]=e,e.flags&=~D.Watching},unwatched(e){e.depsTail!==void 0&&(e.depsTail=void 0,e.flags=D.Mutable|D.Dirty,qt(e))}});let Ht=0,Ln=0,me;function qt(e){const t=e.depsTail;let n=t!==void 0?t.nextDep:e.deps;for(;n!==void 0;)n=ai(n,e)}function _r(){if(!(Qa()>0)){for(;Ht<Ln;){const e=Mn[Ht];Mn[Ht++]=void 0,e.notify()}Ht=0,Ln=0}}function Pr(e,t){const n=typeof e=="function",o=e,r={_snapshot:n?void 0:e,subs:void 0,subsTail:void 0,deps:void 0,depsTail:void 0,flags:n?D.None:D.Mutable,get(){return me!==void 0&&Po(r,me,Kt),r._snapshot},subscribe(s){const a=Xn(s),i={current:!1},l=ci(()=>{r.get(),i.current?a.next?.(r._snapshot):i.current=!0});return{unsubscribe:()=>{l.stop()}}},_update(s){const a=me,i=Object.is;if(n)me=r,++Kt,r.depsTail=void 0;else if(s===void 0)return!1;n&&(r.flags=D.Mutable|D.RecursedCheck);try{const l=r._snapshot,c=typeof s=="function"?s(l):s===void 0&&n?o(l):s;return l===void 0||!i(l,c)?(r._snapshot=c,!0):!1}finally{me=a,n&&(r.flags&=~D.RecursedCheck),qt(r)}}};return n?(r.flags=D.Mutable|D.Dirty,r.get=function(){const s=r.flags;if(s&D.Dirty||s&D.Pending&&Cr(r.deps,r)){if(r._update()){const a=r.subs;a!==void 0&&Ao(a)}}else s&D.Pending&&(r.flags=s&~D.Pending);return me!==void 0&&Po(r,me,Kt),r._snapshot}):r.set=function(s){if(r._update(s)){const a=r.subs;a!==void 0&&(ii(a),Ao(a),_r())}},r}function ci(e){const t=()=>{const o=me;me=n,++Kt,n.depsTail=void 0,n.flags=D.Watching|D.RecursedCheck;try{return e()}finally{me=o,n.flags&=~D.RecursedCheck,qt(n)}},n={deps:void 0,depsTail:void 0,subs:void 0,subsTail:void 0,flags:D.Watching|D.RecursedCheck,notify(){const o=this.flags;o&D.Dirty||o&D.Pending&&Cr(this.deps,this)?t():this.flags=D.Watching},stop(){this.flags=D.None,this.depsTail=void 0,qt(this)}};return t(),n}class li{constructor(t){this.atom=Pr(t)}setState(t){this.atom.set(t)}get state(){return this.atom.get()}get(){return this.state}subscribe(t){return this.atom.subscribe(Xn(t))}}class di{constructor(t){this.atom=Pr(t)}get state(){return this.atom.get()}get(){return this.state}subscribe(t){return this.atom.subscribe(Xn(t))}}function ui(e){return typeof e=="function"?new di(e):new li(e)}function hi(e){try{Ja(),e()}finally{ei(),_r()}}const De="__TSR_index",Mo="popstate",Lo="beforeunload";function fi(e){let t=e.getLocation();const n=new Set,o=a=>{t=e.getLocation(),n.forEach(i=>i({location:t,action:a}))},r=a=>{e.notifyOnIndexChange??!0?o(a):t=e.getLocation()},s=async({task:a,navigateOpts:i,...l})=>{if(i?.ignoreBlocker??!1){a();return}const u=e.getBlockers?.()??[],h=l.type==="PUSH"||l.type==="REPLACE";if(typeof document<"u"&&u.length&&h)for(const f of u){const m=Xt(l.path,l.state);if(await f.blockerFn({currentLocation:t,nextLocation:m,action:l.type})){e.onBlocked?.();return}}a()};return{get location(){return t},get length(){return e.getLength()},subscribers:n,subscribe:a=>(n.add(a),()=>{n.delete(a)}),push:(a,i,l)=>{const c=t.state[De];i=Io(c+1,i),s({task:()=>{e.pushState(a,i),o({type:"PUSH"})},navigateOpts:l,type:"PUSH",path:a,state:i})},replace:(a,i,l)=>{const c=t.state[De];i=Io(c,i),s({task:()=>{e.replaceState(a,i),o({type:"REPLACE"})},navigateOpts:l,type:"REPLACE",path:a,state:i})},go:(a,i)=>{s({task:()=>{e.go(a),r({type:"GO",index:a})},navigateOpts:i,type:"GO"})},back:a=>{s({task:()=>{e.back(a?.ignoreBlocker??!1),r({type:"BACK"})},navigateOpts:a,type:"BACK"})},forward:a=>{s({task:()=>{e.forward(a?.ignoreBlocker??!1),r({type:"FORWARD"})},navigateOpts:a,type:"FORWARD"})},canGoBack:()=>t.state[De]!==0,createHref:a=>e.createHref(a),block:a=>{if(!e.setBlockers)return()=>{};const i=e.getBlockers?.()??[];return e.setBlockers([...i,a]),()=>{const l=e.getBlockers?.()??[];e.setBlockers?.(l.filter(c=>c!==a))}},flush:()=>e.flush?.(),destroy:()=>e.destroy?.(),notify:o}}function Io(e,t){t||(t={});const n=Yn();return{...t,key:n,__TSR_key:n,[De]:e}}function pi(e){const t=typeof document<"u"?window:void 0,n=t.history.pushState,o=t.history.replaceState;let r=[];const s=()=>r,a=x=>r=x,i=(x=>x),l=(()=>Xt(`${t.location.pathname}${t.location.search}${t.location.hash}`,t.history.state));if(!t.history.state?.__TSR_key&&!t.history.state?.key){const x=Yn();t.history.replaceState({[De]:0,key:x,__TSR_key:x},"")}let c=l(),u,h=!1,f=!1,m=!1,g=!1;const v=()=>c;let b,y;const w=()=>{b&&(E._ignoreSubscribers=!0,(b.isPush?t.history.pushState:t.history.replaceState)(b.state,"",b.href),E._ignoreSubscribers=!1,b=void 0,y=void 0,u=void 0)},R=(x,C,I)=>{const P=i(C);y||(u=c),c=Xt(C,I),b={href:P,state:I,isPush:b?.isPush||x==="push"},y||(y=Promise.resolve().then(()=>w()))},S=x=>{c=l(),E.notify({type:x})},_=async()=>{if(f){f=!1;return}const x=l(),C=x.state[De]-c.state[De],I=C===1,P=C===-1,M=!I&&!P||h;h=!1;const K=M?"GO":P?"BACK":"FORWARD",N=M?{type:"GO",index:C}:{type:P?"BACK":"FORWARD"};if(m)m=!1;else{const ue=s();if(typeof document<"u"&&ue.length){for(const W of ue)if(await W.blockerFn({currentLocation:c,nextLocation:x,action:K})){f=!0,t.history.go(1),E.notify(N);return}}}c=l(),E.notify(N)},A=x=>{if(g){g=!1;return}let C=!1;const I=s();if(typeof document<"u"&&I.length)for(const P of I){const M=P.enableBeforeUnload??!0;if(M===!0){C=!0;break}if(typeof M=="function"&&M()===!0){C=!0;break}}if(C)return x.preventDefault(),x.returnValue=""},E=fi({getLocation:v,getLength:()=>t.history.length,pushState:(x,C)=>R("push",x,C),replaceState:(x,C)=>R("replace",x,C),back:x=>(x&&(m=!0),g=!0,t.history.back()),forward:x=>{x&&(m=!0),g=!0,t.history.forward()},go:x=>{h=!0,t.history.go(x)},createHref:x=>i(x),flush:w,destroy:()=>{t.history.pushState=n,t.history.replaceState=o,t.removeEventListener(Lo,A,{capture:!0}),t.removeEventListener(Mo,_)},onBlocked:()=>{u&&c!==u&&(c=u)},getBlockers:s,setBlockers:a,notifyOnIndexChange:!1});return t.addEventListener(Lo,A,{capture:!0}),t.addEventListener(Mo,_),t.history.pushState=function(...x){const C=n.apply(t.history,x);return E._ignoreSubscribers||S("PUSH"),C},t.history.replaceState=function(...x){const C=o.apply(t.history,x);return E._ignoreSubscribers||S("REPLACE"),C},E}function mi(e){let t=e.replace(/[\x00-\x1f\x7f]/g,"");return t.startsWith("//")&&(t="/"+t.replace(/^\/+/,"")),t}function Xt(e,t){const n=mi(e),o=n.indexOf("#"),r=n.indexOf("?"),s=Yn();return{href:n,pathname:n.substring(0,o>0?r>0?Math.min(o,r):o:r>0?r:n.length),hash:o>-1?n.substring(o):"",search:r>-1?n.slice(r,o===-1?void 0:o):"",state:t||{[De]:0,key:s,__TSR_key:s}}}function Yn(){return(Math.random()+1).toString(36).substring(7)}const gi=!1;function bt(e){let t;return hi(()=>{t=e()}),t}function vi(){try{if(typeof window<"u"&&typeof window.sessionStorage=="object")return window.sessionStorage}catch{}}const In="tsr-scroll-restoration-v1_3",bi=(e,t)=>{let n;return(...o)=>{n||(n=setTimeout(()=>{e(...o),n=null},t))}};function yi(){const e=vi();if(!e)return null;const t=e.getItem(In);let n=t?JSON.parse(t):{};return{state:n,set:o=>{n=Ue(o,n)||n;try{e.setItem(In,JSON.stringify(n))}catch{console.warn("[ts-router] Could not persist scroll restoration state to sessionStorage.")}}}}const Bt=yi(),xi=e=>e.state.__TSR_key||e.href;function wi(e){const t=[];let n;for(;n=e.parentNode;)t.push(`${e.tagName}:nth-child(${Array.prototype.indexOf.call(n.children,e)+1})`),e=n;return`${t.reverse().join(" > ")}`.toLowerCase()}let Yt=!1;function Si({storageKey:e,key:t,behavior:n,shouldScrollRestoration:o,scrollToTopSelectors:r,location:s}){let a;try{a=JSON.parse(sessionStorage.getItem(e)||"{}")}catch(c){console.error(c);return}const i=t||window.history.state?.__TSR_key,l=a[i];Yt=!0;e:{if(o&&l&&Object.keys(l).length>0){for(const h in l){const f=l[h];if(h==="window")window.scrollTo({top:f.scrollY,left:f.scrollX,behavior:n});else if(h){const m=document.querySelector(h);m&&(m.scrollLeft=f.scrollX,m.scrollTop=f.scrollY)}}break e}const c=(s??window.location).hash.split("#",2)[1];if(c){const h=window.history.state?.__hashScrollIntoViewOptions??!0;if(h){const f=document.getElementById(c);f&&f.scrollIntoView(h)}break e}const u={top:0,left:0,behavior:n};if(window.scrollTo(u),r)for(const h of r){if(h==="window")continue;const f=typeof h=="function"?h():document.querySelector(h);f&&f.scrollTo(u)}}Yt=!1}function Ri(e,t){if(!Bt||((e.options.scrollRestoration??!1)&&(e.isScrollRestoring=!0),e.isScrollRestorationSetup||!Bt))return;e.isScrollRestorationSetup=!0,Yt=!1;const o=e.options.getScrollRestorationKey||xi;window.history.scrollRestoration="manual";const r=s=>{if(Yt||!e.isScrollRestoring)return;let a="";if(s.target===document||s.target===window)a="window";else{const l=s.target.getAttribute("data-scroll-restoration-id");l?a=`[data-scroll-restoration-id="${l}"]`:a=wi(s.target)}const i=o(e.state.location);Bt.set(l=>{const c=l[i]||={},u=c[a]||={};if(a==="window")u.scrollX=window.scrollX||0,u.scrollY=window.scrollY||0;else if(a){const h=document.querySelector(a);h&&(u.scrollX=h.scrollLeft||0,u.scrollY=h.scrollTop||0)}return l})};typeof document<"u"&&document.addEventListener("scroll",bi(r,100),!0),e.subscribe("onRendered",s=>{const a=o(s.toLocation);if(!e.resetNextScroll){e.resetNextScroll=!0;return}typeof e.options.scrollRestoration=="function"&&!e.options.scrollRestoration({location:e.latestLocation})||(Si({storageKey:In,key:a,behavior:e.options.scrollRestorationBehavior,shouldScrollRestoration:e.isScrollRestoring,scrollToTopSelectors:e.options.scrollToTopSelectors,location:e.history.location}),e.isScrollRestoring&&Bt.set(i=>(i[a]||={},i)))})}function Ei(e){if(typeof document<"u"&&document.querySelector){const t=e.state.location.state.__hashScrollIntoViewOptions??!0;if(t&&e.state.location.hash!==""){const n=document.getElementById(e.state.location.hash);n&&n.scrollIntoView(t)}}}function Ci(e,t=String){const n=new URLSearchParams;for(const o in e){const r=e[o];r!==void 0&&n.set(o,t(r))}return n.toString()}function wn(e){return e?e==="false"?!1:e==="true"?!0:+e*0===0&&+e+""===e?+e:e:""}function _i(e){const t=new URLSearchParams(e),n={};for(const[o,r]of t.entries()){const s=n[o];s==null?n[o]=wn(r):Array.isArray(s)?s.push(wn(r)):n[o]=[s,wn(r)]}return n}const Pi=Mi(JSON.parse),Ai=Li(JSON.stringify,JSON.parse);function Mi(e){return t=>{t[0]==="?"&&(t=t.substring(1));const n=_i(t);for(const o in n){const r=n[o];if(typeof r=="string")try{n[o]=e(r)}catch{}}return n}}function Li(e,t){const n=typeof t=="function";function o(r){if(typeof r=="object"&&r!==null)try{return e(r)}catch{}else if(n&&typeof r=="string")try{return t(r),e(r)}catch{}return r}return r=>{const s=Ci(r,o);return s?`?${s}`:""}}const Tn=e=>{if(!e.rendered)return e.rendered=!0,e.onReady?.()},cn=(e,t)=>!!(e.preload&&!e.router.state.matches.some(n=>n.id===t)),Ge=(e,t,n=!0)=>{const o={...e.router.options.context??{}},r=n?t:t-1;for(let s=0;s<=r;s++){const a=e.matches[s];if(!a)continue;const i=e.router.getMatch(a.id);i&&Object.assign(o,i.__routeContext,i.__beforeLoadContext)}return o},To=(e,t)=>{if(!e.matches.length)return;const n=t.routeId,o=e.matches.findIndex(a=>a.routeId===e.router.routeTree.id),r=o>=0?o:0;let s=n?e.matches.findIndex(a=>a.routeId===n):e.firstBadMatchIndex??e.matches.length-1;s<0&&(s=r);for(let a=s;a>=0;a--){const i=e.matches[a];if(e.router.looseRoutesById[i.routeId].options.notFoundComponent)return a}return n?s:r},Ne=(e,t,n)=>{if(!(!te(n)&&!X(n)))throw te(n)&&n.redirectHandled&&!n.options.reloadDocument||(t&&(t._nonReactive.beforeLoadPromise?.resolve(),t._nonReactive.loaderPromise?.resolve(),t._nonReactive.beforeLoadPromise=void 0,t._nonReactive.loaderPromise=void 0,t._nonReactive.error=n,e.updateMatch(t.id,o=>({...o,status:te(n)?"redirected":o.status==="pending"?"success":o.status,context:Ge(e,t.index),isFetching:!1,error:n})),X(n)&&!n.routeId&&(n.routeId=t.routeId),t._nonReactive.loadPromise?.resolve()),te(n)&&(e.rendered=!0,n.options._fromLocation=e.location,n.redirectHandled=!0,n=e.router.resolveRedirect(n))),n},Ar=(e,t)=>!!e.router.getMatch(t)._nonReactive.dehydrated,pt=(e,t,n,o)=>{const{id:r,routeId:s}=e.matches[t],a=e.router.looseRoutesById[s];if(n instanceof Promise)throw n;n.routerCode=o,e.firstBadMatchIndex??=t,Ne(e,e.router.getMatch(r),n);try{a.options.onError?.(n)}catch(i){n=i,Ne(e,e.router.getMatch(r),n)}e.updateMatch(r,i=>(i._nonReactive.beforeLoadPromise?.resolve(),i._nonReactive.beforeLoadPromise=void 0,i._nonReactive.loadPromise?.resolve(),{...i,error:n,status:"error",isFetching:!1,updatedAt:Date.now(),abortController:new AbortController})),!e.preload&&!te(n)&&!X(n)&&(e.serialError??=n)},Mr=(e,t,n,o)=>{if(o._nonReactive.pendingTimeout!==void 0)return;const r=n.options.pendingMs??e.router.options.defaultPendingMs;if(!!(e.onReady&&!cn(e,t)&&(n.options.loader||n.options.beforeLoad||Ir(n))&&typeof r=="number"&&r!==1/0&&(n.options.pendingComponent??e.router.options?.defaultPendingComponent))){const a=setTimeout(()=>{Tn(e)},r);o._nonReactive.pendingTimeout=a}},Ii=(e,t,n)=>{const o=e.router.getMatch(t);if(!o._nonReactive.beforeLoadPromise&&!o._nonReactive.loaderPromise)return;Mr(e,t,n,o);const r=()=>{const s=e.router.getMatch(t);s.preload&&(s.status==="redirected"||s.status==="notFound")&&Ne(e,s,s.error)};return o._nonReactive.beforeLoadPromise?o._nonReactive.beforeLoadPromise.then(r):r()},Ti=(e,t,n,o)=>{const r=e.router.getMatch(t),s=r._nonReactive.loadPromise;r._nonReactive.loadPromise=qe(()=>{s?.resolve()});const{paramsError:a,searchError:i}=r;a&&pt(e,n,a,"PARSE_PARAMS"),i&&pt(e,n,i,"VALIDATE_SEARCH"),Mr(e,t,o,r);const l=new AbortController;let c=!1;const u=()=>{c||(c=!0,e.updateMatch(t,S=>({...S,isFetching:"beforeLoad",fetchCount:S.fetchCount+1,abortController:l})))},h=()=>{r._nonReactive.beforeLoadPromise?.resolve(),r._nonReactive.beforeLoadPromise=void 0,e.updateMatch(t,S=>({...S,isFetching:!1}))};if(!o.options.beforeLoad){bt(()=>{u(),h()});return}r._nonReactive.beforeLoadPromise=qe();const f={...Ge(e,n,!1),...r.__routeContext},{search:m,params:g,cause:v}=r,b=cn(e,t),y={search:m,abortController:l,params:g,preload:b,context:f,location:e.location,navigate:S=>e.router.navigate({...S,_fromLocation:e.location}),buildLocation:e.router.buildLocation,cause:b?"preload":v,matches:e.matches,routeId:o.id,...e.router.options.additionalContext},w=S=>{if(S===void 0){bt(()=>{u(),h()});return}(te(S)||X(S))&&(u(),pt(e,n,S,"BEFORE_LOAD")),bt(()=>{u(),e.updateMatch(t,_=>({..._,__beforeLoadContext:S})),h()})};let R;try{if(R=o.options.beforeLoad(y),St(R))return u(),R.catch(S=>{pt(e,n,S,"BEFORE_LOAD")}).then(w)}catch(S){u(),pt(e,n,S,"BEFORE_LOAD")}w(R)},Ni=(e,t)=>{const{id:n,routeId:o}=e.matches[t],r=e.router.looseRoutesById[o],s=()=>i(),a=()=>Ti(e,n,t,r),i=()=>{if(Ar(e,n))return;const l=Ii(e,n,r);return St(l)?l.then(a):a()};return s()},Di=(e,t,n)=>{const o=e.router.getMatch(t);if(!o||!n.options.head&&!n.options.scripts&&!n.options.headers)return;const r={ssr:e.router.options.ssr,matches:e.matches,match:o,params:o.params,loaderData:o.loaderData};return Promise.all([n.options.head?.(r),n.options.scripts?.(r),n.options.headers?.(r)]).then(([s,a,i])=>{const l=s?.meta,c=s?.links,u=s?.scripts,h=s?.styles;return{meta:l,links:c,headScripts:u,headers:i,scripts:a,styles:h}})},Lr=(e,t,n,o,r)=>{const s=t[o-1],{params:a,loaderDeps:i,abortController:l,cause:c}=e.router.getMatch(n),u=Ge(e,o),h=cn(e,n);return{params:a,deps:i,preload:!!h,parentMatchPromise:s,abortController:l,context:u,location:e.location,navigate:f=>e.router.navigate({...f,_fromLocation:e.location}),cause:h?"preload":c,route:r,...e.router.options.additionalContext}},No=async(e,t,n,o,r)=>{try{const s=e.router.getMatch(n);try{(!(gi??e.router.isServer)||s.ssr===!0)&&Qt(r);const a=r.options.loader?.(Lr(e,t,n,o,r)),i=r.options.loader&&St(a);if((i||r._lazyPromise||r._componentsPromise||r.options.head||r.options.scripts||r.options.headers||s._nonReactive.minPendingPromise)&&e.updateMatch(n,u=>({...u,isFetching:"loader"})),r.options.loader){const u=i?await a:a;Ne(e,e.router.getMatch(n),u),u!==void 0&&e.updateMatch(n,h=>({...h,loaderData:u}))}r._lazyPromise&&await r._lazyPromise;const c=s._nonReactive.minPendingPromise;c&&await c,r._componentsPromise&&await r._componentsPromise,e.updateMatch(n,u=>({...u,error:void 0,context:Ge(e,o),status:"success",isFetching:!1,updatedAt:Date.now()}))}catch(a){let i=a;if(i?.name==="AbortError"){if(s.abortController.signal.aborted){s._nonReactive.loaderPromise?.resolve(),s._nonReactive.loaderPromise=void 0;return}e.updateMatch(n,c=>({...c,status:c.status==="pending"?"success":c.status,isFetching:!1,context:Ge(e,o)}));return}const l=s._nonReactive.minPendingPromise;l&&await l,X(a)&&await r.options.notFoundComponent?.preload?.(),Ne(e,e.router.getMatch(n),a);try{r.options.onError?.(a)}catch(c){i=c,Ne(e,e.router.getMatch(n),c)}e.updateMatch(n,c=>({...c,error:i,context:Ge(e,o),status:"error",isFetching:!1}))}}catch(s){const a=e.router.getMatch(n);a&&(a._nonReactive.loaderPromise=void 0),Ne(e,a,s)}},ji=async(e,t,n)=>{async function o(h,f,m,g){const v=Date.now()-f.updatedAt,b=h?g.options.preloadStaleTime??e.router.options.defaultPreloadStaleTime??3e4:g.options.staleTime??e.router.options.defaultStaleTime??0,y=g.options.shouldReload,w=typeof y=="function"?y(Lr(e,t,r,n,g)):y,{status:R,invalid:S}=m;a=R==="success"&&(S||(w??v>b)),h&&g.options.preload===!1||(a&&!e.sync?(i=!0,(async()=>{try{await No(e,t,r,n,g);const _=e.router.getMatch(r);_._nonReactive.loaderPromise?.resolve(),_._nonReactive.loadPromise?.resolve(),_._nonReactive.loaderPromise=void 0}catch(_){te(_)&&await e.router.navigate(_.options)}})()):(R!=="success"||a&&e.sync)&&await No(e,t,r,n,g))}const{id:r,routeId:s}=e.matches[n];let a=!1,i=!1;const l=e.router.looseRoutesById[s];if(!Ar(e,r)){const h=e.router.getMatch(r),f=cn(e,r);if(h._nonReactive.loaderPromise){if(h.status==="success"&&!e.sync&&!h.preload)return h;await h._nonReactive.loaderPromise;const m=e.router.getMatch(r),g=m._nonReactive.error||m.error;g&&Ne(e,m,g),m.status==="pending"&&await o(f,h,m,l)}else{const m=f&&!e.router.state.matches.some(v=>v.id===r),g=e.router.getMatch(r);g._nonReactive.loaderPromise=qe(),m!==g.preload&&e.updateMatch(r,v=>({...v,preload:m})),await o(f,h,g,l)}}const c=e.router.getMatch(r);i||(c._nonReactive.loaderPromise?.resolve(),c._nonReactive.loadPromise?.resolve()),clearTimeout(c._nonReactive.pendingTimeout),c._nonReactive.pendingTimeout=void 0,i||(c._nonReactive.loaderPromise=void 0),c._nonReactive.dehydrated=void 0;const u=i?c.isFetching:!1;return u!==c.isFetching||c.invalid!==!1?(e.updateMatch(r,h=>({...h,isFetching:u,invalid:!1})),e.router.getMatch(r)):c};async function Do(e){const t=e,n=[];t.router.state.matches.some(f=>f._forcePending)&&Tn(t);let o;for(let f=0;f<t.matches.length;f++){try{const m=Ni(t,f);St(m)&&await m}catch(m){if(te(m))throw m;if(X(m))o=m;else if(!t.preload)throw m;break}if(t.serialError)break}const r=t.firstBadMatchIndex??t.matches.length,s=o&&!t.preload?To(t,o):void 0,a=o&&t.preload?0:s!==void 0?Math.min(s+1,r):r;let i,l;for(let f=0;f<a;f++)n.push(ji(t,n,f));try{await Promise.all(n)}catch{const f=await Promise.allSettled(n);for(const m of f){if(m.status!=="rejected")continue;const g=m.reason;if(te(g))throw g;X(g)?i??=g:l??=g}if(l!==void 0)throw l}const c=i??(o&&!t.preload?o:void 0);let u=t.serialError?t.firstBadMatchIndex??0:t.matches.length-1;if(!c&&o&&t.preload)return t.matches;if(c){const f=To(t,c);Rt(f!==void 0);const m=t.matches[f],g=t.router.looseRoutesById[m.routeId],v=t.router.options?.defaultNotFoundComponent;!g.options.notFoundComponent&&v&&(g.options.notFoundComponent=v),c.routeId=m.routeId;const b=m.routeId===t.router.routeTree.id;t.updateMatch(m.id,y=>({...y,...b?{status:"success",globalNotFound:!0,error:void 0}:{status:"notFound",error:c},isFetching:!1})),u=f,await Qt(g)}else if(!t.preload){const f=t.matches[0];f.globalNotFound||t.router.getMatch(f.id)?.globalNotFound&&t.updateMatch(f.id,g=>({...g,globalNotFound:!1,error:void 0}))}if(t.serialError&&t.firstBadMatchIndex!==void 0){const f=t.router.looseRoutesById[t.matches[t.firstBadMatchIndex].routeId];await Qt(f)}for(let f=0;f<=u;f++){const m=t.matches[f],{id:g,routeId:v}=m,b=t.router.looseRoutesById[v];try{const y=Di(t,g,b);if(y){const w=await y;t.updateMatch(g,R=>({...R,...w}))}}catch(y){console.error(`Error executing head for route ${v}:`,y)}}const h=Tn(t);if(St(h)&&await h,c)throw c;if(t.serialError&&!t.preload&&!t.onReady)throw t.serialError;return t.matches}async function Qt(e){if(!e._lazyLoaded&&e._lazyPromise===void 0&&(e.lazyFn?e._lazyPromise=e.lazyFn().then(t=>{const{id:n,...o}=t.options;Object.assign(e.options,o),e._lazyLoaded=!0,e._lazyPromise=void 0}):e._lazyLoaded=!0),!e._componentsLoaded&&e._componentsPromise===void 0){const t=()=>{const n=[];for(const o of Tr){const r=e.options[o]?.preload;r&&n.push(r())}if(n.length)return Promise.all(n).then(()=>{e._componentsLoaded=!0,e._componentsPromise=void 0});e._componentsLoaded=!0,e._componentsPromise=void 0};e._componentsPromise=e._lazyPromise?e._lazyPromise.then(t):t()}return e._componentsPromise}function Ir(e){for(const t of Tr)if(e.options[t]?.preload)return!0;return!1}const Tr=["component","errorComponent","pendingComponent","notFoundComponent"];function Vi(e){return{input:({url:t})=>{for(const n of e)t=Nn(n,t);return t},output:({url:t})=>{for(let n=e.length-1;n>=0;n--)t=Nr(e[n],t);return t}}}function Oi(e){const t=dr(e.basepath),n=`/${t}`,o=`${n}/`,r=e.caseSensitive?n:n.toLowerCase(),s=e.caseSensitive?o:o.toLowerCase();return{input:({url:a})=>{const i=e.caseSensitive?a.pathname:a.pathname.toLowerCase();return i===r?a.pathname="/":i.startsWith(s)&&(a.pathname=a.pathname.slice(n.length)),a},output:({url:a})=>(a.pathname=qs(["/",t,a.pathname]),a)}}function Nn(e,t){const n=e?.input?.({url:t});if(n){if(typeof n=="string")return new URL(n);if(n instanceof URL)return n}return t}function Nr(e,t){const n=e?.output?.({url:t});if(n){if(typeof n=="string")return new URL(n);if(n instanceof URL)return n}return t}function Oe(e){const t=e.resolvedLocation,n=e.location,o=t?.pathname!==n.pathname,r=t?.href!==n.href,s=t?.hash!==n.hash;return{fromLocation:t,toLocation:n,pathChanged:o,hrefChanged:r,hashChanged:s}}function ki(e){const t=e.filter(n=>n.status!=="redirected");return t.length===e.length?e:t}class Fi{constructor(t){this.tempLocationKey=`${Math.round(Math.random()*1e7)}`,this.resetNextScroll=!0,this.shouldViewTransition=void 0,this.isViewTransitionTypesSupported=void 0,this.subscribers=new Set,this.isScrollRestoring=!1,this.isScrollRestorationSetup=!1,this.startTransition=n=>n(),this.update=n=>{const o=this.options,r=this.basepath??o?.basepath??"/",s=this.basepath===void 0,a=o?.rewrite;if(this.options={...o,...n},this.isServer=this.options.isServer??typeof document>"u",this.protocolAllowlist=new Set(this.options.protocolAllowlist),this.options.pathParamsAllowedCharacters&&(this.pathParamsDecoder=Xs(this.options.pathParamsAllowedCharacters)),(!this.history||this.options.history&&this.options.history!==this.history)&&(this.options.history?this.history=this.options.history:this.history=pi()),this.origin=this.options.origin,this.origin||(window?.origin&&window.origin!=="null"?this.origin=window.origin:this.origin="http://localhost"),this.history&&this.updateLatestLocation(),this.options.routeTree!==this.routeTree){this.routeTree=this.options.routeTree;let f;this.resolvePathCache=Ys(1e3),f=this.buildRouteTree(),this.setRoutes(f)}!this.__store&&this.latestLocation&&(this.__store=ui(Bi(this.latestLocation)),Ri(this));let i=!1;const l=this.options.basepath??"/",c=this.options.rewrite;if(s||r!==l||a!==c){this.basepath=l;const f=[],m=dr(l);m&&m!=="/"&&f.push(Oi({basepath:l})),c&&f.push(c),this.rewrite=f.length===0?void 0:f.length===1?f[0]:Vi(f),this.history&&this.updateLatestLocation(),i=!0}i&&this.__store&&this.__store.setState(f=>({...f,location:this.latestLocation})),typeof window<"u"&&"CSS"in window&&typeof window.CSS?.supports=="function"&&(this.isViewTransitionTypesSupported=window.CSS.supports("selector(:active-view-transition-type(a)"))},this.updateLatestLocation=()=>{this.latestLocation=this.parseLocation(this.history.location,this.latestLocation)},this.buildRouteTree=()=>{const n=Qs(this.routeTree,this.options.caseSensitive,(o,r)=>{o.init({originalIndex:r})});return this.options.routeMasks&&Js(this.options.routeMasks,n.processedTree),n},this.subscribe=(n,o)=>{const r={eventType:n,fn:o};return this.subscribers.add(r),()=>{this.subscribers.delete(r)}},this.emit=n=>{this.subscribers.forEach(o=>{o.eventType===n.type&&o.fn(n)})},this.parseLocation=(n,o)=>{const r=({pathname:l,search:c,hash:u,href:h,state:f})=>{if(!this.rewrite&&!/[ \x00-\x1f\x7f\u0080-\uffff]/.test(l)){const w=this.options.parseSearch(c),R=this.options.stringifySearch(w);return{href:l+R+u,publicHref:h,pathname:ht(l).path,external:!1,searchStr:R,search:ce(o?.search,w),hash:ht(u.slice(1)).path,state:ce(o?.state,f)}}const m=new URL(h,this.origin),g=Nn(this.rewrite,m),v=this.options.parseSearch(g.search),b=this.options.stringifySearch(v);return g.search=b,{href:g.href.replace(g.origin,""),publicHref:h,pathname:ht(g.pathname).path,external:!!this.rewrite&&g.origin!==this.origin,searchStr:b,search:ce(o?.search,v),hash:ht(g.hash.slice(1)).path,state:ce(o?.state,f)}},s=r(n),{__tempLocation:a,__tempKey:i}=s.state;if(a&&(!i||i===this.tempLocationKey)){const l=r(a);return l.state.key=s.state.key,l.state.__TSR_key=s.state.__TSR_key,delete l.state.__tempLocation,{...l,maskedLocation:s}}return s},this.resolvePathWithBase=(n,o)=>ea({base:n,to:ta(o),trailingSlash:this.options.trailingSlash,cache:this.resolvePathCache}),this.matchRoutes=(n,o,r)=>typeof n=="string"?this.matchRoutesInternal({pathname:n,search:o},r):this.matchRoutesInternal(n,o),this.getMatchedRoutes=n=>$i({pathname:n,routesById:this.routesById,processedTree:this.processedTree}),this.cancelMatch=n=>{const o=this.getMatch(n);o&&(o.abortController.abort(),clearTimeout(o._nonReactive.pendingTimeout),o._nonReactive.pendingTimeout=void 0)},this.cancelMatches=()=>{const n=this.state.matches.filter(s=>s.status==="pending"),o=this.state.matches.filter(s=>s.isFetching==="loader");new Set([...this.state.pendingMatches??[],...n,...o]).forEach(s=>{this.cancelMatch(s.id)})},this.buildLocation=n=>{const o=(s={})=>{const a=s._fromLocation||this.pendingBuiltLocation||this.latestLocation,i=this.matchRoutesLightweight(a);s.from;const l=s.unsafeRelative==="path"?a.pathname:s.from??i.fullPath,c=this.resolvePathWithBase(l,"."),u=i.search,h={...i.params},f=s.to?this.resolvePathWithBase(c,`${s.to}`):this.resolvePathWithBase(c,"."),m=s.params===!1||s.params===null?{}:(s.params??!0)===!0?h:Object.assign(h,Ue(s.params,h)),g=this.getMatchedRoutes(f);let v=g.matchedRoutes;if((!g.foundRoute||g.foundRoute.path!=="/"&&g.routeParams["**"])&&this.options.notFoundRoute&&(v=[...v,this.options.notFoundRoute]),Object.keys(m).length>0)for(const P of v){const M=P.options.params?.stringify??P.options.stringifyParams;if(M)try{Object.assign(m,M(m))}catch{}}const y=n.leaveParams?f:ht(So({path:f,params:m,decoder:this.pathParamsDecoder,server:this.isServer}).interpolatedPath).path;let w=u;if(n._includeValidateSearch&&this.options.search?.strict){const P={};v.forEach(M=>{if(M.options.validateSearch)try{Object.assign(P,Gt(M.options.validateSearch,{...P,...w}))}catch{}}),w=P}w=Zi({search:w,dest:s,destRoutes:v,_includeValidateSearch:n._includeValidateSearch}),w=ce(u,w);const R=this.options.stringifySearch(w),S=s.hash===!0?a.hash:s.hash?Ue(s.hash,a.hash):void 0,_=S?`#${S}`:"";let A=s.state===!0?a.state:s.state?Ue(s.state,a.state):{};A=ce(a.state,A);const E=`${y}${R}${_}`;let x,C,I=!1;if(this.rewrite){const P=new URL(E,this.origin),M=Nr(this.rewrite,P);x=P.href.replace(P.origin,""),M.origin!==this.origin?(C=M.href,I=!0):C=M.pathname+M.search+M.hash}else x=aa(E),C=x;return{publicHref:C,href:x,pathname:y,search:w,searchStr:R,state:A,hash:S??"",external:I,unmaskOnReload:s.unmaskOnReload}},r=(s={},a)=>{const i=o(s);let l=a?o(a):void 0;if(!l){const c={};if(this.options.routeMasks){const u=ra(i.pathname,this.processedTree);if(u){Object.assign(c,u.rawParams);const{from:h,params:f,...m}=u.route,g=f===!1||f===null?{}:(f??!0)===!0?c:Object.assign(c,Ue(f,c));a={from:n.from,...m,params:g},l=o(a)}}}return l&&(i.maskedLocation=l),i};return n.mask?r(n,{from:n.from,...n.mask}):r(n)},this.commitLocation=async({viewTransition:n,ignoreBlocker:o,...r})=>{const s=()=>{const l=["key","__TSR_key","__TSR_index","__hashScrollIntoViewOptions"];l.forEach(u=>{r.state[u]=this.latestLocation.state[u]});const c=bn(r.state,this.latestLocation.state);return l.forEach(u=>{delete r.state[u]}),c},a=Ke(this.latestLocation.href)===Ke(r.href),i=this.commitLocationPromise;if(this.commitLocationPromise=qe(()=>{i?.resolve()}),a&&s())this.load();else{let{maskedLocation:l,hashScrollIntoView:c,...u}=r;l&&(u={...l,state:{...l.state,__tempKey:void 0,__tempLocation:{...u,search:u.searchStr,state:{...u.state,__tempKey:void 0,__tempLocation:void 0,__TSR_key:void 0,key:void 0}}}},(u.unmaskOnReload??this.options.unmaskOnReload??!1)&&(u.state.__tempKey=this.tempLocationKey)),u.state.__hashScrollIntoViewOptions=c??this.options.defaultHashScrollIntoView??!0,this.shouldViewTransition=n,this.history[r.replace?"replace":"push"](u.publicHref,u.state,{ignoreBlocker:o})}return this.resetNextScroll=r.resetScroll??!0,this.history.subscribers.size||this.load(),this.commitLocationPromise},this.buildAndCommitLocation=({replace:n,resetScroll:o,hashScrollIntoView:r,viewTransition:s,ignoreBlocker:a,href:i,...l}={})=>{if(i){const h=this.history.location.state.__TSR_index,f=Xt(i,{__TSR_index:n?h:h+1}),m=new URL(f.pathname,this.origin),g=Nn(this.rewrite,m);l.to=g.pathname,l.search=this.options.parseSearch(f.search),l.hash=f.hash.slice(1)}const c=this.buildLocation({...l,_includeValidateSearch:!0});this.pendingBuiltLocation=c;const u=this.commitLocation({...c,viewTransition:s,replace:n,resetScroll:o,hashScrollIntoView:r,ignoreBlocker:a});return Promise.resolve().then(()=>{this.pendingBuiltLocation===c&&(this.pendingBuiltLocation=void 0)}),u},this.navigate=async({to:n,reloadDocument:o,href:r,publicHref:s,...a})=>{let i=!1;if(r)try{new URL(`${r}`),i=!0}catch{}if(i&&!o&&(o=!0),o){if(n!==void 0||!r){const c=this.buildLocation({to:n,...a});r=r??c.publicHref,s=s??c.publicHref}const l=!i&&s?s:r;if(wo(l,this.protocolAllowlist))return Promise.resolve();if(!a.ignoreBlocker){const u=this.history.getBlockers?.()??[];for(const h of u)if(h?.blockerFn&&await h.blockerFn({currentLocation:this.latestLocation,nextLocation:this.latestLocation,action:"PUSH"}))return Promise.resolve()}return a.replace?window.location.replace(l):window.location.href=l,Promise.resolve()}return this.buildAndCommitLocation({...a,href:r,to:n,_isNavigate:!0})},this.beforeLoad=()=>{this.cancelMatches(),this.updateLatestLocation();const n=this.matchRoutes(this.latestLocation);this.__store.setState(o=>({...o,status:"pending",statusCode:200,isLoading:!0,location:this.latestLocation,pendingMatches:n,cachedMatches:o.cachedMatches.filter(r=>!n.some(s=>s.id===r.id))}))},this.load=async n=>{let o,r,s;for(s=new Promise(i=>{this.startTransition(async()=>{try{this.beforeLoad();const l=this.latestLocation,c=this.state.resolvedLocation;this.state.redirect||this.emit({type:"onBeforeNavigate",...Oe({resolvedLocation:c,location:l})}),this.emit({type:"onBeforeLoad",...Oe({resolvedLocation:c,location:l})}),await Do({router:this,sync:n?.sync,matches:this.state.pendingMatches,location:l,updateMatch:this.updateMatch,onReady:async()=>{this.startTransition(()=>{this.startViewTransition(async()=>{let u=[],h=[],f=[],m=[];bt(()=>{this.__store.setState(g=>{const v=g.matches,b=g.pendingMatches||g.matches;return u=v.filter(y=>!b.some(w=>w.id===y.id)),h=v.filter(y=>!b.some(w=>w.routeId===y.routeId)),f=b.filter(y=>!v.some(w=>w.routeId===y.routeId)),m=b.filter(y=>v.some(w=>w.routeId===y.routeId)),{...g,isLoading:!1,loadedAt:Date.now(),matches:b,pendingMatches:void 0,cachedMatches:[...g.cachedMatches,...u.filter(y=>y.status!=="error"&&y.status!=="notFound"&&y.status!=="redirected")]}}),this.clearExpiredCache()}),[[h,"onLeave"],[f,"onEnter"],[m,"onStay"]].forEach(([g,v])=>{g.forEach(b=>{this.looseRoutesById[b.routeId].options[v]?.(b)})})})})}})}catch(l){te(l)?(o=l,this.navigate({...o.options,replace:!0,ignoreBlocker:!0})):X(l)&&(r=l),this.__store.setState(c=>({...c,statusCode:o?o.status:r?404:c.matches.some(u=>u.status==="error")?500:200,redirect:o}))}this.latestLoadPromise===s&&(this.commitLocationPromise?.resolve(),this.latestLoadPromise=void 0,this.commitLocationPromise=void 0),i()})}),this.latestLoadPromise=s,await s;this.latestLoadPromise&&s!==this.latestLoadPromise;)await this.latestLoadPromise;let a;this.hasNotFoundMatch()?a=404:this.__store.state.matches.some(i=>i.status==="error")&&(a=500),a!==void 0&&this.__store.setState(i=>({...i,statusCode:a}))},this.startViewTransition=n=>{const o=this.shouldViewTransition??this.options.defaultViewTransition;if(this.shouldViewTransition=void 0,o&&typeof document<"u"&&"startViewTransition"in document&&typeof document.startViewTransition=="function"){let r;if(typeof o=="object"&&this.isViewTransitionTypesSupported){const s=this.latestLocation,a=this.state.resolvedLocation,i=typeof o.types=="function"?o.types(Oe({resolvedLocation:a,location:s})):o.types;if(i===!1){n();return}r={update:n,types:i}}else r=n;document.startViewTransition(r)}else n()},this.updateMatch=(n,o)=>{this.startTransition(()=>{const r=this.state.pendingMatches?.some(s=>s.id===n)?"pendingMatches":this.state.matches.some(s=>s.id===n)?"matches":this.state.cachedMatches.some(s=>s.id===n)?"cachedMatches":"";r&&(r==="cachedMatches"?this.__store.setState(s=>({...s,cachedMatches:ki(s.cachedMatches.map(a=>a.id===n?o(a):a))})):this.__store.setState(s=>({...s,[r]:s[r]?.map(a=>a.id===n?o(a):a)})))})},this.getMatch=n=>{const o=r=>r.id===n;return this.state.cachedMatches.find(o)??this.state.pendingMatches?.find(o)??this.state.matches.find(o)},this.invalidate=n=>{const o=r=>n?.filter?.(r)??!0?{...r,invalid:!0,...n?.forcePending||r.status==="error"||r.status==="notFound"?{status:"pending",error:void 0}:void 0}:r;return this.__store.setState(r=>({...r,matches:r.matches.map(o),cachedMatches:r.cachedMatches.map(o),pendingMatches:r.pendingMatches?.map(o)})),this.shouldViewTransition=!1,this.load({sync:n?.sync})},this.getParsedLocationHref=n=>n.publicHref||"/",this.resolveRedirect=n=>{const o=n.headers.get("Location");if(!n.options.href||n.options._builtLocation){const r=n.options._builtLocation??this.buildLocation(n.options),s=this.getParsedLocationHref(r);n.options.href=s,n.headers.set("Location",s)}else if(o)try{const r=new URL(o);if(this.origin&&r.origin===this.origin){const s=r.pathname+r.search+r.hash;n.options.href=s,n.headers.set("Location",s)}}catch{}if(n.options.href&&!n.options._builtLocation&&wo(n.options.href,this.protocolAllowlist))throw new Error("Redirect blocked: unsafe protocol");return n.headers.get("Location")||n.headers.set("Location",n.options.href),n},this.clearCache=n=>{const o=n?.filter;o!==void 0?this.__store.setState(r=>({...r,cachedMatches:r.cachedMatches.filter(s=>!o(s))})):this.__store.setState(r=>({...r,cachedMatches:[]}))},this.clearExpiredCache=()=>{const n=o=>{const r=this.looseRoutesById[o.routeId];if(!r.options.loader)return!0;const s=(o.preload?r.options.preloadGcTime??this.options.defaultPreloadGcTime:r.options.gcTime??this.options.defaultGcTime)??300*1e3;return o.status==="error"?!0:Date.now()-o.updatedAt>=s};this.clearCache({filter:n})},this.loadRouteChunk=Qt,this.preloadRoute=async n=>{const o=n._builtLocation??this.buildLocation(n);let r=this.matchRoutes(o,{throwOnError:!0,preload:!0,dest:n});const s=new Set([...this.state.matches,...this.state.pendingMatches??[]].map(i=>i.id)),a=new Set([...s,...this.state.cachedMatches.map(i=>i.id)]);bt(()=>{r.forEach(i=>{a.has(i.id)||this.__store.setState(l=>({...l,cachedMatches:[...l.cachedMatches,i]}))})});try{return r=await Do({router:this,matches:r,location:o,preload:!0,updateMatch:(i,l)=>{s.has(i)?r=r.map(c=>c.id===i?l(c):c):this.updateMatch(i,l)}}),r}catch(i){if(te(i))return i.options.reloadDocument?void 0:await this.preloadRoute({...i.options,_fromLocation:o});X(i)||console.error(i);return}},this.matchRoute=(n,o)=>{const r={...n,to:n.to?this.resolvePathWithBase(n.from||"",n.to):void 0,params:n.params||{},leaveParams:!0},s=this.buildLocation(r);if(o?.pending&&this.state.status!=="pending")return!1;const i=(o?.pending===void 0?!this.state.isLoading:o.pending)?this.latestLocation:this.state.resolvedLocation||this.state.location,l=na(s.pathname,o?.caseSensitive??!1,o?.fuzzy??!1,i.pathname,this.processedTree);return!l||n.params&&!bn(l.rawParams,n.params,{partial:!0})?!1:o?.includeSearch??!0?bn(i.search,s.search,{partial:!0})?l.rawParams:!1:l.rawParams},this.hasNotFoundMatch=()=>this.__store.state.matches.some(n=>n.status==="notFound"||n.globalNotFound),this.update({defaultPreloadDelay:50,defaultPendingMs:1e3,defaultPendingMinMs:500,context:void 0,...t,caseSensitive:t.caseSensitive??!1,notFoundMode:t.notFoundMode??"fuzzy",stringifySearch:t.stringifySearch??Ai,parseSearch:t.parseSearch??Pi,protocolAllowlist:t.protocolAllowlist??oa}),typeof document<"u"&&(self.__TSR_ROUTER__=this)}isShell(){return!!this.options.isShell}isPrerendering(){return!!this.options.isPrerendering}get state(){return this.__store.state}setRoutes({routesById:t,routesByPath:n,processedTree:o}){this.routesById=t,this.routesByPath=n,this.processedTree=o;const r=this.options.notFoundRoute;r&&(r.init({originalIndex:99999999999}),this.routesById[r.id]=r)}get looseRoutesById(){return this.routesById}getParentContext(t){return t?.id?t.context??this.options.context??void 0:this.options.context??void 0}matchRoutesInternal(t,n){const o=this.getMatchedRoutes(t.pathname),{foundRoute:r,routeParams:s,parsedParams:a}=o;let{matchedRoutes:i}=o,l=!1;(r?r.path!=="/"&&s["**"]:Ke(t.pathname))&&(this.options.notFoundRoute?i=[...i,this.options.notFoundRoute]:l=!0);const c=l?Ui(this.options.notFoundMode,i):void 0,u=new Array(i.length),h=new Map(this.state.matches.map(f=>[f.routeId,f]));for(let f=0;f<i.length;f++){const m=i[f],g=u[f-1];let v,b,y;{const N=g?.search??t.search,ue=g?._strictSearch??void 0;try{const W=Gt(m.options.validateSearch,{...N})??void 0;v={...N,...W},b={...ue,...W},y=void 0}catch(W){let k=W;if(W instanceof Jt||(k=new Jt(W.message,{cause:W})),n?.throwOnError)throw k;v=N,b={},y=k}}const w=m.options.loaderDeps?.({search:v})??"",R=w?JSON.stringify(w):"",{interpolatedPath:S,usedParams:_}=So({path:m.fullPath,params:s,decoder:this.pathParamsDecoder,server:this.isServer}),A=m.id+S+R,E=this.getMatch(A),x=h.get(m.id),C=E?._strictParams??_;let I;if(!E)try{jo(m,_,a,C)}catch(N){if(X(N)||te(N)?I=N:I=new Hi(N.message,{cause:N}),n?.throwOnError)throw I}Object.assign(s,C);const P=x?"stay":"enter";let M;if(E)M={...E,cause:P,params:x?.params??s,_strictParams:C,search:x?ce(x.search,v):ce(E.search,v),_strictSearch:b};else{const N=m.options.loader||m.options.beforeLoad||m.lazyFn||Ir(m)?"pending":"success";M={id:A,ssr:m.options.ssr,index:f,routeId:m.id,params:x?.params??s,_strictParams:C,pathname:S,updatedAt:Date.now(),search:x?ce(x.search,v):v,_strictSearch:b,searchError:void 0,status:N,isFetching:!1,error:void 0,paramsError:I,__routeContext:void 0,_nonReactive:{loadPromise:qe()},__beforeLoadContext:void 0,context:{},abortController:new AbortController,fetchCount:0,cause:P,loaderDeps:x?ce(x.loaderDeps,w):w,invalid:!1,preload:!1,links:void 0,scripts:void 0,headScripts:void 0,meta:void 0,staticData:m.options.staticData||{},fullPath:m.fullPath}}n?.preload||(M.globalNotFound=c===m.id),M.searchError=y;const K=this.getParentContext(g);M.context={...K,...M.__routeContext,...M.__beforeLoadContext},u[f]=M}for(let f=0;f<u.length;f++){const m=u[f],g=this.looseRoutesById[m.routeId],v=this.getMatch(m.id),b=h.get(m.routeId);if(m.params=b?ce(b.params,s):s,!v){const y=u[f-1],w=this.getParentContext(y);if(g.options.context){const R={deps:m.loaderDeps,params:m.params,context:w??{},location:t,navigate:S=>this.navigate({...S,_fromLocation:t}),buildLocation:this.buildLocation,cause:m.cause,abortController:m.abortController,preload:!!m.preload,matches:u,routeId:g.id};m.__routeContext=g.options.context(R)??void 0}m.context={...w,...m.__routeContext,...m.__beforeLoadContext}}}return u}matchRoutesLightweight(t){const{matchedRoutes:n,routeParams:o,parsedParams:r}=this.getMatchedRoutes(t.pathname),s=Ro(n),a={...t.search};for(const u of n)try{Object.assign(a,Gt(u.options.validateSearch,a))}catch{}const i=Ro(this.state.matches),l=i&&i.routeId===s.id&&t.pathname===this.state.location.pathname;let c;if(l)c=i.params;else{const u={...o};for(const h of n)try{jo(h,o,r??{},u)}catch{}c=u}return{matchedRoutes:n,fullPath:s.fullPath,search:a,params:c}}}class Jt extends Error{}class Hi extends Error{}function Bi(e){return{loadedAt:0,isLoading:!1,isTransitioning:!1,status:"idle",resolvedLocation:void 0,location:e,matches:[],pendingMatches:[],cachedMatches:[],statusCode:200}}function Gt(e,t){if(e==null)return{};if("~standard"in e){const n=e["~standard"].validate(t);if(n instanceof Promise)throw new Jt("Async validation not supported");if(n.issues)throw new Jt(JSON.stringify(n.issues,void 0,2),{cause:n});return n.value}return"parse"in e?e.parse(t):typeof e=="function"?e(t):{}}function $i({pathname:e,routesById:t,processedTree:n}){const o={},r=Ke(e);let s,a;const i=sa(r,n,!0);return i&&(s=i.route,Object.assign(o,i.rawParams),a=Object.assign({},i.parsedParams)),{matchedRoutes:i?.branch||[t[Mt]],routeParams:o,foundRoute:s,parsedParams:a}}function Zi({search:e,dest:t,destRoutes:n,_includeValidateSearch:o}){return zi(n)(e,t,o??!1)}function zi(e){const t={dest:null,_includeValidateSearch:!1,middlewares:[]};for(const r of e){if("search"in r.options)r.options.search?.middlewares&&t.middlewares.push(...r.options.search.middlewares);else if(r.options.preSearchFilters||r.options.postSearchFilters){const s=({search:a,next:i})=>{let l=a;"preSearchFilters"in r.options&&r.options.preSearchFilters&&(l=r.options.preSearchFilters.reduce((u,h)=>h(u),a));const c=i(l);return"postSearchFilters"in r.options&&r.options.postSearchFilters?r.options.postSearchFilters.reduce((u,h)=>h(u),c):c};t.middlewares.push(s)}if(r.options.validateSearch){const s=({search:a,next:i})=>{const l=i(a);if(!t._includeValidateSearch)return l;try{return{...l,...Gt(r.options.validateSearch,l)??void 0}}catch{return l}};t.middlewares.push(s)}}const n=({search:r})=>{const s=t.dest;return s.search?s.search===!0?r:Ue(s.search,r):{}};t.middlewares.push(n);const o=(r,s,a)=>{if(r>=a.length)return s;const i=a[r];return i({search:s,next:c=>o(r+1,c,a)})};return function(s,a,i){return t.dest=a,t._includeValidateSearch=i,o(0,s,t.middlewares)}}function Ui(e,t){if(e!=="root")for(let n=t.length-1;n>=0;n--){const o=t[n];if(o.children)return o.id}return Mt}function jo(e,t,n,o){const r=e.options.params?.parse??e.options.parseParams;if(r)if(e.options.skipRouteOnParseError)for(const s in t)s in n&&(o[s]=n[s]);else{const s=r(o);Object.assign(o,s)}}function Qn(e){const t=e.errorComponent??Jn;return p.jsx(Ki,{getResetKey:e.getResetKey,onCatch:e.onCatch,children:({error:n,reset:o})=>n?d.createElement(t,{error:n,reset:o}):e.children})}class Ki extends d.Component{constructor(){super(...arguments),this.state={error:null}}static getDerivedStateFromProps(t){return{resetKey:t.getResetKey()}}static getDerivedStateFromError(t){return{error:t}}reset(){this.setState({error:null})}componentDidUpdate(t,n){n.error&&n.resetKey!==this.state.resetKey&&this.reset()}componentDidCatch(t,n){this.props.onCatch&&this.props.onCatch(t,n)}render(){return this.props.children({error:this.state.resetKey!==this.props.getResetKey()?null:this.state.error,reset:()=>{this.reset()}})}}function Jn({error:e}){const[t,n]=d.useState(!1);return p.jsxs("div",{style:{padding:".5rem",maxWidth:"100%"},children:[p.jsxs("div",{style:{display:"flex",alignItems:"center",gap:".5rem"},children:[p.jsx("strong",{style:{fontSize:"1rem"},children:"Something went wrong!"}),p.jsx("button",{style:{appearance:"none",fontSize:".6em",border:"1px solid currentColor",padding:".1rem .2rem",fontWeight:"bold",borderRadius:".25rem"},onClick:()=>n(o=>!o),children:t?"Hide Error":"Show Error"})]}),p.jsx("div",{style:{height:".25rem"}}),t?p.jsx("div",{children:p.jsx("pre",{style:{fontSize:".7em",border:"1px solid red",borderRadius:".25rem",padding:".3rem",color:"red",overflow:"auto"},children:e.message?p.jsx("code",{children:e.message}):null})}):null]})}function Vo(e){return typeof e=="object"?new Oo(e,{silent:!0}).createRoute(e):new Oo(e,{silent:!0}).createRoute}class Oo{constructor(t,n){this.path=t,this.createRoute=o=>{const r=j(o);return r.isRoot=!1,r},this.silent=n?.silent}}class ko{constructor(t){this.useMatch=n=>Eo({select:n?.select,from:this.options.id,structuralSharing:n?.structuralSharing}),this.useRouteContext=n=>Eo({from:this.options.id,select:o=>n?.select?n.select(o.context):o.context}),this.useSearch=n=>ia({select:n?.select,structuralSharing:n?.structuralSharing,from:this.options.id}),this.useParams=n=>ca({select:n?.select,structuralSharing:n?.structuralSharing,from:this.options.id}),this.useLoaderDeps=n=>la({...n,from:this.options.id}),this.useLoaderData=n=>da({...n,from:this.options.id}),this.useNavigate=()=>{const n=Ce();return Bn({from:n.routesById[this.options.id].fullPath})},this.options=t,this.$$typeof=Symbol.for("react.memo")}}function Fo(e){return typeof e=="object"?new ko(e):t=>new ko({id:e,...t})}function B(e,t){let n,o,r,s;const a=()=>(n||(n=e().then(l=>{n=void 0,o=l.default}).catch(l=>{if(r=l,ua(r)&&r instanceof Error&&typeof window<"u"&&typeof sessionStorage<"u"){const c=`tanstack_router_reload:${r.message}`;sessionStorage.getItem(c)||(sessionStorage.setItem(c,"1"),s=!0)}})),n),i=function(c){if(s)throw window.location.reload(),new Promise(()=>{});if(r)throw r;if(!o)if(Co)Co(a());else throw a();return d.createElement(o,c)};return i.preload=a,i}function Gi(){const e=Ce(),t=d.useRef({router:e,mounted:!1}),[n,o]=d.useState(!1),{hasPendingMatches:r,isLoading:s}=le({select:h=>({isLoading:h.isLoading,hasPendingMatches:h.matches.some(f=>f.status==="pending")}),structuralSharing:!0}),a=yn(s),i=s||n||r,l=yn(i),c=s||r,u=yn(c);return e.startTransition=h=>{o(!0),d.startTransition(()=>{h(),o(!1)})},d.useEffect(()=>{const h=e.history.subscribe(e.load),f=e.buildLocation({to:e.latestLocation.pathname,search:!0,params:!0,hash:!0,state:!0,_includeValidateSearch:!0});return Ke(e.latestLocation.publicHref)!==Ke(f.publicHref)&&e.commitLocation({...f,replace:!0}),()=>{h()}},[e,e.history]),Ft(()=>{if(typeof window<"u"&&e.ssr||t.current.router===e&&t.current.mounted)return;t.current={router:e,mounted:!0},(async()=>{try{await e.load()}catch(f){console.error(f)}})()},[e]),Ft(()=>{a&&!s&&e.emit({type:"onLoad",...Oe(e.state)})},[a,e,s]),Ft(()=>{u&&!c&&e.emit({type:"onBeforeRouteMount",...Oe(e.state)})},[c,u,e]),Ft(()=>{if(l&&!i){const h=Oe(e.state);e.emit({type:"onResolved",...h}),e.__store.setState(f=>({...f,status:"idle",resolvedLocation:f.location})),h.hrefChanged&&Ei(e)}},[i,l,e]),null}function Wi(e){const t=le({select:n=>`not-found-${n.location.pathname}-${n.status}`});return p.jsx(Qn,{getResetKey:()=>t,onCatch:(n,o)=>{if(X(n))e.onCatch?.(n,o);else throw n},errorComponent:({error:n})=>{if(X(n))return e.fallback?.(n);throw n},children:e.children})}function qi(){return p.jsx("p",{children:"Not Found"})}function ze(e){return p.jsx(p.Fragment,{children:e.children})}function Dr(e,t,n){return t.options.notFoundComponent?p.jsx(t.options.notFoundComponent,{...n}):e.options.defaultNotFoundComponent?p.jsx(e.options.defaultNotFoundComponent,{...n}):p.jsx(qi,{})}function Xi(){return Ce().isScrollRestoring,null}const jr=d.memo(function({matchId:t}){const n=Ce(),o=le({select:v=>{const b=v.matches.findIndex(w=>w.id===t),y=v.matches[b];return Rt(y),{routeId:y.routeId,ssr:y.ssr,_displayPending:y._displayPending,resetKey:v.loadedAt,parentRouteId:v.matches[b-1]?.routeId}},structuralSharing:!0}),r=n.routesById[o.routeId],s=r.options.pendingComponent??n.options.defaultPendingComponent,a=s?p.jsx(s,{}):null,i=r.options.errorComponent??n.options.defaultErrorComponent,l=r.options.onCatch??n.options.defaultOnCatch,c=r.isRoot?r.options.notFoundComponent??n.options.notFoundRoute?.options.component:r.options.notFoundComponent,u=o.ssr===!1||o.ssr==="data-only",h=(!r.isRoot||r.options.wrapInSuspense||u)&&(r.options.wrapInSuspense??s??(r.options.errorComponent?.preload||u))?d.Suspense:ze,f=i?Qn:ze,m=c?Wi:ze,g=r.isRoot?r.options.shellComponent??ze:ze;return p.jsxs(g,{children:[p.jsx($n.Provider,{value:t,children:p.jsx(h,{fallback:a,children:p.jsx(f,{getResetKey:()=>o.resetKey,errorComponent:i||Jn,onCatch:(v,b)=>{if(X(v))throw v;l?.(v,b)},children:p.jsx(m,{fallback:v=>{if(!c||v.routeId&&v.routeId!==o.routeId||!v.routeId&&!r.isRoot)throw v;return d.createElement(c,v)},children:u||o._displayPending?p.jsx(ha,{fallback:a,children:p.jsx(Ho,{matchId:t})}):p.jsx(Ho,{matchId:t})})})})}),o.parentRouteId===Mt&&n.options.scrollRestoration?p.jsxs(p.Fragment,{children:[p.jsx(Yi,{}),p.jsx(Xi,{})]}):null]})});function Yi(){const e=Ce(),t=d.useRef(void 0);return p.jsx("script",{suppressHydrationWarning:!0,ref:n=>{n&&(t.current===void 0||t.current.href!==e.latestLocation.href)&&(e.emit({type:"onRendered",...Oe(e.state)}),t.current=e.latestLocation)}},e.latestLocation.state.__TSR_key)}const Ho=d.memo(function({matchId:t}){const n=Ce(),{match:o,key:r,routeId:s}=le({select:l=>{const c=l.matches.find(g=>g.id===t),u=c.routeId,f=(n.routesById[u].options.remountDeps??n.options.defaultRemountDeps)?.({routeId:u,loaderDeps:c.loaderDeps,params:c._strictParams,search:c._strictSearch});return{key:f?JSON.stringify(f):void 0,routeId:u,match:{id:c.id,status:c.status,error:c.error,invalid:c.invalid,_forcePending:c._forcePending,_displayPending:c._displayPending}}},structuralSharing:!0}),a=n.routesById[s],i=d.useMemo(()=>{const l=a.options.component??n.options.defaultComponent;return l?p.jsx(l,{},r):p.jsx(Vr,{})},[r,a.options.component,n.options.defaultComponent]);if(o._displayPending)throw n.getMatch(o.id)?._nonReactive.displayPendingPromise;if(o._forcePending)throw n.getMatch(o.id)?._nonReactive.minPendingPromise;if(o.status==="pending"){const l=a.options.pendingMinMs??n.options.defaultPendingMinMs;if(l){const c=n.getMatch(o.id);if(c&&!c._nonReactive.minPendingPromise){const u=qe();c._nonReactive.minPendingPromise=u,setTimeout(()=>{u.resolve(),c._nonReactive.minPendingPromise=void 0},l)}}throw n.getMatch(o.id)?._nonReactive.loadPromise}if(o.status==="notFound")return Rt(X(o.error)),Dr(n,a,o.error);if(o.status==="redirected")throw Rt(te(o.error)),n.getMatch(o.id)?._nonReactive.loadPromise;if(o.status==="error")throw o.error;return i}),Vr=d.memo(function(){const t=Ce(),n=d.useContext($n),o=le({select:c=>c.matches.find(u=>u.id===n)?.routeId}),r=t.routesById[o],s=le({select:c=>{const h=c.matches.find(f=>f.id===n);return Rt(h),h.globalNotFound}}),a=le({select:c=>{const u=c.matches,h=u.findIndex(f=>f.id===n);return u[h+1]?.id}}),i=t.options.defaultPendingComponent?p.jsx(t.options.defaultPendingComponent,{}):null;if(s)return Dr(t,r,void 0);if(!a)return null;const l=p.jsx(jr,{matchId:a});return o===Mt?p.jsx(d.Suspense,{fallback:i,children:l}):l});function Qi(){const e=Ce(),n=e.routesById[Mt].options.pendingComponent??e.options.defaultPendingComponent,o=n?p.jsx(n,{}):null,r=typeof document<"u"&&e.ssr?ze:d.Suspense,s=p.jsxs(r,{fallback:o,children:[p.jsx(Gi,{}),p.jsx(Ji,{})]});return e.options.InnerWrap?p.jsx(e.options.InnerWrap,{children:s}):s}function Ji(){const e=Ce(),t=le({select:r=>r.matches[0]?.id}),n=le({select:r=>r.loadedAt}),o=t?p.jsx(jr,{matchId:t}):null;return p.jsx($n.Provider,{value:t,children:e.options.disableGlobalCatchBoundary?o:p.jsx(Qn,{getResetKey:()=>n,errorComponent:Jn,onCatch:void 0,children:o})})}function ec(e){return le({select:t=>{const n=t.matches;return e?.select?e.select(n):n},structuralSharing:e?.structuralSharing})}const tc=e=>new nc(e);class nc extends Fi{constructor(t){super(t)}}typeof globalThis<"u"?(globalThis.createFileRoute=Vo,globalThis.createLazyFileRoute=Fo):typeof window<"u"&&(window.createFileRoute=Vo,window.createLazyFileRoute=Fo);function oc({router:e,children:t,...n}){Object.keys(n).length>0&&e.update({...e.options,...n,context:{...e.options.context,...n.context}});const o=p.jsx(fa.Provider,{value:e,children:t});return e.options.Wrap?p.jsx(e.options.Wrap,{children:o}):o}function rc({router:e,...t}){return p.jsx(oc,{router:e,...t,children:p.jsx(Qi,{})})}function ln(e){return le({select:t=>e?.select?e.select(t.location):t.location})}const sc=new Map([["bold",d.createElement(d.Fragment,null,d.createElement("path",{d:"M208,28H188V24a12,12,0,0,0-24,0v4H92V24a12,12,0,0,0-24,0v4H48A20,20,0,0,0,28,48V208a20,20,0,0,0,20,20H208a20,20,0,0,0,20-20V48A20,20,0,0,0,208,28ZM68,52a12,12,0,0,0,24,0h72a12,12,0,0,0,24,0h16V76H52V52ZM52,204V100H204V204Zm60-80v56a12,12,0,0,1-24,0V143.32a12,12,0,0,1-9.37-22l16-8A12,12,0,0,1,112,124Zm61.49,33.88L163.9,168H168a12,12,0,0,1,0,24H136a12,12,0,0,1-8.71-20.25L155.45,142a4,4,0,0,0,.55-2,4,4,0,0,0-7.47-2,12,12,0,0,1-20.78-12A28,28,0,0,1,180,140a27.77,27.77,0,0,1-5.64,16.86A10.63,10.63,0,0,1,173.49,157.88Z"}))],["duotone",d.createElement(d.Fragment,null,d.createElement("path",{d:"M216,48V88H40V48a8,8,0,0,1,8-8H208A8,8,0,0,1,216,48Z",opacity:"0.2"}),d.createElement("path",{d:"M208,32H184V24a8,8,0,0,0-16,0v8H88V24a8,8,0,0,0-16,0v8H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM72,48v8a8,8,0,0,0,16,0V48h80v8a8,8,0,0,0,16,0V48h24V80H48V48ZM208,208H48V96H208V208Zm-96-88v64a8,8,0,0,1-16,0V132.94l-4.42,2.22a8,8,0,0,1-7.16-14.32l16-8A8,8,0,0,1,112,120Zm59.16,30.45L152,176h16a8,8,0,0,1,0,16H136a8,8,0,0,1-6.4-12.8l28.78-38.37A8,8,0,1,0,145.07,132a8,8,0,1,1-13.85-8A24,24,0,0,1,176,136,23.76,23.76,0,0,1,171.16,150.45Z"}))],["fill",d.createElement(d.Fragment,null,d.createElement("path",{d:"M208,32H184V24a8,8,0,0,0-16,0v8H88V24a8,8,0,0,0-16,0v8H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM112,184a8,8,0,0,1-16,0V132.94l-4.42,2.22a8,8,0,0,1-7.16-14.32l16-8A8,8,0,0,1,112,120Zm56-8a8,8,0,0,1,0,16H136a8,8,0,0,1-6.4-12.8l28.78-38.37A8,8,0,1,0,145.07,132a8,8,0,1,1-13.85-8A24,24,0,0,1,176,136a23.76,23.76,0,0,1-4.84,14.45L152,176ZM48,80V48H72v8a8,8,0,0,0,16,0V48h80v8a8,8,0,0,0,16,0V48h24V80Z"}))],["light",d.createElement(d.Fragment,null,d.createElement("path",{d:"M208,34H182V24a6,6,0,0,0-12,0V34H86V24a6,6,0,0,0-12,0V34H48A14,14,0,0,0,34,48V208a14,14,0,0,0,14,14H208a14,14,0,0,0,14-14V48A14,14,0,0,0,208,34ZM48,46H74V56a6,6,0,0,0,12,0V46h84V56a6,6,0,0,0,12,0V46h26a2,2,0,0,1,2,2V82H46V48A2,2,0,0,1,48,46ZM208,210H48a2,2,0,0,1-2-2V94H210V208A2,2,0,0,1,208,210Zm-98-90v64a6,6,0,0,1-12,0V129.71l-7.32,3.66a6,6,0,1,1-5.36-10.74l16-8A6,6,0,0,1,110,120Zm59.57,29.25L148,178h20a6,6,0,0,1,0,12H136a6,6,0,0,1-4.8-9.6L160,142a10,10,0,1,0-16.65-11A6,6,0,1,1,133,125a22,22,0,1,1,36.62,24.26Z"}))],["regular",d.createElement(d.Fragment,null,d.createElement("path",{d:"M208,32H184V24a8,8,0,0,0-16,0v8H88V24a8,8,0,0,0-16,0v8H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM72,48v8a8,8,0,0,0,16,0V48h80v8a8,8,0,0,0,16,0V48h24V80H48V48ZM208,208H48V96H208V208Zm-96-88v64a8,8,0,0,1-16,0V132.94l-4.42,2.22a8,8,0,0,1-7.16-14.32l16-8A8,8,0,0,1,112,120Zm59.16,30.45L152,176h16a8,8,0,0,1,0,16H136a8,8,0,0,1-6.4-12.8l28.78-38.37A8,8,0,1,0,145.07,132a8,8,0,1,1-13.85-8A24,24,0,0,1,176,136,23.76,23.76,0,0,1,171.16,150.45Z"}))],["thin",d.createElement(d.Fragment,null,d.createElement("path",{d:"M208,36H180V24a4,4,0,0,0-8,0V36H84V24a4,4,0,0,0-8,0V36H48A12,12,0,0,0,36,48V208a12,12,0,0,0,12,12H208a12,12,0,0,0,12-12V48A12,12,0,0,0,208,36ZM48,44H76V56a4,4,0,0,0,8,0V44h88V56a4,4,0,0,0,8,0V44h28a4,4,0,0,1,4,4V84H44V48A4,4,0,0,1,48,44ZM208,212H48a4,4,0,0,1-4-4V92H212V208A4,4,0,0,1,208,212ZM108,120v64a4,4,0,0,1-8,0V126.47l-10.21,5.11a4,4,0,0,1-3.58-7.16l16-8A4,4,0,0,1,108,120Zm60,28-24,32h24a4,4,0,0,1,0,8H136a4,4,0,0,1-3.2-6.4l28.78-38.37A11.88,11.88,0,0,0,164,136a12,12,0,0,0-22.4-6,4,4,0,0,1-6.92-4A20,20,0,0,1,172,136,19.79,19.79,0,0,1,168,148Z"}))]]),ac=new Map([["bold",d.createElement(d.Fragment,null,d.createElement("path",{d:"M108,60A16,16,0,1,1,92,44,16,16,0,0,1,108,60Zm56,16a16,16,0,1,0-16-16A16,16,0,0,0,164,76ZM92,112a16,16,0,1,0,16,16A16,16,0,0,0,92,112Zm72,0a16,16,0,1,0,16,16A16,16,0,0,0,164,112ZM92,180a16,16,0,1,0,16,16A16,16,0,0,0,92,180Zm72,0a16,16,0,1,0,16,16A16,16,0,0,0,164,180Z"}))],["duotone",d.createElement(d.Fragment,null,d.createElement("path",{d:"M208,32V224a16,16,0,0,1-16,16H64a16,16,0,0,1-16-16V32A16,16,0,0,1,64,16H192A16,16,0,0,1,208,32Z",opacity:"0.2"}),d.createElement("path",{d:"M104,60A12,12,0,1,1,92,48,12,12,0,0,1,104,60Zm60,12a12,12,0,1,0-12-12A12,12,0,0,0,164,72ZM92,116a12,12,0,1,0,12,12A12,12,0,0,0,92,116Zm72,0a12,12,0,1,0,12,12A12,12,0,0,0,164,116ZM92,184a12,12,0,1,0,12,12A12,12,0,0,0,92,184Zm72,0a12,12,0,1,0,12,12A12,12,0,0,0,164,184Z"}))],["fill",d.createElement(d.Fragment,null,d.createElement("path",{d:"M192,16H64A16,16,0,0,0,48,32V224a16,16,0,0,0,16,16H192a16,16,0,0,0,16-16V32A16,16,0,0,0,192,16ZM100,200a12,12,0,1,1,12-12A12,12,0,0,1,100,200Zm0-60a12,12,0,1,1,12-12A12,12,0,0,1,100,140Zm0-60a12,12,0,1,1,12-12A12,12,0,0,1,100,80Zm56,120a12,12,0,1,1,12-12A12,12,0,0,1,156,200Zm0-60a12,12,0,1,1,12-12A12,12,0,0,1,156,140Zm0-60a12,12,0,1,1,12-12A12,12,0,0,1,156,80Z"}))],["light",d.createElement(d.Fragment,null,d.createElement("path",{d:"M102,60A10,10,0,1,1,92,50,10,10,0,0,1,102,60Zm62,10a10,10,0,1,0-10-10A10,10,0,0,0,164,70ZM92,118a10,10,0,1,0,10,10A10,10,0,0,0,92,118Zm72,0a10,10,0,1,0,10,10A10,10,0,0,0,164,118ZM92,186a10,10,0,1,0,10,10A10,10,0,0,0,92,186Zm72,0a10,10,0,1,0,10,10A10,10,0,0,0,164,186Z"}))],["regular",d.createElement(d.Fragment,null,d.createElement("path",{d:"M104,60A12,12,0,1,1,92,48,12,12,0,0,1,104,60Zm60,12a12,12,0,1,0-12-12A12,12,0,0,0,164,72ZM92,116a12,12,0,1,0,12,12A12,12,0,0,0,92,116Zm72,0a12,12,0,1,0,12,12A12,12,0,0,0,164,116ZM92,184a12,12,0,1,0,12,12A12,12,0,0,0,92,184Zm72,0a12,12,0,1,0,12,12A12,12,0,0,0,164,184Z"}))],["thin",d.createElement(d.Fragment,null,d.createElement("path",{d:"M100,60a8,8,0,1,1-8-8A8,8,0,0,1,100,60Zm64,8a8,8,0,1,0-8-8A8,8,0,0,0,164,68ZM92,120a8,8,0,1,0,8,8A8,8,0,0,0,92,120Zm72,0a8,8,0,1,0,8,8A8,8,0,0,0,164,120ZM92,188a8,8,0,1,0,8,8A8,8,0,0,0,92,188Zm72,0a8,8,0,1,0,8,8A8,8,0,0,0,164,188Z"}))]]),ic=new Map([["bold",d.createElement(d.Fragment,null,d.createElement("path",{d:"M200,36H56A20,20,0,0,0,36,56V200a20,20,0,0,0,20,20H200a20,20,0,0,0,20-20V56A20,20,0,0,0,200,36Zm-4,80H140V60h56ZM116,60v56H60V60ZM60,140h56v56H60Zm80,56V140h56v56Z"}))],["duotone",d.createElement(d.Fragment,null,d.createElement("path",{d:"M208,56V200a8,8,0,0,1-8,8H56a8,8,0,0,1-8-8V56a8,8,0,0,1,8-8H200A8,8,0,0,1,208,56Z",opacity:"0.2"}),d.createElement("path",{d:"M200,40H56A16,16,0,0,0,40,56V200a16,16,0,0,0,16,16H200a16,16,0,0,0,16-16V56A16,16,0,0,0,200,40Zm0,80H136V56h64ZM120,56v64H56V56ZM56,136h64v64H56Zm144,64H136V136h64v64Z"}))],["fill",d.createElement(d.Fragment,null,d.createElement("path",{d:"M216,56v60a4,4,0,0,1-4,4H136V44a4,4,0,0,1,4-4h60A16,16,0,0,1,216,56ZM116,40H56A16,16,0,0,0,40,56v60a4,4,0,0,0,4,4h76V44A4,4,0,0,0,116,40Zm96,96H136v76a4,4,0,0,0,4,4h60a16,16,0,0,0,16-16V140A4,4,0,0,0,212,136ZM40,140v60a16,16,0,0,0,16,16h60a4,4,0,0,0,4-4V136H44A4,4,0,0,0,40,140Z"}))],["light",d.createElement(d.Fragment,null,d.createElement("path",{d:"M200,42H56A14,14,0,0,0,42,56V200a14,14,0,0,0,14,14H200a14,14,0,0,0,14-14V56A14,14,0,0,0,200,42Zm2,14v66H134V54h66A2,2,0,0,1,202,56ZM56,54h66v68H54V56A2,2,0,0,1,56,54ZM54,200V134h68v68H56A2,2,0,0,1,54,200Zm146,2H134V134h68v66A2,2,0,0,1,200,202Z"}))],["regular",d.createElement(d.Fragment,null,d.createElement("path",{d:"M200,40H56A16,16,0,0,0,40,56V200a16,16,0,0,0,16,16H200a16,16,0,0,0,16-16V56A16,16,0,0,0,200,40Zm0,80H136V56h64ZM120,56v64H56V56ZM56,136h64v64H56Zm144,64H136V136h64v64Z"}))],["thin",d.createElement(d.Fragment,null,d.createElement("path",{d:"M200,44H56A12,12,0,0,0,44,56V200a12,12,0,0,0,12,12H200a12,12,0,0,0,12-12V56A12,12,0,0,0,200,44Zm4,12v68H132V52h68A4,4,0,0,1,204,56ZM56,52h68v72H52V56A4,4,0,0,1,56,52ZM52,200V132h72v72H56A4,4,0,0,1,52,200Zm148,4H132V132h72v68A4,4,0,0,1,200,204Z"}))]]),cc=new Map([["bold",d.createElement(d.Fragment,null,d.createElement("path",{d:"M117.18,188.74a12,12,0,0,1,0,17l-5.12,5.12A58.26,58.26,0,0,1,70.6,228h0A58.62,58.62,0,0,1,29.14,127.92L63.89,93.17a58.64,58.64,0,0,1,98.56,28.11,12,12,0,1,1-23.37,5.44,34.65,34.65,0,0,0-58.22-16.58L46.11,144.89A34.62,34.62,0,0,0,70.57,204h0a34.41,34.41,0,0,0,24.49-10.14l5.11-5.12A12,12,0,0,1,117.18,188.74ZM226.83,45.17a58.65,58.65,0,0,0-82.93,0l-5.11,5.11a12,12,0,0,0,17,17l5.12-5.12a34.63,34.63,0,1,1,49,49L175.1,145.86A34.39,34.39,0,0,1,150.61,156h0a34.63,34.63,0,0,1-33.69-26.72,12,12,0,0,0-23.38,5.44A58.64,58.64,0,0,0,150.56,180h.05a58.28,58.28,0,0,0,41.47-17.17l34.75-34.75a58.62,58.62,0,0,0,0-82.91Z"}))],["duotone",d.createElement(d.Fragment,null,d.createElement("path",{d:"M218.34,119.6,183.6,154.34a46.58,46.58,0,0,1-44.31,12.26c-.31.34-.62.67-.95,1L103.6,202.34A46.63,46.63,0,1,1,37.66,136.4L72.4,101.66A46.6,46.6,0,0,1,116.71,89.4c.31-.34.62-.67,1-1L152.4,53.66a46.63,46.63,0,0,1,65.94,65.94Z",opacity:"0.2"}),d.createElement("path",{d:"M240,88.23a54.43,54.43,0,0,1-16,37L189.25,160a54.27,54.27,0,0,1-38.63,16h-.05A54.63,54.63,0,0,1,96,119.84a8,8,0,0,1,16,.45A38.62,38.62,0,0,0,150.58,160h0a38.39,38.39,0,0,0,27.31-11.31l34.75-34.75a38.63,38.63,0,0,0-54.63-54.63l-11,11A8,8,0,0,1,135.7,59l11-11A54.65,54.65,0,0,1,224,48,54.86,54.86,0,0,1,240,88.23ZM109,185.66l-11,11A38.41,38.41,0,0,1,70.6,208h0a38.63,38.63,0,0,1-27.29-65.94L78,107.31A38.63,38.63,0,0,1,144,135.71a8,8,0,0,0,7.78,8.22H152a8,8,0,0,0,8-7.78A54.86,54.86,0,0,0,144,96a54.65,54.65,0,0,0-77.27,0L32,130.75A54.62,54.62,0,0,0,70.56,224h0a54.28,54.28,0,0,0,38.64-16l11-11A8,8,0,0,0,109,185.66Z"}))],["fill",d.createElement(d.Fragment,null,d.createElement("path",{d:"M208,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM115.7,192.49a43.31,43.31,0,0,1-55-66.43l25.37-25.37a43.35,43.35,0,0,1,61.25,0,42.9,42.9,0,0,1,9.95,15.43,8,8,0,1,1-15,5.6A27.33,27.33,0,0,0,97.37,112L72,137.37a27.32,27.32,0,0,0,34.68,41.91,8,8,0,1,1,9,13.21Zm79.61-62.55-25.37,25.37A43,43,0,0,1,139.32,168h0a43.35,43.35,0,0,1-40.53-28.12,8,8,0,1,1,15-5.6A27.35,27.35,0,0,0,139.28,152h0a27.14,27.14,0,0,0,19.32-8L184,118.63a27.32,27.32,0,0,0-34.68-41.91,8,8,0,1,1-9-13.21,43.32,43.32,0,0,1,55,66.43Z"}))],["light",d.createElement(d.Fragment,null,d.createElement("path",{d:"M238,88.18a52.42,52.42,0,0,1-15.4,35.66l-34.75,34.75A52.28,52.28,0,0,1,150.62,174h-.05A52.63,52.63,0,0,1,98,119.9a6,6,0,0,1,6-5.84h.17a6,6,0,0,1,5.83,6.16A40.62,40.62,0,0,0,150.58,162h0a40.4,40.4,0,0,0,28.73-11.9l34.75-34.74A40.63,40.63,0,0,0,156.63,57.9l-11,11a6,6,0,0,1-8.49-8.49l11-11a52.62,52.62,0,0,1,74.43,0A52.83,52.83,0,0,1,238,88.18Zm-127.62,98.9-11,11A40.36,40.36,0,0,1,70.6,210h0a40.63,40.63,0,0,1-28.7-69.36L76.62,105.9A40.63,40.63,0,0,1,146,135.77a6,6,0,0,0,5.83,6.16H152a6,6,0,0,0,6-5.84A52.63,52.63,0,0,0,68.14,97.42L33.38,132.16A52.63,52.63,0,0,0,70.56,222h0a52.26,52.26,0,0,0,37.22-15.42l11-11a6,6,0,1,0-8.49-8.48Z"}))],["regular",d.createElement(d.Fragment,null,d.createElement("path",{d:"M240,88.23a54.43,54.43,0,0,1-16,37L189.25,160a54.27,54.27,0,0,1-38.63,16h-.05A54.63,54.63,0,0,1,96,119.84a8,8,0,0,1,16,.45A38.62,38.62,0,0,0,150.58,160h0a38.39,38.39,0,0,0,27.31-11.31l34.75-34.75a38.63,38.63,0,0,0-54.63-54.63l-11,11A8,8,0,0,1,135.7,59l11-11A54.65,54.65,0,0,1,224,48,54.86,54.86,0,0,1,240,88.23ZM109,185.66l-11,11A38.41,38.41,0,0,1,70.6,208h0a38.63,38.63,0,0,1-27.29-65.94L78,107.31A38.63,38.63,0,0,1,144,135.71a8,8,0,0,0,16,.45A54.86,54.86,0,0,0,144,96a54.65,54.65,0,0,0-77.27,0L32,130.75A54.62,54.62,0,0,0,70.56,224h0a54.28,54.28,0,0,0,38.64-16l11-11A8,8,0,0,0,109,185.66Z"}))],["thin",d.createElement(d.Fragment,null,d.createElement("path",{d:"M236,88.12a50.44,50.44,0,0,1-14.81,34.31l-34.75,34.74A50.33,50.33,0,0,1,150.62,172h-.05A50.63,50.63,0,0,1,100,120a4,4,0,0,1,4-3.89h.11a4,4,0,0,1,3.89,4.11A42.64,42.64,0,0,0,150.58,164h0a42.32,42.32,0,0,0,30.14-12.49l34.75-34.74a42.63,42.63,0,1,0-60.29-60.28l-11,11a4,4,0,0,1-5.66-5.65l11-11A50.64,50.64,0,0,1,236,88.12ZM111.78,188.49l-11,11A42.33,42.33,0,0,1,70.6,212h0a42.63,42.63,0,0,1-30.11-72.77l34.75-34.74A42.63,42.63,0,0,1,148,135.82a4,4,0,0,0,8,.23A50.64,50.64,0,0,0,69.55,98.83L34.8,133.57A50.63,50.63,0,0,0,70.56,220h0a50.33,50.33,0,0,0,35.81-14.83l11-11a4,4,0,1,0-5.65-5.66Z"}))]]),lc=new Map([["bold",d.createElement(d.Fragment,null,d.createElement("path",{d:"M230.14,70.54,185.46,25.85a20,20,0,0,0-28.29,0L33.86,149.17A19.85,19.85,0,0,0,28,163.31V208a20,20,0,0,0,20,20H92.69a19.86,19.86,0,0,0,14.14-5.86L230.14,98.82a20,20,0,0,0,0-28.28ZM91,204H52V165l84-84,39,39ZM192,103,153,64l18.34-18.34,39,39Z"}))],["duotone",d.createElement(d.Fragment,null,d.createElement("path",{d:"M221.66,90.34,192,120,136,64l29.66-29.66a8,8,0,0,1,11.31,0L221.66,79A8,8,0,0,1,221.66,90.34Z",opacity:"0.2"}),d.createElement("path",{d:"M227.31,73.37,182.63,28.68a16,16,0,0,0-22.63,0L36.69,152A15.86,15.86,0,0,0,32,163.31V208a16,16,0,0,0,16,16H92.69A15.86,15.86,0,0,0,104,219.31L227.31,96a16,16,0,0,0,0-22.63ZM92.69,208H48V163.31l88-88L180.69,120ZM192,108.68,147.31,64l24-24L216,84.68Z"}))],["fill",d.createElement(d.Fragment,null,d.createElement("path",{d:"M227.31,73.37,182.63,28.68a16,16,0,0,0-22.63,0L36.69,152A15.86,15.86,0,0,0,32,163.31V208a16,16,0,0,0,16,16H92.69A15.86,15.86,0,0,0,104,219.31L227.31,96a16,16,0,0,0,0-22.63ZM192,108.68,147.31,64l24-24L216,84.68Z"}))],["light",d.createElement(d.Fragment,null,d.createElement("path",{d:"M225.9,74.78,181.21,30.09a14,14,0,0,0-19.8,0L38.1,153.41a13.94,13.94,0,0,0-4.1,9.9V208a14,14,0,0,0,14,14H92.69a13.94,13.94,0,0,0,9.9-4.1L225.9,94.58a14,14,0,0,0,0-19.8ZM94.1,209.41a2,2,0,0,1-1.41.59H48a2,2,0,0,1-2-2V163.31a2,2,0,0,1,.59-1.41L136,72.48,183.51,120ZM217.41,86.1,192,111.51,144.49,64,169.9,38.58a2,2,0,0,1,2.83,0l44.68,44.69a2,2,0,0,1,0,2.83Z"}))],["regular",d.createElement(d.Fragment,null,d.createElement("path",{d:"M227.31,73.37,182.63,28.68a16,16,0,0,0-22.63,0L36.69,152A15.86,15.86,0,0,0,32,163.31V208a16,16,0,0,0,16,16H92.69A15.86,15.86,0,0,0,104,219.31L227.31,96a16,16,0,0,0,0-22.63ZM92.69,208H48V163.31l88-88L180.69,120ZM192,108.68,147.31,64l24-24L216,84.68Z"}))],["thin",d.createElement(d.Fragment,null,d.createElement("path",{d:"M224.49,76.2,179.8,31.51a12,12,0,0,0-17,0L133.17,61.17h0L39.52,154.83A11.9,11.9,0,0,0,36,163.31V208a12,12,0,0,0,12,12H92.69a12,12,0,0,0,8.48-3.51L224.48,93.17a12,12,0,0,0,0-17Zm-129,134.63A4,4,0,0,1,92.69,212H48a4,4,0,0,1-4-4V163.31a4,4,0,0,1,1.17-2.83L136,69.65,186.34,120ZM218.83,87.51,192,114.34,141.66,64l26.82-26.83a4,4,0,0,1,5.66,0l44.69,44.68a4,4,0,0,1,0,5.66Z"}))]]),dc=new Map([["bold",d.createElement(d.Fragment,null,d.createElement("path",{d:"M128,128a12,12,0,0,1-12,12H48a12,12,0,0,1,0-24h68A12,12,0,0,1,128,128ZM48,76H180a12,12,0,0,0,0-24H48a12,12,0,0,0,0,24Zm52,104H48a12,12,0,0,0,0,24h52a12,12,0,0,0,0-24Zm132.49-20.49a12,12,0,0,0-17,0L196,179V112a12,12,0,0,0-24,0v67l-19.51-19.52a12,12,0,0,0-17,17l40,40a12,12,0,0,0,17,0l40-40A12,12,0,0,0,232.49,159.51Z"}))],["duotone",d.createElement(d.Fragment,null,d.createElement("path",{d:"M224,80v88l-24,24H48V64H208A16,16,0,0,1,224,80Z",opacity:"0.2"}),d.createElement("path",{d:"M128,128a8,8,0,0,1-8,8H48a8,8,0,0,1,0-16h72A8,8,0,0,1,128,128ZM48,72H184a8,8,0,0,0,0-16H48a8,8,0,0,0,0,16Zm56,112H48a8,8,0,0,0,0,16h56a8,8,0,0,0,0-16Zm125.66-21.66a8,8,0,0,0-11.32,0L192,188.69V112a8,8,0,0,0-16,0v76.69l-26.34-26.35a8,8,0,0,0-11.32,11.32l40,40a8,8,0,0,0,11.32,0l40-40A8,8,0,0,0,229.66,162.34Z"}))],["fill",d.createElement(d.Fragment,null,d.createElement("path",{d:"M208,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM72,72h96a8,8,0,0,1,0,16H72a8,8,0,0,1,0-16Zm40,112H72a8,8,0,0,1,0-16h40a8,8,0,0,1,0,16Zm8-48H72a8,8,0,0,1,0-16h48a8,8,0,0,1,0,16Zm77.66,29.66-24,24a8,8,0,0,1-11.32,0l-24-24a8,8,0,0,1,11.32-11.32L160,164.69V120a8,8,0,0,1,16,0v44.69l10.34-10.35a8,8,0,0,1,11.32,11.32Z"}))],["light",d.createElement(d.Fragment,null,d.createElement("path",{d:"M126,128a6,6,0,0,1-6,6H48a6,6,0,0,1,0-12h72A6,6,0,0,1,126,128ZM48,70H184a6,6,0,0,0,0-12H48a6,6,0,0,0,0,12Zm56,116H48a6,6,0,0,0,0,12h56a6,6,0,0,0,0-12Zm124.24-22.24a6,6,0,0,0-8.48,0L190,193.51V112a6,6,0,0,0-12,0v81.51l-29.76-29.75a6,6,0,0,0-8.48,8.48l40,40a6,6,0,0,0,8.48,0l40-40A6,6,0,0,0,228.24,163.76Z"}))],["regular",d.createElement(d.Fragment,null,d.createElement("path",{d:"M128,128a8,8,0,0,1-8,8H48a8,8,0,0,1,0-16h72A8,8,0,0,1,128,128ZM48,72H184a8,8,0,0,0,0-16H48a8,8,0,0,0,0,16Zm56,112H48a8,8,0,0,0,0,16h56a8,8,0,0,0,0-16Zm125.66-21.66a8,8,0,0,0-11.32,0L192,188.69V112a8,8,0,0,0-16,0v76.69l-26.34-26.35a8,8,0,0,0-11.32,11.32l40,40a8,8,0,0,0,11.32,0l40-40A8,8,0,0,0,229.66,162.34Z"}))],["thin",d.createElement(d.Fragment,null,d.createElement("path",{d:"M124,128a4,4,0,0,1-4,4H48a4,4,0,0,1,0-8h72A4,4,0,0,1,124,128ZM48,68H184a4,4,0,0,0,0-8H48a4,4,0,0,0,0,8Zm56,120H48a4,4,0,0,0,0,8h56a4,4,0,0,0,0-8Zm122.83-22.83a4,4,0,0,0-5.66,0L188,198.34V112a4,4,0,0,0-8,0v86.34l-33.17-33.17a4,4,0,0,0-5.66,5.66l40,40a4,4,0,0,0,5.66,0l40-40A4,4,0,0,0,226.83,165.17Z"}))]]),Or=d.forwardRef((e,t)=>d.createElement(Qe,{ref:t,...e,weights:sc}));Or.displayName="CalendarIcon";const uc=Or,kr=d.forwardRef((e,t)=>d.createElement(Qe,{ref:t,...e,weights:ac}));kr.displayName="DotsSixVerticalIcon";const hc=kr,Fr=d.forwardRef((e,t)=>d.createElement(Qe,{ref:t,...e,weights:ic}));Fr.displayName="GridFourIcon";const Hr=Fr,Br=d.forwardRef((e,t)=>d.createElement(Qe,{ref:t,...e,weights:cc}));Br.displayName="LinkIcon";const fc=Br,$r=d.forwardRef((e,t)=>d.createElement(Qe,{ref:t,...e,weights:lc}));$r.displayName="PencilSimpleIcon";const pc=$r,Zr=d.forwardRef((e,t)=>d.createElement(Qe,{ref:t,...e,weights:dc}));Zr.displayName="SortAscendingIcon";const mc=Zr,eo="/login",gc="/api/auth/";let Bo=!1;const vc=e=>{const t=`${e.pathname||"/"}${e.search}${e.hash}`;return`${eo}?next=${encodeURIComponent(t)}`},bc=e=>{if(!ae.isAxiosError(e)||e.response?.status!==401)return!1;const t=e.config?.url??"";return!t.startsWith(gc)&&t!==eo},zr=(e=window.location)=>{Bo||e.pathname===eo||(Bo=!0,e.assign(vc(e)))},yc="X-Ocean-Brain-Session-Generation";let $o=!1,$t;const xc=e=>!!(e.authRequired&&!e.authenticated),wc=e=>{const t=e.headers.get(yc);return t?$t?$t===t?!1:($t=t,!0):($t=t,!1):!1},Sc=(e=window.location)=>{$o||($o=!0,e.reload())},en=async(e=fetch)=>{const t=await e("/api/auth/session").catch(()=>{});if(!t?.ok)return"unavailable";const n=wc(t),o=await t.json();return xc(o)?(zr(),"expired"):n?(Sc(),"reloading"):"active"},Rc=e=>t=>{if(!(t instanceof MessageEvent)||typeof t.data!="string")return;const n=Vs(t.data);!n||n.type!==e||Os(n)},Ec=()=>{const e=Zn();return d.useEffect(()=>Ds(t=>{ks(e,t)}),[e]),d.useEffect(()=>{if(typeof EventSource>"u")return;const t=new EventSource("/api/events");let n=!1;const o=()=>{n=!0,en()},r=()=>{n&&(n=!1,en())},s=js.map(a=>{const i=Rc(a);return t.addEventListener(a,i),()=>{t.removeEventListener(a,i)}});return t.addEventListener("error",o),t.addEventListener("open",r),()=>{s.forEach(a=>{a()}),t.removeEventListener("error",o),t.removeEventListener("open",r),t.close()}},[]),null},Cc=({children:e})=>p.jsx(pa,{client:ma,children:p.jsx(ga,{children:p.jsxs(va,{children:[p.jsx(Ec,{}),e]})})}),Zo=({children:e,fallback:t})=>e||t;function _c({itemsPerPage:e,onItemsPerPageChange:t,sortBy:n,onSortByChange:o,sortOrder:r,onSortOrderChange:s,pinnedFirst:a,onPinnedFirstChange:i}){return p.jsx("div",{className:"flex justify-end",children:p.jsxs("div",{className:"surface-base inline-flex flex-wrap items-center gap-3 rounded-[16px] px-3.5 py-2.5",children:[p.jsxs("div",{className:"flex items-center gap-2",children:[p.jsx(Hr,{className:"h-4 w-4 shrink-0 text-fg-tertiary"}),p.jsx(ne,{id:"note-filters-items-label",as:"span",variant:"label",weight:"medium",tone:"tertiary",children:"Items"}),p.jsx(xn,{value:String(e),"aria-labelledby":"note-filters-items-label",onValueChange:l=>{const c=Number(l);ba(c)&&t(c)},variant:"ghost",size:"sm",children:ur.map(l=>p.jsx(ft,{value:String(l),children:l===hr?`Default (${l})`:l},l))})]}),p.jsx("div",{className:"h-5 w-px bg-divider"}),p.jsxs("div",{className:"flex items-center gap-2",children:[p.jsx(mc,{className:"h-4 w-4 shrink-0 text-fg-tertiary"}),p.jsx(ne,{as:"span",variant:"label",weight:"medium",tone:"tertiary",children:"Sort"}),p.jsxs(xn,{value:n,ariaLabel:"Sort field",onValueChange:l=>o(l),variant:"ghost",size:"sm",children:[p.jsx(ft,{value:"updatedAt",children:"Updated"}),p.jsx(ft,{value:"createdAt",children:"Created"})]}),p.jsxs(xn,{value:r,ariaLabel:"Sort order",onValueChange:l=>s(l),variant:"ghost",size:"sm",children:[p.jsx(ft,{value:"desc",children:"Newest"}),p.jsx(ft,{value:"asc",children:"Oldest"})]})]}),p.jsx("div",{className:"h-5 w-px bg-divider"}),p.jsxs(ya,{htmlFor:"pinnedFirst",size:"sm",className:"flex cursor-pointer items-center gap-1.5",children:[p.jsx(xa,{id:"pinnedFirst",size:"sm",checked:a,onChange:l=>i(l.target.checked)}),p.jsx(ne,{as:"span",variant:"label",weight:"medium",tone:"secondary",children:"Pinned First"})]})]})})}const Pc=e=>{let t=!1;return()=>{t||(window.requestAnimationFrame(()=>{e(),t=!1}),t=!0)}},Sn=new Map;function Ac(){const e=ln({select:n=>n.pathname}),t=d.useRef(null);return d.useEffect(()=>{if(t.current?.parentElement){const{parentElement:n}=t.current,o=s=>{if(s!==0){Sn.set(e,s);return}Sn.delete(e)},r=Pc(()=>{if(t.current){const{scrollTop:s}=n;o(s)}});return n.scrollTop=Sn.get(e)??0,n.addEventListener("scroll",r),()=>{n.removeEventListener("scroll",r)}}},[e]),p.jsx("div",{ref:t,className:"hidden"})}const to=`
3
+ id
4
+ tabId
5
+ title
6
+ displayType
7
+ displayOptions {
8
+ tableColumns
9
+ tablePropertyKeys
10
+ boardGroupByPropertyKey
11
+ calendarDateField
12
+ calendarDatePropertyKey
13
+ }
14
+ tagNames
15
+ mode
16
+ propertyFilters {
17
+ key
18
+ name
19
+ valueType
20
+ operator
21
+ value
22
+ }
23
+ sortBy
24
+ sortOrder
25
+ limit
26
+ order
27
+ `;function Sh(){return Z(`query FetchViewWorkspace {
28
+ viewWorkspace {
29
+ activeTabId
30
+ tabs {
31
+ id
32
+ title
33
+ order
34
+ sections {
35
+ ${to}
36
+ }
37
+ }
38
+ }
39
+ }`)}function Mc(e){return Z(`query FetchViewSection($id: ID!) {
40
+ viewSection(id: $id) {
41
+ ${to}
42
+ }
43
+ }`,{id:e})}function Rh(e,{limit:t=25,offset:n=0,sortBy:o,sortOrder:r}={}){return Z(`query FetchViewSectionNotes(
44
+ $id: ID!
45
+ $pagination: PaginationInput
46
+ $sortBy: ViewSortBy
47
+ $sortOrder: ViewSortOrder
48
+ ) {
49
+ viewSectionNotes(id: $id, pagination: $pagination, sortBy: $sortBy, sortOrder: $sortOrder) {
50
+ totalCount
51
+ notes {
52
+ id
53
+ title
54
+ pinned
55
+ tags {
56
+ id
57
+ name
58
+ }
59
+ createdAt
60
+ updatedAt
61
+ properties {
62
+ key
63
+ name
64
+ value
65
+ valueType
66
+ option { id label value color order }
67
+ createdAt
68
+ updatedAt
69
+ }
70
+ }
71
+ }
72
+ }`,{id:e,pagination:{limit:t,offset:n},sortBy:o,sortOrder:r})}function Eh(e,t){return Z(`query FetchViewSectionCalendarNotes($id: ID!, $dateRange: DateRangeInput!) {
73
+ viewSectionCalendarNotes(id: $id, dateRange: $dateRange) {
74
+ id
75
+ title
76
+ calendarDate
77
+ }
78
+ }`,{id:e,dateRange:t})}function Ch(e,{optionValue:t,limit:n=5,offset:o=0}){return Z(`query FetchViewSectionBoardColumn($id: ID!, $optionValue: String, $pagination: PaginationInput) {
79
+ viewSectionBoardColumn(id: $id, optionValue: $optionValue, pagination: $pagination) {
80
+ totalCount
81
+ notes {
82
+ id
83
+ title
84
+ updatedAt
85
+ }
86
+ }
87
+ }`,{id:e,optionValue:t,pagination:{limit:n,offset:o}})}function _h(e){return Z(`mutation CreateViewTab($title: String!) {
88
+ createViewTab(title: $title) {
89
+ id
90
+ }
91
+ }`,{title:e})}function Ph(e,t){return Z(`mutation UpdateViewTab($id: ID!, $title: String!) {
92
+ updateViewTab(id: $id, title: $title) {
93
+ id
94
+ }
95
+ }`,{id:e,title:t})}function Ah(e){return Z(`mutation DeleteViewTab($id: ID!) {
96
+ deleteViewTab(id: $id)
97
+ }`,{id:e})}function Mh(e){return Z(`mutation SetActiveViewTab($id: ID!) {
98
+ setActiveViewTab(id: $id) {
99
+ activeTabId
100
+ tabs {
101
+ id
102
+ title
103
+ order
104
+ sections {
105
+ ${to}
106
+ }
107
+ }
108
+ }
109
+ }`,{id:e})}function Lh(e){return Z(`mutation ReorderViewTabs($tabIds: [ID!]!) {
110
+ reorderViewTabs(tabIds: $tabIds) {
111
+ id
112
+ }
113
+ }`,{tabIds:e})}function Ih(e,t){return Z(`mutation CreateViewSection($tabId: ID!, $input: ViewSectionInput!) {
114
+ createViewSection(tabId: $tabId, input: $input) {
115
+ id
116
+ }
117
+ }`,{tabId:e,input:t})}function Th(e,t){return Z(`mutation UpdateViewSection($id: ID!, $input: ViewSectionInput!) {
118
+ updateViewSection(id: $id, input: $input) {
119
+ id
120
+ }
121
+ }`,{id:e,input:t})}function Nh(e){return Z(`mutation DeleteViewSection($id: ID!) {
122
+ deleteViewSection(id: $id)
123
+ }`,{id:e})}function Dh(e,t){return Z(`mutation ReorderViewSections($tabId: ID!, $sectionIds: [ID!]!) {
124
+ reorderViewSections(tabId: $tabId, sectionIds: $sectionIds) {
125
+ id
126
+ }
127
+ }`,{tabId:e,sectionIds:t})}const Lc=()=>null,Ic=e=>e instanceof Element?e instanceof HTMLElement&&(e.isContentEditable||["INPUT","SELECT","TEXTAREA"].includes(e.tagName))?!0:!!e.closest('button, [role="button"], [role="dialog"], [role="menu"], [role="menuitem"], [role="listbox"]'):!1,Tc=()=>{const e=Bn();return d.useEffect(()=>{const t=n=>{n.defaultPrevented||!(n.metaKey||n.ctrlKey)||n.key.toLowerCase()!=="k"||Ic(n.target)||(n.preventDefault(),e({to:Lt,search:{query:"",page:1,mode:"hybrid"}}))};return window.addEventListener("keydown",t),()=>window.removeEventListener("keydown",t)},[e]),null},Nc="flex h-dvh min-h-0 w-full flex-row overflow-hidden",Dc=ie("fixed","bottom-4","left-4","z-[1003]","flex","h-12","w-12","items-center","justify-center","rounded-[14px]","border","border-border-subtle","bg-surface","text-fg-secondary","shadow-[0_12px_24px_-18px_rgba(0,0,0,0.35)]","transition-all","hover:bg-hover-subtle","hover:text-fg-default","active:translate-y-px","aria-expanded:bg-hover-subtle","aria-expanded:text-fg-default"),jc=ie("fixed","z-[1002]","h-full","w-full","flex-[0_0_300px]","overflow-y-auto","border-r-0","border-border-subtle","bg-[var(--page-bg)]","pb-20","sm:w-[300px]","sm:border-r","min-[1000px]:static","min-[1000px]:w-auto","min-[1000px]:translate-x-0","min-[1000px]:pb-0","min-[1000px]:pointer-events-auto"),Vc="pointer-events-none -translate-x-full",Oc="pointer-events-auto translate-x-0",kc=ie("flex","h-full","min-h-0","min-w-0","flex-1","flex-col","overscroll-contain","[scrollbar-gutter:stable]"),Fc=ie("shrink-0","sticky","top-0","z-[1001]","border-b","border-border-subtle","bg-[var(--page-bg)]","max-[999px]:after:content-['']","max-[999px]:after:pointer-events-none","max-[999px]:after:absolute","max-[999px]:after:inset-y-0","max-[999px]:after:right-0","max-[999px]:after:w-12","max-[999px]:after:bg-[linear-gradient(to_right,transparent,var(--page-bg))]"),Hc=ie("flex","items-center","overflow-x-auto","whitespace-nowrap","[scrollbar-width:none]","[&::-webkit-scrollbar]:hidden"),Bc=ie("min-h-0","min-w-0","max-w-full","flex-1","overflow-x-clip","px-4","pt-4","after:block","after:h-4","after:content-['']","max-[999px]:after:h-24"),$c=({sidebar:e,topNavigation:t,children:n,contentMode:o="page"})=>{const r=ln({select:l=>l.pathname}),[s,a]=d.useState(!1),i="site-layout-sidebar";return d.useEffect(()=>{a(!1)},[r]),p.jsxs("div",{className:Nc,children:[p.jsx(Tc,{}),p.jsx("div",{className:"min-[1000px]:hidden",children:p.jsx("button",{type:"button",className:Dc,"aria-label":"Toggle sidebar","aria-controls":i,"aria-expanded":s,onClick:()=>a(l=>!l),children:p.jsx(Fs,{className:"h-6 w-6"})})}),p.jsx("aside",{id:i,className:ie(jc,s?Oc:Vc),children:e}),p.jsxs("main",{className:ie(kc,o==="app"?"overflow-hidden":"overflow-x-hidden overflow-y-auto"),children:[p.jsx("div",{className:Fc,children:p.jsx("div",{className:Hc,children:t})}),p.jsx("div",{className:o==="app"?"flex min-h-0 min-w-0 flex-1 flex-col overflow-hidden":Bc,children:n}),p.jsx(Ac,{})]})]})},Ur=e=>typeof e=="object"&&e!==null&&"value"in e&&typeof e.value=="string",Kr=(e,t)=>({type:"error",category:"graphql",errors:[{code:"INVALID_RESPONSE_SHAPE",message:`GraphQL response field "${e}" is missing or invalid`,details:t}]}),Zc=async e=>{try{const t=await Z(`
128
+ query GetServerCache($key: String!) {
129
+ cache(key: $key) {
130
+ value
131
+ }
132
+ }
133
+ `,{key:e});if(t.type==="error")throw t;if(!Ur(t.cache))throw Kr("cache",t);return t.cache.value}catch{return""}},zc=async(e,t)=>{const n=await Z(`
134
+ mutation SetServerCache($key: String!, $value: String!) {
135
+ setCache(key: $key, value: $value) {
136
+ value
137
+ }
138
+ }
139
+ `,{key:e,value:encodeURIComponent(t)});return n.type==="error"?n:Ur(n.setCache)?{...n,setCache:n.setCache}:Kr("setCache",n)},Uc=()=>{const e=Hs(),t=Sa(),n=Zn(),{data:o}=cr({queryKey:Xe.ui.heroBanner(),async queryFn(){return Zc("heroBanner")}});return o?p.jsx("div",{className:"p-3 pb-0",children:p.jsxs("div",{className:"surface-base group relative overflow-hidden",children:[p.jsx("img",{alt:"Studio atmosphere banner",className:"w-full object-cover transition duration-500 group-hover:scale-[1.01] group-hover:opacity-90 dark:brightness-[0.85] dark:saturate-[0.9]",src:o}),p.jsx("button",{type:"button","aria-label":"Remove sidebar banner",title:"Remove banner",className:"focus-ring-soft absolute right-2 top-2 inline-flex h-8 w-8 items-center justify-center rounded-[10px] border border-white/14 bg-black/24 text-white/85 opacity-0 outline-none backdrop-blur-sm transition-opacity hover:bg-black/34 hover:text-white focus-visible:opacity-100 group-hover:opacity-100",onClick:async()=>{if(await e("Remove this hero banner from the sidebar?")){const r=await zc("heroBanner","");if(r.type==="error"){t(r.errors[0]?.message??"Failed to remove hero banner");return}await n.invalidateQueries({queryKey:Xe.ui.heroBanner(),exact:!0})}},children:p.jsx(wa,{className:"h-4 w-4",weight:"bold"})})]})}):null};function Kc(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return d.useMemo(()=>o=>{t.forEach(r=>r(o))},t)}const dn=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function Je(e){const t=Object.prototype.toString.call(e);return t==="[object Window]"||t==="[object global]"}function no(e){return"nodeType"in e}function Y(e){var t,n;return e?Je(e)?e:no(e)&&(t=(n=e.ownerDocument)==null?void 0:n.defaultView)!=null?t:window:window}function oo(e){const{Document:t}=Y(e);return e instanceof t}function It(e){return Je(e)?!1:e instanceof Y(e).HTMLElement}function Gr(e){return e instanceof Y(e).SVGElement}function et(e){return e?Je(e)?e.document:no(e)?oo(e)?e:It(e)||Gr(e)?e.ownerDocument:document:document:document}const ge=dn?d.useLayoutEffect:d.useEffect;function ro(e){const t=d.useRef(e);return ge(()=>{t.current=e}),d.useCallback(function(){for(var n=arguments.length,o=new Array(n),r=0;r<n;r++)o[r]=arguments[r];return t.current==null?void 0:t.current(...o)},[])}function Gc(){const e=d.useRef(null),t=d.useCallback((o,r)=>{e.current=setInterval(o,r)},[]),n=d.useCallback(()=>{e.current!==null&&(clearInterval(e.current),e.current=null)},[]);return[t,n]}function Ct(e,t){t===void 0&&(t=[e]);const n=d.useRef(e);return ge(()=>{n.current!==e&&(n.current=e)},t),n}function Tt(e,t){const n=d.useRef();return d.useMemo(()=>{const o=e(n.current);return n.current=o,o},[...t])}function tn(e){const t=ro(e),n=d.useRef(null),o=d.useCallback(r=>{r!==n.current&&t?.(r,n.current),n.current=r},[]);return[n,o]}function Dn(e){const t=d.useRef();return d.useEffect(()=>{t.current=e},[e]),t.current}let Rn={};function Nt(e,t){return d.useMemo(()=>{if(t)return t;const n=Rn[e]==null?0:Rn[e]+1;return Rn[e]=n,e+"-"+n},[e,t])}function Wr(e){return function(t){for(var n=arguments.length,o=new Array(n>1?n-1:0),r=1;r<n;r++)o[r-1]=arguments[r];return o.reduce((s,a)=>{const i=Object.entries(a);for(const[l,c]of i){const u=s[l];u!=null&&(s[l]=u+e*c)}return s},{...t})}}const We=Wr(1),_t=Wr(-1);function Wc(e){return"clientX"in e&&"clientY"in e}function so(e){if(!e)return!1;const{KeyboardEvent:t}=Y(e.target);return t&&e instanceof t}function qc(e){if(!e)return!1;const{TouchEvent:t}=Y(e.target);return t&&e instanceof t}function jn(e){if(qc(e)){if(e.touches&&e.touches.length){const{clientX:t,clientY:n}=e.touches[0];return{x:t,y:n}}else if(e.changedTouches&&e.changedTouches.length){const{clientX:t,clientY:n}=e.changedTouches[0];return{x:t,y:n}}}return Wc(e)?{x:e.clientX,y:e.clientY}:null}const Pt=Object.freeze({Translate:{toString(e){if(!e)return;const{x:t,y:n}=e;return"translate3d("+(t?Math.round(t):0)+"px, "+(n?Math.round(n):0)+"px, 0)"}},Scale:{toString(e){if(!e)return;const{scaleX:t,scaleY:n}=e;return"scaleX("+t+") scaleY("+n+")"}},Transform:{toString(e){if(e)return[Pt.Translate.toString(e),Pt.Scale.toString(e)].join(" ")}},Transition:{toString(e){let{property:t,duration:n,easing:o}=e;return t+" "+n+"ms "+o}}}),zo="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function Xc(e){return e.matches(zo)?e:e.querySelector(zo)}const Yc={display:"none"};function Qc(e){let{id:t,value:n}=e;return G.createElement("div",{id:t,style:Yc},n)}function Jc(e){let{id:t,announcement:n,ariaLiveType:o="assertive"}=e;const r={position:"fixed",top:0,left:0,width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"};return G.createElement("div",{id:t,style:r,role:"status","aria-live":o,"aria-atomic":!0},n)}function el(){const[e,t]=d.useState("");return{announce:d.useCallback(o=>{o!=null&&t(o)},[]),announcement:e}}const qr=d.createContext(null);function tl(e){const t=d.useContext(qr);d.useEffect(()=>{if(!t)throw new Error("useDndMonitor must be used within a children of <DndContext>");return t(e)},[e,t])}function nl(){const[e]=d.useState(()=>new Set),t=d.useCallback(o=>(e.add(o),()=>e.delete(o)),[e]);return[d.useCallback(o=>{let{type:r,event:s}=o;e.forEach(a=>{var i;return(i=a[r])==null?void 0:i.call(a,s)})},[e]),t]}const ol={draggable:`
140
+ To pick up a draggable item, press the space bar.
141
+ While dragging, use the arrow keys to move the item.
142
+ Press space again to drop the item in its new position, or press escape to cancel.
143
+ `},rl={onDragStart(e){let{active:t}=e;return"Picked up draggable item "+t.id+"."},onDragOver(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was moved over droppable area "+n.id+".":"Draggable item "+t.id+" is no longer over a droppable area."},onDragEnd(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was dropped over droppable area "+n.id:"Draggable item "+t.id+" was dropped."},onDragCancel(e){let{active:t}=e;return"Dragging was cancelled. Draggable item "+t.id+" was dropped."}};function sl(e){let{announcements:t=rl,container:n,hiddenTextDescribedById:o,screenReaderInstructions:r=ol}=e;const{announce:s,announcement:a}=el(),i=Nt("DndLiveRegion"),[l,c]=d.useState(!1);if(d.useEffect(()=>{c(!0)},[]),tl(d.useMemo(()=>({onDragStart(h){let{active:f}=h;s(t.onDragStart({active:f}))},onDragMove(h){let{active:f,over:m}=h;t.onDragMove&&s(t.onDragMove({active:f,over:m}))},onDragOver(h){let{active:f,over:m}=h;s(t.onDragOver({active:f,over:m}))},onDragEnd(h){let{active:f,over:m}=h;s(t.onDragEnd({active:f,over:m}))},onDragCancel(h){let{active:f,over:m}=h;s(t.onDragCancel({active:f,over:m}))}}),[s,t])),!l)return null;const u=G.createElement(G.Fragment,null,G.createElement(Qc,{id:o,value:r.draggable}),G.createElement(Jc,{id:i,announcement:a}));return n?mt.createPortal(u,n):u}var O;(function(e){e.DragStart="dragStart",e.DragMove="dragMove",e.DragEnd="dragEnd",e.DragCancel="dragCancel",e.DragOver="dragOver",e.RegisterDroppable="registerDroppable",e.SetDroppableDisabled="setDroppableDisabled",e.UnregisterDroppable="unregisterDroppable"})(O||(O={}));function nn(){}function Uo(e,t){return d.useMemo(()=>({sensor:e,options:t??{}}),[e,t])}function al(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return d.useMemo(()=>[...t].filter(o=>o!=null),[...t])}const de=Object.freeze({x:0,y:0});function Xr(e,t){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function Yr(e,t){let{data:{value:n}}=e,{data:{value:o}}=t;return n-o}function il(e,t){let{data:{value:n}}=e,{data:{value:o}}=t;return o-n}function Ko(e){let{left:t,top:n,height:o,width:r}=e;return[{x:t,y:n},{x:t+r,y:n},{x:t,y:n+o},{x:t+r,y:n+o}]}function Qr(e,t){if(!e||e.length===0)return null;const[n]=e;return n[t]}function Go(e,t,n){return t===void 0&&(t=e.left),n===void 0&&(n=e.top),{x:t+e.width*.5,y:n+e.height*.5}}const cl=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:o}=e;const r=Go(t,t.left,t.top),s=[];for(const a of o){const{id:i}=a,l=n.get(i);if(l){const c=Xr(Go(l),r);s.push({id:i,data:{droppableContainer:a,value:c}})}}return s.sort(Yr)},ll=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:o}=e;const r=Ko(t),s=[];for(const a of o){const{id:i}=a,l=n.get(i);if(l){const c=Ko(l),u=r.reduce((f,m,g)=>f+Xr(c[g],m),0),h=Number((u/4).toFixed(4));s.push({id:i,data:{droppableContainer:a,value:h}})}}return s.sort(Yr)};function dl(e,t){const n=Math.max(t.top,e.top),o=Math.max(t.left,e.left),r=Math.min(t.left+t.width,e.left+e.width),s=Math.min(t.top+t.height,e.top+e.height),a=r-o,i=s-n;if(o<r&&n<s){const l=t.width*t.height,c=e.width*e.height,u=a*i,h=u/(l+c-u);return Number(h.toFixed(4))}return 0}const ul=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:o}=e;const r=[];for(const s of o){const{id:a}=s,i=n.get(a);if(i){const l=dl(i,t);l>0&&r.push({id:a,data:{droppableContainer:s,value:l}})}}return r.sort(il)};function hl(e,t,n){return{...e,scaleX:t&&n?t.width/n.width:1,scaleY:t&&n?t.height/n.height:1}}function Jr(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:de}function fl(e){return function(n){for(var o=arguments.length,r=new Array(o>1?o-1:0),s=1;s<o;s++)r[s-1]=arguments[s];return r.reduce((a,i)=>({...a,top:a.top+e*i.y,bottom:a.bottom+e*i.y,left:a.left+e*i.x,right:a.right+e*i.x}),{...n})}}const pl=fl(1);function ml(e){if(e.startsWith("matrix3d(")){const t=e.slice(9,-1).split(/, /);return{x:+t[12],y:+t[13],scaleX:+t[0],scaleY:+t[5]}}else if(e.startsWith("matrix(")){const t=e.slice(7,-1).split(/, /);return{x:+t[4],y:+t[5],scaleX:+t[0],scaleY:+t[3]}}return null}function gl(e,t,n){const o=ml(t);if(!o)return e;const{scaleX:r,scaleY:s,x:a,y:i}=o,l=e.left-a-(1-r)*parseFloat(n),c=e.top-i-(1-s)*parseFloat(n.slice(n.indexOf(" ")+1)),u=r?e.width/r:e.width,h=s?e.height/s:e.height;return{width:u,height:h,top:c,right:l+u,bottom:c+h,left:l}}const vl={ignoreTransform:!1};function tt(e,t){t===void 0&&(t=vl);let n=e.getBoundingClientRect();if(t.ignoreTransform){const{transform:c,transformOrigin:u}=Y(e).getComputedStyle(e);c&&(n=gl(n,c,u))}const{top:o,left:r,width:s,height:a,bottom:i,right:l}=n;return{top:o,left:r,width:s,height:a,bottom:i,right:l}}function Wo(e){return tt(e,{ignoreTransform:!0})}function bl(e){const t=e.innerWidth,n=e.innerHeight;return{top:0,left:0,right:t,bottom:n,width:t,height:n}}function yl(e,t){return t===void 0&&(t=Y(e).getComputedStyle(e)),t.position==="fixed"}function xl(e,t){t===void 0&&(t=Y(e).getComputedStyle(e));const n=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(r=>{const s=t[r];return typeof s=="string"?n.test(s):!1})}function un(e,t){const n=[];function o(r){if(t!=null&&n.length>=t||!r)return n;if(oo(r)&&r.scrollingElement!=null&&!n.includes(r.scrollingElement))return n.push(r.scrollingElement),n;if(!It(r)||Gr(r)||n.includes(r))return n;const s=Y(e).getComputedStyle(r);return r!==e&&xl(r,s)&&n.push(r),yl(r,s)?n:o(r.parentNode)}return e?o(e):n}function es(e){const[t]=un(e,1);return t??null}function En(e){return!dn||!e?null:Je(e)?e:no(e)?oo(e)||e===et(e).scrollingElement?window:It(e)?e:null:null}function ts(e){return Je(e)?e.scrollX:e.scrollLeft}function ns(e){return Je(e)?e.scrollY:e.scrollTop}function Vn(e){return{x:ts(e),y:ns(e)}}var F;(function(e){e[e.Forward=1]="Forward",e[e.Backward=-1]="Backward"})(F||(F={}));function os(e){return!dn||!e?!1:e===document.scrollingElement}function rs(e){const t={x:0,y:0},n=os(e)?{height:window.innerHeight,width:window.innerWidth}:{height:e.clientHeight,width:e.clientWidth},o={x:e.scrollWidth-n.width,y:e.scrollHeight-n.height},r=e.scrollTop<=t.y,s=e.scrollLeft<=t.x,a=e.scrollTop>=o.y,i=e.scrollLeft>=o.x;return{isTop:r,isLeft:s,isBottom:a,isRight:i,maxScroll:o,minScroll:t}}const wl={x:.2,y:.2};function Sl(e,t,n,o,r){let{top:s,left:a,right:i,bottom:l}=n;o===void 0&&(o=10),r===void 0&&(r=wl);const{isTop:c,isBottom:u,isLeft:h,isRight:f}=rs(e),m={x:0,y:0},g={x:0,y:0},v={height:t.height*r.y,width:t.width*r.x};return!c&&s<=t.top+v.height?(m.y=F.Backward,g.y=o*Math.abs((t.top+v.height-s)/v.height)):!u&&l>=t.bottom-v.height&&(m.y=F.Forward,g.y=o*Math.abs((t.bottom-v.height-l)/v.height)),!f&&i>=t.right-v.width?(m.x=F.Forward,g.x=o*Math.abs((t.right-v.width-i)/v.width)):!h&&a<=t.left+v.width&&(m.x=F.Backward,g.x=o*Math.abs((t.left+v.width-a)/v.width)),{direction:m,speed:g}}function Rl(e){if(e===document.scrollingElement){const{innerWidth:s,innerHeight:a}=window;return{top:0,left:0,right:s,bottom:a,width:s,height:a}}const{top:t,left:n,right:o,bottom:r}=e.getBoundingClientRect();return{top:t,left:n,right:o,bottom:r,width:e.clientWidth,height:e.clientHeight}}function ss(e){return e.reduce((t,n)=>We(t,Vn(n)),de)}function El(e){return e.reduce((t,n)=>t+ts(n),0)}function Cl(e){return e.reduce((t,n)=>t+ns(n),0)}function _l(e,t){if(t===void 0&&(t=tt),!e)return;const{top:n,left:o,bottom:r,right:s}=t(e);es(e)&&(r<=0||s<=0||n>=window.innerHeight||o>=window.innerWidth)&&e.scrollIntoView({block:"center",inline:"center"})}const Pl=[["x",["left","right"],El],["y",["top","bottom"],Cl]];class ao{constructor(t,n){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;const o=un(n),r=ss(o);this.rect={...t},this.width=t.width,this.height=t.height;for(const[s,a,i]of Pl)for(const l of a)Object.defineProperty(this,l,{get:()=>{const c=i(o),u=r[s]-c;return this.rect[l]+u},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}class yt{constructor(t){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach(n=>{var o;return(o=this.target)==null?void 0:o.removeEventListener(...n)})},this.target=t}add(t,n,o){var r;(r=this.target)==null||r.addEventListener(t,n,o),this.listeners.push([t,n,o])}}function Al(e){const{EventTarget:t}=Y(e);return e instanceof t?e:et(e)}function Cn(e,t){const n=Math.abs(e.x),o=Math.abs(e.y);return typeof t=="number"?Math.sqrt(n**2+o**2)>t:"x"in t&&"y"in t?n>t.x&&o>t.y:"x"in t?n>t.x:"y"in t?o>t.y:!1}var se;(function(e){e.Click="click",e.DragStart="dragstart",e.Keydown="keydown",e.ContextMenu="contextmenu",e.Resize="resize",e.SelectionChange="selectionchange",e.VisibilityChange="visibilitychange"})(se||(se={}));function qo(e){e.preventDefault()}function Ml(e){e.stopPropagation()}var L;(function(e){e.Space="Space",e.Down="ArrowDown",e.Right="ArrowRight",e.Left="ArrowLeft",e.Up="ArrowUp",e.Esc="Escape",e.Enter="Enter",e.Tab="Tab"})(L||(L={}));const as={start:[L.Space,L.Enter],cancel:[L.Esc],end:[L.Space,L.Enter,L.Tab]},Ll=(e,t)=>{let{currentCoordinates:n}=t;switch(e.code){case L.Right:return{...n,x:n.x+25};case L.Left:return{...n,x:n.x-25};case L.Down:return{...n,y:n.y+25};case L.Up:return{...n,y:n.y-25}}};class io{constructor(t){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=t;const{event:{target:n}}=t;this.props=t,this.listeners=new yt(et(n)),this.windowListeners=new yt(Y(n)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(se.Resize,this.handleCancel),this.windowListeners.add(se.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(se.Keydown,this.handleKeyDown))}handleStart(){const{activeNode:t,onStart:n}=this.props,o=t.node.current;o&&_l(o),n(de)}handleKeyDown(t){if(so(t)){const{active:n,context:o,options:r}=this.props,{keyboardCodes:s=as,coordinateGetter:a=Ll,scrollBehavior:i="smooth"}=r,{code:l}=t;if(s.end.includes(l)){this.handleEnd(t);return}if(s.cancel.includes(l)){this.handleCancel(t);return}const{collisionRect:c}=o.current,u=c?{x:c.left,y:c.top}:de;this.referenceCoordinates||(this.referenceCoordinates=u);const h=a(t,{active:n,context:o.current,currentCoordinates:u});if(h){const f=_t(h,u),m={x:0,y:0},{scrollableAncestors:g}=o.current;for(const v of g){const b=t.code,{isTop:y,isRight:w,isLeft:R,isBottom:S,maxScroll:_,minScroll:A}=rs(v),E=Rl(v),x={x:Math.min(b===L.Right?E.right-E.width/2:E.right,Math.max(b===L.Right?E.left:E.left+E.width/2,h.x)),y:Math.min(b===L.Down?E.bottom-E.height/2:E.bottom,Math.max(b===L.Down?E.top:E.top+E.height/2,h.y))},C=b===L.Right&&!w||b===L.Left&&!R,I=b===L.Down&&!S||b===L.Up&&!y;if(C&&x.x!==h.x){const P=v.scrollLeft+f.x,M=b===L.Right&&P<=_.x||b===L.Left&&P>=A.x;if(M&&!f.y){v.scrollTo({left:P,behavior:i});return}M?m.x=v.scrollLeft-P:m.x=b===L.Right?v.scrollLeft-_.x:v.scrollLeft-A.x,m.x&&v.scrollBy({left:-m.x,behavior:i});break}else if(I&&x.y!==h.y){const P=v.scrollTop+f.y,M=b===L.Down&&P<=_.y||b===L.Up&&P>=A.y;if(M&&!f.x){v.scrollTo({top:P,behavior:i});return}M?m.y=v.scrollTop-P:m.y=b===L.Down?v.scrollTop-_.y:v.scrollTop-A.y,m.y&&v.scrollBy({top:-m.y,behavior:i});break}}this.handleMove(t,We(_t(h,this.referenceCoordinates),m))}}}handleMove(t,n){const{onMove:o}=this.props;t.preventDefault(),o(n)}handleEnd(t){const{onEnd:n}=this.props;t.preventDefault(),this.detach(),n()}handleCancel(t){const{onCancel:n}=this.props;t.preventDefault(),this.detach(),n()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}}io.activators=[{eventName:"onKeyDown",handler:(e,t,n)=>{let{keyboardCodes:o=as,onActivation:r}=t,{active:s}=n;const{code:a}=e.nativeEvent;if(o.start.includes(a)){const i=s.activatorNode.current;return i&&e.target!==i?!1:(e.preventDefault(),r?.({event:e.nativeEvent}),!0)}return!1}}];function Xo(e){return!!(e&&"distance"in e)}function Yo(e){return!!(e&&"delay"in e)}class co{constructor(t,n,o){var r;o===void 0&&(o=Al(t.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=t,this.events=n;const{event:s}=t,{target:a}=s;this.props=t,this.events=n,this.document=et(a),this.documentListeners=new yt(this.document),this.listeners=new yt(o),this.windowListeners=new yt(Y(a)),this.initialCoordinates=(r=jn(s))!=null?r:de,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){const{events:t,props:{options:{activationConstraint:n,bypassActivationConstraint:o}}}=this;if(this.listeners.add(t.move.name,this.handleMove,{passive:!1}),this.listeners.add(t.end.name,this.handleEnd),t.cancel&&this.listeners.add(t.cancel.name,this.handleCancel),this.windowListeners.add(se.Resize,this.handleCancel),this.windowListeners.add(se.DragStart,qo),this.windowListeners.add(se.VisibilityChange,this.handleCancel),this.windowListeners.add(se.ContextMenu,qo),this.documentListeners.add(se.Keydown,this.handleKeydown),n){if(o!=null&&o({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(Yo(n)){this.timeoutId=setTimeout(this.handleStart,n.delay),this.handlePending(n);return}if(Xo(n)){this.handlePending(n);return}}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),this.timeoutId!==null&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handlePending(t,n){const{active:o,onPending:r}=this.props;r(o,t,this.initialCoordinates,n)}handleStart(){const{initialCoordinates:t}=this,{onStart:n}=this.props;t&&(this.activated=!0,this.documentListeners.add(se.Click,Ml,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(se.SelectionChange,this.removeTextSelection),n(t))}handleMove(t){var n;const{activated:o,initialCoordinates:r,props:s}=this,{onMove:a,options:{activationConstraint:i}}=s;if(!r)return;const l=(n=jn(t))!=null?n:de,c=_t(r,l);if(!o&&i){if(Xo(i)){if(i.tolerance!=null&&Cn(c,i.tolerance))return this.handleCancel();if(Cn(c,i.distance))return this.handleStart()}if(Yo(i)&&Cn(c,i.tolerance))return this.handleCancel();this.handlePending(i,c);return}t.cancelable&&t.preventDefault(),a(l)}handleEnd(){const{onAbort:t,onEnd:n}=this.props;this.detach(),this.activated||t(this.props.active),n()}handleCancel(){const{onAbort:t,onCancel:n}=this.props;this.detach(),this.activated||t(this.props.active),n()}handleKeydown(t){t.code===L.Esc&&this.handleCancel()}removeTextSelection(){var t;(t=this.document.getSelection())==null||t.removeAllRanges()}}const Il={cancel:{name:"pointercancel"},move:{name:"pointermove"},end:{name:"pointerup"}};class lo extends co{constructor(t){const{event:n}=t,o=et(n.target);super(t,Il,o)}}lo.activators=[{eventName:"onPointerDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:o}=t;return!n.isPrimary||n.button!==0?!1:(o?.({event:n}),!0)}}];const Tl={move:{name:"mousemove"},end:{name:"mouseup"}};var On;(function(e){e[e.RightClick=2]="RightClick"})(On||(On={}));class Nl extends co{constructor(t){super(t,Tl,et(t.event.target))}}Nl.activators=[{eventName:"onMouseDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:o}=t;return n.button===On.RightClick?!1:(o?.({event:n}),!0)}}];const _n={cancel:{name:"touchcancel"},move:{name:"touchmove"},end:{name:"touchend"}};class Dl extends co{constructor(t){super(t,_n)}static setup(){return window.addEventListener(_n.move.name,t,{capture:!1,passive:!1}),function(){window.removeEventListener(_n.move.name,t)};function t(){}}}Dl.activators=[{eventName:"onTouchStart",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:o}=t;const{touches:r}=n;return r.length>1?!1:(o?.({event:n}),!0)}}];var xt;(function(e){e[e.Pointer=0]="Pointer",e[e.DraggableRect=1]="DraggableRect"})(xt||(xt={}));var on;(function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="ReversedTreeOrder"})(on||(on={}));function jl(e){let{acceleration:t,activator:n=xt.Pointer,canScroll:o,draggingRect:r,enabled:s,interval:a=5,order:i=on.TreeOrder,pointerCoordinates:l,scrollableAncestors:c,scrollableAncestorRects:u,delta:h,threshold:f}=e;const m=Ol({delta:h,disabled:!s}),[g,v]=Gc(),b=d.useRef({x:0,y:0}),y=d.useRef({x:0,y:0}),w=d.useMemo(()=>{switch(n){case xt.Pointer:return l?{top:l.y,bottom:l.y,left:l.x,right:l.x}:null;case xt.DraggableRect:return r}},[n,r,l]),R=d.useRef(null),S=d.useCallback(()=>{const A=R.current;if(!A)return;const E=b.current.x*y.current.x,x=b.current.y*y.current.y;A.scrollBy(E,x)},[]),_=d.useMemo(()=>i===on.TreeOrder?[...c].reverse():c,[i,c]);d.useEffect(()=>{if(!s||!c.length||!w){v();return}for(const A of _){if(o?.(A)===!1)continue;const E=c.indexOf(A),x=u[E];if(!x)continue;const{direction:C,speed:I}=Sl(A,x,w,t,f);for(const P of["x","y"])m[P][C[P]]||(I[P]=0,C[P]=0);if(I.x>0||I.y>0){v(),R.current=A,g(S,a),b.current=I,y.current=C;return}}b.current={x:0,y:0},y.current={x:0,y:0},v()},[t,S,o,v,s,a,JSON.stringify(w),JSON.stringify(m),g,c,_,u,JSON.stringify(f)])}const Vl={x:{[F.Backward]:!1,[F.Forward]:!1},y:{[F.Backward]:!1,[F.Forward]:!1}};function Ol(e){let{delta:t,disabled:n}=e;const o=Dn(t);return Tt(r=>{if(n||!o||!r)return Vl;const s={x:Math.sign(t.x-o.x),y:Math.sign(t.y-o.y)};return{x:{[F.Backward]:r.x[F.Backward]||s.x===-1,[F.Forward]:r.x[F.Forward]||s.x===1},y:{[F.Backward]:r.y[F.Backward]||s.y===-1,[F.Forward]:r.y[F.Forward]||s.y===1}}},[n,t,o])}function kl(e,t){const n=t!=null?e.get(t):void 0,o=n?n.node.current:null;return Tt(r=>{var s;return t==null?null:(s=o??r)!=null?s:null},[o,t])}function Fl(e,t){return d.useMemo(()=>e.reduce((n,o)=>{const{sensor:r}=o,s=r.activators.map(a=>({eventName:a.eventName,handler:t(a.handler,o)}));return[...n,...s]},[]),[e,t])}var At;(function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging"})(At||(At={}));var kn;(function(e){e.Optimized="optimized"})(kn||(kn={}));const Qo=new Map;function Hl(e,t){let{dragging:n,dependencies:o,config:r}=t;const[s,a]=d.useState(null),{frequency:i,measure:l,strategy:c}=r,u=d.useRef(e),h=b(),f=Ct(h),m=d.useCallback(function(y){y===void 0&&(y=[]),!f.current&&a(w=>w===null?y:w.concat(y.filter(R=>!w.includes(R))))},[f]),g=d.useRef(null),v=Tt(y=>{if(h&&!n)return Qo;if(!y||y===Qo||u.current!==e||s!=null){const w=new Map;for(let R of e){if(!R)continue;if(s&&s.length>0&&!s.includes(R.id)&&R.rect.current){w.set(R.id,R.rect.current);continue}const S=R.node.current,_=S?new ao(l(S),S):null;R.rect.current=_,_&&w.set(R.id,_)}return w}return y},[e,s,n,h,l]);return d.useEffect(()=>{u.current=e},[e]),d.useEffect(()=>{h||m()},[n,h]),d.useEffect(()=>{s&&s.length>0&&a(null)},[JSON.stringify(s)]),d.useEffect(()=>{h||typeof i!="number"||g.current!==null||(g.current=setTimeout(()=>{m(),g.current=null},i))},[i,h,m,...o]),{droppableRects:v,measureDroppableContainers:m,measuringScheduled:s!=null};function b(){switch(c){case At.Always:return!1;case At.BeforeDragging:return n;default:return!n}}}function is(e,t){return Tt(n=>e?n||(typeof t=="function"?t(e):e):null,[t,e])}function Bl(e,t){return is(e,t)}function $l(e){let{callback:t,disabled:n}=e;const o=ro(t),r=d.useMemo(()=>{if(n||typeof window>"u"||typeof window.MutationObserver>"u")return;const{MutationObserver:s}=window;return new s(o)},[o,n]);return d.useEffect(()=>()=>r?.disconnect(),[r]),r}function hn(e){let{callback:t,disabled:n}=e;const o=ro(t),r=d.useMemo(()=>{if(n||typeof window>"u"||typeof window.ResizeObserver>"u")return;const{ResizeObserver:s}=window;return new s(o)},[n]);return d.useEffect(()=>()=>r?.disconnect(),[r]),r}function Zl(e){return new ao(tt(e),e)}function Jo(e,t,n){t===void 0&&(t=Zl);const[o,r]=d.useState(null);function s(){r(l=>{if(!e)return null;if(e.isConnected===!1){var c;return(c=l??n)!=null?c:null}const u=t(e);return JSON.stringify(l)===JSON.stringify(u)?l:u})}const a=$l({callback(l){if(e)for(const c of l){const{type:u,target:h}=c;if(u==="childList"&&h instanceof HTMLElement&&h.contains(e)){s();break}}}}),i=hn({callback:s});return ge(()=>{s(),e?(i?.observe(e),a?.observe(document.body,{childList:!0,subtree:!0})):(i?.disconnect(),a?.disconnect())},[e]),o}function zl(e){const t=is(e);return Jr(e,t)}const er=[];function Ul(e){const t=d.useRef(e),n=Tt(o=>e?o&&o!==er&&e&&t.current&&e.parentNode===t.current.parentNode?o:un(e):er,[e]);return d.useEffect(()=>{t.current=e},[e]),n}function Kl(e){const[t,n]=d.useState(null),o=d.useRef(e),r=d.useCallback(s=>{const a=En(s.target);a&&n(i=>i?(i.set(a,Vn(a)),new Map(i)):null)},[]);return d.useEffect(()=>{const s=o.current;if(e!==s){a(s);const i=e.map(l=>{const c=En(l);return c?(c.addEventListener("scroll",r,{passive:!0}),[c,Vn(c)]):null}).filter(l=>l!=null);n(i.length?new Map(i):null),o.current=e}return()=>{a(e),a(s)};function a(i){i.forEach(l=>{const c=En(l);c?.removeEventListener("scroll",r)})}},[r,e]),d.useMemo(()=>e.length?t?Array.from(t.values()).reduce((s,a)=>We(s,a),de):ss(e):de,[e,t])}function tr(e,t){t===void 0&&(t=[]);const n=d.useRef(null);return d.useEffect(()=>{n.current=null},t),d.useEffect(()=>{const o=e!==de;o&&!n.current&&(n.current=e),!o&&n.current&&(n.current=null)},[e]),n.current?_t(e,n.current):de}function Gl(e){d.useEffect(()=>{if(!dn)return;const t=e.map(n=>{let{sensor:o}=n;return o.setup==null?void 0:o.setup()});return()=>{for(const n of t)n?.()}},e.map(t=>{let{sensor:n}=t;return n}))}function Wl(e,t){return d.useMemo(()=>e.reduce((n,o)=>{let{eventName:r,handler:s}=o;return n[r]=a=>{s(a,t)},n},{}),[e,t])}function cs(e){return d.useMemo(()=>e?bl(e):null,[e])}const nr=[];function ql(e,t){t===void 0&&(t=tt);const[n]=e,o=cs(n?Y(n):null),[r,s]=d.useState(nr);function a(){s(()=>e.length?e.map(l=>os(l)?o:new ao(t(l),l)):nr)}const i=hn({callback:a});return ge(()=>{i?.disconnect(),a(),e.forEach(l=>i?.observe(l))},[e]),r}function Xl(e){if(!e)return null;if(e.children.length>1)return e;const t=e.children[0];return It(t)?t:e}function Yl(e){let{measure:t}=e;const[n,o]=d.useState(null),r=d.useCallback(c=>{for(const{target:u}of c)if(It(u)){o(h=>{const f=t(u);return h?{...h,width:f.width,height:f.height}:f});break}},[t]),s=hn({callback:r}),a=d.useCallback(c=>{const u=Xl(c);s?.disconnect(),u&&s?.observe(u),o(u?t(u):null)},[t,s]),[i,l]=tn(a);return d.useMemo(()=>({nodeRef:i,rect:n,setRef:l}),[n,i,l])}const Ql=[{sensor:lo,options:{}},{sensor:io,options:{}}],Jl={current:{}},Wt={draggable:{measure:Wo},droppable:{measure:Wo,strategy:At.WhileDragging,frequency:kn.Optimized},dragOverlay:{measure:tt}};class wt extends Map{get(t){var n;return t!=null&&(n=super.get(t))!=null?n:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter(t=>{let{disabled:n}=t;return!n})}getNodeFor(t){var n,o;return(n=(o=this.get(t))==null?void 0:o.node.current)!=null?n:void 0}}const ed={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new wt,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:nn},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:Wt,measureDroppableContainers:nn,windowRect:null,measuringScheduled:!1},td={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:nn,draggableNodes:new Map,over:null,measureDroppableContainers:nn},fn=d.createContext(td),ls=d.createContext(ed);function nd(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new wt}}}function od(e,t){switch(t.type){case O.DragStart:return{...e,draggable:{...e.draggable,initialCoordinates:t.initialCoordinates,active:t.active}};case O.DragMove:return e.draggable.active==null?e:{...e,draggable:{...e.draggable,translate:{x:t.coordinates.x-e.draggable.initialCoordinates.x,y:t.coordinates.y-e.draggable.initialCoordinates.y}}};case O.DragEnd:case O.DragCancel:return{...e,draggable:{...e.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case O.RegisterDroppable:{const{element:n}=t,{id:o}=n,r=new wt(e.droppable.containers);return r.set(o,n),{...e,droppable:{...e.droppable,containers:r}}}case O.SetDroppableDisabled:{const{id:n,key:o,disabled:r}=t,s=e.droppable.containers.get(n);if(!s||o!==s.key)return e;const a=new wt(e.droppable.containers);return a.set(n,{...s,disabled:r}),{...e,droppable:{...e.droppable,containers:a}}}case O.UnregisterDroppable:{const{id:n,key:o}=t,r=e.droppable.containers.get(n);if(!r||o!==r.key)return e;const s=new wt(e.droppable.containers);return s.delete(n),{...e,droppable:{...e.droppable,containers:s}}}default:return e}}function rd(e){let{disabled:t}=e;const{active:n,activatorEvent:o,draggableNodes:r}=d.useContext(fn),s=Dn(o),a=Dn(n?.id);return d.useEffect(()=>{if(!t&&!o&&s&&a!=null){if(!so(s)||document.activeElement===s.target)return;const i=r.get(a);if(!i)return;const{activatorNode:l,node:c}=i;if(!l.current&&!c.current)return;requestAnimationFrame(()=>{for(const u of[l.current,c.current]){if(!u)continue;const h=Xc(u);if(h){h.focus();break}}})}},[o,t,r,a,s]),null}function sd(e,t){let{transform:n,...o}=t;return e!=null&&e.length?e.reduce((r,s)=>s({transform:r,...o}),n):n}function ad(e){return d.useMemo(()=>({draggable:{...Wt.draggable,...e?.draggable},droppable:{...Wt.droppable,...e?.droppable},dragOverlay:{...Wt.dragOverlay,...e?.dragOverlay}}),[e?.draggable,e?.droppable,e?.dragOverlay])}function id(e){let{activeNode:t,measure:n,initialRect:o,config:r=!0}=e;const s=d.useRef(!1),{x:a,y:i}=typeof r=="boolean"?{x:r,y:r}:r;ge(()=>{if(!a&&!i||!t){s.current=!1;return}if(s.current||!o)return;const c=t?.node.current;if(!c||c.isConnected===!1)return;const u=n(c),h=Jr(u,o);if(a||(h.x=0),i||(h.y=0),s.current=!0,Math.abs(h.x)>0||Math.abs(h.y)>0){const f=es(c);f&&f.scrollBy({top:h.y,left:h.x})}},[t,a,i,o,n])}const ds=d.createContext({...de,scaleX:1,scaleY:1});var Te;(function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized"})(Te||(Te={}));const cd=d.memo(function(t){var n,o,r,s;let{id:a,accessibility:i,autoScroll:l=!0,children:c,sensors:u=Ql,collisionDetection:h=ul,measuring:f,modifiers:m,...g}=t;const v=d.useReducer(od,void 0,nd),[b,y]=v,[w,R]=nl(),[S,_]=d.useState(Te.Uninitialized),A=S===Te.Initialized,{draggable:{active:E,nodes:x,translate:C},droppable:{containers:I}}=b,P=E!=null?x.get(E):null,M=d.useRef({initial:null,translated:null}),K=d.useMemo(()=>{var U;return E!=null?{id:E,data:(U=P?.data)!=null?U:Jl,rect:M}:null},[E,P]),N=d.useRef(null),[ue,W]=d.useState(null),[k,Dt]=d.useState(null),ve=Ct(g,Object.values(g)),st=Nt("DndDescribedBy",a),jt=d.useMemo(()=>I.getEnabled(),[I]),q=ad(f),{droppableRects:be,measureDroppableContainers:je,measuringScheduled:at}=Hl(jt,{dragging:A,dependencies:[C.x,C.y],config:q.droppable}),oe=kl(x,E),Vt=d.useMemo(()=>k?jn(k):null,[k]),_e=Ns(),ye=Bl(oe,q.draggable.measure);id({activeNode:E!=null?x.get(E):null,config:_e.layoutShiftCompensation,initialRect:ye,measure:q.draggable.measure});const T=Jo(oe,q.draggable.measure,ye),it=Jo(oe?oe.parentElement:null),he=d.useRef({activatorEvent:null,active:null,activeNode:oe,collisionRect:null,collisions:null,droppableRects:be,draggableNodes:x,draggingNode:null,draggingNodeRect:null,droppableContainers:I,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),ke=I.getNodeFor((n=he.current.over)==null?void 0:n.id),xe=Yl({measure:q.dragOverlay.measure}),Fe=(o=xe.nodeRef.current)!=null?o:oe,He=A?(r=xe.rect)!=null?r:T:null,ho=!!(xe.nodeRef.current&&xe.rect),fo=zl(ho?null:T),mn=cs(Fe?Y(Fe):null),Pe=Ul(A?ke??oe:null),Ot=ql(Pe),kt=sd(m,{transform:{x:C.x-fo.x,y:C.y-fo.y,scaleX:1,scaleY:1},activatorEvent:k,active:K,activeNodeRect:T,containerNodeRect:it,draggingNodeRect:He,over:he.current.over,overlayNodeRect:xe.rect,scrollableAncestors:Pe,scrollableAncestorRects:Ot,windowRect:mn}),po=Vt?We(Vt,C):null,mo=Kl(Pe),_s=tr(mo),Ps=tr(mo,[T]),Be=We(kt,_s),$e=He?pl(He,kt):null,ct=K&&$e?h({active:K,collisionRect:$e,droppableRects:be,droppableContainers:jt,pointerCoordinates:po}):null,go=Qr(ct,"id"),[Ae,vo]=d.useState(null),As=ho?kt:We(kt,Ps),Ms=hl(As,(s=Ae?.rect)!=null?s:null,T),gn=d.useRef(null),bo=d.useCallback((U,Q)=>{let{sensor:J,options:Me}=Q;if(N.current==null)return;const re=x.get(N.current);if(!re)return;const ee=U.nativeEvent,fe=new J({active:N.current,activeNode:re,event:ee,options:Me,context:he,onAbort($){if(!x.get($))return;const{onDragAbort:pe}=ve.current,we={id:$};pe?.(we),w({type:"onDragAbort",event:we})},onPending($,Le,pe,we){if(!x.get($))return;const{onDragPending:dt}=ve.current,Ie={id:$,constraint:Le,initialCoordinates:pe,offset:we};dt?.(Ie),w({type:"onDragPending",event:Ie})},onStart($){const Le=N.current;if(Le==null)return;const pe=x.get(Le);if(!pe)return;const{onDragStart:we}=ve.current,lt={activatorEvent:ee,active:{id:Le,data:pe.data,rect:M}};mt.unstable_batchedUpdates(()=>{we?.(lt),_(Te.Initializing),y({type:O.DragStart,initialCoordinates:$,active:Le}),w({type:"onDragStart",event:lt}),W(gn.current),Dt(ee)})},onMove($){y({type:O.DragMove,coordinates:$})},onEnd:Ze(O.DragEnd),onCancel:Ze(O.DragCancel)});gn.current=fe;function Ze($){return async function(){const{active:pe,collisions:we,over:lt,scrollAdjustedTranslate:dt}=he.current;let Ie=null;if(pe&&dt){const{cancelDrop:ut}=ve.current;Ie={activatorEvent:ee,active:pe,collisions:we,delta:dt,over:lt},$===O.DragEnd&&typeof ut=="function"&&await Promise.resolve(ut(Ie))&&($=O.DragCancel)}N.current=null,mt.unstable_batchedUpdates(()=>{y({type:$}),_(Te.Uninitialized),vo(null),W(null),Dt(null),gn.current=null;const ut=$===O.DragEnd?"onDragEnd":"onDragCancel";if(Ie){const vn=ve.current[ut];vn?.(Ie),w({type:ut,event:Ie})}})}}},[x]),Ls=d.useCallback((U,Q)=>(J,Me)=>{const re=J.nativeEvent,ee=x.get(Me);if(N.current!==null||!ee||re.dndKit||re.defaultPrevented)return;const fe={active:ee};U(J,Q.options,fe)===!0&&(re.dndKit={capturedBy:Q.sensor},N.current=Me,bo(J,Q))},[x,bo]),yo=Fl(u,Ls);Gl(u),ge(()=>{T&&S===Te.Initializing&&_(Te.Initialized)},[T,S]),d.useEffect(()=>{const{onDragMove:U}=ve.current,{active:Q,activatorEvent:J,collisions:Me,over:re}=he.current;if(!Q||!J)return;const ee={active:Q,activatorEvent:J,collisions:Me,delta:{x:Be.x,y:Be.y},over:re};mt.unstable_batchedUpdates(()=>{U?.(ee),w({type:"onDragMove",event:ee})})},[Be.x,Be.y]),d.useEffect(()=>{const{active:U,activatorEvent:Q,collisions:J,droppableContainers:Me,scrollAdjustedTranslate:re}=he.current;if(!U||N.current==null||!Q||!re)return;const{onDragOver:ee}=ve.current,fe=Me.get(go),Ze=fe&&fe.rect.current?{id:fe.id,rect:fe.rect.current,data:fe.data,disabled:fe.disabled}:null,$={active:U,activatorEvent:Q,collisions:J,delta:{x:re.x,y:re.y},over:Ze};mt.unstable_batchedUpdates(()=>{vo(Ze),ee?.($),w({type:"onDragOver",event:$})})},[go]),ge(()=>{he.current={activatorEvent:k,active:K,activeNode:oe,collisionRect:$e,collisions:ct,droppableRects:be,draggableNodes:x,draggingNode:Fe,draggingNodeRect:He,droppableContainers:I,over:Ae,scrollableAncestors:Pe,scrollAdjustedTranslate:Be},M.current={initial:He,translated:$e}},[K,oe,ct,$e,x,Fe,He,be,I,Ae,Pe,Be]),jl({..._e,delta:C,draggingRect:$e,pointerCoordinates:po,scrollableAncestors:Pe,scrollableAncestorRects:Ot});const Is=d.useMemo(()=>({active:K,activeNode:oe,activeNodeRect:T,activatorEvent:k,collisions:ct,containerNodeRect:it,dragOverlay:xe,draggableNodes:x,droppableContainers:I,droppableRects:be,over:Ae,measureDroppableContainers:je,scrollableAncestors:Pe,scrollableAncestorRects:Ot,measuringConfiguration:q,measuringScheduled:at,windowRect:mn}),[K,oe,T,k,ct,it,xe,x,I,be,Ae,je,Pe,Ot,q,at,mn]),Ts=d.useMemo(()=>({activatorEvent:k,activators:yo,active:K,activeNodeRect:T,ariaDescribedById:{draggable:st},dispatch:y,draggableNodes:x,over:Ae,measureDroppableContainers:je}),[k,yo,K,T,y,st,x,Ae,je]);return G.createElement(qr.Provider,{value:R},G.createElement(fn.Provider,{value:Ts},G.createElement(ls.Provider,{value:Is},G.createElement(ds.Provider,{value:Ms},c)),G.createElement(rd,{disabled:i?.restoreFocus===!1})),G.createElement(sl,{...i,hiddenTextDescribedById:st}));function Ns(){const U=ue?.autoScrollEnabled===!1,Q=typeof l=="object"?l.enabled===!1:l===!1,J=A&&!U&&!Q;return typeof l=="object"?{...l,enabled:J}:{enabled:J}}}),ld=d.createContext(null),or="button",dd="Draggable";function ud(e){let{id:t,data:n,disabled:o=!1,attributes:r}=e;const s=Nt(dd),{activators:a,activatorEvent:i,active:l,activeNodeRect:c,ariaDescribedById:u,draggableNodes:h,over:f}=d.useContext(fn),{role:m=or,roleDescription:g="draggable",tabIndex:v=0}=r??{},b=l?.id===t,y=d.useContext(b?ds:ld),[w,R]=tn(),[S,_]=tn(),A=Wl(a,t),E=Ct(n);ge(()=>(h.set(t,{id:t,key:s,node:w,activatorNode:S,data:E}),()=>{const C=h.get(t);C&&C.key===s&&h.delete(t)}),[h,t]);const x=d.useMemo(()=>({role:m,tabIndex:v,"aria-disabled":o,"aria-pressed":b&&m===or?!0:void 0,"aria-roledescription":g,"aria-describedby":u.draggable}),[o,m,v,b,g,u.draggable]);return{active:l,activatorEvent:i,activeNodeRect:c,attributes:x,isDragging:b,listeners:o?void 0:A,node:w,over:f,setNodeRef:R,setActivatorNodeRef:_,transform:y}}function hd(){return d.useContext(ls)}const fd="Droppable",pd={timeout:25};function md(e){let{data:t,disabled:n=!1,id:o,resizeObserverConfig:r}=e;const s=Nt(fd),{active:a,dispatch:i,over:l,measureDroppableContainers:c}=d.useContext(fn),u=d.useRef({disabled:n}),h=d.useRef(!1),f=d.useRef(null),m=d.useRef(null),{disabled:g,updateMeasurementsFor:v,timeout:b}={...pd,...r},y=Ct(v??o),w=d.useCallback(()=>{if(!h.current){h.current=!0;return}m.current!=null&&clearTimeout(m.current),m.current=setTimeout(()=>{c(Array.isArray(y.current)?y.current:[y.current]),m.current=null},b)},[b]),R=hn({callback:w,disabled:g||!a}),S=d.useCallback((x,C)=>{R&&(C&&(R.unobserve(C),h.current=!1),x&&R.observe(x))},[R]),[_,A]=tn(S),E=Ct(t);return d.useEffect(()=>{!R||!_.current||(R.disconnect(),h.current=!1,R.observe(_.current))},[_,R]),d.useEffect(()=>(i({type:O.RegisterDroppable,element:{id:o,key:s,disabled:n,node:_,rect:f,data:E}}),()=>i({type:O.UnregisterDroppable,key:s,id:o})),[o]),d.useEffect(()=>{n!==u.current.disabled&&(i({type:O.SetDroppableDisabled,id:o,key:s,disabled:n}),u.current.disabled=n)},[o,s,n,i]),{active:a,rect:f,isOver:l?.id===o,node:_,over:l,setNodeRef:A}}const jh=e=>{let{transform:t}=e;return{...t,y:0}},gd=e=>{let{transform:t}=e;return{...t,x:0}};function us(e,t,n){const o=e.slice();return o.splice(n<0?o.length+n:n,0,o.splice(t,1)[0]),o}function vd(e,t){return e.reduce((n,o,r)=>{const s=t.get(o);return s&&(n[r]=s),n},Array(e.length))}function Zt(e){return e!==null&&e>=0}function bd(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}function yd(e){return typeof e=="boolean"?{draggable:e,droppable:e}:e}const zt={scaleX:1,scaleY:1},Vh=e=>{var t;let{rects:n,activeNodeRect:o,activeIndex:r,overIndex:s,index:a}=e;const i=(t=n[r])!=null?t:o;if(!i)return null;const l=xd(n,a,r);if(a===r){const c=n[s];return c?{x:r<s?c.left+c.width-(i.left+i.width):c.left-i.left,y:0,...zt}:null}return a>r&&a<=s?{x:-i.width-l,y:0,...zt}:a<r&&a>=s?{x:i.width+l,y:0,...zt}:{x:0,y:0,...zt}};function xd(e,t,n){const o=e[t],r=e[t-1],s=e[t+1];return!o||!r&&!s?0:n<t?r?o.left-(r.left+r.width):s.left-(o.left+o.width):s?s.left-(o.left+o.width):o.left-(r.left+r.width)}const hs=e=>{let{rects:t,activeIndex:n,overIndex:o,index:r}=e;const s=us(t,o,n),a=t[r],i=s[r];return!i||!a?null:{x:i.left-a.left,y:i.top-a.top,scaleX:i.width/a.width,scaleY:i.height/a.height}},Ut={scaleX:1,scaleY:1},wd=e=>{var t;let{activeIndex:n,activeNodeRect:o,index:r,rects:s,overIndex:a}=e;const i=(t=s[n])!=null?t:o;if(!i)return null;if(r===n){const c=s[a];return c?{x:0,y:n<a?c.top+c.height-(i.top+i.height):c.top-i.top,...Ut}:null}const l=Sd(s,r,n);return r>n&&r<=a?{x:0,y:-i.height-l,...Ut}:r<n&&r>=a?{x:0,y:i.height+l,...Ut}:{x:0,y:0,...Ut}};function Sd(e,t,n){const o=e[t],r=e[t-1],s=e[t+1];return o?n<t?r?o.top-(r.top+r.height):s?s.top-(o.top+o.height):0:s?s.top-(o.top+o.height):r?o.top-(r.top+r.height):0:0}const fs="Sortable",ps=G.createContext({activeIndex:-1,containerId:fs,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:hs,disabled:{draggable:!1,droppable:!1}});function Rd(e){let{children:t,id:n,items:o,strategy:r=hs,disabled:s=!1}=e;const{active:a,dragOverlay:i,droppableRects:l,over:c,measureDroppableContainers:u}=hd(),h=Nt(fs,n),f=i.rect!==null,m=d.useMemo(()=>o.map(A=>typeof A=="object"&&"id"in A?A.id:A),[o]),g=a!=null,v=a?m.indexOf(a.id):-1,b=c?m.indexOf(c.id):-1,y=d.useRef(m),w=!bd(m,y.current),R=b!==-1&&v===-1||w,S=yd(s);ge(()=>{w&&g&&u(m)},[w,m,g,u]),d.useEffect(()=>{y.current=m},[m]);const _=d.useMemo(()=>({activeIndex:v,containerId:h,disabled:S,disableTransforms:R,items:m,overIndex:b,useDragOverlay:f,sortedRects:vd(m,l),strategy:r}),[v,h,S.draggable,S.droppable,R,m,b,l,f,r]);return G.createElement(ps.Provider,{value:_},t)}const Ed=e=>{let{id:t,items:n,activeIndex:o,overIndex:r}=e;return us(n,o,r).indexOf(t)},Cd=e=>{let{containerId:t,isSorting:n,wasDragging:o,index:r,items:s,newIndex:a,previousItems:i,previousContainerId:l,transition:c}=e;return!c||!o||i!==s&&r===a?!1:n?!0:a!==r&&t===l},_d={duration:200,easing:"ease"},ms="transform",Pd=Pt.Transition.toString({property:ms,duration:0,easing:"linear"}),Ad={roleDescription:"sortable"};function Md(e){let{disabled:t,index:n,node:o,rect:r}=e;const[s,a]=d.useState(null),i=d.useRef(n);return ge(()=>{if(!t&&n!==i.current&&o.current){const l=r.current;if(l){const c=tt(o.current,{ignoreTransform:!0}),u={x:l.left-c.left,y:l.top-c.top,scaleX:l.width/c.width,scaleY:l.height/c.height};(u.x||u.y)&&a(u)}}n!==i.current&&(i.current=n)},[t,n,o,r]),d.useEffect(()=>{s&&a(null)},[s]),s}function Ld(e){let{animateLayoutChanges:t=Cd,attributes:n,disabled:o,data:r,getNewIndex:s=Ed,id:a,strategy:i,resizeObserverConfig:l,transition:c=_d}=e;const{items:u,containerId:h,activeIndex:f,disabled:m,disableTransforms:g,sortedRects:v,overIndex:b,useDragOverlay:y,strategy:w}=d.useContext(ps),R=Id(o,m),S=u.indexOf(a),_=d.useMemo(()=>({sortable:{containerId:h,index:S,items:u},...r}),[h,r,S,u]),A=d.useMemo(()=>u.slice(u.indexOf(a)),[u,a]),{rect:E,node:x,isOver:C,setNodeRef:I}=md({id:a,data:_,disabled:R.droppable,resizeObserverConfig:{updateMeasurementsFor:A,...l}}),{active:P,activatorEvent:M,activeNodeRect:K,attributes:N,setNodeRef:ue,listeners:W,isDragging:k,over:Dt,setActivatorNodeRef:ve,transform:st}=ud({id:a,data:_,attributes:{...Ad,...n},disabled:R.draggable}),jt=Kc(I,ue),q=!!P,be=q&&!g&&Zt(f)&&Zt(b),je=!y&&k,at=je&&be?st:null,Vt=be?at??(i??w)({rects:v,activeNodeRect:K,activeIndex:f,overIndex:b,index:S}):null,_e=Zt(f)&&Zt(b)?s({id:a,items:u,activeIndex:f,overIndex:b}):S,ye=P?.id,T=d.useRef({activeId:ye,items:u,newIndex:_e,containerId:h}),it=u!==T.current.items,he=t({active:P,containerId:h,isDragging:k,isSorting:q,id:a,index:S,items:u,newIndex:T.current.newIndex,previousItems:T.current.items,previousContainerId:T.current.containerId,transition:c,wasDragging:T.current.activeId!=null}),ke=Md({disabled:!he,index:S,node:x,rect:E});return d.useEffect(()=>{q&&T.current.newIndex!==_e&&(T.current.newIndex=_e),h!==T.current.containerId&&(T.current.containerId=h),u!==T.current.items&&(T.current.items=u)},[q,_e,h,u]),d.useEffect(()=>{if(ye===T.current.activeId)return;if(ye!=null&&T.current.activeId==null){T.current.activeId=ye;return}const Fe=setTimeout(()=>{T.current.activeId=ye},50);return()=>clearTimeout(Fe)},[ye]),{active:P,activeIndex:f,attributes:N,data:_,rect:E,index:S,newIndex:_e,items:u,isOver:C,isSorting:q,isDragging:k,listeners:W,node:x,overIndex:b,over:Dt,setNodeRef:jt,setActivatorNodeRef:ve,setDroppableNodeRef:I,setDraggableNodeRef:ue,transform:ke??Vt,transition:xe()};function xe(){if(ke||it&&T.current.newIndex===S)return Pd;if(!(je&&!so(M)||!c)&&(q||he))return Pt.Transition.toString({...c,property:ms})}}function Id(e,t){var n,o;return typeof e=="boolean"?{draggable:e,droppable:!1}:{draggable:(n=e?.draggable)!=null?n:t.draggable,droppable:(o=e?.droppable)!=null?o:t.droppable}}function rn(e){if(!e)return!1;const t=e.data.current;return!!(t&&"sortable"in t&&typeof t.sortable=="object"&&"containerId"in t.sortable&&"items"in t.sortable&&"index"in t.sortable)}const Td=[L.Down,L.Right,L.Up,L.Left],Nd=(e,t)=>{let{context:{active:n,collisionRect:o,droppableRects:r,droppableContainers:s,over:a,scrollableAncestors:i}}=t;if(Td.includes(e.code)){if(e.preventDefault(),!n||!o)return;const l=[];s.getEnabled().forEach(h=>{if(!h||h!=null&&h.disabled)return;const f=r.get(h.id);if(f)switch(e.code){case L.Down:o.top<f.top&&l.push(h);break;case L.Up:o.top>f.top&&l.push(h);break;case L.Left:o.left>f.left&&l.push(h);break;case L.Right:o.left<f.left&&l.push(h);break}});const c=ll({collisionRect:o,droppableRects:r,droppableContainers:l});let u=Qr(c,"id");if(u===a?.id&&c.length>1&&(u=c[1].id),u!=null){const h=s.get(n.id),f=s.get(u),m=f?r.get(f.id):null,g=f?.node.current;if(g&&m&&h&&f){const b=un(g).some((A,E)=>i[E]!==A),y=gs(h,f),w=Dd(h,f),R=b||!y?{x:0,y:0}:{x:w?o.width-m.width:0,y:w?o.height-m.height:0},S={x:m.left,y:m.top};return R.x&&R.y?S:_t(S,R)}}}};function gs(e,t){return!rn(e)||!rn(t)?!1:e.data.current.sortable.containerId===t.data.current.sortable.containerId}function Dd(e,t){return!rn(e)||!rn(t)||!gs(e,t)?!1:e.data.current.sortable.index<t.data.current.sortable.index}const jd=e=>{const{data:t}=fr({queryKey:Xe.notes.pinned(),async queryFn(){const n=await Z(`
144
+ query FetchPinnedNotes {
145
+ pinnedNotes {
146
+ id
147
+ title
148
+ order
149
+ }
150
+ }
151
+ `);if(n.type==="error")throw n;return n.pinnedNotes}});return p.jsx(p.Fragment,{children:e.render(t)})},Vd="focus-ring-soft flex h-8 w-8 items-center justify-center rounded-[10px] text-fg-tertiary opacity-70 outline-none transition-colors hover:bg-hover-subtle hover:text-fg-default hover:opacity-100 focus-visible:opacity-100 active:cursor-grabbing touch-none",Od="focus-ring-soft block truncate rounded-[10px] px-1.5 py-1 outline-none transition-colors",kd=(e,t,n)=>{if(t===n)return null;const o=e.findIndex(i=>i.id===t),r=e.findIndex(i=>i.id===n);if(o<0||r<0)return null;const s=[...e],[a]=s.splice(o,1);return a?(s.splice(r,0,a),{nextItems:s,orders:s.map((i,l)=>({id:i.id,order:l}))}):null};function Fd({id:e,title:t,isActive:n=!1,children:o}){const{attributes:r,listeners:s,setNodeRef:a,setActivatorNodeRef:i,transform:l,transition:c,isDragging:u}=Ld({id:e}),h={transform:Pt.Transform.toString(l),transition:c,opacity:u?.5:1};return p.jsxs("div",{ref:a,style:h,className:ie("group flex min-h-[38px] items-center gap-1.5 rounded-[12px] px-1.5 py-1 transition-colors",n?"bg-hover-subtle":"hover:bg-hover-subtle/70"),children:[p.jsx("button",{type:"button",ref:i,"aria-label":`Reorder note ${t??"Untitled"}`,title:"Drag to reorder",...r,...s,className:ie(Vd,u?"cursor-grabbing":"cursor-grab"),children:p.jsx(hc,{className:"size-4"})}),p.jsx(ne,{as:"div",truncate:!0,variant:"meta",weight:"medium",className:"min-w-0 flex-1",children:o})]})}function Hd({notes:e,pathname:t,pinnedItems:n,setPinnedItems:o,handleDragEnd:r,sensors:s}){d.useEffect(()=>{o(e)},[e,o]);const a=n.length>0?n:e;return a.length===0?null:p.jsx(cd,{sensors:s,collisionDetection:cl,onDragEnd:r,modifiers:[gd],children:p.jsx(Rd,{items:a.map(i=>i.id),strategy:wd,children:a.map(i=>p.jsx(Fd,{id:i.id,title:i.title||"Untitled",isActive:t===`/${i.id}`,children:p.jsx(Et,{"aria-current":t===`/${i.id}`?"page":void 0,className:ie(Od,t===`/${i.id}`?"text-fg-default":"text-fg-secondary hover:text-fg-default"),to:zn,params:{id:i.id},children:i.title||"Untitled"})},i.id))})})}const Bd=()=>{const e=ln({select:i=>i.pathname}),t=Zn(),[n,o]=d.useState([]),r=Bs({mutationFn:Ea,onSuccess:()=>{t.invalidateQueries({queryKey:Xe.notes.pinned(),exact:!0})}}),s=al(Uo(lo,{activationConstraint:{distance:8}}),Uo(io,{coordinateGetter:Nd})),a=i=>{const{active:l,over:c}=i;c&&l.id!==c.id&&o(u=>{const h=kd(u,String(l.id),String(c.id));return h?(r.mutate(h.orders),h.nextItems):u})};return p.jsx("div",{className:"border-l border-border-subtle/70 pl-1.5",children:p.jsx(pr,{fallback:p.jsxs("div",{className:"space-y-1",children:[p.jsx(gt,{height:"40px",opacity:.4}),p.jsx(gt,{height:"40px",opacity:.4})]}),errorTitle:"Failed to load pinned notes",errorDescription:"Retry loading the pinned note list.",renderError:({error:i,retry:l})=>p.jsx(Ra,{title:"Failed to load pinned notes",description:"Retry loading the pinned note list.",error:i,onRetry:l,showBackAction:!1,showHomeAction:!1}),children:p.jsx(jd,{render:i=>i.length>0?p.jsx(Hd,{notes:i,pathname:e,pinnedItems:n,setPinnedItems:o,handleDragEnd:a,sensors:s}):p.jsx(ne,{as:"div",variant:"meta",tone:"secondary",className:"px-2 py-2.5 leading-6",children:"Pin a note from the note toolbar to keep it here."})})})})},$d=()=>p.jsx("section",{className:"p-3 pt-0","aria-label":"Pinned notes",children:p.jsx(Bd,{})}),Zd="p-3 pb-0",zd="focus-ring-soft surface-base group flex w-full items-center justify-between gap-2.5 px-3 py-2.5 text-left text-fg-default outline-none transition-colors hover:bg-hover-subtle",Ud="flex items-center gap-2.5",Kd="inline-flex h-10 w-10 shrink-0 items-center justify-center rounded-[13px] bg-cta text-fg-on-filled",Gd="flex flex-col",Wd="h-4 w-4 text-fg-tertiary transition-colors group-hover:text-fg-default",qd=()=>{const{onCreate:e}=lr();return p.jsx("div",{className:Zd,children:p.jsxs("button",{type:"button",className:zd,onClick:()=>e(),children:[p.jsxs("span",{className:Ud,children:[p.jsx("span",{className:Kd,children:p.jsx(pc,{className:"h-4.5 w-4.5",weight:"bold"})}),p.jsxs("span",{className:Gd,children:[p.jsx(ne,{variant:"meta",weight:"semibold",tracking:"tight",children:"Capture"}),p.jsx(ne,{variant:"label",tone:"secondary",children:"Open a new note"})]})]}),p.jsx(Ca,{className:Wd,weight:"bold"})]})})},Xd=/Mac|iPhone|iPad|iPod/i,Yd=()=>typeof navigator>"u"?"":`${navigator.platform} ${navigator.userAgent}`,vs=(e=Yd())=>Xd.test(e)?"⌘K":"Ctrl+K",Qd="focus-ring-soft surface-base group flex min-h-14 w-full items-center justify-between gap-3 px-3 py-2.5 text-left text-fg-default outline-none transition-colors hover:bg-hover-subtle",Jd=()=>{const e=Bn(),t=vs(),n=()=>{e({to:Lt,search:{query:"",page:1,mode:"hybrid"}})};return p.jsxs("button",{type:"button",className:Qd,"aria-label":"Open detailed search","aria-keyshortcuts":"Meta+K Control+K",onClick:n,children:[p.jsxs("span",{className:"flex min-w-0 items-center gap-2.5",children:[p.jsx("span",{className:"inline-flex h-10 w-10 shrink-0 items-center justify-center rounded-[13px] bg-muted text-fg-secondary transition-colors group-hover:text-fg-default",children:p.jsx(wr,{className:"h-4.5 w-4.5",weight:"bold"})}),p.jsxs("span",{className:"flex min-w-0 flex-col",children:[p.jsx(ne,{as:"span",variant:"meta",weight:"semibold",tracking:"tight",children:"Search"}),p.jsx(ne,{as:"span",variant:"label",tone:"secondary",children:"Find a memory"})]})]}),p.jsx("span",{className:"shrink-0 rounded-[8px] bg-muted px-1.5 py-1 text-label font-medium text-fg-tertiary",children:t})]})},eu=()=>p.jsx("div",{className:"p-3",children:p.jsx(Jd,{})}),nt="/api/integration-admin/connections",tu=async()=>(await ae.get(nt)).data.connections,Oh=async e=>(await ae.post(nt,e)).data,kh=async({id:e,...t})=>(await ae.patch(`${nt}/${encodeURIComponent(e)}`,t)).data,Fh=async e=>{await ae.delete(`${nt}/${encodeURIComponent(e)}`)},Hh=async e=>(await ae.post(`${nt}/${encodeURIComponent(e)}/token/rotate`)).data,Bh=async e=>{await ae.post(`${nt}/${encodeURIComponent(e)}/token/revoke`)};function nu(){const{data:e=[]}=cr({queryKey:Xe.integrations.list(),queryFn:tu});return e.filter(t=>t.enabled&&t.pinned&&t.manifest.launch).map(t=>p.jsxs(Et,{to:Un,params:{connectionId:t.id},title:t.manifest.description,className:"flex shrink-0 items-center gap-2 border-l border-border-subtle px-3 py-2 text-sm text-fg-secondary hover:text-fg-default",children:[p.jsx(fc,{className:"size-5"}),p.jsx("span",{children:t.manifest.name})]},t.id))}const ou=[{name:"Search",path:Lt,icon:wr},{name:"Notes",path:sn,icon:Hr},{name:"Views",path:Kn,icon:$s},{name:"Graph",path:mr,icon:Ga},{name:"Calendar",path:gr,icon:uc},{name:"Reminders",path:vr,icon:Zs},{name:"Tags",path:br,icon:zs},{name:"Setting",path:yr,icon:Us}],ru=()=>{const e=ln({select:n=>n.pathname}),t=vs();return p.jsxs("nav",{"aria-label":"Primary navigation",className:"flex items-center gap-1 px-4 py-2.5",children:[ou.map((n,o)=>{const r=e===n.path||n.path!==sn&&e.startsWith(`${n.path}/`),s=n.path===Lt?t:void 0;return p.jsxs(d.Fragment,{children:[o>0&&p.jsx("span",{className:"h-3.5 w-px shrink-0 bg-border-subtle"}),p.jsx(Et,{to:n.path,"aria-keyshortcuts":s?"Meta+K Control+K":void 0,title:s?`${n.name} (${s})`:void 0,children:p.jsxs("div",{className:`flex min-w-26 items-center justify-center gap-2 border-b px-2 py-2 transition-colors ${r?"border-fg-muted text-fg-default":"border-transparent text-fg-secondary hover:border-border-subtle hover:text-fg-default"}`,children:[p.jsx(n.icon,{className:"size-5",weight:r?"fill":"regular"}),p.jsx(ne,{as:"span",variant:"meta",weight:"medium",className:"text-current",children:n.name})]})})]},n.path)}),p.jsx(nu,{})]})},su=({children:e})=>{const t=ec({select:n=>n.some(o=>o.routeId===Un)});return p.jsx($c,{contentMode:t?"app":"page",sidebar:p.jsxs(p.Fragment,{children:[p.jsx(Uc,{}),p.jsx(qd,{}),p.jsx(eu,{}),p.jsx($d,{}),p.jsx(Lc,{})]}),topNavigation:p.jsx(ru,{}),children:e})},bs=100,ys=[50,bs,200];function $h(e){return ys.includes(e)}const Fn=1,au=100,iu=100,cu=256,xs=1e5,lu=50,du=1970,uu=9999,rr=25,Ye=e=>typeof e=="object"&&e!==null&&!Array.isArray(e),uo=e=>e.length>0&&e.length<=cu,hu=e=>typeof e=="number"&&Number.isInteger(e)&&e>1&&e<=xs?e:void 0,fu=e=>typeof e=="number"&&Number.isInteger(e)&&e>1?Math.min(e,lu):void 0,pu=e=>{if(!Ye(e))return;const t=e.by,n=e.order;if(!(t!=="title"&&t!=="createdAt"&&t!=="updatedAt"||n!=="asc"&&n!=="desc"))return{by:t,order:n}},mu=e=>{if(!Ye(e))return;const t=e.year,n=e.month;if(!(typeof t!="number"||!Number.isInteger(t)||t<du||t>uu||typeof n!="number"||!Number.isInteger(n)||n<1||n>12))return{year:t,month:n}},ws=e=>{if(!Ye(e))return;const t=hu(e.page),n=pu(e.sort),o=mu(e.calendar),r=Ye(e.columns)?Object.fromEntries(Object.entries(e.columns).filter(([s])=>uo(s)).slice(0,iu).flatMap(([s,a])=>{const i=fu(a);return i===void 0?[]:[[s,i]]})):{};if(!(t===void 0&&Object.keys(r).length===0&&n===void 0&&o===void 0))return{...t===void 0?{}:{page:t},...Object.keys(r).length===0?{}:{columns:r},...n===void 0?{}:{sort:n},...o===void 0?{}:{calendar:o}}},Hn=e=>{if(!Ye(e)||e.version!==Fn||!Ye(e.sections))return;const t=Object.fromEntries(Object.entries(e.sections).filter(([n])=>uo(n)).slice(0,au).flatMap(([n,o])=>{const r=ws(o);return r===void 0?[]:[[n,r]]}));return Object.keys(t).length===0?void 0:{version:Fn,sections:t}},gu=(e,t)=>e?.sections[t]??{},vu=(e,t,n)=>{if(!uo(t))return Hn(e);const o=Hn(e),r=gu(o,t),s=ws(typeof n=="function"?n(r):n),a=Object.fromEntries(Object.entries({...o?.sections??{},[t]:s}).filter(i=>i[1]!==void 0));return Object.keys(a).length===0?void 0:{version:Fn,sections:a}},bu=(e,t,n)=>{if(!Number.isSafeInteger(t)||t<=1)return;const o=Number.isSafeInteger(n)&&n>0?n:rr,r=Math.min(Number.MAX_SAFE_INTEGER,(t-1)*rr),s=Math.min(xs,Math.floor(r/o)+1);return vu(void 0,e,{page:s})},yu=["updatedAt","createdAt"],xu=["referenceCount","name"],Ss=["asc","desc"],wu=["create","update"],Su=["hybrid","lexical","semantic"],Ru=["open","completed"],Eu=["all","overdue","today","upcoming"],Cu=["all","high","medium","low"],pn=e=>Array.isArray(e)?e[0]:e,Ee=(e,t,{min:n=1,max:o=Number.MAX_SAFE_INTEGER}={})=>{const r=pn(e),s=typeof r=="number"?r:typeof r=="string"?Number(r):Number.NaN;return!Number.isInteger(s)||s<n||s>o?t:s},Rs=(e,t,n)=>{const o=Ee(e,Number.NaN);return t.includes(o)?o:n},_u=(e,t=!1)=>{const n=pn(e);return n===!0||n==="true"?!0:n===!1||n==="false"?!1:t},ot=(e,t="")=>{const n=pn(e);return typeof n=="string"?n:t},Re=(e,t,n)=>{const o=pn(e);return typeof o!="string"?n:t.includes(o)?o:n},Pu=e=>({page:Ee(e.page,1),limit:Rs(e.limit,ur,hr),sortBy:Re(e.sortBy,yu,"updatedAt"),sortOrder:Re(e.sortOrder,Ss,"desc"),pinnedFirst:_u(e.pinnedFirst,!1)}),rt=e=>({page:Ee(e.page,1)}),Au=e=>{const t=Re(e.status,Ru,"open"),n=Re(e.scope,Eu,"all");return{page:Ee(e.page,1),status:t,scope:t==="completed"?"all":n,priority:Re(e.priority,Cu,"all")}},Mu=e=>({page:Ee(e.page,1),query:ot(e.query,""),mode:Re(e.mode,Su,"hybrid")}),Lu=e=>({page:Ee(e.page,1),query:ot(e.query,""),limit:Rs(e.limit,ys,bs),sortBy:Re(e.sortBy,xu,"referenceCount"),sortOrder:Re(e.sortOrder,Ss,"desc")}),Iu=e=>({year:Ee(e.year,xo().year(),{min:1970,max:9999}),month:Ee(e.month,xo().month()+1,{min:1,max:12}),type:Re(e.type,wu,"create")}),Tu=e=>{const t=ot(e.selected,"").trim();return t?{selected:t}:{}},Nu=e=>{const t=ot(e.connection).trim();return t?{connection:t}:{}},Du=e=>{const t=ot(e.tab,"").trim(),n=Hn(e.state);return{...t?{tab:t}:{},...n?{state:n}:{}}},ju=e=>({page:Ee(e.page,1),sectionId:ot(e.sectionId,"")}),Vu=e=>{const{data:t}=fr({queryKey:Xe.notes.list(e.searchParams),async queryFn(){const n=await _a(e.searchParams);if(n.type==="error")throw n;return n.allNotes}});return e.render(t)};function Ou({id:e,title:t,tags:n,pinned:o,updatedAt:r,onPinned:s,onDelete:a}){const i=Pa(Number(r));return p.jsxs("div",{className:ie("surface-base group relative flex h-full flex-col px-4 py-3.5 transition-colors"),children:[o&&p.jsx("div",{className:"absolute left-1/2 top-0 z-[1] -translate-x-1/2 -translate-y-[38%]",children:p.jsxs("div",{className:"inline-flex h-7 w-7 items-center justify-center rounded-full border border-border-secondary/70 bg-elevated text-fg-tertiary shadow-[0_8px_18px_-14px_rgba(23,29,38,0.32)]",children:[p.jsx(Ks,{className:"h-3.5 w-3.5",weight:"fill"}),p.jsx("span",{className:"sr-only",children:"Pinned note"})]})}),p.jsxs("div",{className:"flex h-full flex-col gap-2.5",children:[p.jsxs("div",{className:"flex items-center justify-between gap-2.5",children:[p.jsx("div",{className:"flex min-w-0 flex-wrap items-center gap-x-2.5 gap-y-1",children:p.jsxs(ne,{as:"span",variant:"label",weight:"medium",tone:"secondary",children:["Updated ",i]})}),p.jsx(Aa,{button:p.jsx(Gs,{label:"Note actions",size:"sm"}),items:[{name:o?"Unpin":"Pin",onClick:()=>s?.()},{name:"Delete",onClick:()=>a?.()}]})]}),p.jsxs("div",{className:"flex flex-1 flex-col justify-between gap-2.5",children:[p.jsx(ne,{as:"div",variant:"body",weight:"semibold",tracking:"tight",className:"leading-[1.45]",children:p.jsx(Et,{className:"line-clamp-2 transition-colors hover:text-fg-default/85",to:zn,params:{id:e},children:t||"Untitled"})}),n.length>0&&p.jsx("div",{className:"flex flex-wrap gap-1.5 pt-0.5",children:n.map(l=>p.jsx(Et,{to:xr,params:{id:l.id},search:{page:1},children:p.jsx(ne,{as:"span",variant:"label",weight:"medium",tone:"secondary",className:"inline-flex items-center rounded-full border border-border-subtle bg-transparent px-2 py-0.5 transition-colors hover:bg-hover-subtle hover:text-fg-default",children:l.name})},l.id))})]})]})]},e)}const sr=Ma(sn);function ku(){const e=sr.useNavigate(),{limit:t,page:n,sortBy:o,sortOrder:r,pinnedFirst:s}=sr.useSearch(),{onDelete:a,onPinned:i,deleteWarningDialog:l}=lr(),c=u=>{e({search:h=>({...h,...u})})};return p.jsxs(La,{title:"",variant:"none",children:[p.jsxs("div",{className:"flex flex-col gap-5",children:[p.jsx(_c,{itemsPerPage:t,onItemsPerPageChange:u=>c({limit:u,page:1}),sortBy:o,onSortByChange:u=>c({sortBy:u,page:1}),sortOrder:r,onSortOrderChange:u=>c({sortOrder:u,page:1}),pinnedFirst:s,onPinnedFirstChange:u=>c({pinnedFirst:u,page:1})}),p.jsx(pr,{fallback:p.jsxs("div",{className:"grid-auto-cards grid gap-5",children:[p.jsx(gt,{height:"112px"}),p.jsx(gt,{height:"112px"}),p.jsx(gt,{height:"112px"})]}),errorTitle:"Failed to load notes",errorDescription:"Retry loading the current note list.",resetKeys:[n,t,o,r,s],children:p.jsx(Vu,{searchParams:{offset:(n-1)*t,limit:t,sortBy:o,sortOrder:r,pinnedFirst:s},render:({notes:u,totalCount:h})=>p.jsx(Zo,{fallback:p.jsx(Ta,{title:"Ocean is calm",description:"Capture anything and make waves in the ocean!"}),children:u.length>0&&p.jsxs(p.Fragment,{children:[p.jsx("div",{className:"grid-auto-cards grid gap-5",children:u.map(f=>p.jsx(Ou,{...f,onPinned:()=>i(f.id,f.pinned),onDelete:()=>a(f.id)},f.id))}),p.jsx(Zo,{fallback:null,children:h&&t<h&&p.jsx(Ia,{page:n,last:Math.ceil(h/t),onChange:f=>{c({page:f})}})})]})})})})]}),l]})}const V=Na({component:()=>p.jsx(su,{children:p.jsx(Vr,{})}),errorComponent:ja,notFoundComponent:Da}),Fu=j({getParentRoute:()=>V,path:sn,component:ku,validateSearch:Pu}),Hu=j({getParentRoute:()=>V,path:gr,component:B(()=>H(()=>import("./Calendar-vA4Xa4Qr.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10]))),pendingComponent:()=>p.jsx(z,{title:"Loading calendar",description:"Preparing note and reminder snapshots."}),validateSearch:Iu}),Bu=j({getParentRoute:()=>V,path:Kn,component:B(()=>H(()=>import("./Views-8ghLRax7.js"),__vite__mapDeps([11,1,4,2,3,12,13,14,5,6,15,16,17,9,10]))),pendingComponent:()=>p.jsx(z,{title:"Loading views",description:"Preparing your saved dashboards."}),validateSearch:Du}),$u=j({getParentRoute:()=>V,path:vr,component:B(()=>H(()=>import("./Reminders-Dt2JuGci.js"),__vite__mapDeps([18,1,2,3,4,19,15]))),pendingComponent:()=>p.jsx(z,{title:"Loading reminders",description:"Preparing your reminder workspace."}),validateSearch:Au}),Zu=j({getParentRoute:()=>V,path:mr,component:B(()=>H(()=>import("./Graph-DYYxNAWn.js"),__vite__mapDeps([20,1,2,3,21,22,23,24,25,26,27,10,15,28,29,6,8,30]))),pendingComponent:()=>p.jsx(z,{title:"Loading graph",description:"Preparing the linked note constellation."}),validateSearch:Tu}),zu=j({getParentRoute:()=>V,path:Lt,component:B(()=>H(()=>import("./Search-CPPTW2PO.js"),__vite__mapDeps([31,1,4,2,3,32,10,15,14,33,30,34,9]))),pendingComponent:()=>p.jsx(z,{title:"Loading search",description:"Preparing indexed note results."}),validateSearch:Mu}),Uu=j({getParentRoute:()=>V,path:br,component:B(()=>H(()=>import("./Tag-3DbGmuxa.js"),__vite__mapDeps([35,1,2,3,12,10,4,9]))),pendingComponent:()=>p.jsx(z,{title:"Loading tags",description:"Preparing the tag catalog."}),validateSearch:Lu}),Ku=j({getParentRoute:()=>V,path:zn,component:B(()=>H(()=>import("./Note-FL31jb2U.js"),__vite__mapDeps([36,1,2,3,4,7,8,37,32,30,17,13,19,38,39,40,9,41,42,28,43,12,34]))),pendingComponent:()=>p.jsx(z,{title:"Loading note",description:"Preparing the editor and note content."})}),Gu=j({getParentRoute:()=>V,path:xr,component:B(()=>H(()=>import("./TagNotes-DLwRF8pT.js"),__vite__mapDeps([44,1,2,3,37,4,32,30,17,9,10]))),pendingComponent:()=>p.jsx(z,{title:"Loading tagged notes",description:"Preparing notes for the selected tag."}),validateSearch:rt}),Wu=j({getParentRoute:()=>V,path:ka,validateSearch:ju,beforeLoad:async({search:e})=>{const t=e.sectionId?await Mc(e.sectionId).catch(()=>null):null,n=t?.type==="success"?t.viewSection:null;throw Va({to:Kn,search:{tab:n?.tabId,state:n?bu(n.id,e.page,n.limit):void 0},replace:!0})}}),qu=j({getParentRoute:()=>V,path:yr,component:B(()=>H(()=>import("./index-Iy_BgP1R.js"),__vite__mapDeps([45,1,4,2,3,46,47,48,10,9]))),pendingComponent:()=>p.jsx(z,{title:"Loading settings",description:"Preparing workspace preferences."})}),Xu=j({getParentRoute:()=>V,path:Ba,validateSearch:Nu,component:B(()=>H(()=>import("./integrations-LOdTs1T6.js"),__vite__mapDeps([49,1,4,2,3,15,43,17,9,10])))}),Yu=j({getParentRoute:()=>V,path:Un,component:B(()=>H(()=>import("./Integration-gDDtIJYJ.js"),__vite__mapDeps([50,1,4,2,3,9,10])))}),Qu=j({getParentRoute:()=>V,path:Ha,component:B(()=>H(()=>import("./mcp-d8IzsoRz.js"),__vite__mapDeps([51,1,4,2,3,46,43]))),pendingComponent:()=>p.jsx(z,{title:"Loading MCP settings",description:"Preparing MCP access controls."})}),Ju=j({getParentRoute:()=>V,path:Fa,component:B(()=>H(()=>import("./search-DanMKCC8.js"),__vite__mapDeps([52,1,4,2,3,33,10,16]))),pendingComponent:()=>p.jsx(z,{title:"Loading search settings",description:"Preparing semantic search controls."})}),eh=j({getParentRoute:()=>V,path:$a,component:B(()=>H(()=>import("./trash-Cepvi7G8.js"),__vite__mapDeps([53,1,4,2,3,13,37,32,30,17]))),pendingComponent:()=>p.jsx(z,{title:"Loading trash",description:"Preparing deleted notes for restore."}),validateSearch:rt}),th=j({getParentRoute:()=>V,path:Za,component:B(()=>H(()=>import("./manage-image-DXedfr7U.js"),__vite__mapDeps([54,1,2,3,4,42,55,13,48,9,10]))),pendingComponent:()=>p.jsx(z,{title:"Loading image manager",description:"Preparing uploaded image metadata."}),validateSearch:rt}),nh=j({getParentRoute:()=>V,path:za,component:B(()=>H(()=>import("./manage-image-detail-DmifOPNU.js"),__vite__mapDeps([56,1,2,3,4,42,55,13,37,32,30,17,48,47,9,10]))),pendingComponent:()=>p.jsx(z,{title:"Loading image detail",description:"Preparing references for the selected image."}),validateSearch:rt}),oh=j({getParentRoute:()=>V,path:Ka,component:B(()=>H(()=>import("./properties-BPobx_Qk.js"),__vite__mapDeps([57,1,4,2,3]))),pendingComponent:()=>p.jsx(z,{title:"Loading properties",description:"Preparing shared property definitions."}),validateSearch:rt}),rh=j({getParentRoute:()=>V,path:Ua,component:B(()=>H(()=>import("./placeholder-G6iEBbDy.js"),__vite__mapDeps([58,1,4,2,3,13,29,17,9,10]))),pendingComponent:()=>p.jsx(z,{title:"Loading placeholders",description:"Preparing template replacement rules."}),validateSearch:rt}),sh=V.addChildren([Fu,Bu,Hu,$u,Zu,zu,Uu,Ku,Gu,Wu,qu,Ju,Qu,Xu,Yu,eh,th,nh,rh,oh]),ah=tc({routeTree:sh,defaultPreload:"intent",scrollRestoration:!0,defaultPendingComponent:()=>p.jsx(z,{title:"Loading page",description:"Preparing the next route."})});function ih(){const e=An(n=>n.setSystemTheme),t=An(n=>n.setTheme);return d.useEffect(()=>{const n=_o();return n&&t(n),Xa.listenThemeChange(o=>{_o()||e(o?"dark":"light")},n==null)},[e,t]),p.jsx(Cc,{children:p.jsx(rc,{router:ah})})}const Es="__oceanBrainCsrfRetry";let Pn;const ch=e=>!ae.isAxiosError(e)||e.response?.status!==403?!1:e.response.data?.code==="CSRF_TOKEN_INVALID",Cs=e=>{if(!ch(e)||!ae.isAxiosError(e))return!1;const t=e.config;return!!(t&&!t[Es])},lh=()=>(Pn??=en().finally(()=>{Pn=void 0}),Pn),ar=(e,t)=>{if(!e)return;const n=e;if(typeof n.delete=="function"){n.delete(t);return}delete e[t]},dh=e=>{ar(e.headers,"X-XSRF-TOKEN"),ar(e.headers,"x-xsrf-token")},uh=async e=>{if(!Cs(e)||!ae.isAxiosError(e))return Promise.reject(e);const t=e.config;return t[Es]=!0,await lh()!=="active"?Promise.reject(e):(dh(t),ae.request(t))};let ir;const hh=()=>{ir===void 0&&(ir=ae.interceptors.response.use(e=>e,e=>{if(bc(e))zr();else if(Cs(e))return uh(e);return Promise.reject(e)}))};An.setState({theme:Oa()});hh();en();Ws.createRoot(document.getElementById("root")).render(p.jsx(G.StrictMode,{children:p.jsx(ih,{})}));export{Ld as A,Sh as B,Pt as C,cd as D,vu as E,Zo as F,gd as G,wd as H,gu as I,Mh as J,io as K,_h as L,Nl as M,Ou as N,Ph as O,lo as P,Ah as Q,Ih as R,Rd as S,ys as T,Th as U,Nh as V,Lh as W,Dh as X,bs as a,mc as b,fc as c,zc as d,uc as e,tu as f,pc as g,Bh as h,$h as i,Fh as j,Oh as k,Eh as l,al as m,Uo as n,cl as o,md as p,Ch as q,Hh as r,Hr as s,ud as t,kh as u,hc as v,Rh as w,Nd as x,jh as y,Vh as z};
@@ -1 +1 @@
1
- import{F as ln,G as un,H as M,I,J as H,K as an,L as y,M as tn,N as j,O as _,P as rn,Q as o,R as on,S as sn,T as fn}from"./mermaid.core-C2tL9tq7.js";function cn(l){return l.innerRadius}function yn(l){return l.outerRadius}function gn(l){return l.startAngle}function dn(l){return l.endAngle}function mn(l){return l&&l.padAngle}function pn(l,h,q,O,v,R,J,u){var D=q-l,i=O-h,n=J-v,d=u-R,a=d*D-n*i;if(!(a*a<y))return a=(n*(h-R)-d*(l-v))/a,[l+a*D,h+a*i]}function W(l,h,q,O,v,R,J){var u=l-q,D=h-O,i=(J?R:-R)/j(u*u+D*D),n=i*D,d=-i*u,a=l+n,s=h+d,f=q+n,c=O+d,K=(a+f)/2,t=(s+c)/2,m=f-a,g=c-s,A=m*m+g*g,T=v-R,P=a*c-f*s,E=(g<0?-1:1)*j(on(0,T*T*A-P*P)),F=(P*g-m*E)/A,G=(-P*m-g*E)/A,w=(P*g+m*E)/A,p=(-P*m+g*E)/A,x=F-K,e=G-t,r=w-K,L=p-t;return x*x+e*e>r*r+L*L&&(F=w,G=p),{cx:F,cy:G,x01:-n,y01:-d,x11:F*(v/T-1),y11:G*(v/T-1)}}function hn(){var l=cn,h=yn,q=H(0),O=null,v=gn,R=dn,J=mn,u=null,D=ln(i);function i(){var n,d,a=+l.apply(this,arguments),s=+h.apply(this,arguments),f=v.apply(this,arguments)-an,c=R.apply(this,arguments)-an,K=rn(c-f),t=c>f;if(u||(u=n=D()),s<a&&(d=s,s=a,a=d),!(s>y))u.moveTo(0,0);else if(K>tn-y)u.moveTo(s*M(f),s*I(f)),u.arc(0,0,s,f,c,!t),a>y&&(u.moveTo(a*M(c),a*I(c)),u.arc(0,0,a,c,f,t));else{var m=f,g=c,A=f,T=c,P=K,E=K,F=J.apply(this,arguments)/2,G=F>y&&(O?+O.apply(this,arguments):j(a*a+s*s)),w=_(rn(s-a)/2,+q.apply(this,arguments)),p=w,x=w,e,r;if(G>y){var L=sn(G/a*I(F)),z=sn(G/s*I(F));(P-=L*2)>y?(L*=t?1:-1,A+=L,T-=L):(P=0,A=T=(f+c)/2),(E-=z*2)>y?(z*=t?1:-1,m+=z,g-=z):(E=0,m=g=(f+c)/2)}var N=s*M(m),Q=s*I(m),B=a*M(T),C=a*I(T);if(w>y){var U=s*M(g),V=s*I(g),X=a*M(A),Y=a*I(A),S;if(K<un)if(S=pn(N,Q,X,Y,U,V,B,C)){var Z=N-S[0],$=Q-S[1],k=U-S[0],b=V-S[1],nn=1/I(fn((Z*k+$*b)/(j(Z*Z+$*$)*j(k*k+b*b)))/2),en=j(S[0]*S[0]+S[1]*S[1]);p=_(w,(a-en)/(nn-1)),x=_(w,(s-en)/(nn+1))}else p=x=0}E>y?x>y?(e=W(X,Y,N,Q,s,x,t),r=W(U,V,B,C,s,x,t),u.moveTo(e.cx+e.x01,e.cy+e.y01),x<w?u.arc(e.cx,e.cy,x,o(e.y01,e.x01),o(r.y01,r.x01),!t):(u.arc(e.cx,e.cy,x,o(e.y01,e.x01),o(e.y11,e.x11),!t),u.arc(0,0,s,o(e.cy+e.y11,e.cx+e.x11),o(r.cy+r.y11,r.cx+r.x11),!t),u.arc(r.cx,r.cy,x,o(r.y11,r.x11),o(r.y01,r.x01),!t))):(u.moveTo(N,Q),u.arc(0,0,s,m,g,!t)):u.moveTo(N,Q),!(a>y)||!(P>y)?u.lineTo(B,C):p>y?(e=W(B,C,U,V,a,-p,t),r=W(N,Q,X,Y,a,-p,t),u.lineTo(e.cx+e.x01,e.cy+e.y01),p<w?u.arc(e.cx,e.cy,p,o(e.y01,e.x01),o(r.y01,r.x01),!t):(u.arc(e.cx,e.cy,p,o(e.y01,e.x01),o(e.y11,e.x11),!t),u.arc(0,0,a,o(e.cy+e.y11,e.cx+e.x11),o(r.cy+r.y11,r.cx+r.x11),t),u.arc(r.cx,r.cy,p,o(r.y11,r.x11),o(r.y01,r.x01),!t))):u.arc(0,0,a,T,A,t)}if(u.closePath(),n)return u=null,n+""||null}return i.centroid=function(){var n=(+l.apply(this,arguments)+ +h.apply(this,arguments))/2,d=(+v.apply(this,arguments)+ +R.apply(this,arguments))/2-un/2;return[M(d)*n,I(d)*n]},i.innerRadius=function(n){return arguments.length?(l=typeof n=="function"?n:H(+n),i):l},i.outerRadius=function(n){return arguments.length?(h=typeof n=="function"?n:H(+n),i):h},i.cornerRadius=function(n){return arguments.length?(q=typeof n=="function"?n:H(+n),i):q},i.padRadius=function(n){return arguments.length?(O=n==null?null:typeof n=="function"?n:H(+n),i):O},i.startAngle=function(n){return arguments.length?(v=typeof n=="function"?n:H(+n),i):v},i.endAngle=function(n){return arguments.length?(R=typeof n=="function"?n:H(+n),i):R},i.padAngle=function(n){return arguments.length?(J=typeof n=="function"?n:H(+n),i):J},i.context=function(n){return arguments.length?(u=n??null,i):u},i}export{hn as d};
1
+ import{F as ln,G as un,H as M,I,J as H,K as an,L as y,M as tn,N as j,O as _,P as rn,Q as o,R as on,S as sn,T as fn}from"./mermaid.core-BfUQM5vF.js";function cn(l){return l.innerRadius}function yn(l){return l.outerRadius}function gn(l){return l.startAngle}function dn(l){return l.endAngle}function mn(l){return l&&l.padAngle}function pn(l,h,q,O,v,R,J,u){var D=q-l,i=O-h,n=J-v,d=u-R,a=d*D-n*i;if(!(a*a<y))return a=(n*(h-R)-d*(l-v))/a,[l+a*D,h+a*i]}function W(l,h,q,O,v,R,J){var u=l-q,D=h-O,i=(J?R:-R)/j(u*u+D*D),n=i*D,d=-i*u,a=l+n,s=h+d,f=q+n,c=O+d,K=(a+f)/2,t=(s+c)/2,m=f-a,g=c-s,A=m*m+g*g,T=v-R,P=a*c-f*s,E=(g<0?-1:1)*j(on(0,T*T*A-P*P)),F=(P*g-m*E)/A,G=(-P*m-g*E)/A,w=(P*g+m*E)/A,p=(-P*m+g*E)/A,x=F-K,e=G-t,r=w-K,L=p-t;return x*x+e*e>r*r+L*L&&(F=w,G=p),{cx:F,cy:G,x01:-n,y01:-d,x11:F*(v/T-1),y11:G*(v/T-1)}}function hn(){var l=cn,h=yn,q=H(0),O=null,v=gn,R=dn,J=mn,u=null,D=ln(i);function i(){var n,d,a=+l.apply(this,arguments),s=+h.apply(this,arguments),f=v.apply(this,arguments)-an,c=R.apply(this,arguments)-an,K=rn(c-f),t=c>f;if(u||(u=n=D()),s<a&&(d=s,s=a,a=d),!(s>y))u.moveTo(0,0);else if(K>tn-y)u.moveTo(s*M(f),s*I(f)),u.arc(0,0,s,f,c,!t),a>y&&(u.moveTo(a*M(c),a*I(c)),u.arc(0,0,a,c,f,t));else{var m=f,g=c,A=f,T=c,P=K,E=K,F=J.apply(this,arguments)/2,G=F>y&&(O?+O.apply(this,arguments):j(a*a+s*s)),w=_(rn(s-a)/2,+q.apply(this,arguments)),p=w,x=w,e,r;if(G>y){var L=sn(G/a*I(F)),z=sn(G/s*I(F));(P-=L*2)>y?(L*=t?1:-1,A+=L,T-=L):(P=0,A=T=(f+c)/2),(E-=z*2)>y?(z*=t?1:-1,m+=z,g-=z):(E=0,m=g=(f+c)/2)}var N=s*M(m),Q=s*I(m),B=a*M(T),C=a*I(T);if(w>y){var U=s*M(g),V=s*I(g),X=a*M(A),Y=a*I(A),S;if(K<un)if(S=pn(N,Q,X,Y,U,V,B,C)){var Z=N-S[0],$=Q-S[1],k=U-S[0],b=V-S[1],nn=1/I(fn((Z*k+$*b)/(j(Z*Z+$*$)*j(k*k+b*b)))/2),en=j(S[0]*S[0]+S[1]*S[1]);p=_(w,(a-en)/(nn-1)),x=_(w,(s-en)/(nn+1))}else p=x=0}E>y?x>y?(e=W(X,Y,N,Q,s,x,t),r=W(U,V,B,C,s,x,t),u.moveTo(e.cx+e.x01,e.cy+e.y01),x<w?u.arc(e.cx,e.cy,x,o(e.y01,e.x01),o(r.y01,r.x01),!t):(u.arc(e.cx,e.cy,x,o(e.y01,e.x01),o(e.y11,e.x11),!t),u.arc(0,0,s,o(e.cy+e.y11,e.cx+e.x11),o(r.cy+r.y11,r.cx+r.x11),!t),u.arc(r.cx,r.cy,x,o(r.y11,r.x11),o(r.y01,r.x01),!t))):(u.moveTo(N,Q),u.arc(0,0,s,m,g,!t)):u.moveTo(N,Q),!(a>y)||!(P>y)?u.lineTo(B,C):p>y?(e=W(B,C,U,V,a,-p,t),r=W(N,Q,X,Y,a,-p,t),u.lineTo(e.cx+e.x01,e.cy+e.y01),p<w?u.arc(e.cx,e.cy,p,o(e.y01,e.x01),o(r.y01,r.x01),!t):(u.arc(e.cx,e.cy,p,o(e.y01,e.x01),o(e.y11,e.x11),!t),u.arc(0,0,a,o(e.cy+e.y11,e.cx+e.x11),o(r.cy+r.y11,r.cx+r.x11),t),u.arc(r.cx,r.cy,p,o(r.y11,r.x11),o(r.y01,r.x01),!t))):u.arc(0,0,a,T,A,t)}if(u.closePath(),n)return u=null,n+""||null}return i.centroid=function(){var n=(+l.apply(this,arguments)+ +h.apply(this,arguments))/2,d=(+v.apply(this,arguments)+ +R.apply(this,arguments))/2-un/2;return[M(d)*n,I(d)*n]},i.innerRadius=function(n){return arguments.length?(l=typeof n=="function"?n:H(+n),i):l},i.outerRadius=function(n){return arguments.length?(h=typeof n=="function"?n:H(+n),i):h},i.cornerRadius=function(n){return arguments.length?(q=typeof n=="function"?n:H(+n),i):q},i.padRadius=function(n){return arguments.length?(O=n==null?null:typeof n=="function"?n:H(+n),i):O},i.startAngle=function(n){return arguments.length?(v=typeof n=="function"?n:H(+n),i):v},i.endAngle=function(n){return arguments.length?(R=typeof n=="function"?n:H(+n),i):R},i.padAngle=function(n){return arguments.length?(J=typeof n=="function"?n:H(+n),i):J},i.context=function(n){return arguments.length?(u=n??null,i):u},i}export{hn as d};