readwhitepaper-embed 1.0.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.
@@ -0,0 +1,834 @@
1
+ /* readwhitepaper-embed v1.0.0 | MIT | https://widget.readwhitepaper.com */
2
+ "use strict";(()=>{function E(){return`
3
+ /* Modern: gradient accent header */
4
+ .readwhitepaper-header {
5
+ background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 70%, #000));
6
+ border-radius: 12px 12px 0 0;
7
+ padding: 16px 20px;
8
+ display: flex;
9
+ align-items: flex-start;
10
+ gap: 14px;
11
+ }
12
+
13
+ .readwhitepaper-header-title {
14
+ font-size: 15px;
15
+ font-weight: 700;
16
+ color: #fff;
17
+ margin: 0 0 4px 0;
18
+ line-height: 1.3;
19
+ }
20
+
21
+ .readwhitepaper-header-subtitle {
22
+ font-size: 12px;
23
+ color: rgba(255, 255, 255, 0.8);
24
+ margin: 0;
25
+ }
26
+
27
+ /* Image/preview area \u2014 for document icons, logos */
28
+ .readwhitepaper-img {
29
+ width: 56px;
30
+ height: 56px;
31
+ border-radius: 8px;
32
+ object-fit: cover;
33
+ background: rgba(255, 255, 255, 0.15);
34
+ flex-shrink: 0;
35
+ display: flex;
36
+ align-items: center;
37
+ justify-content: center;
38
+ overflow: hidden;
39
+ }
40
+
41
+ .readwhitepaper-img svg {
42
+ width: 28px;
43
+ height: 28px;
44
+ color: rgba(255, 255, 255, 0.9);
45
+ }
46
+
47
+ /* Body area */
48
+ .readwhitepaper-body {
49
+ padding: 16px 20px;
50
+ }
51
+
52
+ /* Key-value rows \u2014 spacious */
53
+ .readwhitepaper-row {
54
+ display: flex;
55
+ justify-content: space-between;
56
+ align-items: flex-start;
57
+ gap: 12px;
58
+ padding: 8px 0;
59
+ border-bottom: 1px solid var(--border);
60
+ }
61
+
62
+ .readwhitepaper-row:last-child {
63
+ border-bottom: none;
64
+ }
65
+
66
+ .readwhitepaper-label {
67
+ font-size: 12px;
68
+ font-weight: 500;
69
+ color: var(--muted);
70
+ white-space: nowrap;
71
+ flex-shrink: 0;
72
+ min-width: 30%;
73
+ }
74
+
75
+ .readwhitepaper-value {
76
+ font-size: 13px;
77
+ color: var(--text);
78
+ text-align: right;
79
+ word-break: break-word;
80
+ }
81
+
82
+ /* Section title */
83
+ .readwhitepaper-section-title {
84
+ font-size: 11px;
85
+ font-weight: 600;
86
+ color: var(--muted);
87
+ text-transform: uppercase;
88
+ letter-spacing: 0.06em;
89
+ margin: 0 0 10px 0;
90
+ }
91
+
92
+ /* Tags \u2014 colored rounded badges */
93
+ .readwhitepaper-tag {
94
+ display: inline-block;
95
+ font-size: 11px;
96
+ font-weight: 600;
97
+ padding: 3px 10px;
98
+ border-radius: 12px;
99
+ background: color-mix(in srgb, var(--accent) 12%, transparent);
100
+ color: var(--accent);
101
+ margin: 2px 3px 2px 0;
102
+ letter-spacing: 0.02em;
103
+ }
104
+
105
+ /* Link */
106
+ .readwhitepaper-link {
107
+ font-size: 13px;
108
+ font-weight: 500;
109
+ color: var(--link);
110
+ text-decoration: none;
111
+ display: inline-flex;
112
+ align-items: center;
113
+ gap: 4px;
114
+ }
115
+
116
+ .readwhitepaper-link:hover {
117
+ opacity: 0.8;
118
+ text-decoration: underline;
119
+ }
120
+
121
+ .readwhitepaper-link svg {
122
+ width: 12px;
123
+ height: 12px;
124
+ flex-shrink: 0;
125
+ }
126
+
127
+ /* Footer link row */
128
+ .readwhitepaper-footer-link {
129
+ display: flex;
130
+ align-items: center;
131
+ justify-content: space-between;
132
+ padding: 12px 20px;
133
+ border-top: 1px solid var(--border);
134
+ gap: 8px;
135
+ }
136
+
137
+ /* \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500
138
+ Card shared: key-value dotted rows
139
+ \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 */
140
+ .readwhitepaper-kv-rows { padding:10px 18px; border-bottom:1px solid var(--border); }
141
+ .readwhitepaper-kv-row { display:flex; justify-content:space-between; align-items:baseline; padding:4px 0; border-bottom:1px dotted var(--border); }
142
+ .readwhitepaper-kv-row:last-child { border-bottom:none; }
143
+ .readwhitepaper-kv-label { font-size:11px; color:var(--muted); }
144
+ .readwhitepaper-kv-value { font-size:11px; font-weight:600; color:var(--text); }
145
+
146
+ /* Card shared: pill tags */
147
+ .readwhitepaper-pills { display:flex; flex-wrap:wrap; gap:4px; padding:10px 18px; border-bottom:1px solid var(--border); }
148
+ .readwhitepaper-pill { padding:2px 8px; border-radius:10px; font-size:11px; font-weight:500; background:color-mix(in srgb, var(--accent) 10%, var(--bg)); color:var(--accent); text-decoration:none; }
149
+ .readwhitepaper-pill:hover { opacity:0.8; }
150
+
151
+ /* Card shared: section label */
152
+ .readwhitepaper-section-label { font-size:10px; text-transform:uppercase; letter-spacing:0.05em; color:var(--accent); font-weight:600; margin-bottom:3px; }
153
+
154
+ /* Card shared: description */
155
+ .readwhitepaper-desc { padding:10px 18px; font-size:11px; color:var(--muted); line-height:1.5; border-bottom:1px solid var(--border); }
156
+
157
+ /* Card shared: view link */
158
+ .readwhitepaper-view-link { display:block; text-align:center; padding:10px 18px; border-bottom:1px solid var(--border); }
159
+ .readwhitepaper-view-link a { color:var(--link); text-decoration:none; font-size:12px; font-weight:500; display:inline-flex; align-items:center; gap:4px; }
160
+ .readwhitepaper-view-link a:hover { text-decoration:underline; }
161
+ .readwhitepaper-view-link svg { width:12px; height:12px; }
162
+
163
+ /* \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500
164
+ Card domain: whitepaper abstract
165
+ \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 */
166
+ .readwhitepaper-abstract {
167
+ padding: 10px 18px;
168
+ font-size: 12px;
169
+ color: var(--text);
170
+ line-height: 1.55;
171
+ border-bottom: 1px solid var(--border);
172
+ }
173
+
174
+ /* Card domain: authors row */
175
+ .readwhitepaper-authors {
176
+ padding: 8px 18px;
177
+ font-size: 11px;
178
+ color: var(--muted);
179
+ border-bottom: 1px solid var(--border);
180
+ }
181
+
182
+ .readwhitepaper-authors strong {
183
+ color: var(--text);
184
+ font-weight: 600;
185
+ }
186
+
187
+ /* Card domain: glossary summary block */
188
+ .readwhitepaper-summary {
189
+ padding: 12px 18px;
190
+ font-size: 12px;
191
+ color: var(--text);
192
+ line-height: 1.55;
193
+ border-bottom: 1px solid var(--border);
194
+ }
195
+
196
+ /* Card domain: related terms in pills row */
197
+ .readwhitepaper-pills-row {
198
+ display: flex;
199
+ flex-wrap: wrap;
200
+ gap: 4px;
201
+ padding: 8px 18px;
202
+ border-bottom: 1px solid var(--border);
203
+ }
204
+
205
+ /* Card domain: actions links */
206
+ .readwhitepaper-actions {
207
+ padding: 10px 18px;
208
+ display: flex;
209
+ flex-direction: column;
210
+ gap: 6px;
211
+ border-bottom: 1px solid var(--border);
212
+ }
213
+ `}function $(){return`
214
+ /* Minimal: thin accent border, no gradient */
215
+ .readwhitepaper-widget {
216
+ font-family: 'Fira Code', 'Cascadia Code', 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Consolas, monospace;
217
+ font-size: 12px;
218
+ }
219
+
220
+ /* Header \u2014 surface bg with thin accent top border */
221
+ .readwhitepaper-header {
222
+ background: var(--surface);
223
+ border-top: 2px solid var(--accent);
224
+ padding: 8px 10px;
225
+ display: flex;
226
+ align-items: flex-start;
227
+ gap: 10px;
228
+ }
229
+
230
+ .readwhitepaper-header-title {
231
+ font-size: 13px;
232
+ font-weight: 600;
233
+ color: var(--text);
234
+ margin: 0 0 2px 0;
235
+ line-height: 1.3;
236
+ font-family: inherit;
237
+ }
238
+
239
+ .readwhitepaper-header-subtitle {
240
+ font-size: 11px;
241
+ color: var(--muted);
242
+ margin: 0;
243
+ }
244
+
245
+ /* Image/preview area \u2014 compact */
246
+ .readwhitepaper-img {
247
+ width: 36px;
248
+ height: 36px;
249
+ border-radius: 4px;
250
+ background: var(--badge-bg);
251
+ flex-shrink: 0;
252
+ display: flex;
253
+ align-items: center;
254
+ justify-content: center;
255
+ overflow: hidden;
256
+ border: 1px solid var(--border);
257
+ }
258
+
259
+ .readwhitepaper-img svg {
260
+ width: 18px;
261
+ height: 18px;
262
+ color: var(--muted);
263
+ }
264
+
265
+ /* Body area */
266
+ .readwhitepaper-body {
267
+ padding: 8px 10px;
268
+ }
269
+
270
+ /* Key-value rows \u2014 compact */
271
+ .readwhitepaper-row {
272
+ display: flex;
273
+ justify-content: space-between;
274
+ align-items: baseline;
275
+ gap: 8px;
276
+ padding: 4px 0;
277
+ border-bottom: 1px solid var(--border);
278
+ }
279
+
280
+ .readwhitepaper-row:last-child {
281
+ border-bottom: none;
282
+ }
283
+
284
+ .readwhitepaper-label {
285
+ font-size: 10px;
286
+ font-weight: 500;
287
+ color: var(--muted);
288
+ white-space: nowrap;
289
+ flex-shrink: 0;
290
+ min-width: 30%;
291
+ text-transform: uppercase;
292
+ letter-spacing: 0.05em;
293
+ }
294
+
295
+ .readwhitepaper-value {
296
+ font-size: 11px;
297
+ color: var(--text);
298
+ text-align: right;
299
+ word-break: break-word;
300
+ font-family: inherit;
301
+ }
302
+
303
+ /* Section title */
304
+ .readwhitepaper-section-title {
305
+ font-size: 9px;
306
+ font-weight: 600;
307
+ color: var(--muted);
308
+ text-transform: uppercase;
309
+ letter-spacing: 0.08em;
310
+ margin: 0 0 6px 0;
311
+ }
312
+
313
+ /* Tags \u2014 muted, minimal */
314
+ .readwhitepaper-tag {
315
+ display: inline-block;
316
+ font-size: 10px;
317
+ font-weight: 500;
318
+ padding: 1px 6px;
319
+ border-radius: 3px;
320
+ background: var(--badge-bg);
321
+ color: var(--badge-text);
322
+ border: 1px solid var(--border);
323
+ margin: 1px 2px 1px 0;
324
+ }
325
+
326
+ /* Link */
327
+ .readwhitepaper-link {
328
+ font-size: 11px;
329
+ font-weight: 500;
330
+ color: var(--link);
331
+ text-decoration: none;
332
+ display: inline-flex;
333
+ align-items: center;
334
+ gap: 3px;
335
+ }
336
+
337
+ .readwhitepaper-link:hover {
338
+ text-decoration: underline;
339
+ }
340
+
341
+ .readwhitepaper-link svg {
342
+ width: 10px;
343
+ height: 10px;
344
+ flex-shrink: 0;
345
+ }
346
+
347
+ /* Footer link row */
348
+ .readwhitepaper-footer-link {
349
+ display: flex;
350
+ align-items: center;
351
+ justify-content: space-between;
352
+ padding: 6px 10px;
353
+ border-top: 1px solid var(--border);
354
+ gap: 6px;
355
+ }
356
+
357
+ /* \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500
358
+ Minimal overrides for card shared components
359
+ \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 */
360
+
361
+ /* KV rows: all monospace */
362
+ .readwhitepaper-kv-rows { padding:6px 10px; border-bottom:1px solid var(--border); }
363
+ .readwhitepaper-kv-row { display:flex; justify-content:space-between; align-items:baseline; padding:3px 0; border-bottom:1px dotted var(--border); }
364
+ .readwhitepaper-kv-row:last-child { border-bottom:none; }
365
+ .readwhitepaper-kv-label { font-size:9px; color:var(--muted); text-transform:uppercase; letter-spacing:0.04em; }
366
+ .readwhitepaper-kv-value { font-size:10px; font-weight:600; color:var(--text); font-family:inherit; }
367
+
368
+ /* Pills: border outline only */
369
+ .readwhitepaper-pills { display:flex; flex-wrap:wrap; gap:3px; padding:6px 10px; border-bottom:1px solid var(--border); }
370
+ .readwhitepaper-pill { padding:1px 6px; border-radius:3px; font-size:10px; font-weight:500; background:transparent; border:1px solid var(--border); color:var(--muted); text-decoration:none; }
371
+ .readwhitepaper-pill:hover { color:var(--text); border-color:var(--accent); }
372
+
373
+ /* Section label */
374
+ .readwhitepaper-section-label { font-size:9px; text-transform:uppercase; letter-spacing:0.06em; color:var(--muted); font-weight:600; margin-bottom:3px; }
375
+
376
+ /* Description: compact */
377
+ .readwhitepaper-desc { padding:6px 10px; font-size:10px; color:var(--muted); line-height:1.4; border-bottom:1px solid var(--border); }
378
+
379
+ /* View link */
380
+ .readwhitepaper-view-link { display:block; text-align:left; padding:6px 10px; border-bottom:1px solid var(--border); }
381
+ .readwhitepaper-view-link a { color:var(--link); text-decoration:none; font-size:11px; font-weight:500; display:inline-flex; align-items:center; gap:3px; }
382
+ .readwhitepaper-view-link a:hover { text-decoration:underline; }
383
+ .readwhitepaper-view-link svg { width:10px; height:10px; }
384
+
385
+ /* \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500
386
+ Minimal: domain-specific overrides
387
+ \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 */
388
+
389
+ /* Abstract */
390
+ .readwhitepaper-abstract {
391
+ padding: 6px 10px;
392
+ font-size: 10px;
393
+ color: var(--text);
394
+ line-height: 1.4;
395
+ border-bottom: 1px solid var(--border);
396
+ }
397
+
398
+ /* Authors row */
399
+ .readwhitepaper-authors {
400
+ padding: 4px 10px;
401
+ font-size: 10px;
402
+ color: var(--muted);
403
+ border-bottom: 1px solid var(--border);
404
+ }
405
+
406
+ .readwhitepaper-authors strong {
407
+ color: var(--text);
408
+ font-weight: 600;
409
+ font-family: inherit;
410
+ }
411
+
412
+ /* Glossary summary */
413
+ .readwhitepaper-summary {
414
+ padding: 6px 10px;
415
+ font-size: 10px;
416
+ color: var(--text);
417
+ line-height: 1.4;
418
+ border-bottom: 1px solid var(--border);
419
+ }
420
+
421
+ /* Related pills row */
422
+ .readwhitepaper-pills-row {
423
+ display: flex;
424
+ flex-wrap: wrap;
425
+ gap: 3px;
426
+ padding: 4px 10px;
427
+ border-bottom: 1px solid var(--border);
428
+ }
429
+
430
+ /* Actions links */
431
+ .readwhitepaper-actions {
432
+ padding: 6px 10px;
433
+ display: flex;
434
+ flex-direction: column;
435
+ gap: 4px;
436
+ border-bottom: 1px solid var(--border);
437
+ }
438
+
439
+ /* \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500
440
+ Minimal: copy button \u2014 inline symbol style
441
+ \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 */
442
+ .readwhitepaper-copy-btn {
443
+ background: transparent;
444
+ color: var(--muted);
445
+ border: 1px solid var(--border);
446
+ border-radius: 3px;
447
+ padding: 2px 6px;
448
+ font-size: 10px;
449
+ cursor: pointer;
450
+ display: inline-flex;
451
+ align-items: center;
452
+ gap: 2px;
453
+ transition: color 0.1s, border-color 0.1s;
454
+ font-family: inherit;
455
+ }
456
+
457
+ .readwhitepaper-copy-btn:hover {
458
+ color: var(--text);
459
+ border-color: var(--accent);
460
+ }
461
+
462
+ .readwhitepaper-copy-btn svg {
463
+ width: 10px;
464
+ height: 10px;
465
+ }
466
+ `}function I(t){switch(t){case"minimal":return $();case"modern":default:return E()}}function M(t,e="modern"){return`
467
+ :host {
468
+ display: block;
469
+ --site-accent: ${t};
470
+ }
471
+
472
+ /* \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500
473
+ Size variants
474
+ compact=280px, default=420px, large=720px
475
+ \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 */
476
+ .readwhitepaper-widget {
477
+ box-sizing: border-box;
478
+ min-width: 240px;
479
+ max-width: 420px;
480
+ border-radius: 8px;
481
+ overflow: hidden;
482
+ border: 1px solid var(--border);
483
+ background: var(--bg);
484
+ color: var(--text);
485
+ font-size: 14px;
486
+ line-height: 1.6;
487
+ transition: border-color 0.2s;
488
+ font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
489
+ }
490
+
491
+ .readwhitepaper-widget[data-size="compact"] {
492
+ max-width: 280px;
493
+ font-size: 13px;
494
+ }
495
+
496
+ .readwhitepaper-widget[data-size="default"] {
497
+ max-width: 420px;
498
+ }
499
+
500
+ .readwhitepaper-widget[data-size="large"] {
501
+ max-width: 720px;
502
+ }
503
+
504
+ /* \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500
505
+ Light theme (default)
506
+ \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 */
507
+ .readwhitepaper-widget[data-theme="light"] {
508
+ --bg: #fff;
509
+ --text: #1e293b;
510
+ --border: #e2e8f0;
511
+ --accent: var(--site-accent);
512
+ --muted: #64748b;
513
+ --surface: #f8fafc;
514
+ --badge-bg: #f1f5f9;
515
+ --badge-text: #374151;
516
+ --link: var(--site-accent);
517
+ --copy-bg: #f3f4f6;
518
+ --copy-hover: #e5e7eb;
519
+ --input-bg: #ffffff;
520
+ --input-border: #d1d5db;
521
+ --input-focus: var(--site-accent);
522
+ --shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
523
+ }
524
+
525
+ /* \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500
526
+ Dark theme
527
+ \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 */
528
+ .readwhitepaper-widget[data-theme="dark"] {
529
+ --bg: #1a1a1a;
530
+ --text: #f3f4f6;
531
+ --border: #374151;
532
+ --accent: var(--site-accent);
533
+ --muted: #9ca3af;
534
+ --surface: #111827;
535
+ --badge-bg: #374151;
536
+ --badge-text: #d1d5db;
537
+ --link: color-mix(in srgb, var(--site-accent) 80%, #fff);
538
+ --copy-bg: #374151;
539
+ --copy-hover: #4b5563;
540
+ --input-bg: #111111;
541
+ --input-border: #4b5563;
542
+ --input-focus: var(--site-accent);
543
+ --shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
544
+ }
545
+
546
+ /* \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500
547
+ Sepia theme
548
+ \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 */
549
+ .readwhitepaper-widget[data-theme="sepia"] {
550
+ --bg: #f5f0e8;
551
+ --text: #3d3529;
552
+ --border: #d4c5a9;
553
+ --accent: var(--site-accent);
554
+ --muted: #8b7d6b;
555
+ --surface: #ede8df;
556
+ --badge-bg: #e8e0d0;
557
+ --badge-text: #5c4f3d;
558
+ --link: color-mix(in srgb, var(--site-accent) 70%, #3d3529);
559
+ --copy-bg: #e8e0d0;
560
+ --copy-hover: #ddd4c0;
561
+ --input-bg: #f5f0e8;
562
+ --input-border: #c4b49a;
563
+ --input-focus: var(--site-accent);
564
+ --shadow: 0 1px 3px rgba(61, 53, 41, 0.12);
565
+ }
566
+
567
+ .readwhitepaper-widget *, .readwhitepaper-widget *::before, .readwhitepaper-widget *::after {
568
+ box-sizing: border-box;
569
+ }
570
+
571
+ /* \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500
572
+ Loading state
573
+ \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 */
574
+ .readwhitepaper-loading {
575
+ padding: 20px 16px;
576
+ text-align: center;
577
+ color: var(--muted);
578
+ font-size: 13px;
579
+ display: flex;
580
+ align-items: center;
581
+ justify-content: center;
582
+ gap: 8px;
583
+ }
584
+
585
+ .readwhitepaper-spinner {
586
+ width: 16px;
587
+ height: 16px;
588
+ border: 2px solid var(--border);
589
+ border-top-color: var(--accent);
590
+ border-radius: 50%;
591
+ animation: readwhitepaper-spin 0.7s linear infinite;
592
+ display: inline-block;
593
+ flex-shrink: 0;
594
+ }
595
+
596
+ @keyframes readwhitepaper-spin {
597
+ to { transform: rotate(360deg); }
598
+ }
599
+
600
+ /* \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500
601
+ Error state
602
+ \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 */
603
+ .readwhitepaper-error {
604
+ padding: 16px;
605
+ color: var(--muted);
606
+ font-size: 13px;
607
+ text-align: center;
608
+ }
609
+
610
+ .readwhitepaper-error p {
611
+ margin: 0 0 8px 0;
612
+ }
613
+
614
+ .readwhitepaper-error a {
615
+ color: var(--link);
616
+ text-decoration: none;
617
+ }
618
+
619
+ .readwhitepaper-error a:hover {
620
+ text-decoration: underline;
621
+ }
622
+
623
+ /* \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500
624
+ Badge (generic)
625
+ \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 */
626
+ .readwhitepaper-badge {
627
+ display: inline-block;
628
+ font-size: 10px;
629
+ font-weight: 600;
630
+ padding: 2px 7px;
631
+ border-radius: 4px;
632
+ background: var(--badge-bg);
633
+ color: var(--badge-text);
634
+ text-transform: uppercase;
635
+ letter-spacing: 0.04em;
636
+ }
637
+
638
+ /* \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500
639
+ Search inputs
640
+ \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 */
641
+ .readwhitepaper-search-wrap {
642
+ padding: 12px 16px;
643
+ }
644
+
645
+ .readwhitepaper-search-form {
646
+ display: flex;
647
+ gap: 8px;
648
+ }
649
+
650
+ .readwhitepaper-search-input {
651
+ flex: 1;
652
+ padding: 8px 12px;
653
+ border: 1px solid var(--input-border);
654
+ border-radius: 6px;
655
+ background: var(--input-bg);
656
+ color: var(--text);
657
+ font-size: 13px;
658
+ font-family: inherit;
659
+ outline: none;
660
+ transition: border-color 0.15s;
661
+ }
662
+
663
+ .readwhitepaper-search-input:focus {
664
+ border-color: var(--input-focus);
665
+ box-shadow: 0 0 0 2px color-mix(in srgb, var(--input-focus) 20%, transparent);
666
+ }
667
+
668
+ .readwhitepaper-search-input::placeholder {
669
+ color: var(--muted);
670
+ }
671
+
672
+ .readwhitepaper-search-btn {
673
+ background: var(--accent);
674
+ color: #fff;
675
+ border: none;
676
+ border-radius: 6px;
677
+ padding: 8px 14px;
678
+ font-size: 13px;
679
+ font-weight: 500;
680
+ cursor: pointer;
681
+ font-family: inherit;
682
+ transition: opacity 0.15s;
683
+ white-space: nowrap;
684
+ }
685
+
686
+ .readwhitepaper-search-btn:hover {
687
+ opacity: 0.9;
688
+ }
689
+
690
+ /* \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500
691
+ Powered by footer
692
+ \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 */
693
+ .readwhitepaper-powered {
694
+ display: block;
695
+ text-align: center;
696
+ padding: 8px 16px;
697
+ font-size: 11px;
698
+ color: var(--muted);
699
+ border-top: 1px solid var(--border);
700
+ }
701
+
702
+ .readwhitepaper-powered a {
703
+ color: var(--link);
704
+ text-decoration: none;
705
+ font-weight: 500;
706
+ }
707
+
708
+ .readwhitepaper-powered a:hover {
709
+ text-decoration: underline;
710
+ }
711
+
712
+ /* \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500
713
+ Copy button (base)
714
+ \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 */
715
+ .readwhitepaper-copy-btn {
716
+ background: var(--copy-bg);
717
+ color: var(--text);
718
+ border: none;
719
+ border-radius: 5px;
720
+ padding: 4px 9px;
721
+ font-size: 11px;
722
+ cursor: pointer;
723
+ display: inline-flex;
724
+ align-items: center;
725
+ gap: 4px;
726
+ transition: background 0.15s;
727
+ font-family: inherit;
728
+ }
729
+
730
+ .readwhitepaper-copy-btn:hover {
731
+ background: var(--copy-hover);
732
+ }
733
+
734
+ .readwhitepaper-copy-btn svg {
735
+ width: 11px;
736
+ height: 11px;
737
+ }
738
+
739
+ ${I(e)}
740
+ `}function l(t,e){let r=t.dataset.styleVariant||"modern",o=t.attachShadow({mode:"open"}),i=document.createElement("style");return i.textContent=M(e.accent,r),o.appendChild(i),o}function A(t){let e=t.dataset.theme||"light";return e==="auto"?window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light":e}function c(t,e,r){let o=A(e),i=e.dataset.size||"default",a=document.createElement("div");return a.className=["readwhitepaper-widget",r].filter(Boolean).join(" "),a.setAttribute("data-theme",o),a.setAttribute("data-size",i),t.appendChild(a),e.dataset.theme==="auto"&&window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",p=>{a.setAttribute("data-theme",p.matches?"dark":"light")}),a}function u(t){t.innerHTML=`
741
+ <div class="readwhitepaper-loading">
742
+ <span class="readwhitepaper-spinner"></span>
743
+ Loading\u2026
744
+ </div>
745
+ `}function g(t,e,r){t.innerHTML=`
746
+ <div class="readwhitepaper-error">
747
+ <p>${e}</p>
748
+ <a href="https://${r.domain}" target="_blank" rel="noopener">
749
+ Visit ${r.name}
750
+ </a>
751
+ </div>
752
+ `}var x='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"/><polyline points="15 3 21 3 21 9"/><line x1="10" y1="14" x2="21" y2="3"/></svg>',L='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"/><polyline points="14 2 14 8 20 8"/><line x1="16" y1="13" x2="8" y2="13"/><line x1="16" y1="17" x2="8" y2="17"/><polyline points="10 9 9 9 8 9"/></svg>';function m(t){return`<span class="readwhitepaper-powered">Powered by <a href="https://${t.domain}" target="_blank" rel="noopener">${t.name}</a></span>`}function n(t){return t.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#39;")}function v(t){return`readwhitepaper_embed_${t}`}function W(t){try{let e=sessionStorage.getItem(v(t));if(!e)return null;let r=JSON.parse(e);return Date.now()-r.ts>3e5?(sessionStorage.removeItem(v(t)),null):r.data}catch(e){return null}}function _(t,e){try{let r={data:e,ts:Date.now()};sessionStorage.setItem(v(t),JSON.stringify(r))}catch(r){}}async function f(t,e,r){let o=t.endsWith("/")?t:t+"/",i=e.startsWith("/")?e.slice(1):e,a=new URL(i,o);r&&Object.entries(r).forEach(([w,b])=>a.searchParams.set(w,b));let p=a.toString(),d=W(p);if(d!==null)return d;let s=await fetch(p,{headers:{Accept:"application/json"}});if(!s.ok)throw new Error(`API error ${s.status}: ${p}`);let h=await s.json();return _(p,h),h}function y(t,e){var p;let o=(p=t.dataset.slug)!=null?p:"";if(!o){let d=l(t,e),s=c(d,t,"readwhitepaper-entity-widget");g(s,"Missing data-slug attribute.",e);return}let i=l(t,e),a=c(i,t,"readwhitepaper-entity-widget");u(a),f(e.apiBase,`whitepapers/${o}/`).then(d=>{j(a,d,e)}).catch(()=>{g(a,`Unable to load whitepaper "${n(o)}". Please try again later.`,e)})}function j(t,e,r){let o=e.url||`https://${r.domain}/whitepapers/${n(e.slug)}/`,i=e.category?n(e.category):"",a=e.authors?n(e.authors):"",p=e.year?String(e.year):"",d=[i,p].filter(Boolean).join(" \xB7 "),s="";if(e.abstract){let h=e.abstract;s=h.length>150?n(h.slice(0,147))+"...":n(h)}t.innerHTML=`
753
+ <div class="readwhitepaper-header">
754
+ <div class="readwhitepaper-img">${L}</div>
755
+ <div>
756
+ <p class="readwhitepaper-header-title">${n(e.title)}</p>
757
+ <p class="readwhitepaper-header-subtitle">${d||"Whitepaper"}</p>
758
+ </div>
759
+ </div>
760
+
761
+ ${a?`<div class="readwhitepaper-authors"><strong>Authors:</strong> ${a}</div>`:""}
762
+
763
+ ${s?`<div class="readwhitepaper-abstract">${s}</div>`:""}
764
+
765
+ ${i?`<div class="readwhitepaper-pills"><span class="readwhitepaper-tag">${i}</span></div>`:""}
766
+
767
+ <div class="readwhitepaper-view-link">
768
+ <a href="${n(o)}" target="_blank" rel="noopener">
769
+ Read full whitepaper on ${n(r.name)} ${x}
770
+ </a>
771
+ </div>
772
+
773
+ ${m(r)}
774
+ `}function z(t,e,r){if(document.querySelector('script[data-readwhitepaper-snippet="term"]'))return;let o={"@context":"https://schema.org","@type":"DefinedTerm",name:t.name,description:t.definition,inDefinedTermSet:{"@type":"DefinedTermSet",name:`${r} Glossary`,url:`https://${e}/glossary/`}},i=document.createElement("script");i.type="application/ld+json",i.setAttribute("data-readwhitepaper-snippet","term"),i.textContent=JSON.stringify(o),document.head.appendChild(i)}function k(t,e){var s,h;let r=t.dataset,o=(s=r.slug)!=null?s:"";if(!o){let w=l(t,e),b=c(w,t,"readwhitepaper-glossary-widget");g(b,"Missing data-slug attribute.",e);return}let i=l(t,e),a=c(i,t,"readwhitepaper-glossary-widget");u(a);let p={},d=(h=r.lang)!=null?h:"";d&&(p.lang=d),f(e.apiBase,`glossary/${o}/`,p).then(w=>{B(a,w,e),t.dataset.noSnippet!=="true"&&z({name:w.name,definition:w.definition},e.domain,e.name)}).catch(()=>{g(a,`Unable to load glossary term "${n(o)}". Please try again later.`,e)})}function B(t,e,r){let o=`https://${r.domain}/glossary/${n(e.slug)}/`,i=`https://${r.domain}/glossary/`,a=e.category?n(e.category):"",p=e.related_terms&&e.related_terms.length>0?e.related_terms.map(d=>`<a class="readwhitepaper-pill" href="https://${r.domain}/glossary/${n(d.slug)}/" target="_blank" rel="noopener">${n(d.name)}</a>`).join(""):"";t.innerHTML=`
775
+ <div class="readwhitepaper-header">
776
+ <div>
777
+ <p class="readwhitepaper-header-title">${n(e.name)}</p>
778
+ <p class="readwhitepaper-header-subtitle">Glossary term${a?` \xB7 ${a}`:""}</p>
779
+ </div>
780
+ ${a?`<span class="readwhitepaper-badge">${a}</span>`:""}
781
+ </div>
782
+
783
+ <div class="readwhitepaper-summary">
784
+ ${n(e.definition)}
785
+ </div>
786
+
787
+ ${p?`<div class="readwhitepaper-pills-row">${p}</div>`:""}
788
+
789
+ <div class="readwhitepaper-actions">
790
+ <a class="readwhitepaper-link" href="${o}" target="_blank" rel="noopener">
791
+ ${n(e.name)} ${x}
792
+ </a>
793
+ <a class="readwhitepaper-link" href="${i}" target="_blank" rel="noopener">
794
+ Full glossary on ${n(r.name)} ${x}
795
+ </a>
796
+ </div>
797
+
798
+ ${m(r)}
799
+ `}function T(t,e){var p;let o=(p=t.dataset.slug)!=null?p:"";if(!o){let d=l(t,e),s=c(d,t,"readwhitepaper-guide-widget");g(s,"Missing data-slug attribute.",e);return}let i=l(t,e),a=c(i,t,"readwhitepaper-guide-widget");u(a),f(e.apiBase,`guides/${o}/`).then(d=>{D(a,d,e)}).catch(()=>{g(a,`Unable to load guide "${n(o)}". Please try again later.`,e)})}function D(t,e,r){let o=e.url||`https://${r.domain}/guides/${n(e.slug)}/`,i=`https://${r.domain}/guides/`,a=e.description?n(e.description):"";t.innerHTML=`
800
+ <div class="readwhitepaper-header">
801
+ <div>
802
+ <p class="readwhitepaper-header-title">${n(e.title)}</p>
803
+ <p class="readwhitepaper-header-subtitle">Guide</p>
804
+ </div>
805
+ </div>
806
+
807
+ ${a?`<div class="readwhitepaper-desc">${a}</div>`:""}
808
+
809
+ <div class="readwhitepaper-actions">
810
+ <a class="readwhitepaper-link" href="${n(o)}" target="_blank" rel="noopener">
811
+ Read guide ${x}
812
+ </a>
813
+ <a class="readwhitepaper-link" href="${n(i)}" target="_blank" rel="noopener">
814
+ All guides on ${n(r.name)} ${x}
815
+ </a>
816
+ </div>
817
+
818
+ ${m(r)}
819
+ `}function S(t,e){let r=l(t,e),o=c(r,t,"readwhitepaper-search-widget"),i=t.dataset.placeholder||`Search ${e.entityName}...`;o.innerHTML=`
820
+ <div class="readwhitepaper-search-wrap">
821
+ <form class="readwhitepaper-search-form" action="https://${n(e.domain)}${n(e.searchPath)}" method="get" target="_blank" rel="noopener">
822
+ <input
823
+ class="readwhitepaper-search-input"
824
+ type="text"
825
+ name="q"
826
+ placeholder="${n(i)}"
827
+ autocomplete="off"
828
+ aria-label="Search ${n(e.entityName)}"
829
+ />
830
+ <button class="readwhitepaper-search-btn" type="submit">Search</button>
831
+ </form>
832
+ </div>
833
+ ${m(e)}
834
+ `}function G(t,e,r){switch(e){case"entity":y(t,r);break;case"glossary":k(t,r);break;case"guide":T(t,r);break;case"search":S(t,r);break;default:break}}function R(t,e){if("IntersectionObserver"in window){let r=new IntersectionObserver(o=>{o.forEach(i=>{i.isIntersecting&&(r.unobserve(t),e())})},{rootMargin:"200px"});r.observe(t)}else e()}function C(t,e){if(t.shadowRoot)return;let r=t.dataset.readwhitepaper;r&&R(t,()=>{t.shadowRoot||G(t,r,e)})}function H(t){document.querySelectorAll(`[${t.attribute}]`).forEach(e=>C(e,t))}(function(){let e='{"site":"readwhitepaper","name":"ReadWhitepaper","domain":"readwhitepaper.com","accent":"#6366F1","attribute":"data-readwhitepaper","apiBase":"https://readwhitepaper.com/api/v1/","searchPath":"/search/","entityName":"Whitepapers","entitySlug":"whitepapers"}';document.readyState==="loading"?document.addEventListener("DOMContentLoaded",()=>H(e)):H(e),new MutationObserver(o=>{o.forEach(i=>{i.addedNodes.forEach(a=>{var d;if(a.nodeType!==Node.ELEMENT_NODE)return;let p=a;p.hasAttribute(e.attribute)&&C(p,e),(d=p.querySelectorAll)==null||d.call(p,`[${e.attribute}]`).forEach(s=>C(s,e))})})}).observe(document.body||document.documentElement,{childList:!0,subtree:!0})})();function P(t,e,r){let o=[...r,"theme","style-variant","size"];return class extends HTMLElement{static get observedAttributes(){return o}connectedCallback(){this.shadowRoot||(this._syncDataAttrs(),e(this,'{"site":"readwhitepaper","name":"ReadWhitepaper","domain":"readwhitepaper.com","accent":"#6366F1","attribute":"data-readwhitepaper","apiBase":"https://readwhitepaper.com/api/v1/","searchPath":"/search/","entityName":"Whitepapers","entitySlug":"whitepapers"}'))}attributeChangedCallback(i,a,p){if(a===p||!this.shadowRoot)return;let d=this.shadowRoot;for(;d.firstChild;)d.firstChild.remove();this._syncDataAttrs(),e(this,'{"site":"readwhitepaper","name":"ReadWhitepaper","domain":"readwhitepaper.com","accent":"#6366F1","attribute":"data-readwhitepaper","apiBase":"https://readwhitepaper.com/api/v1/","searchPath":"/search/","entityName":"Whitepapers","entitySlug":"whitepapers"}')}_syncDataAttrs(){this.dataset.readwhitepaper=t;for(let d of r){let s=this.getAttribute(d);s!==null&&(this.dataset[d]=s)}let i=this.getAttribute("theme");i!==null&&(this.dataset.theme=i);let a=this.getAttribute("style-variant");a!==null&&(this.dataset.styleVariant=a);let p=this.getAttribute("size");p!==null&&(this.dataset.size=p)}}}(function(){if(typeof customElements=="undefined")return;let e=[["readwhitepaper-entity",y,["slug"]],["readwhitepaper-glossary",k,["slug"]],["readwhitepaper-guide",T,["slug"]],["readwhitepaper-search",S,["placeholder"]]];for(let[r,o,i]of e)if(!customElements.get(r)){let a=r.replace("readwhitepaper-","");customElements.define(r,P(a,o,i))}})();})();