@slotform/cloudflare 0.0.0-stage → 0.1.1

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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 fcalell
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,3 +1,18 @@
1
- # Temporary Holding Version
1
+ # @slotform/cloudflare
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ The Cloudflare Workers target for `slotform`, the alternative to `@slotform/node`. It
4
+ renders the API worker's wrangler config from what the other plugins contribute and runs
5
+ `wrangler` for dev, types and deploy.
6
+
7
+ How it is built: [docs/architecture/plugins/cloudflare.md](../../docs/architecture/plugins/cloudflare.md).
8
+
9
+ ## Install
10
+
11
+ ```bash
12
+ slotform add cloudflare
13
+ ```
14
+
15
+ ## Guide
16
+
17
+ Using the target in an app lives in `guide/`, indexed into a consumer's `.slotform/guide.md`:
18
+ [`wrangler.md`](./guide/wrangler.md) and the recipe [`deploy.md`](./guide/deploy.md).
@@ -0,0 +1,12 @@
1
+ import { type Slot } from "@slotform/cli";
2
+ import { type ServeConfig, type WranglerBindingSpec } from "./types.ts";
3
+ export declare const LOCAL_PERSIST = ".wrangler/state";
4
+ export declare const cloudflare: import("@slotform/cli").PluginFactory<"cloudflare", Record<string, never> | undefined, {
5
+ readonly bindings: Slot<WranglerBindingSpec[]>;
6
+ readonly compatibilityDate: Slot<string>;
7
+ readonly compatibilityFlags: Slot<string[]>;
8
+ readonly wranglerToml: Slot<string>;
9
+ readonly serveWranglerToml: Slot<(serve: ServeConfig) => string>;
10
+ }, Record<string, never>, Record<string, never> | undefined>;
11
+ export type { WranglerBindingSpec } from "./types.ts";
12
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAKA,OAAO,EAIN,KAAK,IAAI,EAET,MAAM,eAAe,CAAC;AAavB,OAAO,EAEN,KAAK,WAAW,EAChB,KAAK,mBAAmB,EACxB,MAAM,YAAY,CAAC;AAgBpB,eAAO,MAAM,aAAa,oBAAoB,CAAC;AA6H/C,eAAO,MAAM,UAAU;;;;;6CAnCN,WAAW;4DA6R1B,CAAC;AAEH,YAAY,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC"}
package/dist/index.js ADDED
@@ -0,0 +1,320 @@
1
+ import { spawnSync } from "node:child_process";
2
+ import { existsSync, mkdirSync, rmSync, writeFileSync } from "node:fs";
3
+ import { createRequire } from "node:module";
4
+ import { join } from "node:path";
5
+ import { api } from "@slotform/api";
6
+ import { GENERATED_DIR, plugin, slot, } from "@slotform/cli";
7
+ import { cliSlots, emitArtifact } from "@slotform/cli/cli-slots";
8
+ import { screens } from "@slotform/screens";
9
+ import { startServer } from "@slotform/screens/node";
10
+ import { vite } from "@slotform/vite";
11
+ import { aggregateDevVars, aggregateWrangler, escapeDevVarValue, sanitizeWranglerName, } from "./node/codegen.js";
12
+ import { assertEnvName, declaresDevVar } from "./node/dev-vars.js";
13
+ import { cloudflareOptionsSchema, } from "./types.js";
14
+ const SOURCE = "cloudflare";
15
+ // The pinned default compatibility date: docs/architecture/plugins/cloudflare.md, "Compatibility date".
16
+ const DEFAULT_COMPATIBILITY_DATE = "2025-01-01";
17
+ // `wrangler dev`'s listen port, passed explicitly so the dev process and the
18
+ // worker's dev origin agree.
19
+ const WRANGLER_DEV_PORT = 8787;
20
+ const DEV_ORIGIN = `http://localhost:${WRANGLER_DEV_PORT}`;
21
+ const WRANGLER_CONFIG = `${GENERATED_DIR}/wrangler.toml`;
22
+ const WORKER_TYPES = `${GENERATED_DIR}/worker-configuration.d.ts`;
23
+ // Miniflare's state dir, shared with the `db` plugin: docs/architecture/plugins/cloudflare.md, "Local state".
24
+ export const LOCAL_PERSIST = ".wrangler/state";
25
+ // ── Slot declarations ──────────────────────────────────────────────
26
+ //
27
+ // Bindings compose into wranglerToml: docs/architecture/plugins/cloudflare.md, "Slots and contributions".
28
+ const bindings = slot.list({
29
+ source: SOURCE,
30
+ name: "bindings",
31
+ });
32
+ const compatibilityFlags = slot.list({
33
+ source: SOURCE,
34
+ name: "compatibilityFlags",
35
+ });
36
+ // Seeded from the pinned constant, never the wall clock: docs/architecture/plugins/cloudflare.md, "Compatibility date".
37
+ const compatibilityDate = slot.value({
38
+ source: SOURCE,
39
+ name: "compatibilityDate",
40
+ seed: () => DEFAULT_COMPATIBILITY_DATE,
41
+ });
42
+ // The final wrangler.toml source, a pure derivation: docs/architecture/plugins/cloudflare.md, "Slots and contributions".
43
+ const wranglerInputs = {
44
+ bindings,
45
+ env: api.slots.env,
46
+ compatibilityDate,
47
+ compatibilityFlags,
48
+ clientDir: vite.slots.outDir,
49
+ routePrefixes: api.slots.routePrefixes,
50
+ queueHandler: api.slots.queueHandler,
51
+ scheduledHandler: api.slots.scheduledHandler,
52
+ };
53
+ // The consumer's root `wrangler.toml`, or null without one.
54
+ async function consumerWrangler(ctx) {
55
+ return (await ctx.fileExists("wrangler.toml"))
56
+ ? ctx.readFile("wrangler.toml")
57
+ : null;
58
+ }
59
+ function renderWrangler(inp, ctx, consumer, serve) {
60
+ return aggregateWrangler({
61
+ consumerWrangler: consumer,
62
+ payload: {
63
+ bindings: inp.bindings,
64
+ secrets: inp.env,
65
+ compatibilityDate: inp.compatibilityDate,
66
+ compatibilityFlags: inp.compatibilityFlags,
67
+ clientDir: inp.clientDir,
68
+ routePrefixes: inp.routePrefixes,
69
+ queueHandler: inp.queueHandler !== null,
70
+ scheduledHandler: inp.scheduledHandler !== null,
71
+ serve,
72
+ },
73
+ name: ctx.app.name,
74
+ log: ctx.log,
75
+ });
76
+ }
77
+ const wranglerToml = slot.derived({
78
+ source: SOURCE,
79
+ name: "wranglerToml",
80
+ inputs: wranglerInputs,
81
+ compute: async (inp, ctx) => renderWrangler(inp, ctx, await consumerWrangler(ctx), undefined),
82
+ });
83
+ // The config of a `slotform screens serve` run: the same toml with the run's own
84
+ // entry and client build, as a function of them.
85
+ const serveWranglerToml = slot.derived({
86
+ source: SOURCE,
87
+ name: "serveWranglerToml",
88
+ inputs: wranglerInputs,
89
+ compute: async (inp, ctx) => {
90
+ const consumer = await consumerWrangler(ctx);
91
+ return (serve) => renderWrangler(inp, ctx, consumer, serve);
92
+ },
93
+ });
94
+ // The --config and --tsconfig every bundling command reads: docs/architecture/plugins/cloudflare.md, "Wrangler invocation".
95
+ async function wranglerConfigArgs(ctx) {
96
+ const tsconfig = await ctx.resolve(cliSlots.workerTsconfig);
97
+ return ["--config", WRANGLER_CONFIG, "--tsconfig", join(ctx.cwd, tsconfig)];
98
+ }
99
+ const SLOTFORM_DEV_LINE = "# SLOTFORM_DEV marks local dev; never set in production.\nSLOTFORM_DEV=1\n";
100
+ // The dev values, and whether the root `.dev.vars` is written: docs/architecture/plugins/cloudflare.md, ".dev.vars".
101
+ async function devVars(ctx) {
102
+ const env = await ctx.resolve(api.slots.env);
103
+ for (const e of env)
104
+ assertEnvName(e.name);
105
+ if (!(await ctx.fileExists(".dev.vars"))) {
106
+ return {
107
+ content: `${SLOTFORM_DEV_LINE}${aggregateDevVars(env) ?? ""}`,
108
+ write: true,
109
+ };
110
+ }
111
+ const existing = await ctx.readFile(".dev.vars");
112
+ const declared = (name) => declaresDevVar(existing, name);
113
+ const missing = `${declared("SLOTFORM_DEV") ? "" : SLOTFORM_DEV_LINE}${aggregateDevVars(env.filter((e) => !declared(e.name))) ?? ""}`;
114
+ if (!missing)
115
+ return { content: existing, write: false };
116
+ const separator = existing === "" || existing.endsWith("\n") ? "" : "\n";
117
+ return { content: `${existing}${separator}${missing}`, write: true };
118
+ }
119
+ export const cloudflare = plugin("cloudflare", {
120
+ label: "Cloudflare",
121
+ schema: cloudflareOptionsSchema,
122
+ devDependencies: {
123
+ wrangler: "^4.162.0",
124
+ },
125
+ gitignore: [".wrangler", ".dev.vars"],
126
+ guide: [
127
+ {
128
+ page: "wrangler",
129
+ trigger: "Editing the root `wrangler.toml` or `.dev.vars`, adding a binding or route, or typing `Env`",
130
+ },
131
+ { page: "deploy", trigger: "Deploying the app to Cloudflare" },
132
+ ],
133
+ slots: {
134
+ bindings,
135
+ compatibilityDate,
136
+ compatibilityFlags,
137
+ wranglerToml,
138
+ serveWranglerToml,
139
+ },
140
+ contributes: (self) => [
141
+ emitArtifact(WRANGLER_CONFIG, self.slots.wranglerToml),
142
+ // The blanket per-IP volume limiter: docs/architecture/plugins/api.md, "Rate limiting".
143
+ self.slots.bindings.contribute(async (ctx) => {
144
+ if ((await ctx.resolve(api.slots.routePrefixes)).length === 0) {
145
+ return undefined;
146
+ }
147
+ return {
148
+ kind: "rate_limiter",
149
+ binding: "RATE_LIMITER_RPC",
150
+ simple: { limit: 1000, period: 60 },
151
+ };
152
+ }),
153
+ // The app's one queue: docs/architecture/plugins/cloudflare.md, "wrangler.toml merge contract".
154
+ self.slots.bindings.contribute(async (ctx) => {
155
+ if ((await ctx.resolve(api.slots.queueHandler)) === null) {
156
+ return undefined;
157
+ }
158
+ return {
159
+ kind: "queue",
160
+ binding: "QUEUE",
161
+ queue: sanitizeWranglerName(ctx.app.name),
162
+ consumer: { maxBatchSize: 10, maxBatchTimeout: 5, maxRetries: 3 },
163
+ };
164
+ }),
165
+ // Emit .dev.vars and mirror it into .slotform/: docs/architecture/plugins/cloudflare.md, ".dev.vars".
166
+ cliSlots.artifactFiles.contribute(async (ctx) => {
167
+ const { content, write } = await devVars(ctx);
168
+ return [
169
+ ...(write ? [{ path: ".dev.vars", content }] : []),
170
+ {
171
+ path: `${GENERATED_DIR}/.dev.vars`,
172
+ content: `# Generated mirror of ../.dev.vars — edit that file, then re-run slotform generate.\n${content}`,
173
+ },
174
+ ];
175
+ }),
176
+ // The global `Env` `wrangler types` declares types the worker's `env`:
177
+ // `.slotform/worker.ts` and `.slotform/procedure.ts` render `createWorker<Env>(…)`.
178
+ api.slots.envType.contribute(() => ({ kind: "reference", name: "Env" })),
179
+ // The worker's own dev origin: docs/architecture/plugins/api.md, "Local and dev origins".
180
+ api.slots.devTargetOrigins.contribute((ctx) => ctx.app.origins !== undefined ? undefined : DEV_ORIGIN),
181
+ // Same-origin dev proxy, inert without vite: docs/architecture/plugins/vite.md, "Dev server proxy, file access and watching".
182
+ vite.slots.serverProxy.contribute(async (ctx) => {
183
+ const prefixes = await ctx.resolve(api.slots.routePrefixes);
184
+ return prefixes.map((path) => ({ path, target: DEV_ORIGIN }));
185
+ }),
186
+ // Ignore .slotform/.wrangler so Vite never reloads on it: docs/architecture/plugins/cloudflare.md, "Dev and Vite root".
187
+ vite.slots.watchIgnored.contribute(() => "**/.wrangler/**"),
188
+ // The shared --config and --persist-to, outside .slotform/: docs/architecture/plugins/cloudflare.md, "Local state".
189
+ cliSlots.devProcesses.contribute(async (ctx) => ({
190
+ name: "wrangler",
191
+ command: "npx",
192
+ args: [
193
+ "wrangler",
194
+ "dev",
195
+ ...(await wranglerConfigArgs(ctx)),
196
+ "--port",
197
+ String(WRANGLER_DEV_PORT),
198
+ "--persist-to",
199
+ LOCAL_PERSIST,
200
+ ],
201
+ defaultPort: WRANGLER_DEV_PORT,
202
+ readyPattern: /Ready on/,
203
+ })),
204
+ // The screens serve target: docs/architecture/plugins/cloudflare.md, "Screens serve".
205
+ screens.slots.serveTargets.contribute(async (ctx) => {
206
+ if ((await ctx.resolve(api.slots.workerSource)) === null) {
207
+ return undefined;
208
+ }
209
+ const render = await ctx.resolve(self.slots.serveWranglerToml);
210
+ // The run's entry sits outside the app, so it names the controls by path.
211
+ const require = createRequire(join(ctx.cwd, "package.json"));
212
+ const controls = require.resolve("@slotform/screens/serve");
213
+ const named = await ctx.resolve(screens.slots.serveControls);
214
+ const extra = named.map((spec) => require.resolve(spec));
215
+ const { content: devValues } = await devVars(ctx);
216
+ const tsconfig = join(ctx.cwd, await ctx.resolve(cliSlots.workerTsconfig));
217
+ return {
218
+ name: "cloudflare",
219
+ async start(serve) {
220
+ const main = join(serve.dir, "worker.ts");
221
+ writeFileSync(main, [
222
+ `import { fixtureControls } from ${JSON.stringify(controls)};`,
223
+ ...extra.map((path, i) => `import c${i} from ${JSON.stringify(path)};`),
224
+ `import worker from ${JSON.stringify(join(ctx.cwd, GENERATED_DIR, "worker.ts"))};`,
225
+ `export default fixtureControls(worker${extra.map((_, i) => `, c${i}`).join("")});`,
226
+ "",
227
+ ].join("\n"));
228
+ const config = join(serve.dir, "wrangler.toml");
229
+ writeFileSync(config, render({ main, clientDir: serve.client }));
230
+ const overrides = Object.entries(serve.env)
231
+ .map(([name, value]) => `${name}=${escapeDevVarValue(value)}`)
232
+ .join("\n");
233
+ writeFileSync(join(serve.dir, ".dev.vars"), `${devValues}\n${overrides}\n`);
234
+ return startServer(serve, "wrangler", "npx", [
235
+ "wrangler",
236
+ "dev",
237
+ "--config",
238
+ config,
239
+ "--tsconfig",
240
+ tsconfig,
241
+ "--ip",
242
+ "127.0.0.1",
243
+ "--port",
244
+ String(serve.port),
245
+ "--persist-to",
246
+ serve.state,
247
+ ], ctx.env);
248
+ },
249
+ };
250
+ }),
251
+ cliSlots.deploySteps.contribute(async (ctx) => ({
252
+ name: "Worker",
253
+ phase: "main",
254
+ exec: {
255
+ command: "npx",
256
+ args: ["wrangler", "deploy", ...(await wranglerConfigArgs(ctx))],
257
+ },
258
+ })),
259
+ // The _headers step: docs/architecture/plugins/cloudflare.md, "Client headers".
260
+ cliSlots.buildSteps.contribute(async (ctx) => {
261
+ const clientDir = await ctx.resolve(vite.slots.outDir);
262
+ const headers = await ctx.resolve(vite.slots.clientHeaders);
263
+ const names = Object.keys(headers).sort();
264
+ if (clientDir === null || names.length === 0)
265
+ return undefined;
266
+ return {
267
+ name: "client-headers",
268
+ phase: "post",
269
+ run: async () => {
270
+ const file = join(ctx.cwd, clientDir, "_headers");
271
+ if (existsSync(file)) {
272
+ throw new Error("public/_headers is refused: Slotform writes the web client's _headers from vite.slots.clientHeaders, and Cloudflare joins a header two rules set. Remove public/_headers.");
273
+ }
274
+ const rules = names.map((n) => ` ${n}: ${headers[n]}`).join("\n");
275
+ writeFileSync(file, `/*\n${rules}\n`);
276
+ },
277
+ };
278
+ }),
279
+ // wrangler refuses to start when `assets.directory` is missing, which it
280
+ // is until the first `slotform build`; an empty one serves nothing and
281
+ // lets `wrangler dev` run on a fresh clone.
282
+ cliSlots.postWrite.contribute((ctx) => async () => {
283
+ const clientDir = await ctx.resolve(vite.slots.outDir);
284
+ if (clientDir !== null) {
285
+ mkdirSync(join(ctx.cwd, clientDir), { recursive: true });
286
+ }
287
+ }),
288
+ // wrangler types after the toml is written, non-fatal: docs/architecture/plugins/cloudflare.md, "Wrangler invocation".
289
+ cliSlots.postWrite.contribute((ctx) => async () => {
290
+ // A failed removal (a locked file) is a warning of its own, so it
291
+ // never masks the wrangler error being reported.
292
+ const removeStaleDts = () => {
293
+ try {
294
+ rmSync(join(ctx.cwd, WORKER_TYPES), { force: true });
295
+ }
296
+ catch (err) {
297
+ const detail = err instanceof Error ? err.message : String(err);
298
+ ctx.log.warn(`${WORKER_TYPES} could not be removed: ${detail}`);
299
+ }
300
+ };
301
+ const result = spawnSync("npx", ["wrangler", "types", WORKER_TYPES, "-c", WRANGLER_CONFIG], { cwd: ctx.cwd, stdio: "pipe", env: ctx.env });
302
+ if (result.error) {
303
+ removeStaleDts();
304
+ const err = result.error;
305
+ const hint = "code" in err && err.code === "ENOENT"
306
+ ? "npx not found on PATH; install Node.js or wrangler and re-run `slotform generate`."
307
+ : err.message;
308
+ ctx.log.warn(`wrangler types could not run (Env typings removed to surface the failure): ${hint}`);
309
+ return;
310
+ }
311
+ if (result.status !== 0) {
312
+ removeStaleDts();
313
+ const stderr = result.stderr?.toString().trim() ?? "";
314
+ ctx.log.warn(`wrangler types failed (Env typings removed to surface the failure)${stderr ? `: ${stderr}` : ""}. ` +
315
+ `Run \`pnpm exec wrangler types ${WORKER_TYPES} -c ${WRANGLER_CONFIG}\` manually to see the full error.`);
316
+ }
317
+ }),
318
+ ],
319
+ });
320
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAC/C,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AACvE,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAC5C,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,EAAE,GAAG,EAAE,MAAM,eAAe,CAAC;AACpC,OAAO,EAEN,aAAa,EACb,MAAM,EAEN,IAAI,GACJ,MAAM,eAAe,CAAC;AAEvB,OAAO,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACjE,OAAO,EAAE,OAAO,EAAE,MA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,CAAC,CAAC,EAAE,IAAI;oBACnG,kCAAkC,YAAY,OAAO,eAAe,oCAAoC,CACzG,CAAC;YACH,CAAC;QACF,CAAC,CAAC;KACF;CACD,CAAC,CAAC"}
@@ -0,0 +1,15 @@
1
+ import type { ContributionCtx } from "@slotform/cli";
2
+ import type { CodegenWranglerPayload } from "../types.ts";
3
+ export declare function sanitizeWranglerName(name: string): string;
4
+ export declare function aggregateWrangler(opts: {
5
+ consumerWrangler: string | null;
6
+ payload: CodegenWranglerPayload;
7
+ name?: string;
8
+ log: Pick<ContributionCtx["log"], "warn">;
9
+ }): string;
10
+ export declare function aggregateDevVars(secrets: Array<{
11
+ name: string;
12
+ devDefault: string;
13
+ }>): string | null;
14
+ export declare function escapeDevVarValue(value: string): string;
15
+ //# sourceMappingURL=codegen.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"codegen.d.ts","sourceRoot":"","sources":["../../src/node/codegen.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAQrD,OAAO,KAAK,EAAE,sBAAsB,EAAuB,MAAM,aAAa,CAAC;AAmC/E,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAOzD;AAED,wBAAgB,iBAAiB,CAAC,IAAI,EAAE;IACvC,gBAAgB,EAAE,MAAM,GAAG,IAAI,CAAC;IAChC,OAAO,EAAE,sBAAsB,CAAC;IAChC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,GAAG,EAAE,IAAI,CAAC,eAAe,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC,CAAC;CAC1C,GAAG,MAAM,CAmIT;AAmdD,wBAAgB,gBAAgB,CAC/B,OAAO,EAAE,KAAK,CAAC;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,UAAU,EAAE,MAAM,CAAA;CAAE,CAAC,GAClD,MAAM,GAAG,IAAI,CAMf;AA2BD,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAavD"}