@nuxt/devtools 4.0.0-alpha.1 → 4.0.0-alpha.3
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 +84 -5
- package/dist/chunks/module-main.mjs +174 -220
- package/dist/client/200.html +1 -1
- package/dist/client/404.html +1 -1
- package/dist/client/_nuxt/__blank-hkoz1rvj.js +1 -0
- package/dist/client/_nuxt/analyze-build-kqtn42f3.js +1 -0
- package/dist/client/_nuxt/assets-pdpavuv7.js +6 -0
- package/dist/client/_nuxt/auth-required-panel-eykuzska.js +1 -0
- package/dist/client/_nuxt/builds/latest.json +1 -1
- package/dist/client/_nuxt/builds/meta/424f9fd7-bd33-4b1e-8498-929c14b6ad71.json +1 -0
- package/dist/client/_nuxt/{client-im47u3kz.js → client-coqmopwz.js} +1 -1
- package/dist/client/_nuxt/{code-diff-idsu3m0z.js → code-diff-o5b2z2ie.js} +3 -3
- package/dist/client/_nuxt/code-snippets-lje00rjy.js +1 -0
- package/dist/client/_nuxt/components-mkmd03mc.js +1 -0
- package/dist/client/_nuxt/composable-item-lw4aqry9.js +1 -0
- package/dist/client/_nuxt/custom-_name_-h2d0kmts.js +1 -0
- package/dist/client/_nuxt/data-schema-button-g6gxhvpu.js +1 -0
- package/dist/client/_nuxt/data-schema-drawer-h229qgae.js +2 -0
- package/dist/client/_nuxt/debug-ezvak7q9.js +1 -0
- package/dist/client/_nuxt/{default-jvhm51ri.js → default-f17ja76u.js} +1 -1
- package/dist/client/_nuxt/dev-auth-h6radlhi.js +1 -0
- package/dist/client/_nuxt/duration-display-lgba3ul7.js +1 -0
- package/dist/client/_nuxt/entry.css-d9crsfkn.css +1 -0
- package/dist/client/_nuxt/error-404-j6bw0i0a.js +1 -0
- package/dist/client/_nuxt/error-404.css-op0yx84h.css +1 -0
- package/dist/client/_nuxt/error-500-oozftcqy.js +1 -0
- package/dist/client/_nuxt/error-500.css-f169vd1x.css +1 -0
- package/dist/client/_nuxt/error-knm3fbzu.js +9 -0
- package/dist/client/_nuxt/filepath-item-o7vxzdbh.js +1 -0
- package/dist/client/_nuxt/full-h1zczfpi.js +1 -0
- package/dist/client/_nuxt/h9sdxxta.js +4 -0
- package/dist/client/_nuxt/help-fab-ekagn9f2.js +1 -0
- package/dist/client/_nuxt/hooks-k3agmywq.js +1 -0
- package/dist/client/_nuxt/imports-gw4s306d.js +1 -0
- package/dist/client/_nuxt/launch-page-jvtn5jef.js +1 -0
- package/dist/client/_nuxt/modules-b3ta2mlp.js +1 -0
- package/dist/client/_nuxt/nbadge-ia2sg78l.js +1 -0
- package/dist/client/_nuxt/ncard-bpchuz30.js +1 -0
- package/dist/client/_nuxt/ncheckbox-dqqmiqln.js +1 -0
- package/dist/client/_nuxt/ncode-block-lbvhz228.js +2 -0
- package/dist/client/_nuxt/ndrawer-pdhwqkg2.js +1 -0
- package/dist/client/_nuxt/ndropdown-o0hg8oi1.js +1 -0
- package/dist/client/_nuxt/nicon-o8vtl3nv.js +1 -0
- package/dist/client/_nuxt/nicon-title-f04kekaa.js +1 -0
- package/dist/client/_nuxt/nlink-flm1s7uj.js +1 -0
- package/dist/client/_nuxt/nmarkdown-cu68ujlp.js +1 -0
- package/dist/client/_nuxt/nnavbar-iwf1qrzf.js +1 -0
- package/dist/client/_nuxt/none-b8do2yyn.js +1 -0
- package/dist/client/_nuxt/nsection-block-oc6icst0.js +1 -0
- package/dist/client/_nuxt/nselect-k14i70o0.js +1 -0
- package/dist/client/_nuxt/nselect-tabs-gmel1seg.js +1 -0
- package/dist/client/_nuxt/nswitch-kprd7bwp.js +1 -0
- package/dist/client/_nuxt/ntip-erjk5wo4.js +1 -0
- package/dist/client/_nuxt/{nuxt-otp6bp04.js → nuxt-bl8ryhiw.js} +1 -1
- package/dist/client/_nuxt/{nuxt-link-bumooa9d.js → nuxt-link-h8a2u03t.js} +1 -1
- package/dist/client/_nuxt/open-graph-ipvg6gyk.js +3 -0
- package/dist/client/_nuxt/overview-fbg2mjz1.js +1 -0
- package/dist/client/_nuxt/pages-jx3r1z1o.js +1 -0
- package/dist/client/_nuxt/pages-nqnq5f5t.js +1 -0
- package/dist/client/_nuxt/payload-f7ar9blu.js +1 -0
- package/dist/client/_nuxt/pinia-in67b2ff.js +1 -0
- package/dist/client/_nuxt/plugins-foc4m9cu.js +1 -0
- package/dist/client/_nuxt/{ready-dadbdj5i.js → ready-nmtplnq5.js} +1 -1
- package/dist/client/_nuxt/render-tree-mzpnvjww.js +1 -0
- package/dist/client/_nuxt/rpc-ga26o8l5.js +1 -0
- package/dist/client/_nuxt/runtime-configs-f691dtpr.js +1 -0
- package/dist/client/_nuxt/server-discovery-fa3lq0oe.js +1 -0
- package/dist/client/_nuxt/server-route-inputs-kx5eivj6.js +1 -0
- package/dist/client/_nuxt/server-routes-ozsawrbd.js +7 -0
- package/dist/client/_nuxt/server-tasks-sykxh8ji.js +1 -0
- package/dist/client/_nuxt/settings-eufw79s0.js +1 -0
- package/dist/client/_nuxt/{splitpanes.es-bxyirks2.js → splitpanes.es-krbzt5ww.js} +1 -1
- package/dist/client/_nuxt/stacktrace-list-ilvbql3y.js +1 -0
- package/dist/client/_nuxt/state-components-pfh0w3gz.js +1 -0
- package/dist/client/_nuxt/state-editor-c9yn0k8x.js +1 -0
- package/dist/client/_nuxt/state-modules-c35cpfly.js +1 -0
- package/dist/client/_nuxt/{state-tabs-etl5jr30.js → state-tabs-0wkipn6s.js} +1 -1
- package/dist/client/_nuxt/storage-dqgie6yp.js +1 -0
- package/dist/client/_nuxt/storage-options-fmhmng6m.js +1 -0
- package/dist/client/_nuxt/terminals-o5xyk44w.js +1 -0
- package/dist/client/_nuxt/timeline-hwj8vazt.js +31 -0
- package/dist/client/_nuxt/unocss-runtime-fghua2d1.js +1 -0
- package/dist/client/_nuxt/utils-c43quyky.js +2 -0
- package/dist/client/_nuxt/vendor/{json-editor-vue-eojr4v24.js → json-editor-vue-mpqfj7dd.js} +5 -5
- package/dist/client/_nuxt/vendor/{quicktype-core-k4qx3809.js → quicktype-core-bxh3g3c2.js} +2 -2
- package/dist/client/_nuxt/vendor/{shiki-lqo1hg2n.js → shiki-ildq90cv.js} +3 -3
- package/dist/client/_nuxt/vendor/{unocss-k727ub0h.js → unocss-hiscr44j.js} +1 -1
- package/dist/client/_nuxt/vendor/{vis-id8udisj.js → vis-obscvyyi.js} +2 -2
- package/dist/client/_nuxt/vendor/{xterm-ed0pys2e.js → xterm-g6v3jqah.js} +1 -1
- package/dist/client/_nuxt/virtual-files-ld5g0ep3.js +1 -0
- package/dist/client/_nuxt/vue-devtools-mcimudqm.js +4 -0
- package/dist/client/_nuxt/{vue-router-jbnxw7nb.js → vue-router-imuzx5c1.js} +1 -1
- package/dist/client/index.html +1 -1
- package/dist/module.json +1 -1
- package/dist/module.mjs +1 -1
- package/dist/shared/{devtools.COlX0Gls.mjs → devtools.DClER4Dv.mjs} +1 -2
- package/package.json +15 -15
- package/dist/client/_nuxt/__blank-cpzbm3dn.js +0 -1
- package/dist/client/_nuxt/analyze-build-e7v5vkef.js +0 -1
- package/dist/client/_nuxt/assets-b5c187l4.js +0 -6
- package/dist/client/_nuxt/builds/meta/25fc8778-785e-4df1-8047-b131fc1cd4b2.json +0 -1
- package/dist/client/_nuxt/code-snippets-k81hoi4s.js +0 -1
- package/dist/client/_nuxt/components-bmictfph.js +0 -1
- package/dist/client/_nuxt/composable-item-cza22cup.js +0 -1
- package/dist/client/_nuxt/copkoh3j.js +0 -4
- package/dist/client/_nuxt/custom-_name_-gqm5kr56.js +0 -1
- package/dist/client/_nuxt/data-schema-button-b308wyi0.js +0 -1
- package/dist/client/_nuxt/data-schema-drawer-lr34uwsh.js +0 -2
- package/dist/client/_nuxt/debug-kgc8fptp.js +0 -1
- package/dist/client/_nuxt/dev-auth-ojiqold5.js +0 -1
- package/dist/client/_nuxt/duration-display-f7ucshmo.js +0 -1
- package/dist/client/_nuxt/entry.css-me26coxn.css +0 -1
- package/dist/client/_nuxt/error-404-nggtc73s.js +0 -1
- package/dist/client/_nuxt/error-404.css-j1aav08u.css +0 -1
- package/dist/client/_nuxt/error-500-dym2gzqx.js +0 -1
- package/dist/client/_nuxt/error-500.css-eu9fz4va.css +0 -1
- package/dist/client/_nuxt/error-fqinfa1x.js +0 -9
- package/dist/client/_nuxt/filepath-item-e1s52fbh.js +0 -1
- package/dist/client/_nuxt/full-et0weok9.js +0 -1
- package/dist/client/_nuxt/help-fab-hz6r2oxa.js +0 -1
- package/dist/client/_nuxt/hooks-i7nsduqp.js +0 -1
- package/dist/client/_nuxt/imports-9o2qs53q.js +0 -1
- package/dist/client/_nuxt/launch-page-hpkkqhit.js +0 -1
- package/dist/client/_nuxt/modules-jok0opuq.js +0 -1
- package/dist/client/_nuxt/nbadge-m66xoquo.js +0 -1
- package/dist/client/_nuxt/nbutton-gygn07c2.js +0 -1
- package/dist/client/_nuxt/ncard-mqcl8pso.js +0 -1
- package/dist/client/_nuxt/ncheckbox-c0r45qtu.js +0 -1
- package/dist/client/_nuxt/ncode-block-figzf35k.js +0 -2
- package/dist/client/_nuxt/ndrawer-bgqyrlmt.js +0 -1
- package/dist/client/_nuxt/ndropdown-cip8lboe.js +0 -1
- package/dist/client/_nuxt/nicon-m1crov2l.js +0 -1
- package/dist/client/_nuxt/nicon-title-tqdvw0w0.js +0 -1
- package/dist/client/_nuxt/nlink-od4lllbl.js +0 -1
- package/dist/client/_nuxt/nmarkdown-hw0hmqw7.js +0 -1
- package/dist/client/_nuxt/nnavbar-lpozm5fj.js +0 -1
- package/dist/client/_nuxt/none-bdxkqeml.js +0 -1
- package/dist/client/_nuxt/npanel-grids-dd23ifsw.js +0 -1
- package/dist/client/_nuxt/nsection-block-lqrohs9v.js +0 -1
- package/dist/client/_nuxt/nselect-gczoit0g.js +0 -1
- package/dist/client/_nuxt/nselect-tabs-bsw5fg3d.js +0 -1
- package/dist/client/_nuxt/nswitch-ke379yjx.js +0 -1
- package/dist/client/_nuxt/ntext-input-cygthohl.js +0 -1
- package/dist/client/_nuxt/ntip-ke63ovgc.js +0 -1
- package/dist/client/_nuxt/open-graph-lumhcitx.js +0 -3
- package/dist/client/_nuxt/overview-c1ufrox9.js +0 -1
- package/dist/client/_nuxt/pages-cf1hvns3.js +0 -1
- package/dist/client/_nuxt/pages-lgihsvbt.js +0 -1
- package/dist/client/_nuxt/payload-fvgw4hh9.js +0 -1
- package/dist/client/_nuxt/pinia-lmrgyjxw.js +0 -1
- package/dist/client/_nuxt/plugins-ccaip8nh.js +0 -1
- package/dist/client/_nuxt/render-tree-corj3giw.js +0 -1
- package/dist/client/_nuxt/rpc-ez4fzlum.js +0 -1
- package/dist/client/_nuxt/runtime-configs-im0uu24n.js +0 -1
- package/dist/client/_nuxt/server-discovery-ffkkczqi.js +0 -1
- package/dist/client/_nuxt/server-route-inputs-lspeoiem.js +0 -1
- package/dist/client/_nuxt/server-routes-dhvqrowz.js +0 -7
- package/dist/client/_nuxt/server-tasks-mr9ezn8q.js +0 -1
- package/dist/client/_nuxt/settings-issronwn.js +0 -1
- package/dist/client/_nuxt/stacktrace-list-hiui24c3.js +0 -1
- package/dist/client/_nuxt/state-components-fbls8ka7.js +0 -1
- package/dist/client/_nuxt/state-editor-c7e04uj2.js +0 -1
- package/dist/client/_nuxt/state-modules-inqbwd7z.js +0 -1
- package/dist/client/_nuxt/state-routes-jln33b1m.js +0 -1
- package/dist/client/_nuxt/storage-husj5pg6.js +0 -1
- package/dist/client/_nuxt/storage-options-cth3coln.js +0 -1
- package/dist/client/_nuxt/telemetry-eqv6a0hn.js +0 -1
- package/dist/client/_nuxt/terminals-kitd8oja.js +0 -1
- package/dist/client/_nuxt/timeline-gr4tcvcz.js +0 -31
- package/dist/client/_nuxt/unocss-runtime-cpug61u1.js +0 -1
- package/dist/client/_nuxt/utils-nbkl6byi.js +0 -2
- package/dist/client/_nuxt/virtual-files-ky9cc4av.js +0 -1
- package/dist/client/_nuxt/vue-devtools-dunhx2nz.js +0 -4
- /package/dist/client/_nuxt/{color-b9xoe9j2.js → color-bh8526bd.js} +0 -0
- /package/dist/client/_nuxt/{composables-b2ccklz4.js → composables-f0oa0ya0.js} +0 -0
- /package/dist/client/_nuxt/{constants-ih922r91.js → constants-g7ujya00.js} +0 -0
- /package/dist/client/_nuxt/{dist-m49wlq01.js → dist-f16b9vaq.js} +0 -0
- /package/dist/client/_nuxt/{mitt.es-fjx0h8xe.js → mitt.es-pc7qwi6p.js} +0 -0
- /package/dist/client/_nuxt/vendor/{markdown-it-ckeo8pwp.js → markdown-it-liuu8zo7.js} +0 -0
|
@@ -112,8 +112,8 @@ $&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,`$1$2`).replace(/\
|
|
|
112
112
|
`)+1;for(;e!==0;)this.onNewLine(this.offset+e),e=this.source.indexOf(`
|
|
113
113
|
`,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)){Array.prototype.push.apply(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(Ii(t.start,`newline`))Object.assign(t,{key:null,sep:[this.sourceToken]});else{let e=Bi(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(Ii(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(Ri(t.key)&&!Ii(t.sep,`newline`)){let e=Bi(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]}):Ii(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&&!Ii(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)){Array.prototype.push.apply(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||Ii(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=Bi(zi(t));Vi(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(`
|
|
114
114
|
`)+1;for(;e!==0;)this.onNewLine(this.offset+e),e=this.source.indexOf(`
|
|
115
|
-
`,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=Bi(zi(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=Bi(zi(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 Wi(e){let t=e.prettyErrors!==!1;return{lineCounter:e.lineCounter||t&&new Pi||null,prettyErrors:t}}function Gi(e,t={}){let{lineCounter:n,prettyErrors:r}=Wi(t),i=new Hi(n?.addNewLine),a=new ti(t),o=Array.from(a.compose(i.parse(e)));if(r&&n)for(let t of o)t.errors.forEach(ir(e,n)),t.warnings.forEach(ir(e,n));return o.length>0?o:Object.assign([],{empty:!0},a.streamInfo())}function Ki(e,t={}){let{lineCounter:n,prettyErrors:r}=Wi(t),i=new Hi(n?.addNewLine),a=new ti(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 nr(t.range.slice(0,2),`MULTIPLE_DOCS`,`Source contains multiple documents; please use YAML.parseAllDocuments()`));break}return r&&n&&(o.errors.forEach(ir(e,n)),o.warnings.forEach(ir(e,n))),o}function qi(e,t,n){let r;typeof t==`function`?r=t:n===void 0&&t&&typeof t==`object`&&(n=t);let i=Ki(e,n);if(!i)return null;if(i.warnings.forEach(e=>it(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 Ji(e,t,n){let r=null;if(typeof t==`function`||Array.isArray(t)?r=t:n===void 0&&t&&(n=t),typeof n==`string`&&(n=n.length),typeof n==`number`){let e=Math.round(n);n=e<1?void 0:e>8?{indent:8}:{indent:e}}if(e===void 0){let{keepUndefined:e}=n??t??{};if(!e)return}return P(e)&&!r?e.toString(n):new $n(e,r,n).toString(n)}var Yi=n((()=>{ni(),er(),ar(),at(),z(),Fi(),Ui()})),Xi=r({Alias:()=>ye,CST:()=>bi,Composer:()=>ti,Document:()=>$n,Lexer:()=>Mi,LineCounter:()=>Pi,Pair:()=>gt,Parser:()=>Hi,Scalar:()=>X,Schema:()=>Jn,YAMLError:()=>tr,YAMLMap:()=>wt,YAMLParseError:()=>nr,YAMLSeq:()=>kt,YAMLWarning:()=>rr,isAlias:()=>N,isCollection:()=>w,isDocument:()=>P,isMap:()=>ee,isNode:()=>T,isPair:()=>F,isScalar:()=>I,isSeq:()=>L,parse:()=>qi,parseAllDocuments:()=>Gi,parseDocument:()=>Ki,stringify:()=>Ji,visit:()=>te,visitAsync:()=>re}),Zi=n((()=>{ni(),er(),Yn(),ar(),Y(),z(),_t(),xe(),Tt(),At(),Ti(),Ni(),Fi(),Ui(),Yi(),se()})),Qi=r({Alias:()=>ye,CST:()=>bi,Composer:()=>ti,Document:()=>$n,Lexer:()=>Mi,LineCounter:()=>Pi,Pair:()=>gt,Parser:()=>Hi,Scalar:()=>X,Schema:()=>Jn,YAMLError:()=>tr,YAMLMap:()=>wt,YAMLParseError:()=>nr,YAMLSeq:()=>kt,YAMLWarning:()=>rr,default:()=>$i,isAlias:()=>N,isCollection:()=>w,isDocument:()=>P,isMap:()=>ee,isNode:()=>T,isPair:()=>F,isScalar:()=>I,isSeq:()=>L,parse:()=>qi,parseAllDocuments:()=>Gi,parseDocument:()=>Ki,stringify:()=>Ji,visit:()=>te,visitAsync:()=>re}),$i,ea=n((()=>{Zi(),Zi(),$i=Xi})),Q=i((t=>{var n=t&&t.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),r=t&&t.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,`default`,{enumerable:!0,value:t})}):function(e,t){e.default=t}),i=t&&t.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var i in e)i!==`default`&&Object.prototype.hasOwnProperty.call(e,i)&&n(t,e,i);return r(t,e),t};Object.defineProperty(t,`__esModule`,{value:!0}),t.numberEnumValues=t.indentationString=t.parseJSON=t.inflateBase64=t.errorMessage=t.repeatedCall=t.repeated=t.mustNotHappen=t.panic=t.assert=t.assertNever=t.nonNull=t.defined=t.checkArray=t.checkStringMap=t.checkString=t.isStringMap=void 0;var a=o(),s=i(S()),c=C(),l=i((ea(),e(Qi)));function u(e,t){if(typeof e!=`object`||Array.isArray(e)||e===null)return!1;if(t!==void 0)for(let n of Object.getOwnPropertyNames(e)){let r=e[n];if(!t(r))return!1}return!0}t.isStringMap=u;function d(e){return typeof e==`string`}t.checkString=d;function f(e,t){return u(e,t)?e:v(`Value must be an object, but is ${e}`)}t.checkStringMap=f;function p(e,t){if(!Array.isArray(e))return v(`Value must be an array, but is ${e}`);if(t!==void 0){for(let n of e)if(!t(n))return v(`Array item does not satisfy constraint: ${n}`)}return e}t.checkArray=p;function m(e){return e===void 0?v(`Defined value expected, but got undefined`):e}t.defined=m;function h(e){return e===null?v(`Non-null value expected, but got null`):e}t.nonNull=h;function g(e){return(0,c.messageError)(`InternalError`,{message:`Unexpected object ${e}`})}t.assertNever=g;function _(e,t=`Assertion failed`){if(!e)return(0,c.messageError)(`InternalError`,{message:t})}t.assert=_;function v(e){return(0,c.messageError)(`InternalError`,{message:e})}t.panic=v;function y(){return v(`This must not happen`)}t.mustNotHappen=y;function b(e,t){let n=[];for(let r=0;r<e;r++)n.push(t);return n}t.repeated=b;function x(e,t){let n=[];for(let r=0;r<e;r++)n.push(t());return n}t.repeatedCall=x;function w(e){return e instanceof Error?e.message:e.toString()}t.errorMessage=w;function T(e){let t=a.Base64.atob(e);return s.inflate(t,{to:`string`})}t.inflateBase64=T;function E(e,t,n=`<unknown>`){try{return e.charCodeAt(0)===65279&&(e=e.slice(1)),l.parse(e)}catch(e){let r;return r=e instanceof SyntaxError?e.message:`Unknown exception ${e}`,(0,c.messageError)(`MiscJSONParseError`,{description:t,address:n,message:r})}}t.parseJSON=E;function D(e){return` `.repeat(e)}t.indentationString=D;function O(e){let t=[];for(let n of Object.keys(e)){let r=e[n];typeof r==`number`&&t.push(r)}return t}t.numberEnumValues=O})),ta=i(((e,n)=>{(function(r,i){typeof t==`function`&&typeof e==`object`&&typeof n==`object`?n.exports=i():typeof define==`function`&&define.amd?define(function(){return i()}):r.pluralize=i()})(e,function(){var e=[],t=[],n={},r={},i={};function a(e){return typeof e==`string`?RegExp(`^`+e+`$`,`i`):e}function o(e,t){return e===t?t:e===e.toLowerCase()?t.toLowerCase():e===e.toUpperCase()?t.toUpperCase():e[0]===e[0].toUpperCase()?t.charAt(0).toUpperCase()+t.substr(1).toLowerCase():t.toLowerCase()}function s(e,t){return e.replace(/\$(\d{1,2})/g,function(e,n){return t[n]||``})}function c(e,t){return e.replace(t[0],function(n,r){var i=s(t[1],arguments);return o(n===``?e[r-1]:n,i)})}function l(e,t,r){if(!e.length||n.hasOwnProperty(e))return t;for(var i=r.length;i--;){var a=r[i];if(a[0].test(t))return c(t,a)}return t}function u(e,t,n){return function(r){var i=r.toLowerCase();return t.hasOwnProperty(i)?o(r,i):e.hasOwnProperty(i)?o(r,e[i]):l(i,r,n)}}function d(e,t,n,r){return function(r){var i=r.toLowerCase();return t.hasOwnProperty(i)?!0:e.hasOwnProperty(i)?!1:l(i,i,n)===i}}function f(e,t,n){var r=t===1?f.singular(e):f.plural(e);return(n?t+` `:``)+r}return f.plural=u(i,r,e),f.isPlural=d(i,r,e),f.singular=u(r,i,t),f.isSingular=d(r,i,t),f.addPluralRule=function(t,n){e.push([a(t),n])},f.addSingularRule=function(e,n){t.push([a(e),n])},f.addUncountableRule=function(e){if(typeof e==`string`){n[e.toLowerCase()]=!0;return}f.addPluralRule(e,`$0`),f.addSingularRule(e,`$0`)},f.addIrregularRule=function(e,t){t=t.toLowerCase(),e=e.toLowerCase(),i[e]=t,r[t]=e},[[`I`,`we`],[`me`,`us`],[`he`,`they`],[`she`,`they`],[`them`,`them`],[`myself`,`ourselves`],[`yourself`,`yourselves`],[`itself`,`themselves`],[`herself`,`themselves`],[`himself`,`themselves`],[`themself`,`themselves`],[`is`,`are`],[`was`,`were`],[`has`,`have`],[`this`,`these`],[`that`,`those`],[`echo`,`echoes`],[`dingo`,`dingoes`],[`volcano`,`volcanoes`],[`tornado`,`tornadoes`],[`torpedo`,`torpedoes`],[`genus`,`genera`],[`viscus`,`viscera`],[`stigma`,`stigmata`],[`stoma`,`stomata`],[`dogma`,`dogmata`],[`lemma`,`lemmata`],[`schema`,`schemata`],[`anathema`,`anathemata`],[`ox`,`oxen`],[`axe`,`axes`],[`die`,`dice`],[`yes`,`yeses`],[`foot`,`feet`],[`eave`,`eaves`],[`goose`,`geese`],[`tooth`,`teeth`],[`quiz`,`quizzes`],[`human`,`humans`],[`proof`,`proofs`],[`carve`,`carves`],[`valve`,`valves`],[`looey`,`looies`],[`thief`,`thieves`],[`groove`,`grooves`],[`pickaxe`,`pickaxes`],[`passerby`,`passersby`]].forEach(function(e){return f.addIrregularRule(e[0],e[1])}),[[/s?$/i,`s`],[/[^\u0000-\u007F]$/i,`$0`],[/([^aeiou]ese)$/i,`$1`],[/(ax|test)is$/i,`$1es`],[/(alias|[^aou]us|t[lm]as|gas|ris)$/i,`$1es`],[/(e[mn]u)s?$/i,`$1s`],[/([^l]ias|[aeiou]las|[ejzr]as|[iu]am)$/i,`$1`],[/(alumn|syllab|vir|radi|nucle|fung|cact|stimul|termin|bacill|foc|uter|loc|strat)(?:us|i)$/i,`$1i`],[/(alumn|alg|vertebr)(?:a|ae)$/i,`$1ae`],[/(seraph|cherub)(?:im)?$/i,`$1im`],[/(her|at|gr)o$/i,`$1oes`],[/(agend|addend|millenni|dat|extrem|bacteri|desiderat|strat|candelabr|errat|ov|symposi|curricul|automat|quor)(?:a|um)$/i,`$1a`],[/(apheli|hyperbat|periheli|asyndet|noumen|phenomen|criteri|organ|prolegomen|hedr|automat)(?:a|on)$/i,`$1a`],[/sis$/i,`ses`],[/(?:(kni|wi|li)fe|(ar|l|ea|eo|oa|hoo)f)$/i,`$1$2ves`],[/([^aeiouy]|qu)y$/i,`$1ies`],[/([^ch][ieo][ln])ey$/i,`$1ies`],[/(x|ch|ss|sh|zz)$/i,`$1es`],[/(matr|cod|mur|sil|vert|ind|append)(?:ix|ex)$/i,`$1ices`],[/\b((?:tit)?m|l)(?:ice|ouse)$/i,`$1ice`],[/(pe)(?:rson|ople)$/i,`$1ople`],[/(child)(?:ren)?$/i,`$1ren`],[/eaux$/i,`$0`],[/m[ae]n$/i,`men`],[`thou`,`you`]].forEach(function(e){return f.addPluralRule(e[0],e[1])}),[[/s$/i,``],[/(ss)$/i,`$1`],[/(wi|kni|(?:after|half|high|low|mid|non|night|[^\w]|^)li)ves$/i,`$1fe`],[/(ar|(?:wo|[ae])l|[eo][ao])ves$/i,`$1f`],[/ies$/i,`y`],[/\b([pl]|zomb|(?:neck|cross)?t|coll|faer|food|gen|goon|group|lass|talk|goal|cut)ies$/i,`$1ie`],[/\b(mon|smil)ies$/i,`$1ey`],[/\b((?:tit)?m|l)ice$/i,`$1ouse`],[/(seraph|cherub)im$/i,`$1`],[/(x|ch|ss|sh|zz|tto|go|cho|alias|[^aou]us|t[lm]as|gas|(?:her|at|gr)o|[aeiou]ris)(?:es)?$/i,`$1`],[/(analy|diagno|parenthe|progno|synop|the|empha|cri|ne)(?:sis|ses)$/i,`$1sis`],[/(movie|twelve|abuse|e[mn]u)s$/i,`$1`],[/(test)(?:is|es)$/i,`$1is`],[/(alumn|syllab|vir|radi|nucle|fung|cact|stimul|termin|bacill|foc|uter|loc|strat)(?:us|i)$/i,`$1us`],[/(agend|addend|millenni|dat|extrem|bacteri|desiderat|strat|candelabr|errat|ov|symposi|curricul|quor)a$/i,`$1um`],[/(apheli|hyperbat|periheli|asyndet|noumen|phenomen|criteri|organ|prolegomen|hedr|automat)a$/i,`$1on`],[/(alumn|alg|vertebr)ae$/i,`$1a`],[/(cod|mur|sil|vert|ind)ices$/i,`$1ex`],[/(matr|append)ices$/i,`$1ix`],[/(pe)(rson|ople)$/i,`$1rson`],[/(child)ren$/i,`$1`],[/(eau)x?$/i,`$1`],[/men$/i,`man`]].forEach(function(e){return f.addSingularRule(e[0],e[1])}),[`adulthood`,`advice`,`agenda`,`aid`,`aircraft`,`alcohol`,`ammo`,`analytics`,`anime`,`athletics`,`audio`,`bison`,`blood`,`bream`,`buffalo`,`butter`,`carp`,`cash`,`chassis`,`chess`,`clothing`,`cod`,`commerce`,`cooperation`,`corps`,`debris`,`diabetes`,`digestion`,`elk`,`energy`,`equipment`,`excretion`,`expertise`,`firmware`,`flounder`,`fun`,`gallows`,`garbage`,`graffiti`,`hardware`,`headquarters`,`health`,`herpes`,`highjinks`,`homework`,`housework`,`information`,`jeans`,`justice`,`kudos`,`labour`,`literature`,`machinery`,`mackerel`,`mail`,`media`,`mews`,`moose`,`music`,`mud`,`manga`,`news`,`only`,`personnel`,`pike`,`plankton`,`pliers`,`police`,`pollution`,`premises`,`rain`,`research`,`rice`,`salmon`,`scissors`,`series`,`sewage`,`shambles`,`shrimp`,`software`,`species`,`staff`,`swine`,`tennis`,`traffic`,`transportation`,`trout`,`tuna`,`wealth`,`welfare`,`whiting`,`wildebeest`,`wildlife`,`you`,/pok[eé]mon$/i,/[^aeiou]ese$/i,/deer$/i,/fish$/i,/measles$/i,/o[iu]s$/i,/pox$/i,/sheep$/i].forEach(f.addUncountableRule),f})})),na=i((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.increaseTypeAttributesDistance=e.makeTypeAttributesInferred=e.combineTypeAttributes=e.emptyTypeAttributes=e.TypeAttributeKind=void 0;var t=a(),n=Q();e.TypeAttributeKind=class e{constructor(e){this.name=e}appliesToTypeKind(e){return e!==`any`}combine(e){return(0,n.panic)(`Cannot combine type attribute ${this.name}`)}intersect(e){return this.combine(e)}makeInferred(e){return(0,n.panic)(`Cannot make type attribute ${this.name} inferred`)}increaseDistance(e){return e}addToSchema(e,t,n){}children(e){return new Set}stringify(e){}get inIdentity(){return!1}requiresUniqueIdentity(e){return!1}reconstitute(e,t){return t}makeAttributes(e){let t=[[this,e]];return new Map(t)}tryGetInAttributes(e){return e.get(this)}setInAttributes(e,t){return new Map(e).set(this,t)}modifyInAttributes(e,t){let n=t(this.tryGetInAttributes(e));if(n===void 0){let t=new Map(e);return t.delete(this),t}return this.setInAttributes(e,n)}setDefaultInAttributes(e,t){return this.tryGetInAttributes(e)===void 0?this.modifyInAttributes(e,t):e}removeInAttributes(e){return(0,t.mapFilter)(e,(e,t)=>t!==this)}equals(t){return t instanceof e?this.name===t.name:!1}hashCode(){return(0,t.hashString)(this.name)}},e.emptyTypeAttributes=new Map;function r(e,r,i){let a=e===`union`,o;if(Array.isArray(r))o=r;else{if(i===void 0)return(0,n.panic)(`Must have on array or two attributes`);o=[r,i]}let s=(0,t.mapTranspose)(o);function c(e,t){return(0,n.assert)(e.length>0,`Cannot combine zero type attributes`),e.length===1?e[0]:a?t.combine(e):t.intersect(e)}return(0,t.mapFilterMap)(s,c)}e.combineTypeAttributes=r;function i(e){return(0,t.mapFilterMap)(e,(e,t)=>t.makeInferred(e))}e.makeTypeAttributesInferred=i;function o(e){return(0,t.mapFilterMap)(e,(e,t)=>t.increaseDistance(e))}e.increaseTypeAttributesDistance=o})),ra=i((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.EnumOption=e.StringOption=e.BooleanOption=e.getOptionValues=e.Option=void 0;var t=Q(),n=C(),r=a(),i=class{constructor(e){e.renderer=!0,this.definition=e,(0,t.assert)(e.kind!==void 0,`Renderer option kind must be defined`)}getValue(e){let t=e[this.definition.name];return t===void 0?this.definition.defaultValue:t}get cliDefinitions(){return{actual:[this.definition],display:[this.definition]}}};e.Option=i;function o(e,t){let n={};for(let r of Object.getOwnPropertyNames(e))n[r]=e[r].getValue(t);return n}e.getOptionValues=o,e.BooleanOption=class extends i{constructor(e,t,n,r=`primary`){super({name:e,kind:r,type:Boolean,description:t,defaultValue:n})}get cliDefinitions(){let e=Object.assign({},this.definition,{name:`no-${this.definition.name}`,defaultValue:!this.definition.defaultValue});return{display:[Object.assign({},this.definition,{name:`[no-]${this.definition.name}`,description:`${this.definition.description} (${this.definition.defaultValue?`on`:`off`} by default)`})],actual:[this.definition,e]}}getValue(e){let t=e[this.definition.name];t===void 0&&(t=this.definition.defaultValue);let n=e[`no-${this.definition.name}`];return n===void 0&&(n=!this.definition.defaultValue),t===`true`?t=!0:t===`false`&&(t=!1),this.definition.defaultValue?t&&!n:t||!n}},e.StringOption=class extends i{constructor(e,t,n,r,i=`primary`){let a={name:e,kind:i,type:String,description:t,typeLabel:n,defaultValue:r};super(a)}},e.EnumOption=class extends i{constructor(e,t,n,r=void 0,i=`primary`){r===void 0&&(r=n[0][0]);let a={name:e,kind:i,type:String,description:t,typeLabel:n.map(([e,t])=>e).join(`|`),legalValues:n.map(([e,t])=>e),defaultValue:r};super(a),this._values={};for(let[e,t]of n)this._values[e]=t}getValue(e){let t=e[this.definition.name];return t===void 0&&(t=this.definition.defaultValue),(0,r.hasOwnProperty)(this._values,t)?this._values[t]:(0,n.messageError)(`RendererUnknownOptionValue`,{value:t,name:this.definition.name})}}})),ia=i((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.acronymStyle=e.acronymOption=e.AcronymStyleOptions=e.acronyms=void 0;var t=ra(),n=ua();e.acronyms=`aaa.aabb.aac.aal.aalc.aarp.abac.abcl.abi.abm.abr.ac.acd.ack.acl.acm.acme.acp.acpi.acr.adb.adc.adccp.ado.adsl.adt.ae.aes.af.afp.agp.ai.aix.alac.algol.alsa.alu.amd.amoled.amqp.amr.ann.ansi.aop.apci.api.apic.apipa.apl.apr.arin.aros.arp.arpa.arpanet.ascii.aset.asg.asic.asimo.aslr.asm.asmp.asp.asr.assp.ast.ata.atag.atapi.atm.av.avc.avi.awfl.awk.awt.bal.bam.bbp.bbs.bcd.bcnf.beep.ber.bfd.bfs.bft.bgp.bi.binac.bios.bjt.bmp.bnc.boinc.bom.bootp.bpdu.bpel.bpl.bpm.brm.brms.brr.brs.bsa.bsb.bsd.bss.bt.bw.byod.ca.cad.cae.cai.caid.captcha.caq.cd.cde.cdfs.cdma.cdn.cdp.cdsa.cert.ces.cf.cfd.cfg.cg.cga.cgi.cgt.chs.cidr.cifs.cim.cio.cir.cisc.cjk.cjkv.cli.clr.cm.cmdb.cmmi.cmo.cmos.cms.cn.cnc.cng.cnr.cobol.com.corba.cots.cpa.cpan.cpri.cps.cpu.cr.cran.crc.crlf.crm.crs.crt.crud.cs.cse.csi.csm.csp.csrf.css.csv.ct.ctan.ctcp.ctfe.cti.ctl.ctm.cts.ctss.cua.cvs.dac.dal.dao.dap.darpa.dat.db.dba.dbcs.dbms.dcc.dcca.dccp.dcl.dcmi.dcom.dcs.dd.dde.ddi.ddl.ddr.dec.des.dfa.dfd.dfs.dgd.dhcp.dhtml.dif.dimm.din.dip.dism.divx.dkim.dl.dll.dlna.dlp.dma.dmca.dmi.dml.dmr.dmz.dn.dnd.dns.doa.docsis.dom.dos.dp.dpc.dpi.dpmi.dpms.dr.dram.dri.drm.dsa.dsdl.dsdm.dsl.dslam.dsn.dsp.dsssl.dtd.dte.dtp.dtr.dvd.dvi.dvr.dw.eai.eap.eas.ebcdic.ebml.ecc.ecma.ecn.ecos.ecrs.eda.edi.edo.edsac.edvac.eeprom.eff.efi.efm.efs.ega.egp.eide.eigrp.eisa.elf.emacs.ems.eniac.eod.eof.eol.eom.eos.eprom.erd.erm.erp.esb.escon.esd.esr.etl.etw.euc.eula.ewmh.ext.fap.faq.fasm.fbdimm.fcb.fcs.fdc.fdd.fddi.fdm.fdma.fds.fec.femb.fet.fhs.ficon.fifo.fips.fl.flac.flops.fmc.fmo.foldoc.fosdem.fosi.foss.fp.fpga.fps.fpu.fqdn.fru.fs.fsb.fsf.fsm.ftp.ftta.fttc.ftth.fttp.fud.fvek.fws.fxp.fyi.gb.gcc.gcj.gcr.gdb.gdi.geran.gfdl.gif.gigo.gimps.gis.gml.gnu.goms.gpasm.gpfs.gpg.gpgpu.gpib.gpl.gprs.gpt.gpu.gsm.gui.guid.gwt.gyr.hal.hasp.hba.hci.hcl.hd.hdd.hdl.hdmi.hf.hfs.hhd.hid.hig.hird.hlasm.hls.hma.hp.hpc.hpfs.hsdpa.hsm.ht.htc.htm.html.http.https.htx.hurd.hvd.iana.ibm.ic.icann.ich.icmp.icp.ics.ict.id.ide.idf.idl.ids.iec.ieee.ietf.ifl.igmp.igrp.ihv.iiop.iis.ike.il.im.imap.ime.infosec.ip.ipam.ipc.ipl.ipmi.ipo.ipp.ips.iptv.ipx.ir.irc.iri.irp.irq.isa.isam.isatap.isc.isdn.iso.isp.ispf.isr.isv.itil.itl.itu.ivcr.ivrs.jaxb.jaxp.jbod.jce.jcl.jcp.jdbc.jdk.jds.jee.jes.jfc.jfet.jfs.jini.jit.jme.jms.jmx.jndi.jni.jnz.jpeg.jre.js.jse.json.jsp.jtag.jvm.kb.kde.km.krl.kvm.lacp.lan.lb.lba.lcd.lcos.lcr.ldap.le.led.lf.lfs.lga.lgpl.lib.lif.lifo.lilo.lisp.lkml.lm.loc.lpc.lpi.lpt.lru.lsb.lsi.lte.ltl.ltr.lun.lv.lvd.lvm.lzw.mac.manet.mapi.mb.mbcs.mbd.mbr.mca.mcad.mcas.mcdba.mcdst.mcitp.mcm.mcp.mcpc.mcpd.mcsa.mcsd.mcse.mct.mcts.mda.mdf.mdi.mf.mfc.mfm.mgcp.mib.micr.midi.mimd.mime.mimo.minix.mips.mis.misd.mit.mmc.mmds.mmf.mmi.mmio.mmorpg.mmu.mmx.mng.mom.mos.mosfet.motd.mous.mov.mpaa.mpeg.mpl.mpls.mpu.ms.msa.msb.msdn.msi.msn.mt.mta.mtbf.mtu.mua.mvc.mvp.mvs.mwc.mx.mxf.nack.nak.nas.nasm.ncp.ncq.ncsa.ndis.ndps.nds.nep.nfa.nfc.nfs.ngl.ngscb.ni.nic.nim.nio.nist.nlp.nls.nmi.nntp.noc.nop.nos.np.npl.nptl.npu.ns.nsa.nsi.nspr.nss.nt.ntfs.ntlm.ntp.numa.nurbs.nvr.nvram.oat.obsai.odbc.oem.oes.ofdm.oftc.oid.olap.ole.oled.olpc.oltp.omf.omg.omr.oo.ooe.oom.oop.ootb.opml.orb.orm.os.oscon.osdn.osi.ospf.oss.ostg.oui.pap.parc.pata.pbs.pc.pcb.pci.pcl.pcm.pcmcia.pcre.pd.pda.pdf.pdh.pdp.pe.perl.pfa.pg.pga.pgo.pgp.php.pid.pim.pio.pkcs.pki.plc.pld.plt.pmm.png.pnrp.poid.pojo.posix.ppc.ppi.ppp.pptp.pr.ps.psa.psm.psu.psvi.pv.pvg.pvr.pxe.pxi.qa.qdr.qfp.qotd.qsop.qtam.racf.rad.raid.raii.rait.ram.rarp.ras.rc.rcs.rd.rdbms.rdc.rdf.rdm.rdos.rdp.rds.refal.rest.rf.rfc.rfi.rfid.rgb.rgba.rhel.rhl.ria.riaa.rip.rir.risc.rje.rle.rll.rmi.rms.rom.romb.rpc.rpg.rpm.rras.rsa.rsi.rss.rtai.rtc.rte.rtems.rtl.rtos.rtp.rts.rtsp.rtti.rwd.san.sas.sata.sax.sbod.sbu.scada.scid.scm.scp.scpc.scpi.scsa.scsi.sctp.sd.sddl.sdh.sdi.sdio.sdk.sdl.sdn.sdp.sdr.sdram.sdsl.se.sec.sei.seo.sftp.sgi.sgml.sgr.sha.shdsl.sigcat.siggraph.simd.simm.sip.sisd.siso.sles.sli.slm.sloc.sma.smb.smbios.sme.smf.smil.smp.smps.sms.smt.smtp.sna.snmp.sntp.soa.soe.soho.soi.sopa.sp.spa.sparc.spf.spi.spm.spmd.sql.sram.ssa.ssd.ssdp.sse.ssh.ssi.ssid.ssl.ssp.ssse.sssp.sstp.sus.suse.svc.svd.svg.svga.swf.swt.tao.tapi.tasm.tb.tcp.tcu.tdma.tft.tftp.ti.tla.tld.tls.tlv.tnc.tpf.tpm.troff.tron.trsdos.tso.tsp.tsr.tta.ttf.ttl.tts.tty.tucows.twain.uaag.uac.uart.uat.ucs.uddi.udma.udp.uefi.uhf.ui.ul.ula.uma.umb.uml.umpc.umts.unc.univac.ups.uri.url.usb.usr.utc.utf.utp.utran.uucp.uuid.uun.uvc.uwp.ux.vax.vb.vba.vbs.vcpi.vdm.vdsl.vesa.vfat.vfs.vg.vga.vhf.vlan.vlb.vlf.vliw.vlsi.vlsm.vm.vmm.vnc.vod.vpn.vpu.vr.vram.vrml.vsam.vsat.vt.vtam.vtl.wafs.wai.wais.wan.wap.wasm.wbem.wcag.wcf.wdm.wep.wfi.wins.wlan.wma.wmi.wmv.wns.wol.wor.wora.wpa.wpad.wpan.wpf.wsdl.wsfl.wusb.wwan.wwdc.wwid.wwn.www.wysiwyg.wzc.xag.xaml.xcbl.xdm.xdmcp.xhtml.xilp.xml.xmms.xmpp.xms.xns.xp.xpcom.xpi.xpidl.xps.xsd.xsl.xslt.xss.xtf.xul.xvga.yaaf.yacc.yaml.zcav.zcs.zif.zifs.zisc.zma.zoi.zope.zpl`.split(`.`);var r;(function(e){e.Pascal=`pascal`,e.Camel=`camel`,e.Original=`original`,e.Lower=`lowerCase`})(r=e.AcronymStyleOptions||={}),e.acronymOption=function(e){return new t.EnumOption(`acronym-style`,`Acronym naming style`,[[r.Original,r.Original],[r.Pascal,r.Pascal],[r.Camel,r.Camel],[r.Lower,r.Lower]],e,`secondary`)};function i(e){return{[r.Pascal]:n.allUpperWordStyle,[r.Camel]:n.firstUpperWordStyle,[r.Original]:n.originalWord,[r.Lower]:n.allLowerWordStyle}[e]}e.acronymStyle=i})),aa=i((e=>{e.byteLength=c,e.toByteArray=u,e.fromByteArray=p;for(var t=[],n=[],r=typeof Uint8Array<`u`?Uint8Array:Array,i=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/`,a=0,o=i.length;a<o;++a)t[a]=i[a],n[i.charCodeAt(a)]=a;n[45]=62,n[95]=63;function s(e){var t=e.length;if(t%4>0)throw Error(`Invalid string. Length must be a multiple of 4`);var n=e.indexOf(`=`);n===-1&&(n=t);var r=n===t?0:4-n%4;return[n,r]}function c(e){var t=s(e),n=t[0],r=t[1];return(n+r)*3/4-r}function l(e,t,n){return(t+n)*3/4-n}function u(e){var t,i=s(e),a=i[0],o=i[1],c=new r(l(e,a,o)),u=0,d=o>0?a-4:a,f;for(f=0;f<d;f+=4)t=n[e.charCodeAt(f)]<<18|n[e.charCodeAt(f+1)]<<12|n[e.charCodeAt(f+2)]<<6|n[e.charCodeAt(f+3)],c[u++]=t>>16&255,c[u++]=t>>8&255,c[u++]=t&255;return o===2&&(t=n[e.charCodeAt(f)]<<2|n[e.charCodeAt(f+1)]>>4,c[u++]=t&255),o===1&&(t=n[e.charCodeAt(f)]<<10|n[e.charCodeAt(f+1)]<<4|n[e.charCodeAt(f+2)]>>2,c[u++]=t>>8&255,c[u++]=t&255),c}function d(e){return t[e>>18&63]+t[e>>12&63]+t[e>>6&63]+t[e&63]}function f(e,t,n){for(var r,i=[],a=t;a<n;a+=3)r=(e[a]<<16&16711680)+(e[a+1]<<8&65280)+(e[a+2]&255),i.push(d(r));return i.join(``)}function p(e){for(var n,r=e.length,i=r%3,a=[],o=16383,s=0,c=r-i;s<c;s+=o)a.push(f(e,s,s+o>c?c:s+o));return i===1?(n=e[r-1],a.push(t[n>>2]+t[n<<4&63]+`==`)):i===2&&(n=(e[r-2]<<8)+e[r-1],a.push(t[n>>10]+t[n>>4&63]+t[n<<2&63]+`=`)),a.join(``)}})),oa=i(((e,t)=>{var n=0,r=-3;function i(){this.table=new Uint16Array(16),this.trans=new Uint16Array(288)}function a(e,t){this.source=e,this.sourceIndex=0,this.tag=0,this.bitcount=0,this.dest=t,this.destLen=0,this.ltree=new i,this.dtree=new i}var o=new i,s=new i,c=new Uint8Array(30),l=new Uint16Array(30),u=new Uint8Array(30),d=new Uint16Array(30),f=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),p=new i,m=new Uint8Array(320);function h(e,t,n,r){var i,a;for(i=0;i<n;++i)e[i]=0;for(i=0;i<30-n;++i)e[i+n]=i/n|0;for(a=r,i=0;i<30;++i)t[i]=a,a+=1<<e[i]}function g(e,t){var n;for(n=0;n<7;++n)e.table[n]=0;for(e.table[7]=24,e.table[8]=152,e.table[9]=112,n=0;n<24;++n)e.trans[n]=256+n;for(n=0;n<144;++n)e.trans[24+n]=n;for(n=0;n<8;++n)e.trans[168+n]=280+n;for(n=0;n<112;++n)e.trans[176+n]=144+n;for(n=0;n<5;++n)t.table[n]=0;for(t.table[5]=32,n=0;n<32;++n)t.trans[n]=n}var _=new Uint16Array(16);function v(e,t,n,r){var i,a;for(i=0;i<16;++i)e.table[i]=0;for(i=0;i<r;++i)e.table[t[n+i]]++;for(e.table[0]=0,a=0,i=0;i<16;++i)_[i]=a,a+=e.table[i];for(i=0;i<r;++i)t[n+i]&&(e.trans[_[t[n+i]]++]=i)}function y(e){e.bitcount--||(e.tag=e.source[e.sourceIndex++],e.bitcount=7);var t=e.tag&1;return e.tag>>>=1,t}function b(e,t,n){if(!t)return n;for(;e.bitcount<24;)e.tag|=e.source[e.sourceIndex++]<<e.bitcount,e.bitcount+=8;var r=e.tag&65535>>>16-t;return e.tag>>>=t,e.bitcount-=t,r+n}function x(e,t){for(;e.bitcount<24;)e.tag|=e.source[e.sourceIndex++]<<e.bitcount,e.bitcount+=8;var n=0,r=0,i=0,a=e.tag;do r=2*r+(a&1),a>>>=1,++i,n+=t.table[i],r-=t.table[i];while(r>=0);return e.tag=a,e.bitcount-=i,t.trans[n+r]}function S(e,t,n){var r=b(e,5,257),i=b(e,5,1),a=b(e,4,4),o,s,c;for(o=0;o<19;++o)m[o]=0;for(o=0;o<a;++o){var l=b(e,3,0);m[f[o]]=l}for(v(p,m,0,19),s=0;s<r+i;){var u=x(e,p);switch(u){case 16:var d=m[s-1];for(c=b(e,2,3);c;--c)m[s++]=d;break;case 17:for(c=b(e,3,3);c;--c)m[s++]=0;break;case 18:for(c=b(e,7,11);c;--c)m[s++]=0;break;default:m[s++]=u;break}}v(t,m,0,r),v(n,m,r,i)}function C(e,t,r){for(;;){var i=x(e,t);if(i===256)return n;if(i<256)e.dest[e.destLen++]=i;else{var a,o,s,f;for(i-=257,a=b(e,c[i],l[i]),o=x(e,r),s=e.destLen-b(e,u[o],d[o]),f=s;f<s+a;++f)e.dest[e.destLen++]=e.dest[f]}}}function w(e){for(var t,i,a;e.bitcount>8;)e.sourceIndex--,e.bitcount-=8;if(t=e.source[e.sourceIndex+1],t=256*t+e.source[e.sourceIndex],i=e.source[e.sourceIndex+3],i=256*i+e.source[e.sourceIndex+2],t!==(~i&65535))return r;for(e.sourceIndex+=4,a=t;a;--a)e.dest[e.destLen++]=e.source[e.sourceIndex++];return e.bitcount=0,n}function T(e,t){var i=new a(e,t),c,l,u;do{switch(c=y(i),l=b(i,2,0),l){case 0:u=w(i);break;case 1:u=C(i,o,s);break;case 2:S(i,i.ltree,i.dtree),u=C(i,i.ltree,i.dtree);break;default:u=r}if(u!==n)throw Error(`Data error`)}while(!c);return i.destLen<i.dest.length?typeof i.dest.slice==`function`?i.dest.slice(0,i.destLen):i.dest.subarray(0,i.destLen):i.dest}g(o,s),h(c,l,4,3),h(u,d,2,1),c[28]=0,l[28]=258,t.exports=T})),sa=i(((e,t)=>{var n=new Uint8Array(new Uint32Array([305419896]).buffer)[0]===18,r=(e,t,n)=>{let r=e[t];e[t]=e[n],e[n]=r},i=e=>{let t=e.length;for(let n=0;n<t;n+=4)r(e,n,n+3),r(e,n+1,n+2)};t.exports={swap32LE:e=>{n&&i(e)}}})),ca=i(((e,t)=>{var n=oa(),{swap32LE:r}=sa(),i=11,a=5,o=i-a,s=65536>>i,c=(1<<o)-1,l=2,u=(1<<a)-1,d=65536>>a,f=d+(1024>>a)+32,p=1<<l;t.exports=class{constructor(e){let t=typeof e.readUInt32BE==`function`&&typeof e.slice==`function`;if(t||e instanceof Uint8Array){let i;if(t)this.highStart=e.readUInt32LE(0),this.errorValue=e.readUInt32LE(4),i=e.readUInt32LE(8),e=e.slice(12);else{let t=new DataView(e.buffer);this.highStart=t.getUint32(0,!0),this.errorValue=t.getUint32(4,!0),i=t.getUint32(8,!0),e=e.subarray(12)}e=n(e,new Uint8Array(i)),e=n(e,new Uint8Array(i)),r(e),this.data=new Uint32Array(e.buffer)}else ({data:this.data,highStart:this.highStart,errorValue:this.errorValue}=e)}get(e){let t;return e<0||e>1114111?this.errorValue:e<55296||e>56319&&e<=65535?(t=(this.data[e>>a]<<l)+(e&u),this.data[t]):e<=65535?(t=(this.data[d+(e-55296>>a)]<<l)+(e&u),this.data[t]):e<this.highStart?(t=this.data[f-s+(e>>i)],t=this.data[t+(e>>a&c)],t=(t<<l)+(e&u),this.data[t]):this.data[this.data.length-p]}}})),la=i(((e,t)=>{var n=aa(),r=ca();function i(e){return e&&e.__esModule?e.default:e}function a(e){Object.defineProperty(e,`__esModule`,{value:!0,configurable:!0})}function o(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}a(t.exports),o(t.exports,`getCategory`,()=>T),o(t.exports,`getCombiningClass`,()=>E),o(t.exports,`getScript`,()=>D),o(t.exports,`getEastAsianWidth`,()=>O),o(t.exports,`getNumericValue`,()=>k),o(t.exports,`isAlphabetic`,()=>A),o(t.exports,`isDigit`,()=>j),o(t.exports,`isPunctuation`,()=>M),o(t.exports,`isLowerCase`,()=>N),o(t.exports,`isUpperCase`,()=>P),o(t.exports,`isTitleCase`,()=>ee),o(t.exports,`isWhiteSpace`,()=>F),o(t.exports,`isBaseForm`,()=>I),o(t.exports,`isMark`,()=>L),o(t.exports,`default`,()=>R);var s={};s=JSON.parse(`{"categories":["Cc","Zs","Po","Sc","Ps","Pe","Sm","Pd","Nd","Lu","Sk","Pc","Ll","So","Lo","Pi","Cf","No","Pf","Lt","Lm","Mn","Me","Mc","Nl","Zl","Zp","Cs","Co"],"combiningClasses":["Not_Reordered","Above","Above_Right","Below","Attached_Above_Right","Attached_Below","Overlay","Iota_Subscript","Double_Below","Double_Above","Below_Right","Above_Left","CCC10","CCC11","CCC12","CCC13","CCC14","CCC15","CCC16","CCC17","CCC18","CCC19","CCC20","CCC21","CCC22","CCC23","CCC24","CCC25","CCC30","CCC31","CCC32","CCC27","CCC28","CCC29","CCC33","CCC34","CCC35","CCC36","Nukta","Virama","CCC84","CCC91","CCC103","CCC107","CCC118","CCC122","CCC129","CCC130","CCC132","Attached_Above","Below_Left","Left","Kana_Voicing","CCC26","Right"],"scripts":["Common","Latin","Bopomofo","Inherited","Greek","Coptic","Cyrillic","Armenian","Hebrew","Arabic","Syriac","Thaana","Nko","Samaritan","Mandaic","Devanagari","Bengali","Gurmukhi","Gujarati","Oriya","Tamil","Telugu","Kannada","Malayalam","Sinhala","Thai","Lao","Tibetan","Myanmar","Georgian","Hangul","Ethiopic","Cherokee","Canadian_Aboriginal","Ogham","Runic","Tagalog","Hanunoo","Buhid","Tagbanwa","Khmer","Mongolian","Limbu","Tai_Le","New_Tai_Lue","Buginese","Tai_Tham","Balinese","Sundanese","Batak","Lepcha","Ol_Chiki","Braille","Glagolitic","Tifinagh","Han","Hiragana","Katakana","Yi","Lisu","Vai","Bamum","Syloti_Nagri","Phags_Pa","Saurashtra","Kayah_Li","Rejang","Javanese","Cham","Tai_Viet","Meetei_Mayek","null","Linear_B","Lycian","Carian","Old_Italic","Gothic","Old_Permic","Ugaritic","Old_Persian","Deseret","Shavian","Osmanya","Osage","Elbasan","Caucasian_Albanian","Linear_A","Cypriot","Imperial_Aramaic","Palmyrene","Nabataean","Hatran","Phoenician","Lydian","Meroitic_Hieroglyphs","Meroitic_Cursive","Kharoshthi","Old_South_Arabian","Old_North_Arabian","Manichaean","Avestan","Inscriptional_Parthian","Inscriptional_Pahlavi","Psalter_Pahlavi","Old_Turkic","Old_Hungarian","Hanifi_Rohingya","Old_Sogdian","Sogdian","Elymaic","Brahmi","Kaithi","Sora_Sompeng","Chakma","Mahajani","Sharada","Khojki","Multani","Khudawadi","Grantha","Newa","Tirhuta","Siddham","Modi","Takri","Ahom","Dogra","Warang_Citi","Nandinagari","Zanabazar_Square","Soyombo","Pau_Cin_Hau","Bhaiksuki","Marchen","Masaram_Gondi","Gunjala_Gondi","Makasar","Cuneiform","Egyptian_Hieroglyphs","Anatolian_Hieroglyphs","Mro","Bassa_Vah","Pahawh_Hmong","Medefaidrin","Miao","Tangut","Nushu","Duployan","SignWriting","Nyiakeng_Puachue_Hmong","Wancho","Mende_Kikakui","Adlam"],"eaw":["N","Na","A","W","H","F"]}`);var c=new(i(r))(i(n).toByteArray(`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`)),l=Math.log2||(e=>Math.log(e)/Math.LN2),u=e=>l(e)+1|0,d=u(i(s).categories.length-1),f=u(i(s).combiningClasses.length-1),p=u(i(s).scripts.length-1),m=u(i(s).eaw.length-1),h=10,g=f+p+m+h,_=p+m+h,v=m+h,y=h,b=(1<<d)-1,x=(1<<f)-1,S=(1<<p)-1,C=(1<<m)-1,w=(1<<h)-1;function T(e){let t=c.get(e);return i(s).categories[t>>g&b]}function E(e){let t=c.get(e);return i(s).combiningClasses[t>>_&x]}function D(e){let t=c.get(e);return i(s).scripts[t>>v&S]}function O(e){let t=c.get(e);return i(s).eaw[t>>y&C]}function k(e){let t=c.get(e),n=t&w;if(n===0)return null;if(n<=50)return n-1;if(n<480)return((n>>4)-12)/((n&15)+1);if(n<768){t=(n>>5)-14;let e=(n&31)+2;for(;e>0;)t*=10,e--;return t}else{t=(n>>2)-191;let e=(n&3)+1;for(;e>0;)t*=60,e--;return t}}function A(e){let t=T(e);return t===`Lu`||t===`Ll`||t===`Lt`||t===`Lm`||t===`Lo`||t===`Nl`}function j(e){return T(e)===`Nd`}function M(e){let t=T(e);return t===`Pc`||t===`Pd`||t===`Pe`||t===`Pf`||t===`Pi`||t===`Po`||t===`Ps`}function N(e){return T(e)===`Ll`}function P(e){return T(e)===`Lu`}function ee(e){return T(e)===`Lt`}function F(e){let t=T(e);return t===`Zs`||t===`Zl`||t===`Zp`}function I(e){let t=T(e);return t===`Nd`||t===`No`||t===`Nl`||t===`Lu`||t===`Ll`||t===`Lt`||t===`Lm`||t===`Lo`||t===`Me`||t===`Mc`}function L(e){let t=T(e);return t===`Mn`||t===`Me`||t===`Mc`}var R={getCategory:T,getCombiningClass:E,getScript:D,getEastAsianWidth:O,getNumericValue:k,isAlphabetic:A,isDigit:j,isPunctuation:M,isLowerCase:N,isUpperCase:P,isTitleCase:ee,isWhiteSpace:F,isBaseForm:I,isMark:L}})),ua=i((e=>{var t=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,`__esModule`,{value:!0}),e.makeNameStyle=e.addPrefixIfNecessary=e.combineWords=e.allLowerWordStyle=e.originalWord=e.allUpperWordStyle=e.firstUpperWordStyle=e.splitIntoWords=e.fastIsUpperCase=e.startWithLetter=e.snakeCase=e.camelCase=e.pascalCase=e.decapitalize=e.capitalize=e.trimEnd=e.isWordCharacter=e.isLetterOrUnderscoreOrDigit=e.isLetterOrUnderscore=e.isLetterOrDigit=e.isNumeric=e.isDigit=e.isLetter=e.isAscii=e.isPrintable=e.stringEscape=e.utf16StringEscape=e.escapeNonPrintableMapper=e.standardUnicodeHexEscape=e.intToHex=e.repeatString=e.legalizeCharacters=e.utf16LegalizeCharacters=e.utf32ConcatMap=e.utf16ConcatMap=void 0;var n=Q(),r=ia(),i=C(),a=t(la());function o(e){let t=[],n=[];for(let r=0;r<128;r++){let i=0,a=e(r);a===String.fromCharCode(r)&&(i=1),t.push(a),n.push(i)}return{charStringMap:t,charNoEscapeMap:n}}function s(e){let t=[];for(let n=0;n<128;n++)t.push(e(n));return function(n){return n<128?t[n]:e(n)}}function c(e){let{charStringMap:t,charNoEscapeMap:n}=o(e);return function(r){let i=null,a=0,o=0;for(;o<r.length;){let s=r.charCodeAt(o);if(n[s]!==1){i===null&&(i=[]),i.push(r.substring(a,o));let n=t[s];n===void 0?i.push(e(r.charCodeAt(o))):i.push(n),a=o+1}o++}return i===null?r:(i.push(r.substring(a,o)),i.join(``))}}e.utf16ConcatMap=c;function l(e){return e>=55296&&e<=56319}function u(e){return e>=56320&&e<=57343}function d(e){let{charStringMap:t,charNoEscapeMap:n}=o(e);return function(r){let a=null,o=0,s=0;for(;s<r.length;){let c=r.charCodeAt(s);if(n[c]!==1){if(a===null&&(a=[]),a.push(r.substring(o,s)),l(c)){let e=c;s++;let t=r.charCodeAt(s);(0,i.messageAssert)(u(t),`MiscUnicodeHighSurrogateWithoutLowSurrogate`,{});let n=e-55296;c=65536+(t-56320)+(n<<10)}let n=t[c];n===void 0?a.push(e(c)):a.push(n),o=s+1}s++}return a===null?r:(a.push(r.substring(o,s)),a.join(``))}}e.utf32ConcatMap=d;function f(e){return c(t=>e(t)?String.fromCharCode(t):``)}e.utf16LegalizeCharacters=f;function p(e){return d(t=>t<=65535&&e(t)?String.fromCharCode(t):``)}e.legalizeCharacters=p;function m(e,t){if((0,n.assert)(t>=0,`Cannot repeat a string a negative number of times`),t===0)return``;let r=``;do t%2!=0&&(r+=e),t=Math.floor(t/2),t>0&&(e+=e);while(t>0);return r}e.repeatString=m;function h(e,t){let n=e.toString(16);return n.length>=t?n:m(`0`,t-n.length)+n}e.intToHex=h;function g(e){return e<=65535?`\\u`+h(e,4):`\\U`+h(e,8)}e.standardUnicodeHexEscape=g;function _(e,t){function n(n){switch(n){case 92:return`\\\\`;case 34:return`\\"`;case 10:return`\\n`;case 9:return`\\t`;default:return e(n)?String.fromCharCode(n):t(n)}}return n}e.escapeNonPrintableMapper=_,e.utf16StringEscape=c(_(v,g)),e.stringEscape=d(_(v,g));function v(e){if(e>65535)return!1;let t=a.default.getCategory(e);return[`Mc`,`No`,`Sk`,`Me`,`Nd`,`Po`,`Lt`,`Pc`,`Sm`,`Zs`,`Lu`,`Pd`,`So`,`Pe`,`Pf`,`Ps`,`Sc`,`Ll`,`Lm`,`Pi`,`Nl`,`Mn`,`Lo`].indexOf(t)>=0}e.isPrintable=v;function y(e){return e<128}e.isAscii=y;function b(e){let t=a.default.getCategory(e);return[`Lu`,`Ll`,`Lt`,`Lo`].indexOf(t)>=0}e.isLetter=b;function x(e){let t=a.default.getCategory(e);return[`Nd`].indexOf(t)>=0}e.isDigit=x;function S(e){let t=a.default.getCategory(e);return[`No`,`Nd`,`Nl`].indexOf(t)>=0}e.isNumeric=S;function w(e){return b(e)||x(e)}e.isLetterOrDigit=w;function T(e){return b(e)||e===95}e.isLetterOrUnderscore=T;function E(e){return T(e)||x(e)}e.isLetterOrUnderscoreOrDigit=E;function D(e){return b(e)||x(e)}e.isWordCharacter=D;function O(e){let t=e.length,n=t;for(let r=t-1;r>=0&&a.default.isWhiteSpace(e.charCodeAt(r));r--)n=r;return n===t?e:e.slice(0,n)}e.trimEnd=O;function k(e,t){return t===``?t:e(t[0])+t.slice(1)}function A(e){return k(e=>e.toUpperCase(),e)}e.capitalize=A;function j(e){return k(e=>e.toLowerCase(),e)}e.decapitalize=j;var M=/[-_. ]+/;function N(e){return e.split(M).map(A).join(``)}e.pascalCase=N;function P(e){return j(N(e))}e.camelCase=P;function ee(e){return re(e).map(({word:e})=>e.toLowerCase()).join(`_`)}e.snakeCase=ee;function F(e,t,n){let r=t?A:j;return n===``?r(`empty`):e(n.charCodeAt(0))?r(n):r(`the`+n)}e.startWithLetter=F;var I=new Set(r.acronyms),L=s(D),R=s(e=>!D(e)),z=s(e=>a.default.isLowerCase(e));e.fastIsUpperCase=s(e=>a.default.isUpperCase(e));var te=s(e=>!a.default.isLowerCase(e)&&!a.default.isUpperCase(e)),ne=s(x);function re(t){let r=[],i,a=t.length,o=0,s;function c(){return o>=a}function l(){return(0,n.defined)(t.codePointAt(o))}function d(e){for(;!c();){let t=l();if(!e(t))break;z(t)&&(s=o),o++}}function f(){d(R)}function p(){d(z)}function m(){d(e.fastIsUpperCase)}function h(){d(te)}function g(){d(ne)}function _(){(0,n.assert)(i===void 0,`Interval started before last one was committed`),i=o}function v(){if(i===void 0)return(0,n.panic)(`Tried to commit interval without starting one`);(0,n.assert)(o>i,`Interval must be non-empty`),!c()&&u(l())&&(o+=1);let e=s===void 0||s<i;r.push([i,o,e]),i=void 0}function y(){return i===void 0?(0,n.panic)(`Tried to get interval length without starting one`):o-i}for(;f(),!c();)_(),z(l())?(p(),g(),v()):(0,e.fastIsUpperCase)(l())?(m(),c()?v():y()===1?(p(),g(),v()):x(l())?(g(),v()):(L(l())&&--o,v())):(h(),v());let b=[];for(let[e,n,i]of r){let r=t.slice(e,n),a=s!==void 0&&i||I.has(r.toLowerCase());b.push({word:r,isAcronym:a})}return b}e.splitIntoWords=re;function B(e){return(0,n.assert)(e.length>0,`Cannot style an empty string`),e[0].toUpperCase()+e.slice(1).toLowerCase()}e.firstUpperWordStyle=B;function V(e){return e.toUpperCase()}e.allUpperWordStyle=V;function ie(e){return e}e.originalWord=ie;function ae(e){return e.toLowerCase()}e.allLowerWordStyle=ae;function H(e,t){(0,n.assert)(t.length>0,`Tried to style an empty word`);let r=e(t);return(0,n.assert)(r.length>0,`Word style must not make word empty`),r}function oe(e,t,r,i,a,o,s,c){let l=[];for(let n of e){let e=t(n.word);e.length!==0&&l.push({word:e,isAcronym:n.isAcronym})}if(l.length===0){let e=t(`empty`);(0,n.assert)(e.length>0,`Word "empty" is invalid in target language`),l.push({word:e,isAcronym:!1})}let u=[],d=l[0],f=H(d.isAcronym?a:r,d.word),p;if(c((0,n.defined)(f.codePointAt(0))))u.push(f),p=l.slice(1);else{let e=t(`the`);(0,n.assert)(e.length>0,`Word "the" is invalid in the target language`);let i=H(r,e);(0,n.assert)(c((0,n.defined)(i.codePointAt(0))),`The first character of styling "the" is not a start character`),u.push(i),p=l}for(let e of p){let t=e.isAcronym?o:i;u.push(H(t,e.word))}return u.join(s)}e.combineWords=oe;function U(e,t){return t.startsWith(e)?t:e+t}e.addPrefixIfNecessary=U;function se(e,t,r){let i,a,o,s,c;switch(e===`pascal`||e===`camel`||e===`pascal-upper-acronyms`||e===`camel-upper-acronyms`?(i=``,e===`pascal-upper-acronyms`||e===`camel-upper-acronyms`?(o=B,c=V):o=c=B):i=`_`,e){case`pascal`:case`pascal-upper-acronyms`:a=s=B;break;case`camel`:case`camel-upper-acronyms`:a=s=ae;break;case`underscore`:a=o=s=c=ae;break;case`upper-underscore`:a=o=s=c=V;break;default:return(0,n.assertNever)(e)}return e=>{let n=oe(re(e),t,a,o,s,c,i,T);return r===void 0?n:U(r,n)}}e.makeNameStyle=se})),da=i((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.Chance=void 0;var t=class{constructor(e){e===void 0&&(e=Math.floor(Math.random()*10**13)),this.N=624,this.M=397,this.MATRIX_A=2567483615,this.UPPER_MASK=2147483648,this.LOWER_MASK=2147483647,this.mt=Array(this.N),this.mti=this.N+1,this.init_genrand(e)}init_genrand(e){for(this.mt[0]=e>>>0,this.mti=1;this.mti<this.N;this.mti++)e=this.mt[this.mti-1]^this.mt[this.mti-1]>>>30,this.mt[this.mti]=(((e&4294901760)>>>16)*1812433253<<16)+(e&65535)*1812433253+this.mti,this.mt[this.mti]>>>=0}genrand_int32(){let e,t=[0,this.MATRIX_A];if(this.mti>=this.N){let n;for(this.mti===this.N+1&&this.init_genrand(5489),n=0;n<this.N-this.M;n++)e=this.mt[n]&this.UPPER_MASK|this.mt[n+1]&this.LOWER_MASK,this.mt[n]=this.mt[n+this.M]^e>>>1^t[e&1];for(;n<this.N-1;n++)e=this.mt[n]&this.UPPER_MASK|this.mt[n+1]&this.LOWER_MASK,this.mt[n]=this.mt[n+(this.M-this.N)]^e>>>1^t[e&1];e=this.mt[this.N-1]&this.UPPER_MASK|this.mt[0]&this.LOWER_MASK,this.mt[this.N-1]=this.mt[this.M-1]^e>>>1^t[e&1],this.mti=0}return e=this.mt[this.mti++],e^=e>>>11,e^=e<<7&2636928640,e^=e<<15&4022730752,e^=e>>>18,e>>>0}random(){return this.genrand_int32()*(1/4294967296)}};e.Chance=class{constructor(e){this.seed=e,this.mt=new t(this.seed)}random(){return this.mt.random()}integer(e){return Math.floor(this.random()*(e.max-e.min+1)+e.min)}natural(e){return this.integer({min:0,max:e.max})}pick(e){if(e.length===0)throw RangeError(`Chance: Cannot pick() from an empty array`);return e[this.natural({max:e.length-1})]}animal(){return this.pick(n[this.pick([`desert`,`forest`,`ocean`,`zoo`,`farm`,`pet`,`grassland`])])}city(){return this.pick(r)}};var n={ocean:`Acantharea.Anemone.Angelfish King.Ahi Tuna.Albacore.American Oyster.Anchovy.Armored Snail.Arctic Char.Atlantic Bluefin Tuna.Atlantic Cod.Atlantic Goliath Grouper.Atlantic Trumpetfish.Atlantic Wolffish.Baleen Whale.Banded Butterflyfish.Banded Coral Shrimp.Banded Sea Krait.Barnacle.Barndoor Skate.Barracuda.Basking Shark.Bass.Beluga Whale.Bluebanded Goby.Bluehead Wrasse.Bluefish.Bluestreak Cleaner-Wrasse.Blue Marlin.Blue Shark.Blue Spiny Lobster.Blue Tang.Blue Whale.Broadclub Cuttlefish.Bull Shark.Chambered Nautilus.Chilean Basket Star.Chilean Jack Mackerel.Chinook Salmon.Christmas Tree Worm.Clam.Clown Anemonefish.Clown Triggerfish.Cod.Coelacanth.Cockscomb Cup Coral.Common Fangtooth.Conch.Cookiecutter Shark.Copepod.Coral.Corydoras.Cownose Ray.Crab.Crown-of-Thorns Starfish.Cushion Star.Cuttlefish.California Sea Otters.Dolphin.Dolphinfish.Dory.Devil Fish.Dugong.Dumbo Octopus.Dungeness Crab.Eccentric Sand Dollar.Edible Sea Cucumber.Eel.Elephant Seal.Elkhorn Coral.Emperor Shrimp.Estuarine Crocodile.Fathead Sculpin.Fiddler Crab.Fin Whale.Flameback.Flamingo Tongue Snail.Flashlight Fish.Flatback Turtle.Flatfish.Flying Fish.Flounder.Fluke.French Angelfish.Frilled Shark.Fugu (also called Pufferfish).Gar.Geoduck.Giant Barrel Sponge.Giant Caribbean Sea Anemone.Giant Clam.Giant Isopod.Giant Kingfish.Giant Oarfish.Giant Pacific Octopus.Giant Pyrosome.Giant Sea Star.Giant Squid.Glowing Sucker Octopus.Giant Tube Worm.Goblin Shark.Goosefish.Great White Shark.Greenland Shark.Grey Atlantic Seal.Grouper.Grunion.Guineafowl Puffer.Haddock.Hake.Halibut.Hammerhead Shark.Hapuka.Harbor Porpoise.Harbor Seal.Hatchetfish.Hawaiian Monk Seal.Hawksbill Turtle.Hector's Dolphin.Hermit Crab.Herring.Hoki.Horn Shark.Horseshoe Crab.Humpback Anglerfish.Humpback Whale.Icefish.Imperator Angelfish.Irukandji Jellyfish.Isopod.Ivory Bush Coral.Japanese Spider Crab.Jellyfish.John Dory.Juan Fernandez Fur Seal.Killer Whale.Kiwa Hirsuta.Krill.Lagoon Triggerfish.Lamprey.Leafy Seadragon.Leopard Seal.Limpet.Ling.Lionfish.Lions Mane Jellyfish.Lobe Coral.Lobster.Loggerhead Turtle.Longnose Sawshark.Longsnout Seahorse.Lophelia Coral.Marrus Orthocanna.Manatee.Manta Ray.Marlin.Megamouth Shark.Mexican Lookdown.Mimic Octopus.Moon Jelly.Mollusk.Monkfish.Moray Eel.Mullet.Mussel.Megaladon.Napoleon Wrasse.Nassau Grouper.Narwhal.Nautilus.Needlefish.Northern Seahorse.North Atlantic Right Whale.Northern Red Snapper.Norway Lobster.Nudibranch.Nurse Shark.Oarfish.Ocean Sunfish.Oceanic Whitetip Shark.Octopus.Olive Sea Snake.Orange Roughy.Ostracod.Otter.Oyster.Pacific Angelshark.Pacific Blackdragon.Pacific Halibut.Pacific Sardine.Pacific Sea Nettle Jellyfish.Pacific White Sided Dolphin.Pantropical Spotted Dolphin.Patagonian Toothfish.Peacock Mantis Shrimp.Pelagic Thresher Shark.Penguin.Peruvian Anchoveta.Pilchard.Pink Salmon.Pinniped.Plankton.Porpoise.Polar Bear.Portuguese Man o' War.Pycnogonid Sea Spider.Quahog.Queen Angelfish.Queen Conch.Queen Parrotfish.Queensland Grouper.Ragfish.Ratfish.Rattail Fish.Ray.Red Drum.Red King Crab.Ringed Seal.Risso's Dolphin.Ross Seals.Sablefish.Salmon.Sand Dollar.Sandbar Shark.Sawfish.Sarcastic Fringehead.Scalloped Hammerhead Shark.Seahorse.Sea Cucumber.Sea Lion.Sea Urchin.Seal.Shark.Shortfin Mako Shark.Shovelnose Guitarfish.Shrimp.Silverside Fish.Skipjack Tuna.Slender Snipe Eel.Smalltooth Sawfish.Smelts.Sockeye Salmon.Southern Stingray.Sponge.Spotted Porcupinefish.Spotted Dolphin.Spotted Eagle Ray.Spotted Moray.Squid.Squidworm.Starfish.Stickleback.Stonefish.Stoplight Loosejaw.Sturgeon.Swordfish.Tan Bristlemouth.Tasseled Wobbegong.Terrible Claw Lobster.Threespot Damselfish.Tiger Prawn.Tiger Shark.Tilefish.Toadfish.Tropical Two-Wing Flyfish.Tuna.Umbrella Squid.Velvet Crab.Venus Flytrap Sea Anemone.Vigtorniella Worm.Viperfish.Vampire Squid.Vaquita.Wahoo.Walrus.West Indian Manatee.Whale.Whale Shark.Whiptail Gulper.White-Beaked Dolphin.White-Ring Garden Eel.White Shrimp.Wobbegong.Wrasse.Wreckfish.Xiphosura.Yellowtail Damselfish.Yelloweye Rockfish.Yellow Cup Black Coral.Yellow Tube Sponge.Yellowfin Tuna.Zebrashark.Zooplankton`.split(`.`),desert:`Aardwolf.Addax.African Wild Ass.Ant.Antelope.Armadillo.Baboon.Badger.Bat.Bearded Dragon.Beetle.Bird.Black-footed Cat.Boa.Brown Bear.Bustard.Butterfly.Camel.Caracal.Caracara.Caterpillar.Centipede.Cheetah.Chipmunk.Chuckwalla.Climbing Mouse.Coati.Cobra.Cotton Rat.Cougar.Courser.Crane Fly.Crow.Dassie Rat.Dove.Dunnart.Eagle.Echidna.Elephant.Emu.Falcon.Fly.Fox.Frogmouth.Gecko.Geoffroy's Cat.Gerbil.Grasshopper.Guanaco.Gundi.Hamster.Hawk.Hedgehog.Hyena.Hyrax.Jackal.Kangaroo.Kangaroo Rat.Kestrel.Kowari.Kultarr.Leopard.Lion.Macaw.Meerkat.Mouse.Oryx.Ostrich.Owl.Pronghorn.Python.Rabbit.Raccoon.Rattlesnake.Rhinoceros.Sand Cat.Spectacled Bear.Spiny Mouse.Starling.Stick Bug.Tarantula.Tit.Toad.Tortoise.Tyrant Flycatcher.Viper.Vulture.Waxwing.Xerus.Zebra`.split(`.`),grassland:`Aardvark.Aardwolf.Accentor.African Buffalo.African Wild Dog.Alpaca.Anaconda.Ant.Anteater.Antelope.Armadillo.Baboon.Badger.Bandicoot.Barbet.Bat.Bee.Bee-eater.Beetle.Bird.Bison.Black-footed Cat.Black-footed Ferret.Bluebird.Boa.Bowerbird.Brown Bear.Bush Dog.Bushshrike.Bustard.Butterfly.Buzzard.Caracal.Caracara.Cardinal.Caterpillar.Cheetah.Chipmunk.Civet.Climbing Mouse.Clouded Leopard.Coati.Cobra.Cockatoo.Cockroach.Common Genet.Cotton Rat.Cougar.Courser.Coyote.Crane.Crane Fly.Cricket.Crow.Culpeo.Death Adder.Deer.Deer Mouse.Dingo.Dinosaur.Dove.Drongo.Duck.Duiker.Dunnart.Eagle.Echidna.Elephant.Elk.Emu.Falcon.Finch.Flea.Fly.Flying Frog.Fox.Frog.Frogmouth.Garter Snake.Gazelle.Gecko.Geoffroy's Cat.Gerbil.Giant Tortoise.Giraffe.Grasshopper.Grison.Groundhog.Grouse.Guanaco.Guinea Pig.Hamster.Harrier.Hartebeest.Hawk.Hedgehog.Helmetshrike.Hippopotamus.Hornbill.Hyena.Hyrax.Impala.Jackal.Jaguar.Jaguarundi.Kangaroo.Kangaroo Rat.Kestrel.Kultarr.Ladybug.Leopard.Lion.Macaw.Meerkat.Mouse.Newt.Oryx.Ostrich.Owl.Pangolin.Pheasant.Prairie Dog.Pronghorn.Przewalski's Horse.Python.Quoll.Rabbit.Raven.Rhinoceros.Shelduck.Sloth Bear.Spectacled Bear.Squirrel.Starling.Stick Bug.Tamandua.Tasmanian Devil.Thornbill.Thrush.Toad.Tortoise`.split(`.`),forest:`Agouti.Anaconda.Anoa.Ant.Anteater.Antelope.Armadillo.Asian Black Bear.Aye-aye.Babirusa.Baboon.Badger.Bandicoot.Banteng.Barbet.Basilisk.Bat.Bearded Dragon.Bee.Bee-eater.Beetle.Bettong.Binturong.Bird-of-paradise.Bongo.Bowerbird.Bulbul.Bush Dog.Bushbaby.Bushshrike.Butterfly.Buzzard.Caecilian.Cardinal.Cassowary.Caterpillar.Centipede.Chameleon.Chimpanzee.Cicada.Civet.Clouded Leopard.Coati.Cobra.Cockatoo.Cockroach.Colugo.Cotinga.Cotton Rat.Cougar.Crane Fly.Cricket.Crocodile.Crow.Cuckoo.Cuscus.Death Adder.Deer.Dhole.Dingo.Dinosaur.Drongo.Duck.Duiker.Eagle.Echidna.Elephant.Finch.Flat-headed Cat.Flea.Flowerpecker.Fly.Flying Frog.Fossa.Frog.Frogmouth.Gaur.Gecko.Gorilla.Grison.Hawaiian Honeycreeper.Hawk.Hedgehog.Helmetshrike.Hornbill.Hyrax.Iguana.Jackal.Jaguar.Jaguarundi.Kestrel.Ladybug.Lemur.Leopard.Lion.Macaw.Mandrill.Margay.Monkey.Mouse.Mouse Deer.Newt.Okapi.Old World Flycatcher.Orangutan.Owl.Pangolin.Peafowl.Pheasant.Possum.Python.Quokka.Rabbit.Raccoon.Red Panda.Red River Hog.Rhinoceros.Sloth Bear.Spectacled Bear.Squirrel.Starling.Stick Bug.Sun Bear.Tamandua.Tamarin.Tapir.Tarantula.Thrush.Tiger.Tit.Toad.Tortoise.Toucan.Trogon.Trumpeter.Turaco.Turtle.Tyrant Flycatcher.Viper.Vulture.Wallaby.Warbler.Wasp.Waxwing.Weaver.Weaver-finch.Whistler.White-eye.Whydah.Woodswallow.Worm.Wren.Xenops.Yellowjacket.Accentor.African Buffalo.American Black Bear.Anole.Bird.Bison.Boa.Brown Bear.Chipmunk.Common Genet.Copperhead.Coyote.Deer Mouse.Dormouse.Elk.Emu.Fisher.Fox.Garter Snake.Giant Panda.Giant Tortoise.Groundhog.Grouse.Guanaco.Himalayan Tahr.Kangaroo.Koala.Numbat.Quoll.Raccoon dog.Tasmanian Devil.Thornbill.Turkey.Vole.Weasel.Wildcat.Wolf.Wombat.Woodchuck.Woodpecker`.split(`.`),farm:`Alpaca.Buffalo.Banteng.Cow.Cat.Chicken.Carp.Camel.Donkey.Dog.Duck.Emu.Goat.Gayal.Guinea.Goose.Horse.Honey.Llama.Pig.Pigeon.Rhea.Rabbit.Sheep.Silkworm.Turkey.Yak.Zebu`.split(`.`),pet:`Bearded Dragon.Birds.Burro.Cats.Chameleons.Chickens.Chinchillas.Chinese Water Dragon.Cows.Dogs.Donkey.Ducks.Ferrets.Fish.Geckos.Geese.Gerbils.Goats.Guinea Fowl.Guinea Pigs.Hamsters.Hedgehogs.Horses.Iguanas.Llamas.Lizards.Mice.Mule.Peafowl.Pigs and Hogs.Pigeons.Ponies.Pot Bellied Pig.Rabbits.Rats.Sheep.Skinks.Snakes.Stick Insects.Sugar Gliders.Tarantula.Turkeys.Turtles`.split(`.`),zoo:`Aardvark.African Wild Dog.Aldabra Tortoise.American Alligator.American Bison.Amur Tiger.Anaconda.Andean Condor.Asian Elephant.Baby Doll Sheep.Bald Eagle.Barred Owl.Blue Iguana.Boer Goat.California Sea Lion.Caribbean Flamingo.Chinchilla.Collared Lemur.Coquerel's Sifaka.Cuban Amazon Parrot.Ebony Langur.Fennec Fox.Fossa.Gelada.Giant Anteater.Giraffe.Gorilla.Grizzly Bear.Henkel's Leaf-tailed Gecko.Indian Gharial.Indian Rhinoceros.King Cobra.King Vulture.Komodo Dragon.Linne's Two-toed Sloth.Lion.Little Penguin.Madagascar Tree Boa.Magellanic Penguin.Malayan Tapir.Malayan Tiger.Matschies Tree Kangaroo.Mini Donkey.Monarch Butterfly.Nile crocodile.North American Porcupine.Nubian Ibex.Okapi.Poison Dart Frog.Polar Bear.Pygmy Marmoset.Radiated Tortoise.Red Panda.Red Ruffed Lemur.Ring-tailed Lemur.Ring-tailed Mongoose.Rock Hyrax.Small Clawed Asian Otter.Snow Leopard.Snowy Owl.Southern White-faced Owl.Southern White Rhinocerous.Squirrel Monkey.Tufted Puffin.White Cheeked Gibbon.White-throated Bee Eater.Zebra`.split(`.`)},r=[`Alert`,`Nord`,`Eureka`,`Ny-Ålesund`,`Longyearbyen`,`Qaanaaq`,`Grise Fiord`,`Dikson`,`Upernavik`,`Tiksi`,`Belushya Guba`,`Barrow`,`Honningsvåg`,`Hammerfest`,`Deadhorse`,`Nuorgam`,`Vadsø`,`Alta`,`Utsjoki`,`Kirkenes`,`Tromsø`,`Tuktoyaktuk`,`Norilsk`,`Murmansk`,`Harstad`,`Narvik`,`Inuvik`,`Kiruna`,`Verkhoyansk`,`Bodø`,`Gällivare`,`Kemijärvi`,`Rovaniemi`,`Ísafjörður`,`Kuusamo`,`Tornio`,`Boden`,`Haparanda`,`Kemi`,`Akureyri`,`Luleå`,`Pudasjärvi`,`Piteå`,`Oulu`,`Fairbanks`,`Skellefteå`,`Anadyr`,`Arkhangelsk`,`Nome`,`Nuuk (Godthåb)`,`Reykjavík`,`Umeå`,`Iqaluit`,`Stjørdal`,`Trondheim`,`Örnsköldsvik`,`Östersund`,`Vaasa`,`Kuopio`,`Yellowknife`,`Sundsvall`,`Jyväskylä`,`Yakutsk`,`Tórshavn`,`Petrozavodsk`,`Tampere`,`Anchorage`,`Lillehammer`,`Lahti`,`Qaqortoq`,`Whitehorse`,`Turku`,`Bergen`,`Vantaa`,`Lerwick`,`Espoo`,`Helsinki`,`Oslo`,`Saint Petersburg`,`Uppsala`,`Fritz Creek`,`Magadan`,`Tallinn`,`Stockholm`,`Sarpsborg`,`Örebro`,`Vologda`,`Norrköping`,`Linköping`,`Tartu`,`Juneau`,`Arendal`,`Kristiansand`,`Perm`,`Valga`,`Gothenburg`,`Visby`,`Yaroslavl`,`Inverness`,`Aberdeen`,`Sitka`,`Riga`,`Izhevsk`,`Yekaterinburg`,`Fort McMurray`,`Dundee`,`Nizhny Novgorod`,`Stirling`,`Bratsk`,`Aarhus`,`Krasnoyarsk`,`Edinburgh`,`Glasgow`,`Kazan`,`Moscow`,`Copenhagen`,`Malmö`,`Esbjerg`,`Odense`,`Grande Prairie`,`Chelyabinsk`,`Novosibirsk`,`Derry`,`Omsk`,`Newcastle upon Tyne`,`Sunderland`,`Petropavl`,`Flensburg`,`Ufa`,`Kaliningrad`,`Vilnius`,`Belfast`,`Middlesbrough`,`Gdynia`,`Gdańsk`,`Kiel`,`Douglas`,`Rostock`,`Lancaster`,`York`,`Prince George`,`Minsk`,`Bradford`,`Leeds`,`Hamburg`,`Edmonton`,`Tolyatti`,`Manchester`,`Liverpool`,`Sheffield`,`Dublin`,`Groningen`,`Samara`,`Bremen`,`Petropavlovsk-Kamchatsky`,`Nottingham`,`Derby`,`Leicester`,`Norwich`,`Peterborough`,`Berlin`,`Birmingham`,`Gomel`,`Coventry`,`Poznań`,`Haarlem`,`Amsterdam`,`Hannover`,`Irkutsk`,`Warsaw`,`Enschede`,`Cambridge`,`Leiden`,`Saskatoon`,`Utrecht`,`The Hague`,`Münster`,`Rotterdam`,`Cork`,`Adak`,`Gloucester`,`Oxford`,`Voronezh`,`Swansea`,`Saratov`,`Dortmund`,`London`,`Cardiff`,`Greenwich`,`Bristol`,`Bath`,`Leipzig`,`Düsseldorf`,`Antwerp`,`Astana`,`Winchester`,`Calgary`,`Ghent`,`Dresden`,`Erfurt`,`Calais`,`Cologne`,`Southampton`,`Maastricht`,`Brussels`,`Brighton and Hove`,`Portsmouth`,`Exeter`,`Kamloops`,`Lille`,`Regina`,`Kiev`,`Charleroi`,`Plymouth`,`Frankfurt am Main`,`Prague`,`Kraków`,`Kharkiv`,`Winnipeg`,`Kelowna`,`Lviv`,`Luxembourg`,`Le Havre`,`Nuremberg`,`Rouen`,`Vancouver`,`Paris`,`Stuttgart`,`Bellingham`,`Volgograd`,`Strasbourg`,`Dnipro`,`Victoria`,`Saguenay`,`Brest`,`Thunder Bay`,`Linz`,`Vienna`,`Bratislava`,`Munich`,`Donetsk`,`Ulaanbaatar`,`Orléans`,`Salzburg`,`Seattle`,`St. John's`,`Basel`,`Budapest`,`Qiqihar`,`Zürich`,`Innsbruck`,`Rostov-on-Don`,`Nantes`,`Vaduz`,`Atyrau`,`Graz`,`Chişinău`,`Bern`,`Tiraspol`,`Quebec City`,`Bismarck`,`Duluth`,`Saint-Pierre`,`Cluj-Napoca`,`Moscow`,`Helena`,`Sault Ste. Marie`,`Lausanne`,`Sudbury`,`Odessa`,`North Bay`,`Charlottetown`,`Geneva`,`Moncton`,`Ljubljana`,`Fredericton`,`Zagreb`,`Lyon`,`Harbin`,`New Glasgow`,`Portland`,`Montreal`,`Milan`,`Venice`,`Ottawa`,`Wakkanai`,`Saint John`,`Novi Sad`,`Turin`,`Krasnodar`,`Minneapolis`,`Simferopol`,`Halifax`,`Bordeaux`,`Belgrade`,`Šabac`,`Drobeta Turnu Severin`,`Bologna`,`Bucharest`,`Ravenna`,`Genoa`,`Pierre`,`Craiova`,`Augusta`,`Montpelier`,`Bath`,`San Marino`,`Changchun`,`Sarajevo`,`Yarmouth`,`Ürümqi`,`Florence`,`Asahikawa`,`Monaco`,`Nice`,`Toronto`,`Boise`,`Toulouse`,`Sochi`,`Cannes`,`Gijón`,`Sioux Falls`,`Split`,`Oviedo`,`Nemuro`,`San Sebastián`,`Marseille`,`Almaty`,`Bilbao`,`Concord`,`Rochester`,`Vladivostok`,`Sapporo`,`Milwaukee`,`Sukhumi`,`Kushiro`,`London`,`Follonica`,`Obihiro`,`Buffalo`,`Santiago de Compostela`,`Bishkek`,`Vitoria-Gasteiz`,`Sofia`,`Pristina`,`Andorra la Vella`,`Nukus`,`Podgorica`,`Boston`,`Detroit`,`Windsor`,`Vigo`,`Tskhinvali`,`Avezzano`,`Skopje`,`Colchester`,`Rome`,`Vatican City`,`Chicago`,`Providence`,`Shenyang`,`Chongjin`,`Hartford`,`Hakodate`,`Tbilisi`,`Valladolid`,`Zaragoza`,`Des Moines`,`Braga`,`Cleveland`,`Barcelona`,`Tirana`,`Tashkent`,`Porto`,`Cheyenne`,`Bari`,`Fort Wayne`,`Istanbul`,`Trabzon`,`Namangan`,`Naples`,`Aomori`,`Lincoln`,`Eureka`,`Salt Lake City`,`Jersey City`,`New York City`,`Thessaloniki`,`Lleida`,`Pittsburgh`,`Baku`,`Madrid`,`Trenton`,`Bursa`,`Yerevan`,`Boulder`,`Columbus`,`Ankara`,`Philadelphia`,`Beijing`,`Stepanakert`,`Forked River`,`Eskisehir`,`Indianapolis`,`Denver`,`Akita`,`Morioka`,`Palma`,`Reno`,`Flores Island`,`Valencia`,`Baltimore`,`Cagliari`,`Dover`,`Wonsan`,`Tianjin`,`Cincinnati`,`Kansas City`,`Pyongyang`,`Ibiza`,`Dalian`,`Washington`,`Lisbon`,`St. Louis`,`Horta`,`Sacramento`,`Dushanbe`,`Angra do Heroísmo`,`Halkida`,`İzmir`,`Charleston`,`Alicante`,`Sendai`,`Louisville`,`Yamagata`,`Messina`,`Palermo`,`Tabriz`,`Shijiazhuang`,`Trapani`,`Athena`,`Kaesong`,`Ashgabat`,`Niigata`,`Taiyuan`,`Konya`,`Ponta Delgada`,`Oakland`,`San Francisco`,`Fukushima`,`Wichita`,`Seoul`,`San Jose`,`Catania`,`Incheon`,`Sevilla`,`Mugla`,`Springfield`,`Gaziantep`,`Adana`,`Virginia Beach`,`Almería`,`Tunis`,`Mersin`,`Algiers`,`Málaga`,`Toyama`,`Jinan`,`Nagano`,`Xining`,`Handan`,`Kanazawa`,`Utsunomiya`,`Maebashi`,`Mito`,`Mosul`,`Mashhad`,`Arbil`,`Las Vegas`,`Nashville`,`Gibraltar`,`Tulsa`,`Fukui`,`Qingdao`,`Lanzhou`,`Knoxville`,`Valletta`,`Birkirkara`,`Los Alamos`,`Daegu`,`Raleigh`,`Tangier`,`Tehran`,`Tokyo`,`Santa Fe`,`Kōfu`,`Chiba`,`Latakia`,`Kawasaki`,`Tottori`,`Oklahoma City`,`Matsue`,`Kirkuk`,`Yokohama`,`Gifu`,`Tiaret`,`Heraklion`,`Melilla`,`Charlotte`,`Nagoya`,`Busan`,`Nicosia`,`Memphis`,`Albuquerque`,`Ōtsu`,`Kyoto`,`Shizuoka`,`Zhengzhou`,`Little Rock`,`Sfax`,`Tsu`,`Osaka`,`Kōbe`,`Nara`,`Okayama`,`Kabul`,`Santa Barbara`,`Hiroshima`,`Takamatsu`,`Xi'an`,`Wakayama`,`Wilmington`,`Yamaguchi`,`Arak`,`Srinagar`,`Tokushima`,`Los Angeles`,`Rabat`,`Peshawar`,`Columbia`,`Riverside`,`Beirut`,`Matsuyama`,`Atlanta`,`Islamabad`,`Birmingham`,`Rawalpindi`,`Fukuoka`,`Kōchi`,`Casablanca`,`Damascus`,`Phoenix`,`Lubbock`,`Baghdad`,`Saga`,`Ōita`,`Tripoli`,`Charleston`,`Dallas`,`Nagasaki`,`Kumamoto`,`San Diego`,`Mexicali`,`Funchal`,`El Centro`,`Isfahan`,`Karbala`,`Tijuana`,`Shreveport`,`Jackson`,`Hamilton`,`Tucson`,`Benghazi`,`Tel Aviv`,`Nanjing`,`Najaf`,`Amman`,`Miyazaki`,`Ramallah`,`Ensenada`,`El Paso`,`Jerusalem`,`Ciudad Juárez`,`Amritsar`,`Marrakech`,`Kandahar`,`Kagoshima`,`Lahore`,`Gaza`,`Faisalabad`,`Port Said`,`Alexandria`,`Shanghai`,`Shimla`,`Ludhiana`,`Chandigarh`,`Mobile`,`Chengdu`,`Wuhan`,`Basra`,`Agadir`,`Jacksonville`,`Austin`,`Hangzhou`,`Multan`,`Cairo`,`New Orleans`,`Suez`,`Houston`,`Lhasa`,`Chongqing`,`Eilat`,`San Antonio`,`Kuwait City`,`Shigatse`,`Hermosillo`,`Chihuahua`,`New Delhi`,`Santa Cruz de Tenerife`,`Orlando`,`Las Palmas de Gran Canaria`,`Tampa`,`Corpus Christi`,`Maspalomas`,`Kathmandu`,`Dibrugarh`,`Thimphu`,`Gangtok`,`Agra`,`El Aaiún`,`Sabha`,`Jaipur`,`Lucknow`,`Siliguri`,`Tezpur`,`Kanpur`,`Dammam`,`Naha`,`Manama`,`Guwahati`,`Brownsville`,`Miami`,`Luxor`,`Monterrey`,`Patna`,`Shillong`,`Torreón`,`Kulpahar`,`Doha`,`Dubai`,`Hyderabad`,`Nassau`,`Kunming`,`Taipei`,`Karachi`,`Culiacán`,`Riyadh`,`Key West`,`Medina`,`Abu Dhabi`,`Al Ain`,`Taichung`,`Durango`,`Agartala`,`Dhaka`,`Muscat`,`Havana`,`Guangzhou`,`Ahmedabad`,`Dongguan`,`Tainan`,`Cabo San Lucas`,`Nanning`,`Kaohsiung`,`Kolkata (Calcutta)`,`Shenzhen`,`Chittagong`,`Hong Kong`,`Tampico`,`San Luis Potosí`,`Aguascalientes`,`Jeddah`,`Cockburn Town`,`Mecca`,`Honolulu`,`Chhattisgarh`,`Cancún`,`Surat`,`Nagpur`,`León`,`Hanoi`,`Mérida`,`Hai Phong`,`Zapopan`,`Puerto Vallarta`,`Guadalajara`,`Querétaro`,`Haikou`,`Santiago de Cuba`,`Chiang Rai`,`Naypyidaw`,`Hilo`,`George Town`,`Veracruz`,`Puebla`,`Mumbai`,`Chiang Mai`,`Port-au-Prince`,`Pune`,`Santo Domingo`,`San Juan`,`Road Town`,`Charlotte Amalie`,`The Valley`,`Nouakchott`,`Kingston`,`Vientiane`,`Visakhapatnam`,`Belize City`,`Udon Thani`,`Hyderabad`,`Basseterre`,`Belmopan`,`St. John's`,`Salalah`,`Acapulco`,`Yangon`,`Timbuktu`,`Huế`,`Khon Kaen`,`Da Nang`,`Basse-Terre`,`Omdurman`,`Khartoum`,`Sana'a`,`Asmara`,`Roseau`,`Saipan`,`Son My`,`Nakhon Ratchasima`,`Praia`,`Tapachula`,`Quetzaltenango`,`Thiès`,`Dakar`,`Quezon City`,`Guatemala City`,`Fort-de-France`,`Manila`,`Makati`,`Ayutthaya`,`Tegucigalpa`,`Castries`,`Bangkok`,`San Salvador`,`Niamey`,`Dededo`,`Hagåtña`,`Banjul`,`Serekunda`,`Siem Reap`,`Brikama`,`Kingstown`,`Bridgetown`,`Chennai (Madras)`,`Bangalore`,`Pattaya`,`Koulikoro`,`Bamako`,`Chinandega`,`Oranjestad`,`Ouagadougou`,`Managua`,`Willemstad`,`N'Djamena`,`St. George's`,`Kano`,`Bissau`,`Port Blair`,`Djibouti`,`Phnom Penh`,`Bobo-Dioulasso`,`Barranquilla`,`Ho Chi Minh City`,`Iloilo City`,`Port of Spain`,`Maracaibo`,`Liberia`,`Caracas`,`Chaguanas`,`Cartagena`,`San Fernando`,`Cebu City`,`Maracay`,`Valencia`,`Alajuela`,`Limón`,`Jaffna`,`Hargeisa`,`Puntarenas`,`Kochi`,`San José`,`Tagbilaran`,`Conakry`,`Tamale`,`Surat Thani`,`Abuja`,`Addis Ababa`,`Panama City`,`Mérida`,`Moundou`,`Trivandrum`,`Freetown`,`Ciudad Bolívar`,`Cúcuta`,`Phuket`,`San Cristóbal`,`Nzérékoré`,`Batticaloa`,`Melekeok`,`Weno`,`Ibadan`,`Koror`,`Kandy`,`Majuro`,`Davao City`,`Hat Yai`,`Colombo`,`Palikir`,`Sri Jayawardenapura-Kotte`,`Zamboanga City`,`Yamoussoukro`,`Georgetown`,`Kumasi`,`Porto-Novo`,`Lagos`,`Enugu`,`Cotonou`,`Benin City`,`Monrovia`,`Medellín`,`Lomé`,`Kota Bharu`,`Alor Setar`,`Kota Kinabalu`,`Paramaribo`,`Puerto Ayacucho`,`Accra`,`Banda Aceh`,`George Town`,`Abidjan`,`Cayenne`,`Sekondi-Takoradi`,`Bandar Seri Begawan`,`Juba`,`Port Harcourt`,`Ipoh`,`Bogotá`,`Miri`,`Bangui`,`Malé`,`Douala`,`Yaoundé`,`Malabo`,`Medan`,`Santiago de Cali`,`Kuala Lumpur`,`Boa Vista`,`Malacca Town`,`Mogadishu`,`Kuching`,`Johor Bahru`,`South Tarawa`,`Singapore`,`Pekanbaru`,`Libreville`,`São Tomé`,`Kampala`,`Entebbe`,`Mbandaka`,`Macapá`,`Pontianak`,`Quito`,`Kismayo`,`Yaren District`,`Padang`,`Balikpapan`,`Nairobi`,`Belém`,`Kigali`,`Guayaquil`,`Mwanza`,`São Luís`,`Jayapura`,`Palembang`,`Manaus`,`Bujumbura`,`Sobral`,`Ambon`,`Fortaleza`,`Iquitos`,`Fernando de Noronha`,`Mombasa`,`Brazzaville`,`Kinshasa`,`Victoria`,`Teresina`,`Makassar`,`Imperatriz`,`Natal`,`Zanzibar City`,`Dodoma`,`Jakarta`,`Bogor`,`Dar es Salaam`,`Bandung`,`Semarang`,`João Pessoa`,`Juazeiro do Norte`,`Campina Grande`,`Surabaya`,`Yogyakarta`,`Malang`,`Recife`,`Trujillo`,`Caruaru`,`Funafuti`,`Dili`,`Denpasar`,`Porto Velho`,`Luanda`,`Garanhuns`,`Nukulaelae`,`Petrolina`,`Honiara`,`Port Moresby`,`Maceió`,`Rio Branco`,`Aracaju`,`Palmas`,`Lubumbashi`,`Moroni`,`Sinop`,`Lima`,`Darwin`,`Huambo`,`Mamoudzou`,`Ndola`,`Salvador`,`Ayacucho`,`Mata-Utu`,`Cusco`,`Apia`,`Lilongwe`,`Pago Pago`,`Ilhéus`,`Lusaka`,`Cuiabá`,`Blantyre`,`Brasília`,`Jamestown`,`Arequipa`,`Labasa`,`Rabi Island`,`La Paz`,`Goiânia`,`Cairns`,`Papeete`,`Port Vila`,`Santa Cruz de la Sierra`,`Livingstone`,`Harare`,`Suva`,`Arica`,`Governador Valadares`,`Uberlândia`,`Antananarivo`,`Mutare`,`Sucre`,`Alofi`,`Townsville`,`Gweru`,`Belo Horizonte`,`Port Louis`,`Bulawayo`,`Iquique`,`Port Hedland`,`Vitória`,`Campo Grande`,`São José do Rio Preto`,`Saint-Denis`,`Nukuʻalofa`,`Francistown`,`Ribeirão Preto`,`Avarua`,`Juiz de Fora`,`Poços de Caldas`,`Araraquara`,`Nouméa`,`Bauru`,`Calama`,`Windhoek`,`Assis`,`Campinas`,`Rio de Janeiro`,`São José dos Campos`,`Rockhampton`,`São Paulo`,`Antofagasta`,`Polokwane`,`Gaborone`,`Salta`,`Adamstown`,`Asunción`,`Curitiba`,`Nelspruit`,`Ciudad del Este`,`Pretoria`,`Mafikeng`,`Maputo`,`Johannesburg`,`Mbabane`,`Lobamba`,`Manzini`,`San Miguel de Tucumán`,`Hanga Roa`,`Copiapó`,`Brisbane`,`Corrientes`,`Florianópolis`,`Gold Coast`,`Kimberley`,`Kingston`,`Bloemfontein`,`Maseru`,`Pietermaritzburg`,`Durban`,`La Serena`,`Córdoba`,`Santa Fe`,`Pelotas`,`Perth`,`San Juan`,`Mandurah`,`Bhisho`,`Mendoza`,`Newcastle`,`Rosario`,`Viña del Mar`,`Valparaíso`,`Santiago`,`Chuí`,`Sydney`,`Cape Town`,`Port Elizabeth`,`Wollongong`,`Buenos Aires`,`Montevideo`,`Adelaide`,`Canberra`,`Concepción`,`Auckland`,`Edinburgh of the Seven Seas`,`Hamilton`,`Melbourne`,`Mar del Plata`,`Geelong`,`Bahía Blanca`,`Temuco`,`Neuquén`,`Hastings`,`Valdivia`,`San Carlos de Bariloche`,`Nelson`,`Wellington`,`Puerto Montt`,`Launceston, Tasmania`,`Hobart`,`Trelew`,`Christchurch`,`Waitangi`,`Puerto Aisén`,`Coihaique`,`Comodoro Rivadavia`,`Dunedin`,`Invercargill`,`Río Gallegos`,`Stanley`,`Punta Arenas`,`Grytviken`,`Ushuaia`,`Puerto Williams`,`Puerto Toro`,`Villa Las Estrellas`,`Esperanza`,`Rothera`,`Concordia`]})),fa=i((e=>{var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,`default`,{enumerable:!0,value:t})}):function(e,t){e.default=t}),r=e&&e.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var i in e)i!==`default`&&Object.prototype.hasOwnProperty.call(e,i)&&t(r,e,i);return n(r,e),r};Object.defineProperty(e,`__esModule`,{value:!0}),e.makeNamesTypeAttributes=e.singularizeTypeNames=e.modifyTypeNames=e.namesTypeAttributeKind=e.TooManyTypeNames=e.RegularTypeNames=e.TypeNames=e.tooManyNamesThreshold=e.initTypeNames=void 0;var i=r(ta()),o=a(),s=Q(),c=na(),l=ua(),u=da(),d,f;function p(){d=new u.Chance(31415),f=new Set}e.initTypeNames=p,p();function m(){for(;;){let e=`${d.city()} ${d.animal()}`;if(!f.has(e))return f.add(e),e}}function h(e){let t=(0,o.iterableFirst)(e);if(t===void 0)return(0,s.panic)(`Named type has no names`);if(e.size===1)return t;let n=(0,o.setMap)(e,e=>(0,l.splitIntoWords)(e).map(e=>e.word.toLowerCase()).join(`_`)),r=(0,s.defined)((0,o.iterableFirst)(n));if(n.size===1)return r;let i=r.length,a=r.length;for(let e of(0,o.iterableSkip)(n,1)){i=Math.min(i,e.length);for(let t=0;t<i;t++)if(r[t]!==e[t]){i=t;break}a=Math.min(a,e.length);for(let t=0;t<a;t++)if(r[r.length-t-1]!==e[e.length-t-1]){a=t;break}}let c=(i>2?r.slice(0,i):``)+(a>2?r.slice(r.length-a):``);return c.length>2?c:r}e.tooManyNamesThreshold=1e3;var g=class t{static makeWithDistance(t,n,r){return t.size>=e.tooManyNamesThreshold?new v(r):((n===void 0||n.size>e.tooManyNamesThreshold)&&(n=void 0),new _(t,n,r))}static make(e,n,r){return t.makeWithDistance(e,n,r?1:0)}constructor(e){this.distance=e}get areInferred(){return this.distance>0}};e.TypeNames=g;var _=class e extends g{constructor(e,t,n){super(n),this.names=e,this._alternativeNames=t}add(t,n=0){let r=new Set(this.names),i=this.distance,a=(0,o.definedMap)(this._alternativeNames,e=>new Set(e));for(let c=n;c<t.length;c++){let n=t[c];if(n instanceof e&&n._alternativeNames!==void 0&&(a===void 0&&(a=new Set),(0,o.setUnionInto)(a,n._alternativeNames)),!(n.distance>i)){if(!(n instanceof e))return(0,s.assert)(n instanceof v,`Unknown TypeNames instance`),n.add(t,c+1);n.distance<i?(r=new Set(n.names),i=n.distance,a=(0,o.definedMap)(n._alternativeNames,e=>new Set(e))):((0,s.assert)(n.distance===i,`This should be the only case left`),(0,o.setUnionInto)(r,n.names))}}return g.makeWithDistance(r,a,i)}clearInferred(){let e=this.areInferred?new Set:this.names;return g.makeWithDistance(e,new Set,this.distance)}get combinedName(){return h(this.names)}get proposedNames(){let e=new Set([this.combinedName]);return this._alternativeNames===void 0||(0,o.setUnionInto)(e,this._alternativeNames),e}makeInferred(){return g.makeWithDistance(this.names,this._alternativeNames,this.distance+1)}singularize(){return g.makeWithDistance((0,o.setMap)(this.names,i.singular),(0,o.definedMap)(this._alternativeNames,e=>(0,o.setMap)(e,i.singular)),this.distance+1)}toString(){let e=`${this.areInferred?`distance ${this.distance}`:`given`} ${Array.from(this.names).join(`,`)}`;return this._alternativeNames===void 0?e:`${e} (${Array.from(this._alternativeNames).join(`,`)})`}};e.RegularTypeNames=_;var v=class e extends g{constructor(e,t){super(e),t===void 0&&(t=m()),this.names=new Set([t])}get combinedName(){return(0,s.defined)((0,o.iterableFirst)(this.names))}get proposedNames(){return this.names}add(e,t=0){if(!this.areInferred)return this;for(let n=t;n<e.length;n++){let t=e[n];if(t.distance<this.distance)return t.add(e,n+1)}return this}clearInferred(){return this.areInferred?g.makeWithDistance(new Set,new Set,this.distance):this}makeInferred(){return new e(this.distance+1,(0,o.iterableFirst)(this.names))}singularize(){return this}toString(){return`too many ${this.combinedName}`}};e.TooManyTypeNames=v,e.namesTypeAttributeKind=new class extends c.TypeAttributeKind{constructor(){super(`names`)}combine(e){return(0,s.assert)(e.length>0,`Can't combine zero type names`),e[0].add(e,1)}makeInferred(e){return e.makeInferred()}increaseDistance(e){return e.makeInferred()}stringify(e){return e.toString()}};function y(t,n){return e.namesTypeAttributeKind.modifyInAttributes(t,n)}e.modifyTypeNames=y;function b(e){return y(e,e=>{if(e!==void 0)return e.singularize()})}e.singularizeTypeNames=b;function x(t,n){let r;return r=typeof t==`string`?g.make(new Set([t]),new Set,(0,s.defined)(n)):t,e.namesTypeAttributeKind.makeAttributes(r)}e.makeNamesTypeAttributes=x})),pa=i((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.TypeBuilder=e.getNoStringTypeMapping=e.stringTypeMappingGet=e.provenanceTypeAttributeKind=void 0;var t=a(),n=wa(),r=va(),i=na(),o=Q(),s=ma();e.provenanceTypeAttributeKind=new class extends i.TypeAttributeKind{constructor(){super(`provenance`)}appliesToTypeKind(e){return!0}combine(e){return(0,t.setUnionManyInto)(new Set,e)}makeInferred(e){return e}stringify(e){return Array.from(e).sort().map(e=>e.toString()).join(`,`)}};function c(e,t){let n=e.get(t);return n===void 0?`string`:n}e.stringTypeMappingGet=c;var l;function u(){return l===void 0&&(l=new Map(Array.from(n.transformedStringTypeKinds).map(e=>[e,e]))),l}e.getNoStringTypeMapping=u,e.TypeBuilder=class{constructor(e,n,i,a,s,c){this._stringTypeMapping=n,this.canonicalOrder=i,this._allPropertiesOptional=a,this._addProvenanceAttributes=s,this.topLevels=new Map,this.types=[],this.typeAttributes=[],this._addedForwardingIntersection=!1,this._typeForIdentity=new t.EqualityMap,(0,o.assert)(!s||!c,`We can't both inherit as well as add provenance`),this.typeGraph=new r.TypeGraph(this,e,s||c)}addTopLevel(e,t){(0,o.assert)(!this.topLevels.has(e),`Trying to add top-level with existing name`),(0,o.assert)(this.types[(0,r.typeRefIndex)(t)]!==void 0,`Trying to add a top-level type that doesn't exist (yet?)`),this.topLevels.set(e,t)}reserveTypeRef(){let t=this.types.length;this.types.push(void 0);let n=(0,r.makeTypeRef)(this.typeGraph,t),a=this._addProvenanceAttributes?e.provenanceTypeAttributeKind.makeAttributes(new Set([t])):i.emptyTypeAttributes;return this.typeAttributes.push(a),n}assertTypeRefGraph(e){e!==void 0&&(0,r.assertTypeRefGraph)(e,this.typeGraph)}assertTypeRefSetGraph(e){e!==void 0&&e.forEach(e=>this.assertTypeRefGraph(e))}filterTypeAttributes(e,n){let r=(0,t.mapFilter)(n,(t,n)=>n.appliesToTypeKind(e.kind));return n.size!==r.size&&this.setLostTypeAttributes(),r}commitType(e,t){this.assertTypeRefGraph(e);let n=(0,r.typeRefIndex)(e);(0,o.assert)(this.types[n]===void 0,`A type index was committed twice`),this.types[n]=t,this.typeAttributes[n]=this.filterTypeAttributes(t,this.typeAttributes[n])}addType(e,t,n){e!==void 0&&(this.assertTypeRefGraph(e),(0,o.assert)(this.types[(0,r.typeRefIndex)(e)]===void 0));let a=e===void 0?this.reserveTypeRef():e;if(n!==void 0){let e=(0,r.typeRefIndex)(a);this.typeAttributes[e]=(0,i.combineTypeAttributes)(`union`,this.typeAttributes[e],n)}let s=t(a);return this.commitType(a,s),a}typeAtIndex(e){let t=this.types[e];return t===void 0?(0,o.panic)(`Trying to deref an undefined type in a type builder`):t}atIndex(e){return[this.typeAtIndex(e),this.typeAttributes[e]]}addAttributes(e,n){this.assertTypeRefGraph(e);let a=(0,r.typeRefIndex)(e),s=this.typeAttributes[a];(0,o.assert)((0,t.iterableEvery)(n,([e,n])=>{if(!e.inIdentity)return!0;let r=s.get(e);return r===void 0?!1:(0,t.areEqual)(r,n)}),`Can't add different identity type attributes to an existing type`);let c=this.types[a];c!==void 0&&(n=this.filterTypeAttributes(c,n));let l=(0,t.mapFilter)(n,(e,t)=>!t.inIdentity);this.typeAttributes[a]=(0,i.combineTypeAttributes)(`union`,s,l)}finish(){return this.typeGraph.freeze(this.topLevels,this.types.map(o.defined),this.typeAttributes),this.typeGraph}addForwardingIntersection(e,t){return this.assertTypeRefGraph(t),this._addedForwardingIntersection=!0,this.addType(e,e=>new n.IntersectionType(e,this.typeGraph,new Set([t])),void 0)}forwardIfNecessary(e,t){if(t!==void 0)return e===void 0?t:this.addForwardingIntersection(e,t)}get didAddForwardingIntersection(){return this._addedForwardingIntersection}registerTypeForIdentity(e,t){e!==void 0&&this._typeForIdentity.set(e,t)}makeIdentity(e){return e()}getOrAddType(e,n,r,i){let a=this.makeIdentity(e),o;if(o=a===void 0?void 0:this._typeForIdentity.get(a),o!==void 0){let e=this.forwardIfNecessary(i,o);return r!==void 0&&this.addAttributes(e,(0,t.mapFilter)(r,(e,t)=>!t.inIdentity)),e}let s=this.addType(i,n,r);return this.registerTypeForIdentity(a,s),s}registerType(e){this.registerTypeForIdentity(e.identity,e.typeRef)}getPrimitiveType(e,r,a){let o=(0,t.withDefault)(r,i.emptyTypeAttributes),l=e===`string`?void 0:s.StringTypes.unrestricted;return(0,n.isPrimitiveStringTypeKind)(e)&&e!==`string`&&(e=c(this._stringTypeMapping,e)),e===`string`?this.getStringType(o,l,a):this.getOrAddType(()=>(0,n.primitiveTypeIdentity)(e,o),t=>new n.PrimitiveType(t,this.typeGraph,e),o,a)}getStringType(e,r,a){let c=(0,t.mapFind)(e,(e,t)=>t===s.stringTypesTypeAttributeKind);return(0,o.assert)(r===void 0!=(c===void 0),`Must instantiate string type with one enum case attribute`),c===void 0&&(e=(0,i.combineTypeAttributes)(`union`,e,s.stringTypesTypeAttributeKind.makeAttributes((0,o.defined)(r)))),this.getOrAddType(()=>(0,n.primitiveTypeIdentity)(`string`,e),e=>new n.PrimitiveType(e,this.typeGraph,`string`),e,a)}getEnumType(e,t,r){return this.getOrAddType(()=>(0,n.enumTypeIdentity)(e,t),e=>new n.EnumType(e,this.typeGraph,t),e,r)}makeClassProperty(e,t){return new n.ClassProperty(e,this.typeGraph,t)}getUniqueObjectType(e,r,i,a){return this.assertTypeRefGraph(i),r=(0,t.definedMap)(r,e=>this.modifyPropertiesIfNecessary(e)),this.addType(a,e=>new n.ObjectType(e,this.typeGraph,`object`,!0,r,i),e)}getUniqueMapType(e){return this.addType(e,e=>new n.MapType(e,this.typeGraph,void 0),void 0)}getMapType(e,t,r){return this.assertTypeRefGraph(t),this.getOrAddType(()=>(0,n.mapTypeIdentify)(e,t),e=>new n.MapType(e,this.typeGraph,t),e,r)}setObjectProperties(e,t,i){this.assertTypeRefGraph(i);let a=(0,r.derefTypeRef)(e,this.typeGraph);if(!(a instanceof n.ObjectType))return(0,o.panic)(`Tried to set properties of non-object type`);a.setProperties(this.modifyPropertiesIfNecessary(t),i),this.registerType(a)}getUniqueArrayType(e){return this.addType(e,e=>new n.ArrayType(e,this.typeGraph,void 0),void 0)}getArrayType(e,t,r){return this.assertTypeRefGraph(t),this.getOrAddType(()=>(0,n.arrayTypeIdentity)(e,t),e=>new n.ArrayType(e,this.typeGraph,t),e,r)}setArrayItems(e,t){this.assertTypeRefGraph(t);let i=(0,r.derefTypeRef)(e,this.typeGraph);if(!(i instanceof n.ArrayType))return(0,o.panic)(`Tried to set items of non-array type`);i.setItems(t),this.registerType(i)}modifyPropertiesIfNecessary(e){return e.forEach(e=>this.assertTypeRefGraph(e.typeRef)),this.canonicalOrder&&(e=(0,t.mapSortByKey)(e)),this._allPropertiesOptional&&(e=(0,t.mapMap)(e,e=>this.makeClassProperty(e.typeRef,!0))),e}getClassType(e,t,r){return t=this.modifyPropertiesIfNecessary(t),this.getOrAddType(()=>(0,n.classTypeIdentity)(e,t),e=>new n.ClassType(e,this.typeGraph,!1,t),e,r)}getUniqueClassType(e,r,i,a){return i=(0,t.definedMap)(i,e=>this.modifyPropertiesIfNecessary(e)),this.addType(a,e=>new n.ClassType(e,this.typeGraph,r,i),e)}getUnionType(e,t,r){return this.assertTypeRefSetGraph(t),this.getOrAddType(()=>(0,n.unionTypeIdentity)(e,t),e=>new n.UnionType(e,this.typeGraph,t),e,r)}getUniqueUnionType(e,t,r){return this.assertTypeRefSetGraph(t),this.addType(r,e=>new n.UnionType(e,this.typeGraph,t),e)}getIntersectionType(e,t,r){return this.assertTypeRefSetGraph(t),this.getOrAddType(()=>(0,n.intersectionTypeIdentity)(e,t),e=>new n.IntersectionType(e,this.typeGraph,t),e,r)}getUniqueIntersectionType(e,t,r){return this.assertTypeRefSetGraph(t),this.addType(r,e=>new n.IntersectionType(e,this.typeGraph,t),e)}setSetOperationMembers(e,t){this.assertTypeRefSetGraph(t);let i=(0,r.derefTypeRef)(e,this.typeGraph);if(!(i instanceof n.UnionType||i instanceof n.IntersectionType))return(0,o.panic)(`Tried to set members of non-set-operation type`);i.setMembers(t),this.registerType(i)}setLostTypeAttributes(){}}})),ma=i((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.inferTransformedStringTypeKindForString=e.stringTypesTypeAttributeKind=e.StringTypes=void 0;var t=a(),n=na(),r=Q(),i=pa(),o=class e{static fromCase(t,n){let r={};return r[t]=n,new e(new Map([[t,n]]),new Set)}static fromCases(t){let n={};for(let e of t)n[e]=1;return new e(new Map(t.map(e=>[e,1])),new Set)}constructor(e,t){this.cases=e,this.transformations=t,e===void 0&&(0,r.assert)(t.size===0,`We can't have an unrestricted string that also allows transformations`)}get isRestricted(){return this.cases!==void 0}union(n,r){if(this.cases===void 0)return this;let i=new Map(this.cases),a=new Set(this.transformations);for(let e=r;e<n.length;e++){let r=n[e];if(r.cases===void 0)return r;(0,t.mapMergeWithInto)(i,(e,t)=>e+t,r.cases),(0,t.setUnionInto)(a,r.transformations)}return new e(i,a)}intersect(n,i){let a=this.cases,o=this.transformations;for(let e=i;e<n.length;e++){let i=n[e];if(a===void 0)a=(0,t.definedMap)(i.cases,e=>new Map(e));else if(i.cases!==void 0){let e=a,n=i.cases;a=(0,t.mapMap)((0,t.setIntersect)(e.keys(),new Set(n.keys())).entries(),t=>Math.min((0,r.defined)(e.get(t)),(0,r.defined)(n.get(t))))}o=(0,t.setIntersect)(o,i.transformations)}return new e(a,o)}applyStringTypeMapping(t){if(!this.isRestricted)return this;let n=new Set;for(let r of this.transformations){let a=(0,i.stringTypeMappingGet)(t,r);if(a===`string`)return e.unrestricted;n.add(a)}return new e(this.cases,new Set(n))}equals(n){return n instanceof e?(0,t.areEqual)(this.cases,n.cases)&&(0,t.areEqual)(this.transformations,n.transformations):!1}hashCode(){let e=(0,t.hashCodeOf)(this.cases);return e=(0,t.addHashCode)(e,(0,t.hashCodeOf)(this.transformations)),e}toString(){let e=[],n=this.cases;if(n===void 0)e.push(`unrestricted`);else{let r=(0,t.iterableFirst)(n.keys());r===void 0?e.push(`enum with no cases`):e.push(`${n.size.toString()} enums: ${r} (${n.get(r)}), ...`)}return e.concat(Array.from(this.transformations)).join(`,`)}};e.StringTypes=o,o.unrestricted=new o(void 0,new Set),e.stringTypesTypeAttributeKind=new class extends n.TypeAttributeKind{constructor(){super(`stringTypes`)}get inIdentity(){return!0}requiresUniqueIdentity(e){return e.cases!==void 0&&e.cases.size>0}combine(e){return(0,r.assert)(e.length>0),e[0].union(e,1)}intersect(e){return(0,r.assert)(e.length>0),e[0].intersect(e,1)}makeInferred(e){}stringify(e){return e.toString()}};var s=/^(0|-?[1-9]\d*)$/,c=1<<31,l=-(c+1);function u(e){if(e.match(s)===null)return!1;let t=parseInt(e,10);return t>=c&&t<=l}var d=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/;function f(e){return e.match(d)!==null}var p=/^(https?|ftp):\/\/[^{}]+$/;function m(e){return e.match(p)!==null}function h(e,t){if(!(e.length===0||`0123456789-abcdefth`.indexOf(e[0])<0)){if(t.isDate(e))return`date`;if(t.isTime(e))return`time`;if(t.isDateTime(e))return`date-time`;if(u(e))return`integer-string`;if(e===`false`||e===`true`)return`bool-string`;if(f(e))return`uuid`;if(m(e))return`uri`}}e.inferTransformedStringTypeKindForString=h})),ha=i((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.matchCompoundType=e.matchType=e.matchTypeExhaustive=e.stringTypesForType=e.directlyReachableSingleNamedType=e.directlyReachableTypes=e.separateNamedTypes=e.isNamedType=e.getNullAsOptional=e.nonNullTypeCases=e.nullableFromUnion=e.removeNullFromType=e.removeNullFromUnion=e.isAnyOrNull=e.combineTypeAttributesOfTypes=e.makeGroupsToFlatten=e.setOperationMembersRecursively=e.assertIsClass=e.assertIsObject=void 0;var t=a(),n=Q(),r=na(),i=wa(),o=ma();function s(e){return e instanceof i.ObjectType?e:(0,n.panic)(`Supposed object type is not an object type`)}e.assertIsObject=s;function c(e){return e instanceof i.ClassType?e:(0,n.panic)(`Supposed class type is not a class type`)}e.assertIsClass=c;function l(e,t){let n=Array.isArray(e)?e:[e],i=n[0].kind,a=i!==`intersection`,o=new Set,s=new Set,c=r.emptyTypeAttributes;function l(e){if(e.kind===i){let n=e;if(o.has(n))return;o.add(n),t!==void 0&&(c=(0,r.combineTypeAttributes)(t,c,e.getAttributes()));for(let e of n.members)l(e)}else a||e.kind!==`any`?s.add(e):t!==void 0&&(c=(0,r.combineTypeAttributes)(t,c,e.getAttributes()))}for(let e of n)l(e);return[s,c]}e.setOperationMembersRecursively=l;function u(e,r){let i=new t.EqualityMap;for(let a of e){let e=new Set(l(a,void 0)[0]);if(r!==void 0&&!r(e))continue;let o=i.get(e);o===void 0&&(o=new Set,e.size===1&&o.add((0,n.defined)((0,t.iterableFirst)(e)))),o.add(a),i.set(e,o)}return Array.from(i.values()).map(e=>Array.from(e))}e.makeGroupsToFlatten=u;function d(e,t){return(0,r.combineTypeAttributes)(e,Array.from(t).map(e=>e.getAttributes()))}e.combineTypeAttributesOfTypes=d;function f(e){return e.kind===`any`||e.kind===`null`}e.isAnyOrNull=f;function p(e,n=!1){function r(e){return n===!1?e:n===!0?(0,t.setSortBy)(e,e=>e.kind):(0,t.setSortBy)(e,n)}let i=e.findMember(`null`);return i===void 0?[null,r(e.members)]:[i,r((0,t.setFilter)(e.members,e=>e.kind!==`null`))]}e.removeNullFromUnion=p;function m(e){return e.kind===`null`?[e,new Set]:e instanceof i.UnionType?p(e):[null,new Set([e])]}e.removeNullFromType=m;function h(e){let[r,i]=p(e);return r===null||i.size!==1?null:(0,n.defined)((0,t.iterableFirst)(i))}e.nullableFromUnion=h;function g(e){return m(e)[1]}e.nonNullTypeCases=g;function _(e){let[t,n]=m(e.type);return e.isOptional?[!0,n]:[t!==null,n]}e.getNullAsOptional=_;function v(e){return[`class`,`union`,`enum`,`object`].indexOf(e.kind)>=0}e.isNamedType=v;function y(e){return{objects:(0,t.setFilter)(e,e=>e.kind===`object`||e.kind===`class`),enums:(0,t.setFilter)(e,e=>e instanceof i.EnumType),unions:(0,t.setFilter)(e,e=>e instanceof i.UnionType)}}e.separateNamedTypes=y;function b(e,n){let r=n(e);return r===null?(0,t.setUnion)(...Array.from(e.getNonAttributeChildren()).map(e=>b(e,n))):r}e.directlyReachableTypes=b;function x(e){let r=b(e,e=>!(e instanceof i.UnionType)&&v(e)||e instanceof i.UnionType&&h(e)===null?new Set([e]):null);return(0,n.assert)(r.size<=1,`Cannot have more than one defined type per top-level`),(0,t.iterableFirst)(r)}e.directlyReachableSingleNamedType=x;function S(e){(0,n.assert)(e.kind===`string`,`Only strings can have string types`);let t=o.stringTypesTypeAttributeKind.tryGetInAttributes(e.getAttributes());return t===void 0?(0,n.panic)(`All strings must have a string type attribute`):t}e.stringTypesForType=S;function C(e,t,r,a,o,s,c,l,u,d,f,p,m,h,g){if(e.isPrimitive()){if((0,i.isPrimitiveStringTypeKind)(e.kind))return e.kind===`string`?l(e):g(e);let u=e.kind,d={none:t,any:r,null:a,bool:o,integer:s,double:c}[u];return d===void 0?(0,n.assertNever)(d):d(e)}else if(e instanceof i.ArrayType)return u(e);else if(e instanceof i.ClassType)return d(e);else if(e instanceof i.MapType)return f(e);else if(e instanceof i.ObjectType)return p(e);else if(e instanceof i.EnumType)return m(e);else if(e instanceof i.UnionType)return h(e);return(0,n.panic)(`Unknown type ${e.kind}`)}e.matchTypeExhaustive=C;function w(e,t,r,i,a,o,s,c,l,u,d,f,p){function m(e){return(0,n.panic)(`Unsupported type ${e.kind} in non-exhaustive match`)}return C(e,m,t,r,i,a,o,s,c,l,u,m,d,f,p||m)}e.matchType=w;function T(e,t,n,r,i,a){function o(e){}return C(e,o,o,o,o,o,o,o,t,n,r,i,o,a,o)}e.matchCompoundType=T})),ga=i((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.GraphRewriteBuilder=e.GraphRemapBuilder=e.BaseGraphRewriteBuilder=e.TypeReconstituter=void 0;var t=a(),n=ha(),r=va(),i=na(),o=Q(),s=pa(),c=class{constructor(e,t,n,r,i){this._typeBuilder=e,this._makeClassUnique=t,this._typeAttributes=n,this._forwardingRef=r,this._register=i,this._wasUsed=!1,this._typeRef=void 0}builderForNewType(){return(0,o.assert)(!this._wasUsed,`TypeReconstituter used more than once`),this._wasUsed=!0,this._typeBuilder}builderForSetting(){return(0,o.assert)(this._wasUsed&&this._typeRef!==void 0,`Can't set type members before constructing a type`),this._typeBuilder}getResult(){return this._typeRef===void 0?(0,o.panic)(`Type was not reconstituted`):this._typeRef}register(e){(0,o.assert)(this._typeRef===void 0,`Cannot register a type twice`),this._typeRef=e,this._register(e)}registerAndAddAttributes(e){this._typeBuilder.addAttributes(e,this._typeAttributes),this.register(e)}lookup(e){if((0,o.assert)(!this._wasUsed,`Cannot lookup constituents after building type`),(0,r.isTypeRef)(e))return this._typeBuilder.lookupTypeRefs([e],void 0,!1);{let t=Array.from(e).map(e=>this._typeBuilder.lookupTypeRefs([e],void 0,!1));return t.some(e=>e===void 0)?void 0:t}}lookupMap(e){let t=this.lookup(e.values());if(t===void 0)return;(0,o.assert)(t.length===e.size,`Didn't get back the correct number of types`);let n=new Map,r=0;for(let i of e.keys())n.set(i,t[r]),r+=1;return n}reconstitute(e){return(0,o.assert)(this._wasUsed,`Cannot reconstitute constituents before building type`),(0,r.isTypeRef)(e)?this._typeBuilder.reconstituteTypeRef(e):Array.from(e).map(e=>this._typeBuilder.reconstituteTypeRef(e))}reconstituteMap(e){return(0,t.mapMap)(e,e=>this._typeBuilder.reconstituteTypeRef(e))}getPrimitiveType(e){this.register(this.builderForNewType().getPrimitiveType(e,this._typeAttributes,this._forwardingRef))}getEnumType(e){this.register(this.builderForNewType().getEnumType(this._typeAttributes,e,this._forwardingRef))}getUniqueMapType(){this.registerAndAddAttributes(this.builderForNewType().getUniqueMapType(this._forwardingRef))}getMapType(e){this.register(this.builderForNewType().getMapType(this._typeAttributes,e,this._forwardingRef))}getUniqueArrayType(){this.registerAndAddAttributes(this.builderForNewType().getUniqueArrayType(this._forwardingRef))}getArrayType(e){this.register(this.builderForNewType().getArrayType(this._typeAttributes,e,this._forwardingRef))}setArrayItems(e){this.builderForSetting().setArrayItems(this.getResult(),e)}makeClassProperty(e,t){return this._typeBuilder.makeClassProperty(e,t)}getObjectType(e,t){this.register(this.builderForNewType().getUniqueObjectType(this._typeAttributes,e,t,this._forwardingRef))}getUniqueObjectType(e,t){this.register(this.builderForNewType().getUniqueObjectType(this._typeAttributes,e,t,this._forwardingRef))}getClassType(e){if(this._makeClassUnique){this.getUniqueClassType(!1,e);return}this.register(this.builderForNewType().getClassType(this._typeAttributes,e,this._forwardingRef))}getUniqueClassType(e,t){this.register(this.builderForNewType().getUniqueClassType(this._typeAttributes,e,t,this._forwardingRef))}setObjectProperties(e,t){this.builderForSetting().setObjectProperties(this.getResult(),e,t)}getUnionType(e){this.register(this.builderForNewType().getUnionType(this._typeAttributes,e,this._forwardingRef))}getUniqueUnionType(){this.register(this.builderForNewType().getUniqueUnionType(this._typeAttributes,void 0,this._forwardingRef))}getIntersectionType(e){this.register(this.builderForNewType().getIntersectionType(this._typeAttributes,e,this._forwardingRef))}getUniqueIntersectionType(e){this.register(this.builderForNewType().getUniqueIntersectionType(this._typeAttributes,e,this._forwardingRef))}setSetOperationMembers(e){this.builderForSetting().setSetOperationMembers(this.getResult(),e)}};e.TypeReconstituter=c;var l=class extends s.TypeBuilder{constructor(e,t,n,r,i){super(e.serial+1,t,n,!1,!1,r),this.originalGraph=e,this.debugPrint=i,this.reconstitutedTypes=new Map,this._lostTypeAttributes=!1,this._printIndent=0}withForwardingRef(e,t){if(e!==void 0)return t(e);let n=this.reserveTypeRef(),r=t(n);return(0,o.assert)(r===n,`Type creator didn't return its forwarding ref`),r}reconstituteType(e,t,n){return this.reconstituteTypeRef(e.typeRef,t,n)}reconstituteTypeRef(e,t,n){let r=this.lookupTypeRefs([e],n);return r===void 0?this.forceReconstituteTypeRef(e,t,n):(t!==void 0&&this.addAttributes(r,t),r)}reconstituteTypeAttributes(e){return(0,t.mapMap)(e,(e,t)=>t.reconstitute(this,e))}assertTypeRefsToReconstitute(e,t){(0,o.assert)(e.length>0,`Must have at least one type to reconstitute`);for(let t of e)(0,r.assertTypeRefGraph)(t,this.originalGraph);t!==void 0&&(0,r.assertTypeRefGraph)(t,this.typeGraph)}changeDebugPrintIndent(e){this._printIndent+=e}get debugPrintIndentation(){return(0,o.indentationString)(this._printIndent)}finish(){for(let[e,t]of this.originalGraph.topLevels)this.addTopLevel(e,this.reconstituteType(t));return super.finish()}setLostTypeAttributes(){this._lostTypeAttributes=!0}get lostTypeAttributes(){return this._lostTypeAttributes}};e.BaseGraphRewriteBuilder=l,e.GraphRemapBuilder=class extends l{constructor(e,t,n,r,i,a){super(e,t,n,r,a),this._map=i,this._attributeSources=new Map;for(let[e,t]of i){let n=this._attributeSources.get(t);n===void 0&&(n=[t],this._attributeSources.set(t,n)),n.push(e)}}makeIdentity(e){}getMapTarget(e){let t=this._map.get((0,r.derefTypeRef)(e,this.originalGraph));return t===void 0?e:((0,o.assert)(this._map.get(t)===void 0,`We have a type that's remapped to a remapped type`),t.typeRef)}addForwardingIntersection(e,t){return(0,o.panic)(`We can't add forwarding intersections when we're removing forwarding intersections`)}lookupTypeRefs(e,t){(0,o.assert)(t===void 0,`We can't have a forwarding ref when we remap`),this.assertTypeRefsToReconstitute(e,t);let n=this.reconstitutedTypes.get((0,r.typeRefIndex)(this.getMapTarget(e[0])));if(n!==void 0){for(let t=1;t<e.length;t++)if(n!==this.reconstitutedTypes.get((0,r.typeRefIndex)(this.getMapTarget(e[t]))))return;return n}}forceReconstituteTypeRef(e,t,a){e=this.getMapTarget(e);let s=(0,r.typeRefIndex)(e);return(0,o.assert)(this.reconstitutedTypes.get(s)===void 0,`Type has already been reconstituted`),(0,o.assert)(a===void 0,`We can't have a forwarding ref when we remap`),this.withForwardingRef(void 0,a=>{this.reconstitutedTypes.set(s,a),this.debugPrint&&(console.log(`${this.debugPrintIndentation}reconstituting ${s} as ${(0,r.typeRefIndex)(a)}`),this.changeDebugPrintIndent(1));let[l,u]=(0,r.typeAndAttributesForTypeRef)(e,this.originalGraph),d=this._attributeSources.get(l);t===void 0&&(t=i.emptyTypeAttributes),t=d===void 0?(0,i.combineTypeAttributes)(`union`,t,this.reconstituteTypeAttributes(u)):(0,i.combineTypeAttributes)(`union`,t,this.reconstituteTypeAttributes((0,n.combineTypeAttributesOfTypes)(`union`,d)));let f=t,p=new c(this,this.canonicalOrder,f,a,e=>{(0,o.assert)(e===a,`Reconstituted type as a different ref`),this.debugPrint&&(this.changeDebugPrintIndent(-1),console.log(`${this.debugPrintIndentation}reconstituted ${s} as ${(0,r.typeRefIndex)(e)}`))});return l.reconstitute(p,this.canonicalOrder),p.getResult()})}},e.GraphRewriteBuilder=class extends l{constructor(e,n,r,i,a,s,c){super(e,n,r,i,s),this._replacer=c,this._reconstitutedUnions=new t.EqualityMap,this._setsToReplaceByMember=new Map;for(let e of a){let t=new Set(e);for(let e of t){let n=e.index;(0,o.assert)(!this._setsToReplaceByMember.has(n),`A type is member of more than one set to be replaced`),this._setsToReplaceByMember.set(n,t)}}}registerUnion(e,t){let n=new Set(e);(0,o.assert)(!this._reconstitutedUnions.has(n),`Cannot register reconstituted set twice`),this._reconstitutedUnions.set(n,t)}replaceSet(e,t){return this.withForwardingRef(t,t=>{this.debugPrint&&(console.log(`${this.debugPrintIndentation}replacing set ${Array.from(e).map(e=>e.index.toString()).join(`,`)} as ${(0,r.typeRefIndex)(t)}`),this.changeDebugPrintIndent(1));for(let n of e){let e=n.typeRef,i=(0,r.typeRefIndex)(e);this.reconstitutedTypes.set(i,t),this._setsToReplaceByMember.delete(i)}let n=this._replacer(e,this,t);return(0,o.assert)(n===t,`The forwarding ref got lost when replacing`),this.debugPrint&&(this.changeDebugPrintIndent(-1),console.log(`${this.debugPrintIndentation}replaced set ${Array.from(e).map(e=>e.index.toString()).join(`,`)} as ${(0,r.typeRefIndex)(t)}`)),n})}forceReconstituteTypeRef(e,t,n){let[a,s]=(0,r.typeAndAttributesForTypeRef)(e,this.originalGraph),l=(0,r.typeRefIndex)(e);this.debugPrint&&(console.log(`${this.debugPrintIndentation}reconstituting ${l}`),this.changeDebugPrintIndent(1)),t=t===void 0?this.reconstituteTypeAttributes(s):(0,i.combineTypeAttributes)(`union`,t,this.reconstituteTypeAttributes(s));let u=new c(this,this.canonicalOrder,t,n,e=>{this.debugPrint&&(this.changeDebugPrintIndent(-1),console.log(`${this.debugPrintIndentation}reconstituted ${l} as ${(0,r.typeRefIndex)(e)}`)),n!==void 0&&(0,o.assert)(e===n,`We didn't pass the forwarding ref`);let t=this.reconstitutedTypes.get(l);t===void 0?this.reconstitutedTypes.set(l,e):(0,o.assert)(e===t,`We reconstituted a type twice differently`)});return a.reconstitute(u,this.canonicalOrder),u.getResult()}lookupTypeRefs(e,t,n=!0){this.assertTypeRefsToReconstitute(e,t);let i=this.reconstitutedTypes.get((0,r.typeRefIndex)(e[0]));if(i!==void 0&&i!==t){let n=!0;for(let t=1;t<e.length;t++)if(this.reconstitutedTypes.get((0,r.typeRefIndex)(e[t]))!==i){n=!1;break}if(n)return this.forwardIfNecessary(t,i)}if(i=this._reconstitutedUnions.get(new Set(e)),i!==void 0&&i!==t)return this.forwardIfNecessary(t,i);let a=this._setsToReplaceByMember.get((0,r.typeRefIndex)(e[0]));if(a!==void 0){for(let t=1;t<e.length;t++)if(this._setsToReplaceByMember.get((0,r.typeRefIndex)(e[t]))!==a)return;if(n)return this.replaceSet(a,t)}}}})),_a=i((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.Graph=void 0;var t=a(),n=Q();function r(e){if(e.length===0)return 0;let t=-1,r=0;for(let i of e){(0,n.assert)(i.length>0,`Empty component not allowed`);for(let e of i)(0,n.assert)(e>=0,`Negative vertex index is invalid`),t=Math.max(t,e),r+=1}return(0,n.assert)(t+1===r,`Vertex indexes and count don't match up`),r}function i(e){let t=0,i=[],a=e.length,o=(0,n.repeated)(a,-1),s=(0,n.repeated)(a,-1),c=(0,n.repeated)(a,!1),l=[];function u(r){o[r]=t,s[r]=t,t+=1,i.push(r),c[r]=!0;for(let t of e[r])o[t]<0?(u(t),s[r]=Math.min(s[r],s[t])):c[t]&&(s[r]=Math.min(s[r],o[t]));if(s[r]===o[r]){let e=[],t;do t=(0,n.defined)(i.pop()),c[t]=!1,e.push(t);while(t!==r);l.push(e)}}for(let e=0;e<a;e++)o[e]<0&&u(e);return(0,n.assert)(r(l)===a,`We didn't put all the nodes into SCCs`),l}function o(e,t){let i=t.length,a=e.length;(0,n.assert)(a===r(t),`Components don't match up with graph`);let o=(0,n.repeated)(a,-1);for(let e=0;e<i;e++)for(let r of t[e])(0,n.assert)(o[r]<0,`We have a node that's in two components`),o[r]=e;return o}function s(e,t){let r=t.length,i=o(e,t),a=(0,n.repeated)(r,!1),s=[];for(let o=0;o<r;o++){let r=[];for(let n of t[o])for(let t of e[n]){let e=i[t];e===o||a[e]||(r.push(e),a[e]=!0)}for(let e of r)(0,n.assert)(a[e]),a[e]=!1;s.push(r)}return s}function c(e){let t=e.length,r=(0,n.repeatedCall)(t,()=>[]);for(let n=0;n<t;n++)for(let t of e[n])r[t].push(n);return r}function l(e){let t=e.length,r=(0,n.repeated)(t,0);for(let t of e)for(let e of t)r[e]+=1;return r}function u(e){let t=e.length,n=l(e),r=[];for(let e=0;e<t;e++)n[e]===0&&r.push(e);return r}e.Graph=class e{constructor(e,t,r){this._nodes=Array.from(e),this._indexByNode=new Map(this._nodes.map((e,t)=>[e,t]));let i;i=Array.isArray(r)?r:this._nodes.map(e=>Array.from(r(e)).map(e=>(0,n.defined)(this._indexByNode.get(e)))),t&&(i=c(i)),this._successors=i}get size(){return this._nodes.length}get nodes(){return this._nodes}findRoots(){let e=u(this._successors);return new Set(e.map(e=>this._nodes[e]))}dfsTraversal(e,t,r){let i=(0,n.repeated)(this.size,!1),a=e=>{if(!i[e]){i[e]=!0,t&&r(this._nodes[e]);for(let t of this._successors[e])a(t);t||r(this._nodes[e])}};a((0,n.defined)(this._indexByNode.get(e)))}stronglyConnectedComponents(){let n=i(this._successors),r=s(this._successors,n);return new e(n.map(e=>(0,t.setMap)(e,e=>this._nodes[e])),!1,r)}makeDot(e,t){let n=[];n.push(`digraph G {`),n.push(` ordering = out;`),n.push(``);for(let r=0;r<this.size;r++){let i=this._nodes[r];e(i)&&n.push(` node${r} [label="${t(i)}"];`)}for(let t=0;t<this.size;t++)if(e(this._nodes[t]))for(let r of this._successors[t])e(this._nodes[r])&&n.push(` node${t} -> node${r};`);return n.push(`}`),n.push(``),n.join(`
|
|
116
|
-
`)}}})),va=i((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.removeIndirectionIntersections=e.optionalToNullable=e.noneToAny=e.TypeGraph=e.TypeAttributeStoreView=e.TypeAttributeStore=e.typeAndAttributesForTypeRef=e.attributesForTypeRef=e.derefTypeRef=e.assertTypeRefGraph=e.typeRefIndex=e.makeTypeRef=e.isTypeRef=void 0;var t=a(),n=wa(),r=ha(),i=Q(),o=pa(),s=ga(),c=fa(),l=_a(),u=na(),d=C(),f=26,p=(1<<f)-1,m=(1<<31-f)-1;function h(e){return typeof e==`number`}e.isTypeRef=h;function g(e,t){return(0,i.assert)(t<=p,`Too many types in graph`),(e.serial&m)<<f|t}e.makeTypeRef=g;function _(e){return e&p}e.typeRefIndex=_;function v(e,t){(0,i.assert)((e>>f&m)===(t.serial&m),`Mixing the wrong type reference and graph`)}e.assertTypeRefGraph=v;function y(e){return e instanceof E?e:e.originalGraph}function b(e,t){let n=y(t);return v(e,n),n.typeAtIndex(_(e))}e.derefTypeRef=b;function x(e,t){let n=y(t);return v(e,n),n.atIndex(_(e))[1]}e.attributesForTypeRef=x;function S(e,t){let n=y(t);return v(e,n),n.atIndex(_(e))}e.typeAndAttributesForTypeRef=S;var w=class{constructor(e,t){this._typeGraph=e,this._values=t,this._topLevelValues=new Map}getTypeIndex(e){let t=e.typeRef;return v(t,this._typeGraph),_(t)}attributesForType(e){let t=this.getTypeIndex(e),n=this._values[t];return n===void 0?u.emptyTypeAttributes:n}attributesForTopLevel(e){let t=this._topLevelValues.get(e);return t===void 0?u.emptyTypeAttributes:t}setInMap(e,t,n){return new Map(e).set(t,n)}set(e,t,n){let r=this.getTypeIndex(t);for(;r>=this._values.length;)this._values.push(void 0);this._values[r]=this.setInMap(this.attributesForType(t),e,n)}setForTopLevel(e,t,n){this._topLevelValues.set(t,this.setInMap(this.attributesForTopLevel(t),e,n))}tryGetInMap(e,t){return e.get(t)}tryGet(e,t){return this.tryGetInMap(this.attributesForType(t),e)}tryGetForTopLevel(e,t){return this.tryGetInMap(this.attributesForTopLevel(t),e)}};e.TypeAttributeStore=w;var T=class{constructor(e,t){this._attributeStore=e,this._definition=t}set(e,t){this._attributeStore.set(this._definition,e,t)}setForTopLevel(e,t){this._attributeStore.setForTopLevel(this._definition,e,t)}tryGet(e){return this._attributeStore.tryGet(this._definition,e)}get(e){return(0,i.defined)(this.tryGet(e))}tryGetForTopLevel(e){return this._attributeStore.tryGetForTopLevel(this._definition,e)}getForTopLevel(e){return(0,i.defined)(this.tryGetForTopLevel(e))}};e.TypeAttributeStoreView=T;var E=class{constructor(e,t,n){this.serial=t,this._haveProvenanceAttributes=n,this._attributeStore=void 0,this._topLevels=new Map,this._parents=void 0,this._printOnRewrite=!1,this._typeBuilder=e}get isFrozen(){return this._typeBuilder===void 0}get attributeStore(){return(0,i.defined)(this._attributeStore)}freeze(e,n,r){(0,i.assert)(!this.isFrozen,`Tried to freeze TypeGraph a second time`);for(let e of n)v(e.typeRef,this);this._attributeStore=new w(this,r),this._types=n,this._typeBuilder=void 0,this._topLevels=(0,t.mapMap)(e,e=>b(e,this))}get topLevels(){return(0,i.assert)(this.isFrozen,`Cannot get top-levels from a non-frozen graph`),this._topLevels}typeAtIndex(e){return this._typeBuilder===void 0?(0,i.defined)(this._types)[e]:this._typeBuilder.typeAtIndex(e)}atIndex(e){if(this._typeBuilder!==void 0)return this._typeBuilder.atIndex(e);let t=this.typeAtIndex(e);return[t,(0,i.defined)(this._attributeStore).attributesForType(t)]}filterTypes(e){let t=new Set,n=[];function r(i){if(!t.has(i)){t.add(i),(e===void 0||e(i))&&n.push(i);for(let e of i.getChildren())r(e)}}for(let[,e]of this.topLevels)r(e);return new Set(n)}allNamedTypes(){return this.filterTypes(r.isNamedType)}allNamedTypesSeparated(){let e=this.allNamedTypes();return(0,r.separateNamedTypes)(e)}allProvenance(){(0,i.assert)(this._haveProvenanceAttributes);let e=new T(this.attributeStore,o.provenanceTypeAttributeKind),n=Array.from(this.allTypesUnordered()).map(t=>{let n=e.tryGet(t);return n===void 0?new Set:n}),r=new Set;return(0,t.setUnionManyInto)(r,n),r}setPrintOnRewrite(){this._printOnRewrite=!0}checkLostTypeAttributes(e,n){if(!this._haveProvenanceAttributes||e.lostTypeAttributes)return;let r=this.allProvenance(),i=n.allProvenance();if(r.size!==i.size){let e=(0,t.setSubtract)(r,i),n=Array.from(e);return(0,d.messageError)(`IRTypeAttributesNotPropagated`,{count:e.size,indexes:n})}}printRewrite(e){this._printOnRewrite&&console.log(`\n# ${e}`)}rewrite(e,t,n,r,i,a,o=!1){if(this.printRewrite(e),!o&&r.length===0)return this;let c=new s.GraphRewriteBuilder(this,t,n,this._haveProvenanceAttributes,r,i,a),l=c.finish();return this.checkLostTypeAttributes(c,l),this._printOnRewrite&&(l.setPrintOnRewrite(),l.printGraph()),c.didAddForwardingIntersection?k(l,t,i):l}remap(e,t,n,r,a,o=!1){if(this.printRewrite(e),!o&&r.size===0)return this;let c=new s.GraphRemapBuilder(this,t,n,this._haveProvenanceAttributes,r,a),l=c.finish();return this.checkLostTypeAttributes(c,l),this._printOnRewrite&&(l.setPrintOnRewrite(),l.printGraph()),(0,i.assert)(!c.didAddForwardingIntersection),l}garbageCollect(e,t){return this.remap(`GC`,(0,o.getNoStringTypeMapping)(),e,new Map,t,!0)}rewriteFixedPoint(e,t){let n=this;for(;;){let r=this.rewrite(`fixed-point`,(0,o.getNoStringTypeMapping)(),e,[],t,i.mustNotHappen,!0);if(n.allTypesUnordered().size===r.allTypesUnordered().size)return n;n=r}}allTypesUnordered(){return(0,i.assert)(this.isFrozen,`Tried to get all graph types before it was frozen`),new Set((0,i.defined)(this._types))}makeGraph(e,t){return new l.Graph((0,i.defined)(this._types),e,t)}getParentsOfType(e){if(v(e.typeRef,this),this._parents===void 0){let e=(0,i.defined)(this._types).map(e=>new Set);for(let t of this.allTypesUnordered())for(let n of t.getChildren()){let r=n.index;e[r]=e[r].add(t)}this._parents=e}return this._parents[e.index]}printGraph(){let e=(0,i.defined)(this._types);for(let t=0;t<e.length;t++){let n=e[t],r=[];r.push(`${n.debugPrintKind}${n.hasNames?` ${n.getCombinedName()}`:``}`);let i=n.getChildren();i.size>0&&r.push(`children ${Array.from(i).map(e=>e.index).join(`,`)}`);for(let[e,t]of n.getAttributes()){let n=e.stringify(t);n!==void 0&&r.push(n)}console.log(`${t}: ${r.join(` | `)}`)}}};e.TypeGraph=E;function D(e,n,a){let o=(0,t.setFilter)(e.allTypesUnordered(),e=>e.kind===`none`);return o.size===0?e:((0,i.assert)(o.size===1,`Cannot have more than one none type`),e.rewrite(`none to any`,n,!1,[Array.from(o)],a,(e,t,n)=>{let i=(0,r.combineTypeAttributesOfTypes)(`union`,e);return t.getPrimitiveType(`any`,i,n)}))}e.noneToAny=D;function O(e,r,a){function o(e,r,i){let a=(0,t.mapMap)(e.getProperties(),(e,i)=>{let a=e.type,o;if(!e.isOptional||a.isNullable)o=r.reconstituteType(a);else{let e=r.getPrimitiveType(`null`),s;s=a instanceof n.UnionType?(0,t.setMap)(a.members,e=>r.reconstituteType(e)).add(e):new Set([r.reconstituteType(a),e]);let l=c.namesTypeAttributeKind.setDefaultInAttributes(a.getAttributes(),()=>c.TypeNames.make(new Set([i]),new Set,!0));o=r.getUnionType(l,s)}return r.makeClassProperty(o,e.isOptional)});return e.isFixed?r.getUniqueClassType(e.getAttributes(),!0,a,i):r.getClassType(e.getAttributes(),a,i)}let s=(0,t.setFilter)(e.allTypesUnordered(),e=>e instanceof n.ClassType&&(0,t.mapSome)(e.getProperties(),e=>e.isOptional)),l=Array.from(s).map(e=>[e]);return s.size===0?e:e.rewrite(`optional to nullable`,r,!1,l,a,(e,n,r)=>((0,i.assert)(e.size===1),o((0,i.defined)((0,t.iterableFirst)(e)),n,r)))}e.optionalToNullable=O;function k(e,r,a){let o=[];for(let r of e.allTypesUnordered()){if(!(r instanceof n.IntersectionType))continue;let e=new Set([r]),a=r;for(;a.members.size===1;){let s=(0,i.defined)((0,t.iterableFirst)(a.members));if(!(s instanceof n.IntersectionType)){o.push([r,s]);break}if(e.has(s))return(0,i.panic)(`There's a cycle of intersection types`);e.add(s),a=s}}return e.remap(`remove indirection intersections`,r,!1,new Map(o),a)}e.removeIndirectionIntersections=k})),ya=i(((e,t)=>{(function(n){var r=typeof e==`object`&&e&&!e.nodeType&&e,i=typeof t==`object`&&t&&!t.nodeType&&t,a=typeof global==`object`&&global;(a.global===a||a.window===a||a.self===a)&&(n=a);var o,s=2147483647,c=36,l=1,u=26,d=38,f=700,p=72,m=128,h=`-`,g=/^xn--/,_=/[^\x20-\x7E]/,v=/[\x2E\u3002\uFF0E\uFF61]/g,y={overflow:`Overflow: input needs wider integers to process`,"not-basic":`Illegal input >= 0x80 (not a basic code point)`,"invalid-input":`Invalid input`},b=c-l,x=Math.floor,S=String.fromCharCode,C;function w(e){throw RangeError(y[e])}function T(e,t){for(var n=e.length,r=[];n--;)r[n]=t(e[n]);return r}function E(e,t){var n=e.split(`@`),r=``;n.length>1&&(r=n[0]+`@`,e=n[1]),e=e.replace(v,`.`);var i=T(e.split(`.`),t).join(`.`);return r+i}function D(e){for(var t=[],n=0,r=e.length,i,a;n<r;)i=e.charCodeAt(n++),i>=55296&&i<=56319&&n<r?(a=e.charCodeAt(n++),(a&64512)==56320?t.push(((i&1023)<<10)+(a&1023)+65536):(t.push(i),n--)):t.push(i);return t}function O(e){return T(e,function(e){var t=``;return e>65535&&(e-=65536,t+=S(e>>>10&1023|55296),e=56320|e&1023),t+=S(e),t}).join(``)}function k(e){return e-48<10?e-22:e-65<26?e-65:e-97<26?e-97:c}function A(e,t){return e+22+75*(e<26)-((t!=0)<<5)}function j(e,t,n){var r=0;for(e=n?x(e/f):e>>1,e+=x(e/t);e>b*u>>1;r+=c)e=x(e/b);return x(r+(b+1)*e/(e+d))}function M(e){var t=[],n=e.length,r,i=0,a=m,o=p,d=e.lastIndexOf(h),f,g,_,v,y,b,S,C;for(d<0&&(d=0),f=0;f<d;++f)e.charCodeAt(f)>=128&&w(`not-basic`),t.push(e.charCodeAt(f));for(g=d>0?d+1:0;g<n;){for(_=i,v=1,y=c;g>=n&&w(`invalid-input`),b=k(e.charCodeAt(g++)),(b>=c||b>x((s-i)/v))&&w(`overflow`),i+=b*v,S=y<=o?l:y>=o+u?u:y-o,!(b<S);y+=c)C=c-S,v>x(s/C)&&w(`overflow`),v*=C;r=t.length+1,o=j(i-_,r,_==0),x(i/r)>s-a&&w(`overflow`),a+=x(i/r),i%=r,t.splice(i++,0,a)}return O(t)}function N(e){var t,n,r,i,a,o,d,f,g,_,v,y=[],b,C,T,E;for(e=D(e),b=e.length,t=m,n=0,a=p,o=0;o<b;++o)v=e[o],v<128&&y.push(S(v));for(r=i=y.length,i&&y.push(h);r<b;){for(d=s,o=0;o<b;++o)v=e[o],v>=t&&v<d&&(d=v);for(C=r+1,d-t>x((s-n)/C)&&w(`overflow`),n+=(d-t)*C,t=d,o=0;o<b;++o)if(v=e[o],v<t&&++n>s&&w(`overflow`),v==t){for(f=n,g=c;_=g<=a?l:g>=a+u?u:g-a,!(f<_);g+=c)E=f-_,T=c-_,y.push(S(A(_+E%T,0))),f=x(E/T);y.push(S(A(f,0))),a=j(n,C,r==i),n=0,++r}++n,++t}return y.join(``)}function P(e){return E(e,function(e){return g.test(e)?M(e.slice(4).toLowerCase()):e})}function ee(e){return E(e,function(e){return _.test(e)?`xn--`+N(e):e})}if(o={version:`1.3.2`,ucs2:{decode:D,encode:O},decode:M,encode:N,toASCII:ee,toUnicode:P},typeof define==`function`&&typeof define.amd==`object`&&define.amd)define(`punycode`,function(){return o});else if(r&&i)if(t.exports==r)i.exports=o;else for(C in o)o.hasOwnProperty(C)&&(r[C]=o[C]);else n.punycode=o})(e)})),ba=i(((e,t)=>{(function(e,n){typeof t==`object`&&t.exports?t.exports=n():typeof define==`function`&&define.amd?define(n):e.IPv6=n(e)})(e,function(e){var t=e&&e.IPv6;function n(e){var t=e.toLowerCase().split(`:`),n=t.length,r=8;t[0]===``&&t[1]===``&&t[2]===``?(t.shift(),t.shift()):t[0]===``&&t[1]===``?t.shift():t[n-1]===``&&t[n-2]===``&&t.pop(),n=t.length,t[n-1].indexOf(`.`)!==-1&&(r=7);var i;for(i=0;i<n&&t[i]!==``;i++);if(i<r)for(t.splice(i,1,`0000`);t.length<r;)t.splice(i,0,`0000`);for(var a,o=0;o<r;o++){a=t[o].split(``);for(var s=0;s<3&&a[0]===`0`&&a.length>1;s++)a.splice(0,1);t[o]=a.join(``)}var c=-1,l=0,u=0,d=-1,f=!1;for(o=0;o<r;o++)f?t[o]===`0`?u+=1:(f=!1,u>l&&(c=d,l=u)):t[o]===`0`&&(f=!0,d=o,u=1);u>l&&(c=d,l=u),l>1&&t.splice(c,l,``),n=t.length;var p=``;for(t[0]===``&&(p=`:`),o=0;o<n&&(p+=t[o],o!==n-1);o++)p+=`:`;return t[n-1]===``&&(p+=`:`),p}function r(){return e.IPv6===this&&(e.IPv6=t),this}return{best:n,noConflict:r}})})),xa=i(((e,t)=>{(function(e,n){typeof t==`object`&&t.exports?t.exports=n():typeof define==`function`&&define.amd?define(n):e.SecondLevelDomains=n(e)})(e,function(e){var t=e&&e.SecondLevelDomains,n={list:{ac:` com gov mil net org `,ae:` ac co gov mil name net org pro sch `,af:` com edu gov net org `,al:` com edu gov mil net org `,ao:` co ed gv it og pb `,ar:` com edu gob gov int mil net org tur `,at:` ac co gv or `,au:` asn com csiro edu gov id net org `,ba:` co com edu gov mil net org rs unbi unmo unsa untz unze `,bb:` biz co com edu gov info net org store tv `,bh:` biz cc com edu gov info net org `,bn:` com edu gov net org `,bo:` com edu gob gov int mil net org tv `,br:` adm adv agr am arq art ato b bio blog bmd cim cng cnt com coop ecn edu eng esp etc eti far flog fm fnd fot fst g12 ggf gov imb ind inf jor jus lel mat med mil mus net nom not ntr odo org ppg pro psc psi qsl rec slg srv tmp trd tur tv vet vlog wiki zlg `,bs:` com edu gov net org `,bz:` du et om ov rg `,ca:` ab bc mb nb nf nl ns nt nu on pe qc sk yk `,ck:` biz co edu gen gov info net org `,cn:` ac ah bj com cq edu fj gd gov gs gx gz ha hb he hi hl hn jl js jx ln mil net nm nx org qh sc sd sh sn sx tj tw xj xz yn zj `,co:` com edu gov mil net nom org `,cr:` ac c co ed fi go or sa `,cy:` ac biz com ekloges gov ltd name net org parliament press pro tm `,do:` art com edu gob gov mil net org sld web `,dz:` art asso com edu gov net org pol `,ec:` com edu fin gov info med mil net org pro `,eg:` com edu eun gov mil name net org sci `,er:` com edu gov ind mil net org rochest w `,es:` com edu gob nom org `,et:` biz com edu gov info name net org `,fj:` ac biz com info mil name net org pro `,fk:` ac co gov net nom org `,fr:` asso com f gouv nom prd presse tm `,gg:` co net org `,gh:` com edu gov mil org `,gn:` ac com gov net org `,gr:` com edu gov mil net org `,gt:` com edu gob ind mil net org `,gu:` com edu gov net org `,hk:` com edu gov idv net org `,hu:` 2000 agrar bolt casino city co erotica erotika film forum games hotel info ingatlan jogasz konyvelo lakas media news org priv reklam sex shop sport suli szex tm tozsde utazas video `,id:` ac co go mil net or sch web `,il:` ac co gov idf k12 muni net org `,in:` ac co edu ernet firm gen gov i ind mil net nic org res `,iq:` com edu gov i mil net org `,ir:` ac co dnssec gov i id net org sch `,it:` edu gov `,je:` co net org `,jo:` com edu gov mil name net org sch `,jp:` ac ad co ed go gr lg ne or `,ke:` ac co go info me mobi ne or sc `,kh:` com edu gov mil net org per `,ki:` biz com de edu gov info mob net org tel `,km:` asso com coop edu gouv k medecin mil nom notaires pharmaciens presse tm veterinaire `,kn:` edu gov net org `,kr:` ac busan chungbuk chungnam co daegu daejeon es gangwon go gwangju gyeongbuk gyeonggi gyeongnam hs incheon jeju jeonbuk jeonnam k kg mil ms ne or pe re sc seoul ulsan `,kw:` com edu gov net org `,ky:` com edu gov net org `,kz:` com edu gov mil net org `,lb:` com edu gov net org `,lk:` assn com edu gov grp hotel int ltd net ngo org sch soc web `,lr:` com edu gov net org `,lv:` asn com conf edu gov id mil net org `,ly:` com edu gov id med net org plc sch `,ma:` ac co gov m net org press `,mc:` asso tm `,me:` ac co edu gov its net org priv `,mg:` com edu gov mil nom org prd tm `,mk:` com edu gov inf name net org pro `,ml:` com edu gov net org presse `,mn:` edu gov org `,mo:` com edu gov net org `,mt:` com edu gov net org `,mv:` aero biz com coop edu gov info int mil museum name net org pro `,mw:` ac co com coop edu gov int museum net org `,mx:` com edu gob net org `,my:` com edu gov mil name net org sch `,nf:` arts com firm info net other per rec store web `,ng:` biz com edu gov mil mobi name net org sch `,ni:` ac co com edu gob mil net nom org `,np:` com edu gov mil net org `,nr:` biz com edu gov info net org `,om:` ac biz co com edu gov med mil museum net org pro sch `,pe:` com edu gob mil net nom org sld `,ph:` com edu gov i mil net ngo org `,pk:` biz com edu fam gob gok gon gop gos gov net org web `,pl:` art bialystok biz com edu gda gdansk gorzow gov info katowice krakow lodz lublin mil net ngo olsztyn org poznan pwr radom slupsk szczecin torun warszawa waw wroc wroclaw zgora `,pr:` ac biz com edu est gov info isla name net org pro prof `,ps:` com edu gov net org plo sec `,pw:` belau co ed go ne or `,ro:` arts com firm info nom nt org rec store tm www `,rs:` ac co edu gov in org `,sb:` com edu gov net org `,sc:` com edu gov net org `,sh:` co com edu gov net nom org `,sl:` com edu gov net org `,st:` co com consulado edu embaixada gov mil net org principe saotome store `,sv:` com edu gob org red `,sz:` ac co org `,tr:` av bbs bel biz com dr edu gen gov info k12 name net org pol tel tsk tv web `,tt:` aero biz cat co com coop edu gov info int jobs mil mobi museum name net org pro tel travel `,tw:` club com ebiz edu game gov idv mil net org `,mu:` ac co com gov net or org `,mz:` ac co edu gov org `,na:` co com `,nz:` ac co cri geek gen govt health iwi maori mil net org parliament school `,pa:` abo ac com edu gob ing med net nom org sld `,pt:` com edu gov int net nome org publ `,py:` com edu gov mil net org `,qa:` com edu gov mil net org `,re:` asso com nom `,ru:` ac adygeya altai amur arkhangelsk astrakhan bashkiria belgorod bir bryansk buryatia cbg chel chelyabinsk chita chukotka chuvashia com dagestan e-burg edu gov grozny int irkutsk ivanovo izhevsk jar joshkar-ola kalmykia kaluga kamchatka karelia kazan kchr kemerovo khabarovsk khakassia khv kirov koenig komi kostroma kranoyarsk kuban kurgan kursk lipetsk magadan mari mari-el marine mil mordovia mosreg msk murmansk nalchik net nnov nov novosibirsk nsk omsk orenburg org oryol penza perm pp pskov ptz rnd ryazan sakhalin samara saratov simbirsk smolensk spb stavropol stv surgut tambov tatarstan tom tomsk tsaritsyn tsk tula tuva tver tyumen udm udmurtia ulan-ude vladikavkaz vladimir vladivostok volgograd vologda voronezh vrn vyatka yakutia yamal yekaterinburg yuzhno-sakhalinsk `,rw:` ac co com edu gouv gov int mil net `,sa:` com edu gov med net org pub sch `,sd:` com edu gov info med net org tv `,se:` a ac b bd c d e f g h i k l m n o org p parti pp press r s t tm u w x y z `,sg:` com edu gov idn net org per `,sn:` art com edu gouv org perso univ `,sy:` com edu gov mil net news org `,th:` ac co go in mi net or `,tj:` ac biz co com edu go gov info int mil name net nic org test web `,tn:` agrinet com defense edunet ens fin gov ind info intl mincom nat net org perso rnrt rns rnu tourism `,tz:` ac co go ne or `,ua:` biz cherkassy chernigov chernovtsy ck cn co com crimea cv dn dnepropetrovsk donetsk dp edu gov if in ivano-frankivsk kh kharkov kherson khmelnitskiy kiev kirovograd km kr ks kv lg lugansk lutsk lviv me mk net nikolaev od odessa org pl poltava pp rovno rv sebastopol sumy te ternopil uzhgorod vinnica vn zaporizhzhe zhitomir zp zt `,ug:` ac co go ne or org sc `,uk:` ac bl british-library co cym gov govt icnet jet lea ltd me mil mod national-library-scotland nel net nhs nic nls org orgn parliament plc police sch scot soc `,us:` dni fed isa kids nsn `,uy:` com edu gub mil net org `,ve:` co com edu gob info mil net org web `,vi:` co com k12 net org `,vn:` ac biz com edu gov health info int name net org pro `,ye:` co com gov ltd me net org plc `,yu:` ac co edu gov org `,za:` ac agric alt bourse city co cybernet db edu gov grondar iaccess imt inca landesign law mil net ngo nis nom olivetti org pix school tm web `,zm:` ac co com edu gov net org sch `,com:`ar br cn de eu gb gr hu jpn kr no qc ru sa se uk us uy za `,net:`gb jp se uk `,org:`ae`,de:`com `},has:function(e){var t=e.lastIndexOf(`.`);if(t<=0||t>=e.length-1)return!1;var r=e.lastIndexOf(`.`,t-1);if(r<=0||r>=t-1)return!1;var i=n.list[e.slice(t+1)];return i?i.indexOf(` `+e.slice(r+1,t)+` `)>=0:!1},is:function(e){var t=e.lastIndexOf(`.`);if(t<=0||t>=e.length-1||e.lastIndexOf(`.`,t-1)>=0)return!1;var r=n.list[e.slice(t+1)];return r?r.indexOf(` `+e.slice(0,t)+` `)>=0:!1},get:function(e){var t=e.lastIndexOf(`.`);if(t<=0||t>=e.length-1)return null;var r=e.lastIndexOf(`.`,t-1);if(r<=0||r>=t-1)return null;var i=n.list[e.slice(t+1)];return!i||i.indexOf(` `+e.slice(r+1,t)+` `)<0?null:e.slice(r+1)},noConflict:function(){return e.SecondLevelDomains===this&&(e.SecondLevelDomains=t),this}};return n})})),Sa=i(((e,t)=>{(function(e,n){typeof t==`object`&&t.exports?t.exports=n(ya(),ba(),xa()):typeof define==`function`&&define.amd?define([`./punycode`,`./IPv6`,`./SecondLevelDomains`],n):e.URI=n(e.punycode,e.IPv6,e.SecondLevelDomains,e)})(e,function(e,t,n,r){var i=r&&r.URI;function a(e,t){var n=arguments.length>=1,r=arguments.length>=2;if(!(this instanceof a))return n?r?new a(e,t):new a(e):new a;if(e===void 0){if(n)throw TypeError(`undefined is not a valid argument for URI`);e=typeof location<`u`?location.href+``:``}if(e===null&&n)throw TypeError(`null is not a valid argument for URI`);return this.href(e),t===void 0?this:this.absoluteTo(t)}function o(e){return/^[0-9]+$/.test(e)}a.version=`1.19.11`;var s=a.prototype,c=Object.prototype.hasOwnProperty;function l(e){return e.replace(/([.*+?^=!:${}()|[\]\/\\])/g,`\\$1`)}function u(e){return e===void 0?`Undefined`:String(Object.prototype.toString.call(e)).slice(8,-1)}function d(e){return u(e)===`Array`}function f(e,t){var n={},r,i;if(u(t)===`RegExp`)n=null;else if(d(t))for(r=0,i=t.length;r<i;r++)n[t[r]]=!0;else n[t]=!0;for(r=0,i=e.length;r<i;r++)(n&&n[e[r]]!==void 0||!n&&t.test(e[r]))&&(e.splice(r,1),i--,r--);return e}function p(e,t){var n,r;if(d(t)){for(n=0,r=t.length;n<r;n++)if(!p(e,t[n]))return!1;return!0}var i=u(t);for(n=0,r=e.length;n<r;n++)if(i===`RegExp`){if(typeof e[n]==`string`&&e[n].match(t))return!0}else if(e[n]===t)return!0;return!1}function m(e,t){if(!d(e)||!d(t)||e.length!==t.length)return!1;e.sort(),t.sort();for(var n=0,r=e.length;n<r;n++)if(e[n]!==t[n])return!1;return!0}function h(e){return e.replace(/^\/+|\/+$/g,``)}a._parts=function(){return{protocol:null,username:null,password:null,hostname:null,urn:null,port:null,path:null,query:null,fragment:null,preventInvalidHostname:a.preventInvalidHostname,duplicateQueryParameters:a.duplicateQueryParameters,escapeQuerySpace:a.escapeQuerySpace}},a.preventInvalidHostname=!1,a.duplicateQueryParameters=!1,a.escapeQuerySpace=!0,a.protocol_expression=/^[a-z][a-z0-9.+-]*$/i,a.idn_expression=/[^a-z0-9\._-]/i,a.punycode_expression=/(xn--)/i,a.ip4_expression=/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/,a.ip6_expression=/^\s*((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(%.+)?\s*$/,a.find_uri_expression=/\b((?:[a-z][\w-]+:(?:\/{1,3}|[a-z0-9%])|www\d{0,3}[.]|[a-z0-9.\-]+[.][a-z]{2,4}\/)(?:[^\s()<>]+|\(([^\s()<>]+|(\([^\s()<>]+\)))*\))+(?:\(([^\s()<>]+|(\([^\s()<>]+\)))*\)|[^\s`!()\[\]{};:'".,<>?«»“”‘’]))/gi,a.findUri={start:/\b(?:([a-z][a-z0-9.+-]*:\/\/)|www\.)/gi,end:/[\s\r\n]|$/,trim:/[`!()\[\]{};:'".,<>?«»“”„‘’]+$/,parens:/(\([^\)]*\)|\[[^\]]*\]|\{[^}]*\}|<[^>]*>)/g},a.leading_whitespace_expression=/^[\x00-\x20\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]+/,a.ascii_tab_whitespace=/[\u0009\u000A\u000D]+/g,a.defaultPorts={http:`80`,https:`443`,ftp:`21`,gopher:`70`,ws:`80`,wss:`443`},a.hostProtocols=[`http`,`https`],a.invalid_hostname_characters=/[^a-zA-Z0-9\.\-:_]/,a.domAttributes={a:`href`,blockquote:`cite`,link:`href`,base:`href`,script:`src`,form:`action`,img:`src`,area:`href`,iframe:`src`,embed:`src`,source:`src`,track:`src`,input:`src`,audio:`src`,video:`src`},a.getDomAttribute=function(e){if(!(!e||!e.nodeName)){var t=e.nodeName.toLowerCase();if(!(t===`input`&&e.type!==`image`))return a.domAttributes[t]}};function g(e){return escape(e)}function _(e){return encodeURIComponent(e).replace(/[!'()*]/g,g).replace(/\*/g,`%2A`)}a.encode=_,a.decode=decodeURIComponent,a.iso8859=function(){a.encode=escape,a.decode=unescape},a.unicode=function(){a.encode=_,a.decode=decodeURIComponent},a.characters={pathname:{encode:{expression:/%(24|26|2B|2C|3B|3D|3A|40)/gi,map:{"%24":`$`,"%26":`&`,"%2B":`+`,"%2C":`,`,"%3B":`;`,"%3D":`=`,"%3A":`:`,"%40":`@`}},decode:{expression:/[\/\?#]/g,map:{"/":`%2F`,"?":`%3F`,"#":`%23`}}},reserved:{encode:{expression:/%(21|23|24|26|27|28|29|2A|2B|2C|2F|3A|3B|3D|3F|40|5B|5D)/gi,map:{"%3A":`:`,"%2F":`/`,"%3F":`?`,"%23":`#`,"%5B":`[`,"%5D":`]`,"%40":`@`,"%21":`!`,"%24":`$`,"%26":`&`,"%27":`'`,"%28":`(`,"%29":`)`,"%2A":`*`,"%2B":`+`,"%2C":`,`,"%3B":`;`,"%3D":`=`}}},urnpath:{encode:{expression:/%(21|24|27|28|29|2A|2B|2C|3B|3D|40)/gi,map:{"%21":`!`,"%24":`$`,"%27":`'`,"%28":`(`,"%29":`)`,"%2A":`*`,"%2B":`+`,"%2C":`,`,"%3B":`;`,"%3D":`=`,"%40":`@`}},decode:{expression:/[\/\?#:]/g,map:{"/":`%2F`,"?":`%3F`,"#":`%23`,":":`%3A`}}}},a.encodeQuery=function(e,t){var n=a.encode(e+``);return t===void 0&&(t=a.escapeQuerySpace),t?n.replace(/%20/g,`+`):n},a.decodeQuery=function(e,t){e+=``,t===void 0&&(t=a.escapeQuerySpace);try{return a.decode(t?e.replace(/\+/g,`%20`):e)}catch{return e}};var v={encode:`encode`,decode:`decode`},y,b=function(e,t){return function(n){try{return a[t](n+``).replace(a.characters[e][t].expression,function(n){return a.characters[e][t].map[n]})}catch{return n}}};for(y in v)a[y+`PathSegment`]=b(`pathname`,v[y]),a[y+`UrnPathSegment`]=b(`urnpath`,v[y]);var x=function(e,t,n){return function(r){for(var i=n?function(e){return a[t](a[n](e))}:a[t],o=(r+``).split(e),s=0,c=o.length;s<c;s++)o[s]=i(o[s]);return o.join(e)}};a.decodePath=x(`/`,`decodePathSegment`),a.decodeUrnPath=x(`:`,`decodeUrnPathSegment`),a.recodePath=x(`/`,`encodePathSegment`,`decode`),a.recodeUrnPath=x(`:`,`encodeUrnPathSegment`,`decode`),a.encodeReserved=b(`reserved`,`encode`),a.parse=function(e,t){var n;return t||={preventInvalidHostname:a.preventInvalidHostname},e=e.replace(a.leading_whitespace_expression,``),e=e.replace(a.ascii_tab_whitespace,``),n=e.indexOf(`#`),n>-1&&(t.fragment=e.substring(n+1)||null,e=e.substring(0,n)),n=e.indexOf(`?`),n>-1&&(t.query=e.substring(n+1)||null,e=e.substring(0,n)),e=e.replace(/^(https?|ftp|wss?)?:+[/\\]*/i,`$1://`),e=e.replace(/^[/\\]{2,}/i,`//`),e.substring(0,2)===`//`?(t.protocol=null,e=e.substring(2),e=a.parseAuthority(e,t)):(n=e.indexOf(`:`),n>-1&&(t.protocol=e.substring(0,n)||null,t.protocol&&!t.protocol.match(a.protocol_expression)?t.protocol=void 0:e.substring(n+1,n+3).replace(/\\/g,`/`)===`//`?(e=e.substring(n+3),e=a.parseAuthority(e,t)):(e=e.substring(n+1),t.urn=!0))),t.path=e,t},a.parseHost=function(e,t){e||=``,e=e.replace(/\\/g,`/`);var n=e.indexOf(`/`),r,i;if(n===-1&&(n=e.length),e.charAt(0)===`[`)r=e.indexOf(`]`),t.hostname=e.substring(1,r)||null,t.port=e.substring(r+2,n)||null,t.port===`/`&&(t.port=null);else{var o=e.indexOf(`:`),s=e.indexOf(`/`),c=e.indexOf(`:`,o+1);c!==-1&&(s===-1||c<s)?(t.hostname=e.substring(0,n)||null,t.port=null):(i=e.substring(0,n).split(`:`),t.hostname=i[0]||null,t.port=i[1]||null)}return t.hostname&&e.substring(n).charAt(0)!==`/`&&(n++,e=`/`+e),t.preventInvalidHostname&&a.ensureValidHostname(t.hostname,t.protocol),t.port&&a.ensureValidPort(t.port),e.substring(n)||`/`},a.parseAuthority=function(e,t){return e=a.parseUserinfo(e,t),a.parseHost(e,t)},a.parseUserinfo=function(e,t){var n=e;e.indexOf(`\\`)!==-1&&(e=e.replace(/\\/g,`/`));var r=e.indexOf(`/`),i=e.lastIndexOf(`@`,r>-1?r:e.length-1),o;return i>-1&&(r===-1||i<r)?(o=e.substring(0,i).split(`:`),t.username=o[0]?a.decode(o[0]):null,o.shift(),t.password=o[0]?a.decode(o.join(`:`)):null,e=n.substring(i+1)):(t.username=null,t.password=null),e},a.parseQuery=function(e,t){if(!e||(e=e.replace(/&+/g,`&`).replace(/^\?*&*|&+$/g,``),!e))return{};for(var n={},r=e.split(`&`),i=r.length,o,s,l,u=0;u<i;u++)o=r[u].split(`=`),s=a.decodeQuery(o.shift(),t),l=o.length?a.decodeQuery(o.join(`=`),t):null,s!==`__proto__`&&(c.call(n,s)?((typeof n[s]==`string`||n[s]===null)&&(n[s]=[n[s]]),n[s].push(l)):n[s]=l);return n},a.build=function(e){var t=``,n=!1;return e.protocol&&(t+=e.protocol+`:`),!e.urn&&(t||e.hostname)&&(t+=`//`,n=!0),t+=a.buildAuthority(e)||``,typeof e.path==`string`&&(e.path.charAt(0)!==`/`&&n&&(t+=`/`),t+=e.path),typeof e.query==`string`&&e.query&&(t+=`?`+e.query),typeof e.fragment==`string`&&e.fragment&&(t+=`#`+e.fragment),t},a.buildHost=function(e){var t=``;if(e.hostname)a.ip6_expression.test(e.hostname)?t+=`[`+e.hostname+`]`:t+=e.hostname;else return``;return e.port&&(t+=`:`+e.port),t},a.buildAuthority=function(e){return a.buildUserinfo(e)+a.buildHost(e)},a.buildUserinfo=function(e){var t=``;return e.username&&(t+=a.encode(e.username)),e.password&&(t+=`:`+a.encode(e.password)),t&&(t+=`@`),t},a.buildQuery=function(e,t,n){var r=``,i,o,s,l;for(o in e)if(o===`__proto__`)continue;else if(c.call(e,o))if(d(e[o]))for(i={},s=0,l=e[o].length;s<l;s++)e[o][s]!==void 0&&i[e[o][s]+``]===void 0&&(r+=`&`+a.buildQueryParameter(o,e[o][s],n),t!==!0&&(i[e[o][s]+``]=!0));else e[o]!==void 0&&(r+=`&`+a.buildQueryParameter(o,e[o],n));return r.substring(1)},a.buildQueryParameter=function(e,t,n){return a.encodeQuery(e,n)+(t===null?``:`=`+a.encodeQuery(t,n))},a.addQuery=function(e,t,n){if(typeof t==`object`)for(var r in t)c.call(t,r)&&a.addQuery(e,r,t[r]);else if(typeof t==`string`){if(e[t]===void 0){e[t]=n;return}else typeof e[t]==`string`&&(e[t]=[e[t]]);d(n)||(n=[n]),e[t]=(e[t]||[]).concat(n)}else throw TypeError(`URI.addQuery() accepts an object, string as the name parameter`)},a.setQuery=function(e,t,n){if(typeof t==`object`)for(var r in t)c.call(t,r)&&a.setQuery(e,r,t[r]);else if(typeof t==`string`)e[t]=n===void 0?null:n;else throw TypeError(`URI.setQuery() accepts an object, string as the name parameter`)},a.removeQuery=function(e,t,n){var r,i,o;if(d(t))for(r=0,i=t.length;r<i;r++)e[t[r]]=void 0;else if(u(t)===`RegExp`)for(o in e)t.test(o)&&(e[o]=void 0);else if(typeof t==`object`)for(o in t)c.call(t,o)&&a.removeQuery(e,o,t[o]);else if(typeof t==`string`)n===void 0?e[t]=void 0:u(n)===`RegExp`?!d(e[t])&&n.test(e[t])?e[t]=void 0:e[t]=f(e[t],n):e[t]===String(n)&&(!d(n)||n.length===1)?e[t]=void 0:d(e[t])&&(e[t]=f(e[t],n));else throw TypeError(`URI.removeQuery() accepts an object, string, RegExp as the first parameter`)},a.hasQuery=function(e,t,n,r){switch(u(t)){case`String`:break;case`RegExp`:for(var i in e)if(c.call(e,i)&&t.test(i)&&(n===void 0||a.hasQuery(e,i,n)))return!0;return!1;case`Object`:for(var o in t)if(c.call(t,o)&&!a.hasQuery(e,o,t[o]))return!1;return!0;default:throw TypeError(`URI.hasQuery() accepts a string, regular expression or object as the name parameter`)}switch(u(n)){case`Undefined`:return t in e;case`Boolean`:var s=!!(d(e[t])?e[t].length:e[t]);return n===s;case`Function`:return!!n(e[t],t,e);case`Array`:return d(e[t])?(r?p:m)(e[t],n):!1;case`RegExp`:return d(e[t])?r?p(e[t],n):!1:!!(e[t]&&e[t].match(n));case`Number`:n=String(n);case`String`:return d(e[t])?r?p(e[t],n):!1:e[t]===n;default:throw TypeError(`URI.hasQuery() accepts undefined, boolean, string, number, RegExp, Function as the value parameter`)}},a.joinPaths=function(){for(var e=[],t=[],n=0,r=0;r<arguments.length;r++){var i=new a(arguments[r]);e.push(i);for(var o=i.segment(),s=0;s<o.length;s++)typeof o[s]==`string`&&t.push(o[s]),o[s]&&n++}if(!t.length||!n)return new a(``);var c=new a(``).segment(t);return(e[0].path()===``||e[0].path().slice(0,1)===`/`)&&c.path(`/`+c.path()),c.normalize()},a.commonPath=function(e,t){var n=Math.min(e.length,t.length),r;for(r=0;r<n;r++)if(e.charAt(r)!==t.charAt(r)){r--;break}return r<1?e.charAt(0)===t.charAt(0)&&e.charAt(0)===`/`?`/`:``:((e.charAt(r)!==`/`||t.charAt(r)!==`/`)&&(r=e.substring(0,r).lastIndexOf(`/`)),e.substring(0,r+1))},a.withinString=function(e,t,n){n||={};var r=n.start||a.findUri.start,i=n.end||a.findUri.end,o=n.trim||a.findUri.trim,s=n.parens||a.findUri.parens,c=/[a-z0-9-]=["']?$/i;for(r.lastIndex=0;;){var l=r.exec(e);if(!l)break;var u=l.index;if(n.ignoreHtml){var d=e.slice(Math.max(u-3,0),u);if(d&&c.test(d))continue}for(var f=u+e.slice(u).search(i),p=e.slice(u,f),m=-1;;){var h=s.exec(p);if(!h)break;var g=h.index+h[0].length;m=Math.max(m,g)}if(p=m>-1?p.slice(0,m)+p.slice(m).replace(o,``):p.replace(o,``),!(p.length<=l[0].length)&&!(n.ignore&&n.ignore.test(p))){f=u+p.length;var _=t(p,u,f,e);if(_===void 0){r.lastIndex=f;continue}_=String(_),e=e.slice(0,u)+_+e.slice(f),r.lastIndex=u+_.length}}return r.lastIndex=0,e},a.ensureValidHostname=function(t,n){var r=!!t,i=!!n,o=!1;if(i&&(o=p(a.hostProtocols,n)),o&&!r)throw TypeError(`Hostname cannot be empty, if protocol is `+n);if(t&&t.match(a.invalid_hostname_characters)){if(!e)throw TypeError(`Hostname "`+t+`" contains characters other than [A-Z0-9.-:_] and Punycode.js is not available`);if(e.toASCII(t).match(a.invalid_hostname_characters))throw TypeError(`Hostname "`+t+`" contains characters other than [A-Z0-9.-:_]`)}},a.ensureValidPort=function(e){if(e){var t=Number(e);if(!(o(t)&&t>0&&t<65536))throw TypeError(`Port "`+e+`" is not a valid port`)}},a.noConflict=function(e){if(e){var t={URI:this.noConflict()};return r.URITemplate&&typeof r.URITemplate.noConflict==`function`&&(t.URITemplate=r.URITemplate.noConflict()),r.IPv6&&typeof r.IPv6.noConflict==`function`&&(t.IPv6=r.IPv6.noConflict()),r.SecondLevelDomains&&typeof r.SecondLevelDomains.noConflict==`function`&&(t.SecondLevelDomains=r.SecondLevelDomains.noConflict()),t}else r.URI===this&&(r.URI=i);return this},s.build=function(e){return e===!0?this._deferred_build=!0:(e===void 0||this._deferred_build)&&(this._string=a.build(this._parts),this._deferred_build=!1),this},s.clone=function(){return new a(this)},s.valueOf=s.toString=function(){return this.build(!1)._string};function S(e){return function(t,n){return t===void 0?this._parts[e]||``:(this._parts[e]=t||null,this.build(!n),this)}}function C(e,t){return function(n,r){return n===void 0?this._parts[e]||``:(n!==null&&(n+=``,n.charAt(0)===t&&(n=n.substring(1))),this._parts[e]=n,this.build(!r),this)}}s.protocol=S(`protocol`),s.username=S(`username`),s.password=S(`password`),s.hostname=S(`hostname`),s.port=S(`port`),s.query=C(`query`,`?`),s.fragment=C(`fragment`,`#`),s.search=function(e,t){var n=this.query(e,t);return typeof n==`string`&&n.length?`?`+n:n},s.hash=function(e,t){var n=this.fragment(e,t);return typeof n==`string`&&n.length?`#`+n:n},s.pathname=function(e,t){if(e===void 0||e===!0){var n=this._parts.path||(this._parts.hostname?`/`:``);return e?(this._parts.urn?a.decodeUrnPath:a.decodePath)(n):n}else return this._parts.urn?this._parts.path=e?a.recodeUrnPath(e):``:this._parts.path=e?a.recodePath(e):`/`,this.build(!t),this},s.path=s.pathname,s.href=function(e,t){var n;if(e===void 0)return this.toString();this._string=``,this._parts=a._parts();var r=e instanceof a,i=typeof e==`object`&&(e.hostname||e.path||e.pathname);if(e.nodeName){var o=a.getDomAttribute(e);e=e[o]||``,i=!1}if(!r&&i&&e.pathname!==void 0&&(e=e.toString()),typeof e==`string`||e instanceof String)this._parts=a.parse(String(e),this._parts);else if(r||i){var s=r?e._parts:e;for(n in s)n!==`query`&&c.call(this._parts,n)&&(this._parts[n]=s[n]);s.query&&this.query(s.query,!1)}else throw TypeError(`invalid input`);return this.build(!t),this},s.is=function(e){var t=!1,r=!1,i=!1,o=!1,s=!1,c=!1,l=!1,u=!this._parts.urn;switch(this._parts.hostname&&(u=!1,r=a.ip4_expression.test(this._parts.hostname),i=a.ip6_expression.test(this._parts.hostname),t=r||i,o=!t,s=o&&n&&n.has(this._parts.hostname),c=o&&a.idn_expression.test(this._parts.hostname),l=o&&a.punycode_expression.test(this._parts.hostname)),e.toLowerCase()){case`relative`:return u;case`absolute`:return!u;case`domain`:case`name`:return o;case`sld`:return s;case`ip`:return t;case`ip4`:case`ipv4`:case`inet4`:return r;case`ip6`:case`ipv6`:case`inet6`:return i;case`idn`:return c;case`url`:return!this._parts.urn;case`urn`:return!!this._parts.urn;case`punycode`:return l}return null};var w=s.protocol,T=s.port,E=s.hostname;s.protocol=function(e,t){if(e&&(e=e.replace(/:(\/\/)?$/,``),!e.match(a.protocol_expression)))throw TypeError(`Protocol "`+e+`" contains characters other than [A-Z0-9.+-] or doesn't start with [A-Z]`);return w.call(this,e,t)},s.scheme=s.protocol,s.port=function(e,t){return this._parts.urn?e===void 0?``:this:(e!==void 0&&(e===0&&(e=null),e&&(e+=``,e.charAt(0)===`:`&&(e=e.substring(1)),a.ensureValidPort(e))),T.call(this,e,t))},s.hostname=function(e,t){if(this._parts.urn)return e===void 0?``:this;if(e!==void 0){var n={preventInvalidHostname:this._parts.preventInvalidHostname};if(a.parseHost(e,n)!==`/`)throw TypeError(`Hostname "`+e+`" contains characters other than [A-Z0-9.-]`);e=n.hostname,this._parts.preventInvalidHostname&&a.ensureValidHostname(e,this._parts.protocol)}return E.call(this,e,t)},s.origin=function(e,t){if(this._parts.urn)return e===void 0?``:this;if(e===void 0){var n=this.protocol();return this.authority()?(n?n+`://`:``)+this.authority():``}else{var r=a(e);return this.protocol(r.protocol()).authority(r.authority()).build(!t),this}},s.host=function(e,t){if(this._parts.urn)return e===void 0?``:this;if(e===void 0)return this._parts.hostname?a.buildHost(this._parts):``;if(a.parseHost(e,this._parts)!==`/`)throw TypeError(`Hostname "`+e+`" contains characters other than [A-Z0-9.-]`);return this.build(!t),this},s.authority=function(e,t){if(this._parts.urn)return e===void 0?``:this;if(e===void 0)return this._parts.hostname?a.buildAuthority(this._parts):``;if(a.parseAuthority(e,this._parts)!==`/`)throw TypeError(`Hostname "`+e+`" contains characters other than [A-Z0-9.-]`);return this.build(!t),this},s.userinfo=function(e,t){if(this._parts.urn)return e===void 0?``:this;if(e===void 0){var n=a.buildUserinfo(this._parts);return n&&n.substring(0,n.length-1)}else return e[e.length-1]!==`@`&&(e+=`@`),a.parseUserinfo(e,this._parts),this.build(!t),this},s.resource=function(e,t){var n;return e===void 0?this.path()+this.search()+this.hash():(n=a.parse(e),this._parts.path=n.path,this._parts.query=n.query,this._parts.fragment=n.fragment,this.build(!t),this)},s.subdomain=function(e,t){if(this._parts.urn)return e===void 0?``:this;if(e===void 0){if(!this._parts.hostname||this.is(`IP`))return``;var n=this._parts.hostname.length-this.domain().length-1;return this._parts.hostname.substring(0,n)||``}else{var r=this._parts.hostname.length-this.domain().length,i=this._parts.hostname.substring(0,r),o=RegExp(`^`+l(i));if(e&&e.charAt(e.length-1)!==`.`&&(e+=`.`),e.indexOf(`:`)!==-1)throw TypeError(`Domains cannot contain colons`);return e&&a.ensureValidHostname(e,this._parts.protocol),this._parts.hostname=this._parts.hostname.replace(o,e),this.build(!t),this}},s.domain=function(e,t){if(this._parts.urn)return e===void 0?``:this;if(typeof e==`boolean`&&(t=e,e=void 0),e===void 0){if(!this._parts.hostname||this.is(`IP`))return``;var n=this._parts.hostname.match(/\./g);if(n&&n.length<2)return this._parts.hostname;var r=this._parts.hostname.length-this.tld(t).length-1;return r=this._parts.hostname.lastIndexOf(`.`,r-1)+1,this._parts.hostname.substring(r)||``}else{if(!e)throw TypeError(`cannot set domain empty`);if(e.indexOf(`:`)!==-1)throw TypeError(`Domains cannot contain colons`);if(a.ensureValidHostname(e,this._parts.protocol),!this._parts.hostname||this.is(`IP`))this._parts.hostname=e;else{var i=RegExp(l(this.domain())+`$`);this._parts.hostname=this._parts.hostname.replace(i,e)}return this.build(!t),this}},s.tld=function(e,t){if(this._parts.urn)return e===void 0?``:this;if(typeof e==`boolean`&&(t=e,e=void 0),e===void 0){if(!this._parts.hostname||this.is(`IP`))return``;var r=this._parts.hostname.lastIndexOf(`.`),i=this._parts.hostname.substring(r+1);return t!==!0&&n&&n.list[i.toLowerCase()]&&n.get(this._parts.hostname)||i}else{var a;if(!e)throw TypeError(`cannot set TLD empty`);if(e.match(/[^a-zA-Z0-9-]/))if(n&&n.is(e))a=RegExp(l(this.tld())+`$`),this._parts.hostname=this._parts.hostname.replace(a,e);else throw TypeError(`TLD "`+e+`" contains characters other than [A-Z0-9]`);else if(!this._parts.hostname||this.is(`IP`))throw ReferenceError(`cannot set TLD on non-domain host`);else a=RegExp(l(this.tld())+`$`),this._parts.hostname=this._parts.hostname.replace(a,e);return this.build(!t),this}},s.directory=function(e,t){if(this._parts.urn)return e===void 0?``:this;if(e===void 0||e===!0){if(!this._parts.path&&!this._parts.hostname)return``;if(this._parts.path===`/`)return`/`;var n=this._parts.path.length-this.filename().length-1,r=this._parts.path.substring(0,n)||(this._parts.hostname?`/`:``);return e?a.decodePath(r):r}else{var i=this._parts.path.length-this.filename().length,o=this._parts.path.substring(0,i),s=RegExp(`^`+l(o));return this.is(`relative`)||(e||=`/`,e.charAt(0)!==`/`&&(e=`/`+e)),e&&e.charAt(e.length-1)!==`/`&&(e+=`/`),e=a.recodePath(e),this._parts.path=this._parts.path.replace(s,e),this.build(!t),this}},s.filename=function(e,t){if(this._parts.urn)return e===void 0?``:this;if(typeof e!=`string`){if(!this._parts.path||this._parts.path===`/`)return``;var n=this._parts.path.lastIndexOf(`/`),r=this._parts.path.substring(n+1);return e?a.decodePathSegment(r):r}else{var i=!1;e.charAt(0)===`/`&&(e=e.substring(1)),e.match(/\.?\//)&&(i=!0);var o=RegExp(l(this.filename())+`$`);return e=a.recodePath(e),this._parts.path=this._parts.path.replace(o,e),i?this.normalizePath(t):this.build(!t),this}},s.suffix=function(e,t){if(this._parts.urn)return e===void 0?``:this;if(e===void 0||e===!0){if(!this._parts.path||this._parts.path===`/`)return``;var n=this.filename(),r=n.lastIndexOf(`.`),i,o;return r===-1?``:(i=n.substring(r+1),o=/^[a-z0-9%]+$/i.test(i)?i:``,e?a.decodePathSegment(o):o)}else{e.charAt(0)===`.`&&(e=e.substring(1));var s=this.suffix(),c;if(s)c=e?RegExp(l(s)+`$`):RegExp(l(`.`+s)+`$`);else{if(!e)return this;this._parts.path+=`.`+a.recodePath(e)}return c&&(e=a.recodePath(e),this._parts.path=this._parts.path.replace(c,e)),this.build(!t),this}},s.segment=function(e,t,n){var r=this._parts.urn?`:`:`/`,i=this.path(),a=i.substring(0,1)===`/`,o=i.split(r);if(e!==void 0&&typeof e!=`number`&&(n=t,t=e,e=void 0),e!==void 0&&typeof e!=`number`)throw Error(`Bad segment "`+e+`", must be 0-based integer`);if(a&&o.shift(),e<0&&(e=Math.max(o.length+e,0)),t===void 0)return e===void 0?o:o[e];if(e===null||o[e]===void 0)if(d(t)){o=[];for(var s=0,c=t.length;s<c;s++)!t[s].length&&(!o.length||!o[o.length-1].length)||(o.length&&!o[o.length-1].length&&o.pop(),o.push(h(t[s])))}else (t||typeof t==`string`)&&(t=h(t),o[o.length-1]===``?o[o.length-1]=t:o.push(t));else t?o[e]=h(t):o.splice(e,1);return a&&o.unshift(``),this.path(o.join(r),n)},s.segmentCoded=function(e,t,n){var r,i,o;if(typeof e!=`number`&&(n=t,t=e,e=void 0),t===void 0){if(r=this.segment(e,t,n),!d(r))r=r===void 0?void 0:a.decode(r);else for(i=0,o=r.length;i<o;i++)r[i]=a.decode(r[i]);return r}if(!d(t))t=typeof t==`string`||t instanceof String?a.encode(t):t;else for(i=0,o=t.length;i<o;i++)t[i]=a.encode(t[i]);return this.segment(e,t,n)};var D=s.query;return s.query=function(e,t){if(e===!0)return a.parseQuery(this._parts.query,this._parts.escapeQuerySpace);if(typeof e==`function`){var n=a.parseQuery(this._parts.query,this._parts.escapeQuerySpace),r=e.call(this,n);return this._parts.query=a.buildQuery(r||n,this._parts.duplicateQueryParameters,this._parts.escapeQuerySpace),this.build(!t),this}else if(e!==void 0&&typeof e!=`string`)return this._parts.query=a.buildQuery(e,this._parts.duplicateQueryParameters,this._parts.escapeQuerySpace),this.build(!t),this;else return D.call(this,e,t)},s.setQuery=function(e,t,n){var r=a.parseQuery(this._parts.query,this._parts.escapeQuerySpace);if(typeof e==`string`||e instanceof String)r[e]=t===void 0?null:t;else if(typeof e==`object`)for(var i in e)c.call(e,i)&&(r[i]=e[i]);else throw TypeError(`URI.addQuery() accepts an object, string as the name parameter`);return this._parts.query=a.buildQuery(r,this._parts.duplicateQueryParameters,this._parts.escapeQuerySpace),typeof e!=`string`&&(n=t),this.build(!n),this},s.addQuery=function(e,t,n){var r=a.parseQuery(this._parts.query,this._parts.escapeQuerySpace);return a.addQuery(r,e,t===void 0?null:t),this._parts.query=a.buildQuery(r,this._parts.duplicateQueryParameters,this._parts.escapeQuerySpace),typeof e!=`string`&&(n=t),this.build(!n),this},s.removeQuery=function(e,t,n){var r=a.parseQuery(this._parts.query,this._parts.escapeQuerySpace);return a.removeQuery(r,e,t),this._parts.query=a.buildQuery(r,this._parts.duplicateQueryParameters,this._parts.escapeQuerySpace),typeof e!=`string`&&(n=t),this.build(!n),this},s.hasQuery=function(e,t,n){var r=a.parseQuery(this._parts.query,this._parts.escapeQuerySpace);return a.hasQuery(r,e,t,n)},s.setSearch=s.setQuery,s.addSearch=s.addQuery,s.removeSearch=s.removeQuery,s.hasSearch=s.hasQuery,s.normalize=function(){return this._parts.urn?this.normalizeProtocol(!1).normalizePath(!1).normalizeQuery(!1).normalizeFragment(!1).build():this.normalizeProtocol(!1).normalizeHostname(!1).normalizePort(!1).normalizePath(!1).normalizeQuery(!1).normalizeFragment(!1).build()},s.normalizeProtocol=function(e){return typeof this._parts.protocol==`string`&&(this._parts.protocol=this._parts.protocol.toLowerCase(),this.build(!e)),this},s.normalizeHostname=function(n){return this._parts.hostname&&(this.is(`IDN`)&&e?this._parts.hostname=e.toASCII(this._parts.hostname):this.is(`IPv6`)&&t&&(this._parts.hostname=t.best(this._parts.hostname)),this._parts.hostname=this._parts.hostname.toLowerCase(),this.build(!n)),this},s.normalizePort=function(e){return typeof this._parts.protocol==`string`&&this._parts.port===a.defaultPorts[this._parts.protocol]&&(this._parts.port=null,this.build(!e)),this},s.normalizePath=function(e){var t=this._parts.path;if(!t)return this;if(this._parts.urn)return this._parts.path=a.recodeUrnPath(this._parts.path),this.build(!e),this;if(this._parts.path===`/`)return this;t=a.recodePath(t);var n,r=``,i,o;for(t.charAt(0)!==`/`&&(n=!0,t=`/`+t),(t.slice(-3)===`/..`||t.slice(-2)===`/.`)&&(t+=`/`),t=t.replace(/(\/(\.\/)+)|(\/\.$)/g,`/`).replace(/\/{2,}/g,`/`),n&&(r=t.substring(1).match(/^(\.\.\/)+/)||``,r&&=r[0]);i=t.search(/\/\.\.(\/|$)/),i!==-1;){if(i===0){t=t.substring(3);continue}o=t.substring(0,i).lastIndexOf(`/`),o===-1&&(o=i),t=t.substring(0,o)+t.substring(i+3)}return n&&this.is(`relative`)&&(t=r+t.substring(1)),this._parts.path=t,this.build(!e),this},s.normalizePathname=s.normalizePath,s.normalizeQuery=function(e){return typeof this._parts.query==`string`&&(this._parts.query.length?this.query(a.parseQuery(this._parts.query,this._parts.escapeQuerySpace)):this._parts.query=null,this.build(!e)),this},s.normalizeFragment=function(e){return this._parts.fragment||(this._parts.fragment=null,this.build(!e)),this},s.normalizeSearch=s.normalizeQuery,s.normalizeHash=s.normalizeFragment,s.iso8859=function(){var e=a.encode,t=a.decode;a.encode=escape,a.decode=decodeURIComponent;try{this.normalize()}finally{a.encode=e,a.decode=t}return this},s.unicode=function(){var e=a.encode,t=a.decode;a.encode=_,a.decode=unescape;try{this.normalize()}finally{a.encode=e,a.decode=t}return this},s.readable=function(){var t=this.clone();t.username(``).password(``).normalize();var n=``;if(t._parts.protocol&&(n+=t._parts.protocol+`://`),t._parts.hostname&&(t.is(`punycode`)&&e?(n+=e.toUnicode(t._parts.hostname),t._parts.port&&(n+=`:`+t._parts.port)):n+=t.host()),t._parts.hostname&&t._parts.path&&t._parts.path.charAt(0)!==`/`&&(n+=`/`),n+=t.path(!0),t._parts.query){for(var r=``,i=0,o=t._parts.query.split(`&`),s=o.length;i<s;i++){var c=(o[i]||``).split(`=`);r+=`&`+a.decodeQuery(c[0],this._parts.escapeQuerySpace).replace(/&/g,`%26`),c[1]!==void 0&&(r+=`=`+a.decodeQuery(c[1],this._parts.escapeQuerySpace).replace(/&/g,`%26`))}n+=`?`+r.substring(1)}return n+=a.decodeQuery(t.hash(),!0),n},s.absoluteTo=function(e){var t=this.clone(),n=[`protocol`,`username`,`password`,`hostname`,`port`],r,i,o;if(this._parts.urn)throw Error(`URNs do not have any generally defined hierarchical components`);if(e instanceof a||(e=new a(e)),t._parts.protocol||(t._parts.protocol=e._parts.protocol,this._parts.hostname))return t;for(i=0;o=n[i];i++)t._parts[o]=e._parts[o];return t._parts.path?(t._parts.path.substring(-2)===`..`&&(t._parts.path+=`/`),t.path().charAt(0)!==`/`&&(r=e.directory(),r||=e.path().indexOf(`/`)===0?`/`:``,t._parts.path=(r?r+`/`:``)+t._parts.path,t.normalizePath())):(t._parts.path=e._parts.path,t._parts.query||(t._parts.query=e._parts.query)),t.build(),t},s.relativeTo=function(e){var t=this.clone().normalize(),n,r,i,o,s;if(t._parts.urn)throw Error(`URNs do not have any generally defined hierarchical components`);if(e=new a(e).normalize(),n=t._parts,r=e._parts,o=t.path(),s=e.path(),o.charAt(0)!==`/`)throw Error(`URI is already relative`);if(s.charAt(0)!==`/`)throw Error(`Cannot calculate a URI relative to another relative URI`);if(n.protocol===r.protocol&&(n.protocol=null),n.username!==r.username||n.password!==r.password||n.protocol!==null||n.username!==null||n.password!==null)return t.build();if(n.hostname===r.hostname&&n.port===r.port)n.hostname=null,n.port=null;else return t.build();if(o===s)return n.path=``,t.build();if(i=a.commonPath(o,s),!i)return t.build();var c=r.path.substring(i.length).replace(/[^\/]*$/,``).replace(/.*?\//g,`../`);return n.path=c+n.path.substring(i.length)||`./`,t.build()},s.equals=function(e){var t=this.clone(),n=new a(e),r={},i={},o={},s,l,u;if(t.normalize(),n.normalize(),t.toString()===n.toString())return!0;if(s=t.query(),l=n.query(),t.query(``),n.query(``),t.toString()!==n.toString()||s.length!==l.length)return!1;for(u in r=a.parseQuery(s,this._parts.escapeQuerySpace),i=a.parseQuery(l,this._parts.escapeQuerySpace),r)if(c.call(r,u)){if(!d(r[u])){if(r[u]!==i[u])return!1}else if(!m(r[u],i[u]))return!1;o[u]=!0}for(u in i)if(c.call(i,u)&&!o[u])return!1;return!0},s.preventInvalidHostname=function(e){return this._parts.preventInvalidHostname=!!e,this},s.duplicateQueryParameters=function(e){return this._parts.duplicateQueryParameters=!!e,this},s.escapeQuerySpace=function(e){return this._parts.escapeQuerySpace=!!e,this},a})})),Ca=i((e=>{var t=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,`__esModule`,{value:!0}),e.uriSchemaAttributesProducer=e.uriInferenceAttributesProducer=e.uriTypeAttributeKind=void 0;var n=t(Sa()),r=na(),i=a(),o=Q(),s=`qt-uri-protocols`,c=`qt-uri-extensions`;e.uriTypeAttributeKind=new class extends r.TypeAttributeKind{constructor(){super(`uriAttributes`)}get inIdentity(){return!0}combine(e){let t=e.map(e=>e[0]),n=e.map(e=>e[1]);return[(0,i.setUnionManyInto)(new Set,t),(0,i.setUnionManyInto)(new Set,n)]}makeInferred(e){}addToSchema(e,t,n){if(t.kind!==`string`&&t.kind!==`uri`)return;let[r,i]=n;r.size>0&&(e[s]=Array.from(r).sort()),i.size>0&&(e[c]=Array.from(i).sort())}};var l=/^.+(\.[^./\\]+)$/;function u(e){let t=e.match(l);if(t!==null)return t[1]}function d(t){try{let r=(0,n.default)(t),i=u(r.path()),a=i===void 0?[]:[i.toLowerCase()];return e.uriTypeAttributeKind.makeAttributes([new Set([r.protocol().toLowerCase()]),new Set(a)])}catch{return r.emptyTypeAttributes}}e.uriInferenceAttributesProducer=d;function f(t,n,r){if(typeof t!=`object`||!r.has(`string`))return;let i,a=t[s];i=a===void 0?new Set:new Set((0,o.checkArray)(a,o.checkString));let l,u=t[c];if(l=u===void 0?new Set:new Set((0,o.checkArray)(u,o.checkString)),!(i.size===0&&l.size===0))return{forString:e.uriTypeAttributeKind.makeAttributes([i,l])}}e.uriSchemaAttributesProducer=f})),wa=i((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.UnionType=e.IntersectionType=e.SetOperationType=e.intersectionTypeIdentity=e.unionTypeIdentity=e.setOperationTypeIdentity=e.setOperationCasesEqual=e.EnumType=e.enumTypeIdentity=e.MapType=e.ClassType=e.ObjectType=e.mapTypeIdentify=e.classTypeIdentity=e.ClassProperty=e.GenericClassProperty=e.ArrayType=e.arrayTypeIdentity=e.PrimitiveType=e.primitiveTypeIdentity=e.Type=e.TypeIdentity=e.isPrimitiveTypeKind=e.isNumberTypeKind=e.targetTypeKindForTransformedStringTypeKind=e.isPrimitiveStringTypeKind=e.transformedStringTypeKinds=e.transformedStringTypeTargetTypeKindsMap=void 0;var t=a(),n=Q(),r=fa(),i=C(),o=va(),s=Ca(),c={date:{jsonSchema:`date`,primitive:void 0},time:{jsonSchema:`time`,primitive:void 0},"date-time":{jsonSchema:`date-time`,primitive:void 0},uuid:{jsonSchema:`uuid`,primitive:void 0},uri:{jsonSchema:`uri`,primitive:void 0,attributesProducer:s.uriInferenceAttributesProducer},"integer-string":{jsonSchema:`integer`,primitive:`integer`},"bool-string":{jsonSchema:`boolean`,primitive:`bool`}};e.transformedStringTypeTargetTypeKindsMap=(0,t.mapFromObject)(c),e.transformedStringTypeKinds=new Set(Object.getOwnPropertyNames(c));function l(e){return e===`string`||(0,t.hasOwnProperty)(c,e)}e.isPrimitiveStringTypeKind=l;function u(t){let n=e.transformedStringTypeTargetTypeKindsMap.get(t);if(n!==void 0)return n.primitive}e.targetTypeKindForTransformedStringTypeKind=u;function d(e){return e===`integer`||e===`double`}e.isNumberTypeKind=d;function f(e){return l(e)||d(e)?!0:e===`none`||e===`any`||e===`null`||e===`bool`}e.isPrimitiveTypeKind=f;function p(e,t){return e.index===t.index||e.kind===`none`||t.kind===`none`}var m=class e{constructor(e,n){this._kind=e,this._components=n;let r=t.hashCodeInit;r=(0,t.addHashCode)(r,(0,t.hashCodeOf)(this._kind));for(let e of n)r=(0,t.addHashCode)(r,(0,t.hashCodeOf)(e));this._hashCode=r}equals(r){if(!(r instanceof e)||this._kind!==r._kind)return!1;let i=this._components.length;(0,n.assert)(i===r._components.length,`Components of a type kind's identity must have the same length`);for(let e=0;e<i;e++)if(!(0,t.areEqual)(this._components[e],r._components[e]))return!1;return!0}hashCode(){return this._hashCode}};e.TypeIdentity=m;var h=class e{constructor(e,t){this.typeRef=e,this.graph=t}get index(){return(0,o.typeRefIndex)(this.typeRef)}getChildren(){let e=this.getNonAttributeChildren();for(let[n,r]of this.getAttributes())n.children!==void 0&&(0,t.setUnionInto)(e,n.children(r));return e}getAttributes(){return(0,o.attributesForTypeRef)(this.typeRef,this.graph)}get hasNames(){return r.namesTypeAttributeKind.tryGetInAttributes(this.getAttributes())!==void 0}getNames(){return(0,n.defined)(r.namesTypeAttributeKind.tryGetInAttributes(this.getAttributes()))}getCombinedName(){return this.getNames().combinedName}get debugPrintKind(){return this.kind}equals(t){return t instanceof e?this.typeRef===t.typeRef:!1}hashCode(){return(0,t.hashCodeOf)(this.typeRef)}structurallyCompatible(e,t=!1){function r(e,n){return e===n?!0:t?e===`integer`?n===`double`:e===`double`?n===`integer`:!1:!1}if(p(this,e))return!0;if(!r(this.kind,e.kind))return!1;let i=[[this,e]],a=[],o,s=(e,t)=>p(e,t)?!0:r(e.kind,t.kind)?(i.push([e,t]),!0):(o=!0,!1);for(;i.length>0;){let[e,r]=(0,n.defined)(i.pop());if(e.index>r.index&&([e,r]=[r,e]),!e.isPrimitive()){let t=e.index,n=r.index,i=!1;for(let[e,r]of a)if(e===t&&r===n){i=!0;break}if(i)continue;a.push([t,n])}if(o=!1,!e.structuralEqualityStep(r,t,s)||o)return!1}return!0}getParentTypes(){return this.graph.getParentsOfType(this)}getAncestorsNotInSet(e){let t=[this],n=new Set,r=new Set;for(;;){let i=t.pop();if(i===void 0)break;let a=i.getParentTypes();console.log(`${a.size} parents`);for(let i of a)n.has(i)||(n.add(i),e.has(i.typeRef)?(console.log(`adding ${i.kind}`),t.push(i)):(console.log(`found ${i.kind}`),r.add(i)))}return r}};e.Type=h;function g(e){return(0,t.mapSome)(e,(e,t)=>t.requiresUniqueIdentity(e))}function _(e){return(0,t.mapFilter)(e,(e,t)=>t.inIdentity)}function v(e,t){if(!g(t))return new m(e,[_(t)])}e.primitiveTypeIdentity=v,e.PrimitiveType=class extends h{constructor(e,t,n){super(e,t),this.kind=n}get isNullable(){return this.kind===`null`||this.kind===`any`||this.kind===`none`}isPrimitive(){return!0}getNonAttributeChildren(){return new Set}get identity(){return v(this.kind,this.getAttributes())}reconstitute(e){e.getPrimitiveType(this.kind)}structuralEqualityStep(e,t,n){return!0}};function y(e,t){if(!g(e))return new m(`array`,[_(e),t])}e.arrayTypeIdentity=y,e.ArrayType=class extends h{constructor(e,t,n){super(e,t),this._itemsRef=n,this.kind=`array`}setItems(e){if(this._itemsRef!==void 0)return(0,n.panic)(`Can only set array items once`);this._itemsRef=e}getItemsRef(){return this._itemsRef===void 0?(0,n.panic)(`Array items accessed before they were set`):this._itemsRef}get items(){return(0,o.derefTypeRef)(this.getItemsRef(),this.graph)}getNonAttributeChildren(){return new Set([this.items])}get isNullable(){return!1}isPrimitive(){return!1}get identity(){return y(this.getAttributes(),this.getItemsRef())}reconstitute(e){let t=this.getItemsRef(),n=e.lookup(t);n===void 0?(e.getUniqueArrayType(),e.setArrayItems(e.reconstitute(this.getItemsRef()))):e.getArrayType(n)}structuralEqualityStep(e,t,n){return n(this.items,e.items)}};var b=class e{constructor(e,t){this.typeData=e,this.isOptional=t}equals(n){return n instanceof e?(0,t.areEqual)(this.typeData,n.typeData)&&this.isOptional===n.isOptional:!1}hashCode(){return(0,t.hashCodeOf)(this.typeData)+(this.isOptional?17:23)}};e.GenericClassProperty=b,e.ClassProperty=class extends b{constructor(e,t,n){super(e,n),this.graph=t}get typeRef(){return this.typeData}get type(){return(0,o.derefTypeRef)(this.typeRef,this.graph)}};function x(e,t,n,r){if(!g(t))return new m(e,[_(t),n,r])}function S(e,t){return x(`class`,e,t,void 0)}e.classTypeIdentity=S;function w(e,t){return x(`map`,e,new Map,t)}e.mapTypeIdentify=w;var T=class extends h{constructor(e,t,r,i,a,o){super(e,t),this.kind=r,this.isFixed=i,this._properties=a,this._additionalPropertiesRef=o,r===`map`?(a!==void 0&&(0,n.assert)(a.size===0),(0,n.assert)(!i)):r===`class`?(0,n.assert)(o===void 0):(0,n.assert)(i)}setProperties(e,t){(0,n.assert)(this._properties===void 0,`Tried to set object properties twice`),this instanceof D&&(0,n.assert)(e.size===0,`Cannot set properties on map type`),this instanceof E&&(0,n.assert)(t===void 0,`Cannot set additional properties of class type`),this._properties=e,this._additionalPropertiesRef=t}getProperties(){return(0,n.defined)(this._properties)}getSortedProperties(){return(0,t.mapSortByKey)(this.getProperties())}getAdditionalPropertiesRef(){return(0,n.assert)(this._properties!==void 0,`Properties are not set yet`),this._additionalPropertiesRef}getAdditionalProperties(){let e=this.getAdditionalPropertiesRef();if(e!==void 0)return(0,o.derefTypeRef)(e,this.graph)}getNonAttributeChildren(){let e=(0,t.mapSortToArray)(this.getProperties(),(e,t)=>t).map(([e,t])=>t.type),n=this.getAdditionalProperties();return n!==void 0&&e.push(n),new Set(e)}get isNullable(){return!1}isPrimitive(){return!1}get identity(){if(!this.isFixed)return x(this.kind,this.getAttributes(),this.getProperties(),this.getAdditionalPropertiesRef())}reconstitute(e,r){let i=this.getSortedProperties(),a=r?i:this.getProperties(),o=e.lookupMap((0,t.mapMap)(i,e=>e.typeRef)),s=(0,t.definedMap)(this._additionalPropertiesRef,t=>e.lookup(t));if(o!==void 0&&(s!==void 0||this._additionalPropertiesRef===void 0)){let r=(0,t.mapMap)(a,(t,r)=>e.makeClassProperty((0,n.defined)(o.get(r)),t.isOptional));switch(this.kind){case`object`:(0,n.assert)(this.isFixed),e.getObjectType(r,s);break;case`map`:e.getMapType((0,n.defined)(s));break;case`class`:this.isFixed?e.getUniqueClassType(!0,r):e.getClassType(r);break;default:return(0,n.panic)(`Invalid object type kind ${this.kind}`)}}else{switch(this.kind){case`object`:(0,n.assert)(this.isFixed),e.getUniqueObjectType(void 0,void 0);break;case`map`:e.getUniqueMapType();break;case`class`:e.getUniqueClassType(this.isFixed,void 0);break;default:return(0,n.panic)(`Invalid object type kind ${this.kind}`)}let r=(0,t.mapMap)(i,t=>e.reconstitute(t.typeRef)),o=(0,t.mapMap)(a,(t,i)=>e.makeClassProperty((0,n.defined)(r.get(i)),t.isOptional)),s=(0,t.definedMap)(this._additionalPropertiesRef,t=>e.reconstitute(t));e.setObjectProperties(o,s)}}structuralEqualityStep(e,t,n){let r=this.getProperties(),i=e.getProperties();if(r.size!==i.size)return!1;let a=!1;for(let[e,t]of r){let r=i.get(e);if(r===void 0||t.isOptional!==r.isOptional||!n(t.type,r.type))return a=!0,!1}if(a)return!1;let o=this.getAdditionalProperties(),s=e.getAdditionalProperties();return o===void 0==(s===void 0)?o===void 0||s===void 0?!0:n(o,s):!1}};e.ObjectType=T;var E=class extends T{constructor(e,t,n,r){super(e,t,`class`,n,r,void 0)}};e.ClassType=E;var D=class extends T{constructor(e,n,r){super(e,n,`map`,!1,(0,t.definedMap)(r,()=>new Map),r)}get values(){return(0,n.defined)(this.getAdditionalProperties())}};e.MapType=D;function O(e,t){if(!g(e))return new m(`enum`,[_(e),t])}e.enumTypeIdentity=O,e.EnumType=class extends h{constructor(e,t,n){super(e,t),this.cases=n,this.kind=`enum`}get isNullable(){return!1}isPrimitive(){return!1}get identity(){return O(this.getAttributes(),this.cases)}getNonAttributeChildren(){return new Set}reconstitute(e){e.getEnumType(this.cases)}structuralEqualityStep(e,n,r){return(0,t.areEqual)(this.cases,e.cases)}};function k(e,n,r,i){let a=(0,t.toReadonlySet)(e),o=(0,t.toReadonlySet)(n);return a.size===o.size?(0,t.iterableEvery)(a,e=>{let n=(0,t.iterableFind)(o,t=>t.kind===e.kind);return!!(n!==void 0&&i(e,n)||r&&(e.kind===`integer`&&(0,t.iterableSome)(o,e=>e.kind===`double`)||e.kind===`double`&&(0,t.iterableSome)(o,e=>e.kind===`integer`)))}):!1}e.setOperationCasesEqual=k;function A(e,t,n){if(!g(t))return new m(e,[_(t),n])}e.setOperationTypeIdentity=A;function j(e,t){return A(`union`,e,t)}e.unionTypeIdentity=j;function M(e,t){return A(`intersection`,e,t)}e.intersectionTypeIdentity=M;var N=class extends h{constructor(e,t,n,r){super(e,t),this.kind=n,this._memberRefs=r}setMembers(e){if(this._memberRefs!==void 0)return(0,n.panic)(`Can only set map members once`);this._memberRefs=e}getMemberRefs(){return this._memberRefs===void 0?(0,n.panic)(`Map members accessed before they were set`):this._memberRefs}get members(){return(0,t.setMap)(this.getMemberRefs(),e=>(0,o.derefTypeRef)(e,this.graph))}get sortedMembers(){return this.getNonAttributeChildren()}getNonAttributeChildren(){return(0,t.setSortBy)(this.members,e=>e.kind)}isPrimitive(){return!1}get identity(){return A(this.kind,this.getAttributes(),this.getMemberRefs())}reconstituteSetOperation(e,r,i){let a=(0,t.mapMap)(this.sortedMembers.entries(),e=>e.typeRef),o=r?this.sortedMembers:this.members,s=e.lookupMap(a);if(s===void 0){i(void 0);let r=e.reconstituteMap(a);e.setSetOperationMembers((0,t.setMap)(o,e=>(0,n.defined)(r.get(e))))}else i((0,t.setMap)(o,e=>(0,n.defined)(s.get(e))))}structuralEqualityStep(e,t,n){return k(this.members,e.members,t,n)}};e.SetOperationType=N,e.IntersectionType=class extends N{constructor(e,t,n){super(e,t,`intersection`,n)}get isNullable(){return(0,n.panic)(`isNullable not implemented for IntersectionType`)}reconstitute(e,t){this.reconstituteSetOperation(e,t,t=>{t===void 0?e.getUniqueIntersectionType():e.getIntersectionType(t)})}},e.UnionType=class extends N{constructor(e,t,n){super(e,t,`union`,n),n!==void 0&&(0,i.messageAssert)(n.size>0,`IRNoEmptyUnions`,{})}setMembers(e){(0,i.messageAssert)(e.size>0,`IRNoEmptyUnions`,{}),super.setMembers(e)}get stringTypeMembers(){return(0,t.setFilter)(this.members,e=>l(e.kind)||e.kind===`enum`)}findMember(e){return(0,t.iterableFind)(this.members,t=>t.kind===e)}get isNullable(){return this.findMember(`null`)!==void 0}get isCanonical(){let e=this.members;if(e.size<=1)return!1;let n=(0,t.setMap)(e,e=>e.kind);if(n.size<e.size||n.has(`union`)||n.has(`intersection`)||n.has(`none`)||n.has(`any`)||n.has(`string`)&&n.has(`enum`))return!1;let r=0;return n.has(`class`)&&(r+=1),n.has(`map`)&&(r+=1),n.has(`object`)&&(r+=1),!(r>1)}reconstitute(e,t){this.reconstituteSetOperation(e,t,t=>{t===void 0?e.getUniqueUnionType():e.getUnionType(t)})}}})),Ta=i((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.assignNames=e.keywordNamespace=e.DependencyName=e.AssociatedName=e.SimpleName=e.FixedName=e.Name=e.funPrefixNamer=e.Namer=e.Namespace=void 0;var t=a(),n=Q(),r=class{constructor(e,t,n,r){this._children=new Set,this._members=new Set,this.forbiddenNamespaces=new Set(n),this.additionalForbidden=new Set(r),t!==void 0&&t.addChild(this)}addChild(e){this._children.add(e)}get children(){return this._children}get members(){return this._members}get forbiddenNameds(){return(0,t.setUnion)(this.additionalForbidden,...Array.from(this.forbiddenNamespaces).map(e=>e.members))}add(e){return this._members.add(e),e}};e.Namespace=r;var i=class{constructor(e,t,n){this.name=e,this.nameStyle=t,this._prefixes=new Set(n)}assignNames(e,r,i){let a=new Set(r),o=Array.from(i);(0,n.assert)(o.length>0,`Number of names can't be less than 1`);let s=new Map,c=[];for(let n of o){let r=n.proposeUnstyledNames(e),i=n.namingFunction,l=(0,t.iterableFind)(r,t=>!a.has(i.nameStyle(t))&&o.every(r=>r===n||!r.proposeUnstyledNames(e).has(t)));if(l!==void 0){let e=i.nameStyle(l),r=n.nameAssignments(a,e);if(r!==null){(0,t.mapMergeInto)(s,r),(0,t.setUnionInto)(a,r.values());continue}}c.push(n)}let l=this._prefixes.values(),u=1;for(let r of c){let i=(0,n.defined)((0,t.iterableFirst)(r.proposeUnstyledNames(e)));for(;;){let e,{done:n,value:o}=l.next();n?(e=`${i}_${u.toString()}`,u++):e=`${o}_${i}`;let c=r.namingFunction.nameStyle(e),d=r.nameAssignments(a,c);if(d!==null){(0,t.mapMergeInto)(s,d),(0,t.setUnionInto)(a,d.values());break}}}return s}};e.Namer=i;var o=[`Purple`,`Fluffy`,`Tentacled`,`Sticky`,`Indigo`,`Indecent`,`Hilarious`,`Ambitious`,`Cunning`,`Magenta`,`Frisky`,`Mischievous`,`Braggadocious`];function s(e,t){return new i(e,t,o)}e.funPrefixNamer=s;var c=class{constructor(e,t){this._namingFunction=e,this.order=t,this._associates=new Set}addAssociate(e){this._associates.add(e)}isFixed(){return this instanceof l}get namingFunction(){return(0,n.defined)(this._namingFunction)}firstProposedName(e){return(0,n.defined)((0,t.iterableFirst)(this.proposeUnstyledNames(e)))}nameAssignments(e,t){if(e.has(t))return null;let n=new Map([[this,t]]);for(let r of this._associates){let i=r.getName(t);if(e.has(i))return null;n.set(r,i)}return n}};e.Name=c;var l=class extends c{constructor(e){super(void 0,0),this._fixedName=e}get dependencies(){return[]}addAssociate(e){return(0,n.panic)(`Cannot add associates to fixed names`)}get fixedName(){return this._fixedName}proposeUnstyledNames(e){return(0,n.panic)(`Only fixedName should be called on FixedName.`)}};e.FixedName=l,e.SimpleName=class extends c{constructor(e,t,n){super(t,n),this._unstyledNames=new Set(e)}get dependencies(){return[]}proposeUnstyledNames(e){return this._unstyledNames}},e.AssociatedName=class extends c{constructor(e,t,n){super(void 0,t),this._sponsor=e,this.getName=n}get dependencies(){return[this._sponsor]}proposeUnstyledNames(e){return(0,n.panic)(`AssociatedName must be assigned via its sponsor`)}},e.DependencyName=class extends c{constructor(e,t,n){super(e,t),this._proposeUnstyledName=n;let r=[];n(e=>(r.push(e),`0xDEADBEEF`)),this._dependencies=new Set(r)}get dependencies(){return Array.from(this._dependencies)}proposeUnstyledNames(e){return new Set([this._proposeUnstyledName(t=>((0,n.assert)(this._dependencies.has(t),`DependencyName proposer is not pure`),(0,n.defined)(e.get(t))))])}};function u(e,t){let n=new r(e,void 0,[],[]);for(let e of t)n.add(new l(e));return n}e.keywordNamespace=u;function d(e){return(0,t.setUnion)(e,...Array.from((0,t.setMap)(e,e=>d(e.children))))}var f=class{constructor(e){this._names=new Map,this._namedsForName=new Map,this.isReadyToBeNamed=e=>this._names.has(e)?!1:e.dependencies.every(e=>this._names.has(e)),this.isConflicting=(e,t)=>{let n=this._namedsForName.get(t);if(n===void 0)return!1;for(let t of n)if(e.members.has(t)||e.forbiddenNameds.has(t))return!0;return!1},this.assign=(e,t,r)=>{(0,n.assert)(!this.names.has(e),`Name "${r}" assigned twice`),(0,n.assert)(!this.isConflicting(t,r),`Assigned name "${r}" conflicts`),this._names.set(e,r);let i=this._namedsForName.get(r);i===void 0&&(i=new Set,this._namedsForName.set(r,i)),i.add(e)},this.namespaces=d(e)}get names(){return this._names}areForbiddensFullyNamed(e){return(0,t.iterableEvery)(e.forbiddenNameds,e=>this._names.has(e))}};function p(e){let n=new f(e);for(let e of n.namespaces)for(let t of e.members)t.isFixed()&&n.assign(t,e,t.fixedName);for(;;){let e=(0,t.setFilter)(n.namespaces,e=>n.areForbiddensFullyNamed(e)),r=(0,t.iterableFind)(e,e=>(0,t.iterableSome)(e.members,n.isReadyToBeNamed));if(r===void 0)return n.names;let i=(0,t.setUnion)(r.members,r.forbiddenNameds),a=(0,t.setFilterMap)(i,e=>n.names.get(e));for(;;){let e=(0,t.setFilter)(r.members,n.isReadyToBeNamed),i=(0,t.iterableMinBy)(e,e=>e.order);if(i===void 0)break;let o=i.order,s=(0,t.setFilter)(e,e=>e.order===o),c=(0,t.setGroupBy)(s,e=>e.namingFunction);for(let[e,i]of c){let o=(0,t.setGroupBy)(i,e=>e.namingFunction.nameStyle(e.firstProposedName(n.names)));for(let[,i]of o){let o=e.assignNames(n.names,a,i);for(let[e,t]of o)n.assign(e,r,t);(0,t.setUnionInto)(a,o.values())}}}}}e.assignNames=p})),Ea=i((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.parenIfNeeded=e.multiWord=e.singleWord=e.serializeRenderResult=e.modifySource=e.maybeAnnotated=e.annotated=e.sourcelikeToSource=e.newline=void 0;var t=a(),n=Ta(),r=Q(),i=ua();function o(){return{kind:`newline`,indentationChange:0}}e.newline=o;function s(e){if(e instanceof Array)return{kind:`sequence`,sequence:e.map(s)};if(typeof e==`string`){let n=e.split(`
|
|
115
|
+
`,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=Bi(zi(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=Bi(zi(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 Wi(e){let t=e.prettyErrors!==!1;return{lineCounter:e.lineCounter||t&&new Pi||null,prettyErrors:t}}function Gi(e,t={}){let{lineCounter:n,prettyErrors:r}=Wi(t),i=new Hi(n?.addNewLine),a=new ti(t),o=Array.from(a.compose(i.parse(e)));if(r&&n)for(let t of o)t.errors.forEach(ir(e,n)),t.warnings.forEach(ir(e,n));return o.length>0?o:Object.assign([],{empty:!0},a.streamInfo())}function Ki(e,t={}){let{lineCounter:n,prettyErrors:r}=Wi(t),i=new Hi(n?.addNewLine),a=new ti(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 nr(t.range.slice(0,2),`MULTIPLE_DOCS`,`Source contains multiple documents; please use YAML.parseAllDocuments()`));break}return r&&n&&(o.errors.forEach(ir(e,n)),o.warnings.forEach(ir(e,n))),o}function qi(e,t,n){let r;typeof t==`function`?r=t:n===void 0&&t&&typeof t==`object`&&(n=t);let i=Ki(e,n);if(!i)return null;if(i.warnings.forEach(e=>it(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 Ji(e,t,n){let r=null;if(typeof t==`function`||Array.isArray(t)?r=t:n===void 0&&t&&(n=t),typeof n==`string`&&(n=n.length),typeof n==`number`){let e=Math.round(n);n=e<1?void 0:e>8?{indent:8}:{indent:e}}if(e===void 0){let{keepUndefined:e}=n??t??{};if(!e)return}return P(e)&&!r?e.toString(n):new $n(e,r,n).toString(n)}var Yi=n((()=>{ni(),er(),ar(),at(),z(),Fi(),Ui()})),Xi=r({Alias:()=>ye,CST:()=>bi,Composer:()=>ti,Document:()=>$n,Lexer:()=>Mi,LineCounter:()=>Pi,Pair:()=>gt,Parser:()=>Hi,Scalar:()=>X,Schema:()=>Jn,YAMLError:()=>tr,YAMLMap:()=>wt,YAMLParseError:()=>nr,YAMLSeq:()=>kt,YAMLWarning:()=>rr,isAlias:()=>N,isCollection:()=>w,isDocument:()=>P,isMap:()=>ee,isNode:()=>T,isPair:()=>F,isScalar:()=>I,isSeq:()=>L,parse:()=>qi,parseAllDocuments:()=>Gi,parseDocument:()=>Ki,stringify:()=>Ji,visit:()=>te,visitAsync:()=>re}),Zi=n((()=>{ni(),er(),Yn(),ar(),Y(),z(),_t(),xe(),Tt(),At(),Ti(),Ni(),Fi(),Ui(),Yi(),se()})),Qi=r({Alias:()=>ye,CST:()=>bi,Composer:()=>ti,Document:()=>$n,Lexer:()=>Mi,LineCounter:()=>Pi,Pair:()=>gt,Parser:()=>Hi,Scalar:()=>X,Schema:()=>Jn,YAMLError:()=>tr,YAMLMap:()=>wt,YAMLParseError:()=>nr,YAMLSeq:()=>kt,YAMLWarning:()=>rr,default:()=>$i,isAlias:()=>N,isCollection:()=>w,isDocument:()=>P,isMap:()=>ee,isNode:()=>T,isPair:()=>F,isScalar:()=>I,isSeq:()=>L,parse:()=>qi,parseAllDocuments:()=>Gi,parseDocument:()=>Ki,stringify:()=>Ji,visit:()=>te,visitAsync:()=>re}),$i,ea=n((()=>{Zi(),Zi(),$i=Xi})),Q=i((t=>{var n=t&&t.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),r=t&&t.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,`default`,{enumerable:!0,value:t})}):function(e,t){e.default=t}),i=t&&t.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var i in e)i!==`default`&&Object.prototype.hasOwnProperty.call(e,i)&&n(t,e,i);return r(t,e),t};Object.defineProperty(t,`__esModule`,{value:!0}),t.numberEnumValues=t.indentationString=t.parseJSON=t.inflateBase64=t.errorMessage=t.repeatedCall=t.repeated=t.mustNotHappen=t.panic=t.assert=t.assertNever=t.nonNull=t.defined=t.checkArray=t.checkStringMap=t.checkString=t.isStringMap=void 0;var a=o(),s=i(S()),c=C(),l=i((ea(),e(Qi)));function u(e,t){if(typeof e!=`object`||Array.isArray(e)||e===null)return!1;if(t!==void 0)for(let n of Object.getOwnPropertyNames(e)){let r=e[n];if(!t(r))return!1}return!0}t.isStringMap=u;function d(e){return typeof e==`string`}t.checkString=d;function f(e,t){return u(e,t)?e:v(`Value must be an object, but is ${e}`)}t.checkStringMap=f;function p(e,t){if(!Array.isArray(e))return v(`Value must be an array, but is ${e}`);if(t!==void 0){for(let n of e)if(!t(n))return v(`Array item does not satisfy constraint: ${n}`)}return e}t.checkArray=p;function m(e){return e===void 0?v(`Defined value expected, but got undefined`):e}t.defined=m;function h(e){return e===null?v(`Non-null value expected, but got null`):e}t.nonNull=h;function g(e){return(0,c.messageError)(`InternalError`,{message:`Unexpected object ${e}`})}t.assertNever=g;function _(e,t=`Assertion failed`){if(!e)return(0,c.messageError)(`InternalError`,{message:t})}t.assert=_;function v(e){return(0,c.messageError)(`InternalError`,{message:e})}t.panic=v;function y(){return v(`This must not happen`)}t.mustNotHappen=y;function b(e,t){let n=[];for(let r=0;r<e;r++)n.push(t);return n}t.repeated=b;function x(e,t){let n=[];for(let r=0;r<e;r++)n.push(t());return n}t.repeatedCall=x;function w(e){return e instanceof Error?e.message:e.toString()}t.errorMessage=w;function T(e){let t=a.Base64.atob(e);return s.inflate(t,{to:`string`})}t.inflateBase64=T;function E(e,t,n=`<unknown>`){try{return e.charCodeAt(0)===65279&&(e=e.slice(1)),l.parse(e)}catch(e){let r;return r=e instanceof SyntaxError?e.message:`Unknown exception ${e}`,(0,c.messageError)(`MiscJSONParseError`,{description:t,address:n,message:r})}}t.parseJSON=E;function D(e){return` `.repeat(e)}t.indentationString=D;function O(e){let t=[];for(let n of Object.keys(e)){let r=e[n];typeof r==`number`&&t.push(r)}return t}t.numberEnumValues=O})),ta=i(((e,n)=>{(function(r,i){typeof t==`function`&&typeof e==`object`&&typeof n==`object`?n.exports=i():typeof define==`function`&&define.amd?define(function(){return i()}):r.pluralize=i()})(e,function(){var e=[],t=[],n={},r={},i={};function a(e){return typeof e==`string`?RegExp(`^`+e+`$`,`i`):e}function o(e,t){return e===t?t:e===e.toLowerCase()?t.toLowerCase():e===e.toUpperCase()?t.toUpperCase():e[0]===e[0].toUpperCase()?t.charAt(0).toUpperCase()+t.substr(1).toLowerCase():t.toLowerCase()}function s(e,t){return e.replace(/\$(\d{1,2})/g,function(e,n){return t[n]||``})}function c(e,t){return e.replace(t[0],function(n,r){var i=s(t[1],arguments);return o(n===``?e[r-1]:n,i)})}function l(e,t,r){if(!e.length||n.hasOwnProperty(e))return t;for(var i=r.length;i--;){var a=r[i];if(a[0].test(t))return c(t,a)}return t}function u(e,t,n){return function(r){var i=r.toLowerCase();return t.hasOwnProperty(i)?o(r,i):e.hasOwnProperty(i)?o(r,e[i]):l(i,r,n)}}function d(e,t,n,r){return function(r){var i=r.toLowerCase();return t.hasOwnProperty(i)?!0:e.hasOwnProperty(i)?!1:l(i,i,n)===i}}function f(e,t,n){var r=t===1?f.singular(e):f.plural(e);return(n?t+` `:``)+r}return f.plural=u(i,r,e),f.isPlural=d(i,r,e),f.singular=u(r,i,t),f.isSingular=d(r,i,t),f.addPluralRule=function(t,n){e.push([a(t),n])},f.addSingularRule=function(e,n){t.push([a(e),n])},f.addUncountableRule=function(e){if(typeof e==`string`){n[e.toLowerCase()]=!0;return}f.addPluralRule(e,`$0`),f.addSingularRule(e,`$0`)},f.addIrregularRule=function(e,t){t=t.toLowerCase(),e=e.toLowerCase(),i[e]=t,r[t]=e},[[`I`,`we`],[`me`,`us`],[`he`,`they`],[`she`,`they`],[`them`,`them`],[`myself`,`ourselves`],[`yourself`,`yourselves`],[`itself`,`themselves`],[`herself`,`themselves`],[`himself`,`themselves`],[`themself`,`themselves`],[`is`,`are`],[`was`,`were`],[`has`,`have`],[`this`,`these`],[`that`,`those`],[`echo`,`echoes`],[`dingo`,`dingoes`],[`volcano`,`volcanoes`],[`tornado`,`tornadoes`],[`torpedo`,`torpedoes`],[`genus`,`genera`],[`viscus`,`viscera`],[`stigma`,`stigmata`],[`stoma`,`stomata`],[`dogma`,`dogmata`],[`lemma`,`lemmata`],[`schema`,`schemata`],[`anathema`,`anathemata`],[`ox`,`oxen`],[`axe`,`axes`],[`die`,`dice`],[`yes`,`yeses`],[`foot`,`feet`],[`eave`,`eaves`],[`goose`,`geese`],[`tooth`,`teeth`],[`quiz`,`quizzes`],[`human`,`humans`],[`proof`,`proofs`],[`carve`,`carves`],[`valve`,`valves`],[`looey`,`looies`],[`thief`,`thieves`],[`groove`,`grooves`],[`pickaxe`,`pickaxes`],[`passerby`,`passersby`]].forEach(function(e){return f.addIrregularRule(e[0],e[1])}),[[/s?$/i,`s`],[/[^\u0000-\u007F]$/i,`$0`],[/([^aeiou]ese)$/i,`$1`],[/(ax|test)is$/i,`$1es`],[/(alias|[^aou]us|t[lm]as|gas|ris)$/i,`$1es`],[/(e[mn]u)s?$/i,`$1s`],[/([^l]ias|[aeiou]las|[ejzr]as|[iu]am)$/i,`$1`],[/(alumn|syllab|vir|radi|nucle|fung|cact|stimul|termin|bacill|foc|uter|loc|strat)(?:us|i)$/i,`$1i`],[/(alumn|alg|vertebr)(?:a|ae)$/i,`$1ae`],[/(seraph|cherub)(?:im)?$/i,`$1im`],[/(her|at|gr)o$/i,`$1oes`],[/(agend|addend|millenni|dat|extrem|bacteri|desiderat|strat|candelabr|errat|ov|symposi|curricul|automat|quor)(?:a|um)$/i,`$1a`],[/(apheli|hyperbat|periheli|asyndet|noumen|phenomen|criteri|organ|prolegomen|hedr|automat)(?:a|on)$/i,`$1a`],[/sis$/i,`ses`],[/(?:(kni|wi|li)fe|(ar|l|ea|eo|oa|hoo)f)$/i,`$1$2ves`],[/([^aeiouy]|qu)y$/i,`$1ies`],[/([^ch][ieo][ln])ey$/i,`$1ies`],[/(x|ch|ss|sh|zz)$/i,`$1es`],[/(matr|cod|mur|sil|vert|ind|append)(?:ix|ex)$/i,`$1ices`],[/\b((?:tit)?m|l)(?:ice|ouse)$/i,`$1ice`],[/(pe)(?:rson|ople)$/i,`$1ople`],[/(child)(?:ren)?$/i,`$1ren`],[/eaux$/i,`$0`],[/m[ae]n$/i,`men`],[`thou`,`you`]].forEach(function(e){return f.addPluralRule(e[0],e[1])}),[[/s$/i,``],[/(ss)$/i,`$1`],[/(wi|kni|(?:after|half|high|low|mid|non|night|[^\w]|^)li)ves$/i,`$1fe`],[/(ar|(?:wo|[ae])l|[eo][ao])ves$/i,`$1f`],[/ies$/i,`y`],[/\b([pl]|zomb|(?:neck|cross)?t|coll|faer|food|gen|goon|group|lass|talk|goal|cut)ies$/i,`$1ie`],[/\b(mon|smil)ies$/i,`$1ey`],[/\b((?:tit)?m|l)ice$/i,`$1ouse`],[/(seraph|cherub)im$/i,`$1`],[/(x|ch|ss|sh|zz|tto|go|cho|alias|[^aou]us|t[lm]as|gas|(?:her|at|gr)o|[aeiou]ris)(?:es)?$/i,`$1`],[/(analy|diagno|parenthe|progno|synop|the|empha|cri|ne)(?:sis|ses)$/i,`$1sis`],[/(movie|twelve|abuse|e[mn]u)s$/i,`$1`],[/(test)(?:is|es)$/i,`$1is`],[/(alumn|syllab|vir|radi|nucle|fung|cact|stimul|termin|bacill|foc|uter|loc|strat)(?:us|i)$/i,`$1us`],[/(agend|addend|millenni|dat|extrem|bacteri|desiderat|strat|candelabr|errat|ov|symposi|curricul|quor)a$/i,`$1um`],[/(apheli|hyperbat|periheli|asyndet|noumen|phenomen|criteri|organ|prolegomen|hedr|automat)a$/i,`$1on`],[/(alumn|alg|vertebr)ae$/i,`$1a`],[/(cod|mur|sil|vert|ind)ices$/i,`$1ex`],[/(matr|append)ices$/i,`$1ix`],[/(pe)(rson|ople)$/i,`$1rson`],[/(child)ren$/i,`$1`],[/(eau)x?$/i,`$1`],[/men$/i,`man`]].forEach(function(e){return f.addSingularRule(e[0],e[1])}),[`adulthood`,`advice`,`agenda`,`aid`,`aircraft`,`alcohol`,`ammo`,`analytics`,`anime`,`athletics`,`audio`,`bison`,`blood`,`bream`,`buffalo`,`butter`,`carp`,`cash`,`chassis`,`chess`,`clothing`,`cod`,`commerce`,`cooperation`,`corps`,`debris`,`diabetes`,`digestion`,`elk`,`energy`,`equipment`,`excretion`,`expertise`,`firmware`,`flounder`,`fun`,`gallows`,`garbage`,`graffiti`,`hardware`,`headquarters`,`health`,`herpes`,`highjinks`,`homework`,`housework`,`information`,`jeans`,`justice`,`kudos`,`labour`,`literature`,`machinery`,`mackerel`,`mail`,`media`,`mews`,`moose`,`music`,`mud`,`manga`,`news`,`only`,`personnel`,`pike`,`plankton`,`pliers`,`police`,`pollution`,`premises`,`rain`,`research`,`rice`,`salmon`,`scissors`,`series`,`sewage`,`shambles`,`shrimp`,`software`,`species`,`staff`,`swine`,`tennis`,`traffic`,`transportation`,`trout`,`tuna`,`wealth`,`welfare`,`whiting`,`wildebeest`,`wildlife`,`you`,/pok[eé]mon$/i,/[^aeiou]ese$/i,/deer$/i,/fish$/i,/measles$/i,/o[iu]s$/i,/pox$/i,/sheep$/i].forEach(f.addUncountableRule),f})})),na=i((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.increaseTypeAttributesDistance=e.makeTypeAttributesInferred=e.combineTypeAttributes=e.emptyTypeAttributes=e.TypeAttributeKind=void 0;var t=a(),n=Q();e.TypeAttributeKind=class e{constructor(e){this.name=e}appliesToTypeKind(e){return e!==`any`}combine(e){return(0,n.panic)(`Cannot combine type attribute ${this.name}`)}intersect(e){return this.combine(e)}makeInferred(e){return(0,n.panic)(`Cannot make type attribute ${this.name} inferred`)}increaseDistance(e){return e}addToSchema(e,t,n){}children(e){return new Set}stringify(e){}get inIdentity(){return!1}requiresUniqueIdentity(e){return!1}reconstitute(e,t){return t}makeAttributes(e){return new Map([[this,e]])}tryGetInAttributes(e){return e.get(this)}setInAttributes(e,t){return new Map(e).set(this,t)}modifyInAttributes(e,t){let n=t(this.tryGetInAttributes(e));if(n===void 0){let t=new Map(e);return t.delete(this),t}return this.setInAttributes(e,n)}setDefaultInAttributes(e,t){return this.tryGetInAttributes(e)===void 0?this.modifyInAttributes(e,t):e}removeInAttributes(e){return(0,t.mapFilter)(e,(e,t)=>t!==this)}equals(t){return t instanceof e?this.name===t.name:!1}hashCode(){return(0,t.hashString)(this.name)}},e.emptyTypeAttributes=new Map;function r(e,r,i){let a=e===`union`,o;if(Array.isArray(r))o=r;else{if(i===void 0)return(0,n.panic)(`Must have on array or two attributes`);o=[r,i]}let s=(0,t.mapTranspose)(o);function c(e,t){return(0,n.assert)(e.length>0,`Cannot combine zero type attributes`),e.length===1?e[0]:a?t.combine(e):t.intersect(e)}return(0,t.mapFilterMap)(s,c)}e.combineTypeAttributes=r;function i(e){return(0,t.mapFilterMap)(e,(e,t)=>t.makeInferred(e))}e.makeTypeAttributesInferred=i;function o(e){return(0,t.mapFilterMap)(e,(e,t)=>t.increaseDistance(e))}e.increaseTypeAttributesDistance=o})),ra=i((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.EnumOption=e.StringOption=e.BooleanOption=e.getOptionValues=e.Option=void 0;var t=Q(),n=C(),r=a(),i=class{constructor(e){e.renderer=!0,this.definition=e,(0,t.assert)(e.kind!==void 0,`Renderer option kind must be defined`)}getValue(e){let t=e[this.definition.name];return t===void 0?this.definition.defaultValue:t}get cliDefinitions(){return{actual:[this.definition],display:[this.definition]}}};e.Option=i;function o(e,t){let n={};for(let r of Object.getOwnPropertyNames(e))n[r]=e[r].getValue(t);return n}e.getOptionValues=o,e.BooleanOption=class extends i{constructor(e,t,n,r=`primary`){super({name:e,kind:r,type:Boolean,description:t,defaultValue:n})}get cliDefinitions(){let e=Object.assign({},this.definition,{name:`no-${this.definition.name}`,defaultValue:!this.definition.defaultValue});return{display:[Object.assign({},this.definition,{name:`[no-]${this.definition.name}`,description:`${this.definition.description} (${this.definition.defaultValue?`on`:`off`} by default)`})],actual:[this.definition,e]}}getValue(e){let t=e[this.definition.name];t===void 0&&(t=this.definition.defaultValue);let n=e[`no-${this.definition.name}`];return n===void 0&&(n=!this.definition.defaultValue),t===`true`?t=!0:t===`false`&&(t=!1),this.definition.defaultValue?t&&!n:t||!n}},e.StringOption=class extends i{constructor(e,t,n,r,i=`primary`){super({name:e,kind:i,type:String,description:t,typeLabel:n,defaultValue:r})}},e.EnumOption=class extends i{constructor(e,t,n,r=void 0,i=`primary`){r===void 0&&(r=n[0][0]);let a={name:e,kind:i,type:String,description:t,typeLabel:n.map(([e,t])=>e).join(`|`),legalValues:n.map(([e,t])=>e),defaultValue:r};super(a),this._values={};for(let[e,t]of n)this._values[e]=t}getValue(e){let t=e[this.definition.name];return t===void 0&&(t=this.definition.defaultValue),(0,r.hasOwnProperty)(this._values,t)?this._values[t]:(0,n.messageError)(`RendererUnknownOptionValue`,{value:t,name:this.definition.name})}}})),ia=i((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.acronymStyle=e.acronymOption=e.AcronymStyleOptions=e.acronyms=void 0;var t=ra(),n=ua();e.acronyms=`aaa.aabb.aac.aal.aalc.aarp.abac.abcl.abi.abm.abr.ac.acd.ack.acl.acm.acme.acp.acpi.acr.adb.adc.adccp.ado.adsl.adt.ae.aes.af.afp.agp.ai.aix.alac.algol.alsa.alu.amd.amoled.amqp.amr.ann.ansi.aop.apci.api.apic.apipa.apl.apr.arin.aros.arp.arpa.arpanet.ascii.aset.asg.asic.asimo.aslr.asm.asmp.asp.asr.assp.ast.ata.atag.atapi.atm.av.avc.avi.awfl.awk.awt.bal.bam.bbp.bbs.bcd.bcnf.beep.ber.bfd.bfs.bft.bgp.bi.binac.bios.bjt.bmp.bnc.boinc.bom.bootp.bpdu.bpel.bpl.bpm.brm.brms.brr.brs.bsa.bsb.bsd.bss.bt.bw.byod.ca.cad.cae.cai.caid.captcha.caq.cd.cde.cdfs.cdma.cdn.cdp.cdsa.cert.ces.cf.cfd.cfg.cg.cga.cgi.cgt.chs.cidr.cifs.cim.cio.cir.cisc.cjk.cjkv.cli.clr.cm.cmdb.cmmi.cmo.cmos.cms.cn.cnc.cng.cnr.cobol.com.corba.cots.cpa.cpan.cpri.cps.cpu.cr.cran.crc.crlf.crm.crs.crt.crud.cs.cse.csi.csm.csp.csrf.css.csv.ct.ctan.ctcp.ctfe.cti.ctl.ctm.cts.ctss.cua.cvs.dac.dal.dao.dap.darpa.dat.db.dba.dbcs.dbms.dcc.dcca.dccp.dcl.dcmi.dcom.dcs.dd.dde.ddi.ddl.ddr.dec.des.dfa.dfd.dfs.dgd.dhcp.dhtml.dif.dimm.din.dip.dism.divx.dkim.dl.dll.dlna.dlp.dma.dmca.dmi.dml.dmr.dmz.dn.dnd.dns.doa.docsis.dom.dos.dp.dpc.dpi.dpmi.dpms.dr.dram.dri.drm.dsa.dsdl.dsdm.dsl.dslam.dsn.dsp.dsssl.dtd.dte.dtp.dtr.dvd.dvi.dvr.dw.eai.eap.eas.ebcdic.ebml.ecc.ecma.ecn.ecos.ecrs.eda.edi.edo.edsac.edvac.eeprom.eff.efi.efm.efs.ega.egp.eide.eigrp.eisa.elf.emacs.ems.eniac.eod.eof.eol.eom.eos.eprom.erd.erm.erp.esb.escon.esd.esr.etl.etw.euc.eula.ewmh.ext.fap.faq.fasm.fbdimm.fcb.fcs.fdc.fdd.fddi.fdm.fdma.fds.fec.femb.fet.fhs.ficon.fifo.fips.fl.flac.flops.fmc.fmo.foldoc.fosdem.fosi.foss.fp.fpga.fps.fpu.fqdn.fru.fs.fsb.fsf.fsm.ftp.ftta.fttc.ftth.fttp.fud.fvek.fws.fxp.fyi.gb.gcc.gcj.gcr.gdb.gdi.geran.gfdl.gif.gigo.gimps.gis.gml.gnu.goms.gpasm.gpfs.gpg.gpgpu.gpib.gpl.gprs.gpt.gpu.gsm.gui.guid.gwt.gyr.hal.hasp.hba.hci.hcl.hd.hdd.hdl.hdmi.hf.hfs.hhd.hid.hig.hird.hlasm.hls.hma.hp.hpc.hpfs.hsdpa.hsm.ht.htc.htm.html.http.https.htx.hurd.hvd.iana.ibm.ic.icann.ich.icmp.icp.ics.ict.id.ide.idf.idl.ids.iec.ieee.ietf.ifl.igmp.igrp.ihv.iiop.iis.ike.il.im.imap.ime.infosec.ip.ipam.ipc.ipl.ipmi.ipo.ipp.ips.iptv.ipx.ir.irc.iri.irp.irq.isa.isam.isatap.isc.isdn.iso.isp.ispf.isr.isv.itil.itl.itu.ivcr.ivrs.jaxb.jaxp.jbod.jce.jcl.jcp.jdbc.jdk.jds.jee.jes.jfc.jfet.jfs.jini.jit.jme.jms.jmx.jndi.jni.jnz.jpeg.jre.js.jse.json.jsp.jtag.jvm.kb.kde.km.krl.kvm.lacp.lan.lb.lba.lcd.lcos.lcr.ldap.le.led.lf.lfs.lga.lgpl.lib.lif.lifo.lilo.lisp.lkml.lm.loc.lpc.lpi.lpt.lru.lsb.lsi.lte.ltl.ltr.lun.lv.lvd.lvm.lzw.mac.manet.mapi.mb.mbcs.mbd.mbr.mca.mcad.mcas.mcdba.mcdst.mcitp.mcm.mcp.mcpc.mcpd.mcsa.mcsd.mcse.mct.mcts.mda.mdf.mdi.mf.mfc.mfm.mgcp.mib.micr.midi.mimd.mime.mimo.minix.mips.mis.misd.mit.mmc.mmds.mmf.mmi.mmio.mmorpg.mmu.mmx.mng.mom.mos.mosfet.motd.mous.mov.mpaa.mpeg.mpl.mpls.mpu.ms.msa.msb.msdn.msi.msn.mt.mta.mtbf.mtu.mua.mvc.mvp.mvs.mwc.mx.mxf.nack.nak.nas.nasm.ncp.ncq.ncsa.ndis.ndps.nds.nep.nfa.nfc.nfs.ngl.ngscb.ni.nic.nim.nio.nist.nlp.nls.nmi.nntp.noc.nop.nos.np.npl.nptl.npu.ns.nsa.nsi.nspr.nss.nt.ntfs.ntlm.ntp.numa.nurbs.nvr.nvram.oat.obsai.odbc.oem.oes.ofdm.oftc.oid.olap.ole.oled.olpc.oltp.omf.omg.omr.oo.ooe.oom.oop.ootb.opml.orb.orm.os.oscon.osdn.osi.ospf.oss.ostg.oui.pap.parc.pata.pbs.pc.pcb.pci.pcl.pcm.pcmcia.pcre.pd.pda.pdf.pdh.pdp.pe.perl.pfa.pg.pga.pgo.pgp.php.pid.pim.pio.pkcs.pki.plc.pld.plt.pmm.png.pnrp.poid.pojo.posix.ppc.ppi.ppp.pptp.pr.ps.psa.psm.psu.psvi.pv.pvg.pvr.pxe.pxi.qa.qdr.qfp.qotd.qsop.qtam.racf.rad.raid.raii.rait.ram.rarp.ras.rc.rcs.rd.rdbms.rdc.rdf.rdm.rdos.rdp.rds.refal.rest.rf.rfc.rfi.rfid.rgb.rgba.rhel.rhl.ria.riaa.rip.rir.risc.rje.rle.rll.rmi.rms.rom.romb.rpc.rpg.rpm.rras.rsa.rsi.rss.rtai.rtc.rte.rtems.rtl.rtos.rtp.rts.rtsp.rtti.rwd.san.sas.sata.sax.sbod.sbu.scada.scid.scm.scp.scpc.scpi.scsa.scsi.sctp.sd.sddl.sdh.sdi.sdio.sdk.sdl.sdn.sdp.sdr.sdram.sdsl.se.sec.sei.seo.sftp.sgi.sgml.sgr.sha.shdsl.sigcat.siggraph.simd.simm.sip.sisd.siso.sles.sli.slm.sloc.sma.smb.smbios.sme.smf.smil.smp.smps.sms.smt.smtp.sna.snmp.sntp.soa.soe.soho.soi.sopa.sp.spa.sparc.spf.spi.spm.spmd.sql.sram.ssa.ssd.ssdp.sse.ssh.ssi.ssid.ssl.ssp.ssse.sssp.sstp.sus.suse.svc.svd.svg.svga.swf.swt.tao.tapi.tasm.tb.tcp.tcu.tdma.tft.tftp.ti.tla.tld.tls.tlv.tnc.tpf.tpm.troff.tron.trsdos.tso.tsp.tsr.tta.ttf.ttl.tts.tty.tucows.twain.uaag.uac.uart.uat.ucs.uddi.udma.udp.uefi.uhf.ui.ul.ula.uma.umb.uml.umpc.umts.unc.univac.ups.uri.url.usb.usr.utc.utf.utp.utran.uucp.uuid.uun.uvc.uwp.ux.vax.vb.vba.vbs.vcpi.vdm.vdsl.vesa.vfat.vfs.vg.vga.vhf.vlan.vlb.vlf.vliw.vlsi.vlsm.vm.vmm.vnc.vod.vpn.vpu.vr.vram.vrml.vsam.vsat.vt.vtam.vtl.wafs.wai.wais.wan.wap.wasm.wbem.wcag.wcf.wdm.wep.wfi.wins.wlan.wma.wmi.wmv.wns.wol.wor.wora.wpa.wpad.wpan.wpf.wsdl.wsfl.wusb.wwan.wwdc.wwid.wwn.www.wysiwyg.wzc.xag.xaml.xcbl.xdm.xdmcp.xhtml.xilp.xml.xmms.xmpp.xms.xns.xp.xpcom.xpi.xpidl.xps.xsd.xsl.xslt.xss.xtf.xul.xvga.yaaf.yacc.yaml.zcav.zcs.zif.zifs.zisc.zma.zoi.zope.zpl`.split(`.`);var r;(function(e){e.Pascal=`pascal`,e.Camel=`camel`,e.Original=`original`,e.Lower=`lowerCase`})(r=e.AcronymStyleOptions||={}),e.acronymOption=function(e){return new t.EnumOption(`acronym-style`,`Acronym naming style`,[[r.Original,r.Original],[r.Pascal,r.Pascal],[r.Camel,r.Camel],[r.Lower,r.Lower]],e,`secondary`)};function i(e){return{[r.Pascal]:n.allUpperWordStyle,[r.Camel]:n.firstUpperWordStyle,[r.Original]:n.originalWord,[r.Lower]:n.allLowerWordStyle}[e]}e.acronymStyle=i})),aa=i((e=>{e.byteLength=c,e.toByteArray=u,e.fromByteArray=p;for(var t=[],n=[],r=typeof Uint8Array<`u`?Uint8Array:Array,i=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/`,a=0,o=i.length;a<o;++a)t[a]=i[a],n[i.charCodeAt(a)]=a;n[45]=62,n[95]=63;function s(e){var t=e.length;if(t%4>0)throw Error(`Invalid string. Length must be a multiple of 4`);var n=e.indexOf(`=`);n===-1&&(n=t);var r=n===t?0:4-n%4;return[n,r]}function c(e){var t=s(e),n=t[0],r=t[1];return(n+r)*3/4-r}function l(e,t,n){return(t+n)*3/4-n}function u(e){var t,i=s(e),a=i[0],o=i[1],c=new r(l(e,a,o)),u=0,d=o>0?a-4:a,f;for(f=0;f<d;f+=4)t=n[e.charCodeAt(f)]<<18|n[e.charCodeAt(f+1)]<<12|n[e.charCodeAt(f+2)]<<6|n[e.charCodeAt(f+3)],c[u++]=t>>16&255,c[u++]=t>>8&255,c[u++]=t&255;return o===2&&(t=n[e.charCodeAt(f)]<<2|n[e.charCodeAt(f+1)]>>4,c[u++]=t&255),o===1&&(t=n[e.charCodeAt(f)]<<10|n[e.charCodeAt(f+1)]<<4|n[e.charCodeAt(f+2)]>>2,c[u++]=t>>8&255,c[u++]=t&255),c}function d(e){return t[e>>18&63]+t[e>>12&63]+t[e>>6&63]+t[e&63]}function f(e,t,n){for(var r,i=[],a=t;a<n;a+=3)r=(e[a]<<16&16711680)+(e[a+1]<<8&65280)+(e[a+2]&255),i.push(d(r));return i.join(``)}function p(e){for(var n,r=e.length,i=r%3,a=[],o=16383,s=0,c=r-i;s<c;s+=o)a.push(f(e,s,s+o>c?c:s+o));return i===1?(n=e[r-1],a.push(t[n>>2]+t[n<<4&63]+`==`)):i===2&&(n=(e[r-2]<<8)+e[r-1],a.push(t[n>>10]+t[n>>4&63]+t[n<<2&63]+`=`)),a.join(``)}})),oa=i(((e,t)=>{var n=0,r=-3;function i(){this.table=new Uint16Array(16),this.trans=new Uint16Array(288)}function a(e,t){this.source=e,this.sourceIndex=0,this.tag=0,this.bitcount=0,this.dest=t,this.destLen=0,this.ltree=new i,this.dtree=new i}var o=new i,s=new i,c=new Uint8Array(30),l=new Uint16Array(30),u=new Uint8Array(30),d=new Uint16Array(30),f=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),p=new i,m=new Uint8Array(320);function h(e,t,n,r){var i,a;for(i=0;i<n;++i)e[i]=0;for(i=0;i<30-n;++i)e[i+n]=i/n|0;for(a=r,i=0;i<30;++i)t[i]=a,a+=1<<e[i]}function g(e,t){var n;for(n=0;n<7;++n)e.table[n]=0;for(e.table[7]=24,e.table[8]=152,e.table[9]=112,n=0;n<24;++n)e.trans[n]=256+n;for(n=0;n<144;++n)e.trans[24+n]=n;for(n=0;n<8;++n)e.trans[168+n]=280+n;for(n=0;n<112;++n)e.trans[176+n]=144+n;for(n=0;n<5;++n)t.table[n]=0;for(t.table[5]=32,n=0;n<32;++n)t.trans[n]=n}var _=new Uint16Array(16);function v(e,t,n,r){var i,a;for(i=0;i<16;++i)e.table[i]=0;for(i=0;i<r;++i)e.table[t[n+i]]++;for(e.table[0]=0,a=0,i=0;i<16;++i)_[i]=a,a+=e.table[i];for(i=0;i<r;++i)t[n+i]&&(e.trans[_[t[n+i]]++]=i)}function y(e){e.bitcount--||(e.tag=e.source[e.sourceIndex++],e.bitcount=7);var t=e.tag&1;return e.tag>>>=1,t}function b(e,t,n){if(!t)return n;for(;e.bitcount<24;)e.tag|=e.source[e.sourceIndex++]<<e.bitcount,e.bitcount+=8;var r=e.tag&65535>>>16-t;return e.tag>>>=t,e.bitcount-=t,r+n}function x(e,t){for(;e.bitcount<24;)e.tag|=e.source[e.sourceIndex++]<<e.bitcount,e.bitcount+=8;var n=0,r=0,i=0,a=e.tag;do r=2*r+(a&1),a>>>=1,++i,n+=t.table[i],r-=t.table[i];while(r>=0);return e.tag=a,e.bitcount-=i,t.trans[n+r]}function S(e,t,n){var r=b(e,5,257),i=b(e,5,1),a=b(e,4,4),o,s,c;for(o=0;o<19;++o)m[o]=0;for(o=0;o<a;++o){var l=b(e,3,0);m[f[o]]=l}for(v(p,m,0,19),s=0;s<r+i;){var u=x(e,p);switch(u){case 16:var d=m[s-1];for(c=b(e,2,3);c;--c)m[s++]=d;break;case 17:for(c=b(e,3,3);c;--c)m[s++]=0;break;case 18:for(c=b(e,7,11);c;--c)m[s++]=0;break;default:m[s++]=u;break}}v(t,m,0,r),v(n,m,r,i)}function C(e,t,r){for(;;){var i=x(e,t);if(i===256)return n;if(i<256)e.dest[e.destLen++]=i;else{var a,o,s,f;for(i-=257,a=b(e,c[i],l[i]),o=x(e,r),s=e.destLen-b(e,u[o],d[o]),f=s;f<s+a;++f)e.dest[e.destLen++]=e.dest[f]}}}function w(e){for(var t,i,a;e.bitcount>8;)e.sourceIndex--,e.bitcount-=8;if(t=e.source[e.sourceIndex+1],t=256*t+e.source[e.sourceIndex],i=e.source[e.sourceIndex+3],i=256*i+e.source[e.sourceIndex+2],t!==(~i&65535))return r;for(e.sourceIndex+=4,a=t;a;--a)e.dest[e.destLen++]=e.source[e.sourceIndex++];return e.bitcount=0,n}function T(e,t){var i=new a(e,t),c,l,u;do{switch(c=y(i),l=b(i,2,0),l){case 0:u=w(i);break;case 1:u=C(i,o,s);break;case 2:S(i,i.ltree,i.dtree),u=C(i,i.ltree,i.dtree);break;default:u=r}if(u!==n)throw Error(`Data error`)}while(!c);return i.destLen<i.dest.length?typeof i.dest.slice==`function`?i.dest.slice(0,i.destLen):i.dest.subarray(0,i.destLen):i.dest}g(o,s),h(c,l,4,3),h(u,d,2,1),c[28]=0,l[28]=258,t.exports=T})),sa=i(((e,t)=>{var n=new Uint8Array(new Uint32Array([305419896]).buffer)[0]===18,r=(e,t,n)=>{let r=e[t];e[t]=e[n],e[n]=r},i=e=>{let t=e.length;for(let n=0;n<t;n+=4)r(e,n,n+3),r(e,n+1,n+2)};t.exports={swap32LE:e=>{n&&i(e)}}})),ca=i(((e,t)=>{var n=oa(),{swap32LE:r}=sa(),i=11,a=5,o=i-a,s=65536>>i,c=(1<<o)-1,l=2,u=(1<<a)-1,d=65536>>a,f=d+(1024>>a)+32,p=1<<l;t.exports=class{constructor(e){let t=typeof e.readUInt32BE==`function`&&typeof e.slice==`function`;if(t||e instanceof Uint8Array){let i;if(t)this.highStart=e.readUInt32LE(0),this.errorValue=e.readUInt32LE(4),i=e.readUInt32LE(8),e=e.slice(12);else{let t=new DataView(e.buffer);this.highStart=t.getUint32(0,!0),this.errorValue=t.getUint32(4,!0),i=t.getUint32(8,!0),e=e.subarray(12)}e=n(e,new Uint8Array(i)),e=n(e,new Uint8Array(i)),r(e),this.data=new Uint32Array(e.buffer)}else ({data:this.data,highStart:this.highStart,errorValue:this.errorValue}=e)}get(e){let t;return e<0||e>1114111?this.errorValue:e<55296||e>56319&&e<=65535?(t=(this.data[e>>a]<<l)+(e&u),this.data[t]):e<=65535?(t=(this.data[d+(e-55296>>a)]<<l)+(e&u),this.data[t]):e<this.highStart?(t=this.data[f-s+(e>>i)],t=this.data[t+(e>>a&c)],t=(t<<l)+(e&u),this.data[t]):this.data[this.data.length-p]}}})),la=i(((e,t)=>{var n=aa(),r=ca();function i(e){return e&&e.__esModule?e.default:e}function a(e){Object.defineProperty(e,`__esModule`,{value:!0,configurable:!0})}function o(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}a(t.exports),o(t.exports,`getCategory`,()=>T),o(t.exports,`getCombiningClass`,()=>E),o(t.exports,`getScript`,()=>D),o(t.exports,`getEastAsianWidth`,()=>O),o(t.exports,`getNumericValue`,()=>k),o(t.exports,`isAlphabetic`,()=>A),o(t.exports,`isDigit`,()=>j),o(t.exports,`isPunctuation`,()=>M),o(t.exports,`isLowerCase`,()=>N),o(t.exports,`isUpperCase`,()=>P),o(t.exports,`isTitleCase`,()=>ee),o(t.exports,`isWhiteSpace`,()=>F),o(t.exports,`isBaseForm`,()=>I),o(t.exports,`isMark`,()=>L),o(t.exports,`default`,()=>R);var s={};s=JSON.parse(`{"categories":["Cc","Zs","Po","Sc","Ps","Pe","Sm","Pd","Nd","Lu","Sk","Pc","Ll","So","Lo","Pi","Cf","No","Pf","Lt","Lm","Mn","Me","Mc","Nl","Zl","Zp","Cs","Co"],"combiningClasses":["Not_Reordered","Above","Above_Right","Below","Attached_Above_Right","Attached_Below","Overlay","Iota_Subscript","Double_Below","Double_Above","Below_Right","Above_Left","CCC10","CCC11","CCC12","CCC13","CCC14","CCC15","CCC16","CCC17","CCC18","CCC19","CCC20","CCC21","CCC22","CCC23","CCC24","CCC25","CCC30","CCC31","CCC32","CCC27","CCC28","CCC29","CCC33","CCC34","CCC35","CCC36","Nukta","Virama","CCC84","CCC91","CCC103","CCC107","CCC118","CCC122","CCC129","CCC130","CCC132","Attached_Above","Below_Left","Left","Kana_Voicing","CCC26","Right"],"scripts":["Common","Latin","Bopomofo","Inherited","Greek","Coptic","Cyrillic","Armenian","Hebrew","Arabic","Syriac","Thaana","Nko","Samaritan","Mandaic","Devanagari","Bengali","Gurmukhi","Gujarati","Oriya","Tamil","Telugu","Kannada","Malayalam","Sinhala","Thai","Lao","Tibetan","Myanmar","Georgian","Hangul","Ethiopic","Cherokee","Canadian_Aboriginal","Ogham","Runic","Tagalog","Hanunoo","Buhid","Tagbanwa","Khmer","Mongolian","Limbu","Tai_Le","New_Tai_Lue","Buginese","Tai_Tham","Balinese","Sundanese","Batak","Lepcha","Ol_Chiki","Braille","Glagolitic","Tifinagh","Han","Hiragana","Katakana","Yi","Lisu","Vai","Bamum","Syloti_Nagri","Phags_Pa","Saurashtra","Kayah_Li","Rejang","Javanese","Cham","Tai_Viet","Meetei_Mayek","null","Linear_B","Lycian","Carian","Old_Italic","Gothic","Old_Permic","Ugaritic","Old_Persian","Deseret","Shavian","Osmanya","Osage","Elbasan","Caucasian_Albanian","Linear_A","Cypriot","Imperial_Aramaic","Palmyrene","Nabataean","Hatran","Phoenician","Lydian","Meroitic_Hieroglyphs","Meroitic_Cursive","Kharoshthi","Old_South_Arabian","Old_North_Arabian","Manichaean","Avestan","Inscriptional_Parthian","Inscriptional_Pahlavi","Psalter_Pahlavi","Old_Turkic","Old_Hungarian","Hanifi_Rohingya","Old_Sogdian","Sogdian","Elymaic","Brahmi","Kaithi","Sora_Sompeng","Chakma","Mahajani","Sharada","Khojki","Multani","Khudawadi","Grantha","Newa","Tirhuta","Siddham","Modi","Takri","Ahom","Dogra","Warang_Citi","Nandinagari","Zanabazar_Square","Soyombo","Pau_Cin_Hau","Bhaiksuki","Marchen","Masaram_Gondi","Gunjala_Gondi","Makasar","Cuneiform","Egyptian_Hieroglyphs","Anatolian_Hieroglyphs","Mro","Bassa_Vah","Pahawh_Hmong","Medefaidrin","Miao","Tangut","Nushu","Duployan","SignWriting","Nyiakeng_Puachue_Hmong","Wancho","Mende_Kikakui","Adlam"],"eaw":["N","Na","A","W","H","F"]}`);var c=new(i(r))(i(n).toByteArray(`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`)),l=Math.log2||(e=>Math.log(e)/Math.LN2),u=e=>l(e)+1|0,d=u(i(s).categories.length-1),f=u(i(s).combiningClasses.length-1),p=u(i(s).scripts.length-1),m=u(i(s).eaw.length-1),h=10,g=f+p+m+h,_=p+m+h,v=m+h,y=h,b=(1<<d)-1,x=(1<<f)-1,S=(1<<p)-1,C=(1<<m)-1,w=(1<<h)-1;function T(e){let t=c.get(e);return i(s).categories[t>>g&b]}function E(e){let t=c.get(e);return i(s).combiningClasses[t>>_&x]}function D(e){let t=c.get(e);return i(s).scripts[t>>v&S]}function O(e){let t=c.get(e);return i(s).eaw[t>>y&C]}function k(e){let t=c.get(e),n=t&w;if(n===0)return null;if(n<=50)return n-1;if(n<480)return((n>>4)-12)/((n&15)+1);if(n<768){t=(n>>5)-14;let e=(n&31)+2;for(;e>0;)t*=10,e--;return t}else{t=(n>>2)-191;let e=(n&3)+1;for(;e>0;)t*=60,e--;return t}}function A(e){let t=T(e);return t===`Lu`||t===`Ll`||t===`Lt`||t===`Lm`||t===`Lo`||t===`Nl`}function j(e){return T(e)===`Nd`}function M(e){let t=T(e);return t===`Pc`||t===`Pd`||t===`Pe`||t===`Pf`||t===`Pi`||t===`Po`||t===`Ps`}function N(e){return T(e)===`Ll`}function P(e){return T(e)===`Lu`}function ee(e){return T(e)===`Lt`}function F(e){let t=T(e);return t===`Zs`||t===`Zl`||t===`Zp`}function I(e){let t=T(e);return t===`Nd`||t===`No`||t===`Nl`||t===`Lu`||t===`Ll`||t===`Lt`||t===`Lm`||t===`Lo`||t===`Me`||t===`Mc`}function L(e){let t=T(e);return t===`Mn`||t===`Me`||t===`Mc`}var R={getCategory:T,getCombiningClass:E,getScript:D,getEastAsianWidth:O,getNumericValue:k,isAlphabetic:A,isDigit:j,isPunctuation:M,isLowerCase:N,isUpperCase:P,isTitleCase:ee,isWhiteSpace:F,isBaseForm:I,isMark:L}})),ua=i((e=>{var t=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,`__esModule`,{value:!0}),e.makeNameStyle=e.addPrefixIfNecessary=e.combineWords=e.allLowerWordStyle=e.originalWord=e.allUpperWordStyle=e.firstUpperWordStyle=e.splitIntoWords=e.fastIsUpperCase=e.startWithLetter=e.snakeCase=e.camelCase=e.pascalCase=e.decapitalize=e.capitalize=e.trimEnd=e.isWordCharacter=e.isLetterOrUnderscoreOrDigit=e.isLetterOrUnderscore=e.isLetterOrDigit=e.isNumeric=e.isDigit=e.isLetter=e.isAscii=e.isPrintable=e.stringEscape=e.utf16StringEscape=e.escapeNonPrintableMapper=e.standardUnicodeHexEscape=e.intToHex=e.repeatString=e.legalizeCharacters=e.utf16LegalizeCharacters=e.utf32ConcatMap=e.utf16ConcatMap=void 0;var n=Q(),r=ia(),i=C(),a=t(la());function o(e){let t=[],n=[];for(let r=0;r<128;r++){let i=0,a=e(r);a===String.fromCharCode(r)&&(i=1),t.push(a),n.push(i)}return{charStringMap:t,charNoEscapeMap:n}}function s(e){let t=[];for(let n=0;n<128;n++)t.push(e(n));return function(n){return n<128?t[n]:e(n)}}function c(e){let{charStringMap:t,charNoEscapeMap:n}=o(e);return function(r){let i=null,a=0,o=0;for(;o<r.length;){let s=r.charCodeAt(o);if(n[s]!==1){i===null&&(i=[]),i.push(r.substring(a,o));let n=t[s];n===void 0?i.push(e(r.charCodeAt(o))):i.push(n),a=o+1}o++}return i===null?r:(i.push(r.substring(a,o)),i.join(``))}}e.utf16ConcatMap=c;function l(e){return e>=55296&&e<=56319}function u(e){return e>=56320&&e<=57343}function d(e){let{charStringMap:t,charNoEscapeMap:n}=o(e);return function(r){let a=null,o=0,s=0;for(;s<r.length;){let c=r.charCodeAt(s);if(n[c]!==1){if(a===null&&(a=[]),a.push(r.substring(o,s)),l(c)){let e=c;s++;let t=r.charCodeAt(s);(0,i.messageAssert)(u(t),`MiscUnicodeHighSurrogateWithoutLowSurrogate`,{});let n=e-55296;c=65536+(t-56320)+(n<<10)}let n=t[c];n===void 0?a.push(e(c)):a.push(n),o=s+1}s++}return a===null?r:(a.push(r.substring(o,s)),a.join(``))}}e.utf32ConcatMap=d;function f(e){return c(t=>e(t)?String.fromCharCode(t):``)}e.utf16LegalizeCharacters=f;function p(e){return d(t=>t<=65535&&e(t)?String.fromCharCode(t):``)}e.legalizeCharacters=p;function m(e,t){if((0,n.assert)(t>=0,`Cannot repeat a string a negative number of times`),t===0)return``;let r=``;do t%2!=0&&(r+=e),t=Math.floor(t/2),t>0&&(e+=e);while(t>0);return r}e.repeatString=m;function h(e,t){let n=e.toString(16);return n.length>=t?n:m(`0`,t-n.length)+n}e.intToHex=h;function g(e){return e<=65535?`\\u`+h(e,4):`\\U`+h(e,8)}e.standardUnicodeHexEscape=g;function _(e,t){function n(n){switch(n){case 92:return`\\\\`;case 34:return`\\"`;case 10:return`\\n`;case 9:return`\\t`;default:return e(n)?String.fromCharCode(n):t(n)}}return n}e.escapeNonPrintableMapper=_,e.utf16StringEscape=c(_(v,g)),e.stringEscape=d(_(v,g));function v(e){if(e>65535)return!1;let t=a.default.getCategory(e);return[`Mc`,`No`,`Sk`,`Me`,`Nd`,`Po`,`Lt`,`Pc`,`Sm`,`Zs`,`Lu`,`Pd`,`So`,`Pe`,`Pf`,`Ps`,`Sc`,`Ll`,`Lm`,`Pi`,`Nl`,`Mn`,`Lo`].indexOf(t)>=0}e.isPrintable=v;function y(e){return e<128}e.isAscii=y;function b(e){let t=a.default.getCategory(e);return[`Lu`,`Ll`,`Lt`,`Lo`].indexOf(t)>=0}e.isLetter=b;function x(e){let t=a.default.getCategory(e);return[`Nd`].indexOf(t)>=0}e.isDigit=x;function S(e){let t=a.default.getCategory(e);return[`No`,`Nd`,`Nl`].indexOf(t)>=0}e.isNumeric=S;function w(e){return b(e)||x(e)}e.isLetterOrDigit=w;function T(e){return b(e)||e===95}e.isLetterOrUnderscore=T;function E(e){return T(e)||x(e)}e.isLetterOrUnderscoreOrDigit=E;function D(e){return b(e)||x(e)}e.isWordCharacter=D;function O(e){let t=e.length,n=t;for(let r=t-1;r>=0&&a.default.isWhiteSpace(e.charCodeAt(r));r--)n=r;return n===t?e:e.slice(0,n)}e.trimEnd=O;function k(e,t){return t===``?t:e(t[0])+t.slice(1)}function A(e){return k(e=>e.toUpperCase(),e)}e.capitalize=A;function j(e){return k(e=>e.toLowerCase(),e)}e.decapitalize=j;var M=/[-_. ]+/;function N(e){return e.split(M).map(A).join(``)}e.pascalCase=N;function P(e){return j(N(e))}e.camelCase=P;function ee(e){return re(e).map(({word:e})=>e.toLowerCase()).join(`_`)}e.snakeCase=ee;function F(e,t,n){let r=t?A:j;return n===``?r(`empty`):e(n.charCodeAt(0))?r(n):r(`the`+n)}e.startWithLetter=F;var I=new Set(r.acronyms),L=s(D),R=s(e=>!D(e)),z=s(e=>a.default.isLowerCase(e));e.fastIsUpperCase=s(e=>a.default.isUpperCase(e));var te=s(e=>!a.default.isLowerCase(e)&&!a.default.isUpperCase(e)),ne=s(x);function re(t){let r=[],i,a=t.length,o=0,s;function c(){return o>=a}function l(){return(0,n.defined)(t.codePointAt(o))}function d(e){for(;!c();){let t=l();if(!e(t))break;z(t)&&(s=o),o++}}function f(){d(R)}function p(){d(z)}function m(){d(e.fastIsUpperCase)}function h(){d(te)}function g(){d(ne)}function _(){(0,n.assert)(i===void 0,`Interval started before last one was committed`),i=o}function v(){if(i===void 0)return(0,n.panic)(`Tried to commit interval without starting one`);(0,n.assert)(o>i,`Interval must be non-empty`),!c()&&u(l())&&(o+=1);let e=s===void 0||s<i;r.push([i,o,e]),i=void 0}function y(){return i===void 0?(0,n.panic)(`Tried to get interval length without starting one`):o-i}for(;f(),!c();)_(),z(l())?(p(),g(),v()):(0,e.fastIsUpperCase)(l())?(m(),c()?v():y()===1?(p(),g(),v()):x(l())?(g(),v()):(L(l())&&--o,v())):(h(),v());let b=[];for(let[e,n,i]of r){let r=t.slice(e,n),a=s!==void 0&&i||I.has(r.toLowerCase());b.push({word:r,isAcronym:a})}return b}e.splitIntoWords=re;function B(e){return(0,n.assert)(e.length>0,`Cannot style an empty string`),e[0].toUpperCase()+e.slice(1).toLowerCase()}e.firstUpperWordStyle=B;function V(e){return e.toUpperCase()}e.allUpperWordStyle=V;function ie(e){return e}e.originalWord=ie;function ae(e){return e.toLowerCase()}e.allLowerWordStyle=ae;function H(e,t){(0,n.assert)(t.length>0,`Tried to style an empty word`);let r=e(t);return(0,n.assert)(r.length>0,`Word style must not make word empty`),r}function oe(e,t,r,i,a,o,s,c){let l=[];for(let n of e){let e=t(n.word);e.length!==0&&l.push({word:e,isAcronym:n.isAcronym})}if(l.length===0){let e=t(`empty`);(0,n.assert)(e.length>0,`Word "empty" is invalid in target language`),l.push({word:e,isAcronym:!1})}let u=[],d=l[0],f=H(d.isAcronym?a:r,d.word),p;if(c((0,n.defined)(f.codePointAt(0))))u.push(f),p=l.slice(1);else{let e=t(`the`);(0,n.assert)(e.length>0,`Word "the" is invalid in the target language`);let i=H(r,e);(0,n.assert)(c((0,n.defined)(i.codePointAt(0))),`The first character of styling "the" is not a start character`),u.push(i),p=l}for(let e of p){let t=e.isAcronym?o:i;u.push(H(t,e.word))}return u.join(s)}e.combineWords=oe;function U(e,t){return t.startsWith(e)?t:e+t}e.addPrefixIfNecessary=U;function se(e,t,r){let i,a,o,s,c;switch(e===`pascal`||e===`camel`||e===`pascal-upper-acronyms`||e===`camel-upper-acronyms`?(i=``,e===`pascal-upper-acronyms`||e===`camel-upper-acronyms`?(o=B,c=V):o=c=B):i=`_`,e){case`pascal`:case`pascal-upper-acronyms`:a=s=B;break;case`camel`:case`camel-upper-acronyms`:a=s=ae;break;case`underscore`:a=o=s=c=ae;break;case`upper-underscore`:a=o=s=c=V;break;default:return(0,n.assertNever)(e)}return e=>{let n=oe(re(e),t,a,o,s,c,i,T);return r===void 0?n:U(r,n)}}e.makeNameStyle=se})),da=i((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.Chance=void 0;var t=class{constructor(e){e===void 0&&(e=Math.floor(Math.random()*10**13)),this.N=624,this.M=397,this.MATRIX_A=2567483615,this.UPPER_MASK=2147483648,this.LOWER_MASK=2147483647,this.mt=Array(this.N),this.mti=this.N+1,this.init_genrand(e)}init_genrand(e){for(this.mt[0]=e>>>0,this.mti=1;this.mti<this.N;this.mti++)e=this.mt[this.mti-1]^this.mt[this.mti-1]>>>30,this.mt[this.mti]=(((e&4294901760)>>>16)*1812433253<<16)+(e&65535)*1812433253+this.mti,this.mt[this.mti]>>>=0}genrand_int32(){let e,t=[0,this.MATRIX_A];if(this.mti>=this.N){let n;for(this.mti===this.N+1&&this.init_genrand(5489),n=0;n<this.N-this.M;n++)e=this.mt[n]&this.UPPER_MASK|this.mt[n+1]&this.LOWER_MASK,this.mt[n]=this.mt[n+this.M]^e>>>1^t[e&1];for(;n<this.N-1;n++)e=this.mt[n]&this.UPPER_MASK|this.mt[n+1]&this.LOWER_MASK,this.mt[n]=this.mt[n+(this.M-this.N)]^e>>>1^t[e&1];e=this.mt[this.N-1]&this.UPPER_MASK|this.mt[0]&this.LOWER_MASK,this.mt[this.N-1]=this.mt[this.M-1]^e>>>1^t[e&1],this.mti=0}return e=this.mt[this.mti++],e^=e>>>11,e^=e<<7&2636928640,e^=e<<15&4022730752,e^=e>>>18,e>>>0}random(){return this.genrand_int32()*(1/4294967296)}};e.Chance=class{constructor(e){this.seed=e,this.mt=new t(this.seed)}random(){return this.mt.random()}integer(e){return Math.floor(this.random()*(e.max-e.min+1)+e.min)}natural(e){return this.integer({min:0,max:e.max})}pick(e){if(e.length===0)throw RangeError(`Chance: Cannot pick() from an empty array`);return e[this.natural({max:e.length-1})]}animal(){return this.pick(n[this.pick([`desert`,`forest`,`ocean`,`zoo`,`farm`,`pet`,`grassland`])])}city(){return this.pick(r)}};var n={ocean:`Acantharea.Anemone.Angelfish King.Ahi Tuna.Albacore.American Oyster.Anchovy.Armored Snail.Arctic Char.Atlantic Bluefin Tuna.Atlantic Cod.Atlantic Goliath Grouper.Atlantic Trumpetfish.Atlantic Wolffish.Baleen Whale.Banded Butterflyfish.Banded Coral Shrimp.Banded Sea Krait.Barnacle.Barndoor Skate.Barracuda.Basking Shark.Bass.Beluga Whale.Bluebanded Goby.Bluehead Wrasse.Bluefish.Bluestreak Cleaner-Wrasse.Blue Marlin.Blue Shark.Blue Spiny Lobster.Blue Tang.Blue Whale.Broadclub Cuttlefish.Bull Shark.Chambered Nautilus.Chilean Basket Star.Chilean Jack Mackerel.Chinook Salmon.Christmas Tree Worm.Clam.Clown Anemonefish.Clown Triggerfish.Cod.Coelacanth.Cockscomb Cup Coral.Common Fangtooth.Conch.Cookiecutter Shark.Copepod.Coral.Corydoras.Cownose Ray.Crab.Crown-of-Thorns Starfish.Cushion Star.Cuttlefish.California Sea Otters.Dolphin.Dolphinfish.Dory.Devil Fish.Dugong.Dumbo Octopus.Dungeness Crab.Eccentric Sand Dollar.Edible Sea Cucumber.Eel.Elephant Seal.Elkhorn Coral.Emperor Shrimp.Estuarine Crocodile.Fathead Sculpin.Fiddler Crab.Fin Whale.Flameback.Flamingo Tongue Snail.Flashlight Fish.Flatback Turtle.Flatfish.Flying Fish.Flounder.Fluke.French Angelfish.Frilled Shark.Fugu (also called Pufferfish).Gar.Geoduck.Giant Barrel Sponge.Giant Caribbean Sea Anemone.Giant Clam.Giant Isopod.Giant Kingfish.Giant Oarfish.Giant Pacific Octopus.Giant Pyrosome.Giant Sea Star.Giant Squid.Glowing Sucker Octopus.Giant Tube Worm.Goblin Shark.Goosefish.Great White Shark.Greenland Shark.Grey Atlantic Seal.Grouper.Grunion.Guineafowl Puffer.Haddock.Hake.Halibut.Hammerhead Shark.Hapuka.Harbor Porpoise.Harbor Seal.Hatchetfish.Hawaiian Monk Seal.Hawksbill Turtle.Hector's Dolphin.Hermit Crab.Herring.Hoki.Horn Shark.Horseshoe Crab.Humpback Anglerfish.Humpback Whale.Icefish.Imperator Angelfish.Irukandji Jellyfish.Isopod.Ivory Bush Coral.Japanese Spider Crab.Jellyfish.John Dory.Juan Fernandez Fur Seal.Killer Whale.Kiwa Hirsuta.Krill.Lagoon Triggerfish.Lamprey.Leafy Seadragon.Leopard Seal.Limpet.Ling.Lionfish.Lions Mane Jellyfish.Lobe Coral.Lobster.Loggerhead Turtle.Longnose Sawshark.Longsnout Seahorse.Lophelia Coral.Marrus Orthocanna.Manatee.Manta Ray.Marlin.Megamouth Shark.Mexican Lookdown.Mimic Octopus.Moon Jelly.Mollusk.Monkfish.Moray Eel.Mullet.Mussel.Megaladon.Napoleon Wrasse.Nassau Grouper.Narwhal.Nautilus.Needlefish.Northern Seahorse.North Atlantic Right Whale.Northern Red Snapper.Norway Lobster.Nudibranch.Nurse Shark.Oarfish.Ocean Sunfish.Oceanic Whitetip Shark.Octopus.Olive Sea Snake.Orange Roughy.Ostracod.Otter.Oyster.Pacific Angelshark.Pacific Blackdragon.Pacific Halibut.Pacific Sardine.Pacific Sea Nettle Jellyfish.Pacific White Sided Dolphin.Pantropical Spotted Dolphin.Patagonian Toothfish.Peacock Mantis Shrimp.Pelagic Thresher Shark.Penguin.Peruvian Anchoveta.Pilchard.Pink Salmon.Pinniped.Plankton.Porpoise.Polar Bear.Portuguese Man o' War.Pycnogonid Sea Spider.Quahog.Queen Angelfish.Queen Conch.Queen Parrotfish.Queensland Grouper.Ragfish.Ratfish.Rattail Fish.Ray.Red Drum.Red King Crab.Ringed Seal.Risso's Dolphin.Ross Seals.Sablefish.Salmon.Sand Dollar.Sandbar Shark.Sawfish.Sarcastic Fringehead.Scalloped Hammerhead Shark.Seahorse.Sea Cucumber.Sea Lion.Sea Urchin.Seal.Shark.Shortfin Mako Shark.Shovelnose Guitarfish.Shrimp.Silverside Fish.Skipjack Tuna.Slender Snipe Eel.Smalltooth Sawfish.Smelts.Sockeye Salmon.Southern Stingray.Sponge.Spotted Porcupinefish.Spotted Dolphin.Spotted Eagle Ray.Spotted Moray.Squid.Squidworm.Starfish.Stickleback.Stonefish.Stoplight Loosejaw.Sturgeon.Swordfish.Tan Bristlemouth.Tasseled Wobbegong.Terrible Claw Lobster.Threespot Damselfish.Tiger Prawn.Tiger Shark.Tilefish.Toadfish.Tropical Two-Wing Flyfish.Tuna.Umbrella Squid.Velvet Crab.Venus Flytrap Sea Anemone.Vigtorniella Worm.Viperfish.Vampire Squid.Vaquita.Wahoo.Walrus.West Indian Manatee.Whale.Whale Shark.Whiptail Gulper.White-Beaked Dolphin.White-Ring Garden Eel.White Shrimp.Wobbegong.Wrasse.Wreckfish.Xiphosura.Yellowtail Damselfish.Yelloweye Rockfish.Yellow Cup Black Coral.Yellow Tube Sponge.Yellowfin Tuna.Zebrashark.Zooplankton`.split(`.`),desert:`Aardwolf.Addax.African Wild Ass.Ant.Antelope.Armadillo.Baboon.Badger.Bat.Bearded Dragon.Beetle.Bird.Black-footed Cat.Boa.Brown Bear.Bustard.Butterfly.Camel.Caracal.Caracara.Caterpillar.Centipede.Cheetah.Chipmunk.Chuckwalla.Climbing Mouse.Coati.Cobra.Cotton Rat.Cougar.Courser.Crane Fly.Crow.Dassie Rat.Dove.Dunnart.Eagle.Echidna.Elephant.Emu.Falcon.Fly.Fox.Frogmouth.Gecko.Geoffroy's Cat.Gerbil.Grasshopper.Guanaco.Gundi.Hamster.Hawk.Hedgehog.Hyena.Hyrax.Jackal.Kangaroo.Kangaroo Rat.Kestrel.Kowari.Kultarr.Leopard.Lion.Macaw.Meerkat.Mouse.Oryx.Ostrich.Owl.Pronghorn.Python.Rabbit.Raccoon.Rattlesnake.Rhinoceros.Sand Cat.Spectacled Bear.Spiny Mouse.Starling.Stick Bug.Tarantula.Tit.Toad.Tortoise.Tyrant Flycatcher.Viper.Vulture.Waxwing.Xerus.Zebra`.split(`.`),grassland:`Aardvark.Aardwolf.Accentor.African Buffalo.African Wild Dog.Alpaca.Anaconda.Ant.Anteater.Antelope.Armadillo.Baboon.Badger.Bandicoot.Barbet.Bat.Bee.Bee-eater.Beetle.Bird.Bison.Black-footed Cat.Black-footed Ferret.Bluebird.Boa.Bowerbird.Brown Bear.Bush Dog.Bushshrike.Bustard.Butterfly.Buzzard.Caracal.Caracara.Cardinal.Caterpillar.Cheetah.Chipmunk.Civet.Climbing Mouse.Clouded Leopard.Coati.Cobra.Cockatoo.Cockroach.Common Genet.Cotton Rat.Cougar.Courser.Coyote.Crane.Crane Fly.Cricket.Crow.Culpeo.Death Adder.Deer.Deer Mouse.Dingo.Dinosaur.Dove.Drongo.Duck.Duiker.Dunnart.Eagle.Echidna.Elephant.Elk.Emu.Falcon.Finch.Flea.Fly.Flying Frog.Fox.Frog.Frogmouth.Garter Snake.Gazelle.Gecko.Geoffroy's Cat.Gerbil.Giant Tortoise.Giraffe.Grasshopper.Grison.Groundhog.Grouse.Guanaco.Guinea Pig.Hamster.Harrier.Hartebeest.Hawk.Hedgehog.Helmetshrike.Hippopotamus.Hornbill.Hyena.Hyrax.Impala.Jackal.Jaguar.Jaguarundi.Kangaroo.Kangaroo Rat.Kestrel.Kultarr.Ladybug.Leopard.Lion.Macaw.Meerkat.Mouse.Newt.Oryx.Ostrich.Owl.Pangolin.Pheasant.Prairie Dog.Pronghorn.Przewalski's Horse.Python.Quoll.Rabbit.Raven.Rhinoceros.Shelduck.Sloth Bear.Spectacled Bear.Squirrel.Starling.Stick Bug.Tamandua.Tasmanian Devil.Thornbill.Thrush.Toad.Tortoise`.split(`.`),forest:`Agouti.Anaconda.Anoa.Ant.Anteater.Antelope.Armadillo.Asian Black Bear.Aye-aye.Babirusa.Baboon.Badger.Bandicoot.Banteng.Barbet.Basilisk.Bat.Bearded Dragon.Bee.Bee-eater.Beetle.Bettong.Binturong.Bird-of-paradise.Bongo.Bowerbird.Bulbul.Bush Dog.Bushbaby.Bushshrike.Butterfly.Buzzard.Caecilian.Cardinal.Cassowary.Caterpillar.Centipede.Chameleon.Chimpanzee.Cicada.Civet.Clouded Leopard.Coati.Cobra.Cockatoo.Cockroach.Colugo.Cotinga.Cotton Rat.Cougar.Crane Fly.Cricket.Crocodile.Crow.Cuckoo.Cuscus.Death Adder.Deer.Dhole.Dingo.Dinosaur.Drongo.Duck.Duiker.Eagle.Echidna.Elephant.Finch.Flat-headed Cat.Flea.Flowerpecker.Fly.Flying Frog.Fossa.Frog.Frogmouth.Gaur.Gecko.Gorilla.Grison.Hawaiian Honeycreeper.Hawk.Hedgehog.Helmetshrike.Hornbill.Hyrax.Iguana.Jackal.Jaguar.Jaguarundi.Kestrel.Ladybug.Lemur.Leopard.Lion.Macaw.Mandrill.Margay.Monkey.Mouse.Mouse Deer.Newt.Okapi.Old World Flycatcher.Orangutan.Owl.Pangolin.Peafowl.Pheasant.Possum.Python.Quokka.Rabbit.Raccoon.Red Panda.Red River Hog.Rhinoceros.Sloth Bear.Spectacled Bear.Squirrel.Starling.Stick Bug.Sun Bear.Tamandua.Tamarin.Tapir.Tarantula.Thrush.Tiger.Tit.Toad.Tortoise.Toucan.Trogon.Trumpeter.Turaco.Turtle.Tyrant Flycatcher.Viper.Vulture.Wallaby.Warbler.Wasp.Waxwing.Weaver.Weaver-finch.Whistler.White-eye.Whydah.Woodswallow.Worm.Wren.Xenops.Yellowjacket.Accentor.African Buffalo.American Black Bear.Anole.Bird.Bison.Boa.Brown Bear.Chipmunk.Common Genet.Copperhead.Coyote.Deer Mouse.Dormouse.Elk.Emu.Fisher.Fox.Garter Snake.Giant Panda.Giant Tortoise.Groundhog.Grouse.Guanaco.Himalayan Tahr.Kangaroo.Koala.Numbat.Quoll.Raccoon dog.Tasmanian Devil.Thornbill.Turkey.Vole.Weasel.Wildcat.Wolf.Wombat.Woodchuck.Woodpecker`.split(`.`),farm:`Alpaca.Buffalo.Banteng.Cow.Cat.Chicken.Carp.Camel.Donkey.Dog.Duck.Emu.Goat.Gayal.Guinea.Goose.Horse.Honey.Llama.Pig.Pigeon.Rhea.Rabbit.Sheep.Silkworm.Turkey.Yak.Zebu`.split(`.`),pet:`Bearded Dragon.Birds.Burro.Cats.Chameleons.Chickens.Chinchillas.Chinese Water Dragon.Cows.Dogs.Donkey.Ducks.Ferrets.Fish.Geckos.Geese.Gerbils.Goats.Guinea Fowl.Guinea Pigs.Hamsters.Hedgehogs.Horses.Iguanas.Llamas.Lizards.Mice.Mule.Peafowl.Pigs and Hogs.Pigeons.Ponies.Pot Bellied Pig.Rabbits.Rats.Sheep.Skinks.Snakes.Stick Insects.Sugar Gliders.Tarantula.Turkeys.Turtles`.split(`.`),zoo:`Aardvark.African Wild Dog.Aldabra Tortoise.American Alligator.American Bison.Amur Tiger.Anaconda.Andean Condor.Asian Elephant.Baby Doll Sheep.Bald Eagle.Barred Owl.Blue Iguana.Boer Goat.California Sea Lion.Caribbean Flamingo.Chinchilla.Collared Lemur.Coquerel's Sifaka.Cuban Amazon Parrot.Ebony Langur.Fennec Fox.Fossa.Gelada.Giant Anteater.Giraffe.Gorilla.Grizzly Bear.Henkel's Leaf-tailed Gecko.Indian Gharial.Indian Rhinoceros.King Cobra.King Vulture.Komodo Dragon.Linne's Two-toed Sloth.Lion.Little Penguin.Madagascar Tree Boa.Magellanic Penguin.Malayan Tapir.Malayan Tiger.Matschies Tree Kangaroo.Mini Donkey.Monarch Butterfly.Nile crocodile.North American Porcupine.Nubian Ibex.Okapi.Poison Dart Frog.Polar Bear.Pygmy Marmoset.Radiated Tortoise.Red Panda.Red Ruffed Lemur.Ring-tailed Lemur.Ring-tailed Mongoose.Rock Hyrax.Small Clawed Asian Otter.Snow Leopard.Snowy Owl.Southern White-faced Owl.Southern White Rhinocerous.Squirrel Monkey.Tufted Puffin.White Cheeked Gibbon.White-throated Bee Eater.Zebra`.split(`.`)},r=[`Alert`,`Nord`,`Eureka`,`Ny-Ålesund`,`Longyearbyen`,`Qaanaaq`,`Grise Fiord`,`Dikson`,`Upernavik`,`Tiksi`,`Belushya Guba`,`Barrow`,`Honningsvåg`,`Hammerfest`,`Deadhorse`,`Nuorgam`,`Vadsø`,`Alta`,`Utsjoki`,`Kirkenes`,`Tromsø`,`Tuktoyaktuk`,`Norilsk`,`Murmansk`,`Harstad`,`Narvik`,`Inuvik`,`Kiruna`,`Verkhoyansk`,`Bodø`,`Gällivare`,`Kemijärvi`,`Rovaniemi`,`Ísafjörður`,`Kuusamo`,`Tornio`,`Boden`,`Haparanda`,`Kemi`,`Akureyri`,`Luleå`,`Pudasjärvi`,`Piteå`,`Oulu`,`Fairbanks`,`Skellefteå`,`Anadyr`,`Arkhangelsk`,`Nome`,`Nuuk (Godthåb)`,`Reykjavík`,`Umeå`,`Iqaluit`,`Stjørdal`,`Trondheim`,`Örnsköldsvik`,`Östersund`,`Vaasa`,`Kuopio`,`Yellowknife`,`Sundsvall`,`Jyväskylä`,`Yakutsk`,`Tórshavn`,`Petrozavodsk`,`Tampere`,`Anchorage`,`Lillehammer`,`Lahti`,`Qaqortoq`,`Whitehorse`,`Turku`,`Bergen`,`Vantaa`,`Lerwick`,`Espoo`,`Helsinki`,`Oslo`,`Saint Petersburg`,`Uppsala`,`Fritz Creek`,`Magadan`,`Tallinn`,`Stockholm`,`Sarpsborg`,`Örebro`,`Vologda`,`Norrköping`,`Linköping`,`Tartu`,`Juneau`,`Arendal`,`Kristiansand`,`Perm`,`Valga`,`Gothenburg`,`Visby`,`Yaroslavl`,`Inverness`,`Aberdeen`,`Sitka`,`Riga`,`Izhevsk`,`Yekaterinburg`,`Fort McMurray`,`Dundee`,`Nizhny Novgorod`,`Stirling`,`Bratsk`,`Aarhus`,`Krasnoyarsk`,`Edinburgh`,`Glasgow`,`Kazan`,`Moscow`,`Copenhagen`,`Malmö`,`Esbjerg`,`Odense`,`Grande Prairie`,`Chelyabinsk`,`Novosibirsk`,`Derry`,`Omsk`,`Newcastle upon Tyne`,`Sunderland`,`Petropavl`,`Flensburg`,`Ufa`,`Kaliningrad`,`Vilnius`,`Belfast`,`Middlesbrough`,`Gdynia`,`Gdańsk`,`Kiel`,`Douglas`,`Rostock`,`Lancaster`,`York`,`Prince George`,`Minsk`,`Bradford`,`Leeds`,`Hamburg`,`Edmonton`,`Tolyatti`,`Manchester`,`Liverpool`,`Sheffield`,`Dublin`,`Groningen`,`Samara`,`Bremen`,`Petropavlovsk-Kamchatsky`,`Nottingham`,`Derby`,`Leicester`,`Norwich`,`Peterborough`,`Berlin`,`Birmingham`,`Gomel`,`Coventry`,`Poznań`,`Haarlem`,`Amsterdam`,`Hannover`,`Irkutsk`,`Warsaw`,`Enschede`,`Cambridge`,`Leiden`,`Saskatoon`,`Utrecht`,`The Hague`,`Münster`,`Rotterdam`,`Cork`,`Adak`,`Gloucester`,`Oxford`,`Voronezh`,`Swansea`,`Saratov`,`Dortmund`,`London`,`Cardiff`,`Greenwich`,`Bristol`,`Bath`,`Leipzig`,`Düsseldorf`,`Antwerp`,`Astana`,`Winchester`,`Calgary`,`Ghent`,`Dresden`,`Erfurt`,`Calais`,`Cologne`,`Southampton`,`Maastricht`,`Brussels`,`Brighton and Hove`,`Portsmouth`,`Exeter`,`Kamloops`,`Lille`,`Regina`,`Kiev`,`Charleroi`,`Plymouth`,`Frankfurt am Main`,`Prague`,`Kraków`,`Kharkiv`,`Winnipeg`,`Kelowna`,`Lviv`,`Luxembourg`,`Le Havre`,`Nuremberg`,`Rouen`,`Vancouver`,`Paris`,`Stuttgart`,`Bellingham`,`Volgograd`,`Strasbourg`,`Dnipro`,`Victoria`,`Saguenay`,`Brest`,`Thunder Bay`,`Linz`,`Vienna`,`Bratislava`,`Munich`,`Donetsk`,`Ulaanbaatar`,`Orléans`,`Salzburg`,`Seattle`,`St. John's`,`Basel`,`Budapest`,`Qiqihar`,`Zürich`,`Innsbruck`,`Rostov-on-Don`,`Nantes`,`Vaduz`,`Atyrau`,`Graz`,`Chişinău`,`Bern`,`Tiraspol`,`Quebec City`,`Bismarck`,`Duluth`,`Saint-Pierre`,`Cluj-Napoca`,`Moscow`,`Helena`,`Sault Ste. Marie`,`Lausanne`,`Sudbury`,`Odessa`,`North Bay`,`Charlottetown`,`Geneva`,`Moncton`,`Ljubljana`,`Fredericton`,`Zagreb`,`Lyon`,`Harbin`,`New Glasgow`,`Portland`,`Montreal`,`Milan`,`Venice`,`Ottawa`,`Wakkanai`,`Saint John`,`Novi Sad`,`Turin`,`Krasnodar`,`Minneapolis`,`Simferopol`,`Halifax`,`Bordeaux`,`Belgrade`,`Šabac`,`Drobeta Turnu Severin`,`Bologna`,`Bucharest`,`Ravenna`,`Genoa`,`Pierre`,`Craiova`,`Augusta`,`Montpelier`,`Bath`,`San Marino`,`Changchun`,`Sarajevo`,`Yarmouth`,`Ürümqi`,`Florence`,`Asahikawa`,`Monaco`,`Nice`,`Toronto`,`Boise`,`Toulouse`,`Sochi`,`Cannes`,`Gijón`,`Sioux Falls`,`Split`,`Oviedo`,`Nemuro`,`San Sebastián`,`Marseille`,`Almaty`,`Bilbao`,`Concord`,`Rochester`,`Vladivostok`,`Sapporo`,`Milwaukee`,`Sukhumi`,`Kushiro`,`London`,`Follonica`,`Obihiro`,`Buffalo`,`Santiago de Compostela`,`Bishkek`,`Vitoria-Gasteiz`,`Sofia`,`Pristina`,`Andorra la Vella`,`Nukus`,`Podgorica`,`Boston`,`Detroit`,`Windsor`,`Vigo`,`Tskhinvali`,`Avezzano`,`Skopje`,`Colchester`,`Rome`,`Vatican City`,`Chicago`,`Providence`,`Shenyang`,`Chongjin`,`Hartford`,`Hakodate`,`Tbilisi`,`Valladolid`,`Zaragoza`,`Des Moines`,`Braga`,`Cleveland`,`Barcelona`,`Tirana`,`Tashkent`,`Porto`,`Cheyenne`,`Bari`,`Fort Wayne`,`Istanbul`,`Trabzon`,`Namangan`,`Naples`,`Aomori`,`Lincoln`,`Eureka`,`Salt Lake City`,`Jersey City`,`New York City`,`Thessaloniki`,`Lleida`,`Pittsburgh`,`Baku`,`Madrid`,`Trenton`,`Bursa`,`Yerevan`,`Boulder`,`Columbus`,`Ankara`,`Philadelphia`,`Beijing`,`Stepanakert`,`Forked River`,`Eskisehir`,`Indianapolis`,`Denver`,`Akita`,`Morioka`,`Palma`,`Reno`,`Flores Island`,`Valencia`,`Baltimore`,`Cagliari`,`Dover`,`Wonsan`,`Tianjin`,`Cincinnati`,`Kansas City`,`Pyongyang`,`Ibiza`,`Dalian`,`Washington`,`Lisbon`,`St. Louis`,`Horta`,`Sacramento`,`Dushanbe`,`Angra do Heroísmo`,`Halkida`,`İzmir`,`Charleston`,`Alicante`,`Sendai`,`Louisville`,`Yamagata`,`Messina`,`Palermo`,`Tabriz`,`Shijiazhuang`,`Trapani`,`Athena`,`Kaesong`,`Ashgabat`,`Niigata`,`Taiyuan`,`Konya`,`Ponta Delgada`,`Oakland`,`San Francisco`,`Fukushima`,`Wichita`,`Seoul`,`San Jose`,`Catania`,`Incheon`,`Sevilla`,`Mugla`,`Springfield`,`Gaziantep`,`Adana`,`Virginia Beach`,`Almería`,`Tunis`,`Mersin`,`Algiers`,`Málaga`,`Toyama`,`Jinan`,`Nagano`,`Xining`,`Handan`,`Kanazawa`,`Utsunomiya`,`Maebashi`,`Mito`,`Mosul`,`Mashhad`,`Arbil`,`Las Vegas`,`Nashville`,`Gibraltar`,`Tulsa`,`Fukui`,`Qingdao`,`Lanzhou`,`Knoxville`,`Valletta`,`Birkirkara`,`Los Alamos`,`Daegu`,`Raleigh`,`Tangier`,`Tehran`,`Tokyo`,`Santa Fe`,`Kōfu`,`Chiba`,`Latakia`,`Kawasaki`,`Tottori`,`Oklahoma City`,`Matsue`,`Kirkuk`,`Yokohama`,`Gifu`,`Tiaret`,`Heraklion`,`Melilla`,`Charlotte`,`Nagoya`,`Busan`,`Nicosia`,`Memphis`,`Albuquerque`,`Ōtsu`,`Kyoto`,`Shizuoka`,`Zhengzhou`,`Little Rock`,`Sfax`,`Tsu`,`Osaka`,`Kōbe`,`Nara`,`Okayama`,`Kabul`,`Santa Barbara`,`Hiroshima`,`Takamatsu`,`Xi'an`,`Wakayama`,`Wilmington`,`Yamaguchi`,`Arak`,`Srinagar`,`Tokushima`,`Los Angeles`,`Rabat`,`Peshawar`,`Columbia`,`Riverside`,`Beirut`,`Matsuyama`,`Atlanta`,`Islamabad`,`Birmingham`,`Rawalpindi`,`Fukuoka`,`Kōchi`,`Casablanca`,`Damascus`,`Phoenix`,`Lubbock`,`Baghdad`,`Saga`,`Ōita`,`Tripoli`,`Charleston`,`Dallas`,`Nagasaki`,`Kumamoto`,`San Diego`,`Mexicali`,`Funchal`,`El Centro`,`Isfahan`,`Karbala`,`Tijuana`,`Shreveport`,`Jackson`,`Hamilton`,`Tucson`,`Benghazi`,`Tel Aviv`,`Nanjing`,`Najaf`,`Amman`,`Miyazaki`,`Ramallah`,`Ensenada`,`El Paso`,`Jerusalem`,`Ciudad Juárez`,`Amritsar`,`Marrakech`,`Kandahar`,`Kagoshima`,`Lahore`,`Gaza`,`Faisalabad`,`Port Said`,`Alexandria`,`Shanghai`,`Shimla`,`Ludhiana`,`Chandigarh`,`Mobile`,`Chengdu`,`Wuhan`,`Basra`,`Agadir`,`Jacksonville`,`Austin`,`Hangzhou`,`Multan`,`Cairo`,`New Orleans`,`Suez`,`Houston`,`Lhasa`,`Chongqing`,`Eilat`,`San Antonio`,`Kuwait City`,`Shigatse`,`Hermosillo`,`Chihuahua`,`New Delhi`,`Santa Cruz de Tenerife`,`Orlando`,`Las Palmas de Gran Canaria`,`Tampa`,`Corpus Christi`,`Maspalomas`,`Kathmandu`,`Dibrugarh`,`Thimphu`,`Gangtok`,`Agra`,`El Aaiún`,`Sabha`,`Jaipur`,`Lucknow`,`Siliguri`,`Tezpur`,`Kanpur`,`Dammam`,`Naha`,`Manama`,`Guwahati`,`Brownsville`,`Miami`,`Luxor`,`Monterrey`,`Patna`,`Shillong`,`Torreón`,`Kulpahar`,`Doha`,`Dubai`,`Hyderabad`,`Nassau`,`Kunming`,`Taipei`,`Karachi`,`Culiacán`,`Riyadh`,`Key West`,`Medina`,`Abu Dhabi`,`Al Ain`,`Taichung`,`Durango`,`Agartala`,`Dhaka`,`Muscat`,`Havana`,`Guangzhou`,`Ahmedabad`,`Dongguan`,`Tainan`,`Cabo San Lucas`,`Nanning`,`Kaohsiung`,`Kolkata (Calcutta)`,`Shenzhen`,`Chittagong`,`Hong Kong`,`Tampico`,`San Luis Potosí`,`Aguascalientes`,`Jeddah`,`Cockburn Town`,`Mecca`,`Honolulu`,`Chhattisgarh`,`Cancún`,`Surat`,`Nagpur`,`León`,`Hanoi`,`Mérida`,`Hai Phong`,`Zapopan`,`Puerto Vallarta`,`Guadalajara`,`Querétaro`,`Haikou`,`Santiago de Cuba`,`Chiang Rai`,`Naypyidaw`,`Hilo`,`George Town`,`Veracruz`,`Puebla`,`Mumbai`,`Chiang Mai`,`Port-au-Prince`,`Pune`,`Santo Domingo`,`San Juan`,`Road Town`,`Charlotte Amalie`,`The Valley`,`Nouakchott`,`Kingston`,`Vientiane`,`Visakhapatnam`,`Belize City`,`Udon Thani`,`Hyderabad`,`Basseterre`,`Belmopan`,`St. John's`,`Salalah`,`Acapulco`,`Yangon`,`Timbuktu`,`Huế`,`Khon Kaen`,`Da Nang`,`Basse-Terre`,`Omdurman`,`Khartoum`,`Sana'a`,`Asmara`,`Roseau`,`Saipan`,`Son My`,`Nakhon Ratchasima`,`Praia`,`Tapachula`,`Quetzaltenango`,`Thiès`,`Dakar`,`Quezon City`,`Guatemala City`,`Fort-de-France`,`Manila`,`Makati`,`Ayutthaya`,`Tegucigalpa`,`Castries`,`Bangkok`,`San Salvador`,`Niamey`,`Dededo`,`Hagåtña`,`Banjul`,`Serekunda`,`Siem Reap`,`Brikama`,`Kingstown`,`Bridgetown`,`Chennai (Madras)`,`Bangalore`,`Pattaya`,`Koulikoro`,`Bamako`,`Chinandega`,`Oranjestad`,`Ouagadougou`,`Managua`,`Willemstad`,`N'Djamena`,`St. George's`,`Kano`,`Bissau`,`Port Blair`,`Djibouti`,`Phnom Penh`,`Bobo-Dioulasso`,`Barranquilla`,`Ho Chi Minh City`,`Iloilo City`,`Port of Spain`,`Maracaibo`,`Liberia`,`Caracas`,`Chaguanas`,`Cartagena`,`San Fernando`,`Cebu City`,`Maracay`,`Valencia`,`Alajuela`,`Limón`,`Jaffna`,`Hargeisa`,`Puntarenas`,`Kochi`,`San José`,`Tagbilaran`,`Conakry`,`Tamale`,`Surat Thani`,`Abuja`,`Addis Ababa`,`Panama City`,`Mérida`,`Moundou`,`Trivandrum`,`Freetown`,`Ciudad Bolívar`,`Cúcuta`,`Phuket`,`San Cristóbal`,`Nzérékoré`,`Batticaloa`,`Melekeok`,`Weno`,`Ibadan`,`Koror`,`Kandy`,`Majuro`,`Davao City`,`Hat Yai`,`Colombo`,`Palikir`,`Sri Jayawardenapura-Kotte`,`Zamboanga City`,`Yamoussoukro`,`Georgetown`,`Kumasi`,`Porto-Novo`,`Lagos`,`Enugu`,`Cotonou`,`Benin City`,`Monrovia`,`Medellín`,`Lomé`,`Kota Bharu`,`Alor Setar`,`Kota Kinabalu`,`Paramaribo`,`Puerto Ayacucho`,`Accra`,`Banda Aceh`,`George Town`,`Abidjan`,`Cayenne`,`Sekondi-Takoradi`,`Bandar Seri Begawan`,`Juba`,`Port Harcourt`,`Ipoh`,`Bogotá`,`Miri`,`Bangui`,`Malé`,`Douala`,`Yaoundé`,`Malabo`,`Medan`,`Santiago de Cali`,`Kuala Lumpur`,`Boa Vista`,`Malacca Town`,`Mogadishu`,`Kuching`,`Johor Bahru`,`South Tarawa`,`Singapore`,`Pekanbaru`,`Libreville`,`São Tomé`,`Kampala`,`Entebbe`,`Mbandaka`,`Macapá`,`Pontianak`,`Quito`,`Kismayo`,`Yaren District`,`Padang`,`Balikpapan`,`Nairobi`,`Belém`,`Kigali`,`Guayaquil`,`Mwanza`,`São Luís`,`Jayapura`,`Palembang`,`Manaus`,`Bujumbura`,`Sobral`,`Ambon`,`Fortaleza`,`Iquitos`,`Fernando de Noronha`,`Mombasa`,`Brazzaville`,`Kinshasa`,`Victoria`,`Teresina`,`Makassar`,`Imperatriz`,`Natal`,`Zanzibar City`,`Dodoma`,`Jakarta`,`Bogor`,`Dar es Salaam`,`Bandung`,`Semarang`,`João Pessoa`,`Juazeiro do Norte`,`Campina Grande`,`Surabaya`,`Yogyakarta`,`Malang`,`Recife`,`Trujillo`,`Caruaru`,`Funafuti`,`Dili`,`Denpasar`,`Porto Velho`,`Luanda`,`Garanhuns`,`Nukulaelae`,`Petrolina`,`Honiara`,`Port Moresby`,`Maceió`,`Rio Branco`,`Aracaju`,`Palmas`,`Lubumbashi`,`Moroni`,`Sinop`,`Lima`,`Darwin`,`Huambo`,`Mamoudzou`,`Ndola`,`Salvador`,`Ayacucho`,`Mata-Utu`,`Cusco`,`Apia`,`Lilongwe`,`Pago Pago`,`Ilhéus`,`Lusaka`,`Cuiabá`,`Blantyre`,`Brasília`,`Jamestown`,`Arequipa`,`Labasa`,`Rabi Island`,`La Paz`,`Goiânia`,`Cairns`,`Papeete`,`Port Vila`,`Santa Cruz de la Sierra`,`Livingstone`,`Harare`,`Suva`,`Arica`,`Governador Valadares`,`Uberlândia`,`Antananarivo`,`Mutare`,`Sucre`,`Alofi`,`Townsville`,`Gweru`,`Belo Horizonte`,`Port Louis`,`Bulawayo`,`Iquique`,`Port Hedland`,`Vitória`,`Campo Grande`,`São José do Rio Preto`,`Saint-Denis`,`Nukuʻalofa`,`Francistown`,`Ribeirão Preto`,`Avarua`,`Juiz de Fora`,`Poços de Caldas`,`Araraquara`,`Nouméa`,`Bauru`,`Calama`,`Windhoek`,`Assis`,`Campinas`,`Rio de Janeiro`,`São José dos Campos`,`Rockhampton`,`São Paulo`,`Antofagasta`,`Polokwane`,`Gaborone`,`Salta`,`Adamstown`,`Asunción`,`Curitiba`,`Nelspruit`,`Ciudad del Este`,`Pretoria`,`Mafikeng`,`Maputo`,`Johannesburg`,`Mbabane`,`Lobamba`,`Manzini`,`San Miguel de Tucumán`,`Hanga Roa`,`Copiapó`,`Brisbane`,`Corrientes`,`Florianópolis`,`Gold Coast`,`Kimberley`,`Kingston`,`Bloemfontein`,`Maseru`,`Pietermaritzburg`,`Durban`,`La Serena`,`Córdoba`,`Santa Fe`,`Pelotas`,`Perth`,`San Juan`,`Mandurah`,`Bhisho`,`Mendoza`,`Newcastle`,`Rosario`,`Viña del Mar`,`Valparaíso`,`Santiago`,`Chuí`,`Sydney`,`Cape Town`,`Port Elizabeth`,`Wollongong`,`Buenos Aires`,`Montevideo`,`Adelaide`,`Canberra`,`Concepción`,`Auckland`,`Edinburgh of the Seven Seas`,`Hamilton`,`Melbourne`,`Mar del Plata`,`Geelong`,`Bahía Blanca`,`Temuco`,`Neuquén`,`Hastings`,`Valdivia`,`San Carlos de Bariloche`,`Nelson`,`Wellington`,`Puerto Montt`,`Launceston, Tasmania`,`Hobart`,`Trelew`,`Christchurch`,`Waitangi`,`Puerto Aisén`,`Coihaique`,`Comodoro Rivadavia`,`Dunedin`,`Invercargill`,`Río Gallegos`,`Stanley`,`Punta Arenas`,`Grytviken`,`Ushuaia`,`Puerto Williams`,`Puerto Toro`,`Villa Las Estrellas`,`Esperanza`,`Rothera`,`Concordia`]})),fa=i((e=>{var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,`default`,{enumerable:!0,value:t})}):function(e,t){e.default=t}),r=e&&e.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var i in e)i!==`default`&&Object.prototype.hasOwnProperty.call(e,i)&&t(r,e,i);return n(r,e),r};Object.defineProperty(e,`__esModule`,{value:!0}),e.makeNamesTypeAttributes=e.singularizeTypeNames=e.modifyTypeNames=e.namesTypeAttributeKind=e.TooManyTypeNames=e.RegularTypeNames=e.TypeNames=e.tooManyNamesThreshold=e.initTypeNames=void 0;var i=r(ta()),o=a(),s=Q(),c=na(),l=ua(),u=da(),d,f;function p(){d=new u.Chance(31415),f=new Set}e.initTypeNames=p,p();function m(){for(;;){let e=`${d.city()} ${d.animal()}`;if(!f.has(e))return f.add(e),e}}function h(e){let t=(0,o.iterableFirst)(e);if(t===void 0)return(0,s.panic)(`Named type has no names`);if(e.size===1)return t;let n=(0,o.setMap)(e,e=>(0,l.splitIntoWords)(e).map(e=>e.word.toLowerCase()).join(`_`)),r=(0,s.defined)((0,o.iterableFirst)(n));if(n.size===1)return r;let i=r.length,a=r.length;for(let e of(0,o.iterableSkip)(n,1)){i=Math.min(i,e.length);for(let t=0;t<i;t++)if(r[t]!==e[t]){i=t;break}a=Math.min(a,e.length);for(let t=0;t<a;t++)if(r[r.length-t-1]!==e[e.length-t-1]){a=t;break}}let c=(i>2?r.slice(0,i):``)+(a>2?r.slice(r.length-a):``);return c.length>2?c:r}e.tooManyNamesThreshold=1e3;var g=class t{static makeWithDistance(t,n,r){return t.size>=e.tooManyNamesThreshold?new v(r):((n===void 0||n.size>e.tooManyNamesThreshold)&&(n=void 0),new _(t,n,r))}static make(e,n,r){return t.makeWithDistance(e,n,r?1:0)}constructor(e){this.distance=e}get areInferred(){return this.distance>0}};e.TypeNames=g;var _=class e extends g{constructor(e,t,n){super(n),this.names=e,this._alternativeNames=t}add(t,n=0){let r=new Set(this.names),i=this.distance,a=(0,o.definedMap)(this._alternativeNames,e=>new Set(e));for(let c=n;c<t.length;c++){let n=t[c];if(n instanceof e&&n._alternativeNames!==void 0&&(a===void 0&&(a=new Set),(0,o.setUnionInto)(a,n._alternativeNames)),!(n.distance>i)){if(!(n instanceof e))return(0,s.assert)(n instanceof v,`Unknown TypeNames instance`),n.add(t,c+1);n.distance<i?(r=new Set(n.names),i=n.distance,a=(0,o.definedMap)(n._alternativeNames,e=>new Set(e))):((0,s.assert)(n.distance===i,`This should be the only case left`),(0,o.setUnionInto)(r,n.names))}}return g.makeWithDistance(r,a,i)}clearInferred(){let e=this.areInferred?new Set:this.names;return g.makeWithDistance(e,new Set,this.distance)}get combinedName(){return h(this.names)}get proposedNames(){let e=new Set([this.combinedName]);return this._alternativeNames===void 0||(0,o.setUnionInto)(e,this._alternativeNames),e}makeInferred(){return g.makeWithDistance(this.names,this._alternativeNames,this.distance+1)}singularize(){return g.makeWithDistance((0,o.setMap)(this.names,i.singular),(0,o.definedMap)(this._alternativeNames,e=>(0,o.setMap)(e,i.singular)),this.distance+1)}toString(){let e=`${this.areInferred?`distance ${this.distance}`:`given`} ${Array.from(this.names).join(`,`)}`;return this._alternativeNames===void 0?e:`${e} (${Array.from(this._alternativeNames).join(`,`)})`}};e.RegularTypeNames=_;var v=class e extends g{constructor(e,t){super(e),t===void 0&&(t=m()),this.names=new Set([t])}get combinedName(){return(0,s.defined)((0,o.iterableFirst)(this.names))}get proposedNames(){return this.names}add(e,t=0){if(!this.areInferred)return this;for(let n=t;n<e.length;n++){let t=e[n];if(t.distance<this.distance)return t.add(e,n+1)}return this}clearInferred(){return this.areInferred?g.makeWithDistance(new Set,new Set,this.distance):this}makeInferred(){return new e(this.distance+1,(0,o.iterableFirst)(this.names))}singularize(){return this}toString(){return`too many ${this.combinedName}`}};e.TooManyTypeNames=v,e.namesTypeAttributeKind=new class extends c.TypeAttributeKind{constructor(){super(`names`)}combine(e){return(0,s.assert)(e.length>0,`Can't combine zero type names`),e[0].add(e,1)}makeInferred(e){return e.makeInferred()}increaseDistance(e){return e.makeInferred()}stringify(e){return e.toString()}};function y(t,n){return e.namesTypeAttributeKind.modifyInAttributes(t,n)}e.modifyTypeNames=y;function b(e){return y(e,e=>{if(e!==void 0)return e.singularize()})}e.singularizeTypeNames=b;function x(t,n){let r;return r=typeof t==`string`?g.make(new Set([t]),new Set,(0,s.defined)(n)):t,e.namesTypeAttributeKind.makeAttributes(r)}e.makeNamesTypeAttributes=x})),pa=i((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.TypeBuilder=e.getNoStringTypeMapping=e.stringTypeMappingGet=e.provenanceTypeAttributeKind=void 0;var t=a(),n=wa(),r=va(),i=na(),o=Q(),s=ma();e.provenanceTypeAttributeKind=new class extends i.TypeAttributeKind{constructor(){super(`provenance`)}appliesToTypeKind(e){return!0}combine(e){return(0,t.setUnionManyInto)(new Set,e)}makeInferred(e){return e}stringify(e){return Array.from(e).sort().map(e=>e.toString()).join(`,`)}};function c(e,t){let n=e.get(t);return n===void 0?`string`:n}e.stringTypeMappingGet=c;var l;function u(){return l===void 0&&(l=new Map(Array.from(n.transformedStringTypeKinds).map(e=>[e,e]))),l}e.getNoStringTypeMapping=u,e.TypeBuilder=class{constructor(e,n,i,a,s,c){this._stringTypeMapping=n,this.canonicalOrder=i,this._allPropertiesOptional=a,this._addProvenanceAttributes=s,this.topLevels=new Map,this.types=[],this.typeAttributes=[],this._addedForwardingIntersection=!1,this._typeForIdentity=new t.EqualityMap,(0,o.assert)(!s||!c,`We can't both inherit as well as add provenance`),this.typeGraph=new r.TypeGraph(this,e,s||c)}addTopLevel(e,t){(0,o.assert)(!this.topLevels.has(e),`Trying to add top-level with existing name`),(0,o.assert)(this.types[(0,r.typeRefIndex)(t)]!==void 0,`Trying to add a top-level type that doesn't exist (yet?)`),this.topLevels.set(e,t)}reserveTypeRef(){let t=this.types.length;this.types.push(void 0);let n=(0,r.makeTypeRef)(this.typeGraph,t),a=this._addProvenanceAttributes?e.provenanceTypeAttributeKind.makeAttributes(new Set([t])):i.emptyTypeAttributes;return this.typeAttributes.push(a),n}assertTypeRefGraph(e){e!==void 0&&(0,r.assertTypeRefGraph)(e,this.typeGraph)}assertTypeRefSetGraph(e){e!==void 0&&e.forEach(e=>this.assertTypeRefGraph(e))}filterTypeAttributes(e,n){let r=(0,t.mapFilter)(n,(t,n)=>n.appliesToTypeKind(e.kind));return n.size!==r.size&&this.setLostTypeAttributes(),r}commitType(e,t){this.assertTypeRefGraph(e);let n=(0,r.typeRefIndex)(e);(0,o.assert)(this.types[n]===void 0,`A type index was committed twice`),this.types[n]=t,this.typeAttributes[n]=this.filterTypeAttributes(t,this.typeAttributes[n])}addType(e,t,n){e!==void 0&&(this.assertTypeRefGraph(e),(0,o.assert)(this.types[(0,r.typeRefIndex)(e)]===void 0));let a=e===void 0?this.reserveTypeRef():e;if(n!==void 0){let e=(0,r.typeRefIndex)(a);this.typeAttributes[e]=(0,i.combineTypeAttributes)(`union`,this.typeAttributes[e],n)}let s=t(a);return this.commitType(a,s),a}typeAtIndex(e){let t=this.types[e];return t===void 0?(0,o.panic)(`Trying to deref an undefined type in a type builder`):t}atIndex(e){return[this.typeAtIndex(e),this.typeAttributes[e]]}addAttributes(e,n){this.assertTypeRefGraph(e);let a=(0,r.typeRefIndex)(e),s=this.typeAttributes[a];(0,o.assert)((0,t.iterableEvery)(n,([e,n])=>{if(!e.inIdentity)return!0;let r=s.get(e);return r===void 0?!1:(0,t.areEqual)(r,n)}),`Can't add different identity type attributes to an existing type`);let c=this.types[a];c!==void 0&&(n=this.filterTypeAttributes(c,n));let l=(0,t.mapFilter)(n,(e,t)=>!t.inIdentity);this.typeAttributes[a]=(0,i.combineTypeAttributes)(`union`,s,l)}finish(){return this.typeGraph.freeze(this.topLevels,this.types.map(o.defined),this.typeAttributes),this.typeGraph}addForwardingIntersection(e,t){return this.assertTypeRefGraph(t),this._addedForwardingIntersection=!0,this.addType(e,e=>new n.IntersectionType(e,this.typeGraph,new Set([t])),void 0)}forwardIfNecessary(e,t){if(t!==void 0)return e===void 0?t:this.addForwardingIntersection(e,t)}get didAddForwardingIntersection(){return this._addedForwardingIntersection}registerTypeForIdentity(e,t){e!==void 0&&this._typeForIdentity.set(e,t)}makeIdentity(e){return e()}getOrAddType(e,n,r,i){let a=this.makeIdentity(e),o;if(o=a===void 0?void 0:this._typeForIdentity.get(a),o!==void 0){let e=this.forwardIfNecessary(i,o);return r!==void 0&&this.addAttributes(e,(0,t.mapFilter)(r,(e,t)=>!t.inIdentity)),e}let s=this.addType(i,n,r);return this.registerTypeForIdentity(a,s),s}registerType(e){this.registerTypeForIdentity(e.identity,e.typeRef)}getPrimitiveType(e,r,a){let o=(0,t.withDefault)(r,i.emptyTypeAttributes),l=e===`string`?void 0:s.StringTypes.unrestricted;return(0,n.isPrimitiveStringTypeKind)(e)&&e!==`string`&&(e=c(this._stringTypeMapping,e)),e===`string`?this.getStringType(o,l,a):this.getOrAddType(()=>(0,n.primitiveTypeIdentity)(e,o),t=>new n.PrimitiveType(t,this.typeGraph,e),o,a)}getStringType(e,r,a){let c=(0,t.mapFind)(e,(e,t)=>t===s.stringTypesTypeAttributeKind);return(0,o.assert)(r===void 0!=(c===void 0),`Must instantiate string type with one enum case attribute`),c===void 0&&(e=(0,i.combineTypeAttributes)(`union`,e,s.stringTypesTypeAttributeKind.makeAttributes((0,o.defined)(r)))),this.getOrAddType(()=>(0,n.primitiveTypeIdentity)(`string`,e),e=>new n.PrimitiveType(e,this.typeGraph,`string`),e,a)}getEnumType(e,t,r){return this.getOrAddType(()=>(0,n.enumTypeIdentity)(e,t),e=>new n.EnumType(e,this.typeGraph,t),e,r)}makeClassProperty(e,t){return new n.ClassProperty(e,this.typeGraph,t)}getUniqueObjectType(e,r,i,a){return this.assertTypeRefGraph(i),r=(0,t.definedMap)(r,e=>this.modifyPropertiesIfNecessary(e)),this.addType(a,e=>new n.ObjectType(e,this.typeGraph,`object`,!0,r,i),e)}getUniqueMapType(e){return this.addType(e,e=>new n.MapType(e,this.typeGraph,void 0),void 0)}getMapType(e,t,r){return this.assertTypeRefGraph(t),this.getOrAddType(()=>(0,n.mapTypeIdentify)(e,t),e=>new n.MapType(e,this.typeGraph,t),e,r)}setObjectProperties(e,t,i){this.assertTypeRefGraph(i);let a=(0,r.derefTypeRef)(e,this.typeGraph);if(!(a instanceof n.ObjectType))return(0,o.panic)(`Tried to set properties of non-object type`);a.setProperties(this.modifyPropertiesIfNecessary(t),i),this.registerType(a)}getUniqueArrayType(e){return this.addType(e,e=>new n.ArrayType(e,this.typeGraph,void 0),void 0)}getArrayType(e,t,r){return this.assertTypeRefGraph(t),this.getOrAddType(()=>(0,n.arrayTypeIdentity)(e,t),e=>new n.ArrayType(e,this.typeGraph,t),e,r)}setArrayItems(e,t){this.assertTypeRefGraph(t);let i=(0,r.derefTypeRef)(e,this.typeGraph);if(!(i instanceof n.ArrayType))return(0,o.panic)(`Tried to set items of non-array type`);i.setItems(t),this.registerType(i)}modifyPropertiesIfNecessary(e){return e.forEach(e=>this.assertTypeRefGraph(e.typeRef)),this.canonicalOrder&&(e=(0,t.mapSortByKey)(e)),this._allPropertiesOptional&&(e=(0,t.mapMap)(e,e=>this.makeClassProperty(e.typeRef,!0))),e}getClassType(e,t,r){return t=this.modifyPropertiesIfNecessary(t),this.getOrAddType(()=>(0,n.classTypeIdentity)(e,t),e=>new n.ClassType(e,this.typeGraph,!1,t),e,r)}getUniqueClassType(e,r,i,a){return i=(0,t.definedMap)(i,e=>this.modifyPropertiesIfNecessary(e)),this.addType(a,e=>new n.ClassType(e,this.typeGraph,r,i),e)}getUnionType(e,t,r){return this.assertTypeRefSetGraph(t),this.getOrAddType(()=>(0,n.unionTypeIdentity)(e,t),e=>new n.UnionType(e,this.typeGraph,t),e,r)}getUniqueUnionType(e,t,r){return this.assertTypeRefSetGraph(t),this.addType(r,e=>new n.UnionType(e,this.typeGraph,t),e)}getIntersectionType(e,t,r){return this.assertTypeRefSetGraph(t),this.getOrAddType(()=>(0,n.intersectionTypeIdentity)(e,t),e=>new n.IntersectionType(e,this.typeGraph,t),e,r)}getUniqueIntersectionType(e,t,r){return this.assertTypeRefSetGraph(t),this.addType(r,e=>new n.IntersectionType(e,this.typeGraph,t),e)}setSetOperationMembers(e,t){this.assertTypeRefSetGraph(t);let i=(0,r.derefTypeRef)(e,this.typeGraph);if(!(i instanceof n.UnionType||i instanceof n.IntersectionType))return(0,o.panic)(`Tried to set members of non-set-operation type`);i.setMembers(t),this.registerType(i)}setLostTypeAttributes(){}}})),ma=i((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.inferTransformedStringTypeKindForString=e.stringTypesTypeAttributeKind=e.StringTypes=void 0;var t=a(),n=na(),r=Q(),i=pa(),o=class e{static fromCase(t,n){let r={};return r[t]=n,new e(new Map([[t,n]]),new Set)}static fromCases(t){let n={};for(let e of t)n[e]=1;return new e(new Map(t.map(e=>[e,1])),new Set)}constructor(e,t){this.cases=e,this.transformations=t,e===void 0&&(0,r.assert)(t.size===0,`We can't have an unrestricted string that also allows transformations`)}get isRestricted(){return this.cases!==void 0}union(n,r){if(this.cases===void 0)return this;let i=new Map(this.cases),a=new Set(this.transformations);for(let e=r;e<n.length;e++){let r=n[e];if(r.cases===void 0)return r;(0,t.mapMergeWithInto)(i,(e,t)=>e+t,r.cases),(0,t.setUnionInto)(a,r.transformations)}return new e(i,a)}intersect(n,i){let a=this.cases,o=this.transformations;for(let e=i;e<n.length;e++){let i=n[e];if(a===void 0)a=(0,t.definedMap)(i.cases,e=>new Map(e));else if(i.cases!==void 0){let e=a,n=i.cases;a=(0,t.mapMap)((0,t.setIntersect)(e.keys(),new Set(n.keys())).entries(),t=>Math.min((0,r.defined)(e.get(t)),(0,r.defined)(n.get(t))))}o=(0,t.setIntersect)(o,i.transformations)}return new e(a,o)}applyStringTypeMapping(t){if(!this.isRestricted)return this;let n=new Set;for(let r of this.transformations){let a=(0,i.stringTypeMappingGet)(t,r);if(a===`string`)return e.unrestricted;n.add(a)}return new e(this.cases,new Set(n))}equals(n){return n instanceof e?(0,t.areEqual)(this.cases,n.cases)&&(0,t.areEqual)(this.transformations,n.transformations):!1}hashCode(){let e=(0,t.hashCodeOf)(this.cases);return e=(0,t.addHashCode)(e,(0,t.hashCodeOf)(this.transformations)),e}toString(){let e=[],n=this.cases;if(n===void 0)e.push(`unrestricted`);else{let r=(0,t.iterableFirst)(n.keys());r===void 0?e.push(`enum with no cases`):e.push(`${n.size.toString()} enums: ${r} (${n.get(r)}), ...`)}return e.concat(Array.from(this.transformations)).join(`,`)}};e.StringTypes=o,o.unrestricted=new o(void 0,new Set),e.stringTypesTypeAttributeKind=new class extends n.TypeAttributeKind{constructor(){super(`stringTypes`)}get inIdentity(){return!0}requiresUniqueIdentity(e){return e.cases!==void 0&&e.cases.size>0}combine(e){return(0,r.assert)(e.length>0),e[0].union(e,1)}intersect(e){return(0,r.assert)(e.length>0),e[0].intersect(e,1)}makeInferred(e){}stringify(e){return e.toString()}};var s=/^(0|-?[1-9]\d*)$/,c=1<<31,l=-(c+1);function u(e){if(e.match(s)===null)return!1;let t=parseInt(e,10);return t>=c&&t<=l}var d=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/;function f(e){return e.match(d)!==null}var p=/^(https?|ftp):\/\/[^{}]+$/;function m(e){return e.match(p)!==null}function h(e,t){if(!(e.length===0||`0123456789-abcdefth`.indexOf(e[0])<0)){if(t.isDate(e))return`date`;if(t.isTime(e))return`time`;if(t.isDateTime(e))return`date-time`;if(u(e))return`integer-string`;if(e===`false`||e===`true`)return`bool-string`;if(f(e))return`uuid`;if(m(e))return`uri`}}e.inferTransformedStringTypeKindForString=h})),ha=i((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.matchCompoundType=e.matchType=e.matchTypeExhaustive=e.stringTypesForType=e.directlyReachableSingleNamedType=e.directlyReachableTypes=e.separateNamedTypes=e.isNamedType=e.getNullAsOptional=e.nonNullTypeCases=e.nullableFromUnion=e.removeNullFromType=e.removeNullFromUnion=e.isAnyOrNull=e.combineTypeAttributesOfTypes=e.makeGroupsToFlatten=e.setOperationMembersRecursively=e.assertIsClass=e.assertIsObject=void 0;var t=a(),n=Q(),r=na(),i=wa(),o=ma();function s(e){return e instanceof i.ObjectType?e:(0,n.panic)(`Supposed object type is not an object type`)}e.assertIsObject=s;function c(e){return e instanceof i.ClassType?e:(0,n.panic)(`Supposed class type is not a class type`)}e.assertIsClass=c;function l(e,t){let n=Array.isArray(e)?e:[e],i=n[0].kind,a=i!==`intersection`,o=new Set,s=new Set,c=r.emptyTypeAttributes;function l(e){if(e.kind===i){let n=e;if(o.has(n))return;o.add(n),t!==void 0&&(c=(0,r.combineTypeAttributes)(t,c,e.getAttributes()));for(let e of n.members)l(e)}else a||e.kind!==`any`?s.add(e):t!==void 0&&(c=(0,r.combineTypeAttributes)(t,c,e.getAttributes()))}for(let e of n)l(e);return[s,c]}e.setOperationMembersRecursively=l;function u(e,r){let i=new t.EqualityMap;for(let a of e){let e=new Set(l(a,void 0)[0]);if(r!==void 0&&!r(e))continue;let o=i.get(e);o===void 0&&(o=new Set,e.size===1&&o.add((0,n.defined)((0,t.iterableFirst)(e)))),o.add(a),i.set(e,o)}return Array.from(i.values()).map(e=>Array.from(e))}e.makeGroupsToFlatten=u;function d(e,t){return(0,r.combineTypeAttributes)(e,Array.from(t).map(e=>e.getAttributes()))}e.combineTypeAttributesOfTypes=d;function f(e){return e.kind===`any`||e.kind===`null`}e.isAnyOrNull=f;function p(e,n=!1){function r(e){return n===!1?e:n===!0?(0,t.setSortBy)(e,e=>e.kind):(0,t.setSortBy)(e,n)}let i=e.findMember(`null`);return i===void 0?[null,r(e.members)]:[i,r((0,t.setFilter)(e.members,e=>e.kind!==`null`))]}e.removeNullFromUnion=p;function m(e){return e.kind===`null`?[e,new Set]:e instanceof i.UnionType?p(e):[null,new Set([e])]}e.removeNullFromType=m;function h(e){let[r,i]=p(e);return r===null||i.size!==1?null:(0,n.defined)((0,t.iterableFirst)(i))}e.nullableFromUnion=h;function g(e){return m(e)[1]}e.nonNullTypeCases=g;function _(e){let[t,n]=m(e.type);return e.isOptional?[!0,n]:[t!==null,n]}e.getNullAsOptional=_;function v(e){return[`class`,`union`,`enum`,`object`].indexOf(e.kind)>=0}e.isNamedType=v;function y(e){return{objects:(0,t.setFilter)(e,e=>e.kind===`object`||e.kind===`class`),enums:(0,t.setFilter)(e,e=>e instanceof i.EnumType),unions:(0,t.setFilter)(e,e=>e instanceof i.UnionType)}}e.separateNamedTypes=y;function b(e,n){let r=n(e);return r===null?(0,t.setUnion)(...Array.from(e.getNonAttributeChildren()).map(e=>b(e,n))):r}e.directlyReachableTypes=b;function x(e){let r=b(e,e=>!(e instanceof i.UnionType)&&v(e)||e instanceof i.UnionType&&h(e)===null?new Set([e]):null);return(0,n.assert)(r.size<=1,`Cannot have more than one defined type per top-level`),(0,t.iterableFirst)(r)}e.directlyReachableSingleNamedType=x;function S(e){(0,n.assert)(e.kind===`string`,`Only strings can have string types`);let t=o.stringTypesTypeAttributeKind.tryGetInAttributes(e.getAttributes());return t===void 0?(0,n.panic)(`All strings must have a string type attribute`):t}e.stringTypesForType=S;function C(e,t,r,a,o,s,c,l,u,d,f,p,m,h,g){if(e.isPrimitive()){if((0,i.isPrimitiveStringTypeKind)(e.kind))return e.kind===`string`?l(e):g(e);let u=e.kind,d={none:t,any:r,null:a,bool:o,integer:s,double:c}[u];return d===void 0?(0,n.assertNever)(d):d(e)}else if(e instanceof i.ArrayType)return u(e);else if(e instanceof i.ClassType)return d(e);else if(e instanceof i.MapType)return f(e);else if(e instanceof i.ObjectType)return p(e);else if(e instanceof i.EnumType)return m(e);else if(e instanceof i.UnionType)return h(e);return(0,n.panic)(`Unknown type ${e.kind}`)}e.matchTypeExhaustive=C;function w(e,t,r,i,a,o,s,c,l,u,d,f,p){function m(e){return(0,n.panic)(`Unsupported type ${e.kind} in non-exhaustive match`)}return C(e,m,t,r,i,a,o,s,c,l,u,m,d,f,p||m)}e.matchType=w;function T(e,t,n,r,i,a){function o(e){}return C(e,o,o,o,o,o,o,o,t,n,r,i,o,a,o)}e.matchCompoundType=T})),ga=i((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.GraphRewriteBuilder=e.GraphRemapBuilder=e.BaseGraphRewriteBuilder=e.TypeReconstituter=void 0;var t=a(),n=ha(),r=va(),i=na(),o=Q(),s=pa(),c=class{constructor(e,t,n,r,i){this._typeBuilder=e,this._makeClassUnique=t,this._typeAttributes=n,this._forwardingRef=r,this._register=i,this._wasUsed=!1,this._typeRef=void 0}builderForNewType(){return(0,o.assert)(!this._wasUsed,`TypeReconstituter used more than once`),this._wasUsed=!0,this._typeBuilder}builderForSetting(){return(0,o.assert)(this._wasUsed&&this._typeRef!==void 0,`Can't set type members before constructing a type`),this._typeBuilder}getResult(){return this._typeRef===void 0?(0,o.panic)(`Type was not reconstituted`):this._typeRef}register(e){(0,o.assert)(this._typeRef===void 0,`Cannot register a type twice`),this._typeRef=e,this._register(e)}registerAndAddAttributes(e){this._typeBuilder.addAttributes(e,this._typeAttributes),this.register(e)}lookup(e){if((0,o.assert)(!this._wasUsed,`Cannot lookup constituents after building type`),(0,r.isTypeRef)(e))return this._typeBuilder.lookupTypeRefs([e],void 0,!1);{let t=Array.from(e).map(e=>this._typeBuilder.lookupTypeRefs([e],void 0,!1));return t.some(e=>e===void 0)?void 0:t}}lookupMap(e){let t=this.lookup(e.values());if(t===void 0)return;(0,o.assert)(t.length===e.size,`Didn't get back the correct number of types`);let n=new Map,r=0;for(let i of e.keys())n.set(i,t[r]),r+=1;return n}reconstitute(e){return(0,o.assert)(this._wasUsed,`Cannot reconstitute constituents before building type`),(0,r.isTypeRef)(e)?this._typeBuilder.reconstituteTypeRef(e):Array.from(e).map(e=>this._typeBuilder.reconstituteTypeRef(e))}reconstituteMap(e){return(0,t.mapMap)(e,e=>this._typeBuilder.reconstituteTypeRef(e))}getPrimitiveType(e){this.register(this.builderForNewType().getPrimitiveType(e,this._typeAttributes,this._forwardingRef))}getEnumType(e){this.register(this.builderForNewType().getEnumType(this._typeAttributes,e,this._forwardingRef))}getUniqueMapType(){this.registerAndAddAttributes(this.builderForNewType().getUniqueMapType(this._forwardingRef))}getMapType(e){this.register(this.builderForNewType().getMapType(this._typeAttributes,e,this._forwardingRef))}getUniqueArrayType(){this.registerAndAddAttributes(this.builderForNewType().getUniqueArrayType(this._forwardingRef))}getArrayType(e){this.register(this.builderForNewType().getArrayType(this._typeAttributes,e,this._forwardingRef))}setArrayItems(e){this.builderForSetting().setArrayItems(this.getResult(),e)}makeClassProperty(e,t){return this._typeBuilder.makeClassProperty(e,t)}getObjectType(e,t){this.register(this.builderForNewType().getUniqueObjectType(this._typeAttributes,e,t,this._forwardingRef))}getUniqueObjectType(e,t){this.register(this.builderForNewType().getUniqueObjectType(this._typeAttributes,e,t,this._forwardingRef))}getClassType(e){if(this._makeClassUnique){this.getUniqueClassType(!1,e);return}this.register(this.builderForNewType().getClassType(this._typeAttributes,e,this._forwardingRef))}getUniqueClassType(e,t){this.register(this.builderForNewType().getUniqueClassType(this._typeAttributes,e,t,this._forwardingRef))}setObjectProperties(e,t){this.builderForSetting().setObjectProperties(this.getResult(),e,t)}getUnionType(e){this.register(this.builderForNewType().getUnionType(this._typeAttributes,e,this._forwardingRef))}getUniqueUnionType(){this.register(this.builderForNewType().getUniqueUnionType(this._typeAttributes,void 0,this._forwardingRef))}getIntersectionType(e){this.register(this.builderForNewType().getIntersectionType(this._typeAttributes,e,this._forwardingRef))}getUniqueIntersectionType(e){this.register(this.builderForNewType().getUniqueIntersectionType(this._typeAttributes,e,this._forwardingRef))}setSetOperationMembers(e){this.builderForSetting().setSetOperationMembers(this.getResult(),e)}};e.TypeReconstituter=c;var l=class extends s.TypeBuilder{constructor(e,t,n,r,i){super(e.serial+1,t,n,!1,!1,r),this.originalGraph=e,this.debugPrint=i,this.reconstitutedTypes=new Map,this._lostTypeAttributes=!1,this._printIndent=0}withForwardingRef(e,t){if(e!==void 0)return t(e);let n=this.reserveTypeRef(),r=t(n);return(0,o.assert)(r===n,`Type creator didn't return its forwarding ref`),r}reconstituteType(e,t,n){return this.reconstituteTypeRef(e.typeRef,t,n)}reconstituteTypeRef(e,t,n){let r=this.lookupTypeRefs([e],n);return r===void 0?this.forceReconstituteTypeRef(e,t,n):(t!==void 0&&this.addAttributes(r,t),r)}reconstituteTypeAttributes(e){return(0,t.mapMap)(e,(e,t)=>t.reconstitute(this,e))}assertTypeRefsToReconstitute(e,t){(0,o.assert)(e.length>0,`Must have at least one type to reconstitute`);for(let t of e)(0,r.assertTypeRefGraph)(t,this.originalGraph);t!==void 0&&(0,r.assertTypeRefGraph)(t,this.typeGraph)}changeDebugPrintIndent(e){this._printIndent+=e}get debugPrintIndentation(){return(0,o.indentationString)(this._printIndent)}finish(){for(let[e,t]of this.originalGraph.topLevels)this.addTopLevel(e,this.reconstituteType(t));return super.finish()}setLostTypeAttributes(){this._lostTypeAttributes=!0}get lostTypeAttributes(){return this._lostTypeAttributes}};e.BaseGraphRewriteBuilder=l,e.GraphRemapBuilder=class extends l{constructor(e,t,n,r,i,a){super(e,t,n,r,a),this._map=i,this._attributeSources=new Map;for(let[e,t]of i){let n=this._attributeSources.get(t);n===void 0&&(n=[t],this._attributeSources.set(t,n)),n.push(e)}}makeIdentity(e){}getMapTarget(e){let t=this._map.get((0,r.derefTypeRef)(e,this.originalGraph));return t===void 0?e:((0,o.assert)(this._map.get(t)===void 0,`We have a type that's remapped to a remapped type`),t.typeRef)}addForwardingIntersection(e,t){return(0,o.panic)(`We can't add forwarding intersections when we're removing forwarding intersections`)}lookupTypeRefs(e,t){(0,o.assert)(t===void 0,`We can't have a forwarding ref when we remap`),this.assertTypeRefsToReconstitute(e,t);let n=this.reconstitutedTypes.get((0,r.typeRefIndex)(this.getMapTarget(e[0])));if(n!==void 0){for(let t=1;t<e.length;t++)if(n!==this.reconstitutedTypes.get((0,r.typeRefIndex)(this.getMapTarget(e[t]))))return;return n}}forceReconstituteTypeRef(e,t,a){e=this.getMapTarget(e);let s=(0,r.typeRefIndex)(e);return(0,o.assert)(this.reconstitutedTypes.get(s)===void 0,`Type has already been reconstituted`),(0,o.assert)(a===void 0,`We can't have a forwarding ref when we remap`),this.withForwardingRef(void 0,a=>{this.reconstitutedTypes.set(s,a),this.debugPrint&&(console.log(`${this.debugPrintIndentation}reconstituting ${s} as ${(0,r.typeRefIndex)(a)}`),this.changeDebugPrintIndent(1));let[l,u]=(0,r.typeAndAttributesForTypeRef)(e,this.originalGraph),d=this._attributeSources.get(l);t===void 0&&(t=i.emptyTypeAttributes),t=d===void 0?(0,i.combineTypeAttributes)(`union`,t,this.reconstituteTypeAttributes(u)):(0,i.combineTypeAttributes)(`union`,t,this.reconstituteTypeAttributes((0,n.combineTypeAttributesOfTypes)(`union`,d)));let f=t,p=new c(this,this.canonicalOrder,f,a,e=>{(0,o.assert)(e===a,`Reconstituted type as a different ref`),this.debugPrint&&(this.changeDebugPrintIndent(-1),console.log(`${this.debugPrintIndentation}reconstituted ${s} as ${(0,r.typeRefIndex)(e)}`))});return l.reconstitute(p,this.canonicalOrder),p.getResult()})}},e.GraphRewriteBuilder=class extends l{constructor(e,n,r,i,a,s,c){super(e,n,r,i,s),this._replacer=c,this._reconstitutedUnions=new t.EqualityMap,this._setsToReplaceByMember=new Map;for(let e of a){let t=new Set(e);for(let e of t){let n=e.index;(0,o.assert)(!this._setsToReplaceByMember.has(n),`A type is member of more than one set to be replaced`),this._setsToReplaceByMember.set(n,t)}}}registerUnion(e,t){let n=new Set(e);(0,o.assert)(!this._reconstitutedUnions.has(n),`Cannot register reconstituted set twice`),this._reconstitutedUnions.set(n,t)}replaceSet(e,t){return this.withForwardingRef(t,t=>{this.debugPrint&&(console.log(`${this.debugPrintIndentation}replacing set ${Array.from(e).map(e=>e.index.toString()).join(`,`)} as ${(0,r.typeRefIndex)(t)}`),this.changeDebugPrintIndent(1));for(let n of e){let e=n.typeRef,i=(0,r.typeRefIndex)(e);this.reconstitutedTypes.set(i,t),this._setsToReplaceByMember.delete(i)}let n=this._replacer(e,this,t);return(0,o.assert)(n===t,`The forwarding ref got lost when replacing`),this.debugPrint&&(this.changeDebugPrintIndent(-1),console.log(`${this.debugPrintIndentation}replaced set ${Array.from(e).map(e=>e.index.toString()).join(`,`)} as ${(0,r.typeRefIndex)(t)}`)),n})}forceReconstituteTypeRef(e,t,n){let[a,s]=(0,r.typeAndAttributesForTypeRef)(e,this.originalGraph),l=(0,r.typeRefIndex)(e);this.debugPrint&&(console.log(`${this.debugPrintIndentation}reconstituting ${l}`),this.changeDebugPrintIndent(1)),t=t===void 0?this.reconstituteTypeAttributes(s):(0,i.combineTypeAttributes)(`union`,t,this.reconstituteTypeAttributes(s));let u=new c(this,this.canonicalOrder,t,n,e=>{this.debugPrint&&(this.changeDebugPrintIndent(-1),console.log(`${this.debugPrintIndentation}reconstituted ${l} as ${(0,r.typeRefIndex)(e)}`)),n!==void 0&&(0,o.assert)(e===n,`We didn't pass the forwarding ref`);let t=this.reconstitutedTypes.get(l);t===void 0?this.reconstitutedTypes.set(l,e):(0,o.assert)(e===t,`We reconstituted a type twice differently`)});return a.reconstitute(u,this.canonicalOrder),u.getResult()}lookupTypeRefs(e,t,n=!0){this.assertTypeRefsToReconstitute(e,t);let i=this.reconstitutedTypes.get((0,r.typeRefIndex)(e[0]));if(i!==void 0&&i!==t){let n=!0;for(let t=1;t<e.length;t++)if(this.reconstitutedTypes.get((0,r.typeRefIndex)(e[t]))!==i){n=!1;break}if(n)return this.forwardIfNecessary(t,i)}if(i=this._reconstitutedUnions.get(new Set(e)),i!==void 0&&i!==t)return this.forwardIfNecessary(t,i);let a=this._setsToReplaceByMember.get((0,r.typeRefIndex)(e[0]));if(a!==void 0){for(let t=1;t<e.length;t++)if(this._setsToReplaceByMember.get((0,r.typeRefIndex)(e[t]))!==a)return;if(n)return this.replaceSet(a,t)}}}})),_a=i((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.Graph=void 0;var t=a(),n=Q();function r(e){if(e.length===0)return 0;let t=-1,r=0;for(let i of e){(0,n.assert)(i.length>0,`Empty component not allowed`);for(let e of i)(0,n.assert)(e>=0,`Negative vertex index is invalid`),t=Math.max(t,e),r+=1}return(0,n.assert)(t+1===r,`Vertex indexes and count don't match up`),r}function i(e){let t=0,i=[],a=e.length,o=(0,n.repeated)(a,-1),s=(0,n.repeated)(a,-1),c=(0,n.repeated)(a,!1),l=[];function u(r){o[r]=t,s[r]=t,t+=1,i.push(r),c[r]=!0;for(let t of e[r])o[t]<0?(u(t),s[r]=Math.min(s[r],s[t])):c[t]&&(s[r]=Math.min(s[r],o[t]));if(s[r]===o[r]){let e=[],t;do t=(0,n.defined)(i.pop()),c[t]=!1,e.push(t);while(t!==r);l.push(e)}}for(let e=0;e<a;e++)o[e]<0&&u(e);return(0,n.assert)(r(l)===a,`We didn't put all the nodes into SCCs`),l}function o(e,t){let i=t.length,a=e.length;(0,n.assert)(a===r(t),`Components don't match up with graph`);let o=(0,n.repeated)(a,-1);for(let e=0;e<i;e++)for(let r of t[e])(0,n.assert)(o[r]<0,`We have a node that's in two components`),o[r]=e;return o}function s(e,t){let r=t.length,i=o(e,t),a=(0,n.repeated)(r,!1),s=[];for(let o=0;o<r;o++){let r=[];for(let n of t[o])for(let t of e[n]){let e=i[t];e===o||a[e]||(r.push(e),a[e]=!0)}for(let e of r)(0,n.assert)(a[e]),a[e]=!1;s.push(r)}return s}function c(e){let t=e.length,r=(0,n.repeatedCall)(t,()=>[]);for(let n=0;n<t;n++)for(let t of e[n])r[t].push(n);return r}function l(e){let t=e.length,r=(0,n.repeated)(t,0);for(let t of e)for(let e of t)r[e]+=1;return r}function u(e){let t=e.length,n=l(e),r=[];for(let e=0;e<t;e++)n[e]===0&&r.push(e);return r}e.Graph=class e{constructor(e,t,r){this._nodes=Array.from(e),this._indexByNode=new Map(this._nodes.map((e,t)=>[e,t]));let i;i=Array.isArray(r)?r:this._nodes.map(e=>Array.from(r(e)).map(e=>(0,n.defined)(this._indexByNode.get(e)))),t&&(i=c(i)),this._successors=i}get size(){return this._nodes.length}get nodes(){return this._nodes}findRoots(){let e=u(this._successors);return new Set(e.map(e=>this._nodes[e]))}dfsTraversal(e,t,r){let i=(0,n.repeated)(this.size,!1),a=e=>{if(!i[e]){i[e]=!0,t&&r(this._nodes[e]);for(let t of this._successors[e])a(t);t||r(this._nodes[e])}};a((0,n.defined)(this._indexByNode.get(e)))}stronglyConnectedComponents(){let n=i(this._successors),r=s(this._successors,n);return new e(n.map(e=>(0,t.setMap)(e,e=>this._nodes[e])),!1,r)}makeDot(e,t){let n=[];n.push(`digraph G {`),n.push(` ordering = out;`),n.push(``);for(let r=0;r<this.size;r++){let i=this._nodes[r];e(i)&&n.push(` node${r} [label="${t(i)}"];`)}for(let t=0;t<this.size;t++)if(e(this._nodes[t]))for(let r of this._successors[t])e(this._nodes[r])&&n.push(` node${t} -> node${r};`);return n.push(`}`),n.push(``),n.join(`
|
|
116
|
+
`)}}})),va=i((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.removeIndirectionIntersections=e.optionalToNullable=e.noneToAny=e.TypeGraph=e.TypeAttributeStoreView=e.TypeAttributeStore=e.typeAndAttributesForTypeRef=e.attributesForTypeRef=e.derefTypeRef=e.assertTypeRefGraph=e.typeRefIndex=e.makeTypeRef=e.isTypeRef=void 0;var t=a(),n=wa(),r=ha(),i=Q(),o=pa(),s=ga(),c=fa(),l=_a(),u=na(),d=C(),f=26,p=(1<<f)-1,m=(1<<31-f)-1;function h(e){return typeof e==`number`}e.isTypeRef=h;function g(e,t){return(0,i.assert)(t<=p,`Too many types in graph`),(e.serial&m)<<f|t}e.makeTypeRef=g;function _(e){return e&p}e.typeRefIndex=_;function v(e,t){(0,i.assert)((e>>f&m)===(t.serial&m),`Mixing the wrong type reference and graph`)}e.assertTypeRefGraph=v;function y(e){return e instanceof E?e:e.originalGraph}function b(e,t){let n=y(t);return v(e,n),n.typeAtIndex(_(e))}e.derefTypeRef=b;function x(e,t){let n=y(t);return v(e,n),n.atIndex(_(e))[1]}e.attributesForTypeRef=x;function S(e,t){let n=y(t);return v(e,n),n.atIndex(_(e))}e.typeAndAttributesForTypeRef=S;var w=class{constructor(e,t){this._typeGraph=e,this._values=t,this._topLevelValues=new Map}getTypeIndex(e){let t=e.typeRef;return v(t,this._typeGraph),_(t)}attributesForType(e){let t=this.getTypeIndex(e),n=this._values[t];return n===void 0?u.emptyTypeAttributes:n}attributesForTopLevel(e){let t=this._topLevelValues.get(e);return t===void 0?u.emptyTypeAttributes:t}setInMap(e,t,n){return new Map(e).set(t,n)}set(e,t,n){let r=this.getTypeIndex(t);for(;r>=this._values.length;)this._values.push(void 0);this._values[r]=this.setInMap(this.attributesForType(t),e,n)}setForTopLevel(e,t,n){this._topLevelValues.set(t,this.setInMap(this.attributesForTopLevel(t),e,n))}tryGetInMap(e,t){return e.get(t)}tryGet(e,t){return this.tryGetInMap(this.attributesForType(t),e)}tryGetForTopLevel(e,t){return this.tryGetInMap(this.attributesForTopLevel(t),e)}};e.TypeAttributeStore=w;var T=class{constructor(e,t){this._attributeStore=e,this._definition=t}set(e,t){this._attributeStore.set(this._definition,e,t)}setForTopLevel(e,t){this._attributeStore.setForTopLevel(this._definition,e,t)}tryGet(e){return this._attributeStore.tryGet(this._definition,e)}get(e){return(0,i.defined)(this.tryGet(e))}tryGetForTopLevel(e){return this._attributeStore.tryGetForTopLevel(this._definition,e)}getForTopLevel(e){return(0,i.defined)(this.tryGetForTopLevel(e))}};e.TypeAttributeStoreView=T;var E=class{constructor(e,t,n){this.serial=t,this._haveProvenanceAttributes=n,this._attributeStore=void 0,this._topLevels=new Map,this._parents=void 0,this._printOnRewrite=!1,this._typeBuilder=e}get isFrozen(){return this._typeBuilder===void 0}get attributeStore(){return(0,i.defined)(this._attributeStore)}freeze(e,n,r){(0,i.assert)(!this.isFrozen,`Tried to freeze TypeGraph a second time`);for(let e of n)v(e.typeRef,this);this._attributeStore=new w(this,r),this._types=n,this._typeBuilder=void 0,this._topLevels=(0,t.mapMap)(e,e=>b(e,this))}get topLevels(){return(0,i.assert)(this.isFrozen,`Cannot get top-levels from a non-frozen graph`),this._topLevels}typeAtIndex(e){return this._typeBuilder===void 0?(0,i.defined)(this._types)[e]:this._typeBuilder.typeAtIndex(e)}atIndex(e){if(this._typeBuilder!==void 0)return this._typeBuilder.atIndex(e);let t=this.typeAtIndex(e);return[t,(0,i.defined)(this._attributeStore).attributesForType(t)]}filterTypes(e){let t=new Set,n=[];function r(i){if(!t.has(i)){t.add(i),(e===void 0||e(i))&&n.push(i);for(let e of i.getChildren())r(e)}}for(let[,e]of this.topLevels)r(e);return new Set(n)}allNamedTypes(){return this.filterTypes(r.isNamedType)}allNamedTypesSeparated(){let e=this.allNamedTypes();return(0,r.separateNamedTypes)(e)}allProvenance(){(0,i.assert)(this._haveProvenanceAttributes);let e=new T(this.attributeStore,o.provenanceTypeAttributeKind),n=Array.from(this.allTypesUnordered()).map(t=>{let n=e.tryGet(t);return n===void 0?new Set:n}),r=new Set;return(0,t.setUnionManyInto)(r,n),r}setPrintOnRewrite(){this._printOnRewrite=!0}checkLostTypeAttributes(e,n){if(!this._haveProvenanceAttributes||e.lostTypeAttributes)return;let r=this.allProvenance(),i=n.allProvenance();if(r.size!==i.size){let e=(0,t.setSubtract)(r,i),n=Array.from(e);return(0,d.messageError)(`IRTypeAttributesNotPropagated`,{count:e.size,indexes:n})}}printRewrite(e){this._printOnRewrite&&console.log(`\n# ${e}`)}rewrite(e,t,n,r,i,a,o=!1){if(this.printRewrite(e),!o&&r.length===0)return this;let c=new s.GraphRewriteBuilder(this,t,n,this._haveProvenanceAttributes,r,i,a),l=c.finish();return this.checkLostTypeAttributes(c,l),this._printOnRewrite&&(l.setPrintOnRewrite(),l.printGraph()),c.didAddForwardingIntersection?k(l,t,i):l}remap(e,t,n,r,a,o=!1){if(this.printRewrite(e),!o&&r.size===0)return this;let c=new s.GraphRemapBuilder(this,t,n,this._haveProvenanceAttributes,r,a),l=c.finish();return this.checkLostTypeAttributes(c,l),this._printOnRewrite&&(l.setPrintOnRewrite(),l.printGraph()),(0,i.assert)(!c.didAddForwardingIntersection),l}garbageCollect(e,t){return this.remap(`GC`,(0,o.getNoStringTypeMapping)(),e,new Map,t,!0)}rewriteFixedPoint(e,t){let n=this;for(;;){let r=this.rewrite(`fixed-point`,(0,o.getNoStringTypeMapping)(),e,[],t,i.mustNotHappen,!0);if(n.allTypesUnordered().size===r.allTypesUnordered().size)return n;n=r}}allTypesUnordered(){return(0,i.assert)(this.isFrozen,`Tried to get all graph types before it was frozen`),new Set((0,i.defined)(this._types))}makeGraph(e,t){return new l.Graph((0,i.defined)(this._types),e,t)}getParentsOfType(e){if(v(e.typeRef,this),this._parents===void 0){let e=(0,i.defined)(this._types).map(e=>new Set);for(let t of this.allTypesUnordered())for(let n of t.getChildren()){let r=n.index;e[r]=e[r].add(t)}this._parents=e}return this._parents[e.index]}printGraph(){let e=(0,i.defined)(this._types);for(let t=0;t<e.length;t++){let n=e[t],r=[];r.push(`${n.debugPrintKind}${n.hasNames?` ${n.getCombinedName()}`:``}`);let i=n.getChildren();i.size>0&&r.push(`children ${Array.from(i).map(e=>e.index).join(`,`)}`);for(let[e,t]of n.getAttributes()){let n=e.stringify(t);n!==void 0&&r.push(n)}console.log(`${t}: ${r.join(` | `)}`)}}};e.TypeGraph=E;function D(e,n,a){let o=(0,t.setFilter)(e.allTypesUnordered(),e=>e.kind===`none`);return o.size===0?e:((0,i.assert)(o.size===1,`Cannot have more than one none type`),e.rewrite(`none to any`,n,!1,[Array.from(o)],a,(e,t,n)=>{let i=(0,r.combineTypeAttributesOfTypes)(`union`,e);return t.getPrimitiveType(`any`,i,n)}))}e.noneToAny=D;function O(e,r,a){function o(e,r,i){let a=(0,t.mapMap)(e.getProperties(),(e,i)=>{let a=e.type,o;if(!e.isOptional||a.isNullable)o=r.reconstituteType(a);else{let e=r.getPrimitiveType(`null`),s;s=a instanceof n.UnionType?(0,t.setMap)(a.members,e=>r.reconstituteType(e)).add(e):new Set([r.reconstituteType(a),e]);let l=c.namesTypeAttributeKind.setDefaultInAttributes(a.getAttributes(),()=>c.TypeNames.make(new Set([i]),new Set,!0));o=r.getUnionType(l,s)}return r.makeClassProperty(o,e.isOptional)});return e.isFixed?r.getUniqueClassType(e.getAttributes(),!0,a,i):r.getClassType(e.getAttributes(),a,i)}let s=(0,t.setFilter)(e.allTypesUnordered(),e=>e instanceof n.ClassType&&(0,t.mapSome)(e.getProperties(),e=>e.isOptional)),l=Array.from(s).map(e=>[e]);return s.size===0?e:e.rewrite(`optional to nullable`,r,!1,l,a,(e,n,r)=>((0,i.assert)(e.size===1),o((0,i.defined)((0,t.iterableFirst)(e)),n,r)))}e.optionalToNullable=O;function k(e,r,a){let o=[];for(let r of e.allTypesUnordered()){if(!(r instanceof n.IntersectionType))continue;let e=new Set([r]),a=r;for(;a.members.size===1;){let s=(0,i.defined)((0,t.iterableFirst)(a.members));if(!(s instanceof n.IntersectionType)){o.push([r,s]);break}if(e.has(s))return(0,i.panic)(`There's a cycle of intersection types`);e.add(s),a=s}}return e.remap(`remove indirection intersections`,r,!1,new Map(o),a)}e.removeIndirectionIntersections=k})),ya=i(((e,t)=>{(function(n){var r=typeof e==`object`&&e&&!e.nodeType&&e,i=typeof t==`object`&&t&&!t.nodeType&&t,a=typeof global==`object`&&global;(a.global===a||a.window===a||a.self===a)&&(n=a);var o,s=2147483647,c=36,l=1,u=26,d=38,f=700,p=72,m=128,h=`-`,g=/^xn--/,_=/[^\x20-\x7E]/,v=/[\x2E\u3002\uFF0E\uFF61]/g,y={overflow:`Overflow: input needs wider integers to process`,"not-basic":`Illegal input >= 0x80 (not a basic code point)`,"invalid-input":`Invalid input`},b=c-l,x=Math.floor,S=String.fromCharCode,C;function w(e){throw RangeError(y[e])}function T(e,t){for(var n=e.length,r=[];n--;)r[n]=t(e[n]);return r}function E(e,t){var n=e.split(`@`),r=``;n.length>1&&(r=n[0]+`@`,e=n[1]),e=e.replace(v,`.`);var i=T(e.split(`.`),t).join(`.`);return r+i}function D(e){for(var t=[],n=0,r=e.length,i,a;n<r;)i=e.charCodeAt(n++),i>=55296&&i<=56319&&n<r?(a=e.charCodeAt(n++),(a&64512)==56320?t.push(((i&1023)<<10)+(a&1023)+65536):(t.push(i),n--)):t.push(i);return t}function O(e){return T(e,function(e){var t=``;return e>65535&&(e-=65536,t+=S(e>>>10&1023|55296),e=56320|e&1023),t+=S(e),t}).join(``)}function k(e){return e-48<10?e-22:e-65<26?e-65:e-97<26?e-97:c}function A(e,t){return e+22+75*(e<26)-((t!=0)<<5)}function j(e,t,n){var r=0;for(e=n?x(e/f):e>>1,e+=x(e/t);e>b*u>>1;r+=c)e=x(e/b);return x(r+(b+1)*e/(e+d))}function M(e){var t=[],n=e.length,r,i=0,a=m,o=p,d=e.lastIndexOf(h),f,g,_,v,y,b,S,C;for(d<0&&(d=0),f=0;f<d;++f)e.charCodeAt(f)>=128&&w(`not-basic`),t.push(e.charCodeAt(f));for(g=d>0?d+1:0;g<n;){for(_=i,v=1,y=c;g>=n&&w(`invalid-input`),b=k(e.charCodeAt(g++)),(b>=c||b>x((s-i)/v))&&w(`overflow`),i+=b*v,S=y<=o?l:y>=o+u?u:y-o,!(b<S);y+=c)C=c-S,v>x(s/C)&&w(`overflow`),v*=C;r=t.length+1,o=j(i-_,r,_==0),x(i/r)>s-a&&w(`overflow`),a+=x(i/r),i%=r,t.splice(i++,0,a)}return O(t)}function N(e){var t,n,r,i,a,o,d,f,g,_,v,y=[],b,C,T,E;for(e=D(e),b=e.length,t=m,n=0,a=p,o=0;o<b;++o)v=e[o],v<128&&y.push(S(v));for(r=i=y.length,i&&y.push(h);r<b;){for(d=s,o=0;o<b;++o)v=e[o],v>=t&&v<d&&(d=v);for(C=r+1,d-t>x((s-n)/C)&&w(`overflow`),n+=(d-t)*C,t=d,o=0;o<b;++o)if(v=e[o],v<t&&++n>s&&w(`overflow`),v==t){for(f=n,g=c;_=g<=a?l:g>=a+u?u:g-a,!(f<_);g+=c)E=f-_,T=c-_,y.push(S(A(_+E%T,0))),f=x(E/T);y.push(S(A(f,0))),a=j(n,C,r==i),n=0,++r}++n,++t}return y.join(``)}function P(e){return E(e,function(e){return g.test(e)?M(e.slice(4).toLowerCase()):e})}function ee(e){return E(e,function(e){return _.test(e)?`xn--`+N(e):e})}if(o={version:`1.3.2`,ucs2:{decode:D,encode:O},decode:M,encode:N,toASCII:ee,toUnicode:P},typeof define==`function`&&typeof define.amd==`object`&&define.amd)define(`punycode`,function(){return o});else if(r&&i)if(t.exports==r)i.exports=o;else for(C in o)o.hasOwnProperty(C)&&(r[C]=o[C]);else n.punycode=o})(e)})),ba=i(((e,t)=>{(function(e,n){typeof t==`object`&&t.exports?t.exports=n():typeof define==`function`&&define.amd?define(n):e.IPv6=n(e)})(e,function(e){var t=e&&e.IPv6;function n(e){var t=e.toLowerCase().split(`:`),n=t.length,r=8;t[0]===``&&t[1]===``&&t[2]===``?(t.shift(),t.shift()):t[0]===``&&t[1]===``?t.shift():t[n-1]===``&&t[n-2]===``&&t.pop(),n=t.length,t[n-1].indexOf(`.`)!==-1&&(r=7);var i;for(i=0;i<n&&t[i]!==``;i++);if(i<r)for(t.splice(i,1,`0000`);t.length<r;)t.splice(i,0,`0000`);for(var a,o=0;o<r;o++){a=t[o].split(``);for(var s=0;s<3&&a[0]===`0`&&a.length>1;s++)a.splice(0,1);t[o]=a.join(``)}var c=-1,l=0,u=0,d=-1,f=!1;for(o=0;o<r;o++)f?t[o]===`0`?u+=1:(f=!1,u>l&&(c=d,l=u)):t[o]===`0`&&(f=!0,d=o,u=1);u>l&&(c=d,l=u),l>1&&t.splice(c,l,``),n=t.length;var p=``;for(t[0]===``&&(p=`:`),o=0;o<n&&(p+=t[o],o!==n-1);o++)p+=`:`;return t[n-1]===``&&(p+=`:`),p}function r(){return e.IPv6===this&&(e.IPv6=t),this}return{best:n,noConflict:r}})})),xa=i(((e,t)=>{(function(e,n){typeof t==`object`&&t.exports?t.exports=n():typeof define==`function`&&define.amd?define(n):e.SecondLevelDomains=n(e)})(e,function(e){var t=e&&e.SecondLevelDomains,n={list:{ac:` com gov mil net org `,ae:` ac co gov mil name net org pro sch `,af:` com edu gov net org `,al:` com edu gov mil net org `,ao:` co ed gv it og pb `,ar:` com edu gob gov int mil net org tur `,at:` ac co gv or `,au:` asn com csiro edu gov id net org `,ba:` co com edu gov mil net org rs unbi unmo unsa untz unze `,bb:` biz co com edu gov info net org store tv `,bh:` biz cc com edu gov info net org `,bn:` com edu gov net org `,bo:` com edu gob gov int mil net org tv `,br:` adm adv agr am arq art ato b bio blog bmd cim cng cnt com coop ecn edu eng esp etc eti far flog fm fnd fot fst g12 ggf gov imb ind inf jor jus lel mat med mil mus net nom not ntr odo org ppg pro psc psi qsl rec slg srv tmp trd tur tv vet vlog wiki zlg `,bs:` com edu gov net org `,bz:` du et om ov rg `,ca:` ab bc mb nb nf nl ns nt nu on pe qc sk yk `,ck:` biz co edu gen gov info net org `,cn:` ac ah bj com cq edu fj gd gov gs gx gz ha hb he hi hl hn jl js jx ln mil net nm nx org qh sc sd sh sn sx tj tw xj xz yn zj `,co:` com edu gov mil net nom org `,cr:` ac c co ed fi go or sa `,cy:` ac biz com ekloges gov ltd name net org parliament press pro tm `,do:` art com edu gob gov mil net org sld web `,dz:` art asso com edu gov net org pol `,ec:` com edu fin gov info med mil net org pro `,eg:` com edu eun gov mil name net org sci `,er:` com edu gov ind mil net org rochest w `,es:` com edu gob nom org `,et:` biz com edu gov info name net org `,fj:` ac biz com info mil name net org pro `,fk:` ac co gov net nom org `,fr:` asso com f gouv nom prd presse tm `,gg:` co net org `,gh:` com edu gov mil org `,gn:` ac com gov net org `,gr:` com edu gov mil net org `,gt:` com edu gob ind mil net org `,gu:` com edu gov net org `,hk:` com edu gov idv net org `,hu:` 2000 agrar bolt casino city co erotica erotika film forum games hotel info ingatlan jogasz konyvelo lakas media news org priv reklam sex shop sport suli szex tm tozsde utazas video `,id:` ac co go mil net or sch web `,il:` ac co gov idf k12 muni net org `,in:` ac co edu ernet firm gen gov i ind mil net nic org res `,iq:` com edu gov i mil net org `,ir:` ac co dnssec gov i id net org sch `,it:` edu gov `,je:` co net org `,jo:` com edu gov mil name net org sch `,jp:` ac ad co ed go gr lg ne or `,ke:` ac co go info me mobi ne or sc `,kh:` com edu gov mil net org per `,ki:` biz com de edu gov info mob net org tel `,km:` asso com coop edu gouv k medecin mil nom notaires pharmaciens presse tm veterinaire `,kn:` edu gov net org `,kr:` ac busan chungbuk chungnam co daegu daejeon es gangwon go gwangju gyeongbuk gyeonggi gyeongnam hs incheon jeju jeonbuk jeonnam k kg mil ms ne or pe re sc seoul ulsan `,kw:` com edu gov net org `,ky:` com edu gov net org `,kz:` com edu gov mil net org `,lb:` com edu gov net org `,lk:` assn com edu gov grp hotel int ltd net ngo org sch soc web `,lr:` com edu gov net org `,lv:` asn com conf edu gov id mil net org `,ly:` com edu gov id med net org plc sch `,ma:` ac co gov m net org press `,mc:` asso tm `,me:` ac co edu gov its net org priv `,mg:` com edu gov mil nom org prd tm `,mk:` com edu gov inf name net org pro `,ml:` com edu gov net org presse `,mn:` edu gov org `,mo:` com edu gov net org `,mt:` com edu gov net org `,mv:` aero biz com coop edu gov info int mil museum name net org pro `,mw:` ac co com coop edu gov int museum net org `,mx:` com edu gob net org `,my:` com edu gov mil name net org sch `,nf:` arts com firm info net other per rec store web `,ng:` biz com edu gov mil mobi name net org sch `,ni:` ac co com edu gob mil net nom org `,np:` com edu gov mil net org `,nr:` biz com edu gov info net org `,om:` ac biz co com edu gov med mil museum net org pro sch `,pe:` com edu gob mil net nom org sld `,ph:` com edu gov i mil net ngo org `,pk:` biz com edu fam gob gok gon gop gos gov net org web `,pl:` art bialystok biz com edu gda gdansk gorzow gov info katowice krakow lodz lublin mil net ngo olsztyn org poznan pwr radom slupsk szczecin torun warszawa waw wroc wroclaw zgora `,pr:` ac biz com edu est gov info isla name net org pro prof `,ps:` com edu gov net org plo sec `,pw:` belau co ed go ne or `,ro:` arts com firm info nom nt org rec store tm www `,rs:` ac co edu gov in org `,sb:` com edu gov net org `,sc:` com edu gov net org `,sh:` co com edu gov net nom org `,sl:` com edu gov net org `,st:` co com consulado edu embaixada gov mil net org principe saotome store `,sv:` com edu gob org red `,sz:` ac co org `,tr:` av bbs bel biz com dr edu gen gov info k12 name net org pol tel tsk tv web `,tt:` aero biz cat co com coop edu gov info int jobs mil mobi museum name net org pro tel travel `,tw:` club com ebiz edu game gov idv mil net org `,mu:` ac co com gov net or org `,mz:` ac co edu gov org `,na:` co com `,nz:` ac co cri geek gen govt health iwi maori mil net org parliament school `,pa:` abo ac com edu gob ing med net nom org sld `,pt:` com edu gov int net nome org publ `,py:` com edu gov mil net org `,qa:` com edu gov mil net org `,re:` asso com nom `,ru:` ac adygeya altai amur arkhangelsk astrakhan bashkiria belgorod bir bryansk buryatia cbg chel chelyabinsk chita chukotka chuvashia com dagestan e-burg edu gov grozny int irkutsk ivanovo izhevsk jar joshkar-ola kalmykia kaluga kamchatka karelia kazan kchr kemerovo khabarovsk khakassia khv kirov koenig komi kostroma kranoyarsk kuban kurgan kursk lipetsk magadan mari mari-el marine mil mordovia mosreg msk murmansk nalchik net nnov nov novosibirsk nsk omsk orenburg org oryol penza perm pp pskov ptz rnd ryazan sakhalin samara saratov simbirsk smolensk spb stavropol stv surgut tambov tatarstan tom tomsk tsaritsyn tsk tula tuva tver tyumen udm udmurtia ulan-ude vladikavkaz vladimir vladivostok volgograd vologda voronezh vrn vyatka yakutia yamal yekaterinburg yuzhno-sakhalinsk `,rw:` ac co com edu gouv gov int mil net `,sa:` com edu gov med net org pub sch `,sd:` com edu gov info med net org tv `,se:` a ac b bd c d e f g h i k l m n o org p parti pp press r s t tm u w x y z `,sg:` com edu gov idn net org per `,sn:` art com edu gouv org perso univ `,sy:` com edu gov mil net news org `,th:` ac co go in mi net or `,tj:` ac biz co com edu go gov info int mil name net nic org test web `,tn:` agrinet com defense edunet ens fin gov ind info intl mincom nat net org perso rnrt rns rnu tourism `,tz:` ac co go ne or `,ua:` biz cherkassy chernigov chernovtsy ck cn co com crimea cv dn dnepropetrovsk donetsk dp edu gov if in ivano-frankivsk kh kharkov kherson khmelnitskiy kiev kirovograd km kr ks kv lg lugansk lutsk lviv me mk net nikolaev od odessa org pl poltava pp rovno rv sebastopol sumy te ternopil uzhgorod vinnica vn zaporizhzhe zhitomir zp zt `,ug:` ac co go ne or org sc `,uk:` ac bl british-library co cym gov govt icnet jet lea ltd me mil mod national-library-scotland nel net nhs nic nls org orgn parliament plc police sch scot soc `,us:` dni fed isa kids nsn `,uy:` com edu gub mil net org `,ve:` co com edu gob info mil net org web `,vi:` co com k12 net org `,vn:` ac biz com edu gov health info int name net org pro `,ye:` co com gov ltd me net org plc `,yu:` ac co edu gov org `,za:` ac agric alt bourse city co cybernet db edu gov grondar iaccess imt inca landesign law mil net ngo nis nom olivetti org pix school tm web `,zm:` ac co com edu gov net org sch `,com:`ar br cn de eu gb gr hu jpn kr no qc ru sa se uk us uy za `,net:`gb jp se uk `,org:`ae`,de:`com `},has:function(e){var t=e.lastIndexOf(`.`);if(t<=0||t>=e.length-1)return!1;var r=e.lastIndexOf(`.`,t-1);if(r<=0||r>=t-1)return!1;var i=n.list[e.slice(t+1)];return i?i.indexOf(` `+e.slice(r+1,t)+` `)>=0:!1},is:function(e){var t=e.lastIndexOf(`.`);if(t<=0||t>=e.length-1||e.lastIndexOf(`.`,t-1)>=0)return!1;var r=n.list[e.slice(t+1)];return r?r.indexOf(` `+e.slice(0,t)+` `)>=0:!1},get:function(e){var t=e.lastIndexOf(`.`);if(t<=0||t>=e.length-1)return null;var r=e.lastIndexOf(`.`,t-1);if(r<=0||r>=t-1)return null;var i=n.list[e.slice(t+1)];return!i||i.indexOf(` `+e.slice(r+1,t)+` `)<0?null:e.slice(r+1)},noConflict:function(){return e.SecondLevelDomains===this&&(e.SecondLevelDomains=t),this}};return n})})),Sa=i(((e,t)=>{(function(e,n){typeof t==`object`&&t.exports?t.exports=n(ya(),ba(),xa()):typeof define==`function`&&define.amd?define([`./punycode`,`./IPv6`,`./SecondLevelDomains`],n):e.URI=n(e.punycode,e.IPv6,e.SecondLevelDomains,e)})(e,function(e,t,n,r){var i=r&&r.URI;function a(e,t){var n=arguments.length>=1,r=arguments.length>=2;if(!(this instanceof a))return n?r?new a(e,t):new a(e):new a;if(e===void 0){if(n)throw TypeError(`undefined is not a valid argument for URI`);e=typeof location<`u`?location.href+``:``}if(e===null&&n)throw TypeError(`null is not a valid argument for URI`);return this.href(e),t===void 0?this:this.absoluteTo(t)}function o(e){return/^[0-9]+$/.test(e)}a.version=`1.19.11`;var s=a.prototype,c=Object.prototype.hasOwnProperty;function l(e){return e.replace(/([.*+?^=!:${}()|[\]\/\\])/g,`\\$1`)}function u(e){return e===void 0?`Undefined`:String(Object.prototype.toString.call(e)).slice(8,-1)}function d(e){return u(e)===`Array`}function f(e,t){var n={},r,i;if(u(t)===`RegExp`)n=null;else if(d(t))for(r=0,i=t.length;r<i;r++)n[t[r]]=!0;else n[t]=!0;for(r=0,i=e.length;r<i;r++)(n&&n[e[r]]!==void 0||!n&&t.test(e[r]))&&(e.splice(r,1),i--,r--);return e}function p(e,t){var n,r;if(d(t)){for(n=0,r=t.length;n<r;n++)if(!p(e,t[n]))return!1;return!0}var i=u(t);for(n=0,r=e.length;n<r;n++)if(i===`RegExp`){if(typeof e[n]==`string`&&e[n].match(t))return!0}else if(e[n]===t)return!0;return!1}function m(e,t){if(!d(e)||!d(t)||e.length!==t.length)return!1;e.sort(),t.sort();for(var n=0,r=e.length;n<r;n++)if(e[n]!==t[n])return!1;return!0}function h(e){return e.replace(/^\/+|\/+$/g,``)}a._parts=function(){return{protocol:null,username:null,password:null,hostname:null,urn:null,port:null,path:null,query:null,fragment:null,preventInvalidHostname:a.preventInvalidHostname,duplicateQueryParameters:a.duplicateQueryParameters,escapeQuerySpace:a.escapeQuerySpace}},a.preventInvalidHostname=!1,a.duplicateQueryParameters=!1,a.escapeQuerySpace=!0,a.protocol_expression=/^[a-z][a-z0-9.+-]*$/i,a.idn_expression=/[^a-z0-9\._-]/i,a.punycode_expression=/(xn--)/i,a.ip4_expression=/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/,a.ip6_expression=/^\s*((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(%.+)?\s*$/,a.find_uri_expression=/\b((?:[a-z][\w-]+:(?:\/{1,3}|[a-z0-9%])|www\d{0,3}[.]|[a-z0-9.\-]+[.][a-z]{2,4}\/)(?:[^\s()<>]+|\(([^\s()<>]+|(\([^\s()<>]+\)))*\))+(?:\(([^\s()<>]+|(\([^\s()<>]+\)))*\)|[^\s`!()\[\]{};:'".,<>?«»“”‘’]))/gi,a.findUri={start:/\b(?:([a-z][a-z0-9.+-]*:\/\/)|www\.)/gi,end:/[\s\r\n]|$/,trim:/[`!()\[\]{};:'".,<>?«»“”„‘’]+$/,parens:/(\([^\)]*\)|\[[^\]]*\]|\{[^}]*\}|<[^>]*>)/g},a.leading_whitespace_expression=/^[\x00-\x20\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]+/,a.ascii_tab_whitespace=/[\u0009\u000A\u000D]+/g,a.defaultPorts={http:`80`,https:`443`,ftp:`21`,gopher:`70`,ws:`80`,wss:`443`},a.hostProtocols=[`http`,`https`],a.invalid_hostname_characters=/[^a-zA-Z0-9\.\-:_]/,a.domAttributes={a:`href`,blockquote:`cite`,link:`href`,base:`href`,script:`src`,form:`action`,img:`src`,area:`href`,iframe:`src`,embed:`src`,source:`src`,track:`src`,input:`src`,audio:`src`,video:`src`},a.getDomAttribute=function(e){if(!(!e||!e.nodeName)){var t=e.nodeName.toLowerCase();if(!(t===`input`&&e.type!==`image`))return a.domAttributes[t]}};function g(e){return escape(e)}function _(e){return encodeURIComponent(e).replace(/[!'()*]/g,g).replace(/\*/g,`%2A`)}a.encode=_,a.decode=decodeURIComponent,a.iso8859=function(){a.encode=escape,a.decode=unescape},a.unicode=function(){a.encode=_,a.decode=decodeURIComponent},a.characters={pathname:{encode:{expression:/%(24|26|2B|2C|3B|3D|3A|40)/gi,map:{"%24":`$`,"%26":`&`,"%2B":`+`,"%2C":`,`,"%3B":`;`,"%3D":`=`,"%3A":`:`,"%40":`@`}},decode:{expression:/[\/\?#]/g,map:{"/":`%2F`,"?":`%3F`,"#":`%23`}}},reserved:{encode:{expression:/%(21|23|24|26|27|28|29|2A|2B|2C|2F|3A|3B|3D|3F|40|5B|5D)/gi,map:{"%3A":`:`,"%2F":`/`,"%3F":`?`,"%23":`#`,"%5B":`[`,"%5D":`]`,"%40":`@`,"%21":`!`,"%24":`$`,"%26":`&`,"%27":`'`,"%28":`(`,"%29":`)`,"%2A":`*`,"%2B":`+`,"%2C":`,`,"%3B":`;`,"%3D":`=`}}},urnpath:{encode:{expression:/%(21|24|27|28|29|2A|2B|2C|3B|3D|40)/gi,map:{"%21":`!`,"%24":`$`,"%27":`'`,"%28":`(`,"%29":`)`,"%2A":`*`,"%2B":`+`,"%2C":`,`,"%3B":`;`,"%3D":`=`,"%40":`@`}},decode:{expression:/[\/\?#:]/g,map:{"/":`%2F`,"?":`%3F`,"#":`%23`,":":`%3A`}}}},a.encodeQuery=function(e,t){var n=a.encode(e+``);return t===void 0&&(t=a.escapeQuerySpace),t?n.replace(/%20/g,`+`):n},a.decodeQuery=function(e,t){e+=``,t===void 0&&(t=a.escapeQuerySpace);try{return a.decode(t?e.replace(/\+/g,`%20`):e)}catch{return e}};var v={encode:`encode`,decode:`decode`},y,b=function(e,t){return function(n){try{return a[t](n+``).replace(a.characters[e][t].expression,function(n){return a.characters[e][t].map[n]})}catch{return n}}};for(y in v)a[y+`PathSegment`]=b(`pathname`,v[y]),a[y+`UrnPathSegment`]=b(`urnpath`,v[y]);var x=function(e,t,n){return function(r){for(var i=n?function(e){return a[t](a[n](e))}:a[t],o=(r+``).split(e),s=0,c=o.length;s<c;s++)o[s]=i(o[s]);return o.join(e)}};a.decodePath=x(`/`,`decodePathSegment`),a.decodeUrnPath=x(`:`,`decodeUrnPathSegment`),a.recodePath=x(`/`,`encodePathSegment`,`decode`),a.recodeUrnPath=x(`:`,`encodeUrnPathSegment`,`decode`),a.encodeReserved=b(`reserved`,`encode`),a.parse=function(e,t){var n;return t||={preventInvalidHostname:a.preventInvalidHostname},e=e.replace(a.leading_whitespace_expression,``),e=e.replace(a.ascii_tab_whitespace,``),n=e.indexOf(`#`),n>-1&&(t.fragment=e.substring(n+1)||null,e=e.substring(0,n)),n=e.indexOf(`?`),n>-1&&(t.query=e.substring(n+1)||null,e=e.substring(0,n)),e=e.replace(/^(https?|ftp|wss?)?:+[/\\]*/i,`$1://`),e=e.replace(/^[/\\]{2,}/i,`//`),e.substring(0,2)===`//`?(t.protocol=null,e=e.substring(2),e=a.parseAuthority(e,t)):(n=e.indexOf(`:`),n>-1&&(t.protocol=e.substring(0,n)||null,t.protocol&&!t.protocol.match(a.protocol_expression)?t.protocol=void 0:e.substring(n+1,n+3).replace(/\\/g,`/`)===`//`?(e=e.substring(n+3),e=a.parseAuthority(e,t)):(e=e.substring(n+1),t.urn=!0))),t.path=e,t},a.parseHost=function(e,t){e||=``,e=e.replace(/\\/g,`/`);var n=e.indexOf(`/`),r,i;if(n===-1&&(n=e.length),e.charAt(0)===`[`)r=e.indexOf(`]`),t.hostname=e.substring(1,r)||null,t.port=e.substring(r+2,n)||null,t.port===`/`&&(t.port=null);else{var o=e.indexOf(`:`),s=e.indexOf(`/`),c=e.indexOf(`:`,o+1);c!==-1&&(s===-1||c<s)?(t.hostname=e.substring(0,n)||null,t.port=null):(i=e.substring(0,n).split(`:`),t.hostname=i[0]||null,t.port=i[1]||null)}return t.hostname&&e.substring(n).charAt(0)!==`/`&&(n++,e=`/`+e),t.preventInvalidHostname&&a.ensureValidHostname(t.hostname,t.protocol),t.port&&a.ensureValidPort(t.port),e.substring(n)||`/`},a.parseAuthority=function(e,t){return e=a.parseUserinfo(e,t),a.parseHost(e,t)},a.parseUserinfo=function(e,t){var n=e;e.indexOf(`\\`)!==-1&&(e=e.replace(/\\/g,`/`));var r=e.indexOf(`/`),i=e.lastIndexOf(`@`,r>-1?r:e.length-1),o;return i>-1&&(r===-1||i<r)?(o=e.substring(0,i).split(`:`),t.username=o[0]?a.decode(o[0]):null,o.shift(),t.password=o[0]?a.decode(o.join(`:`)):null,e=n.substring(i+1)):(t.username=null,t.password=null),e},a.parseQuery=function(e,t){if(!e||(e=e.replace(/&+/g,`&`).replace(/^\?*&*|&+$/g,``),!e))return{};for(var n={},r=e.split(`&`),i=r.length,o,s,l,u=0;u<i;u++)o=r[u].split(`=`),s=a.decodeQuery(o.shift(),t),l=o.length?a.decodeQuery(o.join(`=`),t):null,s!==`__proto__`&&(c.call(n,s)?((typeof n[s]==`string`||n[s]===null)&&(n[s]=[n[s]]),n[s].push(l)):n[s]=l);return n},a.build=function(e){var t=``,n=!1;return e.protocol&&(t+=e.protocol+`:`),!e.urn&&(t||e.hostname)&&(t+=`//`,n=!0),t+=a.buildAuthority(e)||``,typeof e.path==`string`&&(e.path.charAt(0)!==`/`&&n&&(t+=`/`),t+=e.path),typeof e.query==`string`&&e.query&&(t+=`?`+e.query),typeof e.fragment==`string`&&e.fragment&&(t+=`#`+e.fragment),t},a.buildHost=function(e){var t=``;if(e.hostname)a.ip6_expression.test(e.hostname)?t+=`[`+e.hostname+`]`:t+=e.hostname;else return``;return e.port&&(t+=`:`+e.port),t},a.buildAuthority=function(e){return a.buildUserinfo(e)+a.buildHost(e)},a.buildUserinfo=function(e){var t=``;return e.username&&(t+=a.encode(e.username)),e.password&&(t+=`:`+a.encode(e.password)),t&&(t+=`@`),t},a.buildQuery=function(e,t,n){var r=``,i,o,s,l;for(o in e)if(o===`__proto__`)continue;else if(c.call(e,o))if(d(e[o]))for(i={},s=0,l=e[o].length;s<l;s++)e[o][s]!==void 0&&i[e[o][s]+``]===void 0&&(r+=`&`+a.buildQueryParameter(o,e[o][s],n),t!==!0&&(i[e[o][s]+``]=!0));else e[o]!==void 0&&(r+=`&`+a.buildQueryParameter(o,e[o],n));return r.substring(1)},a.buildQueryParameter=function(e,t,n){return a.encodeQuery(e,n)+(t===null?``:`=`+a.encodeQuery(t,n))},a.addQuery=function(e,t,n){if(typeof t==`object`)for(var r in t)c.call(t,r)&&a.addQuery(e,r,t[r]);else if(typeof t==`string`){if(e[t]===void 0){e[t]=n;return}else typeof e[t]==`string`&&(e[t]=[e[t]]);d(n)||(n=[n]),e[t]=(e[t]||[]).concat(n)}else throw TypeError(`URI.addQuery() accepts an object, string as the name parameter`)},a.setQuery=function(e,t,n){if(typeof t==`object`)for(var r in t)c.call(t,r)&&a.setQuery(e,r,t[r]);else if(typeof t==`string`)e[t]=n===void 0?null:n;else throw TypeError(`URI.setQuery() accepts an object, string as the name parameter`)},a.removeQuery=function(e,t,n){var r,i,o;if(d(t))for(r=0,i=t.length;r<i;r++)e[t[r]]=void 0;else if(u(t)===`RegExp`)for(o in e)t.test(o)&&(e[o]=void 0);else if(typeof t==`object`)for(o in t)c.call(t,o)&&a.removeQuery(e,o,t[o]);else if(typeof t==`string`)n===void 0?e[t]=void 0:u(n)===`RegExp`?!d(e[t])&&n.test(e[t])?e[t]=void 0:e[t]=f(e[t],n):e[t]===String(n)&&(!d(n)||n.length===1)?e[t]=void 0:d(e[t])&&(e[t]=f(e[t],n));else throw TypeError(`URI.removeQuery() accepts an object, string, RegExp as the first parameter`)},a.hasQuery=function(e,t,n,r){switch(u(t)){case`String`:break;case`RegExp`:for(var i in e)if(c.call(e,i)&&t.test(i)&&(n===void 0||a.hasQuery(e,i,n)))return!0;return!1;case`Object`:for(var o in t)if(c.call(t,o)&&!a.hasQuery(e,o,t[o]))return!1;return!0;default:throw TypeError(`URI.hasQuery() accepts a string, regular expression or object as the name parameter`)}switch(u(n)){case`Undefined`:return t in e;case`Boolean`:var s=!!(d(e[t])?e[t].length:e[t]);return n===s;case`Function`:return!!n(e[t],t,e);case`Array`:return d(e[t])?(r?p:m)(e[t],n):!1;case`RegExp`:return d(e[t])?r?p(e[t],n):!1:!!(e[t]&&e[t].match(n));case`Number`:n=String(n);case`String`:return d(e[t])?r?p(e[t],n):!1:e[t]===n;default:throw TypeError(`URI.hasQuery() accepts undefined, boolean, string, number, RegExp, Function as the value parameter`)}},a.joinPaths=function(){for(var e=[],t=[],n=0,r=0;r<arguments.length;r++){var i=new a(arguments[r]);e.push(i);for(var o=i.segment(),s=0;s<o.length;s++)typeof o[s]==`string`&&t.push(o[s]),o[s]&&n++}if(!t.length||!n)return new a(``);var c=new a(``).segment(t);return(e[0].path()===``||e[0].path().slice(0,1)===`/`)&&c.path(`/`+c.path()),c.normalize()},a.commonPath=function(e,t){var n=Math.min(e.length,t.length),r;for(r=0;r<n;r++)if(e.charAt(r)!==t.charAt(r)){r--;break}return r<1?e.charAt(0)===t.charAt(0)&&e.charAt(0)===`/`?`/`:``:((e.charAt(r)!==`/`||t.charAt(r)!==`/`)&&(r=e.substring(0,r).lastIndexOf(`/`)),e.substring(0,r+1))},a.withinString=function(e,t,n){n||={};var r=n.start||a.findUri.start,i=n.end||a.findUri.end,o=n.trim||a.findUri.trim,s=n.parens||a.findUri.parens,c=/[a-z0-9-]=["']?$/i;for(r.lastIndex=0;;){var l=r.exec(e);if(!l)break;var u=l.index;if(n.ignoreHtml){var d=e.slice(Math.max(u-3,0),u);if(d&&c.test(d))continue}for(var f=u+e.slice(u).search(i),p=e.slice(u,f),m=-1;;){var h=s.exec(p);if(!h)break;var g=h.index+h[0].length;m=Math.max(m,g)}if(p=m>-1?p.slice(0,m)+p.slice(m).replace(o,``):p.replace(o,``),!(p.length<=l[0].length)&&!(n.ignore&&n.ignore.test(p))){f=u+p.length;var _=t(p,u,f,e);if(_===void 0){r.lastIndex=f;continue}_=String(_),e=e.slice(0,u)+_+e.slice(f),r.lastIndex=u+_.length}}return r.lastIndex=0,e},a.ensureValidHostname=function(t,n){var r=!!t,i=!!n,o=!1;if(i&&(o=p(a.hostProtocols,n)),o&&!r)throw TypeError(`Hostname cannot be empty, if protocol is `+n);if(t&&t.match(a.invalid_hostname_characters)){if(!e)throw TypeError(`Hostname "`+t+`" contains characters other than [A-Z0-9.-:_] and Punycode.js is not available`);if(e.toASCII(t).match(a.invalid_hostname_characters))throw TypeError(`Hostname "`+t+`" contains characters other than [A-Z0-9.-:_]`)}},a.ensureValidPort=function(e){if(e){var t=Number(e);if(!(o(t)&&t>0&&t<65536))throw TypeError(`Port "`+e+`" is not a valid port`)}},a.noConflict=function(e){if(e){var t={URI:this.noConflict()};return r.URITemplate&&typeof r.URITemplate.noConflict==`function`&&(t.URITemplate=r.URITemplate.noConflict()),r.IPv6&&typeof r.IPv6.noConflict==`function`&&(t.IPv6=r.IPv6.noConflict()),r.SecondLevelDomains&&typeof r.SecondLevelDomains.noConflict==`function`&&(t.SecondLevelDomains=r.SecondLevelDomains.noConflict()),t}else r.URI===this&&(r.URI=i);return this},s.build=function(e){return e===!0?this._deferred_build=!0:(e===void 0||this._deferred_build)&&(this._string=a.build(this._parts),this._deferred_build=!1),this},s.clone=function(){return new a(this)},s.valueOf=s.toString=function(){return this.build(!1)._string};function S(e){return function(t,n){return t===void 0?this._parts[e]||``:(this._parts[e]=t||null,this.build(!n),this)}}function C(e,t){return function(n,r){return n===void 0?this._parts[e]||``:(n!==null&&(n+=``,n.charAt(0)===t&&(n=n.substring(1))),this._parts[e]=n,this.build(!r),this)}}s.protocol=S(`protocol`),s.username=S(`username`),s.password=S(`password`),s.hostname=S(`hostname`),s.port=S(`port`),s.query=C(`query`,`?`),s.fragment=C(`fragment`,`#`),s.search=function(e,t){var n=this.query(e,t);return typeof n==`string`&&n.length?`?`+n:n},s.hash=function(e,t){var n=this.fragment(e,t);return typeof n==`string`&&n.length?`#`+n:n},s.pathname=function(e,t){if(e===void 0||e===!0){var n=this._parts.path||(this._parts.hostname?`/`:``);return e?(this._parts.urn?a.decodeUrnPath:a.decodePath)(n):n}else return this._parts.urn?this._parts.path=e?a.recodeUrnPath(e):``:this._parts.path=e?a.recodePath(e):`/`,this.build(!t),this},s.path=s.pathname,s.href=function(e,t){var n;if(e===void 0)return this.toString();this._string=``,this._parts=a._parts();var r=e instanceof a,i=typeof e==`object`&&(e.hostname||e.path||e.pathname);if(e.nodeName){var o=a.getDomAttribute(e);e=e[o]||``,i=!1}if(!r&&i&&e.pathname!==void 0&&(e=e.toString()),typeof e==`string`||e instanceof String)this._parts=a.parse(String(e),this._parts);else if(r||i){var s=r?e._parts:e;for(n in s)n!==`query`&&c.call(this._parts,n)&&(this._parts[n]=s[n]);s.query&&this.query(s.query,!1)}else throw TypeError(`invalid input`);return this.build(!t),this},s.is=function(e){var t=!1,r=!1,i=!1,o=!1,s=!1,c=!1,l=!1,u=!this._parts.urn;switch(this._parts.hostname&&(u=!1,r=a.ip4_expression.test(this._parts.hostname),i=a.ip6_expression.test(this._parts.hostname),t=r||i,o=!t,s=o&&n&&n.has(this._parts.hostname),c=o&&a.idn_expression.test(this._parts.hostname),l=o&&a.punycode_expression.test(this._parts.hostname)),e.toLowerCase()){case`relative`:return u;case`absolute`:return!u;case`domain`:case`name`:return o;case`sld`:return s;case`ip`:return t;case`ip4`:case`ipv4`:case`inet4`:return r;case`ip6`:case`ipv6`:case`inet6`:return i;case`idn`:return c;case`url`:return!this._parts.urn;case`urn`:return!!this._parts.urn;case`punycode`:return l}return null};var w=s.protocol,T=s.port,E=s.hostname;s.protocol=function(e,t){if(e&&(e=e.replace(/:(\/\/)?$/,``),!e.match(a.protocol_expression)))throw TypeError(`Protocol "`+e+`" contains characters other than [A-Z0-9.+-] or doesn't start with [A-Z]`);return w.call(this,e,t)},s.scheme=s.protocol,s.port=function(e,t){return this._parts.urn?e===void 0?``:this:(e!==void 0&&(e===0&&(e=null),e&&(e+=``,e.charAt(0)===`:`&&(e=e.substring(1)),a.ensureValidPort(e))),T.call(this,e,t))},s.hostname=function(e,t){if(this._parts.urn)return e===void 0?``:this;if(e!==void 0){var n={preventInvalidHostname:this._parts.preventInvalidHostname};if(a.parseHost(e,n)!==`/`)throw TypeError(`Hostname "`+e+`" contains characters other than [A-Z0-9.-]`);e=n.hostname,this._parts.preventInvalidHostname&&a.ensureValidHostname(e,this._parts.protocol)}return E.call(this,e,t)},s.origin=function(e,t){if(this._parts.urn)return e===void 0?``:this;if(e===void 0){var n=this.protocol();return this.authority()?(n?n+`://`:``)+this.authority():``}else{var r=a(e);return this.protocol(r.protocol()).authority(r.authority()).build(!t),this}},s.host=function(e,t){if(this._parts.urn)return e===void 0?``:this;if(e===void 0)return this._parts.hostname?a.buildHost(this._parts):``;if(a.parseHost(e,this._parts)!==`/`)throw TypeError(`Hostname "`+e+`" contains characters other than [A-Z0-9.-]`);return this.build(!t),this},s.authority=function(e,t){if(this._parts.urn)return e===void 0?``:this;if(e===void 0)return this._parts.hostname?a.buildAuthority(this._parts):``;if(a.parseAuthority(e,this._parts)!==`/`)throw TypeError(`Hostname "`+e+`" contains characters other than [A-Z0-9.-]`);return this.build(!t),this},s.userinfo=function(e,t){if(this._parts.urn)return e===void 0?``:this;if(e===void 0){var n=a.buildUserinfo(this._parts);return n&&n.substring(0,n.length-1)}else return e[e.length-1]!==`@`&&(e+=`@`),a.parseUserinfo(e,this._parts),this.build(!t),this},s.resource=function(e,t){var n;return e===void 0?this.path()+this.search()+this.hash():(n=a.parse(e),this._parts.path=n.path,this._parts.query=n.query,this._parts.fragment=n.fragment,this.build(!t),this)},s.subdomain=function(e,t){if(this._parts.urn)return e===void 0?``:this;if(e===void 0){if(!this._parts.hostname||this.is(`IP`))return``;var n=this._parts.hostname.length-this.domain().length-1;return this._parts.hostname.substring(0,n)||``}else{var r=this._parts.hostname.length-this.domain().length,i=this._parts.hostname.substring(0,r),o=RegExp(`^`+l(i));if(e&&e.charAt(e.length-1)!==`.`&&(e+=`.`),e.indexOf(`:`)!==-1)throw TypeError(`Domains cannot contain colons`);return e&&a.ensureValidHostname(e,this._parts.protocol),this._parts.hostname=this._parts.hostname.replace(o,e),this.build(!t),this}},s.domain=function(e,t){if(this._parts.urn)return e===void 0?``:this;if(typeof e==`boolean`&&(t=e,e=void 0),e===void 0){if(!this._parts.hostname||this.is(`IP`))return``;var n=this._parts.hostname.match(/\./g);if(n&&n.length<2)return this._parts.hostname;var r=this._parts.hostname.length-this.tld(t).length-1;return r=this._parts.hostname.lastIndexOf(`.`,r-1)+1,this._parts.hostname.substring(r)||``}else{if(!e)throw TypeError(`cannot set domain empty`);if(e.indexOf(`:`)!==-1)throw TypeError(`Domains cannot contain colons`);if(a.ensureValidHostname(e,this._parts.protocol),!this._parts.hostname||this.is(`IP`))this._parts.hostname=e;else{var i=RegExp(l(this.domain())+`$`);this._parts.hostname=this._parts.hostname.replace(i,e)}return this.build(!t),this}},s.tld=function(e,t){if(this._parts.urn)return e===void 0?``:this;if(typeof e==`boolean`&&(t=e,e=void 0),e===void 0){if(!this._parts.hostname||this.is(`IP`))return``;var r=this._parts.hostname.lastIndexOf(`.`),i=this._parts.hostname.substring(r+1);return t!==!0&&n&&n.list[i.toLowerCase()]&&n.get(this._parts.hostname)||i}else{var a;if(!e)throw TypeError(`cannot set TLD empty`);if(e.match(/[^a-zA-Z0-9-]/))if(n&&n.is(e))a=RegExp(l(this.tld())+`$`),this._parts.hostname=this._parts.hostname.replace(a,e);else throw TypeError(`TLD "`+e+`" contains characters other than [A-Z0-9]`);else if(!this._parts.hostname||this.is(`IP`))throw ReferenceError(`cannot set TLD on non-domain host`);else a=RegExp(l(this.tld())+`$`),this._parts.hostname=this._parts.hostname.replace(a,e);return this.build(!t),this}},s.directory=function(e,t){if(this._parts.urn)return e===void 0?``:this;if(e===void 0||e===!0){if(!this._parts.path&&!this._parts.hostname)return``;if(this._parts.path===`/`)return`/`;var n=this._parts.path.length-this.filename().length-1,r=this._parts.path.substring(0,n)||(this._parts.hostname?`/`:``);return e?a.decodePath(r):r}else{var i=this._parts.path.length-this.filename().length,o=this._parts.path.substring(0,i),s=RegExp(`^`+l(o));return this.is(`relative`)||(e||=`/`,e.charAt(0)!==`/`&&(e=`/`+e)),e&&e.charAt(e.length-1)!==`/`&&(e+=`/`),e=a.recodePath(e),this._parts.path=this._parts.path.replace(s,e),this.build(!t),this}},s.filename=function(e,t){if(this._parts.urn)return e===void 0?``:this;if(typeof e!=`string`){if(!this._parts.path||this._parts.path===`/`)return``;var n=this._parts.path.lastIndexOf(`/`),r=this._parts.path.substring(n+1);return e?a.decodePathSegment(r):r}else{var i=!1;e.charAt(0)===`/`&&(e=e.substring(1)),e.match(/\.?\//)&&(i=!0);var o=RegExp(l(this.filename())+`$`);return e=a.recodePath(e),this._parts.path=this._parts.path.replace(o,e),i?this.normalizePath(t):this.build(!t),this}},s.suffix=function(e,t){if(this._parts.urn)return e===void 0?``:this;if(e===void 0||e===!0){if(!this._parts.path||this._parts.path===`/`)return``;var n=this.filename(),r=n.lastIndexOf(`.`),i,o;return r===-1?``:(i=n.substring(r+1),o=/^[a-z0-9%]+$/i.test(i)?i:``,e?a.decodePathSegment(o):o)}else{e.charAt(0)===`.`&&(e=e.substring(1));var s=this.suffix(),c;if(s)c=RegExp(e?l(s)+`$`:l(`.`+s)+`$`);else{if(!e)return this;this._parts.path+=`.`+a.recodePath(e)}return c&&(e=a.recodePath(e),this._parts.path=this._parts.path.replace(c,e)),this.build(!t),this}},s.segment=function(e,t,n){var r=this._parts.urn?`:`:`/`,i=this.path(),a=i.substring(0,1)===`/`,o=i.split(r);if(e!==void 0&&typeof e!=`number`&&(n=t,t=e,e=void 0),e!==void 0&&typeof e!=`number`)throw Error(`Bad segment "`+e+`", must be 0-based integer`);if(a&&o.shift(),e<0&&(e=Math.max(o.length+e,0)),t===void 0)return e===void 0?o:o[e];if(e===null||o[e]===void 0)if(d(t)){o=[];for(var s=0,c=t.length;s<c;s++)!t[s].length&&(!o.length||!o[o.length-1].length)||(o.length&&!o[o.length-1].length&&o.pop(),o.push(h(t[s])))}else (t||typeof t==`string`)&&(t=h(t),o[o.length-1]===``?o[o.length-1]=t:o.push(t));else t?o[e]=h(t):o.splice(e,1);return a&&o.unshift(``),this.path(o.join(r),n)},s.segmentCoded=function(e,t,n){var r,i,o;if(typeof e!=`number`&&(n=t,t=e,e=void 0),t===void 0){if(r=this.segment(e,t,n),!d(r))r=r===void 0?void 0:a.decode(r);else for(i=0,o=r.length;i<o;i++)r[i]=a.decode(r[i]);return r}if(!d(t))t=typeof t==`string`||t instanceof String?a.encode(t):t;else for(i=0,o=t.length;i<o;i++)t[i]=a.encode(t[i]);return this.segment(e,t,n)};var D=s.query;return s.query=function(e,t){if(e===!0)return a.parseQuery(this._parts.query,this._parts.escapeQuerySpace);if(typeof e==`function`){var n=a.parseQuery(this._parts.query,this._parts.escapeQuerySpace),r=e.call(this,n);return this._parts.query=a.buildQuery(r||n,this._parts.duplicateQueryParameters,this._parts.escapeQuerySpace),this.build(!t),this}else if(e!==void 0&&typeof e!=`string`)return this._parts.query=a.buildQuery(e,this._parts.duplicateQueryParameters,this._parts.escapeQuerySpace),this.build(!t),this;else return D.call(this,e,t)},s.setQuery=function(e,t,n){var r=a.parseQuery(this._parts.query,this._parts.escapeQuerySpace);if(typeof e==`string`||e instanceof String)r[e]=t===void 0?null:t;else if(typeof e==`object`)for(var i in e)c.call(e,i)&&(r[i]=e[i]);else throw TypeError(`URI.addQuery() accepts an object, string as the name parameter`);return this._parts.query=a.buildQuery(r,this._parts.duplicateQueryParameters,this._parts.escapeQuerySpace),typeof e!=`string`&&(n=t),this.build(!n),this},s.addQuery=function(e,t,n){var r=a.parseQuery(this._parts.query,this._parts.escapeQuerySpace);return a.addQuery(r,e,t===void 0?null:t),this._parts.query=a.buildQuery(r,this._parts.duplicateQueryParameters,this._parts.escapeQuerySpace),typeof e!=`string`&&(n=t),this.build(!n),this},s.removeQuery=function(e,t,n){var r=a.parseQuery(this._parts.query,this._parts.escapeQuerySpace);return a.removeQuery(r,e,t),this._parts.query=a.buildQuery(r,this._parts.duplicateQueryParameters,this._parts.escapeQuerySpace),typeof e!=`string`&&(n=t),this.build(!n),this},s.hasQuery=function(e,t,n){var r=a.parseQuery(this._parts.query,this._parts.escapeQuerySpace);return a.hasQuery(r,e,t,n)},s.setSearch=s.setQuery,s.addSearch=s.addQuery,s.removeSearch=s.removeQuery,s.hasSearch=s.hasQuery,s.normalize=function(){return this._parts.urn?this.normalizeProtocol(!1).normalizePath(!1).normalizeQuery(!1).normalizeFragment(!1).build():this.normalizeProtocol(!1).normalizeHostname(!1).normalizePort(!1).normalizePath(!1).normalizeQuery(!1).normalizeFragment(!1).build()},s.normalizeProtocol=function(e){return typeof this._parts.protocol==`string`&&(this._parts.protocol=this._parts.protocol.toLowerCase(),this.build(!e)),this},s.normalizeHostname=function(n){return this._parts.hostname&&(this.is(`IDN`)&&e?this._parts.hostname=e.toASCII(this._parts.hostname):this.is(`IPv6`)&&t&&(this._parts.hostname=t.best(this._parts.hostname)),this._parts.hostname=this._parts.hostname.toLowerCase(),this.build(!n)),this},s.normalizePort=function(e){return typeof this._parts.protocol==`string`&&this._parts.port===a.defaultPorts[this._parts.protocol]&&(this._parts.port=null,this.build(!e)),this},s.normalizePath=function(e){var t=this._parts.path;if(!t)return this;if(this._parts.urn)return this._parts.path=a.recodeUrnPath(this._parts.path),this.build(!e),this;if(this._parts.path===`/`)return this;t=a.recodePath(t);var n,r=``,i,o;for(t.charAt(0)!==`/`&&(n=!0,t=`/`+t),(t.slice(-3)===`/..`||t.slice(-2)===`/.`)&&(t+=`/`),t=t.replace(/(\/(\.\/)+)|(\/\.$)/g,`/`).replace(/\/{2,}/g,`/`),n&&(r=t.substring(1).match(/^(\.\.\/)+/)||``,r&&=r[0]);i=t.search(/\/\.\.(\/|$)/),i!==-1;){if(i===0){t=t.substring(3);continue}o=t.substring(0,i).lastIndexOf(`/`),o===-1&&(o=i),t=t.substring(0,o)+t.substring(i+3)}return n&&this.is(`relative`)&&(t=r+t.substring(1)),this._parts.path=t,this.build(!e),this},s.normalizePathname=s.normalizePath,s.normalizeQuery=function(e){return typeof this._parts.query==`string`&&(this._parts.query.length?this.query(a.parseQuery(this._parts.query,this._parts.escapeQuerySpace)):this._parts.query=null,this.build(!e)),this},s.normalizeFragment=function(e){return this._parts.fragment||(this._parts.fragment=null,this.build(!e)),this},s.normalizeSearch=s.normalizeQuery,s.normalizeHash=s.normalizeFragment,s.iso8859=function(){var e=a.encode,t=a.decode;a.encode=escape,a.decode=decodeURIComponent;try{this.normalize()}finally{a.encode=e,a.decode=t}return this},s.unicode=function(){var e=a.encode,t=a.decode;a.encode=_,a.decode=unescape;try{this.normalize()}finally{a.encode=e,a.decode=t}return this},s.readable=function(){var t=this.clone();t.username(``).password(``).normalize();var n=``;if(t._parts.protocol&&(n+=t._parts.protocol+`://`),t._parts.hostname&&(t.is(`punycode`)&&e?(n+=e.toUnicode(t._parts.hostname),t._parts.port&&(n+=`:`+t._parts.port)):n+=t.host()),t._parts.hostname&&t._parts.path&&t._parts.path.charAt(0)!==`/`&&(n+=`/`),n+=t.path(!0),t._parts.query){for(var r=``,i=0,o=t._parts.query.split(`&`),s=o.length;i<s;i++){var c=(o[i]||``).split(`=`);r+=`&`+a.decodeQuery(c[0],this._parts.escapeQuerySpace).replace(/&/g,`%26`),c[1]!==void 0&&(r+=`=`+a.decodeQuery(c[1],this._parts.escapeQuerySpace).replace(/&/g,`%26`))}n+=`?`+r.substring(1)}return n+=a.decodeQuery(t.hash(),!0),n},s.absoluteTo=function(e){var t=this.clone(),n=[`protocol`,`username`,`password`,`hostname`,`port`],r,i,o;if(this._parts.urn)throw Error(`URNs do not have any generally defined hierarchical components`);if(e instanceof a||(e=new a(e)),t._parts.protocol||(t._parts.protocol=e._parts.protocol,this._parts.hostname))return t;for(i=0;o=n[i];i++)t._parts[o]=e._parts[o];return t._parts.path?(t._parts.path.substring(-2)===`..`&&(t._parts.path+=`/`),t.path().charAt(0)!==`/`&&(r=e.directory(),r||=e.path().indexOf(`/`)===0?`/`:``,t._parts.path=(r?r+`/`:``)+t._parts.path,t.normalizePath())):(t._parts.path=e._parts.path,t._parts.query||(t._parts.query=e._parts.query)),t.build(),t},s.relativeTo=function(e){var t=this.clone().normalize(),n,r,i,o,s;if(t._parts.urn)throw Error(`URNs do not have any generally defined hierarchical components`);if(e=new a(e).normalize(),n=t._parts,r=e._parts,o=t.path(),s=e.path(),o.charAt(0)!==`/`)throw Error(`URI is already relative`);if(s.charAt(0)!==`/`)throw Error(`Cannot calculate a URI relative to another relative URI`);if(n.protocol===r.protocol&&(n.protocol=null),n.username!==r.username||n.password!==r.password||n.protocol!==null||n.username!==null||n.password!==null)return t.build();if(n.hostname===r.hostname&&n.port===r.port)n.hostname=null,n.port=null;else return t.build();if(o===s)return n.path=``,t.build();if(i=a.commonPath(o,s),!i)return t.build();var c=r.path.substring(i.length).replace(/[^\/]*$/,``).replace(/.*?\//g,`../`);return n.path=c+n.path.substring(i.length)||`./`,t.build()},s.equals=function(e){var t=this.clone(),n=new a(e),r={},i={},o={},s,l,u;if(t.normalize(),n.normalize(),t.toString()===n.toString())return!0;if(s=t.query(),l=n.query(),t.query(``),n.query(``),t.toString()!==n.toString()||s.length!==l.length)return!1;for(u in r=a.parseQuery(s,this._parts.escapeQuerySpace),i=a.parseQuery(l,this._parts.escapeQuerySpace),r)if(c.call(r,u)){if(!d(r[u])){if(r[u]!==i[u])return!1}else if(!m(r[u],i[u]))return!1;o[u]=!0}for(u in i)if(c.call(i,u)&&!o[u])return!1;return!0},s.preventInvalidHostname=function(e){return this._parts.preventInvalidHostname=!!e,this},s.duplicateQueryParameters=function(e){return this._parts.duplicateQueryParameters=!!e,this},s.escapeQuerySpace=function(e){return this._parts.escapeQuerySpace=!!e,this},a})})),Ca=i((e=>{var t=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,`__esModule`,{value:!0}),e.uriSchemaAttributesProducer=e.uriInferenceAttributesProducer=e.uriTypeAttributeKind=void 0;var n=t(Sa()),r=na(),i=a(),o=Q(),s=`qt-uri-protocols`,c=`qt-uri-extensions`;e.uriTypeAttributeKind=new class extends r.TypeAttributeKind{constructor(){super(`uriAttributes`)}get inIdentity(){return!0}combine(e){let t=e.map(e=>e[0]),n=e.map(e=>e[1]);return[(0,i.setUnionManyInto)(new Set,t),(0,i.setUnionManyInto)(new Set,n)]}makeInferred(e){}addToSchema(e,t,n){if(t.kind!==`string`&&t.kind!==`uri`)return;let[r,i]=n;r.size>0&&(e[s]=Array.from(r).sort()),i.size>0&&(e[c]=Array.from(i).sort())}};var l=/^.+(\.[^./\\]+)$/;function u(e){let t=e.match(l);if(t!==null)return t[1]}function d(t){try{let r=(0,n.default)(t),i=u(r.path()),a=i===void 0?[]:[i.toLowerCase()];return e.uriTypeAttributeKind.makeAttributes([new Set([r.protocol().toLowerCase()]),new Set(a)])}catch{return r.emptyTypeAttributes}}e.uriInferenceAttributesProducer=d;function f(t,n,r){if(typeof t!=`object`||!r.has(`string`))return;let i,a=t[s];i=a===void 0?new Set:new Set((0,o.checkArray)(a,o.checkString));let l,u=t[c];if(l=u===void 0?new Set:new Set((0,o.checkArray)(u,o.checkString)),!(i.size===0&&l.size===0))return{forString:e.uriTypeAttributeKind.makeAttributes([i,l])}}e.uriSchemaAttributesProducer=f})),wa=i((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.UnionType=e.IntersectionType=e.SetOperationType=e.intersectionTypeIdentity=e.unionTypeIdentity=e.setOperationTypeIdentity=e.setOperationCasesEqual=e.EnumType=e.enumTypeIdentity=e.MapType=e.ClassType=e.ObjectType=e.mapTypeIdentify=e.classTypeIdentity=e.ClassProperty=e.GenericClassProperty=e.ArrayType=e.arrayTypeIdentity=e.PrimitiveType=e.primitiveTypeIdentity=e.Type=e.TypeIdentity=e.isPrimitiveTypeKind=e.isNumberTypeKind=e.targetTypeKindForTransformedStringTypeKind=e.isPrimitiveStringTypeKind=e.transformedStringTypeKinds=e.transformedStringTypeTargetTypeKindsMap=void 0;var t=a(),n=Q(),r=fa(),i=C(),o=va(),s=Ca(),c={date:{jsonSchema:`date`,primitive:void 0},time:{jsonSchema:`time`,primitive:void 0},"date-time":{jsonSchema:`date-time`,primitive:void 0},uuid:{jsonSchema:`uuid`,primitive:void 0},uri:{jsonSchema:`uri`,primitive:void 0,attributesProducer:s.uriInferenceAttributesProducer},"integer-string":{jsonSchema:`integer`,primitive:`integer`},"bool-string":{jsonSchema:`boolean`,primitive:`bool`}};e.transformedStringTypeTargetTypeKindsMap=(0,t.mapFromObject)(c),e.transformedStringTypeKinds=new Set(Object.getOwnPropertyNames(c));function l(e){return e===`string`||(0,t.hasOwnProperty)(c,e)}e.isPrimitiveStringTypeKind=l;function u(t){let n=e.transformedStringTypeTargetTypeKindsMap.get(t);if(n!==void 0)return n.primitive}e.targetTypeKindForTransformedStringTypeKind=u;function d(e){return e===`integer`||e===`double`}e.isNumberTypeKind=d;function f(e){return l(e)||d(e)?!0:e===`none`||e===`any`||e===`null`||e===`bool`}e.isPrimitiveTypeKind=f;function p(e,t){return e.index===t.index||e.kind===`none`||t.kind===`none`}var m=class e{constructor(e,n){this._kind=e,this._components=n;let r=t.hashCodeInit;r=(0,t.addHashCode)(r,(0,t.hashCodeOf)(this._kind));for(let e of n)r=(0,t.addHashCode)(r,(0,t.hashCodeOf)(e));this._hashCode=r}equals(r){if(!(r instanceof e)||this._kind!==r._kind)return!1;let i=this._components.length;(0,n.assert)(i===r._components.length,`Components of a type kind's identity must have the same length`);for(let e=0;e<i;e++)if(!(0,t.areEqual)(this._components[e],r._components[e]))return!1;return!0}hashCode(){return this._hashCode}};e.TypeIdentity=m;var h=class e{constructor(e,t){this.typeRef=e,this.graph=t}get index(){return(0,o.typeRefIndex)(this.typeRef)}getChildren(){let e=this.getNonAttributeChildren();for(let[n,r]of this.getAttributes())n.children!==void 0&&(0,t.setUnionInto)(e,n.children(r));return e}getAttributes(){return(0,o.attributesForTypeRef)(this.typeRef,this.graph)}get hasNames(){return r.namesTypeAttributeKind.tryGetInAttributes(this.getAttributes())!==void 0}getNames(){return(0,n.defined)(r.namesTypeAttributeKind.tryGetInAttributes(this.getAttributes()))}getCombinedName(){return this.getNames().combinedName}get debugPrintKind(){return this.kind}equals(t){return t instanceof e?this.typeRef===t.typeRef:!1}hashCode(){return(0,t.hashCodeOf)(this.typeRef)}structurallyCompatible(e,t=!1){function r(e,n){return e===n?!0:t?e===`integer`?n===`double`:e===`double`?n===`integer`:!1:!1}if(p(this,e))return!0;if(!r(this.kind,e.kind))return!1;let i=[[this,e]],a=[],o,s=(e,t)=>p(e,t)?!0:r(e.kind,t.kind)?(i.push([e,t]),!0):(o=!0,!1);for(;i.length>0;){let[e,r]=(0,n.defined)(i.pop());if(e.index>r.index&&([e,r]=[r,e]),!e.isPrimitive()){let t=e.index,n=r.index,i=!1;for(let[e,r]of a)if(e===t&&r===n){i=!0;break}if(i)continue;a.push([t,n])}if(o=!1,!e.structuralEqualityStep(r,t,s)||o)return!1}return!0}getParentTypes(){return this.graph.getParentsOfType(this)}getAncestorsNotInSet(e){let t=[this],n=new Set,r=new Set;for(;;){let i=t.pop();if(i===void 0)break;let a=i.getParentTypes();console.log(`${a.size} parents`);for(let i of a)n.has(i)||(n.add(i),e.has(i.typeRef)?(console.log(`adding ${i.kind}`),t.push(i)):(console.log(`found ${i.kind}`),r.add(i)))}return r}};e.Type=h;function g(e){return(0,t.mapSome)(e,(e,t)=>t.requiresUniqueIdentity(e))}function _(e){return(0,t.mapFilter)(e,(e,t)=>t.inIdentity)}function v(e,t){if(!g(t))return new m(e,[_(t)])}e.primitiveTypeIdentity=v,e.PrimitiveType=class extends h{constructor(e,t,n){super(e,t),this.kind=n}get isNullable(){return this.kind===`null`||this.kind===`any`||this.kind===`none`}isPrimitive(){return!0}getNonAttributeChildren(){return new Set}get identity(){return v(this.kind,this.getAttributes())}reconstitute(e){e.getPrimitiveType(this.kind)}structuralEqualityStep(e,t,n){return!0}};function y(e,t){if(!g(e))return new m(`array`,[_(e),t])}e.arrayTypeIdentity=y,e.ArrayType=class extends h{constructor(e,t,n){super(e,t),this._itemsRef=n,this.kind=`array`}setItems(e){if(this._itemsRef!==void 0)return(0,n.panic)(`Can only set array items once`);this._itemsRef=e}getItemsRef(){return this._itemsRef===void 0?(0,n.panic)(`Array items accessed before they were set`):this._itemsRef}get items(){return(0,o.derefTypeRef)(this.getItemsRef(),this.graph)}getNonAttributeChildren(){return new Set([this.items])}get isNullable(){return!1}isPrimitive(){return!1}get identity(){return y(this.getAttributes(),this.getItemsRef())}reconstitute(e){let t=this.getItemsRef(),n=e.lookup(t);n===void 0?(e.getUniqueArrayType(),e.setArrayItems(e.reconstitute(this.getItemsRef()))):e.getArrayType(n)}structuralEqualityStep(e,t,n){return n(this.items,e.items)}};var b=class e{constructor(e,t){this.typeData=e,this.isOptional=t}equals(n){return n instanceof e?(0,t.areEqual)(this.typeData,n.typeData)&&this.isOptional===n.isOptional:!1}hashCode(){return(0,t.hashCodeOf)(this.typeData)+(this.isOptional?17:23)}};e.GenericClassProperty=b,e.ClassProperty=class extends b{constructor(e,t,n){super(e,n),this.graph=t}get typeRef(){return this.typeData}get type(){return(0,o.derefTypeRef)(this.typeRef,this.graph)}};function x(e,t,n,r){if(!g(t))return new m(e,[_(t),n,r])}function S(e,t){return x(`class`,e,t,void 0)}e.classTypeIdentity=S;function w(e,t){return x(`map`,e,new Map,t)}e.mapTypeIdentify=w;var T=class extends h{constructor(e,t,r,i,a,o){super(e,t),this.kind=r,this.isFixed=i,this._properties=a,this._additionalPropertiesRef=o,r===`map`?(a!==void 0&&(0,n.assert)(a.size===0),(0,n.assert)(!i)):r===`class`?(0,n.assert)(o===void 0):(0,n.assert)(i)}setProperties(e,t){(0,n.assert)(this._properties===void 0,`Tried to set object properties twice`),this instanceof D&&(0,n.assert)(e.size===0,`Cannot set properties on map type`),this instanceof E&&(0,n.assert)(t===void 0,`Cannot set additional properties of class type`),this._properties=e,this._additionalPropertiesRef=t}getProperties(){return(0,n.defined)(this._properties)}getSortedProperties(){return(0,t.mapSortByKey)(this.getProperties())}getAdditionalPropertiesRef(){return(0,n.assert)(this._properties!==void 0,`Properties are not set yet`),this._additionalPropertiesRef}getAdditionalProperties(){let e=this.getAdditionalPropertiesRef();if(e!==void 0)return(0,o.derefTypeRef)(e,this.graph)}getNonAttributeChildren(){let e=(0,t.mapSortToArray)(this.getProperties(),(e,t)=>t).map(([e,t])=>t.type),n=this.getAdditionalProperties();return n!==void 0&&e.push(n),new Set(e)}get isNullable(){return!1}isPrimitive(){return!1}get identity(){if(!this.isFixed)return x(this.kind,this.getAttributes(),this.getProperties(),this.getAdditionalPropertiesRef())}reconstitute(e,r){let i=this.getSortedProperties(),a=r?i:this.getProperties(),o=e.lookupMap((0,t.mapMap)(i,e=>e.typeRef)),s=(0,t.definedMap)(this._additionalPropertiesRef,t=>e.lookup(t));if(o!==void 0&&(s!==void 0||this._additionalPropertiesRef===void 0)){let r=(0,t.mapMap)(a,(t,r)=>e.makeClassProperty((0,n.defined)(o.get(r)),t.isOptional));switch(this.kind){case`object`:(0,n.assert)(this.isFixed),e.getObjectType(r,s);break;case`map`:e.getMapType((0,n.defined)(s));break;case`class`:this.isFixed?e.getUniqueClassType(!0,r):e.getClassType(r);break;default:return(0,n.panic)(`Invalid object type kind ${this.kind}`)}}else{switch(this.kind){case`object`:(0,n.assert)(this.isFixed),e.getUniqueObjectType(void 0,void 0);break;case`map`:e.getUniqueMapType();break;case`class`:e.getUniqueClassType(this.isFixed,void 0);break;default:return(0,n.panic)(`Invalid object type kind ${this.kind}`)}let r=(0,t.mapMap)(i,t=>e.reconstitute(t.typeRef)),o=(0,t.mapMap)(a,(t,i)=>e.makeClassProperty((0,n.defined)(r.get(i)),t.isOptional)),s=(0,t.definedMap)(this._additionalPropertiesRef,t=>e.reconstitute(t));e.setObjectProperties(o,s)}}structuralEqualityStep(e,t,n){let r=this.getProperties(),i=e.getProperties();if(r.size!==i.size)return!1;let a=!1;for(let[e,t]of r){let r=i.get(e);if(r===void 0||t.isOptional!==r.isOptional||!n(t.type,r.type))return a=!0,!1}if(a)return!1;let o=this.getAdditionalProperties(),s=e.getAdditionalProperties();return o===void 0==(s===void 0)?o===void 0||s===void 0?!0:n(o,s):!1}};e.ObjectType=T;var E=class extends T{constructor(e,t,n,r){super(e,t,`class`,n,r,void 0)}};e.ClassType=E;var D=class extends T{constructor(e,n,r){super(e,n,`map`,!1,(0,t.definedMap)(r,()=>new Map),r)}get values(){return(0,n.defined)(this.getAdditionalProperties())}};e.MapType=D;function O(e,t){if(!g(e))return new m(`enum`,[_(e),t])}e.enumTypeIdentity=O,e.EnumType=class extends h{constructor(e,t,n){super(e,t),this.cases=n,this.kind=`enum`}get isNullable(){return!1}isPrimitive(){return!1}get identity(){return O(this.getAttributes(),this.cases)}getNonAttributeChildren(){return new Set}reconstitute(e){e.getEnumType(this.cases)}structuralEqualityStep(e,n,r){return(0,t.areEqual)(this.cases,e.cases)}};function k(e,n,r,i){let a=(0,t.toReadonlySet)(e),o=(0,t.toReadonlySet)(n);return a.size===o.size?(0,t.iterableEvery)(a,e=>{let n=(0,t.iterableFind)(o,t=>t.kind===e.kind);return!!(n!==void 0&&i(e,n)||r&&(e.kind===`integer`&&(0,t.iterableSome)(o,e=>e.kind===`double`)||e.kind===`double`&&(0,t.iterableSome)(o,e=>e.kind===`integer`)))}):!1}e.setOperationCasesEqual=k;function A(e,t,n){if(!g(t))return new m(e,[_(t),n])}e.setOperationTypeIdentity=A;function j(e,t){return A(`union`,e,t)}e.unionTypeIdentity=j;function M(e,t){return A(`intersection`,e,t)}e.intersectionTypeIdentity=M;var N=class extends h{constructor(e,t,n,r){super(e,t),this.kind=n,this._memberRefs=r}setMembers(e){if(this._memberRefs!==void 0)return(0,n.panic)(`Can only set map members once`);this._memberRefs=e}getMemberRefs(){return this._memberRefs===void 0?(0,n.panic)(`Map members accessed before they were set`):this._memberRefs}get members(){return(0,t.setMap)(this.getMemberRefs(),e=>(0,o.derefTypeRef)(e,this.graph))}get sortedMembers(){return this.getNonAttributeChildren()}getNonAttributeChildren(){return(0,t.setSortBy)(this.members,e=>e.kind)}isPrimitive(){return!1}get identity(){return A(this.kind,this.getAttributes(),this.getMemberRefs())}reconstituteSetOperation(e,r,i){let a=(0,t.mapMap)(this.sortedMembers.entries(),e=>e.typeRef),o=r?this.sortedMembers:this.members,s=e.lookupMap(a);if(s===void 0){i(void 0);let r=e.reconstituteMap(a);e.setSetOperationMembers((0,t.setMap)(o,e=>(0,n.defined)(r.get(e))))}else i((0,t.setMap)(o,e=>(0,n.defined)(s.get(e))))}structuralEqualityStep(e,t,n){return k(this.members,e.members,t,n)}};e.SetOperationType=N,e.IntersectionType=class extends N{constructor(e,t,n){super(e,t,`intersection`,n)}get isNullable(){return(0,n.panic)(`isNullable not implemented for IntersectionType`)}reconstitute(e,t){this.reconstituteSetOperation(e,t,t=>{t===void 0?e.getUniqueIntersectionType():e.getIntersectionType(t)})}},e.UnionType=class extends N{constructor(e,t,n){super(e,t,`union`,n),n!==void 0&&(0,i.messageAssert)(n.size>0,`IRNoEmptyUnions`,{})}setMembers(e){(0,i.messageAssert)(e.size>0,`IRNoEmptyUnions`,{}),super.setMembers(e)}get stringTypeMembers(){return(0,t.setFilter)(this.members,e=>l(e.kind)||e.kind===`enum`)}findMember(e){return(0,t.iterableFind)(this.members,t=>t.kind===e)}get isNullable(){return this.findMember(`null`)!==void 0}get isCanonical(){let e=this.members;if(e.size<=1)return!1;let n=(0,t.setMap)(e,e=>e.kind);if(n.size<e.size||n.has(`union`)||n.has(`intersection`)||n.has(`none`)||n.has(`any`)||n.has(`string`)&&n.has(`enum`))return!1;let r=0;return n.has(`class`)&&(r+=1),n.has(`map`)&&(r+=1),n.has(`object`)&&(r+=1),!(r>1)}reconstitute(e,t){this.reconstituteSetOperation(e,t,t=>{t===void 0?e.getUniqueUnionType():e.getUnionType(t)})}}})),Ta=i((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.assignNames=e.keywordNamespace=e.DependencyName=e.AssociatedName=e.SimpleName=e.FixedName=e.Name=e.funPrefixNamer=e.Namer=e.Namespace=void 0;var t=a(),n=Q(),r=class{constructor(e,t,n,r){this._children=new Set,this._members=new Set,this.forbiddenNamespaces=new Set(n),this.additionalForbidden=new Set(r),t!==void 0&&t.addChild(this)}addChild(e){this._children.add(e)}get children(){return this._children}get members(){return this._members}get forbiddenNameds(){return(0,t.setUnion)(this.additionalForbidden,...Array.from(this.forbiddenNamespaces).map(e=>e.members))}add(e){return this._members.add(e),e}};e.Namespace=r;var i=class{constructor(e,t,n){this.name=e,this.nameStyle=t,this._prefixes=new Set(n)}assignNames(e,r,i){let a=new Set(r),o=Array.from(i);(0,n.assert)(o.length>0,`Number of names can't be less than 1`);let s=new Map,c=[];for(let n of o){let r=n.proposeUnstyledNames(e),i=n.namingFunction,l=(0,t.iterableFind)(r,t=>!a.has(i.nameStyle(t))&&o.every(r=>r===n||!r.proposeUnstyledNames(e).has(t)));if(l!==void 0){let e=i.nameStyle(l),r=n.nameAssignments(a,e);if(r!==null){(0,t.mapMergeInto)(s,r),(0,t.setUnionInto)(a,r.values());continue}}c.push(n)}let l=this._prefixes.values(),u=1;for(let r of c){let i=(0,n.defined)((0,t.iterableFirst)(r.proposeUnstyledNames(e)));for(;;){let e,{done:n,value:o}=l.next();n?(e=`${i}_${u.toString()}`,u++):e=`${o}_${i}`;let c=r.namingFunction.nameStyle(e),d=r.nameAssignments(a,c);if(d!==null){(0,t.mapMergeInto)(s,d),(0,t.setUnionInto)(a,d.values());break}}}return s}};e.Namer=i;var o=[`Purple`,`Fluffy`,`Tentacled`,`Sticky`,`Indigo`,`Indecent`,`Hilarious`,`Ambitious`,`Cunning`,`Magenta`,`Frisky`,`Mischievous`,`Braggadocious`];function s(e,t){return new i(e,t,o)}e.funPrefixNamer=s;var c=class{constructor(e,t){this._namingFunction=e,this.order=t,this._associates=new Set}addAssociate(e){this._associates.add(e)}isFixed(){return this instanceof l}get namingFunction(){return(0,n.defined)(this._namingFunction)}firstProposedName(e){return(0,n.defined)((0,t.iterableFirst)(this.proposeUnstyledNames(e)))}nameAssignments(e,t){if(e.has(t))return null;let n=new Map([[this,t]]);for(let r of this._associates){let i=r.getName(t);if(e.has(i))return null;n.set(r,i)}return n}};e.Name=c;var l=class extends c{constructor(e){super(void 0,0),this._fixedName=e}get dependencies(){return[]}addAssociate(e){return(0,n.panic)(`Cannot add associates to fixed names`)}get fixedName(){return this._fixedName}proposeUnstyledNames(e){return(0,n.panic)(`Only fixedName should be called on FixedName.`)}};e.FixedName=l,e.SimpleName=class extends c{constructor(e,t,n){super(t,n),this._unstyledNames=new Set(e)}get dependencies(){return[]}proposeUnstyledNames(e){return this._unstyledNames}},e.AssociatedName=class extends c{constructor(e,t,n){super(void 0,t),this._sponsor=e,this.getName=n}get dependencies(){return[this._sponsor]}proposeUnstyledNames(e){return(0,n.panic)(`AssociatedName must be assigned via its sponsor`)}},e.DependencyName=class extends c{constructor(e,t,n){super(e,t),this._proposeUnstyledName=n;let r=[];n(e=>(r.push(e),`0xDEADBEEF`)),this._dependencies=new Set(r)}get dependencies(){return Array.from(this._dependencies)}proposeUnstyledNames(e){return new Set([this._proposeUnstyledName(t=>((0,n.assert)(this._dependencies.has(t),`DependencyName proposer is not pure`),(0,n.defined)(e.get(t))))])}};function u(e,t){let n=new r(e,void 0,[],[]);for(let e of t)n.add(new l(e));return n}e.keywordNamespace=u;function d(e){return(0,t.setUnion)(e,...Array.from((0,t.setMap)(e,e=>d(e.children))))}var f=class{constructor(e){this._names=new Map,this._namedsForName=new Map,this.isReadyToBeNamed=e=>this._names.has(e)?!1:e.dependencies.every(e=>this._names.has(e)),this.isConflicting=(e,t)=>{let n=this._namedsForName.get(t);if(n===void 0)return!1;for(let t of n)if(e.members.has(t)||e.forbiddenNameds.has(t))return!0;return!1},this.assign=(e,t,r)=>{(0,n.assert)(!this.names.has(e),`Name "${r}" assigned twice`),(0,n.assert)(!this.isConflicting(t,r),`Assigned name "${r}" conflicts`),this._names.set(e,r);let i=this._namedsForName.get(r);i===void 0&&(i=new Set,this._namedsForName.set(r,i)),i.add(e)},this.namespaces=d(e)}get names(){return this._names}areForbiddensFullyNamed(e){return(0,t.iterableEvery)(e.forbiddenNameds,e=>this._names.has(e))}};function p(e){let n=new f(e);for(let e of n.namespaces)for(let t of e.members)t.isFixed()&&n.assign(t,e,t.fixedName);for(;;){let e=(0,t.setFilter)(n.namespaces,e=>n.areForbiddensFullyNamed(e)),r=(0,t.iterableFind)(e,e=>(0,t.iterableSome)(e.members,n.isReadyToBeNamed));if(r===void 0)return n.names;let i=(0,t.setUnion)(r.members,r.forbiddenNameds),a=(0,t.setFilterMap)(i,e=>n.names.get(e));for(;;){let e=(0,t.setFilter)(r.members,n.isReadyToBeNamed),i=(0,t.iterableMinBy)(e,e=>e.order);if(i===void 0)break;let o=i.order,s=(0,t.setFilter)(e,e=>e.order===o),c=(0,t.setGroupBy)(s,e=>e.namingFunction);for(let[e,i]of c){let o=(0,t.setGroupBy)(i,e=>e.namingFunction.nameStyle(e.firstProposedName(n.names)));for(let[,i]of o){let o=e.assignNames(n.names,a,i);for(let[e,t]of o)n.assign(e,r,t);(0,t.setUnionInto)(a,o.values())}}}}}e.assignNames=p})),Ea=i((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.parenIfNeeded=e.multiWord=e.singleWord=e.serializeRenderResult=e.modifySource=e.maybeAnnotated=e.annotated=e.sourcelikeToSource=e.newline=void 0;var t=a(),n=Ta(),r=Q(),i=ua();function o(){return{kind:`newline`,indentationChange:0}}e.newline=o;function s(e){if(e instanceof Array)return{kind:`sequence`,sequence:e.map(s)};if(typeof e==`string`){let n=e.split(`
|
|
117
117
|
`);return n.length===1?{kind:`text`,text:e}:{kind:`sequence`,sequence:(0,t.arrayIntercalate)(o(),n.map(e=>({kind:`text`,text:e})))}}return e instanceof n.Name?{kind:`name`,named:e}:e}e.sourcelikeToSource=s;function c(e,t){return{kind:`annotated`,annotation:e,source:s(t)}}e.annotated=c;function l(e,t,n){return e?c(t,n):n}e.maybeAnnotated=l;function u(e,t){return{kind:`modified`,modifier:e,source:s(t)}}e.modifySource=u;function d(e,t){switch(e.kind){case`text`:return e.text.length;case`newline`:return(0,r.panic)(`Newline must not occur within a line.`);case`sequence`:return e.sequence.map(e=>d(e,t)).reduce((e,t)=>e+t,0);case`table`:return(0,r.panic)(`Table must not occur within a line.`);case`annotated`:return d(e.source,t);case`name`:return(0,r.defined)(t.get(e.named)).length;case`modified`:return f(e,t,``).lines.join(`
|
|
118
118
|
`).length;default:return(0,r.assertNever)(e)}}function f(e,n,a){let o=0,s=0,c=[],l=[],u=[];function p(){s!==0&&(l.push((0,i.repeatString)(a,s)),s=0)}function m(){let e=l.join(``);return l=[e],e}function h(){return{line:c.length,column:m().length}}function g(){c.push(m()),l=[]}function _(e){switch(e.kind){case`text`:p(),l.push(e.text);break;case`newline`:g(),o+=e.indentationChange,s=o;break;case`sequence`:for(let t of e.sequence)_(t);break;case`table`:let c=e.table,m=c.length;if(m===0)break;let v=c.map(e=>e.map(e=>d(e,n))),y=(0,r.defined)((0,t.iterableMax)(c.map(e=>e.length)));if(y===0)break;let b=[];for(let e=0;e<y;e++)b.push((0,r.defined)((0,t.iterableMax)(v.map(n=>(0,t.withDefault)(n[e],0)))));for(let e=0;e<m;e++){p();let n=(0,r.defined)(c[e]),a=(0,r.defined)(v[e]);for(let e=0;e<y;e++){let r=b[e],o=(0,t.withDefault)(n[e],{kind:`text`,text:``}),s=(0,t.withDefault)(a[e],0);_(o),e<y-1&&s<r&&l.push((0,i.repeatString)(` `,r-s))}e<m-1&&(g(),s=o)}break;case`annotated`:let x=h();_(e.source);let S=h();u.push({annotation:e.annotation,span:{start:x,end:S}});break;case`name`:(0,r.assert)(n.has(e.named),`No name for Named`),p(),l.push((0,r.defined)(n.get(e.named)));break;case`modified`:p();let C=f(e.source,n,a).lines;(0,r.assert)(C.length===1,`Cannot modify more than one line.`),l.push(e.modifier(C[0]));break;default:return(0,r.assertNever)(e)}}return _(e),g(),{lines:c,annotations:u}}e.serializeRenderResult=f;function p(...e){return{source:e,needsParens:!1}}e.singleWord=p;function m(e,...t){if((0,r.assert)(t.length>0,`Zero words is not multiple`),t.length===1)return p(t[0]);let n=[];for(let r=0;r<t.length;r++)r>0&&n.push(e),n.push(t[r]);return{source:n,needsParens:!0}}e.multiWord=m;function h({source:e,needsParens:t}){return t?[`(`,e,`)`]:e}e.parenIfNeeded=h})),Da=i((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.nullTypeIssueAnnotation=e.anyTypeIssueAnnotation=e.IssueAnnotationData=e.AnnotationData=void 0;var t=class{};e.AnnotationData=t;var n=class extends t{constructor(e){super(),this.message=e}};e.IssueAnnotationData=n,e.anyTypeIssueAnnotation=new n(`quicktype cannot infer this type because there is no data about it in the input.`),e.nullTypeIssueAnnotation=new n(`The only value for this in the input is null, which means you probably need a more complete input sample.`)})),Oa=i((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.Renderer=void 0;var t=a(),n=Ta(),r=Ea(),i=Da(),o=Q();function s(e){return Array.isArray(e)?{position:e[0],count:e[1]}:{position:e,count:1}}function c(e){let t=e.length,n=0;for(let r=0;r<t;r++){let t=e.charAt(r);if(t===` `)n+=1;else if(t===` `)n=(n/4+1)*4;else return{indent:n,text:e.substring(r)}}return{indent:0,text:null}}var l=class{constructor(){this._currentEmitTarget=this._emitted=[],this._numBlankLinesNeeded=0,this._preventBlankLine=!0}get isEmpty(){return this._emitted.length===0}get isNested(){return this._emitted!==this._currentEmitTarget}get source(){return this._emitted}pushItem(e){this._currentEmitTarget.push(e),this._preventBlankLine=!1}emitNewline(){let e=(0,r.newline)();this.pushItem(e),this._lastNewline=e}emitItem(e){if(!this.isEmpty)for(let e=0;e<this._numBlankLinesNeeded;e++)this.emitNewline();this._numBlankLinesNeeded=0,this.pushItem(e)}containsItem(e){return this._currentEmitTarget.find(t=>e===t)!==void 0}ensureBlankLine(e){this._preventBlankLine||(this._numBlankLinesNeeded=Math.max(this._numBlankLinesNeeded,e))}preventBlankLine(){this._numBlankLinesNeeded=0,this._preventBlankLine=!0}changeIndent(e){if(this._lastNewline===void 0)return(0,o.panic)(`Cannot change indent for the first line`);this._lastNewline.indentationChange+=e}};e.Renderer=class{constructor(e,t){this.targetLanguage=e,this.emitTable=e=>{if(e.length===0)return;let t=e.map(e=>e.map(e=>(0,r.sourcelikeToSource)(e)));this._emitContext.emitItem({kind:`table`,table:t}),this._emitContext.emitNewline()},this.typeGraph=t.typeGraph,this.leadingComments=t.leadingComments,this._finishedFiles=new Map,this._finishedEmitContexts=new Map,this._emitContext=new l}ensureBlankLine(e=1){this._emitContext.ensureBlankLine(e)}preventBlankLine(){this._emitContext.preventBlankLine()}emitItem(e){this._emitContext.emitItem(e)}emitItemOnce(e){return this._emitContext.containsItem(e)?!1:(this.emitItem(e),!0)}emitLineOnce(...e){let t=!0;e.length===1?t=this.emitItemOnce(e[0]):e.length>1&&(t=this.emitItemOnce(e)),t&&this._emitContext.emitNewline()}emitLine(...e){e.length===1?this._emitContext.emitItem(e[0]):e.length>1&&this._emitContext.emitItem(e),this._emitContext.emitNewline()}emitMultiline(e){let t=e.split(`
|
|
119
119
|
`),n=t.length;if(n===0)return;this.emitLine(t[0]);let r=0;for(let e=1;e<n;e++){let n=t[e],{indent:i,text:a}=c(n);if((0,o.assert)(i%4==0,`Indentation is not a multiple of 4.`),a!==null){let e=i/4;this.changeIndent(e-r),r=e,this.emitLine(a)}else this._emitContext.emitNewline()}r!==0&&this.changeIndent(-r)}gatherSource(e){let t=this._emitContext;this._emitContext=new l,e(),(0,o.assert)(!this._emitContext.isNested,`emit context not restored correctly`);let n=this._emitContext.source;return this._emitContext=t,n}emitGatheredSource(e){for(let t of e)this._emitContext.emitItem(t)}emitAnnotated(e,t){let n=this.gatherSource(t),i=(0,r.sourcelikeToSource)(n);this._emitContext.emitItem((0,r.annotated)(e,i))}emitIssue(e,t){this.emitAnnotated(new i.IssueAnnotationData(e),t)}changeIndent(e){this._emitContext.changeIndent(e)}iterableForEach(e,n){let r=Array.from(e),i=!0;for(let[e,a]of(0,t.iterableEnumerate)(r))n(a,r.length===1?`only`:i?`first`:e===r.length-1?`last`:`middle`),i=!1}forEach(e,t,n,r){let i=!1;return this.iterableForEach(e,([e,a],o)=>{o===`only`||o===`first`?this.ensureBlankLine(n):this.ensureBlankLine(t),r(a,e,o),i=!0}),i}forEachWithBlankLines(e,t,n){let{position:r,count:i}=s(t),a=[`interposing`,`leading-and-interposing`].indexOf(r)>=0,o=[`leading`,`leading-and-interposing`].indexOf(r)>=0;return this.forEach(e,a?i:0,o?i:0,n)}indent(e){this.changeIndent(1),e(),this.changeIndent(-1)}assignNames(){return(0,n.assignNames)(this.setUpNaming())}initializeEmitContextForFilename(e){if(this._finishedEmitContexts.has(e.toLowerCase())){let t=this._finishedEmitContexts.get(e.toLowerCase());t!==void 0&&(this._emitContext=t)}}finishFile(e){this._finishedFiles.has(e)&&console.log(`[WARNING] Tried to emit file ${e} more than once. If performing multi-file output this warning can be safely ignored.`);let t=(0,r.sourcelikeToSource)(this._emitContext.source);this._finishedFiles.set(e,t),this._finishedEmitContexts.set(e.toLowerCase(),this._emitContext),this._emitContext=new l}render(e){return this._names=this.assignNames(),this.emitSource(e),this._emitContext.isEmpty||this.finishFile(e),{sources:this._finishedFiles,names:this._names}}get names(){return this._names===void 0?(0,o.panic)(`Names accessed before they were assigned`):this._names}}})),ka=i((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.declarationsForGraph=e.cycleBreakerTypesForGraph=e.DeclarationIR=void 0;var t=a(),n=Q(),r=_a(),i=C(),o=class{constructor(e,t){this.forwardedTypes=t,this.declarations=Array.from(e)}};e.DeclarationIR=o;function s(e,t,r){let i=t.indexOf(e);if(i<0)return;if(r===void 0)return t[i];let a=t.slice(0,i+1).reverse().find(r);return a===void 0?(0,n.panic)(`Found a cycle that cannot be broken`):a}function c(e,t,r){let i=new Set,a=new Set,o=Array.from(e.topLevels.values());function c(e,n){if(!i.has(e)){if(t(e))for(let t of e.getChildren())o.push(t);else{let t=s(e,n,r);if(t!==void 0){a.add(t);return}for(let t of e.getChildren())n.unshift(e),c(t,n),n.shift()}i.add(e)}}for(;;){let e=o.pop();if(e===void 0)break;let t=[];c(e,t),(0,n.assert)(t.length===0)}return a}e.cycleBreakerTypesForGraph=c;function l(e,a,s,c){let l=a===void 0,u=[],d=new Set,f=new Set;function p(e,o){let m=e.stronglyConnectedComponents();function h(e){if(f.has(e))return;f.add(e);let o=(0,t.setFilter)(e,c);if(o.size===1){u.push({kind:`define`,type:(0,n.defined)((0,t.iterableFirst)(o))});return}if(o.size===0&&e.size===1)return;if(o.size===0){u.push({kind:`define`,type:(0,n.defined)((0,t.iterableFirst)(e))});return}if(a===void 0){for(let e of o)u.push({kind:`define`,type:e});return}let l=(0,t.setFilter)(e,a);if(l.size===0)return(0,i.messageError)(`IRNoForwardDeclarableTypeInCycle`,{});for(let e of l)u.push({kind:`forward`,type:e});(0,t.setUnionInto)(d,l);let m=(0,t.setSubtract)(e,l);p(new r.Graph(m,!0,e=>(0,t.setIntersect)(s(e),m)),!1);for(let e of l)u.push({kind:`define`,type:e})}let g=m.findRoots();for(let e of g)m.dfsTraversal(e,l,h)}return p(e.makeGraph(!1,s),!0),new o(u,d)}e.declarationsForGraph=l})),Aa=i((e=>{var t=e&&e.__awaiter||function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})};Object.defineProperty(e,`__esModule`,{value:!0}),e.JSONSchemaStore=void 0;var n=Q();e.JSONSchemaStore=class{constructor(){this._schemas=new Map}add(e,t){(0,n.assert)(!this._schemas.has(e),`Cannot set a schema for an address twice`),this._schemas.set(e,t)}get(e,n){return t(this,void 0,void 0,function*(){let t=this._schemas.get(e);if(t!==void 0)return t;n&&console.log(`trying to fetch ${e}`);try{t=yield this.fetch(e)}catch{}if(t===void 0){n&&console.log(`couldn't fetch ${e}`);return}return n&&console.log(`successully fetched ${e}`),this.add(e,t),t})}}})),ja=i((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.accessorNamesAttributeProducer=e.makeAccessorNames=e.unionMemberName=e.makeUnionMemberNamesAttribute=e.unionMemberNamesTypeAttributeKind=e.makeUnionIdentifierAttribute=e.unionIdentifierTypeAttributeKind=e.getAccessorName=e.enumCaseNames=e.objectPropertyNames=e.lookupKey=e.accessorNamesTypeAttributeKind=void 0;var t=a(),n=na(),r=Q(),i=C();e.accessorNamesTypeAttributeKind=new class extends n.TypeAttributeKind{constructor(){super(`accessorNames`)}makeInferred(e){}};function o(e,t){if(typeof e==`string`)return[e,!1];let n=e.get(t);if(n!==void 0)return[n,!0];let r=e.get(`*`);if(r!==void 0)return[r,!1]}function s(e,t,n){let r=e.get(t);if(r!==void 0)return o(r,n)}e.lookupKey=s;function c(n,r){let i=e.accessorNamesTypeAttributeKind.tryGetInAttributes(n.getAttributes()),a=n.getProperties();return i===void 0?(0,t.mapMap)(a,e=>void 0):(0,t.mapMap)(a,(e,t)=>s(i,t,r))}e.objectPropertyNames=c;function l(n,r){let i=e.accessorNamesTypeAttributeKind.tryGetInAttributes(n.getAttributes());return i===void 0?(0,t.mapMap)(n.cases.entries(),e=>void 0):(0,t.mapMap)(n.cases.entries(),e=>s(i,e,r))}e.enumCaseNames=l;function u(e,t){let n=e.get(t);return n===void 0?[void 0,!1]:n}e.getAccessorName=u,e.unionIdentifierTypeAttributeKind=new class extends n.TypeAttributeKind{constructor(){super(`unionIdentifier`)}combine(e){return(0,t.setUnionManyInto)(new Set,e)}makeInferred(e){return new Set}};var d=0;function f(){let t=e.unionIdentifierTypeAttributeKind.makeAttributes(new Set([d]));return d+=1,t}e.makeUnionIdentifierAttribute=f,e.unionMemberNamesTypeAttributeKind=new class extends n.TypeAttributeKind{constructor(){super(`unionMemberNames`)}combine(e){let n=new Map;for(let r of e)(0,t.mapMergeInto)(n,r);return n}};function p(n,i){let a=(0,r.defined)(e.unionIdentifierTypeAttributeKind.tryGetInAttributes(n)),o=(0,t.mapFromIterable)(a,e=>i);return e.unionMemberNamesTypeAttributeKind.makeAttributes(o)}e.makeUnionMemberNamesAttribute=p;function m(n,r,a){let s=e.unionIdentifierTypeAttributeKind.tryGetInAttributes(n.getAttributes());if(s===void 0)return[void 0,!1];let c=e.unionMemberNamesTypeAttributeKind.tryGetInAttributes(r.getAttributes());if(c===void 0)return[void 0,!1];let l=new Set,u=new Set;for(let e of s){let t=c.get(e);if(t===void 0)continue;let n=o(t,a);if(n===void 0)continue;let[r,i]=n;i?u.add(r):l.add(r)}let d,f,p=(0,t.iterableFirst)(u);if(p!==void 0)d=u.size,f=!0;else{if(p=(0,t.iterableFirst)(l),p===void 0)return[void 0,!1];d=l.size,f=!1}return(0,i.messageAssert)(d===1,`SchemaMoreThanOneUnionMemberName`,{names:Array.from(l)}),[p,f]}e.unionMemberName=m;function h(e){return typeof e==`string`?!0:(0,r.isStringMap)(e,e=>typeof e==`string`)}function g(e){return typeof e==`string`?e:(0,t.mapFromObject)(e)}function _(e){let n=(0,r.checkStringMap)(e,h);return(0,t.mapMap)((0,t.mapFromObject)(n),g)}e.makeAccessorNames=_;function v(t,n,a,o){if(typeof t!=`object`)return;let s=t[`qt-accessors`];if(s!==void 0){if(o===void 0)return{forType:e.accessorNamesTypeAttributeKind.makeAttributes(_(s))};{let e=f(),t=(0,r.checkArray)(s,h);return(0,i.messageAssert)(o.length===t.length,`SchemaWrongAccessorEntryArrayLength`,{operation:`oneOf`,ref:n.push(`oneOf`)}),{forUnion:e,forCases:t.map(t=>p(e,g(t)))}}}}e.accessorNamesAttributeProducer=v})),Ma=i((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.enumValuesAttributeProducer=e.enumCaseValues=e.enumValuesTypeAttributeKind=void 0;var t=a(),n=ja(),r=na();e.enumValuesTypeAttributeKind=new class extends r.TypeAttributeKind{constructor(){super(`enumValues`)}makeInferred(e){}};function i(r,i){let a=e.enumValuesTypeAttributeKind.tryGetInAttributes(r.getAttributes());return a===void 0?(0,t.mapMap)(r.cases.entries(),e=>void 0):(0,t.mapMap)(r.cases.entries(),e=>(0,n.lookupKey)(a,e,i))}e.enumCaseValues=i;function o(t,r,i){if(typeof t!=`object`)return;let a=t[`qt-enum-values`];if(a!==void 0)return{forType:e.enumValuesTypeAttributeKind.makeAttributes((0,n.makeAccessorNames)(a))}}e.enumValuesAttributeProducer=o})),Na=i((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.patternForType=e.patternAttributeProducer=e.patternTypeAttributeKind=e.PatternTypeAttributeKind=e.minMaxLengthForType=e.minMaxValueForType=e.minMaxLengthAttributeProducer=e.minMaxAttributeProducer=e.minMaxLengthTypeAttributeKind=e.minMaxTypeAttributeKind=e.MinMaxConstraintTypeAttributeKind=void 0;var t=na(),n=Q(),r=C();function i(e){let[t,n]=e;if(typeof t==`number`&&typeof n==`number`&&t>n)return(0,r.messageError)(`MiscInvalidMinMaxConstraint`,{min:t,max:n});if(!(t===void 0&&n===void 0))return e}var a=class extends t.TypeAttributeKind{constructor(e,t,n,r){super(e),this._typeKinds=t,this._minSchemaProperty=n,this._maxSchemaProperty=r}get inIdentity(){return!0}combine(e){(0,n.assert)(e.length>0);let[t,r]=e[0];for(let n=1;n<e.length;n++){let[i,a]=e[n];t=typeof t==`number`&&typeof i==`number`?Math.min(t,i):void 0,r=typeof r==`number`&&typeof a==`number`?Math.max(r,a):void 0}return i([t,r])}intersect(e){(0,n.assert)(e.length>0);let[t,r]=e[0];for(let n=1;n<e.length;n++){let[i,a]=e[n];typeof t==`number`&&typeof i==`number`?t=Math.max(t,i):t===void 0&&(t=i),typeof r==`number`&&typeof a==`number`?r=Math.min(r,a):r===void 0&&(r=a)}return i([t,r])}makeInferred(e){}addToSchema(e,t,n){if(this._typeKinds.has(t.kind))return;let[r,i]=n;r!==void 0&&(e[this._minSchemaProperty]=r),i!==void 0&&(e[this._maxSchemaProperty]=i)}stringify([e,t]){return`${e}-${t}`}};e.MinMaxConstraintTypeAttributeKind=a,e.minMaxTypeAttributeKind=new a(`minMax`,new Set([`integer`,`double`]),`minimum`,`maximum`),e.minMaxLengthTypeAttributeKind=new a(`minMaxLength`,new Set([`string`]),`minLength`,`maxLength`);function o(e,t,n){if(typeof e!=`object`)return;let r,i;if(typeof e[t]==`number`&&(r=e[t]),typeof e[n]==`number`&&(i=e[n]),!(r===void 0&&i===void 0))return[r,i]}function s(t,n,r){if(!r.has(`number`)&&!r.has(`integer`))return;let i=o(t,`minimum`,`maximum`);if(i!==void 0)return{forNumber:e.minMaxTypeAttributeKind.makeAttributes(i)}}e.minMaxAttributeProducer=s;function c(t,n,r){if(!r.has(`string`))return;let i=o(t,`minLength`,`maxLength`);if(i!==void 0)return{forString:e.minMaxLengthTypeAttributeKind.makeAttributes(i)}}e.minMaxLengthAttributeProducer=c;function l(t){return e.minMaxTypeAttributeKind.tryGetInAttributes(t.getAttributes())}e.minMaxValueForType=l;function u(t){return e.minMaxLengthTypeAttributeKind.tryGetInAttributes(t.getAttributes())}e.minMaxLengthForType=u;var d=class extends t.TypeAttributeKind{constructor(){super(`pattern`)}get inIdentity(){return!0}combine(e){return(0,n.assert)(e.length>0),e.map(e=>`(${e})`).join(`|`)}intersect(e){}makeInferred(e){}addToSchema(e,t,n){t.kind===`string`&&(e.pattern=n)}};e.PatternTypeAttributeKind=d,e.patternTypeAttributeKind=new d;function f(t,n,r){if(typeof t!=`object`||!r.has(`string`))return;let i=t.pattern;if(typeof i==`string`)return{forString:e.patternTypeAttributeKind.makeAttributes(i)}}e.patternAttributeProducer=f;function p(t){return e.patternTypeAttributeKind.tryGetInAttributes(t.getAttributes())}e.patternForType=p})),Pa=i((e=>{var t=e&&e.__awaiter||function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})},n=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,`__esModule`,{value:!0}),e.JSONSchemaInput=e.schemaTypeDict=e.Ref=e.PathElementKind=void 0;var r=n(Sa()),i=a(),o=wa(),s=Q(),c=fa(),l=fa(),u=na(),d=Aa(),f=C(),p=ma(),m=Fa(),h=ja(),g=Ma(),_=Na(),v=Na(),y=Na(),b=Ca(),x;(function(e){e[e.Root=0]=`Root`,e[e.KeyOrIndex=1]=`KeyOrIndex`,e[e.Type=2]=`Type`,e[e.Object=3]=`Object`})(x=e.PathElementKind||={});function S(e){if(e.kind===x.KeyOrIndex)return e.key}function w(e,t){if(e.kind!==t.kind)return!1;switch(e.kind){case x.Type:return e.index===t.index;case x.KeyOrIndex:return e.key===t.key;default:return!0}}function T(e,t){let n=typeof e==`function`?e():e instanceof A?e:e.canonicalRef;return Object.assign({ref:n},t===void 0?{}:t)}function E(e,t){return Array.isArray(e)?(0,f.messageError)(`SchemaArrayIsInvalidSchema`,T(t)):e===null?(0,f.messageError)(`SchemaNullIsInvalidSchema`,T(t)):typeof e==`object`?e:(0,f.messageError)(`SchemaInvalidJSONSchemaType`,T(t,{type:typeof e}))}function D(e,t){return typeof e==`boolean`?e:E(e,t)}var O=RegExp(`^[0-9]+$`);function k(e){return typeof e==`string`&&(e=new r.default(e)),new r.default(r.default.decode(e.clone().normalize().toString()))}var A=class e{static root(t){return new e((0,i.definedMap)(t,e=>new r.default(e)),[])}static parsePath(e){let t=[];if(e.startsWith(`/`)&&(t.push({kind:x.Root}),e=e.slice(1)),e!==``){let n=e.split(`/`);for(let e=0;e<n.length;e++)t.push({kind:x.KeyOrIndex,key:n[e]})}return t}static parseURI(t,n=!1){n||(t=t.clone());let r=t.fragment();t.fragment(``),(t.host()!==``||t.filename()!==``)&&r===``&&(r=`/`);let i=e.parsePath(r);return new e(t,i)}static parse(t){return e.parseURI(new r.default(t),!0)}constructor(e,t){this.path=t,e===void 0?this.addressURI=void 0:((0,s.assert)(e.fragment()===``,`Ref URI with fragment is not allowed: ${e.toString()}`),this.addressURI=k(e))}get hasAddress(){return this.addressURI!==void 0}get address(){return(0,s.defined)(this.addressURI).toString()}get isRoot(){return this.path.length===1&&this.path[0].kind===x.Root}pushElement(t){let n=Array.from(this.path);return n.push(t),new e(this.addressURI,n)}push(...e){let t=this;for(let n of e)t=t.pushElement({kind:x.KeyOrIndex,key:n});return t}pushObject(){return this.pushElement({kind:x.Object})}pushType(e){return this.pushElement({kind:x.Type,index:e})}resolveAgainst(t){let n=this.addressURI;return t!==void 0&&t.addressURI!==void 0&&(n=n===void 0?t.addressURI:n.absoluteTo(t.addressURI)),new e(n,this.path)}get name(){let e=Array.from(this.path);for(;;){let t=e.pop();if(t===void 0||t.kind===x.Root){let e=this.addressURI===void 0?``:this.addressURI.filename(),t=this.addressURI===void 0?``:this.addressURI.suffix();return e.length>t.length+1&&(e=e.slice(0,e.length-t.length-1)),e===``?`Something`:e}switch(t.kind){case x.KeyOrIndex:if(O.test(t.key))return t.key;break;case x.Type:case x.Object:return(0,s.panic)(`We shouldn't try to get the name of Type or Object refs`);default:return(0,s.assertNever)(t)}}}get definitionName(){let e=(0,i.arrayGetFromEnd)(this.path,2);if(e!==void 0&&S(e)===`definitions`)return S((0,s.defined)((0,i.arrayLast)(this.path)))}toString(){function e(e){switch(e.kind){case x.Root:return``;case x.Type:return`type/${e.index.toString()}`;case x.Object:return`object`;case x.KeyOrIndex:return e.key;default:return(0,s.assertNever)(e)}}return(this.addressURI===void 0?``:this.addressURI.toString())+`#`+this.path.map(e).join(`/`)}lookup(t,n,r){let a=()=>new e(this.addressURI,n),o=n[0];if(o===void 0)return D(t,a);let c=n.slice(1);switch(o.kind){case x.Root:return this.lookup(r,c,r);case x.KeyOrIndex:let e=o.key;if(Array.isArray(t)){if(!/^\d+$/.test(e))return(0,f.messageError)(`SchemaCannotIndexArrayWithNonNumber`,T(a,{actual:e}));let n=parseInt(o.key,10);return n>=t.length?(0,f.messageError)(`SchemaIndexNotInArray`,T(a,{index:n})):this.lookup(t[n],c,r)}else return(0,i.hasOwnProperty)(t,e)?this.lookup(E(t,a)[o.key],c,r):(0,f.messageError)(`SchemaKeyNotInObject`,T(a,{key:e}));case x.Type:return(0,s.panic)(`Cannot look up path that indexes "type"`);case x.Object:return(0,s.panic)(`Cannot look up path that indexes "object"`);default:return(0,s.assertNever)(o)}}lookupRef(e){return this.lookup(e,this.path,e)}equals(t){if(!(t instanceof e))return!1;if(this.addressURI!==void 0&&t.addressURI!==void 0){if(!this.addressURI.equals(t.addressURI))return!1}else if(this.addressURI===void 0!=(t.addressURI===void 0))return!1;let n=this.path.length;if(n!==t.path.length)return!1;for(let e=0;e<n;e++)if(!w(this.path[e],t.path[e]))return!1;return!0}hashCode(){let e=(0,i.hashCodeOf)((0,i.definedMap)(this.addressURI,e=>e.toString()));for(let t of this.path)switch(e=(0,i.addHashCode)(e,t.kind),t.kind){case x.Type:e=(0,i.addHashCode)(e,t.index);break;case x.KeyOrIndex:e=(0,i.addHashCode)(e,(0,i.hashString)(t.key));break;default:break}return e}};e.Ref=A;var j=class e{constructor(e,t,n=!1){this.haveID=n,this.canonicalRef=e,this.virtualRef=t===void 0?e:t}updateWithID(t){if(typeof t!=`string`)return this;let n=A.parse(t),r=this.haveID?n.resolveAgainst(this.virtualRef):n;return this.haveID||(0,f.messageAssert)(r.hasAddress,`SchemaIDMustHaveAddress`,T(this,{id:t})),new e(this.canonicalRef,r,!0)}push(...t){return new e(this.canonicalRef.push(...t),this.virtualRef.push(...t),this.haveID)}pushObject(){return new e(this.canonicalRef.pushObject(),this.virtualRef.pushObject(),this.haveID)}pushType(t){return new e(this.canonicalRef.pushType(t),this.virtualRef.pushType(t),this.haveID)}toString(){return`${this.virtualRef.toString()} (${this.canonicalRef.toString()})`}},M=class{constructor(e){this._ctx=e,this._map=new i.EqualityMap,this._schemaAddressesAdded=new Set}addIDs(e,t){if(e===null)return;if(Array.isArray(e)){for(let n=0;n<e.length;n++)this.addIDs(e[n],t.push(n.toString()));return}if(typeof e!=`object`)return;let n=t,r=e.$id;typeof r==`string`&&(t=t.updateWithID(r)),t.haveID&&(this._ctx.debugPrintSchemaResolving&&console.log(`adding mapping ${t.toString()}`),this._map.set(t.virtualRef,n));for(let n of Object.getOwnPropertyNames(e))this.addIDs(e[n],t.push(n))}addSchema(e,t){return this._schemaAddressesAdded.has(t)?!1:(this.addIDs(e,new j(A.root(t),A.root(void 0))),this._schemaAddressesAdded.add(t),!0)}canonize(e,t){let n=t.resolveAgainst(e.virtualRef),r=this._map.get(n);return r===void 0?new j(n.addressURI===void 0?new A(e.canonicalRef.addressURI,n.path):n,new A(void 0,n.path)):r}};function N(e,t){let n;if(typeof e==`string`)n=new Set([e]);else if(Array.isArray(e)){let r=[];for(let n of e){if(typeof n!=`string`)return(0,f.messageError)(`SchemaTypeElementMustBeString`,T(t,{element:n}));r.push(n)}n=new Set(r)}else return(0,f.messageError)(`SchemaTypeMustBeStringOrStringArray`,T(t,{actual:e}));(0,f.messageAssert)(n.size>0,`SchemaNoTypeSpecified`,T(t));let r=[`null`,`boolean`,`object`,`array`,`number`,`string`,`integer`],a=(0,i.iterableFind)(n,e=>r.indexOf(e)<0);return a===void 0?n:(0,f.messageError)(`SchemaInvalidType`,T(t,{type:a}))}function P(e,t){if(!Array.isArray(e))return(0,f.messageError)(`SchemaRequiredMustBeStringOrStringArray`,T(t,{actual:e}));for(let n of e)if(typeof n!=`string`)return(0,f.messageError)(`SchemaRequiredElementMustBeString`,T(t,{element:n}));return e}e.schemaTypeDict={null:!0,boolean:!0,string:!0,integer:!0,number:!0,array:!0,object:!0};var ee=Object.getOwnPropertyNames(e.schemaTypeDict);function F(e){let t=(0,i.iterableFind)(o.transformedStringTypeTargetTypeKindsMap,([t,{jsonSchema:n}])=>n===e);if(t!==void 0)return t[0]}function I(e,t){return e===void 0?(0,f.messageError)(`SchemaFetchErrorTopLevel`,{address:t}):(0,f.messageError)(`SchemaFetchError`,{address:t,base:e.canonicalRef})}var L=class{constructor(e,t,n){this._ctx=e,this._store=t,this._canonizer=n}tryResolveVirtualRef(e,n,r){return t(this,void 0,void 0,function*(){let t=!1;for(;;){let i=this._canonizer.canonize(e,r),a=i.canonicalRef;(0,s.assert)(a.hasAddress,`Canonical ref can't be resolved without an address`);let o=a.address,c=a.addressURI===void 0?void 0:yield this._store.get(o,this._ctx.debugPrintSchemaResolving);if(c===void 0)return[void 0,i];if(this._canonizer.addSchema(c,o))(0,s.assert)(!t,`We can't add a schema twice`),t=!0;else{let t=this._canonizer.canonize(n,r);return e!==void 0&&(t=new j(new A(i.canonicalRef.addressURI,t.canonicalRef.path),t.virtualRef,t.haveID)),[t.canonicalRef.lookupRef(c),t]}}})}resolveVirtualRef(e,n){return t(this,void 0,void 0,function*(){this._ctx.debugPrintSchemaResolving&&console.log(`resolving ${n.toString()} relative to ${e.toString()}`);let t=yield this.tryResolveVirtualRef(e,e,n),r=t[0];if(r!==void 0)return this._ctx.debugPrintSchemaResolving&&console.log(`resolved to ${t[1].toString()}`),[r,t[1]];let i=new j(e.canonicalRef,new A(e.canonicalRef.addressURI,e.virtualRef.path),e.haveID);return t=yield this.tryResolveVirtualRef(i,e,n),r=t[0],r===void 0?I(e,n.address):(this._ctx.debugPrintSchemaResolving&&console.log(`resolved to ${t[1].toString()}`),[r,t[1]])})}resolveTopLevelRef(e){return t(this,void 0,void 0,function*(){return yield this.resolveVirtualRef(new j(new A(e.addressURI,[])),new A(void 0,e.path))})}};function R(e,n,r,a){return t(this,void 0,void 0,function*(){let d=new i.EqualityMap;function m(e,t){let n=d.get(e.canonicalRef);n!==void 0&&(0,s.assert)(n===t,`Trying to set path again to different type`),d.set(e.canonicalRef,t)}function h(e,r,a,o,s,c=e=>e.toLowerCase()){return t(this,void 0,void 0,function*(){let u=new Set(o),d=(0,i.mapSortBy)((0,i.mapFromObject)(a),(e,t)=>c(t)),p=yield(0,i.mapMapSync)(d,(r,i)=>t(this,void 0,void 0,function*(){let t=e.push(`properties`,i),a=yield _(D(r,t.canonicalRef),t,(0,l.makeNamesTypeAttributes)(i,!0)),o=!u.has(i);return n.makeClassProperty(a,o)})),m;if(s===void 0||s===!0)m=n.getPrimitiveType(`any`);else if(s===!1)m=void 0;else{let t=e.push(`additionalProperties`);m=yield _(D(s,t.canonicalRef),t,(0,l.singularizeTypeNames)(r))}let h=(0,i.setSubtract)(u,p.keys());if(h.size>0){let t=m;if(t===void 0)return(0,f.messageError)(`SchemaAdditionalTypesForbidRequired`,T(e));let r=(0,i.mapFromIterable)(h,e=>n.makeClassProperty(t,!1));(0,i.mapMergeInto)(p,r)}return n.getUniqueObjectType(r,p,m)})}function g(r,d,g){return t(this,void 0,void 0,function*(){let v=Array.isArray(r.enum)?r.enum:void 0,y=(0,i.definedMap)(r.type,e=>N(e,d));function b(e){if(y!==void 0&&!y.has(e))return!1;if(v!==void 0){let t;switch(e){case`null`:t=e=>e===null;break;case`integer`:t=e=>typeof e==`number`&&e===Math.floor(e);break;default:t=t=>typeof t===e;break}return v.find(t)!==void 0}return!0}let x=(0,i.setFilter)(ee,b),S;function C(e,t){let n;if(e===void 0&&S!==void 0)n=S;else{n=[];for(let t of a){let i=t(r,d.canonicalRef,x,e);i!==void 0&&n.push(i)}e===void 0&&(S=n)}for(let e of n)t(e)}function w(e){let t=u.emptyTypeAttributes;return C(void 0,n=>{let r=e(n);r!==void 0&&(t=(0,u.combineTypeAttributes)(`union`,t,r))}),t}function O(e){return r.oneOf===void 0&&(e=(0,u.combineTypeAttributes)(`union`,e,w(({forType:e,forUnion:t,forCases:n})=>((0,s.assert)(t===void 0&&n===void 0,`We can't have attributes for unions and cases if we don't have a union`),e)))),(0,l.modifyTypeNames)(e,e=>{let t=(0,s.defined)(e);if(!t.areInferred)return t;let n=r.title;return typeof n!=`string`&&(n=d.canonicalRef.definitionName),typeof n==`string`?c.TypeNames.make(new Set([n]),new Set,r.$ref!==void 0):t.makeInferred()})}g=O(g);let k=(0,u.makeTypeAttributesInferred)(g);function j(e){let t=F(r.format);return t===void 0?n.getStringType(e,p.StringTypes.unrestricted):n.getPrimitiveType(t,e)}function M(){return t(this,void 0,void 0,function*(){let e=(0,l.singularizeTypeNames)(g),a=r.items,o;if(Array.isArray(a)){let r=d.push(`items`),s=yield(0,i.arrayMapSync)(a,(n,i)=>t(this,void 0,void 0,function*(){let t=r.push(i.toString());return yield _(D(n,t.canonicalRef),t,e)}));o=n.getUnionType(u.emptyTypeAttributes,new Set(s))}else if(typeof a==`object`){let t=d.push(`items`);o=yield _(D(a,t.canonicalRef),t,e)}else if(a!==void 0)return(0,f.messageError)(`SchemaArrayItemsMustBeStringOrArray`,T(d,{actual:a}));else o=n.getPrimitiveType(`any`);return n.addAttributes(o,e),n.getArrayType(u.emptyTypeAttributes,o)})}function I(){return t(this,void 0,void 0,function*(){let e;e=r.required===void 0||typeof r.required==`boolean`?[]:Array.from(P(r.required,d));let t;t=r.properties===void 0?{}:E(r.properties,d.canonicalRef);for(let n of Object.getOwnPropertyNames(t))t[n].required===!0&&e.indexOf(n)<0&&e.push(n);let n=r.additionalProperties;n===void 0&&typeof r.patternProperties==`object`&&(0,i.hasOwnProperty)(r.patternProperties,`.*`)&&(n=r.patternProperties[`.*`]);let a=(0,u.combineTypeAttributes)(`union`,k,w(({forObject:e})=>e)),o=r.quicktypePropertyOrder?r.quicktypePropertyOrder:[];return yield h(d,a,t,e,n,e=>{let t=o.indexOf(e);return t===-1?e.toLowerCase():t})})}function L(e,n){return t(this,void 0,void 0,function*(){let r=d.push(n);return Array.isArray(e)?yield(0,i.arrayMapSync)(e,(e,n)=>t(this,void 0,void 0,function*(){let t=r.push(n.toString());return yield _(D(e,t.canonicalRef),t,(0,u.makeTypeAttributesInferred)(g))})):(0,f.messageError)(`SchemaSetOperationCasesIsNotArray`,T(r,{operation:n,cases:e}))})}let R=n.getUniqueIntersectionType(g,void 0);m(d,R);function z(e,r){return t(this,void 0,void 0,function*(){let t=yield L(e,r),i=(0,u.makeTypeAttributesInferred)(g);r===`oneOf`&&C(e,({forType:e,forUnion:r,forCases:a})=>{if(e!==void 0&&n.addAttributes(R,e),r!==void 0&&(i=(0,u.combineTypeAttributes)(`union`,i,r)),a!==void 0){(0,s.assert)(a.length===t.length,`Number of case attributes doesn't match number of cases`);for(let e=0;e<t.length;e++)n.addAttributes(t[e],a[e])}});let a=n.getUniqueUnionType(i,void 0);return n.setSetOperationMembers(a,new Set(t)),a})}let te=v===void 0&&(y===void 0||y.has(`object`)),ne=v===void 0&&(y===void 0||y.has(`array`)),re=x.has(`string`)&&v!==void 0&&v.find(e=>typeof e==`string`)!==void 0,B=y!==void 0||r.properties!==void 0||r.additionalProperties!==void 0||r.items!==void 0||r.required!==void 0||v!==void 0,V=[];if(B){let e=[],t=w(({forNumber:e})=>e);for(let[r,i]of[[`null`,`null`],[`number`,`double`],[`integer`,`integer`],[`boolean`,`bool`]]){if(!x.has(r))continue;let a=(0,o.isNumberTypeKind)(i)?t:void 0;e.push(n.getPrimitiveType(i,a))}let r=(0,u.combineTypeAttributes)(`union`,k,w(({forString:e})=>e));if(re){let t=v.filter(e=>typeof e==`string`);e.push(n.getStringType(r,p.StringTypes.fromCases(t)))}else x.has(`string`)&&e.push(j(r));ne&&e.push(yield M()),te&&e.push(yield I()),V.push(n.getUniqueUnionType(k,new Set(e)))}if(r.$ref!==void 0){if(typeof r.$ref!=`string`)return(0,f.messageError)(`SchemaRefMustBeString`,T(d,{actual:typeof r.$ref}));let t=A.parse(r.$ref),[n,i]=yield e.resolveVirtualRef(d,t),a=(0,l.modifyTypeNames)(g,e=>(0,s.defined)(e).areInferred?c.TypeNames.make(new Set([i.canonicalRef.name]),new Set,!0):e);V.push(yield _(n,i,a))}return r.allOf!==void 0&&V.push(...yield L(r.allOf,`allOf`)),r.oneOf!==void 0&&V.push(yield z(r.oneOf,`oneOf`)),r.anyOf!==void 0&&V.push(yield z(r.anyOf,`anyOf`)),n.setSetOperationMembers(R,new Set(V)),R})}function _(e,r,i){return t(this,void 0,void 0,function*(){let t=d.get(r.canonicalRef);if(t!==void 0)return t;let a;return typeof e==`boolean`?((0,f.messageAssert)(e===!0,`SchemaFalseNotSupported`,T(r)),a=n.getPrimitiveType(`any`)):(r=r.updateWithID(e.$id),a=yield g(e,r,i)),m(r,a),a})}for(let[t,i]of r){let[r,a]=yield e.resolveTopLevelRef(i),o=yield _(r,a,(0,l.makeNamesTypeAttributes)(t,!1));n.addTopLevel(t,o)}})}function z(e){let t=e.toLowerCase();for(let n of[`.json`,`.schema`])if(t.endsWith(n)){let t=e.slice(0,e.length-n.length);if(t.length>0)return t}return e}function te(e){let t=e.fragment();if(t!==``){let e=t.split(`/`),n=e.length;if(e[n-1]!==``)return z(e[n-1]);if(n>1&&e[n-2]!==``)return z(e[n-2])}let n=e.filename();return n===``?(0,f.messageError)(`DriverCannotInferNameForSchema`,{uri:e.toString()}):z(n)}function ne(e,n,r){return t(this,void 0,void 0,function*(){let t=n.fragment(),a=t.endsWith(`/`);a&&(n=n.clone().fragment(t.slice(0,-1)));let o=A.parseURI(n);o.isRoot&&(a=!1);let s=(yield e.resolveTopLevelRef(o))[0];if(a)return typeof s==`object`?(0,i.mapMap)((0,i.mapFromObject)(s),(e,t)=>o.push(t)):(0,f.messageError)(`SchemaCannotGetTypesFromBoolean`,{ref:o.toString()});{let e;if(typeof s==`object`&&typeof s.title==`string`)e=s.title;else{let t=te(n);e=t===void 0?r:t}return[e,o]}})}var re=class extends d.JSONSchemaStore{constructor(e,t){super(),this._inputs=e,this._delegate=t}fetch(e){return t(this,void 0,void 0,function*(){let t=this._inputs.get(e);return t===void 0?this._delegate===void 0?(0,s.panic)(`Schema URI ${e} requested, but no store given`):yield this._delegate.fetch(e):D((0,s.parseJSON)(t,`JSON Schema`,e),()=>A.root(e))})}};e.JSONSchemaInput=class{constructor(e,t=[],n=[]){this._schemaStore=e,this._additionalSchemaAddresses=n,this.kind=`schema`,this.needSchemaProcessing=!0,this._schemaInputs=new Map,this._schemaSources=[],this._topLevels=new Map,this._needIR=!1,this._attributeProducers=[m.descriptionAttributeProducer,h.accessorNamesAttributeProducer,g.enumValuesAttributeProducer,b.uriSchemaAttributesProducer,_.minMaxAttributeProducer,v.minMaxLengthAttributeProducer,y.patternAttributeProducer].concat(t)}get needIR(){return this._needIR}addTopLevel(e,t){this._topLevels.set(e,t)}addTypes(e,n){return t(this,void 0,void 0,function*(){if(this._schemaSources.length===0)return;let t=this._schemaStore;if(this._schemaInputs.size===0){if(t===void 0)return(0,s.panic)(`Must have a schema store to process JSON Schema`)}else t=this._schemaStore=new re(this._schemaInputs,t);let r=t,i=new M(e);for(let t of this._additionalSchemaAddresses){let n=yield r.get(t,e.debugPrintSchemaResolving);if(n===void 0)return(0,f.messageError)(`SchemaFetchErrorAdditional`,{address:t});i.addSchema(n,t)}let a=new L(e,(0,s.defined)(this._schemaStore),i);for(let[e,t]of this._schemaSources){let n=t.name,r=yield ne(a,e,n);if(Array.isArray(r)){let e;e=this._schemaSources.length===1?n:r[0],this.addTopLevel(e,r[1])}else for(let[e,t]of r)this.addTopLevel(e,t)}yield R(a,n,this._topLevels,this._attributeProducers)})}addTypesSync(){return(0,s.panic)(`addTypesSync not supported in JSONSchemaInput`)}addSource(e){return t(this,void 0,void 0,function*(){return this.addSourceSync(e)})}addSourceSync(e){let{name:t,uris:n,schema:i,isConverted:a}=e;a!==!0&&(this._needIR=!0);let o;if(o=n===void 0?[new r.default(t)]:n.map(e=>{let n=k(e);return n.clone().hash(``).toString()===``&&n.path(t),n}),i===void 0)(0,s.assert)(n!==void 0,`URIs must be given if schema source is not specified`);else for(let e=0;e<o.length;e++){let t=o[e],n=t.clone().hash(``),r=n.path(),a=0;do a>0&&n.path(`${r}-${a}`),a++;while(this._schemaInputs.has(n.toString()));this._schemaInputs.set(n.toString(),i),o[e]=n.hash(t.hash())}for(let t of o)this._schemaSources.push([t,e])}singleStringSchemaSource(){if(!this._schemaSources.every(([e,{schema:t}])=>typeof t==`string`))return;let e=new Set(this._schemaSources.map(([e,{schema:t}])=>t));if(e.size===1)return(0,s.defined)((0,i.iterableFirst)(e))}}})),Fa=i((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.descriptionAttributeProducer=e.propertyDescriptionsTypeAttributeKind=e.descriptionTypeAttributeKind=e.addDescriptionToSchema=void 0;var t=a(),n=na(),r=Pa();function i(e,t){t!==void 0&&(e.description=Array.from(t).join(`
|