statuscodefyi-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,1018 @@
1
+ /* statuscodefyi-embed v1.0.0 | MIT | https://widget.statuscodefyi.com */
2
+ "use strict";(()=>{function Y(){return`
3
+ /* Modern: gradient accent header */
4
+ .networkfyi-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
+ .networkfyi-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
+ .networkfyi-header-subtitle {
22
+ font-size: 12px;
23
+ color: rgba(255, 255, 255, 0.8);
24
+ margin: 0;
25
+ }
26
+
27
+ /* Icon area */
28
+ .networkfyi-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
+ font-size: 24px;
40
+ color: #fff;
41
+ font-weight: 700;
42
+ }
43
+
44
+ .networkfyi-img img {
45
+ width: 100%;
46
+ height: 100%;
47
+ object-fit: cover;
48
+ border-radius: 8px;
49
+ }
50
+
51
+ /* Body area */
52
+ .networkfyi-body {
53
+ padding: 16px 20px;
54
+ }
55
+
56
+ /* Key-value rows \u2014 spacious */
57
+ .networkfyi-row {
58
+ display: flex;
59
+ justify-content: space-between;
60
+ align-items: flex-start;
61
+ gap: 12px;
62
+ padding: 8px 0;
63
+ border-bottom: 1px solid var(--border);
64
+ }
65
+
66
+ .networkfyi-row:last-child {
67
+ border-bottom: none;
68
+ }
69
+
70
+ .networkfyi-label {
71
+ font-size: 12px;
72
+ font-weight: 500;
73
+ color: var(--muted);
74
+ white-space: nowrap;
75
+ flex-shrink: 0;
76
+ min-width: 30%;
77
+ }
78
+
79
+ .networkfyi-value {
80
+ font-size: 13px;
81
+ color: var(--text);
82
+ text-align: right;
83
+ word-break: break-word;
84
+ }
85
+
86
+ /* Section title */
87
+ .networkfyi-section-title {
88
+ font-size: 11px;
89
+ font-weight: 600;
90
+ color: var(--muted);
91
+ text-transform: uppercase;
92
+ letter-spacing: 0.06em;
93
+ margin: 0 0 10px 0;
94
+ }
95
+
96
+ /* Tags \u2014 colored rounded badges */
97
+ .networkfyi-tag {
98
+ display: inline-block;
99
+ font-size: 11px;
100
+ font-weight: 600;
101
+ padding: 3px 10px;
102
+ border-radius: 12px;
103
+ background: color-mix(in srgb, var(--accent) 12%, transparent);
104
+ color: var(--accent);
105
+ margin: 2px 3px 2px 0;
106
+ letter-spacing: 0.02em;
107
+ }
108
+
109
+ /* Link */
110
+ .networkfyi-link {
111
+ font-size: 13px;
112
+ font-weight: 500;
113
+ color: var(--link);
114
+ text-decoration: none;
115
+ display: inline-flex;
116
+ align-items: center;
117
+ gap: 4px;
118
+ }
119
+
120
+ .networkfyi-link:hover {
121
+ opacity: 0.8;
122
+ text-decoration: underline;
123
+ }
124
+
125
+ .networkfyi-link svg {
126
+ width: 12px;
127
+ height: 12px;
128
+ flex-shrink: 0;
129
+ }
130
+
131
+ /* Footer link row */
132
+ .networkfyi-footer-link {
133
+ display: flex;
134
+ align-items: center;
135
+ justify-content: space-between;
136
+ padding: 12px 20px;
137
+ border-top: 1px solid var(--border);
138
+ gap: 8px;
139
+ }
140
+
141
+ /* \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500
142
+ Card shared: stats row (horizontal flex)
143
+ \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 */
144
+ .networkfyi-stats-row { display:flex; gap:12px; padding:10px 18px; border-bottom:1px solid var(--border); }
145
+ .networkfyi-stat { text-align:center; flex:1; }
146
+ .networkfyi-stat-value { font-size:18px; font-weight:700; color:var(--accent); }
147
+ .networkfyi-stat-label { font-size:9px; color:var(--muted); text-transform:uppercase; letter-spacing:0.03em; }
148
+
149
+ /* Card shared: stats grid (2x2 boxes) */
150
+ .networkfyi-stats-grid { display:grid; grid-template-columns:1fr 1fr; gap:8px; padding:10px 18px; border-bottom:1px solid var(--border); }
151
+ .networkfyi-stat-box { padding:6px 8px; background:color-mix(in srgb, var(--accent) 8%, var(--bg)); border-radius:8px; }
152
+ .networkfyi-stat-box-label { font-size:9px; color:color-mix(in srgb, var(--accent) 80%, var(--text)); text-transform:uppercase; }
153
+ .networkfyi-stat-box-value { font-size:13px; font-weight:700; color:var(--text); margin-top:1px; }
154
+
155
+ /* Card shared: key-value dotted rows */
156
+ .networkfyi-kv-rows { padding:10px 18px; border-bottom:1px solid var(--border); }
157
+ .networkfyi-kv-row { display:flex; justify-content:space-between; align-items:baseline; padding:4px 0; border-bottom:1px dotted var(--border); }
158
+ .networkfyi-kv-row:last-child { border-bottom:none; }
159
+ .networkfyi-kv-label { font-size:11px; color:var(--muted); }
160
+ .networkfyi-kv-value { font-size:11px; font-weight:600; color:var(--text); }
161
+
162
+ /* Card shared: pill tags */
163
+ .networkfyi-pills { display:flex; flex-wrap:wrap; gap:4px; padding:10px 18px; border-bottom:1px solid var(--border); }
164
+ .networkfyi-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); }
165
+
166
+ /* Card shared: section label */
167
+ .networkfyi-section-label { font-size:10px; text-transform:uppercase; letter-spacing:0.05em; color:var(--accent); font-weight:600; margin-bottom:3px; }
168
+
169
+ /* Card shared: description */
170
+ .networkfyi-desc { padding:10px 18px; font-size:14px; color:var(--muted); line-height:1.5; border-bottom:1px solid var(--border); }
171
+
172
+ /* Card shared: view link */
173
+ .networkfyi-view-link { display:block; text-align:center; padding:10px 18px; border-bottom:1px solid var(--border); }
174
+ .networkfyi-view-link a { color:var(--link); text-decoration:none; font-size:12px; font-weight:500; display:inline-flex; align-items:center; gap:4px; }
175
+ .networkfyi-view-link a:hover { text-decoration:underline; }
176
+ .networkfyi-view-link svg { width:12px; height:12px; }
177
+
178
+ /* \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500
179
+ Domain: code/status display (large number)
180
+ \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 */
181
+ .networkfyi-code-display { padding:14px 18px; text-align:center; border-bottom:1px solid var(--border); }
182
+ .networkfyi-code-big { font-size:36px; font-weight:800; color:var(--accent); line-height:1; font-family:ui-monospace, 'SF Mono', monospace; }
183
+ .networkfyi-code-name { font-size:13px; color:var(--text); font-weight:600; margin-top:4px; }
184
+ .networkfyi-code-protocol { font-size:11px; color:var(--muted); margin-top:2px; }
185
+
186
+ /* Domain: speed bar visualization */
187
+ .networkfyi-speed-bar-wrap { padding:10px 18px; border-bottom:1px solid var(--border); }
188
+ .networkfyi-speed-bar-track { width:100%; height:8px; background:var(--surface); border-radius:4px; overflow:hidden; }
189
+ .networkfyi-speed-bar-fill { height:100%; border-radius:4px; transition:width 0.3s; }
190
+ .networkfyi-speed-bar-label { font-size:11px; color:var(--muted); margin-top:4px; display:flex; justify-content:space-between; }
191
+
192
+ /* Domain: connector arrow display */
193
+ .networkfyi-connector-arrow { display:flex; align-items:center; justify-content:center; gap:8px; padding:12px 18px; border-bottom:1px solid var(--border); font-size:13px; font-weight:600; color:var(--text); }
194
+ .networkfyi-connector-arrow-icon { color:var(--accent); font-size:16px; }
195
+
196
+ /* Domain: compatibility result */
197
+ .networkfyi-compat-result { padding:14px 18px; text-align:center; border-bottom:1px solid var(--border); }
198
+ .networkfyi-compat-status { font-size:14px; font-weight:700; margin-bottom:4px; }
199
+ .networkfyi-compat-detail { font-size:12px; color:var(--muted); }
200
+
201
+ /* Domain: scenario card */
202
+ .networkfyi-scenario-header { padding:12px 18px; border-bottom:1px solid var(--border); }
203
+ .networkfyi-scenario-title { font-size:14px; font-weight:700; color:var(--text); margin:0 0 6px 0; }
204
+ .networkfyi-scenario-meta { display:flex; gap:6px; align-items:center; flex-wrap:wrap; }
205
+
206
+ /* Domain: form inputs (compatibility tool) */
207
+ .networkfyi-tool-form { padding:12px 18px; border-bottom:1px solid var(--border); }
208
+ .networkfyi-tool-row { display:flex; gap:6px; align-items:center; margin-bottom:6px; }
209
+ .networkfyi-tool-row:last-child { margin-bottom:0; }
210
+ .networkfyi-tool-input { flex:1; padding:6px 10px; border:1px solid var(--input-border); border-radius:6px; background:var(--input-bg); color:var(--text); font-size:13px; font-family:inherit; outline:none; }
211
+ .networkfyi-tool-input:focus { border-color:var(--input-focus); box-shadow:0 0 0 2px color-mix(in srgb, var(--input-focus) 20%, transparent); }
212
+ .networkfyi-tool-label { font-size:11px; color:var(--muted); min-width:72px; }
213
+ .networkfyi-tool-btn { background:var(--accent); color:#fff; border:none; border-radius:6px; padding:7px 14px; font-size:13px; font-weight:500; cursor:pointer; font-family:inherit; transition:opacity 0.15s; }
214
+ .networkfyi-tool-btn:hover { opacity:0.9; }
215
+
216
+ /* Inline widget host */
217
+ :host([data-inline]) {
218
+ display: inline-flex;
219
+ align-items: center;
220
+ gap: 4px;
221
+ }
222
+ `}function J(){return`
223
+ /* Clean: subtle top accent border instead of gradient header */
224
+ .networkfyi-header {
225
+ border-top: 3px solid var(--accent);
226
+ border-radius: 8px 8px 0 0;
227
+ padding: 14px 18px;
228
+ display: flex;
229
+ align-items: flex-start;
230
+ gap: 12px;
231
+ background: color-mix(in srgb, var(--accent) 5%, var(--surface));
232
+ }
233
+
234
+ .networkfyi-header-title {
235
+ font-size: 15px;
236
+ font-weight: 700;
237
+ color: var(--text);
238
+ margin: 0 0 4px 0;
239
+ line-height: 1.3;
240
+ }
241
+
242
+ .networkfyi-header-subtitle {
243
+ font-size: 12px;
244
+ color: var(--muted);
245
+ margin: 0;
246
+ }
247
+
248
+ /* Icon area \u2014 smaller, muted */
249
+ .networkfyi-img {
250
+ width: 44px;
251
+ height: 44px;
252
+ border-radius: 8px;
253
+ background: color-mix(in srgb, var(--accent) 12%, var(--bg));
254
+ flex-shrink: 0;
255
+ display: flex;
256
+ align-items: center;
257
+ justify-content: center;
258
+ overflow: hidden;
259
+ font-size: 20px;
260
+ color: var(--accent);
261
+ font-weight: 700;
262
+ }
263
+
264
+ .networkfyi-img img {
265
+ width: 100%;
266
+ height: 100%;
267
+ object-fit: cover;
268
+ border-radius: 8px;
269
+ }
270
+
271
+ /* Body area */
272
+ .networkfyi-body {
273
+ padding: 14px 18px;
274
+ }
275
+
276
+ /* Key-value rows */
277
+ .networkfyi-row {
278
+ display: flex;
279
+ justify-content: space-between;
280
+ align-items: flex-start;
281
+ gap: 12px;
282
+ padding: 6px 0;
283
+ border-bottom: 1px solid var(--border);
284
+ }
285
+
286
+ .networkfyi-row:last-child {
287
+ border-bottom: none;
288
+ }
289
+
290
+ .networkfyi-label {
291
+ font-size: 12px;
292
+ font-weight: 500;
293
+ color: var(--muted);
294
+ white-space: nowrap;
295
+ flex-shrink: 0;
296
+ min-width: 30%;
297
+ }
298
+
299
+ .networkfyi-value {
300
+ font-size: 13px;
301
+ color: var(--text);
302
+ text-align: right;
303
+ word-break: break-word;
304
+ }
305
+
306
+ /* Section title */
307
+ .networkfyi-section-title {
308
+ font-size: 11px;
309
+ font-weight: 600;
310
+ color: var(--muted);
311
+ text-transform: uppercase;
312
+ letter-spacing: 0.06em;
313
+ margin: 0 0 8px 0;
314
+ }
315
+
316
+ /* Tags \u2014 subtle pill badges */
317
+ .networkfyi-tag {
318
+ display: inline-block;
319
+ font-size: 11px;
320
+ font-weight: 500;
321
+ padding: 2px 8px;
322
+ border-radius: 4px;
323
+ background: var(--badge-bg);
324
+ color: var(--badge-text);
325
+ margin: 2px 3px 2px 0;
326
+ }
327
+
328
+ /* Link */
329
+ .networkfyi-link {
330
+ font-size: 13px;
331
+ font-weight: 500;
332
+ color: var(--link);
333
+ text-decoration: none;
334
+ display: inline-flex;
335
+ align-items: center;
336
+ gap: 4px;
337
+ }
338
+
339
+ .networkfyi-link:hover {
340
+ text-decoration: underline;
341
+ }
342
+
343
+ .networkfyi-link svg {
344
+ width: 12px;
345
+ height: 12px;
346
+ flex-shrink: 0;
347
+ }
348
+
349
+ /* Footer link row */
350
+ .networkfyi-footer-link {
351
+ display: flex;
352
+ align-items: center;
353
+ justify-content: space-between;
354
+ padding: 10px 18px;
355
+ border-top: 1px solid var(--border);
356
+ gap: 8px;
357
+ }
358
+
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
+ Card shared: stats row (horizontal flex)
361
+ \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 */
362
+ .networkfyi-stats-row { display:flex; gap:10px; padding:8px 16px; border-bottom:1px solid var(--border); }
363
+ .networkfyi-stat { text-align:center; flex:1; }
364
+ .networkfyi-stat-value { font-size:16px; font-weight:700; color:var(--accent); }
365
+ .networkfyi-stat-label { font-size:9px; color:var(--muted); text-transform:uppercase; letter-spacing:0.03em; }
366
+
367
+ /* Card shared: stats grid (2x2 boxes) */
368
+ .networkfyi-stats-grid { display:grid; grid-template-columns:1fr 1fr; gap:6px; padding:8px 16px; border-bottom:1px solid var(--border); }
369
+ .networkfyi-stat-box { padding:5px 7px; background:var(--surface); border-radius:6px; }
370
+ .networkfyi-stat-box-label { font-size:9px; color:var(--muted); text-transform:uppercase; }
371
+ .networkfyi-stat-box-value { font-size:12px; font-weight:700; color:var(--text); margin-top:1px; }
372
+
373
+ /* Card shared: key-value dotted rows */
374
+ .networkfyi-kv-rows { padding:8px 16px; border-bottom:1px solid var(--border); }
375
+ .networkfyi-kv-row { display:flex; justify-content:space-between; align-items:baseline; padding:3px 0; border-bottom:1px dotted var(--border); }
376
+ .networkfyi-kv-row:last-child { border-bottom:none; }
377
+ .networkfyi-kv-label { font-size:11px; color:var(--muted); }
378
+ .networkfyi-kv-value { font-size:11px; font-weight:600; color:var(--text); }
379
+
380
+ /* Card shared: pill tags */
381
+ .networkfyi-pills { display:flex; flex-wrap:wrap; gap:4px; padding:8px 16px; border-bottom:1px solid var(--border); }
382
+ .networkfyi-pill { padding:2px 7px; border-radius:4px; font-size:11px; font-weight:500; background:var(--badge-bg); color:var(--badge-text); }
383
+
384
+ /* Card shared: section label */
385
+ .networkfyi-section-label { font-size:10px; text-transform:uppercase; letter-spacing:0.05em; color:var(--accent); font-weight:600; margin-bottom:3px; }
386
+
387
+ /* Card shared: description */
388
+ .networkfyi-desc { padding:8px 16px; font-size:13px; color:var(--muted); line-height:1.5; border-bottom:1px solid var(--border); }
389
+
390
+ /* Card shared: view link */
391
+ .networkfyi-view-link { display:block; text-align:center; padding:8px 16px; border-bottom:1px solid var(--border); }
392
+ .networkfyi-view-link a { color:var(--link); text-decoration:none; font-size:12px; font-weight:500; display:inline-flex; align-items:center; gap:4px; }
393
+ .networkfyi-view-link a:hover { text-decoration:underline; }
394
+ .networkfyi-view-link svg { width:12px; height:12px; }
395
+
396
+ /* \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500
397
+ Domain: code/status display (large number)
398
+ \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 */
399
+ .networkfyi-code-display { padding:12px 16px; text-align:center; border-bottom:1px solid var(--border); }
400
+ .networkfyi-code-big { font-size:28px; font-weight:700; color:var(--accent); line-height:1; font-family:ui-monospace, 'SF Mono', monospace; }
401
+ .networkfyi-code-name { font-size:12px; color:var(--text); font-weight:600; margin-top:3px; }
402
+ .networkfyi-code-protocol { font-size:10px; color:var(--muted); margin-top:2px; }
403
+
404
+ /* Domain: speed bar visualization */
405
+ .networkfyi-speed-bar-wrap { padding:8px 16px; border-bottom:1px solid var(--border); }
406
+ .networkfyi-speed-bar-track { width:100%; height:6px; background:var(--surface); border-radius:3px; overflow:hidden; }
407
+ .networkfyi-speed-bar-fill { height:100%; border-radius:3px; transition:width 0.3s; }
408
+ .networkfyi-speed-bar-label { font-size:10px; color:var(--muted); margin-top:3px; display:flex; justify-content:space-between; }
409
+
410
+ /* Domain: connector arrow display */
411
+ .networkfyi-connector-arrow { display:flex; align-items:center; justify-content:center; gap:6px; padding:10px 16px; border-bottom:1px solid var(--border); font-size:12px; font-weight:600; color:var(--text); }
412
+ .networkfyi-connector-arrow-icon { color:var(--accent); font-size:14px; }
413
+
414
+ /* Domain: compatibility result */
415
+ .networkfyi-compat-result { padding:12px 16px; text-align:center; border-bottom:1px solid var(--border); }
416
+ .networkfyi-compat-status { font-size:13px; font-weight:700; margin-bottom:3px; }
417
+ .networkfyi-compat-detail { font-size:11px; color:var(--muted); }
418
+
419
+ /* Domain: scenario card */
420
+ .networkfyi-scenario-header { padding:10px 16px; border-bottom:1px solid var(--border); }
421
+ .networkfyi-scenario-title { font-size:13px; font-weight:700; color:var(--text); margin:0 0 5px 0; }
422
+ .networkfyi-scenario-meta { display:flex; gap:5px; align-items:center; flex-wrap:wrap; }
423
+
424
+ /* Domain: form inputs (compatibility tool) */
425
+ .networkfyi-tool-form { padding:10px 16px; border-bottom:1px solid var(--border); }
426
+ .networkfyi-tool-row { display:flex; gap:6px; align-items:center; margin-bottom:5px; }
427
+ .networkfyi-tool-row:last-child { margin-bottom:0; }
428
+ .networkfyi-tool-input { flex:1; padding:5px 8px; border:1px solid var(--input-border); border-radius:4px; background:var(--input-bg); color:var(--text); font-size:12px; font-family:inherit; outline:none; }
429
+ .networkfyi-tool-input:focus { border-color:var(--input-focus); box-shadow:0 0 0 2px color-mix(in srgb, var(--input-focus) 20%, transparent); }
430
+ .networkfyi-tool-label { font-size:10px; color:var(--muted); min-width:64px; }
431
+ .networkfyi-tool-btn { background:var(--accent); color:#fff; border:none; border-radius:4px; padding:6px 12px; font-size:12px; font-weight:500; cursor:pointer; font-family:inherit; transition:opacity 0.15s; }
432
+ .networkfyi-tool-btn:hover { opacity:0.9; }
433
+
434
+ /* Clean: copy button \u2014 minimal style */
435
+ .networkfyi-copy-btn {
436
+ background: var(--surface);
437
+ color: var(--muted);
438
+ border: 1px solid var(--border);
439
+ border-radius: 4px;
440
+ padding: 3px 8px;
441
+ font-size: 11px;
442
+ cursor: pointer;
443
+ display: inline-flex;
444
+ align-items: center;
445
+ gap: 3px;
446
+ transition: all 0.15s;
447
+ font-family: inherit;
448
+ }
449
+
450
+ .networkfyi-copy-btn:hover {
451
+ background: var(--copy-bg);
452
+ border-color: var(--input-focus);
453
+ color: var(--text);
454
+ }
455
+
456
+ .networkfyi-copy-btn svg {
457
+ width: 10px;
458
+ height: 10px;
459
+ }
460
+
461
+ /* Inline widget host */
462
+ :host([data-inline]) {
463
+ display: inline-flex;
464
+ align-items: center;
465
+ gap: 4px;
466
+ }
467
+ `}function me(e){switch(e){case"clean":return J();case"modern":default:return Y()}}function X(e,t="modern"){return`
468
+ :host {
469
+ display: block;
470
+ --site-accent: ${e};
471
+ }
472
+
473
+ /* \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500
474
+ Size variants
475
+ compact=280px, default=420px, large=720px
476
+ \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 */
477
+ .networkfyi-widget {
478
+ box-sizing: border-box;
479
+ min-width: 240px;
480
+ max-width: 420px;
481
+ border-radius: 8px;
482
+ overflow: hidden;
483
+ border: 1px solid var(--border);
484
+ background: var(--bg);
485
+ color: var(--text);
486
+ font-size: 14px;
487
+ line-height: 1.6;
488
+ transition: border-color 0.2s;
489
+ font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
490
+ }
491
+
492
+ .networkfyi-widget:hover {
493
+ border-color: color-mix(in srgb, var(--accent) 40%, var(--border));
494
+ }
495
+
496
+ .networkfyi-widget[data-size="compact"] {
497
+ max-width: 280px;
498
+ font-size: 13px;
499
+ }
500
+
501
+ .networkfyi-widget[data-size="default"] {
502
+ max-width: 420px;
503
+ }
504
+
505
+ .networkfyi-widget[data-size="large"] {
506
+ max-width: 720px;
507
+ }
508
+
509
+ /* \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500
510
+ Light theme (default)
511
+ \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 */
512
+ .networkfyi-widget[data-theme="light"] {
513
+ --bg: #fff;
514
+ --text: #1e293b;
515
+ --border: #e2e8f0;
516
+ --accent: var(--site-accent);
517
+ --muted: #64748b;
518
+ --surface: #f8fafc;
519
+ --badge-bg: #f1f5f9;
520
+ --badge-text: #374151;
521
+ --link: var(--site-accent);
522
+ --copy-bg: #f3f4f6;
523
+ --copy-hover: #e5e7eb;
524
+ --input-bg: #ffffff;
525
+ --input-border: #d1d5db;
526
+ --input-focus: var(--site-accent);
527
+ --shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
528
+ }
529
+
530
+ /* \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500
531
+ Dark theme
532
+ \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 */
533
+ .networkfyi-widget[data-theme="dark"] {
534
+ --bg: #1a1a1a;
535
+ --text: #f3f4f6;
536
+ --border: #374151;
537
+ --accent: var(--site-accent);
538
+ --muted: #9ca3af;
539
+ --surface: #111827;
540
+ --badge-bg: #374151;
541
+ --badge-text: #d1d5db;
542
+ --link: color-mix(in srgb, var(--site-accent) 80%, #fff);
543
+ --copy-bg: #374151;
544
+ --copy-hover: #4b5563;
545
+ --input-bg: #111111;
546
+ --input-border: #4b5563;
547
+ --input-focus: var(--site-accent);
548
+ --shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
549
+ }
550
+
551
+ /* \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500
552
+ Sepia theme
553
+ \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 */
554
+ .networkfyi-widget[data-theme="sepia"] {
555
+ --bg: #f5f0e8;
556
+ --text: #3d3529;
557
+ --border: #d4c5a9;
558
+ --accent: var(--site-accent);
559
+ --muted: #8b7d6b;
560
+ --surface: #ede8df;
561
+ --badge-bg: #e8e0d0;
562
+ --badge-text: #5c4f3d;
563
+ --link: color-mix(in srgb, var(--site-accent) 70%, #3d3529);
564
+ --copy-bg: #e8e0d0;
565
+ --copy-hover: #ddd4c0;
566
+ --input-bg: #f5f0e8;
567
+ --input-border: #c4b49a;
568
+ --input-focus: var(--site-accent);
569
+ --shadow: 0 1px 3px rgba(61, 53, 41, 0.12);
570
+ }
571
+
572
+ .networkfyi-widget *, .networkfyi-widget *::before, .networkfyi-widget *::after {
573
+ box-sizing: border-box;
574
+ }
575
+
576
+ /* \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500
577
+ Loading state
578
+ \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 */
579
+ .networkfyi-loading {
580
+ padding: 20px 16px;
581
+ text-align: center;
582
+ color: var(--muted);
583
+ font-size: 13px;
584
+ display: flex;
585
+ align-items: center;
586
+ justify-content: center;
587
+ gap: 8px;
588
+ }
589
+
590
+ .networkfyi-spinner {
591
+ width: 16px;
592
+ height: 16px;
593
+ border: 2px solid var(--border);
594
+ border-top-color: var(--accent);
595
+ border-radius: 50%;
596
+ animation: networkfyi-spin 0.7s linear infinite;
597
+ display: inline-block;
598
+ flex-shrink: 0;
599
+ }
600
+
601
+ @keyframes networkfyi-spin {
602
+ to { transform: rotate(360deg); }
603
+ }
604
+
605
+ /* \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500
606
+ Error state
607
+ \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 */
608
+ .networkfyi-error {
609
+ padding: 16px;
610
+ color: var(--muted);
611
+ font-size: 13px;
612
+ text-align: center;
613
+ }
614
+
615
+ .networkfyi-error p {
616
+ margin: 0 0 8px 0;
617
+ }
618
+
619
+ .networkfyi-error a {
620
+ color: var(--link);
621
+ text-decoration: none;
622
+ }
623
+
624
+ .networkfyi-error a:hover {
625
+ text-decoration: underline;
626
+ }
627
+
628
+ /* \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500
629
+ Badge (generic)
630
+ \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 */
631
+ .networkfyi-badge {
632
+ display: inline-block;
633
+ font-size: 10px;
634
+ font-weight: 600;
635
+ padding: 2px 7px;
636
+ border-radius: 4px;
637
+ background: var(--badge-bg);
638
+ color: var(--badge-text);
639
+ text-transform: uppercase;
640
+ letter-spacing: 0.04em;
641
+ }
642
+
643
+ /* \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500
644
+ Search inputs
645
+ \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 */
646
+ .networkfyi-search-wrap {
647
+ padding: 12px 16px;
648
+ }
649
+
650
+ .networkfyi-search-form {
651
+ display: flex;
652
+ gap: 8px;
653
+ }
654
+
655
+ .networkfyi-search-input {
656
+ flex: 1;
657
+ padding: 8px 12px;
658
+ border: 1px solid var(--input-border);
659
+ border-radius: 6px;
660
+ background: var(--input-bg);
661
+ color: var(--text);
662
+ font-size: 13px;
663
+ font-family: inherit;
664
+ outline: none;
665
+ transition: border-color 0.15s;
666
+ }
667
+
668
+ .networkfyi-search-input:focus {
669
+ border-color: var(--input-focus);
670
+ box-shadow: 0 0 0 2px color-mix(in srgb, var(--input-focus) 20%, transparent);
671
+ }
672
+
673
+ .networkfyi-search-input::placeholder {
674
+ color: var(--muted);
675
+ }
676
+
677
+ .networkfyi-search-btn {
678
+ background: var(--accent);
679
+ color: #fff;
680
+ border: none;
681
+ border-radius: 6px;
682
+ padding: 8px 14px;
683
+ font-size: 13px;
684
+ font-weight: 500;
685
+ cursor: pointer;
686
+ font-family: inherit;
687
+ transition: opacity 0.15s;
688
+ white-space: nowrap;
689
+ }
690
+
691
+ .networkfyi-search-btn:hover {
692
+ opacity: 0.9;
693
+ }
694
+
695
+ .networkfyi-search-results {
696
+ padding: 0 16px 12px;
697
+ }
698
+
699
+ .networkfyi-result-item {
700
+ padding: 8px 0;
701
+ border-bottom: 1px solid var(--border);
702
+ }
703
+
704
+ .networkfyi-result-item:last-child {
705
+ border-bottom: none;
706
+ }
707
+
708
+ .networkfyi-result-title {
709
+ font-size: 13px;
710
+ font-weight: 600;
711
+ color: var(--text);
712
+ margin: 0 0 3px 0;
713
+ }
714
+
715
+ .networkfyi-result-meta {
716
+ font-size: 11px;
717
+ color: var(--muted);
718
+ display: flex;
719
+ align-items: center;
720
+ gap: 6px;
721
+ flex-wrap: wrap;
722
+ }
723
+
724
+ /* \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500
725
+ Powered by footer
726
+ \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 */
727
+ .networkfyi-powered {
728
+ display: block;
729
+ text-align: center;
730
+ padding: 8px 16px;
731
+ font-size: 11px;
732
+ color: var(--muted);
733
+ border-top: 1px solid var(--border);
734
+ }
735
+
736
+ .networkfyi-powered a {
737
+ color: var(--link);
738
+ text-decoration: none;
739
+ font-weight: 500;
740
+ }
741
+
742
+ .networkfyi-powered a:hover {
743
+ text-decoration: underline;
744
+ }
745
+
746
+ /* \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500
747
+ Copy button
748
+ \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 */
749
+ .networkfyi-copy-btn {
750
+ background: var(--copy-bg);
751
+ color: var(--text);
752
+ border: none;
753
+ border-radius: 5px;
754
+ padding: 4px 9px;
755
+ font-size: 11px;
756
+ cursor: pointer;
757
+ display: inline-flex;
758
+ align-items: center;
759
+ gap: 4px;
760
+ transition: background 0.15s;
761
+ font-family: inherit;
762
+ }
763
+
764
+ .networkfyi-copy-btn:hover {
765
+ background: var(--copy-hover);
766
+ }
767
+
768
+ .networkfyi-copy-btn svg {
769
+ width: 11px;
770
+ height: 11px;
771
+ }
772
+
773
+ /* \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500
774
+ Monospace (for values, codes, IPs)
775
+ \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 */
776
+ .networkfyi-mono {
777
+ font-family: ui-monospace, 'SF Mono', 'Cascadia Code', 'Consolas', monospace;
778
+ font-size: 13px;
779
+ }
780
+
781
+ ${me(t)}
782
+ `}function x(e,t){let n=e.dataset.styleVariant||"modern",a=e.attachShadow({mode:"open"}),o=document.createElement("style");return o.textContent=X(t.accent,n),a.appendChild(o),a}function we(e){let t=e.dataset.theme||"light";return t==="auto"?window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light":t}function b(e,t,n){let a=we(t),o=t.dataset.size||"default",i=document.createElement("div");return i.className=["networkfyi-widget",n].filter(Boolean).join(" "),i.setAttribute("data-theme",a),i.setAttribute("data-size",o),e.appendChild(i),t.dataset.theme==="auto"&&window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",d=>{i.setAttribute("data-theme",d.matches?"dark":"light")}),i}function M(e){e.innerHTML=`
783
+ <div class="networkfyi-loading">
784
+ <span class="networkfyi-spinner"></span>
785
+ Loading\u2026
786
+ </div>
787
+ `}function $(e,t,n){e.innerHTML=`
788
+ <div class="networkfyi-error">
789
+ <p>${t}</p>
790
+ <a href="https://${n.domain}" target="_blank" rel="noopener">
791
+ Visit ${n.name}
792
+ </a>
793
+ </div>
794
+ `}var _='<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>';function L(e){return`<span class="networkfyi-powered">Powered by <a href="https://${e.domain}" target="_blank" rel="noopener">${e.name}</a></span>`}function W(e){return`networkfyi_embed_${e}`}function ye(e){try{let t=sessionStorage.getItem(W(e));if(!t)return null;let n=JSON.parse(t);return Date.now()-n.ts>3e5?(sessionStorage.removeItem(W(e)),null):n.data}catch(t){return null}}function ve(e,t){try{let n={data:t,ts:Date.now()};sessionStorage.setItem(W(e),JSON.stringify(n))}catch(n){}}async function A(e,t,n){let a=e.endsWith("/")?e:e+"/",o=t.startsWith("/")?t.slice(1):t,i=new URL(o,a);n&&Object.entries(n).forEach(([p,f])=>i.searchParams.set(p,f));let d=i.toString(),c=ye(d);if(c!==null)return c;let l=await fetch(d,{headers:{Accept:"application/json"}});if(!l.ok)throw new Error(`API error ${l.status}: ${d}`);let s=await l.json();return ve(d,s),s}function r(e){return e?e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;"):""}function R(e,t){return t==null||t===""?"":`<div class="networkfyi-kv-row"><span class="networkfyi-kv-label">${r(e)}</span><span class="networkfyi-kv-value">${r(String(t))}</span></div>`}function H(e,t,n="#fff"){return`<span class="networkfyi-badge" style="background:${t};color:${n}">${r(e)}</span>`}function Z(e,t=200){if(!e)return"";let n=e.length>t?e.slice(0,t)+"...":e;return`<div class="networkfyi-desc">${r(n)}</div>`}function ee(e,t){var u,m,k,w,v,h,T,S,g;let n=String((k=(m=(u=e.name)!=null?u:e.term)!=null?m:e.slug)!=null?k:""),a=String((w=e.definition)!=null?w:""),o=String((h=(v=e.extended_definition)!=null?v:e.extended_description)!=null?h:""),i=String((S=(T=e.category_name)!=null?T:e.category)!=null?S:""),d=String((g=e.slug)!=null?g:""),c=t.site==="cablefyi"?"terms":"glossary",l=`https://${t.domain}/${c}/${r(d)}/`,s=`https://${t.domain}/glossary/`,p=e.related_terms,f=p&&p.length>0?`<div class="networkfyi-pills">${p.map(y=>`<a class="networkfyi-pill" href="https://${t.domain}/${c}/${r(y.slug)}/" target="_blank" rel="noopener" style="text-decoration:none;color:inherit;">${r(y.name)}</a>`).join("")}</div>`:"";return`
795
+ <div class="networkfyi-header">
796
+ <div>
797
+ <div class="networkfyi-header-title">${r(n)}</div>
798
+ ${i?`<span class="networkfyi-badge" style="background:${t.accent};color:#fff;margin-top:4px;display:inline-block;">${r(i)}</span>`:""}
799
+ </div>
800
+ </div>
801
+ <div class="networkfyi-body" style="font-size:0.9rem;line-height:1.5;">
802
+ ${r(a)}
803
+ </div>
804
+ ${o?`<div style="padding:0 18px 10px;font-size:0.85rem;color:var(--muted);line-height:1.5;">${r(o)}</div>`:""}
805
+ ${f}
806
+ <div class="networkfyi-view-link"><a href="${l}" target="_blank" rel="noopener">${r(n)} ${_}</a></div>
807
+ <div class="networkfyi-view-link"><a href="${s}" target="_blank" rel="noopener">Full glossary on ${r(t.name)} ${_}</a></div>
808
+ ${L(t)}
809
+ `}function te(e,t){if(!e||!e.length)return`<div class="networkfyi-body">No FAQs available.</div>${L(t)}`;let n=e.map(a=>`
810
+ <details class="networkfyi-faq-item" style="border-bottom:1px solid var(--border);padding:10px 18px;">
811
+ <summary style="cursor:pointer;font-size:0.9rem;font-weight:600;color:var(--text);list-style:none;display:flex;justify-content:space-between;align-items:center;">
812
+ ${r(a.question)}
813
+ <span style="flex-shrink:0;margin-left:8px;font-size:0.75rem;color:var(--muted);">+</span>
814
+ </summary>
815
+ <div style="margin-top:8px;font-size:0.85rem;color:var(--muted);line-height:1.5;">
816
+ ${r(a.answer)}
817
+ </div>
818
+ </details>
819
+ `).join("");return`
820
+ <div class="networkfyi-header">
821
+ <div>
822
+ <div class="networkfyi-header-title">Frequently Asked Questions</div>
823
+ <div class="networkfyi-header-subtitle">${e.length} questions</div>
824
+ </div>
825
+ </div>
826
+ ${n}
827
+ ${L(t)}
828
+ `}function re(e,t){var w,v,h,T,S,g;let n=String((w=e.name)!=null?w:""),a=String((v=e.slug)!=null?v:""),o=String((h=e.description)!=null?h:""),i=String((T=e.connector_a)!=null?T:""),d=String((S=e.connector_b)!=null?S:""),c=e.max_data_rate_gbps,l=String((g=e.max_video_resolution)!=null?g:""),s=e.max_power_delivery_watts,p=e.max_recommended_length_m,f=e.supported_standards,u=`https://${t.domain}/cables/${r(a)}/`,m=i&&d?`<div class="networkfyi-connector-arrow">
829
+ <span>${r(i)}</span>
830
+ <span class="networkfyi-connector-arrow-icon">\u2194</span>
831
+ <span>${r(d)}</span>
832
+ </div>`:"",k=f&&f.length>0?`<div class="networkfyi-pills">${f.map(y=>`<span class="networkfyi-pill">${r(y)}</span>`).join("")}</div>`:"";return`
833
+ <div class="networkfyi-header">
834
+ <div class="networkfyi-img">\u{1F50C}</div>
835
+ <div>
836
+ <div class="networkfyi-header-title">${r(n)}</div>
837
+ <div class="networkfyi-header-subtitle">Cable</div>
838
+ </div>
839
+ </div>
840
+ ${m}
841
+ <div class="networkfyi-kv-rows">
842
+ ${c!=null?R("Max Data Rate",`${c} Gbps`):""}
843
+ ${s!=null?R("Max Power",`${s}W`):""}
844
+ ${l?R("Max Resolution",l):""}
845
+ ${p!=null?R("Max Length",`${p}m`):""}
846
+ </div>
847
+ ${o?`<div class="networkfyi-desc">${r(o.length>200?o.slice(0,200)+"...":o)}</div>`:""}
848
+ ${k}
849
+ <div class="networkfyi-view-link"><a href="${u}" target="_blank" rel="noopener">View on ${r(t.name)} ${_}</a></div>
850
+ ${L(t)}
851
+ `}function P(e){return e>=100&&e<200?"informational":e>=200&&e<300?"success":e>=300&&e<400?"redirection":e>=400&&e<500?"client-error":e>=500&&e<600?"server-error":"unknown"}function D(e){switch(e){case"informational":return"#3B82F6";case"success":return"#10B981";case"redirection":return"#F59E0B";case"client-error":return"#EF4444";case"server-error":return"#7C3AED";default:return"#6B7280"}}function ne(e){switch(e){case"informational":return"Info";case"success":return"Success";case"redirection":return"Redirect";case"client-error":return"Client Error";case"server-error":return"Server Error";default:return"Unknown"}}var xe={cloud:"#3B82F6",isp:"#10B981",cdn:"#F59E0B",enterprise:"#6366F1",hosting:"#EC4899",exchange:"#14B8A6",education:"#8B5CF6",government:"#EF4444"};function oe(e){return xe[e.toLowerCase()]||"#6B7280"}function ie(e,t){var u,m,k,w,v,h;let n=e.number,a=String((u=e.name)!=null?u:""),o=String((m=e.org)!=null?m:""),i=String((k=e.country_code)!=null?k:""),d=String((w=e.category)!=null?w:""),c=String((v=e.website)!=null?v:""),l=String((h=e.description)!=null?h:""),s=e.prefix_count,p=`https://${t.domain}/asn/AS${n}/`,f=oe(d);return`
852
+ <div class="networkfyi-header">
853
+ <div class="networkfyi-img" style="font-size:16px;">AS</div>
854
+ <div>
855
+ <div class="networkfyi-header-title">AS${r(String(n))}</div>
856
+ <div class="networkfyi-header-subtitle">${r(a||o)}</div>
857
+ </div>
858
+ </div>
859
+ <div class="networkfyi-stats-row">
860
+ <div class="networkfyi-stat">
861
+ <div class="networkfyi-stat-value">${r(String(n))}</div>
862
+ <div class="networkfyi-stat-label">ASN</div>
863
+ </div>
864
+ ${s!=null?`<div class="networkfyi-stat">
865
+ <div class="networkfyi-stat-value">${s.toLocaleString()}</div>
866
+ <div class="networkfyi-stat-label">Prefixes</div>
867
+ </div>`:""}
868
+ ${i?`<div class="networkfyi-stat">
869
+ <div class="networkfyi-stat-value">${r(i)}</div>
870
+ <div class="networkfyi-stat-label">Country</div>
871
+ </div>`:""}
872
+ </div>
873
+ <div class="networkfyi-kv-rows">
874
+ ${o?R("Organization",o):""}
875
+ ${d?`<div class="networkfyi-kv-row"><span class="networkfyi-kv-label">Category</span><span class="networkfyi-kv-value">${H(d,f)}</span></div>`:""}
876
+ ${c?R("Website",c):""}
877
+ </div>
878
+ ${l?`<div class="networkfyi-desc">${r(l.length>200?l.slice(0,200)+"...":l)}</div>`:""}
879
+ <div class="networkfyi-view-link"><a href="${p}" target="_blank" rel="noopener">View on ${r(t.name)} ${_}</a></div>
880
+ ${L(t)}
881
+ `}function se(e,t){var v,h,T,S,g,y;let n=e.code,a=String((v=e.name)!=null?v:""),o=String((h=e.slug)!=null?h:""),i=String((T=e.description)!=null?T:""),d=String((S=e.when_you_see_it)!=null?S:""),c=e.protocol,l=e.category,s=e.related_codes,p=c?String((g=c.name)!=null?g:""):"",f=c?String((y=c.slug)!=null?y:""):"",u=P(n),m=D(u),k=ne(u),w=f?`https://${t.domain}/${r(f)}/${r(o)}/`:`https://${t.domain}/codes/${r(o)}/`;return`
882
+ <div class="networkfyi-header">
883
+ <div class="networkfyi-img" style="background:${m};font-size:18px;">${n}</div>
884
+ <div>
885
+ <div class="networkfyi-header-title">${r(a)}</div>
886
+ <div class="networkfyi-header-subtitle">${r(p)} ${H(k,m)}</div>
887
+ </div>
888
+ </div>
889
+ <div class="networkfyi-code-display">
890
+ <div class="networkfyi-code-big" style="color:${m}">${n}</div>
891
+ <div class="networkfyi-code-name">${r(a)}</div>
892
+ ${p?`<div class="networkfyi-code-protocol">${r(p)}</div>`:""}
893
+ </div>
894
+ ${i?`<div class="networkfyi-desc">${r(i.length>200?i.slice(0,200)+"...":i)}</div>`:""}
895
+ ${d?`<div style="padding:10px 18px;border-bottom:1px solid var(--border);">
896
+ <div class="networkfyi-section-label">When You See It</div>
897
+ <div style="font-size:0.85rem;color:var(--muted);line-height:1.5;">${r(d.length>150?d.slice(0,150)+"...":d)}</div>
898
+ </div>`:""}
899
+ ${s&&s.length>0?`<div class="networkfyi-pills">${s.slice(0,5).map(C=>{var B;let z=C.code,F=String((B=C.name)!=null?B:""),E=D(P(z));return H(`${z} ${F}`,E)}).join(" ")}</div>`:""}
900
+ <div class="networkfyi-view-link"><a href="${w}" target="_blank" rel="noopener">View on ${r(t.name)} ${_}</a></div>
901
+ ${L(t)}
902
+ `}function ae(e,t){var f,u,m,k,w;let n=String((f=e.name)!=null?f:""),a=String((u=e.slug)!=null?u:""),o=String((m=e.short_name)!=null?m:""),i=String((k=e.description)!=null?k:""),d=String((w=e.rfc_url)!=null?w:""),c=e.port,l=e.codes,s=l?l.length:0,p=`https://${t.domain}/${r(a)}/`;return`
903
+ <div class="networkfyi-header">
904
+ <div class="networkfyi-img" style="font-size:12px;">${r(o||n.slice(0,4))}</div>
905
+ <div>
906
+ <div class="networkfyi-header-title">${r(n)}</div>
907
+ <div class="networkfyi-header-subtitle">Protocol</div>
908
+ </div>
909
+ </div>
910
+ <div class="networkfyi-stats-row">
911
+ ${c!=null?`<div class="networkfyi-stat">
912
+ <div class="networkfyi-stat-value">${c}</div>
913
+ <div class="networkfyi-stat-label">Port</div>
914
+ </div>`:""}
915
+ <div class="networkfyi-stat">
916
+ <div class="networkfyi-stat-value">${s}</div>
917
+ <div class="networkfyi-stat-label">Codes</div>
918
+ </div>
919
+ </div>
920
+ <div class="networkfyi-kv-rows">
921
+ ${o?R("Short Name",o):""}
922
+ ${d?R("RFC",d):""}
923
+ </div>
924
+ ${i?Z(i):""}
925
+ <div class="networkfyi-view-link"><a href="${p}" target="_blank" rel="noopener">View on ${r(t.name)} ${_}</a></div>
926
+ ${L(t)}
927
+ `}function de(e,t){var k,w,v,h,T,S,g,y;let n=String((k=e.title)!=null?k:""),a=String((w=e.slug)!=null?w:""),o=String((v=e.protocol)!=null?v:""),i=e.primary_code,d=String((h=e.symptoms)!=null?h:""),c=String((T=e.diagnosis_steps)!=null?T:""),l=String((S=e.resolution)!=null?S:""),s=String((g=e.difficulty)!=null?g:""),p=String((y=e.estimated_time)!=null?y:""),f=`https://${t.domain}/scenarios/${r(o)}/${r(a)}/`,m={beginner:"#10B981",intermediate:"#F59E0B",advanced:"#EF4444"}[s.toLowerCase()]||"#6B7280";return`
928
+ <div class="networkfyi-header">
929
+ <div class="networkfyi-img">\u{1F527}</div>
930
+ <div>
931
+ <div class="networkfyi-header-title">${r(n)}</div>
932
+ <div class="networkfyi-header-subtitle">Error Scenario</div>
933
+ </div>
934
+ </div>
935
+ <div class="networkfyi-scenario-meta" style="padding:10px 18px;border-bottom:1px solid var(--border);">
936
+ ${s?H(s,m):""}
937
+ ${p?H(p,"var(--badge-bg)","var(--badge-text)"):""}
938
+ ${i!=null?H(String(i),D(P(i))):""}
939
+ </div>
940
+ ${d?`<div style="padding:10px 18px;border-bottom:1px solid var(--border);">
941
+ <div class="networkfyi-section-label">Symptoms</div>
942
+ <div style="font-size:0.85rem;color:var(--muted);line-height:1.5;">${r(d.length>150?d.slice(0,150)+"...":d)}</div>
943
+ </div>`:""}
944
+ ${l?`<div style="padding:10px 18px;border-bottom:1px solid var(--border);">
945
+ <div class="networkfyi-section-label">Resolution</div>
946
+ <div style="font-size:0.85rem;color:var(--muted);line-height:1.5;">${r(l.length>150?l.slice(0,150)+"...":l)}</div>
947
+ </div>`:""}
948
+ <div class="networkfyi-view-link"><a href="${f}" target="_blank" rel="noopener">Full guide on ${r(t.name)} ${_}</a></div>
949
+ ${L(t)}
950
+ `}function be(e,t){switch(e.site){case"cablefyi":return`cable/${t}/`;case"ipfyi":return`asn/${t}/`;case"statuscodefyi":return`code/${t}/`;default:return`${e.entitySlug}/${t}/`}}function N(e,t){var c;let a=(c=e.dataset.slug)!=null?c:"";if(!a){let l=x(e,t),s=b(l,e,"networkfyi-entity-widget");$(s,"Missing data-slug attribute.",t);return}let o=x(e,t),i=b(o,e,"networkfyi-entity-widget");M(i);let d=be(t,a);A(t.apiBase,d).then(l=>{var p;let s;switch(t.site){case"cablefyi":s=re(l,t);break;case"ipfyi":s=ie(l,t);break;case"statuscodefyi":s=se(l,t);break;default:{let f=String((p=l.name)!=null?p:a),u=`https://${t.domain}/${t.entitySlug}/${r(a)}/`;s=`
951
+ <div style="padding:16px;">
952
+ <div style="font-size:1rem;font-weight:600;margin-bottom:8px;">${r(f)}</div>
953
+ <a href="${r(u)}" target="_blank" rel="noopener"
954
+ style="color:${t.accent};text-decoration:none;font-size:0.85rem;">
955
+ View on ${r(t.name)} ${_}
956
+ </a>
957
+ </div>
958
+ `;break}}i.innerHTML=s}).catch(()=>{$(i,`Unable to load "${r(a)}". Please try again later.`,t)})}function q(e,t){var c,l;let n=e.dataset,a=(c=n.slugA)!=null?c:"",o=(l=n.slugB)!=null?l:"";if(!a||!o){let s=x(e,t),p=b(s,e,"networkfyi-compare-widget");$(p,"Missing data-slug-a and data-slug-b attributes.",t);return}let i=x(e,t),d=b(i,e,"networkfyi-compare-widget");M(d),A(t.apiBase,"compare/",{slug1:a,slug2:o}).then(s=>{var v,h,T,S,g,y,C,z,F,E,B;let p=String((h=(v=s.name_a)!=null?v:s.slug_a)!=null?h:a),f=String((S=(T=s.name_b)!=null?T:s.slug_b)!=null?S:o),u=s.differences,m=String((g=s.summary)!=null?g:""),k=`https://${t.domain}/compare/?slug1=${encodeURIComponent(a)}&slug2=${encodeURIComponent(o)}`,w="";if(u&&u.length>0){w='<div class="networkfyi-kv-rows">';for(let I of u.slice(0,8)){let j=String((C=(y=I.field)!=null?y:I.label)!=null?C:""),ge=String((F=(z=I.value_a)!=null?z:I.a)!=null?F:""),ue=String((B=(E=I.value_b)!=null?E:I.b)!=null?B:"");w+=`
959
+ <div class="networkfyi-kv-row">
960
+ <span class="networkfyi-kv-label">${r(j)}</span>
961
+ <span class="networkfyi-kv-value">${r(ge)} vs ${r(ue)}</span>
962
+ </div>`}w+="</div>"}d.innerHTML=`
963
+ <div class="networkfyi-header">
964
+ <div>
965
+ <div class="networkfyi-header-title">${r(p)} vs ${r(f)}</div>
966
+ <div class="networkfyi-header-subtitle">Comparison</div>
967
+ </div>
968
+ </div>
969
+ <div class="networkfyi-stats-row">
970
+ <div class="networkfyi-stat">
971
+ <div class="networkfyi-stat-value" style="font-size:14px;">${r(p)}</div>
972
+ <div class="networkfyi-stat-label">A</div>
973
+ </div>
974
+ <div class="networkfyi-stat">
975
+ <div class="networkfyi-stat-value" style="font-size:14px;">${r(f)}</div>
976
+ <div class="networkfyi-stat-label">B</div>
977
+ </div>
978
+ </div>
979
+ ${w}
980
+ ${m?`<div class="networkfyi-desc">${r(m)}</div>`:""}
981
+ <div class="networkfyi-view-link"><a href="${r(k)}" target="_blank" rel="noopener">Compare on ${r(t.name)} ${_}</a></div>
982
+ ${L(t)}
983
+ `}).catch(()=>{$(d,"Unable to load comparison data.",t)})}function le(e,t,n){if(document.querySelector('script[data-networkfyi-snippet="term"]'))return;let a={"@context":"https://schema.org","@type":"DefinedTerm",name:e.name,description:e.definition,inDefinedTermSet:{"@type":"DefinedTermSet",name:`${n} Glossary`,url:`https://${t}/glossary/`}},o=document.createElement("script");o.type="application/ld+json",o.setAttribute("data-networkfyi-snippet","term"),o.textContent=JSON.stringify(a),document.head.appendChild(o)}function ce(e,t,n){if(document.querySelector('script[data-networkfyi-snippet="faq"]'))return;let a={"@context":"https://schema.org","@type":"FAQPage",mainEntity:e.map(i=>({"@type":"Question",name:i.question,acceptedAnswer:{"@type":"Answer",text:i.answer}})),url:`https://${t}/`},o=document.createElement("script");o.type="application/ld+json",o.setAttribute("data-networkfyi-snippet","faq"),o.textContent=JSON.stringify(a),document.head.appendChild(o)}function U(e,t){var c;let a=(c=e.dataset.slug)!=null?c:"";if(!a){let l=x(e,t),s=b(l,e,"networkfyi-glossary-widget");$(s,"Missing data-slug attribute.",t);return}let o=x(e,t),i=b(o,e,"networkfyi-glossary-widget");M(i);let d=`term/${a}/`;A(t.apiBase,d).then(l=>{var s,p,f;if(i.innerHTML=ee(l,t),e.dataset.noSnippet!=="true"){let u=String((p=(s=l.name)!=null?s:l.term)!=null?p:a),m=String((f=l.definition)!=null?f:"");le({name:u,definition:m},t.domain,t.name)}}).catch(()=>{$(i,`Unable to load glossary term "${r(a)}".`,t)})}var ke={cable:"Cable",connector:"Connector",standard:"Standard",asn:"ASN",isp:"ISP","ip-range":"IP Range",code:"Status Code",protocol:"Protocol",scenario:"Scenario",spec:"Spec",glossary:"Glossary",term:"Glossary",guide:"Guide",faq:"FAQ"},he='<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" width="14" height="14"><circle cx="11" cy="11" r="8"/><line x1="21" y1="21" x2="16.65" y2="16.65"/></svg>';function O(e,t){var S;let a=(S=e.dataset.placeholder)!=null?S:`Search ${t.entityName}...`,o=x(e,t),i=b(o,e,"networkfyi-search-widget"),d=!1,c="",l=[],s=-1,p=null;i.innerHTML=`
984
+ <div class="networkfyi-search-wrap">
985
+ <div class="networkfyi-search-form" style="position:relative;display:flex;align-items:center;">
986
+ <span style="position:absolute;left:10px;color:var(--muted);pointer-events:none;">${he}</span>
987
+ <input
988
+ class="networkfyi-search-input"
989
+ type="search"
990
+ autocomplete="off"
991
+ spellcheck="false"
992
+ placeholder="${r(a)}"
993
+ aria-label="Search ${r(t.name)}"
994
+ aria-autocomplete="list"
995
+ aria-expanded="false"
996
+ role="combobox"
997
+ style="padding-left:32px;"
998
+ >
999
+ </div>
1000
+ <div class="networkfyi-search-dropdown" role="listbox" hidden
1001
+ style="margin-top:4px;border:1px solid var(--border);border-radius:6px;background:var(--bg);box-shadow:var(--shadow);max-height:280px;overflow-y:auto;"></div>
1002
+ </div>
1003
+ ${L(t)}
1004
+ `;let f=i.querySelector(".networkfyi-search-input"),u=i.querySelector(".networkfyi-search-dropdown");function m(){return Array.from(u.querySelectorAll(".networkfyi-result-item"))}function k(g){m().forEach((C,z)=>{z===g?C.style.background=`color-mix(in srgb, ${t.accent} 10%, var(--bg))`:C.style.background=""}),s=g}function w(){d=!0,u.hidden=!1,f.setAttribute("aria-expanded","true")}function v(){d=!1,u.hidden=!0,f.setAttribute("aria-expanded","false"),s=-1}function h(){var y,C,z,F;if(l.length===0){u.innerHTML=`<div style="padding:12px 14px;font-size:0.85rem;color:var(--muted);">No results for <strong>${r(c)}</strong></div>`;return}let g="";for(let E of l){let B=E.type?(y=ke[E.type])!=null?y:E.type:null,I=(F=(z=(C=E.description)!=null?C:E.excerpt)!=null?z:E.subtitle)!=null?F:"",j=E.url?E.url.startsWith("http")?E.url:`https://${t.domain}${E.url}`:`https://${t.domain}/${t.entitySlug}/${r(E.slug||"")}/`;g+=`
1005
+ <a class="networkfyi-result-item"
1006
+ href="${r(j)}" target="_blank" rel="noopener" role="option" tabindex="-1"
1007
+ style="display:block;padding:8px 14px;text-decoration:none;color:var(--text);border-bottom:1px solid var(--border);transition:background 0.1s;">
1008
+ <div style="display:flex;align-items:center;justify-content:space-between;gap:8px;">
1009
+ <span style="font-size:0.875rem;font-weight:500;">${r(E.name)}</span>
1010
+ ${B?`<span class="networkfyi-badge" style="flex-shrink:0;">${r(B)}</span>`:""}
1011
+ </div>
1012
+ ${I?`<div style="font-size:0.75rem;color:var(--muted);margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;">${r(I)}</div>`:""}
1013
+ </a>
1014
+ `}u.innerHTML=g}async function T(g){var C;if(!g.trim()){v();return}let y=`${t.apiBase}search/?q=${encodeURIComponent(g)}&limit=10`;try{let z=await fetch(y,{headers:{Accept:"application/json"}});if(!z.ok)throw new Error(`Search failed: ${z.status}`);l=(C=(await z.json()).results)!=null?C:[]}catch(z){l=[]}h(),w(),k(-1)}f.addEventListener("input",()=>{if(c=f.value,p!==null&&clearTimeout(p),!c.trim()){v();return}p=setTimeout(()=>{T(c)},300)}),f.addEventListener("keydown",g=>{if(!d)return;let y=m(),C=y.length;g.key==="ArrowDown"?(g.preventDefault(),k(s<C-1?s+1:0)):g.key==="ArrowUp"?(g.preventDefault(),k(s>0?s-1:C-1)):g.key==="Enter"?(g.preventDefault(),s>=0&&y[s]?y[s].click():window.open(`https://${t.domain}${t.searchPath}?q=${encodeURIComponent(c)}`,"_blank","noopener")):g.key==="Escape"&&(v(),f.blur())}),document.addEventListener("click",g=>{d&&!e.contains(g.target)&&v()}),f.addEventListener("focus",()=>{f.style.borderColor=t.accent,f.style.boxShadow=`0 0 0 2px color-mix(in srgb, ${t.accent} 20%, transparent)`}),f.addEventListener("blur",()=>{f.style.borderColor="",f.style.boxShadow=""})}function V(e,t){var c;let a=(c=e.dataset.slug)!=null?c:"";if(!a){let l=x(e,t),s=b(l,e,"networkfyi-faq-widget");$(s,"Missing data-slug attribute.",t);return}let o=x(e,t),i=b(o,e,"networkfyi-faq-widget");M(i);let d=`faqs/?topic=${encodeURIComponent(a)}`;A(t.apiBase,d).then(l=>{let s;l.faqs&&Array.isArray(l.faqs)?s=l.faqs:l.results&&Array.isArray(l.results)?s=l.results:l.question&&l.answer?s=[{question:String(l.question),answer:String(l.answer)}]:s=[],i.innerHTML=te(s,t),e.dataset.noSnippet!=="true"&&s.length>0&&ce(s,t.domain,t.name)}).catch(()=>{$(i,`Unable to load FAQs for "${r(a)}".`,t)})}function Q(e,t){var i;let n=(i=e.dataset.slug)!=null?i:"";if(!n){let d=x(e,t),c=b(d,e,"networkfyi-protocol-widget");$(c,"Missing data-slug attribute.",t);return}let a=x(e,t),o=b(a,e,"networkfyi-protocol-widget");M(o),A(t.apiBase,`protocol/${n}/`).then(d=>{o.innerHTML=ae(d,t)}).catch(()=>{$(o,`Unable to load protocol "${r(n)}".`,t)})}function G(e,t){var i;let n=(i=e.dataset.slug)!=null?i:"";if(!n){let d=x(e,t),c=b(d,e,"networkfyi-scenario-widget");$(c,"Missing data-slug attribute.",t);return}let a=x(e,t),o=b(a,e,"networkfyi-scenario-widget");M(o),A(t.apiBase,`scenario/${n}/`).then(d=>{o.innerHTML=de(d,t)}).catch(()=>{$(o,`Unable to load scenario "${r(n)}".`,t)})}function pe(e,t){var s,p;let n=(s=e.dataset.code)!=null?s:"0",a=parseInt(n,10),o=((p=e.textContent)==null?void 0:p.trim())||`${a}`;e.setAttribute("data-inline","");let i=x(e,t),d=b(i,e,"networkfyi-inline");d.setAttribute("data-theme",e.dataset.theme||"light");let c=P(a),l=D(c);d.innerHTML=`
1015
+ <span class="networkfyi-badge" style="background:${l};color:#fff;font-size:11px;padding:2px 8px;">
1016
+ ${r(o)}
1017
+ </span>
1018
+ `}function $e(e,t,n){let a=e.dataset.styleVariant||"modern";switch(t){case"entity":N(e,n);break;case"compare":q(e,n);break;case"glossary":U(e,n);break;case"search":O(e,n);break;case"faq":V(e,n);break;case"protocol":Q(e,n);break;case"scenario":G(e,n);break;case"status-badge":pe(e,n);break;default:break}}function Se(e,t){if("IntersectionObserver"in window){let n=new IntersectionObserver(a=>{a.forEach(o=>{o.isIntersecting&&(n.unobserve(e),t())})},{rootMargin:"200px"});n.observe(e)}else t()}function K(e,t){if(e.shadowRoot)return;let a=t.attribute.replace("data-","").replace(/-([a-z])/g,(i,d)=>d.toUpperCase()),o=e.dataset[a];o&&Se(e,()=>{e.shadowRoot||$e(e,o,t)})}function fe(e){document.querySelectorAll(`[${e.attribute}]`).forEach(t=>K(t,e))}(function(){let t='{"site":"statuscodefyi","name":"StatusCodeFYI","domain":"statuscodefyi.com","accent":"#7C3AED","attribute":"data-statuscodefyi","apiBase":"https://statuscodefyi.com/api/v1/","searchPath":"/search/","entityName":"Status Codes","entitySlug":"codes"}';document.readyState==="loading"?document.addEventListener("DOMContentLoaded",()=>fe(t)):fe(t),new MutationObserver(a=>{a.forEach(o=>{o.addedNodes.forEach(i=>{var c;if(i.nodeType!==Node.ELEMENT_NODE)return;let d=i;d.hasAttribute(t.attribute)&&K(d,t),(c=d.querySelectorAll)==null||c.call(d,`[${t.attribute}]`).forEach(l=>K(l,t))})})}).observe(document.body||document.documentElement,{childList:!0,subtree:!0})})();function Ce(e,t,n){let a=[...n,"theme","style-variant","size"];return class extends HTMLElement{static get observedAttributes(){return a}connectedCallback(){this.shadowRoot||(this._syncDataAttrs(),t(this,'{"site":"statuscodefyi","name":"StatusCodeFYI","domain":"statuscodefyi.com","accent":"#7C3AED","attribute":"data-statuscodefyi","apiBase":"https://statuscodefyi.com/api/v1/","searchPath":"/search/","entityName":"Status Codes","entitySlug":"codes"}'))}attributeChangedCallback(o,i,d){if(i===d||!this.shadowRoot)return;let c=this.shadowRoot;for(;c.firstChild;)c.firstChild.remove();this._syncDataAttrs(),t(this,'{"site":"statuscodefyi","name":"StatusCodeFYI","domain":"statuscodefyi.com","accent":"#7C3AED","attribute":"data-statuscodefyi","apiBase":"https://statuscodefyi.com/api/v1/","searchPath":"/search/","entityName":"Status Codes","entitySlug":"codes"}')}_syncDataAttrs(){let o='{"site":"statuscodefyi","name":"StatusCodeFYI","domain":"statuscodefyi.com","accent":"#7C3AED","attribute":"data-statuscodefyi","apiBase":"https://statuscodefyi.com/api/v1/","searchPath":"/search/","entityName":"Status Codes","entitySlug":"codes"}'.attribute.replace("data-","");this.dataset[o]=e;for(let l of n){let s=this.getAttribute(l);s!==null&&(this.dataset[l]=s)}let i=this.getAttribute("theme");i!==null&&(this.dataset.theme=i);let d=this.getAttribute("style-variant");d!==null&&(this.dataset.styleVariant=d);let c=this.getAttribute("size");c!==null&&(this.dataset.size=c)}}}(function(){if(typeof customElements=="undefined")return;let t='{"site":"statuscodefyi","name":"StatusCodeFYI","domain":"statuscodefyi.com","accent":"#7C3AED","attribute":"data-statuscodefyi","apiBase":"https://statuscodefyi.com/api/v1/","searchPath":"/search/","entityName":"Status Codes","entitySlug":"codes"}'.site,n=[[`${t}-entity`,N,["slug"]],[`${t}-compare`,q,["slug-a","slug-b"]],[`${t}-glossary`,U,["slug"]],[`${t}-search`,O,["placeholder"]],[`${t}-faq`,V,["slug"]],[`${t}-protocol`,Q,["slug"]],[`${t}-scenario`,G,["slug"]]];for(let[a,o,i]of n)if(!customElements.get(a)){let d=a.slice(t.length+1);customElements.define(a,Ce(d,o,i))}})();})();