@rudderhq/server 0.3.5-canary.2 → 0.3.5-canary.21

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 (189) hide show
  1. package/dist/agent-runtimes/codex-models.d.ts.map +1 -1
  2. package/dist/agent-runtimes/codex-models.js +2 -92
  3. package/dist/agent-runtimes/codex-models.js.map +1 -1
  4. package/dist/agent-runtimes/registry.d.ts.map +1 -1
  5. package/dist/agent-runtimes/registry.js +17 -2
  6. package/dist/agent-runtimes/registry.js.map +1 -1
  7. package/dist/bundled-plugins/plugin-linear/dist/worker.js +20 -1
  8. package/dist/bundled-plugins/plugin-linear/dist/worker.js.map +2 -2
  9. package/dist/index.d.ts.map +1 -1
  10. package/dist/index.js +26 -0
  11. package/dist/index.js.map +1 -1
  12. package/dist/routes/activity.d.ts.map +1 -1
  13. package/dist/routes/activity.js +86 -0
  14. package/dist/routes/activity.js.map +1 -1
  15. package/dist/routes/agents.d.ts.map +1 -1
  16. package/dist/routes/agents.js +9 -3
  17. package/dist/routes/agents.js.map +1 -1
  18. package/dist/routes/agents.management-routes.d.ts.map +1 -1
  19. package/dist/routes/agents.management-routes.js +17 -3
  20. package/dist/routes/agents.management-routes.js.map +1 -1
  21. package/dist/routes/chats.d.ts.map +1 -1
  22. package/dist/routes/chats.js +238 -5
  23. package/dist/routes/chats.js.map +1 -1
  24. package/dist/routes/chats.stream-routes.d.ts.map +1 -1
  25. package/dist/routes/chats.stream-routes.js +38 -7
  26. package/dist/routes/chats.stream-routes.js.map +1 -1
  27. package/dist/routes/issues.comments-attachments.d.ts.map +1 -1
  28. package/dist/routes/issues.comments-attachments.js +24 -8
  29. package/dist/routes/issues.comments-attachments.js.map +1 -1
  30. package/dist/routes/messenger.d.ts.map +1 -1
  31. package/dist/routes/messenger.js +49 -1
  32. package/dist/routes/messenger.js.map +1 -1
  33. package/dist/routes/orgs.d.ts.map +1 -1
  34. package/dist/routes/orgs.js +65 -2
  35. package/dist/routes/orgs.js.map +1 -1
  36. package/dist/services/activity.d.ts +37 -0
  37. package/dist/services/activity.d.ts.map +1 -1
  38. package/dist/services/activity.js +619 -27
  39. package/dist/services/activity.js.map +1 -1
  40. package/dist/services/agent-run-context.d.ts.map +1 -1
  41. package/dist/services/agent-run-context.js +100 -9
  42. package/dist/services/agent-run-context.js.map +1 -1
  43. package/dist/services/agents.d.ts +48 -13
  44. package/dist/services/agents.d.ts.map +1 -1
  45. package/dist/services/automation-chat-output.d.ts +1 -0
  46. package/dist/services/automation-chat-output.d.ts.map +1 -1
  47. package/dist/services/automations.d.ts.map +1 -1
  48. package/dist/services/automations.js +35 -5
  49. package/dist/services/automations.js.map +1 -1
  50. package/dist/services/board-auth.d.ts +2 -2
  51. package/dist/services/chat-agent-runs.d.ts +65 -0
  52. package/dist/services/chat-agent-runs.d.ts.map +1 -0
  53. package/dist/services/chat-agent-runs.js +267 -0
  54. package/dist/services/chat-agent-runs.js.map +1 -0
  55. package/dist/services/chat-assistant.d.ts.map +1 -1
  56. package/dist/services/chat-assistant.helpers.d.ts +12 -0
  57. package/dist/services/chat-assistant.helpers.d.ts.map +1 -1
  58. package/dist/services/chat-assistant.helpers.js +23 -1
  59. package/dist/services/chat-assistant.helpers.js.map +1 -1
  60. package/dist/services/chat-assistant.js +312 -177
  61. package/dist/services/chat-assistant.js.map +1 -1
  62. package/dist/services/chats.d.ts +89 -1
  63. package/dist/services/chats.d.ts.map +1 -1
  64. package/dist/services/chats.js +29 -17
  65. package/dist/services/chats.js.map +1 -1
  66. package/dist/services/issues.comments-attachments.d.ts +1 -0
  67. package/dist/services/issues.comments-attachments.d.ts.map +1 -1
  68. package/dist/services/issues.comments-attachments.js +25 -1
  69. package/dist/services/issues.comments-attachments.js.map +1 -1
  70. package/dist/services/issues.d.ts +1 -0
  71. package/dist/services/issues.d.ts.map +1 -1
  72. package/dist/services/knowledge-portability/organization-skills.catalog.d.ts +1 -0
  73. package/dist/services/knowledge-portability/organization-skills.catalog.d.ts.map +1 -1
  74. package/dist/services/knowledge-portability/organization-skills.catalog.js +18 -0
  75. package/dist/services/knowledge-portability/organization-skills.catalog.js.map +1 -1
  76. package/dist/services/knowledge-portability/organization-skills.d.ts.map +1 -1
  77. package/dist/services/knowledge-portability/organization-skills.js +2 -9
  78. package/dist/services/knowledge-portability/organization-skills.js.map +1 -1
  79. package/dist/services/messenger.d.ts +56 -2
  80. package/dist/services/messenger.d.ts.map +1 -1
  81. package/dist/services/messenger.js +218 -3
  82. package/dist/services/messenger.js.map +1 -1
  83. package/dist/services/organization-intelligence-profiles.js +3 -3
  84. package/dist/services/organization-intelligence-profiles.js.map +1 -1
  85. package/dist/services/organization-skills.d.ts +1 -1
  86. package/dist/services/organization-skills.d.ts.map +1 -1
  87. package/dist/services/organization-skills.js +1 -1
  88. package/dist/services/organization-skills.js.map +1 -1
  89. package/dist/services/run-intelligence.d.ts.map +1 -1
  90. package/dist/services/run-intelligence.js +6 -2
  91. package/dist/services/run-intelligence.js.map +1 -1
  92. package/dist/services/runtime-kernel/heartbeat.core.d.ts +17 -0
  93. package/dist/services/runtime-kernel/heartbeat.core.d.ts.map +1 -1
  94. package/dist/services/runtime-kernel/heartbeat.core.js +1 -0
  95. package/dist/services/runtime-kernel/heartbeat.core.js.map +1 -1
  96. package/dist/services/runtime-kernel/heartbeat.d.ts +8 -1
  97. package/dist/services/runtime-kernel/heartbeat.d.ts.map +1 -1
  98. package/dist/services/runtime-kernel/heartbeat.js +13 -7
  99. package/dist/services/runtime-kernel/heartbeat.js.map +1 -1
  100. package/dist/services/runtime-kernel/heartbeat.recovery.d.ts.map +1 -1
  101. package/dist/services/runtime-kernel/heartbeat.recovery.js +2 -0
  102. package/dist/services/runtime-kernel/heartbeat.recovery.js.map +1 -1
  103. package/dist/services/workspace-runtime.services.d.ts +1 -1
  104. package/package.json +13 -13
  105. package/resources/bundled-skills/rudder/SKILL.md +29 -32
  106. package/resources/bundled-skills/rudder/references/api-reference.md +12 -2
  107. package/resources/bundled-skills/rudder/references/cli-reference.md +13 -2
  108. package/skills/rudder/SKILL.md +29 -32
  109. package/skills/rudder/references/api-reference.md +12 -2
  110. package/skills/rudder/references/cli-reference.md +13 -2
  111. package/ui-dist/assets/{_basePickBy-pCn65kUg.js → _basePickBy-DQRD3jbd.js} +1 -1
  112. package/ui-dist/assets/{_baseUniq-D_Y907uk.js → _baseUniq-ChSV83Tl.js} +1 -1
  113. package/ui-dist/assets/{arc-D1FOXYxM.js → arc-BCwqsots.js} +1 -1
  114. package/ui-dist/assets/{architectureDiagram-2XIMDMQ5-BqM99oWe.js → architectureDiagram-2XIMDMQ5-D59Qu6r3.js} +1 -1
  115. package/ui-dist/assets/{blockDiagram-WCTKOSBZ-B31x8PiB.js → blockDiagram-WCTKOSBZ-BLJNQhjF.js} +1 -1
  116. package/ui-dist/assets/{c4Diagram-IC4MRINW-BXxWTBO0.js → c4Diagram-IC4MRINW-CK3IxauE.js} +1 -1
  117. package/ui-dist/assets/channel-D0Hj27Hq.js +1 -0
  118. package/ui-dist/assets/{chunk-4BX2VUAB-A-mJSYhX.js → chunk-4BX2VUAB-By54H8_d.js} +1 -1
  119. package/ui-dist/assets/{chunk-55IACEB6-C_xHp5sT.js → chunk-55IACEB6-Ct4oxREP.js} +1 -1
  120. package/ui-dist/assets/{chunk-FMBD7UC4-hzewwsYy.js → chunk-FMBD7UC4-Bo5QQDeN.js} +1 -1
  121. package/ui-dist/assets/{chunk-JSJVCQXG-BOEtQsnL.js → chunk-JSJVCQXG-DRWD6spx.js} +1 -1
  122. package/ui-dist/assets/{chunk-KX2RTZJC-CoIlm_Hx.js → chunk-KX2RTZJC-CduFLzMt.js} +1 -1
  123. package/ui-dist/assets/{chunk-NQ4KR5QH-DmGxBmwd.js → chunk-NQ4KR5QH-Deady69Q.js} +1 -1
  124. package/ui-dist/assets/{chunk-QZHKN3VN-2Yp7ffIW.js → chunk-QZHKN3VN-CBCxkdH6.js} +1 -1
  125. package/ui-dist/assets/{chunk-WL4C6EOR-S0etjqNL.js → chunk-WL4C6EOR-isrINTKV.js} +1 -1
  126. package/ui-dist/assets/classDiagram-VBA2DB6C-Dtwo6gbt.js +1 -0
  127. package/ui-dist/assets/classDiagram-v2-RAHNMMFH-Dtwo6gbt.js +1 -0
  128. package/ui-dist/assets/clone-kRqsxkGl.js +1 -0
  129. package/ui-dist/assets/{cose-bilkent-S5V4N54A-Db8NTY-v.js → cose-bilkent-S5V4N54A-DEqI6MB2.js} +1 -1
  130. package/ui-dist/assets/{dagre-KLK3FWXG-KnB-W-rz.js → dagre-KLK3FWXG-htMxe3b1.js} +1 -1
  131. package/ui-dist/assets/{diagram-E7M64L7V-DZKhPUtZ.js → diagram-E7M64L7V-FoZTYbSd.js} +1 -1
  132. package/ui-dist/assets/{diagram-IFDJBPK2-N9A6mG2G.js → diagram-IFDJBPK2-Ba9PRO_-.js} +1 -1
  133. package/ui-dist/assets/{diagram-P4PSJMXO-O9bD_Xdl.js → diagram-P4PSJMXO-CtCxaSco.js} +1 -1
  134. package/ui-dist/assets/{erDiagram-INFDFZHY-DDZjMLSL.js → erDiagram-INFDFZHY-CSvCOhU9.js} +1 -1
  135. package/ui-dist/assets/{flowDiagram-PKNHOUZH-XvyruncW.js → flowDiagram-PKNHOUZH-BJ8wlqYl.js} +1 -1
  136. package/ui-dist/assets/{ganttDiagram-A5KZAMGK-DyyT5dog.js → ganttDiagram-A5KZAMGK-CZnnlHd9.js} +1 -1
  137. package/ui-dist/assets/{gitGraphDiagram-K3NZZRJ6-gADHznug.js → gitGraphDiagram-K3NZZRJ6-G9KG4OCz.js} +1 -1
  138. package/ui-dist/assets/{graph-7vIigZeu.js → graph-CmEOZML6.js} +1 -1
  139. package/ui-dist/assets/{index-D5KlAqB7.js → index-0jU9C9J5.js} +1 -1
  140. package/ui-dist/assets/{index-ClVYEFCG.js → index-2k06YsZ0.js} +1 -1
  141. package/ui-dist/assets/{index-DTSMhh6G.js → index-B1-HLXQ1.js} +1 -1
  142. package/ui-dist/assets/{index-9UhHaawM.js → index-B4drPtcc.js} +1 -1
  143. package/ui-dist/assets/{index-CyGieKZt.js → index-B76BV2-o.js} +1 -1
  144. package/ui-dist/assets/{index-CwtC_TfQ.js → index-BA75uuCE.js} +1 -1
  145. package/ui-dist/assets/{index-CDS-GPuQ.js → index-BJNHDHzx.js} +1 -1
  146. package/ui-dist/assets/{index-BNrlKXIp.js → index-Bf1iZPV6.js} +1 -1
  147. package/ui-dist/assets/{index-BCFtYRTF.js → index-BuyUdFsk.js} +1 -1
  148. package/ui-dist/assets/{index-CPbseJy6.js → index-Bz9EamK2.js} +1 -1
  149. package/ui-dist/assets/{index-CzAI6rBQ.js → index-CGE3v4f8.js} +1 -1
  150. package/ui-dist/assets/{index-DOFyevXp.js → index-CKQRI15h.js} +1 -1
  151. package/ui-dist/assets/{index-CaT6akeq.js → index-ChZln_1i.js} +1 -1
  152. package/ui-dist/assets/{index-CLcM1MHz.js → index-CmbpxZxI.js} +1 -1
  153. package/ui-dist/assets/{index-lPwz_ooR.js → index-CxjiCZ6r.js} +1 -1
  154. package/ui-dist/assets/{index-Cdg8kabT.js → index-D9SubOrM.js} +1 -1
  155. package/ui-dist/assets/{index-C5eIQEdO.js → index-D9cJ_mwP.js} +1 -1
  156. package/ui-dist/assets/{index-4KVTXANB.js → index-Dfu3lMcj.js} +1 -1
  157. package/ui-dist/assets/{index-D5JBYAir.js → index-DrRZfTTF.js} +1 -1
  158. package/ui-dist/assets/{index-DVz1zQD4.js → index-KkfX5W81.js} +1 -1
  159. package/ui-dist/assets/index-NnBHP7m8.js +1750 -0
  160. package/ui-dist/assets/{index-nWNmZVtb.js → index-OW_vF7mc.js} +1 -1
  161. package/ui-dist/assets/index-XCEW55-_.css +1 -0
  162. package/ui-dist/assets/{index-CATFiL_5.js → index-n3HgsyPM.js} +1 -1
  163. package/ui-dist/assets/{infoDiagram-LFFYTUFH-DZSE3bR9.js → infoDiagram-LFFYTUFH-CULxi1Pi.js} +1 -1
  164. package/ui-dist/assets/{ishikawaDiagram-PHBUUO56-IImK5aQu.js → ishikawaDiagram-PHBUUO56-De4H5SvP.js} +1 -1
  165. package/ui-dist/assets/{journeyDiagram-4ABVD52K-acBx1Vxv.js → journeyDiagram-4ABVD52K-aQURd3zC.js} +1 -1
  166. package/ui-dist/assets/{kanban-definition-K7BYSVSG-CTFjpqbi.js → kanban-definition-K7BYSVSG-sxdgA8Mj.js} +1 -1
  167. package/ui-dist/assets/{layout-C82SEtWJ.js → layout-B0y-hpF1.js} +1 -1
  168. package/ui-dist/assets/{linear-CRoau0uq.js → linear-CcF3oPj1.js} +1 -1
  169. package/ui-dist/assets/{mermaid.core-Ci5CSmlH.js → mermaid.core-Ca_slkna.js} +4 -4
  170. package/ui-dist/assets/{mindmap-definition-YRQLILUH-J7GvZpev.js → mindmap-definition-YRQLILUH-bqiHlPwE.js} +1 -1
  171. package/ui-dist/assets/{pieDiagram-SKSYHLDU-vNggbv_2.js → pieDiagram-SKSYHLDU-1aKBqhWX.js} +1 -1
  172. package/ui-dist/assets/{quadrantDiagram-337W2JSQ-Dw7kvy6Y.js → quadrantDiagram-337W2JSQ-Bca_TP9m.js} +1 -1
  173. package/ui-dist/assets/{requirementDiagram-Z7DCOOCP-BvSEyElm.js → requirementDiagram-Z7DCOOCP-Co_pbTj0.js} +1 -1
  174. package/ui-dist/assets/{sankeyDiagram-WA2Y5GQK-DwCLD2LN.js → sankeyDiagram-WA2Y5GQK-FNWr9Qgb.js} +1 -1
  175. package/ui-dist/assets/{sequenceDiagram-2WXFIKYE-D_s9lUAn.js → sequenceDiagram-2WXFIKYE-Dy0_t8KK.js} +1 -1
  176. package/ui-dist/assets/{stateDiagram-RAJIS63D-B0jPEqLW.js → stateDiagram-RAJIS63D-DJWDtTEw.js} +1 -1
  177. package/ui-dist/assets/stateDiagram-v2-FVOUBMTO-BzIR1BG8.js +1 -0
  178. package/ui-dist/assets/{timeline-definition-YZTLITO2-DdDstc8N.js → timeline-definition-YZTLITO2-BG2EEfkn.js} +1 -1
  179. package/ui-dist/assets/{treemap-KZPCXAKY-CYbOkWQq.js → treemap-KZPCXAKY-memeaR_f.js} +1 -1
  180. package/ui-dist/assets/{vennDiagram-LZ73GAT5-uxQlceJ0.js → vennDiagram-LZ73GAT5-CJ_ThALk.js} +1 -1
  181. package/ui-dist/assets/{xychartDiagram-JWTSCODW-DbYD2ThH.js → xychartDiagram-JWTSCODW-BxKpwCJ-.js} +1 -1
  182. package/ui-dist/index.html +2 -2
  183. package/ui-dist/assets/channel-CEHUUFG8.js +0 -1
  184. package/ui-dist/assets/classDiagram-VBA2DB6C-Bb_snefw.js +0 -1
  185. package/ui-dist/assets/classDiagram-v2-RAHNMMFH-Bb_snefw.js +0 -1
  186. package/ui-dist/assets/clone-B2KToI8w.js +0 -1
  187. package/ui-dist/assets/index-BMr_32cW.css +0 -1
  188. package/ui-dist/assets/index-CgZIlV_x.js +0 -1732
  189. package/ui-dist/assets/stateDiagram-v2-FVOUBMTO-CdSwOHOx.js +0 -1
@@ -115,8 +115,8 @@ export declare function listWorkspaceRuntimeServicesForProjectWorkspaces(db: Db,
115
115
  healthStatus: string;
116
116
  command: string | null;
117
117
  port: number | null;
118
- lastUsedAt: Date;
119
118
  providerRef: string | null;
119
+ lastUsedAt: Date;
120
120
  serviceName: string;
121
121
  lifecycle: string;
122
122
  reuseKey: string | null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rudderhq/server",
3
- "version": "0.3.5-canary.2",
3
+ "version": "0.3.5-canary.21",
4
4
  "license": "SEE LICENSE IN LICENSE",
5
5
  "homepage": "https://github.com/Undertone0809/rudder",
6
6
  "bugs": {
@@ -53,18 +53,18 @@
53
53
  "@langfuse/otel": "^5.1.0",
54
54
  "@langfuse/tracing": "^5.1.0",
55
55
  "@opentelemetry/sdk-trace-node": "^2.1.0",
56
- "@rudderhq/agent-runtime-claude-local": "0.3.5-canary.2",
57
- "@rudderhq/agent-runtime-codex-local": "0.3.5-canary.2",
58
- "@rudderhq/agent-runtime-cursor-local": "0.3.5-canary.2",
59
- "@rudderhq/agent-runtime-gemini-local": "0.3.5-canary.2",
60
- "@rudderhq/agent-runtime-openclaw-gateway": "0.3.5-canary.2",
61
- "@rudderhq/agent-runtime-opencode-local": "0.3.5-canary.2",
62
- "@rudderhq/agent-runtime-pi-local": "0.3.5-canary.2",
63
- "@rudderhq/agent-runtime-utils": "0.3.5-canary.2",
64
- "@rudderhq/db": "0.3.5-canary.2",
65
- "@rudderhq/plugin-sdk": "0.3.5-canary.2",
66
- "@rudderhq/run-intelligence-core": "0.3.5-canary.2",
67
- "@rudderhq/shared": "0.3.5-canary.2",
56
+ "@rudderhq/agent-runtime-claude-local": "0.3.5-canary.21",
57
+ "@rudderhq/agent-runtime-codex-local": "0.3.5-canary.21",
58
+ "@rudderhq/agent-runtime-cursor-local": "0.3.5-canary.21",
59
+ "@rudderhq/agent-runtime-gemini-local": "0.3.5-canary.21",
60
+ "@rudderhq/agent-runtime-openclaw-gateway": "0.3.5-canary.21",
61
+ "@rudderhq/agent-runtime-opencode-local": "0.3.5-canary.21",
62
+ "@rudderhq/agent-runtime-pi-local": "0.3.5-canary.21",
63
+ "@rudderhq/agent-runtime-utils": "0.3.5-canary.21",
64
+ "@rudderhq/db": "0.3.5-canary.21",
65
+ "@rudderhq/plugin-sdk": "0.3.5-canary.21",
66
+ "@rudderhq/run-intelligence-core": "0.3.5-canary.21",
67
+ "@rudderhq/shared": "0.3.5-canary.21",
68
68
  "ajv": "^8.18.0",
69
69
  "ajv-formats": "^3.0.1",
70
70
  "better-auth": "1.4.18",
@@ -37,6 +37,10 @@ organization-skill operations.
37
37
  Use `[Agent Name](agent://agent-id)` for reference-only links, and do not rely
38
38
  on plain text agent names as wake requests.
39
39
  - Self-assign only when the wake comment explicitly transfers ownership.
40
+ - If a comment wakes you on an issue not assigned to you, including user-owned
41
+ or unassigned issues, and the comment does not explicitly ask you to
42
+ implement, modify files, close the issue, or take ownership, respond to the
43
+ comment's actual content instead of broadening the wake into issue execution.
40
44
  - Always communicate before exit on active work, except blocked issues with no new context.
41
45
  - Treat `issue_passive_followup` as close-out governance, not a fresh assignment.
42
46
  - Treat `issue_review_closeout_missing` as review close-out governance.
@@ -48,7 +52,7 @@ organization-skill operations.
48
52
  - Use `chainOfCommand` for escalation.
49
53
  - Above 80% spend, focus on critical work only.
50
54
  - Use `rudder-create-agent` for hiring or new-agent creation workflows.
51
- - If you make a git commit you MUST add `Co-Authored-By: Rudder <noreply@github.com/Undertone0809/rudder>` to the end of each commit message.
55
+ - If you make a git commit you MUST add `Co-Authored-By: Rudder <285064165+Rudderhq@users.noreply.github.com>` to the end of each commit message.
52
56
  - Git commits must use an explicit safe identity. Rudder prepares isolated Codex homes and runtime worktrees with `user.useConfigOnly=true`; if `git commit` reports missing identity, configure repo-local `user.name` and `user.email` instead of bypassing the guard. Never accept `*@*.local` author or committer metadata.
53
57
 
54
58
  ## Essential Commands
@@ -73,6 +77,7 @@ rudder issue review "<issue-id-or-identifier>" --decision request_changes --comm
73
77
  rudder issue review "<issue-id-or-identifier>" --decision needs_followup --comment-file "<path>" --json
74
78
  rudder issue review "<issue-id-or-identifier>" --decision blocked --comment-file "<path>" --json
75
79
  rudder issue create --org-id "$RUDDER_ORG_ID" ... --json
80
+ rudder user activity --user me --since today --json
76
81
  ```
77
82
 
78
83
  Issue comment and close-out commands accept comment bodies only from files or
@@ -86,33 +91,22 @@ should include local screenshots or images. Do not leave only a local `/tmp/...`
86
91
  or workspace image path in the comment, because board users may not be able to
87
92
  inspect it from Rudder.
88
93
 
89
- ## Self-Improvement And Workflow Updates
90
-
91
- When an operator asks you to improve, optimize, or remember a workflow, treat
92
- that as a request to update the durable operating surface that will affect the
93
- next run. Do not stop at advice if the relevant surface is available and you
94
- have authority to change it.
95
-
96
- Use the smallest governed surface that matches the request:
97
-
98
- - Automation behavior: inspect the current chat or automation, then use
99
- `rudder automation list`, `rudder automation get`, and
100
- `rudder automation update` as needed.
101
- - Skill behavior: inspect real run evidence with
102
- `rudder runs by-skill <skill> --org-id "$RUDDER_ORG_ID"` or
103
- `rudder runs list --used-skill <skill> --org-id "$RUDDER_ORG_ID"`, then read
104
- the relevant `rudder runs transcript` or `rudder runs errors` output before
105
- editing.
106
- - Personal operating memory: use the runtime memory skill or files required by
107
- the agent operating contract.
108
- - Agent-private skill changes: prefer `rudder agent skills create ... --enable`
109
- or edit the agent-private skill package when that is the intended scope.
110
- - Organization skill changes: follow `references/organization-skills.md`.
111
-
112
- If the change is broad, ambiguous, destructive, or outside your authority,
113
- propose the update and ask for approval. When you do make a change, report the
114
- exact automation, skill, memory file, instruction file, or Library file that
115
- changed.
94
+ ## User Activity Context
95
+
96
+ Use `rudder user activity --user me --since today --json` when you need a
97
+ user-centered view of recent Rudder behavior before claiming context is missing,
98
+ before answering questions like "what did I do today?", "which agents did I
99
+ talk to?", or "what feedback did I give?", and before turning broad recent
100
+ activity into daily notes, handoff context, or preference candidates.
101
+
102
+ The ledger returns safe excerpts plus source/provenance pointers across
103
+ user-authored chat messages, issue comments, approval comments, and user actor
104
+ activity events. Treat summaries and excerpts as pointers, not ground truth
105
+ when exact wording matters. Inspect the cited source before writing durable
106
+ memory, taste/profile updates, or conclusions about stable user preference. Do
107
+ not use the ledger to bypass organization or project permissions, and do not
108
+ store private content in long-term memory unless it is an explicit durable
109
+ preference or operating lesson.
116
110
 
117
111
  ## Authentication
118
112
 
@@ -215,9 +209,11 @@ If asked to make or revise durable project work files, use the Library as a loca
215
209
 
216
210
  When you need to cite a Library file in a chat reply, issue comment, review, blocker, or done comment, use the `markdownLink` returned by `rudder library file ref "$RUDDER_PROJECT_LIBRARY_PATH/<relative-file>" --json`. Do not hand-write `library-entry://...` URLs.
217
211
 
218
- Strong Library links look like normal Markdown, but the target contains only
219
- the stable Library entry id. Title and path are display or lookup details
220
- returned by Rudder, not URL metadata agents should encode:
212
+ Strong Library links look like normal Markdown. The stable Library entry id is
213
+ the identity; Rudder may add a `p` query parameter as a synchronous path hint so
214
+ the UI can navigate immediately before entry metadata finishes loading. Agents
215
+ must not hand-write that query parameter; copy the `mentionHref` or
216
+ `markdownLink` returned by Rudder:
221
217
 
222
218
  ```md
223
219
  [Project work file](library-entry://<entry-id>)
@@ -234,7 +230,8 @@ rudder issue comment "<issue-id-or-identifier>" --body-file "<path>" --json
234
230
  The `ref`, `put`, and `get` JSON responses include:
235
231
 
236
232
  - `libraryEntryId`: stable Library file identity
237
- - `mentionHref`: the raw `library-entry://<entry-id>` target
233
+ - `mentionHref`: the raw `library-entry://<entry-id>` target, optionally with
234
+ Rudder-generated `?p=<url-encoded-path-hint>`
238
235
  - `markdownLink`: the Markdown link to paste into the comment body
239
236
 
240
237
  For close-out comments, copy `markdownLink` from the JSON response into your temporary Markdown comment file and post that link as the Rudder-visible handoff checkpoint. Direct filesystem writes are not complete handoff evidence until the file is cited with the returned `markdownLink`. The `ref` argument is a Library-relative path such as `$RUDDER_PROJECT_LIBRARY_PATH/<relative-file>`, not the absolute `$RUDDER_PROJECT_LIBRARY_ROOT/...` filesystem path. If `$RUDDER_PROJECT_LIBRARY_ROOT` is unset or inaccessible, use `rudder library file get/put "$RUDDER_PROJECT_LIBRARY_PATH/<relative-file>"` as the remote or restricted runtime fallback. Use older `library-file://...` links only when you are preserving or reading legacy content that has no `libraryEntryId`.
@@ -97,6 +97,10 @@ Mention-triggered comment wakes set `wakeComment` and `RUDDER_WAKE_COMMENT_ID`.
97
97
  Issue comments request an agent wake with an agent link whose href includes
98
98
  `intent=wake`. Plain `agent://agent-id` links are reference-only, and plain text
99
99
  agent names should not be treated as wake requests.
100
+ When such a comment wakes an agent on an issue not assigned to you, meaning not
101
+ assigned to the woken agent and including user-owned or unassigned issues, the
102
+ wake is scoped to the comment unless the comment explicitly asks that agent to
103
+ implement, modify files, close the issue, or take ownership.
100
104
 
101
105
  ### Comments
102
106
 
@@ -135,6 +139,7 @@ Use the incremental `after` form when you already know the thread.
135
139
  - `GET /api/orgs/:orgId/goals`
136
140
  - `POST /api/orgs/:orgId/goals`
137
141
  - `GET /api/orgs/:orgId/activity`
142
+ - `GET /api/orgs/:orgId/users/:userId/activity-ledger`
138
143
  - `GET /api/orgs/:orgId/costs/summary`
139
144
  - `GET /api/orgs/:orgId/costs/by-agent`
140
145
  - `GET /api/orgs/:orgId/costs/by-project`
@@ -193,8 +198,8 @@ Workspace file detail responses include renderable reference fields:
193
198
  {
194
199
  "filePath": "projects/rudder/RUD-123.md",
195
200
  "libraryEntryId": "entry-uuid",
196
- "mentionHref": "library-entry://entry-uuid",
197
- "markdownLink": "[RUD-123.md](library-entry://entry-uuid)"
201
+ "mentionHref": "library-entry://entry-uuid?p=projects%2Frudder%2FRUD-123.md",
202
+ "markdownLink": "[RUD-123.md](library-entry://entry-uuid?p=projects%2Frudder%2FRUD-123.md)"
198
203
  }
199
204
  ```
200
205
 
@@ -210,6 +215,11 @@ the remote or restricted runtime fallback. `library-file://...` is legacy weak
210
215
  path syntax and should not be used for new durable Library references when
211
216
  `libraryEntryId` is available.
212
217
 
218
+ The `libraryEntryId` remains the strong identity. The optional `p` query value
219
+ is a Rudder-generated synchronous path hint for fast UI navigation before entry
220
+ metadata is available; agents should copy returned links instead of constructing
221
+ or editing that URL by hand.
222
+
213
223
  ## Approval Workflows
214
224
 
215
225
  - `GET /api/approvals/:approvalId`
@@ -42,6 +42,7 @@ Direct API fallback is allowed for heartbeat close-out only when a required CLI
42
42
  | `rudder project get <project-id-or-shortname> [--org-id <id>]` | Read one project by ID or shortname. | no | no | no | no |
43
43
  | `rudder project create --org-id <id> --name <name>` | Create a project in the organization. | yes | required | no | attached when available |
44
44
  | `rudder project update <project-id-or-shortname> [--org-id <id>]` | Update mutable project fields such as name, description, status, goals, lead agent, target date, color, or archivedAt. | yes | no | no | attached when available |
45
+ | `rudder user activity --user me --since today --json` | Read a user-centered activity ledger with safe excerpts and provenance across chats, issue comments, approval comments, and user actor activity. | no | required | no | no |
45
46
  | `rudder library file list [directory]` | List Library files and folders; file rows include `libraryEntryId` when a strong reference can be generated. | no | required | no | no |
46
47
  | `rudder library file get <path>` | Fallback read when local filesystem access is unavailable; JSON includes `mentionHref` and `markdownLink`. | no | required | no | no |
47
48
  | `rudder library file ref <path>` | Return the stable Markdown reference for one Library file without printing file content. | no | required | no | no |
@@ -97,6 +98,13 @@ Before a successful `todo` or `in_progress` issue run exits, leave one close-out
97
98
  - work is blocked: `rudder issue block <issue> --comment-file <path> [--image <path>]`
98
99
  - ownership changes: add an explicit handoff comment before or with the assignee update
99
100
 
101
+ If a comment wakes you on an issue not assigned to you, including user-owned or
102
+ unassigned issues, treat that comment as the scope of the wake unless it
103
+ explicitly asks you to implement, modify files, close the issue, or take
104
+ ownership. Questions should get answers, corrections should get acknowledgment
105
+ or explanation, and narrow requests should not become permission to finish the
106
+ whole issue.
107
+
100
108
  If an issue has a reviewer, moving it to `blocked` is also a reviewer handoff: the reviewer should confirm the blocker, request changes, approve, or keep explicit follow-up open with `rudder issue review`.
101
109
 
102
110
  Issue comment and close-out commands accept comment bodies only from files or stdin. For any multiline Markdown, command names, code spans, code blocks, test summaries, or screenshot evidence, write the comment to a temporary Markdown file and pass `--body-file <path>` or `--comment-file <path>`, or pass `-` to read the body from stdin.
@@ -125,9 +133,12 @@ printf '%s\n' "$result" | jq -r .markdownLink
125
133
  The relevant JSON fields are:
126
134
 
127
135
  - `libraryEntryId`: stable identity for the Library file.
128
- - `mentionHref`: raw `library-entry://<id>` target.
136
+ - `mentionHref`: raw `library-entry://<id>` target, optionally with a
137
+ Rudder-generated `p` query parameter as a path hint for the current Library
138
+ path.
129
139
  - `markdownLink`: complete Markdown link that the renderer turns into a Library
130
- chip and that continues resolving after Rudder-managed rename or move.
140
+ chip. Its identity remains the entry id; any `p` query value is only a
141
+ synchronous navigation hint and agents should not hand-write it.
131
142
 
132
143
  Use `rudder library file get/put` only when local filesystem access to the
133
144
  Library is unavailable, such as remote or restricted runtimes. `rudder library
@@ -37,6 +37,10 @@ organization-skill operations.
37
37
  Use `[Agent Name](agent://agent-id)` for reference-only links, and do not rely
38
38
  on plain text agent names as wake requests.
39
39
  - Self-assign only when the wake comment explicitly transfers ownership.
40
+ - If a comment wakes you on an issue not assigned to you, including user-owned
41
+ or unassigned issues, and the comment does not explicitly ask you to
42
+ implement, modify files, close the issue, or take ownership, respond to the
43
+ comment's actual content instead of broadening the wake into issue execution.
40
44
  - Always communicate before exit on active work, except blocked issues with no new context.
41
45
  - Treat `issue_passive_followup` as close-out governance, not a fresh assignment.
42
46
  - Treat `issue_review_closeout_missing` as review close-out governance.
@@ -48,7 +52,7 @@ organization-skill operations.
48
52
  - Use `chainOfCommand` for escalation.
49
53
  - Above 80% spend, focus on critical work only.
50
54
  - Use `rudder-create-agent` for hiring or new-agent creation workflows.
51
- - If you make a git commit you MUST add `Co-Authored-By: Rudder <noreply@github.com/Undertone0809/rudder>` to the end of each commit message.
55
+ - If you make a git commit you MUST add `Co-Authored-By: Rudder <285064165+Rudderhq@users.noreply.github.com>` to the end of each commit message.
52
56
  - Git commits must use an explicit safe identity. Rudder prepares isolated Codex homes and runtime worktrees with `user.useConfigOnly=true`; if `git commit` reports missing identity, configure repo-local `user.name` and `user.email` instead of bypassing the guard. Never accept `*@*.local` author or committer metadata.
53
57
 
54
58
  ## Essential Commands
@@ -73,6 +77,7 @@ rudder issue review "<issue-id-or-identifier>" --decision request_changes --comm
73
77
  rudder issue review "<issue-id-or-identifier>" --decision needs_followup --comment-file "<path>" --json
74
78
  rudder issue review "<issue-id-or-identifier>" --decision blocked --comment-file "<path>" --json
75
79
  rudder issue create --org-id "$RUDDER_ORG_ID" ... --json
80
+ rudder user activity --user me --since today --json
76
81
  ```
77
82
 
78
83
  Issue comment and close-out commands accept comment bodies only from files or
@@ -86,33 +91,22 @@ should include local screenshots or images. Do not leave only a local `/tmp/...`
86
91
  or workspace image path in the comment, because board users may not be able to
87
92
  inspect it from Rudder.
88
93
 
89
- ## Self-Improvement And Workflow Updates
90
-
91
- When an operator asks you to improve, optimize, or remember a workflow, treat
92
- that as a request to update the durable operating surface that will affect the
93
- next run. Do not stop at advice if the relevant surface is available and you
94
- have authority to change it.
95
-
96
- Use the smallest governed surface that matches the request:
97
-
98
- - Automation behavior: inspect the current chat or automation, then use
99
- `rudder automation list`, `rudder automation get`, and
100
- `rudder automation update` as needed.
101
- - Skill behavior: inspect real run evidence with
102
- `rudder runs by-skill <skill> --org-id "$RUDDER_ORG_ID"` or
103
- `rudder runs list --used-skill <skill> --org-id "$RUDDER_ORG_ID"`, then read
104
- the relevant `rudder runs transcript` or `rudder runs errors` output before
105
- editing.
106
- - Personal operating memory: use the runtime memory skill or files required by
107
- the agent operating contract.
108
- - Agent-private skill changes: prefer `rudder agent skills create ... --enable`
109
- or edit the agent-private skill package when that is the intended scope.
110
- - Organization skill changes: follow `references/organization-skills.md`.
111
-
112
- If the change is broad, ambiguous, destructive, or outside your authority,
113
- propose the update and ask for approval. When you do make a change, report the
114
- exact automation, skill, memory file, instruction file, or Library file that
115
- changed.
94
+ ## User Activity Context
95
+
96
+ Use `rudder user activity --user me --since today --json` when you need a
97
+ user-centered view of recent Rudder behavior before claiming context is missing,
98
+ before answering questions like "what did I do today?", "which agents did I
99
+ talk to?", or "what feedback did I give?", and before turning broad recent
100
+ activity into daily notes, handoff context, or preference candidates.
101
+
102
+ The ledger returns safe excerpts plus source/provenance pointers across
103
+ user-authored chat messages, issue comments, approval comments, and user actor
104
+ activity events. Treat summaries and excerpts as pointers, not ground truth
105
+ when exact wording matters. Inspect the cited source before writing durable
106
+ memory, taste/profile updates, or conclusions about stable user preference. Do
107
+ not use the ledger to bypass organization or project permissions, and do not
108
+ store private content in long-term memory unless it is an explicit durable
109
+ preference or operating lesson.
116
110
 
117
111
  ## Authentication
118
112
 
@@ -215,9 +209,11 @@ If asked to make or revise durable project work files, use the Library as a loca
215
209
 
216
210
  When you need to cite a Library file in a chat reply, issue comment, review, blocker, or done comment, use the `markdownLink` returned by `rudder library file ref "$RUDDER_PROJECT_LIBRARY_PATH/<relative-file>" --json`. Do not hand-write `library-entry://...` URLs.
217
211
 
218
- Strong Library links look like normal Markdown, but the target contains only
219
- the stable Library entry id. Title and path are display or lookup details
220
- returned by Rudder, not URL metadata agents should encode:
212
+ Strong Library links look like normal Markdown. The stable Library entry id is
213
+ the identity; Rudder may add a `p` query parameter as a synchronous path hint so
214
+ the UI can navigate immediately before entry metadata finishes loading. Agents
215
+ must not hand-write that query parameter; copy the `mentionHref` or
216
+ `markdownLink` returned by Rudder:
221
217
 
222
218
  ```md
223
219
  [Project work file](library-entry://<entry-id>)
@@ -234,7 +230,8 @@ rudder issue comment "<issue-id-or-identifier>" --body-file "<path>" --json
234
230
  The `ref`, `put`, and `get` JSON responses include:
235
231
 
236
232
  - `libraryEntryId`: stable Library file identity
237
- - `mentionHref`: the raw `library-entry://<entry-id>` target
233
+ - `mentionHref`: the raw `library-entry://<entry-id>` target, optionally with
234
+ Rudder-generated `?p=<url-encoded-path-hint>`
238
235
  - `markdownLink`: the Markdown link to paste into the comment body
239
236
 
240
237
  For close-out comments, copy `markdownLink` from the JSON response into your temporary Markdown comment file and post that link as the Rudder-visible handoff checkpoint. Direct filesystem writes are not complete handoff evidence until the file is cited with the returned `markdownLink`. The `ref` argument is a Library-relative path such as `$RUDDER_PROJECT_LIBRARY_PATH/<relative-file>`, not the absolute `$RUDDER_PROJECT_LIBRARY_ROOT/...` filesystem path. If `$RUDDER_PROJECT_LIBRARY_ROOT` is unset or inaccessible, use `rudder library file get/put "$RUDDER_PROJECT_LIBRARY_PATH/<relative-file>"` as the remote or restricted runtime fallback. Use older `library-file://...` links only when you are preserving or reading legacy content that has no `libraryEntryId`.
@@ -97,6 +97,10 @@ Mention-triggered comment wakes set `wakeComment` and `RUDDER_WAKE_COMMENT_ID`.
97
97
  Issue comments request an agent wake with an agent link whose href includes
98
98
  `intent=wake`. Plain `agent://agent-id` links are reference-only, and plain text
99
99
  agent names should not be treated as wake requests.
100
+ When such a comment wakes an agent on an issue not assigned to you, meaning not
101
+ assigned to the woken agent and including user-owned or unassigned issues, the
102
+ wake is scoped to the comment unless the comment explicitly asks that agent to
103
+ implement, modify files, close the issue, or take ownership.
100
104
 
101
105
  ### Comments
102
106
 
@@ -135,6 +139,7 @@ Use the incremental `after` form when you already know the thread.
135
139
  - `GET /api/orgs/:orgId/goals`
136
140
  - `POST /api/orgs/:orgId/goals`
137
141
  - `GET /api/orgs/:orgId/activity`
142
+ - `GET /api/orgs/:orgId/users/:userId/activity-ledger`
138
143
  - `GET /api/orgs/:orgId/costs/summary`
139
144
  - `GET /api/orgs/:orgId/costs/by-agent`
140
145
  - `GET /api/orgs/:orgId/costs/by-project`
@@ -193,8 +198,8 @@ Workspace file detail responses include renderable reference fields:
193
198
  {
194
199
  "filePath": "projects/rudder/RUD-123.md",
195
200
  "libraryEntryId": "entry-uuid",
196
- "mentionHref": "library-entry://entry-uuid",
197
- "markdownLink": "[RUD-123.md](library-entry://entry-uuid)"
201
+ "mentionHref": "library-entry://entry-uuid?p=projects%2Frudder%2FRUD-123.md",
202
+ "markdownLink": "[RUD-123.md](library-entry://entry-uuid?p=projects%2Frudder%2FRUD-123.md)"
198
203
  }
199
204
  ```
200
205
 
@@ -210,6 +215,11 @@ the remote or restricted runtime fallback. `library-file://...` is legacy weak
210
215
  path syntax and should not be used for new durable Library references when
211
216
  `libraryEntryId` is available.
212
217
 
218
+ The `libraryEntryId` remains the strong identity. The optional `p` query value
219
+ is a Rudder-generated synchronous path hint for fast UI navigation before entry
220
+ metadata is available; agents should copy returned links instead of constructing
221
+ or editing that URL by hand.
222
+
213
223
  ## Approval Workflows
214
224
 
215
225
  - `GET /api/approvals/:approvalId`
@@ -42,6 +42,7 @@ Direct API fallback is allowed for heartbeat close-out only when a required CLI
42
42
  | `rudder project get <project-id-or-shortname> [--org-id <id>]` | Read one project by ID or shortname. | no | no | no | no |
43
43
  | `rudder project create --org-id <id> --name <name>` | Create a project in the organization. | yes | required | no | attached when available |
44
44
  | `rudder project update <project-id-or-shortname> [--org-id <id>]` | Update mutable project fields such as name, description, status, goals, lead agent, target date, color, or archivedAt. | yes | no | no | attached when available |
45
+ | `rudder user activity --user me --since today --json` | Read a user-centered activity ledger with safe excerpts and provenance across chats, issue comments, approval comments, and user actor activity. | no | required | no | no |
45
46
  | `rudder library file list [directory]` | List Library files and folders; file rows include `libraryEntryId` when a strong reference can be generated. | no | required | no | no |
46
47
  | `rudder library file get <path>` | Fallback read when local filesystem access is unavailable; JSON includes `mentionHref` and `markdownLink`. | no | required | no | no |
47
48
  | `rudder library file ref <path>` | Return the stable Markdown reference for one Library file without printing file content. | no | required | no | no |
@@ -97,6 +98,13 @@ Before a successful `todo` or `in_progress` issue run exits, leave one close-out
97
98
  - work is blocked: `rudder issue block <issue> --comment-file <path> [--image <path>]`
98
99
  - ownership changes: add an explicit handoff comment before or with the assignee update
99
100
 
101
+ If a comment wakes you on an issue not assigned to you, including user-owned or
102
+ unassigned issues, treat that comment as the scope of the wake unless it
103
+ explicitly asks you to implement, modify files, close the issue, or take
104
+ ownership. Questions should get answers, corrections should get acknowledgment
105
+ or explanation, and narrow requests should not become permission to finish the
106
+ whole issue.
107
+
100
108
  If an issue has a reviewer, moving it to `blocked` is also a reviewer handoff: the reviewer should confirm the blocker, request changes, approve, or keep explicit follow-up open with `rudder issue review`.
101
109
 
102
110
  Issue comment and close-out commands accept comment bodies only from files or stdin. For any multiline Markdown, command names, code spans, code blocks, test summaries, or screenshot evidence, write the comment to a temporary Markdown file and pass `--body-file <path>` or `--comment-file <path>`, or pass `-` to read the body from stdin.
@@ -125,9 +133,12 @@ printf '%s\n' "$result" | jq -r .markdownLink
125
133
  The relevant JSON fields are:
126
134
 
127
135
  - `libraryEntryId`: stable identity for the Library file.
128
- - `mentionHref`: raw `library-entry://<id>` target.
136
+ - `mentionHref`: raw `library-entry://<id>` target, optionally with a
137
+ Rudder-generated `p` query parameter as a path hint for the current Library
138
+ path.
129
139
  - `markdownLink`: complete Markdown link that the renderer turns into a Library
130
- chip and that continues resolving after Rudder-managed rename or move.
140
+ chip. Its identity remains the entry id; any `p` query value is only a
141
+ synchronous navigation hint and agents should not hand-write it.
131
142
 
132
143
  Use `rudder library file get/put` only when local filesystem access to the
133
144
  Library is unavailable, such as remote or restricted runtimes. `rudder library
@@ -1 +1 @@
1
- import{c as O,e as l,k as I,g as P,h as b,j as w,l as M,m,t as F,n as _}from"./_baseUniq-D_Y907uk.js";import{at as p,aO as A,aP as E,aQ as N,aR as o,aS as R,aT as S,aU as T,aV as G}from"./mermaid.core-Ci5CSmlH.js";import{M as L,O as Q,Q as v}from"./index-CgZIlV_x.js";var g=1/0,$=17976931348623157e292;function q(n){if(!n)return n===0?n:0;if(n=L(n),n===g||n===-g){var r=n<0?-1:1;return r*$}return n===n?n:0}function z(n){var r=q(n),a=r%1;return r===r?a?r-a:r:0}function j(n){var r=n==null?0:n.length;return r?O(n):[]}var x=Object.prototype,B=x.hasOwnProperty,k=p(function(n,r){n=Object(n);var a=-1,i=r.length,t=i>2?r[2]:void 0;for(t&&A(r[0],r[1],t)&&(i=1);++a<i;)for(var f=r[a],e=E(f),s=-1,u=e.length;++s<u;){var d=e[s],h=n[d];(h===void 0||N(h,x[d])&&!B.call(n,d))&&(n[d]=f[d])}return n});function nn(n){var r=n==null?0:n.length;return r?n[r-1]:void 0}function C(n){return function(r,a,i){var t=Object(r);if(!o(r)){var f=l(a);r=I(r),a=function(s){return f(t[s],s,t)}}var e=n(r,a,i);return e>-1?t[f?r[e]:e]:void 0}}var H=Math.max;function K(n,r,a){var i=n==null?0:n.length;if(!i)return-1;var t=a==null?0:z(a);return t<0&&(t=H(i+t,0)),P(n,l(r),t)}var rn=C(K);function U(n,r){var a=-1,i=o(n)?Array(n.length):[];return b(n,function(t,f,e){i[++a]=r(t,f,e)}),i}function an(n,r){var a=R(n)?w:U;return a(n,l(r))}var X=Object.prototype,Y=X.hasOwnProperty;function D(n,r){return n!=null&&Y.call(n,r)}function tn(n,r){return n!=null&&M(n,r,D)}function J(n,r){return n<r}function W(n,r,a){for(var i=-1,t=n.length;++i<t;){var f=n[i],e=r(f);if(e!=null&&(s===void 0?e===e&&!Q(e):a(e,s)))var s=e,u=f}return u}function en(n){return n&&n.length?W(n,S,J):void 0}function Z(n,r,a,i){if(!v(n))return n;r=m(r,n);for(var t=-1,f=r.length,e=f-1,s=n;s!=null&&++t<f;){var u=F(r[t]),d=a;if(u==="__proto__"||u==="constructor"||u==="prototype")return n;if(t!=e){var h=s[u];d=void 0,d===void 0&&(d=v(h)?h:T(r[t+1])?[]:{})}G(s,u,d),s=s[u]}return n}function sn(n,r,a){for(var i=-1,t=r.length,f={};++i<t;){var e=r[i],s=_(n,e);a(s,e)&&Z(f,m(e,n),s)}return f}export{J as a,W as b,U as c,sn as d,en as e,j as f,rn as g,tn as h,k as i,z as j,nn as l,an as m,q as t};
1
+ import{c as O,e as l,k as I,g as P,h as b,j as w,l as M,m,t as F,n as _}from"./_baseUniq-ChSV83Tl.js";import{at as p,aO as A,aP as E,aQ as N,aR as o,aS as R,aT as S,aU as T,aV as G}from"./mermaid.core-Ca_slkna.js";import{M as L,O as Q,Q as v}from"./index-NnBHP7m8.js";var g=1/0,$=17976931348623157e292;function q(n){if(!n)return n===0?n:0;if(n=L(n),n===g||n===-g){var r=n<0?-1:1;return r*$}return n===n?n:0}function z(n){var r=q(n),a=r%1;return r===r?a?r-a:r:0}function j(n){var r=n==null?0:n.length;return r?O(n):[]}var x=Object.prototype,B=x.hasOwnProperty,k=p(function(n,r){n=Object(n);var a=-1,i=r.length,t=i>2?r[2]:void 0;for(t&&A(r[0],r[1],t)&&(i=1);++a<i;)for(var f=r[a],e=E(f),s=-1,u=e.length;++s<u;){var d=e[s],h=n[d];(h===void 0||N(h,x[d])&&!B.call(n,d))&&(n[d]=f[d])}return n});function nn(n){var r=n==null?0:n.length;return r?n[r-1]:void 0}function C(n){return function(r,a,i){var t=Object(r);if(!o(r)){var f=l(a);r=I(r),a=function(s){return f(t[s],s,t)}}var e=n(r,a,i);return e>-1?t[f?r[e]:e]:void 0}}var H=Math.max;function K(n,r,a){var i=n==null?0:n.length;if(!i)return-1;var t=a==null?0:z(a);return t<0&&(t=H(i+t,0)),P(n,l(r),t)}var rn=C(K);function U(n,r){var a=-1,i=o(n)?Array(n.length):[];return b(n,function(t,f,e){i[++a]=r(t,f,e)}),i}function an(n,r){var a=R(n)?w:U;return a(n,l(r))}var X=Object.prototype,Y=X.hasOwnProperty;function D(n,r){return n!=null&&Y.call(n,r)}function tn(n,r){return n!=null&&M(n,r,D)}function J(n,r){return n<r}function W(n,r,a){for(var i=-1,t=n.length;++i<t;){var f=n[i],e=r(f);if(e!=null&&(s===void 0?e===e&&!Q(e):a(e,s)))var s=e,u=f}return u}function en(n){return n&&n.length?W(n,S,J):void 0}function Z(n,r,a,i){if(!v(n))return n;r=m(r,n);for(var t=-1,f=r.length,e=f-1,s=n;s!=null&&++t<f;){var u=F(r[t]),d=a;if(u==="__proto__"||u==="constructor"||u==="prototype")return n;if(t!=e){var h=s[u];d=void 0,d===void 0&&(d=v(h)?h:T(r[t+1])?[]:{})}G(s,u,d),s=s[u]}return n}function sn(n,r,a){for(var i=-1,t=r.length,f={};++i<t;){var e=r[i],s=_(n,e);a(s,e)&&Z(f,m(e,n),s)}return f}export{J as a,W as b,U as c,sn as d,en as e,j as f,rn as g,tn as h,k as i,z as j,nn as l,an as m,q as t};
@@ -1 +1 @@
1
- import{O as U,S as w,R as L,Q as sn}from"./index-CgZIlV_x.js";import{aS as T,aR as un,bf as Rn,bg as xn,bh as Mn,bi as on,bj as x,aP as B,bk as mn,bl as gn,bm as Cn,bn as S,bd as ln,bo as R,bp as Fn,bq as D,br as Dn,bs as Gn,bt as $,aV as Un,bu as Bn,aQ as Nn,bv as Q,bw as Kn,bx as jn,aU as Hn,aT as cn,bb as qn,by as m}from"./mermaid.core-Ci5CSmlH.js";function bn(n,r){for(var e=-1,t=n==null?0:n.length,f=Array(t);++e<t;)f[e]=r(n[e],e,n);return f}var X=w?w.prototype:void 0,J=X?X.toString:void 0;function dn(n){if(typeof n=="string")return n;if(T(n))return bn(n,dn)+"";if(U(n))return J?J.call(n):"";var r=n+"";return r=="0"&&1/n==-1/0?"-0":r}function Yn(){}function pn(n,r){for(var e=-1,t=n==null?0:n.length;++e<t&&r(n[e],e,n)!==!1;);return n}function Zn(n,r,e,t){for(var f=n.length,i=e+-1;++i<f;)if(r(n[i],i,n))return i;return-1}function Qn(n){return n!==n}function Xn(n,r,e){for(var t=e-1,f=n.length;++t<f;)if(n[t]===r)return t;return-1}function Jn(n,r,e){return r===r?Xn(n,r,e):Zn(n,Qn,e)}function Wn(n,r){var e=n==null?0:n.length;return!!e&&Jn(n,r,0)>-1}function _(n){return un(n)?Rn(n):xn(n)}var zn=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Vn=/^\w*$/;function N(n,r){if(T(n))return!1;var e=typeof n;return e=="number"||e=="symbol"||e=="boolean"||n==null||U(n)?!0:Vn.test(n)||!zn.test(n)||r!=null&&n in Object(r)}var kn=500;function nr(n){var r=Mn(n,function(t){return e.size===kn&&e.clear(),t}),e=r.cache;return r}var rr=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,er=/\\(\\)?/g,tr=nr(function(n){var r=[];return n.charCodeAt(0)===46&&r.push(""),n.replace(rr,function(e,t,f,i){r.push(f?i.replace(er,"$1"):t||e)}),r});function ir(n){return n==null?"":dn(n)}function An(n,r){return T(n)?n:N(n,r)?[n]:tr(ir(n))}function M(n){if(typeof n=="string"||U(n))return n;var r=n+"";return r=="0"&&1/n==-1/0?"-0":r}function yn(n,r){r=An(r,n);for(var e=0,t=r.length;n!=null&&e<t;)n=n[M(r[e++])];return e&&e==t?n:void 0}function fr(n,r,e){var t=n==null?void 0:yn(n,r);return t===void 0?e:t}function K(n,r){for(var e=-1,t=r.length,f=n.length;++e<t;)n[f+e]=r[e];return n}var W=w?w.isConcatSpreadable:void 0;function ar(n){return T(n)||on(n)||!!(W&&n&&n[W])}function wt(n,r,e,t,f){var i=-1,a=n.length;for(e||(e=ar),f||(f=[]);++i<a;){var s=n[i];e(s)?K(f,s):t||(f[f.length]=s)}return f}function sr(n,r,e,t){var f=-1,i=n==null?0:n.length;for(t&&i&&(e=n[++f]);++f<i;)e=r(e,n[f],f,n);return e}function ur(n,r){return n&&x(r,_(r),n)}function or(n,r){return n&&x(r,B(r),n)}function Tn(n,r){for(var e=-1,t=n==null?0:n.length,f=0,i=[];++e<t;){var a=n[e];r(a,e,n)&&(i[f++]=a)}return i}function hn(){return[]}var gr=Object.prototype,lr=gr.propertyIsEnumerable,z=Object.getOwnPropertySymbols,j=z?function(n){return n==null?[]:(n=Object(n),Tn(z(n),function(r){return lr.call(n,r)}))}:hn;function cr(n,r){return x(n,j(n),r)}var br=Object.getOwnPropertySymbols,wn=br?function(n){for(var r=[];n;)K(r,j(n)),n=mn(n);return r}:hn;function dr(n,r){return x(n,wn(n),r)}function On(n,r,e){var t=r(n);return T(n)?t:K(t,e(n))}function G(n){return On(n,_,j)}function pr(n){return On(n,B,wn)}var Ar=Object.prototype,yr=Ar.hasOwnProperty;function Tr(n){var r=n.length,e=new n.constructor(r);return r&&typeof n[0]=="string"&&yr.call(n,"index")&&(e.index=n.index,e.input=n.input),e}function hr(n,r){var e=r?gn(n.buffer):n.buffer;return new n.constructor(e,n.byteOffset,n.byteLength)}var wr=/\w*$/;function Or(n){var r=new n.constructor(n.source,wr.exec(n));return r.lastIndex=n.lastIndex,r}var V=w?w.prototype:void 0,k=V?V.valueOf:void 0;function _r(n){return k?Object(k.call(n)):{}}var $r="[object Boolean]",Sr="[object Date]",Er="[object Map]",Pr="[object Number]",Ir="[object RegExp]",vr="[object Set]",Lr="[object String]",Rr="[object Symbol]",xr="[object ArrayBuffer]",Mr="[object DataView]",mr="[object Float32Array]",Cr="[object Float64Array]",Fr="[object Int8Array]",Dr="[object Int16Array]",Gr="[object Int32Array]",Ur="[object Uint8Array]",Br="[object Uint8ClampedArray]",Nr="[object Uint16Array]",Kr="[object Uint32Array]";function jr(n,r,e){var t=n.constructor;switch(r){case xr:return gn(n);case $r:case Sr:return new t(+n);case Mr:return hr(n,e);case mr:case Cr:case Fr:case Dr:case Gr:case Ur:case Br:case Nr:case Kr:return Cn(n,e);case Er:return new t;case Pr:case Lr:return new t(n);case Ir:return Or(n);case vr:return new t;case Rr:return _r(n)}}var Hr="[object Map]";function qr(n){return L(n)&&S(n)==Hr}var nn=R&&R.isMap,Yr=nn?ln(nn):qr,Zr="[object Set]";function Qr(n){return L(n)&&S(n)==Zr}var rn=R&&R.isSet,Xr=rn?ln(rn):Qr,Jr=1,Wr=2,zr=4,_n="[object Arguments]",Vr="[object Array]",kr="[object Boolean]",ne="[object Date]",re="[object Error]",$n="[object Function]",ee="[object GeneratorFunction]",te="[object Map]",ie="[object Number]",Sn="[object Object]",fe="[object RegExp]",ae="[object Set]",se="[object String]",ue="[object Symbol]",oe="[object WeakMap]",ge="[object ArrayBuffer]",le="[object DataView]",ce="[object Float32Array]",be="[object Float64Array]",de="[object Int8Array]",pe="[object Int16Array]",Ae="[object Int32Array]",ye="[object Uint8Array]",Te="[object Uint8ClampedArray]",he="[object Uint16Array]",we="[object Uint32Array]",g={};g[_n]=g[Vr]=g[ge]=g[le]=g[kr]=g[ne]=g[ce]=g[be]=g[de]=g[pe]=g[Ae]=g[te]=g[ie]=g[Sn]=g[fe]=g[ae]=g[se]=g[ue]=g[ye]=g[Te]=g[he]=g[we]=!0;g[re]=g[$n]=g[oe]=!1;function C(n,r,e,t,f,i){var a,s=r&Jr,u=r&Wr,b=r&zr;if(a!==void 0)return a;if(!sn(n))return n;var l=T(n);if(l){if(a=Tr(n),!s)return Fn(n,a)}else{var o=S(n),c=o==$n||o==ee;if(D(n))return Dn(n,s);if(o==Sn||o==_n||c&&!f){if(a=u||c?{}:Gn(n),!s)return u?dr(n,or(a,n)):cr(n,ur(a,n))}else{if(!g[o])return f?n:{};a=jr(n,o,s)}}i||(i=new $);var h=i.get(n);if(h)return h;i.set(n,a),Xr(n)?n.forEach(function(d){a.add(C(d,r,e,d,n,i))}):Yr(n)&&n.forEach(function(d,p){a.set(p,C(d,r,e,p,n,i))});var A=b?u?pr:G:u?B:_,y=l?void 0:A(n);return pn(y||n,function(d,p){y&&(p=d,d=n[p]),Un(a,p,C(d,r,e,p,n,i))}),a}var Oe="__lodash_hash_undefined__";function _e(n){return this.__data__.set(n,Oe),this}function $e(n){return this.__data__.has(n)}function E(n){var r=-1,e=n==null?0:n.length;for(this.__data__=new Bn;++r<e;)this.add(n[r])}E.prototype.add=E.prototype.push=_e;E.prototype.has=$e;function Se(n,r){for(var e=-1,t=n==null?0:n.length;++e<t;)if(r(n[e],e,n))return!0;return!1}function En(n,r){return n.has(r)}var Ee=1,Pe=2;function Pn(n,r,e,t,f,i){var a=e&Ee,s=n.length,u=r.length;if(s!=u&&!(a&&u>s))return!1;var b=i.get(n),l=i.get(r);if(b&&l)return b==r&&l==n;var o=-1,c=!0,h=e&Pe?new E:void 0;for(i.set(n,r),i.set(r,n);++o<s;){var A=n[o],y=r[o];if(t)var d=a?t(y,A,o,r,n,i):t(A,y,o,n,r,i);if(d!==void 0){if(d)continue;c=!1;break}if(h){if(!Se(r,function(p,O){if(!En(h,O)&&(A===p||f(A,p,e,t,i)))return h.push(O)})){c=!1;break}}else if(!(A===y||f(A,y,e,t,i))){c=!1;break}}return i.delete(n),i.delete(r),c}function Ie(n){var r=-1,e=Array(n.size);return n.forEach(function(t,f){e[++r]=[f,t]}),e}function H(n){var r=-1,e=Array(n.size);return n.forEach(function(t){e[++r]=t}),e}var ve=1,Le=2,Re="[object Boolean]",xe="[object Date]",Me="[object Error]",me="[object Map]",Ce="[object Number]",Fe="[object RegExp]",De="[object Set]",Ge="[object String]",Ue="[object Symbol]",Be="[object ArrayBuffer]",Ne="[object DataView]",en=w?w.prototype:void 0,F=en?en.valueOf:void 0;function Ke(n,r,e,t,f,i,a){switch(e){case Ne:if(n.byteLength!=r.byteLength||n.byteOffset!=r.byteOffset)return!1;n=n.buffer,r=r.buffer;case Be:return!(n.byteLength!=r.byteLength||!i(new Q(n),new Q(r)));case Re:case xe:case Ce:return Nn(+n,+r);case Me:return n.name==r.name&&n.message==r.message;case Fe:case Ge:return n==r+"";case me:var s=Ie;case De:var u=t&ve;if(s||(s=H),n.size!=r.size&&!u)return!1;var b=a.get(n);if(b)return b==r;t|=Le,a.set(n,r);var l=Pn(s(n),s(r),t,f,i,a);return a.delete(n),l;case Ue:if(F)return F.call(n)==F.call(r)}return!1}var je=1,He=Object.prototype,qe=He.hasOwnProperty;function Ye(n,r,e,t,f,i){var a=e&je,s=G(n),u=s.length,b=G(r),l=b.length;if(u!=l&&!a)return!1;for(var o=u;o--;){var c=s[o];if(!(a?c in r:qe.call(r,c)))return!1}var h=i.get(n),A=i.get(r);if(h&&A)return h==r&&A==n;var y=!0;i.set(n,r),i.set(r,n);for(var d=a;++o<u;){c=s[o];var p=n[c],O=r[c];if(t)var Z=a?t(O,p,c,r,n,i):t(p,O,c,n,r,i);if(!(Z===void 0?p===O||f(p,O,e,t,i):Z)){y=!1;break}d||(d=c=="constructor")}if(y&&!d){var P=n.constructor,I=r.constructor;P!=I&&"constructor"in n&&"constructor"in r&&!(typeof P=="function"&&P instanceof P&&typeof I=="function"&&I instanceof I)&&(y=!1)}return i.delete(n),i.delete(r),y}var Ze=1,tn="[object Arguments]",fn="[object Array]",v="[object Object]",Qe=Object.prototype,an=Qe.hasOwnProperty;function Xe(n,r,e,t,f,i){var a=T(n),s=T(r),u=a?fn:S(n),b=s?fn:S(r);u=u==tn?v:u,b=b==tn?v:b;var l=u==v,o=b==v,c=u==b;if(c&&D(n)){if(!D(r))return!1;a=!0,l=!1}if(c&&!l)return i||(i=new $),a||Kn(n)?Pn(n,r,e,t,f,i):Ke(n,r,u,e,t,f,i);if(!(e&Ze)){var h=l&&an.call(n,"__wrapped__"),A=o&&an.call(r,"__wrapped__");if(h||A){var y=h?n.value():n,d=A?r.value():r;return i||(i=new $),f(y,d,e,t,i)}}return c?(i||(i=new $),Ye(n,r,e,t,f,i)):!1}function q(n,r,e,t,f){return n===r?!0:n==null||r==null||!L(n)&&!L(r)?n!==n&&r!==r:Xe(n,r,e,t,q,f)}var Je=1,We=2;function ze(n,r,e,t){var f=e.length,i=f;if(n==null)return!i;for(n=Object(n);f--;){var a=e[f];if(a[2]?a[1]!==n[a[0]]:!(a[0]in n))return!1}for(;++f<i;){a=e[f];var s=a[0],u=n[s],b=a[1];if(a[2]){if(u===void 0&&!(s in n))return!1}else{var l=new $,o;if(!(o===void 0?q(b,u,Je|We,t,l):o))return!1}}return!0}function In(n){return n===n&&!sn(n)}function Ve(n){for(var r=_(n),e=r.length;e--;){var t=r[e],f=n[t];r[e]=[t,f,In(f)]}return r}function vn(n,r){return function(e){return e==null?!1:e[n]===r&&(r!==void 0||n in Object(e))}}function ke(n){var r=Ve(n);return r.length==1&&r[0][2]?vn(r[0][0],r[0][1]):function(e){return e===n||ze(e,n,r)}}function nt(n,r){return n!=null&&r in Object(n)}function rt(n,r,e){r=An(r,n);for(var t=-1,f=r.length,i=!1;++t<f;){var a=M(r[t]);if(!(i=n!=null&&e(n,a)))break;n=n[a]}return i||++t!=f?i:(f=n==null?0:n.length,!!f&&jn(f)&&Hn(a,f)&&(T(n)||on(n)))}function et(n,r){return n!=null&&rt(n,r,nt)}var tt=1,it=2;function ft(n,r){return N(n)&&In(r)?vn(M(n),r):function(e){var t=fr(e,n);return t===void 0&&t===r?et(e,n):q(r,t,tt|it)}}function at(n){return function(r){return r==null?void 0:r[n]}}function st(n){return function(r){return yn(r,n)}}function ut(n){return N(n)?at(M(n)):st(n)}function Ln(n){return typeof n=="function"?n:n==null?cn:typeof n=="object"?T(n)?ft(n[0],n[1]):ke(n):ut(n)}function ot(n,r){return n&&qn(n,r,_)}function gt(n,r){return function(e,t){if(e==null)return e;if(!un(e))return n(e,t);for(var f=e.length,i=-1,a=Object(e);++i<f&&t(a[i],i,a)!==!1;);return e}}var Y=gt(ot);function lt(n){return typeof n=="function"?n:cn}function Ot(n,r){var e=T(n)?pn:Y;return e(n,lt(r))}function ct(n,r){var e=[];return Y(n,function(t,f,i){r(t,f,i)&&e.push(t)}),e}function _t(n,r){var e=T(n)?Tn:ct;return e(n,Ln(r))}function bt(n,r){return bn(r,function(e){return n[e]})}function $t(n){return n==null?[]:bt(n,_(n))}function St(n){return n===void 0}function dt(n,r,e,t,f){return f(n,function(i,a,s){e=t?(t=!1,i):r(e,i,a,s)}),e}function Et(n,r,e){var t=T(n)?sr:dt,f=arguments.length<3;return t(n,Ln(r),e,f,Y)}var pt=1/0,At=m&&1/H(new m([,-0]))[1]==pt?function(n){return new m(n)}:Yn,yt=200;function Pt(n,r,e){var t=-1,f=Wn,i=n.length,a=!0,s=[],u=s;if(i>=yt){var b=r?null:At(n);if(b)return H(b);a=!1,f=En,u=new E}else u=r?[]:s;n:for(;++t<i;){var l=n[t],o=r?r(l):l;if(l=l!==0?l:0,a&&o===o){for(var c=u.length;c--;)if(u[c]===o)continue n;r&&u.push(o),s.push(l)}else f(u,o,e)||(u!==s&&u.push(o),s.push(l))}return s}export{ct as A,Se as B,Yn as C,E as S,Pt as a,C as b,wt as c,Ot as d,Ln as e,_t as f,Zn as g,Y as h,St as i,bn as j,_ as k,rt as l,An as m,yn as n,lt as o,ot as p,et as q,Et as r,ir as s,M as t,Wn as u,$t as v,En as w,Jn as x,pr as y,Tn as z};
1
+ import{O as U,S as w,R as L,Q as sn}from"./index-NnBHP7m8.js";import{aS as T,aR as un,bf as Rn,bg as xn,bh as Mn,bi as on,bj as x,aP as B,bk as mn,bl as gn,bm as Cn,bn as S,bd as ln,bo as R,bp as Fn,bq as D,br as Dn,bs as Gn,bt as $,aV as Un,bu as Bn,aQ as Nn,bv as Q,bw as Kn,bx as jn,aU as Hn,aT as cn,bb as qn,by as m}from"./mermaid.core-Ca_slkna.js";function bn(n,r){for(var e=-1,t=n==null?0:n.length,f=Array(t);++e<t;)f[e]=r(n[e],e,n);return f}var X=w?w.prototype:void 0,J=X?X.toString:void 0;function dn(n){if(typeof n=="string")return n;if(T(n))return bn(n,dn)+"";if(U(n))return J?J.call(n):"";var r=n+"";return r=="0"&&1/n==-1/0?"-0":r}function Yn(){}function pn(n,r){for(var e=-1,t=n==null?0:n.length;++e<t&&r(n[e],e,n)!==!1;);return n}function Zn(n,r,e,t){for(var f=n.length,i=e+-1;++i<f;)if(r(n[i],i,n))return i;return-1}function Qn(n){return n!==n}function Xn(n,r,e){for(var t=e-1,f=n.length;++t<f;)if(n[t]===r)return t;return-1}function Jn(n,r,e){return r===r?Xn(n,r,e):Zn(n,Qn,e)}function Wn(n,r){var e=n==null?0:n.length;return!!e&&Jn(n,r,0)>-1}function _(n){return un(n)?Rn(n):xn(n)}var zn=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Vn=/^\w*$/;function N(n,r){if(T(n))return!1;var e=typeof n;return e=="number"||e=="symbol"||e=="boolean"||n==null||U(n)?!0:Vn.test(n)||!zn.test(n)||r!=null&&n in Object(r)}var kn=500;function nr(n){var r=Mn(n,function(t){return e.size===kn&&e.clear(),t}),e=r.cache;return r}var rr=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,er=/\\(\\)?/g,tr=nr(function(n){var r=[];return n.charCodeAt(0)===46&&r.push(""),n.replace(rr,function(e,t,f,i){r.push(f?i.replace(er,"$1"):t||e)}),r});function ir(n){return n==null?"":dn(n)}function An(n,r){return T(n)?n:N(n,r)?[n]:tr(ir(n))}function M(n){if(typeof n=="string"||U(n))return n;var r=n+"";return r=="0"&&1/n==-1/0?"-0":r}function yn(n,r){r=An(r,n);for(var e=0,t=r.length;n!=null&&e<t;)n=n[M(r[e++])];return e&&e==t?n:void 0}function fr(n,r,e){var t=n==null?void 0:yn(n,r);return t===void 0?e:t}function K(n,r){for(var e=-1,t=r.length,f=n.length;++e<t;)n[f+e]=r[e];return n}var W=w?w.isConcatSpreadable:void 0;function ar(n){return T(n)||on(n)||!!(W&&n&&n[W])}function wt(n,r,e,t,f){var i=-1,a=n.length;for(e||(e=ar),f||(f=[]);++i<a;){var s=n[i];e(s)?K(f,s):t||(f[f.length]=s)}return f}function sr(n,r,e,t){var f=-1,i=n==null?0:n.length;for(t&&i&&(e=n[++f]);++f<i;)e=r(e,n[f],f,n);return e}function ur(n,r){return n&&x(r,_(r),n)}function or(n,r){return n&&x(r,B(r),n)}function Tn(n,r){for(var e=-1,t=n==null?0:n.length,f=0,i=[];++e<t;){var a=n[e];r(a,e,n)&&(i[f++]=a)}return i}function hn(){return[]}var gr=Object.prototype,lr=gr.propertyIsEnumerable,z=Object.getOwnPropertySymbols,j=z?function(n){return n==null?[]:(n=Object(n),Tn(z(n),function(r){return lr.call(n,r)}))}:hn;function cr(n,r){return x(n,j(n),r)}var br=Object.getOwnPropertySymbols,wn=br?function(n){for(var r=[];n;)K(r,j(n)),n=mn(n);return r}:hn;function dr(n,r){return x(n,wn(n),r)}function On(n,r,e){var t=r(n);return T(n)?t:K(t,e(n))}function G(n){return On(n,_,j)}function pr(n){return On(n,B,wn)}var Ar=Object.prototype,yr=Ar.hasOwnProperty;function Tr(n){var r=n.length,e=new n.constructor(r);return r&&typeof n[0]=="string"&&yr.call(n,"index")&&(e.index=n.index,e.input=n.input),e}function hr(n,r){var e=r?gn(n.buffer):n.buffer;return new n.constructor(e,n.byteOffset,n.byteLength)}var wr=/\w*$/;function Or(n){var r=new n.constructor(n.source,wr.exec(n));return r.lastIndex=n.lastIndex,r}var V=w?w.prototype:void 0,k=V?V.valueOf:void 0;function _r(n){return k?Object(k.call(n)):{}}var $r="[object Boolean]",Sr="[object Date]",Er="[object Map]",Pr="[object Number]",Ir="[object RegExp]",vr="[object Set]",Lr="[object String]",Rr="[object Symbol]",xr="[object ArrayBuffer]",Mr="[object DataView]",mr="[object Float32Array]",Cr="[object Float64Array]",Fr="[object Int8Array]",Dr="[object Int16Array]",Gr="[object Int32Array]",Ur="[object Uint8Array]",Br="[object Uint8ClampedArray]",Nr="[object Uint16Array]",Kr="[object Uint32Array]";function jr(n,r,e){var t=n.constructor;switch(r){case xr:return gn(n);case $r:case Sr:return new t(+n);case Mr:return hr(n,e);case mr:case Cr:case Fr:case Dr:case Gr:case Ur:case Br:case Nr:case Kr:return Cn(n,e);case Er:return new t;case Pr:case Lr:return new t(n);case Ir:return Or(n);case vr:return new t;case Rr:return _r(n)}}var Hr="[object Map]";function qr(n){return L(n)&&S(n)==Hr}var nn=R&&R.isMap,Yr=nn?ln(nn):qr,Zr="[object Set]";function Qr(n){return L(n)&&S(n)==Zr}var rn=R&&R.isSet,Xr=rn?ln(rn):Qr,Jr=1,Wr=2,zr=4,_n="[object Arguments]",Vr="[object Array]",kr="[object Boolean]",ne="[object Date]",re="[object Error]",$n="[object Function]",ee="[object GeneratorFunction]",te="[object Map]",ie="[object Number]",Sn="[object Object]",fe="[object RegExp]",ae="[object Set]",se="[object String]",ue="[object Symbol]",oe="[object WeakMap]",ge="[object ArrayBuffer]",le="[object DataView]",ce="[object Float32Array]",be="[object Float64Array]",de="[object Int8Array]",pe="[object Int16Array]",Ae="[object Int32Array]",ye="[object Uint8Array]",Te="[object Uint8ClampedArray]",he="[object Uint16Array]",we="[object Uint32Array]",g={};g[_n]=g[Vr]=g[ge]=g[le]=g[kr]=g[ne]=g[ce]=g[be]=g[de]=g[pe]=g[Ae]=g[te]=g[ie]=g[Sn]=g[fe]=g[ae]=g[se]=g[ue]=g[ye]=g[Te]=g[he]=g[we]=!0;g[re]=g[$n]=g[oe]=!1;function C(n,r,e,t,f,i){var a,s=r&Jr,u=r&Wr,b=r&zr;if(a!==void 0)return a;if(!sn(n))return n;var l=T(n);if(l){if(a=Tr(n),!s)return Fn(n,a)}else{var o=S(n),c=o==$n||o==ee;if(D(n))return Dn(n,s);if(o==Sn||o==_n||c&&!f){if(a=u||c?{}:Gn(n),!s)return u?dr(n,or(a,n)):cr(n,ur(a,n))}else{if(!g[o])return f?n:{};a=jr(n,o,s)}}i||(i=new $);var h=i.get(n);if(h)return h;i.set(n,a),Xr(n)?n.forEach(function(d){a.add(C(d,r,e,d,n,i))}):Yr(n)&&n.forEach(function(d,p){a.set(p,C(d,r,e,p,n,i))});var A=b?u?pr:G:u?B:_,y=l?void 0:A(n);return pn(y||n,function(d,p){y&&(p=d,d=n[p]),Un(a,p,C(d,r,e,p,n,i))}),a}var Oe="__lodash_hash_undefined__";function _e(n){return this.__data__.set(n,Oe),this}function $e(n){return this.__data__.has(n)}function E(n){var r=-1,e=n==null?0:n.length;for(this.__data__=new Bn;++r<e;)this.add(n[r])}E.prototype.add=E.prototype.push=_e;E.prototype.has=$e;function Se(n,r){for(var e=-1,t=n==null?0:n.length;++e<t;)if(r(n[e],e,n))return!0;return!1}function En(n,r){return n.has(r)}var Ee=1,Pe=2;function Pn(n,r,e,t,f,i){var a=e&Ee,s=n.length,u=r.length;if(s!=u&&!(a&&u>s))return!1;var b=i.get(n),l=i.get(r);if(b&&l)return b==r&&l==n;var o=-1,c=!0,h=e&Pe?new E:void 0;for(i.set(n,r),i.set(r,n);++o<s;){var A=n[o],y=r[o];if(t)var d=a?t(y,A,o,r,n,i):t(A,y,o,n,r,i);if(d!==void 0){if(d)continue;c=!1;break}if(h){if(!Se(r,function(p,O){if(!En(h,O)&&(A===p||f(A,p,e,t,i)))return h.push(O)})){c=!1;break}}else if(!(A===y||f(A,y,e,t,i))){c=!1;break}}return i.delete(n),i.delete(r),c}function Ie(n){var r=-1,e=Array(n.size);return n.forEach(function(t,f){e[++r]=[f,t]}),e}function H(n){var r=-1,e=Array(n.size);return n.forEach(function(t){e[++r]=t}),e}var ve=1,Le=2,Re="[object Boolean]",xe="[object Date]",Me="[object Error]",me="[object Map]",Ce="[object Number]",Fe="[object RegExp]",De="[object Set]",Ge="[object String]",Ue="[object Symbol]",Be="[object ArrayBuffer]",Ne="[object DataView]",en=w?w.prototype:void 0,F=en?en.valueOf:void 0;function Ke(n,r,e,t,f,i,a){switch(e){case Ne:if(n.byteLength!=r.byteLength||n.byteOffset!=r.byteOffset)return!1;n=n.buffer,r=r.buffer;case Be:return!(n.byteLength!=r.byteLength||!i(new Q(n),new Q(r)));case Re:case xe:case Ce:return Nn(+n,+r);case Me:return n.name==r.name&&n.message==r.message;case Fe:case Ge:return n==r+"";case me:var s=Ie;case De:var u=t&ve;if(s||(s=H),n.size!=r.size&&!u)return!1;var b=a.get(n);if(b)return b==r;t|=Le,a.set(n,r);var l=Pn(s(n),s(r),t,f,i,a);return a.delete(n),l;case Ue:if(F)return F.call(n)==F.call(r)}return!1}var je=1,He=Object.prototype,qe=He.hasOwnProperty;function Ye(n,r,e,t,f,i){var a=e&je,s=G(n),u=s.length,b=G(r),l=b.length;if(u!=l&&!a)return!1;for(var o=u;o--;){var c=s[o];if(!(a?c in r:qe.call(r,c)))return!1}var h=i.get(n),A=i.get(r);if(h&&A)return h==r&&A==n;var y=!0;i.set(n,r),i.set(r,n);for(var d=a;++o<u;){c=s[o];var p=n[c],O=r[c];if(t)var Z=a?t(O,p,c,r,n,i):t(p,O,c,n,r,i);if(!(Z===void 0?p===O||f(p,O,e,t,i):Z)){y=!1;break}d||(d=c=="constructor")}if(y&&!d){var P=n.constructor,I=r.constructor;P!=I&&"constructor"in n&&"constructor"in r&&!(typeof P=="function"&&P instanceof P&&typeof I=="function"&&I instanceof I)&&(y=!1)}return i.delete(n),i.delete(r),y}var Ze=1,tn="[object Arguments]",fn="[object Array]",v="[object Object]",Qe=Object.prototype,an=Qe.hasOwnProperty;function Xe(n,r,e,t,f,i){var a=T(n),s=T(r),u=a?fn:S(n),b=s?fn:S(r);u=u==tn?v:u,b=b==tn?v:b;var l=u==v,o=b==v,c=u==b;if(c&&D(n)){if(!D(r))return!1;a=!0,l=!1}if(c&&!l)return i||(i=new $),a||Kn(n)?Pn(n,r,e,t,f,i):Ke(n,r,u,e,t,f,i);if(!(e&Ze)){var h=l&&an.call(n,"__wrapped__"),A=o&&an.call(r,"__wrapped__");if(h||A){var y=h?n.value():n,d=A?r.value():r;return i||(i=new $),f(y,d,e,t,i)}}return c?(i||(i=new $),Ye(n,r,e,t,f,i)):!1}function q(n,r,e,t,f){return n===r?!0:n==null||r==null||!L(n)&&!L(r)?n!==n&&r!==r:Xe(n,r,e,t,q,f)}var Je=1,We=2;function ze(n,r,e,t){var f=e.length,i=f;if(n==null)return!i;for(n=Object(n);f--;){var a=e[f];if(a[2]?a[1]!==n[a[0]]:!(a[0]in n))return!1}for(;++f<i;){a=e[f];var s=a[0],u=n[s],b=a[1];if(a[2]){if(u===void 0&&!(s in n))return!1}else{var l=new $,o;if(!(o===void 0?q(b,u,Je|We,t,l):o))return!1}}return!0}function In(n){return n===n&&!sn(n)}function Ve(n){for(var r=_(n),e=r.length;e--;){var t=r[e],f=n[t];r[e]=[t,f,In(f)]}return r}function vn(n,r){return function(e){return e==null?!1:e[n]===r&&(r!==void 0||n in Object(e))}}function ke(n){var r=Ve(n);return r.length==1&&r[0][2]?vn(r[0][0],r[0][1]):function(e){return e===n||ze(e,n,r)}}function nt(n,r){return n!=null&&r in Object(n)}function rt(n,r,e){r=An(r,n);for(var t=-1,f=r.length,i=!1;++t<f;){var a=M(r[t]);if(!(i=n!=null&&e(n,a)))break;n=n[a]}return i||++t!=f?i:(f=n==null?0:n.length,!!f&&jn(f)&&Hn(a,f)&&(T(n)||on(n)))}function et(n,r){return n!=null&&rt(n,r,nt)}var tt=1,it=2;function ft(n,r){return N(n)&&In(r)?vn(M(n),r):function(e){var t=fr(e,n);return t===void 0&&t===r?et(e,n):q(r,t,tt|it)}}function at(n){return function(r){return r==null?void 0:r[n]}}function st(n){return function(r){return yn(r,n)}}function ut(n){return N(n)?at(M(n)):st(n)}function Ln(n){return typeof n=="function"?n:n==null?cn:typeof n=="object"?T(n)?ft(n[0],n[1]):ke(n):ut(n)}function ot(n,r){return n&&qn(n,r,_)}function gt(n,r){return function(e,t){if(e==null)return e;if(!un(e))return n(e,t);for(var f=e.length,i=-1,a=Object(e);++i<f&&t(a[i],i,a)!==!1;);return e}}var Y=gt(ot);function lt(n){return typeof n=="function"?n:cn}function Ot(n,r){var e=T(n)?pn:Y;return e(n,lt(r))}function ct(n,r){var e=[];return Y(n,function(t,f,i){r(t,f,i)&&e.push(t)}),e}function _t(n,r){var e=T(n)?Tn:ct;return e(n,Ln(r))}function bt(n,r){return bn(r,function(e){return n[e]})}function $t(n){return n==null?[]:bt(n,_(n))}function St(n){return n===void 0}function dt(n,r,e,t,f){return f(n,function(i,a,s){e=t?(t=!1,i):r(e,i,a,s)}),e}function Et(n,r,e){var t=T(n)?sr:dt,f=arguments.length<3;return t(n,Ln(r),e,f,Y)}var pt=1/0,At=m&&1/H(new m([,-0]))[1]==pt?function(n){return new m(n)}:Yn,yt=200;function Pt(n,r,e){var t=-1,f=Wn,i=n.length,a=!0,s=[],u=s;if(i>=yt){var b=r?null:At(n);if(b)return H(b);a=!1,f=En,u=new E}else u=r?[]:s;n:for(;++t<i;){var l=n[t],o=r?r(l):l;if(l=l!==0?l:0,a&&o===o){for(var c=u.length;c--;)if(u[c]===o)continue n;r&&u.push(o),s.push(l)}else f(u,o,e)||(u!==s&&u.push(o),s.push(l))}return s}export{ct as A,Se as B,Yn as C,E as S,Pt as a,C as b,wt as c,Ot as d,Ln as e,_t as f,Zn as g,Y as h,St as i,bn as j,_ as k,rt as l,An as m,yn as n,lt as o,ot as p,et as q,Et as r,ir as s,M as t,Wn as u,$t as v,En as w,Jn as x,pr as y,Tn as z};
@@ -1 +1 @@
1
- import{M as ln,N as an,O as Y,P as O,Q,R as un,S as y,T as tn,V as j,W as _,X as rn,Y as o,Z as on,$ as sn,a0 as fn}from"./mermaid.core-Ci5CSmlH.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,D,S,v,R,V,a){var E=D-l,i=S-h,n=V-v,d=a-R,u=d*E-n*i;if(!(u*u<y))return u=(n*(h-R)-d*(l-v))/u,[l+u*E,h+u*i]}function H(l,h,D,S,v,R,V){var a=l-D,E=h-S,i=(V?R:-R)/j(a*a+E*E),n=i*E,d=-i*a,u=l+n,s=h+d,f=D+n,c=S+d,W=(u+f)/2,t=(s+c)/2,m=f-u,g=c-s,A=m*m+g*g,T=v-R,P=u*c-f*s,I=(g<0?-1:1)*j(on(0,T*T*A-P*P)),M=(P*g-m*I)/A,N=(-P*m-g*I)/A,w=(P*g+m*I)/A,p=(-P*m+g*I)/A,x=M-W,e=N-t,r=w-W,X=p-t;return x*x+e*e>r*r+X*X&&(M=w,N=p),{cx:M,cy:N,x01:-n,y01:-d,x11:M*(v/T-1),y11:N*(v/T-1)}}function hn(){var l=cn,h=yn,D=Q(0),S=null,v=gn,R=dn,V=mn,a=null,E=ln(i);function i(){var n,d,u=+l.apply(this,arguments),s=+h.apply(this,arguments),f=v.apply(this,arguments)-un,c=R.apply(this,arguments)-un,W=rn(c-f),t=c>f;if(a||(a=n=E()),s<u&&(d=s,s=u,u=d),!(s>y))a.moveTo(0,0);else if(W>tn-y)a.moveTo(s*Y(f),s*O(f)),a.arc(0,0,s,f,c,!t),u>y&&(a.moveTo(u*Y(c),u*O(c)),a.arc(0,0,u,c,f,t));else{var m=f,g=c,A=f,T=c,P=W,I=W,M=V.apply(this,arguments)/2,N=M>y&&(S?+S.apply(this,arguments):j(u*u+s*s)),w=_(rn(s-u)/2,+D.apply(this,arguments)),p=w,x=w,e,r;if(N>y){var X=sn(N/u*O(M)),z=sn(N/s*O(M));(P-=X*2)>y?(X*=t?1:-1,A+=X,T-=X):(P=0,A=T=(f+c)/2),(I-=z*2)>y?(z*=t?1:-1,m+=z,g-=z):(I=0,m=g=(f+c)/2)}var Z=s*Y(m),$=s*O(m),B=u*Y(T),C=u*O(T);if(w>y){var F=s*Y(g),G=s*O(g),J=u*Y(A),K=u*O(A),q;if(W<an)if(q=pn(Z,$,J,K,F,G,B,C)){var L=Z-q[0],U=$-q[1],k=F-q[0],b=G-q[1],nn=1/O(fn((L*k+U*b)/(j(L*L+U*U)*j(k*k+b*b)))/2),en=j(q[0]*q[0]+q[1]*q[1]);p=_(w,(u-en)/(nn-1)),x=_(w,(s-en)/(nn+1))}else p=x=0}I>y?x>y?(e=H(J,K,Z,$,s,x,t),r=H(F,G,B,C,s,x,t),a.moveTo(e.cx+e.x01,e.cy+e.y01),x<w?a.arc(e.cx,e.cy,x,o(e.y01,e.x01),o(r.y01,r.x01),!t):(a.arc(e.cx,e.cy,x,o(e.y01,e.x01),o(e.y11,e.x11),!t),a.arc(0,0,s,o(e.cy+e.y11,e.cx+e.x11),o(r.cy+r.y11,r.cx+r.x11),!t),a.arc(r.cx,r.cy,x,o(r.y11,r.x11),o(r.y01,r.x01),!t))):(a.moveTo(Z,$),a.arc(0,0,s,m,g,!t)):a.moveTo(Z,$),!(u>y)||!(P>y)?a.lineTo(B,C):p>y?(e=H(B,C,F,G,u,-p,t),r=H(Z,$,J,K,u,-p,t),a.lineTo(e.cx+e.x01,e.cy+e.y01),p<w?a.arc(e.cx,e.cy,p,o(e.y01,e.x01),o(r.y01,r.x01),!t):(a.arc(e.cx,e.cy,p,o(e.y01,e.x01),o(e.y11,e.x11),!t),a.arc(0,0,u,o(e.cy+e.y11,e.cx+e.x11),o(r.cy+r.y11,r.cx+r.x11),t),a.arc(r.cx,r.cy,p,o(r.y11,r.x11),o(r.y01,r.x01),!t))):a.arc(0,0,u,T,A,t)}if(a.closePath(),n)return a=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-an/2;return[Y(d)*n,O(d)*n]},i.innerRadius=function(n){return arguments.length?(l=typeof n=="function"?n:Q(+n),i):l},i.outerRadius=function(n){return arguments.length?(h=typeof n=="function"?n:Q(+n),i):h},i.cornerRadius=function(n){return arguments.length?(D=typeof n=="function"?n:Q(+n),i):D},i.padRadius=function(n){return arguments.length?(S=n==null?null:typeof n=="function"?n:Q(+n),i):S},i.startAngle=function(n){return arguments.length?(v=typeof n=="function"?n:Q(+n),i):v},i.endAngle=function(n){return arguments.length?(R=typeof n=="function"?n:Q(+n),i):R},i.padAngle=function(n){return arguments.length?(V=typeof n=="function"?n:Q(+n),i):V},i.context=function(n){return arguments.length?(a=n??null,i):a},i}export{hn as d};
1
+ import{M as ln,N as an,O as Y,P as O,Q,R as un,S as y,T as tn,V as j,W as _,X as rn,Y as o,Z as on,$ as sn,a0 as fn}from"./mermaid.core-Ca_slkna.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,D,S,v,R,V,a){var E=D-l,i=S-h,n=V-v,d=a-R,u=d*E-n*i;if(!(u*u<y))return u=(n*(h-R)-d*(l-v))/u,[l+u*E,h+u*i]}function H(l,h,D,S,v,R,V){var a=l-D,E=h-S,i=(V?R:-R)/j(a*a+E*E),n=i*E,d=-i*a,u=l+n,s=h+d,f=D+n,c=S+d,W=(u+f)/2,t=(s+c)/2,m=f-u,g=c-s,A=m*m+g*g,T=v-R,P=u*c-f*s,I=(g<0?-1:1)*j(on(0,T*T*A-P*P)),M=(P*g-m*I)/A,N=(-P*m-g*I)/A,w=(P*g+m*I)/A,p=(-P*m+g*I)/A,x=M-W,e=N-t,r=w-W,X=p-t;return x*x+e*e>r*r+X*X&&(M=w,N=p),{cx:M,cy:N,x01:-n,y01:-d,x11:M*(v/T-1),y11:N*(v/T-1)}}function hn(){var l=cn,h=yn,D=Q(0),S=null,v=gn,R=dn,V=mn,a=null,E=ln(i);function i(){var n,d,u=+l.apply(this,arguments),s=+h.apply(this,arguments),f=v.apply(this,arguments)-un,c=R.apply(this,arguments)-un,W=rn(c-f),t=c>f;if(a||(a=n=E()),s<u&&(d=s,s=u,u=d),!(s>y))a.moveTo(0,0);else if(W>tn-y)a.moveTo(s*Y(f),s*O(f)),a.arc(0,0,s,f,c,!t),u>y&&(a.moveTo(u*Y(c),u*O(c)),a.arc(0,0,u,c,f,t));else{var m=f,g=c,A=f,T=c,P=W,I=W,M=V.apply(this,arguments)/2,N=M>y&&(S?+S.apply(this,arguments):j(u*u+s*s)),w=_(rn(s-u)/2,+D.apply(this,arguments)),p=w,x=w,e,r;if(N>y){var X=sn(N/u*O(M)),z=sn(N/s*O(M));(P-=X*2)>y?(X*=t?1:-1,A+=X,T-=X):(P=0,A=T=(f+c)/2),(I-=z*2)>y?(z*=t?1:-1,m+=z,g-=z):(I=0,m=g=(f+c)/2)}var Z=s*Y(m),$=s*O(m),B=u*Y(T),C=u*O(T);if(w>y){var F=s*Y(g),G=s*O(g),J=u*Y(A),K=u*O(A),q;if(W<an)if(q=pn(Z,$,J,K,F,G,B,C)){var L=Z-q[0],U=$-q[1],k=F-q[0],b=G-q[1],nn=1/O(fn((L*k+U*b)/(j(L*L+U*U)*j(k*k+b*b)))/2),en=j(q[0]*q[0]+q[1]*q[1]);p=_(w,(u-en)/(nn-1)),x=_(w,(s-en)/(nn+1))}else p=x=0}I>y?x>y?(e=H(J,K,Z,$,s,x,t),r=H(F,G,B,C,s,x,t),a.moveTo(e.cx+e.x01,e.cy+e.y01),x<w?a.arc(e.cx,e.cy,x,o(e.y01,e.x01),o(r.y01,r.x01),!t):(a.arc(e.cx,e.cy,x,o(e.y01,e.x01),o(e.y11,e.x11),!t),a.arc(0,0,s,o(e.cy+e.y11,e.cx+e.x11),o(r.cy+r.y11,r.cx+r.x11),!t),a.arc(r.cx,r.cy,x,o(r.y11,r.x11),o(r.y01,r.x01),!t))):(a.moveTo(Z,$),a.arc(0,0,s,m,g,!t)):a.moveTo(Z,$),!(u>y)||!(P>y)?a.lineTo(B,C):p>y?(e=H(B,C,F,G,u,-p,t),r=H(Z,$,J,K,u,-p,t),a.lineTo(e.cx+e.x01,e.cy+e.y01),p<w?a.arc(e.cx,e.cy,p,o(e.y01,e.x01),o(r.y01,r.x01),!t):(a.arc(e.cx,e.cy,p,o(e.y01,e.x01),o(e.y11,e.x11),!t),a.arc(0,0,u,o(e.cy+e.y11,e.cx+e.x11),o(r.cy+r.y11,r.cx+r.x11),t),a.arc(r.cx,r.cy,p,o(r.y11,r.x11),o(r.y01,r.x01),!t))):a.arc(0,0,u,T,A,t)}if(a.closePath(),n)return a=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-an/2;return[Y(d)*n,O(d)*n]},i.innerRadius=function(n){return arguments.length?(l=typeof n=="function"?n:Q(+n),i):l},i.outerRadius=function(n){return arguments.length?(h=typeof n=="function"?n:Q(+n),i):h},i.cornerRadius=function(n){return arguments.length?(D=typeof n=="function"?n:Q(+n),i):D},i.padRadius=function(n){return arguments.length?(S=n==null?null:typeof n=="function"?n:Q(+n),i):S},i.startAngle=function(n){return arguments.length?(v=typeof n=="function"?n:Q(+n),i):v},i.endAngle=function(n){return arguments.length?(R=typeof n=="function"?n:Q(+n),i):R},i.padAngle=function(n){return arguments.length?(V=typeof n=="function"?n:Q(+n),i):V},i.context=function(n){return arguments.length?(a=n??null,i):a},i}export{hn as d};