@copilotkit/aimock 1.46.0 → 1.47.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.claude-plugin/marketplace.json +1 -1
- package/.claude-plugin/plugin.json +1 -1
- package/CHANGELOG.md +12 -1
- package/README.md +4 -1
- package/dist/aws-event-stream.cjs +20 -23
- package/dist/aws-event-stream.cjs.map +1 -1
- package/dist/aws-event-stream.d.cts +0 -1
- package/dist/aws-event-stream.d.ts +0 -1
- package/dist/aws-event-stream.js +20 -24
- package/dist/aws-event-stream.js.map +1 -1
- package/dist/bedrock-converse.cjs +79 -82
- package/dist/bedrock-converse.cjs.map +1 -1
- package/dist/bedrock-converse.d.cts.map +1 -1
- package/dist/bedrock-converse.d.ts.map +1 -1
- package/dist/bedrock-converse.js +80 -83
- package/dist/bedrock-converse.js.map +1 -1
- package/dist/bedrock.cjs +112 -121
- package/dist/bedrock.cjs.map +1 -1
- package/dist/bedrock.d.cts.map +1 -1
- package/dist/bedrock.d.ts.map +1 -1
- package/dist/bedrock.js +113 -122
- package/dist/bedrock.js.map +1 -1
- package/dist/cohere.cjs +58 -106
- package/dist/cohere.cjs.map +1 -1
- package/dist/cohere.d.cts.map +1 -1
- package/dist/cohere.d.ts.map +1 -1
- package/dist/cohere.js +60 -108
- package/dist/cohere.js.map +1 -1
- package/dist/config-loader.d.cts.map +1 -1
- package/dist/config-loader.d.ts.map +1 -1
- package/dist/fixture-loader.cjs +103 -2
- package/dist/fixture-loader.cjs.map +1 -1
- package/dist/fixture-loader.d.cts.map +1 -1
- package/dist/fixture-loader.d.ts.map +1 -1
- package/dist/fixture-loader.js +104 -4
- package/dist/fixture-loader.js.map +1 -1
- package/dist/gemini-interactions.cjs +63 -121
- package/dist/gemini-interactions.cjs.map +1 -1
- package/dist/gemini-interactions.d.cts.map +1 -1
- package/dist/gemini-interactions.d.ts.map +1 -1
- package/dist/gemini-interactions.js +65 -123
- package/dist/gemini-interactions.js.map +1 -1
- package/dist/gemini.cjs +242 -155
- package/dist/gemini.cjs.map +1 -1
- package/dist/gemini.d.cts.map +1 -1
- package/dist/gemini.d.ts.map +1 -1
- package/dist/gemini.js +244 -157
- package/dist/gemini.js.map +1 -1
- package/dist/helpers.cjs +400 -7
- package/dist/helpers.cjs.map +1 -1
- package/dist/helpers.d.cts +51 -1
- package/dist/helpers.d.cts.map +1 -1
- package/dist/helpers.d.ts +51 -1
- package/dist/helpers.d.ts.map +1 -1
- package/dist/helpers.js +391 -8
- package/dist/helpers.js.map +1 -1
- package/dist/index.cjs +4 -2
- package/dist/index.d.cts +4 -4
- package/dist/index.d.ts +4 -4
- package/dist/index.js +4 -4
- package/dist/mcp-fakes.d.cts.map +1 -1
- package/dist/messages.cjs +159 -141
- package/dist/messages.cjs.map +1 -1
- package/dist/messages.d.cts.map +1 -1
- package/dist/messages.d.ts.map +1 -1
- package/dist/messages.js +161 -143
- package/dist/messages.js.map +1 -1
- package/dist/misbehavior.cjs +62 -3
- package/dist/misbehavior.cjs.map +1 -1
- package/dist/misbehavior.d.cts.map +1 -1
- package/dist/misbehavior.d.ts.map +1 -1
- package/dist/misbehavior.js +63 -4
- package/dist/misbehavior.js.map +1 -1
- package/dist/ndjson-writer.cjs +21 -23
- package/dist/ndjson-writer.cjs.map +1 -1
- package/dist/ndjson-writer.d.cts +0 -1
- package/dist/ndjson-writer.d.cts.map +1 -1
- package/dist/ndjson-writer.d.ts +0 -1
- package/dist/ndjson-writer.d.ts.map +1 -1
- package/dist/ndjson-writer.js +21 -24
- package/dist/ndjson-writer.js.map +1 -1
- package/dist/ollama.cjs +153 -147
- package/dist/ollama.cjs.map +1 -1
- package/dist/ollama.d.cts.map +1 -1
- package/dist/ollama.d.ts.map +1 -1
- package/dist/ollama.js +155 -149
- package/dist/ollama.js.map +1 -1
- package/dist/openrouter-chat.cjs +1 -1
- package/dist/openrouter-chat.js +1 -1
- package/dist/raw-validation.cjs +177 -0
- package/dist/raw-validation.cjs.map +1 -0
- package/dist/raw-validation.js +176 -0
- package/dist/raw-validation.js.map +1 -0
- package/dist/response/deliver.cjs +144 -0
- package/dist/response/deliver.cjs.map +1 -0
- package/dist/response/deliver.js +143 -0
- package/dist/response/deliver.js.map +1 -0
- package/dist/response/frame-loop.cjs +102 -0
- package/dist/response/frame-loop.cjs.map +1 -0
- package/dist/response/frame-loop.js +100 -0
- package/dist/response/frame-loop.js.map +1 -0
- package/dist/response/lifecycle.cjs +223 -0
- package/dist/response/lifecycle.cjs.map +1 -0
- package/dist/response/lifecycle.js +211 -0
- package/dist/response/lifecycle.js.map +1 -0
- package/dist/response/proxy.cjs +71 -0
- package/dist/response/proxy.cjs.map +1 -0
- package/dist/response/proxy.js +70 -0
- package/dist/response/proxy.js.map +1 -0
- package/dist/response/raw.cjs +228 -0
- package/dist/response/raw.cjs.map +1 -0
- package/dist/response/raw.js +227 -0
- package/dist/response/raw.js.map +1 -0
- package/dist/response/timing.cjs +157 -0
- package/dist/response/timing.cjs.map +1 -0
- package/dist/response/timing.js +150 -0
- package/dist/response/timing.js.map +1 -0
- package/dist/responses.cjs +269 -148
- package/dist/responses.cjs.map +1 -1
- package/dist/responses.d.cts.map +1 -1
- package/dist/responses.d.ts.map +1 -1
- package/dist/responses.js +270 -149
- package/dist/responses.js.map +1 -1
- package/dist/router.cjs +20 -4
- package/dist/router.cjs.map +1 -1
- package/dist/router.d.cts +7 -1
- package/dist/router.d.cts.map +1 -1
- package/dist/router.d.ts +7 -1
- package/dist/router.d.ts.map +1 -1
- package/dist/router.js +21 -5
- package/dist/router.js.map +1 -1
- package/dist/server.cjs +89 -120
- package/dist/server.cjs.map +1 -1
- package/dist/server.d.cts.map +1 -1
- package/dist/server.d.ts.map +1 -1
- package/dist/server.js +91 -122
- package/dist/server.js.map +1 -1
- package/dist/sse-writer.cjs +49 -30
- package/dist/sse-writer.cjs.map +1 -1
- package/dist/sse-writer.d.cts +0 -1
- package/dist/sse-writer.d.cts.map +1 -1
- package/dist/sse-writer.d.ts +0 -1
- package/dist/sse-writer.d.ts.map +1 -1
- package/dist/sse-writer.js +49 -31
- package/dist/sse-writer.js.map +1 -1
- package/dist/transcription.cjs +19 -33
- package/dist/transcription.cjs.map +1 -1
- package/dist/transcription.d.cts.map +1 -1
- package/dist/transcription.d.ts.map +1 -1
- package/dist/transcription.js +20 -34
- package/dist/transcription.js.map +1 -1
- package/dist/types.cjs.map +1 -1
- package/dist/types.d.cts +173 -10
- package/dist/types.d.cts.map +1 -1
- package/dist/types.d.ts +173 -10
- package/dist/types.d.ts.map +1 -1
- package/dist/types.js.map +1 -1
- package/dist/ws-framing.cjs +12 -6
- package/dist/ws-framing.cjs.map +1 -1
- package/dist/ws-framing.d.cts +2 -0
- package/dist/ws-framing.d.cts.map +1 -1
- package/dist/ws-framing.d.ts +2 -0
- package/dist/ws-framing.d.ts.map +1 -1
- package/dist/ws-framing.js +12 -6
- package/dist/ws-framing.js.map +1 -1
- package/dist/ws-gemini-live.cjs +120 -93
- package/dist/ws-gemini-live.cjs.map +1 -1
- package/dist/ws-gemini-live.js +120 -93
- package/dist/ws-gemini-live.js.map +1 -1
- package/dist/ws-realtime.cjs +80 -70
- package/dist/ws-realtime.cjs.map +1 -1
- package/dist/ws-realtime.d.cts.map +1 -1
- package/dist/ws-realtime.d.ts.map +1 -1
- package/dist/ws-realtime.js +80 -70
- package/dist/ws-realtime.js.map +1 -1
- package/dist/ws-responses.cjs +72 -53
- package/dist/ws-responses.cjs.map +1 -1
- package/dist/ws-responses.d.cts.map +1 -1
- package/dist/ws-responses.d.ts.map +1 -1
- package/dist/ws-responses.js +73 -54
- package/dist/ws-responses.js.map +1 -1
- package/package.json +1 -1
- package/skills/write-fixtures/SKILL.md +34 -2
package/dist/helpers.d.cts
CHANGED
|
@@ -55,6 +55,56 @@ declare function requireFunctionToolCalls(calls: ToolCall[]): ToolCall[];
|
|
|
55
55
|
* Both keys are new, so no fixture of an earlier release reaches this error.
|
|
56
56
|
*/
|
|
57
57
|
|
|
58
|
+
/**
|
|
59
|
+
* A fixture's model-generated `files` reached a wire that has no faithful
|
|
60
|
+
* projection for them. Gemini (`inlineData` parts) and the OpenAI Responses
|
|
61
|
+
* API (`image_generation_call` items, `image/*` only) serve generated files.
|
|
62
|
+
* Chat Completions (OpenAI, Azure OpenAI, OpenRouter and BytePlus ModelArk)
|
|
63
|
+
* and Anthropic Messages raise this through {@link rejectGeneratedFiles}, and
|
|
64
|
+
* the Responses API raises a subclass for a non-`image/*` file, before any
|
|
65
|
+
* content is written. The handler surfaces it as a coded 500
|
|
66
|
+
* (`aimock_unsupported_generated_file`) like {@link UnsupportedToolCallError}.
|
|
67
|
+
*/
|
|
68
|
+
declare class UnsupportedGeneratedFileError extends Error {
|
|
69
|
+
readonly wire: string;
|
|
70
|
+
constructor(wire: string);
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* Reject a fixture that sets a non-empty `files` on a wire that cannot carry
|
|
74
|
+
* model-generated files. Throws {@link UnsupportedGeneratedFileError} naming
|
|
75
|
+
* `wire`. A malformed `files` value (see {@link fixtureFiles}) throws
|
|
76
|
+
* {@link InvalidFixtureOutputError} (`aimock_invalid_fixture_file`) first.
|
|
77
|
+
* Chat Completions and Anthropic Messages call this. Gemini and OpenAI
|
|
78
|
+
* Responses serve `files`; other wires ignore the field.
|
|
79
|
+
*/
|
|
80
|
+
|
|
81
|
+
/**
|
|
82
|
+
* A fixture's `citations` or `files` is malformed: not an array, an entry
|
|
83
|
+
* missing a required field, a non-integer offset, citation offsets outside
|
|
84
|
+
* `0 <= startIndex <= endIndex <= text.length`, a file citation `index`
|
|
85
|
+
* outside `0 <= index <= text.length`, an offset or `index` that splits a
|
|
86
|
+
* UTF-16 surrogate pair, a citation that mixes URL and file citation fields,
|
|
87
|
+
* or any `citations` but an empty array on a turn with no text (tool calls
|
|
88
|
+
* only, `blocks` with no text block, or empty content). The wires that read
|
|
89
|
+
* these keys (Chat Completions, Anthropic Messages, Gemini and OpenAI
|
|
90
|
+
* Responses) read them
|
|
91
|
+
* through {@link fixtureFiles} and {@link fixtureCitations}, which throw this
|
|
92
|
+
* at serve time, before any byte is written; the handler surfaces it as a
|
|
93
|
+
* coded 500 like {@link UnsupportedGeneratedFileError}. Other wires ignore
|
|
94
|
+
* `citations` and `files`, so they never throw this. The message names the
|
|
95
|
+
* offending entry and how to fix the fixture.
|
|
96
|
+
*/
|
|
97
|
+
declare class InvalidFixtureOutputError extends Error {
|
|
98
|
+
readonly code: "aimock_invalid_fixture_citation" | "aimock_invalid_fixture_file";
|
|
99
|
+
constructor(code: "aimock_invalid_fixture_citation" | "aimock_invalid_fixture_file", problem: string);
|
|
100
|
+
}
|
|
101
|
+
/**
|
|
102
|
+
* `text` cut into slices of at most `chunkSize` UTF-16 units, never between
|
|
103
|
+
* the two halves of a surrogate pair: a cut that would land inside a pair
|
|
104
|
+
* moves back before it, or, when that would leave the slice empty
|
|
105
|
+
* (`chunkSize` 1), forward past it. The slices rejoin to `text` exactly.
|
|
106
|
+
*/
|
|
107
|
+
|
|
58
108
|
/**
|
|
59
109
|
* Build the strict-mode 503 error message, distinguishing a true no-match from
|
|
60
110
|
* a sequence/turn-exhausted miss.
|
|
@@ -260,5 +310,5 @@ declare function buildEmbeddingResponse(embeddings: number[][], model: string, u
|
|
|
260
310
|
total_tokens?: number;
|
|
261
311
|
}): EmbeddingAPIResponse;
|
|
262
312
|
//#endregion
|
|
263
|
-
export { EmbeddingAPIResponse, FORMAT_TO_CONTENT_TYPE, FunctionFixtureBlock, InvalidFixtureToolCallError, UnsupportedToolCallError, buildContentWithToolCallsChunks, buildContentWithToolCallsCompletion, buildEmbeddingResponse, buildTextChunks, buildTextCompletion, buildToolCallChunks, buildToolCallCompletion, extractOverrides, flattenHeaders, formatToMime, generateDeterministicEmbedding, generateId, generateMessageId, generateToolCallId, generateToolUseId, isAudioResponse, isContentWithToolCallsResponse, isEmbeddingResponse, isErrorResponse, isImageResponse, isLiveResponse, isTextResponse, isToolCallResponse, isTranscriptionResponse, isVideoResponse, requireFunctionToolCalls, resolveFixtureBlocks, resolveRequestId, resolveResponsesBlocks, strictNoMatchLogLine, strictNoMatchMessage };
|
|
313
|
+
export { EmbeddingAPIResponse, FORMAT_TO_CONTENT_TYPE, FunctionFixtureBlock, InvalidFixtureOutputError, InvalidFixtureToolCallError, UnsupportedGeneratedFileError, UnsupportedToolCallError, buildContentWithToolCallsChunks, buildContentWithToolCallsCompletion, buildEmbeddingResponse, buildTextChunks, buildTextCompletion, buildToolCallChunks, buildToolCallCompletion, extractOverrides, flattenHeaders, formatToMime, generateDeterministicEmbedding, generateId, generateMessageId, generateToolCallId, generateToolUseId, isAudioResponse, isContentWithToolCallsResponse, isEmbeddingResponse, isErrorResponse, isImageResponse, isLiveResponse, isTextResponse, isToolCallResponse, isTranscriptionResponse, isVideoResponse, requireFunctionToolCalls, resolveFixtureBlocks, resolveRequestId, resolveResponsesBlocks, strictNoMatchLogLine, strictNoMatchMessage };
|
|
264
314
|
//# sourceMappingURL=helpers.d.cts.map
|
package/dist/helpers.d.cts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"helpers.d.cts","names":[],"sources":["../src/helpers.ts"],"sourcesContent":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"helpers.d.cts","names":[],"sources":["../src/helpers.ts"],"sourcesContent":[],"mappings":";;;;;;AA25DA;;;;;AAIA;;;;;AAOgB,cAjwDH,wBAAA,SAAiC,KAAA,CAiwDf;EAAA,SAAA,QAAA,EAAA,MAAA;WAAI,IAAA,EAAA,MAAA;aAAuB,CAAA,QAAA,EAAA,MAAA,EAAA,IAAA,EAAA,MAAA;;AAU1D;AAaA;AAIA;;;;;AAQA;;;;AAAuE,cA1wD1D,2BAAA,SAAoC,KAAA,CA0wDsB;EAkDvD,SAAA,IAAA,GAAA,kCAAgB;EAAA,WAAA,CAAA,KAAA,EAAA,MAAA,EAAA,OAAA,EAAA,MAAA,EAAA,OAAA,CAAA,EAAA,WAAA,GAAA,iBAAA,GA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AA,6BAEH,8EAIC,4BACH,iBACR;iBA+Sa,mCAAA,6BAEH,2DAGC,qCACM,oCACjB;;;;;;;;;;;;;;;iBAgxBa,8BAAA;UAgBC,oBAAA;;;;;;;;;;;;;;;;iBAUD,sBAAA;;;IAIb"}
|
package/dist/helpers.d.ts
CHANGED
|
@@ -55,6 +55,56 @@ declare function requireFunctionToolCalls(calls: ToolCall[]): ToolCall[];
|
|
|
55
55
|
* Both keys are new, so no fixture of an earlier release reaches this error.
|
|
56
56
|
*/
|
|
57
57
|
|
|
58
|
+
/**
|
|
59
|
+
* A fixture's model-generated `files` reached a wire that has no faithful
|
|
60
|
+
* projection for them. Gemini (`inlineData` parts) and the OpenAI Responses
|
|
61
|
+
* API (`image_generation_call` items, `image/*` only) serve generated files.
|
|
62
|
+
* Chat Completions (OpenAI, Azure OpenAI, OpenRouter and BytePlus ModelArk)
|
|
63
|
+
* and Anthropic Messages raise this through {@link rejectGeneratedFiles}, and
|
|
64
|
+
* the Responses API raises a subclass for a non-`image/*` file, before any
|
|
65
|
+
* content is written. The handler surfaces it as a coded 500
|
|
66
|
+
* (`aimock_unsupported_generated_file`) like {@link UnsupportedToolCallError}.
|
|
67
|
+
*/
|
|
68
|
+
declare class UnsupportedGeneratedFileError extends Error {
|
|
69
|
+
readonly wire: string;
|
|
70
|
+
constructor(wire: string);
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* Reject a fixture that sets a non-empty `files` on a wire that cannot carry
|
|
74
|
+
* model-generated files. Throws {@link UnsupportedGeneratedFileError} naming
|
|
75
|
+
* `wire`. A malformed `files` value (see {@link fixtureFiles}) throws
|
|
76
|
+
* {@link InvalidFixtureOutputError} (`aimock_invalid_fixture_file`) first.
|
|
77
|
+
* Chat Completions and Anthropic Messages call this. Gemini and OpenAI
|
|
78
|
+
* Responses serve `files`; other wires ignore the field.
|
|
79
|
+
*/
|
|
80
|
+
|
|
81
|
+
/**
|
|
82
|
+
* A fixture's `citations` or `files` is malformed: not an array, an entry
|
|
83
|
+
* missing a required field, a non-integer offset, citation offsets outside
|
|
84
|
+
* `0 <= startIndex <= endIndex <= text.length`, a file citation `index`
|
|
85
|
+
* outside `0 <= index <= text.length`, an offset or `index` that splits a
|
|
86
|
+
* UTF-16 surrogate pair, a citation that mixes URL and file citation fields,
|
|
87
|
+
* or any `citations` but an empty array on a turn with no text (tool calls
|
|
88
|
+
* only, `blocks` with no text block, or empty content). The wires that read
|
|
89
|
+
* these keys (Chat Completions, Anthropic Messages, Gemini and OpenAI
|
|
90
|
+
* Responses) read them
|
|
91
|
+
* through {@link fixtureFiles} and {@link fixtureCitations}, which throw this
|
|
92
|
+
* at serve time, before any byte is written; the handler surfaces it as a
|
|
93
|
+
* coded 500 like {@link UnsupportedGeneratedFileError}. Other wires ignore
|
|
94
|
+
* `citations` and `files`, so they never throw this. The message names the
|
|
95
|
+
* offending entry and how to fix the fixture.
|
|
96
|
+
*/
|
|
97
|
+
declare class InvalidFixtureOutputError extends Error {
|
|
98
|
+
readonly code: "aimock_invalid_fixture_citation" | "aimock_invalid_fixture_file";
|
|
99
|
+
constructor(code: "aimock_invalid_fixture_citation" | "aimock_invalid_fixture_file", problem: string);
|
|
100
|
+
}
|
|
101
|
+
/**
|
|
102
|
+
* `text` cut into slices of at most `chunkSize` UTF-16 units, never between
|
|
103
|
+
* the two halves of a surrogate pair: a cut that would land inside a pair
|
|
104
|
+
* moves back before it, or, when that would leave the slice empty
|
|
105
|
+
* (`chunkSize` 1), forward past it. The slices rejoin to `text` exactly.
|
|
106
|
+
*/
|
|
107
|
+
|
|
58
108
|
/**
|
|
59
109
|
* Build the strict-mode 503 error message, distinguishing a true no-match from
|
|
60
110
|
* a sequence/turn-exhausted miss.
|
|
@@ -260,5 +310,5 @@ declare function buildEmbeddingResponse(embeddings: number[][], model: string, u
|
|
|
260
310
|
total_tokens?: number;
|
|
261
311
|
}): EmbeddingAPIResponse;
|
|
262
312
|
//#endregion
|
|
263
|
-
export { EmbeddingAPIResponse, FORMAT_TO_CONTENT_TYPE, FunctionFixtureBlock, InvalidFixtureToolCallError, UnsupportedToolCallError, buildContentWithToolCallsChunks, buildContentWithToolCallsCompletion, buildEmbeddingResponse, buildTextChunks, buildTextCompletion, buildToolCallChunks, buildToolCallCompletion, extractOverrides, flattenHeaders, formatToMime, generateDeterministicEmbedding, generateId, generateMessageId, generateToolCallId, generateToolUseId, isAudioResponse, isContentWithToolCallsResponse, isEmbeddingResponse, isErrorResponse, isImageResponse, isLiveResponse, isTextResponse, isToolCallResponse, isTranscriptionResponse, isVideoResponse, requireFunctionToolCalls, resolveFixtureBlocks, resolveRequestId, resolveResponsesBlocks, strictNoMatchLogLine, strictNoMatchMessage };
|
|
313
|
+
export { EmbeddingAPIResponse, FORMAT_TO_CONTENT_TYPE, FunctionFixtureBlock, InvalidFixtureOutputError, InvalidFixtureToolCallError, UnsupportedGeneratedFileError, UnsupportedToolCallError, buildContentWithToolCallsChunks, buildContentWithToolCallsCompletion, buildEmbeddingResponse, buildTextChunks, buildTextCompletion, buildToolCallChunks, buildToolCallCompletion, extractOverrides, flattenHeaders, formatToMime, generateDeterministicEmbedding, generateId, generateMessageId, generateToolCallId, generateToolUseId, isAudioResponse, isContentWithToolCallsResponse, isEmbeddingResponse, isErrorResponse, isImageResponse, isLiveResponse, isTextResponse, isToolCallResponse, isTranscriptionResponse, isVideoResponse, requireFunctionToolCalls, resolveFixtureBlocks, resolveRequestId, resolveResponsesBlocks, strictNoMatchLogLine, strictNoMatchMessage };
|
|
264
314
|
//# sourceMappingURL=helpers.d.ts.map
|
package/dist/helpers.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"helpers.d.ts","names":[],"sources":["../src/helpers.ts"],"sourcesContent":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"helpers.d.ts","names":[],"sources":["../src/helpers.ts"],"sourcesContent":[],"mappings":";;;;;;AA25DA;;;;;AAIA;;;;;AAOgB,cAjwDH,wBAAA,SAAiC,KAAA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