@genspectrum/dashboard-components 0.19.6 → 0.19.8

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 (28) hide show
  1. package/README.md +24 -8
  2. package/custom-elements.json +4 -4
  3. package/dist/{LineageFilterChangedEvent-Cqa8Frcf.js → NumberRangeFilterChangedEvent-RZ8haPHq.js} +30 -5
  4. package/dist/NumberRangeFilterChangedEvent-RZ8haPHq.js.map +1 -0
  5. package/dist/assets/mutationOverTimeWorker-CBXsEsiT.js.map +1 -0
  6. package/dist/components.d.ts +35 -35
  7. package/dist/components.js +150 -66
  8. package/dist/components.js.map +1 -1
  9. package/dist/util.d.ts +43 -33
  10. package/dist/util.js +3 -1
  11. package/package.json +1 -1
  12. package/src/lapisApi/LineageDefinition.ts +9 -0
  13. package/src/lapisApi/lapisApi.ts +27 -0
  14. package/src/preact/lineageFilter/__mockData__/lineageDefinition.json +38118 -0
  15. package/src/preact/lineageFilter/fetchLineageAutocompleteList.spec.ts +264 -6
  16. package/src/preact/lineageFilter/fetchLineageAutocompleteList.ts +104 -7
  17. package/src/preact/lineageFilter/lineage-filter.stories.tsx +13 -1
  18. package/src/preact/lineageFilter/lineage-filter.tsx +21 -11
  19. package/src/preact/numberRangeFilter/NumberRangeFilterChangedEvent.ts +1 -1
  20. package/src/utilEntrypoint.ts +6 -1
  21. package/src/web-components/input/gs-lineage-filter.stories.ts +13 -1
  22. package/src/web-components/input/gs-number-range-filter.tsx +2 -2
  23. package/standalone-bundle/assets/mutationOverTimeWorker-CN4SJC7C.js.map +1 -0
  24. package/standalone-bundle/dashboard-components.js +2584 -2493
  25. package/standalone-bundle/dashboard-components.js.map +1 -1
  26. package/dist/LineageFilterChangedEvent-Cqa8Frcf.js.map +0 -1
  27. package/dist/assets/mutationOverTimeWorker-DQGh08AS.js.map +0 -1
  28. package/standalone-bundle/assets/mutationOverTimeWorker-DAf2_NiP.js.map +0 -1
package/README.md CHANGED
@@ -54,9 +54,10 @@ We use [Lit](https://lit.dev/) to create web components.
54
54
 
55
55
  We have split the package into two parts:
56
56
 
57
- - The components, which are web components that can be used in the browser.
57
+ - The web components that can be used in the browser.
58
58
  - They can be imported with `import '@genspectrum/dashboard-components/components';`
59
- - utility functions, which can also be used in a node environment.
59
+ - Note that this imports all components at once. The `import` statement will make the web components available in the browser.
60
+ - Utility functions, types and constants which can also be used in a node environment.
60
61
  - They can be imported with `import '@genspectrum/dashboard-components/util';`
61
62
 
62
63
  We primarily provide two kinds of components:
@@ -65,7 +66,7 @@ We primarily provide two kinds of components:
65
66
  - Those components fetch data from the LAPIS instance and visualize it.
66
67
  - **Input components** that let you specify sequence filters for the LAPIS requests.
67
68
  - Input changes will fire events that can be listened to by the visualization components.
68
- It is the responsibility of the dashbaord maintainer to listen to those events
69
+ It is the responsibility of the dashboard maintainer to listen to those events
69
70
  and to wire the data correctly into the visualization components.
70
71
 
71
72
  ## Local Development
@@ -105,16 +106,26 @@ npm run storybook
105
106
  ```
106
107
 
107
108
  Then, open http://localhost:6006/ and http://localhost:6007/ in your browser.
108
- The Storybook on port 6007 uses the Preact build.
109
- The Storybook on port 6006 uses the Lit build and includes the Preact Storybook.
110
- Note that some Storybook integrations (such as interaction tests) do not work in the included Storybook.
111
- We only deploy the Lit part of the Storybook to GitHub pages.
112
109
 
110
+ The Storybook on port 6006 uses the Lit build.
111
+ Its purpose is public documentation and live demonstration of the publicly available web components.
112
+ It should focus on stories that are relevant for users of the components.
113
+ This storybook is deployed to GitHub pages.
114
+
115
+ Every web component should have a separate "Docs" page.
113
116
  Storybook offers an integration of the custom-elements.json that can generate doc pages for the web components.
114
117
  Refer to the
115
118
  [Custom Elements Manifest Docs](https://custom-elements-manifest.open-wc.org/analyzer/getting-started/#documenting-your-components)
116
119
  for how to document the components using JSDoc.
117
120
 
121
+ The Storybook on port 6007 uses the Preact build.
122
+ Its purpose is to test the components in a Preact environment.
123
+ It is not meant to be used outside the development environment
124
+ and contains many stories that are not relevant for the public (e.g. because they serve as a unit test for some edge case).
125
+ It should contain stories and corresponding unit tests for every Preact component that is relevant in a wider context
126
+ (either because it is a top level component that is also exposed as a web component
127
+ or because it is supposed to be reusable in other components).
128
+
118
129
  ### Testing
119
130
 
120
131
  We use vitest to run our unit tests:
@@ -147,7 +158,12 @@ We follow this testing concept:
147
158
 
148
159
  #### Mocking
149
160
 
150
- All our tests use mock data. In general, we use `storybook-addon-fetch-mock` for all outgoing requests. This strategy
161
+ All our tests use mock data.
162
+ Make sure that stories don't issue actual HTTP calls to LAPIS or other services.
163
+ This is to make sure that we have stable tests in CI that don't depend on the availability of other services.
164
+ We still use the real LAPIS URL so that a user can change the filters in a story and will still see data.
165
+
166
+ In general, we use `storybook-addon-fetch-mock` for all outgoing requests. This strategy
151
167
  cannot be used for components that use web workers, like gs-mutations-over-time. Therefore, we created custom mock
152
168
  workers that return mocked data. The mock workers are enabled in the package.json using
153
169
  Node.js [subpath imports](https://nodejs.org/api/packages.html#subpath-imports), following the guide
@@ -594,7 +594,7 @@
594
594
  "type": {
595
595
  "text": "Meta<Required<LineageFilterProps>>"
596
596
  },
597
- "default": "{ title: 'Input/Lineage filter', component: 'gs-lineage-filter', parameters: withComponentDocs({ actions: { handles: [gsEventNames.lineageFilterChanged, ...previewHandles], }, fetchMock: { mocks: [ { matcher: { name: 'pangoLineage', url: AGGREGATED_ENDPOINT, body: { fields: ['pangoLineage'], country: 'Germany', }, }, response: { status: 200, body: aggregatedData, }, }, ], }, componentDocs: { opensShadowDom: true, expectsChildren: false, codeExample, }, }), tags: ['autodocs'], argTypes: { lapisField: { control: { type: 'select', }, options: ['host'], }, placeholderText: { control: { type: 'text', }, }, value: { control: { type: 'text', }, }, width: { control: { type: 'text', }, }, lapisFilter: { control: { type: 'object', }, }, }, }"
597
+ "default": "{ title: 'Input/Lineage filter', component: 'gs-lineage-filter', parameters: withComponentDocs({ actions: { handles: [gsEventNames.lineageFilterChanged, ...previewHandles], }, fetchMock: { mocks: [ { matcher: { name: 'pangoLineage', url: AGGREGATED_ENDPOINT, body: { fields: ['pangoLineage'], country: 'Germany', }, }, response: { status: 200, body: aggregatedData, }, }, { matcher: { name: 'lineageDefinition', url: lineageDefinitionEndpoint(LAPIS_URL, 'pangoLineage'), }, response: { status: 200, body: lineageDefinition, }, }, ], }, componentDocs: { opensShadowDom: true, expectsChildren: false, codeExample, }, }), tags: ['autodocs'], argTypes: { lapisField: { control: { type: 'select', }, options: ['host'], }, placeholderText: { control: { type: 'text', }, }, value: { control: { type: 'text', }, }, width: { control: { type: 'text', }, }, lapisFilter: { control: { type: 'object', }, }, }, }"
598
598
  },
599
599
  {
600
600
  "kind": "variable",
@@ -626,7 +626,7 @@
626
626
  "type": {
627
627
  "text": "StoryObj<Required<LineageFilterProps>>"
628
628
  },
629
- "default": "{ ...LineageFilter, play: async ({ canvasElement, step }) => { const canvas = await withinShadowRoot(canvasElement, 'gs-lineage-filter'); const inputField = () => canvas.getByPlaceholderText('Enter a lineage'); const listenerMock = fn(); await step('Setup event listener mock', () => { canvasElement.addEventListener(gsEventNames.lineageFilterChanged, listenerMock); }); await step('wait until data is loaded', async () => { await waitFor(() => { return expect(inputField()).toBeEnabled(); }); }); await step('Enters an invalid lineage value', async () => { await userEvent.type(inputField(), 'notInList'); await expect(listenerMock).not.toHaveBeenCalled(); }); await step('Empty input', async () => { await userEvent.type(inputField(), '{backspace>9/}'); await userEvent.click(canvas.getByLabelText('toggle menu')); await waitFor(() => { return expect(listenerMock.mock.calls.at(-1)![0].detail).toStrictEqual({ pangoLineage: undefined, }); }); }); await step('Enter a valid lineage value', async () => { await userEvent.type(inputField(), 'B.1.1.7*'); await userEvent.click(canvas.getByRole('option', { name: 'B.1.1.7*' })); await waitFor(() => { return expect(listenerMock.mock.calls.at(-1)![0].detail).toStrictEqual({ pangoLineage: 'B.1.1.7*', }); }); }); }, args: { ...LineageFilter.args, value: '', }, }"
629
+ "default": "{ ...LineageFilter, play: async ({ canvasElement, step }) => { const canvas = await withinShadowRoot(canvasElement, 'gs-lineage-filter'); const inputField = () => canvas.getByPlaceholderText('Enter a lineage'); const listenerMock = fn(); await step('Setup event listener mock', () => { canvasElement.addEventListener(gsEventNames.lineageFilterChanged, listenerMock); }); await step('wait until data is loaded', async () => { await waitFor(() => { return expect(inputField()).toBeEnabled(); }); }); await step('Enters an invalid lineage value', async () => { await userEvent.type(inputField(), 'notInList'); await expect(listenerMock).not.toHaveBeenCalled(); }); await step('Empty input', async () => { await userEvent.type(inputField(), '{backspace>9/}'); await userEvent.click(canvas.getByLabelText('toggle menu')); await waitFor(() => { return expect(listenerMock.mock.calls.at(-1)![0].detail).toStrictEqual({ pangoLineage: undefined, }); }); }); await step('Enter a valid lineage value', async () => { await userEvent.type(inputField(), 'B.1.1.7*'); await userEvent.click(canvas.getByRole('option', { name: 'B.1.1.7*(677146)' })); await waitFor(() => { return expect(listenerMock.mock.calls.at(-1)![0].detail).toStrictEqual({ pangoLineage: 'B.1.1.7*', }); }); }); }, args: { ...LineageFilter.args, value: '', }, }"
630
630
  }
631
631
  ],
632
632
  "exports": [
@@ -1323,14 +1323,14 @@
1323
1323
  "events": [
1324
1324
  {
1325
1325
  "type": {
1326
- "text": "CustomEvent<Record<string, string | undefined>>"
1326
+ "text": "CustomEvent<Record<string, number | undefined>>"
1327
1327
  },
1328
1328
  "description": "Fired when the slider is released, `onBlur` on the input fields after the user has typed a valid range in the input fields, or when one of the input fields is cleared. The `details` of this event contain an object with `${lapisField}From` and `${lapisField}To` as keys. The values are the numbers from the input fields or `undefined` if the input field is empty: ``` { [`${lapisField}From`]: number | undefined [`${lapisField}To`]: number | undefined } ``` Example: ``` { ageFrom: 18, ageTo: undefined } ```",
1329
1329
  "name": "gs-number-range-filter-changed"
1330
1330
  },
1331
1331
  {
1332
1332
  "type": {
1333
- "text": "CustomEvent<Record<string, string | undefined>>"
1333
+ "text": "CustomEvent<Record<string, number | undefined>>"
1334
1334
  },
1335
1335
  "description": "Similar to the `gs-number-range-filter-changed` event, but contains an `event.detail` that has a fixed format: ``` { min: number | undefined max: number | undefined } ``` This event should be used when you want to control this component externally. The `event.detail` can be used as the value of the component. Example: ``` { min: 18, max: undefined } ```",
1336
1336
  "name": "gs-number-range-value-changed"
@@ -143,17 +143,42 @@ class LineageFilterChangedEvent extends CustomEvent {
143
143
  });
144
144
  }
145
145
  }
146
+ const numberRangeSchema = z.object({
147
+ min: z.number().optional(),
148
+ max: z.number().optional()
149
+ });
150
+ class NumberRangeValueChangedEvent extends CustomEvent {
151
+ constructor(detail) {
152
+ super(gsEventNames.numberRangeValueChanged, {
153
+ detail,
154
+ bubbles: true,
155
+ composed: true
156
+ });
157
+ }
158
+ }
159
+ class NumberRangeFilterChangedEvent extends CustomEvent {
160
+ constructor(detail) {
161
+ super(gsEventNames.numberRangeFilterChanged, {
162
+ detail,
163
+ bubbles: true,
164
+ composed: true
165
+ });
166
+ }
167
+ }
146
168
  export {
147
169
  DateRangeOptionChangedEvent as D,
148
170
  LocationChangedEvent as L,
171
+ NumberRangeFilterChangedEvent as N,
149
172
  TextFilterChangedEvent as T,
150
173
  LineageFilterChangedEvent as a,
151
- dateRangeValueSchema as b,
152
- dateRangeOptionSchema as c,
174
+ NumberRangeValueChangedEvent as b,
175
+ dateRangeValueSchema as c,
153
176
  dateRangeOptionPresets as d,
154
- toYYYYMMDD as e,
155
- lapisLocationFilterSchema as f,
177
+ dateRangeOptionSchema as e,
178
+ toYYYYMMDD as f,
156
179
  gsEventNames as g,
180
+ lapisLocationFilterSchema as h,
181
+ numberRangeSchema as i,
157
182
  lapisFilterSchema as l,
158
183
  mutationsFilterSchema as m,
159
184
  namedLapisFilterSchema as n,
@@ -161,4 +186,4 @@ export {
161
186
  temporalGranularitySchema as t,
162
187
  views as v
163
188
  };
164
- //# sourceMappingURL=LineageFilterChangedEvent-Cqa8Frcf.js.map
189
+ //# sourceMappingURL=NumberRangeFilterChangedEvent-RZ8haPHq.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NumberRangeFilterChangedEvent-RZ8haPHq.js","sources":["../src/utils/gsEventNames.ts","../src/types.ts","../src/preact/dateRangeFilter/dateConversion.ts","../src/preact/dateRangeFilter/dateRangeOption.ts","../src/preact/locationFilter/LocationChangedEvent.ts","../src/preact/textFilter/TextFilterChangedEvent.ts","../src/preact/lineageFilter/LineageFilterChangedEvent.ts","../src/preact/numberRangeFilter/NumberRangeFilterChangedEvent.ts"],"sourcesContent":["export const gsEventNames = {\n error: 'gs-error',\n componentFinishedLoading: 'gs-component-finished-loading',\n dateRangeFilterChanged: 'gs-date-range-filter-changed',\n dateRangeOptionChanged: 'gs-date-range-option-changed',\n mutationFilterChanged: 'gs-mutation-filter-changed',\n lineageFilterChanged: 'gs-lineage-filter-changed',\n locationChanged: 'gs-location-changed',\n textFilterChanged: 'gs-text-filter-changed',\n numberRangeFilterChanged: 'gs-number-range-filter-changed',\n numberRangeValueChanged: 'gs-number-range-value-changed',\n} as const;\n","import z from 'zod';\n\nimport {\n type Deletion,\n type DeletionClass,\n type Insertion,\n type InsertionClass,\n type Substitution,\n type SubstitutionClass,\n} from './utils/mutations';\n\nexport const mutationsFilterSchema = z.object({\n nucleotideMutations: z.array(z.string()),\n aminoAcidMutations: z.array(z.string()),\n nucleotideInsertions: z.array(z.string()),\n aminoAcidInsertions: z.array(z.string()),\n});\nexport type MutationsFilter = z.infer<typeof mutationsFilterSchema>;\n\nexport const lapisFilterSchema = z\n .record(z.union([z.string(), z.array(z.string()), z.number(), z.null(), z.boolean(), z.undefined()]))\n .and(mutationsFilterSchema.partial());\nexport type LapisFilter = z.infer<typeof lapisFilterSchema>;\n\nexport const namedLapisFilterSchema = z.object({\n lapisFilter: lapisFilterSchema,\n displayName: z.string(),\n});\nexport type NamedLapisFilter = z.infer<typeof namedLapisFilterSchema>;\n\nexport const lapisLocationFilterSchema = z.record(z.union([z.string(), z.undefined()]));\nexport type LapisLocationFilter = z.infer<typeof lapisLocationFilterSchema>;\n\nexport const temporalGranularitySchema = z.union([\n z.literal('day'),\n z.literal('week'),\n z.literal('month'),\n z.literal('year'),\n]);\nexport type TemporalGranularity = z.infer<typeof temporalGranularitySchema>;\n\nexport const sequenceTypeSchema = z.union([z.literal('nucleotide'), z.literal('amino acid')]);\nexport type SequenceType = z.infer<typeof sequenceTypeSchema>;\n\nexport type SubstitutionOrDeletion = 'substitution' | 'deletion';\n\nexport type MutationType = SubstitutionOrDeletion | 'insertion';\n\nexport type SubstitutionEntry<T extends Substitution = SubstitutionClass> = {\n type: 'substitution';\n mutation: T;\n count: number;\n proportion: number;\n};\n\nexport type DeletionEntry<T extends Deletion = DeletionClass> = {\n type: 'deletion';\n mutation: T;\n count: number;\n proportion: number;\n};\n\nexport type InsertionEntry<T extends Insertion = InsertionClass> = { type: 'insertion'; mutation: T; count: number };\n\nexport type SubstitutionOrDeletionEntry<\n S extends Substitution = SubstitutionClass,\n D extends Deletion = DeletionClass,\n> = SubstitutionEntry<S> | DeletionEntry<D>;\n\nexport type MutationEntry = SubstitutionEntry | DeletionEntry | InsertionEntry;\n\nexport const views = {\n table: 'table',\n venn: 'venn',\n grid: 'grid',\n insertions: 'insertions',\n bar: 'bar',\n line: 'line',\n bubble: 'bubble',\n map: 'map',\n} as const;\n","export const toYYYYMMDD = (date: Date) => {\n const options: Intl.DateTimeFormatOptions = { year: 'numeric', month: '2-digit', day: '2-digit' };\n return date.toLocaleDateString('en-CA', options);\n};\n","import z from 'zod';\n\nimport { toYYYYMMDD } from './dateConversion';\nimport { gsEventNames } from '../../utils/gsEventNames';\n\n/**\n * A date range option that can be used in the `gs-date-range-filter` component.\n */\nexport const dateRangeOptionSchema = z.object({\n /** The label of the date range option that will be shown to the user */\n label: z.string(),\n /**\n * The start date of the date range in the format `YYYY-MM-DD`.\n * If not set, the date range selector will default to the `earliestDate` property.\n */\n dateFrom: z.string().date().optional(),\n /**\n * The end date of the date range in the format `YYYY-MM-DD`.\n * If not set, the date range selector will default to the current date.\n */\n dateTo: z.string().date().optional(),\n});\n\nexport type DateRangeOption = z.infer<typeof dateRangeOptionSchema>;\n\nexport const dateRangeValueSchema = z\n .union([\n z.string(),\n z.object({\n dateFrom: z.string().date().optional(),\n dateTo: z.string().date().optional(),\n }),\n ])\n .nullable();\n\nexport type DateRangeValue = z.infer<typeof dateRangeValueSchema>;\n\nexport class DateRangeOptionChangedEvent extends CustomEvent<DateRangeValue> {\n constructor(detail: DateRangeValue) {\n super(gsEventNames.dateRangeOptionChanged, {\n detail,\n bubbles: true,\n composed: true,\n });\n }\n}\n\nconst today = new Date();\n\nconst twoWeeksAgo = new Date();\ntwoWeeksAgo.setDate(today.getDate() - 14);\n\nconst lastMonth = new Date(today);\nlastMonth.setMonth(today.getMonth() - 1);\n\nconst last2Months = new Date(today);\nlast2Months.setMonth(today.getMonth() - 2);\n\nconst last3Months = new Date(today);\nlast3Months.setMonth(today.getMonth() - 3);\n\nconst last6Months = new Date(today);\nlast6Months.setMonth(today.getMonth() - 6);\n\nconst lastYear = new Date(today);\nlastYear.setFullYear(today.getFullYear() - 1);\n\n/**\n * Presets for the `gs-date-range-filter` component that can be used as `dateRangeOptions`.\n */\nexport const dateRangeOptionPresets = {\n last2Weeks: {\n label: 'Last 2 weeks',\n dateFrom: toYYYYMMDD(twoWeeksAgo),\n },\n lastMonth: {\n label: 'Last month',\n dateFrom: toYYYYMMDD(lastMonth),\n },\n last2Months: {\n label: 'Last 2 months',\n dateFrom: toYYYYMMDD(last2Months),\n },\n last3Months: {\n label: 'Last 3 months',\n dateFrom: toYYYYMMDD(last3Months),\n },\n last6Months: {\n label: 'Last 6 months',\n dateFrom: toYYYYMMDD(last6Months),\n },\n lastYear: {\n label: 'Last year',\n dateFrom: toYYYYMMDD(lastYear),\n },\n allTimes: {\n label: 'All times',\n },\n} satisfies Record<string, DateRangeOption>;\n","import { type LapisLocationFilter } from '../../types';\nimport { gsEventNames } from '../../utils/gsEventNames';\n\nexport class LocationChangedEvent extends CustomEvent<LapisLocationFilter> {\n constructor(detail: LapisLocationFilter) {\n super(gsEventNames.locationChanged, {\n detail,\n bubbles: true,\n composed: true,\n });\n }\n}\n","import { gsEventNames } from '../../utils/gsEventNames';\n\ntype LapisTextFilter = Record<string, string | undefined>;\n\nexport class TextFilterChangedEvent extends CustomEvent<LapisTextFilter> {\n constructor(detail: LapisTextFilter) {\n super(gsEventNames.textFilterChanged, {\n detail,\n bubbles: true,\n composed: true,\n });\n }\n}\n","import { gsEventNames } from '../../utils/gsEventNames';\n\ntype LapisLineageFilter = Record<string, string | undefined>;\n\nexport class LineageFilterChangedEvent extends CustomEvent<LapisLineageFilter> {\n constructor(detail: LapisLineageFilter) {\n super(gsEventNames.lineageFilterChanged, {\n detail,\n bubbles: true,\n composed: true,\n });\n }\n}\n","import z from 'zod';\n\nimport { gsEventNames } from '../../utils/gsEventNames';\n\nexport type LapisNumberFilter = Record<string, number | undefined>;\n\nexport const numberRangeSchema = z.object({\n min: z.number().optional(),\n max: z.number().optional(),\n});\nexport type NumberRange = z.infer<typeof numberRangeSchema>;\n\nexport class NumberRangeValueChangedEvent extends CustomEvent<NumberRange> {\n constructor(detail: NumberRange) {\n super(gsEventNames.numberRangeValueChanged, {\n detail,\n bubbles: true,\n composed: true,\n });\n }\n}\n\nexport class NumberRangeFilterChangedEvent extends CustomEvent<LapisNumberFilter> {\n constructor(detail: LapisNumberFilter) {\n super(gsEventNames.numberRangeFilterChanged, {\n detail,\n bubbles: true,\n composed: true,\n });\n }\n}\n"],"names":[],"mappings":";AAAO,MAAM,eAAe;AAAA,EACxB,OAAO;AAAA,EACP,0BAA0B;AAAA,EAC1B,wBAAwB;AAAA,EACxB,wBAAwB;AAAA,EACxB,uBAAuB;AAAA,EACvB,sBAAsB;AAAA,EACtB,iBAAiB;AAAA,EACjB,mBAAmB;AAAA,EACnB,0BAA0B;AAAA,EAC1B,yBAAyB;AAC7B;ACAa,MAAA,wBAAwB,EAAE,OAAO;AAAA,EAC1C,qBAAqB,EAAE,MAAM,EAAE,QAAQ;AAAA,EACvC,oBAAoB,EAAE,MAAM,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