@burdenoff/microfe-planmagnet 2026.930.20 → 2026.930.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.
- package/dist/planmagnet/automation/AutomationExecutionsPanel.d.ts.map +1 -1
- package/dist/planmagnet/automation/AutomationExecutionsPanel.js +43 -39
- package/dist/planmagnet/automation/AutomationExecutionsPanel.js.map +1 -1
- package/dist/planmagnet/automation/AutomationRuleFields.d.ts +23 -4
- package/dist/planmagnet/automation/AutomationRuleFields.d.ts.map +1 -1
- package/dist/planmagnet/automation/AutomationRuleFields.js +255 -108
- package/dist/planmagnet/automation/AutomationRuleFields.js.map +1 -1
- package/dist/planmagnet/automation/automationRuleTypes.d.ts +138 -15
- package/dist/planmagnet/automation/automationRuleTypes.d.ts.map +1 -1
- package/dist/planmagnet/automation/automationRuleTypes.js +162 -22
- package/dist/planmagnet/automation/automationRuleTypes.js.map +1 -1
- package/dist/planmagnet/controls/AutomationRuleControls.d.ts.map +1 -1
- package/dist/planmagnet/controls/AutomationRuleControls.js +76 -71
- package/dist/planmagnet/controls/AutomationRuleControls.js.map +1 -1
- package/dist/planmagnet/pages/AutomationAutomationRuleDetailPagePage.d.ts.map +1 -1
- package/dist/planmagnet/pages/AutomationAutomationRuleDetailPagePage.js +85 -76
- package/dist/planmagnet/pages/AutomationAutomationRuleDetailPagePage.js.map +1 -1
- package/dist/planmagnet/pages/AutomationAutomationRulesPagePage.js +12 -12
- package/dist/planmagnet/pages/AutomationAutomationRulesPagePage.js.map +1 -1
- package/dist/planmagnet/pages/AutomationCreateAutomationRulePagePage.d.ts.map +1 -1
- package/dist/planmagnet/pages/AutomationCreateAutomationRulePagePage.js +48 -44
- package/dist/planmagnet/pages/AutomationCreateAutomationRulePagePage.js.map +1 -1
- package/dist/planmagnet/people/People.d.ts.map +1 -1
- package/dist/planmagnet/people/People.js +30 -17
- package/dist/planmagnet/people/People.js.map +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AutomationExecutionsPanel.d.ts","sourceRoot":"","sources":["../../../src/planmagnet/automation/AutomationExecutionsPanel.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"AutomationExecutionsPanel.d.ts","sourceRoot":"","sources":["../../../src/planmagnet/automation/AutomationExecutionsPanel.tsx"],"names":[],"mappings":"AA8DA,wBAAgB,yBAAyB,CAAC,EACxC,WAAW,EACX,MAAM,GACP,EAAE;IACD,WAAW,EAAE,MAAM,GAAG,SAAS,CAAC;IAChC,MAAM,EAAE,MAAM,CAAC;CAChB,2CAmEA"}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
1
|
+
import { splitExecutionErrors as e } from "./automationRuleTypes.js";
|
|
2
|
+
import { gql as t } from "@apollo/client";
|
|
3
|
+
import { useQuery as n } from "@apollo/client/react";
|
|
4
|
+
import { jsx as r, jsxs as i } from "react/jsx-runtime";
|
|
5
|
+
import { Badge as a } from "@burdenoff/fe-libs/ui";
|
|
5
6
|
//#region src/planmagnet/automation/AutomationExecutionsPanel.tsx
|
|
6
|
-
var
|
|
7
|
+
var o = t`
|
|
7
8
|
query AutomationExecutionsForRule(
|
|
8
9
|
$workspaceId: ID!
|
|
9
10
|
$filter: PlanmagnetAutomationExecutionFilter
|
|
@@ -25,7 +26,7 @@ var a = e`
|
|
|
25
26
|
}
|
|
26
27
|
}
|
|
27
28
|
}
|
|
28
|
-
`,
|
|
29
|
+
`, s = {
|
|
29
30
|
SUCCESS: "success",
|
|
30
31
|
PARTIAL_FAILURE: "warning",
|
|
31
32
|
FAILURE: "destructive",
|
|
@@ -33,75 +34,78 @@ var a = e`
|
|
|
33
34
|
PENDING: "secondary",
|
|
34
35
|
RUNNING: "secondary"
|
|
35
36
|
};
|
|
36
|
-
function
|
|
37
|
+
function c(e) {
|
|
37
38
|
if (!e || typeof e != "object") return null;
|
|
38
39
|
let t = e.dispatched;
|
|
39
40
|
return !Array.isArray(t) || t.length === 0 ? null : t.join(", ");
|
|
40
41
|
}
|
|
41
|
-
function
|
|
42
|
-
let { data:
|
|
42
|
+
function l({ workspaceId: t, ruleId: l }) {
|
|
43
|
+
let { data: u, loading: d, error: f } = n(o, {
|
|
43
44
|
variables: {
|
|
44
|
-
workspaceId:
|
|
45
|
-
filter: { ruleId:
|
|
45
|
+
workspaceId: t ?? "",
|
|
46
|
+
filter: { ruleId: l },
|
|
46
47
|
pagination: { first: 20 }
|
|
47
48
|
},
|
|
48
|
-
skip: !
|
|
49
|
+
skip: !t,
|
|
49
50
|
fetchPolicy: "cache-and-network"
|
|
50
|
-
}),
|
|
51
|
-
return
|
|
51
|
+
}), p = u?.planmagnetAutomationExecutions, m = p?.items ?? [];
|
|
52
|
+
return d && !u ? /* @__PURE__ */ r("p", {
|
|
52
53
|
className: "text-sm text-muted-foreground",
|
|
53
54
|
children: "Loading recent executions…"
|
|
54
|
-
}) :
|
|
55
|
+
}) : f ? /* @__PURE__ */ i("p", {
|
|
55
56
|
role: "alert",
|
|
56
57
|
className: "text-sm text-destructive",
|
|
57
|
-
children: ["Recent executions could not be loaded: ",
|
|
58
|
-
}) :
|
|
58
|
+
children: ["Recent executions could not be loaded: ", f.message]
|
|
59
|
+
}) : m.length === 0 ? /* @__PURE__ */ r("p", {
|
|
59
60
|
className: "text-sm text-muted-foreground",
|
|
60
61
|
children: "No executions yet. They appear here once the rule fires or is run manually."
|
|
61
|
-
}) : /* @__PURE__ */
|
|
62
|
+
}) : /* @__PURE__ */ i("div", {
|
|
62
63
|
className: "space-y-2",
|
|
63
|
-
children: [
|
|
64
|
-
let
|
|
65
|
-
return /* @__PURE__ */
|
|
64
|
+
children: [m.map((t) => {
|
|
65
|
+
let n = c(t.result);
|
|
66
|
+
return /* @__PURE__ */ r("div", {
|
|
66
67
|
className: "flex flex-wrap items-start justify-between gap-2 rounded-md border p-3 text-sm",
|
|
67
|
-
children: /* @__PURE__ */
|
|
68
|
+
children: /* @__PURE__ */ i("div", {
|
|
68
69
|
className: "min-w-0 space-y-1",
|
|
69
70
|
children: [
|
|
70
|
-
/* @__PURE__ */
|
|
71
|
+
/* @__PURE__ */ i("div", {
|
|
71
72
|
className: "flex items-center gap-2",
|
|
72
|
-
children: [/* @__PURE__ */
|
|
73
|
-
variant:
|
|
74
|
-
children:
|
|
75
|
-
}), /* @__PURE__ */
|
|
73
|
+
children: [/* @__PURE__ */ r(a, {
|
|
74
|
+
variant: s[t.status] ?? "secondary",
|
|
75
|
+
children: t.status.toLowerCase().replace("_", " ")
|
|
76
|
+
}), /* @__PURE__ */ i("span", {
|
|
76
77
|
className: "text-xs text-muted-foreground",
|
|
77
|
-
children: [new Date(
|
|
78
|
+
children: [new Date(t.executedAt).toLocaleString(), t.durationMs == null ? "" : ` · ${t.durationMs}ms`]
|
|
78
79
|
})]
|
|
79
80
|
}),
|
|
80
|
-
|
|
81
|
+
n && /* @__PURE__ */ i("p", {
|
|
81
82
|
className: "text-xs text-muted-foreground",
|
|
82
|
-
children: ["Ran: ",
|
|
83
|
+
children: ["Ran: ", n]
|
|
83
84
|
}),
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
85
|
+
t.errorMessage && /* @__PURE__ */ r("ul", {
|
|
86
|
+
className: "space-y-0.5",
|
|
87
|
+
children: e(t.errorMessage).map((e, t) => /* @__PURE__ */ r("li", {
|
|
88
|
+
role: "alert",
|
|
89
|
+
className: "text-xs text-destructive",
|
|
90
|
+
children: e
|
|
91
|
+
}, t))
|
|
88
92
|
})
|
|
89
93
|
]
|
|
90
94
|
})
|
|
91
|
-
},
|
|
92
|
-
}),
|
|
95
|
+
}, t.id);
|
|
96
|
+
}), p && p.totalCount > m.length && /* @__PURE__ */ i("p", {
|
|
93
97
|
className: "text-xs text-muted-foreground",
|
|
94
98
|
children: [
|
|
95
99
|
"Showing the ",
|
|
96
|
-
|
|
100
|
+
m.length,
|
|
97
101
|
" most recent of ",
|
|
98
|
-
|
|
102
|
+
p.totalCount,
|
|
99
103
|
"."
|
|
100
104
|
]
|
|
101
105
|
})]
|
|
102
106
|
});
|
|
103
107
|
}
|
|
104
108
|
//#endregion
|
|
105
|
-
export {
|
|
109
|
+
export { l as AutomationExecutionsPanel };
|
|
106
110
|
|
|
107
111
|
//# sourceMappingURL=AutomationExecutionsPanel.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AutomationExecutionsPanel.js","names":[],"sources":["../../../src/planmagnet/automation/AutomationExecutionsPanel.tsx"],"sourcesContent":["import { gql } from '@apollo/client';\nimport { useQuery } from '@apollo/client/react';\nimport { Badge } from '@burdenoff/fe-libs/ui';\n\n/**\n * Recent executions for one rule (BOFF-8047, capability register row \"Automation rules\": gate 3/UI was the only\n * gap — `planmagnetAutomationExecutions` has been real and prod-verified since BOFF-7822/8043). Every run this\n * engine has EVER attempted for the rule is here, including a non-match (`SKIPPED`, \"conditions did not match\")\n * from a manual run and a `PARTIAL_FAILURE` where only some declared actions dispatched — so a rule that looks\n * \"successful\" in the header can still show failures here.\n */\n\nconst EXECUTIONS = gql`\n query AutomationExecutionsForRule(\n $workspaceId: ID!\n $filter: PlanmagnetAutomationExecutionFilter\n $pagination: PlanmagnetPaginationInput\n ) {\n planmagnetAutomationExecutions(\n workspaceId: $workspaceId\n filter: $filter\n pagination: $pagination\n ) {\n totalCount\n items {\n id\n status\n errorMessage\n result\n durationMs\n executedAt\n }\n }\n }\n`;\n\ninterface ExecutionRow {\n id: string;\n status: string;\n errorMessage: string | null;\n result: unknown;\n durationMs: number | null;\n executedAt: string;\n}\n\nconst STATUS_VARIANT: Record<string, 'success' | 'warning' | 'destructive' | 'secondary'> = {\n SUCCESS: 'success',\n PARTIAL_FAILURE: 'warning',\n FAILURE: 'destructive',\n SKIPPED: 'secondary',\n PENDING: 'secondary',\n RUNNING: 'secondary',\n};\n\nfunction dispatchedSummary(result: unknown): string | null {\n if (!result || typeof result !== 'object') return null;\n const dispatched = (result as { dispatched?: unknown }).dispatched;\n if (!Array.isArray(dispatched) || dispatched.length === 0) return null;\n return dispatched.join(', ');\n}\n\nexport function AutomationExecutionsPanel({\n workspaceId,\n ruleId,\n}: {\n workspaceId: string | undefined;\n ruleId: string;\n}) {\n const { data, loading, error } = useQuery<{\n planmagnetAutomationExecutions: { totalCount: number; items: ExecutionRow[] };\n }>(EXECUTIONS, {\n variables: { workspaceId: workspaceId ?? '', filter: { ruleId }, pagination: { first: 20 } },\n skip: !workspaceId,\n fetchPolicy: 'cache-and-network',\n });\n\n const list = data?.planmagnetAutomationExecutions;\n const executions = list?.items ?? [];\n\n if (loading && !data)\n return <p className=\"text-sm text-muted-foreground\">Loading recent executions…</p>;\n if (error)\n return (\n <p role=\"alert\" className=\"text-sm text-destructive\">\n Recent executions could not be loaded: {error.message}\n </p>\n );\n if (executions.length === 0)\n return (\n <p className=\"text-sm text-muted-foreground\">\n No executions yet. They appear here once the rule fires or is run manually.\n </p>\n );\n\n return (\n <div className=\"space-y-2\">\n {executions.map((execution) => {\n const dispatched = dispatchedSummary(execution.result);\n return (\n <div\n key={execution.id}\n className=\"flex flex-wrap items-start justify-between gap-2 rounded-md border p-3 text-sm\"\n >\n <div className=\"min-w-0 space-y-1\">\n <div className=\"flex items-center gap-2\">\n <Badge variant={STATUS_VARIANT[execution.status] ?? 'secondary'}>\n {execution.status.toLowerCase().replace('_', ' ')}\n </Badge>\n <span className=\"text-xs text-muted-foreground\">\n {new Date(execution.executedAt).toLocaleString()}\n {execution.durationMs != null ? ` · ${execution.durationMs}ms` : ''}\n </span>\n </div>\n {dispatched && <p className=\"text-xs text-muted-foreground\">Ran: {dispatched}</p>}\n {execution.errorMessage && (\n <
|
|
1
|
+
{"version":3,"file":"AutomationExecutionsPanel.js","names":[],"sources":["../../../src/planmagnet/automation/AutomationExecutionsPanel.tsx"],"sourcesContent":["import { gql } from '@apollo/client';\nimport { useQuery } from '@apollo/client/react';\nimport { Badge } from '@burdenoff/fe-libs/ui';\nimport { splitExecutionErrors } from './automationRuleTypes';\n\n/**\n * Recent executions for one rule (BOFF-8047, capability register row \"Automation rules\": gate 3/UI was the only\n * gap — `planmagnetAutomationExecutions` has been real and prod-verified since BOFF-7822/8043). Every run this\n * engine has EVER attempted for the rule is here, including a non-match (`SKIPPED`, \"conditions did not match\")\n * from a manual run and a `PARTIAL_FAILURE` where only some declared actions dispatched — so a rule that looks\n * \"successful\" in the header can still show failures here.\n */\n\nconst EXECUTIONS = gql`\n query AutomationExecutionsForRule(\n $workspaceId: ID!\n $filter: PlanmagnetAutomationExecutionFilter\n $pagination: PlanmagnetPaginationInput\n ) {\n planmagnetAutomationExecutions(\n workspaceId: $workspaceId\n filter: $filter\n pagination: $pagination\n ) {\n totalCount\n items {\n id\n status\n errorMessage\n result\n durationMs\n executedAt\n }\n }\n }\n`;\n\ninterface ExecutionRow {\n id: string;\n status: string;\n errorMessage: string | null;\n result: unknown;\n durationMs: number | null;\n executedAt: string;\n}\n\nconst STATUS_VARIANT: Record<string, 'success' | 'warning' | 'destructive' | 'secondary'> = {\n SUCCESS: 'success',\n PARTIAL_FAILURE: 'warning',\n FAILURE: 'destructive',\n SKIPPED: 'secondary',\n PENDING: 'secondary',\n RUNNING: 'secondary',\n};\n\nfunction dispatchedSummary(result: unknown): string | null {\n if (!result || typeof result !== 'object') return null;\n const dispatched = (result as { dispatched?: unknown }).dispatched;\n if (!Array.isArray(dispatched) || dispatched.length === 0) return null;\n return dispatched.join(', ');\n}\n\nexport function AutomationExecutionsPanel({\n workspaceId,\n ruleId,\n}: {\n workspaceId: string | undefined;\n ruleId: string;\n}) {\n const { data, loading, error } = useQuery<{\n planmagnetAutomationExecutions: { totalCount: number; items: ExecutionRow[] };\n }>(EXECUTIONS, {\n variables: { workspaceId: workspaceId ?? '', filter: { ruleId }, pagination: { first: 20 } },\n skip: !workspaceId,\n fetchPolicy: 'cache-and-network',\n });\n\n const list = data?.planmagnetAutomationExecutions;\n const executions = list?.items ?? [];\n\n if (loading && !data)\n return <p className=\"text-sm text-muted-foreground\">Loading recent executions…</p>;\n if (error)\n return (\n <p role=\"alert\" className=\"text-sm text-destructive\">\n Recent executions could not be loaded: {error.message}\n </p>\n );\n if (executions.length === 0)\n return (\n <p className=\"text-sm text-muted-foreground\">\n No executions yet. They appear here once the rule fires or is run manually.\n </p>\n );\n\n return (\n <div className=\"space-y-2\">\n {executions.map((execution) => {\n const dispatched = dispatchedSummary(execution.result);\n return (\n <div\n key={execution.id}\n className=\"flex flex-wrap items-start justify-between gap-2 rounded-md border p-3 text-sm\"\n >\n <div className=\"min-w-0 space-y-1\">\n <div className=\"flex items-center gap-2\">\n <Badge variant={STATUS_VARIANT[execution.status] ?? 'secondary'}>\n {execution.status.toLowerCase().replace('_', ' ')}\n </Badge>\n <span className=\"text-xs text-muted-foreground\">\n {new Date(execution.executedAt).toLocaleString()}\n {execution.durationMs != null ? ` · ${execution.durationMs}ms` : ''}\n </span>\n </div>\n {dispatched && <p className=\"text-xs text-muted-foreground\">Ran: {dispatched}</p>}\n {execution.errorMessage && (\n <ul className=\"space-y-0.5\">\n {splitExecutionErrors(execution.errorMessage).map((line, i) => (\n <li key={i} role=\"alert\" className=\"text-xs text-destructive\">\n {line}\n </li>\n ))}\n </ul>\n )}\n </div>\n </div>\n );\n })}\n {list && list.totalCount > executions.length && (\n <p className=\"text-xs text-muted-foreground\">\n Showing the {executions.length} most recent of {list.totalCount}.\n </p>\n )}\n </div>\n );\n}\n"],"mappings":";;;;;;AAaA,IAAM,IAAa,CAAG;;;;;;;;;;;;;;;;;;;;;;GAiChB,IAAsF;CAC1F,SAAS;CACT,iBAAiB;CACjB,SAAS;CACT,SAAS;CACT,SAAS;CACT,SAAS;CACV;AAED,SAAS,EAAkB,GAAgC;AACzD,KAAI,CAAC,KAAU,OAAO,KAAW,SAAU,QAAO;CAClD,IAAM,IAAc,EAAoC;AAExD,QADI,CAAC,MAAM,QAAQ,EAAW,IAAI,EAAW,WAAW,IAAU,O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EH;;IACF,EAxBC,EAAU,GAwBX;IAER,EACD,KAAQ,EAAK,aAAa,EAAW,UACpC,kBAAC,KAAD;GAAG,WAAU;aAAb;IAA6C;IAC9B,EAAW;IAAO;IAAiB,EAAK;IAAW;IAC9D;KAEF"}
|
|
@@ -1,24 +1,43 @@
|
|
|
1
1
|
import { RuleAction, RuleCondition, TriggerType } from './automationRuleTypes';
|
|
2
2
|
|
|
3
|
-
/** The editable shape both the create and edit pages share.
|
|
3
|
+
/** The editable shape both the create and edit pages share. `conditions` is used for every trigger except
|
|
4
|
+
* `SCHEDULE`, which has its own dedicated shape (`scheduleStatuses`/`scheduleNotUpdatedForDays`) — see
|
|
5
|
+
* `automationRuleTypes.ts`'s `ScheduleConditions` doc comment for why it cannot reuse the generic editor. */
|
|
4
6
|
export interface AutomationRuleFormState {
|
|
5
7
|
name: string;
|
|
6
8
|
description: string;
|
|
7
9
|
projectId: string;
|
|
8
10
|
triggerType: TriggerType;
|
|
9
11
|
conditions: RuleCondition[];
|
|
12
|
+
scheduleStatuses: string[];
|
|
13
|
+
scheduleNotUpdatedForDays: string;
|
|
10
14
|
actions: RuleAction[];
|
|
11
15
|
}
|
|
12
|
-
/** The actions builder:
|
|
13
|
-
|
|
16
|
+
/** The actions builder: the five types the engine can dispatch, trigger-aware (BOFF-8047 follow-up —
|
|
17
|
+
* automationRuleTypes.ts's header has the full scope). `POST_TO_CHANNEL` is always visible but disabled (gated
|
|
18
|
+
* off, BOFF-8240). For a trigger in `NO_WORK_ITEM_TRIGGER_TYPES` (the sprint and release triggers), no work-item
|
|
19
|
+
* action can ever dispatch — existing rows stay visible (and removable) so a rule saved before this restriction
|
|
20
|
+
* existed can still be cleaned up, but they are frozen and no new one can be added. */
|
|
21
|
+
export declare function ActionsEditor({ actions, triggerType, onChange, }: {
|
|
14
22
|
actions: RuleAction[];
|
|
23
|
+
triggerType: TriggerType;
|
|
15
24
|
onChange: (next: RuleAction[]) => void;
|
|
16
25
|
}): import("react/jsx-runtime").JSX.Element;
|
|
17
|
-
/** The conditions builder. A rule with no conditions always matches — the gate is opt-in (engine default).
|
|
26
|
+
/** The conditions builder. A rule with no conditions always matches — the gate is opt-in (engine default). Used
|
|
27
|
+
* for every trigger except `SCHEDULE` — see `ScheduleConditionsEditor` below. */
|
|
18
28
|
export declare function ConditionsEditor({ conditions, onChange, }: {
|
|
19
29
|
conditions: RuleCondition[];
|
|
20
30
|
onChange: (next: RuleCondition[]) => void;
|
|
21
31
|
}): import("react/jsx-runtime").JSX.Element;
|
|
32
|
+
/** The SCHEDULE trigger's own condition editor (AUT-27): statuses (multi-select of `WorkItemStatus`) + "not
|
|
33
|
+
* updated for N days", writing exactly the `{ status, notUpdatedForDays }` shape `parseScheduleConditions`
|
|
34
|
+
* (automation-scheduler.ts) reads — never the generic field/operator/value array. */
|
|
35
|
+
export declare function ScheduleConditionsEditor({ statuses, days, onStatusesChange, onDaysChange, }: {
|
|
36
|
+
statuses: string[];
|
|
37
|
+
days: string;
|
|
38
|
+
onStatusesChange: (next: string[]) => void;
|
|
39
|
+
onDaysChange: (next: string) => void;
|
|
40
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
22
41
|
/** Name, description, project, trigger, conditions and actions — the fields create and edit share. */
|
|
23
42
|
export declare function AutomationRuleFields({ form, onChange, projectLocked, }: {
|
|
24
43
|
form: AutomationRuleFormState;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AutomationRuleFields.d.ts","sourceRoot":"","sources":["../../../src/planmagnet/automation/AutomationRuleFields.tsx"],"names":[],"mappings":"AASA,OAAO,
|
|
1
|
+
{"version":3,"file":"AutomationRuleFields.d.ts","sourceRoot":"","sources":["../../../src/planmagnet/automation/AutomationRuleFields.tsx"],"names":[],"mappings":"AASA,OAAO,EAwBL,KAAK,UAAU,EACf,KAAK,aAAa,EAClB,KAAK,WAAW,EACjB,MAAM,uBAAuB,CAAC;AAE/B;;8GAE8G;AAC9G,MAAM,WAAW,uBAAuB;IACtC,IAAI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