asyncapi-viewer 2.0.0 → 2.1.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 +13 -3
- package/dist/asyncapi-viewer.iife.js +127 -128
- package/dist/asyncapi-viewer.js +887 -842
- package/dist/types/element.d.ts +33 -0
- package/dist/types/events.d.ts +99 -0
- package/dist/types/index.d.ts +12 -0
- package/dist/types/load/loader.d.ts +46 -0
- package/dist/types/load/refs.d.ts +62 -0
- package/dist/types/model/avro.d.ts +14 -0
- package/dist/types/model/context.d.ts +75 -0
- package/dist/types/model/invariants.d.ts +7 -0
- package/dist/types/model/normalize.d.ts +16 -0
- package/dist/types/model/schema.d.ts +16 -0
- package/dist/types/model/types.d.ts +324 -0
- package/dist/types/model/v2.d.ts +8 -0
- package/dist/types/model/v3.d.ts +8 -0
- package/dist/types/options.d.ts +56 -0
- package/dist/types/render/details.d.ts +23 -0
- package/dist/types/render/example.d.ts +36 -0
- package/dist/types/render/format.d.ts +2 -0
- package/dist/types/render/header.d.ts +19 -0
- package/dist/types/render/info.d.ts +4 -0
- package/dist/types/render/markdown.d.ts +4 -0
- package/dist/types/render/nav.d.ts +69 -0
- package/dist/types/render/operation.d.ts +18 -0
- package/dist/types/render/sections.d.ts +17 -0
- package/dist/types/render/sidebar.d.ts +30 -0
- package/dist/types/render/tag.d.ts +7 -0
- package/dist/types/render/tree.d.ts +36 -0
- package/dist/types/styles/base.d.ts +2 -0
- package/dist/types/styles/tokens.d.ts +7 -0
- package/dist/types/theme/theme.d.ts +26 -0
- package/dist/types/util/color.d.ts +22 -0
- package/dist/types/util/example.d.ts +8 -0
- package/package.json +13 -3
- package/types/react.d.ts +28 -0
- package/types/react.js +2 -0
- package/dist/asyncapi-viewer.iife.js.map +0 -1
- package/dist/asyncapi-viewer.js.map +0 -1
|
@@ -104,7 +104,7 @@ $&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,`$1$2`).replace(/\
|
|
|
104
104
|
`,e)+1}yield*this.pop();break;default:yield*this.pop(),yield*this.step()}}*blockMap(e){let t=e.items[e.items.length-1];switch(this.type){case`newline`:if(this.onKeyLine=!1,t.value){let n=`end`in t.value?t.value.end:void 0;(Array.isArray(n)?n[n.length-1]:void 0)?.type===`comment`?n?.push(this.sourceToken):e.items.push({start:[this.sourceToken]})}else t.sep?t.sep.push(this.sourceToken):t.start.push(this.sourceToken);return;case`space`:case`comment`:if(t.value)e.items.push({start:[this.sourceToken]});else if(t.sep)t.sep.push(this.sourceToken);else{if(this.atIndentedComment(t.start,e.indent)){let n=e.items[e.items.length-2]?.value?.end;if(Array.isArray(n)){vi(n,t.start),n.push(this.sourceToken),e.items.pop();return}}t.start.push(this.sourceToken)}return}if(this.indent>=e.indent){let n=!this.onKeyLine&&this.indent===e.indent,r=n&&(t.sep||t.explicitKey)&&this.type!==`seq-item-ind`,i=[];if(r&&t.sep&&!t.value){let n=[];for(let r=0;r<t.sep.length;++r){let i=t.sep[r];switch(i.type){case`newline`:n.push(r);break;case`space`:break;case`comment`:i.indent>e.indent&&(n.length=0);break;default:n.length=0}}n.length>=2&&(i=t.sep.splice(n[1]))}switch(this.type){case`anchor`:case`tag`:r||t.value?(i.push(this.sourceToken),e.items.push({start:i}),this.onKeyLine=!0):t.sep?t.sep.push(this.sourceToken):t.start.push(this.sourceToken);return;case`explicit-key-ind`:!t.sep&&!t.explicitKey?(t.start.push(this.sourceToken),t.explicitKey=!0):r||t.value?(i.push(this.sourceToken),e.items.push({start:i,explicitKey:!0})):this.stack.push({type:`block-map`,offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken],explicitKey:!0}]}),this.onKeyLine=!0;return;case`map-value-ind`:if(t.explicitKey){if(!t.sep){if(pi(t.start,`newline`))Object.assign(t,{key:null,sep:[this.sourceToken]});else{let e=_i(t.start);this.stack.push({type:`block-map`,offset:this.offset,indent:this.indent,items:[{start:e,key:null,sep:[this.sourceToken]}]})}}else if(t.value)e.items.push({start:[],key:null,sep:[this.sourceToken]});else if(pi(t.sep,`map-value-ind`))this.stack.push({type:`block-map`,offset:this.offset,indent:this.indent,items:[{start:i,key:null,sep:[this.sourceToken]}]});else if(hi(t.key)&&!pi(t.sep,`newline`)){let e=_i(t.start),n=t.key,r=t.sep;r.push(this.sourceToken),delete t.key,delete t.sep,this.stack.push({type:`block-map`,offset:this.offset,indent:this.indent,items:[{start:e,key:n,sep:r}]})}else i.length>0?t.sep=t.sep.concat(i,this.sourceToken):t.sep.push(this.sourceToken)}else t.sep?t.value||r?e.items.push({start:i,key:null,sep:[this.sourceToken]}):pi(t.sep,`map-value-ind`)?this.stack.push({type:`block-map`,offset:this.offset,indent:this.indent,items:[{start:[],key:null,sep:[this.sourceToken]}]}):t.sep.push(this.sourceToken):Object.assign(t,{key:null,sep:[this.sourceToken]});this.onKeyLine=!0;return;case`alias`:case`scalar`:case`single-quoted-scalar`:case`double-quoted-scalar`:{let n=this.flowScalar(this.type);r||t.value?(e.items.push({start:i,key:n,sep:[]}),this.onKeyLine=!0):t.sep?this.stack.push(n):(Object.assign(t,{key:n,sep:[]}),this.onKeyLine=!0);return}default:{let r=this.startBlockValue(e);if(r){if(r.type===`block-seq`){if(!t.explicitKey&&t.sep&&!pi(t.sep,`newline`)){yield*this.pop({type:`error`,offset:this.offset,message:`Unexpected block-seq-ind on same line with key`,source:this.source});return}}else n&&e.items.push({start:i});this.stack.push(r);return}}}}yield*this.pop(),yield*this.step()}*blockSequence(e){let t=e.items[e.items.length-1];switch(this.type){case`newline`:if(t.value){let n=`end`in t.value?t.value.end:void 0;(Array.isArray(n)?n[n.length-1]:void 0)?.type===`comment`?n?.push(this.sourceToken):e.items.push({start:[this.sourceToken]})}else t.start.push(this.sourceToken);return;case`space`:case`comment`:if(t.value)e.items.push({start:[this.sourceToken]});else{if(this.atIndentedComment(t.start,e.indent)){let n=e.items[e.items.length-2]?.value?.end;if(Array.isArray(n)){vi(n,t.start),n.push(this.sourceToken),e.items.pop();return}}t.start.push(this.sourceToken)}return;case`anchor`:case`tag`:if(t.value||this.indent<=e.indent)break;t.start.push(this.sourceToken);return;case`seq-item-ind`:if(this.indent!==e.indent)break;t.value||pi(t.start,`seq-item-ind`)?e.items.push({start:[this.sourceToken]}):t.start.push(this.sourceToken);return}if(this.indent>e.indent){let t=this.startBlockValue(e);if(t){this.stack.push(t);return}}yield*this.pop(),yield*this.step()}*flowCollection(e){let t=e.items[e.items.length-1];if(this.type===`flow-error-end`){let e;do yield*this.pop(),e=this.peek(1);while(e?.type===`flow-collection`)}else if(e.end.length===0){switch(this.type){case`comma`:case`explicit-key-ind`:!t||t.sep?e.items.push({start:[this.sourceToken]}):t.start.push(this.sourceToken);return;case`map-value-ind`:!t||t.value?e.items.push({start:[],key:null,sep:[this.sourceToken]}):t.sep?t.sep.push(this.sourceToken):Object.assign(t,{key:null,sep:[this.sourceToken]});return;case`space`:case`comment`:case`newline`:case`anchor`:case`tag`:!t||t.value?e.items.push({start:[this.sourceToken]}):t.sep?t.sep.push(this.sourceToken):t.start.push(this.sourceToken);return;case`alias`:case`scalar`:case`single-quoted-scalar`:case`double-quoted-scalar`:{let n=this.flowScalar(this.type);!t||t.value?e.items.push({start:[],key:n,sep:[]}):t.sep?this.stack.push(n):Object.assign(t,{key:n,sep:[]});return}case`flow-map-end`:case`flow-seq-end`:e.end.push(this.sourceToken);return}let n=this.startBlockValue(e);n?this.stack.push(n):(yield*this.pop(),yield*this.step())}else{let t=this.peek(2);if(t.type===`block-map`&&(this.type===`map-value-ind`&&t.indent===e.indent||this.type===`newline`&&!t.items[t.items.length-1].sep))yield*this.pop(),yield*this.step();else if(this.type===`map-value-ind`&&t.type!==`flow-collection`){let n=_i(gi(t));yi(e);let r=e.end.splice(1,e.end.length);r.push(this.sourceToken);let i={type:`block-map`,offset:e.offset,indent:e.indent,items:[{start:n,key:e,sep:r}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=i}else yield*this.lineEnd(e)}}flowScalar(e){if(this.onNewLine){let e=this.source.indexOf(`
|
|
105
105
|
`)+1;for(;e!==0;)this.onNewLine(this.offset+e),e=this.source.indexOf(`
|
|
106
106
|
`,e)+1}return{type:e,offset:this.offset,indent:this.indent,source:this.source}}startBlockValue(e){switch(this.type){case`alias`:case`scalar`:case`single-quoted-scalar`:case`double-quoted-scalar`:return this.flowScalar(this.type);case`block-scalar-header`:return{type:`block-scalar`,offset:this.offset,indent:this.indent,props:[this.sourceToken],source:``};case`flow-map-start`:case`flow-seq-start`:return{type:`flow-collection`,offset:this.offset,indent:this.indent,start:this.sourceToken,items:[],end:[]};case`seq-item-ind`:return{type:`block-seq`,offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken]}]};case`explicit-key-ind`:{this.onKeyLine=!0;let t=_i(gi(e));return t.push(this.sourceToken),{type:`block-map`,offset:this.offset,indent:this.indent,items:[{start:t,explicitKey:!0}]}}case`map-value-ind`:{this.onKeyLine=!0;let t=_i(gi(e));return{type:`block-map`,offset:this.offset,indent:this.indent,items:[{start:t,key:null,sep:[this.sourceToken]}]}}}return null}atIndentedComment(e,t){return this.type!==`comment`||this.indent<=t?!1:e.every(e=>e.type===`newline`||e.type===`space`)}*documentEnd(e){this.type!==`doc-mode`&&(e.end?e.end.push(this.sourceToken):e.end=[this.sourceToken],this.type===`newline`&&(yield*this.pop()))}*lineEnd(e){switch(this.type){case`comma`:case`doc-start`:case`doc-end`:case`flow-seq-end`:case`flow-map-end`:case`map-value-ind`:yield*this.pop(),yield*this.step();break;case`newline`:this.onKeyLine=!1;default:e.end?e.end.push(this.sourceToken):e.end=[this.sourceToken],this.type===`newline`&&(yield*this.pop())}}};function xi(e){let t=e.prettyErrors!==!1;return{lineCounter:e.lineCounter||t&&new fi||null,prettyErrors:t}}function Si(e,t={}){let{lineCounter:n,prettyErrors:r}=xi(t),i=new bi(n?.addNewLine),a=new $r(t),o=null;for(let t of a.compose(i.parse(e),!0,e.length))if(!o)o=t;else if(o.options.logLevel!==`silent`){o.errors.push(new hr(t.range.slice(0,2),`MULTIPLE_DOCS`,`Source contains multiple documents; please use YAML.parseAllDocuments()`));break}return r&&n&&(o.errors.forEach(_r(e,n)),o.warnings.forEach(_r(e,n))),o}function Ci(e,t,n){let r;typeof t==`function`?r=t:n===void 0&&t&&typeof t==`object`&&(n=t);let i=Si(e,n);if(!i)return null;if(i.warnings.forEach(e=>Yt(i.options.logLevel,e)),i.errors.length>0){if(i.options.logLevel!==`silent`)throw i.errors[0];i.errors=[]}return i.toJS(Object.assign({reviver:r},n))}function wi(e,t){try{return new URL(e,t).href}catch{return e}}async function Ti(e,t=e=>fetch(e)){let n,r;try{let i=await t(e);if(n=i.status,!i.ok)return Oi(e,{kind:`http`,status:n,message:`The server answered with HTTP ${n}.`});r=await i.text()}catch(t){return Oi(e,{kind:`network`,message:`The request failed (${ki(t)}).`})}let i=Ei(r);if(`error`in i)return Oi(e,i.error);let a=Di(i.data);return`error`in a?Oi(e,a.error):{ok:!0,url:e,text:r,format:i.format,data:i.data,...a}}function Ei(e){if(e.trim()===``)return{error:{kind:`empty`,message:`The document is empty.`}};let t,n;try{t=JSON.parse(e),n=`json`}catch{try{t=Ci(e,{prettyErrors:!0}),n=`yaml`}catch(e){return{error:{kind:`parse`,message:`The document is neither valid JSON nor valid YAML: ${e instanceof hr?e.message.split(`
|
|
107
|
-
`)[0]:ki(e)}`}}}}return typeof t!=`object`||!t||Array.isArray(t)?{error:{kind:`not-object`,message:`The document root must be an object with an "asyncapi" field.`}}:{format:n,data:t}}function Di(e){let t=e.asyncapi;if(t===void 0)return{error:{kind:`unsupported`,message:`The document has no "asyncapi" field, so it is not an AsyncAPI document.`}};let n=String(t),r=Number(n.split(`.`)[0]);return r===2||r===3?{specVersion:n,specMajor:r}:{error:{kind:`unsupported`,message:`AsyncAPI ${n} is not supported; this viewer renders AsyncAPI 2 and 3.`}}}function Oi(e,t){return{ok:!1,url:e,error:t}}function ki(e){return e instanceof Error?e.message:String(e)}function Ai(e){return typeof e==`object`&&!!e&&typeof e.$ref==`string`}function ji(e){let t=/#\/components\/schemas\/([^/]+)$/.exec(e);return t?Ii(t[1]):void 0}var Mi=class{#e=new Map;#t=new Map;#n;constructor(e,t,n=e=>fetch(e)){this.rootUrl=zi(e),this.#e.set(this.rootUrl,t),this.#n=n}async preload(){let e=[],t=[this.rootUrl],n=new Set;for(;t.length>0;){let r=t.shift(),i=this.#e.get(r);if(i)for(let[a,o]of Pi(i)){let i=zi(Ri(a,r)),s=`${r} ${a}`;if(n.has(s)||(n.add(s),i===r||this.#e.has(i)||this.#t.has(i)))continue;let c=await this.#r(i);typeof c==`string`?(this.#t.set(i,c),e.push({severity:`error`,message:`Could not load "${i}" for $ref "${a}": ${c}`,where:o})):(this.#e.set(i,c),t.push(i))}}return e}resolve(e,t){let n=Ri(e,t),r=n.indexOf(`#`),i=r===-1?n:n.slice(0,r),a=r===-1?``:Bi(n.slice(r+1)),o=this.#e.get(i);if(!o)return{error:`Could not resolve $ref "${e}": ${this.#t.get(i)??`the document was not loaded`}.`};if(a!==``&&!a.startsWith(`/`))return{error:`Could not resolve $ref "${e}": the fragment is not a JSON pointer.`};let s=Fi(o,a);return s===Ni?{error:`Could not resolve $ref "${e}": nothing at "${a}".`}:{value:s,id:`${i}#${a}`,baseUrl:i,pointer:a}}deref(e,t){let n=e,r=t,i,a=``,o=new Set;for(;Ai(n);){let e=this.resolve(n.$ref,r);if(`error`in e)return e;if(o.has(e.id))return{error:`Circular $ref chain at "${e.id}".`};o.add(e.id),{value:n,baseUrl:r,id:i,pointer:a}=e}return{value:n,id:i,baseUrl:r,pointer:a}}get documents(){return this.#e}async#r(e){let t;try{let n=await this.#n(e);if(!n.ok)return`HTTP ${n.status}`;t=await n.text()}catch(e){return e instanceof Error?e.message:String(e)}let n=Ei(t);return`error`in n?n.error.message:n.data}},Ni=Symbol(`missing`);function Pi(e){let t=[],n=(e,r)=>{if(typeof e==`object`&&e){if(Array.isArray(e)){e.forEach((e,t)=>n(e,`${r}/${t}`));return}for(let[i,a]of Object.entries(e))i===`$ref`&&typeof a==`string`?t.push([a,r]):n(a,`${r}/${Li(i)}`)}};return n(e,``),t}function Fi(e,t){if(t===``)return e;let n=e;for(let e of t.slice(1).split(`/`)){let t=Ii(e);if(Array.isArray(n)){let e=/^\d+$/.test(t)?Number(t):-1;if(e<0||e>=n.length)return Ni;n=n[e]}else if(typeof n==`object`&&n&&Object.prototype.hasOwnProperty.call(n,t))n=n[t];else return Ni}return n}function Ii(e){return e.replace(/~1/g,`/`).replace(/~0/g,`~`)}function Li(e){return e.replace(/~/g,`~0`).replace(/\//g,`~1`)}function Ri(e,t){if(e.startsWith(`#`))return`${zi(t)}${e}`;try{return new URL(e,t).href}catch{return e}}function zi(e){let t=e.indexOf(`#`);return t===-1?e:e.slice(0,t)}function Bi(e){try{return decodeURIComponent(e)}catch{return e}}var Vi={labels:{publish:`PUB`,subscribe:`SUB`,send:`SEND`,receive:`RECEIVE`,request:`REQUEST`,reply:`REPLY`},useChannelAddressAsIdentifier:!1,applyTraits:!0};function L(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function R(e){return typeof e==`string`?e:typeof e==`number`||typeof e==`boolean`?String(e):void 0}var z=class{#e;constructor(e,t){this.resolver=e,this.options=t,this.problems=[],this.#e=new Map}problem(e,t,n){this.problems.push({severity:e,message:t,where:n})}object(e,t,n){if(e===void 0)return;let r=this.resolver.deref(e,t);if(`error`in r){this.problem(`error`,r.error,n);return}if(!L(r.value)){this.problem(`warning`,`Expected an object at "${n}" but found ${Hi(r.value)}; it was skipped.`,n);return}return{value:r.value,baseUrl:r.baseUrl,id:r.id}}*entries(e,t,n){if(e!==void 0){if(!L(e)){this.problem(`warning`,`Expected a map at "${n}"; it was skipped.`,n);return}for(let[r,i]of Object.entries(e)){let e=`${n}/${r.replace(/~/g,`~0`).replace(/\//g,`~1`)}`,a=this.object(i,t,e);a&&(yield[r,a,e])}}}*items(e,t,n){if(e!==void 0){if(!Array.isArray(e)){this.problem(`warning`,`Expected a list at "${n}"; it was skipped.`,n);return}for(let r=0;r<e.length;r++){let i=`${n}/${r}`,a=this.object(e[r],t,i);a&&(yield[a,i])}}}anchor(e,t){let n=this.#e.get(e)??new Set;this.#e.set(e,n);let r=Gi(t),i=r;for(let e=2;n.has(i);e++)i=`${r}-${e}`;return n.add(i),i}tags(e,t,n){let r=[];for(let[{value:i,baseUrl:a},o]of this.items(e,t,n)){let e=R(i.name);if(e===void 0){this.problem(`warning`,`A tag without a name at "${o}" was skipped.`,o);continue}let t={name:e},n=R(i.description);n!==void 0&&(t.description=n);let s=this.externalDocs(i.externalDocs,a,`${o}/externalDocs`);s&&(t.externalDocs=s),r.push(t)}return r}externalDocs(e,t,n){let r=this.object(e,t,n);if(!r)return;let i=R(r.value.url);if(i===void 0){this.problem(`warning`,`externalDocs without a url at "${n}" was skipped.`,n);return}let a={url:i},o=R(r.value.description);return o!==void 0&&(a.description=o),a}bindings(e,t,n,r){let i=[],a=this.object(t,n,r);if(!a)return i;for(let[t,n,o]of this.entries(a.value,a.baseUrl,r))for(let[r,a]of Object.entries(n.value))i.push({scope:e,protocol:t,key:r,value:a});return i}withTraits(e,t,n,r){let i=e.traits;if(!this.options.applyTraits||i===void 0)return e;let a={...e};delete a.traits;for(let[e,o]of this.items(i,t,`${n}/traits`)){let t={...e.value};for(let e of r)e in t&&(this.problem(`warning`,`A trait must not define "${e}"; that field of the trait at "${o}" was ignored.`,o),delete t[e]);a=Wi(t,a)}return a}static keyOf(e){if(e===void 0)return;let t=e.slice(e.indexOf(`#`)+1).split(`/`).pop();return t===void 0||t===``?void 0:t.replace(/~1/g,`/`).replace(/~0/g,`~`)}static schemaName(e){return e===void 0?void 0:ji(e)}};function Hi(e){return e===null?`null`:Array.isArray(e)?`a list`:typeof e==`object`?`an object`:`a ${typeof e}`}function Ui(e){let t={},n=[],r=(t,r)=>{let i=R(e[r]);i!==void 0&&n.push({label:t,value:i})};switch(R(e.type)){case`apiKey`:r(`in`,`in`);break;case`httpApiKey`:r(`name`,`name`),r(`in`,`in`);break;case`http`:r(`scheme`,`scheme`),r(`bearer format`,`bearerFormat`);break;case`openIdConnect`:{let n=R(e.openIdConnectUrl);n!==void 0&&(t.openIdConnectUrl=n);break}case`oauth2`:{let n=e.flows;if(L(n)){let e=[];for(let[t,r]of Object.entries(n)){if(!L(r))continue;let n={kind:t,scopes:[]},i=R(r.authorizationUrl),a=R(r.tokenUrl),o=R(r.refreshUrl);i!==void 0&&(n.authorizationUrl=i),a!==void 0&&(n.tokenUrl=a),o!==void 0&&(n.refreshUrl=o);let s=r.availableScopes??r.scopes;if(L(s))for(let[e,t]of Object.entries(s))n.scopes.push({name:e,description:typeof t==`string`?t:``});e.push(n)}e.length>0&&(t.flows=e)}break}}n.length>0&&(t.facts=n);let i=Object.entries(e).filter(([e])=>e.startsWith(`x-`)).map(([e,t])=>({key:e,value:t}));return i.length>0&&(t.extensions=i),t}function Wi(e,t){let n={...e};for(let[e,r]of Object.entries(t)){let t=n[e];n[e]=L(t)&&L(r)&&!(`$ref`in r)&&!(`$ref`in t)?Wi(t,r):r}return n}function Gi(e){return e.replace(/[^A-Za-z0-9_.]+/g,`-`).replace(/^-+|-+$/g,``)||`item`}var Ki={null:`null`,boolean:`boolean`,int:`integer`,long:`integer`,float:`number`,double:`number`,bytes:`string`,string:`string`},qi={"timestamp-millis":`date-time`,"timestamp-micros":`date-time`,"local-timestamp-millis":`date-time`,"local-timestamp-micros":`date-time`,date:`date`,"time-millis":`time`,"time-micros":`time`,uuid:`uuid`,decimal:`decimal`,duration:`duration`};function Ji(e){return e.toLowerCase().includes(`avro`)}function Yi(e,t,n){if(Xi(e))return B(e,{name:t,path:[],required:!1,isRoot:n,ancestors:new Set,registry:new Map})}function Xi(e){return typeof e==`string`||Array.isArray(e)||typeof e==`object`&&!!e&&`type`in e}function Zi(e,t){if(!e.name)return;if(e.name.includes(`.`))return e.name;let n=e.namespace??t;return n?`${n}.${e.name}`:e.name}function B(e,t,n){let r={kind:`node`,name:t.name,path:t.path,types:[],required:t.required,constraints:[],children:[]},i=t.isRoot?[]:t.name===`[]`?[...t.path.slice(0,-1),`${t.path[t.path.length-1]??``}[]`]:[...t.path,t.name];if(Array.isArray(e)){let i=e.filter(e=>e!==`null`),a=i.length!==e.length;if(i.length===1){let e=B(i[0],t,n);return a&&!e.types.includes(`null`)&&(e.types=[...e.types,`null`]),e}return r.types=a?[`null`]:[],r.composition={kind:`oneOf`,variants:i.map((e,r)=>({title:Qi(e,r),node:B(e,t,n)}))},r}if(typeof e==`string`){let i=Ki[e];if(i!==void 0)return r.types=[i],e===`bytes`&&(r.format=`bytes`),r;let a=t.registry.get(e)??t.registry.get(n?`${n}.${e}`:e);if(a){let i=Zi(a,n)??e;if(t.ancestors.has(i))return r.types=[a.type===`record`?`object`:`string`],r.circularRef=a.name??e,r.refName=a.name??e,r;let o=B(a,t,n);return o.refName=a.name??e,o}return r.types=[],r.description=`Unknown Avro type "${e}"`,r}let a=e;if(typeof a.type!=`string`)return B(a.type,t,a.namespace??n);let o=Zi(a,n);o&&t.registry.set(o,a),a.name&&!t.registry.has(a.name)&&t.registry.set(a.name,a);let s=o?new Set(t.ancestors).add(o):t.ancestors,c=a.namespace??n;a.doc&&(r.description=a.doc);let l=a.logicalType?qi[a.logicalType]:void 0;switch(l!==void 0&&(r.format=l),a.type){case`record`:case`error`:r.types=[`object`],a.name&&(r.title=a.name);for(let e of a.fields??[]){let n=Array.isArray(e.type)&&e.type.includes(`null`),a=B(e.type,{name:e.name,path:i,required:!n,isRoot:!1,ancestors:s,registry:t.registry},c);e.doc&&(a.description=e.doc),e.default!==void 0&&e.default!==null&&(a.default=e.default),r.children.push(a)}return r;case`enum`:return r.types=[`string`],r.enum=a.symbols??[],a.name&&(r.title=a.name),r;case`array`:return r.types=[`array`],a.items!==void 0&&r.children.push(B(a.items,{name:`[]`,path:i,required:!1,isRoot:!1,ancestors:s,registry:t.registry},c)),r;case`map`:return r.types=[`object`],a.values!==void 0&&r.children.push(B(a.values,{name:`*`,path:i,required:!1,isRoot:!1,ancestors:s,registry:t.registry},c)),r;case`fixed`:return r.types=[`string`],r.format=r.format??`bytes`,a.size!==void 0&&r.constraints.push({key:`maxLength`,value:a.size}),r;default:{let e=B(a.type,t,c);return r.format&&(e.format=r.format),r.description&&(e.description=r.description),e}}}function Qi(e,t){return typeof e==`string`?e:Array.isArray(e)?`Variant ${t+1}`:e.name?e.name:typeof e.type==`string`?e.type:`Variant ${t+1}`}var $i=[`minimum`,`exclusiveMinimum`,`maximum`,`exclusiveMaximum`,`multipleOf`,`minLength`,`maxLength`,`pattern`,`minItems`,`maxItems`,`uniqueItems`,`minProperties`,`maxProperties`];function ea(e){let t=e.toLowerCase();return t.includes(`vnd.aai.asyncapi`)||t.includes(`json-schema`)||t.includes(`schema+json`)||t.includes(`schema+yaml`)}function ta(e,t){if(t.raw===void 0)return;let n=e.resolver.deref(t.raw,t.baseUrl);if(`error`in n){e.problem(`error`,n.error,t.where);return}let r=n.value,i=n.baseUrl,a=n.id,o=t.defaultFormat;if(L(r)&&typeof r.schemaFormat==`string`&&`schema`in r){o=r.schemaFormat;let n=e.resolver.deref(r.schema,i);if(`error`in n){e.problem(`error`,n.error,`${t.where}/schema`);return}r=n.value,i=n.baseUrl,a=n.id??a}return Ji(o)?Yi(r,t.name,!0)||(e.problem(`warning`,`The Avro schema at "${t.where}" could not be read as a tree; it is shown as a code block.`,t.where),na(o,r)):ea(o)?ra(e,r,{baseUrl:i,id:a??`${i}#${t.where}`,viaRef:a!==void 0,name:t.name,path:[],required:!1,isRoot:!0,ancestors:new Set,where:t.where}):na(o,r)}function na(e,t){return{kind:`raw`,schemaFormat:e,source:typeof t==`string`?t:JSON.stringify(t,null,2)}}function ra(e,t,n){let r={kind:`node`,name:n.name,path:n.path,types:[],required:n.required,constraints:[],children:[]},i=n.viaRef?z.schemaName(n.id):void 0;if(i!==void 0&&(r.refName=i),t===!0||t===void 0)return r;if(t===!1)return r.types=[`never`],r;if(!L(t))return e.problem(`warning`,`Expected a schema at "${n.where}" but found ${typeof t}; it was shown as untyped.`,n.where),r;if(n.id!==void 0&&n.ancestors.has(n.id))return r.circularRef=z.schemaName(n.id)??z.keyOf(n.id)??n.id,r.types=oa(t),r;let a=n.id===void 0?n.ancestors:new Set(n.ancestors).add(n.id),o=[];ia(e,{value:t,baseUrl:n.baseUrl,where:n.where},o,a,new Set),r.types=ca(o.map(e=>oa(e.value)))??[],la(o,`format`,e=>r.format=e),la(o,`title`,e=>r.title=e),la(o,`description`,e=>r.description=e);for(let e of o)r.enum===void 0&&Array.isArray(e.value.enum)&&(r.enum=e.value.enum),r.const===void 0&&`const`in e.value&&(r.const=e.value.const),r.default===void 0&&`default`in e.value&&(r.default=e.value.default),r.examples===void 0&&Array.isArray(e.value.examples)&&(r.examples=e.value.examples),e.value.deprecated===!0&&(r.deprecated=!0),e.value.readOnly===!0&&(r.readOnly=!0),e.value.writeOnly===!0&&(r.writeOnly=!0);r.constraints=sa(o.map(e=>e.value));let s=n.isRoot?[]:n.name===`[]`?[...n.path.slice(0,-1),`${n.path[n.path.length-1]??``}[]`]:[...n.path,n.name],c=new Set;for(let e of o)if(Array.isArray(e.value.required))for(let t of e.value.required)typeof t==`string`&&c.add(t);let l=new Map;for(let t of o){let n=t.value.properties;if(L(n))for(let[i,o]of Object.entries(n)){let n=aa(e,o,i,c.has(i),t.baseUrl,a,s,`${t.where}/properties/${i}`),u=l.get(i);u===void 0?(l.set(i,r.children.length),r.children.push(n)):r.children[u]=n}}r.types.length===0&&r.children.length>0&&(r.types=[`object`]);let u=o.find(e=>e.value.items!==void 0);if(u&&(r.types.includes(`array`)||r.types.length===0)){r.types.length===0&&(r.types=[`array`]);let t=u.value.items;Array.isArray(t)?t.forEach((t,n)=>{r.children.push(aa(e,t,`[${n}]`,!1,u.baseUrl,a,s,`${u.where}/items/${n}`))}):r.children.push(aa(e,t,`[]`,!1,u.baseUrl,a,s,`${u.where}/items`))}for(let t of o){let n=t.value.additionalProperties;L(n)&&!l.has(`*`)&&(l.set(`*`,r.children.length),r.children.push(aa(e,n,`*`,!1,t.baseUrl,a,s,`${t.where}/additionalProperties`)));let i=t.value.patternProperties;if(L(i))for(let[n,o]of Object.entries(i)){let i=`/${n}/`;l.has(i)||(l.set(i,r.children.length),r.children.push(aa(e,o,i,!1,t.baseUrl,a,s,`${t.where}/patternProperties/${n}`)))}}for(let t of o){let i=Array.isArray(t.value.oneOf)?`oneOf`:Array.isArray(t.value.anyOf)?`anyOf`:void 0;if(!i)continue;let o=t.value[i],s={kind:i,variants:[]};o.forEach((r,o)=>{let c=e.resolver.deref(r,t.baseUrl),l=`${t.where}/${i}/${o}`;if(`error`in c){e.problem(`error`,c.error,l);return}let u=ra(e,c.value,{baseUrl:c.baseUrl,id:c.id,viaRef:c.id!==void 0,name:n.name,path:n.path,required:n.required,isRoot:n.isRoot,ancestors:a,where:l}),d=(L(c.value)?R(c.value.title):void 0)??u.refName??`Variant ${o+1}`;s.variants.push({title:d,node:u})}),s.variants.length>0&&(r.composition=s);break}return r}function ia(e,t,n,r,i){n.push(t);let a=t.value.allOf;Array.isArray(a)&&a.forEach((a,o)=>{let s=`${t.where}/allOf/${o}`,c=e.resolver.deref(a,t.baseUrl);if(`error`in c){e.problem(`error`,c.error,s);return}if(!L(c.value)){c.value!==!0&&e.problem(`warning`,`Expected a schema at "${s}"; it was skipped.`,s);return}if(c.id!==void 0){if(r.has(c.id)||i.has(c.id)){e.problem(`warning`,`allOf at "${s}" refers back to a schema already being merged; it was skipped.`,s);return}i.add(c.id)}ia(e,{value:c.value,baseUrl:c.baseUrl,where:s},n,r,i)})}function aa(e,t,n,r,i,a,o,s){let c=e.resolver.deref(t,i);return`error`in c?(e.problem(`error`,c.error,s),{kind:`node`,name:n,path:o,types:[],required:r,constraints:[],children:[]}):ra(e,c.value,{baseUrl:c.baseUrl,id:c.id,viaRef:c.id!==void 0,name:n,path:o,required:r,isRoot:!1,ancestors:a,where:s})}function oa(e){let t=e.type;return typeof t==`string`?[t]:Array.isArray(t)?t.filter(e=>typeof e==`string`):L(e.properties)?[`object`]:e.items===void 0?[]:[`array`]}function sa(e){let t=[];for(let n of $i)for(let r of e){let e=r[n];if(typeof e==`number`||typeof e==`string`||typeof e==`boolean`){t.push({key:n,value:e});break}}return t}function ca(e){return e.find(e=>e.length>0)}function la(e,t,n){for(let r of e){let e=R(r.value[t]);if(e!==void 0){n(e);return}}}function ua(e,t,n){let r=e.resolver.rootUrl,i=`application/vnd.aai.asyncapi;version=${n}`,a=e.object(t.info,r,`/info`)??{value:{},baseUrl:r,id:void 0};L(t.info)||e.problem(`error`,`The document has no "info" object.`,`/info`);let o={specVersion:n,specMajor:2,title:R(a.value.title)??`Untitled API`,version:R(a.value.version)??``,tags:e.tags(t.tags,r,`/tags`),servers:[],operations:[],messages:[],schemas:[],problems:e.problems};V(o,`description`,R(a.value.description)),V(o,`termsOfService`,R(a.value.termsOfService)),V(o,`defaultContentType`,R(t.defaultContentType));let s=e.object(a.value.contact,a.baseUrl,`/info/contact`);if(s){let e={};V(e,`name`,R(s.value.name)),V(e,`url`,R(s.value.url)),V(e,`email`,R(s.value.email)),o.contact=e}let c=e.object(a.value.license,a.baseUrl,`/info/license`),l=c?R(c.value.name):void 0;c&&l!==void 0&&(o.license={name:l},V(o.license,`url`,R(c.value.url)));let u=e.externalDocs(t.externalDocs,r,`/externalDocs`);u&&(o.externalDocs=u);let d=new da(e,r,o,i,L(t.components)?t.components:{});return d.servers(t.servers),d.componentMessages(),d.channels(t.channels),d.componentSchemas(),o}var da=class{constructor(e,t,n,r,i){this.ctx=e,this.base=t,this.doc=n,this.schemaFormatDefault=r,this.components=i,this.serverIds=new Set,this.messagesById=new Map}servers(e){for(let[t,n,r]of this.ctx.entries(e,this.base,`/servers`)){let{value:e,baseUrl:i}=n,a={id:t,anchor:this.ctx.anchor(`servers`,t),protocol:R(e.protocol)??``,hostDisplay:R(e.url)??``,variables:[],security:this.security(e.security,i,`${r}/security`),tags:this.ctx.tags(e.tags,i,`${r}/tags`),bindings:this.ctx.bindings(`server`,e.bindings,i,`${r}/bindings`)};V(a,`description`,R(e.description)),V(a,`protocolVersion`,R(e.protocolVersion));for(let[t,n]of this.ctx.entries(e.variables,i,`${r}/variables`)){let e={name:t};V(e,`description`,R(n.value.description)),V(e,`default`,R(n.value.default)),Array.isArray(n.value.enum)&&(e.enum=n.value.enum.map(String)),Array.isArray(n.value.examples)&&(e.examples=n.value.examples.map(String)),a.variables.push(e)}this.doc.servers.push(a),this.serverIds.add(t)}}security(e,t,n){let r=[];return e===void 0?r:Array.isArray(e)?(e.forEach((e,t)=>{if(L(e))for(let[i,a]of Object.entries(e)){let e=this.components.securitySchemes,o=L(e)?this.ctx.object(e[i],this.base,`/components/securitySchemes/${i}`):void 0;o||this.ctx.problem(`warning`,`Security scheme "${i}" is not defined in components.securitySchemes.`,`${n}/${t}`);let s={id:i,type:o?R(o.value.type)??``:``,scopes:Array.isArray(a)?a.map(String):[]};o&&(V(s,`description`,R(o.value.description)),Object.assign(s,Ui(o.value))),r.push(s)}}),r):(this.ctx.problem(`warning`,`Expected a list at "${n}"; it was skipped.`,n),r)}componentMessages(){for(let[e,t,n]of this.ctx.entries(this.components.messages,this.base,`/components/messages`)){let r=t.id??`${this.base}#${n}`,i=this.message(e,e,t,n);this.messagesById.set(r,i),this.doc.messages.push(i)}}componentSchemas(){let e=this.components.schemas;if(e!==void 0){if(!L(e)){this.ctx.problem(`warning`,`Expected a map at "/components/schemas"; it was skipped.`,`/components/schemas`);return}for(let[t,n]of Object.entries(e)){let e=`/components/schemas/${t}`,r=ta(this.ctx,{raw:n,baseUrl:this.base,where:e,name:t,defaultFormat:this.schemaFormatDefault});r&&this.doc.schemas.push({id:t,anchor:this.ctx.anchor(`schemas`,t),schema:r})}}}channels(e){for(let[t,n,r]of this.ctx.entries(e,this.base,`/channels`)){let e=this.channel(t,n,r);n.value.publish===void 0&&n.value.subscribe===void 0&&this.ctx.problem(`warning`,`Channel "${t}" has neither publish nor subscribe, so nothing is shown for it.`,r);for(let i of[`publish`,`subscribe`]){let a=n.value[i];if(a===void 0)continue;let o=this.ctx.object(a,n.baseUrl,`${r}/${i}`);o&&this.doc.operations.push(this.operation(t,i,e,o,`${r}/${i}`))}}}channel(e,{value:t,baseUrl:n},r){let i={id:e,address:e,parameters:[],servers:[],tags:[],bindings:this.ctx.bindings(`channel`,t.bindings,n,`${r}/bindings`)};V(i,`description`,R(t.description));for(let[e,a,o]of this.ctx.entries(t.parameters,n,`${r}/parameters`))i.parameters.push(this.parameter(e,a,o));let a=t.servers;return Array.isArray(a)&&a.forEach((t,n)=>{typeof t==`string`&&this.serverIds.has(t)?i.servers.push(t):this.ctx.problem(`warning`,`Channel "${e}" lists server "${String(t)}" which is not in "servers"; it was ignored.`,`${r}/servers/${n}`)}),i}parameter(e,{value:t,baseUrl:n},r){let i={name:e};V(i,`description`,R(t.description)),V(i,`location`,R(t.location));let a=this.ctx.object(t.schema,n,`${r}/schema`);if(a){let e=a.value.type;V(i,`schemaType`,typeof e==`string`?e:Array.isArray(e)?e.map(String).join(` | `):void 0),Array.isArray(a.value.enum)&&(i.enum=a.value.enum.map(String)),V(i,`default`,R(a.value.default)),Array.isArray(a.value.examples)&&(i.examples=a.value.examples.map(String))}return i}operation(e,t,n,r,i){let a=r.baseUrl,o=this.ctx.withTraits(r.value,a,i,[`message`,`traits`]),s=t===`publish`?`receive`:`send`,c=R(o.operationId)??`${t}-${e}`,l={id:c,anchor:this.ctx.anchor(`operations`,c),heading:R(o.operationId)??`${t} ${e}`,action:s,kind:s,badgeLabel:this.ctx.options.labels[t],locationHint:`channels › ${e} › ${t}`,channel:n,tags:this.ctx.tags(o.tags,a,`${i}/tags`),messages:this.operationMessages(e,t,o.message,a,`${i}/message`),security:this.security(o.security,a,`${i}/security`),bindings:this.ctx.bindings(`operation`,o.bindings,a,`${i}/bindings`)};V(l,`summary`,R(o.summary)),V(l,`description`,R(o.description));let u=this.ctx.externalDocs(o.externalDocs,a,`${i}/externalDocs`);return u&&(l.externalDocs=u),l}operationMessages(e,t,n,r,i){let a=this.ctx.object(n,r,i);if(!a)return[];let o=a.value.oneOf;if(Array.isArray(o)){let n=[],r=0;for(let[s,c]of this.ctx.items(o,a.baseUrl,`${i}/oneOf`))n.push(this.messageFor(s,`${e}-${t}-${r}`,c)),r++;return n}return[this.messageFor(a,`${e}-${t}`,i)]}messageFor(e,t,n){let r=e.id??`${this.base}#${n}`,i=this.messagesById.get(r);if(i)return i;let a=this.message(z.keyOf(e.id)??R(e.value.name)??t,t,e,n);return this.messagesById.set(r,a),a}message(e,t,n,r){let i=n.baseUrl,a=this.ctx.withTraits(n.value,i,r,[`payload`,`traits`]),o={id:e,anchor:this.ctx.anchor(`messages`,t),contentType:R(a.contentType)??this.doc.defaultContentType??`application/json`,schemaFormat:R(a.schemaFormat)??this.schemaFormatDefault,examples:[],tags:this.ctx.tags(a.tags,i,`${r}/tags`),bindings:this.ctx.bindings(`message`,a.bindings,i,`${r}/bindings`)};V(o,`name`,R(a.name)),V(o,`title`,R(a.title)),V(o,`summary`,R(a.summary)),V(o,`description`,R(a.description));let s=this.ctx.externalDocs(a.externalDocs,i,`${r}/externalDocs`);s&&(o.externalDocs=s);let c=ta(this.ctx,{raw:a.payload,baseUrl:i,where:`${r}/payload`,name:``,defaultFormat:o.schemaFormat});c&&(o.payload=c);let l=ta(this.ctx,{raw:a.headers,baseUrl:i,where:`${r}/headers`,name:``,defaultFormat:this.schemaFormatDefault});l&&(o.headers=l);let u=this.ctx.object(a.correlationId,i,`${r}/correlationId`),d=u?R(u.value.location):void 0;if(u&&d!==void 0){let e={location:d};V(e,`description`,R(u.value.description)),o.correlationId=e}for(let[e]of this.ctx.items(a.examples,i,`${r}/examples`)){let t={};V(t,`name`,R(e.value.name)),V(t,`summary`,R(e.value.summary)),`payload`in e.value&&(t.payload=e.value.payload),`headers`in e.value&&(t.headers=e.value.headers),o.examples.push(t)}return o}};function V(e,t,n){n!==void 0&&(e[t]=n)}function fa(e,t,n){let r=e.resolver.rootUrl,i=`application/vnd.aai.asyncapi+json;version=${n}`,a=e.object(t.info,r,`/info`)??{value:{},baseUrl:r,id:void 0};L(t.info)||e.problem(`error`,`The document has no "info" object.`,`/info`);let o={specVersion:n,specMajor:3,title:R(a.value.title)??`Untitled API`,version:R(a.value.version)??``,tags:e.tags(a.value.tags,a.baseUrl,`/info/tags`),servers:[],operations:[],messages:[],schemas:[],problems:e.problems};H(o,`description`,R(a.value.description)),H(o,`termsOfService`,R(a.value.termsOfService)),H(o,`defaultContentType`,R(t.defaultContentType));let s=e.object(a.value.contact,a.baseUrl,`/info/contact`);s&&(o.contact=ha(s.value,[`name`,`url`,`email`]));let c=e.object(a.value.license,a.baseUrl,`/info/license`);if(c){let e=R(c.value.name);e!==void 0&&(o.license={name:e},H(o.license,`url`,R(c.value.url)))}let l=e.externalDocs(a.value.externalDocs,a.baseUrl,`/info/externalDocs`);l&&(o.externalDocs=l);let u=new pa(e,r,o,i);return u.servers(t.servers),u.componentMessages(t.components),u.channels(t.channels),u.operations(t.operations),u.componentSchemas(t.components),o}var pa=class{constructor(e,t,n,r){this.ctx=e,this.base=t,this.doc=n,this.schemaFormatDefault=r,this.serverIds=new Set,this.channelsByKey=new Map,this.messagesById=new Map,this.channelMessageOrder=new Map}servers(e){for(let[t,n,r]of this.ctx.entries(e,this.base,`/servers`))this.doc.servers.push(this.server(t,n,r)),this.serverIds.add(t)}server(e,{value:t,baseUrl:n},r){let i=R(t.host)??``,a=R(t.pathname)??``,o={id:e,anchor:this.ctx.anchor(`servers`,e),protocol:R(t.protocol)??``,hostDisplay:`${i}${a}`,variables:[],security:this.security(t.security,n,`${r}/security`),tags:this.ctx.tags(t.tags,n,`${r}/tags`),bindings:this.ctx.bindings(`server`,t.bindings,n,`${r}/bindings`)};H(o,`title`,R(t.title)),H(o,`summary`,R(t.summary)),H(o,`description`,R(t.description)),H(o,`protocolVersion`,R(t.protocolVersion));let s=this.ctx.externalDocs(t.externalDocs,n,`${r}/externalDocs`);s&&(o.externalDocs=s);for(let[e,i,a]of this.ctx.entries(t.variables,n,`${r}/variables`)){let t={name:e};H(t,`description`,R(i.value.description)),H(t,`default`,R(i.value.default)),Array.isArray(i.value.enum)&&(t.enum=i.value.enum.map(String)),Array.isArray(i.value.examples)&&(t.examples=i.value.examples.map(String)),o.variables.push(t)}return o}security(e,t,n){let r=[];for(let[i,a]of this.ctx.items(e,t,n)){let e={id:z.keyOf(i.id)??R(i.value.type)??`security`,type:R(i.value.type)??``,scopes:Array.isArray(i.value.scopes)?i.value.scopes.map(String):[]};H(e,`description`,R(i.value.description)),Object.assign(e,Ui(i.value)),r.push(e)}return r}componentMessages(e){if(L(e))for(let[t,n,r]of this.ctx.entries(e.messages,this.base,`/components/messages`)){let e=n.id??`${this.base}#${r}`,i=this.message(t,t,n,r);this.messagesById.set(e,i),this.doc.messages.push(i)}}componentSchemas(e){if(!L(e))return;let t=e.schemas;if(t!==void 0){if(!L(t)){this.ctx.problem(`warning`,`Expected a map at "/components/schemas"; it was skipped.`,`/components/schemas`);return}for(let[e,n]of Object.entries(t)){let t=`/components/schemas/${e}`,r=ta(this.ctx,{raw:n,baseUrl:this.base,where:t,name:e,defaultFormat:this.schemaFormatDefault});r&&this.doc.schemas.push({id:e,anchor:this.ctx.anchor(`schemas`,e),schema:r})}}}channels(e){for(let[t,n,r]of this.ctx.entries(e,this.base,`/channels`))this.channelsByKey.set(t,this.channel(t,n,r))}channel(e,{value:t,baseUrl:n},r){let i=R(t.address),a={id:e,address:i===void 0?null:i,parameters:[],servers:[],tags:this.ctx.tags(t.tags,n,`${r}/tags`),bindings:this.ctx.bindings(`channel`,t.bindings,n,`${r}/bindings`)};H(a,`title`,R(t.title)),H(a,`summary`,R(t.summary)),H(a,`description`,R(t.description));let o=this.ctx.externalDocs(t.externalDocs,n,`${r}/externalDocs`);o&&(a.externalDocs=o);for(let[e,i]of this.ctx.entries(t.parameters,n,`${r}/parameters`)){let t={name:e};H(t,`description`,R(i.value.description)),H(t,`default`,R(i.value.default)),H(t,`location`,R(i.value.location)),Array.isArray(i.value.enum)&&(t.enum=i.value.enum.map(String)),Array.isArray(i.value.examples)&&(t.examples=i.value.examples.map(String)),a.parameters.push(t)}for(let[i,o]of this.ctx.items(t.servers,n,`${r}/servers`)){let t=z.keyOf(i.id);if(t===void 0||!this.serverIds.has(t)){this.ctx.problem(`warning`,`Channel "${e}" lists a server that is not in "servers"; it was ignored.`,o);continue}a.servers.push(t)}let s=[];for(let[i,a,o]of this.ctx.entries(t.messages,n,`${r}/messages`))s.push(this.channelMessage(e,i,a,o));return this.channelMessageOrder.set(e,s),a}channelMessage(e,t,n,r){let i=n.id??`${this.base}#${r}`,a=this.messagesById.get(i);if(a)return a;let o=this.message(z.keyOf(n.id)??t,`${e}-${t}`,n,r);return this.messagesById.set(i,o),o}message(e,t,n,r){let i=n.baseUrl,a=this.ctx.withTraits(n.value,i,r,[`payload`,`traits`]),o={id:e,anchor:this.ctx.anchor(`messages`,t),contentType:R(a.contentType)??this.doc.defaultContentType??`application/json`,schemaFormat:this.schemaFormatDefault,examples:[],tags:this.ctx.tags(a.tags,i,`${r}/tags`),bindings:this.ctx.bindings(`message`,a.bindings,i,`${r}/bindings`)};H(o,`name`,R(a.name)),H(o,`title`,R(a.title)),H(o,`summary`,R(a.summary)),H(o,`description`,R(a.description));let s=this.ctx.externalDocs(a.externalDocs,i,`${r}/externalDocs`);s&&(o.externalDocs=s);let c=a.payload;L(c)&&typeof c.schemaFormat==`string`&&(o.schemaFormat=c.schemaFormat);let l=ta(this.ctx,{raw:c,baseUrl:i,where:`${r}/payload`,name:``,defaultFormat:this.schemaFormatDefault});l&&(o.payload=l);let u=ta(this.ctx,{raw:a.headers,baseUrl:i,where:`${r}/headers`,name:``,defaultFormat:this.schemaFormatDefault});u&&(o.headers=u);let d=this.ctx.object(a.correlationId,i,`${r}/correlationId`);if(d){let e=R(d.value.location);if(e!==void 0){let t={location:e};H(t,`description`,R(d.value.description)),o.correlationId=t}}for(let[e]of this.ctx.items(a.examples,i,`${r}/examples`)){let t={};H(t,`name`,R(e.value.name)),H(t,`summary`,R(e.value.summary)),`payload`in e.value&&(t.payload=e.value.payload),`headers`in e.value&&(t.headers=e.value.headers),o.examples.push(t)}return o}operations(e){for(let[t,n,r]of this.ctx.entries(e,this.base,`/operations`)){let e=this.operation(t,n,r);e&&this.doc.operations.push(e)}}operation(e,t,n){let r=t.baseUrl,i=this.ctx.withTraits(t.value,r,n,[`action`,`channel`,`messages`,`reply`,`traits`]),a=R(i.action);if(a!==`send`&&a!==`receive`){this.ctx.problem(`error`,`Operation "${e}" has action "${a??``}"; expected send or receive. It was skipped.`,`${n}/action`);return}let o=this.ctx.object(i.channel,r,`${n}/channel`),s=z.keyOf(o?.id),c=s===void 0?void 0:this.channelsByKey.get(s);if(!c){this.ctx.problem(`error`,`Operation "${e}" does not reference a channel in "channels". It was skipped.`,`${n}/channel`);return}this.channelMessagesOf(c.id).length===0&&this.ctx.problem(`warning`,`Operation "${e}" uses channel "${c.id}", which defines no messages.`,`${n}/channel`);let l=this.reply(i.reply,r,`${n}/reply`),u=l?a===`send`?`request`:`reply`:a,d=this.ctx.options.labels,f={id:e,anchor:this.ctx.anchor(`operations`,e),heading:this.ctx.options.useChannelAddressAsIdentifier?c.address??e:R(i.title)??e,action:a,kind:u,badgeLabel:d[u],locationHint:e,channel:c,tags:this.ctx.tags(i.tags,r,`${n}/tags`),messages:this.operationMessages(e,i.messages,c.id,r,`${n}/messages`),security:this.security(i.security,r,`${n}/security`),bindings:this.ctx.bindings(`operation`,i.bindings,r,`${n}/bindings`)};H(f,`summary`,R(i.summary)),H(f,`description`,R(i.description));let p=this.ctx.externalDocs(i.externalDocs,r,`${n}/externalDocs`);return p&&(f.externalDocs=p),l&&(f.reply=l),f}operationMessages(e,t,n,r,i){let a=this.channelMessagesOf(n);if(t===void 0)return a;let o=[];for(let[n,s]of this.ctx.items(t,r,i)){let t=n.id===void 0?void 0:this.messagesById.get(n.id);if(!t||!a.includes(t)){this.ctx.problem(`warning`,`Operation "${e}" lists a message that is not one of its channel's messages; it was ignored.`,s);continue}o.push(t)}return o}channelMessagesOf(e){return this.channelMessageOrder.get(e)??[]}reply(e,t,n){let r=this.ctx.object(e,t,n);if(!r)return;let i={messages:[]},a=this.ctx.object(r.value.address,r.baseUrl,`${n}/address`);a&&(H(i,`addressLocation`,R(a.value.location)),H(i,`addressDescription`,R(a.value.description)));let o=this.ctx.object(r.value.channel,r.baseUrl,`${n}/channel`),s=z.keyOf(o?.id),c=s===void 0?void 0:this.channelsByKey.get(s);o&&!c&&this.ctx.problem(`warning`,`A reply references a channel that is not in "channels"; it was ignored.`,`${n}/channel`),c&&(i.channel=c);let l=r.value.messages;if(l===void 0&&s!==void 0)i.messages=this.channelMessagesOf(s).map(ma);else for(let[e,t]of this.ctx.items(l,r.baseUrl,`${n}/messages`)){let n=e.id===void 0?void 0:this.messagesById.get(e.id);if(!n){this.ctx.problem(`warning`,`A reply lists a message that is not one of the reply channel's messages; it was ignored.`,t);continue}i.messages.push(ma(n))}return i}};function ma(e){let t={id:e.id,anchor:e.anchor};return H(t,`name`,e.name),H(t,`title`,e.title),t}function H(e,t,n){n!==void 0&&(e[t]=n)}function ha(e,t){let n={};for(let r of t){let t=R(e[r]);t!==void 0&&(n[r]=t)}return n}function ga(e){let t={...Vi,...e.options,labels:{...Vi.labels,...e.options?.labels}},n=new z(e.resolver,t);for(let t of e.problems??[])n.problems.push(t);let r=e.specMajor===3?fa(n,e.data,e.specVersion):ua(n,e.data,e.specVersion);return _a(r),r}function _a(e){let t=new Map(e.tags.filter(e=>e.description).map(e=>[e.name,e.description]));if(t.size===0)return;let n=e=>{for(let n of e){let e=t.get(n.name);n.description===void 0&&e!==void 0&&(n.description=e)}};for(let t of e.servers)n(t.tags);for(let t of e.operations){n(t.tags),n(t.channel.tags);for(let e of t.messages)n(e.tags)}for(let t of e.messages)n(t.tags)}var va={$comment:`Single source of truth for every <asyncapi-viewer> option. Names are camelCase; the element accepts each as kebab-case (send-label) and as the lowercased form browsers produce from hand-written camelCase (sendlabel). The Python extension validates against a copy of this file. Booleans accept true/false, 1/0, yes/no, on/off and a bare attribute (true); in the DOM a bare attribute reads as an empty string, so an empty boolean value also means true. Enum values match case-insensitively.`,version:1,options:[{name:`src`,type:`string`,required:!0,status:`active`,specVersions:[2,3],description:`The AsyncAPI document (JSON or YAML), as a path or URL relative to the page.`},{name:`id`,type:`string`,default:null,status:`active`,specVersions:[2,3],description:`Element id; also prefixes every anchor inside the viewer. Generated as asyncapi-viewer-N when absent.`},{name:`sidebar`,type:`boolean`,default:!1,status:`active`,specVersions:[2,3],description:`Show the navigation column; a drawer behind a menu button on narrow containers.`},{name:`info`,type:`boolean`,default:!0,status:`active`,specVersions:[2,3],description:`Show the Info section.`},{name:`servers`,type:`boolean`,default:!0,status:`active`,specVersions:[2,3],description:`Show the Servers section and the server selector.`},{name:`operations`,type:`boolean`,default:!0,status:`active`,specVersions:[2,3],description:`Show the operations.`},{name:`messages`,type:`boolean`,default:!0,status:`active`,specVersions:[2,3],description:`Show the Messages section (component messages).`},{name:`schemas`,type:`boolean`,default:!0,status:`active`,specVersions:[2,3],description:`Show the Schemas section (component schemas).`},{name:`errors`,type:`boolean`,default:!0,status:`active`,specVersions:[2,3],description:`Show the load and validation problems panel.`},{name:`showMessageExamples`,type:`boolean`,default:!1,status:`active`,specVersions:[2,3],description:`Show examples in the Messages section.`},{name:`messageExamples`,type:`boolean`,default:!0,status:`active`,specVersions:[2,3],description:`Example panels start expanded; false starts them collapsed.`},{name:`showServers`,type:`enum`,values:[`byDefault`,`bySpecTags`,`byServersTags`],default:`byDefault`,status:`active`,specVersions:[2,3],description:`Sidebar grouping for servers.`},{name:`showOperations`,type:`enum`,values:[`byDefault`,`bySpecTags`,`byOperationsTags`],default:`byDefault`,status:`active`,specVersions:[2,3],description:`Sidebar grouping for operations.`},{name:`useChannelAddressAsIdentifier`,type:`boolean`,default:!1,status:`active`,specVersions:[3],description:`AsyncAPI 3: label operations by channel address instead of title.`},{name:`publishLabel`,type:`string`,default:`PUB`,status:`active`,specVersions:[2],description:`Badge text for AsyncAPI 2 publish operations.`},{name:`subscribeLabel`,type:`string`,default:`SUB`,status:`active`,specVersions:[2],description:`Badge text for AsyncAPI 2 subscribe operations.`},{name:`sendLabel`,type:`string`,default:`SEND`,status:`active`,specVersions:[3],description:`Badge text for AsyncAPI 3 send operations.`},{name:`receiveLabel`,type:`string`,default:`RECEIVE`,status:`active`,specVersions:[3],description:`Badge text for AsyncAPI 3 receive operations.`},{name:`requestLabel`,type:`string`,default:`REQUEST`,status:`active`,specVersions:[3],description:`Badge text for AsyncAPI 3 send operations that carry a reply.`},{name:`replyLabel`,type:`string`,default:`REPLY`,status:`active`,specVersions:[3],description:`Badge text for AsyncAPI 3 receive operations that carry a reply.`},{name:`parserOptions`,type:`json`,default:{applyTraits:!0},status:`active`,specVersions:[2,3],keys:{applyTraits:`boolean`},description:`JSON object. Only applyTraits (default true) is honoured; other keys warn and are ignored.`},{name:`schemaID`,type:`string`,default:null,status:`deprecated-noop`,specVersions:[2,3],description:`Deprecated: accepted, warns once, does nothing.`},{name:`theme`,type:`enum`,values:[`auto`,`light`,`dark`],default:`auto`,status:`active`,specVersions:[2,3],description:`auto follows the host page (Material scheme, html[data-theme], prefers-color-scheme).`},{name:`themeToggle`,type:`boolean`,default:!1,status:`active`,specVersions:[2,3],description:`Show a light/dark toggle in the viewer header.`},{name:`searchKeepSections`,type:`boolean`,default:!1,status:`active`,specVersions:[2,3],description:`Keep the Info, Servers, Messages and Schemas links visible while a sidebar search query is active.`}]}.options,ya=Object.freeze(Object.fromEntries(va.filter(e=>e.status===`active`&&e.default!==null&&e.default!==void 0).map(e=>[e.name,structuredClone(e.default)]))),ba=new Set([`true`,`1`,`yes`,`on`]),xa=new Set([`false`,`0`,`no`,`off`]),Sa=new Set([`class`,`style`,`slot`,`hidden`,`title`,`lang`,`dir`,`role`,`tabindex`,`part`,`exportparts`,`translate`,`nonce`]),Ca=new Map(va.map(e=>[e.name.toLowerCase(),e]));function wa(e){return Ca.get(e.replace(/-/g,``).toLowerCase())}function Ta(e){return e.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`)}var Ea=`<asyncapi-viewer>:`;function Da(e,t=e=>console.warn(e)){let n=structuredClone(ya),r=n;for(let[n,i]of e){let e=n.toLowerCase();if(Sa.has(e)||e.startsWith(`data-`)||e.startsWith(`aria-`)||e.startsWith(`on`))continue;let a=wa(e);if(!a){t(`${Ea} unknown attribute '${n}' was ignored.`);continue}if(a.status===`deprecated-noop`){t(`${Ea} attribute '${n}' is deprecated and does nothing.`);continue}if(a.name===`src`||a.name===`id`){i!==null&&i!==``&&(r[a.name]=i);continue}let o=ka(a,n,i,t);o!==Oa&&(r[a.name]=o)}return n}var Oa=Symbol(`invalid`);function ka(e,t,n,r){switch(e.type){case`boolean`:{let e=n===null||n.trim()===``?`true`:n.trim().toLowerCase();return ba.has(e)?!0:!xa.has(e)&&(r(`${Ea} attribute '${t}' expects true or false, got '${n}'.`),Oa)}case`enum`:{let i=(n??``).trim().toLowerCase(),a=e.values?.find(e=>e.toLowerCase()===i);return a===void 0?(r(`${Ea} attribute '${t}' expects one of ${e.values?.join(`, `)}; got '${n}'.`),Oa):a}case`json`:{let i;try{i=JSON.parse(n??``)}catch(e){return r(`${Ea} attribute '${t}' is not valid JSON (${e.message}).`),Oa}if(typeof i!=`object`||!i||Array.isArray(i))return r(`${Ea} attribute '${t}' expects a JSON object, got ${JSON.stringify(i)}.`),Oa;let a=structuredClone(e.default);for(let[t,n]of Object.entries(i)){let i=e.keys?.[t];i?typeof n===i?a[t]=n:r(`${Ea} ${e.name}.${t} expects a ${i}, got ${JSON.stringify(n)}.`):r(`${Ea} ${e.name}.${t} is not supported and was ignored.`)}return a}case`string`:return n??``}}var Aa=l`
|
|
107
|
+
`)[0]:ki(e)}`}}}}return typeof t!=`object`||!t||Array.isArray(t)?{error:{kind:`not-object`,message:`The document root must be an object with an "asyncapi" field.`}}:{format:n,data:t}}function Di(e){let t=e.asyncapi;if(t===void 0)return{error:{kind:`unsupported`,message:`The document has no "asyncapi" field, so it is not an AsyncAPI document.`}};let n=String(t),r=Number(n.split(`.`)[0]);return r===2||r===3?{specVersion:n,specMajor:r}:{error:{kind:`unsupported`,message:`AsyncAPI ${n} is not supported; this viewer renders AsyncAPI 2 and 3.`}}}function Oi(e,t){return{ok:!1,url:e,error:t}}function ki(e){return e instanceof Error?e.message:String(e)}function Ai(e){return typeof e==`object`&&!!e&&typeof e.$ref==`string`}function ji(e){let t=/#\/components\/schemas\/([^/]+)$/.exec(e);return t?Ii(t[1]):void 0}var Mi=class{#e=new Map;#t=new Map;#n;constructor(e,t,n=e=>fetch(e)){this.rootUrl=zi(e),this.#e.set(this.rootUrl,t),this.#n=n}async preload(){let e=[],t=[this.rootUrl],n=new Set;for(;t.length>0;){let r=t.shift(),i=this.#e.get(r);if(i)for(let[a,o]of Pi(i)){let i=zi(Ri(a,r)),s=`${r} ${a}`;if(n.has(s)||(n.add(s),i===r||this.#e.has(i)||this.#t.has(i)))continue;let c=await this.#r(i);typeof c==`string`?(this.#t.set(i,c),e.push({severity:`error`,message:`Could not load "${i}" for $ref "${a}": ${c}`,where:o})):(this.#e.set(i,c),t.push(i))}}return e}resolve(e,t){let n=Ri(e,t),r=n.indexOf(`#`),i=r===-1?n:n.slice(0,r),a=r===-1?``:Bi(n.slice(r+1)),o=this.#e.get(i);if(!o)return{error:`Could not resolve $ref "${e}": ${this.#t.get(i)??`the document was not loaded`}.`};if(a!==``&&!a.startsWith(`/`))return{error:`Could not resolve $ref "${e}": the fragment is not a JSON pointer.`};let s=Fi(o,a);return s===Ni?{error:`Could not resolve $ref "${e}": nothing at "${a}".`}:{value:s,id:`${i}#${a}`,baseUrl:i,pointer:a}}deref(e,t){let n=e,r=t,i,a=``,o=new Set;for(;Ai(n);){let e=this.resolve(n.$ref,r);if(`error`in e)return e;if(o.has(e.id))return{error:`Circular $ref chain at "${e.id}".`};o.add(e.id),{value:n,baseUrl:r,id:i,pointer:a}=e}return{value:n,id:i,baseUrl:r,pointer:a}}get documents(){return this.#e}async#r(e){let t;try{let n=await this.#n(e);if(!n.ok)return`HTTP ${n.status}`;t=await n.text()}catch(e){return e instanceof Error?e.message:String(e)}let n=Ei(t);return`error`in n?n.error.message:n.data}},Ni=Symbol(`missing`);function Pi(e){let t=[],n=(e,r)=>{if(typeof e==`object`&&e){if(Array.isArray(e)){e.forEach((e,t)=>n(e,`${r}/${t}`));return}for(let[i,a]of Object.entries(e))i===`$ref`&&typeof a==`string`?t.push([a,r]):n(a,`${r}/${Li(i)}`)}};return n(e,``),t}function Fi(e,t){if(t===``)return e;let n=e;for(let e of t.slice(1).split(`/`)){let t=Ii(e);if(Array.isArray(n)){let e=/^\d+$/.test(t)?Number(t):-1;if(e<0||e>=n.length)return Ni;n=n[e]}else if(typeof n==`object`&&n&&Object.prototype.hasOwnProperty.call(n,t))n=n[t];else return Ni}return n}function Ii(e){return e.replace(/~1/g,`/`).replace(/~0/g,`~`)}function Li(e){return e.replace(/~/g,`~0`).replace(/\//g,`~1`)}function Ri(e,t){if(e.startsWith(`#`))return`${zi(t)}${e}`;try{return new URL(e,t).href}catch{return e}}function zi(e){let t=e.indexOf(`#`);return t===-1?e:e.slice(0,t)}function Bi(e){try{return decodeURIComponent(e)}catch{return e}}var Vi={labels:{publish:`PUB`,subscribe:`SUB`,send:`SEND`,receive:`RECEIVE`,request:`REQUEST`,reply:`REPLY`},useChannelAddressAsIdentifier:!1,applyTraits:!0};function L(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function R(e){return typeof e==`string`?e:typeof e==`number`||typeof e==`boolean`?String(e):void 0}var z=class{#e;constructor(e,t){this.resolver=e,this.options=t,this.problems=[],this.#e=new Map}problem(e,t,n){this.problems.push({severity:e,message:t,where:n})}object(e,t,n){if(e===void 0)return;let r=this.resolver.deref(e,t);if(`error`in r){this.problem(`error`,r.error,n);return}if(!L(r.value)){this.problem(`warning`,`Expected an object at "${n}" but found ${Hi(r.value)}; it was skipped.`,n);return}return{value:r.value,baseUrl:r.baseUrl,id:r.id}}*entries(e,t,n){if(e!==void 0){if(!L(e)){this.problem(`warning`,`Expected a map at "${n}"; it was skipped.`,n);return}for(let[r,i]of Object.entries(e)){let e=`${n}/${r.replace(/~/g,`~0`).replace(/\//g,`~1`)}`,a=this.object(i,t,e);a&&(yield[r,a,e])}}}*items(e,t,n){if(e!==void 0){if(!Array.isArray(e)){this.problem(`warning`,`Expected a list at "${n}"; it was skipped.`,n);return}for(let r=0;r<e.length;r++){let i=`${n}/${r}`,a=this.object(e[r],t,i);a&&(yield[a,i])}}}anchor(e,t){let n=this.#e.get(e)??new Set;this.#e.set(e,n);let r=Gi(t),i=r;for(let e=2;n.has(i);e++)i=`${r}-${e}`;return n.add(i),i}tags(e,t,n){let r=[];for(let[{value:i,baseUrl:a},o]of this.items(e,t,n)){let e=R(i.name);if(e===void 0){this.problem(`warning`,`A tag without a name at "${o}" was skipped.`,o);continue}let t={name:e},n=R(i.description);n!==void 0&&(t.description=n);let s=this.externalDocs(i.externalDocs,a,`${o}/externalDocs`);s&&(t.externalDocs=s),r.push(t)}return r}externalDocs(e,t,n){let r=this.object(e,t,n);if(!r)return;let i=R(r.value.url);if(i===void 0){this.problem(`warning`,`externalDocs without a url at "${n}" was skipped.`,n);return}let a={url:i},o=R(r.value.description);return o!==void 0&&(a.description=o),a}bindings(e,t,n,r){let i=[],a=this.object(t,n,r);if(!a)return i;for(let[t,n,o]of this.entries(a.value,a.baseUrl,r))for(let[r,a]of Object.entries(n.value))i.push({scope:e,protocol:t,key:r,value:a});return i}withTraits(e,t,n,r){let i=e.traits;if(!this.options.applyTraits||i===void 0)return e;let a={...e};delete a.traits;for(let[e,o]of this.items(i,t,`${n}/traits`)){let t={...e.value};for(let e of r)e in t&&(this.problem(`warning`,`A trait must not define "${e}"; that field of the trait at "${o}" was ignored.`,o),delete t[e]);a=Wi(t,a)}return a}static keyOf(e){if(e===void 0)return;let t=e.slice(e.indexOf(`#`)+1).split(`/`).pop();return t===void 0||t===``?void 0:t.replace(/~1/g,`/`).replace(/~0/g,`~`)}static schemaName(e){return e===void 0?void 0:ji(e)}};function Hi(e){return e===null?`null`:Array.isArray(e)?`a list`:typeof e==`object`?`an object`:`a ${typeof e}`}function Ui(e){let t={},n=[],r=(t,r)=>{let i=R(e[r]);i!==void 0&&n.push({label:t,value:i})};switch(R(e.type)){case`apiKey`:r(`in`,`in`);break;case`httpApiKey`:r(`name`,`name`),r(`in`,`in`);break;case`http`:r(`scheme`,`scheme`),r(`bearer format`,`bearerFormat`);break;case`openIdConnect`:{let n=R(e.openIdConnectUrl);n!==void 0&&(t.openIdConnectUrl=n);break}case`oauth2`:{let n=e.flows;if(L(n)){let e=[];for(let[t,r]of Object.entries(n)){if(!L(r))continue;let n={kind:t,scopes:[]},i=R(r.authorizationUrl),a=R(r.tokenUrl),o=R(r.refreshUrl);i!==void 0&&(n.authorizationUrl=i),a!==void 0&&(n.tokenUrl=a),o!==void 0&&(n.refreshUrl=o);let s=r.availableScopes??r.scopes;if(L(s))for(let[e,t]of Object.entries(s))n.scopes.push({name:e,description:typeof t==`string`?t:``});e.push(n)}e.length>0&&(t.flows=e)}break}}n.length>0&&(t.facts=n);let i=Object.entries(e).filter(([e])=>e.startsWith(`x-`)).map(([e,t])=>({key:e,value:t}));return i.length>0&&(t.extensions=i),t}function Wi(e,t){let n={...e};for(let[e,r]of Object.entries(t)){let t=n[e];n[e]=L(t)&&L(r)&&!(`$ref`in r)&&!(`$ref`in t)?Wi(t,r):r}return n}function Gi(e){return e.replace(/[^A-Za-z0-9_.]+/g,`-`).replace(/^-+|-+$/g,``)||`item`}var Ki={null:`null`,boolean:`boolean`,int:`integer`,long:`integer`,float:`number`,double:`number`,bytes:`string`,string:`string`},qi={"timestamp-millis":`date-time`,"timestamp-micros":`date-time`,"local-timestamp-millis":`date-time`,"local-timestamp-micros":`date-time`,date:`date`,"time-millis":`time`,"time-micros":`time`,uuid:`uuid`,decimal:`decimal`,duration:`duration`};function Ji(e){return e.toLowerCase().includes(`avro`)}function Yi(e,t,n){if(Xi(e))return B(e,{name:t,path:[],required:!1,isRoot:n,ancestors:new Set,registry:new Map})}function Xi(e){return typeof e==`string`||Array.isArray(e)||typeof e==`object`&&!!e&&`type`in e}function Zi(e,t){if(!e.name)return;if(e.name.includes(`.`))return e.name;let n=e.namespace??t;return n?`${n}.${e.name}`:e.name}function B(e,t,n){let r={kind:`node`,name:t.name,path:t.path,types:[],required:t.required,constraints:[],children:[]},i=t.isRoot?[]:t.name===`[]`?[...t.path.slice(0,-1),`${t.path[t.path.length-1]??``}[]`]:[...t.path,t.name];if(Array.isArray(e)){let i=e.filter(e=>e!==`null`),a=i.length!==e.length;if(i.length===1){let e=B(i[0],t,n);return a&&!e.types.includes(`null`)&&(e.types=[...e.types,`null`]),e}return r.types=a?[`null`]:[],r.composition={kind:`oneOf`,variants:i.map((e,r)=>({title:Qi(e,r),node:B(e,t,n)}))},r}if(typeof e==`string`){let i=Ki[e];if(i!==void 0)return r.types=[i],e===`bytes`&&(r.format=`bytes`),r;let a=t.registry.get(e)??t.registry.get(n?`${n}.${e}`:e);if(a){let i=Zi(a,n)??e;if(t.ancestors.has(i))return r.types=[a.type===`record`?`object`:`string`],r.circularRef=a.name??e,r.refName=a.name??e,r;let o=B(a,t,n);return o.refName=a.name??e,o}return r.types=[],r.description=`Unknown Avro type "${e}"`,r}let a=e;if(typeof a.type!=`string`)return B(a.type,t,a.namespace??n);let o=Zi(a,n);o&&t.registry.set(o,a),a.name&&!t.registry.has(a.name)&&t.registry.set(a.name,a);let s=o?new Set(t.ancestors).add(o):t.ancestors,c=a.namespace??n;a.doc&&(r.description=a.doc);let l=a.logicalType?qi[a.logicalType]:void 0;switch(l!==void 0&&(r.format=l),a.type){case`record`:case`error`:r.types=[`object`],a.name&&(r.title=a.name);for(let e of a.fields??[]){let n=Array.isArray(e.type)&&e.type.includes(`null`),a=B(e.type,{name:e.name,path:i,required:!n,isRoot:!1,ancestors:s,registry:t.registry},c);e.doc&&(a.description=e.doc),e.default!==void 0&&e.default!==null&&(a.default=e.default),r.children.push(a)}return r;case`enum`:return r.types=[`string`],r.enum=a.symbols??[],a.name&&(r.title=a.name),r;case`array`:return r.types=[`array`],a.items!==void 0&&r.children.push(B(a.items,{name:`[]`,path:i,required:!1,isRoot:!1,ancestors:s,registry:t.registry},c)),r;case`map`:return r.types=[`object`],a.values!==void 0&&r.children.push(B(a.values,{name:`*`,path:i,required:!1,isRoot:!1,ancestors:s,registry:t.registry},c)),r;case`fixed`:return r.types=[`string`],r.format=r.format??`bytes`,a.size!==void 0&&r.constraints.push({key:`maxLength`,value:a.size}),r;default:{let e=B(a.type,t,c);return r.format&&(e.format=r.format),r.description&&(e.description=r.description),e}}}function Qi(e,t){return typeof e==`string`?e:Array.isArray(e)?`Variant ${t+1}`:e.name?e.name:typeof e.type==`string`?e.type:`Variant ${t+1}`}var $i=[`minimum`,`exclusiveMinimum`,`maximum`,`exclusiveMaximum`,`multipleOf`,`minLength`,`maxLength`,`pattern`,`minItems`,`maxItems`,`uniqueItems`,`minProperties`,`maxProperties`];function ea(e){let t=e.toLowerCase();return t.includes(`vnd.aai.asyncapi`)||t.includes(`json-schema`)||t.includes(`schema+json`)||t.includes(`schema+yaml`)}function ta(e,t){if(t.raw===void 0)return;let n=e.resolver.deref(t.raw,t.baseUrl);if(`error`in n){e.problem(`error`,n.error,t.where);return}let r=n.value,i=n.baseUrl,a=n.id,o=t.defaultFormat;if(L(r)&&typeof r.schemaFormat==`string`&&`schema`in r){o=r.schemaFormat;let n=e.resolver.deref(r.schema,i);if(`error`in n){e.problem(`error`,n.error,`${t.where}/schema`);return}r=n.value,i=n.baseUrl,a=n.id??a}return Ji(o)?Yi(r,t.name,!0)||(e.problem(`warning`,`The Avro schema at "${t.where}" could not be read as a tree; it is shown as a code block.`,t.where),na(o,r)):ea(o)?ra(e,r,{baseUrl:i,id:a??`${i}#${t.where}`,viaRef:a!==void 0,name:t.name,path:[],required:!1,isRoot:!0,ancestors:new Set,where:t.where}):na(o,r)}function na(e,t){return{kind:`raw`,schemaFormat:e,source:typeof t==`string`?t:JSON.stringify(t,null,2)}}function ra(e,t,n){let r={kind:`node`,name:n.name,path:n.path,types:[],required:n.required,constraints:[],children:[]},i=n.viaRef?z.schemaName(n.id):void 0;if(i!==void 0&&(r.refName=i),t===!0||t===void 0)return r;if(t===!1)return r.types=[`never`],r;if(!L(t))return e.problem(`warning`,`Expected a schema at "${n.where}" but found ${typeof t}; it was shown as untyped.`,n.where),r;if(n.id!==void 0&&n.ancestors.has(n.id))return r.circularRef=z.schemaName(n.id)??z.keyOf(n.id)??n.id,r.types=oa(t),r;let a=n.id===void 0?n.ancestors:new Set(n.ancestors).add(n.id),o=[];ia(e,{value:t,baseUrl:n.baseUrl,where:n.where},o,a,new Set),r.types=ca(o.map(e=>oa(e.value)))??[],la(o,`format`,e=>r.format=e),la(o,`title`,e=>r.title=e),la(o,`description`,e=>r.description=e);for(let e of o)r.enum===void 0&&Array.isArray(e.value.enum)&&(r.enum=e.value.enum),r.const===void 0&&`const`in e.value&&(r.const=e.value.const),r.default===void 0&&`default`in e.value&&(r.default=e.value.default),r.examples===void 0&&Array.isArray(e.value.examples)&&(r.examples=e.value.examples),e.value.deprecated===!0&&(r.deprecated=!0),e.value.readOnly===!0&&(r.readOnly=!0),e.value.writeOnly===!0&&(r.writeOnly=!0);r.constraints=sa(o.map(e=>e.value));let s=n.isRoot?[]:n.name===`[]`?[...n.path.slice(0,-1),`${n.path[n.path.length-1]??``}[]`]:[...n.path,n.name],c=new Set;for(let e of o)if(Array.isArray(e.value.required))for(let t of e.value.required)typeof t==`string`&&c.add(t);let l=new Map;for(let t of o){let n=t.value.properties;if(L(n))for(let[i,o]of Object.entries(n)){let n=aa(e,o,i,c.has(i),t.baseUrl,a,s,`${t.where}/properties/${i}`),u=l.get(i);u===void 0?(l.set(i,r.children.length),r.children.push(n)):r.children[u]=n}}r.types.length===0&&r.children.length>0&&(r.types=[`object`]);let u=o.find(e=>e.value.items!==void 0);if(u&&(r.types.includes(`array`)||r.types.length===0)){r.types.length===0&&(r.types=[`array`]);let t=u.value.items;Array.isArray(t)?t.forEach((t,n)=>{r.children.push(aa(e,t,`[${n}]`,!1,u.baseUrl,a,s,`${u.where}/items/${n}`))}):r.children.push(aa(e,t,`[]`,!1,u.baseUrl,a,s,`${u.where}/items`))}for(let t of o){let n=t.value.additionalProperties;L(n)&&!l.has(`*`)&&(l.set(`*`,r.children.length),r.children.push(aa(e,n,`*`,!1,t.baseUrl,a,s,`${t.where}/additionalProperties`)));let i=t.value.patternProperties;if(L(i))for(let[n,o]of Object.entries(i)){let i=`/${n}/`;l.has(i)||(l.set(i,r.children.length),r.children.push(aa(e,o,i,!1,t.baseUrl,a,s,`${t.where}/patternProperties/${n}`)))}}for(let t of o){let i=Array.isArray(t.value.oneOf)?`oneOf`:Array.isArray(t.value.anyOf)?`anyOf`:void 0;if(!i)continue;let o=t.value[i],s={kind:i,variants:[]};o.forEach((r,o)=>{let c=e.resolver.deref(r,t.baseUrl),l=`${t.where}/${i}/${o}`;if(`error`in c){e.problem(`error`,c.error,l);return}let u=ra(e,c.value,{baseUrl:c.baseUrl,id:c.id,viaRef:c.id!==void 0,name:n.name,path:n.path,required:n.required,isRoot:n.isRoot,ancestors:a,where:l}),d=(L(c.value)?R(c.value.title):void 0)??u.refName??`Variant ${o+1}`;s.variants.push({title:d,node:u})}),s.variants.length>0&&(r.composition=s);break}return r}function ia(e,t,n,r,i){n.push(t);let a=t.value.allOf;Array.isArray(a)&&a.forEach((a,o)=>{let s=`${t.where}/allOf/${o}`,c=e.resolver.deref(a,t.baseUrl);if(`error`in c){e.problem(`error`,c.error,s);return}if(!L(c.value)){c.value!==!0&&e.problem(`warning`,`Expected a schema at "${s}"; it was skipped.`,s);return}if(c.id!==void 0){if(r.has(c.id)||i.has(c.id)){e.problem(`warning`,`allOf at "${s}" refers back to a schema already being merged; it was skipped.`,s);return}i.add(c.id)}ia(e,{value:c.value,baseUrl:c.baseUrl,where:s},n,r,i)})}function aa(e,t,n,r,i,a,o,s){let c=e.resolver.deref(t,i);return`error`in c?(e.problem(`error`,c.error,s),{kind:`node`,name:n,path:o,types:[],required:r,constraints:[],children:[]}):ra(e,c.value,{baseUrl:c.baseUrl,id:c.id,viaRef:c.id!==void 0,name:n,path:o,required:r,isRoot:!1,ancestors:a,where:s})}function oa(e){let t=e.type;return typeof t==`string`?[t]:Array.isArray(t)?t.filter(e=>typeof e==`string`):L(e.properties)?[`object`]:e.items===void 0?[]:[`array`]}function sa(e){let t=[];for(let n of $i)for(let r of e){let e=r[n];if(typeof e==`number`||typeof e==`string`||typeof e==`boolean`){t.push({key:n,value:e});break}}return t}function ca(e){return e.find(e=>e.length>0)}function la(e,t,n){for(let r of e){let e=R(r.value[t]);if(e!==void 0){n(e);return}}}function ua(e,t,n){let r=e.resolver.rootUrl,i=`application/vnd.aai.asyncapi;version=${n}`,a=e.object(t.info,r,`/info`)??{value:{},baseUrl:r,id:void 0};L(t.info)||e.problem(`error`,`The document has no "info" object.`,`/info`);let o={specVersion:n,specMajor:2,title:R(a.value.title)??`Untitled API`,version:R(a.value.version)??``,tags:e.tags(t.tags,r,`/tags`),servers:[],operations:[],messages:[],schemas:[],problems:e.problems};V(o,`description`,R(a.value.description)),V(o,`termsOfService`,R(a.value.termsOfService)),V(o,`defaultContentType`,R(t.defaultContentType));let s=e.object(a.value.contact,a.baseUrl,`/info/contact`);if(s){let e={};V(e,`name`,R(s.value.name)),V(e,`url`,R(s.value.url)),V(e,`email`,R(s.value.email)),o.contact=e}let c=e.object(a.value.license,a.baseUrl,`/info/license`),l=c?R(c.value.name):void 0;c&&l!==void 0&&(o.license={name:l},V(o.license,`url`,R(c.value.url)));let u=e.externalDocs(t.externalDocs,r,`/externalDocs`);u&&(o.externalDocs=u);let d=new da(e,r,o,i,L(t.components)?t.components:{});return d.servers(t.servers),d.componentMessages(),d.channels(t.channels),d.componentSchemas(),o}var da=class{constructor(e,t,n,r,i){this.ctx=e,this.base=t,this.doc=n,this.schemaFormatDefault=r,this.components=i,this.serverIds=new Set,this.messagesById=new Map}servers(e){for(let[t,n,r]of this.ctx.entries(e,this.base,`/servers`)){let{value:e,baseUrl:i}=n,a={id:t,anchor:this.ctx.anchor(`servers`,t),protocol:R(e.protocol)??``,hostDisplay:R(e.url)??``,variables:[],security:this.security(e.security,i,`${r}/security`),tags:this.ctx.tags(e.tags,i,`${r}/tags`),bindings:this.ctx.bindings(`server`,e.bindings,i,`${r}/bindings`)};V(a,`description`,R(e.description)),V(a,`protocolVersion`,R(e.protocolVersion));for(let[t,n]of this.ctx.entries(e.variables,i,`${r}/variables`)){let e={name:t};V(e,`description`,R(n.value.description)),V(e,`default`,R(n.value.default)),Array.isArray(n.value.enum)&&(e.enum=n.value.enum.map(String)),Array.isArray(n.value.examples)&&(e.examples=n.value.examples.map(String)),a.variables.push(e)}this.doc.servers.push(a),this.serverIds.add(t)}}security(e,t,n){let r=[];return e===void 0?r:Array.isArray(e)?(e.forEach((e,t)=>{if(L(e))for(let[i,a]of Object.entries(e)){let e=this.components.securitySchemes,o=L(e)?this.ctx.object(e[i],this.base,`/components/securitySchemes/${i}`):void 0;o||this.ctx.problem(`warning`,`Security scheme "${i}" is not defined in components.securitySchemes.`,`${n}/${t}`);let s={id:i,type:o?R(o.value.type)??``:``,scopes:Array.isArray(a)?a.map(String):[]};o&&(V(s,`description`,R(o.value.description)),Object.assign(s,Ui(o.value))),r.push(s)}}),r):(this.ctx.problem(`warning`,`Expected a list at "${n}"; it was skipped.`,n),r)}componentMessages(){for(let[e,t,n]of this.ctx.entries(this.components.messages,this.base,`/components/messages`)){let r=t.id??`${this.base}#${n}`,i=this.message(e,e,t,n);this.messagesById.set(r,i),this.doc.messages.push(i)}}componentSchemas(){let e=this.components.schemas;if(e!==void 0){if(!L(e)){this.ctx.problem(`warning`,`Expected a map at "/components/schemas"; it was skipped.`,`/components/schemas`);return}for(let[t,n]of Object.entries(e)){let e=`/components/schemas/${t}`,r=ta(this.ctx,{raw:n,baseUrl:this.base,where:e,name:t,defaultFormat:this.schemaFormatDefault});r&&this.doc.schemas.push({id:t,anchor:this.ctx.anchor(`schemas`,t),schema:r})}}}channels(e){for(let[t,n,r]of this.ctx.entries(e,this.base,`/channels`)){let e=this.channel(t,n,r);n.value.publish===void 0&&n.value.subscribe===void 0&&this.ctx.problem(`warning`,`Channel "${t}" has neither publish nor subscribe, so nothing is shown for it.`,r);for(let i of[`publish`,`subscribe`]){let a=n.value[i];if(a===void 0)continue;let o=this.ctx.object(a,n.baseUrl,`${r}/${i}`);o&&this.doc.operations.push(this.operation(t,i,e,o,`${r}/${i}`))}}}channel(e,{value:t,baseUrl:n},r){let i={id:e,address:e,parameters:[],servers:[],tags:[],bindings:this.ctx.bindings(`channel`,t.bindings,n,`${r}/bindings`)};V(i,`description`,R(t.description));for(let[e,a,o]of this.ctx.entries(t.parameters,n,`${r}/parameters`))i.parameters.push(this.parameter(e,a,o));let a=t.servers;return Array.isArray(a)&&a.forEach((t,n)=>{typeof t==`string`&&this.serverIds.has(t)?i.servers.push(t):this.ctx.problem(`warning`,`Channel "${e}" lists server "${String(t)}" which is not in "servers"; it was ignored.`,`${r}/servers/${n}`)}),i}parameter(e,{value:t,baseUrl:n},r){let i={name:e};V(i,`description`,R(t.description)),V(i,`location`,R(t.location));let a=this.ctx.object(t.schema,n,`${r}/schema`);if(a){let e=a.value.type;V(i,`schemaType`,typeof e==`string`?e:Array.isArray(e)?e.map(String).join(` | `):void 0),Array.isArray(a.value.enum)&&(i.enum=a.value.enum.map(String)),V(i,`default`,R(a.value.default)),Array.isArray(a.value.examples)&&(i.examples=a.value.examples.map(String))}return i}operation(e,t,n,r,i){let a=r.baseUrl,o=this.ctx.withTraits(r.value,a,i,[`message`,`traits`]),s=t===`publish`?`receive`:`send`,c=R(o.operationId)??`${t}-${e}`,l={id:c,anchor:this.ctx.anchor(`operations`,c),heading:R(o.operationId)??`${t} ${e}`,action:s,kind:s,badgeLabel:this.ctx.options.labels[t],locationHint:`channels › ${e} › ${t}`,channel:n,tags:this.ctx.tags(o.tags,a,`${i}/tags`),messages:this.operationMessages(e,t,o.message,a,`${i}/message`),security:this.security(o.security,a,`${i}/security`),bindings:this.ctx.bindings(`operation`,o.bindings,a,`${i}/bindings`)};V(l,`summary`,R(o.summary)),V(l,`description`,R(o.description));let u=this.ctx.externalDocs(o.externalDocs,a,`${i}/externalDocs`);return u&&(l.externalDocs=u),l}operationMessages(e,t,n,r,i){let a=this.ctx.object(n,r,i);if(!a)return[];let o=a.value.oneOf;if(Array.isArray(o)){let n=[],r=0;for(let[s,c]of this.ctx.items(o,a.baseUrl,`${i}/oneOf`))n.push(this.messageFor(s,`${e}-${t}-${r}`,c)),r++;return n}return[this.messageFor(a,`${e}-${t}`,i)]}messageFor(e,t,n){let r=e.id??`${this.base}#${n}`,i=this.messagesById.get(r);if(i)return i;let a=this.message(z.keyOf(e.id)??R(e.value.name)??t,t,e,n);return this.messagesById.set(r,a),a}message(e,t,n,r){let i=n.baseUrl,a=this.ctx.withTraits(n.value,i,r,[`payload`,`traits`]),o={id:e,anchor:this.ctx.anchor(`messages`,t),contentType:R(a.contentType)??this.doc.defaultContentType??`application/json`,schemaFormat:R(a.schemaFormat)??this.schemaFormatDefault,examples:[],tags:this.ctx.tags(a.tags,i,`${r}/tags`),bindings:this.ctx.bindings(`message`,a.bindings,i,`${r}/bindings`)};V(o,`name`,R(a.name)),V(o,`title`,R(a.title)),V(o,`summary`,R(a.summary)),V(o,`description`,R(a.description));let s=this.ctx.externalDocs(a.externalDocs,i,`${r}/externalDocs`);s&&(o.externalDocs=s);let c=ta(this.ctx,{raw:a.payload,baseUrl:i,where:`${r}/payload`,name:``,defaultFormat:o.schemaFormat});c&&(o.payload=c);let l=ta(this.ctx,{raw:a.headers,baseUrl:i,where:`${r}/headers`,name:``,defaultFormat:this.schemaFormatDefault});l&&(o.headers=l);let u=this.ctx.object(a.correlationId,i,`${r}/correlationId`),d=u?R(u.value.location):void 0;if(u&&d!==void 0){let e={location:d};V(e,`description`,R(u.value.description)),o.correlationId=e}for(let[e]of this.ctx.items(a.examples,i,`${r}/examples`)){let t={};V(t,`name`,R(e.value.name)),V(t,`summary`,R(e.value.summary)),`payload`in e.value&&(t.payload=e.value.payload),`headers`in e.value&&(t.headers=e.value.headers),o.examples.push(t)}return o}};function V(e,t,n){n!==void 0&&(e[t]=n)}function fa(e,t,n){let r=e.resolver.rootUrl,i=`application/vnd.aai.asyncapi+json;version=${n}`,a=e.object(t.info,r,`/info`)??{value:{},baseUrl:r,id:void 0};L(t.info)||e.problem(`error`,`The document has no "info" object.`,`/info`);let o={specVersion:n,specMajor:3,title:R(a.value.title)??`Untitled API`,version:R(a.value.version)??``,tags:e.tags(a.value.tags,a.baseUrl,`/info/tags`),servers:[],operations:[],messages:[],schemas:[],problems:e.problems};H(o,`description`,R(a.value.description)),H(o,`termsOfService`,R(a.value.termsOfService)),H(o,`defaultContentType`,R(t.defaultContentType));let s=e.object(a.value.contact,a.baseUrl,`/info/contact`);s&&(o.contact=ha(s.value,[`name`,`url`,`email`]));let c=e.object(a.value.license,a.baseUrl,`/info/license`);if(c){let e=R(c.value.name);e!==void 0&&(o.license={name:e},H(o.license,`url`,R(c.value.url)))}let l=e.externalDocs(a.value.externalDocs,a.baseUrl,`/info/externalDocs`);l&&(o.externalDocs=l);let u=new pa(e,r,o,i);return u.servers(t.servers),u.componentMessages(t.components),u.channels(t.channels),u.operations(t.operations),u.componentSchemas(t.components),o}var pa=class{constructor(e,t,n,r){this.ctx=e,this.base=t,this.doc=n,this.schemaFormatDefault=r,this.serverIds=new Set,this.channelsByKey=new Map,this.messagesById=new Map,this.channelMessageOrder=new Map}servers(e){for(let[t,n,r]of this.ctx.entries(e,this.base,`/servers`))this.doc.servers.push(this.server(t,n,r)),this.serverIds.add(t)}server(e,{value:t,baseUrl:n},r){let i=R(t.host)??``,a=R(t.pathname)??``,o={id:e,anchor:this.ctx.anchor(`servers`,e),protocol:R(t.protocol)??``,hostDisplay:`${i}${a}`,variables:[],security:this.security(t.security,n,`${r}/security`),tags:this.ctx.tags(t.tags,n,`${r}/tags`),bindings:this.ctx.bindings(`server`,t.bindings,n,`${r}/bindings`)};H(o,`title`,R(t.title)),H(o,`summary`,R(t.summary)),H(o,`description`,R(t.description)),H(o,`protocolVersion`,R(t.protocolVersion));let s=this.ctx.externalDocs(t.externalDocs,n,`${r}/externalDocs`);s&&(o.externalDocs=s);for(let[e,i,a]of this.ctx.entries(t.variables,n,`${r}/variables`)){let t={name:e};H(t,`description`,R(i.value.description)),H(t,`default`,R(i.value.default)),Array.isArray(i.value.enum)&&(t.enum=i.value.enum.map(String)),Array.isArray(i.value.examples)&&(t.examples=i.value.examples.map(String)),o.variables.push(t)}return o}security(e,t,n){let r=[];for(let[i,a]of this.ctx.items(e,t,n)){let e={id:z.keyOf(i.id)??R(i.value.type)??`security`,type:R(i.value.type)??``,scopes:Array.isArray(i.value.scopes)?i.value.scopes.map(String):[]};H(e,`description`,R(i.value.description)),Object.assign(e,Ui(i.value)),r.push(e)}return r}componentMessages(e){if(L(e))for(let[t,n,r]of this.ctx.entries(e.messages,this.base,`/components/messages`)){let e=n.id??`${this.base}#${r}`,i=this.message(t,t,n,r);this.messagesById.set(e,i),this.doc.messages.push(i)}}componentSchemas(e){if(!L(e))return;let t=e.schemas;if(t!==void 0){if(!L(t)){this.ctx.problem(`warning`,`Expected a map at "/components/schemas"; it was skipped.`,`/components/schemas`);return}for(let[e,n]of Object.entries(t)){let t=`/components/schemas/${e}`,r=ta(this.ctx,{raw:n,baseUrl:this.base,where:t,name:e,defaultFormat:this.schemaFormatDefault});r&&this.doc.schemas.push({id:e,anchor:this.ctx.anchor(`schemas`,e),schema:r})}}}channels(e){for(let[t,n,r]of this.ctx.entries(e,this.base,`/channels`))this.channelsByKey.set(t,this.channel(t,n,r))}channel(e,{value:t,baseUrl:n},r){let i=R(t.address),a={id:e,address:i===void 0?null:i,parameters:[],servers:[],tags:this.ctx.tags(t.tags,n,`${r}/tags`),bindings:this.ctx.bindings(`channel`,t.bindings,n,`${r}/bindings`)};H(a,`title`,R(t.title)),H(a,`summary`,R(t.summary)),H(a,`description`,R(t.description));let o=this.ctx.externalDocs(t.externalDocs,n,`${r}/externalDocs`);o&&(a.externalDocs=o);for(let[e,i]of this.ctx.entries(t.parameters,n,`${r}/parameters`)){let t={name:e};H(t,`description`,R(i.value.description)),H(t,`default`,R(i.value.default)),H(t,`location`,R(i.value.location)),Array.isArray(i.value.enum)&&(t.enum=i.value.enum.map(String)),Array.isArray(i.value.examples)&&(t.examples=i.value.examples.map(String)),a.parameters.push(t)}for(let[i,o]of this.ctx.items(t.servers,n,`${r}/servers`)){let t=z.keyOf(i.id);if(t===void 0||!this.serverIds.has(t)){this.ctx.problem(`warning`,`Channel "${e}" lists a server that is not in "servers"; it was ignored.`,o);continue}a.servers.push(t)}let s=[];for(let[i,a,o]of this.ctx.entries(t.messages,n,`${r}/messages`))s.push(this.channelMessage(e,i,a,o));return this.channelMessageOrder.set(e,s),a}channelMessage(e,t,n,r){let i=n.id??`${this.base}#${r}`,a=this.messagesById.get(i);if(a)return a;let o=this.message(z.keyOf(n.id)??t,`${e}-${t}`,n,r);return this.messagesById.set(i,o),o}message(e,t,n,r){let i=n.baseUrl,a=this.ctx.withTraits(n.value,i,r,[`payload`,`traits`]),o={id:e,anchor:this.ctx.anchor(`messages`,t),contentType:R(a.contentType)??this.doc.defaultContentType??`application/json`,schemaFormat:this.schemaFormatDefault,examples:[],tags:this.ctx.tags(a.tags,i,`${r}/tags`),bindings:this.ctx.bindings(`message`,a.bindings,i,`${r}/bindings`)};H(o,`name`,R(a.name)),H(o,`title`,R(a.title)),H(o,`summary`,R(a.summary)),H(o,`description`,R(a.description));let s=this.ctx.externalDocs(a.externalDocs,i,`${r}/externalDocs`);s&&(o.externalDocs=s);let c=a.payload;L(c)&&typeof c.schemaFormat==`string`&&(o.schemaFormat=c.schemaFormat);let l=ta(this.ctx,{raw:c,baseUrl:i,where:`${r}/payload`,name:``,defaultFormat:this.schemaFormatDefault});l&&(o.payload=l);let u=ta(this.ctx,{raw:a.headers,baseUrl:i,where:`${r}/headers`,name:``,defaultFormat:this.schemaFormatDefault});u&&(o.headers=u);let d=this.ctx.object(a.correlationId,i,`${r}/correlationId`);if(d){let e=R(d.value.location);if(e!==void 0){let t={location:e};H(t,`description`,R(d.value.description)),o.correlationId=t}}for(let[e]of this.ctx.items(a.examples,i,`${r}/examples`)){let t={};H(t,`name`,R(e.value.name)),H(t,`summary`,R(e.value.summary)),`payload`in e.value&&(t.payload=e.value.payload),`headers`in e.value&&(t.headers=e.value.headers),o.examples.push(t)}return o}operations(e){for(let[t,n,r]of this.ctx.entries(e,this.base,`/operations`)){let e=this.operation(t,n,r);e&&this.doc.operations.push(e)}}operation(e,t,n){let r=t.baseUrl,i=this.ctx.withTraits(t.value,r,n,[`action`,`channel`,`messages`,`reply`,`traits`]),a=R(i.action);if(a!==`send`&&a!==`receive`){this.ctx.problem(`error`,`Operation "${e}" has action "${a??``}"; expected send or receive. It was skipped.`,`${n}/action`);return}let o=this.ctx.object(i.channel,r,`${n}/channel`),s=z.keyOf(o?.id),c=s===void 0?void 0:this.channelsByKey.get(s);if(!c){this.ctx.problem(`error`,`Operation "${e}" does not reference a channel in "channels". It was skipped.`,`${n}/channel`);return}this.channelMessagesOf(c.id).length===0&&this.ctx.problem(`warning`,`Operation "${e}" uses channel "${c.id}", which defines no messages.`,`${n}/channel`);let l=this.reply(i.reply,r,`${n}/reply`),u=l?a===`send`?`request`:`reply`:a,d=this.ctx.options.labels,f={id:e,anchor:this.ctx.anchor(`operations`,e),heading:this.ctx.options.useChannelAddressAsIdentifier?c.address??e:R(i.title)??e,action:a,kind:u,badgeLabel:d[u],locationHint:e,channel:c,tags:this.ctx.tags(i.tags,r,`${n}/tags`),messages:this.operationMessages(e,i.messages,c.id,r,`${n}/messages`),security:this.security(i.security,r,`${n}/security`),bindings:this.ctx.bindings(`operation`,i.bindings,r,`${n}/bindings`)};H(f,`summary`,R(i.summary)),H(f,`description`,R(i.description));let p=this.ctx.externalDocs(i.externalDocs,r,`${n}/externalDocs`);return p&&(f.externalDocs=p),l&&(f.reply=l),f}operationMessages(e,t,n,r,i){let a=this.channelMessagesOf(n);if(t===void 0)return a;let o=[];for(let[n,s]of this.ctx.items(t,r,i)){let t=n.id===void 0?void 0:this.messagesById.get(n.id);if(!t||!a.includes(t)){this.ctx.problem(`warning`,`Operation "${e}" lists a message that is not one of its channel's messages; it was ignored.`,s);continue}o.push(t)}return o}channelMessagesOf(e){return this.channelMessageOrder.get(e)??[]}reply(e,t,n){let r=this.ctx.object(e,t,n);if(!r)return;let i={messages:[]},a=this.ctx.object(r.value.address,r.baseUrl,`${n}/address`);a&&(H(i,`addressLocation`,R(a.value.location)),H(i,`addressDescription`,R(a.value.description)));let o=this.ctx.object(r.value.channel,r.baseUrl,`${n}/channel`),s=z.keyOf(o?.id),c=s===void 0?void 0:this.channelsByKey.get(s);o&&!c&&this.ctx.problem(`warning`,`A reply references a channel that is not in "channels"; it was ignored.`,`${n}/channel`),c&&(i.channel=c);let l=r.value.messages;if(l===void 0&&s!==void 0)i.messages=this.channelMessagesOf(s).map(ma);else for(let[e,t]of this.ctx.items(l,r.baseUrl,`${n}/messages`)){let n=e.id===void 0?void 0:this.messagesById.get(e.id);if(!n){this.ctx.problem(`warning`,`A reply lists a message that is not one of the reply channel's messages; it was ignored.`,t);continue}i.messages.push(ma(n))}return i}};function ma(e){let t={id:e.id,anchor:e.anchor};return H(t,`name`,e.name),H(t,`title`,e.title),t}function H(e,t,n){n!==void 0&&(e[t]=n)}function ha(e,t){let n={};for(let r of t){let t=R(e[r]);t!==void 0&&(n[r]=t)}return n}function ga(e){let t={...Vi,...e.options,labels:{...Vi.labels,...e.options?.labels}},n=new z(e.resolver,t);for(let t of e.problems??[])n.problems.push(t);let r=e.specMajor===3?fa(n,e.data,e.specVersion):ua(n,e.data,e.specVersion);return _a(r),r}function _a(e){let t=new Map(e.tags.filter(e=>e.description).map(e=>[e.name,e.description]));if(t.size===0)return;let n=e=>{for(let n of e){let e=t.get(n.name);n.description===void 0&&e!==void 0&&(n.description=e)}};for(let t of e.servers)n(t.tags);for(let t of e.operations){n(t.tags),n(t.channel.tags);for(let e of t.messages)n(e.tags)}for(let t of e.messages)n(t.tags)}var va={$comment:`Single source of truth for every <asyncapi-viewer> option. Names are camelCase; the element accepts each as kebab-case (send-label) and as the lowercased form browsers produce from hand-written camelCase (sendlabel). The Python extension validates against a copy of this file. Booleans accept true/false, 1/0, yes/no, on/off and a bare attribute (true); in the DOM a bare attribute reads as an empty string, so an empty boolean value also means true. Enum values match case-insensitively.`,version:1,options:[{name:`src`,type:`string`,required:!0,status:`active`,specVersions:[2,3],description:`The AsyncAPI document (JSON or YAML), as a path or URL relative to the page.`},{name:`id`,type:`string`,default:null,status:`active`,specVersions:[2,3],description:`Element id; also prefixes every anchor inside the viewer. Generated as asyncapi-viewer-N when absent.`},{name:`sidebar`,type:`boolean`,default:!1,status:`active`,specVersions:[2,3],description:`Show the navigation column; a drawer behind a menu button on narrow containers.`},{name:`info`,type:`boolean`,default:!0,status:`active`,specVersions:[2,3],description:`Show the Info section.`},{name:`servers`,type:`boolean`,default:!0,status:`active`,specVersions:[2,3],description:`Show the Servers section and the server selector.`},{name:`operations`,type:`boolean`,default:!0,status:`active`,specVersions:[2,3],description:`Show the operations.`},{name:`messages`,type:`boolean`,default:!0,status:`active`,specVersions:[2,3],description:`Show the Messages section (component messages).`},{name:`schemas`,type:`boolean`,default:!0,status:`active`,specVersions:[2,3],description:`Show the Schemas section (component schemas).`},{name:`errors`,type:`boolean`,default:!0,status:`active`,specVersions:[2,3],description:`Show the load and validation problems panel.`},{name:`showMessageExamples`,type:`boolean`,default:!1,status:`active`,specVersions:[2,3],description:`Show examples in the Messages section.`},{name:`messageExamples`,type:`boolean`,default:!0,status:`active`,specVersions:[2,3],description:`Example panels start expanded; false starts them collapsed.`},{name:`showServers`,type:`enum`,values:[`byDefault`,`bySpecTags`,`byServersTags`],default:`byDefault`,status:`active`,specVersions:[2,3],description:`Sidebar grouping for servers.`},{name:`showOperations`,type:`enum`,values:[`byDefault`,`bySpecTags`,`byOperationsTags`],default:`byDefault`,status:`active`,specVersions:[2,3],description:`Sidebar grouping for operations.`},{name:`useChannelAddressAsIdentifier`,type:`boolean`,default:!1,status:`active`,specVersions:[3],description:`AsyncAPI 3: label operations by channel address instead of title.`},{name:`publishLabel`,type:`string`,default:`PUB`,status:`active`,specVersions:[2],description:`Badge text for AsyncAPI 2 publish operations.`},{name:`subscribeLabel`,type:`string`,default:`SUB`,status:`active`,specVersions:[2],description:`Badge text for AsyncAPI 2 subscribe operations.`},{name:`sendLabel`,type:`string`,default:`SEND`,status:`active`,specVersions:[3],description:`Badge text for AsyncAPI 3 send operations.`},{name:`receiveLabel`,type:`string`,default:`RECEIVE`,status:`active`,specVersions:[3],description:`Badge text for AsyncAPI 3 receive operations.`},{name:`requestLabel`,type:`string`,default:`REQUEST`,status:`active`,specVersions:[3],description:`Badge text for AsyncAPI 3 send operations that carry a reply.`},{name:`replyLabel`,type:`string`,default:`REPLY`,status:`active`,specVersions:[3],description:`Badge text for AsyncAPI 3 receive operations that carry a reply.`},{name:`parserOptions`,type:`json`,default:{applyTraits:!0},status:`active`,specVersions:[2,3],keys:{applyTraits:`boolean`},description:`JSON object. Only applyTraits (default true) is honoured; other keys warn and are ignored.`},{name:`schemaID`,type:`string`,default:null,status:`deprecated-noop`,specVersions:[2,3],description:`Deprecated: accepted, warns once, does nothing.`},{name:`theme`,type:`enum`,values:[`auto`,`light`,`dark`],default:`auto`,status:`active`,specVersions:[2,3],description:`auto follows the host page (Material scheme, html[data-theme], prefers-color-scheme).`},{name:`themeToggle`,type:`boolean`,default:!1,status:`active`,specVersions:[2,3],description:`Show a light/dark toggle in the viewer header.`},{name:`searchKeepSections`,type:`boolean`,default:!1,status:`active`,specVersions:[2,3],description:`Keep the Info, Servers, Messages and Schemas links visible while a sidebar search query is active.`}]}.options,ya=Object.freeze(Object.fromEntries(va.filter(e=>e.status===`active`&&e.default!==null&&e.default!==void 0).map(e=>[e.name,structuredClone(e.default)]))),ba=new Set([`true`,`1`,`yes`,`on`]),xa=new Set([`false`,`0`,`no`,`off`]),Sa=new Set([`class`,`style`,`slot`,`hidden`,`title`,`lang`,`dir`,`role`,`tabindex`,`part`,`exportparts`,`translate`,`nonce`]),Ca=new Set([`resolved-theme`]),wa=new Map(va.map(e=>[e.name.toLowerCase(),e]));function Ta(e){return wa.get(e.replace(/-/g,``).toLowerCase())}function Ea(e){return e.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`)}var Da=`<asyncapi-viewer>:`;function Oa(e,t=e=>console.warn(e)){let n=structuredClone(ya),r=n;for(let[n,i]of e){let e=n.toLowerCase();if(Sa.has(e)||Ca.has(e)||e.startsWith(`data-`)||e.startsWith(`aria-`)||e.startsWith(`on`))continue;let a=Ta(e);if(!a){t(`${Da} unknown attribute '${n}' was ignored.`);continue}if(a.status===`deprecated-noop`){t(`${Da} attribute '${n}' is deprecated and does nothing.`);continue}if(a.name===`src`||a.name===`id`){i!==null&&i!==``&&(r[a.name]=i);continue}let o=Aa(a,n,i,t);o!==ka&&(r[a.name]=o)}return n}var ka=Symbol(`invalid`);function Aa(e,t,n,r){switch(e.type){case`boolean`:{let e=n===null||n.trim()===``?`true`:n.trim().toLowerCase();return ba.has(e)?!0:!xa.has(e)&&(r(`${Da} attribute '${t}' expects true or false, got '${n}'.`),ka)}case`enum`:{let i=(n??``).trim().toLowerCase(),a=e.values?.find(e=>e.toLowerCase()===i);return a===void 0?(r(`${Da} attribute '${t}' expects one of ${e.values?.join(`, `)}; got '${n}'.`),ka):a}case`json`:{let i;try{i=JSON.parse(n??``)}catch(e){return r(`${Da} attribute '${t}' is not valid JSON (${e.message}).`),ka}if(typeof i!=`object`||!i||Array.isArray(i))return r(`${Da} attribute '${t}' expects a JSON object, got ${JSON.stringify(i)}.`),ka;let a=structuredClone(e.default);for(let[t,n]of Object.entries(i)){let i=e.keys?.[t];i?typeof n===i?a[t]=n:r(`${Da} ${e.name}.${t} expects a ${i}, got ${JSON.stringify(n)}.`):r(`${Da} ${e.name}.${t} is not supported and was ignored.`)}return a}case`string`:return n??``}}var ja=l`
|
|
108
108
|
.header {
|
|
109
109
|
display: flex;
|
|
110
110
|
flex-wrap: wrap;
|
|
@@ -169,7 +169,7 @@ $&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,`$1$2`).replace(/\
|
|
|
169
169
|
display: none;
|
|
170
170
|
}
|
|
171
171
|
}
|
|
172
|
-
`,
|
|
172
|
+
`,Ma=C`<svg viewBox="0 0 24 24" aria-hidden="true"><path d="M12 4v11m0 0-4-4m4 4 4-4M5 19h14" /></svg>`,Na=C`<svg viewBox="0 0 24 24" aria-hidden="true"><path d="M20 14.5A8.5 8.5 0 0 1 9.5 4a8.5 8.5 0 1 0 10.5 10.5Z" /></svg>`,Pa=C`<svg viewBox="0 0 24 24" aria-hidden="true"><circle cx="12" cy="12" r="4" /><path d="M12 2.5v2.5M12 19v2.5M2.5 12H5M19 12h2.5M5.3 5.3l1.8 1.8M16.9 16.9l1.8 1.8M5.3 18.7l1.8-1.8M16.9 7.1l1.8-1.8" /></svg>`;function Fa(e){let{doc:t}=e,n=e.src&&e.src.split(`/`).pop()?.split(`?`)[0]||`asyncapi`;return C`
|
|
173
173
|
<header class="header">
|
|
174
174
|
${e.menu??w}
|
|
175
175
|
${e.hasLogo?C`<span class="header__logo" aria-hidden="true"></span>`:w}
|
|
@@ -181,7 +181,7 @@ $&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,`$1$2`).replace(/\
|
|
|
181
181
|
<div class="header__spacer"></div>
|
|
182
182
|
${e.extra??w}
|
|
183
183
|
<div class="header__actions">
|
|
184
|
-
${e.downloadHref?C`<a class="btn" href=${e.downloadHref} download=${n} title="Download spec">${
|
|
184
|
+
${e.downloadHref?C`<a class="btn" href=${e.downloadHref} download=${n} title="Download spec">${Ma}<span class="btn__text">Download spec</span></a>`:w}
|
|
185
185
|
${e.themeToggle?C`<button
|
|
186
186
|
class="btn btn--icon"
|
|
187
187
|
type="button"
|
|
@@ -189,25 +189,25 @@ $&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,`$1$2`).replace(/\
|
|
|
189
189
|
aria-pressed=${e.resolvedTheme===`dark`?`true`:`false`}
|
|
190
190
|
@click=${e.onToggleTheme}
|
|
191
191
|
>
|
|
192
|
-
${e.resolvedTheme===`dark`?Na
|
|
192
|
+
${e.resolvedTheme===`dark`?Pa:Na}
|
|
193
193
|
</button>`:w}
|
|
194
194
|
</div>
|
|
195
195
|
</header>
|
|
196
|
-
`}function
|
|
196
|
+
`}function Ia(e){return e.description?C`<li class="chip chip--tip" data-tip=${e.description} tabindex="0">
|
|
197
197
|
${e.name}<span class="visually-hidden">: ${e.description}</span>
|
|
198
|
-
</li>`:C`<li class="chip">${e.name}</li>`}var
|
|
199
|
-
`,` `],qa=[`/`,`?`,`#`],Ja=255,Ya=/^[+a-z0-9A-Z_-]{0,63}$/,Xa=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,Za={javascript:!0,"javascript:":!0},Qa={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function $a(e,t){if(e&&e instanceof Ha)return e;let n=new Ha;return n.parse(e,t),n}Ha.prototype.parse=function(e,t){let n,r,i,a=e;if(a=a.trim(),!t&&e.split(`#`).length===1){let e=Ga.exec(a);if(e)return this.pathname=e[1],e[2]&&(this.search=e[2]),this}let o=Ua.exec(a);if(o&&(o=o[0],n=o.toLowerCase(),this.protocol=o,a=a.substr(o.length)),(t||o||a.match(/^\/\/[^@\/]+@[^@\/]+/))&&(i=a.substr(0,2)===`//`,i&&!(o&&Za[o])&&(a=a.substr(2),this.slashes=!0)),!Za[o]&&(i||o&&!Qa[o])){let e=-1;for(let t=0;t<qa.length;t++)r=a.indexOf(qa[t]),r!==-1&&(e===-1||r<e)&&(e=r);let t,n;n=e===-1?a.lastIndexOf(`@`):a.lastIndexOf(`@`,e),n!==-1&&(t=a.slice(0,n),a=a.slice(n+1),this.auth=t),e=-1;for(let t=0;t<Ka.length;t++)r=a.indexOf(Ka[t]),r!==-1&&(e===-1||r<e)&&(e=r);e===-1&&(e=a.length),a[e-1]===`:`&&e--;let i=a.slice(0,e);a=a.slice(e),this.parseHost(i),this.hostname=this.hostname||``;let o=this.hostname[0]===`[`&&this.hostname[this.hostname.length-1]===`]`;if(!o){let e=this.hostname.split(/\./);for(let t=0,n=e.length;t<n;t++){let n=e[t];if(n&&!n.match(Ya)){let r=``;for(let e=0,t=n.length;e<t;e++)n.charCodeAt(e)>127?r+=`x`:r+=n[e];if(!r.match(Ya)){let r=e.slice(0,t),i=e.slice(t+1),o=n.match(Xa);o&&(r.push(o[1]),i.unshift(o[2])),i.length&&(a=i.join(`.`)+a),this.hostname=r.join(`.`);break}}}}this.hostname.length>Ja&&(this.hostname=``),o&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}let s=a.indexOf(`#`);s!==-1&&(this.hash=a.substr(s),a=a.slice(0,s));let c=a.indexOf(`?`);return c!==-1&&(this.search=a.substr(c),a=a.slice(0,c)),a&&(this.pathname=a),Qa[n]&&this.hostname&&!this.pathname&&(this.pathname=``),this},Ha.prototype.parseHost=function(e){let t=Wa.exec(e);t&&(t=t[0],t!==`:`&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)};var eo=n({decode:()=>Ra,encode:()=>U,format:()=>Va,parse:()=>$a}),to=n({Any:()=>no,Cc:()=>ro,Cf:()=>io,P:()=>ao,S:()=>oo,Z:()=>so}),no=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,ro=/[\0-\x1F\x7F-\x9F]/,io=/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u0890\u0891\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD80D[\uDC30-\uDC3F]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/,ao=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B4E\u1B4F\u1B5A-\u1B60\u1B7D-\u1B7F\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3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DE9A\uDFE2]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD839\uDDFF|\uD83A[\uDD5E\uDD5F]/,oo=/[\$\+<->\^`\|~\xA2-\xA6\xA8\xA9\xAC\xAE-\xB1\xB4\xB8\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0384\u0385\u03F6\u0482\u058D-\u058F\u0606-\u0608\u060B\u060E\u060F\u06DE\u06E9\u06FD\u06FE\u07F6\u07FE\u07FF\u0888\u09F2\u09F3\u09FA\u09FB\u0AF1\u0B70\u0BF3-\u0BFA\u0C7F\u0D4F\u0D79\u0E3F\u0F01-\u0F03\u0F13\u0F15-\u0F17\u0F1A-\u0F1F\u0F34\u0F36\u0F38\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE\u0FCF\u0FD5-\u0FD8\u109E\u109F\u1390-\u1399\u166D\u17DB\u1940\u19DE-\u19FF\u1B61-\u1B6A\u1B74-\u1B7C\u1FBD\u1FBF-\u1FC1\u1FCD-\u1FCF\u1FDD-\u1FDF\u1FED-\u1FEF\u1FFD\u1FFE\u2044\u2052\u207A-\u207C\u208A-\u208C\u20A0-\u20C1\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F\u218A\u218B\u2190-\u2307\u230C-\u2328\u232B-\u2429\u2440-\u244A\u249C-\u24E9\u2500-\u2767\u2794-\u27C4\u27C7-\u27E5\u27F0-\u2982\u2999-\u29D7\u29DC-\u29FB\u29FE-\u2B73\u2B76-\u2BFF\u2CE5-\u2CEA\u2E50\u2E51\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFF\u3004\u3012\u3013\u3020\u3036\u3037\u303E\u303F\u309B\u309C\u3190\u3191\u3196-\u319F\u31C0-\u31E5\u31EF\u3200-\u321E\u322A-\u3247\u3250\u3260-\u327F\u328A-\u32B0\u32C0-\u33FF\u4DC0-\u4DFF\uA490-\uA4C6\uA700-\uA716\uA720\uA721\uA789\uA78A\uA828-\uA82B\uA836-\uA839\uAA77-\uAA79\uAB5B\uAB6A\uAB6B\uFB29\uFBB2-\uFBD2\uFD40-\uFD4F\uFD90\uFD91\uFDC8-\uFDCF\uFDFC-\uFDFF\uFE62\uFE64-\uFE66\uFE69\uFF04\uFF0B\uFF1C-\uFF1E\uFF3E\uFF40\uFF5C\uFF5E\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFFC\uFFFD]|\uD800[\uDD37-\uDD3F\uDD79-\uDD89\uDD8C-\uDD8E\uDD90-\uDD9C\uDDA0\uDDD0-\uDDFC]|\uD802[\uDC77\uDC78\uDEC8]|\uD803[\uDD8E\uDD8F\uDED1-\uDED8]|\uD805\uDF3F|\uD807[\uDFD5-\uDFF1]|\uD81A[\uDF3C-\uDF3F\uDF45]|\uD82F\uDC9C|\uD833[\uDC00-\uDCEF\uDCFA-\uDCFC\uDD00-\uDEB3\uDEBA-\uDED0\uDEE0-\uDEF0\uDF50-\uDFC3]|\uD834[\uDC00-\uDCF5\uDD00-\uDD26\uDD29-\uDD64\uDD6A-\uDD6C\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDDEA\uDE00-\uDE41\uDE45\uDF00-\uDF56]|\uD835[\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85\uDE86]|\uD838[\uDD4F\uDEFF]|\uD83B[\uDCAC\uDCB0\uDD2E\uDEF0\uDEF1]|\uD83C[\uDC00-\uDC2B\uDC30-\uDC93\uDCA0-\uDCAE\uDCB1-\uDCBF\uDCC1-\uDCCF\uDCD1-\uDCF5\uDD0D-\uDDAD\uDDE6-\uDE02\uDE10-\uDE3B\uDE40-\uDE48\uDE50\uDE51\uDE60-\uDE65\uDF00-\uDFFF]|\uD83D[\uDC00-\uDED8\uDEDC-\uDEEC\uDEF0-\uDEFC\uDF00-\uDFD9\uDFE0-\uDFEB\uDFF0]|\uD83E[\uDC00-\uDC0B\uDC10-\uDC47\uDC50-\uDC59\uDC60-\uDC87\uDC90-\uDCAD\uDCB0-\uDCBB\uDCC0\uDCC1\uDCD0-\uDCD8\uDD00-\uDE57\uDE60-\uDE6D\uDE70-\uDE7C\uDE80-\uDE8A\uDE8E-\uDEC6\uDEC8\uDECD-\uDEDC\uDEDF-\uDEEA\uDEEF-\uDEF8\uDF00-\uDF92\uDF94-\uDFEF\uDFFA]/,so=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/,co=[8364,0,8218,402,8222,8230,8224,8225,710,8240,352,8249,338,0,381,0,0,8216,8217,8220,8221,8226,8211,8212,732,8482,353,8250,339,0,382,376];function lo(e){return e===0||e>=55296&&e<=57343||e>1114111}function uo(e){return lo(e)?65533:e>=128&&e<=159&&co[e-128]||e}function fo(e){return e-1>>>0<127||e-160>>>0<55136?String.fromCharCode(e):String.fromCodePoint(uo(e))}var W=(()=>{let e=new Uint8Array(127),t=0;for(let n=33;n<=126;n++)n!==34&&n!==36&&n!==92&&(e[n]=t++);return e})();function po(e,t,n,r,i,a){let o=e.length,s=a*90,c=0,l=()=>{let t=W[e.charCodeAt(c++)];return t<a?t:t*91-s+W[e.charCodeAt(c++)]},u=n-r,d=n+i,f=new Int32Array(d);f.fill(-1,r,a),f.fill(-1,a+u,d);let p=new Int32Array(d),m=new Int32Array(d);function h(t,n){let r=0,i=n,a=n+t;for(;i<a;){let t=W[e.charCodeAt(c++)];if(t<89)r+=t,f[i++]=r;else if(t===89){let t=W[e.charCodeAt(c++)]+2;for(;t--;)f[i++]=++r}else{let t=W[e.charCodeAt(c++)];r+=89+(t<90?t*91+W[e.charCodeAt(c++)]:W[e.charCodeAt(c++)]*8281+W[e.charCodeAt(c++)]*91+W[e.charCodeAt(c++)]),f[i++]=r}}}h(r,0),h(u,a);let g=new Int32Array(i*2),_=0,v=0;function y(e,t){for(let n=0;n<e;n++){let e=t+n,r=l(),i=l();g[v*2]=r,g[v*2+1]=i,v+=1,p[e]=_;let a=(f[r]<0?m[r]:1)+(f[i]<0?m[i]:1);m[e]=a,_+=a}}y(i-a+r,a+u),y(a-r,r);let b=new Uint16Array(_),x=0;for(let e=0;e<v;e++)for(let t=0;t<2;t++){let n=g[e*2+t],r=f[n];if(r<0){let e=p[n],t=e+m[n];for(;e<t;)b[x++]=b[e++]}else b[x++]=r}let S=new Uint16Array(t),ee=0;for(;c<o;){let t=W[e.charCodeAt(c++)];t>=a&&(t=t*91-s+W[e.charCodeAt(c++)]);let n=f[t];if(n<0){let e=p[t],n=e+m[t];for(;e<n;)S[ee++]=b[e++]}else S[ee++]=n}return S}var mo=po("!}.&u%}'&}*'~!6*)%&,~!J~!J~%L~y<~!R,~~%Lu~~#GD~~#|)1#%}^%}2%+#.##%##%}&%##%'#%##&%#%#'%#&#%#&#'#%%#&#%##%#)%''%&%#%#'%#%%#%%}%%%#%#&(23#%%#&-%0%('1#(##%#'##+%'*.:1}#%#6-+(%'%%#%%%}#L'2351&('%}&/N'(0(/*-%(%%}#'+&T%7.2}#&%&#%#36/5##%&%%#&#%%#))2%%##%&&'0~!#*+&'%1~!%).'3q?&%'1~!.##%6(~!+%%%(Gw'rT~!E#<nA%#jZ~!H%(~!42##~!*31&~!G%U~#)5~#`3~!J~!Z~%]~%Y~%C~!q~!u~#kz~%#~!6'~!D~!U~!?~#T~!c%~!G#'~%7|~!G~!J~!G&~#pb~(Df}#%}*&}#%##%##%##&#-}&'#'&%#.++}%mI,#,@&(}*%}*'%&##&#%##%}&0}#.},U},%}+%}&%}#%##&}B%(}(%}+%)})%##%#&}&%##%&}<%}>%#%&}*%}(%}9%}/%})%}*%}*%}?&}&%}3%}&*#%})%#%#)}#&#-#+*%E%%'%'#%}#*V##&##I}#&&##%&%#&&Qf%%))w/0+&%#(#.%-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)Y#hJrL>RhG<7@C5<H|_=Cau:5aj5@B932:bJ|ng>vIbs)#?C2F|9jPv0w.vISh-MKvUaz(.!9ABbb|[5;5<H|Eg>unwfh;9:4E|YjQsBt|vjx'hYq3!(?C2F|J:2<BaY?C2F|GOu!5x,g|p{ah!-(?C2F|c9:4E|OjXuvvNr}:Rh&i[w*t|cd+U#jJvsu)vsSn~Mkfrmu9p}u7vwv]So!McW#Xa!ax5@A5aY:5;5<H|>kJv~vYrquJu3x4ib#T)2@SmZM?C2F|Bj:rmu9@xPhI(a*a#U#`a3-5Abb|L~@:RhK9:4E|0@52B5G|#C::aY?C2F|-:2<BaY?C2F|.5Jvk!a)javYrquJu3x4ia#T)2@SmYM?C2F|HAxPhH(!a#U#`a*-5Abb|4~@:RhJ9:4E|R@52B5G|F:2<BaY?C2F|Sc^#Xa2j=Qq5CJvB!-g<v{z;hhM?C2F|Zi[vrv{z;hiM?C2F|XKsA>!a)-g<v{z;h[eb?C2F|]i[vrv{z;h]eb?C2F|^iZu.vix,hZq3ah!.(?C2F|QOu!5ShXM:2<BaY?C2F|P",13494,2713,49,25,61),G;(function(e){e[e.VALUE_LENGTH=49152]=`VALUE_LENGTH`,e[e.FLAG13=8192]=`FLAG13`,e[e.BRANCH_LENGTH=8064]=`BRANCH_LENGTH`,e[e.JUMP_TABLE=127]=`JUMP_TABLE`,e[e.VALUE_MASK=8191]=`VALUE_MASK`})(G||={});var K;(function(e){e[e.AMP=38]=`AMP`,e[e.NUM=35]=`NUM`,e[e.SEMI=59]=`SEMI`,e[e.EQUALS=61]=`EQUALS`,e[e.ZERO=48]=`ZERO`,e[e.NINE=57]=`NINE`,e[e.LOWER_A=97]=`LOWER_A`,e[e.LOWER_X=120]=`LOWER_X`})(K||={});var ho=32,go=21,_o=2097151,vo=2047,yo=0;function bo(e){let t=e>>>go;return t===vo?yo:t}function xo(e){return e-K.ZERO>>>0<=9}function So(e){return(e|ho)-K.LOWER_A>>>0<=5}function Co(e){return(e|ho)-K.LOWER_A>>>0<=25}function wo(e){return e===K.EQUALS||Co(e)||xo(e)}var To;(function(e){e[e.EntityStart=0]=`EntityStart`,e[e.NumericStart=1]=`NumericStart`,e[e.NumericDecimal=2]=`NumericDecimal`,e[e.NumericHex=3]=`NumericHex`,e[e.NamedEntity=4]=`NamedEntity`})(To||={});var Eo;(function(e){e[e.Legacy=0]=`Legacy`,e[e.Strict=1]=`Strict`,e[e.Attribute=2]=`Attribute`})(Eo||={});function Do(e,t,n,r){let i=(t&G.BRANCH_LENGTH)>>7,a=t&G.JUMP_TABLE;if(a){if(i===0)return r===a?n:-1;let t=r-a;if(t>>>0>=i)return-1;let o=e[n+t];return o===0?-1:n+i+o-1&65535}if(i===0)return-1;let o=i+1>>1,s=n+o+i;for(let t=0;t<i;t++){let i=e[n+(t>>1)]>>((t&1)<<3)&255;if(i===r)return s+e[n+o+t]&65535;if(i>r)return-1}return-1}function Oo(e,t,n){return n===1?String.fromCharCode(e[t]&G.VALUE_MASK):n===2?String.fromCharCode(e[t+1]):String.fromCharCode(e[t+1],e[t+2])}function ko(e,t,n){let r=t+1,i=0,a=r;if(r<n&&(e.charCodeAt(r)|ho)===K.LOWER_X)for(r+=1,a=r;r<n;){let t=e.charCodeAt(r);if(xo(t))i=i*16+(t-K.ZERO);else if(So(t))i=i*16+((t|ho)-K.LOWER_A+10);else break;r+=1}else for(;r<n;){let t=e.charCodeAt(r)-K.ZERO;if(t>>>0>9)break;i=i*10+t,r+=1}if(r===a)return 0;r<n&&e.charCodeAt(r)===K.SEMI&&(r+=1),i>1114111&&(i=1114112);let o=r-t;return o>=vo&&(yo=o,o=vo),o<<go|i}function Ao(e,t,n){let r=mo,i=e.indexOf(`&`);if(i<0)return e;let a=e.length,o=0,s=``,c=r[0],l=c&G.JUMP_TABLE,u=(c&G.BRANCH_LENGTH)>>7;do{let c=i+1,d=e.charCodeAt(c),f,p;if(d===K.NUM){let n=ko(e,c,a);f=bo(n),t&&f>0&&e.charCodeAt(c+f-1)!==K.SEMI&&(f=0),p=f===0?``:fo(n&_o)}else if(Co(d)){f=0,p=``;let n=d-l,i;if(n>>>0<u){let e=r[1+n];i=e===0?-1:u+e&65535}else i=-1;let o=0,s=0,m=i<0?0:r[i],h=c+1;trie:for(;h<a;){for(;(m&(G.VALUE_LENGTH|G.FLAG13))===0&&(m&G.JUMP_TABLE)!==0;){let t=m&G.JUMP_TABLE,n=(m&G.BRANCH_LENGTH)>>7;if(n===0){if(e.charCodeAt(h)!==t)break trie;i+=1}else{let a=e.charCodeAt(h)-t;if(a>>>0>=n)break trie;let o=r[i+1+a];if(o===0)break trie;i=i+n+o&65535}if(m=r[i],h+=1,h>=a)break trie}if((m&(G.VALUE_LENGTH|G.FLAG13))===G.FLAG13){let t=(m&G.BRANCH_LENGTH)>>7;if(e.charCodeAt(h)!==(m&G.JUMP_TABLE))break;h+=1;let n=t-1,a=i+1,o=0;for(;o+1<n;o+=2){let t=r[a];if(e.charCodeAt(h)!==(t&255)||(h+=1,e.charCodeAt(h)!==(t>>8&255)))break trie;h+=1,a+=1}if(o<n){if(e.charCodeAt(h)!==(r[a]&255))break;h+=1}i+=1+(t>>1),m=r[i];continue}let n=m>>>14,l=e.charCodeAt(h);if(n!==0){if(l===K.SEMI){f=h-c+1,p=n===1?String.fromCharCode(m&G.VALUE_MASK):Oo(r,i,n);break}if(!t&&(m&G.FLAG13)===0&&(f=h-c,o=i,s=n),n===1)break}let u=Do(r,m,i+(n||1),l);if(u<0)break;i=u,m=r[i],h+=1}if(p===``){let e=m>>>14;e!==0&&!t&&(m&G.FLAG13)===0&&(f=h-c,o=i,s=e),f>0&&(p=Oo(r,o,s))}}else f=0,p=``;f===0||n&&d!==K.NUM&&e.charCodeAt(c+f-1)!==K.SEMI&&c+f<a&&wo(e.charCodeAt(c+f))?i=c:(o<i&&(s+=e.slice(o,i)),s+=p,i=o=c+f),e.charCodeAt(i)!==K.AMP&&(i=e.indexOf(`&`,i))}while(i>=0);return s+e.slice(o)}function jo(e){return Ao(e,!0,!1)}var Mo=class{src_Any=no.source;src_Cc=ro.source;src_Z=so.source;src_P=ao.source;src_ZPCc=[this.src_Z,this.src_P,this.src_Cc].join(`|`);src_ZCc=[this.src_Z,this.src_Cc].join(`|`);cache={};opts={maxLength:1e4,urlAuth:!1,schema_names:[]};constructor(e={}){this.opts={...this.opts,...e}}set(e={}){return this.opts={...this.opts,...e},this.cache={},this}escapeRE(e){return e.replace(/[.?*+^$[\]\\(){}|-]/g,`\\$&`)}nestedPairRE(e,t,n=4){let r=this.escapeRE(e),i=this.escapeRE(t),a=`(?:(?!${this.src_ZCc}|${r}|${i}).)`,o=`${r}${a}{0,1000}${i}`;for(let e=2;e<=n;e++)o=`${r}(?:${a}|${o}){0,1000}${i}`;return o}get_text_separators(){return this.cache.text_separators??=/[><\uff5c]/}get_pseudo_letter(){return this.cache.src_pseudo_letter??=RegExp(`(?:(?!${this.get_text_separators().source}|${this.src_ZPCc})${this.src_Any})`)}get_ipv4_addr(){return this.cache.src_ip4??=RegExp(`(?:(?:25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])[.]){3}(?:25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])`)}get_ipv6_addr(){let e=`[0-9A-Fa-f]{1,4}`,t=`(?:(?:${e}:${e})|${this.get_ipv4_addr().source})`;return this.cache.src_ip6_addr??=RegExp(`(?:(?:${e}:){6}${t}|::(?:${e}:){5}${t}|(?:${e})?::(?:${e}:){4}${t}|(?:(?:${e}:){0,1}${e})?::(?:${e}:){3}${t}|(?:(?:${e}:){0,2}${e})?::(?:${e}:){2}${t}|(?:(?:${e}:){0,3}${e})?::${e}:${t}|(?:(?:${e}:){0,4}${e})?::${t}|(?:(?:${e}:){0,5}${e})?::${e}|(?:(?:${e}:){0,6}${e})?::)`)}get_ipv6_url_host(){return this.cache.src_ip6_host??=RegExp(`\\[${this.get_ipv6_addr().source}\\]`)}get_ipv6_mail_host(){return this.cache.src_ipv6_mail_host??=RegExp(`\\[IPv6:${this.get_ipv6_addr().source}\\]`)}get_auth(){return this.cache.src_auth??=RegExp(`(?:(?:(?!${this.src_ZCc}|[@/\\[\\]()]).){1,50}@)?`)}get_port(){return this.cache.src_port??=RegExp(`(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?`)}get_host_terminator(){return this.cache.src_host_terminator??=RegExp(`(?=$|${this.get_text_separators().source}|${this.src_ZPCc})(?!${this.opts[`---`]?`-(?!--)|`:`-|`}_|:\\d|\\.-|\\.(?!$|${this.src_ZPCc}))`)}get_path_terminator(){return this.cache.src_path_terminator??=RegExp(`${this.src_ZPCc}|${this.get_text_separators().source}`)}get_path(){return this.cache.src_path??=RegExp(`(?:[/?#](?:${this.nestedPairRE(`[`,`]`)}|${this.nestedPairRE(`(`,`)`)}|${this.nestedPairRE(`{`,`}`)}|\\"(?:(?!${this.src_ZCc}|["]).){1,100}\\"|\\'(?:(?!${this.src_ZCc}|[']).){1,100}\\'|\\'(?=${this.get_pseudo_letter().source}|[-])|\\.{2,20}[:]?[a-zA-Z0-9%/&]|\\.(?!${this.src_ZCc}|[.]|$)|`+(this.opts[`---`]?`\\-(?!--(?:[^-]|$))(?:-{0,19})|`:`\\-{1,20}|`)+`,(?!${this.src_ZCc}|$)|;(?!${this.src_ZCc}|$)|\\!{1,20}(?!${this.src_ZCc}|[!]|$)|\\?(?!${this.src_ZCc}|[?]|$)|`+this.get_path_extra().source+`[\\\\/:%@#&=_~*]|(?!${this.get_path_terminator().source}).){1,${this.opts.maxLength}}|\\/)?`)}get_mail_name(){return this.cache.src_mail_name??=RegExp("[-!#$%&'*+/=?^_`{|}~a-zA-Z0-9](?:[-!#$%&'*+/=?^_`{|}~a-zA-Z0-9]|[.](?=[-!#$%&'*+/=?^_`{|}~a-zA-Z0-9])){0,63}")}get_xn(){return this.cache.src_xn??=RegExp(`xn--[a-z0-9\\-]{1,59}`)}get_tld(){if(this.cache.tld)return this.cache.tld;let e=[...new Set(this.opts.tlds||[])].sort().reverse().join(`|`);return this.cache.tld=RegExp(`${e||`$#none#$`}|${this.get_xn().source}`),this.cache.tld}get_domain_root(){return this.cache.src_domain_root??=RegExp(`(?:`+this.get_xn().source+`|${this.get_pseudo_letter().source}{1,63})`)}get_domain(){return this.cache.src_domain??=RegExp(`(?:`+this.get_xn().source+`|(?:${this.get_pseudo_letter().source})|(?:${this.get_pseudo_letter().source}(?:-|${this.get_pseudo_letter().source}){0,61}${this.get_pseudo_letter().source}))`)}get_url_host_port(){return this.cache.url_host_port??=RegExp(`(?:`+this.get_ipv6_url_host().source+`|(?:(?:(?:${this.get_domain().source})\\.){0,10}${this.get_domain().source}))`+this.get_port().source+this.get_host_terminator().source)}get_fuzzy_url_host_port(){return this.cache.fuzzy_url_host_port??=RegExp(`(?:`+(this.opts.fuzzyIP?this.get_ipv4_addr().source+`|`:``)+`(?:(?:(?:${this.get_domain().source})\\.){1,10}(?:${this.get_tld().source})))`+this.get_host_terminator().source)}get_mail_host(){return this.cache.src_mail_host??=RegExp(`(?:`+this.get_ipv6_mail_host().source+`|(?:(?:(?:${this.get_domain().source})\\.){0,4}${this.get_domain().source}))`+this.get_host_terminator().source)}get_fuzzy_mail_host(){return this.cache.src_fuzzy_mail_host??=RegExp(`(?:`+this.get_ipv6_mail_host().source+`|(?:(?:(?:${this.get_domain().source})[.]){1,4}${this.get_domain_root().source}))`+this.get_host_terminator().source)}get_path_extra(){return this.cache.src_path_extra??=RegExp(``)}get_fuzzy_mail_host_search(){return this.cache.mail_fuzzy_host_search??=RegExp(`@${this.get_fuzzy_mail_host().source}`,`ig`)}get_fuzzy_link_search(){return this.cache.link_fuzzy_search??=RegExp(`(^|(?![.:/\\-_@])(?:[$+<=>^\`|\uff5c]|${this.src_ZPCc}))(?:(?![$+<=>^\`|\uff5c])${this.get_fuzzy_url_host_port().source}${this.get_path().source})`,`ig`)}get_http_validator(){return this.cache.http_validator??=RegExp(`\\/\\/`+(this.opts.urlAuth?this.get_auth().source:``)+this.get_url_host_port().source+this.get_path().source,`iy`)}get_relative_proto_validator(){return this.cache.relative_proto_validator??=RegExp((this.opts.urlAuth?this.get_auth().source:``)+`(?:localhost|${this.get_ipv6_url_host().source}|(?:(?:${this.get_domain().source})[.]){1,10}${this.get_domain_root().source})`+this.get_port().source+this.get_host_terminator().source+this.get_path().source,`iy`)}get_mail_name_validator(){return this.cache.mail_name_validator??=RegExp(`(?:^|${this.get_text_separators().source}|"|\\(|${this.src_ZCc})(${this.get_mail_name().source})$`)}get_mailto_validator(){return this.cache.mailto_validator??=RegExp(`${this.get_mail_name().source}@${this.get_mail_host().source}`,`iy`)}get_schema_names(){return this.cache.schema_names??=new RegExp((this.opts.schema_names||[]).map(e=>this.escapeRE(e)).join(`|`))}get_schema_search(){return this.cache.schema_search??=RegExp(`(^|(?!_)(?:[><\uff5c]|${this.src_ZPCc}))(${this.get_schema_names().source})`,`ig`)}get_schema_at_start(){return this.cache.schema_at_start??=RegExp(`^${this.get_schema_search().source}`,`i`)}},No={validate:(e,t,n)=>{let r=n.re.get_http_validator();r.lastIndex=t;let i=r.exec(e);return i?i[0].length:0},normalize:(e,t)=>t.normalize(e)},Po={"http:":No,"https:":No,"ftp:":No,"//":{validate:function(e,t,n){let r=n.re.get_relative_proto_validator();r.lastIndex=t;let i=r.exec(e);return i?t>=3&&e[t-3]===`:`||t>=3&&e[t-3]===`/`?0:i[0].length:0},normalize:(e,t)=>t.normalize(e)},"mailto:":{validate:function(e,t,n){let r=n.re.get_mailto_validator();r.lastIndex=t;let i=r.exec(e);return i?i[0].length:0},normalize:(e,t)=>t.normalize(e)}},Fo=`a:cdefgilmnoqrstuwxz|b:abdefghijmnorstvwyz|c:acdfghiklmnoruvwxyz|d:ejkmoz|e:cegrstu|f:ijkmor|g:abdefghilmnpqrstuwy|h:kmnrtu|i:delmnoqrst|j:emop|k:eghimnprwyz|l:abcikrstuvy|m:acdeghklmnopqrstuvwxyz|n:acefgilopruz|o:m|p:aefghklmnrstwy|q:a|r:eosuw|s:abcdeghijklmnortuvxyz|t:cdfghjklmnortvwz|u:agksyz|v:aceginu|w:fs|y:et|z:amw`,Io=`biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф`;function Lo(){let e=Io.split(`|`);return Fo.split(`|`).forEach(t=>{let n=t.indexOf(`:`),r=t.slice(0,n);for(let i of t.slice(n+1))e.push(r+i)}),e}var Ro={fuzzyLink:!1,fuzzyEmail:!0,fuzzyIP:!1,"---":!1,tlds:Lo(),urlAuth:!1,maxLength:1e4},zo=class{schema;index;lastIndex;raw;text;url;constructor(e,t,n,r){let i=e.slice(n,r);this.schema=t.toLowerCase(),this.index=n,this.lastIndex=r,this.raw=i,this.text=i,this.url=i}},Bo=class{__opts__;__schemas__;re;constructor(e={}){let{rebuilder:t,...n}=e;this.__opts__={...Ro,...n},this.__schemas__={...Po},this.re=t||new Mo,this.re.set({...this.__opts__,schema_names:Object.keys(this.__schemas__)})}add(e,t=null){if(!t)delete this.__schemas__[e];else{let n={normalize:(e,t)=>t.normalize(e),...t};this.__schemas__[e]=n}return this.re.set({...this.__opts__,schema_names:Object.keys(this.__schemas__)}),this}set(e={}){return this.__opts__={...this.__opts__,...e},this.re.set({...this.__opts__,schema_names:Object.keys(this.__schemas__)}),this}test(e){if(!e.length)return!1;let t,n;for(n=this.re.get_schema_search(),n.lastIndex=0;(t=n.exec(e))!==null;)if(this.testSchemaAt(e,t[2],n.lastIndex))return!0;if(this.__opts__.fuzzyLink&&this.__schemas__[`http:`]&&(n=this.re.get_fuzzy_link_search(),n.lastIndex=0,n.exec(e)!==null))return!0;if(this.__opts__.fuzzyEmail&&this.__schemas__[`mailto:`]&&e.indexOf(`@`)>=0){let n=this.re.get_fuzzy_mail_host_search(),r=this.re.get_mail_name_validator();for(n.lastIndex=0;(t=n.exec(e))!==null;){let n=e.slice(Math.max(0,t.index-65),t.index);if(r.test(n))return!0}}return!1}testSchemaAt(e,t,n){return this.__schemas__[t.toLowerCase()]?this.__schemas__[t.toLowerCase()].validate(e.slice(0,n+this.__opts__.maxLength),n,this):0}match(e){let t=[],n=this.re.get_schema_search(),r,i,a,o,s,c,l=!1,u=!1,d=!1,f=0;if(!e.length)return null;for(n.lastIndex=0,this.__opts__.fuzzyLink&&this.__schemas__[`http:`]&&(r=this.re.get_fuzzy_link_search(),r.lastIndex=0),this.__opts__.fuzzyEmail&&this.__schemas__[`mailto:`]&&(i=this.re.get_fuzzy_mail_host_search(),i.lastIndex=0,a=this.re.get_mail_name_validator());;){let p=Math.max(f-1,0);if(i&&a&&!d&&(!s||s.index<f))for(i.lastIndex<p&&(i.lastIndex=p);;){let t=i.exec(e);if(!t){d=!0,s=void 0;break}let n=a.exec(e.slice(Math.max(0,t.index-65),t.index));if(n){if(s={schema:`mailto:`,index:t.index-n[1].length,lastIndex:t.index+t[0].length},s.index>=f)break;i.lastIndex<p&&(i.lastIndex=p)}}if(r&&!u&&(!o||o.index<f))for(r.lastIndex<p&&(r.lastIndex=p);;){let t=r.exec(e);if(!t){u=!0,o=void 0;break}if(o={schema:``,index:t.index+t[1].length,lastIndex:t.index+t[0].length},o.index>=f)break;r.lastIndex<p&&(r.lastIndex=p)}let m=s;(!m||o&&(o.index<m.index||o.index===m.index&&o.lastIndex>m.lastIndex))&&(m=o);let h;if(!l)for(;;){if(!c){n.lastIndex<p&&(n.lastIndex=p);let t=n.exec(e);if(!t){l=!0;break}c={schema:t[2],index:t.index+t[1].length,lastIndex:t.index+t[0].length}}if(c.index<f){c=void 0;continue}if(m&&c.index>m.index)break;let t=c;c=void 0;let r=this.testSchemaAt(e,t.schema,t.lastIndex);if(r){h={schema:t.schema,index:t.index,lastIndex:t.lastIndex+r};break}}let g=h;if((!g||s&&(s.index<g.index||s.index===g.index&&s.lastIndex>g.lastIndex))&&(g=s),(!g||o&&(o.index<g.index||o.index===g.index&&o.lastIndex>g.lastIndex))&&(g=o),!g)break;g===s?s=void 0:g===o&&(o=void 0);let _=new zo(e,g.schema,g.index,g.lastIndex);_.schema?this.__schemas__[_.schema].normalize(_,this):this.normalize(_),t.push(_),f=g.lastIndex}return t.length?t:null}matchAtStart(e){if(!e.length)return null;let t=this.re.get_schema_at_start().exec(e);if(!t)return null;let n=this.testSchemaAt(e,t[2],t[0].length);if(!n)return null;let r=new zo(e,t[2],t.index+t[1].length,t.index+t[0].length+n);return this.__schemas__[r.schema].normalize(r,this),r}tlds(e,t=!1){return e=Array.isArray(e)?e:[e],t?this.__opts__.tlds=this.__opts__.tlds.concat(e):this.__opts__.tlds=e,this.re.set({...this.__opts__,schema_names:Object.keys(this.__schemas__)}),this}normalize(e){e.schema||(e.url=`http://${e.url}`),e.schema===`mailto:`&&!/^mailto:/i.test(e.url)&&(e.url=`mailto:${e.url}`)}},Vo=2147483647,Ho=36,Uo=1,Wo=26,Go=38,Ko=700,qo=72,Jo=128,Yo=`-`,Xo=/^xn--/,Zo=/[^\0-\x7F]/,Qo=/[\x2E\u3002\uFF0E\uFF61]/g,$o={overflow:`Overflow: input needs wider integers to process`,"not-basic":`Illegal input >= 0x80 (not a basic code point)`,"invalid-input":`Invalid input`},es=35,q=Math.floor,ts=String.fromCharCode;function ns(e){throw RangeError($o[e])}function rs(e,t){let n=[],r=e.length;for(;r--;)n[r]=t(e[r]);return n}function is(e,t){let n=e.split(`@`),r=``;n.length>1&&(r=n[0]+`@`,e=n[1]),e=e.replace(Qo,`.`);let i=rs(e.split(`.`),t).join(`.`);return r+i}function as(e){let t=[],n=0,r=e.length;for(;n<r;){let i=e.charCodeAt(n++);if(i>=55296&&i<=56319&&n<r){let r=e.charCodeAt(n++);(r&64512)==56320?t.push(((i&1023)<<10)+(r&1023)+65536):(t.push(i),n--)}else t.push(i)}return t}var os=e=>String.fromCodePoint(...e),ss=function(e){return e>=48&&e<58?26+(e-48):e>=65&&e<91?e-65:e>=97&&e<123?e-97:Ho},cs=function(e,t){return e+22+75*(e<26)-((t!=0)<<5)},ls=function(e,t,n){let r=0;for(e=n?q(e/Ko):e>>1,e+=q(e/t);e>455;r+=Ho)e=q(e/es);return q(r+36*e/(e+Go))},us=function(e){let t=[],n=e.length,r=0,i=Jo,a=qo,o=e.lastIndexOf(Yo);o<0&&(o=0);for(let n=0;n<o;++n)e.charCodeAt(n)>=128&&ns(`not-basic`),t.push(e.charCodeAt(n));for(let s=o>0?o+1:0;s<n;){let o=r;for(let t=1,i=Ho;;i+=Ho){s>=n&&ns(`invalid-input`);let o=ss(e.charCodeAt(s++));o>=Ho&&ns(`invalid-input`),o>q((Vo-r)/t)&&ns(`overflow`),r+=o*t;let c=i<=a?Uo:i>=a+Wo?Wo:i-a;if(o<c)break;let l=Ho-c;t>q(Vo/l)&&ns(`overflow`),t*=l}let c=t.length+1;a=ls(r-o,c,o==0),q(r/c)>Vo-i&&ns(`overflow`),i+=q(r/c),r%=c,t.splice(r++,0,i)}return String.fromCodePoint(...t)},ds=function(e){let t=[];e=as(e);let n=e.length,r=Jo,i=0,a=qo;for(let n of e)n<128&&t.push(ts(n));let o=t.length,s=o;for(o&&t.push(Yo);s<n;){let n=Vo;for(let t of e)t>=r&&t<n&&(n=t);let c=s+1;n-r>q((Vo-i)/c)&&ns(`overflow`),i+=(n-r)*c,r=n;for(let n of e)if(n<r&&++i>Vo&&ns(`overflow`),n===r){let e=i;for(let n=Ho;;n+=Ho){let r=n<=a?Uo:n>=a+Wo?Wo:n-a;if(e<r)break;let i=e-r,o=Ho-r;t.push(ts(cs(r+i%o,0))),e=q(i/o)}t.push(ts(cs(e,0))),a=ls(i,c,s===o),i=0,++s}++i,++r}return t.join(``)},fs={version:`2.3.1`,ucs2:{decode:as,encode:os},decode:us,encode:ds,toASCII:function(e){return is(e,function(e){return Zo.test(e)?`xn--`+ds(e):e})},toUnicode:function(e){return is(e,function(e){return Xo.test(e)?us(e.slice(4).toLowerCase()):e})}},ps=Object.defineProperty,ms=(e,t)=>{let n={};for(var r in e)ps(n,r,{get:e[r],enumerable:!0});return t||ps(n,Symbol.toStringTag,{value:`Module`}),n},hs=ms({arrayReplaceAt:()=>_s,asciiTrim:()=>zs,callable:()=>gs,escapeHtml:()=>As,escapeRE:()=>Ms,fromCodePoint:()=>ys,isMdAsciiPunct:()=>Is,isPunctChar:()=>Ps,isPunctCharCode:()=>Fs,isSpace:()=>J,isValidEntityCode:()=>vs,isWhiteSpace:()=>Ns,lib:()=>Bs,normalizeReference:()=>Ls,unescapeAll:()=>Ts,unescapeMd:()=>ws});function gs(e){let t=function(...n){return Reflect.construct(e,n,new.target&&new.target!==t?new.target:e)};return Object.defineProperty(t,"name",{value:e.name}),Object.setPrototypeOf(t,e),t.prototype=e.prototype,t}function _s(e,t,n){return[].concat(e.slice(0,t),n,e.slice(t+1))}function vs(e){return!(e>=55296&&e<=57343||e>=64976&&e<=65007||(e&65535)==65535||(e&65535)==65534||e>=0&&e<=8||e===11||e>=14&&e<=31||e>=127&&e<=159||e>1114111)}function ys(e){if(e>65535){e-=65536;let t=55296+(e>>10),n=56320+(e&1023);return String.fromCharCode(t,n)}return String.fromCharCode(e)}var bs=/\\([!"#$%&'()*+,\-./:;<=>?@[\\\]^_`{|}~])/g,xs=RegExp(`${bs.source}|&([a-z#][a-z0-9]{1,31});`,`gi`),Ss=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))$/i;function Cs(e,t){if(t.charCodeAt(0)===35&&Ss.test(t)){let n=t[1].toLowerCase()===`x`?parseInt(t.slice(2),16):parseInt(t.slice(1),10);return vs(n)?ys(n):e}let n=jo(e);return n===e?e:n}function ws(e){return e.indexOf(`\\`)<0?e:e.replace(bs,`$1`)}function Ts(e){return e.indexOf(`\\`)<0&&e.indexOf(`&`)<0?e:e.replace(xs,function(e,t,n){return t||Cs(e,n)})}var Es=/[&<>"]/,Ds=/[&<>"]/g,Os={"&":`&`,"<":`<`,">":`>`,'"':`"`};function ks(e){return Os[e]}function As(e){return Es.test(e)?e.replace(Ds,ks):e}var js=/[.?*+^$[\]\\(){}|-]/g;function Ms(e){return e.replace(js,`\\$&`)}function J(e){switch(e){case 9:case 32:return!0}return!1}function Ns(e){if(e>=8192&&e<=8202)return!0;switch(e){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1}function Ps(e){return ao.test(e)||oo.test(e)}function Fs(e){return Ps(ys(e))}function Is(e){switch(e){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1}}function Ls(e){return e=e.trim().replace(/\s+/g,` `),e.toLowerCase().toUpperCase()}function Rs(e){return e===32||e===9||e===10||e===13}function zs(e){let t=0;for(;t<e.length&&Rs(e.charCodeAt(t));t++);let n=e.length-1;for(;n>=t&&Rs(e.charCodeAt(n));n--);return e.slice(t,n+1)}var Bs={mdurl:eo,ucmicro:to};function Vs(e,t,n){let r,i,a,o,s=e.posMax,c=e.pos;for(e.pos=t+1,r=1;e.pos<s;){if(a=e.src.charCodeAt(e.pos),a===93&&(r--,r===0)){i=!0;break}if(o=e.pos,e.md.inline.skipToken(e),a===91){if(o===e.pos-1)r++;else if(n)return e.pos=c,-1}}let l=-1;return i&&(l=e.pos),e.pos=c,l}function Hs(e,t,n){let r,i=t,a={ok:!1,pos:0,str:``};if(e.charCodeAt(i)===60){for(i++;i<n;){if(r=e.charCodeAt(i),r===10||r===60)return a;if(r===62)return a.pos=i+1,a.str=Ts(e.slice(t+1,i)),a.ok=!0,a;if(r===92&&i+1<n){i+=2;continue}i++}return a}let o=0;for(;i<n&&(r=e.charCodeAt(i),!(r===32||r<32||r===127));){if(r===92&&i+1<n){if(e.charCodeAt(i+1)===32){i++;continue}i+=2;continue}if(r===40&&(o++,o>32))return a;if(r===41){if(o===0)break;o--}i++}return t===i||o!==0?a:(a.str=Ts(e.slice(t,i)),a.pos=i,a.ok=!0,a)}function Us(e,t,n,r){let i,a=t,o={ok:!1,can_continue:!1,pos:0,str:``,marker:0};if(r)o.str=r.str,o.marker=r.marker;else{if(a>=n)return o;let r=e.charCodeAt(a);if(r!==34&&r!==39&&r!==40)return o;t++,a++,r===40&&(r=41),o.marker=r}for(;a<n;){if(i=e.charCodeAt(a),i===o.marker)return o.pos=a+1,o.str+=Ts(e.slice(t,a)),o.ok=!0,o;if(i===40&&o.marker===41)return o;i===92&&a+1<n&&a++,a++}return o.can_continue=!0,o.str+=Ts(e.slice(t,a)),o}var Ws=ms({parseLinkDestination:()=>Hs,parseLinkLabel:()=>Vs,parseLinkTitle:()=>Us});function Gs(e){"@babel/helpers - typeof";return Gs=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},Gs(e)}function Ks(e,t){if(Gs(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(Gs(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function qs(e){var t=Ks(e,`string`);return Gs(t)==`symbol`?t:t+``}function Y(e,t,n){return(t=qs(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Js=class{constructor(e,t,n){Y(this,`map`,null),Y(this,`level`,0),Y(this,`children`,null),Y(this,`content`,``),Y(this,`markup`,``),Y(this,`info`,``),Y(this,`block`,!1),Y(this,`hidden`,!1),this.type=e,this.tag=t,this.attrs=null,this.nesting=n,this.meta=null}attrIndex(e){if(!this.attrs)return-1;let t=this.attrs;for(let n=0,r=t.length;n<r;n++)if(t[n][0]===e)return n;return-1}attrPush(e){this.attrs?this.attrs.push(e):this.attrs=[e]}attrSet(e,t){let n=this.attrIndex(e),r=[e,t];n<0?this.attrPush(r):this.attrs[n]=r}attrGet(e){let t=this.attrIndex(e),n=null;return t>=0&&(n=this.attrs[t][1]),n}attrJoin(e,t){let n=this.attrIndex(e);n<0?this.attrPush([e,t]):this.attrs[n][1]=`${this.attrs[n][1]} ${t}`}},Ys=class{constructor(){Y(this,`__rules__`,[]),Y(this,`__cache__`,null)}__find__(e){for(let t=0;t<this.__rules__.length;t++)if(this.__rules__[t].name===e)return t;return-1}__compile__(){let e=new Set;this.__rules__.forEach(t=>{t.enabled&&t.alt.forEach(t=>{t&&e.add(t)})}),this.__cache__=Object.create(null),this.__cache__[``]=[],this.__rules__.forEach(e=>{e.enabled&&this.__cache__[``].push(e.fn)}),e.forEach(e=>{this.__cache__[e]=[],this.__rules__.forEach(t=>{t.enabled&&t.alt.indexOf(e)>=0&&this.__cache__[e].push(t.fn)})})}at(e,t,n={}){let r=this.__find__(e);if(r===-1)throw Error(`Parser rule not found: ${e}`);this.__rules__[r].fn=t,this.__rules__[r].alt=n.alt||[],this.__cache__=null}before(e,t,n,r={}){let i=this.__find__(e);if(i===-1)throw Error(`Parser rule not found: ${e}`);this.__rules__.splice(i,0,{name:t,enabled:!0,fn:n,alt:r.alt||[]}),this.__cache__=null}after(e,t,n,r={}){let i=this.__find__(e);if(i===-1)throw Error(`Parser rule not found: ${e}`);this.__rules__.splice(i+1,0,{name:t,enabled:!0,fn:n,alt:r.alt||[]}),this.__cache__=null}push(e,t,n={}){this.__rules__.push({name:e,enabled:!0,fn:t,alt:n.alt||[]}),this.__cache__=null}enable(e,t=!1){Array.isArray(e)||(e=[e]);let n=[];return e.forEach(e=>{let r=this.__find__(e);if(r<0){if(t)return;throw Error(`Rules manager: invalid rule name ${e}`)}this.__rules__[r].enabled=!0,n.push(e)}),this.__cache__=null,n}enableOnly(e,t=!1){Array.isArray(e)||(e=[e]),this.__rules__.forEach(e=>{e.enabled=!1}),this.enable(e,t)}disable(e,t=!1){Array.isArray(e)||(e=[e]);let n=[];return e.forEach(e=>{let r=this.__find__(e);if(r<0){if(t)return;throw Error(`Rules manager: invalid rule name ${e}`)}this.__rules__[r].enabled=!1,n.push(e)}),this.__cache__=null,n}getRules(e){return this.__cache__||this.__compile__(),this.__cache__[e]||[]}},X={};X.code_inline=function(e,t,n,r,i){let a=e[t];return`<code${i.renderAttrs(a)}>${As(a.content)}</code>`},X.code_block=function(e,t,n,r,i){let a=e[t];return`<pre${i.renderAttrs(a)}><code>${As(e[t].content)}</code></pre>\n`},X.fence=function(e,t,n,r,i){let a=e[t],o=a.info?Ts(a.info).trim():``,s=``,c=``;if(o){let e=o.split(/(\s+)/g);s=e[0],c=e.slice(2).join(``)}let l;if(l=n.highlight&&n.highlight(a.content,s,c)||As(a.content),l.indexOf(`<pre`)===0)return l+`
|
|
198
|
+
</li>`:C`<li class="chip">${e.name}</li>`}var La={};function Ra(e){let t=La[e];if(t)return t;t=La[e]=[];for(let e=0;e<128;e++){let n=String.fromCharCode(e);t.push(n)}for(let n=0;n<e.length;n++){let r=e.charCodeAt(n);t[r]=`%`+(`0`+r.toString(16).toUpperCase()).slice(-2)}return t}function za(e,t){typeof t!=`string`&&(t=za.defaultChars);let n=Ra(t);return e.replace(/(%[a-f0-9]{2})+/gi,function(e){let t=``;for(let r=0,i=e.length;r<i;r+=3){let a=parseInt(e.slice(r+1,r+3),16);if(a<128){t+=n[a];continue}if((a&224)==192&&r+3<i){let n=parseInt(e.slice(r+4,r+6),16);if((n&192)==128){let e=a<<6&1984|n&63;t+=e<128?`��`:String.fromCharCode(e),r+=3;continue}}if((a&240)==224&&r+6<i){let n=parseInt(e.slice(r+4,r+6),16),i=parseInt(e.slice(r+7,r+9),16);if((n&192)==128&&(i&192)==128){let e=a<<12&61440|n<<6&4032|i&63;t+=e<2048||e>=55296&&e<=57343?`���`:String.fromCharCode(e),r+=6;continue}}if((a&248)==240&&r+9<i){let n=parseInt(e.slice(r+4,r+6),16),i=parseInt(e.slice(r+7,r+9),16),o=parseInt(e.slice(r+10,r+12),16);if((n&192)==128&&(i&192)==128&&(o&192)==128){let e=a<<18&1835008|n<<12&258048|i<<6&4032|o&63;e<65536||e>1114111?t+=`����`:(e-=65536,t+=String.fromCharCode(55296+(e>>10),56320+(e&1023))),r+=9;continue}}t+=`�`}return t})}za.defaultChars=`;/?:@&=+$,#`,za.componentChars=``;var Ba={};function Va(e){let t=Ba[e];if(t)return t;t=Ba[e]=[];for(let e=0;e<128;e++){let n=String.fromCharCode(e);/^[0-9a-z]$/i.test(n)?t.push(n):t.push(`%`+(`0`+e.toString(16).toUpperCase()).slice(-2))}for(let n=0;n<e.length;n++)t[e.charCodeAt(n)]=e[n];return t}function U(e,t,n){typeof t!=`string`&&(n=t,t=U.defaultChars),n===void 0&&(n=!0);let r=Va(t),i=``;for(let t=0,a=e.length;t<a;t++){let o=e.charCodeAt(t);if(n&&o===37&&t+2<a&&/^[0-9a-f]{2}$/i.test(e.slice(t+1,t+3))){i+=e.slice(t,t+3),t+=2;continue}if(o<128){i+=r[o];continue}if(o>=55296&&o<=57343){if(o>=55296&&o<=56319&&t+1<a){let n=e.charCodeAt(t+1);if(n>=56320&&n<=57343){i+=encodeURIComponent(e[t]+e[t+1]),t++;continue}}i+=`%EF%BF%BD`;continue}i+=encodeURIComponent(e[t])}return i}U.defaultChars=`;/?:@&=+$,-_.!~*'()#`,U.componentChars=`-_.!~*'()`;function Ha(e){let t=``;return t+=e.protocol||``,t+=e.slashes?`//`:``,t+=e.auth?e.auth+`@`:``,e.hostname&&e.hostname.indexOf(`:`)!==-1?t+=`[`+e.hostname+`]`:t+=e.hostname||``,t+=e.port?`:`+e.port:``,t+=e.pathname||``,t+=e.search||``,t+=e.hash||``,t}function Ua(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}var Wa=/^([a-z0-9.+-]+:)/i,Ga=/:[0-9]*$/,Ka=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,qa=[`%`,`/`,`?`,`;`,`#`,`'`,`{`,`}`,`|`,`\\`,`^`,"`",`<`,`>`,`"`,"`",` `,`\r`,`
|
|
199
|
+
`,` `],Ja=[`/`,`?`,`#`],Ya=255,Xa=/^[+a-z0-9A-Z_-]{0,63}$/,Za=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,Qa={javascript:!0,"javascript:":!0},$a={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function eo(e,t){if(e&&e instanceof Ua)return e;let n=new Ua;return n.parse(e,t),n}Ua.prototype.parse=function(e,t){let n,r,i,a=e;if(a=a.trim(),!t&&e.split(`#`).length===1){let e=Ka.exec(a);if(e)return this.pathname=e[1],e[2]&&(this.search=e[2]),this}let o=Wa.exec(a);if(o&&(o=o[0],n=o.toLowerCase(),this.protocol=o,a=a.substr(o.length)),(t||o||a.match(/^\/\/[^@\/]+@[^@\/]+/))&&(i=a.substr(0,2)===`//`,i&&!(o&&Qa[o])&&(a=a.substr(2),this.slashes=!0)),!Qa[o]&&(i||o&&!$a[o])){let e=-1;for(let t=0;t<Ja.length;t++)r=a.indexOf(Ja[t]),r!==-1&&(e===-1||r<e)&&(e=r);let t,n;n=e===-1?a.lastIndexOf(`@`):a.lastIndexOf(`@`,e),n!==-1&&(t=a.slice(0,n),a=a.slice(n+1),this.auth=t),e=-1;for(let t=0;t<qa.length;t++)r=a.indexOf(qa[t]),r!==-1&&(e===-1||r<e)&&(e=r);e===-1&&(e=a.length),a[e-1]===`:`&&e--;let i=a.slice(0,e);a=a.slice(e),this.parseHost(i),this.hostname=this.hostname||``;let o=this.hostname[0]===`[`&&this.hostname[this.hostname.length-1]===`]`;if(!o){let e=this.hostname.split(/\./);for(let t=0,n=e.length;t<n;t++){let n=e[t];if(n&&!n.match(Xa)){let r=``;for(let e=0,t=n.length;e<t;e++)n.charCodeAt(e)>127?r+=`x`:r+=n[e];if(!r.match(Xa)){let r=e.slice(0,t),i=e.slice(t+1),o=n.match(Za);o&&(r.push(o[1]),i.unshift(o[2])),i.length&&(a=i.join(`.`)+a),this.hostname=r.join(`.`);break}}}}this.hostname.length>Ya&&(this.hostname=``),o&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}let s=a.indexOf(`#`);s!==-1&&(this.hash=a.substr(s),a=a.slice(0,s));let c=a.indexOf(`?`);return c!==-1&&(this.search=a.substr(c),a=a.slice(0,c)),a&&(this.pathname=a),$a[n]&&this.hostname&&!this.pathname&&(this.pathname=``),this},Ua.prototype.parseHost=function(e){let t=Ga.exec(e);t&&(t=t[0],t!==`:`&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)};var to=n({decode:()=>za,encode:()=>U,format:()=>Ha,parse:()=>eo}),no=n({Any:()=>ro,Cc:()=>io,Cf:()=>ao,P:()=>oo,S:()=>so,Z:()=>co}),ro=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,io=/[\0-\x1F\x7F-\x9F]/,ao=/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u0890\u0891\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD80D[\uDC30-\uDC3F]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/,oo=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B4E\u1B4F\u1B5A-\u1B60\u1B7D-\u1B7F\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDD6E\uDEAD\uDED0\uDF55-\uDF59\uDF86-\uDF89]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9\uDFD4\uDFD5\uDFD7\uDFD8]|\uD805[\uDC4B-\uDC4F\uDC5A\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDEB9\uDF3C-\uDF3E]|\uD806[\uDC3B\uDD44-\uDD46\uDDE2\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2\uDF00-\uDF09\uDFE1]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8\uDF43-\uDF4F\uDFFF]|\uD809[\uDC70-\uDC74]|\uD80B[\uDFF1\uDFF2]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDD6D-\uDD6F\uDE97-\uDE9A\uDFE2]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD839\uDDFF|\uD83A[\uDD5E\uDD5F]/,so=/[\$\+<->\^`\|~\xA2-\xA6\xA8\xA9\xAC\xAE-\xB1\xB4\xB8\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0384\u0385\u03F6\u0482\u058D-\u058F\u0606-\u0608\u060B\u060E\u060F\u06DE\u06E9\u06FD\u06FE\u07F6\u07FE\u07FF\u0888\u09F2\u09F3\u09FA\u09FB\u0AF1\u0B70\u0BF3-\u0BFA\u0C7F\u0D4F\u0D79\u0E3F\u0F01-\u0F03\u0F13\u0F15-\u0F17\u0F1A-\u0F1F\u0F34\u0F36\u0F38\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE\u0FCF\u0FD5-\u0FD8\u109E\u109F\u1390-\u1399\u166D\u17DB\u1940\u19DE-\u19FF\u1B61-\u1B6A\u1B74-\u1B7C\u1FBD\u1FBF-\u1FC1\u1FCD-\u1FCF\u1FDD-\u1FDF\u1FED-\u1FEF\u1FFD\u1FFE\u2044\u2052\u207A-\u207C\u208A-\u208C\u20A0-\u20C1\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F\u218A\u218B\u2190-\u2307\u230C-\u2328\u232B-\u2429\u2440-\u244A\u249C-\u24E9\u2500-\u2767\u2794-\u27C4\u27C7-\u27E5\u27F0-\u2982\u2999-\u29D7\u29DC-\u29FB\u29FE-\u2B73\u2B76-\u2BFF\u2CE5-\u2CEA\u2E50\u2E51\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFF\u3004\u3012\u3013\u3020\u3036\u3037\u303E\u303F\u309B\u309C\u3190\u3191\u3196-\u319F\u31C0-\u31E5\u31EF\u3200-\u321E\u322A-\u3247\u3250\u3260-\u327F\u328A-\u32B0\u32C0-\u33FF\u4DC0-\u4DFF\uA490-\uA4C6\uA700-\uA716\uA720\uA721\uA789\uA78A\uA828-\uA82B\uA836-\uA839\uAA77-\uAA79\uAB5B\uAB6A\uAB6B\uFB29\uFBB2-\uFBD2\uFD40-\uFD4F\uFD90\uFD91\uFDC8-\uFDCF\uFDFC-\uFDFF\uFE62\uFE64-\uFE66\uFE69\uFF04\uFF0B\uFF1C-\uFF1E\uFF3E\uFF40\uFF5C\uFF5E\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFFC\uFFFD]|\uD800[\uDD37-\uDD3F\uDD79-\uDD89\uDD8C-\uDD8E\uDD90-\uDD9C\uDDA0\uDDD0-\uDDFC]|\uD802[\uDC77\uDC78\uDEC8]|\uD803[\uDD8E\uDD8F\uDED1-\uDED8]|\uD805\uDF3F|\uD807[\uDFD5-\uDFF1]|\uD81A[\uDF3C-\uDF3F\uDF45]|\uD82F\uDC9C|\uD833[\uDC00-\uDCEF\uDCFA-\uDCFC\uDD00-\uDEB3\uDEBA-\uDED0\uDEE0-\uDEF0\uDF50-\uDFC3]|\uD834[\uDC00-\uDCF5\uDD00-\uDD26\uDD29-\uDD64\uDD6A-\uDD6C\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDDEA\uDE00-\uDE41\uDE45\uDF00-\uDF56]|\uD835[\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85\uDE86]|\uD838[\uDD4F\uDEFF]|\uD83B[\uDCAC\uDCB0\uDD2E\uDEF0\uDEF1]|\uD83C[\uDC00-\uDC2B\uDC30-\uDC93\uDCA0-\uDCAE\uDCB1-\uDCBF\uDCC1-\uDCCF\uDCD1-\uDCF5\uDD0D-\uDDAD\uDDE6-\uDE02\uDE10-\uDE3B\uDE40-\uDE48\uDE50\uDE51\uDE60-\uDE65\uDF00-\uDFFF]|\uD83D[\uDC00-\uDED8\uDEDC-\uDEEC\uDEF0-\uDEFC\uDF00-\uDFD9\uDFE0-\uDFEB\uDFF0]|\uD83E[\uDC00-\uDC0B\uDC10-\uDC47\uDC50-\uDC59\uDC60-\uDC87\uDC90-\uDCAD\uDCB0-\uDCBB\uDCC0\uDCC1\uDCD0-\uDCD8\uDD00-\uDE57\uDE60-\uDE6D\uDE70-\uDE7C\uDE80-\uDE8A\uDE8E-\uDEC6\uDEC8\uDECD-\uDEDC\uDEDF-\uDEEA\uDEEF-\uDEF8\uDF00-\uDF92\uDF94-\uDFEF\uDFFA]/,co=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/,lo=[8364,0,8218,402,8222,8230,8224,8225,710,8240,352,8249,338,0,381,0,0,8216,8217,8220,8221,8226,8211,8212,732,8482,353,8250,339,0,382,376];function uo(e){return e===0||e>=55296&&e<=57343||e>1114111}function fo(e){return uo(e)?65533:e>=128&&e<=159&&lo[e-128]||e}function po(e){return e-1>>>0<127||e-160>>>0<55136?String.fromCharCode(e):String.fromCodePoint(fo(e))}var W=(()=>{let e=new Uint8Array(127),t=0;for(let n=33;n<=126;n++)n!==34&&n!==36&&n!==92&&(e[n]=t++);return e})();function mo(e,t,n,r,i,a){let o=e.length,s=a*90,c=0,l=()=>{let t=W[e.charCodeAt(c++)];return t<a?t:t*91-s+W[e.charCodeAt(c++)]},u=n-r,d=n+i,f=new Int32Array(d);f.fill(-1,r,a),f.fill(-1,a+u,d);let p=new Int32Array(d),m=new Int32Array(d);function h(t,n){let r=0,i=n,a=n+t;for(;i<a;){let t=W[e.charCodeAt(c++)];if(t<89)r+=t,f[i++]=r;else if(t===89){let t=W[e.charCodeAt(c++)]+2;for(;t--;)f[i++]=++r}else{let t=W[e.charCodeAt(c++)];r+=89+(t<90?t*91+W[e.charCodeAt(c++)]:W[e.charCodeAt(c++)]*8281+W[e.charCodeAt(c++)]*91+W[e.charCodeAt(c++)]),f[i++]=r}}}h(r,0),h(u,a);let g=new Int32Array(i*2),_=0,v=0;function y(e,t){for(let n=0;n<e;n++){let e=t+n,r=l(),i=l();g[v*2]=r,g[v*2+1]=i,v+=1,p[e]=_;let a=(f[r]<0?m[r]:1)+(f[i]<0?m[i]:1);m[e]=a,_+=a}}y(i-a+r,a+u),y(a-r,r);let b=new Uint16Array(_),x=0;for(let e=0;e<v;e++)for(let t=0;t<2;t++){let n=g[e*2+t],r=f[n];if(r<0){let e=p[n],t=e+m[n];for(;e<t;)b[x++]=b[e++]}else b[x++]=r}let S=new Uint16Array(t),ee=0;for(;c<o;){let t=W[e.charCodeAt(c++)];t>=a&&(t=t*91-s+W[e.charCodeAt(c++)]);let n=f[t];if(n<0){let e=p[t],n=e+m[t];for(;e<n;)S[ee++]=b[e++]}else S[ee++]=n}return S}var ho=mo("!}.&u%}'&}*'~!6*)%&,~!J~!J~%L~y<~!R,~~%Lu~~#GD~~#|)1#%}^%}2%+#.##%##%}&%##%'#%##&%#%#'%#&#%#&#'#%%#&#%##%#)%''%&%#%#'%#%%#%%}%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Y?C2F|P",13494,2713,49,25,61),G;(function(e){e[e.VALUE_LENGTH=49152]=`VALUE_LENGTH`,e[e.FLAG13=8192]=`FLAG13`,e[e.BRANCH_LENGTH=8064]=`BRANCH_LENGTH`,e[e.JUMP_TABLE=127]=`JUMP_TABLE`,e[e.VALUE_MASK=8191]=`VALUE_MASK`})(G||={});var K;(function(e){e[e.AMP=38]=`AMP`,e[e.NUM=35]=`NUM`,e[e.SEMI=59]=`SEMI`,e[e.EQUALS=61]=`EQUALS`,e[e.ZERO=48]=`ZERO`,e[e.NINE=57]=`NINE`,e[e.LOWER_A=97]=`LOWER_A`,e[e.LOWER_X=120]=`LOWER_X`})(K||={});var go=32,_o=21,vo=2097151,yo=2047,bo=0;function xo(e){let t=e>>>_o;return t===yo?bo:t}function So(e){return e-K.ZERO>>>0<=9}function Co(e){return(e|go)-K.LOWER_A>>>0<=5}function wo(e){return(e|go)-K.LOWER_A>>>0<=25}function To(e){return e===K.EQUALS||wo(e)||So(e)}var Eo;(function(e){e[e.EntityStart=0]=`EntityStart`,e[e.NumericStart=1]=`NumericStart`,e[e.NumericDecimal=2]=`NumericDecimal`,e[e.NumericHex=3]=`NumericHex`,e[e.NamedEntity=4]=`NamedEntity`})(Eo||={});var Do;(function(e){e[e.Legacy=0]=`Legacy`,e[e.Strict=1]=`Strict`,e[e.Attribute=2]=`Attribute`})(Do||={});function Oo(e,t,n,r){let i=(t&G.BRANCH_LENGTH)>>7,a=t&G.JUMP_TABLE;if(a){if(i===0)return r===a?n:-1;let t=r-a;if(t>>>0>=i)return-1;let o=e[n+t];return o===0?-1:n+i+o-1&65535}if(i===0)return-1;let o=i+1>>1,s=n+o+i;for(let t=0;t<i;t++){let i=e[n+(t>>1)]>>((t&1)<<3)&255;if(i===r)return s+e[n+o+t]&65535;if(i>r)return-1}return-1}function ko(e,t,n){return n===1?String.fromCharCode(e[t]&G.VALUE_MASK):n===2?String.fromCharCode(e[t+1]):String.fromCharCode(e[t+1],e[t+2])}function Ao(e,t,n){let r=t+1,i=0,a=r;if(r<n&&(e.charCodeAt(r)|go)===K.LOWER_X)for(r+=1,a=r;r<n;){let t=e.charCodeAt(r);if(So(t))i=i*16+(t-K.ZERO);else if(Co(t))i=i*16+((t|go)-K.LOWER_A+10);else break;r+=1}else for(;r<n;){let t=e.charCodeAt(r)-K.ZERO;if(t>>>0>9)break;i=i*10+t,r+=1}if(r===a)return 0;r<n&&e.charCodeAt(r)===K.SEMI&&(r+=1),i>1114111&&(i=1114112);let o=r-t;return o>=yo&&(bo=o,o=yo),o<<_o|i}function jo(e,t,n){let r=ho,i=e.indexOf(`&`);if(i<0)return e;let a=e.length,o=0,s=``,c=r[0],l=c&G.JUMP_TABLE,u=(c&G.BRANCH_LENGTH)>>7;do{let c=i+1,d=e.charCodeAt(c),f,p;if(d===K.NUM){let n=Ao(e,c,a);f=xo(n),t&&f>0&&e.charCodeAt(c+f-1)!==K.SEMI&&(f=0),p=f===0?``:po(n&vo)}else if(wo(d)){f=0,p=``;let n=d-l,i;if(n>>>0<u){let e=r[1+n];i=e===0?-1:u+e&65535}else i=-1;let o=0,s=0,m=i<0?0:r[i],h=c+1;trie:for(;h<a;){for(;(m&(G.VALUE_LENGTH|G.FLAG13))===0&&(m&G.JUMP_TABLE)!==0;){let t=m&G.JUMP_TABLE,n=(m&G.BRANCH_LENGTH)>>7;if(n===0){if(e.charCodeAt(h)!==t)break trie;i+=1}else{let a=e.charCodeAt(h)-t;if(a>>>0>=n)break trie;let o=r[i+1+a];if(o===0)break trie;i=i+n+o&65535}if(m=r[i],h+=1,h>=a)break trie}if((m&(G.VALUE_LENGTH|G.FLAG13))===G.FLAG13){let t=(m&G.BRANCH_LENGTH)>>7;if(e.charCodeAt(h)!==(m&G.JUMP_TABLE))break;h+=1;let n=t-1,a=i+1,o=0;for(;o+1<n;o+=2){let t=r[a];if(e.charCodeAt(h)!==(t&255)||(h+=1,e.charCodeAt(h)!==(t>>8&255)))break trie;h+=1,a+=1}if(o<n){if(e.charCodeAt(h)!==(r[a]&255))break;h+=1}i+=1+(t>>1),m=r[i];continue}let n=m>>>14,l=e.charCodeAt(h);if(n!==0){if(l===K.SEMI){f=h-c+1,p=n===1?String.fromCharCode(m&G.VALUE_MASK):ko(r,i,n);break}if(!t&&(m&G.FLAG13)===0&&(f=h-c,o=i,s=n),n===1)break}let u=Oo(r,m,i+(n||1),l);if(u<0)break;i=u,m=r[i],h+=1}if(p===``){let e=m>>>14;e!==0&&!t&&(m&G.FLAG13)===0&&(f=h-c,o=i,s=e),f>0&&(p=ko(r,o,s))}}else f=0,p=``;f===0||n&&d!==K.NUM&&e.charCodeAt(c+f-1)!==K.SEMI&&c+f<a&&To(e.charCodeAt(c+f))?i=c:(o<i&&(s+=e.slice(o,i)),s+=p,i=o=c+f),e.charCodeAt(i)!==K.AMP&&(i=e.indexOf(`&`,i))}while(i>=0);return s+e.slice(o)}function Mo(e){return jo(e,!0,!1)}var No=class{src_Any=ro.source;src_Cc=io.source;src_Z=co.source;src_P=oo.source;src_ZPCc=[this.src_Z,this.src_P,this.src_Cc].join(`|`);src_ZCc=[this.src_Z,this.src_Cc].join(`|`);cache={};opts={maxLength:1e4,urlAuth:!1,schema_names:[]};constructor(e={}){this.opts={...this.opts,...e}}set(e={}){return this.opts={...this.opts,...e},this.cache={},this}escapeRE(e){return e.replace(/[.?*+^$[\]\\(){}|-]/g,`\\$&`)}nestedPairRE(e,t,n=4){let r=this.escapeRE(e),i=this.escapeRE(t),a=`(?:(?!${this.src_ZCc}|${r}|${i}).)`,o=`${r}${a}{0,1000}${i}`;for(let e=2;e<=n;e++)o=`${r}(?:${a}|${o}){0,1000}${i}`;return o}get_text_separators(){return this.cache.text_separators??=/[><\uff5c]/}get_pseudo_letter(){return this.cache.src_pseudo_letter??=RegExp(`(?:(?!${this.get_text_separators().source}|${this.src_ZPCc})${this.src_Any})`)}get_ipv4_addr(){return this.cache.src_ip4??=RegExp(`(?:(?:25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])[.]){3}(?:25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])`)}get_ipv6_addr(){let e=`[0-9A-Fa-f]{1,4}`,t=`(?:(?:${e}:${e})|${this.get_ipv4_addr().source})`;return this.cache.src_ip6_addr??=RegExp(`(?:(?:${e}:){6}${t}|::(?:${e}:){5}${t}|(?:${e})?::(?:${e}:){4}${t}|(?:(?:${e}:){0,1}${e})?::(?:${e}:){3}${t}|(?:(?:${e}:){0,2}${e})?::(?:${e}:){2}${t}|(?:(?:${e}:){0,3}${e})?::${e}:${t}|(?:(?:${e}:){0,4}${e})?::${t}|(?:(?:${e}:){0,5}${e})?::${e}|(?:(?:${e}:){0,6}${e})?::)`)}get_ipv6_url_host(){return this.cache.src_ip6_host??=RegExp(`\\[${this.get_ipv6_addr().source}\\]`)}get_ipv6_mail_host(){return this.cache.src_ipv6_mail_host??=RegExp(`\\[IPv6:${this.get_ipv6_addr().source}\\]`)}get_auth(){return this.cache.src_auth??=RegExp(`(?:(?:(?!${this.src_ZCc}|[@/\\[\\]()]).){1,50}@)?`)}get_port(){return this.cache.src_port??=RegExp(`(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?`)}get_host_terminator(){return this.cache.src_host_terminator??=RegExp(`(?=$|${this.get_text_separators().source}|${this.src_ZPCc})(?!${this.opts[`---`]?`-(?!--)|`:`-|`}_|:\\d|\\.-|\\.(?!$|${this.src_ZPCc}))`)}get_path_terminator(){return this.cache.src_path_terminator??=RegExp(`${this.src_ZPCc}|${this.get_text_separators().source}`)}get_path(){return this.cache.src_path??=RegExp(`(?:[/?#](?:${this.nestedPairRE(`[`,`]`)}|${this.nestedPairRE(`(`,`)`)}|${this.nestedPairRE(`{`,`}`)}|\\"(?:(?!${this.src_ZCc}|["]).){1,100}\\"|\\'(?:(?!${this.src_ZCc}|[']).){1,100}\\'|\\'(?=${this.get_pseudo_letter().source}|[-])|\\.{2,20}[:]?[a-zA-Z0-9%/&]|\\.(?!${this.src_ZCc}|[.]|$)|`+(this.opts[`---`]?`\\-(?!--(?:[^-]|$))(?:-{0,19})|`:`\\-{1,20}|`)+`,(?!${this.src_ZCc}|$)|;(?!${this.src_ZCc}|$)|\\!{1,20}(?!${this.src_ZCc}|[!]|$)|\\?(?!${this.src_ZCc}|[?]|$)|`+this.get_path_extra().source+`[\\\\/:%@#&=_~*]|(?!${this.get_path_terminator().source}).){1,${this.opts.maxLength}}|\\/)?`)}get_mail_name(){return this.cache.src_mail_name??=RegExp("[-!#$%&'*+/=?^_`{|}~a-zA-Z0-9](?:[-!#$%&'*+/=?^_`{|}~a-zA-Z0-9]|[.](?=[-!#$%&'*+/=?^_`{|}~a-zA-Z0-9])){0,63}")}get_xn(){return this.cache.src_xn??=RegExp(`xn--[a-z0-9\\-]{1,59}`)}get_tld(){if(this.cache.tld)return this.cache.tld;let e=[...new Set(this.opts.tlds||[])].sort().reverse().join(`|`);return this.cache.tld=RegExp(`${e||`$#none#$`}|${this.get_xn().source}`),this.cache.tld}get_domain_root(){return this.cache.src_domain_root??=RegExp(`(?:`+this.get_xn().source+`|${this.get_pseudo_letter().source}{1,63})`)}get_domain(){return this.cache.src_domain??=RegExp(`(?:`+this.get_xn().source+`|(?:${this.get_pseudo_letter().source})|(?:${this.get_pseudo_letter().source}(?:-|${this.get_pseudo_letter().source}){0,61}${this.get_pseudo_letter().source}))`)}get_url_host_port(){return this.cache.url_host_port??=RegExp(`(?:`+this.get_ipv6_url_host().source+`|(?:(?:(?:${this.get_domain().source})\\.){0,10}${this.get_domain().source}))`+this.get_port().source+this.get_host_terminator().source)}get_fuzzy_url_host_port(){return this.cache.fuzzy_url_host_port??=RegExp(`(?:`+(this.opts.fuzzyIP?this.get_ipv4_addr().source+`|`:``)+`(?:(?:(?:${this.get_domain().source})\\.){1,10}(?:${this.get_tld().source})))`+this.get_host_terminator().source)}get_mail_host(){return this.cache.src_mail_host??=RegExp(`(?:`+this.get_ipv6_mail_host().source+`|(?:(?:(?:${this.get_domain().source})\\.){0,4}${this.get_domain().source}))`+this.get_host_terminator().source)}get_fuzzy_mail_host(){return this.cache.src_fuzzy_mail_host??=RegExp(`(?:`+this.get_ipv6_mail_host().source+`|(?:(?:(?:${this.get_domain().source})[.]){1,4}${this.get_domain_root().source}))`+this.get_host_terminator().source)}get_path_extra(){return this.cache.src_path_extra??=RegExp(``)}get_fuzzy_mail_host_search(){return this.cache.mail_fuzzy_host_search??=RegExp(`@${this.get_fuzzy_mail_host().source}`,`ig`)}get_fuzzy_link_search(){return this.cache.link_fuzzy_search??=RegExp(`(^|(?![.:/\\-_@])(?:[$+<=>^\`|\uff5c]|${this.src_ZPCc}))(?:(?![$+<=>^\`|\uff5c])${this.get_fuzzy_url_host_port().source}${this.get_path().source})`,`ig`)}get_http_validator(){return this.cache.http_validator??=RegExp(`\\/\\/`+(this.opts.urlAuth?this.get_auth().source:``)+this.get_url_host_port().source+this.get_path().source,`iy`)}get_relative_proto_validator(){return this.cache.relative_proto_validator??=RegExp((this.opts.urlAuth?this.get_auth().source:``)+`(?:localhost|${this.get_ipv6_url_host().source}|(?:(?:${this.get_domain().source})[.]){1,10}${this.get_domain_root().source})`+this.get_port().source+this.get_host_terminator().source+this.get_path().source,`iy`)}get_mail_name_validator(){return this.cache.mail_name_validator??=RegExp(`(?:^|${this.get_text_separators().source}|"|\\(|${this.src_ZCc})(${this.get_mail_name().source})$`)}get_mailto_validator(){return this.cache.mailto_validator??=RegExp(`${this.get_mail_name().source}@${this.get_mail_host().source}`,`iy`)}get_schema_names(){return this.cache.schema_names??=new RegExp((this.opts.schema_names||[]).map(e=>this.escapeRE(e)).join(`|`))}get_schema_search(){return this.cache.schema_search??=RegExp(`(^|(?!_)(?:[><\uff5c]|${this.src_ZPCc}))(${this.get_schema_names().source})`,`ig`)}get_schema_at_start(){return this.cache.schema_at_start??=RegExp(`^${this.get_schema_search().source}`,`i`)}},Po={validate:(e,t,n)=>{let r=n.re.get_http_validator();r.lastIndex=t;let i=r.exec(e);return i?i[0].length:0},normalize:(e,t)=>t.normalize(e)},Fo={"http:":Po,"https:":Po,"ftp:":Po,"//":{validate:function(e,t,n){let r=n.re.get_relative_proto_validator();r.lastIndex=t;let i=r.exec(e);return i?t>=3&&e[t-3]===`:`||t>=3&&e[t-3]===`/`?0:i[0].length:0},normalize:(e,t)=>t.normalize(e)},"mailto:":{validate:function(e,t,n){let r=n.re.get_mailto_validator();r.lastIndex=t;let i=r.exec(e);return i?i[0].length:0},normalize:(e,t)=>t.normalize(e)}},Io=`a:cdefgilmnoqrstuwxz|b:abdefghijmnorstvwyz|c:acdfghiklmnoruvwxyz|d:ejkmoz|e:cegrstu|f:ijkmor|g:abdefghilmnpqrstuwy|h:kmnrtu|i:delmnoqrst|j:emop|k:eghimnprwyz|l:abcikrstuvy|m:acdeghklmnopqrstuvwxyz|n:acefgilopruz|o:m|p:aefghklmnrstwy|q:a|r:eosuw|s:abcdeghijklmnortuvxyz|t:cdfghjklmnortvwz|u:agksyz|v:aceginu|w:fs|y:et|z:amw`,Lo=`biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф`;function Ro(){let e=Lo.split(`|`);return Io.split(`|`).forEach(t=>{let n=t.indexOf(`:`),r=t.slice(0,n);for(let i of t.slice(n+1))e.push(r+i)}),e}var zo={fuzzyLink:!1,fuzzyEmail:!0,fuzzyIP:!1,"---":!1,tlds:Ro(),urlAuth:!1,maxLength:1e4},Bo=class{schema;index;lastIndex;raw;text;url;constructor(e,t,n,r){let i=e.slice(n,r);this.schema=t.toLowerCase(),this.index=n,this.lastIndex=r,this.raw=i,this.text=i,this.url=i}},Vo=class{__opts__;__schemas__;re;constructor(e={}){let{rebuilder:t,...n}=e;this.__opts__={...zo,...n},this.__schemas__={...Fo},this.re=t||new No,this.re.set({...this.__opts__,schema_names:Object.keys(this.__schemas__)})}add(e,t=null){if(!t)delete this.__schemas__[e];else{let n={normalize:(e,t)=>t.normalize(e),...t};this.__schemas__[e]=n}return this.re.set({...this.__opts__,schema_names:Object.keys(this.__schemas__)}),this}set(e={}){return this.__opts__={...this.__opts__,...e},this.re.set({...this.__opts__,schema_names:Object.keys(this.__schemas__)}),this}test(e){if(!e.length)return!1;let t,n;for(n=this.re.get_schema_search(),n.lastIndex=0;(t=n.exec(e))!==null;)if(this.testSchemaAt(e,t[2],n.lastIndex))return!0;if(this.__opts__.fuzzyLink&&this.__schemas__[`http:`]&&(n=this.re.get_fuzzy_link_search(),n.lastIndex=0,n.exec(e)!==null))return!0;if(this.__opts__.fuzzyEmail&&this.__schemas__[`mailto:`]&&e.indexOf(`@`)>=0){let n=this.re.get_fuzzy_mail_host_search(),r=this.re.get_mail_name_validator();for(n.lastIndex=0;(t=n.exec(e))!==null;){let n=e.slice(Math.max(0,t.index-65),t.index);if(r.test(n))return!0}}return!1}testSchemaAt(e,t,n){return this.__schemas__[t.toLowerCase()]?this.__schemas__[t.toLowerCase()].validate(e.slice(0,n+this.__opts__.maxLength),n,this):0}match(e){let t=[],n=this.re.get_schema_search(),r,i,a,o,s,c,l=!1,u=!1,d=!1,f=0;if(!e.length)return null;for(n.lastIndex=0,this.__opts__.fuzzyLink&&this.__schemas__[`http:`]&&(r=this.re.get_fuzzy_link_search(),r.lastIndex=0),this.__opts__.fuzzyEmail&&this.__schemas__[`mailto:`]&&(i=this.re.get_fuzzy_mail_host_search(),i.lastIndex=0,a=this.re.get_mail_name_validator());;){let p=Math.max(f-1,0);if(i&&a&&!d&&(!s||s.index<f))for(i.lastIndex<p&&(i.lastIndex=p);;){let t=i.exec(e);if(!t){d=!0,s=void 0;break}let n=a.exec(e.slice(Math.max(0,t.index-65),t.index));if(n){if(s={schema:`mailto:`,index:t.index-n[1].length,lastIndex:t.index+t[0].length},s.index>=f)break;i.lastIndex<p&&(i.lastIndex=p)}}if(r&&!u&&(!o||o.index<f))for(r.lastIndex<p&&(r.lastIndex=p);;){let t=r.exec(e);if(!t){u=!0,o=void 0;break}if(o={schema:``,index:t.index+t[1].length,lastIndex:t.index+t[0].length},o.index>=f)break;r.lastIndex<p&&(r.lastIndex=p)}let m=s;(!m||o&&(o.index<m.index||o.index===m.index&&o.lastIndex>m.lastIndex))&&(m=o);let h;if(!l)for(;;){if(!c){n.lastIndex<p&&(n.lastIndex=p);let t=n.exec(e);if(!t){l=!0;break}c={schema:t[2],index:t.index+t[1].length,lastIndex:t.index+t[0].length}}if(c.index<f){c=void 0;continue}if(m&&c.index>m.index)break;let t=c;c=void 0;let r=this.testSchemaAt(e,t.schema,t.lastIndex);if(r){h={schema:t.schema,index:t.index,lastIndex:t.lastIndex+r};break}}let g=h;if((!g||s&&(s.index<g.index||s.index===g.index&&s.lastIndex>g.lastIndex))&&(g=s),(!g||o&&(o.index<g.index||o.index===g.index&&o.lastIndex>g.lastIndex))&&(g=o),!g)break;g===s?s=void 0:g===o&&(o=void 0);let _=new Bo(e,g.schema,g.index,g.lastIndex);_.schema?this.__schemas__[_.schema].normalize(_,this):this.normalize(_),t.push(_),f=g.lastIndex}return t.length?t:null}matchAtStart(e){if(!e.length)return null;let t=this.re.get_schema_at_start().exec(e);if(!t)return null;let n=this.testSchemaAt(e,t[2],t[0].length);if(!n)return null;let r=new Bo(e,t[2],t.index+t[1].length,t.index+t[0].length+n);return this.__schemas__[r.schema].normalize(r,this),r}tlds(e,t=!1){return e=Array.isArray(e)?e:[e],t?this.__opts__.tlds=this.__opts__.tlds.concat(e):this.__opts__.tlds=e,this.re.set({...this.__opts__,schema_names:Object.keys(this.__schemas__)}),this}normalize(e){e.schema||(e.url=`http://${e.url}`),e.schema===`mailto:`&&!/^mailto:/i.test(e.url)&&(e.url=`mailto:${e.url}`)}},Ho=2147483647,Uo=36,Wo=1,Go=26,Ko=38,qo=700,Jo=72,Yo=128,Xo=`-`,Zo=/^xn--/,Qo=/[^\0-\x7F]/,$o=/[\x2E\u3002\uFF0E\uFF61]/g,es={overflow:`Overflow: input needs wider integers to process`,"not-basic":`Illegal input >= 0x80 (not a basic code point)`,"invalid-input":`Invalid input`},ts=35,q=Math.floor,ns=String.fromCharCode;function rs(e){throw RangeError(es[e])}function is(e,t){let n=[],r=e.length;for(;r--;)n[r]=t(e[r]);return n}function as(e,t){let n=e.split(`@`),r=``;n.length>1&&(r=n[0]+`@`,e=n[1]),e=e.replace($o,`.`);let i=is(e.split(`.`),t).join(`.`);return r+i}function os(e){let t=[],n=0,r=e.length;for(;n<r;){let i=e.charCodeAt(n++);if(i>=55296&&i<=56319&&n<r){let r=e.charCodeAt(n++);(r&64512)==56320?t.push(((i&1023)<<10)+(r&1023)+65536):(t.push(i),n--)}else t.push(i)}return t}var ss=e=>String.fromCodePoint(...e),cs=function(e){return e>=48&&e<58?26+(e-48):e>=65&&e<91?e-65:e>=97&&e<123?e-97:Uo},ls=function(e,t){return e+22+75*(e<26)-((t!=0)<<5)},us=function(e,t,n){let r=0;for(e=n?q(e/qo):e>>1,e+=q(e/t);e>455;r+=Uo)e=q(e/ts);return q(r+36*e/(e+Ko))},ds=function(e){let t=[],n=e.length,r=0,i=Yo,a=Jo,o=e.lastIndexOf(Xo);o<0&&(o=0);for(let n=0;n<o;++n)e.charCodeAt(n)>=128&&rs(`not-basic`),t.push(e.charCodeAt(n));for(let s=o>0?o+1:0;s<n;){let o=r;for(let t=1,i=Uo;;i+=Uo){s>=n&&rs(`invalid-input`);let o=cs(e.charCodeAt(s++));o>=Uo&&rs(`invalid-input`),o>q((Ho-r)/t)&&rs(`overflow`),r+=o*t;let c=i<=a?Wo:i>=a+Go?Go:i-a;if(o<c)break;let l=Uo-c;t>q(Ho/l)&&rs(`overflow`),t*=l}let c=t.length+1;a=us(r-o,c,o==0),q(r/c)>Ho-i&&rs(`overflow`),i+=q(r/c),r%=c,t.splice(r++,0,i)}return String.fromCodePoint(...t)},fs=function(e){let t=[];e=os(e);let n=e.length,r=Yo,i=0,a=Jo;for(let n of e)n<128&&t.push(ns(n));let o=t.length,s=o;for(o&&t.push(Xo);s<n;){let n=Ho;for(let t of e)t>=r&&t<n&&(n=t);let c=s+1;n-r>q((Ho-i)/c)&&rs(`overflow`),i+=(n-r)*c,r=n;for(let n of e)if(n<r&&++i>Ho&&rs(`overflow`),n===r){let e=i;for(let n=Uo;;n+=Uo){let r=n<=a?Wo:n>=a+Go?Go:n-a;if(e<r)break;let i=e-r,o=Uo-r;t.push(ns(ls(r+i%o,0))),e=q(i/o)}t.push(ns(ls(e,0))),a=us(i,c,s===o),i=0,++s}++i,++r}return t.join(``)},ps={version:`2.3.1`,ucs2:{decode:os,encode:ss},decode:ds,encode:fs,toASCII:function(e){return as(e,function(e){return Qo.test(e)?`xn--`+fs(e):e})},toUnicode:function(e){return as(e,function(e){return Zo.test(e)?ds(e.slice(4).toLowerCase()):e})}},ms=Object.defineProperty,hs=(e,t)=>{let n={};for(var r in e)ms(n,r,{get:e[r],enumerable:!0});return t||ms(n,Symbol.toStringTag,{value:`Module`}),n},gs=hs({arrayReplaceAt:()=>vs,asciiTrim:()=>Bs,callable:()=>_s,escapeHtml:()=>js,escapeRE:()=>Ns,fromCodePoint:()=>bs,isMdAsciiPunct:()=>Ls,isPunctChar:()=>Fs,isPunctCharCode:()=>Is,isSpace:()=>J,isValidEntityCode:()=>ys,isWhiteSpace:()=>Ps,lib:()=>Vs,normalizeReference:()=>Rs,unescapeAll:()=>Es,unescapeMd:()=>Ts});function _s(e){let t=function(...n){return Reflect.construct(e,n,new.target&&new.target!==t?new.target:e)};return Object.defineProperty(t,"name",{value:e.name}),Object.setPrototypeOf(t,e),t.prototype=e.prototype,t}function vs(e,t,n){return[].concat(e.slice(0,t),n,e.slice(t+1))}function ys(e){return!(e>=55296&&e<=57343||e>=64976&&e<=65007||(e&65535)==65535||(e&65535)==65534||e>=0&&e<=8||e===11||e>=14&&e<=31||e>=127&&e<=159||e>1114111)}function bs(e){if(e>65535){e-=65536;let t=55296+(e>>10),n=56320+(e&1023);return String.fromCharCode(t,n)}return String.fromCharCode(e)}var xs=/\\([!"#$%&'()*+,\-./:;<=>?@[\\\]^_`{|}~])/g,Ss=RegExp(`${xs.source}|&([a-z#][a-z0-9]{1,31});`,`gi`),Cs=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))$/i;function ws(e,t){if(t.charCodeAt(0)===35&&Cs.test(t)){let n=t[1].toLowerCase()===`x`?parseInt(t.slice(2),16):parseInt(t.slice(1),10);return ys(n)?bs(n):e}let n=Mo(e);return n===e?e:n}function Ts(e){return e.indexOf(`\\`)<0?e:e.replace(xs,`$1`)}function Es(e){return e.indexOf(`\\`)<0&&e.indexOf(`&`)<0?e:e.replace(Ss,function(e,t,n){return t||ws(e,n)})}var Ds=/[&<>"]/,Os=/[&<>"]/g,ks={"&":`&`,"<":`<`,">":`>`,'"':`"`};function As(e){return ks[e]}function js(e){return Ds.test(e)?e.replace(Os,As):e}var Ms=/[.?*+^$[\]\\(){}|-]/g;function Ns(e){return e.replace(Ms,`\\$&`)}function J(e){switch(e){case 9:case 32:return!0}return!1}function Ps(e){if(e>=8192&&e<=8202)return!0;switch(e){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1}function Fs(e){return oo.test(e)||so.test(e)}function Is(e){return Fs(bs(e))}function Ls(e){switch(e){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1}}function Rs(e){return e=e.trim().replace(/\s+/g,` `),e.toLowerCase().toUpperCase()}function zs(e){return e===32||e===9||e===10||e===13}function Bs(e){let t=0;for(;t<e.length&&zs(e.charCodeAt(t));t++);let n=e.length-1;for(;n>=t&&zs(e.charCodeAt(n));n--);return e.slice(t,n+1)}var Vs={mdurl:to,ucmicro:no};function Hs(e,t,n){let r,i,a,o,s=e.posMax,c=e.pos;for(e.pos=t+1,r=1;e.pos<s;){if(a=e.src.charCodeAt(e.pos),a===93&&(r--,r===0)){i=!0;break}if(o=e.pos,e.md.inline.skipToken(e),a===91){if(o===e.pos-1)r++;else if(n)return e.pos=c,-1}}let l=-1;return i&&(l=e.pos),e.pos=c,l}function Us(e,t,n){let r,i=t,a={ok:!1,pos:0,str:``};if(e.charCodeAt(i)===60){for(i++;i<n;){if(r=e.charCodeAt(i),r===10||r===60)return a;if(r===62)return a.pos=i+1,a.str=Es(e.slice(t+1,i)),a.ok=!0,a;if(r===92&&i+1<n){i+=2;continue}i++}return a}let o=0;for(;i<n&&(r=e.charCodeAt(i),!(r===32||r<32||r===127));){if(r===92&&i+1<n){if(e.charCodeAt(i+1)===32){i++;continue}i+=2;continue}if(r===40&&(o++,o>32))return a;if(r===41){if(o===0)break;o--}i++}return t===i||o!==0?a:(a.str=Es(e.slice(t,i)),a.pos=i,a.ok=!0,a)}function Ws(e,t,n,r){let i,a=t,o={ok:!1,can_continue:!1,pos:0,str:``,marker:0};if(r)o.str=r.str,o.marker=r.marker;else{if(a>=n)return o;let r=e.charCodeAt(a);if(r!==34&&r!==39&&r!==40)return o;t++,a++,r===40&&(r=41),o.marker=r}for(;a<n;){if(i=e.charCodeAt(a),i===o.marker)return o.pos=a+1,o.str+=Es(e.slice(t,a)),o.ok=!0,o;if(i===40&&o.marker===41)return o;i===92&&a+1<n&&a++,a++}return o.can_continue=!0,o.str+=Es(e.slice(t,a)),o}var Gs=hs({parseLinkDestination:()=>Us,parseLinkLabel:()=>Hs,parseLinkTitle:()=>Ws});function Ks(e){"@babel/helpers - typeof";return Ks=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},Ks(e)}function qs(e,t){if(Ks(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(Ks(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function Js(e){var t=qs(e,`string`);return Ks(t)==`symbol`?t:t+``}function Y(e,t,n){return(t=Js(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ys=class{constructor(e,t,n){Y(this,`map`,null),Y(this,`level`,0),Y(this,`children`,null),Y(this,`content`,``),Y(this,`markup`,``),Y(this,`info`,``),Y(this,`block`,!1),Y(this,`hidden`,!1),this.type=e,this.tag=t,this.attrs=null,this.nesting=n,this.meta=null}attrIndex(e){if(!this.attrs)return-1;let t=this.attrs;for(let n=0,r=t.length;n<r;n++)if(t[n][0]===e)return n;return-1}attrPush(e){this.attrs?this.attrs.push(e):this.attrs=[e]}attrSet(e,t){let n=this.attrIndex(e),r=[e,t];n<0?this.attrPush(r):this.attrs[n]=r}attrGet(e){let t=this.attrIndex(e),n=null;return t>=0&&(n=this.attrs[t][1]),n}attrJoin(e,t){let n=this.attrIndex(e);n<0?this.attrPush([e,t]):this.attrs[n][1]=`${this.attrs[n][1]} ${t}`}},Xs=class{constructor(){Y(this,`__rules__`,[]),Y(this,`__cache__`,null)}__find__(e){for(let t=0;t<this.__rules__.length;t++)if(this.__rules__[t].name===e)return t;return-1}__compile__(){let e=new Set;this.__rules__.forEach(t=>{t.enabled&&t.alt.forEach(t=>{t&&e.add(t)})}),this.__cache__=Object.create(null),this.__cache__[``]=[],this.__rules__.forEach(e=>{e.enabled&&this.__cache__[``].push(e.fn)}),e.forEach(e=>{this.__cache__[e]=[],this.__rules__.forEach(t=>{t.enabled&&t.alt.indexOf(e)>=0&&this.__cache__[e].push(t.fn)})})}at(e,t,n={}){let r=this.__find__(e);if(r===-1)throw Error(`Parser rule not found: ${e}`);this.__rules__[r].fn=t,this.__rules__[r].alt=n.alt||[],this.__cache__=null}before(e,t,n,r={}){let i=this.__find__(e);if(i===-1)throw Error(`Parser rule not found: ${e}`);this.__rules__.splice(i,0,{name:t,enabled:!0,fn:n,alt:r.alt||[]}),this.__cache__=null}after(e,t,n,r={}){let i=this.__find__(e);if(i===-1)throw Error(`Parser rule not found: ${e}`);this.__rules__.splice(i+1,0,{name:t,enabled:!0,fn:n,alt:r.alt||[]}),this.__cache__=null}push(e,t,n={}){this.__rules__.push({name:e,enabled:!0,fn:t,alt:n.alt||[]}),this.__cache__=null}enable(e,t=!1){Array.isArray(e)||(e=[e]);let n=[];return e.forEach(e=>{let r=this.__find__(e);if(r<0){if(t)return;throw Error(`Rules manager: invalid rule name ${e}`)}this.__rules__[r].enabled=!0,n.push(e)}),this.__cache__=null,n}enableOnly(e,t=!1){Array.isArray(e)||(e=[e]),this.__rules__.forEach(e=>{e.enabled=!1}),this.enable(e,t)}disable(e,t=!1){Array.isArray(e)||(e=[e]);let n=[];return e.forEach(e=>{let r=this.__find__(e);if(r<0){if(t)return;throw Error(`Rules manager: invalid rule name ${e}`)}this.__rules__[r].enabled=!1,n.push(e)}),this.__cache__=null,n}getRules(e){return this.__cache__||this.__compile__(),this.__cache__[e]||[]}},X={};X.code_inline=function(e,t,n,r,i){let a=e[t];return`<code${i.renderAttrs(a)}>${js(a.content)}</code>`},X.code_block=function(e,t,n,r,i){let a=e[t];return`<pre${i.renderAttrs(a)}><code>${js(e[t].content)}</code></pre>\n`},X.fence=function(e,t,n,r,i){let a=e[t],o=a.info?Es(a.info).trim():``,s=``,c=``;if(o){let e=o.split(/(\s+)/g);s=e[0],c=e.slice(2).join(``)}let l;if(l=n.highlight&&n.highlight(a.content,s,c)||js(a.content),l.indexOf(`<pre`)===0)return l+`
|
|
200
200
|
`;if(o){let e=a.attrIndex(`class`),t=a.attrs?a.attrs.slice():[];e<0?t.push([`class`,`${n.langPrefix}${s}`]):(t[e]=[t[e][0],t[e][1]],t[e][1]+=` ${n.langPrefix}${s}`);let r={attrs:t};return`<pre><code${i.renderAttrs(r)}>${l}</code></pre>\n`}return`<pre><code${i.renderAttrs(a)}>${l}</code></pre>\n`},X.image=function(e,t,n,r,i){let a=e[t];return a.attrs[a.attrIndex(`alt`)][1]=i.renderInlineAsText(a.children,n,r),i.renderToken(e,t,n)},X.hardbreak=function(e,t,n){return n.xhtmlOut?`<br />
|
|
201
201
|
`:`<br>
|
|
202
202
|
`},X.softbreak=function(e,t,n){return n.breaks?n.xhtmlOut?`<br />
|
|
203
203
|
`:`<br>
|
|
204
204
|
`:`
|
|
205
|
-
`},X.text=function(e,t){return
|
|
205
|
+
`},X.text=function(e,t){return js(e[t].content)},X.html_block=function(e,t){return e[t].content},X.html_inline=function(e,t){return e[t].content};var Zs=class{constructor(){Y(this,`rules`,Object.assign({},X))}renderAttrs(e){let t,n,r;if(!e.attrs)return``;for(r=``,t=0,n=e.attrs.length;t<n;t++)r+=` ${js(e.attrs[t][0])}="${js(String(e.attrs[t][1]))}"`;return r}renderToken(e,t,n){let r=e[t],i=``;if(r.hidden)return``;let a=t-1;for(;a>=0&&e[a].hidden&&e[a].nesting===0;)a--;r.block&&r.nesting!==-1&&a>=0&&e[a].hidden&&e[a].nesting===-1&&(i+=`
|
|
206
206
|
`),i+=(r.nesting===-1?`</`:`<`)+r.tag,i+=this.renderAttrs(r),r.nesting===0&&n.xhtmlOut&&(i+=` /`);let o=!1;if(r.block&&(o=!0,r.nesting===1)){let n=t+1;for(;n<e.length&&e[n].hidden&&e[n].nesting===0;)n++;if(n<e.length){let t=e[n];(t.type===`inline`||t.hidden||t.nesting===-1&&t.tag===r.tag)&&(o=!1)}}return i+=o?`>
|
|
207
207
|
`:`>`,i}renderInline(e,t,n){let r=``,i=this.rules;for(let a=0,o=e.length;a<o;a++){let o=e[a].type;i[o]===void 0?r+=this.renderToken(e,a,t):r+=i[o](e,a,t,n,this)}return r}renderInlineAsText(e,t,n){let r=``;for(let i=0,a=e.length;i<a;i++)switch(e[i].type){case`text`:case`code_inline`:r+=e[i].content;break;case`image`:r+=this.renderInlineAsText(e[i].children,t,n);break;case`html_inline`:case`html_block`:r+=e[i].content;break;case`softbreak`:case`hardbreak`:r+=`
|
|
208
|
-
`}return r}render(e,t,n){let r=``,i=this.rules;for(let a=0,o=e.length;a<o;a++){let o=e[a].type;o===`inline`?r+=this.renderInline(e[a].children,t,n):i[o]===void 0?r+=this.renderToken(e,a,t):r+=i[o](e,a,t,n,this)}return r}},
|
|
209
|
-
`),t=t.replace($s,`�`),e.src=t}function tc(e){let t;e.inlineMode?(t=new e.Token(`inline`,``,0),t.content=e.src,t.map=[0,1],t.children=[],e.tokens.push(t)):e.md.block.parse(e.src,e.md,e.env,e.tokens)}function nc(e){let t=e.tokens,n=0;for(let e=0;e<t.length;e++)t[e].type!==`reference_definition`&&(e!==n&&(t[n]=t[e]),n++);t.length!==n&&(t.length=n)}function rc(e){let t=e.tokens;for(let n=0,r=t.length;n<r;n++){let r=t[n];r.type===`inline`&&e.md.inline.parse(r.content,e.md,e.env,r.children)}}function ic(e){return/^<a[>\s]/i.test(e)}function ac(e){return/^<\/a\s*>/i.test(e)}function oc(e){let t=e.tokens;if(e.md.options.linkify)for(let n=0,r=t.length;n<r;n++){if(t[n].type!==`inline`||!e.md.linkify.test(t[n].content))continue;let r=t[n].children,i=[],a=0;for(let t=r.length-1;t>=0;t--){let n=r[t];if(n.type===`link_close`){for(t--;r[t].level!==n.level&&r[t].type!==`link_open`;)t--;continue}if(n.type===`html_inline`&&(ic(n.content)&&a>0&&a--,ac(n.content)&&a++),!(a>0)&&n.type===`text`&&e.md.linkify.test(n.content)){let a=n.content,o=e.md.linkify.match(a),s=[],c=n.level,l=0;o.length>0&&o[0].index===0&&t>0&&r[t-1].type===`text_special`&&(o=o.slice(1));for(let t=0;t<o.length;t++){let n=o[t].url,r=e.md.normalizeLink(n);if(!e.md.validateLink(r))continue;let i=o[t].text;i=o[t].schema?o[t].schema===`mailto:`&&!/^mailto:/i.test(i)?e.md.normalizeLinkText(`mailto:${i}`).replace(/^mailto:/,``):e.md.normalizeLinkText(i):e.md.normalizeLinkText(`http://${i}`).replace(/^http:\/\//,``);let u=o[t].index;if(u>l){let t=new e.Token(`text`,``,0);t.content=a.slice(l,u),t.level=c,s.push(t)}let d=new e.Token(`link_open`,`a`,1);d.attrs=[[`href`,r]],d.level=c++,d.markup=`linkify`,d.info=`auto`,s.push(d);let f=new e.Token(`text`,``,0);f.content=i,f.level=c,s.push(f);let p=new e.Token(`link_close`,`a`,-1);p.level=--c,p.markup=`linkify`,p.info=`auto`,s.push(p),l=o[t].lastIndex}if(l<a.length){let t=new e.Token(`text`,``,0);t.content=a.slice(l),t.level=c,s.push(t)}i.push({index:t,nodes:s})}}if(i.length>0){let e=r.length;for(let t of i)e+=t.nodes.length-1;let a=Array(e),o=0,s=0;i.reverse();for(let e=0;e<r.length;e++){let t=i[o];if(t?.index===e){for(let e of t.nodes)a[s++]=e;o++}else a[s++]=r[e]}t[n].children=a}}}var sc=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,cc=/\((c|tm|r)\)/i,lc=/\((c|tm|r)\)/gi,uc={c:`©`,r:`®`,tm:`™`};function dc(e,t){return uc[t.toLowerCase()]}function fc(e){let t=0;for(let n=e.length-1;n>=0;n--){let r=e[n];r.type===`text`&&!t&&(r.content=r.content.replace(lc,dc)),r.type===`link_open`&&r.info===`auto`&&t--,r.type===`link_close`&&r.info===`auto`&&t++}}function pc(e){let t=0;for(let n=e.length-1;n>=0;n--){let r=e[n];r.type===`text`&&!t&&sc.test(r.content)&&(r.content=r.content.replace(/\+-/g,`±`).replace(/\.{2,}/g,`…`).replace(/([?!])…/g,`$1..`).replace(/([?!]){4,}/g,`$1$1$1`).replace(/,{2,}/g,`,`).replace(/(^|[^-])---(?=[^-]|$)/gm,`$1—`).replace(/(^|\s)--(?=\s|$)/gm,`$1–`).replace(/(^|[^-\s])--(?=[^-\s]|$)/gm,`$1–`)),r.type===`link_open`&&r.info===`auto`&&t--,r.type===`link_close`&&r.info===`auto`&&t++}}function mc(e){let t;if(e.md.options.typographer)for(t=e.tokens.length-1;t>=0;t--)e.tokens[t].type===`inline`&&(cc.test(e.tokens[t].content)&&fc(e.tokens[t].children),sc.test(e.tokens[t].content)&&pc(e.tokens[t].children))}var hc=/['"]/,gc=/['"]/g,_c=`’`,vc=1e3;function yc(e,t,n){for(;e.length>n;){let n=e.pop();n.isSingleQuote?t.single=n.prevSameQuoteIdx:t.double=n.prevSameQuoteIdx}}function bc(e,t,n,r){e[t]||(e[t]=[]),e[t].push({pos:n,ch:r})}function xc(e,t){let n=``,r=0;t.sort((e,t)=>e.pos-t.pos);for(let i=0;i<t.length;i++){let a=t[i];n+=e.slice(r,a.pos)+a.ch,r=a.pos+1}return n+e.slice(r)}function Sc(e,t){let n,r=[],i={single:-1,double:-1},a={};for(let o=0;o<e.length;o++){let s=e[o],c=e[o].level;for(n=r.length-1;n>=0&&!(r[n].level<=c);n--);if(yc(r,i,n+1),s.type!==`text`)continue;let l=s.content,u=0,d=l.length;OUTER:for(;u<d;){gc.lastIndex=u;let s=gc.exec(l);if(!s)break;let f=!0,p=!0;u=s.index+1;let m=s[0]===`'`,h=32;if(s.index-1>=0)h=l.charCodeAt(s.index-1);else for(n=o-1;n>=0&&e[n].type!==`softbreak`&&e[n].type!==`hardbreak`;n--)if(e[n].content){h=e[n].content.charCodeAt(e[n].content.length-1);break}let g=32;if(u<d)g=l.charCodeAt(u);else for(n=o+1;n<e.length&&e[n].type!==`softbreak`&&e[n].type!==`hardbreak`;n++)if(e[n].content){g=e[n].content.charCodeAt(0);break}let _=Is(h)||Fs(h),v=Is(g)||Fs(g),y=Ns(h),b=Ns(g);if(b?f=!1:v&&(y||_||(f=!1)),y?p=!1:_&&(b||v||(p=!1)),g===34&&s[0]===`"`&&h>=48&&h<=57&&(p=f=!1),f&&p&&(f=_,p=v),!f&&!p){m&&bc(a,o,s.index,_c);continue}if(p&&(n=m?i.single:i.double,n>=0&&r[n].level===c)){let e=r[n],c,l;m?(c=t.md.options.quotes[2],l=t.md.options.quotes[3]):(c=t.md.options.quotes[0],l=t.md.options.quotes[1]),bc(a,o,s.index,l),bc(a,e.tokenIdx,e.contentPos,c),yc(r,i,n);continue OUTER}if(f){if(r.length>=vc)return;r.push({tokenIdx:o,contentPos:s.index,isSingleQuote:m,level:c,prevSameQuoteIdx:m?i.single:i.double}),m?i.single=r.length-1:i.double=r.length-1}else p&&m&&bc(a,o,s.index,_c)}}Object.keys(a).forEach(function(t){let n=Number(t);e[n].content=xc(e[n].content,a[t])})}function Cc(e){if(e.md.options.typographer)for(let t=e.tokens.length-1;t>=0;t--)e.tokens[t].type===`inline`&&hc.test(e.tokens[t].content)&&Sc(e.tokens[t].children,e)}function wc(e){let t,n,r=e.length;for(t=0;t<r;t++)e[t].type===`text_special`&&(e[t].type=`text`);for(t=n=0;t<r;t++)e[t].type===`text`&&t+1<r&&e[t+1].type===`text`?e[t+1].content=e[t].content+e[t+1].content:(t!==n&&(e[n]=e[t]),n++);t!==n&&(e.length=n)}function Tc(e){let t,n,r=e.tokens,i=r.length;for(let e=0;e<i;e++){if(r[e].type!==`inline`)continue;let i=r[e].children,a=i.length;for(t=0;t<a;t++)i[t].type===`text_special`&&(i[t].type=`text`),i[t].children&&wc(i[t].children);for(t=n=0;t<a;t++)i[t].type===`text`&&t+1<a&&i[t+1].type===`text`?i[t+1].content=i[t].content+i[t+1].content:(t!==n&&(i[n]=i[t]),n++);t!==n&&(i.length=n)}}var Ec=[[`normalize`,ec],[`block`,tc],[`strip_references`,nc],[`inline`,rc],[`linkify`,oc],[`replacements`,mc],[`smartquotes`,Cc],[`text_join`,Tc]],Dc=class{constructor(){Y(this,`ruler`,new Ys),Y(this,`State`,Zs);for(let e=0;e<Ec.length;e++)this.ruler.push(Ec[e][0],Ec[e][1])}process(e){let t=this.ruler.getRules(``);for(let n=0,r=t.length;n<r;n++)t[n](e)}},Oc=class{constructor(e,t,n,r){Y(this,`bMarks`,[]),Y(this,`eMarks`,[]),Y(this,`tShift`,[]),Y(this,`sCount`,[]),Y(this,`bsCount`,[]),Y(this,`blkIndent`,0),Y(this,`line`,0),Y(this,`lineMax`,0),Y(this,`tight`,!1),Y(this,`listIndent`,-1),Y(this,`parentType`,`root`),Y(this,`level`,0),Y(this,`Token`,Js),this.src=e,this.md=t,this.env=n,this.tokens=r;let i=this.src;for(let e=0,t=0,n=0,r=0,a=i.length,o=!1;t<a;t++){let s=i.charCodeAt(t);if(!o){if(J(s)){n++,s===9?r+=4-r%4:r++;continue}o=!0}(s===10||t===a-1)&&(s!==10&&t++,this.bMarks.push(e),this.eMarks.push(t),this.tShift.push(n),this.sCount.push(r),this.bsCount.push(0),o=!1,n=0,r=0,e=t+1)}this.bMarks.push(i.length),this.eMarks.push(i.length),this.tShift.push(0),this.sCount.push(0),this.bsCount.push(0),this.lineMax=this.bMarks.length-1}push(e,t,n){let r=new Js(e,t,n);return r.block=!0,n<0&&this.level--,r.level=this.level,n>0&&this.level++,this.tokens.push(r),r}isEmpty(e){return this.bMarks[e]+this.tShift[e]>=this.eMarks[e]}skipEmptyLines(e){for(let t=this.lineMax;e<t&&!(this.bMarks[e]+this.tShift[e]<this.eMarks[e]);e++);return e}skipSpaces(e){for(let t=this.src.length;e<t&&J(this.src.charCodeAt(e));e++);return e}skipSpacesBack(e,t){if(e<=t)return e;for(;e>t;)if(!J(this.src.charCodeAt(--e)))return e+1;return e}skipChars(e,t){for(let n=this.src.length;e<n&&this.src.charCodeAt(e)===t;e++);return e}skipCharsBack(e,t,n){if(e<=n)return e;for(;e>n;)if(t!==this.src.charCodeAt(--e))return e+1;return e}getLines(e,t,n,r){if(e>=t)return``;let i=Array(t-e);for(let a=0,o=e;o<t;o++,a++){let e=0,s=this.bMarks[o],c=s,l;for(l=o+1<t||r?this.eMarks[o]+1:this.eMarks[o];c<l&&e<n;){let t=this.src.charCodeAt(c);if(J(t))t===9?e+=4-(e+this.bsCount[o])%4:e++;else if(c-s<this.tShift[o])e++;else break;c++}e>n?i[a]=Array(e-n+1).join(` `)+this.src.slice(c,l):i[a]=this.src.slice(c,l)}return i.join(``)}},kc=65536;function Ac(e,t){let n=e.bMarks[t]+e.tShift[t],r=e.eMarks[t];return e.src.slice(n,r)}function jc(e){let t=[],n=e.length,r=0,i=e.charCodeAt(r),a=!1,o=0,s=``;for(;r<n;)i===124&&(a?(s+=e.substring(o,r-1),o=r):(t.push(s+e.substring(o,r)),s=``,o=r+1)),a=i===92,r++,i=e.charCodeAt(r);return t.push(s+e.substring(o)),t}function Mc(e,t,n,r){if(t+2>n)return!1;let i=t+1;if(e.sCount[i]<e.blkIndent||e.sCount[i]-e.blkIndent>=4)return!1;let a=e.bMarks[i]+e.tShift[i];if(a>=e.eMarks[i])return!1;let o=e.src.charCodeAt(a++);if(o!==124&&o!==45&&o!==58||a>=e.eMarks[i])return!1;let s=e.src.charCodeAt(a++);if(s!==124&&s!==45&&s!==58&&!J(s)||o===45&&J(s))return!1;for(;a<e.eMarks[i];){let t=e.src.charCodeAt(a);if(t!==124&&t!==45&&t!==58&&!J(t))return!1;a++}let c=Ac(e,t+1),l=c.split(`|`),u=[];for(let e=0;e<l.length;e++){let t=l[e].trim();if(!t){if(e===0||e===l.length-1)continue;return!1}if(!/^:?-+:?$/.test(t))return!1;t.charCodeAt(t.length-1)===58?u.push(t.charCodeAt(0)===58?`center`:`right`):t.charCodeAt(0)===58?u.push(`left`):u.push(``)}if(c=Ac(e,t).trim(),c.indexOf(`|`)===-1||e.sCount[t]-e.blkIndent>=4)return!1;l=jc(c),l.length&&l[0]===``&&l.shift(),l.length&&l[l.length-1]===``&&l.pop();let d=l.length;if(d===0||d!==u.length)return!1;if(r)return!0;let f=e.parentType;e.parentType=`table`;let p=e.md.block.ruler.getRules(`blockquote`),m=e.push(`table_open`,`table`,1),h=[t,0];m.map=h;let g=e.push(`thead_open`,`thead`,1);g.map=[t,t+1];let _=e.push(`tr_open`,`tr`,1);_.map=[t,t+1];for(let t=0;t<l.length;t++){let n=e.push(`th_open`,`th`,1);u[t]&&(n.attrs=[[`style`,`text-align:${u[t]}`]]);let r=e.push(`inline`,``,0);r.content=l[t].trim(),r.children=[],e.push(`th_close`,`th`,-1)}e.push(`tr_close`,`tr`,-1),e.push(`thead_close`,`thead`,-1);let v,y=0;for(i=t+2;i<n&&!(e.sCount[i]<e.blkIndent);i++){let r=!1;for(let t=0,a=p.length;t<a;t++)if(p[t](e,i,n,!0)){r=!0;break}if(r||(c=Ac(e,i).trim(),!c)||e.sCount[i]-e.blkIndent>=4||(l=jc(c),l.length&&l[0]===``&&l.shift(),l.length&&l[l.length-1]===``&&l.pop(),y+=d-l.length,y>kc))break;if(i===t+2){let n=e.push(`tbody_open`,`tbody`,1);n.map=v=[t+2,0]}let a=e.push(`tr_open`,`tr`,1);a.map=[i,i+1];for(let t=0;t<d;t++){let n=e.push(`td_open`,`td`,1);u[t]&&(n.attrs=[[`style`,`text-align:${u[t]}`]]);let r=e.push(`inline`,``,0);r.content=l[t]?l[t].trim():``,r.children=[],e.push(`td_close`,`td`,-1)}e.push(`tr_close`,`tr`,-1)}return v&&(e.push(`tbody_close`,`tbody`,-1),v[1]=i),e.push(`table_close`,`table`,-1),h[1]=i,e.parentType=f,e.line=i,!0}function Nc(e,t,n){if(e.sCount[t]-e.blkIndent<4)return!1;let r=t+1,i=r;for(;r<n;){if(e.isEmpty(r)){r++;continue}if(e.sCount[r]-e.blkIndent>=4){r++,i=r;continue}break}e.line=i;let a=e.push(`code_block`,`code`,0);return a.content=e.getLines(t,i,4+e.blkIndent,!1)+`
|
|
210
|
-
`,a.map=[t,e.line],!0}function Pc(e,t,n,r){let i=e.bMarks[t]+e.tShift[t],a=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||i+3>a)return!1;let o=e.src.charCodeAt(i);if(o!==126&&o!==96)return!1;let s=i;i=e.skipChars(i,o);let c=i-s;if(c<3)return!1;let l=e.src.slice(s,i),u=e.src.slice(i,a);if(o===96&&u.indexOf(String.fromCharCode(o))>=0)return!1;if(r)return!0;let d=t,f=!1;for(;d++,!(d>=n||(i=s=e.bMarks[d]+e.tShift[d],a=e.eMarks[d],i<a&&e.sCount[d]<e.blkIndent));)if(e.src.charCodeAt(i)===o&&!(e.sCount[d]-e.blkIndent>=4)&&(i=e.skipChars(i,o),!(i-s<c)&&(i=e.skipSpaces(i),!(i<a)))){f=!0;break}c=e.sCount[t],e.line=d+ +!!f;let p=e.push(`fence`,`code`,0);return p.info=u,p.content=e.getLines(t+1,d,c,!0),p.markup=l,p.map=[t,e.line],!0}function Fc(e,t,n,r){let i=e.bMarks[t]+e.tShift[t],a=e.eMarks[t],o=e.lineMax;if(e.sCount[t]-e.blkIndent>=4||e.src.charCodeAt(i)!==62)return!1;if(r)return!0;let s=[],c=[],l=[],u=[],d=e.md.block.ruler.getRules(`blockquote`),f=e.parentType;e.parentType=`blockquote`;let p=!1,m;for(m=t;m<n;m++){let t=e.sCount[m]<e.blkIndent;if(i=e.bMarks[m]+e.tShift[m],a=e.eMarks[m],i>=a)break;if(e.src.charCodeAt(i++)===62&&!t){let t=e.sCount[m]+1,n,r;e.src.charCodeAt(i)===32?(i++,t++,r=!1,n=!0):e.src.charCodeAt(i)===9?(n=!0,(e.bsCount[m]+t)%4==3?(i++,t++,r=!1):r=!0):n=!1;let o=t;for(s.push(e.bMarks[m]),e.bMarks[m]=i;i<a;){let t=e.src.charCodeAt(i);if(J(t))t===9?o+=4-(o+e.bsCount[m]+ +!!r)%4:o++;else break;i++}p=i>=a,c.push(e.bsCount[m]),e.bsCount[m]=e.sCount[m]+1+ +!!n,l.push(e.sCount[m]),e.sCount[m]=o-t,u.push(e.tShift[m]),e.tShift[m]=i-e.bMarks[m];continue}if(p)break;let r=!1;for(let t=0,i=d.length;t<i;t++)if(d[t](e,m,n,!0)){r=!0;break}if(r){e.lineMax=m,e.blkIndent!==0&&(s.push(e.bMarks[m]),c.push(e.bsCount[m]),u.push(e.tShift[m]),l.push(e.sCount[m]),e.sCount[m]-=e.blkIndent);break}s.push(e.bMarks[m]),c.push(e.bsCount[m]),u.push(e.tShift[m]),l.push(e.sCount[m]),e.sCount[m]=-1}let h=e.blkIndent;e.blkIndent=0;let g=e.push(`blockquote_open`,`blockquote`,1);g.markup=`>`;let _=[t,0];g.map=_,e.md.block.tokenize(e,t,m);let v=e.push(`blockquote_close`,`blockquote`,-1);v.markup=`>`,e.lineMax=o,e.parentType=f,_[1]=e.line;for(let n=0;n<u.length;n++)e.bMarks[n+t]=s[n],e.tShift[n+t]=u[n],e.sCount[n+t]=l[n],e.bsCount[n+t]=c[n];return e.blkIndent=h,!0}function Ic(e,t,n,r){let i=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;let a=e.bMarks[t]+e.tShift[t],o=e.src.charCodeAt(a++);if(o!==42&&o!==45&&o!==95)return!1;let s=1;for(;a<i;){let t=e.src.charCodeAt(a++);if(t!==o&&!J(t))return!1;t===o&&s++}if(s<3)return!1;if(r)return!0;e.line=t+1;let c=e.push(`hr`,`hr`,0);return c.map=[t,e.line],c.markup=Array(s+1).join(String.fromCharCode(o)),!0}function Lc(e,t){let n=e.eMarks[t],r=e.bMarks[t]+e.tShift[t],i=e.src.charCodeAt(r++);return i!==42&&i!==45&&i!==43||r<n&&!J(e.src.charCodeAt(r))?-1:r}function Rc(e,t){let n=e.bMarks[t]+e.tShift[t],r=e.eMarks[t],i=n;if(i+1>=r)return-1;let a=e.src.charCodeAt(i++);if(a<48||a>57)return-1;for(;;){if(i>=r)return-1;if(a=e.src.charCodeAt(i++),a>=48&&a<=57){if(i-n>=10)return-1;continue}if(a===41||a===46)break;return-1}return i<r&&(a=e.src.charCodeAt(i),!J(a))?-1:i}function zc(e,t){let n=e.level+2;for(let r=t+2,i=e.tokens.length-2;r<i;r++)e.tokens[r].level===n&&e.tokens[r].type===`paragraph_open`&&(e.tokens[r+2].hidden=!0,e.tokens[r].hidden=!0,r+=2)}function Bc(e,t,n,r){let i,a,o,s,c=t,l=!0;if(e.sCount[c]-e.blkIndent>=4||e.listIndent>=0&&e.sCount[c]-e.listIndent>=4&&e.sCount[c]<e.blkIndent)return!1;let u=!1;r&&e.parentType===`paragraph`&&e.sCount[c]>=e.blkIndent&&(u=!0);let d,f,p;if((p=Rc(e,c))>=0){if(d=!0,o=e.bMarks[c]+e.tShift[c],f=Number(e.src.slice(o,p-1)),u&&f!==1)return!1}else if((p=Lc(e,c))>=0)d=!1;else return!1;if(u&&e.skipSpaces(p)>=e.eMarks[c])return!1;if(r)return!0;let m=e.src.charCodeAt(p-1),h=e.tokens.length;d?(s=e.push(`ordered_list_open`,`ol`,1),f!==1&&(s.attrs=[[`start`,f]])):s=e.push(`bullet_list_open`,`ul`,1);let g=[c,0];s.map=g,s.markup=String.fromCharCode(m);let _=!1,v=e.md.block.ruler.getRules(`list`),y=e.parentType;for(e.parentType=`list`;c<n;){a=p,i=e.eMarks[c];let t=e.sCount[c]+p-(e.bMarks[c]+e.tShift[c]),r=t;for(;a<i;){let t=e.src.charCodeAt(a);if(t===9)r+=4-(r+e.bsCount[c])%4;else if(t===32)r++;else break;a++}let u=a,f;f=u>=i?1:r-t,f>4&&(f=1);let h=t+f;s=e.push(`list_item_open`,`li`,1),s.markup=String.fromCharCode(m);let g=[c,0];s.map=g,d&&(s.info=e.src.slice(o,p-1));let y=e.tight,b=e.tShift[c],x=e.sCount[c],S=e.listIndent;if(e.listIndent=e.blkIndent,e.blkIndent=h,e.tight=!0,e.tShift[c]=u-e.bMarks[c],e.sCount[c]=r,u>=i&&e.isEmpty(c+1)?e.line=Math.min(e.line+2,n):e.md.block.tokenize(e,c,n),(!e.tight||_)&&(l=!1),_=e.line-c>1&&e.isEmpty(e.line-1),e.blkIndent=e.listIndent,e.listIndent=S,e.tShift[c]=b,e.sCount[c]=x,e.tight=y,s=e.push(`list_item_close`,`li`,-1),s.markup=String.fromCharCode(m),c=e.line,g[1]=c,c>=n||e.sCount[c]<e.blkIndent||e.sCount[c]-e.blkIndent>=4)break;let ee=!1;for(let t=0,r=v.length;t<r;t++)if(v[t](e,c,n,!0)){ee=!0;break}if(ee)break;if(d){if(p=Rc(e,c),p<0)break;o=e.bMarks[c]+e.tShift[c]}else if(p=Lc(e,c),p<0)break;if(m!==e.src.charCodeAt(p-1))break}return s=d?e.push(`ordered_list_close`,`ol`,-1):e.push(`bullet_list_close`,`ul`,-1),s.markup=String.fromCharCode(m),g[1]=c,e.line=c,e.parentType=y,l&&zc(e,h),!0}function Vc(e,t,n,r){let i=e.bMarks[t]+e.tShift[t],a=e.eMarks[t],o=t+1;if(e.sCount[t]-e.blkIndent>=4||e.src.charCodeAt(i)!==91)return!1;function s(t){let n=e.lineMax;if(t>=n||e.isEmpty(t))return null;let r=!1;if(e.sCount[t]-e.blkIndent>3&&(r=!0),e.sCount[t]<0&&(r=!0),!r){let r=e.md.block.ruler.getRules(`reference`),i=e.parentType;e.parentType=`reference`;let a=!1;for(let i=0,o=r.length;i<o;i++)if(r[i](e,t,n,!0)){a=!0;break}if(e.parentType=i,a)return null}let i=e.bMarks[t]+e.tShift[t],a=e.eMarks[t];return e.src.slice(i,a+1)}let c=e.src.slice(i,a+1);a=c.length;let l=-1;for(i=1;i<a;i++){let e=c.charCodeAt(i);if(e===91)return!1;if(e===93){l=i;break}if(e===10){let e=s(o);e!==null&&(c+=e,a=c.length,o++)}else if(e===92&&(i++,i<a&&c.charCodeAt(i)===10)){let e=s(o);e!==null&&(c+=e,a=c.length,o++)}}if(l<0||c.charCodeAt(l+1)!==58)return!1;for(i=l+2;i<a;i++){let e=c.charCodeAt(i);if(e===10){let e=s(o);e!==null&&(c+=e,a=c.length,o++)}else if(!J(e))break}let u=e.md.helpers.parseLinkDestination(c,i,a);if(!u.ok)return!1;let d=e.md.normalizeLink(u.str);if(!e.md.validateLink(d))return!1;i=u.pos;let f=i,p=o,m=i;for(;i<a;i++){let e=c.charCodeAt(i);if(e===10){let e=s(o);e!==null&&(c+=e,a=c.length,o++)}else if(!J(e))break}let h=e.md.helpers.parseLinkTitle(c,i,a);for(;h.can_continue;){let t=s(o);if(t===null)break;c+=t,i=a,a=c.length,o++,h=e.md.helpers.parseLinkTitle(c,i,a,h)}let g;for(i<a&&m!==i&&h.ok?(g=h.str,i=h.pos):(g=``,i=f,o=p);i<a&&J(c.charCodeAt(i));)i++;if(i<a&&c.charCodeAt(i)!==10&&g)for(g=``,i=f,o=p;i<a&&J(c.charCodeAt(i));)i++;if(i<a&&c.charCodeAt(i)!==10)return!1;let _=Ls(c.slice(1,l));if(!_)return!1;if(r)return!0;e.env.references===void 0&&(e.env.references={}),e.env.references[_]===void 0&&(e.env.references[_]={title:g,href:d});let v=e.push(`reference_definition`,``,0);v.map=[t,o],v.hidden=!0;let y=Object.create(null);return y.label=_,v.meta=y,e.line=o,!0}var Hc=`address.article.aside.base.basefont.blockquote.body.caption.center.col.colgroup.dd.details.dialog.dir.div.dl.dt.fieldset.figcaption.figure.footer.form.frame.frameset.h1.h2.h3.h4.h5.h6.head.header.hr.html.iframe.legend.li.link.main.menu.menuitem.nav.noframes.ol.optgroup.option.p.param.search.section.summary.table.tbody.td.tfoot.th.thead.title.tr.track.ul`.split(`.`),Uc=`<[A-Za-z][A-Za-z0-9\\-]*(?:\\s+[a-zA-Z_:][a-zA-Z0-9:._-]*(?:\\s*=\\s*(?:[^"'=<>\`\\x00-\\x20]+|'[^']*'|"[^"]*"))?)*\\s*\\/?>`,Wc=`<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>`,Gc=RegExp(`^(?:${Uc}|${Wc}|<!---?>|<!--(?:[^-]|-[^-]|--[^>])*-->|<[?][\\s\\S]*?[?]>|<![A-Za-z][^>]*>|<!\\[CDATA\\[[\\s\\S]*?\\]\\]>)`),Kc=RegExp(`^(?:${Uc}|${Wc})`),qc=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Za-z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[RegExp(`^</?(${Hc.join(`|`)})(?=(\\s|/?>|$))`,`i`),/^$/,!0],[RegExp(`${Kc.source}\\s*$`),/^$/,!1]];function Jc(e,t,n,r){let i=e.bMarks[t]+e.tShift[t],a=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||!e.md.options.html||e.src.charCodeAt(i)!==60)return!1;let o=e.src.slice(i,a),s=0;for(;s<qc.length&&!qc[s][0].test(o);s++);if(s===qc.length)return!1;if(r)return qc[s][2];let c=t+1,l=qc[s][1].test(``);if(!qc[s][1].test(o)){for(;c<n&&!(e.sCount[c]<e.blkIndent&&(l||!e.isEmpty(c)));c++)if(i=e.bMarks[c]+e.tShift[c],a=e.eMarks[c],o=e.src.slice(i,a),qc[s][1].test(o)){o.length!==0&&c++;break}}e.line=c;let u=e.push(`html_block`,``,0);return u.map=[t,c],u.content=e.getLines(t,c,e.blkIndent,!0),!0}function Yc(e,t,n,r){let i=e.bMarks[t]+e.tShift[t],a=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;let o=e.src.charCodeAt(i);if(o!==35||i>=a)return!1;let s=1;for(o=e.src.charCodeAt(++i);o===35&&i<a&&s<=6;)s++,o=e.src.charCodeAt(++i);if(s>6||i<a&&!J(o))return!1;if(r)return!0;a=e.skipSpacesBack(a,i);let c=e.skipCharsBack(a,35,i);c>i&&J(e.src.charCodeAt(c-1))&&(a=c),e.line=t+1;let l=e.push(`heading_open`,`h${s}`,1);l.markup=`########`.slice(0,s),l.map=[t,e.line];let u=e.push(`inline`,``,0);u.content=zs(e.src.slice(i,a)),u.map=[t,e.line],u.children=[];let d=e.push(`heading_close`,`h${s}`,-1);return d.markup=`########`.slice(0,s),!0}function Xc(e,t,n){let r=e.md.block.ruler.getRules(`paragraph`);if(e.sCount[t]-e.blkIndent>=4)return!1;let i=e.parentType;e.parentType=`paragraph`;let a=0,o,s=t+1;for(;s<n&&!e.isEmpty(s);s++){if(e.sCount[s]-e.blkIndent>3)continue;if(e.sCount[s]>=e.blkIndent){let t=e.bMarks[s]+e.tShift[s],n=e.eMarks[s];if(t<n&&(o=e.src.charCodeAt(t),(o===45||o===61)&&(t=e.skipChars(t,o),t=e.skipSpaces(t),t>=n))){a=o===61?1:2;break}}if(e.sCount[s]<0)continue;let t=!1;for(let i=0,a=r.length;i<a;i++)if(r[i](e,s,n,!0)){t=!0;break}if(t)break}if(!a)return e.parentType=i,!1;let c=zs(e.getLines(t,s,e.blkIndent,!1));e.line=s+1;let l=e.push(`heading_open`,`h${a}`,1);l.markup=String.fromCharCode(o),l.map=[t,e.line];let u=e.push(`inline`,``,0);u.content=c,u.map=[t,e.line-1],u.children=[];let d=e.push(`heading_close`,`h${a}`,-1);return d.markup=String.fromCharCode(o),e.parentType=i,!0}function Zc(e,t,n){let r=e.md.block.ruler.getRules(`paragraph`),i=e.parentType,a=t+1;for(e.parentType=`paragraph`;a<n&&!e.isEmpty(a);a++){if(e.sCount[a]-e.blkIndent>3||e.sCount[a]<0)continue;let t=!1;for(let i=0,o=r.length;i<o;i++)if(r[i](e,a,n,!0)){t=!0;break}if(t)break}let o=zs(e.getLines(t,a,e.blkIndent,!1));e.line=a;let s=e.push(`paragraph_open`,`p`,1);s.map=[t,e.line];let c=e.push(`inline`,``,0);return c.content=o,c.map=[t,e.line],c.children=[],e.push(`paragraph_close`,`p`,-1),e.parentType=i,!0}var Qc=[[`table`,Mc,[`paragraph`,`reference`]],[`code`,Nc],[`fence`,Pc,[`paragraph`,`reference`,`blockquote`,`list`]],[`blockquote`,Fc,[`paragraph`,`reference`,`blockquote`,`list`]],[`hr`,Ic,[`paragraph`,`reference`,`blockquote`,`list`]],[`list`,Bc,[`paragraph`,`reference`,`blockquote`]],[`reference`,Vc],[`html_block`,Jc,[`paragraph`,`reference`,`blockquote`]],[`heading`,Yc,[`paragraph`,`reference`,`blockquote`]],[`lheading`,Xc],[`paragraph`,Zc]],$c=class{constructor(){Y(this,`ruler`,new Ys),Y(this,`State`,Oc);for(let e=0;e<Qc.length;e++)this.ruler.push(Qc[e][0],Qc[e][1],{alt:(Qc[e][2]||[]).slice()})}tokenize(e,t,n){let r=this.ruler.getRules(``),i=r.length,a=e.md.options.maxNesting,o=t,s=!1;for(;o<n&&(e.line=o=e.skipEmptyLines(o),!(o>=n||e.sCount[o]<e.blkIndent));){if(e.level>=a){e.line=n;break}let t=e.line,c=!1;for(let a=0;a<i;a++)if(c=r[a](e,o,n,!1),c){if(t>=e.line)throw Error(`block rule didn't increment state.line`);break}if(!c)throw Error(`none of the block rules matched`);e.tight=!s,e.isEmpty(e.line-1)&&(s=!0),o=e.line,o<n&&e.isEmpty(o)&&(s=!0,o++,e.line=o)}}parse(e,t,n,r){if(!e)return;let i=new this.State(e,t,n,r);this.tokenize(i,i.line,i.lineMax)}},el=class{constructor(e,t,n,r){Y(this,`pos`,0),Y(this,`level`,0),Y(this,`pending`,``),Y(this,`pendingLevel`,0),Y(this,`cache`,{}),Y(this,`backticks`,{}),Y(this,`backticksScanned`,!1),Y(this,`linkLevel`,0),Y(this,`delimiters`,[]),Y(this,`_prev_delimiters`,[]),Y(this,`Token`,Js),this.src=e,this.env=n,this.md=t,this.tokens=r,this.tokens_meta=Array(r.length),this.posMax=this.src.length}pushPending(){let e=new Js(`text`,``,0);return e.content=this.pending,e.level=this.pendingLevel,this.tokens.push(e),this.pending=``,e}push(e,t,n){this.pending&&this.pushPending();let r=new Js(e,t,n),i;return n<0&&(this.level--,this.delimiters=this._prev_delimiters.pop()),r.level=this.level,n>0&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],i={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(r),this.tokens_meta.push(i),r}scanDelims(e,t){let n=this.posMax,r=this.src.charCodeAt(e),i;if(e===0)i=32;else if(e===1)i=this.src.charCodeAt(0),(i&63488)==55296&&(i=65533);else if(i=this.src.charCodeAt(e-1),(i&64512)==56320){let t=this.src.charCodeAt(e-2);i=(t&64512)==55296?65536+(t-55296<<10)+(i-56320):65533}else(i&64512)==55296&&(i=65533);let a=e;for(;a<n&&this.src.charCodeAt(a)===r;)a++;let o=a-e,s=a<n?this.src.charCodeAt(a):32;if((s&64512)==55296){let e=this.src.charCodeAt(a+1);s=(e&64512)==56320?65536+(s-55296<<10)+(e-56320):65533}else(s&64512)==56320&&(s=65533);let c=Is(i)||Fs(i),l=Is(s)||Fs(s),u=Ns(i),d=Ns(s),f=!d&&(!l||u||c),p=!u&&(!c||d||l);return{can_open:f&&(t||!p||c),can_close:p&&(t||!f||l),length:o}}};function tl(e){switch(e){case 10:case 33:case 35:case 36:case 37:case 38:case 42:case 43:case 45:case 58:case 60:case 61:case 62:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 125:case 126:return!0;default:return!1}}function nl(e,t){let n=e.pos;for(;n<e.posMax&&!tl(e.src.charCodeAt(n));)n++;return n!==e.pos&&(t||(e.pending+=e.src.slice(e.pos,n)),e.pos=n,!0)}function rl(e){return e>=65&&e<=90||e>=97&&e<=122}function il(e){return e>=65&&e<=90||e>=97&&e<=122||e>=48&&e<=57||e===43||e===45||e===46}function al(e,t){if(!e.md.options.linkify||e.linkLevel>0)return!1;let n=e.pos,r=e.posMax;if(n+3>r||e.src.charCodeAt(n)!==58||e.src.charCodeAt(n+1)!==47||e.src.charCodeAt(n+2)!==47)return!1;let i=n-Math.min(10,e.pending.length,n),a=n;for(;a>i&&il(e.src.charCodeAt(a-1));)a--;if(a===n||!rl(e.src.charCodeAt(a)))return!1;let o=n-a,s=e.md.linkify.matchAtStart(e.src.slice(a));if(!s)return!1;let c=s.url;if(c.length<=o)return!1;let l=c.length;for(;l>0&&c.charCodeAt(l-1)===42;)l--;l!==c.length&&(c=c.slice(0,l));let u=e.md.normalizeLink(c);if(!e.md.validateLink(u))return!1;if(!t){e.pending=e.pending.slice(0,-o);let t=e.push(`link_open`,`a`,1);t.attrs=[[`href`,u]],t.markup=`linkify`,t.info=`auto`;let n=e.push(`text`,``,0);n.content=e.md.normalizeLinkText(c);let r=e.push(`link_close`,`a`,-1);r.markup=`linkify`,r.info=`auto`}return e.pos+=c.length-o,!0}function ol(e,t){let n=e.pos;if(e.src.charCodeAt(n)!==10)return!1;let r=e.pending.length-1,i=e.posMax;if(!t){if(r>=0&&e.pending.charCodeAt(r)===32){if(r>=1&&e.pending.charCodeAt(r-1)===32){let t=r-1;for(;t>=1&&e.pending.charCodeAt(t-1)===32;)t--;e.pending=e.pending.slice(0,t),e.push(`hardbreak`,`br`,0)}else e.pending=e.pending.slice(0,-1),e.push(`softbreak`,`br`,0)}else e.push(`softbreak`,`br`,0)}for(n++;n<i&&J(e.src.charCodeAt(n));)n++;return e.pos=n,!0}var sl=[];for(let e=0;e<256;e++)sl.push(0);`\\!"#$%&'()*+,./:;<=>?@[]^_\`{|}~-`.split(``).forEach(function(e){sl[e.charCodeAt(0)]=1});function cl(e,t){let n=e.pos,r=e.posMax;if(e.src.charCodeAt(n)!==92||(n++,n>=r))return!1;let i=e.src.charCodeAt(n);if(i===10){for(t||e.push(`hardbreak`,`br`,0),n++;n<r&&(i=e.src.charCodeAt(n),J(i));)n++;return e.pos=n,!0}if(i===32){if(!t){let t=e.push(`text_special`,``,0);t.content=`\\`,t.markup=`\\`,t.info=`escape`}return e.pos=n,!0}let a=e.src[n];if(i>=55296&&i<=56319&&n+1<r){let t=e.src.charCodeAt(n+1);t>=56320&&t<=57343&&(a+=e.src[n+1],n++)}let o=`\\`+a;if(!t){let t=e.push(`text_special`,``,0);t.content=i<256&&sl[i]!==0?a:o,t.markup=o,t.info=`escape`}return e.pos=n+1,!0}function ll(e){let t={},n=0;for(;(n=e.indexOf("`",n))!==-1;){let r=n;for(;e.charCodeAt(++n)===96;);t[n-r]=r}return t}function ul(e,t){let n=e.pos;if(e.src.charCodeAt(n)!==96)return!1;let r=e.posMax,i=n+1;for(;i<r&&e.src.charCodeAt(i)===96;)i++;let a=e.src.slice(n,i),o=a.length;if(e.backticksScanned||=(e.backticks=ll(e.src),!0),(e.backticks[o]??-1)>=i){let n=i,s;for(;(s=e.src.indexOf("`",n))!==-1&&s<r;){for(n=s+1;e.src.charCodeAt(n)===96;)n++;if(n>r)break;if(n-s===o){if(!t){let t=e.push(`code_inline`,`code`,0);t.markup=a;let n=e.src.slice(i,s).replace(/\n/g,` `);n.startsWith(` `)&&n.endsWith(` `)&&/[^ ]/.test(n)&&(n=n.slice(1,-1)),t.content=n}return e.pos=n,!0}}}return t||(e.pending+=a),e.pos=i,!0}function dl(e,t){let n=e.pos,r=e.src.charCodeAt(n);if(t||r!==126)return!1;let i=e.scanDelims(e.pos,!0),a=i.length,o=String.fromCharCode(r);if(a<2)return!1;let s;a%2&&(s=e.push(`text`,``,0),s.content=o,a--);for(let t=0;t<a;t+=2)s=e.push(`text`,``,0),s.content=o+o,e.delimiters.push({marker:r,length:0,token:e.tokens.length-1,end:-1,open:i.can_open,close:i.can_close});return e.pos+=i.length,!0}function fl(e,t){let n,r=[],i=t.length;for(let a=0;a<i;a++){let i=t[a];if(i.marker!==126||i.end===-1)continue;let o=t[i.end];n=e.tokens[i.token],n.type=`s_open`,n.tag=`s`,n.nesting=1,n.markup=`~~`,n.content=``,n=e.tokens[o.token],n.type=`s_close`,n.tag=`s`,n.nesting=-1,n.markup=`~~`,n.content=``,e.tokens[o.token-1].type===`text`&&e.tokens[o.token-1].content===`~`&&r.push(o.token-1)}for(;r.length;){let t=r.pop(),i=t+1;for(;i<e.tokens.length&&e.tokens[i].type===`s_close`;)i++;i--,t!==i&&(n=e.tokens[i],e.tokens[i]=e.tokens[t],e.tokens[t]=n)}}function pl(e){let t=e.tokens_meta,n=e.tokens_meta.length;fl(e,e.delimiters);for(let r=0;r<n;r++){let n=t[r]?.delimiters;n&&fl(e,n)}}var ml={tokenize:dl,postProcess:pl};function hl(e,t){let n=e.pos,r=e.src.charCodeAt(n);if(t||r!==95&&r!==42)return!1;let i=e.scanDelims(e.pos,r===42);for(let t=0;t<i.length;t++){let t=e.push(`text`,``,0);t.content=String.fromCharCode(r),e.delimiters.push({marker:r,length:i.length,token:e.tokens.length-1,end:-1,open:i.can_open,close:i.can_close})}return e.pos+=i.length,!0}function gl(e,t){let n=t.length;for(let r=n-1;r>=0;r--){let n=t[r];if(n.marker!==95&&n.marker!==42||n.end===-1)continue;let i=t[n.end],a=r>0&&t[r-1].end===n.end+1&&t[r-1].marker===n.marker&&t[r-1].token===n.token-1&&t[n.end+1].token===i.token+1,o=String.fromCharCode(n.marker),s=e.tokens[n.token];s.type=a?`strong_open`:`em_open`,s.tag=a?`strong`:`em`,s.nesting=1,s.markup=a?o+o:o,s.content=``;let c=e.tokens[i.token];c.type=a?`strong_close`:`em_close`,c.tag=a?`strong`:`em`,c.nesting=-1,c.markup=a?o+o:o,c.content=``,a&&(e.tokens[t[r-1].token].content=``,e.tokens[t[n.end+1].token].content=``,r--)}}function _l(e){let t=e.tokens_meta,n=e.tokens_meta.length;gl(e,e.delimiters);for(let r=0;r<n;r++){let n=t[r]?.delimiters;n&&gl(e,n)}}var vl={tokenize:hl,postProcess:_l};function yl(e,t){let n,r,i,a,o=``,s=``,c=e.pos,l=!0;if(e.src.charCodeAt(e.pos)!==91)return!1;let u=e.pos,d=e.posMax,f=e.pos+1,p=e.md.helpers.parseLinkLabel(e,e.pos,!0);if(p<0)return!1;let m=p+1;if(m<d&&e.src.charCodeAt(m)===40){for(l=!1,m++;m<d&&(n=e.src.charCodeAt(m),J(n)||n===10);m++);if(m>=d)return!1;if(c=m,i=e.md.helpers.parseLinkDestination(e.src,m,e.posMax),i.ok){for(o=e.md.normalizeLink(i.str),e.md.validateLink(o)?m=i.pos:o=``,c=m;m<d&&(n=e.src.charCodeAt(m),J(n)||n===10);m++);if(i=e.md.helpers.parseLinkTitle(e.src,m,e.posMax),m<d&&c!==m&&i.ok)for(s=i.str,m=i.pos;m<d&&(n=e.src.charCodeAt(m),J(n)||n===10);m++);}(m>=d||e.src.charCodeAt(m)!==41)&&(l=!0),m++}if(l){if(e.env.references===void 0)return!1;if(m<d&&e.src.charCodeAt(m)===91?(c=m+1,m=e.md.helpers.parseLinkLabel(e,m),m>=0?r=e.src.slice(c,m++):m=p+1):m=p+1,r||=e.src.slice(f,p),r=Ls(r),a=e.env.references[r],!a)return e.pos=u,!1;o=a.href,s=a.title}if(!t){e.pos=f,e.posMax=p;let t=e.push(`link_open`,`a`,1),n=[[`href`,o]];if(t.attrs=n,s&&n.push([`title`,s]),r){let e=Object.create(null);e.label=r,t.meta=e}e.linkLevel++,e.md.inline.tokenize(e),e.linkLevel--,e.push(`link_close`,`a`,-1)}return e.pos=m,e.posMax=d,!0}function bl(e,t){let n,r,i,a,o,s,c,l,u=``,d=e.pos,f=e.posMax;if(e.src.charCodeAt(e.pos)!==33||e.src.charCodeAt(e.pos+1)!==91)return!1;let p=e.pos+2,m=e.md.helpers.parseLinkLabel(e,e.pos+1,!1);if(m<0)return!1;if(a=m+1,a<f&&e.src.charCodeAt(a)===40){for(a++;a<f&&(n=e.src.charCodeAt(a),J(n)||n===10);a++);if(a>=f)return!1;for(l=a,s=e.md.helpers.parseLinkDestination(e.src,a,e.posMax),s.ok&&(u=e.md.normalizeLink(s.str),e.md.validateLink(u)?a=s.pos:u=``),l=a;a<f&&(n=e.src.charCodeAt(a),J(n)||n===10);a++);if(s=e.md.helpers.parseLinkTitle(e.src,a,e.posMax),a<f&&l!==a&&s.ok)for(c=s.str,a=s.pos;a<f&&(n=e.src.charCodeAt(a),J(n)||n===10);a++);else c=``;if(a>=f||e.src.charCodeAt(a)!==41)return e.pos=d,!1;a++}else{if(e.env.references===void 0)return!1;if(a<f&&e.src.charCodeAt(a)===91?(l=a+1,a=e.md.helpers.parseLinkLabel(e,a),a>=0?i=e.src.slice(l,a++):a=m+1):a=m+1,i||=e.src.slice(p,m),i=Ls(i),o=e.env.references[i],!o)return e.pos=d,!1;u=o.href,c=o.title}if(!t){r=e.src.slice(p,m);let t=[];e.md.inline.parse(r,e.md,e.env,t);let n=e.push(`image`,`img`,0),a=[[`src`,u],[`alt`,``]];if(n.attrs=a,n.children=t,n.content=r,c&&a.push([`title`,c]),i){let e=Object.create(null);e.label=i,n.meta=e}}return e.pos=a,e.posMax=f,!0}var xl=/^([a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)$/,Sl=/^([a-zA-Z][a-zA-Z0-9+.-]{1,31}):([^<>\x00-\x20]*)$/;function Cl(e,t){let n=e.pos;if(e.src.charCodeAt(n)!==60)return!1;let r=e.pos,i=e.posMax;for(;;){if(++n>=i)return!1;let t=e.src.charCodeAt(n);if(t===60)return!1;if(t===62)break}let a=e.src.slice(r+1,n);if(Sl.test(a)){let n=e.md.normalizeLink(a);if(!e.md.validateLink(n))return!1;if(!t){let t=e.push(`link_open`,`a`,1);t.attrs=[[`href`,n]],t.markup=`autolink`,t.info=`auto`;let r=e.push(`text`,``,0);r.content=e.md.normalizeLinkText(a);let i=e.push(`link_close`,`a`,-1);i.markup=`autolink`,i.info=`auto`}return e.pos+=a.length+2,!0}if(xl.test(a)){let n=e.md.normalizeLink(`mailto:${a}`);if(!e.md.validateLink(n))return!1;if(!t){let t=e.push(`link_open`,`a`,1);t.attrs=[[`href`,n]],t.markup=`autolink`,t.info=`auto`;let r=e.push(`text`,``,0);r.content=e.md.normalizeLinkText(a);let i=e.push(`link_close`,`a`,-1);i.markup=`autolink`,i.info=`auto`}return e.pos+=a.length+2,!0}return!1}function wl(e){return/^<a[>\s]/i.test(e)}function Tl(e){return/^<\/a\s*>/i.test(e)}function El(e){let t=e|32;return t>=97&&t<=122}function Dl(e,t){if(!e.md.options.html)return!1;let n=e.posMax,r=e.pos;if(e.src.charCodeAt(r)!==60||r+2>=n)return!1;let i=e.src.charCodeAt(r+1);if(i!==33&&i!==63&&i!==47&&!El(i))return!1;let a=e.src.slice(r).match(Gc);if(!a)return!1;if(!t){let t=e.push(`html_inline`,``,0);t.content=a[0],wl(t.content)&&e.linkLevel++,Tl(t.content)&&e.linkLevel--}return e.pos+=a[0].length,!0}var Ol=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,kl=/^&([a-z][a-z0-9]{1,31});/i;function Al(e,t){let n=e.pos,r=e.posMax;if(e.src.charCodeAt(n)!==38||n+1>=r)return!1;if(e.src.charCodeAt(n+1)===35){let r=e.src.slice(n).match(Ol);if(r){if(!t){let t=r[1][0].toLowerCase()===`x`?parseInt(r[1].slice(1),16):parseInt(r[1],10),n=e.push(`text_special`,``,0);n.content=vs(t)?ys(t):ys(65533),n.markup=r[0],n.info=`entity`}return e.pos+=r[0].length,!0}}else{let r=e.src.slice(n).match(kl);if(r){let n=jo(r[0]);if(n!==r[0]){if(!t){let t=e.push(`text_special`,``,0);t.content=n,t.markup=r[0],t.info=`entity`}return e.pos+=r[0].length,!0}}}return!1}function jl(e){let t={},n=e.length;if(!n)return;let r=0,i=-2,a=[];for(let o=0;o<n;o++){let n=e[o];if(a.push(0),(e[r].marker!==n.marker||i!==n.token-1)&&(r=o),i=n.token,n.length=n.length||0,!n.close)continue;t.hasOwnProperty(n.marker)||(t[n.marker]=[-1,-1,-1,-1,-1,-1]);let s=t[n.marker][(n.open?3:0)+n.length%3],c=r-a[r]-1,l=c;for(;c>s;c-=a[c]+1){let t=e[c];if(t.marker===n.marker&&t.open&&t.end<0){let r=!1;if((t.close||n.open)&&(t.length+n.length)%3==0&&(t.length%3!=0||n.length%3!=0)&&(r=!0),!r){let r=c>0&&!e[c-1].open?a[c-1]+1:0;a[o]=o-c+r,a[c]=r,n.open=!1,t.end=o,t.close=!1,l=-1,i=-2;break}}}l!==-1&&(t[n.marker][(n.open?3:0)+(n.length||0)%3]=l)}}function Ml(e){let t=e.tokens_meta,n=e.tokens_meta.length;jl(e.delimiters);for(let e=0;e<n;e++){let n=t[e]?.delimiters;n&&jl(n)}}function Nl(e){let t,n,r=0,i=e.tokens,a=e.tokens.length;for(t=n=0;t<a;t++)i[t].nesting<0&&r--,i[t].level=r,i[t].nesting>0&&r++,i[t].type===`text`&&t+1<a&&i[t+1].type===`text`?i[t+1].content=i[t].content+i[t+1].content:(t!==n&&(i[n]=i[t]),n++);t!==n&&(i.length=n)}var Pl=[[`text`,nl],[`linkify`,al],[`newline`,ol],[`escape`,cl],[`backticks`,ul],[`strikethrough`,ml.tokenize],[`emphasis`,vl.tokenize],[`link`,yl],[`image`,bl],[`autolink`,Cl],[`html_inline`,Dl],[`entity`,Al]],Fl=[[`balance_pairs`,Ml],[`strikethrough`,ml.postProcess],[`emphasis`,vl.postProcess],[`fragments_join`,Nl]],Il=class{constructor(){Y(this,`ruler`,new Ys),Y(this,`ruler2`,new Ys),Y(this,`State`,el);for(let e=0;e<Pl.length;e++)this.ruler.push(Pl[e][0],Pl[e][1]);for(let e=0;e<Fl.length;e++)this.ruler2.push(Fl[e][0],Fl[e][1])}skipToken(e){let t=e.pos,n=this.ruler.getRules(``),r=n.length,i=e.md.options.maxNesting,a=e.cache;if(a[t]!==void 0){e.pos=a[t];return}let o=!1;if(e.level<i){for(let i=0;i<r;i++)if(e.level++,o=n[i](e,!0),e.level--,o){if(t>=e.pos)throw Error(`inline rule didn't increment state.pos`);break}}else e.pos=e.posMax;o||e.pos++,a[t]=e.pos}tokenize(e){let t=this.ruler.getRules(``),n=t.length,r=e.posMax,i=e.md.options.maxNesting;for(;e.pos<r;){let a=e.pos,o=!1;if(e.level<i){for(let r=0;r<n;r++)if(o=t[r](e,!1),o){if(a>=e.pos)throw Error(`inline rule didn't increment state.pos`);break}}if(o){if(e.pos>=r)break;continue}e.pending+=e.src[e.pos++]}e.pending&&e.pushPending()}parse(e,t,n,r){let i=new this.State(e,t,n,r);this.tokenize(i);let a=this.ruler2.getRules(``),o=a.length;for(let e=0;e<o;e++)a[e](i)}},Ll={default:{options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:`language-`,linkify:!1,typographer:!1,quotes:`“”‘’`,highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}},zero:{options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:`language-`,linkify:!1,typographer:!1,quotes:`“”‘’`,highlight:null,maxNesting:20},components:{core:{rules:[`normalize`,`block`,`strip_references`,`inline`,`text_join`]},block:{rules:[`paragraph`]},inline:{rules:[`text`],rules2:[`balance_pairs`,`fragments_join`]}}},commonmark:{options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:`language-`,linkify:!1,typographer:!1,quotes:`“”‘’`,highlight:null,maxNesting:20},components:{core:{rules:[`normalize`,`block`,`strip_references`,`inline`,`text_join`]},block:{rules:[`blockquote`,`code`,`fence`,`heading`,`hr`,`html_block`,`lheading`,`list`,`reference`,`paragraph`]},inline:{rules:[`autolink`,`backticks`,`emphasis`,`entity`,`escape`,`html_inline`,`image`,`link`,`newline`,`text`],rules2:[`balance_pairs`,`emphasis`,`fragments_join`]}}}},Rl=/^(vbscript|javascript|file|data):/,zl=/^data:image\/(gif|png|jpeg|webp);/,Bl=[`http:`,`https:`,`mailto:`],Z=class{validateLink(e){let t=e.trim().toLowerCase();return!Rl.test(t)||zl.test(t)}normalizeLink(e){let t=$a(e,!0);if(t.hostname&&(!t.protocol||Bl.indexOf(t.protocol)>=0))try{t.hostname=fs.toASCII(t.hostname)}catch{}return t.auth&&=U(t.auth),t.hostname&&=U(t.hostname),t.pathname&&=U(t.pathname),t.search&&=U(t.search),t.hash&&=U(t.hash),Va(t)}normalizeLinkText(e){let t=$a(e,!0);if(t.hostname&&(!t.protocol||Bl.indexOf(t.protocol)>=0))try{t.hostname=fs.toUnicode(t.hostname)}catch{}return Ra(Va(t),Ra.defaultChars+`%`)}constructor(...e){Y(this,`inline`,new Il),Y(this,`block`,new $c),Y(this,`core`,new Dc),Y(this,`renderer`,new Xs),Y(this,`linkify`,new Bo),Y(this,`utils`,hs),Y(this,`helpers`,Object.assign({},Ws));let[t,n]=e;typeof t==`string`?(this.configure(t),n&&this.set(n)):(this.configure(`default`),this.set(t||{}))}set(e){return Object.assign(this.options,e),this}configure(e){let t;if(typeof e==`string`){let n=e;if(t=Ll[n],!t)throw Error(`Wrong 'markdown-it' preset "${n}", check name`)}else t=e;if(!t)throw Error("Wrong `markdown-it` preset, can't be empty");t.options&&(this.options={...t.options});let n=t.components;if(n){[`core`,`block`,`inline`].forEach(e=>{let t=n[e]?.rules;t&&this[e].ruler.enableOnly(t)});let e=n.inline?.rules2;e&&this.inline.ruler2.enableOnly(e)}return this}enable(e,t=!1){let n=[];Array.isArray(e)||(e=[e]),[`core`,`block`,`inline`].forEach(t=>{n=n.concat(this[t].ruler.enable(e,!0))}),n=n.concat(this.inline.ruler2.enable(e,!0));let r=e.filter(e=>n.indexOf(e)<0);if(r.length&&!t)throw Error(`MarkdownIt. Failed to enable unknown rule(s): ${r}`);return this}disable(e,t=!1){let n=[];Array.isArray(e)||(e=[e]),[`core`,`block`,`inline`].forEach(t=>{n=n.concat(this[t].ruler.disable(e,!0))}),n=n.concat(this.inline.ruler2.disable(e,!0));let r=e.filter(e=>n.indexOf(e)<0);if(r.length&&!t)throw Error(`MarkdownIt. Failed to disable unknown rule(s): ${r}`);return this}use(e,...t){return e.apply(e,[this,...t]),this}parse(e,t){if(typeof e!=`string`)throw Error(`Input data should be a String`);let n=new this.core.State(e,this,t);return this.core.process(n),n.tokens}render(e,t={}){return this.renderer.render(this.parse(e,t),this.options,t)}parseInline(e,t){let n=new this.core.State(e,this,t);return n.inlineMode=!0,this.core.process(n),n.tokens}renderInline(e,t={}){return this.renderer.render(this.parseInline(e,t),this.options,t)}};Y(Z,`Token`,Js),Y(Z,`Ruler`,Ys),Y(Z,`Renderer`,Xs),Y(Z,`ParserCore`,Dc),Y(Z,`StateCore`,Zs),Y(Z,`ParserBlock`,$c),Y(Z,`StateBlock`,Oc),Y(Z,`ParserInline`,Il),Y(Z,`StateInline`,el);var Vl=gs(Z),Hl={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},Ul=e=>(...t)=>({_$litDirective$:e,values:t}),Wl=class{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,t,n){this._$Ct=e,this._$AM=t,this._$Ci=n}_$AS(e,t){return this.update(e,t)}update(e,t){return this.render(...t)}},Gl=class extends Wl{constructor(e){if(super(e),this.it=w,e.type!==Hl.CHILD)throw Error(this.constructor.directiveName+`() can only be used in child bindings`)}render(e){if(e===w||e==null)return this._t=void 0,this.it=e;if(e===Te)return e;if(typeof e!=`string`)throw Error(this.constructor.directiveName+`() called with a non-string value`);if(e===this.it)return this._t;this.it=e;let t=[e];return t.raw=t,this._t={_$litType$:this.constructor.resultType,strings:t,values:[]}}};Gl.directiveName=`unsafeHTML`,Gl.resultType=1;var Kl=Ul(Gl),ql=new Vl({html:!1,linkify:!1,typographer:!1,breaks:!1}),Jl=ql.renderer.rules.link_open??((e,t,n,r,i)=>i.renderToken(e,t,n));ql.renderer.rules.link_open=(e,t,n,r,i)=>{let a=String(e[t]?.attrGet(`href`)??``);return/^[a-z][a-z0-9+.-]*:/i.test(a)&&!a.startsWith(`#`)&&(e[t].attrSet(`target`,`_blank`),e[t].attrSet(`rel`,`noopener`)),Jl(e,t,n,r,i)};function Yl(e,t=`md`){return e===void 0||e.trim()===``?w:C`<div class=${t}>${Kl(ql.render(e))}</div>`}function Q(e){return e===void 0||e.trim()===``?w:C`${Kl(ql.renderInline(e))}`}var Xl=l`
|
|
208
|
+
`}return r}render(e,t,n){let r=``,i=this.rules;for(let a=0,o=e.length;a<o;a++){let o=e[a].type;o===`inline`?r+=this.renderInline(e[a].children,t,n):i[o]===void 0?r+=this.renderToken(e,a,t):r+=i[o](e,a,t,n,this)}return r}},Qs=class{constructor(e,t,n){Y(this,`tokens`,[]),Y(this,`inlineMode`,!1),Y(this,`Token`,Ys),this.src=e,this.env=n,this.md=t}},$s=/\r\n?/g,ec=/\0/g;function tc(e){let t;t=e.src.replace($s,`
|
|
209
|
+
`),t=t.replace(ec,`�`),e.src=t}function nc(e){let t;e.inlineMode?(t=new e.Token(`inline`,``,0),t.content=e.src,t.map=[0,1],t.children=[],e.tokens.push(t)):e.md.block.parse(e.src,e.md,e.env,e.tokens)}function rc(e){let t=e.tokens,n=0;for(let e=0;e<t.length;e++)t[e].type!==`reference_definition`&&(e!==n&&(t[n]=t[e]),n++);t.length!==n&&(t.length=n)}function ic(e){let t=e.tokens;for(let n=0,r=t.length;n<r;n++){let r=t[n];r.type===`inline`&&e.md.inline.parse(r.content,e.md,e.env,r.children)}}function ac(e){return/^<a[>\s]/i.test(e)}function oc(e){return/^<\/a\s*>/i.test(e)}function sc(e){let t=e.tokens;if(e.md.options.linkify)for(let n=0,r=t.length;n<r;n++){if(t[n].type!==`inline`||!e.md.linkify.test(t[n].content))continue;let r=t[n].children,i=[],a=0;for(let t=r.length-1;t>=0;t--){let n=r[t];if(n.type===`link_close`){for(t--;r[t].level!==n.level&&r[t].type!==`link_open`;)t--;continue}if(n.type===`html_inline`&&(ac(n.content)&&a>0&&a--,oc(n.content)&&a++),!(a>0)&&n.type===`text`&&e.md.linkify.test(n.content)){let a=n.content,o=e.md.linkify.match(a),s=[],c=n.level,l=0;o.length>0&&o[0].index===0&&t>0&&r[t-1].type===`text_special`&&(o=o.slice(1));for(let t=0;t<o.length;t++){let n=o[t].url,r=e.md.normalizeLink(n);if(!e.md.validateLink(r))continue;let i=o[t].text;i=o[t].schema?o[t].schema===`mailto:`&&!/^mailto:/i.test(i)?e.md.normalizeLinkText(`mailto:${i}`).replace(/^mailto:/,``):e.md.normalizeLinkText(i):e.md.normalizeLinkText(`http://${i}`).replace(/^http:\/\//,``);let u=o[t].index;if(u>l){let t=new e.Token(`text`,``,0);t.content=a.slice(l,u),t.level=c,s.push(t)}let d=new e.Token(`link_open`,`a`,1);d.attrs=[[`href`,r]],d.level=c++,d.markup=`linkify`,d.info=`auto`,s.push(d);let f=new e.Token(`text`,``,0);f.content=i,f.level=c,s.push(f);let p=new e.Token(`link_close`,`a`,-1);p.level=--c,p.markup=`linkify`,p.info=`auto`,s.push(p),l=o[t].lastIndex}if(l<a.length){let t=new e.Token(`text`,``,0);t.content=a.slice(l),t.level=c,s.push(t)}i.push({index:t,nodes:s})}}if(i.length>0){let e=r.length;for(let t of i)e+=t.nodes.length-1;let a=Array(e),o=0,s=0;i.reverse();for(let e=0;e<r.length;e++){let t=i[o];if(t?.index===e){for(let e of t.nodes)a[s++]=e;o++}else a[s++]=r[e]}t[n].children=a}}}var cc=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,lc=/\((c|tm|r)\)/i,uc=/\((c|tm|r)\)/gi,dc={c:`©`,r:`®`,tm:`™`};function fc(e,t){return dc[t.toLowerCase()]}function pc(e){let t=0;for(let n=e.length-1;n>=0;n--){let r=e[n];r.type===`text`&&!t&&(r.content=r.content.replace(uc,fc)),r.type===`link_open`&&r.info===`auto`&&t--,r.type===`link_close`&&r.info===`auto`&&t++}}function mc(e){let t=0;for(let n=e.length-1;n>=0;n--){let r=e[n];r.type===`text`&&!t&&cc.test(r.content)&&(r.content=r.content.replace(/\+-/g,`±`).replace(/\.{2,}/g,`…`).replace(/([?!])…/g,`$1..`).replace(/([?!]){4,}/g,`$1$1$1`).replace(/,{2,}/g,`,`).replace(/(^|[^-])---(?=[^-]|$)/gm,`$1—`).replace(/(^|\s)--(?=\s|$)/gm,`$1–`).replace(/(^|[^-\s])--(?=[^-\s]|$)/gm,`$1–`)),r.type===`link_open`&&r.info===`auto`&&t--,r.type===`link_close`&&r.info===`auto`&&t++}}function hc(e){let t;if(e.md.options.typographer)for(t=e.tokens.length-1;t>=0;t--)e.tokens[t].type===`inline`&&(lc.test(e.tokens[t].content)&&pc(e.tokens[t].children),cc.test(e.tokens[t].content)&&mc(e.tokens[t].children))}var gc=/['"]/,_c=/['"]/g,vc=`’`,yc=1e3;function bc(e,t,n){for(;e.length>n;){let n=e.pop();n.isSingleQuote?t.single=n.prevSameQuoteIdx:t.double=n.prevSameQuoteIdx}}function xc(e,t,n,r){e[t]||(e[t]=[]),e[t].push({pos:n,ch:r})}function Sc(e,t){let n=``,r=0;t.sort((e,t)=>e.pos-t.pos);for(let i=0;i<t.length;i++){let a=t[i];n+=e.slice(r,a.pos)+a.ch,r=a.pos+1}return n+e.slice(r)}function Cc(e,t){let n,r=[],i={single:-1,double:-1},a={};for(let o=0;o<e.length;o++){let s=e[o],c=e[o].level;for(n=r.length-1;n>=0&&!(r[n].level<=c);n--);if(bc(r,i,n+1),s.type!==`text`)continue;let l=s.content,u=0,d=l.length;OUTER:for(;u<d;){_c.lastIndex=u;let s=_c.exec(l);if(!s)break;let f=!0,p=!0;u=s.index+1;let m=s[0]===`'`,h=32;if(s.index-1>=0)h=l.charCodeAt(s.index-1);else for(n=o-1;n>=0&&e[n].type!==`softbreak`&&e[n].type!==`hardbreak`;n--)if(e[n].content){h=e[n].content.charCodeAt(e[n].content.length-1);break}let g=32;if(u<d)g=l.charCodeAt(u);else for(n=o+1;n<e.length&&e[n].type!==`softbreak`&&e[n].type!==`hardbreak`;n++)if(e[n].content){g=e[n].content.charCodeAt(0);break}let _=Ls(h)||Is(h),v=Ls(g)||Is(g),y=Ps(h),b=Ps(g);if(b?f=!1:v&&(y||_||(f=!1)),y?p=!1:_&&(b||v||(p=!1)),g===34&&s[0]===`"`&&h>=48&&h<=57&&(p=f=!1),f&&p&&(f=_,p=v),!f&&!p){m&&xc(a,o,s.index,vc);continue}if(p&&(n=m?i.single:i.double,n>=0&&r[n].level===c)){let e=r[n],c,l;m?(c=t.md.options.quotes[2],l=t.md.options.quotes[3]):(c=t.md.options.quotes[0],l=t.md.options.quotes[1]),xc(a,o,s.index,l),xc(a,e.tokenIdx,e.contentPos,c),bc(r,i,n);continue OUTER}if(f){if(r.length>=yc)return;r.push({tokenIdx:o,contentPos:s.index,isSingleQuote:m,level:c,prevSameQuoteIdx:m?i.single:i.double}),m?i.single=r.length-1:i.double=r.length-1}else p&&m&&xc(a,o,s.index,vc)}}Object.keys(a).forEach(function(t){let n=Number(t);e[n].content=Sc(e[n].content,a[t])})}function wc(e){if(e.md.options.typographer)for(let t=e.tokens.length-1;t>=0;t--)e.tokens[t].type===`inline`&&gc.test(e.tokens[t].content)&&Cc(e.tokens[t].children,e)}function Tc(e){let t,n,r=e.length;for(t=0;t<r;t++)e[t].type===`text_special`&&(e[t].type=`text`);for(t=n=0;t<r;t++)e[t].type===`text`&&t+1<r&&e[t+1].type===`text`?e[t+1].content=e[t].content+e[t+1].content:(t!==n&&(e[n]=e[t]),n++);t!==n&&(e.length=n)}function Ec(e){let t,n,r=e.tokens,i=r.length;for(let e=0;e<i;e++){if(r[e].type!==`inline`)continue;let i=r[e].children,a=i.length;for(t=0;t<a;t++)i[t].type===`text_special`&&(i[t].type=`text`),i[t].children&&Tc(i[t].children);for(t=n=0;t<a;t++)i[t].type===`text`&&t+1<a&&i[t+1].type===`text`?i[t+1].content=i[t].content+i[t+1].content:(t!==n&&(i[n]=i[t]),n++);t!==n&&(i.length=n)}}var Dc=[[`normalize`,tc],[`block`,nc],[`strip_references`,rc],[`inline`,ic],[`linkify`,sc],[`replacements`,hc],[`smartquotes`,wc],[`text_join`,Ec]],Oc=class{constructor(){Y(this,`ruler`,new Xs),Y(this,`State`,Qs);for(let e=0;e<Dc.length;e++)this.ruler.push(Dc[e][0],Dc[e][1])}process(e){let t=this.ruler.getRules(``);for(let n=0,r=t.length;n<r;n++)t[n](e)}},kc=class{constructor(e,t,n,r){Y(this,`bMarks`,[]),Y(this,`eMarks`,[]),Y(this,`tShift`,[]),Y(this,`sCount`,[]),Y(this,`bsCount`,[]),Y(this,`blkIndent`,0),Y(this,`line`,0),Y(this,`lineMax`,0),Y(this,`tight`,!1),Y(this,`listIndent`,-1),Y(this,`parentType`,`root`),Y(this,`level`,0),Y(this,`Token`,Ys),this.src=e,this.md=t,this.env=n,this.tokens=r;let i=this.src;for(let e=0,t=0,n=0,r=0,a=i.length,o=!1;t<a;t++){let s=i.charCodeAt(t);if(!o){if(J(s)){n++,s===9?r+=4-r%4:r++;continue}o=!0}(s===10||t===a-1)&&(s!==10&&t++,this.bMarks.push(e),this.eMarks.push(t),this.tShift.push(n),this.sCount.push(r),this.bsCount.push(0),o=!1,n=0,r=0,e=t+1)}this.bMarks.push(i.length),this.eMarks.push(i.length),this.tShift.push(0),this.sCount.push(0),this.bsCount.push(0),this.lineMax=this.bMarks.length-1}push(e,t,n){let r=new Ys(e,t,n);return r.block=!0,n<0&&this.level--,r.level=this.level,n>0&&this.level++,this.tokens.push(r),r}isEmpty(e){return this.bMarks[e]+this.tShift[e]>=this.eMarks[e]}skipEmptyLines(e){for(let t=this.lineMax;e<t&&!(this.bMarks[e]+this.tShift[e]<this.eMarks[e]);e++);return e}skipSpaces(e){for(let t=this.src.length;e<t&&J(this.src.charCodeAt(e));e++);return e}skipSpacesBack(e,t){if(e<=t)return e;for(;e>t;)if(!J(this.src.charCodeAt(--e)))return e+1;return e}skipChars(e,t){for(let n=this.src.length;e<n&&this.src.charCodeAt(e)===t;e++);return e}skipCharsBack(e,t,n){if(e<=n)return e;for(;e>n;)if(t!==this.src.charCodeAt(--e))return e+1;return e}getLines(e,t,n,r){if(e>=t)return``;let i=Array(t-e);for(let a=0,o=e;o<t;o++,a++){let e=0,s=this.bMarks[o],c=s,l;for(l=o+1<t||r?this.eMarks[o]+1:this.eMarks[o];c<l&&e<n;){let t=this.src.charCodeAt(c);if(J(t))t===9?e+=4-(e+this.bsCount[o])%4:e++;else if(c-s<this.tShift[o])e++;else break;c++}e>n?i[a]=Array(e-n+1).join(` `)+this.src.slice(c,l):i[a]=this.src.slice(c,l)}return i.join(``)}},Ac=65536;function jc(e,t){let n=e.bMarks[t]+e.tShift[t],r=e.eMarks[t];return e.src.slice(n,r)}function Mc(e){let t=[],n=e.length,r=0,i=e.charCodeAt(r),a=!1,o=0,s=``;for(;r<n;)i===124&&(a?(s+=e.substring(o,r-1),o=r):(t.push(s+e.substring(o,r)),s=``,o=r+1)),a=i===92,r++,i=e.charCodeAt(r);return t.push(s+e.substring(o)),t}function Nc(e,t,n,r){if(t+2>n)return!1;let i=t+1;if(e.sCount[i]<e.blkIndent||e.sCount[i]-e.blkIndent>=4)return!1;let a=e.bMarks[i]+e.tShift[i];if(a>=e.eMarks[i])return!1;let o=e.src.charCodeAt(a++);if(o!==124&&o!==45&&o!==58||a>=e.eMarks[i])return!1;let s=e.src.charCodeAt(a++);if(s!==124&&s!==45&&s!==58&&!J(s)||o===45&&J(s))return!1;for(;a<e.eMarks[i];){let t=e.src.charCodeAt(a);if(t!==124&&t!==45&&t!==58&&!J(t))return!1;a++}let c=jc(e,t+1),l=c.split(`|`),u=[];for(let e=0;e<l.length;e++){let t=l[e].trim();if(!t){if(e===0||e===l.length-1)continue;return!1}if(!/^:?-+:?$/.test(t))return!1;t.charCodeAt(t.length-1)===58?u.push(t.charCodeAt(0)===58?`center`:`right`):t.charCodeAt(0)===58?u.push(`left`):u.push(``)}if(c=jc(e,t).trim(),c.indexOf(`|`)===-1||e.sCount[t]-e.blkIndent>=4)return!1;l=Mc(c),l.length&&l[0]===``&&l.shift(),l.length&&l[l.length-1]===``&&l.pop();let d=l.length;if(d===0||d!==u.length)return!1;if(r)return!0;let f=e.parentType;e.parentType=`table`;let p=e.md.block.ruler.getRules(`blockquote`),m=e.push(`table_open`,`table`,1),h=[t,0];m.map=h;let g=e.push(`thead_open`,`thead`,1);g.map=[t,t+1];let _=e.push(`tr_open`,`tr`,1);_.map=[t,t+1];for(let t=0;t<l.length;t++){let n=e.push(`th_open`,`th`,1);u[t]&&(n.attrs=[[`style`,`text-align:${u[t]}`]]);let r=e.push(`inline`,``,0);r.content=l[t].trim(),r.children=[],e.push(`th_close`,`th`,-1)}e.push(`tr_close`,`tr`,-1),e.push(`thead_close`,`thead`,-1);let v,y=0;for(i=t+2;i<n&&!(e.sCount[i]<e.blkIndent);i++){let r=!1;for(let t=0,a=p.length;t<a;t++)if(p[t](e,i,n,!0)){r=!0;break}if(r||(c=jc(e,i).trim(),!c)||e.sCount[i]-e.blkIndent>=4||(l=Mc(c),l.length&&l[0]===``&&l.shift(),l.length&&l[l.length-1]===``&&l.pop(),y+=d-l.length,y>Ac))break;if(i===t+2){let n=e.push(`tbody_open`,`tbody`,1);n.map=v=[t+2,0]}let a=e.push(`tr_open`,`tr`,1);a.map=[i,i+1];for(let t=0;t<d;t++){let n=e.push(`td_open`,`td`,1);u[t]&&(n.attrs=[[`style`,`text-align:${u[t]}`]]);let r=e.push(`inline`,``,0);r.content=l[t]?l[t].trim():``,r.children=[],e.push(`td_close`,`td`,-1)}e.push(`tr_close`,`tr`,-1)}return v&&(e.push(`tbody_close`,`tbody`,-1),v[1]=i),e.push(`table_close`,`table`,-1),h[1]=i,e.parentType=f,e.line=i,!0}function Pc(e,t,n){if(e.sCount[t]-e.blkIndent<4)return!1;let r=t+1,i=r;for(;r<n;){if(e.isEmpty(r)){r++;continue}if(e.sCount[r]-e.blkIndent>=4){r++,i=r;continue}break}e.line=i;let a=e.push(`code_block`,`code`,0);return a.content=e.getLines(t,i,4+e.blkIndent,!1)+`
|
|
210
|
+
`,a.map=[t,e.line],!0}function Fc(e,t,n,r){let i=e.bMarks[t]+e.tShift[t],a=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||i+3>a)return!1;let o=e.src.charCodeAt(i);if(o!==126&&o!==96)return!1;let s=i;i=e.skipChars(i,o);let c=i-s;if(c<3)return!1;let l=e.src.slice(s,i),u=e.src.slice(i,a);if(o===96&&u.indexOf(String.fromCharCode(o))>=0)return!1;if(r)return!0;let d=t,f=!1;for(;d++,!(d>=n||(i=s=e.bMarks[d]+e.tShift[d],a=e.eMarks[d],i<a&&e.sCount[d]<e.blkIndent));)if(e.src.charCodeAt(i)===o&&!(e.sCount[d]-e.blkIndent>=4)&&(i=e.skipChars(i,o),!(i-s<c)&&(i=e.skipSpaces(i),!(i<a)))){f=!0;break}c=e.sCount[t],e.line=d+ +!!f;let p=e.push(`fence`,`code`,0);return p.info=u,p.content=e.getLines(t+1,d,c,!0),p.markup=l,p.map=[t,e.line],!0}function Ic(e,t,n,r){let i=e.bMarks[t]+e.tShift[t],a=e.eMarks[t],o=e.lineMax;if(e.sCount[t]-e.blkIndent>=4||e.src.charCodeAt(i)!==62)return!1;if(r)return!0;let s=[],c=[],l=[],u=[],d=e.md.block.ruler.getRules(`blockquote`),f=e.parentType;e.parentType=`blockquote`;let p=!1,m;for(m=t;m<n;m++){let t=e.sCount[m]<e.blkIndent;if(i=e.bMarks[m]+e.tShift[m],a=e.eMarks[m],i>=a)break;if(e.src.charCodeAt(i++)===62&&!t){let t=e.sCount[m]+1,n,r;e.src.charCodeAt(i)===32?(i++,t++,r=!1,n=!0):e.src.charCodeAt(i)===9?(n=!0,(e.bsCount[m]+t)%4==3?(i++,t++,r=!1):r=!0):n=!1;let o=t;for(s.push(e.bMarks[m]),e.bMarks[m]=i;i<a;){let t=e.src.charCodeAt(i);if(J(t))t===9?o+=4-(o+e.bsCount[m]+ +!!r)%4:o++;else break;i++}p=i>=a,c.push(e.bsCount[m]),e.bsCount[m]=e.sCount[m]+1+ +!!n,l.push(e.sCount[m]),e.sCount[m]=o-t,u.push(e.tShift[m]),e.tShift[m]=i-e.bMarks[m];continue}if(p)break;let r=!1;for(let t=0,i=d.length;t<i;t++)if(d[t](e,m,n,!0)){r=!0;break}if(r){e.lineMax=m,e.blkIndent!==0&&(s.push(e.bMarks[m]),c.push(e.bsCount[m]),u.push(e.tShift[m]),l.push(e.sCount[m]),e.sCount[m]-=e.blkIndent);break}s.push(e.bMarks[m]),c.push(e.bsCount[m]),u.push(e.tShift[m]),l.push(e.sCount[m]),e.sCount[m]=-1}let h=e.blkIndent;e.blkIndent=0;let g=e.push(`blockquote_open`,`blockquote`,1);g.markup=`>`;let _=[t,0];g.map=_,e.md.block.tokenize(e,t,m);let v=e.push(`blockquote_close`,`blockquote`,-1);v.markup=`>`,e.lineMax=o,e.parentType=f,_[1]=e.line;for(let n=0;n<u.length;n++)e.bMarks[n+t]=s[n],e.tShift[n+t]=u[n],e.sCount[n+t]=l[n],e.bsCount[n+t]=c[n];return e.blkIndent=h,!0}function Lc(e,t,n,r){let i=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;let a=e.bMarks[t]+e.tShift[t],o=e.src.charCodeAt(a++);if(o!==42&&o!==45&&o!==95)return!1;let s=1;for(;a<i;){let t=e.src.charCodeAt(a++);if(t!==o&&!J(t))return!1;t===o&&s++}if(s<3)return!1;if(r)return!0;e.line=t+1;let c=e.push(`hr`,`hr`,0);return c.map=[t,e.line],c.markup=Array(s+1).join(String.fromCharCode(o)),!0}function Rc(e,t){let n=e.eMarks[t],r=e.bMarks[t]+e.tShift[t],i=e.src.charCodeAt(r++);return i!==42&&i!==45&&i!==43||r<n&&!J(e.src.charCodeAt(r))?-1:r}function zc(e,t){let n=e.bMarks[t]+e.tShift[t],r=e.eMarks[t],i=n;if(i+1>=r)return-1;let a=e.src.charCodeAt(i++);if(a<48||a>57)return-1;for(;;){if(i>=r)return-1;if(a=e.src.charCodeAt(i++),a>=48&&a<=57){if(i-n>=10)return-1;continue}if(a===41||a===46)break;return-1}return i<r&&(a=e.src.charCodeAt(i),!J(a))?-1:i}function Bc(e,t){let n=e.level+2;for(let r=t+2,i=e.tokens.length-2;r<i;r++)e.tokens[r].level===n&&e.tokens[r].type===`paragraph_open`&&(e.tokens[r+2].hidden=!0,e.tokens[r].hidden=!0,r+=2)}function Vc(e,t,n,r){let i,a,o,s,c=t,l=!0;if(e.sCount[c]-e.blkIndent>=4||e.listIndent>=0&&e.sCount[c]-e.listIndent>=4&&e.sCount[c]<e.blkIndent)return!1;let u=!1;r&&e.parentType===`paragraph`&&e.sCount[c]>=e.blkIndent&&(u=!0);let d,f,p;if((p=zc(e,c))>=0){if(d=!0,o=e.bMarks[c]+e.tShift[c],f=Number(e.src.slice(o,p-1)),u&&f!==1)return!1}else if((p=Rc(e,c))>=0)d=!1;else return!1;if(u&&e.skipSpaces(p)>=e.eMarks[c])return!1;if(r)return!0;let m=e.src.charCodeAt(p-1),h=e.tokens.length;d?(s=e.push(`ordered_list_open`,`ol`,1),f!==1&&(s.attrs=[[`start`,f]])):s=e.push(`bullet_list_open`,`ul`,1);let g=[c,0];s.map=g,s.markup=String.fromCharCode(m);let _=!1,v=e.md.block.ruler.getRules(`list`),y=e.parentType;for(e.parentType=`list`;c<n;){a=p,i=e.eMarks[c];let t=e.sCount[c]+p-(e.bMarks[c]+e.tShift[c]),r=t;for(;a<i;){let t=e.src.charCodeAt(a);if(t===9)r+=4-(r+e.bsCount[c])%4;else if(t===32)r++;else break;a++}let u=a,f;f=u>=i?1:r-t,f>4&&(f=1);let h=t+f;s=e.push(`list_item_open`,`li`,1),s.markup=String.fromCharCode(m);let g=[c,0];s.map=g,d&&(s.info=e.src.slice(o,p-1));let y=e.tight,b=e.tShift[c],x=e.sCount[c],S=e.listIndent;if(e.listIndent=e.blkIndent,e.blkIndent=h,e.tight=!0,e.tShift[c]=u-e.bMarks[c],e.sCount[c]=r,u>=i&&e.isEmpty(c+1)?e.line=Math.min(e.line+2,n):e.md.block.tokenize(e,c,n),(!e.tight||_)&&(l=!1),_=e.line-c>1&&e.isEmpty(e.line-1),e.blkIndent=e.listIndent,e.listIndent=S,e.tShift[c]=b,e.sCount[c]=x,e.tight=y,s=e.push(`list_item_close`,`li`,-1),s.markup=String.fromCharCode(m),c=e.line,g[1]=c,c>=n||e.sCount[c]<e.blkIndent||e.sCount[c]-e.blkIndent>=4)break;let ee=!1;for(let t=0,r=v.length;t<r;t++)if(v[t](e,c,n,!0)){ee=!0;break}if(ee)break;if(d){if(p=zc(e,c),p<0)break;o=e.bMarks[c]+e.tShift[c]}else if(p=Rc(e,c),p<0)break;if(m!==e.src.charCodeAt(p-1))break}return s=d?e.push(`ordered_list_close`,`ol`,-1):e.push(`bullet_list_close`,`ul`,-1),s.markup=String.fromCharCode(m),g[1]=c,e.line=c,e.parentType=y,l&&Bc(e,h),!0}function Hc(e,t,n,r){let i=e.bMarks[t]+e.tShift[t],a=e.eMarks[t],o=t+1;if(e.sCount[t]-e.blkIndent>=4||e.src.charCodeAt(i)!==91)return!1;function s(t){let n=e.lineMax;if(t>=n||e.isEmpty(t))return null;let r=!1;if(e.sCount[t]-e.blkIndent>3&&(r=!0),e.sCount[t]<0&&(r=!0),!r){let r=e.md.block.ruler.getRules(`reference`),i=e.parentType;e.parentType=`reference`;let a=!1;for(let i=0,o=r.length;i<o;i++)if(r[i](e,t,n,!0)){a=!0;break}if(e.parentType=i,a)return null}let i=e.bMarks[t]+e.tShift[t],a=e.eMarks[t];return e.src.slice(i,a+1)}let c=e.src.slice(i,a+1);a=c.length;let l=-1;for(i=1;i<a;i++){let e=c.charCodeAt(i);if(e===91)return!1;if(e===93){l=i;break}if(e===10){let e=s(o);e!==null&&(c+=e,a=c.length,o++)}else if(e===92&&(i++,i<a&&c.charCodeAt(i)===10)){let e=s(o);e!==null&&(c+=e,a=c.length,o++)}}if(l<0||c.charCodeAt(l+1)!==58)return!1;for(i=l+2;i<a;i++){let e=c.charCodeAt(i);if(e===10){let e=s(o);e!==null&&(c+=e,a=c.length,o++)}else if(!J(e))break}let u=e.md.helpers.parseLinkDestination(c,i,a);if(!u.ok)return!1;let d=e.md.normalizeLink(u.str);if(!e.md.validateLink(d))return!1;i=u.pos;let f=i,p=o,m=i;for(;i<a;i++){let e=c.charCodeAt(i);if(e===10){let e=s(o);e!==null&&(c+=e,a=c.length,o++)}else if(!J(e))break}let h=e.md.helpers.parseLinkTitle(c,i,a);for(;h.can_continue;){let t=s(o);if(t===null)break;c+=t,i=a,a=c.length,o++,h=e.md.helpers.parseLinkTitle(c,i,a,h)}let g;for(i<a&&m!==i&&h.ok?(g=h.str,i=h.pos):(g=``,i=f,o=p);i<a&&J(c.charCodeAt(i));)i++;if(i<a&&c.charCodeAt(i)!==10&&g)for(g=``,i=f,o=p;i<a&&J(c.charCodeAt(i));)i++;if(i<a&&c.charCodeAt(i)!==10)return!1;let _=Rs(c.slice(1,l));if(!_)return!1;if(r)return!0;e.env.references===void 0&&(e.env.references={}),e.env.references[_]===void 0&&(e.env.references[_]={title:g,href:d});let v=e.push(`reference_definition`,``,0);v.map=[t,o],v.hidden=!0;let y=Object.create(null);return y.label=_,v.meta=y,e.line=o,!0}var Uc=`address.article.aside.base.basefont.blockquote.body.caption.center.col.colgroup.dd.details.dialog.dir.div.dl.dt.fieldset.figcaption.figure.footer.form.frame.frameset.h1.h2.h3.h4.h5.h6.head.header.hr.html.iframe.legend.li.link.main.menu.menuitem.nav.noframes.ol.optgroup.option.p.param.search.section.summary.table.tbody.td.tfoot.th.thead.title.tr.track.ul`.split(`.`),Wc=`<[A-Za-z][A-Za-z0-9\\-]*(?:\\s+[a-zA-Z_:][a-zA-Z0-9:._-]*(?:\\s*=\\s*(?:[^"'=<>\`\\x00-\\x20]+|'[^']*'|"[^"]*"))?)*\\s*\\/?>`,Gc=`<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>`,Kc=RegExp(`^(?:${Wc}|${Gc}|<!---?>|<!--(?:[^-]|-[^-]|--[^>])*-->|<[?][\\s\\S]*?[?]>|<![A-Za-z][^>]*>|<!\\[CDATA\\[[\\s\\S]*?\\]\\]>)`),qc=RegExp(`^(?:${Wc}|${Gc})`),Jc=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Za-z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[RegExp(`^</?(${Uc.join(`|`)})(?=(\\s|/?>|$))`,`i`),/^$/,!0],[RegExp(`${qc.source}\\s*$`),/^$/,!1]];function Yc(e,t,n,r){let i=e.bMarks[t]+e.tShift[t],a=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||!e.md.options.html||e.src.charCodeAt(i)!==60)return!1;let o=e.src.slice(i,a),s=0;for(;s<Jc.length&&!Jc[s][0].test(o);s++);if(s===Jc.length)return!1;if(r)return Jc[s][2];let c=t+1,l=Jc[s][1].test(``);if(!Jc[s][1].test(o)){for(;c<n&&!(e.sCount[c]<e.blkIndent&&(l||!e.isEmpty(c)));c++)if(i=e.bMarks[c]+e.tShift[c],a=e.eMarks[c],o=e.src.slice(i,a),Jc[s][1].test(o)){o.length!==0&&c++;break}}e.line=c;let u=e.push(`html_block`,``,0);return u.map=[t,c],u.content=e.getLines(t,c,e.blkIndent,!0),!0}function Xc(e,t,n,r){let i=e.bMarks[t]+e.tShift[t],a=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;let o=e.src.charCodeAt(i);if(o!==35||i>=a)return!1;let s=1;for(o=e.src.charCodeAt(++i);o===35&&i<a&&s<=6;)s++,o=e.src.charCodeAt(++i);if(s>6||i<a&&!J(o))return!1;if(r)return!0;a=e.skipSpacesBack(a,i);let c=e.skipCharsBack(a,35,i);c>i&&J(e.src.charCodeAt(c-1))&&(a=c),e.line=t+1;let l=e.push(`heading_open`,`h${s}`,1);l.markup=`########`.slice(0,s),l.map=[t,e.line];let u=e.push(`inline`,``,0);u.content=Bs(e.src.slice(i,a)),u.map=[t,e.line],u.children=[];let d=e.push(`heading_close`,`h${s}`,-1);return d.markup=`########`.slice(0,s),!0}function Zc(e,t,n){let r=e.md.block.ruler.getRules(`paragraph`);if(e.sCount[t]-e.blkIndent>=4)return!1;let i=e.parentType;e.parentType=`paragraph`;let a=0,o,s=t+1;for(;s<n&&!e.isEmpty(s);s++){if(e.sCount[s]-e.blkIndent>3)continue;if(e.sCount[s]>=e.blkIndent){let t=e.bMarks[s]+e.tShift[s],n=e.eMarks[s];if(t<n&&(o=e.src.charCodeAt(t),(o===45||o===61)&&(t=e.skipChars(t,o),t=e.skipSpaces(t),t>=n))){a=o===61?1:2;break}}if(e.sCount[s]<0)continue;let t=!1;for(let i=0,a=r.length;i<a;i++)if(r[i](e,s,n,!0)){t=!0;break}if(t)break}if(!a)return e.parentType=i,!1;let c=Bs(e.getLines(t,s,e.blkIndent,!1));e.line=s+1;let l=e.push(`heading_open`,`h${a}`,1);l.markup=String.fromCharCode(o),l.map=[t,e.line];let u=e.push(`inline`,``,0);u.content=c,u.map=[t,e.line-1],u.children=[];let d=e.push(`heading_close`,`h${a}`,-1);return d.markup=String.fromCharCode(o),e.parentType=i,!0}function Qc(e,t,n){let r=e.md.block.ruler.getRules(`paragraph`),i=e.parentType,a=t+1;for(e.parentType=`paragraph`;a<n&&!e.isEmpty(a);a++){if(e.sCount[a]-e.blkIndent>3||e.sCount[a]<0)continue;let t=!1;for(let i=0,o=r.length;i<o;i++)if(r[i](e,a,n,!0)){t=!0;break}if(t)break}let o=Bs(e.getLines(t,a,e.blkIndent,!1));e.line=a;let s=e.push(`paragraph_open`,`p`,1);s.map=[t,e.line];let c=e.push(`inline`,``,0);return c.content=o,c.map=[t,e.line],c.children=[],e.push(`paragraph_close`,`p`,-1),e.parentType=i,!0}var $c=[[`table`,Nc,[`paragraph`,`reference`]],[`code`,Pc],[`fence`,Fc,[`paragraph`,`reference`,`blockquote`,`list`]],[`blockquote`,Ic,[`paragraph`,`reference`,`blockquote`,`list`]],[`hr`,Lc,[`paragraph`,`reference`,`blockquote`,`list`]],[`list`,Vc,[`paragraph`,`reference`,`blockquote`]],[`reference`,Hc],[`html_block`,Yc,[`paragraph`,`reference`,`blockquote`]],[`heading`,Xc,[`paragraph`,`reference`,`blockquote`]],[`lheading`,Zc],[`paragraph`,Qc]],el=class{constructor(){Y(this,`ruler`,new Xs),Y(this,`State`,kc);for(let e=0;e<$c.length;e++)this.ruler.push($c[e][0],$c[e][1],{alt:($c[e][2]||[]).slice()})}tokenize(e,t,n){let r=this.ruler.getRules(``),i=r.length,a=e.md.options.maxNesting,o=t,s=!1;for(;o<n&&(e.line=o=e.skipEmptyLines(o),!(o>=n||e.sCount[o]<e.blkIndent));){if(e.level>=a){e.line=n;break}let t=e.line,c=!1;for(let a=0;a<i;a++)if(c=r[a](e,o,n,!1),c){if(t>=e.line)throw Error(`block rule didn't increment state.line`);break}if(!c)throw Error(`none of the block rules matched`);e.tight=!s,e.isEmpty(e.line-1)&&(s=!0),o=e.line,o<n&&e.isEmpty(o)&&(s=!0,o++,e.line=o)}}parse(e,t,n,r){if(!e)return;let i=new this.State(e,t,n,r);this.tokenize(i,i.line,i.lineMax)}},tl=class{constructor(e,t,n,r){Y(this,`pos`,0),Y(this,`level`,0),Y(this,`pending`,``),Y(this,`pendingLevel`,0),Y(this,`cache`,{}),Y(this,`backticks`,{}),Y(this,`backticksScanned`,!1),Y(this,`linkLevel`,0),Y(this,`delimiters`,[]),Y(this,`_prev_delimiters`,[]),Y(this,`Token`,Ys),this.src=e,this.env=n,this.md=t,this.tokens=r,this.tokens_meta=Array(r.length),this.posMax=this.src.length}pushPending(){let e=new Ys(`text`,``,0);return e.content=this.pending,e.level=this.pendingLevel,this.tokens.push(e),this.pending=``,e}push(e,t,n){this.pending&&this.pushPending();let r=new Ys(e,t,n),i;return n<0&&(this.level--,this.delimiters=this._prev_delimiters.pop()),r.level=this.level,n>0&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],i={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(r),this.tokens_meta.push(i),r}scanDelims(e,t){let n=this.posMax,r=this.src.charCodeAt(e),i;if(e===0)i=32;else if(e===1)i=this.src.charCodeAt(0),(i&63488)==55296&&(i=65533);else if(i=this.src.charCodeAt(e-1),(i&64512)==56320){let t=this.src.charCodeAt(e-2);i=(t&64512)==55296?65536+(t-55296<<10)+(i-56320):65533}else(i&64512)==55296&&(i=65533);let a=e;for(;a<n&&this.src.charCodeAt(a)===r;)a++;let o=a-e,s=a<n?this.src.charCodeAt(a):32;if((s&64512)==55296){let e=this.src.charCodeAt(a+1);s=(e&64512)==56320?65536+(s-55296<<10)+(e-56320):65533}else(s&64512)==56320&&(s=65533);let c=Ls(i)||Is(i),l=Ls(s)||Is(s),u=Ps(i),d=Ps(s),f=!d&&(!l||u||c),p=!u&&(!c||d||l);return{can_open:f&&(t||!p||c),can_close:p&&(t||!f||l),length:o}}};function nl(e){switch(e){case 10:case 33:case 35:case 36:case 37:case 38:case 42:case 43:case 45:case 58:case 60:case 61:case 62:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 125:case 126:return!0;default:return!1}}function rl(e,t){let n=e.pos;for(;n<e.posMax&&!nl(e.src.charCodeAt(n));)n++;return n!==e.pos&&(t||(e.pending+=e.src.slice(e.pos,n)),e.pos=n,!0)}function il(e){return e>=65&&e<=90||e>=97&&e<=122}function al(e){return e>=65&&e<=90||e>=97&&e<=122||e>=48&&e<=57||e===43||e===45||e===46}function ol(e,t){if(!e.md.options.linkify||e.linkLevel>0)return!1;let n=e.pos,r=e.posMax;if(n+3>r||e.src.charCodeAt(n)!==58||e.src.charCodeAt(n+1)!==47||e.src.charCodeAt(n+2)!==47)return!1;let i=n-Math.min(10,e.pending.length,n),a=n;for(;a>i&&al(e.src.charCodeAt(a-1));)a--;if(a===n||!il(e.src.charCodeAt(a)))return!1;let o=n-a,s=e.md.linkify.matchAtStart(e.src.slice(a));if(!s)return!1;let c=s.url;if(c.length<=o)return!1;let l=c.length;for(;l>0&&c.charCodeAt(l-1)===42;)l--;l!==c.length&&(c=c.slice(0,l));let u=e.md.normalizeLink(c);if(!e.md.validateLink(u))return!1;if(!t){e.pending=e.pending.slice(0,-o);let t=e.push(`link_open`,`a`,1);t.attrs=[[`href`,u]],t.markup=`linkify`,t.info=`auto`;let n=e.push(`text`,``,0);n.content=e.md.normalizeLinkText(c);let r=e.push(`link_close`,`a`,-1);r.markup=`linkify`,r.info=`auto`}return e.pos+=c.length-o,!0}function sl(e,t){let n=e.pos;if(e.src.charCodeAt(n)!==10)return!1;let r=e.pending.length-1,i=e.posMax;if(!t){if(r>=0&&e.pending.charCodeAt(r)===32){if(r>=1&&e.pending.charCodeAt(r-1)===32){let t=r-1;for(;t>=1&&e.pending.charCodeAt(t-1)===32;)t--;e.pending=e.pending.slice(0,t),e.push(`hardbreak`,`br`,0)}else e.pending=e.pending.slice(0,-1),e.push(`softbreak`,`br`,0)}else e.push(`softbreak`,`br`,0)}for(n++;n<i&&J(e.src.charCodeAt(n));)n++;return e.pos=n,!0}var cl=[];for(let e=0;e<256;e++)cl.push(0);`\\!"#$%&'()*+,./:;<=>?@[]^_\`{|}~-`.split(``).forEach(function(e){cl[e.charCodeAt(0)]=1});function ll(e,t){let n=e.pos,r=e.posMax;if(e.src.charCodeAt(n)!==92||(n++,n>=r))return!1;let i=e.src.charCodeAt(n);if(i===10){for(t||e.push(`hardbreak`,`br`,0),n++;n<r&&(i=e.src.charCodeAt(n),J(i));)n++;return e.pos=n,!0}if(i===32){if(!t){let t=e.push(`text_special`,``,0);t.content=`\\`,t.markup=`\\`,t.info=`escape`}return e.pos=n,!0}let a=e.src[n];if(i>=55296&&i<=56319&&n+1<r){let t=e.src.charCodeAt(n+1);t>=56320&&t<=57343&&(a+=e.src[n+1],n++)}let o=`\\`+a;if(!t){let t=e.push(`text_special`,``,0);t.content=i<256&&cl[i]!==0?a:o,t.markup=o,t.info=`escape`}return e.pos=n+1,!0}function ul(e){let t={},n=0;for(;(n=e.indexOf("`",n))!==-1;){let r=n;for(;e.charCodeAt(++n)===96;);t[n-r]=r}return t}function dl(e,t){let n=e.pos;if(e.src.charCodeAt(n)!==96)return!1;let r=e.posMax,i=n+1;for(;i<r&&e.src.charCodeAt(i)===96;)i++;let a=e.src.slice(n,i),o=a.length;if(e.backticksScanned||=(e.backticks=ul(e.src),!0),(e.backticks[o]??-1)>=i){let n=i,s;for(;(s=e.src.indexOf("`",n))!==-1&&s<r;){for(n=s+1;e.src.charCodeAt(n)===96;)n++;if(n>r)break;if(n-s===o){if(!t){let t=e.push(`code_inline`,`code`,0);t.markup=a;let n=e.src.slice(i,s).replace(/\n/g,` `);n.startsWith(` `)&&n.endsWith(` `)&&/[^ ]/.test(n)&&(n=n.slice(1,-1)),t.content=n}return e.pos=n,!0}}}return t||(e.pending+=a),e.pos=i,!0}function fl(e,t){let n=e.pos,r=e.src.charCodeAt(n);if(t||r!==126)return!1;let i=e.scanDelims(e.pos,!0),a=i.length,o=String.fromCharCode(r);if(a<2)return!1;let s;a%2&&(s=e.push(`text`,``,0),s.content=o,a--);for(let t=0;t<a;t+=2)s=e.push(`text`,``,0),s.content=o+o,e.delimiters.push({marker:r,length:0,token:e.tokens.length-1,end:-1,open:i.can_open,close:i.can_close});return e.pos+=i.length,!0}function pl(e,t){let n,r=[],i=t.length;for(let a=0;a<i;a++){let i=t[a];if(i.marker!==126||i.end===-1)continue;let o=t[i.end];n=e.tokens[i.token],n.type=`s_open`,n.tag=`s`,n.nesting=1,n.markup=`~~`,n.content=``,n=e.tokens[o.token],n.type=`s_close`,n.tag=`s`,n.nesting=-1,n.markup=`~~`,n.content=``,e.tokens[o.token-1].type===`text`&&e.tokens[o.token-1].content===`~`&&r.push(o.token-1)}for(;r.length;){let t=r.pop(),i=t+1;for(;i<e.tokens.length&&e.tokens[i].type===`s_close`;)i++;i--,t!==i&&(n=e.tokens[i],e.tokens[i]=e.tokens[t],e.tokens[t]=n)}}function ml(e){let t=e.tokens_meta,n=e.tokens_meta.length;pl(e,e.delimiters);for(let r=0;r<n;r++){let n=t[r]?.delimiters;n&&pl(e,n)}}var hl={tokenize:fl,postProcess:ml};function gl(e,t){let n=e.pos,r=e.src.charCodeAt(n);if(t||r!==95&&r!==42)return!1;let i=e.scanDelims(e.pos,r===42);for(let t=0;t<i.length;t++){let t=e.push(`text`,``,0);t.content=String.fromCharCode(r),e.delimiters.push({marker:r,length:i.length,token:e.tokens.length-1,end:-1,open:i.can_open,close:i.can_close})}return e.pos+=i.length,!0}function _l(e,t){let n=t.length;for(let r=n-1;r>=0;r--){let n=t[r];if(n.marker!==95&&n.marker!==42||n.end===-1)continue;let i=t[n.end],a=r>0&&t[r-1].end===n.end+1&&t[r-1].marker===n.marker&&t[r-1].token===n.token-1&&t[n.end+1].token===i.token+1,o=String.fromCharCode(n.marker),s=e.tokens[n.token];s.type=a?`strong_open`:`em_open`,s.tag=a?`strong`:`em`,s.nesting=1,s.markup=a?o+o:o,s.content=``;let c=e.tokens[i.token];c.type=a?`strong_close`:`em_close`,c.tag=a?`strong`:`em`,c.nesting=-1,c.markup=a?o+o:o,c.content=``,a&&(e.tokens[t[r-1].token].content=``,e.tokens[t[n.end+1].token].content=``,r--)}}function vl(e){let t=e.tokens_meta,n=e.tokens_meta.length;_l(e,e.delimiters);for(let r=0;r<n;r++){let n=t[r]?.delimiters;n&&_l(e,n)}}var yl={tokenize:gl,postProcess:vl};function bl(e,t){let n,r,i,a,o=``,s=``,c=e.pos,l=!0;if(e.src.charCodeAt(e.pos)!==91)return!1;let u=e.pos,d=e.posMax,f=e.pos+1,p=e.md.helpers.parseLinkLabel(e,e.pos,!0);if(p<0)return!1;let m=p+1;if(m<d&&e.src.charCodeAt(m)===40){for(l=!1,m++;m<d&&(n=e.src.charCodeAt(m),J(n)||n===10);m++);if(m>=d)return!1;if(c=m,i=e.md.helpers.parseLinkDestination(e.src,m,e.posMax),i.ok){for(o=e.md.normalizeLink(i.str),e.md.validateLink(o)?m=i.pos:o=``,c=m;m<d&&(n=e.src.charCodeAt(m),J(n)||n===10);m++);if(i=e.md.helpers.parseLinkTitle(e.src,m,e.posMax),m<d&&c!==m&&i.ok)for(s=i.str,m=i.pos;m<d&&(n=e.src.charCodeAt(m),J(n)||n===10);m++);}(m>=d||e.src.charCodeAt(m)!==41)&&(l=!0),m++}if(l){if(e.env.references===void 0)return!1;if(m<d&&e.src.charCodeAt(m)===91?(c=m+1,m=e.md.helpers.parseLinkLabel(e,m),m>=0?r=e.src.slice(c,m++):m=p+1):m=p+1,r||=e.src.slice(f,p),r=Rs(r),a=e.env.references[r],!a)return e.pos=u,!1;o=a.href,s=a.title}if(!t){e.pos=f,e.posMax=p;let t=e.push(`link_open`,`a`,1),n=[[`href`,o]];if(t.attrs=n,s&&n.push([`title`,s]),r){let e=Object.create(null);e.label=r,t.meta=e}e.linkLevel++,e.md.inline.tokenize(e),e.linkLevel--,e.push(`link_close`,`a`,-1)}return e.pos=m,e.posMax=d,!0}function xl(e,t){let n,r,i,a,o,s,c,l,u=``,d=e.pos,f=e.posMax;if(e.src.charCodeAt(e.pos)!==33||e.src.charCodeAt(e.pos+1)!==91)return!1;let p=e.pos+2,m=e.md.helpers.parseLinkLabel(e,e.pos+1,!1);if(m<0)return!1;if(a=m+1,a<f&&e.src.charCodeAt(a)===40){for(a++;a<f&&(n=e.src.charCodeAt(a),J(n)||n===10);a++);if(a>=f)return!1;for(l=a,s=e.md.helpers.parseLinkDestination(e.src,a,e.posMax),s.ok&&(u=e.md.normalizeLink(s.str),e.md.validateLink(u)?a=s.pos:u=``),l=a;a<f&&(n=e.src.charCodeAt(a),J(n)||n===10);a++);if(s=e.md.helpers.parseLinkTitle(e.src,a,e.posMax),a<f&&l!==a&&s.ok)for(c=s.str,a=s.pos;a<f&&(n=e.src.charCodeAt(a),J(n)||n===10);a++);else c=``;if(a>=f||e.src.charCodeAt(a)!==41)return e.pos=d,!1;a++}else{if(e.env.references===void 0)return!1;if(a<f&&e.src.charCodeAt(a)===91?(l=a+1,a=e.md.helpers.parseLinkLabel(e,a),a>=0?i=e.src.slice(l,a++):a=m+1):a=m+1,i||=e.src.slice(p,m),i=Rs(i),o=e.env.references[i],!o)return e.pos=d,!1;u=o.href,c=o.title}if(!t){r=e.src.slice(p,m);let t=[];e.md.inline.parse(r,e.md,e.env,t);let n=e.push(`image`,`img`,0),a=[[`src`,u],[`alt`,``]];if(n.attrs=a,n.children=t,n.content=r,c&&a.push([`title`,c]),i){let e=Object.create(null);e.label=i,n.meta=e}}return e.pos=a,e.posMax=f,!0}var Sl=/^([a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)$/,Cl=/^([a-zA-Z][a-zA-Z0-9+.-]{1,31}):([^<>\x00-\x20]*)$/;function wl(e,t){let n=e.pos;if(e.src.charCodeAt(n)!==60)return!1;let r=e.pos,i=e.posMax;for(;;){if(++n>=i)return!1;let t=e.src.charCodeAt(n);if(t===60)return!1;if(t===62)break}let a=e.src.slice(r+1,n);if(Cl.test(a)){let n=e.md.normalizeLink(a);if(!e.md.validateLink(n))return!1;if(!t){let t=e.push(`link_open`,`a`,1);t.attrs=[[`href`,n]],t.markup=`autolink`,t.info=`auto`;let r=e.push(`text`,``,0);r.content=e.md.normalizeLinkText(a);let i=e.push(`link_close`,`a`,-1);i.markup=`autolink`,i.info=`auto`}return e.pos+=a.length+2,!0}if(Sl.test(a)){let n=e.md.normalizeLink(`mailto:${a}`);if(!e.md.validateLink(n))return!1;if(!t){let t=e.push(`link_open`,`a`,1);t.attrs=[[`href`,n]],t.markup=`autolink`,t.info=`auto`;let r=e.push(`text`,``,0);r.content=e.md.normalizeLinkText(a);let i=e.push(`link_close`,`a`,-1);i.markup=`autolink`,i.info=`auto`}return e.pos+=a.length+2,!0}return!1}function Tl(e){return/^<a[>\s]/i.test(e)}function El(e){return/^<\/a\s*>/i.test(e)}function Dl(e){let t=e|32;return t>=97&&t<=122}function Ol(e,t){if(!e.md.options.html)return!1;let n=e.posMax,r=e.pos;if(e.src.charCodeAt(r)!==60||r+2>=n)return!1;let i=e.src.charCodeAt(r+1);if(i!==33&&i!==63&&i!==47&&!Dl(i))return!1;let a=e.src.slice(r).match(Kc);if(!a)return!1;if(!t){let t=e.push(`html_inline`,``,0);t.content=a[0],Tl(t.content)&&e.linkLevel++,El(t.content)&&e.linkLevel--}return e.pos+=a[0].length,!0}var kl=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,Al=/^&([a-z][a-z0-9]{1,31});/i;function jl(e,t){let n=e.pos,r=e.posMax;if(e.src.charCodeAt(n)!==38||n+1>=r)return!1;if(e.src.charCodeAt(n+1)===35){let r=e.src.slice(n).match(kl);if(r){if(!t){let t=r[1][0].toLowerCase()===`x`?parseInt(r[1].slice(1),16):parseInt(r[1],10),n=e.push(`text_special`,``,0);n.content=ys(t)?bs(t):bs(65533),n.markup=r[0],n.info=`entity`}return e.pos+=r[0].length,!0}}else{let r=e.src.slice(n).match(Al);if(r){let n=Mo(r[0]);if(n!==r[0]){if(!t){let t=e.push(`text_special`,``,0);t.content=n,t.markup=r[0],t.info=`entity`}return e.pos+=r[0].length,!0}}}return!1}function Ml(e){let t={},n=e.length;if(!n)return;let r=0,i=-2,a=[];for(let o=0;o<n;o++){let n=e[o];if(a.push(0),(e[r].marker!==n.marker||i!==n.token-1)&&(r=o),i=n.token,n.length=n.length||0,!n.close)continue;t.hasOwnProperty(n.marker)||(t[n.marker]=[-1,-1,-1,-1,-1,-1]);let s=t[n.marker][(n.open?3:0)+n.length%3],c=r-a[r]-1,l=c;for(;c>s;c-=a[c]+1){let t=e[c];if(t.marker===n.marker&&t.open&&t.end<0){let r=!1;if((t.close||n.open)&&(t.length+n.length)%3==0&&(t.length%3!=0||n.length%3!=0)&&(r=!0),!r){let r=c>0&&!e[c-1].open?a[c-1]+1:0;a[o]=o-c+r,a[c]=r,n.open=!1,t.end=o,t.close=!1,l=-1,i=-2;break}}}l!==-1&&(t[n.marker][(n.open?3:0)+(n.length||0)%3]=l)}}function Nl(e){let t=e.tokens_meta,n=e.tokens_meta.length;Ml(e.delimiters);for(let e=0;e<n;e++){let n=t[e]?.delimiters;n&&Ml(n)}}function Pl(e){let t,n,r=0,i=e.tokens,a=e.tokens.length;for(t=n=0;t<a;t++)i[t].nesting<0&&r--,i[t].level=r,i[t].nesting>0&&r++,i[t].type===`text`&&t+1<a&&i[t+1].type===`text`?i[t+1].content=i[t].content+i[t+1].content:(t!==n&&(i[n]=i[t]),n++);t!==n&&(i.length=n)}var Fl=[[`text`,rl],[`linkify`,ol],[`newline`,sl],[`escape`,ll],[`backticks`,dl],[`strikethrough`,hl.tokenize],[`emphasis`,yl.tokenize],[`link`,bl],[`image`,xl],[`autolink`,wl],[`html_inline`,Ol],[`entity`,jl]],Il=[[`balance_pairs`,Nl],[`strikethrough`,hl.postProcess],[`emphasis`,yl.postProcess],[`fragments_join`,Pl]],Ll=class{constructor(){Y(this,`ruler`,new Xs),Y(this,`ruler2`,new Xs),Y(this,`State`,tl);for(let e=0;e<Fl.length;e++)this.ruler.push(Fl[e][0],Fl[e][1]);for(let e=0;e<Il.length;e++)this.ruler2.push(Il[e][0],Il[e][1])}skipToken(e){let t=e.pos,n=this.ruler.getRules(``),r=n.length,i=e.md.options.maxNesting,a=e.cache;if(a[t]!==void 0){e.pos=a[t];return}let o=!1;if(e.level<i){for(let i=0;i<r;i++)if(e.level++,o=n[i](e,!0),e.level--,o){if(t>=e.pos)throw Error(`inline rule didn't increment state.pos`);break}}else e.pos=e.posMax;o||e.pos++,a[t]=e.pos}tokenize(e){let t=this.ruler.getRules(``),n=t.length,r=e.posMax,i=e.md.options.maxNesting;for(;e.pos<r;){let a=e.pos,o=!1;if(e.level<i){for(let r=0;r<n;r++)if(o=t[r](e,!1),o){if(a>=e.pos)throw Error(`inline rule didn't increment state.pos`);break}}if(o){if(e.pos>=r)break;continue}e.pending+=e.src[e.pos++]}e.pending&&e.pushPending()}parse(e,t,n,r){let i=new this.State(e,t,n,r);this.tokenize(i);let a=this.ruler2.getRules(``),o=a.length;for(let e=0;e<o;e++)a[e](i)}},Rl={default:{options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:`language-`,linkify:!1,typographer:!1,quotes:`“”‘’`,highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}},zero:{options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:`language-`,linkify:!1,typographer:!1,quotes:`“”‘’`,highlight:null,maxNesting:20},components:{core:{rules:[`normalize`,`block`,`strip_references`,`inline`,`text_join`]},block:{rules:[`paragraph`]},inline:{rules:[`text`],rules2:[`balance_pairs`,`fragments_join`]}}},commonmark:{options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:`language-`,linkify:!1,typographer:!1,quotes:`“”‘’`,highlight:null,maxNesting:20},components:{core:{rules:[`normalize`,`block`,`strip_references`,`inline`,`text_join`]},block:{rules:[`blockquote`,`code`,`fence`,`heading`,`hr`,`html_block`,`lheading`,`list`,`reference`,`paragraph`]},inline:{rules:[`autolink`,`backticks`,`emphasis`,`entity`,`escape`,`html_inline`,`image`,`link`,`newline`,`text`],rules2:[`balance_pairs`,`emphasis`,`fragments_join`]}}}},zl=/^(vbscript|javascript|file|data):/,Bl=/^data:image\/(gif|png|jpeg|webp);/,Vl=[`http:`,`https:`,`mailto:`],Z=class{validateLink(e){let t=e.trim().toLowerCase();return!zl.test(t)||Bl.test(t)}normalizeLink(e){let t=eo(e,!0);if(t.hostname&&(!t.protocol||Vl.indexOf(t.protocol)>=0))try{t.hostname=ps.toASCII(t.hostname)}catch{}return t.auth&&=U(t.auth),t.hostname&&=U(t.hostname),t.pathname&&=U(t.pathname),t.search&&=U(t.search),t.hash&&=U(t.hash),Ha(t)}normalizeLinkText(e){let t=eo(e,!0);if(t.hostname&&(!t.protocol||Vl.indexOf(t.protocol)>=0))try{t.hostname=ps.toUnicode(t.hostname)}catch{}return za(Ha(t),za.defaultChars+`%`)}constructor(...e){Y(this,`inline`,new Ll),Y(this,`block`,new el),Y(this,`core`,new Oc),Y(this,`renderer`,new Zs),Y(this,`linkify`,new Vo),Y(this,`utils`,gs),Y(this,`helpers`,Object.assign({},Gs));let[t,n]=e;typeof t==`string`?(this.configure(t),n&&this.set(n)):(this.configure(`default`),this.set(t||{}))}set(e){return Object.assign(this.options,e),this}configure(e){let t;if(typeof e==`string`){let n=e;if(t=Rl[n],!t)throw Error(`Wrong 'markdown-it' preset "${n}", check name`)}else t=e;if(!t)throw Error("Wrong `markdown-it` preset, can't be empty");t.options&&(this.options={...t.options});let n=t.components;if(n){[`core`,`block`,`inline`].forEach(e=>{let t=n[e]?.rules;t&&this[e].ruler.enableOnly(t)});let e=n.inline?.rules2;e&&this.inline.ruler2.enableOnly(e)}return this}enable(e,t=!1){let n=[];Array.isArray(e)||(e=[e]),[`core`,`block`,`inline`].forEach(t=>{n=n.concat(this[t].ruler.enable(e,!0))}),n=n.concat(this.inline.ruler2.enable(e,!0));let r=e.filter(e=>n.indexOf(e)<0);if(r.length&&!t)throw Error(`MarkdownIt. Failed to enable unknown rule(s): ${r}`);return this}disable(e,t=!1){let n=[];Array.isArray(e)||(e=[e]),[`core`,`block`,`inline`].forEach(t=>{n=n.concat(this[t].ruler.disable(e,!0))}),n=n.concat(this.inline.ruler2.disable(e,!0));let r=e.filter(e=>n.indexOf(e)<0);if(r.length&&!t)throw Error(`MarkdownIt. Failed to disable unknown rule(s): ${r}`);return this}use(e,...t){return e.apply(e,[this,...t]),this}parse(e,t){if(typeof e!=`string`)throw Error(`Input data should be a String`);let n=new this.core.State(e,this,t);return this.core.process(n),n.tokens}render(e,t={}){return this.renderer.render(this.parse(e,t),this.options,t)}parseInline(e,t){let n=new this.core.State(e,this,t);return n.inlineMode=!0,this.core.process(n),n.tokens}renderInline(e,t={}){return this.renderer.render(this.parseInline(e,t),this.options,t)}};Y(Z,`Token`,Ys),Y(Z,`Ruler`,Xs),Y(Z,`Renderer`,Zs),Y(Z,`ParserCore`,Oc),Y(Z,`StateCore`,Qs),Y(Z,`ParserBlock`,el),Y(Z,`StateBlock`,kc),Y(Z,`ParserInline`,Ll),Y(Z,`StateInline`,tl);var Hl=_s(Z),Ul={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},Wl=e=>(...t)=>({_$litDirective$:e,values:t}),Gl=class{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,t,n){this._$Ct=e,this._$AM=t,this._$Ci=n}_$AS(e,t){return this.update(e,t)}update(e,t){return this.render(...t)}},Kl=class extends Gl{constructor(e){if(super(e),this.it=w,e.type!==Ul.CHILD)throw Error(this.constructor.directiveName+`() can only be used in child bindings`)}render(e){if(e===w||e==null)return this._t=void 0,this.it=e;if(e===Te)return e;if(typeof e!=`string`)throw Error(this.constructor.directiveName+`() called with a non-string value`);if(e===this.it)return this._t;this.it=e;let t=[e];return t.raw=t,this._t={_$litType$:this.constructor.resultType,strings:t,values:[]}}};Kl.directiveName=`unsafeHTML`,Kl.resultType=1;var ql=Wl(Kl),Jl=new Hl({html:!1,linkify:!1,typographer:!1,breaks:!1}),Yl=Jl.renderer.rules.link_open??((e,t,n,r,i)=>i.renderToken(e,t,n));Jl.renderer.rules.link_open=(e,t,n,r,i)=>{let a=String(e[t]?.attrGet(`href`)??``);return/^[a-z][a-z0-9+.-]*:/i.test(a)&&!a.startsWith(`#`)&&(e[t].attrSet(`target`,`_blank`),e[t].attrSet(`rel`,`noopener`)),Yl(e,t,n,r,i)};function Xl(e,t=`md`){return e===void 0||e.trim()===``?w:C`<div class=${t}>${ql(Jl.render(e))}</div>`}function Q(e){return e===void 0||e.trim()===``?w:C`${ql(Jl.renderInline(e))}`}var Zl=l`
|
|
211
211
|
.info__desc {
|
|
212
212
|
margin-bottom: 20px;
|
|
213
213
|
padding: 14px 18px;
|
|
@@ -219,15 +219,15 @@ $&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,`$1$2`).replace(/\
|
|
|
219
219
|
line-height: 1.65;
|
|
220
220
|
color: var(--_ink-2);
|
|
221
221
|
}
|
|
222
|
-
`;function
|
|
223
|
-
${e.tags.map(e=>
|
|
222
|
+
`;function Ql(e,t){let n=[];if(e.tags.length>0&&n.push([`Tags`,C`<ul class="chips">
|
|
223
|
+
${e.tags.map(e=>Ia(e))}
|
|
224
224
|
</ul>`]),e.contact){let t=e.contact;n.push([`Contact`,C`${t.name??w}${t.name&&(t.email||t.url)?` · `:w}${t.email?C`<a href="mailto:${t.email}">${t.email}</a>`:w}${t.email&&t.url?` · `:w}${t.url?C`<a href=${t.url} target="_blank" rel="noopener">${t.url}</a>`:w}`])}return e.license&&n.push([`License`,e.license.url?C`<a href=${e.license.url} target="_blank" rel="noopener">${e.license.name}</a>`:C`${e.license.name}`]),e.termsOfService&&n.push([`Terms of service`,C`<a href=${e.termsOfService} target="_blank" rel="noopener">${e.termsOfService}</a>`]),e.externalDocs&&n.push([`Documentation`,C`<a href=${e.externalDocs.url} target="_blank" rel="noopener">${e.externalDocs.description??e.externalDocs.url}</a>`]),e.defaultContentType&&n.push([`Default content type`,C`<code>${e.defaultContentType}</code>`]),C`
|
|
225
225
|
<section class="info" aria-labelledby=${t}>
|
|
226
226
|
<h2 class="section-title visually-hidden" id=${t} tabindex="-1">${e.title}</h2>
|
|
227
|
-
${e.description?C`<div class="info__desc">${
|
|
227
|
+
${e.description?C`<div class="info__desc">${Xl(e.description)}</div>`:w}
|
|
228
228
|
${n.length>0?C`<dl class="facts">${n.map(([e,t])=>C`<dt>${e}</dt><dd>${t}</dd>`)}</dl>`:w}
|
|
229
229
|
</section>
|
|
230
|
-
`}var
|
|
230
|
+
`}var $l=l`
|
|
231
231
|
.block {
|
|
232
232
|
margin-top: 28px;
|
|
233
233
|
}
|
|
@@ -480,7 +480,7 @@ $&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,`$1$2`).replace(/\
|
|
|
480
480
|
.reply__row--bindings .label {
|
|
481
481
|
padding-top: 6px;
|
|
482
482
|
}
|
|
483
|
-
`;function
|
|
483
|
+
`;function eu(e,t){return e.length===0?w:C`<div class="block" id="${t}--parameters">
|
|
484
484
|
<h4 class="sub-title" tabindex="-1">Parameters</h4>
|
|
485
485
|
<dl class="params">
|
|
486
486
|
${e.map(e=>{let t=[];return e.enum&&e.enum.length>0&&t.push(`enum: ${e.enum.join(` · `)}`),e.default!==void 0&&t.push(`default: ${e.default}`),e.examples&&e.examples.length>0&&t.push(`examples: ${e.examples.join(` · `)}`),e.location&&t.push(`location: ${e.location}`),C`<dt>
|
|
@@ -492,23 +492,23 @@ $&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,`$1$2`).replace(/\
|
|
|
492
492
|
${t.length>0?C`<div class="params__facts">${t.join(` · `)}</div>`:w}
|
|
493
493
|
</dd>`})}
|
|
494
494
|
</dl>
|
|
495
|
-
</div>`}function
|
|
496
|
-
<span class="binding__head"><span class="chip">${o}</span>${
|
|
495
|
+
</div>`}function tu(e){return typeof e==`object`&&!!e&&!Array.isArray(e)&&typeof e.type==`string`}function nu(e){if(typeof e==`string`||typeof e==`number`||typeof e==`boolean`)return C`<span class="chip__value mono">${String(e)}</span>`;if(tu(e))return C`<span class="chip__value mono">${[e.type,Array.isArray(e.enum)?`enum: ${e.enum.map(String).join(` · `)}`:void 0].filter(Boolean).join(` · `)}</span>`;let t=JSON.stringify(e);return t.length<=40?C`<span class="chip__value mono">${t}</span>`:C`<pre class="chip__value">${JSON.stringify(e,null,2)}</pre>`}function ru(e,t,n,r,i){let a=tu(n.value)&&typeof n.value.description==`string`?n.value.description:void 0,o=C`<span class="mono"><span class="chip__scope">${e}</span>${n.key}</span>`;return i===`split`?C`<li class="binding ${a?`binding--described`:``}" title=${r}>
|
|
496
|
+
<span class="binding__head"><span class="chip">${o}</span>${nu(n.value)}</span>
|
|
497
497
|
${a?C`<span class="chip__desc">${Q(a)}</span>`:w}
|
|
498
498
|
</li>`:C`<li class="chip ${a?`chip--row`:``}" title=${r}>
|
|
499
|
-
<span class="chip__head">${o}${
|
|
499
|
+
<span class="chip__head">${o}${nu(n.value)}</span>
|
|
500
500
|
${a?C`<span class="chip__desc">${Q(a)}</span>`:w}
|
|
501
|
-
</li>`}function
|
|
501
|
+
</li>`}function iu(e){let t=[],n=(e,r)=>{if(Array.isArray(r)){r.every(e=>typeof e!=`object`||!e)?t.push({key:e,value:r.map(String).join(` · `)}):t.push({key:e,value:r});return}if(typeof r==`object`&&r){if(typeof r.type==`string`){t.push({key:e,value:r});return}for(let[t,i]of Object.entries(r))n(`${e}.${t}`,i);return}t.push({key:e,value:r})};return n(e.key,e.value),t}function au(e,t=`Bindings`,n=`pill`){return e.length===0?w:C`<div class="block">
|
|
502
502
|
<h4 class="sub-title">${t}</h4>
|
|
503
503
|
<ul class="chips">
|
|
504
|
-
${e.flatMap(e=>
|
|
504
|
+
${e.flatMap(e=>iu(e).map(t=>ru(`${e.scope}.`,e.protocol,t,`${e.protocol} binding`,n)))}
|
|
505
505
|
</ul>
|
|
506
|
-
</div>`}function
|
|
506
|
+
</div>`}function ou(e){let t=e.flows??[],n=new Map;for(let e of t)for(let t of e.scopes)n.has(t.name)||n.set(t.name,t.description);if(n.size>0)for(let t of e.scopes)n.has(t)||n.set(t,``);let r=e.facts??[],i=e.extensions??[];if(!e.description&&r.length===0&&i.length===0&&!e.openIdConnectUrl&&t.length===0)return w;let a=(e,t)=>t?C`<li class="mono"><span class="chip__scope">${e} </span><a href=${t}>${t}</a></li>`:w;return C`<div class="sec__details">
|
|
507
507
|
${e.description?C`<span class="chip__desc">${Q(e.description)}</span>`:w}
|
|
508
508
|
${r.length>0||i.length>0||e.openIdConnectUrl?C`<ul class="sec__list">
|
|
509
509
|
${r.map(e=>C`<li class="mono"><span class="chip__scope">${e.label} </span>${e.value}</li>`)}
|
|
510
510
|
${a(`discovery`,e.openIdConnectUrl)}
|
|
511
|
-
${i.map(e=>C`<li class="mono"><span class="chip__scope">${e.key.slice(2)} </span>${
|
|
511
|
+
${i.map(e=>C`<li class="mono"><span class="chip__scope">${e.key.slice(2)} </span>${su(e.value)}</li>`)}
|
|
512
512
|
</ul>`:w}
|
|
513
513
|
${t.length>0?C`<div class="sec__group">
|
|
514
514
|
<span class="sec__label">flows</span>
|
|
@@ -523,13 +523,13 @@ $&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,`$1$2`).replace(/\
|
|
|
523
523
|
<span class="sec__label">scopes</span>
|
|
524
524
|
<dl class="sec__scopes">${[...n].map(([e,t])=>C`<dt class="mono">${e}</dt><dd>${t?Q(t):w}</dd>`)}</dl>
|
|
525
525
|
</div>`:w}
|
|
526
|
-
</div>`}function
|
|
527
|
-
`)?C`${e}`:C`<pre class="sec__pre">${e}</pre>`;if(typeof e==`number`||typeof e==`boolean`||e===null)return C`${String(e)}`;let t=JSON.stringify(e);return t.length<=60?C`${t}`:C`<pre class="sec__pre">${JSON.stringify(e,null,2)}</pre>`}function
|
|
526
|
+
</div>`}function su(e){if(typeof e==`string`)return e.length<=60&&!e.includes(`
|
|
527
|
+
`)?C`${e}`:C`<pre class="sec__pre">${e}</pre>`;if(typeof e==`number`||typeof e==`boolean`||e===null)return C`${String(e)}`;let t=JSON.stringify(e);return t.length<=60?C`${t}`:C`<pre class="sec__pre">${JSON.stringify(e,null,2)}</pre>`}function cu(e){return(e.flows??[]).some(e=>e.scopes.length>0)}function lu(e,t,n){let r=n?C`<a class="sec__id" href=${n}>${e.id}</a>`:C`<span class="mono">${e.id}</span>`,i=e.type&&e.type!==e.id?C`<span class="chip__value mono">${e.type}</span>`:w,a=e.scopes.length>0&&!cu(e)?C`<span class="chip__value mono"><span class="chip__scope">scopes </span>${e.scopes.join(` · `)}</span>`:w,o=ou(e),s=C`<span class="binding__head"><span class="chip ${t===`pill`?`sec__pill`:``}">${r}</span>${i}${a}</span>`;return t===`split`?C`<li class="binding ${o===w?``:`binding--described`}">${s}${o}</li>`:o===w?C`<li class="binding">${s}</li>`:C`<li class="chip chip--row sec--row">${s}${o}</li>`}function uu(e,t=`pill`,n){return e.length===0?w:C`<div class="block">
|
|
528
528
|
<h4 class="sub-title">Security</h4>
|
|
529
529
|
<ul class="chips">
|
|
530
|
-
${e.map(e=>
|
|
530
|
+
${e.map(e=>lu(e,t,n))}
|
|
531
531
|
</ul>
|
|
532
|
-
</div>`}function
|
|
532
|
+
</div>`}function du(e,t){let n=e.channel?e.channel.address:void 0;return C`<div class="block">
|
|
533
533
|
<h4 class="sub-title">Reply</h4>
|
|
534
534
|
<div class="reply">
|
|
535
535
|
${e.addressLocation?C`<div class="reply__row"><span class="label">Address from</span><span class="reply__address">${e.addressLocation}</span></div>`:w}
|
|
@@ -548,11 +548,11 @@ $&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,`$1$2`).replace(/\
|
|
|
548
548
|
${e.channel&&e.channel.bindings.length>0?C`<div class="reply__row reply__row--bindings">
|
|
549
549
|
<span class="label">Bindings</span>
|
|
550
550
|
<ul class="chips">
|
|
551
|
-
${e.channel.bindings.flatMap(e=>
|
|
551
|
+
${e.channel.bindings.flatMap(e=>iu(e).map(t=>ru(`reply.channel.`,e.protocol,t,`${e.protocol} binding of the reply channel`,`pill`)))}
|
|
552
552
|
</ul>
|
|
553
553
|
</div>`:w}
|
|
554
554
|
</div>
|
|
555
|
-
</div>`}function
|
|
555
|
+
</div>`}function fu(e){if(e&&e.kind===`node`)return mu(e,0)}var pu=8;function mu(e,t){if(e.examples&&e.examples.length>0)return e.examples[0];if(e.default!==void 0)return e.default;if(e.const!==void 0)return e.const;if(e.enum&&e.enum.length>0)return e.enum[0];if(e.circularRef!==void 0||t>pu)return null;let n=e.children.length===1&&e.children[0].name===`[]`?e.children[0]:void 0,r=gu(e);if(e.composition&&e.composition.variants.length>0&&e.children.length===0&&!n)return mu(e.composition.variants[0].node,t);if(r===`array`||n)return n?[mu(n,t+1)]:e.children.filter(e=>/^\[\d+\]$/.test(e.name)).map(e=>mu(e,t+1));if(r===`object`||e.children.length>0){let n={};for(let r of e.children)r.name===`*`?n.key=mu(r,t+1):r.name.startsWith(`/`)?n[`x-example`]=mu(r,t+1):n[r.name]=mu(r,t+1);return e.composition&&e.composition.variants.length>0&&Object.assign(n,hu(mu(e.composition.variants[0].node,t))),n}switch(r){case`string`:return yu(e);case`integer`:return _u(e);case`number`:return vu(e);case`boolean`:return!0;case`null`:return null;default:return yu(e)}}function hu(e){return typeof e==`object`&&e&&!Array.isArray(e)?e:{}}function gu(e){return e.types.find(e=>e!==`null`)??e.types[0]}function $(e,t){let n=e.constraints.find(e=>e.key===t);return typeof n?.value==`number`?n.value:void 0}function _u(e){let t=$(e,`minimum`)??($(e,`exclusiveMinimum`)===void 0?void 0:$(e,`exclusiveMinimum`)+1),n=$(e,`maximum`)??($(e,`exclusiveMaximum`)===void 0?void 0:$(e,`exclusiveMaximum`)-1),r=e.name.toLowerCase(),i=/quantity|count|qty|items|size/.test(r)?2:/age/.test(r)?34:/year/.test(r)?2026:/port/.test(r)?8080:42;return t!==void 0&&i<t&&(i=t),n!==void 0&&i>n&&(i=n),i}function vu(e){let t=$(e,`minimum`)??$(e,`exclusiveMinimum`),n=$(e,`maximum`)??$(e,`exclusiveMaximum`),r=e.name.toLowerCase(),i=/price|amount|total|cost|fee/.test(r)?12.5:/lat/.test(r)?52.37:/lon|lng/.test(r)?4.89:/percent|ratio|rate/.test(r)?.25:3.14;return t!==void 0&&i<=t&&(i=t+1),n!==void 0&&i>=n&&(i=n-1),i}function yu(e){let t=e.format?.toLowerCase(),n=e.name,r=n.toLowerCase(),i;switch(t){case`uuid`:i=`3fa85f64-5717-4562-b3fc-2c963f66afa6`;break;case`email`:case`idn-email`:i=`ada@example.com`;break;case`date-time`:i=`2026-09-26T10:15:00Z`;break;case`date`:i=`2026-09-26`;break;case`time`:i=`10:15:00Z`;break;case`duration`:i=`PT15M`;break;case`uri`:case`url`:case`iri`:case`uri-reference`:i=`https://example.com/resource/42`;break;case`hostname`:i=`broker.example.com`;break;case`ipv4`:i=`192.0.2.10`;break;case`ipv6`:i=`2001:db8::10`;break;case`byte`:i=`aGVsbG8=`;break;case`binary`:i=`<binary>`;break;case`password`:i=`••••••••`}i===void 0&&(i=/^id$|Id$|_id$|Ref$|Key$/.test(n)?`${(n.replace(/Id$|_id$|Ref$|Key$/,``).replace(/^id$/,`item`)||`item`).slice(0,3).toLowerCase()}_01HZ3`:/email/.test(r)?`ada@example.com`:/^(url|uri|link|href)$|url$|uri$/i.test(n)?`https://example.com/resource/42`:/phone|tel/.test(r)?`+31 20 555 0100`:/currency/.test(r)?`EUR`:/country/.test(r)?`NL`:/lang|locale/.test(r)?`en-GB`:/^(name|displayname|fullname)$/.test(r)?`Ada Lovelace`:/firstname|givenname/.test(r)?`Ada`:/lastname|surname|familyname/.test(r)?`Lovelace`:/username|login|handle/.test(r)?`ada`:/status|state/.test(r)?`active`:/type|kind|category/.test(r)?`standard`:/sku|code/.test(r)?`MUG-TEAL-01`:/description|text|message|comment|body|note|reason/.test(r)?`Example text`:/title|subject/.test(r)?`Example title`:/at$|time|date/.test(r)?`2026-09-26T10:15:00Z`:/token|secret|key/.test(r)?`tok_9f8e7d6c`:/version/.test(r)?`1.0.0`:/city/.test(r)?`Amsterdam`:/street|address/.test(r)?`Herengracht 1`:/zip|postal/.test(r)?`1015 BA`:/color|colour/.test(r)?`teal`:n&&!/^[[*/]/.test(n)?`${n}-example`:`example`);let a=$(e,`minLength`),o=$(e,`maxLength`);return a!==void 0&&i.length<a&&(i=i.padEnd(a,`x`)),o!==void 0&&i.length>o&&(i=i.slice(0,o)),i}var bu=l`
|
|
556
556
|
.ex {
|
|
557
557
|
min-width: 0;
|
|
558
558
|
background: var(--_ex-bg);
|
|
@@ -747,14 +747,14 @@ $&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,`$1$2`).replace(/\
|
|
|
747
747
|
outline: 2px solid var(--_primary);
|
|
748
748
|
outline-offset: 2px;
|
|
749
749
|
}
|
|
750
|
-
`;function
|
|
750
|
+
`;function xu(e){if(e.examples.length>0)return e.examples.map((e,t)=>({label:e.name??`Example ${t+1}`,payload:e.payload,headers:e.headers,generated:!1}));let t=fu(e.payload),n=fu(e.headers);return t===void 0&&n===void 0?[]:[{label:`Generated`,payload:t,headers:n,generated:!0}]}function Su(e){return e.state.open??e.defaultOpen}var Cu=C`<svg viewBox="0 0 24 24" aria-hidden="true"><rect x="9" y="9" width="11" height="11" rx="2" /><path d="M5 15V6a2 2 0 0 1 2-2h9" /></svg>`;function wu(e){return C`<button
|
|
751
751
|
class="ex__show"
|
|
752
752
|
type="button"
|
|
753
753
|
aria-expanded="false"
|
|
754
754
|
@click=${()=>{e.state.open=!0,e.onChange()}}
|
|
755
755
|
>
|
|
756
|
-
${
|
|
757
|
-
</button>`}function
|
|
756
|
+
${Cu} Show example
|
|
757
|
+
</button>`}function Tu(e,t,n,r){if(t.length===0)return w;let i=n.state,a=Math.min(i.index,t.length-1),o=t[a],s=o.headers!==void 0,c=s&&i.tab===`headers`?`headers`:`payload`,l=c===`headers`?o.headers:o.payload,u=l===void 0?``:JSON.stringify(l,null,2);return C`<aside class="ex" aria-label="Example for ${e.title??e.name??e.id}">
|
|
758
758
|
<div class="ex__head">
|
|
759
759
|
<span class="ex__label">Example</span>
|
|
760
760
|
<span class="ex__name">${e.title??e.name??e.id}</span>
|
|
@@ -786,16 +786,16 @@ $&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,`$1$2`).replace(/\
|
|
|
786
786
|
</select></label
|
|
787
787
|
>`:w}
|
|
788
788
|
<span class="ex__spacer"></span>
|
|
789
|
-
<button class="ex__copy" type="button" @click=${async()=>{try{await navigator.clipboard.writeText(u),i.copied=`copied`}catch{i.copied=`failed`}n.onChange(),setTimeout(()=>{i.copied=void 0,n.onChange()},2e3)}}>${
|
|
789
|
+
<button class="ex__copy" type="button" @click=${async()=>{try{await navigator.clipboard.writeText(u),i.copied=`copied`}catch{i.copied=`failed`}n.onChange(),setTimeout(()=>{i.copied=void 0,n.onChange()},2e3)}}>${Cu} ${i.copied===`copied`?`Copied`:i.copied===`failed`?`Copy failed`:`Copy`}</button>
|
|
790
790
|
<span class="ex__live" aria-live="polite">${i.copied===`copied`?`Copied to clipboard`:i.copied===`failed`?`Copying failed; select the text to copy it`:``}</span>
|
|
791
791
|
</div>
|
|
792
|
-
<pre class="ex__code" id="${r}--code" tabindex="0" role=${s?`tabpanel`:w} aria-labelledby=${s?`${r}--tab-${c}`:w} aria-label=${s?w:`Example, scrollable`}><code>${
|
|
792
|
+
<pre class="ex__code" id="${r}--code" tabindex="0" role=${s?`tabpanel`:w} aria-labelledby=${s?`${r}--tab-${c}`:w} aria-label=${s?w:`Example, scrollable`}><code>${Eu(u)}</code></pre>
|
|
793
793
|
<div class="ex__foot">
|
|
794
794
|
${e.correlationId?C`<span>Correlation ID</span><code>${e.correlationId.location}</code>`:w}
|
|
795
795
|
<span>Message ID</span><code>${e.id}</code>
|
|
796
796
|
</div>
|
|
797
|
-
</aside>`}function
|
|
798
|
-
`).map(e=>C`<span class="ex__line"><span class="ex__text">${
|
|
797
|
+
</aside>`}function Eu(e){return e.split(`
|
|
798
|
+
`).map(e=>C`<span class="ex__line"><span class="ex__text">${Ou(e)}</span></span>`)}var Du=/("(?:[^"\\]|\\.)*")(\s*:)?|(-?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?)|(true|false)|(null)|([{}[\],:])|(\s+)/g;function Ou(e){let t=[],n=0;for(let r of e.matchAll(Du))r.index>n&&t.push(e.slice(n,r.index)),n=r.index+r[0].length,r[1]===void 0?r[3]===void 0?r[4]===void 0?r[5]===void 0?r[6]===void 0?t.push(r[0]):t.push(C`<span class="tk-punct">${r[6]}</span>`):t.push(C`<span class="tk-null">${r[5]}</span>`):t.push(C`<span class="tk-bool">${r[4]}</span>`):t.push(C`<span class="tk-num">${r[3]}</span>`):r[2]===void 0?t.push(C`<span class="tk-str">${r[1]}</span>`):t.push(C`<span class="tk-key">${r[1]}</span><span class="tk-punct">${r[2]}</span>`);return n<e.length&&t.push(e.slice(n)),t}function ku(e){let t=e.toLowerCase();return t.includes(`avro`)?`Avro`:t.includes(`protobuf`)?`Protobuf`:t.includes(`raml`)?`RAML`:t.includes(`openapi`)?`OpenAPI Schema`:t.includes(`vnd.aai.asyncapi`)||t.includes(`json-schema`)||t.includes(`schema+json`)||t.includes(`schema+yaml`)?`JSON Schema`:e}var Au=l`
|
|
799
799
|
.tree {
|
|
800
800
|
border: 1px solid var(--_line);
|
|
801
801
|
border-radius: var(--_radius);
|
|
@@ -1056,25 +1056,25 @@ $&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,`$1$2`).replace(/\
|
|
|
1056
1056
|
padding: 6px 8px 8px;
|
|
1057
1057
|
}
|
|
1058
1058
|
}
|
|
1059
|
-
`,
|
|
1059
|
+
`,ju=class{#e=new Set;#t=new Set;#n=new Map;#r;constructor(e){this.onChange=e}isExpanded(e,t){return this.#t.has(e)?!1:this.#e.has(e)?!0:this.#r===void 0?t<=2:this.#r}get allExpanded(){return this.#r===!0&&this.#t.size===0}toggle(e,t){let n=!this.isExpanded(e,t);this.#e.delete(e),this.#t.delete(e),(n?this.#e:this.#t).add(e),this.onChange()}setAll(e){this.#r=e,this.#e.clear(),this.#t.clear(),this.onChange()}variant(e){return this.#n.get(e)??0}selectVariant(e,t){this.#n.set(e,t),this.onChange()}};function Mu(e){let t=Nu(e);return t?Mu(t):e.children}function Nu(e){let t=e.children.length===1?e.children[0]:void 0;return t&&t.name===`[]`?t:void 0}function Pu(e){let t=Nu(e);return t?Pu(t):e.composition}function Fu(e){let t=Nu(e);if(t&&e.types.length<=1){let e=Fu(t);return e?`array<${e}>`:`array`}let n=e.types.join(` | `);return e.format&&(n=`${n||`string`} · ${e.format}`),e.enum&&e.enum.length>0&&(n=`${n||`string`} · enum`),!n&&e.composition&&(n=e.composition.kind),!n&&e.circularRef&&(n=`object`),n}function Iu(e){let t=0,n=0,r=(e,i)=>{for(let a of Mu(e))t++,n=Math.max(n,i),r(a,i+1);let a=Pu(e);if(a)for(let e of a.variants)r(e.node,i)};return r(e,1),{fields:t,levels:n}}function Lu(e){let t=0;for(let n of Mu(e))t+=1+Lu(n);return t}function Ru(e){let t=[];e.enum&&t.push(`enum: ${e.enum.map(zu).join(` · `)}`),e.const!==void 0&&t.push(`const: ${zu(e.const)}`),e.default!==void 0&&t.push(`default: ${zu(e.default)}`),e.examples&&e.examples.length>0&&t.push(`examples: ${e.examples.map(zu).join(` · `)}`);for(let n of e.constraints)t.push(`${n.key}: ${zu(n.value)}`);return e.deprecated&&t.push(`deprecated`),e.readOnly&&t.push(`read-only`),e.writeOnly&&t.push(`write-only`),t.length>0?t.join(` · `):void 0}function zu(e){if(typeof e==`string`)return e;let t=JSON.stringify(e);return t.length>60?`${t.slice(0,57)}…`:t}var Bu=C`<svg viewBox="0 0 12 12" aria-hidden="true"><path d="M4 2.5 7.5 6 4 9.5" /></svg>`;function Vu(e,t){if(!e)return w;if(e.kind===`raw`)return C`<div class="raw">
|
|
1060
1060
|
<div class="raw__bar">${e.schemaFormat}</div>
|
|
1061
1061
|
<pre tabindex="0" aria-label="Schema source, scrollable"><code>${e.source}</code></pre>
|
|
1062
|
-
</div>`;let{fields:n}=
|
|
1062
|
+
</div>`;let{fields:n}=Iu(e),r=Mu(e),i=Pu(e),a=t.state.allExpanded,o=r.length===0&&!i,s=t.label??(o?Fu(e)||`no fields`:`${n} field${n===1?``:`s`}`);return C`<div class="tree">
|
|
1063
1063
|
<div class="tree__bar">
|
|
1064
1064
|
<span class=${t.label||o?`mono`:``}>${s}</span>
|
|
1065
1065
|
<span class="spacer"></span>
|
|
1066
1066
|
${o?w:C`<button type="button" @click=${()=>t.state.setAll(!a)}>${a?`Collapse all`:`Expand all`}</button>`}
|
|
1067
1067
|
</div>
|
|
1068
1068
|
<div class="tree__body">
|
|
1069
|
-
${i?
|
|
1070
|
-
${r.length>0?
|
|
1069
|
+
${i?Gu(e,i,t,t.key,1):w}
|
|
1070
|
+
${r.length>0?Uu(r,t,t.key,1):i?w:Hu(e)}
|
|
1071
1071
|
</div>
|
|
1072
|
-
</div>`}function
|
|
1072
|
+
</div>`}function Hu(e){let t=Ru(e);return!e.description&&!t?C`<p class="tree__empty">${Fu(e)?`A single value of type ${Fu(e)}.`:`No fields are described.`}</p>`:C`<div class="tree__leaf">
|
|
1073
1073
|
${e.description?C`<div class="row__desc">${Q(e.description)}</div>`:w}
|
|
1074
1074
|
${t?C`<div class="row__facts">${t}</div>`:w}
|
|
1075
|
-
</div>`}function
|
|
1076
|
-
${e.map(e=>
|
|
1077
|
-
</ul>`}function
|
|
1075
|
+
</div>`}function Uu(e,t,n,r){return C`<ul class="branch" data-depth=${Math.min(r,9)}>
|
|
1076
|
+
${e.map(e=>Wu(e,t,`${n}/${e.name}`,r))}
|
|
1077
|
+
</ul>`}function Wu(e,t,n,r){let i=Mu(e),a=Pu(e),o=i.length>0||a!==void 0,s=o&&t.state.isExpanded(n,r),c=o&&!s?Lu(e):0,l=Ru(e),u=e.circularRef?`#${t.prefix}--schemas--${Gi(e.circularRef)}`:void 0;return C`<li class="row ${r===1?`row--top`:``}">
|
|
1078
1078
|
${o?C`<button
|
|
1079
1079
|
class="row__toggle"
|
|
1080
1080
|
type="button"
|
|
@@ -1082,12 +1082,12 @@ $&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,`$1$2`).replace(/\
|
|
|
1082
1082
|
aria-label="${s?`Collapse`:`Expand`} ${e.name}"
|
|
1083
1083
|
@click=${()=>t.state.toggle(n,r)}
|
|
1084
1084
|
>
|
|
1085
|
-
${
|
|
1085
|
+
${Bu}
|
|
1086
1086
|
</button>`:C`<span class="row__spacer"></span>`}
|
|
1087
1087
|
<div>
|
|
1088
1088
|
<div class="row__line1">
|
|
1089
1089
|
<span class="row__name">${e.name}</span>
|
|
1090
|
-
<span class="row__type">${
|
|
1090
|
+
<span class="row__type">${Fu(e)}</span>
|
|
1091
1091
|
${c>0?C`<span class="pill pill--outline row__hidden">${c} hidden</span>`:w}
|
|
1092
1092
|
${e.required?C`<span class="row__req">required</span>`:C`<span class="row__req row__req--optional">optional</span>`}
|
|
1093
1093
|
</div>
|
|
@@ -1095,17 +1095,17 @@ $&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,`$1$2`).replace(/\
|
|
|
1095
1095
|
${e.circularRef?C`<div class="row__circular">Circular reference to <a href=${u}>${e.circularRef}</a></div>`:w}
|
|
1096
1096
|
${e.description?C`<div class="row__desc">${Q(e.description)}</div>`:w}
|
|
1097
1097
|
${l?C`<div class="row__facts">${l}</div>`:w}
|
|
1098
|
-
${s&&a?
|
|
1099
|
-
${s&&i.length>0?
|
|
1098
|
+
${s&&a?Gu(e,a,t,n,r+1):w}
|
|
1099
|
+
${s&&i.length>0?Uu(i,t,n,r+1):w}
|
|
1100
1100
|
</div>
|
|
1101
|
-
</li>`}function
|
|
1101
|
+
</li>`}function Gu(e,t,n,r,i){let a=Math.min(n.state.variant(r),t.variants.length-1),o=t.variants[a],s=Mu(o.node);return C`
|
|
1102
1102
|
<div class="variants" role="group" aria-label="${t.kind} variants of ${e.name||`the payload`}">
|
|
1103
1103
|
<span class="variants__label">${t.kind}</span>
|
|
1104
1104
|
${t.variants.map((e,t)=>C`<button type="button" aria-pressed=${t===a?`true`:`false`} @click=${()=>n.state.selectVariant(r,t)}>${e.title}</button>`)}
|
|
1105
1105
|
</div>
|
|
1106
1106
|
${s.length>0?C`${o.node.description?C`<div class="row__desc">${Q(o.node.description)}</div>`:w}
|
|
1107
|
-
${
|
|
1108
|
-
`}var
|
|
1107
|
+
${Uu(s,n,`${r}/${t.kind}${a}`,i)}`:Hu(o.node)}
|
|
1108
|
+
`}var Ku=l`
|
|
1109
1109
|
.ops__list {
|
|
1110
1110
|
display: grid;
|
|
1111
1111
|
grid-template-columns: minmax(0, 1fr);
|
|
@@ -1327,7 +1327,7 @@ $&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,`$1$2`).replace(/\
|
|
|
1327
1327
|
gap: 28px;
|
|
1328
1328
|
}
|
|
1329
1329
|
}
|
|
1330
|
-
`;function
|
|
1330
|
+
`;function qu(e,t){return`${e}--operations--${t.anchor}`}function Ju(e){let t=e.channel.address;return t===null?C`<span class="op__address op__address--none">Address not specified</span>`:C`<span class="op__address">${t.split(/(\{[^}]+\})/g).filter(e=>e!==``).map(e=>/^\{[^}]+\}$/.test(e)?C`<span class="param">${e}</span>`:e)}</span>`}function Yu(e,t,n,r,i,a){let o=`${n}--m${r}`;return C`<div class="msg">
|
|
1331
1331
|
${e.messages.length>1?C`<div class="msg__tabs" role="tablist" aria-label="Messages of ${e.heading}">
|
|
1332
1332
|
${e.messages.map((t,a)=>C`<button
|
|
1333
1333
|
class="msg__tab"
|
|
@@ -1346,22 +1346,22 @@ $&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,`$1$2`).replace(/\
|
|
|
1346
1346
|
<div id="${n}--message" role=${e.messages.length>1?`tabpanel`:w} aria-labelledby=${e.messages.length>1?`${n}--tab-${r}`:w}>
|
|
1347
1347
|
<h4 class="sub-title">
|
|
1348
1348
|
Message <span class="mono">${t.title??t.name??t.id}</span>
|
|
1349
|
-
<span class="sub-title__meta">${t.contentType} · ${
|
|
1349
|
+
<span class="sub-title__meta">${t.contentType} · ${ku(t.schemaFormat)}</span>
|
|
1350
1350
|
${a}
|
|
1351
1351
|
</h4>
|
|
1352
1352
|
${t.summary?C`<div class="msg__desc">${Q(t.summary)}</div>`:w}
|
|
1353
|
-
${t.description?C`<div class="msg__desc">${
|
|
1354
|
-
${t.payload?
|
|
1353
|
+
${t.description?C`<div class="msg__desc">${Xl(t.description)}</div>`:w}
|
|
1354
|
+
${t.payload?Vu(t.payload,{label:t.id,prefix:i.prefix,key:`${o}--payload`,state:i.tree(`${o}--payload`)}):C`<p class="tree__empty">This message has no payload schema.</p>`}
|
|
1355
1355
|
${t.headers?C`<div class="msg__part">
|
|
1356
1356
|
<h4 class="sub-title">Headers</h4>
|
|
1357
|
-
${
|
|
1357
|
+
${Vu(t.headers,{prefix:i.prefix,key:`${o}--headers`,state:i.tree(`${o}--headers`)})}
|
|
1358
1358
|
</div>`:w}
|
|
1359
1359
|
</div>
|
|
1360
|
-
</div>`}function
|
|
1360
|
+
</div>`}function Xu(e,t){let n=t.prefix,r=qu(n,e),i=e.action===`send`?`send`:`receive`,a=Math.min(t.messageIndex(r),Math.max(e.messages.length-1,0)),o=e.messages[a],s=o?xu(o):[],c=t.example(`${r}--example--m${a}`),l=s.length>0&&Su(c),u=[...e.channel.bindings,...e.bindings,...o?.bindings??[]];return C`
|
|
1361
1361
|
<article class="op ${l?`op--split`:``}" id=${r} aria-labelledby="${r}--heading">
|
|
1362
1362
|
<div class="op__intro">
|
|
1363
1363
|
${e.tags.length>0?C`<ul class="chips op__tags" aria-label="Tags">
|
|
1364
|
-
${e.tags.map(e=>
|
|
1364
|
+
${e.tags.map(e=>Ia(e))}
|
|
1365
1365
|
</ul>`:w}
|
|
1366
1366
|
<h3 class="op__heading" id="${r}--heading" tabindex="-1">${e.heading}</h3>
|
|
1367
1367
|
<div class="op__facts">
|
|
@@ -1371,30 +1371,30 @@ $&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,`$1$2`).replace(/\
|
|
|
1371
1371
|
${e.locationHint!==e.id&&e.locationHint!==e.heading?C`<span class="op__hint">${e.locationHint}</span>`:w}
|
|
1372
1372
|
</span>
|
|
1373
1373
|
<span class="label">Channel</span>
|
|
1374
|
-
${
|
|
1374
|
+
${Ju(e)}
|
|
1375
1375
|
${e.channel.servers.length>0?C`<span class="label">Available on</span>
|
|
1376
1376
|
<span class="op__servers">
|
|
1377
1377
|
${e.channel.servers.map(e=>C`<a class="op__server" href="#${n}--servers--${Gi(e)}">${e}</a>`)}
|
|
1378
1378
|
</span>`:w}
|
|
1379
1379
|
</div>
|
|
1380
1380
|
${e.summary?C`<p class="summary op__summary">${Q(e.summary)}</p>`:w}
|
|
1381
|
-
${e.description?C`<div class="op__desc">${
|
|
1382
|
-
${
|
|
1381
|
+
${e.description?C`<div class="op__desc">${Xl(e.description)}</div>`:w}
|
|
1382
|
+
${eu(e.channel.parameters,r)}
|
|
1383
1383
|
</div>
|
|
1384
1384
|
<div class="op__content">
|
|
1385
|
-
${o?
|
|
1386
|
-
${
|
|
1387
|
-
${
|
|
1388
|
-
${e.reply?
|
|
1385
|
+
${o?Yu(e,o,r,a,t,s.length>0&&!l?wu(c):w):C`<p class="tree__empty block">This operation has no messages.</p>`}
|
|
1386
|
+
${au(u)}
|
|
1387
|
+
${uu(e.security,`pill`,`#${n}--servers`)}
|
|
1388
|
+
${e.reply?du(e.reply,n):w}
|
|
1389
1389
|
</div>
|
|
1390
|
-
${l&&o?C`<div class="op__example">${
|
|
1390
|
+
${l&&o?C`<div class="op__example">${Tu(o,s,c,`${r}--example`)}</div>`:w}
|
|
1391
1391
|
</article>
|
|
1392
|
-
`}function
|
|
1392
|
+
`}function Zu(e,t){if(e.operations.length===0)return w;let n=`${t.prefix}--operations`;return C`
|
|
1393
1393
|
<section class="ops" aria-labelledby=${n}>
|
|
1394
1394
|
<h2 class="section-title" id=${n} tabindex="-1">Operations</h2>
|
|
1395
|
-
<div class="ops__list">${e.operations.map(e=>
|
|
1395
|
+
<div class="ops__list">${e.operations.map(e=>Xu(e,t))}</div>
|
|
1396
1396
|
</section>
|
|
1397
|
-
`}function
|
|
1397
|
+
`}function Qu(e,t,n,r){let i=[];if(r.info&&i.push({kind:`section`,label:e.title,anchor:`${n}--info`,search:[]}),r.servers&&e.servers.length>0&&(i.push({kind:`section`,label:`Servers`,anchor:`${n}--servers`,count:e.servers.length,search:[]}),r.showServers!==`byDefault`))for(let t of e.servers){let a=$u(t.tags.map(e=>e.name),e,r.showServers===`bySpecTags`);i.push({kind:`server`,label:t.id,anchor:`${n}--servers--${t.anchor}`,group:a,sub:t.hostDisplay,search:[]})}for(let a of t){let t=r.showOperations===`byDefault`?`Operations`:$u(a.tags.map(e=>e.name),e,r.showOperations===`bySpecTags`),o=a.tags.map(e=>e.name);i.push({kind:`operation`,label:a.heading,anchor:`${n}--operations--${a.anchor}`,group:t,badge:{label:a.badgeLabel,action:a.action},tags:o,search:[a.heading,a.id,a.channel.address??``,...a.messages.flatMap(e=>[e.name??``,e.title??``]),...o].filter(e=>e!==``).map(e=>e.toLowerCase())})}return r.messages&&e.messages.length>0&&i.push({kind:`section`,label:`Messages`,anchor:`${n}--messages`,group:`Components`,count:e.messages.length,search:[]}),r.schemas&&e.schemas.length>0&&i.push({kind:`section`,label:`Schemas`,anchor:`${n}--schemas`,group:`Components`,count:e.schemas.length,search:[]}),i}function $u(e,t,n){return n?t.tags.map(e=>e.name).find(t=>e.includes(t))??`Other`:e[0]??`Other`}function ed(e,t){let n=new Map;for(let e of t)for(let t of e.tags)n.set(t.name,(n.get(t.name)??0)+1);let r=[],i=new Set,a=(e,t)=>{let a=n.get(e);if(a===void 0||i.has(e))return;i.add(e);let o={name:e,count:a};t&&(o.description=t),r.push(o)};for(let t of e.tags)a(t.name,t.description);for(let e of t)for(let t of e.tags)a(t.name,t.description);return r}function td(e,t){let n=t.toLowerCase().split(/\s+/).filter(e=>e!==``);return n.length===0||n.every(t=>e.search.some(e=>e.includes(t)))}function nd(e,t,n,r=new Set){let i=t.trim()!==``,a=i||r.size>0,o=e.filter(e=>e.kind===`operation`).length;if(!a)return{items:e,shown:o,total:o,active:a};let s=e=>r.size===0||(e.tags??[]).some(e=>r.has(e)),c=e.filter(e=>e.kind===`operation`?td(e,t)&&s(e):n||!i);return{items:c,shown:c.filter(e=>e.kind===`operation`).length,total:o,active:a}}function rd(e){let t=[];for(let n of e){let e=t[t.length-1];e&&e.group===n.group?e.items.push(n):t.push({group:n.group,items:[n]})}return t}var id=l`
|
|
1398
1398
|
.cards {
|
|
1399
1399
|
display: grid;
|
|
1400
1400
|
grid-template-columns: minmax(0, 1fr);
|
|
@@ -1579,9 +1579,9 @@ $&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,`$1$2`).replace(/\
|
|
|
1579
1579
|
color: var(--_muted);
|
|
1580
1580
|
overflow-wrap: anywhere;
|
|
1581
1581
|
}
|
|
1582
|
-
`;function
|
|
1583
|
-
${e.map(e=>
|
|
1584
|
-
</ul>`}function
|
|
1582
|
+
`;function ad(e){return e.length===0?w:C`<ul class="chips entry__tags" aria-label="Tags">
|
|
1583
|
+
${e.map(e=>Ia(e))}
|
|
1584
|
+
</ul>`}function od(e,t){return C`<details class="entry" id=${`${t}--servers--${e.anchor}`}>
|
|
1585
1585
|
<summary>
|
|
1586
1586
|
<span class="entry__title">${e.id}</span>
|
|
1587
1587
|
<span class="card__meta">${e.protocol}${e.protocolVersion?` ${e.protocolVersion}`:``}</span>
|
|
@@ -1590,8 +1590,8 @@ $&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,`$1$2`).replace(/\
|
|
|
1590
1590
|
<div class="entry__body">
|
|
1591
1591
|
${e.title?C`<div class="card__desc"><strong>${e.title}</strong></div>`:w}
|
|
1592
1592
|
${e.summary?C`<div class="card__desc">${Q(e.summary)}</div>`:w}
|
|
1593
|
-
${e.description?C`<div class="card__desc">${
|
|
1594
|
-
${
|
|
1593
|
+
${e.description?C`<div class="card__desc">${Xl(e.description)}</div>`:w}
|
|
1594
|
+
${ad(e.tags)}
|
|
1595
1595
|
${e.variables.length>0?C`<table class="vars">
|
|
1596
1596
|
<thead><tr><th>Variable</th><th>Enum</th><th>Default</th><th>Description</th></tr></thead>
|
|
1597
1597
|
<tbody>
|
|
@@ -1603,37 +1603,37 @@ $&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,`$1$2`).replace(/\
|
|
|
1603
1603
|
</tr>`)}
|
|
1604
1604
|
</tbody>
|
|
1605
1605
|
</table>`:w}
|
|
1606
|
-
${
|
|
1607
|
-
${
|
|
1606
|
+
${uu(e.security,`split`)}
|
|
1607
|
+
${au(e.bindings,`Bindings`,`split`)}
|
|
1608
1608
|
</div>
|
|
1609
|
-
</details>`}function
|
|
1609
|
+
</details>`}function sd(e,t){if(e.servers.length===0)return w;let n=`${t}--servers`;return C`<section aria-labelledby=${n}>
|
|
1610
1610
|
<h2 class="section-title" id=${n} tabindex="-1">Servers</h2>
|
|
1611
|
-
${e.servers.map(e=>
|
|
1612
|
-
</section>`}function
|
|
1611
|
+
${e.servers.map(e=>od(e,t))}
|
|
1612
|
+
</section>`}function cd(e,t,n){let r=`${t.prefix}--messages--${e.anchor}`,i=n?xu(e):[],a=e.title??e.name??e.id;return C`<details class="entry" id=${r}>
|
|
1613
1613
|
<summary>
|
|
1614
1614
|
<span class="entry__title">${a}</span>
|
|
1615
1615
|
${e.name&&e.name!==a?C`<span class="card__meta">${e.name}</span>`:w}
|
|
1616
1616
|
<span class="card__meta">${e.contentType} · ${e.schemaFormat}</span>
|
|
1617
1617
|
</summary>
|
|
1618
1618
|
${e.summary?C`<div class="entry__desc">${Q(e.summary)}</div>`:w}
|
|
1619
|
-
${e.description?C`<div class="entry__desc">${
|
|
1619
|
+
${e.description?C`<div class="entry__desc">${Xl(e.description)}</div>`:w}
|
|
1620
1620
|
<div class="entry__body">
|
|
1621
|
-
${
|
|
1622
|
-
${e.payload?C`<div class="block"><h4 class="sub-title">Payload</h4>${
|
|
1623
|
-
${e.headers?C`<div class="block"><h4 class="sub-title">Headers</h4>${
|
|
1624
|
-
${i.length>0?C`<div class="msg-example">${
|
|
1625
|
-
${
|
|
1621
|
+
${ad(e.tags)}
|
|
1622
|
+
${e.payload?C`<div class="block"><h4 class="sub-title">Payload</h4>${Vu(e.payload,{label:e.id,prefix:t.prefix,key:`${r}--payload`,state:t.tree(`${r}--payload`)})}</div>`:w}
|
|
1623
|
+
${e.headers?C`<div class="block"><h4 class="sub-title">Headers</h4>${Vu(e.headers,{prefix:t.prefix,key:`${r}--headers`,state:t.tree(`${r}--headers`)})}</div>`:w}
|
|
1624
|
+
${i.length>0?C`<div class="msg-example">${Tu(e,i,t.example(`${r}--example`),`${r}--example`)}</div>`:w}
|
|
1625
|
+
${au(e.bindings)}
|
|
1626
1626
|
</div>
|
|
1627
|
-
</details>`}function
|
|
1627
|
+
</details>`}function ld(e,t,n){if(e.messages.length===0)return w;let r=`${t.prefix}--messages`;return C`<section aria-labelledby=${r}>
|
|
1628
1628
|
<h2 class="section-title" id=${r} tabindex="-1">Messages</h2>
|
|
1629
|
-
${e.messages.map(e=>
|
|
1630
|
-
</section>`}function
|
|
1629
|
+
${e.messages.map(e=>cd(e,t,n))}
|
|
1630
|
+
</section>`}function ud(e,t){if(e.schemas.length===0)return w;let n=`${t.prefix}--schemas`;return C`<section aria-labelledby=${n}>
|
|
1631
1631
|
<h2 class="section-title" id=${n} tabindex="-1">Schemas</h2>
|
|
1632
|
-
${e.schemas.map(e=>{let n=`${t.prefix}--schemas--${e.anchor}`,r=e.schema.kind===`node`?
|
|
1632
|
+
${e.schemas.map(e=>{let n=`${t.prefix}--schemas--${e.anchor}`,r=e.schema.kind===`node`?Fu(e.schema):e.schema.schemaFormat;return C`<details class="entry" id=${n}>
|
|
1633
1633
|
<summary><span class="entry__title mono">${e.id}</span> ${r?C`<span class="card__meta">${r}</span>`:w}</summary>
|
|
1634
|
-
<div class="entry__body">${
|
|
1634
|
+
<div class="entry__body">${Vu(e.schema,{prefix:t.prefix,key:n,state:t.tree(n)})}</div>
|
|
1635
1635
|
</details>`})}
|
|
1636
|
-
</section>`}function
|
|
1636
|
+
</section>`}function dd(e,t){if(e.length===0)return w;let n=`${t}--problems`;return C`<section aria-labelledby=${n}>
|
|
1637
1637
|
<h2 class="section-title" id=${n} tabindex="-1">Problems</h2>
|
|
1638
1638
|
<ul class="problems">
|
|
1639
1639
|
${e.map(e=>C`<li data-severity=${e.severity}>
|
|
@@ -1641,7 +1641,7 @@ $&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,`$1$2`).replace(/\
|
|
|
1641
1641
|
<span class="problems__where">${e.severity} · at ${e.where}</span>
|
|
1642
1642
|
</li>`)}
|
|
1643
1643
|
</ul>
|
|
1644
|
-
</section>`}var
|
|
1644
|
+
</section>`}var fd=l`
|
|
1645
1645
|
.layout {
|
|
1646
1646
|
display: grid;
|
|
1647
1647
|
grid-template-columns: minmax(0, 1fr);
|
|
@@ -2002,13 +2002,13 @@ $&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,`$1$2`).replace(/\
|
|
|
2002
2002
|
margin: 12px 12px 0;
|
|
2003
2003
|
}
|
|
2004
2004
|
}
|
|
2005
|
-
`,
|
|
2005
|
+
`,pd=C`<svg viewBox="0 0 24 24" aria-hidden="true"><path d="M6 6l12 12M18 6 6 18" /></svg>`;function md(e){let t=nd(e.items,e.query,e.keepSections,e.selectedTags),n=rd(t.items),r=n.findIndex(e=>e.items.some(e=>e.kind===`operation`)),i=e.tags.length>0?hd(e):w;return C`<div
|
|
2006
2006
|
class="side"
|
|
2007
2007
|
id="${e.id}--sidebar"
|
|
2008
2008
|
@click=${t=>{t.target===t.currentTarget&&e.onClose()}}
|
|
2009
2009
|
>
|
|
2010
2010
|
<div class="side__panel" role=${e.open?`dialog`:w} aria-modal=${e.open?`true`:w} aria-label="Navigation">
|
|
2011
|
-
<button class="btn btn--icon side__close" type="button" aria-label="Close navigation" @click=${e.onClose}>${
|
|
2011
|
+
<button class="btn btn--icon side__close" type="button" aria-label="Close navigation" @click=${e.onClose}>${pd}</button>
|
|
2012
2012
|
<nav class="side__inner" aria-label="API navigation">
|
|
2013
2013
|
<label class="visually-hidden" for="${e.id}--search">Search operations, channels</label>
|
|
2014
2014
|
<input
|
|
@@ -2028,14 +2028,14 @@ $&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,`$1$2`).replace(/\
|
|
|
2028
2028
|
${t.group===`Components`?w:C`<span class="mono">${t.items.length}</span>`}
|
|
2029
2029
|
</div>`}
|
|
2030
2030
|
<ul>
|
|
2031
|
-
${t.items.map(t=>
|
|
2031
|
+
${t.items.map(t=>gd(t,e))}
|
|
2032
2032
|
</ul>
|
|
2033
2033
|
</div>`)}
|
|
2034
2034
|
${r===-1&&t.total>0?i:w}
|
|
2035
2035
|
${t.active&&t.shown===0?C`<p class="side__empty">No operations match</p>`:w}
|
|
2036
2036
|
</nav>
|
|
2037
2037
|
</div>
|
|
2038
|
-
</div>`}function
|
|
2038
|
+
</div>`}function hd(e){let t=e.selectedTags.size,n=`${e.id}--tags`;return C`<div class="side__tags">
|
|
2039
2039
|
<div class="side__group side__tags-head">
|
|
2040
2040
|
<button class="side__tags-toggle" type="button" aria-expanded=${e.tagsOpen?`true`:`false`} aria-controls=${n} @click=${()=>e.onTagsToggle(!e.tagsOpen)}>
|
|
2041
2041
|
Tags
|
|
@@ -2055,7 +2055,7 @@ $&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,`$1$2`).replace(/\
|
|
|
2055
2055
|
</button>
|
|
2056
2056
|
</li>`)}
|
|
2057
2057
|
</ul>
|
|
2058
|
-
</div>`}function
|
|
2058
|
+
</div>`}function gd(e,t){let n=t.current===e.anchor;return C`<li>
|
|
2059
2059
|
<a
|
|
2060
2060
|
class="side__item ${e.kind===`section`?`side__item--section`:``} ${e.badge?``:`side__item--plain`}"
|
|
2061
2061
|
href="#${e.anchor}"
|
|
@@ -2067,7 +2067,7 @@ $&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,`$1$2`).replace(/\
|
|
|
2067
2067
|
${e.count===void 0?w:C`<span class="side__count">${e.count}</span>`}
|
|
2068
2068
|
${e.sub?C`<span class="side__sub">${e.sub}</span>`:w}
|
|
2069
2069
|
</a>
|
|
2070
|
-
</li>`}var
|
|
2070
|
+
</li>`}var _d=C`<svg viewBox="0 0 24 24" aria-hidden="true"><path d="M4 7h16M4 12h16M4 17h10" /></svg>`,vd=l`
|
|
2071
2071
|
:host {
|
|
2072
2072
|
display: block;
|
|
2073
2073
|
container-type: inline-size;
|
|
@@ -2364,7 +2364,7 @@ $&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,`$1$2`).replace(/\
|
|
|
2364
2364
|
.alert code {
|
|
2365
2365
|
overflow-wrap: anywhere;
|
|
2366
2366
|
}
|
|
2367
|
-
`,
|
|
2367
|
+
`,yd=l`
|
|
2368
2368
|
:host {
|
|
2369
2369
|
--_primary: var(--asyncapi-primary, #2944c9);
|
|
2370
2370
|
--_secondary: var(--asyncapi-secondary, #b84e1a);
|
|
@@ -2426,8 +2426,8 @@ $&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,`$1$2`).replace(/\
|
|
|
2426
2426
|
/* Accent text on the tint does not reach 4.5:1 in dark mode; use ink there. */
|
|
2427
2427
|
--_tint-ink: var(--_ink);
|
|
2428
2428
|
}
|
|
2429
|
-
`,
|
|
2430
|
-
class="side__resize ${this.#
|
|
2429
|
+
`,bd=class{#e=`auto`;#t;#n=`light`;#r;#i;#a=()=>this.#o();constructor(e,t){this.host=e,this.onChange=t}get resolved(){return this.#n}set mode(e){e!==this.#e&&(this.#e=e,this.#t=void 0,this.#o())}toggle(){this.#t=this.#n===`dark`?`light`:`dark`,this.#o()}connect(){let e=this.host.ownerDocument,t=e.defaultView;t?.matchMedia&&(this.#i=t.matchMedia(`(prefers-color-scheme: dark)`),this.#i.addEventListener(`change`,this.#a)),this.#r=new MutationObserver(()=>this.#o()),this.#r.observe(e.documentElement,{attributes:!0,attributeFilter:[`data-theme`,`class`]}),e.body&&this.#r.observe(e.body,{attributes:!0,attributeFilter:[`data-md-color-scheme`,`class`]}),this.#o()}disconnect(){this.#r?.disconnect(),this.#r=void 0,this.#i?.removeEventListener(`change`,this.#a),this.#i=void 0}hostPreference(){let e=this.host.ownerDocument,t=e.body?.getAttribute(`data-md-color-scheme`);if(t)return t===`slate`?`dark`:`light`;let n=e.documentElement.getAttribute(`data-theme`);return n===`dark`||n===`light`?n:this.#i?.matches?`dark`:`light`}#o(){let e=this.#t??(this.#e===`auto`?this.hostPreference():this.#e);(e!==this.#n||this.host.getAttribute(`resolved-theme`)!==e)&&(this.#n=e,this.host.setAttribute(`resolved-theme`,e),this.onChange(e))}};function xd(e){let t=e.trim(),n=/^rgba?\(\s*([\d.]+)\s*[, ]\s*([\d.]+)\s*[, ]\s*([\d.]+)/i.exec(t);if(n)return[Number(n[1]),Number(n[2]),Number(n[3])];let r=/^#([0-9a-f]{3,8})$/i.exec(t)?.[1];if(r){if(r.length===3||r.length===4)return[parseInt(r[0]+r[0],16),parseInt(r[1]+r[1],16),parseInt(r[2]+r[2],16)];if(r.length===6||r.length===8)return[parseInt(r.slice(0,2),16),parseInt(r.slice(2,4),16),parseInt(r.slice(4,6),16)]}}function Sd([e,t,n]){return`#${[e,t,n].map(e=>Math.round(Math.max(0,Math.min(255,e))).toString(16).padStart(2,`0`)).join(``)}`}function Cd([e,t,n]){let r=e=>{let t=e/255;return t<=.04045?t/12.92:((t+.055)/1.055)**2.4};return .2126*r(e)+.7152*r(t)+.0722*r(n)}function wd(e,t){let n=Cd(e),r=Cd(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function Td(e){return Cd(e)>.6?`#14161B`:`#FFFFFF`}function Ed(e,t,n,r=4.5){if(wd(e,t)>=r)return e;let i=n?[255,255,255]:[0,0,0];for(let n=.05;n<=1;n+=.05){let a=Dd(e,i,n);if(wd(a,t)>=r)return a}return i}function Dd(e,t,n){return[e[0]+(t[0]-e[0])*n,e[1]+(t[1]-e[1])*n,e[2]+(t[2]-e[2])*n]}var Od=0,kd=class extends He{static{this.styles=[yd,vd,ja,Zl,Ku,Au,bu,$l,id,fd]}#e=Oa([]);#t;#n;#r;#i;#a;#o=[];#s;#c=[];#l=`light`;#u={};#d=!1;#f;#p=new Map;#m=e=>{let t=this.#p.get(e);return t||(t=new ju(()=>this.requestUpdate()),this.#p.set(e,t)),t};#h=new Map;#g;#_=``;#v=new Set;#y=!1;#b;#x;#S=!1;#C;#w=``;#T;#E;#D=new Set;#O=new Map;#k=e=>{let t=this.#O.get(e);return t||(t={tab:`payload`,index:0,open:void 0,copied:void 0},this.#O.set(e,t)),{state:t,defaultOpen:this.#e.messageExamples,onChange:()=>this.requestUpdate()}};#A=()=>{this.#f=void 0,this.#V()};#j=new bd(this,e=>this.#U(e));get options(){return this.#e}get loadResult(){return this.#r}get problems(){return this.#c}get model(){return this.#i}get anchorPrefix(){return this.id}connectedCallback(){super.connectedCallback(),this.id||=`asyncapi-viewer-${++Od}`,this.#H(),this.#t=new MutationObserver(()=>this.#H()),this.#t.observe(this,{attributes:!0}),this.#j.connect(),this.ownerDocument.defaultView?.addEventListener(`hashchange`,this.#A)}disconnectedCallback(){this.#t?.disconnect(),this.#t=void 0,this.#j.disconnect(),this.#E?.disconnect(),this.#E=void 0,this.ownerDocument.defaultView?.removeEventListener(`hashchange`,this.#A),super.disconnectedCallback()}firstUpdated(){this.#W();for(let e of this.querySelectorAll(`:scope > [data-asyncapi-fallback]`))e.remove()}updated(){this.#V(),this.#F();let e=this.renderRoot.querySelector(`.layout`);e&&(this.#b===void 0?e.style.removeProperty(`--_side-width`):e.style.setProperty(`--_side-width`,`${this.#b}px`))}#M(){return{min:220,max:Math.max(220,Math.min(560,Math.floor(this.getBoundingClientRect().width)-600))}}#N(e){let{min:t,max:n}=this.#M(),r=Math.round(Math.min(n,Math.max(t,e)));r!==this.#b&&(this.#b=r,this.requestUpdate())}#P(){let{min:e,max:t}=this.#M(),n=this.#b??292;return C`<div
|
|
2430
|
+
class="side__resize ${this.#x?`side__resize--active`:``}"
|
|
2431
2431
|
role="separator"
|
|
2432
2432
|
aria-orientation="vertical"
|
|
2433
2433
|
aria-label="Resize sidebar"
|
|
@@ -2436,42 +2436,41 @@ $&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,`$1$2`).replace(/\
|
|
|
2436
2436
|
aria-valuenow=${n}
|
|
2437
2437
|
tabindex="0"
|
|
2438
2438
|
title="Drag to resize the sidebar; double-click to reset"
|
|
2439
|
-
@pointerdown=${e=>{e.button===0&&(e.currentTarget.setPointerCapture(e.pointerId),this.#
|
|
2440
|
-
@pointermove=${e=>{this.#
|
|
2441
|
-
@pointerup=${()=>{this.#
|
|
2442
|
-
@pointercancel=${()=>{this.#
|
|
2443
|
-
@dblclick=${()=>{this.#
|
|
2444
|
-
@keydown=${r=>{if(r.key===`ArrowLeft`)this.#
|
|
2445
|
-
></div>`}#
|
|
2439
|
+
@pointerdown=${e=>{e.button===0&&(e.currentTarget.setPointerCapture(e.pointerId),this.#x={x:e.clientX,width:n},e.preventDefault(),this.requestUpdate())}}
|
|
2440
|
+
@pointermove=${e=>{this.#x&&this.#N(this.#x.width+e.clientX-this.#x.x)}}
|
|
2441
|
+
@pointerup=${()=>{this.#x=void 0,this.requestUpdate()}}
|
|
2442
|
+
@pointercancel=${()=>{this.#x=void 0,this.requestUpdate()}}
|
|
2443
|
+
@dblclick=${()=>{this.#b=void 0,this.requestUpdate()}}
|
|
2444
|
+
@keydown=${r=>{if(r.key===`ArrowLeft`)this.#N(n-16);else if(r.key===`ArrowRight`)this.#N(n+16);else if(r.key===`Home`)this.#N(e);else if(r.key===`End`)this.#N(t);else return;r.preventDefault()}}
|
|
2445
|
+
></div>`}#F(){if(!this.#e.sidebar||!this.#i){this.#E?.disconnect(),this.#E=void 0;return}let e=[...this.renderRoot.querySelectorAll(`section[aria-labelledby]:not(.ops), article.op`)];this.#E?.disconnect(),this.#D.clear(),this.#E=new IntersectionObserver(t=>{for(let e of t){let t=e.target.id||e.target.getAttribute(`aria-labelledby`)||``;e.isIntersecting?this.#D.add(t):this.#D.delete(t)}let n=e.map(e=>e.id||e.getAttribute(`aria-labelledby`)||``).find(e=>this.#D.has(e));n!==this.#C&&(this.#C=n,this.requestUpdate())},{rootMargin:`0px 0px -60% 0px`,threshold:0});for(let t of e)this.#E.observe(t)}#I(e,t,n){this.#_=e,this.#L(t,n)}#L(e,t){clearTimeout(this.#T),this.#T=setTimeout(()=>{this.#w=this.#_.trim()===``&&this.#v.size===0?``:`${e} of ${t} operations shown`,this.requestUpdate()},300),this.requestUpdate()}#R(){this.#S=!0;let e=this.getBoundingClientRect().top;e>0&&this.ownerDocument.defaultView?.scrollBy({top:e,behavior:`smooth`}),this.requestUpdate(),this.updateComplete.then(()=>this.renderRoot.querySelector(`.side__search`)?.focus()).catch(()=>void 0)}#z(e=!1){this.#S&&(this.#S=!1,this.requestUpdate(),e||this.updateComplete.then(()=>this.renderRoot.querySelector(`.menu`)?.focus()).catch(()=>void 0))}#B(e){if(e.key!==`Tab`||!this.#S)return;let t=this.renderRoot.querySelector(`.side__panel`);if(!t)return;let n=[...t.querySelectorAll(`a[href], button, input, select, [tabindex="0"]`)].filter(e=>!e.hasAttribute(`disabled`));if(n.length===0)return;let r=n[0],i=n[n.length-1],a=this.renderRoot.activeElement;e.shiftKey&&a===r?(i.focus(),e.preventDefault()):!e.shiftKey&&a===i&&(r.focus(),e.preventDefault())}#V(){let e=this.ownerDocument.defaultView?.location.hash??``;if(!this.#i||e.length<2||e===this.#f)return;let t=decodeURIComponent(e.slice(1));if(!t.startsWith(`${this.id}--`))return;let n=this.renderRoot.getElementById(t)??this.renderRoot.getElementById(`${t}--heading`);n&&(this.#f=e,n instanceof HTMLDetailsElement&&(n.open=!0),n.scrollIntoView({block:`start`}),(n.querySelector(`[tabindex="-1"], summary`)??n).focus({preventScroll:!0}))}#H(){this.#e=Oa(this.getAttributeNames().map(e=>[e,this.getAttribute(e)])),this.#j.mode=this.#e.theme,this.requestUpdate(),this.#i&&this.#e.src===this.#n&&this.#q()!==this.#s&&this.#J(),this.#G()}#U(e){this.#l=e,this.updateComplete.then(()=>this.#W()).catch(()=>void 0),this.requestUpdate()}#W(){let e=this.renderRoot,t=e?.querySelector(`.probe`);if(!t)return;let n=e=>(t.style.color=`var(${e})`,xd(getComputedStyle(t).color)),r=n(`--_primary`),i=n(`--_secondary`),a=n(`--_send`),o=n(`--_receive`),s=n(`--_head`),c=this.#l===`dark`,l={};r&&s&&(l[`--_primary-text`]=Sd(Ed(r,s,c))),i&&s&&(l[`--_secondary-text`]=Sd(Ed(i,s,c))),a&&(l[`--_badge-ink-send`]=Td(a)),o&&(l[`--_badge-ink-receive`]=Td(o));let u=getComputedStyle(this).getPropertyValue(`--_logo`).trim(),d=u!==``&&u!==`none`,f=e?.querySelector(`.root`);if(f)for(let[e,t]of Object.entries(l))f.style.setProperty(e,t);(d!==this.#d||JSON.stringify(l)!==JSON.stringify(this.#u))&&(this.#d=d,this.#u=l,this.requestUpdate())}async#G(){let e=this.#e.src;if(e===this.#n||(this.#n=e,this.#r=void 0,this.#i=void 0,this.#a=void 0,this.#o=[],this.#c=[],this.#p.clear(),this.#O.clear(),this.#h.clear(),this.#_=``,this.#v=new Set,this.#y=!1,this.#S=!1,this.#C=void 0,this.#g&&URL.revokeObjectURL(this.#g),this.#g=void 0,e===void 0))return;let t=await Ti(wi(e,this.ownerDocument.baseURI));if(this.#n===e){if(this.#r=t,t.ok){this.#g=URL.createObjectURL(new Blob([t.text],{type:t.format===`json`?`application/json`:`application/yaml`}));let n=new Mi(t.url,t.data),r=await n.preload();if(this.#n!==e)return;this.#a=n,this.#o=r,this.#J()}this.requestUpdate(),await this.updateComplete,this.#n===e&&this.#K(t)}}#K(e){let t={bubbles:!0,composed:!0};if(!e.ok)this.dispatchEvent(new CustomEvent(`asyncapi-error`,{...t,detail:{url:e.url,error:e.error}}));else if(this.#i){let n={url:e.url,specVersion:e.specVersion,specMajor:e.specMajor,model:this.#i,problems:this.#c};this.dispatchEvent(new CustomEvent(`asyncapi-load`,{...t,detail:n}))}}#q(){let e=this.#e;return JSON.stringify([e.publishLabel,e.subscribeLabel,e.sendLabel,e.receiveLabel,e.requestLabel,e.replyLabel,e.useChannelAddressAsIdentifier,e.parserOptions.applyTraits])}#J(){let e=this.#r;if(!e?.ok||!this.#a)return;let t=this.#e;this.#s=this.#q(),this.#i=ga({resolver:this.#a,data:e.data,specVersion:e.specVersion,specMajor:e.specMajor,problems:[...this.#o],options:{labels:{publish:t.publishLabel,subscribe:t.subscribeLabel,send:t.sendLabel,receive:t.receiveLabel,request:t.requestLabel,reply:t.replyLabel},useChannelAddressAsIdentifier:t.useChannelAddressAsIdentifier,applyTraits:t.parserOptions.applyTraits}}),this.#c=this.#i.problems}render(){return C`<div class="root">
|
|
2446
2446
|
<span class="probe visually-hidden" aria-hidden="true"></span>
|
|
2447
|
-
${this.#
|
|
2448
|
-
</div>`}#
|
|
2447
|
+
${this.#Y()}
|
|
2448
|
+
</div>`}#Y(){let e=this.#e.src;if(e===void 0)return C`<div class="content"><p class="alert" role="alert">This viewer has no <code>src</code> attribute, so there is nothing to show.</p></div>`;let t=this.#r;if(!t)return C`<div class="content"><p class="summary">Loading ${e}…</p></div>`;if(!t.ok)return C`<div class="content">
|
|
2449
2449
|
<p class="alert" role="alert">Could not load <code>${t.url}</code>: ${t.error.message}</p>
|
|
2450
|
-
</div>`;let n=this.#i;if(!n)return C`<div class="content"><p class="summary">Preparing ${e}…</p></div>`;let r=this.#e,i=n.operations,a={prefix:this.id,tree:this.#
|
|
2450
|
+
</div>`;let n=this.#i;if(!n)return C`<div class="content"><p class="summary">Preparing ${e}…</p></div>`;let r=this.#e,i=n.operations,a={prefix:this.id,tree:this.#m,example:this.#k},o=r.sidebar?Qu(n,i,this.id,{info:r.info,servers:r.servers,messages:r.messages,schemas:r.schemas,showServers:r.showServers,showOperations:r.showOperations}):[],s=nd(o,this.#_,r.searchKeepSections,this.#v),c=(e,t)=>nd(o,e,r.searchKeepSections,t).shown,l=r.sidebar?C`<button
|
|
2451
2451
|
class="menu"
|
|
2452
2452
|
type="button"
|
|
2453
2453
|
aria-label="Open navigation"
|
|
2454
|
-
aria-expanded=${this.#
|
|
2454
|
+
aria-expanded=${this.#S?`true`:`false`}
|
|
2455
2455
|
aria-controls="${this.id}--sidebar"
|
|
2456
|
-
@click=${()=>this.#
|
|
2456
|
+
@click=${()=>this.#S?this.#z():this.#R()}
|
|
2457
2457
|
>
|
|
2458
|
-
${
|
|
2458
|
+
${_d}
|
|
2459
2459
|
</button>`:w,u=C`
|
|
2460
|
-
${
|
|
2460
|
+
${Fa({doc:n,src:t.url,downloadHref:this.#g,hasLogo:this.#d,themeToggle:r.themeToggle,resolvedTheme:this.#l,onToggleTheme:()=>this.#j.toggle(),menu:l})}
|
|
2461
2461
|
<div class="content">
|
|
2462
|
-
${r.info?
|
|
2463
|
-
${r.servers?
|
|
2464
|
-
${r.operations?
|
|
2465
|
-
${r.messages?
|
|
2466
|
-
${r.schemas?
|
|
2467
|
-
${r.errors?
|
|
2462
|
+
${r.info?Ql(n,`${this.id}--info`):w}
|
|
2463
|
+
${r.servers?sd(n,this.id):w}
|
|
2464
|
+
${r.operations?Zu(n,{...a,messageIndex:e=>this.#h.get(e)??0,selectMessage:(e,t)=>{this.#h.set(e,t),this.requestUpdate()}}):w}
|
|
2465
|
+
${r.messages?ld(n,a,r.showMessageExamples):w}
|
|
2466
|
+
${r.schemas?ud(n,a):w}
|
|
2467
|
+
${r.errors?dd(this.#c,this.id):w}
|
|
2468
2468
|
</div>
|
|
2469
2469
|
`;return r.sidebar?C`<div
|
|
2470
|
-
class="layout layout--sidebar ${this.#
|
|
2471
|
-
@keydown=${e=>{e.key===`Escape`&&this.#
|
|
2470
|
+
class="layout layout--sidebar ${this.#S?`layout--open`:``} ${this.#x?`layout--resizing`:``}"
|
|
2471
|
+
@keydown=${e=>{e.key===`Escape`&&this.#S&&!e.target.classList?.contains(`side__search`)&&(this.#z(),e.preventDefault()),this.#B(e)}}
|
|
2472
2472
|
>
|
|
2473
|
-
${
|
|
2474
|
-
${this.#
|
|
2475
|
-
<div class="main" ?inert=${this.#
|
|
2476
|
-
</div>`:C`<div class="layout"><div class="main">${u}</div></div>`}};customElements.get(`asyncapi-viewer`)||customElements.define(`asyncapi-viewer`,
|
|
2477
|
-
//# sourceMappingURL=asyncapi-viewer.iife.js.map
|
|
2473
|
+
${md({items:o,tags:ed(n,i),selectedTags:this.#v,tagsOpen:this.#y,onTagsToggle:e=>{this.#y=e,this.requestUpdate()},onToggleTag:e=>{let t=new Set(this.#v);t.has(e)?t.delete(e):t.add(e),this.#v=t,this.#L(c(this.#_,t),s.total)},onClearTags:()=>{this.#v=new Set,this.#L(c(this.#_,this.#v),s.total)},query:this.#_,keepSections:r.searchKeepSections,current:this.#C,open:this.#S,liveText:this.#w,onQuery:e=>this.#I(e,c(e,this.#v),s.total),onEscape:()=>this.#z(),onChoose:()=>this.#z(!0),onClose:()=>this.#z(),id:this.id})}
|
|
2474
|
+
${this.#P()}
|
|
2475
|
+
<div class="main" ?inert=${this.#S}>${u}</div>
|
|
2476
|
+
</div>`:C`<div class="layout"><div class="main">${u}</div></div>`}};customElements.get(`asyncapi-viewer`)||customElements.define(`asyncapi-viewer`,kd);var Ad=/^[A-Za-z0-9][A-Za-z0-9_.-]*$/,jd=new Set([`minimum`,`exclusiveMinimum`,`maximum`,`exclusiveMaximum`,`multipleOf`,`minLength`,`maxLength`,`pattern`,`minItems`,`maxItems`,`uniqueItems`,`minProperties`,`maxProperties`]);function Md(e){let t=[],n=e=>t.push(e);Number(e.specVersion.split(`.`)[0])!==e.specMajor&&n(`specMajor ${e.specMajor} does not match specVersion ${e.specVersion}`),e.title||n(`title is empty`),Nd(`servers`,e.servers.map(e=>e.anchor),n),Nd(`operations`,e.operations.map(e=>e.anchor),n),Nd(`messages`,e.messages.map(e=>e.anchor),n),Nd(`schemas`,e.schemas.map(e=>e.anchor),n);let r=new Set(e.servers.map(e=>e.id)),i=new Set(e.schemas.map(e=>e.id));for(let t of e.operations){let e=`operation ${t.id}`;t.action===`send`&&t.kind!==`send`&&t.kind!==`request`&&n(`${e}: action send with kind ${t.kind}`),t.action===`receive`&&t.kind!==`receive`&&t.kind!==`reply`&&n(`${e}: action receive with kind ${t.kind}`),(t.kind===`request`||t.kind===`reply`)!=(t.reply!==void 0)&&n(`${e}: kind ${t.kind} but reply is ${t.reply?`present`:`absent`}`),t.badgeLabel||n(`${e}: empty badgeLabel`),t.heading||n(`${e}: empty heading`);for(let i of t.channel.servers)r.has(i)||n(`${e}: channel server "${i}" is not a known server`);for(let r of t.messages)Pd(r,`${e} message ${r.id}`,i,n)}for(let t of e.messages)Pd(t,`message ${t.id}`,i,n);for(let t of e.schemas)t.schema.kind===`node`&&(t.schema.name!==t.id&&n(`schema ${t.id}: root name "${t.schema.name}" should equal its id`),Fd(t.schema,`schema ${t.id}`,[],!0,i,n));return t}function Nd(e,t,n){let r=new Set;for(let i of t)Ad.test(i)||n(`${e}: anchor "${i}" is not a safe slug`),r.has(i)&&n(`${e}: duplicate anchor "${i}"`),r.add(i)}function Pd(e,t,n,r){e.contentType||r(`${t}: empty contentType`),e.schemaFormat||r(`${t}: empty schemaFormat`);for(let[i,a]of[[`payload`,e.payload],[`headers`,e.headers]])a&&a.kind===`node`&&(a.name!==``&&r(`${t} ${i}: root name should be "" but is "${a.name}"`),Fd(a,`${t} ${i}`,[],!0,n,r))}function Fd(e,t,n,r,i,a){let o=`${t} › ${e.name||`(root)`}`;r&&e.required&&a(`${o}: root nodes are never required`),Id(e.path,n)||a(`${o}: path [${e.path}] should be [${n}]`);for(let t of e.constraints)jd.has(t.key)||a(`${o}: unknown constraint ${t.key}`);e.circularRef!==void 0&&e.children.length>0&&a(`${o}: circular reference with children`),e.refName!==void 0&&i.size>0&&!i.has(e.refName)&&a(`${o}: refName "${e.refName}" is not a component schema`);let s=e.types.includes(`array`),c=e.children.filter(e=>e.name===`[]`);c.length>1&&a(`${o}: more than one "[]" item node`),c.length===1&&!s&&a(`${o}: "[]" item node on a non-array`),c.length===1&&e.children.length!==1&&a(`${o}: array with properties besides "[]"`);let l=r?[]:e.name===`[]`?[...n.slice(0,-1),`${n[n.length-1]??``}[]`]:[...n,e.name];for(let n of e.children)Fd(n,t,l,!1,i,a);e.composition&&e.composition.variants.forEach((e,t)=>{e.title||a(`${o}: variant ${t+1} has no title`),Fd(e.node,`${o} variant ${t+1}`,n,r,i,a)})}function Id(e,t){return e.length===t.length&&e.every((e,n)=>e===t[n])}return e.AsyncAPIViewerElement=kd,e.DEFAULTS=ya,e.OPTION_SPECS=va,e.RefResolver=Mi,e.checkDocument=Md,e.isRef=Ai,e.loadDocument=Ti,e.normalize=ga,e.parseOptions=Oa,e.parseText=Ei,e.resolveUrl=wi,e.schemaNameOf=ji,e.toAttributeName=Ea,e})({});
|