@topwrite/cli 1.0.11 → 1.0.14-alpha.10
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/bin/ttx.js +3 -5
- package/package.json +12 -7
- package/templates/.bookignore +1 -0
package/bin/ttx.js
CHANGED
|
@@ -1,13 +1,11 @@
|
|
|
1
1
|
#! /usr/bin/env node
|
|
2
|
-
"use strict";var e=require("commander"),t=require("tmp"),r=require("path"),n=require("consola"),i=require("lodash"),a=require("crypto"),o=require("process"),s=require("url"),c=require("assert"),u=require("http"),l=require("https"),f=require("stream"),h=require("tty"),p=require("util"),d=require("os"),m=require("zlib"),g=require("cross-spawn"),v=require("fs"),y=require("vm2"),b=require("canvas"),w=require("tar-pack"),x=require("fs-extra"),k=require("fstream-ignore"),E=require("ejs"),S=require("pinyin-pro"),C=require("lookpath"),A=require("jsdom"),P=require("constants"),_=require("events"),F=require("worker_threads");function O(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}function D(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(r){if("default"!==r){var n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:function(){return e[r]}})}})),t.default=e,Object.freeze(t)}var I=O(t),T=O(r),j=O(n),R=O(i),L=O(a),q=O(o),M=O(s),N=O(c),z=O(u),B=O(l),$=O(f),U=O(h),V=O(p),H=O(d),Q=O(m),G=O(g),W=D(v),K=O(v),Y=O(x),J=O(k),Z=O(E),X=O(A),ee=O(P),te=O(_),re=O(F);const ne=j.default.create({});var ie="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function ae(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function oe(e){if(e.__esModule)return e;var t=Object.defineProperty({},"__esModule",{value:!0});return Object.keys(e).forEach((function(r){var n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:function(){return e[r]}})})),t}var se={},ce={exports:{}};!function(e){function t(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];if(t.length>1){t[0]=t[0].slice(0,-1);for(var n=t.length-1,i=1;i<n;++i)t[i]=t[i].slice(1,-1);return t[n]=t[n].slice(1),t.join("")}return t[0]}function r(e){return"(?:"+e+")"}function n(e){return void 0===e?"undefined":null===e?"null":Object.prototype.toString.call(e).split(" ").pop().split("]").shift().toLowerCase()}function i(e){return e.toUpperCase()}function a(e){return null!=e?e instanceof Array?e:"number"!=typeof e.length||e.split||e.setInterval||e.call?[e]:Array.prototype.slice.call(e):[]}function o(e,t){var r=e;if(t)for(var n in t)r[n]=t[n];return r}function s(e){var n="[A-Za-z]",i="[0-9]",a=t(i,"[A-Fa-f]"),o=r(r("%[EFef]"+a+"%"+a+a+"%"+a+a)+"|"+r("%[89A-Fa-f]"+a+"%"+a+a)+"|"+r("%"+a+a)),s="[\\!\\$\\&\\'\\(\\)\\*\\+\\,\\;\\=]",c=t("[\\:\\/\\?\\#\\[\\]\\@]",s),u=e?"[\\uE000-\\uF8FF]":"[]",l=t(n,i,"[\\-\\.\\_\\~]",e?"[\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]":"[]");r(n+t(n,i,"[\\+\\-\\.]")+"*"),r(r(o+"|"+t(l,s,"[\\:]"))+"*");var f=r(r("25[0-5]")+"|"+r("2[0-4]"+i)+"|"+r("1"+i+i)+"|"+r("0?[1-9]"+i)+"|0?0?"+i),h=r(f+"\\."+f+"\\."+f+"\\."+f),p=r(a+"{1,4}"),d=r(r(p+"\\:"+p)+"|"+h),m=r(r(p+"\\:")+"{6}"+d),g=r("\\:\\:"+r(p+"\\:")+"{5}"+d),v=r(r(p)+"?\\:\\:"+r(p+"\\:")+"{4}"+d),y=r(r(r(p+"\\:")+"{0,1}"+p)+"?\\:\\:"+r(p+"\\:")+"{3}"+d),b=r(r(r(p+"\\:")+"{0,2}"+p)+"?\\:\\:"+r(p+"\\:")+"{2}"+d),w=r(r(r(p+"\\:")+"{0,3}"+p)+"?\\:\\:"+p+"\\:"+d),x=r(r(r(p+"\\:")+"{0,4}"+p)+"?\\:\\:"+d),k=r(r(r(p+"\\:")+"{0,5}"+p)+"?\\:\\:"+p),E=r(r(r(p+"\\:")+"{0,6}"+p)+"?\\:\\:"),S=r([m,g,v,y,b,w,x,k,E].join("|")),C=r(r(l+"|"+o)+"+");r("[vV]"+a+"+\\."+t(l,s,"[\\:]")+"+"),r(r(o+"|"+t(l,s))+"*");var A=r(o+"|"+t(l,s,"[\\:\\@]"));return r(r(o+"|"+t(l,s,"[\\@]"))+"+"),r(r(A+"|"+t("[\\/\\?]",u))+"*"),{NOT_SCHEME:new RegExp(t("[^]",n,i,"[\\+\\-\\.]"),"g"),NOT_USERINFO:new RegExp(t("[^\\%\\:]",l,s),"g"),NOT_HOST:new RegExp(t("[^\\%\\[\\]\\:]",l,s),"g"),NOT_PATH:new RegExp(t("[^\\%\\/\\:\\@]",l,s),"g"),NOT_PATH_NOSCHEME:new RegExp(t("[^\\%\\/\\@]",l,s),"g"),NOT_QUERY:new RegExp(t("[^\\%]",l,s,"[\\:\\@\\/\\?]",u),"g"),NOT_FRAGMENT:new RegExp(t("[^\\%]",l,s,"[\\:\\@\\/\\?]"),"g"),ESCAPE:new RegExp(t("[^]",l,s),"g"),UNRESERVED:new RegExp(l,"g"),OTHER_CHARS:new RegExp(t("[^\\%]",l,c),"g"),PCT_ENCODED:new RegExp(o,"g"),IPV4ADDRESS:new RegExp("^("+h+")$"),IPV6ADDRESS:new RegExp("^\\[?("+S+")"+r(r("\\%25|\\%(?!"+a+"{2})")+"("+C+")")+"?\\]?$")}}var c=s(!1),u=s(!0),l=function(){function e(e,t){var r=[],n=!0,i=!1,a=void 0;try{for(var o,s=e[Symbol.iterator]();!(n=(o=s.next()).done)&&(r.push(o.value),!t||r.length!==t);n=!0);}catch(e){i=!0,a=e}finally{try{!n&&s.return&&s.return()}finally{if(i)throw a}}return r}return function(t,r){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,r);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),f=function(e){if(Array.isArray(e)){for(var t=0,r=Array(e.length);t<e.length;t++)r[t]=e[t];return r}return Array.from(e)},h=2147483647,p=36,d=1,m=26,g=38,v=700,y=72,b=128,w="-",x=/^xn--/,k=/[^\0-\x7E]/,E=/[\x2E\u3002\uFF0E\uFF61]/g,S={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},C=p-d,A=Math.floor,P=String.fromCharCode;function _(e){throw new RangeError(S[e])}function F(e,t){for(var r=[],n=e.length;n--;)r[n]=t(e[n]);return r}function O(e,t){var r=e.split("@"),n="";return r.length>1&&(n=r[0]+"@",e=r[1]),n+F((e=e.replace(E,".")).split("."),t).join(".")}function D(e){for(var t=[],r=0,n=e.length;r<n;){var i=e.charCodeAt(r++);if(i>=55296&&i<=56319&&r<n){var a=e.charCodeAt(r++);56320==(64512&a)?t.push(((1023&i)<<10)+(1023&a)+65536):(t.push(i),r--)}else t.push(i)}return t}var I=function(e){return e-48<10?e-22:e-65<26?e-65:e-97<26?e-97:p},T=function(e,t){return e+22+75*(e<26)-((0!=t)<<5)},j=function(e,t,r){var n=0;for(e=r?A(e/v):e>>1,e+=A(e/t);e>C*m>>1;n+=p)e=A(e/C);return A(n+(C+1)*e/(e+g))},R=function(e){var t=[],r=e.length,n=0,i=b,a=y,o=e.lastIndexOf(w);o<0&&(o=0);for(var s=0;s<o;++s)e.charCodeAt(s)>=128&&_("not-basic"),t.push(e.charCodeAt(s));for(var c=o>0?o+1:0;c<r;){for(var u=n,l=1,f=p;;f+=p){c>=r&&_("invalid-input");var g=I(e.charCodeAt(c++));(g>=p||g>A((h-n)/l))&&_("overflow"),n+=g*l;var v=f<=a?d:f>=a+m?m:f-a;if(g<v)break;var x=p-v;l>A(h/x)&&_("overflow"),l*=x}var k=t.length+1;a=j(n-u,k,0==u),A(n/k)>h-i&&_("overflow"),i+=A(n/k),n%=k,t.splice(n++,0,i)}return String.fromCodePoint.apply(String,t)},L=function(e){var t=[],r=(e=D(e)).length,n=b,i=0,a=y,o=!0,s=!1,c=void 0;try{for(var u,l=e[Symbol.iterator]();!(o=(u=l.next()).done);o=!0){var f=u.value;f<128&&t.push(P(f))}}catch(e){s=!0,c=e}finally{try{!o&&l.return&&l.return()}finally{if(s)throw c}}var g=t.length,v=g;for(g&&t.push(w);v<r;){var x=h,k=!0,E=!1,S=void 0;try{for(var C,F=e[Symbol.iterator]();!(k=(C=F.next()).done);k=!0){var O=C.value;O>=n&&O<x&&(x=O)}}catch(e){E=!0,S=e}finally{try{!k&&F.return&&F.return()}finally{if(E)throw S}}var I=v+1;x-n>A((h-i)/I)&&_("overflow"),i+=(x-n)*I,n=x;var R=!0,L=!1,q=void 0;try{for(var M,N=e[Symbol.iterator]();!(R=(M=N.next()).done);R=!0){var z=M.value;if(z<n&&++i>h&&_("overflow"),z==n){for(var B=i,$=p;;$+=p){var U=$<=a?d:$>=a+m?m:$-a;if(B<U)break;var V=B-U,H=p-U;t.push(P(T(U+V%H,0))),B=A(V/H)}t.push(P(T(B,0))),a=j(i,I,v==g),i=0,++v}}}catch(e){L=!0,q=e}finally{try{!R&&N.return&&N.return()}finally{if(L)throw q}}++i,++n}return t.join("")},q=function(e){return O(e,(function(e){return x.test(e)?R(e.slice(4).toLowerCase()):e}))},M=function(e){return O(e,(function(e){return k.test(e)?"xn--"+L(e):e}))},N={version:"2.1.0",ucs2:{decode:D,encode:function(e){return String.fromCodePoint.apply(String,f(e))}},decode:R,encode:L,toASCII:M,toUnicode:q},z={};function B(e){var t=e.charCodeAt(0);return t<16?"%0"+t.toString(16).toUpperCase():t<128?"%"+t.toString(16).toUpperCase():t<2048?"%"+(t>>6|192).toString(16).toUpperCase()+"%"+(63&t|128).toString(16).toUpperCase():"%"+(t>>12|224).toString(16).toUpperCase()+"%"+(t>>6&63|128).toString(16).toUpperCase()+"%"+(63&t|128).toString(16).toUpperCase()}function $(e){for(var t="",r=0,n=e.length;r<n;){var i=parseInt(e.substr(r+1,2),16);if(i<128)t+=String.fromCharCode(i),r+=3;else if(i>=194&&i<224){if(n-r>=6){var a=parseInt(e.substr(r+4,2),16);t+=String.fromCharCode((31&i)<<6|63&a)}else t+=e.substr(r,6);r+=6}else if(i>=224){if(n-r>=9){var o=parseInt(e.substr(r+4,2),16),s=parseInt(e.substr(r+7,2),16);t+=String.fromCharCode((15&i)<<12|(63&o)<<6|63&s)}else t+=e.substr(r,9);r+=9}else t+=e.substr(r,3),r+=3}return t}function U(e,t){function r(e){var r=$(e);return r.match(t.UNRESERVED)?r:e}return e.scheme&&(e.scheme=String(e.scheme).replace(t.PCT_ENCODED,r).toLowerCase().replace(t.NOT_SCHEME,"")),void 0!==e.userinfo&&(e.userinfo=String(e.userinfo).replace(t.PCT_ENCODED,r).replace(t.NOT_USERINFO,B).replace(t.PCT_ENCODED,i)),void 0!==e.host&&(e.host=String(e.host).replace(t.PCT_ENCODED,r).toLowerCase().replace(t.NOT_HOST,B).replace(t.PCT_ENCODED,i)),void 0!==e.path&&(e.path=String(e.path).replace(t.PCT_ENCODED,r).replace(e.scheme?t.NOT_PATH:t.NOT_PATH_NOSCHEME,B).replace(t.PCT_ENCODED,i)),void 0!==e.query&&(e.query=String(e.query).replace(t.PCT_ENCODED,r).replace(t.NOT_QUERY,B).replace(t.PCT_ENCODED,i)),void 0!==e.fragment&&(e.fragment=String(e.fragment).replace(t.PCT_ENCODED,r).replace(t.NOT_FRAGMENT,B).replace(t.PCT_ENCODED,i)),e}function V(e){return e.replace(/^0*(.*)/,"$1")||"0"}function H(e,t){var r=e.match(t.IPV4ADDRESS)||[],n=l(r,2)[1];return n?n.split(".").map(V).join("."):e}function Q(e,t){var r=e.match(t.IPV6ADDRESS)||[],n=l(r,3),i=n[1],a=n[2];if(i){for(var o=i.toLowerCase().split("::").reverse(),s=l(o,2),c=s[0],u=s[1],f=u?u.split(":").map(V):[],h=c.split(":").map(V),p=t.IPV4ADDRESS.test(h[h.length-1]),d=p?7:8,m=h.length-d,g=Array(d),v=0;v<d;++v)g[v]=f[v]||h[m+v]||"";p&&(g[d-1]=H(g[d-1],t));var y=g.reduce((function(e,t,r){if(!t||"0"===t){var n=e[e.length-1];n&&n.index+n.length===r?n.length++:e.push({index:r,length:1})}return e}),[]).sort((function(e,t){return t.length-e.length}))[0],b=void 0;if(y&&y.length>1){var w=g.slice(0,y.index),x=g.slice(y.index+y.length);b=w.join(":")+"::"+x.join(":")}else b=g.join(":");return a&&(b+="%"+a),b}return e}var G=/^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i,W=void 0==="".match(/(){0}/)[1];function K(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={},n=!1!==t.iri?u:c;"suffix"===t.reference&&(e=(t.scheme?t.scheme+":":"")+"//"+e);var i=e.match(G);if(i){W?(r.scheme=i[1],r.userinfo=i[3],r.host=i[4],r.port=parseInt(i[5],10),r.path=i[6]||"",r.query=i[7],r.fragment=i[8],isNaN(r.port)&&(r.port=i[5])):(r.scheme=i[1]||void 0,r.userinfo=-1!==e.indexOf("@")?i[3]:void 0,r.host=-1!==e.indexOf("//")?i[4]:void 0,r.port=parseInt(i[5],10),r.path=i[6]||"",r.query=-1!==e.indexOf("?")?i[7]:void 0,r.fragment=-1!==e.indexOf("#")?i[8]:void 0,isNaN(r.port)&&(r.port=e.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/)?i[4]:void 0)),r.host&&(r.host=Q(H(r.host,n),n)),void 0!==r.scheme||void 0!==r.userinfo||void 0!==r.host||void 0!==r.port||r.path||void 0!==r.query?void 0===r.scheme?r.reference="relative":void 0===r.fragment?r.reference="absolute":r.reference="uri":r.reference="same-document",t.reference&&"suffix"!==t.reference&&t.reference!==r.reference&&(r.error=r.error||"URI is not a "+t.reference+" reference.");var a=z[(t.scheme||r.scheme||"").toLowerCase()];if(t.unicodeSupport||a&&a.unicodeSupport)U(r,n);else{if(r.host&&(t.domainHost||a&&a.domainHost))try{r.host=N.toASCII(r.host.replace(n.PCT_ENCODED,$).toLowerCase())}catch(e){r.error=r.error||"Host's domain name can not be converted to ASCII via punycode: "+e}U(r,c)}a&&a.parse&&a.parse(r,t)}else r.error=r.error||"URI can not be parsed.";return r}function Y(e,t){var r=!1!==t.iri?u:c,n=[];return void 0!==e.userinfo&&(n.push(e.userinfo),n.push("@")),void 0!==e.host&&n.push(Q(H(String(e.host),r),r).replace(r.IPV6ADDRESS,(function(e,t,r){return"["+t+(r?"%25"+r:"")+"]"}))),"number"!=typeof e.port&&"string"!=typeof e.port||(n.push(":"),n.push(String(e.port))),n.length?n.join(""):void 0}var J=/^\.\.?\//,Z=/^\/\.(\/|$)/,X=/^\/\.\.(\/|$)/,ee=/^\/?(?:.|\n)*?(?=\/|$)/;function te(e){for(var t=[];e.length;)if(e.match(J))e=e.replace(J,"");else if(e.match(Z))e=e.replace(Z,"/");else if(e.match(X))e=e.replace(X,"/"),t.pop();else if("."===e||".."===e)e="";else{var r=e.match(ee);if(!r)throw new Error("Unexpected dot segment condition");var n=r[0];e=e.slice(n.length),t.push(n)}return t.join("")}function re(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.iri?u:c,n=[],i=z[(t.scheme||e.scheme||"").toLowerCase()];if(i&&i.serialize&&i.serialize(e,t),e.host)if(r.IPV6ADDRESS.test(e.host));else if(t.domainHost||i&&i.domainHost)try{e.host=t.iri?N.toUnicode(e.host):N.toASCII(e.host.replace(r.PCT_ENCODED,$).toLowerCase())}catch(r){e.error=e.error||"Host's domain name can not be converted to "+(t.iri?"Unicode":"ASCII")+" via punycode: "+r}U(e,r),"suffix"!==t.reference&&e.scheme&&(n.push(e.scheme),n.push(":"));var a=Y(e,t);if(void 0!==a&&("suffix"!==t.reference&&n.push("//"),n.push(a),e.path&&"/"!==e.path.charAt(0)&&n.push("/")),void 0!==e.path){var o=e.path;t.absolutePath||i&&i.absolutePath||(o=te(o)),void 0===a&&(o=o.replace(/^\/\//,"/%2F")),n.push(o)}return void 0!==e.query&&(n.push("?"),n.push(e.query)),void 0!==e.fragment&&(n.push("#"),n.push(e.fragment)),n.join("")}function ne(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n={};return arguments[3]||(e=K(re(e,r),r),t=K(re(t,r),r)),!(r=r||{}).tolerant&&t.scheme?(n.scheme=t.scheme,n.userinfo=t.userinfo,n.host=t.host,n.port=t.port,n.path=te(t.path||""),n.query=t.query):(void 0!==t.userinfo||void 0!==t.host||void 0!==t.port?(n.userinfo=t.userinfo,n.host=t.host,n.port=t.port,n.path=te(t.path||""),n.query=t.query):(t.path?("/"===t.path.charAt(0)?n.path=te(t.path):(void 0===e.userinfo&&void 0===e.host&&void 0===e.port||e.path?e.path?n.path=e.path.slice(0,e.path.lastIndexOf("/")+1)+t.path:n.path=t.path:n.path="/"+t.path,n.path=te(n.path)),n.query=t.query):(n.path=e.path,void 0!==t.query?n.query=t.query:n.query=e.query),n.userinfo=e.userinfo,n.host=e.host,n.port=e.port),n.scheme=e.scheme),n.fragment=t.fragment,n}function ie(e,t,r){var n=o({scheme:"null"},r);return re(ne(K(e,n),K(t,n),n,!0),n)}function ae(e,t){return"string"==typeof e?e=re(K(e,t),t):"object"===n(e)&&(e=K(re(e,t),t)),e}function oe(e,t,r){return"string"==typeof e?e=re(K(e,r),r):"object"===n(e)&&(e=re(e,r)),"string"==typeof t?t=re(K(t,r),r):"object"===n(t)&&(t=re(t,r)),e===t}function se(e,t){return e&&e.toString().replace(t&&t.iri?u.ESCAPE:c.ESCAPE,B)}function ce(e,t){return e&&e.toString().replace(t&&t.iri?u.PCT_ENCODED:c.PCT_ENCODED,$)}var ue={scheme:"http",domainHost:!0,parse:function(e,t){return e.host||(e.error=e.error||"HTTP URIs must have a host."),e},serialize:function(e,t){var r="https"===String(e.scheme).toLowerCase();return e.port!==(r?443:80)&&""!==e.port||(e.port=void 0),e.path||(e.path="/"),e}},le={scheme:"https",domainHost:ue.domainHost,parse:ue.parse,serialize:ue.serialize};function fe(e){return"boolean"==typeof e.secure?e.secure:"wss"===String(e.scheme).toLowerCase()}var he={scheme:"ws",domainHost:!0,parse:function(e,t){var r=e;return r.secure=fe(r),r.resourceName=(r.path||"/")+(r.query?"?"+r.query:""),r.path=void 0,r.query=void 0,r},serialize:function(e,t){if(e.port!==(fe(e)?443:80)&&""!==e.port||(e.port=void 0),"boolean"==typeof e.secure&&(e.scheme=e.secure?"wss":"ws",e.secure=void 0),e.resourceName){var r=e.resourceName.split("?"),n=l(r,2),i=n[0],a=n[1];e.path=i&&"/"!==i?i:void 0,e.query=a,e.resourceName=void 0}return e.fragment=void 0,e}},pe={scheme:"wss",domainHost:he.domainHost,parse:he.parse,serialize:he.serialize},de={},me="[A-Za-z0-9\\-\\.\\_\\~\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]",ge="[0-9A-Fa-f]",ve=r(r("%[EFef]"+ge+"%"+ge+ge+"%"+ge+ge)+"|"+r("%[89A-Fa-f]"+ge+"%"+ge+ge)+"|"+r("%"+ge+ge)),ye="[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]",be=t("[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]",'[\\"\\\\]'),we="[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]",xe=new RegExp(me,"g"),ke=new RegExp(ve,"g"),Ee=new RegExp(t("[^]",ye,"[\\.]",'[\\"]',be),"g"),Se=new RegExp(t("[^]",me,we),"g"),Ce=Se;function Ae(e){var t=$(e);return t.match(xe)?t:e}var Pe={scheme:"mailto",parse:function(e,t){var r=e,n=r.to=r.path?r.path.split(","):[];if(r.path=void 0,r.query){for(var i=!1,a={},o=r.query.split("&"),s=0,c=o.length;s<c;++s){var u=o[s].split("=");switch(u[0]){case"to":for(var l=u[1].split(","),f=0,h=l.length;f<h;++f)n.push(l[f]);break;case"subject":r.subject=ce(u[1],t);break;case"body":r.body=ce(u[1],t);break;default:i=!0,a[ce(u[0],t)]=ce(u[1],t)}}i&&(r.headers=a)}r.query=void 0;for(var p=0,d=n.length;p<d;++p){var m=n[p].split("@");if(m[0]=ce(m[0]),t.unicodeSupport)m[1]=ce(m[1],t).toLowerCase();else try{m[1]=N.toASCII(ce(m[1],t).toLowerCase())}catch(e){r.error=r.error||"Email address's domain name can not be converted to ASCII via punycode: "+e}n[p]=m.join("@")}return r},serialize:function(e,t){var r=e,n=a(e.to);if(n){for(var o=0,s=n.length;o<s;++o){var c=String(n[o]),u=c.lastIndexOf("@"),l=c.slice(0,u).replace(ke,Ae).replace(ke,i).replace(Ee,B),f=c.slice(u+1);try{f=t.iri?N.toUnicode(f):N.toASCII(ce(f,t).toLowerCase())}catch(e){r.error=r.error||"Email address's domain name can not be converted to "+(t.iri?"Unicode":"ASCII")+" via punycode: "+e}n[o]=l+"@"+f}r.path=n.join(",")}var h=e.headers=e.headers||{};e.subject&&(h.subject=e.subject),e.body&&(h.body=e.body);var p=[];for(var d in h)h[d]!==de[d]&&p.push(d.replace(ke,Ae).replace(ke,i).replace(Se,B)+"="+h[d].replace(ke,Ae).replace(ke,i).replace(Ce,B));return p.length&&(r.query=p.join("&")),r}},_e=/^([^\:]+)\:(.*)/,Fe={scheme:"urn",parse:function(e,t){var r=e.path&&e.path.match(_e),n=e;if(r){var i=t.scheme||n.scheme||"urn",a=r[1].toLowerCase(),o=r[2],s=i+":"+(t.nid||a),c=z[s];n.nid=a,n.nss=o,n.path=void 0,c&&(n=c.parse(n,t))}else n.error=n.error||"URN can not be parsed.";return n},serialize:function(e,t){var r=t.scheme||e.scheme||"urn",n=e.nid,i=r+":"+(t.nid||n),a=z[i];a&&(e=a.serialize(e,t));var o=e,s=e.nss;return o.path=(n||t.nid)+":"+s,o}},Oe=/^[0-9A-Fa-f]{8}(?:\-[0-9A-Fa-f]{4}){3}\-[0-9A-Fa-f]{12}$/,De={scheme:"urn:uuid",parse:function(e,t){var r=e;return r.uuid=r.nss,r.nss=void 0,t.tolerant||r.uuid&&r.uuid.match(Oe)||(r.error=r.error||"UUID is not valid."),r},serialize:function(e,t){var r=e;return r.nss=(e.uuid||"").toLowerCase(),r}};z[ue.scheme]=ue,z[le.scheme]=le,z[he.scheme]=he,z[pe.scheme]=pe,z[Pe.scheme]=Pe,z[Fe.scheme]=Fe,z[De.scheme]=De,e.SCHEMES=z,e.pctEncChar=B,e.pctDecChars=$,e.parse=K,e.removeDotSegments=te,e.serialize=re,e.resolveComponents=ne,e.resolve=ie,e.normalize=ae,e.equal=oe,e.escapeComponent=se,e.unescapeComponent=ce,Object.defineProperty(e,"__esModule",{value:!0})}(ce.exports);var ue=function e(t,r){if(t===r)return!0;if(t&&r&&"object"==typeof t&&"object"==typeof r){if(t.constructor!==r.constructor)return!1;var n,i,a;if(Array.isArray(t)){if((n=t.length)!=r.length)return!1;for(i=n;0!=i--;)if(!e(t[i],r[i]))return!1;return!0}if(t.constructor===RegExp)return t.source===r.source&&t.flags===r.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===r.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===r.toString();if((n=(a=Object.keys(t)).length)!==Object.keys(r).length)return!1;for(i=n;0!=i--;)if(!Object.prototype.hasOwnProperty.call(r,a[i]))return!1;for(i=n;0!=i--;){var o=a[i];if(!e(t[o],r[o]))return!1}return!0}return t!=t&&r!=r},le={copy:function(e,t){for(var r in t=t||{},e)t[r]=e[r];return t},checkDataType:fe,checkDataTypes:function(e,t,r){switch(e.length){case 1:return fe(e[0],t,r,!0);default:var n="",i=pe(e);for(var a in i.array&&i.object&&(n=i.null?"(":"(!"+t+" || ",n+="typeof "+t+' !== "object")',delete i.null,delete i.array,delete i.object),i.number&&delete i.integer,i)n+=(n?" && ":"")+fe(a,t,r,!0);return n}},coerceToTypes:function(e,t){if(Array.isArray(t)){for(var r=[],n=0;n<t.length;n++){var i=t[n];(he[i]||"array"===e&&"array"===i)&&(r[r.length]=i)}if(r.length)return r}else{if(he[t])return[t];if("array"===e&&"array"===t)return["array"]}},toHash:pe,getProperty:ge,escapeQuotes:ve,equal:ue,ucs2length:function(e){for(var t,r=0,n=e.length,i=0;i<n;)r++,(t=e.charCodeAt(i++))>=55296&&t<=56319&&i<n&&56320==(64512&(t=e.charCodeAt(i)))&&i++;return r},varOccurences:function(e,t){t+="[^0-9]";var r=e.match(new RegExp(t,"g"));return r?r.length:0},varReplace:function(e,t,r){return t+="([^0-9])",r=r.replace(/\$/g,"$$$$"),e.replace(new RegExp(t,"g"),r+"$1")},schemaHasRules:function(e,t){if("boolean"==typeof e)return!e;for(var r in e)if(t[r])return!0},schemaHasRulesExcept:function(e,t,r){if("boolean"==typeof e)return!e&&"not"!=r;for(var n in e)if(n!=r&&t[n])return!0},schemaUnknownRules:function(e,t){if("boolean"==typeof e)return;for(var r in e)if(!t[r])return r},toQuotedString:ye,getPathExpr:function(e,t,r,n){return xe(e,r?"'/' + "+t+(n?"":".replace(/~/g, '~0').replace(/\\//g, '~1')"):n?"'[' + "+t+" + ']'":"'[\\'' + "+t+" + '\\']'")},getPath:function(e,t,r){var n=ye(r?"/"+ke(t):ge(t));return xe(e,n)},getData:function(e,t,r){var n,i,a,o;if(""===e)return"rootData";if("/"==e[0]){if(!be.test(e))throw new Error("Invalid JSON-pointer: "+e);i=e,a="rootData"}else{if(!(o=e.match(we)))throw new Error("Invalid JSON-pointer: "+e);if(n=+o[1],"#"==(i=o[2])){if(n>=t)throw new Error("Cannot access property/index "+n+" levels up, current level is "+t);return r[t-n]}if(n>t)throw new Error("Cannot access data "+n+" levels up, current level is "+t);if(a="data"+(t-n||""),!i)return a}for(var s=a,c=i.split("/"),u=0;u<c.length;u++){var l=c[u];l&&(a+=ge(Ee(l)),s+=" && "+a)}return s},unescapeFragment:function(e){return Ee(decodeURIComponent(e))},unescapeJsonPointer:Ee,escapeFragment:function(e){return encodeURIComponent(ke(e))},escapeJsonPointer:ke};function fe(e,t,r,n){var i=n?" !== ":" === ",a=n?" || ":" && ",o=n?"!":"",s=n?"":"!";switch(e){case"null":return t+i+"null";case"array":return o+"Array.isArray("+t+")";case"object":return"("+o+t+a+"typeof "+t+i+'"object"'+a+s+"Array.isArray("+t+"))";case"integer":return"(typeof "+t+i+'"number"'+a+s+"("+t+" % 1)"+a+t+i+t+(r?a+o+"isFinite("+t+")":"")+")";case"number":return"(typeof "+t+i+'"'+e+'"'+(r?a+o+"isFinite("+t+")":"")+")";default:return"typeof "+t+i+'"'+e+'"'}}var he=pe(["string","number","integer","boolean","null"]);function pe(e){for(var t={},r=0;r<e.length;r++)t[e[r]]=!0;return t}var de=/^[a-z$_][a-z$_0-9]*$/i,me=/'|\\/g;function ge(e){return"number"==typeof e?"["+e+"]":de.test(e)?"."+e:"['"+ve(e)+"']"}function ve(e){return e.replace(me,"\\$&").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\f/g,"\\f").replace(/\t/g,"\\t")}function ye(e){return"'"+ve(e)+"'"}var be=/^\/(?:[^~]|~0|~1)*$/,we=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function xe(e,t){return'""'==e?t:(e+" + "+t).replace(/([^\\])' \+ '/g,"$1")}function ke(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}function Ee(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}var Se=le,Ce=function(e){Se.copy(e,this)};var Ae={exports:{}},Pe=Ae.exports=function(e,t,r){"function"==typeof t&&(r=t,t={}),_e(t,"function"==typeof(r=t.cb||r)?r:r.pre||function(){},r.post||function(){},e,"",e)};function _e(e,t,r,n,i,a,o,s,c,u){if(n&&"object"==typeof n&&!Array.isArray(n)){for(var l in t(n,i,a,o,s,c,u),n){var f=n[l];if(Array.isArray(f)){if(l in Pe.arrayKeywords)for(var h=0;h<f.length;h++)_e(e,t,r,f[h],i+"/"+l+"/"+h,a,i,l,n,h)}else if(l in Pe.propsKeywords){if(f&&"object"==typeof f)for(var p in f)_e(e,t,r,f[p],i+"/"+l+"/"+Fe(p),a,i,l,n,p)}else(l in Pe.keywords||e.allKeys&&!(l in Pe.skipKeywords))&&_e(e,t,r,f,i+"/"+l,a,i,l,n)}r(n,i,a,o,s,c,u)}}function Fe(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}Pe.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0},Pe.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0},Pe.propsKeywords={definitions:!0,properties:!0,patternProperties:!0,dependencies:!0},Pe.skipKeywords={default:!0,enum:!0,const:!0,required:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,multipleOf:!0,maxLength:!0,minLength:!0,pattern:!0,format:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxProperties:!0,minProperties:!0};var Oe=ce.exports,De=ue,Ie=le,Te=Ce,je=Ae.exports,Re=Le;function Le(e,t,r){var n=this._refs[r];if("string"==typeof n){if(!this._refs[n])return Le.call(this,e,t,n);n=this._refs[n]}if((n=n||this._schemas[r])instanceof Te)return $e(n.schema,this._opts.inlineRefs)?n.schema:n.validate||this._compile(n);var i,a,o,s=qe.call(this,t,r);return s&&(i=s.schema,t=s.root,o=s.baseId),i instanceof Te?a=i.validate||e.call(this,i.schema,t,void 0,o):void 0!==i&&(a=$e(i,this._opts.inlineRefs)?i:e.call(this,i,t,void 0,o)),a}function qe(e,t){var r=Oe.parse(t),n=Qe(r),i=He(this._getId(e.schema));if(0===Object.keys(e.schema).length||n!==i){var a=We(n),o=this._refs[a];if("string"==typeof o)return Me.call(this,e,o,r);if(o instanceof Te)o.validate||this._compile(o),e=o;else{if(!((o=this._schemas[a])instanceof Te))return;if(o.validate||this._compile(o),a==We(t))return{schema:o,root:e,baseId:i};e=o}if(!e.schema)return;i=He(this._getId(e.schema))}return ze.call(this,r,i,e.schema,e)}function Me(e,t,r){var n=qe.call(this,e,t);if(n){var i=n.schema,a=n.baseId;e=n.root;var o=this._getId(i);return o&&(a=Ke(a,o)),ze.call(this,r,a,i,e)}}Le.normalizeId=We,Le.fullPath=He,Le.url=Ke,Le.ids=function(e){var t=We(this._getId(e)),r={"":t},n={"":He(t,!1)},i={},a=this;return je(e,{allKeys:!0},(function(e,t,o,s,c,u,l){if(""!==t){var f=a._getId(e),h=r[s],p=n[s]+"/"+c;if(void 0!==l&&(p+="/"+("number"==typeof l?l:Ie.escapeFragment(l))),"string"==typeof f){f=h=We(h?Oe.resolve(h,f):f);var d=a._refs[f];if("string"==typeof d&&(d=a._refs[d]),d&&d.schema){if(!De(e,d.schema))throw new Error('id "'+f+'" resolves to more than one schema')}else if(f!=We(p))if("#"==f[0]){if(i[f]&&!De(e,i[f]))throw new Error('id "'+f+'" resolves to more than one schema');i[f]=e}else a._refs[f]=p}r[t]=h,n[t]=p}})),i},Le.inlineRef=$e,Le.schema=qe;var Ne=Ie.toHash(["properties","patternProperties","enum","dependencies","definitions"]);function ze(e,t,r,n){if(e.fragment=e.fragment||"","/"==e.fragment.slice(0,1)){for(var i=e.fragment.split("/"),a=1;a<i.length;a++){var o=i[a];if(o){if(void 0===(r=r[o=Ie.unescapeFragment(o)]))break;var s;if(!Ne[o]&&((s=this._getId(r))&&(t=Ke(t,s)),r.$ref)){var c=Ke(t,r.$ref),u=qe.call(this,n,c);u&&(r=u.schema,n=u.root,t=u.baseId)}}}return void 0!==r&&r!==n.schema?{schema:r,root:n,baseId:t}:void 0}}var Be=Ie.toHash(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum"]);function $e(e,t){return!1!==t&&(void 0===t||!0===t?Ue(e):t?Ve(e)<=t:void 0)}function Ue(e){var t;if(Array.isArray(e)){for(var r=0;r<e.length;r++)if("object"==typeof(t=e[r])&&!Ue(t))return!1}else for(var n in e){if("$ref"==n)return!1;if("object"==typeof(t=e[n])&&!Ue(t))return!1}return!0}function Ve(e){var t,r=0;if(Array.isArray(e)){for(var n=0;n<e.length;n++)if("object"==typeof(t=e[n])&&(r+=Ve(t)),r==1/0)return 1/0}else for(var i in e){if("$ref"==i)return 1/0;if(Be[i])r++;else if("object"==typeof(t=e[i])&&(r+=Ve(t)+1),r==1/0)return 1/0}return r}function He(e,t){return!1!==t&&(e=We(e)),Qe(Oe.parse(e))}function Qe(e){return Oe.serialize(e).split("#")[0]+"#"}var Ge=/#\/?$/;function We(e){return e?e.replace(Ge,""):""}function Ke(e,t){return t=We(t),Oe.resolve(e,t)}var Ye=Re,Je={Validation:Xe((function(e){this.message="validation failed",this.errors=e,this.ajv=this.validation=!0})),MissingRef:Xe(Ze)};function Ze(e,t,r){this.message=r||Ze.message(e,t),this.missingRef=Ye.url(e,t),this.missingSchema=Ye.normalizeId(Ye.fullPath(this.missingRef))}function Xe(e){return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}Ze.message=function(e,t){return"can't resolve reference "+t+" from id "+e};var et=function(e,t){t||(t={}),"function"==typeof t&&(t={cmp:t});var r,n="boolean"==typeof t.cycles&&t.cycles,i=t.cmp&&(r=t.cmp,function(e){return function(t,n){var i={key:t,value:e[t]},a={key:n,value:e[n]};return r(i,a)}}),a=[];return function e(t){if(t&&t.toJSON&&"function"==typeof t.toJSON&&(t=t.toJSON()),void 0!==t){if("number"==typeof t)return isFinite(t)?""+t:"null";if("object"!=typeof t)return JSON.stringify(t);var r,o;if(Array.isArray(t)){for(o="[",r=0;r<t.length;r++)r&&(o+=","),o+=e(t[r])||"null";return o+"]"}if(null===t)return"null";if(-1!==a.indexOf(t)){if(n)return JSON.stringify("__cycle__");throw new TypeError("Converting circular structure to JSON")}var s=a.push(t)-1,c=Object.keys(t).sort(i&&i(t));for(o="",r=0;r<c.length;r++){var u=c[r],l=e(t[u]);l&&(o&&(o+=","),o+=JSON.stringify(u)+":"+l)}return a.splice(s,1),"{"+o+"}"}}(e)},tt=function(e,t,r){var n="",i=!0===e.schema.$async,a=e.util.schemaHasRulesExcept(e.schema,e.RULES.all,"$ref"),o=e.self._getId(e.schema);if(e.opts.strictKeywords){var s=e.util.schemaUnknownRules(e.schema,e.RULES.keywords);if(s){var c="unknown keyword: "+s;if("log"!==e.opts.strictKeywords)throw new Error(c);e.logger.warn(c)}}if(e.isTop&&(n+=" var validate = ",i&&(e.async=!0,n+="async "),n+="function(data, dataPath, parentData, parentDataProperty, rootData) { 'use strict'; ",o&&(e.opts.sourceCode||e.opts.processCode)&&(n+=" /*# sourceURL="+o+" */ ")),"boolean"==typeof e.schema||!a&&!e.schema.$ref){t="false schema";var u=e.level,l=e.dataLevel,f=e.schema[t],h=e.schemaPath+e.util.getProperty(t),p=e.errSchemaPath+"/"+t,d=!e.opts.allErrors,m="data"+(l||""),g="valid"+u;if(!1===e.schema){e.isTop?d=!0:n+=" var "+g+" = false; ",(Y=Y||[]).push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'false schema' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(p)+" , params: {} ",!1!==e.opts.messages&&(n+=" , message: 'boolean schema is false' "),e.opts.verbose&&(n+=" , schema: false , parentSchema: validate.schema"+e.schemaPath+" , data: "+m+" "),n+=" } "):n+=" {} ";var v=n;n=Y.pop(),!e.compositeRule&&d?e.async?n+=" throw new ValidationError(["+v+"]); ":n+=" validate.errors = ["+v+"]; return false; ":n+=" var err = "+v+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}else e.isTop?n+=i?" return data; ":" validate.errors = null; return true; ":n+=" var "+g+" = true; ";return e.isTop&&(n+=" }; return validate; "),n}if(e.isTop){var y=e.isTop;u=e.level=0,l=e.dataLevel=0,m="data";if(e.rootId=e.resolve.fullPath(e.self._getId(e.root.schema)),e.baseId=e.baseId||e.rootId,delete e.isTop,e.dataPathArr=[""],void 0!==e.schema.default&&e.opts.useDefaults&&e.opts.strictDefaults){var b="default is ignored in the schema root";if("log"!==e.opts.strictDefaults)throw new Error(b);e.logger.warn(b)}n+=" var vErrors = null; ",n+=" var errors = 0; ",n+=" if (rootData === undefined) rootData = data; "}else{u=e.level,m="data"+((l=e.dataLevel)||"");if(o&&(e.baseId=e.resolve.url(e.baseId,o)),i&&!e.async)throw new Error("async schema in sync schema");n+=" var errs_"+u+" = errors;"}g="valid"+u,d=!e.opts.allErrors;var w="",x="",k=e.schema.type,E=Array.isArray(k);if(k&&e.opts.nullable&&!0===e.schema.nullable&&(E?-1==k.indexOf("null")&&(k=k.concat("null")):"null"!=k&&(k=[k,"null"],E=!0)),E&&1==k.length&&(k=k[0],E=!1),e.schema.$ref&&a){if("fail"==e.opts.extendRefs)throw new Error('$ref: validation keywords used in schema at path "'+e.errSchemaPath+'" (see option extendRefs)');!0!==e.opts.extendRefs&&(a=!1,e.logger.warn('$ref: keywords ignored in schema at path "'+e.errSchemaPath+'"'))}if(e.schema.$comment&&e.opts.$comment&&(n+=" "+e.RULES.all.$comment.code(e,"$comment")),k){if(e.opts.coerceTypes)var S=e.util.coerceToTypes(e.opts.coerceTypes,k);var C=e.RULES.types[k];if(S||E||!0===C||C&&!J(C)){h=e.schemaPath+".type",p=e.errSchemaPath+"/type",h=e.schemaPath+".type",p=e.errSchemaPath+"/type";var A=E?"checkDataTypes":"checkDataType";if(n+=" if ("+e.util[A](k,m,e.opts.strictNumbers,!0)+") { ",S){var P="dataType"+u,_="coerced"+u;n+=" var "+P+" = typeof "+m+"; var "+_+" = undefined; ","array"==e.opts.coerceTypes&&(n+=" if ("+P+" == 'object' && Array.isArray("+m+") && "+m+".length == 1) { "+m+" = "+m+"[0]; "+P+" = typeof "+m+"; if ("+e.util.checkDataType(e.schema.type,m,e.opts.strictNumbers)+") "+_+" = "+m+"; } "),n+=" if ("+_+" !== undefined) ; ";var F=S;if(F)for(var O,D=-1,I=F.length-1;D<I;)"string"==(O=F[D+=1])?n+=" else if ("+P+" == 'number' || "+P+" == 'boolean') "+_+" = '' + "+m+"; else if ("+m+" === null) "+_+" = ''; ":"number"==O||"integer"==O?(n+=" else if ("+P+" == 'boolean' || "+m+" === null || ("+P+" == 'string' && "+m+" && "+m+" == +"+m+" ","integer"==O&&(n+=" && !("+m+" % 1)"),n+=")) "+_+" = +"+m+"; "):"boolean"==O?n+=" else if ("+m+" === 'false' || "+m+" === 0 || "+m+" === null) "+_+" = false; else if ("+m+" === 'true' || "+m+" === 1) "+_+" = true; ":"null"==O?n+=" else if ("+m+" === '' || "+m+" === 0 || "+m+" === false) "+_+" = null; ":"array"==e.opts.coerceTypes&&"array"==O&&(n+=" else if ("+P+" == 'string' || "+P+" == 'number' || "+P+" == 'boolean' || "+m+" == null) "+_+" = ["+m+"]; ");n+=" else { ",(Y=Y||[]).push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'type' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(p)+" , params: { type: '",n+=E?""+k.join(","):""+k,n+="' } ",!1!==e.opts.messages&&(n+=" , message: 'should be ",n+=E?""+k.join(","):""+k,n+="' "),e.opts.verbose&&(n+=" , schema: validate.schema"+h+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+m+" "),n+=" } "):n+=" {} ";v=n;n=Y.pop(),!e.compositeRule&&d?e.async?n+=" throw new ValidationError(["+v+"]); ":n+=" validate.errors = ["+v+"]; return false; ":n+=" var err = "+v+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" } if ("+_+" !== undefined) { ";var T=l?"data"+(l-1||""):"parentData";n+=" "+m+" = "+_+"; ",l||(n+="if ("+T+" !== undefined)"),n+=" "+T+"["+(l?e.dataPathArr[l]:"parentDataProperty")+"] = "+_+"; } "}else{(Y=Y||[]).push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'type' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(p)+" , params: { type: '",n+=E?""+k.join(","):""+k,n+="' } ",!1!==e.opts.messages&&(n+=" , message: 'should be ",n+=E?""+k.join(","):""+k,n+="' "),e.opts.verbose&&(n+=" , schema: validate.schema"+h+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+m+" "),n+=" } "):n+=" {} ";v=n;n=Y.pop(),!e.compositeRule&&d?e.async?n+=" throw new ValidationError(["+v+"]); ":n+=" validate.errors = ["+v+"]; return false; ":n+=" var err = "+v+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}n+=" } "}}if(e.schema.$ref&&!a)n+=" "+e.RULES.all.$ref.code(e,"$ref")+" ",d&&(n+=" } if (errors === ",n+=y?"0":"errs_"+u,n+=") { ",x+="}");else{var j=e.RULES;if(j)for(var R=-1,L=j.length-1;R<L;)if(J(C=j[R+=1])){if(C.type&&(n+=" if ("+e.util.checkDataType(C.type,m,e.opts.strictNumbers)+") { "),e.opts.useDefaults)if("object"==C.type&&e.schema.properties){f=e.schema.properties;var q=Object.keys(f);if(q)for(var M,N=-1,z=q.length-1;N<z;){if(void 0!==(U=f[M=q[N+=1]]).default){var B=m+e.util.getProperty(M);if(e.compositeRule){if(e.opts.strictDefaults){b="default is ignored for: "+B;if("log"!==e.opts.strictDefaults)throw new Error(b);e.logger.warn(b)}}else n+=" if ("+B+" === undefined ","empty"==e.opts.useDefaults&&(n+=" || "+B+" === null || "+B+" === '' "),n+=" ) "+B+" = ","shared"==e.opts.useDefaults?n+=" "+e.useDefault(U.default)+" ":n+=" "+JSON.stringify(U.default)+" ",n+="; "}}}else if("array"==C.type&&Array.isArray(e.schema.items)){var $=e.schema.items;if($){D=-1;for(var U,V=$.length-1;D<V;)if(void 0!==(U=$[D+=1]).default){B=m+"["+D+"]";if(e.compositeRule){if(e.opts.strictDefaults){b="default is ignored for: "+B;if("log"!==e.opts.strictDefaults)throw new Error(b);e.logger.warn(b)}}else n+=" if ("+B+" === undefined ","empty"==e.opts.useDefaults&&(n+=" || "+B+" === null || "+B+" === '' "),n+=" ) "+B+" = ","shared"==e.opts.useDefaults?n+=" "+e.useDefault(U.default)+" ":n+=" "+JSON.stringify(U.default)+" ",n+="; "}}}var H=C.rules;if(H)for(var Q,G=-1,W=H.length-1;G<W;)if(Z(Q=H[G+=1])){var K=Q.code(e,Q.keyword,C.type);K&&(n+=" "+K+" ",d&&(w+="}"))}if(d&&(n+=" "+w+" ",w=""),C.type&&(n+=" } ",k&&k===C.type&&!S)){n+=" else { ";var Y;h=e.schemaPath+".type",p=e.errSchemaPath+"/type";(Y=Y||[]).push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'type' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(p)+" , params: { type: '",n+=E?""+k.join(","):""+k,n+="' } ",!1!==e.opts.messages&&(n+=" , message: 'should be ",n+=E?""+k.join(","):""+k,n+="' "),e.opts.verbose&&(n+=" , schema: validate.schema"+h+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+m+" "),n+=" } "):n+=" {} ";v=n;n=Y.pop(),!e.compositeRule&&d?e.async?n+=" throw new ValidationError(["+v+"]); ":n+=" validate.errors = ["+v+"]; return false; ":n+=" var err = "+v+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" } "}d&&(n+=" if (errors === ",n+=y?"0":"errs_"+u,n+=") { ",x+="}")}}function J(e){for(var t=e.rules,r=0;r<t.length;r++)if(Z(t[r]))return!0}function Z(t){return void 0!==e.schema[t.keyword]||t.implements&&function(t){for(var r=t.implements,n=0;n<r.length;n++)if(void 0!==e.schema[r[n]])return!0}(t)}return d&&(n+=" "+x+" "),y?(i?(n+=" if (errors === 0) return data; ",n+=" else throw new ValidationError(vErrors); "):(n+=" validate.errors = vErrors; ",n+=" return errors === 0; "),n+=" }; return validate;"):n+=" var "+g+" = errors === errs_"+u+";",n},rt=Re,nt=le,it=Je,at=et,ot=tt,st=nt.ucs2length,ct=ue,ut=it.Validation,lt=function e(t,r,n,i){var a=this,o=this._opts,s=[void 0],c={},u=[],l={},f=[],h={},p=[];r=r||{schema:t,refVal:s,refs:c};var d=ft.call(this,t,r,i),m=this._compilations[d.index];if(d.compiling)return m.callValidate=function e(){var t=m.validate,r=t.apply(this,arguments);return e.errors=t.errors,r};var g=this._formats,v=this.RULES;try{var y=w(t,r,n,i);m.validate=y;var b=m.callValidate;return b&&(b.schema=y.schema,b.errors=null,b.refs=y.refs,b.refVal=y.refVal,b.root=y.root,b.$async=y.$async,o.sourceCode&&(b.source=y.source)),y}finally{ht.call(this,t,r,i)}function w(t,n,i,l){var h=!n||n&&n.schema==t;if(n.schema!=r.schema)return e.call(a,t,n,i,l);var d,m=!0===t.$async,y=ot({isTop:!0,schema:t,isRoot:h,baseId:l,root:n,schemaPath:"",errSchemaPath:"#",errorPath:'""',MissingRefError:it.MissingRef,RULES:v,validate:ot,util:nt,resolve:rt,resolveRef:x,usePattern:S,useDefault:C,useCustomRule:A,opts:o,formats:g,logger:a.logger,self:a});y=yt(s,gt)+yt(u,dt)+yt(f,mt)+yt(p,vt)+y,o.processCode&&(y=o.processCode(y,t));try{d=new Function("self","RULES","formats","root","refVal","defaults","customRules","equal","ucs2length","ValidationError",y)(a,v,g,r,s,f,p,ct,st,ut),s[0]=d}catch(e){throw a.logger.error("Error compiling schema, function code:",y),e}return d.schema=t,d.errors=null,d.refs=c,d.refVal=s,d.root=h?d:n,m&&(d.$async=!0),!0===o.sourceCode&&(d.source={code:y,patterns:u,defaults:f}),d}function x(t,i,u){i=rt.url(t,i);var l,f,h=c[i];if(void 0!==h)return E(l=s[h],f="refVal["+h+"]");if(!u&&r.refs){var p=r.refs[i];if(void 0!==p)return E(l=r.refVal[p],f=k(i,l))}f=k(i);var d=rt.call(a,w,r,i);if(void 0===d){var m=n&&n[i];m&&(d=rt.inlineRef(m,o.inlineRefs)?m:e.call(a,m,r,n,t))}if(void 0!==d)return function(e,t){var r=c[e];s[r]=t}(i,d),E(d,f);!function(e){delete c[e]}(i)}function k(e,t){var r=s.length;return s[r]=t,c[e]=r,"refVal"+r}function E(e,t){return"object"==typeof e||"boolean"==typeof e?{code:t,schema:e,inline:!0}:{code:t,$async:e&&!!e.$async}}function S(e){var t=l[e];return void 0===t&&(t=l[e]=u.length,u[t]=e),"pattern"+t}function C(e){switch(typeof e){case"boolean":case"number":return""+e;case"string":return nt.toQuotedString(e);case"object":if(null===e)return"null";var t=at(e),r=h[t];return void 0===r&&(r=h[t]=f.length,f[r]=e),"default"+r}}function A(e,t,r,n){if(!1!==a._opts.validateSchema){var i=e.definition.dependencies;if(i&&!i.every((function(e){return Object.prototype.hasOwnProperty.call(r,e)})))throw new Error("parent schema must have all required keywords: "+i.join(","));var s=e.definition.validateSchema;if(s)if(!s(t)){var c="keyword schema is invalid: "+a.errorsText(s.errors);if("log"!=a._opts.validateSchema)throw new Error(c);a.logger.error(c)}}var u,l=e.definition.compile,f=e.definition.inline,h=e.definition.macro;if(l)u=l.call(a,t,r,n);else if(h)u=h.call(a,t,r,n),!1!==o.validateSchema&&a.validateSchema(u,!0);else if(f)u=f.call(a,n,e.keyword,t,r);else if(!(u=e.definition.validate))return;if(void 0===u)throw new Error('custom keyword "'+e.keyword+'"failed to compile');var d=p.length;return p[d]=u,{code:"customRule"+d,validate:u}}};function ft(e,t,r){var n=pt.call(this,e,t,r);return n>=0?{index:n,compiling:!0}:(n=this._compilations.length,this._compilations[n]={schema:e,root:t,baseId:r},{index:n,compiling:!1})}function ht(e,t,r){var n=pt.call(this,e,t,r);n>=0&&this._compilations.splice(n,1)}function pt(e,t,r){for(var n=0;n<this._compilations.length;n++){var i=this._compilations[n];if(i.schema==e&&i.root==t&&i.baseId==r)return n}return-1}function dt(e,t){return"var pattern"+e+" = new RegExp("+nt.toQuotedString(t[e])+");"}function mt(e){return"var default"+e+" = defaults["+e+"];"}function gt(e,t){return void 0===t[e]?"":"var refVal"+e+" = refVal["+e+"];"}function vt(e){return"var customRule"+e+" = customRules["+e+"];"}function yt(e,t){if(!e.length)return"";for(var r="",n=0;n<e.length;n++)r+=t(n,e);return r}var bt={exports:{}},wt=bt.exports=function(){this._cache={}};wt.prototype.put=function(e,t){this._cache[e]=t},wt.prototype.get=function(e){return this._cache[e]},wt.prototype.del=function(e){delete this._cache[e]},wt.prototype.clear=function(){this._cache={}};var xt=le,kt=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,Et=[0,31,28,31,30,31,30,31,31,30,31,30,31],St=/^(\d\d):(\d\d):(\d\d)(\.\d+)?(z|[+-]\d\d(?::?\d\d)?)?$/i,Ct=/^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i,At=/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)(?:\?(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,Pt=/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i,_t=/^(?:(?:http[s\u017F]?|ftp):\/\/)(?:(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+(?::(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*)?@)?(?:(?!10(?:\.[0-9]{1,3}){3})(?!127(?:\.[0-9]{1,3}){3})(?!169\.254(?:\.[0-9]{1,3}){2})(?!192\.168(?:\.[0-9]{1,3}){2})(?!172\.(?:1[6-9]|2[0-9]|3[01])(?:\.[0-9]{1,3}){2})(?:[1-9][0-9]?|1[0-9][0-9]|2[01][0-9]|22[0-3])(?:\.(?:1?[0-9]{1,2}|2[0-4][0-9]|25[0-5])){2}(?:\.(?:[1-9][0-9]?|1[0-9][0-9]|2[0-4][0-9]|25[0-4]))|(?:(?:(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+-)*(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)(?:\.(?:(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+-)*(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)*(?:\.(?:(?:[a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]){2,})))(?::[0-9]{2,5})?(?:\/(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*)?$/i,Ft=/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,Ot=/^(?:\/(?:[^~/]|~0|~1)*)*$/,Dt=/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,It=/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/,Tt=jt;function jt(e){return e="full"==e?"full":"fast",xt.copy(jt[e])}function Rt(e){var t=e.match(kt);if(!t)return!1;var r=+t[1],n=+t[2],i=+t[3];return n>=1&&n<=12&&i>=1&&i<=(2==n&&function(e){return e%4==0&&(e%100!=0||e%400==0)}(r)?29:Et[n])}function Lt(e,t){var r=e.match(St);if(!r)return!1;var n=r[1],i=r[2],a=r[3],o=r[5];return(n<=23&&i<=59&&a<=59||23==n&&59==i&&60==a)&&(!t||o)}jt.fast={date:/^\d\d\d\d-[0-1]\d-[0-3]\d$/,time:/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,"date-time":/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,uri:/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,"uri-template":Pt,url:_t,email:/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i,hostname:Ct,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipv6:/^\s*(?:(?:(?:[0-9a-f]{1,4}:){7}(?:[0-9a-f]{1,4}|:))|(?:(?:[0-9a-f]{1,4}:){6}(?::[0-9a-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-f]{1,4}:){5}(?:(?:(?::[0-9a-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-f]{1,4}:){4}(?:(?:(?::[0-9a-f]{1,4}){1,3})|(?:(?::[0-9a-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-f]{1,4}:){3}(?:(?:(?::[0-9a-f]{1,4}){1,4})|(?:(?::[0-9a-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-f]{1,4}:){2}(?:(?:(?::[0-9a-f]{1,4}){1,5})|(?:(?::[0-9a-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-f]{1,4}:){1}(?:(?:(?::[0-9a-f]{1,4}){1,6})|(?:(?::[0-9a-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-f]{1,4}){1,7})|(?:(?::[0-9a-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*$/i,regex:zt,uuid:Ft,"json-pointer":Ot,"json-pointer-uri-fragment":Dt,"relative-json-pointer":It},jt.full={date:Rt,time:Lt,"date-time":function(e){var t=e.split(qt);return 2==t.length&&Rt(t[0])&&Lt(t[1],!0)},uri:function(e){return Mt.test(e)&&At.test(e)},"uri-reference":/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,"uri-template":Pt,url:_t,email:/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,hostname:Ct,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipv6:/^\s*(?:(?:(?:[0-9a-f]{1,4}:){7}(?:[0-9a-f]{1,4}|:))|(?:(?:[0-9a-f]{1,4}:){6}(?::[0-9a-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-f]{1,4}:){5}(?:(?:(?::[0-9a-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-f]{1,4}:){4}(?:(?:(?::[0-9a-f]{1,4}){1,3})|(?:(?::[0-9a-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-f]{1,4}:){3}(?:(?:(?::[0-9a-f]{1,4}){1,4})|(?:(?::[0-9a-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-f]{1,4}:){2}(?:(?:(?::[0-9a-f]{1,4}){1,5})|(?:(?::[0-9a-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-f]{1,4}:){1}(?:(?:(?::[0-9a-f]{1,4}){1,6})|(?:(?::[0-9a-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-f]{1,4}){1,7})|(?:(?::[0-9a-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*$/i,regex:zt,uuid:Ft,"json-pointer":Ot,"json-pointer-uri-fragment":Dt,"relative-json-pointer":It};var qt=/t|\s/i;var Mt=/\/|:/;var Nt=/[^\\]\\Z/;function zt(e){if(Nt.test(e))return!1;try{return new RegExp(e),!0}catch(e){return!1}}var Bt=function(e,t,r){var n,i=" ",a=e.level,o=e.dataLevel,s=e.schema[t],c=e.schemaPath+e.util.getProperty(t),u=e.errSchemaPath+"/"+t,l=!e.opts.allErrors,f="data"+(o||""),h=e.opts.$data&&s&&s.$data;h?(i+=" var schema"+a+" = "+e.util.getData(s.$data,o,e.dataPathArr)+"; ",n="schema"+a):n=s;var p="maximum"==t,d=p?"exclusiveMaximum":"exclusiveMinimum",m=e.schema[d],g=e.opts.$data&&m&&m.$data,v=p?"<":">",y=p?">":"<",b=void 0;if(!h&&"number"!=typeof s&&void 0!==s)throw new Error(t+" must be number");if(!g&&void 0!==m&&"number"!=typeof m&&"boolean"!=typeof m)throw new Error(d+" must be number or boolean");if(g){var w=e.util.getData(m.$data,o,e.dataPathArr),x="exclusive"+a,k="exclType"+a,E="exclIsNumber"+a,S="' + "+(P="op"+a)+" + '";i+=" var schemaExcl"+a+" = "+w+"; ",i+=" var "+x+"; var "+k+" = typeof "+(w="schemaExcl"+a)+"; if ("+k+" != 'boolean' && "+k+" != 'undefined' && "+k+" != 'number') { ";var C;b=d;(C=C||[]).push(i),i="",!1!==e.createErrors?(i+=" { keyword: '"+(b||"_exclusiveLimit")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: {} ",!1!==e.opts.messages&&(i+=" , message: '"+d+" should be boolean' "),e.opts.verbose&&(i+=" , schema: validate.schema"+c+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "),i+=" } "):i+=" {} ";var A=i;i=C.pop(),!e.compositeRule&&l?e.async?i+=" throw new ValidationError(["+A+"]); ":i+=" validate.errors = ["+A+"]; return false; ":i+=" var err = "+A+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+=" } else if ( ",h&&(i+=" ("+n+" !== undefined && typeof "+n+" != 'number') || "),i+=" "+k+" == 'number' ? ( ("+x+" = "+n+" === undefined || "+w+" "+v+"= "+n+") ? "+f+" "+y+"= "+w+" : "+f+" "+y+" "+n+" ) : ( ("+x+" = "+w+" === true) ? "+f+" "+y+"= "+n+" : "+f+" "+y+" "+n+" ) || "+f+" !== "+f+") { var op"+a+" = "+x+" ? '"+v+"' : '"+v+"='; ",void 0===s&&(b=d,u=e.errSchemaPath+"/"+d,n=w,h=g)}else{S=v;if((E="number"==typeof m)&&h){var P="'"+S+"'";i+=" if ( ",h&&(i+=" ("+n+" !== undefined && typeof "+n+" != 'number') || "),i+=" ( "+n+" === undefined || "+m+" "+v+"= "+n+" ? "+f+" "+y+"= "+m+" : "+f+" "+y+" "+n+" ) || "+f+" !== "+f+") { "}else{E&&void 0===s?(x=!0,b=d,u=e.errSchemaPath+"/"+d,n=m,y+="="):(E&&(n=Math[p?"min":"max"](m,s)),m===(!E||n)?(x=!0,b=d,u=e.errSchemaPath+"/"+d,y+="="):(x=!1,S+="="));P="'"+S+"'";i+=" if ( ",h&&(i+=" ("+n+" !== undefined && typeof "+n+" != 'number') || "),i+=" "+f+" "+y+" "+n+" || "+f+" !== "+f+") { "}}b=b||t,(C=C||[]).push(i),i="",!1!==e.createErrors?(i+=" { keyword: '"+(b||"_limit")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { comparison: "+P+", limit: "+n+", exclusive: "+x+" } ",!1!==e.opts.messages&&(i+=" , message: 'should be "+S+" ",i+=h?"' + "+n:n+"'"),e.opts.verbose&&(i+=" , schema: ",i+=h?"validate.schema"+c:""+s,i+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "),i+=" } "):i+=" {} ";A=i;return i=C.pop(),!e.compositeRule&&l?e.async?i+=" throw new ValidationError(["+A+"]); ":i+=" validate.errors = ["+A+"]; return false; ":i+=" var err = "+A+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+=" } ",l&&(i+=" else { "),i},$t=function(e,t,r){var n,i=" ",a=e.level,o=e.dataLevel,s=e.schema[t],c=e.schemaPath+e.util.getProperty(t),u=e.errSchemaPath+"/"+t,l=!e.opts.allErrors,f="data"+(o||""),h=e.opts.$data&&s&&s.$data;if(h?(i+=" var schema"+a+" = "+e.util.getData(s.$data,o,e.dataPathArr)+"; ",n="schema"+a):n=s,!h&&"number"!=typeof s)throw new Error(t+" must be number");i+="if ( ",h&&(i+=" ("+n+" !== undefined && typeof "+n+" != 'number') || "),i+=" "+f+".length "+("maxItems"==t?">":"<")+" "+n+") { ";var p=t,d=d||[];d.push(i),i="",!1!==e.createErrors?(i+=" { keyword: '"+(p||"_limitItems")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { limit: "+n+" } ",!1!==e.opts.messages&&(i+=" , message: 'should NOT have ",i+="maxItems"==t?"more":"fewer",i+=" than ",i+=h?"' + "+n+" + '":""+s,i+=" items' "),e.opts.verbose&&(i+=" , schema: ",i+=h?"validate.schema"+c:""+s,i+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "),i+=" } "):i+=" {} ";var m=i;return i=d.pop(),!e.compositeRule&&l?e.async?i+=" throw new ValidationError(["+m+"]); ":i+=" validate.errors = ["+m+"]; return false; ":i+=" var err = "+m+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+="} ",l&&(i+=" else { "),i},Ut=function(e,t,r){var n,i=" ",a=e.level,o=e.dataLevel,s=e.schema[t],c=e.schemaPath+e.util.getProperty(t),u=e.errSchemaPath+"/"+t,l=!e.opts.allErrors,f="data"+(o||""),h=e.opts.$data&&s&&s.$data;if(h?(i+=" var schema"+a+" = "+e.util.getData(s.$data,o,e.dataPathArr)+"; ",n="schema"+a):n=s,!h&&"number"!=typeof s)throw new Error(t+" must be number");var p="maxLength"==t?">":"<";i+="if ( ",h&&(i+=" ("+n+" !== undefined && typeof "+n+" != 'number') || "),!1===e.opts.unicode?i+=" "+f+".length ":i+=" ucs2length("+f+") ",i+=" "+p+" "+n+") { ";var d=t,m=m||[];m.push(i),i="",!1!==e.createErrors?(i+=" { keyword: '"+(d||"_limitLength")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { limit: "+n+" } ",!1!==e.opts.messages&&(i+=" , message: 'should NOT be ",i+="maxLength"==t?"longer":"shorter",i+=" than ",i+=h?"' + "+n+" + '":""+s,i+=" characters' "),e.opts.verbose&&(i+=" , schema: ",i+=h?"validate.schema"+c:""+s,i+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "),i+=" } "):i+=" {} ";var g=i;return i=m.pop(),!e.compositeRule&&l?e.async?i+=" throw new ValidationError(["+g+"]); ":i+=" validate.errors = ["+g+"]; return false; ":i+=" var err = "+g+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+="} ",l&&(i+=" else { "),i},Vt=function(e,t,r){var n,i=" ",a=e.level,o=e.dataLevel,s=e.schema[t],c=e.schemaPath+e.util.getProperty(t),u=e.errSchemaPath+"/"+t,l=!e.opts.allErrors,f="data"+(o||""),h=e.opts.$data&&s&&s.$data;if(h?(i+=" var schema"+a+" = "+e.util.getData(s.$data,o,e.dataPathArr)+"; ",n="schema"+a):n=s,!h&&"number"!=typeof s)throw new Error(t+" must be number");i+="if ( ",h&&(i+=" ("+n+" !== undefined && typeof "+n+" != 'number') || "),i+=" Object.keys("+f+").length "+("maxProperties"==t?">":"<")+" "+n+") { ";var p=t,d=d||[];d.push(i),i="",!1!==e.createErrors?(i+=" { keyword: '"+(p||"_limitProperties")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { limit: "+n+" } ",!1!==e.opts.messages&&(i+=" , message: 'should NOT have ",i+="maxProperties"==t?"more":"fewer",i+=" than ",i+=h?"' + "+n+" + '":""+s,i+=" properties' "),e.opts.verbose&&(i+=" , schema: ",i+=h?"validate.schema"+c:""+s,i+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "),i+=" } "):i+=" {} ";var m=i;return i=d.pop(),!e.compositeRule&&l?e.async?i+=" throw new ValidationError(["+m+"]); ":i+=" validate.errors = ["+m+"]; return false; ":i+=" var err = "+m+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+="} ",l&&(i+=" else { "),i},Ht={$ref:function(e,t,r){var n,i,a=" ",o=e.level,s=e.dataLevel,c=e.schema[t],u=e.errSchemaPath+"/"+t,l=!e.opts.allErrors,f="data"+(s||""),h="valid"+o;if("#"==c||"#/"==c)e.isRoot?(n=e.async,i="validate"):(n=!0===e.root.schema.$async,i="root.refVal[0]");else{var p=e.resolveRef(e.baseId,c,e.isRoot);if(void 0===p){var d=e.MissingRefError.message(e.baseId,c);if("fail"==e.opts.missingRefs){e.logger.error(d),(y=y||[]).push(a),a="",!1!==e.createErrors?(a+=" { keyword: '$ref' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { ref: '"+e.util.escapeQuotes(c)+"' } ",!1!==e.opts.messages&&(a+=" , message: 'can\\'t resolve reference "+e.util.escapeQuotes(c)+"' "),e.opts.verbose&&(a+=" , schema: "+e.util.toQuotedString(c)+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "),a+=" } "):a+=" {} ";var m=a;a=y.pop(),!e.compositeRule&&l?e.async?a+=" throw new ValidationError(["+m+"]); ":a+=" validate.errors = ["+m+"]; return false; ":a+=" var err = "+m+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",l&&(a+=" if (false) { ")}else{if("ignore"!=e.opts.missingRefs)throw new e.MissingRefError(e.baseId,c,d);e.logger.warn(d),l&&(a+=" if (true) { ")}}else if(p.inline){var g=e.util.copy(e);g.level++;var v="valid"+g.level;g.schema=p.schema,g.schemaPath="",g.errSchemaPath=c,a+=" "+e.validate(g).replace(/validate\.schema/g,p.code)+" ",l&&(a+=" if ("+v+") { ")}else n=!0===p.$async||e.async&&!1!==p.$async,i=p.code}if(i){var y;(y=y||[]).push(a),a="",e.opts.passContext?a+=" "+i+".call(this, ":a+=" "+i+"( ",a+=" "+f+", (dataPath || '')",'""'!=e.errorPath&&(a+=" + "+e.errorPath);var b=a+=" , "+(s?"data"+(s-1||""):"parentData")+" , "+(s?e.dataPathArr[s]:"parentDataProperty")+", rootData) ";if(a=y.pop(),n){if(!e.async)throw new Error("async schema referenced by sync schema");l&&(a+=" var "+h+"; "),a+=" try { await "+b+"; ",l&&(a+=" "+h+" = true; "),a+=" } catch (e) { if (!(e instanceof ValidationError)) throw e; if (vErrors === null) vErrors = e.errors; else vErrors = vErrors.concat(e.errors); errors = vErrors.length; ",l&&(a+=" "+h+" = false; "),a+=" } ",l&&(a+=" if ("+h+") { ")}else a+=" if (!"+b+") { if (vErrors === null) vErrors = "+i+".errors; else vErrors = vErrors.concat("+i+".errors); errors = vErrors.length; } ",l&&(a+=" else { ")}return a},allOf:function(e,t,r){var n=" ",i=e.schema[t],a=e.schemaPath+e.util.getProperty(t),o=e.errSchemaPath+"/"+t,s=!e.opts.allErrors,c=e.util.copy(e),u="";c.level++;var l="valid"+c.level,f=c.baseId,h=!0,p=i;if(p)for(var d,m=-1,g=p.length-1;m<g;)d=p[m+=1],(e.opts.strictKeywords?"object"==typeof d&&Object.keys(d).length>0||!1===d:e.util.schemaHasRules(d,e.RULES.all))&&(h=!1,c.schema=d,c.schemaPath=a+"["+m+"]",c.errSchemaPath=o+"/"+m,n+=" "+e.validate(c)+" ",c.baseId=f,s&&(n+=" if ("+l+") { ",u+="}"));return s&&(n+=h?" if (true) { ":" "+u.slice(0,-1)+" "),n},anyOf:function(e,t,r){var n=" ",i=e.level,a=e.dataLevel,o=e.schema[t],s=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,u=!e.opts.allErrors,l="data"+(a||""),f="valid"+i,h="errs__"+i,p=e.util.copy(e),d="";p.level++;var m="valid"+p.level;if(o.every((function(t){return e.opts.strictKeywords?"object"==typeof t&&Object.keys(t).length>0||!1===t:e.util.schemaHasRules(t,e.RULES.all)}))){var g=p.baseId;n+=" var "+h+" = errors; var "+f+" = false; ";var v=e.compositeRule;e.compositeRule=p.compositeRule=!0;var y=o;if(y)for(var b,w=-1,x=y.length-1;w<x;)b=y[w+=1],p.schema=b,p.schemaPath=s+"["+w+"]",p.errSchemaPath=c+"/"+w,n+=" "+e.validate(p)+" ",p.baseId=g,n+=" "+f+" = "+f+" || "+m+"; if (!"+f+") { ",d+="}";e.compositeRule=p.compositeRule=v,n+=" "+d+" if (!"+f+") { var err = ",!1!==e.createErrors?(n+=" { keyword: 'anyOf' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: {} ",!1!==e.opts.messages&&(n+=" , message: 'should match some schema in anyOf' "),e.opts.verbose&&(n+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "),n+=" } "):n+=" {} ",n+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&u&&(e.async?n+=" throw new ValidationError(vErrors); ":n+=" validate.errors = vErrors; return false; "),n+=" } else { errors = "+h+"; if (vErrors !== null) { if ("+h+") vErrors.length = "+h+"; else vErrors = null; } ",e.opts.allErrors&&(n+=" } ")}else u&&(n+=" if (true) { ");return n},$comment:function(e,t,r){var n=" ",i=e.schema[t],a=e.errSchemaPath+"/"+t;e.opts.allErrors;var o=e.util.toQuotedString(i);return!0===e.opts.$comment?n+=" console.log("+o+");":"function"==typeof e.opts.$comment&&(n+=" self._opts.$comment("+o+", "+e.util.toQuotedString(a)+", validate.root.schema);"),n},const:function(e,t,r){var n=" ",i=e.level,a=e.dataLevel,o=e.schema[t],s=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,u=!e.opts.allErrors,l="data"+(a||""),f="valid"+i,h=e.opts.$data&&o&&o.$data;h&&(n+=" var schema"+i+" = "+e.util.getData(o.$data,a,e.dataPathArr)+"; "),h||(n+=" var schema"+i+" = validate.schema"+s+";"),n+="var "+f+" = equal("+l+", schema"+i+"); if (!"+f+") { ";var p=p||[];p.push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'const' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { allowedValue: schema"+i+" } ",!1!==e.opts.messages&&(n+=" , message: 'should be equal to constant' "),e.opts.verbose&&(n+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "),n+=" } "):n+=" {} ";var d=n;return n=p.pop(),!e.compositeRule&&u?e.async?n+=" throw new ValidationError(["+d+"]); ":n+=" validate.errors = ["+d+"]; return false; ":n+=" var err = "+d+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" }",u&&(n+=" else { "),n},contains:function(e,t,r){var n=" ",i=e.level,a=e.dataLevel,o=e.schema[t],s=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,u=!e.opts.allErrors,l="data"+(a||""),f="valid"+i,h="errs__"+i,p=e.util.copy(e);p.level++;var d="valid"+p.level,m="i"+i,g=p.dataLevel=e.dataLevel+1,v="data"+g,y=e.baseId,b=e.opts.strictKeywords?"object"==typeof o&&Object.keys(o).length>0||!1===o:e.util.schemaHasRules(o,e.RULES.all);if(n+="var "+h+" = errors;var "+f+";",b){var w=e.compositeRule;e.compositeRule=p.compositeRule=!0,p.schema=o,p.schemaPath=s,p.errSchemaPath=c,n+=" var "+d+" = false; for (var "+m+" = 0; "+m+" < "+l+".length; "+m+"++) { ",p.errorPath=e.util.getPathExpr(e.errorPath,m,e.opts.jsonPointers,!0);var x=l+"["+m+"]";p.dataPathArr[g]=m;var k=e.validate(p);p.baseId=y,e.util.varOccurences(k,v)<2?n+=" "+e.util.varReplace(k,v,x)+" ":n+=" var "+v+" = "+x+"; "+k+" ",n+=" if ("+d+") break; } ",e.compositeRule=p.compositeRule=w,n+=" if (!"+d+") {"}else n+=" if ("+l+".length == 0) {";var E=E||[];E.push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'contains' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: {} ",!1!==e.opts.messages&&(n+=" , message: 'should contain a valid item' "),e.opts.verbose&&(n+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "),n+=" } "):n+=" {} ";var S=n;return n=E.pop(),!e.compositeRule&&u?e.async?n+=" throw new ValidationError(["+S+"]); ":n+=" validate.errors = ["+S+"]; return false; ":n+=" var err = "+S+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" } else { ",b&&(n+=" errors = "+h+"; if (vErrors !== null) { if ("+h+") vErrors.length = "+h+"; else vErrors = null; } "),e.opts.allErrors&&(n+=" } "),n},dependencies:function(e,t,r){var n=" ",i=e.level,a=e.dataLevel,o=e.schema[t],s=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,u=!e.opts.allErrors,l="data"+(a||""),f="errs__"+i,h=e.util.copy(e),p="";h.level++;var d="valid"+h.level,m={},g={},v=e.opts.ownProperties;for(x in o)if("__proto__"!=x){var y=o[x],b=Array.isArray(y)?g:m;b[x]=y}n+="var "+f+" = errors;";var w=e.errorPath;for(var x in n+="var missing"+i+";",g)if((b=g[x]).length){if(n+=" if ( "+l+e.util.getProperty(x)+" !== undefined ",v&&(n+=" && Object.prototype.hasOwnProperty.call("+l+", '"+e.util.escapeQuotes(x)+"') "),u){n+=" && ( ";var k=b;if(k)for(var E=-1,S=k.length-1;E<S;){O=k[E+=1],E&&(n+=" || "),n+=" ( ( "+(j=l+(T=e.util.getProperty(O)))+" === undefined ",v&&(n+=" || ! Object.prototype.hasOwnProperty.call("+l+", '"+e.util.escapeQuotes(O)+"') "),n+=") && (missing"+i+" = "+e.util.toQuotedString(e.opts.jsonPointers?O:T)+") ) "}n+=")) { ";var C="missing"+i,A="' + "+C+" + '";e.opts._errorDataPathProperty&&(e.errorPath=e.opts.jsonPointers?e.util.getPathExpr(w,C,!0):w+" + "+C);var P=P||[];P.push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'dependencies' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { property: '"+e.util.escapeQuotes(x)+"', missingProperty: '"+A+"', depsCount: "+b.length+", deps: '"+e.util.escapeQuotes(1==b.length?b[0]:b.join(", "))+"' } ",!1!==e.opts.messages&&(n+=" , message: 'should have ",1==b.length?n+="property "+e.util.escapeQuotes(b[0]):n+="properties "+e.util.escapeQuotes(b.join(", ")),n+=" when property "+e.util.escapeQuotes(x)+" is present' "),e.opts.verbose&&(n+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "),n+=" } "):n+=" {} ";var _=n;n=P.pop(),!e.compositeRule&&u?e.async?n+=" throw new ValidationError(["+_+"]); ":n+=" validate.errors = ["+_+"]; return false; ":n+=" var err = "+_+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}else{n+=" ) { ";var F=b;if(F)for(var O,D=-1,I=F.length-1;D<I;){O=F[D+=1];var T=e.util.getProperty(O),j=(A=e.util.escapeQuotes(O),l+T);e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPath(w,O,e.opts.jsonPointers)),n+=" if ( "+j+" === undefined ",v&&(n+=" || ! Object.prototype.hasOwnProperty.call("+l+", '"+e.util.escapeQuotes(O)+"') "),n+=") { var err = ",!1!==e.createErrors?(n+=" { keyword: 'dependencies' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { property: '"+e.util.escapeQuotes(x)+"', missingProperty: '"+A+"', depsCount: "+b.length+", deps: '"+e.util.escapeQuotes(1==b.length?b[0]:b.join(", "))+"' } ",!1!==e.opts.messages&&(n+=" , message: 'should have ",1==b.length?n+="property "+e.util.escapeQuotes(b[0]):n+="properties "+e.util.escapeQuotes(b.join(", ")),n+=" when property "+e.util.escapeQuotes(x)+" is present' "),e.opts.verbose&&(n+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "),n+=" } "):n+=" {} ",n+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } "}}n+=" } ",u&&(p+="}",n+=" else { ")}e.errorPath=w;var R=h.baseId;for(var x in m){y=m[x];(e.opts.strictKeywords?"object"==typeof y&&Object.keys(y).length>0||!1===y:e.util.schemaHasRules(y,e.RULES.all))&&(n+=" "+d+" = true; if ( "+l+e.util.getProperty(x)+" !== undefined ",v&&(n+=" && Object.prototype.hasOwnProperty.call("+l+", '"+e.util.escapeQuotes(x)+"') "),n+=") { ",h.schema=y,h.schemaPath=s+e.util.getProperty(x),h.errSchemaPath=c+"/"+e.util.escapeFragment(x),n+=" "+e.validate(h)+" ",h.baseId=R,n+=" } ",u&&(n+=" if ("+d+") { ",p+="}"))}return u&&(n+=" "+p+" if ("+f+" == errors) {"),n},enum:function(e,t,r){var n=" ",i=e.level,a=e.dataLevel,o=e.schema[t],s=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,u=!e.opts.allErrors,l="data"+(a||""),f="valid"+i,h=e.opts.$data&&o&&o.$data;h&&(n+=" var schema"+i+" = "+e.util.getData(o.$data,a,e.dataPathArr)+"; ");var p="i"+i,d="schema"+i;h||(n+=" var "+d+" = validate.schema"+s+";"),n+="var "+f+";",h&&(n+=" if (schema"+i+" === undefined) "+f+" = true; else if (!Array.isArray(schema"+i+")) "+f+" = false; else {"),n+=f+" = false;for (var "+p+"=0; "+p+"<"+d+".length; "+p+"++) if (equal("+l+", "+d+"["+p+"])) { "+f+" = true; break; }",h&&(n+=" } "),n+=" if (!"+f+") { ";var m=m||[];m.push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'enum' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { allowedValues: schema"+i+" } ",!1!==e.opts.messages&&(n+=" , message: 'should be equal to one of the allowed values' "),e.opts.verbose&&(n+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "),n+=" } "):n+=" {} ";var g=n;return n=m.pop(),!e.compositeRule&&u?e.async?n+=" throw new ValidationError(["+g+"]); ":n+=" validate.errors = ["+g+"]; return false; ":n+=" var err = "+g+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" }",u&&(n+=" else { "),n},format:function(e,t,r){var n=" ",i=e.level,a=e.dataLevel,o=e.schema[t],s=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,u=!e.opts.allErrors,l="data"+(a||"");if(!1===e.opts.format)return u&&(n+=" if (true) { "),n;var f,h=e.opts.$data&&o&&o.$data;h?(n+=" var schema"+i+" = "+e.util.getData(o.$data,a,e.dataPathArr)+"; ",f="schema"+i):f=o;var p=e.opts.unknownFormats,d=Array.isArray(p);if(h){n+=" var "+(m="format"+i)+" = formats["+f+"]; var "+(g="isObject"+i)+" = typeof "+m+" == 'object' && !("+m+" instanceof RegExp) && "+m+".validate; var "+(v="formatType"+i)+" = "+g+" && "+m+".type || 'string'; if ("+g+") { ",e.async&&(n+=" var async"+i+" = "+m+".async; "),n+=" "+m+" = "+m+".validate; } if ( ",h&&(n+=" ("+f+" !== undefined && typeof "+f+" != 'string') || "),n+=" (","ignore"!=p&&(n+=" ("+f+" && !"+m+" ",d&&(n+=" && self._opts.unknownFormats.indexOf("+f+") == -1 "),n+=") || "),n+=" ("+m+" && "+v+" == '"+r+"' && !(typeof "+m+" == 'function' ? ",e.async?n+=" (async"+i+" ? await "+m+"("+l+") : "+m+"("+l+")) ":n+=" "+m+"("+l+") ",n+=" : "+m+".test("+l+"))))) {"}else{var m;if(!(m=e.formats[o])){if("ignore"==p)return e.logger.warn('unknown format "'+o+'" ignored in schema at path "'+e.errSchemaPath+'"'),u&&(n+=" if (true) { "),n;if(d&&p.indexOf(o)>=0)return u&&(n+=" if (true) { "),n;throw new Error('unknown format "'+o+'" is used in schema at path "'+e.errSchemaPath+'"')}var g,v=(g="object"==typeof m&&!(m instanceof RegExp)&&m.validate)&&m.type||"string";if(g){var y=!0===m.async;m=m.validate}if(v!=r)return u&&(n+=" if (true) { "),n;if(y){if(!e.async)throw new Error("async format in sync schema");n+=" if (!(await "+(b="formats"+e.util.getProperty(o)+".validate")+"("+l+"))) { "}else{n+=" if (! ";var b="formats"+e.util.getProperty(o);g&&(b+=".validate"),n+="function"==typeof m?" "+b+"("+l+") ":" "+b+".test("+l+") ",n+=") { "}}var w=w||[];w.push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'format' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { format: ",n+=h?""+f:""+e.util.toQuotedString(o),n+=" } ",!1!==e.opts.messages&&(n+=" , message: 'should match format \"",n+=h?"' + "+f+" + '":""+e.util.escapeQuotes(o),n+="\"' "),e.opts.verbose&&(n+=" , schema: ",n+=h?"validate.schema"+s:""+e.util.toQuotedString(o),n+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "),n+=" } "):n+=" {} ";var x=n;return n=w.pop(),!e.compositeRule&&u?e.async?n+=" throw new ValidationError(["+x+"]); ":n+=" validate.errors = ["+x+"]; return false; ":n+=" var err = "+x+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" } ",u&&(n+=" else { "),n},if:function(e,t,r){var n=" ",i=e.level,a=e.dataLevel,o=e.schema[t],s=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,u=!e.opts.allErrors,l="data"+(a||""),f="valid"+i,h="errs__"+i,p=e.util.copy(e);p.level++;var d="valid"+p.level,m=e.schema.then,g=e.schema.else,v=void 0!==m&&(e.opts.strictKeywords?"object"==typeof m&&Object.keys(m).length>0||!1===m:e.util.schemaHasRules(m,e.RULES.all)),y=void 0!==g&&(e.opts.strictKeywords?"object"==typeof g&&Object.keys(g).length>0||!1===g:e.util.schemaHasRules(g,e.RULES.all)),b=p.baseId;if(v||y){var w;p.createErrors=!1,p.schema=o,p.schemaPath=s,p.errSchemaPath=c,n+=" var "+h+" = errors; var "+f+" = true; ";var x=e.compositeRule;e.compositeRule=p.compositeRule=!0,n+=" "+e.validate(p)+" ",p.baseId=b,p.createErrors=!0,n+=" errors = "+h+"; if (vErrors !== null) { if ("+h+") vErrors.length = "+h+"; else vErrors = null; } ",e.compositeRule=p.compositeRule=x,v?(n+=" if ("+d+") { ",p.schema=e.schema.then,p.schemaPath=e.schemaPath+".then",p.errSchemaPath=e.errSchemaPath+"/then",n+=" "+e.validate(p)+" ",p.baseId=b,n+=" "+f+" = "+d+"; ",v&&y?n+=" var "+(w="ifClause"+i)+" = 'then'; ":w="'then'",n+=" } ",y&&(n+=" else { ")):n+=" if (!"+d+") { ",y&&(p.schema=e.schema.else,p.schemaPath=e.schemaPath+".else",p.errSchemaPath=e.errSchemaPath+"/else",n+=" "+e.validate(p)+" ",p.baseId=b,n+=" "+f+" = "+d+"; ",v&&y?n+=" var "+(w="ifClause"+i)+" = 'else'; ":w="'else'",n+=" } "),n+=" if (!"+f+") { var err = ",!1!==e.createErrors?(n+=" { keyword: 'if' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { failingKeyword: "+w+" } ",!1!==e.opts.messages&&(n+=" , message: 'should match \"' + "+w+" + '\" schema' "),e.opts.verbose&&(n+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "),n+=" } "):n+=" {} ",n+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&u&&(e.async?n+=" throw new ValidationError(vErrors); ":n+=" validate.errors = vErrors; return false; "),n+=" } ",u&&(n+=" else { ")}else u&&(n+=" if (true) { ");return n},items:function(e,t,r){var n=" ",i=e.level,a=e.dataLevel,o=e.schema[t],s=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,u=!e.opts.allErrors,l="data"+(a||""),f="valid"+i,h="errs__"+i,p=e.util.copy(e),d="";p.level++;var m="valid"+p.level,g="i"+i,v=p.dataLevel=e.dataLevel+1,y="data"+v,b=e.baseId;if(n+="var "+h+" = errors;var "+f+";",Array.isArray(o)){var w=e.schema.additionalItems;if(!1===w){n+=" "+f+" = "+l+".length <= "+o.length+"; ";var x=c;c=e.errSchemaPath+"/additionalItems",n+=" if (!"+f+") { ";var k=k||[];k.push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'additionalItems' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { limit: "+o.length+" } ",!1!==e.opts.messages&&(n+=" , message: 'should NOT have more than "+o.length+" items' "),e.opts.verbose&&(n+=" , schema: false , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "),n+=" } "):n+=" {} ";var E=n;n=k.pop(),!e.compositeRule&&u?e.async?n+=" throw new ValidationError(["+E+"]); ":n+=" validate.errors = ["+E+"]; return false; ":n+=" var err = "+E+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" } ",c=x,u&&(d+="}",n+=" else { ")}var S=o;if(S)for(var C,A=-1,P=S.length-1;A<P;)if(C=S[A+=1],e.opts.strictKeywords?"object"==typeof C&&Object.keys(C).length>0||!1===C:e.util.schemaHasRules(C,e.RULES.all)){n+=" "+m+" = true; if ("+l+".length > "+A+") { ";var _=l+"["+A+"]";p.schema=C,p.schemaPath=s+"["+A+"]",p.errSchemaPath=c+"/"+A,p.errorPath=e.util.getPathExpr(e.errorPath,A,e.opts.jsonPointers,!0),p.dataPathArr[v]=A;var F=e.validate(p);p.baseId=b,e.util.varOccurences(F,y)<2?n+=" "+e.util.varReplace(F,y,_)+" ":n+=" var "+y+" = "+_+"; "+F+" ",n+=" } ",u&&(n+=" if ("+m+") { ",d+="}")}if("object"==typeof w&&(e.opts.strictKeywords?"object"==typeof w&&Object.keys(w).length>0||!1===w:e.util.schemaHasRules(w,e.RULES.all))){p.schema=w,p.schemaPath=e.schemaPath+".additionalItems",p.errSchemaPath=e.errSchemaPath+"/additionalItems",n+=" "+m+" = true; if ("+l+".length > "+o.length+") { for (var "+g+" = "+o.length+"; "+g+" < "+l+".length; "+g+"++) { ",p.errorPath=e.util.getPathExpr(e.errorPath,g,e.opts.jsonPointers,!0);_=l+"["+g+"]";p.dataPathArr[v]=g;F=e.validate(p);p.baseId=b,e.util.varOccurences(F,y)<2?n+=" "+e.util.varReplace(F,y,_)+" ":n+=" var "+y+" = "+_+"; "+F+" ",u&&(n+=" if (!"+m+") break; "),n+=" } } ",u&&(n+=" if ("+m+") { ",d+="}")}}else if(e.opts.strictKeywords?"object"==typeof o&&Object.keys(o).length>0||!1===o:e.util.schemaHasRules(o,e.RULES.all)){p.schema=o,p.schemaPath=s,p.errSchemaPath=c,n+=" for (var "+g+" = 0; "+g+" < "+l+".length; "+g+"++) { ",p.errorPath=e.util.getPathExpr(e.errorPath,g,e.opts.jsonPointers,!0);_=l+"["+g+"]";p.dataPathArr[v]=g;F=e.validate(p);p.baseId=b,e.util.varOccurences(F,y)<2?n+=" "+e.util.varReplace(F,y,_)+" ":n+=" var "+y+" = "+_+"; "+F+" ",u&&(n+=" if (!"+m+") break; "),n+=" }"}return u&&(n+=" "+d+" if ("+h+" == errors) {"),n},maximum:Bt,minimum:Bt,maxItems:$t,minItems:$t,maxLength:Ut,minLength:Ut,maxProperties:Vt,minProperties:Vt,multipleOf:function(e,t,r){var n,i=" ",a=e.level,o=e.dataLevel,s=e.schema[t],c=e.schemaPath+e.util.getProperty(t),u=e.errSchemaPath+"/"+t,l=!e.opts.allErrors,f="data"+(o||""),h=e.opts.$data&&s&&s.$data;if(h?(i+=" var schema"+a+" = "+e.util.getData(s.$data,o,e.dataPathArr)+"; ",n="schema"+a):n=s,!h&&"number"!=typeof s)throw new Error(t+" must be number");i+="var division"+a+";if (",h&&(i+=" "+n+" !== undefined && ( typeof "+n+" != 'number' || "),i+=" (division"+a+" = "+f+" / "+n+", ",e.opts.multipleOfPrecision?i+=" Math.abs(Math.round(division"+a+") - division"+a+") > 1e-"+e.opts.multipleOfPrecision+" ":i+=" division"+a+" !== parseInt(division"+a+") ",i+=" ) ",h&&(i+=" ) "),i+=" ) { ";var p=p||[];p.push(i),i="",!1!==e.createErrors?(i+=" { keyword: 'multipleOf' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { multipleOf: "+n+" } ",!1!==e.opts.messages&&(i+=" , message: 'should be multiple of ",i+=h?"' + "+n:n+"'"),e.opts.verbose&&(i+=" , schema: ",i+=h?"validate.schema"+c:""+s,i+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "),i+=" } "):i+=" {} ";var d=i;return i=p.pop(),!e.compositeRule&&l?e.async?i+=" throw new ValidationError(["+d+"]); ":i+=" validate.errors = ["+d+"]; return false; ":i+=" var err = "+d+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+="} ",l&&(i+=" else { "),i},not:function(e,t,r){var n=" ",i=e.level,a=e.dataLevel,o=e.schema[t],s=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,u=!e.opts.allErrors,l="data"+(a||""),f="errs__"+i,h=e.util.copy(e);h.level++;var p="valid"+h.level;if(e.opts.strictKeywords?"object"==typeof o&&Object.keys(o).length>0||!1===o:e.util.schemaHasRules(o,e.RULES.all)){h.schema=o,h.schemaPath=s,h.errSchemaPath=c,n+=" var "+f+" = errors; ";var d,m=e.compositeRule;e.compositeRule=h.compositeRule=!0,h.createErrors=!1,h.opts.allErrors&&(d=h.opts.allErrors,h.opts.allErrors=!1),n+=" "+e.validate(h)+" ",h.createErrors=!0,d&&(h.opts.allErrors=d),e.compositeRule=h.compositeRule=m,n+=" if ("+p+") { ";var g=g||[];g.push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'not' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: {} ",!1!==e.opts.messages&&(n+=" , message: 'should NOT be valid' "),e.opts.verbose&&(n+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "),n+=" } "):n+=" {} ";var v=n;n=g.pop(),!e.compositeRule&&u?e.async?n+=" throw new ValidationError(["+v+"]); ":n+=" validate.errors = ["+v+"]; return false; ":n+=" var err = "+v+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" } else { errors = "+f+"; if (vErrors !== null) { if ("+f+") vErrors.length = "+f+"; else vErrors = null; } ",e.opts.allErrors&&(n+=" } ")}else n+=" var err = ",!1!==e.createErrors?(n+=" { keyword: 'not' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: {} ",!1!==e.opts.messages&&(n+=" , message: 'should NOT be valid' "),e.opts.verbose&&(n+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "),n+=" } "):n+=" {} ",n+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",u&&(n+=" if (false) { ");return n},oneOf:function(e,t,r){var n=" ",i=e.level,a=e.dataLevel,o=e.schema[t],s=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,u=!e.opts.allErrors,l="data"+(a||""),f="valid"+i,h="errs__"+i,p=e.util.copy(e),d="";p.level++;var m="valid"+p.level,g=p.baseId,v="prevValid"+i,y="passingSchemas"+i;n+="var "+h+" = errors , "+v+" = false , "+f+" = false , "+y+" = null; ";var b=e.compositeRule;e.compositeRule=p.compositeRule=!0;var w=o;if(w)for(var x,k=-1,E=w.length-1;k<E;)x=w[k+=1],(e.opts.strictKeywords?"object"==typeof x&&Object.keys(x).length>0||!1===x:e.util.schemaHasRules(x,e.RULES.all))?(p.schema=x,p.schemaPath=s+"["+k+"]",p.errSchemaPath=c+"/"+k,n+=" "+e.validate(p)+" ",p.baseId=g):n+=" var "+m+" = true; ",k&&(n+=" if ("+m+" && "+v+") { "+f+" = false; "+y+" = ["+y+", "+k+"]; } else { ",d+="}"),n+=" if ("+m+") { "+f+" = "+v+" = true; "+y+" = "+k+"; }";return e.compositeRule=p.compositeRule=b,n+=d+"if (!"+f+") { var err = ",!1!==e.createErrors?(n+=" { keyword: 'oneOf' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { passingSchemas: "+y+" } ",!1!==e.opts.messages&&(n+=" , message: 'should match exactly one schema in oneOf' "),e.opts.verbose&&(n+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "),n+=" } "):n+=" {} ",n+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&u&&(e.async?n+=" throw new ValidationError(vErrors); ":n+=" validate.errors = vErrors; return false; "),n+="} else { errors = "+h+"; if (vErrors !== null) { if ("+h+") vErrors.length = "+h+"; else vErrors = null; }",e.opts.allErrors&&(n+=" } "),n},pattern:function(e,t,r){var n,i=" ",a=e.level,o=e.dataLevel,s=e.schema[t],c=e.schemaPath+e.util.getProperty(t),u=e.errSchemaPath+"/"+t,l=!e.opts.allErrors,f="data"+(o||""),h=e.opts.$data&&s&&s.$data;h?(i+=" var schema"+a+" = "+e.util.getData(s.$data,o,e.dataPathArr)+"; ",n="schema"+a):n=s,i+="if ( ",h&&(i+=" ("+n+" !== undefined && typeof "+n+" != 'string') || "),i+=" !"+(h?"(new RegExp("+n+"))":e.usePattern(s))+".test("+f+") ) { ";var p=p||[];p.push(i),i="",!1!==e.createErrors?(i+=" { keyword: 'pattern' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { pattern: ",i+=h?""+n:""+e.util.toQuotedString(s),i+=" } ",!1!==e.opts.messages&&(i+=" , message: 'should match pattern \"",i+=h?"' + "+n+" + '":""+e.util.escapeQuotes(s),i+="\"' "),e.opts.verbose&&(i+=" , schema: ",i+=h?"validate.schema"+c:""+e.util.toQuotedString(s),i+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "),i+=" } "):i+=" {} ";var d=i;return i=p.pop(),!e.compositeRule&&l?e.async?i+=" throw new ValidationError(["+d+"]); ":i+=" validate.errors = ["+d+"]; return false; ":i+=" var err = "+d+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+="} ",l&&(i+=" else { "),i},properties:function(e,t,r){var n=" ",i=e.level,a=e.dataLevel,o=e.schema[t],s=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,u=!e.opts.allErrors,l="data"+(a||""),f="errs__"+i,h=e.util.copy(e),p="";h.level++;var d="valid"+h.level,m="key"+i,g="idx"+i,v=h.dataLevel=e.dataLevel+1,y="data"+v,b="dataProperties"+i,w=Object.keys(o||{}).filter(T),x=e.schema.patternProperties||{},k=Object.keys(x).filter(T),E=e.schema.additionalProperties,S=w.length||k.length,C=!1===E,A="object"==typeof E&&Object.keys(E).length,P=e.opts.removeAdditional,_=C||A||P,F=e.opts.ownProperties,O=e.baseId,D=e.schema.required;if(D&&(!e.opts.$data||!D.$data)&&D.length<e.opts.loopRequired)var I=e.util.toHash(D);function T(e){return"__proto__"!==e}if(n+="var "+f+" = errors;var "+d+" = true;",F&&(n+=" var "+b+" = undefined;"),_){if(n+=F?" "+b+" = "+b+" || Object.keys("+l+"); for (var "+g+"=0; "+g+"<"+b+".length; "+g+"++) { var "+m+" = "+b+"["+g+"]; ":" for (var "+m+" in "+l+") { ",S){if(n+=" var isAdditional"+i+" = !(false ",w.length)if(w.length>8)n+=" || validate.schema"+s+".hasOwnProperty("+m+") ";else{var j=w;if(j)for(var R=-1,L=j.length-1;R<L;)K=j[R+=1],n+=" || "+m+" == "+e.util.toQuotedString(K)+" "}if(k.length){var q=k;if(q)for(var M=-1,N=q.length-1;M<N;)ae=q[M+=1],n+=" || "+e.usePattern(ae)+".test("+m+") "}n+=" ); if (isAdditional"+i+") { "}if("all"==P)n+=" delete "+l+"["+m+"]; ";else{var z=e.errorPath,B="' + "+m+" + '";if(e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPathExpr(e.errorPath,m,e.opts.jsonPointers)),C)if(P)n+=" delete "+l+"["+m+"]; ";else{n+=" "+d+" = false; ";var $=c;c=e.errSchemaPath+"/additionalProperties",(re=re||[]).push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'additionalProperties' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { additionalProperty: '"+B+"' } ",!1!==e.opts.messages&&(n+=" , message: '",e.opts._errorDataPathProperty?n+="is an invalid additional property":n+="should NOT have additional properties",n+="' "),e.opts.verbose&&(n+=" , schema: false , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "),n+=" } "):n+=" {} ";var U=n;n=re.pop(),!e.compositeRule&&u?e.async?n+=" throw new ValidationError(["+U+"]); ":n+=" validate.errors = ["+U+"]; return false; ":n+=" var err = "+U+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",c=$,u&&(n+=" break; ")}else if(A)if("failing"==P){n+=" var "+f+" = errors; ";var V=e.compositeRule;e.compositeRule=h.compositeRule=!0,h.schema=E,h.schemaPath=e.schemaPath+".additionalProperties",h.errSchemaPath=e.errSchemaPath+"/additionalProperties",h.errorPath=e.opts._errorDataPathProperty?e.errorPath:e.util.getPathExpr(e.errorPath,m,e.opts.jsonPointers);var H=l+"["+m+"]";h.dataPathArr[v]=m;var Q=e.validate(h);h.baseId=O,e.util.varOccurences(Q,y)<2?n+=" "+e.util.varReplace(Q,y,H)+" ":n+=" var "+y+" = "+H+"; "+Q+" ",n+=" if (!"+d+") { errors = "+f+"; if (validate.errors !== null) { if (errors) validate.errors.length = errors; else validate.errors = null; } delete "+l+"["+m+"]; } ",e.compositeRule=h.compositeRule=V}else{h.schema=E,h.schemaPath=e.schemaPath+".additionalProperties",h.errSchemaPath=e.errSchemaPath+"/additionalProperties",h.errorPath=e.opts._errorDataPathProperty?e.errorPath:e.util.getPathExpr(e.errorPath,m,e.opts.jsonPointers);H=l+"["+m+"]";h.dataPathArr[v]=m;Q=e.validate(h);h.baseId=O,e.util.varOccurences(Q,y)<2?n+=" "+e.util.varReplace(Q,y,H)+" ":n+=" var "+y+" = "+H+"; "+Q+" ",u&&(n+=" if (!"+d+") break; ")}e.errorPath=z}S&&(n+=" } "),n+=" } ",u&&(n+=" if ("+d+") { ",p+="}")}var G=e.opts.useDefaults&&!e.compositeRule;if(w.length){var W=w;if(W)for(var K,Y=-1,J=W.length-1;Y<J;){var Z=o[K=W[Y+=1]];if(e.opts.strictKeywords?"object"==typeof Z&&Object.keys(Z).length>0||!1===Z:e.util.schemaHasRules(Z,e.RULES.all)){var X=e.util.getProperty(K),ee=(H=l+X,G&&void 0!==Z.default);h.schema=Z,h.schemaPath=s+X,h.errSchemaPath=c+"/"+e.util.escapeFragment(K),h.errorPath=e.util.getPath(e.errorPath,K,e.opts.jsonPointers),h.dataPathArr[v]=e.util.toQuotedString(K);Q=e.validate(h);if(h.baseId=O,e.util.varOccurences(Q,y)<2){Q=e.util.varReplace(Q,y,H);var te=H}else{te=y;n+=" var "+y+" = "+H+"; "}if(ee)n+=" "+Q+" ";else{if(I&&I[K]){n+=" if ( "+te+" === undefined ",F&&(n+=" || ! Object.prototype.hasOwnProperty.call("+l+", '"+e.util.escapeQuotes(K)+"') "),n+=") { "+d+" = false; ";z=e.errorPath,$=c;var re,ne=e.util.escapeQuotes(K);e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPath(z,K,e.opts.jsonPointers)),c=e.errSchemaPath+"/required",(re=re||[]).push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { missingProperty: '"+ne+"' } ",!1!==e.opts.messages&&(n+=" , message: '",e.opts._errorDataPathProperty?n+="is a required property":n+="should have required property \\'"+ne+"\\'",n+="' "),e.opts.verbose&&(n+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "),n+=" } "):n+=" {} ";U=n;n=re.pop(),!e.compositeRule&&u?e.async?n+=" throw new ValidationError(["+U+"]); ":n+=" validate.errors = ["+U+"]; return false; ":n+=" var err = "+U+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",c=$,e.errorPath=z,n+=" } else { "}else u?(n+=" if ( "+te+" === undefined ",F&&(n+=" || ! Object.prototype.hasOwnProperty.call("+l+", '"+e.util.escapeQuotes(K)+"') "),n+=") { "+d+" = true; } else { "):(n+=" if ("+te+" !== undefined ",F&&(n+=" && Object.prototype.hasOwnProperty.call("+l+", '"+e.util.escapeQuotes(K)+"') "),n+=" ) { ");n+=" "+Q+" } "}}u&&(n+=" if ("+d+") { ",p+="}")}}if(k.length){var ie=k;if(ie)for(var ae,oe=-1,se=ie.length-1;oe<se;){Z=x[ae=ie[oe+=1]];if(e.opts.strictKeywords?"object"==typeof Z&&Object.keys(Z).length>0||!1===Z:e.util.schemaHasRules(Z,e.RULES.all)){h.schema=Z,h.schemaPath=e.schemaPath+".patternProperties"+e.util.getProperty(ae),h.errSchemaPath=e.errSchemaPath+"/patternProperties/"+e.util.escapeFragment(ae),n+=F?" "+b+" = "+b+" || Object.keys("+l+"); for (var "+g+"=0; "+g+"<"+b+".length; "+g+"++) { var "+m+" = "+b+"["+g+"]; ":" for (var "+m+" in "+l+") { ",n+=" if ("+e.usePattern(ae)+".test("+m+")) { ",h.errorPath=e.util.getPathExpr(e.errorPath,m,e.opts.jsonPointers);H=l+"["+m+"]";h.dataPathArr[v]=m;Q=e.validate(h);h.baseId=O,e.util.varOccurences(Q,y)<2?n+=" "+e.util.varReplace(Q,y,H)+" ":n+=" var "+y+" = "+H+"; "+Q+" ",u&&(n+=" if (!"+d+") break; "),n+=" } ",u&&(n+=" else "+d+" = true; "),n+=" } ",u&&(n+=" if ("+d+") { ",p+="}")}}}return u&&(n+=" "+p+" if ("+f+" == errors) {"),n},propertyNames:function(e,t,r){var n=" ",i=e.level,a=e.dataLevel,o=e.schema[t],s=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,u=!e.opts.allErrors,l="data"+(a||""),f="errs__"+i,h=e.util.copy(e);h.level++;var p="valid"+h.level;if(n+="var "+f+" = errors;",e.opts.strictKeywords?"object"==typeof o&&Object.keys(o).length>0||!1===o:e.util.schemaHasRules(o,e.RULES.all)){h.schema=o,h.schemaPath=s,h.errSchemaPath=c;var d="key"+i,m="idx"+i,g="i"+i,v="' + "+d+" + '",y="data"+(h.dataLevel=e.dataLevel+1),b="dataProperties"+i,w=e.opts.ownProperties,x=e.baseId;w&&(n+=" var "+b+" = undefined; "),n+=w?" "+b+" = "+b+" || Object.keys("+l+"); for (var "+m+"=0; "+m+"<"+b+".length; "+m+"++) { var "+d+" = "+b+"["+m+"]; ":" for (var "+d+" in "+l+") { ",n+=" var startErrs"+i+" = errors; ";var k=d,E=e.compositeRule;e.compositeRule=h.compositeRule=!0;var S=e.validate(h);h.baseId=x,e.util.varOccurences(S,y)<2?n+=" "+e.util.varReplace(S,y,k)+" ":n+=" var "+y+" = "+k+"; "+S+" ",e.compositeRule=h.compositeRule=E,n+=" if (!"+p+") { for (var "+g+"=startErrs"+i+"; "+g+"<errors; "+g+"++) { vErrors["+g+"].propertyName = "+d+"; } var err = ",!1!==e.createErrors?(n+=" { keyword: 'propertyNames' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { propertyName: '"+v+"' } ",!1!==e.opts.messages&&(n+=" , message: 'property name \\'"+v+"\\' is invalid' "),e.opts.verbose&&(n+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "),n+=" } "):n+=" {} ",n+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&u&&(e.async?n+=" throw new ValidationError(vErrors); ":n+=" validate.errors = vErrors; return false; "),u&&(n+=" break; "),n+=" } }"}return u&&(n+=" if ("+f+" == errors) {"),n},required:function(e,t,r){var n=" ",i=e.level,a=e.dataLevel,o=e.schema[t],s=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,u=!e.opts.allErrors,l="data"+(a||""),f="valid"+i,h=e.opts.$data&&o&&o.$data;h&&(n+=" var schema"+i+" = "+e.util.getData(o.$data,a,e.dataPathArr)+"; ");var p="schema"+i;if(!h)if(o.length<e.opts.loopRequired&&e.schema.properties&&Object.keys(e.schema.properties).length){var d=[],m=o;if(m)for(var g,v=-1,y=m.length-1;v<y;){g=m[v+=1];var b=e.schema.properties[g];b&&(e.opts.strictKeywords?"object"==typeof b&&Object.keys(b).length>0||!1===b:e.util.schemaHasRules(b,e.RULES.all))||(d[d.length]=g)}}else d=o;if(h||d.length){var w=e.errorPath,x=h||d.length>=e.opts.loopRequired,k=e.opts.ownProperties;if(u)if(n+=" var missing"+i+"; ",x){h||(n+=" var "+p+" = validate.schema"+s+"; ");var E="' + "+(F="schema"+i+"["+(A="i"+i)+"]")+" + '";e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPathExpr(w,F,e.opts.jsonPointers)),n+=" var "+f+" = true; ",h&&(n+=" if (schema"+i+" === undefined) "+f+" = true; else if (!Array.isArray(schema"+i+")) "+f+" = false; else {"),n+=" for (var "+A+" = 0; "+A+" < "+p+".length; "+A+"++) { "+f+" = "+l+"["+p+"["+A+"]] !== undefined ",k&&(n+=" && Object.prototype.hasOwnProperty.call("+l+", "+p+"["+A+"]) "),n+="; if (!"+f+") break; } ",h&&(n+=" } "),n+=" if (!"+f+") { ",(_=_||[]).push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { missingProperty: '"+E+"' } ",!1!==e.opts.messages&&(n+=" , message: '",e.opts._errorDataPathProperty?n+="is a required property":n+="should have required property \\'"+E+"\\'",n+="' "),e.opts.verbose&&(n+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "),n+=" } "):n+=" {} ";var S=n;n=_.pop(),!e.compositeRule&&u?e.async?n+=" throw new ValidationError(["+S+"]); ":n+=" validate.errors = ["+S+"]; return false; ":n+=" var err = "+S+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" } else { "}else{n+=" if ( ";var C=d;if(C)for(var A=-1,P=C.length-1;A<P;){D=C[A+=1],A&&(n+=" || "),n+=" ( ( "+(R=l+(j=e.util.getProperty(D)))+" === undefined ",k&&(n+=" || ! Object.prototype.hasOwnProperty.call("+l+", '"+e.util.escapeQuotes(D)+"') "),n+=") && (missing"+i+" = "+e.util.toQuotedString(e.opts.jsonPointers?D:j)+") ) "}n+=") { ";var _;E="' + "+(F="missing"+i)+" + '";e.opts._errorDataPathProperty&&(e.errorPath=e.opts.jsonPointers?e.util.getPathExpr(w,F,!0):w+" + "+F),(_=_||[]).push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { missingProperty: '"+E+"' } ",!1!==e.opts.messages&&(n+=" , message: '",e.opts._errorDataPathProperty?n+="is a required property":n+="should have required property \\'"+E+"\\'",n+="' "),e.opts.verbose&&(n+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "),n+=" } "):n+=" {} ";S=n;n=_.pop(),!e.compositeRule&&u?e.async?n+=" throw new ValidationError(["+S+"]); ":n+=" validate.errors = ["+S+"]; return false; ":n+=" var err = "+S+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" } else { "}else if(x){h||(n+=" var "+p+" = validate.schema"+s+"; ");var F;E="' + "+(F="schema"+i+"["+(A="i"+i)+"]")+" + '";e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPathExpr(w,F,e.opts.jsonPointers)),h&&(n+=" if ("+p+" && !Array.isArray("+p+")) { var err = ",!1!==e.createErrors?(n+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { missingProperty: '"+E+"' } ",!1!==e.opts.messages&&(n+=" , message: '",e.opts._errorDataPathProperty?n+="is a required property":n+="should have required property \\'"+E+"\\'",n+="' "),e.opts.verbose&&(n+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "),n+=" } "):n+=" {} ",n+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } else if ("+p+" !== undefined) { "),n+=" for (var "+A+" = 0; "+A+" < "+p+".length; "+A+"++) { if ("+l+"["+p+"["+A+"]] === undefined ",k&&(n+=" || ! Object.prototype.hasOwnProperty.call("+l+", "+p+"["+A+"]) "),n+=") { var err = ",!1!==e.createErrors?(n+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { missingProperty: '"+E+"' } ",!1!==e.opts.messages&&(n+=" , message: '",e.opts._errorDataPathProperty?n+="is a required property":n+="should have required property \\'"+E+"\\'",n+="' "),e.opts.verbose&&(n+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "),n+=" } "):n+=" {} ",n+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } } ",h&&(n+=" } ")}else{var O=d;if(O)for(var D,I=-1,T=O.length-1;I<T;){D=O[I+=1];var j=e.util.getProperty(D),R=(E=e.util.escapeQuotes(D),l+j);e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPath(w,D,e.opts.jsonPointers)),n+=" if ( "+R+" === undefined ",k&&(n+=" || ! Object.prototype.hasOwnProperty.call("+l+", '"+e.util.escapeQuotes(D)+"') "),n+=") { var err = ",!1!==e.createErrors?(n+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { missingProperty: '"+E+"' } ",!1!==e.opts.messages&&(n+=" , message: '",e.opts._errorDataPathProperty?n+="is a required property":n+="should have required property \\'"+E+"\\'",n+="' "),e.opts.verbose&&(n+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "),n+=" } "):n+=" {} ",n+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } "}}e.errorPath=w}else u&&(n+=" if (true) {");return n},uniqueItems:function(e,t,r){var n,i=" ",a=e.level,o=e.dataLevel,s=e.schema[t],c=e.schemaPath+e.util.getProperty(t),u=e.errSchemaPath+"/"+t,l=!e.opts.allErrors,f="data"+(o||""),h="valid"+a,p=e.opts.$data&&s&&s.$data;if(p?(i+=" var schema"+a+" = "+e.util.getData(s.$data,o,e.dataPathArr)+"; ",n="schema"+a):n=s,(s||p)&&!1!==e.opts.uniqueItems){p&&(i+=" var "+h+"; if ("+n+" === false || "+n+" === undefined) "+h+" = true; else if (typeof "+n+" != 'boolean') "+h+" = false; else { "),i+=" var i = "+f+".length , "+h+" = true , j; if (i > 1) { ";var d=e.schema.items&&e.schema.items.type,m=Array.isArray(d);if(!d||"object"==d||"array"==d||m&&(d.indexOf("object")>=0||d.indexOf("array")>=0))i+=" outer: for (;i--;) { for (j = i; j--;) { if (equal("+f+"[i], "+f+"[j])) { "+h+" = false; break outer; } } } ";else{i+=" var itemIndices = {}, item; for (;i--;) { var item = "+f+"[i]; ";var g="checkDataType"+(m?"s":"");i+=" if ("+e.util[g](d,"item",e.opts.strictNumbers,!0)+") continue; ",m&&(i+=" if (typeof item == 'string') item = '\"' + item; "),i+=" if (typeof itemIndices[item] == 'number') { "+h+" = false; j = itemIndices[item]; break; } itemIndices[item] = i; } "}i+=" } ",p&&(i+=" } "),i+=" if (!"+h+") { ";var v=v||[];v.push(i),i="",!1!==e.createErrors?(i+=" { keyword: 'uniqueItems' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { i: i, j: j } ",!1!==e.opts.messages&&(i+=" , message: 'should NOT have duplicate items (items ## ' + j + ' and ' + i + ' are identical)' "),e.opts.verbose&&(i+=" , schema: ",i+=p?"validate.schema"+c:""+s,i+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "),i+=" } "):i+=" {} ";var y=i;i=v.pop(),!e.compositeRule&&l?e.async?i+=" throw new ValidationError(["+y+"]); ":i+=" validate.errors = ["+y+"]; return false; ":i+=" var err = "+y+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+=" } ",l&&(i+=" else { ")}else l&&(i+=" if (true) { ");return i},validate:tt},Qt=le.toHash,Gt=["multipleOf","maximum","exclusiveMaximum","minimum","exclusiveMinimum","maxLength","minLength","pattern","additionalItems","maxItems","minItems","uniqueItems","maxProperties","minProperties","required","additionalProperties","enum","format","const"],Wt=Je.MissingRef,Kt=function e(t,r,n){var i=this;if("function"!=typeof this._opts.loadSchema)throw new Error("options.loadSchema should be a function");"function"==typeof r&&(n=r,r=void 0);var a=o(t).then((function(){var e=i._addSchema(t,void 0,r);return e.validate||s(e)}));n&&a.then((function(e){n(null,e)}),n);return a;function o(t){var r=t.$schema;return r&&!i.getSchema(r)?e.call(i,{$ref:r},!0):Promise.resolve()}function s(e){try{return i._compile(e)}catch(t){if(t instanceof Wt)return function(t){var n=t.missingSchema;if(u(n))throw new Error("Schema "+n+" is loaded but "+t.missingRef+" cannot be resolved");var a=i._loadingSchemas[n];a||(a=i._loadingSchemas[n]=i._opts.loadSchema(n)).then(c,c);return a.then((function(e){if(!u(n))return o(e).then((function(){u(n)||i.addSchema(e,n,void 0,r)}))})).then((function(){return s(e)}));function c(){delete i._loadingSchemas[n]}function u(e){return i._refs[e]||i._schemas[e]}}(t);throw t}}};var Yt={$schema:"http://json-schema.org/draft-07/schema#",$id:"http://json-schema.org/draft-07/schema#",title:"Core schema meta-schema",definitions:{schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{allOf:[{$ref:"#/definitions/nonNegativeInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}},type:["object","boolean"],properties:{$id:{type:"string",format:"uri-reference"},$schema:{type:"string",format:"uri"},$ref:{type:"string",format:"uri-reference"},$comment:{type:"string"},title:{type:"string"},description:{type:"string"},default:!0,readOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/definitions/nonNegativeInteger"},minLength:{$ref:"#/definitions/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{$ref:"#"},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:!0},maxItems:{$ref:"#/definitions/nonNegativeInteger"},minItems:{$ref:"#/definitions/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},contains:{$ref:"#"},maxProperties:{$ref:"#/definitions/nonNegativeInteger"},minProperties:{$ref:"#/definitions/nonNegativeIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{$ref:"#"},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},propertyNames:{format:"regex"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},propertyNames:{$ref:"#"},const:!0,enum:{type:"array",items:!0,minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{type:"string"},contentMediaType:{type:"string"},contentEncoding:{type:"string"},if:{$ref:"#"},then:{$ref:"#"},else:{$ref:"#"},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},default:!0},Jt=Yt,Zt={$id:"https://github.com/ajv-validator/ajv/blob/master/lib/definition_schema.js",definitions:{simpleTypes:Jt.definitions.simpleTypes},type:"object",dependencies:{schema:["validate"],$data:["validate"],statements:["inline"],valid:{not:{required:["macro"]}}},properties:{type:Jt.properties.type,schema:{type:"boolean"},statements:{type:"boolean"},dependencies:{type:"array",items:{type:"string"}},metaSchema:{type:"object"},modifying:{type:"boolean"},valid:{type:"boolean"},$data:{type:"boolean"},async:{type:"boolean"},errors:{anyOf:[{type:"boolean"},{const:"full"}]}}},Xt=/^[a-z_$][a-z0-9_$-]*$/i,er=function(e,t,r){var n,i,a=" ",o=e.level,s=e.dataLevel,c=e.schema[t],u=e.schemaPath+e.util.getProperty(t),l=e.errSchemaPath+"/"+t,f=!e.opts.allErrors,h="data"+(s||""),p="valid"+o,d="errs__"+o,m=e.opts.$data&&c&&c.$data;m?(a+=" var schema"+o+" = "+e.util.getData(c.$data,s,e.dataPathArr)+"; ",i="schema"+o):i=c;var g,v,y,b,w,x=this,k="definition"+o,E=x.definition,S="";if(m&&E.$data){w="keywordValidate"+o;var C=E.validateSchema;a+=" var "+k+" = RULES.custom['"+t+"'].definition; var "+w+" = "+k+".validate;"}else{if(!(b=e.useCustomRule(x,c,e.schema,e)))return;i="validate.schema"+u,w=b.code,g=E.compile,v=E.inline,y=E.macro}var A=w+".errors",P="i"+o,_="ruleErr"+o,F=E.async;if(F&&!e.async)throw new Error("async keyword in sync schema");if(v||y||(a+=A+" = null;"),a+="var "+d+" = errors;var "+p+";",m&&E.$data&&(S+="}",a+=" if ("+i+" === undefined) { "+p+" = true; } else { ",C&&(S+="}",a+=" "+p+" = "+k+".validateSchema("+i+"); if ("+p+") { ")),v)E.statements?a+=" "+b.validate+" ":a+=" "+p+" = "+b.validate+"; ";else if(y){var O=e.util.copy(e);S="";O.level++;var D="valid"+O.level;O.schema=b.validate,O.schemaPath="";var I=e.compositeRule;e.compositeRule=O.compositeRule=!0;var T=e.validate(O).replace(/validate\.schema/g,w);e.compositeRule=O.compositeRule=I,a+=" "+T}else{(q=q||[]).push(a),a="",a+=" "+w+".call( ",e.opts.passContext?a+="this":a+="self",g||!1===E.schema?a+=" , "+h+" ":a+=" , "+i+" , "+h+" , validate.schema"+e.schemaPath+" ",a+=" , (dataPath || '')",'""'!=e.errorPath&&(a+=" + "+e.errorPath);var j=s?"data"+(s-1||""):"parentData",R=s?e.dataPathArr[s]:"parentDataProperty",L=a+=" , "+j+" , "+R+" , rootData ) ";a=q.pop(),!1===E.errors?(a+=" "+p+" = ",F&&(a+="await "),a+=L+"; "):a+=F?" var "+(A="customErrors"+o)+" = null; try { "+p+" = await "+L+"; } catch (e) { "+p+" = false; if (e instanceof ValidationError) "+A+" = e.errors; else throw e; } ":" "+A+" = null; "+p+" = "+L+"; "}if(E.modifying&&(a+=" if ("+j+") "+h+" = "+j+"["+R+"];"),a+=""+S,E.valid)f&&(a+=" if (true) { ");else{var q;a+=" if ( ",void 0===E.valid?(a+=" !",a+=y?""+D:""+p):a+=" "+!E.valid+" ",a+=") { ",n=x.keyword,(q=q||[]).push(a),a="",(q=q||[]).push(a),a="",!1!==e.createErrors?(a+=" { keyword: '"+(n||"custom")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { keyword: '"+x.keyword+"' } ",!1!==e.opts.messages&&(a+=" , message: 'should pass \""+x.keyword+"\" keyword validation' "),e.opts.verbose&&(a+=" , schema: validate.schema"+u+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+h+" "),a+=" } "):a+=" {} ";var M=a;a=q.pop(),!e.compositeRule&&f?e.async?a+=" throw new ValidationError(["+M+"]); ":a+=" validate.errors = ["+M+"]; return false; ":a+=" var err = "+M+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ";var N=a;a=q.pop(),v?E.errors?"full"!=E.errors&&(a+=" for (var "+P+"="+d+"; "+P+"<errors; "+P+"++) { var "+_+" = vErrors["+P+"]; if ("+_+".dataPath === undefined) "+_+".dataPath = (dataPath || '') + "+e.errorPath+"; if ("+_+".schemaPath === undefined) { "+_+'.schemaPath = "'+l+'"; } ',e.opts.verbose&&(a+=" "+_+".schema = "+i+"; "+_+".data = "+h+"; "),a+=" } "):!1===E.errors?a+=" "+N+" ":(a+=" if ("+d+" == errors) { "+N+" } else { for (var "+P+"="+d+"; "+P+"<errors; "+P+"++) { var "+_+" = vErrors["+P+"]; if ("+_+".dataPath === undefined) "+_+".dataPath = (dataPath || '') + "+e.errorPath+"; if ("+_+".schemaPath === undefined) { "+_+'.schemaPath = "'+l+'"; } ',e.opts.verbose&&(a+=" "+_+".schema = "+i+"; "+_+".data = "+h+"; "),a+=" } } "):y?(a+=" var err = ",!1!==e.createErrors?(a+=" { keyword: '"+(n||"custom")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { keyword: '"+x.keyword+"' } ",!1!==e.opts.messages&&(a+=" , message: 'should pass \""+x.keyword+"\" keyword validation' "),e.opts.verbose&&(a+=" , schema: validate.schema"+u+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+h+" "),a+=" } "):a+=" {} ",a+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&f&&(e.async?a+=" throw new ValidationError(vErrors); ":a+=" validate.errors = vErrors; return false; ")):!1===E.errors?a+=" "+N+" ":(a+=" if (Array.isArray("+A+")) { if (vErrors === null) vErrors = "+A+"; else vErrors = vErrors.concat("+A+"); errors = vErrors.length; for (var "+P+"="+d+"; "+P+"<errors; "+P+"++) { var "+_+" = vErrors["+P+"]; if ("+_+".dataPath === undefined) "+_+".dataPath = (dataPath || '') + "+e.errorPath+"; "+_+'.schemaPath = "'+l+'"; ',e.opts.verbose&&(a+=" "+_+".schema = "+i+"; "+_+".data = "+h+"; "),a+=" } } else { "+N+" } "),a+=" } ",f&&(a+=" else { ")}return a},tr=Zt,rr={add:function(e,t){var r=this.RULES;if(r.keywords[e])throw new Error("Keyword "+e+" is already defined");if(!Xt.test(e))throw new Error("Keyword "+e+" is not a valid identifier");if(t){this.validateKeyword(t,!0);var n=t.type;if(Array.isArray(n))for(var i=0;i<n.length;i++)o(e,n[i],t);else o(e,n,t);var a=t.metaSchema;a&&(t.$data&&this._opts.$data&&(a={anyOf:[a,{$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"}]}),t.validateSchema=this.compile(a,!0))}function o(e,t,n){for(var i,a=0;a<r.length;a++){var o=r[a];if(o.type==t){i=o;break}}i||(i={type:t,rules:[]},r.push(i));var s={keyword:e,definition:n,custom:!0,code:er,implements:n.implements};i.rules.push(s),r.custom[e]=s}return r.keywords[e]=r.all[e]=!0,this},get:function(e){var t=this.RULES.custom[e];return t?t.definition:this.RULES.keywords[e]||!1},remove:function(e){var t=this.RULES;delete t.keywords[e],delete t.all[e],delete t.custom[e];for(var r=0;r<t.length;r++)for(var n=t[r].rules,i=0;i<n.length;i++)if(n[i].keyword==e){n.splice(i,1);break}return this},validate:function e(t,r){e.errors=null;var n=this._validateKeyword=this._validateKeyword||this.compile(tr,!0);if(n(t))return!0;if(e.errors=n.errors,r)throw new Error("custom keyword definition is invalid: "+this.errorsText(n.errors));return!1}};var nr={$schema:"http://json-schema.org/draft-07/schema#",$id:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",description:"Meta-schema for $data reference (JSON Schema extension proposal)",type:"object",required:["$data"],properties:{$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},additionalProperties:!1},ir=lt,ar=Re,or=bt.exports,sr=Ce,cr=et,ur=Tt,lr=function(){var e=[{type:"number",rules:[{maximum:["exclusiveMaximum"]},{minimum:["exclusiveMinimum"]},"multipleOf","format"]},{type:"string",rules:["maxLength","minLength","pattern","format"]},{type:"array",rules:["maxItems","minItems","items","contains","uniqueItems"]},{type:"object",rules:["maxProperties","minProperties","required","dependencies","propertyNames",{properties:["additionalProperties","patternProperties"]}]},{rules:["$ref","const","enum","not","anyOf","oneOf","allOf","if"]}],t=["type","$comment"];return e.all=Qt(t),e.types=Qt(["number","integer","string","array","object","boolean","null"]),e.forEach((function(r){r.rules=r.rules.map((function(r){var n;if("object"==typeof r){var i=Object.keys(r)[0];n=r[i],r=i,n.forEach((function(r){t.push(r),e.all[r]=!0}))}return t.push(r),e.all[r]={keyword:r,code:Ht[r],implements:n}})),e.all.$comment={keyword:"$comment",code:Ht.$comment},r.type&&(e.types[r.type]=r)})),e.keywords=Qt(t.concat(["$schema","$id","id","$data","$async","title","description","default","definitions","examples","readOnly","writeOnly","contentMediaType","contentEncoding","additionalItems","then","else"])),e.custom={},e},fr=function(e,t){for(var r=0;r<t.length;r++){e=JSON.parse(JSON.stringify(e));var n,i=t[r].split("/"),a=e;for(n=1;n<i.length;n++)a=a[i[n]];for(n=0;n<Gt.length;n++){var o=Gt[n],s=a[o];s&&(a[o]={anyOf:[s,{$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"}]})}}return e},hr=le,pr=br;br.prototype.validate=function(e,t){var r;if("string"==typeof e){if(!(r=this.getSchema(e)))throw new Error('no schema with key or ref "'+e+'"')}else{var n=this._addSchema(e);r=n.validate||this._compile(n)}var i=r(t);!0!==r.$async&&(this.errors=r.errors);return i},br.prototype.compile=function(e,t){var r=this._addSchema(e,void 0,t);return r.validate||this._compile(r)},br.prototype.addSchema=function(e,t,r,n){if(Array.isArray(e)){for(var i=0;i<e.length;i++)this.addSchema(e[i],void 0,r,n);return this}var a=this._getId(e);if(void 0!==a&&"string"!=typeof a)throw new Error("schema id must be string");return Cr(this,t=ar.normalizeId(t||a)),this._schemas[t]=this._addSchema(e,r,n,!0),this},br.prototype.addMetaSchema=function(e,t,r){return this.addSchema(e,t,r,!0),this},br.prototype.validateSchema=function(e,t){var r=e.$schema;if(void 0!==r&&"string"!=typeof r)throw new Error("$schema must be a string");if(!(r=r||this._opts.defaultMeta||function(e){var t=e._opts.meta;return e._opts.defaultMeta="object"==typeof t?e._getId(t)||t:e.getSchema(gr)?gr:void 0,e._opts.defaultMeta}(this)))return this.logger.warn("meta-schema not available"),this.errors=null,!0;var n=this.validate(r,e);if(!n&&t){var i="schema is invalid: "+this.errorsText();if("log"!=this._opts.validateSchema)throw new Error(i);this.logger.error(i)}return n},br.prototype.getSchema=function(e){var t=wr(this,e);switch(typeof t){case"object":return t.validate||this._compile(t);case"string":return this.getSchema(t);case"undefined":return function(e,t){var r=ar.schema.call(e,{schema:{}},t);if(r){var n=r.schema,i=r.root,a=r.baseId,o=ir.call(e,n,i,void 0,a);return e._fragments[t]=new sr({ref:t,fragment:!0,schema:n,root:i,baseId:a,validate:o}),o}}(this,e)}},br.prototype.removeSchema=function(e){if(e instanceof RegExp)return xr(this,this._schemas,e),xr(this,this._refs,e),this;switch(typeof e){case"undefined":return xr(this,this._schemas),xr(this,this._refs),this._cache.clear(),this;case"string":var t=wr(this,e);return t&&this._cache.del(t.cacheKey),delete this._schemas[e],delete this._refs[e],this;case"object":var r=this._opts.serialize,n=r?r(e):e;this._cache.del(n);var i=this._getId(e);i&&(i=ar.normalizeId(i),delete this._schemas[i],delete this._refs[i])}return this},br.prototype.addFormat=function(e,t){"string"==typeof t&&(t=new RegExp(t));return this._formats[e]=t,this},br.prototype.errorsText=function(e,t){if(!(e=e||this.errors))return"No errors";for(var r=void 0===(t=t||{}).separator?", ":t.separator,n=void 0===t.dataVar?"data":t.dataVar,i="",a=0;a<e.length;a++){var o=e[a];o&&(i+=n+o.dataPath+" "+o.message+r)}return i.slice(0,-r.length)},br.prototype._addSchema=function(e,t,r,n){if("object"!=typeof e&&"boolean"!=typeof e)throw new Error("schema should be object or boolean");var i=this._opts.serialize,a=i?i(e):e,o=this._cache.get(a);if(o)return o;n=n||!1!==this._opts.addUsedSchema;var s=ar.normalizeId(this._getId(e));s&&n&&Cr(this,s);var c,u=!1!==this._opts.validateSchema&&!t;u&&!(c=s&&s==ar.normalizeId(e.$schema))&&this.validateSchema(e,!0);var l=ar.ids.call(this,e),f=new sr({id:s,schema:e,localRefs:l,cacheKey:a,meta:r});"#"!=s[0]&&n&&(this._refs[s]=f);this._cache.put(a,f),u&&c&&this.validateSchema(e,!0);return f},br.prototype._compile=function(e,t){if(e.compiling)return e.validate=i,i.schema=e.schema,i.errors=null,i.root=t||i,!0===e.schema.$async&&(i.$async=!0),i;var r,n;e.compiling=!0,e.meta&&(r=this._opts,this._opts=this._metaOpts);try{n=ir.call(this,e.schema,t,e.localRefs)}catch(t){throw delete e.validate,t}finally{e.compiling=!1,e.meta&&(this._opts=r)}return e.validate=n,e.refs=n.refs,e.refVal=n.refVal,e.root=n.root,n;function i(){var t=e.validate,r=t.apply(this,arguments);return i.errors=t.errors,r}},br.prototype.compileAsync=Kt;var dr=rr;br.prototype.addKeyword=dr.add,br.prototype.getKeyword=dr.get,br.prototype.removeKeyword=dr.remove,br.prototype.validateKeyword=dr.validate;var mr=Je;br.ValidationError=mr.Validation,br.MissingRefError=mr.MissingRef,br.$dataMetaSchema=fr;var gr="http://json-schema.org/draft-07/schema",vr=["removeAdditional","useDefaults","coerceTypes","strictDefaults"],yr=["/properties"];function br(e){if(!(this instanceof br))return new br(e);e=this._opts=hr.copy(e)||{},function(e){var t=e._opts.logger;if(!1===t)e.logger={log:Ar,warn:Ar,error:Ar};else{if(void 0===t&&(t=console),!("object"==typeof t&&t.log&&t.warn&&t.error))throw new Error("logger must implement log, warn and error methods");e.logger=t}}(this),this._schemas={},this._refs={},this._fragments={},this._formats=ur(e.format),this._cache=e.cache||new or,this._loadingSchemas={},this._compilations=[],this.RULES=lr(),this._getId=function(e){switch(e.schemaId){case"auto":return Sr;case"id":return kr;default:return Er}}(e),e.loopRequired=e.loopRequired||1/0,"property"==e.errorDataPath&&(e._errorDataPathProperty=!0),void 0===e.serialize&&(e.serialize=cr),this._metaOpts=function(e){for(var t=hr.copy(e._opts),r=0;r<vr.length;r++)delete t[vr[r]];return t}(this),e.formats&&function(e){for(var t in e._opts.formats){var r=e._opts.formats[t];e.addFormat(t,r)}}(this),e.keywords&&function(e){for(var t in e._opts.keywords){var r=e._opts.keywords[t];e.addKeyword(t,r)}}(this),function(e){var t;e._opts.$data&&(t=nr,e.addMetaSchema(t,t.$id,!0));if(!1===e._opts.meta)return;var r=Yt;e._opts.$data&&(r=fr(r,yr));e.addMetaSchema(r,gr,!0),e._refs["http://json-schema.org/schema"]=gr}(this),"object"==typeof e.meta&&this.addMetaSchema(e.meta),e.nullable&&this.addKeyword("nullable",{metaSchema:{type:"boolean"}}),function(e){var t=e._opts.schemas;if(!t)return;if(Array.isArray(t))e.addSchema(t);else for(var r in t)e.addSchema(t[r],r)}(this)}function wr(e,t){return t=ar.normalizeId(t),e._schemas[t]||e._refs[t]||e._fragments[t]}function xr(e,t,r){for(var n in t){var i=t[n];i.meta||r&&!r.test(n)||(e._cache.del(i.cacheKey),delete t[n])}}function kr(e){return e.$id&&this.logger.warn("schema $id ignored",e.$id),e.id}function Er(e){return e.id&&this.logger.warn("schema id ignored",e.id),e.$id}function Sr(e){if(e.$id&&e.id&&e.$id!=e.id)throw new Error("schema $id is different from id");return e.$id||e.id}function Cr(e,t){if(e._schemas[t]||e._refs[t])throw new Error('schema with key or id "'+t+'" already exists')}function Ar(){}var Pr,_r={exports:{}},Fr={exports:{}};Fr.exports=Pr=Pr||function(e,t){var r;if("undefined"!=typeof window&&window.crypto&&(r=window.crypto),"undefined"!=typeof self&&self.crypto&&(r=self.crypto),"undefined"!=typeof globalThis&&globalThis.crypto&&(r=globalThis.crypto),!r&&"undefined"!=typeof window&&window.msCrypto&&(r=window.msCrypto),!r&&void 0!==ie&&ie.crypto&&(r=ie.crypto),!r)try{r=L.default}catch(e){}var n=function(){if(r){if("function"==typeof r.getRandomValues)try{return r.getRandomValues(new Uint32Array(1))[0]}catch(e){}if("function"==typeof r.randomBytes)try{return r.randomBytes(4).readInt32LE()}catch(e){}}throw new Error("Native crypto module could not be used to get secure random number.")},i=Object.create||function(){function e(){}return function(t){var r;return e.prototype=t,r=new e,e.prototype=null,r}}(),a={},o=a.lib={},s=o.Base={extend:function(e){var t=i(this);return e&&t.mixIn(e),t.hasOwnProperty("init")&&this.init!==t.init||(t.init=function(){t.$super.init.apply(this,arguments)}),t.init.prototype=t,t.$super=this,t},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);e.hasOwnProperty("toString")&&(this.toString=e.toString)},clone:function(){return this.init.prototype.extend(this)}},c=o.WordArray=s.extend({init:function(e,r){e=this.words=e||[],this.sigBytes=r!=t?r:4*e.length},toString:function(e){return(e||l).stringify(this)},concat:function(e){var t=this.words,r=e.words,n=this.sigBytes,i=e.sigBytes;if(this.clamp(),n%4)for(var a=0;a<i;a++){var o=r[a>>>2]>>>24-a%4*8&255;t[n+a>>>2]|=o<<24-(n+a)%4*8}else for(var s=0;s<i;s+=4)t[n+s>>>2]=r[s>>>2];return this.sigBytes+=i,this},clamp:function(){var t=this.words,r=this.sigBytes;t[r>>>2]&=4294967295<<32-r%4*8,t.length=e.ceil(r/4)},clone:function(){var e=s.clone.call(this);return e.words=this.words.slice(0),e},random:function(e){for(var t=[],r=0;r<e;r+=4)t.push(n());return new c.init(t,e)}}),u=a.enc={},l=u.Hex={stringify:function(e){for(var t=e.words,r=e.sigBytes,n=[],i=0;i<r;i++){var a=t[i>>>2]>>>24-i%4*8&255;n.push((a>>>4).toString(16)),n.push((15&a).toString(16))}return n.join("")},parse:function(e){for(var t=e.length,r=[],n=0;n<t;n+=2)r[n>>>3]|=parseInt(e.substr(n,2),16)<<24-n%8*4;return new c.init(r,t/2)}},f=u.Latin1={stringify:function(e){for(var t=e.words,r=e.sigBytes,n=[],i=0;i<r;i++){var a=t[i>>>2]>>>24-i%4*8&255;n.push(String.fromCharCode(a))}return n.join("")},parse:function(e){for(var t=e.length,r=[],n=0;n<t;n++)r[n>>>2]|=(255&e.charCodeAt(n))<<24-n%4*8;return new c.init(r,t)}},h=u.Utf8={stringify:function(e){try{return decodeURIComponent(escape(f.stringify(e)))}catch(e){throw new Error("Malformed UTF-8 data")}},parse:function(e){return f.parse(unescape(encodeURIComponent(e)))}},p=o.BufferedBlockAlgorithm=s.extend({reset:function(){this._data=new c.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=h.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var r,n=this._data,i=n.words,a=n.sigBytes,o=this.blockSize,s=a/(4*o),u=(s=t?e.ceil(s):e.max((0|s)-this._minBufferSize,0))*o,l=e.min(4*u,a);if(u){for(var f=0;f<u;f+=o)this._doProcessBlock(i,f);r=i.splice(0,u),n.sigBytes-=l}return new c.init(r,l)},clone:function(){var e=s.clone.call(this);return e._data=this._data.clone(),e},_minBufferSize:0});o.Hasher=p.extend({cfg:s.extend(),init:function(e){this.cfg=this.cfg.extend(e),this.reset()},reset:function(){p.reset.call(this),this._doReset()},update:function(e){return this._append(e),this._process(),this},finalize:function(e){return e&&this._append(e),this._doFinalize()},blockSize:16,_createHelper:function(e){return function(t,r){return new e.init(r).finalize(t)}},_createHmacHelper:function(e){return function(t,r){return new d.HMAC.init(e,r).finalize(t)}}});var d=a.algo={};return a}(Math);var Or={exports:{}};Or.exports=function(e){return function(){var t=e,r=t.lib.WordArray;function n(e,t,n){for(var i=[],a=0,o=0;o<t;o++)if(o%4){var s=n[e.charCodeAt(o-1)]<<o%4*2|n[e.charCodeAt(o)]>>>6-o%4*2;i[a>>>2]|=s<<24-a%4*8,a++}return r.create(i,a)}t.enc.Base64={stringify:function(e){var t=e.words,r=e.sigBytes,n=this._map;e.clamp();for(var i=[],a=0;a<r;a+=3)for(var o=(t[a>>>2]>>>24-a%4*8&255)<<16|(t[a+1>>>2]>>>24-(a+1)%4*8&255)<<8|t[a+2>>>2]>>>24-(a+2)%4*8&255,s=0;s<4&&a+.75*s<r;s++)i.push(n.charAt(o>>>6*(3-s)&63));var c=n.charAt(64);if(c)for(;i.length%4;)i.push(c);return i.join("")},parse:function(e){var t=e.length,r=this._map,i=this._reverseMap;if(!i){i=this._reverseMap=[];for(var a=0;a<r.length;a++)i[r.charCodeAt(a)]=a}var o=r.charAt(64);if(o){var s=e.indexOf(o);-1!==s&&(t=s)}return n(e,t,i)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}}(),e.enc.Base64}(Fr.exports);var Dr={exports:{}};Dr.exports=function(e){return function(t){var r=e,n=r.lib,i=n.WordArray,a=n.Hasher,o=r.algo,s=[];!function(){for(var e=0;e<64;e++)s[e]=4294967296*t.abs(t.sin(e+1))|0}();var c=o.MD5=a.extend({_doReset:function(){this._hash=new i.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(e,t){for(var r=0;r<16;r++){var n=t+r,i=e[n];e[n]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8)}var a=this._hash.words,o=e[t+0],c=e[t+1],p=e[t+2],d=e[t+3],m=e[t+4],g=e[t+5],v=e[t+6],y=e[t+7],b=e[t+8],w=e[t+9],x=e[t+10],k=e[t+11],E=e[t+12],S=e[t+13],C=e[t+14],A=e[t+15],P=a[0],_=a[1],F=a[2],O=a[3];P=u(P,_,F,O,o,7,s[0]),O=u(O,P,_,F,c,12,s[1]),F=u(F,O,P,_,p,17,s[2]),_=u(_,F,O,P,d,22,s[3]),P=u(P,_,F,O,m,7,s[4]),O=u(O,P,_,F,g,12,s[5]),F=u(F,O,P,_,v,17,s[6]),_=u(_,F,O,P,y,22,s[7]),P=u(P,_,F,O,b,7,s[8]),O=u(O,P,_,F,w,12,s[9]),F=u(F,O,P,_,x,17,s[10]),_=u(_,F,O,P,k,22,s[11]),P=u(P,_,F,O,E,7,s[12]),O=u(O,P,_,F,S,12,s[13]),F=u(F,O,P,_,C,17,s[14]),P=l(P,_=u(_,F,O,P,A,22,s[15]),F,O,c,5,s[16]),O=l(O,P,_,F,v,9,s[17]),F=l(F,O,P,_,k,14,s[18]),_=l(_,F,O,P,o,20,s[19]),P=l(P,_,F,O,g,5,s[20]),O=l(O,P,_,F,x,9,s[21]),F=l(F,O,P,_,A,14,s[22]),_=l(_,F,O,P,m,20,s[23]),P=l(P,_,F,O,w,5,s[24]),O=l(O,P,_,F,C,9,s[25]),F=l(F,O,P,_,d,14,s[26]),_=l(_,F,O,P,b,20,s[27]),P=l(P,_,F,O,S,5,s[28]),O=l(O,P,_,F,p,9,s[29]),F=l(F,O,P,_,y,14,s[30]),P=f(P,_=l(_,F,O,P,E,20,s[31]),F,O,g,4,s[32]),O=f(O,P,_,F,b,11,s[33]),F=f(F,O,P,_,k,16,s[34]),_=f(_,F,O,P,C,23,s[35]),P=f(P,_,F,O,c,4,s[36]),O=f(O,P,_,F,m,11,s[37]),F=f(F,O,P,_,y,16,s[38]),_=f(_,F,O,P,x,23,s[39]),P=f(P,_,F,O,S,4,s[40]),O=f(O,P,_,F,o,11,s[41]),F=f(F,O,P,_,d,16,s[42]),_=f(_,F,O,P,v,23,s[43]),P=f(P,_,F,O,w,4,s[44]),O=f(O,P,_,F,E,11,s[45]),F=f(F,O,P,_,A,16,s[46]),P=h(P,_=f(_,F,O,P,p,23,s[47]),F,O,o,6,s[48]),O=h(O,P,_,F,y,10,s[49]),F=h(F,O,P,_,C,15,s[50]),_=h(_,F,O,P,g,21,s[51]),P=h(P,_,F,O,E,6,s[52]),O=h(O,P,_,F,d,10,s[53]),F=h(F,O,P,_,x,15,s[54]),_=h(_,F,O,P,c,21,s[55]),P=h(P,_,F,O,b,6,s[56]),O=h(O,P,_,F,A,10,s[57]),F=h(F,O,P,_,v,15,s[58]),_=h(_,F,O,P,S,21,s[59]),P=h(P,_,F,O,m,6,s[60]),O=h(O,P,_,F,k,10,s[61]),F=h(F,O,P,_,p,15,s[62]),_=h(_,F,O,P,w,21,s[63]),a[0]=a[0]+P|0,a[1]=a[1]+_|0,a[2]=a[2]+F|0,a[3]=a[3]+O|0},_doFinalize:function(){var e=this._data,r=e.words,n=8*this._nDataBytes,i=8*e.sigBytes;r[i>>>5]|=128<<24-i%32;var a=t.floor(n/4294967296),o=n;r[15+(i+64>>>9<<4)]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),r[14+(i+64>>>9<<4)]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),e.sigBytes=4*(r.length+1),this._process();for(var s=this._hash,c=s.words,u=0;u<4;u++){var l=c[u];c[u]=16711935&(l<<8|l>>>24)|4278255360&(l<<24|l>>>8)}return s},clone:function(){var e=a.clone.call(this);return e._hash=this._hash.clone(),e}});function u(e,t,r,n,i,a,o){var s=e+(t&r|~t&n)+i+o;return(s<<a|s>>>32-a)+t}function l(e,t,r,n,i,a,o){var s=e+(t&n|r&~n)+i+o;return(s<<a|s>>>32-a)+t}function f(e,t,r,n,i,a,o){var s=e+(t^r^n)+i+o;return(s<<a|s>>>32-a)+t}function h(e,t,r,n,i,a,o){var s=e+(r^(t|~n))+i+o;return(s<<a|s>>>32-a)+t}r.MD5=a._createHelper(c),r.HmacMD5=a._createHmacHelper(c)}(Math),e.MD5}(Fr.exports);var Ir={exports:{}},Tr={exports:{}};Tr.exports=function(e){return r=(t=e).lib,n=r.WordArray,i=r.Hasher,a=t.algo,o=[],s=a.SHA1=i.extend({_doReset:function(){this._hash=new n.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var r=this._hash.words,n=r[0],i=r[1],a=r[2],s=r[3],c=r[4],u=0;u<80;u++){if(u<16)o[u]=0|e[t+u];else{var l=o[u-3]^o[u-8]^o[u-14]^o[u-16];o[u]=l<<1|l>>>31}var f=(n<<5|n>>>27)+c+o[u];f+=u<20?1518500249+(i&a|~i&s):u<40?1859775393+(i^a^s):u<60?(i&a|i&s|a&s)-1894007588:(i^a^s)-899497514,c=s,s=a,a=i<<30|i>>>2,i=n,n=f}r[0]=r[0]+n|0,r[1]=r[1]+i|0,r[2]=r[2]+a|0,r[3]=r[3]+s|0,r[4]=r[4]+c|0},_doFinalize:function(){var e=this._data,t=e.words,r=8*this._nDataBytes,n=8*e.sigBytes;return t[n>>>5]|=128<<24-n%32,t[14+(n+64>>>9<<4)]=Math.floor(r/4294967296),t[15+(n+64>>>9<<4)]=r,e.sigBytes=4*t.length,this._process(),this._hash},clone:function(){var e=i.clone.call(this);return e._hash=this._hash.clone(),e}}),t.SHA1=i._createHelper(s),t.HmacSHA1=i._createHmacHelper(s),e.SHA1;var t,r,n,i,a,o,s}(Fr.exports);var jr={exports:{}};jr.exports=function(e){var t,r,n;r=(t=e).lib.Base,n=t.enc.Utf8,t.algo.HMAC=r.extend({init:function(e,t){e=this._hasher=new e.init,"string"==typeof t&&(t=n.parse(t));var r=e.blockSize,i=4*r;t.sigBytes>i&&(t=e.finalize(t)),t.clamp();for(var a=this._oKey=t.clone(),o=this._iKey=t.clone(),s=a.words,c=o.words,u=0;u<r;u++)s[u]^=1549556828,c[u]^=909522486;a.sigBytes=o.sigBytes=i,this.reset()},reset:function(){var e=this._hasher;e.reset(),e.update(this._iKey)},update:function(e){return this._hasher.update(e),this},finalize:function(e){var t=this._hasher,r=t.finalize(e);return t.reset(),t.finalize(this._oKey.clone().concat(r))}})}(Fr.exports),Ir.exports=function(e){return r=(t=e).lib,n=r.Base,i=r.WordArray,a=t.algo,o=a.MD5,s=a.EvpKDF=n.extend({cfg:n.extend({keySize:4,hasher:o,iterations:1}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){for(var r,n=this.cfg,a=n.hasher.create(),o=i.create(),s=o.words,c=n.keySize,u=n.iterations;s.length<c;){r&&a.update(r),r=a.update(e).finalize(t),a.reset();for(var l=1;l<u;l++)r=a.finalize(r),a.reset();o.concat(r)}return o.sigBytes=4*c,o}}),t.EvpKDF=function(e,t,r){return s.create(r).compute(e,t)},e.EvpKDF;var t,r,n,i,a,o,s}(Fr.exports);var Rr={exports:{}};Rr.exports=function(e){e.lib.Cipher||function(t){var r=e,n=r.lib,i=n.Base,a=n.WordArray,o=n.BufferedBlockAlgorithm,s=r.enc;s.Utf8;var c=s.Base64,u=r.algo.EvpKDF,l=n.Cipher=o.extend({cfg:i.extend(),createEncryptor:function(e,t){return this.create(this._ENC_XFORM_MODE,e,t)},createDecryptor:function(e,t){return this.create(this._DEC_XFORM_MODE,e,t)},init:function(e,t,r){this.cfg=this.cfg.extend(r),this._xformMode=e,this._key=t,this.reset()},reset:function(){o.reset.call(this),this._doReset()},process:function(e){return this._append(e),this._process()},finalize:function(e){return e&&this._append(e),this._doFinalize()},keySize:4,ivSize:4,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function e(e){return"string"==typeof e?b:v}return function(t){return{encrypt:function(r,n,i){return e(n).encrypt(t,r,n,i)},decrypt:function(r,n,i){return e(n).decrypt(t,r,n,i)}}}}()});n.StreamCipher=l.extend({_doFinalize:function(){return this._process(!0)},blockSize:1});var f=r.mode={},h=n.BlockCipherMode=i.extend({createEncryptor:function(e,t){return this.Encryptor.create(e,t)},createDecryptor:function(e,t){return this.Decryptor.create(e,t)},init:function(e,t){this._cipher=e,this._iv=t}}),p=f.CBC=function(){var e=h.extend();function r(e,r,n){var i,a=this._iv;a?(i=a,this._iv=t):i=this._prevBlock;for(var o=0;o<n;o++)e[r+o]^=i[o]}return e.Encryptor=e.extend({processBlock:function(e,t){var n=this._cipher,i=n.blockSize;r.call(this,e,t,i),n.encryptBlock(e,t),this._prevBlock=e.slice(t,t+i)}}),e.Decryptor=e.extend({processBlock:function(e,t){var n=this._cipher,i=n.blockSize,a=e.slice(t,t+i);n.decryptBlock(e,t),r.call(this,e,t,i),this._prevBlock=a}}),e}(),d=(r.pad={}).Pkcs7={pad:function(e,t){for(var r=4*t,n=r-e.sigBytes%r,i=n<<24|n<<16|n<<8|n,o=[],s=0;s<n;s+=4)o.push(i);var c=a.create(o,n);e.concat(c)},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}};n.BlockCipher=l.extend({cfg:l.cfg.extend({mode:p,padding:d}),reset:function(){var e;l.reset.call(this);var t=this.cfg,r=t.iv,n=t.mode;this._xformMode==this._ENC_XFORM_MODE?e=n.createEncryptor:(e=n.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==e?this._mode.init(this,r&&r.words):(this._mode=e.call(n,this,r&&r.words),this._mode.__creator=e)},_doProcessBlock:function(e,t){this._mode.processBlock(e,t)},_doFinalize:function(){var e,t=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(t.pad(this._data,this.blockSize),e=this._process(!0)):(e=this._process(!0),t.unpad(e)),e},blockSize:4});var m=n.CipherParams=i.extend({init:function(e){this.mixIn(e)},toString:function(e){return(e||this.formatter).stringify(this)}}),g=(r.format={}).OpenSSL={stringify:function(e){var t=e.ciphertext,r=e.salt;return(r?a.create([1398893684,1701076831]).concat(r).concat(t):t).toString(c)},parse:function(e){var t,r=c.parse(e),n=r.words;return 1398893684==n[0]&&1701076831==n[1]&&(t=a.create(n.slice(2,4)),n.splice(0,4),r.sigBytes-=16),m.create({ciphertext:r,salt:t})}},v=n.SerializableCipher=i.extend({cfg:i.extend({format:g}),encrypt:function(e,t,r,n){n=this.cfg.extend(n);var i=e.createEncryptor(r,n),a=i.finalize(t),o=i.cfg;return m.create({ciphertext:a,key:r,iv:o.iv,algorithm:e,mode:o.mode,padding:o.padding,blockSize:e.blockSize,formatter:n.format})},decrypt:function(e,t,r,n){return n=this.cfg.extend(n),t=this._parse(t,n.format),e.createDecryptor(r,n).finalize(t.ciphertext)},_parse:function(e,t){return"string"==typeof e?t.parse(e,this):e}}),y=(r.kdf={}).OpenSSL={execute:function(e,t,r,n){n||(n=a.random(8));var i=u.create({keySize:t+r}).compute(e,n),o=a.create(i.words.slice(t),4*r);return i.sigBytes=4*t,m.create({key:i,iv:o,salt:n})}},b=n.PasswordBasedCipher=v.extend({cfg:v.cfg.extend({kdf:y}),encrypt:function(e,t,r,n){var i=(n=this.cfg.extend(n)).kdf.execute(r,e.keySize,e.ivSize);n.iv=i.iv;var a=v.encrypt.call(this,e,t,i.key,n);return a.mixIn(i),a},decrypt:function(e,t,r,n){n=this.cfg.extend(n),t=this._parse(t,n.format);var i=n.kdf.execute(r,e.keySize,e.ivSize,t.salt);return n.iv=i.iv,v.decrypt.call(this,e,t,i.key,n)}})}()}(Fr.exports),_r.exports=function(e){return function(){var t=e,r=t.lib.BlockCipher,n=t.algo,i=[],a=[],o=[],s=[],c=[],u=[],l=[],f=[],h=[],p=[];!function(){for(var e=[],t=0;t<256;t++)e[t]=t<128?t<<1:t<<1^283;var r=0,n=0;for(t=0;t<256;t++){var d=n^n<<1^n<<2^n<<3^n<<4;d=d>>>8^255&d^99,i[r]=d,a[d]=r;var m=e[r],g=e[m],v=e[g],y=257*e[d]^16843008*d;o[r]=y<<24|y>>>8,s[r]=y<<16|y>>>16,c[r]=y<<8|y>>>24,u[r]=y,y=16843009*v^65537*g^257*m^16843008*r,l[d]=y<<24|y>>>8,f[d]=y<<16|y>>>16,h[d]=y<<8|y>>>24,p[d]=y,r?(r=m^e[e[e[v^m]]],n^=e[e[n]]):r=n=1}}();var d=[0,1,2,4,8,16,32,64,128,27,54],m=n.AES=r.extend({_doReset:function(){if(!this._nRounds||this._keyPriorReset!==this._key){for(var e=this._keyPriorReset=this._key,t=e.words,r=e.sigBytes/4,n=4*((this._nRounds=r+6)+1),a=this._keySchedule=[],o=0;o<n;o++)o<r?a[o]=t[o]:(u=a[o-1],o%r?r>6&&o%r==4&&(u=i[u>>>24]<<24|i[u>>>16&255]<<16|i[u>>>8&255]<<8|i[255&u]):(u=i[(u=u<<8|u>>>24)>>>24]<<24|i[u>>>16&255]<<16|i[u>>>8&255]<<8|i[255&u],u^=d[o/r|0]<<24),a[o]=a[o-r]^u);for(var s=this._invKeySchedule=[],c=0;c<n;c++){if(o=n-c,c%4)var u=a[o];else u=a[o-4];s[c]=c<4||o<=4?u:l[i[u>>>24]]^f[i[u>>>16&255]]^h[i[u>>>8&255]]^p[i[255&u]]}}},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._keySchedule,o,s,c,u,i)},decryptBlock:function(e,t){var r=e[t+1];e[t+1]=e[t+3],e[t+3]=r,this._doCryptBlock(e,t,this._invKeySchedule,l,f,h,p,a),r=e[t+1],e[t+1]=e[t+3],e[t+3]=r},_doCryptBlock:function(e,t,r,n,i,a,o,s){for(var c=this._nRounds,u=e[t]^r[0],l=e[t+1]^r[1],f=e[t+2]^r[2],h=e[t+3]^r[3],p=4,d=1;d<c;d++){var m=n[u>>>24]^i[l>>>16&255]^a[f>>>8&255]^o[255&h]^r[p++],g=n[l>>>24]^i[f>>>16&255]^a[h>>>8&255]^o[255&u]^r[p++],v=n[f>>>24]^i[h>>>16&255]^a[u>>>8&255]^o[255&l]^r[p++],y=n[h>>>24]^i[u>>>16&255]^a[l>>>8&255]^o[255&f]^r[p++];u=m,l=g,f=v,h=y}m=(s[u>>>24]<<24|s[l>>>16&255]<<16|s[f>>>8&255]<<8|s[255&h])^r[p++],g=(s[l>>>24]<<24|s[f>>>16&255]<<16|s[h>>>8&255]<<8|s[255&u])^r[p++],v=(s[f>>>24]<<24|s[h>>>16&255]<<16|s[u>>>8&255]<<8|s[255&l])^r[p++],y=(s[h>>>24]<<24|s[u>>>16&255]<<16|s[l>>>8&255]<<8|s[255&f])^r[p++],e[t]=m,e[t+1]=g,e[t+2]=v,e[t+3]=y},keySize:8});t.AES=r._createHelper(m)}(),e.AES}(Fr.exports);var Lr={exports:{}};Lr.exports=function(e){return e.enc.Utf8}(Fr.exports);var qr={}.hasOwnProperty;function Mr(e,t){var r=t||{};function n(t){var r=n.invalid,i=n.handlers;if(t&&qr.call(t,e)&&(r=qr.call(i,t[e])?i[t[e]]:n.unknown),r)return r.apply(this,arguments)}return n.handlers=r.handlers||{},n.invalid=r.invalid,n.unknown=r.unknown,n}function Nr(e){return"RootNode"===e.type||"root"===e.type}function zr(e){return Array.isArray(e.children)}var Br={}.hasOwnProperty,$r=Mr("nestingOperator",{unknown:function(e){throw new Error("Unexpected nesting `"+e.nestingOperator+"`")},invalid:function(e,t,r,n,i){if(n)throw new Error("topScan is supposed to be called from the root node");i.iterator(e,t,r,n,i),i.shallow||Vr(e,t,r,n,i)},handlers:{null:Vr,">":Hr,"+":function(e,t,r,n,i){if(!n)return;new Qr(e,n,i).prefillTypeIndex(0,++r).each(r,++r).prefillTypeIndex(r).done()},"~":function(e,t,r,n,i){if(!n)return;new Qr(e,n,i).prefillTypeIndex(0,++r).each(r).done()}}});function Ur(e,t,r,n,i){return $r(e,t,r,n,i)}function Vr(e,t,r,n,i){var a=i.iterator;i.iterator=function e(t,r,n,i,o){if(o.iterator=a,a(t,r,n,i,o),o.iterator=e,o.one&&o.found)return;Hr(t,r,n,i,o)},Hr(e,t,r,n,i)}function Hr(e,t,r,n,i){zr(t)&&0!==t.children.length&&new Qr(e,t,i).each().done()}class Qr{constructor(e,t,r){this.query=e,this.parent=t,this.state=r,this.typeIndex=r.index?new Gr:void 0,this.delayed=[]}prefillTypeIndex(e,t){var[r,n]=this.defaults(e,t);if(this.typeIndex)for(;r<n;)this.typeIndex.index(this.parent.children[r]),r++;return this}each(e,t){var r,n,[i,a]=this.defaults(e,t),o=this.parent.children[i];return i>=a?this:(this.typeIndex?(n=this.typeIndex.nodes,r=this.typeIndex.index(o),this.delayed.push((function(){this.state.typeIndex=r,this.state.nodeIndex=n,this.state.typeCount=this.typeIndex.count(o),this.state.nodeCount=this.typeIndex.nodes,this.state.iterator(this.query,o,i,this.parent,this.state)}))):this.state.iterator(this.query,o,i,this.parent,this.state),this.state.one&&this.state.found?this:this.each(i+1,a))}done(){for(var e=-1;++e<this.delayed.length&&(this.delayed[e].call(this),!this.state.one||!this.state.found););return this}defaults(e,t){return(null==e||e<0)&&(e=0),(null==t||t>this.parent.children.length)&&(t=this.parent.children.length),[e,t]}}class Gr{constructor(){this.counts={},this.nodes=0}index(e){var t=e.type;return this.nodes++,Br.call(this.counts,t)||(this.counts[t]=0),this.counts[t]++}count(e){return this.counts[e.type]}}const Wr=function(e){if(null==e)return Yr;if("string"==typeof e)return function(e){return Kr(t);function t(t){return t&&t.type===e}}(e);if("object"==typeof e)return Array.isArray(e)?function(e){const t=[];let r=-1;for(;++r<e.length;)t[r]=Wr(e[r]);return Kr(n);function n(...e){let r=-1;for(;++r<t.length;)if(t[r].call(this,...e))return!0;return!1}}(e):function(e){return Kr(t);function t(t){let r;for(r in e)if(t[r]!==e[r])return!1;return!0}}(e);if("function"==typeof e)return Kr(e);throw new Error("Expected function, string, or object as test")};function Kr(e){return function(...t){return Boolean(e.call(this,...t))}}function Yr(){return!0}var Jr=Object.freeze({__proto__:null,is:function e(t,r,n,i,a){const o=Wr(r);if(null!=n&&("number"!=typeof n||n<0||n===Number.POSITIVE_INFINITY))throw new Error("Expected positive finite index");if(!(null==i||e(i)&&i.children))throw new Error("Expected parent node");if(null==i!=(null==n))throw new Error("Expected both parent and index");return!(!t||!t.type||"string"!=typeof t.type)&&Boolean(o.call(a,t,n,i))},convert:Wr}),Zr=Wr(),Xr=Mr("name",{unknown:function(e){if(e.name)throw new Error("Unknown pseudo-selector `"+e.name+"`");throw new Error("Unexpected pseudo-element or empty pseudo-class")},invalid:function(){throw new Error("Invalid pseudo-selector")},handlers:{any:tn,blank:rn,empty:rn,"first-child":function(e,t,r,n,i){return nn(i,e),0===i.nodeIndex},"first-of-type":function(e,t,r,n,i){return nn(i,e),0===i.typeIndex},has:function(e,t,r,n,i){var a,o=i.shallow,s=i.one,c=i.scopeNodes,u=function(e){var t,r="ruleSet"===e.type?{type:"selectors",selectors:[e]}:e,n=-1;for(;++n<r.selectors.length;)(t=r.selectors[n].rule).nestingOperator=null,t.pseudos&&1===t.pseudos.length&&"scope"===t.pseudos[0].name||(r.selectors[n]={type:"ruleSet",rule:{type:"rule",rule:t,pseudos:[{name:"scope"}]}});return r}(e.value),l=i.any;return i.shallow=!1,i.one=!0,i.scopeNodes=[t],a=Boolean(l(u,t,i)[0]),i.shallow=o,i.one=s,i.scopeNodes=c,a},"last-child":function(e,t,r,n,i){return nn(i,e),i.nodeIndex===i.nodeCount-1},"last-of-type":function(e,t,r,n,i){return nn(i,e),i.typeIndex===i.typeCount-1},matches:tn,not:function(e,t,r,n,i){return!tn(e,t,r,n,i)},"nth-child":function(e,t,r,n,i){return nn(i,e),e.value(i.nodeIndex)},"nth-last-child":function(e,t,r,n,i){return nn(i,e),e.value(i.nodeCount-i.nodeIndex-1)},"nth-of-type":function(e,t,r,n,i){return nn(i,e),e.value(i.typeIndex)},"nth-last-of-type":function(e,t,r,n,i){return nn(i,e),e.value(i.typeCount-1-i.typeIndex)},"only-child":function(e,t,r,n,i){return nn(i,e),1===i.nodeCount},"only-of-type":function(e,t,r,n,i){return nn(i,e),1===i.typeCount},root:function(e,t,r,n){return Zr(t)&&!n},scope:function(e,t,r,n,i){return Zr(t)&&i.scopeNodes.includes(t)}}});function en(e,t,r,n,i){for(var a=e.pseudos,o=-1;++o<a.length;)if(!Xr(a[o],t,r,n,i))return!1;return!0}function tn(e,t,r,n,i){var a,o=i.shallow,s=i.one;return i.one=!0,i.shallow=!0,a=i.any(e.value,t,i)[0]===t,i.shallow=o,i.one=s,a}function rn(e,t){return zr(t)?0===t.children.length:!("value"in t)}function nn(e,t){if(e.shallow)throw new Error("Cannot use `:"+t.name+"` without parent")}en.needsIndex=["first-child","first-of-type","last-child","last-of-type","nth-child","nth-last-child","nth-of-type","nth-last-of-type","only-child","only-of-type"];var an=Mr("operator",{unknown:function(e){throw new Error("Unknown operator `"+e.operator+"`")},invalid:on,handlers:{"=":function(e,t){return on(e,t)&&String(t[e.name])===e.value},"^=":function(e,t){var r=t[e.name];return"string"==typeof r&&r.slice(0,e.value.length)===e.value},"$=":function(e,t){var r=t[e.name];return"string"==typeof r&&r.slice(-e.value.length)===e.value},"*=":function(e,t){var r=t[e.name];return"string"==typeof r&&r.includes(e.value)},"~=":function(e,t){var r=t[e.name];if(null==r)return!1;if(Array.isArray(r)&&r.includes(e.value))return!0;return String(r)===e.value}}});function on(e,t){return null!==t[e.name]&&void 0!==t[e.name]}function sn(e,t,r,n,i){if(e.id)throw new Error("Invalid selector: id");if(e.classNames)throw new Error("Invalid selector: class");return Boolean(t&&(!e.tagName||function(e,t){return"*"===e.tagName||e.tagName===t.type}(e,t))&&(!e.attrs||function(e,t){for(var r=-1;++r<e.attrs.length;)if(!an(e.attrs[r],t))return!1;return!0}(e,t))&&(!e.pseudos||en(e,t,r,n,i)))}var cn=Mr("type",{unknown:function(e){throw new Error("Unknown type `"+e.type+"`")},invalid:function(){throw new Error("Invalid type")},handlers:{selectors:function(e,t,r){var n=pn(r.one),i=-1;for(;++i<e.selectors.length;)n(ln(e.selectors[i],t,r));return n.result},ruleSet:ln,rule:fn}});function un(e,t,r){return e&&t?cn(e,t,r):[]}function ln(e,t,r){return fn(e.rule,t,r)}function fn(e,t,r){var n=pn(r.one);if(r.shallow&&e.rule)throw new Error("Expected selector without nesting");return Ur(e,t,0,null,hn(e,{scopeNodes:Nr(t)?t.children:[t],index:!1,iterator:function(e,t,r,i,a){sn(e,t,r,i,a)&&("rule"in e?Ur(e.rule,t,r,i,hn(e.rule,a)):(n(t),a.found=!0))},one:r.one,shallow:r.shallow,any:r.any})),n.result}function hn(e,t){for(var r=e.pseudos||[],n=-1;++n<r.length;)if(en.needsIndex.includes(r[n].name)){t.index=!0;break}return t}function pn(e){var t,r=[];return n.result=r,n;function n(e){var t=-1;if("length"in e)for(;++t<e.length;)i(e[t]);else i(e)}function i(n){if(e){if(t)throw new Error("Cannot collect multiple nodes");t=!0}r.includes(n)||r.push(n)}}var dn,mn={},gn={},vn={};dn=vn,Object.defineProperty(dn,"__esModule",{value:!0}),dn.isIdentStart=function(e){return e>="a"&&e<="z"||e>="A"&&e<="Z"||"-"===e||"_"===e},dn.isIdent=function(e){return e>="a"&&e<="z"||e>="A"&&e<="Z"||e>="0"&&e<="9"||"-"===e||"_"===e},dn.isHex=function(e){return e>="a"&&e<="f"||e>="A"&&e<="F"||e>="0"&&e<="9"},dn.escapeIdentifier=function(e){for(var t=e.length,r="",n=0;n<t;){var i=e.charAt(n);if(dn.identSpecialChars[i])r+="\\"+i;else if("_"===i||"-"===i||i>="A"&&i<="Z"||i>="a"&&i<="z"||0!==n&&i>="0"&&i<="9")r+=i;else{var a=i.charCodeAt(0);if(55296==(63488&a)){var o=e.charCodeAt(n++);if(55296!=(64512&a)||56320!=(64512&o))throw Error("UCS-2(decode): illegal sequence");a=((1023&a)<<10)+(1023&o)+65536}r+="\\"+a.toString(16)+" "}n++}return r},dn.escapeStr=function(e){for(var t,r=e.length,n="",i=0;i<r;){var a=e.charAt(i);'"'===a?a='\\"':"\\"===a?a="\\\\":void 0!==(t=dn.strReplacementsRev[a])&&(a=t),n+=a,i++}return'"'+n+'"'},dn.identSpecialChars={"!":!0,'"':!0,"#":!0,$:!0,"%":!0,"&":!0,"'":!0,"(":!0,")":!0,"*":!0,"+":!0,",":!0,".":!0,"/":!0,";":!0,"<":!0,"=":!0,">":!0,"?":!0,"@":!0,"[":!0,"\\":!0,"]":!0,"^":!0,"`":!0,"{":!0,"|":!0,"}":!0,"~":!0},dn.strReplacementsRev={"\n":"\\n","\r":"\\r","\t":"\\t","\f":"\\f","\v":"\\v"},dn.singleQuoteEscapeChars={n:"\n",r:"\r",t:"\t",f:"\f","\\":"\\","'":"'"},dn.doubleQuotesEscapeChars={n:"\n",r:"\r",t:"\t",f:"\f","\\":"\\",'"':'"'},Object.defineProperty(gn,"__esModule",{value:!0});var yn=vn;gn.parseCssSelector=function(e,t,r,n,i,a){var o=e.length,s="";function c(r,n){var i="";for(t++,s=e.charAt(t);t<o;){if(s===r)return t++,i;if("\\"===s){t++;var a=void 0;if((s=e.charAt(t))===r)i+=r;else if(void 0!==(a=n[s]))i+=a;else{if(yn.isHex(s)){var c=s;for(t++,s=e.charAt(t);yn.isHex(s);)c+=s,t++,s=e.charAt(t);" "===s&&(t++,s=e.charAt(t)),i+=String.fromCharCode(parseInt(c,16));continue}i+=s}}else i+=s;t++,s=e.charAt(t)}return i}function u(){var r="";for(s=e.charAt(t);t<o;){if(yn.isIdent(s))r+=s;else{if("\\"!==s)return r;if(++t>=o)throw Error("Expected symbol but end of file reached.");if(s=e.charAt(t),yn.identSpecialChars[s])r+=s;else{if(yn.isHex(s)){var n=s;for(t++,s=e.charAt(t);yn.isHex(s);)n+=s,t++,s=e.charAt(t);" "===s&&(t++,s=e.charAt(t)),r+=String.fromCharCode(parseInt(n,16));continue}r+=s}}t++,s=e.charAt(t)}return r}function l(){s=e.charAt(t);for(var r=!1;" "===s||"\t"===s||"\n"===s||"\r"===s||"\f"===s;)r=!0,t++,s=e.charAt(t);return r}function f(){var r=h();if(!r)return null;var n=r;for(s=e.charAt(t);","===s;){if(t++,l(),"selectors"!==n.type&&(n={type:"selectors",selectors:[r]}),!(r=h()))throw Error('Rule expected after ",".');n.selectors.push(r)}return n}function h(){l();var r={type:"ruleSet"},n=p();if(!n)return null;for(var a=r;n&&(n.type="rule",a.rule=n,a=n,l(),s=e.charAt(t),!(t>=o||","===s||")"===s));)if(i[s]){var c=s;if(t++,l(),!(n=p()))throw Error('Rule expected after "'+c+'".');n.nestingOperator=c}else(n=p())&&(n.nestingOperator=null);return r}function p(){for(var i=null;t<o;)if("*"===(s=e.charAt(t)))t++,(i=i||{}).tagName="*";else if(yn.isIdentStart(s)||"\\"===s)(i=i||{}).tagName=u();else if("."===s)t++,((i=i||{}).classNames=i.classNames||[]).push(u());else if("#"===s)t++,(i=i||{}).id=u();else if("["===s){t++,l();var h={name:u()};if(l(),"]"===s)t++;else{var p="";if(n[s]&&(p=s,t++,s=e.charAt(t)),t>=o)throw Error('Expected "=" but end of file reached.');if("="!==s)throw Error('Expected "=" but "'+s+'" found.');h.operator=p+"=",t++,l();var d="";if(h.valueType="string",'"'===s)d=c('"',yn.doubleQuotesEscapeChars);else if("'"===s)d=c("'",yn.singleQuoteEscapeChars);else if(a&&"$"===s)t++,d=u(),h.valueType="substitute";else{for(;t<o&&"]"!==s;)d+=s,t++,s=e.charAt(t);d=d.trim()}if(l(),t>=o)throw Error('Expected "]" but end of file reached.');if("]"!==s)throw Error('Expected "]" but "'+s+'" found.');t++,h.value=d}((i=i||{}).attrs=i.attrs||[]).push(h)}else{if(":"!==s)break;t++;var m=u(),g={name:m};if("("===s){t++;var v="";if(l(),"selector"===r[m])g.valueType="selector",v=f();else{if(g.valueType=r[m]||"string",'"'===s)v=c('"',yn.doubleQuotesEscapeChars);else if("'"===s)v=c("'",yn.singleQuoteEscapeChars);else if(a&&"$"===s)t++,v=u(),g.valueType="substitute";else{for(;t<o&&")"!==s;)v+=s,t++,s=e.charAt(t);v=v.trim()}l()}if(t>=o)throw Error('Expected ")" but end of file reached.');if(")"!==s)throw Error('Expected ")" but "'+s+'" found.');t++,g.value=v}((i=i||{}).pseudos=i.pseudos||[]).push(g)}return i}return function(){var r=f();if(t<o)throw Error('Rule expected but "'+e.charAt(t)+'" found.');return r}()};var bn={};Object.defineProperty(bn,"__esModule",{value:!0});var wn=vn;bn.renderEntity=function e(t){var r="";switch(t.type){case"ruleSet":for(var n=t.rule,i=[];n;)n.nestingOperator&&i.push(n.nestingOperator),i.push(e(n)),n=n.rule;r=i.join(" ");break;case"selectors":r=t.selectors.map(e).join(", ");break;case"rule":t.tagName&&(r="*"===t.tagName?"*":wn.escapeIdentifier(t.tagName)),t.id&&(r+="#"+wn.escapeIdentifier(t.id)),t.classNames&&(r+=t.classNames.map((function(e){return"."+wn.escapeIdentifier(e)})).join("")),t.attrs&&(r+=t.attrs.map((function(e){return"operator"in e?"substitute"===e.valueType?"["+wn.escapeIdentifier(e.name)+e.operator+"$"+e.value+"]":"["+wn.escapeIdentifier(e.name)+e.operator+wn.escapeStr(e.value)+"]":"["+wn.escapeIdentifier(e.name)+"]"})).join("")),t.pseudos&&(r+=t.pseudos.map((function(t){return t.valueType?"selector"===t.valueType?":"+wn.escapeIdentifier(t.name)+"("+e(t.value)+")":"substitute"===t.valueType?":"+wn.escapeIdentifier(t.name)+"($"+t.value+")":"numeric"===t.valueType?":"+wn.escapeIdentifier(t.name)+"("+t.value+")":":"+wn.escapeIdentifier(t.name)+"("+wn.escapeIdentifier(t.value)+")":":"+wn.escapeIdentifier(t.name)})).join(""));break;default:throw Error('Unknown entity type: "'+t.type+'".')}return r},Object.defineProperty(mn,"__esModule",{value:!0});var xn=gn,kn=bn,En=function(){function e(){this.pseudos={},this.attrEqualityMods={},this.ruleNestingOperators={},this.substitutesEnabled=!1}return e.prototype.registerSelectorPseudos=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r=0,n=e;r<n.length;r++){var i=n[r];this.pseudos[i]="selector"}return this},e.prototype.unregisterSelectorPseudos=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r=0,n=e;r<n.length;r++){var i=n[r];delete this.pseudos[i]}return this},e.prototype.registerNumericPseudos=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r=0,n=e;r<n.length;r++){var i=n[r];this.pseudos[i]="numeric"}return this},e.prototype.unregisterNumericPseudos=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r=0,n=e;r<n.length;r++){var i=n[r];delete this.pseudos[i]}return this},e.prototype.registerNestingOperators=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r=0,n=e;r<n.length;r++){var i=n[r];this.ruleNestingOperators[i]=!0}return this},e.prototype.unregisterNestingOperators=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r=0,n=e;r<n.length;r++){var i=n[r];delete this.ruleNestingOperators[i]}return this},e.prototype.registerAttrEqualityMods=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r=0,n=e;r<n.length;r++){var i=n[r];this.attrEqualityMods[i]=!0}return this},e.prototype.unregisterAttrEqualityMods=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r=0,n=e;r<n.length;r++){var i=n[r];delete this.attrEqualityMods[i]}return this},e.prototype.enableSubstitutes=function(){return this.substitutesEnabled=!0,this},e.prototype.disableSubstitutes=function(){return this.substitutesEnabled=!1,this},e.prototype.parse=function(e){return xn.parseCssSelector(e,0,this.pseudos,this.attrEqualityMods,this.ruleNestingOperators,this.substitutesEnabled)},e.prototype.render=function(e){return kn.renderEntity(e).trim()},e}(),Sn=mn.CssSelectorParser=En,Cn={},An={};Object.defineProperty(An,"__esModule",{value:!0}),An.parse=void 0;var Pn=/^([+-]?\d*n)?\s*(?:([+-]?)\s*(\d+))?$/;An.parse=function(e){if("even"===(e=e.trim().toLowerCase()))return[2,0];if("odd"===e)return[2,1];var t,r=e.match(Pn);if(!r)throw new Error("n-th rule couldn't be parsed ('"+e+"')");return r[1]?(t=parseInt(r[1],10),isNaN(t)&&(t=r[1].startsWith("-")?-1:1)):t=0,[t,("-"===r[2]?-1:1)*(r[3]?parseInt(r[3],10):0)]};var _n={};Object.defineProperty(_n,"__esModule",{value:!0}),_n.compile=void 0;var Fn={trueFunc:function(){return!0},falseFunc:function(){return!1}};_n.compile=function(e){var t=e[0],r=e[1]-1;if(r<0&&t<=0)return Fn.falseFunc;if(-1===t)return function(e){return e<=r};if(0===t)return function(e){return e===r};if(1===t)return r<0?Fn.trueFunc:function(e){return e>=r};var n=Math.abs(t),i=(r%n+n)%n;return t>1?function(e){return e>=r&&e%n===i}:function(e){return e<=r&&e%n===i}},function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.compile=e.parse=void 0;var t=An;Object.defineProperty(e,"parse",{enumerable:!0,get:function(){return t.parse}});var r=_n;Object.defineProperty(e,"compile",{enumerable:!0,get:function(){return r.compile}}),e.default=function(e){return r.compile(t.parse(e))}}(Cn);var On=ae(Cn).default,Dn=new Set(["nth-child","nth-last-child","nth-of-type","nth-last-of-type"]),In=new Sn;In.registerAttrEqualityMods("~","^","$","*"),In.registerSelectorPseudos("any","matches","not","has"),In.registerNestingOperators(">","+","~");var Tn=Mr("type",{handlers:{selectors:function(e){var t=e.selectors,r=-1;for(;++r<t.length;)Tn(t[r]);return e},ruleSet:function(e){return Rn(e.rule)},rule:Rn}});function jn(e){if("string"!=typeof e)throw new TypeError("Expected `string` as selector, not `"+e+"`");return Tn(In.parse(e))}function Rn(e){for(var t,r=e.pseudos||[],n=-1;++n<r.length;)t=r[n],Dn.has(t.name)&&(t.value=On(t.value),t.valueType="function");return Tn(e.rule),e}var Ln=oe(Object.freeze({__proto__:null,matches:function(e,t){return Boolean(un(jn(e),t,{one:!0,shallow:!0,any:un})[0])},select:function(e,t){return un(jn(e),t,{one:!0,any:un})[0]||null},selectAll:function(e,t){return un(jn(e),t,{any:un})}}));function qn(e){if(e)throw e}
|
|
2
|
+
"use strict";var e=require("commander"),t=require("tmp"),r=require("path"),n=require("consola"),i=require("lodash"),o=require("process"),a=require("url"),s=require("assert"),c=require("http"),u=require("https"),l=require("stream"),f=require("zlib"),h=require("cross-spawn"),p=require("fs"),d=require("vm2"),m=require("js-yaml"),g=require("canvas"),v=require("replace-ext"),y=require("fs-extra"),b=require("fstream-ignore"),x=require("archiver"),w=require("ejs"),k=require("pinyin-pro"),E=require("lookpath"),S=require("jsdom"),P=require("os"),_=require("constants"),A=require("util"),C=require("events"),F=require("crypto");function D(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}function O(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(r){if("default"!==r){var n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:function(){return e[r]}})}})),t.default=e,Object.freeze(t)}var T=D(t),R=D(r),I=D(n),j=D(i),L=D(o),q=D(a),z=D(s),M=D(c),N=D(u),B=D(l),$=D(f),U=D(h),V=O(p),H=D(p),Q=D(m),G=D(v),W=D(y),K=D(b),J=D(x),Y=D(w),X=D(S),Z=D(P),ee=D(_),te=D(A),re=D(C),ne=D(F);const ie=I.default.create({});var oe="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function ae(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function se(e){if(e.__esModule)return e;var t=Object.defineProperty({},"__esModule",{value:!0});return Object.keys(e).forEach((function(r){var n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:function(){return e[r]}})})),t}var ce={},ue={exports:{}};!function(e){function t(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];if(t.length>1){t[0]=t[0].slice(0,-1);for(var n=t.length-1,i=1;i<n;++i)t[i]=t[i].slice(1,-1);return t[n]=t[n].slice(1),t.join("")}return t[0]}function r(e){return"(?:"+e+")"}function n(e){return void 0===e?"undefined":null===e?"null":Object.prototype.toString.call(e).split(" ").pop().split("]").shift().toLowerCase()}function i(e){return e.toUpperCase()}function o(e){return null!=e?e instanceof Array?e:"number"!=typeof e.length||e.split||e.setInterval||e.call?[e]:Array.prototype.slice.call(e):[]}function a(e,t){var r=e;if(t)for(var n in t)r[n]=t[n];return r}function s(e){var n="[A-Za-z]",i="[0-9]",o=t(i,"[A-Fa-f]"),a=r(r("%[EFef]"+o+"%"+o+o+"%"+o+o)+"|"+r("%[89A-Fa-f]"+o+"%"+o+o)+"|"+r("%"+o+o)),s="[\\!\\$\\&\\'\\(\\)\\*\\+\\,\\;\\=]",c=t("[\\:\\/\\?\\#\\[\\]\\@]",s),u=e?"[\\uE000-\\uF8FF]":"[]",l=t(n,i,"[\\-\\.\\_\\~]",e?"[\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]":"[]");r(n+t(n,i,"[\\+\\-\\.]")+"*"),r(r(a+"|"+t(l,s,"[\\:]"))+"*");var f=r(r("25[0-5]")+"|"+r("2[0-4]"+i)+"|"+r("1"+i+i)+"|"+r("0?[1-9]"+i)+"|0?0?"+i),h=r(f+"\\."+f+"\\."+f+"\\."+f),p=r(o+"{1,4}"),d=r(r(p+"\\:"+p)+"|"+h),m=r(r(p+"\\:")+"{6}"+d),g=r("\\:\\:"+r(p+"\\:")+"{5}"+d),v=r(r(p)+"?\\:\\:"+r(p+"\\:")+"{4}"+d),y=r(r(r(p+"\\:")+"{0,1}"+p)+"?\\:\\:"+r(p+"\\:")+"{3}"+d),b=r(r(r(p+"\\:")+"{0,2}"+p)+"?\\:\\:"+r(p+"\\:")+"{2}"+d),x=r(r(r(p+"\\:")+"{0,3}"+p)+"?\\:\\:"+p+"\\:"+d),w=r(r(r(p+"\\:")+"{0,4}"+p)+"?\\:\\:"+d),k=r(r(r(p+"\\:")+"{0,5}"+p)+"?\\:\\:"+p),E=r(r(r(p+"\\:")+"{0,6}"+p)+"?\\:\\:"),S=r([m,g,v,y,b,x,w,k,E].join("|")),P=r(r(l+"|"+a)+"+");r("[vV]"+o+"+\\."+t(l,s,"[\\:]")+"+"),r(r(a+"|"+t(l,s))+"*");var _=r(a+"|"+t(l,s,"[\\:\\@]"));return r(r(a+"|"+t(l,s,"[\\@]"))+"+"),r(r(_+"|"+t("[\\/\\?]",u))+"*"),{NOT_SCHEME:new RegExp(t("[^]",n,i,"[\\+\\-\\.]"),"g"),NOT_USERINFO:new RegExp(t("[^\\%\\:]",l,s),"g"),NOT_HOST:new RegExp(t("[^\\%\\[\\]\\:]",l,s),"g"),NOT_PATH:new RegExp(t("[^\\%\\/\\:\\@]",l,s),"g"),NOT_PATH_NOSCHEME:new RegExp(t("[^\\%\\/\\@]",l,s),"g"),NOT_QUERY:new RegExp(t("[^\\%]",l,s,"[\\:\\@\\/\\?]",u),"g"),NOT_FRAGMENT:new RegExp(t("[^\\%]",l,s,"[\\:\\@\\/\\?]"),"g"),ESCAPE:new RegExp(t("[^]",l,s),"g"),UNRESERVED:new RegExp(l,"g"),OTHER_CHARS:new RegExp(t("[^\\%]",l,c),"g"),PCT_ENCODED:new RegExp(a,"g"),IPV4ADDRESS:new RegExp("^("+h+")$"),IPV6ADDRESS:new RegExp("^\\[?("+S+")"+r(r("\\%25|\\%(?!"+o+"{2})")+"("+P+")")+"?\\]?$")}}var c=s(!1),u=s(!0),l=function(){function e(e,t){var r=[],n=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(n=(a=s.next()).done)&&(r.push(a.value),!t||r.length!==t);n=!0);}catch(e){i=!0,o=e}finally{try{!n&&s.return&&s.return()}finally{if(i)throw o}}return r}return function(t,r){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,r);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),f=function(e){if(Array.isArray(e)){for(var t=0,r=Array(e.length);t<e.length;t++)r[t]=e[t];return r}return Array.from(e)},h=2147483647,p=36,d=1,m=26,g=38,v=700,y=72,b=128,x="-",w=/^xn--/,k=/[^\0-\x7E]/,E=/[\x2E\u3002\uFF0E\uFF61]/g,S={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},P=p-d,_=Math.floor,A=String.fromCharCode;function C(e){throw new RangeError(S[e])}function F(e,t){for(var r=[],n=e.length;n--;)r[n]=t(e[n]);return r}function D(e,t){var r=e.split("@"),n="";return r.length>1&&(n=r[0]+"@",e=r[1]),n+F((e=e.replace(E,".")).split("."),t).join(".")}function O(e){for(var t=[],r=0,n=e.length;r<n;){var i=e.charCodeAt(r++);if(i>=55296&&i<=56319&&r<n){var o=e.charCodeAt(r++);56320==(64512&o)?t.push(((1023&i)<<10)+(1023&o)+65536):(t.push(i),r--)}else t.push(i)}return t}var T=function(e){return e-48<10?e-22:e-65<26?e-65:e-97<26?e-97:p},R=function(e,t){return e+22+75*(e<26)-((0!=t)<<5)},I=function(e,t,r){var n=0;for(e=r?_(e/v):e>>1,e+=_(e/t);e>P*m>>1;n+=p)e=_(e/P);return _(n+(P+1)*e/(e+g))},j=function(e){var t=[],r=e.length,n=0,i=b,o=y,a=e.lastIndexOf(x);a<0&&(a=0);for(var s=0;s<a;++s)e.charCodeAt(s)>=128&&C("not-basic"),t.push(e.charCodeAt(s));for(var c=a>0?a+1:0;c<r;){for(var u=n,l=1,f=p;;f+=p){c>=r&&C("invalid-input");var g=T(e.charCodeAt(c++));(g>=p||g>_((h-n)/l))&&C("overflow"),n+=g*l;var v=f<=o?d:f>=o+m?m:f-o;if(g<v)break;var w=p-v;l>_(h/w)&&C("overflow"),l*=w}var k=t.length+1;o=I(n-u,k,0==u),_(n/k)>h-i&&C("overflow"),i+=_(n/k),n%=k,t.splice(n++,0,i)}return String.fromCodePoint.apply(String,t)},L=function(e){var t=[],r=(e=O(e)).length,n=b,i=0,o=y,a=!0,s=!1,c=void 0;try{for(var u,l=e[Symbol.iterator]();!(a=(u=l.next()).done);a=!0){var f=u.value;f<128&&t.push(A(f))}}catch(e){s=!0,c=e}finally{try{!a&&l.return&&l.return()}finally{if(s)throw c}}var g=t.length,v=g;for(g&&t.push(x);v<r;){var w=h,k=!0,E=!1,S=void 0;try{for(var P,F=e[Symbol.iterator]();!(k=(P=F.next()).done);k=!0){var D=P.value;D>=n&&D<w&&(w=D)}}catch(e){E=!0,S=e}finally{try{!k&&F.return&&F.return()}finally{if(E)throw S}}var T=v+1;w-n>_((h-i)/T)&&C("overflow"),i+=(w-n)*T,n=w;var j=!0,L=!1,q=void 0;try{for(var z,M=e[Symbol.iterator]();!(j=(z=M.next()).done);j=!0){var N=z.value;if(N<n&&++i>h&&C("overflow"),N==n){for(var B=i,$=p;;$+=p){var U=$<=o?d:$>=o+m?m:$-o;if(B<U)break;var V=B-U,H=p-U;t.push(A(R(U+V%H,0))),B=_(V/H)}t.push(A(R(B,0))),o=I(i,T,v==g),i=0,++v}}}catch(e){L=!0,q=e}finally{try{!j&&M.return&&M.return()}finally{if(L)throw q}}++i,++n}return t.join("")},q=function(e){return D(e,(function(e){return w.test(e)?j(e.slice(4).toLowerCase()):e}))},z=function(e){return D(e,(function(e){return k.test(e)?"xn--"+L(e):e}))},M={version:"2.1.0",ucs2:{decode:O,encode:function(e){return String.fromCodePoint.apply(String,f(e))}},decode:j,encode:L,toASCII:z,toUnicode:q},N={};function B(e){var t=e.charCodeAt(0);return t<16?"%0"+t.toString(16).toUpperCase():t<128?"%"+t.toString(16).toUpperCase():t<2048?"%"+(t>>6|192).toString(16).toUpperCase()+"%"+(63&t|128).toString(16).toUpperCase():"%"+(t>>12|224).toString(16).toUpperCase()+"%"+(t>>6&63|128).toString(16).toUpperCase()+"%"+(63&t|128).toString(16).toUpperCase()}function $(e){for(var t="",r=0,n=e.length;r<n;){var i=parseInt(e.substr(r+1,2),16);if(i<128)t+=String.fromCharCode(i),r+=3;else if(i>=194&&i<224){if(n-r>=6){var o=parseInt(e.substr(r+4,2),16);t+=String.fromCharCode((31&i)<<6|63&o)}else t+=e.substr(r,6);r+=6}else if(i>=224){if(n-r>=9){var a=parseInt(e.substr(r+4,2),16),s=parseInt(e.substr(r+7,2),16);t+=String.fromCharCode((15&i)<<12|(63&a)<<6|63&s)}else t+=e.substr(r,9);r+=9}else t+=e.substr(r,3),r+=3}return t}function U(e,t){function r(e){var r=$(e);return r.match(t.UNRESERVED)?r:e}return e.scheme&&(e.scheme=String(e.scheme).replace(t.PCT_ENCODED,r).toLowerCase().replace(t.NOT_SCHEME,"")),void 0!==e.userinfo&&(e.userinfo=String(e.userinfo).replace(t.PCT_ENCODED,r).replace(t.NOT_USERINFO,B).replace(t.PCT_ENCODED,i)),void 0!==e.host&&(e.host=String(e.host).replace(t.PCT_ENCODED,r).toLowerCase().replace(t.NOT_HOST,B).replace(t.PCT_ENCODED,i)),void 0!==e.path&&(e.path=String(e.path).replace(t.PCT_ENCODED,r).replace(e.scheme?t.NOT_PATH:t.NOT_PATH_NOSCHEME,B).replace(t.PCT_ENCODED,i)),void 0!==e.query&&(e.query=String(e.query).replace(t.PCT_ENCODED,r).replace(t.NOT_QUERY,B).replace(t.PCT_ENCODED,i)),void 0!==e.fragment&&(e.fragment=String(e.fragment).replace(t.PCT_ENCODED,r).replace(t.NOT_FRAGMENT,B).replace(t.PCT_ENCODED,i)),e}function V(e){return e.replace(/^0*(.*)/,"$1")||"0"}function H(e,t){var r=e.match(t.IPV4ADDRESS)||[],n=l(r,2)[1];return n?n.split(".").map(V).join("."):e}function Q(e,t){var r=e.match(t.IPV6ADDRESS)||[],n=l(r,3),i=n[1],o=n[2];if(i){for(var a=i.toLowerCase().split("::").reverse(),s=l(a,2),c=s[0],u=s[1],f=u?u.split(":").map(V):[],h=c.split(":").map(V),p=t.IPV4ADDRESS.test(h[h.length-1]),d=p?7:8,m=h.length-d,g=Array(d),v=0;v<d;++v)g[v]=f[v]||h[m+v]||"";p&&(g[d-1]=H(g[d-1],t));var y=g.reduce((function(e,t,r){if(!t||"0"===t){var n=e[e.length-1];n&&n.index+n.length===r?n.length++:e.push({index:r,length:1})}return e}),[]),b=y.sort((function(e,t){return t.length-e.length}))[0],x=void 0;if(b&&b.length>1){var w=g.slice(0,b.index),k=g.slice(b.index+b.length);x=w.join(":")+"::"+k.join(":")}else x=g.join(":");return o&&(x+="%"+o),x}return e}var G=/^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i,W=void 0==="".match(/(){0}/)[1];function K(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={},n=!1!==t.iri?u:c;"suffix"===t.reference&&(e=(t.scheme?t.scheme+":":"")+"//"+e);var i=e.match(G);if(i){W?(r.scheme=i[1],r.userinfo=i[3],r.host=i[4],r.port=parseInt(i[5],10),r.path=i[6]||"",r.query=i[7],r.fragment=i[8],isNaN(r.port)&&(r.port=i[5])):(r.scheme=i[1]||void 0,r.userinfo=-1!==e.indexOf("@")?i[3]:void 0,r.host=-1!==e.indexOf("//")?i[4]:void 0,r.port=parseInt(i[5],10),r.path=i[6]||"",r.query=-1!==e.indexOf("?")?i[7]:void 0,r.fragment=-1!==e.indexOf("#")?i[8]:void 0,isNaN(r.port)&&(r.port=e.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/)?i[4]:void 0)),r.host&&(r.host=Q(H(r.host,n),n)),void 0!==r.scheme||void 0!==r.userinfo||void 0!==r.host||void 0!==r.port||r.path||void 0!==r.query?void 0===r.scheme?r.reference="relative":void 0===r.fragment?r.reference="absolute":r.reference="uri":r.reference="same-document",t.reference&&"suffix"!==t.reference&&t.reference!==r.reference&&(r.error=r.error||"URI is not a "+t.reference+" reference.");var o=N[(t.scheme||r.scheme||"").toLowerCase()];if(t.unicodeSupport||o&&o.unicodeSupport)U(r,n);else{if(r.host&&(t.domainHost||o&&o.domainHost))try{r.host=M.toASCII(r.host.replace(n.PCT_ENCODED,$).toLowerCase())}catch(e){r.error=r.error||"Host's domain name can not be converted to ASCII via punycode: "+e}U(r,c)}o&&o.parse&&o.parse(r,t)}else r.error=r.error||"URI can not be parsed.";return r}function J(e,t){var r=!1!==t.iri?u:c,n=[];return void 0!==e.userinfo&&(n.push(e.userinfo),n.push("@")),void 0!==e.host&&n.push(Q(H(String(e.host),r),r).replace(r.IPV6ADDRESS,(function(e,t,r){return"["+t+(r?"%25"+r:"")+"]"}))),"number"!=typeof e.port&&"string"!=typeof e.port||(n.push(":"),n.push(String(e.port))),n.length?n.join(""):void 0}var Y=/^\.\.?\//,X=/^\/\.(\/|$)/,Z=/^\/\.\.(\/|$)/,ee=/^\/?(?:.|\n)*?(?=\/|$)/;function te(e){for(var t=[];e.length;)if(e.match(Y))e=e.replace(Y,"");else if(e.match(X))e=e.replace(X,"/");else if(e.match(Z))e=e.replace(Z,"/"),t.pop();else if("."===e||".."===e)e="";else{var r=e.match(ee);if(!r)throw new Error("Unexpected dot segment condition");var n=r[0];e=e.slice(n.length),t.push(n)}return t.join("")}function re(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.iri?u:c,n=[],i=N[(t.scheme||e.scheme||"").toLowerCase()];if(i&&i.serialize&&i.serialize(e,t),e.host)if(r.IPV6ADDRESS.test(e.host));else if(t.domainHost||i&&i.domainHost)try{e.host=t.iri?M.toUnicode(e.host):M.toASCII(e.host.replace(r.PCT_ENCODED,$).toLowerCase())}catch(r){e.error=e.error||"Host's domain name can not be converted to "+(t.iri?"Unicode":"ASCII")+" via punycode: "+r}U(e,r),"suffix"!==t.reference&&e.scheme&&(n.push(e.scheme),n.push(":"));var o=J(e,t);if(void 0!==o&&("suffix"!==t.reference&&n.push("//"),n.push(o),e.path&&"/"!==e.path.charAt(0)&&n.push("/")),void 0!==e.path){var a=e.path;t.absolutePath||i&&i.absolutePath||(a=te(a)),void 0===o&&(a=a.replace(/^\/\//,"/%2F")),n.push(a)}return void 0!==e.query&&(n.push("?"),n.push(e.query)),void 0!==e.fragment&&(n.push("#"),n.push(e.fragment)),n.join("")}function ne(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n={};return arguments[3]||(e=K(re(e,r),r),t=K(re(t,r),r)),!(r=r||{}).tolerant&&t.scheme?(n.scheme=t.scheme,n.userinfo=t.userinfo,n.host=t.host,n.port=t.port,n.path=te(t.path||""),n.query=t.query):(void 0!==t.userinfo||void 0!==t.host||void 0!==t.port?(n.userinfo=t.userinfo,n.host=t.host,n.port=t.port,n.path=te(t.path||""),n.query=t.query):(t.path?("/"===t.path.charAt(0)?n.path=te(t.path):(void 0===e.userinfo&&void 0===e.host&&void 0===e.port||e.path?e.path?n.path=e.path.slice(0,e.path.lastIndexOf("/")+1)+t.path:n.path=t.path:n.path="/"+t.path,n.path=te(n.path)),n.query=t.query):(n.path=e.path,void 0!==t.query?n.query=t.query:n.query=e.query),n.userinfo=e.userinfo,n.host=e.host,n.port=e.port),n.scheme=e.scheme),n.fragment=t.fragment,n}function ie(e,t,r){var n=a({scheme:"null"},r);return re(ne(K(e,n),K(t,n),n,!0),n)}function oe(e,t){return"string"==typeof e?e=re(K(e,t),t):"object"===n(e)&&(e=K(re(e,t),t)),e}function ae(e,t,r){return"string"==typeof e?e=re(K(e,r),r):"object"===n(e)&&(e=re(e,r)),"string"==typeof t?t=re(K(t,r),r):"object"===n(t)&&(t=re(t,r)),e===t}function se(e,t){return e&&e.toString().replace(t&&t.iri?u.ESCAPE:c.ESCAPE,B)}function ce(e,t){return e&&e.toString().replace(t&&t.iri?u.PCT_ENCODED:c.PCT_ENCODED,$)}var ue={scheme:"http",domainHost:!0,parse:function(e,t){return e.host||(e.error=e.error||"HTTP URIs must have a host."),e},serialize:function(e,t){var r="https"===String(e.scheme).toLowerCase();return e.port!==(r?443:80)&&""!==e.port||(e.port=void 0),e.path||(e.path="/"),e}},le={scheme:"https",domainHost:ue.domainHost,parse:ue.parse,serialize:ue.serialize};function fe(e){return"boolean"==typeof e.secure?e.secure:"wss"===String(e.scheme).toLowerCase()}var he={scheme:"ws",domainHost:!0,parse:function(e,t){var r=e;return r.secure=fe(r),r.resourceName=(r.path||"/")+(r.query?"?"+r.query:""),r.path=void 0,r.query=void 0,r},serialize:function(e,t){if(e.port!==(fe(e)?443:80)&&""!==e.port||(e.port=void 0),"boolean"==typeof e.secure&&(e.scheme=e.secure?"wss":"ws",e.secure=void 0),e.resourceName){var r=e.resourceName.split("?"),n=l(r,2),i=n[0],o=n[1];e.path=i&&"/"!==i?i:void 0,e.query=o,e.resourceName=void 0}return e.fragment=void 0,e}},pe={scheme:"wss",domainHost:he.domainHost,parse:he.parse,serialize:he.serialize},de={},me="[A-Za-z0-9\\-\\.\\_\\~\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]",ge="[0-9A-Fa-f]",ve=r(r("%[EFef]"+ge+"%"+ge+ge+"%"+ge+ge)+"|"+r("%[89A-Fa-f]"+ge+"%"+ge+ge)+"|"+r("%"+ge+ge)),ye="[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]",be=t("[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]",'[\\"\\\\]'),xe="[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]",we=new RegExp(me,"g"),ke=new RegExp(ve,"g"),Ee=new RegExp(t("[^]",ye,"[\\.]",'[\\"]',be),"g"),Se=new RegExp(t("[^]",me,xe),"g"),Pe=Se;function _e(e){var t=$(e);return t.match(we)?t:e}var Ae={scheme:"mailto",parse:function(e,t){var r=e,n=r.to=r.path?r.path.split(","):[];if(r.path=void 0,r.query){for(var i=!1,o={},a=r.query.split("&"),s=0,c=a.length;s<c;++s){var u=a[s].split("=");switch(u[0]){case"to":for(var l=u[1].split(","),f=0,h=l.length;f<h;++f)n.push(l[f]);break;case"subject":r.subject=ce(u[1],t);break;case"body":r.body=ce(u[1],t);break;default:i=!0,o[ce(u[0],t)]=ce(u[1],t)}}i&&(r.headers=o)}r.query=void 0;for(var p=0,d=n.length;p<d;++p){var m=n[p].split("@");if(m[0]=ce(m[0]),t.unicodeSupport)m[1]=ce(m[1],t).toLowerCase();else try{m[1]=M.toASCII(ce(m[1],t).toLowerCase())}catch(e){r.error=r.error||"Email address's domain name can not be converted to ASCII via punycode: "+e}n[p]=m.join("@")}return r},serialize:function(e,t){var r=e,n=o(e.to);if(n){for(var a=0,s=n.length;a<s;++a){var c=String(n[a]),u=c.lastIndexOf("@"),l=c.slice(0,u).replace(ke,_e).replace(ke,i).replace(Ee,B),f=c.slice(u+1);try{f=t.iri?M.toUnicode(f):M.toASCII(ce(f,t).toLowerCase())}catch(e){r.error=r.error||"Email address's domain name can not be converted to "+(t.iri?"Unicode":"ASCII")+" via punycode: "+e}n[a]=l+"@"+f}r.path=n.join(",")}var h=e.headers=e.headers||{};e.subject&&(h.subject=e.subject),e.body&&(h.body=e.body);var p=[];for(var d in h)h[d]!==de[d]&&p.push(d.replace(ke,_e).replace(ke,i).replace(Se,B)+"="+h[d].replace(ke,_e).replace(ke,i).replace(Pe,B));return p.length&&(r.query=p.join("&")),r}},Ce=/^([^\:]+)\:(.*)/,Fe={scheme:"urn",parse:function(e,t){var r=e.path&&e.path.match(Ce),n=e;if(r){var i=t.scheme||n.scheme||"urn",o=r[1].toLowerCase(),a=r[2],s=i+":"+(t.nid||o),c=N[s];n.nid=o,n.nss=a,n.path=void 0,c&&(n=c.parse(n,t))}else n.error=n.error||"URN can not be parsed.";return n},serialize:function(e,t){var r=t.scheme||e.scheme||"urn",n=e.nid,i=r+":"+(t.nid||n),o=N[i];o&&(e=o.serialize(e,t));var a=e,s=e.nss;return a.path=(n||t.nid)+":"+s,a}},De=/^[0-9A-Fa-f]{8}(?:\-[0-9A-Fa-f]{4}){3}\-[0-9A-Fa-f]{12}$/,Oe={scheme:"urn:uuid",parse:function(e,t){var r=e;return r.uuid=r.nss,r.nss=void 0,t.tolerant||r.uuid&&r.uuid.match(De)||(r.error=r.error||"UUID is not valid."),r},serialize:function(e,t){var r=e;return r.nss=(e.uuid||"").toLowerCase(),r}};N[ue.scheme]=ue,N[le.scheme]=le,N[he.scheme]=he,N[pe.scheme]=pe,N[Ae.scheme]=Ae,N[Fe.scheme]=Fe,N[Oe.scheme]=Oe,e.SCHEMES=N,e.pctEncChar=B,e.pctDecChars=$,e.parse=K,e.removeDotSegments=te,e.serialize=re,e.resolveComponents=ne,e.resolve=ie,e.normalize=oe,e.equal=ae,e.escapeComponent=se,e.unescapeComponent=ce,Object.defineProperty(e,"__esModule",{value:!0})}(ue.exports);var le=function e(t,r){if(t===r)return!0;if(t&&r&&"object"==typeof t&&"object"==typeof r){if(t.constructor!==r.constructor)return!1;var n,i,o;if(Array.isArray(t)){if((n=t.length)!=r.length)return!1;for(i=n;0!=i--;)if(!e(t[i],r[i]))return!1;return!0}if(t.constructor===RegExp)return t.source===r.source&&t.flags===r.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===r.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===r.toString();if((n=(o=Object.keys(t)).length)!==Object.keys(r).length)return!1;for(i=n;0!=i--;)if(!Object.prototype.hasOwnProperty.call(r,o[i]))return!1;for(i=n;0!=i--;){var a=o[i];if(!e(t[a],r[a]))return!1}return!0}return t!=t&&r!=r},fe={copy:function(e,t){for(var r in t=t||{},e)t[r]=e[r];return t},checkDataType:he,checkDataTypes:function(e,t,r){if(1===e.length)return he(e[0],t,r,!0);var n="",i=de(e);for(var o in i.array&&i.object&&(n=i.null?"(":"(!"+t+" || ",n+="typeof "+t+' !== "object")',delete i.null,delete i.array,delete i.object),i.number&&delete i.integer,i)n+=(n?" && ":"")+he(o,t,r,!0);return n},coerceToTypes:function(e,t){if(Array.isArray(t)){for(var r=[],n=0;n<t.length;n++){var i=t[n];(pe[i]||"array"===e&&"array"===i)&&(r[r.length]=i)}if(r.length)return r}else{if(pe[t])return[t];if("array"===e&&"array"===t)return["array"]}},toHash:de,getProperty:ve,escapeQuotes:ye,equal:le,ucs2length:function(e){for(var t,r=0,n=e.length,i=0;i<n;)r++,(t=e.charCodeAt(i++))>=55296&&t<=56319&&i<n&&56320==(64512&(t=e.charCodeAt(i)))&&i++;return r},varOccurences:function(e,t){t+="[^0-9]";var r=e.match(new RegExp(t,"g"));return r?r.length:0},varReplace:function(e,t,r){return t+="([^0-9])",r=r.replace(/\$/g,"$$$$"),e.replace(new RegExp(t,"g"),r+"$1")},schemaHasRules:function(e,t){if("boolean"==typeof e)return!e;for(var r in e)if(t[r])return!0},schemaHasRulesExcept:function(e,t,r){if("boolean"==typeof e)return!e&&"not"!=r;for(var n in e)if(n!=r&&t[n])return!0},schemaUnknownRules:function(e,t){if("boolean"==typeof e)return;for(var r in e)if(!t[r])return r},toQuotedString:be,getPathExpr:function(e,t,r,n){return ke(e,r?"'/' + "+t+(n?"":".replace(/~/g, '~0').replace(/\\//g, '~1')"):n?"'[' + "+t+" + ']'":"'[\\'' + "+t+" + '\\']'")},getPath:function(e,t,r){var n=be(r?"/"+Ee(t):ve(t));return ke(e,n)},getData:function(e,t,r){var n,i,o,a;if(""===e)return"rootData";if("/"==e[0]){if(!xe.test(e))throw new Error("Invalid JSON-pointer: "+e);i=e,o="rootData"}else{if(!(a=e.match(we)))throw new Error("Invalid JSON-pointer: "+e);if(n=+a[1],"#"==(i=a[2])){if(n>=t)throw new Error("Cannot access property/index "+n+" levels up, current level is "+t);return r[t-n]}if(n>t)throw new Error("Cannot access data "+n+" levels up, current level is "+t);if(o="data"+(t-n||""),!i)return o}for(var s=o,c=i.split("/"),u=0;u<c.length;u++){var l=c[u];l&&(o+=ve(Se(l)),s+=" && "+o)}return s},unescapeFragment:function(e){return Se(decodeURIComponent(e))},unescapeJsonPointer:Se,escapeFragment:function(e){return encodeURIComponent(Ee(e))},escapeJsonPointer:Ee};function he(e,t,r,n){var i=n?" !== ":" === ",o=n?" || ":" && ",a=n?"!":"",s=n?"":"!";switch(e){case"null":return t+i+"null";case"array":return a+"Array.isArray("+t+")";case"object":return"("+a+t+o+"typeof "+t+i+'"object"'+o+s+"Array.isArray("+t+"))";case"integer":return"(typeof "+t+i+'"number"'+o+s+"("+t+" % 1)"+o+t+i+t+(r?o+a+"isFinite("+t+")":"")+")";case"number":return"(typeof "+t+i+'"'+e+'"'+(r?o+a+"isFinite("+t+")":"")+")";default:return"typeof "+t+i+'"'+e+'"'}}var pe=de(["string","number","integer","boolean","null"]);function de(e){for(var t={},r=0;r<e.length;r++)t[e[r]]=!0;return t}var me=/^[a-z$_][a-z$_0-9]*$/i,ge=/'|\\/g;function ve(e){return"number"==typeof e?"["+e+"]":me.test(e)?"."+e:"['"+ye(e)+"']"}function ye(e){return e.replace(ge,"\\$&").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\f/g,"\\f").replace(/\t/g,"\\t")}function be(e){return"'"+ye(e)+"'"}var xe=/^\/(?:[^~]|~0|~1)*$/,we=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function ke(e,t){return'""'==e?t:(e+" + "+t).replace(/([^\\])' \+ '/g,"$1")}function Ee(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}function Se(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}var Pe=fe,_e=function(e){Pe.copy(e,this)};var Ae={exports:{}},Ce=Ae.exports=function(e,t,r){"function"==typeof t&&(r=t,t={}),Fe(t,"function"==typeof(r=t.cb||r)?r:r.pre||function(){},r.post||function(){},e,"",e)};function Fe(e,t,r,n,i,o,a,s,c,u){if(n&&"object"==typeof n&&!Array.isArray(n)){for(var l in t(n,i,o,a,s,c,u),n){var f=n[l];if(Array.isArray(f)){if(l in Ce.arrayKeywords)for(var h=0;h<f.length;h++)Fe(e,t,r,f[h],i+"/"+l+"/"+h,o,i,l,n,h)}else if(l in Ce.propsKeywords){if(f&&"object"==typeof f)for(var p in f)Fe(e,t,r,f[p],i+"/"+l+"/"+p.replace(/~/g,"~0").replace(/\//g,"~1"),o,i,l,n,p)}else(l in Ce.keywords||e.allKeys&&!(l in Ce.skipKeywords))&&Fe(e,t,r,f,i+"/"+l,o,i,l,n)}r(n,i,o,a,s,c,u)}}Ce.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0},Ce.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0},Ce.propsKeywords={definitions:!0,properties:!0,patternProperties:!0,dependencies:!0},Ce.skipKeywords={default:!0,enum:!0,const:!0,required:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,multipleOf:!0,maxLength:!0,minLength:!0,pattern:!0,format:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxProperties:!0,minProperties:!0};var De=ue.exports,Oe=le,Te=fe,Re=_e,Ie=Ae.exports,je=Le;function Le(e,t,r){var n=this._refs[r];if("string"==typeof n){if(!this._refs[n])return Le.call(this,e,t,n);n=this._refs[n]}if((n=n||this._schemas[r])instanceof Re)return $e(n.schema,this._opts.inlineRefs)?n.schema:n.validate||this._compile(n);var i,o,a,s=qe.call(this,t,r);return s&&(i=s.schema,t=s.root,a=s.baseId),i instanceof Re?o=i.validate||e.call(this,i.schema,t,void 0,a):void 0!==i&&(o=$e(i,this._opts.inlineRefs)?i:e.call(this,i,t,void 0,a)),o}function qe(e,t){var r=De.parse(t),n=Qe(r),i=He(this._getId(e.schema));if(0===Object.keys(e.schema).length||n!==i){var o=We(n),a=this._refs[o];if("string"==typeof a)return ze.call(this,e,a,r);if(a instanceof Re)a.validate||this._compile(a),e=a;else{if(!((a=this._schemas[o])instanceof Re))return;if(a.validate||this._compile(a),o==We(t))return{schema:a,root:e,baseId:i};e=a}if(!e.schema)return;i=He(this._getId(e.schema))}return Ne.call(this,r,i,e.schema,e)}function ze(e,t,r){var n=qe.call(this,e,t);if(n){var i=n.schema,o=n.baseId;e=n.root;var a=this._getId(i);return a&&(o=Ke(o,a)),Ne.call(this,r,o,i,e)}}Le.normalizeId=We,Le.fullPath=He,Le.url=Ke,Le.ids=function(e){var t=We(this._getId(e)),r={"":t},n={"":He(t,!1)},i={},o=this;return Ie(e,{allKeys:!0},(function(e,t,a,s,c,u,l){if(""!==t){var f=o._getId(e),h=r[s],p=n[s]+"/"+c;if(void 0!==l&&(p+="/"+("number"==typeof l?l:Te.escapeFragment(l))),"string"==typeof f){f=h=We(h?De.resolve(h,f):f);var d=o._refs[f];if("string"==typeof d&&(d=o._refs[d]),d&&d.schema){if(!Oe(e,d.schema))throw new Error('id "'+f+'" resolves to more than one schema')}else if(f!=We(p))if("#"==f[0]){if(i[f]&&!Oe(e,i[f]))throw new Error('id "'+f+'" resolves to more than one schema');i[f]=e}else o._refs[f]=p}r[t]=h,n[t]=p}})),i},Le.inlineRef=$e,Le.schema=qe;var Me=Te.toHash(["properties","patternProperties","enum","dependencies","definitions"]);function Ne(e,t,r,n){if(e.fragment=e.fragment||"","/"==e.fragment.slice(0,1)){for(var i=e.fragment.split("/"),o=1;o<i.length;o++){var a=i[o];if(a){if(void 0===(r=r[a=Te.unescapeFragment(a)]))break;var s;if(!Me[a]&&((s=this._getId(r))&&(t=Ke(t,s)),r.$ref)){var c=Ke(t,r.$ref),u=qe.call(this,n,c);u&&(r=u.schema,n=u.root,t=u.baseId)}}}return void 0!==r&&r!==n.schema?{schema:r,root:n,baseId:t}:void 0}}var Be=Te.toHash(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum"]);function $e(e,t){return!1!==t&&(void 0===t||!0===t?Ue(e):t?Ve(e)<=t:void 0)}function Ue(e){var t;if(Array.isArray(e)){for(var r=0;r<e.length;r++)if("object"==typeof(t=e[r])&&!Ue(t))return!1}else for(var n in e){if("$ref"==n)return!1;if("object"==typeof(t=e[n])&&!Ue(t))return!1}return!0}function Ve(e){var t,r=0;if(Array.isArray(e)){for(var n=0;n<e.length;n++)if("object"==typeof(t=e[n])&&(r+=Ve(t)),r==1/0)return 1/0}else for(var i in e){if("$ref"==i)return 1/0;if(Be[i])r++;else if("object"==typeof(t=e[i])&&(r+=Ve(t)+1),r==1/0)return 1/0}return r}function He(e,t){return!1!==t&&(e=We(e)),Qe(De.parse(e))}function Qe(e){return De.serialize(e).split("#")[0]+"#"}var Ge=/#\/?$/;function We(e){return e?e.replace(Ge,""):""}function Ke(e,t){return t=We(t),De.resolve(e,t)}var Je=je,Ye={Validation:Ze((function(e){this.message="validation failed",this.errors=e,this.ajv=this.validation=!0})),MissingRef:Ze(Xe)};function Xe(e,t,r){this.message=r||Xe.message(e,t),this.missingRef=Je.url(e,t),this.missingSchema=Je.normalizeId(Je.fullPath(this.missingRef))}function Ze(e){return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}Xe.message=function(e,t){return"can't resolve reference "+t+" from id "+e};var et=function(e,t){t||(t={}),"function"==typeof t&&(t={cmp:t});var r,n="boolean"==typeof t.cycles&&t.cycles,i=t.cmp&&(r=t.cmp,function(e){return function(t,n){var i={key:t,value:e[t]},o={key:n,value:e[n]};return r(i,o)}}),o=[];return function e(t){if(t&&t.toJSON&&"function"==typeof t.toJSON&&(t=t.toJSON()),void 0!==t){if("number"==typeof t)return isFinite(t)?""+t:"null";if("object"!=typeof t)return JSON.stringify(t);var r,a;if(Array.isArray(t)){for(a="[",r=0;r<t.length;r++)r&&(a+=","),a+=e(t[r])||"null";return a+"]"}if(null===t)return"null";if(-1!==o.indexOf(t)){if(n)return JSON.stringify("__cycle__");throw new TypeError("Converting circular structure to JSON")}var s=o.push(t)-1,c=Object.keys(t).sort(i&&i(t));for(a="",r=0;r<c.length;r++){var u=c[r],l=e(t[u]);l&&(a&&(a+=","),a+=JSON.stringify(u)+":"+l)}return o.splice(s,1),"{"+a+"}"}}(e)},tt=function(e,t,r){var n="",i=!0===e.schema.$async,o=e.util.schemaHasRulesExcept(e.schema,e.RULES.all,"$ref"),a=e.self._getId(e.schema);if(e.opts.strictKeywords){var s=e.util.schemaUnknownRules(e.schema,e.RULES.keywords);if(s){var c="unknown keyword: "+s;if("log"!==e.opts.strictKeywords)throw new Error(c);e.logger.warn(c)}}if(e.isTop&&(n+=" var validate = ",i&&(e.async=!0,n+="async "),n+="function(data, dataPath, parentData, parentDataProperty, rootData) { 'use strict'; ",a&&(e.opts.sourceCode||e.opts.processCode)&&(n+=" /*# sourceURL="+a+" */ ")),"boolean"==typeof e.schema||!o&&!e.schema.$ref){t="false schema";var u=e.level,l=e.dataLevel,f=e.schema[t],h=e.schemaPath+e.util.getProperty(t),p=e.errSchemaPath+"/"+t,d=!e.opts.allErrors,m="data"+(l||""),g="valid"+u;if(!1===e.schema){e.isTop?d=!0:n+=" var "+g+" = false; ",(J=J||[]).push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'false schema' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(p)+" , params: {} ",!1!==e.opts.messages&&(n+=" , message: 'boolean schema is false' "),e.opts.verbose&&(n+=" , schema: false , parentSchema: validate.schema"+e.schemaPath+" , data: "+m+" "),n+=" } "):n+=" {} ";var v=n;n=J.pop(),!e.compositeRule&&d?e.async?n+=" throw new ValidationError(["+v+"]); ":n+=" validate.errors = ["+v+"]; return false; ":n+=" var err = "+v+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}else e.isTop?n+=i?" return data; ":" validate.errors = null; return true; ":n+=" var "+g+" = true; ";return e.isTop&&(n+=" }; return validate; "),n}if(e.isTop){var y=e.isTop;u=e.level=0,l=e.dataLevel=0,m="data";if(e.rootId=e.resolve.fullPath(e.self._getId(e.root.schema)),e.baseId=e.baseId||e.rootId,delete e.isTop,e.dataPathArr=[""],void 0!==e.schema.default&&e.opts.useDefaults&&e.opts.strictDefaults){var b="default is ignored in the schema root";if("log"!==e.opts.strictDefaults)throw new Error(b);e.logger.warn(b)}n+=" var vErrors = null; ",n+=" var errors = 0; ",n+=" if (rootData === undefined) rootData = data; "}else{u=e.level,m="data"+((l=e.dataLevel)||"");if(a&&(e.baseId=e.resolve.url(e.baseId,a)),i&&!e.async)throw new Error("async schema in sync schema");n+=" var errs_"+u+" = errors;"}g="valid"+u,d=!e.opts.allErrors;var x="",w="",k=e.schema.type,E=Array.isArray(k);if(k&&e.opts.nullable&&!0===e.schema.nullable&&(E?-1==k.indexOf("null")&&(k=k.concat("null")):"null"!=k&&(k=[k,"null"],E=!0)),E&&1==k.length&&(k=k[0],E=!1),e.schema.$ref&&o){if("fail"==e.opts.extendRefs)throw new Error('$ref: validation keywords used in schema at path "'+e.errSchemaPath+'" (see option extendRefs)');!0!==e.opts.extendRefs&&(o=!1,e.logger.warn('$ref: keywords ignored in schema at path "'+e.errSchemaPath+'"'))}if(e.schema.$comment&&e.opts.$comment&&(n+=" "+e.RULES.all.$comment.code(e,"$comment")),k){if(e.opts.coerceTypes)var S=e.util.coerceToTypes(e.opts.coerceTypes,k);var P=e.RULES.types[k];if(S||E||!0===P||P&&!Y(P)){h=e.schemaPath+".type",p=e.errSchemaPath+"/type",h=e.schemaPath+".type",p=e.errSchemaPath+"/type";var _=E?"checkDataTypes":"checkDataType";if(n+=" if ("+e.util[_](k,m,e.opts.strictNumbers,!0)+") { ",S){var A="dataType"+u,C="coerced"+u;n+=" var "+A+" = typeof "+m+"; var "+C+" = undefined; ","array"==e.opts.coerceTypes&&(n+=" if ("+A+" == 'object' && Array.isArray("+m+") && "+m+".length == 1) { "+m+" = "+m+"[0]; "+A+" = typeof "+m+"; if ("+e.util.checkDataType(e.schema.type,m,e.opts.strictNumbers)+") "+C+" = "+m+"; } "),n+=" if ("+C+" !== undefined) ; ";var F=S;if(F)for(var D,O=-1,T=F.length-1;O<T;)"string"==(D=F[O+=1])?n+=" else if ("+A+" == 'number' || "+A+" == 'boolean') "+C+" = '' + "+m+"; else if ("+m+" === null) "+C+" = ''; ":"number"==D||"integer"==D?(n+=" else if ("+A+" == 'boolean' || "+m+" === null || ("+A+" == 'string' && "+m+" && "+m+" == +"+m+" ","integer"==D&&(n+=" && !("+m+" % 1)"),n+=")) "+C+" = +"+m+"; "):"boolean"==D?n+=" else if ("+m+" === 'false' || "+m+" === 0 || "+m+" === null) "+C+" = false; else if ("+m+" === 'true' || "+m+" === 1) "+C+" = true; ":"null"==D?n+=" else if ("+m+" === '' || "+m+" === 0 || "+m+" === false) "+C+" = null; ":"array"==e.opts.coerceTypes&&"array"==D&&(n+=" else if ("+A+" == 'string' || "+A+" == 'number' || "+A+" == 'boolean' || "+m+" == null) "+C+" = ["+m+"]; ");n+=" else { ",(J=J||[]).push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'type' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(p)+" , params: { type: '",n+=E?""+k.join(","):""+k,n+="' } ",!1!==e.opts.messages&&(n+=" , message: 'should be ",n+=E?""+k.join(","):""+k,n+="' "),e.opts.verbose&&(n+=" , schema: validate.schema"+h+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+m+" "),n+=" } "):n+=" {} ";v=n;n=J.pop(),!e.compositeRule&&d?e.async?n+=" throw new ValidationError(["+v+"]); ":n+=" validate.errors = ["+v+"]; return false; ":n+=" var err = "+v+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" } if ("+C+" !== undefined) { ";var R=l?"data"+(l-1||""):"parentData";n+=" "+m+" = "+C+"; ",l||(n+="if ("+R+" !== undefined)"),n+=" "+R+"["+(l?e.dataPathArr[l]:"parentDataProperty")+"] = "+C+"; } "}else{(J=J||[]).push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'type' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(p)+" , params: { type: '",n+=E?""+k.join(","):""+k,n+="' } ",!1!==e.opts.messages&&(n+=" , message: 'should be ",n+=E?""+k.join(","):""+k,n+="' "),e.opts.verbose&&(n+=" , schema: validate.schema"+h+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+m+" "),n+=" } "):n+=" {} ";v=n;n=J.pop(),!e.compositeRule&&d?e.async?n+=" throw new ValidationError(["+v+"]); ":n+=" validate.errors = ["+v+"]; return false; ":n+=" var err = "+v+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}n+=" } "}}if(e.schema.$ref&&!o)n+=" "+e.RULES.all.$ref.code(e,"$ref")+" ",d&&(n+=" } if (errors === ",n+=y?"0":"errs_"+u,n+=") { ",w+="}");else{var I=e.RULES;if(I)for(var j=-1,L=I.length-1;j<L;)if(Y(P=I[j+=1])){if(P.type&&(n+=" if ("+e.util.checkDataType(P.type,m,e.opts.strictNumbers)+") { "),e.opts.useDefaults)if("object"==P.type&&e.schema.properties){f=e.schema.properties;var q=Object.keys(f);if(q)for(var z,M=-1,N=q.length-1;M<N;){if(void 0!==(U=f[z=q[M+=1]]).default){var B=m+e.util.getProperty(z);if(e.compositeRule){if(e.opts.strictDefaults){b="default is ignored for: "+B;if("log"!==e.opts.strictDefaults)throw new Error(b);e.logger.warn(b)}}else n+=" if ("+B+" === undefined ","empty"==e.opts.useDefaults&&(n+=" || "+B+" === null || "+B+" === '' "),n+=" ) "+B+" = ","shared"==e.opts.useDefaults?n+=" "+e.useDefault(U.default)+" ":n+=" "+JSON.stringify(U.default)+" ",n+="; "}}}else if("array"==P.type&&Array.isArray(e.schema.items)){var $=e.schema.items;if($){O=-1;for(var U,V=$.length-1;O<V;)if(void 0!==(U=$[O+=1]).default){B=m+"["+O+"]";if(e.compositeRule){if(e.opts.strictDefaults){b="default is ignored for: "+B;if("log"!==e.opts.strictDefaults)throw new Error(b);e.logger.warn(b)}}else n+=" if ("+B+" === undefined ","empty"==e.opts.useDefaults&&(n+=" || "+B+" === null || "+B+" === '' "),n+=" ) "+B+" = ","shared"==e.opts.useDefaults?n+=" "+e.useDefault(U.default)+" ":n+=" "+JSON.stringify(U.default)+" ",n+="; "}}}var H=P.rules;if(H)for(var Q,G=-1,W=H.length-1;G<W;)if(X(Q=H[G+=1])){var K=Q.code(e,Q.keyword,P.type);K&&(n+=" "+K+" ",d&&(x+="}"))}if(d&&(n+=" "+x+" ",x=""),P.type&&(n+=" } ",k&&k===P.type&&!S)){n+=" else { ";var J;h=e.schemaPath+".type",p=e.errSchemaPath+"/type";(J=J||[]).push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'type' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(p)+" , params: { type: '",n+=E?""+k.join(","):""+k,n+="' } ",!1!==e.opts.messages&&(n+=" , message: 'should be ",n+=E?""+k.join(","):""+k,n+="' "),e.opts.verbose&&(n+=" , schema: validate.schema"+h+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+m+" "),n+=" } "):n+=" {} ";v=n;n=J.pop(),!e.compositeRule&&d?e.async?n+=" throw new ValidationError(["+v+"]); ":n+=" validate.errors = ["+v+"]; return false; ":n+=" var err = "+v+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" } "}d&&(n+=" if (errors === ",n+=y?"0":"errs_"+u,n+=") { ",w+="}")}}function Y(e){for(var t=e.rules,r=0;r<t.length;r++)if(X(t[r]))return!0}function X(t){return void 0!==e.schema[t.keyword]||t.implements&&function(t){for(var r=t.implements,n=0;n<r.length;n++)if(void 0!==e.schema[r[n]])return!0}(t)}return d&&(n+=" "+w+" "),y?(i?(n+=" if (errors === 0) return data; ",n+=" else throw new ValidationError(vErrors); "):(n+=" validate.errors = vErrors; ",n+=" return errors === 0; "),n+=" }; return validate;"):n+=" var "+g+" = errors === errs_"+u+";",n},rt=je,nt=fe,it=Ye,ot=et,at=tt,st=nt.ucs2length,ct=le,ut=it.Validation,lt=function e(t,r,n,i){var o=this,a=this._opts,s=[void 0],c={},u=[],l={},f=[],h={},p=[];r=r||{schema:t,refVal:s,refs:c};var d=ft.call(this,t,r,i),m=this._compilations[d.index];if(d.compiling)return m.callValidate=function e(){var t=m.validate,r=t.apply(this,arguments);return e.errors=t.errors,r};var g=this._formats,v=this.RULES;try{var y=x(t,r,n,i);m.validate=y;var b=m.callValidate;return b&&(b.schema=y.schema,b.errors=null,b.refs=y.refs,b.refVal=y.refVal,b.root=y.root,b.$async=y.$async,a.sourceCode&&(b.source=y.source)),y}finally{ht.call(this,t,r,i)}function x(t,n,i,l){var h=!n||n&&n.schema==t;if(n.schema!=r.schema)return e.call(o,t,n,i,l);var d,m=!0===t.$async,y=at({isTop:!0,schema:t,isRoot:h,baseId:l,root:n,schemaPath:"",errSchemaPath:"#",errorPath:'""',MissingRefError:it.MissingRef,RULES:v,validate:at,util:nt,resolve:rt,resolveRef:w,usePattern:S,useDefault:P,useCustomRule:_,opts:a,formats:g,logger:o.logger,self:o});y=yt(s,gt)+yt(u,dt)+yt(f,mt)+yt(p,vt)+y,a.processCode&&(y=a.processCode(y,t));try{d=new Function("self","RULES","formats","root","refVal","defaults","customRules","equal","ucs2length","ValidationError",y)(o,v,g,r,s,f,p,ct,st,ut),s[0]=d}catch(e){throw o.logger.error("Error compiling schema, function code:",y),e}return d.schema=t,d.errors=null,d.refs=c,d.refVal=s,d.root=h?d:n,m&&(d.$async=!0),!0===a.sourceCode&&(d.source={code:y,patterns:u,defaults:f}),d}function w(t,i,u){i=rt.url(t,i);var l,f,h=c[i];if(void 0!==h)return E(l=s[h],f="refVal["+h+"]");if(!u&&r.refs){var p=r.refs[i];if(void 0!==p)return E(l=r.refVal[p],f=k(i,l))}f=k(i);var d=rt.call(o,x,r,i);if(void 0===d){var m=n&&n[i];m&&(d=rt.inlineRef(m,a.inlineRefs)?m:e.call(o,m,r,n,t))}if(void 0!==d)return function(e,t){var r=c[e];s[r]=t}(i,d),E(d,f);!function(e){delete c[e]}(i)}function k(e,t){var r=s.length;return s[r]=t,c[e]=r,"refVal"+r}function E(e,t){return"object"==typeof e||"boolean"==typeof e?{code:t,schema:e,inline:!0}:{code:t,$async:e&&!!e.$async}}function S(e){var t=l[e];return void 0===t&&(t=l[e]=u.length,u[t]=e),"pattern"+t}function P(e){switch(typeof e){case"boolean":case"number":return""+e;case"string":return nt.toQuotedString(e);case"object":if(null===e)return"null";var t=ot(e),r=h[t];return void 0===r&&(r=h[t]=f.length,f[r]=e),"default"+r}}function _(e,t,r,n){if(!1!==o._opts.validateSchema){var i=e.definition.dependencies;if(i&&!i.every((function(e){return Object.prototype.hasOwnProperty.call(r,e)})))throw new Error("parent schema must have all required keywords: "+i.join(","));var s=e.definition.validateSchema;if(s)if(!s(t)){var c="keyword schema is invalid: "+o.errorsText(s.errors);if("log"!=o._opts.validateSchema)throw new Error(c);o.logger.error(c)}}var u,l=e.definition.compile,f=e.definition.inline,h=e.definition.macro;if(l)u=l.call(o,t,r,n);else if(h)u=h.call(o,t,r,n),!1!==a.validateSchema&&o.validateSchema(u,!0);else if(f)u=f.call(o,n,e.keyword,t,r);else if(!(u=e.definition.validate))return;if(void 0===u)throw new Error('custom keyword "'+e.keyword+'"failed to compile');var d=p.length;return p[d]=u,{code:"customRule"+d,validate:u}}};function ft(e,t,r){var n=pt.call(this,e,t,r);return n>=0?{index:n,compiling:!0}:(n=this._compilations.length,this._compilations[n]={schema:e,root:t,baseId:r},{index:n,compiling:!1})}function ht(e,t,r){var n=pt.call(this,e,t,r);n>=0&&this._compilations.splice(n,1)}function pt(e,t,r){for(var n=0;n<this._compilations.length;n++){var i=this._compilations[n];if(i.schema==e&&i.root==t&&i.baseId==r)return n}return-1}function dt(e,t){return"var pattern"+e+" = new RegExp("+nt.toQuotedString(t[e])+");"}function mt(e){return"var default"+e+" = defaults["+e+"];"}function gt(e,t){return void 0===t[e]?"":"var refVal"+e+" = refVal["+e+"];"}function vt(e){return"var customRule"+e+" = customRules["+e+"];"}function yt(e,t){if(!e.length)return"";for(var r="",n=0;n<e.length;n++)r+=t(n,e);return r}var bt={exports:{}},xt=bt.exports=function(){this._cache={}};xt.prototype.put=function(e,t){this._cache[e]=t},xt.prototype.get=function(e){return this._cache[e]},xt.prototype.del=function(e){delete this._cache[e]},xt.prototype.clear=function(){this._cache={}};var wt=fe,kt=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,Et=[0,31,28,31,30,31,30,31,31,30,31,30,31],St=/^(\d\d):(\d\d):(\d\d)(\.\d+)?(z|[+-]\d\d(?::?\d\d)?)?$/i,Pt=/^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i,_t=/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)(?:\?(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,At=/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i,Ct=/^(?:(?:http[s\u017F]?|ftp):\/\/)(?:(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+(?::(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*)?@)?(?:(?!10(?:\.[0-9]{1,3}){3})(?!127(?:\.[0-9]{1,3}){3})(?!169\.254(?:\.[0-9]{1,3}){2})(?!192\.168(?:\.[0-9]{1,3}){2})(?!172\.(?:1[6-9]|2[0-9]|3[01])(?:\.[0-9]{1,3}){2})(?:[1-9][0-9]?|1[0-9][0-9]|2[01][0-9]|22[0-3])(?:\.(?:1?[0-9]{1,2}|2[0-4][0-9]|25[0-5])){2}(?:\.(?:[1-9][0-9]?|1[0-9][0-9]|2[0-4][0-9]|25[0-4]))|(?:(?:(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+-)*(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)(?:\.(?:(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+-)*(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)*(?:\.(?:(?:[a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]){2,})))(?::[0-9]{2,5})?(?:\/(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*)?$/i,Ft=/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,Dt=/^(?:\/(?:[^~/]|~0|~1)*)*$/,Ot=/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,Tt=/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/,Rt=It;function It(e){return e="full"==e?"full":"fast",wt.copy(It[e])}function jt(e){var t=e.match(kt);if(!t)return!1;var r=+t[1],n=+t[2],i=+t[3];return n>=1&&n<=12&&i>=1&&i<=(2==n&&function(e){return e%4==0&&(e%100!=0||e%400==0)}(r)?29:Et[n])}function Lt(e,t){var r=e.match(St);if(!r)return!1;var n=r[1],i=r[2],o=r[3],a=r[5];return(n<=23&&i<=59&&o<=59||23==n&&59==i&&60==o)&&(!t||a)}It.fast={date:/^\d\d\d\d-[0-1]\d-[0-3]\d$/,time:/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,"date-time":/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,uri:/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,"uri-template":At,url:Ct,email:/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i,hostname:Pt,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipv6:/^\s*(?:(?:(?:[0-9a-f]{1,4}:){7}(?:[0-9a-f]{1,4}|:))|(?:(?:[0-9a-f]{1,4}:){6}(?::[0-9a-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-f]{1,4}:){5}(?:(?:(?::[0-9a-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-f]{1,4}:){4}(?:(?:(?::[0-9a-f]{1,4}){1,3})|(?:(?::[0-9a-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-f]{1,4}:){3}(?:(?:(?::[0-9a-f]{1,4}){1,4})|(?:(?::[0-9a-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-f]{1,4}:){2}(?:(?:(?::[0-9a-f]{1,4}){1,5})|(?:(?::[0-9a-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-f]{1,4}:){1}(?:(?:(?::[0-9a-f]{1,4}){1,6})|(?:(?::[0-9a-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-f]{1,4}){1,7})|(?:(?::[0-9a-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*$/i,regex:Nt,uuid:Ft,"json-pointer":Dt,"json-pointer-uri-fragment":Ot,"relative-json-pointer":Tt},It.full={date:jt,time:Lt,"date-time":function(e){var t=e.split(qt);return 2==t.length&&jt(t[0])&&Lt(t[1],!0)},uri:function(e){return zt.test(e)&&_t.test(e)},"uri-reference":/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,"uri-template":At,url:Ct,email:/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,hostname:Pt,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipv6:/^\s*(?:(?:(?:[0-9a-f]{1,4}:){7}(?:[0-9a-f]{1,4}|:))|(?:(?:[0-9a-f]{1,4}:){6}(?::[0-9a-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-f]{1,4}:){5}(?:(?:(?::[0-9a-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-f]{1,4}:){4}(?:(?:(?::[0-9a-f]{1,4}){1,3})|(?:(?::[0-9a-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-f]{1,4}:){3}(?:(?:(?::[0-9a-f]{1,4}){1,4})|(?:(?::[0-9a-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-f]{1,4}:){2}(?:(?:(?::[0-9a-f]{1,4}){1,5})|(?:(?::[0-9a-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-f]{1,4}:){1}(?:(?:(?::[0-9a-f]{1,4}){1,6})|(?:(?::[0-9a-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-f]{1,4}){1,7})|(?:(?::[0-9a-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*$/i,regex:Nt,uuid:Ft,"json-pointer":Dt,"json-pointer-uri-fragment":Ot,"relative-json-pointer":Tt};var qt=/t|\s/i;var zt=/\/|:/;var Mt=/[^\\]\\Z/;function Nt(e){if(Mt.test(e))return!1;try{return new RegExp(e),!0}catch(e){return!1}}var Bt=function(e,t,r){var n,i=" ",o=e.level,a=e.dataLevel,s=e.schema[t],c=e.schemaPath+e.util.getProperty(t),u=e.errSchemaPath+"/"+t,l=!e.opts.allErrors,f="data"+(a||""),h=e.opts.$data&&s&&s.$data;h?(i+=" var schema"+o+" = "+e.util.getData(s.$data,a,e.dataPathArr)+"; ",n="schema"+o):n=s;var p="maximum"==t,d=p?"exclusiveMaximum":"exclusiveMinimum",m=e.schema[d],g=e.opts.$data&&m&&m.$data,v=p?"<":">",y=p?">":"<",b=void 0;if(!h&&"number"!=typeof s&&void 0!==s)throw new Error(t+" must be number");if(!g&&void 0!==m&&"number"!=typeof m&&"boolean"!=typeof m)throw new Error(d+" must be number or boolean");if(g){var x=e.util.getData(m.$data,a,e.dataPathArr),w="exclusive"+o,k="exclType"+o,E="exclIsNumber"+o,S="' + "+(A="op"+o)+" + '";i+=" var schemaExcl"+o+" = "+x+"; ",i+=" var "+w+"; var "+k+" = typeof "+(x="schemaExcl"+o)+"; if ("+k+" != 'boolean' && "+k+" != 'undefined' && "+k+" != 'number') { ";var P;b=d;(P=P||[]).push(i),i="",!1!==e.createErrors?(i+=" { keyword: '"+(b||"_exclusiveLimit")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: {} ",!1!==e.opts.messages&&(i+=" , message: '"+d+" should be boolean' "),e.opts.verbose&&(i+=" , schema: validate.schema"+c+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "),i+=" } "):i+=" {} ";var _=i;i=P.pop(),!e.compositeRule&&l?e.async?i+=" throw new ValidationError(["+_+"]); ":i+=" validate.errors = ["+_+"]; return false; ":i+=" var err = "+_+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+=" } else if ( ",h&&(i+=" ("+n+" !== undefined && typeof "+n+" != 'number') || "),i+=" "+k+" == 'number' ? ( ("+w+" = "+n+" === undefined || "+x+" "+v+"= "+n+") ? "+f+" "+y+"= "+x+" : "+f+" "+y+" "+n+" ) : ( ("+w+" = "+x+" === true) ? "+f+" "+y+"= "+n+" : "+f+" "+y+" "+n+" ) || "+f+" !== "+f+") { var op"+o+" = "+w+" ? '"+v+"' : '"+v+"='; ",void 0===s&&(b=d,u=e.errSchemaPath+"/"+d,n=x,h=g)}else{S=v;if((E="number"==typeof m)&&h){var A="'"+S+"'";i+=" if ( ",h&&(i+=" ("+n+" !== undefined && typeof "+n+" != 'number') || "),i+=" ( "+n+" === undefined || "+m+" "+v+"= "+n+" ? "+f+" "+y+"= "+m+" : "+f+" "+y+" "+n+" ) || "+f+" !== "+f+") { "}else{E&&void 0===s?(w=!0,b=d,u=e.errSchemaPath+"/"+d,n=m,y+="="):(E&&(n=Math[p?"min":"max"](m,s)),m===(!E||n)?(w=!0,b=d,u=e.errSchemaPath+"/"+d,y+="="):(w=!1,S+="="));A="'"+S+"'";i+=" if ( ",h&&(i+=" ("+n+" !== undefined && typeof "+n+" != 'number') || "),i+=" "+f+" "+y+" "+n+" || "+f+" !== "+f+") { "}}b=b||t,(P=P||[]).push(i),i="",!1!==e.createErrors?(i+=" { keyword: '"+(b||"_limit")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { comparison: "+A+", limit: "+n+", exclusive: "+w+" } ",!1!==e.opts.messages&&(i+=" , message: 'should be "+S+" ",i+=h?"' + "+n:n+"'"),e.opts.verbose&&(i+=" , schema: ",i+=h?"validate.schema"+c:""+s,i+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "),i+=" } "):i+=" {} ";_=i;return i=P.pop(),!e.compositeRule&&l?e.async?i+=" throw new ValidationError(["+_+"]); ":i+=" validate.errors = ["+_+"]; return false; ":i+=" var err = "+_+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+=" } ",l&&(i+=" else { "),i},$t=function(e,t,r){var n,i=" ",o=e.level,a=e.dataLevel,s=e.schema[t],c=e.schemaPath+e.util.getProperty(t),u=e.errSchemaPath+"/"+t,l=!e.opts.allErrors,f="data"+(a||""),h=e.opts.$data&&s&&s.$data;if(h?(i+=" var schema"+o+" = "+e.util.getData(s.$data,a,e.dataPathArr)+"; ",n="schema"+o):n=s,!h&&"number"!=typeof s)throw new Error(t+" must be number");i+="if ( ",h&&(i+=" ("+n+" !== undefined && typeof "+n+" != 'number') || "),i+=" "+f+".length "+("maxItems"==t?">":"<")+" "+n+") { ";var p=t,d=d||[];d.push(i),i="",!1!==e.createErrors?(i+=" { keyword: '"+(p||"_limitItems")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { limit: "+n+" } ",!1!==e.opts.messages&&(i+=" , message: 'should NOT have ",i+="maxItems"==t?"more":"fewer",i+=" than ",i+=h?"' + "+n+" + '":""+s,i+=" items' "),e.opts.verbose&&(i+=" , schema: ",i+=h?"validate.schema"+c:""+s,i+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "),i+=" } "):i+=" {} ";var m=i;return i=d.pop(),!e.compositeRule&&l?e.async?i+=" throw new ValidationError(["+m+"]); ":i+=" validate.errors = ["+m+"]; return false; ":i+=" var err = "+m+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+="} ",l&&(i+=" else { "),i},Ut=function(e,t,r){var n,i=" ",o=e.level,a=e.dataLevel,s=e.schema[t],c=e.schemaPath+e.util.getProperty(t),u=e.errSchemaPath+"/"+t,l=!e.opts.allErrors,f="data"+(a||""),h=e.opts.$data&&s&&s.$data;if(h?(i+=" var schema"+o+" = "+e.util.getData(s.$data,a,e.dataPathArr)+"; ",n="schema"+o):n=s,!h&&"number"!=typeof s)throw new Error(t+" must be number");var p="maxLength"==t?">":"<";i+="if ( ",h&&(i+=" ("+n+" !== undefined && typeof "+n+" != 'number') || "),!1===e.opts.unicode?i+=" "+f+".length ":i+=" ucs2length("+f+") ",i+=" "+p+" "+n+") { ";var d=t,m=m||[];m.push(i),i="",!1!==e.createErrors?(i+=" { keyword: '"+(d||"_limitLength")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { limit: "+n+" } ",!1!==e.opts.messages&&(i+=" , message: 'should NOT be ",i+="maxLength"==t?"longer":"shorter",i+=" than ",i+=h?"' + "+n+" + '":""+s,i+=" characters' "),e.opts.verbose&&(i+=" , schema: ",i+=h?"validate.schema"+c:""+s,i+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "),i+=" } "):i+=" {} ";var g=i;return i=m.pop(),!e.compositeRule&&l?e.async?i+=" throw new ValidationError(["+g+"]); ":i+=" validate.errors = ["+g+"]; return false; ":i+=" var err = "+g+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+="} ",l&&(i+=" else { "),i},Vt=function(e,t,r){var n,i=" ",o=e.level,a=e.dataLevel,s=e.schema[t],c=e.schemaPath+e.util.getProperty(t),u=e.errSchemaPath+"/"+t,l=!e.opts.allErrors,f="data"+(a||""),h=e.opts.$data&&s&&s.$data;if(h?(i+=" var schema"+o+" = "+e.util.getData(s.$data,a,e.dataPathArr)+"; ",n="schema"+o):n=s,!h&&"number"!=typeof s)throw new Error(t+" must be number");i+="if ( ",h&&(i+=" ("+n+" !== undefined && typeof "+n+" != 'number') || "),i+=" Object.keys("+f+").length "+("maxProperties"==t?">":"<")+" "+n+") { ";var p=t,d=d||[];d.push(i),i="",!1!==e.createErrors?(i+=" { keyword: '"+(p||"_limitProperties")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { limit: "+n+" } ",!1!==e.opts.messages&&(i+=" , message: 'should NOT have ",i+="maxProperties"==t?"more":"fewer",i+=" than ",i+=h?"' + "+n+" + '":""+s,i+=" properties' "),e.opts.verbose&&(i+=" , schema: ",i+=h?"validate.schema"+c:""+s,i+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "),i+=" } "):i+=" {} ";var m=i;return i=d.pop(),!e.compositeRule&&l?e.async?i+=" throw new ValidationError(["+m+"]); ":i+=" validate.errors = ["+m+"]; return false; ":i+=" var err = "+m+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+="} ",l&&(i+=" else { "),i},Ht={$ref:function(e,t,r){var n,i,o=" ",a=e.level,s=e.dataLevel,c=e.schema[t],u=e.errSchemaPath+"/"+t,l=!e.opts.allErrors,f="data"+(s||""),h="valid"+a;if("#"==c||"#/"==c)e.isRoot?(n=e.async,i="validate"):(n=!0===e.root.schema.$async,i="root.refVal[0]");else{var p=e.resolveRef(e.baseId,c,e.isRoot);if(void 0===p){var d=e.MissingRefError.message(e.baseId,c);if("fail"==e.opts.missingRefs){e.logger.error(d),(y=y||[]).push(o),o="",!1!==e.createErrors?(o+=" { keyword: '$ref' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { ref: '"+e.util.escapeQuotes(c)+"' } ",!1!==e.opts.messages&&(o+=" , message: 'can\\'t resolve reference "+e.util.escapeQuotes(c)+"' "),e.opts.verbose&&(o+=" , schema: "+e.util.toQuotedString(c)+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "),o+=" } "):o+=" {} ";var m=o;o=y.pop(),!e.compositeRule&&l?e.async?o+=" throw new ValidationError(["+m+"]); ":o+=" validate.errors = ["+m+"]; return false; ":o+=" var err = "+m+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",l&&(o+=" if (false) { ")}else{if("ignore"!=e.opts.missingRefs)throw new e.MissingRefError(e.baseId,c,d);e.logger.warn(d),l&&(o+=" if (true) { ")}}else if(p.inline){var g=e.util.copy(e);g.level++;var v="valid"+g.level;g.schema=p.schema,g.schemaPath="",g.errSchemaPath=c,o+=" "+e.validate(g).replace(/validate\.schema/g,p.code)+" ",l&&(o+=" if ("+v+") { ")}else n=!0===p.$async||e.async&&!1!==p.$async,i=p.code}if(i){var y;(y=y||[]).push(o),o="",e.opts.passContext?o+=" "+i+".call(this, ":o+=" "+i+"( ",o+=" "+f+", (dataPath || '')",'""'!=e.errorPath&&(o+=" + "+e.errorPath);var b=o+=" , "+(s?"data"+(s-1||""):"parentData")+" , "+(s?e.dataPathArr[s]:"parentDataProperty")+", rootData) ";if(o=y.pop(),n){if(!e.async)throw new Error("async schema referenced by sync schema");l&&(o+=" var "+h+"; "),o+=" try { await "+b+"; ",l&&(o+=" "+h+" = true; "),o+=" } catch (e) { if (!(e instanceof ValidationError)) throw e; if (vErrors === null) vErrors = e.errors; else vErrors = vErrors.concat(e.errors); errors = vErrors.length; ",l&&(o+=" "+h+" = false; "),o+=" } ",l&&(o+=" if ("+h+") { ")}else o+=" if (!"+b+") { if (vErrors === null) vErrors = "+i+".errors; else vErrors = vErrors.concat("+i+".errors); errors = vErrors.length; } ",l&&(o+=" else { ")}return o},allOf:function(e,t,r){var n=" ",i=e.schema[t],o=e.schemaPath+e.util.getProperty(t),a=e.errSchemaPath+"/"+t,s=!e.opts.allErrors,c=e.util.copy(e),u="";c.level++;var l="valid"+c.level,f=c.baseId,h=!0,p=i;if(p)for(var d,m=-1,g=p.length-1;m<g;)d=p[m+=1],(e.opts.strictKeywords?"object"==typeof d&&Object.keys(d).length>0||!1===d:e.util.schemaHasRules(d,e.RULES.all))&&(h=!1,c.schema=d,c.schemaPath=o+"["+m+"]",c.errSchemaPath=a+"/"+m,n+=" "+e.validate(c)+" ",c.baseId=f,s&&(n+=" if ("+l+") { ",u+="}"));return s&&(n+=h?" if (true) { ":" "+u.slice(0,-1)+" "),n},anyOf:function(e,t,r){var n=" ",i=e.level,o=e.dataLevel,a=e.schema[t],s=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,u=!e.opts.allErrors,l="data"+(o||""),f="valid"+i,h="errs__"+i,p=e.util.copy(e),d="";p.level++;var m="valid"+p.level,g=a.every((function(t){return e.opts.strictKeywords?"object"==typeof t&&Object.keys(t).length>0||!1===t:e.util.schemaHasRules(t,e.RULES.all)}));if(g){var v=p.baseId;n+=" var "+h+" = errors; var "+f+" = false; ";var y=e.compositeRule;e.compositeRule=p.compositeRule=!0;var b=a;if(b)for(var x,w=-1,k=b.length-1;w<k;)x=b[w+=1],p.schema=x,p.schemaPath=s+"["+w+"]",p.errSchemaPath=c+"/"+w,n+=" "+e.validate(p)+" ",p.baseId=v,n+=" "+f+" = "+f+" || "+m+"; if (!"+f+") { ",d+="}";e.compositeRule=p.compositeRule=y,n+=" "+d+" if (!"+f+") { var err = ",!1!==e.createErrors?(n+=" { keyword: 'anyOf' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: {} ",!1!==e.opts.messages&&(n+=" , message: 'should match some schema in anyOf' "),e.opts.verbose&&(n+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "),n+=" } "):n+=" {} ",n+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&u&&(e.async?n+=" throw new ValidationError(vErrors); ":n+=" validate.errors = vErrors; return false; "),n+=" } else { errors = "+h+"; if (vErrors !== null) { if ("+h+") vErrors.length = "+h+"; else vErrors = null; } ",e.opts.allErrors&&(n+=" } ")}else u&&(n+=" if (true) { ");return n},$comment:function(e,t,r){var n=" ",i=e.schema[t],o=e.errSchemaPath+"/"+t;e.opts.allErrors;var a=e.util.toQuotedString(i);return!0===e.opts.$comment?n+=" console.log("+a+");":"function"==typeof e.opts.$comment&&(n+=" self._opts.$comment("+a+", "+e.util.toQuotedString(o)+", validate.root.schema);"),n},const:function(e,t,r){var n=" ",i=e.level,o=e.dataLevel,a=e.schema[t],s=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,u=!e.opts.allErrors,l="data"+(o||""),f="valid"+i,h=e.opts.$data&&a&&a.$data;h&&(n+=" var schema"+i+" = "+e.util.getData(a.$data,o,e.dataPathArr)+"; "),h||(n+=" var schema"+i+" = validate.schema"+s+";"),n+="var "+f+" = equal("+l+", schema"+i+"); if (!"+f+") { ";var p=p||[];p.push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'const' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { allowedValue: schema"+i+" } ",!1!==e.opts.messages&&(n+=" , message: 'should be equal to constant' "),e.opts.verbose&&(n+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "),n+=" } "):n+=" {} ";var d=n;return n=p.pop(),!e.compositeRule&&u?e.async?n+=" throw new ValidationError(["+d+"]); ":n+=" validate.errors = ["+d+"]; return false; ":n+=" var err = "+d+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" }",u&&(n+=" else { "),n},contains:function(e,t,r){var n=" ",i=e.level,o=e.dataLevel,a=e.schema[t],s=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,u=!e.opts.allErrors,l="data"+(o||""),f="valid"+i,h="errs__"+i,p=e.util.copy(e);p.level++;var d="valid"+p.level,m="i"+i,g=p.dataLevel=e.dataLevel+1,v="data"+g,y=e.baseId,b=e.opts.strictKeywords?"object"==typeof a&&Object.keys(a).length>0||!1===a:e.util.schemaHasRules(a,e.RULES.all);if(n+="var "+h+" = errors;var "+f+";",b){var x=e.compositeRule;e.compositeRule=p.compositeRule=!0,p.schema=a,p.schemaPath=s,p.errSchemaPath=c,n+=" var "+d+" = false; for (var "+m+" = 0; "+m+" < "+l+".length; "+m+"++) { ",p.errorPath=e.util.getPathExpr(e.errorPath,m,e.opts.jsonPointers,!0);var w=l+"["+m+"]";p.dataPathArr[g]=m;var k=e.validate(p);p.baseId=y,e.util.varOccurences(k,v)<2?n+=" "+e.util.varReplace(k,v,w)+" ":n+=" var "+v+" = "+w+"; "+k+" ",n+=" if ("+d+") break; } ",e.compositeRule=p.compositeRule=x,n+=" if (!"+d+") {"}else n+=" if ("+l+".length == 0) {";var E=E||[];E.push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'contains' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: {} ",!1!==e.opts.messages&&(n+=" , message: 'should contain a valid item' "),e.opts.verbose&&(n+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "),n+=" } "):n+=" {} ";var S=n;return n=E.pop(),!e.compositeRule&&u?e.async?n+=" throw new ValidationError(["+S+"]); ":n+=" validate.errors = ["+S+"]; return false; ":n+=" var err = "+S+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" } else { ",b&&(n+=" errors = "+h+"; if (vErrors !== null) { if ("+h+") vErrors.length = "+h+"; else vErrors = null; } "),e.opts.allErrors&&(n+=" } "),n},dependencies:function(e,t,r){var n=" ",i=e.level,o=e.dataLevel,a=e.schema[t],s=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,u=!e.opts.allErrors,l="data"+(o||""),f="errs__"+i,h=e.util.copy(e),p="";h.level++;var d="valid"+h.level,m={},g={},v=e.opts.ownProperties;for(w in a)if("__proto__"!=w){var y=a[w],b=Array.isArray(y)?g:m;b[w]=y}n+="var "+f+" = errors;";var x=e.errorPath;for(var w in n+="var missing"+i+";",g)if((b=g[w]).length){if(n+=" if ( "+l+e.util.getProperty(w)+" !== undefined ",v&&(n+=" && Object.prototype.hasOwnProperty.call("+l+", '"+e.util.escapeQuotes(w)+"') "),u){n+=" && ( ";var k=b;if(k)for(var E=-1,S=k.length-1;E<S;){D=k[E+=1],E&&(n+=" || "),n+=" ( ( "+(I=l+(R=e.util.getProperty(D)))+" === undefined ",v&&(n+=" || ! Object.prototype.hasOwnProperty.call("+l+", '"+e.util.escapeQuotes(D)+"') "),n+=") && (missing"+i+" = "+e.util.toQuotedString(e.opts.jsonPointers?D:R)+") ) "}n+=")) { ";var P="missing"+i,_="' + "+P+" + '";e.opts._errorDataPathProperty&&(e.errorPath=e.opts.jsonPointers?e.util.getPathExpr(x,P,!0):x+" + "+P);var A=A||[];A.push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'dependencies' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { property: '"+e.util.escapeQuotes(w)+"', missingProperty: '"+_+"', depsCount: "+b.length+", deps: '"+e.util.escapeQuotes(1==b.length?b[0]:b.join(", "))+"' } ",!1!==e.opts.messages&&(n+=" , message: 'should have ",1==b.length?n+="property "+e.util.escapeQuotes(b[0]):n+="properties "+e.util.escapeQuotes(b.join(", ")),n+=" when property "+e.util.escapeQuotes(w)+" is present' "),e.opts.verbose&&(n+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "),n+=" } "):n+=" {} ";var C=n;n=A.pop(),!e.compositeRule&&u?e.async?n+=" throw new ValidationError(["+C+"]); ":n+=" validate.errors = ["+C+"]; return false; ":n+=" var err = "+C+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}else{n+=" ) { ";var F=b;if(F)for(var D,O=-1,T=F.length-1;O<T;){D=F[O+=1];var R=e.util.getProperty(D),I=(_=e.util.escapeQuotes(D),l+R);e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPath(x,D,e.opts.jsonPointers)),n+=" if ( "+I+" === undefined ",v&&(n+=" || ! Object.prototype.hasOwnProperty.call("+l+", '"+e.util.escapeQuotes(D)+"') "),n+=") { var err = ",!1!==e.createErrors?(n+=" { keyword: 'dependencies' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { property: '"+e.util.escapeQuotes(w)+"', missingProperty: '"+_+"', depsCount: "+b.length+", deps: '"+e.util.escapeQuotes(1==b.length?b[0]:b.join(", "))+"' } ",!1!==e.opts.messages&&(n+=" , message: 'should have ",1==b.length?n+="property "+e.util.escapeQuotes(b[0]):n+="properties "+e.util.escapeQuotes(b.join(", ")),n+=" when property "+e.util.escapeQuotes(w)+" is present' "),e.opts.verbose&&(n+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "),n+=" } "):n+=" {} ",n+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } "}}n+=" } ",u&&(p+="}",n+=" else { ")}e.errorPath=x;var j=h.baseId;for(var w in m){y=m[w];(e.opts.strictKeywords?"object"==typeof y&&Object.keys(y).length>0||!1===y:e.util.schemaHasRules(y,e.RULES.all))&&(n+=" "+d+" = true; if ( "+l+e.util.getProperty(w)+" !== undefined ",v&&(n+=" && Object.prototype.hasOwnProperty.call("+l+", '"+e.util.escapeQuotes(w)+"') "),n+=") { ",h.schema=y,h.schemaPath=s+e.util.getProperty(w),h.errSchemaPath=c+"/"+e.util.escapeFragment(w),n+=" "+e.validate(h)+" ",h.baseId=j,n+=" } ",u&&(n+=" if ("+d+") { ",p+="}"))}return u&&(n+=" "+p+" if ("+f+" == errors) {"),n},enum:function(e,t,r){var n=" ",i=e.level,o=e.dataLevel,a=e.schema[t],s=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,u=!e.opts.allErrors,l="data"+(o||""),f="valid"+i,h=e.opts.$data&&a&&a.$data;h&&(n+=" var schema"+i+" = "+e.util.getData(a.$data,o,e.dataPathArr)+"; ");var p="i"+i,d="schema"+i;h||(n+=" var "+d+" = validate.schema"+s+";"),n+="var "+f+";",h&&(n+=" if (schema"+i+" === undefined) "+f+" = true; else if (!Array.isArray(schema"+i+")) "+f+" = false; else {"),n+=f+" = false;for (var "+p+"=0; "+p+"<"+d+".length; "+p+"++) if (equal("+l+", "+d+"["+p+"])) { "+f+" = true; break; }",h&&(n+=" } "),n+=" if (!"+f+") { ";var m=m||[];m.push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'enum' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { allowedValues: schema"+i+" } ",!1!==e.opts.messages&&(n+=" , message: 'should be equal to one of the allowed values' "),e.opts.verbose&&(n+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "),n+=" } "):n+=" {} ";var g=n;return n=m.pop(),!e.compositeRule&&u?e.async?n+=" throw new ValidationError(["+g+"]); ":n+=" validate.errors = ["+g+"]; return false; ":n+=" var err = "+g+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" }",u&&(n+=" else { "),n},format:function(e,t,r){var n=" ",i=e.level,o=e.dataLevel,a=e.schema[t],s=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,u=!e.opts.allErrors,l="data"+(o||"");if(!1===e.opts.format)return u&&(n+=" if (true) { "),n;var f,h=e.opts.$data&&a&&a.$data;h?(n+=" var schema"+i+" = "+e.util.getData(a.$data,o,e.dataPathArr)+"; ",f="schema"+i):f=a;var p=e.opts.unknownFormats,d=Array.isArray(p);if(h){n+=" var "+(m="format"+i)+" = formats["+f+"]; var "+(g="isObject"+i)+" = typeof "+m+" == 'object' && !("+m+" instanceof RegExp) && "+m+".validate; var "+(v="formatType"+i)+" = "+g+" && "+m+".type || 'string'; if ("+g+") { ",e.async&&(n+=" var async"+i+" = "+m+".async; "),n+=" "+m+" = "+m+".validate; } if ( ",h&&(n+=" ("+f+" !== undefined && typeof "+f+" != 'string') || "),n+=" (","ignore"!=p&&(n+=" ("+f+" && !"+m+" ",d&&(n+=" && self._opts.unknownFormats.indexOf("+f+") == -1 "),n+=") || "),n+=" ("+m+" && "+v+" == '"+r+"' && !(typeof "+m+" == 'function' ? ",e.async?n+=" (async"+i+" ? await "+m+"("+l+") : "+m+"("+l+")) ":n+=" "+m+"("+l+") ",n+=" : "+m+".test("+l+"))))) {"}else{var m;if(!(m=e.formats[a])){if("ignore"==p)return e.logger.warn('unknown format "'+a+'" ignored in schema at path "'+e.errSchemaPath+'"'),u&&(n+=" if (true) { "),n;if(d&&p.indexOf(a)>=0)return u&&(n+=" if (true) { "),n;throw new Error('unknown format "'+a+'" is used in schema at path "'+e.errSchemaPath+'"')}var g,v=(g="object"==typeof m&&!(m instanceof RegExp)&&m.validate)&&m.type||"string";if(g){var y=!0===m.async;m=m.validate}if(v!=r)return u&&(n+=" if (true) { "),n;if(y){if(!e.async)throw new Error("async format in sync schema");n+=" if (!(await "+(b="formats"+e.util.getProperty(a)+".validate")+"("+l+"))) { "}else{n+=" if (! ";var b="formats"+e.util.getProperty(a);g&&(b+=".validate"),n+="function"==typeof m?" "+b+"("+l+") ":" "+b+".test("+l+") ",n+=") { "}}var x=x||[];x.push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'format' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { format: ",n+=h?""+f:""+e.util.toQuotedString(a),n+=" } ",!1!==e.opts.messages&&(n+=" , message: 'should match format \"",n+=h?"' + "+f+" + '":""+e.util.escapeQuotes(a),n+="\"' "),e.opts.verbose&&(n+=" , schema: ",n+=h?"validate.schema"+s:""+e.util.toQuotedString(a),n+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "),n+=" } "):n+=" {} ";var w=n;return n=x.pop(),!e.compositeRule&&u?e.async?n+=" throw new ValidationError(["+w+"]); ":n+=" validate.errors = ["+w+"]; return false; ":n+=" var err = "+w+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" } ",u&&(n+=" else { "),n},if:function(e,t,r){var n=" ",i=e.level,o=e.dataLevel,a=e.schema[t],s=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,u=!e.opts.allErrors,l="data"+(o||""),f="valid"+i,h="errs__"+i,p=e.util.copy(e);p.level++;var d="valid"+p.level,m=e.schema.then,g=e.schema.else,v=void 0!==m&&(e.opts.strictKeywords?"object"==typeof m&&Object.keys(m).length>0||!1===m:e.util.schemaHasRules(m,e.RULES.all)),y=void 0!==g&&(e.opts.strictKeywords?"object"==typeof g&&Object.keys(g).length>0||!1===g:e.util.schemaHasRules(g,e.RULES.all)),b=p.baseId;if(v||y){var x;p.createErrors=!1,p.schema=a,p.schemaPath=s,p.errSchemaPath=c,n+=" var "+h+" = errors; var "+f+" = true; ";var w=e.compositeRule;e.compositeRule=p.compositeRule=!0,n+=" "+e.validate(p)+" ",p.baseId=b,p.createErrors=!0,n+=" errors = "+h+"; if (vErrors !== null) { if ("+h+") vErrors.length = "+h+"; else vErrors = null; } ",e.compositeRule=p.compositeRule=w,v?(n+=" if ("+d+") { ",p.schema=e.schema.then,p.schemaPath=e.schemaPath+".then",p.errSchemaPath=e.errSchemaPath+"/then",n+=" "+e.validate(p)+" ",p.baseId=b,n+=" "+f+" = "+d+"; ",v&&y?n+=" var "+(x="ifClause"+i)+" = 'then'; ":x="'then'",n+=" } ",y&&(n+=" else { ")):n+=" if (!"+d+") { ",y&&(p.schema=e.schema.else,p.schemaPath=e.schemaPath+".else",p.errSchemaPath=e.errSchemaPath+"/else",n+=" "+e.validate(p)+" ",p.baseId=b,n+=" "+f+" = "+d+"; ",v&&y?n+=" var "+(x="ifClause"+i)+" = 'else'; ":x="'else'",n+=" } "),n+=" if (!"+f+") { var err = ",!1!==e.createErrors?(n+=" { keyword: 'if' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { failingKeyword: "+x+" } ",!1!==e.opts.messages&&(n+=" , message: 'should match \"' + "+x+" + '\" schema' "),e.opts.verbose&&(n+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "),n+=" } "):n+=" {} ",n+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&u&&(e.async?n+=" throw new ValidationError(vErrors); ":n+=" validate.errors = vErrors; return false; "),n+=" } ",u&&(n+=" else { ")}else u&&(n+=" if (true) { ");return n},items:function(e,t,r){var n=" ",i=e.level,o=e.dataLevel,a=e.schema[t],s=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,u=!e.opts.allErrors,l="data"+(o||""),f="valid"+i,h="errs__"+i,p=e.util.copy(e),d="";p.level++;var m="valid"+p.level,g="i"+i,v=p.dataLevel=e.dataLevel+1,y="data"+v,b=e.baseId;if(n+="var "+h+" = errors;var "+f+";",Array.isArray(a)){var x=e.schema.additionalItems;if(!1===x){n+=" "+f+" = "+l+".length <= "+a.length+"; ";var w=c;c=e.errSchemaPath+"/additionalItems",n+=" if (!"+f+") { ";var k=k||[];k.push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'additionalItems' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { limit: "+a.length+" } ",!1!==e.opts.messages&&(n+=" , message: 'should NOT have more than "+a.length+" items' "),e.opts.verbose&&(n+=" , schema: false , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "),n+=" } "):n+=" {} ";var E=n;n=k.pop(),!e.compositeRule&&u?e.async?n+=" throw new ValidationError(["+E+"]); ":n+=" validate.errors = ["+E+"]; return false; ":n+=" var err = "+E+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" } ",c=w,u&&(d+="}",n+=" else { ")}var S=a;if(S)for(var P,_=-1,A=S.length-1;_<A;)if(P=S[_+=1],e.opts.strictKeywords?"object"==typeof P&&Object.keys(P).length>0||!1===P:e.util.schemaHasRules(P,e.RULES.all)){n+=" "+m+" = true; if ("+l+".length > "+_+") { ";var C=l+"["+_+"]";p.schema=P,p.schemaPath=s+"["+_+"]",p.errSchemaPath=c+"/"+_,p.errorPath=e.util.getPathExpr(e.errorPath,_,e.opts.jsonPointers,!0),p.dataPathArr[v]=_;var F=e.validate(p);p.baseId=b,e.util.varOccurences(F,y)<2?n+=" "+e.util.varReplace(F,y,C)+" ":n+=" var "+y+" = "+C+"; "+F+" ",n+=" } ",u&&(n+=" if ("+m+") { ",d+="}")}if("object"==typeof x&&(e.opts.strictKeywords?"object"==typeof x&&Object.keys(x).length>0||!1===x:e.util.schemaHasRules(x,e.RULES.all))){p.schema=x,p.schemaPath=e.schemaPath+".additionalItems",p.errSchemaPath=e.errSchemaPath+"/additionalItems",n+=" "+m+" = true; if ("+l+".length > "+a.length+") { for (var "+g+" = "+a.length+"; "+g+" < "+l+".length; "+g+"++) { ",p.errorPath=e.util.getPathExpr(e.errorPath,g,e.opts.jsonPointers,!0);C=l+"["+g+"]";p.dataPathArr[v]=g;F=e.validate(p);p.baseId=b,e.util.varOccurences(F,y)<2?n+=" "+e.util.varReplace(F,y,C)+" ":n+=" var "+y+" = "+C+"; "+F+" ",u&&(n+=" if (!"+m+") break; "),n+=" } } ",u&&(n+=" if ("+m+") { ",d+="}")}}else if(e.opts.strictKeywords?"object"==typeof a&&Object.keys(a).length>0||!1===a:e.util.schemaHasRules(a,e.RULES.all)){p.schema=a,p.schemaPath=s,p.errSchemaPath=c,n+=" for (var "+g+" = 0; "+g+" < "+l+".length; "+g+"++) { ",p.errorPath=e.util.getPathExpr(e.errorPath,g,e.opts.jsonPointers,!0);C=l+"["+g+"]";p.dataPathArr[v]=g;F=e.validate(p);p.baseId=b,e.util.varOccurences(F,y)<2?n+=" "+e.util.varReplace(F,y,C)+" ":n+=" var "+y+" = "+C+"; "+F+" ",u&&(n+=" if (!"+m+") break; "),n+=" }"}return u&&(n+=" "+d+" if ("+h+" == errors) {"),n},maximum:Bt,minimum:Bt,maxItems:$t,minItems:$t,maxLength:Ut,minLength:Ut,maxProperties:Vt,minProperties:Vt,multipleOf:function(e,t,r){var n,i=" ",o=e.level,a=e.dataLevel,s=e.schema[t],c=e.schemaPath+e.util.getProperty(t),u=e.errSchemaPath+"/"+t,l=!e.opts.allErrors,f="data"+(a||""),h=e.opts.$data&&s&&s.$data;if(h?(i+=" var schema"+o+" = "+e.util.getData(s.$data,a,e.dataPathArr)+"; ",n="schema"+o):n=s,!h&&"number"!=typeof s)throw new Error(t+" must be number");i+="var division"+o+";if (",h&&(i+=" "+n+" !== undefined && ( typeof "+n+" != 'number' || "),i+=" (division"+o+" = "+f+" / "+n+", ",e.opts.multipleOfPrecision?i+=" Math.abs(Math.round(division"+o+") - division"+o+") > 1e-"+e.opts.multipleOfPrecision+" ":i+=" division"+o+" !== parseInt(division"+o+") ",i+=" ) ",h&&(i+=" ) "),i+=" ) { ";var p=p||[];p.push(i),i="",!1!==e.createErrors?(i+=" { keyword: 'multipleOf' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { multipleOf: "+n+" } ",!1!==e.opts.messages&&(i+=" , message: 'should be multiple of ",i+=h?"' + "+n:n+"'"),e.opts.verbose&&(i+=" , schema: ",i+=h?"validate.schema"+c:""+s,i+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "),i+=" } "):i+=" {} ";var d=i;return i=p.pop(),!e.compositeRule&&l?e.async?i+=" throw new ValidationError(["+d+"]); ":i+=" validate.errors = ["+d+"]; return false; ":i+=" var err = "+d+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+="} ",l&&(i+=" else { "),i},not:function(e,t,r){var n=" ",i=e.level,o=e.dataLevel,a=e.schema[t],s=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,u=!e.opts.allErrors,l="data"+(o||""),f="errs__"+i,h=e.util.copy(e);h.level++;var p="valid"+h.level;if(e.opts.strictKeywords?"object"==typeof a&&Object.keys(a).length>0||!1===a:e.util.schemaHasRules(a,e.RULES.all)){h.schema=a,h.schemaPath=s,h.errSchemaPath=c,n+=" var "+f+" = errors; ";var d,m=e.compositeRule;e.compositeRule=h.compositeRule=!0,h.createErrors=!1,h.opts.allErrors&&(d=h.opts.allErrors,h.opts.allErrors=!1),n+=" "+e.validate(h)+" ",h.createErrors=!0,d&&(h.opts.allErrors=d),e.compositeRule=h.compositeRule=m,n+=" if ("+p+") { ";var g=g||[];g.push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'not' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: {} ",!1!==e.opts.messages&&(n+=" , message: 'should NOT be valid' "),e.opts.verbose&&(n+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "),n+=" } "):n+=" {} ";var v=n;n=g.pop(),!e.compositeRule&&u?e.async?n+=" throw new ValidationError(["+v+"]); ":n+=" validate.errors = ["+v+"]; return false; ":n+=" var err = "+v+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" } else { errors = "+f+"; if (vErrors !== null) { if ("+f+") vErrors.length = "+f+"; else vErrors = null; } ",e.opts.allErrors&&(n+=" } ")}else n+=" var err = ",!1!==e.createErrors?(n+=" { keyword: 'not' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: {} ",!1!==e.opts.messages&&(n+=" , message: 'should NOT be valid' "),e.opts.verbose&&(n+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "),n+=" } "):n+=" {} ",n+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",u&&(n+=" if (false) { ");return n},oneOf:function(e,t,r){var n=" ",i=e.level,o=e.dataLevel,a=e.schema[t],s=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,u=!e.opts.allErrors,l="data"+(o||""),f="valid"+i,h="errs__"+i,p=e.util.copy(e),d="";p.level++;var m="valid"+p.level,g=p.baseId,v="prevValid"+i,y="passingSchemas"+i;n+="var "+h+" = errors , "+v+" = false , "+f+" = false , "+y+" = null; ";var b=e.compositeRule;e.compositeRule=p.compositeRule=!0;var x=a;if(x)for(var w,k=-1,E=x.length-1;k<E;)w=x[k+=1],(e.opts.strictKeywords?"object"==typeof w&&Object.keys(w).length>0||!1===w:e.util.schemaHasRules(w,e.RULES.all))?(p.schema=w,p.schemaPath=s+"["+k+"]",p.errSchemaPath=c+"/"+k,n+=" "+e.validate(p)+" ",p.baseId=g):n+=" var "+m+" = true; ",k&&(n+=" if ("+m+" && "+v+") { "+f+" = false; "+y+" = ["+y+", "+k+"]; } else { ",d+="}"),n+=" if ("+m+") { "+f+" = "+v+" = true; "+y+" = "+k+"; }";return e.compositeRule=p.compositeRule=b,n+=d+"if (!"+f+") { var err = ",!1!==e.createErrors?(n+=" { keyword: 'oneOf' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { passingSchemas: "+y+" } ",!1!==e.opts.messages&&(n+=" , message: 'should match exactly one schema in oneOf' "),e.opts.verbose&&(n+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "),n+=" } "):n+=" {} ",n+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&u&&(e.async?n+=" throw new ValidationError(vErrors); ":n+=" validate.errors = vErrors; return false; "),n+="} else { errors = "+h+"; if (vErrors !== null) { if ("+h+") vErrors.length = "+h+"; else vErrors = null; }",e.opts.allErrors&&(n+=" } "),n},pattern:function(e,t,r){var n,i=" ",o=e.level,a=e.dataLevel,s=e.schema[t],c=e.schemaPath+e.util.getProperty(t),u=e.errSchemaPath+"/"+t,l=!e.opts.allErrors,f="data"+(a||""),h=e.opts.$data&&s&&s.$data;h?(i+=" var schema"+o+" = "+e.util.getData(s.$data,a,e.dataPathArr)+"; ",n="schema"+o):n=s,i+="if ( ",h&&(i+=" ("+n+" !== undefined && typeof "+n+" != 'string') || "),i+=" !"+(h?"(new RegExp("+n+"))":e.usePattern(s))+".test("+f+") ) { ";var p=p||[];p.push(i),i="",!1!==e.createErrors?(i+=" { keyword: 'pattern' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { pattern: ",i+=h?""+n:""+e.util.toQuotedString(s),i+=" } ",!1!==e.opts.messages&&(i+=" , message: 'should match pattern \"",i+=h?"' + "+n+" + '":""+e.util.escapeQuotes(s),i+="\"' "),e.opts.verbose&&(i+=" , schema: ",i+=h?"validate.schema"+c:""+e.util.toQuotedString(s),i+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "),i+=" } "):i+=" {} ";var d=i;return i=p.pop(),!e.compositeRule&&l?e.async?i+=" throw new ValidationError(["+d+"]); ":i+=" validate.errors = ["+d+"]; return false; ":i+=" var err = "+d+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+="} ",l&&(i+=" else { "),i},properties:function(e,t,r){var n=" ",i=e.level,o=e.dataLevel,a=e.schema[t],s=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,u=!e.opts.allErrors,l="data"+(o||""),f="errs__"+i,h=e.util.copy(e),p="";h.level++;var d="valid"+h.level,m="key"+i,g="idx"+i,v=h.dataLevel=e.dataLevel+1,y="data"+v,b="dataProperties"+i,x=Object.keys(a||{}).filter(R),w=e.schema.patternProperties||{},k=Object.keys(w).filter(R),E=e.schema.additionalProperties,S=x.length||k.length,P=!1===E,_="object"==typeof E&&Object.keys(E).length,A=e.opts.removeAdditional,C=P||_||A,F=e.opts.ownProperties,D=e.baseId,O=e.schema.required;if(O&&(!e.opts.$data||!O.$data)&&O.length<e.opts.loopRequired)var T=e.util.toHash(O);function R(e){return"__proto__"!==e}if(n+="var "+f+" = errors;var "+d+" = true;",F&&(n+=" var "+b+" = undefined;"),C){if(n+=F?" "+b+" = "+b+" || Object.keys("+l+"); for (var "+g+"=0; "+g+"<"+b+".length; "+g+"++) { var "+m+" = "+b+"["+g+"]; ":" for (var "+m+" in "+l+") { ",S){if(n+=" var isAdditional"+i+" = !(false ",x.length)if(x.length>8)n+=" || validate.schema"+s+".hasOwnProperty("+m+") ";else{var I=x;if(I)for(var j=-1,L=I.length-1;j<L;)K=I[j+=1],n+=" || "+m+" == "+e.util.toQuotedString(K)+" "}if(k.length){var q=k;if(q)for(var z=-1,M=q.length-1;z<M;)oe=q[z+=1],n+=" || "+e.usePattern(oe)+".test("+m+") "}n+=" ); if (isAdditional"+i+") { "}if("all"==A)n+=" delete "+l+"["+m+"]; ";else{var N=e.errorPath,B="' + "+m+" + '";if(e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPathExpr(e.errorPath,m,e.opts.jsonPointers)),P)if(A)n+=" delete "+l+"["+m+"]; ";else{n+=" "+d+" = false; ";var $=c;c=e.errSchemaPath+"/additionalProperties",(re=re||[]).push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'additionalProperties' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { additionalProperty: '"+B+"' } ",!1!==e.opts.messages&&(n+=" , message: '",e.opts._errorDataPathProperty?n+="is an invalid additional property":n+="should NOT have additional properties",n+="' "),e.opts.verbose&&(n+=" , schema: false , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "),n+=" } "):n+=" {} ";var U=n;n=re.pop(),!e.compositeRule&&u?e.async?n+=" throw new ValidationError(["+U+"]); ":n+=" validate.errors = ["+U+"]; return false; ":n+=" var err = "+U+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",c=$,u&&(n+=" break; ")}else if(_)if("failing"==A){n+=" var "+f+" = errors; ";var V=e.compositeRule;e.compositeRule=h.compositeRule=!0,h.schema=E,h.schemaPath=e.schemaPath+".additionalProperties",h.errSchemaPath=e.errSchemaPath+"/additionalProperties",h.errorPath=e.opts._errorDataPathProperty?e.errorPath:e.util.getPathExpr(e.errorPath,m,e.opts.jsonPointers);var H=l+"["+m+"]";h.dataPathArr[v]=m;var Q=e.validate(h);h.baseId=D,e.util.varOccurences(Q,y)<2?n+=" "+e.util.varReplace(Q,y,H)+" ":n+=" var "+y+" = "+H+"; "+Q+" ",n+=" if (!"+d+") { errors = "+f+"; if (validate.errors !== null) { if (errors) validate.errors.length = errors; else validate.errors = null; } delete "+l+"["+m+"]; } ",e.compositeRule=h.compositeRule=V}else{h.schema=E,h.schemaPath=e.schemaPath+".additionalProperties",h.errSchemaPath=e.errSchemaPath+"/additionalProperties",h.errorPath=e.opts._errorDataPathProperty?e.errorPath:e.util.getPathExpr(e.errorPath,m,e.opts.jsonPointers);H=l+"["+m+"]";h.dataPathArr[v]=m;Q=e.validate(h);h.baseId=D,e.util.varOccurences(Q,y)<2?n+=" "+e.util.varReplace(Q,y,H)+" ":n+=" var "+y+" = "+H+"; "+Q+" ",u&&(n+=" if (!"+d+") break; ")}e.errorPath=N}S&&(n+=" } "),n+=" } ",u&&(n+=" if ("+d+") { ",p+="}")}var G=e.opts.useDefaults&&!e.compositeRule;if(x.length){var W=x;if(W)for(var K,J=-1,Y=W.length-1;J<Y;){var X=a[K=W[J+=1]];if(e.opts.strictKeywords?"object"==typeof X&&Object.keys(X).length>0||!1===X:e.util.schemaHasRules(X,e.RULES.all)){var Z=e.util.getProperty(K),ee=(H=l+Z,G&&void 0!==X.default);h.schema=X,h.schemaPath=s+Z,h.errSchemaPath=c+"/"+e.util.escapeFragment(K),h.errorPath=e.util.getPath(e.errorPath,K,e.opts.jsonPointers),h.dataPathArr[v]=e.util.toQuotedString(K);Q=e.validate(h);if(h.baseId=D,e.util.varOccurences(Q,y)<2){Q=e.util.varReplace(Q,y,H);var te=H}else{te=y;n+=" var "+y+" = "+H+"; "}if(ee)n+=" "+Q+" ";else{if(T&&T[K]){n+=" if ( "+te+" === undefined ",F&&(n+=" || ! Object.prototype.hasOwnProperty.call("+l+", '"+e.util.escapeQuotes(K)+"') "),n+=") { "+d+" = false; ";N=e.errorPath,$=c;var re,ne=e.util.escapeQuotes(K);e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPath(N,K,e.opts.jsonPointers)),c=e.errSchemaPath+"/required",(re=re||[]).push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { missingProperty: '"+ne+"' } ",!1!==e.opts.messages&&(n+=" , message: '",e.opts._errorDataPathProperty?n+="is a required property":n+="should have required property \\'"+ne+"\\'",n+="' "),e.opts.verbose&&(n+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "),n+=" } "):n+=" {} ";U=n;n=re.pop(),!e.compositeRule&&u?e.async?n+=" throw new ValidationError(["+U+"]); ":n+=" validate.errors = ["+U+"]; return false; ":n+=" var err = "+U+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",c=$,e.errorPath=N,n+=" } else { "}else u?(n+=" if ( "+te+" === undefined ",F&&(n+=" || ! Object.prototype.hasOwnProperty.call("+l+", '"+e.util.escapeQuotes(K)+"') "),n+=") { "+d+" = true; } else { "):(n+=" if ("+te+" !== undefined ",F&&(n+=" && Object.prototype.hasOwnProperty.call("+l+", '"+e.util.escapeQuotes(K)+"') "),n+=" ) { ");n+=" "+Q+" } "}}u&&(n+=" if ("+d+") { ",p+="}")}}if(k.length){var ie=k;if(ie)for(var oe,ae=-1,se=ie.length-1;ae<se;){X=w[oe=ie[ae+=1]];if(e.opts.strictKeywords?"object"==typeof X&&Object.keys(X).length>0||!1===X:e.util.schemaHasRules(X,e.RULES.all)){h.schema=X,h.schemaPath=e.schemaPath+".patternProperties"+e.util.getProperty(oe),h.errSchemaPath=e.errSchemaPath+"/patternProperties/"+e.util.escapeFragment(oe),n+=F?" "+b+" = "+b+" || Object.keys("+l+"); for (var "+g+"=0; "+g+"<"+b+".length; "+g+"++) { var "+m+" = "+b+"["+g+"]; ":" for (var "+m+" in "+l+") { ",n+=" if ("+e.usePattern(oe)+".test("+m+")) { ",h.errorPath=e.util.getPathExpr(e.errorPath,m,e.opts.jsonPointers);H=l+"["+m+"]";h.dataPathArr[v]=m;Q=e.validate(h);h.baseId=D,e.util.varOccurences(Q,y)<2?n+=" "+e.util.varReplace(Q,y,H)+" ":n+=" var "+y+" = "+H+"; "+Q+" ",u&&(n+=" if (!"+d+") break; "),n+=" } ",u&&(n+=" else "+d+" = true; "),n+=" } ",u&&(n+=" if ("+d+") { ",p+="}")}}}return u&&(n+=" "+p+" if ("+f+" == errors) {"),n},propertyNames:function(e,t,r){var n=" ",i=e.level,o=e.dataLevel,a=e.schema[t],s=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,u=!e.opts.allErrors,l="data"+(o||""),f="errs__"+i,h=e.util.copy(e);h.level++;var p="valid"+h.level;if(n+="var "+f+" = errors;",e.opts.strictKeywords?"object"==typeof a&&Object.keys(a).length>0||!1===a:e.util.schemaHasRules(a,e.RULES.all)){h.schema=a,h.schemaPath=s,h.errSchemaPath=c;var d="key"+i,m="idx"+i,g="i"+i,v="' + "+d+" + '",y="data"+(h.dataLevel=e.dataLevel+1),b="dataProperties"+i,x=e.opts.ownProperties,w=e.baseId;x&&(n+=" var "+b+" = undefined; "),n+=x?" "+b+" = "+b+" || Object.keys("+l+"); for (var "+m+"=0; "+m+"<"+b+".length; "+m+"++) { var "+d+" = "+b+"["+m+"]; ":" for (var "+d+" in "+l+") { ",n+=" var startErrs"+i+" = errors; ";var k=d,E=e.compositeRule;e.compositeRule=h.compositeRule=!0;var S=e.validate(h);h.baseId=w,e.util.varOccurences(S,y)<2?n+=" "+e.util.varReplace(S,y,k)+" ":n+=" var "+y+" = "+k+"; "+S+" ",e.compositeRule=h.compositeRule=E,n+=" if (!"+p+") { for (var "+g+"=startErrs"+i+"; "+g+"<errors; "+g+"++) { vErrors["+g+"].propertyName = "+d+"; } var err = ",!1!==e.createErrors?(n+=" { keyword: 'propertyNames' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { propertyName: '"+v+"' } ",!1!==e.opts.messages&&(n+=" , message: 'property name \\'"+v+"\\' is invalid' "),e.opts.verbose&&(n+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "),n+=" } "):n+=" {} ",n+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&u&&(e.async?n+=" throw new ValidationError(vErrors); ":n+=" validate.errors = vErrors; return false; "),u&&(n+=" break; "),n+=" } }"}return u&&(n+=" if ("+f+" == errors) {"),n},required:function(e,t,r){var n=" ",i=e.level,o=e.dataLevel,a=e.schema[t],s=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,u=!e.opts.allErrors,l="data"+(o||""),f="valid"+i,h=e.opts.$data&&a&&a.$data;h&&(n+=" var schema"+i+" = "+e.util.getData(a.$data,o,e.dataPathArr)+"; ");var p="schema"+i;if(!h)if(a.length<e.opts.loopRequired&&e.schema.properties&&Object.keys(e.schema.properties).length){var d=[],m=a;if(m)for(var g,v=-1,y=m.length-1;v<y;){g=m[v+=1];var b=e.schema.properties[g];b&&(e.opts.strictKeywords?"object"==typeof b&&Object.keys(b).length>0||!1===b:e.util.schemaHasRules(b,e.RULES.all))||(d[d.length]=g)}}else d=a;if(h||d.length){var x=e.errorPath,w=h||d.length>=e.opts.loopRequired,k=e.opts.ownProperties;if(u)if(n+=" var missing"+i+"; ",w){h||(n+=" var "+p+" = validate.schema"+s+"; ");var E="' + "+(F="schema"+i+"["+(_="i"+i)+"]")+" + '";e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPathExpr(x,F,e.opts.jsonPointers)),n+=" var "+f+" = true; ",h&&(n+=" if (schema"+i+" === undefined) "+f+" = true; else if (!Array.isArray(schema"+i+")) "+f+" = false; else {"),n+=" for (var "+_+" = 0; "+_+" < "+p+".length; "+_+"++) { "+f+" = "+l+"["+p+"["+_+"]] !== undefined ",k&&(n+=" && Object.prototype.hasOwnProperty.call("+l+", "+p+"["+_+"]) "),n+="; if (!"+f+") break; } ",h&&(n+=" } "),n+=" if (!"+f+") { ",(C=C||[]).push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { missingProperty: '"+E+"' } ",!1!==e.opts.messages&&(n+=" , message: '",e.opts._errorDataPathProperty?n+="is a required property":n+="should have required property \\'"+E+"\\'",n+="' "),e.opts.verbose&&(n+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "),n+=" } "):n+=" {} ";var S=n;n=C.pop(),!e.compositeRule&&u?e.async?n+=" throw new ValidationError(["+S+"]); ":n+=" validate.errors = ["+S+"]; return false; ":n+=" var err = "+S+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" } else { "}else{n+=" if ( ";var P=d;if(P)for(var _=-1,A=P.length-1;_<A;){O=P[_+=1],_&&(n+=" || "),n+=" ( ( "+(j=l+(I=e.util.getProperty(O)))+" === undefined ",k&&(n+=" || ! Object.prototype.hasOwnProperty.call("+l+", '"+e.util.escapeQuotes(O)+"') "),n+=") && (missing"+i+" = "+e.util.toQuotedString(e.opts.jsonPointers?O:I)+") ) "}n+=") { ";var C;E="' + "+(F="missing"+i)+" + '";e.opts._errorDataPathProperty&&(e.errorPath=e.opts.jsonPointers?e.util.getPathExpr(x,F,!0):x+" + "+F),(C=C||[]).push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { missingProperty: '"+E+"' } ",!1!==e.opts.messages&&(n+=" , message: '",e.opts._errorDataPathProperty?n+="is a required property":n+="should have required property \\'"+E+"\\'",n+="' "),e.opts.verbose&&(n+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "),n+=" } "):n+=" {} ";S=n;n=C.pop(),!e.compositeRule&&u?e.async?n+=" throw new ValidationError(["+S+"]); ":n+=" validate.errors = ["+S+"]; return false; ":n+=" var err = "+S+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" } else { "}else if(w){h||(n+=" var "+p+" = validate.schema"+s+"; ");var F;E="' + "+(F="schema"+i+"["+(_="i"+i)+"]")+" + '";e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPathExpr(x,F,e.opts.jsonPointers)),h&&(n+=" if ("+p+" && !Array.isArray("+p+")) { var err = ",!1!==e.createErrors?(n+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { missingProperty: '"+E+"' } ",!1!==e.opts.messages&&(n+=" , message: '",e.opts._errorDataPathProperty?n+="is a required property":n+="should have required property \\'"+E+"\\'",n+="' "),e.opts.verbose&&(n+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "),n+=" } "):n+=" {} ",n+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } else if ("+p+" !== undefined) { "),n+=" for (var "+_+" = 0; "+_+" < "+p+".length; "+_+"++) { if ("+l+"["+p+"["+_+"]] === undefined ",k&&(n+=" || ! Object.prototype.hasOwnProperty.call("+l+", "+p+"["+_+"]) "),n+=") { var err = ",!1!==e.createErrors?(n+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { missingProperty: '"+E+"' } ",!1!==e.opts.messages&&(n+=" , message: '",e.opts._errorDataPathProperty?n+="is a required property":n+="should have required property \\'"+E+"\\'",n+="' "),e.opts.verbose&&(n+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "),n+=" } "):n+=" {} ",n+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } } ",h&&(n+=" } ")}else{var D=d;if(D)for(var O,T=-1,R=D.length-1;T<R;){O=D[T+=1];var I=e.util.getProperty(O),j=(E=e.util.escapeQuotes(O),l+I);e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPath(x,O,e.opts.jsonPointers)),n+=" if ( "+j+" === undefined ",k&&(n+=" || ! Object.prototype.hasOwnProperty.call("+l+", '"+e.util.escapeQuotes(O)+"') "),n+=") { var err = ",!1!==e.createErrors?(n+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { missingProperty: '"+E+"' } ",!1!==e.opts.messages&&(n+=" , message: '",e.opts._errorDataPathProperty?n+="is a required property":n+="should have required property \\'"+E+"\\'",n+="' "),e.opts.verbose&&(n+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "),n+=" } "):n+=" {} ",n+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } "}}e.errorPath=x}else u&&(n+=" if (true) {");return n},uniqueItems:function(e,t,r){var n,i=" ",o=e.level,a=e.dataLevel,s=e.schema[t],c=e.schemaPath+e.util.getProperty(t),u=e.errSchemaPath+"/"+t,l=!e.opts.allErrors,f="data"+(a||""),h="valid"+o,p=e.opts.$data&&s&&s.$data;if(p?(i+=" var schema"+o+" = "+e.util.getData(s.$data,a,e.dataPathArr)+"; ",n="schema"+o):n=s,(s||p)&&!1!==e.opts.uniqueItems){p&&(i+=" var "+h+"; if ("+n+" === false || "+n+" === undefined) "+h+" = true; else if (typeof "+n+" != 'boolean') "+h+" = false; else { "),i+=" var i = "+f+".length , "+h+" = true , j; if (i > 1) { ";var d=e.schema.items&&e.schema.items.type,m=Array.isArray(d);if(!d||"object"==d||"array"==d||m&&(d.indexOf("object")>=0||d.indexOf("array")>=0))i+=" outer: for (;i--;) { for (j = i; j--;) { if (equal("+f+"[i], "+f+"[j])) { "+h+" = false; break outer; } } } ";else{i+=" var itemIndices = {}, item; for (;i--;) { var item = "+f+"[i]; ";var g="checkDataType"+(m?"s":"");i+=" if ("+e.util[g](d,"item",e.opts.strictNumbers,!0)+") continue; ",m&&(i+=" if (typeof item == 'string') item = '\"' + item; "),i+=" if (typeof itemIndices[item] == 'number') { "+h+" = false; j = itemIndices[item]; break; } itemIndices[item] = i; } "}i+=" } ",p&&(i+=" } "),i+=" if (!"+h+") { ";var v=v||[];v.push(i),i="",!1!==e.createErrors?(i+=" { keyword: 'uniqueItems' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { i: i, j: j } ",!1!==e.opts.messages&&(i+=" , message: 'should NOT have duplicate items (items ## ' + j + ' and ' + i + ' are identical)' "),e.opts.verbose&&(i+=" , schema: ",i+=p?"validate.schema"+c:""+s,i+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "),i+=" } "):i+=" {} ";var y=i;i=v.pop(),!e.compositeRule&&l?e.async?i+=" throw new ValidationError(["+y+"]); ":i+=" validate.errors = ["+y+"]; return false; ":i+=" var err = "+y+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+=" } ",l&&(i+=" else { ")}else l&&(i+=" if (true) { ");return i},validate:tt},Qt=Ht,Gt=fe.toHash,Wt=["multipleOf","maximum","exclusiveMaximum","minimum","exclusiveMinimum","maxLength","minLength","pattern","additionalItems","maxItems","minItems","uniqueItems","maxProperties","minProperties","required","additionalProperties","enum","format","const"],Kt=Ye.MissingRef,Jt=function e(t,r,n){var i=this;if("function"!=typeof this._opts.loadSchema)throw new Error("options.loadSchema should be a function");"function"==typeof r&&(n=r,r=void 0);var o=a(t).then((function(){var e=i._addSchema(t,void 0,r);return e.validate||s(e)}));n&&o.then((function(e){n(null,e)}),n);return o;function a(t){var r=t.$schema;return r&&!i.getSchema(r)?e.call(i,{$ref:r},!0):Promise.resolve()}function s(e){try{return i._compile(e)}catch(t){if(t instanceof Kt)return function(t){var n=t.missingSchema;if(u(n))throw new Error("Schema "+n+" is loaded but "+t.missingRef+" cannot be resolved");var o=i._loadingSchemas[n];o||(o=i._loadingSchemas[n]=i._opts.loadSchema(n)).then(c,c);return o.then((function(e){if(!u(n))return a(e).then((function(){u(n)||i.addSchema(e,n,void 0,r)}))})).then((function(){return s(e)}));function c(){delete i._loadingSchemas[n]}function u(e){return i._refs[e]||i._schemas[e]}}(t);throw t}}};var Yt={$schema:"http://json-schema.org/draft-07/schema#",$id:"http://json-schema.org/draft-07/schema#",title:"Core schema meta-schema",definitions:{schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{allOf:[{$ref:"#/definitions/nonNegativeInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}},type:["object","boolean"],properties:{$id:{type:"string",format:"uri-reference"},$schema:{type:"string",format:"uri"},$ref:{type:"string",format:"uri-reference"},$comment:{type:"string"},title:{type:"string"},description:{type:"string"},default:!0,readOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/definitions/nonNegativeInteger"},minLength:{$ref:"#/definitions/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{$ref:"#"},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:!0},maxItems:{$ref:"#/definitions/nonNegativeInteger"},minItems:{$ref:"#/definitions/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},contains:{$ref:"#"},maxProperties:{$ref:"#/definitions/nonNegativeInteger"},minProperties:{$ref:"#/definitions/nonNegativeIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{$ref:"#"},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},propertyNames:{format:"regex"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},propertyNames:{$ref:"#"},const:!0,enum:{type:"array",items:!0,minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{type:"string"},contentMediaType:{type:"string"},contentEncoding:{type:"string"},if:{$ref:"#"},then:{$ref:"#"},else:{$ref:"#"},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},default:!0},Xt=Yt,Zt={$id:"https://github.com/ajv-validator/ajv/blob/master/lib/definition_schema.js",definitions:{simpleTypes:Xt.definitions.simpleTypes},type:"object",dependencies:{schema:["validate"],$data:["validate"],statements:["inline"],valid:{not:{required:["macro"]}}},properties:{type:Xt.properties.type,schema:{type:"boolean"},statements:{type:"boolean"},dependencies:{type:"array",items:{type:"string"}},metaSchema:{type:"object"},modifying:{type:"boolean"},valid:{type:"boolean"},$data:{type:"boolean"},async:{type:"boolean"},errors:{anyOf:[{type:"boolean"},{const:"full"}]}}},er=/^[a-z_$][a-z0-9_$-]*$/i,tr=function(e,t,r){var n,i,o=" ",a=e.level,s=e.dataLevel,c=e.schema[t],u=e.schemaPath+e.util.getProperty(t),l=e.errSchemaPath+"/"+t,f=!e.opts.allErrors,h="data"+(s||""),p="valid"+a,d="errs__"+a,m=e.opts.$data&&c&&c.$data;m?(o+=" var schema"+a+" = "+e.util.getData(c.$data,s,e.dataPathArr)+"; ",i="schema"+a):i=c;var g,v,y,b,x,w=this,k="definition"+a,E=w.definition,S="";if(m&&E.$data){x="keywordValidate"+a;var P=E.validateSchema;o+=" var "+k+" = RULES.custom['"+t+"'].definition; var "+x+" = "+k+".validate;"}else{if(!(b=e.useCustomRule(w,c,e.schema,e)))return;i="validate.schema"+u,x=b.code,g=E.compile,v=E.inline,y=E.macro}var _=x+".errors",A="i"+a,C="ruleErr"+a,F=E.async;if(F&&!e.async)throw new Error("async keyword in sync schema");if(v||y||(o+=_+" = null;"),o+="var "+d+" = errors;var "+p+";",m&&E.$data&&(S+="}",o+=" if ("+i+" === undefined) { "+p+" = true; } else { ",P&&(S+="}",o+=" "+p+" = "+k+".validateSchema("+i+"); if ("+p+") { ")),v)E.statements?o+=" "+b.validate+" ":o+=" "+p+" = "+b.validate+"; ";else if(y){var D=e.util.copy(e);S="";D.level++;var O="valid"+D.level;D.schema=b.validate,D.schemaPath="";var T=e.compositeRule;e.compositeRule=D.compositeRule=!0;var R=e.validate(D).replace(/validate\.schema/g,x);e.compositeRule=D.compositeRule=T,o+=" "+R}else{(q=q||[]).push(o),o="",o+=" "+x+".call( ",e.opts.passContext?o+="this":o+="self",g||!1===E.schema?o+=" , "+h+" ":o+=" , "+i+" , "+h+" , validate.schema"+e.schemaPath+" ",o+=" , (dataPath || '')",'""'!=e.errorPath&&(o+=" + "+e.errorPath);var I=s?"data"+(s-1||""):"parentData",j=s?e.dataPathArr[s]:"parentDataProperty",L=o+=" , "+I+" , "+j+" , rootData ) ";o=q.pop(),!1===E.errors?(o+=" "+p+" = ",F&&(o+="await "),o+=L+"; "):o+=F?" var "+(_="customErrors"+a)+" = null; try { "+p+" = await "+L+"; } catch (e) { "+p+" = false; if (e instanceof ValidationError) "+_+" = e.errors; else throw e; } ":" "+_+" = null; "+p+" = "+L+"; "}if(E.modifying&&(o+=" if ("+I+") "+h+" = "+I+"["+j+"];"),o+=""+S,E.valid)f&&(o+=" if (true) { ");else{var q;o+=" if ( ",void 0===E.valid?(o+=" !",o+=y?""+O:""+p):o+=" "+!E.valid+" ",o+=") { ",n=w.keyword,(q=q||[]).push(o),o="",(q=q||[]).push(o),o="",!1!==e.createErrors?(o+=" { keyword: '"+(n||"custom")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { keyword: '"+w.keyword+"' } ",!1!==e.opts.messages&&(o+=" , message: 'should pass \""+w.keyword+"\" keyword validation' "),e.opts.verbose&&(o+=" , schema: validate.schema"+u+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+h+" "),o+=" } "):o+=" {} ";var z=o;o=q.pop(),!e.compositeRule&&f?e.async?o+=" throw new ValidationError(["+z+"]); ":o+=" validate.errors = ["+z+"]; return false; ":o+=" var err = "+z+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ";var M=o;o=q.pop(),v?E.errors?"full"!=E.errors&&(o+=" for (var "+A+"="+d+"; "+A+"<errors; "+A+"++) { var "+C+" = vErrors["+A+"]; if ("+C+".dataPath === undefined) "+C+".dataPath = (dataPath || '') + "+e.errorPath+"; if ("+C+".schemaPath === undefined) { "+C+'.schemaPath = "'+l+'"; } ',e.opts.verbose&&(o+=" "+C+".schema = "+i+"; "+C+".data = "+h+"; "),o+=" } "):!1===E.errors?o+=" "+M+" ":(o+=" if ("+d+" == errors) { "+M+" } else { for (var "+A+"="+d+"; "+A+"<errors; "+A+"++) { var "+C+" = vErrors["+A+"]; if ("+C+".dataPath === undefined) "+C+".dataPath = (dataPath || '') + "+e.errorPath+"; if ("+C+".schemaPath === undefined) { "+C+'.schemaPath = "'+l+'"; } ',e.opts.verbose&&(o+=" "+C+".schema = "+i+"; "+C+".data = "+h+"; "),o+=" } } "):y?(o+=" var err = ",!1!==e.createErrors?(o+=" { keyword: '"+(n||"custom")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { keyword: '"+w.keyword+"' } ",!1!==e.opts.messages&&(o+=" , message: 'should pass \""+w.keyword+"\" keyword validation' "),e.opts.verbose&&(o+=" , schema: validate.schema"+u+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+h+" "),o+=" } "):o+=" {} ",o+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&f&&(e.async?o+=" throw new ValidationError(vErrors); ":o+=" validate.errors = vErrors; return false; ")):!1===E.errors?o+=" "+M+" ":(o+=" if (Array.isArray("+_+")) { if (vErrors === null) vErrors = "+_+"; else vErrors = vErrors.concat("+_+"); errors = vErrors.length; for (var "+A+"="+d+"; "+A+"<errors; "+A+"++) { var "+C+" = vErrors["+A+"]; if ("+C+".dataPath === undefined) "+C+".dataPath = (dataPath || '') + "+e.errorPath+"; "+C+'.schemaPath = "'+l+'"; ',e.opts.verbose&&(o+=" "+C+".schema = "+i+"; "+C+".data = "+h+"; "),o+=" } } else { "+M+" } "),o+=" } ",f&&(o+=" else { ")}return o},rr=Zt,nr={add:function(e,t){var r=this.RULES;if(r.keywords[e])throw new Error("Keyword "+e+" is already defined");if(!er.test(e))throw new Error("Keyword "+e+" is not a valid identifier");if(t){this.validateKeyword(t,!0);var n=t.type;if(Array.isArray(n))for(var i=0;i<n.length;i++)a(e,n[i],t);else a(e,n,t);var o=t.metaSchema;o&&(t.$data&&this._opts.$data&&(o={anyOf:[o,{$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"}]}),t.validateSchema=this.compile(o,!0))}function a(e,t,n){for(var i,o=0;o<r.length;o++){var a=r[o];if(a.type==t){i=a;break}}i||(i={type:t,rules:[]},r.push(i));var s={keyword:e,definition:n,custom:!0,code:tr,implements:n.implements};i.rules.push(s),r.custom[e]=s}return r.keywords[e]=r.all[e]=!0,this},get:function(e){var t=this.RULES.custom[e];return t?t.definition:this.RULES.keywords[e]||!1},remove:function(e){var t=this.RULES;delete t.keywords[e],delete t.all[e],delete t.custom[e];for(var r=0;r<t.length;r++)for(var n=t[r].rules,i=0;i<n.length;i++)if(n[i].keyword==e){n.splice(i,1);break}return this},validate:function e(t,r){e.errors=null;var n=this._validateKeyword=this._validateKeyword||this.compile(rr,!0);if(n(t))return!0;if(e.errors=n.errors,r)throw new Error("custom keyword definition is invalid: "+this.errorsText(n.errors));return!1}};var ir={$schema:"http://json-schema.org/draft-07/schema#",$id:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",description:"Meta-schema for $data reference (JSON Schema extension proposal)",type:"object",required:["$data"],properties:{$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},additionalProperties:!1},or=lt,ar=je,sr=bt.exports,cr=_e,ur=et,lr=Rt,fr=function(){var e=[{type:"number",rules:[{maximum:["exclusiveMaximum"]},{minimum:["exclusiveMinimum"]},"multipleOf","format"]},{type:"string",rules:["maxLength","minLength","pattern","format"]},{type:"array",rules:["maxItems","minItems","items","contains","uniqueItems"]},{type:"object",rules:["maxProperties","minProperties","required","dependencies","propertyNames",{properties:["additionalProperties","patternProperties"]}]},{rules:["$ref","const","enum","not","anyOf","oneOf","allOf","if"]}],t=["type","$comment"];return e.all=Gt(t),e.types=Gt(["number","integer","string","array","object","boolean","null"]),e.forEach((function(r){r.rules=r.rules.map((function(r){var n;if("object"==typeof r){var i=Object.keys(r)[0];n=r[i],r=i,n.forEach((function(r){t.push(r),e.all[r]=!0}))}return t.push(r),e.all[r]={keyword:r,code:Qt[r],implements:n}})),e.all.$comment={keyword:"$comment",code:Qt.$comment},r.type&&(e.types[r.type]=r)})),e.keywords=Gt(t.concat(["$schema","$id","id","$data","$async","title","description","default","definitions","examples","readOnly","writeOnly","contentMediaType","contentEncoding","additionalItems","then","else"])),e.custom={},e},hr=function(e,t){for(var r=0;r<t.length;r++){e=JSON.parse(JSON.stringify(e));var n,i=t[r].split("/"),o=e;for(n=1;n<i.length;n++)o=o[i[n]];for(n=0;n<Wt.length;n++){var a=Wt[n],s=o[a];s&&(o[a]={anyOf:[s,{$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"}]})}}return e},pr=fe,dr=xr;xr.prototype.validate=function(e,t){var r;if("string"==typeof e){if(!(r=this.getSchema(e)))throw new Error('no schema with key or ref "'+e+'"')}else{var n=this._addSchema(e);r=n.validate||this._compile(n)}var i=r(t);!0!==r.$async&&(this.errors=r.errors);return i},xr.prototype.compile=function(e,t){var r=this._addSchema(e,void 0,t);return r.validate||this._compile(r)},xr.prototype.addSchema=function(e,t,r,n){if(Array.isArray(e)){for(var i=0;i<e.length;i++)this.addSchema(e[i],void 0,r,n);return this}var o=this._getId(e);if(void 0!==o&&"string"!=typeof o)throw new Error("schema id must be string");return _r(this,t=ar.normalizeId(t||o)),this._schemas[t]=this._addSchema(e,r,n,!0),this},xr.prototype.addMetaSchema=function(e,t,r){return this.addSchema(e,t,r,!0),this},xr.prototype.validateSchema=function(e,t){var r=e.$schema;if(void 0!==r&&"string"!=typeof r)throw new Error("$schema must be a string");if(!(r=r||this._opts.defaultMeta||function(e){var t=e._opts.meta;return e._opts.defaultMeta="object"==typeof t?e._getId(t)||t:e.getSchema(vr)?vr:void 0,e._opts.defaultMeta}(this)))return this.logger.warn("meta-schema not available"),this.errors=null,!0;var n=this.validate(r,e);if(!n&&t){var i="schema is invalid: "+this.errorsText();if("log"!=this._opts.validateSchema)throw new Error(i);this.logger.error(i)}return n},xr.prototype.getSchema=function(e){var t=wr(this,e);switch(typeof t){case"object":return t.validate||this._compile(t);case"string":return this.getSchema(t);case"undefined":return function(e,t){var r=ar.schema.call(e,{schema:{}},t);if(r){var n=r.schema,i=r.root,o=r.baseId,a=or.call(e,n,i,void 0,o);return e._fragments[t]=new cr({ref:t,fragment:!0,schema:n,root:i,baseId:o,validate:a}),a}}(this,e)}},xr.prototype.removeSchema=function(e){if(e instanceof RegExp)return kr(this,this._schemas,e),kr(this,this._refs,e),this;switch(typeof e){case"undefined":return kr(this,this._schemas),kr(this,this._refs),this._cache.clear(),this;case"string":var t=wr(this,e);return t&&this._cache.del(t.cacheKey),delete this._schemas[e],delete this._refs[e],this;case"object":var r=this._opts.serialize,n=r?r(e):e;this._cache.del(n);var i=this._getId(e);i&&(i=ar.normalizeId(i),delete this._schemas[i],delete this._refs[i])}return this},xr.prototype.addFormat=function(e,t){"string"==typeof t&&(t=new RegExp(t));return this._formats[e]=t,this},xr.prototype.errorsText=function(e,t){if(!(e=e||this.errors))return"No errors";for(var r=void 0===(t=t||{}).separator?", ":t.separator,n=void 0===t.dataVar?"data":t.dataVar,i="",o=0;o<e.length;o++){var a=e[o];a&&(i+=n+a.dataPath+" "+a.message+r)}return i.slice(0,-r.length)},xr.prototype._addSchema=function(e,t,r,n){if("object"!=typeof e&&"boolean"!=typeof e)throw new Error("schema should be object or boolean");var i=this._opts.serialize,o=i?i(e):e,a=this._cache.get(o);if(a)return a;n=n||!1!==this._opts.addUsedSchema;var s=ar.normalizeId(this._getId(e));s&&n&&_r(this,s);var c,u=!1!==this._opts.validateSchema&&!t;u&&!(c=s&&s==ar.normalizeId(e.$schema))&&this.validateSchema(e,!0);var l=ar.ids.call(this,e),f=new cr({id:s,schema:e,localRefs:l,cacheKey:o,meta:r});"#"!=s[0]&&n&&(this._refs[s]=f);this._cache.put(o,f),u&&c&&this.validateSchema(e,!0);return f},xr.prototype._compile=function(e,t){if(e.compiling)return e.validate=i,i.schema=e.schema,i.errors=null,i.root=t||i,!0===e.schema.$async&&(i.$async=!0),i;var r,n;e.compiling=!0,e.meta&&(r=this._opts,this._opts=this._metaOpts);try{n=or.call(this,e.schema,t,e.localRefs)}catch(t){throw delete e.validate,t}finally{e.compiling=!1,e.meta&&(this._opts=r)}return e.validate=n,e.refs=n.refs,e.refVal=n.refVal,e.root=n.root,n;function i(){var t=e.validate,r=t.apply(this,arguments);return i.errors=t.errors,r}},xr.prototype.compileAsync=Jt;var mr=nr;xr.prototype.addKeyword=mr.add,xr.prototype.getKeyword=mr.get,xr.prototype.removeKeyword=mr.remove,xr.prototype.validateKeyword=mr.validate;var gr=Ye;xr.ValidationError=gr.Validation,xr.MissingRefError=gr.MissingRef,xr.$dataMetaSchema=hr;var vr="http://json-schema.org/draft-07/schema",yr=["removeAdditional","useDefaults","coerceTypes","strictDefaults"],br=["/properties"];function xr(e){if(!(this instanceof xr))return new xr(e);e=this._opts=pr.copy(e)||{},function(e){var t=e._opts.logger;if(!1===t)e.logger={log:Ar,warn:Ar,error:Ar};else{if(void 0===t&&(t=console),!("object"==typeof t&&t.log&&t.warn&&t.error))throw new Error("logger must implement log, warn and error methods");e.logger=t}}(this),this._schemas={},this._refs={},this._fragments={},this._formats=lr(e.format),this._cache=e.cache||new sr,this._loadingSchemas={},this._compilations=[],this.RULES=fr(),this._getId=function(e){switch(e.schemaId){case"auto":return Pr;case"id":return Er;default:return Sr}}(e),e.loopRequired=e.loopRequired||1/0,"property"==e.errorDataPath&&(e._errorDataPathProperty=!0),void 0===e.serialize&&(e.serialize=ur),this._metaOpts=function(e){for(var t=pr.copy(e._opts),r=0;r<yr.length;r++)delete t[yr[r]];return t}(this),e.formats&&function(e){for(var t in e._opts.formats){var r=e._opts.formats[t];e.addFormat(t,r)}}(this),e.keywords&&function(e){for(var t in e._opts.keywords){var r=e._opts.keywords[t];e.addKeyword(t,r)}}(this),function(e){var t;e._opts.$data&&(t=ir,e.addMetaSchema(t,t.$id,!0));if(!1===e._opts.meta)return;var r=Yt;e._opts.$data&&(r=hr(r,br));e.addMetaSchema(r,vr,!0),e._refs["http://json-schema.org/schema"]=vr}(this),"object"==typeof e.meta&&this.addMetaSchema(e.meta),e.nullable&&this.addKeyword("nullable",{metaSchema:{type:"boolean"}}),function(e){var t=e._opts.schemas;if(!t)return;if(Array.isArray(t))e.addSchema(t);else for(var r in t)e.addSchema(t[r],r)}(this)}function wr(e,t){return t=ar.normalizeId(t),e._schemas[t]||e._refs[t]||e._fragments[t]}function kr(e,t,r){for(var n in t){var i=t[n];i.meta||r&&!r.test(n)||(e._cache.del(i.cacheKey),delete t[n])}}function Er(e){return e.$id&&this.logger.warn("schema $id ignored",e.$id),e.id}function Sr(e){return e.id&&this.logger.warn("schema id ignored",e.id),e.$id}function Pr(e){if(e.$id&&e.id&&e.$id!=e.id)throw new Error("schema $id is different from id");return e.$id||e.id}function _r(e,t){if(e._schemas[t]||e._refs[t])throw new Error('schema with key or id "'+t+'" already exists')}function Ar(){}var Cr,Fr={exports:{}},Dr={exports:{}};Dr.exports=(Cr=Cr||function(e,t){var r;if("undefined"!=typeof window&&window.crypto&&(r=window.crypto),"undefined"!=typeof self&&self.crypto&&(r=self.crypto),"undefined"!=typeof globalThis&&globalThis.crypto&&(r=globalThis.crypto),!r&&"undefined"!=typeof window&&window.msCrypto&&(r=window.msCrypto),!r&&void 0!==oe&&oe.crypto&&(r=oe.crypto),!r)try{r=require("crypto")}catch(e){}var n=function(){if(r){if("function"==typeof r.getRandomValues)try{return r.getRandomValues(new Uint32Array(1))[0]}catch(e){}if("function"==typeof r.randomBytes)try{return r.randomBytes(4).readInt32LE()}catch(e){}}throw new Error("Native crypto module could not be used to get secure random number.")},i=Object.create||function(){function e(){}return function(t){var r;return e.prototype=t,r=new e,e.prototype=null,r}}(),o={},a=o.lib={},s=a.Base={extend:function(e){var t=i(this);return e&&t.mixIn(e),t.hasOwnProperty("init")&&this.init!==t.init||(t.init=function(){t.$super.init.apply(this,arguments)}),t.init.prototype=t,t.$super=this,t},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);e.hasOwnProperty("toString")&&(this.toString=e.toString)},clone:function(){return this.init.prototype.extend(this)}},c=a.WordArray=s.extend({init:function(e,r){e=this.words=e||[],this.sigBytes=r!=t?r:4*e.length},toString:function(e){return(e||l).stringify(this)},concat:function(e){var t=this.words,r=e.words,n=this.sigBytes,i=e.sigBytes;if(this.clamp(),n%4)for(var o=0;o<i;o++){var a=r[o>>>2]>>>24-o%4*8&255;t[n+o>>>2]|=a<<24-(n+o)%4*8}else for(var s=0;s<i;s+=4)t[n+s>>>2]=r[s>>>2];return this.sigBytes+=i,this},clamp:function(){var t=this.words,r=this.sigBytes;t[r>>>2]&=4294967295<<32-r%4*8,t.length=e.ceil(r/4)},clone:function(){var e=s.clone.call(this);return e.words=this.words.slice(0),e},random:function(e){for(var t=[],r=0;r<e;r+=4)t.push(n());return new c.init(t,e)}}),u=o.enc={},l=u.Hex={stringify:function(e){for(var t=e.words,r=e.sigBytes,n=[],i=0;i<r;i++){var o=t[i>>>2]>>>24-i%4*8&255;n.push((o>>>4).toString(16)),n.push((15&o).toString(16))}return n.join("")},parse:function(e){for(var t=e.length,r=[],n=0;n<t;n+=2)r[n>>>3]|=parseInt(e.substr(n,2),16)<<24-n%8*4;return new c.init(r,t/2)}},f=u.Latin1={stringify:function(e){for(var t=e.words,r=e.sigBytes,n=[],i=0;i<r;i++){var o=t[i>>>2]>>>24-i%4*8&255;n.push(String.fromCharCode(o))}return n.join("")},parse:function(e){for(var t=e.length,r=[],n=0;n<t;n++)r[n>>>2]|=(255&e.charCodeAt(n))<<24-n%4*8;return new c.init(r,t)}},h=u.Utf8={stringify:function(e){try{return decodeURIComponent(escape(f.stringify(e)))}catch(e){throw new Error("Malformed UTF-8 data")}},parse:function(e){return f.parse(unescape(encodeURIComponent(e)))}},p=a.BufferedBlockAlgorithm=s.extend({reset:function(){this._data=new c.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=h.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var r,n=this._data,i=n.words,o=n.sigBytes,a=this.blockSize,s=o/(4*a),u=(s=t?e.ceil(s):e.max((0|s)-this._minBufferSize,0))*a,l=e.min(4*u,o);if(u){for(var f=0;f<u;f+=a)this._doProcessBlock(i,f);r=i.splice(0,u),n.sigBytes-=l}return new c.init(r,l)},clone:function(){var e=s.clone.call(this);return e._data=this._data.clone(),e},_minBufferSize:0});a.Hasher=p.extend({cfg:s.extend(),init:function(e){this.cfg=this.cfg.extend(e),this.reset()},reset:function(){p.reset.call(this),this._doReset()},update:function(e){return this._append(e),this._process(),this},finalize:function(e){return e&&this._append(e),this._doFinalize()},blockSize:16,_createHelper:function(e){return function(t,r){return new e.init(r).finalize(t)}},_createHmacHelper:function(e){return function(t,r){return new d.HMAC.init(e,r).finalize(t)}}});var d=o.algo={};return o}(Math),Cr);var Or={exports:{}};Or.exports=function(e){return function(){var t=e,r=t.lib.WordArray;function n(e,t,n){for(var i=[],o=0,a=0;a<t;a++)if(a%4){var s=n[e.charCodeAt(a-1)]<<a%4*2|n[e.charCodeAt(a)]>>>6-a%4*2;i[o>>>2]|=s<<24-o%4*8,o++}return r.create(i,o)}t.enc.Base64={stringify:function(e){var t=e.words,r=e.sigBytes,n=this._map;e.clamp();for(var i=[],o=0;o<r;o+=3)for(var a=(t[o>>>2]>>>24-o%4*8&255)<<16|(t[o+1>>>2]>>>24-(o+1)%4*8&255)<<8|t[o+2>>>2]>>>24-(o+2)%4*8&255,s=0;s<4&&o+.75*s<r;s++)i.push(n.charAt(a>>>6*(3-s)&63));var c=n.charAt(64);if(c)for(;i.length%4;)i.push(c);return i.join("")},parse:function(e){var t=e.length,r=this._map,i=this._reverseMap;if(!i){i=this._reverseMap=[];for(var o=0;o<r.length;o++)i[r.charCodeAt(o)]=o}var a=r.charAt(64);if(a){var s=e.indexOf(a);-1!==s&&(t=s)}return n(e,t,i)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}}(),e.enc.Base64}(Dr.exports);var Tr={exports:{}};Tr.exports=function(e){return function(t){var r=e,n=r.lib,i=n.WordArray,o=n.Hasher,a=r.algo,s=[];!function(){for(var e=0;e<64;e++)s[e]=4294967296*t.abs(t.sin(e+1))|0}();var c=a.MD5=o.extend({_doReset:function(){this._hash=new i.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(e,t){for(var r=0;r<16;r++){var n=t+r,i=e[n];e[n]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8)}var o=this._hash.words,a=e[t+0],c=e[t+1],p=e[t+2],d=e[t+3],m=e[t+4],g=e[t+5],v=e[t+6],y=e[t+7],b=e[t+8],x=e[t+9],w=e[t+10],k=e[t+11],E=e[t+12],S=e[t+13],P=e[t+14],_=e[t+15],A=o[0],C=o[1],F=o[2],D=o[3];A=u(A,C,F,D,a,7,s[0]),D=u(D,A,C,F,c,12,s[1]),F=u(F,D,A,C,p,17,s[2]),C=u(C,F,D,A,d,22,s[3]),A=u(A,C,F,D,m,7,s[4]),D=u(D,A,C,F,g,12,s[5]),F=u(F,D,A,C,v,17,s[6]),C=u(C,F,D,A,y,22,s[7]),A=u(A,C,F,D,b,7,s[8]),D=u(D,A,C,F,x,12,s[9]),F=u(F,D,A,C,w,17,s[10]),C=u(C,F,D,A,k,22,s[11]),A=u(A,C,F,D,E,7,s[12]),D=u(D,A,C,F,S,12,s[13]),F=u(F,D,A,C,P,17,s[14]),A=l(A,C=u(C,F,D,A,_,22,s[15]),F,D,c,5,s[16]),D=l(D,A,C,F,v,9,s[17]),F=l(F,D,A,C,k,14,s[18]),C=l(C,F,D,A,a,20,s[19]),A=l(A,C,F,D,g,5,s[20]),D=l(D,A,C,F,w,9,s[21]),F=l(F,D,A,C,_,14,s[22]),C=l(C,F,D,A,m,20,s[23]),A=l(A,C,F,D,x,5,s[24]),D=l(D,A,C,F,P,9,s[25]),F=l(F,D,A,C,d,14,s[26]),C=l(C,F,D,A,b,20,s[27]),A=l(A,C,F,D,S,5,s[28]),D=l(D,A,C,F,p,9,s[29]),F=l(F,D,A,C,y,14,s[30]),A=f(A,C=l(C,F,D,A,E,20,s[31]),F,D,g,4,s[32]),D=f(D,A,C,F,b,11,s[33]),F=f(F,D,A,C,k,16,s[34]),C=f(C,F,D,A,P,23,s[35]),A=f(A,C,F,D,c,4,s[36]),D=f(D,A,C,F,m,11,s[37]),F=f(F,D,A,C,y,16,s[38]),C=f(C,F,D,A,w,23,s[39]),A=f(A,C,F,D,S,4,s[40]),D=f(D,A,C,F,a,11,s[41]),F=f(F,D,A,C,d,16,s[42]),C=f(C,F,D,A,v,23,s[43]),A=f(A,C,F,D,x,4,s[44]),D=f(D,A,C,F,E,11,s[45]),F=f(F,D,A,C,_,16,s[46]),A=h(A,C=f(C,F,D,A,p,23,s[47]),F,D,a,6,s[48]),D=h(D,A,C,F,y,10,s[49]),F=h(F,D,A,C,P,15,s[50]),C=h(C,F,D,A,g,21,s[51]),A=h(A,C,F,D,E,6,s[52]),D=h(D,A,C,F,d,10,s[53]),F=h(F,D,A,C,w,15,s[54]),C=h(C,F,D,A,c,21,s[55]),A=h(A,C,F,D,b,6,s[56]),D=h(D,A,C,F,_,10,s[57]),F=h(F,D,A,C,v,15,s[58]),C=h(C,F,D,A,S,21,s[59]),A=h(A,C,F,D,m,6,s[60]),D=h(D,A,C,F,k,10,s[61]),F=h(F,D,A,C,p,15,s[62]),C=h(C,F,D,A,x,21,s[63]),o[0]=o[0]+A|0,o[1]=o[1]+C|0,o[2]=o[2]+F|0,o[3]=o[3]+D|0},_doFinalize:function(){var e=this._data,r=e.words,n=8*this._nDataBytes,i=8*e.sigBytes;r[i>>>5]|=128<<24-i%32;var o=t.floor(n/4294967296),a=n;r[15+(i+64>>>9<<4)]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),r[14+(i+64>>>9<<4)]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),e.sigBytes=4*(r.length+1),this._process();for(var s=this._hash,c=s.words,u=0;u<4;u++){var l=c[u];c[u]=16711935&(l<<8|l>>>24)|4278255360&(l<<24|l>>>8)}return s},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}});function u(e,t,r,n,i,o,a){var s=e+(t&r|~t&n)+i+a;return(s<<o|s>>>32-o)+t}function l(e,t,r,n,i,o,a){var s=e+(t&n|r&~n)+i+a;return(s<<o|s>>>32-o)+t}function f(e,t,r,n,i,o,a){var s=e+(t^r^n)+i+a;return(s<<o|s>>>32-o)+t}function h(e,t,r,n,i,o,a){var s=e+(r^(t|~n))+i+a;return(s<<o|s>>>32-o)+t}r.MD5=o._createHelper(c),r.HmacMD5=o._createHmacHelper(c)}(Math),e.MD5}(Dr.exports);var Rr={exports:{}},Ir={exports:{}};Ir.exports=function(e){return r=(t=e).lib,n=r.WordArray,i=r.Hasher,o=t.algo,a=[],s=o.SHA1=i.extend({_doReset:function(){this._hash=new n.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var r=this._hash.words,n=r[0],i=r[1],o=r[2],s=r[3],c=r[4],u=0;u<80;u++){if(u<16)a[u]=0|e[t+u];else{var l=a[u-3]^a[u-8]^a[u-14]^a[u-16];a[u]=l<<1|l>>>31}var f=(n<<5|n>>>27)+c+a[u];f+=u<20?1518500249+(i&o|~i&s):u<40?1859775393+(i^o^s):u<60?(i&o|i&s|o&s)-1894007588:(i^o^s)-899497514,c=s,s=o,o=i<<30|i>>>2,i=n,n=f}r[0]=r[0]+n|0,r[1]=r[1]+i|0,r[2]=r[2]+o|0,r[3]=r[3]+s|0,r[4]=r[4]+c|0},_doFinalize:function(){var e=this._data,t=e.words,r=8*this._nDataBytes,n=8*e.sigBytes;return t[n>>>5]|=128<<24-n%32,t[14+(n+64>>>9<<4)]=Math.floor(r/4294967296),t[15+(n+64>>>9<<4)]=r,e.sigBytes=4*t.length,this._process(),this._hash},clone:function(){var e=i.clone.call(this);return e._hash=this._hash.clone(),e}}),t.SHA1=i._createHelper(s),t.HmacSHA1=i._createHmacHelper(s),e.SHA1;var t,r,n,i,o,a,s}(Dr.exports);var jr={exports:{}};jr.exports=function(e){var t,r,n;r=(t=e).lib.Base,n=t.enc.Utf8,t.algo.HMAC=r.extend({init:function(e,t){e=this._hasher=new e.init,"string"==typeof t&&(t=n.parse(t));var r=e.blockSize,i=4*r;t.sigBytes>i&&(t=e.finalize(t)),t.clamp();for(var o=this._oKey=t.clone(),a=this._iKey=t.clone(),s=o.words,c=a.words,u=0;u<r;u++)s[u]^=1549556828,c[u]^=909522486;o.sigBytes=a.sigBytes=i,this.reset()},reset:function(){var e=this._hasher;e.reset(),e.update(this._iKey)},update:function(e){return this._hasher.update(e),this},finalize:function(e){var t=this._hasher,r=t.finalize(e);return t.reset(),t.finalize(this._oKey.clone().concat(r))}})}(Dr.exports),Rr.exports=function(e){return r=(t=e).lib,n=r.Base,i=r.WordArray,o=t.algo,a=o.MD5,s=o.EvpKDF=n.extend({cfg:n.extend({keySize:4,hasher:a,iterations:1}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){for(var r,n=this.cfg,o=n.hasher.create(),a=i.create(),s=a.words,c=n.keySize,u=n.iterations;s.length<c;){r&&o.update(r),r=o.update(e).finalize(t),o.reset();for(var l=1;l<u;l++)r=o.finalize(r),o.reset();a.concat(r)}return a.sigBytes=4*c,a}}),t.EvpKDF=function(e,t,r){return s.create(r).compute(e,t)},e.EvpKDF;var t,r,n,i,o,a,s}(Dr.exports);var Lr={exports:{}};Lr.exports=function(e){e.lib.Cipher||function(t){var r=e,n=r.lib,i=n.Base,o=n.WordArray,a=n.BufferedBlockAlgorithm,s=r.enc;s.Utf8;var c=s.Base64,u=r.algo.EvpKDF,l=n.Cipher=a.extend({cfg:i.extend(),createEncryptor:function(e,t){return this.create(this._ENC_XFORM_MODE,e,t)},createDecryptor:function(e,t){return this.create(this._DEC_XFORM_MODE,e,t)},init:function(e,t,r){this.cfg=this.cfg.extend(r),this._xformMode=e,this._key=t,this.reset()},reset:function(){a.reset.call(this),this._doReset()},process:function(e){return this._append(e),this._process()},finalize:function(e){return e&&this._append(e),this._doFinalize()},keySize:4,ivSize:4,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function e(e){return"string"==typeof e?b:v}return function(t){return{encrypt:function(r,n,i){return e(n).encrypt(t,r,n,i)},decrypt:function(r,n,i){return e(n).decrypt(t,r,n,i)}}}}()});n.StreamCipher=l.extend({_doFinalize:function(){return this._process(!0)},blockSize:1});var f=r.mode={},h=n.BlockCipherMode=i.extend({createEncryptor:function(e,t){return this.Encryptor.create(e,t)},createDecryptor:function(e,t){return this.Decryptor.create(e,t)},init:function(e,t){this._cipher=e,this._iv=t}}),p=f.CBC=function(){var e=h.extend();function r(e,r,n){var i,o=this._iv;o?(i=o,this._iv=t):i=this._prevBlock;for(var a=0;a<n;a++)e[r+a]^=i[a]}return e.Encryptor=e.extend({processBlock:function(e,t){var n=this._cipher,i=n.blockSize;r.call(this,e,t,i),n.encryptBlock(e,t),this._prevBlock=e.slice(t,t+i)}}),e.Decryptor=e.extend({processBlock:function(e,t){var n=this._cipher,i=n.blockSize,o=e.slice(t,t+i);n.decryptBlock(e,t),r.call(this,e,t,i),this._prevBlock=o}}),e}(),d=(r.pad={}).Pkcs7={pad:function(e,t){for(var r=4*t,n=r-e.sigBytes%r,i=n<<24|n<<16|n<<8|n,a=[],s=0;s<n;s+=4)a.push(i);var c=o.create(a,n);e.concat(c)},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}};n.BlockCipher=l.extend({cfg:l.cfg.extend({mode:p,padding:d}),reset:function(){var e;l.reset.call(this);var t=this.cfg,r=t.iv,n=t.mode;this._xformMode==this._ENC_XFORM_MODE?e=n.createEncryptor:(e=n.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==e?this._mode.init(this,r&&r.words):(this._mode=e.call(n,this,r&&r.words),this._mode.__creator=e)},_doProcessBlock:function(e,t){this._mode.processBlock(e,t)},_doFinalize:function(){var e,t=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(t.pad(this._data,this.blockSize),e=this._process(!0)):(e=this._process(!0),t.unpad(e)),e},blockSize:4});var m=n.CipherParams=i.extend({init:function(e){this.mixIn(e)},toString:function(e){return(e||this.formatter).stringify(this)}}),g=(r.format={}).OpenSSL={stringify:function(e){var t=e.ciphertext,r=e.salt;return(r?o.create([1398893684,1701076831]).concat(r).concat(t):t).toString(c)},parse:function(e){var t,r=c.parse(e),n=r.words;return 1398893684==n[0]&&1701076831==n[1]&&(t=o.create(n.slice(2,4)),n.splice(0,4),r.sigBytes-=16),m.create({ciphertext:r,salt:t})}},v=n.SerializableCipher=i.extend({cfg:i.extend({format:g}),encrypt:function(e,t,r,n){n=this.cfg.extend(n);var i=e.createEncryptor(r,n),o=i.finalize(t),a=i.cfg;return m.create({ciphertext:o,key:r,iv:a.iv,algorithm:e,mode:a.mode,padding:a.padding,blockSize:e.blockSize,formatter:n.format})},decrypt:function(e,t,r,n){return n=this.cfg.extend(n),t=this._parse(t,n.format),e.createDecryptor(r,n).finalize(t.ciphertext)},_parse:function(e,t){return"string"==typeof e?t.parse(e,this):e}}),y=(r.kdf={}).OpenSSL={execute:function(e,t,r,n){n||(n=o.random(8));var i=u.create({keySize:t+r}).compute(e,n),a=o.create(i.words.slice(t),4*r);return i.sigBytes=4*t,m.create({key:i,iv:a,salt:n})}},b=n.PasswordBasedCipher=v.extend({cfg:v.cfg.extend({kdf:y}),encrypt:function(e,t,r,n){var i=(n=this.cfg.extend(n)).kdf.execute(r,e.keySize,e.ivSize);n.iv=i.iv;var o=v.encrypt.call(this,e,t,i.key,n);return o.mixIn(i),o},decrypt:function(e,t,r,n){n=this.cfg.extend(n),t=this._parse(t,n.format);var i=n.kdf.execute(r,e.keySize,e.ivSize,t.salt);return n.iv=i.iv,v.decrypt.call(this,e,t,i.key,n)}})}()}(Dr.exports),Fr.exports=function(e){return function(){var t=e,r=t.lib.BlockCipher,n=t.algo,i=[],o=[],a=[],s=[],c=[],u=[],l=[],f=[],h=[],p=[];!function(){for(var e=[],t=0;t<256;t++)e[t]=t<128?t<<1:t<<1^283;var r=0,n=0;for(t=0;t<256;t++){var d=n^n<<1^n<<2^n<<3^n<<4;d=d>>>8^255&d^99,i[r]=d,o[d]=r;var m=e[r],g=e[m],v=e[g],y=257*e[d]^16843008*d;a[r]=y<<24|y>>>8,s[r]=y<<16|y>>>16,c[r]=y<<8|y>>>24,u[r]=y,y=16843009*v^65537*g^257*m^16843008*r,l[d]=y<<24|y>>>8,f[d]=y<<16|y>>>16,h[d]=y<<8|y>>>24,p[d]=y,r?(r=m^e[e[e[v^m]]],n^=e[e[n]]):r=n=1}}();var d=[0,1,2,4,8,16,32,64,128,27,54],m=n.AES=r.extend({_doReset:function(){if(!this._nRounds||this._keyPriorReset!==this._key){for(var e=this._keyPriorReset=this._key,t=e.words,r=e.sigBytes/4,n=4*((this._nRounds=r+6)+1),o=this._keySchedule=[],a=0;a<n;a++)a<r?o[a]=t[a]:(u=o[a-1],a%r?r>6&&a%r==4&&(u=i[u>>>24]<<24|i[u>>>16&255]<<16|i[u>>>8&255]<<8|i[255&u]):(u=i[(u=u<<8|u>>>24)>>>24]<<24|i[u>>>16&255]<<16|i[u>>>8&255]<<8|i[255&u],u^=d[a/r|0]<<24),o[a]=o[a-r]^u);for(var s=this._invKeySchedule=[],c=0;c<n;c++){if(a=n-c,c%4)var u=o[a];else u=o[a-4];s[c]=c<4||a<=4?u:l[i[u>>>24]]^f[i[u>>>16&255]]^h[i[u>>>8&255]]^p[i[255&u]]}}},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._keySchedule,a,s,c,u,i)},decryptBlock:function(e,t){var r=e[t+1];e[t+1]=e[t+3],e[t+3]=r,this._doCryptBlock(e,t,this._invKeySchedule,l,f,h,p,o),r=e[t+1],e[t+1]=e[t+3],e[t+3]=r},_doCryptBlock:function(e,t,r,n,i,o,a,s){for(var c=this._nRounds,u=e[t]^r[0],l=e[t+1]^r[1],f=e[t+2]^r[2],h=e[t+3]^r[3],p=4,d=1;d<c;d++){var m=n[u>>>24]^i[l>>>16&255]^o[f>>>8&255]^a[255&h]^r[p++],g=n[l>>>24]^i[f>>>16&255]^o[h>>>8&255]^a[255&u]^r[p++],v=n[f>>>24]^i[h>>>16&255]^o[u>>>8&255]^a[255&l]^r[p++],y=n[h>>>24]^i[u>>>16&255]^o[l>>>8&255]^a[255&f]^r[p++];u=m,l=g,f=v,h=y}m=(s[u>>>24]<<24|s[l>>>16&255]<<16|s[f>>>8&255]<<8|s[255&h])^r[p++],g=(s[l>>>24]<<24|s[f>>>16&255]<<16|s[h>>>8&255]<<8|s[255&u])^r[p++],v=(s[f>>>24]<<24|s[h>>>16&255]<<16|s[u>>>8&255]<<8|s[255&l])^r[p++],y=(s[h>>>24]<<24|s[u>>>16&255]<<16|s[l>>>8&255]<<8|s[255&f])^r[p++],e[t]=m,e[t+1]=g,e[t+2]=v,e[t+3]=y},keySize:8});t.AES=r._createHelper(m)}(),e.AES}(Dr.exports);var qr={exports:{}};qr.exports=function(e){return e.enc.Utf8}(Dr.exports);var zr={}.hasOwnProperty;function Mr(e,t){var r=t||{};function n(t){var r=n.invalid,i=n.handlers;if(t&&zr.call(t,e)&&(r=zr.call(i,t[e])?i[t[e]]:n.unknown),r)return r.apply(this,arguments)}return n.handlers=r.handlers||{},n.invalid=r.invalid,n.unknown=r.unknown,n}function Nr(e){return Array.isArray(e.children)}const Br={}.hasOwnProperty,$r=Mr("nestingOperator",{unknown:function(e){throw new Error("Unexpected nesting `"+e.nestingOperator+"`")},invalid:function(e,t,r,n,i){if(n)throw new Error("topScan is supposed to be called from the root node");if(!i.iterator)throw new Error("Expected `iterator` to be defined");if("number"!=typeof r)throw new TypeError("Expected `index` to be defined");i.iterator(e,t,r,n,i),i.shallow||Vr(e,t,r,n,i)},handlers:{null:Vr,">":Hr,"+":function(e,t,r,n,i){if("number"!=typeof r)throw new TypeError("Expected `index` to be defined");if(!n)return;new Qr(e,n,i).prefillTypeIndex(0,++r).each(r,++r).prefillTypeIndex(r).done()},"~":function(e,t,r,n,i){if("number"!=typeof r)throw new TypeError("Expected `index` to be defined");if(!n)return;new Qr(e,n,i).prefillTypeIndex(0,++r).each(r).done()}}}),Ur=$r;function Vr(e,t,r,n,i){if(!i.iterator)throw new Error("Expected `iterator` to be defined");const o=i.iterator;i.iterator=function e(t,r,n,i,a){if(a.iterator=o,o(t,r,n,i,a),a.iterator=e,a.one&&a.found)return;Hr(t,r,n,i,a)},Hr(e,t,r,n,i)}function Hr(e,t,r,n,i){Nr(t)&&0!==t.children.length&&new Qr(e,t,i).each().done()}class Qr{constructor(e,t,r){this.query=e,this.parent=t,this.state=r,this.typeIndex=r.index?new Gr:void 0,this.delayed=[]}prefillTypeIndex(e,t){let[r,n]=this.defaults(e,t);if(this.typeIndex)for(;r<n;)this.typeIndex.index(this.parent.children[r]),r++;return this}each(e,t){const[r,n]=this.defaults(e,t),i=this.parent.children[r];let o,a;if(r>=n)return this;if(this.typeIndex)a=this.typeIndex.nodes,o=this.typeIndex.index(i),this.delayed.push((function(){if(!this.typeIndex)throw new TypeError("Expected `typeIndex` to be defined");if(!this.state.iterator)throw new Error("Expected `iterator` to be defined");this.state.typeIndex=o,this.state.nodeIndex=a,this.state.typeCount=this.typeIndex.count(i),this.state.nodeCount=this.typeIndex.nodes,this.state.iterator(this.query,i,r,this.parent,this.state)}));else{if(!this.state.iterator)throw new Error("Expected `iterator` to be defined");this.state.iterator(this.query,i,r,this.parent,this.state)}return this.state.one&&this.state.found?this:this.each(r+1,n)}done(){let e=-1;for(;++e<this.delayed.length&&(this.delayed[e].call(this),!this.state.one||!this.state.found););return this}defaults(e,t){return(null==e||e<0)&&(e=0),(null==t||t>this.parent.children.length)&&(t=this.parent.children.length),[e,t]}}class Gr{constructor(){this.counts={},this.nodes=0}index(e){const t=e.type;return this.nodes++,Br.call(this.counts,t)||(this.counts[t]=0),this.counts[t]++}count(e){return this.counts[e.type]}}const Wr=function(e){if(null==e)return Jr;if("string"==typeof e)return function(e){return Kr(t);function t(t){return t&&t.type===e}}(e);if("object"==typeof e)return Array.isArray(e)?function(e){const t=[];let r=-1;for(;++r<e.length;)t[r]=Wr(e[r]);return Kr(n);function n(...e){let r=-1;for(;++r<t.length;)if(t[r].call(this,...e))return!0;return!1}}(e):function(e){return Kr(t);function t(t){let r;for(r in e)if(t[r]!==e[r])return!1;return!0}}(e);if("function"==typeof e)return Kr(e);throw new Error("Expected function, string, or object as test")};function Kr(e){return function(...t){return Boolean(e.call(this,...t))}}function Jr(){return!0}var Yr=Object.freeze({__proto__:null,is:function e(t,r,n,i,o){const a=Wr(r);if(null!=n&&("number"!=typeof n||n<0||n===Number.POSITIVE_INFINITY))throw new Error("Expected positive finite index");if(!(null==i||e(i)&&i.children))throw new Error("Expected parent node");if(null==i!=(null==n))throw new Error("Expected both parent and index");return!(!t||!t.type||"string"!=typeof t.type)&&Boolean(a.call(o,t,n,i))},convert:Wr});const Xr=Wr(),Zr=Mr("name",{unknown:function(e){if(e.name)throw new Error("Unknown pseudo-selector `"+e.name+"`");throw new Error("Unexpected pseudo-element or empty pseudo-class")},invalid:function(){throw new Error("Invalid pseudo-selector")},handlers:{any:tn,blank:rn,empty:rn,"first-child":function(e,t,r,n,i){return nn(i,e),0===i.nodeIndex},"first-of-type":function(e,t,r,n,i){return nn(i,e),0===i.typeIndex},has:function(e,t,r,n,i){const o=i.shallow,a=i.one,s=i.scopeNodes,c=function(e){const t="ruleSet"===e.type?{type:"selectors",selectors:[e]}:e;let r,n=-1;for(;++n<t.selectors.length;)r=t.selectors[n].rule,r.nestingOperator=null,r.pseudos&&1===r.pseudos.length&&"scope"===r.pseudos[0].name||(t.selectors[n]={type:"ruleSet",rule:{type:"rule",rule:r,pseudos:[{name:"scope"}]}});return t}(e.value),u=i.any;i.shallow=!1,i.one=!0,i.scopeNodes=[t];const l=Boolean(u(c,t,i)[0]);return i.shallow=o,i.one=a,i.scopeNodes=s,l},"last-child":function(e,t,r,n,i){return nn(i,e),"number"==typeof i.nodeCount&&i.nodeIndex===i.nodeCount-1},"last-of-type":function(e,t,r,n,i){return nn(i,e),"number"==typeof i.typeCount&&i.typeIndex===i.typeCount-1},matches:tn,not:function(e,t,r,n,i){return!tn(e,t,r,n,i)},"nth-child":function(e,t,r,n,i){return nn(i,e),"number"==typeof i.nodeIndex&&e.value(i.nodeIndex)},"nth-last-child":function(e,t,r,n,i){return nn(i,e),"number"==typeof i.nodeCount&&"number"==typeof i.nodeIndex&&e.value(i.nodeCount-i.nodeIndex-1)},"nth-of-type":function(e,t,r,n,i){return nn(i,e),"number"==typeof i.typeIndex&&e.value(i.typeIndex)},"nth-last-of-type":function(e,t,r,n,i){return nn(i,e),"number"==typeof i.typeIndex&&"number"==typeof i.typeCount&&e.value(i.typeCount-1-i.typeIndex)},"only-child":function(e,t,r,n,i){return nn(i,e),1===i.nodeCount},"only-of-type":function(e,t,r,n,i){return nn(i,e),1===i.typeCount},root:function(e,t,r,n){return Xr(t)&&!n},scope:function(e,t,r,n,i){return Xr(t)&&void 0!==i.scopeNodes&&i.scopeNodes.includes(t)}}});function en(e,t,r,n,i){const o=e.pseudos;let a=-1;for(;++a<o.length;)if(!Zr(o[a],t,r,n,i))return!1;return!0}function tn(e,t,r,n,i){const o=i.shallow,a=i.one;i.one=!0,i.shallow=!0;const s=i.any(e.value,t,i)[0]===t;return i.shallow=o,i.one=a,s}function rn(e,t){return Nr(t)?0===t.children.length:!("value"in t)}function nn(e,t){if(e.shallow)throw new Error("Cannot use `:"+t.name+"` without parent")}en.needsIndex=["first-child","first-of-type","last-child","last-of-type","nth-child","nth-last-child","nth-of-type","nth-last-of-type","only-child","only-of-type"];const on=Mr("operator",{unknown:function(e){throw new Error("Unknown operator `"+e.operator+"`")},invalid:an,handlers:{"=":function(e,t){return an(e,t)&&String(t[e.name])===e.value},"^=":function(e,t){const r=t[e.name];return e.value&&"string"==typeof r&&r.slice(0,e.value.length)===e.value},"$=":function(e,t){const r=t[e.name];return e.value&&"string"==typeof r&&r.slice(-e.value.length)===e.value},"*=":function(e,t){const r=t[e.name];return e.value&&"string"==typeof r&&r.includes(e.value)},"~=":function(e,t){const r=t[e.name];if(null==r)return!1;if(Array.isArray(r)&&r.includes(e.value))return!0;return String(r)===e.value}}});function an(e,t){return null!==t[e.name]&&void 0!==t[e.name]}function sn(e,t,r,n,i){if(e.id)throw new Error("Invalid selector: id");if(e.classNames)throw new Error("Invalid selector: class");return Boolean(t&&(!e.tagName||function(e,t){return"*"===e.tagName||e.tagName===t.type}(e,t))&&(!e.attrs||function(e,t){let r=-1;for(;++r<e.attrs.length;)if(!on(e.attrs[r],t))return!1;return!0}(e,t))&&(!e.pseudos||en(e,t,r,n,i)))}const cn=Mr("type",{unknown:function(e){throw new Error("Unknown type `"+e.type+"`")},invalid:function(){throw new Error("Invalid type")},handlers:{selectors:function(e,t,r){const n=pn(r.one);let i=-1;for(;++i<e.selectors.length;)n(ln(e.selectors[i],t,r));return n.result},ruleSet:ln,rule:fn}});function un(e,t,r){return e&&t?cn(e,t,r):[]}function ln(e,t,r){return fn(e.rule,t,r)}function fn(e,t,r){const n=pn(r.one);if(r.shallow&&e.rule)throw new Error("Expected selector without nesting");var i;return Ur(e,t,0,null,hn(e,{scopeNodes:(i=t,"RootNode"===i.type||"root"===i.type?t.children:[t]),index:!1,iterator:function(e,t,r,i,o){sn(e,t,r,i,o)&&(e.rule?Ur(e.rule,t,r,i,hn(e.rule,o)):(n(t),o.found=!0))},one:r.one,shallow:r.shallow,any:r.any})),n.result}function hn(e,t){const r=e.pseudos||[];let n=-1;for(;++n<r.length;)if(en.needsIndex.includes(r[n].name)){t.index=!0;break}return t}function pn(e){const t=[];let r;return n.result=t,n;function n(e){let t=-1;if("length"in e)for(;++t<e.length;)i(e[t]);else i(e)}function i(n){if(e){if(r)throw new Error("Cannot collect multiple nodes");r=!0}t.includes(n)||t.push(n)}}var dn,mn={},gn={},vn={};dn=vn,Object.defineProperty(dn,"__esModule",{value:!0}),dn.isIdentStart=function(e){return e>="a"&&e<="z"||e>="A"&&e<="Z"||"-"===e||"_"===e},dn.isIdent=function(e){return e>="a"&&e<="z"||e>="A"&&e<="Z"||e>="0"&&e<="9"||"-"===e||"_"===e},dn.isHex=function(e){return e>="a"&&e<="f"||e>="A"&&e<="F"||e>="0"&&e<="9"},dn.escapeIdentifier=function(e){for(var t=e.length,r="",n=0;n<t;){var i=e.charAt(n);if(dn.identSpecialChars[i])r+="\\"+i;else if("_"===i||"-"===i||i>="A"&&i<="Z"||i>="a"&&i<="z"||0!==n&&i>="0"&&i<="9")r+=i;else{var o=i.charCodeAt(0);if(55296==(63488&o)){var a=e.charCodeAt(n++);if(55296!=(64512&o)||56320!=(64512&a))throw Error("UCS-2(decode): illegal sequence");o=((1023&o)<<10)+(1023&a)+65536}r+="\\"+o.toString(16)+" "}n++}return r},dn.escapeStr=function(e){for(var t,r=e.length,n="",i=0;i<r;){var o=e.charAt(i);'"'===o?o='\\"':"\\"===o?o="\\\\":void 0!==(t=dn.strReplacementsRev[o])&&(o=t),n+=o,i++}return'"'+n+'"'},dn.identSpecialChars={"!":!0,'"':!0,"#":!0,$:!0,"%":!0,"&":!0,"'":!0,"(":!0,")":!0,"*":!0,"+":!0,",":!0,".":!0,"/":!0,";":!0,"<":!0,"=":!0,">":!0,"?":!0,"@":!0,"[":!0,"\\":!0,"]":!0,"^":!0,"`":!0,"{":!0,"|":!0,"}":!0,"~":!0},dn.strReplacementsRev={"\n":"\\n","\r":"\\r","\t":"\\t","\f":"\\f","\v":"\\v"},dn.singleQuoteEscapeChars={n:"\n",r:"\r",t:"\t",f:"\f","\\":"\\","'":"'"},dn.doubleQuotesEscapeChars={n:"\n",r:"\r",t:"\t",f:"\f","\\":"\\",'"':'"'},Object.defineProperty(gn,"__esModule",{value:!0});var yn=vn;gn.parseCssSelector=function(e,t,r,n,i,o){var a=e.length,s="";function c(r,n){var i="";for(t++,s=e.charAt(t);t<a;){if(s===r)return t++,i;if("\\"===s){t++;var o=void 0;if((s=e.charAt(t))===r)i+=r;else if(void 0!==(o=n[s]))i+=o;else{if(yn.isHex(s)){var c=s;for(t++,s=e.charAt(t);yn.isHex(s);)c+=s,t++,s=e.charAt(t);" "===s&&(t++,s=e.charAt(t)),i+=String.fromCharCode(parseInt(c,16));continue}i+=s}}else i+=s;t++,s=e.charAt(t)}return i}function u(){var r="";for(s=e.charAt(t);t<a;){if(yn.isIdent(s))r+=s;else{if("\\"!==s)return r;if(++t>=a)throw Error("Expected symbol but end of file reached.");if(s=e.charAt(t),yn.identSpecialChars[s])r+=s;else{if(yn.isHex(s)){var n=s;for(t++,s=e.charAt(t);yn.isHex(s);)n+=s,t++,s=e.charAt(t);" "===s&&(t++,s=e.charAt(t)),r+=String.fromCharCode(parseInt(n,16));continue}r+=s}}t++,s=e.charAt(t)}return r}function l(){s=e.charAt(t);for(var r=!1;" "===s||"\t"===s||"\n"===s||"\r"===s||"\f"===s;)r=!0,t++,s=e.charAt(t);return r}function f(){var r=h();if(!r)return null;var n=r;for(s=e.charAt(t);","===s;){if(t++,l(),"selectors"!==n.type&&(n={type:"selectors",selectors:[r]}),!(r=h()))throw Error('Rule expected after ",".');n.selectors.push(r)}return n}function h(){l();var r={type:"ruleSet"},n=p();if(!n)return null;for(var o=r;n&&(n.type="rule",o.rule=n,o=n,l(),s=e.charAt(t),!(t>=a||","===s||")"===s));)if(i[s]){var c=s;if(t++,l(),!(n=p()))throw Error('Rule expected after "'+c+'".');n.nestingOperator=c}else(n=p())&&(n.nestingOperator=null);return r}function p(){for(var i=null;t<a;)if("*"===(s=e.charAt(t)))t++,(i=i||{}).tagName="*";else if(yn.isIdentStart(s)||"\\"===s)(i=i||{}).tagName=u();else if("."===s)t++,((i=i||{}).classNames=i.classNames||[]).push(u());else if("#"===s)t++,(i=i||{}).id=u();else if("["===s){t++,l();var h={name:u()};if(l(),"]"===s)t++;else{var p="";if(n[s]&&(p=s,t++,s=e.charAt(t)),t>=a)throw Error('Expected "=" but end of file reached.');if("="!==s)throw Error('Expected "=" but "'+s+'" found.');h.operator=p+"=",t++,l();var d="";if(h.valueType="string",'"'===s)d=c('"',yn.doubleQuotesEscapeChars);else if("'"===s)d=c("'",yn.singleQuoteEscapeChars);else if(o&&"$"===s)t++,d=u(),h.valueType="substitute";else{for(;t<a&&"]"!==s;)d+=s,t++,s=e.charAt(t);d=d.trim()}if(l(),t>=a)throw Error('Expected "]" but end of file reached.');if("]"!==s)throw Error('Expected "]" but "'+s+'" found.');t++,h.value=d}((i=i||{}).attrs=i.attrs||[]).push(h)}else{if(":"!==s)break;t++;var m=u(),g={name:m};if("("===s){t++;var v="";if(l(),"selector"===r[m])g.valueType="selector",v=f();else{if(g.valueType=r[m]||"string",'"'===s)v=c('"',yn.doubleQuotesEscapeChars);else if("'"===s)v=c("'",yn.singleQuoteEscapeChars);else if(o&&"$"===s)t++,v=u(),g.valueType="substitute";else{for(;t<a&&")"!==s;)v+=s,t++,s=e.charAt(t);v=v.trim()}l()}if(t>=a)throw Error('Expected ")" but end of file reached.');if(")"!==s)throw Error('Expected ")" but "'+s+'" found.');t++,g.value=v}((i=i||{}).pseudos=i.pseudos||[]).push(g)}return i}return function(){var r=f();if(t<a)throw Error('Rule expected but "'+e.charAt(t)+'" found.');return r}()};var bn={};Object.defineProperty(bn,"__esModule",{value:!0});var xn=vn;bn.renderEntity=function e(t){var r="";switch(t.type){case"ruleSet":for(var n=t.rule,i=[];n;)n.nestingOperator&&i.push(n.nestingOperator),i.push(e(n)),n=n.rule;r=i.join(" ");break;case"selectors":r=t.selectors.map(e).join(", ");break;case"rule":t.tagName&&(r="*"===t.tagName?"*":xn.escapeIdentifier(t.tagName)),t.id&&(r+="#"+xn.escapeIdentifier(t.id)),t.classNames&&(r+=t.classNames.map((function(e){return"."+xn.escapeIdentifier(e)})).join("")),t.attrs&&(r+=t.attrs.map((function(e){return"operator"in e?"substitute"===e.valueType?"["+xn.escapeIdentifier(e.name)+e.operator+"$"+e.value+"]":"["+xn.escapeIdentifier(e.name)+e.operator+xn.escapeStr(e.value)+"]":"["+xn.escapeIdentifier(e.name)+"]"})).join("")),t.pseudos&&(r+=t.pseudos.map((function(t){return t.valueType?"selector"===t.valueType?":"+xn.escapeIdentifier(t.name)+"("+e(t.value)+")":"substitute"===t.valueType?":"+xn.escapeIdentifier(t.name)+"($"+t.value+")":"numeric"===t.valueType?":"+xn.escapeIdentifier(t.name)+"("+t.value+")":":"+xn.escapeIdentifier(t.name)+"("+xn.escapeIdentifier(t.value)+")":":"+xn.escapeIdentifier(t.name)})).join(""));break;default:throw Error('Unknown entity type: "'+t.type+'".')}return r},Object.defineProperty(mn,"__esModule",{value:!0});var wn=gn,kn=bn,En=function(){function e(){this.pseudos={},this.attrEqualityMods={},this.ruleNestingOperators={},this.substitutesEnabled=!1}return e.prototype.registerSelectorPseudos=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r=0,n=e;r<n.length;r++){var i=n[r];this.pseudos[i]="selector"}return this},e.prototype.unregisterSelectorPseudos=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r=0,n=e;r<n.length;r++){var i=n[r];delete this.pseudos[i]}return this},e.prototype.registerNumericPseudos=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r=0,n=e;r<n.length;r++){var i=n[r];this.pseudos[i]="numeric"}return this},e.prototype.unregisterNumericPseudos=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r=0,n=e;r<n.length;r++){var i=n[r];delete this.pseudos[i]}return this},e.prototype.registerNestingOperators=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r=0,n=e;r<n.length;r++){var i=n[r];this.ruleNestingOperators[i]=!0}return this},e.prototype.unregisterNestingOperators=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r=0,n=e;r<n.length;r++){var i=n[r];delete this.ruleNestingOperators[i]}return this},e.prototype.registerAttrEqualityMods=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r=0,n=e;r<n.length;r++){var i=n[r];this.attrEqualityMods[i]=!0}return this},e.prototype.unregisterAttrEqualityMods=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r=0,n=e;r<n.length;r++){var i=n[r];delete this.attrEqualityMods[i]}return this},e.prototype.enableSubstitutes=function(){return this.substitutesEnabled=!0,this},e.prototype.disableSubstitutes=function(){return this.substitutesEnabled=!1,this},e.prototype.parse=function(e){return wn.parseCssSelector(e,0,this.pseudos,this.attrEqualityMods,this.ruleNestingOperators,this.substitutesEnabled)},e.prototype.render=function(e){return kn.renderEntity(e).trim()},e}(),Sn=mn.CssSelectorParser=En,Pn={},_n={};Object.defineProperty(_n,"__esModule",{value:!0}),_n.parse=void 0;var An=new Set([9,10,12,13,32]),Cn="0".charCodeAt(0),Fn="9".charCodeAt(0);_n.parse=function(e){if("even"===(e=e.trim().toLowerCase()))return[2,0];if("odd"===e)return[2,1];var t=0,r=0,n=o(),i=a();if(t<e.length&&"n"===e.charAt(t)&&(t++,r=n*(null!=i?i:1),s(),t<e.length?(n=o(),s(),i=a()):n=i=0),null===i||t<e.length)throw new Error("n-th rule couldn't be parsed ('"+e+"')");return[r,n*i];function o(){return"-"===e.charAt(t)?(t++,-1):("+"===e.charAt(t)&&t++,1)}function a(){for(var r=t,n=0;t<e.length&&e.charCodeAt(t)>=Cn&&e.charCodeAt(t)<=Fn;)n=10*n+(e.charCodeAt(t)-Cn),t++;return t===r?null:n}function s(){for(;t<e.length&&An.has(e.charCodeAt(t));)t++}};var Dn={};Object.defineProperty(Dn,"__esModule",{value:!0}),Dn.compile=void 0;var On={trueFunc:function(){return!0},falseFunc:function(){return!1}};Dn.compile=function(e){var t=e[0],r=e[1]-1;if(r<0&&t<=0)return On.falseFunc;if(-1===t)return function(e){return e<=r};if(0===t)return function(e){return e===r};if(1===t)return r<0?On.trueFunc:function(e){return e>=r};var n=Math.abs(t),i=(r%n+n)%n;return t>1?function(e){return e>=r&&e%n===i}:function(e){return e<=r&&e%n===i}},function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.compile=e.parse=void 0;var t=_n;Object.defineProperty(e,"parse",{enumerable:!0,get:function(){return t.parse}});var r=Dn;Object.defineProperty(e,"compile",{enumerable:!0,get:function(){return r.compile}}),e.default=function(e){return(0,r.compile)((0,t.parse)(e))}}(Pn);const Tn=ae(Pn).default,Rn=new Set(["nth-child","nth-last-child","nth-of-type","nth-last-of-type"]),In=new Sn;In.registerAttrEqualityMods("~","^","$","*"),In.registerSelectorPseudos("any","matches","not","has"),In.registerNestingOperators(">","+","~");const jn=Mr("type",{handlers:{selectors:function(e){const t=e.selectors;let r=-1;for(;++r<t.length;)jn(t[r]);return e},ruleSet:function(e){return qn(e.rule)},rule:qn}});function Ln(e){if("string"!=typeof e)throw new TypeError("Expected `string` as selector, not `"+e+"`");return jn(In.parse(e))}function qn(e){const t=e.pseudos||[];let r,n=-1;for(;++n<t.length;)r=t[n],Rn.has(r.name)&&(r.value=Tn(r.value),r.valueType="function");return jn(e.rule),e}var zn=se(Object.freeze({__proto__:null,matches:function(e,t){return Boolean(un(Ln(e),t,{one:!0,shallow:!0,any:un})[0])},select:function(e,t){return un(Ln(e),t,{one:!0,any:un})[0]||null},selectAll:function(e,t){return un(Ln(e),t,{any:un})}}));function Mn(e){if(e)throw e}
|
|
3
3
|
/*!
|
|
4
4
|
* Determine if an object is a Buffer
|
|
5
5
|
*
|
|
6
6
|
* @author Feross Aboukhadijeh <https://feross.org>
|
|
7
7
|
* @license MIT
|
|
8
|
-
*/var Mn=function(e){return null!=e&&null!=e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)},Nn=Object.prototype.hasOwnProperty,zn=Object.prototype.toString,Bn=Object.defineProperty,$n=Object.getOwnPropertyDescriptor,Un=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===zn.call(e)},Vn=function(e){if(!e||"[object Object]"!==zn.call(e))return!1;var t,r=Nn.call(e,"constructor"),n=e.constructor&&e.constructor.prototype&&Nn.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!r&&!n)return!1;for(t in e);return void 0===t||Nn.call(e,t)},Hn=function(e,t){Bn&&"__proto__"===t.name?Bn(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},Qn=function(e,t){if("__proto__"===t){if(!Nn.call(e,t))return;if($n)return $n(e,t).value}return e[t]},Gn=function e(){var t,r,n,i,a,o,s=arguments[0],c=1,u=arguments.length,l=!1;for("boolean"==typeof s&&(l=s,s=arguments[1]||{},c=2),(null==s||"object"!=typeof s&&"function"!=typeof s)&&(s={});c<u;++c)if(null!=(t=arguments[c]))for(r in t)n=Qn(s,r),s!==(i=Qn(t,r))&&(l&&i&&(Vn(i)||(a=Un(i)))?(a?(a=!1,o=n&&Un(n)?n:[]):o=n&&Vn(n)?n:{},Hn(s,{name:r,newValue:e(l,o,i)})):void 0!==i&&Hn(s,{name:r,newValue:i}));return s};function Wn(e){if("[object Object]"!==Object.prototype.toString.call(e))return!1;const t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function Kn(){const e=[],t={run:function(...t){let r=-1;const n=t.pop();if("function"!=typeof n)throw new TypeError("Expected function as last argument, not "+n);!function i(a,...o){const s=e[++r];let c=-1;if(a)n(a);else{for(;++c<t.length;)null!==o[c]&&void 0!==o[c]||(o[c]=t[c]);t=o,s?function(e,t){let r;return n;function n(...t){const n=e.length>t.length;let o;n&&t.push(i);try{o=e(...t)}catch(e){const t=e;if(n&&r)throw t;return i(t)}n||(o instanceof Promise?o.then(a,i):o instanceof Error?i(o):a(o))}function i(e,...n){r||(r=!0,t(e,...n))}function a(e){i(null,e)}}(s,i)(...o):n(null,...o)}}(null,...t)},use:function(r){if("function"!=typeof r)throw new TypeError("Expected `middelware` to be a function, not "+r);return e.push(r),t}};return t}var Yn={}.hasOwnProperty;function Jn(e){return e&&"object"==typeof e?Yn.call(e,"position")||Yn.call(e,"type")?Xn(e.position):Yn.call(e,"start")||Yn.call(e,"end")?Xn(e):Yn.call(e,"line")||Yn.call(e,"column")?Zn(e):"":""}function Zn(e){return ei(e&&e.line)+":"+ei(e&&e.column)}function Xn(e){return Zn(e&&e.start)+"-"+Zn(e&&e.end)}function ei(e){return e&&"number"==typeof e?e:1}class ti extends Error{constructor(e,t,r){var n,i=[null,null],a={start:{line:null,column:null},end:{line:null,column:null}};super(),"string"==typeof t&&(r=t,t=null),"string"==typeof r&&(-1===(n=r.indexOf(":"))?i[1]=r:(i[0]=r.slice(0,n),i[1]=r.slice(n+1))),t&&("type"in t||"position"in t?t.position&&(a=t.position):"start"in t||"end"in t?a=t:("line"in t||"column"in t)&&(a.start=t)),this.name=Jn(t)||"1:1",this.message="object"==typeof e?e.message:e,this.stack="object"==typeof e?e.stack:"",this.reason=this.message,this.line=a.start.line,this.column=a.start.column,this.source=i[0],this.ruleId=i[1],this.position=a,this.file,this.fatal,this.url,this.note}}ti.prototype.file="",ti.prototype.name="",ti.prototype.reason="",ti.prototype.message="",ti.prototype.stack="",ti.prototype.fatal=null,ti.prototype.column=null,ti.prototype.line=null,ti.prototype.source=null,ti.prototype.ruleId=null,ti.prototype.position=null;const ri=q.default;function ni(e){return null!==e&&"object"==typeof e&&e.href&&e.origin}const ii=["history","path","basename","stem","extname","dirname"];class ai{constructor(e){let t;t=e?"string"==typeof e||Mn(e)?{value:e}:ni(e)?{path:e}:e:{},this.data={},this.messages=[],this.history=[],this.cwd=ri.cwd(),this.value,this.stored,this.result,this.map;let r,n=-1;for(;++n<ii.length;){const e=ii[n];e in t&&void 0!==t[e]&&(this[e]="history"===e?[...t[e]]:t[e])}for(r in t)ii.includes(r)||(this[r]=t[r])}get path(){return this.history[this.history.length-1]}set path(e){ni(e)&&(e=s.fileURLToPath(e)),si(e,"path"),this.path!==e&&this.history.push(e)}get dirname(){return"string"==typeof this.path?T.default.dirname(this.path):void 0}set dirname(e){ci(this.basename,"dirname"),this.path=T.default.join(e||"",this.basename)}get basename(){return"string"==typeof this.path?T.default.basename(this.path):void 0}set basename(e){si(e,"basename"),oi(e,"basename"),this.path=T.default.join(this.dirname||"",e)}get extname(){return"string"==typeof this.path?T.default.extname(this.path):void 0}set extname(e){if(oi(e,"extname"),ci(this.dirname,"extname"),e){if(46!==e.charCodeAt(0))throw new Error("`extname` must start with `.`");if(e.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=T.default.join(this.dirname,this.stem+(e||""))}get stem(){return"string"==typeof this.path?T.default.basename(this.path,this.extname):void 0}set stem(e){si(e,"stem"),oi(e,"stem"),this.path=T.default.join(this.dirname||"",e+(this.extname||""))}toString(e){return(this.value||"").toString(e)}message(e,t,r){const n=new ti(e,t,r);return this.path&&(n.name=this.path+":"+n.name,n.file=this.path),n.fatal=!1,this.messages.push(n),n}info(e,t,r){const n=this.message(e,t,r);return n.fatal=null,n}fail(e,t,r){const n=this.message(e,t,r);throw n.fatal=!0,n}}function oi(e,t){if(e&&e.includes(T.default.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+T.default.sep+"`")}function si(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function ci(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}const ui=function e(){const t=Kn(),r=[];let n,i={},a=-1;return o.data=function(e,t){if("string"==typeof e)return 2===arguments.length?(di("data",n),i[e]=t,o):li.call(i,e)&&i[e]||null;if(e)return di("data",n),i=e,o;return i},o.Parser=void 0,o.Compiler=void 0,o.freeze=function(){if(n)return o;for(;++a<r.length;){const[e,...n]=r[a];if(!1===n[0])continue;!0===n[0]&&(n[1]=void 0);const i=e.call(o,...n);"function"==typeof i&&t.use(i)}return n=!0,a=Number.POSITIVE_INFINITY,o},o.attachers=r,o.use=function(e,...t){let a;if(di("use",n),null==e);else if("function"==typeof e)l(e,...t);else{if("object"!=typeof e)throw new TypeError("Expected usable value, not `"+e+"`");Array.isArray(e)?u(e):c(e)}a&&(i.settings=Object.assign(i.settings||{},a));return o;function s(e){if("function"==typeof e)l(e);else{if("object"!=typeof e)throw new TypeError("Expected usable value, not `"+e+"`");if(Array.isArray(e)){const[t,...r]=e;l(t,...r)}else c(e)}}function c(e){u(e.plugins),e.settings&&(a=Object.assign(a||{},e.settings))}function u(e){let t=-1;if(null==e);else{if(!Array.isArray(e))throw new TypeError("Expected a list of plugins, not `"+e+"`");for(;++t<e.length;){s(e[t])}}}function l(e,t){let n,i=-1;for(;++i<r.length;)if(r[i][0]===e){n=r[i];break}n?(Wn(n[1])&&Wn(t)&&(t=Gn(!0,n[1],t)),n[1]=t):r.push([...arguments])}},o.parse=function(e){o.freeze();const t=vi(e),r=o.Parser;if(hi("parse",r),fi(r,"parse"))return new r(String(t),t).parse();return r(String(t),t)},o.stringify=function(e,t){o.freeze();const r=vi(t),n=o.Compiler;if(pi("stringify",n),mi(e),fi(n,"compile"))return new n(e,r).compile();return n(e,r)},o.run=function(e,r,n){mi(e),o.freeze(),n||"function"!=typeof r||(n=r,r=void 0);if(!n)return new Promise(i);function i(i,a){function o(t,r,o){r=r||e,t?a(t):i?i(r):n(null,r,o)}t.run(e,vi(r),o)}i(null,n)},o.runSync=function(e,t){let r,n;return o.run(e,t,i),gi("runSync","run",n),r;function i(e,t){qn(e),r=t,n=!0}},o.process=function(e,t){if(o.freeze(),hi("process",o.Parser),pi("process",o.Compiler),!t)return new Promise(r);function r(r,n){const i=vi(e);function a(e,i){e||!i?n(e):r?r(i):t(null,i)}o.run(o.parse(i),i,((e,t,r)=>{if(!e&&t&&r){const n=o.stringify(t,r);null==n||(!function(e){return"string"==typeof e||Mn(e)}(n)?r.result=n:r.value=n),a(e,r)}else a(e)}))}r(null,t)},o.processSync=function(e){let t;o.freeze(),hi("processSync",o.Parser),pi("processSync",o.Compiler);const r=vi(e);return o.process(r,n),gi("processSync","process",t),r;function n(e){t=!0,qn(e)}},o;function o(){const t=e();let n=-1;for(;++n<r.length;)t.use(...r[n]);return t.data(Gn(!0,{},i)),t}}().freeze(),li={}.hasOwnProperty;function fi(e,t){return"function"==typeof e&&e.prototype&&(function(e){let t;for(t in e)if(li.call(e,t))return!0;return!1}(e.prototype)||t in e.prototype)}function hi(e,t){if("function"!=typeof t)throw new TypeError("Cannot `"+e+"` without `Parser`")}function pi(e,t){if("function"!=typeof t)throw new TypeError("Cannot `"+e+"` without `Compiler`")}function di(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function mi(e){if(!Wn(e)||"string"!=typeof e.type)throw new TypeError("Expected node, got `"+e+"`")}function gi(e,t,r){if(!r)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function vi(e){return function(e){return Boolean(e&&"object"==typeof e&&"message"in e&&"messages"in e)}(e)?e:new ai(e)}var yi=oe(Object.freeze({__proto__:null,unified:ui}));function bi(e,t){var{includeImageAlt:r=!0}=t||{};return wi(e,r)}function wi(e,t){return e&&"object"==typeof e&&(e.value||(t?e.alt:"")||"children"in e&&xi(e.children,t)||Array.isArray(e)&&xi(e,t))||""}function xi(e,t){for(var r=[],n=-1;++n<e.length;)r[n]=wi(e[n],t);return r.join("")}function ki(e,t,r,n){const i=e.length;let a,o=0;if(t=t<0?-t>i?0:i+t:t>i?i:t,r=r>0?r:0,n.length<1e4)a=Array.from(n),a.unshift(t,r),[].splice.apply(e,a);else for(r&&[].splice.apply(e,[t,r]);o<n.length;)a=n.slice(o,o+1e4),a.unshift(t,0),[].splice.apply(e,a),o+=1e4,t+=1e4}function Ei(e,t){return e.length>0?(ki(e,e.length,0,t),e):t}const Si={}.hasOwnProperty;function Ci(e){const t={};let r=-1;for(;++r<e.length;)Ai(t,e[r]);return t}function Ai(e,t){let r;for(r in t){const n=(Si.call(e,r)?e[r]:void 0)||(e[r]={}),i=t[r];let a;for(a in i){Si.call(n,a)||(n[a]=[]);const e=i[a];Pi(n[a],Array.isArray(e)?e:e?[e]:[])}}}function Pi(e,t){let r=-1;const n=[];for(;++r<t.length;)("after"===t[r].add?e:n).push(t[r]);ki(e,0,0,n)}function _i(e,t){let r;for(r in t){const n=(Si.call(e,r)?e[r]:void 0)||(e[r]={}),i=t[r];let a;if(i)for(a in i)n[a]=i[a]}}const Fi=Bi(/[A-Za-z]/),Oi=Bi(/\d/),Di=Bi(/[\dA-Fa-f]/),Ii=Bi(/[\dA-Za-z]/),Ti=Bi(/[!-/:-@[-`{-~]/),ji=Bi(/[#-'*+\--9=?A-Z^-~]/);function Ri(e){return null!==e&&(e<32||127===e)}function Li(e){return null!==e&&(e<0||32===e)}function qi(e){return null!==e&&e<-2}function Mi(e){return-2===e||-1===e||32===e}const Ni=Bi(/\s/),zi=Bi(/[!-/:-@[-`{-~\u00A1\u00A7\u00AB\u00B6\u00B7\u00BB\u00BF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]/);function Bi(e){return function(t){return null!==t&&e.test(String.fromCharCode(t))}}var $i=Object.freeze({__proto__:null,asciiAlpha:Fi,asciiDigit:Oi,asciiHexDigit:Di,asciiAlphanumeric:Ii,asciiPunctuation:Ti,asciiAtext:ji,asciiControl:Ri,markdownLineEndingOrSpace:Li,markdownLineEnding:qi,markdownSpace:Mi,unicodeWhitespace:Ni,unicodePunctuation:zi});function Ui(e,t,r,n){const i=n?n-1:Number.POSITIVE_INFINITY;let a=0;return function(n){if(Mi(n))return e.enter(r),o(n);return t(n)};function o(n){return Mi(n)&&a++<i?(e.consume(n),o):(e.exit(r),t(n))}}var Vi=Object.freeze({__proto__:null,factorySpace:Ui});const Hi={tokenize:function(e){const t=e.attempt(this.parser.constructs.contentInitial,(function(r){if(null===r)return void e.consume(r);return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),Ui(e,t,"linePrefix")}),(function(t){return e.enter("paragraph"),n(t)}));let r;return t;function n(t){const n=e.enter("chunkText",{contentType:"text",previous:r});return r&&(r.next=n),r=n,i(t)}function i(t){return null===t?(e.exit("chunkText"),e.exit("paragraph"),void e.consume(t)):qi(t)?(e.consume(t),e.exit("chunkText"),n):(e.consume(t),i)}}};const Qi={tokenize:function(e){const t=this,r=[];let n,i,a,o=0;return s;function s(n){if(o<r.length){const i=r[o];return t.containerState=i[1],e.attempt(i[0].continuation,c,u)(n)}return u(n)}function c(e){if(o++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,n&&y();const r=t.events.length;let i,a=r;for(;a--;)if("exit"===t.events[a][0]&&"chunkFlow"===t.events[a][1].type){i=t.events[a][1].end;break}v(o);let s=r;for(;s<t.events.length;)t.events[s][1].end=Object.assign({},i),s++;return ki(t.events,a+1,0,t.events.slice(r)),t.events.length=s,u(e)}return s(e)}function u(i){if(o===r.length){if(!n)return h(i);if(n.currentConstruct&&n.currentConstruct.concrete)return d(i);t.interrupt=Boolean(n.currentConstruct)}return t.containerState={},e.check(Gi,l,f)(i)}function l(e){return n&&y(),v(o),h(e)}function f(e){return t.parser.lazy[t.now().line]=o!==r.length,a=t.now().offset,d(e)}function h(r){return t.containerState={},e.attempt(Gi,p,d)(r)}function p(e){return o++,r.push([t.currentConstruct,t.containerState]),h(e)}function d(r){return null===r?(n&&y(),v(0),void e.consume(r)):(n=n||t.parser.flow(t.now()),e.enter("chunkFlow",{contentType:"flow",previous:i,_tokenizer:n}),m(r))}function m(r){return null===r?(g(e.exit("chunkFlow"),!0),v(0),void e.consume(r)):qi(r)?(e.consume(r),g(e.exit("chunkFlow")),o=0,t.interrupt=void 0,s):(e.consume(r),m)}function g(e,r){const s=t.sliceStream(e);if(r&&s.push(null),e.previous=i,i&&(i.next=e),i=e,n.defineSkip(e.start),n.write(s),t.parser.lazy[e.start.line]){let e=n.events.length;for(;e--;)if(n.events[e][1].start.offset<a&&(!n.events[e][1].end||n.events[e][1].end.offset>a))return;const r=t.events.length;let i,s,c=r;for(;c--;)if("exit"===t.events[c][0]&&"chunkFlow"===t.events[c][1].type){if(i){s=t.events[c][1].end;break}i=!0}for(v(o),e=r;e<t.events.length;)t.events[e][1].end=Object.assign({},s),e++;ki(t.events,c+1,0,t.events.slice(r)),t.events.length=e}}function v(n){let i=r.length;for(;i-- >n;){const n=r[i];t.containerState=n[1],n[0].exit.call(t,e)}r.length=n}function y(){n.write([null]),i=void 0,n=void 0,t.containerState._closeFlow=void 0}}},Gi={tokenize:function(e,t,r){return Ui(e,e.attempt(this.parser.constructs.document,t,r),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}};function Wi(e){return null===e||Li(e)||Ni(e)?1:zi(e)?2:void 0}function Ki(e,t,r){const n=[];let i=-1;for(;++i<e.length;){const a=e[i].resolveAll;a&&!n.includes(a)&&(t=a(t,r),n.push(a))}return t}const Yi={name:"attention",tokenize:function(e,t){const r=this.parser.constructs.attentionMarkers.null,n=this.previous,i=Wi(n);let a;return function(t){return e.enter("attentionSequence"),a=t,o(t)};function o(s){if(s===a)return e.consume(s),o;const c=e.exit("attentionSequence"),u=Wi(s),l=!u||2===u&&i||r.includes(s),f=!i||2===i&&u||r.includes(n);return c._open=Boolean(42===a?l:l&&(i||!f)),c._close=Boolean(42===a?f:f&&(u||!l)),t(s)}},resolveAll:function(e,t){let r,n,i,a,o,s,c,u,l=-1;for(;++l<e.length;)if("enter"===e[l][0]&&"attentionSequence"===e[l][1].type&&e[l][1]._close)for(r=l;r--;)if("exit"===e[r][0]&&"attentionSequence"===e[r][1].type&&e[r][1]._open&&t.sliceSerialize(e[r][1]).charCodeAt(0)===t.sliceSerialize(e[l][1]).charCodeAt(0)){if((e[r][1]._close||e[l][1]._open)&&(e[l][1].end.offset-e[l][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[l][1].end.offset-e[l][1].start.offset)%3))continue;s=e[r][1].end.offset-e[r][1].start.offset>1&&e[l][1].end.offset-e[l][1].start.offset>1?2:1;const f=Object.assign({},e[r][1].end),h=Object.assign({},e[l][1].start);Ji(f,-s),Ji(h,s),a={type:s>1?"strongSequence":"emphasisSequence",start:f,end:Object.assign({},e[r][1].end)},o={type:s>1?"strongSequence":"emphasisSequence",start:Object.assign({},e[l][1].start),end:h},i={type:s>1?"strongText":"emphasisText",start:Object.assign({},e[r][1].end),end:Object.assign({},e[l][1].start)},n={type:s>1?"strong":"emphasis",start:Object.assign({},a.start),end:Object.assign({},o.end)},e[r][1].end=Object.assign({},a.start),e[l][1].start=Object.assign({},o.end),c=[],e[r][1].end.offset-e[r][1].start.offset&&(c=Ei(c,[["enter",e[r][1],t],["exit",e[r][1],t]])),c=Ei(c,[["enter",n,t],["enter",a,t],["exit",a,t],["enter",i,t]]),c=Ei(c,Ki(t.parser.constructs.insideSpan.null,e.slice(r+1,l),t)),c=Ei(c,[["exit",i,t],["enter",o,t],["exit",o,t],["exit",n,t]]),e[l][1].end.offset-e[l][1].start.offset?(u=2,c=Ei(c,[["enter",e[l][1],t],["exit",e[l][1],t]])):u=0,ki(e,r-1,l-r+3,c),l=r+c.length-u-2;break}l=-1;for(;++l<e.length;)"attentionSequence"===e[l][1].type&&(e[l][1].type="data");return e}};function Ji(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const Zi={name:"autolink",tokenize:function(e,t,r){let n=1;return function(t){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(t),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),i};function i(t){return Fi(t)?(e.consume(t),a):ji(t)?c(t):r(t)}function a(e){return 43===e||45===e||46===e||Ii(e)?o(e):c(e)}function o(t){return 58===t?(e.consume(t),s):(43===t||45===t||46===t||Ii(t))&&n++<32?(e.consume(t),o):c(t)}function s(t){return 62===t?(e.exit("autolinkProtocol"),h(t)):null===t||32===t||60===t||Ri(t)?r(t):(e.consume(t),s)}function c(t){return 64===t?(e.consume(t),n=0,u):ji(t)?(e.consume(t),c):r(t)}function u(e){return Ii(e)?l(e):r(e)}function l(t){return 46===t?(e.consume(t),n=0,u):62===t?(e.exit("autolinkProtocol").type="autolinkEmail",h(t)):f(t)}function f(t){return(45===t||Ii(t))&&n++<63?(e.consume(t),45===t?f:l):r(t)}function h(r){return e.enter("autolinkMarker"),e.consume(r),e.exit("autolinkMarker"),e.exit("autolink"),t}}};const Xi={tokenize:function(e,t,r){return Ui(e,(function(e){return null===e||qi(e)?t(e):r(e)}),"linePrefix")},partial:!0};const ea={name:"blockQuote",tokenize:function(e,t,r){const n=this;return function(t){if(62===t){const r=n.containerState;return r.open||(e.enter("blockQuote",{_container:!0}),r.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(t),e.exit("blockQuoteMarker"),i}return r(t)};function i(r){return Mi(r)?(e.enter("blockQuotePrefixWhitespace"),e.consume(r),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(r))}},continuation:{tokenize:function(e,t,r){return Ui(e,e.attempt(ea,t,r),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}},exit:function(e){e.exit("blockQuote")}};const ta={name:"characterEscape",tokenize:function(e,t,r){return function(t){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(t),e.exit("escapeMarker"),n};function n(n){return Ti(n)?(e.enter("characterEscapeValue"),e.consume(n),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):r(n)}}};var ra={AEli:"Æ",AElig:"Æ",AM:"&",AMP:"&",Aacut:"Á",Aacute:"Á",Abreve:"Ă",Acir:"Â",Acirc:"Â",Acy:"А",Afr:"𝔄",Agrav:"À",Agrave:"À",Alpha:"Α",Amacr:"Ā",And:"⩓",Aogon:"Ą",Aopf:"𝔸",ApplyFunction:"",Arin:"Å",Aring:"Å",Ascr:"𝒜",Assign:"≔",Atild:"Ã",Atilde:"Ã",Aum:"Ä",Auml:"Ä",Backslash:"∖",Barv:"⫧",Barwed:"⌆",Bcy:"Б",Because:"∵",Bernoullis:"ℬ",Beta:"Β",Bfr:"𝔅",Bopf:"𝔹",Breve:"˘",Bscr:"ℬ",Bumpeq:"≎",CHcy:"Ч",COP:"©",COPY:"©",Cacute:"Ć",Cap:"⋒",CapitalDifferentialD:"ⅅ",Cayleys:"ℭ",Ccaron:"Č",Ccedi:"Ç",Ccedil:"Ç",Ccirc:"Ĉ",Cconint:"∰",Cdot:"Ċ",Cedilla:"¸",CenterDot:"·",Cfr:"ℭ",Chi:"Χ",CircleDot:"⊙",CircleMinus:"⊖",CirclePlus:"⊕",CircleTimes:"⊗",ClockwiseContourIntegral:"∲",CloseCurlyDoubleQuote:"”",CloseCurlyQuote:"’",Colon:"∷",Colone:"⩴",Congruent:"≡",Conint:"∯",ContourIntegral:"∮",Copf:"ℂ",Coproduct:"∐",CounterClockwiseContourIntegral:"∳",Cross:"⨯",Cscr:"𝒞",Cup:"⋓",CupCap:"≍",DD:"ⅅ",DDotrahd:"⤑",DJcy:"Ђ",DScy:"Ѕ",DZcy:"Џ",Dagger:"‡",Darr:"↡",Dashv:"⫤",Dcaron:"Ď",Dcy:"Д",Del:"∇",Delta:"Δ",Dfr:"𝔇",DiacriticalAcute:"´",DiacriticalDot:"˙",DiacriticalDoubleAcute:"˝",DiacriticalGrave:"`",DiacriticalTilde:"˜",Diamond:"⋄",DifferentialD:"ⅆ",Dopf:"𝔻",Dot:"¨",DotDot:"⃜",DotEqual:"≐",DoubleContourIntegral:"∯",DoubleDot:"¨",DoubleDownArrow:"⇓",DoubleLeftArrow:"⇐",DoubleLeftRightArrow:"⇔",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"⟸",DoubleLongLeftRightArrow:"⟺",DoubleLongRightArrow:"⟹",DoubleRightArrow:"⇒",DoubleRightTee:"⊨",DoubleUpArrow:"⇑",DoubleUpDownArrow:"⇕",DoubleVerticalBar:"∥",DownArrow:"↓",DownArrowBar:"⤓",DownArrowUpArrow:"⇵",DownBreve:"̑",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVector:"↽",DownLeftVectorBar:"⥖",DownRightTeeVector:"⥟",DownRightVector:"⇁",DownRightVectorBar:"⥗",DownTee:"⊤",DownTeeArrow:"↧",Downarrow:"⇓",Dscr:"𝒟",Dstrok:"Đ",ENG:"Ŋ",ET:"Ð",ETH:"Ð",Eacut:"É",Eacute:"É",Ecaron:"Ě",Ecir:"Ê",Ecirc:"Ê",Ecy:"Э",Edot:"Ė",Efr:"𝔈",Egrav:"È",Egrave:"È",Element:"∈",Emacr:"Ē",EmptySmallSquare:"◻",EmptyVerySmallSquare:"▫",Eogon:"Ę",Eopf:"𝔼",Epsilon:"Ε",Equal:"⩵",EqualTilde:"≂",Equilibrium:"⇌",Escr:"ℰ",Esim:"⩳",Eta:"Η",Eum:"Ë",Euml:"Ë",Exists:"∃",ExponentialE:"ⅇ",Fcy:"Ф",Ffr:"𝔉",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",Fopf:"𝔽",ForAll:"∀",Fouriertrf:"ℱ",Fscr:"ℱ",GJcy:"Ѓ",G:">",GT:">",Gamma:"Γ",Gammad:"Ϝ",Gbreve:"Ğ",Gcedil:"Ģ",Gcirc:"Ĝ",Gcy:"Г",Gdot:"Ġ",Gfr:"𝔊",Gg:"⋙",Gopf:"𝔾",GreaterEqual:"≥",GreaterEqualLess:"⋛",GreaterFullEqual:"≧",GreaterGreater:"⪢",GreaterLess:"≷",GreaterSlantEqual:"⩾",GreaterTilde:"≳",Gscr:"𝒢",Gt:"≫",HARDcy:"Ъ",Hacek:"ˇ",Hat:"^",Hcirc:"Ĥ",Hfr:"ℌ",HilbertSpace:"ℋ",Hopf:"ℍ",HorizontalLine:"─",Hscr:"ℋ",Hstrok:"Ħ",HumpDownHump:"≎",HumpEqual:"≏",IEcy:"Е",IJlig:"IJ",IOcy:"Ё",Iacut:"Í",Iacute:"Í",Icir:"Î",Icirc:"Î",Icy:"И",Idot:"İ",Ifr:"ℑ",Igrav:"Ì",Igrave:"Ì",Im:"ℑ",Imacr:"Ī",ImaginaryI:"ⅈ",Implies:"⇒",Int:"∬",Integral:"∫",Intersection:"⋂",InvisibleComma:"",InvisibleTimes:"",Iogon:"Į",Iopf:"𝕀",Iota:"Ι",Iscr:"ℐ",Itilde:"Ĩ",Iukcy:"І",Ium:"Ï",Iuml:"Ï",Jcirc:"Ĵ",Jcy:"Й",Jfr:"𝔍",Jopf:"𝕁",Jscr:"𝒥",Jsercy:"Ј",Jukcy:"Є",KHcy:"Х",KJcy:"Ќ",Kappa:"Κ",Kcedil:"Ķ",Kcy:"К",Kfr:"𝔎",Kopf:"𝕂",Kscr:"𝒦",LJcy:"Љ",L:"<",LT:"<",Lacute:"Ĺ",Lambda:"Λ",Lang:"⟪",Laplacetrf:"ℒ",Larr:"↞",Lcaron:"Ľ",Lcedil:"Ļ",Lcy:"Л",LeftAngleBracket:"⟨",LeftArrow:"←",LeftArrowBar:"⇤",LeftArrowRightArrow:"⇆",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVector:"⇃",LeftDownVectorBar:"⥙",LeftFloor:"⌊",LeftRightArrow:"↔",LeftRightVector:"⥎",LeftTee:"⊣",LeftTeeArrow:"↤",LeftTeeVector:"⥚",LeftTriangle:"⊲",LeftTriangleBar:"⧏",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVector:"↿",LeftUpVectorBar:"⥘",LeftVector:"↼",LeftVectorBar:"⥒",Leftarrow:"⇐",Leftrightarrow:"⇔",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",LessLess:"⪡",LessSlantEqual:"⩽",LessTilde:"≲",Lfr:"𝔏",Ll:"⋘",Lleftarrow:"⇚",Lmidot:"Ŀ",LongLeftArrow:"⟵",LongLeftRightArrow:"⟷",LongRightArrow:"⟶",Longleftarrow:"⟸",Longleftrightarrow:"⟺",Longrightarrow:"⟹",Lopf:"𝕃",LowerLeftArrow:"↙",LowerRightArrow:"↘",Lscr:"ℒ",Lsh:"↰",Lstrok:"Ł",Lt:"≪",Map:"⤅",Mcy:"М",MediumSpace:" ",Mellintrf:"ℳ",Mfr:"𝔐",MinusPlus:"∓",Mopf:"𝕄",Mscr:"ℳ",Mu:"Μ",NJcy:"Њ",Nacute:"Ń",Ncaron:"Ň",Ncedil:"Ņ",Ncy:"Н",NegativeMediumSpace:"",NegativeThickSpace:"",NegativeThinSpace:"",NegativeVeryThinSpace:"",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:"\n",Nfr:"𝔑",NoBreak:"",NonBreakingSpace:" ",Nopf:"ℕ",Not:"⫬",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",NotLeftTriangle:"⋪",NotLeftTriangleBar:"⧏̸",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangle:"⋫",NotRightTriangleBar:"⧐̸",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",Nscr:"𝒩",Ntild:"Ñ",Ntilde:"Ñ",Nu:"Ν",OElig:"Œ",Oacut:"Ó",Oacute:"Ó",Ocir:"Ô",Ocirc:"Ô",Ocy:"О",Odblac:"Ő",Ofr:"𝔒",Ograv:"Ò",Ograve:"Ò",Omacr:"Ō",Omega:"Ω",Omicron:"Ο",Oopf:"𝕆",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",Or:"⩔",Oscr:"𝒪",Oslas:"Ø",Oslash:"Ø",Otild:"Õ",Otilde:"Õ",Otimes:"⨷",Oum:"Ö",Ouml:"Ö",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",PartialD:"∂",Pcy:"П",Pfr:"𝔓",Phi:"Φ",Pi:"Π",PlusMinus:"±",Poincareplane:"ℌ",Popf:"ℙ",Pr:"⪻",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",Prime:"″",Product:"∏",Proportion:"∷",Proportional:"∝",Pscr:"𝒫",Psi:"Ψ",QUO:'"',QUOT:'"',Qfr:"𝔔",Qopf:"ℚ",Qscr:"𝒬",RBarr:"⤐",RE:"®",REG:"®",Racute:"Ŕ",Rang:"⟫",Rarr:"↠",Rarrtl:"⤖",Rcaron:"Ř",Rcedil:"Ŗ",Rcy:"Р",Re:"ℜ",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",Rfr:"ℜ",Rho:"Ρ",RightAngleBracket:"⟩",RightArrow:"→",RightArrowBar:"⇥",RightArrowLeftArrow:"⇄",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVector:"⇂",RightDownVectorBar:"⥕",RightFloor:"⌋",RightTee:"⊢",RightTeeArrow:"↦",RightTeeVector:"⥛",RightTriangle:"⊳",RightTriangleBar:"⧐",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVector:"↾",RightUpVectorBar:"⥔",RightVector:"⇀",RightVectorBar:"⥓",Rightarrow:"⇒",Ropf:"ℝ",RoundImplies:"⥰",Rrightarrow:"⇛",Rscr:"ℛ",Rsh:"↱",RuleDelayed:"⧴",SHCHcy:"Щ",SHcy:"Ш",SOFTcy:"Ь",Sacute:"Ś",Sc:"⪼",Scaron:"Š",Scedil:"Ş",Scirc:"Ŝ",Scy:"С",Sfr:"𝔖",ShortDownArrow:"↓",ShortLeftArrow:"←",ShortRightArrow:"→",ShortUpArrow:"↑",Sigma:"Σ",SmallCircle:"∘",Sopf:"𝕊",Sqrt:"√",Square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",Sscr:"𝒮",Star:"⋆",Sub:"⋐",Subset:"⋐",SubsetEqual:"⊆",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",SuchThat:"∋",Sum:"∑",Sup:"⋑",Superset:"⊃",SupersetEqual:"⊇",Supset:"⋑",THOR:"Þ",THORN:"Þ",TRADE:"™",TSHcy:"Ћ",TScy:"Ц",Tab:"\t",Tau:"Τ",Tcaron:"Ť",Tcedil:"Ţ",Tcy:"Т",Tfr:"𝔗",Therefore:"∴",Theta:"Θ",ThickSpace:" ",ThinSpace:" ",Tilde:"∼",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",Topf:"𝕋",TripleDot:"⃛",Tscr:"𝒯",Tstrok:"Ŧ",Uacut:"Ú",Uacute:"Ú",Uarr:"↟",Uarrocir:"⥉",Ubrcy:"Ў",Ubreve:"Ŭ",Ucir:"Û",Ucirc:"Û",Ucy:"У",Udblac:"Ű",Ufr:"𝔘",Ugrav:"Ù",Ugrave:"Ù",Umacr:"Ū",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"⋃",UnionPlus:"⊎",Uogon:"Ų",Uopf:"𝕌",UpArrow:"↑",UpArrowBar:"⤒",UpArrowDownArrow:"⇅",UpDownArrow:"↕",UpEquilibrium:"⥮",UpTee:"⊥",UpTeeArrow:"↥",Uparrow:"⇑",Updownarrow:"⇕",UpperLeftArrow:"↖",UpperRightArrow:"↗",Upsi:"ϒ",Upsilon:"Υ",Uring:"Ů",Uscr:"𝒰",Utilde:"Ũ",Uum:"Ü",Uuml:"Ü",VDash:"⊫",Vbar:"⫫",Vcy:"В",Vdash:"⊩",Vdashl:"⫦",Vee:"⋁",Verbar:"‖",Vert:"‖",VerticalBar:"∣",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:" ",Vfr:"𝔙",Vopf:"𝕍",Vscr:"𝒱",Vvdash:"⊪",Wcirc:"Ŵ",Wedge:"⋀",Wfr:"𝔚",Wopf:"𝕎",Wscr:"𝒲",Xfr:"𝔛",Xi:"Ξ",Xopf:"𝕏",Xscr:"𝒳",YAcy:"Я",YIcy:"Ї",YUcy:"Ю",Yacut:"Ý",Yacute:"Ý",Ycirc:"Ŷ",Ycy:"Ы",Yfr:"𝔜",Yopf:"𝕐",Yscr:"𝒴",Yuml:"Ÿ",ZHcy:"Ж",Zacute:"Ź",Zcaron:"Ž",Zcy:"З",Zdot:"Ż",ZeroWidthSpace:"",Zeta:"Ζ",Zfr:"ℨ",Zopf:"ℤ",Zscr:"𝒵",aacut:"á",aacute:"á",abreve:"ă",ac:"∾",acE:"∾̳",acd:"∿",acir:"â",acirc:"â",acut:"´",acute:"´",acy:"а",aeli:"æ",aelig:"æ",af:"",afr:"𝔞",agrav:"à",agrave:"à",alefsym:"ℵ",aleph:"ℵ",alpha:"α",amacr:"ā",amalg:"⨿",am:"&",amp:"&",and:"∧",andand:"⩕",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",ange:"⦤",angle:"∠",angmsd:"∡",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angst:"Å",angzarr:"⍼",aogon:"ą",aopf:"𝕒",ap:"≈",apE:"⩰",apacir:"⩯",ape:"≊",apid:"≋",apos:"'",approx:"≈",approxeq:"≊",arin:"å",aring:"å",ascr:"𝒶",ast:"*",asymp:"≈",asympeq:"≍",atild:"ã",atilde:"ã",aum:"ä",auml:"ä",awconint:"∳",awint:"⨑",bNot:"⫭",backcong:"≌",backepsilon:"϶",backprime:"‵",backsim:"∽",backsimeq:"⋍",barvee:"⊽",barwed:"⌅",barwedge:"⌅",bbrk:"⎵",bbrktbrk:"⎶",bcong:"≌",bcy:"б",bdquo:"„",becaus:"∵",because:"∵",bemptyv:"⦰",bepsi:"϶",bernou:"ℬ",beta:"β",beth:"ℶ",between:"≬",bfr:"𝔟",bigcap:"⋂",bigcirc:"◯",bigcup:"⋃",bigodot:"⨀",bigoplus:"⨁",bigotimes:"⨂",bigsqcup:"⨆",bigstar:"★",bigtriangledown:"▽",bigtriangleup:"△",biguplus:"⨄",bigvee:"⋁",bigwedge:"⋀",bkarow:"⤍",blacklozenge:"⧫",blacksquare:"▪",blacktriangle:"▴",blacktriangledown:"▾",blacktriangleleft:"◂",blacktriangleright:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bnot:"⌐",bopf:"𝕓",bot:"⊥",bottom:"⊥",bowtie:"⋈",boxDL:"╗",boxDR:"╔",boxDl:"╖",boxDr:"╓",boxH:"═",boxHD:"╦",boxHU:"╩",boxHd:"╤",boxHu:"╧",boxUL:"╝",boxUR:"╚",boxUl:"╜",boxUr:"╙",boxV:"║",boxVH:"╬",boxVL:"╣",boxVR:"╠",boxVh:"╫",boxVl:"╢",boxVr:"╟",boxbox:"⧉",boxdL:"╕",boxdR:"╒",boxdl:"┐",boxdr:"┌",boxh:"─",boxhD:"╥",boxhU:"╨",boxhd:"┬",boxhu:"┴",boxminus:"⊟",boxplus:"⊞",boxtimes:"⊠",boxuL:"╛",boxuR:"╘",boxul:"┘",boxur:"└",boxv:"│",boxvH:"╪",boxvL:"╡",boxvR:"╞",boxvh:"┼",boxvl:"┤",boxvr:"├",bprime:"‵",breve:"˘",brvba:"¦",brvbar:"¦",bscr:"𝒷",bsemi:"⁏",bsim:"∽",bsime:"⋍",bsol:"\\",bsolb:"⧅",bsolhsub:"⟈",bull:"•",bullet:"•",bump:"≎",bumpE:"⪮",bumpe:"≏",bumpeq:"≏",cacute:"ć",cap:"∩",capand:"⩄",capbrcup:"⩉",capcap:"⩋",capcup:"⩇",capdot:"⩀",caps:"∩︀",caret:"⁁",caron:"ˇ",ccaps:"⩍",ccaron:"č",ccedi:"ç",ccedil:"ç",ccirc:"ĉ",ccups:"⩌",ccupssm:"⩐",cdot:"ċ",cedi:"¸",cedil:"¸",cemptyv:"⦲",cen:"¢",cent:"¢",centerdot:"·",cfr:"𝔠",chcy:"ч",check:"✓",checkmark:"✓",chi:"χ",cir:"○",cirE:"⧃",circ:"ˆ",circeq:"≗",circlearrowleft:"↺",circlearrowright:"↻",circledR:"®",circledS:"Ⓢ",circledast:"⊛",circledcirc:"⊚",circleddash:"⊝",cire:"≗",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",clubs:"♣",clubsuit:"♣",colon:":",colone:"≔",coloneq:"≔",comma:",",commat:"@",comp:"∁",compfn:"∘",complement:"∁",complexes:"ℂ",cong:"≅",congdot:"⩭",conint:"∮",copf:"𝕔",coprod:"∐",cop:"©",copy:"©",copysr:"℗",crarr:"↵",cross:"✗",cscr:"𝒸",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",cuesc:"⋟",cularr:"↶",cularrp:"⤽",cup:"∪",cupbrcap:"⩈",cupcap:"⩆",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curarrm:"⤼",curlyeqprec:"⋞",curlyeqsucc:"⋟",curlyvee:"⋎",curlywedge:"⋏",curre:"¤",curren:"¤",curvearrowleft:"↶",curvearrowright:"↷",cuvee:"⋎",cuwed:"⋏",cwconint:"∲",cwint:"∱",cylcty:"⌭",dArr:"⇓",dHar:"⥥",dagger:"†",daleth:"ℸ",darr:"↓",dash:"‐",dashv:"⊣",dbkarow:"⤏",dblac:"˝",dcaron:"ď",dcy:"д",dd:"ⅆ",ddagger:"‡",ddarr:"⇊",ddotseq:"⩷",de:"°",deg:"°",delta:"δ",demptyv:"⦱",dfisht:"⥿",dfr:"𝔡",dharl:"⇃",dharr:"⇂",diam:"⋄",diamond:"⋄",diamondsuit:"♦",diams:"♦",die:"¨",digamma:"ϝ",disin:"⋲",div:"÷",divid:"÷",divide:"÷",divideontimes:"⋇",divonx:"⋇",djcy:"ђ",dlcorn:"⌞",dlcrop:"⌍",dollar:"$",dopf:"𝕕",dot:"˙",doteq:"≐",doteqdot:"≑",dotminus:"∸",dotplus:"∔",dotsquare:"⊡",doublebarwedge:"⌆",downarrow:"↓",downdownarrows:"⇊",downharpoonleft:"⇃",downharpoonright:"⇂",drbkarow:"⤐",drcorn:"⌟",drcrop:"⌌",dscr:"𝒹",dscy:"ѕ",dsol:"⧶",dstrok:"đ",dtdot:"⋱",dtri:"▿",dtrif:"▾",duarr:"⇵",duhar:"⥯",dwangle:"⦦",dzcy:"џ",dzigrarr:"⟿",eDDot:"⩷",eDot:"≑",eacut:"é",eacute:"é",easter:"⩮",ecaron:"ě",ecir:"ê",ecirc:"ê",ecolon:"≕",ecy:"э",edot:"ė",ee:"ⅇ",efDot:"≒",efr:"𝔢",eg:"⪚",egrav:"è",egrave:"è",egs:"⪖",egsdot:"⪘",el:"⪙",elinters:"⏧",ell:"ℓ",els:"⪕",elsdot:"⪗",emacr:"ē",empty:"∅",emptyset:"∅",emptyv:"∅",emsp13:" ",emsp14:" ",emsp:" ",eng:"ŋ",ensp:" ",eogon:"ę",eopf:"𝕖",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",epsilon:"ε",epsiv:"ϵ",eqcirc:"≖",eqcolon:"≕",eqsim:"≂",eqslantgtr:"⪖",eqslantless:"⪕",equals:"=",equest:"≟",equiv:"≡",equivDD:"⩸",eqvparsl:"⧥",erDot:"≓",erarr:"⥱",escr:"ℯ",esdot:"≐",esim:"≂",eta:"η",et:"ð",eth:"ð",eum:"ë",euml:"ë",euro:"€",excl:"!",exist:"∃",expectation:"ℰ",exponentiale:"ⅇ",fallingdotseq:"≒",fcy:"ф",female:"♀",ffilig:"ffi",fflig:"ff",ffllig:"ffl",ffr:"𝔣",filig:"fi",fjlig:"fj",flat:"♭",fllig:"fl",fltns:"▱",fnof:"ƒ",fopf:"𝕗",forall:"∀",fork:"⋔",forkv:"⫙",fpartint:"⨍",frac1:"¼",frac12:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac3:"¾",frac34:"¾",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",fscr:"𝒻",gE:"≧",gEl:"⪌",gacute:"ǵ",gamma:"γ",gammad:"ϝ",gap:"⪆",gbreve:"ğ",gcirc:"ĝ",gcy:"г",gdot:"ġ",ge:"≥",gel:"⋛",geq:"≥",geqq:"≧",geqslant:"⩾",ges:"⩾",gescc:"⪩",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",gfr:"𝔤",gg:"≫",ggg:"⋙",gimel:"ℷ",gjcy:"ѓ",gl:"≷",glE:"⪒",gla:"⪥",glj:"⪤",gnE:"≩",gnap:"⪊",gnapprox:"⪊",gne:"⪈",gneq:"⪈",gneqq:"≩",gnsim:"⋧",gopf:"𝕘",grave:"`",gscr:"ℊ",gsim:"≳",gsime:"⪎",gsiml:"⪐",g:">",gt:">",gtcc:"⪧",gtcir:"⩺",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",hArr:"⇔",hairsp:" ",half:"½",hamilt:"ℋ",hardcy:"ъ",harr:"↔",harrcir:"⥈",harrw:"↭",hbar:"ℏ",hcirc:"ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",hercon:"⊹",hfr:"𝔥",hksearow:"⤥",hkswarow:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"↪",hopf:"𝕙",horbar:"―",hscr:"𝒽",hslash:"ℏ",hstrok:"ħ",hybull:"⁃",hyphen:"‐",iacut:"í",iacute:"í",ic:"",icir:"î",icirc:"î",icy:"и",iecy:"е",iexc:"¡",iexcl:"¡",iff:"⇔",ifr:"𝔦",igrav:"ì",igrave:"ì",ii:"ⅈ",iiiint:"⨌",iiint:"∭",iinfin:"⧜",iiota:"℩",ijlig:"ij",imacr:"ī",image:"ℑ",imagline:"ℐ",imagpart:"ℑ",imath:"ı",imof:"⊷",imped:"Ƶ",in:"∈",incare:"℅",infin:"∞",infintie:"⧝",inodot:"ı",int:"∫",intcal:"⊺",integers:"ℤ",intercal:"⊺",intlarhk:"⨗",intprod:"⨼",iocy:"ё",iogon:"į",iopf:"𝕚",iota:"ι",iprod:"⨼",iques:"¿",iquest:"¿",iscr:"𝒾",isin:"∈",isinE:"⋹",isindot:"⋵",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"",itilde:"ĩ",iukcy:"і",ium:"ï",iuml:"ï",jcirc:"ĵ",jcy:"й",jfr:"𝔧",jmath:"ȷ",jopf:"𝕛",jscr:"𝒿",jsercy:"ј",jukcy:"є",kappa:"κ",kappav:"ϰ",kcedil:"ķ",kcy:"к",kfr:"𝔨",kgreen:"ĸ",khcy:"х",kjcy:"ќ",kopf:"𝕜",kscr:"𝓀",lAarr:"⇚",lArr:"⇐",lAtail:"⤛",lBarr:"⤎",lE:"≦",lEg:"⪋",lHar:"⥢",lacute:"ĺ",laemptyv:"⦴",lagran:"ℒ",lambda:"λ",lang:"⟨",langd:"⦑",langle:"⟨",lap:"⪅",laqu:"«",laquo:"«",larr:"←",larrb:"⇤",larrbfs:"⤟",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",lat:"⪫",latail:"⤙",late:"⪭",lates:"⪭︀",lbarr:"⤌",lbbrk:"❲",lbrace:"{",lbrack:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",lcaron:"ľ",lcedil:"ļ",lceil:"⌈",lcub:"{",lcy:"л",ldca:"⤶",ldquo:"“",ldquor:"„",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",le:"≤",leftarrow:"←",leftarrowtail:"↢",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",leftrightarrow:"↔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",leftthreetimes:"⋋",leg:"⋚",leq:"≤",leqq:"≦",leqslant:"⩽",les:"⩽",lescc:"⪨",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessapprox:"⪅",lessdot:"⋖",lesseqgtr:"⋚",lesseqqgtr:"⪋",lessgtr:"≶",lesssim:"≲",lfisht:"⥼",lfloor:"⌊",lfr:"𝔩",lg:"≶",lgE:"⪑",lhard:"↽",lharu:"↼",lharul:"⥪",lhblk:"▄",ljcy:"љ",ll:"≪",llarr:"⇇",llcorner:"⌞",llhard:"⥫",lltri:"◺",lmidot:"ŀ",lmoust:"⎰",lmoustache:"⎰",lnE:"≨",lnap:"⪉",lnapprox:"⪉",lne:"⪇",lneq:"⪇",lneqq:"≨",lnsim:"⋦",loang:"⟬",loarr:"⇽",lobrk:"⟦",longleftarrow:"⟵",longleftrightarrow:"⟷",longmapsto:"⟼",longrightarrow:"⟶",looparrowleft:"↫",looparrowright:"↬",lopar:"⦅",lopf:"𝕝",loplus:"⨭",lotimes:"⨴",lowast:"∗",lowbar:"_",loz:"◊",lozenge:"◊",lozf:"⧫",lpar:"(",lparlt:"⦓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"⥭",lrm:"",lrtri:"⊿",lsaquo:"‹",lscr:"𝓁",lsh:"↰",lsim:"≲",lsime:"⪍",lsimg:"⪏",lsqb:"[",lsquo:"‘",lsquor:"‚",lstrok:"ł",l:"<",lt:"<",ltcc:"⪦",ltcir:"⩹",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltrPar:"⦖",ltri:"◃",ltrie:"⊴",ltrif:"◂",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",mDDot:"∺",mac:"¯",macr:"¯",male:"♂",malt:"✠",maltese:"✠",map:"↦",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",mcy:"м",mdash:"—",measuredangle:"∡",mfr:"𝔪",mho:"℧",micr:"µ",micro:"µ",mid:"∣",midast:"*",midcir:"⫰",middo:"·",middot:"·",minus:"−",minusb:"⊟",minusd:"∸",minusdu:"⨪",mlcp:"⫛",mldr:"…",mnplus:"∓",models:"⊧",mopf:"𝕞",mp:"∓",mscr:"𝓂",mstpos:"∾",mu:"μ",multimap:"⊸",mumap:"⊸",nGg:"⋙̸",nGt:"≫⃒",nGtv:"≫̸",nLeftarrow:"⇍",nLeftrightarrow:"⇎",nLl:"⋘̸",nLt:"≪⃒",nLtv:"≪̸",nRightarrow:"⇏",nVDash:"⊯",nVdash:"⊮",nabla:"∇",nacute:"ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ʼn",napprox:"≉",natur:"♮",natural:"♮",naturals:"ℕ",nbs:" ",nbsp:" ",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",ncaron:"ň",ncedil:"ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",ncy:"н",ndash:"–",ne:"≠",neArr:"⇗",nearhk:"⤤",nearr:"↗",nearrow:"↗",nedot:"≐̸",nequiv:"≢",nesear:"⤨",nesim:"≂̸",nexist:"∄",nexists:"∄",nfr:"𝔫",ngE:"≧̸",nge:"≱",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",ngsim:"≵",ngt:"≯",ngtr:"≯",nhArr:"⇎",nharr:"↮",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",njcy:"њ",nlArr:"⇍",nlE:"≦̸",nlarr:"↚",nldr:"‥",nle:"≰",nleftarrow:"↚",nleftrightarrow:"↮",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nlsim:"≴",nlt:"≮",nltri:"⋪",nltrie:"⋬",nmid:"∤",nopf:"𝕟",no:"¬",not:"¬",notin:"∉",notinE:"⋹̸",notindot:"⋵̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",npar:"∦",nparallel:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"⋠",npre:"⪯̸",nprec:"⊀",npreceq:"⪯̸",nrArr:"⇏",nrarr:"↛",nrarrc:"⤳̸",nrarrw:"↝̸",nrightarrow:"↛",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",nscr:"𝓃",nshortmid:"∤",nshortparallel:"∦",nsim:"≁",nsime:"≄",nsimeq:"≄",nsmid:"∤",nspar:"∦",nsqsube:"⋢",nsqsupe:"⋣",nsub:"⊄",nsubE:"⫅̸",nsube:"⊈",nsubset:"⊂⃒",nsubseteq:"⊈",nsubseteqq:"⫅̸",nsucc:"⊁",nsucceq:"⪰̸",nsup:"⊅",nsupE:"⫆̸",nsupe:"⊉",nsupset:"⊃⃒",nsupseteq:"⊉",nsupseteqq:"⫆̸",ntgl:"≹",ntild:"ñ",ntilde:"ñ",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",nu:"ν",num:"#",numero:"№",numsp:" ",nvDash:"⊭",nvHarr:"⤄",nvap:"≍⃒",nvdash:"⊬",nvge:"≥⃒",nvgt:">⃒",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwArr:"⇖",nwarhk:"⤣",nwarr:"↖",nwarrow:"↖",nwnear:"⤧",oS:"Ⓢ",oacut:"ó",oacute:"ó",oast:"⊛",ocir:"ô",ocirc:"ô",ocy:"о",odash:"⊝",odblac:"ő",odiv:"⨸",odot:"⊙",odsold:"⦼",oelig:"œ",ofcir:"⦿",ofr:"𝔬",ogon:"˛",ograv:"ò",ograve:"ò",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",omacr:"ō",omega:"ω",omicron:"ο",omid:"⦶",ominus:"⊖",oopf:"𝕠",opar:"⦷",operp:"⦹",oplus:"⊕",or:"∨",orarr:"↻",ord:"º",order:"ℴ",orderof:"ℴ",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oscr:"ℴ",oslas:"ø",oslash:"ø",osol:"⊘",otild:"õ",otilde:"õ",otimes:"⊗",otimesas:"⨶",oum:"ö",ouml:"ö",ovbar:"⌽",par:"¶",para:"¶",parallel:"∥",parsim:"⫳",parsl:"⫽",part:"∂",pcy:"п",percnt:"%",period:".",permil:"‰",perp:"⊥",pertenk:"‱",pfr:"𝔭",phi:"φ",phiv:"ϕ",phmmat:"ℳ",phone:"☎",pi:"π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"ℎ",plankv:"ℏ",plus:"+",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plusdo:"∔",plusdu:"⨥",pluse:"⩲",plusm:"±",plusmn:"±",plussim:"⨦",plustwo:"⨧",pm:"±",pointint:"⨕",popf:"𝕡",poun:"£",pound:"£",pr:"≺",prE:"⪳",prap:"⪷",prcue:"≼",pre:"⪯",prec:"≺",precapprox:"⪷",preccurlyeq:"≼",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",precsim:"≾",prime:"′",primes:"ℙ",prnE:"⪵",prnap:"⪹",prnsim:"⋨",prod:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",propto:"∝",prsim:"≾",prurel:"⊰",pscr:"𝓅",psi:"ψ",puncsp:" ",qfr:"𝔮",qint:"⨌",qopf:"𝕢",qprime:"⁗",qscr:"𝓆",quaternions:"ℍ",quatint:"⨖",quest:"?",questeq:"≟",quo:'"',quot:'"',rAarr:"⇛",rArr:"⇒",rAtail:"⤜",rBarr:"⤏",rHar:"⥤",race:"∽̱",racute:"ŕ",radic:"√",raemptyv:"⦳",rang:"⟩",rangd:"⦒",range:"⦥",rangle:"⟩",raqu:"»",raquo:"»",rarr:"→",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarrfs:"⤞",rarrhk:"↪",rarrlp:"↬",rarrpl:"⥅",rarrsim:"⥴",rarrtl:"↣",rarrw:"↝",ratail:"⤚",ratio:"∶",rationals:"ℚ",rbarr:"⤍",rbbrk:"❳",rbrace:"}",rbrack:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",rcaron:"ř",rcedil:"ŗ",rceil:"⌉",rcub:"}",rcy:"р",rdca:"⤷",rdldhar:"⥩",rdquo:"”",rdquor:"”",rdsh:"↳",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",rect:"▭",re:"®",reg:"®",rfisht:"⥽",rfloor:"⌋",rfr:"𝔯",rhard:"⇁",rharu:"⇀",rharul:"⥬",rho:"ρ",rhov:"ϱ",rightarrow:"→",rightarrowtail:"↣",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",rightthreetimes:"⋌",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"",rmoust:"⎱",rmoustache:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",robrk:"⟧",ropar:"⦆",ropf:"𝕣",roplus:"⨮",rotimes:"⨵",rpar:")",rpargt:"⦔",rppolint:"⨒",rrarr:"⇉",rsaquo:"›",rscr:"𝓇",rsh:"↱",rsqb:"]",rsquo:"’",rsquor:"’",rthree:"⋌",rtimes:"⋊",rtri:"▹",rtrie:"⊵",rtrif:"▸",rtriltri:"⧎",ruluhar:"⥨",rx:"℞",sacute:"ś",sbquo:"‚",sc:"≻",scE:"⪴",scap:"⪸",scaron:"š",sccue:"≽",sce:"⪰",scedil:"ş",scirc:"ŝ",scnE:"⪶",scnap:"⪺",scnsim:"⋩",scpolint:"⨓",scsim:"≿",scy:"с",sdot:"⋅",sdotb:"⊡",sdote:"⩦",seArr:"⇘",searhk:"⤥",searr:"↘",searrow:"↘",sec:"§",sect:"§",semi:";",seswar:"⤩",setminus:"∖",setmn:"∖",sext:"✶",sfr:"𝔰",sfrown:"⌢",sharp:"♯",shchcy:"щ",shcy:"ш",shortmid:"∣",shortparallel:"∥",sh:"",shy:"",sigma:"σ",sigmaf:"ς",sigmav:"ς",sim:"∼",simdot:"⩪",sime:"≃",simeq:"≃",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",slarr:"←",smallsetminus:"∖",smashp:"⨳",smeparsl:"⧤",smid:"∣",smile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",softcy:"ь",sol:"/",solb:"⧄",solbar:"⌿",sopf:"𝕤",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",squ:"□",square:"□",squarf:"▪",squf:"▪",srarr:"→",sscr:"𝓈",ssetmn:"∖",ssmile:"⌣",sstarf:"⋆",star:"☆",starf:"★",straightepsilon:"ϵ",straightphi:"ϕ",strns:"¯",sub:"⊂",subE:"⫅",subdot:"⪽",sube:"⊆",subedot:"⫃",submult:"⫁",subnE:"⫋",subne:"⊊",subplus:"⪿",subrarr:"⥹",subset:"⊂",subseteq:"⊆",subseteqq:"⫅",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succ:"≻",succapprox:"⪸",succcurlyeq:"≽",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",sum:"∑",sung:"♪",sup:"⊃",sup1:"¹",sup2:"²",sup3:"³",supE:"⫆",supdot:"⪾",supdsub:"⫘",supe:"⊇",supedot:"⫄",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supnE:"⫌",supne:"⊋",supplus:"⫀",supset:"⊃",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swArr:"⇙",swarhk:"⤦",swarr:"↙",swarrow:"↙",swnwar:"⤪",szli:"ß",szlig:"ß",target:"⌖",tau:"τ",tbrk:"⎴",tcaron:"ť",tcedil:"ţ",tcy:"т",tdot:"⃛",telrec:"⌕",tfr:"𝔱",there4:"∴",therefore:"∴",theta:"θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"∼",thinsp:" ",thkap:"≈",thksim:"∼",thor:"þ",thorn:"þ",tilde:"˜",time:"×",times:"×",timesb:"⊠",timesbar:"⨱",timesd:"⨰",tint:"∭",toea:"⤨",top:"⊤",topbot:"⌶",topcir:"⫱",topf:"𝕥",topfork:"⫚",tosa:"⤩",tprime:"‴",trade:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴",triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",tscr:"𝓉",tscy:"ц",tshcy:"ћ",tstrok:"ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",uArr:"⇑",uHar:"⥣",uacut:"ú",uacute:"ú",uarr:"↑",ubrcy:"ў",ubreve:"ŭ",ucir:"û",ucirc:"û",ucy:"у",udarr:"⇅",udblac:"ű",udhar:"⥮",ufisht:"⥾",ufr:"𝔲",ugrav:"ù",ugrave:"ù",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",umacr:"ū",um:"¨",uml:"¨",uogon:"ų",uopf:"𝕦",uparrow:"↑",updownarrow:"↕",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",upsi:"υ",upsih:"ϒ",upsilon:"υ",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",uring:"ů",urtri:"◹",uscr:"𝓊",utdot:"⋰",utilde:"ũ",utri:"▵",utrif:"▴",uuarr:"⇈",uum:"ü",uuml:"ü",uwangle:"⦧",vArr:"⇕",vBar:"⫨",vBarv:"⫩",vDash:"⊨",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",varr:"↕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀",vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",vcy:"в",vdash:"⊢",vee:"∨",veebar:"⊻",veeeq:"≚",vellip:"⋮",verbar:"|",vert:"|",vfr:"𝔳",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",vopf:"𝕧",vprop:"∝",vrtri:"⊳",vscr:"𝓋",vsubnE:"⫋︀",vsubne:"⊊︀",vsupnE:"⫌︀",vsupne:"⊋︀",vzigzag:"⦚",wcirc:"ŵ",wedbar:"⩟",wedge:"∧",wedgeq:"≙",weierp:"℘",wfr:"𝔴",wopf:"𝕨",wp:"℘",wr:"≀",wreath:"≀",wscr:"𝓌",xcap:"⋂",xcirc:"◯",xcup:"⋃",xdtri:"▽",xfr:"𝔵",xhArr:"⟺",xharr:"⟷",xi:"ξ",xlArr:"⟸",xlarr:"⟵",xmap:"⟼",xnis:"⋻",xodot:"⨀",xopf:"𝕩",xoplus:"⨁",xotime:"⨂",xrArr:"⟹",xrarr:"⟶",xscr:"𝓍",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"⋁",xwedge:"⋀",yacut:"ý",yacute:"ý",yacy:"я",ycirc:"ŷ",ycy:"ы",ye:"¥",yen:"¥",yfr:"𝔶",yicy:"ї",yopf:"𝕪",yscr:"𝓎",yucy:"ю",yum:"ÿ",yuml:"ÿ",zacute:"ź",zcaron:"ž",zcy:"з",zdot:"ż",zeetrf:"ℨ",zeta:"ζ",zfr:"𝔷",zhcy:"ж",zigrarr:"⇝",zopf:"𝕫",zscr:"𝓏",zwj:"",zwnj:""},na={}.hasOwnProperty;function ia(e){return!!na.call(ra,e)&&ra[e]}const aa={name:"characterReference",tokenize:function(e,t,r){const n=this;let i,a,o=0;return function(t){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(t),e.exit("characterReferenceMarker"),s};function s(t){return 35===t?(e.enter("characterReferenceMarkerNumeric"),e.consume(t),e.exit("characterReferenceMarkerNumeric"),c):(e.enter("characterReferenceValue"),i=31,a=Ii,u(t))}function c(t){return 88===t||120===t?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(t),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),i=6,a=Di,u):(e.enter("characterReferenceValue"),i=7,a=Oi,u(t))}function u(s){let c;return 59===s&&o?(c=e.exit("characterReferenceValue"),a!==Ii||ia(n.sliceSerialize(c))?(e.enter("characterReferenceMarker"),e.consume(s),e.exit("characterReferenceMarker"),e.exit("characterReference"),t):r(s)):a(s)&&o++<i?(e.consume(s),u):r(s)}}};const oa={name:"codeFenced",tokenize:function(e,t,r){const n=this,i={tokenize:function(e,t,r){let n=0;return Ui(e,i,"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4);function i(t){return e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),a(t)}function a(t){return t===c?(e.consume(t),n++,a):n<u?r(t):(e.exit("codeFencedFenceSequence"),Ui(e,o,"whitespace")(t))}function o(n){return null===n||qi(n)?(e.exit("codeFencedFence"),t(n)):r(n)}},partial:!0},a={tokenize:function(e,t,r){const n=this;return i;function i(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),a}function a(e){return n.parser.lazy[n.now().line]?r(e):t(e)}},partial:!0},o=this.events[this.events.length-1],s=o&&"linePrefix"===o[1].type?o[2].sliceSerialize(o[1],!0).length:0;let c,u=0;return function(t){return e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),c=t,l(t)};function l(t){return t===c?(e.consume(t),u++,l):(e.exit("codeFencedFenceSequence"),u<3?r(t):Ui(e,f,"whitespace")(t))}function f(t){return null===t||qi(t)?m(t):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),h(t))}function h(t){return null===t||Li(t)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),Ui(e,p,"whitespace")(t)):96===t&&t===c?r(t):(e.consume(t),h)}function p(t){return null===t||qi(t)?m(t):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),d(t))}function d(t){return null===t||qi(t)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),m(t)):96===t&&t===c?r(t):(e.consume(t),d)}function m(r){return e.exit("codeFencedFence"),n.interrupt?t(r):g(r)}function g(t){return null===t?y(t):qi(t)?e.attempt(a,e.attempt(i,y,s?Ui(e,g,"linePrefix",s+1):g),y)(t):(e.enter("codeFlowValue"),v(t))}function v(t){return null===t||qi(t)?(e.exit("codeFlowValue"),g(t)):(e.consume(t),v)}function y(r){return e.exit("codeFenced"),t(r)}},concrete:!0};const sa={name:"codeIndented",tokenize:function(e,t,r){const n=this;return function(t){return e.enter("codeIndented"),Ui(e,i,"linePrefix",5)(t)};function i(e){const t=n.events[n.events.length-1];return t&&"linePrefix"===t[1].type&&t[2].sliceSerialize(t[1],!0).length>=4?a(e):r(e)}function a(t){return null===t?s(t):qi(t)?e.attempt(ca,a,s)(t):(e.enter("codeFlowValue"),o(t))}function o(t){return null===t||qi(t)?(e.exit("codeFlowValue"),a(t)):(e.consume(t),o)}function s(r){return e.exit("codeIndented"),t(r)}}},ca={tokenize:function(e,t,r){const n=this;return i;function i(t){return n.parser.lazy[n.now().line]?r(t):qi(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i):Ui(e,a,"linePrefix",5)(t)}function a(e){const a=n.events[n.events.length-1];return a&&"linePrefix"===a[1].type&&a[2].sliceSerialize(a[1],!0).length>=4?t(e):qi(e)?i(e):r(e)}},partial:!0};const ua={name:"codeText",tokenize:function(e,t,r){let n,i,a=0;return function(t){return e.enter("codeText"),e.enter("codeTextSequence"),o(t)};function o(t){return 96===t?(e.consume(t),a++,o):(e.exit("codeTextSequence"),s(t))}function s(t){return null===t?r(t):96===t?(i=e.enter("codeTextSequence"),n=0,u(t)):32===t?(e.enter("space"),e.consume(t),e.exit("space"),s):qi(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),s):(e.enter("codeTextData"),c(t))}function c(t){return null===t||32===t||96===t||qi(t)?(e.exit("codeTextData"),s(t)):(e.consume(t),c)}function u(r){return 96===r?(e.consume(r),n++,u):n===a?(e.exit("codeTextSequence"),e.exit("codeText"),t(r)):(i.type="codeTextData",c(r))}},resolve:function(e){let t,r,n=e.length-4,i=3;if(!("lineEnding"!==e[i][1].type&&"space"!==e[i][1].type||"lineEnding"!==e[n][1].type&&"space"!==e[n][1].type))for(t=i;++t<n;)if("codeTextData"===e[t][1].type){e[i][1].type="codeTextPadding",e[n][1].type="codeTextPadding",i+=2,n-=2;break}t=i-1,n++;for(;++t<=n;)void 0===r?t!==n&&"lineEnding"!==e[t][1].type&&(r=t):t!==n&&"lineEnding"!==e[t][1].type||(e[r][1].type="codeTextData",t!==r+2&&(e[r][1].end=e[t-1][1].end,e.splice(r+2,t-r-2),n-=t-r-2,t=r+2),r=void 0);return e},previous:function(e){return 96!==e||"characterEscape"===this.events[this.events.length-1][1].type}};function la(e){const t={};let r,n,i,a,o,s,c,u=-1;for(;++u<e.length;){for(;u in t;)u=t[u];if(r=e[u],u&&"chunkFlow"===r[1].type&&"listItemPrefix"===e[u-1][1].type&&(s=r[1]._tokenizer.events,i=0,i<s.length&&"lineEndingBlank"===s[i][1].type&&(i+=2),i<s.length&&"content"===s[i][1].type))for(;++i<s.length&&"content"!==s[i][1].type;)"chunkText"===s[i][1].type&&(s[i][1]._isInFirstContentOfListItem=!0,i++);if("enter"===r[0])r[1].contentType&&(Object.assign(t,fa(e,u)),u=t[u],c=!0);else if(r[1]._container){for(i=u,n=void 0;i--&&(a=e[i],"lineEnding"===a[1].type||"lineEndingBlank"===a[1].type);)"enter"===a[0]&&(n&&(e[n][1].type="lineEndingBlank"),a[1].type="lineEnding",n=i);n&&(r[1].end=Object.assign({},e[n][1].start),o=e.slice(n,u),o.unshift(r),ki(e,n,u-n+1,o))}}return!c}function fa(e,t){const r=e[t][1],n=e[t][2];let i=t-1;const a=[],o=r._tokenizer||n.parser[r.contentType](r.start),s=o.events,c=[],u={};let l,f,h=-1,p=r,d=0,m=0;const g=[m];for(;p;){for(;e[++i][1]!==p;);a.push(i),p._tokenizer||(l=n.sliceStream(p),p.next||l.push(null),f&&o.defineSkip(p.start),p._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=!0),o.write(l),p._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=void 0)),f=p,p=p.next}for(p=r;++h<s.length;)"exit"===s[h][0]&&"enter"===s[h-1][0]&&s[h][1].type===s[h-1][1].type&&s[h][1].start.line!==s[h][1].end.line&&(m=h+1,g.push(m),p._tokenizer=void 0,p.previous=void 0,p=p.next);for(o.events=[],p?(p._tokenizer=void 0,p.previous=void 0):g.pop(),h=g.length;h--;){const t=s.slice(g[h],g[h+1]),r=a.pop();c.unshift([r,r+t.length-1]),ki(e,r,2,t)}for(h=-1;++h<c.length;)u[d+c[h][0]]=d+c[h][1],d+=c[h][1]-c[h][0]-1;return u}const ha={tokenize:function(e,t){let r;return function(t){return e.enter("content"),r=e.enter("chunkContent",{contentType:"content"}),n(t)};function n(t){return null===t?i(t):qi(t)?e.check(pa,a,i)(t):(e.consume(t),n)}function i(r){return e.exit("chunkContent"),e.exit("content"),t(r)}function a(t){return e.consume(t),e.exit("chunkContent"),r.next=e.enter("chunkContent",{contentType:"content",previous:r}),r=r.next,n}},resolve:function(e){return la(e),e}},pa={tokenize:function(e,t,r){const n=this;return function(t){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),Ui(e,i,"linePrefix")};function i(i){if(null===i||qi(i))return r(i);const a=n.events[n.events.length-1];return!n.parser.constructs.disable.null.includes("codeIndented")&&a&&"linePrefix"===a[1].type&&a[2].sliceSerialize(a[1],!0).length>=4?t(i):e.interrupt(n.parser.constructs.flow,r,t)(i)}},partial:!0};function da(e,t,r,n,i,a,o,s,c){const u=c||Number.POSITIVE_INFINITY;let l=0;return function(t){if(60===t)return e.enter(n),e.enter(i),e.enter(a),e.consume(t),e.exit(a),f;if(null===t||41===t||Ri(t))return r(t);return e.enter(n),e.enter(o),e.enter(s),e.enter("chunkString",{contentType:"string"}),d(t)};function f(r){return 62===r?(e.enter(a),e.consume(r),e.exit(a),e.exit(i),e.exit(n),t):(e.enter(s),e.enter("chunkString",{contentType:"string"}),h(r))}function h(t){return 62===t?(e.exit("chunkString"),e.exit(s),f(t)):null===t||60===t||qi(t)?r(t):(e.consume(t),92===t?p:h)}function p(t){return 60===t||62===t||92===t?(e.consume(t),h):h(t)}function d(i){return 40===i?++l>u?r(i):(e.consume(i),d):41===i?l--?(e.consume(i),d):(e.exit("chunkString"),e.exit(s),e.exit(o),e.exit(n),t(i)):null===i||Li(i)?l?r(i):(e.exit("chunkString"),e.exit(s),e.exit(o),e.exit(n),t(i)):Ri(i)?r(i):(e.consume(i),92===i?m:d)}function m(t){return 40===t||41===t||92===t?(e.consume(t),d):d(t)}}var ma=Object.freeze({__proto__:null,factoryDestination:da});function ga(e,t,r,n,i,a){const o=this;let s,c=0;return function(t){return e.enter(n),e.enter(i),e.consume(t),e.exit(i),e.enter(a),u};function u(f){return null===f||91===f||93===f&&!s||94===f&&!c&&"_hiddenFootnoteSupport"in o.parser.constructs||c>999?r(f):93===f?(e.exit(a),e.enter(i),e.consume(f),e.exit(i),e.exit(n),t):qi(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),u):(e.enter("chunkString",{contentType:"string"}),l(f))}function l(t){return null===t||91===t||93===t||qi(t)||c++>999?(e.exit("chunkString"),u(t)):(e.consume(t),s=s||!Mi(t),92===t?f:l)}function f(t){return 91===t||92===t||93===t?(e.consume(t),c++,l):l(t)}}var va=Object.freeze({__proto__:null,factoryLabel:ga});function ya(e,t,r,n,i,a){let o;return function(t){return e.enter(n),e.enter(i),e.consume(t),e.exit(i),o=40===t?41:t,s};function s(r){return r===o?(e.enter(i),e.consume(r),e.exit(i),e.exit(n),t):(e.enter(a),c(r))}function c(t){return t===o?(e.exit(a),s(o)):null===t?r(t):qi(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),Ui(e,c,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),u(t))}function u(t){return t===o||null===t||qi(t)?(e.exit("chunkString"),c(t)):(e.consume(t),92===t?l:u)}function l(t){return t===o||92===t?(e.consume(t),u):u(t)}}var ba=Object.freeze({__proto__:null,factoryTitle:ya});function wa(e,t){let r;return function n(i){if(qi(i))return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),r=!0,n;if(Mi(i))return Ui(e,n,r?"linePrefix":"lineSuffix")(i);return t(i)}}var xa=Object.freeze({__proto__:null,factoryWhitespace:wa});function ka(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}var Ea=Object.freeze({__proto__:null,normalizeIdentifier:ka});const Sa={name:"definition",tokenize:function(e,t,r){const n=this;let i;return function(t){return e.enter("definition"),ga.call(n,e,a,r,"definitionLabel","definitionLabelMarker","definitionLabelString")(t)};function a(t){return i=ka(n.sliceSerialize(n.events[n.events.length-1][1]).slice(1,-1)),58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),wa(e,da(e,e.attempt(Ca,Ui(e,o,"whitespace"),Ui(e,o,"whitespace")),r,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString"))):r(t)}function o(a){return null===a||qi(a)?(e.exit("definition"),n.parser.defined.includes(i)||n.parser.defined.push(i),t(a)):r(a)}}},Ca={tokenize:function(e,t,r){return function(t){return Li(t)?wa(e,n)(t):r(t)};function n(t){return 34===t||39===t||40===t?ya(e,Ui(e,i,"whitespace"),r,"definitionTitle","definitionTitleMarker","definitionTitleString")(t):r(t)}function i(e){return null===e||qi(e)?t(e):r(e)}},partial:!0};const Aa={name:"hardBreakEscape",tokenize:function(e,t,r){return function(t){return e.enter("hardBreakEscape"),e.enter("escapeMarker"),e.consume(t),n};function n(n){return qi(n)?(e.exit("escapeMarker"),e.exit("hardBreakEscape"),t(n)):r(n)}}};const Pa={name:"headingAtx",tokenize:function(e,t,r){const n=this;let i=0;return function(t){return e.enter("atxHeading"),e.enter("atxHeadingSequence"),a(t)};function a(s){return 35===s&&i++<6?(e.consume(s),a):null===s||Li(s)?(e.exit("atxHeadingSequence"),n.interrupt?t(s):o(s)):r(s)}function o(r){return 35===r?(e.enter("atxHeadingSequence"),s(r)):null===r||qi(r)?(e.exit("atxHeading"),t(r)):Mi(r)?Ui(e,o,"whitespace")(r):(e.enter("atxHeadingText"),c(r))}function s(t){return 35===t?(e.consume(t),s):(e.exit("atxHeadingSequence"),o(t))}function c(t){return null===t||35===t||Li(t)?(e.exit("atxHeadingText"),o(t)):(e.consume(t),c)}},resolve:function(e,t){let r,n,i=e.length-2,a=3;"whitespace"===e[a][1].type&&(a+=2);i-2>a&&"whitespace"===e[i][1].type&&(i-=2);"atxHeadingSequence"===e[i][1].type&&(a===i-1||i-4>a&&"whitespace"===e[i-2][1].type)&&(i-=a+1===i?2:4);i>a&&(r={type:"atxHeadingText",start:e[a][1].start,end:e[i][1].end},n={type:"chunkText",start:e[a][1].start,end:e[i][1].end,contentType:"text"},ki(e,a,i-a+1,[["enter",r,t],["enter",n,t],["exit",n,t],["exit",r,t]]));return e}};const _a=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","section","source","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],Fa=["pre","script","style","textarea"],Oa={name:"htmlFlow",tokenize:function(e,t,r){const n=this;let i,a,o,s,c;return function(t){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(t),u};function u(s){return 33===s?(e.consume(s),l):47===s?(e.consume(s),p):63===s?(e.consume(s),i=3,n.interrupt?t:j):Fi(s)?(e.consume(s),o=String.fromCharCode(s),a=!0,d):r(s)}function l(a){return 45===a?(e.consume(a),i=2,f):91===a?(e.consume(a),i=5,o="CDATA[",s=0,h):Fi(a)?(e.consume(a),i=4,n.interrupt?t:j):r(a)}function f(i){return 45===i?(e.consume(i),n.interrupt?t:j):r(i)}function h(i){return i===o.charCodeAt(s++)?(e.consume(i),s===o.length?n.interrupt?t:A:h):r(i)}function p(t){return Fi(t)?(e.consume(t),o=String.fromCharCode(t),d):r(t)}function d(s){return null===s||47===s||62===s||Li(s)?47!==s&&a&&Fa.includes(o.toLowerCase())?(i=1,n.interrupt?t(s):A(s)):_a.includes(o.toLowerCase())?(i=6,47===s?(e.consume(s),m):n.interrupt?t(s):A(s)):(i=7,n.interrupt&&!n.parser.lazy[n.now().line]?r(s):a?v(s):g(s)):45===s||Ii(s)?(e.consume(s),o+=String.fromCharCode(s),d):r(s)}function m(i){return 62===i?(e.consume(i),n.interrupt?t:A):r(i)}function g(t){return Mi(t)?(e.consume(t),g):S(t)}function v(t){return 47===t?(e.consume(t),S):58===t||95===t||Fi(t)?(e.consume(t),y):Mi(t)?(e.consume(t),v):S(t)}function y(t){return 45===t||46===t||58===t||95===t||Ii(t)?(e.consume(t),y):b(t)}function b(t){return 61===t?(e.consume(t),w):Mi(t)?(e.consume(t),b):v(t)}function w(t){return null===t||60===t||61===t||62===t||96===t?r(t):34===t||39===t?(e.consume(t),c=t,x):Mi(t)?(e.consume(t),w):(c=null,k(t))}function x(t){return null===t||qi(t)?r(t):t===c?(e.consume(t),E):(e.consume(t),x)}function k(t){return null===t||34===t||39===t||60===t||61===t||62===t||96===t||Li(t)?b(t):(e.consume(t),k)}function E(e){return 47===e||62===e||Mi(e)?v(e):r(e)}function S(t){return 62===t?(e.consume(t),C):r(t)}function C(t){return Mi(t)?(e.consume(t),C):null===t||qi(t)?A(t):r(t)}function A(t){return 45===t&&2===i?(e.consume(t),O):60===t&&1===i?(e.consume(t),D):62===t&&4===i?(e.consume(t),R):63===t&&3===i?(e.consume(t),j):93===t&&5===i?(e.consume(t),T):!qi(t)||6!==i&&7!==i?null===t||qi(t)?P(t):(e.consume(t),A):e.check(Da,R,P)(t)}function P(t){return e.exit("htmlFlowData"),_(t)}function _(t){return null===t?L(t):qi(t)?e.attempt({tokenize:F,partial:!0},_,L)(t):(e.enter("htmlFlowData"),A(t))}function F(e,t,r){return function(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i};function i(e){return n.parser.lazy[n.now().line]?r(e):t(e)}}function O(t){return 45===t?(e.consume(t),j):A(t)}function D(t){return 47===t?(e.consume(t),o="",I):A(t)}function I(t){return 62===t&&Fa.includes(o.toLowerCase())?(e.consume(t),R):Fi(t)&&o.length<8?(e.consume(t),o+=String.fromCharCode(t),I):A(t)}function T(t){return 93===t?(e.consume(t),j):A(t)}function j(t){return 62===t?(e.consume(t),R):A(t)}function R(t){return null===t||qi(t)?(e.exit("htmlFlowData"),L(t)):(e.consume(t),R)}function L(r){return e.exit("htmlFlow"),t(r)}},resolveTo:function(e){let t=e.length;for(;t--&&("enter"!==e[t][0]||"htmlFlow"!==e[t][1].type););t>1&&"linePrefix"===e[t-2][1].type&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2));return e},concrete:!0},Da={tokenize:function(e,t,r){return function(n){return e.exit("htmlFlowData"),e.enter("lineEndingBlank"),e.consume(n),e.exit("lineEndingBlank"),e.attempt(Xi,t,r)}},partial:!0};const Ia={name:"htmlText",tokenize:function(e,t,r){const n=this;let i,a,o,s;return function(t){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(t),c};function c(t){return 33===t?(e.consume(t),u):47===t?(e.consume(t),k):63===t?(e.consume(t),w):Fi(t)?(e.consume(t),C):r(t)}function u(t){return 45===t?(e.consume(t),l):91===t?(e.consume(t),a="CDATA[",o=0,m):Fi(t)?(e.consume(t),b):r(t)}function l(t){return 45===t?(e.consume(t),f):r(t)}function f(t){return null===t||62===t?r(t):45===t?(e.consume(t),h):p(t)}function h(e){return null===e||62===e?r(e):p(e)}function p(t){return null===t?r(t):45===t?(e.consume(t),d):qi(t)?(s=p,T(t)):(e.consume(t),p)}function d(t){return 45===t?(e.consume(t),R):p(t)}function m(t){return t===a.charCodeAt(o++)?(e.consume(t),o===a.length?g:m):r(t)}function g(t){return null===t?r(t):93===t?(e.consume(t),v):qi(t)?(s=g,T(t)):(e.consume(t),g)}function v(t){return 93===t?(e.consume(t),y):g(t)}function y(t){return 62===t?R(t):93===t?(e.consume(t),y):g(t)}function b(t){return null===t||62===t?R(t):qi(t)?(s=b,T(t)):(e.consume(t),b)}function w(t){return null===t?r(t):63===t?(e.consume(t),x):qi(t)?(s=w,T(t)):(e.consume(t),w)}function x(e){return 62===e?R(e):w(e)}function k(t){return Fi(t)?(e.consume(t),E):r(t)}function E(t){return 45===t||Ii(t)?(e.consume(t),E):S(t)}function S(t){return qi(t)?(s=S,T(t)):Mi(t)?(e.consume(t),S):R(t)}function C(t){return 45===t||Ii(t)?(e.consume(t),C):47===t||62===t||Li(t)?A(t):r(t)}function A(t){return 47===t?(e.consume(t),R):58===t||95===t||Fi(t)?(e.consume(t),P):qi(t)?(s=A,T(t)):Mi(t)?(e.consume(t),A):R(t)}function P(t){return 45===t||46===t||58===t||95===t||Ii(t)?(e.consume(t),P):_(t)}function _(t){return 61===t?(e.consume(t),F):qi(t)?(s=_,T(t)):Mi(t)?(e.consume(t),_):A(t)}function F(t){return null===t||60===t||61===t||62===t||96===t?r(t):34===t||39===t?(e.consume(t),i=t,O):qi(t)?(s=F,T(t)):Mi(t)?(e.consume(t),F):(e.consume(t),i=void 0,I)}function O(t){return t===i?(e.consume(t),D):null===t?r(t):qi(t)?(s=O,T(t)):(e.consume(t),O)}function D(e){return 62===e||47===e||Li(e)?A(e):r(e)}function I(t){return null===t||34===t||39===t||60===t||61===t||96===t?r(t):62===t||Li(t)?A(t):(e.consume(t),I)}function T(t){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),Ui(e,j,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function j(t){return e.enter("htmlTextData"),s(t)}function R(n){return 62===n?(e.consume(n),e.exit("htmlTextData"),e.exit("htmlText"),t):r(n)}}};const Ta={name:"labelEnd",tokenize:function(e,t,r){const n=this;let i,a,o=n.events.length;for(;o--;)if(("labelImage"===n.events[o][1].type||"labelLink"===n.events[o][1].type)&&!n.events[o][1]._balanced){i=n.events[o][1];break}return function(t){if(!i)return r(t);return i._inactive?c(t):(a=n.parser.defined.includes(ka(n.sliceSerialize({start:i.end,end:n.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelEnd"),s)};function s(r){return 40===r?e.attempt(ja,t,a?t:c)(r):91===r?e.attempt(Ra,t,a?e.attempt(La,t,c):c)(r):a?t(r):c(r)}function c(e){return i._balanced=!0,r(e)}},resolveTo:function(e,t){let r,n,i,a,o=e.length,s=0;for(;o--;)if(r=e[o][1],n){if("link"===r.type||"labelLink"===r.type&&r._inactive)break;"enter"===e[o][0]&&"labelLink"===r.type&&(r._inactive=!0)}else if(i){if("enter"===e[o][0]&&("labelImage"===r.type||"labelLink"===r.type)&&!r._balanced&&(n=o,"labelLink"!==r.type)){s=2;break}}else"labelEnd"===r.type&&(i=o);const c={type:"labelLink"===e[n][1].type?"link":"image",start:Object.assign({},e[n][1].start),end:Object.assign({},e[e.length-1][1].end)},u={type:"label",start:Object.assign({},e[n][1].start),end:Object.assign({},e[i][1].end)},l={type:"labelText",start:Object.assign({},e[n+s+2][1].end),end:Object.assign({},e[i-2][1].start)};return a=[["enter",c,t],["enter",u,t]],a=Ei(a,e.slice(n+1,n+s+3)),a=Ei(a,[["enter",l,t]]),a=Ei(a,Ki(t.parser.constructs.insideSpan.null,e.slice(n+s+4,i-3),t)),a=Ei(a,[["exit",l,t],e[i-2],e[i-1],["exit",u,t]]),a=Ei(a,e.slice(i+1)),a=Ei(a,[["exit",c,t]]),ki(e,n,e.length,a),e},resolveAll:function(e){let t,r=-1;for(;++r<e.length;)t=e[r][1],"labelImage"!==t.type&&"labelLink"!==t.type&&"labelEnd"!==t.type||(e.splice(r+1,"labelImage"===t.type?4:2),t.type="data",r++);return e}},ja={tokenize:function(e,t,r){return function(t){return e.enter("resource"),e.enter("resourceMarker"),e.consume(t),e.exit("resourceMarker"),wa(e,n)};function n(t){return 41===t?o(t):da(e,i,r,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",3)(t)}function i(t){return Li(t)?wa(e,a)(t):o(t)}function a(t){return 34===t||39===t||40===t?ya(e,wa(e,o),r,"resourceTitle","resourceTitleMarker","resourceTitleString")(t):o(t)}function o(n){return 41===n?(e.enter("resourceMarker"),e.consume(n),e.exit("resourceMarker"),e.exit("resource"),t):r(n)}}},Ra={tokenize:function(e,t,r){const n=this;return function(t){return ga.call(n,e,i,r,"reference","referenceMarker","referenceString")(t)};function i(e){return n.parser.defined.includes(ka(n.sliceSerialize(n.events[n.events.length-1][1]).slice(1,-1)))?t(e):r(e)}}},La={tokenize:function(e,t,r){return function(t){return e.enter("reference"),e.enter("referenceMarker"),e.consume(t),e.exit("referenceMarker"),n};function n(n){return 93===n?(e.enter("referenceMarker"),e.consume(n),e.exit("referenceMarker"),e.exit("reference"),t):r(n)}}};const qa={name:"labelStartImage",tokenize:function(e,t,r){const n=this;return function(t){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(t),e.exit("labelImageMarker"),i};function i(t){return 91===t?(e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelImage"),a):r(t)}function a(e){return 94===e&&"_hiddenFootnoteSupport"in n.parser.constructs?r(e):t(e)}},resolveAll:Ta.resolveAll};const Ma={name:"labelStartLink",tokenize:function(e,t,r){const n=this;return function(t){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelLink"),i};function i(e){return 94===e&&"_hiddenFootnoteSupport"in n.parser.constructs?r(e):t(e)}},resolveAll:Ta.resolveAll};const Na={name:"lineEnding",tokenize:function(e,t){return function(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),Ui(e,t,"linePrefix")}}};const za={name:"thematicBreak",tokenize:function(e,t,r){let n,i=0;return function(t){return e.enter("thematicBreak"),n=t,a(t)};function a(s){return s===n?(e.enter("thematicBreakSequence"),o(s)):Mi(s)?Ui(e,a,"whitespace")(s):i<3||null!==s&&!qi(s)?r(s):(e.exit("thematicBreak"),t(s))}function o(t){return t===n?(e.consume(t),i++,o):(e.exit("thematicBreakSequence"),a(t))}}};const Ba={name:"list",tokenize:function(e,t,r){const n=this,i=n.events[n.events.length-1];let a=i&&"linePrefix"===i[1].type?i[2].sliceSerialize(i[1],!0).length:0,o=0;return function(t){const i=n.containerState.type||(42===t||43===t||45===t?"listUnordered":"listOrdered");if("listUnordered"===i?!n.containerState.marker||t===n.containerState.marker:Oi(t)){if(n.containerState.type||(n.containerState.type=i,e.enter(i,{_container:!0})),"listUnordered"===i)return e.enter("listItemPrefix"),42===t||45===t?e.check(za,r,c)(t):c(t);if(!n.interrupt||49===t)return e.enter("listItemPrefix"),e.enter("listItemValue"),s(t)}return r(t)};function s(t){return Oi(t)&&++o<10?(e.consume(t),s):(!n.interrupt||o<2)&&(n.containerState.marker?t===n.containerState.marker:41===t||46===t)?(e.exit("listItemValue"),c(t)):r(t)}function c(t){return e.enter("listItemMarker"),e.consume(t),e.exit("listItemMarker"),n.containerState.marker=n.containerState.marker||t,e.check(Xi,n.interrupt?r:u,e.attempt($a,f,l))}function u(e){return n.containerState.initialBlankLine=!0,a++,f(e)}function l(t){return Mi(t)?(e.enter("listItemPrefixWhitespace"),e.consume(t),e.exit("listItemPrefixWhitespace"),f):r(t)}function f(r){return n.containerState.size=a+n.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(r)}},continuation:{tokenize:function(e,t,r){const n=this;return n.containerState._closeFlow=void 0,e.check(Xi,i,a);function i(r){return n.containerState.furtherBlankLines=n.containerState.furtherBlankLines||n.containerState.initialBlankLine,Ui(e,t,"listItemIndent",n.containerState.size+1)(r)}function a(r){return n.containerState.furtherBlankLines||!Mi(r)?(n.containerState.furtherBlankLines=void 0,n.containerState.initialBlankLine=void 0,o(r)):(n.containerState.furtherBlankLines=void 0,n.containerState.initialBlankLine=void 0,e.attempt(Ua,t,o)(r))}function o(i){return n.containerState._closeFlow=!0,n.interrupt=void 0,Ui(e,e.attempt(Ba,t,r),"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(i)}}},exit:function(e){e.exit(this.containerState.type)}},$a={tokenize:function(e,t,r){const n=this;return Ui(e,(function(e){const i=n.events[n.events.length-1];return!Mi(e)&&i&&"listItemPrefixWhitespace"===i[1].type?t(e):r(e)}),"listItemPrefixWhitespace",n.parser.constructs.disable.null.includes("codeIndented")?void 0:5)},partial:!0},Ua={tokenize:function(e,t,r){const n=this;return Ui(e,(function(e){const i=n.events[n.events.length-1];return i&&"listItemIndent"===i[1].type&&i[2].sliceSerialize(i[1],!0).length===n.containerState.size?t(e):r(e)}),"listItemIndent",n.containerState.size+1)},partial:!0};const Va={name:"setextUnderline",tokenize:function(e,t,r){const n=this;let i,a,o=n.events.length;for(;o--;)if("lineEnding"!==n.events[o][1].type&&"linePrefix"!==n.events[o][1].type&&"content"!==n.events[o][1].type){a="paragraph"===n.events[o][1].type;break}return function(t){if(!n.parser.lazy[n.now().line]&&(n.interrupt||a))return e.enter("setextHeadingLine"),e.enter("setextHeadingLineSequence"),i=t,s(t);return r(t)};function s(t){return t===i?(e.consume(t),s):(e.exit("setextHeadingLineSequence"),Ui(e,c,"lineSuffix")(t))}function c(n){return null===n||qi(n)?(e.exit("setextHeadingLine"),t(n)):r(n)}},resolveTo:function(e,t){let r,n,i,a=e.length;for(;a--;)if("enter"===e[a][0]){if("content"===e[a][1].type){r=a;break}"paragraph"===e[a][1].type&&(n=a)}else"content"===e[a][1].type&&e.splice(a,1),i||"definition"!==e[a][1].type||(i=a);const o={type:"setextHeading",start:Object.assign({},e[n][1].start),end:Object.assign({},e[e.length-1][1].end)};e[n][1].type="setextHeadingText",i?(e.splice(n,0,["enter",o,t]),e.splice(i+1,0,["exit",e[r][1],t]),e[r][1].end=Object.assign({},e[i][1].end)):e[r][1]=o;return e.push(["exit",o,t]),e}};var Ha=Object.freeze({__proto__:null,attention:Yi,autolink:Zi,blankLine:Xi,blockQuote:ea,characterEscape:ta,characterReference:aa,codeFenced:oa,codeIndented:sa,codeText:ua,content:ha,definition:Sa,hardBreakEscape:Aa,headingAtx:Pa,htmlFlow:Oa,htmlText:Ia,labelEnd:Ta,labelStartImage:qa,labelStartLink:Ma,lineEnding:Na,list:Ba,setextUnderline:Va,thematicBreak:za});const Qa={tokenize:function(e){const t=this,r=e.attempt(Xi,(function(n){if(null===n)return void e.consume(n);return e.enter("lineEndingBlank"),e.consume(n),e.exit("lineEndingBlank"),t.currentConstruct=void 0,r}),e.attempt(this.parser.constructs.flowInitial,n,Ui(e,e.attempt(this.parser.constructs.flow,n,e.attempt(ha,n)),"linePrefix")));return r;function n(n){if(null!==n)return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),t.currentConstruct=void 0,r;e.consume(n)}}};const Ga={resolveAll:Ja()},Wa=Ya("string"),Ka=Ya("text");function Ya(e){return{tokenize:function(t){const r=this,n=this.parser.constructs[e],i=t.attempt(n,a,o);return a;function a(e){return c(e)?i(e):o(e)}function o(e){if(null!==e)return t.enter("data"),t.consume(e),s;t.consume(e)}function s(e){return c(e)?(t.exit("data"),i(e)):(t.consume(e),s)}function c(e){if(null===e)return!0;const t=n[e];let i=-1;if(t)for(;++i<t.length;){const e=t[i];if(!e.previous||e.previous.call(r,r.previous))return!0}return!1}},resolveAll:Ja("text"===e?Za:void 0)}}function Ja(e){return function(t,r){let n,i=-1;for(;++i<=t.length;)void 0===n?t[i]&&"data"===t[i][1].type&&(n=i,i++):t[i]&&"data"===t[i][1].type||(i!==n+2&&(t[n][1].end=t[i-1][1].end,t.splice(n+2,i-n-2),i=n+2),n=void 0);return e?e(t,r):t}}function Za(e,t){let r=-1;for(;++r<=e.length;)if((r===e.length||"lineEnding"===e[r][1].type)&&"data"===e[r-1][1].type){const n=e[r-1][1],i=t.sliceStream(n);let a,o=i.length,s=-1,c=0;for(;o--;){const e=i[o];if("string"==typeof e){for(s=e.length;32===e.charCodeAt(s-1);)c++,s--;if(s)break;s=-1}else if(-2===e)a=!0,c++;else if(-1!==e){o++;break}}if(c){const i={type:r===e.length||a||c<2?"lineSuffix":"hardBreakTrailing",start:{line:n.end.line,column:n.end.column-c,offset:n.end.offset-c,_index:n.start._index+o,_bufferIndex:o?s:n.start._bufferIndex+s},end:Object.assign({},n.end)};n.end=Object.assign({},i.start),n.start.offset===n.end.offset?Object.assign(n,i):(e.splice(r,0,["enter",i,t],["exit",i,t]),r+=2)}r++}return e}function Xa(e,t,r){let n=Object.assign(r?Object.assign({},r):{line:1,column:1,offset:0},{_index:0,_bufferIndex:-1});const i={},a=[];let o=[],s=[];const c={consume:function(e){qi(e)?(n.line++,n.column=1,n.offset+=-3===e?2:1,y()):-1!==e&&(n.column++,n.offset++);n._bufferIndex<0?n._index++:(n._bufferIndex++,n._bufferIndex===o[n._index].length&&(n._bufferIndex=-1,n._index++));u.previous=e},enter:function(e,t){const r=t||{};return r.type=e,r.start=h(),u.events.push(["enter",r,u]),s.push(r),r},exit:function(e){const t=s.pop();return t.end=h(),u.events.push(["exit",t,u]),t},attempt:g((function(e,t){v(e,t.from)})),check:g(m),interrupt:g(m,{interrupt:!0})},u={previous:null,code:null,containerState:{},events:[],parser:e,sliceStream:f,sliceSerialize:function(e,t){return function(e,t){let r=-1;const n=[];let i;for(;++r<e.length;){const a=e[r];let o;if("string"==typeof a)o=a;else switch(a){case-5:o="\r";break;case-4:o="\n";break;case-3:o="\r\n";break;case-2:o=t?" ":"\t";break;case-1:if(!t&&i)continue;o=" ";break;default:o=String.fromCharCode(a)}i=-2===a,n.push(o)}return n.join("")}(f(e),t)},now:h,defineSkip:function(e){i[e.line]=e.column,y()},write:function(e){if(o=Ei(o,e),p(),null!==o[o.length-1])return[];return v(t,0),u.events=Ki(a,u.events,u),u.events}};let l=t.tokenize.call(u,c);return t.resolveAll&&a.push(t),u;function f(e){return function(e,t){const r=t.start._index,n=t.start._bufferIndex,i=t.end._index,a=t.end._bufferIndex;let o;r===i?o=[e[r].slice(n,a)]:(o=e.slice(r,i),n>-1&&(o[0]=o[0].slice(n)),a>0&&o.push(e[i].slice(0,a)));return o}(o,e)}function h(){return Object.assign({},n)}function p(){let e;for(;n._index<o.length;){const t=o[n._index];if("string"==typeof t)for(e=n._index,n._bufferIndex<0&&(n._bufferIndex=0);n._index===e&&n._bufferIndex<t.length;)d(t.charCodeAt(n._bufferIndex));else d(t)}}function d(e){l=l(e)}function m(e,t){t.restore()}function g(e,t){return function(r,i,a){let o,l,f,p;return Array.isArray(r)?d(r):"tokenize"in r?d([r]):function(e){return t;function t(t){const r=null!==t&&e[t],n=null!==t&&e.null;return d([...Array.isArray(r)?r:r?[r]:[],...Array.isArray(n)?n:n?[n]:[]])(t)}}(r);function d(e){return o=e,l=0,0===e.length?a:m(e[l])}function m(e){return function(r){p=function(){const e=h(),t=u.previous,r=u.currentConstruct,i=u.events.length,a=Array.from(s);return{restore:o,from:i};function o(){n=e,u.previous=t,u.currentConstruct=r,u.events.length=i,s=a,y()}}(),f=e,e.partial||(u.currentConstruct=e);if(e.name&&u.parser.constructs.disable.null.includes(e.name))return v();return e.tokenize.call(t?Object.assign(Object.create(u),t):u,c,g,v)(r)}}function g(t){return e(f,p),i}function v(e){return p.restore(),++l<o.length?m(o[l]):a}}}function v(e,t){e.resolveAll&&!a.includes(e)&&a.push(e),e.resolve&&ki(u.events,t,u.events.length-t,e.resolve(u.events.slice(t),u)),e.resolveTo&&(u.events=e.resolveTo(u.events,u))}function y(){n.line in i&&n.column<2&&(n.column=i[n.line],n.offset+=i[n.line]-1)}}const eo={42:Ba,43:Ba,45:Ba,48:Ba,49:Ba,50:Ba,51:Ba,52:Ba,53:Ba,54:Ba,55:Ba,56:Ba,57:Ba,62:ea},to={91:Sa},ro={[-2]:sa,[-1]:sa,32:sa},no={35:Pa,42:za,45:[Va,za],60:Oa,61:Va,95:za,96:oa,126:oa},io={38:aa,92:ta},ao={[-5]:Na,[-4]:Na,[-3]:Na,33:qa,38:aa,42:Yi,60:[Zi,Ia],91:Ma,92:[Aa,ta],93:Ta,95:Yi,96:ua},oo={null:[Yi,Ga]};var so=Object.freeze({__proto__:null,document:eo,contentInitial:to,flowInitial:ro,flow:no,string:io,text:ao,insideSpan:oo,attentionMarkers:{null:[42,95]},disable:{null:[]}});const co=/[\0\t\n\r]/g;const uo={}.hasOwnProperty,lo=function(e,t,r){return"string"!=typeof t&&(r=t,t=void 0),function(e={}){const t=fo({transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:c(ne),autolinkProtocol:_,autolinkEmail:_,atxHeading:c(X),blockQuote:c(W),characterEscape:_,characterReference:_,codeFenced:c(K),codeFencedFenceInfo:u,codeFencedFenceMeta:u,codeIndented:c(K,u),codeText:c(Y,u),codeTextData:_,data:_,codeFlowValue:_,definition:c(J),definitionDestinationString:u,definitionLabelString:u,definitionTitleString:u,emphasis:c(Z),hardBreakEscape:c(ee),hardBreakTrailing:c(ee),htmlFlow:c(te,u),htmlFlowData:_,htmlText:c(te,u),htmlTextData:_,image:c(re),label:u,link:c(ne),listItem:c(ae),listItemValue:m,listOrdered:c(ie,d),listUnordered:c(ie),paragraph:c(oe),reference:$,referenceString:u,resourceDestinationString:u,resourceTitleString:u,setextHeading:c(X),strong:c(se),thematicBreak:c(ue)},exit:{atxHeading:f(),atxHeadingSequence:S,autolink:f(),autolinkEmail:G,autolinkProtocol:Q,blockQuote:f(),characterEscapeValue:F,characterReferenceMarkerHexadecimal:V,characterReferenceMarkerNumeric:V,characterReferenceValue:H,codeFenced:f(b),codeFencedFence:y,codeFencedFenceInfo:g,codeFencedFenceMeta:v,codeFlowValue:F,codeIndented:f(w),codeText:f(j),codeTextData:F,data:F,definition:f(),definitionDestinationString:E,definitionLabelString:x,definitionTitleString:k,emphasis:f(),hardBreakEscape:f(D),hardBreakTrailing:f(D),htmlFlow:f(I),htmlFlowData:F,htmlText:f(T),htmlTextData:F,image:f(L),label:M,labelText:q,lineEnding:O,link:f(R),listItem:f(),listOrdered:f(),listUnordered:f(),paragraph:f(),referenceString:U,resourceDestinationString:N,resourceTitleString:z,resource:B,setextHeading:f(P),setextHeadingLineSequence:A,setextHeadingText:C,strong:f(),thematicBreak:f()}},e.mdastExtensions||[]),r={};return n;function n(e){let r={type:"root",children:[]};const n=[],c=[],f={stack:[r],tokenStack:n,config:t,enter:l,exit:h,buffer:u,resume:p,setData:a,getData:o};let d=-1;for(;++d<e.length;)if("listOrdered"===e[d][1].type||"listUnordered"===e[d][1].type)if("enter"===e[d][0])c.push(d);else{d=i(e,c.pop(),d)}for(d=-1;++d<e.length;){const r=t[e[d][0]];uo.call(r,e[d][1].type)&&r[e[d][1].type].call(Object.assign({sliceSerialize:e[d][2].sliceSerialize},f),e[d][1])}if(n.length>0)throw new Error("Cannot close document, a token (`"+n[n.length-1].type+"`, "+Jn({start:n[n.length-1].start,end:n[n.length-1].end})+") is still open");for(r.position={start:s(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:s(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},d=-1;++d<t.transforms.length;)r=t.transforms[d](r)||r;return r}function i(e,t,r){let n,i,a,o,s=t-1,c=-1,u=!1;for(;++s<=r;){const t=e[s];if("listUnordered"===t[1].type||"listOrdered"===t[1].type||"blockQuote"===t[1].type?("enter"===t[0]?c++:c--,o=void 0):"lineEndingBlank"===t[1].type?"enter"===t[0]&&(!n||o||c||a||(a=s),o=void 0):"linePrefix"===t[1].type||"listItemValue"===t[1].type||"listItemMarker"===t[1].type||"listItemPrefix"===t[1].type||"listItemPrefixWhitespace"===t[1].type||(o=void 0),!c&&"enter"===t[0]&&"listItemPrefix"===t[1].type||-1===c&&"exit"===t[0]&&("listUnordered"===t[1].type||"listOrdered"===t[1].type)){if(n){let o=s;for(i=void 0;o--;){const t=e[o];if("lineEnding"===t[1].type||"lineEndingBlank"===t[1].type){if("exit"===t[0])continue;i&&(e[i][1].type="lineEndingBlank",u=!0),t[1].type="lineEnding",i=o}else if("linePrefix"!==t[1].type&&"blockQuotePrefix"!==t[1].type&&"blockQuotePrefixWhitespace"!==t[1].type&&"blockQuoteMarker"!==t[1].type&&"listItemIndent"!==t[1].type)break}a&&(!i||a<i)&&(n._spread=!0),n.end=Object.assign({},i?e[i][1].start:t[1].end),e.splice(i||s,0,["exit",n,t[2]]),s++,r++}"listItemPrefix"===t[1].type&&(n={type:"listItem",_spread:!1,start:Object.assign({},t[1].start)},e.splice(s,0,["enter",n,t[2]]),s++,r++,a=void 0,o=!0)}}return e[t][1]._spread=u,r}function a(e,t){r[e]=t}function o(e){return r[e]}function s(e){return{line:e.line,column:e.column,offset:e.offset}}function c(e,t){return r;function r(r){l.call(this,e(r),r),t&&t.call(this,r)}}function u(){this.stack.push({type:"fragment",children:[]})}function l(e,t){return this.stack[this.stack.length-1].children.push(e),this.stack.push(e),this.tokenStack.push(t),e.position={start:s(t.start)},e}function f(e){return t;function t(t){e&&e.call(this,t),h.call(this,t)}}function h(e){const t=this.stack.pop(),r=this.tokenStack.pop();if(!r)throw new Error("Cannot close `"+e.type+"` ("+Jn({start:e.start,end:e.end})+"): it’s not open");if(r.type!==e.type)throw new Error("Cannot close `"+e.type+"` ("+Jn({start:e.start,end:e.end})+"): a different token (`"+r.type+"`, "+Jn({start:r.start,end:r.end})+") is open");return t.position.end=s(e.end),t}function p(){return bi(this.stack.pop())}function d(){a("expectingFirstListItemValue",!0)}function m(e){o("expectingFirstListItemValue")&&(this.stack[this.stack.length-2].start=Number.parseInt(this.sliceSerialize(e),10),a("expectingFirstListItemValue"))}function g(){const e=this.resume();this.stack[this.stack.length-1].lang=e}function v(){const e=this.resume();this.stack[this.stack.length-1].meta=e}function y(){o("flowCodeInside")||(this.buffer(),a("flowCodeInside",!0))}function b(){const e=this.resume();this.stack[this.stack.length-1].value=e.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),a("flowCodeInside")}function w(){const e=this.resume();this.stack[this.stack.length-1].value=e.replace(/(\r?\n|\r)$/g,"")}function x(e){const t=this.resume();this.stack[this.stack.length-1].label=t,this.stack[this.stack.length-1].identifier=ka(this.sliceSerialize(e)).toLowerCase()}function k(){const e=this.resume();this.stack[this.stack.length-1].title=e}function E(){const e=this.resume();this.stack[this.stack.length-1].url=e}function S(e){this.stack[this.stack.length-1].depth||(this.stack[this.stack.length-1].depth=this.sliceSerialize(e).length)}function C(){a("setextHeadingSlurpLineEnding",!0)}function A(e){this.stack[this.stack.length-1].depth=61===this.sliceSerialize(e).charCodeAt(0)?1:2}function P(){a("setextHeadingSlurpLineEnding")}function _(e){const t=this.stack[this.stack.length-1];let r=t.children[t.children.length-1];r&&"text"===r.type||(r=ce(),r.position={start:s(e.start)},t.children.push(r)),this.stack.push(r)}function F(e){const t=this.stack.pop();t.value+=this.sliceSerialize(e),t.position.end=s(e.end)}function O(e){const r=this.stack[this.stack.length-1];if(o("atHardBreak")){return r.children[r.children.length-1].position.end=s(e.end),void a("atHardBreak")}!o("setextHeadingSlurpLineEnding")&&t.canContainEols.includes(r.type)&&(_.call(this,e),F.call(this,e))}function D(){a("atHardBreak",!0)}function I(){const e=this.resume();this.stack[this.stack.length-1].value=e}function T(){const e=this.resume();this.stack[this.stack.length-1].value=e}function j(){const e=this.resume();this.stack[this.stack.length-1].value=e}function R(){const e=this.stack[this.stack.length-1];o("inReference")?(e.type+="Reference",e.referenceType=o("referenceType")||"shortcut",delete e.url,delete e.title):(delete e.identifier,delete e.label,delete e.referenceType),a("referenceType")}function L(){const e=this.stack[this.stack.length-1];o("inReference")?(e.type+="Reference",e.referenceType=o("referenceType")||"shortcut",delete e.url,delete e.title):(delete e.identifier,delete e.label,delete e.referenceType),a("referenceType")}function q(e){this.stack[this.stack.length-2].identifier=ka(this.sliceSerialize(e)).toLowerCase()}function M(){const e=this.stack[this.stack.length-1],t=this.resume();this.stack[this.stack.length-1].label=t,a("inReference",!0),"link"===this.stack[this.stack.length-1].type?this.stack[this.stack.length-1].children=e.children:this.stack[this.stack.length-1].alt=t}function N(){const e=this.resume();this.stack[this.stack.length-1].url=e}function z(){const e=this.resume();this.stack[this.stack.length-1].title=e}function B(){a("inReference")}function $(){a("referenceType","collapsed")}function U(e){const t=this.resume();this.stack[this.stack.length-1].label=t,this.stack[this.stack.length-1].identifier=ka(this.sliceSerialize(e)).toLowerCase(),a("referenceType","full")}function V(e){a("characterReferenceType",e.type)}function H(e){const t=this.sliceSerialize(e),r=o("characterReferenceType");let n;r?(n=function(e,t){const r=Number.parseInt(e,t);return r<9||11===r||r>13&&r<32||r>126&&r<160||r>55295&&r<57344||r>64975&&r<65008||65535==(65535&r)||65534==(65535&r)||r>1114111?"�":String.fromCharCode(r)}(t,"characterReferenceMarkerNumeric"===r?10:16),a("characterReferenceType")):n=ia(t);const i=this.stack.pop();i.value+=n,i.position.end=s(e.end)}function Q(e){F.call(this,e),this.stack[this.stack.length-1].url=this.sliceSerialize(e)}function G(e){F.call(this,e),this.stack[this.stack.length-1].url="mailto:"+this.sliceSerialize(e)}function W(){return{type:"blockquote",children:[]}}function K(){return{type:"code",lang:null,meta:null,value:""}}function Y(){return{type:"inlineCode",value:""}}function J(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Z(){return{type:"emphasis",children:[]}}function X(){return{type:"heading",depth:void 0,children:[]}}function ee(){return{type:"break"}}function te(){return{type:"html",value:""}}function re(){return{type:"image",title:null,url:"",alt:null}}function ne(){return{type:"link",title:null,url:"",children:[]}}function ie(e){return{type:"list",ordered:"listOrdered"===e.type,start:null,spread:e._spread,children:[]}}function ae(e){return{type:"listItem",spread:e._spread,checked:null,children:[]}}function oe(){return{type:"paragraph",children:[]}}function se(){return{type:"strong",children:[]}}function ce(){return{type:"text",value:""}}function ue(){return{type:"thematicBreak"}}}(r)(function(e){for(;!la(e););return e}(function(e={}){const t={defined:[],lazy:{},constructs:Ci([so].concat(e.extensions||[])),content:r(Hi),document:r(Qi),flow:r(Qa),string:r(Wa),text:r(Ka)};return t;function r(e){return function(r){return Xa(t,e,r)}}}(r).document().write(function(){let e,t=1,r="",n=!0;return function(i,a,o){const s=[];let c,u,l,f,h;for(i=r+i.toString(a),l=0,r="",n&&(65279===i.charCodeAt(0)&&l++,n=void 0);l<i.length;){if(co.lastIndex=l,c=co.exec(i),f=c&&void 0!==c.index?c.index:i.length,h=i.charCodeAt(f),!c){r=i.slice(l);break}if(10===h&&l===f&&e)s.push(-3),e=void 0;else switch(e&&(s.push(-5),e=void 0),l<f&&(s.push(i.slice(l,f)),t+=f-l),h){case 0:s.push(65533),t++;break;case 9:for(u=4*Math.ceil(t/4),s.push(-2);t++<u;)s.push(-1);break;case 10:s.push(-4),t=1;break;default:e=!0,t=1}l=f+1}return o&&(e&&s.push(-5),r&&s.push(r),s.push(null)),s}}()(e,t,!0))))};function fo(e,t){let r=-1;for(;++r<t.length;){const n=t[r];Array.isArray(n)?fo(e,n):ho(e,n)}return e}function ho(e,t){let r;for(r in t)if(uo.call(t,r)){const n="canContainEols"===r||"transforms"===r,i=(uo.call(e,r)?e[r]:void 0)||(e[r]=n?[]:{}),a=t[r];a&&(n?e[r]=[...i,...a]:Object.assign(i,a))}}var po=oe(Object.freeze({__proto__:null,default:function(e){Object.assign(this,{Parser:t=>{const r=this.data("settings");return lo(t,Object.assign({},r,e,{extensions:this.data("micromarkExtensions")||[],mdastExtensions:this.data("fromMarkdownExtensions")||[]}))}})}}));const mo={tokenize:function(e,t,r){return function(t){return e.consume(t),n};function n(t){return 87===t||119===t?(e.consume(t),i):r(t)}function i(t){return 87===t||119===t?(e.consume(t),a):r(t)}function a(t){return 46===t?(e.consume(t),o):r(t)}function o(e){return null===e||qi(e)?r(e):t(e)}},partial:!0},go={tokenize:function(e,t,r){let n,i;return a;function a(t){return 38===t?e.check(bo,s,o)(t):46===t||95===t?e.check(yo,s,o)(t):null===t||Ri(t)||Ni(t)||45!==t&&zi(t)?s(t):(e.consume(t),a)}function o(t){return 46===t?(i=n,n=void 0,e.consume(t),a):(95===t&&(n=!0),e.consume(t),a)}function s(e){return i||n?r(e):t(e)}},partial:!0},vo={tokenize:function(e,t){let r=0;return n;function n(o){return 38===o?e.check(bo,t,i)(o):(40===o&&r++,41===o?e.check(yo,a,i)(o):Po(o)?t(o):Ao(o)?e.check(yo,t,i)(o):(e.consume(o),n))}function i(t){return e.consume(t),n}function a(e){return r--,r<0?t(e):i(e)}},partial:!0},yo={tokenize:function(e,t,r){return function(t){return e.consume(t),n};function n(i){return Ao(i)?(e.consume(i),n):Po(i)?t(i):r(i)}},partial:!0},bo={tokenize:function(e,t,r){return function(t){return e.consume(t),n};function n(t){return Fi(t)?(e.consume(t),n):59===t?(e.consume(t),i):r(t)}function i(e){return Po(e)?t(e):r(e)}},partial:!0},wo={tokenize:function(e,t,r){const n=this;return function(t){if(87!==t&&119!==t||!Fo(n.previous)||Io(n.events))return r(t);return e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(mo,e.attempt(go,e.attempt(vo,i),r),r)(t)};function i(r){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(r)}},previous:Fo},xo={tokenize:function(e,t,r){const n=this;return function(t){if(72!==t&&104!==t||!Oo(n.previous)||Io(n.events))return r(t);return e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),e.consume(t),i};function i(t){return 84===t||116===t?(e.consume(t),a):r(t)}function a(t){return 84===t||116===t?(e.consume(t),o):r(t)}function o(t){return 80===t||112===t?(e.consume(t),s):r(t)}function s(t){return 83===t||115===t?(e.consume(t),c):c(t)}function c(t){return 58===t?(e.consume(t),u):r(t)}function u(t){return 47===t?(e.consume(t),l):r(t)}function l(t){return 47===t?(e.consume(t),f):r(t)}function f(t){return null===t||Ri(t)||Ni(t)||zi(t)?r(t):e.attempt(go,e.attempt(vo,h),r)(t)}function h(r){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(r)}},previous:Oo},ko={tokenize:function(e,t,r){const n=this;let i,a;return function(t){if(!_o(t)||!Do(n.previous)||Io(n.events))return r(t);return e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),o(t)};function o(t){return _o(t)?(e.consume(t),o):64===t?(e.consume(t),s):r(t)}function s(t){return 46===t?e.check(yo,f,c)(t):45===t||95===t?e.check(yo,r,u)(t):Ii(t)?(!a&&Oi(t)&&(a=!0),e.consume(t),s):f(t)}function c(t){return e.consume(t),i=!0,a=void 0,s}function u(t){return e.consume(t),l}function l(t){return 46===t?e.check(yo,r,c)(t):s(t)}function f(n){return i&&!a?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(n)):r(n)}},previous:Do},Eo={},So={text:Eo};let Co=48;for(;Co<123;)Eo[Co]=ko,Co++,58===Co?Co=65:91===Co&&(Co=97);function Ao(e){return 33===e||34===e||39===e||41===e||42===e||44===e||46===e||58===e||59===e||60===e||63===e||95===e||126===e}function Po(e){return null===e||60===e||Li(e)}function _o(e){return 43===e||45===e||46===e||95===e||Ii(e)}function Fo(e){return null===e||40===e||42===e||95===e||126===e||Li(e)}function Oo(e){return null===e||!Fi(e)}function Do(e){return 47!==e&&Oo(e)}function Io(e){let t=e.length,r=!1;for(;t--;){const n=e[t][1];if(("labelLink"===n.type||"labelImage"===n.type)&&!n._balanced){r=!0;break}if(n._gfmAutolinkLiteralWalkedInto){r=!1;break}}return e.length>0&&!r&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),r}Eo[43]=ko,Eo[45]=ko,Eo[46]=ko,Eo[95]=ko,Eo[72]=[ko,xo],Eo[104]=[ko,xo],Eo[87]=[ko,wo],Eo[119]=[ko,wo];const To={'"':"quot","&":"amp","<":"lt",">":"gt"};function jo(e,t){const r=function(e){return e.replace(/["&<>]/g,(function(e){return"&"+To[e]+";"}))}(function(e){const t=[];let r=-1,n=0,i=0;for(;++r<e.length;){const a=e.charCodeAt(r);let o="";if(37===a&&Ii(e.charCodeAt(r+1))&&Ii(e.charCodeAt(r+2)))i=2;else if(a<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(a))||(o=String.fromCharCode(a));else if(a>55295&&a<57344){const t=e.charCodeAt(r+1);a<56320&&t>56319&&t<57344?(o=String.fromCharCode(a,t),i=1):o="�"}else o=String.fromCharCode(a);o&&(t.push(e.slice(n,r),encodeURIComponent(o)),n=r+i+1,o=""),i&&(r+=i,i=0)}return t.join("")+e.slice(n)}(e||""));if(!t)return r;const n=r.indexOf(":"),i=r.indexOf("?"),a=r.indexOf("#"),o=r.indexOf("/");return n<0||o>-1&&n>o||i>-1&&n>i||a>-1&&n>a||t.test(r.slice(0,n))?r:""}const Ro={exit:{literalAutolinkEmail:function(e){Lo.call(this,e,"mailto:")},literalAutolinkHttp:function(e){Lo.call(this,e)},literalAutolinkWww:function(e){Lo.call(this,e,"http://")}}};function Lo(e,t){const r=this.sliceSerialize(e);this.tag('<a href="'+jo((t||"")+r)+'">'),this.raw(this.encode(r)),this.tag("</a>")}const qo={enter:{strikethrough(){this.tag("<del>")}},exit:{strikethrough(){this.tag("</del>")}}};function Mo(e={}){let t=e.singleTilde;const r={tokenize:function(e,r,n){const i=this.previous,a=this.events;let o=0;return function(t){if(126!==t||126===i&&"characterEscape"!==a[a.length-1][1].type)return n(t);return e.enter("strikethroughSequenceTemporary"),s(t)};function s(a){const c=Wi(i);if(126===a)return o>1?n(a):(e.consume(a),o++,s);if(o<2&&!t)return n(a);const u=e.exit("strikethroughSequenceTemporary"),l=Wi(a);return u._open=!l||2===l&&Boolean(c),u._close=!c||2===c&&Boolean(l),r(a)}},resolveAll:function(e,t){let r,n,i,a,o=-1;for(;++o<e.length;)if("enter"===e[o][0]&&"strikethroughSequenceTemporary"===e[o][1].type&&e[o][1]._close)for(i=o;i--;)if("exit"===e[i][0]&&"strikethroughSequenceTemporary"===e[i][1].type&&e[i][1]._open&&e[o][1].end.offset-e[o][1].start.offset==e[i][1].end.offset-e[i][1].start.offset){e[o][1].type="strikethroughSequence",e[i][1].type="strikethroughSequence",r={type:"strikethrough",start:Object.assign({},e[i][1].start),end:Object.assign({},e[o][1].end)},n={type:"strikethroughText",start:Object.assign({},e[i][1].end),end:Object.assign({},e[o][1].start)},a=[["enter",r,t],["enter",e[i][1],t],["exit",e[i][1],t],["enter",n,t]],ki(a,a.length,0,Ki(t.parser.constructs.insideSpan.null,e.slice(i+1,o),t)),ki(a,a.length,0,[["exit",n,t],["enter",e[o][1],t],["exit",e[o][1],t],["exit",r,t]]),ki(e,i-1,o-i+3,a),o=i+a.length-2;break}o=-1;for(;++o<e.length;)"strikethroughSequenceTemporary"===e[o][1].type&&(e[o][1].type="data");return e}};return null==t&&(t=!0),{text:{126:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}}}const No={null:"",left:' align="left"',right:' align="right"',center:' align="center"'},zo={enter:{table(e){this.lineEndingIfNeeded(),this.tag("<table>"),this.setData("tableAlign",e._align)},tableBody(){this.setData("slurpOneLineEnding"),this.tag("<tbody>")},tableData(){const e=No[this.getData("tableAlign")[this.getData("tableColumn")]];void 0===e?this.buffer():(this.lineEndingIfNeeded(),this.tag("<td"+e+">"))},tableHead(){this.lineEndingIfNeeded(),this.tag("<thead>")},tableHeader(){this.lineEndingIfNeeded(),this.tag("<th"+No[this.getData("tableAlign")[this.getData("tableColumn")]]+">")},tableRow(){this.setData("tableColumn",0),this.lineEndingIfNeeded(),this.tag("<tr>")}},exit:{codeTextData(e){let t=this.sliceSerialize(e);this.getData("tableAlign")&&(t=t.replace(/\\([\\|])/g,Bo)),this.raw(this.encode(t))},table(){this.setData("tableAlign"),this.setData("slurpAllLineEndings"),this.lineEndingIfNeeded(),this.tag("</table>")},tableBody(){this.lineEndingIfNeeded(),this.tag("</tbody>")},tableData(){const e=this.getData("tableColumn");e in this.getData("tableAlign")?(this.tag("</td>"),this.setData("tableColumn",e+1)):this.resume()},tableHead(){this.lineEndingIfNeeded(),this.tag("</thead>"),this.setData("slurpOneLineEnding",!0)},tableHeader(){this.tag("</th>"),this.setData("tableColumn",this.getData("tableColumn")+1)},tableRow(){const e=this.getData("tableAlign");let t=this.getData("tableColumn");for(;t<e.length;)this.lineEndingIfNeeded(),this.tag("<td"+No[e[t]]+"></td>"),t++;this.setData("tableColumn",t),this.lineEndingIfNeeded(),this.tag("</tr>")}}};function Bo(e,t){return"|"===t?t:e}const $o={flow:{null:{tokenize:function(e,t,r){const n=this,i=[];let a,o,s=0;return function(t){if(e.enter("table")._align=i,e.enter("tableHead"),e.enter("tableRow"),124===t)return c(t);return s++,e.enter("temporaryTableCellContent"),f(t)};function c(t){return e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),a=!0,u}function u(t){return null===t||qi(t)?function(t){if(null===t)return r(t);return e.exit("tableRow"),e.exit("tableHead"),e.attempt({tokenize:O,partial:!0},p,r)(t)}(t):Mi(t)?(e.enter("whitespace"),e.consume(t),l):(a&&(a=void 0,s++),124===t?c(t):(e.enter("temporaryTableCellContent"),f(t)))}function l(t){return Mi(t)?(e.consume(t),l):(e.exit("whitespace"),u(t))}function f(t){return null===t||124===t||Li(t)?(e.exit("temporaryTableCellContent"),u(t)):(e.consume(t),92===t?h:f)}function h(t){return 92===t||124===t?(e.consume(t),f):f(t)}function p(t){return e.check(Uo,r,Ui(e,d,"linePrefix",4))(t)}function d(t){return null===t||Li(t)?r(t):(e.enter("tableDelimiterRow"),m(t))}function m(t){return null===t||qi(t)?w(t):Mi(t)?(e.enter("whitespace"),e.consume(t),g):45===t?(e.enter("tableDelimiterFiller"),e.consume(t),o=!0,i.push(null),v):58===t?(e.enter("tableDelimiterAlignment"),e.consume(t),e.exit("tableDelimiterAlignment"),i.push("left"),y):124===t?(e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),m):r(t)}function g(t){return Mi(t)?(e.consume(t),g):(e.exit("whitespace"),m(t))}function v(t){return 45===t?(e.consume(t),v):(e.exit("tableDelimiterFiller"),58===t?(e.enter("tableDelimiterAlignment"),e.consume(t),e.exit("tableDelimiterAlignment"),i[i.length-1]="left"===i[i.length-1]?"center":"right",b):m(t))}function y(t){return 45===t?(e.enter("tableDelimiterFiller"),e.consume(t),o=!0,v):r(t)}function b(t){return null===t||qi(t)?w(t):Mi(t)?(e.enter("whitespace"),e.consume(t),g):124===t?(e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),m):r(t)}function w(t){return e.exit("tableDelimiterRow"),o&&s===i.length?null===t?x(t):e.check(Vo,x,e.attempt({tokenize:O,partial:!0},Ui(e,k,"linePrefix",4),x))(t):r(t)}function x(r){return e.exit("table"),t(r)}function k(t){return e.enter("tableBody"),E(t)}function E(t){return e.enter("tableRow"),124===t?S(t):(e.enter("temporaryTableCellContent"),P(t))}function S(t){return e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),C}function C(t){return null===t||qi(t)?function(t){if(e.exit("tableRow"),null===t)return F(t);return e.check(Vo,F,e.attempt({tokenize:O,partial:!0},Ui(e,E,"linePrefix",4),F))(t)}(t):Mi(t)?(e.enter("whitespace"),e.consume(t),A):124===t?S(t):(e.enter("temporaryTableCellContent"),P(t))}function A(t){return Mi(t)?(e.consume(t),A):(e.exit("whitespace"),C(t))}function P(t){return null===t||124===t||Li(t)?(e.exit("temporaryTableCellContent"),C(t)):(e.consume(t),92===t?_:P)}function _(t){return 92===t||124===t?(e.consume(t),P):P(t)}function F(t){return e.exit("tableBody"),x(t)}function O(e,t,r){return function(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i};function i(e){return n.parser.lazy[n.now().line]?r(e):t(e)}}},resolve:function(e,t){let r,n,i,a,o,s,c,u,l,f,h=-1;for(;++h<e.length;)r=e[h][1],a&&("temporaryTableCellContent"===r.type&&(u=u||h,l=h),"tableCellDivider"!==r.type&&"tableRow"!==r.type||!l||(s={type:"tableContent",start:e[u][1].start,end:e[l][1].end},c={type:"chunkText",start:s.start,end:s.end,contentType:"text"},e.splice(u,l-u+1,["enter",s,t],["enter",c,t],["exit",c,t],["exit",s,t]),h-=l-u-3,u=void 0,l=void 0)),"exit"===e[h][0]&&f&&f+1<h&&("tableCellDivider"===r.type||"tableRow"===r.type&&(f+3<h||"whitespace"!==e[f][1].type))&&(o={type:i?"tableDelimiter":n?"tableHeader":"tableData",start:e[f][1].start,end:e[h][1].end},e.splice(h+("tableCellDivider"===r.type?1:0),0,["exit",o,t]),e.splice(f,0,["enter",o,t]),h+=2,f=h+1),"tableRow"===r.type&&(a="enter"===e[h][0],a&&(f=h+1)),"tableDelimiterRow"===r.type&&(i="enter"===e[h][0],i&&(f=h+1)),"tableHead"===r.type&&(n="enter"===e[h][0]);return e}}}},Uo={tokenize:function(e,t,r){return function(t){if(45!==t)return r(t);return e.enter("setextUnderline"),n(t)};function n(t){return 45===t?(e.consume(t),n):i(t)}function i(n){return null===n||qi(n)?t(n):Mi(n)?(e.consume(n),i):r(n)}},partial:!0},Vo={tokenize:function(e,t,r){let n=0;return function(t){return e.enter("check"),e.consume(t),i};function i(a){return-1===a||32===a?(e.consume(a),n++,4===n?t:i):null===a||Li(a)?t(a):r(a)}},partial:!0};const Ho=/<(\/?)(iframe|noembed|noframes|plaintext|script|style|title|textarea|xmp)(?=[\t\n\f\r />])/gi,Qo=new RegExp("^"+Ho.source,"i");function Go(e,t){let r=this.sliceSerialize(e);this.options.allowDangerousHtml&&(r=r.replace(t,"<$1$2")),this.raw(this.encode(r))}const Wo={text:{91:{tokenize:function(e,t,r){const n=this;return function(t){if(null!==n.previous||!n._gfmTasklistFirstContentOfListItem)return r(t);return e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),i};function i(t){return Mi(t)?(e.enter("taskListCheckValueUnchecked"),e.consume(t),e.exit("taskListCheckValueUnchecked"),a):88===t||120===t?(e.enter("taskListCheckValueChecked"),e.consume(t),e.exit("taskListCheckValueChecked"),a):r(t)}function a(n){return 93===n?(e.enter("taskListCheckMarker"),e.consume(n),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),e.check({tokenize:Ko},t,r)):r(n)}}}}};function Ko(e,t,r){const n=this;return Ui(e,(function(e){const i=n.events[n.events.length-1];return i&&"whitespace"===i[1].type&&null!==e&&!Li(e)?t(e):r(e)}),"whitespace")}function Yo(e,t){var r,n=String(e),i=0;if("string"!=typeof t)throw new Error("Expected character");for(r=n.indexOf(t);-1!==r;)i++,r=n.indexOf(t,r+t.length);return i}function Jo(e){return"[33m"+e+"[39m"}!function(e){const t={};let r=-1;for(;++r<e.length;)_i(t,e[r])}([Ro,qo,zo,{exit:{htmlFlowData(e){Go.call(this,e,Ho)},htmlTextData(e){Go.call(this,e,Qo)}}},{enter:{taskListCheck(){this.tag("<input ")}},exit:{taskListCheck(){this.tag('disabled="" type="checkbox">')},taskListCheckValueChecked(){this.tag('checked="" ')}}}]);const Zo=function(e,t,r,n){"function"==typeof t&&"function"!=typeof r&&(n=r,r=t,t=null);var i=Wr(t),a=n?-1:1;!function e(o,s,c){var u,l="object"==typeof o&&null!==o?o:{};"string"==typeof l.type&&(u="string"==typeof l.tagName?l.tagName:"string"==typeof l.name?l.name:void 0,Object.defineProperty(f,"name",{value:"node ("+Jo(l.type+(u?"<"+u+">":""))+")"}));return f;function f(){var u,l,f,h=[];if((!t||i(o,s,c[c.length-1]||null))&&false===(h=function(e){if(Array.isArray(e))return e;if("number"==typeof e)return[true,e];return[e]}(r(o,c)))[0])return h;if(o.children&&"skip"!==h[0])for(l=(n?o.children.length:-1)+a,f=c.concat(o);l>-1&&l<o.children.length;){if(false===(u=e(o.children[l],l,f)())[0])return u;l="number"==typeof u[1]?u[1]:l+a}return h}}(e,null,[])()};const Xo={}.hasOwnProperty,es=function(e,t,r,n){let i,a;"string"==typeof t||t instanceof RegExp?(a=[[t,r]],i=n):(a=t,i=r),i||(i={});const o=Wr(i.ignore||[]),s=function(e){const t=[];if("object"!=typeof e)throw new TypeError("Expected array or object as schema");if(Array.isArray(e)){let r=-1;for(;++r<e.length;)t.push([ts(e[r][0]),rs(e[r][1])])}else{let r;for(r in e)Xo.call(e,r)&&t.push([ts(r),rs(e[r])])}return t}(a);let c=-1;for(;++c<s.length;)Zo(e,"text",u);return e;function u(e,t){let r,n=-1;for(;++n<t.length;){const e=t[n];if(o(e,r?r.children.indexOf(e):void 0,r))return;r=e}if(r)return function(e,t){const r=s[c][0],n=s[c][1];let i,a=0,o=t.children.indexOf(e),u=[];r.lastIndex=0;let l=r.exec(e.value);for(;l;){i=l.index;let t=n(...l,{index:l.index,input:l.input});if("string"==typeof t&&(t=t.length>0?{type:"text",value:t}:void 0),!1!==t&&(a!==i&&u.push({type:"text",value:e.value.slice(a,i)}),Array.isArray(t)?u.push(...t):t&&u.push(t),a=i+l[0].length),!r.global)break;l=r.exec(e.value)}void 0===i?(u=[e],o--):(a<e.value.length&&u.push({type:"text",value:e.value.slice(a)}),t.children.splice(o,1,...u));return o+u.length+1}(e,r)}};function ts(e){return"string"==typeof e?new RegExp(function(e){if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}(e),"g"):e}function rs(e){return"function"==typeof e?e:()=>e}const ns=["autolink","link","image","label"],is={transforms:[function(e){es(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,ss],[/([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/g,cs]],{ignore:["link","linkReference"]})}],enter:{literalAutolink:function(e){this.enter({type:"link",title:null,url:"",children:[]},e)},literalAutolinkEmail:os,literalAutolinkHttp:os,literalAutolinkWww:os},exit:{literalAutolink:function(e){this.exit(e)},literalAutolinkEmail:function(e){this.config.exit.autolinkEmail.call(this,e)},literalAutolinkHttp:function(e){this.config.exit.autolinkProtocol.call(this,e)},literalAutolinkWww:function(e){this.config.exit.data.call(this,e);this.stack[this.stack.length-1].url="http://"+this.sliceSerialize(e)}}},as={unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:"phrasing",notInConstruct:ns},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:"phrasing",notInConstruct:ns},{character:":",before:"[ps]",after:"\\/",inConstruct:"phrasing",notInConstruct:ns}]};function os(e){this.config.enter.autolinkProtocol.call(this,e)}function ss(e,t,r,n,i){let a="";if(!us(i))return!1;if(/^w/i.test(t)&&(r=t+r,t="",a="http://"),!function(e){const t=e.split(".");if(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))return!1;return!0}(r))return!1;const o=function(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);let r,n,i,a;if(t)for(e=e.slice(0,t.index),a=t[0],r=a.indexOf(")"),n=Yo(e,"("),i=Yo(e,")");-1!==r&&n>i;)e+=a.slice(0,r+1),a=a.slice(r+1),r=a.indexOf(")"),i++;return[e,a]}(r+n);if(!o[0])return!1;const s={type:"link",title:null,url:a+t+o[0],children:[{type:"text",value:t+o[0]}]};return o[1]?[s,{type:"text",value:o[1]}]:s}function cs(e,t,r,n){return!(!us(n,!0)||/[_-]$/.test(r))&&{type:"link",title:null,url:"mailto:"+t+"@"+r,children:[{type:"text",value:t+"@"+r}]}}function us(e,t){const r=e.input.charCodeAt(e.index-1);return(0===e.index||Ni(r)||zi(r))&&(!t||47!==r)}function ls(e,t,r){const n=t.indexStack,i=e.children||[],a=[];let o=-1,s=r.before;for(n.push(-1);++o<i.length;){const c=i[o];let u;if(n[n.length-1]=o,o+1<i.length){let r=t.handle.handlers[i[o+1].type];r&&r.peek&&(r=r.peek),u=r?r(i[o+1],e,t,{before:"",after:""}).charAt(0):""}else u=r.after;a.length>0&&("\r"===s||"\n"===s)&&"html"===c.type&&(a[a.length-1]=a[a.length-1].replace(/(\r?\n|\r)$/," "),s=" "),a.push(t.handle(c,e,t,{before:s,after:u})),s=a[a.length-1].slice(-1)}return n.pop(),a.join("")}const fs={canContainEols:["delete"],enter:{strikethrough:function(e){this.enter({type:"delete",children:[]},e)}},exit:{strikethrough:function(e){this.exit(e)}}},hs={unsafe:[{character:"~",inConstruct:"phrasing"}],handlers:{delete:ps}};function ps(e,t,r){const n=r.enter("emphasis"),i=ls(e,r,{before:"~",after:"~"});return n(),"~~"+i+"~~"}function ds(e){if(!e._compiled){const t=(e.atBreak?"[\\r\\n][\\t ]*":"")+(e.before?"(?:"+e.before+")":"");e._compiled=new RegExp((t?"("+t+")":"")+(/[|\\{}()[\]^$+*?.-]/.test(e.character)?"\\":"")+e.character+(e.after?"(?:"+e.after+")":""),"g")}return e._compiled}function ms(e,t,r){let n=e.value||"",i="`",a=-1;for(;new RegExp("(^|[^`])"+i+"([^`]|$)").test(n);)i+="`";for(/[^ \r\n]/.test(n)&&(/^[ \r\n]/.test(n)&&/[ \r\n]$/.test(n)||/^`|`$/.test(n))&&(n=" "+n+" ");++a<r.unsafe.length;){const e=r.unsafe[a],t=ds(e);let i;if(e.atBreak)for(;i=t.exec(n);){let e=i.index;10===n.charCodeAt(e)&&13===n.charCodeAt(e-1)&&e--,n=n.slice(0,e)+" "+n.slice(i.index+1)}}return i+n+i}function gs(e){return null==e?"":String(e)}function vs(e){return e.length}function ys(e){const t="string"==typeof e?e.charCodeAt(0):0;return 67===t||99===t?99:76===t||108===t?108:82===t||114===t?114:0}ps.peek=function(){return"~"},ms.peek=function(){return"`"};function bs(e){this.exit(e)}function ws(e){this.enter({type:"tableCell",children:[]},e)}function xs(e,t){return"|"===t?t:e}function ks(e){const t=e||{},r=t.tableCellPadding,n=t.tablePipeAlign,i=t.stringLength,a=r?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:"\n",inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[\t :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{table:function(e,t,r){return s(function(e,t){const r=e.children;let n=-1;const i=[],a=t.enter("table");for(;++n<r.length;)i[n]=c(r[n],t);return a(),i}(e,r),e.align)},tableRow:function(e,t,r){const n=s([c(e,r)]);return n.slice(0,n.indexOf("\n"))},tableCell:o,inlineCode:function(e,t,r){let n=ms(e,0,r);r.stack.includes("tableCell")&&(n=n.replace(/\|/g,"\\$&"));return n}}};function o(e,t,r){const n=r.enter("tableCell"),i=r.enter("phrasing"),o=ls(e,r,{before:a,after:a});return i(),n(),o}function s(e,t){return function(e,t){const r=t||{},n=(r.align||[]).concat(),i=r.stringLength||vs,a=[];let o=-1;const s=[],c=[],u=[];let l,f,h,p,d,m,g,v,y,b=0;for(;++o<e.length;){for(l=-1,f=[],h=[],e[o].length>b&&(b=e[o].length);++l<e[o].length;)d=gs(e[o][l]),!1!==r.alignDelimiters&&(p=i(d),h[l]=p,(void 0===u[l]||p>u[l])&&(u[l]=p)),f.push(d);s[o]=f,c[o]=h}if(l=-1,"object"==typeof n&&"length"in n)for(;++l<b;)a[l]=ys(n[l]);else for(y=ys(n);++l<b;)a[l]=y;for(l=-1,f=[],h=[];++l<b;)y=a[l],g="",v="",99===y?(g=":",v=":"):108===y?g=":":114===y&&(v=":"),p=!1===r.alignDelimiters?1:Math.max(1,u[l]-g.length-v.length),d=g+"-".repeat(p)+v,!1!==r.alignDelimiters&&(p=g.length+p+v.length,p>u[l]&&(u[l]=p),h[l]=p),f[l]=d;s.splice(1,0,f),c.splice(1,0,h),o=-1;const w=[];for(;++o<s.length;){for(f=s[o],h=c[o],l=-1,m=[];++l<b;)d=f[l]||"",g="",v="",!1!==r.alignDelimiters&&(p=u[l]-(h[l]||0),y=a[l],114===y?g=" ".repeat(p):99===y?p%2?(g=" ".repeat(p/2+.5),v=" ".repeat(p/2-.5)):(g=" ".repeat(p/2),v=g):v=" ".repeat(p)),!1===r.delimiterStart||l||m.push("|"),!1===r.padding||!1===r.alignDelimiters&&""===d||!1===r.delimiterStart&&!l||m.push(" "),!1!==r.alignDelimiters&&m.push(g),m.push(d),!1!==r.alignDelimiters&&m.push(v),!1!==r.padding&&m.push(" "),!1===r.delimiterEnd&&l===b-1||m.push("|");w.push(!1===r.delimiterEnd?m.join("").replace(/ +$/,""):m.join(""))}return w.join("\n")}(e,{align:t,alignDelimiters:n,padding:r,stringLength:i})}function c(e,t){const r=e.children;let n=-1;const i=[],a=t.enter("tableRow");for(;++n<r.length;)i[n]=o(r[n],0,t);return a(),i}}function Es(e,t){const r=t.indexStack,n=e.children||[],i=[];let a=-1;for(r.push(-1);++a<n.length;){const s=n[a];r[r.length-1]=a,i.push(t.handle(s,e,t,{before:"\n",after:"\n"})),"list"!==s.type&&(t.bulletLastUsed=void 0),a<n.length-1&&i.push(o(s,n[a+1]))}return r.pop(),i.join("");function o(r,n){let i=t.join.length;for(;i--;){const a=t.join[i](r,n,e,t);if(!0===a||1===a)break;if("number"==typeof a)return"\n".repeat(1+a);if(!1===a)return"\n\n\x3c!----\x3e\n\n"}return"\n\n"}}const Ss=/\r?\n|\r/g;function Cs(e,t){const r=[];let n,i=0,a=0;for(;n=Ss.exec(e);)o(e.slice(i,n.index)),r.push(n[0]),i=n.index+n[0].length,a++;return o(e.slice(i)),r.join("");function o(e){r.push(t(e,a,!e))}}function As(e,t,r){const n=function(e){const t=e.options.listItemIndent||"tab";if(1===t||"1"===t)return"one";if("tab"!==t&&"one"!==t&&"mixed"!==t)throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}(r);let i=r.bulletCurrent||function(e){const t=e.options.bullet||"*";if("*"!==t&&"+"!==t&&"-"!==t)throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}(r);t&&"list"===t.type&&t.ordered&&(i=("number"==typeof t.start&&t.start>-1?t.start:1)+(!1===r.options.incrementListMarker?0:t.children.indexOf(e))+i);let a=i.length+1;("tab"===n||"mixed"===n&&(t&&"list"===t.type&&t.spread||e.spread))&&(a=4*Math.ceil(a/4));const o=r.enter("listItem"),s=Cs(Es(e,r),(function(e,t,r){if(t)return(r?"":" ".repeat(a))+e;return(r?i:i+" ".repeat(a-i.length))+e}));return o(),s}const Ps={unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:function(e,t,r){const n=e.children[0];let i=As(e,t,r);"boolean"==typeof e.checked&&n&&"paragraph"===n.type&&(i=i.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,(function(t){return t+"["+(e.checked?"x":" ")+"] "})));return i}}};function _s(e){this.stack[this.stack.length-2].checked="taskListCheckValueChecked"===e.type}const Fs=[is,fs,{enter:{table:function(e){const t=e._align;this.enter({type:"table",align:t,children:[]},e),this.setData("inTable",!0)},tableData:ws,tableHeader:ws,tableRow:function(e){this.enter({type:"tableRow",children:[]},e)}},exit:{codeText:function(e){let t=this.resume();this.getData("inTable")&&(t=t.replace(/\\([\\|])/g,xs));this.stack[this.stack.length-1].value=t,this.exit(e)},table:function(e){this.exit(e),this.setData("inTable")},tableData:bs,tableHeader:bs,tableRow:bs}},{exit:{taskListCheckValueChecked:_s,taskListCheckValueUnchecked:_s,paragraph:function(e){const t=this.stack[this.stack.length-2],r=this.stack[this.stack.length-1],n=t.children,i=r.children[0];let a,o=-1;if(t&&"listItem"===t.type&&"boolean"==typeof t.checked&&i&&"text"===i.type){for(;++o<n.length;){const e=n[o];if("paragraph"===e.type){a=e;break}}a===r&&(i.value=i.value.slice(1),0===i.value.length?r.children.shift():(i.position.start.column++,i.position.start.offset++,r.position.start=Object.assign({},i.position.start)))}this.exit(e)}}}];var Os=oe(Object.freeze({__proto__:null,default:function(e={}){const t=this.data();function r(e,r){(t[e]?t[e]:t[e]=[]).push(r)}r("micromarkExtensions",function(e){return Ci([So,Mo(e),$o,Wo])}(e)),r("fromMarkdownExtensions",Fs),r("toMarkdownExtensions",function(e){return{extensions:[as,hs,ks(e),Ps]}}(e))}}));function Ds(e){return"[33m"+e+"[39m"}const Is=function(e,t,r,n){"function"==typeof t&&"function"!=typeof r&&(n=r,r=t,t=null);const i=Wr(t),a=n?-1:1;!function e(o,s,c){const u="object"==typeof o&&null!==o?o:{};let l;"string"==typeof u.type&&(l="string"==typeof u.tagName?u.tagName:"string"==typeof u.name?u.name:void 0,Object.defineProperty(f,"name",{value:"node ("+Ds(u.type+(l?"<"+l+">":""))+")"}));return f;function f(){let u,l,f,h=[];if((!t||i(o,s,c[c.length-1]||null))&&(h=function(e){if(Array.isArray(e))return e;if("number"==typeof e)return[true,e];return[e]}(r(o,c)),false===h[0]))return h;if(o.children&&"skip"!==h[0])for(l=(n?o.children.length:-1)+a,f=c.concat(o);l>-1&&l<o.children.length;){if(u=e(o.children[l],l,f)(),false===u[0])return u;l="number"==typeof u[1]?u[1]:l+a}return h}}(e,null,[])()};const Ts=function(e,t,r,n){"function"==typeof t&&"function"!=typeof r&&(n=r,r=t,t=null),Is(e,t,(function(e,t){const n=t[t.length-1];return r(e,n?n.children.indexOf(e):null,n)}),n)};var js=Object.freeze({__proto__:null,CONTINUE:true,SKIP:"skip",EXIT:false,visit:Ts});const Rs=/[\t ]*(?:\r?\n|\r)/g;var Ls=oe(Object.freeze({__proto__:null,default:function(){return e=>{Ts(e,"text",((e,t,r)=>{const n=[];let i=0;Rs.lastIndex=0;let a=Rs.exec(e.value);for(;a;){const t=a.index;i!==t&&n.push({type:"text",value:e.value.slice(i,t)}),n.push({type:"break"}),i=t+a[0].length,a=Rs.exec(e.value)}if(n.length>0&&r&&"number"==typeof t)return i<e.value.length&&n.push({type:"text",value:e.value.slice(i)}),r.children.splice(t,1,...n),t+n.length}))}}})),qs={},Ms={};function Ns(e,t,r){var n,i,a,o,s,c="";for("string"!=typeof t&&(r=t,t=Ns.defaultChars),void 0===r&&(r=!0),s=function(e){var t,r,n=Ms[e];if(n)return n;for(n=Ms[e]=[],t=0;t<128;t++)r=String.fromCharCode(t),/^[0-9a-z]$/i.test(r)?n.push(r):n.push("%"+("0"+t.toString(16).toUpperCase()).slice(-2));for(t=0;t<e.length;t++)n[e.charCodeAt(t)]=e[t];return n}(t),n=0,i=e.length;n<i;n++)if(a=e.charCodeAt(n),r&&37===a&&n+2<i&&/^[0-9a-f]{2}$/i.test(e.slice(n+1,n+3)))c+=e.slice(n,n+3),n+=2;else if(a<128)c+=s[a];else if(a>=55296&&a<=57343){if(a>=55296&&a<=56319&&n+1<i&&(o=e.charCodeAt(n+1))>=56320&&o<=57343){c+=encodeURIComponent(e[n]+e[n+1]),n++;continue}c+="%EF%BF%BD"}else c+=encodeURIComponent(e[n]);return c}Ns.defaultChars=";/?:@&=+$,-_.!~*'()#",Ns.componentChars="-_.!~*'()";var zs=Ns,Bs={};function $s(e,t){var r;return"string"!=typeof t&&(t=$s.defaultChars),r=function(e){var t,r,n=Bs[e];if(n)return n;for(n=Bs[e]=[],t=0;t<128;t++)r=String.fromCharCode(t),n.push(r);for(t=0;t<e.length;t++)n[r=e.charCodeAt(t)]="%"+("0"+r.toString(16).toUpperCase()).slice(-2);return n}(t),e.replace(/(%[a-f0-9]{2})+/gi,(function(e){var t,n,i,a,o,s,c,u="";for(t=0,n=e.length;t<n;t+=3)(i=parseInt(e.slice(t+1,t+3),16))<128?u+=r[i]:192==(224&i)&&t+3<n&&128==(192&(a=parseInt(e.slice(t+4,t+6),16)))?(u+=(c=i<<6&1984|63&a)<128?"��":String.fromCharCode(c),t+=3):224==(240&i)&&t+6<n&&(a=parseInt(e.slice(t+4,t+6),16),o=parseInt(e.slice(t+7,t+9),16),128==(192&a)&&128==(192&o))?(u+=(c=i<<12&61440|a<<6&4032|63&o)<2048||c>=55296&&c<=57343?"���":String.fromCharCode(c),t+=6):240==(248&i)&&t+9<n&&(a=parseInt(e.slice(t+4,t+6),16),o=parseInt(e.slice(t+7,t+9),16),s=parseInt(e.slice(t+10,t+12),16),128==(192&a)&&128==(192&o)&&128==(192&s))?((c=i<<18&1835008|a<<12&258048|o<<6&4032|63&s)<65536||c>1114111?u+="����":(c-=65536,u+=String.fromCharCode(55296+(c>>10),56320+(1023&c))),t+=9):u+="�";return u}))}$s.defaultChars=";/?:@&=+$,#",$s.componentChars="";var Us=$s;function Vs(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}var Hs=/^([a-z0-9.+-]+:)/i,Qs=/:[0-9]*$/,Gs=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,Ws=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),Ks=["'"].concat(Ws),Ys=["%","/","?",";","#"].concat(Ks),Js=["/","?","#"],Zs=/^[+a-z0-9A-Z_-]{0,63}$/,Xs=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,ec={javascript:!0,"javascript:":!0},tc={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};Vs.prototype.parse=function(e,t){var r,n,i,a,o,s=e;if(s=s.trim(),!t&&1===e.split("#").length){var c=Gs.exec(s);if(c)return this.pathname=c[1],c[2]&&(this.search=c[2]),this}var u=Hs.exec(s);if(u&&(i=(u=u[0]).toLowerCase(),this.protocol=u,s=s.substr(u.length)),(t||u||s.match(/^\/\/[^@\/]+@[^@\/]+/))&&(!(o="//"===s.substr(0,2))||u&&ec[u]||(s=s.substr(2),this.slashes=!0)),!ec[u]&&(o||u&&!tc[u])){var l,f,h=-1;for(r=0;r<Js.length;r++)-1!==(a=s.indexOf(Js[r]))&&(-1===h||a<h)&&(h=a);for(-1!==(f=-1===h?s.lastIndexOf("@"):s.lastIndexOf("@",h))&&(l=s.slice(0,f),s=s.slice(f+1),this.auth=l),h=-1,r=0;r<Ys.length;r++)-1!==(a=s.indexOf(Ys[r]))&&(-1===h||a<h)&&(h=a);-1===h&&(h=s.length),":"===s[h-1]&&h--;var p=s.slice(0,h);s=s.slice(h),this.parseHost(p),this.hostname=this.hostname||"";var d="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!d){var m=this.hostname.split(/\./);for(r=0,n=m.length;r<n;r++){var g=m[r];if(g&&!g.match(Zs)){for(var v="",y=0,b=g.length;y<b;y++)g.charCodeAt(y)>127?v+="x":v+=g[y];if(!v.match(Zs)){var w=m.slice(0,r),x=m.slice(r+1),k=g.match(Xs);k&&(w.push(k[1]),x.unshift(k[2])),x.length&&(s=x.join(".")+s),this.hostname=w.join(".");break}}}}this.hostname.length>255&&(this.hostname=""),d&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}var E=s.indexOf("#");-1!==E&&(this.hash=s.substr(E),s=s.slice(0,E));var S=s.indexOf("?");return-1!==S&&(this.search=s.substr(S),s=s.slice(0,S)),s&&(this.pathname=s),tc[i]&&this.hostname&&!this.pathname&&(this.pathname=""),this},Vs.prototype.parseHost=function(e){var t=Qs.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)};var rc=function(e,t){if(e&&e instanceof Vs)return e;var r=new Vs;return r.parse(e,t),r};function nc(e){const t=e.options.quote||'"';if('"'!==t&&"'"!==t)throw new Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function ic(e,t){return ac(e,t.inConstruct,!0)&&!ac(e,t.notInConstruct,!1)}function ac(e,t,r){if(!t)return r;"string"==typeof t&&(t=[t]);let n=-1;for(;++n<t.length;)if(e.includes(t[n]))return!0;return!1}function oc(e,t,r){const n=(r.before||"")+(t||"")+(r.after||""),i=[],a=[],o={};let s=-1;for(;++s<e.unsafe.length;){const t=e.unsafe[s];if(!ic(e.stack,t))continue;const r=ds(t);let a;for(;a=r.exec(n);){const e="before"in t||Boolean(t.atBreak),r="after"in t,n=a.index+(e?a[1].length:0);i.includes(n)?(o[n].before&&!e&&(o[n].before=!1),o[n].after&&!r&&(o[n].after=!1)):(i.push(n),o[n]={before:e,after:r})}}i.sort(sc);let c=r.before?r.before.length:0;const u=n.length-(r.after?r.after.length:0);for(s=-1;++s<i.length;){const e=i[s];e<c||e>=u||(e+1<u&&i[s+1]===e+1&&o[e].after&&!o[e+1].before&&!o[e+1].after||i[s-1]===e-1&&o[e].before&&!o[e-1].before&&!o[e-1].after||(c!==e&&a.push(cc(n.slice(c,e),"\\")),c=e,!/[!-/:-@[-`{-~]/.test(n.charAt(e))||r.encode&&r.encode.includes(n.charAt(e))?(a.push("&#x"+n.charCodeAt(e).toString(16).toUpperCase()+";"),c++):a.push("\\")))}return a.push(cc(n.slice(c,u),r.after)),a.join("")}function sc(e,t){return e-t}function cc(e,t){const r=/\\(?=[!-/:-@[-`{-~])/g,n=[],i=[],a=e+t;let o,s=-1,c=0;for(;o=r.exec(a);)n.push(o.index);for(;++s<n.length;)c!==n[s]&&i.push(e.slice(c,n[s])),i.push("\\"),c=n[s];return i.push(e.slice(c)),i.join("")}function uc(e,t,r){const n=nc(r),i='"'===n?"Quote":"Apostrophe",a=r.enter("image");let o=r.enter("label"),s="!["+oc(r,e.alt,{before:"[",after:"]"})+"](";return o(),!e.url&&e.title||/[ \t\r\n]/.test(e.url)?(o=r.enter("destinationLiteral"),s+="<"+oc(r,e.url,{before:"<",after:">"})+">"):(o=r.enter("destinationRaw"),s+=oc(r,e.url,{before:"(",after:e.title?" ":")"})),o(),e.title&&(o=r.enter("title"+i),s+=" "+n+oc(r,e.title,{before:n,after:n})+n,o()),s+=")",a(),s}qs.encode=zs,qs.decode=Us,qs.format=function(e){var t="";return t+=e.protocol||"",t+=e.slashes?"//":"",t+=e.auth?e.auth+"@":"",e.hostname&&-1!==e.hostname.indexOf(":")?t+="["+e.hostname+"]":t+=e.hostname||"",t+=e.port?":"+e.port:"",t+=e.pathname||"",t+=e.search||"",t+=e.hash||""},qs.parse=rc,uc.peek=function(){return"!"};var lc=oe(Object.freeze({__proto__:null,image:uc})),fc=oe(Ha);var hc=oe(Object.freeze({__proto__:null,types:{data:"data",whitespace:"whitespace",lineEnding:"lineEnding",lineEndingBlank:"lineEndingBlank",linePrefix:"linePrefix",lineSuffix:"lineSuffix",atxHeading:"atxHeading",atxHeadingSequence:"atxHeadingSequence",atxHeadingText:"atxHeadingText",autolink:"autolink",autolinkEmail:"autolinkEmail",autolinkMarker:"autolinkMarker",autolinkProtocol:"autolinkProtocol",characterEscape:"characterEscape",characterEscapeValue:"characterEscapeValue",characterReference:"characterReference",characterReferenceMarker:"characterReferenceMarker",characterReferenceMarkerNumeric:"characterReferenceMarkerNumeric",characterReferenceMarkerHexadecimal:"characterReferenceMarkerHexadecimal",characterReferenceValue:"characterReferenceValue",codeFenced:"codeFenced",codeFencedFence:"codeFencedFence",codeFencedFenceSequence:"codeFencedFenceSequence",codeFencedFenceInfo:"codeFencedFenceInfo",codeFencedFenceMeta:"codeFencedFenceMeta",codeFlowValue:"codeFlowValue",codeIndented:"codeIndented",codeText:"codeText",codeTextData:"codeTextData",codeTextPadding:"codeTextPadding",codeTextSequence:"codeTextSequence",content:"content",definition:"definition",definitionDestination:"definitionDestination",definitionDestinationLiteral:"definitionDestinationLiteral",definitionDestinationLiteralMarker:"definitionDestinationLiteralMarker",definitionDestinationRaw:"definitionDestinationRaw",definitionDestinationString:"definitionDestinationString",definitionLabel:"definitionLabel",definitionLabelMarker:"definitionLabelMarker",definitionLabelString:"definitionLabelString",definitionMarker:"definitionMarker",definitionTitle:"definitionTitle",definitionTitleMarker:"definitionTitleMarker",definitionTitleString:"definitionTitleString",emphasis:"emphasis",emphasisSequence:"emphasisSequence",emphasisText:"emphasisText",escapeMarker:"escapeMarker",hardBreakEscape:"hardBreakEscape",hardBreakTrailing:"hardBreakTrailing",htmlFlow:"htmlFlow",htmlFlowData:"htmlFlowData",htmlText:"htmlText",htmlTextData:"htmlTextData",image:"image",label:"label",labelText:"labelText",labelLink:"labelLink",labelImage:"labelImage",labelMarker:"labelMarker",labelImageMarker:"labelImageMarker",labelEnd:"labelEnd",link:"link",paragraph:"paragraph",reference:"reference",referenceMarker:"referenceMarker",referenceString:"referenceString",resource:"resource",resourceDestination:"resourceDestination",resourceDestinationLiteral:"resourceDestinationLiteral",resourceDestinationLiteralMarker:"resourceDestinationLiteralMarker",resourceDestinationRaw:"resourceDestinationRaw",resourceDestinationString:"resourceDestinationString",resourceMarker:"resourceMarker",resourceTitle:"resourceTitle",resourceTitleMarker:"resourceTitleMarker",resourceTitleString:"resourceTitleString",setextHeading:"setextHeading",setextHeadingText:"setextHeadingText",setextHeadingLine:"setextHeadingLine",setextHeadingLineSequence:"setextHeadingLineSequence",strong:"strong",strongSequence:"strongSequence",strongText:"strongText",thematicBreak:"thematicBreak",thematicBreakSequence:"thematicBreakSequence",blockQuote:"blockQuote",blockQuotePrefix:"blockQuotePrefix",blockQuoteMarker:"blockQuoteMarker",blockQuotePrefixWhitespace:"blockQuotePrefixWhitespace",listOrdered:"listOrdered",listUnordered:"listUnordered",listItemIndent:"listItemIndent",listItemMarker:"listItemMarker",listItemPrefix:"listItemPrefix",listItemPrefixWhitespace:"listItemPrefixWhitespace",listItemValue:"listItemValue",chunkDocument:"chunkDocument",chunkContent:"chunkContent",chunkFlow:"chunkFlow",chunkText:"chunkText",chunkString:"chunkString"}}));var pc=oe(Object.freeze({__proto__:null,codes:{carriageReturn:-5,lineFeed:-4,carriageReturnLineFeed:-3,horizontalTab:-2,virtualSpace:-1,eof:null,nul:0,soh:1,stx:2,etx:3,eot:4,enq:5,ack:6,bel:7,bs:8,ht:9,lf:10,vt:11,ff:12,cr:13,so:14,si:15,dle:16,dc1:17,dc2:18,dc3:19,dc4:20,nak:21,syn:22,etb:23,can:24,em:25,sub:26,esc:27,fs:28,gs:29,rs:30,us:31,space:32,exclamationMark:33,quotationMark:34,numberSign:35,dollarSign:36,percentSign:37,ampersand:38,apostrophe:39,leftParenthesis:40,rightParenthesis:41,asterisk:42,plusSign:43,comma:44,dash:45,dot:46,slash:47,digit0:48,digit1:49,digit2:50,digit3:51,digit4:52,digit5:53,digit6:54,digit7:55,digit8:56,digit9:57,colon:58,semicolon:59,lessThan:60,equalsTo:61,greaterThan:62,questionMark:63,atSign:64,uppercaseA:65,uppercaseB:66,uppercaseC:67,uppercaseD:68,uppercaseE:69,uppercaseF:70,uppercaseG:71,uppercaseH:72,uppercaseI:73,uppercaseJ:74,uppercaseK:75,uppercaseL:76,uppercaseM:77,uppercaseN:78,uppercaseO:79,uppercaseP:80,uppercaseQ:81,uppercaseR:82,uppercaseS:83,uppercaseT:84,uppercaseU:85,uppercaseV:86,uppercaseW:87,uppercaseX:88,uppercaseY:89,uppercaseZ:90,leftSquareBracket:91,backslash:92,rightSquareBracket:93,caret:94,underscore:95,graveAccent:96,lowercaseA:97,lowercaseB:98,lowercaseC:99,lowercaseD:100,lowercaseE:101,lowercaseF:102,lowercaseG:103,lowercaseH:104,lowercaseI:105,lowercaseJ:106,lowercaseK:107,lowercaseL:108,lowercaseM:109,lowercaseN:110,lowercaseO:111,lowercaseP:112,lowercaseQ:113,lowercaseR:114,lowercaseS:115,lowercaseT:116,lowercaseU:117,lowercaseV:118,lowercaseW:119,lowercaseX:120,lowercaseY:121,lowercaseZ:122,leftCurlyBrace:123,verticalBar:124,rightCurlyBrace:125,tilde:126,del:127,byteOrderMarker:65279,replacementCharacter:65533}}));var dc=oe(Object.freeze({__proto__:null,constants:{attentionSideBefore:1,attentionSideAfter:2,atxHeadingOpeningFenceSizeMax:6,autolinkDomainSizeMax:63,autolinkSchemeSizeMax:32,cdataOpeningString:"CDATA[",characterGroupWhitespace:1,characterGroupPunctuation:2,characterReferenceDecimalSizeMax:7,characterReferenceHexadecimalSizeMax:6,characterReferenceNamedSizeMax:31,codeFencedSequenceSizeMin:3,contentTypeDocument:"document",contentTypeFlow:"flow",contentTypeContent:"content",contentTypeString:"string",contentTypeText:"text",hardBreakPrefixSizeMin:2,htmlRaw:1,htmlComment:2,htmlInstruction:3,htmlDeclaration:4,htmlCdata:5,htmlBasic:6,htmlComplete:7,htmlRawSizeMax:8,linkResourceDestinationBalanceMax:3,linkReferenceSizeMax:999,listItemValueSizeMax:10,numericBaseDecimal:10,numericBaseHexadecimal:16,tabSize:4,thematicBreakMarkerCountMin:3,v8MaxSafeChunkSize:1e4}})),mc=oe(Ea),gc=oe(xa),vc=oe(ma),yc=oe($i),bc=oe(va),wc=oe(ba),xc=oe(js);var kc=oe(Object.freeze({__proto__:null,paragraph:function(e,t,r){const n=r.enter("paragraph"),i=r.enter("phrasing"),a=ls(e,r,{before:"\n",after:"\n"});return i(),n(),a}}));var Ec=oe(Object.freeze({__proto__:null,heading:function(e,t,r){const n=Math.max(Math.min(6,e.depth||1),1);if(function(e,t){let r=!1;return Ts(e,(e=>{if("value"in e&&/\r?\n|\r/.test(e.value)||"break"===e.type)return r=!0,!1})),Boolean((!e.depth||e.depth<3)&&bi(e)&&(t.options.setext||r))}(e,r)){const t=r.enter("headingSetext"),i=r.enter("phrasing"),a=ls(e,r,{before:"\n",after:"\n"});return i(),t(),a+"\n"+(1===n?"=":"-").repeat(a.length-(Math.max(a.lastIndexOf("\r"),a.lastIndexOf("\n"))+1))}const i="#".repeat(n),a=r.enter("headingAtx"),o=r.enter("phrasing");let s=ls(e,r,{before:"# ",after:"\n"});return/^[\t ]/.test(s)&&(s="&#x"+s.charCodeAt(0).toString(16).toUpperCase()+";"+s.slice(1)),s=s?i+" "+s:i,r.options.closeAtx&&(s+=" "+i),o(),a(),s}})),Sc=oe(Vi);function Cc(e,t,r){return">"+(r?"":" ")+e}var Ac,Pc=oe(Object.freeze({__proto__:null,blockquote:function(e,t,r){const n=r.enter("blockquote"),i=Cs(Es(e,r),Cc);return n(),i}})),_c={exports:{}};Ac=_c,function(){var e;function t(e){for(var t,r,n,i,a=1,o=[].slice.call(arguments),s=0,c=e.length,u="",l=!1,f=!1,h=function(){return o[a++]},p=function(){for(var r="";/\d/.test(e[s]);)r+=e[s++],t=e[s];return r.length>0?parseInt(r):null};s<c;++s)if(t=e[s],l)switch(l=!1,"."==t?(f=!1,t=e[++s]):"0"==t&&"."==e[s+1]?(f=!0,t=e[s+=2]):f=!0,i=p(),t){case"b":u+=parseInt(h(),10).toString(2);break;case"c":u+="string"==typeof(r=h())||r instanceof String?r:String.fromCharCode(parseInt(r,10));break;case"d":u+=parseInt(h(),10);break;case"f":n=String(parseFloat(h()).toFixed(i||6)),u+=f?n:n.replace(/^0/,"");break;case"j":u+=JSON.stringify(h());break;case"o":u+="0"+parseInt(h(),10).toString(8);break;case"s":u+=h();break;case"x":u+="0x"+parseInt(h(),10).toString(16);break;case"X":u+="0x"+parseInt(h(),10).toString(16).toUpperCase();break;default:u+=t}else"%"===t?l=!0:u+=t;return u}(e=Ac.exports=t).format=t,e.vsprintf=function(e,r){return t.apply(null,[e].concat(r))},"undefined"!=typeof console&&"function"==typeof console.log&&(e.printf=function(){console.log(t.apply(null,arguments))})}();var Fc=_c.exports,Oc=Object.assign(Dc(Error),{eval:Dc(EvalError),range:Dc(RangeError),reference:Dc(ReferenceError),syntax:Dc(SyntaxError),type:Dc(TypeError),uri:Dc(URIError)});function Dc(e){return t.displayName=e.displayName||e.name,t;function t(t,...r){var n=t?Fc(t,...r):t;return new e(n)}}const Ic={}.hasOwnProperty,Tc={yaml:"-",toml:"+"};function jc(e="yaml"){const t=[];let r=-1;for(Array.isArray(e)||(e=[e]);++r<e.length;)t[r]=Rc(e[r]);return t}function Rc(e){let t=e;if("string"==typeof t){if(!Ic.call(Tc,t))throw Oc("Missing matter definition for `%s`",t);t={type:t,marker:Tc[t]}}else if("object"!=typeof t)throw Oc("Expected matter to be an object, not `%j`",t);if(!Ic.call(t,"type"))throw Oc("Missing `type` in matter `%j`",t);if(!Ic.call(t,"fence")&&!Ic.call(t,"marker"))throw Oc("Missing `marker` or `fence` in matter `%j`",t);return t}function Lc(e){const t=e.type,r=e.anywhere,n=t+"Value",i=t+"Fence",a=i+"Sequence",o={tokenize:function(e,t,r){let n=0;return function(t){if(t===s.charCodeAt(n))return e.enter(i),e.enter(a),o(t);return r(t)};function o(t){return n===s.length?(e.exit(a),Mi(t)?(e.enter("whitespace"),c(t)):u(t)):t===s.charCodeAt(n++)?(e.consume(t),o):r(t)}function c(t){return Mi(t)?(e.consume(t),c):(e.exit("whitespace"),u(t))}function u(n){return null===n||qi(n)?(e.exit(i),t(n)):r(n)}},partial:!0};let s;return{tokenize:function(i,a,c){const u=this;return function(n){const a=u.now();if(1!==a.column||!r&&1!==a.line)return c(n);return i.enter(t),s=qc(e,"open"),i.attempt(o,l,c)(n)};function l(t){return s=qc(e,"close"),p(t)}function f(e){return null===e||qi(e)?p(e):(i.enter(n),h(e))}function h(e){return null===e||qi(e)?(i.exit(n),p(e)):(i.consume(e),h)}function p(e){return null===e?c(e):(i.enter("lineEnding"),i.consume(e),i.exit("lineEnding"),i.attempt(o,d,f))}function d(e){return i.exit(t),a(e)}},concrete:!0}}function qc(e,t){return e.marker?Mc(e.marker,t).repeat(3):Mc(e.fence,t)}function Mc(e,t){return"string"==typeof e?e:e[t]}function Nc(e){return function(t){this.enter({type:e.type,value:""},t),this.buffer()}}function zc(e){const t=this.resume();this.exit(e).value=t.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,"")}function Bc(e){this.config.enter.data.call(this,e),this.config.exit.data.call(this,e)}function $c(e){const t=Uc(e,"open"),r=Uc(e,"close");return function(e){return t+(e.value?"\n"+e.value:"")+"\n"+r}}function Uc(e,t){return e.marker?Vc(e.marker,t).repeat(3):Vc(e.fence,t)}function Vc(e,t){return"string"==typeof e?e:e[t]}var Hc=oe(Object.freeze({__proto__:null,default:function(e="yaml"){const t=this.data();function r(e,r){(t[e]?t[e]:t[e]=[]).push(r)}r("micromarkExtensions",function(e){const t=jc(e),r={};let n,i,a=-1;for(;++a<t.length;)n=t[a],i=qc(n,"open").charCodeAt(0),i in r?r[i].push(Lc(n)):r[i]=[Lc(n)];return{flow:r}}(e)),r("fromMarkdownExtensions",function(e){const t=jc(e),r={},n={};let i=-1;for(;++i<t.length;){const e=t[i];r[e.type]=Nc(e),n[e.type]=zc,n[e.type+"Value"]=Bc}return{enter:r,exit:n}}(e)),r("toMarkdownExtensions",function(e){const t=[],r={},n=jc(e);let i=-1;for(;++i<n.length;){const e=n[i];r[e.type]=$c(e),t.push({atBreak:!0,character:Uc(e,"open").charAt(0)})}return{unsafe:t,handlers:r}}(e))}}));function Qc(e,t,r,n,i,a,o,s,c,u,l,f,h,p,d){let m,g;return function(t){return e.enter(n),e.enter(i),e.consume(t),e.exit(i),v};function v(t){return 35===t?(m=o,y(t)):46===t?(m=s,y(t)):58===t||95===t||Fi(t)?(e.enter(a),e.enter(c),e.consume(t),x):d&&Mi(t)?Ui(e,v,"whitespace")(t):!d&&Li(t)?wa(e,v)(t):F(t)}function y(t){return e.enter(a),e.enter(m),e.enter(m+"Marker"),e.consume(t),e.exit(m+"Marker"),b}function b(t){return null===t||34===t||35===t||39===t||46===t||60===t||61===t||62===t||96===t||125===t||Li(t)?r(t):(e.enter(m+"Value"),e.consume(t),w)}function w(t){return null===t||34===t||39===t||60===t||61===t||62===t||96===t?r(t):35===t||46===t||125===t||Li(t)?(e.exit(m+"Value"),e.exit(m),e.exit(a),v(t)):(e.consume(t),w)}function x(t){return 45===t||46===t||58===t||95===t||Ii(t)?(e.consume(t),x):(e.exit(c),d&&Mi(t)?Ui(e,k,"whitespace")(t):!d&&Li(t)?wa(e,k)(t):k(t))}function k(t){return 61===t?(e.enter(u),e.consume(t),e.exit(u),E):(e.exit(a),v(t))}function E(t){return null===t||60===t||61===t||62===t||96===t||125===t||d&&qi(t)?r(t):34===t||39===t?(e.enter(l),e.enter(h),e.consume(t),e.exit(h),g=t,C):d&&Mi(t)?Ui(e,E,"whitespace")(t):!d&&Li(t)?wa(e,E)(t):(e.enter(f),e.enter(p),e.consume(t),g=void 0,S)}function S(t){return null===t||34===t||39===t||60===t||61===t||62===t||96===t?r(t):125===t||Li(t)?(e.exit(p),e.exit(f),e.exit(a),v(t)):(e.consume(t),S)}function C(t){return t===g?(e.enter(h),e.consume(t),e.exit(h),e.exit(l),e.exit(a),_):(e.enter(f),A(t))}function A(t){return t===g?(e.exit(f),C(t)):null===t?r(t):qi(t)?d?r(t):wa(e,A)(t):(e.enter(p),e.consume(t),P)}function P(t){return t===g||null===t||qi(t)?(e.exit(p),A(t)):(e.consume(t),P)}function _(e){return 125===e||Li(e)?v(e):F(e)}function F(a){return 125===a?(e.enter(i),e.consume(a),e.exit(i),e.exit(n),t):r(a)}}function Gc(e,t,r,n,i,a,o){let s=0,c=0;return function(t){return e.enter(n),e.enter(i),e.consume(t),e.exit(i),u};function u(r){return 93===r?(e.enter(i),e.consume(r),e.exit(i),e.exit(n),t):(e.enter(a),l(r))}function l(t){return null===t||s>999?r(t):93!==t||c--?qi(t)?o?r(t):(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),l):(e.enter("chunkText",{contentType:"text"}),f(t)):h(t)}function f(t){return null===t||qi(t)||s>999?(e.exit("chunkText"),l(t)):91===t&&++c>3?r(t):93!==t||c--?(e.consume(t),92===t?p:f):(e.exit("chunkText"),h(t))}function h(r){return e.exit(a),e.enter(i),e.consume(r),e.exit(i),e.exit(n),t}function p(t){return 91===t||92===t||93===t?(e.consume(t),s++,f):f(t)}}function Wc(e,t,r,n){const i=this;return function(t){if(Fi(t))return e.enter(n),e.consume(t),a;return r(t)};function a(o){return 45===o||95===o||Ii(o)?(e.consume(o),a):(e.exit(n),45===i.previous||95===i.previous?r(o):t(o))}}const Kc={tokenize:function(e,t,r){const n=this,i=n.events[n.events.length-1],a=i&&"linePrefix"===i[1].type?i[2].sliceSerialize(i[1],!0).length:0;let o,s=0;return function(t){return e.enter("directiveContainer"),e.enter("directiveContainerFence"),e.enter("directiveContainerSequence"),c(t)};function c(t){return 58===t?(e.consume(t),s++,c):s<3?r(t):(e.exit("directiveContainerSequence"),Wc.call(n,e,u,r,"directiveContainerName")(t))}function u(t){return 91===t?e.attempt(Yc,l,l)(t):l(t)}function l(t){return 123===t?e.attempt(Jc,f,f)(t):f(t)}function f(t){return Ui(e,h,"whitespace")(t)}function h(i){return e.exit("directiveContainerFence"),null===i?p(i):qi(i)?n.interrupt?t(i):e.attempt(Zc,d,p)(i):r(i)}function p(r){return e.exit("directiveContainer"),t(r)}function d(r){return null===r?(e.exit("directiveContainer"),t(r)):(e.enter("directiveContainerContent"),m(r))}function m(t){return null===t?w(t):e.attempt({tokenize:x,partial:!0},w,a?Ui(e,g,"linePrefix",a+1):g)(t)}function g(t){if(null===t)return w(t);const r=e.enter("chunkDocument",{contentType:"document",previous:o});return o&&(o.next=r),o=r,v(t)}function v(t){if(null===t){const r=e.exit("chunkDocument");return n.parser.lazy[r.start.line]=!1,w(t)}return qi(t)?e.check(Zc,y,b)(t):(e.consume(t),v)}function y(t){e.consume(t);const r=e.exit("chunkDocument");return n.parser.lazy[r.start.line]=!1,m}function b(t){const r=e.exit("chunkDocument");return n.parser.lazy[r.start.line]=!1,w(t)}function w(r){return e.exit("directiveContainerContent"),e.exit("directiveContainer"),t(r)}function x(e,t,r){let n=0;return Ui(e,(function(t){return e.enter("directiveContainerFence"),e.enter("directiveContainerSequence"),i(t)}),"linePrefix",4);function i(t){return 58===t?(e.consume(t),n++,i):n<s?r(t):(e.exit("directiveContainerSequence"),Ui(e,a,"whitespace")(t))}function a(n){return null===n||qi(n)?(e.exit("directiveContainerFence"),t(n)):r(n)}}},concrete:!0},Yc={tokenize:function(e,t,r){return Gc(e,t,r,"directiveContainerLabel","directiveContainerLabelMarker","directiveContainerLabelString",!0)},partial:!0},Jc={tokenize:function(e,t,r){return Qc(e,t,r,"directiveContainerAttributes","directiveContainerAttributesMarker","directiveContainerAttribute","directiveContainerAttributeId","directiveContainerAttributeClass","directiveContainerAttributeName","directiveContainerAttributeInitializerMarker","directiveContainerAttributeValueLiteral","directiveContainerAttributeValue","directiveContainerAttributeValueMarker","directiveContainerAttributeValueData",!0)},partial:!0},Zc={tokenize:function(e,t,r){const n=this;return function(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i};function i(e){return n.parser.lazy[n.now().line]?r(e):t(e)}},partial:!0};const Xc={tokenize:function(e,t,r){const n=this;return function(t){return e.enter("directiveLeaf"),e.enter("directiveLeafSequence"),e.consume(t),i};function i(t){return 58===t?(e.consume(t),e.exit("directiveLeafSequence"),Wc.call(n,e,a,r,"directiveLeafName")):r(t)}function a(t){return 91===t?e.attempt(eu,o,o)(t):o(t)}function o(t){return 123===t?e.attempt(tu,s,s)(t):s(t)}function s(t){return Ui(e,c,"whitespace")(t)}function c(n){return null===n||qi(n)?(e.exit("directiveLeaf"),t(n)):r(n)}}},eu={tokenize:function(e,t,r){return Gc(e,t,r,"directiveLeafLabel","directiveLeafLabelMarker","directiveLeafLabelString",!0)},partial:!0},tu={tokenize:function(e,t,r){return Qc(e,t,r,"directiveLeafAttributes","directiveLeafAttributesMarker","directiveLeafAttribute","directiveLeafAttributeId","directiveLeafAttributeClass","directiveLeafAttributeName","directiveLeafAttributeInitializerMarker","directiveLeafAttributeValueLiteral","directiveLeafAttributeValue","directiveLeafAttributeValueMarker","directiveLeafAttributeValueData",!0)},partial:!0};const ru={tokenize:function(e,t,r){const n=this;return function(t){return e.enter("directiveText"),e.enter("directiveTextMarker"),e.consume(t),e.exit("directiveTextMarker"),Wc.call(n,e,i,r,"directiveTextName")};function i(t){return 58===t?r(t):91===t?e.attempt(nu,a,a)(t):a(t)}function a(t){return 123===t?e.attempt(iu,o,o)(t):o(t)}function o(r){return e.exit("directiveText"),t(r)}},previous:function(e){return 58!==e||"characterEscape"===this.events[this.events.length-1][1].type}},nu={tokenize:function(e,t,r){return Gc(e,t,r,"directiveTextLabel","directiveTextLabelMarker","directiveTextLabelString")},partial:!0},iu={tokenize:function(e,t,r){return Qc(e,t,r,"directiveTextAttributes","directiveTextAttributesMarker","directiveTextAttribute","directiveTextAttributeId","directiveTextAttributeClass","directiveTextAttributeName","directiveTextAttributeInitializerMarker","directiveTextAttributeValueLiteral","directiveTextAttributeValue","directiveTextAttributeValueMarker","directiveTextAttributeValueData")},partial:!0};var au={AElig:"Æ",AMP:"&",Aacute:"Á",Acirc:"Â",Agrave:"À",Aring:"Å",Atilde:"Ã",Auml:"Ä",COPY:"©",Ccedil:"Ç",ETH:"Ð",Eacute:"É",Ecirc:"Ê",Egrave:"È",Euml:"Ë",GT:">",Iacute:"Í",Icirc:"Î",Igrave:"Ì",Iuml:"Ï",LT:"<",Ntilde:"Ñ",Oacute:"Ó",Ocirc:"Ô",Ograve:"Ò",Oslash:"Ø",Otilde:"Õ",Ouml:"Ö",QUOT:'"',REG:"®",THORN:"Þ",Uacute:"Ú",Ucirc:"Û",Ugrave:"Ù",Uuml:"Ü",Yacute:"Ý",aacute:"á",acirc:"â",acute:"´",aelig:"æ",agrave:"à",amp:"&",aring:"å",atilde:"ã",auml:"ä",brvbar:"¦",ccedil:"ç",cedil:"¸",cent:"¢",copy:"©",curren:"¤",deg:"°",divide:"÷",eacute:"é",ecirc:"ê",egrave:"è",eth:"ð",euml:"ë",frac12:"½",frac14:"¼",frac34:"¾",gt:">",iacute:"í",icirc:"î",iexcl:"¡",igrave:"ì",iquest:"¿",iuml:"ï",laquo:"«",lt:"<",macr:"¯",micro:"µ",middot:"·",nbsp:" ",not:"¬",ntilde:"ñ",oacute:"ó",ocirc:"ô",ograve:"ò",ordf:"ª",ordm:"º",oslash:"ø",otilde:"õ",ouml:"ö",para:"¶",plusmn:"±",pound:"£",quot:'"',raquo:"»",reg:"®",sect:"§",shy:"",sup1:"¹",sup2:"²",sup3:"³",szlig:"ß",thorn:"þ",times:"×",uacute:"ú",ucirc:"û",ugrave:"ù",uml:"¨",uuml:"ü",yacute:"ý",yen:"¥",yuml:"ÿ"},ou={0:"�",128:"€",130:"‚",131:"ƒ",132:"„",133:"…",134:"†",135:"‡",136:"ˆ",137:"‰",138:"Š",139:"‹",140:"Œ",142:"Ž",145:"‘",146:"’",147:"“",148:"”",149:"•",150:"–",151:"—",152:"˜",153:"™",154:"š",155:"›",156:"œ",158:"ž",159:"Ÿ"};function su(e){var t="string"==typeof e?e.charCodeAt(0):e;return t>=48&&t<=57}function cu(e){var t="string"==typeof e?e.charCodeAt(0):e;return t>=97&&t<=102||t>=65&&t<=70||t>=48&&t<=57}function uu(e){return function(e){var t="string"==typeof e?e.charCodeAt(0):e;return t>=97&&t<=122||t>=65&&t<=90}(e)||su(e)}var lu={}.hasOwnProperty,fu=String.fromCharCode,hu=[void 0,"Named character references must be terminated by a semicolon","Numeric character references must be terminated by a semicolon","Named character references cannot be empty","Numeric character references cannot be empty","Named character references must be known","Numeric character references cannot be disallowed","Numeric character references cannot be outside the permissible Unicode range"];function pu(e,t={}){var r,n,i,a,o,s,c,u,l,f,h,p,d,m,g,v,y,b,w,x,k,E,S,C="string"==typeof t.additional?t.additional.charCodeAt(0):t.additional,A=0,P=-1,_="",F=[];t.position&&("start"in t.position||"indent"in t.position?(n=t.position.indent,r=t.position.start):r=t.position),i=r&&r.line||1,a=r&&r.column||1,x=O(),A--;for(;++A<=e.length;)if(10===l&&(a=n&&n[P]||1),38===(l=e.charCodeAt(A))){if(9===(p=e.charCodeAt(A+1))||10===p||12===p||32===p||38===p||60===p||Number.isNaN(p)||C&&p===C){_+=fu(l),a++;continue}for(v=y=A+1,S=y,35===p?(S=++v,88===(p=e.charCodeAt(S))||120===p?(b="hexadecimal",S=++v):b="decimal"):b="named",o="",g="",u="",w="named"===b?uu:"decimal"===b?su:cu,S--;++S<=e.length&&w(p=e.charCodeAt(S));)u+=fu(p),"named"===b&&lu.call(au,u)&&(o=u,g=au[u]);(c=59===e.charCodeAt(S))&&(S++,(s="named"===b&&ia(u))&&(o=u,g=s)),E=1+S-y,(c||!1!==t.nonTerminated)&&(u?"named"===b?(c&&!g?D(5,1):(o!==u&&(E=1+(S=v+o.length)-v,c=!1),c||(d=o?1:3,t.attribute?61===(p=e.charCodeAt(S))?(D(d,E),g=null):uu(p)?g=null:D(d,E):D(d,E))),f=g):(c||D(2,E),du(h=Number.parseInt(u,"hexadecimal"===b?16:10))?(D(7,E),f=fu(65533)):h in ou?(D(6,E),f=ou[h]):(m="",mu(h)&&D(6,E),h>65535&&(m+=fu((h-=65536)>>>10|55296),h=56320|1023&h),f=m+fu(h))):"named"!==b&&D(4,E)),f?(I(),x=O(),A=S-1,a+=S-y+1,F.push(f),(k=O()).offset++,t.reference&&t.reference.call(t.referenceContext,f,{start:x,end:k},e.slice(y-1,S)),x=k):(u=e.slice(y-1,S),_+=u,a+=u.length,A=S-1)}else 10===l&&(i++,P++,a=0),Number.isNaN(l)?I():(_+=fu(l),a++);return F.join("");function O(){return{line:i,column:a,offset:A+(r&&r.offset||0)}}function D(e,r){var n;t.warning&&((n=O()).column+=r,n.offset+=r,t.warning.call(t.warningContext,hu[e],n,e))}function I(){_&&(F.push(_),t.text&&t.text.call(t.textContext,_,{start:x,end:O()}),_="")}}function du(e){return e>=55296&&e<=57343||e>1114111}function mu(e){return e>=1&&e<=8||11===e||e>=13&&e<=31||e>=127&&e<=159||e>=64976&&e<=65007||65535==(65535&e)||65534==(65535&e)}function gu(e,t){return e=e.replace(t.subset?function(e){var t=[],r=-1;for(;++r<e.length;)t.push(e[r].replace(/[|\\{}()[\]^$+*?.]/g,"\\$&"));return new RegExp("(?:"+t.join("|")+")","g")}(t.subset):/["&'<>`]/g,r),t.subset||t.escapeOnly?e:e.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,(function(e,r,n){return t.format(1024*(e.charCodeAt(0)-55296)+e.charCodeAt(1)-56320+65536,n.charCodeAt(r+2),t)})).replace(/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,r);function r(e,r,n){return t.format(e.charCodeAt(0),n.charCodeAt(r+1),t)}}function vu(e){return"&#x"+e.toString(16).toUpperCase()+";"}function yu(e){return"[33m"+e+"[39m"}const bu=function(e,t,r,n){"function"==typeof t&&"function"!=typeof r&&(n=r,r=t,t=null);const i=Wr(t),a=n?-1:1;!function e(o,s,c){const u="object"==typeof o&&null!==o?o:{};let l;"string"==typeof u.type&&(l="string"==typeof u.tagName?u.tagName:"string"==typeof u.name?u.name:void 0,Object.defineProperty(f,"name",{value:"node ("+yu(u.type+(l?"<"+l+">":""))+")"}));return f;function f(){let u,l,f,h=[];if((!t||i(o,s,c[c.length-1]||null))&&(h=function(e){if(Array.isArray(e))return e;if("number"==typeof e)return[true,e];return[e]}(r(o,c)),false===h[0]))return h;if(o.children&&"skip"!==h[0])for(l=(n?o.children.length:-1)+a,f=c.concat(o);l>-1&&l<o.children.length;){if(u=e(o.children[l],l,f)(),false===u[0])return u;l="number"==typeof u[1]?u[1]:l+a}return h}}(e,null,[])()};const wu={}.hasOwnProperty,xu=/^[^\t\n\r "#'.<=>`}]+$/;Tu.peek=function(){return":"};const ku={canContainEols:["textDirective"],enter:{directiveContainer:function(e){Su.call(this,"containerDirective",e)},directiveContainerAttributes:Au,directiveContainerLabel:function(e){this.enter({type:"paragraph",data:{directiveLabel:!0},children:[]},e)},directiveLeaf:function(e){Su.call(this,"leafDirective",e)},directiveLeafAttributes:Au,directiveText:function(e){Su.call(this,"textDirective",e)},directiveTextAttributes:Au},exit:{directiveContainer:Iu,directiveContainerAttributeClassValue:_u,directiveContainerAttributeIdValue:Pu,directiveContainerAttributeName:Ou,directiveContainerAttributeValue:Fu,directiveContainerAttributes:Du,directiveContainerLabel:function(e){this.exit(e)},directiveContainerName:Cu,directiveLeaf:Iu,directiveLeafAttributeClassValue:_u,directiveLeafAttributeIdValue:Pu,directiveLeafAttributeName:Ou,directiveLeafAttributeValue:Fu,directiveLeafAttributes:Du,directiveLeafName:Cu,directiveText:Iu,directiveTextAttributeClassValue:_u,directiveTextAttributeIdValue:Pu,directiveTextAttributeName:Ou,directiveTextAttributeValue:Fu,directiveTextAttributes:Du,directiveTextName:Cu}},Eu={unsafe:[{character:"\r",inConstruct:["leafDirectiveLabel","containerDirectiveLabel"]},{character:"\n",inConstruct:["leafDirectiveLabel","containerDirectiveLabel"]},{before:"[^:]",character:":",after:"[A-Za-z]",inConstruct:["phrasing"]},{atBreak:!0,character:":",after:":"}],handlers:{containerDirective:Tu,leafDirective:Tu,textDirective:Tu}};function Su(e,t){this.enter({type:e,name:"",attributes:{},children:[]},t)}function Cu(e){this.stack[this.stack.length-1].name=this.sliceSerialize(e)}function Au(){this.setData("directiveAttributes",[]),this.buffer()}function Pu(e){this.getData("directiveAttributes").push(["id",pu(this.sliceSerialize(e))])}function _u(e){this.getData("directiveAttributes").push(["class",pu(this.sliceSerialize(e))])}function Fu(e){const t=this.getData("directiveAttributes");t[t.length-1][1]=pu(this.sliceSerialize(e))}function Ou(e){this.getData("directiveAttributes").push([this.sliceSerialize(e),""])}function Du(){const e=this.getData("directiveAttributes"),t={};let r=-1;for(;++r<e.length;){const n=e[r];"class"===n[0]&&t.class?t.class+=" "+n[1]:t[n[0]]=n[1]}this.setData("directiveAttributes"),this.resume();this.stack[this.stack.length-1].attributes=t}function Iu(e){this.exit(e)}function Tu(e,t,r){const n=function(e){let t=0;"containerDirective"===e.type?(bu(e,"containerDirective",r),t+=3):t="leafDirective"===e.type?2:1;return":".repeat(t);function r(e,r){let n=r.length,i=0;for(;n--;)"containerDirective"===r[n].type&&i++;i>t&&(t=i)}}(e),i=r.enter(e.type);let a=n+(e.name||"")+function(e,t){let r=e;if("containerDirective"===e.type){const t=(e.children||[])[0];if(!ju(t))return"";r=t}const n=t.enter("label"),i=t.enter(e.type+"Label"),a=ls(r,t,{before:"[",after:"]"});return i(),n(),a?"["+a+"]":""}(e,r)+function(e,t){const r=nc(t),n="textDirective"===e.type?[r]:[r,"\n","\r"],i=e.attributes||{},a=[];let o,s,c,u;for(u in i)if(wu.call(i,u)&&void 0!==i[u]&&null!==i[u]){const e=String(i[u]);if("id"===u)c=xu.test(e)?"#"+e:l("id",e);else if("class"===u){const t=e.split(/[\t\n\r ]+/g),r=[],n=[];let i=-1;for(;++i<t.length;)(xu.test(t[i])?n:r).push(t[i]);o=r.length>0?l("class",r.join(" ")):"",s=n.length>0?"."+n.join("."):""}else a.push(l(u,e))}o&&a.unshift(o);s&&a.unshift(s);c&&a.unshift(c);return a.length>0?"{"+a.join(" ")+"}":"";function l(e,t){return e+(t?"="+r+function(e,t){return gu(e,Object.assign({format:vu},t))}(t,{subset:n})+r:"")}}(e,r);if("containerDirective"===e.type){const t=function(e,t){ju((e.children||[])[0])&&(e=Object.assign({},e,{children:e.children.slice(1)}));return Es(e,t)}(e,r);t&&(a+="\n"+t),a+="\n"+n}return i(),a}function ju(e){return Boolean(e&&"paragraph"===e.type&&e.data&&e.data.directiveLabel)}var Ru=oe(Object.freeze({__proto__:null,default:function(){const e=this.data();function t(t,r){(e[t]?e[t]:e[t]=[]).push(r)}t("micromarkExtensions",{text:{58:ru},flow:{58:[Kc,Xc]}}),t("fromMarkdownExtensions",ku),t("toMarkdownExtensions",Eu)}})),Lu=oe(Jr),qu={exports:{}},Mu=function(e,t){return function(){for(var r=new Array(arguments.length),n=0;n<r.length;n++)r[n]=arguments[n];return e.apply(t,r)}},Nu=Mu,zu=Object.prototype.toString;function Bu(e){return"[object Array]"===zu.call(e)}function $u(e){return void 0===e}function Uu(e){return null!==e&&"object"==typeof e}function Vu(e){if("[object Object]"!==zu.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function Hu(e){return"[object Function]"===zu.call(e)}function Qu(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),Bu(e))for(var r=0,n=e.length;r<n;r++)t.call(null,e[r],r,e);else for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.call(null,e[i],i,e)}var Gu={isArray:Bu,isArrayBuffer:function(e){return"[object ArrayBuffer]"===zu.call(e)},isBuffer:function(e){return null!==e&&!$u(e)&&null!==e.constructor&&!$u(e.constructor)&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)},isFormData:function(e){return"undefined"!=typeof FormData&&e instanceof FormData},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&e.buffer instanceof ArrayBuffer},isString:function(e){return"string"==typeof e},isNumber:function(e){return"number"==typeof e},isObject:Uu,isPlainObject:Vu,isUndefined:$u,isDate:function(e){return"[object Date]"===zu.call(e)},isFile:function(e){return"[object File]"===zu.call(e)},isBlob:function(e){return"[object Blob]"===zu.call(e)},isFunction:Hu,isStream:function(e){return Uu(e)&&Hu(e.pipe)},isURLSearchParams:function(e){return"undefined"!=typeof URLSearchParams&&e instanceof URLSearchParams},isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!=typeof window&&"undefined"!=typeof document)},forEach:Qu,merge:function e(){var t={};function r(r,n){Vu(t[n])&&Vu(r)?t[n]=e(t[n],r):Vu(r)?t[n]=e({},r):Bu(r)?t[n]=r.slice():t[n]=r}for(var n=0,i=arguments.length;n<i;n++)Qu(arguments[n],r);return t},extend:function(e,t,r){return Qu(t,(function(t,n){e[n]=r&&"function"==typeof t?Nu(t,r):t})),e},trim:function(e){return e.replace(/^\s*/,"").replace(/\s*$/,"")},stripBOM:function(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e}},Wu=Gu;function Ku(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var Yu=function(e,t,r){if(!t)return e;var n;if(r)n=r(t);else if(Wu.isURLSearchParams(t))n=t.toString();else{var i=[];Wu.forEach(t,(function(e,t){null!=e&&(Wu.isArray(e)?t+="[]":e=[e],Wu.forEach(e,(function(e){Wu.isDate(e)?e=e.toISOString():Wu.isObject(e)&&(e=JSON.stringify(e)),i.push(Ku(t)+"="+Ku(e))})))})),n=i.join("&")}if(n){var a=e.indexOf("#");-1!==a&&(e=e.slice(0,a)),e+=(-1===e.indexOf("?")?"?":"&")+n}return e},Ju=Gu;function Zu(){this.handlers=[]}Zu.prototype.use=function(e,t){return this.handlers.push({fulfilled:e,rejected:t}),this.handlers.length-1},Zu.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},Zu.prototype.forEach=function(e){Ju.forEach(this.handlers,(function(t){null!==t&&e(t)}))};var Xu=Zu,el=Gu,tl=function(e){return!(!e||!e.__CANCEL__)},rl=Gu,nl=function(e,t,r,n,i){return e.config=t,r&&(e.code=r),e.request=n,e.response=i,e.isAxiosError=!0,e.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},e},il=nl,al=function(e,t,r,n,i){var a=new Error(e);return il(a,t,r,n,i)},ol=al,sl=function(e,t,r){var n=r.config.validateStatus;r.status&&n&&!n(r.status)?t(ol("Request failed with status code "+r.status,r.config,null,r.request,r)):e(r)},cl=Gu,ul=cl.isStandardBrowserEnv()?{write:function(e,t,r,n,i,a){var o=[];o.push(e+"="+encodeURIComponent(t)),cl.isNumber(r)&&o.push("expires="+new Date(r).toGMTString()),cl.isString(n)&&o.push("path="+n),cl.isString(i)&&o.push("domain="+i),!0===a&&o.push("secure"),document.cookie=o.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}},ll=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)},fl=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e},hl=function(e,t){return e&&!ll(t)?fl(e,t):t},pl=Gu,dl=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"],ml=Gu,gl=ml.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");function n(e){var n=e;return t&&(r.setAttribute("href",n),n=r.href),r.setAttribute("href",n),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:"/"===r.pathname.charAt(0)?r.pathname:"/"+r.pathname}}return e=n(window.location.href),function(t){var r=ml.isString(t)?n(t):t;return r.protocol===e.protocol&&r.host===e.host}}():function(){return!0},vl=Gu,yl=sl,bl=ul,wl=Yu,xl=hl,kl=function(e){var t,r,n,i={};return e?(pl.forEach(e.split("\n"),(function(e){if(n=e.indexOf(":"),t=pl.trim(e.substr(0,n)).toLowerCase(),r=pl.trim(e.substr(n+1)),t){if(i[t]&&dl.indexOf(t)>=0)return;i[t]="set-cookie"===t?(i[t]?i[t]:[]).concat([r]):i[t]?i[t]+", "+r:r}})),i):i},El=gl,Sl=al,Cl=function(e){return new Promise((function(t,r){var n=e.data,i=e.headers;vl.isFormData(n)&&delete i["Content-Type"];var a=new XMLHttpRequest;if(e.auth){var o=e.auth.username||"",s=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";i.Authorization="Basic "+btoa(o+":"+s)}var c=xl(e.baseURL,e.url);if(a.open(e.method.toUpperCase(),wl(c,e.params,e.paramsSerializer),!0),a.timeout=e.timeout,a.onreadystatechange=function(){if(a&&4===a.readyState&&(0!==a.status||a.responseURL&&0===a.responseURL.indexOf("file:"))){var n="getAllResponseHeaders"in a?kl(a.getAllResponseHeaders()):null,i={data:e.responseType&&"text"!==e.responseType?a.response:a.responseText,status:a.status,statusText:a.statusText,headers:n,config:e,request:a};yl(t,r,i),a=null}},a.onabort=function(){a&&(r(Sl("Request aborted",e,"ECONNABORTED",a)),a=null)},a.onerror=function(){r(Sl("Network Error",e,null,a)),a=null},a.ontimeout=function(){var t="timeout of "+e.timeout+"ms exceeded";e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),r(Sl(t,e,"ECONNABORTED",a)),a=null},vl.isStandardBrowserEnv()){var u=(e.withCredentials||El(c))&&e.xsrfCookieName?bl.read(e.xsrfCookieName):void 0;u&&(i[e.xsrfHeaderName]=u)}if("setRequestHeader"in a&&vl.forEach(i,(function(e,t){void 0===n&&"content-type"===t.toLowerCase()?delete i[t]:a.setRequestHeader(t,e)})),vl.isUndefined(e.withCredentials)||(a.withCredentials=!!e.withCredentials),e.responseType)try{a.responseType=e.responseType}catch(t){if("json"!==e.responseType)throw t}"function"==typeof e.onDownloadProgress&&a.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&a.upload&&a.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then((function(e){a&&(a.abort(),r(e),a=null)})),n||(n=null),a.send(n)}))},Al={exports:{}},Pl={exports:{}},_l={exports:{}},Fl=1e3,Ol=60*Fl,Dl=60*Ol,Il=24*Dl,Tl=7*Il,jl=365.25*Il,Rl=function(e,t){t=t||{};var r=typeof e;if("string"===r&&e.length>0)return function(e){if((e=String(e)).length>100)return;var t=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(!t)return;var r=parseFloat(t[1]);switch((t[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return r*jl;case"weeks":case"week":case"w":return r*Tl;case"days":case"day":case"d":return r*Il;case"hours":case"hour":case"hrs":case"hr":case"h":return r*Dl;case"minutes":case"minute":case"mins":case"min":case"m":return r*Ol;case"seconds":case"second":case"secs":case"sec":case"s":return r*Fl;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}(e);if("number"===r&&isFinite(e))return t.long?function(e){var t=Math.abs(e);if(t>=Il)return Ll(e,t,Il,"day");if(t>=Dl)return Ll(e,t,Dl,"hour");if(t>=Ol)return Ll(e,t,Ol,"minute");if(t>=Fl)return Ll(e,t,Fl,"second");return e+" ms"}(e):function(e){var t=Math.abs(e);if(t>=Il)return Math.round(e/Il)+"d";if(t>=Dl)return Math.round(e/Dl)+"h";if(t>=Ol)return Math.round(e/Ol)+"m";if(t>=Fl)return Math.round(e/Fl)+"s";return e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function Ll(e,t,r,n){var i=t>=1.5*r;return Math.round(e/r)+" "+n+(i?"s":"")}var ql=function(e){function t(e){let n,i,a,o=null;function s(...e){if(!s.enabled)return;const r=s,i=Number(new Date),a=i-(n||i);r.diff=a,r.prev=n,r.curr=i,n=i,e[0]=t.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let o=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,((n,i)=>{if("%%"===n)return"%";o++;const a=t.formatters[i];if("function"==typeof a){const t=e[o];n=a.call(r,t),e.splice(o,1),o--}return n})),t.formatArgs.call(r,e);(r.log||t.log).apply(r,e)}return s.namespace=e,s.useColors=t.useColors(),s.color=t.selectColor(e),s.extend=r,s.destroy=t.destroy,Object.defineProperty(s,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==o?o:(i!==t.namespaces&&(i=t.namespaces,a=t.enabled(e)),a),set:e=>{o=e}}),"function"==typeof t.init&&t.init(s),s}function r(e,r){const n=t(this.namespace+(void 0===r?":":r)+e);return n.log=this.log,n}function n(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}return t.debug=t,t.default=t,t.coerce=function(e){if(e instanceof Error)return e.stack||e.message;return e},t.disable=function(){const e=[...t.names.map(n),...t.skips.map(n).map((e=>"-"+e))].join(",");return t.enable(""),e},t.enable=function(e){let r;t.save(e),t.namespaces=e,t.names=[],t.skips=[];const n=("string"==typeof e?e:"").split(/[\s,]+/),i=n.length;for(r=0;r<i;r++)n[r]&&("-"===(e=n[r].replace(/\*/g,".*?"))[0]?t.skips.push(new RegExp("^"+e.substr(1)+"$")):t.names.push(new RegExp("^"+e+"$")))},t.enabled=function(e){if("*"===e[e.length-1])return!0;let r,n;for(r=0,n=t.skips.length;r<n;r++)if(t.skips[r].test(e))return!1;for(r=0,n=t.names.length;r<n;r++)if(t.names[r].test(e))return!0;return!1},t.humanize=Rl,t.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(e).forEach((r=>{t[r]=e[r]})),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){let r=0;for(let t=0;t<e.length;t++)r=(r<<5)-r+e.charCodeAt(t),r|=0;return t.colors[Math.abs(r)%t.colors.length]},t.enable(t.load()),t};!function(e,t){t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const r="color: "+this.color;t.splice(1,0,r,"color: inherit");let n=0,i=0;t[0].replace(/%[a-zA-Z%]/g,(e=>{"%%"!==e&&(n++,"%c"===e&&(i=n))})),t.splice(i,0,r)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(e){}},t.load=function(){let e;try{e=t.storage.getItem("debug")}catch(e){}!e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG);return e},t.useColors=function(){if("undefined"!=typeof window&&window.process&&("renderer"===window.process.type||window.process.__nwjs))return!0;if("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;return"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},t.storage=function(){try{return localStorage}catch(e){}}(),t.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.log=console.debug||console.log||(()=>{}),e.exports=ql(t);const{formatters:r}=e.exports;r.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}}(_l,_l.exports);var Ml={exports:{}};const Nl=H.default,zl=(e,t)=>{t=t||process.argv;const r=e.startsWith("-")?"":1===e.length?"-":"--",n=t.indexOf(r+e),i=t.indexOf("--");return-1!==n&&(-1===i||n<i)},Bl=process.env;let $l;function Ul(e){return function(e){return 0!==e&&{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}(function(e){if(!1===$l)return 0;if(zl("color=16m")||zl("color=full")||zl("color=truecolor"))return 3;if(zl("color=256"))return 2;if(e&&!e.isTTY&&!0!==$l)return 0;const t=$l?1:0;if("win32"===process.platform){const e=Nl.release().split(".");return Number(process.versions.node.split(".")[0])>=8&&Number(e[0])>=10&&Number(e[2])>=10586?Number(e[2])>=14931?3:2:1}if("CI"in Bl)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some((e=>e in Bl))||"codeship"===Bl.CI_NAME?1:t;if("TEAMCITY_VERSION"in Bl)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(Bl.TEAMCITY_VERSION)?1:0;if("truecolor"===Bl.COLORTERM)return 3;if("TERM_PROGRAM"in Bl){const e=parseInt((Bl.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(Bl.TERM_PROGRAM){case"iTerm.app":return e>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(Bl.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(Bl.TERM)||"COLORTERM"in Bl?1:(Bl.TERM,t)}(e))}zl("no-color")||zl("no-colors")||zl("color=false")?$l=!1:(zl("color")||zl("colors")||zl("color=true")||zl("color=always"))&&($l=!0),"FORCE_COLOR"in Bl&&($l=0===Bl.FORCE_COLOR.length||0!==parseInt(Bl.FORCE_COLOR,10));var Vl,Hl={supportsColor:Ul,stdout:Ul(process.stdout),stderr:Ul(process.stderr)};!function(e,t){const r=U.default,n=V.default;t.init=function(e){e.inspectOpts={};const r=Object.keys(t.inspectOpts);for(let n=0;n<r.length;n++)e.inspectOpts[r[n]]=t.inspectOpts[r[n]]},t.log=function(...e){return process.stderr.write(n.format(...e)+"\n")},t.formatArgs=function(r){const{namespace:n,useColors:i}=this;if(i){const t=this.color,i="[3"+(t<8?t:"8;5;"+t),a=` ${i};1m${n} [0m`;r[0]=a+r[0].split("\n").join("\n"+a),r.push(i+"m+"+e.exports.humanize(this.diff)+"[0m")}else r[0]=function(){if(t.inspectOpts.hideDate)return"";return(new Date).toISOString()+" "}()+n+" "+r[0]},t.save=function(e){e?process.env.DEBUG=e:delete process.env.DEBUG},t.load=function(){return process.env.DEBUG},t.useColors=function(){return"colors"in t.inspectOpts?Boolean(t.inspectOpts.colors):r.isatty(process.stderr.fd)},t.destroy=n.deprecate((()=>{}),"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."),t.colors=[6,2,3,4,5,1];try{const e=Hl;e&&(e.stderr||e).level>=2&&(t.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221])}catch(e){}t.inspectOpts=Object.keys(process.env).filter((e=>/^debug_/i.test(e))).reduce(((e,t)=>{const r=t.substring(6).toLowerCase().replace(/_([a-z])/g,((e,t)=>t.toUpperCase()));let n=process.env[t];return n=!!/^(yes|on|true|enabled)$/i.test(n)||!/^(no|off|false|disabled)$/i.test(n)&&("null"===n?null:Number(n)),e[r]=n,e}),{}),e.exports=ql(t);const{formatters:i}=e.exports;i.o=function(e){return this.inspectOpts.colors=this.useColors,n.inspect(e,this.inspectOpts).split("\n").map((e=>e.trim())).join(" ")},i.O=function(e){return this.inspectOpts.colors=this.useColors,n.inspect(e,this.inspectOpts)}}(Ml,Ml.exports),"undefined"==typeof process||"renderer"===process.type||!0===process.browser||process.__nwjs?Pl.exports=_l.exports:Pl.exports=Ml.exports;var Ql=M.default,Gl=Ql.URL,Wl=z.default,Kl=B.default,Yl=$.default.Writable,Jl=N.default,Zl=function(){if(!Vl){try{Vl=Pl.exports("follow-redirects")}catch(e){}"function"!=typeof Vl&&(Vl=function(){})}Vl.apply(null,arguments)},Xl=["abort","aborted","connect","error","socket","timeout"],ef=Object.create(null);Xl.forEach((function(e){ef[e]=function(t,r,n){this._redirectable.emit(e,t,r,n)}}));var tf=ff("ERR_FR_REDIRECTION_FAILURE",""),rf=ff("ERR_FR_TOO_MANY_REDIRECTS","Maximum number of redirects exceeded"),nf=ff("ERR_FR_MAX_BODY_LENGTH_EXCEEDED","Request body larger than maxBodyLength limit"),af=ff("ERR_STREAM_WRITE_AFTER_END","write after end");function of(e,t){Yl.call(this),this._sanitizeOptions(e),this._options=e,this._ended=!1,this._ending=!1,this._redirectCount=0,this._redirects=[],this._requestBodyLength=0,this._requestBodyBuffers=[],t&&this.on("response",t);var r=this;this._onNativeResponse=function(e){r._processResponse(e)},this._performRequest()}function sf(e){var t={maxRedirects:21,maxBodyLength:10485760},r={};return Object.keys(e).forEach((function(n){var i=n+":",a=r[i]=e[n],o=t[n]=Object.create(a);Object.defineProperties(o,{request:{value:function(e,n,a){if("string"==typeof e){var o=e;try{e=uf(new Gl(o))}catch(t){e=Ql.parse(o)}}else Gl&&e instanceof Gl?e=uf(e):(a=n,n=e,e={protocol:i});return"function"==typeof n&&(a=n,n=null),(n=Object.assign({maxRedirects:t.maxRedirects,maxBodyLength:t.maxBodyLength},e,n)).nativeProtocols=r,Jl.equal(n.protocol,i,"protocol mismatch"),Zl("options",n),new of(n,a)},configurable:!0,enumerable:!0,writable:!0},get:{value:function(e,t,r){var n=o.request(e,t,r);return n.end(),n},configurable:!0,enumerable:!0,writable:!0}})})),t}function cf(){}function uf(e){var t={protocol:e.protocol,hostname:e.hostname.startsWith("[")?e.hostname.slice(1,-1):e.hostname,hash:e.hash,search:e.search,pathname:e.pathname,path:e.pathname+e.search,href:e.href};return""!==e.port&&(t.port=Number(e.port)),t}function lf(e,t){var r;for(var n in t)e.test(n)&&(r=t[n],delete t[n]);return r}function ff(e,t){function r(e){Error.captureStackTrace(this,this.constructor),this.message=e||t}return r.prototype=new Error,r.prototype.constructor=r,r.prototype.name="Error ["+e+"]",r.prototype.code=e,r}function hf(e){for(var t=0;t<Xl.length;t++)e.removeListener(Xl[t],ef[Xl[t]]);e.on("error",cf),e.abort()}of.prototype=Object.create(Yl.prototype),of.prototype.abort=function(){hf(this._currentRequest),this.emit("abort")},of.prototype.write=function(e,t,r){if(this._ending)throw new af;if(!("string"==typeof e||"object"==typeof e&&"length"in e))throw new TypeError("data should be a string, Buffer or Uint8Array");"function"==typeof t&&(r=t,t=null),0!==e.length?this._requestBodyLength+e.length<=this._options.maxBodyLength?(this._requestBodyLength+=e.length,this._requestBodyBuffers.push({data:e,encoding:t}),this._currentRequest.write(e,t,r)):(this.emit("error",new nf),this.abort()):r&&r()},of.prototype.end=function(e,t,r){if("function"==typeof e?(r=e,e=t=null):"function"==typeof t&&(r=t,t=null),e){var n=this,i=this._currentRequest;this.write(e,t,(function(){n._ended=!0,i.end(null,null,r)})),this._ending=!0}else this._ended=this._ending=!0,this._currentRequest.end(null,null,r)},of.prototype.setHeader=function(e,t){this._options.headers[e]=t,this._currentRequest.setHeader(e,t)},of.prototype.removeHeader=function(e){delete this._options.headers[e],this._currentRequest.removeHeader(e)},of.prototype.setTimeout=function(e,t){var r=this;function n(t){t.setTimeout(e),t.removeListener("timeout",t.destroy),t.addListener("timeout",t.destroy)}function i(t){r._timeout&&clearTimeout(r._timeout),r._timeout=setTimeout((function(){r.emit("timeout"),a()}),e),n(t)}function a(){clearTimeout(this._timeout),t&&r.removeListener("timeout",t),this.socket||r._currentRequest.removeListener("socket",i)}return t&&this.on("timeout",t),this.socket?i(this.socket):this._currentRequest.once("socket",i),this.on("socket",n),this.once("response",a),this.once("error",a),this},["flushHeaders","getHeader","setNoDelay","setSocketKeepAlive"].forEach((function(e){of.prototype[e]=function(t,r){return this._currentRequest[e](t,r)}})),["aborted","connection","socket"].forEach((function(e){Object.defineProperty(of.prototype,e,{get:function(){return this._currentRequest[e]}})})),of.prototype._sanitizeOptions=function(e){if(e.headers||(e.headers={}),e.host&&(e.hostname||(e.hostname=e.host),delete e.host),!e.pathname&&e.path){var t=e.path.indexOf("?");t<0?e.pathname=e.path:(e.pathname=e.path.substring(0,t),e.search=e.path.substring(t))}},of.prototype._performRequest=function(){var e=this._options.protocol,t=this._options.nativeProtocols[e];if(t){if(this._options.agents){var r=e.substr(0,e.length-1);this._options.agent=this._options.agents[r]}var n=this._currentRequest=t.request(this._options,this._onNativeResponse);this._currentUrl=Ql.format(this._options),n._redirectable=this;for(var i=0;i<Xl.length;i++)n.on(Xl[i],ef[Xl[i]]);if(this._isRedirect){var a=0,o=this,s=this._requestBodyBuffers;!function e(t){if(n===o._currentRequest)if(t)o.emit("error",t);else if(a<s.length){var r=s[a++];n.finished||n.write(r.data,r.encoding,e)}else o._ended&&n.end()}()}}else this.emit("error",new TypeError("Unsupported protocol "+e))},of.prototype._processResponse=function(e){var t=e.statusCode;this._options.trackRedirects&&this._redirects.push({url:this._currentUrl,headers:e.headers,statusCode:t});var r=e.headers.location;if(r&&!1!==this._options.followRedirects&&t>=300&&t<400){if(hf(this._currentRequest),e.destroy(),++this._redirectCount>this._options.maxRedirects)return void this.emit("error",new rf);((301===t||302===t)&&"POST"===this._options.method||303===t&&!/^(?:GET|HEAD)$/.test(this._options.method))&&(this._options.method="GET",this._requestBodyBuffers=[],lf(/^content-/i,this._options.headers));var n=lf(/^host$/i,this._options.headers)||Ql.parse(this._currentUrl).hostname,i=Ql.resolve(this._currentUrl,r);Zl("redirecting to",i),this._isRedirect=!0;var a=Ql.parse(i);if(Object.assign(this._options,a),a.hostname!==n&&lf(/^authorization$/i,this._options.headers),"function"==typeof this._options.beforeRedirect){var o={headers:e.headers};try{this._options.beforeRedirect.call(null,this._options,o)}catch(e){return void this.emit("error",e)}this._sanitizeOptions(this._options)}try{this._performRequest()}catch(e){var s=new tf("Redirected request failed: "+e.message);s.cause=e,this.emit("error",s)}}else e.responseUrl=this._currentUrl,e.redirects=this._redirects,this.emit("response",e),this._requestBodyBuffers=[]},Al.exports=sf({http:Wl,https:Kl}),Al.exports.wrap=sf;var pf={name:"axios",version:"0.21.1",description:"Promise based HTTP client for the browser and node.js",main:"index.js",scripts:{test:"grunt test && bundlesize",start:"node ./sandbox/server.js",build:"NODE_ENV=production grunt build",preversion:"npm test",version:"npm run build && grunt version && git add -A dist && git add CHANGELOG.md bower.json package.json",postversion:"git push && git push --tags",examples:"node ./examples/server.js",coveralls:"cat coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js",fix:"eslint --fix lib/**/*.js"},repository:{type:"git",url:"https://github.com/axios/axios.git"},keywords:["xhr","http","ajax","promise","node"],author:"Matt Zabriskie",license:"MIT",bugs:{url:"https://github.com/axios/axios/issues"},homepage:"https://github.com/axios/axios",devDependencies:{bundlesize:"^0.17.0",coveralls:"^3.0.0","es6-promise":"^4.2.4",grunt:"^1.0.2","grunt-banner":"^0.6.0","grunt-cli":"^1.2.0","grunt-contrib-clean":"^1.1.0","grunt-contrib-watch":"^1.0.0","grunt-eslint":"^20.1.0","grunt-karma":"^2.0.0","grunt-mocha-test":"^0.13.3","grunt-ts":"^6.0.0-beta.19","grunt-webpack":"^1.0.18","istanbul-instrumenter-loader":"^1.0.0","jasmine-core":"^2.4.1",karma:"^1.3.0","karma-chrome-launcher":"^2.2.0","karma-coverage":"^1.1.1","karma-firefox-launcher":"^1.1.0","karma-jasmine":"^1.1.1","karma-jasmine-ajax":"^0.1.13","karma-opera-launcher":"^1.0.0","karma-safari-launcher":"^1.0.0","karma-sauce-launcher":"^1.2.0","karma-sinon":"^1.0.5","karma-sourcemap-loader":"^0.3.7","karma-webpack":"^1.7.0","load-grunt-tasks":"^3.5.2",minimist:"^1.2.0",mocha:"^5.2.0",sinon:"^4.5.0",typescript:"^2.8.1","url-search-params":"^0.10.0",webpack:"^1.13.1","webpack-dev-server":"^1.14.1"},browser:{"./lib/adapters/http.js":"./lib/adapters/xhr.js"},jsdelivr:"dist/axios.min.js",unpkg:"dist/axios.min.js",typings:"./index.d.ts",dependencies:{"follow-redirects":"^1.10.0"},bundlesize:[{path:"./dist/axios.min.js",threshold:"5kB"}]},df=Gu,mf=sl,gf=hl,vf=Yu,yf=z.default,bf=B.default,wf=Al.exports.http,xf=Al.exports.https,kf=M.default,Ef=Q.default,Sf=pf,Cf=al,Af=nl,Pf=/https:?/;function _f(e,t,r){if(e.hostname=t.host,e.host=t.host,e.port=t.port,e.path=r,t.auth){var n=Buffer.from(t.auth.username+":"+t.auth.password,"utf8").toString("base64");e.headers["Proxy-Authorization"]="Basic "+n}e.beforeRedirect=function(e){e.headers.host=e.host,_f(e,t,e.href)}}var Ff=function(e){return new Promise((function(t,r){var n=function(e){t(e)},i=function(e){r(e)},a=e.data,o=e.headers;if(o["User-Agent"]||o["user-agent"]||(o["User-Agent"]="axios/"+Sf.version),a&&!df.isStream(a)){if(Buffer.isBuffer(a));else if(df.isArrayBuffer(a))a=Buffer.from(new Uint8Array(a));else{if(!df.isString(a))return i(Cf("Data after transformation must be a string, an ArrayBuffer, a Buffer, or a Stream",e));a=Buffer.from(a,"utf-8")}o["Content-Length"]=a.length}var s=void 0;e.auth&&(s=(e.auth.username||"")+":"+(e.auth.password||""));var c=gf(e.baseURL,e.url),u=kf.parse(c),l=u.protocol||"http:";if(!s&&u.auth){var f=u.auth.split(":");s=(f[0]||"")+":"+(f[1]||"")}s&&delete o.Authorization;var h=Pf.test(l),p=h?e.httpsAgent:e.httpAgent,d={path:vf(u.path,e.params,e.paramsSerializer).replace(/^\?/,""),method:e.method.toUpperCase(),headers:o,agent:p,agents:{http:e.httpAgent,https:e.httpsAgent},auth:s};e.socketPath?d.socketPath=e.socketPath:(d.hostname=u.hostname,d.port=u.port);var m,g=e.proxy;if(!g&&!1!==g){var v=l.slice(0,-1)+"_proxy",y=process.env[v]||process.env[v.toUpperCase()];if(y){var b=kf.parse(y),w=process.env.no_proxy||process.env.NO_PROXY,x=!0;if(w)x=!w.split(",").map((function(e){return e.trim()})).some((function(e){return!!e&&("*"===e||("."===e[0]&&u.hostname.substr(u.hostname.length-e.length)===e||u.hostname===e))}));if(x&&(g={host:b.hostname,port:b.port,protocol:b.protocol},b.auth)){var k=b.auth.split(":");g.auth={username:k[0],password:k[1]}}}}g&&(d.headers.host=u.hostname+(u.port?":"+u.port:""),_f(d,g,l+"//"+u.hostname+(u.port?":"+u.port:"")+d.path));var E=h&&(!g||Pf.test(g.protocol));e.transport?m=e.transport:0===e.maxRedirects?m=E?bf:yf:(e.maxRedirects&&(d.maxRedirects=e.maxRedirects),m=E?xf:wf),e.maxBodyLength>-1&&(d.maxBodyLength=e.maxBodyLength);var S=m.request(d,(function(t){if(!S.aborted){var r=t,a=t.req||S;if(204!==t.statusCode&&"HEAD"!==a.method&&!1!==e.decompress)switch(t.headers["content-encoding"]){case"gzip":case"compress":case"deflate":r=r.pipe(Ef.createUnzip()),delete t.headers["content-encoding"]}var o={status:t.statusCode,statusText:t.statusMessage,headers:t.headers,config:e,request:a};if("stream"===e.responseType)o.data=r,mf(n,i,o);else{var s=[];r.on("data",(function(t){s.push(t),e.maxContentLength>-1&&Buffer.concat(s).length>e.maxContentLength&&(r.destroy(),i(Cf("maxContentLength size of "+e.maxContentLength+" exceeded",e,null,a)))})),r.on("error",(function(t){S.aborted||i(Af(t,e,null,a))})),r.on("end",(function(){var t=Buffer.concat(s);"arraybuffer"!==e.responseType&&(t=t.toString(e.responseEncoding),e.responseEncoding&&"utf8"!==e.responseEncoding||(t=df.stripBOM(t))),o.data=t,mf(n,i,o)}))}}}));S.on("error",(function(t){S.aborted&&"ERR_FR_TOO_MANY_REDIRECTS"!==t.code||i(Af(t,e,null,S))})),e.timeout&&S.setTimeout(e.timeout,(function(){S.abort(),i(Cf("timeout of "+e.timeout+"ms exceeded",e,"ECONNABORTED",S))})),e.cancelToken&&e.cancelToken.promise.then((function(e){S.aborted||(S.abort(),i(e))})),df.isStream(a)?a.on("error",(function(t){i(Af(t,e,null,S))})).pipe(S):S.end(a)}))},Of=Gu,Df=function(e,t){rl.forEach(e,(function(r,n){n!==t&&n.toUpperCase()===t.toUpperCase()&&(e[t]=r,delete e[n])}))},If={"Content-Type":"application/x-www-form-urlencoded"};function Tf(e,t){!Of.isUndefined(e)&&Of.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var jf,Rf={adapter:("undefined"!=typeof XMLHttpRequest?jf=Cl:"undefined"!=typeof process&&"[object process]"===Object.prototype.toString.call(process)&&(jf=Ff),jf),transformRequest:[function(e,t){return Df(t,"Accept"),Df(t,"Content-Type"),Of.isFormData(e)||Of.isArrayBuffer(e)||Of.isBuffer(e)||Of.isStream(e)||Of.isFile(e)||Of.isBlob(e)?e:Of.isArrayBufferView(e)?e.buffer:Of.isURLSearchParams(e)?(Tf(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):Of.isObject(e)?(Tf(t,"application/json;charset=utf-8"),JSON.stringify(e)):e}],transformResponse:[function(e){if("string"==typeof e)try{e=JSON.parse(e)}catch(e){}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(e){return e>=200&&e<300}};Rf.headers={common:{Accept:"application/json, text/plain, */*"}},Of.forEach(["delete","get","head"],(function(e){Rf.headers[e]={}})),Of.forEach(["post","put","patch"],(function(e){Rf.headers[e]=Of.merge(If)}));var Lf=Rf,qf=Gu,Mf=function(e,t,r){return el.forEach(r,(function(r){e=r(e,t)})),e},Nf=tl,zf=Lf;function Bf(e){e.cancelToken&&e.cancelToken.throwIfRequested()}var $f=Gu,Uf=function(e,t){t=t||{};var r={},n=["url","method","data"],i=["headers","auth","proxy","params"],a=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],o=["validateStatus"];function s(e,t){return $f.isPlainObject(e)&&$f.isPlainObject(t)?$f.merge(e,t):$f.isPlainObject(t)?$f.merge({},t):$f.isArray(t)?t.slice():t}function c(n){$f.isUndefined(t[n])?$f.isUndefined(e[n])||(r[n]=s(void 0,e[n])):r[n]=s(e[n],t[n])}$f.forEach(n,(function(e){$f.isUndefined(t[e])||(r[e]=s(void 0,t[e]))})),$f.forEach(i,c),$f.forEach(a,(function(n){$f.isUndefined(t[n])?$f.isUndefined(e[n])||(r[n]=s(void 0,e[n])):r[n]=s(void 0,t[n])})),$f.forEach(o,(function(n){n in t?r[n]=s(e[n],t[n]):n in e&&(r[n]=s(void 0,e[n]))}));var u=n.concat(i).concat(a).concat(o),l=Object.keys(e).concat(Object.keys(t)).filter((function(e){return-1===u.indexOf(e)}));return $f.forEach(l,c),r},Vf=Gu,Hf=Yu,Qf=Xu,Gf=function(e){return Bf(e),e.headers=e.headers||{},e.data=Mf(e.data,e.headers,e.transformRequest),e.headers=qf.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),qf.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]})),(e.adapter||zf.adapter)(e).then((function(t){return Bf(e),t.data=Mf(t.data,t.headers,e.transformResponse),t}),(function(t){return Nf(t)||(Bf(e),t&&t.response&&(t.response.data=Mf(t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))},Wf=Uf;function Kf(e){this.defaults=e,this.interceptors={request:new Qf,response:new Qf}}Kf.prototype.request=function(e){"string"==typeof e?(e=arguments[1]||{}).url=arguments[0]:e=e||{},(e=Wf(this.defaults,e)).method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var t=[Gf,void 0],r=Promise.resolve(e);for(this.interceptors.request.forEach((function(e){t.unshift(e.fulfilled,e.rejected)})),this.interceptors.response.forEach((function(e){t.push(e.fulfilled,e.rejected)}));t.length;)r=r.then(t.shift(),t.shift());return r},Kf.prototype.getUri=function(e){return e=Wf(this.defaults,e),Hf(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},Vf.forEach(["delete","get","head","options"],(function(e){Kf.prototype[e]=function(t,r){return this.request(Wf(r||{},{method:e,url:t,data:(r||{}).data}))}})),Vf.forEach(["post","put","patch"],(function(e){Kf.prototype[e]=function(t,r,n){return this.request(Wf(n||{},{method:e,url:t,data:r}))}}));var Yf=Kf;function Jf(e){this.message=e}Jf.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},Jf.prototype.__CANCEL__=!0;var Zf=Jf,Xf=Zf;function eh(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var r=this;e((function(e){r.reason||(r.reason=new Xf(e),t(r.reason))}))}eh.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},eh.source=function(){var e;return{token:new eh((function(t){e=t})),cancel:e}};var th=eh,rh=Gu,nh=Mu,ih=Yf,ah=Uf;function oh(e){var t=new ih(e),r=nh(ih.prototype.request,t);return rh.extend(r,ih.prototype,t),rh.extend(r,t),r}var sh=oh(Lf);sh.Axios=ih,sh.create=function(e){return oh(ah(sh.defaults,e))},sh.Cancel=Zf,sh.CancelToken=th,sh.isCancel=tl,sh.all=function(e){return Promise.all(e)},sh.spread=function(e){return function(t){return e.apply(null,t)}},sh.isAxiosError=function(e){return"object"==typeof e&&!0===e.isAxiosError},qu.exports=sh,qu.exports.default=sh;var ch=qu.exports;!function(e){Object.defineProperty(e,"__esModule",{value:!0});var t=R.default,r=pr,n=_r.exports,i=Lr.exports,a=Ln,o=yi,s=po,c=Os,u=Ls,l=qs,f=lc,h=fc,p=hc,d=pc,m=dc,g=N.default,v=mc,y=gc,b=vc,w=yc,x=bc,k=wc,E=xc,S=kc,C=Ec,A=Sc,P=Pc,_=Hc,F=Ru,O=Lu,D=T.default,I=ch;function j(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var L=j(r),q=j(n),M=j(i),z=j(s),B=j(c),$=j(u),U=j(g),V=j(_),H=j(F),Q=j(D),G=j(I);function W(e){return"string"==typeof e&&e.startsWith("@encrypted:")}function K(e,t){return q.default.encrypt(e,t).toString()}function Y(e,t){try{return q.default.decrypt(e,t).toString(M.default)}catch{return""}}var J=Object.freeze({__proto__:null,encrypt:K,decrypt:Y});class Z{constructor(e,t,r){this.key=void 0,this.values=void 0,this.schema=void 0,this.values=e,this.schema=t,this.key=r}setKey(e){this.key=e}getValues(){return this.values}setValues(e){const r=new L.default({removeAdditional:!0,useDefaults:!0,allErrors:!0}).compile(this.schema);if(!r(e=t.cloneDeep(e)))for(const n of r.errors)e=t.omit(e,n.dataPath.substr(1).split("/"));this.values=e}getValue(e,r){return t.get(this.values,e,r)}setValue(e,r){return t.set(this.values,e,r)}toObject(){const e=new L.default({removeAdditional:!0,useDefaults:!0,allErrors:!0});e.removeKeyword("default"),e.addKeyword("default",{validate:(e,r,n,i,a,o,s)=>(t.isEqual(e,r)&&(delete a[o],t.isEmpty(a)&&function(e,r){const n=[];let i=e;for(let e=0;e<r.length-1;e++)n.push(i),i=i[r[e]];for(let e=r.length-2;e>=0;e--)t.isEmpty(n[e][r[e]])&&delete n[e][r[e]]}(s,t.toPath(i.substr(1)))),!0),modifying:!0,errors:!1}),e.addKeyword("encrypt",{validate:(e,r,n,i,a,o)=>(this.key&&e&&!W(r)&&a&&o&&t.set(a,o,`@encrypted:${K(r,this.key)}`),!0),modifying:!0,errors:!1});const r=e.compile(this.schema),n=t.cloneDeep(this.values);return r(n),n}static createFromObject(e,r,n){const i=new L.default({removeAdditional:!0,useDefaults:!0,allErrors:!0});i.addKeyword("encrypt",{validate:(e,r,i,a,o,s)=>(n&&e&&W(r)&&o&&s&&t.set(o,s,Y(r.substr(11),n)),!0),modifying:!0,errors:!1});const a=i.compile(r);if(!a(e))for(const r of a.errors)e=t.omit(e,r.dataPath.substr(1).split("/"));return new this(e,r,n)}}class X extends Z{constructor(...e){super(...e),this.pluginsConfig={}}getStructure(e){return this.getValue(["structure",e])}getPluginConfig(e,r){if(!this.pluginsConfig[e]){const n=this.getValue(["pluginsConfig",e],{});this.pluginsConfig[e]=Z.createFromObject(t.cloneDeep(n),r,`${this.key}:${e}`)}return this.pluginsConfig[e]}setPluginConfig(e,r){const n=r.toObject();t.isEmpty(n)?t.unset(this.values,["pluginsConfig",e]):this.setValue(["pluginsConfig",e],n),delete this.pluginsConfig[e]}static createFromObject(e){return super.createFromObject(e,X.schema)}}X.file="book.json",X.schema={title:"TopWrite Configuration",type:"object",properties:{root:{type:"string",title:"Path from the root folder containing the book's content"},title:{type:"string",title:"Title of the book"},author:{type:"object",title:"attr of the author",properties:{name:{type:"string"},email:{type:"string"},home:{type:"string"}}},theme:{type:"string",title:"Name of the theme",default:"default"},themeConfig:{type:"object",title:"Configuration for theme",properties:{defaultMode:{type:"string",title:"Default mode form theme",default:"light"},primaryColor:{type:"string",title:"Primary Color form theme",default:"#3c60ff"}},default:{}},plugins:{type:"array",items:{type:"string"},default:[]},pluginsConfig:{type:"object",title:"Configuration for plugins",default:{}},structure:{type:"object",properties:{langs:{default:"LANGS.md",type:"string",title:"File to use as languages index",pattern:"^[a-zA-Z-._\\d,\\s]+$"},readme:{default:"README.md",type:"string",title:"File to use as preface",pattern:"^[a-zA-Z-._\\d,\\s]+$"},summary:{default:"SUMMARY.md",type:"string",title:"File to use as table of contents",pattern:"^[a-zA-Z-._\\d,\\s]+$"}},default:{}},pdf:{type:"object",title:"PDF specific configurations",properties:{fontFamily:{type:"string",default:"Microsoft Yahei",title:"Font family for the PDF output"},margin:{type:"object",title:"Margins (unit: pt)",properties:{right:{type:"integer",title:"Right Margin",minimum:0,maximum:100,default:30},left:{type:"integer",title:"Left Margin",minimum:0,maximum:100,default:30},top:{type:"integer",title:"Top Margin",minimum:0,maximum:100,default:40},bottom:{type:"integer",title:"Bottom Margin",minimum:0,maximum:100,default:40}},default:{}},paperSize:{type:"string",enum:["a0","a1","a2","a3","a4","a5","a6","b0","b1","b2","b3","b4","b5","b6","legal","letter"],default:"a4",title:"Paper size for the PDF"},chapterMark:{type:"string",enum:["pagebreak","rule","both","none"],default:"pagebreak",title:"How to mark detected chapters"},pageBreaksBefore:{type:"string",default:"/",title:'An XPath expression. Page breaks are inserted before the specified elements. To disable use the expression: "/"'},pageNumbers:{type:"boolean",default:!0,title:"Add page numbers to the bottom of every page"}},default:{}}},required:[]};class ee{constructor(e=[]){this.data=void 0,this.data="string"==typeof e?e.split(".").map((e=>parseInt(e,10))):e}getParent(){return new ee(this.data.slice(0,-1))}createChild(e){return new ee(this.data.concat(e))}isDescendant(e){return e.toString().startsWith(`${this.toString()}.`)}getNext(){const e=[...this.data];return e[e.length-1]++,new ee(e)}getDepth(){return this.data.length-1}eq(e){return this.toString()===e.toString()}getLeafIndex(){return this.data[this.data.length-1]-1}toString(){return this.data.join(".")}static compare(e,t){for(let r=0;r<Math.max(e.data.length,t.data.length);r++){let n=e.data[r]||0,i=t.data[r]||0;if(n>i)return 1;if(i>n)return-1}return 0}}class te{constructor({title:e,ref:t,path:r,children:n=[]}){this.level=void 0,this.title=void 0,this.ref=void 0,this.path=void 0,this.children=void 0,this.title=e,this.ref=t,this.path=r,this.children=n,this.level=new ee}getLevel(){return this.level}getTitle(){return this.title}getRef(){return this.ref}getPath(){return this.path?this.path:this.ref}getArticles(){return this.children}getDepth(){return this.getLevel().getDepth()}createChildLevel(){return this.level.createChild(this.children.length+1)}indexLevels(e){e?this.level=e:e=this.level;for(const[t,r]of this.children.entries())r.indexLevels(e.createChild(t+1))}static findArticle(e,t){return e.getArticles().reduce(((e,r)=>e||(t(r)?r:te.findArticle(r,t))),void 0)}static createFromObject(e){const t=e.children.map((e=>te.createFromObject(e)));return new te({...e,children:t})}}class re{constructor(e,t=[]){this.level=void 0,this.title=void 0,this.articles=void 0,this.level=new ee,this.title=e,this.articles=t}getLevel(){return this.level}getTitle(){return this.title}getArticles(){return this.articles}createChildLevel(){return this.level.createChild(this.articles.length+1)}indexLevels(e){e?this.level=e:e=this.level;for(const[t,r]of this.articles.entries())r.indexLevels(e.createChild(t+1))}static createFormObject(e){return new re(e.title,e.articles.map((e=>te.createFromObject(e))))}}const ne={tokenize:function(e,t,r){function n(t){return t===d.codes.rightParenthesis?f(t):b.factoryDestination(e,i,r,p.types.resourceDestination,p.types.resourceDestinationLiteral,p.types.resourceDestinationLiteralMarker,p.types.resourceDestinationRaw,p.types.resourceDestinationString,m.constants.linkResourceDestinationBalanceMax)(t)}function i(t){return w.markdownLineEndingOrSpace(t)?y.factoryWhitespace(e,a)(t):f(t)}function a(t){return t===d.codes.quotationMark||t===d.codes.apostrophe||t===d.codes.leftParenthesis?k.factoryTitle(e,y.factoryWhitespace(e,o),r,p.types.resourceTitle,p.types.resourceTitleMarker,p.types.resourceTitleString)(t):o(t)}function o(t){return t===d.codes.equalsTo?(e.enter("resourceSize"),e.enter("resourceSizeMarker"),e.consume(t),e.exit("resourceSizeMarker"),s):f(t)}function s(t){return t===d.codes.lowercaseX?(e.enter("blockQuoteTypeMarker"),e.consume(t),e.exit("blockQuoteTypeMarker"),u):t===d.codes.rightParenthesis||w.markdownLineEndingOrSpace(t)?(e.exit("resourceSize"),y.factoryWhitespace(e,f)(t)):(e.enter("resourceSizeWidth"),e.enter(p.types.chunkString,{contentType:"string"}),c(t))}function c(t){return t===d.codes.rightParenthesis||w.markdownLineEndingOrSpace(t)?(e.exit(p.types.chunkString),e.exit("resourceSizeWidth"),e.exit("resourceSize"),y.factoryWhitespace(e,f)(t)):t===d.codes.lowercaseX?(e.exit(p.types.chunkString),e.exit("resourceSizeWidth"),e.enter("resourceSizeMarker"),e.consume(t),e.exit("resourceSizeMarker"),u):(e.consume(t),c)}function u(t){return t===d.codes.rightParenthesis||w.markdownLineEndingOrSpace(t)?(e.exit("resourceSize"),y.factoryWhitespace(e,f)(t)):(e.enter("resourceSizeHeight"),e.enter(p.types.chunkString,{contentType:"string"}),l(t))}function l(t){return t===d.codes.rightParenthesis||w.markdownLineEndingOrSpace(t)?(e.exit(p.types.chunkString),e.exit("resourceSizeHeight"),e.exit("resourceSize"),y.factoryWhitespace(e,f)(t)):(e.consume(t),l)}function f(n){return n===d.codes.rightParenthesis?(e.enter(p.types.resourceMarker),e.consume(n),e.exit(p.types.resourceMarker),e.exit(p.types.resource),t):r(n)}return function(t){return e.enter(p.types.resource),e.enter(p.types.resourceMarker),e.consume(t),e.exit(p.types.resourceMarker),y.factoryWhitespace(e,n)}}},ie={tokenize:function(e,t,r){const n=this;function i(e){return n.parser.defined.includes(v.normalizeIdentifier(n.sliceSerialize(n.events[n.events.length-1][1]).slice(1,-1)))?t(e):r(e)}return function(t){return U.default.strictEqual(t,d.codes.leftSquareBracket,"expected left bracket"),x.factoryLabel.call(n,e,i,r,p.types.reference,p.types.referenceMarker,p.types.referenceString)(t)}}},ae={tokenize:function(e,t,r){function n(n){return 93===n?(e.enter(p.types.referenceMarker),e.consume(n),e.exit(p.types.referenceMarker),e.exit(p.types.reference),t):r(n)}return function(t){return e.enter(p.types.reference),e.enter(p.types.referenceMarker),e.consume(t),e.exit(p.types.referenceMarker),n}}};var oe={name:"labelEnd",tokenize:function(e,t,r){const n=this;let i,a,o=n.events.length;for(;o--;)if((n.events[o][1].type===p.types.labelImage||n.events[o][1].type===p.types.labelLink)&&!n.events[o][1]._balanced){i=n.events[o][1];break}function s(e){return i._balanced=!0,r(e)}function c(r){return r===d.codes.leftParenthesis?e.attempt(ne,t,a?t:s)(r):r===d.codes.leftSquareBracket?e.attempt(ie,t,a?e.attempt(ae,t,s):s)(r):a?t(r):s(r)}return function(t){return U.default(t===d.codes.rightSquareBracket,"expected `]`"),i?i._inactive?s(t):(a=n.parser.defined.indexOf(v.normalizeIdentifier(n.sliceSerialize({start:i.end,end:n.now()})))>-1,e.enter(p.types.labelEnd),e.enter(p.types.labelMarker),e.consume(t),e.exit(p.types.labelMarker),e.exit(p.types.labelEnd),c):r(t)}},resolveTo:h.labelEnd.resolveTo,resolveAll:h.labelEnd.resolveAll};const se=(e,t,r)=>{const n=f.image(e,t,r);return e.width||e.height?n.replace(/\)$/,` =${e.width||""}${e.height?`x${e.height}`:""})`):n};se.peek=f.image.peek;const ce=e=>{let t;switch(e){case"right":t="--: ";break;case"center":t=":-: ";break;default:t=""}return t},ue={name:"blockQuote",tokenize:function(e,t,r){const n=this;return function(t){if(t===d.codes.greaterThan){const r=n.containerState;return U.default(r,"expected `containerState` to be defined in container"),r.open||(e.enter(p.types.blockQuote,{_container:!0}),r.open=!0),e.enter(p.types.blockQuotePrefix),e.enter(p.types.blockQuoteMarker),e.consume(t),e.exit(p.types.blockQuoteMarker),A.factorySpace(e,i,p.types.whitespace)}return r(t)};function i(t){return t===d.codes.leftSquareBracket?(e.enter("blockQuoteTypeMarker"),e.consume(t),e.exit("blockQuoteTypeMarker"),a):s(t)}function a(t){return t===d.codes.rightSquareBracket||w.markdownLineEndingOrSpace(t)?(e.enter("blockQuoteTypeMarker"),e.consume(t),e.exit("blockQuoteTypeMarker"),s):(e.enter("blockQuoteType"),e.enter(p.types.chunkString,{contentType:"string"}),o(t))}function o(t){return t===d.codes.rightSquareBracket||w.markdownLineEndingOrSpace(t)?(e.exit(p.types.chunkString),e.exit("blockQuoteType"),e.enter("blockQuoteTypeMarker"),e.consume(t),e.exit("blockQuoteTypeMarker"),s):(e.consume(t),o)}function s(r){return w.markdownSpace(r)?(e.enter(p.types.blockQuotePrefixWhitespace),e.consume(r),e.exit(p.types.blockQuotePrefixWhitespace),e.exit(p.types.blockQuotePrefix),t):(e.exit(p.types.blockQuotePrefix),t(r))}},continuation:{tokenize:function(e,t,r){return A.factorySpace(e,e.attempt(ue,t,r),p.types.linePrefix,this.parser.constructs.disable.null.includes("codeIndented")?void 0:m.constants.tabSize)}},exit:h.blockQuote.exit},le=e=>{let t="";return E.visit(e,"text",(function(e){t+=e.value})),t},fe=/^\[toc(?:=(\d)(?:,(\d))?)?]$/im,he=o.unified().use(z.default).use((function(){const e=this.data();e.micromarkExtensions=[],e.fromMarkdownExtensions=[],e.toMarkdownExtensions=[],e.toHastExtensions=[]})).use(H.default).use(V.default,["yaml"]).use(B.default).use($.default).use((function(){return this.data().toHastExtensions.push({xBlock:(e,t)=>e({},"x-block",{name:t.name,value:t.value,parameter:t.parameter}),xInline:(e,t)=>e({},"x-inline",{name:t.name,value:t.value})}),function(e){const t=(e,t,r)=>{if(null!==t&&null!==r)if("code"===e.type&&e.lang){const n=/\[([\w-_]+)(:([\w-_]+))?]/g.exec(e.lang);if(n){const i={type:"xBlock",name:n[1],parameter:n[3]||"",value:e.value,position:e.position};r.children.splice(t,1,i)}}else if("inlineCode"===e.type){const n=/^([^\s]+)\s(.*?)\s\1$/.exec(e.value);if(n){const i={type:"xInline",name:n[1],value:n[2],position:e.position};r.children.splice(t,1,i)}}};E.visit(e,"code",t),E.visit(e,"inlineCode",t)}})).use((function(){const e=this.data();e.micromarkExtensions.push({text:{[d.codes.rightSquareBracket]:oe}}),e.fromMarkdownExtensions.push({enter:{resourceSizeWidth:function(){this.buffer()},resourceSizeHeight:function(){this.buffer()}},exit:{resourceSizeWidth:function(){const e=this.resume();this.stack[this.stack.length-1].width=e},resourceSizeHeight:function(){const e=this.resume();this.stack[this.stack.length-1].height=e}}}),e.toMarkdownExtensions.push({handlers:{image:se}}),e.toHastExtensions.push({image:(e,t)=>{const r={src:l.encode(t.url),alt:t.alt};return null!==t.title&&void 0!==t.title&&(r.title=t.title),r.width=t.width,r.height=t.height,e(t,"img",r)}})})).use((function(){return this.data().toMarkdownExtensions.push({handlers:{paragraph:(e,t,r)=>{const n=S.paragraph(e,t,r);return ce(e.align)+n},heading:(e,t,r)=>C.heading(e,t,r).replace(/^#+\s/,`$&${ce(e.align)}`)}}),function(e){const t=(e,t,r)=>{const n=a.select("text",e);if(n){const t=n.value;t.startsWith("--: ")?e.align="right":t.startsWith(":-: ")?e.align="center":t.startsWith(":-- ")&&(e.align="left"),e.align&&(n.value=t.substr(4),r&&"listItem"===r.type?r.data={...r.data,hProperties:{className:`align-${e.align}`}}:e.data={...e.data,hProperties:{className:`align-${e.align}`}})}};E.visit(e,"paragraph",t),E.visit(e,"heading",t)}})).use((function(){const e=this.data();return e.toMarkdownExtensions.push({handlers:{blockquote:(e,t,r)=>{const n=P.blockquote(e,t,r);return e.variant?n.replace(/(^|\s+)>\s/,`$1> [${e.variant}] `):n}}}),e.micromarkExtensions.push({document:{[d.codes.greaterThan]:ue}}),e.fromMarkdownExtensions.push({enter:{blockQuoteType:function(){this.buffer()}},exit:{blockQuoteType:function(){const e=this.resume();this.stack[this.stack.length-1].variant=e}}}),function(e){E.visit(e,"blockquote",(e=>{e.variant&&(e.data={...e.data,hProperties:{className:e.variant}})}))}})).use((function(){return function(e){E.visit(e,((e,t,r)=>{if(r&&"root"===r.type&&null!==t&&le(e).match(fe))return r.children.splice(t,1),[E.SKIP,t]}))}}));function pe(e){const t=[];for(const r of e.children){const e=r.children,n=a.select("paragraph:first-child>*",r);if(!n)continue;const i=de.stringify(n);if(!i)continue;const o=n.url?decodeURI(n.url):void 0;if(o&&o.match(/[\\:*?"<>|]/))continue;let s={title:i,ref:o,children:[]};if(e.length>1){const t=e[e.length-1];O.is(t,"list")&&(s.children=pe(t))}t.push(s)}return t}const de=he().use((function(){this.Compiler=function(e){return le(e)}}));class me{constructor(e=[]){this.parts=void 0,this.parts=e,this.indexLevels()}getParts(){return this.parts}getPart(e){return this.parts[e]}getLastPart(){return this.parts[this.parts.length-1]}getArticles(){const e=[];return this.getArticle((t=>(e.push(t),!1))),e}getArticle(e){return this.parts.reduce(((t,r)=>t||te.findArticle(r,e)),void 0)}getByLevel(e){const t=t=>t.getLevel().eq(e);return this.parts.reduce(((e,r)=>e||(t(r)?r:te.findArticle(r,t))),void 0)}getFirstPath(){const e=this.getArticle((e=>!!e.getPath()));if(e)return e.getPath()}getNextArticle(e){const t=e instanceof te?e.getLevel():e;let r=!1;return this.getArticle((e=>!!r||(r=e.getLevel()==t,!1)))}getPrevArticle(e){const t=e instanceof te?e.getLevel():e;let r;return this.getArticle((e=>e.getLevel()==t||(r=e,!1))),r}getParent(e){const t=(e instanceof te?e.getLevel():e).getParent();if(t)return this.getByLevel(t)}indexLevels(){for(const[e,t]of this.parts.entries()){const r=new ee(String(e+1));t.indexLevels(r)}}static createFromObject(e){return new me(e.map((e=>re.createFormObject(e))))}static createFromText(e){const t=function(e){const t=de.parse(e),r=[];let n;for(const e of t.children)if(O.is(e,"heading")&&[2,3].includes(e.depth)&&(n&&r.push(n),n={title:de.stringify(e),articles:[]}),O.is(e,"list")){const t=pe(e);n?n.articles=n.articles.concat(t):n={title:"",articles:t}}return n?r.push(n):r.push({title:"",articles:[]}),r}(e);return me.createFromObject(t)}}class ge{constructor(e,t,r){this.flatColors=["#1abc9c","#2ecc71","#3498db","#9b59b6","#34495e","#16a085","#27ae60","#2980b9","#8e44ad","#2c3e50","#f1c40f","#e67e22","#e74c3c","#f39c12","#d35400","#c0392b"],this.letter=void 0,this.size=void 0,this.canvas=void 0,this.letter=e,this.size=t,this.canvas=r,this.generate()}toDataUrl(){return this.canvas.toDataURL()}generate(){const e=this.canvas.getContext("2d");if(!e)throw new Error("getContext failed");const t=this.letter[0].toUpperCase();e.fillStyle=this.flatColors[t.charCodeAt(0)%this.flatColors.length],e.fillRect(0,0,this.size,this.size),e.font=Math.round(this.size/2)+"px Roboto",e.textAlign="center",e.fillStyle="#FFFFFF",e.fillText(this.letter[0].toUpperCase(),this.size/2,this.size/1.5)}static create(e,t,r){return r||(r=function(e){const t=window.document.createElement("canvas");return t.width=e,t.height=e,t}(t)),new ge(e,t,r)}}const ve=/^(?:\w+:)?\/\/(\S+)$/,ye=/^localhost[\:?\d]*(?:[^\:?\d]\S*)?$/,be=/^[^\s\.]+\.\S{2,}$/;G.default.defaults.maxContentLength=1/0,G.default.defaults.maxBodyLength=1/0,Object.defineProperty(e,"request",{enumerable:!0,get:function(){return G.default}}),e.BaseConfig=Z,e.Book=class{constructor(e,t,r){this.id=void 0,this.summary=void 0,this._config=void 0,this.id=e,this.summary=r,this.config=t}get config(){return this._config}set config(e){e.setKey(`${this.id}:config`),this._config=e}},e.Config=X,e.File=class{constructor({path:e,content:t,meta:r={}}){this.path=void 0,this.content=void 0,this.meta=void 0,this.path=e,this.content=t,this.meta=r}getMeta(e,r){return t.get(this.meta,e,r)}relative(e){const t="/"===e.slice(-1);return(e=Q.default.posix.relative(Q.default.posix.dirname(this.path),e)||".")+(t?"/":"")}},e.LetterAvatar=ge,e.Level=ee,e.Summary=me,e.SummaryArticle=te,e.SummaryPart=re,e.aes=J,e.isEncryptedData=W,e.isUrl=function(e){const t=e.match(ve);if(!t)return!1;const r=t[1];return!!r&&(ye.test(r)||be.test(r))},e.markdown=he,e.validatePlugins=async function(e,t){const{config:r}=e,n=[`theme-${r.getValue("theme")}`,...r.getValue("plugins")];return(await G.default.get(`${t.host}/api/installed`,{params:{book:e.id,plugins:n.join(",")}}).catch((e=>{throw new Error("Plugins Check Failed:"+e.message)}))).data}}(se);class uh{name;path;hooks;config;constructor(e,t,r,n){this.name=e,this.path=t,this.hooks=r,this.config=n}getHook(e){return this.hooks[e]}getContext(e){return{...e,getConfig:()=>e.book.config.getPluginConfig(this.name,this.config)}}}async function lh(e,t){ne.info(`installing plugin "${e.name}"`);const r=`npm install ${e.host}.tgz`,{error:n}=G.default.sync(r,{stdio:["inherit"],cwd:t,shell:!0});if(n)throw n;const i=T.default.join(t,"node_modules","topwrite-plugin-"+e.name),a=T.default.join(i,"dist","hooks.js");let o={};if(W.existsSync(a)){o=new y.NodeVM({require:{builtin:["path"]}}).runFile(a)}const s=T.default.join(i,"config.json");let c={};return W.existsSync(s)&&(c=require(s)),ne.info(`plugin "${e.name}@${e.version}" installed with success`),new uh(e.name,i,o,c)}
|
|
9
|
-
/*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT */
|
|
10
|
-
function fh(e){return null==e}var hh={isNothing:fh,isObject:function(e){return"object"==typeof e&&null!==e},toArray:function(e){return Array.isArray(e)?e:fh(e)?[]:[e]},repeat:function(e,t){var r,n="";for(r=0;r<t;r+=1)n+=e;return n},isNegativeZero:function(e){return 0===e&&Number.NEGATIVE_INFINITY===1/e},extend:function(e,t){var r,n,i,a;if(t)for(r=0,n=(a=Object.keys(t)).length;r<n;r+=1)e[i=a[r]]=t[i];return e}};function ph(e,t){var r="",n=e.reason||"(unknown reason)";return e.mark?(e.mark.name&&(r+='in "'+e.mark.name+'" '),r+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")",!t&&e.mark.snippet&&(r+="\n\n"+e.mark.snippet),n+" "+r):n}function dh(e,t){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=t,this.message=ph(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack||""}dh.prototype=Object.create(Error.prototype),dh.prototype.constructor=dh,dh.prototype.toString=function(e){return this.name+": "+ph(this,e)};var mh=dh;function gh(e,t,r,n,i){var a="",o="",s=Math.floor(i/2)-1;return n-t>s&&(t=n-s+(a=" ... ").length),r-n>s&&(r=n+s-(o=" ...").length),{str:a+e.slice(t,r).replace(/\t/g,"→")+o,pos:n-t+a.length}}function vh(e,t){return hh.repeat(" ",t-e.length)+e}var yh=function(e,t){if(t=Object.create(t||null),!e.buffer)return null;t.maxLength||(t.maxLength=79),"number"!=typeof t.indent&&(t.indent=1),"number"!=typeof t.linesBefore&&(t.linesBefore=3),"number"!=typeof t.linesAfter&&(t.linesAfter=2);for(var r,n=/\r?\n|\r|\0/g,i=[0],a=[],o=-1;r=n.exec(e.buffer);)a.push(r.index),i.push(r.index+r[0].length),e.position<=r.index&&o<0&&(o=i.length-2);o<0&&(o=i.length-1);var s,c,u="",l=Math.min(e.line+t.linesAfter,a.length).toString().length,f=t.maxLength-(t.indent+l+3);for(s=1;s<=t.linesBefore&&!(o-s<0);s++)c=gh(e.buffer,i[o-s],a[o-s],e.position-(i[o]-i[o-s]),f),u=hh.repeat(" ",t.indent)+vh((e.line-s+1).toString(),l)+" | "+c.str+"\n"+u;for(c=gh(e.buffer,i[o],a[o],e.position,f),u+=hh.repeat(" ",t.indent)+vh((e.line+1).toString(),l)+" | "+c.str+"\n",u+=hh.repeat("-",t.indent+l+3+c.pos)+"^\n",s=1;s<=t.linesAfter&&!(o+s>=a.length);s++)c=gh(e.buffer,i[o+s],a[o+s],e.position-(i[o]-i[o+s]),f),u+=hh.repeat(" ",t.indent)+vh((e.line+s+1).toString(),l)+" | "+c.str+"\n";return u.replace(/\n$/,"")},bh=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],wh=["scalar","sequence","mapping"];var xh=function(e,t){if(t=t||{},Object.keys(t).forEach((function(t){if(-1===bh.indexOf(t))throw new mh('Unknown option "'+t+'" is met in definition of "'+e+'" YAML type.')})),this.options=t,this.tag=e,this.kind=t.kind||null,this.resolve=t.resolve||function(){return!0},this.construct=t.construct||function(e){return e},this.instanceOf=t.instanceOf||null,this.predicate=t.predicate||null,this.represent=t.represent||null,this.representName=t.representName||null,this.defaultStyle=t.defaultStyle||null,this.multi=t.multi||!1,this.styleAliases=function(e){var t={};return null!==e&&Object.keys(e).forEach((function(r){e[r].forEach((function(e){t[String(e)]=r}))})),t}(t.styleAliases||null),-1===wh.indexOf(this.kind))throw new mh('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')};function kh(e,t){var r=[];return e[t].forEach((function(e){var t=r.length;r.forEach((function(r,n){r.tag===e.tag&&r.kind===e.kind&&r.multi===e.multi&&(t=n)})),r[t]=e})),r}function Eh(e){return this.extend(e)}Eh.prototype.extend=function(e){var t=[],r=[];if(e instanceof xh)r.push(e);else if(Array.isArray(e))r=r.concat(e);else{if(!e||!Array.isArray(e.implicit)&&!Array.isArray(e.explicit))throw new mh("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");e.implicit&&(t=t.concat(e.implicit)),e.explicit&&(r=r.concat(e.explicit))}t.forEach((function(e){if(!(e instanceof xh))throw new mh("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(e.loadKind&&"scalar"!==e.loadKind)throw new mh("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(e.multi)throw new mh("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")})),r.forEach((function(e){if(!(e instanceof xh))throw new mh("Specified list of YAML types (or a single Type object) contains a non-Type object.")}));var n=Object.create(Eh.prototype);return n.implicit=(this.implicit||[]).concat(t),n.explicit=(this.explicit||[]).concat(r),n.compiledImplicit=kh(n,"implicit"),n.compiledExplicit=kh(n,"explicit"),n.compiledTypeMap=function(){var e,t,r={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}};function n(e){e.multi?(r.multi[e.kind].push(e),r.multi.fallback.push(e)):r[e.kind][e.tag]=r.fallback[e.tag]=e}for(e=0,t=arguments.length;e<t;e+=1)arguments[e].forEach(n);return r}(n.compiledImplicit,n.compiledExplicit),n};var Sh=Eh,Ch=new xh("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return null!==e?e:""}}),Ah=new xh("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return null!==e?e:[]}}),Ph=new xh("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return null!==e?e:{}}}),_h=new Sh({explicit:[Ch,Ah,Ph]});var Fh=new xh("tag:yaml.org,2002:null",{kind:"scalar",resolve:function(e){if(null===e)return!0;var t=e.length;return 1===t&&"~"===e||4===t&&("null"===e||"Null"===e||"NULL"===e)},construct:function(){return null},predicate:function(e){return null===e},represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"});var Oh=new xh("tag:yaml.org,2002:bool",{kind:"scalar",resolve:function(e){if(null===e)return!1;var t=e.length;return 4===t&&("true"===e||"True"===e||"TRUE"===e)||5===t&&("false"===e||"False"===e||"FALSE"===e)},construct:function(e){return"true"===e||"True"===e||"TRUE"===e},predicate:function(e){return"[object Boolean]"===Object.prototype.toString.call(e)},represent:{lowercase:function(e){return e?"true":"false"},uppercase:function(e){return e?"TRUE":"FALSE"},camelcase:function(e){return e?"True":"False"}},defaultStyle:"lowercase"});function Dh(e){return 48<=e&&e<=55}function Ih(e){return 48<=e&&e<=57}var Th=new xh("tag:yaml.org,2002:int",{kind:"scalar",resolve:function(e){if(null===e)return!1;var t,r,n=e.length,i=0,a=!1;if(!n)return!1;if("-"!==(t=e[i])&&"+"!==t||(t=e[++i]),"0"===t){if(i+1===n)return!0;if("b"===(t=e[++i])){for(i++;i<n;i++)if("_"!==(t=e[i])){if("0"!==t&&"1"!==t)return!1;a=!0}return a&&"_"!==t}if("x"===t){for(i++;i<n;i++)if("_"!==(t=e[i])){if(!(48<=(r=e.charCodeAt(i))&&r<=57||65<=r&&r<=70||97<=r&&r<=102))return!1;a=!0}return a&&"_"!==t}if("o"===t){for(i++;i<n;i++)if("_"!==(t=e[i])){if(!Dh(e.charCodeAt(i)))return!1;a=!0}return a&&"_"!==t}}if("_"===t)return!1;for(;i<n;i++)if("_"!==(t=e[i])){if(!Ih(e.charCodeAt(i)))return!1;a=!0}return!(!a||"_"===t)},construct:function(e){var t,r=e,n=1;if(-1!==r.indexOf("_")&&(r=r.replace(/_/g,"")),"-"!==(t=r[0])&&"+"!==t||("-"===t&&(n=-1),t=(r=r.slice(1))[0]),"0"===r)return 0;if("0"===t){if("b"===r[1])return n*parseInt(r.slice(2),2);if("x"===r[1])return n*parseInt(r.slice(2),16);if("o"===r[1])return n*parseInt(r.slice(2),8)}return n*parseInt(r,10)},predicate:function(e){return"[object Number]"===Object.prototype.toString.call(e)&&e%1==0&&!hh.isNegativeZero(e)},represent:{binary:function(e){return e>=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0o"+e.toString(8):"-0o"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),jh=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");var Rh=/^[-+]?[0-9]+e/;var Lh=new xh("tag:yaml.org,2002:float",{kind:"scalar",resolve:function(e){return null!==e&&!(!jh.test(e)||"_"===e[e.length-1])},construct:function(e){var t,r;return r="-"===(t=e.replace(/_/g,"").toLowerCase())[0]?-1:1,"+-".indexOf(t[0])>=0&&(t=t.slice(1)),".inf"===t?1===r?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:".nan"===t?NaN:r*parseFloat(t,10)},predicate:function(e){return"[object Number]"===Object.prototype.toString.call(e)&&(e%1!=0||hh.isNegativeZero(e))},represent:function(e,t){var r;if(isNaN(e))switch(t){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(t){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(t){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(hh.isNegativeZero(e))return"-0.0";return r=e.toString(10),Rh.test(r)?r.replace("e",".e"):r},defaultStyle:"lowercase"}),qh=_h.extend({implicit:[Fh,Oh,Th,Lh]}),Mh=qh,Nh=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),zh=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");var Bh=new xh("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:function(e){return null!==e&&(null!==Nh.exec(e)||null!==zh.exec(e))},construct:function(e){var t,r,n,i,a,o,s,c,u=0,l=null;if(null===(t=Nh.exec(e))&&(t=zh.exec(e)),null===t)throw new Error("Date resolve error");if(r=+t[1],n=+t[2]-1,i=+t[3],!t[4])return new Date(Date.UTC(r,n,i));if(a=+t[4],o=+t[5],s=+t[6],t[7]){for(u=t[7].slice(0,3);u.length<3;)u+="0";u=+u}return t[9]&&(l=6e4*(60*+t[10]+ +(t[11]||0)),"-"===t[9]&&(l=-l)),c=new Date(Date.UTC(r,n,i,a,o,s,u)),l&&c.setTime(c.getTime()-l),c},instanceOf:Date,represent:function(e){return e.toISOString()}});var $h=new xh("tag:yaml.org,2002:merge",{kind:"scalar",resolve:function(e){return"<<"===e||null===e}}),Uh="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r";var Vh=new xh("tag:yaml.org,2002:binary",{kind:"scalar",resolve:function(e){if(null===e)return!1;var t,r,n=0,i=e.length,a=Uh;for(r=0;r<i;r++)if(!((t=a.indexOf(e.charAt(r)))>64)){if(t<0)return!1;n+=6}return n%8==0},construct:function(e){var t,r,n=e.replace(/[\r\n=]/g,""),i=n.length,a=Uh,o=0,s=[];for(t=0;t<i;t++)t%4==0&&t&&(s.push(o>>16&255),s.push(o>>8&255),s.push(255&o)),o=o<<6|a.indexOf(n.charAt(t));return 0===(r=i%4*6)?(s.push(o>>16&255),s.push(o>>8&255),s.push(255&o)):18===r?(s.push(o>>10&255),s.push(o>>2&255)):12===r&&s.push(o>>4&255),new Uint8Array(s)},predicate:function(e){return"[object Uint8Array]"===Object.prototype.toString.call(e)},represent:function(e){var t,r,n="",i=0,a=e.length,o=Uh;for(t=0;t<a;t++)t%3==0&&t&&(n+=o[i>>18&63],n+=o[i>>12&63],n+=o[i>>6&63],n+=o[63&i]),i=(i<<8)+e[t];return 0===(r=a%3)?(n+=o[i>>18&63],n+=o[i>>12&63],n+=o[i>>6&63],n+=o[63&i]):2===r?(n+=o[i>>10&63],n+=o[i>>4&63],n+=o[i<<2&63],n+=o[64]):1===r&&(n+=o[i>>2&63],n+=o[i<<4&63],n+=o[64],n+=o[64]),n}}),Hh=Object.prototype.hasOwnProperty,Qh=Object.prototype.toString;var Gh=new xh("tag:yaml.org,2002:omap",{kind:"sequence",resolve:function(e){if(null===e)return!0;var t,r,n,i,a,o=[],s=e;for(t=0,r=s.length;t<r;t+=1){if(n=s[t],a=!1,"[object Object]"!==Qh.call(n))return!1;for(i in n)if(Hh.call(n,i)){if(a)return!1;a=!0}if(!a)return!1;if(-1!==o.indexOf(i))return!1;o.push(i)}return!0},construct:function(e){return null!==e?e:[]}}),Wh=Object.prototype.toString;var Kh=new xh("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:function(e){if(null===e)return!0;var t,r,n,i,a,o=e;for(a=new Array(o.length),t=0,r=o.length;t<r;t+=1){if(n=o[t],"[object Object]"!==Wh.call(n))return!1;if(1!==(i=Object.keys(n)).length)return!1;a[t]=[i[0],n[i[0]]]}return!0},construct:function(e){if(null===e)return[];var t,r,n,i,a,o=e;for(a=new Array(o.length),t=0,r=o.length;t<r;t+=1)n=o[t],i=Object.keys(n),a[t]=[i[0],n[i[0]]];return a}}),Yh=Object.prototype.hasOwnProperty;var Jh=new xh("tag:yaml.org,2002:set",{kind:"mapping",resolve:function(e){if(null===e)return!0;var t,r=e;for(t in r)if(Yh.call(r,t)&&null!==r[t])return!1;return!0},construct:function(e){return null!==e?e:{}}}),Zh=Mh.extend({implicit:[Bh,$h],explicit:[Vh,Gh,Kh,Jh]}),Xh=Object.prototype.hasOwnProperty,ep=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,tp=/[\x85\u2028\u2029]/,rp=/[,\[\]\{\}]/,np=/^(?:!|!!|![a-z\-]+!)$/i,ip=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function ap(e){return Object.prototype.toString.call(e)}function op(e){return 10===e||13===e}function sp(e){return 9===e||32===e}function cp(e){return 9===e||32===e||10===e||13===e}function up(e){return 44===e||91===e||93===e||123===e||125===e}function lp(e){var t;return 48<=e&&e<=57?e-48:97<=(t=32|e)&&t<=102?t-97+10:-1}function fp(e){return 48===e?"\0":97===e?"":98===e?"\b":116===e||9===e?"\t":110===e?"\n":118===e?"\v":102===e?"\f":114===e?"\r":101===e?"":32===e?" ":34===e?'"':47===e?"/":92===e?"\\":78===e?"
":95===e?" ":76===e?"\u2028":80===e?"\u2029":""}function hp(e){return e<=65535?String.fromCharCode(e):String.fromCharCode(55296+(e-65536>>10),56320+(e-65536&1023))}for(var pp=new Array(256),dp=new Array(256),mp=0;mp<256;mp++)pp[mp]=fp(mp)?1:0,dp[mp]=fp(mp);function gp(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||Zh,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,this.listener=t.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function vp(e,t){var r={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return r.snippet=yh(r),new mh(t,r)}function yp(e,t){throw vp(e,t)}function bp(e,t){e.onWarning&&e.onWarning.call(null,vp(e,t))}var wp={YAML:function(e,t,r){var n,i,a;null!==e.version&&yp(e,"duplication of %YAML directive"),1!==r.length&&yp(e,"YAML directive accepts exactly one argument"),null===(n=/^([0-9]+)\.([0-9]+)$/.exec(r[0]))&&yp(e,"ill-formed argument of the YAML directive"),i=parseInt(n[1],10),a=parseInt(n[2],10),1!==i&&yp(e,"unacceptable YAML version of the document"),e.version=r[0],e.checkLineBreaks=a<2,1!==a&&2!==a&&bp(e,"unsupported YAML version of the document")},TAG:function(e,t,r){var n,i;2!==r.length&&yp(e,"TAG directive accepts exactly two arguments"),n=r[0],i=r[1],np.test(n)||yp(e,"ill-formed tag handle (first argument) of the TAG directive"),Xh.call(e.tagMap,n)&&yp(e,'there is a previously declared suffix for "'+n+'" tag handle'),ip.test(i)||yp(e,"ill-formed tag prefix (second argument) of the TAG directive");try{i=decodeURIComponent(i)}catch(t){yp(e,"tag prefix is malformed: "+i)}e.tagMap[n]=i}};function xp(e,t,r,n){var i,a,o,s;if(t<r){if(s=e.input.slice(t,r),n)for(i=0,a=s.length;i<a;i+=1)9===(o=s.charCodeAt(i))||32<=o&&o<=1114111||yp(e,"expected valid JSON character");else ep.test(s)&&yp(e,"the stream contains non-printable characters");e.result+=s}}function kp(e,t,r,n){var i,a,o,s;for(hh.isObject(r)||yp(e,"cannot merge mappings; the provided source object is unacceptable"),o=0,s=(i=Object.keys(r)).length;o<s;o+=1)a=i[o],Xh.call(t,a)||(t[a]=r[a],n[a]=!0)}function Ep(e,t,r,n,i,a,o,s,c){var u,l;if(Array.isArray(i))for(u=0,l=(i=Array.prototype.slice.call(i)).length;u<l;u+=1)Array.isArray(i[u])&&yp(e,"nested arrays are not supported inside keys"),"object"==typeof i&&"[object Object]"===ap(i[u])&&(i[u]="[object Object]");if("object"==typeof i&&"[object Object]"===ap(i)&&(i="[object Object]"),i=String(i),null===t&&(t={}),"tag:yaml.org,2002:merge"===n)if(Array.isArray(a))for(u=0,l=a.length;u<l;u+=1)kp(e,t,a[u],r);else kp(e,t,a,r);else e.json||Xh.call(r,i)||!Xh.call(t,i)||(e.line=o||e.line,e.lineStart=s||e.lineStart,e.position=c||e.position,yp(e,"duplicated mapping key")),"__proto__"===i?Object.defineProperty(t,i,{configurable:!0,enumerable:!0,writable:!0,value:a}):t[i]=a,delete r[i];return t}function Sp(e){var t;10===(t=e.input.charCodeAt(e.position))?e.position++:13===t?(e.position++,10===e.input.charCodeAt(e.position)&&e.position++):yp(e,"a line break is expected"),e.line+=1,e.lineStart=e.position,e.firstTabInLine=-1}function Cp(e,t,r){for(var n=0,i=e.input.charCodeAt(e.position);0!==i;){for(;sp(i);)9===i&&-1===e.firstTabInLine&&(e.firstTabInLine=e.position),i=e.input.charCodeAt(++e.position);if(t&&35===i)do{i=e.input.charCodeAt(++e.position)}while(10!==i&&13!==i&&0!==i);if(!op(i))break;for(Sp(e),i=e.input.charCodeAt(e.position),n++,e.lineIndent=0;32===i;)e.lineIndent++,i=e.input.charCodeAt(++e.position)}return-1!==r&&0!==n&&e.lineIndent<r&&bp(e,"deficient indentation"),n}function Ap(e){var t,r=e.position;return!(45!==(t=e.input.charCodeAt(r))&&46!==t||t!==e.input.charCodeAt(r+1)||t!==e.input.charCodeAt(r+2)||(r+=3,0!==(t=e.input.charCodeAt(r))&&!cp(t)))}function Pp(e,t){1===t?e.result+=" ":t>1&&(e.result+=hh.repeat("\n",t-1))}function _p(e,t){var r,n,i=e.tag,a=e.anchor,o=[],s=!1;if(-1!==e.firstTabInLine)return!1;for(null!==e.anchor&&(e.anchorMap[e.anchor]=o),n=e.input.charCodeAt(e.position);0!==n&&(-1!==e.firstTabInLine&&(e.position=e.firstTabInLine,yp(e,"tab characters must not be used in indentation")),45===n)&&cp(e.input.charCodeAt(e.position+1));)if(s=!0,e.position++,Cp(e,!0,-1)&&e.lineIndent<=t)o.push(null),n=e.input.charCodeAt(e.position);else if(r=e.line,Dp(e,t,3,!1,!0),o.push(e.result),Cp(e,!0,-1),n=e.input.charCodeAt(e.position),(e.line===r||e.lineIndent>t)&&0!==n)yp(e,"bad indentation of a sequence entry");else if(e.lineIndent<t)break;return!!s&&(e.tag=i,e.anchor=a,e.kind="sequence",e.result=o,!0)}function Fp(e){var t,r,n,i,a=!1,o=!1;if(33!==(i=e.input.charCodeAt(e.position)))return!1;if(null!==e.tag&&yp(e,"duplication of a tag property"),60===(i=e.input.charCodeAt(++e.position))?(a=!0,i=e.input.charCodeAt(++e.position)):33===i?(o=!0,r="!!",i=e.input.charCodeAt(++e.position)):r="!",t=e.position,a){do{i=e.input.charCodeAt(++e.position)}while(0!==i&&62!==i);e.position<e.length?(n=e.input.slice(t,e.position),i=e.input.charCodeAt(++e.position)):yp(e,"unexpected end of the stream within a verbatim tag")}else{for(;0!==i&&!cp(i);)33===i&&(o?yp(e,"tag suffix cannot contain exclamation marks"):(r=e.input.slice(t-1,e.position+1),np.test(r)||yp(e,"named tag handle cannot contain such characters"),o=!0,t=e.position+1)),i=e.input.charCodeAt(++e.position);n=e.input.slice(t,e.position),rp.test(n)&&yp(e,"tag suffix cannot contain flow indicator characters")}n&&!ip.test(n)&&yp(e,"tag name cannot contain such characters: "+n);try{n=decodeURIComponent(n)}catch(t){yp(e,"tag name is malformed: "+n)}return a?e.tag=n:Xh.call(e.tagMap,r)?e.tag=e.tagMap[r]+n:"!"===r?e.tag="!"+n:"!!"===r?e.tag="tag:yaml.org,2002:"+n:yp(e,'undeclared tag handle "'+r+'"'),!0}function Op(e){var t,r;if(38!==(r=e.input.charCodeAt(e.position)))return!1;for(null!==e.anchor&&yp(e,"duplication of an anchor property"),r=e.input.charCodeAt(++e.position),t=e.position;0!==r&&!cp(r)&&!up(r);)r=e.input.charCodeAt(++e.position);return e.position===t&&yp(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(t,e.position),!0}function Dp(e,t,r,n,i){var a,o,s,c,u,l,f,h,p,d=1,m=!1,g=!1;if(null!==e.listener&&e.listener("open",e),e.tag=null,e.anchor=null,e.kind=null,e.result=null,a=o=s=4===r||3===r,n&&Cp(e,!0,-1)&&(m=!0,e.lineIndent>t?d=1:e.lineIndent===t?d=0:e.lineIndent<t&&(d=-1)),1===d)for(;Fp(e)||Op(e);)Cp(e,!0,-1)?(m=!0,s=a,e.lineIndent>t?d=1:e.lineIndent===t?d=0:e.lineIndent<t&&(d=-1)):s=!1;if(s&&(s=m||i),1!==d&&4!==r||(h=1===r||2===r?t:t+1,p=e.position-e.lineStart,1===d?s&&(_p(e,p)||function(e,t,r){var n,i,a,o,s,c,u,l=e.tag,f=e.anchor,h={},p=Object.create(null),d=null,m=null,g=null,v=!1,y=!1;if(-1!==e.firstTabInLine)return!1;for(null!==e.anchor&&(e.anchorMap[e.anchor]=h),u=e.input.charCodeAt(e.position);0!==u;){if(v||-1===e.firstTabInLine||(e.position=e.firstTabInLine,yp(e,"tab characters must not be used in indentation")),n=e.input.charCodeAt(e.position+1),a=e.line,63!==u&&58!==u||!cp(n)){if(o=e.line,s=e.lineStart,c=e.position,!Dp(e,r,2,!1,!0))break;if(e.line===a){for(u=e.input.charCodeAt(e.position);sp(u);)u=e.input.charCodeAt(++e.position);if(58===u)cp(u=e.input.charCodeAt(++e.position))||yp(e,"a whitespace character is expected after the key-value separator within a block mapping"),v&&(Ep(e,h,p,d,m,null,o,s,c),d=m=g=null),y=!0,v=!1,i=!1,d=e.tag,m=e.result;else{if(!y)return e.tag=l,e.anchor=f,!0;yp(e,"can not read an implicit mapping pair; a colon is missed")}}else{if(!y)return e.tag=l,e.anchor=f,!0;yp(e,"can not read a block mapping entry; a multiline key may not be an implicit key")}}else 63===u?(v&&(Ep(e,h,p,d,m,null,o,s,c),d=m=g=null),y=!0,v=!0,i=!0):v?(v=!1,i=!0):yp(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),e.position+=1,u=n;if((e.line===a||e.lineIndent>t)&&(v&&(o=e.line,s=e.lineStart,c=e.position),Dp(e,t,4,!0,i)&&(v?m=e.result:g=e.result),v||(Ep(e,h,p,d,m,g,o,s,c),d=m=g=null),Cp(e,!0,-1),u=e.input.charCodeAt(e.position)),(e.line===a||e.lineIndent>t)&&0!==u)yp(e,"bad indentation of a mapping entry");else if(e.lineIndent<t)break}return v&&Ep(e,h,p,d,m,null,o,s,c),y&&(e.tag=l,e.anchor=f,e.kind="mapping",e.result=h),y}(e,p,h))||function(e,t){var r,n,i,a,o,s,c,u,l,f,h,p,d=!0,m=e.tag,g=e.anchor,v=Object.create(null);if(91===(p=e.input.charCodeAt(e.position)))o=93,u=!1,a=[];else{if(123!==p)return!1;o=125,u=!0,a={}}for(null!==e.anchor&&(e.anchorMap[e.anchor]=a),p=e.input.charCodeAt(++e.position);0!==p;){if(Cp(e,!0,t),(p=e.input.charCodeAt(e.position))===o)return e.position++,e.tag=m,e.anchor=g,e.kind=u?"mapping":"sequence",e.result=a,!0;d?44===p&&yp(e,"expected the node content, but found ','"):yp(e,"missed comma between flow collection entries"),h=null,s=c=!1,63===p&&cp(e.input.charCodeAt(e.position+1))&&(s=c=!0,e.position++,Cp(e,!0,t)),r=e.line,n=e.lineStart,i=e.position,Dp(e,t,1,!1,!0),f=e.tag,l=e.result,Cp(e,!0,t),p=e.input.charCodeAt(e.position),!c&&e.line!==r||58!==p||(s=!0,p=e.input.charCodeAt(++e.position),Cp(e,!0,t),Dp(e,t,1,!1,!0),h=e.result),u?Ep(e,a,v,f,l,h,r,n,i):s?a.push(Ep(e,null,v,f,l,h,r,n,i)):a.push(l),Cp(e,!0,t),44===(p=e.input.charCodeAt(e.position))?(d=!0,p=e.input.charCodeAt(++e.position)):d=!1}yp(e,"unexpected end of the stream within a flow collection")}(e,h)?g=!0:(o&&function(e,t){var r,n,i,a,o,s=1,c=!1,u=!1,l=t,f=0,h=!1;if(124===(a=e.input.charCodeAt(e.position)))n=!1;else{if(62!==a)return!1;n=!0}for(e.kind="scalar",e.result="";0!==a;)if(43===(a=e.input.charCodeAt(++e.position))||45===a)1===s?s=43===a?3:2:yp(e,"repeat of a chomping mode identifier");else{if(!((i=48<=(o=a)&&o<=57?o-48:-1)>=0))break;0===i?yp(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):u?yp(e,"repeat of an indentation width identifier"):(l=t+i-1,u=!0)}if(sp(a)){do{a=e.input.charCodeAt(++e.position)}while(sp(a));if(35===a)do{a=e.input.charCodeAt(++e.position)}while(!op(a)&&0!==a)}for(;0!==a;){for(Sp(e),e.lineIndent=0,a=e.input.charCodeAt(e.position);(!u||e.lineIndent<l)&&32===a;)e.lineIndent++,a=e.input.charCodeAt(++e.position);if(!u&&e.lineIndent>l&&(l=e.lineIndent),op(a))f++;else{if(e.lineIndent<l){3===s?e.result+=hh.repeat("\n",c?1+f:f):1===s&&c&&(e.result+="\n");break}for(n?sp(a)?(h=!0,e.result+=hh.repeat("\n",c?1+f:f)):h?(h=!1,e.result+=hh.repeat("\n",f+1)):0===f?c&&(e.result+=" "):e.result+=hh.repeat("\n",f):e.result+=hh.repeat("\n",c?1+f:f),c=!0,u=!0,f=0,r=e.position;!op(a)&&0!==a;)a=e.input.charCodeAt(++e.position);xp(e,r,e.position,!1)}}return!0}(e,h)||function(e,t){var r,n,i;if(39!==(r=e.input.charCodeAt(e.position)))return!1;for(e.kind="scalar",e.result="",e.position++,n=i=e.position;0!==(r=e.input.charCodeAt(e.position));)if(39===r){if(xp(e,n,e.position,!0),39!==(r=e.input.charCodeAt(++e.position)))return!0;n=e.position,e.position++,i=e.position}else op(r)?(xp(e,n,i,!0),Pp(e,Cp(e,!1,t)),n=i=e.position):e.position===e.lineStart&&Ap(e)?yp(e,"unexpected end of the document within a single quoted scalar"):(e.position++,i=e.position);yp(e,"unexpected end of the stream within a single quoted scalar")}(e,h)||function(e,t){var r,n,i,a,o,s,c;if(34!==(s=e.input.charCodeAt(e.position)))return!1;for(e.kind="scalar",e.result="",e.position++,r=n=e.position;0!==(s=e.input.charCodeAt(e.position));){if(34===s)return xp(e,r,e.position,!0),e.position++,!0;if(92===s){if(xp(e,r,e.position,!0),op(s=e.input.charCodeAt(++e.position)))Cp(e,!1,t);else if(s<256&&pp[s])e.result+=dp[s],e.position++;else if((o=120===(c=s)?2:117===c?4:85===c?8:0)>0){for(i=o,a=0;i>0;i--)(o=lp(s=e.input.charCodeAt(++e.position)))>=0?a=(a<<4)+o:yp(e,"expected hexadecimal character");e.result+=hp(a),e.position++}else yp(e,"unknown escape sequence");r=n=e.position}else op(s)?(xp(e,r,n,!0),Pp(e,Cp(e,!1,t)),r=n=e.position):e.position===e.lineStart&&Ap(e)?yp(e,"unexpected end of the document within a double quoted scalar"):(e.position++,n=e.position)}yp(e,"unexpected end of the stream within a double quoted scalar")}(e,h)?g=!0:!function(e){var t,r,n;if(42!==(n=e.input.charCodeAt(e.position)))return!1;for(n=e.input.charCodeAt(++e.position),t=e.position;0!==n&&!cp(n)&&!up(n);)n=e.input.charCodeAt(++e.position);return e.position===t&&yp(e,"name of an alias node must contain at least one character"),r=e.input.slice(t,e.position),Xh.call(e.anchorMap,r)||yp(e,'unidentified alias "'+r+'"'),e.result=e.anchorMap[r],Cp(e,!0,-1),!0}(e)?function(e,t,r){var n,i,a,o,s,c,u,l,f=e.kind,h=e.result;if(cp(l=e.input.charCodeAt(e.position))||up(l)||35===l||38===l||42===l||33===l||124===l||62===l||39===l||34===l||37===l||64===l||96===l)return!1;if((63===l||45===l)&&(cp(n=e.input.charCodeAt(e.position+1))||r&&up(n)))return!1;for(e.kind="scalar",e.result="",i=a=e.position,o=!1;0!==l;){if(58===l){if(cp(n=e.input.charCodeAt(e.position+1))||r&&up(n))break}else if(35===l){if(cp(e.input.charCodeAt(e.position-1)))break}else{if(e.position===e.lineStart&&Ap(e)||r&&up(l))break;if(op(l)){if(s=e.line,c=e.lineStart,u=e.lineIndent,Cp(e,!1,-1),e.lineIndent>=t){o=!0,l=e.input.charCodeAt(e.position);continue}e.position=a,e.line=s,e.lineStart=c,e.lineIndent=u;break}}o&&(xp(e,i,a,!1),Pp(e,e.line-s),i=a=e.position,o=!1),sp(l)||(a=e.position+1),l=e.input.charCodeAt(++e.position)}return xp(e,i,a,!1),!!e.result||(e.kind=f,e.result=h,!1)}(e,h,1===r)&&(g=!0,null===e.tag&&(e.tag="?")):(g=!0,null===e.tag&&null===e.anchor||yp(e,"alias node should not have any properties")),null!==e.anchor&&(e.anchorMap[e.anchor]=e.result)):0===d&&(g=s&&_p(e,p))),null===e.tag)null!==e.anchor&&(e.anchorMap[e.anchor]=e.result);else if("?"===e.tag){for(null!==e.result&&"scalar"!==e.kind&&yp(e,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+e.kind+'"'),c=0,u=e.implicitTypes.length;c<u;c+=1)if((f=e.implicitTypes[c]).resolve(e.result)){e.result=f.construct(e.result),e.tag=f.tag,null!==e.anchor&&(e.anchorMap[e.anchor]=e.result);break}}else if("!"!==e.tag){if(Xh.call(e.typeMap[e.kind||"fallback"],e.tag))f=e.typeMap[e.kind||"fallback"][e.tag];else for(f=null,c=0,u=(l=e.typeMap.multi[e.kind||"fallback"]).length;c<u;c+=1)if(e.tag.slice(0,l[c].tag.length)===l[c].tag){f=l[c];break}f||yp(e,"unknown tag !<"+e.tag+">"),null!==e.result&&f.kind!==e.kind&&yp(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+f.kind+'", not "'+e.kind+'"'),f.resolve(e.result,e.tag)?(e.result=f.construct(e.result,e.tag),null!==e.anchor&&(e.anchorMap[e.anchor]=e.result)):yp(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}return null!==e.listener&&e.listener("close",e),null!==e.tag||null!==e.anchor||g}function Ip(e){var t,r,n,i,a=e.position,o=!1;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);0!==(i=e.input.charCodeAt(e.position))&&(Cp(e,!0,-1),i=e.input.charCodeAt(e.position),!(e.lineIndent>0||37!==i));){for(o=!0,i=e.input.charCodeAt(++e.position),t=e.position;0!==i&&!cp(i);)i=e.input.charCodeAt(++e.position);for(n=[],(r=e.input.slice(t,e.position)).length<1&&yp(e,"directive name must not be less than one character in length");0!==i;){for(;sp(i);)i=e.input.charCodeAt(++e.position);if(35===i){do{i=e.input.charCodeAt(++e.position)}while(0!==i&&!op(i));break}if(op(i))break;for(t=e.position;0!==i&&!cp(i);)i=e.input.charCodeAt(++e.position);n.push(e.input.slice(t,e.position))}0!==i&&Sp(e),Xh.call(wp,r)?wp[r](e,r,n):bp(e,'unknown document directive "'+r+'"')}Cp(e,!0,-1),0===e.lineIndent&&45===e.input.charCodeAt(e.position)&&45===e.input.charCodeAt(e.position+1)&&45===e.input.charCodeAt(e.position+2)?(e.position+=3,Cp(e,!0,-1)):o&&yp(e,"directives end mark is expected"),Dp(e,e.lineIndent-1,4,!1,!0),Cp(e,!0,-1),e.checkLineBreaks&&tp.test(e.input.slice(a,e.position))&&bp(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&Ap(e)?46===e.input.charCodeAt(e.position)&&(e.position+=3,Cp(e,!0,-1)):e.position<e.length-1&&yp(e,"end of the stream or a document separator is expected")}function Tp(e,t){t=t||{},0!==(e=String(e)).length&&(10!==e.charCodeAt(e.length-1)&&13!==e.charCodeAt(e.length-1)&&(e+="\n"),65279===e.charCodeAt(0)&&(e=e.slice(1)));var r=new gp(e,t),n=e.indexOf("\0");for(-1!==n&&(r.position=n,yp(r,"null byte is not allowed in input")),r.input+="\0";32===r.input.charCodeAt(r.position);)r.lineIndent+=1,r.position+=1;for(;r.position<r.length-1;)Ip(r);return r.documents}var jp={loadAll:function(e,t,r){null!==t&&"object"==typeof t&&void 0===r&&(r=t,t=null);var n=Tp(e,r);if("function"!=typeof t)return n;for(var i=0,a=n.length;i<a;i+=1)t(n[i])},load:function(e,t){var r=Tp(e,t);if(0!==r.length){if(1===r.length)return r[0];throw new mh("expected a single document in the stream, but found more")}}},Rp=Object.prototype.toString,Lp=Object.prototype.hasOwnProperty,qp={0:"\\0",7:"\\a",8:"\\b",9:"\\t",10:"\\n",11:"\\v",12:"\\f",13:"\\r",27:"\\e",34:'\\"',92:"\\\\",133:"\\N",160:"\\_",8232:"\\L",8233:"\\P"},Mp=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],Np=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function zp(e){var t,r,n;if(t=e.toString(16).toUpperCase(),e<=255)r="x",n=2;else if(e<=65535)r="u",n=4;else{if(!(e<=4294967295))throw new mh("code point within a string may not be greater than 0xFFFFFFFF");r="U",n=8}return"\\"+r+hh.repeat("0",n-t.length)+t}function Bp(e){this.schema=e.schema||Zh,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=hh.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=function(e,t){var r,n,i,a,o,s,c;if(null===t)return{};for(r={},i=0,a=(n=Object.keys(t)).length;i<a;i+=1)o=n[i],s=String(t[o]),"!!"===o.slice(0,2)&&(o="tag:yaml.org,2002:"+o.slice(2)),(c=e.compiledTypeMap.fallback[o])&&Lp.call(c.styleAliases,s)&&(s=c.styleAliases[s]),r[o]=s;return r}(this.schema,e.styles||null),this.sortKeys=e.sortKeys||!1,this.lineWidth=e.lineWidth||80,this.noRefs=e.noRefs||!1,this.noCompatMode=e.noCompatMode||!1,this.condenseFlow=e.condenseFlow||!1,this.quotingType='"'===e.quotingType?2:1,this.forceQuotes=e.forceQuotes||!1,this.replacer="function"==typeof e.replacer?e.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function $p(e,t){for(var r,n=hh.repeat(" ",t),i=0,a=-1,o="",s=e.length;i<s;)-1===(a=e.indexOf("\n",i))?(r=e.slice(i),i=s):(r=e.slice(i,a+1),i=a+1),r.length&&"\n"!==r&&(o+=n),o+=r;return o}function Up(e,t){return"\n"+hh.repeat(" ",e.indent*t)}function Vp(e){return 32===e||9===e}function Hp(e){return 32<=e&&e<=126||161<=e&&e<=55295&&8232!==e&&8233!==e||57344<=e&&e<=65533&&65279!==e||65536<=e&&e<=1114111}function Qp(e){return Hp(e)&&65279!==e&&13!==e&&10!==e}function Gp(e,t,r){var n=Qp(e),i=n&&!Vp(e);return(r?n:n&&44!==e&&91!==e&&93!==e&&123!==e&&125!==e)&&35!==e&&!(58===t&&!i)||Qp(t)&&!Vp(t)&&35===e||58===t&&i}function Wp(e,t){var r,n=e.charCodeAt(t);return n>=55296&&n<=56319&&t+1<e.length&&(r=e.charCodeAt(t+1))>=56320&&r<=57343?1024*(n-55296)+r-56320+65536:n}function Kp(e){return/^\n* /.test(e)}function Yp(e,t,r,n,i,a,o,s){var c,u,l=0,f=null,h=!1,p=!1,d=-1!==n,m=-1,g=Hp(u=Wp(e,0))&&65279!==u&&!Vp(u)&&45!==u&&63!==u&&58!==u&&44!==u&&91!==u&&93!==u&&123!==u&&125!==u&&35!==u&&38!==u&&42!==u&&33!==u&&124!==u&&61!==u&&62!==u&&39!==u&&34!==u&&37!==u&&64!==u&&96!==u&&function(e){return!Vp(e)&&58!==e}(Wp(e,e.length-1));if(t||o)for(c=0;c<e.length;l>=65536?c+=2:c++){if(!Hp(l=Wp(e,c)))return 5;g=g&&Gp(l,f,s),f=l}else{for(c=0;c<e.length;l>=65536?c+=2:c++){if(10===(l=Wp(e,c)))h=!0,d&&(p=p||c-m-1>n&&" "!==e[m+1],m=c);else if(!Hp(l))return 5;g=g&&Gp(l,f,s),f=l}p=p||d&&c-m-1>n&&" "!==e[m+1]}return h||p?r>9&&Kp(e)?5:o?2===a?5:2:p?4:3:!g||o||i(e)?2===a?5:2:1}function Jp(e,t,r,n,i){e.dump=function(){if(0===t.length)return 2===e.quotingType?'""':"''";if(!e.noCompatMode&&(-1!==Mp.indexOf(t)||Np.test(t)))return 2===e.quotingType?'"'+t+'"':"'"+t+"'";var a=e.indent*Math.max(1,r),o=-1===e.lineWidth?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-a),s=n||e.flowLevel>-1&&r>=e.flowLevel;switch(Yp(t,s,e.indent,o,(function(t){return function(e,t){var r,n;for(r=0,n=e.implicitTypes.length;r<n;r+=1)if(e.implicitTypes[r].resolve(t))return!0;return!1}(e,t)}),e.quotingType,e.forceQuotes&&!n,i)){case 1:return t;case 2:return"'"+t.replace(/'/g,"''")+"'";case 3:return"|"+Zp(t,e.indent)+Xp($p(t,a));case 4:return">"+Zp(t,e.indent)+Xp($p(function(e,t){var r,n,i=/(\n+)([^\n]*)/g,a=(s=e.indexOf("\n"),s=-1!==s?s:e.length,i.lastIndex=s,ed(e.slice(0,s),t)),o="\n"===e[0]||" "===e[0];var s;for(;n=i.exec(e);){var c=n[1],u=n[2];r=" "===u[0],a+=c+(o||r||""===u?"":"\n")+ed(u,t),o=r}return a}(t,o),a));case 5:return'"'+function(e){for(var t,r="",n=0,i=0;i<e.length;n>=65536?i+=2:i++)n=Wp(e,i),!(t=qp[n])&&Hp(n)?(r+=e[i],n>=65536&&(r+=e[i+1])):r+=t||zp(n);return r}(t)+'"';default:throw new mh("impossible error: invalid scalar style")}}()}function Zp(e,t){var r=Kp(e)?String(t):"",n="\n"===e[e.length-1];return r+(n&&("\n"===e[e.length-2]||"\n"===e)?"+":n?"":"-")+"\n"}function Xp(e){return"\n"===e[e.length-1]?e.slice(0,-1):e}function ed(e,t){if(""===e||" "===e[0])return e;for(var r,n,i=/ [^ ]/g,a=0,o=0,s=0,c="";r=i.exec(e);)(s=r.index)-a>t&&(n=o>a?o:s,c+="\n"+e.slice(a,n),a=n+1),o=s;return c+="\n",e.length-a>t&&o>a?c+=e.slice(a,o)+"\n"+e.slice(o+1):c+=e.slice(a),c.slice(1)}function td(e,t,r,n){var i,a,o,s="",c=e.tag;for(i=0,a=r.length;i<a;i+=1)o=r[i],e.replacer&&(o=e.replacer.call(r,String(i),o)),(nd(e,t+1,o,!0,!0,!1,!0)||void 0===o&&nd(e,t+1,null,!0,!0,!1,!0))&&(n&&""===s||(s+=Up(e,t)),e.dump&&10===e.dump.charCodeAt(0)?s+="-":s+="- ",s+=e.dump);e.tag=c,e.dump=s||"[]"}function rd(e,t,r){var n,i,a,o,s,c;for(a=0,o=(i=r?e.explicitTypes:e.implicitTypes).length;a<o;a+=1)if(((s=i[a]).instanceOf||s.predicate)&&(!s.instanceOf||"object"==typeof t&&t instanceof s.instanceOf)&&(!s.predicate||s.predicate(t))){if(r?s.multi&&s.representName?e.tag=s.representName(t):e.tag=s.tag:e.tag="?",s.represent){if(c=e.styleMap[s.tag]||s.defaultStyle,"[object Function]"===Rp.call(s.represent))n=s.represent(t,c);else{if(!Lp.call(s.represent,c))throw new mh("!<"+s.tag+'> tag resolver accepts not "'+c+'" style');n=s.represent[c](t,c)}e.dump=n}return!0}return!1}function nd(e,t,r,n,i,a,o){e.tag=null,e.dump=r,rd(e,r,!1)||rd(e,r,!0);var s,c=Rp.call(e.dump),u=n;n&&(n=e.flowLevel<0||e.flowLevel>t);var l,f,h="[object Object]"===c||"[object Array]"===c;if(h&&(f=-1!==(l=e.duplicates.indexOf(r))),(null!==e.tag&&"?"!==e.tag||f||2!==e.indent&&t>0)&&(i=!1),f&&e.usedDuplicates[l])e.dump="*ref_"+l;else{if(h&&f&&!e.usedDuplicates[l]&&(e.usedDuplicates[l]=!0),"[object Object]"===c)n&&0!==Object.keys(e.dump).length?(!function(e,t,r,n){var i,a,o,s,c,u,l="",f=e.tag,h=Object.keys(r);if(!0===e.sortKeys)h.sort();else if("function"==typeof e.sortKeys)h.sort(e.sortKeys);else if(e.sortKeys)throw new mh("sortKeys must be a boolean or a function");for(i=0,a=h.length;i<a;i+=1)u="",n&&""===l||(u+=Up(e,t)),s=r[o=h[i]],e.replacer&&(s=e.replacer.call(r,o,s)),nd(e,t+1,o,!0,!0,!0)&&((c=null!==e.tag&&"?"!==e.tag||e.dump&&e.dump.length>1024)&&(e.dump&&10===e.dump.charCodeAt(0)?u+="?":u+="? "),u+=e.dump,c&&(u+=Up(e,t)),nd(e,t+1,s,!0,c)&&(e.dump&&10===e.dump.charCodeAt(0)?u+=":":u+=": ",l+=u+=e.dump));e.tag=f,e.dump=l||"{}"}(e,t,e.dump,i),f&&(e.dump="&ref_"+l+e.dump)):(!function(e,t,r){var n,i,a,o,s,c="",u=e.tag,l=Object.keys(r);for(n=0,i=l.length;n<i;n+=1)s="",""!==c&&(s+=", "),e.condenseFlow&&(s+='"'),o=r[a=l[n]],e.replacer&&(o=e.replacer.call(r,a,o)),nd(e,t,a,!1,!1)&&(e.dump.length>1024&&(s+="? "),s+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),nd(e,t,o,!1,!1)&&(c+=s+=e.dump));e.tag=u,e.dump="{"+c+"}"}(e,t,e.dump),f&&(e.dump="&ref_"+l+" "+e.dump));else if("[object Array]"===c)n&&0!==e.dump.length?(e.noArrayIndent&&!o&&t>0?td(e,t-1,e.dump,i):td(e,t,e.dump,i),f&&(e.dump="&ref_"+l+e.dump)):(!function(e,t,r){var n,i,a,o="",s=e.tag;for(n=0,i=r.length;n<i;n+=1)a=r[n],e.replacer&&(a=e.replacer.call(r,String(n),a)),(nd(e,t,a,!1,!1)||void 0===a&&nd(e,t,null,!1,!1))&&(""!==o&&(o+=","+(e.condenseFlow?"":" ")),o+=e.dump);e.tag=s,e.dump="["+o+"]"}(e,t,e.dump),f&&(e.dump="&ref_"+l+" "+e.dump));else{if("[object String]"!==c){if("[object Undefined]"===c)return!1;if(e.skipInvalid)return!1;throw new mh("unacceptable kind of an object to dump "+c)}"?"!==e.tag&&Jp(e,e.dump,t,a,u)}null!==e.tag&&"?"!==e.tag&&(s=encodeURI("!"===e.tag[0]?e.tag.slice(1):e.tag).replace(/!/g,"%21"),s="!"===e.tag[0]?"!"+s:"tag:yaml.org,2002:"===s.slice(0,18)?"!!"+s.slice(18):"!<"+s+">",e.dump=s+" "+e.dump)}return!0}function id(e,t){var r,n,i=[],a=[];for(ad(e,i,a),r=0,n=a.length;r<n;r+=1)t.duplicates.push(i[a[r]]);t.usedDuplicates=new Array(n)}function ad(e,t,r){var n,i,a;if(null!==e&&"object"==typeof e)if(-1!==(i=t.indexOf(e)))-1===r.indexOf(i)&&r.push(i);else if(t.push(e),Array.isArray(e))for(i=0,a=e.length;i<a;i+=1)ad(e[i],t,r);else for(i=0,a=(n=Object.keys(e)).length;i<a;i+=1)ad(e[n[i]],t,r)}function od(e,t){return function(){throw new Error("Function yaml."+e+" is removed in js-yaml 4. Use yaml."+t+" instead, which is now safe by default.")}}var sd={Type:xh,Schema:Sh,FAILSAFE_SCHEMA:_h,JSON_SCHEMA:qh,CORE_SCHEMA:Mh,DEFAULT_SCHEMA:Zh,load:jp.load,loadAll:jp.loadAll,dump:{dump:function(e,t){var r=new Bp(t=t||{});r.noRefs||id(e,r);var n=e;return r.replacer&&(n=r.replacer.call({"":n},"",n)),nd(r,0,n,!0,!0)?r.dump+"\n":""}}.dump,YAMLException:mh,types:{binary:Vh,float:Lh,map:Ph,null:Fh,pairs:Kh,set:Jh,timestamp:Bh,bool:Oh,int:Th,merge:$h,omap:Gh,seq:Ah,str:Ch},safeLoad:od("safeLoad","load"),safeLoadAll:od("safeLoadAll","loadAll"),safeDump:od("safeDump","dump")};const cd=/(^-{3}(?:\r\n|\r|\n)([\w\W]*?)-{3}(?:\r\n|\r|\n))?([\w\W]*)*/;class ud extends class{book;sourceFS;tmpFS;dest;options;plugins=[];constructor(e,t,r,n,i){this.book=e,this.sourceFS=t,this.tmpFS=r,this.options=n,this.dest=i}getContext(){return{book:this.book,sourceFS:this.sourceFS,tmpFS:this.tmpFS,request:se.request,logger:ne,format:this.format}}async generate(){await this.initPlugins(),await this.onInit(),await this.callHook("init"),await this.generateLogo(),await this.onSummary(),await this.callHook("summary"),await this.generateArticles(),await this.callHook("articles"),await this.callHook("beforeFinish")&&(await this.onFinish(),await this.callHook("finish")),ne.success("generation finished with success!")}async generateLogo(){if(!this.tmpFS.exist("logo.png")){const e=this.book.config.getValue("title","Untitled"),t=b.createCanvas(60,60);se.LetterAvatar.create(e,60,t);const r=t.toBuffer("image/png");await this.tmpFS.writeFile("logo.png",r)}}async generateArticles(){ne.info("generate articles ...");const e=this.book.summary.getArticles();ne.info(`found ${e.length} articles`);for(const t of e)if(t.ref){ne.info('generate article "'+t.getRef()+'"');try{await this.onArticle(t),await this.callHook("article",t)}catch(e){"ENOENT"===e.code?ne.warn(`article file [${t.ref}] not exist`):ne.warn(`generate article [${t.ref}] failed: ${e.message}`)}}}async initPlugins(){this.plugins=await async function(e,t,r){const n=await se.validatePlugins(e,r),i=[];ne.info(`installing ${n.length} plugins from registry`);for(let e of n)try{if(e.disabled){ne.warn('plugin "'+e.name+'" has been disabled');continue}i.push(await lh(e,t))}catch(t){ne.warn('plugin "'+e.name+'" installed with fail'),ne.warn(t.message)}return i}(this.book,this.tmpFS.root,this.options.plugins)}async callHook(e,...t){return ne.debug('calling hook "'+e+'"'),await(async(e,t)=>{for(let r of e)if(!await t(r))return!1;return!0})(this.plugins,(async r=>{const n=r.getHook(e);return!n||await n.apply(r.getContext(this.getContext()),t)}))}async makeFile(e,t){const r=await this.tmpFS.readAsString(t),n=this.parseFileMeta(t,r);return new se.File({path:e,...n})}parseFileMeta(e,t){const r=t.match(cd);let n={};if(r){if(void 0!==r[2])try{n=sd.load(r[2])||{}}catch{}t=void 0!==r[3]?r[3]:""}const i=T.default.join(this.book.config.getValue("root",""),e);return n.mtime=this.sourceFS.readFileMTime(i),{meta:n,content:t}}}{format="json";async onInit(){this.processSummary()}processSummary(){this.book.summary.getArticle((e=>(e.ref&&(e.path=function(e,t){e=r.posix.normalize(e);const n=r.posix.parse(e);return n.ext=t,n.base="",r.posix.format(n)}(e.ref,".json")),!1)))}async onArticle(e){if(e.ref){const t=await this.tmpFS.readAsString(e.ref);await this.tmpFS.unlink(e.ref),await this.tmpFS.writeFile(e.getPath(),JSON.stringify({title:e.title,content:t},null,4))}}async onSummary(){const e=this.book.summary;await this.tmpFS.unlink("SUMMARY.md"),await this.tmpFS.writeFile("SUMMARY.json",JSON.stringify(e.toObject(),null,4))}async onFinish(){await this.packBook()}async packBook(){return ne.info("pack book ..."),new Promise(((e,t)=>{w.pack(this.tmpFS.root,{fromBase:!0,ignoreFiles:[".bookignore"]}).pipe(v.createWriteStream(this.dest)).on("error",(e=>{t(e)})).on("close",(()=>{e()}))}))}}class ld{root;constructor(e){this.root=e}readFileMTime(e){const t=`git log --pretty=format:%cI -1 -- ${e}`,{error:r,stdout:n}=G.default.sync(t,{stdio:["inherit"],encoding:"utf8",cwd:this.root,shell:!0});if(!r)return n}async readFile(e){return await Y.default.readFile(this.resolve(e))}async readAsObject(e){try{return await Y.default.readJSON(this.resolve(e))}catch{return{}}}async readAsString(e){try{return await Y.default.readFile(this.resolve(e),"utf-8")}catch{return""}}async writeFile(e,t){return Y.default.writeFile(this.resolve(e),t)}async appendFile(e,t){return Y.default.appendFile(this.resolve(e),t)}exist(e){return Y.default.pathExistsSync(this.resolve(e))}async unlink(e){try{await Y.default.unlink(this.resolve(e))}catch{}}async readDir({path:e="",ignoreFiles:t=[".gitignore",".bookignore"]}={}){const r=[];return new Promise((n=>{J.default({path:this.resolve(e),ignoreFiles:t}).on("child",(function(e){r.push({type:e.type,path:e.path.substr(e.root.path.length+1)})})).on("close",(()=>{n(r)}))}))}resolve(...e){return T.default.join(this.root,...e)}}class fd extends ud{template;scripts=["https://jsdelivr.topthink.com/npm/lodash@4.17/lodash.min.js","https://jsdelivr.topthink.com/npm/react@17/umd/react.production.min.js","https://jsdelivr.topthink.com/npm/react-dom@17/umd/react-dom.production.min.js"];stylesheets=[];headScripts=[];format="html";async onInit(){await super.onInit(),await this.installReader(),await this.copyPluginsAssets(),await this.initTemplate()}initTemplate(){const e=Y.default.readFileSync(T.default.resolve(__dirname,"../templates/html.ejs"),"utf-8");this.template=Z.default.compile(e)}processSummary(){this.book.summary.getArticle((e=>{if(e.ref){const t=r.posix.parse(e.ref);e.path=r.posix.format({...t,name:S.pinyin(t.name,{toneType:"none",type:"array"}).join("-"),ext:".html",base:""})}return!1}))}async installReader(){ne.info("installing package @topwrite/reader ...");const{error:e}=G.default.sync("npm link @topwrite/reader",{stdio:["inherit"],cwd:this.tmpFS.root,shell:!0});if(e)throw e;await Y.default.copy(T.default.join(this.tmpFS.root,"node_modules","@topwrite","reader","dist"),T.default.join(this.tmpFS.root,"asset")),this.scripts.push("asset/index.js");const t=require(T.default.join(this.tmpFS.root,"node_modules","@topwrite","reader","package.json"));ne.info(`package @topwrite/reader@${t.version} installed with success`)}async copyPluginsAssets(){for(const e of this.plugins)await Y.default.copy(T.default.join(e.path,"dist"),T.default.join(this.tmpFS.root,"asset","plugins",e.name)),this.scripts.push(`asset/plugins/${e.name}/index.js`)}async onArticle(e){if(e.ref){const t=e.getPath(),r=await this.makeFile(t,e.ref),n=await this.renderFile(r,e.title);await this.tmpFS.unlink(e.ref),await this.tmpFS.writeFile(t,n)}}async onSummary(){const e=await this.makeFile("index.html","README.md"),t=await this.renderFile(e);await this.tmpFS.unlink("SUMMARY.md"),await this.tmpFS.unlink("README.md"),await this.tmpFS.writeFile("index.html",t)}async renderFile(e,t){const r={id:this.book.id,summary:this.book.summary.toObject(),config:this.book.config.toObject(),file:e,options:{}},n=this.scripts.map((t=>se.isUrl(t)?t:e.relative(t))),i=this.headScripts.map((t=>se.isUrl(t)?t:e.relative(t))),a=this.stylesheets.map((t=>se.isUrl(t)?t:e.relative(t))),o=this.book.config.getValue("title","Untitled"),s=e.getMeta("title",t);return this.template({title:(s?`${s} - `:"")+o,keywords:e.getMeta("keywords"),description:e.getMeta("description"),stylesheets:a,headScripts:i,scripts:n,payload:JSON.stringify(r).replace(/\//g,"\\/")})}}const hd=(e,t)=>e.some((e=>e instanceof RegExp?e.test(t):e===t));class pd extends X.default.ResourceLoader{fs;constructor(e){super(),this.fs=e}fetch(e,t){return super.fetch(e,t)}}const dd={json:ud,html:fd,ebook:class extends fd{format="ebook";async initPlugins(){this.book.config.setValue("theme","ebook"),await super.initPlugins()}createDOM(e,t){const r=new pd(this.tmpFS),n=new A.VirtualConsole;return n.sendTo(console,{omitJSDOMErrors:!0}),new A.JSDOM(e,{virtualConsole:n,url:`file:///${this.tmpFS.resolve(t)}`,runScripts:"dangerously",resources:r,pretendToBeVisual:!0})}async renderHtml(e,t){const r=this.createDOM(e,t);return await function(e,t){const{tryEvery:r,stopAfter:n}=t,i=Date.now(),a=(t,o)=>{setTimeout((async()=>{try{const r=await e();t(r)}catch(e){Date.now()-i>n?o(e):a(t,o)}}),r)};return new Promise(a)}((()=>{const e=r.window.document.getElementById("root");if(e&&e.innerHTML){for(const e of Array.from(r.window.document.scripts))e.remove();return r.serialize()}throw new Error("render html timeout")}),{stopAfter:2e3,tryEvery:100})}async renderFile(e,t){const r=await super.renderFile(e,t);return await this.renderHtml(r,e.path)}getConvertOptions(e){const{config:t}=this.book,r={title:t.getValue("title"),"book-producer":"TopWrite",publisher:"TopWrite",chapter:"descendant-or-self::*[contains(concat(' ', normalize-space(@class), ' '), 'book-title')]","level1-toc":"descendant-or-self::*[contains(concat(' ', normalize-space(@class), ' '), ' book-title-1 ')]","level2-toc":"descendant-or-self::*[contains(concat(' ', normalize-space(@class), ' '), ' book-title-2 ')]","level3-toc":"descendant-or-self::*[contains(concat(' ', normalize-space(@class), ' '), ' book-title-3 ')]","max-toc-links":"0","max-levels":"1","no-chapters-in-toc":!0,"breadth-first":!0,"disable-font-rescaling":!0};switch(e){case"docx":r["docx-no-toc"]=!0;break;case"epub":r["dont-split-on-page-breaks"]=!0;break;case"pdf":const e=Y.default.readFileSync(T.default.resolve(__dirname,"../templates/pdf-header.ejs"),"utf-8"),n=Y.default.readFileSync(T.default.resolve(__dirname,"../templates/pdf-footer.ejs"),"utf-8");r["chapter-mark"]=t.getValue(["pdf","chapterMark"]),r["page-breaks-before"]=t.getValue(["pdf","pageBreaksBefore"]),r["pdf-page-margin-left"]=t.getValue(["pdf","margin","left"]),r["pdf-page-margin-right"]=t.getValue(["pdf","margin","right"]),r["pdf-page-margin-top"]=t.getValue(["pdf","margin","top"]),r["pdf-page-margin-bottom"]=t.getValue(["pdf","margin","bottom"]),r["pdf-serif-family"]=t.getValue(["pdf","fontFamily"]),r["paper-size"]=t.getValue(["pdf","paperSize"]),r["pdf-custom-size"]=t.getValue(["pdf","customSize"]),r.unit="millimeter",r["pdf-page-numbers"]=t.getValue(["pdf","pageNumbers"]),r["preserve-cover-aspect-ratio"]=!0,r["pdf-header-template"]=e,r["pdf-footer-template"]=n}return r}async packBook(){const e=T.default.extname(this.dest).substr(1);if(!["pdf","docx","epub"].includes(e))return super.packBook();const t=await C.lookpath("ebook-convert");if(!t)throw new Error("Install ebook-convert from Calibre: https://calibre-ebook.com");const r=function(e,t){const r=[];let n=[],i=[];t={useEquals:!0,shortFlag:!0,...t};const a=(e,n)=>{const i=t.shortFlag&&1===e.length?"-":"--",a=t.allowCamelCase?e:e.replace(/[A-Z]/g,"-$&").toLowerCase();e=i+a,t.useEquals?r.push(e+(n?`=${n}`:"")):(r.push(e),n&&r.push(n))},o=(e,t)=>{r.push(`-${e}`),t&&r.push(t)};for(let[r,s]of Object.entries(e)){let e=a;if((!Array.isArray(t.excludes)||!hd(t.excludes,r))&&(!Array.isArray(t.includes)||hd(t.includes,r)))if("object"==typeof t.aliases&&t.aliases[r]&&(r=t.aliases[r],e=o),"--"!==r)if("_"!==r){if(!0!==s||t.ignoreTrue||e(r,""),!1!==s||t.ignoreFalse||e(`no-${r}`),"string"==typeof s&&e(r,s),"number"!=typeof s||Number.isNaN(s)||e(r,String(s)),Array.isArray(s))for(const t of s)e(r,t)}else{if(!Array.isArray(s))throw new TypeError("Expected key `_` to be Array, got "+typeof s);n=s}else{if(!Array.isArray(s))throw new TypeError("Expected key `--` to be Array, got "+typeof s);i=s}}for(const e of n)r.push(String(e));i.length>0&&r.push("--");for(const e of i)r.push(String(e));return r}(this.getConvertOptions(e));return r.unshift(this.tmpFS.resolve("index.html"),this.dest),new Promise(((e,n)=>{ne.info("convert book ...");const i=G.default(t,r,{stdio:["inherit"],cwd:this.tmpFS.root});i.stdout?.on("data",(e=>{console.debug(e.toString().trimEnd())})),i.stderr?.on("data",(e=>{console.error(e.toString().trimEnd())})),i.on("close",(t=>{0!==t?n("Convert failed"):e()}))}))}}};var md=ee.default,gd=process.cwd,vd=null,yd=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return vd||(vd=gd.call(process)),vd};try{process.cwd()}catch(e){}if("function"==typeof process.chdir){var bd=process.chdir;process.chdir=function(e){vd=null,bd.call(process,e)},Object.setPrototypeOf&&Object.setPrototypeOf(process.chdir,bd)}var wd=function(e){md.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)&&function(e){e.lchmod=function(t,r,n){e.open(t,md.O_WRONLY|md.O_SYMLINK,r,(function(t,i){t?n&&n(t):e.fchmod(i,r,(function(t){e.close(i,(function(e){n&&n(t||e)}))}))}))},e.lchmodSync=function(t,r){var n,i=e.openSync(t,md.O_WRONLY|md.O_SYMLINK,r),a=!0;try{n=e.fchmodSync(i,r),a=!1}finally{if(a)try{e.closeSync(i)}catch(e){}else e.closeSync(i)}return n}}(e);e.lutimes||function(e){md.hasOwnProperty("O_SYMLINK")?(e.lutimes=function(t,r,n,i){e.open(t,md.O_SYMLINK,(function(t,a){t?i&&i(t):e.futimes(a,r,n,(function(t){e.close(a,(function(e){i&&i(t||e)}))}))}))},e.lutimesSync=function(t,r,n){var i,a=e.openSync(t,md.O_SYMLINK),o=!0;try{i=e.futimesSync(a,r,n),o=!1}finally{if(o)try{e.closeSync(a)}catch(e){}else e.closeSync(a)}return i}):(e.lutimes=function(e,t,r,n){n&&process.nextTick(n)},e.lutimesSync=function(){})}(e);e.chown=i(e.chown),e.fchown=i(e.fchown),e.lchown=i(e.lchown),e.chmod=r(e.chmod),e.fchmod=r(e.fchmod),e.lchmod=r(e.lchmod),e.chownSync=a(e.chownSync),e.fchownSync=a(e.fchownSync),e.lchownSync=a(e.lchownSync),e.chmodSync=n(e.chmodSync),e.fchmodSync=n(e.fchmodSync),e.lchmodSync=n(e.lchmodSync),e.stat=o(e.stat),e.fstat=o(e.fstat),e.lstat=o(e.lstat),e.statSync=s(e.statSync),e.fstatSync=s(e.fstatSync),e.lstatSync=s(e.lstatSync),e.lchmod||(e.lchmod=function(e,t,r){r&&process.nextTick(r)},e.lchmodSync=function(){});e.lchown||(e.lchown=function(e,t,r,n){n&&process.nextTick(n)},e.lchownSync=function(){});"win32"===yd&&(e.rename=(t=e.rename,function(r,n,i){var a=Date.now(),o=0;t(r,n,(function s(c){if(c&&("EACCES"===c.code||"EPERM"===c.code)&&Date.now()-a<6e4)return setTimeout((function(){e.stat(n,(function(e,a){e&&"ENOENT"===e.code?t(r,n,s):i(c)}))}),o),void(o<100&&(o+=10));i&&i(c)}))}));var t;function r(t){return t?function(r,n,i){return t.call(e,r,n,(function(e){c(e)&&(e=null),i&&i.apply(this,arguments)}))}:t}function n(t){return t?function(r,n){try{return t.call(e,r,n)}catch(e){if(!c(e))throw e}}:t}function i(t){return t?function(r,n,i,a){return t.call(e,r,n,i,(function(e){c(e)&&(e=null),a&&a.apply(this,arguments)}))}:t}function a(t){return t?function(r,n,i){try{return t.call(e,r,n,i)}catch(e){if(!c(e))throw e}}:t}function o(t){return t?function(r,n,i){function a(e,t){t&&(t.uid<0&&(t.uid+=4294967296),t.gid<0&&(t.gid+=4294967296)),i&&i.apply(this,arguments)}return"function"==typeof n&&(i=n,n=null),n?t.call(e,r,n,a):t.call(e,r,a)}:t}function s(t){return t?function(r,n){var i=n?t.call(e,r,n):t.call(e,r);return i.uid<0&&(i.uid+=4294967296),i.gid<0&&(i.gid+=4294967296),i}:t}function c(e){return!e||("ENOSYS"===e.code||!(process.getuid&&0===process.getuid()||"EINVAL"!==e.code&&"EPERM"!==e.code))}e.read=function(t){function r(r,n,i,a,o,s){var c;if(s&&"function"==typeof s){var u=0;c=function(l,f,h){if(l&&"EAGAIN"===l.code&&u<10)return u++,t.call(e,r,n,i,a,o,c);s.apply(this,arguments)}}return t.call(e,r,n,i,a,o,c)}return Object.setPrototypeOf&&Object.setPrototypeOf(r,t),r}(e.read),e.readSync=(u=e.readSync,function(t,r,n,i,a){for(var o=0;;)try{return u.call(e,t,r,n,i,a)}catch(e){if("EAGAIN"===e.code&&o<10){o++;continue}throw e}});var u};var xd=$.default.Stream,kd=function(e){return{ReadStream:function t(r,n){if(!(this instanceof t))return new t(r,n);xd.call(this);var i=this;this.path=r,this.fd=null,this.readable=!0,this.paused=!1,this.flags="r",this.mode=438,this.bufferSize=65536,n=n||{};for(var a=Object.keys(n),o=0,s=a.length;o<s;o++){var c=a[o];this[c]=n[c]}this.encoding&&this.setEncoding(this.encoding);if(void 0!==this.start){if("number"!=typeof this.start)throw TypeError("start must be a Number");if(void 0===this.end)this.end=1/0;else if("number"!=typeof this.end)throw TypeError("end must be a Number");if(this.start>this.end)throw new Error("start must be <= end");this.pos=this.start}if(null!==this.fd)return void process.nextTick((function(){i._read()}));e.open(this.path,this.flags,this.mode,(function(e,t){if(e)return i.emit("error",e),void(i.readable=!1);i.fd=t,i.emit("open",t),i._read()}))},WriteStream:function t(r,n){if(!(this instanceof t))return new t(r,n);xd.call(this),this.path=r,this.fd=null,this.writable=!0,this.flags="w",this.encoding="binary",this.mode=438,this.bytesWritten=0,n=n||{};for(var i=Object.keys(n),a=0,o=i.length;a<o;a++){var s=i[a];this[s]=n[s]}if(void 0!==this.start){if("number"!=typeof this.start)throw TypeError("start must be a Number");if(this.start<0)throw new Error("start must be >= zero");this.pos=this.start}this.busy=!1,this._queue=[],null===this.fd&&(this._open=e.open,this._queue.push([this._open,this.path,this.flags,this.mode,void 0]),this.flush())}}};var Ed=function(e){if(null===e||"object"!=typeof e)return e;if(e instanceof Object)var t={__proto__:Sd(e)};else t=Object.create(null);return Object.getOwnPropertyNames(e).forEach((function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))})),t},Sd=Object.getPrototypeOf||function(e){return e.__proto__};var Cd,Ad,Pd=K.default,_d=wd,Fd=kd,Od=Ed,Dd=V.default;function Id(e,t){Object.defineProperty(e,Cd,{get:function(){return t}})}"function"==typeof Symbol&&"function"==typeof Symbol.for?(Cd=Symbol.for("graceful-fs.queue"),Ad=Symbol.for("graceful-fs.previous")):(Cd="___graceful-fs.queue",Ad="___graceful-fs.previous");var Td=function(){};if(Dd.debuglog?Td=Dd.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&(Td=function(){var e=Dd.format.apply(Dd,arguments);e="GFS4: "+e.split(/\n/).join("\nGFS4: "),console.error(e)}),!Pd[Cd]){var jd=ie[Cd]||[];Id(Pd,jd),Pd.close=function(e){function t(t,r){return e.call(Pd,t,(function(e){e||Nd(),"function"==typeof r&&r.apply(this,arguments)}))}return Object.defineProperty(t,Ad,{value:e}),t}(Pd.close),Pd.closeSync=function(e){function t(t){e.apply(Pd,arguments),Nd()}return Object.defineProperty(t,Ad,{value:e}),t}(Pd.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",(function(){Td(Pd[Cd]),N.default.equal(Pd[Cd].length,0)}))}ie[Cd]||Id(ie,Pd[Cd]);var Rd,Ld=qd(Od(Pd));function qd(e){_d(e),e.gracefulify=qd,e.createReadStream=function(t,r){return new e.ReadStream(t,r)},e.createWriteStream=function(t,r){return new e.WriteStream(t,r)};var t=e.readFile;e.readFile=function(e,r,n){"function"==typeof r&&(n=r,r=null);return function e(r,n,i,a){return t(r,n,(function(t){!t||"EMFILE"!==t.code&&"ENFILE"!==t.code?"function"==typeof i&&i.apply(this,arguments):Md([e,[r,n,i],t,a||Date.now(),Date.now()])}))}(e,r,n)};var r=e.writeFile;e.writeFile=function(e,t,n,i){"function"==typeof n&&(i=n,n=null);return function e(t,n,i,a,o){return r(t,n,i,(function(r){!r||"EMFILE"!==r.code&&"ENFILE"!==r.code?"function"==typeof a&&a.apply(this,arguments):Md([e,[t,n,i,a],r,o||Date.now(),Date.now()])}))}(e,t,n,i)};var n=e.appendFile;n&&(e.appendFile=function(e,t,r,i){"function"==typeof r&&(i=r,r=null);return function e(t,r,i,a,o){return n(t,r,i,(function(n){!n||"EMFILE"!==n.code&&"ENFILE"!==n.code?"function"==typeof a&&a.apply(this,arguments):Md([e,[t,r,i,a],n,o||Date.now(),Date.now()])}))}(e,t,r,i)});var i=e.copyFile;i&&(e.copyFile=function(e,t,r,n){"function"==typeof r&&(n=r,r=0);return function e(t,r,n,a,o){return i(t,r,n,(function(i){!i||"EMFILE"!==i.code&&"ENFILE"!==i.code?"function"==typeof a&&a.apply(this,arguments):Md([e,[t,r,n,a],i,o||Date.now(),Date.now()])}))}(e,t,r,n)});var a=e.readdir;if(e.readdir=function(e,t,r){"function"==typeof t&&(r=t,t=null);return function e(t,r,n,i){return a(t,r,(function(a,o){!a||"EMFILE"!==a.code&&"ENFILE"!==a.code?(o&&o.sort&&o.sort(),"function"==typeof n&&n.call(this,a,o)):Md([e,[t,r,n],a,i||Date.now(),Date.now()])}))}(e,t,r)},"v0.8"===process.version.substr(0,4)){var o=Fd(e);f=o.ReadStream,h=o.WriteStream}var s=e.ReadStream;s&&(f.prototype=Object.create(s.prototype),f.prototype.open=function(){var e=this;d(e.path,e.flags,e.mode,(function(t,r){t?(e.autoClose&&e.destroy(),e.emit("error",t)):(e.fd=r,e.emit("open",r),e.read())}))});var c=e.WriteStream;c&&(h.prototype=Object.create(c.prototype),h.prototype.open=function(){var e=this;d(e.path,e.flags,e.mode,(function(t,r){t?(e.destroy(),e.emit("error",t)):(e.fd=r,e.emit("open",r))}))}),Object.defineProperty(e,"ReadStream",{get:function(){return f},set:function(e){f=e},enumerable:!0,configurable:!0}),Object.defineProperty(e,"WriteStream",{get:function(){return h},set:function(e){h=e},enumerable:!0,configurable:!0});var u=f;Object.defineProperty(e,"FileReadStream",{get:function(){return u},set:function(e){u=e},enumerable:!0,configurable:!0});var l=h;function f(e,t){return this instanceof f?(s.apply(this,arguments),this):f.apply(Object.create(f.prototype),arguments)}function h(e,t){return this instanceof h?(c.apply(this,arguments),this):h.apply(Object.create(h.prototype),arguments)}Object.defineProperty(e,"FileWriteStream",{get:function(){return l},set:function(e){l=e},enumerable:!0,configurable:!0});var p=e.open;function d(e,t,r,n){return"function"==typeof r&&(n=r,r=null),function e(t,r,n,i,a){return p(t,r,n,(function(o,s){!o||"EMFILE"!==o.code&&"ENFILE"!==o.code?"function"==typeof i&&i.apply(this,arguments):Md([e,[t,r,n,i],o,a||Date.now(),Date.now()])}))}(e,t,r,n)}return e.open=d,e}function Md(e){Td("ENQUEUE",e[0].name,e[1]),Pd[Cd].push(e),zd()}function Nd(){for(var e=Date.now(),t=0;t<Pd[Cd].length;++t)Pd[Cd][t].length>2&&(Pd[Cd][t][3]=e,Pd[Cd][t][4]=e);zd()}function zd(){if(clearTimeout(Rd),Rd=void 0,0!==Pd[Cd].length){var e=Pd[Cd].shift(),t=e[0],r=e[1],n=e[2],i=e[3],a=e[4];if(void 0===i)Td("RETRY",t.name,r),t.apply(null,r);else if(Date.now()-i>=6e4){Td("TIMEOUT",t.name,r);var o=r.pop();"function"==typeof o&&o.call(null,n)}else{var s=Date.now()-a,c=Math.max(a-i,1);s>=Math.min(1.2*c,100)?(Td("RETRY",t.name,r),t.apply(null,r.concat([i]))):Pd[Cd].push(e)}void 0===Rd&&(Rd=setTimeout(zd,0))}}process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!Pd.__patched&&(Ld=qd(Pd),Pd.__patched=!0);var Bd=Ld;const $d=H.default.homedir(),{env:Ud}=process,Vd=Ud.XDG_DATA_HOME||($d?T.default.join($d,".local","share"):void 0),Hd=Ud.XDG_CONFIG_HOME||($d?T.default.join($d,".config"):void 0);Ud.XDG_STATE_HOME||$d&&T.default.join($d,".local","state"),Ud.XDG_CACHE_HOME||$d&&T.default.join($d,".cache"),Ud.XDG_RUNTIME_DIR;const Qd=(Ud.XDG_DATA_DIRS||"/usr/local/share/:/usr/share/").split(":");Vd&&Qd.unshift(Vd);const Gd=(Ud.XDG_CONFIG_DIRS||"/etc/xdg").split(":");Hd&&Gd.unshift(Hd);var Wd={exports:{}},Kd={exports:{}};
|
|
8
|
+
*/var Nn=function(e){return null!=e&&null!=e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)},Bn=Object.prototype.hasOwnProperty,$n=Object.prototype.toString,Un=Object.defineProperty,Vn=Object.getOwnPropertyDescriptor,Hn=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===$n.call(e)},Qn=function(e){if(!e||"[object Object]"!==$n.call(e))return!1;var t,r=Bn.call(e,"constructor"),n=e.constructor&&e.constructor.prototype&&Bn.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!r&&!n)return!1;for(t in e);return void 0===t||Bn.call(e,t)},Gn=function(e,t){Un&&"__proto__"===t.name?Un(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},Wn=function(e,t){if("__proto__"===t){if(!Bn.call(e,t))return;if(Vn)return Vn(e,t).value}return e[t]},Kn=function e(){var t,r,n,i,o,a,s=arguments[0],c=1,u=arguments.length,l=!1;for("boolean"==typeof s&&(l=s,s=arguments[1]||{},c=2),(null==s||"object"!=typeof s&&"function"!=typeof s)&&(s={});c<u;++c)if(null!=(t=arguments[c]))for(r in t)n=Wn(s,r),s!==(i=Wn(t,r))&&(l&&i&&(Qn(i)||(o=Hn(i)))?(o?(o=!1,a=n&&Hn(n)?n:[]):a=n&&Qn(n)?n:{},Gn(s,{name:r,newValue:e(l,a,i)})):void 0!==i&&Gn(s,{name:r,newValue:i}));return s};function Jn(e){if("[object Object]"!==Object.prototype.toString.call(e))return!1;const t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function Yn(){const e=[],t={run:function(...t){let r=-1;const n=t.pop();if("function"!=typeof n)throw new TypeError("Expected function as last argument, not "+n);!function i(o,...a){const s=e[++r];let c=-1;if(o)n(o);else{for(;++c<t.length;)null!==a[c]&&void 0!==a[c]||(a[c]=t[c]);t=a,s?function(e,t){let r;return n;function n(...t){const n=e.length>t.length;let a;n&&t.push(i);try{a=e(...t)}catch(e){const t=e;if(n&&r)throw t;return i(t)}n||(a instanceof Promise?a.then(o,i):a instanceof Error?i(a):o(a))}function i(e,...n){r||(r=!0,t(e,...n))}function o(e){i(null,e)}}(s,i)(...a):n(null,...a)}}(null,...t)},use:function(r){if("function"!=typeof r)throw new TypeError("Expected `middelware` to be a function, not "+r);return e.push(r),t}};return t}var Xn={}.hasOwnProperty;function Zn(e){return e&&"object"==typeof e?Xn.call(e,"position")||Xn.call(e,"type")?ti(e.position):Xn.call(e,"start")||Xn.call(e,"end")?ti(e):Xn.call(e,"line")||Xn.call(e,"column")?ei(e):"":""}function ei(e){return ri(e&&e.line)+":"+ri(e&&e.column)}function ti(e){return ei(e&&e.start)+"-"+ei(e&&e.end)}function ri(e){return e&&"number"==typeof e?e:1}class ni extends Error{constructor(e,t,r){var n,i=[null,null],o={start:{line:null,column:null},end:{line:null,column:null}};super(),"string"==typeof t&&(r=t,t=null),"string"==typeof r&&(-1===(n=r.indexOf(":"))?i[1]=r:(i[0]=r.slice(0,n),i[1]=r.slice(n+1))),t&&("type"in t||"position"in t?t.position&&(o=t.position):"start"in t||"end"in t?o=t:("line"in t||"column"in t)&&(o.start=t)),this.name=Zn(t)||"1:1",this.message="object"==typeof e?e.message:e,this.stack="object"==typeof e?e.stack:"",this.reason=this.message,this.line=o.start.line,this.column=o.start.column,this.source=i[0],this.ruleId=i[1],this.position=o,this.file,this.fatal,this.url,this.note}}ni.prototype.file="",ni.prototype.name="",ni.prototype.reason="",ni.prototype.message="",ni.prototype.stack="",ni.prototype.fatal=null,ni.prototype.column=null,ni.prototype.line=null,ni.prototype.source=null,ni.prototype.ruleId=null,ni.prototype.position=null;const ii=L.default;function oi(e){return null!==e&&"object"==typeof e&&e.href&&e.origin}const ai=["history","path","basename","stem","extname","dirname"];class si{constructor(e){let t;t=e?"string"==typeof e||Nn(e)?{value:e}:oi(e)?{path:e}:e:{},this.data={},this.messages=[],this.history=[],this.cwd=ii.cwd(),this.value,this.stored,this.result,this.map;let r,n=-1;for(;++n<ai.length;){const e=ai[n];e in t&&void 0!==t[e]&&(this[e]="history"===e?[...t[e]]:t[e])}for(r in t)ai.includes(r)||(this[r]=t[r])}get path(){return this.history[this.history.length-1]}set path(e){oi(e)&&(e=a.fileURLToPath(e)),ui(e,"path"),this.path!==e&&this.history.push(e)}get dirname(){return"string"==typeof this.path?R.default.dirname(this.path):void 0}set dirname(e){li(this.basename,"dirname"),this.path=R.default.join(e||"",this.basename)}get basename(){return"string"==typeof this.path?R.default.basename(this.path):void 0}set basename(e){ui(e,"basename"),ci(e,"basename"),this.path=R.default.join(this.dirname||"",e)}get extname(){return"string"==typeof this.path?R.default.extname(this.path):void 0}set extname(e){if(ci(e,"extname"),li(this.dirname,"extname"),e){if(46!==e.charCodeAt(0))throw new Error("`extname` must start with `.`");if(e.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=R.default.join(this.dirname,this.stem+(e||""))}get stem(){return"string"==typeof this.path?R.default.basename(this.path,this.extname):void 0}set stem(e){ui(e,"stem"),ci(e,"stem"),this.path=R.default.join(this.dirname||"",e+(this.extname||""))}toString(e){return(this.value||"").toString(e)}message(e,t,r){const n=new ni(e,t,r);return this.path&&(n.name=this.path+":"+n.name,n.file=this.path),n.fatal=!1,this.messages.push(n),n}info(e,t,r){const n=this.message(e,t,r);return n.fatal=null,n}fail(e,t,r){const n=this.message(e,t,r);throw n.fatal=!0,n}}function ci(e,t){if(e&&e.includes(R.default.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+R.default.sep+"`")}function ui(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function li(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}const fi=function e(){const t=Yn(),r=[];let n,i={},o=-1;return a.data=function(e,t){if("string"==typeof e)return 2===arguments.length?(gi("data",n),i[e]=t,a):hi.call(i,e)&&i[e]||null;if(e)return gi("data",n),i=e,a;return i},a.Parser=void 0,a.Compiler=void 0,a.freeze=function(){if(n)return a;for(;++o<r.length;){const[e,...n]=r[o];if(!1===n[0])continue;!0===n[0]&&(n[1]=void 0);const i=e.call(a,...n);"function"==typeof i&&t.use(i)}return n=!0,o=Number.POSITIVE_INFINITY,a},a.attachers=r,a.use=function(e,...t){let o;if(gi("use",n),null==e);else if("function"==typeof e)l(e,...t);else{if("object"!=typeof e)throw new TypeError("Expected usable value, not `"+e+"`");Array.isArray(e)?u(e):c(e)}o&&(i.settings=Object.assign(i.settings||{},o));return a;function s(e){if("function"==typeof e)l(e);else{if("object"!=typeof e)throw new TypeError("Expected usable value, not `"+e+"`");if(Array.isArray(e)){const[t,...r]=e;l(t,...r)}else c(e)}}function c(e){u(e.plugins),e.settings&&(o=Object.assign(o||{},e.settings))}function u(e){let t=-1;if(null==e);else{if(!Array.isArray(e))throw new TypeError("Expected a list of plugins, not `"+e+"`");for(;++t<e.length;){s(e[t])}}}function l(e,t){let n,i=-1;for(;++i<r.length;)if(r[i][0]===e){n=r[i];break}n?(Jn(n[1])&&Jn(t)&&(t=Kn(!0,n[1],t)),n[1]=t):r.push([...arguments])}},a.parse=function(e){a.freeze();const t=bi(e),r=a.Parser;if(di("parse",r),pi(r,"parse"))return new r(String(t),t).parse();return r(String(t),t)},a.stringify=function(e,t){a.freeze();const r=bi(t),n=a.Compiler;if(mi("stringify",n),vi(e),pi(n,"compile"))return new n(e,r).compile();return n(e,r)},a.run=function(e,r,n){vi(e),a.freeze(),n||"function"!=typeof r||(n=r,r=void 0);if(!n)return new Promise(i);function i(i,o){function a(t,r,a){r=r||e,t?o(t):i?i(r):n(null,r,a)}t.run(e,bi(r),a)}i(null,n)},a.runSync=function(e,t){let r,n;return a.run(e,t,i),yi("runSync","run",n),r;function i(e,t){Mn(e),r=t,n=!0}},a.process=function(e,t){if(a.freeze(),di("process",a.Parser),mi("process",a.Compiler),!t)return new Promise(r);function r(r,n){const i=bi(e);function o(e,i){e||!i?n(e):r?r(i):t(null,i)}a.run(a.parse(i),i,((e,t,r)=>{if(!e&&t&&r){const n=a.stringify(t,r);null==n||(!function(e){return"string"==typeof e||Nn(e)}(n)?r.result=n:r.value=n),o(e,r)}else o(e)}))}r(null,t)},a.processSync=function(e){let t;a.freeze(),di("processSync",a.Parser),mi("processSync",a.Compiler);const r=bi(e);return a.process(r,n),yi("processSync","process",t),r;function n(e){t=!0,Mn(e)}},a;function a(){const t=e();let n=-1;for(;++n<r.length;)t.use(...r[n]);return t.data(Kn(!0,{},i)),t}}().freeze(),hi={}.hasOwnProperty;function pi(e,t){return"function"==typeof e&&e.prototype&&(function(e){let t;for(t in e)if(hi.call(e,t))return!0;return!1}(e.prototype)||t in e.prototype)}function di(e,t){if("function"!=typeof t)throw new TypeError("Cannot `"+e+"` without `Parser`")}function mi(e,t){if("function"!=typeof t)throw new TypeError("Cannot `"+e+"` without `Compiler`")}function gi(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function vi(e){if(!Jn(e)||"string"!=typeof e.type)throw new TypeError("Expected node, got `"+e+"`")}function yi(e,t,r){if(!r)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function bi(e){return function(e){return Boolean(e&&"object"==typeof e&&"message"in e&&"messages"in e)}(e)?e:new si(e)}var xi=se(Object.freeze({__proto__:null,unified:fi}));function wi(e,t){var{includeImageAlt:r=!0}=t||{};return ki(e,r)}function ki(e,t){return e&&"object"==typeof e&&(e.value||(t?e.alt:"")||"children"in e&&Ei(e.children,t)||Array.isArray(e)&&Ei(e,t))||""}function Ei(e,t){for(var r=[],n=-1;++n<e.length;)r[n]=ki(e[n],t);return r.join("")}function Si(e,t,r,n){const i=e.length;let o,a=0;if(t=t<0?-t>i?0:i+t:t>i?i:t,r=r>0?r:0,n.length<1e4)o=Array.from(n),o.unshift(t,r),[].splice.apply(e,o);else for(r&&[].splice.apply(e,[t,r]);a<n.length;)o=n.slice(a,a+1e4),o.unshift(t,0),[].splice.apply(e,o),a+=1e4,t+=1e4}function Pi(e,t){return e.length>0?(Si(e,e.length,0,t),e):t}const _i={}.hasOwnProperty;function Ai(e){const t={};let r=-1;for(;++r<e.length;)Ci(t,e[r]);return t}function Ci(e,t){let r;for(r in t){const n=(_i.call(e,r)?e[r]:void 0)||(e[r]={}),i=t[r];let o;for(o in i){_i.call(n,o)||(n[o]=[]);const e=i[o];Fi(n[o],Array.isArray(e)?e:e?[e]:[])}}}function Fi(e,t){let r=-1;const n=[];for(;++r<t.length;)("after"===t[r].add?e:n).push(t[r]);Si(e,0,0,n)}const Di=$i(/[A-Za-z]/),Oi=$i(/\d/),Ti=$i(/[\dA-Fa-f]/),Ri=$i(/[\dA-Za-z]/),Ii=$i(/[!-/:-@[-`{-~]/),ji=$i(/[#-'*+\--9=?A-Z^-~]/);function Li(e){return null!==e&&(e<32||127===e)}function qi(e){return null!==e&&(e<0||32===e)}function zi(e){return null!==e&&e<-2}function Mi(e){return-2===e||-1===e||32===e}const Ni=$i(/\s/),Bi=$i(/[!-/:-@[-`{-~\u00A1\u00A7\u00AB\u00B6\u00B7\u00BB\u00BF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]/);function $i(e){return function(t){return null!==t&&e.test(String.fromCharCode(t))}}var Ui=Object.freeze({__proto__:null,asciiAlpha:Di,asciiDigit:Oi,asciiHexDigit:Ti,asciiAlphanumeric:Ri,asciiPunctuation:Ii,asciiAtext:ji,asciiControl:Li,markdownLineEndingOrSpace:qi,markdownLineEnding:zi,markdownSpace:Mi,unicodeWhitespace:Ni,unicodePunctuation:Bi});function Vi(e,t,r,n){const i=n?n-1:Number.POSITIVE_INFINITY;let o=0;return function(n){if(Mi(n))return e.enter(r),a(n);return t(n)};function a(n){return Mi(n)&&o++<i?(e.consume(n),a):(e.exit(r),t(n))}}var Hi=Object.freeze({__proto__:null,factorySpace:Vi});const Qi={tokenize:function(e){const t=e.attempt(this.parser.constructs.contentInitial,(function(r){if(null===r)return void e.consume(r);return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),Vi(e,t,"linePrefix")}),(function(t){return e.enter("paragraph"),n(t)}));let r;return t;function n(t){const n=e.enter("chunkText",{contentType:"text",previous:r});return r&&(r.next=n),r=n,i(t)}function i(t){return null===t?(e.exit("chunkText"),e.exit("paragraph"),void e.consume(t)):zi(t)?(e.consume(t),e.exit("chunkText"),n):(e.consume(t),i)}}};const Gi={tokenize:function(e){const t=this,r=[];let n,i,o,a=0;return s;function s(n){if(a<r.length){const i=r[a];return t.containerState=i[1],e.attempt(i[0].continuation,c,u)(n)}return u(n)}function c(e){if(a++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,n&&y();const r=t.events.length;let i,o=r;for(;o--;)if("exit"===t.events[o][0]&&"chunkFlow"===t.events[o][1].type){i=t.events[o][1].end;break}v(a);let s=r;for(;s<t.events.length;)t.events[s][1].end=Object.assign({},i),s++;return Si(t.events,o+1,0,t.events.slice(r)),t.events.length=s,u(e)}return s(e)}function u(i){if(a===r.length){if(!n)return h(i);if(n.currentConstruct&&n.currentConstruct.concrete)return d(i);t.interrupt=Boolean(n.currentConstruct&&!n._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(Wi,l,f)(i)}function l(e){return n&&y(),v(a),h(e)}function f(e){return t.parser.lazy[t.now().line]=a!==r.length,o=t.now().offset,d(e)}function h(r){return t.containerState={},e.attempt(Wi,p,d)(r)}function p(e){return a++,r.push([t.currentConstruct,t.containerState]),h(e)}function d(r){return null===r?(n&&y(),v(0),void e.consume(r)):(n=n||t.parser.flow(t.now()),e.enter("chunkFlow",{contentType:"flow",previous:i,_tokenizer:n}),m(r))}function m(r){return null===r?(g(e.exit("chunkFlow"),!0),v(0),void e.consume(r)):zi(r)?(e.consume(r),g(e.exit("chunkFlow")),a=0,t.interrupt=void 0,s):(e.consume(r),m)}function g(e,r){const s=t.sliceStream(e);if(r&&s.push(null),e.previous=i,i&&(i.next=e),i=e,n.defineSkip(e.start),n.write(s),t.parser.lazy[e.start.line]){let e=n.events.length;for(;e--;)if(n.events[e][1].start.offset<o&&(!n.events[e][1].end||n.events[e][1].end.offset>o))return;const r=t.events.length;let i,s,c=r;for(;c--;)if("exit"===t.events[c][0]&&"chunkFlow"===t.events[c][1].type){if(i){s=t.events[c][1].end;break}i=!0}for(v(a),e=r;e<t.events.length;)t.events[e][1].end=Object.assign({},s),e++;Si(t.events,c+1,0,t.events.slice(r)),t.events.length=e}}function v(n){let i=r.length;for(;i-- >n;){const n=r[i];t.containerState=n[1],n[0].exit.call(t,e)}r.length=n}function y(){n.write([null]),i=void 0,n=void 0,t.containerState._closeFlow=void 0}}},Wi={tokenize:function(e,t,r){return Vi(e,e.attempt(this.parser.constructs.document,t,r),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}};function Ki(e){return null===e||qi(e)||Ni(e)?1:Bi(e)?2:void 0}function Ji(e,t,r){const n=[];let i=-1;for(;++i<e.length;){const o=e[i].resolveAll;o&&!n.includes(o)&&(t=o(t,r),n.push(o))}return t}const Yi={name:"attention",tokenize:function(e,t){const r=this.parser.constructs.attentionMarkers.null,n=this.previous,i=Ki(n);let o;return function(t){return e.enter("attentionSequence"),o=t,a(t)};function a(s){if(s===o)return e.consume(s),a;const c=e.exit("attentionSequence"),u=Ki(s),l=!u||2===u&&i||r.includes(s),f=!i||2===i&&u||r.includes(n);return c._open=Boolean(42===o?l:l&&(i||!f)),c._close=Boolean(42===o?f:f&&(u||!l)),t(s)}},resolveAll:function(e,t){let r,n,i,o,a,s,c,u,l=-1;for(;++l<e.length;)if("enter"===e[l][0]&&"attentionSequence"===e[l][1].type&&e[l][1]._close)for(r=l;r--;)if("exit"===e[r][0]&&"attentionSequence"===e[r][1].type&&e[r][1]._open&&t.sliceSerialize(e[r][1]).charCodeAt(0)===t.sliceSerialize(e[l][1]).charCodeAt(0)){if((e[r][1]._close||e[l][1]._open)&&(e[l][1].end.offset-e[l][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[l][1].end.offset-e[l][1].start.offset)%3))continue;s=e[r][1].end.offset-e[r][1].start.offset>1&&e[l][1].end.offset-e[l][1].start.offset>1?2:1;const f=Object.assign({},e[r][1].end),h=Object.assign({},e[l][1].start);Xi(f,-s),Xi(h,s),o={type:s>1?"strongSequence":"emphasisSequence",start:f,end:Object.assign({},e[r][1].end)},a={type:s>1?"strongSequence":"emphasisSequence",start:Object.assign({},e[l][1].start),end:h},i={type:s>1?"strongText":"emphasisText",start:Object.assign({},e[r][1].end),end:Object.assign({},e[l][1].start)},n={type:s>1?"strong":"emphasis",start:Object.assign({},o.start),end:Object.assign({},a.end)},e[r][1].end=Object.assign({},o.start),e[l][1].start=Object.assign({},a.end),c=[],e[r][1].end.offset-e[r][1].start.offset&&(c=Pi(c,[["enter",e[r][1],t],["exit",e[r][1],t]])),c=Pi(c,[["enter",n,t],["enter",o,t],["exit",o,t],["enter",i,t]]),c=Pi(c,Ji(t.parser.constructs.insideSpan.null,e.slice(r+1,l),t)),c=Pi(c,[["exit",i,t],["enter",a,t],["exit",a,t],["exit",n,t]]),e[l][1].end.offset-e[l][1].start.offset?(u=2,c=Pi(c,[["enter",e[l][1],t],["exit",e[l][1],t]])):u=0,Si(e,r-1,l-r+3,c),l=r+c.length-u-2;break}l=-1;for(;++l<e.length;)"attentionSequence"===e[l][1].type&&(e[l][1].type="data");return e}};function Xi(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const Zi={name:"autolink",tokenize:function(e,t,r){let n=1;return function(t){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(t),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),i};function i(t){return Di(t)?(e.consume(t),o):ji(t)?c(t):r(t)}function o(e){return 43===e||45===e||46===e||Ri(e)?a(e):c(e)}function a(t){return 58===t?(e.consume(t),s):(43===t||45===t||46===t||Ri(t))&&n++<32?(e.consume(t),a):c(t)}function s(t){return 62===t?(e.exit("autolinkProtocol"),h(t)):null===t||32===t||60===t||Li(t)?r(t):(e.consume(t),s)}function c(t){return 64===t?(e.consume(t),n=0,u):ji(t)?(e.consume(t),c):r(t)}function u(e){return Ri(e)?l(e):r(e)}function l(t){return 46===t?(e.consume(t),n=0,u):62===t?(e.exit("autolinkProtocol").type="autolinkEmail",h(t)):f(t)}function f(t){return(45===t||Ri(t))&&n++<63?(e.consume(t),45===t?f:l):r(t)}function h(r){return e.enter("autolinkMarker"),e.consume(r),e.exit("autolinkMarker"),e.exit("autolink"),t}}};const eo={tokenize:function(e,t,r){return Vi(e,(function(e){return null===e||zi(e)?t(e):r(e)}),"linePrefix")},partial:!0};const to={name:"blockQuote",tokenize:function(e,t,r){const n=this;return function(t){if(62===t){const r=n.containerState;return r.open||(e.enter("blockQuote",{_container:!0}),r.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(t),e.exit("blockQuoteMarker"),i}return r(t)};function i(r){return Mi(r)?(e.enter("blockQuotePrefixWhitespace"),e.consume(r),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(r))}},continuation:{tokenize:function(e,t,r){return Vi(e,e.attempt(to,t,r),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}},exit:function(e){e.exit("blockQuote")}};const ro={name:"characterEscape",tokenize:function(e,t,r){return function(t){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(t),e.exit("escapeMarker"),n};function n(n){return Ii(n)?(e.enter("characterEscapeValue"),e.consume(n),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):r(n)}}};const no={AEli:"Æ",AElig:"Æ",AM:"&",AMP:"&",Aacut:"Á",Aacute:"Á",Abreve:"Ă",Acir:"Â",Acirc:"Â",Acy:"А",Afr:"𝔄",Agrav:"À",Agrave:"À",Alpha:"Α",Amacr:"Ā",And:"⩓",Aogon:"Ą",Aopf:"𝔸",ApplyFunction:"",Arin:"Å",Aring:"Å",Ascr:"𝒜",Assign:"≔",Atild:"Ã",Atilde:"Ã",Aum:"Ä",Auml:"Ä",Backslash:"∖",Barv:"⫧",Barwed:"⌆",Bcy:"Б",Because:"∵",Bernoullis:"ℬ",Beta:"Β",Bfr:"𝔅",Bopf:"𝔹",Breve:"˘",Bscr:"ℬ",Bumpeq:"≎",CHcy:"Ч",COP:"©",COPY:"©",Cacute:"Ć",Cap:"⋒",CapitalDifferentialD:"ⅅ",Cayleys:"ℭ",Ccaron:"Č",Ccedi:"Ç",Ccedil:"Ç",Ccirc:"Ĉ",Cconint:"∰",Cdot:"Ċ",Cedilla:"¸",CenterDot:"·",Cfr:"ℭ",Chi:"Χ",CircleDot:"⊙",CircleMinus:"⊖",CirclePlus:"⊕",CircleTimes:"⊗",ClockwiseContourIntegral:"∲",CloseCurlyDoubleQuote:"”",CloseCurlyQuote:"’",Colon:"∷",Colone:"⩴",Congruent:"≡",Conint:"∯",ContourIntegral:"∮",Copf:"ℂ",Coproduct:"∐",CounterClockwiseContourIntegral:"∳",Cross:"⨯",Cscr:"𝒞",Cup:"⋓",CupCap:"≍",DD:"ⅅ",DDotrahd:"⤑",DJcy:"Ђ",DScy:"Ѕ",DZcy:"Џ",Dagger:"‡",Darr:"↡",Dashv:"⫤",Dcaron:"Ď",Dcy:"Д",Del:"∇",Delta:"Δ",Dfr:"𝔇",DiacriticalAcute:"´",DiacriticalDot:"˙",DiacriticalDoubleAcute:"˝",DiacriticalGrave:"`",DiacriticalTilde:"˜",Diamond:"⋄",DifferentialD:"ⅆ",Dopf:"𝔻",Dot:"¨",DotDot:"⃜",DotEqual:"≐",DoubleContourIntegral:"∯",DoubleDot:"¨",DoubleDownArrow:"⇓",DoubleLeftArrow:"⇐",DoubleLeftRightArrow:"⇔",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"⟸",DoubleLongLeftRightArrow:"⟺",DoubleLongRightArrow:"⟹",DoubleRightArrow:"⇒",DoubleRightTee:"⊨",DoubleUpArrow:"⇑",DoubleUpDownArrow:"⇕",DoubleVerticalBar:"∥",DownArrow:"↓",DownArrowBar:"⤓",DownArrowUpArrow:"⇵",DownBreve:"̑",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVector:"↽",DownLeftVectorBar:"⥖",DownRightTeeVector:"⥟",DownRightVector:"⇁",DownRightVectorBar:"⥗",DownTee:"⊤",DownTeeArrow:"↧",Downarrow:"⇓",Dscr:"𝒟",Dstrok:"Đ",ENG:"Ŋ",ET:"Ð",ETH:"Ð",Eacut:"É",Eacute:"É",Ecaron:"Ě",Ecir:"Ê",Ecirc:"Ê",Ecy:"Э",Edot:"Ė",Efr:"𝔈",Egrav:"È",Egrave:"È",Element:"∈",Emacr:"Ē",EmptySmallSquare:"◻",EmptyVerySmallSquare:"▫",Eogon:"Ę",Eopf:"𝔼",Epsilon:"Ε",Equal:"⩵",EqualTilde:"≂",Equilibrium:"⇌",Escr:"ℰ",Esim:"⩳",Eta:"Η",Eum:"Ë",Euml:"Ë",Exists:"∃",ExponentialE:"ⅇ",Fcy:"Ф",Ffr:"𝔉",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",Fopf:"𝔽",ForAll:"∀",Fouriertrf:"ℱ",Fscr:"ℱ",GJcy:"Ѓ",G:">",GT:">",Gamma:"Γ",Gammad:"Ϝ",Gbreve:"Ğ",Gcedil:"Ģ",Gcirc:"Ĝ",Gcy:"Г",Gdot:"Ġ",Gfr:"𝔊",Gg:"⋙",Gopf:"𝔾",GreaterEqual:"≥",GreaterEqualLess:"⋛",GreaterFullEqual:"≧",GreaterGreater:"⪢",GreaterLess:"≷",GreaterSlantEqual:"⩾",GreaterTilde:"≳",Gscr:"𝒢",Gt:"≫",HARDcy:"Ъ",Hacek:"ˇ",Hat:"^",Hcirc:"Ĥ",Hfr:"ℌ",HilbertSpace:"ℋ",Hopf:"ℍ",HorizontalLine:"─",Hscr:"ℋ",Hstrok:"Ħ",HumpDownHump:"≎",HumpEqual:"≏",IEcy:"Е",IJlig:"IJ",IOcy:"Ё",Iacut:"Í",Iacute:"Í",Icir:"Î",Icirc:"Î",Icy:"И",Idot:"İ",Ifr:"ℑ",Igrav:"Ì",Igrave:"Ì",Im:"ℑ",Imacr:"Ī",ImaginaryI:"ⅈ",Implies:"⇒",Int:"∬",Integral:"∫",Intersection:"⋂",InvisibleComma:"",InvisibleTimes:"",Iogon:"Į",Iopf:"𝕀",Iota:"Ι",Iscr:"ℐ",Itilde:"Ĩ",Iukcy:"І",Ium:"Ï",Iuml:"Ï",Jcirc:"Ĵ",Jcy:"Й",Jfr:"𝔍",Jopf:"𝕁",Jscr:"𝒥",Jsercy:"Ј",Jukcy:"Є",KHcy:"Х",KJcy:"Ќ",Kappa:"Κ",Kcedil:"Ķ",Kcy:"К",Kfr:"𝔎",Kopf:"𝕂",Kscr:"𝒦",LJcy:"Љ",L:"<",LT:"<",Lacute:"Ĺ",Lambda:"Λ",Lang:"⟪",Laplacetrf:"ℒ",Larr:"↞",Lcaron:"Ľ",Lcedil:"Ļ",Lcy:"Л",LeftAngleBracket:"⟨",LeftArrow:"←",LeftArrowBar:"⇤",LeftArrowRightArrow:"⇆",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVector:"⇃",LeftDownVectorBar:"⥙",LeftFloor:"⌊",LeftRightArrow:"↔",LeftRightVector:"⥎",LeftTee:"⊣",LeftTeeArrow:"↤",LeftTeeVector:"⥚",LeftTriangle:"⊲",LeftTriangleBar:"⧏",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVector:"↿",LeftUpVectorBar:"⥘",LeftVector:"↼",LeftVectorBar:"⥒",Leftarrow:"⇐",Leftrightarrow:"⇔",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",LessLess:"⪡",LessSlantEqual:"⩽",LessTilde:"≲",Lfr:"𝔏",Ll:"⋘",Lleftarrow:"⇚",Lmidot:"Ŀ",LongLeftArrow:"⟵",LongLeftRightArrow:"⟷",LongRightArrow:"⟶",Longleftarrow:"⟸",Longleftrightarrow:"⟺",Longrightarrow:"⟹",Lopf:"𝕃",LowerLeftArrow:"↙",LowerRightArrow:"↘",Lscr:"ℒ",Lsh:"↰",Lstrok:"Ł",Lt:"≪",Map:"⤅",Mcy:"М",MediumSpace:" ",Mellintrf:"ℳ",Mfr:"𝔐",MinusPlus:"∓",Mopf:"𝕄",Mscr:"ℳ",Mu:"Μ",NJcy:"Њ",Nacute:"Ń",Ncaron:"Ň",Ncedil:"Ņ",Ncy:"Н",NegativeMediumSpace:"",NegativeThickSpace:"",NegativeThinSpace:"",NegativeVeryThinSpace:"",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:"\n",Nfr:"𝔑",NoBreak:"",NonBreakingSpace:" ",Nopf:"ℕ",Not:"⫬",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",NotLeftTriangle:"⋪",NotLeftTriangleBar:"⧏̸",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangle:"⋫",NotRightTriangleBar:"⧐̸",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",Nscr:"𝒩",Ntild:"Ñ",Ntilde:"Ñ",Nu:"Ν",OElig:"Œ",Oacut:"Ó",Oacute:"Ó",Ocir:"Ô",Ocirc:"Ô",Ocy:"О",Odblac:"Ő",Ofr:"𝔒",Ograv:"Ò",Ograve:"Ò",Omacr:"Ō",Omega:"Ω",Omicron:"Ο",Oopf:"𝕆",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",Or:"⩔",Oscr:"𝒪",Oslas:"Ø",Oslash:"Ø",Otild:"Õ",Otilde:"Õ",Otimes:"⨷",Oum:"Ö",Ouml:"Ö",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",PartialD:"∂",Pcy:"П",Pfr:"𝔓",Phi:"Φ",Pi:"Π",PlusMinus:"±",Poincareplane:"ℌ",Popf:"ℙ",Pr:"⪻",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",Prime:"″",Product:"∏",Proportion:"∷",Proportional:"∝",Pscr:"𝒫",Psi:"Ψ",QUO:'"',QUOT:'"',Qfr:"𝔔",Qopf:"ℚ",Qscr:"𝒬",RBarr:"⤐",RE:"®",REG:"®",Racute:"Ŕ",Rang:"⟫",Rarr:"↠",Rarrtl:"⤖",Rcaron:"Ř",Rcedil:"Ŗ",Rcy:"Р",Re:"ℜ",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",Rfr:"ℜ",Rho:"Ρ",RightAngleBracket:"⟩",RightArrow:"→",RightArrowBar:"⇥",RightArrowLeftArrow:"⇄",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVector:"⇂",RightDownVectorBar:"⥕",RightFloor:"⌋",RightTee:"⊢",RightTeeArrow:"↦",RightTeeVector:"⥛",RightTriangle:"⊳",RightTriangleBar:"⧐",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVector:"↾",RightUpVectorBar:"⥔",RightVector:"⇀",RightVectorBar:"⥓",Rightarrow:"⇒",Ropf:"ℝ",RoundImplies:"⥰",Rrightarrow:"⇛",Rscr:"ℛ",Rsh:"↱",RuleDelayed:"⧴",SHCHcy:"Щ",SHcy:"Ш",SOFTcy:"Ь",Sacute:"Ś",Sc:"⪼",Scaron:"Š",Scedil:"Ş",Scirc:"Ŝ",Scy:"С",Sfr:"𝔖",ShortDownArrow:"↓",ShortLeftArrow:"←",ShortRightArrow:"→",ShortUpArrow:"↑",Sigma:"Σ",SmallCircle:"∘",Sopf:"𝕊",Sqrt:"√",Square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",Sscr:"𝒮",Star:"⋆",Sub:"⋐",Subset:"⋐",SubsetEqual:"⊆",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",SuchThat:"∋",Sum:"∑",Sup:"⋑",Superset:"⊃",SupersetEqual:"⊇",Supset:"⋑",THOR:"Þ",THORN:"Þ",TRADE:"™",TSHcy:"Ћ",TScy:"Ц",Tab:"\t",Tau:"Τ",Tcaron:"Ť",Tcedil:"Ţ",Tcy:"Т",Tfr:"𝔗",Therefore:"∴",Theta:"Θ",ThickSpace:" ",ThinSpace:" ",Tilde:"∼",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",Topf:"𝕋",TripleDot:"⃛",Tscr:"𝒯",Tstrok:"Ŧ",Uacut:"Ú",Uacute:"Ú",Uarr:"↟",Uarrocir:"⥉",Ubrcy:"Ў",Ubreve:"Ŭ",Ucir:"Û",Ucirc:"Û",Ucy:"У",Udblac:"Ű",Ufr:"𝔘",Ugrav:"Ù",Ugrave:"Ù",Umacr:"Ū",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"⋃",UnionPlus:"⊎",Uogon:"Ų",Uopf:"𝕌",UpArrow:"↑",UpArrowBar:"⤒",UpArrowDownArrow:"⇅",UpDownArrow:"↕",UpEquilibrium:"⥮",UpTee:"⊥",UpTeeArrow:"↥",Uparrow:"⇑",Updownarrow:"⇕",UpperLeftArrow:"↖",UpperRightArrow:"↗",Upsi:"ϒ",Upsilon:"Υ",Uring:"Ů",Uscr:"𝒰",Utilde:"Ũ",Uum:"Ü",Uuml:"Ü",VDash:"⊫",Vbar:"⫫",Vcy:"В",Vdash:"⊩",Vdashl:"⫦",Vee:"⋁",Verbar:"‖",Vert:"‖",VerticalBar:"∣",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:" ",Vfr:"𝔙",Vopf:"𝕍",Vscr:"𝒱",Vvdash:"⊪",Wcirc:"Ŵ",Wedge:"⋀",Wfr:"𝔚",Wopf:"𝕎",Wscr:"𝒲",Xfr:"𝔛",Xi:"Ξ",Xopf:"𝕏",Xscr:"𝒳",YAcy:"Я",YIcy:"Ї",YUcy:"Ю",Yacut:"Ý",Yacute:"Ý",Ycirc:"Ŷ",Ycy:"Ы",Yfr:"𝔜",Yopf:"𝕐",Yscr:"𝒴",Yuml:"Ÿ",ZHcy:"Ж",Zacute:"Ź",Zcaron:"Ž",Zcy:"З",Zdot:"Ż",ZeroWidthSpace:"",Zeta:"Ζ",Zfr:"ℨ",Zopf:"ℤ",Zscr:"𝒵",aacut:"á",aacute:"á",abreve:"ă",ac:"∾",acE:"∾̳",acd:"∿",acir:"â",acirc:"â",acut:"´",acute:"´",acy:"а",aeli:"æ",aelig:"æ",af:"",afr:"𝔞",agrav:"à",agrave:"à",alefsym:"ℵ",aleph:"ℵ",alpha:"α",amacr:"ā",amalg:"⨿",am:"&",amp:"&",and:"∧",andand:"⩕",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",ange:"⦤",angle:"∠",angmsd:"∡",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angst:"Å",angzarr:"⍼",aogon:"ą",aopf:"𝕒",ap:"≈",apE:"⩰",apacir:"⩯",ape:"≊",apid:"≋",apos:"'",approx:"≈",approxeq:"≊",arin:"å",aring:"å",ascr:"𝒶",ast:"*",asymp:"≈",asympeq:"≍",atild:"ã",atilde:"ã",aum:"ä",auml:"ä",awconint:"∳",awint:"⨑",bNot:"⫭",backcong:"≌",backepsilon:"϶",backprime:"‵",backsim:"∽",backsimeq:"⋍",barvee:"⊽",barwed:"⌅",barwedge:"⌅",bbrk:"⎵",bbrktbrk:"⎶",bcong:"≌",bcy:"б",bdquo:"„",becaus:"∵",because:"∵",bemptyv:"⦰",bepsi:"϶",bernou:"ℬ",beta:"β",beth:"ℶ",between:"≬",bfr:"𝔟",bigcap:"⋂",bigcirc:"◯",bigcup:"⋃",bigodot:"⨀",bigoplus:"⨁",bigotimes:"⨂",bigsqcup:"⨆",bigstar:"★",bigtriangledown:"▽",bigtriangleup:"△",biguplus:"⨄",bigvee:"⋁",bigwedge:"⋀",bkarow:"⤍",blacklozenge:"⧫",blacksquare:"▪",blacktriangle:"▴",blacktriangledown:"▾",blacktriangleleft:"◂",blacktriangleright:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bnot:"⌐",bopf:"𝕓",bot:"⊥",bottom:"⊥",bowtie:"⋈",boxDL:"╗",boxDR:"╔",boxDl:"╖",boxDr:"╓",boxH:"═",boxHD:"╦",boxHU:"╩",boxHd:"╤",boxHu:"╧",boxUL:"╝",boxUR:"╚",boxUl:"╜",boxUr:"╙",boxV:"║",boxVH:"╬",boxVL:"╣",boxVR:"╠",boxVh:"╫",boxVl:"╢",boxVr:"╟",boxbox:"⧉",boxdL:"╕",boxdR:"╒",boxdl:"┐",boxdr:"┌",boxh:"─",boxhD:"╥",boxhU:"╨",boxhd:"┬",boxhu:"┴",boxminus:"⊟",boxplus:"⊞",boxtimes:"⊠",boxuL:"╛",boxuR:"╘",boxul:"┘",boxur:"└",boxv:"│",boxvH:"╪",boxvL:"╡",boxvR:"╞",boxvh:"┼",boxvl:"┤",boxvr:"├",bprime:"‵",breve:"˘",brvba:"¦",brvbar:"¦",bscr:"𝒷",bsemi:"⁏",bsim:"∽",bsime:"⋍",bsol:"\\",bsolb:"⧅",bsolhsub:"⟈",bull:"•",bullet:"•",bump:"≎",bumpE:"⪮",bumpe:"≏",bumpeq:"≏",cacute:"ć",cap:"∩",capand:"⩄",capbrcup:"⩉",capcap:"⩋",capcup:"⩇",capdot:"⩀",caps:"∩︀",caret:"⁁",caron:"ˇ",ccaps:"⩍",ccaron:"č",ccedi:"ç",ccedil:"ç",ccirc:"ĉ",ccups:"⩌",ccupssm:"⩐",cdot:"ċ",cedi:"¸",cedil:"¸",cemptyv:"⦲",cen:"¢",cent:"¢",centerdot:"·",cfr:"𝔠",chcy:"ч",check:"✓",checkmark:"✓",chi:"χ",cir:"○",cirE:"⧃",circ:"ˆ",circeq:"≗",circlearrowleft:"↺",circlearrowright:"↻",circledR:"®",circledS:"Ⓢ",circledast:"⊛",circledcirc:"⊚",circleddash:"⊝",cire:"≗",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",clubs:"♣",clubsuit:"♣",colon:":",colone:"≔",coloneq:"≔",comma:",",commat:"@",comp:"∁",compfn:"∘",complement:"∁",complexes:"ℂ",cong:"≅",congdot:"⩭",conint:"∮",copf:"𝕔",coprod:"∐",cop:"©",copy:"©",copysr:"℗",crarr:"↵",cross:"✗",cscr:"𝒸",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",cuesc:"⋟",cularr:"↶",cularrp:"⤽",cup:"∪",cupbrcap:"⩈",cupcap:"⩆",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curarrm:"⤼",curlyeqprec:"⋞",curlyeqsucc:"⋟",curlyvee:"⋎",curlywedge:"⋏",curre:"¤",curren:"¤",curvearrowleft:"↶",curvearrowright:"↷",cuvee:"⋎",cuwed:"⋏",cwconint:"∲",cwint:"∱",cylcty:"⌭",dArr:"⇓",dHar:"⥥",dagger:"†",daleth:"ℸ",darr:"↓",dash:"‐",dashv:"⊣",dbkarow:"⤏",dblac:"˝",dcaron:"ď",dcy:"д",dd:"ⅆ",ddagger:"‡",ddarr:"⇊",ddotseq:"⩷",de:"°",deg:"°",delta:"δ",demptyv:"⦱",dfisht:"⥿",dfr:"𝔡",dharl:"⇃",dharr:"⇂",diam:"⋄",diamond:"⋄",diamondsuit:"♦",diams:"♦",die:"¨",digamma:"ϝ",disin:"⋲",div:"÷",divid:"÷",divide:"÷",divideontimes:"⋇",divonx:"⋇",djcy:"ђ",dlcorn:"⌞",dlcrop:"⌍",dollar:"$",dopf:"𝕕",dot:"˙",doteq:"≐",doteqdot:"≑",dotminus:"∸",dotplus:"∔",dotsquare:"⊡",doublebarwedge:"⌆",downarrow:"↓",downdownarrows:"⇊",downharpoonleft:"⇃",downharpoonright:"⇂",drbkarow:"⤐",drcorn:"⌟",drcrop:"⌌",dscr:"𝒹",dscy:"ѕ",dsol:"⧶",dstrok:"đ",dtdot:"⋱",dtri:"▿",dtrif:"▾",duarr:"⇵",duhar:"⥯",dwangle:"⦦",dzcy:"џ",dzigrarr:"⟿",eDDot:"⩷",eDot:"≑",eacut:"é",eacute:"é",easter:"⩮",ecaron:"ě",ecir:"ê",ecirc:"ê",ecolon:"≕",ecy:"э",edot:"ė",ee:"ⅇ",efDot:"≒",efr:"𝔢",eg:"⪚",egrav:"è",egrave:"è",egs:"⪖",egsdot:"⪘",el:"⪙",elinters:"⏧",ell:"ℓ",els:"⪕",elsdot:"⪗",emacr:"ē",empty:"∅",emptyset:"∅",emptyv:"∅",emsp13:" ",emsp14:" ",emsp:" ",eng:"ŋ",ensp:" ",eogon:"ę",eopf:"𝕖",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",epsilon:"ε",epsiv:"ϵ",eqcirc:"≖",eqcolon:"≕",eqsim:"≂",eqslantgtr:"⪖",eqslantless:"⪕",equals:"=",equest:"≟",equiv:"≡",equivDD:"⩸",eqvparsl:"⧥",erDot:"≓",erarr:"⥱",escr:"ℯ",esdot:"≐",esim:"≂",eta:"η",et:"ð",eth:"ð",eum:"ë",euml:"ë",euro:"€",excl:"!",exist:"∃",expectation:"ℰ",exponentiale:"ⅇ",fallingdotseq:"≒",fcy:"ф",female:"♀",ffilig:"ffi",fflig:"ff",ffllig:"ffl",ffr:"𝔣",filig:"fi",fjlig:"fj",flat:"♭",fllig:"fl",fltns:"▱",fnof:"ƒ",fopf:"𝕗",forall:"∀",fork:"⋔",forkv:"⫙",fpartint:"⨍",frac1:"¼",frac12:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac3:"¾",frac34:"¾",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",fscr:"𝒻",gE:"≧",gEl:"⪌",gacute:"ǵ",gamma:"γ",gammad:"ϝ",gap:"⪆",gbreve:"ğ",gcirc:"ĝ",gcy:"г",gdot:"ġ",ge:"≥",gel:"⋛",geq:"≥",geqq:"≧",geqslant:"⩾",ges:"⩾",gescc:"⪩",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",gfr:"𝔤",gg:"≫",ggg:"⋙",gimel:"ℷ",gjcy:"ѓ",gl:"≷",glE:"⪒",gla:"⪥",glj:"⪤",gnE:"≩",gnap:"⪊",gnapprox:"⪊",gne:"⪈",gneq:"⪈",gneqq:"≩",gnsim:"⋧",gopf:"𝕘",grave:"`",gscr:"ℊ",gsim:"≳",gsime:"⪎",gsiml:"⪐",g:">",gt:">",gtcc:"⪧",gtcir:"⩺",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",hArr:"⇔",hairsp:" ",half:"½",hamilt:"ℋ",hardcy:"ъ",harr:"↔",harrcir:"⥈",harrw:"↭",hbar:"ℏ",hcirc:"ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",hercon:"⊹",hfr:"𝔥",hksearow:"⤥",hkswarow:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"↪",hopf:"𝕙",horbar:"―",hscr:"𝒽",hslash:"ℏ",hstrok:"ħ",hybull:"⁃",hyphen:"‐",iacut:"í",iacute:"í",ic:"",icir:"î",icirc:"î",icy:"и",iecy:"е",iexc:"¡",iexcl:"¡",iff:"⇔",ifr:"𝔦",igrav:"ì",igrave:"ì",ii:"ⅈ",iiiint:"⨌",iiint:"∭",iinfin:"⧜",iiota:"℩",ijlig:"ij",imacr:"ī",image:"ℑ",imagline:"ℐ",imagpart:"ℑ",imath:"ı",imof:"⊷",imped:"Ƶ",in:"∈",incare:"℅",infin:"∞",infintie:"⧝",inodot:"ı",int:"∫",intcal:"⊺",integers:"ℤ",intercal:"⊺",intlarhk:"⨗",intprod:"⨼",iocy:"ё",iogon:"į",iopf:"𝕚",iota:"ι",iprod:"⨼",iques:"¿",iquest:"¿",iscr:"𝒾",isin:"∈",isinE:"⋹",isindot:"⋵",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"",itilde:"ĩ",iukcy:"і",ium:"ï",iuml:"ï",jcirc:"ĵ",jcy:"й",jfr:"𝔧",jmath:"ȷ",jopf:"𝕛",jscr:"𝒿",jsercy:"ј",jukcy:"є",kappa:"κ",kappav:"ϰ",kcedil:"ķ",kcy:"к",kfr:"𝔨",kgreen:"ĸ",khcy:"х",kjcy:"ќ",kopf:"𝕜",kscr:"𝓀",lAarr:"⇚",lArr:"⇐",lAtail:"⤛",lBarr:"⤎",lE:"≦",lEg:"⪋",lHar:"⥢",lacute:"ĺ",laemptyv:"⦴",lagran:"ℒ",lambda:"λ",lang:"⟨",langd:"⦑",langle:"⟨",lap:"⪅",laqu:"«",laquo:"«",larr:"←",larrb:"⇤",larrbfs:"⤟",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",lat:"⪫",latail:"⤙",late:"⪭",lates:"⪭︀",lbarr:"⤌",lbbrk:"❲",lbrace:"{",lbrack:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",lcaron:"ľ",lcedil:"ļ",lceil:"⌈",lcub:"{",lcy:"л",ldca:"⤶",ldquo:"“",ldquor:"„",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",le:"≤",leftarrow:"←",leftarrowtail:"↢",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",leftrightarrow:"↔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",leftthreetimes:"⋋",leg:"⋚",leq:"≤",leqq:"≦",leqslant:"⩽",les:"⩽",lescc:"⪨",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessapprox:"⪅",lessdot:"⋖",lesseqgtr:"⋚",lesseqqgtr:"⪋",lessgtr:"≶",lesssim:"≲",lfisht:"⥼",lfloor:"⌊",lfr:"𝔩",lg:"≶",lgE:"⪑",lhard:"↽",lharu:"↼",lharul:"⥪",lhblk:"▄",ljcy:"љ",ll:"≪",llarr:"⇇",llcorner:"⌞",llhard:"⥫",lltri:"◺",lmidot:"ŀ",lmoust:"⎰",lmoustache:"⎰",lnE:"≨",lnap:"⪉",lnapprox:"⪉",lne:"⪇",lneq:"⪇",lneqq:"≨",lnsim:"⋦",loang:"⟬",loarr:"⇽",lobrk:"⟦",longleftarrow:"⟵",longleftrightarrow:"⟷",longmapsto:"⟼",longrightarrow:"⟶",looparrowleft:"↫",looparrowright:"↬",lopar:"⦅",lopf:"𝕝",loplus:"⨭",lotimes:"⨴",lowast:"∗",lowbar:"_",loz:"◊",lozenge:"◊",lozf:"⧫",lpar:"(",lparlt:"⦓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"⥭",lrm:"",lrtri:"⊿",lsaquo:"‹",lscr:"𝓁",lsh:"↰",lsim:"≲",lsime:"⪍",lsimg:"⪏",lsqb:"[",lsquo:"‘",lsquor:"‚",lstrok:"ł",l:"<",lt:"<",ltcc:"⪦",ltcir:"⩹",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltrPar:"⦖",ltri:"◃",ltrie:"⊴",ltrif:"◂",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",mDDot:"∺",mac:"¯",macr:"¯",male:"♂",malt:"✠",maltese:"✠",map:"↦",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",mcy:"м",mdash:"—",measuredangle:"∡",mfr:"𝔪",mho:"℧",micr:"µ",micro:"µ",mid:"∣",midast:"*",midcir:"⫰",middo:"·",middot:"·",minus:"−",minusb:"⊟",minusd:"∸",minusdu:"⨪",mlcp:"⫛",mldr:"…",mnplus:"∓",models:"⊧",mopf:"𝕞",mp:"∓",mscr:"𝓂",mstpos:"∾",mu:"μ",multimap:"⊸",mumap:"⊸",nGg:"⋙̸",nGt:"≫⃒",nGtv:"≫̸",nLeftarrow:"⇍",nLeftrightarrow:"⇎",nLl:"⋘̸",nLt:"≪⃒",nLtv:"≪̸",nRightarrow:"⇏",nVDash:"⊯",nVdash:"⊮",nabla:"∇",nacute:"ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ʼn",napprox:"≉",natur:"♮",natural:"♮",naturals:"ℕ",nbs:" ",nbsp:" ",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",ncaron:"ň",ncedil:"ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",ncy:"н",ndash:"–",ne:"≠",neArr:"⇗",nearhk:"⤤",nearr:"↗",nearrow:"↗",nedot:"≐̸",nequiv:"≢",nesear:"⤨",nesim:"≂̸",nexist:"∄",nexists:"∄",nfr:"𝔫",ngE:"≧̸",nge:"≱",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",ngsim:"≵",ngt:"≯",ngtr:"≯",nhArr:"⇎",nharr:"↮",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",njcy:"њ",nlArr:"⇍",nlE:"≦̸",nlarr:"↚",nldr:"‥",nle:"≰",nleftarrow:"↚",nleftrightarrow:"↮",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nlsim:"≴",nlt:"≮",nltri:"⋪",nltrie:"⋬",nmid:"∤",nopf:"𝕟",no:"¬",not:"¬",notin:"∉",notinE:"⋹̸",notindot:"⋵̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",npar:"∦",nparallel:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"⋠",npre:"⪯̸",nprec:"⊀",npreceq:"⪯̸",nrArr:"⇏",nrarr:"↛",nrarrc:"⤳̸",nrarrw:"↝̸",nrightarrow:"↛",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",nscr:"𝓃",nshortmid:"∤",nshortparallel:"∦",nsim:"≁",nsime:"≄",nsimeq:"≄",nsmid:"∤",nspar:"∦",nsqsube:"⋢",nsqsupe:"⋣",nsub:"⊄",nsubE:"⫅̸",nsube:"⊈",nsubset:"⊂⃒",nsubseteq:"⊈",nsubseteqq:"⫅̸",nsucc:"⊁",nsucceq:"⪰̸",nsup:"⊅",nsupE:"⫆̸",nsupe:"⊉",nsupset:"⊃⃒",nsupseteq:"⊉",nsupseteqq:"⫆̸",ntgl:"≹",ntild:"ñ",ntilde:"ñ",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",nu:"ν",num:"#",numero:"№",numsp:" ",nvDash:"⊭",nvHarr:"⤄",nvap:"≍⃒",nvdash:"⊬",nvge:"≥⃒",nvgt:">⃒",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwArr:"⇖",nwarhk:"⤣",nwarr:"↖",nwarrow:"↖",nwnear:"⤧",oS:"Ⓢ",oacut:"ó",oacute:"ó",oast:"⊛",ocir:"ô",ocirc:"ô",ocy:"о",odash:"⊝",odblac:"ő",odiv:"⨸",odot:"⊙",odsold:"⦼",oelig:"œ",ofcir:"⦿",ofr:"𝔬",ogon:"˛",ograv:"ò",ograve:"ò",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",omacr:"ō",omega:"ω",omicron:"ο",omid:"⦶",ominus:"⊖",oopf:"𝕠",opar:"⦷",operp:"⦹",oplus:"⊕",or:"∨",orarr:"↻",ord:"º",order:"ℴ",orderof:"ℴ",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oscr:"ℴ",oslas:"ø",oslash:"ø",osol:"⊘",otild:"õ",otilde:"õ",otimes:"⊗",otimesas:"⨶",oum:"ö",ouml:"ö",ovbar:"⌽",par:"¶",para:"¶",parallel:"∥",parsim:"⫳",parsl:"⫽",part:"∂",pcy:"п",percnt:"%",period:".",permil:"‰",perp:"⊥",pertenk:"‱",pfr:"𝔭",phi:"φ",phiv:"ϕ",phmmat:"ℳ",phone:"☎",pi:"π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"ℎ",plankv:"ℏ",plus:"+",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plusdo:"∔",plusdu:"⨥",pluse:"⩲",plusm:"±",plusmn:"±",plussim:"⨦",plustwo:"⨧",pm:"±",pointint:"⨕",popf:"𝕡",poun:"£",pound:"£",pr:"≺",prE:"⪳",prap:"⪷",prcue:"≼",pre:"⪯",prec:"≺",precapprox:"⪷",preccurlyeq:"≼",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",precsim:"≾",prime:"′",primes:"ℙ",prnE:"⪵",prnap:"⪹",prnsim:"⋨",prod:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",propto:"∝",prsim:"≾",prurel:"⊰",pscr:"𝓅",psi:"ψ",puncsp:" ",qfr:"𝔮",qint:"⨌",qopf:"𝕢",qprime:"⁗",qscr:"𝓆",quaternions:"ℍ",quatint:"⨖",quest:"?",questeq:"≟",quo:'"',quot:'"',rAarr:"⇛",rArr:"⇒",rAtail:"⤜",rBarr:"⤏",rHar:"⥤",race:"∽̱",racute:"ŕ",radic:"√",raemptyv:"⦳",rang:"⟩",rangd:"⦒",range:"⦥",rangle:"⟩",raqu:"»",raquo:"»",rarr:"→",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarrfs:"⤞",rarrhk:"↪",rarrlp:"↬",rarrpl:"⥅",rarrsim:"⥴",rarrtl:"↣",rarrw:"↝",ratail:"⤚",ratio:"∶",rationals:"ℚ",rbarr:"⤍",rbbrk:"❳",rbrace:"}",rbrack:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",rcaron:"ř",rcedil:"ŗ",rceil:"⌉",rcub:"}",rcy:"р",rdca:"⤷",rdldhar:"⥩",rdquo:"”",rdquor:"”",rdsh:"↳",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",rect:"▭",re:"®",reg:"®",rfisht:"⥽",rfloor:"⌋",rfr:"𝔯",rhard:"⇁",rharu:"⇀",rharul:"⥬",rho:"ρ",rhov:"ϱ",rightarrow:"→",rightarrowtail:"↣",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",rightthreetimes:"⋌",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"",rmoust:"⎱",rmoustache:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",robrk:"⟧",ropar:"⦆",ropf:"𝕣",roplus:"⨮",rotimes:"⨵",rpar:")",rpargt:"⦔",rppolint:"⨒",rrarr:"⇉",rsaquo:"›",rscr:"𝓇",rsh:"↱",rsqb:"]",rsquo:"’",rsquor:"’",rthree:"⋌",rtimes:"⋊",rtri:"▹",rtrie:"⊵",rtrif:"▸",rtriltri:"⧎",ruluhar:"⥨",rx:"℞",sacute:"ś",sbquo:"‚",sc:"≻",scE:"⪴",scap:"⪸",scaron:"š",sccue:"≽",sce:"⪰",scedil:"ş",scirc:"ŝ",scnE:"⪶",scnap:"⪺",scnsim:"⋩",scpolint:"⨓",scsim:"≿",scy:"с",sdot:"⋅",sdotb:"⊡",sdote:"⩦",seArr:"⇘",searhk:"⤥",searr:"↘",searrow:"↘",sec:"§",sect:"§",semi:";",seswar:"⤩",setminus:"∖",setmn:"∖",sext:"✶",sfr:"𝔰",sfrown:"⌢",sharp:"♯",shchcy:"щ",shcy:"ш",shortmid:"∣",shortparallel:"∥",sh:"",shy:"",sigma:"σ",sigmaf:"ς",sigmav:"ς",sim:"∼",simdot:"⩪",sime:"≃",simeq:"≃",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",slarr:"←",smallsetminus:"∖",smashp:"⨳",smeparsl:"⧤",smid:"∣",smile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",softcy:"ь",sol:"/",solb:"⧄",solbar:"⌿",sopf:"𝕤",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",squ:"□",square:"□",squarf:"▪",squf:"▪",srarr:"→",sscr:"𝓈",ssetmn:"∖",ssmile:"⌣",sstarf:"⋆",star:"☆",starf:"★",straightepsilon:"ϵ",straightphi:"ϕ",strns:"¯",sub:"⊂",subE:"⫅",subdot:"⪽",sube:"⊆",subedot:"⫃",submult:"⫁",subnE:"⫋",subne:"⊊",subplus:"⪿",subrarr:"⥹",subset:"⊂",subseteq:"⊆",subseteqq:"⫅",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succ:"≻",succapprox:"⪸",succcurlyeq:"≽",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",sum:"∑",sung:"♪",sup:"⊃",sup1:"¹",sup2:"²",sup3:"³",supE:"⫆",supdot:"⪾",supdsub:"⫘",supe:"⊇",supedot:"⫄",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supnE:"⫌",supne:"⊋",supplus:"⫀",supset:"⊃",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swArr:"⇙",swarhk:"⤦",swarr:"↙",swarrow:"↙",swnwar:"⤪",szli:"ß",szlig:"ß",target:"⌖",tau:"τ",tbrk:"⎴",tcaron:"ť",tcedil:"ţ",tcy:"т",tdot:"⃛",telrec:"⌕",tfr:"𝔱",there4:"∴",therefore:"∴",theta:"θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"∼",thinsp:" ",thkap:"≈",thksim:"∼",thor:"þ",thorn:"þ",tilde:"˜",time:"×",times:"×",timesb:"⊠",timesbar:"⨱",timesd:"⨰",tint:"∭",toea:"⤨",top:"⊤",topbot:"⌶",topcir:"⫱",topf:"𝕥",topfork:"⫚",tosa:"⤩",tprime:"‴",trade:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴",triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",tscr:"𝓉",tscy:"ц",tshcy:"ћ",tstrok:"ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",uArr:"⇑",uHar:"⥣",uacut:"ú",uacute:"ú",uarr:"↑",ubrcy:"ў",ubreve:"ŭ",ucir:"û",ucirc:"û",ucy:"у",udarr:"⇅",udblac:"ű",udhar:"⥮",ufisht:"⥾",ufr:"𝔲",ugrav:"ù",ugrave:"ù",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",umacr:"ū",um:"¨",uml:"¨",uogon:"ų",uopf:"𝕦",uparrow:"↑",updownarrow:"↕",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",upsi:"υ",upsih:"ϒ",upsilon:"υ",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",uring:"ů",urtri:"◹",uscr:"𝓊",utdot:"⋰",utilde:"ũ",utri:"▵",utrif:"▴",uuarr:"⇈",uum:"ü",uuml:"ü",uwangle:"⦧",vArr:"⇕",vBar:"⫨",vBarv:"⫩",vDash:"⊨",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",varr:"↕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀",vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",vcy:"в",vdash:"⊢",vee:"∨",veebar:"⊻",veeeq:"≚",vellip:"⋮",verbar:"|",vert:"|",vfr:"𝔳",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",vopf:"𝕧",vprop:"∝",vrtri:"⊳",vscr:"𝓋",vsubnE:"⫋︀",vsubne:"⊊︀",vsupnE:"⫌︀",vsupne:"⊋︀",vzigzag:"⦚",wcirc:"ŵ",wedbar:"⩟",wedge:"∧",wedgeq:"≙",weierp:"℘",wfr:"𝔴",wopf:"𝕨",wp:"℘",wr:"≀",wreath:"≀",wscr:"𝓌",xcap:"⋂",xcirc:"◯",xcup:"⋃",xdtri:"▽",xfr:"𝔵",xhArr:"⟺",xharr:"⟷",xi:"ξ",xlArr:"⟸",xlarr:"⟵",xmap:"⟼",xnis:"⋻",xodot:"⨀",xopf:"𝕩",xoplus:"⨁",xotime:"⨂",xrArr:"⟹",xrarr:"⟶",xscr:"𝓍",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"⋁",xwedge:"⋀",yacut:"ý",yacute:"ý",yacy:"я",ycirc:"ŷ",ycy:"ы",ye:"¥",yen:"¥",yfr:"𝔶",yicy:"ї",yopf:"𝕪",yscr:"𝓎",yucy:"ю",yum:"ÿ",yuml:"ÿ",zacute:"ź",zcaron:"ž",zcy:"з",zdot:"ż",zeetrf:"ℨ",zeta:"ζ",zfr:"𝔷",zhcy:"ж",zigrarr:"⇝",zopf:"𝕫",zscr:"𝓏",zwj:"",zwnj:""},io={}.hasOwnProperty;function oo(e){return!!io.call(no,e)&&no[e]}const ao={name:"characterReference",tokenize:function(e,t,r){const n=this;let i,o,a=0;return function(t){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(t),e.exit("characterReferenceMarker"),s};function s(t){return 35===t?(e.enter("characterReferenceMarkerNumeric"),e.consume(t),e.exit("characterReferenceMarkerNumeric"),c):(e.enter("characterReferenceValue"),i=31,o=Ri,u(t))}function c(t){return 88===t||120===t?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(t),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),i=6,o=Ti,u):(e.enter("characterReferenceValue"),i=7,o=Oi,u(t))}function u(s){let c;return 59===s&&a?(c=e.exit("characterReferenceValue"),o!==Ri||oo(n.sliceSerialize(c))?(e.enter("characterReferenceMarker"),e.consume(s),e.exit("characterReferenceMarker"),e.exit("characterReference"),t):r(s)):o(s)&&a++<i?(e.consume(s),u):r(s)}}};const so={name:"codeFenced",tokenize:function(e,t,r){const n=this,i={tokenize:function(e,t,r){let n=0;return Vi(e,i,"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4);function i(t){return e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),o(t)}function o(t){return t===c?(e.consume(t),n++,o):n<u?r(t):(e.exit("codeFencedFenceSequence"),Vi(e,a,"whitespace")(t))}function a(n){return null===n||zi(n)?(e.exit("codeFencedFence"),t(n)):r(n)}},partial:!0},o={tokenize:function(e,t,r){const n=this;return i;function i(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),o}function o(e){return n.parser.lazy[n.now().line]?r(e):t(e)}},partial:!0},a=this.events[this.events.length-1],s=a&&"linePrefix"===a[1].type?a[2].sliceSerialize(a[1],!0).length:0;let c,u=0;return function(t){return e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),c=t,l(t)};function l(t){return t===c?(e.consume(t),u++,l):(e.exit("codeFencedFenceSequence"),u<3?r(t):Vi(e,f,"whitespace")(t))}function f(t){return null===t||zi(t)?m(t):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),h(t))}function h(t){return null===t||qi(t)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),Vi(e,p,"whitespace")(t)):96===t&&t===c?r(t):(e.consume(t),h)}function p(t){return null===t||zi(t)?m(t):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),d(t))}function d(t){return null===t||zi(t)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),m(t)):96===t&&t===c?r(t):(e.consume(t),d)}function m(r){return e.exit("codeFencedFence"),n.interrupt?t(r):g(r)}function g(t){return null===t?y(t):zi(t)?e.attempt(o,e.attempt(i,y,s?Vi(e,g,"linePrefix",s+1):g),y)(t):(e.enter("codeFlowValue"),v(t))}function v(t){return null===t||zi(t)?(e.exit("codeFlowValue"),g(t)):(e.consume(t),v)}function y(r){return e.exit("codeFenced"),t(r)}},concrete:!0};const co={name:"codeIndented",tokenize:function(e,t,r){const n=this;return function(t){return e.enter("codeIndented"),Vi(e,i,"linePrefix",5)(t)};function i(e){const t=n.events[n.events.length-1];return t&&"linePrefix"===t[1].type&&t[2].sliceSerialize(t[1],!0).length>=4?o(e):r(e)}function o(t){return null===t?s(t):zi(t)?e.attempt(uo,o,s)(t):(e.enter("codeFlowValue"),a(t))}function a(t){return null===t||zi(t)?(e.exit("codeFlowValue"),o(t)):(e.consume(t),a)}function s(r){return e.exit("codeIndented"),t(r)}}},uo={tokenize:function(e,t,r){const n=this;return i;function i(t){return n.parser.lazy[n.now().line]?r(t):zi(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i):Vi(e,o,"linePrefix",5)(t)}function o(e){const o=n.events[n.events.length-1];return o&&"linePrefix"===o[1].type&&o[2].sliceSerialize(o[1],!0).length>=4?t(e):zi(e)?i(e):r(e)}},partial:!0};const lo={name:"codeText",tokenize:function(e,t,r){let n,i,o=0;return function(t){return e.enter("codeText"),e.enter("codeTextSequence"),a(t)};function a(t){return 96===t?(e.consume(t),o++,a):(e.exit("codeTextSequence"),s(t))}function s(t){return null===t?r(t):96===t?(i=e.enter("codeTextSequence"),n=0,u(t)):32===t?(e.enter("space"),e.consume(t),e.exit("space"),s):zi(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),s):(e.enter("codeTextData"),c(t))}function c(t){return null===t||32===t||96===t||zi(t)?(e.exit("codeTextData"),s(t)):(e.consume(t),c)}function u(r){return 96===r?(e.consume(r),n++,u):n===o?(e.exit("codeTextSequence"),e.exit("codeText"),t(r)):(i.type="codeTextData",c(r))}},resolve:function(e){let t,r,n=e.length-4,i=3;if(!("lineEnding"!==e[i][1].type&&"space"!==e[i][1].type||"lineEnding"!==e[n][1].type&&"space"!==e[n][1].type))for(t=i;++t<n;)if("codeTextData"===e[t][1].type){e[i][1].type="codeTextPadding",e[n][1].type="codeTextPadding",i+=2,n-=2;break}t=i-1,n++;for(;++t<=n;)void 0===r?t!==n&&"lineEnding"!==e[t][1].type&&(r=t):t!==n&&"lineEnding"!==e[t][1].type||(e[r][1].type="codeTextData",t!==r+2&&(e[r][1].end=e[t-1][1].end,e.splice(r+2,t-r-2),n-=t-r-2,t=r+2),r=void 0);return e},previous:function(e){return 96!==e||"characterEscape"===this.events[this.events.length-1][1].type}};function fo(e){const t={};let r,n,i,o,a,s,c,u=-1;for(;++u<e.length;){for(;u in t;)u=t[u];if(r=e[u],u&&"chunkFlow"===r[1].type&&"listItemPrefix"===e[u-1][1].type&&(s=r[1]._tokenizer.events,i=0,i<s.length&&"lineEndingBlank"===s[i][1].type&&(i+=2),i<s.length&&"content"===s[i][1].type))for(;++i<s.length&&"content"!==s[i][1].type;)"chunkText"===s[i][1].type&&(s[i][1]._isInFirstContentOfListItem=!0,i++);if("enter"===r[0])r[1].contentType&&(Object.assign(t,ho(e,u)),u=t[u],c=!0);else if(r[1]._container){for(i=u,n=void 0;i--&&(o=e[i],"lineEnding"===o[1].type||"lineEndingBlank"===o[1].type);)"enter"===o[0]&&(n&&(e[n][1].type="lineEndingBlank"),o[1].type="lineEnding",n=i);n&&(r[1].end=Object.assign({},e[n][1].start),a=e.slice(n,u),a.unshift(r),Si(e,n,u-n+1,a))}}return!c}function ho(e,t){const r=e[t][1],n=e[t][2];let i=t-1;const o=[],a=r._tokenizer||n.parser[r.contentType](r.start),s=a.events,c=[],u={};let l,f,h=-1,p=r,d=0,m=0;const g=[m];for(;p;){for(;e[++i][1]!==p;);o.push(i),p._tokenizer||(l=n.sliceStream(p),p.next||l.push(null),f&&a.defineSkip(p.start),p._isInFirstContentOfListItem&&(a._gfmTasklistFirstContentOfListItem=!0),a.write(l),p._isInFirstContentOfListItem&&(a._gfmTasklistFirstContentOfListItem=void 0)),f=p,p=p.next}for(p=r;++h<s.length;)"exit"===s[h][0]&&"enter"===s[h-1][0]&&s[h][1].type===s[h-1][1].type&&s[h][1].start.line!==s[h][1].end.line&&(m=h+1,g.push(m),p._tokenizer=void 0,p.previous=void 0,p=p.next);for(a.events=[],p?(p._tokenizer=void 0,p.previous=void 0):g.pop(),h=g.length;h--;){const t=s.slice(g[h],g[h+1]),r=o.pop();c.unshift([r,r+t.length-1]),Si(e,r,2,t)}for(h=-1;++h<c.length;)u[d+c[h][0]]=d+c[h][1],d+=c[h][1]-c[h][0]-1;return u}const po={tokenize:function(e,t){let r;return function(t){return e.enter("content"),r=e.enter("chunkContent",{contentType:"content"}),n(t)};function n(t){return null===t?i(t):zi(t)?e.check(mo,o,i)(t):(e.consume(t),n)}function i(r){return e.exit("chunkContent"),e.exit("content"),t(r)}function o(t){return e.consume(t),e.exit("chunkContent"),r.next=e.enter("chunkContent",{contentType:"content",previous:r}),r=r.next,n}},resolve:function(e){return fo(e),e}},mo={tokenize:function(e,t,r){const n=this;return function(t){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),Vi(e,i,"linePrefix")};function i(i){if(null===i||zi(i))return r(i);const o=n.events[n.events.length-1];return!n.parser.constructs.disable.null.includes("codeIndented")&&o&&"linePrefix"===o[1].type&&o[2].sliceSerialize(o[1],!0).length>=4?t(i):e.interrupt(n.parser.constructs.flow,r,t)(i)}},partial:!0};function go(e,t,r,n,i,o,a,s,c){const u=c||Number.POSITIVE_INFINITY;let l=0;return function(t){if(60===t)return e.enter(n),e.enter(i),e.enter(o),e.consume(t),e.exit(o),f;if(null===t||41===t||Li(t))return r(t);return e.enter(n),e.enter(a),e.enter(s),e.enter("chunkString",{contentType:"string"}),d(t)};function f(r){return 62===r?(e.enter(o),e.consume(r),e.exit(o),e.exit(i),e.exit(n),t):(e.enter(s),e.enter("chunkString",{contentType:"string"}),h(r))}function h(t){return 62===t?(e.exit("chunkString"),e.exit(s),f(t)):null===t||60===t||zi(t)?r(t):(e.consume(t),92===t?p:h)}function p(t){return 60===t||62===t||92===t?(e.consume(t),h):h(t)}function d(i){return 40===i?++l>u?r(i):(e.consume(i),d):41===i?l--?(e.consume(i),d):(e.exit("chunkString"),e.exit(s),e.exit(a),e.exit(n),t(i)):null===i||qi(i)?l?r(i):(e.exit("chunkString"),e.exit(s),e.exit(a),e.exit(n),t(i)):Li(i)?r(i):(e.consume(i),92===i?m:d)}function m(t){return 40===t||41===t||92===t?(e.consume(t),d):d(t)}}var vo=Object.freeze({__proto__:null,factoryDestination:go});function yo(e,t,r,n,i,o){const a=this;let s,c=0;return function(t){return e.enter(n),e.enter(i),e.consume(t),e.exit(i),e.enter(o),u};function u(f){return null===f||91===f||93===f&&!s||94===f&&!c&&"_hiddenFootnoteSupport"in a.parser.constructs||c>999?r(f):93===f?(e.exit(o),e.enter(i),e.consume(f),e.exit(i),e.exit(n),t):zi(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),u):(e.enter("chunkString",{contentType:"string"}),l(f))}function l(t){return null===t||91===t||93===t||zi(t)||c++>999?(e.exit("chunkString"),u(t)):(e.consume(t),s=s||!Mi(t),92===t?f:l)}function f(t){return 91===t||92===t||93===t?(e.consume(t),c++,l):l(t)}}var bo=Object.freeze({__proto__:null,factoryLabel:yo});function xo(e,t,r,n,i,o){let a;return function(t){return e.enter(n),e.enter(i),e.consume(t),e.exit(i),a=40===t?41:t,s};function s(r){return r===a?(e.enter(i),e.consume(r),e.exit(i),e.exit(n),t):(e.enter(o),c(r))}function c(t){return t===a?(e.exit(o),s(a)):null===t?r(t):zi(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),Vi(e,c,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),u(t))}function u(t){return t===a||null===t||zi(t)?(e.exit("chunkString"),c(t)):(e.consume(t),92===t?l:u)}function l(t){return t===a||92===t?(e.consume(t),u):u(t)}}var wo=Object.freeze({__proto__:null,factoryTitle:xo});function ko(e,t){let r;return function n(i){if(zi(i))return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),r=!0,n;if(Mi(i))return Vi(e,n,r?"linePrefix":"lineSuffix")(i);return t(i)}}var Eo=Object.freeze({__proto__:null,factoryWhitespace:ko});function So(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}var Po=Object.freeze({__proto__:null,normalizeIdentifier:So});const _o={name:"definition",tokenize:function(e,t,r){const n=this;let i;return function(t){return e.enter("definition"),yo.call(n,e,o,r,"definitionLabel","definitionLabelMarker","definitionLabelString")(t)};function o(t){return i=So(n.sliceSerialize(n.events[n.events.length-1][1]).slice(1,-1)),58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),ko(e,go(e,e.attempt(Ao,Vi(e,a,"whitespace"),Vi(e,a,"whitespace")),r,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString"))):r(t)}function a(o){return null===o||zi(o)?(e.exit("definition"),n.parser.defined.includes(i)||n.parser.defined.push(i),t(o)):r(o)}}},Ao={tokenize:function(e,t,r){return function(t){return qi(t)?ko(e,n)(t):r(t)};function n(t){return 34===t||39===t||40===t?xo(e,Vi(e,i,"whitespace"),r,"definitionTitle","definitionTitleMarker","definitionTitleString")(t):r(t)}function i(e){return null===e||zi(e)?t(e):r(e)}},partial:!0};const Co={name:"hardBreakEscape",tokenize:function(e,t,r){return function(t){return e.enter("hardBreakEscape"),e.enter("escapeMarker"),e.consume(t),n};function n(n){return zi(n)?(e.exit("escapeMarker"),e.exit("hardBreakEscape"),t(n)):r(n)}}};const Fo={name:"headingAtx",tokenize:function(e,t,r){const n=this;let i=0;return function(t){return e.enter("atxHeading"),e.enter("atxHeadingSequence"),o(t)};function o(s){return 35===s&&i++<6?(e.consume(s),o):null===s||qi(s)?(e.exit("atxHeadingSequence"),n.interrupt?t(s):a(s)):r(s)}function a(r){return 35===r?(e.enter("atxHeadingSequence"),s(r)):null===r||zi(r)?(e.exit("atxHeading"),t(r)):Mi(r)?Vi(e,a,"whitespace")(r):(e.enter("atxHeadingText"),c(r))}function s(t){return 35===t?(e.consume(t),s):(e.exit("atxHeadingSequence"),a(t))}function c(t){return null===t||35===t||qi(t)?(e.exit("atxHeadingText"),a(t)):(e.consume(t),c)}},resolve:function(e,t){let r,n,i=e.length-2,o=3;"whitespace"===e[o][1].type&&(o+=2);i-2>o&&"whitespace"===e[i][1].type&&(i-=2);"atxHeadingSequence"===e[i][1].type&&(o===i-1||i-4>o&&"whitespace"===e[i-2][1].type)&&(i-=o+1===i?2:4);i>o&&(r={type:"atxHeadingText",start:e[o][1].start,end:e[i][1].end},n={type:"chunkText",start:e[o][1].start,end:e[i][1].end,contentType:"text"},Si(e,o,i-o+1,[["enter",r,t],["enter",n,t],["exit",n,t],["exit",r,t]]));return e}};const Do=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","section","source","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],Oo=["pre","script","style","textarea"],To={name:"htmlFlow",tokenize:function(e,t,r){const n=this;let i,o,a,s,c;return function(t){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(t),u};function u(s){return 33===s?(e.consume(s),l):47===s?(e.consume(s),p):63===s?(e.consume(s),i=3,n.interrupt?t:I):Di(s)?(e.consume(s),a=String.fromCharCode(s),o=!0,d):r(s)}function l(o){return 45===o?(e.consume(o),i=2,f):91===o?(e.consume(o),i=5,a="CDATA[",s=0,h):Di(o)?(e.consume(o),i=4,n.interrupt?t:I):r(o)}function f(i){return 45===i?(e.consume(i),n.interrupt?t:I):r(i)}function h(i){return i===a.charCodeAt(s++)?(e.consume(i),s===a.length?n.interrupt?t:_:h):r(i)}function p(t){return Di(t)?(e.consume(t),a=String.fromCharCode(t),d):r(t)}function d(s){return null===s||47===s||62===s||qi(s)?47!==s&&o&&Oo.includes(a.toLowerCase())?(i=1,n.interrupt?t(s):_(s)):Do.includes(a.toLowerCase())?(i=6,47===s?(e.consume(s),m):n.interrupt?t(s):_(s)):(i=7,n.interrupt&&!n.parser.lazy[n.now().line]?r(s):o?v(s):g(s)):45===s||Ri(s)?(e.consume(s),a+=String.fromCharCode(s),d):r(s)}function m(i){return 62===i?(e.consume(i),n.interrupt?t:_):r(i)}function g(t){return Mi(t)?(e.consume(t),g):S(t)}function v(t){return 47===t?(e.consume(t),S):58===t||95===t||Di(t)?(e.consume(t),y):Mi(t)?(e.consume(t),v):S(t)}function y(t){return 45===t||46===t||58===t||95===t||Ri(t)?(e.consume(t),y):b(t)}function b(t){return 61===t?(e.consume(t),x):Mi(t)?(e.consume(t),b):v(t)}function x(t){return null===t||60===t||61===t||62===t||96===t?r(t):34===t||39===t?(e.consume(t),c=t,w):Mi(t)?(e.consume(t),x):(c=null,k(t))}function w(t){return null===t||zi(t)?r(t):t===c?(e.consume(t),E):(e.consume(t),w)}function k(t){return null===t||34===t||39===t||60===t||61===t||62===t||96===t||qi(t)?b(t):(e.consume(t),k)}function E(e){return 47===e||62===e||Mi(e)?v(e):r(e)}function S(t){return 62===t?(e.consume(t),P):r(t)}function P(t){return Mi(t)?(e.consume(t),P):null===t||zi(t)?_(t):r(t)}function _(t){return 45===t&&2===i?(e.consume(t),D):60===t&&1===i?(e.consume(t),O):62===t&&4===i?(e.consume(t),j):63===t&&3===i?(e.consume(t),I):93===t&&5===i?(e.consume(t),R):!zi(t)||6!==i&&7!==i?null===t||zi(t)?A(t):(e.consume(t),_):e.check(Ro,j,A)(t)}function A(t){return e.exit("htmlFlowData"),C(t)}function C(t){return null===t?L(t):zi(t)?e.attempt({tokenize:F,partial:!0},C,L)(t):(e.enter("htmlFlowData"),_(t))}function F(e,t,r){return function(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i};function i(e){return n.parser.lazy[n.now().line]?r(e):t(e)}}function D(t){return 45===t?(e.consume(t),I):_(t)}function O(t){return 47===t?(e.consume(t),a="",T):_(t)}function T(t){return 62===t&&Oo.includes(a.toLowerCase())?(e.consume(t),j):Di(t)&&a.length<8?(e.consume(t),a+=String.fromCharCode(t),T):_(t)}function R(t){return 93===t?(e.consume(t),I):_(t)}function I(t){return 62===t?(e.consume(t),j):45===t&&2===i?(e.consume(t),I):_(t)}function j(t){return null===t||zi(t)?(e.exit("htmlFlowData"),L(t)):(e.consume(t),j)}function L(r){return e.exit("htmlFlow"),t(r)}},resolveTo:function(e){let t=e.length;for(;t--&&("enter"!==e[t][0]||"htmlFlow"!==e[t][1].type););t>1&&"linePrefix"===e[t-2][1].type&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2));return e},concrete:!0},Ro={tokenize:function(e,t,r){return function(n){return e.exit("htmlFlowData"),e.enter("lineEndingBlank"),e.consume(n),e.exit("lineEndingBlank"),e.attempt(eo,t,r)}},partial:!0};const Io={name:"htmlText",tokenize:function(e,t,r){const n=this;let i,o,a,s;return function(t){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(t),c};function c(t){return 33===t?(e.consume(t),u):47===t?(e.consume(t),k):63===t?(e.consume(t),x):Di(t)?(e.consume(t),P):r(t)}function u(t){return 45===t?(e.consume(t),l):91===t?(e.consume(t),o="CDATA[",a=0,m):Di(t)?(e.consume(t),b):r(t)}function l(t){return 45===t?(e.consume(t),f):r(t)}function f(t){return null===t||62===t?r(t):45===t?(e.consume(t),h):p(t)}function h(e){return null===e||62===e?r(e):p(e)}function p(t){return null===t?r(t):45===t?(e.consume(t),d):zi(t)?(s=p,R(t)):(e.consume(t),p)}function d(t){return 45===t?(e.consume(t),j):p(t)}function m(t){return t===o.charCodeAt(a++)?(e.consume(t),a===o.length?g:m):r(t)}function g(t){return null===t?r(t):93===t?(e.consume(t),v):zi(t)?(s=g,R(t)):(e.consume(t),g)}function v(t){return 93===t?(e.consume(t),y):g(t)}function y(t){return 62===t?j(t):93===t?(e.consume(t),y):g(t)}function b(t){return null===t||62===t?j(t):zi(t)?(s=b,R(t)):(e.consume(t),b)}function x(t){return null===t?r(t):63===t?(e.consume(t),w):zi(t)?(s=x,R(t)):(e.consume(t),x)}function w(e){return 62===e?j(e):x(e)}function k(t){return Di(t)?(e.consume(t),E):r(t)}function E(t){return 45===t||Ri(t)?(e.consume(t),E):S(t)}function S(t){return zi(t)?(s=S,R(t)):Mi(t)?(e.consume(t),S):j(t)}function P(t){return 45===t||Ri(t)?(e.consume(t),P):47===t||62===t||qi(t)?_(t):r(t)}function _(t){return 47===t?(e.consume(t),j):58===t||95===t||Di(t)?(e.consume(t),A):zi(t)?(s=_,R(t)):Mi(t)?(e.consume(t),_):j(t)}function A(t){return 45===t||46===t||58===t||95===t||Ri(t)?(e.consume(t),A):C(t)}function C(t){return 61===t?(e.consume(t),F):zi(t)?(s=C,R(t)):Mi(t)?(e.consume(t),C):_(t)}function F(t){return null===t||60===t||61===t||62===t||96===t?r(t):34===t||39===t?(e.consume(t),i=t,D):zi(t)?(s=F,R(t)):Mi(t)?(e.consume(t),F):(e.consume(t),i=void 0,T)}function D(t){return t===i?(e.consume(t),O):null===t?r(t):zi(t)?(s=D,R(t)):(e.consume(t),D)}function O(e){return 62===e||47===e||qi(e)?_(e):r(e)}function T(t){return null===t||34===t||39===t||60===t||61===t||96===t?r(t):62===t||qi(t)?_(t):(e.consume(t),T)}function R(t){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),Vi(e,I,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function I(t){return e.enter("htmlTextData"),s(t)}function j(n){return 62===n?(e.consume(n),e.exit("htmlTextData"),e.exit("htmlText"),t):r(n)}}};const jo={name:"labelEnd",tokenize:function(e,t,r){const n=this;let i,o,a=n.events.length;for(;a--;)if(("labelImage"===n.events[a][1].type||"labelLink"===n.events[a][1].type)&&!n.events[a][1]._balanced){i=n.events[a][1];break}return function(t){if(!i)return r(t);return i._inactive?c(t):(o=n.parser.defined.includes(So(n.sliceSerialize({start:i.end,end:n.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelEnd"),s)};function s(r){return 40===r?e.attempt(Lo,t,o?t:c)(r):91===r?e.attempt(qo,t,o?e.attempt(zo,t,c):c)(r):o?t(r):c(r)}function c(e){return i._balanced=!0,r(e)}},resolveTo:function(e,t){let r,n,i,o,a=e.length,s=0;for(;a--;)if(r=e[a][1],n){if("link"===r.type||"labelLink"===r.type&&r._inactive)break;"enter"===e[a][0]&&"labelLink"===r.type&&(r._inactive=!0)}else if(i){if("enter"===e[a][0]&&("labelImage"===r.type||"labelLink"===r.type)&&!r._balanced&&(n=a,"labelLink"!==r.type)){s=2;break}}else"labelEnd"===r.type&&(i=a);const c={type:"labelLink"===e[n][1].type?"link":"image",start:Object.assign({},e[n][1].start),end:Object.assign({},e[e.length-1][1].end)},u={type:"label",start:Object.assign({},e[n][1].start),end:Object.assign({},e[i][1].end)},l={type:"labelText",start:Object.assign({},e[n+s+2][1].end),end:Object.assign({},e[i-2][1].start)};return o=[["enter",c,t],["enter",u,t]],o=Pi(o,e.slice(n+1,n+s+3)),o=Pi(o,[["enter",l,t]]),o=Pi(o,Ji(t.parser.constructs.insideSpan.null,e.slice(n+s+4,i-3),t)),o=Pi(o,[["exit",l,t],e[i-2],e[i-1],["exit",u,t]]),o=Pi(o,e.slice(i+1)),o=Pi(o,[["exit",c,t]]),Si(e,n,e.length,o),e},resolveAll:function(e){let t,r=-1;for(;++r<e.length;)t=e[r][1],"labelImage"!==t.type&&"labelLink"!==t.type&&"labelEnd"!==t.type||(e.splice(r+1,"labelImage"===t.type?4:2),t.type="data",r++);return e}},Lo={tokenize:function(e,t,r){return function(t){return e.enter("resource"),e.enter("resourceMarker"),e.consume(t),e.exit("resourceMarker"),ko(e,n)};function n(t){return 41===t?a(t):go(e,i,r,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",3)(t)}function i(t){return qi(t)?ko(e,o)(t):a(t)}function o(t){return 34===t||39===t||40===t?xo(e,ko(e,a),r,"resourceTitle","resourceTitleMarker","resourceTitleString")(t):a(t)}function a(n){return 41===n?(e.enter("resourceMarker"),e.consume(n),e.exit("resourceMarker"),e.exit("resource"),t):r(n)}}},qo={tokenize:function(e,t,r){const n=this;return function(t){return yo.call(n,e,i,r,"reference","referenceMarker","referenceString")(t)};function i(e){return n.parser.defined.includes(So(n.sliceSerialize(n.events[n.events.length-1][1]).slice(1,-1)))?t(e):r(e)}}},zo={tokenize:function(e,t,r){return function(t){return e.enter("reference"),e.enter("referenceMarker"),e.consume(t),e.exit("referenceMarker"),n};function n(n){return 93===n?(e.enter("referenceMarker"),e.consume(n),e.exit("referenceMarker"),e.exit("reference"),t):r(n)}}};const Mo={name:"labelStartImage",tokenize:function(e,t,r){const n=this;return function(t){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(t),e.exit("labelImageMarker"),i};function i(t){return 91===t?(e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelImage"),o):r(t)}function o(e){return 94===e&&"_hiddenFootnoteSupport"in n.parser.constructs?r(e):t(e)}},resolveAll:jo.resolveAll};const No={name:"labelStartLink",tokenize:function(e,t,r){const n=this;return function(t){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelLink"),i};function i(e){return 94===e&&"_hiddenFootnoteSupport"in n.parser.constructs?r(e):t(e)}},resolveAll:jo.resolveAll};const Bo={name:"lineEnding",tokenize:function(e,t){return function(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),Vi(e,t,"linePrefix")}}};const $o={name:"thematicBreak",tokenize:function(e,t,r){let n,i=0;return function(t){return e.enter("thematicBreak"),n=t,o(t)};function o(s){return s===n?(e.enter("thematicBreakSequence"),a(s)):Mi(s)?Vi(e,o,"whitespace")(s):i<3||null!==s&&!zi(s)?r(s):(e.exit("thematicBreak"),t(s))}function a(t){return t===n?(e.consume(t),i++,a):(e.exit("thematicBreakSequence"),o(t))}}};const Uo={name:"list",tokenize:function(e,t,r){const n=this,i=n.events[n.events.length-1];let o=i&&"linePrefix"===i[1].type?i[2].sliceSerialize(i[1],!0).length:0,a=0;return function(t){const i=n.containerState.type||(42===t||43===t||45===t?"listUnordered":"listOrdered");if("listUnordered"===i?!n.containerState.marker||t===n.containerState.marker:Oi(t)){if(n.containerState.type||(n.containerState.type=i,e.enter(i,{_container:!0})),"listUnordered"===i)return e.enter("listItemPrefix"),42===t||45===t?e.check($o,r,c)(t):c(t);if(!n.interrupt||49===t)return e.enter("listItemPrefix"),e.enter("listItemValue"),s(t)}return r(t)};function s(t){return Oi(t)&&++a<10?(e.consume(t),s):(!n.interrupt||a<2)&&(n.containerState.marker?t===n.containerState.marker:41===t||46===t)?(e.exit("listItemValue"),c(t)):r(t)}function c(t){return e.enter("listItemMarker"),e.consume(t),e.exit("listItemMarker"),n.containerState.marker=n.containerState.marker||t,e.check(eo,n.interrupt?r:u,e.attempt(Vo,f,l))}function u(e){return n.containerState.initialBlankLine=!0,o++,f(e)}function l(t){return Mi(t)?(e.enter("listItemPrefixWhitespace"),e.consume(t),e.exit("listItemPrefixWhitespace"),f):r(t)}function f(r){return n.containerState.size=o+n.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(r)}},continuation:{tokenize:function(e,t,r){const n=this;return n.containerState._closeFlow=void 0,e.check(eo,i,o);function i(r){return n.containerState.furtherBlankLines=n.containerState.furtherBlankLines||n.containerState.initialBlankLine,Vi(e,t,"listItemIndent",n.containerState.size+1)(r)}function o(r){return n.containerState.furtherBlankLines||!Mi(r)?(n.containerState.furtherBlankLines=void 0,n.containerState.initialBlankLine=void 0,a(r)):(n.containerState.furtherBlankLines=void 0,n.containerState.initialBlankLine=void 0,e.attempt(Ho,t,a)(r))}function a(i){return n.containerState._closeFlow=!0,n.interrupt=void 0,Vi(e,e.attempt(Uo,t,r),"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(i)}}},exit:function(e){e.exit(this.containerState.type)}},Vo={tokenize:function(e,t,r){const n=this;return Vi(e,(function(e){const i=n.events[n.events.length-1];return!Mi(e)&&i&&"listItemPrefixWhitespace"===i[1].type?t(e):r(e)}),"listItemPrefixWhitespace",n.parser.constructs.disable.null.includes("codeIndented")?void 0:5)},partial:!0},Ho={tokenize:function(e,t,r){const n=this;return Vi(e,(function(e){const i=n.events[n.events.length-1];return i&&"listItemIndent"===i[1].type&&i[2].sliceSerialize(i[1],!0).length===n.containerState.size?t(e):r(e)}),"listItemIndent",n.containerState.size+1)},partial:!0};const Qo={name:"setextUnderline",tokenize:function(e,t,r){const n=this;let i,o,a=n.events.length;for(;a--;)if("lineEnding"!==n.events[a][1].type&&"linePrefix"!==n.events[a][1].type&&"content"!==n.events[a][1].type){o="paragraph"===n.events[a][1].type;break}return function(t){if(!n.parser.lazy[n.now().line]&&(n.interrupt||o))return e.enter("setextHeadingLine"),e.enter("setextHeadingLineSequence"),i=t,s(t);return r(t)};function s(t){return t===i?(e.consume(t),s):(e.exit("setextHeadingLineSequence"),Vi(e,c,"lineSuffix")(t))}function c(n){return null===n||zi(n)?(e.exit("setextHeadingLine"),t(n)):r(n)}},resolveTo:function(e,t){let r,n,i,o=e.length;for(;o--;)if("enter"===e[o][0]){if("content"===e[o][1].type){r=o;break}"paragraph"===e[o][1].type&&(n=o)}else"content"===e[o][1].type&&e.splice(o,1),i||"definition"!==e[o][1].type||(i=o);const a={type:"setextHeading",start:Object.assign({},e[n][1].start),end:Object.assign({},e[e.length-1][1].end)};e[n][1].type="setextHeadingText",i?(e.splice(n,0,["enter",a,t]),e.splice(i+1,0,["exit",e[r][1],t]),e[r][1].end=Object.assign({},e[i][1].end)):e[r][1]=a;return e.push(["exit",a,t]),e}};var Go=Object.freeze({__proto__:null,attention:Yi,autolink:Zi,blankLine:eo,blockQuote:to,characterEscape:ro,characterReference:ao,codeFenced:so,codeIndented:co,codeText:lo,content:po,definition:_o,hardBreakEscape:Co,headingAtx:Fo,htmlFlow:To,htmlText:Io,labelEnd:jo,labelStartImage:Mo,labelStartLink:No,lineEnding:Bo,list:Uo,setextUnderline:Qo,thematicBreak:$o});const Wo={tokenize:function(e){const t=this,r=e.attempt(eo,(function(n){if(null===n)return void e.consume(n);return e.enter("lineEndingBlank"),e.consume(n),e.exit("lineEndingBlank"),t.currentConstruct=void 0,r}),e.attempt(this.parser.constructs.flowInitial,n,Vi(e,e.attempt(this.parser.constructs.flow,n,e.attempt(po,n)),"linePrefix")));return r;function n(n){if(null!==n)return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),t.currentConstruct=void 0,r;e.consume(n)}}};const Ko={resolveAll:Zo()},Jo=Xo("string"),Yo=Xo("text");function Xo(e){return{tokenize:function(t){const r=this,n=this.parser.constructs[e],i=t.attempt(n,o,a);return o;function o(e){return c(e)?i(e):a(e)}function a(e){if(null!==e)return t.enter("data"),t.consume(e),s;t.consume(e)}function s(e){return c(e)?(t.exit("data"),i(e)):(t.consume(e),s)}function c(e){if(null===e)return!0;const t=n[e];let i=-1;if(t)for(;++i<t.length;){const e=t[i];if(!e.previous||e.previous.call(r,r.previous))return!0}return!1}},resolveAll:Zo("text"===e?ea:void 0)}}function Zo(e){return function(t,r){let n,i=-1;for(;++i<=t.length;)void 0===n?t[i]&&"data"===t[i][1].type&&(n=i,i++):t[i]&&"data"===t[i][1].type||(i!==n+2&&(t[n][1].end=t[i-1][1].end,t.splice(n+2,i-n-2),i=n+2),n=void 0);return e?e(t,r):t}}function ea(e,t){let r=-1;for(;++r<=e.length;)if((r===e.length||"lineEnding"===e[r][1].type)&&"data"===e[r-1][1].type){const n=e[r-1][1],i=t.sliceStream(n);let o,a=i.length,s=-1,c=0;for(;a--;){const e=i[a];if("string"==typeof e){for(s=e.length;32===e.charCodeAt(s-1);)c++,s--;if(s)break;s=-1}else if(-2===e)o=!0,c++;else if(-1!==e){a++;break}}if(c){const i={type:r===e.length||o||c<2?"lineSuffix":"hardBreakTrailing",start:{line:n.end.line,column:n.end.column-c,offset:n.end.offset-c,_index:n.start._index+a,_bufferIndex:a?s:n.start._bufferIndex+s},end:Object.assign({},n.end)};n.end=Object.assign({},i.start),n.start.offset===n.end.offset?Object.assign(n,i):(e.splice(r,0,["enter",i,t],["exit",i,t]),r+=2)}r++}return e}function ta(e,t,r){let n=Object.assign(r?Object.assign({},r):{line:1,column:1,offset:0},{_index:0,_bufferIndex:-1});const i={},o=[];let a=[],s=[];const c={consume:function(e){zi(e)?(n.line++,n.column=1,n.offset+=-3===e?2:1,y()):-1!==e&&(n.column++,n.offset++);n._bufferIndex<0?n._index++:(n._bufferIndex++,n._bufferIndex===a[n._index].length&&(n._bufferIndex=-1,n._index++));u.previous=e},enter:function(e,t){const r=t||{};return r.type=e,r.start=h(),u.events.push(["enter",r,u]),s.push(r),r},exit:function(e){const t=s.pop();return t.end=h(),u.events.push(["exit",t,u]),t},attempt:g((function(e,t){v(e,t.from)})),check:g(m),interrupt:g(m,{interrupt:!0})},u={previous:null,code:null,containerState:{},events:[],parser:e,sliceStream:f,sliceSerialize:function(e,t){return function(e,t){let r=-1;const n=[];let i;for(;++r<e.length;){const o=e[r];let a;if("string"==typeof o)a=o;else switch(o){case-5:a="\r";break;case-4:a="\n";break;case-3:a="\r\n";break;case-2:a=t?" ":"\t";break;case-1:if(!t&&i)continue;a=" ";break;default:a=String.fromCharCode(o)}i=-2===o,n.push(a)}return n.join("")}(f(e),t)},now:h,defineSkip:function(e){i[e.line]=e.column,y()},write:function(e){if(a=Pi(a,e),p(),null!==a[a.length-1])return[];return v(t,0),u.events=Ji(o,u.events,u),u.events}};let l=t.tokenize.call(u,c);return t.resolveAll&&o.push(t),u;function f(e){return function(e,t){const r=t.start._index,n=t.start._bufferIndex,i=t.end._index,o=t.end._bufferIndex;let a;r===i?a=[e[r].slice(n,o)]:(a=e.slice(r,i),n>-1&&(a[0]=a[0].slice(n)),o>0&&a.push(e[i].slice(0,o)));return a}(a,e)}function h(){return Object.assign({},n)}function p(){let e;for(;n._index<a.length;){const t=a[n._index];if("string"==typeof t)for(e=n._index,n._bufferIndex<0&&(n._bufferIndex=0);n._index===e&&n._bufferIndex<t.length;)d(t.charCodeAt(n._bufferIndex));else d(t)}}function d(e){l=l(e)}function m(e,t){t.restore()}function g(e,t){return function(r,i,o){let a,l,f,p;return Array.isArray(r)?d(r):"tokenize"in r?d([r]):function(e){return t;function t(t){const r=null!==t&&e[t],n=null!==t&&e.null;return d([...Array.isArray(r)?r:r?[r]:[],...Array.isArray(n)?n:n?[n]:[]])(t)}}(r);function d(e){return a=e,l=0,0===e.length?o:m(e[l])}function m(e){return function(r){p=function(){const e=h(),t=u.previous,r=u.currentConstruct,i=u.events.length,o=Array.from(s);return{restore:a,from:i};function a(){n=e,u.previous=t,u.currentConstruct=r,u.events.length=i,s=o,y()}}(),f=e,e.partial||(u.currentConstruct=e);if(e.name&&u.parser.constructs.disable.null.includes(e.name))return v();return e.tokenize.call(t?Object.assign(Object.create(u),t):u,c,g,v)(r)}}function g(t){return e(f,p),i}function v(e){return p.restore(),++l<a.length?m(a[l]):o}}}function v(e,t){e.resolveAll&&!o.includes(e)&&o.push(e),e.resolve&&Si(u.events,t,u.events.length-t,e.resolve(u.events.slice(t),u)),e.resolveTo&&(u.events=e.resolveTo(u.events,u))}function y(){n.line in i&&n.column<2&&(n.column=i[n.line],n.offset+=i[n.line]-1)}}const ra={42:Uo,43:Uo,45:Uo,48:Uo,49:Uo,50:Uo,51:Uo,52:Uo,53:Uo,54:Uo,55:Uo,56:Uo,57:Uo,62:to},na={91:_o},ia={[-2]:co,[-1]:co,32:co},oa={35:Fo,42:$o,45:[Qo,$o],60:To,61:Qo,95:$o,96:so,126:so},aa={38:ao,92:ro},sa={[-5]:Bo,[-4]:Bo,[-3]:Bo,33:Mo,38:ao,42:Yi,60:[Zi,Io],91:No,92:[Co,ro],93:jo,95:Yi,96:lo},ca={null:[Yi,Ko]};var ua=Object.freeze({__proto__:null,document:ra,contentInitial:na,flowInitial:ia,flow:oa,string:aa,text:sa,insideSpan:ca,attentionMarkers:{null:[42,95]},disable:{null:[]}});const la=/[\0\t\n\r]/g;function fa(e,t){const r=Number.parseInt(e,t);return r<9||11===r||r>13&&r<32||r>126&&r<160||r>55295&&r<57344||r>64975&&r<65008||65535==(65535&r)||65534==(65535&r)||r>1114111?"�":String.fromCharCode(r)}const ha=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function pa(e){return e.replace(ha,da)}function da(e,t,r){if(t)return t;if(35===r.charCodeAt(0)){const e=r.charCodeAt(1),t=120===e||88===e;return fa(r.slice(t?2:1),t?16:10)}return oo(r)||e}const ma={}.hasOwnProperty,ga=function(e,t,r){return"string"!=typeof t&&(r=t,t=void 0),function(e={}){const t=va({transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:c(ne),autolinkProtocol:C,autolinkEmail:C,atxHeading:c(Z),blockQuote:c(W),characterEscape:C,characterReference:C,codeFenced:c(K),codeFencedFenceInfo:u,codeFencedFenceMeta:u,codeIndented:c(K,u),codeText:c(J,u),codeTextData:C,data:C,codeFlowValue:C,definition:c(Y),definitionDestinationString:u,definitionLabelString:u,definitionTitleString:u,emphasis:c(X),hardBreakEscape:c(ee),hardBreakTrailing:c(ee),htmlFlow:c(te,u),htmlFlowData:C,htmlText:c(te,u),htmlTextData:C,image:c(re),label:u,link:c(ne),listItem:c(oe),listItemValue:m,listOrdered:c(ie,d),listUnordered:c(ie),paragraph:c(ae),reference:$,referenceString:u,resourceDestinationString:u,resourceTitleString:u,setextHeading:c(Z),strong:c(se),thematicBreak:c(ue)},exit:{atxHeading:f(),atxHeadingSequence:S,autolink:f(),autolinkEmail:G,autolinkProtocol:Q,blockQuote:f(),characterEscapeValue:F,characterReferenceMarkerHexadecimal:V,characterReferenceMarkerNumeric:V,characterReferenceValue:H,codeFenced:f(b),codeFencedFence:y,codeFencedFenceInfo:g,codeFencedFenceMeta:v,codeFlowValue:F,codeIndented:f(x),codeText:f(I),codeTextData:F,data:F,definition:f(),definitionDestinationString:E,definitionLabelString:w,definitionTitleString:k,emphasis:f(),hardBreakEscape:f(O),hardBreakTrailing:f(O),htmlFlow:f(T),htmlFlowData:F,htmlText:f(R),htmlTextData:F,image:f(L),label:z,labelText:q,lineEnding:D,link:f(j),listItem:f(),listOrdered:f(),listUnordered:f(),paragraph:f(),referenceString:U,resourceDestinationString:M,resourceTitleString:N,resource:B,setextHeading:f(A),setextHeadingLineSequence:_,setextHeadingText:P,strong:f(),thematicBreak:f()}},e.mdastExtensions||[]),r={};return n;function n(e){let r={type:"root",children:[]};const n=[],c=[],f={stack:[r],tokenStack:n,config:t,enter:l,exit:h,buffer:u,resume:p,setData:o,getData:a};let d=-1;for(;++d<e.length;)if("listOrdered"===e[d][1].type||"listUnordered"===e[d][1].type)if("enter"===e[d][0])c.push(d);else{d=i(e,c.pop(),d)}for(d=-1;++d<e.length;){const r=t[e[d][0]];ma.call(r,e[d][1].type)&&r[e[d][1].type].call(Object.assign({sliceSerialize:e[d][2].sliceSerialize},f),e[d][1])}if(n.length>0){const e=n[n.length-1];(e[1]||ba).call(f,void 0,e[0])}for(r.position={start:s(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:s(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},d=-1;++d<t.transforms.length;)r=t.transforms[d](r)||r;return r}function i(e,t,r){let n,i,o,a,s=t-1,c=-1,u=!1;for(;++s<=r;){const t=e[s];if("listUnordered"===t[1].type||"listOrdered"===t[1].type||"blockQuote"===t[1].type?("enter"===t[0]?c++:c--,a=void 0):"lineEndingBlank"===t[1].type?"enter"===t[0]&&(!n||a||c||o||(o=s),a=void 0):"linePrefix"===t[1].type||"listItemValue"===t[1].type||"listItemMarker"===t[1].type||"listItemPrefix"===t[1].type||"listItemPrefixWhitespace"===t[1].type||(a=void 0),!c&&"enter"===t[0]&&"listItemPrefix"===t[1].type||-1===c&&"exit"===t[0]&&("listUnordered"===t[1].type||"listOrdered"===t[1].type)){if(n){let a=s;for(i=void 0;a--;){const t=e[a];if("lineEnding"===t[1].type||"lineEndingBlank"===t[1].type){if("exit"===t[0])continue;i&&(e[i][1].type="lineEndingBlank",u=!0),t[1].type="lineEnding",i=a}else if("linePrefix"!==t[1].type&&"blockQuotePrefix"!==t[1].type&&"blockQuotePrefixWhitespace"!==t[1].type&&"blockQuoteMarker"!==t[1].type&&"listItemIndent"!==t[1].type)break}o&&(!i||o<i)&&(n._spread=!0),n.end=Object.assign({},i?e[i][1].start:t[1].end),e.splice(i||s,0,["exit",n,t[2]]),s++,r++}"listItemPrefix"===t[1].type&&(n={type:"listItem",_spread:!1,start:Object.assign({},t[1].start)},e.splice(s,0,["enter",n,t[2]]),s++,r++,o=void 0,a=!0)}}return e[t][1]._spread=u,r}function o(e,t){r[e]=t}function a(e){return r[e]}function s(e){return{line:e.line,column:e.column,offset:e.offset}}function c(e,t){return r;function r(r){l.call(this,e(r),r),t&&t.call(this,r)}}function u(){this.stack.push({type:"fragment",children:[]})}function l(e,t,r){return this.stack[this.stack.length-1].children.push(e),this.stack.push(e),this.tokenStack.push([t,r]),e.position={start:s(t.start)},e}function f(e){return t;function t(t){e&&e.call(this,t),h.call(this,t)}}function h(e,t){const r=this.stack.pop(),n=this.tokenStack.pop();if(!n)throw new Error("Cannot close `"+e.type+"` ("+Zn({start:e.start,end:e.end})+"): it’s not open");if(n[0].type!==e.type)if(t)t.call(this,e,n[0]);else{(n[1]||ba).call(this,e,n[0])}return r.position.end=s(e.end),r}function p(){return wi(this.stack.pop())}function d(){o("expectingFirstListItemValue",!0)}function m(e){if(a("expectingFirstListItemValue")){this.stack[this.stack.length-2].start=Number.parseInt(this.sliceSerialize(e),10),o("expectingFirstListItemValue")}}function g(){const e=this.resume();this.stack[this.stack.length-1].lang=e}function v(){const e=this.resume();this.stack[this.stack.length-1].meta=e}function y(){a("flowCodeInside")||(this.buffer(),o("flowCodeInside",!0))}function b(){const e=this.resume();this.stack[this.stack.length-1].value=e.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),o("flowCodeInside")}function x(){const e=this.resume();this.stack[this.stack.length-1].value=e.replace(/(\r?\n|\r)$/g,"")}function w(e){const t=this.resume(),r=this.stack[this.stack.length-1];r.label=t,r.identifier=So(this.sliceSerialize(e)).toLowerCase()}function k(){const e=this.resume();this.stack[this.stack.length-1].title=e}function E(){const e=this.resume();this.stack[this.stack.length-1].url=e}function S(e){const t=this.stack[this.stack.length-1];if(!t.depth){const r=this.sliceSerialize(e).length;t.depth=r}}function P(){o("setextHeadingSlurpLineEnding",!0)}function _(e){this.stack[this.stack.length-1].depth=61===this.sliceSerialize(e).charCodeAt(0)?1:2}function A(){o("setextHeadingSlurpLineEnding")}function C(e){const t=this.stack[this.stack.length-1];let r=t.children[t.children.length-1];r&&"text"===r.type||(r=ce(),r.position={start:s(e.start)},t.children.push(r)),this.stack.push(r)}function F(e){const t=this.stack.pop();t.value+=this.sliceSerialize(e),t.position.end=s(e.end)}function D(e){const r=this.stack[this.stack.length-1];if(a("atHardBreak")){return r.children[r.children.length-1].position.end=s(e.end),void o("atHardBreak")}!a("setextHeadingSlurpLineEnding")&&t.canContainEols.includes(r.type)&&(C.call(this,e),F.call(this,e))}function O(){o("atHardBreak",!0)}function T(){const e=this.resume();this.stack[this.stack.length-1].value=e}function R(){const e=this.resume();this.stack[this.stack.length-1].value=e}function I(){const e=this.resume();this.stack[this.stack.length-1].value=e}function j(){const e=this.stack[this.stack.length-1];a("inReference")?(e.type+="Reference",e.referenceType=a("referenceType")||"shortcut",delete e.url,delete e.title):(delete e.identifier,delete e.label),o("referenceType")}function L(){const e=this.stack[this.stack.length-1];a("inReference")?(e.type+="Reference",e.referenceType=a("referenceType")||"shortcut",delete e.url,delete e.title):(delete e.identifier,delete e.label),o("referenceType")}function q(e){const t=this.stack[this.stack.length-2],r=this.sliceSerialize(e);t.label=pa(r),t.identifier=So(r).toLowerCase()}function z(){const e=this.stack[this.stack.length-1],t=this.resume(),r=this.stack[this.stack.length-1];o("inReference",!0),"link"===r.type?r.children=e.children:r.alt=t}function M(){const e=this.resume();this.stack[this.stack.length-1].url=e}function N(){const e=this.resume();this.stack[this.stack.length-1].title=e}function B(){o("inReference")}function $(){o("referenceType","collapsed")}function U(e){const t=this.resume(),r=this.stack[this.stack.length-1];r.label=t,r.identifier=So(this.sliceSerialize(e)).toLowerCase(),o("referenceType","full")}function V(e){o("characterReferenceType",e.type)}function H(e){const t=this.sliceSerialize(e),r=a("characterReferenceType");let n;r?(n=fa(t,"characterReferenceMarkerNumeric"===r?10:16),o("characterReferenceType")):n=oo(t);const i=this.stack.pop();i.value+=n,i.position.end=s(e.end)}function Q(e){F.call(this,e);this.stack[this.stack.length-1].url=this.sliceSerialize(e)}function G(e){F.call(this,e);this.stack[this.stack.length-1].url="mailto:"+this.sliceSerialize(e)}function W(){return{type:"blockquote",children:[]}}function K(){return{type:"code",lang:null,meta:null,value:""}}function J(){return{type:"inlineCode",value:""}}function Y(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function X(){return{type:"emphasis",children:[]}}function Z(){return{type:"heading",depth:void 0,children:[]}}function ee(){return{type:"break"}}function te(){return{type:"html",value:""}}function re(){return{type:"image",title:null,url:"",alt:null}}function ne(){return{type:"link",title:null,url:"",children:[]}}function ie(e){return{type:"list",ordered:"listOrdered"===e.type,start:null,spread:e._spread,children:[]}}function oe(e){return{type:"listItem",spread:e._spread,checked:null,children:[]}}function ae(){return{type:"paragraph",children:[]}}function se(){return{type:"strong",children:[]}}function ce(){return{type:"text",value:""}}function ue(){return{type:"thematicBreak"}}}(r)(function(e){for(;!fo(e););return e}(function(e={}){const t={defined:[],lazy:{},constructs:Ai([ua].concat(e.extensions||[])),content:r(Qi),document:r(Gi),flow:r(Wo),string:r(Jo),text:r(Yo)};return t;function r(e){return function(r){return ta(t,e,r)}}}(r).document().write(function(){let e,t=1,r="",n=!0;return function(i,o,a){const s=[];let c,u,l,f,h;for(i=r+i.toString(o),l=0,r="",n&&(65279===i.charCodeAt(0)&&l++,n=void 0);l<i.length;){if(la.lastIndex=l,c=la.exec(i),f=c&&void 0!==c.index?c.index:i.length,h=i.charCodeAt(f),!c){r=i.slice(l);break}if(10===h&&l===f&&e)s.push(-3),e=void 0;else switch(e&&(s.push(-5),e=void 0),l<f&&(s.push(i.slice(l,f)),t+=f-l),h){case 0:s.push(65533),t++;break;case 9:for(u=4*Math.ceil(t/4),s.push(-2);t++<u;)s.push(-1);break;case 10:s.push(-4),t=1;break;default:e=!0,t=1}l=f+1}return a&&(e&&s.push(-5),r&&s.push(r),s.push(null)),s}}()(e,t,!0))))};function va(e,t){let r=-1;for(;++r<t.length;){const n=t[r];Array.isArray(n)?va(e,n):ya(e,n)}return e}function ya(e,t){let r;for(r in t)if(ma.call(t,r)){const n="canContainEols"===r||"transforms"===r,i=(ma.call(e,r)?e[r]:void 0)||(e[r]=n?[]:{}),o=t[r];o&&(n?e[r]=[...i,...o]:Object.assign(i,o))}}function ba(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+Zn({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+Zn({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+Zn({start:t.start,end:t.end})+") is still open")}var xa=se(Object.freeze({__proto__:null,default:function(e){Object.assign(this,{Parser:t=>{const r=this.data("settings");return ga(t,Object.assign({},r,e,{extensions:this.data("micromarkExtensions")||[],mdastExtensions:this.data("fromMarkdownExtensions")||[]}))}})}}));const wa={tokenize:function(e,t,r){return function(t){return e.consume(t),n};function n(t){return 87===t||119===t?(e.consume(t),i):r(t)}function i(t){return 87===t||119===t?(e.consume(t),o):r(t)}function o(t){return 46===t?(e.consume(t),a):r(t)}function a(e){return null===e||zi(e)?r(e):t(e)}},partial:!0},ka={tokenize:function(e,t,r){let n,i;return o;function o(t){return 38===t?e.check(Pa,s,a)(t):46===t||95===t?e.check(Sa,s,a)(t):null===t||Li(t)||Ni(t)||45!==t&&Bi(t)?s(t):(e.consume(t),o)}function a(t){return 46===t?(i=n,n=void 0,e.consume(t),o):(95===t&&(n=!0),e.consume(t),o)}function s(e){return i||n?r(e):t(e)}},partial:!0},Ea={tokenize:function(e,t){let r=0;return n;function n(a){return 38===a?e.check(Pa,t,i)(a):(40===a&&r++,41===a?e.check(Sa,o,i)(a):Ra(a)?t(a):Ta(a)?e.check(Sa,t,i)(a):(e.consume(a),n))}function i(t){return e.consume(t),n}function o(e){return r--,r<0?t(e):i(e)}},partial:!0},Sa={tokenize:function(e,t,r){return function(t){return e.consume(t),n};function n(i){return Ta(i)?(e.consume(i),n):Ra(i)?t(i):r(i)}},partial:!0},Pa={tokenize:function(e,t,r){return function(t){return e.consume(t),n};function n(t){return Di(t)?(e.consume(t),n):59===t?(e.consume(t),i):r(t)}function i(e){return Ra(e)?t(e):r(e)}},partial:!0},_a={tokenize:function(e,t,r){const n=this;return function(t){if(87!==t&&119!==t||!ja(n.previous)||za(n.events))return r(t);return e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(wa,e.attempt(ka,e.attempt(Ea,i),r),r)(t)};function i(r){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(r)}},previous:ja},Aa={tokenize:function(e,t,r){const n=this;return function(t){if(72!==t&&104!==t||!La(n.previous)||za(n.events))return r(t);return e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),e.consume(t),i};function i(t){return 84===t||116===t?(e.consume(t),o):r(t)}function o(t){return 84===t||116===t?(e.consume(t),a):r(t)}function a(t){return 80===t||112===t?(e.consume(t),s):r(t)}function s(t){return 83===t||115===t?(e.consume(t),c):c(t)}function c(t){return 58===t?(e.consume(t),u):r(t)}function u(t){return 47===t?(e.consume(t),l):r(t)}function l(t){return 47===t?(e.consume(t),f):r(t)}function f(t){return null===t||Li(t)||Ni(t)||Bi(t)?r(t):e.attempt(ka,e.attempt(Ea,h),r)(t)}function h(r){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(r)}},previous:La},Ca={tokenize:function(e,t,r){const n=this;let i,o;return function(t){if(!Ia(t)||!qa(n.previous)||za(n.events))return r(t);return e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),a(t)};function a(t){return Ia(t)?(e.consume(t),a):64===t?(e.consume(t),s):r(t)}function s(t){return 46===t?e.check(Sa,f,c)(t):45===t||95===t?e.check(Sa,r,u)(t):Ri(t)?(!o&&Oi(t)&&(o=!0),e.consume(t),s):f(t)}function c(t){return e.consume(t),i=!0,o=void 0,s}function u(t){return e.consume(t),l}function l(t){return 46===t?e.check(Sa,r,c)(t):s(t)}function f(n){return i&&!o?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(n)):r(n)}},previous:qa},Fa={},Da={text:Fa};let Oa=48;for(;Oa<123;)Fa[Oa]=Ca,Oa++,58===Oa?Oa=65:91===Oa&&(Oa=97);function Ta(e){return 33===e||34===e||39===e||41===e||42===e||44===e||46===e||58===e||59===e||60===e||63===e||95===e||126===e}function Ra(e){return null===e||60===e||qi(e)}function Ia(e){return 43===e||45===e||46===e||95===e||Ri(e)}function ja(e){return null===e||40===e||42===e||95===e||126===e||qi(e)}function La(e){return null===e||!Di(e)}function qa(e){return 47!==e&&La(e)}function za(e){let t=e.length,r=!1;for(;t--;){const n=e[t][1];if(("labelLink"===n.type||"labelImage"===n.type)&&!n._balanced){r=!0;break}if(n._gfmAutolinkLiteralWalkedInto){r=!1;break}}return e.length>0&&!r&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),r}Fa[43]=Ca,Fa[45]=Ca,Fa[46]=Ca,Fa[95]=Ca,Fa[72]=[Ca,Aa],Fa[104]=[Ca,Aa],Fa[87]=[Ca,_a],Fa[119]=[Ca,_a];const Ma={tokenize:function(e,t,r){const n=this;return Vi(e,(function(e){const i=n.events[n.events.length-1];return i&&"gfmFootnoteDefinitionIndent"===i[1].type&&4===i[2].sliceSerialize(i[1],!0).length?t(e):r(e)}),"gfmFootnoteDefinitionIndent",5)},partial:!0};function Na(e,t,r){const n=this;let i=n.events.length;const o=n.parser.gfmFootnotes||(n.parser.gfmFootnotes=[]);let a;for(;i--;){const e=n.events[i][1];if("labelImage"===e.type){a=e;break}if("gfmFootnoteCall"===e.type||"labelLink"===e.type||"label"===e.type||"image"===e.type||"link"===e.type)break}return function(i){if(!a||!a._balanced)return r(i);const s=So(n.sliceSerialize({start:a.end,end:n.now()}));if(94!==s.charCodeAt(0)||!o.includes(s.slice(1)))return r(i);return e.enter("gfmFootnoteCallLabelMarker"),e.consume(i),e.exit("gfmFootnoteCallLabelMarker"),t(i)}}function Ba(e,t){let r=e.length;for(;r--;)if("labelImage"===e[r][1].type&&"enter"===e[r][0]){e[r][1];break}e[r+1][1].type="data",e[r+3][1].type="gfmFootnoteCallLabelMarker";const n={type:"gfmFootnoteCall",start:Object.assign({},e[r+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:"gfmFootnoteCallMarker",start:Object.assign({},e[r+3][1].end),end:Object.assign({},e[r+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;const o={type:"gfmFootnoteCallString",start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},a={type:"chunkString",contentType:"string",start:Object.assign({},o.start),end:Object.assign({},o.end)},s=[e[r+1],e[r+2],["enter",n,t],e[r+3],e[r+4],["enter",i,t],["exit",i,t],["enter",o,t],["enter",a,t],["exit",a,t],["exit",o,t],e[e.length-2],e[e.length-1],["exit",n,t]];return e.splice(r,e.length-r+1,...s),e}function $a(e,t,r){const n=this,i=n.parser.gfmFootnotes||(n.parser.gfmFootnotes=[]);let o,a=0;return function(t){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(t),e.exit("gfmFootnoteCallLabelMarker"),s};function s(t){return 94!==t?r(t):(e.enter("gfmFootnoteCallMarker"),e.consume(t),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",c)}function c(s){let l;return null===s||91===s||a++>999?r(s):93===s?o?(e.exit("chunkString"),l=e.exit("gfmFootnoteCallString"),i.includes(So(n.sliceSerialize(l)))?function(r){return e.enter("gfmFootnoteCallLabelMarker"),e.consume(r),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t}(s):r(s)):r(s):(e.consume(s),qi(s)||(o=!0),92===s?u:c)}function u(t){return 91===t||92===t||93===t?(e.consume(t),a++,c):c(t)}}function Ua(e,t,r){const n=this,i=n.parser.gfmFootnotes||(n.parser.gfmFootnotes=[]);let o,a,s=0;return function(t){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),c};function c(t){return 94===t?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),u):r(t)}function u(t){let i;return null===t||91===t||s>999?r(t):93===t?a?(i=e.exit("gfmFootnoteDefinitionLabelString"),o=So(n.sliceSerialize(i)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),h):r(t):zi(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),s++,u):(e.enter("chunkString").contentType="string",l(t))}function l(t){return null===t||zi(t)||91===t||93===t||s>999?(e.exit("chunkString"),u(t)):(qi(t)||(a=!0),s++,e.consume(t),92===t?f:l)}function f(t){return 91===t||92===t||93===t?(e.consume(t),s++,l):l(t)}function h(t){return 58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),Vi(e,p,"gfmFootnoteDefinitionWhitespace")):r(t)}function p(e){return i.includes(o)||i.push(o),t(e)}}function Va(e,t,r){return e.check(eo,t,e.attempt(Ma,t,r))}function Ha(e){e.exit("gfmFootnoteDefinition")}function Qa(e={}){let t=e.singleTilde;const r={tokenize:function(e,r,n){const i=this.previous,o=this.events;let a=0;return function(t){if(126===i&&"characterEscape"!==o[o.length-1][1].type)return n(t);return e.enter("strikethroughSequenceTemporary"),s(t)};function s(o){const c=Ki(i);if(126===o)return a>1?n(o):(e.consume(o),a++,s);if(a<2&&!t)return n(o);const u=e.exit("strikethroughSequenceTemporary"),l=Ki(o);return u._open=!l||2===l&&Boolean(c),u._close=!c||2===c&&Boolean(l),r(o)}},resolveAll:function(e,t){let r=-1;for(;++r<e.length;)if("enter"===e[r][0]&&"strikethroughSequenceTemporary"===e[r][1].type&&e[r][1]._close){let n=r;for(;n--;)if("exit"===e[n][0]&&"strikethroughSequenceTemporary"===e[n][1].type&&e[n][1]._open&&e[r][1].end.offset-e[r][1].start.offset==e[n][1].end.offset-e[n][1].start.offset){e[r][1].type="strikethroughSequence",e[n][1].type="strikethroughSequence";const i={type:"strikethrough",start:Object.assign({},e[n][1].start),end:Object.assign({},e[r][1].end)},o={type:"strikethroughText",start:Object.assign({},e[n][1].end),end:Object.assign({},e[r][1].start)},a=[["enter",i,t],["enter",e[n][1],t],["exit",e[n][1],t],["enter",o,t]];Si(a,a.length,0,Ji(t.parser.constructs.insideSpan.null,e.slice(n+1,r),t)),Si(a,a.length,0,[["exit",o,t],["enter",e[r][1],t],["exit",e[r][1],t],["exit",i,t]]),Si(e,n-1,r-n+3,a),r=n+a.length-2;break}}r=-1;for(;++r<e.length;)"strikethroughSequenceTemporary"===e[r][1].type&&(e[r][1].type="data");return e}};return null==t&&(t=!0),{text:{126:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}}}const Ga={flow:{null:{tokenize:function(e,t,r){const n=this,i=[];let o,a,s=0;return function(t){if(e.enter("table")._align=i,e.enter("tableHead"),e.enter("tableRow"),124===t)return c(t);return s++,e.enter("temporaryTableCellContent"),f(t)};function c(t){return e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),o=!0,u}function u(t){return null===t||zi(t)?function(t){if(null===t)return r(t);e.exit("tableRow"),e.exit("tableHead");const i=n.interrupt;return n.interrupt=!0,e.attempt({tokenize:C,partial:!0},(function(t){return n.interrupt=i,e.enter("tableDelimiterRow"),p(t)}),(function(e){return n.interrupt=i,r(e)}))(t)}(t):Mi(t)?(e.enter("whitespace"),e.consume(t),l):(o&&(o=void 0,s++),124===t?c(t):(e.enter("temporaryTableCellContent"),f(t)))}function l(t){return Mi(t)?(e.consume(t),l):(e.exit("whitespace"),u(t))}function f(t){return null===t||124===t||qi(t)?(e.exit("temporaryTableCellContent"),u(t)):(e.consume(t),92===t?h:f)}function h(t){return 92===t||124===t?(e.consume(t),f):f(t)}function p(t){return null===t||zi(t)?y(t):Mi(t)?(e.enter("whitespace"),e.consume(t),d):45===t?(e.enter("tableDelimiterFiller"),e.consume(t),a=!0,i.push(null),m):58===t?(e.enter("tableDelimiterAlignment"),e.consume(t),e.exit("tableDelimiterAlignment"),i.push("left"),g):124===t?(e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),p):r(t)}function d(t){return Mi(t)?(e.consume(t),d):(e.exit("whitespace"),p(t))}function m(t){return 45===t?(e.consume(t),m):(e.exit("tableDelimiterFiller"),58===t?(e.enter("tableDelimiterAlignment"),e.consume(t),e.exit("tableDelimiterAlignment"),i[i.length-1]="left"===i[i.length-1]?"center":"right",v):p(t))}function g(t){return 45===t?(e.enter("tableDelimiterFiller"),e.consume(t),a=!0,m):r(t)}function v(t){return null===t||zi(t)?y(t):Mi(t)?(e.enter("whitespace"),e.consume(t),d):124===t?(e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),p):r(t)}function y(t){return e.exit("tableDelimiterRow"),a&&s===i.length?null===t?b(t):e.check(Wa,b,e.attempt({tokenize:C,partial:!0},Vi(e,x,"linePrefix",4),b))(t):r(t)}function b(r){return e.exit("table"),t(r)}function x(t){return e.enter("tableBody"),w(t)}function w(t){return e.enter("tableRow"),124===t?k(t):(e.enter("temporaryTableCellContent"),P(t))}function k(t){return e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),E}function E(t){return null===t||zi(t)?function(t){if(e.exit("tableRow"),null===t)return A(t);return e.check(Wa,A,e.attempt({tokenize:C,partial:!0},Vi(e,w,"linePrefix",4),A))(t)}(t):Mi(t)?(e.enter("whitespace"),e.consume(t),S):124===t?k(t):(e.enter("temporaryTableCellContent"),P(t))}function S(t){return Mi(t)?(e.consume(t),S):(e.exit("whitespace"),E(t))}function P(t){return null===t||124===t||qi(t)?(e.exit("temporaryTableCellContent"),E(t)):(e.consume(t),92===t?_:P)}function _(t){return 92===t||124===t?(e.consume(t),P):P(t)}function A(t){return e.exit("tableBody"),b(t)}function C(e,t,r){return function(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),Vi(e,i,"linePrefix")};function i(i){if(n.parser.lazy[n.now().line]||null===i||zi(i))return r(i);const o=n.events[n.events.length-1];return!n.parser.constructs.disable.null.includes("codeIndented")&&o&&"linePrefix"===o[1].type&&o[2].sliceSerialize(o[1],!0).length>=4?r(i):(n._gfmTableDynamicInterruptHack=!0,e.check(n.parser.constructs.flow,(function(e){return n._gfmTableDynamicInterruptHack=!1,r(e)}),(function(e){return n._gfmTableDynamicInterruptHack=!1,t(e)}))(i))}}},resolve:function(e,t){let r,n,i,o,a,s,c,u=-1;for(;++u<e.length;){const l=e[u][1];if(i&&("temporaryTableCellContent"===l.type&&(o=o||u,a=u),("tableCellDivider"===l.type||"tableRow"===l.type)&&a)){const r={type:"tableContent",start:e[o][1].start,end:e[a][1].end},n={type:"chunkText",start:r.start,end:r.end,contentType:"text"};e.splice(o,a-o+1,["enter",r,t],["enter",n,t],["exit",n,t],["exit",r,t]),u-=a-o-3,o=void 0,a=void 0}if("exit"===e[u][0]&&void 0!==s&&s+(c?0:1)<u&&("tableCellDivider"===l.type||"tableRow"===l.type&&(s+3<u||"whitespace"!==e[s][1].type))){const i={type:n?"tableDelimiter":r?"tableHeader":"tableData",start:e[s][1].start,end:e[u][1].end};e.splice(u+("tableCellDivider"===l.type?1:0),0,["exit",i,t]),e.splice(s,0,["enter",i,t]),u+=2,s=u+1,c=!0}"tableRow"===l.type&&(i="enter"===e[u][0],i&&(s=u+1,c=!1)),"tableDelimiterRow"===l.type&&(n="enter"===e[u][0],n&&(s=u+1,c=!1)),"tableHead"===l.type&&(r="enter"===e[u][0])}return e}}}},Wa={tokenize:function(e,t,r){let n=0;return function(t){return e.enter("check"),e.consume(t),i};function i(o){return-1===o||32===o?(e.consume(o),n++,4===n?t:i):null===o||qi(o)?t(o):r(o)}},partial:!0};const Ka={tokenize:function(e,t,r){const n=this;return function(t){if(null!==n.previous||!n._gfmTasklistFirstContentOfListItem)return r(t);return e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),i};function i(t){return Mi(t)?(e.enter("taskListCheckValueUnchecked"),e.consume(t),e.exit("taskListCheckValueUnchecked"),o):88===t||120===t?(e.enter("taskListCheckValueChecked"),e.consume(t),e.exit("taskListCheckValueChecked"),o):r(t)}function o(n){return 93===n?(e.enter("taskListCheckMarker"),e.consume(n),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),e.check({tokenize:Ya},t,r)):r(n)}}},Ja={text:{91:Ka}};function Ya(e,t,r){const n=this;return Vi(e,(function(e){const i=n.events[n.events.length-1];return i&&"whitespace"===i[1].type&&null!==e&&!qi(e)?t(e):r(e)}),"whitespace")}function Xa(e,t){const r=String(e);if("string"!=typeof t)throw new TypeError("Expected character");let n=0,i=r.indexOf(t);for(;-1!==i;)n++,i=r.indexOf(t,i+t.length);return n}const Za=function(e,t,r,n){"function"==typeof t&&"function"!=typeof r&&(n=r,r=t,t=null);var i=Wr(t),o=n?-1:1;!function e(a,s,c){var u,l="object"==typeof a&&null!==a?a:{};"string"==typeof l.type&&(u="string"==typeof l.tagName?l.tagName:"string"==typeof l.name?l.name:void 0,Object.defineProperty(h,"name",{value:"node ("+(f=l.type+(u?"<"+u+">":""),"[33m"+f+"[39m)")}));var f;return h;function h(){var u,l,f,h=[];if((!t||i(a,s,c[c.length-1]||null))&&(h=function(e){if(Array.isArray(e))return e;if("number"==typeof e)return[true,e];return[e]}(r(a,c)),false===h[0]))return h;if(a.children&&"skip"!==h[0])for(l=(n?a.children.length:-1)+o,f=c.concat(a);l>-1&&l<a.children.length;){if(u=e(a.children[l],l,f)(),false===u[0])return u;l="number"==typeof u[1]?u[1]:l+o}return h}}(e,null,[])()};const es={}.hasOwnProperty,ts=function(e,t,r,n){let i,o;"string"==typeof t||t instanceof RegExp?(o=[[t,r]],i=n):(o=t,i=r),i||(i={});const a=Wr(i.ignore||[]),s=function(e){const t=[];if("object"!=typeof e)throw new TypeError("Expected array or object as schema");if(Array.isArray(e)){let r=-1;for(;++r<e.length;)t.push([rs(e[r][0]),ns(e[r][1])])}else{let r;for(r in e)es.call(e,r)&&t.push([rs(r),ns(e[r])])}return t}(o);let c=-1;for(;++c<s.length;)Za(e,"text",u);return e;function u(e,t){let r,n=-1;for(;++n<t.length;){const e=t[n];if(a(e,r?r.children.indexOf(e):void 0,r))return;r=e}if(r)return function(e,t){const r=s[c][0],n=s[c][1];let i,o=0,a=t.children.indexOf(e),u=[];r.lastIndex=0;let l=r.exec(e.value);for(;l;){i=l.index;let t=n(...l,{index:l.index,input:l.input});if("string"==typeof t&&(t=t.length>0?{type:"text",value:t}:void 0),!1!==t&&(o!==i&&u.push({type:"text",value:e.value.slice(o,i)}),Array.isArray(t)?u.push(...t):t&&u.push(t),o=i+l[0].length),!r.global)break;l=r.exec(e.value)}void 0===i?(u=[e],a--):(o<e.value.length&&u.push({type:"text",value:e.value.slice(o)}),t.children.splice(a,1,...u));return a+u.length+1}(e,r)}};function rs(e){return"string"==typeof e?new RegExp(function(e){if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}(e),"g"):e}function ns(e){return"function"==typeof e?e:()=>e}const is=["autolink","link","image","label"],os={transforms:[function(e){ts(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,cs],[/([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/g,us]],{ignore:["link","linkReference"]})}],enter:{literalAutolink:function(e){this.enter({type:"link",title:null,url:"",children:[]},e)},literalAutolinkEmail:ss,literalAutolinkHttp:ss,literalAutolinkWww:ss},exit:{literalAutolink:function(e){this.exit(e)},literalAutolinkEmail:function(e){this.config.exit.autolinkEmail.call(this,e)},literalAutolinkHttp:function(e){this.config.exit.autolinkProtocol.call(this,e)},literalAutolinkWww:function(e){this.config.exit.data.call(this,e);this.stack[this.stack.length-1].url="http://"+this.sliceSerialize(e)}}},as={unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:"phrasing",notInConstruct:is},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:"phrasing",notInConstruct:is},{character:":",before:"[ps]",after:"\\/",inConstruct:"phrasing",notInConstruct:is}]};function ss(e){this.config.enter.autolinkProtocol.call(this,e)}function cs(e,t,r,n,i){let o="";if(!ls(i))return!1;if(/^w/i.test(t)&&(r=t+r,t="",o="http://"),!function(e){const t=e.split(".");if(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))return!1;return!0}(r))return!1;const a=function(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);let r,n,i,o;if(t)for(e=e.slice(0,t.index),o=t[0],r=o.indexOf(")"),n=Xa(e,"("),i=Xa(e,")");-1!==r&&n>i;)e+=o.slice(0,r+1),o=o.slice(r+1),r=o.indexOf(")"),i++;return[e,o]}(r+n);if(!a[0])return!1;const s={type:"link",title:null,url:o+t+a[0],children:[{type:"text",value:t+a[0]}]};return a[1]?[s,{type:"text",value:a[1]}]:s}function us(e,t,r,n){return!(!ls(n,!0)||/[_-\d]$/.test(r))&&{type:"link",title:null,url:"mailto:"+t+"@"+r,children:[{type:"text",value:t+"@"+r}]}}function ls(e,t){const r=e.input.charCodeAt(e.index-1);return(0===e.index||Ni(r)||Bi(r))&&(!t||47!==r)}function fs(e){return e.label||!e.identifier?e.label||"":pa(e.identifier)}function hs(e,t){const r=t.indexStack,n=e.children||[],i=[];let o=-1;for(r.push(-1);++o<n.length;){const s=n[o];r[r.length-1]=o,i.push(t.handle(s,e,t,{before:"\n",after:"\n"})),"list"!==s.type&&(t.bulletLastUsed=void 0),o<n.length-1&&i.push(a(s,n[o+1]))}return r.pop(),i.join("");function a(r,n){let i=t.join.length;for(;i--;){const o=t.join[i](r,n,e,t);if(!0===o||1===o)break;if("number"==typeof o)return"\n".repeat(1+o);if(!1===o)return"\n\n\x3c!----\x3e\n\n"}return"\n\n"}}const ps=/\r?\n|\r/g;function ds(e,t){const r=[];let n,i=0,o=0;for(;n=ps.exec(e);)a(e.slice(i,n.index)),r.push(n[0]),i=n.index+n[0].length,o++;return a(e.slice(i)),r.join("");function a(e){r.push(t(e,o,!e))}}function ms(e){if(!e._compiled){const t=(e.atBreak?"[\\r\\n][\\t ]*":"")+(e.before?"(?:"+e.before+")":"");e._compiled=new RegExp((t?"("+t+")":"")+(/[|\\{}()[\]^$+*?.-]/.test(e.character)?"\\":"")+e.character+(e.after?"(?:"+e.after+")":""),"g")}return e._compiled}function gs(e,t){return vs(e,t.inConstruct,!0)&&!vs(e,t.notInConstruct,!1)}function vs(e,t,r){if(!t)return r;"string"==typeof t&&(t=[t]);let n=-1;for(;++n<t.length;)if(e.includes(t[n]))return!0;return!1}function ys(e,t,r){const n=(r.before||"")+(t||"")+(r.after||""),i=[],o=[],a={};let s=-1;for(;++s<e.unsafe.length;){const t=e.unsafe[s];if(!gs(e.stack,t))continue;const r=ms(t);let o;for(;o=r.exec(n);){const e="before"in t||Boolean(t.atBreak),r="after"in t,n=o.index+(e?o[1].length:0);i.includes(n)?(a[n].before&&!e&&(a[n].before=!1),a[n].after&&!r&&(a[n].after=!1)):(i.push(n),a[n]={before:e,after:r})}}i.sort(bs);let c=r.before?r.before.length:0;const u=n.length-(r.after?r.after.length:0);for(s=-1;++s<i.length;){const e=i[s];e<c||e>=u||(e+1<u&&i[s+1]===e+1&&a[e].after&&!a[e+1].before&&!a[e+1].after||i[s-1]===e-1&&a[e].before&&!a[e-1].before&&!a[e-1].after||(c!==e&&o.push(xs(n.slice(c,e),"\\")),c=e,!/[!-/:-@[-`{-~]/.test(n.charAt(e))||r.encode&&r.encode.includes(n.charAt(e))?(o.push("&#x"+n.charCodeAt(e).toString(16).toUpperCase()+";"),c++):o.push("\\")))}return o.push(xs(n.slice(c,u),r.after)),o.join("")}function bs(e,t){return e-t}function xs(e,t){const r=/\\(?=[!-/:-@[-`{-~])/g,n=[],i=[],o=e+t;let a,s=-1,c=0;for(;a=r.exec(o);)n.push(a.index);for(;++s<n.length;)c!==n[s]&&i.push(e.slice(c,n[s])),i.push("\\"),c=n[s];return i.push(e.slice(c)),i.join("")}const ws=function(e,t,r,n){"function"==typeof t&&"function"!=typeof r&&(n=r,r=t,t=null);const i=Wr(t),o=n?-1:1;!function e(a,s,c){const u="object"==typeof a&&null!==a?a:{};let l;"string"==typeof u.type&&(l="string"==typeof u.tagName?u.tagName:"string"==typeof u.name?u.name:void 0,Object.defineProperty(h,"name",{value:"node ("+(f=u.type+(l?"<"+l+">":""),"[33m"+f+"[39m)")}));var f;return h;function h(){let u,l,f,h=[];if((!t||i(a,s,c[c.length-1]||null))&&(h=function(e){if(Array.isArray(e))return e;if("number"==typeof e)return[true,e];return[e]}(r(a,c)),false===h[0]))return h;if(a.children&&"skip"!==h[0])for(l=(n?a.children.length:-1)+o,f=c.concat(a);l>-1&&l<a.children.length;){if(u=e(a.children[l],l,f)(),false===u[0])return u;l="number"==typeof u[1]?u[1]:l+o}return h}}(e,null,[])()};const ks=function(e,t,r,n){"function"==typeof t&&"function"!=typeof r&&(n=r,r=t,t=null),ws(e,t,(function(e,t){const n=t[t.length-1];return r(e,n?n.children.indexOf(e):null,n)}),n)};var Es=Object.freeze({__proto__:null,CONTINUE:true,SKIP:"skip",EXIT:false,visit:ks});let Ss=!1,Ps=!1;function _s(){return e.peek=function(){return"["},{unsafe:[{character:"[",inConstruct:["phrasing","label","reference"]}],handlers:{footnoteDefinition:function(e,t,r){const n=r.enter("footnoteDefinition"),i=r.enter("label"),o=ys(r,fs(e),{before:"^",after:"]"}),a="[^"+o+"]:";i();const s=ds(hs(e,r),(function(e,t,r){if(t)return(r?"":" ")+e;return(r?a:a+" ")+e}));n(),!Ss&&o.includes(":")&&(console.warn("[mdast-util-gfm-footnote] Warning: Found a colon in footnote identifier `"+o+"`. GitHub currently crahes on colons in footnotes (see <https://github.com/github/cmark-gfm/issues/241> for more info)"),Ss=!0);Ps||ks(e,"list",(()=>(console.warn("[mdast-util-gfm-footnote] Warning: Found a list in a footnote definition. GitHub currently crahes on lists in footnotes (see <https://github.com/github/cmark-gfm/issues/241> for more info)"),Ps=!0,false)));return s},footnoteReference:e}};function e(e,t,r){const n=r.enter("footnoteReference"),i=r.enter("reference"),o=ys(r,fs(e),{before:"^",after:"]"});return i(),n(),"[^"+o+"]"}}function As(e,t,r){const n=t.indexStack,i=e.children||[],o=[];let a=-1,s=r.before;for(n.push(-1);++a<i.length;){const c=i[a];let u;if(n[n.length-1]=a,a+1<i.length){let r=t.handle.handlers[i[a+1].type];r&&r.peek&&(r=r.peek),u=r?r(i[a+1],e,t,{before:"",after:""}).charAt(0):""}else u=r.after;o.length>0&&("\r"===s||"\n"===s)&&"html"===c.type&&(o[o.length-1]=o[o.length-1].replace(/(\r?\n|\r)$/," "),s=" "),o.push(t.handle(c,e,t,{before:s,after:u})),s=o[o.length-1].slice(-1)}return n.pop(),o.join("")}const Cs={canContainEols:["delete"],enter:{strikethrough:function(e){this.enter({type:"delete",children:[]},e)}},exit:{strikethrough:function(e){this.exit(e)}}},Fs={unsafe:[{character:"~",inConstruct:"phrasing"}],handlers:{delete:Ds}};function Ds(e,t,r){const n=r.enter("emphasis"),i=As(e,r,{before:"~",after:"~"});return n(),"~~"+i+"~~"}function Os(e,t,r){let n=e.value||"",i="`",o=-1;for(;new RegExp("(^|[^`])"+i+"([^`]|$)").test(n);)i+="`";for(/[^ \r\n]/.test(n)&&(/^[ \r\n]/.test(n)&&/[ \r\n]$/.test(n)||/^`|`$/.test(n))&&(n=" "+n+" ");++o<r.unsafe.length;){const e=r.unsafe[o],t=ms(e);let i;if(e.atBreak)for(;i=t.exec(n);){let e=i.index;10===n.charCodeAt(e)&&13===n.charCodeAt(e-1)&&e--,n=n.slice(0,e)+" "+n.slice(i.index+1)}}return i+n+i}function Ts(e){return null==e?"":String(e)}function Rs(e){return e.length}function Is(e){const t="string"==typeof e?e.charCodeAt(0):0;return 67===t||99===t?99:76===t||108===t?108:82===t||114===t?114:0}Ds.peek=function(){return"~"},Os.peek=function(){return"`"};const js={enter:{table:function(e){const t=e._align;this.enter({type:"table",align:t,children:[]},e),this.setData("inTable",!0)},tableData:qs,tableHeader:qs,tableRow:function(e){this.enter({type:"tableRow",children:[]},e)}},exit:{codeText:function(e){let t=this.resume();this.getData("inTable")&&(t=t.replace(/\\([\\|])/g,zs));this.stack[this.stack.length-1].value=t,this.exit(e)},table:function(e){this.exit(e),this.setData("inTable")},tableData:Ls,tableHeader:Ls,tableRow:Ls}};function Ls(e){this.exit(e)}function qs(e){this.enter({type:"tableCell",children:[]},e)}function zs(e,t){return"|"===t?t:e}function Ms(e){const t=e||{},r=t.tableCellPadding,n=t.tablePipeAlign,i=t.stringLength,o=r?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:"\n",inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[\t :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{table:function(e,t,r){return s(function(e,t){const r=e.children;let n=-1;const i=[],o=t.enter("table");for(;++n<r.length;)i[n]=c(r[n],t);return o(),i}(e,r),e.align)},tableRow:function(e,t,r){const n=s([c(e,r)]);return n.slice(0,n.indexOf("\n"))},tableCell:a,inlineCode:function(e,t,r){let n=Os(e,0,r);r.stack.includes("tableCell")&&(n=n.replace(/\|/g,"\\$&"));return n}}};function a(e,t,r){const n=r.enter("tableCell"),i=r.enter("phrasing"),a=As(e,r,{before:o,after:o});return i(),n(),a}function s(e,t){return function(e,t){const r=t||{},n=(r.align||[]).concat(),i=r.stringLength||Rs,o=[];let a=-1;const s=[],c=[],u=[];let l,f,h,p,d,m,g,v,y,b=0;for(;++a<e.length;){for(l=-1,f=[],h=[],e[a].length>b&&(b=e[a].length);++l<e[a].length;)d=Ts(e[a][l]),!1!==r.alignDelimiters&&(p=i(d),h[l]=p,(void 0===u[l]||p>u[l])&&(u[l]=p)),f.push(d);s[a]=f,c[a]=h}if(l=-1,"object"==typeof n&&"length"in n)for(;++l<b;)o[l]=Is(n[l]);else for(y=Is(n);++l<b;)o[l]=y;for(l=-1,f=[],h=[];++l<b;)y=o[l],g="",v="",99===y?(g=":",v=":"):108===y?g=":":114===y&&(v=":"),p=!1===r.alignDelimiters?1:Math.max(1,u[l]-g.length-v.length),d=g+"-".repeat(p)+v,!1!==r.alignDelimiters&&(p=g.length+p+v.length,p>u[l]&&(u[l]=p),h[l]=p),f[l]=d;s.splice(1,0,f),c.splice(1,0,h),a=-1;const x=[];for(;++a<s.length;){for(f=s[a],h=c[a],l=-1,m=[];++l<b;)d=f[l]||"",g="",v="",!1!==r.alignDelimiters&&(p=u[l]-(h[l]||0),y=o[l],114===y?g=" ".repeat(p):99===y?p%2?(g=" ".repeat(p/2+.5),v=" ".repeat(p/2-.5)):(g=" ".repeat(p/2),v=g):v=" ".repeat(p)),!1===r.delimiterStart||l||m.push("|"),!1===r.padding||!1===r.alignDelimiters&&""===d||!1===r.delimiterStart&&!l||m.push(" "),!1!==r.alignDelimiters&&m.push(g),m.push(d),!1!==r.alignDelimiters&&m.push(v),!1!==r.padding&&m.push(" "),!1===r.delimiterEnd&&l===b-1||m.push("|");x.push(!1===r.delimiterEnd?m.join("").replace(/ +$/,""):m.join(""))}return x.join("\n")}(e,{align:t,alignDelimiters:n,padding:r,stringLength:i})}function c(e,t){const r=e.children;let n=-1;const i=[],o=t.enter("tableRow");for(;++n<r.length;)i[n]=a(r[n],0,t);return o(),i}}function Ns(e,t,r){const n=function(e){const t=e.options.listItemIndent||"tab";if(1===t||"1"===t)return"one";if("tab"!==t&&"one"!==t&&"mixed"!==t)throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}(r);let i=r.bulletCurrent||function(e){const t=e.options.bullet||"*";if("*"!==t&&"+"!==t&&"-"!==t)throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}(r);t&&"list"===t.type&&t.ordered&&(i=("number"==typeof t.start&&t.start>-1?t.start:1)+(!1===r.options.incrementListMarker?0:t.children.indexOf(e))+i);let o=i.length+1;("tab"===n||"mixed"===n&&(t&&"list"===t.type&&t.spread||e.spread))&&(o=4*Math.ceil(o/4));const a=r.enter("listItem"),s=ds(hs(e,r),(function(e,t,r){if(t)return(r?"":" ".repeat(o))+e;return(r?i:i+" ".repeat(o-i.length))+e}));return a(),s}const Bs={exit:{taskListCheckValueChecked:Us,taskListCheckValueUnchecked:Us,paragraph:function(e){const t=this.stack[this.stack.length-2],r=this.stack[this.stack.length-1],n=t.children,i=r.children[0];let o,a=-1;if(t&&"listItem"===t.type&&"boolean"==typeof t.checked&&i&&"text"===i.type){for(;++a<n.length;){const e=n[a];if("paragraph"===e.type){o=e;break}}o===r&&(i.value=i.value.slice(1),0===i.value.length?r.children.shift():(i.position.start.column++,i.position.start.offset++,r.position.start=Object.assign({},i.position.start)))}this.exit(e)}}},$s={unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:function(e,t,r){const n=e.children[0];let i=Ns(e,t,r);"boolean"==typeof e.checked&&n&&"paragraph"===n.type&&(i=i.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,(function(t){return t+"["+(e.checked?"x":" ")+"] "})));return i}}};function Us(e){this.stack[this.stack.length-2].checked="taskListCheckValueChecked"===e.type}var Vs=Object.freeze({__proto__:null,default:function(e={}){const t=this.data();function r(e,r){(t[e]?t[e]:t[e]=[]).push(r)}r("micromarkExtensions",function(e){return Ai([Da,{document:{91:{tokenize:Ua,continuation:{tokenize:Va},exit:Ha}},text:{91:{tokenize:$a},93:{add:"after",tokenize:Na,resolveTo:Ba}}},Qa(e),Ga,Ja])}(e)),r("fromMarkdownExtensions",[os,{enter:{gfmFootnoteDefinition:function(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)},gfmFootnoteDefinitionLabelString:function(){this.buffer()},gfmFootnoteCall:function(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)},gfmFootnoteCallString:function(){this.buffer()}},exit:{gfmFootnoteDefinition:function(e){this.exit(e)},gfmFootnoteDefinitionLabelString:function(e){const t=this.resume(),r=this.stack[this.stack.length-1];r.label=t,r.identifier=So(this.sliceSerialize(e)).toLowerCase()},gfmFootnoteCall:function(e){this.exit(e)},gfmFootnoteCallString:function(e){const t=this.resume(),r=this.stack[this.stack.length-1];r.label=t,r.identifier=So(this.sliceSerialize(e)).toLowerCase()}}},Cs,js,Bs]),r("toMarkdownExtensions",function(e){return{extensions:[as,_s(),Fs,Ms(e),$s]}}(e))}}),Hs=se(Vs);const Qs=/[\t ]*(?:\r?\n|\r)/g;var Gs=Object.freeze({__proto__:null,default:function(){return e=>{ks(e,"text",((e,t,r)=>{const n=[];let i=0;Qs.lastIndex=0;let o=Qs.exec(e.value);for(;o;){const t=o.index;i!==t&&n.push({type:"text",value:e.value.slice(i,t)}),n.push({type:"break"}),i=t+o[0].length,o=Qs.exec(e.value)}if(n.length>0&&r&&"number"==typeof t)return i<e.value.length&&n.push({type:"text",value:e.value.slice(i)}),r.children.splice(t,1,...n),t+n.length}))}}}),Ws=se(Gs),Ks={},Js={};function Ys(e,t,r){var n,i,o,a,s,c="";for("string"!=typeof t&&(r=t,t=Ys.defaultChars),void 0===r&&(r=!0),s=function(e){var t,r,n=Js[e];if(n)return n;for(n=Js[e]=[],t=0;t<128;t++)r=String.fromCharCode(t),/^[0-9a-z]$/i.test(r)?n.push(r):n.push("%"+("0"+t.toString(16).toUpperCase()).slice(-2));for(t=0;t<e.length;t++)n[e.charCodeAt(t)]=e[t];return n}(t),n=0,i=e.length;n<i;n++)if(o=e.charCodeAt(n),r&&37===o&&n+2<i&&/^[0-9a-f]{2}$/i.test(e.slice(n+1,n+3)))c+=e.slice(n,n+3),n+=2;else if(o<128)c+=s[o];else if(o>=55296&&o<=57343){if(o>=55296&&o<=56319&&n+1<i&&(a=e.charCodeAt(n+1))>=56320&&a<=57343){c+=encodeURIComponent(e[n]+e[n+1]),n++;continue}c+="%EF%BF%BD"}else c+=encodeURIComponent(e[n]);return c}Ys.defaultChars=";/?:@&=+$,-_.!~*'()#",Ys.componentChars="-_.!~*'()";var Xs=Ys,Zs={};function ec(e,t){var r;return"string"!=typeof t&&(t=ec.defaultChars),r=function(e){var t,r,n=Zs[e];if(n)return n;for(n=Zs[e]=[],t=0;t<128;t++)r=String.fromCharCode(t),n.push(r);for(t=0;t<e.length;t++)n[r=e.charCodeAt(t)]="%"+("0"+r.toString(16).toUpperCase()).slice(-2);return n}(t),e.replace(/(%[a-f0-9]{2})+/gi,(function(e){var t,n,i,o,a,s,c,u="";for(t=0,n=e.length;t<n;t+=3)(i=parseInt(e.slice(t+1,t+3),16))<128?u+=r[i]:192==(224&i)&&t+3<n&&128==(192&(o=parseInt(e.slice(t+4,t+6),16)))?(u+=(c=i<<6&1984|63&o)<128?"��":String.fromCharCode(c),t+=3):224==(240&i)&&t+6<n&&(o=parseInt(e.slice(t+4,t+6),16),a=parseInt(e.slice(t+7,t+9),16),128==(192&o)&&128==(192&a))?(u+=(c=i<<12&61440|o<<6&4032|63&a)<2048||c>=55296&&c<=57343?"���":String.fromCharCode(c),t+=6):240==(248&i)&&t+9<n&&(o=parseInt(e.slice(t+4,t+6),16),a=parseInt(e.slice(t+7,t+9),16),s=parseInt(e.slice(t+10,t+12),16),128==(192&o)&&128==(192&a)&&128==(192&s))?((c=i<<18&1835008|o<<12&258048|a<<6&4032|63&s)<65536||c>1114111?u+="����":(c-=65536,u+=String.fromCharCode(55296+(c>>10),56320+(1023&c))),t+=9):u+="�";return u}))}ec.defaultChars=";/?:@&=+$,#",ec.componentChars="";var tc=ec;function rc(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}var nc=/^([a-z0-9.+-]+:)/i,ic=/:[0-9]*$/,oc=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,ac=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),sc=["'"].concat(ac),cc=["%","/","?",";","#"].concat(sc),uc=["/","?","#"],lc=/^[+a-z0-9A-Z_-]{0,63}$/,fc=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,hc={javascript:!0,"javascript:":!0},pc={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};rc.prototype.parse=function(e,t){var r,n,i,o,a,s=e;if(s=s.trim(),!t&&1===e.split("#").length){var c=oc.exec(s);if(c)return this.pathname=c[1],c[2]&&(this.search=c[2]),this}var u=nc.exec(s);if(u&&(i=(u=u[0]).toLowerCase(),this.protocol=u,s=s.substr(u.length)),(t||u||s.match(/^\/\/[^@\/]+@[^@\/]+/))&&(!(a="//"===s.substr(0,2))||u&&hc[u]||(s=s.substr(2),this.slashes=!0)),!hc[u]&&(a||u&&!pc[u])){var l,f,h=-1;for(r=0;r<uc.length;r++)-1!==(o=s.indexOf(uc[r]))&&(-1===h||o<h)&&(h=o);for(-1!==(f=-1===h?s.lastIndexOf("@"):s.lastIndexOf("@",h))&&(l=s.slice(0,f),s=s.slice(f+1),this.auth=l),h=-1,r=0;r<cc.length;r++)-1!==(o=s.indexOf(cc[r]))&&(-1===h||o<h)&&(h=o);-1===h&&(h=s.length),":"===s[h-1]&&h--;var p=s.slice(0,h);s=s.slice(h),this.parseHost(p),this.hostname=this.hostname||"";var d="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!d){var m=this.hostname.split(/\./);for(r=0,n=m.length;r<n;r++){var g=m[r];if(g&&!g.match(lc)){for(var v="",y=0,b=g.length;y<b;y++)g.charCodeAt(y)>127?v+="x":v+=g[y];if(!v.match(lc)){var x=m.slice(0,r),w=m.slice(r+1),k=g.match(fc);k&&(x.push(k[1]),w.unshift(k[2])),w.length&&(s=w.join(".")+s),this.hostname=x.join(".");break}}}}this.hostname.length>255&&(this.hostname=""),d&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}var E=s.indexOf("#");-1!==E&&(this.hash=s.substr(E),s=s.slice(0,E));var S=s.indexOf("?");return-1!==S&&(this.search=s.substr(S),s=s.slice(0,S)),s&&(this.pathname=s),pc[i]&&this.hostname&&!this.pathname&&(this.pathname=""),this},rc.prototype.parseHost=function(e){var t=ic.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)};var dc=function(e,t){if(e&&e instanceof rc)return e;var r=new rc;return r.parse(e,t),r};function mc(e){const t=e.options.quote||'"';if('"'!==t&&"'"!==t)throw new Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function gc(e,t,r){const n=mc(r),i='"'===n?"Quote":"Apostrophe",o=r.enter("image");let a=r.enter("label"),s="!["+ys(r,e.alt,{before:"[",after:"]"})+"](";return a(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(a=r.enter("destinationLiteral"),s+="<"+ys(r,e.url,{before:"<",after:">"})+">"):(a=r.enter("destinationRaw"),s+=ys(r,e.url,{before:"(",after:e.title?" ":")"})),a(),e.title&&(a=r.enter("title"+i),s+=" "+n+ys(r,e.title,{before:n,after:n})+n,a()),s+=")",o(),s}Ks.encode=Xs,Ks.decode=tc,Ks.format=function(e){var t="";return t+=e.protocol||"",t+=e.slashes?"//":"",t+=e.auth?e.auth+"@":"",e.hostname&&-1!==e.hostname.indexOf(":")?t+="["+e.hostname+"]":t+=e.hostname||"",t+=e.port?":"+e.port:"",t+=e.pathname||"",t+=e.search||"",t+=e.hash||""},Ks.parse=dc,gc.peek=function(){return"!"};var vc=se(Object.freeze({__proto__:null,image:gc})),yc=se(Go);var bc=se(Object.freeze({__proto__:null,types:{data:"data",whitespace:"whitespace",lineEnding:"lineEnding",lineEndingBlank:"lineEndingBlank",linePrefix:"linePrefix",lineSuffix:"lineSuffix",atxHeading:"atxHeading",atxHeadingSequence:"atxHeadingSequence",atxHeadingText:"atxHeadingText",autolink:"autolink",autolinkEmail:"autolinkEmail",autolinkMarker:"autolinkMarker",autolinkProtocol:"autolinkProtocol",characterEscape:"characterEscape",characterEscapeValue:"characterEscapeValue",characterReference:"characterReference",characterReferenceMarker:"characterReferenceMarker",characterReferenceMarkerNumeric:"characterReferenceMarkerNumeric",characterReferenceMarkerHexadecimal:"characterReferenceMarkerHexadecimal",characterReferenceValue:"characterReferenceValue",codeFenced:"codeFenced",codeFencedFence:"codeFencedFence",codeFencedFenceSequence:"codeFencedFenceSequence",codeFencedFenceInfo:"codeFencedFenceInfo",codeFencedFenceMeta:"codeFencedFenceMeta",codeFlowValue:"codeFlowValue",codeIndented:"codeIndented",codeText:"codeText",codeTextData:"codeTextData",codeTextPadding:"codeTextPadding",codeTextSequence:"codeTextSequence",content:"content",definition:"definition",definitionDestination:"definitionDestination",definitionDestinationLiteral:"definitionDestinationLiteral",definitionDestinationLiteralMarker:"definitionDestinationLiteralMarker",definitionDestinationRaw:"definitionDestinationRaw",definitionDestinationString:"definitionDestinationString",definitionLabel:"definitionLabel",definitionLabelMarker:"definitionLabelMarker",definitionLabelString:"definitionLabelString",definitionMarker:"definitionMarker",definitionTitle:"definitionTitle",definitionTitleMarker:"definitionTitleMarker",definitionTitleString:"definitionTitleString",emphasis:"emphasis",emphasisSequence:"emphasisSequence",emphasisText:"emphasisText",escapeMarker:"escapeMarker",hardBreakEscape:"hardBreakEscape",hardBreakTrailing:"hardBreakTrailing",htmlFlow:"htmlFlow",htmlFlowData:"htmlFlowData",htmlText:"htmlText",htmlTextData:"htmlTextData",image:"image",label:"label",labelText:"labelText",labelLink:"labelLink",labelImage:"labelImage",labelMarker:"labelMarker",labelImageMarker:"labelImageMarker",labelEnd:"labelEnd",link:"link",paragraph:"paragraph",reference:"reference",referenceMarker:"referenceMarker",referenceString:"referenceString",resource:"resource",resourceDestination:"resourceDestination",resourceDestinationLiteral:"resourceDestinationLiteral",resourceDestinationLiteralMarker:"resourceDestinationLiteralMarker",resourceDestinationRaw:"resourceDestinationRaw",resourceDestinationString:"resourceDestinationString",resourceMarker:"resourceMarker",resourceTitle:"resourceTitle",resourceTitleMarker:"resourceTitleMarker",resourceTitleString:"resourceTitleString",setextHeading:"setextHeading",setextHeadingText:"setextHeadingText",setextHeadingLine:"setextHeadingLine",setextHeadingLineSequence:"setextHeadingLineSequence",strong:"strong",strongSequence:"strongSequence",strongText:"strongText",thematicBreak:"thematicBreak",thematicBreakSequence:"thematicBreakSequence",blockQuote:"blockQuote",blockQuotePrefix:"blockQuotePrefix",blockQuoteMarker:"blockQuoteMarker",blockQuotePrefixWhitespace:"blockQuotePrefixWhitespace",listOrdered:"listOrdered",listUnordered:"listUnordered",listItemIndent:"listItemIndent",listItemMarker:"listItemMarker",listItemPrefix:"listItemPrefix",listItemPrefixWhitespace:"listItemPrefixWhitespace",listItemValue:"listItemValue",chunkDocument:"chunkDocument",chunkContent:"chunkContent",chunkFlow:"chunkFlow",chunkText:"chunkText",chunkString:"chunkString"}}));var xc=se(Object.freeze({__proto__:null,codes:{carriageReturn:-5,lineFeed:-4,carriageReturnLineFeed:-3,horizontalTab:-2,virtualSpace:-1,eof:null,nul:0,soh:1,stx:2,etx:3,eot:4,enq:5,ack:6,bel:7,bs:8,ht:9,lf:10,vt:11,ff:12,cr:13,so:14,si:15,dle:16,dc1:17,dc2:18,dc3:19,dc4:20,nak:21,syn:22,etb:23,can:24,em:25,sub:26,esc:27,fs:28,gs:29,rs:30,us:31,space:32,exclamationMark:33,quotationMark:34,numberSign:35,dollarSign:36,percentSign:37,ampersand:38,apostrophe:39,leftParenthesis:40,rightParenthesis:41,asterisk:42,plusSign:43,comma:44,dash:45,dot:46,slash:47,digit0:48,digit1:49,digit2:50,digit3:51,digit4:52,digit5:53,digit6:54,digit7:55,digit8:56,digit9:57,colon:58,semicolon:59,lessThan:60,equalsTo:61,greaterThan:62,questionMark:63,atSign:64,uppercaseA:65,uppercaseB:66,uppercaseC:67,uppercaseD:68,uppercaseE:69,uppercaseF:70,uppercaseG:71,uppercaseH:72,uppercaseI:73,uppercaseJ:74,uppercaseK:75,uppercaseL:76,uppercaseM:77,uppercaseN:78,uppercaseO:79,uppercaseP:80,uppercaseQ:81,uppercaseR:82,uppercaseS:83,uppercaseT:84,uppercaseU:85,uppercaseV:86,uppercaseW:87,uppercaseX:88,uppercaseY:89,uppercaseZ:90,leftSquareBracket:91,backslash:92,rightSquareBracket:93,caret:94,underscore:95,graveAccent:96,lowercaseA:97,lowercaseB:98,lowercaseC:99,lowercaseD:100,lowercaseE:101,lowercaseF:102,lowercaseG:103,lowercaseH:104,lowercaseI:105,lowercaseJ:106,lowercaseK:107,lowercaseL:108,lowercaseM:109,lowercaseN:110,lowercaseO:111,lowercaseP:112,lowercaseQ:113,lowercaseR:114,lowercaseS:115,lowercaseT:116,lowercaseU:117,lowercaseV:118,lowercaseW:119,lowercaseX:120,lowercaseY:121,lowercaseZ:122,leftCurlyBrace:123,verticalBar:124,rightCurlyBrace:125,tilde:126,del:127,byteOrderMarker:65279,replacementCharacter:65533}}));var wc=se(Object.freeze({__proto__:null,constants:{attentionSideBefore:1,attentionSideAfter:2,atxHeadingOpeningFenceSizeMax:6,autolinkDomainSizeMax:63,autolinkSchemeSizeMax:32,cdataOpeningString:"CDATA[",characterGroupWhitespace:1,characterGroupPunctuation:2,characterReferenceDecimalSizeMax:7,characterReferenceHexadecimalSizeMax:6,characterReferenceNamedSizeMax:31,codeFencedSequenceSizeMin:3,contentTypeDocument:"document",contentTypeFlow:"flow",contentTypeContent:"content",contentTypeString:"string",contentTypeText:"text",hardBreakPrefixSizeMin:2,htmlRaw:1,htmlComment:2,htmlInstruction:3,htmlDeclaration:4,htmlCdata:5,htmlBasic:6,htmlComplete:7,htmlRawSizeMax:8,linkResourceDestinationBalanceMax:3,linkReferenceSizeMax:999,listItemValueSizeMax:10,numericBaseDecimal:10,numericBaseHexadecimal:16,tabSize:4,thematicBreakMarkerCountMin:3,v8MaxSafeChunkSize:1e4}})),kc=se(Po),Ec=se(Eo),Sc=se(vo),Pc=se(Ui),_c=se(bo),Ac=se(wo),Cc=se(Es);var Fc=Object.freeze({__proto__:null,paragraph:function(e,t,r){const n=r.enter("paragraph"),i=r.enter("phrasing"),o=As(e,r,{before:"\n",after:"\n"});return i(),n(),o}}),Dc=se(Fc);var Oc=Object.freeze({__proto__:null,heading:function(e,t,r){const n=Math.max(Math.min(6,e.depth||1),1);if(function(e,t){let r=!1;return ks(e,(e=>{if("value"in e&&/\r?\n|\r/.test(e.value)||"break"===e.type)return r=!0,!1})),Boolean((!e.depth||e.depth<3)&&wi(e)&&(t.options.setext||r))}(e,r)){const t=r.enter("headingSetext"),i=r.enter("phrasing"),o=As(e,r,{before:"\n",after:"\n"});return i(),t(),o+"\n"+(1===n?"=":"-").repeat(o.length-(Math.max(o.lastIndexOf("\r"),o.lastIndexOf("\n"))+1))}const i="#".repeat(n),o=r.enter("headingAtx"),a=r.enter("phrasing");let s=As(e,r,{before:"# ",after:"\n"});return/^[\t ]/.test(s)&&(s="&#x"+s.charCodeAt(0).toString(16).toUpperCase()+";"+s.slice(1)),s=s?i+" "+s:i,r.options.closeAtx&&(s+=" "+i),a(),o(),s}}),Tc=se(Oc),Rc=se(Hi);function Ic(e,t,r){return">"+(r?"":" ")+e}var jc,Lc=Object.freeze({__proto__:null,blockquote:function(e,t,r){const n=r.enter("blockquote"),i=ds(hs(e,r),Ic);return n(),i}}),qc=se(Lc),zc={exports:{}};jc=zc,function(){var e;function t(e){for(var t,r,n,i,o=1,a=[].slice.call(arguments),s=0,c=e.length,u="",l=!1,f=!1,h=function(){return a[o++]},p=function(){for(var r="";/\d/.test(e[s]);)r+=e[s++],t=e[s];return r.length>0?parseInt(r):null};s<c;++s)if(t=e[s],l)switch(l=!1,"."==t?(f=!1,t=e[++s]):"0"==t&&"."==e[s+1]?(f=!0,t=e[s+=2]):f=!0,i=p(),t){case"b":u+=parseInt(h(),10).toString(2);break;case"c":u+="string"==typeof(r=h())||r instanceof String?r:String.fromCharCode(parseInt(r,10));break;case"d":u+=parseInt(h(),10);break;case"f":n=String(parseFloat(h()).toFixed(i||6)),u+=f?n:n.replace(/^0/,"");break;case"j":u+=JSON.stringify(h());break;case"o":u+="0"+parseInt(h(),10).toString(8);break;case"s":u+=h();break;case"x":u+="0x"+parseInt(h(),10).toString(16);break;case"X":u+="0x"+parseInt(h(),10).toString(16).toUpperCase();break;default:u+=t}else"%"===t?l=!0:u+=t;return u}(e=jc.exports=t).format=t,e.vsprintf=function(e,r){return t.apply(null,[e].concat(r))},"undefined"!=typeof console&&"function"==typeof console.log&&(e.printf=function(){console.log(t.apply(null,arguments))})}();var Mc=zc.exports;const Nc=Object.assign(Bc(Error),{eval:Bc(EvalError),range:Bc(RangeError),reference:Bc(ReferenceError),syntax:Bc(SyntaxError),type:Bc(TypeError),uri:Bc(URIError)});function Bc(e){return t.displayName=e.displayName||e.name,t;function t(t,...r){const n=t?Mc(t,...r):t;return new e(n)}}const $c={}.hasOwnProperty,Uc={yaml:"-",toml:"+"};function Vc(e="yaml"){const t=[];let r=-1;for(Array.isArray(e)||(e=[e]);++r<e.length;)t[r]=Hc(e[r]);return t}function Hc(e){let t=e;if("string"==typeof t){if(!$c.call(Uc,t))throw Nc("Missing matter definition for `%s`",t);t={type:t,marker:Uc[t]}}else if("object"!=typeof t)throw Nc("Expected matter to be an object, not `%j`",t);if(!$c.call(t,"type"))throw Nc("Missing `type` in matter `%j`",t);if(!$c.call(t,"fence")&&!$c.call(t,"marker"))throw Nc("Missing `marker` or `fence` in matter `%j`",t);return t}function Qc(e){const t=e.type,r=e.anywhere,n=t+"Value",i=t+"Fence",o=i+"Sequence",a={tokenize:function(e,t,r){let n=0;return function(t){if(t===s.charCodeAt(n))return e.enter(i),e.enter(o),a(t);return r(t)};function a(t){return n===s.length?(e.exit(o),Mi(t)?(e.enter("whitespace"),c(t)):u(t)):t===s.charCodeAt(n++)?(e.consume(t),a):r(t)}function c(t){return Mi(t)?(e.consume(t),c):(e.exit("whitespace"),u(t))}function u(n){return null===n||zi(n)?(e.exit(i),t(n)):r(n)}},partial:!0};let s;return{tokenize:function(i,o,c){const u=this;return function(n){const o=u.now();if(1!==o.column||!r&&1!==o.line)return c(n);return i.enter(t),s=Gc(e,"open"),i.attempt(a,l,c)(n)};function l(t){return s=Gc(e,"close"),p(t)}function f(e){return null===e||zi(e)?p(e):(i.enter(n),h(e))}function h(e){return null===e||zi(e)?(i.exit(n),p(e)):(i.consume(e),h)}function p(e){return null===e?c(e):(i.enter("lineEnding"),i.consume(e),i.exit("lineEnding"),i.attempt(a,d,f))}function d(e){return i.exit(t),o(e)}},concrete:!0}}function Gc(e,t){return e.marker?Wc(e.marker,t).repeat(3):Wc(e.fence,t)}function Wc(e,t){return"string"==typeof e?e:e[t]}function Kc(e){return function(t){this.enter({type:e.type,value:""},t),this.buffer()}}function Jc(e){const t=this.resume();this.exit(e).value=t.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,"")}function Yc(e){this.config.enter.data.call(this,e),this.config.exit.data.call(this,e)}function Xc(e){const t=Zc(e,"open"),r=Zc(e,"close");return function(e){return t+(e.value?"\n"+e.value:"")+"\n"+r}}function Zc(e,t){return e.marker?eu(e.marker,t).repeat(3):eu(e.fence,t)}function eu(e,t){return"string"==typeof e?e:e[t]}var tu=Object.freeze({__proto__:null,default:function(e="yaml"){const t=this.data();function r(e,r){(t[e]?t[e]:t[e]=[]).push(r)}r("micromarkExtensions",function(e){const t=Vc(e),r={};let n,i,o=-1;for(;++o<t.length;)n=t[o],i=Gc(n,"open").charCodeAt(0),i in r?r[i].push(Qc(n)):r[i]=[Qc(n)];return{flow:r}}(e)),r("fromMarkdownExtensions",function(e){const t=Vc(e),r={},n={};let i=-1;for(;++i<t.length;){const e=t[i];r[e.type]=Kc(e),n[e.type]=Jc,n[e.type+"Value"]=Yc}return{enter:r,exit:n}}(e)),r("toMarkdownExtensions",function(e){const t=[],r={},n=Vc(e);let i=-1;for(;++i<n.length;){const e=n[i];r[e.type]=Xc(e),t.push({atBreak:!0,character:Zc(e,"open").charAt(0)})}return{unsafe:t,handlers:r}}(e))}}),ru=se(tu);function nu(e,t,r,n,i,o,a,s,c,u,l,f,h,p,d){let m,g;return function(t){return e.enter(n),e.enter(i),e.consume(t),e.exit(i),v};function v(t){return 35===t?(m=a,y(t)):46===t?(m=s,y(t)):58===t||95===t||Di(t)?(e.enter(o),e.enter(c),e.consume(t),w):d&&Mi(t)?Vi(e,v,"whitespace")(t):!d&&qi(t)?ko(e,v)(t):F(t)}function y(t){return e.enter(o),e.enter(m),e.enter(m+"Marker"),e.consume(t),e.exit(m+"Marker"),b}function b(t){return null===t||34===t||35===t||39===t||46===t||60===t||61===t||62===t||96===t||125===t||qi(t)?r(t):(e.enter(m+"Value"),e.consume(t),x)}function x(t){return null===t||34===t||39===t||60===t||61===t||62===t||96===t?r(t):35===t||46===t||125===t||qi(t)?(e.exit(m+"Value"),e.exit(m),e.exit(o),v(t)):(e.consume(t),x)}function w(t){return 45===t||46===t||58===t||95===t||Ri(t)?(e.consume(t),w):(e.exit(c),d&&Mi(t)?Vi(e,k,"whitespace")(t):!d&&qi(t)?ko(e,k)(t):k(t))}function k(t){return 61===t?(e.enter(u),e.consume(t),e.exit(u),E):(e.exit(o),v(t))}function E(t){return null===t||60===t||61===t||62===t||96===t||125===t||d&&zi(t)?r(t):34===t||39===t?(e.enter(l),e.enter(h),e.consume(t),e.exit(h),g=t,P):d&&Mi(t)?Vi(e,E,"whitespace")(t):!d&&qi(t)?ko(e,E)(t):(e.enter(f),e.enter(p),e.consume(t),g=void 0,S)}function S(t){return null===t||34===t||39===t||60===t||61===t||62===t||96===t?r(t):125===t||qi(t)?(e.exit(p),e.exit(f),e.exit(o),v(t)):(e.consume(t),S)}function P(t){return t===g?(e.enter(h),e.consume(t),e.exit(h),e.exit(l),e.exit(o),C):(e.enter(f),_(t))}function _(t){return t===g?(e.exit(f),P(t)):null===t?r(t):zi(t)?d?r(t):ko(e,_)(t):(e.enter(p),e.consume(t),A)}function A(t){return t===g||null===t||zi(t)?(e.exit(p),_(t)):(e.consume(t),A)}function C(e){return 125===e||qi(e)?v(e):F(e)}function F(o){return 125===o?(e.enter(i),e.consume(o),e.exit(i),e.exit(n),t):r(o)}}function iu(e,t,r,n,i,o,a){let s=0,c=0;return function(t){return e.enter(n),e.enter(i),e.consume(t),e.exit(i),u};function u(r){return 93===r?(e.enter(i),e.consume(r),e.exit(i),e.exit(n),t):(e.enter(o),l(r))}function l(t){return null===t||s>999?r(t):93!==t||c--?zi(t)?a?r(t):(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),l):(e.enter("chunkText",{contentType:"text"}),f(t)):h(t)}function f(t){return null===t||zi(t)||s>999?(e.exit("chunkText"),l(t)):91===t&&++c>3?r(t):93!==t||c--?(e.consume(t),92===t?p:f):(e.exit("chunkText"),h(t))}function h(r){return e.exit(o),e.enter(i),e.consume(r),e.exit(i),e.exit(n),t}function p(t){return 91===t||92===t||93===t?(e.consume(t),s++,f):f(t)}}function ou(e,t,r,n){const i=this;return function(t){if(Di(t))return e.enter(n),e.consume(t),o;return r(t)};function o(a){return 45===a||95===a||Ri(a)?(e.consume(a),o):(e.exit(n),45===i.previous||95===i.previous?r(a):t(a))}}const au={tokenize:function(e,t,r){const n=this,i=n.events[n.events.length-1],o=i&&"linePrefix"===i[1].type?i[2].sliceSerialize(i[1],!0).length:0;let a,s=0;return function(t){return e.enter("directiveContainer"),e.enter("directiveContainerFence"),e.enter("directiveContainerSequence"),c(t)};function c(t){return 58===t?(e.consume(t),s++,c):s<3?r(t):(e.exit("directiveContainerSequence"),ou.call(n,e,u,r,"directiveContainerName")(t))}function u(t){return 91===t?e.attempt(su,l,l)(t):l(t)}function l(t){return 123===t?e.attempt(cu,f,f)(t):f(t)}function f(t){return Vi(e,h,"whitespace")(t)}function h(i){return e.exit("directiveContainerFence"),null===i?p(i):zi(i)?n.interrupt?t(i):e.attempt(uu,d,p)(i):r(i)}function p(r){return e.exit("directiveContainer"),t(r)}function d(r){return null===r?(e.exit("directiveContainer"),t(r)):(e.enter("directiveContainerContent"),m(r))}function m(t){return null===t?x(t):e.attempt({tokenize:w,partial:!0},x,o?Vi(e,g,"linePrefix",o+1):g)(t)}function g(t){if(null===t)return x(t);const r=e.enter("chunkDocument",{contentType:"document",previous:a});return a&&(a.next=r),a=r,v(t)}function v(t){if(null===t){const r=e.exit("chunkDocument");return n.parser.lazy[r.start.line]=!1,x(t)}return zi(t)?e.check(uu,y,b)(t):(e.consume(t),v)}function y(t){e.consume(t);const r=e.exit("chunkDocument");return n.parser.lazy[r.start.line]=!1,m}function b(t){const r=e.exit("chunkDocument");return n.parser.lazy[r.start.line]=!1,x(t)}function x(r){return e.exit("directiveContainerContent"),e.exit("directiveContainer"),t(r)}function w(e,t,r){let n=0;return Vi(e,(function(t){return e.enter("directiveContainerFence"),e.enter("directiveContainerSequence"),i(t)}),"linePrefix",4);function i(t){return 58===t?(e.consume(t),n++,i):n<s?r(t):(e.exit("directiveContainerSequence"),Vi(e,o,"whitespace")(t))}function o(n){return null===n||zi(n)?(e.exit("directiveContainerFence"),t(n)):r(n)}}},concrete:!0},su={tokenize:function(e,t,r){return iu(e,t,r,"directiveContainerLabel","directiveContainerLabelMarker","directiveContainerLabelString",!0)},partial:!0},cu={tokenize:function(e,t,r){return nu(e,t,r,"directiveContainerAttributes","directiveContainerAttributesMarker","directiveContainerAttribute","directiveContainerAttributeId","directiveContainerAttributeClass","directiveContainerAttributeName","directiveContainerAttributeInitializerMarker","directiveContainerAttributeValueLiteral","directiveContainerAttributeValue","directiveContainerAttributeValueMarker","directiveContainerAttributeValueData",!0)},partial:!0},uu={tokenize:function(e,t,r){const n=this;return function(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i};function i(e){return n.parser.lazy[n.now().line]?r(e):t(e)}},partial:!0};const lu={tokenize:function(e,t,r){const n=this;return function(t){return e.enter("directiveLeaf"),e.enter("directiveLeafSequence"),e.consume(t),i};function i(t){return 58===t?(e.consume(t),e.exit("directiveLeafSequence"),ou.call(n,e,o,r,"directiveLeafName")):r(t)}function o(t){return 91===t?e.attempt(fu,a,a)(t):a(t)}function a(t){return 123===t?e.attempt(hu,s,s)(t):s(t)}function s(t){return Vi(e,c,"whitespace")(t)}function c(n){return null===n||zi(n)?(e.exit("directiveLeaf"),t(n)):r(n)}}},fu={tokenize:function(e,t,r){return iu(e,t,r,"directiveLeafLabel","directiveLeafLabelMarker","directiveLeafLabelString",!0)},partial:!0},hu={tokenize:function(e,t,r){return nu(e,t,r,"directiveLeafAttributes","directiveLeafAttributesMarker","directiveLeafAttribute","directiveLeafAttributeId","directiveLeafAttributeClass","directiveLeafAttributeName","directiveLeafAttributeInitializerMarker","directiveLeafAttributeValueLiteral","directiveLeafAttributeValue","directiveLeafAttributeValueMarker","directiveLeafAttributeValueData",!0)},partial:!0};const pu={tokenize:function(e,t,r){const n=this;return function(t){return e.enter("directiveText"),e.enter("directiveTextMarker"),e.consume(t),e.exit("directiveTextMarker"),ou.call(n,e,i,r,"directiveTextName")};function i(t){return 58===t?r(t):91===t?e.attempt(du,o,o)(t):o(t)}function o(t){return 123===t?e.attempt(mu,a,a)(t):a(t)}function a(r){return e.exit("directiveText"),t(r)}},previous:function(e){return 58!==e||"characterEscape"===this.events[this.events.length-1][1].type}},du={tokenize:function(e,t,r){return iu(e,t,r,"directiveTextLabel","directiveTextLabelMarker","directiveTextLabelString")},partial:!0},mu={tokenize:function(e,t,r){return nu(e,t,r,"directiveTextAttributes","directiveTextAttributesMarker","directiveTextAttribute","directiveTextAttributeId","directiveTextAttributeClass","directiveTextAttributeName","directiveTextAttributeInitializerMarker","directiveTextAttributeValueLiteral","directiveTextAttributeValue","directiveTextAttributeValueMarker","directiveTextAttributeValueData")},partial:!0};const gu=["AElig","AMP","Aacute","Acirc","Agrave","Aring","Atilde","Auml","COPY","Ccedil","ETH","Eacute","Ecirc","Egrave","Euml","GT","Iacute","Icirc","Igrave","Iuml","LT","Ntilde","Oacute","Ocirc","Ograve","Oslash","Otilde","Ouml","QUOT","REG","THORN","Uacute","Ucirc","Ugrave","Uuml","Yacute","aacute","acirc","acute","aelig","agrave","amp","aring","atilde","auml","brvbar","ccedil","cedil","cent","copy","curren","deg","divide","eacute","ecirc","egrave","eth","euml","frac12","frac14","frac34","gt","iacute","icirc","iexcl","igrave","iquest","iuml","laquo","lt","macr","micro","middot","nbsp","not","ntilde","oacute","ocirc","ograve","ordf","ordm","oslash","otilde","ouml","para","plusmn","pound","quot","raquo","reg","sect","shy","sup1","sup2","sup3","szlig","thorn","times","uacute","ucirc","ugrave","uml","uuml","yacute","yen","yuml"],vu={0:"�",128:"€",130:"‚",131:"ƒ",132:"„",133:"…",134:"†",135:"‡",136:"ˆ",137:"‰",138:"Š",139:"‹",140:"Œ",142:"Ž",145:"‘",146:"’",147:"“",148:"”",149:"•",150:"–",151:"—",152:"˜",153:"™",154:"š",155:"›",156:"œ",158:"ž",159:"Ÿ"};function yu(e){const t="string"==typeof e?e.charCodeAt(0):e;return t>=48&&t<=57}function bu(e){const t="string"==typeof e?e.charCodeAt(0):e;return t>=97&&t<=102||t>=65&&t<=70||t>=48&&t<=57}function xu(e){return function(e){const t="string"==typeof e?e.charCodeAt(0):e;return t>=97&&t<=122||t>=65&&t<=90}(e)||yu(e)}const wu=String.fromCharCode,ku=["","Named character references must be terminated by a semicolon","Numeric character references must be terminated by a semicolon","Named character references cannot be empty","Numeric character references cannot be empty","Named character references must be known","Numeric character references cannot be disallowed","Numeric character references cannot be outside the permissible Unicode range"];function Eu(e,t={}){const r="string"==typeof t.additional?t.additional.charCodeAt(0):t.additional,n=[];let i,o,a=0,s=-1,c="";t.position&&("start"in t.position||"indent"in t.position?(o=t.position.indent,i=t.position.start):i=t.position);let u,l=(i?i.line:0)||1,f=(i?i.column:0)||1,h=p();for(a--;++a<=e.length;)if(10===u&&(f=(o?o[s]:0)||1),u=e.charCodeAt(a),38===u){const i=e.charCodeAt(a+1);if(9===i||10===i||12===i||32===i||38===i||60===i||Number.isNaN(i)||r&&i===r){c+=wu(u),f++;continue}const o=a+1;let s,l=o,g=o;if(35===i){g=++l;const t=e.charCodeAt(g);88===t||120===t?(s="hexadecimal",g=++l):s="decimal"}else s="named";let v="",y="",b="";const x="named"===s?xu:"decimal"===s?yu:bu;for(g--;++g<=e.length;){const t=e.charCodeAt(g);if(!x(t))break;b+=wu(t),"named"===s&&gu.includes(b)&&(v=b,y=oo(b))}let w=59===e.charCodeAt(g);if(w){g++;const e="named"===s&&oo(b);e&&(v=b,y=e)}let k=1+g-o,E="";if(w||!1!==t.nonTerminated)if(b)if("named"===s){if(w&&!y)d(5,1);else if(v!==b&&(g=l+v.length,k=1+g-l,w=!1),!w){const r=v?1:3;if(t.attribute){const t=e.charCodeAt(g);61===t?(d(r,k),y=""):xu(t)?y="":d(r,k)}else d(r,k)}E=y}else{w||d(2,k);let e=Number.parseInt(b,"hexadecimal"===s?16:10);if(Su(e))d(7,k),E=wu(65533);else if(e in vu)d(6,k),E=vu[e];else{let t="";Pu(e)&&d(6,k),e>65535&&(e-=65536,t+=wu(e>>>10|55296),e=56320|1023&e),E=t+wu(e)}}else"named"!==s&&d(4,k);else;if(E){m(),h=p(),a=g-1,f+=g-o+1,n.push(E);const r=p();r.offset++,t.reference&&t.reference.call(t.referenceContext,E,{start:h,end:r},e.slice(o-1,g)),h=r}else b=e.slice(o-1,g),c+=b,f+=b.length,a=g-1}else 10===u&&(l++,s++,f=0),Number.isNaN(u)?m():(c+=wu(u),f++);return n.join("");function p(){return{line:l,column:f,offset:a+((i?i.offset:0)||0)}}function d(e,r){let n;t.warning&&(n=p(),n.column+=r,n.offset+=r,t.warning.call(t.warningContext,ku[e],n,e))}function m(){c&&(n.push(c),t.text&&t.text.call(t.textContext,c,{start:h,end:p()}),c="")}}function Su(e){return e>=55296&&e<=57343||e>1114111}function Pu(e){return e>=1&&e<=8||11===e||e>=13&&e<=31||e>=127&&e<=159||e>=64976&&e<=65007||65535==(65535&e)||65534==(65535&e)}function _u(e,t){return e=e.replace(t.subset?function(e){const t=[];let r=-1;for(;++r<e.length;)t.push(e[r].replace(/[|\\{}()[\]^$+*?.]/g,"\\$&"));return new RegExp("(?:"+t.join("|")+")","g")}(t.subset):/["&'<>`]/g,r),t.subset||t.escapeOnly?e:e.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,(function(e,r,n){return t.format(1024*(e.charCodeAt(0)-55296)+e.charCodeAt(1)-56320+65536,n.charCodeAt(r+2),t)})).replace(/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,r);function r(e,r,n){return t.format(e.charCodeAt(0),n.charCodeAt(r+1),t)}}function Au(e){return"&#x"+e.toString(16).toUpperCase()+";"}const Cu=function(e,t,r,n){"function"==typeof t&&"function"!=typeof r&&(n=r,r=t,t=null);const i=Wr(t),o=n?-1:1;!function e(a,s,c){const u="object"==typeof a&&null!==a?a:{};let l;"string"==typeof u.type&&(l="string"==typeof u.tagName?u.tagName:"string"==typeof u.name?u.name:void 0,Object.defineProperty(h,"name",{value:"node ("+(f=u.type+(l?"<"+l+">":""),"[33m"+f+"[39m)")}));var f;return h;function h(){let u,l,f,h=[];if((!t||i(a,s,c[c.length-1]||null))&&(h=function(e){if(Array.isArray(e))return e;if("number"==typeof e)return[true,e];return[e]}(r(a,c)),false===h[0]))return h;if(a.children&&"skip"!==h[0])for(l=(n?a.children.length:-1)+o,f=c.concat(a);l>-1&&l<a.children.length;){if(u=e(a.children[l],l,f)(),false===u[0])return u;l="number"==typeof u[1]?u[1]:l+o}return h}}(e,null,[])()};const Fu={}.hasOwnProperty,Du=/^[^\t\n\r "#'.<=>`}]+$/;$u.peek=function(){return":"};const Ou={canContainEols:["textDirective"],enter:{directiveContainer:function(e){Ru.call(this,"containerDirective",e)},directiveContainerAttributes:ju,directiveContainerLabel:function(e){this.enter({type:"paragraph",data:{directiveLabel:!0},children:[]},e)},directiveLeaf:function(e){Ru.call(this,"leafDirective",e)},directiveLeafAttributes:ju,directiveText:function(e){Ru.call(this,"textDirective",e)},directiveTextAttributes:ju},exit:{directiveContainer:Bu,directiveContainerAttributeClassValue:qu,directiveContainerAttributeIdValue:Lu,directiveContainerAttributeName:Mu,directiveContainerAttributeValue:zu,directiveContainerAttributes:Nu,directiveContainerLabel:function(e){this.exit(e)},directiveContainerName:Iu,directiveLeaf:Bu,directiveLeafAttributeClassValue:qu,directiveLeafAttributeIdValue:Lu,directiveLeafAttributeName:Mu,directiveLeafAttributeValue:zu,directiveLeafAttributes:Nu,directiveLeafName:Iu,directiveText:Bu,directiveTextAttributeClassValue:qu,directiveTextAttributeIdValue:Lu,directiveTextAttributeName:Mu,directiveTextAttributeValue:zu,directiveTextAttributes:Nu,directiveTextName:Iu}},Tu={unsafe:[{character:"\r",inConstruct:["leafDirectiveLabel","containerDirectiveLabel"]},{character:"\n",inConstruct:["leafDirectiveLabel","containerDirectiveLabel"]},{before:"[^:]",character:":",after:"[A-Za-z]",inConstruct:["phrasing"]},{atBreak:!0,character:":",after:":"}],handlers:{containerDirective:$u,leafDirective:$u,textDirective:$u}};function Ru(e,t){this.enter({type:e,name:"",attributes:{},children:[]},t)}function Iu(e){this.stack[this.stack.length-1].name=this.sliceSerialize(e)}function ju(){this.setData("directiveAttributes",[]),this.buffer()}function Lu(e){this.getData("directiveAttributes").push(["id",Eu(this.sliceSerialize(e))])}function qu(e){this.getData("directiveAttributes").push(["class",Eu(this.sliceSerialize(e))])}function zu(e){const t=this.getData("directiveAttributes");t[t.length-1][1]=Eu(this.sliceSerialize(e))}function Mu(e){this.getData("directiveAttributes").push([this.sliceSerialize(e),""])}function Nu(){const e=this.getData("directiveAttributes"),t={};let r=-1;for(;++r<e.length;){const n=e[r];"class"===n[0]&&t.class?t.class+=" "+n[1]:t[n[0]]=n[1]}this.setData("directiveAttributes"),this.resume();this.stack[this.stack.length-1].attributes=t}function Bu(e){this.exit(e)}function $u(e,t,r){const n=function(e){let t=0;"containerDirective"===e.type?(Cu(e,"containerDirective",r),t+=3):t="leafDirective"===e.type?2:1;return":".repeat(t);function r(e,r){let n=r.length,i=0;for(;n--;)"containerDirective"===r[n].type&&i++;i>t&&(t=i)}}(e),i=r.enter(e.type);let o=n+(e.name||"")+function(e,t){let r=e;if("containerDirective"===e.type){const t=(e.children||[])[0];if(!Uu(t))return"";r=t}const n=t.enter("label"),i=t.enter(e.type+"Label"),o=As(r,t,{before:"[",after:"]"});return i(),n(),o?"["+o+"]":""}(e,r)+function(e,t){const r=mc(t),n="textDirective"===e.type?[r]:[r,"\n","\r"],i=e.attributes||{},o=[];let a,s,c,u;for(u in i)if(Fu.call(i,u)&&void 0!==i[u]&&null!==i[u]){const e=String(i[u]);if("id"===u)c=Du.test(e)?"#"+e:l("id",e);else if("class"===u){const t=e.split(/[\t\n\r ]+/g),r=[],n=[];let i=-1;for(;++i<t.length;)(Du.test(t[i])?n:r).push(t[i]);a=r.length>0?l("class",r.join(" ")):"",s=n.length>0?"."+n.join("."):""}else o.push(l(u,e))}a&&o.unshift(a);s&&o.unshift(s);c&&o.unshift(c);return o.length>0?"{"+o.join(" ")+"}":"";function l(e,t){return e+(t?"="+r+function(e,t){return _u(e,Object.assign({format:Au},t))}(t,{subset:n})+r:"")}}(e,r);if("containerDirective"===e.type){const t=function(e,t){Uu((e.children||[])[0])&&(e=Object.assign({},e,{children:e.children.slice(1)}));return hs(e,t)}(e,r);t&&(o+="\n"+t),o+="\n"+n}return i(),o}function Uu(e){return Boolean(e&&"paragraph"===e.type&&e.data&&e.data.directiveLabel)}var Vu=Object.freeze({__proto__:null,default:function(){const e=this.data();function t(t,r){(e[t]?e[t]:e[t]=[]).push(r)}t("micromarkExtensions",{text:{58:pu},flow:{58:[au,lu]}}),t("fromMarkdownExtensions",Ou),t("toMarkdownExtensions",Tu)}}),Hu=se(Vu),Qu=se(Yr),Gu={exports:{}},Wu=function(e,t){return function(){for(var r=new Array(arguments.length),n=0;n<r.length;n++)r[n]=arguments[n];return e.apply(t,r)}},Ku=Wu,Ju=Object.prototype.toString;function Yu(e){return"[object Array]"===Ju.call(e)}function Xu(e){return void 0===e}function Zu(e){return null!==e&&"object"==typeof e}function el(e){if("[object Object]"!==Ju.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function tl(e){return"[object Function]"===Ju.call(e)}function rl(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),Yu(e))for(var r=0,n=e.length;r<n;r++)t.call(null,e[r],r,e);else for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.call(null,e[i],i,e)}var nl={isArray:Yu,isArrayBuffer:function(e){return"[object ArrayBuffer]"===Ju.call(e)},isBuffer:function(e){return null!==e&&!Xu(e)&&null!==e.constructor&&!Xu(e.constructor)&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)},isFormData:function(e){return"undefined"!=typeof FormData&&e instanceof FormData},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&e.buffer instanceof ArrayBuffer},isString:function(e){return"string"==typeof e},isNumber:function(e){return"number"==typeof e},isObject:Zu,isPlainObject:el,isUndefined:Xu,isDate:function(e){return"[object Date]"===Ju.call(e)},isFile:function(e){return"[object File]"===Ju.call(e)},isBlob:function(e){return"[object Blob]"===Ju.call(e)},isFunction:tl,isStream:function(e){return Zu(e)&&tl(e.pipe)},isURLSearchParams:function(e){return"undefined"!=typeof URLSearchParams&&e instanceof URLSearchParams},isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!=typeof window&&"undefined"!=typeof document)},forEach:rl,merge:function e(){var t={};function r(r,n){el(t[n])&&el(r)?t[n]=e(t[n],r):el(r)?t[n]=e({},r):Yu(r)?t[n]=r.slice():t[n]=r}for(var n=0,i=arguments.length;n<i;n++)rl(arguments[n],r);return t},extend:function(e,t,r){return rl(t,(function(t,n){e[n]=r&&"function"==typeof t?Ku(t,r):t})),e},trim:function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")},stripBOM:function(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e}},il=nl;function ol(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var al=function(e,t,r){if(!t)return e;var n;if(r)n=r(t);else if(il.isURLSearchParams(t))n=t.toString();else{var i=[];il.forEach(t,(function(e,t){null!=e&&(il.isArray(e)?t+="[]":e=[e],il.forEach(e,(function(e){il.isDate(e)?e=e.toISOString():il.isObject(e)&&(e=JSON.stringify(e)),i.push(ol(t)+"="+ol(e))})))})),n=i.join("&")}if(n){var o=e.indexOf("#");-1!==o&&(e=e.slice(0,o)),e+=(-1===e.indexOf("?")?"?":"&")+n}return e},sl=nl;function cl(){this.handlers=[]}cl.prototype.use=function(e,t,r){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!r&&r.synchronous,runWhen:r?r.runWhen:null}),this.handlers.length-1},cl.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},cl.prototype.forEach=function(e){sl.forEach(this.handlers,(function(t){null!==t&&e(t)}))};var ul=cl,ll=nl,fl=function(e,t,r,n,i){return e.config=t,r&&(e.code=r),e.request=n,e.response=i,e.isAxiosError=!0,e.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}},e},hl=fl,pl=function(e,t,r,n,i){var o=new Error(e);return hl(o,t,r,n,i)},dl=pl,ml=function(e,t,r){var n=r.config.validateStatus;r.status&&n&&!n(r.status)?t(dl("Request failed with status code "+r.status,r.config,null,r.request,r)):e(r)},gl=nl,vl=gl.isStandardBrowserEnv()?{write:function(e,t,r,n,i,o){var a=[];a.push(e+"="+encodeURIComponent(t)),gl.isNumber(r)&&a.push("expires="+new Date(r).toGMTString()),gl.isString(n)&&a.push("path="+n),gl.isString(i)&&a.push("domain="+i),!0===o&&a.push("secure"),document.cookie=a.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}},yl=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)},bl=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e},xl=function(e,t){return e&&!yl(t)?bl(e,t):t},wl=nl,kl=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"],El=nl,Sl=El.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");function n(e){var n=e;return t&&(r.setAttribute("href",n),n=r.href),r.setAttribute("href",n),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:"/"===r.pathname.charAt(0)?r.pathname:"/"+r.pathname}}return e=n(window.location.href),function(t){var r=El.isString(t)?n(t):t;return r.protocol===e.protocol&&r.host===e.host}}():function(){return!0};function Pl(e){this.message=e}Pl.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},Pl.prototype.__CANCEL__=!0;var _l,Al=Pl,Cl=nl,Fl=ml,Dl=vl,Ol=al,Tl=xl,Rl=function(e){var t,r,n,i={};return e?(wl.forEach(e.split("\n"),(function(e){if(n=e.indexOf(":"),t=wl.trim(e.substr(0,n)).toLowerCase(),r=wl.trim(e.substr(n+1)),t){if(i[t]&&kl.indexOf(t)>=0)return;i[t]="set-cookie"===t?(i[t]?i[t]:[]).concat([r]):i[t]?i[t]+", "+r:r}})),i):i},Il=Sl,jl=pl,Ll=Rf,ql=Al,zl=function(e){return new Promise((function(t,r){var n,i=e.data,o=e.headers,a=e.responseType;function s(){e.cancelToken&&e.cancelToken.unsubscribe(n),e.signal&&e.signal.removeEventListener("abort",n)}Cl.isFormData(i)&&delete o["Content-Type"];var c=new XMLHttpRequest;if(e.auth){var u=e.auth.username||"",l=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";o.Authorization="Basic "+btoa(u+":"+l)}var f=Tl(e.baseURL,e.url);function h(){if(c){var n="getAllResponseHeaders"in c?Rl(c.getAllResponseHeaders()):null,i={data:a&&"text"!==a&&"json"!==a?c.response:c.responseText,status:c.status,statusText:c.statusText,headers:n,config:e,request:c};Fl((function(e){t(e),s()}),(function(e){r(e),s()}),i),c=null}}if(c.open(e.method.toUpperCase(),Ol(f,e.params,e.paramsSerializer),!0),c.timeout=e.timeout,"onloadend"in c?c.onloadend=h:c.onreadystatechange=function(){c&&4===c.readyState&&(0!==c.status||c.responseURL&&0===c.responseURL.indexOf("file:"))&&setTimeout(h)},c.onabort=function(){c&&(r(jl("Request aborted",e,"ECONNABORTED",c)),c=null)},c.onerror=function(){r(jl("Network Error",e,null,c)),c=null},c.ontimeout=function(){var t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",n=e.transitional||Ll.transitional;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),r(jl(t,e,n.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",c)),c=null},Cl.isStandardBrowserEnv()){var p=(e.withCredentials||Il(f))&&e.xsrfCookieName?Dl.read(e.xsrfCookieName):void 0;p&&(o[e.xsrfHeaderName]=p)}"setRequestHeader"in c&&Cl.forEach(o,(function(e,t){void 0===i&&"content-type"===t.toLowerCase()?delete o[t]:c.setRequestHeader(t,e)})),Cl.isUndefined(e.withCredentials)||(c.withCredentials=!!e.withCredentials),a&&"json"!==a&&(c.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&c.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&c.upload&&c.upload.addEventListener("progress",e.onUploadProgress),(e.cancelToken||e.signal)&&(n=function(e){c&&(r(!e||e&&e.type?new ql("canceled"):e),c.abort(),c=null)},e.cancelToken&&e.cancelToken.subscribe(n),e.signal&&(e.signal.aborted?n():e.signal.addEventListener("abort",n))),i||(i=null),c.send(i)}))},Ml={exports:{}},Nl=q.default,Bl=Nl.URL,$l=M.default,Ul=N.default,Vl=B.default.Writable,Hl=z.default,Ql=function(){if(!_l){try{_l=require("debug")("follow-redirects")}catch(e){}"function"!=typeof _l&&(_l=function(){})}_l.apply(null,arguments)},Gl=["abort","aborted","connect","error","socket","timeout"],Wl=Object.create(null);Gl.forEach((function(e){Wl[e]=function(t,r,n){this._redirectable.emit(e,t,r,n)}}));var Kl=of("ERR_FR_REDIRECTION_FAILURE","Redirected request failed"),Jl=of("ERR_FR_TOO_MANY_REDIRECTS","Maximum number of redirects exceeded"),Yl=of("ERR_FR_MAX_BODY_LENGTH_EXCEEDED","Request body larger than maxBodyLength limit"),Xl=of("ERR_STREAM_WRITE_AFTER_END","write after end");function Zl(e,t){Vl.call(this),this._sanitizeOptions(e),this._options=e,this._ended=!1,this._ending=!1,this._redirectCount=0,this._redirects=[],this._requestBodyLength=0,this._requestBodyBuffers=[],t&&this.on("response",t);var r=this;this._onNativeResponse=function(e){r._processResponse(e)},this._performRequest()}function ef(e){var t={maxRedirects:21,maxBodyLength:10485760},r={};return Object.keys(e).forEach((function(n){var i=n+":",o=r[i]=e[n],a=t[n]=Object.create(o);Object.defineProperties(a,{request:{value:function(e,n,o){if("string"==typeof e){var a=e;try{e=rf(new Bl(a))}catch(t){e=Nl.parse(a)}}else Bl&&e instanceof Bl?e=rf(e):(o=n,n=e,e={protocol:i});return"function"==typeof n&&(o=n,n=null),(n=Object.assign({maxRedirects:t.maxRedirects,maxBodyLength:t.maxBodyLength},e,n)).nativeProtocols=r,Hl.equal(n.protocol,i,"protocol mismatch"),Ql("options",n),new Zl(n,o)},configurable:!0,enumerable:!0,writable:!0},get:{value:function(e,t,r){var n=a.request(e,t,r);return n.end(),n},configurable:!0,enumerable:!0,writable:!0}})})),t}function tf(){}function rf(e){var t={protocol:e.protocol,hostname:e.hostname.startsWith("[")?e.hostname.slice(1,-1):e.hostname,hash:e.hash,search:e.search,pathname:e.pathname,path:e.pathname+e.search,href:e.href};return""!==e.port&&(t.port=Number(e.port)),t}function nf(e,t){var r;for(var n in t)e.test(n)&&(r=t[n].toString().trim(),delete t[n]);return r}function of(e,t){function r(e){Error.captureStackTrace(this,this.constructor),e?(this.message=t+": "+e.message,this.cause=e):this.message=t}return r.prototype=new Error,r.prototype.constructor=r,r.prototype.name="Error ["+e+"]",r.prototype.code=e,r}function af(e){for(var t=0;t<Gl.length;t++)e.removeListener(Gl[t],Wl[Gl[t]]);e.on("error",tf),e.abort()}Zl.prototype=Object.create(Vl.prototype),Zl.prototype.abort=function(){af(this._currentRequest),this.emit("abort")},Zl.prototype.write=function(e,t,r){if(this._ending)throw new Xl;if(!("string"==typeof e||"object"==typeof e&&"length"in e))throw new TypeError("data should be a string, Buffer or Uint8Array");"function"==typeof t&&(r=t,t=null),0!==e.length?this._requestBodyLength+e.length<=this._options.maxBodyLength?(this._requestBodyLength+=e.length,this._requestBodyBuffers.push({data:e,encoding:t}),this._currentRequest.write(e,t,r)):(this.emit("error",new Yl),this.abort()):r&&r()},Zl.prototype.end=function(e,t,r){if("function"==typeof e?(r=e,e=t=null):"function"==typeof t&&(r=t,t=null),e){var n=this,i=this._currentRequest;this.write(e,t,(function(){n._ended=!0,i.end(null,null,r)})),this._ending=!0}else this._ended=this._ending=!0,this._currentRequest.end(null,null,r)},Zl.prototype.setHeader=function(e,t){this._options.headers[e]=t,this._currentRequest.setHeader(e,t)},Zl.prototype.removeHeader=function(e){delete this._options.headers[e],this._currentRequest.removeHeader(e)},Zl.prototype.setTimeout=function(e,t){var r=this;function n(t){t.setTimeout(e),t.removeListener("timeout",t.destroy),t.addListener("timeout",t.destroy)}function i(t){r._timeout&&clearTimeout(r._timeout),r._timeout=setTimeout((function(){r.emit("timeout"),o()}),e),n(t)}function o(){r._timeout&&(clearTimeout(r._timeout),r._timeout=null),r.removeListener("abort",o),r.removeListener("error",o),r.removeListener("response",o),t&&r.removeListener("timeout",t),r.socket||r._currentRequest.removeListener("socket",i)}return t&&this.on("timeout",t),this.socket?i(this.socket):this._currentRequest.once("socket",i),this.on("socket",n),this.on("abort",o),this.on("error",o),this.on("response",o),this},["flushHeaders","getHeader","setNoDelay","setSocketKeepAlive"].forEach((function(e){Zl.prototype[e]=function(t,r){return this._currentRequest[e](t,r)}})),["aborted","connection","socket"].forEach((function(e){Object.defineProperty(Zl.prototype,e,{get:function(){return this._currentRequest[e]}})})),Zl.prototype._sanitizeOptions=function(e){if(e.headers||(e.headers={}),e.host&&(e.hostname||(e.hostname=e.host),delete e.host),!e.pathname&&e.path){var t=e.path.indexOf("?");t<0?e.pathname=e.path:(e.pathname=e.path.substring(0,t),e.search=e.path.substring(t))}},Zl.prototype._performRequest=function(){var e=this._options.protocol,t=this._options.nativeProtocols[e];if(t){if(this._options.agents){var r=e.substr(0,e.length-1);this._options.agent=this._options.agents[r]}var n=this._currentRequest=t.request(this._options,this._onNativeResponse);this._currentUrl=Nl.format(this._options),n._redirectable=this;for(var i=0;i<Gl.length;i++)n.on(Gl[i],Wl[Gl[i]]);if(this._isRedirect){var o=0,a=this,s=this._requestBodyBuffers;!function e(t){if(n===a._currentRequest)if(t)a.emit("error",t);else if(o<s.length){var r=s[o++];n.finished||n.write(r.data,r.encoding,e)}else a._ended&&n.end()}()}}else this.emit("error",new TypeError("Unsupported protocol "+e))},Zl.prototype._processResponse=function(e){var t=e.statusCode;this._options.trackRedirects&&this._redirects.push({url:this._currentUrl,headers:e.headers,statusCode:t});var r=e.headers.location;if(r&&!1!==this._options.followRedirects&&t>=300&&t<400){if(af(this._currentRequest),e.destroy(),++this._redirectCount>this._options.maxRedirects)return void this.emit("error",new Jl);((301===t||302===t)&&"POST"===this._options.method||303===t&&!/^(?:GET|HEAD)$/.test(this._options.method))&&(this._options.method="GET",this._requestBodyBuffers=[],nf(/^content-/i,this._options.headers));var n,i=nf(/^host$/i,this._options.headers),o=Nl.parse(this._currentUrl),a=i||o.host,s=/^\w+:/.test(r)?this._currentUrl:Nl.format(Object.assign(o,{host:a}));try{n=Nl.resolve(s,r)}catch(e){return void this.emit("error",new Kl(e))}Ql("redirecting to",n),this._isRedirect=!0;var c=Nl.parse(n);if(Object.assign(this._options,c),c.host===a||function(e,t){const r=e.length-t.length-1;return r>0&&"."===e[r]&&e.endsWith(t)}(c.host,a)||nf(/^authorization$/i,this._options.headers),"function"==typeof this._options.beforeRedirect){var u={headers:e.headers};try{this._options.beforeRedirect.call(null,this._options,u)}catch(e){return void this.emit("error",e)}this._sanitizeOptions(this._options)}try{this._performRequest()}catch(e){this.emit("error",new Kl(e))}}else e.responseUrl=this._currentUrl,e.redirects=this._redirects,this.emit("response",e),this._requestBodyBuffers=[]},Ml.exports=ef({http:$l,https:Ul}),Ml.exports.wrap=ef;var sf="0.24.0",cf=nl,uf=ml,lf=xl,ff=al,hf=M.default,pf=N.default,df=Ml.exports.http,mf=Ml.exports.https,gf=q.default,vf=$.default,yf=sf,bf=pl,xf=fl,wf=Rf,kf=Al,Ef=/https:?/;function Sf(e,t,r){if(e.hostname=t.host,e.host=t.host,e.port=t.port,e.path=r,t.auth){var n=Buffer.from(t.auth.username+":"+t.auth.password,"utf8").toString("base64");e.headers["Proxy-Authorization"]="Basic "+n}e.beforeRedirect=function(e){e.headers.host=e.host,Sf(e,t,e.href)}}var Pf=function(e){return new Promise((function(t,r){var n;function i(){e.cancelToken&&e.cancelToken.unsubscribe(n),e.signal&&e.signal.removeEventListener("abort",n)}var o=function(e){i(),t(e)},a=function(e){i(),r(e)},s=e.data,c=e.headers,u={};if(Object.keys(c).forEach((function(e){u[e.toLowerCase()]=e})),"user-agent"in u?c[u["user-agent"]]||delete c[u["user-agent"]]:c["User-Agent"]="axios/"+yf,s&&!cf.isStream(s)){if(Buffer.isBuffer(s));else if(cf.isArrayBuffer(s))s=Buffer.from(new Uint8Array(s));else{if(!cf.isString(s))return a(bf("Data after transformation must be a string, an ArrayBuffer, a Buffer, or a Stream",e));s=Buffer.from(s,"utf-8")}u["content-length"]||(c["Content-Length"]=s.length)}var l=void 0;e.auth&&(l=(e.auth.username||"")+":"+(e.auth.password||""));var f=lf(e.baseURL,e.url),h=gf.parse(f),p=h.protocol||"http:";if(!l&&h.auth){var d=h.auth.split(":");l=(d[0]||"")+":"+(d[1]||"")}l&&u.authorization&&delete c[u.authorization];var m=Ef.test(p),g=m?e.httpsAgent:e.httpAgent,v={path:ff(h.path,e.params,e.paramsSerializer).replace(/^\?/,""),method:e.method.toUpperCase(),headers:c,agent:g,agents:{http:e.httpAgent,https:e.httpsAgent},auth:l};e.socketPath?v.socketPath=e.socketPath:(v.hostname=h.hostname,v.port=h.port);var y,b=e.proxy;if(!b&&!1!==b){var x=p.slice(0,-1)+"_proxy",w=process.env[x]||process.env[x.toUpperCase()];if(w){var k=gf.parse(w),E=process.env.no_proxy||process.env.NO_PROXY,S=!0;if(E)S=!E.split(",").map((function(e){return e.trim()})).some((function(e){return!!e&&("*"===e||("."===e[0]&&h.hostname.substr(h.hostname.length-e.length)===e||h.hostname===e))}));if(S&&(b={host:k.hostname,port:k.port,protocol:k.protocol},k.auth)){var P=k.auth.split(":");b.auth={username:P[0],password:P[1]}}}}b&&(v.headers.host=h.hostname+(h.port?":"+h.port:""),Sf(v,b,p+"//"+h.hostname+(h.port?":"+h.port:"")+v.path));var _=m&&(!b||Ef.test(b.protocol));e.transport?y=e.transport:0===e.maxRedirects?y=_?pf:hf:(e.maxRedirects&&(v.maxRedirects=e.maxRedirects),y=_?mf:df),e.maxBodyLength>-1&&(v.maxBodyLength=e.maxBodyLength),e.insecureHTTPParser&&(v.insecureHTTPParser=e.insecureHTTPParser);var A=y.request(v,(function(t){if(!A.aborted){var r=t,n=t.req||A;if(204!==t.statusCode&&"HEAD"!==n.method&&!1!==e.decompress)switch(t.headers["content-encoding"]){case"gzip":case"compress":case"deflate":r=r.pipe(vf.createUnzip()),delete t.headers["content-encoding"]}var i={status:t.statusCode,statusText:t.statusMessage,headers:t.headers,config:e,request:n};if("stream"===e.responseType)i.data=r,uf(o,a,i);else{var s=[],c=0;r.on("data",(function(t){s.push(t),c+=t.length,e.maxContentLength>-1&&c>e.maxContentLength&&(r.destroy(),a(bf("maxContentLength size of "+e.maxContentLength+" exceeded",e,null,n)))})),r.on("error",(function(t){A.aborted||a(xf(t,e,null,n))})),r.on("end",(function(){var t=Buffer.concat(s);"arraybuffer"!==e.responseType&&(t=t.toString(e.responseEncoding),e.responseEncoding&&"utf8"!==e.responseEncoding||(t=cf.stripBOM(t))),i.data=t,uf(o,a,i)}))}}}));if(A.on("error",(function(t){A.aborted&&"ERR_FR_TOO_MANY_REDIRECTS"!==t.code||a(xf(t,e,null,A))})),e.timeout){var C=parseInt(e.timeout,10);if(isNaN(C))return void a(bf("error trying to parse `config.timeout` to int",e,"ERR_PARSE_TIMEOUT",A));A.setTimeout(C,(function(){A.abort();var t=e.transitional||wf.transitional;a(bf("timeout of "+C+"ms exceeded",e,t.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",A))}))}(e.cancelToken||e.signal)&&(n=function(e){A.aborted||(A.abort(),a(!e||e&&e.type?new kf("canceled"):e))},e.cancelToken&&e.cancelToken.subscribe(n),e.signal&&(e.signal.aborted?n():e.signal.addEventListener("abort",n))),cf.isStream(s)?s.on("error",(function(t){a(xf(t,e,null,A))})).pipe(A):A.end(s)}))},_f=nl,Af=function(e,t){ll.forEach(e,(function(r,n){n!==t&&n.toUpperCase()===t.toUpperCase()&&(e[t]=r,delete e[n])}))},Cf=fl,Ff={"Content-Type":"application/x-www-form-urlencoded"};function Df(e,t){!_f.isUndefined(e)&&_f.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var Of,Tf={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:("undefined"!=typeof XMLHttpRequest?Of=zl:"undefined"!=typeof process&&"[object process]"===Object.prototype.toString.call(process)&&(Of=Pf),Of),transformRequest:[function(e,t){return Af(t,"Accept"),Af(t,"Content-Type"),_f.isFormData(e)||_f.isArrayBuffer(e)||_f.isBuffer(e)||_f.isStream(e)||_f.isFile(e)||_f.isBlob(e)?e:_f.isArrayBufferView(e)?e.buffer:_f.isURLSearchParams(e)?(Df(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):_f.isObject(e)||t&&"application/json"===t["Content-Type"]?(Df(t,"application/json"),function(e,t,r){if(_f.isString(e))try{return(t||JSON.parse)(e),_f.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(r||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){var t=this.transitional||Tf.transitional,r=t&&t.silentJSONParsing,n=t&&t.forcedJSONParsing,i=!r&&"json"===this.responseType;if(i||n&&_f.isString(e)&&e.length)try{return JSON.parse(e)}catch(e){if(i){if("SyntaxError"===e.name)throw Cf(e,this,"E_JSON_PARSE");throw e}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};_f.forEach(["delete","get","head"],(function(e){Tf.headers[e]={}})),_f.forEach(["post","put","patch"],(function(e){Tf.headers[e]=_f.merge(Ff)}));var Rf=Tf,If=nl,jf=Rf,Lf=function(e){return!(!e||!e.__CANCEL__)},qf=nl,zf=function(e,t,r){var n=this||jf;return If.forEach(r,(function(r){e=r.call(n,e,t)})),e},Mf=Lf,Nf=Rf,Bf=Al;function $f(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Bf("canceled")}var Uf=nl,Vf=function(e,t){t=t||{};var r={};function n(e,t){return Uf.isPlainObject(e)&&Uf.isPlainObject(t)?Uf.merge(e,t):Uf.isPlainObject(t)?Uf.merge({},t):Uf.isArray(t)?t.slice():t}function i(r){return Uf.isUndefined(t[r])?Uf.isUndefined(e[r])?void 0:n(void 0,e[r]):n(e[r],t[r])}function o(e){if(!Uf.isUndefined(t[e]))return n(void 0,t[e])}function a(r){return Uf.isUndefined(t[r])?Uf.isUndefined(e[r])?void 0:n(void 0,e[r]):n(void 0,t[r])}function s(r){return r in t?n(e[r],t[r]):r in e?n(void 0,e[r]):void 0}var c={url:o,method:o,data:o,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s};return Uf.forEach(Object.keys(e).concat(Object.keys(t)),(function(e){var t=c[e]||i,n=t(e);Uf.isUndefined(n)&&t!==s||(r[e]=n)})),r},Hf=sf,Qf={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){Qf[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}}));var Gf={};Qf.transitional=function(e,t,r){function n(e,t){return"[Axios v"+Hf+"] Transitional option '"+e+"'"+t+(r?". "+r:"")}return function(r,i,o){if(!1===e)throw new Error(n(i," has been removed"+(t?" in "+t:"")));return t&&!Gf[i]&&(Gf[i]=!0,console.warn(n(i," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(r,i,o)}};var Wf={assertOptions:function(e,t,r){if("object"!=typeof e)throw new TypeError("options must be an object");for(var n=Object.keys(e),i=n.length;i-- >0;){var o=n[i],a=t[o];if(a){var s=e[o],c=void 0===s||a(s,o,e);if(!0!==c)throw new TypeError("option "+o+" must be "+c)}else if(!0!==r)throw Error("Unknown option "+o)}},validators:Qf},Kf=nl,Jf=al,Yf=ul,Xf=function(e){return $f(e),e.headers=e.headers||{},e.data=zf.call(e,e.data,e.headers,e.transformRequest),e.headers=qf.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),qf.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]})),(e.adapter||Nf.adapter)(e).then((function(t){return $f(e),t.data=zf.call(e,t.data,t.headers,e.transformResponse),t}),(function(t){return Mf(t)||($f(e),t&&t.response&&(t.response.data=zf.call(e,t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))},Zf=Vf,eh=Wf,th=eh.validators;function rh(e){this.defaults=e,this.interceptors={request:new Yf,response:new Yf}}rh.prototype.request=function(e){"string"==typeof e?(e=arguments[1]||{}).url=arguments[0]:e=e||{},(e=Zf(this.defaults,e)).method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var t=e.transitional;void 0!==t&&eh.assertOptions(t,{silentJSONParsing:th.transitional(th.boolean),forcedJSONParsing:th.transitional(th.boolean),clarifyTimeoutError:th.transitional(th.boolean)},!1);var r=[],n=!0;this.interceptors.request.forEach((function(t){"function"==typeof t.runWhen&&!1===t.runWhen(e)||(n=n&&t.synchronous,r.unshift(t.fulfilled,t.rejected))}));var i,o=[];if(this.interceptors.response.forEach((function(e){o.push(e.fulfilled,e.rejected)})),!n){var a=[Xf,void 0];for(Array.prototype.unshift.apply(a,r),a=a.concat(o),i=Promise.resolve(e);a.length;)i=i.then(a.shift(),a.shift());return i}for(var s=e;r.length;){var c=r.shift(),u=r.shift();try{s=c(s)}catch(e){u(e);break}}try{i=Xf(s)}catch(e){return Promise.reject(e)}for(;o.length;)i=i.then(o.shift(),o.shift());return i},rh.prototype.getUri=function(e){return e=Zf(this.defaults,e),Jf(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},Kf.forEach(["delete","get","head","options"],(function(e){rh.prototype[e]=function(t,r){return this.request(Zf(r||{},{method:e,url:t,data:(r||{}).data}))}})),Kf.forEach(["post","put","patch"],(function(e){rh.prototype[e]=function(t,r,n){return this.request(Zf(n||{},{method:e,url:t,data:r}))}}));var nh=rh,ih=Al;function oh(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var r=this;this.promise.then((function(e){if(r._listeners){var t,n=r._listeners.length;for(t=0;t<n;t++)r._listeners[t](e);r._listeners=null}})),this.promise.then=function(e){var t,n=new Promise((function(e){r.subscribe(e),t=e})).then(e);return n.cancel=function(){r.unsubscribe(t)},n},e((function(e){r.reason||(r.reason=new ih(e),t(r.reason))}))}oh.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},oh.prototype.subscribe=function(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]},oh.prototype.unsubscribe=function(e){if(this._listeners){var t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}},oh.source=function(){var e;return{token:new oh((function(t){e=t})),cancel:e}};var ah=oh,sh=nl,ch=Wu,uh=nh,lh=Vf;var fh=function e(t){var r=new uh(t),n=ch(uh.prototype.request,r);return sh.extend(n,uh.prototype,r),sh.extend(n,r),n.create=function(r){return e(lh(t,r))},n}(Rf);fh.Axios=uh,fh.Cancel=Al,fh.CancelToken=ah,fh.isCancel=Lf,fh.VERSION=sf,fh.all=function(e){return Promise.all(e)},fh.spread=function(e){return function(t){return e.apply(null,t)}},fh.isAxiosError=function(e){return"object"==typeof e&&!0===e.isAxiosError},Gu.exports=fh,Gu.exports.default=fh;var hh=Gu.exports;!function(e){Object.defineProperty(e,"__esModule",{value:!0});var t=j.default,r=dr,n=Fr.exports,i=qr.exports,o=zn,a=xi,s=xa,c=Hs,u=Ws,l=Ks,f=vc,h=yc,p=bc,d=xc,m=wc,g=z.default,v=kc,y=Ec,b=Sc,x=Pc,w=_c,k=Ac,E=Cc,S=Dc,P=Tc,_=Rc,A=qc,C=ru,F=Hu,D=Qu,O=R.default,T=hh;function I(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var L=I(r),q=I(n),M=I(i),N=I(s),B=I(c),$=I(u),U=I(g),V=I(C),H=I(F),Q=I(O),G=I(T);function W(e){return"string"==typeof e&&e.startsWith("@encrypted:")}function K(e,t){return q.default.encrypt(e,t).toString()}function J(e,t){try{return q.default.decrypt(e,t).toString(M.default)}catch{return""}}var Y=Object.freeze({__proto__:null,encrypt:K,decrypt:J});class X{constructor(e,t,r){this.key=void 0,this.values=void 0,this.schema=void 0,this.values=e,this.schema=t,this.key=r}setKey(e){this.key=e}getValues(){return this.values}setValues(e){const r=new L.default({removeAdditional:!0,useDefaults:!0,allErrors:!0}).compile(this.schema);if(!r(e=t.cloneDeep(e)))for(const n of r.errors)e=t.omit(e,n.dataPath.substr(1).split("/"));this.values=e}getValue(e,r){return t.get(this.values,e,r)}setValue(e,r){return t.set(this.values,e,r)}toObject(){const e=new L.default({removeAdditional:!0,useDefaults:!0,allErrors:!0});e.removeKeyword("default"),e.addKeyword("default",{validate:(e,r,n,i,o,a,s)=>(t.isEqual(e,r)&&(delete o[a],t.isEmpty(o)&&function(e,r){const n=[];let i=e;for(let e=0;e<r.length-1;e++)n.push(i),i=i[r[e]];for(let e=r.length-2;e>=0;e--)t.isEmpty(n[e][r[e]])&&delete n[e][r[e]]}(s,t.toPath(i.substr(1)))),!0),modifying:!0,errors:!1}),e.addKeyword("encrypt",{validate:(e,r,n,i,o,a)=>(this.key&&e&&!W(r)&&o&&a&&t.set(o,a,"@encrypted:"+K(r,this.key)),!0),modifying:!0,errors:!1});const r=e.compile(this.schema),n=t.cloneDeep(this.values);return r(n),n}static createFromObject(e,r,n){const i=new L.default({removeAdditional:!0,useDefaults:!0,allErrors:!0});i.addKeyword("encrypt",{validate:(e,r,i,o,a,s)=>(n&&e&&W(r)&&a&&s&&t.set(a,s,J(r.substr(11),n)),!0),modifying:!0,errors:!1});const o=i.compile(r);if(!o(e))for(const r of o.errors)e=t.omit(e,r.dataPath.substr(1).split("/"));return new this(e,r,n)}}class Z extends X{constructor(){super(...arguments),this.pluginsConfig={}}getStructure(e){return this.getValue(["structure",e])}getPluginConfig(e,r){if(!this.pluginsConfig[e]){const n=this.getValue(["pluginsConfig",e],{});this.pluginsConfig[e]=X.createFromObject(t.cloneDeep(n),r,this.key+":"+e)}return this.pluginsConfig[e]}setPluginConfig(e,r){const n=r.toObject();t.isEmpty(n)?t.unset(this.values,["pluginsConfig",e]):this.setValue(["pluginsConfig",e],n),delete this.pluginsConfig[e]}static createFromObject(e){return super.createFromObject(e,Z.schema)}}Z.file="book.json",Z.schema={title:"TopWrite Configuration",type:"object",properties:{root:{type:"string",title:"Path from the root folder containing the book's content"},title:{type:"string",title:"Title of the book"},author:{type:"object",title:"attr of the author",properties:{name:{type:"string"},email:{type:"string"},home:{type:"string"}}},theme:{type:"string",title:"Name of the theme",default:"default"},themeConfig:{type:"object",title:"Configuration for theme",properties:{defaultMode:{type:"string",title:"Default mode form theme",default:"light"},primaryColor:{type:"string",title:"Primary Color form theme",default:"#3c60ff"}},default:{}},plugins:{type:"array",items:{type:"string"},default:[]},pluginsConfig:{type:"object",title:"Configuration for plugins",default:{}},structure:{type:"object",properties:{langs:{default:"LANGS.md",type:"string",title:"File to use as languages index",pattern:"^[a-zA-Z-._\\d,\\s]+$"},readme:{default:"README.md",type:"string",title:"File to use as preface",pattern:"^[a-zA-Z-._\\d,\\s]+$"},summary:{default:"SUMMARY.md",type:"string",title:"File to use as table of contents",pattern:"^[a-zA-Z-._\\d,\\s]+$"}},default:{}},pdf:{type:"object",title:"PDF specific configurations",properties:{fontFamily:{type:"string",default:"Microsoft Yahei",title:"Font family for the PDF output"},margin:{type:"object",title:"Margins (unit: pt)",properties:{right:{type:"integer",title:"Right Margin",minimum:0,maximum:100,default:30},left:{type:"integer",title:"Left Margin",minimum:0,maximum:100,default:30},top:{type:"integer",title:"Top Margin",minimum:0,maximum:100,default:40},bottom:{type:"integer",title:"Bottom Margin",minimum:0,maximum:100,default:40}},default:{}},paperSize:{type:"string",enum:["a0","a1","a2","a3","a4","a5","a6","b0","b1","b2","b3","b4","b5","b6","legal","letter"],default:"a4",title:"Paper size for the PDF"},chapterMark:{type:"string",enum:["pagebreak","rule","both","none"],default:"pagebreak",title:"How to mark detected chapters"},pageBreaksBefore:{type:"string",default:"/",title:'An XPath expression. Page breaks are inserted before the specified elements. To disable use the expression: "/"'},pageNumbers:{type:"boolean",default:!0,title:"Add page numbers to the bottom of every page"}},default:{}}},required:[]};class ee{constructor(e){void 0===e&&(e=[]),this.data=void 0,this.data="string"==typeof e?e.split(".").map((e=>parseInt(e,10))):e}getParent(){return new ee(this.data.slice(0,-1))}createChild(e){return new ee(this.data.concat(e))}isDescendant(e){return e.toString().startsWith(this.toString()+".")}getNext(){const e=[...this.data];return e[e.length-1]++,new ee(e)}getDepth(){return this.data.length-1}eq(e){return this.toString()===e.toString()}getLeafIndex(){return this.data[this.data.length-1]-1}toString(){return this.data.join(".")}static compare(e,t){for(let r=0;r<Math.max(e.data.length,t.data.length);r++){let n=e.data[r]||0,i=t.data[r]||0;if(n>i)return 1;if(i>n)return-1}return 0}}class te{constructor(e){let{title:t,ref:r,path:n,children:i=[]}=e;this.level=void 0,this.title=void 0,this.ref=void 0,this.path=void 0,this.children=void 0,this.title=t,this.ref=r,this.path=n,this.children=i,this.level=new ee}getLevel(){return this.level}getTitle(){return this.title}getRef(){return this.ref}getPath(){return this.path?this.path:this.ref}getArticles(){return this.children}getDepth(){return this.getLevel().getDepth()}createChildLevel(){return this.level.createChild(this.children.length+1)}indexLevels(e){e?this.level=e:e=this.level;for(const[t,r]of this.children.entries())r.indexLevels(e.createChild(t+1))}static findArticle(e,t){return e.getArticles().reduce(((e,r)=>e||(t(r)?r:te.findArticle(r,t))),void 0)}static createFromObject(e){const t=e.children.map((e=>te.createFromObject(e)));return new te({...e,children:t})}}class re{constructor(e,t){void 0===t&&(t=[]),this.level=void 0,this.title=void 0,this.articles=void 0,this.level=new ee,this.title=e,this.articles=t}getLevel(){return this.level}getTitle(){return this.title}getArticles(){return this.articles}createChildLevel(){return this.level.createChild(this.articles.length+1)}indexLevels(e){e?this.level=e:e=this.level;for(const[t,r]of this.articles.entries())r.indexLevels(e.createChild(t+1))}static createFormObject(e){return new re(e.title,e.articles.map((e=>te.createFromObject(e))))}}const ne={tokenize:function(e,t,r){function n(t){return t===d.codes.rightParenthesis?f(t):b.factoryDestination(e,i,r,p.types.resourceDestination,p.types.resourceDestinationLiteral,p.types.resourceDestinationLiteralMarker,p.types.resourceDestinationRaw,p.types.resourceDestinationString,m.constants.linkResourceDestinationBalanceMax)(t)}function i(t){return x.markdownLineEndingOrSpace(t)?y.factoryWhitespace(e,o)(t):f(t)}function o(t){return t===d.codes.quotationMark||t===d.codes.apostrophe||t===d.codes.leftParenthesis?k.factoryTitle(e,y.factoryWhitespace(e,a),r,p.types.resourceTitle,p.types.resourceTitleMarker,p.types.resourceTitleString)(t):a(t)}function a(t){return t===d.codes.equalsTo?(e.enter("resourceSize"),e.enter("resourceSizeMarker"),e.consume(t),e.exit("resourceSizeMarker"),s):f(t)}function s(t){return t===d.codes.lowercaseX?(e.enter("blockQuoteTypeMarker"),e.consume(t),e.exit("blockQuoteTypeMarker"),u):t===d.codes.rightParenthesis||x.markdownLineEndingOrSpace(t)?(e.exit("resourceSize"),y.factoryWhitespace(e,f)(t)):(e.enter("resourceSizeWidth"),e.enter(p.types.chunkString,{contentType:"string"}),c(t))}function c(t){return t===d.codes.rightParenthesis||x.markdownLineEndingOrSpace(t)?(e.exit(p.types.chunkString),e.exit("resourceSizeWidth"),e.exit("resourceSize"),y.factoryWhitespace(e,f)(t)):t===d.codes.lowercaseX?(e.exit(p.types.chunkString),e.exit("resourceSizeWidth"),e.enter("resourceSizeMarker"),e.consume(t),e.exit("resourceSizeMarker"),u):(e.consume(t),c)}function u(t){return t===d.codes.rightParenthesis||x.markdownLineEndingOrSpace(t)?(e.exit("resourceSize"),y.factoryWhitespace(e,f)(t)):(e.enter("resourceSizeHeight"),e.enter(p.types.chunkString,{contentType:"string"}),l(t))}function l(t){return t===d.codes.rightParenthesis||x.markdownLineEndingOrSpace(t)?(e.exit(p.types.chunkString),e.exit("resourceSizeHeight"),e.exit("resourceSize"),y.factoryWhitespace(e,f)(t)):(e.consume(t),l)}function f(n){return n===d.codes.rightParenthesis?(e.enter(p.types.resourceMarker),e.consume(n),e.exit(p.types.resourceMarker),e.exit(p.types.resource),t):r(n)}return function(t){return e.enter(p.types.resource),e.enter(p.types.resourceMarker),e.consume(t),e.exit(p.types.resourceMarker),y.factoryWhitespace(e,n)}}},ie={tokenize:function(e,t,r){const n=this;function i(e){return n.parser.defined.includes(v.normalizeIdentifier(n.sliceSerialize(n.events[n.events.length-1][1]).slice(1,-1)))?t(e):r(e)}return function(t){return U.default.strictEqual(t,d.codes.leftSquareBracket,"expected left bracket"),w.factoryLabel.call(n,e,i,r,p.types.reference,p.types.referenceMarker,p.types.referenceString)(t)}}},oe={tokenize:function(e,t,r){function n(n){return 93===n?(e.enter(p.types.referenceMarker),e.consume(n),e.exit(p.types.referenceMarker),e.exit(p.types.reference),t):r(n)}return function(t){return e.enter(p.types.reference),e.enter(p.types.referenceMarker),e.consume(t),e.exit(p.types.referenceMarker),n}}};var ae={name:"labelEnd",tokenize:function(e,t,r){const n=this;let i,o,a=n.events.length;for(;a--;)if((n.events[a][1].type===p.types.labelImage||n.events[a][1].type===p.types.labelLink)&&!n.events[a][1]._balanced){i=n.events[a][1];break}function s(e){return i._balanced=!0,r(e)}function c(r){return r===d.codes.leftParenthesis?e.attempt(ne,t,o?t:s)(r):r===d.codes.leftSquareBracket?e.attempt(ie,t,o?e.attempt(oe,t,s):s)(r):o?t(r):s(r)}return function(t){return U.default(t===d.codes.rightSquareBracket,"expected `]`"),i?i._inactive?s(t):(o=n.parser.defined.indexOf(v.normalizeIdentifier(n.sliceSerialize({start:i.end,end:n.now()})))>-1,e.enter(p.types.labelEnd),e.enter(p.types.labelMarker),e.consume(t),e.exit(p.types.labelMarker),e.exit(p.types.labelEnd),c):r(t)}},resolveTo:h.labelEnd.resolveTo,resolveAll:h.labelEnd.resolveAll};const se=(e,t,r)=>{const n=f.image(e,t,r);return e.width||e.height?n.replace(/\)$/," ="+(e.width||"")+(e.height?"x"+e.height:"")+")"):n};se.peek=f.image.peek;const ce=e=>{let t;switch(e){case"right":t="--: ";break;case"center":t=":-: ";break;default:t=""}return t},ue={name:"blockQuote",tokenize:function(e,t,r){const n=this;return function(t){if(t===d.codes.greaterThan){const r=n.containerState;return U.default(r,"expected `containerState` to be defined in container"),r.open||(e.enter(p.types.blockQuote,{_container:!0}),r.open=!0),e.enter(p.types.blockQuotePrefix),e.enter(p.types.blockQuoteMarker),e.consume(t),e.exit(p.types.blockQuoteMarker),_.factorySpace(e,i,p.types.whitespace)}return r(t)};function i(t){return t===d.codes.leftSquareBracket?(e.enter("blockQuoteTypeMarker"),e.consume(t),e.exit("blockQuoteTypeMarker"),o):s(t)}function o(t){return t===d.codes.rightSquareBracket||x.markdownLineEndingOrSpace(t)?(e.enter("blockQuoteTypeMarker"),e.consume(t),e.exit("blockQuoteTypeMarker"),s):(e.enter("blockQuoteType"),e.enter(p.types.chunkString,{contentType:"string"}),a(t))}function a(t){return t===d.codes.rightSquareBracket||x.markdownLineEndingOrSpace(t)?(e.exit(p.types.chunkString),e.exit("blockQuoteType"),e.enter("blockQuoteTypeMarker"),e.consume(t),e.exit("blockQuoteTypeMarker"),s):(e.consume(t),a)}function s(r){return x.markdownSpace(r)?(e.enter(p.types.blockQuotePrefixWhitespace),e.consume(r),e.exit(p.types.blockQuotePrefixWhitespace),e.exit(p.types.blockQuotePrefix),t):(e.exit(p.types.blockQuotePrefix),t(r))}},continuation:{tokenize:function(e,t,r){return _.factorySpace(e,e.attempt(ue,t,r),p.types.linePrefix,this.parser.constructs.disable.null.includes("codeIndented")?void 0:m.constants.tabSize)}},exit:h.blockQuote.exit},le=e=>{let t="";return E.visit(e,"text",(function(e){t+=e.value})),t},fe=/^\[toc(?:=(\d)(?:,(\d))?)?]$/im,he=a.unified().use(N.default).use((function(){const e=this.data();e.micromarkExtensions=[],e.fromMarkdownExtensions=[],e.toMarkdownExtensions=[],e.toHastExtensions=[]})).use(H.default).use(V.default,["yaml"]).use(B.default).use($.default).use((function(){return this.data().toHastExtensions.push({xBlock:(e,t)=>e({},"x-block",{name:t.name,value:t.value,parameter:t.parameter}),xInline:(e,t)=>e({},"x-inline",{name:t.name,value:t.value})}),function(e){E.visit(e,((e,t,r)=>{if(null!==t&&null!==r)if((e=>"code"===e.type)(e)&&e.lang){const n=/\[([\w-_]+)(:([\w-_]+))?]/g.exec(e.lang);if(n){const i={type:"xBlock",name:n[1],parameter:n[3]||"",value:e.value,position:e.position};r.children.splice(t,1,i)}}else if((e=>"inlineCode"===e.type)(e)){const n=/^([^\s]+)\s(.*?)\s\1$/.exec(e.value);if(n){const i={type:"xInline",name:n[1],value:n[2],position:e.position};r.children.splice(t,1,i)}}}))}})).use((function(){const e=this.data();e.micromarkExtensions.push({text:{[d.codes.rightSquareBracket]:ae}}),e.fromMarkdownExtensions.push({enter:{resourceSizeWidth:function(){this.buffer()},resourceSizeHeight:function(){this.buffer()}},exit:{resourceSizeWidth:function(){const e=this.resume();this.stack[this.stack.length-1].width=e},resourceSizeHeight:function(){const e=this.resume();this.stack[this.stack.length-1].height=e}}}),e.toMarkdownExtensions.push({handlers:{image:se}}),e.toHastExtensions.push({image:(e,t)=>{const r={src:l.encode(t.url),alt:t.alt};return null!==t.title&&void 0!==t.title&&(r.title=t.title),r.width=t.width,r.height=t.height,e(t,"img",r)}})})).use((function(){return this.data().toMarkdownExtensions.push({handlers:{paragraph:(e,t,r)=>{const n=S.paragraph(e,t,r);return ce(e.align)+n},heading:(e,t,r)=>P.heading(e,t,r).replace(/^#+\s/,"$&"+ce(e.align))}}),function(e){E.visit(e,((e,t,r)=>{if((e=>"paragraph"===e.type||"heading"===e.type)(e)){const t=o.select("text",e);if(t){const n=t.value;n.startsWith("--: ")?e.align="right":n.startsWith(":-: ")?e.align="center":n.startsWith(":-- ")&&(e.align="left"),e.align&&(t.value=n.substr(4),r&&"listItem"===r.type?r.data={...r.data,hProperties:{className:"align-"+e.align}}:e.data={...e.data,hProperties:{className:"align-"+e.align}})}}}))}})).use((function(){const e=this.data();return e.toMarkdownExtensions.push({handlers:{blockquote:(e,t,r)=>{const n=A.blockquote(e,t,r);return e.variant?n.replace(/(^|\s+)>\s/,"$1> ["+e.variant+"] "):n}}}),e.micromarkExtensions.push({document:{[d.codes.greaterThan]:ue}}),e.fromMarkdownExtensions.push({enter:{blockQuoteType:function(){this.buffer()}},exit:{blockQuoteType:function(){const e=this.resume();this.stack[this.stack.length-1].variant=e}}}),function(e){E.visit(e,"blockquote",(e=>{e.variant&&(e.data={...e.data,hProperties:{className:e.variant}})}))}})).use((function(){return function(e){E.visit(e,((e,t,r)=>{if(r&&"root"===r.type&&null!==t&&le(e).match(fe))return r.children.splice(t,1),[E.SKIP,t]}))}}));function pe(e){const t=[];for(const r of e.children){const e=r.children,n=o.select("paragraph:first-child>*",r);if(!n)continue;const i=de.stringify(n);if(!i)continue;const a=n.url?decodeURI(n.url):void 0;if(a&&a.match(/[\\:*?"<>|]/))continue;let s={title:i,ref:a,children:[]};if(e.length>1){const t=e[e.length-1];D.is(t,"list")&&(s.children=pe(t))}t.push(s)}return t}const de=he().use((function(){this.Compiler=function(e){return le(e)}}));class me{constructor(e){void 0===e&&(e=[]),this.parts=void 0,this.parts=e,this.indexLevels()}getParts(){return this.parts}getPart(e){return this.parts[e]}getLastPart(){return this.parts[this.parts.length-1]}getArticles(){const e=[];return this.getArticle((t=>(e.push(t),!1))),e}getArticle(e){return this.parts.reduce(((t,r)=>t||te.findArticle(r,e)),void 0)}getByLevel(e){const t=t=>t.getLevel().eq(e);return this.parts.reduce(((e,r)=>e||(t(r)?r:te.findArticle(r,t))),void 0)}getFirstPath(){const e=this.getArticle((e=>!!e.getPath()));if(e)return e.getPath()}getNextArticle(e){const t=e instanceof te?e.getLevel():e;let r=!1;return this.getArticle((e=>!!r||(r=e.getLevel()==t,!1)))}getPrevArticle(e){const t=e instanceof te?e.getLevel():e;let r;return this.getArticle((e=>e.getLevel()==t||(r=e,!1))),r}getParent(e){const t=(e instanceof te?e.getLevel():e).getParent();if(t)return this.getByLevel(t)}indexLevels(){for(const[e,t]of this.parts.entries()){const r=new ee(String(e+1));t.indexLevels(r)}}static createFromObject(e){return new me(e.map((e=>re.createFormObject(e))))}static createFromText(e){const t=function(e){const t=de.parse(e),r=[];let n;for(const e of t.children)if(D.is(e,"heading")&&[2,3].includes(e.depth)&&(n&&r.push(n),n={title:de.stringify(e),articles:[]}),D.is(e,"list")){const t=pe(e);n?n.articles=n.articles.concat(t):n={title:"",articles:t}}return n?r.push(n):r.push({title:"",articles:[]}),r}(e);return me.createFromObject(t)}}class ge{constructor(e){let{host:t}=e;this.host=void 0,this.host=t}getBuyUrl(e,t){return this.host+"/api/buy?book="+e.id+"&plugin="+t.name}async bought(e,t){try{return await G.default.get(this.host+"/api/bought?book="+e.id+"&plugin="+t.name),!0}catch{return!1}}async queryPlugins(e){let{page:t=1,...r}=e;const{data:n}=await G.default.get(this.host+"/api/query",{params:{...r,page:t}});return n}async getInstalled(e){const{config:t}=e,r=["theme-"+t.getValue("theme"),...t.getValue("plugins")],{data:n}=await G.default.get(this.host+"/api/installed",{params:{book:e.id,plugins:r.join(",")}}).catch((e=>{throw new Error("Plugins Check Failed:"+e.message)}));return n}}e.pluginCenter=void 0;class ve{constructor(e,t,r){this.flatColors=["#1abc9c","#2ecc71","#3498db","#9b59b6","#34495e","#16a085","#27ae60","#2980b9","#8e44ad","#2c3e50","#f1c40f","#e67e22","#e74c3c","#f39c12","#d35400","#c0392b"],this.letter=void 0,this.size=void 0,this.canvas=void 0,this.letter=e,this.size=t,this.canvas=r,this.generate()}toDataUrl(){return this.canvas.toDataURL()}generate(){const e=this.canvas.getContext("2d");if(!e)throw new Error("getContext failed");const t=this.letter[0].toUpperCase();e.fillStyle=this.flatColors[t.charCodeAt(0)%this.flatColors.length],e.fillRect(0,0,this.size,this.size),e.font=Math.round(this.size/2)+"px Roboto",e.textAlign="center",e.fillStyle="#FFFFFF",e.fillText(this.letter[0].toUpperCase(),this.size/2,this.size/1.5)}static create(e,t,r){return r||(r=function(e){const t=window.document.createElement("canvas");return t.width=e,t.height=e,t}(t)),new ve(e,t,r)}}const ye=/^(?:\w+:)?\/\/(\S+)$/,be=/^localhost[\:?\d]*(?:[^\:?\d]\S*)?$/,xe=/^[^\s\.]+\.\S{2,}$/;G.default.defaults.maxContentLength=1/0,G.default.defaults.maxBodyLength=1/0,Object.defineProperty(e,"request",{enumerable:!0,get:function(){return G.default}}),e.BaseConfig=X,e.Book=class{constructor(e,t,r){this.id=void 0,this.summary=void 0,this._config=void 0,this.id=e,this.summary=r,this.config=t}get config(){return this._config}set config(e){e.setKey(this.id+":config"),this._config=e}},e.Config=Z,e.File=class{constructor(e){let{path:t,content:r,meta:n={}}=e;this.path=void 0,this.content=void 0,this.meta=void 0,this.path=t,this.content=r,this.meta=n}getMeta(e,r){return t.get(this.meta,e,r)}relative(e){const t="/"===e.slice(-1);return(e=Q.default.posix.relative(Q.default.posix.dirname(this.path),e)||".")+(t?"/":"")}},e.LetterAvatar=ve,e.Level=ee,e.Summary=me,e.SummaryArticle=te,e.SummaryPart=re,e.aes=Y,e.createPluginCenter=function(t){return e.pluginCenter=new ge(t)},e.isEncryptedData=W,e.isUrl=function(e){const t=e.match(ye);if(!t)return!1;const r=t[1];return!!r&&(be.test(r)||xe.test(r))},e.markdown=he}(ce);class ph{name;version;path;hooks;config;constructor({name:e,version:t,path:r,hooks:n,config:i}){this.name=e,this.version=t,this.path=r,this.hooks=n,this.config=i}getHook(e){return this.hooks[e]}getContext(e){return{...e,getConfig:()=>e.book.config.getPluginConfig(this.name,this.config)}}}async function dh(e,t){ie.info(`installing plugin "${e.name}"`);const r=`npm install ${e.host}.tgz`,{error:n}=U.default.sync(r,{stdio:["inherit"],cwd:t,shell:!0});if(n)throw n;const i=R.default.join(t,"node_modules","topwrite-plugin-"+e.name),o=R.default.join(i,"dist","hooks.js");let a={};if(V.existsSync(o)){a=new d.NodeVM({require:{builtin:["path"]}}).runFile(o)}const s=R.default.join(i,"config.json");let c={};return V.existsSync(s)&&(c=require(s)),ie.info(`plugin "${e.name}@${e.version}" installed with success`),new ph({name:e.name,version:e.version,path:i,hooks:a,config:c})}const mh=/(^-{3}(?:\r\n|\r|\n)([\w\W]*?)-{3}(?:\r\n|\r|\n))?([\w\W]*)*/;class gh extends class{book;sourceFS;tmpFS;dest;options;plugins=[];constructor(e,t,r,n,i){this.book=e,this.sourceFS=t,this.tmpFS=r,this.options=n,this.dest=i}getContext(){return{book:this.book,sourceFS:this.sourceFS,tmpFS:this.tmpFS,request:ce.request,logger:ie,format:this.format}}async generate(){await this.initPlugins(),await this.onInit(),await this.callHook("init"),await this.generateLogo(),await this.onSummary(),await this.callHook("summary"),await this.generateArticles(),await this.callHook("articles"),await this.callHook("beforeFinish")&&(await this.onFinish(),await this.callHook("finish")),ie.success("generation finished with success!")}async generateLogo(){if(!this.tmpFS.exist("logo.png")){const e=this.book.config.getValue("title","Untitled"),t=g.createCanvas(60,60);ce.LetterAvatar.create(e,60,t);const r=t.toBuffer("image/png");await this.tmpFS.writeFile("logo.png",r)}}async generateArticles(){ie.info("generate articles ...");const e=this.book.summary.getArticles();ie.info(`found ${e.length} articles`);for(const t of e)if(t.ref){ie.info('generate article "'+t.getRef()+'"');try{await this.onArticle(t),await this.callHook("article",t)}catch(e){"ENOENT"===e.code?ie.warn(`article file [${t.ref}] not exist`):ie.warn(`generate article [${t.ref}] failed: ${e.message}`)}}}async initPlugins(){this.plugins=await async function(e,t,r){const n=ce.createPluginCenter(r),i=await n.getInstalled(e),o=[];ie.info(`installing ${i.length} plugins from registry`);for(let e of i)try{if(e.disabled){ie.warn('plugin "'+e.name+'" has been disabled');continue}o.push(await dh(e,t))}catch(t){ie.warn('plugin "'+e.name+'" installed with fail'),ie.warn(t.message)}return o}(this.book,this.tmpFS.root,this.options.plugins)}async callHook(e,...t){return ie.debug('calling hook "'+e+'"'),await(async(e,t)=>{for(let r of e)if(!await t(r))return!1;return!0})(this.plugins,(async r=>{const n=r.getHook(e);return!n||await n.apply(r.getContext(this.getContext()),t)}))}async makeFile(e,t){const r=await this.tmpFS.readAsString(t),n=this.parseFileMeta(t,r);return new ce.File({path:e,...n})}parseFileMeta(e,t){const r=t.match(mh);let n={};if(r){if(void 0!==r[2])try{n=Q.default.load(r[2])||{}}catch{}t=void 0!==r[3]?r[3]:""}const i=R.default.join(this.book.config.getValue("root",""),e);return n.mtime=this.sourceFS.readFileMTime(i),{meta:n,content:t}}}{format="json";async onInit(){this.processSummary()}processSummary(){this.book.summary.getArticle((e=>(e.ref&&(e.path=G.default(e.ref,".json")),!1)))}async onArticle(e){if(e.ref){const t=await this.tmpFS.readAsString(e.ref);await this.tmpFS.unlink(e.ref),await this.tmpFS.writeFile(e.getPath(),JSON.stringify({title:e.title,content:t},null,4))}}async onSummary(){const e=this.book.summary;await this.tmpFS.unlink("SUMMARY.md"),await this.tmpFS.writeFile("SUMMARY.json",JSON.stringify(e.toObject(),null,4))}async onFinish(){await this.packBook()}async packBook(){ie.info("pack book ..."),await this.tmpFS.archive("tar",this.dest)}}class vh{root;constructor(e){this.root=e}readFileMTime(e){const t=`git log --pretty=format:%cI -1 -- ${e}`,{error:r,stdout:n}=U.default.sync(t,{stdio:["inherit"],encoding:"utf8",cwd:this.root,shell:!0});if(!r)return n}createReadStream(e,t){return W.default.createReadStream(this.resolve(e),t)}async readFile(e){return await W.default.readFile(this.resolve(e))}async readAsObject(e){try{return await W.default.readJSON(this.resolve(e))}catch{return{}}}async readAsString(e){try{return await W.default.readFile(this.resolve(e),"utf-8")}catch{return""}}async writeFile(e,t){return W.default.writeFile(this.resolve(e),t)}createWriteStream(e,t){return W.default.createWriteStream(this.resolve(e),t)}async appendFile(e,t){return W.default.appendFile(this.resolve(e),t)}exist(e){return W.default.pathExistsSync(this.resolve(e))}async unlink(e){try{await W.default.unlink(this.resolve(e))}catch{}}async readDir(e={}){const{path:t="",ignoreFiles:r=[".gitignore",".bookignore"]}=e,n=[];return new Promise((e=>{K.default({path:this.resolve(t),ignoreFiles:r}).on("child",(function(e){n.push({type:e.type,path:e.path.substr(e.root.path.length+1)})})).on("close",(()=>{e(n)}))}))}resolve(...e){return R.default.join(this.root,...e)}async archive(e="tar",t=T.default.tmpNameSync()){const r=J.default(e,{gzip:!0,gzipOptions:{level:9},zlib:{level:9}}),n=W.default.createWriteStream(t);r.pipe(n);const i=await this.readDir();for(const e of i)"File"===e.type&&r.append(this.createReadStream(e.path),{name:e.path});return await r.finalize(),t}}class yh extends gh{template;scripts=["https://jsdelivr.topthink.com/npm/lodash@4.17/lodash.min.js","https://jsdelivr.topthink.com/npm/react@17/umd/react.production.min.js","https://jsdelivr.topthink.com/npm/react-dom@17/umd/react-dom.production.min.js"];stylesheets=[];headScripts=[];format="html";async onInit(){await super.onInit(),await this.installReader(),await this.copyPluginsAssets(),await this.initTemplate()}initTemplate(){const e=W.default.readFileSync(R.default.resolve(__dirname,"../templates/html.ejs"),"utf-8");this.template=Y.default.compile(e)}processSummary(){this.book.summary.getArticle((e=>{if(e.ref){const t=r.posix.parse(e.ref);e.path=r.posix.format({...t,name:k.pinyin(t.name,{toneType:"none",type:"array"}).join("-"),ext:".html",base:""})}return!1}))}async installReader(){ie.info("installing package @topwrite/reader ...");const{error:e}=U.default.sync("npm link @topwrite/reader",{stdio:["inherit"],cwd:this.tmpFS.root,shell:!0});if(e)throw e;await W.default.copy(R.default.join(this.tmpFS.root,"node_modules","@topwrite","reader","dist"),R.default.join(this.tmpFS.root,"asset"));const t=require(R.default.join(this.tmpFS.root,"node_modules","@topwrite","reader","package.json"));this.scripts.push(`asset/index.js?v=${t.version}`),ie.info(`package @topwrite/reader@${t.version} installed with success`)}async copyPluginsAssets(){for(const e of this.plugins)await W.default.copy(R.default.join(e.path,"dist"),R.default.join(this.tmpFS.root,"asset","plugins",e.name)),this.scripts.push(`asset/plugins/${e.name}/index.js?v=${e.version}`)}async onArticle(e){if(e.ref){const t=e.getPath(),r=await this.makeFile(t,e.ref),n=await this.renderFile(r,e.title);await this.tmpFS.unlink(e.ref),await this.tmpFS.writeFile(t,n)}}async onSummary(){const e=await this.makeFile("index.html","README.md"),t=await this.renderFile(e);await this.tmpFS.unlink("SUMMARY.md"),await this.tmpFS.unlink("README.md"),await this.tmpFS.writeFile("index.html",t)}async renderFile(e,t){const r={id:this.book.id,summary:this.book.summary.toObject(),config:this.book.config.toObject(),file:e,options:{}},n=this.scripts.map((t=>ce.isUrl(t)?t:e.relative(t))),i=this.headScripts.map((t=>ce.isUrl(t)?t:e.relative(t))),o=this.stylesheets.map((t=>ce.isUrl(t)?t:e.relative(t))),a=this.book.config.getValue("title","Untitled"),s=e.getMeta("title",t);return this.template({title:(s?`${s} - `:"")+a,keywords:e.getMeta("keywords"),description:e.getMeta("description"),stylesheets:o,headScripts:i,scripts:n,payload:JSON.stringify(r).replace(/\//g,"\\/")})}}const bh=(e,t)=>e.some((e=>e instanceof RegExp?e.test(t):e===t));class xh extends X.default.ResourceLoader{fs;constructor(e){super(),this.fs=e}fetch(e,t){return super.fetch(e,t)}}const wh={json:gh,html:yh,ebook:class extends yh{format="ebook";async initPlugins(){this.book.config.setValue("theme","ebook"),await super.initPlugins()}createDOM(e,t){const r=new xh(this.tmpFS),n=new S.VirtualConsole;return n.sendTo(console,{omitJSDOMErrors:!0}),new S.JSDOM(e,{virtualConsole:n,url:`file:///${this.tmpFS.resolve(t)}`,runScripts:"dangerously",resources:r,pretendToBeVisual:!0})}async renderHtml(e,t){const r=this.createDOM(e,t);return await function(e,t){const{tryEvery:r,stopAfter:n}=t,i=Date.now(),o=(t,a)=>{setTimeout((async()=>{try{const r=await e();t(r)}catch(e){Date.now()-i>n?a(e):o(t,a)}}),r)};return new Promise(o)}((()=>{const e=r.window.document.getElementById("root");if(e&&e.innerHTML){for(const e of Array.from(r.window.document.scripts))e.remove();return r.serialize()}throw new Error("render html timeout")}),{stopAfter:2e3,tryEvery:100})}async renderFile(e,t){const r=await super.renderFile(e,t);return await this.renderHtml(r,e.path)}getConvertOptions(e){const{config:t}=this.book,r={title:t.getValue("title"),"book-producer":"TopWrite",publisher:"TopWrite",chapter:"descendant-or-self::*[contains(concat(' ', normalize-space(@class), ' '), 'book-title')]","level1-toc":"descendant-or-self::*[contains(concat(' ', normalize-space(@class), ' '), ' book-title-1 ')]","level2-toc":"descendant-or-self::*[contains(concat(' ', normalize-space(@class), ' '), ' book-title-2 ')]","level3-toc":"descendant-or-self::*[contains(concat(' ', normalize-space(@class), ' '), ' book-title-3 ')]","max-toc-links":"0","max-levels":"1","no-chapters-in-toc":!0,"breadth-first":!0,"disable-font-rescaling":!0};switch(e){case"docx":r["docx-no-toc"]=!0;break;case"epub":r["dont-split-on-page-breaks"]=!0;break;case"pdf":const e=W.default.readFileSync(R.default.resolve(__dirname,"../templates/pdf-header.ejs"),"utf-8"),n=W.default.readFileSync(R.default.resolve(__dirname,"../templates/pdf-footer.ejs"),"utf-8");r["chapter-mark"]=t.getValue(["pdf","chapterMark"]),r["page-breaks-before"]=t.getValue(["pdf","pageBreaksBefore"]),r["pdf-page-margin-left"]=t.getValue(["pdf","margin","left"]),r["pdf-page-margin-right"]=t.getValue(["pdf","margin","right"]),r["pdf-page-margin-top"]=t.getValue(["pdf","margin","top"]),r["pdf-page-margin-bottom"]=t.getValue(["pdf","margin","bottom"]),r["pdf-serif-family"]=t.getValue(["pdf","fontFamily"]),r["paper-size"]=t.getValue(["pdf","paperSize"]),r["pdf-custom-size"]=t.getValue(["pdf","customSize"]),r.unit="millimeter",r["pdf-page-numbers"]=t.getValue(["pdf","pageNumbers"]),r["preserve-cover-aspect-ratio"]=!0,r["pdf-header-template"]=e,r["pdf-footer-template"]=n}return r}async packBook(){const e=R.default.extname(this.dest).substr(1);if(!["pdf","docx","epub"].includes(e))return super.packBook();const t=await E.lookpath("ebook-convert");if(!t)throw new Error("Install ebook-convert from Calibre: https://calibre-ebook.com");const r=function(e,t){const r=[];let n=[],i=[];t={useEquals:!0,shortFlag:!0,...t};const o=(e,n)=>{const i=t.shortFlag&&1===e.length?"-":"--",o=t.allowCamelCase?e:e.replace(/[A-Z]/g,"-$&").toLowerCase();e=i+o,t.useEquals?r.push(e+(n?`=${n}`:"")):(r.push(e),n&&r.push(n))},a=(e,t)=>{r.push(`-${e}`),t&&r.push(t)};for(let[r,s]of Object.entries(e)){let e=o;if((!Array.isArray(t.excludes)||!bh(t.excludes,r))&&(!Array.isArray(t.includes)||bh(t.includes,r)))if("object"==typeof t.aliases&&t.aliases[r]&&(r=t.aliases[r],e=a),"--"!==r)if("_"!==r){if(!0!==s||t.ignoreTrue||e(r,""),!1!==s||t.ignoreFalse||e(`no-${r}`),"string"==typeof s&&e(r,s),"number"!=typeof s||Number.isNaN(s)||e(r,String(s)),Array.isArray(s))for(const t of s)e(r,t)}else{if(!Array.isArray(s))throw new TypeError("Expected key `_` to be Array, got "+typeof s);n=s}else{if(!Array.isArray(s))throw new TypeError("Expected key `--` to be Array, got "+typeof s);i=s}}for(const e of n)r.push(String(e));i.length>0&&r.push("--");for(const e of i)r.push(String(e));return r}(this.getConvertOptions(e));return r.unshift(this.tmpFS.resolve("index.html"),this.dest),new Promise(((e,n)=>{ie.info("convert book ...");const i=U.default(t,r,{stdio:["inherit"],cwd:this.tmpFS.root});i.stdout?.on("data",(e=>{console.debug(e.toString().trimEnd())})),i.stderr?.on("data",(e=>{console.error(e.toString().trimEnd())})),i.on("close",(t=>{0!==t?n("Convert failed"):e()}))}))}}};var kh=ee.default,Eh=process.cwd,Sh=null,Ph=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return Sh||(Sh=Eh.call(process)),Sh};try{process.cwd()}catch(e){}if("function"==typeof process.chdir){var _h=process.chdir;process.chdir=function(e){Sh=null,_h.call(process,e)},Object.setPrototypeOf&&Object.setPrototypeOf(process.chdir,_h)}var Ah=function(e){kh.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)&&function(e){e.lchmod=function(t,r,n){e.open(t,kh.O_WRONLY|kh.O_SYMLINK,r,(function(t,i){t?n&&n(t):e.fchmod(i,r,(function(t){e.close(i,(function(e){n&&n(t||e)}))}))}))},e.lchmodSync=function(t,r){var n,i=e.openSync(t,kh.O_WRONLY|kh.O_SYMLINK,r),o=!0;try{n=e.fchmodSync(i,r),o=!1}finally{if(o)try{e.closeSync(i)}catch(e){}else e.closeSync(i)}return n}}(e);e.lutimes||function(e){kh.hasOwnProperty("O_SYMLINK")?(e.lutimes=function(t,r,n,i){e.open(t,kh.O_SYMLINK,(function(t,o){t?i&&i(t):e.futimes(o,r,n,(function(t){e.close(o,(function(e){i&&i(t||e)}))}))}))},e.lutimesSync=function(t,r,n){var i,o=e.openSync(t,kh.O_SYMLINK),a=!0;try{i=e.futimesSync(o,r,n),a=!1}finally{if(a)try{e.closeSync(o)}catch(e){}else e.closeSync(o)}return i}):(e.lutimes=function(e,t,r,n){n&&process.nextTick(n)},e.lutimesSync=function(){})}(e);e.chown=i(e.chown),e.fchown=i(e.fchown),e.lchown=i(e.lchown),e.chmod=r(e.chmod),e.fchmod=r(e.fchmod),e.lchmod=r(e.lchmod),e.chownSync=o(e.chownSync),e.fchownSync=o(e.fchownSync),e.lchownSync=o(e.lchownSync),e.chmodSync=n(e.chmodSync),e.fchmodSync=n(e.fchmodSync),e.lchmodSync=n(e.lchmodSync),e.stat=a(e.stat),e.fstat=a(e.fstat),e.lstat=a(e.lstat),e.statSync=s(e.statSync),e.fstatSync=s(e.fstatSync),e.lstatSync=s(e.lstatSync),e.lchmod||(e.lchmod=function(e,t,r){r&&process.nextTick(r)},e.lchmodSync=function(){});e.lchown||(e.lchown=function(e,t,r,n){n&&process.nextTick(n)},e.lchownSync=function(){});"win32"===Ph&&(e.rename=(t=e.rename,function(r,n,i){var o=Date.now(),a=0;t(r,n,(function s(c){if(c&&("EACCES"===c.code||"EPERM"===c.code)&&Date.now()-o<6e4)return setTimeout((function(){e.stat(n,(function(e,o){e&&"ENOENT"===e.code?t(r,n,s):i(c)}))}),a),void(a<100&&(a+=10));i&&i(c)}))}));var t;function r(t){return t?function(r,n,i){return t.call(e,r,n,(function(e){c(e)&&(e=null),i&&i.apply(this,arguments)}))}:t}function n(t){return t?function(r,n){try{return t.call(e,r,n)}catch(e){if(!c(e))throw e}}:t}function i(t){return t?function(r,n,i,o){return t.call(e,r,n,i,(function(e){c(e)&&(e=null),o&&o.apply(this,arguments)}))}:t}function o(t){return t?function(r,n,i){try{return t.call(e,r,n,i)}catch(e){if(!c(e))throw e}}:t}function a(t){return t?function(r,n,i){function o(e,t){t&&(t.uid<0&&(t.uid+=4294967296),t.gid<0&&(t.gid+=4294967296)),i&&i.apply(this,arguments)}return"function"==typeof n&&(i=n,n=null),n?t.call(e,r,n,o):t.call(e,r,o)}:t}function s(t){return t?function(r,n){var i=n?t.call(e,r,n):t.call(e,r);return i.uid<0&&(i.uid+=4294967296),i.gid<0&&(i.gid+=4294967296),i}:t}function c(e){return!e||("ENOSYS"===e.code||!(process.getuid&&0===process.getuid()||"EINVAL"!==e.code&&"EPERM"!==e.code))}e.read=function(t){function r(r,n,i,o,a,s){var c;if(s&&"function"==typeof s){var u=0;c=function(l,f,h){if(l&&"EAGAIN"===l.code&&u<10)return u++,t.call(e,r,n,i,o,a,c);s.apply(this,arguments)}}return t.call(e,r,n,i,o,a,c)}return Object.setPrototypeOf&&Object.setPrototypeOf(r,t),r}(e.read),e.readSync=(u=e.readSync,function(t,r,n,i,o){for(var a=0;;)try{return u.call(e,t,r,n,i,o)}catch(e){if("EAGAIN"===e.code&&a<10){a++;continue}throw e}});var u};var Ch=B.default.Stream,Fh=function(e){return{ReadStream:function t(r,n){if(!(this instanceof t))return new t(r,n);Ch.call(this);var i=this;this.path=r,this.fd=null,this.readable=!0,this.paused=!1,this.flags="r",this.mode=438,this.bufferSize=65536,n=n||{};for(var o=Object.keys(n),a=0,s=o.length;a<s;a++){var c=o[a];this[c]=n[c]}this.encoding&&this.setEncoding(this.encoding);if(void 0!==this.start){if("number"!=typeof this.start)throw TypeError("start must be a Number");if(void 0===this.end)this.end=1/0;else if("number"!=typeof this.end)throw TypeError("end must be a Number");if(this.start>this.end)throw new Error("start must be <= end");this.pos=this.start}if(null!==this.fd)return void process.nextTick((function(){i._read()}));e.open(this.path,this.flags,this.mode,(function(e,t){if(e)return i.emit("error",e),void(i.readable=!1);i.fd=t,i.emit("open",t),i._read()}))},WriteStream:function t(r,n){if(!(this instanceof t))return new t(r,n);Ch.call(this),this.path=r,this.fd=null,this.writable=!0,this.flags="w",this.encoding="binary",this.mode=438,this.bytesWritten=0,n=n||{};for(var i=Object.keys(n),o=0,a=i.length;o<a;o++){var s=i[o];this[s]=n[s]}if(void 0!==this.start){if("number"!=typeof this.start)throw TypeError("start must be a Number");if(this.start<0)throw new Error("start must be >= zero");this.pos=this.start}this.busy=!1,this._queue=[],null===this.fd&&(this._open=e.open,this._queue.push([this._open,this.path,this.flags,this.mode,void 0]),this.flush())}}};var Dh=function(e){if(null===e||"object"!=typeof e)return e;if(e instanceof Object)var t={__proto__:Oh(e)};else t=Object.create(null);return Object.getOwnPropertyNames(e).forEach((function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))})),t},Oh=Object.getPrototypeOf||function(e){return e.__proto__};var Th,Rh,Ih=H.default,jh=Ah,Lh=Fh,qh=Dh,zh=te.default;function Mh(e,t){Object.defineProperty(e,Th,{get:function(){return t}})}"function"==typeof Symbol&&"function"==typeof Symbol.for?(Th=Symbol.for("graceful-fs.queue"),Rh=Symbol.for("graceful-fs.previous")):(Th="___graceful-fs.queue",Rh="___graceful-fs.previous");var Nh=function(){};if(zh.debuglog?Nh=zh.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&(Nh=function(){var e=zh.format.apply(zh,arguments);e="GFS4: "+e.split(/\n/).join("\nGFS4: "),console.error(e)}),!Ih[Th]){var Bh=oe[Th]||[];Mh(Ih,Bh),Ih.close=function(e){function t(t,r){return e.call(Ih,t,(function(e){e||Qh(),"function"==typeof r&&r.apply(this,arguments)}))}return Object.defineProperty(t,Rh,{value:e}),t}(Ih.close),Ih.closeSync=function(e){function t(t){e.apply(Ih,arguments),Qh()}return Object.defineProperty(t,Rh,{value:e}),t}(Ih.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",(function(){Nh(Ih[Th]),z.default.equal(Ih[Th].length,0)}))}oe[Th]||Mh(oe,Ih[Th]);var $h,Uh=Vh(qh(Ih));function Vh(e){jh(e),e.gracefulify=Vh,e.createReadStream=function(t,r){return new e.ReadStream(t,r)},e.createWriteStream=function(t,r){return new e.WriteStream(t,r)};var t=e.readFile;e.readFile=function(e,r,n){"function"==typeof r&&(n=r,r=null);return function e(r,n,i,o){return t(r,n,(function(t){!t||"EMFILE"!==t.code&&"ENFILE"!==t.code?"function"==typeof i&&i.apply(this,arguments):Hh([e,[r,n,i],t,o||Date.now(),Date.now()])}))}(e,r,n)};var r=e.writeFile;e.writeFile=function(e,t,n,i){"function"==typeof n&&(i=n,n=null);return function e(t,n,i,o,a){return r(t,n,i,(function(r){!r||"EMFILE"!==r.code&&"ENFILE"!==r.code?"function"==typeof o&&o.apply(this,arguments):Hh([e,[t,n,i,o],r,a||Date.now(),Date.now()])}))}(e,t,n,i)};var n=e.appendFile;n&&(e.appendFile=function(e,t,r,i){"function"==typeof r&&(i=r,r=null);return function e(t,r,i,o,a){return n(t,r,i,(function(n){!n||"EMFILE"!==n.code&&"ENFILE"!==n.code?"function"==typeof o&&o.apply(this,arguments):Hh([e,[t,r,i,o],n,a||Date.now(),Date.now()])}))}(e,t,r,i)});var i=e.copyFile;i&&(e.copyFile=function(e,t,r,n){"function"==typeof r&&(n=r,r=0);return function e(t,r,n,o,a){return i(t,r,n,(function(i){!i||"EMFILE"!==i.code&&"ENFILE"!==i.code?"function"==typeof o&&o.apply(this,arguments):Hh([e,[t,r,n,o],i,a||Date.now(),Date.now()])}))}(e,t,r,n)});var o=e.readdir;if(e.readdir=function(e,t,r){"function"==typeof t&&(r=t,t=null);return function e(t,r,n,i){return o(t,r,(function(o,a){!o||"EMFILE"!==o.code&&"ENFILE"!==o.code?(a&&a.sort&&a.sort(),"function"==typeof n&&n.call(this,o,a)):Hh([e,[t,r,n],o,i||Date.now(),Date.now()])}))}(e,t,r)},"v0.8"===process.version.substr(0,4)){var a=Lh(e);f=a.ReadStream,h=a.WriteStream}var s=e.ReadStream;s&&(f.prototype=Object.create(s.prototype),f.prototype.open=function(){var e=this;d(e.path,e.flags,e.mode,(function(t,r){t?(e.autoClose&&e.destroy(),e.emit("error",t)):(e.fd=r,e.emit("open",r),e.read())}))});var c=e.WriteStream;c&&(h.prototype=Object.create(c.prototype),h.prototype.open=function(){var e=this;d(e.path,e.flags,e.mode,(function(t,r){t?(e.destroy(),e.emit("error",t)):(e.fd=r,e.emit("open",r))}))}),Object.defineProperty(e,"ReadStream",{get:function(){return f},set:function(e){f=e},enumerable:!0,configurable:!0}),Object.defineProperty(e,"WriteStream",{get:function(){return h},set:function(e){h=e},enumerable:!0,configurable:!0});var u=f;Object.defineProperty(e,"FileReadStream",{get:function(){return u},set:function(e){u=e},enumerable:!0,configurable:!0});var l=h;function f(e,t){return this instanceof f?(s.apply(this,arguments),this):f.apply(Object.create(f.prototype),arguments)}function h(e,t){return this instanceof h?(c.apply(this,arguments),this):h.apply(Object.create(h.prototype),arguments)}Object.defineProperty(e,"FileWriteStream",{get:function(){return l},set:function(e){l=e},enumerable:!0,configurable:!0});var p=e.open;function d(e,t,r,n){return"function"==typeof r&&(n=r,r=null),function e(t,r,n,i,o){return p(t,r,n,(function(a,s){!a||"EMFILE"!==a.code&&"ENFILE"!==a.code?"function"==typeof i&&i.apply(this,arguments):Hh([e,[t,r,n,i],a,o||Date.now(),Date.now()])}))}(e,t,r,n)}return e.open=d,e}function Hh(e){Nh("ENQUEUE",e[0].name,e[1]),Ih[Th].push(e),Gh()}function Qh(){for(var e=Date.now(),t=0;t<Ih[Th].length;++t)Ih[Th][t].length>2&&(Ih[Th][t][3]=e,Ih[Th][t][4]=e);Gh()}function Gh(){if(clearTimeout($h),$h=void 0,0!==Ih[Th].length){var e=Ih[Th].shift(),t=e[0],r=e[1],n=e[2],i=e[3],o=e[4];if(void 0===i)Nh("RETRY",t.name,r),t.apply(null,r);else if(Date.now()-i>=6e4){Nh("TIMEOUT",t.name,r);var a=r.pop();"function"==typeof a&&a.call(null,n)}else{var s=Date.now()-o,c=Math.max(o-i,1);s>=Math.min(1.2*c,100)?(Nh("RETRY",t.name,r),t.apply(null,r.concat([i]))):Ih[Th].push(e)}void 0===$h&&($h=setTimeout(Gh,0))}}process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!Ih.__patched&&(Uh=Vh(Ih),Ih.__patched=!0);var Wh=Uh;const Kh=Z.default.homedir(),{env:Jh}=process,Yh=Jh.XDG_DATA_HOME||(Kh?R.default.join(Kh,".local","share"):void 0),Xh=Jh.XDG_CONFIG_HOME||(Kh?R.default.join(Kh,".config"):void 0);Jh.XDG_STATE_HOME||Kh&&R.default.join(Kh,".local","state"),Jh.XDG_CACHE_HOME||Kh&&R.default.join(Kh,".cache"),Jh.XDG_RUNTIME_DIR;const Zh=(Jh.XDG_DATA_DIRS||"/usr/local/share/:/usr/share/").split(":");Yh&&Zh.unshift(Yh);const ep=(Jh.XDG_CONFIG_DIRS||"/etc/xdg").split(":");Xh&&ep.unshift(Xh);var tp={exports:{}},rp={exports:{}};
|
|
11
9
|
/**
|
|
12
10
|
* @preserve
|
|
13
11
|
* JS Implementation of incremental MurmurHash3 (r150) (as of May 10, 2013)
|
|
@@ -19,4 +17,4 @@ function fh(e){return null==e}var hh={isNothing:fh,isObject:function(e){return"o
|
|
|
19
17
|
* @author <a href="mailto:aappleby@gmail.com">Austin Appleby</a>
|
|
20
18
|
* @see http://sites.google.com/site/murmurhash/
|
|
21
19
|
*/
|
|
22
|
-
!function(e){!function(){var t;function r(e,n){var i=this instanceof r?this:t;if(i.reset(n),"string"==typeof e&&e.length>0&&i.hash(e),i!==this)return i}r.prototype.hash=function(e){var t,r,n,i,a;switch(a=e.length,this.len+=a,r=this.k1,n=0,this.rem){case 0:r^=a>n?65535&e.charCodeAt(n++):0;case 1:r^=a>n?(65535&e.charCodeAt(n++))<<8:0;case 2:r^=a>n?(65535&e.charCodeAt(n++))<<16:0;case 3:r^=a>n?(255&e.charCodeAt(n))<<24:0,r^=a>n?(65280&e.charCodeAt(n++))>>8:0}if(this.rem=a+this.rem&3,(a-=this.rem)>0){for(t=this.h1;t=5*(t=(t^=r=13715*(r=(r=11601*r+3432906752*(65535&r)&4294967295)<<15|r>>>17)+461832192*(65535&r)&4294967295)<<13|t>>>19)+3864292196&4294967295,!(n>=a);)r=65535&e.charCodeAt(n++)^(65535&e.charCodeAt(n++))<<8^(65535&e.charCodeAt(n++))<<16,r^=(255&(i=e.charCodeAt(n++)))<<24^(65280&i)>>8;switch(r=0,this.rem){case 3:r^=(65535&e.charCodeAt(n+2))<<16;case 2:r^=(65535&e.charCodeAt(n+1))<<8;case 1:r^=65535&e.charCodeAt(n)}this.h1=t}return this.k1=r,this},r.prototype.result=function(){var e,t;return e=this.k1,t=this.h1,e>0&&(t^=e=13715*(e=(e=11601*e+3432906752*(65535&e)&4294967295)<<15|e>>>17)+461832192*(65535&e)&4294967295),t^=this.len,t=51819*(t^=t>>>16)+2246770688*(65535&t)&4294967295,t=44597*(t^=t>>>13)+3266445312*(65535&t)&4294967295,(t^=t>>>16)>>>0},r.prototype.reset=function(e){return this.h1="number"==typeof e?e:0,this.rem=this.k1=this.len=0,this},t=new r,e.exports=r}()}(Kd);var Yd={exports:{}},Jd={exports:{}};!function(e){e.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"],"win32"!==process.platform&&e.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT"),"linux"===process.platform&&e.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")}(Jd);var Zd,Xd=N.default,em=Jd.exports,tm=/^win/i.test(process.platform),rm=te.default;function nm(){om&&(om=!1,em.forEach((function(e){try{process.removeListener(e,am[e])}catch(e){}})),process.emit=lm,process.reallyExit=cm,Zd.count-=1)}function im(e,t,r){Zd.emitted[e]||(Zd.emitted[e]=!0,Zd.emit(e,t,r))}"function"!=typeof rm&&(rm=rm.EventEmitter),process.__signal_exit_emitter__?Zd=process.__signal_exit_emitter__:((Zd=process.__signal_exit_emitter__=new rm).count=0,Zd.emitted={}),Zd.infinite||(Zd.setMaxListeners(1/0),Zd.infinite=!0),Yd.exports=function(e,t){Xd.equal(typeof e,"function","a callback must be provided for exit handler"),!1===om&&sm();var r="exit";t&&t.alwaysLast&&(r="afterexit");return Zd.on(r,e),function(){Zd.removeListener(r,e),0===Zd.listeners("exit").length&&0===Zd.listeners("afterexit").length&&nm()}},Yd.exports.unload=nm;var am={};em.forEach((function(e){am[e]=function(){process.listeners(e).length===Zd.count&&(nm(),im("exit",null,e),im("afterexit",null,e),tm&&"SIGHUP"===e&&(e="SIGINT"),process.kill(process.pid,e))}})),Yd.exports.signals=function(){return em},Yd.exports.load=sm;var om=!1;function sm(){om||(om=!0,Zd.count+=1,em=em.filter((function(e){try{return process.on(e,am[e]),!0}catch(e){return!1}})),process.emit=fm,process.reallyExit=um)}var cm=process.reallyExit;function um(e){process.exitCode=e||0,im("exit",process.exitCode,null),im("afterexit",process.exitCode,null),cm.call(process,process.exitCode)}var lm=process.emit;function fm(e,t){if("exit"===e){void 0!==t&&(process.exitCode=t);var r=lm.apply(this,arguments);return im("exit",process.exitCode,null),im("afterexit",process.exitCode,null),r}return lm.apply(this,arguments)}var hm=mm;mm.strict=gm,mm.loose=vm;var pm=Object.prototype.toString,dm={"[object Int8Array]":!0,"[object Int16Array]":!0,"[object Int32Array]":!0,"[object Uint8Array]":!0,"[object Uint8ClampedArray]":!0,"[object Uint16Array]":!0,"[object Uint32Array]":!0,"[object Float32Array]":!0,"[object Float64Array]":!0};function mm(e){return gm(e)||vm(e)}function gm(e){return e instanceof Int8Array||e instanceof Int16Array||e instanceof Int32Array||e instanceof Uint8Array||e instanceof Uint8ClampedArray||e instanceof Uint16Array||e instanceof Uint32Array||e instanceof Float32Array||e instanceof Float64Array}function vm(e){return dm[pm.call(e)]}var ym=hm.strict;Wd.exports=function(e,t,r,n){r instanceof Function&&(n=r,r={});const i=async function(e,t,r={}){"string"==typeof r&&(r={encoding:r});let n,i;const a=xm(Om((()=>i))),o=km.resolve(e);try{await function(e){return new Promise((t=>{Am[e]||(Am[e]=[]),Am[e].push(t),1===Am[e].length&&t()}))}(o);const s=await Cm(bm.realpath)(e).catch((()=>e));if(i=Fm(s),!r.mode||!r.chown){const e=await Cm(bm.stat)(s).catch((()=>{}));e&&(null==r.mode&&(r.mode=e.mode),null==r.chown&&process.getuid&&(r.chown={uid:e.uid,gid:e.gid}))}n=await Cm(bm.open)(i,"w",r.mode),r.tmpfileCreated&&await r.tmpfileCreated(i),Em(t)&&(t=Sm(t)),Buffer.isBuffer(t)?await Cm(bm.write)(n,t,0,t.length,0):null!=t&&await Cm(bm.write)(n,String(t),0,String(r.encoding||"utf8")),!1!==r.fsync&&await Cm(bm.fsync)(n),await Cm(bm.close)(n),n=null,r.chown&&await Cm(bm.chown)(i,r.chown.uid,r.chown.gid).catch((e=>{if(!Dm(e))throw e})),r.mode&&await Cm(bm.chmod)(i,r.mode).catch((e=>{if(!Dm(e))throw e})),await Cm(bm.rename)(i,s)}finally{n&&await Cm(bm.close)(n).catch((()=>{})),a(),await Cm(bm.unlink)(i).catch((()=>{})),Am[o].shift(),Am[o].length>0?Am[o][0]():delete Am[o]}}(e,t,r);n&&i.then(n,n);return i},Wd.exports.sync=function(e,t,r){"string"==typeof r?r={encoding:r}:r||(r={});try{e=bm.realpathSync(e)}catch(e){}const n=Fm(e);if(!r.mode||!r.chown)try{const t=bm.statSync(e);(r=Object.assign({},r)).mode||(r.mode=t.mode),!r.chown&&process.getuid&&(r.chown={uid:t.uid,gid:t.gid})}catch(e){}let i;const a=Om(n),o=xm(a);let s=!0;try{if(i=bm.openSync(n,"w",r.mode||438),r.tmpfileCreated&&r.tmpfileCreated(n),Em(t)&&(t=Sm(t)),Buffer.isBuffer(t)?bm.writeSync(i,t,0,t.length,0):null!=t&&bm.writeSync(i,String(t),0,String(r.encoding||"utf8")),!1!==r.fsync&&bm.fsyncSync(i),bm.closeSync(i),i=null,r.chown)try{bm.chownSync(n,r.chown.uid,r.chown.gid)}catch(e){if(!Dm(e))throw e}if(r.mode)try{bm.chmodSync(n,r.mode)}catch(e){if(!Dm(e))throw e}bm.renameSync(n,e),s=!1}finally{if(i)try{bm.closeSync(i)}catch(e){}o(),s&&a()}},Wd.exports._getTmpname=Fm,Wd.exports._cleanupOnExit=Om;const bm=K.default,wm=Kd.exports,xm=Yd.exports,km=T.default,Em=hm,Sm=function(e){if(ym(e)){var t=Buffer.from(e.buffer);return e.byteLength!==e.buffer.byteLength&&(t=t.slice(e.byteOffset,e.byteOffset+e.byteLength)),t}return Buffer.from(e)},{promisify:Cm}=V.default,Am={},Pm=function(){try{return re.default.threadId}catch(e){return 0}}();let _m=0;function Fm(e){return e+"."+wm(__filename).hash(String(process.pid)).hash(String(Pm)).hash(String(++_m)).result()}function Om(e){return()=>{try{bm.unlinkSync("function"==typeof e?e():e)}catch(e){}}}function Dm(e){if("ENOSYS"===e.code)return!0;return!(process.getuid&&0===process.getuid()||"EINVAL"!==e.code&&"EPERM"!==e.code)}var Im=Wd.exports;const Tm=e=>{const t=typeof e;return null!==e&&("object"===t||"function"===t)},jm=new Set(["__proto__","prototype","constructor"]);function Rm(e){const t=e.split("."),r=[];for(let e=0;e<t.length;e++){let n=t[e];for(;"\\"===n[n.length-1]&&void 0!==t[e+1];)n=n.slice(0,-1)+".",n+=t[++e];r.push(n)}return r.some((e=>jm.has(e)))?[]:r}var Lm={get(e,t,r){if(!Tm(e)||"string"!=typeof t)return void 0===r?e:r;const n=Rm(t);if(0!==n.length){for(let t=0;t<n.length;t++)if(null==(e=e[n[t]])){if(t!==n.length-1)return r;break}return void 0===e?r:e}},set(e,t,r){if(!Tm(e)||"string"!=typeof t)return e;const n=e,i=Rm(t);for(let t=0;t<i.length;t++){const n=i[t];Tm(e[n])||(e[n]={}),t===i.length-1&&(e[n]=r),e=e[n]}return n},delete(e,t){if(!Tm(e)||"string"!=typeof t)return!1;const r=Rm(t);for(let t=0;t<r.length;t++){const n=r[t];if(t===r.length-1)return delete e[n],!0;if(e=e[n],!Tm(e))return!1}},has(e,t){if(!Tm(e)||"string"!=typeof t)return!1;const r=Rm(t);if(0===r.length)return!1;for(let t=0;t<r.length;t++){if(!Tm(e))return!1;if(!(r[t]in e))return!1;e=e[r[t]]}return!0}};const qm=p.promisify(L.default.randomBytes),Mm="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-._~".split(""),Nm="0123456789".split(""),zm="CDEHKMPRTUWXY012458".split(""),Bm="!\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~".split(""),$m="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),Um=new Set([void 0,"hex","base64","url-safe","numeric","distinguishable","ascii-printable","alphanumeric"]),Vm=(e,t)=>({length:r,type:n,characters:i})=>{if(!(r>=0&&Number.isFinite(r)))throw new TypeError("Expected a `length` to be a non-negative finite number");if(void 0!==n&&void 0!==i)throw new TypeError("Expected either `type` or `characters`");if(void 0!==i&&"string"!=typeof i)throw new TypeError("Expected `characters` to be string");if(!Um.has(n))throw new TypeError(`Unknown type: ${n}`);if(void 0===n&&void 0===i&&(n="hex"),"hex"===n||void 0===n&&void 0===i)return t(Math.ceil(.5*r),"hex",r);if("base64"===n)return t(Math.ceil(.75*r),"base64",r);if("url-safe"===n)return e(r,Mm);if("numeric"===n)return e(r,Nm);if("distinguishable"===n)return e(r,zm);if("ascii-printable"===n)return e(r,Bm);if("alphanumeric"===n)return e(r,$m);if(0===i.length)throw new TypeError("Expected `characters` string length to be greater than or equal to 1");if(i.length>65536)throw new TypeError("Expected `characters` string length to be less or equal to 65536");return e(r,i.split(""))},Hm=Vm(((e,t)=>{const r=t.length,n=Math.floor(65536/r)*r-1,i=2*Math.ceil(1.1*e);let a="",o=0;for(;o<e;){const s=L.default.randomBytes(i);let c=0;for(;c<i&&o<e;){const e=s.readUInt16LE(c);c+=2,e>n||(a+=t[e%r],o++)}}return a}),((e,t,r)=>L.default.randomBytes(e).toString(t).slice(0,r)));Hm.async=Vm((async(e,t)=>{const r=t.length,n=Math.floor(65536/r)*r-1,i=2*Math.ceil(1.1*e);let a="",o=0;for(;o<e;){const s=await qm(i);let c=0;for(;c<i&&o<e;){const e=s.readUInt16LE(c);c+=2,e>n||(a+=t[e%r],o++)}}return a}),(async(e,t,r)=>(await qm(e)).toString(t).slice(0,r)));const Qm=Hd||T.default.join(H.default.tmpdir(),Hm({length:32})),Gm={mode:448,recursive:!0},Wm={mode:384};const Km=new class{constructor(e,t,r={}){const n=r.globalConfigPath?T.default.join(e,"config.json"):T.default.join("configstore",`${e}.json`);this._path=r.configPath||T.default.join(Qm,n),t&&(this.all={...t,...this.all})}get all(){try{return JSON.parse(Bd.readFileSync(this._path,"utf8"))}catch(e){if("ENOENT"===e.code)return{};if("EACCES"===e.code&&(e.message=`${e.message}\nYou don't have access to this file.\n`),"SyntaxError"===e.name)return Im.sync(this._path,"",Wm),{};throw e}}set all(e){try{Bd.mkdirSync(T.default.dirname(this._path),Gm),Im.sync(this._path,JSON.stringify(e,void 0,"\t"),Wm)}catch(e){throw"EACCES"===e.code&&(e.message=`${e.message}\nYou don't have access to this file.\n`),e}}get size(){return Object.keys(this.all||{}).length}get(e){return Lm.get(this.all,e)}set(e,t){const r=this.all;if(1===arguments.length)for(const t of Object.keys(e))Lm.set(r,t,e[t]);else Lm.set(r,e,t);this.all=r}has(e){return Lm.has(this.all,e)}delete(e){const t=this.all;Lm.delete(t,e),this.all=t}clear(){this.all={}}get path(){return this._path}}("ttx",{plugins_host:"https://plugins.x.topthink.com"});function Ym(e){return e?Km.get(e):Km.all}se.Summary.prototype.toObject=function(){return this.parts.map((function(e){return e.toObject()}))},se.SummaryPart.prototype.toObject=function(){return{title:this.title,articles:this.articles.map((function(e){return e.toObject()}))}},se.SummaryArticle.prototype.toObject=function(){return{title:this.title,ref:this.ref,path:this.path,children:this.children.map((function(e){return e.toObject()}))}};const Jm=require("../package.json");I.default.setGracefulCleanup();const Zm=new e.Command;Zm.version(Jm.version),Zm.name("ttx"),Zm.command("build <id> <dir> <format> [dest]").option("--plugins_host <plugins_host>","plugins host").description("build book").action((async function(e,t,r,n,i){ne.info(`cli version ${Jm.version}`);const a=T.default.resolve(t);n=n?T.default.resolve(n):T.default.join(a,"book.tar.gz");try{const a={plugins:{host:i.plugins_host||Ym("plugins_host")}},o=await async function(e,t,r,n,i){if(void 0===dd[r])throw new Error("unsupported format: "+r);const a=dd[r],o=new ld(t),s=se.Config.createFromObject(await o.readAsObject(se.Config.file)),c=o.resolve(s.getValue("root","")),u=I.default.dirSync({unsafeCleanup:!0}).name,l=new ld(u);await Y.default.copy(c,u),await Y.default.copy(T.default.resolve(__dirname,"../templates/.bookignore"),l.resolve(".bookignore"));const f=se.Summary.createFromText(await l.readAsString(s.getStructure("summary")));return new a(new se.Book(e,s,f),o,l,n,i)}(e,t,r,a,n);await o.generate(),process.exit(0)}catch(e){ne.error(e),process.exit(1)}}));const Xm=Zm.command("config");Xm.command("list").action((function(){console.log(Ym())})),Xm.command("set <key> <value>").action((function(e,t){!function(e,t){Km.set(e,t)}(e,t)})),Zm.parse(process.argv);
|
|
20
|
+
!function(e){!function(){var t;function r(e,n){var i=this instanceof r?this:t;if(i.reset(n),"string"==typeof e&&e.length>0&&i.hash(e),i!==this)return i}r.prototype.hash=function(e){var t,r,n,i,o;switch(o=e.length,this.len+=o,r=this.k1,n=0,this.rem){case 0:r^=o>n?65535&e.charCodeAt(n++):0;case 1:r^=o>n?(65535&e.charCodeAt(n++))<<8:0;case 2:r^=o>n?(65535&e.charCodeAt(n++))<<16:0;case 3:r^=o>n?(255&e.charCodeAt(n))<<24:0,r^=o>n?(65280&e.charCodeAt(n++))>>8:0}if(this.rem=o+this.rem&3,(o-=this.rem)>0){for(t=this.h1;t=5*(t=(t^=r=13715*(r=(r=11601*r+3432906752*(65535&r)&4294967295)<<15|r>>>17)+461832192*(65535&r)&4294967295)<<13|t>>>19)+3864292196&4294967295,!(n>=o);)r=65535&e.charCodeAt(n++)^(65535&e.charCodeAt(n++))<<8^(65535&e.charCodeAt(n++))<<16,r^=(255&(i=e.charCodeAt(n++)))<<24^(65280&i)>>8;switch(r=0,this.rem){case 3:r^=(65535&e.charCodeAt(n+2))<<16;case 2:r^=(65535&e.charCodeAt(n+1))<<8;case 1:r^=65535&e.charCodeAt(n)}this.h1=t}return this.k1=r,this},r.prototype.result=function(){var e,t;return e=this.k1,t=this.h1,e>0&&(t^=e=13715*(e=(e=11601*e+3432906752*(65535&e)&4294967295)<<15|e>>>17)+461832192*(65535&e)&4294967295),t^=this.len,t=51819*(t^=t>>>16)+2246770688*(65535&t)&4294967295,t=44597*(t^=t>>>13)+3266445312*(65535&t)&4294967295,(t^=t>>>16)>>>0},r.prototype.reset=function(e){return this.h1="number"==typeof e?e:0,this.rem=this.k1=this.len=0,this},t=new r,e.exports=r}()}(rp);var np={exports:{}},ip={exports:{}};!function(e){e.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"],"win32"!==process.platform&&e.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT"),"linux"===process.platform&&e.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")}(ip);var op=oe.process;const ap=function(e){return e&&"object"==typeof e&&"function"==typeof e.removeListener&&"function"==typeof e.emit&&"function"==typeof e.reallyExit&&"function"==typeof e.listeners&&"function"==typeof e.kill&&"number"==typeof e.pid&&"function"==typeof e.on};if(ap(op)){var sp,cp=z.default,up=ip.exports,lp=/^win/i.test(op.platform),fp=re.default;"function"!=typeof fp&&(fp=fp.EventEmitter),op.__signal_exit_emitter__?sp=op.__signal_exit_emitter__:((sp=op.__signal_exit_emitter__=new fp).count=0,sp.emitted={}),sp.infinite||(sp.setMaxListeners(1/0),sp.infinite=!0),np.exports=function(e,t){if(ap(oe.process)){cp.equal(typeof e,"function","a callback must be provided for exit handler"),!1===mp&&gp();var r="exit";t&&t.alwaysLast&&(r="afterexit");return sp.on(r,e),function(){sp.removeListener(r,e),0===sp.listeners("exit").length&&0===sp.listeners("afterexit").length&&hp()}}};var hp=function(){mp&&ap(oe.process)&&(mp=!1,up.forEach((function(e){try{op.removeListener(e,dp[e])}catch(e){}})),op.emit=bp,op.reallyExit=vp,sp.count-=1)};np.exports.unload=hp;var pp=function(e,t,r){sp.emitted[e]||(sp.emitted[e]=!0,sp.emit(e,t,r))},dp={};up.forEach((function(e){dp[e]=function(){ap(oe.process)&&(op.listeners(e).length===sp.count&&(hp(),pp("exit",null,e),pp("afterexit",null,e),lp&&"SIGHUP"===e&&(e="SIGINT"),op.kill(op.pid,e)))}})),np.exports.signals=function(){return up};var mp=!1,gp=function(){!mp&&ap(oe.process)&&(mp=!0,sp.count+=1,up=up.filter((function(e){try{return op.on(e,dp[e]),!0}catch(e){return!1}})),op.emit=xp,op.reallyExit=yp)};np.exports.load=gp;var vp=op.reallyExit,yp=function(e){ap(oe.process)&&(op.exitCode=e||0,pp("exit",op.exitCode,null),pp("afterexit",op.exitCode,null),vp.call(op,op.exitCode))},bp=op.emit,xp=function(e,t){if("exit"===e&&ap(oe.process)){void 0!==t&&(op.exitCode=t);var r=bp.apply(this,arguments);return pp("exit",op.exitCode,null),pp("afterexit",op.exitCode,null),r}return bp.apply(this,arguments)}}else np.exports=function(){};var wp=Sp;Sp.strict=Pp,Sp.loose=_p;var kp=Object.prototype.toString,Ep={"[object Int8Array]":!0,"[object Int16Array]":!0,"[object Int32Array]":!0,"[object Uint8Array]":!0,"[object Uint8ClampedArray]":!0,"[object Uint16Array]":!0,"[object Uint32Array]":!0,"[object Float32Array]":!0,"[object Float64Array]":!0};function Sp(e){return Pp(e)||_p(e)}function Pp(e){return e instanceof Int8Array||e instanceof Int16Array||e instanceof Int32Array||e instanceof Uint8Array||e instanceof Uint8ClampedArray||e instanceof Uint16Array||e instanceof Uint32Array||e instanceof Float32Array||e instanceof Float64Array}function _p(e){return Ep[kp.call(e)]}var Ap=wp.strict;tp.exports=function(e,t,r,n){r instanceof Function&&(n=r,r={});const i=async function(e,t,r={}){"string"==typeof r&&(r={encoding:r});let n,i;const o=Dp(Mp((()=>i))),a=Op.resolve(e);try{await function(e){return new Promise((t=>{jp[e]||(jp[e]=[]),jp[e].push(t),1===jp[e].length&&t()}))}(a);const s=await Ip(Cp.realpath)(e).catch((()=>e));if(i=zp(s),!r.mode||!r.chown){const e=await Ip(Cp.stat)(s).catch((()=>{}));e&&(null==r.mode&&(r.mode=e.mode),null==r.chown&&process.getuid&&(r.chown={uid:e.uid,gid:e.gid}))}n=await Ip(Cp.open)(i,"w",r.mode),r.tmpfileCreated&&await r.tmpfileCreated(i),Tp(t)&&(t=Rp(t)),Buffer.isBuffer(t)?await Ip(Cp.write)(n,t,0,t.length,0):null!=t&&await Ip(Cp.write)(n,String(t),0,String(r.encoding||"utf8")),!1!==r.fsync&&await Ip(Cp.fsync)(n),await Ip(Cp.close)(n),n=null,r.chown&&await Ip(Cp.chown)(i,r.chown.uid,r.chown.gid).catch((e=>{if(!Np(e))throw e})),r.mode&&await Ip(Cp.chmod)(i,r.mode).catch((e=>{if(!Np(e))throw e})),await Ip(Cp.rename)(i,s)}finally{n&&await Ip(Cp.close)(n).catch((()=>{})),o(),await Ip(Cp.unlink)(i).catch((()=>{})),jp[a].shift(),jp[a].length>0?jp[a][0]():delete jp[a]}}(e,t,r);n&&i.then(n,n);return i},tp.exports.sync=function(e,t,r){"string"==typeof r?r={encoding:r}:r||(r={});try{e=Cp.realpathSync(e)}catch(e){}const n=zp(e);if(!r.mode||!r.chown)try{const t=Cp.statSync(e);(r=Object.assign({},r)).mode||(r.mode=t.mode),!r.chown&&process.getuid&&(r.chown={uid:t.uid,gid:t.gid})}catch(e){}let i;const o=Mp(n),a=Dp(o);let s=!0;try{if(i=Cp.openSync(n,"w",r.mode||438),r.tmpfileCreated&&r.tmpfileCreated(n),Tp(t)&&(t=Rp(t)),Buffer.isBuffer(t)?Cp.writeSync(i,t,0,t.length,0):null!=t&&Cp.writeSync(i,String(t),0,String(r.encoding||"utf8")),!1!==r.fsync&&Cp.fsyncSync(i),Cp.closeSync(i),i=null,r.chown)try{Cp.chownSync(n,r.chown.uid,r.chown.gid)}catch(e){if(!Np(e))throw e}if(r.mode)try{Cp.chmodSync(n,r.mode)}catch(e){if(!Np(e))throw e}Cp.renameSync(n,e),s=!1}finally{if(i)try{Cp.closeSync(i)}catch(e){}a(),s&&o()}},tp.exports._getTmpname=zp,tp.exports._cleanupOnExit=Mp;const Cp=H.default,Fp=rp.exports,Dp=np.exports,Op=R.default,Tp=wp,Rp=function(e){if(Ap(e)){var t=Buffer.from(e.buffer);return e.byteLength!==e.buffer.byteLength&&(t=t.slice(e.byteOffset,e.byteOffset+e.byteLength)),t}return Buffer.from(e)},{promisify:Ip}=te.default,jp={},Lp=function(){try{return require("worker_threads").threadId}catch(e){return 0}}();let qp=0;function zp(e){return e+"."+Fp(__filename).hash(String(process.pid)).hash(String(Lp)).hash(String(++qp)).result()}function Mp(e){return()=>{try{Cp.unlinkSync("function"==typeof e?e():e)}catch(e){}}}function Np(e){if("ENOSYS"===e.code)return!0;return!(process.getuid&&0===process.getuid()||"EINVAL"!==e.code&&"EPERM"!==e.code)}var Bp=tp.exports;const $p=e=>{const t=typeof e;return null!==e&&("object"===t||"function"===t)},Up=new Set(["__proto__","prototype","constructor"]);function Vp(e){const t=e.split("."),r=[];for(let e=0;e<t.length;e++){let n=t[e];for(;"\\"===n[n.length-1]&&void 0!==t[e+1];)n=n.slice(0,-1)+".",n+=t[++e];r.push(n)}return r.some((e=>Up.has(e)))?[]:r}var Hp={get(e,t,r){if(!$p(e)||"string"!=typeof t)return void 0===r?e:r;const n=Vp(t);if(0!==n.length){for(let t=0;t<n.length;t++)if(null==(e=e[n[t]])){if(t!==n.length-1)return r;break}return void 0===e?r:e}},set(e,t,r){if(!$p(e)||"string"!=typeof t)return e;const n=e,i=Vp(t);for(let t=0;t<i.length;t++){const n=i[t];$p(e[n])||(e[n]={}),t===i.length-1&&(e[n]=r),e=e[n]}return n},delete(e,t){if(!$p(e)||"string"!=typeof t)return!1;const r=Vp(t);for(let t=0;t<r.length;t++){const n=r[t];if(t===r.length-1)return delete e[n],!0;if(e=e[n],!$p(e))return!1}},has(e,t){if(!$p(e)||"string"!=typeof t)return!1;const r=Vp(t);if(0===r.length)return!1;for(let t=0;t<r.length;t++){if(!$p(e))return!1;if(!(r[t]in e))return!1;e=e[r[t]]}return!0}};const Qp=A.promisify(ne.default.randomBytes),Gp="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-._~".split(""),Wp="0123456789".split(""),Kp="CDEHKMPRTUWXY012458".split(""),Jp="!\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~".split(""),Yp="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),Xp=new Set([void 0,"hex","base64","url-safe","numeric","distinguishable","ascii-printable","alphanumeric"]),Zp=(e,t)=>({length:r,type:n,characters:i})=>{if(!(r>=0&&Number.isFinite(r)))throw new TypeError("Expected a `length` to be a non-negative finite number");if(void 0!==n&&void 0!==i)throw new TypeError("Expected either `type` or `characters`");if(void 0!==i&&"string"!=typeof i)throw new TypeError("Expected `characters` to be string");if(!Xp.has(n))throw new TypeError(`Unknown type: ${n}`);if(void 0===n&&void 0===i&&(n="hex"),"hex"===n||void 0===n&&void 0===i)return t(Math.ceil(.5*r),"hex",r);if("base64"===n)return t(Math.ceil(.75*r),"base64",r);if("url-safe"===n)return e(r,Gp);if("numeric"===n)return e(r,Wp);if("distinguishable"===n)return e(r,Kp);if("ascii-printable"===n)return e(r,Jp);if("alphanumeric"===n)return e(r,Yp);if(0===i.length)throw new TypeError("Expected `characters` string length to be greater than or equal to 1");if(i.length>65536)throw new TypeError("Expected `characters` string length to be less or equal to 65536");return e(r,i.split(""))},ed=Zp(((e,t)=>{const r=t.length,n=Math.floor(65536/r)*r-1,i=2*Math.ceil(1.1*e);let o="",a=0;for(;a<e;){const s=ne.default.randomBytes(i);let c=0;for(;c<i&&a<e;){const e=s.readUInt16LE(c);c+=2,e>n||(o+=t[e%r],a++)}}return o}),((e,t,r)=>ne.default.randomBytes(e).toString(t).slice(0,r)));ed.async=Zp((async(e,t)=>{const r=t.length,n=Math.floor(65536/r)*r-1,i=2*Math.ceil(1.1*e);let o="",a=0;for(;a<e;){const s=await Qp(i);let c=0;for(;c<i&&a<e;){const e=s.readUInt16LE(c);c+=2,e>n||(o+=t[e%r],a++)}}return o}),(async(e,t,r)=>(await Qp(e)).toString(t).slice(0,r)));const td=Xh||R.default.join(Z.default.tmpdir(),ed({length:32})),rd={mode:448,recursive:!0},nd={mode:384};const id=new class{constructor(e,t,r={}){const n=r.globalConfigPath?R.default.join(e,"config.json"):R.default.join("configstore",`${e}.json`);this._path=r.configPath||R.default.join(td,n),t&&(this.all={...t,...this.all})}get all(){try{return JSON.parse(Wh.readFileSync(this._path,"utf8"))}catch(e){if("ENOENT"===e.code)return{};if("EACCES"===e.code&&(e.message=`${e.message}\nYou don't have access to this file.\n`),"SyntaxError"===e.name)return Bp.sync(this._path,"",nd),{};throw e}}set all(e){try{Wh.mkdirSync(R.default.dirname(this._path),rd),Bp.sync(this._path,JSON.stringify(e,void 0,"\t"),nd)}catch(e){throw"EACCES"===e.code&&(e.message=`${e.message}\nYou don't have access to this file.\n`),e}}get size(){return Object.keys(this.all||{}).length}get(e){return Hp.get(this.all,e)}set(e,t){const r=this.all;if(1===arguments.length)for(const t of Object.keys(e))Hp.set(r,t,e[t]);else Hp.set(r,e,t);this.all=r}has(e){return Hp.has(this.all,e)}delete(e){const t=this.all;Hp.delete(t,e),this.all=t}clear(){this.all={}}get path(){return this._path}}("ttx",{plugins_host:"https://plugins.x.topthink.com"});function od(e){return e?id.get(e):id.all}ce.Summary.prototype.toObject=function(){return this.parts.map((function(e){return e.toObject()}))},ce.SummaryPart.prototype.toObject=function(){return{title:this.title,articles:this.articles.map((function(e){return e.toObject()}))}},ce.SummaryArticle.prototype.toObject=function(){return{title:this.title,ref:this.ref,path:this.path,children:this.children.map((function(e){return e.toObject()}))}};const ad=require("../package.json");T.default.setGracefulCleanup();const sd=new e.Command;sd.version(ad.version),sd.name("ttx"),sd.command("build <id> <dir> <format> [dest]").option("--plugins_host <plugins_host>","plugins host").description("build book").action((async function(e,t,r,n,i){ie.info(`cli version ${ad.version}`);const o=R.default.resolve(t);n=n?R.default.resolve(n):R.default.join(o,"book.tar.gz");try{const o={plugins:{host:i.plugins_host||od("plugins_host")}},a=await async function(e,t,r,n,i){if(void 0===wh[r])throw new Error("unsupported format: "+r);const o=wh[r],a=new vh(t),s=ce.Config.createFromObject(await a.readAsObject(ce.Config.file)),c=a.resolve(s.getValue("root","")),u=T.default.dirSync({unsafeCleanup:!0}).name,l=new vh(u);await W.default.copy(c,u),await W.default.copy(R.default.resolve(__dirname,"../templates/.bookignore"),l.resolve(".bookignore"));const f=ce.Summary.createFromText(await l.readAsString(s.getStructure("summary")));return new o(new ce.Book(e,s,f),a,l,n,i)}(e,t,r,o,n);await a.generate(),process.exit(0)}catch(e){ie.error(e),process.exit(1)}}));const cd=sd.command("config");cd.command("list").action((function(){console.log(od())})),cd.command("set <key> <value>").action((function(e,t){!function(e,t){id.set(e,t)}(e,t)})),sd.parse(process.argv);
|