@frybynite/image-cloud 0.6.4 → 0.6.5
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/{composite-CtUxtN2l.js → composite-BSJXKGwG.js} +13 -46
- package/dist/composite-BSJXKGwG.js.map +1 -0
- package/dist/{google-drive-CC-qFSV1.js → google-drive-DK2v0Xay.js} +69 -102
- package/dist/google-drive-DK2v0Xay.js.map +1 -0
- package/dist/image-cloud-CO9PMUGK.js +38 -0
- package/dist/image-cloud-CO9PMUGK.js.map +1 -0
- package/dist/image-cloud.js +1 -0
- package/dist/image-cloud.umd.js +3 -3
- package/dist/image-cloud.umd.js.map +1 -1
- package/dist/index.d.ts +29 -0
- package/dist/loaders/all.d.ts +29 -0
- package/dist/loaders/all.js +9 -42
- package/dist/loaders/all.js.map +1 -1
- package/dist/loaders/composite.d.ts +29 -0
- package/dist/loaders/composite.js +13 -46
- package/dist/loaders/composite.js.map +1 -1
- package/dist/loaders/google-drive.d.ts +29 -0
- package/dist/loaders/google-drive.js +38 -71
- package/dist/loaders/google-drive.js.map +1 -1
- package/dist/loaders/static.d.ts +29 -0
- package/dist/loaders/static.js +34 -67
- package/dist/loaders/static.js.map +1 -1
- package/dist/react.d.ts +29 -0
- package/dist/react.js +3 -3
- package/dist/static-D9YjTesh.js +186 -0
- package/dist/static-D9YjTesh.js.map +1 -0
- package/dist/vue.d.ts +29 -0
- package/dist/vue.js +3 -3
- package/dist/web-component.d.ts +29 -0
- package/dist/web-component.js +3 -3
- package/package.json +1 -1
- package/dist/composite-CtUxtN2l.js.map +0 -1
- package/dist/google-drive-CC-qFSV1.js.map +0 -1
- package/dist/static-ejylHtQ4.js +0 -219
- package/dist/static-ejylHtQ4.js.map +0 -1
package/dist/static-ejylHtQ4.js
DELETED
|
@@ -1,219 +0,0 @@
|
|
|
1
|
-
const n = class a {
|
|
2
|
-
/**
|
|
3
|
-
* Register a loader implementation with the registry
|
|
4
|
-
* @param name - Loader identifier (e.g., 'static', 'google-drive', 'composite')
|
|
5
|
-
* @param Loader - Loader class constructor to register
|
|
6
|
-
*/
|
|
7
|
-
static registerLoader(r, t) {
|
|
8
|
-
a.registry.set(r, t);
|
|
9
|
-
}
|
|
10
|
-
/**
|
|
11
|
-
* Get a registered loader implementation
|
|
12
|
-
* @param name - Loader identifier
|
|
13
|
-
* @returns Loader class constructor
|
|
14
|
-
* @throws Error if loader is not registered
|
|
15
|
-
*/
|
|
16
|
-
static getLoader(r) {
|
|
17
|
-
const t = a.registry.get(r);
|
|
18
|
-
if (!t)
|
|
19
|
-
throw new Error(
|
|
20
|
-
`Loader "${r}" is not registered. Import "@frybynite/image-cloud/loaders/${r}" or "@frybynite/image-cloud/loaders/all".`
|
|
21
|
-
);
|
|
22
|
-
return t;
|
|
23
|
-
}
|
|
24
|
-
/**
|
|
25
|
-
* Check if a loader is registered
|
|
26
|
-
* @param name - Loader identifier
|
|
27
|
-
* @returns True if the loader is registered, false otherwise
|
|
28
|
-
*/
|
|
29
|
-
static isRegistered(r) {
|
|
30
|
-
return a.registry.has(r);
|
|
31
|
-
}
|
|
32
|
-
};
|
|
33
|
-
n.registry = /* @__PURE__ */ new Map();
|
|
34
|
-
let l = n;
|
|
35
|
-
class c {
|
|
36
|
-
constructor(r) {
|
|
37
|
-
if (this._prepared = !1, this._discoveredUrls = [], this.validateUrls = r.validateUrls !== !1, this.validationTimeout = r.validationTimeout ?? 5e3, this.validationMethod = r.validationMethod ?? "head", this.debugLogging = r.debugLogging ?? !1, this.sources = r.sources ?? [], !this.sources || this.sources.length === 0)
|
|
38
|
-
throw new Error("StaticImageLoader requires at least one source to be configured");
|
|
39
|
-
this.log("StaticImageLoader initialized with config:", r);
|
|
40
|
-
}
|
|
41
|
-
/**
|
|
42
|
-
* Prepare the loader by discovering all images from configured sources
|
|
43
|
-
* @param filter - Filter to apply to discovered images
|
|
44
|
-
*/
|
|
45
|
-
async prepare(r) {
|
|
46
|
-
this._discoveredUrls = [], this.log(`Processing ${this.sources.length} source(s)`);
|
|
47
|
-
for (const t of this.sources)
|
|
48
|
-
try {
|
|
49
|
-
const i = await this.processSource(t, r);
|
|
50
|
-
this._discoveredUrls.push(...i);
|
|
51
|
-
} catch (i) {
|
|
52
|
-
console.warn("Failed to process source:", t, i);
|
|
53
|
-
}
|
|
54
|
-
this._prepared = !0, this.log(`Successfully loaded ${this._discoveredUrls.length} image(s)`);
|
|
55
|
-
}
|
|
56
|
-
/**
|
|
57
|
-
* Get the number of discovered images
|
|
58
|
-
* @throws Error if called before prepare()
|
|
59
|
-
*/
|
|
60
|
-
imagesLength() {
|
|
61
|
-
if (!this._prepared)
|
|
62
|
-
throw new Error("StaticImageLoader.imagesLength() called before prepare()");
|
|
63
|
-
return this._discoveredUrls.length;
|
|
64
|
-
}
|
|
65
|
-
/**
|
|
66
|
-
* Get the ordered list of image URLs
|
|
67
|
-
* @throws Error if called before prepare()
|
|
68
|
-
*/
|
|
69
|
-
imageURLs() {
|
|
70
|
-
if (!this._prepared)
|
|
71
|
-
throw new Error("StaticImageLoader.imageURLs() called before prepare()");
|
|
72
|
-
return [...this._discoveredUrls];
|
|
73
|
-
}
|
|
74
|
-
/**
|
|
75
|
-
* Check if the loader has been prepared
|
|
76
|
-
*/
|
|
77
|
-
isPrepared() {
|
|
78
|
-
return this._prepared;
|
|
79
|
-
}
|
|
80
|
-
/**
|
|
81
|
-
* Process a single source object using shape-based detection
|
|
82
|
-
* @param source - Source configuration detected by key presence
|
|
83
|
-
* @param filter - Filter to apply to discovered images
|
|
84
|
-
* @returns Promise resolving to array of valid URLs from this source
|
|
85
|
-
*/
|
|
86
|
-
async processSource(r, t) {
|
|
87
|
-
return r ? "urls" in r ? await this.processUrls(r.urls, t) : "path" in r ? await this.processPath(r.path, r.files, t) : "json" in r ? await this.processJson(r.json, t) : (console.warn("Unknown source shape:", r), []) : (console.warn("Invalid source object:", r), []);
|
|
88
|
-
}
|
|
89
|
-
/**
|
|
90
|
-
* Process a list of direct URLs
|
|
91
|
-
* @param urls - Array of image URLs
|
|
92
|
-
* @param filter - Filter to apply to discovered images
|
|
93
|
-
* @returns Promise resolving to array of validated URLs
|
|
94
|
-
*/
|
|
95
|
-
async processUrls(r, t) {
|
|
96
|
-
if (!Array.isArray(r))
|
|
97
|
-
return console.warn("URLs must be an array:", r), [];
|
|
98
|
-
const i = [];
|
|
99
|
-
for (const s of r) {
|
|
100
|
-
const e = s.split("/").pop() || s;
|
|
101
|
-
if (!t.isAllowed(e)) {
|
|
102
|
-
this.log(`Skipping filtered URL: ${s}`);
|
|
103
|
-
continue;
|
|
104
|
-
}
|
|
105
|
-
this.validateUrls ? await this.validateUrl(s) ? i.push(s) : console.warn(`Skipping invalid/missing URL: ${s}`) : i.push(s);
|
|
106
|
-
}
|
|
107
|
-
return i;
|
|
108
|
-
}
|
|
109
|
-
/**
|
|
110
|
-
* Process a path-based source
|
|
111
|
-
* @param basePath - Base path (relative or absolute)
|
|
112
|
-
* @param files - Array of filenames
|
|
113
|
-
* @param filter - Filter to apply to discovered images
|
|
114
|
-
* @returns Promise resolving to array of validated URLs
|
|
115
|
-
*/
|
|
116
|
-
async processPath(r, t, i) {
|
|
117
|
-
if (!Array.isArray(t))
|
|
118
|
-
return console.warn("files must be an array:", t), [];
|
|
119
|
-
const s = [];
|
|
120
|
-
for (const e of t) {
|
|
121
|
-
if (!i.isAllowed(e)) {
|
|
122
|
-
this.log(`Skipping filtered file: ${e}`);
|
|
123
|
-
continue;
|
|
124
|
-
}
|
|
125
|
-
const o = this.constructUrl(r, e);
|
|
126
|
-
this.validateUrls ? await this.validateUrl(o) ? s.push(o) : console.warn(`Skipping invalid/missing file: ${o}`) : s.push(o);
|
|
127
|
-
}
|
|
128
|
-
return s;
|
|
129
|
-
}
|
|
130
|
-
/**
|
|
131
|
-
* Process a JSON endpoint source
|
|
132
|
-
* Fetches a JSON endpoint that returns { images: string[] }
|
|
133
|
-
* @param url - JSON endpoint URL
|
|
134
|
-
* @param filter - Filter to apply to discovered images
|
|
135
|
-
* @returns Promise resolving to array of validated URLs
|
|
136
|
-
*/
|
|
137
|
-
async processJson(r, t) {
|
|
138
|
-
this.log(`Fetching JSON endpoint: ${r}`);
|
|
139
|
-
const i = new AbortController(), s = setTimeout(() => i.abort(), 1e4);
|
|
140
|
-
try {
|
|
141
|
-
const e = await fetch(r, { signal: i.signal });
|
|
142
|
-
if (clearTimeout(s), !e.ok)
|
|
143
|
-
throw new Error(`HTTP ${e.status} fetching ${r}`);
|
|
144
|
-
const o = await e.json();
|
|
145
|
-
if (!o || !Array.isArray(o.images))
|
|
146
|
-
throw new Error('JSON source must return JSON with shape { "images": ["url1", "url2", ...] }');
|
|
147
|
-
return this.log(`JSON endpoint returned ${o.images.length} image(s)`), await this.processUrls(o.images, t);
|
|
148
|
-
} catch (e) {
|
|
149
|
-
throw clearTimeout(s), e instanceof Error && e.name === "AbortError" ? new Error(`Timeout fetching JSON endpoint: ${r}`) : e;
|
|
150
|
-
}
|
|
151
|
-
}
|
|
152
|
-
/**
|
|
153
|
-
* Validate a single URL using HEAD request
|
|
154
|
-
* @param url - URL to validate
|
|
155
|
-
* @returns Promise resolving to true if valid and accessible
|
|
156
|
-
*/
|
|
157
|
-
async validateUrl(r) {
|
|
158
|
-
if (this.validationMethod === "none")
|
|
159
|
-
return !0;
|
|
160
|
-
if (this.validationMethod === "simple")
|
|
161
|
-
try {
|
|
162
|
-
return typeof window < "u" ? new URL(r, window.location.origin) : new URL(r), !0;
|
|
163
|
-
} catch {
|
|
164
|
-
return !1;
|
|
165
|
-
}
|
|
166
|
-
if (typeof window > "u")
|
|
167
|
-
return !0;
|
|
168
|
-
if (!(r.startsWith(window.location.origin) || r.startsWith("/")))
|
|
169
|
-
return this.log(`Skipping validation for cross-origin URL: ${r}`), !0;
|
|
170
|
-
try {
|
|
171
|
-
const t = new AbortController(), i = setTimeout(() => t.abort(), this.validationTimeout), s = await fetch(r, {
|
|
172
|
-
method: "HEAD",
|
|
173
|
-
signal: t.signal
|
|
174
|
-
});
|
|
175
|
-
return clearTimeout(i), s.ok ? !0 : (this.log(`Validation failed for ${r}: HTTP ${s.status}`), !1);
|
|
176
|
-
} catch (t) {
|
|
177
|
-
return t instanceof Error && (t.name === "AbortError" ? this.log(`Validation timeout for ${r}`) : this.log(`Validation failed for ${r}:`, t.message)), !1;
|
|
178
|
-
}
|
|
179
|
-
}
|
|
180
|
-
/**
|
|
181
|
-
* Construct full URL from basePath and filename
|
|
182
|
-
* @param basePath - Base path (relative or absolute)
|
|
183
|
-
* @param filename - Filename to append
|
|
184
|
-
* @returns Complete URL
|
|
185
|
-
*/
|
|
186
|
-
constructUrl(r, t) {
|
|
187
|
-
const i = r.replace(/\/$/, "");
|
|
188
|
-
if (this.isAbsoluteUrl(r))
|
|
189
|
-
return `${i}/${t}`;
|
|
190
|
-
if (typeof window > "u")
|
|
191
|
-
return `${i}/${t}`;
|
|
192
|
-
const s = window.location.origin, e = (r.startsWith("/") ? r : "/" + r).replace(/\/$/, "");
|
|
193
|
-
return `${s}${e}/${t}`;
|
|
194
|
-
}
|
|
195
|
-
/**
|
|
196
|
-
* Check if URL is absolute (contains protocol)
|
|
197
|
-
* @param url - URL to check
|
|
198
|
-
* @returns True if absolute URL
|
|
199
|
-
*/
|
|
200
|
-
isAbsoluteUrl(r) {
|
|
201
|
-
try {
|
|
202
|
-
return new URL(r), !0;
|
|
203
|
-
} catch {
|
|
204
|
-
return !1;
|
|
205
|
-
}
|
|
206
|
-
}
|
|
207
|
-
/**
|
|
208
|
-
* Debug logging helper
|
|
209
|
-
* @param args - Arguments to log
|
|
210
|
-
*/
|
|
211
|
-
log(...r) {
|
|
212
|
-
this.debugLogging && typeof console < "u" && console.log(...r);
|
|
213
|
-
}
|
|
214
|
-
}
|
|
215
|
-
l.registerLoader("static", c);
|
|
216
|
-
export {
|
|
217
|
-
c as StaticImageLoader
|
|
218
|
-
};
|
|
219
|
-
//# sourceMappingURL=static-ejylHtQ4.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"static-ejylHtQ4.js","sources":["loaders/static.js"],"sourcesContent":["const a = class a {\n /**\n * Register a loader implementation with the registry\n * @param name - Loader identifier (e.g., 'static', 'google-drive', 'composite')\n * @param Loader - Loader class constructor to register\n */\n static registerLoader(e, t) {\n a.registry.set(e, t);\n }\n /**\n * Get a registered loader implementation\n * @param name - Loader identifier\n * @returns Loader class constructor\n * @throws Error if loader is not registered\n */\n static getLoader(e) {\n const t = a.registry.get(e);\n if (!t)\n throw new Error(\n `Loader \"${e}\" is not registered. Import \"@frybynite/image-cloud/loaders/${e}\" or \"@frybynite/image-cloud/loaders/all\".`\n );\n return t;\n }\n /**\n * Check if a loader is registered\n * @param name - Loader identifier\n * @returns True if the loader is registered, false otherwise\n */\n static isRegistered(e) {\n return a.registry.has(e);\n }\n};\na.registry = /* @__PURE__ */ new Map();\nlet n = a;\nclass l {\n constructor(e) {\n if (this._prepared = !1, this._discoveredUrls = [], this.validateUrls = e.validateUrls !== !1, this.validationTimeout = e.validationTimeout ?? 5e3, this.validationMethod = e.validationMethod ?? \"head\", this.debugLogging = e.debugLogging ?? !1, this.sources = e.sources ?? [], !this.sources || this.sources.length === 0)\n throw new Error(\"StaticImageLoader requires at least one source to be configured\");\n this.log(\"StaticImageLoader initialized with config:\", e);\n }\n /**\n * Prepare the loader by discovering all images from configured sources\n * @param filter - Filter to apply to discovered images\n */\n async prepare(e) {\n this._discoveredUrls = [], this.log(`Processing ${this.sources.length} source(s)`);\n for (const t of this.sources)\n try {\n const r = await this.processSource(t, e);\n this._discoveredUrls.push(...r);\n } catch (r) {\n console.warn(\"Failed to process source:\", t, r);\n }\n this._prepared = !0, this.log(`Successfully loaded ${this._discoveredUrls.length} image(s)`);\n }\n /**\n * Get the number of discovered images\n * @throws Error if called before prepare()\n */\n imagesLength() {\n if (!this._prepared)\n throw new Error(\"StaticImageLoader.imagesLength() called before prepare()\");\n return this._discoveredUrls.length;\n }\n /**\n * Get the ordered list of image URLs\n * @throws Error if called before prepare()\n */\n imageURLs() {\n if (!this._prepared)\n throw new Error(\"StaticImageLoader.imageURLs() called before prepare()\");\n return [...this._discoveredUrls];\n }\n /**\n * Check if the loader has been prepared\n */\n isPrepared() {\n return this._prepared;\n }\n /**\n * Process a single source object using shape-based detection\n * @param source - Source configuration detected by key presence\n * @param filter - Filter to apply to discovered images\n * @returns Promise resolving to array of valid URLs from this source\n */\n async processSource(e, t) {\n return e ? \"urls\" in e ? await this.processUrls(e.urls, t) : \"path\" in e ? await this.processPath(e.path, e.files, t) : \"json\" in e ? await this.processJson(e.json, t) : (console.warn(\"Unknown source shape:\", e), []) : (console.warn(\"Invalid source object:\", e), []);\n }\n /**\n * Process a list of direct URLs\n * @param urls - Array of image URLs\n * @param filter - Filter to apply to discovered images\n * @returns Promise resolving to array of validated URLs\n */\n async processUrls(e, t) {\n if (!Array.isArray(e))\n return console.warn(\"URLs must be an array:\", e), [];\n const r = [];\n for (const i of e) {\n const s = i.split(\"/\").pop() || i;\n if (!t.isAllowed(s)) {\n this.log(`Skipping filtered URL: ${i}`);\n continue;\n }\n this.validateUrls ? await this.validateUrl(i) ? r.push(i) : console.warn(`Skipping invalid/missing URL: ${i}`) : r.push(i);\n }\n return r;\n }\n /**\n * Process a path-based source\n * @param basePath - Base path (relative or absolute)\n * @param files - Array of filenames\n * @param filter - Filter to apply to discovered images\n * @returns Promise resolving to array of validated URLs\n */\n async processPath(e, t, r) {\n if (!Array.isArray(t))\n return console.warn(\"files must be an array:\", t), [];\n const i = [];\n for (const s of t) {\n if (!r.isAllowed(s)) {\n this.log(`Skipping filtered file: ${s}`);\n continue;\n }\n const o = this.constructUrl(e, s);\n this.validateUrls ? await this.validateUrl(o) ? i.push(o) : console.warn(`Skipping invalid/missing file: ${o}`) : i.push(o);\n }\n return i;\n }\n /**\n * Process a JSON endpoint source\n * Fetches a JSON endpoint that returns { images: string[] }\n * @param url - JSON endpoint URL\n * @param filter - Filter to apply to discovered images\n * @returns Promise resolving to array of validated URLs\n */\n async processJson(e, t) {\n this.log(`Fetching JSON endpoint: ${e}`);\n const r = new AbortController(), i = setTimeout(() => r.abort(), 1e4);\n try {\n const s = await fetch(e, { signal: r.signal });\n if (clearTimeout(i), !s.ok)\n throw new Error(`HTTP ${s.status} fetching ${e}`);\n const o = await s.json();\n if (!o || !Array.isArray(o.images))\n throw new Error('JSON source must return JSON with shape { \"images\": [\"url1\", \"url2\", ...] }');\n return this.log(`JSON endpoint returned ${o.images.length} image(s)`), await this.processUrls(o.images, t);\n } catch (s) {\n throw clearTimeout(i), s instanceof Error && s.name === \"AbortError\" ? new Error(`Timeout fetching JSON endpoint: ${e}`) : s;\n }\n }\n /**\n * Validate a single URL using HEAD request\n * @param url - URL to validate\n * @returns Promise resolving to true if valid and accessible\n */\n async validateUrl(e) {\n if (this.validationMethod === \"none\")\n return !0;\n if (this.validationMethod === \"simple\")\n try {\n return typeof window < \"u\" ? new URL(e, window.location.origin) : new URL(e), !0;\n } catch {\n return !1;\n }\n if (typeof window > \"u\")\n return !0;\n if (!(e.startsWith(window.location.origin) || e.startsWith(\"/\")))\n return this.log(`Skipping validation for cross-origin URL: ${e}`), !0;\n try {\n const r = new AbortController(), i = setTimeout(() => r.abort(), this.validationTimeout), s = await fetch(e, {\n method: \"HEAD\",\n signal: r.signal\n });\n return clearTimeout(i), s.ok ? !0 : (this.log(`Validation failed for ${e}: HTTP ${s.status}`), !1);\n } catch (r) {\n return r instanceof Error && (r.name === \"AbortError\" ? this.log(`Validation timeout for ${e}`) : this.log(`Validation failed for ${e}:`, r.message)), !1;\n }\n }\n /**\n * Construct full URL from basePath and filename\n * @param basePath - Base path (relative or absolute)\n * @param filename - Filename to append\n * @returns Complete URL\n */\n constructUrl(e, t) {\n const r = e.replace(/\\/$/, \"\");\n if (this.isAbsoluteUrl(e))\n return `${r}/${t}`;\n if (typeof window > \"u\")\n return `${r}/${t}`;\n const i = window.location.origin, o = (e.startsWith(\"/\") ? e : \"/\" + e).replace(/\\/$/, \"\");\n return `${i}${o}/${t}`;\n }\n /**\n * Check if URL is absolute (contains protocol)\n * @param url - URL to check\n * @returns True if absolute URL\n */\n isAbsoluteUrl(e) {\n try {\n return new URL(e), !0;\n } catch {\n return !1;\n }\n }\n /**\n * Debug logging helper\n * @param args - Arguments to log\n */\n log(...e) {\n this.debugLogging && typeof console < \"u\" && console.log(...e);\n }\n}\nn.registerLoader(\"static\", l);\nexport {\n l as StaticImageLoader\n};\n//# sourceMappingURL=static.js.map\n"],"names":["a","e","n","l","r","i","s","o"],"mappings":"AAAA,MAAMA,IAAI,MAAM,EAAE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAMhB,OAAO,eAAeC,GAAG,GAAG;AAC1B,MAAE,SAAS,IAAIA,GAAG,CAAC;AAAA,EACrB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAOA,OAAO,UAAUA,GAAG;AAClB,UAAM,IAAI,EAAE,SAAS,IAAIA,CAAC;AAC1B,QAAI,CAAC;AACH,YAAM,IAAI;AAAA,QACR,WAAWA,CAAC,+DAA+DA,CAAC;AAAA,MACpF;AACI,WAAO;AAAA,EACT;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAMA,OAAO,aAAaA,GAAG;AACrB,WAAO,EAAE,SAAS,IAAIA,CAAC;AAAA,EACzB;AACF;AACAD,EAAE,WAA2B,oBAAI,IAAG;AACpC,IAAIE,IAAIF;AACR,MAAMG,EAAE;AAAA,EACN,YAAYF,GAAG;AACb,QAAI,KAAK,YAAY,IAAI,KAAK,kBAAkB,CAAA,GAAI,KAAK,eAAeA,EAAE,iBAAiB,IAAI,KAAK,oBAAoBA,EAAE,qBAAqB,KAAK,KAAK,mBAAmBA,EAAE,oBAAoB,QAAQ,KAAK,eAAeA,EAAE,gBAAgB,IAAI,KAAK,UAAUA,EAAE,WAAW,CAAA,GAAI,CAAC,KAAK,WAAW,KAAK,QAAQ,WAAW;AAC3T,YAAM,IAAI,MAAM,iEAAiE;AACnF,SAAK,IA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