-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSCIMMY.Resources.html
600 lines (374 loc) · 25.5 KB
/
SCIMMY.Resources.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Namespace: SCIMMY.Resources - SCIMMY</title>
<script src="static/classy.js"></script>
<script src="static/highlight/highlight.min.js"></script>
<script src="static/highlight/langs/javascript.min.js"></script>
<script src="static/highlight/langs/json.min.js"></script>
<link type="text/css" rel="stylesheet" href="static/highlight/highlight.min.css">
<link type="text/css" rel="stylesheet" href="static/classy.css">
<link rel="icon" type="image/svg+xml" href="static/assets/icon.svg" />
</head>
<body>
<header class="page-header">
<h1 class="package-details">
<a class="package-name" href="./">
<img alt="SCIMMY" src="static/assets/logo.svg" />
</a>
<span class="package-version">
<span class="type-signature">1.3.5</span>
</span>
</h1>
<h2 class="page-title">Namespace: <span class="ancestors"><a href="index.html">SCIMMY</a>.</span>Resources</h2>
<div class="page-links">
<a href="https://github.com/scimmyjs/scimmy" title="View Source on GitHub">
<img alt="View Source on GitHub" src="static/assets/github.png" />
</a>
<div class="page-nav-toggle">
<input type="checkbox" name="tiny-page-nav-toggle" id="tiny-page-nav-toggle" autocomplete="off"/>
<label for="tiny-page-nav-toggle">
<span></span>
<span></span>
<span></span>
</label>
</div>
</div>
</header>
<nav class="page-nav">
<label class="hidden" for="tiny-page-nav"></label>
<input class="hidden tiny-page-nav-target" type="checkbox" id="tiny-page-nav" autocomplete="off"/>
<div class="nav-content">
<h3>API</h3><ul class="active"><li><h4><a href="SCIMMY.Config.html">Config</a></h4></li><li><details><summary><h4><a href="SCIMMY.Messages.html">Messages</a></h4></summary><ul><li><a href="SCIMMY.Messages.BulkRequest.html">BulkRequest</a></li><li><a href="SCIMMY.Messages.BulkResponse.html">BulkResponse</a></li><li><a href="SCIMMY.Messages.ErrorResponse.html">ErrorResponse</a></li><li><a href="SCIMMY.Messages.ListResponse.html">ListResponse</a></li><li><a href="SCIMMY.Messages.PatchOp.html">PatchOp</a></li><li><a href="SCIMMY.Messages.SearchRequest.html">SearchRequest</a></li></ul></details></li><li class="active"><details class="active" open="open"><summary class="active"><h4 class="active"><a href="SCIMMY.Resources.html" class="active">Resources</a></h4></summary><ul><li><a href="SCIMMY.Resources.Group.html">Group</a></li><li><a href="SCIMMY.Resources.ResourceType.html">ResourceType</a></li><li><a href="SCIMMY.Resources.Schema.html">Schema</a></li><li><a href="SCIMMY.Resources.ServiceProviderConfig.html">ServiceProviderConfig</a></li><li><a href="SCIMMY.Resources.User.html">User</a></li></ul></details></li><li><details><summary><h4><a href="SCIMMY.Schemas.html">Schemas</a></h4></summary><ul><li><a href="SCIMMY.Schemas.EnterpriseUser.html">EnterpriseUser</a></li><li><a href="SCIMMY.Schemas.Group.html">Group</a></li><li><a href="SCIMMY.Schemas.ResourceType.html">ResourceType</a></li><li><a href="SCIMMY.Schemas.ServiceProviderConfig.html">ServiceProviderConfig</a></li><li><a href="SCIMMY.Schemas.User.html">User</a></li></ul></details></li><li><details><summary><h4><a href="SCIMMY.Types.html">Types</a></h4></summary><ul><li><a href="SCIMMY.Types.Attribute.html">Attribute</a></li><li><a href="SCIMMY.Types.SchemaDefinition.html">SchemaDefinition</a></li><li><a href="SCIMMY.Types.Error.html">Error</a></li><li><a href="SCIMMY.Types.Filter.html">Filter</a></li><li><a href="SCIMMY.Types.Resource.html">Resource</a></li><li><a href="SCIMMY.Types.Schema.html">Schema</a></li></ul></details></li></ul>
</div>
</nav>
<main id="main">
<article class="content-container class-definition">
<header class="section-header">
<h2 class="page-title subsection-title">Namespace: <span class="ancestors"><a href="index.html">SCIMMY</a>.</span>Resources</h2>
<h2 class="class-title hidden">Namespace: SCIMMY.Resources</h2>
</header>
<section id="description" class="container-overview">
<header>
<h3 class="hidden">Description</h3>
</header>
<div class="description"><p>SCIMMY provides a singleton class, <code>SCIMMY.Resources</code>, that is used to declare resource types implemented by a SCIM Service Provider.
It also provides access to supplied implementations of core resource types that can be used to easily support well-known resource types.<br>
It is also used to retrieve a service provider's declared resource types to be sent via the ResourceTypes HTTP endpoint.</p>
<blockquote>
<p><strong>Note:</strong><br>
The <code>SCIMMY.Resources</code> class is a singleton, which means that declared resource types
will remain the same, regardless of where the class is accessed from within your code.</p>
</blockquote>
<h2 id="declaring-resource-types">Declaring Resource Types</h2>
<p>Resource type implementations can be declared by calling <code><a href="SCIMMY.Resources.html#.declare">SCIMMY.Resources.declare</a></code>.
This method will add the given resource type implementation to the list of declared resource types, and automatically
declare the resource type's schema, and any schema extensions it may have, to the <code><a href="SCIMMY.Schemas.html">SCIMMY.Schemas</a></code> class.</p>
<pre class="prettyprint source"><code>// Declare several resource types at once
SCIMMY.Resources.declare(SCIMMY.Resources.User, {}).declare(SCIMMY.Resources.Group, {});
</code></pre>
<p>Once declared, resource type implementations are made available to the <code><a href="SCIMMY.Resources.ResourceType.html">SCIMMY.Resources.ResourceType</a></code>
resource type, which handles formatting them for transmission/consumption according to the ResourceType schema
set out in <a href="https://datatracker.ietf.org/doc/html/rfc7643#section-6">RFC7643§6</a>.</p>
<p>Each resource type implementation must be declared with a unique name, and each name can only be declared once.
Attempting to declare a resource type with a name that has already been declared will throw a TypeError with the
message <code>"Resource '<name>' already declared"</code>, where <code><name></code> is the name of the resource type.</p>
<p>Similarly, each resource type implementation can only be declared under one name.
Attempting to declare an existing resource type under a new name will throw a TypeError with the message
<code>"Resource '<name>' already declared with name '<existing>'"</code>, where <code><name></code> and <code><existing></code> are the targeted name
and existing name, respectively, of the resource type.</p>
<pre class="prettyprint source"><code>// Declaring a resource type under a different name
class User extends SCIMMY.Types.Resource {/ Your resource type implementation /}
SCIMMY.Resources.declare(User, "CustomUser");
</code></pre>
<h3 id="extending-resource-types">Extending Resource Types</h3>
<p>With the exception of the <code>ResourceType</code>, <code>Schema</code>, and <code>ServiceProviderConfig</code> resources, resource type implementations
can have schema extensions attached to them via the <code><a href="SCIMMY.Types.Resource.html#.extend">extend</a></code> method inherited from
the <code><a href="SCIMMY.Types.Resource.html">SCIMMY.Types.Resource</a></code> class. Schema extensions added to resource type implementations will automatically
be included in the <code>schemaExtensions</code> attribute when formatted by the <code>ResourceType</code> resource, and the extension's
schema definition declared to the <code><a href="SCIMMY.Schemas.html">SCIMMY.Schemas</a></code> class.</p>
<p>Resource type implementations can be extended:</p>
<ul>
<li>At the time of declaration via the declaration config object:<pre class="prettyprint source"><code>// Add the EnterpriseUser schema as a required extension at declaration
SCIMMY.Resources.declare(SCIMMY.Resources.User, {
extensions: [{schema: SCIMMY.Schemas.EnterpriseUser, required: true}]
});
</code></pre>
</li>
<li>Immediately after declaration via the resource's <code><a href="SCIMMY.Types.Resource.html#.extend">extend</a></code> method:<pre class="prettyprint source"><code>// Add the EnterpriseUser schema as a required extension after declaration
SCIMMY.Resources.declare(SCIMMY.Resources.User).extend(SCIMMY.Schemas.EnterpriseUser, true);
</code></pre>
</li>
<li>Before or during declaration, directly on the resource, via the resource's <code><a href="SCIMMY.Types.Resource.html#.extend">extend</a></code> method:<pre class="prettyprint source"><code>// Add the EnterpriseUser schema as an optional extension before declaration
SCIMMY.Resources.User.extend(SCIMMY.Schemas.EnterpriseUser, false);
SCIMMY.Resources.declare(SCIMMY.Resources.User);
// Add the EnterpriseUser schema as a required extension during declaration
SCIMMY.Resources.declare(SCIMMY.Resources.User.extend(SCIMMY.Schemas.EnterpriseUser, true));
</code></pre>
</li>
<li>Any time after declaration, directly on the retrieved resource, via the resource's <code><a href="SCIMMY.Types.Resource.html#.extend">extend</a></code> method:<pre class="prettyprint source"><code>// Add the EnterpriseUser schema as a required extension after declaration
SCIMMY.Resources.declared("User").extend(SCIMMY.Schemas.EnterpriseUser, true);
</code></pre>
</li>
</ul>
<h2 id="retrieving-declared-types">Retrieving Declared Types</h2>
<p>Declared resource type implementations can be retrieved via the <code><a href="SCIMMY.Resources.html#.declared">SCIMMY.Resources.declared</a></code> method.</p>
<ul>
<li>All currently declared resource types can be retrieved by calling the method with no arguments.<pre class="prettyprint source"><code>// Returns a cloned object with resource type names as keys, and resource type implementation classes as values
SCIMMY.Resources.declared();
</code></pre>
</li>
<li>Specific declared implementations can be retrieved by calling the method with the resource type name string.
This will return the same resource type implementation class that was previously declared.<pre class="prettyprint source"><code>// Returns the declared resource matching the specified name, or undefined if no resource matched the name
SCIMMY.Resources.declared("MyResourceType");
</code></pre>
</li>
</ul></div>
</section>
<section id="usage" class="class-usage">
<h3 class="subsection-title">Usage</h3>
<section id="details" class="details">
<dl class="details-list">
<div class="detail tag-kind">
<dt>Kind:</dt>
<dd><span class="signature type-signature">singleton</span></dd>
</div>
<div class="detail tag-source">
<dt>Source:</dt>
<dd><a href="https://github.com/scimmyjs/scimmy/blob/ea53d92787d2a5db844c7699a7aeb4c1eafa13a7/src/lib/resources.js#L12">src/lib/resources.js, line 12</a></dd>
</div>
</dl>
</section>
<section id="examples" class="tag-examples">
<h5 class="subsection-title">Examples:</h5>
<article class="example">
<div class="example-caption">Basic usage with provided resource type implementations</div>
<pre class="example-code prettyprint"><code>SCIMMY.Resources.declare(SCIMMY.Resources.User)
.ingress((resource, data) => {/ Your handler for creating or modifying user resources /})
.egress((resource) => {/ Your handler for retrieving user resources /})
.degress((resource) => {/ Your handler for deleting user resources /});</code></pre>
</article>
<article class="example">
<div class="example-caption">Advanced usage with custom resource type implementations</div>
<pre class="example-code prettyprint"><code>SCIMMY.Resources.declare(class MyResourceType extends SCIMMY.Types.Resource {
read() {/ Your handler for retrieving resources /})
write(data) {/ Your handler for creating or modifying resources /}
dispose() {/ Your handler for deleting resources /})
// ...the rest of your resource type implementation //
});</code></pre>
</article>
</section>
</section>
<section id="classes" class="child-classes">
<h3 class="subsection-title">Classes</h3>
<ul class="subsection-list">
<li>
<div class="name">
<code><a href="SCIMMY.Resources.Group.html">SCIMMY.Resources.Group</a></code>
</div>
<ul>
<li>Handles read/write/patch/dispose operations for SCIM Group resources with specified ingress/egress/degress methods.</li>
<li>Formats SCIM Group resources for transmission/consumption using the <code><a href="SCIMMY.Schemas.Group.html">SCIMMY.Schemas.Group</a></code> schema class.</li>
</ul>
</li>
<li>
<div class="name">
<code><a href="SCIMMY.Resources.ResourceType.html">SCIMMY.Resources.ResourceType</a></code>
</div>
<ul>
<li>Formats SCIM Resource Type implementations declared in <code><a href="SCIMMY.Resources.html">SCIMMY.Resources</a></code> for transmission/consumption according to the ResourceType schema set out in <a href="https://datatracker.ietf.org/doc/html/rfc7643#section-6">RFC7643§6</a>.</li>
</ul>
</li>
<li>
<div class="name">
<code><a href="SCIMMY.Resources.Schema.html">SCIMMY.Resources.Schema</a></code>
</div>
<ul>
<li>Formats SCIM schema definition implementations declared in <code><a href="SCIMMY.Schemas.html">SCIMMY.Schemas</a></code> for transmission/consumption according to the Schema Definition schema set out in <a href="https://datatracker.ietf.org/doc/html/rfc7643#section-7">RFC7643§7</a>.</li>
</ul>
</li>
<li>
<div class="name">
<code><a href="SCIMMY.Resources.ServiceProviderConfig.html">SCIMMY.Resources.ServiceProviderConfig</a></code>
</div>
<ul>
<li>Formats SCIM Service Provider Configuration set in <code><a href="SCIMMY.Config.html">SCIMMY.Config</a></code> for transmission/consumption according to the Service Provider Configuration schema set out in <a href="https://datatracker.ietf.org/doc/html/rfc7643#section-5">RFC7643§5</a>.</li>
</ul>
</li>
<li>
<div class="name">
<code><a href="SCIMMY.Resources.User.html">SCIMMY.Resources.User</a></code>
</div>
<ul>
<li>Handles read/write/patch/dispose operations for SCIM User resources with specified ingress/egress/degress methods.</li>
<li>Formats SCIM User resources for transmission/consumption using the <code><a href="SCIMMY.Schemas.User.html">SCIMMY.Schemas.User</a></code> schema class.</li>
</ul>
</li>
</ul>
</section>
<section id="methods" class="child-methods">
<h3 class="subsection-title">Methods</h3>
<div class="subsection-content">
<article id=".declare">
<header>
<h4 class="name"><span class="type-signature">(static) </span>declare<span class="signature">(resource, config<span class="signature-attributes">opt</span>)</span><span class="type-signature returns"> → {<a href="SCIMMY.Resources.html">SCIMMY.Resources</a>|<a href="SCIMMY.Types.Resource.html">SCIMMY.Types.Resource</a>}</span></h4>
<div class="description"><p>Register a resource implementation for exposure as a ResourceType</p></div>
</header>
<section class="details">
<dl class="details-list">
<div class="detail tag-source">
<dt>Source:</dt>
<dd><a href="https://github.com/scimmyjs/scimmy/blob/ea53d92787d2a5db844c7699a7aeb4c1eafa13a7/src/lib/resources.js#L156">src/lib/resources.js, line 156</a></dd>
</div>
</dl>
</section>
<section class="params">
<h5 class="subsection-title">Parameters:</h5>
<div class="subsection-content">
<table>
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name">
<code>
resource<span class="signature-attributes"></span>
</code>
</td>
<td class="type">
<span class="param">
<code>
<span class="param-type"><a href="SCIMMY.Types.Resource.html">SCIMMY.Types.Resource</a></span>
</code>
</span>
</td>
<td class="description last">
<p>the resource type implementation to register</p>
</td>
</tr>
<tr>
<td class="name">
<code>
config<span class="signature-attributes">opt</span>
</code>
</td>
<td class="type">
<span class="param">
<code>
<span class="param-type">Object</span>
</code><code>
<span class="param-type">String</span>
</code>
</span>
</td>
<td class="description last">
<p>the configuration to feed to the resource being registered, or the name of the resource type implementation if different to the class name</p>
</td>
</tr>
</tbody>
</table>
</div>
</section>
<section class="returns">
<h5 class="subsection-title">Returns:</h5>
<div class="param-desc"><p>the Resources class or registered resource type class for chaining</p></div>
<div class="detail tag-type">
<dt>Type:</dt>
<dd><span class="signature type-signature">{<span class="param-type"><a href="SCIMMY.Resources.html">SCIMMY.Resources</a></span><span class="param-join">|</span><span class="param-type"><a href="SCIMMY.Types.Resource.html">SCIMMY.Types.Resource</a></span>}</span></dd>
</div>
</section>
</article><article id=".declared">
<header>
<h4 class="name"><span class="type-signature">(static) </span>declared<span class="signature">(resource<span class="signature-attributes">opt</span>)</span><span class="type-signature returns"> → {Record<String, <a href="SCIMMY.Types.Resource.html">SCIMMY.Types.Resource</a>>|<a href="SCIMMY.Types.Resource.html">SCIMMY.Types.Resource</a>|Boolean}</span></h4>
<div class="description"><p>Get registration status of specific resource implementation, or get all registered resource implementations</p></div>
</header>
<section class="details">
<dl class="details-list">
<div class="detail tag-source">
<dt>Source:</dt>
<dd><a href="https://github.com/scimmyjs/scimmy/blob/ea53d92787d2a5db844c7699a7aeb4c1eafa13a7/src/lib/resources.js#L236">src/lib/resources.js, line 236</a></dd>
</div>
</dl>
</section>
<section class="params">
<h5 class="subsection-title">Parameters:</h5>
<div class="subsection-content">
<table>
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name">
<code>
resource<span class="signature-attributes">opt</span>
</code>
</td>
<td class="type">
<span class="param">
<code>
<span class="param-type"><a href="SCIMMY.Types.Resource.html">SCIMMY.Types.Resource</a></span>
</code><code>
<span class="param-type">String</span>
</code>
</span>
</td>
<td class="description last">
<p>the resource implementation or name to query registration status for</p>
</td>
</tr>
</tbody>
</table>
</div>
</section>
<section class="returns">
<h5 class="subsection-title">Returns:</h5>
<div class="param-desc"><ul>
<li>A containing object with registered resource implementations for exposure as ResourceTypes, if no arguments are supplied.</li>
<li>The registered resource type implementation with matching name, or undefined, if a string argument is supplied.</li>
<li>The registration status of the specified resource implementation, if a class extending <code>SCIMMY.Types.Resource</code> is supplied.</li>
</ul></div>
<div class="detail tag-type">
<dt>Type:</dt>
<dd><span class="signature type-signature">{<span class="param-type">Record<String, <a href="SCIMMY.Types.Resource.html">SCIMMY.Types.Resource</a>></span><span class="param-join">|</span><span class="param-type"><a href="SCIMMY.Types.Resource.html">SCIMMY.Types.Resource</a></span><span class="param-join">|</span><span class="param-type">Boolean</span>}</span></dd>
</div>
</section>
</article>
</div>
</section>
</article>
<aside class="content-aside">
<div class="toc toc-tiny">
<h2 class="page-title">Namespace: <span class="ancestors"><a href="index.html">SCIMMY</a>.</span>Resources</h2>
<details class="toc-container">
<summary class="toc-title">Table of Contents</summary>
<nav class="toc-content"><ul><li><h5 class="toc-section"><a href="#description">Description</a></h5><ul class="no-indent"><li><a href="#declaring-resource-types">Declaring Resource Types</a><ul><li><a href="#extending-resource-types">Extending Resource Types</a></li></ul></li><li><a href="#retrieving-declared-types">Retrieving Declared Types</a></li></ul></li><li><h5 class="toc-section"><a href="#usage">Usage</a></h5><ul><li><a href="#details">Details</a></li><li><a href="#examples">Examples</a></li></ul></li><li><h5 class="toc-section"><a href="#classes">Classes</a></h5></li><li><h5 class="toc-section"><a href="#methods">Methods</a></h5><ul><li><a href="#.declare"><span class="type-signature">(static) </span>declare</a></li><li><a href="#.declared"><span class="type-signature">(static) </span>declared</a></li></ul></li></ul></nav>
</details>
</div>
<div class="toc toc-regular">
<nav class="toc-container">
<h5 class="toc-title">Table of Contents</h5>
<div class="toc-content"><ul><li><h5 class="toc-section"><a href="#description">Description</a></h5><ul class="no-indent"><li><a href="#declaring-resource-types">Declaring Resource Types</a><ul><li><a href="#extending-resource-types">Extending Resource Types</a></li></ul></li><li><a href="#retrieving-declared-types">Retrieving Declared Types</a></li></ul></li><li><h5 class="toc-section"><a href="#usage">Usage</a></h5><ul><li><a href="#details">Details</a></li><li><a href="#examples">Examples</a></li></ul></li><li><h5 class="toc-section"><a href="#classes">Classes</a></h5></li><li><h5 class="toc-section"><a href="#methods">Methods</a></h5><ul><li><a href="#.declare"><span class="type-signature">(static) </span>declare</a></li><li><a href="#.declared"><span class="type-signature">(static) </span>declared</a></li></ul></li></ul></div>
</nav>
</div>
</aside>
<footer>
Generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 4.0.4</a>
using <a href="https://github.com/sleelin/classy-template">classy-template</a>
<span class="creation-timestamp">2025-03-05T04:14:54.613Z</span>
</footer>
</main>
<script>hljs.highlightAll();</script>
</body>
</html>