@munsonlabs/sigil 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +38 -0
- package/dist/chunks/cached-KC2ort2O.mjs +1 -0
- package/dist/chunks/font-KFHs3p_4.mjs +1 -0
- package/dist/chunks/registry-DhOqpL9m.d.mts +45 -0
- package/dist/chunks/svg-C5y9tsRK.mjs +1 -0
- package/dist/chunks/watch-CLr9iYPg.mjs +1 -0
- package/dist/element.d.mts +21 -0
- package/dist/element.mjs +1 -0
- package/dist/index.d.mts +34 -0
- package/dist/index.mjs +1 -0
- package/dist/vue.d.mts +34 -0
- package/dist/vue.mjs +1 -0
- package/package.json +59 -0
package/README.md
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
# @munsonlabs/sigil
|
|
2
|
+
|
|
3
|
+
A framework-free icon registry with a `<ml-sigil>` custom element. Describe where icons come from once - an SVG set on a CDN, an icon font, a JSON map, your own source - then render them anywhere by name and swap them at runtime, even from a script the app didn't bundle. No dependencies; `vue` is optional, for the `/vue` entry.
|
|
4
|
+
|
|
5
|
+
## Installation
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npm install @munsonlabs/sigil
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Usage
|
|
12
|
+
|
|
13
|
+
```ts
|
|
14
|
+
import { register, override } from '@munsonlabs/sigil'
|
|
15
|
+
import '@munsonlabs/sigil/element'
|
|
16
|
+
|
|
17
|
+
register(
|
|
18
|
+
'lucide',
|
|
19
|
+
{
|
|
20
|
+
resolver: (name) => `https://cdn.jsdelivr.net/npm/lucide-static/icons/${name}.svg`,
|
|
21
|
+
},
|
|
22
|
+
{ default: true },
|
|
23
|
+
)
|
|
24
|
+
|
|
25
|
+
override('logo', '<svg viewBox="0 0 24 24">…</svg>')
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
```html
|
|
29
|
+
<ml-sigil name="rocket"></ml-sigil>
|
|
30
|
+
<!-- the pinned override -->
|
|
31
|
+
<ml-sigil name="logo"></ml-sigil>
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
The registry is one shared instance per page, so a separately loaded script can register or replace icons and every mounted `<ml-sigil>` (or Vue `<Sigil>`) follows.
|
|
35
|
+
|
|
36
|
+
## Docs
|
|
37
|
+
|
|
38
|
+
Every kind of source, resolution order, variants, the element and Vue component, other frameworks, third-party scripts and the full API: **https://munsonlabs.github.io/packages/sigil/getting-started/introduction**
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function e({name:e,variant:t}){return JSON.stringify([e,t??null])}function t(t){let n=new Map,r=new Map;return{resolveSync(r){return n.get(e(r))??t.resolveSync?.(r)},async resolve(i){let a=e(i),o=n.get(a)??t.resolveSync?.(i);if(o)return o;if(!t.resolve)return;let s=r.get(a);return s||(s=t.resolve(i).then(e=>(e&&n.set(a,e),e)).finally(()=>{r.delete(a)}),r.set(a,s)),s},dispose(){n.clear(),r.clear(),t.dispose?.()}}}export{t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=/^[0-9a-f]{4,6}$/i;function t(t){return e.test(t)?String.fromCodePoint(parseInt(t,16)):t}function n(e,t,n){return typeof e==`function`?e(t,n):e[t]}function r({className:e,mapping:r,glyphs:i}){return{resolveSync({name:a,variant:o}){let s;if(r!==void 0){if(s=n(r,a,o),s===void 0)return}else i===void 0&&(s=a);let c;if(i!==void 0){let e=n(i,a,o);if(e===void 0)return;c=t(e)}return{tag:`i`,className:s===void 0?e:`${e} ${s}`,text:c}}}}export{r as fontLibrary};
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
//#region src/types/font.d.ts
|
|
2
|
+
interface FontLibraryOptions {
|
|
3
|
+
className: string;
|
|
4
|
+
mapping?: Record<string, string> | ((name: string, variant?: string) => string | undefined);
|
|
5
|
+
glyphs?: Record<string, string> | ((name: string, variant?: string) => string | undefined);
|
|
6
|
+
}
|
|
7
|
+
//#endregion
|
|
8
|
+
//#region src/types/svg.d.ts
|
|
9
|
+
type ResolvedSvg = string | {
|
|
10
|
+
default: string;
|
|
11
|
+
};
|
|
12
|
+
type SvgMap = Record<string, string | Record<string, string>>;
|
|
13
|
+
interface SvgLibraryOptions {
|
|
14
|
+
resolver?: (name: string, variant?: string) => ResolvedSvg | Promise<ResolvedSvg>;
|
|
15
|
+
icons?: SvgMap | Promise<SvgMap>;
|
|
16
|
+
mutator?: (svg: SVGSVGElement) => void;
|
|
17
|
+
}
|
|
18
|
+
//#endregion
|
|
19
|
+
//#region src/types/registry.d.ts
|
|
20
|
+
interface IconQuery {
|
|
21
|
+
library?: string;
|
|
22
|
+
variant?: string;
|
|
23
|
+
}
|
|
24
|
+
interface IconRequest {
|
|
25
|
+
name: string;
|
|
26
|
+
variant?: string;
|
|
27
|
+
}
|
|
28
|
+
interface ResolvedIcon {
|
|
29
|
+
tag: string;
|
|
30
|
+
className?: string;
|
|
31
|
+
html?: string;
|
|
32
|
+
text?: string;
|
|
33
|
+
}
|
|
34
|
+
interface IconSource {
|
|
35
|
+
resolveSync?(request: IconRequest): ResolvedIcon | undefined;
|
|
36
|
+
resolve?(request: IconRequest): Promise<ResolvedIcon | undefined>;
|
|
37
|
+
dispose?(): void;
|
|
38
|
+
}
|
|
39
|
+
interface OverrideRequest extends IconRequest {
|
|
40
|
+
library?: string;
|
|
41
|
+
}
|
|
42
|
+
type IconOverride = string | ((request: OverrideRequest) => string);
|
|
43
|
+
type LibraryConfig = IconSource | SvgLibraryOptions | FontLibraryOptions;
|
|
44
|
+
//#endregion
|
|
45
|
+
export { LibraryConfig as a, ResolvedSvg as c, FontLibraryOptions as d, IconSource as i, SvgLibraryOptions as l, IconQuery as n, OverrideRequest as o, IconRequest as r, ResolvedIcon as s, IconOverride as t, SvgMap as u };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{t as e}from"./cached-KC2ort2O.mjs";const t=/^(?:https?:\/\/|\/|\.\/)/,n=/^\s*(?:<\?xml[^>]*>\s*)?(?:<!--[\s\S]*?-->\s*)*<svg[\s>]/i;async function r(e){let n=typeof e==`object`&&e&&`default`in e?e.default:e;if(typeof n!=`string`)throw TypeError(`SVG resolver must return markup, a URL, or a module with a default string export`);if(!t.test(n))return n;let r=await fetch(n);if(!r.ok)throw Error(`Failed to fetch icon (${r.status}): ${n}`);return r.text()}function i(e,t){let n=new DOMParser().parseFromString(e,`image/svg+xml`).documentElement;if(n.nodeName!==`svg`)throw Error(`Icon "${t}" did not resolve to an <svg> document`);return n}function a(e){return async(t,n=`default`)=>{let r=(await e)[t];if(r===void 0)throw Error(`Icon "${t}" is not in this library`);if(typeof r==`string`)return r;let i=r[n]??r.default;if(i===void 0)throw Error(`Icon "${t}" has no "${n}" variant`);return i}}function o(e){return{tag:`span`,className:`icon-svg`,html:e}}function s(t){let s=t.resolver??(t.icons?a(t.icons):void 0);if(!s)throw Error(`svgLibrary needs a resolver or an icons map`);let{mutator:c}=t;return typeof DOMParser>`u`?{async resolve({name:e,variant:t}){let i=await r(await s(e,t));if(!n.test(i))throw Error(`Icon "${e}" did not resolve to an <svg> document`);return o(i)}}:e({async resolve({name:e,variant:t}){let n=await r(await s(e,t)),a=i(n,e);return c?(c(a),o(new XMLSerializer().serializeToString(a))):o(n)}})}export{s as svgLibrary};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function e(e,t){if(t.library!==void 0)return t.library;if(e.defaultLibrary!==null)return e.defaultLibrary;if(e.libraries.size===1)return e.libraries.keys().next().value}function t(e,t,n){return{tag:`span`,className:`icon-svg`,html:typeof e==`function`?e({...t,library:n}):e}}function n(n,r,i){let a={name:r,variant:i.variant},o=e(n,i),s=n.overrides.get(r);return{request:a,source:o===void 0?void 0:n.libraries.get(o),override:s===void 0?void 0:t(s,a,o)}}function r({request:e,source:t,override:n}){return n||t?.resolveSync?.(e)}function i(e,t){return e?.resolveSync?.(t)||e?.resolve?.(t)}function a(e,t){let n,r=!1,a=e.then(e=>{if(r){e.dispose?.();return}n=e,t(e)});return[{resolveSync(e){return n?.resolveSync?.(e)},async resolve(e){return await a,i(n,e)},dispose(){r=!0,n?.dispose?.()}},a]}function o(e){return`resolveSync`in e||`resolve`in e}async function s(e,t){if(`resolver`in t||`icons`in t){let{svgLibrary:e}=await import(`./svg-C5y9tsRK.mjs`);return e(t)}if(`className`in t){let{fontLibrary:e}=await import(`./font-KFHs3p_4.mjs`);return e(t)}throw Error(`Unrecognised library config for "${e}"`)}function c(){return{overrides:new Map,libraries:new Map,listeners:new Set,defaultLibrary:null}}function l({listeners:e}){for(let t of e)t()}function u(){let e=c();function t(){l(e)}return{version:`0.0.1`,get defaultLibrary(){return e.defaultLibrary},get libraries(){return[...e.libraries.keys()]},register(n,r,i={}){if(e.libraries.get(n)?.dispose?.(),i.default&&(e.defaultLibrary=n),o(r))return e.libraries.set(n,r),t(),Promise.resolve();let[c,l]=a(s(n,r),r=>{e.libraries.get(n)===c&&(e.libraries.set(n,r),t())});return e.libraries.set(n,c),t(),l.catch(r=>{throw e.defaultLibrary===n&&(e.defaultLibrary=null,t()),r})},unregister(n){e.libraries.get(n)?.dispose?.(),e.libraries.delete(n),e.defaultLibrary===n&&(e.defaultLibrary=null),t()},use(n){e.defaultLibrary=n,t()},override(n,r){let i=typeof n==`string`?[[n,r??null]]:Object.entries(n);for(let[t,n]of i)n===null?e.overrides.delete(t):e.overrides.set(t,n);t()},getIconSync(t,i={}){return r(n(e,t,i))},async getIcon(t,r={}){let{request:a,source:o,override:s}=n(e,t,r);if(s)return s;try{return await i(o,a)}catch(e){import.meta.env?.DEV&&console.warn(`[sigil] "${t}" failed to resolve`,e);return}},subscribe(t){return e.listeners.add(t),()=>{e.listeners.delete(t)}},clear(){for(let t of e.libraries.values())t.dispose?.();e.overrides.clear(),e.libraries.clear(),e.defaultLibrary=null,t()}}}const d=Symbol.for(`@munsonlabs/sigil`),f=globalThis,p=f[d]??=u(),{register:m,unregister:h,override:g,use:_,getIcon:v,getIconSync:y,subscribe:b,clear:x}=p;function S(e,t,n,r=p){let i=0;function a(){let a=++i,o=r.getIconSync(e,t);if(o){n(o);return}r.getIcon(e,t).then(e=>{a===i&&n(e)})}let o=r.subscribe(a);return a(),()=>{i++,o()}}export{y as a,p as c,_ as d,v as i,b as l,x as n,g as o,u as r,m as s,S as t,h as u};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { s as ResolvedIcon } from "./chunks/registry-DhOqpL9m.mjs";
|
|
2
|
+
//#region src/element/SigilElement.d.ts
|
|
3
|
+
declare const Base: typeof HTMLElement;
|
|
4
|
+
export declare class SigilElement extends Base {
|
|
5
|
+
#private;
|
|
6
|
+
static readonly observedAttributes: readonly ["name", "library", "variant"];
|
|
7
|
+
get name(): string;
|
|
8
|
+
set name(value: string);
|
|
9
|
+
get library(): string | undefined;
|
|
10
|
+
set library(value: string | undefined);
|
|
11
|
+
get variant(): string | undefined;
|
|
12
|
+
set variant(value: string | undefined);
|
|
13
|
+
connectedCallback(): void;
|
|
14
|
+
disconnectedCallback(): void;
|
|
15
|
+
attributeChangedCallback(): void;
|
|
16
|
+
}
|
|
17
|
+
export declare function defineElements(tag?: string): void;
|
|
18
|
+
//#endregion
|
|
19
|
+
//#region src/element/render.d.ts
|
|
20
|
+
export declare function createIconNode({ tag, className, html, text }: ResolvedIcon, doc?: Document): HTMLElement;
|
|
21
|
+
//#endregion
|
package/dist/element.mjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{t as e}from"./chunks/watch-CLr9iYPg.mjs";function t({tag:e,className:t,html:n,text:r},i=document){let a=i.createElement(e);return a.setAttribute(`aria-hidden`,`true`),t&&(a.className=t),n===void 0?r!==void 0&&(a.textContent=r):a.innerHTML=n,a}const n=[`name`,`library`,`variant`],r=typeof HTMLElement>`u`?class{}:HTMLElement;var i=class extends r{static observedAttributes=n;#e;get name(){return this.getAttribute(`name`)??``}set name(e){this.#t(`name`,e)}get library(){return this.getAttribute(`library`)??void 0}set library(e){this.#t(`library`,e)}get variant(){return this.getAttribute(`variant`)??void 0}set variant(e){this.#t(`variant`,e)}connectedCallback(){this.#n()}disconnectedCallback(){this.#e?.(),this.#e=void 0}attributeChangedCallback(){this.isConnected&&this.#n()}#t(e,t){t==null?this.removeAttribute(e):this.setAttribute(e,t)}#n(){this.#e?.(),this.#e=void 0;let n=this.name;if(!n){this.replaceChildren();return}this.#e=e(n,{library:this.library,variant:this.variant},e=>{e?this.replaceChildren(t(e,this.ownerDocument)):this.replaceChildren()})}};function a(e=`ml-sigil`){typeof customElements>`u`||customElements.get(e)||customElements.define(e,i)}typeof import.meta.url==`string`&&new URL(import.meta.url).searchParams.has(`defer`)||a();export{i as SigilElement,t as createIconNode,a as defineElements};
|
package/dist/index.d.mts
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { a as LibraryConfig, c as ResolvedSvg, d as FontLibraryOptions, i as IconSource, l as SvgLibraryOptions, n as IconQuery, o as OverrideRequest, r as IconRequest, s as ResolvedIcon, t as IconOverride, u as SvgMap } from "./chunks/registry-DhOqpL9m.mjs";
|
|
2
|
+
//#region src/registry/index.d.ts
|
|
3
|
+
interface Sigil {
|
|
4
|
+
readonly version: string;
|
|
5
|
+
readonly defaultLibrary: string | null;
|
|
6
|
+
readonly libraries: string[];
|
|
7
|
+
register(name: string, config: LibraryConfig, options?: {
|
|
8
|
+
default?: boolean;
|
|
9
|
+
}): Promise<void>;
|
|
10
|
+
unregister(name: string): void;
|
|
11
|
+
use(name: string | null): void;
|
|
12
|
+
override(name: string, icon: IconOverride | null): void;
|
|
13
|
+
override(icons: Record<string, IconOverride | null>): void;
|
|
14
|
+
getIconSync(name: string, query?: IconQuery): ResolvedIcon | undefined;
|
|
15
|
+
getIcon(name: string, query?: IconQuery): Promise<ResolvedIcon | undefined>;
|
|
16
|
+
subscribe(listener: () => void): () => void;
|
|
17
|
+
clear(): void;
|
|
18
|
+
}
|
|
19
|
+
export declare function createSigil(): Sigil;
|
|
20
|
+
export declare const sigil: Sigil;
|
|
21
|
+
export declare const register: (name: string, config: LibraryConfig, options?: {
|
|
22
|
+
default?: boolean;
|
|
23
|
+
}) => Promise<void>, unregister: (name: string) => void, override: {
|
|
24
|
+
(name: string, icon: IconOverride | null): void;
|
|
25
|
+
(icons: Record<string, IconOverride | null>): void;
|
|
26
|
+
}, use: (name: string | null) => void, getIcon: (name: string, query?: IconQuery) => Promise<ResolvedIcon | undefined>, getIconSync: (name: string, query?: IconQuery) => ResolvedIcon | undefined, subscribe: (listener: () => void) => () => void, clear: () => void;
|
|
27
|
+
//#endregion
|
|
28
|
+
//#region src/watch.d.ts
|
|
29
|
+
export declare function watchIcon(name: string, query: IconQuery, onIcon: (icon: ResolvedIcon | undefined) => void, registry?: Sigil): () => void;
|
|
30
|
+
//#endregion
|
|
31
|
+
//#region src/sources/cached.d.ts
|
|
32
|
+
export declare function cached(source: IconSource): IconSource;
|
|
33
|
+
//#endregion
|
|
34
|
+
export type { FontLibraryOptions, IconOverride, IconQuery, IconRequest, IconSource, LibraryConfig, OverrideRequest, ResolvedIcon, ResolvedSvg, Sigil, SvgLibraryOptions, SvgMap };
|
package/dist/index.mjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as e,c as t,d as n,i as r,l as i,n as a,o,r as s,s as c,t as l,u}from"./chunks/watch-CLr9iYPg.mjs";import{t as d}from"./chunks/cached-KC2ort2O.mjs";export{d as cached,a as clear,s as createSigil,r as getIcon,e as getIconSync,o as override,c as register,t as sigil,i as subscribe,u as unregister,n as use,l as watchIcon};
|
package/dist/vue.d.mts
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
//#region src/vue.d.ts
|
|
2
|
+
export declare const Sigil: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
3
|
+
name: {
|
|
4
|
+
type: StringConstructor;
|
|
5
|
+
required: true;
|
|
6
|
+
};
|
|
7
|
+
library: {
|
|
8
|
+
type: StringConstructor;
|
|
9
|
+
default: undefined;
|
|
10
|
+
};
|
|
11
|
+
variant: {
|
|
12
|
+
type: StringConstructor;
|
|
13
|
+
default: undefined;
|
|
14
|
+
};
|
|
15
|
+
}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
16
|
+
[key: string]: any;
|
|
17
|
+
}> | null, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
18
|
+
name: {
|
|
19
|
+
type: StringConstructor;
|
|
20
|
+
required: true;
|
|
21
|
+
};
|
|
22
|
+
library: {
|
|
23
|
+
type: StringConstructor;
|
|
24
|
+
default: undefined;
|
|
25
|
+
};
|
|
26
|
+
variant: {
|
|
27
|
+
type: StringConstructor;
|
|
28
|
+
default: undefined;
|
|
29
|
+
};
|
|
30
|
+
}>> & Readonly<{}>, {
|
|
31
|
+
library: string;
|
|
32
|
+
variant: string;
|
|
33
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
34
|
+
//#endregion
|
package/dist/vue.mjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{t as e}from"./chunks/watch-CLr9iYPg.mjs";import{defineComponent as t,h as n,shallowRef as r,watch as i}from"vue";const a=t({name:`Sigil`,inheritAttrs:!1,props:{name:{type:String,required:!0},library:{type:String,default:void 0},variant:{type:String,default:void 0}},setup(t,{attrs:a}){let o=r();return i(()=>[t.name,t.library,t.variant],([t,n,r],i,a)=>{a(e(t,{library:n,variant:r},e=>{o.value=e}))},{immediate:!0}),()=>{let e=o.value;if(!e)return null;let t={...a,class:[e.className,a.class],"aria-hidden":`true`};return e.html===void 0?n(e.tag,t,e.text):n(e.tag,{...t,innerHTML:e.html})}}});export{a as Sigil};
|
package/package.json
ADDED
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@munsonlabs/sigil",
|
|
3
|
+
"version": "0.0.1",
|
|
4
|
+
"description": "Framework-free icon registry with a <ml-sigil> custom element. Register SVG libraries or icon fonts by describing them; the registry loads what it needs.",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"files": [
|
|
7
|
+
"dist"
|
|
8
|
+
],
|
|
9
|
+
"type": "module",
|
|
10
|
+
"sideEffects": [
|
|
11
|
+
"./dist/element.mjs"
|
|
12
|
+
],
|
|
13
|
+
"module": "./dist/index.mjs",
|
|
14
|
+
"types": "./dist/index.d.mts",
|
|
15
|
+
"exports": {
|
|
16
|
+
".": {
|
|
17
|
+
"source": "./src/index.ts",
|
|
18
|
+
"import": "./dist/index.mjs",
|
|
19
|
+
"types": "./dist/index.d.mts"
|
|
20
|
+
},
|
|
21
|
+
"./element": {
|
|
22
|
+
"source": "./src/element/index.ts",
|
|
23
|
+
"import": "./dist/element.mjs",
|
|
24
|
+
"types": "./dist/element.d.mts"
|
|
25
|
+
},
|
|
26
|
+
"./vue": {
|
|
27
|
+
"source": "./src/vue.ts",
|
|
28
|
+
"import": "./dist/vue.mjs",
|
|
29
|
+
"types": "./dist/vue.d.mts"
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
"publishConfig": {
|
|
33
|
+
"access": "public"
|
|
34
|
+
},
|
|
35
|
+
"scripts": {
|
|
36
|
+
"dev": "vp pack --watch",
|
|
37
|
+
"build": "vp pack",
|
|
38
|
+
"clean": "rm -rf dist",
|
|
39
|
+
"lint": "vp lint",
|
|
40
|
+
"fmt": "vp fmt",
|
|
41
|
+
"typecheck": "vp check --types",
|
|
42
|
+
"check": "vp check",
|
|
43
|
+
"test": "vp test",
|
|
44
|
+
"test:watch": "vp test --watch"
|
|
45
|
+
},
|
|
46
|
+
"devDependencies": {
|
|
47
|
+
"@munsonlabs/shipkit": "*",
|
|
48
|
+
"@vue/test-utils": "^2.4.6",
|
|
49
|
+
"vue": "3.5.33"
|
|
50
|
+
},
|
|
51
|
+
"peerDependencies": {
|
|
52
|
+
"vue": ">=3"
|
|
53
|
+
},
|
|
54
|
+
"peerDependenciesMeta": {
|
|
55
|
+
"vue": {
|
|
56
|
+
"optional": true
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
}
|