@topwrite/cli 1.0.98 → 1.0.99
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 +4 -3
- package/package.json +4 -4
package/bin/ttx.js
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
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"),o=require("process"),a=require("url"),s=require("assert"),c=require("http"),l=require("https"),u=require("stream"),h=require("zlib"),p=require("cross-spawn"),f=require("fs"),d=require("vm2"),m=require("js-yaml"),g=require("canvas"),E=require("fs-extra"),y=require("pinyin-pro"),T=require("fstream-ignore"),v=require("archiver"),b=require("tar-pack"),_=require("ejs"),A=require("lookpath"),S=require("jsdom"),k=require("mime-types"),C=require("os"),x=require("constants"),w=require("util"),O=require("events"),N=require("crypto"),P=require("puppeteer-core");require("node:path");var R=require("node:querystring");function I(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}function L(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 D=I(t),M=I(r),F=I(n),H=I(i),B=I(o),U=I(a),j=I(s),q=I(c),z=I(l),G=I(u),K=I(h),$=I(p),V=L(f),Q=I(f),W=I(m),Y=I(E),X=I(T),J=I(v),Z=I(_),ee=I(S),te=I(k),re=I(C),ne=I(x),ie=I(w),oe=I(O),ae=I(N),se=I(P),ce=L(R);const le=F.default.create({});var ue="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function he(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 pe={},fe={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),l=e?"[\\uE000-\\uF8FF]":"[]",u=t(n,i,"[\\-\\.\\_\\~]",e?"[\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]":"[]");r(n+t(n,i,"[\\+\\-\\.]")+"*"),r(r(a+"|"+t(u,s,"[\\:]"))+"*");var h=r(r("25[0-5]")+"|"+r("2[0-4]"+i)+"|"+r("1"+i+i)+"|"+r("0?[1-9]"+i)+"|0?0?"+i),p=r(h+"\\."+h+"\\."+h+"\\."+h),f=r(o+"{1,4}"),d=r(r(f+"\\:"+f)+"|"+p),m=r(r(f+"\\:")+"{6}"+d),g=r("\\:\\:"+r(f+"\\:")+"{5}"+d),E=r(r(f)+"?\\:\\:"+r(f+"\\:")+"{4}"+d),y=r(r(r(f+"\\:")+"{0,1}"+f)+"?\\:\\:"+r(f+"\\:")+"{3}"+d),T=r(r(r(f+"\\:")+"{0,2}"+f)+"?\\:\\:"+r(f+"\\:")+"{2}"+d),v=r(r(r(f+"\\:")+"{0,3}"+f)+"?\\:\\:"+f+"\\:"+d),b=r(r(r(f+"\\:")+"{0,4}"+f)+"?\\:\\:"+d),_=r(r(r(f+"\\:")+"{0,5}"+f)+"?\\:\\:"+f),A=r(r(r(f+"\\:")+"{0,6}"+f)+"?\\:\\:"),S=r([m,g,E,y,T,v,b,_,A].join("|")),k=r(r(u+"|"+a)+"+");r("[vV]"+o+"+\\."+t(u,s,"[\\:]")+"+"),r(r(a+"|"+t(u,s))+"*");var C=r(a+"|"+t(u,s,"[\\:\\@]"));return r(r(a+"|"+t(u,s,"[\\@]"))+"+"),r(r(C+"|"+t("[\\/\\?]",l))+"*"),{NOT_SCHEME:new RegExp(t("[^]",n,i,"[\\+\\-\\.]"),"g"),NOT_USERINFO:new RegExp(t("[^\\%\\:]",u,s),"g"),NOT_HOST:new RegExp(t("[^\\%\\[\\]\\:]",u,s),"g"),NOT_PATH:new RegExp(t("[^\\%\\/\\:\\@]",u,s),"g"),NOT_PATH_NOSCHEME:new RegExp(t("[^\\%\\/\\@]",u,s),"g"),NOT_QUERY:new RegExp(t("[^\\%]",u,s,"[\\:\\@\\/\\?]",l),"g"),NOT_FRAGMENT:new RegExp(t("[^\\%]",u,s,"[\\:\\@\\/\\?]"),"g"),ESCAPE:new RegExp(t("[^]",u,s),"g"),UNRESERVED:new RegExp(u,"g"),OTHER_CHARS:new RegExp(t("[^\\%]",u,c),"g"),PCT_ENCODED:new RegExp(a,"g"),IPV4ADDRESS:new RegExp("^("+p+")$"),IPV6ADDRESS:new RegExp("^\\[?("+S+")"+r(r("\\%25|\\%(?!"+o+"{2})")+"("+k+")")+"?\\]?$")}}var c=s(!1),l=s(!0),u=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")}}(),h=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)},p=2147483647,f=36,d=1,m=26,g=38,E=700,y=72,T=128,v="-",b=/^xn--/,_=/[^\0-\x7E]/,A=/[\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"},k=f-d,C=Math.floor,x=String.fromCharCode;function w(e){throw new RangeError(S[e])}function O(e,t){for(var r=[],n=e.length;n--;)r[n]=t(e[n]);return r}function N(e,t){var r=e.split("@"),n="";return r.length>1&&(n=r[0]+"@",e=r[1]),n+O((e=e.replace(A,".")).split("."),t).join(".")}function P(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 R=function(e){return e-48<10?e-22:e-65<26?e-65:e-97<26?e-97:f},I=function(e,t){return e+22+75*(e<26)-((0!=t)<<5)},L=function(e,t,r){var n=0;for(e=r?C(e/E):e>>1,e+=C(e/t);e>k*m>>1;n+=f)e=C(e/k);return C(n+(k+1)*e/(e+g))},D=function(e){var t=[],r=e.length,n=0,i=T,o=y,a=e.lastIndexOf(v);a<0&&(a=0);for(var s=0;s<a;++s)e.charCodeAt(s)>=128&&w("not-basic"),t.push(e.charCodeAt(s));for(var c=a>0?a+1:0;c<r;){for(var l=n,u=1,h=f;;h+=f){c>=r&&w("invalid-input");var g=R(e.charCodeAt(c++));(g>=f||g>C((p-n)/u))&&w("overflow"),n+=g*u;var E=h<=o?d:h>=o+m?m:h-o;if(g<E)break;var b=f-E;u>C(p/b)&&w("overflow"),u*=b}var _=t.length+1;o=L(n-l,_,0==l),C(n/_)>p-i&&w("overflow"),i+=C(n/_),n%=_,t.splice(n++,0,i)}return String.fromCodePoint.apply(String,t)},M=function(e){var t=[],r=(e=P(e)).length,n=T,i=0,o=y,a=!0,s=!1,c=void 0;try{for(var l,u=e[Symbol.iterator]();!(a=(l=u.next()).done);a=!0){var h=l.value;h<128&&t.push(x(h))}}catch(e){s=!0,c=e}finally{try{!a&&u.return&&u.return()}finally{if(s)throw c}}var g=t.length,E=g;for(g&&t.push(v);E<r;){var b=p,_=!0,A=!1,S=void 0;try{for(var k,O=e[Symbol.iterator]();!(_=(k=O.next()).done);_=!0){var N=k.value;N>=n&&N<b&&(b=N)}}catch(e){A=!0,S=e}finally{try{!_&&O.return&&O.return()}finally{if(A)throw S}}var R=E+1;b-n>C((p-i)/R)&&w("overflow"),i+=(b-n)*R,n=b;var D=!0,M=!1,F=void 0;try{for(var H,B=e[Symbol.iterator]();!(D=(H=B.next()).done);D=!0){var U=H.value;if(U<n&&++i>p&&w("overflow"),U==n){for(var j=i,q=f;;q+=f){var z=q<=o?d:q>=o+m?m:q-o;if(j<z)break;var G=j-z,K=f-z;t.push(x(I(z+G%K,0))),j=C(G/K)}t.push(x(I(j,0))),o=L(i,R,E==g),i=0,++E}}}catch(e){M=!0,F=e}finally{try{!D&&B.return&&B.return()}finally{if(M)throw F}}++i,++n}return t.join("")},F=function(e){return N(e,function(e){return b.test(e)?D(e.slice(4).toLowerCase()):e})},H=function(e){return N(e,function(e){return _.test(e)?"xn--"+M(e):e})},B={version:"2.1.0",ucs2:{decode:P,encode:function(e){return String.fromCodePoint.apply(String,h(e))}},decode:D,encode:M,toASCII:H,toUnicode:F},U={};function j(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 q(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 z(e,t){function r(e){var r=q(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,j).replace(t.PCT_ENCODED,i)),void 0!==e.host&&(e.host=String(e.host).replace(t.PCT_ENCODED,r).toLowerCase().replace(t.NOT_HOST,j).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,j).replace(t.PCT_ENCODED,i)),void 0!==e.query&&(e.query=String(e.query).replace(t.PCT_ENCODED,r).replace(t.NOT_QUERY,j).replace(t.PCT_ENCODED,i)),void 0!==e.fragment&&(e.fragment=String(e.fragment).replace(t.PCT_ENCODED,r).replace(t.NOT_FRAGMENT,j).replace(t.PCT_ENCODED,i)),e}function G(e){return e.replace(/^0*(.*)/,"$1")||"0"}function K(e,t){var r=e.match(t.IPV4ADDRESS)||[],n=u(r,2)[1];return n?n.split(".").map(G).join("."):e}function $(e,t){var r=e.match(t.IPV6ADDRESS)||[],n=u(r,3),i=n[1],o=n[2];if(i){for(var a=i.toLowerCase().split("::").reverse(),s=u(a,2),c=s[0],l=s[1],h=l?l.split(":").map(G):[],p=c.split(":").map(G),f=t.IPV4ADDRESS.test(p[p.length-1]),d=f?7:8,m=p.length-d,g=Array(d),E=0;E<d;++E)g[E]=h[E]||p[m+E]||"";f&&(g[d-1]=K(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},[]),T=y.sort(function(e,t){return t.length-e.length})[0],v=void 0;if(T&&T.length>1){var b=g.slice(0,T.index),_=g.slice(T.index+T.length);v=b.join(":")+"::"+_.join(":")}else v=g.join(":");return o&&(v+="%"+o),v}return e}var V=/^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i,Q=void 0==="".match(/(){0}/)[1];function W(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={},n=!1!==t.iri?l:c;"suffix"===t.reference&&(e=(t.scheme?t.scheme+":":"")+"//"+e);var i=e.match(V);if(i){Q?(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=$(K(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=U[(t.scheme||r.scheme||"").toLowerCase()];if(t.unicodeSupport||o&&o.unicodeSupport)z(r,n);else{if(r.host&&(t.domainHost||o&&o.domainHost))try{r.host=B.toASCII(r.host.replace(n.PCT_ENCODED,q).toLowerCase())}catch(e){r.error=r.error||"Host's domain name can not be converted to ASCII via punycode: "+e}z(r,c)}o&&o.parse&&o.parse(r,t)}else r.error=r.error||"URI can not be parsed.";return r}function Y(e,t){var r=!1!==t.iri?l:c,n=[];return void 0!==e.userinfo&&(n.push(e.userinfo),n.push("@")),void 0!==e.host&&n.push($(K(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 X=/^\.\.?\//,J=/^\/\.(\/|$)/,Z=/^\/\.\.(\/|$)/,ee=/^\/?(?:.|\n)*?(?=\/|$)/;function te(e){for(var t=[];e.length;)if(e.match(X))e=e.replace(X,"");else if(e.match(J))e=e.replace(J,"/");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?l:c,n=[],i=U[(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?B.toUnicode(e.host):B.toASCII(e.host.replace(r.PCT_ENCODED,q).toLowerCase())}catch(r){e.error=e.error||"Host's domain name can not be converted to "+(t.iri?"Unicode":"ASCII")+" via punycode: "+r}z(e,r),"suffix"!==t.reference&&e.scheme&&(n.push(e.scheme),n.push(":"));var o=Y(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=W(re(e,r),r),t=W(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(W(e,n),W(t,n),n,!0),n)}function oe(e,t){return"string"==typeof e?e=re(W(e,t),t):"object"===n(e)&&(e=W(re(e,t),t)),e}function ae(e,t,r){return"string"==typeof e?e=re(W(e,r),r):"object"===n(e)&&(e=re(e,r)),"string"==typeof t?t=re(W(t,r),r):"object"===n(t)&&(t=re(t,r)),e===t}function se(e,t){return e&&e.toString().replace(t&&t.iri?l.ESCAPE:c.ESCAPE,j)}function ce(e,t){return e&&e.toString().replace(t&&t.iri?l.PCT_ENCODED:c.PCT_ENCODED,q)}var le={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}},ue={scheme:"https",domainHost:le.domainHost,parse:le.parse,serialize:le.serialize};function he(e){return"boolean"==typeof e.secure?e.secure:"wss"===String(e.scheme).toLowerCase()}var pe={scheme:"ws",domainHost:!0,parse:function(e,t){var r=e;return r.secure=he(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!==(he(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=u(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}},fe={scheme:"wss",domainHost:pe.domainHost,parse:pe.parse,serialize:pe.serialize},de={},me="[A-Za-z0-9\\-\\.\\_\\~\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]",ge="[0-9A-Fa-f]",Ee=r(r("%[EFef]"+ge+"%"+ge+ge+"%"+ge+ge)+"|"+r("%[89A-Fa-f]"+ge+"%"+ge+ge)+"|"+r("%"+ge+ge)),ye="[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]",Te=t("[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]",'[\\"\\\\]'),ve="[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]",be=new RegExp(me,"g"),_e=new RegExp(Ee,"g"),Ae=new RegExp(t("[^]",ye,"[\\.]",'[\\"]',Te),"g"),Se=new RegExp(t("[^]",me,ve),"g"),ke=Se;function Ce(e){var t=q(e);return t.match(be)?t:e}var xe={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 l=a[s].split("=");switch(l[0]){case"to":for(var u=l[1].split(","),h=0,p=u.length;h<p;++h)n.push(u[h]);break;case"subject":r.subject=ce(l[1],t);break;case"body":r.body=ce(l[1],t);break;default:i=!0,o[ce(l[0],t)]=ce(l[1],t)}}i&&(r.headers=o)}r.query=void 0;for(var f=0,d=n.length;f<d;++f){var m=n[f].split("@");if(m[0]=ce(m[0]),t.unicodeSupport)m[1]=ce(m[1],t).toLowerCase();else try{m[1]=B.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[f]=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]),l=c.lastIndexOf("@"),u=c.slice(0,l).replace(_e,Ce).replace(_e,i).replace(Ae,j),h=c.slice(l+1);try{h=t.iri?B.toUnicode(h):B.toASCII(ce(h,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]=u+"@"+h}r.path=n.join(",")}var p=e.headers=e.headers||{};e.subject&&(p.subject=e.subject),e.body&&(p.body=e.body);var f=[];for(var d in p)p[d]!==de[d]&&f.push(d.replace(_e,Ce).replace(_e,i).replace(Se,j)+"="+p[d].replace(_e,Ce).replace(_e,i).replace(ke,j));return f.length&&(r.query=f.join("&")),r}},we=/^([^\:]+)\:(.*)/,Oe={scheme:"urn",parse:function(e,t){var r=e.path&&e.path.match(we),n=e;if(r){var i=t.scheme||n.scheme||"urn",o=r[1].toLowerCase(),a=r[2],s=i+":"+(t.nid||o),c=U[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=U[i];o&&(e=o.serialize(e,t));var a=e,s=e.nss;return a.path=(n||t.nid)+":"+s,a}},Ne=/^[0-9A-Fa-f]{8}(?:\-[0-9A-Fa-f]{4}){3}\-[0-9A-Fa-f]{12}$/,Pe={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(Ne)||(r.error=r.error||"UUID is not valid."),r},serialize:function(e,t){var r=e;return r.nss=(e.uuid||"").toLowerCase(),r}};U[le.scheme]=le,U[ue.scheme]=ue,U[pe.scheme]=pe,U[fe.scheme]=fe,U[xe.scheme]=xe,U[Oe.scheme]=Oe,U[Pe.scheme]=Pe,e.SCHEMES=U,e.pctEncChar=j,e.pctDecChars=q,e.parse=W,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})}(fe.exports);var de=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},me={copy:function(e,t){for(var r in t=t||{},e)t[r]=e[r];return t},checkDataType:ge,checkDataTypes:function(e,t,r){if(1===e.length)return ge(e[0],t,r,!0);var n="",i=ye(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?" && ":"")+ge(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];(Ee[i]||"array"===e&&"array"===i)&&(r[r.length]=i)}if(r.length)return r}else{if(Ee[t])return[t];if("array"===e&&"array"===t)return["array"]}},toHash:ye,getProperty:be,escapeQuotes:_e,equal:de,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:Ae,getPathExpr:function(e,t,r,n){var i=r?"'/' + "+t+(n?"":".replace(/~/g, '~0').replace(/\\//g, '~1')"):n?"'[' + "+t+" + ']'":"'[\\'' + "+t+" + '\\']'";return Ce(e,i)},getPath:function(e,t,r){var n=Ae(r?"/"+xe(t):be(t));return Ce(e,n)},getData:function(e,t,r){var n,i,o,a;if(""===e)return"rootData";if("/"==e[0]){if(!Se.test(e))throw new Error("Invalid JSON-pointer: "+e);i=e,o="rootData"}else{if(!(a=e.match(ke)))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("/"),l=0;l<c.length;l++){var u=c[l];u&&(s+=" && "+(o+=be(we(u))))}return s},unescapeFragment:function(e){return we(decodeURIComponent(e))},unescapeJsonPointer:we,escapeFragment:function(e){return encodeURIComponent(xe(e))},escapeJsonPointer:xe};function ge(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 Ee=ye(["string","number","integer","boolean","null"]);function ye(e){for(var t={},r=0;r<e.length;r++)t[e[r]]=!0;return t}var Te=/^[a-z$_][a-z$_0-9]*$/i,ve=/'|\\/g;function be(e){return"number"==typeof e?"["+e+"]":Te.test(e)?"."+e:"['"+_e(e)+"']"}function _e(e){return e.replace(ve,"\\$&").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\f/g,"\\f").replace(/\t/g,"\\t")}function Ae(e){return"'"+_e(e)+"'"}var Se=/^\/(?:[^~]|~0|~1)*$/,ke=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function Ce(e,t){return'""'==e?t:(e+" + "+t).replace(/([^\\])' \+ '/g,"$1")}function xe(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}function we(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}var Oe=me,Ne=function(e){Oe.copy(e,this)};var Pe={exports:{}},Re=Pe.exports=function(e,t,r){"function"==typeof t&&(r=t,t={}),Ie(t,"function"==typeof(r=t.cb||r)?r:r.pre||function(){},r.post||function(){},e,"",e)};function Ie(e,t,r,n,i,o,a,s,c,l){if(n&&"object"==typeof n&&!Array.isArray(n)){for(var u in t(n,i,o,a,s,c,l),n){var h=n[u];if(Array.isArray(h)){if(u in Re.arrayKeywords)for(var p=0;p<h.length;p++)Ie(e,t,r,h[p],i+"/"+u+"/"+p,o,i,u,n,p)}else if(u in Re.propsKeywords){if(h&&"object"==typeof h)for(var f in h)Ie(e,t,r,h[f],i+"/"+u+"/"+Le(f),o,i,u,n,f)}else(u in Re.keywords||e.allKeys&&!(u in Re.skipKeywords))&&Ie(e,t,r,h,i+"/"+u,o,i,u,n)}r(n,i,o,a,s,c,l)}}function Le(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}Re.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0},Re.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0},Re.propsKeywords={definitions:!0,properties:!0,patternProperties:!0,dependencies:!0},Re.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=fe.exports,Me=de,Fe=me,He=Ne,Be=Pe.exports,Ue=je;function je(e,t,r){var n=this._refs[r];if("string"==typeof n){if(!this._refs[n])return je.call(this,e,t,n);n=this._refs[n]}if((n=n||this._schemas[r])instanceof He)return Ve(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 He?o=i.validate||e.call(this,i.schema,t,void 0,a):void 0!==i&&(o=Ve(i,this._opts.inlineRefs)?i:e.call(this,i,t,void 0,a)),o}function qe(e,t){var r=De.parse(t),n=Xe(r),i=Ye(this._getId(e.schema));if(0===Object.keys(e.schema).length||n!==i){var o=Ze(n),a=this._refs[o];if("string"==typeof a)return ze.call(this,e,a,r);if(a instanceof He)a.validate||this._compile(a),e=a;else{if(!((a=this._schemas[o])instanceof He))return;if(a.validate||this._compile(a),o==Ze(t))return{schema:a,root:e,baseId:i};e=a}if(!e.schema)return;i=Ye(this._getId(e.schema))}return Ke.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=et(o,a)),Ke.call(this,r,o,i,e)}}je.normalizeId=Ze,je.fullPath=Ye,je.url=et,je.ids=function(e){var t=Ze(this._getId(e)),r={"":t},n={"":Ye(t,!1)},i={},o=this;return Be(e,{allKeys:!0},function(e,t,a,s,c,l,u){if(""!==t){var h=o._getId(e),p=r[s],f=n[s]+"/"+c;if(void 0!==u&&(f+="/"+("number"==typeof u?u:Fe.escapeFragment(u))),"string"==typeof h){h=p=Ze(p?De.resolve(p,h):h);var d=o._refs[h];if("string"==typeof d&&(d=o._refs[d]),d&&d.schema){if(!Me(e,d.schema))throw new Error('id "'+h+'" resolves to more than one schema')}else if(h!=Ze(f))if("#"==h[0]){if(i[h]&&!Me(e,i[h]))throw new Error('id "'+h+'" resolves to more than one schema');i[h]=e}else o._refs[h]=f}r[t]=p,n[t]=f}}),i},je.inlineRef=Ve,je.schema=qe;var Ge=Fe.toHash(["properties","patternProperties","enum","dependencies","definitions"]);function Ke(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=Fe.unescapeFragment(a)]))break;var s;if(!Ge[a]&&((s=this._getId(r))&&(t=et(t,s)),r.$ref)){var c=et(t,r.$ref),l=qe.call(this,n,c);l&&(r=l.schema,n=l.root,t=l.baseId)}}}return void 0!==r&&r!==n.schema?{schema:r,root:n,baseId:t}:void 0}}var $e=Fe.toHash(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum"]);function Ve(e,t){return!1!==t&&(void 0===t||!0===t?Qe(e):t?We(e)<=t:void 0)}function Qe(e){var t;if(Array.isArray(e)){for(var r=0;r<e.length;r++)if("object"==typeof(t=e[r])&&!Qe(t))return!1}else for(var n in e){if("$ref"==n)return!1;if("object"==typeof(t=e[n])&&!Qe(t))return!1}return!0}function We(e){var t,r=0;if(Array.isArray(e)){for(var n=0;n<e.length;n++)if("object"==typeof(t=e[n])&&(r+=We(t)),r==1/0)return 1/0}else for(var i in e){if("$ref"==i)return 1/0;if($e[i])r++;else if("object"==typeof(t=e[i])&&(r+=We(t)+1),r==1/0)return 1/0}return r}function Ye(e,t){return!1!==t&&(e=Ze(e)),Xe(De.parse(e))}function Xe(e){return De.serialize(e).split("#")[0]+"#"}var Je=/#\/?$/;function Ze(e){return e?e.replace(Je,""):""}function et(e,t){return t=Ze(t),De.resolve(e,t)}var tt=Ue,rt={Validation:it(function(e){this.message="validation failed",this.errors=e,this.ajv=this.validation=!0}),MissingRef:it(nt)};function nt(e,t,r){this.message=r||nt.message(e,t),this.missingRef=tt.url(e,t),this.missingSchema=tt.normalizeId(tt.fullPath(this.missingRef))}function it(e){return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}nt.message=function(e,t){return"can't resolve reference "+t+" from id "+e};var ot=function(e,t){t||(t={}),"function"==typeof t&&(t={cmp:t});var r="boolean"==typeof t.cycles&&t.cycles,n=t.cmp&&function(e){return function(t){return function(r,n){var i={key:r,value:t[r]},o={key:n,value:t[n]};return e(i,o)}}}(t.cmp),i=[];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 o,a;if(Array.isArray(t)){for(a="[",o=0;o<t.length;o++)o&&(a+=","),a+=e(t[o])||"null";return a+"]"}if(null===t)return"null";if(-1!==i.indexOf(t)){if(r)return JSON.stringify("__cycle__");throw new TypeError("Converting circular structure to JSON")}var s=i.push(t)-1,c=Object.keys(t).sort(n&&n(t));for(a="",o=0;o<c.length;o++){var l=c[o],u=e(t[l]);u&&(a&&(a+=","),a+=JSON.stringify(l)+":"+u)}return i.splice(s,1),"{"+a+"}"}}(e)},at=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 l=e.level,u=e.dataLevel,h=e.schema[t],p=e.schemaPath+e.util.getProperty(t),f=e.errSchemaPath+"/"+t,d=!e.opts.allErrors,m="data"+(u||""),g="valid"+l;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(f)+" , 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 E=n;n=Y.pop(),!e.compositeRule&&d?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++; "}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;l=e.level=0,u=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 T="default is ignored in the schema root";if("log"!==e.opts.strictDefaults)throw new Error(T);e.logger.warn(T)}n+=" var vErrors = null; ",n+=" var errors = 0; ",n+=" if (rootData === undefined) rootData = data; "}else{l=e.level,m="data"+((u=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_"+l+" = errors;"}g="valid"+l,d=!e.opts.allErrors;var v="",b="",_=e.schema.type,A=Array.isArray(_);if(_&&e.opts.nullable&&!0===e.schema.nullable&&(A?-1==_.indexOf("null")&&(_=_.concat("null")):"null"!=_&&(_=[_,"null"],A=!0)),A&&1==_.length&&(_=_[0],A=!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")),_){if(e.opts.coerceTypes)var S=e.util.coerceToTypes(e.opts.coerceTypes,_);var k=e.RULES.types[_];if(S||A||!0===k||k&&!X(k)){p=e.schemaPath+".type",f=e.errSchemaPath+"/type",p=e.schemaPath+".type",f=e.errSchemaPath+"/type";var C=A?"checkDataTypes":"checkDataType";if(n+=" if ("+e.util[C](_,m,e.opts.strictNumbers,!0)+") { ",S){var x="dataType"+l,w="coerced"+l;n+=" var "+x+" = typeof "+m+"; var "+w+" = undefined; ","array"==e.opts.coerceTypes&&(n+=" if ("+x+" == 'object' && Array.isArray("+m+") && "+m+".length == 1) { "+m+" = "+m+"[0]; "+x+" = typeof "+m+"; if ("+e.util.checkDataType(e.schema.type,m,e.opts.strictNumbers)+") "+w+" = "+m+"; } "),n+=" if ("+w+" !== undefined) ; ";var O=S;if(O)for(var N,P=-1,R=O.length-1;P<R;)"string"==(N=O[P+=1])?n+=" else if ("+x+" == 'number' || "+x+" == 'boolean') "+w+" = '' + "+m+"; else if ("+m+" === null) "+w+" = ''; ":"number"==N||"integer"==N?(n+=" else if ("+x+" == 'boolean' || "+m+" === null || ("+x+" == 'string' && "+m+" && "+m+" == +"+m+" ","integer"==N&&(n+=" && !("+m+" % 1)"),n+=")) "+w+" = +"+m+"; "):"boolean"==N?n+=" else if ("+m+" === 'false' || "+m+" === 0 || "+m+" === null) "+w+" = false; else if ("+m+" === 'true' || "+m+" === 1) "+w+" = true; ":"null"==N?n+=" else if ("+m+" === '' || "+m+" === 0 || "+m+" === false) "+w+" = null; ":"array"==e.opts.coerceTypes&&"array"==N&&(n+=" else if ("+x+" == 'string' || "+x+" == 'number' || "+x+" == 'boolean' || "+m+" == null) "+w+" = ["+m+"]; ");n+=" else { ",(Y=Y||[]).push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'type' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(f)+" , params: { type: '",n+=A?""+_.join(","):""+_,n+="' } ",!1!==e.opts.messages&&(n+=" , message: 'should be ",n+=A?""+_.join(","):""+_,n+="' "),e.opts.verbose&&(n+=" , schema: validate.schema"+p+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+m+" "),n+=" } "):n+=" {} ";E=n;n=Y.pop(),!e.compositeRule&&d?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+=" } if ("+w+" !== undefined) { ";var I=u?"data"+(u-1||""):"parentData";n+=" "+m+" = "+w+"; ",u||(n+="if ("+I+" !== undefined)"),n+=" "+I+"["+(u?e.dataPathArr[u]:"parentDataProperty")+"] = "+w+"; } "}else{(Y=Y||[]).push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'type' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(f)+" , params: { type: '",n+=A?""+_.join(","):""+_,n+="' } ",!1!==e.opts.messages&&(n+=" , message: 'should be ",n+=A?""+_.join(","):""+_,n+="' "),e.opts.verbose&&(n+=" , schema: validate.schema"+p+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+m+" "),n+=" } "):n+=" {} ";E=n;n=Y.pop(),!e.compositeRule&&d?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+=" } "}}if(e.schema.$ref&&!o)n+=" "+e.RULES.all.$ref.code(e,"$ref")+" ",d&&(n+=" } if (errors === ",n+=y?"0":"errs_"+l,n+=") { ",b+="}");else{var L=e.RULES;if(L)for(var D=-1,M=L.length-1;D<M;)if(X(k=L[D+=1])){if(k.type&&(n+=" if ("+e.util.checkDataType(k.type,m,e.opts.strictNumbers)+") { "),e.opts.useDefaults)if("object"==k.type&&e.schema.properties){h=e.schema.properties;var F=Object.keys(h);if(F)for(var H,B=-1,U=F.length-1;B<U;){if(void 0!==(z=h[H=F[B+=1]]).default){var j=m+e.util.getProperty(H);if(e.compositeRule){if(e.opts.strictDefaults){T="default is ignored for: "+j;if("log"!==e.opts.strictDefaults)throw new Error(T);e.logger.warn(T)}}else n+=" if ("+j+" === undefined ","empty"==e.opts.useDefaults&&(n+=" || "+j+" === null || "+j+" === '' "),n+=" ) "+j+" = ","shared"==e.opts.useDefaults?n+=" "+e.useDefault(z.default)+" ":n+=" "+JSON.stringify(z.default)+" ",n+="; "}}}else if("array"==k.type&&Array.isArray(e.schema.items)){var q=e.schema.items;if(q){P=-1;for(var z,G=q.length-1;P<G;)if(void 0!==(z=q[P+=1]).default){j=m+"["+P+"]";if(e.compositeRule){if(e.opts.strictDefaults){T="default is ignored for: "+j;if("log"!==e.opts.strictDefaults)throw new Error(T);e.logger.warn(T)}}else n+=" if ("+j+" === undefined ","empty"==e.opts.useDefaults&&(n+=" || "+j+" === null || "+j+" === '' "),n+=" ) "+j+" = ","shared"==e.opts.useDefaults?n+=" "+e.useDefault(z.default)+" ":n+=" "+JSON.stringify(z.default)+" ",n+="; "}}}var K=k.rules;if(K)for(var $,V=-1,Q=K.length-1;V<Q;)if(J($=K[V+=1])){var W=$.code(e,$.keyword,k.type);W&&(n+=" "+W+" ",d&&(v+="}"))}if(d&&(n+=" "+v+" ",v=""),k.type&&(n+=" } ",_&&_===k.type&&!S)){n+=" else { ";var Y;p=e.schemaPath+".type",f=e.errSchemaPath+"/type";(Y=Y||[]).push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'type' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(f)+" , params: { type: '",n+=A?""+_.join(","):""+_,n+="' } ",!1!==e.opts.messages&&(n+=" , message: 'should be ",n+=A?""+_.join(","):""+_,n+="' "),e.opts.verbose&&(n+=" , schema: validate.schema"+p+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+m+" "),n+=" } "):n+=" {} ";E=n;n=Y.pop(),!e.compositeRule&&d?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+=" } "}d&&(n+=" if (errors === ",n+=y?"0":"errs_"+l,n+=") { ",b+="}")}}function X(e){for(var t=e.rules,r=0;r<t.length;r++)if(J(t[r]))return!0}function J(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+=" "+b+" "),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_"+l+";",n},st=Ue,ct=me,lt=rt,ut=ot,ht=at,pt=ct.ucs2length,ft=de,dt=lt.Validation,mt=function e(t,r,n,i){var o=this,a=this._opts,s=[void 0],c={},l=[],u={},h=[],p={},f=[];r=r||{schema:t,refVal:s,refs:c};var d=gt.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,E=this.RULES;try{var y=v(t,r,n,i);m.validate=y;var T=m.callValidate;return T&&(T.schema=y.schema,T.errors=null,T.refs=y.refs,T.refVal=y.refVal,T.root=y.root,T.$async=y.$async,a.sourceCode&&(T.source=y.source)),y}finally{Et.call(this,t,r,i)}function v(t,n,i,u){var p=!n||n&&n.schema==t;if(n.schema!=r.schema)return e.call(o,t,n,i,u);var d,m=!0===t.$async,y=ht({isTop:!0,schema:t,isRoot:p,baseId:u,root:n,schemaPath:"",errSchemaPath:"#",errorPath:'""',MissingRefError:lt.MissingRef,RULES:E,validate:ht,util:ct,resolve:st,resolveRef:b,usePattern:S,useDefault:k,useCustomRule:C,opts:a,formats:g,logger:o.logger,self:o});y=At(s,bt)+At(l,Tt)+At(h,vt)+At(f,_t)+y,a.processCode&&(y=a.processCode(y,t));try{d=new Function("self","RULES","formats","root","refVal","defaults","customRules","equal","ucs2length","ValidationError",y)(o,E,g,r,s,h,f,ft,pt,dt),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=p?d:n,m&&(d.$async=!0),!0===a.sourceCode&&(d.source={code:y,patterns:l,defaults:h}),d}function b(t,i,l){i=st.url(t,i);var u,h,p=c[i];if(void 0!==p)return A(u=s[p],h="refVal["+p+"]");if(!l&&r.refs){var f=r.refs[i];if(void 0!==f)return A(u=r.refVal[f],h=_(i,u))}h=_(i);var d=st.call(o,v,r,i);if(void 0===d){var m=n&&n[i];m&&(d=st.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),A(d,h);!function(e){delete c[e]}(i)}function _(e,t){var r=s.length;return s[r]=t,c[e]=r,"refVal"+r}function A(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=u[e];return void 0===t&&(t=u[e]=l.length,l[t]=e),"pattern"+t}function k(e){switch(typeof e){case"boolean":case"number":return""+e;case"string":return ct.toQuotedString(e);case"object":if(null===e)return"null";var t=ut(e),r=p[t];return void 0===r&&(r=p[t]=h.length,h[r]=e),"default"+r}}function C(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 l,u=e.definition.compile,h=e.definition.inline,p=e.definition.macro;if(u)l=u.call(o,t,r,n);else if(p)l=p.call(o,t,r,n),!1!==a.validateSchema&&o.validateSchema(l,!0);else if(h)l=h.call(o,n,e.keyword,t,r);else if(!(l=e.definition.validate))return;if(void 0===l)throw new Error('custom keyword "'+e.keyword+'"failed to compile');var d=f.length;return f[d]=l,{code:"customRule"+d,validate:l}}};function gt(e,t,r){var n=yt.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 Et(e,t,r){var n=yt.call(this,e,t,r);n>=0&&this._compilations.splice(n,1)}function yt(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 Tt(e,t){return"var pattern"+e+" = new RegExp("+ct.toQuotedString(t[e])+");"}function vt(e){return"var default"+e+" = defaults["+e+"];"}function bt(e,t){return void 0===t[e]?"":"var refVal"+e+" = refVal["+e+"];"}function _t(e){return"var customRule"+e+" = customRules["+e+"];"}function At(e,t){if(!e.length)return"";for(var r="",n=0;n<e.length;n++)r+=t(n,e);return r}var St={exports:{}},kt=St.exports=function(){this._cache={}};kt.prototype.put=function(e,t){this._cache[e]=t},kt.prototype.get=function(e){return this._cache[e]},kt.prototype.del=function(e){delete this._cache[e]},kt.prototype.clear=function(){this._cache={}};var Ct=me,xt=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,wt=[0,31,28,31,30,31,30,31,31,30,31,30,31],Ot=/^(\d\d):(\d\d):(\d\d)(\.\d+)?(z|[+-]\d\d(?::?\d\d)?)?$/i,Nt=/^(?=.{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,Pt=/^(?:[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,Rt=/^(?:(?:[^\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,It=/^(?:(?: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,Lt=/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,Dt=/^(?:\/(?:[^~/]|~0|~1)*)*$/,Mt=/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,Ft=/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/,Ht=Bt;function Bt(e){return e="full"==e?"full":"fast",Ct.copy(Bt[e])}function Ut(e){var t=e.match(xt);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:wt[n])}function jt(e,t){var r=e.match(Ot);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)}Bt.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":Rt,url:It,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:Nt,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:Kt,uuid:Lt,"json-pointer":Dt,"json-pointer-uri-fragment":Mt,"relative-json-pointer":Ft},Bt.full={date:Ut,time:jt,"date-time":function(e){var t=e.split(qt);return 2==t.length&&Ut(t[0])&&jt(t[1],!0)},uri:function(e){return zt.test(e)&&Pt.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":Rt,url:It,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:Nt,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:Kt,uuid:Lt,"json-pointer":Dt,"json-pointer-uri-fragment":Mt,"relative-json-pointer":Ft};var qt=/t|\s/i;var zt=/\/|:/;var Gt=/[^\\]\\Z/;function Kt(e){if(Gt.test(e))return!1;try{return new RegExp(e),!0}catch(e){return!1}}var $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),l=e.errSchemaPath+"/"+t,u=!e.opts.allErrors,h="data"+(a||""),p=e.opts.$data&&s&&s.$data;p?(i+=" var schema"+o+" = "+e.util.getData(s.$data,a,e.dataPathArr)+"; ",n="schema"+o):n=s;var f="maximum"==t,d=f?"exclusiveMaximum":"exclusiveMinimum",m=e.schema[d],g=e.opts.$data&&m&&m.$data,E=f?"<":">",y=f?">":"<",T=void 0;if(!p&&"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 v=e.util.getData(m.$data,a,e.dataPathArr),b="exclusive"+o,_="exclType"+o,A="exclIsNumber"+o,S="' + "+(x="op"+o)+" + '";i+=" var schemaExcl"+o+" = "+v+"; ",i+=" var "+b+"; var "+_+" = typeof "+(v="schemaExcl"+o)+"; if ("+_+" != 'boolean' && "+_+" != 'undefined' && "+_+" != 'number') { ";var k;T=d;(k=k||[]).push(i),i="",!1!==e.createErrors?(i+=" { keyword: '"+(T||"_exclusiveLimit")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , 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: "+h+" "),i+=" } "):i+=" {} ";var C=i;i=k.pop(),!e.compositeRule&&u?e.async?i+=" throw new ValidationError(["+C+"]); ":i+=" validate.errors = ["+C+"]; return false; ":i+=" var err = "+C+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+=" } else if ( ",p&&(i+=" ("+n+" !== undefined && typeof "+n+" != 'number') || "),i+=" "+_+" == 'number' ? ( ("+b+" = "+n+" === undefined || "+v+" "+E+"= "+n+") ? "+h+" "+y+"= "+v+" : "+h+" "+y+" "+n+" ) : ( ("+b+" = "+v+" === true) ? "+h+" "+y+"= "+n+" : "+h+" "+y+" "+n+" ) || "+h+" !== "+h+") { var op"+o+" = "+b+" ? '"+E+"' : '"+E+"='; ",void 0===s&&(T=d,l=e.errSchemaPath+"/"+d,n=v,p=g)}else{S=E;if((A="number"==typeof m)&&p){var x="'"+S+"'";i+=" if ( ",p&&(i+=" ("+n+" !== undefined && typeof "+n+" != 'number') || "),i+=" ( "+n+" === undefined || "+m+" "+E+"= "+n+" ? "+h+" "+y+"= "+m+" : "+h+" "+y+" "+n+" ) || "+h+" !== "+h+") { "}else{A&&void 0===s?(b=!0,T=d,l=e.errSchemaPath+"/"+d,n=m,y+="="):(A&&(n=Math[f?"min":"max"](m,s)),m===(!A||n)?(b=!0,T=d,l=e.errSchemaPath+"/"+d,y+="="):(b=!1,S+="="));x="'"+S+"'";i+=" if ( ",p&&(i+=" ("+n+" !== undefined && typeof "+n+" != 'number') || "),i+=" "+h+" "+y+" "+n+" || "+h+" !== "+h+") { "}}T=T||t,(k=k||[]).push(i),i="",!1!==e.createErrors?(i+=" { keyword: '"+(T||"_limit")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { comparison: "+x+", limit: "+n+", exclusive: "+b+" } ",!1!==e.opts.messages&&(i+=" , message: 'should be "+S+" ",i+=p?"' + "+n:n+"'"),e.opts.verbose&&(i+=" , schema: ",i+=p?"validate.schema"+c:""+s,i+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+h+" "),i+=" } "):i+=" {} ";C=i;return i=k.pop(),!e.compositeRule&&u?e.async?i+=" throw new ValidationError(["+C+"]); ":i+=" validate.errors = ["+C+"]; return false; ":i+=" var err = "+C+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+=" } ",u&&(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),l=e.errSchemaPath+"/"+t,u=!e.opts.allErrors,h="data"+(a||""),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,!p&&"number"!=typeof s)throw new Error(t+" must be number");i+="if ( ",p&&(i+=" ("+n+" !== undefined && typeof "+n+" != 'number') || "),i+=" "+h+".length "+("maxItems"==t?">":"<")+" "+n+") { ";var f=t,d=d||[];d.push(i),i="",!1!==e.createErrors?(i+=" { keyword: '"+(f||"_limitItems")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { limit: "+n+" } ",!1!==e.opts.messages&&(i+=" , message: 'should NOT have ",i+="maxItems"==t?"more":"fewer",i+=" than ",i+=p?"' + "+n+" + '":""+s,i+=" items' "),e.opts.verbose&&(i+=" , schema: ",i+=p?"validate.schema"+c:""+s,i+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+h+" "),i+=" } "):i+=" {} ";var m=i;return i=d.pop(),!e.compositeRule&&u?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+="} ",u&&(i+=" else { "),i},Qt=function(e,t,r){var n,i=" ",o=e.level,a=e.dataLevel,s=e.schema[t],c=e.schemaPath+e.util.getProperty(t),l=e.errSchemaPath+"/"+t,u=!e.opts.allErrors,h="data"+(a||""),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,!p&&"number"!=typeof s)throw new Error(t+" must be number");var f="maxLength"==t?">":"<";i+="if ( ",p&&(i+=" ("+n+" !== undefined && typeof "+n+" != 'number') || "),!1===e.opts.unicode?i+=" "+h+".length ":i+=" ucs2length("+h+") ",i+=" "+f+" "+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(l)+" , params: { limit: "+n+" } ",!1!==e.opts.messages&&(i+=" , message: 'should NOT be ",i+="maxLength"==t?"longer":"shorter",i+=" than ",i+=p?"' + "+n+" + '":""+s,i+=" characters' "),e.opts.verbose&&(i+=" , schema: ",i+=p?"validate.schema"+c:""+s,i+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+h+" "),i+=" } "):i+=" {} ";var g=i;return i=m.pop(),!e.compositeRule&&u?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+="} ",u&&(i+=" else { "),i},Wt=function(e,t,r){var n,i=" ",o=e.level,a=e.dataLevel,s=e.schema[t],c=e.schemaPath+e.util.getProperty(t),l=e.errSchemaPath+"/"+t,u=!e.opts.allErrors,h="data"+(a||""),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,!p&&"number"!=typeof s)throw new Error(t+" must be number");i+="if ( ",p&&(i+=" ("+n+" !== undefined && typeof "+n+" != 'number') || "),i+=" Object.keys("+h+").length "+("maxProperties"==t?">":"<")+" "+n+") { ";var f=t,d=d||[];d.push(i),i="",!1!==e.createErrors?(i+=" { keyword: '"+(f||"_limitProperties")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { limit: "+n+" } ",!1!==e.opts.messages&&(i+=" , message: 'should NOT have ",i+="maxProperties"==t?"more":"fewer",i+=" than ",i+=p?"' + "+n+" + '":""+s,i+=" properties' "),e.opts.verbose&&(i+=" , schema: ",i+=p?"validate.schema"+c:""+s,i+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+h+" "),i+=" } "):i+=" {} ";var m=i;return i=d.pop(),!e.compositeRule&&u?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+="} ",u&&(i+=" else { "),i},Yt={$ref:function(e,t,r){var n,i,o=" ",a=e.level,s=e.dataLevel,c=e.schema[t],l=e.errSchemaPath+"/"+t,u=!e.opts.allErrors,h="data"+(s||""),p="valid"+a;if("#"==c||"#/"==c)e.isRoot?(n=e.async,i="validate"):(n=!0===e.root.schema.$async,i="root.refVal[0]");else{var f=e.resolveRef(e.baseId,c,e.isRoot);if(void 0===f){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(l)+" , 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: "+h+" "),o+=" } "):o+=" {} ";var m=o;o=y.pop(),!e.compositeRule&&u?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++; ",u&&(o+=" if (false) { ")}else{if("ignore"!=e.opts.missingRefs)throw new e.MissingRefError(e.baseId,c,d);e.logger.warn(d),u&&(o+=" if (true) { ")}}else if(f.inline){var g=e.util.copy(e);g.level++;var E="valid"+g.level;g.schema=f.schema,g.schemaPath="",g.errSchemaPath=c,o+=" "+e.validate(g).replace(/validate\.schema/g,f.code)+" ",u&&(o+=" if ("+E+") { ")}else n=!0===f.$async||e.async&&!1!==f.$async,i=f.code}if(i){var y;(y=y||[]).push(o),o="",e.opts.passContext?o+=" "+i+".call(this, ":o+=" "+i+"( ",o+=" "+h+", (dataPath || '')",'""'!=e.errorPath&&(o+=" + "+e.errorPath);var T=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");u&&(o+=" var "+p+"; "),o+=" try { await "+T+"; ",u&&(o+=" "+p+" = 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; ",u&&(o+=" "+p+" = false; "),o+=" } ",u&&(o+=" if ("+p+") { ")}else o+=" if (!"+T+") { if (vErrors === null) vErrors = "+i+".errors; else vErrors = vErrors.concat("+i+".errors); errors = vErrors.length; } ",u&&(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),l="";c.level++;var u="valid"+c.level,h=c.baseId,p=!0,f=i;if(f)for(var d,m=-1,g=f.length-1;m<g;)d=f[m+=1],(e.opts.strictKeywords?"object"==typeof d&&Object.keys(d).length>0||!1===d:e.util.schemaHasRules(d,e.RULES.all))&&(p=!1,c.schema=d,c.schemaPath=o+"["+m+"]",c.errSchemaPath=a+"/"+m,n+=" "+e.validate(c)+" ",c.baseId=h,s&&(n+=" if ("+u+") { ",l+="}"));return s&&(n+=p?" if (true) { ":" "+l.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,l=!e.opts.allErrors,u="data"+(o||""),h="valid"+i,p="errs__"+i,f=e.util.copy(e),d="";f.level++;var m="valid"+f.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 E=f.baseId;n+=" var "+p+" = errors; var "+h+" = false; ";var y=e.compositeRule;e.compositeRule=f.compositeRule=!0;var T=a;if(T)for(var v,b=-1,_=T.length-1;b<_;)v=T[b+=1],f.schema=v,f.schemaPath=s+"["+b+"]",f.errSchemaPath=c+"/"+b,n+=" "+e.validate(f)+" ",f.baseId=E,n+=" "+h+" = "+h+" || "+m+"; if (!"+h+") { ",d+="}";e.compositeRule=f.compositeRule=y,n+=" "+d+" if (!"+h+") { 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: "+u+" "),n+=" } "):n+=" {} ",n+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&l&&(e.async?n+=" throw new ValidationError(vErrors); ":n+=" validate.errors = vErrors; return false; "),n+=" } else { errors = "+p+"; if (vErrors !== null) { if ("+p+") vErrors.length = "+p+"; else vErrors = null; } ",e.opts.allErrors&&(n+=" } ")}else l&&(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,l=!e.opts.allErrors,u="data"+(o||""),h="valid"+i,p=e.opts.$data&&a&&a.$data;p&&(n+=" var schema"+i+" = "+e.util.getData(a.$data,o,e.dataPathArr)+"; "),p||(n+=" var schema"+i+" = validate.schema"+s+";"),n+="var "+h+" = equal("+u+", schema"+i+"); if (!"+h+") { ";var f=f||[];f.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: "+u+" "),n+=" } "):n+=" {} ";var d=n;return n=f.pop(),!e.compositeRule&&l?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+=" }",l&&(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,l=!e.opts.allErrors,u="data"+(o||""),h="valid"+i,p="errs__"+i,f=e.util.copy(e);f.level++;var d="valid"+f.level,m="i"+i,g=f.dataLevel=e.dataLevel+1,E="data"+g,y=e.baseId,T=e.opts.strictKeywords?"object"==typeof a&&Object.keys(a).length>0||!1===a:e.util.schemaHasRules(a,e.RULES.all);if(n+="var "+p+" = errors;var "+h+";",T){var v=e.compositeRule;e.compositeRule=f.compositeRule=!0,f.schema=a,f.schemaPath=s,f.errSchemaPath=c,n+=" var "+d+" = false; for (var "+m+" = 0; "+m+" < "+u+".length; "+m+"++) { ",f.errorPath=e.util.getPathExpr(e.errorPath,m,e.opts.jsonPointers,!0);var b=u+"["+m+"]";f.dataPathArr[g]=m;var _=e.validate(f);f.baseId=y,e.util.varOccurences(_,E)<2?n+=" "+e.util.varReplace(_,E,b)+" ":n+=" var "+E+" = "+b+"; "+_+" ",n+=" if ("+d+") break; } ",e.compositeRule=f.compositeRule=v,n+=" if (!"+d+") {"}else n+=" if ("+u+".length == 0) {";var A=A||[];A.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: "+u+" "),n+=" } "):n+=" {} ";var S=n;return n=A.pop(),!e.compositeRule&&l?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 { ",T&&(n+=" errors = "+p+"; if (vErrors !== null) { if ("+p+") vErrors.length = "+p+"; 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,l=!e.opts.allErrors,u="data"+(o||""),h="errs__"+i,p=e.util.copy(e),f="";p.level++;var d="valid"+p.level,m={},g={},E=e.opts.ownProperties;for(b in a)if("__proto__"!=b){var y=a[b],T=Array.isArray(y)?g:m;T[b]=y}n+="var "+h+" = errors;";var v=e.errorPath;for(var b in n+="var missing"+i+";",g)if((T=g[b]).length){if(n+=" if ( "+u+e.util.getProperty(b)+" !== undefined ",E&&(n+=" && Object.prototype.hasOwnProperty.call("+u+", '"+e.util.escapeQuotes(b)+"') "),l){n+=" && ( ";var _=T;if(_)for(var A=-1,S=_.length-1;A<S;){N=_[A+=1],A&&(n+=" || "),n+=" ( ( "+(L=u+(I=e.util.getProperty(N)))+" === undefined ",E&&(n+=" || ! Object.prototype.hasOwnProperty.call("+u+", '"+e.util.escapeQuotes(N)+"') "),n+=") && (missing"+i+" = "+e.util.toQuotedString(e.opts.jsonPointers?N:I)+") ) "}n+=")) { ";var k="missing"+i,C="' + "+k+" + '";e.opts._errorDataPathProperty&&(e.errorPath=e.opts.jsonPointers?e.util.getPathExpr(v,k,!0):v+" + "+k);var x=x||[];x.push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'dependencies' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { property: '"+e.util.escapeQuotes(b)+"', missingProperty: '"+C+"', depsCount: "+T.length+", deps: '"+e.util.escapeQuotes(1==T.length?T[0]:T.join(", "))+"' } ",!1!==e.opts.messages&&(n+=" , message: 'should have ",1==T.length?n+="property "+e.util.escapeQuotes(T[0]):n+="properties "+e.util.escapeQuotes(T.join(", ")),n+=" when property "+e.util.escapeQuotes(b)+" is present' "),e.opts.verbose&&(n+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),n+=" } "):n+=" {} ";var w=n;n=x.pop(),!e.compositeRule&&l?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++; "}else{n+=" ) { ";var O=T;if(O)for(var N,P=-1,R=O.length-1;P<R;){N=O[P+=1];var I=e.util.getProperty(N),L=(C=e.util.escapeQuotes(N),u+I);e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPath(v,N,e.opts.jsonPointers)),n+=" if ( "+L+" === undefined ",E&&(n+=" || ! Object.prototype.hasOwnProperty.call("+u+", '"+e.util.escapeQuotes(N)+"') "),n+=") { var err = ",!1!==e.createErrors?(n+=" { keyword: 'dependencies' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { property: '"+e.util.escapeQuotes(b)+"', missingProperty: '"+C+"', depsCount: "+T.length+", deps: '"+e.util.escapeQuotes(1==T.length?T[0]:T.join(", "))+"' } ",!1!==e.opts.messages&&(n+=" , message: 'should have ",1==T.length?n+="property "+e.util.escapeQuotes(T[0]):n+="properties "+e.util.escapeQuotes(T.join(", ")),n+=" when property "+e.util.escapeQuotes(b)+" is present' "),e.opts.verbose&&(n+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),n+=" } "):n+=" {} ",n+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } "}}n+=" } ",l&&(f+="}",n+=" else { ")}e.errorPath=v;var D=p.baseId;for(var b in m){y=m[b];(e.opts.strictKeywords?"object"==typeof y&&Object.keys(y).length>0||!1===y:e.util.schemaHasRules(y,e.RULES.all))&&(n+=" "+d+" = true; if ( "+u+e.util.getProperty(b)+" !== undefined ",E&&(n+=" && Object.prototype.hasOwnProperty.call("+u+", '"+e.util.escapeQuotes(b)+"') "),n+=") { ",p.schema=y,p.schemaPath=s+e.util.getProperty(b),p.errSchemaPath=c+"/"+e.util.escapeFragment(b),n+=" "+e.validate(p)+" ",p.baseId=D,n+=" } ",l&&(n+=" if ("+d+") { ",f+="}"))}return l&&(n+=" "+f+" if ("+h+" == 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,l=!e.opts.allErrors,u="data"+(o||""),h="valid"+i,p=e.opts.$data&&a&&a.$data;p&&(n+=" var schema"+i+" = "+e.util.getData(a.$data,o,e.dataPathArr)+"; ");var f="i"+i,d="schema"+i;p||(n+=" var "+d+" = validate.schema"+s+";"),n+="var "+h+";",p&&(n+=" if (schema"+i+" === undefined) "+h+" = true; else if (!Array.isArray(schema"+i+")) "+h+" = false; else {"),n+=h+" = false;for (var "+f+"=0; "+f+"<"+d+".length; "+f+"++) if (equal("+u+", "+d+"["+f+"])) { "+h+" = true; break; }",p&&(n+=" } "),n+=" if (!"+h+") { ";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: "+u+" "),n+=" } "):n+=" {} ";var g=n;return n=m.pop(),!e.compositeRule&&l?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+=" }",l&&(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,l=!e.opts.allErrors,u="data"+(o||"");if(!1===e.opts.format)return l&&(n+=" if (true) { "),n;var h,p=e.opts.$data&&a&&a.$data;p?(n+=" var schema"+i+" = "+e.util.getData(a.$data,o,e.dataPathArr)+"; ",h="schema"+i):h=a;var f=e.opts.unknownFormats,d=Array.isArray(f);if(p){n+=" var "+(m="format"+i)+" = formats["+h+"]; var "+(g="isObject"+i)+" = typeof "+m+" == 'object' && !("+m+" instanceof RegExp) && "+m+".validate; var "+(E="formatType"+i)+" = "+g+" && "+m+".type || 'string'; if ("+g+") { ",e.async&&(n+=" var async"+i+" = "+m+".async; "),n+=" "+m+" = "+m+".validate; } if ( ",p&&(n+=" ("+h+" !== undefined && typeof "+h+" != 'string') || "),n+=" (","ignore"!=f&&(n+=" ("+h+" && !"+m+" ",d&&(n+=" && self._opts.unknownFormats.indexOf("+h+") == -1 "),n+=") || "),n+=" ("+m+" && "+E+" == '"+r+"' && !(typeof "+m+" == 'function' ? ",e.async?n+=" (async"+i+" ? await "+m+"("+u+") : "+m+"("+u+")) ":n+=" "+m+"("+u+") ",n+=" : "+m+".test("+u+"))))) {"}else{var m;if(!(m=e.formats[a])){if("ignore"==f)return e.logger.warn('unknown format "'+a+'" ignored in schema at path "'+e.errSchemaPath+'"'),l&&(n+=" if (true) { "),n;if(d&&f.indexOf(a)>=0)return l&&(n+=" if (true) { "),n;throw new Error('unknown format "'+a+'" is used in schema at path "'+e.errSchemaPath+'"')}var g,E=(g="object"==typeof m&&!(m instanceof RegExp)&&m.validate)&&m.type||"string";if(g){var y=!0===m.async;m=m.validate}if(E!=r)return l&&(n+=" if (true) { "),n;if(y){if(!e.async)throw new Error("async format in sync schema");n+=" if (!(await "+(T="formats"+e.util.getProperty(a)+".validate")+"("+u+"))) { "}else{n+=" if (! ";var T="formats"+e.util.getProperty(a);g&&(T+=".validate"),n+="function"==typeof m?" "+T+"("+u+") ":" "+T+".test("+u+") ",n+=") { "}}var v=v||[];v.push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'format' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { format: ",n+=p?""+h:""+e.util.toQuotedString(a),n+=" } ",!1!==e.opts.messages&&(n+=" , message: 'should match format \"",n+=p?"' + "+h+" + '":""+e.util.escapeQuotes(a),n+="\"' "),e.opts.verbose&&(n+=" , schema: ",n+=p?"validate.schema"+s:""+e.util.toQuotedString(a),n+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),n+=" } "):n+=" {} ";var b=n;return n=v.pop(),!e.compositeRule&&l?e.async?n+=" throw new ValidationError(["+b+"]); ":n+=" validate.errors = ["+b+"]; return false; ":n+=" var err = "+b+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" } ",l&&(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,l=!e.opts.allErrors,u="data"+(o||""),h="valid"+i,p="errs__"+i,f=e.util.copy(e);f.level++;var d="valid"+f.level,m=e.schema.then,g=e.schema.else,E=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)),T=f.baseId;if(E||y){var v;f.createErrors=!1,f.schema=a,f.schemaPath=s,f.errSchemaPath=c,n+=" var "+p+" = errors; var "+h+" = true; ";var b=e.compositeRule;e.compositeRule=f.compositeRule=!0,n+=" "+e.validate(f)+" ",f.baseId=T,f.createErrors=!0,n+=" errors = "+p+"; if (vErrors !== null) { if ("+p+") vErrors.length = "+p+"; else vErrors = null; } ",e.compositeRule=f.compositeRule=b,E?(n+=" if ("+d+") { ",f.schema=e.schema.then,f.schemaPath=e.schemaPath+".then",f.errSchemaPath=e.errSchemaPath+"/then",n+=" "+e.validate(f)+" ",f.baseId=T,n+=" "+h+" = "+d+"; ",E&&y?n+=" var "+(v="ifClause"+i)+" = 'then'; ":v="'then'",n+=" } ",y&&(n+=" else { ")):n+=" if (!"+d+") { ",y&&(f.schema=e.schema.else,f.schemaPath=e.schemaPath+".else",f.errSchemaPath=e.errSchemaPath+"/else",n+=" "+e.validate(f)+" ",f.baseId=T,n+=" "+h+" = "+d+"; ",E&&y?n+=" var "+(v="ifClause"+i)+" = 'else'; ":v="'else'",n+=" } "),n+=" if (!"+h+") { var err = ",!1!==e.createErrors?(n+=" { keyword: 'if' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { failingKeyword: "+v+" } ",!1!==e.opts.messages&&(n+=" , message: 'should match \"' + "+v+" + '\" schema' "),e.opts.verbose&&(n+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),n+=" } "):n+=" {} ",n+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&l&&(e.async?n+=" throw new ValidationError(vErrors); ":n+=" validate.errors = vErrors; return false; "),n+=" } ",l&&(n+=" else { ")}else l&&(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,l=!e.opts.allErrors,u="data"+(o||""),h="valid"+i,p="errs__"+i,f=e.util.copy(e),d="";f.level++;var m="valid"+f.level,g="i"+i,E=f.dataLevel=e.dataLevel+1,y="data"+E,T=e.baseId;if(n+="var "+p+" = errors;var "+h+";",Array.isArray(a)){var v=e.schema.additionalItems;if(!1===v){n+=" "+h+" = "+u+".length <= "+a.length+"; ";var b=c;c=e.errSchemaPath+"/additionalItems",n+=" if (!"+h+") { ";var _=_||[];_.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: "+u+" "),n+=" } "):n+=" {} ";var A=n;n=_.pop(),!e.compositeRule&&l?e.async?n+=" throw new ValidationError(["+A+"]); ":n+=" validate.errors = ["+A+"]; return false; ":n+=" var err = "+A+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" } ",c=b,l&&(d+="}",n+=" else { ")}var S=a;if(S)for(var k,C=-1,x=S.length-1;C<x;)if(k=S[C+=1],e.opts.strictKeywords?"object"==typeof k&&Object.keys(k).length>0||!1===k:e.util.schemaHasRules(k,e.RULES.all)){n+=" "+m+" = true; if ("+u+".length > "+C+") { ";var w=u+"["+C+"]";f.schema=k,f.schemaPath=s+"["+C+"]",f.errSchemaPath=c+"/"+C,f.errorPath=e.util.getPathExpr(e.errorPath,C,e.opts.jsonPointers,!0),f.dataPathArr[E]=C;var O=e.validate(f);f.baseId=T,e.util.varOccurences(O,y)<2?n+=" "+e.util.varReplace(O,y,w)+" ":n+=" var "+y+" = "+w+"; "+O+" ",n+=" } ",l&&(n+=" if ("+m+") { ",d+="}")}if("object"==typeof v&&(e.opts.strictKeywords?"object"==typeof v&&Object.keys(v).length>0||!1===v:e.util.schemaHasRules(v,e.RULES.all))){f.schema=v,f.schemaPath=e.schemaPath+".additionalItems",f.errSchemaPath=e.errSchemaPath+"/additionalItems",n+=" "+m+" = true; if ("+u+".length > "+a.length+") { for (var "+g+" = "+a.length+"; "+g+" < "+u+".length; "+g+"++) { ",f.errorPath=e.util.getPathExpr(e.errorPath,g,e.opts.jsonPointers,!0);w=u+"["+g+"]";f.dataPathArr[E]=g;O=e.validate(f);f.baseId=T,e.util.varOccurences(O,y)<2?n+=" "+e.util.varReplace(O,y,w)+" ":n+=" var "+y+" = "+w+"; "+O+" ",l&&(n+=" if (!"+m+") break; "),n+=" } } ",l&&(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)){f.schema=a,f.schemaPath=s,f.errSchemaPath=c,n+=" for (var "+g+" = 0; "+g+" < "+u+".length; "+g+"++) { ",f.errorPath=e.util.getPathExpr(e.errorPath,g,e.opts.jsonPointers,!0);w=u+"["+g+"]";f.dataPathArr[E]=g;O=e.validate(f);f.baseId=T,e.util.varOccurences(O,y)<2?n+=" "+e.util.varReplace(O,y,w)+" ":n+=" var "+y+" = "+w+"; "+O+" ",l&&(n+=" if (!"+m+") break; "),n+=" }"}return l&&(n+=" "+d+" if ("+p+" == errors) {"),n},maximum:$t,minimum:$t,maxItems:Vt,minItems:Vt,maxLength:Qt,minLength:Qt,maxProperties:Wt,minProperties:Wt,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),l=e.errSchemaPath+"/"+t,u=!e.opts.allErrors,h="data"+(a||""),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,!p&&"number"!=typeof s)throw new Error(t+" must be number");i+="var division"+o+";if (",p&&(i+=" "+n+" !== undefined && ( typeof "+n+" != 'number' || "),i+=" (division"+o+" = "+h+" / "+n+", ",e.opts.multipleOfPrecision?i+=" Math.abs(Math.round(division"+o+") - division"+o+") > 1e-"+e.opts.multipleOfPrecision+" ":i+=" division"+o+" !== parseInt(division"+o+") ",i+=" ) ",p&&(i+=" ) "),i+=" ) { ";var f=f||[];f.push(i),i="",!1!==e.createErrors?(i+=" { keyword: 'multipleOf' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { multipleOf: "+n+" } ",!1!==e.opts.messages&&(i+=" , message: 'should be multiple of ",i+=p?"' + "+n:n+"'"),e.opts.verbose&&(i+=" , schema: ",i+=p?"validate.schema"+c:""+s,i+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+h+" "),i+=" } "):i+=" {} ";var d=i;return i=f.pop(),!e.compositeRule&&u?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+="} ",u&&(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,l=!e.opts.allErrors,u="data"+(o||""),h="errs__"+i,p=e.util.copy(e);p.level++;var f="valid"+p.level;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+=" var "+h+" = errors; ";var d,m=e.compositeRule;e.compositeRule=p.compositeRule=!0,p.createErrors=!1,p.opts.allErrors&&(d=p.opts.allErrors,p.opts.allErrors=!1),n+=" "+e.validate(p)+" ",p.createErrors=!0,d&&(p.opts.allErrors=d),e.compositeRule=p.compositeRule=m,n+=" if ("+f+") { ";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: "+u+" "),n+=" } "):n+=" {} ";var E=n;n=g.pop(),!e.compositeRule&&l?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+=" } else { errors = "+h+"; if (vErrors !== null) { if ("+h+") vErrors.length = "+h+"; 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: "+u+" "),n+=" } "):n+=" {} ",n+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",l&&(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,l=!e.opts.allErrors,u="data"+(o||""),h="valid"+i,p="errs__"+i,f=e.util.copy(e),d="";f.level++;var m="valid"+f.level,g=f.baseId,E="prevValid"+i,y="passingSchemas"+i;n+="var "+p+" = errors , "+E+" = false , "+h+" = false , "+y+" = null; ";var T=e.compositeRule;e.compositeRule=f.compositeRule=!0;var v=a;if(v)for(var b,_=-1,A=v.length-1;_<A;)b=v[_+=1],(e.opts.strictKeywords?"object"==typeof b&&Object.keys(b).length>0||!1===b:e.util.schemaHasRules(b,e.RULES.all))?(f.schema=b,f.schemaPath=s+"["+_+"]",f.errSchemaPath=c+"/"+_,n+=" "+e.validate(f)+" ",f.baseId=g):n+=" var "+m+" = true; ",_&&(n+=" if ("+m+" && "+E+") { "+h+" = false; "+y+" = ["+y+", "+_+"]; } else { ",d+="}"),n+=" if ("+m+") { "+h+" = "+E+" = true; "+y+" = "+_+"; }";return e.compositeRule=f.compositeRule=T,n+=d+"if (!"+h+") { 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: "+u+" "),n+=" } "):n+=" {} ",n+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&l&&(e.async?n+=" throw new ValidationError(vErrors); ":n+=" validate.errors = vErrors; return false; "),n+="} else { errors = "+p+"; if (vErrors !== null) { if ("+p+") vErrors.length = "+p+"; 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),l=e.errSchemaPath+"/"+t,u=!e.opts.allErrors,h="data"+(a||""),p=e.opts.$data&&s&&s.$data;p?(i+=" var schema"+o+" = "+e.util.getData(s.$data,a,e.dataPathArr)+"; ",n="schema"+o):n=s,i+="if ( ",p&&(i+=" ("+n+" !== undefined && typeof "+n+" != 'string') || "),i+=" !"+(p?"(new RegExp("+n+"))":e.usePattern(s))+".test("+h+") ) { ";var f=f||[];f.push(i),i="",!1!==e.createErrors?(i+=" { keyword: 'pattern' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { pattern: ",i+=p?""+n:""+e.util.toQuotedString(s),i+=" } ",!1!==e.opts.messages&&(i+=" , message: 'should match pattern \"",i+=p?"' + "+n+" + '":""+e.util.escapeQuotes(s),i+="\"' "),e.opts.verbose&&(i+=" , schema: ",i+=p?"validate.schema"+c:""+e.util.toQuotedString(s),i+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+h+" "),i+=" } "):i+=" {} ";var d=i;return i=f.pop(),!e.compositeRule&&u?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+="} ",u&&(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,l=!e.opts.allErrors,u="data"+(o||""),h="errs__"+i,p=e.util.copy(e),f="";p.level++;var d="valid"+p.level,m="key"+i,g="idx"+i,E=p.dataLevel=e.dataLevel+1,y="data"+E,T="dataProperties"+i,v=Object.keys(a||{}).filter(I),b=e.schema.patternProperties||{},_=Object.keys(b).filter(I),A=e.schema.additionalProperties,S=v.length||_.length,k=!1===A,C="object"==typeof A&&Object.keys(A).length,x=e.opts.removeAdditional,w=k||C||x,O=e.opts.ownProperties,N=e.baseId,P=e.schema.required;if(P&&(!e.opts.$data||!P.$data)&&P.length<e.opts.loopRequired)var R=e.util.toHash(P);function I(e){return"__proto__"!==e}if(n+="var "+h+" = errors;var "+d+" = true;",O&&(n+=" var "+T+" = undefined;"),w){if(n+=O?" "+T+" = "+T+" || Object.keys("+u+"); for (var "+g+"=0; "+g+"<"+T+".length; "+g+"++) { var "+m+" = "+T+"["+g+"]; ":" for (var "+m+" in "+u+") { ",S){if(n+=" var isAdditional"+i+" = !(false ",v.length)if(v.length>8)n+=" || validate.schema"+s+".hasOwnProperty("+m+") ";else{var L=v;if(L)for(var D=-1,M=L.length-1;D<M;)W=L[D+=1],n+=" || "+m+" == "+e.util.toQuotedString(W)+" "}if(_.length){var F=_;if(F)for(var H=-1,B=F.length-1;H<B;)oe=F[H+=1],n+=" || "+e.usePattern(oe)+".test("+m+") "}n+=" ); if (isAdditional"+i+") { "}if("all"==x)n+=" delete "+u+"["+m+"]; ";else{var U=e.errorPath,j="' + "+m+" + '";if(e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPathExpr(e.errorPath,m,e.opts.jsonPointers)),k)if(x)n+=" delete "+u+"["+m+"]; ";else{n+=" "+d+" = false; ";var q=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: '"+j+"' } ",!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: "+u+" "),n+=" } "):n+=" {} ";var z=n;n=re.pop(),!e.compositeRule&&l?e.async?n+=" throw new ValidationError(["+z+"]); ":n+=" validate.errors = ["+z+"]; return false; ":n+=" var err = "+z+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",c=q,l&&(n+=" break; ")}else if(C)if("failing"==x){n+=" var "+h+" = errors; ";var G=e.compositeRule;e.compositeRule=p.compositeRule=!0,p.schema=A,p.schemaPath=e.schemaPath+".additionalProperties",p.errSchemaPath=e.errSchemaPath+"/additionalProperties",p.errorPath=e.opts._errorDataPathProperty?e.errorPath:e.util.getPathExpr(e.errorPath,m,e.opts.jsonPointers);var K=u+"["+m+"]";p.dataPathArr[E]=m;var $=e.validate(p);p.baseId=N,e.util.varOccurences($,y)<2?n+=" "+e.util.varReplace($,y,K)+" ":n+=" var "+y+" = "+K+"; "+$+" ",n+=" if (!"+d+") { errors = "+h+"; if (validate.errors !== null) { if (errors) validate.errors.length = errors; else validate.errors = null; } delete "+u+"["+m+"]; } ",e.compositeRule=p.compositeRule=G}else{p.schema=A,p.schemaPath=e.schemaPath+".additionalProperties",p.errSchemaPath=e.errSchemaPath+"/additionalProperties",p.errorPath=e.opts._errorDataPathProperty?e.errorPath:e.util.getPathExpr(e.errorPath,m,e.opts.jsonPointers);K=u+"["+m+"]";p.dataPathArr[E]=m;$=e.validate(p);p.baseId=N,e.util.varOccurences($,y)<2?n+=" "+e.util.varReplace($,y,K)+" ":n+=" var "+y+" = "+K+"; "+$+" ",l&&(n+=" if (!"+d+") break; ")}e.errorPath=U}S&&(n+=" } "),n+=" } ",l&&(n+=" if ("+d+") { ",f+="}")}var V=e.opts.useDefaults&&!e.compositeRule;if(v.length){var Q=v;if(Q)for(var W,Y=-1,X=Q.length-1;Y<X;){var J=a[W=Q[Y+=1]];if(e.opts.strictKeywords?"object"==typeof J&&Object.keys(J).length>0||!1===J:e.util.schemaHasRules(J,e.RULES.all)){var Z=e.util.getProperty(W),ee=(K=u+Z,V&&void 0!==J.default);p.schema=J,p.schemaPath=s+Z,p.errSchemaPath=c+"/"+e.util.escapeFragment(W),p.errorPath=e.util.getPath(e.errorPath,W,e.opts.jsonPointers),p.dataPathArr[E]=e.util.toQuotedString(W);$=e.validate(p);if(p.baseId=N,e.util.varOccurences($,y)<2){$=e.util.varReplace($,y,K);var te=K}else{te=y;n+=" var "+y+" = "+K+"; "}if(ee)n+=" "+$+" ";else{if(R&&R[W]){n+=" if ( "+te+" === undefined ",O&&(n+=" || ! Object.prototype.hasOwnProperty.call("+u+", '"+e.util.escapeQuotes(W)+"') "),n+=") { "+d+" = false; ";U=e.errorPath,q=c;var re,ne=e.util.escapeQuotes(W);e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPath(U,W,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: "+u+" "),n+=" } "):n+=" {} ";z=n;n=re.pop(),!e.compositeRule&&l?e.async?n+=" throw new ValidationError(["+z+"]); ":n+=" validate.errors = ["+z+"]; return false; ":n+=" var err = "+z+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",c=q,e.errorPath=U,n+=" } else { "}else l?(n+=" if ( "+te+" === undefined ",O&&(n+=" || ! Object.prototype.hasOwnProperty.call("+u+", '"+e.util.escapeQuotes(W)+"') "),n+=") { "+d+" = true; } else { "):(n+=" if ("+te+" !== undefined ",O&&(n+=" && Object.prototype.hasOwnProperty.call("+u+", '"+e.util.escapeQuotes(W)+"') "),n+=" ) { ");n+=" "+$+" } "}}l&&(n+=" if ("+d+") { ",f+="}")}}if(_.length){var ie=_;if(ie)for(var oe,ae=-1,se=ie.length-1;ae<se;){J=b[oe=ie[ae+=1]];if(e.opts.strictKeywords?"object"==typeof J&&Object.keys(J).length>0||!1===J:e.util.schemaHasRules(J,e.RULES.all)){p.schema=J,p.schemaPath=e.schemaPath+".patternProperties"+e.util.getProperty(oe),p.errSchemaPath=e.errSchemaPath+"/patternProperties/"+e.util.escapeFragment(oe),n+=O?" "+T+" = "+T+" || Object.keys("+u+"); for (var "+g+"=0; "+g+"<"+T+".length; "+g+"++) { var "+m+" = "+T+"["+g+"]; ":" for (var "+m+" in "+u+") { ",n+=" if ("+e.usePattern(oe)+".test("+m+")) { ",p.errorPath=e.util.getPathExpr(e.errorPath,m,e.opts.jsonPointers);K=u+"["+m+"]";p.dataPathArr[E]=m;$=e.validate(p);p.baseId=N,e.util.varOccurences($,y)<2?n+=" "+e.util.varReplace($,y,K)+" ":n+=" var "+y+" = "+K+"; "+$+" ",l&&(n+=" if (!"+d+") break; "),n+=" } ",l&&(n+=" else "+d+" = true; "),n+=" } ",l&&(n+=" if ("+d+") { ",f+="}")}}}return l&&(n+=" "+f+" if ("+h+" == 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,l=!e.opts.allErrors,u="data"+(o||""),h="errs__"+i,p=e.util.copy(e);p.level++;var f="valid"+p.level;if(n+="var "+h+" = errors;",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;var d="key"+i,m="idx"+i,g="i"+i,E="' + "+d+" + '",y="data"+(p.dataLevel=e.dataLevel+1),T="dataProperties"+i,v=e.opts.ownProperties,b=e.baseId;v&&(n+=" var "+T+" = undefined; "),n+=v?" "+T+" = "+T+" || Object.keys("+u+"); for (var "+m+"=0; "+m+"<"+T+".length; "+m+"++) { var "+d+" = "+T+"["+m+"]; ":" for (var "+d+" in "+u+") { ",n+=" var startErrs"+i+" = errors; ";var _=d,A=e.compositeRule;e.compositeRule=p.compositeRule=!0;var S=e.validate(p);p.baseId=b,e.util.varOccurences(S,y)<2?n+=" "+e.util.varReplace(S,y,_)+" ":n+=" var "+y+" = "+_+"; "+S+" ",e.compositeRule=p.compositeRule=A,n+=" if (!"+f+") { 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: '"+E+"' } ",!1!==e.opts.messages&&(n+=" , message: 'property name \\'"+E+"\\' is invalid' "),e.opts.verbose&&(n+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),n+=" } "):n+=" {} ",n+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&l&&(e.async?n+=" throw new ValidationError(vErrors); ":n+=" validate.errors = vErrors; return false; "),l&&(n+=" break; "),n+=" } }"}return l&&(n+=" if ("+h+" == 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,l=!e.opts.allErrors,u="data"+(o||""),h="valid"+i,p=e.opts.$data&&a&&a.$data;p&&(n+=" var schema"+i+" = "+e.util.getData(a.$data,o,e.dataPathArr)+"; ");var f="schema"+i;if(!p)if(a.length<e.opts.loopRequired&&e.schema.properties&&Object.keys(e.schema.properties).length){var d=[],m=a;if(m)for(var g,E=-1,y=m.length-1;E<y;){g=m[E+=1];var T=e.schema.properties[g];T&&(e.opts.strictKeywords?"object"==typeof T&&Object.keys(T).length>0||!1===T:e.util.schemaHasRules(T,e.RULES.all))||(d[d.length]=g)}}else d=a;if(p||d.length){var v=e.errorPath,b=p||d.length>=e.opts.loopRequired,_=e.opts.ownProperties;if(l)if(n+=" var missing"+i+"; ",b){p||(n+=" var "+f+" = validate.schema"+s+"; ");var A="' + "+(O="schema"+i+"["+(C="i"+i)+"]")+" + '";e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPathExpr(v,O,e.opts.jsonPointers)),n+=" var "+h+" = true; ",p&&(n+=" if (schema"+i+" === undefined) "+h+" = true; else if (!Array.isArray(schema"+i+")) "+h+" = false; else {"),n+=" for (var "+C+" = 0; "+C+" < "+f+".length; "+C+"++) { "+h+" = "+u+"["+f+"["+C+"]] !== undefined ",_&&(n+=" && Object.prototype.hasOwnProperty.call("+u+", "+f+"["+C+"]) "),n+="; if (!"+h+") break; } ",p&&(n+=" } "),n+=" if (!"+h+") { ",(w=w||[]).push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { missingProperty: '"+A+"' } ",!1!==e.opts.messages&&(n+=" , message: '",e.opts._errorDataPathProperty?n+="is a required property":n+="should have required property \\'"+A+"\\'",n+="' "),e.opts.verbose&&(n+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),n+=" } "):n+=" {} ";var S=n;n=w.pop(),!e.compositeRule&&l?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 k=d;if(k)for(var C=-1,x=k.length-1;C<x;){P=k[C+=1],C&&(n+=" || "),n+=" ( ( "+(D=u+(L=e.util.getProperty(P)))+" === undefined ",_&&(n+=" || ! Object.prototype.hasOwnProperty.call("+u+", '"+e.util.escapeQuotes(P)+"') "),n+=") && (missing"+i+" = "+e.util.toQuotedString(e.opts.jsonPointers?P:L)+") ) "}n+=") { ";var w;A="' + "+(O="missing"+i)+" + '";e.opts._errorDataPathProperty&&(e.errorPath=e.opts.jsonPointers?e.util.getPathExpr(v,O,!0):v+" + "+O),(w=w||[]).push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { missingProperty: '"+A+"' } ",!1!==e.opts.messages&&(n+=" , message: '",e.opts._errorDataPathProperty?n+="is a required property":n+="should have required property \\'"+A+"\\'",n+="' "),e.opts.verbose&&(n+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),n+=" } "):n+=" {} ";S=n;n=w.pop(),!e.compositeRule&&l?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(b){p||(n+=" var "+f+" = validate.schema"+s+"; ");var O;A="' + "+(O="schema"+i+"["+(C="i"+i)+"]")+" + '";e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPathExpr(v,O,e.opts.jsonPointers)),p&&(n+=" if ("+f+" && !Array.isArray("+f+")) { var err = ",!1!==e.createErrors?(n+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { missingProperty: '"+A+"' } ",!1!==e.opts.messages&&(n+=" , message: '",e.opts._errorDataPathProperty?n+="is a required property":n+="should have required property \\'"+A+"\\'",n+="' "),e.opts.verbose&&(n+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),n+=" } "):n+=" {} ",n+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } else if ("+f+" !== undefined) { "),n+=" for (var "+C+" = 0; "+C+" < "+f+".length; "+C+"++) { if ("+u+"["+f+"["+C+"]] === undefined ",_&&(n+=" || ! Object.prototype.hasOwnProperty.call("+u+", "+f+"["+C+"]) "),n+=") { var err = ",!1!==e.createErrors?(n+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { missingProperty: '"+A+"' } ",!1!==e.opts.messages&&(n+=" , message: '",e.opts._errorDataPathProperty?n+="is a required property":n+="should have required property \\'"+A+"\\'",n+="' "),e.opts.verbose&&(n+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),n+=" } "):n+=" {} ",n+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } } ",p&&(n+=" } ")}else{var N=d;if(N)for(var P,R=-1,I=N.length-1;R<I;){P=N[R+=1];var L=e.util.getProperty(P),D=(A=e.util.escapeQuotes(P),u+L);e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPath(v,P,e.opts.jsonPointers)),n+=" if ( "+D+" === undefined ",_&&(n+=" || ! Object.prototype.hasOwnProperty.call("+u+", '"+e.util.escapeQuotes(P)+"') "),n+=") { var err = ",!1!==e.createErrors?(n+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { missingProperty: '"+A+"' } ",!1!==e.opts.messages&&(n+=" , message: '",e.opts._errorDataPathProperty?n+="is a required property":n+="should have required property \\'"+A+"\\'",n+="' "),e.opts.verbose&&(n+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),n+=" } "):n+=" {} ",n+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } "}}e.errorPath=v}else l&&(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),l=e.errSchemaPath+"/"+t,u=!e.opts.allErrors,h="data"+(a||""),p="valid"+o,f=e.opts.$data&&s&&s.$data;if(f?(i+=" var schema"+o+" = "+e.util.getData(s.$data,a,e.dataPathArr)+"; ",n="schema"+o):n=s,(s||f)&&!1!==e.opts.uniqueItems){f&&(i+=" var "+p+"; if ("+n+" === false || "+n+" === undefined) "+p+" = true; else if (typeof "+n+" != 'boolean') "+p+" = false; else { "),i+=" var i = "+h+".length , "+p+" = 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("+h+"[i], "+h+"[j])) { "+p+" = false; break outer; } } } ";else{i+=" var itemIndices = {}, item; for (;i--;) { var item = "+h+"[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') { "+p+" = false; j = itemIndices[item]; break; } itemIndices[item] = i; } "}i+=" } ",f&&(i+=" } "),i+=" if (!"+p+") { ";var E=E||[];E.push(i),i="",!1!==e.createErrors?(i+=" { keyword: 'uniqueItems' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , 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+=f?"validate.schema"+c:""+s,i+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+h+" "),i+=" } "):i+=" {} ";var y=i;i=E.pop(),!e.compositeRule&&u?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+=" } ",u&&(i+=" else { ")}else u&&(i+=" if (true) { ");return i},validate:at},Xt=Yt,Jt=me.toHash,Zt=["multipleOf","maximum","exclusiveMaximum","minimum","exclusiveMinimum","maxLength","minLength","pattern","additionalItems","maxItems","minItems","uniqueItems","maxProperties","minProperties","required","additionalProperties","enum","format","const"],er=rt.MissingRef,tr=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 er)return function(t){var n=t.missingSchema;if(l(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(!l(n))return a(e).then(function(){l(n)||i.addSchema(e,n,void 0,r)})}).then(function(){return s(e)});function c(){delete i._loadingSchemas[n]}function l(e){return i._refs[e]||i._schemas[e]}}(t);throw t}}};var rr={$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},nr=rr,ir={$id:"https://github.com/ajv-validator/ajv/blob/master/lib/definition_schema.js",definitions:{simpleTypes:nr.definitions.simpleTypes},type:"object",dependencies:{schema:["validate"],$data:["validate"],statements:["inline"],valid:{not:{required:["macro"]}}},properties:{type:nr.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"}]}}},or=/^[a-z_$][a-z0-9_$-]*$/i,ar=function(e,t,r){var n,i,o=" ",a=e.level,s=e.dataLevel,c=e.schema[t],l=e.schemaPath+e.util.getProperty(t),u=e.errSchemaPath+"/"+t,h=!e.opts.allErrors,p="data"+(s||""),f="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,E,y,T,v,b=this,_="definition"+a,A=b.definition,S="";if(m&&A.$data){v="keywordValidate"+a;var k=A.validateSchema;o+=" var "+_+" = RULES.custom['"+t+"'].definition; var "+v+" = "+_+".validate;"}else{if(!(T=e.useCustomRule(b,c,e.schema,e)))return;i="validate.schema"+l,v=T.code,g=A.compile,E=A.inline,y=A.macro}var C=v+".errors",x="i"+a,w="ruleErr"+a,O=A.async;if(O&&!e.async)throw new Error("async keyword in sync schema");if(E||y||(o+=C+" = null;"),o+="var "+d+" = errors;var "+f+";",m&&A.$data&&(S+="}",o+=" if ("+i+" === undefined) { "+f+" = true; } else { ",k&&(S+="}",o+=" "+f+" = "+_+".validateSchema("+i+"); if ("+f+") { ")),E)A.statements?o+=" "+T.validate+" ":o+=" "+f+" = "+T.validate+"; ";else if(y){var N=e.util.copy(e);S="";N.level++;var P="valid"+N.level;N.schema=T.validate,N.schemaPath="";var R=e.compositeRule;e.compositeRule=N.compositeRule=!0;var I=e.validate(N).replace(/validate\.schema/g,v);e.compositeRule=N.compositeRule=R,o+=" "+I}else{(F=F||[]).push(o),o="",o+=" "+v+".call( ",e.opts.passContext?o+="this":o+="self",g||!1===A.schema?o+=" , "+p+" ":o+=" , "+i+" , "+p+" , validate.schema"+e.schemaPath+" ",o+=" , (dataPath || '')",'""'!=e.errorPath&&(o+=" + "+e.errorPath);var L=s?"data"+(s-1||""):"parentData",D=s?e.dataPathArr[s]:"parentDataProperty",M=o+=" , "+L+" , "+D+" , rootData ) ";o=F.pop(),!1===A.errors?(o+=" "+f+" = ",O&&(o+="await "),o+=M+"; "):o+=O?" var "+(C="customErrors"+a)+" = null; try { "+f+" = await "+M+"; } catch (e) { "+f+" = false; if (e instanceof ValidationError) "+C+" = e.errors; else throw e; } ":" "+C+" = null; "+f+" = "+M+"; "}if(A.modifying&&(o+=" if ("+L+") "+p+" = "+L+"["+D+"];"),o+=""+S,A.valid)h&&(o+=" if (true) { ");else{var F;o+=" if ( ",void 0===A.valid?(o+=" !",o+=y?""+P:""+f):o+=" "+!A.valid+" ",o+=") { ",n=b.keyword,(F=F||[]).push(o),o="",(F=F||[]).push(o),o="",!1!==e.createErrors?(o+=" { keyword: '"+(n||"custom")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { keyword: '"+b.keyword+"' } ",!1!==e.opts.messages&&(o+=" , message: 'should pass \""+b.keyword+"\" keyword validation' "),e.opts.verbose&&(o+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),o+=" } "):o+=" {} ";var H=o;o=F.pop(),!e.compositeRule&&h?e.async?o+=" throw new ValidationError(["+H+"]); ":o+=" validate.errors = ["+H+"]; return false; ":o+=" var err = "+H+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ";var B=o;o=F.pop(),E?A.errors?"full"!=A.errors&&(o+=" for (var "+x+"="+d+"; "+x+"<errors; "+x+"++) { var "+w+" = vErrors["+x+"]; if ("+w+".dataPath === undefined) "+w+".dataPath = (dataPath || '') + "+e.errorPath+"; if ("+w+".schemaPath === undefined) { "+w+'.schemaPath = "'+u+'"; } ',e.opts.verbose&&(o+=" "+w+".schema = "+i+"; "+w+".data = "+p+"; "),o+=" } "):!1===A.errors?o+=" "+B+" ":(o+=" if ("+d+" == errors) { "+B+" } else { for (var "+x+"="+d+"; "+x+"<errors; "+x+"++) { var "+w+" = vErrors["+x+"]; if ("+w+".dataPath === undefined) "+w+".dataPath = (dataPath || '') + "+e.errorPath+"; if ("+w+".schemaPath === undefined) { "+w+'.schemaPath = "'+u+'"; } ',e.opts.verbose&&(o+=" "+w+".schema = "+i+"; "+w+".data = "+p+"; "),o+=" } } "):y?(o+=" var err = ",!1!==e.createErrors?(o+=" { keyword: '"+(n||"custom")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { keyword: '"+b.keyword+"' } ",!1!==e.opts.messages&&(o+=" , message: 'should pass \""+b.keyword+"\" keyword validation' "),e.opts.verbose&&(o+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),o+=" } "):o+=" {} ",o+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&h&&(e.async?o+=" throw new ValidationError(vErrors); ":o+=" validate.errors = vErrors; return false; ")):!1===A.errors?o+=" "+B+" ":(o+=" if (Array.isArray("+C+")) { if (vErrors === null) vErrors = "+C+"; else vErrors = vErrors.concat("+C+"); errors = vErrors.length; for (var "+x+"="+d+"; "+x+"<errors; "+x+"++) { var "+w+" = vErrors["+x+"]; if ("+w+".dataPath === undefined) "+w+".dataPath = (dataPath || '') + "+e.errorPath+"; "+w+'.schemaPath = "'+u+'"; ',e.opts.verbose&&(o+=" "+w+".schema = "+i+"; "+w+".data = "+p+"; "),o+=" } } else { "+B+" } "),o+=" } ",h&&(o+=" else { ")}return o},sr=ir,cr={add:function(e,t){var r=this.RULES;if(r.keywords[e])throw new Error("Keyword "+e+" is already defined");if(!or.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:ar,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(sr,!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 lr={$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},ur=mt,hr=Ue,pr=St.exports,fr=Ne,dr=ot,mr=Ht,gr=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=Jt(t),e.types=Jt(["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:Xt[r],implements:n}}),e.all.$comment={keyword:"$comment",code:Xt.$comment},r.type&&(e.types[r.type]=r)}),e.keywords=Jt(t.concat(["$schema","$id","id","$data","$async","title","description","default","definitions","examples","readOnly","writeOnly","contentMediaType","contentEncoding","additionalItems","then","else"])),e.custom={},e},Er=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<Zt.length;n++){var a=Zt[n],s=o[a];s&&(o[a]={anyOf:[s,{$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"}]})}}return e},yr=me,Tr=kr;kr.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},kr.prototype.compile=function(e,t){var r=this._addSchema(e,void 0,t);return r.validate||this._compile(r)},kr.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 Pr(this,t=hr.normalizeId(t||o)),this._schemas[t]=this._addSchema(e,r,n,!0),this},kr.prototype.addMetaSchema=function(e,t,r){return this.addSchema(e,t,r,!0),this},kr.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(_r)?_r:void 0,e._opts.defaultMeta}(this),!r)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},kr.prototype.getSchema=function(e){var t=Cr(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=hr.schema.call(e,{schema:{}},t);if(r){var n=r.schema,i=r.root,o=r.baseId,a=ur.call(e,n,i,void 0,o);return e._fragments[t]=new fr({ref:t,fragment:!0,schema:n,root:i,baseId:o,validate:a}),a}}(this,e)}},kr.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=Cr(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=hr.normalizeId(i),delete this._schemas[i],delete this._refs[i])}return this},kr.prototype.addFormat=function(e,t){"string"==typeof t&&(t=new RegExp(t));return this._formats[e]=t,this},kr.prototype.errorsText=function(e,t){if(e=e||this.errors,!e)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)},kr.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=hr.normalizeId(this._getId(e));s&&n&&Pr(this,s);var c,l=!1!==this._opts.validateSchema&&!t;l&&!(c=s&&s==hr.normalizeId(e.$schema))&&this.validateSchema(e,!0);var u=hr.ids.call(this,e),h=new fr({id:s,schema:e,localRefs:u,cacheKey:o,meta:r});"#"!=s[0]&&n&&(this._refs[s]=h);this._cache.put(o,h),l&&c&&this.validateSchema(e,!0);return h},kr.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=ur.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}},kr.prototype.compileAsync=tr;var vr=cr;kr.prototype.addKeyword=vr.add,kr.prototype.getKeyword=vr.get,kr.prototype.removeKeyword=vr.remove,kr.prototype.validateKeyword=vr.validate;var br=rt;kr.ValidationError=br.Validation,kr.MissingRefError=br.MissingRef,kr.$dataMetaSchema=Er;var _r="http://json-schema.org/draft-07/schema",Ar=["removeAdditional","useDefaults","coerceTypes","strictDefaults"],Sr=["/properties"];function kr(e){if(!(this instanceof kr))return new kr(e);e=this._opts=yr.copy(e)||{},function(e){var t=e._opts.logger;if(!1===t)e.logger={log:Rr,warn:Rr,error:Rr};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=mr(e.format),this._cache=e.cache||new pr,this._loadingSchemas={},this._compilations=[],this.RULES=gr(),this._getId=function(e){switch(e.schemaId){case"auto":return Nr;case"id":return wr;default:return Or}}(e),e.loopRequired=e.loopRequired||1/0,"property"==e.errorDataPath&&(e._errorDataPathProperty=!0),void 0===e.serialize&&(e.serialize=dr),this._metaOpts=function(e){for(var t=yr.copy(e._opts),r=0;r<Ar.length;r++)delete t[Ar[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=lr,e.addMetaSchema(t,t.$id,!0));if(!1===e._opts.meta)return;var r=rr;e._opts.$data&&(r=Er(r,Sr));e.addMetaSchema(r,_r,!0),e._refs["http://json-schema.org/schema"]=_r}(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 Cr(e,t){return t=hr.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 wr(e){return e.$id&&this.logger.warn("schema $id ignored",e.$id),e.id}function Or(e){return e.id&&this.logger.warn("schema id ignored",e.id),e.$id}function Nr(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 Pr(e,t){if(e._schemas[t]||e._refs[t])throw new Error('schema with key or id "'+t+'" already exists')}function Rr(){}var Ir,Lr={exports:{}},Dr={exports:{}};Dr.exports=(Ir=Ir||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!==ue&&ue.crypto&&(r=ue.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||u).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)}}),l=o.enc={},u=l.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)}},h=l.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)}},p=l.Utf8={stringify:function(e){try{return decodeURIComponent(escape(h.stringify(e)))}catch(e){throw new Error("Malformed UTF-8 data")}},parse:function(e){return h.parse(unescape(encodeURIComponent(e)))}},f=a.BufferedBlockAlgorithm=s.extend({reset:function(){this._data=new c.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=p.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),l=(s=t?e.ceil(s):e.max((0|s)-this._minBufferSize,0))*a,u=e.min(4*l,o);if(l){for(var h=0;h<l;h+=a)this._doProcessBlock(i,h);r=i.splice(0,l),n.sigBytes-=u}return new c.init(r,u)},clone:function(){var e=s.clone.call(this);return e._data=this._data.clone(),e},_minBufferSize:0});a.Hasher=f.extend({cfg:s.extend(),init:function(e){this.cfg=this.cfg.extend(e),this.reset()},reset:function(){f.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),Ir);var Mr={exports:{}};Mr.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 Fr={exports:{}};Fr.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],f=e[t+2],d=e[t+3],m=e[t+4],g=e[t+5],E=e[t+6],y=e[t+7],T=e[t+8],v=e[t+9],b=e[t+10],_=e[t+11],A=e[t+12],S=e[t+13],k=e[t+14],C=e[t+15],x=o[0],w=o[1],O=o[2],N=o[3];x=l(x,w,O,N,a,7,s[0]),N=l(N,x,w,O,c,12,s[1]),O=l(O,N,x,w,f,17,s[2]),w=l(w,O,N,x,d,22,s[3]),x=l(x,w,O,N,m,7,s[4]),N=l(N,x,w,O,g,12,s[5]),O=l(O,N,x,w,E,17,s[6]),w=l(w,O,N,x,y,22,s[7]),x=l(x,w,O,N,T,7,s[8]),N=l(N,x,w,O,v,12,s[9]),O=l(O,N,x,w,b,17,s[10]),w=l(w,O,N,x,_,22,s[11]),x=l(x,w,O,N,A,7,s[12]),N=l(N,x,w,O,S,12,s[13]),O=l(O,N,x,w,k,17,s[14]),x=u(x,w=l(w,O,N,x,C,22,s[15]),O,N,c,5,s[16]),N=u(N,x,w,O,E,9,s[17]),O=u(O,N,x,w,_,14,s[18]),w=u(w,O,N,x,a,20,s[19]),x=u(x,w,O,N,g,5,s[20]),N=u(N,x,w,O,b,9,s[21]),O=u(O,N,x,w,C,14,s[22]),w=u(w,O,N,x,m,20,s[23]),x=u(x,w,O,N,v,5,s[24]),N=u(N,x,w,O,k,9,s[25]),O=u(O,N,x,w,d,14,s[26]),w=u(w,O,N,x,T,20,s[27]),x=u(x,w,O,N,S,5,s[28]),N=u(N,x,w,O,f,9,s[29]),O=u(O,N,x,w,y,14,s[30]),x=h(x,w=u(w,O,N,x,A,20,s[31]),O,N,g,4,s[32]),N=h(N,x,w,O,T,11,s[33]),O=h(O,N,x,w,_,16,s[34]),w=h(w,O,N,x,k,23,s[35]),x=h(x,w,O,N,c,4,s[36]),N=h(N,x,w,O,m,11,s[37]),O=h(O,N,x,w,y,16,s[38]),w=h(w,O,N,x,b,23,s[39]),x=h(x,w,O,N,S,4,s[40]),N=h(N,x,w,O,a,11,s[41]),O=h(O,N,x,w,d,16,s[42]),w=h(w,O,N,x,E,23,s[43]),x=h(x,w,O,N,v,4,s[44]),N=h(N,x,w,O,A,11,s[45]),O=h(O,N,x,w,C,16,s[46]),x=p(x,w=h(w,O,N,x,f,23,s[47]),O,N,a,6,s[48]),N=p(N,x,w,O,y,10,s[49]),O=p(O,N,x,w,k,15,s[50]),w=p(w,O,N,x,g,21,s[51]),x=p(x,w,O,N,A,6,s[52]),N=p(N,x,w,O,d,10,s[53]),O=p(O,N,x,w,b,15,s[54]),w=p(w,O,N,x,c,21,s[55]),x=p(x,w,O,N,T,6,s[56]),N=p(N,x,w,O,C,10,s[57]),O=p(O,N,x,w,E,15,s[58]),w=p(w,O,N,x,S,21,s[59]),x=p(x,w,O,N,m,6,s[60]),N=p(N,x,w,O,_,10,s[61]),O=p(O,N,x,w,f,15,s[62]),w=p(w,O,N,x,v,21,s[63]),o[0]=o[0]+x|0,o[1]=o[1]+w|0,o[2]=o[2]+O|0,o[3]=o[3]+N|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,l=0;l<4;l++){var u=c[l];c[l]=16711935&(u<<8|u>>>24)|4278255360&(u<<24|u>>>8)}return s},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}});function l(e,t,r,n,i,o,a){var s=e+(t&r|~t&n)+i+a;return(s<<o|s>>>32-o)+t}function u(e,t,r,n,i,o,a){var s=e+(t&n|r&~n)+i+a;return(s<<o|s>>>32-o)+t}function h(e,t,r,n,i,o,a){var s=e+(t^r^n)+i+a;return(s<<o|s>>>32-o)+t}function p(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 Hr={exports:{}},Br={exports:{}};Br.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],l=0;l<80;l++){if(l<16)a[l]=0|e[t+l];else{var u=a[l-3]^a[l-8]^a[l-14]^a[l-16];a[l]=u<<1|u>>>31}var h=(n<<5|n>>>27)+c+a[l];h+=l<20?1518500249+(i&o|~i&s):l<40?1859775393+(i^o^s):l<60?(i&o|i&s|o&s)-1894007588:(i^o^s)-899497514,c=s,s=o,o=i<<30|i>>>2,i=n,n=h}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 Ur={exports:{}};Ur.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,l=0;l<r;l++)s[l]^=1549556828,c[l]^=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),Hr.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,l=n.iterations;s.length<c;){r&&o.update(r),r=o.update(e).finalize(t),o.reset();for(var u=1;u<l;u++)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 jr={exports:{}};jr.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,l=r.algo.EvpKDF,u=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?T:E}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=u.extend({_doFinalize:function(){return this._process(!0)},blockSize:1});var h=r.mode={},p=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}}),f=h.CBC=function(){var e=p.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=u.extend({cfg:u.cfg.extend({mode:f,padding:d}),reset:function(){var e;u.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})}},E=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,i){if(n||(n=o.random(8)),i)a=l.create({keySize:t+r,hasher:i}).compute(e,n);else var a=l.create({keySize:t+r}).compute(e,n);var s=o.create(a.words.slice(t),4*r);return a.sigBytes=4*t,m.create({key:a,iv:s,salt:n})}},T=n.PasswordBasedCipher=E.extend({cfg:E.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.salt,n.hasher);n.iv=i.iv;var o=E.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,n.hasher);return n.iv=i.iv,E.decrypt.call(this,e,t,i.key,n)}})}()}(Dr.exports),Lr.exports=function(e){return function(){var t=e,r=t.lib.BlockCipher,n=t.algo,i=[],o=[],a=[],s=[],c=[],l=[],u=[],h=[],p=[],f=[];!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],E=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,l[r]=y,y=16843009*E^65537*g^257*m^16843008*r,u[d]=y<<24|y>>>8,h[d]=y<<16|y>>>16,p[d]=y<<8|y>>>24,f[d]=y,r?(r=m^e[e[e[E^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]:(l=o[a-1],a%r?r>6&&a%r==4&&(l=i[l>>>24]<<24|i[l>>>16&255]<<16|i[l>>>8&255]<<8|i[255&l]):(l=i[(l=l<<8|l>>>24)>>>24]<<24|i[l>>>16&255]<<16|i[l>>>8&255]<<8|i[255&l],l^=d[a/r|0]<<24),o[a]=o[a-r]^l);for(var s=this._invKeySchedule=[],c=0;c<n;c++){if(a=n-c,c%4)var l=o[a];else l=o[a-4];s[c]=c<4||a<=4?l:u[i[l>>>24]]^h[i[l>>>16&255]]^p[i[l>>>8&255]]^f[i[255&l]]}}},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._keySchedule,a,s,c,l,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,u,h,p,f,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,l=e[t]^r[0],u=e[t+1]^r[1],h=e[t+2]^r[2],p=e[t+3]^r[3],f=4,d=1;d<c;d++){var m=n[l>>>24]^i[u>>>16&255]^o[h>>>8&255]^a[255&p]^r[f++],g=n[u>>>24]^i[h>>>16&255]^o[p>>>8&255]^a[255&l]^r[f++],E=n[h>>>24]^i[p>>>16&255]^o[l>>>8&255]^a[255&u]^r[f++],y=n[p>>>24]^i[l>>>16&255]^o[u>>>8&255]^a[255&h]^r[f++];l=m,u=g,h=E,p=y}m=(s[l>>>24]<<24|s[u>>>16&255]<<16|s[h>>>8&255]<<8|s[255&p])^r[f++],g=(s[u>>>24]<<24|s[h>>>16&255]<<16|s[p>>>8&255]<<8|s[255&l])^r[f++],E=(s[h>>>24]<<24|s[p>>>16&255]<<16|s[l>>>8&255]<<8|s[255&u])^r[f++],y=(s[p>>>24]<<24|s[l>>>16&255]<<16|s[u>>>8&255]<<8|s[255&h])^r[f++],e[t]=m,e[t+1]=g,e[t+2]=E,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={},Gr={};function Kr(e,t){for(var r=t,n=0;n<e.length;n++){var i=n===e.length-1,o=e.charAt(n),a=r[o]||(r[o]={chars:{}});i&&(a.self=e),r=a.chars}}function $r(e){if(0===e.length)return zr;for(var t={},r=0,n=e;r<n.length;r++){Kr(n[r],t)}return t}function Vr(e){if(0===e.length)return Gr;for(var t={},r=0,n=e;r<n.length;r++){t[n[r]]=!0}return t}var Qr={},Wr={type:"String",optional:!0};function Yr(e){var t={type:"NoArgument",optional:!1};function r(e){if(t.type&&t.type!==e&&"NoArgument"!==t.type)throw new Error('Conflicting pseudo-class argument type: "'.concat(t.type,'" vs "').concat(e,'".'));t.type=e}for(var n=0,i=e;n<i.length;n++){var o=i[n];"NoArgument"===o&&(t.optional=!0),"Formula"===o&&r("Formula"),"FormulaOfSelector"===o&&(r("Formula"),t.ofSelector=!0),"String"===o&&r("String"),"Selector"===o&&r("Selector")}return t}function Xr(e){for(var t=function(e){for(var t={},r=0,n=Object.keys(e);r<n.length;r++){var i=n[r],o=e[i];if(o)for(var a=0,s=o;a<s.length;a++){var c=s[a];(t[c]||(t[c]=[])).push(i)}}return t}(e),r={},n=0,i=Object.keys(t);n<i.length;n++){var o=i[n],a=t[o];a&&(r[o]=Yr(a))}return r}var Jr=function(){return Jr=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},Jr.apply(this,arguments)},Zr={},en={wildcard:!0};function tn(e,t){return function(r,n){return!0===n?e:t(!0===r?e:r,n)}}function rn(e){return function(t,r){if(!r||!t)return r;if("object"!=typeof r||null===r)throw new Error("Unexpected syntax definition extension type: ".concat(r,"."));for(var n=Jr({},t),i=0,o=Object.entries(r);i<o.length;i++){var a=o[i],s=a[0],c=a[1];if("latest"!==s){var l=e[s];n[s]=l(t[s],c)}}return n}}function nn(e,t){return void 0!==t?t:e}function on(e,t){return t?e?e.concat(t):t:e}function an(e,t){if(!t)return e;if(!e)return t;for(var r=Jr({},e),n=0,i=Object.entries(t);n<i.length;n++){var o=i[n],a=o[0],s=o[1];if(s){var c=e[a];r[a]=c?c.concat(s):s}else delete r[a]}return r}var sn=function(e){return function(t,r){var n=e(t,r);if(!n)throw new Error("Syntax definition cannot be null or undefined.");return n}}(rn({baseSyntax:nn,modules:on,tag:tn(en,rn({wildcard:nn})),ids:nn,classNames:nn,nestingSelector:nn,namespace:tn(en,rn({wildcard:nn})),combinators:on,attributes:rn({operators:on,caseSensitivityModifiers:on,unknownCaseSensitivityModifiers:nn}),pseudoClasses:rn({unknown:nn,definitions:an}),pseudoElements:rn({unknown:nn,notation:nn,definitions:function(e,t){return function(r,n){return t(e(r),e(n))}}(function(e){return Array.isArray(e)?{NoArgument:e}:e},an)})})),cn={tag:{},ids:!0,classNames:!0,combinators:[],pseudoElements:{unknown:"reject",notation:"singleColon",definitions:["first-letter","first-line"]},pseudoClasses:{unknown:"reject",definitions:{NoArgument:["link","visited","active"]}}},ln=sn(cn,{tag:{wildcard:!0},combinators:[">","+"],attributes:{unknownCaseSensitivityModifiers:"reject",operators:["=","~=","|="]},pseudoElements:{definitions:["before","after"]},pseudoClasses:{unknown:"reject",definitions:{NoArgument:["hover","focus","first-child"],String:["lang"]}}}),un=sn(ln,{namespace:{wildcard:!0},combinators:["~"],attributes:{operators:["^=","$=","*="]},pseudoElements:{notation:"both"},pseudoClasses:{definitions:{NoArgument:["root","last-child","first-of-type","last-of-type","only-child","only-of-type","empty","target","enabled","disabled","checked","indeterminate"],Formula:["nth-child","nth-last-child","nth-of-type","nth-last-of-type"],Selector:["not"]}}}),hn=sn(un,{combinators:["||"],attributes:{caseSensitivityModifiers:["i","I","s","S"]},pseudoClasses:{definitions:{NoArgument:["any-link","local-link","target-within","scope","current","past","future","focus-within","focus-visible","read-write","read-only","placeholder-shown","default","valid","invalid","in-range","out-of-range","required","optional","blank","user-invalid","playing","paused","autofill","modal","fullscreen","picture-in-picture","defined","loading","popover-open"],Formula:["nth-col","nth-last-col"],String:["dir"],FormulaOfSelector:["nth-child","nth-last-child"],Selector:["current","is","where","has","state"]}},pseudoElements:{definitions:{NoArgument:["marker"]}}}),pn={"css-position-1":{latest:!1,pseudoClasses:{definitions:{NoArgument:["static","relative","absolute"]}}},"css-position-2":{latest:!1,pseudoClasses:{definitions:{NoArgument:["static","relative","absolute","fixed"]}}},"css-position-3":{latest:!1,pseudoClasses:{definitions:{NoArgument:["sticky","fixed","absolute","relative","static"]}}},"css-position-4":{latest:!0,pseudoClasses:{definitions:{NoArgument:["sticky","fixed","absolute","relative","static","initial"]}}},"css-scoping-1":{latest:!0,pseudoClasses:{definitions:{NoArgument:["host","host-context"],Selector:["host","host-context"]}},pseudoElements:{definitions:{Selector:["slotted"]}}},"css-pseudo-4":{latest:!0,pseudoElements:{definitions:{NoArgument:["marker","selection","target-text","search-text","spelling-error","grammar-error","backdrop","file-selector-button","prefix","postfix","placeholder","details-content"],String:["highlight"]}}},"css-shadow-parts-1":{latest:!0,pseudoElements:{definitions:{String:["part"]}}},"css-nesting-1":{latest:!0,nestingSelector:!0}},fn=Jr(Jr({},hn),{modules:Object.entries(pn).filter(function(e){return e[1].latest}).map(function(e){return e[0]})}),dn={css1:cn,css2:ln,css3:un,"selectors-3":un,"selectors-4":hn,latest:fn,progressive:sn(fn,{pseudoElements:{unknown:"accept"},pseudoClasses:{unknown:"accept"},attributes:{unknownCaseSensitivityModifiers:"accept"}})};var mn=function(){for(var e={pseudoClasses:{},pseudoElements:{}},t=0,r=["css1","css2","css3","selectors-3","selectors-4"];t<r.length;t++){var n=r[t],i=dn[n];if(i.pseudoClasses&&"object"==typeof i.pseudoClasses)if(v=i.pseudoClasses.definitions)for(var o=0,a=Object.entries(v);o<a.length;o++)for(var s=0,c=a[o][1];s<c.length;s++){var l=c[s];e.pseudoClasses[l]||(e.pseudoClasses[l]=[]),e.pseudoClasses[l].includes(n)||e.pseudoClasses[l].push(n)}if(i.pseudoElements&&"object"==typeof i.pseudoElements)if(v=i.pseudoElements.definitions)if(Array.isArray(v))for(var u=0,h=v;u<h.length;u++){var p=h[u];e.pseudoElements[p]||(e.pseudoElements[p]=[]),e.pseudoElements[p].includes(n)||e.pseudoElements[p].push(n)}else for(var f=0,d=Object.values(v);f<d.length;f++)for(var m=0,g=d[f];m<g.length;m++){var E=g[m];e.pseudoElements[E]||(e.pseudoElements[E]=[]),e.pseudoElements[E].includes(n)||e.pseudoElements[E].push(n)}}for(var y=0,T=Object.entries(pn);y<T.length;y++){var v,b=T[y],_=b[0],A=b[1];if(A.pseudoClasses&&"object"==typeof A.pseudoClasses)if(v=A.pseudoClasses.definitions)for(var S=0,k=Object.values(v);S<k.length;S++)for(var C=0,x=k[S];C<x.length;C++){var w=x[C];e.pseudoClasses[w]||(e.pseudoClasses[w]=[]),e.pseudoClasses[w].includes(_)||e.pseudoClasses[w].push(_)}if(A.pseudoElements&&"object"==typeof A.pseudoElements)if(v=A.pseudoElements.definitions)if(Array.isArray(v))for(var O=0,N=v;O<N.length;O++){var P=N[O];e.pseudoElements[P]||(e.pseudoElements[P]=[]),e.pseudoElements[P].includes(_)||e.pseudoElements[P].push(_)}else for(var R=0,I=Object.values(v);R<I.length;R++)for(var L=0,D=I[R];L<D.length;L++){var M=D[L];e.pseudoElements[M]||(e.pseudoElements[M]=[]),e.pseudoElements[M].includes(_)||e.pseudoElements[M].push(_)}}return e}();function gn(e){return e>="a"&&e<="z"||e>="A"&&e<="Z"||"-"===e||"_"===e||"\\"===e||e>=" "}function En(e){return e>="a"&&e<="z"||e>="A"&&e<="Z"||e>="0"&&e<="9"||"-"===e||"_"===e||e>=" "}function yn(e){return e>="a"&&e<="f"||e>="A"&&e<="F"||e>="0"&&e<="9"}var Tn={" ":!0,"\t":!0,"\n":!0,"\r":!0,"\f":!0},vn={'"':!0,"'":!0},bn={0:!0,1:!0,2:!0,3:!0,4:!0,5:!0,6:!0,7:!0,8:!0,9:!0},_n="css-selector-parser parse error: ";const An=function(e){void 0===e&&(e={});var t=e.syntax,r=void 0===t?"latest":t,n=e.substitutes,i=e.strict,o=void 0===i||i,a=e.modules,s="object"==typeof r?r:dn[r];if(s.baseSyntax&&(s=sn(dn[s.baseSyntax],s)),s.modules&&s.modules.length>0)for(var c=0,l=s.modules;c<l.length;c++){var u=l[c];(f=pn[u])&&(s=sn(f,s))}if(a&&a.length>0)for(var h=0,p=a;h<p.length;h++){var f,d=p[h];(f=pn[d])&&(s=sn(f,s))}var m,g=s.tag?[!0,Boolean((m=s.tag,m?"boolean"==typeof m?en:m:Zr).wildcard)]:[!1,!1],E=g[0],y=g[1],T=Boolean(s.ids),v=Boolean(s.classNames),b=Boolean(s.nestingSelector),_=Boolean(s.namespace),A=s.namespace&&(!0===s.namespace||!0===s.namespace.wildcard);if(_&&!E)throw new Error("".concat(_n,"Namespaces cannot be enabled while tags are disabled."));var S=Boolean(n),k=s.combinators?$r(s.combinators):zr,C=s.attributes?[!0,s.attributes.operators?$r(s.attributes.operators):zr,s.attributes.caseSensitivityModifiers?Vr(s.attributes.caseSensitivityModifiers):Gr,"accept"===s.attributes.unknownCaseSensitivityModifiers]:[!1,zr,Gr,!1],x=C[0],w=C[1],O=C[2],N=C[3],P=N||Object.keys(O).length>0,R=s.pseudoClasses?[!0,s.pseudoClasses.definitions?Xr(s.pseudoClasses.definitions):Qr,"accept"===s.pseudoClasses.unknown]:[!1,Qr,!1],I=R[0],L=R[1],D=R[2],M=s.pseudoElements?[!0,"singleColon"===s.pseudoElements.notation||"both"===s.pseudoElements.notation,!s.pseudoElements.notation||"doubleColon"===s.pseudoElements.notation||"both"===s.pseudoElements.notation,s.pseudoElements.definitions?Xr(Array.isArray(s.pseudoElements.definitions)?{NoArgument:s.pseudoElements.definitions}:s.pseudoElements.definitions):Qr,"accept"===s.pseudoElements.unknown]:[!1,!1,!1,Qr,!1],F=M[0],H=M[1],B=M[2],U=M[3],j=M[4],q="",z=q.length,G=0,K="",$=function(e){return K===e},V=function(){return $("*")||gn(K)},Q=function(e){G=e,K=q.charAt(G)},W=function(){G++,K=q.charAt(G)},Y=function(){var e=K;return G++,K=q.charAt(G),e};function X(e){var t=Math.min(z-1,G),r=new Error("".concat(_n).concat(e," Pos: ").concat(t,"."));throw r.position=t,r.name="ParserError",r}function J(e,t){if(!e)return X(t)}var Z=function(){J(G<z,"Unexpected end of input.")},ee=function(){return G>=z},te=function(e){J(G<z,'Expected "'.concat(e,'" but end of input reached.')),J(K===e,'Expected "'.concat(e,'" but "').concat(K,'" found.')),G++,K=q.charAt(G)};function re(e){var t=ne(e,G);if(t)return G+=t.length,K=q.charAt(G),t}function ne(e,t){var r=e[q.charAt(t)];if(r){var n=ne(r.chars,t+1);if(n)return n;if(r.self)return r.self}}function ie(){for(var e=Y(),t=1;yn(K)&&t<6;)e+=Y(),t++;return function(){if(" "===K||"\t"===K||"\f"===K||"\n"===K)return void W();"\r"===K&&W();"\n"===K&&W()}(),String.fromCharCode(parseInt(e,16))}function oe(e){var t="";for(te(e);G<z;){if($(e))return W(),t;$("\\")?(W(),$(e)?(t+=e,W()):"\n"===K||"\f"===K?W():"\r"===K?(W(),$("\n")&&W()):yn(K)?t+=ie():(t+=K,W())):(t+=K,W())}return t}function ae(){if(!gn(K))return null;for(var e="";$("-");)e+=K,W();for("-"!==e||En(K)||$("\\")||X("Identifiers cannot consist of a single hyphen."),o&&e.length>=2&&X("Identifiers cannot start with two hyphens with strict mode on."),bn[K]&&X("Identifiers cannot start with hyphens followed by digits.");G<z;)if(En(K))e+=Y();else{if(!$("\\"))break;W(),Z(),yn(K)?e+=ie():e+=Y()}return e}function se(){for(var e="";G<z&&!$(")");)if($("\\")){if(W(),ee()&&!o)return(e+"\\").trim();Z(),yn(K)?e+=ie():e+=Y()}else e+=Y();return e.trim()}function ce(){for(;Tn[K];)W()}function le(e){void 0===e&&(e=!1),ce();for(var t=[ge(e)];$(",");)W(),ce(),t.push(ge(e));return{type:"Selector",rules:t}}function ue(){var e;if(te("["),ce(),$("|")){J(_,"Namespaces are not enabled."),W();var t=ae();J(t,"Expected attribute name."),e={type:"Attribute",name:t,namespace:{type:"NoNamespace"}}}else if($("*")){J(_,"Namespaces are not enabled."),J(A,"Wildcard namespace is not enabled."),W(),te("|");var r=ae();J(r,"Expected attribute name."),e={type:"Attribute",name:r,namespace:{type:"WildcardNamespace"}}}else{var n=ae();if(J(n,"Expected attribute name."),e={type:"Attribute",name:n},$("|")){var i=G;if(W(),gn(K)){J(_,"Namespaces are not enabled.");var a=ae();J(a,"Expected attribute name."),e={type:"Attribute",name:a,namespace:{type:"NamespaceName",name:n}}}else Q(i)}}if(J(e.name,"Expected attribute name."),ce(),ee()&&!o)return e;if($("]"))W();else{if(e.operator=re(w),J(e.operator,"Expected a valid attribute selector operator."),ce(),Z(),vn[K])e.value={type:"String",value:oe(K)};else if(S&&$("$")){W();var s=ae();J(s,"Expected substitute name."),e.value={type:"Substitution",name:s}}else{var c=ae();J(c,"Expected attribute value."),e.value={type:"String",value:c}}if(ce(),ee()&&!o)return e;if(!$("]")){var l=ae();if(J(l,"Expected end of attribute selector."),e.caseSensitivityModifier=l,J(P,"Attribute case sensitivity modifiers are not enabled."),J(N||O[e.caseSensitivityModifier],"Unknown attribute case sensitivity modifier."),ce(),ee()&&!o)return e}te("]")}return e}function he(){for(var e="";bn[K];)e+=Y();return J(""!==e,"Formula parse error."),parseInt(e)}var pe=function(){return $("-")||$("+")||bn[K]};function fe(e,t,r){var n;if($("(")){if(W(),ce(),S&&$("$")){W();var i=ae();J(i,"Expected substitute name."),n={type:"Substitution",name:i}}else if("String"===r.type)J((n={type:"String",value:se()}).value,"Expected ".concat(t," argument value."));else if("Selector"===r.type)n=le(!0);else{if("Formula"!==r.type)return X("Invalid ".concat(t," signature."));var a=function(){if($("e")||$("o")){var e=ae();if("even"===e)return ce(),[2,0];if("odd"===e)return ce(),[2,1]}var t,r=null,n=1;if($("-")&&(W(),n=-1),pe()&&($("+")&&W(),r=he(),!$("\\")&&!$("n")))return[0,r*n];if(null===r&&(r=1),r*=n,$("\\")?(W(),t=yn(K)?ie():Y()):t=Y(),J("n"===t,'Formula parse error: expected "n".'),ce(),$("+")||$("-")){var i=$("+")?1:-1;return W(),ce(),[r,i*he()]}return[r,0]}(),s=a[0],c=a[1];n={type:"Formula",a:s,b:c},r.ofSelector&&(ce(),($("o")||$("\\"))&&(J("of"===ae(),"Formula of selector parse error."),ce(),n={type:"FormulaOfSelector",a:s,b:c,selector:ge()}))}if(ce(),ee()&&!o)return n;te(")")}else J(r.optional,"Argument is required for ".concat(t,' "').concat(e,'".'));return n}function de(){if($("*"))return J(y,"Wildcard tag name is not enabled."),W(),{type:"WildcardTag"};if(gn(K)){J(E,"Tag names are not enabled.");var e=ae();return J(e,"Expected tag name."),{type:"TagName",name:e}}return X("Expected tag name.")}function me(){if($("*")){var e=G;return W(),$("|")?(W(),V()?(J(_,"Namespaces are not enabled."),J(A,"Wildcard namespace is not enabled."),(r=de()).namespace={type:"WildcardNamespace"},r):(Q(e),de())):(Q(e),de())}if($("|"))return J(_,"Namespaces are not enabled."),W(),(r=de()).namespace={type:"NoNamespace"},r;if(gn(K)){var t=ae();if(J(t,"Expected tag name."),!$("|"))return J(E,"Tag names are not enabled."),{type:"TagName",name:t};var r;e=G;return W(),V()?(J(_,"Namespaces are not enabled."),(r=de()).namespace={type:"NamespaceName",name:t},r):(Q(e),{type:"TagName",name:t})}return X("Expected tag name.")}function ge(e){var t,r;void 0===e&&(e=!1);var n={type:"Rule",items:[]};e&&((m=re(k))&&(n.combinator=m,ce()));for(;G<z;)if(V())J(0===n.items.length,"Unexpected tag/namespace start."),n.items.push(me());else if($("|")){var i=G;if(W(),!V()){Q(i);break}J(0===n.items.length,"Unexpected tag/namespace start."),Q(i),n.items.push(me())}else if($(".")){J(v,"Class names are not enabled."),W();var o=ae();J(o,"Expected class name."),n.items.push({type:"ClassName",name:o})}else if($("#")){J(T,"IDs are not enabled."),W();var a=ae();J(a,"Expected ID name."),n.items.push({type:"Id",name:a})}else if($("&"))J(b,"Nesting selector is not enabled."),W(),n.items.push({type:"NestingSelector"});else if($("["))J(x,"Attributes are not enabled."),n.items.push(ue());else{if(!$(":"))break;var s=!1;W(),$(":")&&(J(F,"Pseudo elements are not enabled."),J(B,"Pseudo elements double colon notation is not enabled."),s=!0,W());var c=ae();if(J(s||c,"Expected pseudo-class name."),J(!s||c,"Expected pseudo-element name."),J(c,"Expected pseudo-class name."),!s||j||Object.prototype.hasOwnProperty.call(U,c));else{var l=mn.pseudoElements[c],u='Unknown pseudo-element "'.concat(c,'"');l&&l.length>0&&(u+=". It is defined in: ".concat(l.join(", "))),X(u+".")}if(F&&(s||!s&&H&&Object.prototype.hasOwnProperty.call(U,c))){var h={type:"PseudoElement",name:c};(f=fe(c,"pseudo-element",p=null!==(t=U[c])&&void 0!==t?t:j&&Wr))&&(J("Formula"!==f.type&&"FormulaOfSelector"!==f.type,"Pseudo-elements cannot have formula argument."),h.argument=f),n.items.push(h)}else{var p;if(J(I,"Pseudo-classes are not enabled."),p=null!==(r=L[c])&&void 0!==r?r:D&&Wr);else{l=mn.pseudoClasses[c],u='Unknown pseudo-class: "'.concat(c,'"');l&&l.length>0&&(u+=". It is defined in: ".concat(l.join(", "))),X(u+".")}var f,d={type:"PseudoClass",name:c};(f=fe(c,"pseudo-class",p))&&(d.argument=f),n.items.push(d)}}if(0===n.items.length)return ee()?X("Expected rule but end of input reached."):X('Expected rule but "'.concat(K,'" found.'));if(ce(),!ee()&&!$(",")&&!$(")")){var m=re(k);ce(),n.nestedRule=ge(),n.nestedRule.combinator=m}return n}return function(e){if("string"!=typeof e)throw new Error("".concat(_n,"Expected string input."));return z=(q=e).length,G=0,K=q.charAt(0),le()}}({syntax:"selectors-4"});function Sn(e){if("string"!=typeof e)throw new TypeError("Expected `string` as selector, not `"+e+"`");return An(e)}function kn(e){return Array.isArray(e.children)}function Cn(e,t){const r=t[e.name];if(!e.value)return null!=r;e.value.type;let n=e.value.value,i=null==r?void 0:String(r);if("i"===e.caseSensitivityModifier&&(n=n.toLowerCase(),i&&(i=i.toLowerCase())),void 0!==r)switch(e.operator){case"=":return"string"==typeof i&&n===i;case"$=":return"string"==typeof r&&r.slice(-n.length)===n;case"*=":return"string"==typeof r&&r.includes(n);case"^=":return"string"==typeof r&&n===r.slice(0,n.length);case"~=":return Array.isArray(r)&&r.includes(n)||i===n}return!1}const xn=new Set([9,10,12,13,32]),wn="0".charCodeAt(0),On="9".charCodeAt(0);var Nn={trueFunc:function(){return!0},falseFunc:function(){return!1}};function Pn(e){return function(e){const t=e[0],r=e[1]-1;if(r<0&&t<=0)return Nn.falseFunc;if(-1===t)return e=>e<=r;if(0===t)return e=>e===r;if(1===t)return r<0?Nn.trueFunc:e=>e>=r;const n=Math.abs(t),i=(r%n+n)%n;return t>1?e=>e>=r&&e%n===i:e=>e<=r&&e%n===i}(function(e){if("even"===(e=e.trim().toLowerCase()))return[2,0];if("odd"===e)return[2,1];let 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(){const r=t;let n=0;for(;t<e.length&&e.charCodeAt(t)>=wn&&e.charCodeAt(t)<=On;)n=10*n+(e.charCodeAt(t)-wn),t++;return t===r?null:n}function s(){for(;t<e.length&&xn.has(e.charCodeAt(t));)t++}}(e))}const Rn={}.hasOwnProperty;function In(e,t){const r=t||{};function n(t,...r){let i=n.invalid;const o=n.handlers;if(t&&Rn.call(t,e)){const r=String(t[e]);i=Rn.call(o,r)?o[r]:n.unknown}if(i)return i.call(this,t,...r)}return n.handlers=r.handlers||{},n.invalid=r.invalid,n.unknown=r.unknown,n}const Ln=Pn.default||Pn,Dn=In("name",{unknown:function(e){throw new Error("Unknown pseudo-selector `"+e.name+"`")},invalid:function(){throw new Error("Invalid pseudo-selector")},handlers:{is:Fn,blank:Mn,empty:Mn,"first-child":function(e,t,r,n,i){return Hn(i,e),0===i.nodeIndex},"first-of-type":function(e,t,r,n,i){return Hn(i,e),0===i.typeIndex},has:function(e,t,r,n,i){const o=e.argument;!o||o.type;const a={type:"root",children:kn(t)?t.children:[]},s={...i,found:!1,shallow:!1,one:!0,scopeNodes:[t],results:[],rootQuery:o};return qn(s,a),s.results.length>0},"last-child":function(e,t,r,n,i){return Hn(i,e),"number"==typeof i.nodeCount&&i.nodeIndex===i.nodeCount-1},"last-of-type":function(e,t,r,n,i){return Hn(i,e),"number"==typeof i.typeCount&&i.typeIndex===i.typeCount-1},not:function(e,t,r,n,i){return!Fn(e,t,r,n,i)},"nth-child":function(e,t,r,n,i){const o=Bn(e);return Hn(i,e),"number"==typeof i.nodeIndex&&o(i.nodeIndex)},"nth-last-child":function(e,t,r,n,i){const o=Bn(e);return Hn(i,e),"number"==typeof i.nodeCount&&"number"==typeof i.nodeIndex&&o(i.nodeCount-i.nodeIndex-1)},"nth-of-type":function(e,t,r,n,i){const o=Bn(e);return Hn(i,e),"number"==typeof i.typeIndex&&o(i.typeIndex)},"nth-last-of-type":function(e,t,r,n,i){const o=Bn(e);return Hn(i,e),"number"==typeof i.typeIndex&&"number"==typeof i.typeCount&&o(i.typeCount-1-i.typeIndex)},"only-child":function(e,t,r,n,i){return Hn(i,e),1===i.nodeCount},"only-of-type":function(e,t,r,n,i){return Hn(i,e),1===i.typeCount},root:function(e,t,r,n){return t&&!n},scope:function(e,t,r,n,i){return t&&i.scopeNodes.includes(t)}}});function Mn(e,t){return kn(t)?0===t.children.length:!("value"in t)}function Fn(e,t,r,n,i){const o=e.argument;!o||o.type;const a={...i,found:!1,shallow:!1,one:!0,scopeNodes:[t],results:[],rootQuery:o};return qn(a,t),a.results[0]===t}function Hn(e,t){if(e.shallow)throw new Error("Cannot use `:"+t.name+"` without parent")}function Bn(e){let t=e._cachedFn;if(!t){const r=e.argument;if("Formula"!==r.type)throw new Error("Expected `nth` formula, such as `even` or `2n+1` (`of` is not yet supported)");t=Ln(r.a+"n+"+r.b),e._cachedFn=t}return t}function Un(e,t,r,n,i){for(const o of e.items)if("Attribute"===o.type){if(!Cn(o,t))return!1}else{if("Id"===o.type)throw new Error("Invalid selector: id");if("ClassName"===o.type)throw new Error("Invalid selector: class");if("PseudoClass"===o.type){if(!Dn(o,t,r,n,i))return!1}else{if("PseudoElement"===o.type)throw new Error("Invalid selector: `::"+o.name+"`");if("TagName"===o.type&&o.name!==t.type)return!1}}return!0}const jn=[];function qn(e,t){t&&zn(e,[],t,void 0,void 0,t)}function zn(e,t,r,n,i,o){let a={directChild:void 0,descendant:void 0,adjacentSibling:void 0,generalSibling:void 0},s=e.rootQuery.rules;return i&&i!==o&&(s=e.rootQuery.rules.filter(e=>void 0===e.combinator||">"===e.combinator&&i===o)),a=function(e,t,r,n,i){const o={directChild:void 0,descendant:void 0,adjacentSibling:void 0,generalSibling:void 0};let a=-1;for(;++a<t.length;){const s=t[a];if(e.one&&e.found)break;if(e.shallow&&s.nestedRule)throw new Error("Expected selector without nesting");if(Un(s,r,n,i,e)){const t=s.nestedRule;if(t){Kn(o,"+"===t.combinator?"adjacentSibling":"~"===t.combinator?"generalSibling":">"===t.combinator?"directChild":"descendant",t)}else e.found=!0,e.results.includes(r)||e.results.push(r)}void 0===s.combinator?Kn(o,"descendant",s):"~"===s.combinator&&Kn(o,"generalSibling",s)}return o}(e,Gn(t,s),r,n,i),!kn(r)||e.shallow||e.one&&e.found||function(e,t,r,n){const i=Gn(t.descendant,t.directChild);let o,a=-1;const s={count:0,types:new Map},c={count:0,types:new Map};for(;++a<r.children.length;)$n(s,r.children[a]);a=-1;for(;++a<r.children.length;){const t=r.children[a].type.toUpperCase();e.nodeIndex=c.count,e.typeIndex=c.types.get(t)||0,e.nodeCount=s.count,e.typeCount=s.types.get(t);const l=zn(e,Gn(i,o),r.children[a],a,r,n);if(o=Gn(l.generalSibling,l.adjacentSibling),e.one&&e.found)break;$n(c,r.children[a])}}(e,a,r,o),a}function Gn(e,t){return e&&t&&e.length>0&&t.length>0?[...e,...t]:e&&e.length>0?e:t&&t.length>0?t:jn}function Kn(e,t,r){const n=e[t];n?n.push(r):e[t]=[r]}function $n(e,t){const r=t.type.toUpperCase(),n=(e.types.get(r)||0)+1;e.count++,e.types.set(r,n)}function Vn(e,t){return{rootQuery:Sn(e),results:[],scopeNodes:t?!kn(t)||"RootNode"!==t.type&&"root"!==t.type?[t]:t.children:[],one:!1,shallow:!1,found:!1,typeIndex:void 0,nodeIndex:void 0,typeCount:void 0,nodeCount:void 0}}var Qn=Object.freeze({__proto__:null,matches:function(e,t){const r=Vn(e,t);return r.one=!0,r.shallow=!0,qn(r,t||void 0),r.results.length>0},select:function(e,t){const r=Vn(e,t);return r.one=!0,qn(r,t||void 0),r.results[0]},selectAll:function(e,t){const r=Vn(e,t);return qn(r,t||void 0),r.results}}),Wn=he(Qn);function Yn(e){if(e)throw e}
|
|
2
|
+
"use strict";var e=require("commander"),t=require("tmp"),r=require("path"),n=require("consola"),o=require("lodash"),i=require("process"),s=require("url"),a=require("assert"),c=require("util"),l=require("stream"),u=require("http"),h=require("https"),f=require("fs"),p=require("crypto"),d=require("mime-types"),m=require("http2"),g=require("zlib"),y=require("events"),E=require("cross-spawn"),T=require("vm2"),v=require("js-yaml"),b=require("canvas"),_=require("fs-extra"),A=require("pinyin-pro"),S=require("fstream-ignore"),k=require("archiver"),w=require("tar-pack"),C=require("ejs"),x=require("lookpath"),O=require("jsdom"),R=require("os"),N=require("constants"),P=require("puppeteer-core");require("node:path");var I=require("node:querystring");function L(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 F=L(t),M=L(r),B=L(n),U=L(o),H=L(i),j=L(s),q=L(a),z=L(c),G=L(l),$=L(u),K=L(h),V=L(f),W=D(f),Q=L(p),Y=L(d),X=L(m),J=L(g),Z=L(y),ee=L(E),te=L(v),re=L(_),ne=L(S),oe=L(k),ie=L(C),se=L(O),ae=L(R),ce=L(N),le=L(P),ue=D(I);const he=B.default.create({});var fe="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function pe(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 de={},me={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,o=1;o<n;++o)t[o]=t[o].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 o(e){return e.toUpperCase()}function i(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 s(e,t){var r=e;if(t)for(var n in t)r[n]=t[n];return r}function a(e){var n="[A-Za-z]",o="[0-9]",i=t(o,"[A-Fa-f]"),s=r(r("%[EFef]"+i+"%"+i+i+"%"+i+i)+"|"+r("%[89A-Fa-f]"+i+"%"+i+i)+"|"+r("%"+i+i)),a="[\\!\\$\\&\\'\\(\\)\\*\\+\\,\\;\\=]",c=t("[\\:\\/\\?\\#\\[\\]\\@]",a),l=e?"[\\uE000-\\uF8FF]":"[]",u=t(n,o,"[\\-\\.\\_\\~]",e?"[\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]":"[]");r(n+t(n,o,"[\\+\\-\\.]")+"*"),r(r(s+"|"+t(u,a,"[\\:]"))+"*");var h=r(r("25[0-5]")+"|"+r("2[0-4]"+o)+"|"+r("1"+o+o)+"|"+r("0?[1-9]"+o)+"|0?0?"+o),f=r(h+"\\."+h+"\\."+h+"\\."+h),p=r(i+"{1,4}"),d=r(r(p+"\\:"+p)+"|"+f),m=r(r(p+"\\:")+"{6}"+d),g=r("\\:\\:"+r(p+"\\:")+"{5}"+d),y=r(r(p)+"?\\:\\:"+r(p+"\\:")+"{4}"+d),E=r(r(r(p+"\\:")+"{0,1}"+p)+"?\\:\\:"+r(p+"\\:")+"{3}"+d),T=r(r(r(p+"\\:")+"{0,2}"+p)+"?\\:\\:"+r(p+"\\:")+"{2}"+d),v=r(r(r(p+"\\:")+"{0,3}"+p)+"?\\:\\:"+p+"\\:"+d),b=r(r(r(p+"\\:")+"{0,4}"+p)+"?\\:\\:"+d),_=r(r(r(p+"\\:")+"{0,5}"+p)+"?\\:\\:"+p),A=r(r(r(p+"\\:")+"{0,6}"+p)+"?\\:\\:"),S=r([m,g,y,E,T,v,b,_,A].join("|")),k=r(r(u+"|"+s)+"+");r("[vV]"+i+"+\\."+t(u,a,"[\\:]")+"+"),r(r(s+"|"+t(u,a))+"*");var w=r(s+"|"+t(u,a,"[\\:\\@]"));return r(r(s+"|"+t(u,a,"[\\@]"))+"+"),r(r(w+"|"+t("[\\/\\?]",l))+"*"),{NOT_SCHEME:new RegExp(t("[^]",n,o,"[\\+\\-\\.]"),"g"),NOT_USERINFO:new RegExp(t("[^\\%\\:]",u,a),"g"),NOT_HOST:new RegExp(t("[^\\%\\[\\]\\:]",u,a),"g"),NOT_PATH:new RegExp(t("[^\\%\\/\\:\\@]",u,a),"g"),NOT_PATH_NOSCHEME:new RegExp(t("[^\\%\\/\\@]",u,a),"g"),NOT_QUERY:new RegExp(t("[^\\%]",u,a,"[\\:\\@\\/\\?]",l),"g"),NOT_FRAGMENT:new RegExp(t("[^\\%]",u,a,"[\\:\\@\\/\\?]"),"g"),ESCAPE:new RegExp(t("[^]",u,a),"g"),UNRESERVED:new RegExp(u,"g"),OTHER_CHARS:new RegExp(t("[^\\%]",u,c),"g"),PCT_ENCODED:new RegExp(s,"g"),IPV4ADDRESS:new RegExp("^("+f+")$"),IPV6ADDRESS:new RegExp("^\\[?("+S+")"+r(r("\\%25|\\%(?!"+i+"{2})")+"("+k+")")+"?\\]?$")}}var c=a(!1),l=a(!0),u=function(){function e(e,t){var r=[],n=!0,o=!1,i=void 0;try{for(var s,a=e[Symbol.iterator]();!(n=(s=a.next()).done)&&(r.push(s.value),!t||r.length!==t);n=!0);}catch(e){o=!0,i=e}finally{try{!n&&a.return&&a.return()}finally{if(o)throw i}}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")}}(),h=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)},f=2147483647,p=36,d=1,m=26,g=38,y=700,E=72,T=128,v="-",b=/^xn--/,_=/[^\0-\x7E]/,A=/[\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"},k=p-d,w=Math.floor,C=String.fromCharCode;function x(e){throw new RangeError(S[e])}function O(e,t){for(var r=[],n=e.length;n--;)r[n]=t(e[n]);return r}function R(e,t){var r=e.split("@"),n="";return r.length>1&&(n=r[0]+"@",e=r[1]),n+O((e=e.replace(A,".")).split("."),t).join(".")}function N(e){for(var t=[],r=0,n=e.length;r<n;){var o=e.charCodeAt(r++);if(o>=55296&&o<=56319&&r<n){var i=e.charCodeAt(r++);56320==(64512&i)?t.push(((1023&o)<<10)+(1023&i)+65536):(t.push(o),r--)}else t.push(o)}return t}var P=function(e){return e-48<10?e-22:e-65<26?e-65:e-97<26?e-97:p},I=function(e,t){return e+22+75*(e<26)-((0!=t)<<5)},L=function(e,t,r){var n=0;for(e=r?w(e/y):e>>1,e+=w(e/t);e>k*m>>1;n+=p)e=w(e/k);return w(n+(k+1)*e/(e+g))},D=function(e){var t=[],r=e.length,n=0,o=T,i=E,s=e.lastIndexOf(v);s<0&&(s=0);for(var a=0;a<s;++a)e.charCodeAt(a)>=128&&x("not-basic"),t.push(e.charCodeAt(a));for(var c=s>0?s+1:0;c<r;){for(var l=n,u=1,h=p;;h+=p){c>=r&&x("invalid-input");var g=P(e.charCodeAt(c++));(g>=p||g>w((f-n)/u))&&x("overflow"),n+=g*u;var y=h<=i?d:h>=i+m?m:h-i;if(g<y)break;var b=p-y;u>w(f/b)&&x("overflow"),u*=b}var _=t.length+1;i=L(n-l,_,0==l),w(n/_)>f-o&&x("overflow"),o+=w(n/_),n%=_,t.splice(n++,0,o)}return String.fromCodePoint.apply(String,t)},F=function(e){var t=[],r=(e=N(e)).length,n=T,o=0,i=E,s=!0,a=!1,c=void 0;try{for(var l,u=e[Symbol.iterator]();!(s=(l=u.next()).done);s=!0){var h=l.value;h<128&&t.push(C(h))}}catch(e){a=!0,c=e}finally{try{!s&&u.return&&u.return()}finally{if(a)throw c}}var g=t.length,y=g;for(g&&t.push(v);y<r;){var b=f,_=!0,A=!1,S=void 0;try{for(var k,O=e[Symbol.iterator]();!(_=(k=O.next()).done);_=!0){var R=k.value;R>=n&&R<b&&(b=R)}}catch(e){A=!0,S=e}finally{try{!_&&O.return&&O.return()}finally{if(A)throw S}}var P=y+1;b-n>w((f-o)/P)&&x("overflow"),o+=(b-n)*P,n=b;var D=!0,F=!1,M=void 0;try{for(var B,U=e[Symbol.iterator]();!(D=(B=U.next()).done);D=!0){var H=B.value;if(H<n&&++o>f&&x("overflow"),H==n){for(var j=o,q=p;;q+=p){var z=q<=i?d:q>=i+m?m:q-i;if(j<z)break;var G=j-z,$=p-z;t.push(C(I(z+G%$,0))),j=w(G/$)}t.push(C(I(j,0))),i=L(o,P,y==g),o=0,++y}}}catch(e){F=!0,M=e}finally{try{!D&&U.return&&U.return()}finally{if(F)throw M}}++o,++n}return t.join("")},M=function(e){return R(e,function(e){return b.test(e)?D(e.slice(4).toLowerCase()):e})},B=function(e){return R(e,function(e){return _.test(e)?"xn--"+F(e):e})},U={version:"2.1.0",ucs2:{decode:N,encode:function(e){return String.fromCodePoint.apply(String,h(e))}},decode:D,encode:F,toASCII:B,toUnicode:M},H={};function j(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 q(e){for(var t="",r=0,n=e.length;r<n;){var o=parseInt(e.substr(r+1,2),16);if(o<128)t+=String.fromCharCode(o),r+=3;else if(o>=194&&o<224){if(n-r>=6){var i=parseInt(e.substr(r+4,2),16);t+=String.fromCharCode((31&o)<<6|63&i)}else t+=e.substr(r,6);r+=6}else if(o>=224){if(n-r>=9){var s=parseInt(e.substr(r+4,2),16),a=parseInt(e.substr(r+7,2),16);t+=String.fromCharCode((15&o)<<12|(63&s)<<6|63&a)}else t+=e.substr(r,9);r+=9}else t+=e.substr(r,3),r+=3}return t}function z(e,t){function r(e){var r=q(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,j).replace(t.PCT_ENCODED,o)),void 0!==e.host&&(e.host=String(e.host).replace(t.PCT_ENCODED,r).toLowerCase().replace(t.NOT_HOST,j).replace(t.PCT_ENCODED,o)),void 0!==e.path&&(e.path=String(e.path).replace(t.PCT_ENCODED,r).replace(e.scheme?t.NOT_PATH:t.NOT_PATH_NOSCHEME,j).replace(t.PCT_ENCODED,o)),void 0!==e.query&&(e.query=String(e.query).replace(t.PCT_ENCODED,r).replace(t.NOT_QUERY,j).replace(t.PCT_ENCODED,o)),void 0!==e.fragment&&(e.fragment=String(e.fragment).replace(t.PCT_ENCODED,r).replace(t.NOT_FRAGMENT,j).replace(t.PCT_ENCODED,o)),e}function G(e){return e.replace(/^0*(.*)/,"$1")||"0"}function $(e,t){var r=e.match(t.IPV4ADDRESS)||[],n=u(r,2)[1];return n?n.split(".").map(G).join("."):e}function K(e,t){var r=e.match(t.IPV6ADDRESS)||[],n=u(r,3),o=n[1],i=n[2];if(o){for(var s=o.toLowerCase().split("::").reverse(),a=u(s,2),c=a[0],l=a[1],h=l?l.split(":").map(G):[],f=c.split(":").map(G),p=t.IPV4ADDRESS.test(f[f.length-1]),d=p?7:8,m=f.length-d,g=Array(d),y=0;y<d;++y)g[y]=h[y]||f[m+y]||"";p&&(g[d-1]=$(g[d-1],t));var E=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},[]),T=E.sort(function(e,t){return t.length-e.length})[0],v=void 0;if(T&&T.length>1){var b=g.slice(0,T.index),_=g.slice(T.index+T.length);v=b.join(":")+"::"+_.join(":")}else v=g.join(":");return i&&(v+="%"+i),v}return e}var V=/^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i,W=void 0==="".match(/(){0}/)[1];function Q(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={},n=!1!==t.iri?l:c;"suffix"===t.reference&&(e=(t.scheme?t.scheme+":":"")+"//"+e);var o=e.match(V);if(o){W?(r.scheme=o[1],r.userinfo=o[3],r.host=o[4],r.port=parseInt(o[5],10),r.path=o[6]||"",r.query=o[7],r.fragment=o[8],isNaN(r.port)&&(r.port=o[5])):(r.scheme=o[1]||void 0,r.userinfo=-1!==e.indexOf("@")?o[3]:void 0,r.host=-1!==e.indexOf("//")?o[4]:void 0,r.port=parseInt(o[5],10),r.path=o[6]||"",r.query=-1!==e.indexOf("?")?o[7]:void 0,r.fragment=-1!==e.indexOf("#")?o[8]:void 0,isNaN(r.port)&&(r.port=e.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/)?o[4]:void 0)),r.host&&(r.host=K($(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 i=H[(t.scheme||r.scheme||"").toLowerCase()];if(t.unicodeSupport||i&&i.unicodeSupport)z(r,n);else{if(r.host&&(t.domainHost||i&&i.domainHost))try{r.host=U.toASCII(r.host.replace(n.PCT_ENCODED,q).toLowerCase())}catch(e){r.error=r.error||"Host's domain name can not be converted to ASCII via punycode: "+e}z(r,c)}i&&i.parse&&i.parse(r,t)}else r.error=r.error||"URI can not be parsed.";return r}function Y(e,t){var r=!1!==t.iri?l:c,n=[];return void 0!==e.userinfo&&(n.push(e.userinfo),n.push("@")),void 0!==e.host&&n.push(K($(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 X=/^\.\.?\//,J=/^\/\.(\/|$)/,Z=/^\/\.\.(\/|$)/,ee=/^\/?(?:.|\n)*?(?=\/|$)/;function te(e){for(var t=[];e.length;)if(e.match(X))e=e.replace(X,"");else if(e.match(J))e=e.replace(J,"/");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?l:c,n=[],o=H[(t.scheme||e.scheme||"").toLowerCase()];if(o&&o.serialize&&o.serialize(e,t),e.host)if(r.IPV6ADDRESS.test(e.host));else if(t.domainHost||o&&o.domainHost)try{e.host=t.iri?U.toUnicode(e.host):U.toASCII(e.host.replace(r.PCT_ENCODED,q).toLowerCase())}catch(r){e.error=e.error||"Host's domain name can not be converted to "+(t.iri?"Unicode":"ASCII")+" via punycode: "+r}z(e,r),"suffix"!==t.reference&&e.scheme&&(n.push(e.scheme),n.push(":"));var i=Y(e,t);if(void 0!==i&&("suffix"!==t.reference&&n.push("//"),n.push(i),e.path&&"/"!==e.path.charAt(0)&&n.push("/")),void 0!==e.path){var s=e.path;t.absolutePath||o&&o.absolutePath||(s=te(s)),void 0===i&&(s=s.replace(/^\/\//,"/%2F")),n.push(s)}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=Q(re(e,r),r),t=Q(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 oe(e,t,r){var n=s({scheme:"null"},r);return re(ne(Q(e,n),Q(t,n),n,!0),n)}function ie(e,t){return"string"==typeof e?e=re(Q(e,t),t):"object"===n(e)&&(e=Q(re(e,t),t)),e}function se(e,t,r){return"string"==typeof e?e=re(Q(e,r),r):"object"===n(e)&&(e=re(e,r)),"string"==typeof t?t=re(Q(t,r),r):"object"===n(t)&&(t=re(t,r)),e===t}function ae(e,t){return e&&e.toString().replace(t&&t.iri?l.ESCAPE:c.ESCAPE,j)}function ce(e,t){return e&&e.toString().replace(t&&t.iri?l.PCT_ENCODED:c.PCT_ENCODED,q)}var le={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}},ue={scheme:"https",domainHost:le.domainHost,parse:le.parse,serialize:le.serialize};function he(e){return"boolean"==typeof e.secure?e.secure:"wss"===String(e.scheme).toLowerCase()}var fe={scheme:"ws",domainHost:!0,parse:function(e,t){var r=e;return r.secure=he(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!==(he(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=u(r,2),o=n[0],i=n[1];e.path=o&&"/"!==o?o:void 0,e.query=i,e.resourceName=void 0}return e.fragment=void 0,e}},pe={scheme:"wss",domainHost:fe.domainHost,parse:fe.parse,serialize:fe.serialize},de={},me="[A-Za-z0-9\\-\\.\\_\\~\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]",ge="[0-9A-Fa-f]",ye=r(r("%[EFef]"+ge+"%"+ge+ge+"%"+ge+ge)+"|"+r("%[89A-Fa-f]"+ge+"%"+ge+ge)+"|"+r("%"+ge+ge)),Ee="[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]",Te=t("[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]",'[\\"\\\\]'),ve="[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]",be=new RegExp(me,"g"),_e=new RegExp(ye,"g"),Ae=new RegExp(t("[^]",Ee,"[\\.]",'[\\"]',Te),"g"),Se=new RegExp(t("[^]",me,ve),"g"),ke=Se;function we(e){var t=q(e);return t.match(be)?t:e}var Ce={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 o=!1,i={},s=r.query.split("&"),a=0,c=s.length;a<c;++a){var l=s[a].split("=");switch(l[0]){case"to":for(var u=l[1].split(","),h=0,f=u.length;h<f;++h)n.push(u[h]);break;case"subject":r.subject=ce(l[1],t);break;case"body":r.body=ce(l[1],t);break;default:o=!0,i[ce(l[0],t)]=ce(l[1],t)}}o&&(r.headers=i)}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]=U.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=i(e.to);if(n){for(var s=0,a=n.length;s<a;++s){var c=String(n[s]),l=c.lastIndexOf("@"),u=c.slice(0,l).replace(_e,we).replace(_e,o).replace(Ae,j),h=c.slice(l+1);try{h=t.iri?U.toUnicode(h):U.toASCII(ce(h,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[s]=u+"@"+h}r.path=n.join(",")}var f=e.headers=e.headers||{};e.subject&&(f.subject=e.subject),e.body&&(f.body=e.body);var p=[];for(var d in f)f[d]!==de[d]&&p.push(d.replace(_e,we).replace(_e,o).replace(Se,j)+"="+f[d].replace(_e,we).replace(_e,o).replace(ke,j));return p.length&&(r.query=p.join("&")),r}},xe=/^([^\:]+)\:(.*)/,Oe={scheme:"urn",parse:function(e,t){var r=e.path&&e.path.match(xe),n=e;if(r){var o=t.scheme||n.scheme||"urn",i=r[1].toLowerCase(),s=r[2],a=o+":"+(t.nid||i),c=H[a];n.nid=i,n.nss=s,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,o=r+":"+(t.nid||n),i=H[o];i&&(e=i.serialize(e,t));var s=e,a=e.nss;return s.path=(n||t.nid)+":"+a,s}},Re=/^[0-9A-Fa-f]{8}(?:\-[0-9A-Fa-f]{4}){3}\-[0-9A-Fa-f]{12}$/,Ne={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(Re)||(r.error=r.error||"UUID is not valid."),r},serialize:function(e,t){var r=e;return r.nss=(e.uuid||"").toLowerCase(),r}};H[le.scheme]=le,H[ue.scheme]=ue,H[fe.scheme]=fe,H[pe.scheme]=pe,H[Ce.scheme]=Ce,H[Oe.scheme]=Oe,H[Ne.scheme]=Ne,e.SCHEMES=H,e.pctEncChar=j,e.pctDecChars=q,e.parse=Q,e.removeDotSegments=te,e.serialize=re,e.resolveComponents=ne,e.resolve=oe,e.normalize=ie,e.equal=se,e.escapeComponent=ae,e.unescapeComponent=ce,Object.defineProperty(e,"__esModule",{value:!0})}(me.exports);var ge=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,o,i;if(Array.isArray(t)){if((n=t.length)!=r.length)return!1;for(o=n;0!==o--;)if(!e(t[o],r[o]))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=(i=Object.keys(t)).length)!==Object.keys(r).length)return!1;for(o=n;0!==o--;)if(!Object.prototype.hasOwnProperty.call(r,i[o]))return!1;for(o=n;0!==o--;){var s=i[o];if(!e(t[s],r[s]))return!1}return!0}return t!=t&&r!=r},ye={copy:function(e,t){for(var r in t=t||{},e)t[r]=e[r];return t},checkDataType:Ee,checkDataTypes:function(e,t,r){if(1===e.length)return Ee(e[0],t,r,!0);var n="",o=ve(e);for(var i in o.array&&o.object&&(n=o.null?"(":"(!"+t+" || ",n+="typeof "+t+' !== "object")',delete o.null,delete o.array,delete o.object),o.number&&delete o.integer,o)n+=(n?" && ":"")+Ee(i,t,r,!0);return n},coerceToTypes:function(e,t){if(Array.isArray(t)){for(var r=[],n=0;n<t.length;n++){var o=t[n];(Te[o]||"array"===e&&"array"===o)&&(r[r.length]=o)}if(r.length)return r}else{if(Te[t])return[t];if("array"===e&&"array"===t)return["array"]}},toHash:ve,getProperty:Ae,escapeQuotes:Se,equal:ge,ucs2length:function(e){for(var t,r=0,n=e.length,o=0;o<n;)r++,(t=e.charCodeAt(o++))>=55296&&t<=56319&&o<n&&56320==(64512&(t=e.charCodeAt(o)))&&o++;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:ke,getPathExpr:function(e,t,r,n){var o=r?"'/' + "+t+(n?"":".replace(/~/g, '~0').replace(/\\//g, '~1')"):n?"'[' + "+t+" + ']'":"'[\\'' + "+t+" + '\\']'";return xe(e,o)},getPath:function(e,t,r){var n=ke(r?"/"+Oe(t):Ae(t));return xe(e,n)},getData:function(e,t,r){var n,o,i,s;if(""===e)return"rootData";if("/"==e[0]){if(!we.test(e))throw new Error("Invalid JSON-pointer: "+e);o=e,i="rootData"}else{if(!(s=e.match(Ce)))throw new Error("Invalid JSON-pointer: "+e);if(n=+s[1],"#"==(o=s[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(i="data"+(t-n||""),!o)return i}for(var a=i,c=o.split("/"),l=0;l<c.length;l++){var u=c[l];u&&(a+=" && "+(i+=Ae(Re(u))))}return a},unescapeFragment:function(e){return Re(decodeURIComponent(e))},unescapeJsonPointer:Re,escapeFragment:function(e){return encodeURIComponent(Oe(e))},escapeJsonPointer:Oe};function Ee(e,t,r,n){var o=n?" !== ":" === ",i=n?" || ":" && ",s=n?"!":"",a=n?"":"!";switch(e){case"null":return t+o+"null";case"array":return s+"Array.isArray("+t+")";case"object":return"("+s+t+i+"typeof "+t+o+'"object"'+i+a+"Array.isArray("+t+"))";case"integer":return"(typeof "+t+o+'"number"'+i+a+"("+t+" % 1)"+i+t+o+t+(r?i+s+"isFinite("+t+")":"")+")";case"number":return"(typeof "+t+o+'"'+e+'"'+(r?i+s+"isFinite("+t+")":"")+")";default:return"typeof "+t+o+'"'+e+'"'}}var Te=ve(["string","number","integer","boolean","null"]);function ve(e){for(var t={},r=0;r<e.length;r++)t[e[r]]=!0;return t}var be=/^[a-z$_][a-z$_0-9]*$/i,_e=/'|\\/g;function Ae(e){return"number"==typeof e?"["+e+"]":be.test(e)?"."+e:"['"+Se(e)+"']"}function Se(e){return e.replace(_e,"\\$&").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\f/g,"\\f").replace(/\t/g,"\\t")}function ke(e){return"'"+Se(e)+"'"}var we=/^\/(?:[^~]|~0|~1)*$/,Ce=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function xe(e,t){return'""'==e?t:(e+" + "+t).replace(/([^\\])' \+ '/g,"$1")}function Oe(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}function Re(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}var Ne=ye,Pe=function(e){Ne.copy(e,this)};var Ie={exports:{}},Le=Ie.exports=function(e,t,r){"function"==typeof t&&(r=t,t={}),De(t,"function"==typeof(r=t.cb||r)?r:r.pre||function(){},r.post||function(){},e,"",e)};function De(e,t,r,n,o,i,s,a,c,l){if(n&&"object"==typeof n&&!Array.isArray(n)){for(var u in t(n,o,i,s,a,c,l),n){var h=n[u];if(Array.isArray(h)){if(u in Le.arrayKeywords)for(var f=0;f<h.length;f++)De(e,t,r,h[f],o+"/"+u+"/"+f,i,o,u,n,f)}else if(u in Le.propsKeywords){if(h&&"object"==typeof h)for(var p in h)De(e,t,r,h[p],o+"/"+u+"/"+Fe(p),i,o,u,n,p)}else(u in Le.keywords||e.allKeys&&!(u in Le.skipKeywords))&&De(e,t,r,h,o+"/"+u,i,o,u,n)}r(n,o,i,s,a,c,l)}}function Fe(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}Le.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0},Le.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0},Le.propsKeywords={definitions:!0,properties:!0,patternProperties:!0,dependencies:!0},Le.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 Me=me.exports,Be=ge,Ue=ye,He=Pe,je=Ie.exports,qe=ze;function ze(e,t,r){var n=this._refs[r];if("string"==typeof n){if(!this._refs[n])return ze.call(this,e,t,n);n=this._refs[n]}if((n=n||this._schemas[r])instanceof He)return Qe(n.schema,this._opts.inlineRefs)?n.schema:n.validate||this._compile(n);var o,i,s,a=Ge.call(this,t,r);return a&&(o=a.schema,t=a.root,s=a.baseId),o instanceof He?i=o.validate||e.call(this,o.schema,t,void 0,s):void 0!==o&&(i=Qe(o,this._opts.inlineRefs)?o:e.call(this,o,t,void 0,s)),i}function Ge(e,t){var r=Me.parse(t),n=Ze(r),o=Je(this._getId(e.schema));if(0===Object.keys(e.schema).length||n!==o){var i=tt(n),s=this._refs[i];if("string"==typeof s)return $e.call(this,e,s,r);if(s instanceof He)s.validate||this._compile(s),e=s;else{if(!((s=this._schemas[i])instanceof He))return;if(s.validate||this._compile(s),i==tt(t))return{schema:s,root:e,baseId:o};e=s}if(!e.schema)return;o=Je(this._getId(e.schema))}return Ve.call(this,r,o,e.schema,e)}function $e(e,t,r){var n=Ge.call(this,e,t);if(n){var o=n.schema,i=n.baseId;e=n.root;var s=this._getId(o);return s&&(i=rt(i,s)),Ve.call(this,r,i,o,e)}}ze.normalizeId=tt,ze.fullPath=Je,ze.url=rt,ze.ids=function(e){var t=tt(this._getId(e)),r={"":t},n={"":Je(t,!1)},o={},i=this;return je(e,{allKeys:!0},function(e,t,s,a,c,l,u){if(""!==t){var h=i._getId(e),f=r[a],p=n[a]+"/"+c;if(void 0!==u&&(p+="/"+("number"==typeof u?u:Ue.escapeFragment(u))),"string"==typeof h){h=f=tt(f?Me.resolve(f,h):h);var d=i._refs[h];if("string"==typeof d&&(d=i._refs[d]),d&&d.schema){if(!Be(e,d.schema))throw new Error('id "'+h+'" resolves to more than one schema')}else if(h!=tt(p))if("#"==h[0]){if(o[h]&&!Be(e,o[h]))throw new Error('id "'+h+'" resolves to more than one schema');o[h]=e}else i._refs[h]=p}r[t]=f,n[t]=p}}),o},ze.inlineRef=Qe,ze.schema=Ge;var Ke=Ue.toHash(["properties","patternProperties","enum","dependencies","definitions"]);function Ve(e,t,r,n){if(e.fragment=e.fragment||"","/"==e.fragment.slice(0,1)){for(var o=e.fragment.split("/"),i=1;i<o.length;i++){var s=o[i];if(s){if(void 0===(r=r[s=Ue.unescapeFragment(s)]))break;var a;if(!Ke[s]&&((a=this._getId(r))&&(t=rt(t,a)),r.$ref)){var c=rt(t,r.$ref),l=Ge.call(this,n,c);l&&(r=l.schema,n=l.root,t=l.baseId)}}}return void 0!==r&&r!==n.schema?{schema:r,root:n,baseId:t}:void 0}}var We=Ue.toHash(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum"]);function Qe(e,t){return!1!==t&&(void 0===t||!0===t?Ye(e):t?Xe(e)<=t:void 0)}function Ye(e){var t;if(Array.isArray(e)){for(var r=0;r<e.length;r++)if("object"==typeof(t=e[r])&&!Ye(t))return!1}else for(var n in e){if("$ref"==n)return!1;if("object"==typeof(t=e[n])&&!Ye(t))return!1}return!0}function Xe(e){var t,r=0;if(Array.isArray(e)){for(var n=0;n<e.length;n++)if("object"==typeof(t=e[n])&&(r+=Xe(t)),r==1/0)return 1/0}else for(var o in e){if("$ref"==o)return 1/0;if(We[o])r++;else if("object"==typeof(t=e[o])&&(r+=Xe(t)+1),r==1/0)return 1/0}return r}function Je(e,t){return!1!==t&&(e=tt(e)),Ze(Me.parse(e))}function Ze(e){return Me.serialize(e).split("#")[0]+"#"}var et=/#\/?$/;function tt(e){return e?e.replace(et,""):""}function rt(e,t){return t=tt(t),Me.resolve(e,t)}var nt=qe,ot={Validation:st(function(e){this.message="validation failed",this.errors=e,this.ajv=this.validation=!0}),MissingRef:st(it)};function it(e,t,r){this.message=r||it.message(e,t),this.missingRef=nt.url(e,t),this.missingSchema=nt.normalizeId(nt.fullPath(this.missingRef))}function st(e){return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}it.message=function(e,t){return"can't resolve reference "+t+" from id "+e};var at=function(e,t){t||(t={}),"function"==typeof t&&(t={cmp:t});var r="boolean"==typeof t.cycles&&t.cycles,n=t.cmp&&function(e){return function(t){return function(r,n){var o={key:r,value:t[r]},i={key:n,value:t[n]};return e(o,i)}}}(t.cmp),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 i,s;if(Array.isArray(t)){for(s="[",i=0;i<t.length;i++)i&&(s+=","),s+=e(t[i])||"null";return s+"]"}if(null===t)return"null";if(-1!==o.indexOf(t)){if(r)return JSON.stringify("__cycle__");throw new TypeError("Converting circular structure to JSON")}var a=o.push(t)-1,c=Object.keys(t).sort(n&&n(t));for(s="",i=0;i<c.length;i++){var l=c[i],u=e(t[l]);u&&(s&&(s+=","),s+=JSON.stringify(l)+":"+u)}return o.splice(a,1),"{"+s+"}"}}(e)},ct=function(e,t,r){var n="",o=!0===e.schema.$async,i=e.util.schemaHasRulesExcept(e.schema,e.RULES.all,"$ref"),s=e.self._getId(e.schema);if(e.opts.strictKeywords){var a=e.util.schemaUnknownRules(e.schema,e.RULES.keywords);if(a){var c="unknown keyword: "+a;if("log"!==e.opts.strictKeywords)throw new Error(c);e.logger.warn(c)}}if(e.isTop&&(n+=" var validate = ",o&&(e.async=!0,n+="async "),n+="function(data, dataPath, parentData, parentDataProperty, rootData) { 'use strict'; ",s&&(e.opts.sourceCode||e.opts.processCode)&&(n+=" /*# sourceURL="+s+" */ ")),"boolean"==typeof e.schema||!i&&!e.schema.$ref){t="false schema";var l=e.level,u=e.dataLevel,h=e.schema[t],f=e.schemaPath+e.util.getProperty(t),p=e.errSchemaPath+"/"+t,d=!e.opts.allErrors,m="data"+(u||""),g="valid"+l;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 y=n;n=Y.pop(),!e.compositeRule&&d?e.async?n+=" throw new ValidationError(["+y+"]); ":n+=" validate.errors = ["+y+"]; return false; ":n+=" var err = "+y+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}else e.isTop?n+=o?" return data; ":" validate.errors = null; return true; ":n+=" var "+g+" = true; ";return e.isTop&&(n+=" }; return validate; "),n}if(e.isTop){var E=e.isTop;l=e.level=0,u=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 T="default is ignored in the schema root";if("log"!==e.opts.strictDefaults)throw new Error(T);e.logger.warn(T)}n+=" var vErrors = null; ",n+=" var errors = 0; ",n+=" if (rootData === undefined) rootData = data; "}else{l=e.level,m="data"+((u=e.dataLevel)||"");if(s&&(e.baseId=e.resolve.url(e.baseId,s)),o&&!e.async)throw new Error("async schema in sync schema");n+=" var errs_"+l+" = errors;"}g="valid"+l,d=!e.opts.allErrors;var v="",b="",_=e.schema.type,A=Array.isArray(_);if(_&&e.opts.nullable&&!0===e.schema.nullable&&(A?-1==_.indexOf("null")&&(_=_.concat("null")):"null"!=_&&(_=[_,"null"],A=!0)),A&&1==_.length&&(_=_[0],A=!1),e.schema.$ref&&i){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&&(i=!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")),_){if(e.opts.coerceTypes)var S=e.util.coerceToTypes(e.opts.coerceTypes,_);var k=e.RULES.types[_];if(S||A||!0===k||k&&!X(k)){f=e.schemaPath+".type",p=e.errSchemaPath+"/type",f=e.schemaPath+".type",p=e.errSchemaPath+"/type";var w=A?"checkDataTypes":"checkDataType";if(n+=" if ("+e.util[w](_,m,e.opts.strictNumbers,!0)+") { ",S){var C="dataType"+l,x="coerced"+l;n+=" var "+C+" = typeof "+m+"; var "+x+" = undefined; ","array"==e.opts.coerceTypes&&(n+=" if ("+C+" == 'object' && Array.isArray("+m+") && "+m+".length == 1) { "+m+" = "+m+"[0]; "+C+" = typeof "+m+"; if ("+e.util.checkDataType(e.schema.type,m,e.opts.strictNumbers)+") "+x+" = "+m+"; } "),n+=" if ("+x+" !== undefined) ; ";var O=S;if(O)for(var R,N=-1,P=O.length-1;N<P;)"string"==(R=O[N+=1])?n+=" else if ("+C+" == 'number' || "+C+" == 'boolean') "+x+" = '' + "+m+"; else if ("+m+" === null) "+x+" = ''; ":"number"==R||"integer"==R?(n+=" else if ("+C+" == 'boolean' || "+m+" === null || ("+C+" == 'string' && "+m+" && "+m+" == +"+m+" ","integer"==R&&(n+=" && !("+m+" % 1)"),n+=")) "+x+" = +"+m+"; "):"boolean"==R?n+=" else if ("+m+" === 'false' || "+m+" === 0 || "+m+" === null) "+x+" = false; else if ("+m+" === 'true' || "+m+" === 1) "+x+" = true; ":"null"==R?n+=" else if ("+m+" === '' || "+m+" === 0 || "+m+" === false) "+x+" = null; ":"array"==e.opts.coerceTypes&&"array"==R&&(n+=" else if ("+C+" == 'string' || "+C+" == 'number' || "+C+" == 'boolean' || "+m+" == null) "+x+" = ["+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+=A?""+_.join(","):""+_,n+="' } ",!1!==e.opts.messages&&(n+=" , message: 'should be ",n+=A?""+_.join(","):""+_,n+="' "),e.opts.verbose&&(n+=" , schema: validate.schema"+f+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+m+" "),n+=" } "):n+=" {} ";y=n;n=Y.pop(),!e.compositeRule&&d?e.async?n+=" throw new ValidationError(["+y+"]); ":n+=" validate.errors = ["+y+"]; return false; ":n+=" var err = "+y+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" } if ("+x+" !== undefined) { ";var I=u?"data"+(u-1||""):"parentData";n+=" "+m+" = "+x+"; ",u||(n+="if ("+I+" !== undefined)"),n+=" "+I+"["+(u?e.dataPathArr[u]:"parentDataProperty")+"] = "+x+"; } "}else{(Y=Y||[]).push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'type' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(p)+" , params: { type: '",n+=A?""+_.join(","):""+_,n+="' } ",!1!==e.opts.messages&&(n+=" , message: 'should be ",n+=A?""+_.join(","):""+_,n+="' "),e.opts.verbose&&(n+=" , schema: validate.schema"+f+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+m+" "),n+=" } "):n+=" {} ";y=n;n=Y.pop(),!e.compositeRule&&d?e.async?n+=" throw new ValidationError(["+y+"]); ":n+=" validate.errors = ["+y+"]; return false; ":n+=" var err = "+y+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}n+=" } "}}if(e.schema.$ref&&!i)n+=" "+e.RULES.all.$ref.code(e,"$ref")+" ",d&&(n+=" } if (errors === ",n+=E?"0":"errs_"+l,n+=") { ",b+="}");else{var L=e.RULES;if(L)for(var D=-1,F=L.length-1;D<F;)if(X(k=L[D+=1])){if(k.type&&(n+=" if ("+e.util.checkDataType(k.type,m,e.opts.strictNumbers)+") { "),e.opts.useDefaults)if("object"==k.type&&e.schema.properties){h=e.schema.properties;var M=Object.keys(h);if(M)for(var B,U=-1,H=M.length-1;U<H;){if(void 0!==(z=h[B=M[U+=1]]).default){var j=m+e.util.getProperty(B);if(e.compositeRule){if(e.opts.strictDefaults){T="default is ignored for: "+j;if("log"!==e.opts.strictDefaults)throw new Error(T);e.logger.warn(T)}}else n+=" if ("+j+" === undefined ","empty"==e.opts.useDefaults&&(n+=" || "+j+" === null || "+j+" === '' "),n+=" ) "+j+" = ","shared"==e.opts.useDefaults?n+=" "+e.useDefault(z.default)+" ":n+=" "+JSON.stringify(z.default)+" ",n+="; "}}}else if("array"==k.type&&Array.isArray(e.schema.items)){var q=e.schema.items;if(q){N=-1;for(var z,G=q.length-1;N<G;)if(void 0!==(z=q[N+=1]).default){j=m+"["+N+"]";if(e.compositeRule){if(e.opts.strictDefaults){T="default is ignored for: "+j;if("log"!==e.opts.strictDefaults)throw new Error(T);e.logger.warn(T)}}else n+=" if ("+j+" === undefined ","empty"==e.opts.useDefaults&&(n+=" || "+j+" === null || "+j+" === '' "),n+=" ) "+j+" = ","shared"==e.opts.useDefaults?n+=" "+e.useDefault(z.default)+" ":n+=" "+JSON.stringify(z.default)+" ",n+="; "}}}var $=k.rules;if($)for(var K,V=-1,W=$.length-1;V<W;)if(J(K=$[V+=1])){var Q=K.code(e,K.keyword,k.type);Q&&(n+=" "+Q+" ",d&&(v+="}"))}if(d&&(n+=" "+v+" ",v=""),k.type&&(n+=" } ",_&&_===k.type&&!S)){n+=" else { ";var Y;f=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+=A?""+_.join(","):""+_,n+="' } ",!1!==e.opts.messages&&(n+=" , message: 'should be ",n+=A?""+_.join(","):""+_,n+="' "),e.opts.verbose&&(n+=" , schema: validate.schema"+f+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+m+" "),n+=" } "):n+=" {} ";y=n;n=Y.pop(),!e.compositeRule&&d?e.async?n+=" throw new ValidationError(["+y+"]); ":n+=" validate.errors = ["+y+"]; return false; ":n+=" var err = "+y+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" } "}d&&(n+=" if (errors === ",n+=E?"0":"errs_"+l,n+=") { ",b+="}")}}function X(e){for(var t=e.rules,r=0;r<t.length;r++)if(J(t[r]))return!0}function J(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+=" "+b+" "),E?(o?(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_"+l+";",n},lt=qe,ut=ye,ht=ot,ft=at,pt=ct,dt=ut.ucs2length,mt=ge,gt=ht.Validation,yt=function e(t,r,n,o){var i=this,s=this._opts,a=[void 0],c={},l=[],u={},h=[],f={},p=[];r=r||{schema:t,refVal:a,refs:c};var d=Et.call(this,t,r,o),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,y=this.RULES;try{var E=v(t,r,n,o);m.validate=E;var T=m.callValidate;return T&&(T.schema=E.schema,T.errors=null,T.refs=E.refs,T.refVal=E.refVal,T.root=E.root,T.$async=E.$async,s.sourceCode&&(T.source=E.source)),E}finally{Tt.call(this,t,r,o)}function v(t,n,o,u){var f=!n||n&&n.schema==t;if(n.schema!=r.schema)return e.call(i,t,n,o,u);var d,m=!0===t.$async,E=pt({isTop:!0,schema:t,isRoot:f,baseId:u,root:n,schemaPath:"",errSchemaPath:"#",errorPath:'""',MissingRefError:ht.MissingRef,RULES:y,validate:pt,util:ut,resolve:lt,resolveRef:b,usePattern:S,useDefault:k,useCustomRule:w,opts:s,formats:g,logger:i.logger,self:i});E=kt(a,At)+kt(l,bt)+kt(h,_t)+kt(p,St)+E,s.processCode&&(E=s.processCode(E,t));try{d=new Function("self","RULES","formats","root","refVal","defaults","customRules","equal","ucs2length","ValidationError",E)(i,y,g,r,a,h,p,mt,dt,gt),a[0]=d}catch(e){throw i.logger.error("Error compiling schema, function code:",E),e}return d.schema=t,d.errors=null,d.refs=c,d.refVal=a,d.root=f?d:n,m&&(d.$async=!0),!0===s.sourceCode&&(d.source={code:E,patterns:l,defaults:h}),d}function b(t,o,l){o=lt.url(t,o);var u,h,f=c[o];if(void 0!==f)return A(u=a[f],h="refVal["+f+"]");if(!l&&r.refs){var p=r.refs[o];if(void 0!==p)return A(u=r.refVal[p],h=_(o,u))}h=_(o);var d=lt.call(i,v,r,o);if(void 0===d){var m=n&&n[o];m&&(d=lt.inlineRef(m,s.inlineRefs)?m:e.call(i,m,r,n,t))}if(void 0!==d)return function(e,t){var r=c[e];a[r]=t}(o,d),A(d,h);!function(e){delete c[e]}(o)}function _(e,t){var r=a.length;return a[r]=t,c[e]=r,"refVal"+r}function A(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=u[e];return void 0===t&&(t=u[e]=l.length,l[t]=e),"pattern"+t}function k(e){switch(typeof e){case"boolean":case"number":return""+e;case"string":return ut.toQuotedString(e);case"object":if(null===e)return"null";var t=ft(e),r=f[t];return void 0===r&&(r=f[t]=h.length,h[r]=e),"default"+r}}function w(e,t,r,n){if(!1!==i._opts.validateSchema){var o=e.definition.dependencies;if(o&&!o.every(function(e){return Object.prototype.hasOwnProperty.call(r,e)}))throw new Error("parent schema must have all required keywords: "+o.join(","));var a=e.definition.validateSchema;if(a)if(!a(t)){var c="keyword schema is invalid: "+i.errorsText(a.errors);if("log"!=i._opts.validateSchema)throw new Error(c);i.logger.error(c)}}var l,u=e.definition.compile,h=e.definition.inline,f=e.definition.macro;if(u)l=u.call(i,t,r,n);else if(f)l=f.call(i,t,r,n),!1!==s.validateSchema&&i.validateSchema(l,!0);else if(h)l=h.call(i,n,e.keyword,t,r);else if(!(l=e.definition.validate))return;if(void 0===l)throw new Error('custom keyword "'+e.keyword+'"failed to compile');var d=p.length;return p[d]=l,{code:"customRule"+d,validate:l}}};function Et(e,t,r){var n=vt.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 Tt(e,t,r){var n=vt.call(this,e,t,r);n>=0&&this._compilations.splice(n,1)}function vt(e,t,r){for(var n=0;n<this._compilations.length;n++){var o=this._compilations[n];if(o.schema==e&&o.root==t&&o.baseId==r)return n}return-1}function bt(e,t){return"var pattern"+e+" = new RegExp("+ut.toQuotedString(t[e])+");"}function _t(e){return"var default"+e+" = defaults["+e+"];"}function At(e,t){return void 0===t[e]?"":"var refVal"+e+" = refVal["+e+"];"}function St(e){return"var customRule"+e+" = customRules["+e+"];"}function kt(e,t){if(!e.length)return"";for(var r="",n=0;n<e.length;n++)r+=t(n,e);return r}var wt={exports:{}},Ct=wt.exports=function(){this._cache={}};Ct.prototype.put=function(e,t){this._cache[e]=t},Ct.prototype.get=function(e){return this._cache[e]},Ct.prototype.del=function(e){delete this._cache[e]},Ct.prototype.clear=function(){this._cache={}};var xt=ye,Ot=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,Rt=[0,31,28,31,30,31,30,31,31,30,31,30,31],Nt=/^(\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,It=/^(?:[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,Lt=/^(?:(?:[^\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,Dt=/^(?:(?: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,Mt=/^(?:\/(?:[^~/]|~0|~1)*)*$/,Bt=/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,Ut=/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/,Ht=jt;function jt(e){return e="full"==e?"full":"fast",xt.copy(jt[e])}function qt(e){var t=e.match(Ot);if(!t)return!1;var r=+t[1],n=+t[2],o=+t[3];return n>=1&&n<=12&&o>=1&&o<=(2==n&&function(e){return e%4==0&&(e%100!=0||e%400==0)}(r)?29:Rt[n])}function zt(e,t){var r=e.match(Nt);if(!r)return!1;var n=r[1],o=r[2],i=r[3],s=r[5];return(n<=23&&o<=59&&i<=59||23==n&&59==o&&60==i)&&(!t||s)}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":Lt,url:Dt,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:Vt,uuid:Ft,"json-pointer":Mt,"json-pointer-uri-fragment":Bt,"relative-json-pointer":Ut},jt.full={date:qt,time:zt,"date-time":function(e){var t=e.split(Gt);return 2==t.length&&qt(t[0])&&zt(t[1],!0)},uri:function(e){return $t.test(e)&&It.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":Lt,url:Dt,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:Vt,uuid:Ft,"json-pointer":Mt,"json-pointer-uri-fragment":Bt,"relative-json-pointer":Ut};var Gt=/t|\s/i;var $t=/\/|:/;var Kt=/[^\\]\\Z/;function Vt(e){if(Kt.test(e))return!1;try{return new RegExp(e),!0}catch(e){return!1}}var Wt=function(e,t,r){var n,o=" ",i=e.level,s=e.dataLevel,a=e.schema[t],c=e.schemaPath+e.util.getProperty(t),l=e.errSchemaPath+"/"+t,u=!e.opts.allErrors,h="data"+(s||""),f=e.opts.$data&&a&&a.$data;f?(o+=" var schema"+i+" = "+e.util.getData(a.$data,s,e.dataPathArr)+"; ",n="schema"+i):n=a;var p="maximum"==t,d=p?"exclusiveMaximum":"exclusiveMinimum",m=e.schema[d],g=e.opts.$data&&m&&m.$data,y=p?"<":">",E=p?">":"<",T=void 0;if(!f&&"number"!=typeof a&&void 0!==a)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 v=e.util.getData(m.$data,s,e.dataPathArr),b="exclusive"+i,_="exclType"+i,A="exclIsNumber"+i,S="' + "+(C="op"+i)+" + '";o+=" var schemaExcl"+i+" = "+v+"; ",o+=" var "+b+"; var "+_+" = typeof "+(v="schemaExcl"+i)+"; if ("+_+" != 'boolean' && "+_+" != 'undefined' && "+_+" != 'number') { ";var k;T=d;(k=k||[]).push(o),o="",!1!==e.createErrors?(o+=" { keyword: '"+(T||"_exclusiveLimit")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: {} ",!1!==e.opts.messages&&(o+=" , message: '"+d+" should be boolean' "),e.opts.verbose&&(o+=" , schema: validate.schema"+c+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+h+" "),o+=" } "):o+=" {} ";var w=o;o=k.pop(),!e.compositeRule&&u?e.async?o+=" throw new ValidationError(["+w+"]); ":o+=" validate.errors = ["+w+"]; return false; ":o+=" var err = "+w+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",o+=" } else if ( ",f&&(o+=" ("+n+" !== undefined && typeof "+n+" != 'number') || "),o+=" "+_+" == 'number' ? ( ("+b+" = "+n+" === undefined || "+v+" "+y+"= "+n+") ? "+h+" "+E+"= "+v+" : "+h+" "+E+" "+n+" ) : ( ("+b+" = "+v+" === true) ? "+h+" "+E+"= "+n+" : "+h+" "+E+" "+n+" ) || "+h+" !== "+h+") { var op"+i+" = "+b+" ? '"+y+"' : '"+y+"='; ",void 0===a&&(T=d,l=e.errSchemaPath+"/"+d,n=v,f=g)}else{S=y;if((A="number"==typeof m)&&f){var C="'"+S+"'";o+=" if ( ",f&&(o+=" ("+n+" !== undefined && typeof "+n+" != 'number') || "),o+=" ( "+n+" === undefined || "+m+" "+y+"= "+n+" ? "+h+" "+E+"= "+m+" : "+h+" "+E+" "+n+" ) || "+h+" !== "+h+") { "}else{A&&void 0===a?(b=!0,T=d,l=e.errSchemaPath+"/"+d,n=m,E+="="):(A&&(n=Math[p?"min":"max"](m,a)),m===(!A||n)?(b=!0,T=d,l=e.errSchemaPath+"/"+d,E+="="):(b=!1,S+="="));C="'"+S+"'";o+=" if ( ",f&&(o+=" ("+n+" !== undefined && typeof "+n+" != 'number') || "),o+=" "+h+" "+E+" "+n+" || "+h+" !== "+h+") { "}}T=T||t,(k=k||[]).push(o),o="",!1!==e.createErrors?(o+=" { keyword: '"+(T||"_limit")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { comparison: "+C+", limit: "+n+", exclusive: "+b+" } ",!1!==e.opts.messages&&(o+=" , message: 'should be "+S+" ",o+=f?"' + "+n:n+"'"),e.opts.verbose&&(o+=" , schema: ",o+=f?"validate.schema"+c:""+a,o+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+h+" "),o+=" } "):o+=" {} ";w=o;return o=k.pop(),!e.compositeRule&&u?e.async?o+=" throw new ValidationError(["+w+"]); ":o+=" validate.errors = ["+w+"]; return false; ":o+=" var err = "+w+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",o+=" } ",u&&(o+=" else { "),o},Qt=function(e,t,r){var n,o=" ",i=e.level,s=e.dataLevel,a=e.schema[t],c=e.schemaPath+e.util.getProperty(t),l=e.errSchemaPath+"/"+t,u=!e.opts.allErrors,h="data"+(s||""),f=e.opts.$data&&a&&a.$data;if(f?(o+=" var schema"+i+" = "+e.util.getData(a.$data,s,e.dataPathArr)+"; ",n="schema"+i):n=a,!f&&"number"!=typeof a)throw new Error(t+" must be number");o+="if ( ",f&&(o+=" ("+n+" !== undefined && typeof "+n+" != 'number') || "),o+=" "+h+".length "+("maxItems"==t?">":"<")+" "+n+") { ";var p=t,d=d||[];d.push(o),o="",!1!==e.createErrors?(o+=" { keyword: '"+(p||"_limitItems")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { limit: "+n+" } ",!1!==e.opts.messages&&(o+=" , message: 'should NOT have ",o+="maxItems"==t?"more":"fewer",o+=" than ",o+=f?"' + "+n+" + '":""+a,o+=" items' "),e.opts.verbose&&(o+=" , schema: ",o+=f?"validate.schema"+c:""+a,o+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+h+" "),o+=" } "):o+=" {} ";var m=o;return o=d.pop(),!e.compositeRule&&u?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++; ",o+="} ",u&&(o+=" else { "),o},Yt=function(e,t,r){var n,o=" ",i=e.level,s=e.dataLevel,a=e.schema[t],c=e.schemaPath+e.util.getProperty(t),l=e.errSchemaPath+"/"+t,u=!e.opts.allErrors,h="data"+(s||""),f=e.opts.$data&&a&&a.$data;if(f?(o+=" var schema"+i+" = "+e.util.getData(a.$data,s,e.dataPathArr)+"; ",n="schema"+i):n=a,!f&&"number"!=typeof a)throw new Error(t+" must be number");var p="maxLength"==t?">":"<";o+="if ( ",f&&(o+=" ("+n+" !== undefined && typeof "+n+" != 'number') || "),!1===e.opts.unicode?o+=" "+h+".length ":o+=" ucs2length("+h+") ",o+=" "+p+" "+n+") { ";var d=t,m=m||[];m.push(o),o="",!1!==e.createErrors?(o+=" { keyword: '"+(d||"_limitLength")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { limit: "+n+" } ",!1!==e.opts.messages&&(o+=" , message: 'should NOT be ",o+="maxLength"==t?"longer":"shorter",o+=" than ",o+=f?"' + "+n+" + '":""+a,o+=" characters' "),e.opts.verbose&&(o+=" , schema: ",o+=f?"validate.schema"+c:""+a,o+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+h+" "),o+=" } "):o+=" {} ";var g=o;return o=m.pop(),!e.compositeRule&&u?e.async?o+=" throw new ValidationError(["+g+"]); ":o+=" validate.errors = ["+g+"]; return false; ":o+=" var err = "+g+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",o+="} ",u&&(o+=" else { "),o},Xt=function(e,t,r){var n,o=" ",i=e.level,s=e.dataLevel,a=e.schema[t],c=e.schemaPath+e.util.getProperty(t),l=e.errSchemaPath+"/"+t,u=!e.opts.allErrors,h="data"+(s||""),f=e.opts.$data&&a&&a.$data;if(f?(o+=" var schema"+i+" = "+e.util.getData(a.$data,s,e.dataPathArr)+"; ",n="schema"+i):n=a,!f&&"number"!=typeof a)throw new Error(t+" must be number");o+="if ( ",f&&(o+=" ("+n+" !== undefined && typeof "+n+" != 'number') || "),o+=" Object.keys("+h+").length "+("maxProperties"==t?">":"<")+" "+n+") { ";var p=t,d=d||[];d.push(o),o="",!1!==e.createErrors?(o+=" { keyword: '"+(p||"_limitProperties")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { limit: "+n+" } ",!1!==e.opts.messages&&(o+=" , message: 'should NOT have ",o+="maxProperties"==t?"more":"fewer",o+=" than ",o+=f?"' + "+n+" + '":""+a,o+=" properties' "),e.opts.verbose&&(o+=" , schema: ",o+=f?"validate.schema"+c:""+a,o+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+h+" "),o+=" } "):o+=" {} ";var m=o;return o=d.pop(),!e.compositeRule&&u?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++; ",o+="} ",u&&(o+=" else { "),o},Jt={$ref:function(e,t,r){var n,o,i=" ",s=e.level,a=e.dataLevel,c=e.schema[t],l=e.errSchemaPath+"/"+t,u=!e.opts.allErrors,h="data"+(a||""),f="valid"+s;if("#"==c||"#/"==c)e.isRoot?(n=e.async,o="validate"):(n=!0===e.root.schema.$async,o="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),(E=E||[]).push(i),i="",!1!==e.createErrors?(i+=" { keyword: '$ref' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { ref: '"+e.util.escapeQuotes(c)+"' } ",!1!==e.opts.messages&&(i+=" , message: 'can\\'t resolve reference "+e.util.escapeQuotes(c)+"' "),e.opts.verbose&&(i+=" , schema: "+e.util.toQuotedString(c)+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+h+" "),i+=" } "):i+=" {} ";var m=i;i=E.pop(),!e.compositeRule&&u?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++; ",u&&(i+=" if (false) { ")}else{if("ignore"!=e.opts.missingRefs)throw new e.MissingRefError(e.baseId,c,d);e.logger.warn(d),u&&(i+=" if (true) { ")}}else if(p.inline){var g=e.util.copy(e);g.level++;var y="valid"+g.level;g.schema=p.schema,g.schemaPath="",g.errSchemaPath=c,i+=" "+e.validate(g).replace(/validate\.schema/g,p.code)+" ",u&&(i+=" if ("+y+") { ")}else n=!0===p.$async||e.async&&!1!==p.$async,o=p.code}if(o){var E;(E=E||[]).push(i),i="",e.opts.passContext?i+=" "+o+".call(this, ":i+=" "+o+"( ",i+=" "+h+", (dataPath || '')",'""'!=e.errorPath&&(i+=" + "+e.errorPath);var T=i+=" , "+(a?"data"+(a-1||""):"parentData")+" , "+(a?e.dataPathArr[a]:"parentDataProperty")+", rootData) ";if(i=E.pop(),n){if(!e.async)throw new Error("async schema referenced by sync schema");u&&(i+=" var "+f+"; "),i+=" try { await "+T+"; ",u&&(i+=" "+f+" = true; "),i+=" } catch (e) { if (!(e instanceof ValidationError)) throw e; if (vErrors === null) vErrors = e.errors; else vErrors = vErrors.concat(e.errors); errors = vErrors.length; ",u&&(i+=" "+f+" = false; "),i+=" } ",u&&(i+=" if ("+f+") { ")}else i+=" if (!"+T+") { if (vErrors === null) vErrors = "+o+".errors; else vErrors = vErrors.concat("+o+".errors); errors = vErrors.length; } ",u&&(i+=" else { ")}return i},allOf:function(e,t,r){var n=" ",o=e.schema[t],i=e.schemaPath+e.util.getProperty(t),s=e.errSchemaPath+"/"+t,a=!e.opts.allErrors,c=e.util.copy(e),l="";c.level++;var u="valid"+c.level,h=c.baseId,f=!0,p=o;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))&&(f=!1,c.schema=d,c.schemaPath=i+"["+m+"]",c.errSchemaPath=s+"/"+m,n+=" "+e.validate(c)+" ",c.baseId=h,a&&(n+=" if ("+u+") { ",l+="}"));return a&&(n+=f?" if (true) { ":" "+l.slice(0,-1)+" "),n},anyOf:function(e,t,r){var n=" ",o=e.level,i=e.dataLevel,s=e.schema[t],a=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,l=!e.opts.allErrors,u="data"+(i||""),h="valid"+o,f="errs__"+o,p=e.util.copy(e),d="";p.level++;var m="valid"+p.level,g=s.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 y=p.baseId;n+=" var "+f+" = errors; var "+h+" = false; ";var E=e.compositeRule;e.compositeRule=p.compositeRule=!0;var T=s;if(T)for(var v,b=-1,_=T.length-1;b<_;)v=T[b+=1],p.schema=v,p.schemaPath=a+"["+b+"]",p.errSchemaPath=c+"/"+b,n+=" "+e.validate(p)+" ",p.baseId=y,n+=" "+h+" = "+h+" || "+m+"; if (!"+h+") { ",d+="}";e.compositeRule=p.compositeRule=E,n+=" "+d+" if (!"+h+") { 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"+a+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),n+=" } "):n+=" {} ",n+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&l&&(e.async?n+=" throw new ValidationError(vErrors); ":n+=" validate.errors = vErrors; return false; "),n+=" } else { errors = "+f+"; if (vErrors !== null) { if ("+f+") vErrors.length = "+f+"; else vErrors = null; } ",e.opts.allErrors&&(n+=" } ")}else l&&(n+=" if (true) { ");return n},$comment:function(e,t,r){var n=" ",o=e.schema[t],i=e.errSchemaPath+"/"+t;e.opts.allErrors;var s=e.util.toQuotedString(o);return!0===e.opts.$comment?n+=" console.log("+s+");":"function"==typeof e.opts.$comment&&(n+=" self._opts.$comment("+s+", "+e.util.toQuotedString(i)+", validate.root.schema);"),n},const:function(e,t,r){var n=" ",o=e.level,i=e.dataLevel,s=e.schema[t],a=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,l=!e.opts.allErrors,u="data"+(i||""),h="valid"+o,f=e.opts.$data&&s&&s.$data;f&&(n+=" var schema"+o+" = "+e.util.getData(s.$data,i,e.dataPathArr)+"; "),f||(n+=" var schema"+o+" = validate.schema"+a+";"),n+="var "+h+" = equal("+u+", schema"+o+"); if (!"+h+") { ";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"+o+" } ",!1!==e.opts.messages&&(n+=" , message: 'should be equal to constant' "),e.opts.verbose&&(n+=" , schema: validate.schema"+a+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),n+=" } "):n+=" {} ";var d=n;return n=p.pop(),!e.compositeRule&&l?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+=" }",l&&(n+=" else { "),n},contains:function(e,t,r){var n=" ",o=e.level,i=e.dataLevel,s=e.schema[t],a=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,l=!e.opts.allErrors,u="data"+(i||""),h="valid"+o,f="errs__"+o,p=e.util.copy(e);p.level++;var d="valid"+p.level,m="i"+o,g=p.dataLevel=e.dataLevel+1,y="data"+g,E=e.baseId,T=e.opts.strictKeywords?"object"==typeof s&&Object.keys(s).length>0||!1===s:e.util.schemaHasRules(s,e.RULES.all);if(n+="var "+f+" = errors;var "+h+";",T){var v=e.compositeRule;e.compositeRule=p.compositeRule=!0,p.schema=s,p.schemaPath=a,p.errSchemaPath=c,n+=" var "+d+" = false; for (var "+m+" = 0; "+m+" < "+u+".length; "+m+"++) { ",p.errorPath=e.util.getPathExpr(e.errorPath,m,e.opts.jsonPointers,!0);var b=u+"["+m+"]";p.dataPathArr[g]=m;var _=e.validate(p);p.baseId=E,e.util.varOccurences(_,y)<2?n+=" "+e.util.varReplace(_,y,b)+" ":n+=" var "+y+" = "+b+"; "+_+" ",n+=" if ("+d+") break; } ",e.compositeRule=p.compositeRule=v,n+=" if (!"+d+") {"}else n+=" if ("+u+".length == 0) {";var A=A||[];A.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"+a+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),n+=" } "):n+=" {} ";var S=n;return n=A.pop(),!e.compositeRule&&l?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 { ",T&&(n+=" errors = "+f+"; if (vErrors !== null) { if ("+f+") vErrors.length = "+f+"; else vErrors = null; } "),e.opts.allErrors&&(n+=" } "),n},dependencies:function(e,t,r){var n=" ",o=e.level,i=e.dataLevel,s=e.schema[t],a=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,l=!e.opts.allErrors,u="data"+(i||""),h="errs__"+o,f=e.util.copy(e),p="";f.level++;var d="valid"+f.level,m={},g={},y=e.opts.ownProperties;for(b in s)if("__proto__"!=b){var E=s[b],T=Array.isArray(E)?g:m;T[b]=E}n+="var "+h+" = errors;";var v=e.errorPath;for(var b in n+="var missing"+o+";",g)if((T=g[b]).length){if(n+=" if ( "+u+e.util.getProperty(b)+" !== undefined ",y&&(n+=" && Object.prototype.hasOwnProperty.call("+u+", '"+e.util.escapeQuotes(b)+"') "),l){n+=" && ( ";var _=T;if(_)for(var A=-1,S=_.length-1;A<S;){R=_[A+=1],A&&(n+=" || "),n+=" ( ( "+(L=u+(I=e.util.getProperty(R)))+" === undefined ",y&&(n+=" || ! Object.prototype.hasOwnProperty.call("+u+", '"+e.util.escapeQuotes(R)+"') "),n+=") && (missing"+o+" = "+e.util.toQuotedString(e.opts.jsonPointers?R:I)+") ) "}n+=")) { ";var k="missing"+o,w="' + "+k+" + '";e.opts._errorDataPathProperty&&(e.errorPath=e.opts.jsonPointers?e.util.getPathExpr(v,k,!0):v+" + "+k);var C=C||[];C.push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'dependencies' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { property: '"+e.util.escapeQuotes(b)+"', missingProperty: '"+w+"', depsCount: "+T.length+", deps: '"+e.util.escapeQuotes(1==T.length?T[0]:T.join(", "))+"' } ",!1!==e.opts.messages&&(n+=" , message: 'should have ",1==T.length?n+="property "+e.util.escapeQuotes(T[0]):n+="properties "+e.util.escapeQuotes(T.join(", ")),n+=" when property "+e.util.escapeQuotes(b)+" is present' "),e.opts.verbose&&(n+=" , schema: validate.schema"+a+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),n+=" } "):n+=" {} ";var x=n;n=C.pop(),!e.compositeRule&&l?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++; "}else{n+=" ) { ";var O=T;if(O)for(var R,N=-1,P=O.length-1;N<P;){R=O[N+=1];var I=e.util.getProperty(R),L=(w=e.util.escapeQuotes(R),u+I);e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPath(v,R,e.opts.jsonPointers)),n+=" if ( "+L+" === undefined ",y&&(n+=" || ! Object.prototype.hasOwnProperty.call("+u+", '"+e.util.escapeQuotes(R)+"') "),n+=") { var err = ",!1!==e.createErrors?(n+=" { keyword: 'dependencies' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { property: '"+e.util.escapeQuotes(b)+"', missingProperty: '"+w+"', depsCount: "+T.length+", deps: '"+e.util.escapeQuotes(1==T.length?T[0]:T.join(", "))+"' } ",!1!==e.opts.messages&&(n+=" , message: 'should have ",1==T.length?n+="property "+e.util.escapeQuotes(T[0]):n+="properties "+e.util.escapeQuotes(T.join(", ")),n+=" when property "+e.util.escapeQuotes(b)+" is present' "),e.opts.verbose&&(n+=" , schema: validate.schema"+a+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),n+=" } "):n+=" {} ",n+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } "}}n+=" } ",l&&(p+="}",n+=" else { ")}e.errorPath=v;var D=f.baseId;for(var b in m){E=m[b];(e.opts.strictKeywords?"object"==typeof E&&Object.keys(E).length>0||!1===E:e.util.schemaHasRules(E,e.RULES.all))&&(n+=" "+d+" = true; if ( "+u+e.util.getProperty(b)+" !== undefined ",y&&(n+=" && Object.prototype.hasOwnProperty.call("+u+", '"+e.util.escapeQuotes(b)+"') "),n+=") { ",f.schema=E,f.schemaPath=a+e.util.getProperty(b),f.errSchemaPath=c+"/"+e.util.escapeFragment(b),n+=" "+e.validate(f)+" ",f.baseId=D,n+=" } ",l&&(n+=" if ("+d+") { ",p+="}"))}return l&&(n+=" "+p+" if ("+h+" == errors) {"),n},enum:function(e,t,r){var n=" ",o=e.level,i=e.dataLevel,s=e.schema[t],a=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,l=!e.opts.allErrors,u="data"+(i||""),h="valid"+o,f=e.opts.$data&&s&&s.$data;f&&(n+=" var schema"+o+" = "+e.util.getData(s.$data,i,e.dataPathArr)+"; ");var p="i"+o,d="schema"+o;f||(n+=" var "+d+" = validate.schema"+a+";"),n+="var "+h+";",f&&(n+=" if (schema"+o+" === undefined) "+h+" = true; else if (!Array.isArray(schema"+o+")) "+h+" = false; else {"),n+=h+" = false;for (var "+p+"=0; "+p+"<"+d+".length; "+p+"++) if (equal("+u+", "+d+"["+p+"])) { "+h+" = true; break; }",f&&(n+=" } "),n+=" if (!"+h+") { ";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"+o+" } ",!1!==e.opts.messages&&(n+=" , message: 'should be equal to one of the allowed values' "),e.opts.verbose&&(n+=" , schema: validate.schema"+a+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),n+=" } "):n+=" {} ";var g=n;return n=m.pop(),!e.compositeRule&&l?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+=" }",l&&(n+=" else { "),n},format:function(e,t,r){var n=" ",o=e.level,i=e.dataLevel,s=e.schema[t],a=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,l=!e.opts.allErrors,u="data"+(i||"");if(!1===e.opts.format)return l&&(n+=" if (true) { "),n;var h,f=e.opts.$data&&s&&s.$data;f?(n+=" var schema"+o+" = "+e.util.getData(s.$data,i,e.dataPathArr)+"; ",h="schema"+o):h=s;var p=e.opts.unknownFormats,d=Array.isArray(p);if(f){n+=" var "+(m="format"+o)+" = formats["+h+"]; var "+(g="isObject"+o)+" = typeof "+m+" == 'object' && !("+m+" instanceof RegExp) && "+m+".validate; var "+(y="formatType"+o)+" = "+g+" && "+m+".type || 'string'; if ("+g+") { ",e.async&&(n+=" var async"+o+" = "+m+".async; "),n+=" "+m+" = "+m+".validate; } if ( ",f&&(n+=" ("+h+" !== undefined && typeof "+h+" != 'string') || "),n+=" (","ignore"!=p&&(n+=" ("+h+" && !"+m+" ",d&&(n+=" && self._opts.unknownFormats.indexOf("+h+") == -1 "),n+=") || "),n+=" ("+m+" && "+y+" == '"+r+"' && !(typeof "+m+" == 'function' ? ",e.async?n+=" (async"+o+" ? await "+m+"("+u+") : "+m+"("+u+")) ":n+=" "+m+"("+u+") ",n+=" : "+m+".test("+u+"))))) {"}else{var m;if(!(m=e.formats[s])){if("ignore"==p)return e.logger.warn('unknown format "'+s+'" ignored in schema at path "'+e.errSchemaPath+'"'),l&&(n+=" if (true) { "),n;if(d&&p.indexOf(s)>=0)return l&&(n+=" if (true) { "),n;throw new Error('unknown format "'+s+'" is used in schema at path "'+e.errSchemaPath+'"')}var g,y=(g="object"==typeof m&&!(m instanceof RegExp)&&m.validate)&&m.type||"string";if(g){var E=!0===m.async;m=m.validate}if(y!=r)return l&&(n+=" if (true) { "),n;if(E){if(!e.async)throw new Error("async format in sync schema");n+=" if (!(await "+(T="formats"+e.util.getProperty(s)+".validate")+"("+u+"))) { "}else{n+=" if (! ";var T="formats"+e.util.getProperty(s);g&&(T+=".validate"),n+="function"==typeof m?" "+T+"("+u+") ":" "+T+".test("+u+") ",n+=") { "}}var v=v||[];v.push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'format' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { format: ",n+=f?""+h:""+e.util.toQuotedString(s),n+=" } ",!1!==e.opts.messages&&(n+=" , message: 'should match format \"",n+=f?"' + "+h+" + '":""+e.util.escapeQuotes(s),n+="\"' "),e.opts.verbose&&(n+=" , schema: ",n+=f?"validate.schema"+a:""+e.util.toQuotedString(s),n+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),n+=" } "):n+=" {} ";var b=n;return n=v.pop(),!e.compositeRule&&l?e.async?n+=" throw new ValidationError(["+b+"]); ":n+=" validate.errors = ["+b+"]; return false; ":n+=" var err = "+b+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" } ",l&&(n+=" else { "),n},if:function(e,t,r){var n=" ",o=e.level,i=e.dataLevel,s=e.schema[t],a=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,l=!e.opts.allErrors,u="data"+(i||""),h="valid"+o,f="errs__"+o,p=e.util.copy(e);p.level++;var d="valid"+p.level,m=e.schema.then,g=e.schema.else,y=void 0!==m&&(e.opts.strictKeywords?"object"==typeof m&&Object.keys(m).length>0||!1===m:e.util.schemaHasRules(m,e.RULES.all)),E=void 0!==g&&(e.opts.strictKeywords?"object"==typeof g&&Object.keys(g).length>0||!1===g:e.util.schemaHasRules(g,e.RULES.all)),T=p.baseId;if(y||E){var v;p.createErrors=!1,p.schema=s,p.schemaPath=a,p.errSchemaPath=c,n+=" var "+f+" = errors; var "+h+" = true; ";var b=e.compositeRule;e.compositeRule=p.compositeRule=!0,n+=" "+e.validate(p)+" ",p.baseId=T,p.createErrors=!0,n+=" errors = "+f+"; if (vErrors !== null) { if ("+f+") vErrors.length = "+f+"; else vErrors = null; } ",e.compositeRule=p.compositeRule=b,y?(n+=" if ("+d+") { ",p.schema=e.schema.then,p.schemaPath=e.schemaPath+".then",p.errSchemaPath=e.errSchemaPath+"/then",n+=" "+e.validate(p)+" ",p.baseId=T,n+=" "+h+" = "+d+"; ",y&&E?n+=" var "+(v="ifClause"+o)+" = 'then'; ":v="'then'",n+=" } ",E&&(n+=" else { ")):n+=" if (!"+d+") { ",E&&(p.schema=e.schema.else,p.schemaPath=e.schemaPath+".else",p.errSchemaPath=e.errSchemaPath+"/else",n+=" "+e.validate(p)+" ",p.baseId=T,n+=" "+h+" = "+d+"; ",y&&E?n+=" var "+(v="ifClause"+o)+" = 'else'; ":v="'else'",n+=" } "),n+=" if (!"+h+") { var err = ",!1!==e.createErrors?(n+=" { keyword: 'if' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { failingKeyword: "+v+" } ",!1!==e.opts.messages&&(n+=" , message: 'should match \"' + "+v+" + '\" schema' "),e.opts.verbose&&(n+=" , schema: validate.schema"+a+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),n+=" } "):n+=" {} ",n+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&l&&(e.async?n+=" throw new ValidationError(vErrors); ":n+=" validate.errors = vErrors; return false; "),n+=" } ",l&&(n+=" else { ")}else l&&(n+=" if (true) { ");return n},items:function(e,t,r){var n=" ",o=e.level,i=e.dataLevel,s=e.schema[t],a=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,l=!e.opts.allErrors,u="data"+(i||""),h="valid"+o,f="errs__"+o,p=e.util.copy(e),d="";p.level++;var m="valid"+p.level,g="i"+o,y=p.dataLevel=e.dataLevel+1,E="data"+y,T=e.baseId;if(n+="var "+f+" = errors;var "+h+";",Array.isArray(s)){var v=e.schema.additionalItems;if(!1===v){n+=" "+h+" = "+u+".length <= "+s.length+"; ";var b=c;c=e.errSchemaPath+"/additionalItems",n+=" if (!"+h+") { ";var _=_||[];_.push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'additionalItems' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { limit: "+s.length+" } ",!1!==e.opts.messages&&(n+=" , message: 'should NOT have more than "+s.length+" items' "),e.opts.verbose&&(n+=" , schema: false , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),n+=" } "):n+=" {} ";var A=n;n=_.pop(),!e.compositeRule&&l?e.async?n+=" throw new ValidationError(["+A+"]); ":n+=" validate.errors = ["+A+"]; return false; ":n+=" var err = "+A+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" } ",c=b,l&&(d+="}",n+=" else { ")}var S=s;if(S)for(var k,w=-1,C=S.length-1;w<C;)if(k=S[w+=1],e.opts.strictKeywords?"object"==typeof k&&Object.keys(k).length>0||!1===k:e.util.schemaHasRules(k,e.RULES.all)){n+=" "+m+" = true; if ("+u+".length > "+w+") { ";var x=u+"["+w+"]";p.schema=k,p.schemaPath=a+"["+w+"]",p.errSchemaPath=c+"/"+w,p.errorPath=e.util.getPathExpr(e.errorPath,w,e.opts.jsonPointers,!0),p.dataPathArr[y]=w;var O=e.validate(p);p.baseId=T,e.util.varOccurences(O,E)<2?n+=" "+e.util.varReplace(O,E,x)+" ":n+=" var "+E+" = "+x+"; "+O+" ",n+=" } ",l&&(n+=" if ("+m+") { ",d+="}")}if("object"==typeof v&&(e.opts.strictKeywords?"object"==typeof v&&Object.keys(v).length>0||!1===v:e.util.schemaHasRules(v,e.RULES.all))){p.schema=v,p.schemaPath=e.schemaPath+".additionalItems",p.errSchemaPath=e.errSchemaPath+"/additionalItems",n+=" "+m+" = true; if ("+u+".length > "+s.length+") { for (var "+g+" = "+s.length+"; "+g+" < "+u+".length; "+g+"++) { ",p.errorPath=e.util.getPathExpr(e.errorPath,g,e.opts.jsonPointers,!0);x=u+"["+g+"]";p.dataPathArr[y]=g;O=e.validate(p);p.baseId=T,e.util.varOccurences(O,E)<2?n+=" "+e.util.varReplace(O,E,x)+" ":n+=" var "+E+" = "+x+"; "+O+" ",l&&(n+=" if (!"+m+") break; "),n+=" } } ",l&&(n+=" if ("+m+") { ",d+="}")}}else if(e.opts.strictKeywords?"object"==typeof s&&Object.keys(s).length>0||!1===s:e.util.schemaHasRules(s,e.RULES.all)){p.schema=s,p.schemaPath=a,p.errSchemaPath=c,n+=" for (var "+g+" = 0; "+g+" < "+u+".length; "+g+"++) { ",p.errorPath=e.util.getPathExpr(e.errorPath,g,e.opts.jsonPointers,!0);x=u+"["+g+"]";p.dataPathArr[y]=g;O=e.validate(p);p.baseId=T,e.util.varOccurences(O,E)<2?n+=" "+e.util.varReplace(O,E,x)+" ":n+=" var "+E+" = "+x+"; "+O+" ",l&&(n+=" if (!"+m+") break; "),n+=" }"}return l&&(n+=" "+d+" if ("+f+" == errors) {"),n},maximum:Wt,minimum:Wt,maxItems:Qt,minItems:Qt,maxLength:Yt,minLength:Yt,maxProperties:Xt,minProperties:Xt,multipleOf:function(e,t,r){var n,o=" ",i=e.level,s=e.dataLevel,a=e.schema[t],c=e.schemaPath+e.util.getProperty(t),l=e.errSchemaPath+"/"+t,u=!e.opts.allErrors,h="data"+(s||""),f=e.opts.$data&&a&&a.$data;if(f?(o+=" var schema"+i+" = "+e.util.getData(a.$data,s,e.dataPathArr)+"; ",n="schema"+i):n=a,!f&&"number"!=typeof a)throw new Error(t+" must be number");o+="var division"+i+";if (",f&&(o+=" "+n+" !== undefined && ( typeof "+n+" != 'number' || "),o+=" (division"+i+" = "+h+" / "+n+", ",e.opts.multipleOfPrecision?o+=" Math.abs(Math.round(division"+i+") - division"+i+") > 1e-"+e.opts.multipleOfPrecision+" ":o+=" division"+i+" !== parseInt(division"+i+") ",o+=" ) ",f&&(o+=" ) "),o+=" ) { ";var p=p||[];p.push(o),o="",!1!==e.createErrors?(o+=" { keyword: 'multipleOf' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { multipleOf: "+n+" } ",!1!==e.opts.messages&&(o+=" , message: 'should be multiple of ",o+=f?"' + "+n:n+"'"),e.opts.verbose&&(o+=" , schema: ",o+=f?"validate.schema"+c:""+a,o+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+h+" "),o+=" } "):o+=" {} ";var d=o;return o=p.pop(),!e.compositeRule&&u?e.async?o+=" throw new ValidationError(["+d+"]); ":o+=" validate.errors = ["+d+"]; return false; ":o+=" var err = "+d+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",o+="} ",u&&(o+=" else { "),o},not:function(e,t,r){var n=" ",o=e.level,i=e.dataLevel,s=e.schema[t],a=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,l=!e.opts.allErrors,u="data"+(i||""),h="errs__"+o,f=e.util.copy(e);f.level++;var p="valid"+f.level;if(e.opts.strictKeywords?"object"==typeof s&&Object.keys(s).length>0||!1===s:e.util.schemaHasRules(s,e.RULES.all)){f.schema=s,f.schemaPath=a,f.errSchemaPath=c,n+=" var "+h+" = errors; ";var d,m=e.compositeRule;e.compositeRule=f.compositeRule=!0,f.createErrors=!1,f.opts.allErrors&&(d=f.opts.allErrors,f.opts.allErrors=!1),n+=" "+e.validate(f)+" ",f.createErrors=!0,d&&(f.opts.allErrors=d),e.compositeRule=f.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"+a+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),n+=" } "):n+=" {} ";var y=n;n=g.pop(),!e.compositeRule&&l?e.async?n+=" throw new ValidationError(["+y+"]); ":n+=" validate.errors = ["+y+"]; return false; ":n+=" var err = "+y+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" } else { errors = "+h+"; if (vErrors !== null) { if ("+h+") vErrors.length = "+h+"; 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"+a+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),n+=" } "):n+=" {} ",n+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",l&&(n+=" if (false) { ");return n},oneOf:function(e,t,r){var n=" ",o=e.level,i=e.dataLevel,s=e.schema[t],a=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,l=!e.opts.allErrors,u="data"+(i||""),h="valid"+o,f="errs__"+o,p=e.util.copy(e),d="";p.level++;var m="valid"+p.level,g=p.baseId,y="prevValid"+o,E="passingSchemas"+o;n+="var "+f+" = errors , "+y+" = false , "+h+" = false , "+E+" = null; ";var T=e.compositeRule;e.compositeRule=p.compositeRule=!0;var v=s;if(v)for(var b,_=-1,A=v.length-1;_<A;)b=v[_+=1],(e.opts.strictKeywords?"object"==typeof b&&Object.keys(b).length>0||!1===b:e.util.schemaHasRules(b,e.RULES.all))?(p.schema=b,p.schemaPath=a+"["+_+"]",p.errSchemaPath=c+"/"+_,n+=" "+e.validate(p)+" ",p.baseId=g):n+=" var "+m+" = true; ",_&&(n+=" if ("+m+" && "+y+") { "+h+" = false; "+E+" = ["+E+", "+_+"]; } else { ",d+="}"),n+=" if ("+m+") { "+h+" = "+y+" = true; "+E+" = "+_+"; }";return e.compositeRule=p.compositeRule=T,n+=d+"if (!"+h+") { var err = ",!1!==e.createErrors?(n+=" { keyword: 'oneOf' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { passingSchemas: "+E+" } ",!1!==e.opts.messages&&(n+=" , message: 'should match exactly one schema in oneOf' "),e.opts.verbose&&(n+=" , schema: validate.schema"+a+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),n+=" } "):n+=" {} ",n+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&l&&(e.async?n+=" throw new ValidationError(vErrors); ":n+=" validate.errors = vErrors; return false; "),n+="} else { errors = "+f+"; if (vErrors !== null) { if ("+f+") vErrors.length = "+f+"; else vErrors = null; }",e.opts.allErrors&&(n+=" } "),n},pattern:function(e,t,r){var n,o=" ",i=e.level,s=e.dataLevel,a=e.schema[t],c=e.schemaPath+e.util.getProperty(t),l=e.errSchemaPath+"/"+t,u=!e.opts.allErrors,h="data"+(s||""),f=e.opts.$data&&a&&a.$data;f?(o+=" var schema"+i+" = "+e.util.getData(a.$data,s,e.dataPathArr)+"; ",n="schema"+i):n=a,o+="if ( ",f&&(o+=" ("+n+" !== undefined && typeof "+n+" != 'string') || "),o+=" !"+(f?"(new RegExp("+n+"))":e.usePattern(a))+".test("+h+") ) { ";var p=p||[];p.push(o),o="",!1!==e.createErrors?(o+=" { keyword: 'pattern' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { pattern: ",o+=f?""+n:""+e.util.toQuotedString(a),o+=" } ",!1!==e.opts.messages&&(o+=" , message: 'should match pattern \"",o+=f?"' + "+n+" + '":""+e.util.escapeQuotes(a),o+="\"' "),e.opts.verbose&&(o+=" , schema: ",o+=f?"validate.schema"+c:""+e.util.toQuotedString(a),o+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+h+" "),o+=" } "):o+=" {} ";var d=o;return o=p.pop(),!e.compositeRule&&u?e.async?o+=" throw new ValidationError(["+d+"]); ":o+=" validate.errors = ["+d+"]; return false; ":o+=" var err = "+d+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",o+="} ",u&&(o+=" else { "),o},properties:function(e,t,r){var n=" ",o=e.level,i=e.dataLevel,s=e.schema[t],a=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,l=!e.opts.allErrors,u="data"+(i||""),h="errs__"+o,f=e.util.copy(e),p="";f.level++;var d="valid"+f.level,m="key"+o,g="idx"+o,y=f.dataLevel=e.dataLevel+1,E="data"+y,T="dataProperties"+o,v=Object.keys(s||{}).filter(I),b=e.schema.patternProperties||{},_=Object.keys(b).filter(I),A=e.schema.additionalProperties,S=v.length||_.length,k=!1===A,w="object"==typeof A&&Object.keys(A).length,C=e.opts.removeAdditional,x=k||w||C,O=e.opts.ownProperties,R=e.baseId,N=e.schema.required;if(N&&(!e.opts.$data||!N.$data)&&N.length<e.opts.loopRequired)var P=e.util.toHash(N);function I(e){return"__proto__"!==e}if(n+="var "+h+" = errors;var "+d+" = true;",O&&(n+=" var "+T+" = undefined;"),x){if(n+=O?" "+T+" = "+T+" || Object.keys("+u+"); for (var "+g+"=0; "+g+"<"+T+".length; "+g+"++) { var "+m+" = "+T+"["+g+"]; ":" for (var "+m+" in "+u+") { ",S){if(n+=" var isAdditional"+o+" = !(false ",v.length)if(v.length>8)n+=" || validate.schema"+a+".hasOwnProperty("+m+") ";else{var L=v;if(L)for(var D=-1,F=L.length-1;D<F;)Q=L[D+=1],n+=" || "+m+" == "+e.util.toQuotedString(Q)+" "}if(_.length){var M=_;if(M)for(var B=-1,U=M.length-1;B<U;)ie=M[B+=1],n+=" || "+e.usePattern(ie)+".test("+m+") "}n+=" ); if (isAdditional"+o+") { "}if("all"==C)n+=" delete "+u+"["+m+"]; ";else{var H=e.errorPath,j="' + "+m+" + '";if(e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPathExpr(e.errorPath,m,e.opts.jsonPointers)),k)if(C)n+=" delete "+u+"["+m+"]; ";else{n+=" "+d+" = false; ";var q=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: '"+j+"' } ",!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: "+u+" "),n+=" } "):n+=" {} ";var z=n;n=re.pop(),!e.compositeRule&&l?e.async?n+=" throw new ValidationError(["+z+"]); ":n+=" validate.errors = ["+z+"]; return false; ":n+=" var err = "+z+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",c=q,l&&(n+=" break; ")}else if(w)if("failing"==C){n+=" var "+h+" = errors; ";var G=e.compositeRule;e.compositeRule=f.compositeRule=!0,f.schema=A,f.schemaPath=e.schemaPath+".additionalProperties",f.errSchemaPath=e.errSchemaPath+"/additionalProperties",f.errorPath=e.opts._errorDataPathProperty?e.errorPath:e.util.getPathExpr(e.errorPath,m,e.opts.jsonPointers);var $=u+"["+m+"]";f.dataPathArr[y]=m;var K=e.validate(f);f.baseId=R,e.util.varOccurences(K,E)<2?n+=" "+e.util.varReplace(K,E,$)+" ":n+=" var "+E+" = "+$+"; "+K+" ",n+=" if (!"+d+") { errors = "+h+"; if (validate.errors !== null) { if (errors) validate.errors.length = errors; else validate.errors = null; } delete "+u+"["+m+"]; } ",e.compositeRule=f.compositeRule=G}else{f.schema=A,f.schemaPath=e.schemaPath+".additionalProperties",f.errSchemaPath=e.errSchemaPath+"/additionalProperties",f.errorPath=e.opts._errorDataPathProperty?e.errorPath:e.util.getPathExpr(e.errorPath,m,e.opts.jsonPointers);$=u+"["+m+"]";f.dataPathArr[y]=m;K=e.validate(f);f.baseId=R,e.util.varOccurences(K,E)<2?n+=" "+e.util.varReplace(K,E,$)+" ":n+=" var "+E+" = "+$+"; "+K+" ",l&&(n+=" if (!"+d+") break; ")}e.errorPath=H}S&&(n+=" } "),n+=" } ",l&&(n+=" if ("+d+") { ",p+="}")}var V=e.opts.useDefaults&&!e.compositeRule;if(v.length){var W=v;if(W)for(var Q,Y=-1,X=W.length-1;Y<X;){var J=s[Q=W[Y+=1]];if(e.opts.strictKeywords?"object"==typeof J&&Object.keys(J).length>0||!1===J:e.util.schemaHasRules(J,e.RULES.all)){var Z=e.util.getProperty(Q),ee=($=u+Z,V&&void 0!==J.default);f.schema=J,f.schemaPath=a+Z,f.errSchemaPath=c+"/"+e.util.escapeFragment(Q),f.errorPath=e.util.getPath(e.errorPath,Q,e.opts.jsonPointers),f.dataPathArr[y]=e.util.toQuotedString(Q);K=e.validate(f);if(f.baseId=R,e.util.varOccurences(K,E)<2){K=e.util.varReplace(K,E,$);var te=$}else{te=E;n+=" var "+E+" = "+$+"; "}if(ee)n+=" "+K+" ";else{if(P&&P[Q]){n+=" if ( "+te+" === undefined ",O&&(n+=" || ! Object.prototype.hasOwnProperty.call("+u+", '"+e.util.escapeQuotes(Q)+"') "),n+=") { "+d+" = false; ";H=e.errorPath,q=c;var re,ne=e.util.escapeQuotes(Q);e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPath(H,Q,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"+a+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),n+=" } "):n+=" {} ";z=n;n=re.pop(),!e.compositeRule&&l?e.async?n+=" throw new ValidationError(["+z+"]); ":n+=" validate.errors = ["+z+"]; return false; ":n+=" var err = "+z+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",c=q,e.errorPath=H,n+=" } else { "}else l?(n+=" if ( "+te+" === undefined ",O&&(n+=" || ! Object.prototype.hasOwnProperty.call("+u+", '"+e.util.escapeQuotes(Q)+"') "),n+=") { "+d+" = true; } else { "):(n+=" if ("+te+" !== undefined ",O&&(n+=" && Object.prototype.hasOwnProperty.call("+u+", '"+e.util.escapeQuotes(Q)+"') "),n+=" ) { ");n+=" "+K+" } "}}l&&(n+=" if ("+d+") { ",p+="}")}}if(_.length){var oe=_;if(oe)for(var ie,se=-1,ae=oe.length-1;se<ae;){J=b[ie=oe[se+=1]];if(e.opts.strictKeywords?"object"==typeof J&&Object.keys(J).length>0||!1===J:e.util.schemaHasRules(J,e.RULES.all)){f.schema=J,f.schemaPath=e.schemaPath+".patternProperties"+e.util.getProperty(ie),f.errSchemaPath=e.errSchemaPath+"/patternProperties/"+e.util.escapeFragment(ie),n+=O?" "+T+" = "+T+" || Object.keys("+u+"); for (var "+g+"=0; "+g+"<"+T+".length; "+g+"++) { var "+m+" = "+T+"["+g+"]; ":" for (var "+m+" in "+u+") { ",n+=" if ("+e.usePattern(ie)+".test("+m+")) { ",f.errorPath=e.util.getPathExpr(e.errorPath,m,e.opts.jsonPointers);$=u+"["+m+"]";f.dataPathArr[y]=m;K=e.validate(f);f.baseId=R,e.util.varOccurences(K,E)<2?n+=" "+e.util.varReplace(K,E,$)+" ":n+=" var "+E+" = "+$+"; "+K+" ",l&&(n+=" if (!"+d+") break; "),n+=" } ",l&&(n+=" else "+d+" = true; "),n+=" } ",l&&(n+=" if ("+d+") { ",p+="}")}}}return l&&(n+=" "+p+" if ("+h+" == errors) {"),n},propertyNames:function(e,t,r){var n=" ",o=e.level,i=e.dataLevel,s=e.schema[t],a=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,l=!e.opts.allErrors,u="data"+(i||""),h="errs__"+o,f=e.util.copy(e);f.level++;var p="valid"+f.level;if(n+="var "+h+" = errors;",e.opts.strictKeywords?"object"==typeof s&&Object.keys(s).length>0||!1===s:e.util.schemaHasRules(s,e.RULES.all)){f.schema=s,f.schemaPath=a,f.errSchemaPath=c;var d="key"+o,m="idx"+o,g="i"+o,y="' + "+d+" + '",E="data"+(f.dataLevel=e.dataLevel+1),T="dataProperties"+o,v=e.opts.ownProperties,b=e.baseId;v&&(n+=" var "+T+" = undefined; "),n+=v?" "+T+" = "+T+" || Object.keys("+u+"); for (var "+m+"=0; "+m+"<"+T+".length; "+m+"++) { var "+d+" = "+T+"["+m+"]; ":" for (var "+d+" in "+u+") { ",n+=" var startErrs"+o+" = errors; ";var _=d,A=e.compositeRule;e.compositeRule=f.compositeRule=!0;var S=e.validate(f);f.baseId=b,e.util.varOccurences(S,E)<2?n+=" "+e.util.varReplace(S,E,_)+" ":n+=" var "+E+" = "+_+"; "+S+" ",e.compositeRule=f.compositeRule=A,n+=" if (!"+p+") { for (var "+g+"=startErrs"+o+"; "+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: '"+y+"' } ",!1!==e.opts.messages&&(n+=" , message: 'property name \\'"+y+"\\' is invalid' "),e.opts.verbose&&(n+=" , schema: validate.schema"+a+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),n+=" } "):n+=" {} ",n+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&l&&(e.async?n+=" throw new ValidationError(vErrors); ":n+=" validate.errors = vErrors; return false; "),l&&(n+=" break; "),n+=" } }"}return l&&(n+=" if ("+h+" == errors) {"),n},required:function(e,t,r){var n=" ",o=e.level,i=e.dataLevel,s=e.schema[t],a=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,l=!e.opts.allErrors,u="data"+(i||""),h="valid"+o,f=e.opts.$data&&s&&s.$data;f&&(n+=" var schema"+o+" = "+e.util.getData(s.$data,i,e.dataPathArr)+"; ");var p="schema"+o;if(!f)if(s.length<e.opts.loopRequired&&e.schema.properties&&Object.keys(e.schema.properties).length){var d=[],m=s;if(m)for(var g,y=-1,E=m.length-1;y<E;){g=m[y+=1];var T=e.schema.properties[g];T&&(e.opts.strictKeywords?"object"==typeof T&&Object.keys(T).length>0||!1===T:e.util.schemaHasRules(T,e.RULES.all))||(d[d.length]=g)}}else d=s;if(f||d.length){var v=e.errorPath,b=f||d.length>=e.opts.loopRequired,_=e.opts.ownProperties;if(l)if(n+=" var missing"+o+"; ",b){f||(n+=" var "+p+" = validate.schema"+a+"; ");var A="' + "+(O="schema"+o+"["+(w="i"+o)+"]")+" + '";e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPathExpr(v,O,e.opts.jsonPointers)),n+=" var "+h+" = true; ",f&&(n+=" if (schema"+o+" === undefined) "+h+" = true; else if (!Array.isArray(schema"+o+")) "+h+" = false; else {"),n+=" for (var "+w+" = 0; "+w+" < "+p+".length; "+w+"++) { "+h+" = "+u+"["+p+"["+w+"]] !== undefined ",_&&(n+=" && Object.prototype.hasOwnProperty.call("+u+", "+p+"["+w+"]) "),n+="; if (!"+h+") break; } ",f&&(n+=" } "),n+=" if (!"+h+") { ",(x=x||[]).push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { missingProperty: '"+A+"' } ",!1!==e.opts.messages&&(n+=" , message: '",e.opts._errorDataPathProperty?n+="is a required property":n+="should have required property \\'"+A+"\\'",n+="' "),e.opts.verbose&&(n+=" , schema: validate.schema"+a+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),n+=" } "):n+=" {} ";var S=n;n=x.pop(),!e.compositeRule&&l?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 k=d;if(k)for(var w=-1,C=k.length-1;w<C;){N=k[w+=1],w&&(n+=" || "),n+=" ( ( "+(D=u+(L=e.util.getProperty(N)))+" === undefined ",_&&(n+=" || ! Object.prototype.hasOwnProperty.call("+u+", '"+e.util.escapeQuotes(N)+"') "),n+=") && (missing"+o+" = "+e.util.toQuotedString(e.opts.jsonPointers?N:L)+") ) "}n+=") { ";var x;A="' + "+(O="missing"+o)+" + '";e.opts._errorDataPathProperty&&(e.errorPath=e.opts.jsonPointers?e.util.getPathExpr(v,O,!0):v+" + "+O),(x=x||[]).push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { missingProperty: '"+A+"' } ",!1!==e.opts.messages&&(n+=" , message: '",e.opts._errorDataPathProperty?n+="is a required property":n+="should have required property \\'"+A+"\\'",n+="' "),e.opts.verbose&&(n+=" , schema: validate.schema"+a+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),n+=" } "):n+=" {} ";S=n;n=x.pop(),!e.compositeRule&&l?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(b){f||(n+=" var "+p+" = validate.schema"+a+"; ");var O;A="' + "+(O="schema"+o+"["+(w="i"+o)+"]")+" + '";e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPathExpr(v,O,e.opts.jsonPointers)),f&&(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: '"+A+"' } ",!1!==e.opts.messages&&(n+=" , message: '",e.opts._errorDataPathProperty?n+="is a required property":n+="should have required property \\'"+A+"\\'",n+="' "),e.opts.verbose&&(n+=" , schema: validate.schema"+a+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),n+=" } "):n+=" {} ",n+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } else if ("+p+" !== undefined) { "),n+=" for (var "+w+" = 0; "+w+" < "+p+".length; "+w+"++) { if ("+u+"["+p+"["+w+"]] === undefined ",_&&(n+=" || ! Object.prototype.hasOwnProperty.call("+u+", "+p+"["+w+"]) "),n+=") { var err = ",!1!==e.createErrors?(n+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { missingProperty: '"+A+"' } ",!1!==e.opts.messages&&(n+=" , message: '",e.opts._errorDataPathProperty?n+="is a required property":n+="should have required property \\'"+A+"\\'",n+="' "),e.opts.verbose&&(n+=" , schema: validate.schema"+a+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),n+=" } "):n+=" {} ",n+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } } ",f&&(n+=" } ")}else{var R=d;if(R)for(var N,P=-1,I=R.length-1;P<I;){N=R[P+=1];var L=e.util.getProperty(N),D=(A=e.util.escapeQuotes(N),u+L);e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPath(v,N,e.opts.jsonPointers)),n+=" if ( "+D+" === undefined ",_&&(n+=" || ! Object.prototype.hasOwnProperty.call("+u+", '"+e.util.escapeQuotes(N)+"') "),n+=") { var err = ",!1!==e.createErrors?(n+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { missingProperty: '"+A+"' } ",!1!==e.opts.messages&&(n+=" , message: '",e.opts._errorDataPathProperty?n+="is a required property":n+="should have required property \\'"+A+"\\'",n+="' "),e.opts.verbose&&(n+=" , schema: validate.schema"+a+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),n+=" } "):n+=" {} ",n+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } "}}e.errorPath=v}else l&&(n+=" if (true) {");return n},uniqueItems:function(e,t,r){var n,o=" ",i=e.level,s=e.dataLevel,a=e.schema[t],c=e.schemaPath+e.util.getProperty(t),l=e.errSchemaPath+"/"+t,u=!e.opts.allErrors,h="data"+(s||""),f="valid"+i,p=e.opts.$data&&a&&a.$data;if(p?(o+=" var schema"+i+" = "+e.util.getData(a.$data,s,e.dataPathArr)+"; ",n="schema"+i):n=a,(a||p)&&!1!==e.opts.uniqueItems){p&&(o+=" var "+f+"; if ("+n+" === false || "+n+" === undefined) "+f+" = true; else if (typeof "+n+" != 'boolean') "+f+" = false; else { "),o+=" var i = "+h+".length , "+f+" = 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))o+=" outer: for (;i--;) { for (j = i; j--;) { if (equal("+h+"[i], "+h+"[j])) { "+f+" = false; break outer; } } } ";else{o+=" var itemIndices = {}, item; for (;i--;) { var item = "+h+"[i]; ";var g="checkDataType"+(m?"s":"");o+=" if ("+e.util[g](d,"item",e.opts.strictNumbers,!0)+") continue; ",m&&(o+=" if (typeof item == 'string') item = '\"' + item; "),o+=" if (typeof itemIndices[item] == 'number') { "+f+" = false; j = itemIndices[item]; break; } itemIndices[item] = i; } "}o+=" } ",p&&(o+=" } "),o+=" if (!"+f+") { ";var y=y||[];y.push(o),o="",!1!==e.createErrors?(o+=" { keyword: 'uniqueItems' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { i: i, j: j } ",!1!==e.opts.messages&&(o+=" , message: 'should NOT have duplicate items (items ## ' + j + ' and ' + i + ' are identical)' "),e.opts.verbose&&(o+=" , schema: ",o+=p?"validate.schema"+c:""+a,o+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+h+" "),o+=" } "):o+=" {} ";var E=o;o=y.pop(),!e.compositeRule&&u?e.async?o+=" throw new ValidationError(["+E+"]); ":o+=" validate.errors = ["+E+"]; return false; ":o+=" var err = "+E+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",o+=" } ",u&&(o+=" else { ")}else u&&(o+=" if (true) { ");return o},validate:ct},Zt=Jt,er=ye.toHash,tr=["multipleOf","maximum","exclusiveMaximum","minimum","exclusiveMinimum","maxLength","minLength","pattern","additionalItems","maxItems","minItems","uniqueItems","maxProperties","minProperties","required","additionalProperties","enum","format","const"],rr=ot.MissingRef,nr=function e(t,r,n){var o=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 i=s(t).then(function(){var e=o._addSchema(t,void 0,r);return e.validate||a(e)});n&&i.then(function(e){n(null,e)},n);return i;function s(t){var r=t.$schema;return r&&!o.getSchema(r)?e.call(o,{$ref:r},!0):Promise.resolve()}function a(e){try{return o._compile(e)}catch(t){if(t instanceof rr)return function(t){var n=t.missingSchema;if(l(n))throw new Error("Schema "+n+" is loaded but "+t.missingRef+" cannot be resolved");var i=o._loadingSchemas[n];i||(i=o._loadingSchemas[n]=o._opts.loadSchema(n)).then(c,c);return i.then(function(e){if(!l(n))return s(e).then(function(){l(n)||o.addSchema(e,n,void 0,r)})}).then(function(){return a(e)});function c(){delete o._loadingSchemas[n]}function l(e){return o._refs[e]||o._schemas[e]}}(t);throw t}}};var or={$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},ir=or,sr={$id:"https://github.com/ajv-validator/ajv/blob/master/lib/definition_schema.js",definitions:{simpleTypes:ir.definitions.simpleTypes},type:"object",dependencies:{schema:["validate"],$data:["validate"],statements:["inline"],valid:{not:{required:["macro"]}}},properties:{type:ir.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"}]}}},ar=/^[a-z_$][a-z0-9_$-]*$/i,cr=function(e,t,r){var n,o,i=" ",s=e.level,a=e.dataLevel,c=e.schema[t],l=e.schemaPath+e.util.getProperty(t),u=e.errSchemaPath+"/"+t,h=!e.opts.allErrors,f="data"+(a||""),p="valid"+s,d="errs__"+s,m=e.opts.$data&&c&&c.$data;m?(i+=" var schema"+s+" = "+e.util.getData(c.$data,a,e.dataPathArr)+"; ",o="schema"+s):o=c;var g,y,E,T,v,b=this,_="definition"+s,A=b.definition,S="";if(m&&A.$data){v="keywordValidate"+s;var k=A.validateSchema;i+=" var "+_+" = RULES.custom['"+t+"'].definition; var "+v+" = "+_+".validate;"}else{if(!(T=e.useCustomRule(b,c,e.schema,e)))return;o="validate.schema"+l,v=T.code,g=A.compile,y=A.inline,E=A.macro}var w=v+".errors",C="i"+s,x="ruleErr"+s,O=A.async;if(O&&!e.async)throw new Error("async keyword in sync schema");if(y||E||(i+=w+" = null;"),i+="var "+d+" = errors;var "+p+";",m&&A.$data&&(S+="}",i+=" if ("+o+" === undefined) { "+p+" = true; } else { ",k&&(S+="}",i+=" "+p+" = "+_+".validateSchema("+o+"); if ("+p+") { ")),y)A.statements?i+=" "+T.validate+" ":i+=" "+p+" = "+T.validate+"; ";else if(E){var R=e.util.copy(e);S="";R.level++;var N="valid"+R.level;R.schema=T.validate,R.schemaPath="";var P=e.compositeRule;e.compositeRule=R.compositeRule=!0;var I=e.validate(R).replace(/validate\.schema/g,v);e.compositeRule=R.compositeRule=P,i+=" "+I}else{(M=M||[]).push(i),i="",i+=" "+v+".call( ",e.opts.passContext?i+="this":i+="self",g||!1===A.schema?i+=" , "+f+" ":i+=" , "+o+" , "+f+" , validate.schema"+e.schemaPath+" ",i+=" , (dataPath || '')",'""'!=e.errorPath&&(i+=" + "+e.errorPath);var L=a?"data"+(a-1||""):"parentData",D=a?e.dataPathArr[a]:"parentDataProperty",F=i+=" , "+L+" , "+D+" , rootData ) ";i=M.pop(),!1===A.errors?(i+=" "+p+" = ",O&&(i+="await "),i+=F+"; "):i+=O?" var "+(w="customErrors"+s)+" = null; try { "+p+" = await "+F+"; } catch (e) { "+p+" = false; if (e instanceof ValidationError) "+w+" = e.errors; else throw e; } ":" "+w+" = null; "+p+" = "+F+"; "}if(A.modifying&&(i+=" if ("+L+") "+f+" = "+L+"["+D+"];"),i+=""+S,A.valid)h&&(i+=" if (true) { ");else{var M;i+=" if ( ",void 0===A.valid?(i+=" !",i+=E?""+N:""+p):i+=" "+!A.valid+" ",i+=") { ",n=b.keyword,(M=M||[]).push(i),i="",(M=M||[]).push(i),i="",!1!==e.createErrors?(i+=" { keyword: '"+(n||"custom")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { keyword: '"+b.keyword+"' } ",!1!==e.opts.messages&&(i+=" , message: 'should pass \""+b.keyword+"\" keyword validation' "),e.opts.verbose&&(i+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "),i+=" } "):i+=" {} ";var B=i;i=M.pop(),!e.compositeRule&&h?e.async?i+=" throw new ValidationError(["+B+"]); ":i+=" validate.errors = ["+B+"]; return false; ":i+=" var err = "+B+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ";var U=i;i=M.pop(),y?A.errors?"full"!=A.errors&&(i+=" for (var "+C+"="+d+"; "+C+"<errors; "+C+"++) { var "+x+" = vErrors["+C+"]; if ("+x+".dataPath === undefined) "+x+".dataPath = (dataPath || '') + "+e.errorPath+"; if ("+x+".schemaPath === undefined) { "+x+'.schemaPath = "'+u+'"; } ',e.opts.verbose&&(i+=" "+x+".schema = "+o+"; "+x+".data = "+f+"; "),i+=" } "):!1===A.errors?i+=" "+U+" ":(i+=" if ("+d+" == errors) { "+U+" } else { for (var "+C+"="+d+"; "+C+"<errors; "+C+"++) { var "+x+" = vErrors["+C+"]; if ("+x+".dataPath === undefined) "+x+".dataPath = (dataPath || '') + "+e.errorPath+"; if ("+x+".schemaPath === undefined) { "+x+'.schemaPath = "'+u+'"; } ',e.opts.verbose&&(i+=" "+x+".schema = "+o+"; "+x+".data = "+f+"; "),i+=" } } "):E?(i+=" var err = ",!1!==e.createErrors?(i+=" { keyword: '"+(n||"custom")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { keyword: '"+b.keyword+"' } ",!1!==e.opts.messages&&(i+=" , message: 'should pass \""+b.keyword+"\" keyword validation' "),e.opts.verbose&&(i+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "),i+=" } "):i+=" {} ",i+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&h&&(e.async?i+=" throw new ValidationError(vErrors); ":i+=" validate.errors = vErrors; return false; ")):!1===A.errors?i+=" "+U+" ":(i+=" if (Array.isArray("+w+")) { if (vErrors === null) vErrors = "+w+"; else vErrors = vErrors.concat("+w+"); errors = vErrors.length; for (var "+C+"="+d+"; "+C+"<errors; "+C+"++) { var "+x+" = vErrors["+C+"]; if ("+x+".dataPath === undefined) "+x+".dataPath = (dataPath || '') + "+e.errorPath+"; "+x+'.schemaPath = "'+u+'"; ',e.opts.verbose&&(i+=" "+x+".schema = "+o+"; "+x+".data = "+f+"; "),i+=" } } else { "+U+" } "),i+=" } ",h&&(i+=" else { ")}return i},lr=sr,ur={add:function(e,t){var r=this.RULES;if(r.keywords[e])throw new Error("Keyword "+e+" is already defined");if(!ar.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 o=0;o<n.length;o++)s(e,n[o],t);else s(e,n,t);var i=t.metaSchema;i&&(t.$data&&this._opts.$data&&(i={anyOf:[i,{$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"}]}),t.validateSchema=this.compile(i,!0))}function s(e,t,n){for(var o,i=0;i<r.length;i++){var s=r[i];if(s.type==t){o=s;break}}o||(o={type:t,rules:[]},r.push(o));var a={keyword:e,definition:n,custom:!0,code:cr,implements:n.implements};o.rules.push(a),r.custom[e]=a}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,o=0;o<n.length;o++)if(n[o].keyword==e){n.splice(o,1);break}return this},validate:function e(t,r){e.errors=null;var n=this._validateKeyword=this._validateKeyword||this.compile(lr,!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 hr={$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},fr=yt,pr=qe,dr=wt.exports,mr=Pe,gr=at,yr=Ht,Er=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=er(t),e.types=er(["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 o=Object.keys(r)[0];n=r[o],r=o,n.forEach(function(r){t.push(r),e.all[r]=!0})}return t.push(r),e.all[r]={keyword:r,code:Zt[r],implements:n}}),e.all.$comment={keyword:"$comment",code:Zt.$comment},r.type&&(e.types[r.type]=r)}),e.keywords=er(t.concat(["$schema","$id","id","$data","$async","title","description","default","definitions","examples","readOnly","writeOnly","contentMediaType","contentEncoding","additionalItems","then","else"])),e.custom={},e},Tr=function(e,t){for(var r=0;r<t.length;r++){e=JSON.parse(JSON.stringify(e));var n,o=t[r].split("/"),i=e;for(n=1;n<o.length;n++)i=i[o[n]];for(n=0;n<tr.length;n++){var s=tr[n],a=i[s];a&&(i[s]={anyOf:[a,{$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"}]})}}return e},vr=ye,br=Cr;Cr.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 o=r(t);!0!==r.$async&&(this.errors=r.errors);return o},Cr.prototype.compile=function(e,t){var r=this._addSchema(e,void 0,t);return r.validate||this._compile(r)},Cr.prototype.addSchema=function(e,t,r,n){if(Array.isArray(e)){for(var o=0;o<e.length;o++)this.addSchema(e[o],void 0,r,n);return this}var i=this._getId(e);if(void 0!==i&&"string"!=typeof i)throw new Error("schema id must be string");return Ir(this,t=pr.normalizeId(t||i)),this._schemas[t]=this._addSchema(e,r,n,!0),this},Cr.prototype.addMetaSchema=function(e,t,r){return this.addSchema(e,t,r,!0),this},Cr.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(Sr)?Sr:void 0,e._opts.defaultMeta}(this),!r)return this.logger.warn("meta-schema not available"),this.errors=null,!0;var n=this.validate(r,e);if(!n&&t){var o="schema is invalid: "+this.errorsText();if("log"!=this._opts.validateSchema)throw new Error(o);this.logger.error(o)}return n},Cr.prototype.getSchema=function(e){var t=xr(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=pr.schema.call(e,{schema:{}},t);if(r){var n=r.schema,o=r.root,i=r.baseId,s=fr.call(e,n,o,void 0,i);return e._fragments[t]=new mr({ref:t,fragment:!0,schema:n,root:o,baseId:i,validate:s}),s}}(this,e)}},Cr.prototype.removeSchema=function(e){if(e instanceof RegExp)return Or(this,this._schemas,e),Or(this,this._refs,e),this;switch(typeof e){case"undefined":return Or(this,this._schemas),Or(this,this._refs),this._cache.clear(),this;case"string":var t=xr(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 o=this._getId(e);o&&(o=pr.normalizeId(o),delete this._schemas[o],delete this._refs[o])}return this},Cr.prototype.addFormat=function(e,t){"string"==typeof t&&(t=new RegExp(t));return this._formats[e]=t,this},Cr.prototype.errorsText=function(e,t){if(e=e||this.errors,!e)return"No errors";for(var r=void 0===(t=t||{}).separator?", ":t.separator,n=void 0===t.dataVar?"data":t.dataVar,o="",i=0;i<e.length;i++){var s=e[i];s&&(o+=n+s.dataPath+" "+s.message+r)}return o.slice(0,-r.length)},Cr.prototype._addSchema=function(e,t,r,n){if("object"!=typeof e&&"boolean"!=typeof e)throw new Error("schema should be object or boolean");var o=this._opts.serialize,i=o?o(e):e,s=this._cache.get(i);if(s)return s;n=n||!1!==this._opts.addUsedSchema;var a=pr.normalizeId(this._getId(e));a&&n&&Ir(this,a);var c,l=!1!==this._opts.validateSchema&&!t;l&&!(c=a&&a==pr.normalizeId(e.$schema))&&this.validateSchema(e,!0);var u=pr.ids.call(this,e),h=new mr({id:a,schema:e,localRefs:u,cacheKey:i,meta:r});"#"!=a[0]&&n&&(this._refs[a]=h);this._cache.put(i,h),l&&c&&this.validateSchema(e,!0);return h},Cr.prototype._compile=function(e,t){if(e.compiling)return e.validate=o,o.schema=e.schema,o.errors=null,o.root=t||o,!0===e.schema.$async&&(o.$async=!0),o;var r,n;e.compiling=!0,e.meta&&(r=this._opts,this._opts=this._metaOpts);try{n=fr.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 o(){var t=e.validate,r=t.apply(this,arguments);return o.errors=t.errors,r}},Cr.prototype.compileAsync=nr;var _r=ur;Cr.prototype.addKeyword=_r.add,Cr.prototype.getKeyword=_r.get,Cr.prototype.removeKeyword=_r.remove,Cr.prototype.validateKeyword=_r.validate;var Ar=ot;Cr.ValidationError=Ar.Validation,Cr.MissingRefError=Ar.MissingRef,Cr.$dataMetaSchema=Tr;var Sr="http://json-schema.org/draft-07/schema",kr=["removeAdditional","useDefaults","coerceTypes","strictDefaults"],wr=["/properties"];function Cr(e){if(!(this instanceof Cr))return new Cr(e);e=this._opts=vr.copy(e)||{},function(e){var t=e._opts.logger;if(!1===t)e.logger={log:Lr,warn:Lr,error:Lr};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=yr(e.format),this._cache=e.cache||new dr,this._loadingSchemas={},this._compilations=[],this.RULES=Er(),this._getId=function(e){switch(e.schemaId){case"auto":return Pr;case"id":return Rr;default:return Nr}}(e),e.loopRequired=e.loopRequired||1/0,"property"==e.errorDataPath&&(e._errorDataPathProperty=!0),void 0===e.serialize&&(e.serialize=gr),this._metaOpts=function(e){for(var t=vr.copy(e._opts),r=0;r<kr.length;r++)delete t[kr[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=hr,e.addMetaSchema(t,t.$id,!0));if(!1===e._opts.meta)return;var r=or;e._opts.$data&&(r=Tr(r,wr));e.addMetaSchema(r,Sr,!0),e._refs["http://json-schema.org/schema"]=Sr}(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 xr(e,t){return t=pr.normalizeId(t),e._schemas[t]||e._refs[t]||e._fragments[t]}function Or(e,t,r){for(var n in t){var o=t[n];o.meta||r&&!r.test(n)||(e._cache.del(o.cacheKey),delete t[n])}}function Rr(e){return e.$id&&this.logger.warn("schema $id ignored",e.$id),e.id}function Nr(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 Ir(e,t){if(e._schemas[t]||e._refs[t])throw new Error('schema with key or id "'+t+'" already exists')}function Lr(){}var Dr,Fr={exports:{}},Mr={exports:{}};Mr.exports=(Dr=Dr||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!==fe&&fe.crypto&&(r=fe.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.")},o=Object.create||function(){function e(){}return function(t){var r;return e.prototype=t,r=new e,e.prototype=null,r}}(),i={},s=i.lib={},a=s.Base={extend:function(e){var t=o(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=s.WordArray=a.extend({init:function(e,r){e=this.words=e||[],this.sigBytes=r!=t?r:4*e.length},toString:function(e){return(e||u).stringify(this)},concat:function(e){var t=this.words,r=e.words,n=this.sigBytes,o=e.sigBytes;if(this.clamp(),n%4)for(var i=0;i<o;i++){var s=r[i>>>2]>>>24-i%4*8&255;t[n+i>>>2]|=s<<24-(n+i)%4*8}else for(var a=0;a<o;a+=4)t[n+a>>>2]=r[a>>>2];return this.sigBytes+=o,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=a.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)}}),l=i.enc={},u=l.Hex={stringify:function(e){for(var t=e.words,r=e.sigBytes,n=[],o=0;o<r;o++){var i=t[o>>>2]>>>24-o%4*8&255;n.push((i>>>4).toString(16)),n.push((15&i).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)}},h=l.Latin1={stringify:function(e){for(var t=e.words,r=e.sigBytes,n=[],o=0;o<r;o++){var i=t[o>>>2]>>>24-o%4*8&255;n.push(String.fromCharCode(i))}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)}},f=l.Utf8={stringify:function(e){try{return decodeURIComponent(escape(h.stringify(e)))}catch(e){throw new Error("Malformed UTF-8 data")}},parse:function(e){return h.parse(unescape(encodeURIComponent(e)))}},p=s.BufferedBlockAlgorithm=a.extend({reset:function(){this._data=new c.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=f.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var r,n=this._data,o=n.words,i=n.sigBytes,s=this.blockSize,a=i/(4*s),l=(a=t?e.ceil(a):e.max((0|a)-this._minBufferSize,0))*s,u=e.min(4*l,i);if(l){for(var h=0;h<l;h+=s)this._doProcessBlock(o,h);r=o.splice(0,l),n.sigBytes-=u}return new c.init(r,u)},clone:function(){var e=a.clone.call(this);return e._data=this._data.clone(),e},_minBufferSize:0});s.Hasher=p.extend({cfg:a.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=i.algo={};return i}(Math),Dr);var Br={exports:{}};Br.exports=function(e){return function(){var t=e,r=t.lib.WordArray;function n(e,t,n){for(var o=[],i=0,s=0;s<t;s++)if(s%4){var a=n[e.charCodeAt(s-1)]<<s%4*2|n[e.charCodeAt(s)]>>>6-s%4*2;o[i>>>2]|=a<<24-i%4*8,i++}return r.create(o,i)}t.enc.Base64={stringify:function(e){var t=e.words,r=e.sigBytes,n=this._map;e.clamp();for(var o=[],i=0;i<r;i+=3)for(var s=(t[i>>>2]>>>24-i%4*8&255)<<16|(t[i+1>>>2]>>>24-(i+1)%4*8&255)<<8|t[i+2>>>2]>>>24-(i+2)%4*8&255,a=0;a<4&&i+.75*a<r;a++)o.push(n.charAt(s>>>6*(3-a)&63));var c=n.charAt(64);if(c)for(;o.length%4;)o.push(c);return o.join("")},parse:function(e){var t=e.length,r=this._map,o=this._reverseMap;if(!o){o=this._reverseMap=[];for(var i=0;i<r.length;i++)o[r.charCodeAt(i)]=i}var s=r.charAt(64);if(s){var a=e.indexOf(s);-1!==a&&(t=a)}return n(e,t,o)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}}(),e.enc.Base64}(Mr.exports);var Ur={exports:{}};Ur.exports=function(e){return function(t){var r=e,n=r.lib,o=n.WordArray,i=n.Hasher,s=r.algo,a=[];!function(){for(var e=0;e<64;e++)a[e]=4294967296*t.abs(t.sin(e+1))|0}();var c=s.MD5=i.extend({_doReset:function(){this._hash=new o.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(e,t){for(var r=0;r<16;r++){var n=t+r,o=e[n];e[n]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8)}var i=this._hash.words,s=e[t+0],c=e[t+1],p=e[t+2],d=e[t+3],m=e[t+4],g=e[t+5],y=e[t+6],E=e[t+7],T=e[t+8],v=e[t+9],b=e[t+10],_=e[t+11],A=e[t+12],S=e[t+13],k=e[t+14],w=e[t+15],C=i[0],x=i[1],O=i[2],R=i[3];C=l(C,x,O,R,s,7,a[0]),R=l(R,C,x,O,c,12,a[1]),O=l(O,R,C,x,p,17,a[2]),x=l(x,O,R,C,d,22,a[3]),C=l(C,x,O,R,m,7,a[4]),R=l(R,C,x,O,g,12,a[5]),O=l(O,R,C,x,y,17,a[6]),x=l(x,O,R,C,E,22,a[7]),C=l(C,x,O,R,T,7,a[8]),R=l(R,C,x,O,v,12,a[9]),O=l(O,R,C,x,b,17,a[10]),x=l(x,O,R,C,_,22,a[11]),C=l(C,x,O,R,A,7,a[12]),R=l(R,C,x,O,S,12,a[13]),O=l(O,R,C,x,k,17,a[14]),C=u(C,x=l(x,O,R,C,w,22,a[15]),O,R,c,5,a[16]),R=u(R,C,x,O,y,9,a[17]),O=u(O,R,C,x,_,14,a[18]),x=u(x,O,R,C,s,20,a[19]),C=u(C,x,O,R,g,5,a[20]),R=u(R,C,x,O,b,9,a[21]),O=u(O,R,C,x,w,14,a[22]),x=u(x,O,R,C,m,20,a[23]),C=u(C,x,O,R,v,5,a[24]),R=u(R,C,x,O,k,9,a[25]),O=u(O,R,C,x,d,14,a[26]),x=u(x,O,R,C,T,20,a[27]),C=u(C,x,O,R,S,5,a[28]),R=u(R,C,x,O,p,9,a[29]),O=u(O,R,C,x,E,14,a[30]),C=h(C,x=u(x,O,R,C,A,20,a[31]),O,R,g,4,a[32]),R=h(R,C,x,O,T,11,a[33]),O=h(O,R,C,x,_,16,a[34]),x=h(x,O,R,C,k,23,a[35]),C=h(C,x,O,R,c,4,a[36]),R=h(R,C,x,O,m,11,a[37]),O=h(O,R,C,x,E,16,a[38]),x=h(x,O,R,C,b,23,a[39]),C=h(C,x,O,R,S,4,a[40]),R=h(R,C,x,O,s,11,a[41]),O=h(O,R,C,x,d,16,a[42]),x=h(x,O,R,C,y,23,a[43]),C=h(C,x,O,R,v,4,a[44]),R=h(R,C,x,O,A,11,a[45]),O=h(O,R,C,x,w,16,a[46]),C=f(C,x=h(x,O,R,C,p,23,a[47]),O,R,s,6,a[48]),R=f(R,C,x,O,E,10,a[49]),O=f(O,R,C,x,k,15,a[50]),x=f(x,O,R,C,g,21,a[51]),C=f(C,x,O,R,A,6,a[52]),R=f(R,C,x,O,d,10,a[53]),O=f(O,R,C,x,b,15,a[54]),x=f(x,O,R,C,c,21,a[55]),C=f(C,x,O,R,T,6,a[56]),R=f(R,C,x,O,w,10,a[57]),O=f(O,R,C,x,y,15,a[58]),x=f(x,O,R,C,S,21,a[59]),C=f(C,x,O,R,m,6,a[60]),R=f(R,C,x,O,_,10,a[61]),O=f(O,R,C,x,p,15,a[62]),x=f(x,O,R,C,v,21,a[63]),i[0]=i[0]+C|0,i[1]=i[1]+x|0,i[2]=i[2]+O|0,i[3]=i[3]+R|0},_doFinalize:function(){var e=this._data,r=e.words,n=8*this._nDataBytes,o=8*e.sigBytes;r[o>>>5]|=128<<24-o%32;var i=t.floor(n/4294967296),s=n;r[15+(o+64>>>9<<4)]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8),r[14+(o+64>>>9<<4)]=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),e.sigBytes=4*(r.length+1),this._process();for(var a=this._hash,c=a.words,l=0;l<4;l++){var u=c[l];c[l]=16711935&(u<<8|u>>>24)|4278255360&(u<<24|u>>>8)}return a},clone:function(){var e=i.clone.call(this);return e._hash=this._hash.clone(),e}});function l(e,t,r,n,o,i,s){var a=e+(t&r|~t&n)+o+s;return(a<<i|a>>>32-i)+t}function u(e,t,r,n,o,i,s){var a=e+(t&n|r&~n)+o+s;return(a<<i|a>>>32-i)+t}function h(e,t,r,n,o,i,s){var a=e+(t^r^n)+o+s;return(a<<i|a>>>32-i)+t}function f(e,t,r,n,o,i,s){var a=e+(r^(t|~n))+o+s;return(a<<i|a>>>32-i)+t}r.MD5=i._createHelper(c),r.HmacMD5=i._createHmacHelper(c)}(Math),e.MD5}(Mr.exports);var Hr={exports:{}},jr={exports:{}};jr.exports=function(e){return function(){var t=e,r=t.lib,n=r.WordArray,o=r.Hasher,i=t.algo,s=[],a=i.SHA1=o.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],o=r[1],i=r[2],a=r[3],c=r[4],l=0;l<80;l++){if(l<16)s[l]=0|e[t+l];else{var u=s[l-3]^s[l-8]^s[l-14]^s[l-16];s[l]=u<<1|u>>>31}var h=(n<<5|n>>>27)+c+s[l];h+=l<20?1518500249+(o&i|~o&a):l<40?1859775393+(o^i^a):l<60?(o&i|o&a|i&a)-1894007588:(o^i^a)-899497514,c=a,a=i,i=o<<30|o>>>2,o=n,n=h}r[0]=r[0]+n|0,r[1]=r[1]+o|0,r[2]=r[2]+i|0,r[3]=r[3]+a|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=o.clone.call(this);return e._hash=this._hash.clone(),e}});t.SHA1=o._createHelper(a),t.HmacSHA1=o._createHmacHelper(a)}(),e.SHA1}(Mr.exports);var qr={exports:{}};qr.exports=function(e){!function(){var t=e,r=t.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,o=4*r;t.sigBytes>o&&(t=e.finalize(t)),t.clamp();for(var i=this._oKey=t.clone(),s=this._iKey=t.clone(),a=i.words,c=s.words,l=0;l<r;l++)a[l]^=1549556828,c[l]^=909522486;i.sigBytes=s.sigBytes=o,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))}})}()}(Mr.exports),Hr.exports=function(e){return function(){var t=e,r=t.lib,n=r.Base,o=r.WordArray,i=t.algo,s=i.MD5,a=i.EvpKDF=n.extend({cfg:n.extend({keySize:4,hasher:s,iterations:1}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){for(var r,n=this.cfg,i=n.hasher.create(),s=o.create(),a=s.words,c=n.keySize,l=n.iterations;a.length<c;){r&&i.update(r),r=i.update(e).finalize(t),i.reset();for(var u=1;u<l;u++)r=i.finalize(r),i.reset();s.concat(r)}return s.sigBytes=4*c,s}});t.EvpKDF=function(e,t,r){return a.create(r).compute(e,t)}}(),e.EvpKDF}(Mr.exports);var zr={exports:{}};zr.exports=function(e){e.lib.Cipher||function(t){var r=e,n=r.lib,o=n.Base,i=n.WordArray,s=n.BufferedBlockAlgorithm,a=r.enc;a.Utf8;var c=a.Base64,l=r.algo.EvpKDF,u=n.Cipher=s.extend({cfg:o.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(){s.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?T:y}return function(t){return{encrypt:function(r,n,o){return e(n).encrypt(t,r,n,o)},decrypt:function(r,n,o){return e(n).decrypt(t,r,n,o)}}}}()});n.StreamCipher=u.extend({_doFinalize:function(){return this._process(!0)},blockSize:1});var h=r.mode={},f=n.BlockCipherMode=o.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=h.CBC=function(){var e=f.extend();function r(e,r,n){var o,i=this._iv;i?(o=i,this._iv=t):o=this._prevBlock;for(var s=0;s<n;s++)e[r+s]^=o[s]}return e.Encryptor=e.extend({processBlock:function(e,t){var n=this._cipher,o=n.blockSize;r.call(this,e,t,o),n.encryptBlock(e,t),this._prevBlock=e.slice(t,t+o)}}),e.Decryptor=e.extend({processBlock:function(e,t){var n=this._cipher,o=n.blockSize,i=e.slice(t,t+o);n.decryptBlock(e,t),r.call(this,e,t,o),this._prevBlock=i}}),e}(),d=(r.pad={}).Pkcs7={pad:function(e,t){for(var r=4*t,n=r-e.sigBytes%r,o=n<<24|n<<16|n<<8|n,s=[],a=0;a<n;a+=4)s.push(o);var c=i.create(s,n);e.concat(c)},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}};n.BlockCipher=u.extend({cfg:u.cfg.extend({mode:p,padding:d}),reset:function(){var e;u.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=o.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?i.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=i.create(n.slice(2,4)),n.splice(0,4),r.sigBytes-=16),m.create({ciphertext:r,salt:t})}},y=n.SerializableCipher=o.extend({cfg:o.extend({format:g}),encrypt:function(e,t,r,n){n=this.cfg.extend(n);var o=e.createEncryptor(r,n),i=o.finalize(t),s=o.cfg;return m.create({ciphertext:i,key:r,iv:s.iv,algorithm:e,mode:s.mode,padding:s.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}}),E=(r.kdf={}).OpenSSL={execute:function(e,t,r,n,o){if(n||(n=i.random(8)),o)s=l.create({keySize:t+r,hasher:o}).compute(e,n);else var s=l.create({keySize:t+r}).compute(e,n);var a=i.create(s.words.slice(t),4*r);return s.sigBytes=4*t,m.create({key:s,iv:a,salt:n})}},T=n.PasswordBasedCipher=y.extend({cfg:y.cfg.extend({kdf:E}),encrypt:function(e,t,r,n){var o=(n=this.cfg.extend(n)).kdf.execute(r,e.keySize,e.ivSize,n.salt,n.hasher);n.iv=o.iv;var i=y.encrypt.call(this,e,t,o.key,n);return i.mixIn(o),i},decrypt:function(e,t,r,n){n=this.cfg.extend(n),t=this._parse(t,n.format);var o=n.kdf.execute(r,e.keySize,e.ivSize,t.salt,n.hasher);return n.iv=o.iv,y.decrypt.call(this,e,t,o.key,n)}})}()}(Mr.exports),Fr.exports=function(e){return function(){var t=e,r=t.lib.BlockCipher,n=t.algo,o=[],i=[],s=[],a=[],c=[],l=[],u=[],h=[],f=[],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,o[r]=d,i[d]=r;var m=e[r],g=e[m],y=e[g],E=257*e[d]^16843008*d;s[r]=E<<24|E>>>8,a[r]=E<<16|E>>>16,c[r]=E<<8|E>>>24,l[r]=E,E=16843009*y^65537*g^257*m^16843008*r,u[d]=E<<24|E>>>8,h[d]=E<<16|E>>>16,f[d]=E<<8|E>>>24,p[d]=E,r?(r=m^e[e[e[y^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),i=this._keySchedule=[],s=0;s<n;s++)s<r?i[s]=t[s]:(l=i[s-1],s%r?r>6&&s%r==4&&(l=o[l>>>24]<<24|o[l>>>16&255]<<16|o[l>>>8&255]<<8|o[255&l]):(l=o[(l=l<<8|l>>>24)>>>24]<<24|o[l>>>16&255]<<16|o[l>>>8&255]<<8|o[255&l],l^=d[s/r|0]<<24),i[s]=i[s-r]^l);for(var a=this._invKeySchedule=[],c=0;c<n;c++){if(s=n-c,c%4)var l=i[s];else l=i[s-4];a[c]=c<4||s<=4?l:u[o[l>>>24]]^h[o[l>>>16&255]]^f[o[l>>>8&255]]^p[o[255&l]]}}},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._keySchedule,s,a,c,l,o)},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,u,h,f,p,i),r=e[t+1],e[t+1]=e[t+3],e[t+3]=r},_doCryptBlock:function(e,t,r,n,o,i,s,a){for(var c=this._nRounds,l=e[t]^r[0],u=e[t+1]^r[1],h=e[t+2]^r[2],f=e[t+3]^r[3],p=4,d=1;d<c;d++){var m=n[l>>>24]^o[u>>>16&255]^i[h>>>8&255]^s[255&f]^r[p++],g=n[u>>>24]^o[h>>>16&255]^i[f>>>8&255]^s[255&l]^r[p++],y=n[h>>>24]^o[f>>>16&255]^i[l>>>8&255]^s[255&u]^r[p++],E=n[f>>>24]^o[l>>>16&255]^i[u>>>8&255]^s[255&h]^r[p++];l=m,u=g,h=y,f=E}m=(a[l>>>24]<<24|a[u>>>16&255]<<16|a[h>>>8&255]<<8|a[255&f])^r[p++],g=(a[u>>>24]<<24|a[h>>>16&255]<<16|a[f>>>8&255]<<8|a[255&l])^r[p++],y=(a[h>>>24]<<24|a[f>>>16&255]<<16|a[l>>>8&255]<<8|a[255&u])^r[p++],E=(a[f>>>24]<<24|a[l>>>16&255]<<16|a[u>>>8&255]<<8|a[255&h])^r[p++],e[t]=m,e[t+1]=g,e[t+2]=y,e[t+3]=E},keySize:8});t.AES=r._createHelper(m)}(),e.AES}(Mr.exports);var Gr={exports:{}};Gr.exports=function(e){return e.enc.Utf8}(Mr.exports);var $r={},Kr={};function Vr(e,t){for(var r=t,n=0;n<e.length;n++){var o=n===e.length-1,i=e.charAt(n),s=r[i]||(r[i]={chars:{}});o&&(s.self=e),r=s.chars}}function Wr(e){if(0===e.length)return $r;for(var t={},r=0,n=e;r<n.length;r++){Vr(n[r],t)}return t}function Qr(e){if(0===e.length)return Kr;for(var t={},r=0,n=e;r<n.length;r++){t[n[r]]=!0}return t}var Yr={},Xr={type:"String",optional:!0};function Jr(e){var t={type:"NoArgument",optional:!1};function r(e){if(t.type&&t.type!==e&&"NoArgument"!==t.type)throw new Error('Conflicting pseudo-class argument type: "'.concat(t.type,'" vs "').concat(e,'".'));t.type=e}for(var n=0,o=e;n<o.length;n++){var i=o[n];"NoArgument"===i&&(t.optional=!0),"Formula"===i&&r("Formula"),"FormulaOfSelector"===i&&(r("Formula"),t.ofSelector=!0),"String"===i&&r("String"),"Selector"===i&&r("Selector")}return t}function Zr(e){for(var t=function(e){for(var t={},r=0,n=Object.keys(e);r<n.length;r++){var o=n[r],i=e[o];if(i)for(var s=0,a=i;s<a.length;s++){var c=a[s];(t[c]||(t[c]=[])).push(o)}}return t}(e),r={},n=0,o=Object.keys(t);n<o.length;n++){var i=o[n],s=t[i];s&&(r[i]=Jr(s))}return r}var en=function(){return en=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},en.apply(this,arguments)},tn={},rn={wildcard:!0};function nn(e,t){return function(r,n){return!0===n?e:t(!0===r?e:r,n)}}function on(e){return function(t,r){if(!r||!t)return r;if("object"!=typeof r||null===r)throw new Error("Unexpected syntax definition extension type: ".concat(r,"."));for(var n=en({},t),o=0,i=Object.entries(r);o<i.length;o++){var s=i[o],a=s[0],c=s[1];if("latest"!==a){var l=e[a];n[a]=l(t[a],c)}}return n}}function sn(e,t){return void 0!==t?t:e}function an(e,t){return t?e?e.concat(t):t:e}function cn(e,t){if(!t)return e;if(!e)return t;for(var r=en({},e),n=0,o=Object.entries(t);n<o.length;n++){var i=o[n],s=i[0],a=i[1];if(a){var c=e[s];r[s]=c?c.concat(a):a}else delete r[s]}return r}var ln=function(e){return function(t,r){var n=e(t,r);if(!n)throw new Error("Syntax definition cannot be null or undefined.");return n}}(on({baseSyntax:sn,modules:an,tag:nn(rn,on({wildcard:sn})),ids:sn,classNames:sn,nestingSelector:sn,namespace:nn(rn,on({wildcard:sn})),combinators:an,attributes:on({operators:an,caseSensitivityModifiers:an,unknownCaseSensitivityModifiers:sn}),pseudoClasses:on({unknown:sn,definitions:cn}),pseudoElements:on({unknown:sn,notation:sn,definitions:function(e,t){return function(r,n){return t(e(r),e(n))}}(function(e){return Array.isArray(e)?{NoArgument:e}:e},cn)})})),un={tag:{},ids:!0,classNames:!0,combinators:[],pseudoElements:{unknown:"reject",notation:"singleColon",definitions:["first-letter","first-line"]},pseudoClasses:{unknown:"reject",definitions:{NoArgument:["link","visited","active"]}}},hn=ln(un,{tag:{wildcard:!0},combinators:[">","+"],attributes:{unknownCaseSensitivityModifiers:"reject",operators:["=","~=","|="]},pseudoElements:{definitions:["before","after"]},pseudoClasses:{unknown:"reject",definitions:{NoArgument:["hover","focus","first-child"],String:["lang"]}}}),fn=ln(hn,{namespace:{wildcard:!0},combinators:["~"],attributes:{operators:["^=","$=","*="]},pseudoElements:{notation:"both"},pseudoClasses:{definitions:{NoArgument:["root","last-child","first-of-type","last-of-type","only-child","only-of-type","empty","target","enabled","disabled","checked","indeterminate"],Formula:["nth-child","nth-last-child","nth-of-type","nth-last-of-type"],Selector:["not"]}}}),pn=ln(fn,{combinators:["||"],attributes:{caseSensitivityModifiers:["i","I","s","S"]},pseudoClasses:{definitions:{NoArgument:["any-link","local-link","target-within","scope","current","past","future","focus-within","focus-visible","read-write","read-only","placeholder-shown","default","valid","invalid","in-range","out-of-range","required","optional","blank","user-invalid","playing","paused","autofill","modal","fullscreen","picture-in-picture","defined","loading","popover-open"],Formula:["nth-col","nth-last-col"],String:["dir"],FormulaOfSelector:["nth-child","nth-last-child"],Selector:["current","is","where","has","state"]}},pseudoElements:{definitions:{NoArgument:["marker"]}}}),dn={"css-position-1":{latest:!1,pseudoClasses:{definitions:{NoArgument:["static","relative","absolute"]}}},"css-position-2":{latest:!1,pseudoClasses:{definitions:{NoArgument:["static","relative","absolute","fixed"]}}},"css-position-3":{latest:!1,pseudoClasses:{definitions:{NoArgument:["sticky","fixed","absolute","relative","static"]}}},"css-position-4":{latest:!0,pseudoClasses:{definitions:{NoArgument:["sticky","fixed","absolute","relative","static","initial"]}}},"css-scoping-1":{latest:!0,pseudoClasses:{definitions:{NoArgument:["host","host-context"],Selector:["host","host-context"]}},pseudoElements:{definitions:{Selector:["slotted"]}}},"css-pseudo-4":{latest:!0,pseudoElements:{definitions:{NoArgument:["marker","selection","target-text","search-text","spelling-error","grammar-error","backdrop","file-selector-button","prefix","postfix","placeholder","details-content"],String:["highlight"]}}},"css-shadow-parts-1":{latest:!0,pseudoElements:{definitions:{String:["part"]}}},"css-nesting-1":{latest:!0,nestingSelector:!0}},mn=en(en({},pn),{modules:Object.entries(dn).filter(function(e){return e[1].latest}).map(function(e){return e[0]})}),gn={css1:un,css2:hn,css3:fn,"selectors-3":fn,"selectors-4":pn,latest:mn,progressive:ln(mn,{pseudoElements:{unknown:"accept"},pseudoClasses:{unknown:"accept"},attributes:{unknownCaseSensitivityModifiers:"accept"}})};var yn=function(){for(var e={pseudoClasses:{},pseudoElements:{}},t=0,r=["css1","css2","css3","selectors-3","selectors-4"];t<r.length;t++){var n=r[t],o=gn[n];if(o.pseudoClasses&&"object"==typeof o.pseudoClasses)if(v=o.pseudoClasses.definitions)for(var i=0,s=Object.entries(v);i<s.length;i++)for(var a=0,c=s[i][1];a<c.length;a++){var l=c[a];e.pseudoClasses[l]||(e.pseudoClasses[l]=[]),e.pseudoClasses[l].includes(n)||e.pseudoClasses[l].push(n)}if(o.pseudoElements&&"object"==typeof o.pseudoElements)if(v=o.pseudoElements.definitions)if(Array.isArray(v))for(var u=0,h=v;u<h.length;u++){var f=h[u];e.pseudoElements[f]||(e.pseudoElements[f]=[]),e.pseudoElements[f].includes(n)||e.pseudoElements[f].push(n)}else for(var p=0,d=Object.values(v);p<d.length;p++)for(var m=0,g=d[p];m<g.length;m++){var y=g[m];e.pseudoElements[y]||(e.pseudoElements[y]=[]),e.pseudoElements[y].includes(n)||e.pseudoElements[y].push(n)}}for(var E=0,T=Object.entries(dn);E<T.length;E++){var v,b=T[E],_=b[0],A=b[1];if(A.pseudoClasses&&"object"==typeof A.pseudoClasses)if(v=A.pseudoClasses.definitions)for(var S=0,k=Object.values(v);S<k.length;S++)for(var w=0,C=k[S];w<C.length;w++){var x=C[w];e.pseudoClasses[x]||(e.pseudoClasses[x]=[]),e.pseudoClasses[x].includes(_)||e.pseudoClasses[x].push(_)}if(A.pseudoElements&&"object"==typeof A.pseudoElements)if(v=A.pseudoElements.definitions)if(Array.isArray(v))for(var O=0,R=v;O<R.length;O++){var N=R[O];e.pseudoElements[N]||(e.pseudoElements[N]=[]),e.pseudoElements[N].includes(_)||e.pseudoElements[N].push(_)}else for(var P=0,I=Object.values(v);P<I.length;P++)for(var L=0,D=I[P];L<D.length;L++){var F=D[L];e.pseudoElements[F]||(e.pseudoElements[F]=[]),e.pseudoElements[F].includes(_)||e.pseudoElements[F].push(_)}}return e}();function En(e){return e>="a"&&e<="z"||e>="A"&&e<="Z"||"-"===e||"_"===e||"\\"===e||e>=" "}function Tn(e){return e>="a"&&e<="z"||e>="A"&&e<="Z"||e>="0"&&e<="9"||"-"===e||"_"===e||e>=" "}function vn(e){return e>="a"&&e<="f"||e>="A"&&e<="F"||e>="0"&&e<="9"}var bn={" ":!0,"\t":!0,"\n":!0,"\r":!0,"\f":!0},_n={'"':!0,"'":!0},An={0:!0,1:!0,2:!0,3:!0,4:!0,5:!0,6:!0,7:!0,8:!0,9:!0},Sn="css-selector-parser parse error: ";const kn=function(e){void 0===e&&(e={});var t=e.syntax,r=void 0===t?"latest":t,n=e.substitutes,o=e.strict,i=void 0===o||o,s=e.modules,a="object"==typeof r?r:gn[r];if(a.baseSyntax&&(a=ln(gn[a.baseSyntax],a)),a.modules&&a.modules.length>0)for(var c=0,l=a.modules;c<l.length;c++){var u=l[c];(p=dn[u])&&(a=ln(p,a))}if(s&&s.length>0)for(var h=0,f=s;h<f.length;h++){var p,d=f[h];(p=dn[d])&&(a=ln(p,a))}var m,g=a.tag?[!0,Boolean((m=a.tag,m?"boolean"==typeof m?rn:m:tn).wildcard)]:[!1,!1],y=g[0],E=g[1],T=Boolean(a.ids),v=Boolean(a.classNames),b=Boolean(a.nestingSelector),_=Boolean(a.namespace),A=a.namespace&&(!0===a.namespace||!0===a.namespace.wildcard);if(_&&!y)throw new Error("".concat(Sn,"Namespaces cannot be enabled while tags are disabled."));var S=Boolean(n),k=a.combinators?Wr(a.combinators):$r,w=a.attributes?[!0,a.attributes.operators?Wr(a.attributes.operators):$r,a.attributes.caseSensitivityModifiers?Qr(a.attributes.caseSensitivityModifiers):Kr,"accept"===a.attributes.unknownCaseSensitivityModifiers]:[!1,$r,Kr,!1],C=w[0],x=w[1],O=w[2],R=w[3],N=R||Object.keys(O).length>0,P=a.pseudoClasses?[!0,a.pseudoClasses.definitions?Zr(a.pseudoClasses.definitions):Yr,"accept"===a.pseudoClasses.unknown]:[!1,Yr,!1],I=P[0],L=P[1],D=P[2],F=a.pseudoElements?[!0,"singleColon"===a.pseudoElements.notation||"both"===a.pseudoElements.notation,!a.pseudoElements.notation||"doubleColon"===a.pseudoElements.notation||"both"===a.pseudoElements.notation,a.pseudoElements.definitions?Zr(Array.isArray(a.pseudoElements.definitions)?{NoArgument:a.pseudoElements.definitions}:a.pseudoElements.definitions):Yr,"accept"===a.pseudoElements.unknown]:[!1,!1,!1,Yr,!1],M=F[0],B=F[1],U=F[2],H=F[3],j=F[4],q="",z=q.length,G=0,$="",K=function(e){return $===e},V=function(){return K("*")||En($)},W=function(e){G=e,$=q.charAt(G)},Q=function(){G++,$=q.charAt(G)},Y=function(){var e=$;return G++,$=q.charAt(G),e};function X(e){var t=Math.min(z-1,G),r=new Error("".concat(Sn).concat(e," Pos: ").concat(t,"."));throw r.position=t,r.name="ParserError",r}function J(e,t){if(!e)return X(t)}var Z=function(){J(G<z,"Unexpected end of input.")},ee=function(){return G>=z},te=function(e){J(G<z,'Expected "'.concat(e,'" but end of input reached.')),J($===e,'Expected "'.concat(e,'" but "').concat($,'" found.')),G++,$=q.charAt(G)};function re(e){var t=ne(e,G);if(t)return G+=t.length,$=q.charAt(G),t}function ne(e,t){var r=e[q.charAt(t)];if(r){var n=ne(r.chars,t+1);if(n)return n;if(r.self)return r.self}}function oe(){for(var e=Y(),t=1;vn($)&&t<6;)e+=Y(),t++;return function(){if(" "===$||"\t"===$||"\f"===$||"\n"===$)return void Q();"\r"===$&&Q();"\n"===$&&Q()}(),String.fromCharCode(parseInt(e,16))}function ie(e){var t="";for(te(e);G<z;){if(K(e))return Q(),t;K("\\")?(Q(),K(e)?(t+=e,Q()):"\n"===$||"\f"===$?Q():"\r"===$?(Q(),K("\n")&&Q()):vn($)?t+=oe():(t+=$,Q())):(t+=$,Q())}return t}function se(){if(!En($))return null;for(var e="";K("-");)e+=$,Q();for("-"!==e||Tn($)||K("\\")||X("Identifiers cannot consist of a single hyphen."),i&&e.length>=2&&X("Identifiers cannot start with two hyphens with strict mode on."),An[$]&&X("Identifiers cannot start with hyphens followed by digits.");G<z;)if(Tn($))e+=Y();else{if(!K("\\"))break;Q(),Z(),vn($)?e+=oe():e+=Y()}return e}function ae(){for(var e="";G<z&&!K(")");)if(K("\\")){if(Q(),ee()&&!i)return(e+"\\").trim();Z(),vn($)?e+=oe():e+=Y()}else e+=Y();return e.trim()}function ce(){for(;bn[$];)Q()}function le(e){void 0===e&&(e=!1),ce();for(var t=[ge(e)];K(",");)Q(),ce(),t.push(ge(e));return{type:"Selector",rules:t}}function ue(){var e;if(te("["),ce(),K("|")){J(_,"Namespaces are not enabled."),Q();var t=se();J(t,"Expected attribute name."),e={type:"Attribute",name:t,namespace:{type:"NoNamespace"}}}else if(K("*")){J(_,"Namespaces are not enabled."),J(A,"Wildcard namespace is not enabled."),Q(),te("|");var r=se();J(r,"Expected attribute name."),e={type:"Attribute",name:r,namespace:{type:"WildcardNamespace"}}}else{var n=se();if(J(n,"Expected attribute name."),e={type:"Attribute",name:n},K("|")){var o=G;if(Q(),En($)){J(_,"Namespaces are not enabled.");var s=se();J(s,"Expected attribute name."),e={type:"Attribute",name:s,namespace:{type:"NamespaceName",name:n}}}else W(o)}}if(J(e.name,"Expected attribute name."),ce(),ee()&&!i)return e;if(K("]"))Q();else{if(e.operator=re(x),J(e.operator,"Expected a valid attribute selector operator."),ce(),Z(),_n[$])e.value={type:"String",value:ie($)};else if(S&&K("$")){Q();var a=se();J(a,"Expected substitute name."),e.value={type:"Substitution",name:a}}else{var c=se();J(c,"Expected attribute value."),e.value={type:"String",value:c}}if(ce(),ee()&&!i)return e;if(!K("]")){var l=se();if(J(l,"Expected end of attribute selector."),e.caseSensitivityModifier=l,J(N,"Attribute case sensitivity modifiers are not enabled."),J(R||O[e.caseSensitivityModifier],"Unknown attribute case sensitivity modifier."),ce(),ee()&&!i)return e}te("]")}return e}function he(){for(var e="";An[$];)e+=Y();return J(""!==e,"Formula parse error."),parseInt(e)}var fe=function(){return K("-")||K("+")||An[$]};function pe(e,t,r){var n;if(K("(")){if(Q(),ce(),S&&K("$")){Q();var o=se();J(o,"Expected substitute name."),n={type:"Substitution",name:o}}else if("String"===r.type)J((n={type:"String",value:ae()}).value,"Expected ".concat(t," argument value."));else if("Selector"===r.type)n=le(!0);else{if("Formula"!==r.type)return X("Invalid ".concat(t," signature."));var s=function(){if(K("e")||K("o")){var e=se();if("even"===e)return ce(),[2,0];if("odd"===e)return ce(),[2,1]}var t,r=null,n=1;if(K("-")&&(Q(),n=-1),fe()&&(K("+")&&Q(),r=he(),!K("\\")&&!K("n")))return[0,r*n];if(null===r&&(r=1),r*=n,K("\\")?(Q(),t=vn($)?oe():Y()):t=Y(),J("n"===t,'Formula parse error: expected "n".'),ce(),K("+")||K("-")){var o=K("+")?1:-1;return Q(),ce(),[r,o*he()]}return[r,0]}(),a=s[0],c=s[1];n={type:"Formula",a:a,b:c},r.ofSelector&&(ce(),(K("o")||K("\\"))&&(J("of"===se(),"Formula of selector parse error."),ce(),n={type:"FormulaOfSelector",a:a,b:c,selector:ge()}))}if(ce(),ee()&&!i)return n;te(")")}else J(r.optional,"Argument is required for ".concat(t,' "').concat(e,'".'));return n}function de(){if(K("*"))return J(E,"Wildcard tag name is not enabled."),Q(),{type:"WildcardTag"};if(En($)){J(y,"Tag names are not enabled.");var e=se();return J(e,"Expected tag name."),{type:"TagName",name:e}}return X("Expected tag name.")}function me(){if(K("*")){var e=G;return Q(),K("|")?(Q(),V()?(J(_,"Namespaces are not enabled."),J(A,"Wildcard namespace is not enabled."),(r=de()).namespace={type:"WildcardNamespace"},r):(W(e),de())):(W(e),de())}if(K("|"))return J(_,"Namespaces are not enabled."),Q(),(r=de()).namespace={type:"NoNamespace"},r;if(En($)){var t=se();if(J(t,"Expected tag name."),!K("|"))return J(y,"Tag names are not enabled."),{type:"TagName",name:t};var r;e=G;return Q(),V()?(J(_,"Namespaces are not enabled."),(r=de()).namespace={type:"NamespaceName",name:t},r):(W(e),{type:"TagName",name:t})}return X("Expected tag name.")}function ge(e){var t,r;void 0===e&&(e=!1);var n={type:"Rule",items:[]};e&&((m=re(k))&&(n.combinator=m,ce()));for(;G<z;)if(V())J(0===n.items.length,"Unexpected tag/namespace start."),n.items.push(me());else if(K("|")){var o=G;if(Q(),!V()){W(o);break}J(0===n.items.length,"Unexpected tag/namespace start."),W(o),n.items.push(me())}else if(K(".")){J(v,"Class names are not enabled."),Q();var i=se();J(i,"Expected class name."),n.items.push({type:"ClassName",name:i})}else if(K("#")){J(T,"IDs are not enabled."),Q();var s=se();J(s,"Expected ID name."),n.items.push({type:"Id",name:s})}else if(K("&"))J(b,"Nesting selector is not enabled."),Q(),n.items.push({type:"NestingSelector"});else if(K("["))J(C,"Attributes are not enabled."),n.items.push(ue());else{if(!K(":"))break;var a=!1;Q(),K(":")&&(J(M,"Pseudo elements are not enabled."),J(U,"Pseudo elements double colon notation is not enabled."),a=!0,Q());var c=se();if(J(a||c,"Expected pseudo-class name."),J(!a||c,"Expected pseudo-element name."),J(c,"Expected pseudo-class name."),!a||j||Object.prototype.hasOwnProperty.call(H,c));else{var l=yn.pseudoElements[c],u='Unknown pseudo-element "'.concat(c,'"');l&&l.length>0&&(u+=". It is defined in: ".concat(l.join(", "))),X(u+".")}if(M&&(a||!a&&B&&Object.prototype.hasOwnProperty.call(H,c))){var h={type:"PseudoElement",name:c};(p=pe(c,"pseudo-element",f=null!==(t=H[c])&&void 0!==t?t:j&&Xr))&&(J("Formula"!==p.type&&"FormulaOfSelector"!==p.type,"Pseudo-elements cannot have formula argument."),h.argument=p),n.items.push(h)}else{var f;if(J(I,"Pseudo-classes are not enabled."),f=null!==(r=L[c])&&void 0!==r?r:D&&Xr);else{l=yn.pseudoClasses[c],u='Unknown pseudo-class: "'.concat(c,'"');l&&l.length>0&&(u+=". It is defined in: ".concat(l.join(", "))),X(u+".")}var p,d={type:"PseudoClass",name:c};(p=pe(c,"pseudo-class",f))&&(d.argument=p),n.items.push(d)}}if(0===n.items.length)return ee()?X("Expected rule but end of input reached."):X('Expected rule but "'.concat($,'" found.'));if(ce(),!ee()&&!K(",")&&!K(")")){var m=re(k);ce(),n.nestedRule=ge(),n.nestedRule.combinator=m}return n}return function(e){if("string"!=typeof e)throw new Error("".concat(Sn,"Expected string input."));return z=(q=e).length,G=0,$=q.charAt(0),le()}}({syntax:"selectors-4"});function wn(e){if("string"!=typeof e)throw new TypeError("Expected `string` as selector, not `"+e+"`");return kn(e)}function Cn(e){return Array.isArray(e.children)}function xn(e,t){const r=t[e.name];if(!e.value)return null!=r;e.value.type;let n=e.value.value,o=null==r?void 0:String(r);if("i"===e.caseSensitivityModifier&&(n=n.toLowerCase(),o&&(o=o.toLowerCase())),void 0!==r)switch(e.operator){case"=":return"string"==typeof o&&n===o;case"$=":return"string"==typeof r&&r.slice(-n.length)===n;case"*=":return"string"==typeof r&&r.includes(n);case"^=":return"string"==typeof r&&n===r.slice(0,n.length);case"~=":return Array.isArray(r)&&r.includes(n)||o===n}return!1}const On=new Set([9,10,12,13,32]),Rn="0".charCodeAt(0),Nn="9".charCodeAt(0);var Pn={trueFunc:function(){return!0},falseFunc:function(){return!1}};function In(e){return function(e){const t=e[0],r=e[1]-1;if(r<0&&t<=0)return Pn.falseFunc;if(-1===t)return e=>e<=r;if(0===t)return e=>e===r;if(1===t)return r<0?Pn.trueFunc:e=>e>=r;const n=Math.abs(t),o=(r%n+n)%n;return t>1?e=>e>=r&&e%n===o:e=>e<=r&&e%n===o}(function(e){if("even"===(e=e.trim().toLowerCase()))return[2,0];if("odd"===e)return[2,1];let t=0,r=0,n=i(),o=s();if(t<e.length&&"n"===e.charAt(t)&&(t++,r=n*(null!=o?o:1),a(),t<e.length?(n=i(),a(),o=s()):n=o=0),null===o||t<e.length)throw new Error(`n-th rule couldn't be parsed ('${e}')`);return[r,n*o];function i(){return"-"===e.charAt(t)?(t++,-1):("+"===e.charAt(t)&&t++,1)}function s(){const r=t;let n=0;for(;t<e.length&&e.charCodeAt(t)>=Rn&&e.charCodeAt(t)<=Nn;)n=10*n+(e.charCodeAt(t)-Rn),t++;return t===r?null:n}function a(){for(;t<e.length&&On.has(e.charCodeAt(t));)t++}}(e))}const Ln={}.hasOwnProperty;function Dn(e,t){const r=t||{};function n(t,...r){let o=n.invalid;const i=n.handlers;if(t&&Ln.call(t,e)){const r=String(t[e]);o=Ln.call(i,r)?i[r]:n.unknown}if(o)return o.call(this,t,...r)}return n.handlers=r.handlers||{},n.invalid=r.invalid,n.unknown=r.unknown,n}const Fn=In.default||In,Mn=Dn("name",{unknown:function(e){throw new Error("Unknown pseudo-selector `"+e.name+"`")},invalid:function(){throw new Error("Invalid pseudo-selector")},handlers:{is:Un,blank:Bn,empty:Bn,"first-child":function(e,t,r,n,o){return Hn(o,e),0===o.nodeIndex},"first-of-type":function(e,t,r,n,o){return Hn(o,e),0===o.typeIndex},has:function(e,t,r,n,o){const i=e.argument;!i||i.type;const s={type:"root",children:Cn(t)?t.children:[]},a={...o,found:!1,shallow:!1,one:!0,scopeNodes:[t],results:[],rootQuery:i};return Gn(a,s),a.results.length>0},"last-child":function(e,t,r,n,o){return Hn(o,e),"number"==typeof o.nodeCount&&o.nodeIndex===o.nodeCount-1},"last-of-type":function(e,t,r,n,o){return Hn(o,e),"number"==typeof o.typeCount&&o.typeIndex===o.typeCount-1},not:function(e,t,r,n,o){return!Un(e,t,r,n,o)},"nth-child":function(e,t,r,n,o){const i=jn(e);return Hn(o,e),"number"==typeof o.nodeIndex&&i(o.nodeIndex)},"nth-last-child":function(e,t,r,n,o){const i=jn(e);return Hn(o,e),"number"==typeof o.nodeCount&&"number"==typeof o.nodeIndex&&i(o.nodeCount-o.nodeIndex-1)},"nth-of-type":function(e,t,r,n,o){const i=jn(e);return Hn(o,e),"number"==typeof o.typeIndex&&i(o.typeIndex)},"nth-last-of-type":function(e,t,r,n,o){const i=jn(e);return Hn(o,e),"number"==typeof o.typeIndex&&"number"==typeof o.typeCount&&i(o.typeCount-1-o.typeIndex)},"only-child":function(e,t,r,n,o){return Hn(o,e),1===o.nodeCount},"only-of-type":function(e,t,r,n,o){return Hn(o,e),1===o.typeCount},root:function(e,t,r,n){return t&&!n},scope:function(e,t,r,n,o){return t&&o.scopeNodes.includes(t)}}});function Bn(e,t){return Cn(t)?0===t.children.length:!("value"in t)}function Un(e,t,r,n,o){const i=e.argument;!i||i.type;const s={...o,found:!1,shallow:!1,one:!0,scopeNodes:[t],results:[],rootQuery:i};return Gn(s,t),s.results[0]===t}function Hn(e,t){if(e.shallow)throw new Error("Cannot use `:"+t.name+"` without parent")}function jn(e){let t=e._cachedFn;if(!t){const r=e.argument;if("Formula"!==r.type)throw new Error("Expected `nth` formula, such as `even` or `2n+1` (`of` is not yet supported)");t=Fn(r.a+"n+"+r.b),e._cachedFn=t}return t}function qn(e,t,r,n,o){for(const i of e.items)if("Attribute"===i.type){if(!xn(i,t))return!1}else{if("Id"===i.type)throw new Error("Invalid selector: id");if("ClassName"===i.type)throw new Error("Invalid selector: class");if("PseudoClass"===i.type){if(!Mn(i,t,r,n,o))return!1}else{if("PseudoElement"===i.type)throw new Error("Invalid selector: `::"+i.name+"`");if("TagName"===i.type&&i.name!==t.type)return!1}}return!0}const zn=[];function Gn(e,t){t&&$n(e,[],t,void 0,void 0,t)}function $n(e,t,r,n,o,i){let s={directChild:void 0,descendant:void 0,adjacentSibling:void 0,generalSibling:void 0},a=e.rootQuery.rules;return o&&o!==i&&(a=e.rootQuery.rules.filter(e=>void 0===e.combinator||">"===e.combinator&&o===i)),s=function(e,t,r,n,o){const i={directChild:void 0,descendant:void 0,adjacentSibling:void 0,generalSibling:void 0};let s=-1;for(;++s<t.length;){const a=t[s];if(e.one&&e.found)break;if(e.shallow&&a.nestedRule)throw new Error("Expected selector without nesting");if(qn(a,r,n,o,e)){const t=a.nestedRule;if(t){Vn(i,"+"===t.combinator?"adjacentSibling":"~"===t.combinator?"generalSibling":">"===t.combinator?"directChild":"descendant",t)}else e.found=!0,e.results.includes(r)||e.results.push(r)}void 0===a.combinator?Vn(i,"descendant",a):"~"===a.combinator&&Vn(i,"generalSibling",a)}return i}(e,Kn(t,a),r,n,o),!Cn(r)||e.shallow||e.one&&e.found||function(e,t,r,n){const o=Kn(t.descendant,t.directChild);let i,s=-1;const a={count:0,types:new Map},c={count:0,types:new Map};for(;++s<r.children.length;)Wn(a,r.children[s]);s=-1;for(;++s<r.children.length;){const t=r.children[s].type.toUpperCase();e.nodeIndex=c.count,e.typeIndex=c.types.get(t)||0,e.nodeCount=a.count,e.typeCount=a.types.get(t);const l=$n(e,Kn(o,i),r.children[s],s,r,n);if(i=Kn(l.generalSibling,l.adjacentSibling),e.one&&e.found)break;Wn(c,r.children[s])}}(e,s,r,i),s}function Kn(e,t){return e&&t&&e.length>0&&t.length>0?[...e,...t]:e&&e.length>0?e:t&&t.length>0?t:zn}function Vn(e,t,r){const n=e[t];n?n.push(r):e[t]=[r]}function Wn(e,t){const r=t.type.toUpperCase(),n=(e.types.get(r)||0)+1;e.count++,e.types.set(r,n)}function Qn(e,t){return{rootQuery:wn(e),results:[],scopeNodes:t?!Cn(t)||"RootNode"!==t.type&&"root"!==t.type?[t]:t.children:[],one:!1,shallow:!1,found:!1,typeIndex:void 0,nodeIndex:void 0,typeCount:void 0,nodeCount:void 0}}var Yn=Object.freeze({__proto__:null,matches:function(e,t){const r=Qn(e,t);return r.one=!0,r.shallow=!0,Gn(r,t||void 0),r.results.length>0},select:function(e,t){const r=Qn(e,t);return r.one=!0,Gn(r,t||void 0),r.results[0]},selectAll:function(e,t){const r=Qn(e,t);return Gn(r,t||void 0),r.results}}),Xn=pe(Yn);function Jn(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 Xn=function(e){return null!=e&&null!=e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)},Jn=Object.prototype.hasOwnProperty,Zn=Object.prototype.toString,ei=Object.defineProperty,ti=Object.getOwnPropertyDescriptor,ri=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===Zn.call(e)},ni=function(e){if(!e||"[object Object]"!==Zn.call(e))return!1;var t,r=Jn.call(e,"constructor"),n=e.constructor&&e.constructor.prototype&&Jn.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!r&&!n)return!1;for(t in e);return void 0===t||Jn.call(e,t)},ii=function(e,t){ei&&"__proto__"===t.name?ei(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},oi=function(e,t){if("__proto__"===t){if(!Jn.call(e,t))return;if(ti)return ti(e,t).value}return e[t]},ai=function e(){var t,r,n,i,o,a,s=arguments[0],c=1,l=arguments.length,u=!1;for("boolean"==typeof s&&(u=s,s=arguments[1]||{},c=2),(null==s||"object"!=typeof s&&"function"!=typeof s)&&(s={});c<l;++c)if(null!=(t=arguments[c]))for(r in t)n=oi(s,r),s!==(i=oi(t,r))&&(u&&i&&(ni(i)||(o=ri(i)))?(o?(o=!1,a=n&&ri(n)?n:[]):a=n&&ni(n)?n:{},ii(s,{name:r,newValue:e(u,a,i)})):void 0!==i&&ii(s,{name:r,newValue:i}));return s};function si(e){if("object"!=typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)}function ci(){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.apply(this,t)}catch(e){if(n&&r)throw e;return i(e)}n||(a&&a.then&&"function"==typeof a.then?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}function li(e){return e&&"object"==typeof e?"position"in e||"type"in e?hi(e.position):"start"in e||"end"in e?hi(e):"line"in e||"column"in e?ui(e):"":""}function ui(e){return pi(e&&e.line)+":"+pi(e&&e.column)}function hi(e){return ui(e&&e.start)+"-"+ui(e&&e.end)}function pi(e){return e&&"number"==typeof e?e:1}class fi extends Error{constructor(e,t,r){const n=[null,null];let i={start:{line:null,column:null},end:{line:null,column:null}};if(super(),"string"==typeof t&&(r=t,t=void 0),"string"==typeof r){const e=r.indexOf(":");-1===e?n[1]=r:(n[0]=r.slice(0,e),n[1]=r.slice(e+1))}t&&("type"in t||"position"in t?t.position&&(i=t.position):"start"in t||"end"in t?i=t:("line"in t||"column"in t)&&(i.start=t)),this.name=li(t)||"1:1",this.message="object"==typeof e?e.message:e,this.stack="","object"==typeof e&&e.stack&&(this.stack=e.stack),this.reason=this.message,this.fatal,this.line=i.start.line,this.column=i.start.column,this.position=i,this.source=n[0],this.ruleId=n[1],this.file,this.actual,this.expected,this.url,this.note}}function di(e){return null!==e&&"object"==typeof e&&e.href&&e.origin}fi.prototype.file="",fi.prototype.name="",fi.prototype.reason="",fi.prototype.message="",fi.prototype.stack="",fi.prototype.fatal=null,fi.prototype.column=null,fi.prototype.line=null,fi.prototype.source=null,fi.prototype.ruleId=null,fi.prototype.position=null;const mi=["history","path","basename","stem","extname","dirname"];class gi{constructor(e){let t;t=e?"string"==typeof e||function(e){return Xn(e)}(e)?{value:e}:di(e)?{path:e}:e:{},this.data={},this.messages=[],this.history=[],this.cwd=B.default.cwd(),this.value,this.stored,this.result,this.map;let r,n=-1;for(;++n<mi.length;){const e=mi[n];e in t&&void 0!==t[e]&&null!==t[e]&&(this[e]="history"===e?[...t[e]]:t[e])}for(r in t)mi.includes(r)||(this[r]=t[r])}get path(){return this.history[this.history.length-1]}set path(e){di(e)&&(e=a.fileURLToPath(e)),yi(e,"path"),this.path!==e&&this.history.push(e)}get dirname(){return"string"==typeof this.path?M.default.dirname(this.path):void 0}set dirname(e){Ti(this.basename,"dirname"),this.path=M.default.join(e||"",this.basename)}get basename(){return"string"==typeof this.path?M.default.basename(this.path):void 0}set basename(e){yi(e,"basename"),Ei(e,"basename"),this.path=M.default.join(this.dirname||"",e)}get extname(){return"string"==typeof this.path?M.default.extname(this.path):void 0}set extname(e){if(Ei(e,"extname"),Ti(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=M.default.join(this.dirname,this.stem+(e||""))}get stem(){return"string"==typeof this.path?M.default.basename(this.path,this.extname):void 0}set stem(e){yi(e,"stem"),Ei(e,"stem"),this.path=M.default.join(this.dirname||"",e+(this.extname||""))}toString(e){return(this.value||"").toString(e||void 0)}message(e,t,r){const n=new fi(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 Ei(e,t){if(e&&e.includes(M.default.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+M.default.sep+"`")}function yi(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function Ti(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}const vi=function e(){const t=ci(),r=[];let n,i={},o=-1;return a.data=function(e,t){if("string"==typeof e)return 2===arguments.length?(ki("data",n),i[e]=t,a):bi.call(i,e)&&i[e]||null;if(e)return ki("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[0]=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(ki("use",n),null==e);else if("function"==typeof e)u(e,...t);else{if("object"!=typeof e)throw new TypeError("Expected usable value, not `"+e+"`");Array.isArray(e)?l(e):c(e)}o&&(i.settings=Object.assign(i.settings||{},o));return a;function s(e){if("function"==typeof e)u(e);else{if("object"!=typeof e)throw new TypeError("Expected usable value, not `"+e+"`");if(Array.isArray(e)){const[t,...r]=e;u(t,...r)}else c(e)}}function c(e){l(e.plugins),e.settings&&(o=Object.assign(o||{},e.settings))}function l(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 u(e,t){let n,i=-1;for(;++i<r.length;)if(r[i][0]===e){n=r[i];break}n?(si(n[1])&&si(t)&&(t=ai(!0,n[1],t)),n[1]=t):r.push([...arguments])}},a.parse=function(e){a.freeze();const t=wi(e),r=a.Parser;if(Ai("parse",r),_i(r,"parse"))return new r(String(t),t).parse();return r(String(t),t)},a.stringify=function(e,t){a.freeze();const r=wi(t),n=a.Compiler;if(Si("stringify",n),Ci(e),_i(n,"compile"))return new n(e,r).compile();return n(e,r)},a.run=function(e,r,n){Ci(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,wi(r),a)}i(null,n)},a.runSync=function(e,t){let r,n;return a.run(e,t,i),xi("runSync","run",n),r;function i(e,t){Yn(e),r=t,n=!0}},a.process=function(e,t){if(a.freeze(),Ai("process",a.Parser),Si("process",a.Compiler),!t)return new Promise(r);function r(r,n){const i=wi(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||Xn(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(),Ai("processSync",a.Parser),Si("processSync",a.Compiler);const r=wi(e);return a.process(r,n),xi("processSync","process",t),r;function n(e){t=!0,Yn(e)}},a;function a(){const t=e();let n=-1;for(;++n<r.length;)t.use(...r[n]);return t.data(ai(!0,{},i)),t}}().freeze(),bi={}.hasOwnProperty;function _i(e,t){return"function"==typeof e&&e.prototype&&(function(e){let t;for(t in e)if(bi.call(e,t))return!0;return!1}(e.prototype)||t in e.prototype)}function Ai(e,t){if("function"!=typeof t)throw new TypeError("Cannot `"+e+"` without `Parser`")}function Si(e,t){if("function"!=typeof t)throw new TypeError("Cannot `"+e+"` without `Compiler`")}function ki(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 Ci(e){if(!si(e)||"string"!=typeof e.type)throw new TypeError("Expected node, got `"+e+"`")}function xi(e,t,r){if(!r)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function wi(e){return function(e){return Boolean(e&&"object"==typeof e&&"message"in e&&"messages"in e)}(e)?e:new gi(e)}var Oi=he(Object.freeze({__proto__:null,unified:vi}));const Ni={};function Pi(e,t){const r=t||Ni;return Ri(e,"boolean"!=typeof r.includeImageAlt||r.includeImageAlt,"boolean"!=typeof r.includeHtml||r.includeHtml)}function Ri(e,t,r){if(function(e){return Boolean(e&&"object"==typeof e)}(e)){if("value"in e)return"html"!==e.type||r?e.value:"";if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return Ii(e.children,t,r)}return Array.isArray(e)?Ii(e,t,r):""}function Ii(e,t,r){const n=[];let i=-1;for(;++i<e.length;)n[i]=Ri(e[i],t,r);return n.join("")}function Li(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),e.splice(...o);else for(r&&e.splice(t,r);a<n.length;)o=n.slice(a,a+1e4),o.unshift(t,0),e.splice(...o),a+=1e4,t+=1e4}function Di(e,t){return e.length>0?(Li(e,e.length,0,t),e):t}const Mi={}.hasOwnProperty;function Fi(e){const t={};let r=-1;for(;++r<e.length;)Hi(t,e[r]);return t}function Hi(e,t){let r;for(r in t){const n=(Mi.call(e,r)?e[r]:void 0)||(e[r]={}),i=t[r];let o;if(i)for(o in i){Mi.call(n,o)||(n[o]=[]);const e=i[o];Bi(n[o],Array.isArray(e)?e:e?[e]:[])}}}function Bi(e,t){let r=-1;const n=[];for(;++r<t.length;)("after"===t[r].add?e:n).push(t[r]);Li(e,0,0,n)}const Ui=Ji(/[A-Za-z]/),ji=Ji(/[\dA-Za-z]/),qi=Ji(/[#-'*+\--9=?A-Z^-~]/);function zi(e){return null!==e&&(e<32||127===e)}const Gi=Ji(/\d/),Ki=Ji(/[\dA-Fa-f]/),$i=Ji(/[!-/:-@[-`{-~]/);function Vi(e){return null!==e&&e<-2}function Qi(e){return null!==e&&(e<0||32===e)}function Wi(e){return-2===e||-1===e||32===e}const Yi=Ji(/[!-\/:-@\[-`\{-~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]/),Xi=Ji(/\s/);function Ji(e){return function(t){return null!==t&&e.test(String.fromCharCode(t))}}var Zi=Object.freeze({__proto__:null,asciiAlpha:Ui,asciiAlphanumeric:ji,asciiAtext:qi,asciiControl:zi,asciiDigit:Gi,asciiHexDigit:Ki,asciiPunctuation:$i,markdownLineEnding:Vi,markdownLineEndingOrSpace:Qi,markdownSpace:Wi,unicodePunctuation:Yi,unicodeWhitespace:Xi});function eo(e,t,r,n){const i=n?n-1:Number.POSITIVE_INFINITY;let o=0;return function(n){if(Wi(n))return e.enter(r),a(n);return t(n)};function a(n){return Wi(n)&&o++<i?(e.consume(n),a):(e.exit(r),t(n))}}var to=Object.freeze({__proto__:null,factorySpace:eo});const ro={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"),eo(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)):Vi(t)?(e.consume(t),e.exit("chunkText"),n):(e.consume(t),i)}}};const no={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,l)(n)}return l(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}E(a);let s=r;for(;s<t.events.length;)t.events[s][1].end=Object.assign({},i),s++;return Li(t.events,o+1,0,t.events.slice(r)),t.events.length=s,l(e)}return s(e)}function l(i){if(a===r.length){if(!n)return p(i);if(n.currentConstruct&&n.currentConstruct.concrete)return d(i);t.interrupt=Boolean(n.currentConstruct&&!n._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(io,u,h)(i)}function u(e){return n&&y(),E(a),p(e)}function h(e){return t.parser.lazy[t.now().line]=a!==r.length,o=t.now().offset,d(e)}function p(r){return t.containerState={},e.attempt(io,f,d)(r)}function f(e){return a++,r.push([t.currentConstruct,t.containerState]),p(e)}function d(r){return null===r?(n&&y(),E(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),E(0),void e.consume(r)):Vi(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(E(a),e=r;e<t.events.length;)t.events[e][1].end=Object.assign({},s),e++;Li(t.events,c+1,0,t.events.slice(r)),t.events.length=e}}function E(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}}},io={tokenize:function(e,t,r){return eo(e,e.attempt(this.parser.constructs.document,t,r),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}};function oo(e){return null===e||Qi(e)||Xi(e)?1:Yi(e)?2:void 0}function ao(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 so={name:"attention",tokenize:function(e,t){const r=this.parser.constructs.attentionMarkers.null,n=this.previous,i=oo(n);let o;return function(t){return o=t,e.enter("attentionSequence"),a(t)};function a(s){if(s===o)return e.consume(s),a;const c=e.exit("attentionSequence"),l=oo(s),u=!l||2===l&&i||r.includes(s),h=!i||2===i&&l||r.includes(n);return c._open=Boolean(42===o?u:u&&(i||!h)),c._close=Boolean(42===o?h:h&&(l||!u)),t(s)}},resolveAll:function(e,t){let r,n,i,o,a,s,c,l,u=-1;for(;++u<e.length;)if("enter"===e[u][0]&&"attentionSequence"===e[u][1].type&&e[u][1]._close)for(r=u;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[u][1]).charCodeAt(0)){if((e[r][1]._close||e[u][1]._open)&&(e[u][1].end.offset-e[u][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[u][1].end.offset-e[u][1].start.offset)%3))continue;s=e[r][1].end.offset-e[r][1].start.offset>1&&e[u][1].end.offset-e[u][1].start.offset>1?2:1;const h=Object.assign({},e[r][1].end),p=Object.assign({},e[u][1].start);co(h,-s),co(p,s),o={type:s>1?"strongSequence":"emphasisSequence",start:h,end:Object.assign({},e[r][1].end)},a={type:s>1?"strongSequence":"emphasisSequence",start:Object.assign({},e[u][1].start),end:p},i={type:s>1?"strongText":"emphasisText",start:Object.assign({},e[r][1].end),end:Object.assign({},e[u][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[u][1].start=Object.assign({},a.end),c=[],e[r][1].end.offset-e[r][1].start.offset&&(c=Di(c,[["enter",e[r][1],t],["exit",e[r][1],t]])),c=Di(c,[["enter",n,t],["enter",o,t],["exit",o,t],["enter",i,t]]),c=Di(c,ao(t.parser.constructs.insideSpan.null,e.slice(r+1,u),t)),c=Di(c,[["exit",i,t],["enter",a,t],["exit",a,t],["exit",n,t]]),e[u][1].end.offset-e[u][1].start.offset?(l=2,c=Di(c,[["enter",e[u][1],t],["exit",e[u][1],t]])):l=0,Li(e,r-1,u-r+3,c),u=r+c.length-l-2;break}u=-1;for(;++u<e.length;)"attentionSequence"===e[u][1].type&&(e[u][1].type="data");return e}};function co(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const lo={name:"autolink",tokenize:function(e,t,r){let n=0;return function(t){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(t),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),i};function i(t){return Ui(t)?(e.consume(t),o):c(t)}function o(e){return 43===e||45===e||46===e||ji(e)?(n=1,a(e)):c(e)}function a(t){return 58===t?(e.consume(t),n=0,s):(43===t||45===t||46===t||ji(t))&&n++<32?(e.consume(t),a):(n=0,c(t))}function s(n){return 62===n?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(n),e.exit("autolinkMarker"),e.exit("autolink"),t):null===n||32===n||60===n||zi(n)?r(n):(e.consume(n),s)}function c(t){return 64===t?(e.consume(t),l):qi(t)?(e.consume(t),c):r(t)}function l(e){return ji(e)?u(e):r(e)}function u(r){return 46===r?(e.consume(r),n=0,l):62===r?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(r),e.exit("autolinkMarker"),e.exit("autolink"),t):h(r)}function h(t){if((45===t||ji(t))&&n++<63){const r=45===t?h:u;return e.consume(t),r}return r(t)}}};const uo={tokenize:function(e,t,r){return function(t){return Wi(t)?eo(e,n,"linePrefix")(t):n(t)};function n(e){return null===e||Vi(e)?t(e):r(e)}},partial:!0};const ho={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 Wi(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){const n=this;return function(t){if(Wi(t))return eo(e,i,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t);return i(t)};function i(n){return e.attempt(ho,t,r)(n)}}},exit:function(e){e.exit("blockQuote")}};const po={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 $i(n)?(e.enter("characterEscapeValue"),e.consume(n),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):r(n)}}};const fo={AElig:"Æ",AMP:"&",Aacute:"Á",Abreve:"Ă",Acirc:"Â",Acy:"А",Afr:"𝔄",Agrave:"À",Alpha:"Α",Amacr:"Ā",And:"⩓",Aogon:"Ą",Aopf:"𝔸",ApplyFunction:"",Aring:"Å",Ascr:"𝒜",Assign:"≔",Atilde:"Ã",Auml:"Ä",Backslash:"∖",Barv:"⫧",Barwed:"⌆",Bcy:"Б",Because:"∵",Bernoullis:"ℬ",Beta:"Β",Bfr:"𝔅",Bopf:"𝔹",Breve:"˘",Bscr:"ℬ",Bumpeq:"≎",CHcy:"Ч",COPY:"©",Cacute:"Ć",Cap:"⋒",CapitalDifferentialD:"ⅅ",Cayleys:"ℭ",Ccaron:"Č",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:"Ŋ",ETH:"Ð",Eacute:"É",Ecaron:"Ě",Ecirc:"Ê",Ecy:"Э",Edot:"Ė",Efr:"𝔈",Egrave:"È",Element:"∈",Emacr:"Ē",EmptySmallSquare:"◻",EmptyVerySmallSquare:"▫",Eogon:"Ę",Eopf:"𝔼",Epsilon:"Ε",Equal:"⩵",EqualTilde:"≂",Equilibrium:"⇌",Escr:"ℰ",Esim:"⩳",Eta:"Η",Euml:"Ë",Exists:"∃",ExponentialE:"ⅇ",Fcy:"Ф",Ffr:"𝔉",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",Fopf:"𝔽",ForAll:"∀",Fouriertrf:"ℱ",Fscr:"ℱ",GJcy:"Ѓ",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:"Ё",Iacute:"Í",Icirc:"Î",Icy:"И",Idot:"İ",Ifr:"ℑ",Igrave:"Ì",Im:"ℑ",Imacr:"Ī",ImaginaryI:"ⅈ",Implies:"⇒",Int:"∬",Integral:"∫",Intersection:"⋂",InvisibleComma:"",InvisibleTimes:"",Iogon:"Į",Iopf:"𝕀",Iota:"Ι",Iscr:"ℐ",Itilde:"Ĩ",Iukcy:"І",Iuml:"Ï",Jcirc:"Ĵ",Jcy:"Й",Jfr:"𝔍",Jopf:"𝕁",Jscr:"𝒥",Jsercy:"Ј",Jukcy:"Є",KHcy:"Х",KJcy:"Ќ",Kappa:"Κ",Kcedil:"Ķ",Kcy:"К",Kfr:"𝔎",Kopf:"𝕂",Kscr:"𝒦",LJcy:"Љ",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:"𝒩",Ntilde:"Ñ",Nu:"Ν",OElig:"Œ",Oacute:"Ó",Ocirc:"Ô",Ocy:"О",Odblac:"Ő",Ofr:"𝔒",Ograve:"Ò",Omacr:"Ō",Omega:"Ω",Omicron:"Ο",Oopf:"𝕆",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",Or:"⩔",Oscr:"𝒪",Oslash:"Ø",Otilde:"Õ",Otimes:"⨷",Ouml:"Ö",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",PartialD:"∂",Pcy:"П",Pfr:"𝔓",Phi:"Φ",Pi:"Π",PlusMinus:"±",Poincareplane:"ℌ",Popf:"ℙ",Pr:"⪻",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",Prime:"″",Product:"∏",Proportion:"∷",Proportional:"∝",Pscr:"𝒫",Psi:"Ψ",QUOT:'"',Qfr:"𝔔",Qopf:"ℚ",Qscr:"𝒬",RBarr:"⤐",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:"⋑",THORN:"Þ",TRADE:"™",TSHcy:"Ћ",TScy:"Ц",Tab:"\t",Tau:"Τ",Tcaron:"Ť",Tcedil:"Ţ",Tcy:"Т",Tfr:"𝔗",Therefore:"∴",Theta:"Θ",ThickSpace:" ",ThinSpace:" ",Tilde:"∼",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",Topf:"𝕋",TripleDot:"⃛",Tscr:"𝒯",Tstrok:"Ŧ",Uacute:"Ú",Uarr:"↟",Uarrocir:"⥉",Ubrcy:"Ў",Ubreve:"Ŭ",Ucirc:"Û",Ucy:"У",Udblac:"Ű",Ufr:"𝔘",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:"Ũ",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:"Ю",Yacute:"Ý",Ycirc:"Ŷ",Ycy:"Ы",Yfr:"𝔜",Yopf:"𝕐",Yscr:"𝒴",Yuml:"Ÿ",ZHcy:"Ж",Zacute:"Ź",Zcaron:"Ž",Zcy:"З",Zdot:"Ż",ZeroWidthSpace:"",Zeta:"Ζ",Zfr:"ℨ",Zopf:"ℤ",Zscr:"𝒵",aacute:"á",abreve:"ă",ac:"∾",acE:"∾̳",acd:"∿",acirc:"â",acute:"´",acy:"а",aelig:"æ",af:"",afr:"𝔞",agrave:"à",alefsym:"ℵ",aleph:"ℵ",alpha:"α",amacr:"ā",amalg:"⨿",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:"≊",aring:"å",ascr:"𝒶",ast:"*",asymp:"≈",asympeq:"≍",atilde:"ã",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:"˘",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:"č",ccedil:"ç",ccirc:"ĉ",ccups:"⩌",ccupssm:"⩐",cdot:"ċ",cedil:"¸",cemptyv:"⦲",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:"∐",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:"⋏",curren:"¤",curvearrowleft:"↶",curvearrowright:"↷",cuvee:"⋎",cuwed:"⋏",cwconint:"∲",cwint:"∱",cylcty:"⌭",dArr:"⇓",dHar:"⥥",dagger:"†",daleth:"ℸ",darr:"↓",dash:"‐",dashv:"⊣",dbkarow:"⤏",dblac:"˝",dcaron:"ď",dcy:"д",dd:"ⅆ",ddagger:"‡",ddarr:"⇊",ddotseq:"⩷",deg:"°",delta:"δ",demptyv:"⦱",dfisht:"⥿",dfr:"𝔡",dharl:"⇃",dharr:"⇂",diam:"⋄",diamond:"⋄",diamondsuit:"♦",diams:"♦",die:"¨",digamma:"ϝ",disin:"⋲",div:"÷",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:"≑",eacute:"é",easter:"⩮",ecaron:"ě",ecir:"≖",ecirc:"ê",ecolon:"≕",ecy:"э",edot:"ė",ee:"ⅇ",efDot:"≒",efr:"𝔢",eg:"⪚",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:"η",eth:"ð",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:"⨍",frac12:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",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:"⪐",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:"‐",iacute:"í",ic:"",icirc:"î",icy:"и",iecy:"е",iexcl:"¡",iff:"⇔",ifr:"𝔦",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:"⨼",iquest:"¿",iscr:"𝒾",isin:"∈",isinE:"⋹",isindot:"⋵",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"",itilde:"ĩ",iukcy:"і",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:"⪅",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:"ł",lt:"<",ltcc:"⪦",ltcir:"⩹",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltrPar:"⦖",ltri:"◃",ltrie:"⊴",ltrif:"◂",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",mDDot:"∺",macr:"¯",male:"♂",malt:"✠",maltese:"✠",map:"↦",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",mcy:"м",mdash:"—",measuredangle:"∡",mfr:"𝔪",mho:"℧",micro:"µ",mid:"∣",midast:"*",midcir:"⫰",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:"ℕ",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:"𝕟",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:"≹",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:"Ⓢ",oacute:"ó",oast:"⊛",ocir:"⊚",ocirc:"ô",ocy:"о",odash:"⊝",odblac:"ő",odiv:"⨸",odot:"⊙",odsold:"⦼",oelig:"œ",ofcir:"⦿",ofr:"𝔬",ogon:"˛",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:"ℴ",oslash:"ø",osol:"⊘",otilde:"õ",otimes:"⊗",otimesas:"⨶",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:"⩲",plusmn:"±",plussim:"⨦",plustwo:"⨧",pm:"±",pointint:"⨕",popf:"𝕡",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:"≟",quot:'"',rAarr:"⇛",rArr:"⇒",rAtail:"⤜",rBarr:"⤏",rHar:"⥤",race:"∽̱",racute:"ŕ",radic:"√",raemptyv:"⦳",rang:"⟩",rangd:"⦒",range:"⦥",rangle:"⟩",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:"▭",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:"↘",sect:"§",semi:";",seswar:"⤩",setminus:"∖",setmn:"∖",sext:"✶",sfr:"𝔰",sfrown:"⌢",sharp:"♯",shchcy:"щ",shcy:"ш",shortmid:"∣",shortparallel:"∥",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:"♪",sup1:"¹",sup2:"²",sup3:"³",sup:"⊃",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:"⤪",szlig:"ß",target:"⌖",tau:"τ",tbrk:"⎴",tcaron:"ť",tcedil:"ţ",tcy:"т",tdot:"⃛",telrec:"⌕",tfr:"𝔱",there4:"∴",therefore:"∴",theta:"θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"∼",thinsp:" ",thkap:"≈",thksim:"∼",thorn:"þ",tilde:"˜",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:"⥣",uacute:"ú",uarr:"↑",ubrcy:"ў",ubreve:"ŭ",ucirc:"û",ucy:"у",udarr:"⇅",udblac:"ű",udhar:"⥮",ufisht:"⥾",ufr:"𝔲",ugrave:"ù",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",umacr:"ū",uml:"¨",uogon:"ų",uopf:"𝕦",uparrow:"↑",updownarrow:"↕",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",upsi:"υ",upsih:"ϒ",upsilon:"υ",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",uring:"ů",urtri:"◹",uscr:"𝓊",utdot:"⋰",utilde:"ũ",utri:"▵",utrif:"▴",uuarr:"⇈",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:"⋀",yacute:"ý",yacy:"я",ycirc:"ŷ",ycy:"ы",yen:"¥",yfr:"𝔶",yicy:"ї",yopf:"𝕪",yscr:"𝓎",yucy:"ю",yuml:"ÿ",zacute:"ź",zcaron:"ž",zcy:"з",zdot:"ż",zeetrf:"ℨ",zeta:"ζ",zfr:"𝔷",zhcy:"ж",zigrarr:"⇝",zopf:"𝕫",zscr:"𝓏",zwj:"",zwnj:""},mo={}.hasOwnProperty;function go(e){return!!mo.call(fo,e)&&fo[e]}const Eo={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=ji,l(t))}function c(t){return 88===t||120===t?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(t),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),i=6,o=Ki,l):(e.enter("characterReferenceValue"),i=7,o=Gi,l(t))}function l(s){if(59===s&&a){const i=e.exit("characterReferenceValue");return o!==ji||go(n.sliceSerialize(i))?(e.enter("characterReferenceMarker"),e.consume(s),e.exit("characterReferenceMarker"),e.exit("characterReference"),t):r(s)}return o(s)&&a++<i?(e.consume(s),l):r(s)}}};const yo={tokenize:function(e,t,r){const n=this;return function(t){if(null===t)return r(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},To={name:"codeFenced",tokenize:function(e,t,r){const n=this,i={tokenize:function(e,t,r){let i=0;return a;function a(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),c}function c(t){return e.enter("codeFencedFence"),Wi(t)?eo(e,l,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):l(t)}function l(t){return t===o?(e.enter("codeFencedFenceSequence"),u(t)):r(t)}function u(t){return t===o?(i++,e.consume(t),u):i>=s?(e.exit("codeFencedFenceSequence"),Wi(t)?eo(e,h,"whitespace")(t):h(t)):r(t)}function h(n){return null===n||Vi(n)?(e.exit("codeFencedFence"),t(n)):r(n)}},partial:!0};let o,a=0,s=0;return function(t){return function(t){const r=n.events[n.events.length-1];return a=r&&"linePrefix"===r[1].type?r[2].sliceSerialize(r[1],!0).length:0,o=t,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),c(t)}(t)};function c(t){return t===o?(s++,e.consume(t),c):s<3?r(t):(e.exit("codeFencedFenceSequence"),Wi(t)?eo(e,l,"whitespace")(t):l(t))}function l(r){return null===r||Vi(r)?(e.exit("codeFencedFence"),n.interrupt?t(r):e.check(yo,f,y)(r)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),u(r))}function u(t){return null===t||Vi(t)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),l(t)):Wi(t)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),eo(e,h,"whitespace")(t)):96===t&&t===o?r(t):(e.consume(t),u)}function h(t){return null===t||Vi(t)?l(t):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),p(t))}function p(t){return null===t||Vi(t)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),l(t)):96===t&&t===o?r(t):(e.consume(t),p)}function f(t){return e.attempt(i,y,d)(t)}function d(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),m}function m(t){return a>0&&Wi(t)?eo(e,g,"linePrefix",a+1)(t):g(t)}function g(t){return null===t||Vi(t)?e.check(yo,f,y)(t):(e.enter("codeFlowValue"),E(t))}function E(t){return null===t||Vi(t)?(e.exit("codeFlowValue"),g(t)):(e.consume(t),E)}function y(r){return e.exit("codeFenced"),t(r)}},concrete:!0};const vo={name:"codeIndented",tokenize:function(e,t,r){const n=this;return function(t){return e.enter("codeIndented"),eo(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):Vi(t)?e.attempt(bo,o,s)(t):(e.enter("codeFlowValue"),a(t))}function a(t){return null===t||Vi(t)?(e.exit("codeFlowValue"),o(t)):(e.consume(t),a)}function s(r){return e.exit("codeIndented"),t(r)}}},bo={tokenize:function(e,t,r){const n=this;return i;function i(t){return n.parser.lazy[n.now().line]?r(t):Vi(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i):eo(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):Vi(e)?i(e):r(e)}},partial:!0};const _o={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):32===t?(e.enter("space"),e.consume(t),e.exit("space"),s):96===t?(i=e.enter("codeTextSequence"),n=0,l(t)):Vi(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||Vi(t)?(e.exit("codeTextData"),s(t)):(e.consume(t),c)}function l(r){return 96===r?(e.consume(r),n++,l):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 Ao(e){const t={};let r,n,i,o,a,s,c,l=-1;for(;++l<e.length;){for(;l in t;)l=t[l];if(r=e[l],l&&"chunkFlow"===r[1].type&&"listItemPrefix"===e[l-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,So(e,l)),l=t[l],c=!0);else if(r[1]._container){for(i=l,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,l),a.unshift(r),Li(e,n,l-n+1,a))}}return!c}function So(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=[],l={};let u,h,p=-1,f=r,d=0,m=0;const g=[m];for(;f;){for(;e[++i][1]!==f;);o.push(i),f._tokenizer||(u=n.sliceStream(f),f.next||u.push(null),h&&a.defineSkip(f.start),f._isInFirstContentOfListItem&&(a._gfmTasklistFirstContentOfListItem=!0),a.write(u),f._isInFirstContentOfListItem&&(a._gfmTasklistFirstContentOfListItem=void 0)),h=f,f=f.next}for(f=r;++p<s.length;)"exit"===s[p][0]&&"enter"===s[p-1][0]&&s[p][1].type===s[p-1][1].type&&s[p][1].start.line!==s[p][1].end.line&&(m=p+1,g.push(m),f._tokenizer=void 0,f.previous=void 0,f=f.next);for(a.events=[],f?(f._tokenizer=void 0,f.previous=void 0):g.pop(),p=g.length;p--;){const t=s.slice(g[p],g[p+1]),r=o.pop();c.unshift([r,r+t.length-1]),Li(e,r,2,t)}for(p=-1;++p<c.length;)l[d+c[p][0]]=d+c[p][1],d+=c[p][1]-c[p][0]-1;return l}const ko={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):Vi(t)?e.check(Co,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 Ao(e),e}},Co={tokenize:function(e,t,r){const n=this;return function(t){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),eo(e,i,"linePrefix")};function i(i){if(null===i||Vi(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 xo(e,t,r,n,i,o,a,s,c){const l=c||Number.POSITIVE_INFINITY;let u=0;return function(t){if(60===t)return e.enter(n),e.enter(i),e.enter(o),e.consume(t),e.exit(o),h;if(null===t||32===t||41===t||zi(t))return r(t);return e.enter(n),e.enter(a),e.enter(s),e.enter("chunkString",{contentType:"string"}),d(t)};function h(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"}),p(r))}function p(t){return 62===t?(e.exit("chunkString"),e.exit(s),h(t)):null===t||60===t||Vi(t)?r(t):(e.consume(t),92===t?f:p)}function f(t){return 60===t||62===t||92===t?(e.consume(t),p):p(t)}function d(i){return u||null!==i&&41!==i&&!Qi(i)?u<l&&40===i?(e.consume(i),u++,d):41===i?(e.consume(i),u--,d):null===i||32===i||40===i||zi(i)?r(i):(e.consume(i),92===i?m:d):(e.exit("chunkString"),e.exit(s),e.exit(a),e.exit(n),t(i))}function m(t){return 40===t||41===t||92===t?(e.consume(t),d):d(t)}}var wo=Object.freeze({__proto__:null,factoryDestination:xo});function Oo(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),l};function l(h){return c>999||null===h||91===h||93===h&&!s||94===h&&!c&&"_hiddenFootnoteSupport"in a.parser.constructs?r(h):93===h?(e.exit(o),e.enter(i),e.consume(h),e.exit(i),e.exit(n),t):Vi(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),l):(e.enter("chunkString",{contentType:"string"}),u(h))}function u(t){return null===t||91===t||93===t||Vi(t)||c++>999?(e.exit("chunkString"),l(t)):(e.consume(t),s||(s=!Wi(t)),92===t?h:u)}function h(t){return 91===t||92===t||93===t?(e.consume(t),c++,u):u(t)}}var No=Object.freeze({__proto__:null,factoryLabel:Oo});function Po(e,t,r,n,i,o){let a;return function(t){if(34===t||39===t||40===t)return e.enter(n),e.enter(i),e.consume(t),e.exit(i),a=40===t?41:t,s;return r(t)};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):Vi(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),eo(e,c,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),l(t))}function l(t){return t===a||null===t||Vi(t)?(e.exit("chunkString"),c(t)):(e.consume(t),92===t?u:l)}function u(t){return t===a||92===t?(e.consume(t),l):l(t)}}var Ro=Object.freeze({__proto__:null,factoryTitle:Po});function Io(e,t){let r;return function n(i){if(Vi(i))return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),r=!0,n;if(Wi(i))return eo(e,n,r?"linePrefix":"lineSuffix")(i);return t(i)}}var Lo=Object.freeze({__proto__:null,factoryWhitespace:Io});function Do(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}var Mo=Object.freeze({__proto__:null,normalizeIdentifier:Do});const Fo={name:"definition",tokenize:function(e,t,r){const n=this;let i;return function(t){return e.enter("definition"),function(t){return Oo.call(n,e,o,r,"definitionLabel","definitionLabelMarker","definitionLabelString")(t)}(t)};function o(t){return i=Do(n.sliceSerialize(n.events[n.events.length-1][1]).slice(1,-1)),58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),a):r(t)}function a(t){return Qi(t)?Io(e,s)(t):s(t)}function s(t){return xo(e,c,r,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(t)}function c(t){return e.attempt(Ho,l,l)(t)}function l(t){return Wi(t)?eo(e,u,"whitespace")(t):u(t)}function u(o){return null===o||Vi(o)?(e.exit("definition"),n.parser.defined.push(i),t(o)):r(o)}}},Ho={tokenize:function(e,t,r){return function(t){return Qi(t)?Io(e,n)(t):r(t)};function n(t){return Po(e,i,r,"definitionTitle","definitionTitleMarker","definitionTitleString")(t)}function i(t){return Wi(t)?eo(e,o,"whitespace")(t):o(t)}function o(e){return null===e||Vi(e)?t(e):r(e)}},partial:!0};const Bo={name:"hardBreakEscape",tokenize:function(e,t,r){return function(t){return e.enter("hardBreakEscape"),e.consume(t),n};function n(n){return Vi(n)?(e.exit("hardBreakEscape"),t(n)):r(n)}}};const Uo={name:"headingAtx",tokenize:function(e,t,r){let n=0;return function(t){return e.enter("atxHeading"),function(t){return e.enter("atxHeadingSequence"),i(t)}(t)};function i(t){return 35===t&&n++<6?(e.consume(t),i):null===t||Qi(t)?(e.exit("atxHeadingSequence"),o(t)):r(t)}function o(r){return 35===r?(e.enter("atxHeadingSequence"),a(r)):null===r||Vi(r)?(e.exit("atxHeading"),t(r)):Wi(r)?eo(e,o,"whitespace")(r):(e.enter("atxHeadingText"),s(r))}function a(t){return 35===t?(e.consume(t),a):(e.exit("atxHeadingSequence"),o(t))}function s(t){return null===t||35===t||Qi(t)?(e.exit("atxHeadingText"),o(t)):(e.consume(t),s)}},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"},Li(e,o,i-o+1,[["enter",r,t],["enter",n,t],["exit",n,t],["exit",r,t]]));return e}};const jo=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],qo=["pre","script","style","textarea"],zo={name:"htmlFlow",tokenize:function(e,t,r){const n=this;let i,o,a,s,c;return function(t){return function(t){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(t),l}(t)};function l(s){return 33===s?(e.consume(s),u):47===s?(e.consume(s),o=!0,f):63===s?(e.consume(s),i=3,n.interrupt?t:L):Ui(s)?(e.consume(s),a=String.fromCharCode(s),d):r(s)}function u(o){return 45===o?(e.consume(o),i=2,h):91===o?(e.consume(o),i=5,s=0,p):Ui(o)?(e.consume(o),i=4,n.interrupt?t:L):r(o)}function h(i){return 45===i?(e.consume(i),n.interrupt?t:L):r(i)}function p(i){const o="CDATA[";return i===o.charCodeAt(s++)?(e.consume(i),6===s?n.interrupt?t:C:p):r(i)}function f(t){return Ui(t)?(e.consume(t),a=String.fromCharCode(t),d):r(t)}function d(s){if(null===s||47===s||62===s||Qi(s)){const c=47===s,l=a.toLowerCase();return c||o||!qo.includes(l)?jo.includes(a.toLowerCase())?(i=6,c?(e.consume(s),m):n.interrupt?t(s):C(s)):(i=7,n.interrupt&&!n.parser.lazy[n.now().line]?r(s):o?g(s):E(s)):(i=1,n.interrupt?t(s):C(s))}return 45===s||ji(s)?(e.consume(s),a+=String.fromCharCode(s),d):r(s)}function m(i){return 62===i?(e.consume(i),n.interrupt?t:C):r(i)}function g(t){return Wi(t)?(e.consume(t),g):S(t)}function E(t){return 47===t?(e.consume(t),S):58===t||95===t||Ui(t)?(e.consume(t),y):Wi(t)?(e.consume(t),E):S(t)}function y(t){return 45===t||46===t||58===t||95===t||ji(t)?(e.consume(t),y):T(t)}function T(t){return 61===t?(e.consume(t),v):Wi(t)?(e.consume(t),T):E(t)}function v(t){return null===t||60===t||61===t||62===t||96===t?r(t):34===t||39===t?(e.consume(t),c=t,b):Wi(t)?(e.consume(t),v):_(t)}function b(t){return t===c?(e.consume(t),c=null,A):null===t||Vi(t)?r(t):(e.consume(t),b)}function _(t){return null===t||34===t||39===t||47===t||60===t||61===t||62===t||96===t||Qi(t)?T(t):(e.consume(t),_)}function A(e){return 47===e||62===e||Wi(e)?E(e):r(e)}function S(t){return 62===t?(e.consume(t),k):r(t)}function k(t){return null===t||Vi(t)?C(t):Wi(t)?(e.consume(t),k):r(t)}function C(t){return 45===t&&2===i?(e.consume(t),N):60===t&&1===i?(e.consume(t),P):62===t&&4===i?(e.consume(t),D):63===t&&3===i?(e.consume(t),L):93===t&&5===i?(e.consume(t),I):!Vi(t)||6!==i&&7!==i?null===t||Vi(t)?(e.exit("htmlFlowData"),x(t)):(e.consume(t),C):(e.exit("htmlFlowData"),e.check(Go,M,x)(t))}function x(t){return e.check(Ko,w,M)(t)}function w(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),O}function O(t){return null===t||Vi(t)?x(t):(e.enter("htmlFlowData"),C(t))}function N(t){return 45===t?(e.consume(t),L):C(t)}function P(t){return 47===t?(e.consume(t),a="",R):C(t)}function R(t){if(62===t){const r=a.toLowerCase();return qo.includes(r)?(e.consume(t),D):C(t)}return Ui(t)&&a.length<8?(e.consume(t),a+=String.fromCharCode(t),R):C(t)}function I(t){return 93===t?(e.consume(t),L):C(t)}function L(t){return 62===t?(e.consume(t),D):45===t&&2===i?(e.consume(t),L):C(t)}function D(t){return null===t||Vi(t)?(e.exit("htmlFlowData"),M(t)):(e.consume(t),D)}function M(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},Go={tokenize:function(e,t,r){return function(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),e.attempt(uo,t,r)}},partial:!0},Ko={tokenize:function(e,t,r){const n=this;return function(t){if(Vi(t))return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i;return r(t)};function i(e){return n.parser.lazy[n.now().line]?r(e):t(e)}},partial:!0};const $o={name:"htmlText",tokenize:function(e,t,r){const n=this;let i,o,a;return function(t){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(t),s};function s(t){return 33===t?(e.consume(t),c):47===t?(e.consume(t),v):63===t?(e.consume(t),y):Ui(t)?(e.consume(t),A):r(t)}function c(t){return 45===t?(e.consume(t),l):91===t?(e.consume(t),o=0,f):Ui(t)?(e.consume(t),E):r(t)}function l(t){return 45===t?(e.consume(t),p):r(t)}function u(t){return null===t?r(t):45===t?(e.consume(t),h):Vi(t)?(a=u,R(t)):(e.consume(t),u)}function h(t){return 45===t?(e.consume(t),p):u(t)}function p(e){return 62===e?P(e):45===e?h(e):u(e)}function f(t){const n="CDATA[";return t===n.charCodeAt(o++)?(e.consume(t),6===o?d:f):r(t)}function d(t){return null===t?r(t):93===t?(e.consume(t),m):Vi(t)?(a=d,R(t)):(e.consume(t),d)}function m(t){return 93===t?(e.consume(t),g):d(t)}function g(t){return 62===t?P(t):93===t?(e.consume(t),g):d(t)}function E(t){return null===t||62===t?P(t):Vi(t)?(a=E,R(t)):(e.consume(t),E)}function y(t){return null===t?r(t):63===t?(e.consume(t),T):Vi(t)?(a=y,R(t)):(e.consume(t),y)}function T(e){return 62===e?P(e):y(e)}function v(t){return Ui(t)?(e.consume(t),b):r(t)}function b(t){return 45===t||ji(t)?(e.consume(t),b):_(t)}function _(t){return Vi(t)?(a=_,R(t)):Wi(t)?(e.consume(t),_):P(t)}function A(t){return 45===t||ji(t)?(e.consume(t),A):47===t||62===t||Qi(t)?S(t):r(t)}function S(t){return 47===t?(e.consume(t),P):58===t||95===t||Ui(t)?(e.consume(t),k):Vi(t)?(a=S,R(t)):Wi(t)?(e.consume(t),S):P(t)}function k(t){return 45===t||46===t||58===t||95===t||ji(t)?(e.consume(t),k):C(t)}function C(t){return 61===t?(e.consume(t),x):Vi(t)?(a=C,R(t)):Wi(t)?(e.consume(t),C):S(t)}function x(t){return null===t||60===t||61===t||62===t||96===t?r(t):34===t||39===t?(e.consume(t),i=t,w):Vi(t)?(a=x,R(t)):Wi(t)?(e.consume(t),x):(e.consume(t),O)}function w(t){return t===i?(e.consume(t),i=void 0,N):null===t?r(t):Vi(t)?(a=w,R(t)):(e.consume(t),w)}function O(t){return null===t||34===t||39===t||60===t||61===t||96===t?r(t):47===t||62===t||Qi(t)?S(t):(e.consume(t),O)}function N(e){return 47===e||62===e||Qi(e)?S(e):r(e)}function P(n){return 62===n?(e.consume(n),e.exit("htmlTextData"),e.exit("htmlText"),t):r(n)}function R(t){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),I}function I(t){return Wi(t)?eo(e,L,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):L(t)}function L(t){return e.enter("htmlTextData"),a(t)}}};const Vo={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);if(i._inactive)return u(t);return o=n.parser.defined.includes(Do(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(t){return 40===t?e.attempt(Qo,l,o?l:u)(t):91===t?e.attempt(Wo,l,o?c:u)(t):o?l(t):u(t)}function c(t){return e.attempt(Yo,l,u)(t)}function l(e){return t(e)}function u(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)},l={type:"label",start:Object.assign({},e[n][1].start),end:Object.assign({},e[i][1].end)},u={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",l,t]],o=Di(o,e.slice(n+1,n+s+3)),o=Di(o,[["enter",u,t]]),o=Di(o,ao(t.parser.constructs.insideSpan.null,e.slice(n+s+4,i-3),t)),o=Di(o,[["exit",u,t],e[i-2],e[i-1],["exit",l,t]]),o=Di(o,e.slice(i+1)),o=Di(o,[["exit",c,t]]),Li(e,n,e.length,o),e},resolveAll:function(e){let t=-1;for(;++t<e.length;){const r=e[t][1];"labelImage"!==r.type&&"labelLink"!==r.type&&"labelEnd"!==r.type||(e.splice(t+1,"labelImage"===r.type?4:2),r.type="data",t++)}return e}},Qo={tokenize:function(e,t,r){return function(t){return e.enter("resource"),e.enter("resourceMarker"),e.consume(t),e.exit("resourceMarker"),n};function n(t){return Qi(t)?Io(e,i)(t):i(t)}function i(t){return 41===t?l(t):xo(e,o,a,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(t)}function o(t){return Qi(t)?Io(e,s)(t):l(t)}function a(e){return r(e)}function s(t){return 34===t||39===t||40===t?Po(e,c,r,"resourceTitle","resourceTitleMarker","resourceTitleString")(t):l(t)}function c(t){return Qi(t)?Io(e,l)(t):l(t)}function l(n){return 41===n?(e.enter("resourceMarker"),e.consume(n),e.exit("resourceMarker"),e.exit("resource"),t):r(n)}}},Wo={tokenize:function(e,t,r){const n=this;return function(t){return Oo.call(n,e,i,o,"reference","referenceMarker","referenceString")(t)};function i(e){return n.parser.defined.includes(Do(n.sliceSerialize(n.events[n.events.length-1][1]).slice(1,-1)))?t(e):r(e)}function o(e){return r(e)}}},Yo={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 Xo={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:Vo.resolveAll};const Jo={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:Vo.resolveAll};const Zo={name:"lineEnding",tokenize:function(e,t){return function(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),eo(e,t,"linePrefix")}}};const ea={name:"thematicBreak",tokenize:function(e,t,r){let n,i=0;return function(t){return e.enter("thematicBreak"),function(e){return n=e,o(e)}(t)};function o(o){return o===n?(e.enter("thematicBreakSequence"),a(o)):i>=3&&(null===o||Vi(o))?(e.exit("thematicBreak"),t(o)):r(o)}function a(t){return t===n?(e.consume(t),i++,a):(e.exit("thematicBreakSequence"),Wi(t)?eo(e,o,"whitespace")(t):o(t))}}};const ta={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:Gi(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(ea,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 Gi(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(uo,n.interrupt?r:l,e.attempt(ra,h,u))}function l(e){return n.containerState.initialBlankLine=!0,o++,h(e)}function u(t){return Wi(t)?(e.enter("listItemPrefixWhitespace"),e.consume(t),e.exit("listItemPrefixWhitespace"),h):r(t)}function h(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(uo,i,o);function i(r){return n.containerState.furtherBlankLines=n.containerState.furtherBlankLines||n.containerState.initialBlankLine,eo(e,t,"listItemIndent",n.containerState.size+1)(r)}function o(r){return n.containerState.furtherBlankLines||!Wi(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(na,t,a)(r))}function a(i){return n.containerState._closeFlow=!0,n.interrupt=void 0,eo(e,e.attempt(ta,t,r),"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(i)}}},exit:function(e){e.exit(this.containerState.type)}},ra={tokenize:function(e,t,r){const n=this;return eo(e,function(e){const i=n.events[n.events.length-1];return!Wi(e)&&i&&"listItemPrefixWhitespace"===i[1].type?t(e):r(e)},"listItemPrefixWhitespace",n.parser.constructs.disable.null.includes("codeIndented")?void 0:5)},partial:!0},na={tokenize:function(e,t,r){const n=this;return eo(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 ia={name:"setextUnderline",tokenize:function(e,t,r){const n=this;let i;return function(t){let a,s=n.events.length;for(;s--;)if("lineEnding"!==n.events[s][1].type&&"linePrefix"!==n.events[s][1].type&&"content"!==n.events[s][1].type){a="paragraph"===n.events[s][1].type;break}if(!n.parser.lazy[n.now().line]&&(n.interrupt||a))return e.enter("setextHeadingLine"),i=t,function(t){return e.enter("setextHeadingLineSequence"),o(t)}(t);return r(t)};function o(t){return t===i?(e.consume(t),o):(e.exit("setextHeadingLineSequence"),Wi(t)?eo(e,a,"lineSuffix")(t):a(t))}function a(n){return null===n||Vi(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 oa=Object.freeze({__proto__:null,attention:so,autolink:lo,blankLine:uo,blockQuote:ho,characterEscape:po,characterReference:Eo,codeFenced:To,codeIndented:vo,codeText:_o,content:ko,definition:Fo,hardBreakEscape:Bo,headingAtx:Uo,htmlFlow:zo,htmlText:$o,labelEnd:Vo,labelStartImage:Xo,labelStartLink:Jo,lineEnding:Zo,list:ta,setextUnderline:ia,thematicBreak:ea});const aa={tokenize:function(e){const t=this,r=e.attempt(uo,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,eo(e,e.attempt(this.parser.constructs.flow,n,e.attempt(ko,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 sa={resolveAll:ha()},ca=ua("string"),la=ua("text");function ua(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:ha("text"===e?pa:void 0)}}function ha(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 pa(e,t){let r=0;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 fa(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){Vi(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++));l.previous=e},enter:function(e,t){const r=t||{};return r.type=e,r.start=p(),l.events.push(["enter",r,l]),s.push(r),r},exit:function(e){const t=s.pop();return t.end=p(),l.events.push(["exit",t,l]),t},attempt:g(function(e,t){E(e,t.from)}),check:g(m),interrupt:g(m,{interrupt:!0})},l={previous:null,code:null,containerState:{},events:[],parser:e,sliceStream:h,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("")}(h(e),t)},now:p,defineSkip:function(e){i[e.line]=e.column,y()},write:function(e){if(a=Di(a,e),f(),null!==a[a.length-1])return[];return E(t,0),l.events=ao(o,l.events,l),l.events}};let u=t.tokenize.call(l,c);return t.resolveAll&&o.push(t),l;function h(e){return function(e,t){const r=t.start._index,n=t.start._bufferIndex,i=t.end._index,o=t.end._bufferIndex;let a;if(r===i)a=[e[r].slice(n,o)];else{if(a=e.slice(r,i),n>-1){const e=a[0];"string"==typeof e?a[0]=e.slice(n):a.shift()}o>0&&a.push(e[i].slice(0,o))}return a}(a,e)}function p(){const{line:e,column:t,offset:r,_index:i,_bufferIndex:o}=n;return{line:e,column:t,offset:r,_index:i,_bufferIndex:o}}function f(){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){u=u(e)}function m(e,t){t.restore()}function g(e,t){return function(r,i,o){let a,u,h,f;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,u=0,0===e.length?o:m(e[u])}function m(e){return function(r){f=function(){const e=p(),t=l.previous,r=l.currentConstruct,i=l.events.length,o=Array.from(s);return{restore:a,from:i};function a(){n=e,l.previous=t,l.currentConstruct=r,l.events.length=i,s=o,y()}}(),h=e,e.partial||(l.currentConstruct=e);if(e.name&&l.parser.constructs.disable.null.includes(e.name))return E();return e.tokenize.call(t?Object.assign(Object.create(l),t):l,c,g,E)(r)}}function g(t){return e(h,f),i}function E(e){return f.restore(),++u<a.length?m(a[u]):o}}}function E(e,t){e.resolveAll&&!o.includes(e)&&o.push(e),e.resolve&&Li(l.events,t,l.events.length-t,e.resolve(l.events.slice(t),l)),e.resolveTo&&(l.events=e.resolveTo(l.events,l))}function y(){n.line in i&&n.column<2&&(n.column=i[n.line],n.offset+=i[n.line]-1)}}const da={42:ta,43:ta,45:ta,48:ta,49:ta,50:ta,51:ta,52:ta,53:ta,54:ta,55:ta,56:ta,57:ta,62:ho},ma={91:Fo},ga={[-2]:vo,[-1]:vo,32:vo},Ea={35:Uo,42:ea,45:[ia,ea],60:zo,61:ia,95:ea,96:To,126:To},ya={38:Eo,92:po},Ta={[-5]:Zo,[-4]:Zo,[-3]:Zo,33:Xo,38:Eo,42:so,60:[lo,$o],91:Jo,92:[Bo,po],93:Vo,95:so,96:_o},va={null:[so,sa]};var ba=Object.freeze({__proto__:null,document:da,contentInitial:ma,flowInitial:ga,flow:Ea,string:ya,text:Ta,insideSpan:va,attentionMarkers:{null:[42,95]},disable:{null:[]}});const _a=/[\0\t\n\r]/g;function Aa(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&~r)||65534==(65535&r)||r>1114111?"�":String.fromCharCode(r)}const Sa=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function ka(e){return e.replace(Sa,Ca)}function Ca(e,t,r){if(t)return t;if(35===r.charCodeAt(0)){const e=r.charCodeAt(1),t=120===e||88===e;return Aa(r.slice(t?2:1),t?16:10)}return go(r)||e}const xa={}.hasOwnProperty,wa=function(e,t,r){return"string"!=typeof t&&(r=t,t=void 0),function(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:s(re),autolinkProtocol:x,autolinkEmail:x,atxHeading:s(J),blockQuote:s(V),characterEscape:x,characterReference:x,codeFenced:s(Q),codeFencedFenceInfo:c,codeFencedFenceMeta:c,codeIndented:s(Q,c),codeText:s(W,c),codeTextData:x,data:x,codeFlowValue:x,definition:s(Y),definitionDestinationString:c,definitionLabelString:c,definitionTitleString:c,emphasis:s(X),hardBreakEscape:s(Z),hardBreakTrailing:s(Z),htmlFlow:s(ee,c),htmlFlowData:x,htmlText:s(ee,c),htmlTextData:x,image:s(te),label:c,link:s(re),listItem:s(ie),listItemValue:d,listOrdered:s(ne,f),listUnordered:s(ne),paragraph:s(oe),reference:j,referenceString:c,resourceDestinationString:c,resourceTitleString:c,setextHeading:s(J),strong:s(ae),thematicBreak:s(ce)},exit:{atxHeading:u(),atxHeadingSequence:A,autolink:u(),autolinkEmail:$,autolinkProtocol:K,blockQuote:u(),characterEscapeValue:w,characterReferenceMarkerHexadecimal:z,characterReferenceMarkerNumeric:z,characterReferenceValue:G,codeFenced:u(y),codeFencedFence:E,codeFencedFenceInfo:m,codeFencedFenceMeta:g,codeFlowValue:w,codeIndented:u(T),codeText:u(I),codeTextData:w,data:w,definition:u(),definitionDestinationString:_,definitionLabelString:v,definitionTitleString:b,emphasis:u(),hardBreakEscape:u(N),hardBreakTrailing:u(N),htmlFlow:u(P),htmlFlowData:w,htmlText:u(R),htmlTextData:w,image:u(D),label:F,labelText:M,lineEnding:O,link:u(L),listItem:u(),listOrdered:u(),listUnordered:u(),paragraph:u(),referenceString:q,resourceDestinationString:H,resourceTitleString:B,resource:U,setextHeading:u(C),setextHeadingLineSequence:k,setextHeadingText:S,strong:u(),thematicBreak:u()}};Na(t,(e||{}).mdastExtensions||[]);const r={};return n;function n(e){let r={type:"root",children:[]};const n={stack:[r],tokenStack:[],config:t,enter:l,exit:h,buffer:c,resume:p,setData:o,getData:a},s=[];let u=-1;for(;++u<e.length;)if("listOrdered"===e[u][1].type||"listUnordered"===e[u][1].type)if("enter"===e[u][0])s.push(u);else{u=i(e,s.pop(),u)}for(u=-1;++u<e.length;){const r=t[e[u][0]];xa.call(r,e[u][1].type)&&r[e[u][1].type].call(Object.assign({sliceSerialize:e[u][2].sliceSerialize},n),e[u][1])}if(n.tokenStack.length>0){const e=n.tokenStack[n.tokenStack.length-1];(e[1]||Ra).call(n,void 0,e[0])}for(r.position={start:Oa(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:Oa(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},u=-1;++u<t.transforms.length;)r=t.transforms[u](r)||r;return r}function i(e,t,r){let n,i,o,a,s=t-1,c=-1,l=!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",l=!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),end:void 0},e.splice(s,0,["enter",n,t[2]]),s++,r++,o=void 0,a=!0)}}return e[t][1]._spread=l,r}function o(e,t){r[e]=t}function a(e){return r[e]}function s(e,t){return r;function r(r){l.call(this,e(r),r),t&&t.call(this,r)}}function c(){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:Oa(t.start)},e}function u(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+"` ("+li({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]||Ra).call(this,e,n[0])}return r.position.end=Oa(e.end),r}function p(){return Pi(this.stack.pop())}function f(){o("expectingFirstListItemValue",!0)}function d(e){if(a("expectingFirstListItemValue")){this.stack[this.stack.length-2].start=Number.parseInt(this.sliceSerialize(e),10),o("expectingFirstListItemValue")}}function m(){const e=this.resume();this.stack[this.stack.length-1].lang=e}function g(){const e=this.resume();this.stack[this.stack.length-1].meta=e}function E(){a("flowCodeInside")||(this.buffer(),o("flowCodeInside",!0))}function y(){const e=this.resume();this.stack[this.stack.length-1].value=e.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),o("flowCodeInside")}function T(){const e=this.resume();this.stack[this.stack.length-1].value=e.replace(/(\r?\n|\r)$/g,"")}function v(e){const t=this.resume(),r=this.stack[this.stack.length-1];r.label=t,r.identifier=Do(this.sliceSerialize(e)).toLowerCase()}function b(){const e=this.resume();this.stack[this.stack.length-1].title=e}function _(){const e=this.resume();this.stack[this.stack.length-1].url=e}function A(e){const t=this.stack[this.stack.length-1];if(!t.depth){const r=this.sliceSerialize(e).length;t.depth=r}}function S(){o("setextHeadingSlurpLineEnding",!0)}function k(e){this.stack[this.stack.length-1].depth=61===this.sliceSerialize(e).charCodeAt(0)?1:2}function C(){o("setextHeadingSlurpLineEnding")}function x(e){const t=this.stack[this.stack.length-1];let r=t.children[t.children.length-1];r&&"text"===r.type||(r=se(),r.position={start:Oa(e.start)},t.children.push(r)),this.stack.push(r)}function w(e){const t=this.stack.pop();t.value+=this.sliceSerialize(e),t.position.end=Oa(e.end)}function O(e){const r=this.stack[this.stack.length-1];if(a("atHardBreak")){return r.children[r.children.length-1].position.end=Oa(e.end),void o("atHardBreak")}!a("setextHeadingSlurpLineEnding")&&t.canContainEols.includes(r.type)&&(x.call(this,e),w.call(this,e))}function N(){o("atHardBreak",!0)}function P(){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 L(){const e=this.stack[this.stack.length-1];if(a("inReference")){const t=a("referenceType")||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;o("referenceType")}function D(){const e=this.stack[this.stack.length-1];if(a("inReference")){const t=a("referenceType")||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;o("referenceType")}function M(e){const t=this.sliceSerialize(e),r=this.stack[this.stack.length-2];r.label=ka(t),r.identifier=Do(t).toLowerCase()}function F(){const e=this.stack[this.stack.length-1],t=this.resume(),r=this.stack[this.stack.length-1];if(o("inReference",!0),"link"===r.type){const t=e.children;r.children=t}else r.alt=t}function H(){const e=this.resume();this.stack[this.stack.length-1].url=e}function B(){const e=this.resume();this.stack[this.stack.length-1].title=e}function U(){o("inReference")}function j(){o("referenceType","collapsed")}function q(e){const t=this.resume(),r=this.stack[this.stack.length-1];r.label=t,r.identifier=Do(this.sliceSerialize(e)).toLowerCase(),o("referenceType","full")}function z(e){o("characterReferenceType",e.type)}function G(e){const t=this.sliceSerialize(e),r=a("characterReferenceType");let n;if(r)n=Aa(t,"characterReferenceMarkerNumeric"===r?10:16),o("characterReferenceType");else{n=go(t)}const i=this.stack.pop();i.value+=n,i.position.end=Oa(e.end)}function K(e){w.call(this,e);this.stack[this.stack.length-1].url=this.sliceSerialize(e)}function $(e){w.call(this,e);this.stack[this.stack.length-1].url="mailto:"+this.sliceSerialize(e)}function V(){return{type:"blockquote",children:[]}}function Q(){return{type:"code",lang:null,meta:null,value:""}}function W(){return{type:"inlineCode",value:""}}function Y(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function X(){return{type:"emphasis",children:[]}}function J(){return{type:"heading",depth:void 0,children:[]}}function Z(){return{type:"break"}}function ee(){return{type:"html",value:""}}function te(){return{type:"image",title:null,url:"",alt:null}}function re(){return{type:"link",title:null,url:"",children:[]}}function ne(e){return{type:"list",ordered:"listOrdered"===e.type,start:null,spread:e._spread,children:[]}}function ie(e){return{type:"listItem",spread:e._spread,checked:null,children:[]}}function oe(){return{type:"paragraph",children:[]}}function ae(){return{type:"strong",children:[]}}function se(){return{type:"text",value:""}}function ce(){return{type:"thematicBreak"}}}(r)(function(e){for(;!Ao(e););return e}(function(e){const t={defined:[],lazy:{},constructs:Fi([ba,...(e||{}).extensions||[]]),content:r(ro),document:r(no),flow:r(aa),string:r(ca),text:r(la)};return t;function r(e){return function(r){return fa(t,e,r)}}}(r).document().write(function(){let e,t=1,r="",n=!0;return function(i,o,a){const s=[];let c,l,u,h,p;for(i=r+i.toString(o),u=0,r="",n&&(65279===i.charCodeAt(0)&&u++,n=void 0);u<i.length;){if(_a.lastIndex=u,c=_a.exec(i),h=c&&void 0!==c.index?c.index:i.length,p=i.charCodeAt(h),!c){r=i.slice(u);break}if(10===p&&u===h&&e)s.push(-3),e=void 0;else switch(e&&(s.push(-5),e=void 0),u<h&&(s.push(i.slice(u,h)),t+=h-u),p){case 0:s.push(65533),t++;break;case 9:for(l=4*Math.ceil(t/4),s.push(-2);t++<l;)s.push(-1);break;case 10:s.push(-4),t=1;break;default:e=!0,t=1}u=h+1}return a&&(e&&s.push(-5),r&&s.push(r),s.push(null)),s}}()(e,t,!0))))};function Oa(e){return{line:e.line,column:e.column,offset:e.offset}}function Na(e,t){let r=-1;for(;++r<t.length;){const n=t[r];Array.isArray(n)?Na(e,n):Pa(e,n)}}function Pa(e,t){let r;for(r in t)if(xa.call(t,r))if("canContainEols"===r){const n=t[r];n&&e[r].push(...n)}else if("transforms"===r){const n=t[r];n&&e[r].push(...n)}else if("enter"===r||"exit"===r){const n=t[r];n&&Object.assign(e[r],n)}}function Ra(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+li({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+li({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+li({start:t.start,end:t.end})+") is still open")}var Ia=he(Object.freeze({__proto__:null,default:function(e){Object.assign(this,{Parser:t=>{const r=this.data("settings");return wa(t,Object.assign({},r,e,{extensions:this.data("micromarkExtensions")||[],mdastExtensions:this.data("fromMarkdownExtensions")||[]}))}})}}));const La={tokenize:function(e,t,r){let n=0;return function t(o){if((87===o||119===o)&&n<3)return n++,e.consume(o),t;if(46===o&&3===n)return e.consume(o),i;return r(o)};function i(e){return null===e?r(e):t(e)}},partial:!0},Da={tokenize:function(e,t,r){let n,i,o;return a;function a(t){return 46===t||95===t?e.check(Fa,c,s)(t):null===t||Qi(t)||Xi(t)||45!==t&&Yi(t)?c(t):(o=!0,e.consume(t),a)}function s(t){return 95===t?n=!0:(i=n,n=void 0),e.consume(t),a}function c(e){return i||n||!o?r(e):t(e)}},partial:!0},Ma={tokenize:function(e,t){let r=0,n=0;return i;function i(a){return 40===a?(r++,e.consume(a),i):41===a&&n<r?o(a):33===a||34===a||38===a||39===a||41===a||42===a||44===a||46===a||58===a||59===a||60===a||63===a||93===a||95===a||126===a?e.check(Fa,t,o)(a):null===a||Qi(a)||Xi(a)?t(a):(e.consume(a),i)}function o(t){return 41===t&&n++,e.consume(t),i}},partial:!0},Fa={tokenize:function(e,t,r){return n;function n(a){return 33===a||34===a||39===a||41===a||42===a||44===a||46===a||58===a||59===a||63===a||95===a||126===a?(e.consume(a),n):38===a?(e.consume(a),o):93===a?(e.consume(a),i):60===a||null===a||Qi(a)||Xi(a)?t(a):r(a)}function i(e){return null===e||40===e||91===e||Qi(e)||Xi(e)?t(e):n(e)}function o(e){return Ui(e)?a(e):r(e)}function a(t){return 59===t?(e.consume(t),n):Ui(t)?(e.consume(t),a):r(t)}},partial:!0},Ha={tokenize:function(e,t,r){return function(t){return e.consume(t),n};function n(e){return ji(e)?r(e):t(e)}},partial:!0},Ba={tokenize:function(e,t,r){const n=this;return function(t){if(87!==t&&119!==t||!Ka.call(n,n.previous)||Wa(n.events))return r(t);return e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(La,e.attempt(Da,e.attempt(Ma,i),r),r)(t)};function i(r){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(r)}},previous:Ka},Ua={tokenize:function(e,t,r){const n=this;let i="",o=!1;return function(t){if((72===t||104===t)&&$a.call(n,n.previous)&&!Wa(n.events))return e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),i+=String.fromCodePoint(t),e.consume(t),a;return r(t)};function a(t){if(Ui(t)&&i.length<5)return i+=String.fromCodePoint(t),e.consume(t),a;if(58===t){const r=i.toLowerCase();if("http"===r||"https"===r)return e.consume(t),s}return r(t)}function s(t){return 47===t?(e.consume(t),o?c:(o=!0,s)):r(t)}function c(t){return null===t||zi(t)||Qi(t)||Xi(t)||Yi(t)?r(t):e.attempt(Da,e.attempt(Ma,l),r)(t)}function l(r){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(r)}},previous:$a},ja={tokenize:function(e,t,r){const n=this;let i,o;return function(t){if(!Qa(t)||!Va.call(n,n.previous)||Wa(n.events))return r(t);return e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),a(t)};function a(t){return Qa(t)?(e.consume(t),a):64===t?(e.consume(t),s):r(t)}function s(t){return 46===t?e.check(Ha,l,c)(t):45===t||95===t||ji(t)?(o=!0,e.consume(t),s):l(t)}function c(t){return e.consume(t),i=!0,s}function l(a){return o&&i&&Ui(n.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(a)):r(a)}},previous:Va},qa={},za={text:qa};let Ga=48;for(;Ga<123;)qa[Ga]=ja,Ga++,58===Ga?Ga=65:91===Ga&&(Ga=97);function Ka(e){return null===e||40===e||42===e||95===e||91===e||93===e||126===e||Qi(e)}function $a(e){return!Ui(e)}function Va(e){return!(47===e||Qa(e))}function Qa(e){return 43===e||45===e||46===e||95===e||ji(e)}function Wa(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}qa[43]=ja,qa[45]=ja,qa[46]=ja,qa[95]=ja,qa[72]=[ja,Ua],qa[104]=[ja,Ua],qa[87]=[ja,Ba],qa[119]=[ja,Ba];const Ya={tokenize:function(e,t,r){const n=this;return eo(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 Xa(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=Do(n.sliceSerialize({start:a.end,end:n.now()}));if(94!==s.codePointAt(0)||!o.includes(s.slice(1)))return r(i);return e.enter("gfmFootnoteCallLabelMarker"),e.consume(i),e.exit("gfmFootnoteCallLabelMarker"),t(i)}}function Ja(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 Za(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){if(a>999||93===s&&!o||null===s||91===s||Qi(s))return r(s);if(93===s){e.exit("chunkString");const o=e.exit("gfmFootnoteCallString");return i.includes(Do(n.sliceSerialize(o)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(s),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):r(s)}return Qi(s)||(o=!0),a++,e.consume(s),92===s?l:c}function l(t){return 91===t||92===t||93===t?(e.consume(t),a++,c):c(t)}}function es(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"),e.enter("chunkString").contentType="string",l):r(t)}function l(t){if(s>999||93===t&&!a||null===t||91===t||Qi(t))return r(t);if(93===t){e.exit("chunkString");const r=e.exit("gfmFootnoteDefinitionLabelString");return o=Do(n.sliceSerialize(r)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),h}return Qi(t)||(a=!0),s++,e.consume(t),92===t?u:l}function u(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"),i.includes(o)||i.push(o),eo(e,p,"gfmFootnoteDefinitionWhitespace")):r(t)}function p(e){return t(e)}}function ts(e,t,r){return e.check(uo,t,e.attempt(Ya,t,r))}function rs(e){e.exit("gfmFootnoteDefinition")}function ns(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=oo(i);if(126===o)return a>1?n(o):(e.consume(o),a++,s);if(a<2&&!t)return n(o);const l=e.exit("strikethroughSequenceTemporary"),u=oo(o);return l._open=!u||2===u&&Boolean(c),l._close=!c||2===c&&Boolean(u),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]],s=t.parser.constructs.insideSpan.null;s&&Li(a,a.length,0,ao(s,e.slice(n+1,r),t)),Li(a,a.length,0,[["exit",o,t],["enter",e[r][1],t],["exit",e[r][1],t],["exit",i,t]]),Li(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]}}}class is{constructor(){this.map=[]}add(e,t,r){!function(e,t,r,n){let i=0;if(0===r&&0===n.length)return;for(;i<e.map.length;){if(e.map[i][0]===t)return e.map[i][1]+=r,void e.map[i][2].push(...n);i+=1}e.map.push([t,r,n])}(this,e,t,r)}consume(e){if(this.map.sort((e,t)=>e[0]-t[0]),0===this.map.length)return;let t=this.map.length;const r=[];for(;t>0;)t-=1,r.push(e.slice(this.map[t][0]+this.map[t][1])),r.push(this.map[t][2]),e.length=this.map[t][0];r.push([...e]),e.length=0;let n=r.pop();for(;n;)e.push(...n),n=r.pop();this.map.length=0}}function os(e,t){let r=!1;const n=[];for(;t<e.length;){const i=e[t];if(r){if("enter"===i[0])"tableContent"===i[1].type&&n.push("tableDelimiterMarker"===e[t+1][1].type?"left":"none");else if("tableContent"===i[1].type){if("tableDelimiterMarker"===e[t-1][1].type){const e=n.length-1;n[e]="left"===n[e]?"center":"right"}}else if("tableDelimiterRow"===i[1].type)break}else"enter"===i[0]&&"tableDelimiterRow"===i[1].type&&(r=!0);t+=1}return n}const as={flow:{null:{tokenize:function(e,t,r){const n=this;let i,o=0,a=0;return function(e){let t=n.events.length-1;for(;t>-1;){const e=n.events[t][1].type;if("lineEnding"!==e&&"linePrefix"!==e)break;t--}const i=t>-1?n.events[t][1].type:null,o="tableHead"===i||"tableRow"===i?v:s;if(o===v&&n.parser.lazy[n.now().line])return r(e);return o(e)};function s(t){return e.enter("tableHead"),e.enter("tableRow"),function(e){if(124===e)return c(e);return i=!0,a+=1,c(e)}(t)}function c(t){return null===t?r(t):Vi(t)?a>1?(a=0,n.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),h):r(t):Wi(t)?eo(e,c,"whitespace")(t):(a+=1,i&&(i=!1,o+=1),124===t?(e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),i=!0,c):(e.enter("data"),l(t)))}function l(t){return null===t||124===t||Qi(t)?(e.exit("data"),c(t)):(e.consume(t),92===t?u:l)}function u(t){return 92===t||124===t?(e.consume(t),l):l(t)}function h(t){return n.interrupt=!1,n.parser.lazy[n.now().line]?r(t):(e.enter("tableDelimiterRow"),i=!1,Wi(t)?eo(e,p,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):p(t))}function p(t){return 45===t||58===t?d(t):124===t?(i=!0,e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),f):T(t)}function f(t){return Wi(t)?eo(e,d,"whitespace")(t):d(t)}function d(t){return 58===t?(a+=1,i=!0,e.enter("tableDelimiterMarker"),e.consume(t),e.exit("tableDelimiterMarker"),m):45===t?(a+=1,m(t)):null===t||Vi(t)?y(t):T(t)}function m(t){return 45===t?(e.enter("tableDelimiterFiller"),g(t)):T(t)}function g(t){return 45===t?(e.consume(t),g):58===t?(i=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(t),e.exit("tableDelimiterMarker"),E):(e.exit("tableDelimiterFiller"),E(t))}function E(t){return Wi(t)?eo(e,y,"whitespace")(t):y(t)}function y(r){return 124===r?p(r):(null===r||Vi(r))&&i&&o===a?(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(r)):T(r)}function T(e){return r(e)}function v(t){return e.enter("tableRow"),b(t)}function b(r){return 124===r?(e.enter("tableCellDivider"),e.consume(r),e.exit("tableCellDivider"),b):null===r||Vi(r)?(e.exit("tableRow"),t(r)):Wi(r)?eo(e,b,"whitespace")(r):(e.enter("data"),_(r))}function _(t){return null===t||124===t||Qi(t)?(e.exit("data"),b(t)):(e.consume(t),92===t?A:_)}function A(t){return 92===t||124===t?(e.consume(t),_):_(t)}},resolveAll:function(e,t){let r,n,i,o=-1,a=!0,s=0,c=[0,0,0,0],l=[0,0,0,0],u=!1,h=0;const p=new is;for(;++o<e.length;){const f=e[o],d=f[1];"enter"===f[0]?"tableHead"===d.type?(u=!1,0!==h&&(cs(p,t,h,r,n),n=void 0,h=0),r={type:"table",start:Object.assign({},d.start),end:Object.assign({},d.end)},p.add(o,0,[["enter",r,t]])):"tableRow"===d.type||"tableDelimiterRow"===d.type?(a=!0,i=void 0,c=[0,0,0,0],l=[0,o+1,0,0],u&&(u=!1,n={type:"tableBody",start:Object.assign({},d.start),end:Object.assign({},d.end)},p.add(o,0,[["enter",n,t]])),s="tableDelimiterRow"===d.type?2:n?3:1):!s||"data"!==d.type&&"tableDelimiterMarker"!==d.type&&"tableDelimiterFiller"!==d.type?"tableCellDivider"===d.type&&(a?a=!1:(0!==c[1]&&(l[0]=l[1],i=ss(p,t,c,s,void 0,i)),c=l,l=[c[1],o,0,0])):(a=!1,0===l[2]&&(0!==c[1]&&(l[0]=l[1],i=ss(p,t,c,s,void 0,i),c=[0,0,0,0]),l[2]=o)):"tableHead"===d.type?(u=!0,h=o):"tableRow"===d.type||"tableDelimiterRow"===d.type?(h=o,0!==c[1]?(l[0]=l[1],i=ss(p,t,c,s,o,i)):0!==l[1]&&(i=ss(p,t,l,s,o,i)),s=0):!s||"data"!==d.type&&"tableDelimiterMarker"!==d.type&&"tableDelimiterFiller"!==d.type||(l[3]=o)}0!==h&&cs(p,t,h,r,n);p.consume(t.events),o=-1;for(;++o<t.events.length;){const e=t.events[o];"enter"===e[0]&&"table"===e[1].type&&(e[1]._align=os(t.events,o))}return e}}}};function ss(e,t,r,n,i,o){const a=1===n?"tableHeader":2===n?"tableDelimiter":"tableData";0!==r[0]&&(o.end=Object.assign({},ls(t.events,r[0])),e.add(r[0],0,[["exit",o,t]]));const s=ls(t.events,r[1]);if(o={type:a,start:Object.assign({},s),end:Object.assign({},s)},e.add(r[1],0,[["enter",o,t]]),0!==r[2]){const i=ls(t.events,r[2]),o=ls(t.events,r[3]),a={type:"tableContent",start:Object.assign({},i),end:Object.assign({},o)};if(e.add(r[2],0,[["enter",a,t]]),2!==n){const n=t.events[r[2]],i=t.events[r[3]];if(n[1].end=Object.assign({},i[1].end),n[1].type="chunkText",n[1].contentType="text",r[3]>r[2]+1){const t=r[2]+1,n=r[3]-r[2]-1;e.add(t,n,[])}}e.add(r[3]+1,0,[["exit",a,t]])}return void 0!==i&&(o.end=Object.assign({},ls(t.events,i)),e.add(i,0,[["exit",o,t]]),o=void 0),o}function cs(e,t,r,n,i){const o=[],a=ls(t.events,r);i&&(i.end=Object.assign({},a),o.push(["exit",i,t])),n.end=Object.assign({},a),o.push(["exit",n,t]),e.add(r+1,0,o)}function ls(e,t){const r=e[t],n="enter"===r[0]?"start":"end";return r[1][n]}const us={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 Qi(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(t){return 93===t?(e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),a):r(t)}function a(n){return Vi(n)?t(n):Wi(n)?e.check({tokenize:ps},t,r)(n):r(n)}}},hs={text:{91:us}};function ps(e,t,r){return eo(e,function(e){return null===e?r(e):t(e)},"whitespace")}function fs(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}function ds(e){if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}const ms=function(e){if(null==e)return Es;if("string"==typeof e)return function(e){return gs(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]=ms(e[r]);return gs(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 gs(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 gs(e);throw new Error("Expected function, string, or object as test")};function gs(e){return function(t,...r){return Boolean(t&&"object"==typeof t&&"type"in t&&Boolean(e.call(this,t,...r)))}}function Es(){return!0}var ys=Object.freeze({__proto__:null,is:function e(t,r,n,i,o){const a=ms(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:ms});const Ts=!0,vs=!1,bs="skip",_s=function(e,t,r,n){"function"==typeof t&&"function"!=typeof r&&(n=r,r=t,t=null);const i=ms(t),o=n?-1:1;!function e(a,s,c){const l=a&&"object"==typeof a?a:{};if("string"==typeof l.type){const e="string"==typeof l.tagName?l.tagName:"string"==typeof l.name?l.name:void 0;Object.defineProperty(h,"name",{value:"node ("+(u=a.type+(e?"<"+e+">":""),"[33m"+u+"[39m)")})}var u;return h;function h(){let l,u,h,p=[];if((!t||i(a,s,c[c.length-1]||null))&&(p=function(e){if(Array.isArray(e))return e;if("number"==typeof e)return[Ts,e];return[e]}(r(a,c)),p[0]===vs))return p;if(a.children&&p[0]!==bs)for(u=(n?a.children.length:-1)+o,h=c.concat(a);u>-1&&u<a.children.length;){if(l=e(a.children[u],u,h)(),l[0]===vs)return l;u="number"==typeof l[1]?l[1]:u+o}return p}}(e,void 0,[])()};const As={}.hasOwnProperty,Ss=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=ms(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([ks(e[r][0]),Cs(e[r][1])])}else{let r;for(r in e)As.call(e,r)&&t.push([ks(r),Cs(e[r])])}return t}(o);let c=-1;for(;++c<s.length;)_s(e,"text",l);return e;function l(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=t[t.length-1],n=s[c][0],i=s[c][1];let o=0;const a=r.children.indexOf(e);let l=!1,u=[];n.lastIndex=0;let h=n.exec(e.value);for(;h;){const r=h.index,a={index:h.index,input:h.input,stack:[...t,e]};let s=i(...h,a);if("string"==typeof s&&(s=s.length>0?{type:"text",value:s}:void 0),!1!==s&&(o!==r&&u.push({type:"text",value:e.value.slice(o,r)}),Array.isArray(s)?u.push(...s):s&&u.push(s),o=r+h[0].length,l=!0),!n.global)break;h=n.exec(e.value)}l?(o<e.value.length&&u.push({type:"text",value:e.value.slice(o)}),r.children.splice(a,1,...u)):u=[e];return a+u.length}(e,t)}};function ks(e){return"string"==typeof e?new RegExp(ds(e),"g"):e}function Cs(e){return"function"==typeof e?e:()=>e}const xs="phrasing",ws=["autolink","link","image","label"],Os={transforms:[function(e){Ss(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,Rs],[/([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/g,Is]],{ignore:["link","linkReference"]})}],enter:{literalAutolink:function(e){this.enter({type:"link",title:null,url:"",children:[]},e)},literalAutolinkEmail:Ps,literalAutolinkHttp:Ps,literalAutolinkWww:Ps},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);const t=this.stack[this.stack.length-1];t.url="http://"+this.sliceSerialize(e)}}},Ns={unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:xs,notInConstruct:ws},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:xs,notInConstruct:ws},{character:":",before:"[ps]",after:"\\/",inConstruct:xs,notInConstruct:ws}]};function Ps(e){this.config.enter.autolinkProtocol.call(this,e)}function Rs(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);if(!t)return[e,void 0];e=e.slice(0,t.index);let r=t[0],n=r.indexOf(")");const i=fs(e,"(");let o=fs(e,")");for(;-1!==n&&i>o;)e+=r.slice(0,n+1),r=r.slice(n+1),n=r.indexOf(")"),o++;return[e,r]}(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 Is(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||Xi(r)||Yi(r))&&(!t||47!==r)}function Ds(e){return e.label||!e.identifier?e.label||"":ka(e.identifier)}function Ms(e,t,r){const n=t.indexStack,i=e.children||[],o=t.createTracker(r),a=[];let s=-1;for(n.push(-1);++s<i.length;){const r=i[s];n[n.length-1]=s,a.push(o.move(t.handle(r,e,t,{before:"\n",after:"\n",...o.current()}))),"list"!==r.type&&(t.bulletLastUsed=void 0),s<i.length-1&&a.push(o.move(Fs(r,i[s+1],e,t)))}return n.pop(),a.join("")}function Fs(e,t,r,n){let i=n.join.length;for(;i--;){const o=n.join[i](e,t,r,n);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 Hs=/\r?\n|\r/g;function Bs(e,t){const r=[];let n,i=0,o=0;for(;n=Hs.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 Us(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 js(e,t){return qs(e,t.inConstruct,!0)&&!qs(e,t.notInConstruct,!1)}function qs(e,t,r){if("string"==typeof t&&(t=[t]),!t||0===t.length)return r;let n=-1;for(;++n<t.length;)if(e.includes(t[n]))return!0;return!1}function zs(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(!js(e.stack,t))continue;const r=Us(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(Gs);let c=r.before?r.before.length:0;const l=n.length-(r.after?r.after.length:0);for(s=-1;++s<i.length;){const e=i[s];e<c||e>=l||(e+1<l&&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(Ks(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(Ks(n.slice(c,l),r.after)),o.join("")}function Gs(e,t){return e-t}function Ks(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("")}function $s(e){const t=e||{},r=t.now||{};let n=t.lineShift||0,i=r.line||1,o=r.column||1;return{move:function(e){const t=e||"",r=t.split(/\r?\n|\r/g),a=r[r.length-1];return i+=r.length-1,o=1===r.length?o+a.length:1+a.length+n,t},current:function(){return{now:{line:i,column:o},lineShift:n}},shift:function(e){n+=e}}}function Vs(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function Qs(){this.buffer()}function Ws(e){const t=this.resume(),r=this.stack[this.stack.length-1];r.label=t,r.identifier=Do(this.sliceSerialize(e)).toLowerCase()}function Ys(e){this.exit(e)}function Xs(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function Js(){this.buffer()}function Zs(e){const t=this.resume(),r=this.stack[this.stack.length-1];r.label=t,r.identifier=Do(this.sliceSerialize(e)).toLowerCase()}function ec(e){this.exit(e)}function tc(e,t,r,n){const i=$s(n);let o=i.move("[^");const a=r.enter("footnoteReference"),s=r.enter("reference");return o+=i.move(zs(r,Ds(e),{...i.current(),before:o,after:"]"})),s(),a(),o+=i.move("]"),o}function rc(e,t,r,n){const i=$s(n);let o=i.move("[^");const a=r.enter("footnoteDefinition"),s=r.enter("label");return o+=i.move(zs(r,Ds(e),{...i.current(),before:o,after:"]"})),s(),o+=i.move("]:"+(e.children&&e.children.length>0?" ":"")),i.shift(4),o+=i.move(Bs(Ms(e,r,i.current()),nc)),a(),o}function nc(e,t,r){return 0===t?e:(r?"":" ")+e}function ic(e,t,r){const n=t.indexStack,i=e.children||[],o=[];let a=-1,s=r.before;n.push(-1);let c=t.createTracker(r);for(;++a<i.length;){const l=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:"",...c.current()}).charAt(0):""}else u=r.after;o.length>0&&("\r"===s||"\n"===s)&&"html"===l.type&&(o[o.length-1]=o[o.length-1].replace(/(\r?\n|\r)$/," "),s=" ",c=t.createTracker(r),c.move(o.join(""))),o.push(c.move(t.handle(l,e,t,{...c.current(),before:s,after:u}))),s=o[o.length-1].slice(-1)}return n.pop(),o.join("")}tc.peek=function(){return"["};sc.peek=function(){return"~"};const oc={canContainEols:["delete"],enter:{strikethrough:function(e){this.enter({type:"delete",children:[]},e)}},exit:{strikethrough:function(e){this.exit(e)}}},ac={unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"]}],handlers:{delete:sc}};function sc(e,t,r,n){const i=$s(n),o=r.enter("strikethrough");let a=i.move("~~");return a+=ic(e,r,{...i.current(),before:a,after:"~"}),a+=i.move("~~"),o(),a}function cc(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=Us(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 lc(e){return e.length}function uc(e){return null==e?"":String(e)}function hc(e){const t="string"==typeof e?e.codePointAt(0):0;return 67===t||99===t?99:76===t||108===t?108:82===t||114===t?114:0}cc.peek=function(){return"`"};const pc={enter:{table:function(e){const t=e._align;this.enter({type:"table",align:t.map(e=>"none"===e?null:e),children:[]},e),this.setData("inTable",!0)},tableData:dc,tableHeader:dc,tableRow:function(e){this.enter({type:"tableRow",children:[]},e)}},exit:{codeText:function(e){let t=this.resume();this.getData("inTable")&&(t=t.replace(/\\([\\|])/g,mc));const r=this.stack[this.stack.length-1];r.value=t,this.exit(e)},table:function(e){this.exit(e),this.setData("inTable")},tableData:fc,tableHeader:fc,tableRow:fc}};function fc(e){this.exit(e)}function dc(e){this.enter({type:"tableCell",children:[]},e)}function mc(e,t){return"|"===t?t:e}function gc(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,n){return s(function(e,t,r){const n=e.children;let i=-1;const o=[],a=t.enter("table");for(;++i<n.length;)o[i]=c(n[i],t,r);return a(),o}(e,r,n),e.align)},tableRow:function(e,t,r,n){const i=c(e,r,n),o=s([i]);return o.slice(0,o.indexOf("\n"))},tableCell:a,inlineCode:function(e,t,r){let n=cc(e,0,r);r.stack.includes("tableCell")&&(n=n.replace(/\|/g,"\\$&"));return n}}};function a(e,t,r,n){const i=r.enter("tableCell"),a=r.enter("phrasing"),s=ic(e,r,{...n,before:o,after:o});return a(),i(),s}function s(e,t){return function(e,t){const r=t||{},n=(r.align||[]).concat(),i=r.stringLength||lc,o=[],a=[],s=[],c=[];let l=0,u=-1;for(;++u<e.length;){const t=[],n=[];let o=-1;for(e[u].length>l&&(l=e[u].length);++o<e[u].length;){const a=uc(e[u][o]);if(!1!==r.alignDelimiters){const e=i(a);n[o]=e,(void 0===c[o]||e>c[o])&&(c[o]=e)}t.push(a)}a[u]=t,s[u]=n}let h=-1;if("object"==typeof n&&"length"in n)for(;++h<l;)o[h]=hc(n[h]);else{const e=hc(n);for(;++h<l;)o[h]=e}h=-1;const p=[],f=[];for(;++h<l;){const e=o[h];let t="",n="";99===e?(t=":",n=":"):108===e?t=":":114===e&&(n=":");let i=!1===r.alignDelimiters?1:Math.max(1,c[h]-t.length-n.length);const a=t+"-".repeat(i)+n;!1!==r.alignDelimiters&&(i=t.length+i+n.length,i>c[h]&&(c[h]=i),f[h]=i),p[h]=a}a.splice(1,0,p),s.splice(1,0,f),u=-1;const d=[];for(;++u<a.length;){const e=a[u],t=s[u];h=-1;const n=[];for(;++h<l;){const i=e[h]||"";let a="",s="";if(!1!==r.alignDelimiters){const e=c[h]-(t[h]||0),r=o[h];114===r?a=" ".repeat(e):99===r?e%2?(a=" ".repeat(e/2+.5),s=" ".repeat(e/2-.5)):(a=" ".repeat(e/2),s=a):s=" ".repeat(e)}!1===r.delimiterStart||h||n.push("|"),!1===r.padding||!1===r.alignDelimiters&&""===i||!1===r.delimiterStart&&!h||n.push(" "),!1!==r.alignDelimiters&&n.push(a),n.push(i),!1!==r.alignDelimiters&&n.push(s),!1!==r.padding&&n.push(" "),!1===r.delimiterEnd&&h===l-1||n.push("|")}d.push(!1===r.delimiterEnd?n.join("").replace(/ +$/,""):n.join(""))}return d.join("\n")}(e,{align:t,alignDelimiters:n,padding:r,stringLength:i})}function c(e,t,r){const n=e.children;let i=-1;const o=[],s=t.enter("tableRow");for(;++i<n.length;)o[i]=a(n[i],0,t,r);return s(),o}}function Ec(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}function yc(e,t,r,n){const i=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 o=r.bulletCurrent||Ec(r);t&&"list"===t.type&&t.ordered&&(o=("number"==typeof t.start&&t.start>-1?t.start:1)+(!1===r.options.incrementListMarker?0:t.children.indexOf(e))+o);let a=o.length+1;("tab"===i||"mixed"===i&&(t&&"list"===t.type&&t.spread||e.spread))&&(a=4*Math.ceil(a/4));const s=r.createTracker(n);s.move(o+" ".repeat(a-o.length)),s.shift(a);const c=r.enter("listItem"),l=r.indentLines(r.containerFlow(e,s.current()),function(e,t,r){if(t)return(r?"":" ".repeat(a))+e;return(r?o:o+" ".repeat(a-o.length))+e});return c(),l}const Tc={exit:{taskListCheckValueChecked:bc,taskListCheckValueUnchecked:bc,paragraph:function(e){const t=this.stack[this.stack.length-2];if(t&&"listItem"===t.type&&"boolean"==typeof t.checked){const e=this.stack[this.stack.length-1],r=e.children[0];if(r&&"text"===r.type){const n=t.children;let i,o=-1;for(;++o<n.length;){const e=n[o];if("paragraph"===e.type){i=e;break}}i===e&&(r.value=r.value.slice(1),0===r.value.length?e.children.shift():e.position&&r.position&&"number"==typeof r.position.start.offset&&(r.position.start.column++,r.position.start.offset++,e.position.start=Object.assign({},r.position.start)))}}this.exit(e)}}},vc={unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:function(e,t,r,n){const i=e.children[0],o="boolean"==typeof e.checked&&i&&"paragraph"===i.type,a="["+(e.checked?"x":" ")+"] ",s=$s(n);o&&s.move(a);let c=yc(e,t,r,{...n,...s.current()});o&&(c=c.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,function(e){return e+a}));return c}}};function bc(e){this.stack[this.stack.length-2].checked="taskListCheckValueChecked"===e.type}function _c(e={}){const t=this.data();function r(e,r){(t[e]?t[e]:t[e]=[]).push(r)}r("micromarkExtensions",function(e){return Fi([za,{document:{91:{tokenize:es,continuation:{tokenize:ts},exit:rs}},text:{91:{tokenize:Za},93:{add:"after",tokenize:Xa,resolveTo:Ja}}},ns(e),as,hs])}(e)),r("fromMarkdownExtensions",[Os,{enter:{gfmFootnoteDefinition:Vs,gfmFootnoteDefinitionLabelString:Qs,gfmFootnoteCall:Xs,gfmFootnoteCallString:Js},exit:{gfmFootnoteDefinition:Ys,gfmFootnoteDefinitionLabelString:Ws,gfmFootnoteCall:ec,gfmFootnoteCallString:Zs}},oc,pc,Tc]),r("toMarkdownExtensions",function(e){return{extensions:[Ns,{unsafe:[{character:"[",inConstruct:["phrasing","label","reference"]}],handlers:{footnoteDefinition:rc,footnoteReference:tc}},ac,gc(e),vc]}}(e))}var Ac=he(Object.freeze({__proto__:null,default:_c}));function Sc(e){Ss(e,/\r?\n|\r/g,kc)}function kc(){return{type:"break"}}var Cc=he(Object.freeze({__proto__:null,default:function(){return Sc}})),xc={},wc={};function Oc(e,t,r){var n,i,o,a,s,c="";for("string"!=typeof t&&(r=t,t=Oc.defaultChars),void 0===r&&(r=!0),s=function(e){var t,r,n=wc[e];if(n)return n;for(n=wc[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}Oc.defaultChars=";/?:@&=+$,-_.!~*'()#",Oc.componentChars="-_.!~*'()";var Nc=Oc,Pc={};function Rc(e,t){var r;return"string"!=typeof t&&(t=Rc.defaultChars),r=function(e){var t,r,n=Pc[e];if(n)return n;for(n=Pc[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,l="";for(t=0,n=e.length;t<n;t+=3)(i=parseInt(e.slice(t+1,t+3),16))<128?l+=r[i]:192==(224&i)&&t+3<n&&128==(192&(o=parseInt(e.slice(t+4,t+6),16)))?(l+=(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))?(l+=(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?l+="����":(c-=65536,l+=String.fromCharCode(55296+(c>>10),56320+(1023&c))),t+=9):l+="�";return l})}Rc.defaultChars=";/?:@&=+$,#",Rc.componentChars="";var Ic=Rc;function Lc(){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 Dc=/^([a-z0-9.+-]+:)/i,Mc=/:[0-9]*$/,Fc=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,Hc=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),Bc=["'"].concat(Hc),Uc=["%","/","?",";","#"].concat(Bc),jc=["/","?","#"],qc=/^[+a-z0-9A-Z_-]{0,63}$/,zc=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,Gc={javascript:!0,"javascript:":!0},Kc={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};Lc.prototype.parse=function(e,t){var r,n,i,o,a,s=e;if(s=s.trim(),!t&&1===e.split("#").length){var c=Fc.exec(s);if(c)return this.pathname=c[1],c[2]&&(this.search=c[2]),this}var l=Dc.exec(s);if(l&&(i=(l=l[0]).toLowerCase(),this.protocol=l,s=s.substr(l.length)),(t||l||s.match(/^\/\/[^@\/]+@[^@\/]+/))&&(!(a="//"===s.substr(0,2))||l&&Gc[l]||(s=s.substr(2),this.slashes=!0)),!Gc[l]&&(a||l&&!Kc[l])){var u,h,p=-1;for(r=0;r<jc.length;r++)-1!==(o=s.indexOf(jc[r]))&&(-1===p||o<p)&&(p=o);for(-1!==(h=-1===p?s.lastIndexOf("@"):s.lastIndexOf("@",p))&&(u=s.slice(0,h),s=s.slice(h+1),this.auth=u),p=-1,r=0;r<Uc.length;r++)-1!==(o=s.indexOf(Uc[r]))&&(-1===p||o<p)&&(p=o);-1===p&&(p=s.length),":"===s[p-1]&&p--;var f=s.slice(0,p);s=s.slice(p),this.parseHost(f),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(qc)){for(var E="",y=0,T=g.length;y<T;y++)g.charCodeAt(y)>127?E+="x":E+=g[y];if(!E.match(qc)){var v=m.slice(0,r),b=m.slice(r+1),_=g.match(zc);_&&(v.push(_[1]),b.unshift(_[2])),b.length&&(s=b.join(".")+s),this.hostname=v.join(".");break}}}}this.hostname.length>255&&(this.hostname=""),d&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}var A=s.indexOf("#");-1!==A&&(this.hash=s.substr(A),s=s.slice(0,A));var S=s.indexOf("?");return-1!==S&&(this.search=s.substr(S),s=s.slice(0,S)),s&&(this.pathname=s),Kc[i]&&this.hostname&&!this.pathname&&(this.pathname=""),this},Lc.prototype.parseHost=function(e){var t=Mc.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)};var $c=function(e,t){if(e&&e instanceof Lc)return e;var r=new Lc;return r.parse(e,t),r};function Vc(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 Qc(e,t,r,n){const i=Vc(r),o='"'===i?"Quote":"Apostrophe",a=r.enter("image");let s=r.enter("label");const c=r.createTracker(n);let l=c.move("![");return l+=c.move(r.safe(e.alt,{before:l,after:"]",...c.current()})),l+=c.move("]("),s(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(s=r.enter("destinationLiteral"),l+=c.move("<"),l+=c.move(r.safe(e.url,{before:l,after:">",...c.current()})),l+=c.move(">")):(s=r.enter("destinationRaw"),l+=c.move(r.safe(e.url,{before:l,after:e.title?" ":")",...c.current()}))),s(),e.title&&(s=r.enter(`title${o}`),l+=c.move(" "+i),l+=c.move(r.safe(e.title,{before:l,after:i,...c.current()})),l+=c.move(i),s()),l+=c.move(")"),a(),l}xc.encode=Nc,xc.decode=Ic,xc.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||""},xc.parse=$c,Qc.peek=function(){return"!"};var Wc=he(Object.freeze({__proto__:null,image:Qc})),Yc=he(oa);var Xc=he(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 Jc=he(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 Zc=he(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:32,linkReferenceSizeMax:999,listItemValueSizeMax:10,numericBaseDecimal:10,numericBaseHexadecimal:16,tabSize:4,thematicBreakMarkerCountMin:3,v8MaxSafeChunkSize:1e4}})),el=he(Mo),tl=he(Lo),rl=he(wo),nl=he(Zi),il=he(No),ol=he(Ro);const al=function(e,t,r,n){"function"==typeof t&&"function"!=typeof r&&(n=r,r=t,t=null),_s(e,t,function(e,t){const n=t[t.length-1];return r(e,n?n.children.indexOf(e):null,n)},n)};var sl=he(Object.freeze({__proto__:null,CONTINUE:Ts,EXIT:vs,SKIP:bs,visit:al}));function cl(e,t,r,n){const i=r.enter("paragraph"),o=r.enter("phrasing"),a=r.containerPhrasing(e,n);return o(),i(),a}var ll=he(Object.freeze({__proto__:null,paragraph:cl}));function ul(e,t){let r=!1;return al(e,e=>{if("value"in e&&/\r?\n|\r/.test(e.value)||"break"===e.type)return r=!0,vs}),Boolean((!e.depth||e.depth<3)&&Pi(e)&&(t.options.setext||r))}function hl(e,t,r,n){const i=Math.max(Math.min(6,e.depth||1),1),o=r.createTracker(n);if(ul(e,r)){const t=r.enter("headingSetext"),n=r.enter("phrasing"),a=r.containerPhrasing(e,{...o.current(),before:"\n",after:"\n"});return n(),t(),a+"\n"+(1===i?"=":"-").repeat(a.length-(Math.max(a.lastIndexOf("\r"),a.lastIndexOf("\n"))+1))}const a="#".repeat(i),s=r.enter("headingAtx"),c=r.enter("phrasing");o.move(a+" ");let l=r.containerPhrasing(e,{before:"# ",after:"\n",...o.current()});return/^[\t ]/.test(l)&&(l="&#x"+l.charCodeAt(0).toString(16).toUpperCase()+";"+l.slice(1)),l=l?a+" "+l:a,r.options.closeAtx&&(l+=" "+a),c(),s(),l}var pl=he(Object.freeze({__proto__:null,heading:hl})),fl=he(to);function dl(e,t,r,n){const i=r.enter("blockquote"),o=r.createTracker(n);o.move("> "),o.shift(2);const a=r.indentLines(r.containerFlow(e,o.current()),ml);return i(),a}function ml(e,t,r){return">"+(r?"":" ")+e}var gl,El=he(Object.freeze({__proto__:null,blockquote:dl})),yl={exports:{}};gl=yl,function(){var e;function t(e){for(var t,r,n,i,o=1,a=[].slice.call(arguments),s=0,c=e.length,l="",u=!1,h=!1,p=function(){return a[o++]},f=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],u)switch(u=!1,"."==t?(h=!1,t=e[++s]):"0"==t&&"."==e[s+1]?(h=!0,t=e[s+=2]):h=!0,i=f(),t){case"b":l+=parseInt(p(),10).toString(2);break;case"c":l+="string"==typeof(r=p())||r instanceof String?r:String.fromCharCode(parseInt(r,10));break;case"d":l+=parseInt(p(),10);break;case"f":n=String(parseFloat(p()).toFixed(i||6)),l+=h?n:n.replace(/^0/,"");break;case"j":l+=JSON.stringify(p());break;case"o":l+="0"+parseInt(p(),10).toString(8);break;case"s":l+=p();break;case"x":l+="0x"+parseInt(p(),10).toString(16);break;case"X":l+="0x"+parseInt(p(),10).toString(16).toUpperCase();break;default:l+=t}else"%"===t?u=!0:l+=t;return l}(e=gl.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 Tl=yl.exports;const vl=Object.assign(bl(Error),{eval:bl(EvalError),range:bl(RangeError),reference:bl(ReferenceError),syntax:bl(SyntaxError),type:bl(TypeError),uri:bl(URIError)});function bl(e){return t.displayName=e.displayName||e.name,t;function t(t,...r){const n=t?Tl(t,...r):t;return new e(n)}}const _l={}.hasOwnProperty,Al={yaml:"-",toml:"+"};function Sl(e){const t=[];let r=-1;const n=Array.isArray(e)?e:e?[e]:["yaml"];for(;++r<n.length;)t[r]=kl(n[r]);return t}function kl(e){let t=e;if("string"==typeof t){if(!_l.call(Al,t))throw vl("Missing matter definition for `%s`",t);t={type:t,marker:Al[t]}}else if("object"!=typeof t)throw vl("Expected matter to be an object, not `%j`",t);if(!_l.call(t,"type"))throw vl("Missing `type` in matter `%j`",t);if(!_l.call(t,"fence")&&!_l.call(t,"marker"))throw vl("Missing `marker` or `fence` in matter `%j`",t);return t}function Cl(e){const t=e.anywhere,r=e.type,n=r+"Fence",i=n+"Sequence",o=r+"Value",a={tokenize:function(e,t,r){let o=0;return function(t){if(t===s.charCodeAt(o))return e.enter(n),e.enter(i),a(t);return r(t)};function a(t){return o===s.length?(e.exit(i),Wi(t)?(e.enter("whitespace"),c(t)):l(t)):t===s.charCodeAt(o++)?(e.consume(t),a):r(t)}function c(t){return Wi(t)?(e.consume(t),c):(e.exit("whitespace"),l(t))}function l(i){return null===i||Vi(i)?(e.exit(n),t(i)):r(i)}},partial:!0};let s,c=0;return{tokenize:function(l,u,h){const p=this;return function(o){const a=p.now();if(1===a.column&&(1===a.line||t)&&(s=xl(e,"open"),c=0,o===s.charCodeAt(c)))return l.enter(r),l.enter(n),l.enter(i),f(o);return h(o)};function f(e){return c===s.length?(l.exit(i),Wi(e)?(l.enter("whitespace"),d(e)):m(e)):e===s.charCodeAt(c++)?(l.consume(e),f):h(e)}function d(e){return Wi(e)?(l.consume(e),d):(l.exit("whitespace"),m(e))}function m(t){return Vi(t)?(l.exit(n),l.enter("lineEnding"),l.consume(t),l.exit("lineEnding"),s=xl(e,"close"),c=0,l.attempt(a,T,g)):h(t)}function g(e){return null===e||Vi(e)?y(e):(l.enter(o),E(e))}function E(e){return null===e||Vi(e)?(l.exit(o),y(e)):(l.consume(e),E)}function y(e){return null===e?h(e):(l.enter("lineEnding"),l.consume(e),l.exit("lineEnding"),l.attempt(a,T,g))}function T(e){return l.exit(r),u(e)}},concrete:!0}}function xl(e,t){return e.marker?wl(e.marker,t).repeat(3):wl(e.fence,t)}function wl(e,t){return"string"==typeof e?e:e[t]}function Ol(e){return function(t){this.enter({type:e.type,value:""},t),this.buffer()}}function Nl(e){const t=this.resume();this.exit(e).value=t.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,"")}function Pl(e){this.config.enter.data.call(this,e),this.config.exit.data.call(this,e)}function Rl(e){const t=Il(e,"open"),r=Il(e,"close");return function(e){return t+(e.value?"\n"+e.value:"")+"\n"+r}}function Il(e,t){return e.marker?Ll(e.marker,t).repeat(3):Ll(e.fence,t)}function Ll(e,t){return"string"==typeof e?e:e[t]}var Dl=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=Sl(e),r={};let n=-1;for(;++n<t.length;){const e=t[n],i=xl(e,"open").charCodeAt(0),o=Cl(e),a=r[i];Array.isArray(a)?a.push(o):r[i]=[o]}return{flow:r}}(e)),r("fromMarkdownExtensions",function(e){const t=Sl(e),r={},n={};let i=-1;for(;++i<t.length;){const e=t[i];r[e.type]=Ol(e),n[e.type]=Nl,n[e.type+"Value"]=Pl}return{enter:r,exit:n}}(e)),r("toMarkdownExtensions",function(e){const t=[],r={},n=Sl(e);let i=-1;for(;++i<n.length;){const e=n[i];r[e.type]=Rl(e),t.push({atBreak:!0,character:Il(e,"open").charAt(0)})}return{unsafe:t,handlers:r}}(e))}}),Ml=he(Dl);function Fl(e,t,r,n,i,o,a,s,c,l,u,h,p,f,d){let m,g;return function(t){return e.enter(n),e.enter(i),e.consume(t),e.exit(i),E};function E(t){return 35===t?(m=a,y(t)):46===t?(m=s,y(t)):58===t||95===t||Ui(t)?(e.enter(o),e.enter(c),e.consume(t),b):d&&Wi(t)?eo(e,E,"whitespace")(t):!d&&Qi(t)?Io(e,E)(t):O(t)}function y(t){const r=m+"Marker";return e.enter(o),e.enter(m),e.enter(r),e.consume(t),e.exit(r),T}function T(t){if(null===t||34===t||35===t||39===t||46===t||60===t||61===t||62===t||96===t||125===t||Qi(t))return r(t);const n=m+"Value";return e.enter(n),e.consume(t),v}function v(t){if(null===t||34===t||39===t||60===t||61===t||62===t||96===t)return r(t);if(35===t||46===t||125===t||Qi(t)){const r=m+"Value";return e.exit(r),e.exit(m),e.exit(o),E(t)}return e.consume(t),v}function b(t){return 45===t||46===t||58===t||95===t||ji(t)?(e.consume(t),b):(e.exit(c),d&&Wi(t)?eo(e,_,"whitespace")(t):!d&&Qi(t)?Io(e,_)(t):_(t))}function _(t){return 61===t?(e.enter(l),e.consume(t),e.exit(l),A):(e.exit(o),E(t))}function A(t){return null===t||60===t||61===t||62===t||96===t||125===t||d&&Vi(t)?r(t):34===t||39===t?(e.enter(u),e.enter(p),e.consume(t),e.exit(p),g=t,k):d&&Wi(t)?eo(e,A,"whitespace")(t):!d&&Qi(t)?Io(e,A)(t):(e.enter(h),e.enter(f),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(f),e.exit(h),e.exit(o),E(t)):(e.consume(t),S)}function k(t){return t===g?(e.enter(p),e.consume(t),e.exit(p),e.exit(u),e.exit(o),w):(e.enter(h),C(t))}function C(t){return t===g?(e.exit(h),k(t)):null===t?r(t):Vi(t)?d?r(t):Io(e,C)(t):(e.enter(f),e.consume(t),x)}function x(t){return t===g||null===t||Vi(t)?(e.exit(f),C(t)):(e.consume(t),x)}function w(e){return 125===e||Qi(e)?E(e):O(e)}function O(o){return 125===o?(e.enter(i),e.consume(o),e.exit(i),e.exit(n),t):r(o)}}function Hl(e,t,r,n,i,o,a){let s,c=0,l=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),h(r))}function h(t){if(93===t&&!l)return d(t);const r=e.enter("chunkText",{contentType:"text",previous:s});return s&&(s.next=r),s=r,p(t)}function p(t){return null===t||c>999||91===t&&++l>32?r(t):93!==t||l--?Vi(t)?a?r(t):(e.consume(t),e.exit("chunkText"),h):(e.consume(t),92===t?f:p):(e.exit("chunkText"),d(t))}function f(t){return 91===t||92===t||93===t?(e.consume(t),c++,p):p(t)}function d(r){return e.exit(o),e.enter(i),e.consume(r),e.exit(i),e.exit(n),t}}function Bl(e,t,r,n){const i=this;return function(t){if(Ui(t))return e.enter(n),e.consume(t),o;return r(t)};function o(a){return 45===a||95===a||ji(a)?(e.consume(a),o):(e.exit(n),45===i.previous||95===i.previous?r(a):t(a))}}const Ul={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"),Bl.call(n,e,l,r,"directiveContainerName")(t))}function l(t){return 91===t?e.attempt(jl,u,u)(t):u(t)}function u(t){return 123===t?e.attempt(ql,h,h)(t):h(t)}function h(t){return eo(e,p,"whitespace")(t)}function p(i){return e.exit("directiveContainerFence"),null===i?f(i):Vi(i)?n.interrupt?t(i):e.attempt(zl,d,f)(i):r(i)}function f(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?v(t):e.attempt({tokenize:b,partial:!0},v,o?eo(e,g,"linePrefix",o+1):g)(t)}function g(t){if(null===t)return v(t);const r=e.enter("chunkDocument",{contentType:"document",previous:a});return a&&(a.next=r),a=r,E(t)}function E(t){if(null===t){const r=e.exit("chunkDocument");return n.parser.lazy[r.start.line]=!1,v(t)}return Vi(t)?e.check(zl,y,T)(t):(e.consume(t),E)}function y(t){e.consume(t);const r=e.exit("chunkDocument");return n.parser.lazy[r.start.line]=!1,m}function T(t){const r=e.exit("chunkDocument");return n.parser.lazy[r.start.line]=!1,v(t)}function v(r){return e.exit("directiveContainerContent"),e.exit("directiveContainer"),t(r)}function b(e,t,r){let n=0;return eo(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"),eo(e,o,"whitespace")(t))}function o(n){return null===n||Vi(n)?(e.exit("directiveContainerFence"),t(n)):r(n)}}},concrete:!0},jl={tokenize:function(e,t,r){return Hl(e,t,r,"directiveContainerLabel","directiveContainerLabelMarker","directiveContainerLabelString",!0)},partial:!0},ql={tokenize:function(e,t,r){return Fl(e,t,r,"directiveContainerAttributes","directiveContainerAttributesMarker","directiveContainerAttribute","directiveContainerAttributeId","directiveContainerAttributeClass","directiveContainerAttributeName","directiveContainerAttributeInitializerMarker","directiveContainerAttributeValueLiteral","directiveContainerAttributeValue","directiveContainerAttributeValueMarker","directiveContainerAttributeValueData",!0)},partial:!0},zl={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 Gl={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"),Bl.call(n,e,o,r,"directiveLeafName")):r(t)}function o(t){return 91===t?e.attempt(Kl,a,a)(t):a(t)}function a(t){return 123===t?e.attempt($l,s,s)(t):s(t)}function s(t){return eo(e,c,"whitespace")(t)}function c(n){return null===n||Vi(n)?(e.exit("directiveLeaf"),t(n)):r(n)}}},Kl={tokenize:function(e,t,r){return Hl(e,t,r,"directiveLeafLabel","directiveLeafLabelMarker","directiveLeafLabelString",!0)},partial:!0},$l={tokenize:function(e,t,r){return Fl(e,t,r,"directiveLeafAttributes","directiveLeafAttributesMarker","directiveLeafAttribute","directiveLeafAttributeId","directiveLeafAttributeClass","directiveLeafAttributeName","directiveLeafAttributeInitializerMarker","directiveLeafAttributeValueLiteral","directiveLeafAttributeValue","directiveLeafAttributeValueMarker","directiveLeafAttributeValueData",!0)},partial:!0};const Vl={tokenize:function(e,t,r){const n=this;return function(t){return e.enter("directiveText"),e.enter("directiveTextMarker"),e.consume(t),e.exit("directiveTextMarker"),Bl.call(n,e,i,r,"directiveTextName")};function i(t){return 58===t?r(t):91===t?e.attempt(Ql,o,o)(t):o(t)}function o(t){return 123===t?e.attempt(Wl,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}},Ql={tokenize:function(e,t,r){return Hl(e,t,r,"directiveTextLabel","directiveTextLabelMarker","directiveTextLabelString")},partial:!0},Wl={tokenize:function(e,t,r){return Fl(e,t,r,"directiveTextAttributes","directiveTextAttributesMarker","directiveTextAttribute","directiveTextAttributeId","directiveTextAttributeClass","directiveTextAttributeName","directiveTextAttributeInitializerMarker","directiveTextAttributeValueLiteral","directiveTextAttributeValue","directiveTextAttributeValueMarker","directiveTextAttributeValueData")},partial:!0};const Yl=["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"],Xl={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 Jl(e){const t="string"==typeof e?e.charCodeAt(0):e;return t>=48&&t<=57}function Zl(e){const t="string"==typeof e?e.charCodeAt(0):e;return t>=97&&t<=102||t>=65&&t<=70||t>=48&&t<=57}function eu(e){return function(e){const t="string"==typeof e?e.charCodeAt(0):e;return t>=97&&t<=122||t>=65&&t<=90}(e)||Jl(e)}const tu=["","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 ru(e,t){const r=t||{},n="string"==typeof r.additional?r.additional.charCodeAt(0):r.additional,i=[];let o,a,s=0,c=-1,l="";r.position&&("start"in r.position||"indent"in r.position?(a=r.position.indent,o=r.position.start):o=r.position);let u,h=(o?o.line:0)||1,p=(o?o.column:0)||1,f=d();for(s--;++s<=e.length;)if(10===u&&(p=(a?a[c]:0)||1),u=e.charCodeAt(s),38===u){const t=e.charCodeAt(s+1);if(9===t||10===t||12===t||32===t||38===t||60===t||Number.isNaN(t)||n&&t===n){l+=String.fromCharCode(u),p++;continue}const o=s+1;let a,c=o,h=o;if(35===t){h=++c;const t=e.charCodeAt(h);88===t||120===t?(a="hexadecimal",h=++c):a="decimal"}else a="named";let E="",y="",T="";const v="named"===a?eu:"decimal"===a?Jl:Zl;for(h--;++h<=e.length;){const t=e.charCodeAt(h);if(!v(t))break;T+=String.fromCharCode(t),"named"===a&&Yl.includes(T)&&(E=T,y=go(T))}let b=59===e.charCodeAt(h);if(b){h++;const e="named"===a&&go(T);e&&(E=T,y=e)}let _=1+h-o,A="";if(b||!1!==r.nonTerminated)if(T)if("named"===a){if(b&&!y)m(5,1);else if(E!==T&&(h=c+E.length,_=1+h-c,b=!1),!b){const t=E?1:3;if(r.attribute){const r=e.charCodeAt(h);61===r?(m(t,_),y=""):eu(r)?y="":m(t,_)}else m(t,_)}A=y}else{b||m(2,_);let e=Number.parseInt(T,"hexadecimal"===a?16:10);if(nu(e))m(7,_),A=String.fromCharCode(65533);else if(e in Xl)m(6,_),A=Xl[e];else{let t="";iu(e)&&m(6,_),e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10|55296),e=56320|1023&e),A=t+String.fromCharCode(e)}}else"named"!==a&&m(4,_);else;if(A){g(),f=d(),s=h-1,p+=h-o+1,i.push(A);const t=d();t.offset++,r.reference&&r.reference.call(r.referenceContext||void 0,A,{start:f,end:t},e.slice(o-1,h)),f=t}else T=e.slice(o-1,h),l+=T,p+=T.length,s=h-1}else 10===u&&(h++,c++,p=0),Number.isNaN(u)?g():(l+=String.fromCharCode(u),p++);return i.join("");function d(){return{line:h,column:p,offset:s+((o?o.offset:0)||0)}}function m(e,t){let n;r.warning&&(n=d(),n.column+=t,n.offset+=t,r.warning.call(r.warningContext||void 0,tu[e],n,e))}function g(){l&&(i.push(l),r.text&&r.text.call(r.textContext||void 0,l,{start:f,end:d()}),l="")}}function nu(e){return e>=55296&&e<=57343||e>1114111}function iu(e){return e>=1&&e<=8||11===e||e>=13&&e<=31||e>=127&&e<=159||e>=64976&&e<=65007||!(65535&~e)||65534==(65535&e)}const ou=/["&'<>`]/g,au=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,su=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,cu=/[|\\{}()[\]^$+*?.]/g,lu=new WeakMap;function uu(e,t){return e=e.replace(t.subset?function(e){let t=lu.get(e);t||(t=function(e){const t=[];let r=-1;for(;++r<e.length;)t.push(e[r].replace(cu,"\\$&"));return new RegExp("(?:"+t.join("|")+")","g")}(e),lu.set(e,t));return t}(t.subset):ou,r),t.subset||t.escapeOnly?e:e.replace(au,function(e,r,n){return t.format(1024*(e.charCodeAt(0)-55296)+e.charCodeAt(1)-56320+65536,n.charCodeAt(r+2),t)}).replace(su,r);function r(e,r,n){return t.format(e.charCodeAt(0),n.charCodeAt(r+1),t)}}function hu(e){return"&#x"+e.toString(16).toUpperCase()+";"}const pu={}.hasOwnProperty,fu=/^[^\t\n\r "#'.<=>`}]+$/;ku.peek=function(){return":"};const du={canContainEols:["textDirective"],enter:{directiveContainer:function(e){gu.call(this,"containerDirective",e)},directiveContainerAttributes:yu,directiveContainerLabel:function(e){this.enter({type:"paragraph",data:{directiveLabel:!0},children:[]},e)},directiveLeaf:function(e){gu.call(this,"leafDirective",e)},directiveLeafAttributes:yu,directiveText:function(e){gu.call(this,"textDirective",e)},directiveTextAttributes:yu},exit:{directiveContainer:Su,directiveContainerAttributeClassValue:vu,directiveContainerAttributeIdValue:Tu,directiveContainerAttributeName:_u,directiveContainerAttributeValue:bu,directiveContainerAttributes:Au,directiveContainerLabel:function(e){this.exit(e)},directiveContainerName:Eu,directiveLeaf:Su,directiveLeafAttributeClassValue:vu,directiveLeafAttributeIdValue:Tu,directiveLeafAttributeName:_u,directiveLeafAttributeValue:bu,directiveLeafAttributes:Au,directiveLeafName:Eu,directiveText:Su,directiveTextAttributeClassValue:vu,directiveTextAttributeIdValue:Tu,directiveTextAttributeName:_u,directiveTextAttributeValue:bu,directiveTextAttributes:Au,directiveTextName:Eu}},mu={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:ku,leafDirective:ku,textDirective:ku}};function gu(e,t){this.enter({type:e,name:"",attributes:{},children:[]},t)}function Eu(e){this.stack[this.stack.length-1].name=this.sliceSerialize(e)}function yu(){this.setData("directiveAttributes",[]),this.buffer()}function Tu(e){this.getData("directiveAttributes").push(["id",ru(this.sliceSerialize(e),{attribute:!0})])}function vu(e){this.getData("directiveAttributes").push(["class",ru(this.sliceSerialize(e),{attribute:!0})])}function bu(e){const t=this.getData("directiveAttributes");t[t.length-1][1]=ru(this.sliceSerialize(e),{attribute:!0})}function _u(e){this.getData("directiveAttributes").push([this.sliceSerialize(e),""])}function Au(){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 Su(e){this.exit(e)}function ku(e,t,r,n){const i=$s(n),o=function(e){let t=0;"containerDirective"===e.type?(_s(e,function(e,r){if("containerDirective"===e.type){let e=r.length,n=0;for(;e--;)"containerDirective"===r[e].type&&n++;n>t&&(t=n)}}),t+=3):t="leafDirective"===e.type?2:1;return":".repeat(t)}(e),a=r.enter(e.type);let s,c=i.move(o+(e.name||""));if("containerDirective"===e.type){const t=(e.children||[])[0];s=Cu(t)?t:void 0}else s=e;if(s&&s.children&&s.children.length>0){const t=r.enter("label"),n=`${e.type}Label`,o=r.enter(n);c+=i.move("["),c+=i.move(ic(s,r,{...i.current(),before:c,after:"]"})),c+=i.move("]"),o(),t()}if(c+=i.move(function(e,t){const r=Vc(t),n="textDirective"===e.type?[r]:[r,"\n","\r"],i=e.attributes||{},o=[];let a,s,c,l;for(l in i)if(pu.call(i,l)&&void 0!==i[l]&&null!==i[l]){const e=String(i[l]);if("id"===l)c=fu.test(e)?"#"+e:u("id",e);else if("class"===l){const t=e.split(/[\t\n\r ]+/g),r=[],n=[];let i=-1;for(;++i<t.length;)(fu.test(t[i])?n:r).push(t[i]);a=r.length>0?u("class",r.join(" ")):"",s=n.length>0?"."+n.join("."):""}else o.push(u(l,e))}a&&o.unshift(a);s&&o.unshift(s);c&&o.unshift(c);return o.length>0?"{"+o.join(" ")+"}":"";function u(e,t){return e+(t?"="+r+function(e,t){return uu(e,Object.assign({format:hu},t))}(t,{subset:n})+r:"")}}(e,r)),"containerDirective"===e.type){let t=e;Cu((e.children||[])[0])&&(t=Object.assign({},e,{children:e.children.slice(1)})),t&&t.children&&t.children.length>0&&(c+=i.move("\n"),c+=i.move(Ms(t,r,i.current()))),c+=i.move("\n"+o)}return a(),c}function Cu(e){return Boolean(e&&"paragraph"===e.type&&e.data&&e.data.directiveLabel)}var xu=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:Vl},flow:{58:[Ul,Gl]}}),t("fromMarkdownExtensions",du),t("toMarkdownExtensions",mu)}}),wu=he(xu);const Ou={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};function Nu(){const e=this.data();function t(t,r){(e[t]||(e[t]=[])).push(r)}return t("micromarkExtensions",function(){const e={text:{[Ou.leftCurlyBrace]:{name:"headingIdMaybeStart",tokenize:(e,t,r)=>function(n){return e.attempt({tokenize(e,t,r){return function(t){if(t!==Ou.leftCurlyBrace)throw new Error(`Unexpected code ${t}`);return e.enter("id"),e.enter("idMarker"),e.consume(t),n};function n(t){return t!==Ou.numberSign?r(t):(e.consume(t),e.exit("idMarker"),e.enter("idString"),e.enter("chunkString",{contentType:"string"}),i)}function i(n){return[Ou.carriageReturn,Ou.lineFeed,Ou.carriageReturnLineFeed,null,Ou.backslash,Ou.leftCurlyBrace].includes(n)?r(n):n===Ou.rightCurlyBrace?(e.exit("chunkString"),e.exit("idString"),e.enter("idMarker"),e.consume(n),e.exit("idMarker"),e.exit("id"),t):(e.consume(n),i)}}},t,r)(n)}}}};return e}()),t("fromMarkdownExtensions",function(){const e={enter:{idString(e){this.enter({type:"idString",value:null},e),this.buffer()}},exit:{idString(e){const t=this.resume(),r=this.stack.length>=1?this.stack[this.stack.length-1]:void 0;this.exit(e),r&&("idString"===r.type?r.value=t:console.error(r))}}};return e}()),function(e){al(e,"idString",(e,t,r)=>{if(!r)throw new Error("Unexpected idString under no parent.");if("heading"!==r.type)throw new Error(`Unexpected node ${e} under ${r}`)}),al(e,"heading",e=>{const t=e.children,r=t.filter(e=>"idString"===e.type);if(0==r.length)return;if(r.length>1)throw new Error(`Found ${r.length} ids under heading ${e}.`);const n=r[0];if(n.value&&n.value.length>0){e.data||(e.data={}),e.data.hProperties||(e.data.hProperties={}),e.data.id=e.data.hProperties.id=n.value,n.value="";const r=t.indexOf(n);if(r>=1){const e=t[r-1];"text"===e.type&&(e.value=e.value.trimEnd())}t.splice(r,1)}})}}var Pu=he(Object.freeze({__proto__:null,remarkHeadingId:Nu,default:Nu})),Ru=he(ys),Iu={exports:{}},Lu=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)}},Du=Lu,Mu=Object.prototype.toString;function Fu(e){return Array.isArray(e)}function Hu(e){return void 0===e}function Bu(e){return"[object ArrayBuffer]"===Mu.call(e)}function Uu(e){return null!==e&&"object"==typeof e}function ju(e){if("[object Object]"!==Mu.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function qu(e){return"[object Function]"===Mu.call(e)}function zu(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),Fu(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:Fu,isArrayBuffer:Bu,isBuffer:function(e){return null!==e&&!Hu(e)&&null!==e.constructor&&!Hu(e.constructor)&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)},isFormData:function(e){return"[object FormData]"===Mu.call(e)},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&Bu(e.buffer)},isString:function(e){return"string"==typeof e},isNumber:function(e){return"number"==typeof e},isObject:Uu,isPlainObject:ju,isUndefined:Hu,isDate:function(e){return"[object Date]"===Mu.call(e)},isFile:function(e){return"[object File]"===Mu.call(e)},isBlob:function(e){return"[object Blob]"===Mu.call(e)},isFunction:qu,isStream:function(e){return Uu(e)&&qu(e.pipe)},isURLSearchParams:function(e){return"[object URLSearchParams]"===Mu.call(e)},isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!=typeof window&&"undefined"!=typeof document)},forEach:zu,merge:function e(){var t={};function r(r,n){ju(t[n])&&ju(r)?t[n]=e(t[n],r):ju(r)?t[n]=e({},r):Fu(r)?t[n]=r.slice():t[n]=r}for(var n=0,i=arguments.length;n<i;n++)zu(arguments[n],r);return t},extend:function(e,t,r){return zu(t,function(t,n){e[n]=r&&"function"==typeof t?Du(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}},Ku=Gu;function $u(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var Vu=function(e,t,r){if(!t)return e;var n;if(r)n=r(t);else if(Ku.isURLSearchParams(t))n=t.toString();else{var i=[];Ku.forEach(t,function(e,t){null!=e&&(Ku.isArray(e)?t+="[]":e=[e],Ku.forEach(e,function(e){Ku.isDate(e)?e=e.toISOString():Ku.isObject(e)&&(e=JSON.stringify(e)),i.push($u(t)+"="+$u(e))}))}),n=i.join("&")}if(n){var o=e.indexOf("#");-1!==o&&(e=e.slice(0,o)),e+=(-1===e.indexOf("?")?"?":"&")+n}return e},Qu=Gu;function Wu(){this.handlers=[]}Wu.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},Wu.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},Wu.prototype.forEach=function(e){Qu.forEach(this.handlers,function(t){null!==t&&e(t)})};var Yu=Wu,Xu=Gu,Ju=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},Zu={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},eh=Ju,th=function(e,t,r,n,i){var o=new Error(e);return eh(o,t,r,n,i)},rh=th,nh=function(e,t,r){var n=r.config.validateStatus;r.status&&n&&!n(r.status)?t(rh("Request failed with status code "+r.status,r.config,null,r.request,r)):e(r)},ih=Gu,oh=ih.isStandardBrowserEnv()?{write:function(e,t,r,n,i,o){var a=[];a.push(e+"="+encodeURIComponent(t)),ih.isNumber(r)&&a.push("expires="+new Date(r).toGMTString()),ih.isString(n)&&a.push("path="+n),ih.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(){}},ah=function(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)},sh=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e},ch=function(e,t){return e&&!ah(t)?sh(e,t):t},lh=Gu,uh=["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"],hh=Gu,ph=hh.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=hh.isString(t)?n(t):t;return r.protocol===e.protocol&&r.host===e.host}}():function(){return!0};function fh(e){this.message=e}fh.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},fh.prototype.__CANCEL__=!0;var dh,mh,gh,Eh,yh=fh,Th=Gu,vh=nh,bh=oh,_h=Vu,Ah=ch,Sh=function(e){var t,r,n,i={};return e?(lh.forEach(e.split("\n"),function(e){if(n=e.indexOf(":"),t=lh.trim(e.substr(0,n)).toLowerCase(),r=lh.trim(e.substr(n+1)),t){if(i[t]&&uh.indexOf(t)>=0)return;i[t]="set-cookie"===t?(i[t]?i[t]:[]).concat([r]):i[t]?i[t]+", "+r:r}}),i):i},kh=ph,Ch=th,xh=Zu,wh=yh,Oh=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)}Th.isFormData(i)&&delete o["Content-Type"];var c=new XMLHttpRequest;if(e.auth){var l=e.auth.username||"",u=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";o.Authorization="Basic "+btoa(l+":"+u)}var h=Ah(e.baseURL,e.url);function p(){if(c){var n="getAllResponseHeaders"in c?Sh(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};vh(function(e){t(e),s()},function(e){r(e),s()},i),c=null}}if(c.open(e.method.toUpperCase(),_h(h,e.params,e.paramsSerializer),!0),c.timeout=e.timeout,"onloadend"in c?c.onloadend=p:c.onreadystatechange=function(){c&&4===c.readyState&&(0!==c.status||c.responseURL&&0===c.responseURL.indexOf("file:"))&&setTimeout(p)},c.onabort=function(){c&&(r(Ch("Request aborted",e,"ECONNABORTED",c)),c=null)},c.onerror=function(){r(Ch("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||xh;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),r(Ch(t,e,n.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",c)),c=null},Th.isStandardBrowserEnv()){var f=(e.withCredentials||kh(h))&&e.xsrfCookieName?bh.read(e.xsrfCookieName):void 0;f&&(o[e.xsrfHeaderName]=f)}"setRequestHeader"in c&&Th.forEach(o,function(e,t){void 0===i&&"content-type"===t.toLowerCase()?delete o[t]:c.setRequestHeader(t,e)}),Th.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 wh("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)})},Nh={exports:{}},Ph=U.default,Rh=Ph.URL,Ih=q.default,Lh=z.default,Dh=G.default.Writable,Mh=j.default,Fh=function(){if(!dh){try{dh=require("debug")("follow-redirects")}catch(e){}"function"!=typeof dh&&(dh=function(){})}dh.apply(null,arguments)};mh="undefined"!=typeof process,gh="undefined"!=typeof window&&"undefined"!=typeof document,Eh=ip(Error.captureStackTrace),mh||!gh&&Eh||console.warn("The follow-redirects package should be excluded from browser builds.");var Hh=!1;try{Mh(new Rh(""))}catch(e){Hh="ERR_INVALID_URL"===e.code}var Bh=["auth","host","hostname","href","path","pathname","port","protocol","query","search","hash"],Uh=["abort","aborted","connect","error","socket","timeout"],jh=Object.create(null);Uh.forEach(function(e){jh[e]=function(t,r,n){this._redirectable.emit(e,t,r,n)}});var qh=tp("ERR_INVALID_URL","Invalid URL",TypeError),zh=tp("ERR_FR_REDIRECTION_FAILURE","Redirected request failed"),Gh=tp("ERR_FR_TOO_MANY_REDIRECTS","Maximum number of redirects exceeded",zh),Kh=tp("ERR_FR_MAX_BODY_LENGTH_EXCEEDED","Request body larger than maxBodyLength limit"),$h=tp("ERR_STREAM_WRITE_AFTER_END","write after end"),Vh=Dh.prototype.destroy||Yh;function Qh(e,t){Dh.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){try{r._processResponse(e)}catch(e){r.emit("error",e instanceof zh?e:new zh({cause:e}))}},this._performRequest()}function Wh(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){return!function(e){return Rh&&e instanceof Rh}(e)?np(e)?e=Zh(Xh(e)):(o=n,n=Jh(e),e={protocol:i}):e=Zh(e),ip(n)&&(o=n,n=null),(n=Object.assign({maxRedirects:t.maxRedirects,maxBodyLength:t.maxBodyLength},e,n)).nativeProtocols=r,np(n.host)||np(n.hostname)||(n.hostname="::1"),Mh.equal(n.protocol,i,"protocol mismatch"),Fh("options",n),new Qh(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 Yh(){}function Xh(e){var t;if(Hh)t=new Rh(e);else if(!np((t=Jh(Ph.parse(e))).protocol))throw new qh({input:e});return t}function Jh(e){if(/^\[/.test(e.hostname)&&!/^\[[:0-9a-f]+\]$/i.test(e.hostname))throw new qh({input:e.href||e});if(/^\[/.test(e.host)&&!/^\[[:0-9a-f]+\](:\d+)?$/i.test(e.host))throw new qh({input:e.href||e});return e}function Zh(e,t){var r=t||{};for(var n of Bh)r[n]=e[n];return r.hostname.startsWith("[")&&(r.hostname=r.hostname.slice(1,-1)),""!==r.port&&(r.port=Number(r.port)),r.path=r.search?r.pathname+r.search:r.pathname,r}function ep(e,t){var r;for(var n in t)e.test(n)&&(r=t[n],delete t[n]);return null==r?void 0:String(r).trim()}function tp(e,t,r){function n(r){ip(Error.captureStackTrace)&&Error.captureStackTrace(this,this.constructor),Object.assign(this,r||{}),this.code=e,this.message=this.cause?t+": "+this.cause.message:t}return n.prototype=new(r||Error),Object.defineProperties(n.prototype,{constructor:{value:n,enumerable:!1},name:{value:"Error ["+e+"]",enumerable:!1}}),n}function rp(e,t){for(var r of Uh)e.removeListener(r,jh[r]);e.on("error",Yh),e.destroy(t)}function np(e){return"string"==typeof e||e instanceof String}function ip(e){return"function"==typeof e}Qh.prototype=Object.create(Dh.prototype),Qh.prototype.abort=function(){rp(this._currentRequest),this._currentRequest.abort(),this.emit("abort")},Qh.prototype.destroy=function(e){return rp(this._currentRequest,e),Vh.call(this,e),this},Qh.prototype.write=function(e,t,r){if(this._ending)throw new $h;if(!np(e)&&!function(e){return"object"==typeof e&&"length"in e}(e))throw new TypeError("data should be a string, Buffer or Uint8Array");ip(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 Kh),this.abort()):r&&r()},Qh.prototype.end=function(e,t,r){if(ip(e)?(r=e,e=t=null):ip(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)},Qh.prototype.setHeader=function(e,t){this._options.headers[e]=t,this._currentRequest.setHeader(e,t)},Qh.prototype.removeHeader=function(e){delete this._options.headers[e],this._currentRequest.removeHeader(e)},Qh.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),r.removeListener("close",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.on("close",o),this},["flushHeaders","getHeader","setNoDelay","setSocketKeepAlive"].forEach(function(e){Qh.prototype[e]=function(t,r){return this._currentRequest[e](t,r)}}),["aborted","connection","socket"].forEach(function(e){Object.defineProperty(Qh.prototype,e,{get:function(){return this._currentRequest[e]}})}),Qh.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))}},Qh.prototype._performRequest=function(){var e=this._options.protocol,t=this._options.nativeProtocols[e];if(!t)throw new TypeError("Unsupported protocol "+e);if(this._options.agents){var r=e.slice(0,-1);this._options.agent=this._options.agents[r]}var n=this._currentRequest=t.request(this._options,this._onNativeResponse);for(var i of(n._redirectable=this,Uh))n.on(i,jh[i]);if(this._currentUrl=/^\//.test(this._options.path)?Ph.format(this._options):this._options.path,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()}()}},Qh.prototype._processResponse=function(e){var t=e.statusCode;this._options.trackRedirects&&this._redirects.push({url:this._currentUrl,headers:e.headers,statusCode:t});var r,n=e.headers.location;if(!n||!1===this._options.followRedirects||t<300||t>=400)return e.responseUrl=this._currentUrl,e.redirects=this._redirects,this.emit("response",e),void(this._requestBodyBuffers=[]);if(rp(this._currentRequest),e.destroy(),++this._redirectCount>this._options.maxRedirects)throw new Gh;var i=this._options.beforeRedirect;i&&(r=Object.assign({Host:e.req.getHeader("host")},this._options.headers));var o=this._options.method;((301===t||302===t)&&"POST"===this._options.method||303===t&&!/^(?:GET|HEAD)$/.test(this._options.method))&&(this._options.method="GET",this._requestBodyBuffers=[],ep(/^content-/i,this._options.headers));var a=ep(/^host$/i,this._options.headers),s=Xh(this._currentUrl),c=a||s.host,l=/^\w+:/.test(n)?this._currentUrl:Ph.format(Object.assign(s,{host:c})),u=function(e,t){return Hh?new Rh(e,t):Xh(Ph.resolve(t,e))}(n,l);if(Fh("redirecting to",u.href),this._isRedirect=!0,Zh(u,this._options),(u.protocol!==s.protocol&&"https:"!==u.protocol||u.host!==c&&!function(e,t){Mh(np(e)&&np(t));var r=e.length-t.length-1;return r>0&&"."===e[r]&&e.endsWith(t)}(u.host,c))&&ep(/^(?:(?:proxy-)?authorization|cookie)$/i,this._options.headers),ip(i)){var h={headers:e.headers,statusCode:t},p={url:l,method:o,headers:r};i(this._options,h,p),this._sanitizeOptions(this._options)}this._performRequest()},Nh.exports=Wh({http:Ih,https:Lh}),Nh.exports.wrap=Wh;var op="0.26.1",ap=Gu,sp=nh,cp=ch,lp=Vu,up=q.default,hp=z.default,pp=Nh.exports.http,fp=Nh.exports.https,dp=U.default,mp=K.default,gp=op,Ep=th,yp=Ju,Tp=Zu,vp=yh,bp=/https:?/;function _p(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,_p(e,t,e.href)}}var Ap=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=!1,s=function(e){i(),a=!0,r(e)},c=e.data,l=e.headers,u={};if(Object.keys(l).forEach(function(e){u[e.toLowerCase()]=e}),"user-agent"in u?l[u["user-agent"]]||delete l[u["user-agent"]]:l["User-Agent"]="axios/"+gp,c&&!ap.isStream(c)){if(Buffer.isBuffer(c));else if(ap.isArrayBuffer(c))c=Buffer.from(new Uint8Array(c));else{if(!ap.isString(c))return s(Ep("Data after transformation must be a string, an ArrayBuffer, a Buffer, or a Stream",e));c=Buffer.from(c,"utf-8")}if(e.maxBodyLength>-1&&c.length>e.maxBodyLength)return s(Ep("Request body larger than maxBodyLength limit",e));u["content-length"]||(l["Content-Length"]=c.length)}var h=void 0;e.auth&&(h=(e.auth.username||"")+":"+(e.auth.password||""));var p=cp(e.baseURL,e.url),f=dp.parse(p),d=f.protocol||"http:";if(!h&&f.auth){var m=f.auth.split(":");h=(m[0]||"")+":"+(m[1]||"")}h&&u.authorization&&delete l[u.authorization];var g=bp.test(d),E=g?e.httpsAgent:e.httpAgent;try{lp(f.path,e.params,e.paramsSerializer).replace(/^\?/,"")}catch(t){var y=new Error(t.message);y.config=e,y.url=e.url,y.exists=!0,s(y)}var T={path:lp(f.path,e.params,e.paramsSerializer).replace(/^\?/,""),method:e.method.toUpperCase(),headers:l,agent:E,agents:{http:e.httpAgent,https:e.httpsAgent},auth:h};e.socketPath?T.socketPath=e.socketPath:(T.hostname=f.hostname,T.port=f.port);var v,b=e.proxy;if(!b&&!1!==b){var _=d.slice(0,-1)+"_proxy",A=process.env[_]||process.env[_.toUpperCase()];if(A){var S=dp.parse(A),k=process.env.no_proxy||process.env.NO_PROXY,C=!0;if(k){var x=k.split(",").map(function(e){return e.trim()});C=!x.some(function(e){return!!e&&("*"===e||("."===e[0]&&f.hostname.substr(f.hostname.length-e.length)===e||f.hostname===e))})}if(C&&(b={host:S.hostname,port:S.port,protocol:S.protocol},S.auth)){var w=S.auth.split(":");b.auth={username:w[0],password:w[1]}}}}b&&(T.headers.host=f.hostname+(f.port?":"+f.port:""),_p(T,b,d+"//"+f.hostname+(f.port?":"+f.port:"")+T.path));var O=g&&(!b||bp.test(b.protocol));e.transport?v=e.transport:0===e.maxRedirects?v=O?hp:up:(e.maxRedirects&&(T.maxRedirects=e.maxRedirects),v=O?fp:pp),e.maxBodyLength>-1&&(T.maxBodyLength=e.maxBodyLength),e.insecureHTTPParser&&(T.insecureHTTPParser=e.insecureHTTPParser);var N=v.request(T,function(t){if(!N.aborted){var r=t,n=t.req||N;if(204!==t.statusCode&&"HEAD"!==n.method&&!1!==e.decompress)switch(t.headers["content-encoding"]){case"gzip":case"compress":case"deflate":r=r.pipe(mp.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,sp(o,s,i);else{var c=[],l=0;r.on("data",function(t){c.push(t),l+=t.length,e.maxContentLength>-1&&l>e.maxContentLength&&(a=!0,r.destroy(),s(Ep("maxContentLength size of "+e.maxContentLength+" exceeded",e,null,n)))}),r.on("aborted",function(){a||(r.destroy(),s(Ep("error request aborted",e,"ERR_REQUEST_ABORTED",n)))}),r.on("error",function(t){N.aborted||s(yp(t,e,null,n))}),r.on("end",function(){try{var t=1===c.length?c[0]:Buffer.concat(c);"arraybuffer"!==e.responseType&&(t=t.toString(e.responseEncoding),e.responseEncoding&&"utf8"!==e.responseEncoding||(t=ap.stripBOM(t))),i.data=t}catch(t){s(yp(t,e,t.code,i.request,i))}sp(o,s,i)})}}});if(N.on("error",function(t){N.aborted&&"ERR_FR_TOO_MANY_REDIRECTS"!==t.code||s(yp(t,e,null,N))}),N.on("socket",function(e){e.setKeepAlive(!0,6e4)}),e.timeout){var P=parseInt(e.timeout,10);if(isNaN(P))return void s(Ep("error trying to parse `config.timeout` to int",e,"ERR_PARSE_TIMEOUT",N));N.setTimeout(P,function(){N.abort();var t="";t=e.timeoutErrorMessage?e.timeoutErrorMessage:"timeout of "+e.timeout+"ms exceeded";var r=e.transitional||Tp;s(Ep(t,e,r.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",N))})}(e.cancelToken||e.signal)&&(n=function(e){N.aborted||(N.abort(),s(!e||e&&e.type?new vp("canceled"):e))},e.cancelToken&&e.cancelToken.subscribe(n),e.signal&&(e.signal.aborted?n():e.signal.addEventListener("abort",n))),ap.isStream(c)?c.on("error",function(t){s(yp(t,e,null,N))}).pipe(N):N.end(c)})},Sp=Gu,kp=function(e,t){Xu.forEach(e,function(r,n){n!==t&&n.toUpperCase()===t.toUpperCase()&&(e[t]=r,delete e[n])})},Cp=Ju,xp={"Content-Type":"application/x-www-form-urlencoded"};function wp(e,t){!Sp.isUndefined(e)&&Sp.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var Op,Np={transitional:Zu,adapter:("undefined"!=typeof XMLHttpRequest?Op=Oh:"undefined"!=typeof process&&"[object process]"===Object.prototype.toString.call(process)&&(Op=Ap),Op),transformRequest:[function(e,t){return kp(t,"Accept"),kp(t,"Content-Type"),Sp.isFormData(e)||Sp.isArrayBuffer(e)||Sp.isBuffer(e)||Sp.isStream(e)||Sp.isFile(e)||Sp.isBlob(e)?e:Sp.isArrayBufferView(e)?e.buffer:Sp.isURLSearchParams(e)?(wp(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):Sp.isObject(e)||t&&"application/json"===t["Content-Type"]?(wp(t,"application/json"),function(e,t,r){if(Sp.isString(e))try{return(t||JSON.parse)(e),Sp.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(r||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){var t=this.transitional||Np.transitional,r=t&&t.silentJSONParsing,n=t&&t.forcedJSONParsing,i=!r&&"json"===this.responseType;if(i||n&&Sp.isString(e)&&e.length)try{return JSON.parse(e)}catch(e){if(i){if("SyntaxError"===e.name)throw Cp(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, */*"}}};Sp.forEach(["delete","get","head"],function(e){Np.headers[e]={}}),Sp.forEach(["post","put","patch"],function(e){Np.headers[e]=Sp.merge(xp)});var Pp=Np,Rp=Gu,Ip=Pp,Lp=function(e){return!(!e||!e.__CANCEL__)},Dp=Gu,Mp=function(e,t,r){var n=this||Ip;return Rp.forEach(r,function(r){e=r.call(n,e,t)}),e},Fp=Lp,Hp=Pp,Bp=yh;function Up(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Bp("canceled")}var jp=Gu,qp=function(e,t){t=t||{};var r={};function n(e,t){return jp.isPlainObject(e)&&jp.isPlainObject(t)?jp.merge(e,t):jp.isPlainObject(t)?jp.merge({},t):jp.isArray(t)?t.slice():t}function i(r){return jp.isUndefined(t[r])?jp.isUndefined(e[r])?void 0:n(void 0,e[r]):n(e[r],t[r])}function o(e){if(!jp.isUndefined(t[e]))return n(void 0,t[e])}function a(r){return jp.isUndefined(t[r])?jp.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 jp.forEach(Object.keys(e).concat(Object.keys(t)),function(e){var t=c[e]||i,n=t(e);jp.isUndefined(n)&&t!==s||(r[e]=n)}),r},zp=op,Gp={};["object","boolean","number","function","string","symbol"].forEach(function(e,t){Gp[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});var Kp={};Gp.transitional=function(e,t,r){function n(e,t){return"[Axios v"+zp+"] 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&&!Kp[i]&&(Kp[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 $p={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:Gp},Vp=Gu,Qp=Vu,Wp=Yu,Yp=function(e){return Up(e),e.headers=e.headers||{},e.data=Mp.call(e,e.data,e.headers,e.transformRequest),e.headers=Dp.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),Dp.forEach(["delete","get","head","post","put","patch","common"],function(t){delete e.headers[t]}),(e.adapter||Hp.adapter)(e).then(function(t){return Up(e),t.data=Mp.call(e,t.data,t.headers,e.transformResponse),t},function(t){return Fp(t)||(Up(e),t&&t.response&&(t.response.data=Mp.call(e,t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)})},Xp=qp,Jp=$p,Zp=Jp.validators;function ef(e){this.defaults=e,this.interceptors={request:new Wp,response:new Wp}}ef.prototype.request=function(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},(t=Xp(this.defaults,t)).method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var r=t.transitional;void 0!==r&&Jp.assertOptions(r,{silentJSONParsing:Zp.transitional(Zp.boolean),forcedJSONParsing:Zp.transitional(Zp.boolean),clarifyTimeoutError:Zp.transitional(Zp.boolean)},!1);var n=[],i=!0;this.interceptors.request.forEach(function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(i=i&&e.synchronous,n.unshift(e.fulfilled,e.rejected))});var o,a=[];if(this.interceptors.response.forEach(function(e){a.push(e.fulfilled,e.rejected)}),!i){var s=[Yp,void 0];for(Array.prototype.unshift.apply(s,n),s=s.concat(a),o=Promise.resolve(t);s.length;)o=o.then(s.shift(),s.shift());return o}for(var c=t;n.length;){var l=n.shift(),u=n.shift();try{c=l(c)}catch(e){u(e);break}}try{o=Yp(c)}catch(e){return Promise.reject(e)}for(;a.length;)o=o.then(a.shift(),a.shift());return o},ef.prototype.getUri=function(e){return e=Xp(this.defaults,e),Qp(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},Vp.forEach(["delete","get","head","options"],function(e){ef.prototype[e]=function(t,r){return this.request(Xp(r||{},{method:e,url:t,data:(r||{}).data}))}}),Vp.forEach(["post","put","patch"],function(e){ef.prototype[e]=function(t,r,n){return this.request(Xp(n||{},{method:e,url:t,data:r}))}});var tf=ef,rf=yh;function nf(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 rf(e),t(r.reason))})}nf.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},nf.prototype.subscribe=function(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]},nf.prototype.unsubscribe=function(e){if(this._listeners){var t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}},nf.source=function(){var e;return{token:new nf(function(t){e=t}),cancel:e}};var of=nf,af=Gu,sf=Gu,cf=Lu,lf=tf,uf=qp;var hf=function e(t){var r=new lf(t),n=cf(lf.prototype.request,r);return sf.extend(n,lf.prototype,r),sf.extend(n,r),n.create=function(r){return e(uf(t,r))},n}(Pp);hf.Axios=lf,hf.Cancel=yh,hf.CancelToken=of,hf.isCancel=Lp,hf.VERSION=op,hf.all=function(e){return Promise.all(e)},hf.spread=function(e){return function(t){return e.apply(null,t)}},hf.isAxiosError=function(e){return af.isObject(e)&&!0===e.isAxiosError},Iu.exports=hf,Iu.exports.default=hf;var pf=Iu.exports;function ff(e){return e}function df(e){var t=[];if(e)return Array.isArray(e)?e:("object"==typeof e&&Object.keys(e).forEach(function(r){"number"==typeof r&&(t[r]=e[r])}),t)}function mf(e){if(pf.isCancel(e))return Promise.reject(e);var t=Ef(e)||{};if(t.currentRetryAttempt=t.currentRetryAttempt||0,t.retry="number"==typeof t.retry?t.retry:3,t.retryDelay="number"==typeof t.retryDelay?t.retryDelay:100,t.instance=t.instance||pf,t.backoffType=t.backoffType||"exponential",t.httpMethodsToRetry=df(t.httpMethodsToRetry)||["GET","HEAD","PUT","OPTIONS","DELETE"],t.noResponseRetries="number"==typeof t.noResponseRetries?t.noResponseRetries:2,t.checkRetryAfter="boolean"!=typeof t.checkRetryAfter||t.checkRetryAfter,t.maxRetryAfter="number"==typeof t.maxRetryAfter?t.maxRetryAfter:3e5,t.statusCodesToRetry=df(t.statusCodesToRetry)||[[100,199],[429,429],[500,599]],e.config=e.config||{},e.config.raxConfig=Object.assign({},t),!(t.shouldRetry||gf)(e))return Promise.reject(e);var r=new Promise(function(r,n){var i=0;if(t.checkRetryAfter&&e.response&&e.response.headers["retry-after"]){var o=function(e){var t=Number(e);if(!Number.isNaN(t))return 1e3*t;var r=Date.parse(e);return Number.isNaN(r)?void 0:r-Date.now()}(e.response.headers["retry-after"]);if(!(o&&o>0&&o<=t.maxRetryAfter))return n(e);i=o}e.config.raxConfig.currentRetryAttempt+=1;var a=e.config.raxConfig.currentRetryAttempt;0===i&&(i="linear"===t.backoffType?1e3*a:"static"===t.backoffType?t.retryDelay:(Math.pow(2,a)-1)/2*1e3,"number"==typeof t.maxRetryDelay&&(i=Math.min(i,t.maxRetryDelay))),setTimeout(r,i)}),n=t.onRetryAttempt?Promise.resolve(t.onRetryAttempt(e)):Promise.resolve();return Promise.resolve().then(function(){return r}).then(function(){return n}).then(function(){return t.instance.request(e.config)})}function gf(e){var t=e.config.raxConfig;if(!t||0===t.retry)return!1;if(!e.response&&(t.currentRetryAttempt||0)>=t.noResponseRetries)return!1;if(!e.config.method||t.httpMethodsToRetry.indexOf(e.config.method.toUpperCase())<0)return!1;if(e.response&&e.response.status){for(var r=!1,n=0,i=t.statusCodesToRetry;n<i.length;n+=1){var o=i[n],a=e.response.status;if(a>=o[0]&&a<=o[1]){r=!0;break}}if(!r)return!1}return t.currentRetryAttempt=t.currentRetryAttempt||0,!(t.currentRetryAttempt>=t.retry)}function Ef(e){if(e&&e.config)return e.config.raxConfig}var yf=Object.freeze({__proto__:null,attach:function(e){return(e=e||pf).interceptors.response.use(ff,mf)},detach:function(e,t){(t=t||pf).interceptors.response.eject(e)},shouldRetryRequest:gf,getConfig:Ef}),Tf=he(yf);!function(e){Object.defineProperty(e,"__esModule",{value:!0});var t=H.default,r=Tr,n=Lr.exports,i=qr.exports,o=Wn,a=Oi,s=Ia,c=Ac,l=Cc,u=xc,h=Wc,p=Yc,f=Xc,d=Jc,m=Zc,g=j.default,E=el,y=tl,T=rl,v=nl,b=il,_=ol,A=sl,S=ll,k=pl,C=fl,x=El,w=Ml,O=wu,N=Pu,P=Ru,R=M.default,I=pf,L=Tf,D=Fr.exports;function F(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var B=F(r),U=F(n),q=F(i),z=F(s),G=F(c),K=F(l),$=F(g),V=F(w),Q=F(O),W=F(R),Y=F(I),X=F(L),J=F(D);function Z(e,t){return U.default.encrypt(e,t).toString()}function ee(e,t){try{return U.default.decrypt(e,t).toString(q.default)}catch{return""}}var te=Object.freeze({__proto__:null,encrypt:Z,decrypt:ee});function re(e){return"string"==typeof e&&e.startsWith("@encrypted:")}var ne={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",default:"light"},primaryColor:{type:"string",title:"Primary Color",format:"color",default:"#3c60ff"},expandLevel:{type:"integer",title:"Expand level",default:0},navs:{type:"array",title:"Nav configures",items:{type:"object",properties:{title:{title:"Label",type:"string"},url:{title:"Link",type:"string"}},required:["title","url"],additionalProperties:!1},default:[]}},default:{}},plugins:{type:"array",items:{type:"string"},default:[]},pluginsConfig:{type:"object",title:"Configuration for plugins",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:{}},release:{type:"object",title:"Release specific configurations",properties:{pathEncode:{type:"boolean",title:"Whether to encode the chapter path",default:!0}},default:{}},assistant:{type:"object",title:"AI Assistant configurations",properties:{token:{type:"string",title:"ThinkAI Token",encrypt:!0}},default:{}}},required:[]};class ie{key;values;presetValues;schema;constructor(e,r,n,i){this.values=t.merge(e,i),this.presetValues=i,this.schema=r,this.key=n}setKey(e){this.key=e;const r=new B.default({removeAdditional:!0,useDefaults:!0,allErrors:!0,unknownFormats:["color"]});r.addKeyword("encrypt",{validate:(r,n,i,o,a,s)=>(r&&re(n)&&a&&s&&t.set(a,s,ee(n.substring(11),e)),!0),modifying:!0,errors:!1}),r.compile(this.schema)(this.values)}getValues(){return this.values}setValues(e){const r=new B.default({removeAdditional:!0,useDefaults:!0,allErrors:!0,unknownFormats:"ignore"}).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}getPresetValues(){return this.presetValues}getValue(e,r){return t.get(this.values,e,r)}setValue(e,r){return t.set(this.values,e,r)}toObject(){let e=t.cloneDeep(this.values);this.presetValues&&(e=t.omit(e,t.keys(this.presetValues)));const r=new B.default({removeAdditional:!0,useDefaults:!0,allErrors:!0,unknownFormats:["color"]});return r.removeKeyword("default"),r.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.substring(1)))),!0),modifying:!0,errors:!1}),r.addKeyword("encrypt",{validate:(e,r,n,i,o,a)=>(this.key&&e&&!re(r)&&o&&a&&t.set(o,a,`@encrypted:${Z(r,this.key)}`),!0),modifying:!0,errors:!1}),r.compile(this.schema)(e),e}toText(){const e=this.toObject();let r="";return t.isEmpty(e)||(r=JSON.stringify(e,null,4)),r}static createFromObject(e,r,n,i){const o=new B.default({removeAdditional:!0,useDefaults:!0,allErrors:!0,unknownFormats:["color"]});n&&o.addKeyword("encrypt",{validate:(e,r,i,o,a,s)=>(e&&re(r)&&a&&s&&t.set(a,s,ee(r.substring(11),n)),!0),modifying:!0,errors:!1});const a=o.compile(r);if(!a(e))for(const r of a.errors)e=t.omit(e,r.dataPath.substring(1).split("/"));return new this(e,r,n,i)}}class oe extends ie{static file="book.json";static schema=ne;pluginsConfig={};presetPlugins={};setPresetPlugins(e){this.presetPlugins=e}getPresetPluginConfig(e){return this.presetPlugins[e]}getPlugins(){return Array.from(new Set([...this.getValue("plugins"),...Object.keys(this.presetPlugins)]))}getPluginConfig(e,r){if(!this.pluginsConfig[e]){const n=this.getValue(["pluginsConfig",e],{});this.pluginsConfig[e]=ie.createFromObject(t.cloneDeep(n),r,`${this.key}:${e}`,this.presetPlugins[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,oe.schema)}}const ae={tokenize:function(e,t,r){function n(t){return t===d.codes.rightParenthesis?h(t):T.factoryDestination(e,i,r,f.types.resourceDestination,f.types.resourceDestinationLiteral,f.types.resourceDestinationLiteralMarker,f.types.resourceDestinationRaw,f.types.resourceDestinationString,m.constants.linkResourceDestinationBalanceMax)(t)}function i(t){return v.markdownLineEndingOrSpace(t)?y.factoryWhitespace(e,o)(t):h(t)}function o(t){return t===d.codes.quotationMark||t===d.codes.apostrophe||t===d.codes.leftParenthesis?_.factoryTitle(e,y.factoryWhitespace(e,a),r,f.types.resourceTitle,f.types.resourceTitleMarker,f.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):h(t)}function s(t){return t===d.codes.lowercaseX?(e.enter("blockQuoteTypeMarker"),e.consume(t),e.exit("blockQuoteTypeMarker"),l):t===d.codes.rightParenthesis||v.markdownLineEndingOrSpace(t)?(e.exit("resourceSize"),y.factoryWhitespace(e,h)(t)):(e.enter("resourceSizeWidth"),e.enter(f.types.chunkString,{contentType:"string"}),c(t))}function c(t){return t===d.codes.rightParenthesis||v.markdownLineEndingOrSpace(t)?(e.exit(f.types.chunkString),e.exit("resourceSizeWidth"),e.exit("resourceSize"),y.factoryWhitespace(e,h)(t)):t===d.codes.lowercaseX?(e.exit(f.types.chunkString),e.exit("resourceSizeWidth"),e.enter("resourceSizeMarker"),e.consume(t),e.exit("resourceSizeMarker"),l):(e.consume(t),c)}function l(t){return t===d.codes.rightParenthesis||v.markdownLineEndingOrSpace(t)?(e.exit("resourceSize"),y.factoryWhitespace(e,h)(t)):(e.enter("resourceSizeHeight"),e.enter(f.types.chunkString,{contentType:"string"}),u(t))}function u(t){return t===d.codes.rightParenthesis||v.markdownLineEndingOrSpace(t)?(e.exit(f.types.chunkString),e.exit("resourceSizeHeight"),e.exit("resourceSize"),y.factoryWhitespace(e,h)(t)):(e.consume(t),u)}function h(n){return n===d.codes.rightParenthesis?(e.enter(f.types.resourceMarker),e.consume(n),e.exit(f.types.resourceMarker),e.exit(f.types.resource),t):r(n)}return function(t){return e.enter(f.types.resource),e.enter(f.types.resourceMarker),e.consume(t),e.exit(f.types.resourceMarker),y.factoryWhitespace(e,n)}}},se={tokenize:function(e,t,r){const n=this;function i(e){return n.parser.defined.includes(E.normalizeIdentifier(n.sliceSerialize(n.events[n.events.length-1][1]).slice(1,-1)))?t(e):r(e)}return function(t){return $.default.strictEqual(t,d.codes.leftSquareBracket,"expected left bracket"),b.factoryLabel.call(n,e,i,r,f.types.reference,f.types.referenceMarker,f.types.referenceString)(t)}}},ce={tokenize:function(e,t,r){function n(n){return 93===n?(e.enter(f.types.referenceMarker),e.consume(n),e.exit(f.types.referenceMarker),e.exit(f.types.reference),t):r(n)}return function(t){return e.enter(f.types.reference),e.enter(f.types.referenceMarker),e.consume(t),e.exit(f.types.referenceMarker),n}}};var le={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===f.types.labelImage||n.events[a][1].type===f.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(ae,t,o?t:s)(r):r===d.codes.leftSquareBracket?e.attempt(se,t,o?e.attempt(ce,t,s):s)(r):o?t(r):s(r)}return function(t){return $.default(t===d.codes.rightSquareBracket,"expected `]`"),i?i._inactive?s(t):(o=n.parser.defined.indexOf(E.normalizeIdentifier(n.sliceSerialize({start:i.end,end:n.now()})))>-1,e.enter(f.types.labelEnd),e.enter(f.types.labelMarker),e.consume(t),e.exit(f.types.labelMarker),e.exit(f.types.labelEnd),c):r(t)}},resolveTo:p.labelEnd.resolveTo,resolveAll:p.labelEnd.resolveAll};const ue=(e,t,r,n)=>{const i=h.image(e,t,r,n);return e.width||e.height?i.replace(/\)$/,` =${e.width||""}${e.height?`x${e.height}`:""})`):i};ue.peek=h.image.peek;const he=e=>{let t;switch(e){case"right":t="--: ";break;case"center":t=":-: ";break;default:t=""}return t},pe={tokenize:function(e,t,r){function n(t){return t===d.codes.rightSquareBracket?r(t):(e.enter("blockQuoteType"),e.enter(f.types.chunkString,{contentType:"string"}),i(t))}function i(t){return t===d.codes.rightSquareBracket?(e.exit(f.types.chunkString),e.exit("blockQuoteType"),e.enter("blockQuoteTypeMarker"),e.consume(t),e.exit("blockQuoteTypeMarker"),o):v.markdownLineEndingOrSpace(t)||!v.asciiAlpha(t)?r(t):(e.consume(t),i)}function o(e){return e===d.codes.leftParenthesis?r(e):t(e)}return function(t){return e.enter("blockQuoteTypeMarker"),e.consume(t),e.exit("blockQuoteTypeMarker"),n}},partial:!0},fe={name:"blockQuote",tokenize:function(e,t,r){const n=this;return function(t){if(t===d.codes.greaterThan){const r=n.containerState;return $.default(r,"expected `containerState` to be defined in container"),r.open||(e.enter(f.types.blockQuote,{_container:!0}),r.open=!0),e.enter(f.types.blockQuotePrefix),e.enter(f.types.blockQuoteMarker),e.consume(t),e.exit(f.types.blockQuoteMarker),C.factorySpace(e,i,f.types.whitespace)}return r(t)};function i(t){return t===d.codes.leftSquareBracket?e.attempt(pe,o,o)(t):o(t)}function o(r){return v.markdownSpace(r)?(e.enter(f.types.blockQuotePrefixWhitespace),e.consume(r),e.exit(f.types.blockQuotePrefixWhitespace),e.exit(f.types.blockQuotePrefix),t):(e.exit(f.types.blockQuotePrefix),t(r))}},continuation:{tokenize:function(e,t,r){return C.factorySpace(e,e.attempt(fe,t,r),f.types.linePrefix,this.parser.constructs.disable?.null?.includes("codeIndented")?void 0:m.constants.tabSize)}},exit:p.blockQuote.exit},de="blankLine",me="blankLineSequence",ge={name:"blankLine",tokenize:(e,t,r)=>{let n;const i=t=>t===n?(e.consume(t),i):(e.exit(me),o(t)),o=a=>a===n?(e.enter(me),i(a)):v.markdownSpace(a)?C.factorySpace(e,o,f.types.whitespace)(a):a===d.codes.eof||v.markdownLineEnding(a)?(e.exit(de),t(a)):r(a);return t=>($.default(t===d.codes.caret,"expected `^`"),e.enter(de),n=t,o(t))}},Ee=(e,t="text")=>{let r="";return A.visit(e,t,function(e){r+=e.value}),r},ye=/^\[toc(?:=(\d)(?:,(\d))?)?]$/im,Te=a.unified().use(z.default).use(function(){const e=this.data();e.micromarkExtensions=[],e.fromMarkdownExtensions=[],e.toMarkdownExtensions=[],e.toHastExtensions=[]}).use(Q.default).use(V.default,["yaml"]).use(G.default).use(K.default).use(N.remarkHeadingId).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){A.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]:le}}),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:ue}}),e.toHastExtensions.push({image:(e,t)=>{const r={src:u.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,n)=>{const i=S.paragraph(e,t,r,n);return he(e.align)+i},heading:(e,t,r,n)=>k.heading(e,t,r,n).replace(/^#+\s/,`$&${he(e.align)}`)}}),function(e){A.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,n)=>{const i=x.blockquote(e,t,r,n);return e.variant?i.replace(/(^|\s+)>\s/,`$1> [${e.variant}] `):i}}}),e.micromarkExtensions.push({document:{[d.codes.greaterThan]:fe}}),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){A.visit(e,"blockquote",e=>{e.variant&&(e.data={...e.data,hProperties:{className:e.variant}})})}}).use(function(){const e=this.data();e.toHastExtensions.push({blankLine:e=>e({},"p",[e({},"br")])}),e.micromarkExtensions.push({flow:{[d.codes.caret]:ge}}),e.toMarkdownExtensions.push({handlers:{blankLine:()=>"^"}}),e.fromMarkdownExtensions.push({enter:{blankLine:function(e){this.enter({type:"blankLine"},e)}},exit:{blankLine:function(e){this.exit(e)}}})}).use(function(){return function(e){A.visit(e,(e,t,r)=>{if(r&&"root"===r.type&&null!==t&&Ee(e).match(ye))return r.children.splice(t,1),[A.SKIP,t]})}});function ve(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=Ee(n);if(!i)continue;let a="";n.url&&(a=decodeURI(n.url),a.match(/[\\:*?"<>|]/)&&(a=""));let s={title:i,ref:a};if(e.length>1){const t=e[e.length-1];P.is(t,"list")&&(s.children=ve(t))}t.push(s)}return t}const be=Te();class _e{data;constructor(e=[]){this.data="string"==typeof e?e.split(".").map(e=>parseInt(e,10)):e}getRoot(){return new _e(this.data.slice(0,1))}getParent(){return new _e(this.data.slice(0,-1))}createChild(e){return new _e(this.data.concat(e))}isDescendant(e){return e.toString().startsWith(`${this.toString()}.`)}getNext(){const e=[...this.data];return e[e.length-1]++,new _e(e)}getDepth(){return this.data.length-1}eq(e){return this.toString()===e.toString()}getLeafIndex(){return this.data[this.data.length-1]-1}toString(e){return e?this.data.slice(e.data.length).join("."):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 Ae{level;title;ref;path;children;metadata;hasPath=!1;constructor({title:e,ref:t="",path:r,children:n=[],metadata:i}){this.title=e,this.ref=t,r?(this.hasPath=!0,this.path=r):this.path=t?R.posix.format({...R.posix.parse(t),ext:".html",base:""}):"",this.children=n,this.level=new _e,this.metadata=i}getMetadata(e,r){return this.metadata?t.get(this.metadata,e,r):r}setMetadata(e,r){this.metadata||(this.metadata={}),t.set(this.metadata,e,r)}getLevel(){return this.level}getTitle(){return this.title}getRef(){return this.ref}getPath(){return this.path}getArticles(){return this.children}getDescendants(){const e=[];return Ae.findArticle(this,t=>(e.push(t),!1)),e}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))}toObject(){const e=this.children.map(function(e){return e.toObject()});return{title:this.title,ref:this.ref,path:this.hasPath?this.path:void 0,metadata:this.metadata,children:t.isEmpty(e)?void 0:e}}static findArticle(e,t){return e.getArticles().reduce((e,r)=>e||(t(r)?r:Ae.findArticle(r,t)),void 0)}static createFromObject(e){const t=e.children?.filter(e=>!!e.title).map(e=>Ae.createFromObject(e));return new Ae({...e,children:t})}}class Se{level;title;articles;metadata;constructor(e,t=[],r){this.level=new _e,this.title=e,this.articles=t,this.metadata=r}getMetadata(e,r){return this.metadata?t.get(this.metadata,e,r):r}getLevel(){return this.level}getTitle(){return this.title}getArticles(){return this.articles}getFirstArticle(){return Ae.findArticle(this,()=>!0)}getDescendants(){const e=[];return Ae.findArticle(this,t=>(e.push(t),!1)),e}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))}toText(){let e="";return Ae.findArticle(this,r=>{const n=r.ref?`[${r.title}](${r.ref.replace(/\s/g,"%20")})`:r.title;return e+=`${t.repeat(" ",r.getDepth()-1)}* ${n}\n`,!1}),e}toObject(){const e=this.articles.map(function(e){return e.toObject()});return{title:this.title,metadata:this.metadata,articles:t.isEmpty(e)?void 0:e}}static createFromObject(e){const t=e.articles?.filter(e=>!!e.title).map(e=>Ae.createFromObject(e));return new Se(e.title,t,e.metadata)}}class ke{static file={json:"SUMMARY.json",markdown:"SUMMARY.md"};parts;json;constructor(e=[],t=!1){this.parts=e,this.json=t,this.indexLevels()}insertPart(e,t){if(e instanceof Se||(e=Se.createFromObject(e)),this.isEmpty())this.parts=[e];else{const r=t?t.getLeafIndex():this.parts.length;this.parts.splice(r,0,e)}this.indexLevels()}updatePart(e,r){const n=this.getByLevel(e);n instanceof Se&&(t.isFunction(r)?r(n):(n.title=r.title,n.metadata=r.metadata))}removePart(e){const t=e.getLeafIndex();this.parts.splice(t,1),0===this.parts.length&&(this.parts=[new Se("")]),this.indexLevels()}insertArticle(e,t){e instanceof Ae||(e=Ae.createFromObject(e));const r=this.getParent(t);if(!r)return;const n=r.getArticles(),i=t.getLeafIndex();n.splice(i,0,e),r.indexLevels()}updateArticle(e,r){const n=this.getByLevel(e);n instanceof Ae&&(t.isFunction(r)?r(n):(n.title=r.title,n.ref=r.ref,n.metadata=r.metadata))}removeArticle(e){const t=this.getParent(e);if(!t)return;const r=t.getArticles(),n=e.getLeafIndex();r.splice(n,1),t.indexLevels()}toText(){let e="";if(1!==this.parts.length||this.parts[0].title)for(let t of this.parts)e+=`## ${t.title}`,e+="\n",e+=t.toText(),e+="\n";else e+=this.parts[0].toText();return e}hasMetadata(){let e=!1;return this.getArticle(r=>!!e||!t.isEmpty(r.metadata)&&(e=!0,!0),r=>(t.isEmpty(r.metadata)||(e=!0),!0)),e}isJson(){return this.json}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,t){return this.parts.reduce((r,n)=>r||(!t||t(n)?Ae.findArticle(n,e):void 0),void 0)}getArticlePart(e){const t=e.getLevel().getRoot();return this.getByLevel(t)}getFirstPath(){const e=this.getArticle(e=>!!e.getPath());if(e)return e.getPath()}getByLevel(e){const t=t=>t.getLevel().eq(e);return this.parts.reduce((e,r)=>e||(t(r)?r:Ae.findArticle(r,t)),void 0)}getFirstArticle(){return this.getArticle(()=>!0)}getNextArticle(e){const t=e instanceof Ae?e.getLevel():e;let r=!1;return this.getArticle(e=>!!r||(r=e.getLevel()==t,!1))}getPrevArticle(e){const t=e instanceof Ae?e.getLevel():e;let r;return this.getArticle(e=>e.getLevel()==t||(r=e,!1)),r}getParent(e){const t=(e instanceof Ae?e.getLevel():e).getParent();if(t)return this.getByLevel(t)}indexLevels(){for(const[e,t]of this.parts.entries()){const r=new _e(String(e+1));t.indexLevels(r)}}isSinglePart(){return 1===this.parts.length&&!this.parts[0].title}isEmpty(){return this.isSinglePart()?0===this.parts[0].articles.length:0===this.parts.length}toObject(){return this.parts.map(function(e){return e.toObject()})}static createFromObject(e){return new ke(e.map(e=>Se.createFromObject(e)),!0)}static createFromText(e){const t=function(e){const t=be.parse(e),r=[];let n;for(const e of t.children)if(P.is(e,"heading")&&[2,3].includes(e.depth)&&(n&&r.push(n),n={title:Ee(e).trim()}),P.is(e,"list")){const t=ve(e);n?n.articles=(n.articles||[]).concat(t):n={title:"",articles:t}}return n?r.push(n):r.push({title:""}),r}(e);return new ke(t.map(e=>Se.createFromObject(e)))}static create(e){return"object"==typeof e?ke.createFromObject(e):ke.createFromText(e)}}class Ce{host;preset;constructor({host:e,preset:t}){this.host=e,this.preset=t}getBuyUrl(e,t){return`${this.host}/api/buy?book=${e.id}&plugin=${t.name}`}async bought(e,t){try{return await Y.default.get(`${this.host}/api/bought?book=${e.id}&plugin=${t.name}`),!0}catch{return!1}}async trial(e,t){try{const{data:r}=await Y.default.get(`${this.host}/api/trial?book=${e.id}&plugin=${t.name}`);return r}catch{return!1}}async queryPlugins({page:e=1,...t}){const{data:r}=await Y.default.get(`${this.host}/api/query`,{params:{...t,page:e}});return r}async getInstalled(e){const{config:t}=e,r=[`theme-${t.getValue("theme")}`,...t.getValue("plugins")];this.preset&&(r.push(...Object.keys(this.preset)),t.setPresetPlugins(this.preset));const{data:n}=await Y.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.flatMap(e=>!e.builtin||this.preset?.[e.name]?(e.preset=!!this.preset?.[e.name],[e]):[])}}e.pluginCenter=void 0;class xe{flatColors=["#1abc9c","#2ecc71","#3498db","#9b59b6","#34495e","#16a085","#27ae60","#2980b9","#8e44ad","#2c3e50","#f1c40f","#e67e22","#e74c3c","#f39c12","#d35400","#c0392b"];letter;size;canvas;constructor(e,t,r){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.size/10;if(e.beginPath(),e.arc(this.size-t,this.size-t,t,0,Math.PI/2),e.lineTo(t,this.size),e.arc(t,this.size-t,t,Math.PI/2,Math.PI),e.lineTo(0,t),e.arc(t,t,t,Math.PI,3*Math.PI/2),e.lineTo(this.size-t,0),e.arc(this.size-t,t,t,3*Math.PI/2,2*Math.PI),e.lineTo(this.size,this.size-t),e.closePath(),this.letter.length>0){const t=this.letter[0].toUpperCase();e.fillStyle=this.flatColors[t.charCodeAt(0)%this.flatColors.length],e.fill(),e.restore(),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)}else e.fillStyle=this.flatColors[0],e.fill()}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 xe(e,t,r)}}const we=/^(?:\w+:)?\/\/(\S+)$/,Oe=/^localhost[\:?\d]*(?:[^\:?\d]\S*)?$/,Ne=/^[^\s\.]+\.\S{2,}$/;X.default.attach(),Y.default.defaults.raxConfig={retryDelay:2e3,backoffType:"static",shouldRetry:({config:e,response:t})=>{const r=e.raxConfig||{};return!(r?.retryDecider&&!r.retryDecider()||!e.method||!r.httpMethodsToRetry?.includes(e.method.toUpperCase())||449!==t?.status)}},Y.default.defaults.maxContentLength=1/0,Y.default.defaults.maxBodyLength=1/0,Y.default.interceptors.request.use(e=>{if(e.onMessage){let t=0,r="",n=null;const i=e.onMessage;e.onDownloadProgress=e=>{const o=e.target,{responseText:a}=o;for(;t<e.loaded;){const e=a.substring(t,++t);if(r+=e,"\n"===e){if(n||(n={id:"",event:"",data:""}),"\n"===r)i(n),n=null;else{const e=r.match(/^data:(?<data>.*)/);e&&(n.data=e.groups.data.trim())}r=""}}}}return e}),Y.default.interceptors.response.use(e=>e,e=>{if(Y.default.isAxiosError(e)&&e.response){const{data:t,status:r}=e.response;401===r?e.errors="Unauthorized":function(e){return e&&"object"==typeof e}(t)&&422!==r?"message"in t&&(e.errors=t.message):e.errors=t,"string"!=typeof e.errors?e.message=Object.values(e.errors).join("\n"):e.message=e.errors}return Promise.reject(e)});const Pe=Y.default.isAxiosError,Re=Y.default.isCancel;Object.defineProperty(e,"request",{enumerable:!0,get:function(){return Y.default}}),e.BaseConfig=ie,e.Book=class{static style=".topwrite/style.css";static logo="logo.png";static readme="README.md";id;sha;metadata;summary;_config;constructor(e,t,r,n,i){this.id=e,this.summary=r,this.config=t,this.metadata=n,this.sha=i}getMetadata(e,r){return this.metadata?t.get(this.metadata,e,r):r}setMetadata(e,r){this.metadata||(this.metadata={}),t.set(this.metadata,e,r)}get config(){return this._config}set config(e){e.setKey(`${this.id}:config`),this._config=e}},e.Config=oe,e.File=class{path;content;meta;constructor({path:e,content:t,meta:r={}}){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=W.default.posix.relative(W.default.posix.dirname(this.path),e)||".")+(t?"/":"")}resolve(e){return W.default.isAbsolute(e)?e.slice(1):W.default.posix.join(W.default.posix.dirname(this.path),e)}},e.LetterAvatar=xe,e.Level=_e,e.Summary=ke,e.SummaryArticle=Ae,e.SummaryPart=Se,e.aes=te,e.createPluginCenter=function(t){return e.pluginCenter=new Ce(t)},e.isCancel=Re,e.isEncryptedData=re,e.isRequestError=Pe,e.isUrl=function(e){const t=e.match(we);if(!t)return!1;const r=t[1];return!!r&&(Oe.test(r)||Ne.test(r))},e.markdown=Te,e.md5=function(e){return J.default(e).toString()}}(pe);class vf{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 bf(e,t){le.info(`installing plugin "${e.name}"`);const r=`npm install ${e.host}.tgz`,{error:n}=$.default.sync(r,{stdio:["inherit"],cwd:t,shell:!0});if(n)throw n;const i=M.default.join(t,"node_modules","topwrite-plugin-"+e.name),o=M.default.join(i,"dist","hooks.js");let a={};if(V.existsSync(o)){a=new d.NodeVM({require:{builtin:["path/posix","crypto"]},sandbox:{URL:URL,URLSearchParams:URLSearchParams}}).runFile(o)}const s=M.default.join(i,"config.json");let c={};return V.existsSync(s)&&(c=require(s)),le.info(`plugin "${e.name}@${e.version}" installed with success`),new vf({name:e.name,version:e.version,path:i,hooks:a,config:c})}const _f=/(^-{3}(?:\r\n|\r|\n)([\w\W]*?)-{3}(?:\r\n|\r|\n))?([\w\W]*)*/;class Af{book;sourceFS;tmpFS;dest;version;options;plugins=[];constructor(e,t,r,n,i,o){this.book=e,this.sourceFS=t,this.tmpFS=r,this.options=n,this.dest=i,this.version=o}getContext(){return{book:this.book,sourceFS:this.sourceFS,tmpFS:this.tmpFS,request:pe.request,logger:le,format:this.format}}async generate(){await this.initLfs(),await this.initPlugins(),await this.onInit(),await this.callHook("init"),await this.checkStyle(),await this.generateLogo(),await this.onReadme(),await this.callHook("readme"),await this.generateArticles(),await this.callHook("articles"),await this.onSummary(),await this.callHook("summary"),await this.callHook("beforeFinish")&&(await this.onFinish(),await this.callHook("finish")),le.success("generation finished with success!")}async checkStyle(){this.tmpFS.exist(pe.Book.style)||await this.tmpFS.writeFile(pe.Book.style,"")}async initLfs(){if(this.options.lfs){le.info("generate lfs files...");let e="git lfs ls-files -l";const{config:t}=this.book,r=t.getValue("root","");r&&(e+=` --include ${r}`);const{error:n,stdout:i}=$.default.sync(e,{stdio:["inherit"],encoding:"utf8",cwd:this.sourceFS.root,shell:!0}),o={};n||i.trim().split("\n").forEach(e=>{if(e){const[t,n]=e.trim().split(/\s[-*]\s/);if(t&&n){let e=n.trim();r&&(e=M.default.relative(r,e)),o[e]=t.trim(),this.tmpFS.unlink(e)}}}),this.options.lfs.files=o,le.info(`found ${Object.keys(o).length} files`)}}async initPlugins(){this.plugins=await async function(e,t,r){const n=pe.createPluginCenter(r),i=await n.getInstalled(e),o=[],a=e.config.getValue("theme");le.info(`installing ${i.length} plugins from registry`);for(let e of i){if(e.disabled)throw new Error('plugin "'+e.name+'" has been disabled');"theme"===e.type||"ebook"!==a||e.ebook?o.push(await bf(e,t)):le.info(`plugin "${e.name}" ignored in ebook`)}return o}(this.book,this.tmpFS.root,this.options.plugins)}async generateLogo(){if(!this.tmpFS.exist(pe.Book.logo)){const e=this.book.config.getValue("title","Untitled"),t=g.createCanvas(60,60);pe.LetterAvatar.create(e,60,t);const r=t.toBuffer("image/png");await this.tmpFS.writeFile(pe.Book.logo,r)}}async generateArticle(e){if(e.ref){le.info('generate article "'+e.getRef()+'"');try{await this.onArticle(e),await this.callHook("article",e)}catch(t){"ENOENT"===t.code?le.warn(`article file [${e.ref}] not exist`):le.warn(`generate article [${e.ref}] failed: ${t.message}`)}}}async generateArticles(){le.info("generate articles ...");const e=this.book.summary.getArticles();le.info(`found ${e.length} articles`);for(const t of e)await this.generateArticle(t)}async callHook(e,...t){return le.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){const t=await this.tmpFS.readAsString(e.ref),r=this.parseFileMeta(e.ref,t);return new pe.File({path:e.path,...r})}parseFileMeta(e,t){const r=t.match(_f);let n={};if(r){if(void 0!==r[2])try{n=W.default.load(r[2])||{}}catch{}t=void 0!==r[3]?r[3]:""}const i=M.default.join(this.book.config.getValue("root",""),e),[o,a]=this.sourceFS.readFileTime(i);return n.ctime=o,n.mtime=a,{meta:n,content:t}}}class Sf extends Af{format="json";scripts=[];async onInit(){this.processSummary(),await this.installCommonAssets(),await this.installReader(),await this.copyPluginsAssets()}processSummary(){this.book.summary.getArticle(e=>(this.book.config.getValue(["release","pathEncode"],!0)&&(e.path=y.pinyin(e.path,{toneType:"none",nonZh:"consecutive",type:"array",v:!0}).join("")),e.hasPath=!0,!1))}async installCommonAssets(){le.info("installing common assets ..."),await this.installPackage("lodash","lodash.min.js","lodash/lodash.min.js"),await this.installPackage("react","umd/react.production.min.js","react/react.production.min.js"),await this.installPackage("react-dom","umd/react-dom.production.min.js","react-dom/react-dom.production.min.js"),le.info("common assets installed with success")}async installReader(){le.info("installing package @topwrite/reader ...");const e=await this.installPackage("@topwrite/reader","dist/","reader");le.info(`package @topwrite/reader@${e.version} installed with success`)}async installPackage(e,t,r){const n=require.resolve(`${e}/package.json`),i=require(n);if(this.useCdn())t.endsWith("/")&&(t=`${t}index.js`),this.scripts.push(`https://jsdelivr.topthink.com/npm/${e}@${i.version}/${t}`);else{const e=M.default.join(M.default.dirname(n),t),o=M.default.join(this.tmpFS.root,"asset",r);await Y.default.copy(e,o),t.endsWith("/")&&(r=`${r}/index.js`),this.scripts.push(`asset/${r}?v=${i.version}`)}return i}async copyPluginsAssets(){for(const e of this.plugins)if(this.useCdn()){const t=this.options.plugins.host;this.scripts.push(`${t}/plugins/${e.name}/${e.version}/dist/index.js`)}else await Y.default.copy(M.default.join(e.path,"dist"),M.default.join(this.tmpFS.root,"asset","plugins",e.name)),this.scripts.push(`asset/plugins/${e.name}/index.js?v=${e.version}`)}useCdn(){return"cdn"===this.options.asset}async onReadme(){const e=await this.makeFile({path:"index.html",ref:"README.md"});await this.tmpFS.unlink("README.md"),await this.tmpFS.writeFile("index.html.json",this.stringify(e))}async onArticle(e){const t=e.path+".json";if(!this.tmpFS.exist(t)){const r=await this.makeFile(e);e.metadata={...r.meta,...e.metadata},await this.tmpFS.unlink(e.ref),await this.tmpFS.writeFile(t,this.stringify(r))}}async onSummary(){const e=this.book.summary;await this.tmpFS.unlink(pe.Summary.file.json),await this.tmpFS.unlink(pe.Summary.file.markdown),await this.tmpFS.writeFile(pe.Summary.file.json,this.stringify(e.toObject()));const[t,r]=this.sourceFS.readFileTime(),n={id:this.book.id,sha:this.book.sha,lfs:this.options.lfs,scripts:this.scripts,poweredBy:this.options.poweredBy,ctime:t,mtime:r};await this.tmpFS.writeFile("context.json",this.stringify(n))}async onFinish(){await this.packBook()}async packBook(){le.info("pack book ...");const e=Y.default.createWriteStream(this.dest);await this.tmpFS.archive(e,"tar")}stringify(e){return JSON.stringify(e,null,4)}}class kf{root;constructor(e){this.root=e}readFileTime(e=""){const t=`git log --pretty=format:%cI -- ${e}`,{error:r,stdout:n}=$.default.sync(t,{stdio:["inherit"],encoding:"utf8",cwd:this.root,shell:!0});if(r||!n)return[void 0,void 0];const i=n.split("\n");return[i[i.length-1],i[0]]}createReadStream(e,t){return Y.default.createReadStream(this.resolve(e),t)}async readFile(e){return await Y.default.readFile(this.resolve(e))}async readAsObject(e,t={}){try{return await Y.default.readJSON(this.resolve(e))}catch{return t}}async readAsString(e){try{return await Y.default.readFile(this.resolve(e),"utf-8")}catch{return""}}async writeFile(e,t){return e=this.resolve(e),Y.default.ensureDirSync(M.default.dirname(e)),Y.default.writeFile(e,t)}createWriteStream(e,t){return e=this.resolve(e),Y.default.ensureDirSync(M.default.dirname(e)),Y.default.createWriteStream(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(e=""){const t=[];return new Promise(r=>{X.default({path:this.resolve(e),ignoreFiles:[".gitignore",".bookignore"]}).on("child",function(e){t.push({type:e.type,path:e.path.substr(e.root.path.length+1)})}).on("close",()=>{r(t)})})}resolve(...e){return M.default.join(this.root,...e)}async archive(e,t="tar"){if("tar"==t)return new Promise((t,r)=>{b.pack(this.root,{fromBase:!0,ignoreFiles:[".gitignore",".bookignore"]}).pipe(e).on("error",e=>{r(e)}).on("close",()=>{t()})});{const r=await this.readDir();return new Promise((n,i)=>{e.on("error",e=>{i(e)}),e.on("close",()=>{n()});const o=J.default(t,{gzip:!0,gzipOptions:{level:9},zlib:{level:9}});o.pipe(e);for(const e of r)"File"===e.type&&o.append(this.createReadStream(e.path),{name:e.path});o.finalize()})}}}class Cf extends Sf{template;format="html";async onInit(){await super.onInit(),await this.initTemplate()}async initTemplate(){const e=await Y.default.readFile(M.default.resolve(__dirname,"../templates/html.ejs"),"utf-8");this.template=Z.default.compile(e)}useCdn(){return!1}async onReadme(){const e=await this.makeFile({path:"index.html",ref:"README.md"}),t=await this.renderFile(e);await this.tmpFS.unlink("README.md"),await this.tmpFS.writeFile("index.html",t)}async onArticle(e){if(!this.tmpFS.exist(e.path)){const t=await this.makeFile(e);e.metadata={...t.meta,...e.metadata};const r=await this.renderFile(t,e.title);await this.tmpFS.unlink(e.ref),await this.tmpFS.writeFile(e.path,r)}}async onSummary(){await this.tmpFS.unlink(pe.Summary.file.json),await this.tmpFS.unlink(pe.Summary.file.markdown)}async renderFile(e,t){const r={id:this.book.id,sha:this.book.sha,metadata:this.book.metadata,summary:this.book.summary.toObject(),config:this.book.config.toObject(),file:e,lfs:this.options.lfs,options:{poweredBy:this.options.poweredBy}},n=this.scripts.map(t=>pe.isUrl(t)?t:e.relative(t)),i=this.book.config.getValue("title","Untitled"),o=e.getMeta("title",t);return this.template({title:(o?`${o} - `:"")+i,keywords:e.getMeta("keywords"),description:e.getMeta("description"),scripts:n,payload:JSON.stringify(r).replace(/\//g,"\\/")})}}const xf=(e,t)=>e.some(e=>e instanceof RegExp?e.test(t):e===t);function wf(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)}class Of extends ee.default.ResourceLoader{fetch(e,t){const{element:r}=t;return r&&"IMG"===r.nodeName?null:super.fetch(e,t)}}const Nf=/\s+at.*[(\s](.*)\)?/,Pf=/^(?:(?:(?:node|node:[\w/]+|(?:(?:node:)?internal\/[\w/]*|.*node_modules\/(?:babel-polyfill|pirates)\/.*)?\w+)(?:\.js)?:\d+:\d+)|native)/,Rf=void 0===re.default.homedir?"":re.default.homedir().replace(/\\/g,"/");class If extends Error{#e;name="AggregateError";constructor(e){if(!Array.isArray(e))throw new TypeError("Expected input to be an Array, got "+typeof e);let t=(e=e.map(e=>e instanceof Error?e:null!==e&&"object"==typeof e?Object.assign(new Error(e.message),e):new Error(e))).map(e=>{return"string"==typeof e.stack&&e.stack.length>0?(t=function(e,{pretty:t=!1,basePath:r}={}){const n=r&&new RegExp(`(at | \\()${ds(r.replace(/\\/g,"/"))}`,"g");if("string"==typeof e)return e.replace(/\\/g,"/").split("\n").filter(e=>{const t=e.match(Nf);if(null===t||!t[1])return!0;const r=t[1];return!(r.includes(".app/Contents/Resources/electron.asar")||r.includes(".app/Contents/Resources/default_app.asar")||r.includes("node_modules/electron/dist/resources/electron.asar")||r.includes("node_modules/electron/dist/resources/default_app.asar")||Pf.test(r))}).filter(e=>""!==e.trim()).map(e=>(n&&(e=e.replace(n,"$1")),t&&(e=e.replace(Nf,(e,t)=>e.replace(t,t.replace(Rf,"~")))),e)).join("\n")}(e.stack),t.replace(/\s+at .*aggregate-error\/index.js:\d+:\d+\)?/g,"")):String(e);var t}).join("\n");t="\n"+function(e,t=1,r={}){const{indent:n=" ",includeEmptyLines:i=!1}=r;if("string"!=typeof e)throw new TypeError(`Expected \`input\` to be a \`string\`, got \`${typeof e}\``);if("number"!=typeof t)throw new TypeError(`Expected \`count\` to be a \`number\`, got \`${typeof t}\``);if(t<0)throw new RangeError(`Expected \`count\` to be at least 0, got \`${t}\``);if("string"!=typeof n)throw new TypeError(`Expected \`options.indent\` to be a \`string\`, got \`${typeof n}\``);if(0===t)return e;const o=i?/^/gm:/^(?!\s*$)/gm;return e.replace(o,n.repeat(t))}(t,4),super(t),this.#e=e}get errors(){return this.#e.slice()}}class Lf extends Error{constructor(e){super(),this.name="AbortError",this.message=e}}const Df=e=>void 0===globalThis.DOMException?new Lf(e):new DOMException(e),Mf=e=>{const t=void 0===e.reason?Df("This operation was aborted."):e.reason;return t instanceof Error?t:Df(t)};async function Ff(e,t,{concurrency:r=Number.POSITIVE_INFINITY,stopOnError:n=!0,signal:i}={}){return new Promise((o,a)=>{if(void 0===e[Symbol.iterator]&&void 0===e[Symbol.asyncIterator])throw new TypeError(`Expected \`input\` to be either an \`Iterable\` or \`AsyncIterable\`, got (${typeof e})`);if("function"!=typeof t)throw new TypeError("Mapper function is required");if(!Number.isSafeInteger(r)&&r!==Number.POSITIVE_INFINITY||!(r>=1))throw new TypeError(`Expected \`concurrency\` to be an integer from 1 and up or \`Infinity\`, got \`${r}\` (${typeof r})`);const s=[],c=[],l=new Map;let u=!1,h=!1,p=!1,f=0,d=0;const m=void 0===e[Symbol.iterator]?e[Symbol.asyncIterator]():e[Symbol.iterator](),g=e=>{u=!0,h=!0,a(e)};i&&(i.aborted&&g(Mf(i)),i.addEventListener("abort",()=>{g(Mf(i))}));const E=async()=>{if(h)return;const e=await m.next(),r=d;if(d++,e.done){if(p=!0,0===f&&!h){if(!n&&c.length>0)return void g(new If(c));if(h=!0,0===l.size)return void o(s);const e=[];for(const[t,r]of s.entries())l.get(t)!==Hf&&e.push(r);o(e)}}else f++,(async()=>{try{const n=await e.value;if(h)return;const i=await t(n,r);i===Hf&&l.set(r,i),s[r]=i,f--,await E()}catch(e){if(n)g(e);else{c.push(e),f--;try{await E()}catch(e){g(e)}}}})()};(async()=>{for(let e=0;e<r;e++){try{await E()}catch(e){g(e);break}if(p||u)break}})()})}const Hf=Symbol("skip");function Bf(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}class Uf extends Cf{format="ebook";article;setArticle(e){const t=this.book.summary.getArticle(t=>t.getRef()===e);if(!t)throw new Error(`article ${e} not found`);this.article=t}async initPlugins(){this.book.config.setValue("theme","ebook"),this.options.plugins.preset["theme-ebook"]={},await super.initPlugins()}async generateArticles(){this.article?await this.generateArticle(this.article):await super.generateArticles()}async createDOM(e,t){const r=new Of,n=new S.VirtualConsole;n.on("debug",e=>{le.debug(e)}),n.on("error",e=>{le.error(e)}),n.on("jsdomError",e=>{le.error(e)});let i=!1,o=0;const a=new S.JSDOM(e,{virtualConsole:n,url:`file:///${this.tmpFS.resolve(t.path)}`,runScripts:"dangerously",resources:r,pretendToBeVisual:!0,beforeParse(e){e.SC_DISABLE_SPEEDY=!0;const{document:t}=e,r={attributes:!0,childList:!0,subtree:!0};e.addEventListener("load",()=>{const n=new e.MutationObserver(function(e){for(const t of e)"childList"===t.type&&t.addedNodes.forEach(e=>{if("SCRIPT"===e.nodeName){++o;e.addEventListener("load",()=>{--o})}})});n.observe(t.head,r)}),e.addEventListener("pageLoaded",()=>{i=!0})}});return await wf(()=>{if(!i||o>0)throw new Error("render html timeout")},{stopAfter:5e3,tryEvery:100}),a}async renderFile(e,t){const r=await super.renderFile(e,t),n=await this.createDOM(r,e);await Ff(Array.from(n.window.document.images),async(t,r)=>{if(t.src){const n=a.parse(t.src);if(n.protocol?.startsWith("http"))try{le.info(`fetch image#${r}: ${t.src}`),t.src=await this.fetchImage(e,t.src),le.info(`image#${r} fetch succeed`)}catch{le.warn(`image#${r} ${t.src} fetch failed`)}}},{concurrency:3});for(const e of Array.from(n.window.document.scripts))e.remove();return n.serialize()}async fetchImage(e,t){const r=await pe.request.get(t,{responseType:"stream",timeout:5e3,headers:{"User-Agent":`TopWriteBuilder/${this.version}`}});let n=`_images/${pe.md5(t)}`;const i=te.default.extension(r.headers["content-type"]);i&&(n+=`.${i}`);const o=this.tmpFS.createWriteStream(n);return new Promise((t,i)=>{r.data.pipe(o),o.on("error",e=>{o.close(),i(e)}),o.on("close",()=>{t(e.relative(n))})})}async 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-chapter')]","level1-toc":"descendant-or-self::*[contains(concat(' ', normalize-space(@class), ' '), 'book-level1-toc')]","level2-toc":"descendant-or-self::*[contains(concat(' ', normalize-space(@class), ' '), 'book-level2-toc')]","level3-toc":"descendant-or-self::*[contains(concat(' ', normalize-space(@class), ' '), 'book-level3-toc')]","max-toc-links":"0","max-levels":"1","no-chapters-in-toc":!0,"breadth-first":!0};switch(e){case"docx":r["docx-no-toc"]=!0,r["docx-no-cover"]=!0,r["page-breaks-before"]="/",r["preserve-cover-aspect-ratio"]=!0;break;case"epub":r["dont-split-on-page-breaks"]=!0;break;case"pdf":const e={poweredBy:this.options.poweredBy},n=await Z.default.renderFile(M.default.resolve(__dirname,"../templates/pdf-header.ejs"),e,{rmWhitespace:!0}),i=await Z.default.renderFile(M.default.resolve(__dirname,"../templates/pdf-footer.ejs"),e,{rmWhitespace:!0});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["disable-font-rescaling"]=!0,this.article||(r["pdf-header-template"]=n),r["pdf-footer-template"]=i}return r}async packBook(){const e=M.default.extname(this.dest).substr(1);if(!["pdf","docx","epub"].includes(e))return super.packBook();const t=await A.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)||!xf(t.excludes,r))&&(!Array.isArray(t.includes)||xf(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}(await this.getConvertOptions(e)),n=this.article?this.tmpFS.resolve(this.article.path):this.tmpFS.resolve("index.html");return r.unshift(n,this.dest),new Promise((e,i)=>{le.info("convert book ...");const o=$.default(t,r,{stdio:["inherit"],cwd:this.tmpFS.root}),a=["^Conversion options ","^ \\w+: ","^Blocking URL ","^Ignoring CSS ","^Ignoring internal ","^CSSStyleDeclaration: ","^CSSStylesheet: ","^PropertyValue: ","^CSSVariable: ",Bf(n),Bf(this.dest)].map(e=>`(${e})`).join("|"),s=new RegExp(`(${a})`);o.stdout?.on("data",e=>{e.toString().replace(/[\r\n]*$/,"").split("\n").forEach(e=>{if(e){const t=e.trim();e.match(s)?le.debug({message:t,type:"log"}):le.log(t)}})}),o.stderr?.on("data",e=>{le.error(e.toString().trimEnd())}),o.on("close",t=>{0!==t?i("Convert failed"):e()})})}}var jf=ne.default,qf=process.cwd,zf=null,Gf=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return zf||(zf=qf.call(process)),zf};try{process.cwd()}catch(e){}if("function"==typeof process.chdir){var Kf=process.chdir;process.chdir=function(e){zf=null,Kf.call(process,e)},Object.setPrototypeOf&&Object.setPrototypeOf(process.chdir,Kf)}var $f=function(e){jf.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)&&function(e){e.lchmod=function(t,r,n){e.open(t,jf.O_WRONLY|jf.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,jf.O_WRONLY|jf.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){jf.hasOwnProperty("O_SYMLINK")&&e.futimes?(e.lutimes=function(t,r,n,i){e.open(t,jf.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,jf.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.futimes&&(e.lutimes=function(e,t,r,n){n&&process.nextTick(n)},e.lutimesSync=function(){})}(e);e.chown=n(e.chown),e.fchown=n(e.fchown),e.lchown=n(e.lchown),e.chmod=t(e.chmod),e.fchmod=t(e.fchmod),e.lchmod=t(e.lchmod),e.chownSync=i(e.chownSync),e.fchownSync=i(e.fchownSync),e.lchownSync=i(e.lchownSync),e.chmodSync=r(e.chmodSync),e.fchmodSync=r(e.fchmodSync),e.lchmodSync=r(e.lchmodSync),e.stat=o(e.stat),e.fstat=o(e.fstat),e.lstat=o(e.lstat),e.statSync=a(e.statSync),e.fstatSync=a(e.fstatSync),e.lstatSync=a(e.lstatSync),e.chmod&&!e.lchmod&&(e.lchmod=function(e,t,r){r&&process.nextTick(r)},e.lchmodSync=function(){});e.chown&&!e.lchown&&(e.lchown=function(e,t,r,n){n&&process.nextTick(n)},e.lchownSync=function(){});"win32"===Gf&&(e.rename="function"!=typeof e.rename?e.rename:function(t){function r(r,n,i){var o=Date.now(),a=0;t(r,n,function s(c){if(c&&("EACCES"===c.code||"EPERM"===c.code||"EBUSY"===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)})}return Object.setPrototypeOf&&Object.setPrototypeOf(r,t),r}(e.rename));function t(t){return t?function(r,n,i){return t.call(e,r,n,function(e){s(e)&&(e=null),i&&i.apply(this,arguments)})}:t}function r(t){return t?function(r,n){try{return t.call(e,r,n)}catch(e){if(!s(e))throw e}}:t}function n(t){return t?function(r,n,i,o){return t.call(e,r,n,i,function(e){s(e)&&(e=null),o&&o.apply(this,arguments)})}:t}function i(t){return t?function(r,n,i){try{return t.call(e,r,n,i)}catch(e){if(!s(e))throw e}}:t}function o(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 a(t){return t?function(r,n){var i=n?t.call(e,r,n):t.call(e,r);return i&&(i.uid<0&&(i.uid+=4294967296),i.gid<0&&(i.gid+=4294967296)),i}:t}function s(e){return!e||("ENOSYS"===e.code||!(process.getuid&&0===process.getuid()||"EINVAL"!==e.code&&"EPERM"!==e.code))}e.read="function"!=typeof e.read?e.read:function(t){function r(r,n,i,o,a,s){var c;if(s&&"function"==typeof s){var l=0;c=function(u,h,p){if(u&&"EAGAIN"===u.code&&l<10)return l++,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="function"!=typeof e.readSync?e.readSync:(c=e.readSync,function(t,r,n,i,o){for(var a=0;;)try{return c.call(e,t,r,n,i,o)}catch(e){if("EAGAIN"===e.code&&a<10){a++;continue}throw e}});var c};var Vf=G.default.Stream,Qf=function(e){return{ReadStream:function t(r,n){if(!(this instanceof t))return new t(r,n);Vf.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);Vf.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 Wf=function(e){if(null===e||"object"!=typeof e)return e;if(e instanceof Object)var t={__proto__:Yf(e)};else t=Object.create(null);return Object.getOwnPropertyNames(e).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))}),t},Yf=Object.getPrototypeOf||function(e){return e.__proto__};var Xf,Jf,Zf=Q.default,ed=$f,td=Qf,rd=Wf,nd=ie.default;function id(e,t){Object.defineProperty(e,Xf,{get:function(){return t}})}"function"==typeof Symbol&&"function"==typeof Symbol.for?(Xf=Symbol.for("graceful-fs.queue"),Jf=Symbol.for("graceful-fs.previous")):(Xf="___graceful-fs.queue",Jf="___graceful-fs.previous");var od=function(){};if(nd.debuglog?od=nd.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&(od=function(){var e=nd.format.apply(nd,arguments);e="GFS4: "+e.split(/\n/).join("\nGFS4: "),console.error(e)}),!Zf[Xf]){var ad=ue[Xf]||[];id(Zf,ad),Zf.close=function(e){function t(t,r){return e.call(Zf,t,function(e){e||hd(),"function"==typeof r&&r.apply(this,arguments)})}return Object.defineProperty(t,Jf,{value:e}),t}(Zf.close),Zf.closeSync=function(e){function t(t){e.apply(Zf,arguments),hd()}return Object.defineProperty(t,Jf,{value:e}),t}(Zf.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){od(Zf[Xf]),j.default.equal(Zf[Xf].length,0)})}ue[Xf]||id(ue,Zf[Xf]);var sd,cd=ld(rd(Zf));function ld(e){ed(e),e.gracefulify=ld,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):ud([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):ud([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):ud([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):ud([e,[t,r,n,o],i,a||Date.now(),Date.now()])})}(e,t,r,n)});var o=e.readdir;e.readdir=function(e,t,r){"function"==typeof t&&(r=t,t=null);var n=a.test(process.version)?function(e,t,r,n){return o(e,i(e,t,r,n))}:function(e,t,r,n){return o(e,t,i(e,t,r,n))};return n(e,t,r);function i(e,t,r,i){return function(o,a){!o||"EMFILE"!==o.code&&"ENFILE"!==o.code?(a&&a.sort&&a.sort(),"function"==typeof r&&r.call(this,o,a)):ud([n,[e,t,r],o,i||Date.now(),Date.now()])}}};var a=/^v[0-5]\./;if("v0.8"===process.version.substr(0,4)){var s=td(e);p=s.ReadStream,f=s.WriteStream}var c=e.ReadStream;c&&(p.prototype=Object.create(c.prototype),p.prototype.open=function(){var e=this;m(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 l=e.WriteStream;l&&(f.prototype=Object.create(l.prototype),f.prototype.open=function(){var e=this;m(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 p},set:function(e){p=e},enumerable:!0,configurable:!0}),Object.defineProperty(e,"WriteStream",{get:function(){return f},set:function(e){f=e},enumerable:!0,configurable:!0});var u=p;Object.defineProperty(e,"FileReadStream",{get:function(){return u},set:function(e){u=e},enumerable:!0,configurable:!0});var h=f;function p(e,t){return this instanceof p?(c.apply(this,arguments),this):p.apply(Object.create(p.prototype),arguments)}function f(e,t){return this instanceof f?(l.apply(this,arguments),this):f.apply(Object.create(f.prototype),arguments)}Object.defineProperty(e,"FileWriteStream",{get:function(){return h},set:function(e){h=e},enumerable:!0,configurable:!0});var d=e.open;function m(e,t,r,n){return"function"==typeof r&&(n=r,r=null),function e(t,r,n,i,o){return d(t,r,n,function(a,s){!a||"EMFILE"!==a.code&&"ENFILE"!==a.code?"function"==typeof i&&i.apply(this,arguments):ud([e,[t,r,n,i],a,o||Date.now(),Date.now()])})}(e,t,r,n)}return e.open=m,e}function ud(e){od("ENQUEUE",e[0].name,e[1]),Zf[Xf].push(e),pd()}function hd(){for(var e=Date.now(),t=0;t<Zf[Xf].length;++t)Zf[Xf][t].length>2&&(Zf[Xf][t][3]=e,Zf[Xf][t][4]=e);pd()}function pd(){if(clearTimeout(sd),sd=void 0,0!==Zf[Xf].length){var e=Zf[Xf].shift(),t=e[0],r=e[1],n=e[2],i=e[3],o=e[4];if(void 0===i)od("RETRY",t.name,r),t.apply(null,r);else if(Date.now()-i>=6e4){od("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)?(od("RETRY",t.name,r),t.apply(null,r.concat([i]))):Zf[Xf].push(e)}void 0===sd&&(sd=setTimeout(pd,0))}}process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!Zf.__patched&&(cd=ld(Zf),Zf.__patched=!0);var fd=cd;const dd=re.default.homedir(),{env:md}=process,gd=md.XDG_DATA_HOME||(dd?M.default.join(dd,".local","share"):void 0),Ed=md.XDG_CONFIG_HOME||(dd?M.default.join(dd,".config"):void 0);md.XDG_STATE_HOME||dd&&M.default.join(dd,".local","state"),md.XDG_CACHE_HOME||dd&&M.default.join(dd,".cache"),md.XDG_RUNTIME_DIR;const yd=(md.XDG_DATA_DIRS||"/usr/local/share/:/usr/share/").split(":");gd&&yd.unshift(gd);const Td=(md.XDG_CONFIG_DIRS||"/etc/xdg").split(":");Ed&&Td.unshift(Ed);var vd={exports:{}},bd={exports:{}};
|
|
8
|
+
*/var Zn=function(e){return null!=e&&null!=e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)},eo=Object.prototype.hasOwnProperty,to=Object.prototype.toString,ro=Object.defineProperty,no=Object.getOwnPropertyDescriptor,oo=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===to.call(e)},io=function(e){if(!e||"[object Object]"!==to.call(e))return!1;var t,r=eo.call(e,"constructor"),n=e.constructor&&e.constructor.prototype&&eo.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!r&&!n)return!1;for(t in e);return void 0===t||eo.call(e,t)},so=function(e,t){ro&&"__proto__"===t.name?ro(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},ao=function(e,t){if("__proto__"===t){if(!eo.call(e,t))return;if(no)return no(e,t).value}return e[t]},co=function e(){var t,r,n,o,i,s,a=arguments[0],c=1,l=arguments.length,u=!1;for("boolean"==typeof a&&(u=a,a=arguments[1]||{},c=2),(null==a||"object"!=typeof a&&"function"!=typeof a)&&(a={});c<l;++c)if(null!=(t=arguments[c]))for(r in t)n=ao(a,r),a!==(o=ao(t,r))&&(u&&o&&(io(o)||(i=oo(o)))?(i?(i=!1,s=n&&oo(n)?n:[]):s=n&&io(n)?n:{},so(a,{name:r,newValue:e(u,s,o)})):void 0!==o&&so(a,{name:r,newValue:o}));return a};function lo(e){if("object"!=typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)}function uo(){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 o(i,...s){const a=e[++r];let c=-1;if(i)n(i);else{for(;++c<t.length;)null!==s[c]&&void 0!==s[c]||(s[c]=t[c]);t=s,a?function(e,t){let r;return n;function n(...t){const n=e.length>t.length;let s;n&&t.push(o);try{s=e.apply(this,t)}catch(e){if(n&&r)throw e;return o(e)}n||(s&&s.then&&"function"==typeof s.then?s.then(i,o):s instanceof Error?o(s):i(s))}function o(e,...n){r||(r=!0,t(e,...n))}function i(e){o(null,e)}}(a,o)(...s):n(null,...s)}}(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}function ho(e){return e&&"object"==typeof e?"position"in e||"type"in e?po(e.position):"start"in e||"end"in e?po(e):"line"in e||"column"in e?fo(e):"":""}function fo(e){return mo(e&&e.line)+":"+mo(e&&e.column)}function po(e){return fo(e&&e.start)+"-"+fo(e&&e.end)}function mo(e){return e&&"number"==typeof e?e:1}class go extends Error{constructor(e,t,r){const n=[null,null];let o={start:{line:null,column:null},end:{line:null,column:null}};if(super(),"string"==typeof t&&(r=t,t=void 0),"string"==typeof r){const e=r.indexOf(":");-1===e?n[1]=r:(n[0]=r.slice(0,e),n[1]=r.slice(e+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=ho(t)||"1:1",this.message="object"==typeof e?e.message:e,this.stack="","object"==typeof e&&e.stack&&(this.stack=e.stack),this.reason=this.message,this.fatal,this.line=o.start.line,this.column=o.start.column,this.position=o,this.source=n[0],this.ruleId=n[1],this.file,this.actual,this.expected,this.url,this.note}}function yo(e){return null!==e&&"object"==typeof e&&e.href&&e.origin}go.prototype.file="",go.prototype.name="",go.prototype.reason="",go.prototype.message="",go.prototype.stack="",go.prototype.fatal=null,go.prototype.column=null,go.prototype.line=null,go.prototype.source=null,go.prototype.ruleId=null,go.prototype.position=null;const Eo=["history","path","basename","stem","extname","dirname"];class To{constructor(e){let t;t=e?"string"==typeof e||function(e){return Zn(e)}(e)?{value:e}:yo(e)?{path:e}:e:{},this.data={},this.messages=[],this.history=[],this.cwd=H.default.cwd(),this.value,this.stored,this.result,this.map;let r,n=-1;for(;++n<Eo.length;){const e=Eo[n];e in t&&void 0!==t[e]&&null!==t[e]&&(this[e]="history"===e?[...t[e]]:t[e])}for(r in t)Eo.includes(r)||(this[r]=t[r])}get path(){return this.history[this.history.length-1]}set path(e){yo(e)&&(e=s.fileURLToPath(e)),bo(e,"path"),this.path!==e&&this.history.push(e)}get dirname(){return"string"==typeof this.path?M.default.dirname(this.path):void 0}set dirname(e){_o(this.basename,"dirname"),this.path=M.default.join(e||"",this.basename)}get basename(){return"string"==typeof this.path?M.default.basename(this.path):void 0}set basename(e){bo(e,"basename"),vo(e,"basename"),this.path=M.default.join(this.dirname||"",e)}get extname(){return"string"==typeof this.path?M.default.extname(this.path):void 0}set extname(e){if(vo(e,"extname"),_o(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=M.default.join(this.dirname,this.stem+(e||""))}get stem(){return"string"==typeof this.path?M.default.basename(this.path,this.extname):void 0}set stem(e){bo(e,"stem"),vo(e,"stem"),this.path=M.default.join(this.dirname||"",e+(this.extname||""))}toString(e){return(this.value||"").toString(e||void 0)}message(e,t,r){const n=new go(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 vo(e,t){if(e&&e.includes(M.default.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+M.default.sep+"`")}function bo(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function _o(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}const Ao=function e(){const t=uo(),r=[];let n,o={},i=-1;return s.data=function(e,t){if("string"==typeof e)return 2===arguments.length?(xo("data",n),o[e]=t,s):So.call(o,e)&&o[e]||null;if(e)return xo("data",n),o=e,s;return o},s.Parser=void 0,s.Compiler=void 0,s.freeze=function(){if(n)return s;for(;++i<r.length;){const[e,...n]=r[i];if(!1===n[0])continue;!0===n[0]&&(n[0]=void 0);const o=e.call(s,...n);"function"==typeof o&&t.use(o)}return n=!0,i=Number.POSITIVE_INFINITY,s},s.attachers=r,s.use=function(e,...t){let i;if(xo("use",n),null==e);else if("function"==typeof e)u(e,...t);else{if("object"!=typeof e)throw new TypeError("Expected usable value, not `"+e+"`");Array.isArray(e)?l(e):c(e)}i&&(o.settings=Object.assign(o.settings||{},i));return s;function a(e){if("function"==typeof e)u(e);else{if("object"!=typeof e)throw new TypeError("Expected usable value, not `"+e+"`");if(Array.isArray(e)){const[t,...r]=e;u(t,...r)}else c(e)}}function c(e){l(e.plugins),e.settings&&(i=Object.assign(i||{},e.settings))}function l(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;){a(e[t])}}}function u(e,t){let n,o=-1;for(;++o<r.length;)if(r[o][0]===e){n=r[o];break}n?(lo(n[1])&&lo(t)&&(t=co(!0,n[1],t)),n[1]=t):r.push([...arguments])}},s.parse=function(e){s.freeze();const t=No(e),r=s.Parser;if(wo("parse",r),ko(r,"parse"))return new r(String(t),t).parse();return r(String(t),t)},s.stringify=function(e,t){s.freeze();const r=No(t),n=s.Compiler;if(Co("stringify",n),Oo(e),ko(n,"compile"))return new n(e,r).compile();return n(e,r)},s.run=function(e,r,n){Oo(e),s.freeze(),n||"function"!=typeof r||(n=r,r=void 0);if(!n)return new Promise(o);function o(o,i){function s(t,r,s){r=r||e,t?i(t):o?o(r):n(null,r,s)}t.run(e,No(r),s)}o(null,n)},s.runSync=function(e,t){let r,n;return s.run(e,t,o),Ro("runSync","run",n),r;function o(e,t){Jn(e),r=t,n=!0}},s.process=function(e,t){if(s.freeze(),wo("process",s.Parser),Co("process",s.Compiler),!t)return new Promise(r);function r(r,n){const o=No(e);function i(e,o){e||!o?n(e):r?r(o):t(null,o)}s.run(s.parse(o),o,(e,t,r)=>{if(!e&&t&&r){const n=s.stringify(t,r);null==n||(!function(e){return"string"==typeof e||Zn(e)}(n)?r.result=n:r.value=n),i(e,r)}else i(e)})}r(null,t)},s.processSync=function(e){let t;s.freeze(),wo("processSync",s.Parser),Co("processSync",s.Compiler);const r=No(e);return s.process(r,n),Ro("processSync","process",t),r;function n(e){t=!0,Jn(e)}},s;function s(){const t=e();let n=-1;for(;++n<r.length;)t.use(...r[n]);return t.data(co(!0,{},o)),t}}().freeze(),So={}.hasOwnProperty;function ko(e,t){return"function"==typeof e&&e.prototype&&(function(e){let t;for(t in e)if(So.call(e,t))return!0;return!1}(e.prototype)||t in e.prototype)}function wo(e,t){if("function"!=typeof t)throw new TypeError("Cannot `"+e+"` without `Parser`")}function Co(e,t){if("function"!=typeof t)throw new TypeError("Cannot `"+e+"` without `Compiler`")}function xo(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 Oo(e){if(!lo(e)||"string"!=typeof e.type)throw new TypeError("Expected node, got `"+e+"`")}function Ro(e,t,r){if(!r)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function No(e){return function(e){return Boolean(e&&"object"==typeof e&&"message"in e&&"messages"in e)}(e)?e:new To(e)}var Po=pe(Object.freeze({__proto__:null,unified:Ao}));const Io={};function Lo(e,t){const r=t||Io;return Do(e,"boolean"!=typeof r.includeImageAlt||r.includeImageAlt,"boolean"!=typeof r.includeHtml||r.includeHtml)}function Do(e,t,r){if(function(e){return Boolean(e&&"object"==typeof e)}(e)){if("value"in e)return"html"!==e.type||r?e.value:"";if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return Fo(e.children,t,r)}return Array.isArray(e)?Fo(e,t,r):""}function Fo(e,t,r){const n=[];let o=-1;for(;++o<e.length;)n[o]=Do(e[o],t,r);return n.join("")}function Mo(e,t,r,n){const o=e.length;let i,s=0;if(t=t<0?-t>o?0:o+t:t>o?o:t,r=r>0?r:0,n.length<1e4)i=Array.from(n),i.unshift(t,r),e.splice(...i);else for(r&&e.splice(t,r);s<n.length;)i=n.slice(s,s+1e4),i.unshift(t,0),e.splice(...i),s+=1e4,t+=1e4}function Bo(e,t){return e.length>0?(Mo(e,e.length,0,t),e):t}const Uo={}.hasOwnProperty;function Ho(e){const t={};let r=-1;for(;++r<e.length;)jo(t,e[r]);return t}function jo(e,t){let r;for(r in t){const n=(Uo.call(e,r)?e[r]:void 0)||(e[r]={}),o=t[r];let i;if(o)for(i in o){Uo.call(n,i)||(n[i]=[]);const e=o[i];qo(n[i],Array.isArray(e)?e:e?[e]:[])}}}function qo(e,t){let r=-1;const n=[];for(;++r<t.length;)("after"===t[r].add?e:n).push(t[r]);Mo(e,0,0,n)}const zo=ti(/[A-Za-z]/),Go=ti(/[\dA-Za-z]/),$o=ti(/[#-'*+\--9=?A-Z^-~]/);function Ko(e){return null!==e&&(e<32||127===e)}const Vo=ti(/\d/),Wo=ti(/[\dA-Fa-f]/),Qo=ti(/[!-/:-@[-`{-~]/);function Yo(e){return null!==e&&e<-2}function Xo(e){return null!==e&&(e<0||32===e)}function Jo(e){return-2===e||-1===e||32===e}const Zo=ti(/[!-\/:-@\[-`\{-~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]/),ei=ti(/\s/);function ti(e){return function(t){return null!==t&&e.test(String.fromCharCode(t))}}var ri=Object.freeze({__proto__:null,asciiAlpha:zo,asciiAlphanumeric:Go,asciiAtext:$o,asciiControl:Ko,asciiDigit:Vo,asciiHexDigit:Wo,asciiPunctuation:Qo,markdownLineEnding:Yo,markdownLineEndingOrSpace:Xo,markdownSpace:Jo,unicodePunctuation:Zo,unicodeWhitespace:ei});function ni(e,t,r,n){const o=n?n-1:Number.POSITIVE_INFINITY;let i=0;return function(n){if(Jo(n))return e.enter(r),s(n);return t(n)};function s(n){return Jo(n)&&i++<o?(e.consume(n),s):(e.exit(r),t(n))}}var oi=Object.freeze({__proto__:null,factorySpace:ni});const ii={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"),ni(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,o(t)}function o(t){return null===t?(e.exit("chunkText"),e.exit("paragraph"),void e.consume(t)):Yo(t)?(e.consume(t),e.exit("chunkText"),n):(e.consume(t),o)}}};const si={tokenize:function(e){const t=this,r=[];let n,o,i,s=0;return a;function a(n){if(s<r.length){const o=r[s];return t.containerState=o[1],e.attempt(o[0].continuation,c,l)(n)}return l(n)}function c(e){if(s++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,n&&E();const r=t.events.length;let o,i=r;for(;i--;)if("exit"===t.events[i][0]&&"chunkFlow"===t.events[i][1].type){o=t.events[i][1].end;break}y(s);let a=r;for(;a<t.events.length;)t.events[a][1].end=Object.assign({},o),a++;return Mo(t.events,i+1,0,t.events.slice(r)),t.events.length=a,l(e)}return a(e)}function l(o){if(s===r.length){if(!n)return f(o);if(n.currentConstruct&&n.currentConstruct.concrete)return d(o);t.interrupt=Boolean(n.currentConstruct&&!n._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(ai,u,h)(o)}function u(e){return n&&E(),y(s),f(e)}function h(e){return t.parser.lazy[t.now().line]=s!==r.length,i=t.now().offset,d(e)}function f(r){return t.containerState={},e.attempt(ai,p,d)(r)}function p(e){return s++,r.push([t.currentConstruct,t.containerState]),f(e)}function d(r){return null===r?(n&&E(),y(0),void e.consume(r)):(n=n||t.parser.flow(t.now()),e.enter("chunkFlow",{contentType:"flow",previous:o,_tokenizer:n}),m(r))}function m(r){return null===r?(g(e.exit("chunkFlow"),!0),y(0),void e.consume(r)):Yo(r)?(e.consume(r),g(e.exit("chunkFlow")),s=0,t.interrupt=void 0,a):(e.consume(r),m)}function g(e,r){const a=t.sliceStream(e);if(r&&a.push(null),e.previous=o,o&&(o.next=e),o=e,n.defineSkip(e.start),n.write(a),t.parser.lazy[e.start.line]){let e=n.events.length;for(;e--;)if(n.events[e][1].start.offset<i&&(!n.events[e][1].end||n.events[e][1].end.offset>i))return;const r=t.events.length;let o,a,c=r;for(;c--;)if("exit"===t.events[c][0]&&"chunkFlow"===t.events[c][1].type){if(o){a=t.events[c][1].end;break}o=!0}for(y(s),e=r;e<t.events.length;)t.events[e][1].end=Object.assign({},a),e++;Mo(t.events,c+1,0,t.events.slice(r)),t.events.length=e}}function y(n){let o=r.length;for(;o-- >n;){const n=r[o];t.containerState=n[1],n[0].exit.call(t,e)}r.length=n}function E(){n.write([null]),o=void 0,n=void 0,t.containerState._closeFlow=void 0}}},ai={tokenize:function(e,t,r){return ni(e,e.attempt(this.parser.constructs.document,t,r),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}};function ci(e){return null===e||Xo(e)||ei(e)?1:Zo(e)?2:void 0}function li(e,t,r){const n=[];let o=-1;for(;++o<e.length;){const i=e[o].resolveAll;i&&!n.includes(i)&&(t=i(t,r),n.push(i))}return t}const ui={name:"attention",tokenize:function(e,t){const r=this.parser.constructs.attentionMarkers.null,n=this.previous,o=ci(n);let i;return function(t){return i=t,e.enter("attentionSequence"),s(t)};function s(a){if(a===i)return e.consume(a),s;const c=e.exit("attentionSequence"),l=ci(a),u=!l||2===l&&o||r.includes(a),h=!o||2===o&&l||r.includes(n);return c._open=Boolean(42===i?u:u&&(o||!h)),c._close=Boolean(42===i?h:h&&(l||!u)),t(a)}},resolveAll:function(e,t){let r,n,o,i,s,a,c,l,u=-1;for(;++u<e.length;)if("enter"===e[u][0]&&"attentionSequence"===e[u][1].type&&e[u][1]._close)for(r=u;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[u][1]).charCodeAt(0)){if((e[r][1]._close||e[u][1]._open)&&(e[u][1].end.offset-e[u][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[u][1].end.offset-e[u][1].start.offset)%3))continue;a=e[r][1].end.offset-e[r][1].start.offset>1&&e[u][1].end.offset-e[u][1].start.offset>1?2:1;const h=Object.assign({},e[r][1].end),f=Object.assign({},e[u][1].start);hi(h,-a),hi(f,a),i={type:a>1?"strongSequence":"emphasisSequence",start:h,end:Object.assign({},e[r][1].end)},s={type:a>1?"strongSequence":"emphasisSequence",start:Object.assign({},e[u][1].start),end:f},o={type:a>1?"strongText":"emphasisText",start:Object.assign({},e[r][1].end),end:Object.assign({},e[u][1].start)},n={type:a>1?"strong":"emphasis",start:Object.assign({},i.start),end:Object.assign({},s.end)},e[r][1].end=Object.assign({},i.start),e[u][1].start=Object.assign({},s.end),c=[],e[r][1].end.offset-e[r][1].start.offset&&(c=Bo(c,[["enter",e[r][1],t],["exit",e[r][1],t]])),c=Bo(c,[["enter",n,t],["enter",i,t],["exit",i,t],["enter",o,t]]),c=Bo(c,li(t.parser.constructs.insideSpan.null,e.slice(r+1,u),t)),c=Bo(c,[["exit",o,t],["enter",s,t],["exit",s,t],["exit",n,t]]),e[u][1].end.offset-e[u][1].start.offset?(l=2,c=Bo(c,[["enter",e[u][1],t],["exit",e[u][1],t]])):l=0,Mo(e,r-1,u-r+3,c),u=r+c.length-l-2;break}u=-1;for(;++u<e.length;)"attentionSequence"===e[u][1].type&&(e[u][1].type="data");return e}};function hi(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const fi={name:"autolink",tokenize:function(e,t,r){let n=0;return function(t){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(t),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),o};function o(t){return zo(t)?(e.consume(t),i):c(t)}function i(e){return 43===e||45===e||46===e||Go(e)?(n=1,s(e)):c(e)}function s(t){return 58===t?(e.consume(t),n=0,a):(43===t||45===t||46===t||Go(t))&&n++<32?(e.consume(t),s):(n=0,c(t))}function a(n){return 62===n?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(n),e.exit("autolinkMarker"),e.exit("autolink"),t):null===n||32===n||60===n||Ko(n)?r(n):(e.consume(n),a)}function c(t){return 64===t?(e.consume(t),l):$o(t)?(e.consume(t),c):r(t)}function l(e){return Go(e)?u(e):r(e)}function u(r){return 46===r?(e.consume(r),n=0,l):62===r?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(r),e.exit("autolinkMarker"),e.exit("autolink"),t):h(r)}function h(t){if((45===t||Go(t))&&n++<63){const r=45===t?h:u;return e.consume(t),r}return r(t)}}};const pi={tokenize:function(e,t,r){return function(t){return Jo(t)?ni(e,n,"linePrefix")(t):n(t)};function n(e){return null===e||Yo(e)?t(e):r(e)}},partial:!0};const di={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"),o}return r(t)};function o(r){return Jo(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){const n=this;return function(t){if(Jo(t))return ni(e,o,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t);return o(t)};function o(n){return e.attempt(di,t,r)(n)}}},exit:function(e){e.exit("blockQuote")}};const mi={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 Qo(n)?(e.enter("characterEscapeValue"),e.consume(n),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):r(n)}}};const gi={AElig:"Æ",AMP:"&",Aacute:"Á",Abreve:"Ă",Acirc:"Â",Acy:"А",Afr:"𝔄",Agrave:"À",Alpha:"Α",Amacr:"Ā",And:"⩓",Aogon:"Ą",Aopf:"𝔸",ApplyFunction:"",Aring:"Å",Ascr:"𝒜",Assign:"≔",Atilde:"Ã",Auml:"Ä",Backslash:"∖",Barv:"⫧",Barwed:"⌆",Bcy:"Б",Because:"∵",Bernoullis:"ℬ",Beta:"Β",Bfr:"𝔅",Bopf:"𝔹",Breve:"˘",Bscr:"ℬ",Bumpeq:"≎",CHcy:"Ч",COPY:"©",Cacute:"Ć",Cap:"⋒",CapitalDifferentialD:"ⅅ",Cayleys:"ℭ",Ccaron:"Č",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:"Ŋ",ETH:"Ð",Eacute:"É",Ecaron:"Ě",Ecirc:"Ê",Ecy:"Э",Edot:"Ė",Efr:"𝔈",Egrave:"È",Element:"∈",Emacr:"Ē",EmptySmallSquare:"◻",EmptyVerySmallSquare:"▫",Eogon:"Ę",Eopf:"𝔼",Epsilon:"Ε",Equal:"⩵",EqualTilde:"≂",Equilibrium:"⇌",Escr:"ℰ",Esim:"⩳",Eta:"Η",Euml:"Ë",Exists:"∃",ExponentialE:"ⅇ",Fcy:"Ф",Ffr:"𝔉",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",Fopf:"𝔽",ForAll:"∀",Fouriertrf:"ℱ",Fscr:"ℱ",GJcy:"Ѓ",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:"Ё",Iacute:"Í",Icirc:"Î",Icy:"И",Idot:"İ",Ifr:"ℑ",Igrave:"Ì",Im:"ℑ",Imacr:"Ī",ImaginaryI:"ⅈ",Implies:"⇒",Int:"∬",Integral:"∫",Intersection:"⋂",InvisibleComma:"",InvisibleTimes:"",Iogon:"Į",Iopf:"𝕀",Iota:"Ι",Iscr:"ℐ",Itilde:"Ĩ",Iukcy:"І",Iuml:"Ï",Jcirc:"Ĵ",Jcy:"Й",Jfr:"𝔍",Jopf:"𝕁",Jscr:"𝒥",Jsercy:"Ј",Jukcy:"Є",KHcy:"Х",KJcy:"Ќ",Kappa:"Κ",Kcedil:"Ķ",Kcy:"К",Kfr:"𝔎",Kopf:"𝕂",Kscr:"𝒦",LJcy:"Љ",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:"𝒩",Ntilde:"Ñ",Nu:"Ν",OElig:"Œ",Oacute:"Ó",Ocirc:"Ô",Ocy:"О",Odblac:"Ő",Ofr:"𝔒",Ograve:"Ò",Omacr:"Ō",Omega:"Ω",Omicron:"Ο",Oopf:"𝕆",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",Or:"⩔",Oscr:"𝒪",Oslash:"Ø",Otilde:"Õ",Otimes:"⨷",Ouml:"Ö",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",PartialD:"∂",Pcy:"П",Pfr:"𝔓",Phi:"Φ",Pi:"Π",PlusMinus:"±",Poincareplane:"ℌ",Popf:"ℙ",Pr:"⪻",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",Prime:"″",Product:"∏",Proportion:"∷",Proportional:"∝",Pscr:"𝒫",Psi:"Ψ",QUOT:'"',Qfr:"𝔔",Qopf:"ℚ",Qscr:"𝒬",RBarr:"⤐",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:"⋑",THORN:"Þ",TRADE:"™",TSHcy:"Ћ",TScy:"Ц",Tab:"\t",Tau:"Τ",Tcaron:"Ť",Tcedil:"Ţ",Tcy:"Т",Tfr:"𝔗",Therefore:"∴",Theta:"Θ",ThickSpace:" ",ThinSpace:" ",Tilde:"∼",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",Topf:"𝕋",TripleDot:"⃛",Tscr:"𝒯",Tstrok:"Ŧ",Uacute:"Ú",Uarr:"↟",Uarrocir:"⥉",Ubrcy:"Ў",Ubreve:"Ŭ",Ucirc:"Û",Ucy:"У",Udblac:"Ű",Ufr:"𝔘",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:"Ũ",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:"Ю",Yacute:"Ý",Ycirc:"Ŷ",Ycy:"Ы",Yfr:"𝔜",Yopf:"𝕐",Yscr:"𝒴",Yuml:"Ÿ",ZHcy:"Ж",Zacute:"Ź",Zcaron:"Ž",Zcy:"З",Zdot:"Ż",ZeroWidthSpace:"",Zeta:"Ζ",Zfr:"ℨ",Zopf:"ℤ",Zscr:"𝒵",aacute:"á",abreve:"ă",ac:"∾",acE:"∾̳",acd:"∿",acirc:"â",acute:"´",acy:"а",aelig:"æ",af:"",afr:"𝔞",agrave:"à",alefsym:"ℵ",aleph:"ℵ",alpha:"α",amacr:"ā",amalg:"⨿",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:"≊",aring:"å",ascr:"𝒶",ast:"*",asymp:"≈",asympeq:"≍",atilde:"ã",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:"˘",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:"č",ccedil:"ç",ccirc:"ĉ",ccups:"⩌",ccupssm:"⩐",cdot:"ċ",cedil:"¸",cemptyv:"⦲",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:"∐",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:"⋏",curren:"¤",curvearrowleft:"↶",curvearrowright:"↷",cuvee:"⋎",cuwed:"⋏",cwconint:"∲",cwint:"∱",cylcty:"⌭",dArr:"⇓",dHar:"⥥",dagger:"†",daleth:"ℸ",darr:"↓",dash:"‐",dashv:"⊣",dbkarow:"⤏",dblac:"˝",dcaron:"ď",dcy:"д",dd:"ⅆ",ddagger:"‡",ddarr:"⇊",ddotseq:"⩷",deg:"°",delta:"δ",demptyv:"⦱",dfisht:"⥿",dfr:"𝔡",dharl:"⇃",dharr:"⇂",diam:"⋄",diamond:"⋄",diamondsuit:"♦",diams:"♦",die:"¨",digamma:"ϝ",disin:"⋲",div:"÷",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:"≑",eacute:"é",easter:"⩮",ecaron:"ě",ecir:"≖",ecirc:"ê",ecolon:"≕",ecy:"э",edot:"ė",ee:"ⅇ",efDot:"≒",efr:"𝔢",eg:"⪚",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:"η",eth:"ð",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:"⨍",frac12:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",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:"⪐",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:"‐",iacute:"í",ic:"",icirc:"î",icy:"и",iecy:"е",iexcl:"¡",iff:"⇔",ifr:"𝔦",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:"⨼",iquest:"¿",iscr:"𝒾",isin:"∈",isinE:"⋹",isindot:"⋵",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"",itilde:"ĩ",iukcy:"і",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:"⪅",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:"ł",lt:"<",ltcc:"⪦",ltcir:"⩹",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltrPar:"⦖",ltri:"◃",ltrie:"⊴",ltrif:"◂",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",mDDot:"∺",macr:"¯",male:"♂",malt:"✠",maltese:"✠",map:"↦",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",mcy:"м",mdash:"—",measuredangle:"∡",mfr:"𝔪",mho:"℧",micro:"µ",mid:"∣",midast:"*",midcir:"⫰",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:"ℕ",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:"𝕟",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:"≹",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:"Ⓢ",oacute:"ó",oast:"⊛",ocir:"⊚",ocirc:"ô",ocy:"о",odash:"⊝",odblac:"ő",odiv:"⨸",odot:"⊙",odsold:"⦼",oelig:"œ",ofcir:"⦿",ofr:"𝔬",ogon:"˛",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:"ℴ",oslash:"ø",osol:"⊘",otilde:"õ",otimes:"⊗",otimesas:"⨶",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:"⩲",plusmn:"±",plussim:"⨦",plustwo:"⨧",pm:"±",pointint:"⨕",popf:"𝕡",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:"≟",quot:'"',rAarr:"⇛",rArr:"⇒",rAtail:"⤜",rBarr:"⤏",rHar:"⥤",race:"∽̱",racute:"ŕ",radic:"√",raemptyv:"⦳",rang:"⟩",rangd:"⦒",range:"⦥",rangle:"⟩",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:"▭",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:"↘",sect:"§",semi:";",seswar:"⤩",setminus:"∖",setmn:"∖",sext:"✶",sfr:"𝔰",sfrown:"⌢",sharp:"♯",shchcy:"щ",shcy:"ш",shortmid:"∣",shortparallel:"∥",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:"♪",sup1:"¹",sup2:"²",sup3:"³",sup:"⊃",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:"⤪",szlig:"ß",target:"⌖",tau:"τ",tbrk:"⎴",tcaron:"ť",tcedil:"ţ",tcy:"т",tdot:"⃛",telrec:"⌕",tfr:"𝔱",there4:"∴",therefore:"∴",theta:"θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"∼",thinsp:" ",thkap:"≈",thksim:"∼",thorn:"þ",tilde:"˜",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:"⥣",uacute:"ú",uarr:"↑",ubrcy:"ў",ubreve:"ŭ",ucirc:"û",ucy:"у",udarr:"⇅",udblac:"ű",udhar:"⥮",ufisht:"⥾",ufr:"𝔲",ugrave:"ù",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",umacr:"ū",uml:"¨",uogon:"ų",uopf:"𝕦",uparrow:"↑",updownarrow:"↕",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",upsi:"υ",upsih:"ϒ",upsilon:"υ",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",uring:"ů",urtri:"◹",uscr:"𝓊",utdot:"⋰",utilde:"ũ",utri:"▵",utrif:"▴",uuarr:"⇈",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:"⋀",yacute:"ý",yacy:"я",ycirc:"ŷ",ycy:"ы",yen:"¥",yfr:"𝔶",yicy:"ї",yopf:"𝕪",yscr:"𝓎",yucy:"ю",yuml:"ÿ",zacute:"ź",zcaron:"ž",zcy:"з",zdot:"ż",zeetrf:"ℨ",zeta:"ζ",zfr:"𝔷",zhcy:"ж",zigrarr:"⇝",zopf:"𝕫",zscr:"𝓏",zwj:"",zwnj:""},yi={}.hasOwnProperty;function Ei(e){return!!yi.call(gi,e)&&gi[e]}const Ti={name:"characterReference",tokenize:function(e,t,r){const n=this;let o,i,s=0;return function(t){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(t),e.exit("characterReferenceMarker"),a};function a(t){return 35===t?(e.enter("characterReferenceMarkerNumeric"),e.consume(t),e.exit("characterReferenceMarkerNumeric"),c):(e.enter("characterReferenceValue"),o=31,i=Go,l(t))}function c(t){return 88===t||120===t?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(t),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),o=6,i=Wo,l):(e.enter("characterReferenceValue"),o=7,i=Vo,l(t))}function l(a){if(59===a&&s){const o=e.exit("characterReferenceValue");return i!==Go||Ei(n.sliceSerialize(o))?(e.enter("characterReferenceMarker"),e.consume(a),e.exit("characterReferenceMarker"),e.exit("characterReference"),t):r(a)}return i(a)&&s++<o?(e.consume(a),l):r(a)}}};const vi={tokenize:function(e,t,r){const n=this;return function(t){if(null===t)return r(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},bi={name:"codeFenced",tokenize:function(e,t,r){const n=this,o={tokenize:function(e,t,r){let o=0;return s;function s(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),c}function c(t){return e.enter("codeFencedFence"),Jo(t)?ni(e,l,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):l(t)}function l(t){return t===i?(e.enter("codeFencedFenceSequence"),u(t)):r(t)}function u(t){return t===i?(o++,e.consume(t),u):o>=a?(e.exit("codeFencedFenceSequence"),Jo(t)?ni(e,h,"whitespace")(t):h(t)):r(t)}function h(n){return null===n||Yo(n)?(e.exit("codeFencedFence"),t(n)):r(n)}},partial:!0};let i,s=0,a=0;return function(t){return function(t){const r=n.events[n.events.length-1];return s=r&&"linePrefix"===r[1].type?r[2].sliceSerialize(r[1],!0).length:0,i=t,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),c(t)}(t)};function c(t){return t===i?(a++,e.consume(t),c):a<3?r(t):(e.exit("codeFencedFenceSequence"),Jo(t)?ni(e,l,"whitespace")(t):l(t))}function l(r){return null===r||Yo(r)?(e.exit("codeFencedFence"),n.interrupt?t(r):e.check(vi,p,E)(r)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),u(r))}function u(t){return null===t||Yo(t)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),l(t)):Jo(t)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),ni(e,h,"whitespace")(t)):96===t&&t===i?r(t):(e.consume(t),u)}function h(t){return null===t||Yo(t)?l(t):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),f(t))}function f(t){return null===t||Yo(t)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),l(t)):96===t&&t===i?r(t):(e.consume(t),f)}function p(t){return e.attempt(o,E,d)(t)}function d(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),m}function m(t){return s>0&&Jo(t)?ni(e,g,"linePrefix",s+1)(t):g(t)}function g(t){return null===t||Yo(t)?e.check(vi,p,E)(t):(e.enter("codeFlowValue"),y(t))}function y(t){return null===t||Yo(t)?(e.exit("codeFlowValue"),g(t)):(e.consume(t),y)}function E(r){return e.exit("codeFenced"),t(r)}},concrete:!0};const _i={name:"codeIndented",tokenize:function(e,t,r){const n=this;return function(t){return e.enter("codeIndented"),ni(e,o,"linePrefix",5)(t)};function o(e){const t=n.events[n.events.length-1];return t&&"linePrefix"===t[1].type&&t[2].sliceSerialize(t[1],!0).length>=4?i(e):r(e)}function i(t){return null===t?a(t):Yo(t)?e.attempt(Ai,i,a)(t):(e.enter("codeFlowValue"),s(t))}function s(t){return null===t||Yo(t)?(e.exit("codeFlowValue"),i(t)):(e.consume(t),s)}function a(r){return e.exit("codeIndented"),t(r)}}},Ai={tokenize:function(e,t,r){const n=this;return o;function o(t){return n.parser.lazy[n.now().line]?r(t):Yo(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),o):ni(e,i,"linePrefix",5)(t)}function i(e){const i=n.events[n.events.length-1];return i&&"linePrefix"===i[1].type&&i[2].sliceSerialize(i[1],!0).length>=4?t(e):Yo(e)?o(e):r(e)}},partial:!0};const Si={name:"codeText",tokenize:function(e,t,r){let n,o,i=0;return function(t){return e.enter("codeText"),e.enter("codeTextSequence"),s(t)};function s(t){return 96===t?(e.consume(t),i++,s):(e.exit("codeTextSequence"),a(t))}function a(t){return null===t?r(t):32===t?(e.enter("space"),e.consume(t),e.exit("space"),a):96===t?(o=e.enter("codeTextSequence"),n=0,l(t)):Yo(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),a):(e.enter("codeTextData"),c(t))}function c(t){return null===t||32===t||96===t||Yo(t)?(e.exit("codeTextData"),a(t)):(e.consume(t),c)}function l(r){return 96===r?(e.consume(r),n++,l):n===i?(e.exit("codeTextSequence"),e.exit("codeText"),t(r)):(o.type="codeTextData",c(r))}},resolve:function(e){let t,r,n=e.length-4,o=3;if(!("lineEnding"!==e[o][1].type&&"space"!==e[o][1].type||"lineEnding"!==e[n][1].type&&"space"!==e[n][1].type))for(t=o;++t<n;)if("codeTextData"===e[t][1].type){e[o][1].type="codeTextPadding",e[n][1].type="codeTextPadding",o+=2,n-=2;break}t=o-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 ki(e){const t={};let r,n,o,i,s,a,c,l=-1;for(;++l<e.length;){for(;l in t;)l=t[l];if(r=e[l],l&&"chunkFlow"===r[1].type&&"listItemPrefix"===e[l-1][1].type&&(a=r[1]._tokenizer.events,o=0,o<a.length&&"lineEndingBlank"===a[o][1].type&&(o+=2),o<a.length&&"content"===a[o][1].type))for(;++o<a.length&&"content"!==a[o][1].type;)"chunkText"===a[o][1].type&&(a[o][1]._isInFirstContentOfListItem=!0,o++);if("enter"===r[0])r[1].contentType&&(Object.assign(t,wi(e,l)),l=t[l],c=!0);else if(r[1]._container){for(o=l,n=void 0;o--&&(i=e[o],"lineEnding"===i[1].type||"lineEndingBlank"===i[1].type);)"enter"===i[0]&&(n&&(e[n][1].type="lineEndingBlank"),i[1].type="lineEnding",n=o);n&&(r[1].end=Object.assign({},e[n][1].start),s=e.slice(n,l),s.unshift(r),Mo(e,n,l-n+1,s))}}return!c}function wi(e,t){const r=e[t][1],n=e[t][2];let o=t-1;const i=[],s=r._tokenizer||n.parser[r.contentType](r.start),a=s.events,c=[],l={};let u,h,f=-1,p=r,d=0,m=0;const g=[m];for(;p;){for(;e[++o][1]!==p;);i.push(o),p._tokenizer||(u=n.sliceStream(p),p.next||u.push(null),h&&s.defineSkip(p.start),p._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=!0),s.write(u),p._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=void 0)),h=p,p=p.next}for(p=r;++f<a.length;)"exit"===a[f][0]&&"enter"===a[f-1][0]&&a[f][1].type===a[f-1][1].type&&a[f][1].start.line!==a[f][1].end.line&&(m=f+1,g.push(m),p._tokenizer=void 0,p.previous=void 0,p=p.next);for(s.events=[],p?(p._tokenizer=void 0,p.previous=void 0):g.pop(),f=g.length;f--;){const t=a.slice(g[f],g[f+1]),r=i.pop();c.unshift([r,r+t.length-1]),Mo(e,r,2,t)}for(f=-1;++f<c.length;)l[d+c[f][0]]=d+c[f][1],d+=c[f][1]-c[f][0]-1;return l}const Ci={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?o(t):Yo(t)?e.check(xi,i,o)(t):(e.consume(t),n)}function o(r){return e.exit("chunkContent"),e.exit("content"),t(r)}function i(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 ki(e),e}},xi={tokenize:function(e,t,r){const n=this;return function(t){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),ni(e,o,"linePrefix")};function o(o){if(null===o||Yo(o))return r(o);const i=n.events[n.events.length-1];return!n.parser.constructs.disable.null.includes("codeIndented")&&i&&"linePrefix"===i[1].type&&i[2].sliceSerialize(i[1],!0).length>=4?t(o):e.interrupt(n.parser.constructs.flow,r,t)(o)}},partial:!0};function Oi(e,t,r,n,o,i,s,a,c){const l=c||Number.POSITIVE_INFINITY;let u=0;return function(t){if(60===t)return e.enter(n),e.enter(o),e.enter(i),e.consume(t),e.exit(i),h;if(null===t||32===t||41===t||Ko(t))return r(t);return e.enter(n),e.enter(s),e.enter(a),e.enter("chunkString",{contentType:"string"}),d(t)};function h(r){return 62===r?(e.enter(i),e.consume(r),e.exit(i),e.exit(o),e.exit(n),t):(e.enter(a),e.enter("chunkString",{contentType:"string"}),f(r))}function f(t){return 62===t?(e.exit("chunkString"),e.exit(a),h(t)):null===t||60===t||Yo(t)?r(t):(e.consume(t),92===t?p:f)}function p(t){return 60===t||62===t||92===t?(e.consume(t),f):f(t)}function d(o){return u||null!==o&&41!==o&&!Xo(o)?u<l&&40===o?(e.consume(o),u++,d):41===o?(e.consume(o),u--,d):null===o||32===o||40===o||Ko(o)?r(o):(e.consume(o),92===o?m:d):(e.exit("chunkString"),e.exit(a),e.exit(s),e.exit(n),t(o))}function m(t){return 40===t||41===t||92===t?(e.consume(t),d):d(t)}}var Ri=Object.freeze({__proto__:null,factoryDestination:Oi});function Ni(e,t,r,n,o,i){const s=this;let a,c=0;return function(t){return e.enter(n),e.enter(o),e.consume(t),e.exit(o),e.enter(i),l};function l(h){return c>999||null===h||91===h||93===h&&!a||94===h&&!c&&"_hiddenFootnoteSupport"in s.parser.constructs?r(h):93===h?(e.exit(i),e.enter(o),e.consume(h),e.exit(o),e.exit(n),t):Yo(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),l):(e.enter("chunkString",{contentType:"string"}),u(h))}function u(t){return null===t||91===t||93===t||Yo(t)||c++>999?(e.exit("chunkString"),l(t)):(e.consume(t),a||(a=!Jo(t)),92===t?h:u)}function h(t){return 91===t||92===t||93===t?(e.consume(t),c++,u):u(t)}}var Pi=Object.freeze({__proto__:null,factoryLabel:Ni});function Ii(e,t,r,n,o,i){let s;return function(t){if(34===t||39===t||40===t)return e.enter(n),e.enter(o),e.consume(t),e.exit(o),s=40===t?41:t,a;return r(t)};function a(r){return r===s?(e.enter(o),e.consume(r),e.exit(o),e.exit(n),t):(e.enter(i),c(r))}function c(t){return t===s?(e.exit(i),a(s)):null===t?r(t):Yo(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),ni(e,c,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),l(t))}function l(t){return t===s||null===t||Yo(t)?(e.exit("chunkString"),c(t)):(e.consume(t),92===t?u:l)}function u(t){return t===s||92===t?(e.consume(t),l):l(t)}}var Li=Object.freeze({__proto__:null,factoryTitle:Ii});function Di(e,t){let r;return function n(o){if(Yo(o))return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),r=!0,n;if(Jo(o))return ni(e,n,r?"linePrefix":"lineSuffix")(o);return t(o)}}var Fi=Object.freeze({__proto__:null,factoryWhitespace:Di});function Mi(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}var Bi=Object.freeze({__proto__:null,normalizeIdentifier:Mi});const Ui={name:"definition",tokenize:function(e,t,r){const n=this;let o;return function(t){return e.enter("definition"),function(t){return Ni.call(n,e,i,r,"definitionLabel","definitionLabelMarker","definitionLabelString")(t)}(t)};function i(t){return o=Mi(n.sliceSerialize(n.events[n.events.length-1][1]).slice(1,-1)),58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),s):r(t)}function s(t){return Xo(t)?Di(e,a)(t):a(t)}function a(t){return Oi(e,c,r,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(t)}function c(t){return e.attempt(Hi,l,l)(t)}function l(t){return Jo(t)?ni(e,u,"whitespace")(t):u(t)}function u(i){return null===i||Yo(i)?(e.exit("definition"),n.parser.defined.push(o),t(i)):r(i)}}},Hi={tokenize:function(e,t,r){return function(t){return Xo(t)?Di(e,n)(t):r(t)};function n(t){return Ii(e,o,r,"definitionTitle","definitionTitleMarker","definitionTitleString")(t)}function o(t){return Jo(t)?ni(e,i,"whitespace")(t):i(t)}function i(e){return null===e||Yo(e)?t(e):r(e)}},partial:!0};const ji={name:"hardBreakEscape",tokenize:function(e,t,r){return function(t){return e.enter("hardBreakEscape"),e.consume(t),n};function n(n){return Yo(n)?(e.exit("hardBreakEscape"),t(n)):r(n)}}};const qi={name:"headingAtx",tokenize:function(e,t,r){let n=0;return function(t){return e.enter("atxHeading"),function(t){return e.enter("atxHeadingSequence"),o(t)}(t)};function o(t){return 35===t&&n++<6?(e.consume(t),o):null===t||Xo(t)?(e.exit("atxHeadingSequence"),i(t)):r(t)}function i(r){return 35===r?(e.enter("atxHeadingSequence"),s(r)):null===r||Yo(r)?(e.exit("atxHeading"),t(r)):Jo(r)?ni(e,i,"whitespace")(r):(e.enter("atxHeadingText"),a(r))}function s(t){return 35===t?(e.consume(t),s):(e.exit("atxHeadingSequence"),i(t))}function a(t){return null===t||35===t||Xo(t)?(e.exit("atxHeadingText"),i(t)):(e.consume(t),a)}},resolve:function(e,t){let r,n,o=e.length-2,i=3;"whitespace"===e[i][1].type&&(i+=2);o-2>i&&"whitespace"===e[o][1].type&&(o-=2);"atxHeadingSequence"===e[o][1].type&&(i===o-1||o-4>i&&"whitespace"===e[o-2][1].type)&&(o-=i+1===o?2:4);o>i&&(r={type:"atxHeadingText",start:e[i][1].start,end:e[o][1].end},n={type:"chunkText",start:e[i][1].start,end:e[o][1].end,contentType:"text"},Mo(e,i,o-i+1,[["enter",r,t],["enter",n,t],["exit",n,t],["exit",r,t]]));return e}};const zi=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],Gi=["pre","script","style","textarea"],$i={name:"htmlFlow",tokenize:function(e,t,r){const n=this;let o,i,s,a,c;return function(t){return function(t){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(t),l}(t)};function l(a){return 33===a?(e.consume(a),u):47===a?(e.consume(a),i=!0,p):63===a?(e.consume(a),o=3,n.interrupt?t:L):zo(a)?(e.consume(a),s=String.fromCharCode(a),d):r(a)}function u(i){return 45===i?(e.consume(i),o=2,h):91===i?(e.consume(i),o=5,a=0,f):zo(i)?(e.consume(i),o=4,n.interrupt?t:L):r(i)}function h(o){return 45===o?(e.consume(o),n.interrupt?t:L):r(o)}function f(o){const i="CDATA[";return o===i.charCodeAt(a++)?(e.consume(o),6===a?n.interrupt?t:w:f):r(o)}function p(t){return zo(t)?(e.consume(t),s=String.fromCharCode(t),d):r(t)}function d(a){if(null===a||47===a||62===a||Xo(a)){const c=47===a,l=s.toLowerCase();return c||i||!Gi.includes(l)?zi.includes(s.toLowerCase())?(o=6,c?(e.consume(a),m):n.interrupt?t(a):w(a)):(o=7,n.interrupt&&!n.parser.lazy[n.now().line]?r(a):i?g(a):y(a)):(o=1,n.interrupt?t(a):w(a))}return 45===a||Go(a)?(e.consume(a),s+=String.fromCharCode(a),d):r(a)}function m(o){return 62===o?(e.consume(o),n.interrupt?t:w):r(o)}function g(t){return Jo(t)?(e.consume(t),g):S(t)}function y(t){return 47===t?(e.consume(t),S):58===t||95===t||zo(t)?(e.consume(t),E):Jo(t)?(e.consume(t),y):S(t)}function E(t){return 45===t||46===t||58===t||95===t||Go(t)?(e.consume(t),E):T(t)}function T(t){return 61===t?(e.consume(t),v):Jo(t)?(e.consume(t),T):y(t)}function v(t){return null===t||60===t||61===t||62===t||96===t?r(t):34===t||39===t?(e.consume(t),c=t,b):Jo(t)?(e.consume(t),v):_(t)}function b(t){return t===c?(e.consume(t),c=null,A):null===t||Yo(t)?r(t):(e.consume(t),b)}function _(t){return null===t||34===t||39===t||47===t||60===t||61===t||62===t||96===t||Xo(t)?T(t):(e.consume(t),_)}function A(e){return 47===e||62===e||Jo(e)?y(e):r(e)}function S(t){return 62===t?(e.consume(t),k):r(t)}function k(t){return null===t||Yo(t)?w(t):Jo(t)?(e.consume(t),k):r(t)}function w(t){return 45===t&&2===o?(e.consume(t),R):60===t&&1===o?(e.consume(t),N):62===t&&4===o?(e.consume(t),D):63===t&&3===o?(e.consume(t),L):93===t&&5===o?(e.consume(t),I):!Yo(t)||6!==o&&7!==o?null===t||Yo(t)?(e.exit("htmlFlowData"),C(t)):(e.consume(t),w):(e.exit("htmlFlowData"),e.check(Ki,F,C)(t))}function C(t){return e.check(Vi,x,F)(t)}function x(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),O}function O(t){return null===t||Yo(t)?C(t):(e.enter("htmlFlowData"),w(t))}function R(t){return 45===t?(e.consume(t),L):w(t)}function N(t){return 47===t?(e.consume(t),s="",P):w(t)}function P(t){if(62===t){const r=s.toLowerCase();return Gi.includes(r)?(e.consume(t),D):w(t)}return zo(t)&&s.length<8?(e.consume(t),s+=String.fromCharCode(t),P):w(t)}function I(t){return 93===t?(e.consume(t),L):w(t)}function L(t){return 62===t?(e.consume(t),D):45===t&&2===o?(e.consume(t),L):w(t)}function D(t){return null===t||Yo(t)?(e.exit("htmlFlowData"),F(t)):(e.consume(t),D)}function F(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},Ki={tokenize:function(e,t,r){return function(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),e.attempt(pi,t,r)}},partial:!0},Vi={tokenize:function(e,t,r){const n=this;return function(t){if(Yo(t))return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),o;return r(t)};function o(e){return n.parser.lazy[n.now().line]?r(e):t(e)}},partial:!0};const Wi={name:"htmlText",tokenize:function(e,t,r){const n=this;let o,i,s;return function(t){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(t),a};function a(t){return 33===t?(e.consume(t),c):47===t?(e.consume(t),v):63===t?(e.consume(t),E):zo(t)?(e.consume(t),A):r(t)}function c(t){return 45===t?(e.consume(t),l):91===t?(e.consume(t),i=0,p):zo(t)?(e.consume(t),y):r(t)}function l(t){return 45===t?(e.consume(t),f):r(t)}function u(t){return null===t?r(t):45===t?(e.consume(t),h):Yo(t)?(s=u,P(t)):(e.consume(t),u)}function h(t){return 45===t?(e.consume(t),f):u(t)}function f(e){return 62===e?N(e):45===e?h(e):u(e)}function p(t){const n="CDATA[";return t===n.charCodeAt(i++)?(e.consume(t),6===i?d:p):r(t)}function d(t){return null===t?r(t):93===t?(e.consume(t),m):Yo(t)?(s=d,P(t)):(e.consume(t),d)}function m(t){return 93===t?(e.consume(t),g):d(t)}function g(t){return 62===t?N(t):93===t?(e.consume(t),g):d(t)}function y(t){return null===t||62===t?N(t):Yo(t)?(s=y,P(t)):(e.consume(t),y)}function E(t){return null===t?r(t):63===t?(e.consume(t),T):Yo(t)?(s=E,P(t)):(e.consume(t),E)}function T(e){return 62===e?N(e):E(e)}function v(t){return zo(t)?(e.consume(t),b):r(t)}function b(t){return 45===t||Go(t)?(e.consume(t),b):_(t)}function _(t){return Yo(t)?(s=_,P(t)):Jo(t)?(e.consume(t),_):N(t)}function A(t){return 45===t||Go(t)?(e.consume(t),A):47===t||62===t||Xo(t)?S(t):r(t)}function S(t){return 47===t?(e.consume(t),N):58===t||95===t||zo(t)?(e.consume(t),k):Yo(t)?(s=S,P(t)):Jo(t)?(e.consume(t),S):N(t)}function k(t){return 45===t||46===t||58===t||95===t||Go(t)?(e.consume(t),k):w(t)}function w(t){return 61===t?(e.consume(t),C):Yo(t)?(s=w,P(t)):Jo(t)?(e.consume(t),w):S(t)}function C(t){return null===t||60===t||61===t||62===t||96===t?r(t):34===t||39===t?(e.consume(t),o=t,x):Yo(t)?(s=C,P(t)):Jo(t)?(e.consume(t),C):(e.consume(t),O)}function x(t){return t===o?(e.consume(t),o=void 0,R):null===t?r(t):Yo(t)?(s=x,P(t)):(e.consume(t),x)}function O(t){return null===t||34===t||39===t||60===t||61===t||96===t?r(t):47===t||62===t||Xo(t)?S(t):(e.consume(t),O)}function R(e){return 47===e||62===e||Xo(e)?S(e):r(e)}function N(n){return 62===n?(e.consume(n),e.exit("htmlTextData"),e.exit("htmlText"),t):r(n)}function P(t){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),I}function I(t){return Jo(t)?ni(e,L,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):L(t)}function L(t){return e.enter("htmlTextData"),s(t)}}};const Qi={name:"labelEnd",tokenize:function(e,t,r){const n=this;let o,i,s=n.events.length;for(;s--;)if(("labelImage"===n.events[s][1].type||"labelLink"===n.events[s][1].type)&&!n.events[s][1]._balanced){o=n.events[s][1];break}return function(t){if(!o)return r(t);if(o._inactive)return u(t);return i=n.parser.defined.includes(Mi(n.sliceSerialize({start:o.end,end:n.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelEnd"),a};function a(t){return 40===t?e.attempt(Yi,l,i?l:u)(t):91===t?e.attempt(Xi,l,i?c:u)(t):i?l(t):u(t)}function c(t){return e.attempt(Ji,l,u)(t)}function l(e){return t(e)}function u(e){return o._balanced=!0,r(e)}},resolveTo:function(e,t){let r,n,o,i,s=e.length,a=0;for(;s--;)if(r=e[s][1],n){if("link"===r.type||"labelLink"===r.type&&r._inactive)break;"enter"===e[s][0]&&"labelLink"===r.type&&(r._inactive=!0)}else if(o){if("enter"===e[s][0]&&("labelImage"===r.type||"labelLink"===r.type)&&!r._balanced&&(n=s,"labelLink"!==r.type)){a=2;break}}else"labelEnd"===r.type&&(o=s);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)},l={type:"label",start:Object.assign({},e[n][1].start),end:Object.assign({},e[o][1].end)},u={type:"labelText",start:Object.assign({},e[n+a+2][1].end),end:Object.assign({},e[o-2][1].start)};return i=[["enter",c,t],["enter",l,t]],i=Bo(i,e.slice(n+1,n+a+3)),i=Bo(i,[["enter",u,t]]),i=Bo(i,li(t.parser.constructs.insideSpan.null,e.slice(n+a+4,o-3),t)),i=Bo(i,[["exit",u,t],e[o-2],e[o-1],["exit",l,t]]),i=Bo(i,e.slice(o+1)),i=Bo(i,[["exit",c,t]]),Mo(e,n,e.length,i),e},resolveAll:function(e){let t=-1;for(;++t<e.length;){const r=e[t][1];"labelImage"!==r.type&&"labelLink"!==r.type&&"labelEnd"!==r.type||(e.splice(t+1,"labelImage"===r.type?4:2),r.type="data",t++)}return e}},Yi={tokenize:function(e,t,r){return function(t){return e.enter("resource"),e.enter("resourceMarker"),e.consume(t),e.exit("resourceMarker"),n};function n(t){return Xo(t)?Di(e,o)(t):o(t)}function o(t){return 41===t?l(t):Oi(e,i,s,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(t)}function i(t){return Xo(t)?Di(e,a)(t):l(t)}function s(e){return r(e)}function a(t){return 34===t||39===t||40===t?Ii(e,c,r,"resourceTitle","resourceTitleMarker","resourceTitleString")(t):l(t)}function c(t){return Xo(t)?Di(e,l)(t):l(t)}function l(n){return 41===n?(e.enter("resourceMarker"),e.consume(n),e.exit("resourceMarker"),e.exit("resource"),t):r(n)}}},Xi={tokenize:function(e,t,r){const n=this;return function(t){return Ni.call(n,e,o,i,"reference","referenceMarker","referenceString")(t)};function o(e){return n.parser.defined.includes(Mi(n.sliceSerialize(n.events[n.events.length-1][1]).slice(1,-1)))?t(e):r(e)}function i(e){return r(e)}}},Ji={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 Zi={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"),o};function o(t){return 91===t?(e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelImage"),i):r(t)}function i(e){return 94===e&&"_hiddenFootnoteSupport"in n.parser.constructs?r(e):t(e)}},resolveAll:Qi.resolveAll};const es={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"),o};function o(e){return 94===e&&"_hiddenFootnoteSupport"in n.parser.constructs?r(e):t(e)}},resolveAll:Qi.resolveAll};const ts={name:"lineEnding",tokenize:function(e,t){return function(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),ni(e,t,"linePrefix")}}};const rs={name:"thematicBreak",tokenize:function(e,t,r){let n,o=0;return function(t){return e.enter("thematicBreak"),function(e){return n=e,i(e)}(t)};function i(i){return i===n?(e.enter("thematicBreakSequence"),s(i)):o>=3&&(null===i||Yo(i))?(e.exit("thematicBreak"),t(i)):r(i)}function s(t){return t===n?(e.consume(t),o++,s):(e.exit("thematicBreakSequence"),Jo(t)?ni(e,i,"whitespace")(t):i(t))}}};const ns={name:"list",tokenize:function(e,t,r){const n=this,o=n.events[n.events.length-1];let i=o&&"linePrefix"===o[1].type?o[2].sliceSerialize(o[1],!0).length:0,s=0;return function(t){const o=n.containerState.type||(42===t||43===t||45===t?"listUnordered":"listOrdered");if("listUnordered"===o?!n.containerState.marker||t===n.containerState.marker:Vo(t)){if(n.containerState.type||(n.containerState.type=o,e.enter(o,{_container:!0})),"listUnordered"===o)return e.enter("listItemPrefix"),42===t||45===t?e.check(rs,r,c)(t):c(t);if(!n.interrupt||49===t)return e.enter("listItemPrefix"),e.enter("listItemValue"),a(t)}return r(t)};function a(t){return Vo(t)&&++s<10?(e.consume(t),a):(!n.interrupt||s<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(pi,n.interrupt?r:l,e.attempt(os,h,u))}function l(e){return n.containerState.initialBlankLine=!0,i++,h(e)}function u(t){return Jo(t)?(e.enter("listItemPrefixWhitespace"),e.consume(t),e.exit("listItemPrefixWhitespace"),h):r(t)}function h(r){return n.containerState.size=i+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(pi,o,i);function o(r){return n.containerState.furtherBlankLines=n.containerState.furtherBlankLines||n.containerState.initialBlankLine,ni(e,t,"listItemIndent",n.containerState.size+1)(r)}function i(r){return n.containerState.furtherBlankLines||!Jo(r)?(n.containerState.furtherBlankLines=void 0,n.containerState.initialBlankLine=void 0,s(r)):(n.containerState.furtherBlankLines=void 0,n.containerState.initialBlankLine=void 0,e.attempt(is,t,s)(r))}function s(o){return n.containerState._closeFlow=!0,n.interrupt=void 0,ni(e,e.attempt(ns,t,r),"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o)}}},exit:function(e){e.exit(this.containerState.type)}},os={tokenize:function(e,t,r){const n=this;return ni(e,function(e){const o=n.events[n.events.length-1];return!Jo(e)&&o&&"listItemPrefixWhitespace"===o[1].type?t(e):r(e)},"listItemPrefixWhitespace",n.parser.constructs.disable.null.includes("codeIndented")?void 0:5)},partial:!0},is={tokenize:function(e,t,r){const n=this;return ni(e,function(e){const o=n.events[n.events.length-1];return o&&"listItemIndent"===o[1].type&&o[2].sliceSerialize(o[1],!0).length===n.containerState.size?t(e):r(e)},"listItemIndent",n.containerState.size+1)},partial:!0};const ss={name:"setextUnderline",tokenize:function(e,t,r){const n=this;let o;return function(t){let s,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){s="paragraph"===n.events[a][1].type;break}if(!n.parser.lazy[n.now().line]&&(n.interrupt||s))return e.enter("setextHeadingLine"),o=t,function(t){return e.enter("setextHeadingLineSequence"),i(t)}(t);return r(t)};function i(t){return t===o?(e.consume(t),i):(e.exit("setextHeadingLineSequence"),Jo(t)?ni(e,s,"lineSuffix")(t):s(t))}function s(n){return null===n||Yo(n)?(e.exit("setextHeadingLine"),t(n)):r(n)}},resolveTo:function(e,t){let r,n,o,i=e.length;for(;i--;)if("enter"===e[i][0]){if("content"===e[i][1].type){r=i;break}"paragraph"===e[i][1].type&&(n=i)}else"content"===e[i][1].type&&e.splice(i,1),o||"definition"!==e[i][1].type||(o=i);const s={type:"setextHeading",start:Object.assign({},e[n][1].start),end:Object.assign({},e[e.length-1][1].end)};e[n][1].type="setextHeadingText",o?(e.splice(n,0,["enter",s,t]),e.splice(o+1,0,["exit",e[r][1],t]),e[r][1].end=Object.assign({},e[o][1].end)):e[r][1]=s;return e.push(["exit",s,t]),e}};var as=Object.freeze({__proto__:null,attention:ui,autolink:fi,blankLine:pi,blockQuote:di,characterEscape:mi,characterReference:Ti,codeFenced:bi,codeIndented:_i,codeText:Si,content:Ci,definition:Ui,hardBreakEscape:ji,headingAtx:qi,htmlFlow:$i,htmlText:Wi,labelEnd:Qi,labelStartImage:Zi,labelStartLink:es,lineEnding:ts,list:ns,setextUnderline:ss,thematicBreak:rs});const cs={tokenize:function(e){const t=this,r=e.attempt(pi,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,ni(e,e.attempt(this.parser.constructs.flow,n,e.attempt(Ci,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 ls={resolveAll:ps()},us=fs("string"),hs=fs("text");function fs(e){return{tokenize:function(t){const r=this,n=this.parser.constructs[e],o=t.attempt(n,i,s);return i;function i(e){return c(e)?o(e):s(e)}function s(e){if(null!==e)return t.enter("data"),t.consume(e),a;t.consume(e)}function a(e){return c(e)?(t.exit("data"),o(e)):(t.consume(e),a)}function c(e){if(null===e)return!0;const t=n[e];let o=-1;if(t)for(;++o<t.length;){const e=t[o];if(!e.previous||e.previous.call(r,r.previous))return!0}return!1}},resolveAll:ps("text"===e?ds:void 0)}}function ps(e){return function(t,r){let n,o=-1;for(;++o<=t.length;)void 0===n?t[o]&&"data"===t[o][1].type&&(n=o,o++):t[o]&&"data"===t[o][1].type||(o!==n+2&&(t[n][1].end=t[o-1][1].end,t.splice(n+2,o-n-2),o=n+2),n=void 0);return e?e(t,r):t}}function ds(e,t){let r=0;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],o=t.sliceStream(n);let i,s=o.length,a=-1,c=0;for(;s--;){const e=o[s];if("string"==typeof e){for(a=e.length;32===e.charCodeAt(a-1);)c++,a--;if(a)break;a=-1}else if(-2===e)i=!0,c++;else if(-1!==e){s++;break}}if(c){const o={type:r===e.length||i||c<2?"lineSuffix":"hardBreakTrailing",start:{line:n.end.line,column:n.end.column-c,offset:n.end.offset-c,_index:n.start._index+s,_bufferIndex:s?a:n.start._bufferIndex+a},end:Object.assign({},n.end)};n.end=Object.assign({},o.start),n.start.offset===n.end.offset?Object.assign(n,o):(e.splice(r,0,["enter",o,t],["exit",o,t]),r+=2)}r++}return e}function ms(e,t,r){let n=Object.assign(r?Object.assign({},r):{line:1,column:1,offset:0},{_index:0,_bufferIndex:-1});const o={},i=[];let s=[],a=[];const c={consume:function(e){Yo(e)?(n.line++,n.column=1,n.offset+=-3===e?2:1,E()):-1!==e&&(n.column++,n.offset++);n._bufferIndex<0?n._index++:(n._bufferIndex++,n._bufferIndex===s[n._index].length&&(n._bufferIndex=-1,n._index++));l.previous=e},enter:function(e,t){const r=t||{};return r.type=e,r.start=f(),l.events.push(["enter",r,l]),a.push(r),r},exit:function(e){const t=a.pop();return t.end=f(),l.events.push(["exit",t,l]),t},attempt:g(function(e,t){y(e,t.from)}),check:g(m),interrupt:g(m,{interrupt:!0})},l={previous:null,code:null,containerState:{},events:[],parser:e,sliceStream:h,sliceSerialize:function(e,t){return function(e,t){let r=-1;const n=[];let o;for(;++r<e.length;){const i=e[r];let s;if("string"==typeof i)s=i;else switch(i){case-5:s="\r";break;case-4:s="\n";break;case-3:s="\r\n";break;case-2:s=t?" ":"\t";break;case-1:if(!t&&o)continue;s=" ";break;default:s=String.fromCharCode(i)}o=-2===i,n.push(s)}return n.join("")}(h(e),t)},now:f,defineSkip:function(e){o[e.line]=e.column,E()},write:function(e){if(s=Bo(s,e),p(),null!==s[s.length-1])return[];return y(t,0),l.events=li(i,l.events,l),l.events}};let u=t.tokenize.call(l,c);return t.resolveAll&&i.push(t),l;function h(e){return function(e,t){const r=t.start._index,n=t.start._bufferIndex,o=t.end._index,i=t.end._bufferIndex;let s;if(r===o)s=[e[r].slice(n,i)];else{if(s=e.slice(r,o),n>-1){const e=s[0];"string"==typeof e?s[0]=e.slice(n):s.shift()}i>0&&s.push(e[o].slice(0,i))}return s}(s,e)}function f(){const{line:e,column:t,offset:r,_index:o,_bufferIndex:i}=n;return{line:e,column:t,offset:r,_index:o,_bufferIndex:i}}function p(){let e;for(;n._index<s.length;){const t=s[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){u=u(e)}function m(e,t){t.restore()}function g(e,t){return function(r,o,i){let s,u,h,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 s=e,u=0,0===e.length?i:m(e[u])}function m(e){return function(r){p=function(){const e=f(),t=l.previous,r=l.currentConstruct,o=l.events.length,i=Array.from(a);return{restore:s,from:o};function s(){n=e,l.previous=t,l.currentConstruct=r,l.events.length=o,a=i,E()}}(),h=e,e.partial||(l.currentConstruct=e);if(e.name&&l.parser.constructs.disable.null.includes(e.name))return y();return e.tokenize.call(t?Object.assign(Object.create(l),t):l,c,g,y)(r)}}function g(t){return e(h,p),o}function y(e){return p.restore(),++u<s.length?m(s[u]):i}}}function y(e,t){e.resolveAll&&!i.includes(e)&&i.push(e),e.resolve&&Mo(l.events,t,l.events.length-t,e.resolve(l.events.slice(t),l)),e.resolveTo&&(l.events=e.resolveTo(l.events,l))}function E(){n.line in o&&n.column<2&&(n.column=o[n.line],n.offset+=o[n.line]-1)}}const gs={42:ns,43:ns,45:ns,48:ns,49:ns,50:ns,51:ns,52:ns,53:ns,54:ns,55:ns,56:ns,57:ns,62:di},ys={91:Ui},Es={[-2]:_i,[-1]:_i,32:_i},Ts={35:qi,42:rs,45:[ss,rs],60:$i,61:ss,95:rs,96:bi,126:bi},vs={38:Ti,92:mi},bs={[-5]:ts,[-4]:ts,[-3]:ts,33:Zi,38:Ti,42:ui,60:[fi,Wi],91:es,92:[ji,mi],93:Qi,95:ui,96:Si},_s={null:[ui,ls]};var As=Object.freeze({__proto__:null,document:gs,contentInitial:ys,flowInitial:Es,flow:Ts,string:vs,text:bs,insideSpan:_s,attentionMarkers:{null:[42,95]},disable:{null:[]}});const Ss=/[\0\t\n\r]/g;function ks(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&~r)||65534==(65535&r)||r>1114111?"�":String.fromCharCode(r)}const ws=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Cs(e){return e.replace(ws,xs)}function xs(e,t,r){if(t)return t;if(35===r.charCodeAt(0)){const e=r.charCodeAt(1),t=120===e||88===e;return ks(r.slice(t?2:1),t?16:10)}return Ei(r)||e}const Os={}.hasOwnProperty,Rs=function(e,t,r){return"string"!=typeof t&&(r=t,t=void 0),function(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:a(re),autolinkProtocol:C,autolinkEmail:C,atxHeading:a(J),blockQuote:a(V),characterEscape:C,characterReference:C,codeFenced:a(W),codeFencedFenceInfo:c,codeFencedFenceMeta:c,codeIndented:a(W,c),codeText:a(Q,c),codeTextData:C,data:C,codeFlowValue:C,definition:a(Y),definitionDestinationString:c,definitionLabelString:c,definitionTitleString:c,emphasis:a(X),hardBreakEscape:a(Z),hardBreakTrailing:a(Z),htmlFlow:a(ee,c),htmlFlowData:C,htmlText:a(ee,c),htmlTextData:C,image:a(te),label:c,link:a(re),listItem:a(oe),listItemValue:d,listOrdered:a(ne,p),listUnordered:a(ne),paragraph:a(ie),reference:j,referenceString:c,resourceDestinationString:c,resourceTitleString:c,setextHeading:a(J),strong:a(se),thematicBreak:a(ce)},exit:{atxHeading:u(),atxHeadingSequence:A,autolink:u(),autolinkEmail:K,autolinkProtocol:$,blockQuote:u(),characterEscapeValue:x,characterReferenceMarkerHexadecimal:z,characterReferenceMarkerNumeric:z,characterReferenceValue:G,codeFenced:u(E),codeFencedFence:y,codeFencedFenceInfo:m,codeFencedFenceMeta:g,codeFlowValue:x,codeIndented:u(T),codeText:u(I),codeTextData:x,data:x,definition:u(),definitionDestinationString:_,definitionLabelString:v,definitionTitleString:b,emphasis:u(),hardBreakEscape:u(R),hardBreakTrailing:u(R),htmlFlow:u(N),htmlFlowData:x,htmlText:u(P),htmlTextData:x,image:u(D),label:M,labelText:F,lineEnding:O,link:u(L),listItem:u(),listOrdered:u(),listUnordered:u(),paragraph:u(),referenceString:q,resourceDestinationString:B,resourceTitleString:U,resource:H,setextHeading:u(w),setextHeadingLineSequence:k,setextHeadingText:S,strong:u(),thematicBreak:u()}};Ps(t,(e||{}).mdastExtensions||[]);const r={};return n;function n(e){let r={type:"root",children:[]};const n={stack:[r],tokenStack:[],config:t,enter:l,exit:h,buffer:c,resume:f,setData:i,getData:s},a=[];let u=-1;for(;++u<e.length;)if("listOrdered"===e[u][1].type||"listUnordered"===e[u][1].type)if("enter"===e[u][0])a.push(u);else{u=o(e,a.pop(),u)}for(u=-1;++u<e.length;){const r=t[e[u][0]];Os.call(r,e[u][1].type)&&r[e[u][1].type].call(Object.assign({sliceSerialize:e[u][2].sliceSerialize},n),e[u][1])}if(n.tokenStack.length>0){const e=n.tokenStack[n.tokenStack.length-1];(e[1]||Ls).call(n,void 0,e[0])}for(r.position={start:Ns(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:Ns(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},u=-1;++u<t.transforms.length;)r=t.transforms[u](r)||r;return r}function o(e,t,r){let n,o,i,s,a=t-1,c=-1,l=!1;for(;++a<=r;){const t=e[a];if("listUnordered"===t[1].type||"listOrdered"===t[1].type||"blockQuote"===t[1].type?("enter"===t[0]?c++:c--,s=void 0):"lineEndingBlank"===t[1].type?"enter"===t[0]&&(!n||s||c||i||(i=a),s=void 0):"linePrefix"===t[1].type||"listItemValue"===t[1].type||"listItemMarker"===t[1].type||"listItemPrefix"===t[1].type||"listItemPrefixWhitespace"===t[1].type||(s=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 s=a;for(o=void 0;s--;){const t=e[s];if("lineEnding"===t[1].type||"lineEndingBlank"===t[1].type){if("exit"===t[0])continue;o&&(e[o][1].type="lineEndingBlank",l=!0),t[1].type="lineEnding",o=s}else if("linePrefix"!==t[1].type&&"blockQuotePrefix"!==t[1].type&&"blockQuotePrefixWhitespace"!==t[1].type&&"blockQuoteMarker"!==t[1].type&&"listItemIndent"!==t[1].type)break}i&&(!o||i<o)&&(n._spread=!0),n.end=Object.assign({},o?e[o][1].start:t[1].end),e.splice(o||a,0,["exit",n,t[2]]),a++,r++}"listItemPrefix"===t[1].type&&(n={type:"listItem",_spread:!1,start:Object.assign({},t[1].start),end:void 0},e.splice(a,0,["enter",n,t[2]]),a++,r++,i=void 0,s=!0)}}return e[t][1]._spread=l,r}function i(e,t){r[e]=t}function s(e){return r[e]}function a(e,t){return r;function r(r){l.call(this,e(r),r),t&&t.call(this,r)}}function c(){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:Ns(t.start)},e}function u(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+"` ("+ho({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]||Ls).call(this,e,n[0])}return r.position.end=Ns(e.end),r}function f(){return Lo(this.stack.pop())}function p(){i("expectingFirstListItemValue",!0)}function d(e){if(s("expectingFirstListItemValue")){this.stack[this.stack.length-2].start=Number.parseInt(this.sliceSerialize(e),10),i("expectingFirstListItemValue")}}function m(){const e=this.resume();this.stack[this.stack.length-1].lang=e}function g(){const e=this.resume();this.stack[this.stack.length-1].meta=e}function y(){s("flowCodeInside")||(this.buffer(),i("flowCodeInside",!0))}function E(){const e=this.resume();this.stack[this.stack.length-1].value=e.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),i("flowCodeInside")}function T(){const e=this.resume();this.stack[this.stack.length-1].value=e.replace(/(\r?\n|\r)$/g,"")}function v(e){const t=this.resume(),r=this.stack[this.stack.length-1];r.label=t,r.identifier=Mi(this.sliceSerialize(e)).toLowerCase()}function b(){const e=this.resume();this.stack[this.stack.length-1].title=e}function _(){const e=this.resume();this.stack[this.stack.length-1].url=e}function A(e){const t=this.stack[this.stack.length-1];if(!t.depth){const r=this.sliceSerialize(e).length;t.depth=r}}function S(){i("setextHeadingSlurpLineEnding",!0)}function k(e){this.stack[this.stack.length-1].depth=61===this.sliceSerialize(e).charCodeAt(0)?1:2}function w(){i("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=ae(),r.position={start:Ns(e.start)},t.children.push(r)),this.stack.push(r)}function x(e){const t=this.stack.pop();t.value+=this.sliceSerialize(e),t.position.end=Ns(e.end)}function O(e){const r=this.stack[this.stack.length-1];if(s("atHardBreak")){return r.children[r.children.length-1].position.end=Ns(e.end),void i("atHardBreak")}!s("setextHeadingSlurpLineEnding")&&t.canContainEols.includes(r.type)&&(C.call(this,e),x.call(this,e))}function R(){i("atHardBreak",!0)}function N(){const e=this.resume();this.stack[this.stack.length-1].value=e}function P(){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 L(){const e=this.stack[this.stack.length-1];if(s("inReference")){const t=s("referenceType")||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;i("referenceType")}function D(){const e=this.stack[this.stack.length-1];if(s("inReference")){const t=s("referenceType")||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;i("referenceType")}function F(e){const t=this.sliceSerialize(e),r=this.stack[this.stack.length-2];r.label=Cs(t),r.identifier=Mi(t).toLowerCase()}function M(){const e=this.stack[this.stack.length-1],t=this.resume(),r=this.stack[this.stack.length-1];if(i("inReference",!0),"link"===r.type){const t=e.children;r.children=t}else r.alt=t}function B(){const e=this.resume();this.stack[this.stack.length-1].url=e}function U(){const e=this.resume();this.stack[this.stack.length-1].title=e}function H(){i("inReference")}function j(){i("referenceType","collapsed")}function q(e){const t=this.resume(),r=this.stack[this.stack.length-1];r.label=t,r.identifier=Mi(this.sliceSerialize(e)).toLowerCase(),i("referenceType","full")}function z(e){i("characterReferenceType",e.type)}function G(e){const t=this.sliceSerialize(e),r=s("characterReferenceType");let n;if(r)n=ks(t,"characterReferenceMarkerNumeric"===r?10:16),i("characterReferenceType");else{n=Ei(t)}const o=this.stack.pop();o.value+=n,o.position.end=Ns(e.end)}function $(e){x.call(this,e);this.stack[this.stack.length-1].url=this.sliceSerialize(e)}function K(e){x.call(this,e);this.stack[this.stack.length-1].url="mailto:"+this.sliceSerialize(e)}function V(){return{type:"blockquote",children:[]}}function W(){return{type:"code",lang:null,meta:null,value:""}}function Q(){return{type:"inlineCode",value:""}}function Y(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function X(){return{type:"emphasis",children:[]}}function J(){return{type:"heading",depth:void 0,children:[]}}function Z(){return{type:"break"}}function ee(){return{type:"html",value:""}}function te(){return{type:"image",title:null,url:"",alt:null}}function re(){return{type:"link",title:null,url:"",children:[]}}function ne(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 ie(){return{type:"paragraph",children:[]}}function se(){return{type:"strong",children:[]}}function ae(){return{type:"text",value:""}}function ce(){return{type:"thematicBreak"}}}(r)(function(e){for(;!ki(e););return e}(function(e){const t={defined:[],lazy:{},constructs:Ho([As,...(e||{}).extensions||[]]),content:r(ii),document:r(si),flow:r(cs),string:r(us),text:r(hs)};return t;function r(e){return function(r){return ms(t,e,r)}}}(r).document().write(function(){let e,t=1,r="",n=!0;return function(o,i,s){const a=[];let c,l,u,h,f;for(o=r+o.toString(i),u=0,r="",n&&(65279===o.charCodeAt(0)&&u++,n=void 0);u<o.length;){if(Ss.lastIndex=u,c=Ss.exec(o),h=c&&void 0!==c.index?c.index:o.length,f=o.charCodeAt(h),!c){r=o.slice(u);break}if(10===f&&u===h&&e)a.push(-3),e=void 0;else switch(e&&(a.push(-5),e=void 0),u<h&&(a.push(o.slice(u,h)),t+=h-u),f){case 0:a.push(65533),t++;break;case 9:for(l=4*Math.ceil(t/4),a.push(-2);t++<l;)a.push(-1);break;case 10:a.push(-4),t=1;break;default:e=!0,t=1}u=h+1}return s&&(e&&a.push(-5),r&&a.push(r),a.push(null)),a}}()(e,t,!0))))};function Ns(e){return{line:e.line,column:e.column,offset:e.offset}}function Ps(e,t){let r=-1;for(;++r<t.length;){const n=t[r];Array.isArray(n)?Ps(e,n):Is(e,n)}}function Is(e,t){let r;for(r in t)if(Os.call(t,r))if("canContainEols"===r){const n=t[r];n&&e[r].push(...n)}else if("transforms"===r){const n=t[r];n&&e[r].push(...n)}else if("enter"===r||"exit"===r){const n=t[r];n&&Object.assign(e[r],n)}}function Ls(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+ho({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+ho({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+ho({start:t.start,end:t.end})+") is still open")}var Ds=pe(Object.freeze({__proto__:null,default:function(e){Object.assign(this,{Parser:t=>{const r=this.data("settings");return Rs(t,Object.assign({},r,e,{extensions:this.data("micromarkExtensions")||[],mdastExtensions:this.data("fromMarkdownExtensions")||[]}))}})}}));const Fs={tokenize:function(e,t,r){let n=0;return function t(i){if((87===i||119===i)&&n<3)return n++,e.consume(i),t;if(46===i&&3===n)return e.consume(i),o;return r(i)};function o(e){return null===e?r(e):t(e)}},partial:!0},Ms={tokenize:function(e,t,r){let n,o,i;return s;function s(t){return 46===t||95===t?e.check(Us,c,a)(t):null===t||Xo(t)||ei(t)||45!==t&&Zo(t)?c(t):(i=!0,e.consume(t),s)}function a(t){return 95===t?n=!0:(o=n,n=void 0),e.consume(t),s}function c(e){return o||n||!i?r(e):t(e)}},partial:!0},Bs={tokenize:function(e,t){let r=0,n=0;return o;function o(s){return 40===s?(r++,e.consume(s),o):41===s&&n<r?i(s):33===s||34===s||38===s||39===s||41===s||42===s||44===s||46===s||58===s||59===s||60===s||63===s||93===s||95===s||126===s?e.check(Us,t,i)(s):null===s||Xo(s)||ei(s)?t(s):(e.consume(s),o)}function i(t){return 41===t&&n++,e.consume(t),o}},partial:!0},Us={tokenize:function(e,t,r){return n;function n(s){return 33===s||34===s||39===s||41===s||42===s||44===s||46===s||58===s||59===s||63===s||95===s||126===s?(e.consume(s),n):38===s?(e.consume(s),i):93===s?(e.consume(s),o):60===s||null===s||Xo(s)||ei(s)?t(s):r(s)}function o(e){return null===e||40===e||91===e||Xo(e)||ei(e)?t(e):n(e)}function i(e){return zo(e)?s(e):r(e)}function s(t){return 59===t?(e.consume(t),n):zo(t)?(e.consume(t),s):r(t)}},partial:!0},Hs={tokenize:function(e,t,r){return function(t){return e.consume(t),n};function n(e){return Go(e)?r(e):t(e)}},partial:!0},js={tokenize:function(e,t,r){const n=this;return function(t){if(87!==t&&119!==t||!Vs.call(n,n.previous)||Xs(n.events))return r(t);return e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(Fs,e.attempt(Ms,e.attempt(Bs,o),r),r)(t)};function o(r){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(r)}},previous:Vs},qs={tokenize:function(e,t,r){const n=this;let o="",i=!1;return function(t){if((72===t||104===t)&&Ws.call(n,n.previous)&&!Xs(n.events))return e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),o+=String.fromCodePoint(t),e.consume(t),s;return r(t)};function s(t){if(zo(t)&&o.length<5)return o+=String.fromCodePoint(t),e.consume(t),s;if(58===t){const r=o.toLowerCase();if("http"===r||"https"===r)return e.consume(t),a}return r(t)}function a(t){return 47===t?(e.consume(t),i?c:(i=!0,a)):r(t)}function c(t){return null===t||Ko(t)||Xo(t)||ei(t)||Zo(t)?r(t):e.attempt(Ms,e.attempt(Bs,l),r)(t)}function l(r){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(r)}},previous:Ws},zs={tokenize:function(e,t,r){const n=this;let o,i;return function(t){if(!Ys(t)||!Qs.call(n,n.previous)||Xs(n.events))return r(t);return e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),s(t)};function s(t){return Ys(t)?(e.consume(t),s):64===t?(e.consume(t),a):r(t)}function a(t){return 46===t?e.check(Hs,l,c)(t):45===t||95===t||Go(t)?(i=!0,e.consume(t),a):l(t)}function c(t){return e.consume(t),o=!0,a}function l(s){return i&&o&&zo(n.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(s)):r(s)}},previous:Qs},Gs={},$s={text:Gs};let Ks=48;for(;Ks<123;)Gs[Ks]=zs,Ks++,58===Ks?Ks=65:91===Ks&&(Ks=97);function Vs(e){return null===e||40===e||42===e||95===e||91===e||93===e||126===e||Xo(e)}function Ws(e){return!zo(e)}function Qs(e){return!(47===e||Ys(e))}function Ys(e){return 43===e||45===e||46===e||95===e||Go(e)}function Xs(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}Gs[43]=zs,Gs[45]=zs,Gs[46]=zs,Gs[95]=zs,Gs[72]=[zs,qs],Gs[104]=[zs,qs],Gs[87]=[zs,js],Gs[119]=[zs,js];const Js={tokenize:function(e,t,r){const n=this;return ni(e,function(e){const o=n.events[n.events.length-1];return o&&"gfmFootnoteDefinitionIndent"===o[1].type&&4===o[2].sliceSerialize(o[1],!0).length?t(e):r(e)},"gfmFootnoteDefinitionIndent",5)},partial:!0};function Zs(e,t,r){const n=this;let o=n.events.length;const i=n.parser.gfmFootnotes||(n.parser.gfmFootnotes=[]);let s;for(;o--;){const e=n.events[o][1];if("labelImage"===e.type){s=e;break}if("gfmFootnoteCall"===e.type||"labelLink"===e.type||"label"===e.type||"image"===e.type||"link"===e.type)break}return function(o){if(!s||!s._balanced)return r(o);const a=Mi(n.sliceSerialize({start:s.end,end:n.now()}));if(94!==a.codePointAt(0)||!i.includes(a.slice(1)))return r(o);return e.enter("gfmFootnoteCallLabelMarker"),e.consume(o),e.exit("gfmFootnoteCallLabelMarker"),t(o)}}function ea(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)},o={type:"gfmFootnoteCallMarker",start:Object.assign({},e[r+3][1].end),end:Object.assign({},e[r+3][1].end)};o.end.column++,o.end.offset++,o.end._bufferIndex++;const i={type:"gfmFootnoteCallString",start:Object.assign({},o.end),end:Object.assign({},e[e.length-1][1].start)},s={type:"chunkString",contentType:"string",start:Object.assign({},i.start),end:Object.assign({},i.end)},a=[e[r+1],e[r+2],["enter",n,t],e[r+3],e[r+4],["enter",o,t],["exit",o,t],["enter",i,t],["enter",s,t],["exit",s,t],["exit",i,t],e[e.length-2],e[e.length-1],["exit",n,t]];return e.splice(r,e.length-r+1,...a),e}function ta(e,t,r){const n=this,o=n.parser.gfmFootnotes||(n.parser.gfmFootnotes=[]);let i,s=0;return function(t){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(t),e.exit("gfmFootnoteCallLabelMarker"),a};function a(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(a){if(s>999||93===a&&!i||null===a||91===a||Xo(a))return r(a);if(93===a){e.exit("chunkString");const i=e.exit("gfmFootnoteCallString");return o.includes(Mi(n.sliceSerialize(i)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(a),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):r(a)}return Xo(a)||(i=!0),s++,e.consume(a),92===a?l:c}function l(t){return 91===t||92===t||93===t?(e.consume(t),s++,c):c(t)}}function ra(e,t,r){const n=this,o=n.parser.gfmFootnotes||(n.parser.gfmFootnotes=[]);let i,s,a=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"),e.enter("chunkString").contentType="string",l):r(t)}function l(t){if(a>999||93===t&&!s||null===t||91===t||Xo(t))return r(t);if(93===t){e.exit("chunkString");const r=e.exit("gfmFootnoteDefinitionLabelString");return i=Mi(n.sliceSerialize(r)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),h}return Xo(t)||(s=!0),a++,e.consume(t),92===t?u:l}function u(t){return 91===t||92===t||93===t?(e.consume(t),a++,l):l(t)}function h(t){return 58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),o.includes(i)||o.push(i),ni(e,f,"gfmFootnoteDefinitionWhitespace")):r(t)}function f(e){return t(e)}}function na(e,t,r){return e.check(pi,t,e.attempt(Js,t,r))}function oa(e){e.exit("gfmFootnoteDefinition")}function ia(e){let t=(e||{}).singleTilde;const r={tokenize:function(e,r,n){const o=this.previous,i=this.events;let s=0;return function(t){if(126===o&&"characterEscape"!==i[i.length-1][1].type)return n(t);return e.enter("strikethroughSequenceTemporary"),a(t)};function a(i){const c=ci(o);if(126===i)return s>1?n(i):(e.consume(i),s++,a);if(s<2&&!t)return n(i);const l=e.exit("strikethroughSequenceTemporary"),u=ci(i);return l._open=!u||2===u&&Boolean(c),l._close=!c||2===c&&Boolean(u),r(i)}},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 o={type:"strikethrough",start:Object.assign({},e[n][1].start),end:Object.assign({},e[r][1].end)},i={type:"strikethroughText",start:Object.assign({},e[n][1].end),end:Object.assign({},e[r][1].start)},s=[["enter",o,t],["enter",e[n][1],t],["exit",e[n][1],t],["enter",i,t]],a=t.parser.constructs.insideSpan.null;a&&Mo(s,s.length,0,li(a,e.slice(n+1,r),t)),Mo(s,s.length,0,[["exit",i,t],["enter",e[r][1],t],["exit",e[r][1],t],["exit",o,t]]),Mo(e,n-1,r-n+3,s),r=n+s.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]}}}class sa{constructor(){this.map=[]}add(e,t,r){!function(e,t,r,n){let o=0;if(0===r&&0===n.length)return;for(;o<e.map.length;){if(e.map[o][0]===t)return e.map[o][1]+=r,void e.map[o][2].push(...n);o+=1}e.map.push([t,r,n])}(this,e,t,r)}consume(e){if(this.map.sort((e,t)=>e[0]-t[0]),0===this.map.length)return;let t=this.map.length;const r=[];for(;t>0;)t-=1,r.push(e.slice(this.map[t][0]+this.map[t][1])),r.push(this.map[t][2]),e.length=this.map[t][0];r.push([...e]),e.length=0;let n=r.pop();for(;n;)e.push(...n),n=r.pop();this.map.length=0}}function aa(e,t){let r=!1;const n=[];for(;t<e.length;){const o=e[t];if(r){if("enter"===o[0])"tableContent"===o[1].type&&n.push("tableDelimiterMarker"===e[t+1][1].type?"left":"none");else if("tableContent"===o[1].type){if("tableDelimiterMarker"===e[t-1][1].type){const e=n.length-1;n[e]="left"===n[e]?"center":"right"}}else if("tableDelimiterRow"===o[1].type)break}else"enter"===o[0]&&"tableDelimiterRow"===o[1].type&&(r=!0);t+=1}return n}const ca={flow:{null:{tokenize:function(e,t,r){const n=this;let o,i=0,s=0;return function(e){let t=n.events.length-1;for(;t>-1;){const e=n.events[t][1].type;if("lineEnding"!==e&&"linePrefix"!==e)break;t--}const o=t>-1?n.events[t][1].type:null,i="tableHead"===o||"tableRow"===o?v:a;if(i===v&&n.parser.lazy[n.now().line])return r(e);return i(e)};function a(t){return e.enter("tableHead"),e.enter("tableRow"),function(e){if(124===e)return c(e);return o=!0,s+=1,c(e)}(t)}function c(t){return null===t?r(t):Yo(t)?s>1?(s=0,n.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),h):r(t):Jo(t)?ni(e,c,"whitespace")(t):(s+=1,o&&(o=!1,i+=1),124===t?(e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),o=!0,c):(e.enter("data"),l(t)))}function l(t){return null===t||124===t||Xo(t)?(e.exit("data"),c(t)):(e.consume(t),92===t?u:l)}function u(t){return 92===t||124===t?(e.consume(t),l):l(t)}function h(t){return n.interrupt=!1,n.parser.lazy[n.now().line]?r(t):(e.enter("tableDelimiterRow"),o=!1,Jo(t)?ni(e,f,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):f(t))}function f(t){return 45===t||58===t?d(t):124===t?(o=!0,e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),p):T(t)}function p(t){return Jo(t)?ni(e,d,"whitespace")(t):d(t)}function d(t){return 58===t?(s+=1,o=!0,e.enter("tableDelimiterMarker"),e.consume(t),e.exit("tableDelimiterMarker"),m):45===t?(s+=1,m(t)):null===t||Yo(t)?E(t):T(t)}function m(t){return 45===t?(e.enter("tableDelimiterFiller"),g(t)):T(t)}function g(t){return 45===t?(e.consume(t),g):58===t?(o=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(t),e.exit("tableDelimiterMarker"),y):(e.exit("tableDelimiterFiller"),y(t))}function y(t){return Jo(t)?ni(e,E,"whitespace")(t):E(t)}function E(r){return 124===r?f(r):(null===r||Yo(r))&&o&&i===s?(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(r)):T(r)}function T(e){return r(e)}function v(t){return e.enter("tableRow"),b(t)}function b(r){return 124===r?(e.enter("tableCellDivider"),e.consume(r),e.exit("tableCellDivider"),b):null===r||Yo(r)?(e.exit("tableRow"),t(r)):Jo(r)?ni(e,b,"whitespace")(r):(e.enter("data"),_(r))}function _(t){return null===t||124===t||Xo(t)?(e.exit("data"),b(t)):(e.consume(t),92===t?A:_)}function A(t){return 92===t||124===t?(e.consume(t),_):_(t)}},resolveAll:function(e,t){let r,n,o,i=-1,s=!0,a=0,c=[0,0,0,0],l=[0,0,0,0],u=!1,h=0;const f=new sa;for(;++i<e.length;){const p=e[i],d=p[1];"enter"===p[0]?"tableHead"===d.type?(u=!1,0!==h&&(ua(f,t,h,r,n),n=void 0,h=0),r={type:"table",start:Object.assign({},d.start),end:Object.assign({},d.end)},f.add(i,0,[["enter",r,t]])):"tableRow"===d.type||"tableDelimiterRow"===d.type?(s=!0,o=void 0,c=[0,0,0,0],l=[0,i+1,0,0],u&&(u=!1,n={type:"tableBody",start:Object.assign({},d.start),end:Object.assign({},d.end)},f.add(i,0,[["enter",n,t]])),a="tableDelimiterRow"===d.type?2:n?3:1):!a||"data"!==d.type&&"tableDelimiterMarker"!==d.type&&"tableDelimiterFiller"!==d.type?"tableCellDivider"===d.type&&(s?s=!1:(0!==c[1]&&(l[0]=l[1],o=la(f,t,c,a,void 0,o)),c=l,l=[c[1],i,0,0])):(s=!1,0===l[2]&&(0!==c[1]&&(l[0]=l[1],o=la(f,t,c,a,void 0,o),c=[0,0,0,0]),l[2]=i)):"tableHead"===d.type?(u=!0,h=i):"tableRow"===d.type||"tableDelimiterRow"===d.type?(h=i,0!==c[1]?(l[0]=l[1],o=la(f,t,c,a,i,o)):0!==l[1]&&(o=la(f,t,l,a,i,o)),a=0):!a||"data"!==d.type&&"tableDelimiterMarker"!==d.type&&"tableDelimiterFiller"!==d.type||(l[3]=i)}0!==h&&ua(f,t,h,r,n);f.consume(t.events),i=-1;for(;++i<t.events.length;){const e=t.events[i];"enter"===e[0]&&"table"===e[1].type&&(e[1]._align=aa(t.events,i))}return e}}}};function la(e,t,r,n,o,i){const s=1===n?"tableHeader":2===n?"tableDelimiter":"tableData";0!==r[0]&&(i.end=Object.assign({},ha(t.events,r[0])),e.add(r[0],0,[["exit",i,t]]));const a=ha(t.events,r[1]);if(i={type:s,start:Object.assign({},a),end:Object.assign({},a)},e.add(r[1],0,[["enter",i,t]]),0!==r[2]){const o=ha(t.events,r[2]),i=ha(t.events,r[3]),s={type:"tableContent",start:Object.assign({},o),end:Object.assign({},i)};if(e.add(r[2],0,[["enter",s,t]]),2!==n){const n=t.events[r[2]],o=t.events[r[3]];if(n[1].end=Object.assign({},o[1].end),n[1].type="chunkText",n[1].contentType="text",r[3]>r[2]+1){const t=r[2]+1,n=r[3]-r[2]-1;e.add(t,n,[])}}e.add(r[3]+1,0,[["exit",s,t]])}return void 0!==o&&(i.end=Object.assign({},ha(t.events,o)),e.add(o,0,[["exit",i,t]]),i=void 0),i}function ua(e,t,r,n,o){const i=[],s=ha(t.events,r);o&&(o.end=Object.assign({},s),i.push(["exit",o,t])),n.end=Object.assign({},s),i.push(["exit",n,t]),e.add(r+1,0,i)}function ha(e,t){const r=e[t],n="enter"===r[0]?"start":"end";return r[1][n]}const fa={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"),o};function o(t){return Xo(t)?(e.enter("taskListCheckValueUnchecked"),e.consume(t),e.exit("taskListCheckValueUnchecked"),i):88===t||120===t?(e.enter("taskListCheckValueChecked"),e.consume(t),e.exit("taskListCheckValueChecked"),i):r(t)}function i(t){return 93===t?(e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),s):r(t)}function s(n){return Yo(n)?t(n):Jo(n)?e.check({tokenize:da},t,r)(n):r(n)}}},pa={text:{91:fa}};function da(e,t,r){return ni(e,function(e){return null===e?r(e):t(e)},"whitespace")}function ma(e,t){const r=String(e);if("string"!=typeof t)throw new TypeError("Expected character");let n=0,o=r.indexOf(t);for(;-1!==o;)n++,o=r.indexOf(t,o+t.length);return n}function ga(e){if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}const ya=function(e){if(null==e)return Ta;if("string"==typeof e)return function(e){return Ea(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]=ya(e[r]);return Ea(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 Ea(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 Ea(e);throw new Error("Expected function, string, or object as test")};function Ea(e){return function(t,...r){return Boolean(t&&"object"==typeof t&&"type"in t&&Boolean(e.call(this,t,...r)))}}function Ta(){return!0}var va=Object.freeze({__proto__:null,is:function e(t,r,n,o,i){const s=ya(r);if(null!=n&&("number"!=typeof n||n<0||n===Number.POSITIVE_INFINITY))throw new Error("Expected positive finite index");if(!(null==o||e(o)&&o.children))throw new Error("Expected parent node");if(null==o!=(null==n))throw new Error("Expected both parent and index");return!(!t||!t.type||"string"!=typeof t.type)&&Boolean(s.call(i,t,n,o))},convert:ya});function ba(e){return"[33m"+e+"[39m"}const _a=!0,Aa=!1,Sa="skip",ka=function(e,t,r,n){"function"==typeof t&&"function"!=typeof r&&(n=r,r=t,t=null);const o=ya(t),i=n?-1:1;!function e(s,a,c){const l=s&&"object"==typeof s?s:{};if("string"==typeof l.type){const e="string"==typeof l.tagName?l.tagName:"string"==typeof l.name?l.name:void 0;Object.defineProperty(u,"name",{value:"node ("+ba(s.type+(e?"<"+e+">":""))+")"})}return u;function u(){let l,u,h,f=[];if((!t||o(s,a,c[c.length-1]||null))&&(f=function(e){if(Array.isArray(e))return e;if("number"==typeof e)return[_a,e];return[e]}(r(s,c)),f[0]===Aa))return f;if(s.children&&f[0]!==Sa)for(u=(n?s.children.length:-1)+i,h=c.concat(s);u>-1&&u<s.children.length;){if(l=e(s.children[u],u,h)(),l[0]===Aa)return l;u="number"==typeof l[1]?l[1]:u+i}return f}}(e,void 0,[])()};const wa={}.hasOwnProperty,Ca=function(e,t,r,n){let o,i;"string"==typeof t||t instanceof RegExp?(i=[[t,r]],o=n):(i=t,o=r),o||(o={});const s=ya(o.ignore||[]),a=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([xa(e[r][0]),Oa(e[r][1])])}else{let r;for(r in e)wa.call(e,r)&&t.push([xa(r),Oa(e[r])])}return t}(i);let c=-1;for(;++c<a.length;)ka(e,"text",l);return e;function l(e,t){let r,n=-1;for(;++n<t.length;){const e=t[n];if(s(e,r?r.children.indexOf(e):void 0,r))return;r=e}if(r)return function(e,t){const r=t[t.length-1],n=a[c][0],o=a[c][1];let i=0;const s=r.children.indexOf(e);let l=!1,u=[];n.lastIndex=0;let h=n.exec(e.value);for(;h;){const r=h.index,s={index:h.index,input:h.input,stack:[...t,e]};let a=o(...h,s);if("string"==typeof a&&(a=a.length>0?{type:"text",value:a}:void 0),!1!==a&&(i!==r&&u.push({type:"text",value:e.value.slice(i,r)}),Array.isArray(a)?u.push(...a):a&&u.push(a),i=r+h[0].length,l=!0),!n.global)break;h=n.exec(e.value)}l?(i<e.value.length&&u.push({type:"text",value:e.value.slice(i)}),r.children.splice(s,1,...u)):u=[e];return s+u.length}(e,t)}};function xa(e){return"string"==typeof e?new RegExp(ga(e),"g"):e}function Oa(e){return"function"==typeof e?e:()=>e}const Ra="phrasing",Na=["autolink","link","image","label"],Pa={transforms:[function(e){Ca(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,Da],[/([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/g,Fa]],{ignore:["link","linkReference"]})}],enter:{literalAutolink:function(e){this.enter({type:"link",title:null,url:"",children:[]},e)},literalAutolinkEmail:La,literalAutolinkHttp:La,literalAutolinkWww:La},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);const t=this.stack[this.stack.length-1];t.url="http://"+this.sliceSerialize(e)}}},Ia={unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:Ra,notInConstruct:Na},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:Ra,notInConstruct:Na},{character:":",before:"[ps]",after:"\\/",inConstruct:Ra,notInConstruct:Na}]};function La(e){this.config.enter.autolinkProtocol.call(this,e)}function Da(e,t,r,n,o){let i="";if(!Ma(o))return!1;if(/^w/i.test(t)&&(r=t+r,t="",i="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 s=function(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let r=t[0],n=r.indexOf(")");const o=ma(e,"(");let i=ma(e,")");for(;-1!==n&&o>i;)e+=r.slice(0,n+1),r=r.slice(n+1),n=r.indexOf(")"),i++;return[e,r]}(r+n);if(!s[0])return!1;const a={type:"link",title:null,url:i+t+s[0],children:[{type:"text",value:t+s[0]}]};return s[1]?[a,{type:"text",value:s[1]}]:a}function Fa(e,t,r,n){return!(!Ma(n,!0)||/[-\d_]$/.test(r))&&{type:"link",title:null,url:"mailto:"+t+"@"+r,children:[{type:"text",value:t+"@"+r}]}}function Ma(e,t){const r=e.input.charCodeAt(e.index-1);return(0===e.index||ei(r)||Zo(r))&&(!t||47!==r)}function Ba(e){return e.label||!e.identifier?e.label||"":Cs(e.identifier)}function Ua(e,t,r){const n=t.indexStack,o=e.children||[],i=t.createTracker(r),s=[];let a=-1;for(n.push(-1);++a<o.length;){const r=o[a];n[n.length-1]=a,s.push(i.move(t.handle(r,e,t,{before:"\n",after:"\n",...i.current()}))),"list"!==r.type&&(t.bulletLastUsed=void 0),a<o.length-1&&s.push(i.move(Ha(r,o[a+1],e,t)))}return n.pop(),s.join("")}function Ha(e,t,r,n){let o=n.join.length;for(;o--;){const i=n.join[o](e,t,r,n);if(!0===i||1===i)break;if("number"==typeof i)return"\n".repeat(1+i);if(!1===i)return"\n\n\x3c!----\x3e\n\n"}return"\n\n"}const ja=/\r?\n|\r/g;function qa(e,t){const r=[];let n,o=0,i=0;for(;n=ja.exec(e);)s(e.slice(o,n.index)),r.push(n[0]),o=n.index+n[0].length,i++;return s(e.slice(o)),r.join("");function s(e){r.push(t(e,i,!e))}}function za(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 Ga(e,t){return $a(e,t.inConstruct,!0)&&!$a(e,t.notInConstruct,!1)}function $a(e,t,r){if("string"==typeof t&&(t=[t]),!t||0===t.length)return r;let n=-1;for(;++n<t.length;)if(e.includes(t[n]))return!0;return!1}function Ka(e,t,r){const n=(r.before||"")+(t||"")+(r.after||""),o=[],i=[],s={};let a=-1;for(;++a<e.unsafe.length;){const t=e.unsafe[a];if(!Ga(e.stack,t))continue;const r=za(t);let i;for(;i=r.exec(n);){const e="before"in t||Boolean(t.atBreak),r="after"in t,n=i.index+(e?i[1].length:0);o.includes(n)?(s[n].before&&!e&&(s[n].before=!1),s[n].after&&!r&&(s[n].after=!1)):(o.push(n),s[n]={before:e,after:r})}}o.sort(Va);let c=r.before?r.before.length:0;const l=n.length-(r.after?r.after.length:0);for(a=-1;++a<o.length;){const e=o[a];e<c||e>=l||(e+1<l&&o[a+1]===e+1&&s[e].after&&!s[e+1].before&&!s[e+1].after||o[a-1]===e-1&&s[e].before&&!s[e-1].before&&!s[e-1].after||(c!==e&&i.push(Wa(n.slice(c,e),"\\")),c=e,!/[!-/:-@[-`{-~]/.test(n.charAt(e))||r.encode&&r.encode.includes(n.charAt(e))?(i.push("&#x"+n.charCodeAt(e).toString(16).toUpperCase()+";"),c++):i.push("\\")))}return i.push(Wa(n.slice(c,l),r.after)),i.join("")}function Va(e,t){return e-t}function Wa(e,t){const r=/\\(?=[!-/:-@[-`{-~])/g,n=[],o=[],i=e+t;let s,a=-1,c=0;for(;s=r.exec(i);)n.push(s.index);for(;++a<n.length;)c!==n[a]&&o.push(e.slice(c,n[a])),o.push("\\"),c=n[a];return o.push(e.slice(c)),o.join("")}function Qa(e){const t=e||{},r=t.now||{};let n=t.lineShift||0,o=r.line||1,i=r.column||1;return{move:function(e){const t=e||"",r=t.split(/\r?\n|\r/g),s=r[r.length-1];return o+=r.length-1,i=1===r.length?i+s.length:1+s.length+n,t},current:function(){return{now:{line:o,column:i},lineShift:n}},shift:function(e){n+=e}}}function Ya(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function Xa(){this.buffer()}function Ja(e){const t=this.resume(),r=this.stack[this.stack.length-1];r.label=t,r.identifier=Mi(this.sliceSerialize(e)).toLowerCase()}function Za(e){this.exit(e)}function ec(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function tc(){this.buffer()}function rc(e){const t=this.resume(),r=this.stack[this.stack.length-1];r.label=t,r.identifier=Mi(this.sliceSerialize(e)).toLowerCase()}function nc(e){this.exit(e)}function oc(e,t,r,n){const o=Qa(n);let i=o.move("[^");const s=r.enter("footnoteReference"),a=r.enter("reference");return i+=o.move(Ka(r,Ba(e),{...o.current(),before:i,after:"]"})),a(),s(),i+=o.move("]"),i}function ic(e,t,r,n){const o=Qa(n);let i=o.move("[^");const s=r.enter("footnoteDefinition"),a=r.enter("label");return i+=o.move(Ka(r,Ba(e),{...o.current(),before:i,after:"]"})),a(),i+=o.move("]:"+(e.children&&e.children.length>0?" ":"")),o.shift(4),i+=o.move(qa(Ua(e,r,o.current()),sc)),s(),i}function sc(e,t,r){return 0===t?e:(r?"":" ")+e}function ac(e,t,r){const n=t.indexStack,o=e.children||[],i=[];let s=-1,a=r.before;n.push(-1);let c=t.createTracker(r);for(;++s<o.length;){const l=o[s];let u;if(n[n.length-1]=s,s+1<o.length){let r=t.handle.handlers[o[s+1].type];r&&r.peek&&(r=r.peek),u=r?r(o[s+1],e,t,{before:"",after:"",...c.current()}).charAt(0):""}else u=r.after;i.length>0&&("\r"===a||"\n"===a)&&"html"===l.type&&(i[i.length-1]=i[i.length-1].replace(/(\r?\n|\r)$/," "),a=" ",c=t.createTracker(r),c.move(i.join(""))),i.push(c.move(t.handle(l,e,t,{...c.current(),before:a,after:u}))),a=i[i.length-1].slice(-1)}return n.pop(),i.join("")}oc.peek=function(){return"["};uc.peek=function(){return"~"};const cc={canContainEols:["delete"],enter:{strikethrough:function(e){this.enter({type:"delete",children:[]},e)}},exit:{strikethrough:function(e){this.exit(e)}}},lc={unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"]}],handlers:{delete:uc}};function uc(e,t,r,n){const o=Qa(n),i=r.enter("strikethrough");let s=o.move("~~");return s+=ac(e,r,{...o.current(),before:s,after:"~"}),s+=o.move("~~"),i(),s}function hc(e,t,r){let n=e.value||"",o="`",i=-1;for(;new RegExp("(^|[^`])"+o+"([^`]|$)").test(n);)o+="`";for(/[^ \r\n]/.test(n)&&(/^[ \r\n]/.test(n)&&/[ \r\n]$/.test(n)||/^`|`$/.test(n))&&(n=" "+n+" ");++i<r.unsafe.length;){const e=r.unsafe[i],t=za(e);let o;if(e.atBreak)for(;o=t.exec(n);){let e=o.index;10===n.charCodeAt(e)&&13===n.charCodeAt(e-1)&&e--,n=n.slice(0,e)+" "+n.slice(o.index+1)}}return o+n+o}function fc(e){return e.length}function pc(e){return null==e?"":String(e)}function dc(e){const t="string"==typeof e?e.codePointAt(0):0;return 67===t||99===t?99:76===t||108===t?108:82===t||114===t?114:0}hc.peek=function(){return"`"};const mc={enter:{table:function(e){const t=e._align;this.enter({type:"table",align:t.map(e=>"none"===e?null:e),children:[]},e),this.setData("inTable",!0)},tableData:yc,tableHeader:yc,tableRow:function(e){this.enter({type:"tableRow",children:[]},e)}},exit:{codeText:function(e){let t=this.resume();this.getData("inTable")&&(t=t.replace(/\\([\\|])/g,Ec));const r=this.stack[this.stack.length-1];r.value=t,this.exit(e)},table:function(e){this.exit(e),this.setData("inTable")},tableData:gc,tableHeader:gc,tableRow:gc}};function gc(e){this.exit(e)}function yc(e){this.enter({type:"tableCell",children:[]},e)}function Ec(e,t){return"|"===t?t:e}function Tc(e){const t=e||{},r=t.tableCellPadding,n=t.tablePipeAlign,o=t.stringLength,i=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,n){return a(function(e,t,r){const n=e.children;let o=-1;const i=[],s=t.enter("table");for(;++o<n.length;)i[o]=c(n[o],t,r);return s(),i}(e,r,n),e.align)},tableRow:function(e,t,r,n){const o=c(e,r,n),i=a([o]);return i.slice(0,i.indexOf("\n"))},tableCell:s,inlineCode:function(e,t,r){let n=hc(e,0,r);r.stack.includes("tableCell")&&(n=n.replace(/\|/g,"\\$&"));return n}}};function s(e,t,r,n){const o=r.enter("tableCell"),s=r.enter("phrasing"),a=ac(e,r,{...n,before:i,after:i});return s(),o(),a}function a(e,t){return function(e,t){const r=t||{},n=(r.align||[]).concat(),o=r.stringLength||fc,i=[],s=[],a=[],c=[];let l=0,u=-1;for(;++u<e.length;){const t=[],n=[];let i=-1;for(e[u].length>l&&(l=e[u].length);++i<e[u].length;){const s=pc(e[u][i]);if(!1!==r.alignDelimiters){const e=o(s);n[i]=e,(void 0===c[i]||e>c[i])&&(c[i]=e)}t.push(s)}s[u]=t,a[u]=n}let h=-1;if("object"==typeof n&&"length"in n)for(;++h<l;)i[h]=dc(n[h]);else{const e=dc(n);for(;++h<l;)i[h]=e}h=-1;const f=[],p=[];for(;++h<l;){const e=i[h];let t="",n="";99===e?(t=":",n=":"):108===e?t=":":114===e&&(n=":");let o=!1===r.alignDelimiters?1:Math.max(1,c[h]-t.length-n.length);const s=t+"-".repeat(o)+n;!1!==r.alignDelimiters&&(o=t.length+o+n.length,o>c[h]&&(c[h]=o),p[h]=o),f[h]=s}s.splice(1,0,f),a.splice(1,0,p),u=-1;const d=[];for(;++u<s.length;){const e=s[u],t=a[u];h=-1;const n=[];for(;++h<l;){const o=e[h]||"";let s="",a="";if(!1!==r.alignDelimiters){const e=c[h]-(t[h]||0),r=i[h];114===r?s=" ".repeat(e):99===r?e%2?(s=" ".repeat(e/2+.5),a=" ".repeat(e/2-.5)):(s=" ".repeat(e/2),a=s):a=" ".repeat(e)}!1===r.delimiterStart||h||n.push("|"),!1===r.padding||!1===r.alignDelimiters&&""===o||!1===r.delimiterStart&&!h||n.push(" "),!1!==r.alignDelimiters&&n.push(s),n.push(o),!1!==r.alignDelimiters&&n.push(a),!1!==r.padding&&n.push(" "),!1===r.delimiterEnd&&h===l-1||n.push("|")}d.push(!1===r.delimiterEnd?n.join("").replace(/ +$/,""):n.join(""))}return d.join("\n")}(e,{align:t,alignDelimiters:n,padding:r,stringLength:o})}function c(e,t,r){const n=e.children;let o=-1;const i=[],a=t.enter("tableRow");for(;++o<n.length;)i[o]=s(n[o],0,t,r);return a(),i}}function vc(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}function bc(e,t,r,n){const o=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||vc(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 s=i.length+1;("tab"===o||"mixed"===o&&(t&&"list"===t.type&&t.spread||e.spread))&&(s=4*Math.ceil(s/4));const a=r.createTracker(n);a.move(i+" ".repeat(s-i.length)),a.shift(s);const c=r.enter("listItem"),l=r.indentLines(r.containerFlow(e,a.current()),function(e,t,r){if(t)return(r?"":" ".repeat(s))+e;return(r?i:i+" ".repeat(s-i.length))+e});return c(),l}const _c={exit:{taskListCheckValueChecked:Sc,taskListCheckValueUnchecked:Sc,paragraph:function(e){const t=this.stack[this.stack.length-2];if(t&&"listItem"===t.type&&"boolean"==typeof t.checked){const e=this.stack[this.stack.length-1],r=e.children[0];if(r&&"text"===r.type){const n=t.children;let o,i=-1;for(;++i<n.length;){const e=n[i];if("paragraph"===e.type){o=e;break}}o===e&&(r.value=r.value.slice(1),0===r.value.length?e.children.shift():e.position&&r.position&&"number"==typeof r.position.start.offset&&(r.position.start.column++,r.position.start.offset++,e.position.start=Object.assign({},r.position.start)))}}this.exit(e)}}},Ac={unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:function(e,t,r,n){const o=e.children[0],i="boolean"==typeof e.checked&&o&&"paragraph"===o.type,s="["+(e.checked?"x":" ")+"] ",a=Qa(n);i&&a.move(s);let c=bc(e,t,r,{...n,...a.current()});i&&(c=c.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,function(e){return e+s}));return c}}};function Sc(e){this.stack[this.stack.length-2].checked="taskListCheckValueChecked"===e.type}function kc(e={}){const t=this.data();function r(e,r){(t[e]?t[e]:t[e]=[]).push(r)}r("micromarkExtensions",function(e){return Ho([$s,{document:{91:{tokenize:ra,continuation:{tokenize:na},exit:oa}},text:{91:{tokenize:ta},93:{add:"after",tokenize:Zs,resolveTo:ea}}},ia(e),ca,pa])}(e)),r("fromMarkdownExtensions",[Pa,{enter:{gfmFootnoteDefinition:Ya,gfmFootnoteDefinitionLabelString:Xa,gfmFootnoteCall:ec,gfmFootnoteCallString:tc},exit:{gfmFootnoteDefinition:Za,gfmFootnoteDefinitionLabelString:Ja,gfmFootnoteCall:nc,gfmFootnoteCallString:rc}},cc,mc,_c]),r("toMarkdownExtensions",function(e){return{extensions:[Ia,{unsafe:[{character:"[",inConstruct:["phrasing","label","reference"]}],handlers:{footnoteDefinition:ic,footnoteReference:oc}},lc,Tc(e),Ac]}}(e))}var wc=pe(Object.freeze({__proto__:null,default:kc}));function Cc(e){Ca(e,/\r?\n|\r/g,xc)}function xc(){return{type:"break"}}var Oc=pe(Object.freeze({__proto__:null,default:function(){return Cc}})),Rc={},Nc={};function Pc(e,t,r){var n,o,i,s,a,c="";for("string"!=typeof t&&(r=t,t=Pc.defaultChars),void 0===r&&(r=!0),a=function(e){var t,r,n=Nc[e];if(n)return n;for(n=Nc[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,o=e.length;n<o;n++)if(i=e.charCodeAt(n),r&&37===i&&n+2<o&&/^[0-9a-f]{2}$/i.test(e.slice(n+1,n+3)))c+=e.slice(n,n+3),n+=2;else if(i<128)c+=a[i];else if(i>=55296&&i<=57343){if(i>=55296&&i<=56319&&n+1<o&&(s=e.charCodeAt(n+1))>=56320&&s<=57343){c+=encodeURIComponent(e[n]+e[n+1]),n++;continue}c+="%EF%BF%BD"}else c+=encodeURIComponent(e[n]);return c}Pc.defaultChars=";/?:@&=+$,-_.!~*'()#",Pc.componentChars="-_.!~*'()";var Ic=Pc,Lc={};function Dc(e,t){var r;return"string"!=typeof t&&(t=Dc.defaultChars),r=function(e){var t,r,n=Lc[e];if(n)return n;for(n=Lc[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,o,i,s,a,c,l="";for(t=0,n=e.length;t<n;t+=3)(o=parseInt(e.slice(t+1,t+3),16))<128?l+=r[o]:192==(224&o)&&t+3<n&&128==(192&(i=parseInt(e.slice(t+4,t+6),16)))?(l+=(c=o<<6&1984|63&i)<128?"��":String.fromCharCode(c),t+=3):224==(240&o)&&t+6<n&&(i=parseInt(e.slice(t+4,t+6),16),s=parseInt(e.slice(t+7,t+9),16),128==(192&i)&&128==(192&s))?(l+=(c=o<<12&61440|i<<6&4032|63&s)<2048||c>=55296&&c<=57343?"���":String.fromCharCode(c),t+=6):240==(248&o)&&t+9<n&&(i=parseInt(e.slice(t+4,t+6),16),s=parseInt(e.slice(t+7,t+9),16),a=parseInt(e.slice(t+10,t+12),16),128==(192&i)&&128==(192&s)&&128==(192&a))?((c=o<<18&1835008|i<<12&258048|s<<6&4032|63&a)<65536||c>1114111?l+="����":(c-=65536,l+=String.fromCharCode(55296+(c>>10),56320+(1023&c))),t+=9):l+="�";return l})}Dc.defaultChars=";/?:@&=+$,#",Dc.componentChars="";var Fc=Dc;function Mc(){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 Bc=/^([a-z0-9.+-]+:)/i,Uc=/:[0-9]*$/,Hc=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,jc=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),qc=["'"].concat(jc),zc=["%","/","?",";","#"].concat(qc),Gc=["/","?","#"],$c=/^[+a-z0-9A-Z_-]{0,63}$/,Kc=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,Vc={javascript:!0,"javascript:":!0},Wc={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};Mc.prototype.parse=function(e,t){var r,n,o,i,s,a=e;if(a=a.trim(),!t&&1===e.split("#").length){var c=Hc.exec(a);if(c)return this.pathname=c[1],c[2]&&(this.search=c[2]),this}var l=Bc.exec(a);if(l&&(o=(l=l[0]).toLowerCase(),this.protocol=l,a=a.substr(l.length)),(t||l||a.match(/^\/\/[^@\/]+@[^@\/]+/))&&(!(s="//"===a.substr(0,2))||l&&Vc[l]||(a=a.substr(2),this.slashes=!0)),!Vc[l]&&(s||l&&!Wc[l])){var u,h,f=-1;for(r=0;r<Gc.length;r++)-1!==(i=a.indexOf(Gc[r]))&&(-1===f||i<f)&&(f=i);for(-1!==(h=-1===f?a.lastIndexOf("@"):a.lastIndexOf("@",f))&&(u=a.slice(0,h),a=a.slice(h+1),this.auth=u),f=-1,r=0;r<zc.length;r++)-1!==(i=a.indexOf(zc[r]))&&(-1===f||i<f)&&(f=i);-1===f&&(f=a.length),":"===a[f-1]&&f--;var p=a.slice(0,f);a=a.slice(f),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($c)){for(var y="",E=0,T=g.length;E<T;E++)g.charCodeAt(E)>127?y+="x":y+=g[E];if(!y.match($c)){var v=m.slice(0,r),b=m.slice(r+1),_=g.match(Kc);_&&(v.push(_[1]),b.unshift(_[2])),b.length&&(a=b.join(".")+a),this.hostname=v.join(".");break}}}}this.hostname.length>255&&(this.hostname=""),d&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}var A=a.indexOf("#");-1!==A&&(this.hash=a.substr(A),a=a.slice(0,A));var S=a.indexOf("?");return-1!==S&&(this.search=a.substr(S),a=a.slice(0,S)),a&&(this.pathname=a),Wc[o]&&this.hostname&&!this.pathname&&(this.pathname=""),this},Mc.prototype.parseHost=function(e){var t=Uc.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)};var Qc=function(e,t){if(e&&e instanceof Mc)return e;var r=new Mc;return r.parse(e,t),r};function Yc(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 Xc(e,t,r,n){const o=Yc(r),i='"'===o?"Quote":"Apostrophe",s=r.enter("image");let a=r.enter("label");const c=r.createTracker(n);let l=c.move("![");return l+=c.move(r.safe(e.alt,{before:l,after:"]",...c.current()})),l+=c.move("]("),a(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(a=r.enter("destinationLiteral"),l+=c.move("<"),l+=c.move(r.safe(e.url,{before:l,after:">",...c.current()})),l+=c.move(">")):(a=r.enter("destinationRaw"),l+=c.move(r.safe(e.url,{before:l,after:e.title?" ":")",...c.current()}))),a(),e.title&&(a=r.enter(`title${i}`),l+=c.move(" "+o),l+=c.move(r.safe(e.title,{before:l,after:o,...c.current()})),l+=c.move(o),a()),l+=c.move(")"),s(),l}Rc.encode=Ic,Rc.decode=Fc,Rc.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||""},Rc.parse=Qc,Xc.peek=function(){return"!"};var Jc=pe(Object.freeze({__proto__:null,image:Xc})),Zc=pe(as);var el=pe(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 tl=pe(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 rl=pe(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:32,linkReferenceSizeMax:999,listItemValueSizeMax:10,numericBaseDecimal:10,numericBaseHexadecimal:16,tabSize:4,thematicBreakMarkerCountMin:3,v8MaxSafeChunkSize:1e4}})),nl=pe(Bi),ol=pe(Fi),il=pe(Ri),sl=pe(ri),al=pe(Pi),cl=pe(Li);const ll=function(e,t,r,n){"function"==typeof t&&"function"!=typeof r&&(n=r,r=t,t=null),ka(e,t,function(e,t){const n=t[t.length-1];return r(e,n?n.children.indexOf(e):null,n)},n)};var ul=pe(Object.freeze({__proto__:null,CONTINUE:_a,EXIT:Aa,SKIP:Sa,visit:ll}));function hl(e,t,r,n){const o=r.enter("paragraph"),i=r.enter("phrasing"),s=r.containerPhrasing(e,n);return i(),o(),s}var fl=pe(Object.freeze({__proto__:null,paragraph:hl}));function pl(e,t){let r=!1;return ll(e,e=>{if("value"in e&&/\r?\n|\r/.test(e.value)||"break"===e.type)return r=!0,Aa}),Boolean((!e.depth||e.depth<3)&&Lo(e)&&(t.options.setext||r))}function dl(e,t,r,n){const o=Math.max(Math.min(6,e.depth||1),1),i=r.createTracker(n);if(pl(e,r)){const t=r.enter("headingSetext"),n=r.enter("phrasing"),s=r.containerPhrasing(e,{...i.current(),before:"\n",after:"\n"});return n(),t(),s+"\n"+(1===o?"=":"-").repeat(s.length-(Math.max(s.lastIndexOf("\r"),s.lastIndexOf("\n"))+1))}const s="#".repeat(o),a=r.enter("headingAtx"),c=r.enter("phrasing");i.move(s+" ");let l=r.containerPhrasing(e,{before:"# ",after:"\n",...i.current()});return/^[\t ]/.test(l)&&(l="&#x"+l.charCodeAt(0).toString(16).toUpperCase()+";"+l.slice(1)),l=l?s+" "+l:s,r.options.closeAtx&&(l+=" "+s),c(),a(),l}var ml=pe(Object.freeze({__proto__:null,heading:dl})),gl=pe(oi);function yl(e,t,r,n){const o=r.enter("blockquote"),i=r.createTracker(n);i.move("> "),i.shift(2);const s=r.indentLines(r.containerFlow(e,i.current()),El);return o(),s}function El(e,t,r){return">"+(r?"":" ")+e}var Tl,vl=pe(Object.freeze({__proto__:null,blockquote:yl})),bl={exports:{}};Tl=bl,function(){var e;function t(e){for(var t,r,n,o,i=1,s=[].slice.call(arguments),a=0,c=e.length,l="",u=!1,h=!1,f=function(){return s[i++]},p=function(){for(var r="";/\d/.test(e[a]);)r+=e[a++],t=e[a];return r.length>0?parseInt(r):null};a<c;++a)if(t=e[a],u)switch(u=!1,"."==t?(h=!1,t=e[++a]):"0"==t&&"."==e[a+1]?(h=!0,t=e[a+=2]):h=!0,o=p(),t){case"b":l+=parseInt(f(),10).toString(2);break;case"c":l+="string"==typeof(r=f())||r instanceof String?r:String.fromCharCode(parseInt(r,10));break;case"d":l+=parseInt(f(),10);break;case"f":n=String(parseFloat(f()).toFixed(o||6)),l+=h?n:n.replace(/^0/,"");break;case"j":l+=JSON.stringify(f());break;case"o":l+="0"+parseInt(f(),10).toString(8);break;case"s":l+=f();break;case"x":l+="0x"+parseInt(f(),10).toString(16);break;case"X":l+="0x"+parseInt(f(),10).toString(16).toUpperCase();break;default:l+=t}else"%"===t?u=!0:l+=t;return l}(e=Tl.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 _l=bl.exports;const Al=Object.assign(Sl(Error),{eval:Sl(EvalError),range:Sl(RangeError),reference:Sl(ReferenceError),syntax:Sl(SyntaxError),type:Sl(TypeError),uri:Sl(URIError)});function Sl(e){return t.displayName=e.displayName||e.name,t;function t(t,...r){const n=t?_l(t,...r):t;return new e(n)}}const kl={}.hasOwnProperty,wl={yaml:"-",toml:"+"};function Cl(e){const t=[];let r=-1;const n=Array.isArray(e)?e:e?[e]:["yaml"];for(;++r<n.length;)t[r]=xl(n[r]);return t}function xl(e){let t=e;if("string"==typeof t){if(!kl.call(wl,t))throw Al("Missing matter definition for `%s`",t);t={type:t,marker:wl[t]}}else if("object"!=typeof t)throw Al("Expected matter to be an object, not `%j`",t);if(!kl.call(t,"type"))throw Al("Missing `type` in matter `%j`",t);if(!kl.call(t,"fence")&&!kl.call(t,"marker"))throw Al("Missing `marker` or `fence` in matter `%j`",t);return t}function Ol(e){const t=e.anywhere,r=e.type,n=r+"Fence",o=n+"Sequence",i=r+"Value",s={tokenize:function(e,t,r){let i=0;return function(t){if(t===a.charCodeAt(i))return e.enter(n),e.enter(o),s(t);return r(t)};function s(t){return i===a.length?(e.exit(o),Jo(t)?(e.enter("whitespace"),c(t)):l(t)):t===a.charCodeAt(i++)?(e.consume(t),s):r(t)}function c(t){return Jo(t)?(e.consume(t),c):(e.exit("whitespace"),l(t))}function l(o){return null===o||Yo(o)?(e.exit(n),t(o)):r(o)}},partial:!0};let a,c=0;return{tokenize:function(l,u,h){const f=this;return function(i){const s=f.now();if(1===s.column&&(1===s.line||t)&&(a=Rl(e,"open"),c=0,i===a.charCodeAt(c)))return l.enter(r),l.enter(n),l.enter(o),p(i);return h(i)};function p(e){return c===a.length?(l.exit(o),Jo(e)?(l.enter("whitespace"),d(e)):m(e)):e===a.charCodeAt(c++)?(l.consume(e),p):h(e)}function d(e){return Jo(e)?(l.consume(e),d):(l.exit("whitespace"),m(e))}function m(t){return Yo(t)?(l.exit(n),l.enter("lineEnding"),l.consume(t),l.exit("lineEnding"),a=Rl(e,"close"),c=0,l.attempt(s,T,g)):h(t)}function g(e){return null===e||Yo(e)?E(e):(l.enter(i),y(e))}function y(e){return null===e||Yo(e)?(l.exit(i),E(e)):(l.consume(e),y)}function E(e){return null===e?h(e):(l.enter("lineEnding"),l.consume(e),l.exit("lineEnding"),l.attempt(s,T,g))}function T(e){return l.exit(r),u(e)}},concrete:!0}}function Rl(e,t){return e.marker?Nl(e.marker,t).repeat(3):Nl(e.fence,t)}function Nl(e,t){return"string"==typeof e?e:e[t]}function Pl(e){return function(t){this.enter({type:e.type,value:""},t),this.buffer()}}function Il(e){const t=this.resume();this.exit(e).value=t.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,"")}function Ll(e){this.config.enter.data.call(this,e),this.config.exit.data.call(this,e)}function Dl(e){const t=Fl(e,"open"),r=Fl(e,"close");return function(e){return t+(e.value?"\n"+e.value:"")+"\n"+r}}function Fl(e,t){return e.marker?Ml(e.marker,t).repeat(3):Ml(e.fence,t)}function Ml(e,t){return"string"==typeof e?e:e[t]}var Bl=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=Cl(e),r={};let n=-1;for(;++n<t.length;){const e=t[n],o=Rl(e,"open").charCodeAt(0),i=Ol(e),s=r[o];Array.isArray(s)?s.push(i):r[o]=[i]}return{flow:r}}(e)),r("fromMarkdownExtensions",function(e){const t=Cl(e),r={},n={};let o=-1;for(;++o<t.length;){const e=t[o];r[e.type]=Pl(e),n[e.type]=Il,n[e.type+"Value"]=Ll}return{enter:r,exit:n}}(e)),r("toMarkdownExtensions",function(e){const t=[],r={},n=Cl(e);let o=-1;for(;++o<n.length;){const e=n[o];r[e.type]=Dl(e),t.push({atBreak:!0,character:Fl(e,"open").charAt(0)})}return{unsafe:t,handlers:r}}(e))}}),Ul=pe(Bl);function Hl(e,t,r,n,o,i,s,a,c,l,u,h,f,p,d){let m,g;return function(t){return e.enter(n),e.enter(o),e.consume(t),e.exit(o),y};function y(t){return 35===t?(m=s,E(t)):46===t?(m=a,E(t)):58===t||95===t||zo(t)?(e.enter(i),e.enter(c),e.consume(t),b):d&&Jo(t)?ni(e,y,"whitespace")(t):!d&&Xo(t)?Di(e,y)(t):O(t)}function E(t){const r=m+"Marker";return e.enter(i),e.enter(m),e.enter(r),e.consume(t),e.exit(r),T}function T(t){if(null===t||34===t||35===t||39===t||46===t||60===t||61===t||62===t||96===t||125===t||Xo(t))return r(t);const n=m+"Value";return e.enter(n),e.consume(t),v}function v(t){if(null===t||34===t||39===t||60===t||61===t||62===t||96===t)return r(t);if(35===t||46===t||125===t||Xo(t)){const r=m+"Value";return e.exit(r),e.exit(m),e.exit(i),y(t)}return e.consume(t),v}function b(t){return 45===t||46===t||58===t||95===t||Go(t)?(e.consume(t),b):(e.exit(c),d&&Jo(t)?ni(e,_,"whitespace")(t):!d&&Xo(t)?Di(e,_)(t):_(t))}function _(t){return 61===t?(e.enter(l),e.consume(t),e.exit(l),A):(e.exit(i),y(t))}function A(t){return null===t||60===t||61===t||62===t||96===t||125===t||d&&Yo(t)?r(t):34===t||39===t?(e.enter(u),e.enter(f),e.consume(t),e.exit(f),g=t,k):d&&Jo(t)?ni(e,A,"whitespace")(t):!d&&Xo(t)?Di(e,A)(t):(e.enter(h),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||Xo(t)?(e.exit(p),e.exit(h),e.exit(i),y(t)):(e.consume(t),S)}function k(t){return t===g?(e.enter(f),e.consume(t),e.exit(f),e.exit(u),e.exit(i),x):(e.enter(h),w(t))}function w(t){return t===g?(e.exit(h),k(t)):null===t?r(t):Yo(t)?d?r(t):Di(e,w)(t):(e.enter(p),e.consume(t),C)}function C(t){return t===g||null===t||Yo(t)?(e.exit(p),w(t)):(e.consume(t),C)}function x(e){return 125===e||Xo(e)?y(e):O(e)}function O(i){return 125===i?(e.enter(o),e.consume(i),e.exit(o),e.exit(n),t):r(i)}}function jl(e,t,r,n,o,i,s){let a,c=0,l=0;return function(t){return e.enter(n),e.enter(o),e.consume(t),e.exit(o),u};function u(r){return 93===r?(e.enter(o),e.consume(r),e.exit(o),e.exit(n),t):(e.enter(i),h(r))}function h(t){if(93===t&&!l)return d(t);const r=e.enter("chunkText",{contentType:"text",previous:a});return a&&(a.next=r),a=r,f(t)}function f(t){return null===t||c>999||91===t&&++l>32?r(t):93!==t||l--?Yo(t)?s?r(t):(e.consume(t),e.exit("chunkText"),h):(e.consume(t),92===t?p:f):(e.exit("chunkText"),d(t))}function p(t){return 91===t||92===t||93===t?(e.consume(t),c++,f):f(t)}function d(r){return e.exit(i),e.enter(o),e.consume(r),e.exit(o),e.exit(n),t}}function ql(e,t,r,n){const o=this;return function(t){if(zo(t))return e.enter(n),e.consume(t),i;return r(t)};function i(s){return 45===s||95===s||Go(s)?(e.consume(s),i):(e.exit(n),45===o.previous||95===o.previous?r(s):t(s))}}const zl={tokenize:function(e,t,r){const n=this,o=n.events[n.events.length-1],i=o&&"linePrefix"===o[1].type?o[2].sliceSerialize(o[1],!0).length:0;let s,a=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),a++,c):a<3?r(t):(e.exit("directiveContainerSequence"),ql.call(n,e,l,r,"directiveContainerName")(t))}function l(t){return 91===t?e.attempt(Gl,u,u)(t):u(t)}function u(t){return 123===t?e.attempt($l,h,h)(t):h(t)}function h(t){return ni(e,f,"whitespace")(t)}function f(o){return e.exit("directiveContainerFence"),null===o?p(o):Yo(o)?n.interrupt?t(o):e.attempt(Kl,d,p)(o):r(o)}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?v(t):e.attempt({tokenize:b,partial:!0},v,i?ni(e,g,"linePrefix",i+1):g)(t)}function g(t){if(null===t)return v(t);const r=e.enter("chunkDocument",{contentType:"document",previous:s});return s&&(s.next=r),s=r,y(t)}function y(t){if(null===t){const r=e.exit("chunkDocument");return n.parser.lazy[r.start.line]=!1,v(t)}return Yo(t)?e.check(Kl,E,T)(t):(e.consume(t),y)}function E(t){e.consume(t);const r=e.exit("chunkDocument");return n.parser.lazy[r.start.line]=!1,m}function T(t){const r=e.exit("chunkDocument");return n.parser.lazy[r.start.line]=!1,v(t)}function v(r){return e.exit("directiveContainerContent"),e.exit("directiveContainer"),t(r)}function b(e,t,r){let n=0;return ni(e,function(t){return e.enter("directiveContainerFence"),e.enter("directiveContainerSequence"),o(t)},"linePrefix",4);function o(t){return 58===t?(e.consume(t),n++,o):n<a?r(t):(e.exit("directiveContainerSequence"),ni(e,i,"whitespace")(t))}function i(n){return null===n||Yo(n)?(e.exit("directiveContainerFence"),t(n)):r(n)}}},concrete:!0},Gl={tokenize:function(e,t,r){return jl(e,t,r,"directiveContainerLabel","directiveContainerLabelMarker","directiveContainerLabelString",!0)},partial:!0},$l={tokenize:function(e,t,r){return Hl(e,t,r,"directiveContainerAttributes","directiveContainerAttributesMarker","directiveContainerAttribute","directiveContainerAttributeId","directiveContainerAttributeClass","directiveContainerAttributeName","directiveContainerAttributeInitializerMarker","directiveContainerAttributeValueLiteral","directiveContainerAttributeValue","directiveContainerAttributeValueMarker","directiveContainerAttributeValueData",!0)},partial:!0},Kl={tokenize:function(e,t,r){const n=this;return function(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};const Vl={tokenize:function(e,t,r){const n=this;return function(t){return e.enter("directiveLeaf"),e.enter("directiveLeafSequence"),e.consume(t),o};function o(t){return 58===t?(e.consume(t),e.exit("directiveLeafSequence"),ql.call(n,e,i,r,"directiveLeafName")):r(t)}function i(t){return 91===t?e.attempt(Wl,s,s)(t):s(t)}function s(t){return 123===t?e.attempt(Ql,a,a)(t):a(t)}function a(t){return ni(e,c,"whitespace")(t)}function c(n){return null===n||Yo(n)?(e.exit("directiveLeaf"),t(n)):r(n)}}},Wl={tokenize:function(e,t,r){return jl(e,t,r,"directiveLeafLabel","directiveLeafLabelMarker","directiveLeafLabelString",!0)},partial:!0},Ql={tokenize:function(e,t,r){return Hl(e,t,r,"directiveLeafAttributes","directiveLeafAttributesMarker","directiveLeafAttribute","directiveLeafAttributeId","directiveLeafAttributeClass","directiveLeafAttributeName","directiveLeafAttributeInitializerMarker","directiveLeafAttributeValueLiteral","directiveLeafAttributeValue","directiveLeafAttributeValueMarker","directiveLeafAttributeValueData",!0)},partial:!0};const Yl={tokenize:function(e,t,r){const n=this;return function(t){return e.enter("directiveText"),e.enter("directiveTextMarker"),e.consume(t),e.exit("directiveTextMarker"),ql.call(n,e,o,r,"directiveTextName")};function o(t){return 58===t?r(t):91===t?e.attempt(Xl,i,i)(t):i(t)}function i(t){return 123===t?e.attempt(Jl,s,s)(t):s(t)}function s(r){return e.exit("directiveText"),t(r)}},previous:function(e){return 58!==e||"characterEscape"===this.events[this.events.length-1][1].type}},Xl={tokenize:function(e,t,r){return jl(e,t,r,"directiveTextLabel","directiveTextLabelMarker","directiveTextLabelString")},partial:!0},Jl={tokenize:function(e,t,r){return Hl(e,t,r,"directiveTextAttributes","directiveTextAttributesMarker","directiveTextAttribute","directiveTextAttributeId","directiveTextAttributeClass","directiveTextAttributeName","directiveTextAttributeInitializerMarker","directiveTextAttributeValueLiteral","directiveTextAttributeValue","directiveTextAttributeValueMarker","directiveTextAttributeValueData")},partial:!0};const Zl=["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"],eu={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 tu(e){const t="string"==typeof e?e.charCodeAt(0):e;return t>=48&&t<=57}function ru(e){const t="string"==typeof e?e.charCodeAt(0):e;return t>=97&&t<=102||t>=65&&t<=70||t>=48&&t<=57}function nu(e){return function(e){const t="string"==typeof e?e.charCodeAt(0):e;return t>=97&&t<=122||t>=65&&t<=90}(e)||tu(e)}const ou=["","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 iu(e,t){const r=t||{},n="string"==typeof r.additional?r.additional.charCodeAt(0):r.additional,o=[];let i,s,a=0,c=-1,l="";r.position&&("start"in r.position||"indent"in r.position?(s=r.position.indent,i=r.position.start):i=r.position);let u,h=(i?i.line:0)||1,f=(i?i.column:0)||1,p=d();for(a--;++a<=e.length;)if(10===u&&(f=(s?s[c]:0)||1),u=e.charCodeAt(a),38===u){const t=e.charCodeAt(a+1);if(9===t||10===t||12===t||32===t||38===t||60===t||Number.isNaN(t)||n&&t===n){l+=String.fromCharCode(u),f++;continue}const i=a+1;let s,c=i,h=i;if(35===t){h=++c;const t=e.charCodeAt(h);88===t||120===t?(s="hexadecimal",h=++c):s="decimal"}else s="named";let y="",E="",T="";const v="named"===s?nu:"decimal"===s?tu:ru;for(h--;++h<=e.length;){const t=e.charCodeAt(h);if(!v(t))break;T+=String.fromCharCode(t),"named"===s&&Zl.includes(T)&&(y=T,E=Ei(T))}let b=59===e.charCodeAt(h);if(b){h++;const e="named"===s&&Ei(T);e&&(y=T,E=e)}let _=1+h-i,A="";if(b||!1!==r.nonTerminated)if(T)if("named"===s){if(b&&!E)m(5,1);else if(y!==T&&(h=c+y.length,_=1+h-c,b=!1),!b){const t=y?1:3;if(r.attribute){const r=e.charCodeAt(h);61===r?(m(t,_),E=""):nu(r)?E="":m(t,_)}else m(t,_)}A=E}else{b||m(2,_);let e=Number.parseInt(T,"hexadecimal"===s?16:10);if(su(e))m(7,_),A=String.fromCharCode(65533);else if(e in eu)m(6,_),A=eu[e];else{let t="";au(e)&&m(6,_),e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10|55296),e=56320|1023&e),A=t+String.fromCharCode(e)}}else"named"!==s&&m(4,_);else;if(A){g(),p=d(),a=h-1,f+=h-i+1,o.push(A);const t=d();t.offset++,r.reference&&r.reference.call(r.referenceContext||void 0,A,{start:p,end:t},e.slice(i-1,h)),p=t}else T=e.slice(i-1,h),l+=T,f+=T.length,a=h-1}else 10===u&&(h++,c++,f=0),Number.isNaN(u)?g():(l+=String.fromCharCode(u),f++);return o.join("");function d(){return{line:h,column:f,offset:a+((i?i.offset:0)||0)}}function m(e,t){let n;r.warning&&(n=d(),n.column+=t,n.offset+=t,r.warning.call(r.warningContext||void 0,ou[e],n,e))}function g(){l&&(o.push(l),r.text&&r.text.call(r.textContext||void 0,l,{start:p,end:d()}),l="")}}function su(e){return e>=55296&&e<=57343||e>1114111}function au(e){return e>=1&&e<=8||11===e||e>=13&&e<=31||e>=127&&e<=159||e>=64976&&e<=65007||!(65535&~e)||65534==(65535&e)}const cu=/["&'<>`]/g,lu=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,uu=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,hu=/[|\\{}()[\]^$+*?.]/g,fu=new WeakMap;function pu(e,t){return e=e.replace(t.subset?function(e){let t=fu.get(e);t||(t=function(e){const t=[];let r=-1;for(;++r<e.length;)t.push(e[r].replace(hu,"\\$&"));return new RegExp("(?:"+t.join("|")+")","g")}(e),fu.set(e,t));return t}(t.subset):cu,r),t.subset||t.escapeOnly?e:e.replace(lu,function(e,r,n){return t.format(1024*(e.charCodeAt(0)-55296)+e.charCodeAt(1)-56320+65536,n.charCodeAt(r+2),t)}).replace(uu,r);function r(e,r,n){return t.format(e.charCodeAt(0),n.charCodeAt(r+1),t)}}function du(e){return"&#x"+e.toString(16).toUpperCase()+";"}const mu={}.hasOwnProperty,gu=/^[^\t\n\r "#'.<=>`}]+$/;xu.peek=function(){return":"};const yu={canContainEols:["textDirective"],enter:{directiveContainer:function(e){Tu.call(this,"containerDirective",e)},directiveContainerAttributes:bu,directiveContainerLabel:function(e){this.enter({type:"paragraph",data:{directiveLabel:!0},children:[]},e)},directiveLeaf:function(e){Tu.call(this,"leafDirective",e)},directiveLeafAttributes:bu,directiveText:function(e){Tu.call(this,"textDirective",e)},directiveTextAttributes:bu},exit:{directiveContainer:Cu,directiveContainerAttributeClassValue:Au,directiveContainerAttributeIdValue:_u,directiveContainerAttributeName:ku,directiveContainerAttributeValue:Su,directiveContainerAttributes:wu,directiveContainerLabel:function(e){this.exit(e)},directiveContainerName:vu,directiveLeaf:Cu,directiveLeafAttributeClassValue:Au,directiveLeafAttributeIdValue:_u,directiveLeafAttributeName:ku,directiveLeafAttributeValue:Su,directiveLeafAttributes:wu,directiveLeafName:vu,directiveText:Cu,directiveTextAttributeClassValue:Au,directiveTextAttributeIdValue:_u,directiveTextAttributeName:ku,directiveTextAttributeValue:Su,directiveTextAttributes:wu,directiveTextName:vu}},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:xu,leafDirective:xu,textDirective:xu}};function Tu(e,t){this.enter({type:e,name:"",attributes:{},children:[]},t)}function vu(e){this.stack[this.stack.length-1].name=this.sliceSerialize(e)}function bu(){this.setData("directiveAttributes",[]),this.buffer()}function _u(e){this.getData("directiveAttributes").push(["id",iu(this.sliceSerialize(e),{attribute:!0})])}function Au(e){this.getData("directiveAttributes").push(["class",iu(this.sliceSerialize(e),{attribute:!0})])}function Su(e){const t=this.getData("directiveAttributes");t[t.length-1][1]=iu(this.sliceSerialize(e),{attribute:!0})}function ku(e){this.getData("directiveAttributes").push([this.sliceSerialize(e),""])}function wu(){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 Cu(e){this.exit(e)}function xu(e,t,r,n){const o=Qa(n),i=function(e){let t=0;"containerDirective"===e.type?(ka(e,function(e,r){if("containerDirective"===e.type){let e=r.length,n=0;for(;e--;)"containerDirective"===r[e].type&&n++;n>t&&(t=n)}}),t+=3):t="leafDirective"===e.type?2:1;return":".repeat(t)}(e),s=r.enter(e.type);let a,c=o.move(i+(e.name||""));if("containerDirective"===e.type){const t=(e.children||[])[0];a=Ou(t)?t:void 0}else a=e;if(a&&a.children&&a.children.length>0){const t=r.enter("label"),n=`${e.type}Label`,i=r.enter(n);c+=o.move("["),c+=o.move(ac(a,r,{...o.current(),before:c,after:"]"})),c+=o.move("]"),i(),t()}if(c+=o.move(function(e,t){const r=Yc(t),n="textDirective"===e.type?[r]:[r,"\n","\r"],o=e.attributes||{},i=[];let s,a,c,l;for(l in o)if(mu.call(o,l)&&void 0!==o[l]&&null!==o[l]){const e=String(o[l]);if("id"===l)c=gu.test(e)?"#"+e:u("id",e);else if("class"===l){const t=e.split(/[\t\n\r ]+/g),r=[],n=[];let o=-1;for(;++o<t.length;)(gu.test(t[o])?n:r).push(t[o]);s=r.length>0?u("class",r.join(" ")):"",a=n.length>0?"."+n.join("."):""}else i.push(u(l,e))}s&&i.unshift(s);a&&i.unshift(a);c&&i.unshift(c);return i.length>0?"{"+i.join(" ")+"}":"";function u(e,t){return e+(t?"="+r+function(e,t){return pu(e,Object.assign({format:du},t))}(t,{subset:n})+r:"")}}(e,r)),"containerDirective"===e.type){let t=e;Ou((e.children||[])[0])&&(t=Object.assign({},e,{children:e.children.slice(1)})),t&&t.children&&t.children.length>0&&(c+=o.move("\n"),c+=o.move(Ua(t,r,o.current()))),c+=o.move("\n"+i)}return s(),c}function Ou(e){return Boolean(e&&"paragraph"===e.type&&e.data&&e.data.directiveLabel)}var Ru=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:Yl},flow:{58:[zl,Vl]}}),t("fromMarkdownExtensions",yu),t("toMarkdownExtensions",Eu)}}),Nu=pe(Ru);const Pu={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};function Iu(){const e=this.data();function t(t,r){(e[t]||(e[t]=[])).push(r)}return t("micromarkExtensions",function(){const e={text:{[Pu.leftCurlyBrace]:{name:"headingIdMaybeStart",tokenize:(e,t,r)=>function(n){return e.attempt({tokenize(e,t,r){return function(t){if(t!==Pu.leftCurlyBrace)throw new Error(`Unexpected code ${t}`);return e.enter("id"),e.enter("idMarker"),e.consume(t),n};function n(t){return t!==Pu.numberSign?r(t):(e.consume(t),e.exit("idMarker"),e.enter("idString"),e.enter("chunkString",{contentType:"string"}),o)}function o(n){return[Pu.carriageReturn,Pu.lineFeed,Pu.carriageReturnLineFeed,null,Pu.backslash,Pu.leftCurlyBrace].includes(n)?r(n):n===Pu.rightCurlyBrace?(e.exit("chunkString"),e.exit("idString"),e.enter("idMarker"),e.consume(n),e.exit("idMarker"),e.exit("id"),t):(e.consume(n),o)}}},t,r)(n)}}}};return e}()),t("fromMarkdownExtensions",function(){const e={enter:{idString(e){this.enter({type:"idString",value:null},e),this.buffer()}},exit:{idString(e){const t=this.resume(),r=this.stack.length>=1?this.stack[this.stack.length-1]:void 0;this.exit(e),r&&("idString"===r.type?r.value=t:console.error(r))}}};return e}()),function(e){ll(e,"idString",(e,t,r)=>{if(!r)throw new Error("Unexpected idString under no parent.");if("heading"!==r.type)throw new Error(`Unexpected node ${e} under ${r}`)}),ll(e,"heading",e=>{const t=e.children,r=t.filter(e=>"idString"===e.type);if(0==r.length)return;if(r.length>1)throw new Error(`Found ${r.length} ids under heading ${e}.`);const n=r[0];if(n.value&&n.value.length>0){e.data||(e.data={}),e.data.hProperties||(e.data.hProperties={}),e.data.id=e.data.hProperties.id=n.value,n.value="";const r=t.indexOf(n);if(r>=1){const e=t[r-1];"text"===e.type&&(e.value=e.value.trimEnd())}t.splice(r,1)}})}}var Lu=pe(Object.freeze({__proto__:null,remarkHeadingId:Iu,default:Iu})),Du=pe(va),Fu=G.default.Stream,Mu=Bu;function Bu(){this.source=null,this.dataSize=0,this.maxDataSize=1048576,this.pauseStream=!0,this._maxDataSizeExceeded=!1,this._released=!1,this._bufferedEvents=[]}z.default.inherits(Bu,Fu),Bu.create=function(e,t){var r=new this;for(var n in t=t||{})r[n]=t[n];r.source=e;var o=e.emit;return e.emit=function(){return r._handleEmit(arguments),o.apply(e,arguments)},e.on("error",function(){}),r.pauseStream&&e.pause(),r},Object.defineProperty(Bu.prototype,"readable",{configurable:!0,enumerable:!0,get:function(){return this.source.readable}}),Bu.prototype.setEncoding=function(){return this.source.setEncoding.apply(this.source,arguments)},Bu.prototype.resume=function(){this._released||this.release(),this.source.resume()},Bu.prototype.pause=function(){this.source.pause()},Bu.prototype.release=function(){this._released=!0,this._bufferedEvents.forEach(function(e){this.emit.apply(this,e)}.bind(this)),this._bufferedEvents=[]},Bu.prototype.pipe=function(){var e=Fu.prototype.pipe.apply(this,arguments);return this.resume(),e},Bu.prototype._handleEmit=function(e){this._released?this.emit.apply(this,e):("data"===e[0]&&(this.dataSize+=e[1].length,this._checkIfMaxDataSizeExceeded()),this._bufferedEvents.push(e))},Bu.prototype._checkIfMaxDataSizeExceeded=function(){if(!(this._maxDataSizeExceeded||this.dataSize<=this.maxDataSize)){this._maxDataSizeExceeded=!0;var e="DelayedStream#maxDataSize of "+this.maxDataSize+" bytes exceeded.";this.emit("error",new Error(e))}};var Uu=z.default,Hu=G.default.Stream,ju=Mu,qu=zu;function zu(){this.writable=!1,this.readable=!0,this.dataSize=0,this.maxDataSize=2097152,this.pauseStreams=!0,this._released=!1,this._streams=[],this._currentStream=null,this._insideLoop=!1,this._pendingNext=!1}Uu.inherits(zu,Hu),zu.create=function(e){var t=new this;for(var r in e=e||{})t[r]=e[r];return t},zu.isStreamLike=function(e){return"function"!=typeof e&&"string"!=typeof e&&"boolean"!=typeof e&&"number"!=typeof e&&!Buffer.isBuffer(e)},zu.prototype.append=function(e){if(zu.isStreamLike(e)){if(!(e instanceof ju)){var t=ju.create(e,{maxDataSize:1/0,pauseStream:this.pauseStreams});e.on("data",this._checkDataSize.bind(this)),e=t}this._handleErrors(e),this.pauseStreams&&e.pause()}return this._streams.push(e),this},zu.prototype.pipe=function(e,t){return Hu.prototype.pipe.call(this,e,t),this.resume(),e},zu.prototype._getNext=function(){if(this._currentStream=null,this._insideLoop)this._pendingNext=!0;else{this._insideLoop=!0;try{do{this._pendingNext=!1,this._realGetNext()}while(this._pendingNext)}finally{this._insideLoop=!1}}},zu.prototype._realGetNext=function(){var e=this._streams.shift();void 0!==e?"function"==typeof e?e(function(e){zu.isStreamLike(e)&&(e.on("data",this._checkDataSize.bind(this)),this._handleErrors(e)),this._pipeNext(e)}.bind(this)):this._pipeNext(e):this.end()},zu.prototype._pipeNext=function(e){if(this._currentStream=e,zu.isStreamLike(e))return e.on("end",this._getNext.bind(this)),void e.pipe(this,{end:!1});var t=e;this.write(t),this._getNext()},zu.prototype._handleErrors=function(e){var t=this;e.on("error",function(e){t._emitError(e)})},zu.prototype.write=function(e){this.emit("data",e)},zu.prototype.pause=function(){this.pauseStreams&&(this.pauseStreams&&this._currentStream&&"function"==typeof this._currentStream.pause&&this._currentStream.pause(),this.emit("pause"))},zu.prototype.resume=function(){this._released||(this._released=!0,this.writable=!0,this._getNext()),this.pauseStreams&&this._currentStream&&"function"==typeof this._currentStream.resume&&this._currentStream.resume(),this.emit("resume")},zu.prototype.end=function(){this._reset(),this.emit("end")},zu.prototype.destroy=function(){this._reset(),this.emit("close")},zu.prototype._reset=function(){this.writable=!1,this._streams=[],this._currentStream=null},zu.prototype._checkDataSize=function(){if(this._updateDataSize(),!(this.dataSize<=this.maxDataSize)){var e="DelayedStream#maxDataSize of "+this.maxDataSize+" bytes exceeded.";this._emitError(new Error(e))}},zu.prototype._updateDataSize=function(){this.dataSize=0;var e=this;this._streams.forEach(function(t){t.dataSize&&(e.dataSize+=t.dataSize)}),this._currentStream&&this._currentStream.dataSize&&(this.dataSize+=this._currentStream.dataSize)},zu.prototype._emitError=function(e){this._reset(),this.emit("error",e)};var Gu=function(e){var t="function"==typeof setImmediate?setImmediate:"object"==typeof process&&"function"==typeof process.nextTick?process.nextTick:null;t?t(e):setTimeout(e,0)},$u=function(e){var t=!1;return Gu(function(){t=!0}),function(r,n){t?e(r,n):Gu(function(){e(r,n)})}};var Ku=function(e){Object.keys(e.jobs).forEach(Vu.bind(e)),e.jobs={}};function Vu(e){"function"==typeof this.jobs[e]&&this.jobs[e]()}var Wu=$u,Qu=Ku,Yu=function(e,t,r,n){var o=r.keyedList?r.keyedList[r.index]:r.index;r.jobs[o]=function(e,t,r,n){var o;o=2==e.length?e(r,Wu(n)):e(r,t,Wu(n));return o}(t,o,e[o],function(e,t){o in r.jobs&&(delete r.jobs[o],e?Qu(r):r.results[o]=t,n(e,r.results))})};var Xu=function(e,t){var r=!Array.isArray(e),n={index:0,keyedList:r||t?Object.keys(e):null,jobs:{},results:r?{}:[],size:r?Object.keys(e).length:e.length};t&&n.keyedList.sort(r?t:function(r,n){return t(e[r],e[n])});return n};var Ju=Ku,Zu=$u,eh=function(e){if(!Object.keys(this.jobs).length)return;this.index=this.size,Ju(this),Zu(e)(null,this.results)};var th=Yu,rh=Xu,nh=eh,oh=function(e,t,r){var n=rh(e);for(;n.index<(n.keyedList||e).length;)th(e,t,n,function(e,t){e?r(e,t):0!==Object.keys(n.jobs).length||r(null,n.results)}),n.index++;return nh.bind(n,r)};var ih={exports:{}},sh=Yu,ah=Xu,ch=eh;function lh(e,t){return e<t?-1:e>t?1:0}ih.exports=function(e,t,r,n){var o=ah(e,r);return sh(e,t,o,function r(i,s){i?n(i,s):(o.index++,o.index<(o.keyedList||e).length?sh(e,t,o,r):n(null,o.results))}),ch.bind(o,n)},ih.exports.ascending=lh,ih.exports.descending=function(e,t){return-1*lh(e,t)};var uh=ih.exports,hh=function(e,t,r){return uh(e,t,null,r)};var fh={parallel:oh,serial:hh,serialOrdered:ih.exports},ph=Object,dh=Error,mh=EvalError,gh=RangeError,yh=ReferenceError,Eh=SyntaxError,Th=TypeError,vh=URIError,bh=Math.abs,_h=Math.floor,Ah=Math.max,Sh=Math.min,kh=Math.pow,wh=Math.round,Ch=Number.isNaN||function(e){return e!=e},xh=Ch,Oh=Object.getOwnPropertyDescriptor;if(Oh)try{Oh([],"length")}catch(Bv){Oh=null}var Rh=Oh,Nh=Object.defineProperty||!1;if(Nh)try{Nh({},"a",{value:1})}catch(Bv){Nh=!1}var Ph,Ih=Nh,Lh=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),r=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(r))return!1;for(var n in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var o=Object.getOwnPropertySymbols(e);if(1!==o.length||o[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var i=Object.getOwnPropertyDescriptor(e,t);if(42!==i.value||!0!==i.enumerable)return!1}return!0},Dh="undefined"!=typeof Symbol&&Symbol,Fh=Lh,Mh="undefined"!=typeof Reflect&&Reflect.getPrototypeOf||null,Bh=ph.getPrototypeOf||null,Uh=Object.prototype.toString,Hh=Math.max,jh=function(e,t){for(var r=[],n=0;n<e.length;n+=1)r[n]=e[n];for(var o=0;o<t.length;o+=1)r[o+e.length]=t[o];return r},qh=function(e){var t=this;if("function"!=typeof t||"[object Function]"!==Uh.apply(t))throw new TypeError("Function.prototype.bind called on incompatible "+t);for(var r,n=function(e,t){for(var r=[],n=t||0,o=0;n<e.length;n+=1,o+=1)r[o]=e[n];return r}(arguments,1),o=Hh(0,t.length-n.length),i=[],s=0;s<o;s++)i[s]="$"+s;if(r=Function("binder","return function ("+function(e,t){for(var r="",n=0;n<e.length;n+=1)r+=e[n],n+1<e.length&&(r+=t);return r}(i,",")+"){ return binder.apply(this,arguments); }")(function(){if(this instanceof r){var o=t.apply(this,jh(n,arguments));return Object(o)===o?o:this}return t.apply(e,jh(n,arguments))}),t.prototype){var a=function(){};a.prototype=t.prototype,r.prototype=new a,a.prototype=null}return r},zh=Function.prototype.bind||qh,Gh=Function.prototype.call,$h=Function.prototype.apply,Kh=$h,Vh=Gh,Wh="undefined"!=typeof Reflect&&Reflect&&Reflect.apply||zh.call(Vh,Kh),Qh=zh,Yh=Th,Xh=Gh,Jh=Wh,Zh=function(e){if(e.length<1||"function"!=typeof e[0])throw new Yh("a function is required");return Jh(Qh,Xh,e)},ef=Rh;try{Ph=[].__proto__===Array.prototype}catch(Bv){if(!Bv||"object"!=typeof Bv||!("code"in Bv)||"ERR_PROTO_ACCESS"!==Bv.code)throw Bv}var tf,rf=!!Ph&&ef&&ef(Object.prototype,"__proto__"),nf=Object,of=nf.getPrototypeOf,sf=rf&&"function"==typeof rf.get?Zh([rf.get]):"function"==typeof of&&function(e){return of(null==e?e:nf(e))},af=Mh,cf=Bh,lf=sf,uf=af?function(e){return af(e)}:cf?function(e){if(!e||"object"!=typeof e&&"function"!=typeof e)throw new TypeError("getProto: not an object");return cf(e)}:lf?function(e){return lf(e)}:null,hf=Function.prototype.call,ff=Object.prototype.hasOwnProperty,pf=zh.call(hf,ff),df=ph,mf=dh,gf=mh,yf=gh,Ef=yh,Tf=Eh,vf=Th,bf=vh,_f=bh,Af=_h,Sf=Ah,kf=Sh,wf=kh,Cf=wh,xf=function(e){return xh(e)||0===e?e:e<0?-1:1},Of=Function,Rf=function(e){try{return Of('"use strict"; return ('+e+").constructor;")()}catch(e){}},Nf=Rh,Pf=Ih,If=function(){throw new vf},Lf=Nf?function(){try{return If}catch(e){try{return Nf(arguments,"callee").get}catch(e){return If}}}():If,Df="function"==typeof Dh&&"function"==typeof Symbol&&"symbol"==typeof Dh("foo")&&"symbol"==typeof Symbol("bar")&&Fh(),Ff=uf,Mf=Bh,Bf=Mh,Uf=$h,Hf=Gh,jf={},qf="undefined"!=typeof Uint8Array&&Ff?Ff(Uint8Array):tf,zf={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?tf:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?tf:ArrayBuffer,"%ArrayIteratorPrototype%":Df&&Ff?Ff([][Symbol.iterator]()):tf,"%AsyncFromSyncIteratorPrototype%":tf,"%AsyncFunction%":jf,"%AsyncGenerator%":jf,"%AsyncGeneratorFunction%":jf,"%AsyncIteratorPrototype%":jf,"%Atomics%":"undefined"==typeof Atomics?tf:Atomics,"%BigInt%":"undefined"==typeof BigInt?tf:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?tf:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?tf:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?tf:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":mf,"%eval%":eval,"%EvalError%":gf,"%Float16Array%":"undefined"==typeof Float16Array?tf:Float16Array,"%Float32Array%":"undefined"==typeof Float32Array?tf:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?tf:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?tf:FinalizationRegistry,"%Function%":Of,"%GeneratorFunction%":jf,"%Int8Array%":"undefined"==typeof Int8Array?tf:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?tf:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?tf:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":Df&&Ff?Ff(Ff([][Symbol.iterator]())):tf,"%JSON%":"object"==typeof JSON?JSON:tf,"%Map%":"undefined"==typeof Map?tf:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&Df&&Ff?Ff((new Map)[Symbol.iterator]()):tf,"%Math%":Math,"%Number%":Number,"%Object%":df,"%Object.getOwnPropertyDescriptor%":Nf,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?tf:Promise,"%Proxy%":"undefined"==typeof Proxy?tf:Proxy,"%RangeError%":yf,"%ReferenceError%":Ef,"%Reflect%":"undefined"==typeof Reflect?tf:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?tf:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&Df&&Ff?Ff((new Set)[Symbol.iterator]()):tf,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?tf:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":Df&&Ff?Ff(""[Symbol.iterator]()):tf,"%Symbol%":Df?Symbol:tf,"%SyntaxError%":Tf,"%ThrowTypeError%":Lf,"%TypedArray%":qf,"%TypeError%":vf,"%Uint8Array%":"undefined"==typeof Uint8Array?tf:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?tf:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?tf:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?tf:Uint32Array,"%URIError%":bf,"%WeakMap%":"undefined"==typeof WeakMap?tf:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?tf:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?tf:WeakSet,"%Function.prototype.call%":Hf,"%Function.prototype.apply%":Uf,"%Object.defineProperty%":Pf,"%Object.getPrototypeOf%":Mf,"%Math.abs%":_f,"%Math.floor%":Af,"%Math.max%":Sf,"%Math.min%":kf,"%Math.pow%":wf,"%Math.round%":Cf,"%Math.sign%":xf,"%Reflect.getPrototypeOf%":Bf};if(Ff)try{null.error}catch(Bv){var Gf=Ff(Ff(Bv));zf["%Error.prototype%"]=Gf}var $f=function e(t){var r;if("%AsyncFunction%"===t)r=Rf("async function () {}");else if("%GeneratorFunction%"===t)r=Rf("function* () {}");else if("%AsyncGeneratorFunction%"===t)r=Rf("async function* () {}");else if("%AsyncGenerator%"===t){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if("%AsyncIteratorPrototype%"===t){var o=e("%AsyncGenerator%");o&&Ff&&(r=Ff(o.prototype))}return zf[t]=r,r},Kf={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},Vf=zh,Wf=pf,Qf=Vf.call(Hf,Array.prototype.concat),Yf=Vf.call(Uf,Array.prototype.splice),Xf=Vf.call(Hf,String.prototype.replace),Jf=Vf.call(Hf,String.prototype.slice),Zf=Vf.call(Hf,RegExp.prototype.exec),ep=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,tp=/\\(\\)?/g,rp=function(e,t){var r,n=e;if(Wf(Kf,n)&&(n="%"+(r=Kf[n])[0]+"%"),Wf(zf,n)){var o=zf[n];if(o===jf&&(o=$f(n)),void 0===o&&!t)throw new vf("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:o}}throw new Tf("intrinsic "+e+" does not exist!")},np=Lh,op=function(e,t){if("string"!=typeof e||0===e.length)throw new vf("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new vf('"allowMissing" argument must be a boolean');if(null===Zf(/^%?[^%]*%?$/,e))throw new Tf("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=function(e){var t=Jf(e,0,1),r=Jf(e,-1);if("%"===t&&"%"!==r)throw new Tf("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==t)throw new Tf("invalid intrinsic syntax, expected opening `%`");var n=[];return Xf(e,ep,function(e,t,r,o){n[n.length]=r?Xf(o,tp,"$1"):t||e}),n}(e),n=r.length>0?r[0]:"",o=rp("%"+n+"%",t),i=o.name,s=o.value,a=!1,c=o.alias;c&&(n=c[0],Yf(r,Qf([0,1],c)));for(var l=1,u=!0;l<r.length;l+=1){var h=r[l],f=Jf(h,0,1),p=Jf(h,-1);if(('"'===f||"'"===f||"`"===f||'"'===p||"'"===p||"`"===p)&&f!==p)throw new Tf("property names with quotes must have matching quotes");if("constructor"!==h&&u||(a=!0),Wf(zf,i="%"+(n+="."+h)+"%"))s=zf[i];else if(null!=s){if(!(h in s)){if(!t)throw new vf("base intrinsic for "+e+" exists, but the property is not available.");return}if(Nf&&l+1>=r.length){var d=Nf(s,h);s=(u=!!d)&&"get"in d&&!("originalValue"in d.get)?d.get:s[h]}else u=Wf(s,h),s=s[h];u&&!a&&(zf[i]=s)}}return s},ip=op("%Object.defineProperty%",!0),sp=np()&&!!Symbol.toStringTag,ap=pf,cp=Th,lp=sp?Symbol.toStringTag:null,up=qu,hp=z.default,fp=M.default,pp=$.default,dp=K.default,mp=j.default.parse,gp=V.default,yp=G.default.Stream,Ep=Q.default,Tp=Y.default,vp=fh,bp=function(e,t){var r=arguments.length>2&&!!arguments[2]&&arguments[2].force,n=arguments.length>2&&!!arguments[2]&&arguments[2].nonConfigurable;if(void 0!==r&&"boolean"!=typeof r||void 0!==n&&"boolean"!=typeof n)throw new cp("if provided, the `overrideIfSet` and `nonConfigurable` options must be booleans");!lp||!r&&ap(e,lp)||(ip?ip(e,lp,{configurable:!n,enumerable:!1,value:t,writable:!1}):e[lp]=t)},_p=pf,Ap=function(e,t){return Object.keys(t).forEach(function(r){e[r]=e[r]||t[r]}),e};function Sp(e){return String(e).replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/"/g,"%22")}function kp(e){if(!(this instanceof kp))return new kp(e);for(var t in this._overheadLength=0,this._valueLength=0,this._valuesToMeasure=[],up.call(this),e=e||{})this[t]=e[t]}hp.inherits(kp,up),kp.LINE_BREAK="\r\n",kp.DEFAULT_CONTENT_TYPE="application/octet-stream",kp.prototype.append=function(e,t,r){"string"==typeof(r=r||{})&&(r={filename:r});var n=up.prototype.append.bind(this);if("number"!=typeof t&&null!=t||(t=String(t)),Array.isArray(t))this._error(new Error("Arrays are not supported."));else{var o=this._multiPartHeader(e,t,r),i=this._multiPartFooter();n(o),n(t),n(i),this._trackLength(o,t,r)}},kp.prototype._trackLength=function(e,t,r){var n=0;null!=r.knownLength?n+=Number(r.knownLength):Buffer.isBuffer(t)?n=t.length:"string"==typeof t&&(n=Buffer.byteLength(t)),this._valueLength+=n,this._overheadLength+=Buffer.byteLength(e)+kp.LINE_BREAK.length,t&&(t.path||t.readable&&_p(t,"httpVersion")||t instanceof yp)&&(r.knownLength||this._valuesToMeasure.push(t))},kp.prototype._lengthRetriever=function(e,t){_p(e,"fd")?null!=e.end&&e.end!=1/0&&null!=e.start?t(null,e.end+1-(e.start?e.start:0)):gp.stat(e.path,function(r,n){if(r)t(r);else{var o=n.size-(e.start?e.start:0);t(null,o)}}):_p(e,"httpVersion")?t(null,Number(e.headers["content-length"])):_p(e,"httpModule")?(e.on("response",function(r){e.pause(),t(null,Number(r.headers["content-length"]))}),e.resume()):t("Unknown stream")},kp.prototype._multiPartHeader=function(e,t,r){if("string"==typeof r.header)return r.header;var n,o=this._getContentDisposition(t,r),i=this._getContentType(t,r),s="",a={"Content-Disposition":["form-data",'name="'+Sp(e)+'"'].concat(o||[]),"Content-Type":[].concat(i||[])};for(var c in"object"==typeof r.header&&Ap(a,r.header),a)if(_p(a,c)){if(null==(n=a[c]))continue;Array.isArray(n)||(n=[n]),n.length&&(s+=c+": "+n.join("; ")+kp.LINE_BREAK)}return"--"+this.getBoundary()+kp.LINE_BREAK+s+kp.LINE_BREAK},kp.prototype._getContentDisposition=function(e,t){var r;if("string"==typeof t.filepath?r=fp.normalize(t.filepath).replace(/\\/g,"/"):t.filename||e&&(e.name||e.path)?r=fp.basename(t.filename||e&&(e.name||e.path)):e&&e.readable&&_p(e,"httpVersion")&&(r=fp.basename(e.client._httpMessage.path||"")),r)return'filename="'+Sp(r)+'"'},kp.prototype._getContentType=function(e,t){var r=t.contentType;return!r&&e&&e.name&&(r=Tp.lookup(e.name)),!r&&e&&e.path&&(r=Tp.lookup(e.path)),!r&&e&&e.readable&&_p(e,"httpVersion")&&(r=e.headers["content-type"]),r||!t.filepath&&!t.filename||(r=Tp.lookup(t.filepath||t.filename)),!r&&e&&"object"==typeof e&&(r=kp.DEFAULT_CONTENT_TYPE),r},kp.prototype._multiPartFooter=function(){return function(e){var t=kp.LINE_BREAK;0===this._streams.length&&(t+=this._lastBoundary()),e(t)}.bind(this)},kp.prototype._lastBoundary=function(){return"--"+this.getBoundary()+"--"+kp.LINE_BREAK},kp.prototype.getHeaders=function(e){var t,r={"content-type":"multipart/form-data; boundary="+this.getBoundary()};for(t in e)_p(e,t)&&(r[t.toLowerCase()]=e[t]);return r},kp.prototype.setBoundary=function(e){if("string"!=typeof e)throw new TypeError("FormData boundary must be a string");this._boundary=e},kp.prototype.getBoundary=function(){return this._boundary||this._generateBoundary(),this._boundary},kp.prototype.getBuffer=function(){for(var e=new Buffer.alloc(0),t=this.getBoundary(),r=0,n=this._streams.length;r<n;r++)"function"!=typeof this._streams[r]&&(e=Buffer.isBuffer(this._streams[r])?Buffer.concat([e,this._streams[r]]):Buffer.concat([e,Buffer.from(this._streams[r])]),"string"==typeof this._streams[r]&&this._streams[r].substring(2,t.length+2)===t||(e=Buffer.concat([e,Buffer.from(kp.LINE_BREAK)])));return Buffer.concat([e,Buffer.from(this._lastBoundary())])},kp.prototype._generateBoundary=function(){this._boundary="--------------------------"+Ep.randomBytes(12).toString("hex")},kp.prototype.getLengthSync=function(){var e=this._overheadLength+this._valueLength;return this._streams.length&&(e+=this._lastBoundary().length),this.hasKnownLength()||this._error(new Error("Cannot calculate proper length in synchronous way.")),e},kp.prototype.hasKnownLength=function(){var e=!0;return this._valuesToMeasure.length&&(e=!1),e},kp.prototype.getLength=function(e){var t=this._overheadLength+this._valueLength;this._streams.length&&(t+=this._lastBoundary().length),this._valuesToMeasure.length?vp.parallel(this._valuesToMeasure,this._lengthRetriever,function(r,n){r?e(r):(n.forEach(function(e){t+=e}),e(null,t))}):process.nextTick(e.bind(this,null,t))},kp.prototype.submit=function(e,t){var r,n,o={method:"post"};return"string"==typeof e?(e=mp(e),n=Ap({port:e.port,path:e.pathname,host:e.hostname,protocol:e.protocol},o)):(n=Ap(e,o)).port||(n.port="https:"===n.protocol?443:80),n.headers=this.getHeaders(e.headers),r="https:"===n.protocol?dp.request(n):pp.request(n),this.getLength(function(e,n){if(e&&"Unknown stream"!==e)this._error(e);else if(n&&r.setHeader("Content-Length",n),this.pipe(r),t){var o,i=function(e,n){return r.removeListener("error",i),r.removeListener("response",o),t.call(this,e,n)};o=i.bind(this,null),r.on("error",i),r.on("response",o)}}.bind(this)),r},kp.prototype._error=function(e){this.error||(this.error=e,this.pause(),this.emit("error",e))},kp.prototype.toString=function(){return"[object FormData]"},bp(kp.prototype,"FormData");var wp=kp,Cp={},xp=j.default.parse,Op={ftp:21,gopher:70,http:80,https:443,ws:80,wss:443},Rp=String.prototype.endsWith||function(e){return e.length<=this.length&&-1!==this.indexOf(e,this.length-e.length)};function Np(e){return process.env[e.toLowerCase()]||process.env[e.toUpperCase()]||""}Cp.getProxyForUrl=function(e){var t="string"==typeof e?xp(e):e||{},r=t.protocol,n=t.host,o=t.port;if("string"!=typeof n||!n||"string"!=typeof r)return"";if(r=r.split(":",1)[0],!function(e,t){var r=(Np("npm_config_no_proxy")||Np("no_proxy")).toLowerCase();if(!r)return!0;if("*"===r)return!1;return r.split(/[,\s]/).every(function(r){if(!r)return!0;var n=r.match(/^(.+):(\d+)$/),o=n?n[1]:r,i=n?parseInt(n[2]):0;return!(!i||i===t)||(/^[.*]/.test(o)?("*"===o.charAt(0)&&(o=o.slice(1)),!Rp.call(e,o)):e!==o)})}(n=n.replace(/:\d*$/,""),o=parseInt(o)||Op[r]||0))return"";var i=Np("npm_config_"+r+"_proxy")||Np(r+"_proxy")||Np("npm_config_proxy")||Np("all_proxy");return i&&-1===i.indexOf("://")&&(i=r+"://"+i),i};var Pp,Ip,Lp,Dp,Fp={exports:{}},Mp=j.default,Bp=Mp.URL,Up=$.default,Hp=K.default,jp=G.default.Writable,qp=q.default,zp=function(){if(!Pp){try{Pp=require("debug")("follow-redirects")}catch(e){}"function"!=typeof Pp&&(Pp=function(){})}Pp.apply(null,arguments)};Ip="undefined"!=typeof process,Lp="undefined"!=typeof window&&"undefined"!=typeof document,Dp=hd(Error.captureStackTrace),Ip||!Lp&&Dp||console.warn("The follow-redirects package should be excluded from browser builds.");var Gp=!1;try{qp(new Bp(""))}catch(e){Gp="ERR_INVALID_URL"===e.code}var $p=["Authorization","Proxy-Authorization","Cookie"],Kp=["auth","host","hostname","href","path","pathname","port","protocol","query","search","hash"],Vp=["abort","aborted","connect","error","socket","timeout"],Wp=Object.create(null);Vp.forEach(function(e){Wp[e]=function(t,r,n){this._redirectable.emit(e,t,r,n)}});var Qp=cd("ERR_INVALID_URL","Invalid URL",TypeError),Yp=cd("ERR_FR_REDIRECTION_FAILURE","Redirected request failed"),Xp=cd("ERR_FR_TOO_MANY_REDIRECTS","Maximum number of redirects exceeded",Yp),Jp=cd("ERR_FR_MAX_BODY_LENGTH_EXCEEDED","Request body larger than maxBodyLength limit"),Zp=cd("ERR_STREAM_WRITE_AFTER_END","write after end"),ed=jp.prototype.destroy||nd;function td(e,t){jp.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){try{r._processResponse(e)}catch(e){r.emit("error",e instanceof Yp?e:new Yp({cause:e}))}},this._headerFilter=new RegExp("^(?:"+$p.concat(e.sensitiveHeaders).map(fd).join("|")+")$","i"),this._performRequest()}function rd(e){var t={maxRedirects:21,maxBodyLength:10485760},r={};return Object.keys(e).forEach(function(n){var o=n+":",i=r[o]=e[n],s=t[n]=Object.create(i);Object.defineProperties(s,{request:{value:function(e,n,i){return!function(e){return Bp&&e instanceof Bp}(e)?ud(e)?e=sd(od(e)):(i=n,n=id(e),e={protocol:o}):e=sd(e),hd(n)&&(i=n,n=null),(n=Object.assign({maxRedirects:t.maxRedirects,maxBodyLength:t.maxBodyLength},e,n)).nativeProtocols=r,ud(n.host)||ud(n.hostname)||(n.hostname="::1"),qp.equal(n.protocol,o,"protocol mismatch"),zp("options",n),new td(n,i)},configurable:!0,enumerable:!0,writable:!0},get:{value:function(e,t,r){var n=s.request(e,t,r);return n.end(),n},configurable:!0,enumerable:!0,writable:!0}})}),t}function nd(){}function od(e){var t;if(Gp)t=new Bp(e);else if(!ud((t=id(Mp.parse(e))).protocol))throw new Qp({input:e});return t}function id(e){if(/^\[/.test(e.hostname)&&!/^\[[:0-9a-f]+\]$/i.test(e.hostname))throw new Qp({input:e.href||e});if(/^\[/.test(e.host)&&!/^\[[:0-9a-f]+\](:\d+)?$/i.test(e.host))throw new Qp({input:e.href||e});return e}function sd(e,t){var r=t||{};for(var n of Kp)r[n]=e[n];return r.hostname.startsWith("[")&&(r.hostname=r.hostname.slice(1,-1)),""!==r.port&&(r.port=Number(r.port)),r.path=r.search?r.pathname+r.search:r.pathname,r}function ad(e,t){var r;for(var n in t)e.test(n)&&(r=t[n],delete t[n]);return null==r?void 0:String(r).trim()}function cd(e,t,r){function n(r){hd(Error.captureStackTrace)&&Error.captureStackTrace(this,this.constructor),Object.assign(this,r||{}),this.code=e,this.message=this.cause?t+": "+this.cause.message:t}return n.prototype=new(r||Error),Object.defineProperties(n.prototype,{constructor:{value:n,enumerable:!1},name:{value:"Error ["+e+"]",enumerable:!1}}),n}function ld(e,t){for(var r of Vp)e.removeListener(r,Wp[r]);e.on("error",nd),e.destroy(t)}function ud(e){return"string"==typeof e||e instanceof String}function hd(e){return"function"==typeof e}function fd(e){return e.replace(/[\]\\/()*+?.$]/g,"\\$&")}td.prototype=Object.create(jp.prototype),td.prototype.abort=function(){ld(this._currentRequest),this._currentRequest.abort(),this.emit("abort")},td.prototype.destroy=function(e){return ld(this._currentRequest,e),ed.call(this,e),this},td.prototype.write=function(e,t,r){if(this._ending)throw new Zp;if(!ud(e)&&!function(e){return"object"==typeof e&&"length"in e}(e))throw new TypeError("data should be a string, Buffer or Uint8Array");hd(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 Jp),this.abort()):r&&r()},td.prototype.end=function(e,t,r){if(hd(e)?(r=e,e=t=null):hd(t)&&(r=t,t=null),e){var n=this,o=this._currentRequest;this.write(e,t,function(){n._ended=!0,o.end(null,null,r)}),this._ending=!0}else this._ended=this._ending=!0,this._currentRequest.end(null,null,r)},td.prototype.setHeader=function(e,t){this._options.headers[e]=t,this._currentRequest.setHeader(e,t)},td.prototype.removeHeader=function(e){delete this._options.headers[e],this._currentRequest.removeHeader(e)},td.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 o(t){r._timeout&&clearTimeout(r._timeout),r._timeout=setTimeout(function(){r.emit("timeout"),i()},e),n(t)}function i(){r._timeout&&(clearTimeout(r._timeout),r._timeout=null),r.removeListener("abort",i),r.removeListener("error",i),r.removeListener("response",i),r.removeListener("close",i),t&&r.removeListener("timeout",t),r.socket||r._currentRequest.removeListener("socket",o)}return t&&this.on("timeout",t),this.socket?o(this.socket):this._currentRequest.once("socket",o),this.on("socket",n),this.on("abort",i),this.on("error",i),this.on("response",i),this.on("close",i),this},["flushHeaders","getHeader","setNoDelay","setSocketKeepAlive"].forEach(function(e){td.prototype[e]=function(t,r){return this._currentRequest[e](t,r)}}),["aborted","connection","socket"].forEach(function(e){Object.defineProperty(td.prototype,e,{get:function(){return this._currentRequest[e]}})}),td.prototype._sanitizeOptions=function(e){if(e.headers||(e.headers={}),function(e){return e instanceof Array}(e.sensitiveHeaders)||(e.sensitiveHeaders=[]),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))}},td.prototype._performRequest=function(){var e=this._options.protocol,t=this._options.nativeProtocols[e];if(!t)throw new TypeError("Unsupported protocol "+e);if(this._options.agents){var r=e.slice(0,-1);this._options.agent=this._options.agents[r]}var n=this._currentRequest=t.request(this._options,this._onNativeResponse);for(var o of(n._redirectable=this,Vp))n.on(o,Wp[o]);if(this._currentUrl=/^\//.test(this._options.path)?Mp.format(this._options):this._options.path,this._isRedirect){var i=0,s=this,a=this._requestBodyBuffers;!function e(t){if(n===s._currentRequest)if(t)s.emit("error",t);else if(i<a.length){var r=a[i++];n.finished||n.write(r.data,r.encoding,e)}else s._ended&&n.end()}()}},td.prototype._processResponse=function(e){var t=e.statusCode;this._options.trackRedirects&&this._redirects.push({url:this._currentUrl,headers:e.headers,statusCode:t});var r,n=e.headers.location;if(!n||!1===this._options.followRedirects||t<300||t>=400)return e.responseUrl=this._currentUrl,e.redirects=this._redirects,this.emit("response",e),void(this._requestBodyBuffers=[]);if(ld(this._currentRequest),e.destroy(),++this._redirectCount>this._options.maxRedirects)throw new Xp;var o=this._options.beforeRedirect;o&&(r=Object.assign({Host:e.req.getHeader("host")},this._options.headers));var i=this._options.method;((301===t||302===t)&&"POST"===this._options.method||303===t&&!/^(?:GET|HEAD)$/.test(this._options.method))&&(this._options.method="GET",this._requestBodyBuffers=[],ad(/^content-/i,this._options.headers));var s=ad(/^host$/i,this._options.headers),a=od(this._currentUrl),c=s||a.host,l=/^\w+:/.test(n)?this._currentUrl:Mp.format(Object.assign(a,{host:c})),u=function(e,t){return Gp?new Bp(e,t):od(Mp.resolve(t,e))}(n,l);if(zp("redirecting to",u.href),this._isRedirect=!0,sd(u,this._options),(u.protocol!==a.protocol&&"https:"!==u.protocol||u.host!==c&&!function(e,t){qp(ud(e)&&ud(t));var r=e.length-t.length-1;return r>0&&"."===e[r]&&e.endsWith(t)}(u.host,c))&&ad(this._headerFilter,this._options.headers),hd(o)){var h={headers:e.headers,statusCode:t},f={url:l,method:i,headers:r};o(this._options,h,f),this._sanitizeOptions(this._options)}this._performRequest()},Fp.exports=rd({http:Up,https:Hp}),Fp.exports.wrap=rd;var pd=Fp.exports;
|
|
9
|
+
/*! Axios v1.13.6 Copyright (c) 2026 Matt Zabriskie and contributors */const dd=wp,md=Q.default,gd=j.default,yd=Cp,Ed=$.default,Td=K.default,vd=X.default,bd=z.default,_d=Fp.exports,Ad=J.default,Sd=G.default,kd=Z.default;function wd(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}const Cd=wd(dd),xd=wd(md),Od=wd(gd),Rd=wd(yd),Nd=wd(Ed),Pd=wd(Td),Id=wd(vd),Ld=wd(bd),Dd=wd(_d),Fd=wd(Ad),Md=wd(Sd);function Bd(e,t){return function(){return e.apply(t,arguments)}}const{toString:Ud}=Object.prototype,{getPrototypeOf:Hd}=Object,{iterator:jd,toStringTag:qd}=Symbol,zd=(e=>t=>{const r=Ud.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),Gd=e=>(e=e.toLowerCase(),t=>zd(t)===e),$d=e=>t=>typeof t===e,{isArray:Kd}=Array,Vd=$d("undefined");function Wd(e){return null!==e&&!Vd(e)&&null!==e.constructor&&!Vd(e.constructor)&&Xd(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Qd=Gd("ArrayBuffer");const Yd=$d("string"),Xd=$d("function"),Jd=$d("number"),Zd=e=>null!==e&&"object"==typeof e,em=e=>{if("object"!==zd(e))return!1;const t=Hd(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||qd in e||jd in e)},tm=Gd("Date"),rm=Gd("File"),nm=Gd("Blob"),om=Gd("FileList");const im="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==fe?fe:{},sm=void 0!==im.FormData?im.FormData:void 0,am=Gd("URLSearchParams"),[cm,lm,um,hm]=["ReadableStream","Request","Response","Headers"].map(Gd);function fm(e,t,{allOwnKeys:r=!1}={}){if(null==e)return;let n,o;if("object"!=typeof e&&(e=[e]),Kd(e))for(n=0,o=e.length;n<o;n++)t.call(null,e[n],n,e);else{if(Wd(e))return;const o=r?Object.getOwnPropertyNames(e):Object.keys(e),i=o.length;let s;for(n=0;n<i;n++)s=o[n],t.call(null,e[s],s,e)}}function pm(e,t){if(Wd(e))return null;t=t.toLowerCase();const r=Object.keys(e);let n,o=r.length;for(;o-- >0;)if(n=r[o],t===n.toLowerCase())return n;return null}const dm="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:fe,mm=e=>!Vd(e)&&e!==dm;const gm=(e=>t=>e&&t instanceof e)("undefined"!=typeof Uint8Array&&Hd(Uint8Array)),ym=Gd("HTMLFormElement"),Em=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),Tm=Gd("RegExp"),vm=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};fm(r,(r,o)=>{let i;!1!==(i=t(r,o,e))&&(n[o]=i||r)}),Object.defineProperties(e,n)};const bm=Gd("AsyncFunction"),_m=(Am="function"==typeof setImmediate,Sm=Xd(dm.postMessage),Am?setImmediate:Sm?(km=`axios@${Math.random()}`,wm=[],dm.addEventListener("message",({source:e,data:t})=>{e===dm&&t===km&&wm.length&&wm.shift()()},!1),e=>{wm.push(e),dm.postMessage(km,"*")}):e=>setTimeout(e));var Am,Sm,km,wm;const Cm="undefined"!=typeof queueMicrotask?queueMicrotask.bind(dm):"undefined"!=typeof process&&process.nextTick||_m,xm={isArray:Kd,isArrayBuffer:Qd,isBuffer:Wd,isFormData:e=>{let t;return e&&(sm&&e instanceof sm||Xd(e.append)&&("formdata"===(t=zd(e))||"object"===t&&Xd(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&Qd(e.buffer),t},isString:Yd,isNumber:Jd,isBoolean:e=>!0===e||!1===e,isObject:Zd,isPlainObject:em,isEmptyObject:e=>{if(!Zd(e)||Wd(e))return!1;try{return 0===Object.keys(e).length&&Object.getPrototypeOf(e)===Object.prototype}catch(e){return!1}},isReadableStream:cm,isRequest:lm,isResponse:um,isHeaders:hm,isUndefined:Vd,isDate:tm,isFile:rm,isReactNativeBlob:e=>!(!e||void 0===e.uri),isReactNative:e=>e&&void 0!==e.getParts,isBlob:nm,isRegExp:Tm,isFunction:Xd,isStream:e=>Zd(e)&&Xd(e.pipe),isURLSearchParams:am,isTypedArray:gm,isFileList:om,forEach:fm,merge:function e(){const{caseless:t,skipUndefined:r}=mm(this)&&this||{},n={},o=(o,i)=>{if("__proto__"===i||"constructor"===i||"prototype"===i)return;const s=t&&pm(n,i)||i;em(n[s])&&em(o)?n[s]=e(n[s],o):em(o)?n[s]=e({},o):Kd(o)?n[s]=o.slice():r&&Vd(o)||(n[s]=o)};for(let e=0,t=arguments.length;e<t;e++)arguments[e]&&fm(arguments[e],o);return n},extend:(e,t,r,{allOwnKeys:n}={})=>(fm(t,(t,n)=>{r&&Xd(t)?Object.defineProperty(e,n,{value:Bd(t,r),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,n,{value:t,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:n}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),Object.defineProperty(e.prototype,"constructor",{value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},toFlatObject:(e,t,r,n)=>{let o,i,s;const a={};if(t=t||{},null==e)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)s=o[i],n&&!n(s,e,t)||a[s]||(t[s]=e[s],a[s]=!0);e=!1!==r&&Hd(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},kindOf:zd,kindOfTest:Gd,endsWith:(e,t,r)=>{e=String(e),(void 0===r||r>e.length)&&(r=e.length),r-=t.length;const n=e.indexOf(t,r);return-1!==n&&n===r},toArray:e=>{if(!e)return null;if(Kd(e))return e;let t=e.length;if(!Jd(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},forEachEntry:(e,t)=>{const r=(e&&e[jd]).call(e);let n;for(;(n=r.next())&&!n.done;){const r=n.value;t.call(e,r[0],r[1])}},matchAll:(e,t)=>{let r;const n=[];for(;null!==(r=e.exec(t));)n.push(r);return n},isHTMLForm:ym,hasOwnProperty:Em,hasOwnProp:Em,reduceDescriptors:vm,freezeMethods:e=>{vm(e,(t,r)=>{if(Xd(e)&&-1!==["arguments","caller","callee"].indexOf(r))return!1;const n=e[r];Xd(n)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")}))})},toObjectSet:(e,t)=>{const r={},n=e=>{e.forEach(e=>{r[e]=!0})};return Kd(e)?n(e):n(String(e).split(t)),r},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,r){return t.toUpperCase()+r}),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:pm,global:dm,isContextDefined:mm,isSpecCompliantForm:function(e){return!!(e&&Xd(e.append)&&"FormData"===e[qd]&&e[jd])},toJSONObject:e=>{const t=new Array(10),r=(e,n)=>{if(Zd(e)){if(t.indexOf(e)>=0)return;if(Wd(e))return e;if(!("toJSON"in e)){t[n]=e;const o=Kd(e)?[]:{};return fm(e,(e,t)=>{const i=r(e,n+1);!Vd(i)&&(o[t]=i)}),t[n]=void 0,o}}return e};return r(e,0)},isAsyncFn:bm,isThenable:e=>e&&(Zd(e)||Xd(e))&&Xd(e.then)&&Xd(e.catch),setImmediate:_m,asap:Cm,isIterable:e=>null!=e&&Xd(e[jd])};class Om extends Error{static from(e,t,r,n,o,i){const s=new Om(e.message,t||e.code,r,n,o);return s.cause=e,s.name=e.name,null!=e.status&&null==s.status&&(s.status=e.status),i&&Object.assign(s,i),s}constructor(e,t,r,n,o){super(e),Object.defineProperty(this,"message",{value:e,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),o&&(this.response=o,this.status=o.status)}toJSON(){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:xm.toJSONObject(this.config),code:this.code,status:this.status}}}Om.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE",Om.ERR_BAD_OPTION="ERR_BAD_OPTION",Om.ECONNABORTED="ECONNABORTED",Om.ETIMEDOUT="ETIMEDOUT",Om.ERR_NETWORK="ERR_NETWORK",Om.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS",Om.ERR_DEPRECATED="ERR_DEPRECATED",Om.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE",Om.ERR_BAD_REQUEST="ERR_BAD_REQUEST",Om.ERR_CANCELED="ERR_CANCELED",Om.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT",Om.ERR_INVALID_URL="ERR_INVALID_URL";const Rm=Om;function Nm(e){return xm.isPlainObject(e)||xm.isArray(e)}function Pm(e){return xm.endsWith(e,"[]")?e.slice(0,-2):e}function Im(e,t,r){return e?e.concat(t).map(function(e,t){return e=Pm(e),!r&&t?"["+e+"]":e}).join(r?".":""):t}const Lm=xm.toFlatObject(xm,{},null,function(e){return/^is[A-Z]/.test(e)});function Dm(e,t,r){if(!xm.isObject(e))throw new TypeError("target must be an object");t=t||new(Cd.default||FormData),r=xm.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,t){return!xm.isUndefined(t[e])});const n=r.metaTokens,o=r.visitor||l,i=r.dots,s=r.indexes,a=(r.Blob||"undefined"!=typeof Blob&&Blob)&&xm.isSpecCompliantForm(t);if(!xm.isFunction(o))throw new TypeError("visitor must be a function");function c(e){if(null===e)return"";if(xm.isDate(e))return e.toISOString();if(xm.isBoolean(e))return e.toString();if(!a&&xm.isBlob(e))throw new Rm("Blob is not supported. Use a Buffer instead.");return xm.isArrayBuffer(e)||xm.isTypedArray(e)?a&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function l(e,r,o){let a=e;if(xm.isReactNative(t)&&xm.isReactNativeBlob(e))return t.append(Im(o,r,i),c(e)),!1;if(e&&!o&&"object"==typeof e)if(xm.endsWith(r,"{}"))r=n?r:r.slice(0,-2),e=JSON.stringify(e);else if(xm.isArray(e)&&function(e){return xm.isArray(e)&&!e.some(Nm)}(e)||(xm.isFileList(e)||xm.endsWith(r,"[]"))&&(a=xm.toArray(e)))return r=Pm(r),a.forEach(function(e,n){!xm.isUndefined(e)&&null!==e&&t.append(!0===s?Im([r],n,i):null===s?r:r+"[]",c(e))}),!1;return!!Nm(e)||(t.append(Im(o,r,i),c(e)),!1)}const u=[],h=Object.assign(Lm,{defaultVisitor:l,convertValue:c,isVisitable:Nm});if(!xm.isObject(e))throw new TypeError("data must be an object");return function e(r,n){if(!xm.isUndefined(r)){if(-1!==u.indexOf(r))throw Error("Circular reference detected in "+n.join("."));u.push(r),xm.forEach(r,function(r,i){!0===(!(xm.isUndefined(r)||null===r)&&o.call(t,r,xm.isString(i)?i.trim():i,n,h))&&e(r,n?n.concat(i):[i])}),u.pop()}}(e),t}function Fm(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(e){return t[e]})}function Mm(e,t){this._pairs=[],e&&Dm(e,this,t)}const Bm=Mm.prototype;function Um(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function Hm(e,t,r){if(!t)return e;const n=r&&r.encode||Um,o=xm.isFunction(r)?{serialize:r}:r,i=o&&o.serialize;let s;if(s=i?i(t,o):xm.isURLSearchParams(t)?t.toString():new Mm(t,o).toString(n),s){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+s}return e}Bm.append=function(e,t){this._pairs.push([e,t])},Bm.toString=function(e){const t=e?function(t){return e.call(this,t,Fm)}:Fm;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")};const jm=class{constructor(){this.handlers=[]}use(e,t,r){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!r&&r.synchronous,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){xm.forEach(this.handlers,function(t){null!==t&&e(t)})}},qm={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0},zm=Od.default.URLSearchParams,Gm="abcdefghijklmnopqrstuvwxyz",$m="0123456789",Km={DIGIT:$m,ALPHA:Gm,ALPHA_DIGIT:Gm+Gm.toUpperCase()+$m},Vm={isNode:!0,classes:{URLSearchParams:zm,FormData:Cd.default,Blob:"undefined"!=typeof Blob&&Blob||null},ALPHABET:Km,generateString:(e=16,t=Km.ALPHA_DIGIT)=>{let r="";const{length:n}=t,o=new Uint32Array(e);xd.default.randomFillSync(o);for(let i=0;i<e;i++)r+=t[o[i]%n];return r},protocols:["http","https","file","data"]},Wm="undefined"!=typeof window&&"undefined"!=typeof document,Qm="object"==typeof navigator&&navigator||void 0,Ym=Wm&&(!Qm||["ReactNative","NativeScript","NS"].indexOf(Qm.product)<0),Xm="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,Jm=Wm&&window.location.href||"http://localhost",Zm={...Object.freeze({__proto__:null,hasBrowserEnv:Wm,hasStandardBrowserWebWorkerEnv:Xm,hasStandardBrowserEnv:Ym,navigator:Qm,origin:Jm}),...Vm};function eg(e){function t(e,r,n,o){let i=e[o++];if("__proto__"===i)return!0;const s=Number.isFinite(+i),a=o>=e.length;if(i=!i&&xm.isArray(n)?n.length:i,a)return xm.hasOwnProp(n,i)?n[i]=[n[i],r]:n[i]=r,!s;n[i]&&xm.isObject(n[i])||(n[i]=[]);return t(e,r,n[i],o)&&xm.isArray(n[i])&&(n[i]=function(e){const t={},r=Object.keys(e);let n;const o=r.length;let i;for(n=0;n<o;n++)i=r[n],t[i]=e[i];return t}(n[i])),!s}if(xm.isFormData(e)&&xm.isFunction(e.entries)){const r={};return xm.forEachEntry(e,(e,n)=>{t(function(e){return xm.matchAll(/\w+|\[(\w*)]/g,e).map(e=>"[]"===e[0]?"":e[1]||e[0])}(e),n,r,0)}),r}return null}const tg={transitional:qm,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const r=t.getContentType()||"",n=r.indexOf("application/json")>-1,o=xm.isObject(e);o&&xm.isHTMLForm(e)&&(e=new FormData(e));if(xm.isFormData(e))return n?JSON.stringify(eg(e)):e;if(xm.isArrayBuffer(e)||xm.isBuffer(e)||xm.isStream(e)||xm.isFile(e)||xm.isBlob(e)||xm.isReadableStream(e))return e;if(xm.isArrayBufferView(e))return e.buffer;if(xm.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let i;if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return Dm(e,new Zm.classes.URLSearchParams,{visitor:function(e,t,r,n){return Zm.isNode&&xm.isBuffer(e)?(this.append(t,e.toString("base64")),!1):n.defaultVisitor.apply(this,arguments)},...t})}(e,this.formSerializer).toString();if((i=xm.isFileList(e))||r.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return Dm(i?{"files[]":e}:e,t&&new t,this.formSerializer)}}return o||n?(t.setContentType("application/json",!1),function(e,t,r){if(xm.isString(e))try{return(t||JSON.parse)(e),xm.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(r||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||tg.transitional,r=t&&t.forcedJSONParsing,n="json"===this.responseType;if(xm.isResponse(e)||xm.isReadableStream(e))return e;if(e&&xm.isString(e)&&(r&&!this.responseType||n)){const r=!(t&&t.silentJSONParsing)&&n;try{return JSON.parse(e,this.parseReviver)}catch(e){if(r){if("SyntaxError"===e.name)throw Rm.from(e,Rm.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Zm.classes.FormData,Blob:Zm.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};xm.forEach(["delete","get","head","post","put","patch"],e=>{tg.headers[e]={}});const rg=tg,ng=xm.toObjectSet(["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"]),og=Symbol("internals");function ig(e){return e&&String(e).trim().toLowerCase()}function sg(e){return!1===e||null==e?e:xm.isArray(e)?e.map(sg):String(e)}function ag(e,t,r,n,o){return xm.isFunction(n)?n.call(this,t,r):(o&&(t=r),xm.isString(t)?xm.isString(n)?-1!==t.indexOf(n):xm.isRegExp(n)?n.test(t):void 0:void 0)}class cg{constructor(e){e&&this.set(e)}set(e,t,r){const n=this;function o(e,t,r){const o=ig(t);if(!o)throw new Error("header name must be a non-empty string");const i=xm.findKey(n,o);(!i||void 0===n[i]||!0===r||void 0===r&&!1!==n[i])&&(n[i||t]=sg(e))}const i=(e,t)=>xm.forEach(e,(e,r)=>o(e,r,t));if(xm.isPlainObject(e)||e instanceof this.constructor)i(e,t);else if(xm.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))i((e=>{const t={};let r,n,o;return e&&e.split("\n").forEach(function(e){o=e.indexOf(":"),r=e.substring(0,o).trim().toLowerCase(),n=e.substring(o+1).trim(),!r||t[r]&&ng[r]||("set-cookie"===r?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)}),t})(e),t);else if(xm.isObject(e)&&xm.isIterable(e)){let r,n,o={};for(const t of e){if(!xm.isArray(t))throw TypeError("Object iterator must return a key-value pair");o[n=t[0]]=(r=o[n])?xm.isArray(r)?[...r,t[1]]:[r,t[1]]:t[1]}i(o,t)}else null!=e&&o(t,e,r);return this}get(e,t){if(e=ig(e)){const r=xm.findKey(this,e);if(r){const e=this[r];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=r.exec(e);)t[n[1]]=n[2];return t}(e);if(xm.isFunction(t))return t.call(this,e,r);if(xm.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=ig(e)){const r=xm.findKey(this,e);return!(!r||void 0===this[r]||t&&!ag(0,this[r],r,t))}return!1}delete(e,t){const r=this;let n=!1;function o(e){if(e=ig(e)){const o=xm.findKey(r,e);!o||t&&!ag(0,r[o],o,t)||(delete r[o],n=!0)}}return xm.isArray(e)?e.forEach(o):o(e),n}clear(e){const t=Object.keys(this);let r=t.length,n=!1;for(;r--;){const o=t[r];e&&!ag(0,this[o],o,e,!0)||(delete this[o],n=!0)}return n}normalize(e){const t=this,r={};return xm.forEach(this,(n,o)=>{const i=xm.findKey(r,o);if(i)return t[i]=sg(n),void delete t[o];const s=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,r)=>t.toUpperCase()+r)}(o):String(o).trim();s!==o&&delete t[o],t[s]=sg(n),r[s]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return xm.forEach(this,(r,n)=>{null!=r&&!1!==r&&(t[n]=e&&xm.isArray(r)?r.join(", "):r)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join("\n")}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const r=new this(e);return t.forEach(e=>r.set(e)),r}static accessor(e){const t=(this[og]=this[og]={accessors:{}}).accessors,r=this.prototype;function n(e){const n=ig(e);t[n]||(!function(e,t){const r=xm.toCamelCase(" "+t);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+r,{value:function(e,r,o){return this[n].call(this,t,e,r,o)},configurable:!0})})}(r,e),t[n]=!0)}return xm.isArray(e)?e.forEach(n):n(e),this}}cg.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),xm.reduceDescriptors(cg.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[r]=e}}}),xm.freezeMethods(cg);const lg=cg;function ug(e,t){const r=this||rg,n=t||r,o=lg.from(n.headers);let i=n.data;return xm.forEach(e,function(e){i=e.call(r,i,o.normalize(),t?t.status:void 0)}),o.normalize(),i}function hg(e){return!(!e||!e.__CANCEL__)}const fg=class extends Rm{constructor(e,t,r){super(null==e?"canceled":e,Rm.ERR_CANCELED,t,r),this.name="CanceledError",this.__CANCEL__=!0}};function pg(e,t,r){const n=r.config.validateStatus;r.status&&n&&!n(r.status)?t(new Rm("Request failed with status code "+r.status,[Rm.ERR_BAD_REQUEST,Rm.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r)):e(r)}function dg(e,t,r){let n=!function(e){return"string"==typeof e&&/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}(t);return e&&(n||0==r)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const mg="1.13.6";function gg(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}const yg=/^(?:([^;]+);)?(?:[^;]+;)?(base64|),([\s\S]*)$/;const Eg=Symbol("internals");class Tg extends Md.default.Transform{constructor(e){e=xm.toFlatObject(e,{maxRate:0,chunkSize:65536,minChunkSize:100,timeWindow:500,ticksRate:2,samplesCount:15},null,(e,t)=>!xm.isUndefined(t[e])),super({readableHighWaterMark:e.chunkSize});const t=this[Eg]={timeWindow:e.timeWindow,chunkSize:e.chunkSize,maxRate:e.maxRate,minChunkSize:e.minChunkSize,bytesSeen:0,isCaptured:!1,notifiedBytesLoaded:0,ts:Date.now(),bytes:0,onReadCallback:null};this.on("newListener",e=>{"progress"===e&&(t.isCaptured||(t.isCaptured=!0))})}_read(e){const t=this[Eg];return t.onReadCallback&&t.onReadCallback(),super._read(e)}_transform(e,t,r){const n=this[Eg],o=n.maxRate,i=this.readableHighWaterMark,s=n.timeWindow,a=o/(1e3/s),c=!1!==n.minChunkSize?Math.max(n.minChunkSize,.01*a):0,l=(e,t)=>{const r=Buffer.byteLength(e);n.bytesSeen+=r,n.bytes+=r,n.isCaptured&&this.emit("progress",n.bytesSeen),this.push(e)?process.nextTick(t):n.onReadCallback=()=>{n.onReadCallback=null,process.nextTick(t)}},u=(e,t)=>{const r=Buffer.byteLength(e);let u,h=null,f=i,p=0;if(o){const e=Date.now();(!n.ts||(p=e-n.ts)>=s)&&(n.ts=e,u=a-n.bytes,n.bytes=u<0?-u:0,p=0),u=a-n.bytes}if(o){if(u<=0)return setTimeout(()=>{t(null,e)},s-p);u<f&&(f=u)}f&&r>f&&r-f>c&&(h=e.subarray(f),e=e.subarray(0,f)),l(e,h?()=>{process.nextTick(t,null,h)}:t)};u(e,function e(t,n){if(t)return r(t);n?u(n,e):r(null)})}}const vg=Tg,{asyncIterator:bg}=Symbol,_g=async function*(e){e.stream?yield*e.stream():e.arrayBuffer?yield await e.arrayBuffer():e[bg]?yield*e[bg]():yield e},Ag=Zm.ALPHABET.ALPHA_DIGIT+"-_",Sg="function"==typeof TextEncoder?new TextEncoder:new Ld.default.TextEncoder,kg="\r\n",wg=Sg.encode(kg);class Cg{constructor(e,t){const{escapeName:r}=this.constructor,n=xm.isString(t);let o=`Content-Disposition: form-data; name="${r(e)}"${!n&&t.name?`; filename="${r(t.name)}"`:""}${kg}`;n?t=Sg.encode(String(t).replace(/\r?\n|\r\n?/g,kg)):o+=`Content-Type: ${t.type||"application/octet-stream"}${kg}`,this.headers=Sg.encode(o+kg),this.contentLength=n?t.byteLength:t.size,this.size=this.headers.byteLength+this.contentLength+2,this.name=e,this.value=t}async*encode(){yield this.headers;const{value:e}=this;xm.isTypedArray(e)?yield e:yield*_g(e),yield wg}static escapeName(e){return String(e).replace(/[\r\n"]/g,e=>({"\r":"%0D","\n":"%0A",'"':"%22"}[e]))}}const xg=(e,t,r)=>{const{tag:n="form-data-boundary",size:o=25,boundary:i=n+"-"+Zm.generateString(o,Ag)}=r||{};if(!xm.isFormData(e))throw TypeError("FormData instance required");if(i.length<1||i.length>70)throw Error("boundary must be 10-70 characters long");const s=Sg.encode("--"+i+kg),a=Sg.encode("--"+i+"--"+kg);let c=a.byteLength;const l=Array.from(e.entries()).map(([e,t])=>{const r=new Cg(e,t);return c+=r.size,r});c+=s.byteLength*l.length,c=xm.toFiniteNumber(c);const u={"Content-Type":`multipart/form-data; boundary=${i}`};return Number.isFinite(c)&&(u["Content-Length"]=c),t&&t(u),Sd.Readable.from(async function*(){for(const e of l)yield s,yield*e.encode();yield a}())};class Og extends Md.default.Transform{__transform(e,t,r){this.push(e),r()}_transform(e,t,r){if(0!==e.length&&(this._transform=this.__transform,120!==e[0])){const e=Buffer.alloc(2);e[0]=120,e[1]=156,this.push(e,t)}this.__transform(e,t,r)}}const Rg=Og,Ng=(e,t)=>xm.isAsyncFn(e)?function(...r){const n=r.pop();e.apply(this,r).then(e=>{try{t?n(null,...t(e)):n(null,e)}catch(e){n(e)}},n)}:e;const Pg=(e,t,r=3)=>{let n=0;const o=function(e,t){e=e||10;const r=new Array(e),n=new Array(e);let o,i=0,s=0;return t=void 0!==t?t:1e3,function(a){const c=Date.now(),l=n[s];o||(o=c),r[i]=a,n[i]=c;let u=s,h=0;for(;u!==i;)h+=r[u++],u%=e;if(i=(i+1)%e,i===s&&(s=(s+1)%e),c-o<t)return;const f=l&&c-l;return f?Math.round(1e3*h/f):void 0}}(50,250);return function(e,t){let r,n,o=0,i=1e3/t;const s=(t,i=Date.now())=>{o=i,r=null,n&&(clearTimeout(n),n=null),e(...t)};return[(...e)=>{const t=Date.now(),a=t-o;a>=i?s(e,t):(r=e,n||(n=setTimeout(()=>{n=null,s(r)},i-a)))},()=>r&&s(r)]}(r=>{const i=r.loaded,s=r.lengthComputable?r.total:void 0,a=i-n,c=o(a);n=i;e({loaded:i,total:s,progress:s?i/s:void 0,bytes:a,rate:c||void 0,estimated:c&&s&&i<=s?(s-i)/c:void 0,event:r,lengthComputable:null!=s,[t?"download":"upload"]:!0})},r)},Ig=(e,t)=>{const r=null!=e;return[n=>t[0]({lengthComputable:r,total:e,loaded:n}),t[1]]},Lg=e=>(...t)=>xm.asap(()=>e(...t));const Dg={flush:Fd.default.constants.Z_SYNC_FLUSH,finishFlush:Fd.default.constants.Z_SYNC_FLUSH},Fg={flush:Fd.default.constants.BROTLI_OPERATION_FLUSH,finishFlush:Fd.default.constants.BROTLI_OPERATION_FLUSH},Mg=xm.isFunction(Fd.default.createBrotliDecompress),{http:Bg,https:Ug}=Dd.default,Hg=/https:?/,jg=Zm.protocols.map(e=>e+":"),qg=(e,[t,r])=>(e.on("end",r).on("error",r),t);const zg=new class{constructor(){this.sessions=Object.create(null)}getSession(e,t){t=Object.assign({sessionTimeout:1e3},t);let r=this.sessions[e];if(r){let e=r.length;for(let n=0;n<e;n++){const[e,o]=r[n];if(!e.destroyed&&!e.closed&&Ld.default.isDeepStrictEqual(o,t))return e}}const n=Id.default.connect(e,t);let o;const i=()=>{if(o)return;o=!0;let t=r,i=t.length,s=i;for(;s--;)if(t[s][0]===n)return void(1===i?delete this.sessions[e]:t.splice(s,1))},s=n.request,{sessionTimeout:a}=t;if(null!=a){let e,t=0;n.request=function(){const r=s.apply(this,arguments);return t++,e&&(clearTimeout(e),e=null),r.once("close",()=>{--t||(e=setTimeout(()=>{e=null,i()},a))}),r}}n.once("close",i);let c=[n,t];return r?r.push(c):r=this.sessions[e]=[c],n}};function Gg(e,t){e.beforeRedirects.proxy&&e.beforeRedirects.proxy(e),e.beforeRedirects.config&&e.beforeRedirects.config(e,t)}function $g(e,t,r){let n=t;if(!n&&!1!==n){const e=Rd.default.getProxyForUrl(r);e&&(n=new URL(e))}if(n){if(n.username&&(n.auth=(n.username||"")+":"+(n.password||"")),n.auth){if(Boolean(n.auth.username||n.auth.password))n.auth=(n.auth.username||"")+":"+(n.auth.password||"");else if("object"==typeof n.auth)throw new Rm("Invalid proxy authorization",Rm.ERR_BAD_OPTION,{proxy:n});const t=Buffer.from(n.auth,"utf8").toString("base64");e.headers["Proxy-Authorization"]="Basic "+t}e.headers.host=e.hostname+(e.port?":"+e.port:"");const t=n.hostname||n.host;e.hostname=t,e.host=t,e.port=n.port,e.path=r,n.protocol&&(e.protocol=n.protocol.includes(":")?n.protocol:`${n.protocol}:`)}e.beforeRedirects.proxy=function(e){$g(e,t,e.href)}}const Kg="undefined"!=typeof process&&"process"===xm.kindOf(process),Vg=(e,t)=>(({address:e,family:t})=>{if(!xm.isString(e))throw TypeError("address must be a string");return{address:e,family:t||(e.indexOf(".")<0?6:4)}})(xm.isObject(e)?e:{address:e,family:t}),Wg={request(e,t){const r=e.protocol+"//"+e.hostname+":"+(e.port||("https:"===e.protocol?443:80)),{http2Options:n,headers:o}=e,i=zg.getSession(r,n),{HTTP2_HEADER_SCHEME:s,HTTP2_HEADER_METHOD:a,HTTP2_HEADER_PATH:c,HTTP2_HEADER_STATUS:l}=Id.default.constants,u={[s]:e.protocol.replace(":",""),[a]:e.method,[c]:e.path};xm.forEach(o,(e,t)=>{":"!==t.charAt(0)&&(u[t]=e)});const h=i.request(u);return h.once("response",e=>{const r=h,n=(e=Object.assign({},e))[l];delete e[l],r.headers=e,r.statusCode=+n,t(r)}),h}},Qg=Kg&&function(e){return t=async function(t,r,n){let{data:o,lookup:i,family:s,httpVersion:a=1,http2Options:c}=e;const{responseType:l,responseEncoding:u}=e,h=e.method.toUpperCase();let f,p,d=!1;if(a=+a,Number.isNaN(a))throw TypeError(`Invalid protocol version: '${e.httpVersion}' is not a number`);if(1!==a&&2!==a)throw TypeError(`Unsupported protocol version '${a}'`);const m=2===a;if(i){const e=Ng(i,e=>xm.isArray(e)?e:[e]);i=(t,r,n)=>{e(t,r,(e,t,o)=>{if(e)return n(e);const i=xm.isArray(t)?t.map(e=>Vg(e)):[Vg(t,o)];r.all?n(e,i):n(e,i[0].address,i[0].family)})}}const g=new kd.EventEmitter;function y(t){try{g.emit("abort",!t||t.type?new fg(null,e,p):t)}catch(e){console.warn("emit error",e)}}g.once("abort",r);const E=()=>{e.cancelToken&&e.cancelToken.unsubscribe(y),e.signal&&e.signal.removeEventListener("abort",y),g.removeAllListeners()};(e.cancelToken||e.signal)&&(e.cancelToken&&e.cancelToken.subscribe(y),e.signal&&(e.signal.aborted?y():e.signal.addEventListener("abort",y))),n((e,t)=>{if(f=!0,t)return d=!0,void E();const{data:r}=e;if(r instanceof Md.default.Readable||r instanceof Md.default.Duplex){const e=Md.default.finished(r,()=>{e(),E()})}else E()});const T=dg(e.baseURL,e.url,e.allowAbsoluteUrls),v=new URL(T,Zm.hasBrowserEnv?Zm.origin:void 0),b=v.protocol||jg[0];if("data:"===b){if(e.maxContentLength>-1){const t=function(e){if(!e||"string"!=typeof e)return 0;if(!e.startsWith("data:"))return 0;const t=e.indexOf(",");if(t<0)return 0;const r=e.slice(5,t),n=e.slice(t+1);if(/;base64/i.test(r)){let e=n.length;const t=n.length;for(let r=0;r<t;r++)if(37===n.charCodeAt(r)&&r+2<t){const t=n.charCodeAt(r+1),o=n.charCodeAt(r+2);(t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102)&&(o>=48&&o<=57||o>=65&&o<=70||o>=97&&o<=102)&&(e-=2,r+=2)}let r=0,o=t-1;const i=e=>e>=2&&37===n.charCodeAt(e-2)&&51===n.charCodeAt(e-1)&&(68===n.charCodeAt(e)||100===n.charCodeAt(e));o>=0&&(61===n.charCodeAt(o)?(r++,o--):i(o)&&(r++,o-=3)),1===r&&o>=0&&(61===n.charCodeAt(o)||i(o))&&r++;const s=3*Math.floor(e/4)-(r||0);return s>0?s:0}return Buffer.byteLength(n,"utf8")}(String(e.url||T||""));if(t>e.maxContentLength)return r(new Rm("maxContentLength size of "+e.maxContentLength+" exceeded",Rm.ERR_BAD_RESPONSE,e))}let n;if("GET"!==h)return pg(t,r,{status:405,statusText:"method not allowed",headers:{},config:e});try{n=function(e,t,r){const n=r&&r.Blob||Zm.classes.Blob,o=gg(e);if(void 0===t&&n&&(t=!0),"data"===o){e=o.length?e.slice(o.length+1):e;const r=yg.exec(e);if(!r)throw new Rm("Invalid URL",Rm.ERR_INVALID_URL);const i=r[1],s=r[2],a=r[3],c=Buffer.from(decodeURIComponent(a),s?"base64":"utf8");if(t){if(!n)throw new Rm("Blob is not supported",Rm.ERR_NOT_SUPPORT);return new n([c],{type:i})}return c}throw new Rm("Unsupported protocol "+o,Rm.ERR_NOT_SUPPORT)}(e.url,"blob"===l,{Blob:e.env&&e.env.Blob})}catch(t){throw Rm.from(t,Rm.ERR_BAD_REQUEST,e)}return"text"===l?(n=n.toString(u),u&&"utf8"!==u||(n=xm.stripBOM(n))):"stream"===l&&(n=Md.default.Readable.from(n)),pg(t,r,{data:n,status:200,statusText:"OK",headers:new lg,config:e})}if(-1===jg.indexOf(b))return r(new Rm("Unsupported protocol "+b,Rm.ERR_BAD_REQUEST,e));const _=lg.from(e.headers).normalize();_.set("User-Agent","axios/"+mg,!1);const{onUploadProgress:A,onDownloadProgress:S}=e,k=e.maxRate;let w,C;if(xm.isSpecCompliantForm(o)){const e=_.getContentType(/boundary=([-_\w\d]{10,70})/i);o=xg(o,e=>{_.set(e)},{tag:`axios-${mg}-boundary`,boundary:e&&e[1]||void 0})}else if(xm.isFormData(o)&&xm.isFunction(o.getHeaders)){if(_.set(o.getHeaders()),!_.hasContentLength())try{const e=await Ld.default.promisify(o.getLength).call(o);Number.isFinite(e)&&e>=0&&_.setContentLength(e)}catch(e){}}else if(xm.isBlob(o)||xm.isFile(o))o.size&&_.setContentType(o.type||"application/octet-stream"),_.setContentLength(o.size||0),o=Md.default.Readable.from(_g(o));else if(o&&!xm.isStream(o)){if(Buffer.isBuffer(o));else if(xm.isArrayBuffer(o))o=Buffer.from(new Uint8Array(o));else{if(!xm.isString(o))return r(new Rm("Data after transformation must be a string, an ArrayBuffer, a Buffer, or a Stream",Rm.ERR_BAD_REQUEST,e));o=Buffer.from(o,"utf-8")}if(_.setContentLength(o.length,!1),e.maxBodyLength>-1&&o.length>e.maxBodyLength)return r(new Rm("Request body larger than maxBodyLength limit",Rm.ERR_BAD_REQUEST,e))}const x=xm.toFiniteNumber(_.getContentLength());let O,R;xm.isArray(k)?(w=k[0],C=k[1]):w=C=k,o&&(A||w)&&(xm.isStream(o)||(o=Md.default.Readable.from(o,{objectMode:!1})),o=Md.default.pipeline([o,new vg({maxRate:xm.toFiniteNumber(w)})],xm.noop),A&&o.on("progress",qg(o,Ig(x,Pg(Lg(A),!1,3))))),e.auth&&(O=(e.auth.username||"")+":"+(e.auth.password||"")),!O&&v.username&&(O=v.username+":"+v.password),O&&_.delete("authorization");try{R=Hm(v.pathname+v.search,e.params,e.paramsSerializer).replace(/^\?/,"")}catch(t){const n=new Error(t.message);return n.config=e,n.url=e.url,n.exists=!0,r(n)}_.set("Accept-Encoding","gzip, compress, deflate"+(Mg?", br":""),!1);const N={path:R,method:h,headers:_.toJSON(),agents:{http:e.httpAgent,https:e.httpsAgent},auth:O,protocol:b,family:s,beforeRedirect:Gg,beforeRedirects:{},http2Options:c};let P;!xm.isUndefined(i)&&(N.lookup=i),e.socketPath?N.socketPath=e.socketPath:(N.hostname=v.hostname.startsWith("[")?v.hostname.slice(1,-1):v.hostname,N.port=v.port,$g(N,e.proxy,b+"//"+v.hostname+(v.port?":"+v.port:"")+N.path));const I=Hg.test(N.protocol);if(N.agent=I?e.httpsAgent:e.httpAgent,m?P=Wg:e.transport?P=e.transport:0===e.maxRedirects?P=I?Pd.default:Nd.default:(e.maxRedirects&&(N.maxRedirects=e.maxRedirects),e.beforeRedirect&&(N.beforeRedirects.config=e.beforeRedirect),P=I?Ug:Bg),e.maxBodyLength>-1?N.maxBodyLength=e.maxBodyLength:N.maxBodyLength=1/0,e.insecureHTTPParser&&(N.insecureHTTPParser=e.insecureHTTPParser),p=P.request(N,function(n){if(p.destroyed)return;const o=[n],i=xm.toFiniteNumber(n.headers["content-length"]);if(S||C){const e=new vg({maxRate:xm.toFiniteNumber(C)});S&&e.on("progress",qg(e,Ig(i,Pg(Lg(S),!0,3)))),o.push(e)}let s=n;const a=n.req||p;if(!1!==e.decompress&&n.headers["content-encoding"])switch("HEAD"!==h&&204!==n.statusCode||delete n.headers["content-encoding"],(n.headers["content-encoding"]||"").toLowerCase()){case"gzip":case"x-gzip":case"compress":case"x-compress":o.push(Fd.default.createUnzip(Dg)),delete n.headers["content-encoding"];break;case"deflate":o.push(new Rg),o.push(Fd.default.createUnzip(Dg)),delete n.headers["content-encoding"];break;case"br":Mg&&(o.push(Fd.default.createBrotliDecompress(Fg)),delete n.headers["content-encoding"])}s=o.length>1?Md.default.pipeline(o,xm.noop):o[0];const c={status:n.statusCode,statusText:n.statusMessage,headers:new lg(n.headers),config:e,request:a};if("stream"===l)c.data=s,pg(t,r,c);else{const n=[];let o=0;s.on("data",function(t){n.push(t),o+=t.length,e.maxContentLength>-1&&o>e.maxContentLength&&(d=!0,s.destroy(),y(new Rm("maxContentLength size of "+e.maxContentLength+" exceeded",Rm.ERR_BAD_RESPONSE,e,a)))}),s.on("aborted",function(){if(d)return;const t=new Rm("stream has been aborted",Rm.ERR_BAD_RESPONSE,e,a);s.destroy(t),r(t)}),s.on("error",function(t){p.destroyed||r(Rm.from(t,null,e,a))}),s.on("end",function(){try{let e=1===n.length?n[0]:Buffer.concat(n);"arraybuffer"!==l&&(e=e.toString(u),u&&"utf8"!==u||(e=xm.stripBOM(e))),c.data=e}catch(t){return r(Rm.from(t,null,e,c.request,c))}pg(t,r,c)})}g.once("abort",e=>{s.destroyed||(s.emit("error",e),s.destroy())})}),g.once("abort",e=>{p.close?p.close():p.destroy(e)}),p.on("error",function(t){r(Rm.from(t,null,e,p))}),p.on("socket",function(e){e.setKeepAlive(!0,6e4)}),e.timeout){const t=parseInt(e.timeout,10);if(Number.isNaN(t))return void y(new Rm("error trying to parse `config.timeout` to int",Rm.ERR_BAD_OPTION_VALUE,e,p));p.setTimeout(t,function(){if(f)return;let t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const r=e.transitional||qm;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),y(new Rm(t,r.clarifyTimeoutError?Rm.ETIMEDOUT:Rm.ECONNABORTED,e,p))})}else p.setTimeout(0);if(xm.isStream(o)){let t=!1,r=!1;o.on("end",()=>{t=!0}),o.once("error",e=>{r=!0,p.destroy(e)}),o.on("close",()=>{t||r||y(new fg("Request stream has been aborted",e,p))}),o.pipe(p)}else o&&p.write(o),p.end()},new Promise((e,r)=>{let n,o;const i=(e,t)=>{o||(o=!0,n&&n(e,t))},s=e=>{i(e,!0),r(e)};t(t=>{i(t),e(t)},s,e=>n=e).catch(s)});var t},Yg=Zm.hasStandardBrowserEnv?((e,t)=>r=>(r=new URL(r,Zm.origin),e.protocol===r.protocol&&e.host===r.host&&(t||e.port===r.port)))(new URL(Zm.origin),Zm.navigator&&/(msie|trident)/i.test(Zm.navigator.userAgent)):()=>!0,Xg=Zm.hasStandardBrowserEnv?{write(e,t,r,n,o,i,s){if("undefined"==typeof document)return;const a=[`${e}=${encodeURIComponent(t)}`];xm.isNumber(r)&&a.push(`expires=${new Date(r).toUTCString()}`),xm.isString(n)&&a.push(`path=${n}`),xm.isString(o)&&a.push(`domain=${o}`),!0===i&&a.push("secure"),xm.isString(s)&&a.push(`SameSite=${s}`),document.cookie=a.join("; ")},read(e){if("undefined"==typeof document)return null;const t=document.cookie.match(new RegExp("(?:^|; )"+e+"=([^;]*)"));return t?decodeURIComponent(t[1]):null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read:()=>null,remove(){}},Jg=e=>e instanceof lg?{...e}:e;function Zg(e,t){t=t||{};const r={};function n(e,t,r,n){return xm.isPlainObject(e)&&xm.isPlainObject(t)?xm.merge.call({caseless:n},e,t):xm.isPlainObject(t)?xm.merge({},t):xm.isArray(t)?t.slice():t}function o(e,t,r,o){return xm.isUndefined(t)?xm.isUndefined(e)?void 0:n(void 0,e,0,o):n(e,t,0,o)}function i(e,t){if(!xm.isUndefined(t))return n(void 0,t)}function s(e,t){return xm.isUndefined(t)?xm.isUndefined(e)?void 0:n(void 0,e):n(void 0,t)}function a(r,o,i){return i in t?n(r,o):i in e?n(void 0,r):void 0}const c={url:i,method:i,data:i,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:a,headers:(e,t,r)=>o(Jg(e),Jg(t),0,!0)};return xm.forEach(Object.keys({...e,...t}),function(n){if("__proto__"===n||"constructor"===n||"prototype"===n)return;const i=xm.hasOwnProp(c,n)?c[n]:o,s=i(e[n],t[n],n);xm.isUndefined(s)&&i!==a||(r[n]=s)}),r}const ey=e=>{const t=Zg({},e);let{data:r,withXSRFToken:n,xsrfHeaderName:o,xsrfCookieName:i,headers:s,auth:a}=t;if(t.headers=s=lg.from(s),t.url=Hm(dg(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),a&&s.set("Authorization","Basic "+btoa((a.username||"")+":"+(a.password?unescape(encodeURIComponent(a.password)):""))),xm.isFormData(r))if(Zm.hasStandardBrowserEnv||Zm.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if(xm.isFunction(r.getHeaders)){const e=r.getHeaders(),t=["content-type","content-length"];Object.entries(e).forEach(([e,r])=>{t.includes(e.toLowerCase())&&s.set(e,r)})}if(Zm.hasStandardBrowserEnv&&(n&&xm.isFunction(n)&&(n=n(t)),n||!1!==n&&Yg(t.url))){const e=o&&i&&Xg.read(i);e&&s.set(o,e)}return t},ty="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise(function(t,r){const n=ey(e);let o=n.data;const i=lg.from(n.headers).normalize();let s,a,c,l,u,{responseType:h,onUploadProgress:f,onDownloadProgress:p}=n;function d(){l&&l(),u&&u(),n.cancelToken&&n.cancelToken.unsubscribe(s),n.signal&&n.signal.removeEventListener("abort",s)}let m=new XMLHttpRequest;function g(){if(!m)return;const n=lg.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders());pg(function(e){t(e),d()},function(e){r(e),d()},{data:h&&"text"!==h&&"json"!==h?m.response:m.responseText,status:m.status,statusText:m.statusText,headers:n,config:e,request:m}),m=null}m.open(n.method.toUpperCase(),n.url,!0),m.timeout=n.timeout,"onloadend"in m?m.onloadend=g:m.onreadystatechange=function(){m&&4===m.readyState&&(0!==m.status||m.responseURL&&0===m.responseURL.indexOf("file:"))&&setTimeout(g)},m.onabort=function(){m&&(r(new Rm("Request aborted",Rm.ECONNABORTED,e,m)),m=null)},m.onerror=function(t){const n=t&&t.message?t.message:"Network Error",o=new Rm(n,Rm.ERR_NETWORK,e,m);o.event=t||null,r(o),m=null},m.ontimeout=function(){let t=n.timeout?"timeout of "+n.timeout+"ms exceeded":"timeout exceeded";const o=n.transitional||qm;n.timeoutErrorMessage&&(t=n.timeoutErrorMessage),r(new Rm(t,o.clarifyTimeoutError?Rm.ETIMEDOUT:Rm.ECONNABORTED,e,m)),m=null},void 0===o&&i.setContentType(null),"setRequestHeader"in m&&xm.forEach(i.toJSON(),function(e,t){m.setRequestHeader(t,e)}),xm.isUndefined(n.withCredentials)||(m.withCredentials=!!n.withCredentials),h&&"json"!==h&&(m.responseType=n.responseType),p&&([c,u]=Pg(p,!0),m.addEventListener("progress",c)),f&&m.upload&&([a,l]=Pg(f),m.upload.addEventListener("progress",a),m.upload.addEventListener("loadend",l)),(n.cancelToken||n.signal)&&(s=t=>{m&&(r(!t||t.type?new fg(null,e,m):t),m.abort(),m=null)},n.cancelToken&&n.cancelToken.subscribe(s),n.signal&&(n.signal.aborted?s():n.signal.addEventListener("abort",s)));const y=gg(n.url);y&&-1===Zm.protocols.indexOf(y)?r(new Rm("Unsupported protocol "+y+":",Rm.ERR_BAD_REQUEST,e)):m.send(o||null)})},ry=(e,t)=>{const{length:r}=e=e?e.filter(Boolean):[];if(t||r){let r,n=new AbortController;const o=function(e){if(!r){r=!0,s();const t=e instanceof Error?e:this.reason;n.abort(t instanceof Rm?t:new fg(t instanceof Error?t.message:t))}};let i=t&&setTimeout(()=>{i=null,o(new Rm(`timeout of ${t}ms exceeded`,Rm.ETIMEDOUT))},t);const s=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(e=>{e.unsubscribe?e.unsubscribe(o):e.removeEventListener("abort",o)}),e=null)};e.forEach(e=>e.addEventListener("abort",o));const{signal:a}=n;return a.unsubscribe=()=>xm.asap(s),a}},ny=function*(e,t){let r=e.byteLength;if(!t||r<t)return void(yield e);let n,o=0;for(;o<r;)n=o+t,yield e.slice(o,n),o=n},oy=async function*(e){if(e[Symbol.asyncIterator])return void(yield*e);const t=e.getReader();try{for(;;){const{done:e,value:r}=await t.read();if(e)break;yield r}}finally{await t.cancel()}},iy=(e,t,r,n)=>{const o=async function*(e,t){for await(const r of oy(e))yield*ny(r,t)}(e,t);let i,s=0,a=e=>{i||(i=!0,n&&n(e))};return new ReadableStream({async pull(e){try{const{done:t,value:n}=await o.next();if(t)return a(),void e.close();let i=n.byteLength;if(r){let e=s+=i;r(e)}e.enqueue(new Uint8Array(n))}catch(e){throw a(e),e}},cancel:e=>(a(e),o.return())},{highWaterMark:2})},{isFunction:sy}=xm,ay=(({Request:e,Response:t})=>({Request:e,Response:t}))(xm.global),{ReadableStream:cy,TextEncoder:ly}=xm.global,uy=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},hy=e=>{e=xm.merge.call({skipUndefined:!0},ay,e);const{fetch:t,Request:r,Response:n}=e,o=t?sy(t):"function"==typeof fetch,i=sy(r),s=sy(n);if(!o)return!1;const a=o&&sy(cy),c=o&&("function"==typeof ly?(l=new ly,e=>l.encode(e)):async e=>new Uint8Array(await new r(e).arrayBuffer()));var l;const u=i&&a&&uy(()=>{let e=!1;const t=new r(Zm.origin,{body:new cy,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),h=s&&a&&uy(()=>xm.isReadableStream(new n("").body)),f={stream:h&&(e=>e.body)};o&&["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!f[e]&&(f[e]=(t,r)=>{let n=t&&t[e];if(n)return n.call(t);throw new Rm(`Response type '${e}' is not supported`,Rm.ERR_NOT_SUPPORT,r)})});const p=async(e,t)=>{const n=xm.toFiniteNumber(e.getContentLength());return null==n?(async e=>{if(null==e)return 0;if(xm.isBlob(e))return e.size;if(xm.isSpecCompliantForm(e)){const t=new r(Zm.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return xm.isArrayBufferView(e)||xm.isArrayBuffer(e)?e.byteLength:(xm.isURLSearchParams(e)&&(e+=""),xm.isString(e)?(await c(e)).byteLength:void 0)})(t):n};return async e=>{let{url:o,method:s,data:a,signal:c,cancelToken:l,timeout:d,onDownloadProgress:m,onUploadProgress:g,responseType:y,headers:E,withCredentials:T="same-origin",fetchOptions:v}=ey(e),b=t||fetch;y=y?(y+"").toLowerCase():"text";let _=ry([c,l&&l.toAbortSignal()],d),A=null;const S=_&&_.unsubscribe&&(()=>{_.unsubscribe()});let k;try{if(g&&u&&"get"!==s&&"head"!==s&&0!==(k=await p(E,a))){let e,t=new r(o,{method:"POST",body:a,duplex:"half"});if(xm.isFormData(a)&&(e=t.headers.get("content-type"))&&E.setContentType(e),t.body){const[e,r]=Ig(k,Pg(Lg(g)));a=iy(t.body,65536,e,r)}}xm.isString(T)||(T=T?"include":"omit");const t=i&&"credentials"in r.prototype,c={...v,signal:_,method:s.toUpperCase(),headers:E.normalize().toJSON(),body:a,duplex:"half",credentials:t?T:void 0};A=i&&new r(o,c);let l=await(i?b(A,v):b(o,c));const d=h&&("stream"===y||"response"===y);if(h&&(m||d&&S)){const e={};["status","statusText","headers"].forEach(t=>{e[t]=l[t]});const t=xm.toFiniteNumber(l.headers.get("content-length")),[r,o]=m&&Ig(t,Pg(Lg(m),!0))||[];l=new n(iy(l.body,65536,r,()=>{o&&o(),S&&S()}),e)}y=y||"text";let w=await f[xm.findKey(f,y)||"text"](l,e);return!d&&S&&S(),await new Promise((t,r)=>{pg(t,r,{data:w,headers:lg.from(l.headers),status:l.status,statusText:l.statusText,config:e,request:A})})}catch(t){if(S&&S(),t&&"TypeError"===t.name&&/Load failed|fetch/i.test(t.message))throw Object.assign(new Rm("Network Error",Rm.ERR_NETWORK,e,A,t&&t.response),{cause:t.cause||t});throw Rm.from(t,t&&t.code,e,A,t&&t.response)}}},fy=new Map,py=e=>{let t=e&&e.env||{};const{fetch:r,Request:n,Response:o}=t,i=[n,o,r];let s,a,c=i.length,l=fy;for(;c--;)s=i[c],a=l.get(s),void 0===a&&l.set(s,a=c?new Map:hy(t)),l=a;return a};py();const dy={http:Qg,xhr:ty,fetch:{get:py}};xm.forEach(dy,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}});const my=e=>`- ${e}`,gy=e=>xm.isFunction(e)||null===e||!1===e;const yy={getAdapter:function(e,t){e=xm.isArray(e)?e:[e];const{length:r}=e;let n,o;const i={};for(let s=0;s<r;s++){let r;if(n=e[s],o=n,!gy(n)&&(o=dy[(r=String(n)).toLowerCase()],void 0===o))throw new Rm(`Unknown adapter '${r}'`);if(o&&(xm.isFunction(o)||(o=o.get(t))))break;i[r||"#"+s]=o}if(!o){const e=Object.entries(i).map(([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build"));let t=r?e.length>1?"since :\n"+e.map(my).join("\n"):" "+my(e[0]):"as no adapter specified";throw new Rm("There is no suitable adapter to dispatch the request "+t,"ERR_NOT_SUPPORT")}return o},adapters:dy};function Ey(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new fg(null,e)}function Ty(e){Ey(e),e.headers=lg.from(e.headers),e.data=ug.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);return yy.getAdapter(e.adapter||rg.adapter,e)(e).then(function(t){return Ey(e),t.data=ug.call(e,e.transformResponse,t),t.headers=lg.from(t.headers),t},function(t){return hg(t)||(Ey(e),t&&t.response&&(t.response.data=ug.call(e,e.transformResponse,t.response),t.response.headers=lg.from(t.response.headers))),Promise.reject(t)})}const vy={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{vy[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const by={};vy.transitional=function(e,t,r){function n(e,t){return"[Axios v"+mg+"] Transitional option '"+e+"'"+t+(r?". "+r:"")}return(r,o,i)=>{if(!1===e)throw new Rm(n(o," has been removed"+(t?" in "+t:"")),Rm.ERR_DEPRECATED);return t&&!by[o]&&(by[o]=!0,console.warn(n(o," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(r,o,i)}},vy.spelling=function(e){return(t,r)=>(console.warn(`${r} is likely a misspelling of ${e}`),!0)};const _y={assertOptions:function(e,t,r){if("object"!=typeof e)throw new Rm("options must be an object",Rm.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let o=n.length;for(;o-- >0;){const i=n[o],s=t[i];if(s){const t=e[i],r=void 0===t||s(t,i,e);if(!0!==r)throw new Rm("option "+i+" must be "+r,Rm.ERR_BAD_OPTION_VALUE);continue}if(!0!==r)throw new Rm("Unknown option "+i,Rm.ERR_BAD_OPTION)}},validators:vy},Ay=_y.validators;class Sy{constructor(e){this.defaults=e||{},this.interceptors={request:new jm,response:new jm}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t={};Error.captureStackTrace?Error.captureStackTrace(t):t=new Error;const r=t.stack?t.stack.replace(/^.+\n/,""):"";try{e.stack?r&&!String(e.stack).endsWith(r.replace(/^.+\n.+\n/,""))&&(e.stack+="\n"+r):e.stack=r}catch(e){}}throw e}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=Zg(this.defaults,t);const{transitional:r,paramsSerializer:n,headers:o}=t;void 0!==r&&_y.assertOptions(r,{silentJSONParsing:Ay.transitional(Ay.boolean),forcedJSONParsing:Ay.transitional(Ay.boolean),clarifyTimeoutError:Ay.transitional(Ay.boolean),legacyInterceptorReqResOrdering:Ay.transitional(Ay.boolean)},!1),null!=n&&(xm.isFunction(n)?t.paramsSerializer={serialize:n}:_y.assertOptions(n,{encode:Ay.function,serialize:Ay.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),_y.assertOptions(t,{baseUrl:Ay.spelling("baseURL"),withXsrfToken:Ay.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let i=o&&xm.merge(o.common,o[t.method]);o&&xm.forEach(["delete","get","head","post","put","patch","common"],e=>{delete o[e]}),t.headers=lg.concat(i,o);const s=[];let a=!0;this.interceptors.request.forEach(function(e){if("function"==typeof e.runWhen&&!1===e.runWhen(t))return;a=a&&e.synchronous;const r=t.transitional||qm;r&&r.legacyInterceptorReqResOrdering?s.unshift(e.fulfilled,e.rejected):s.push(e.fulfilled,e.rejected)});const c=[];let l;this.interceptors.response.forEach(function(e){c.push(e.fulfilled,e.rejected)});let u,h=0;if(!a){const e=[Ty.bind(this),void 0];for(e.unshift(...s),e.push(...c),u=e.length,l=Promise.resolve(t);h<u;)l=l.then(e[h++],e[h++]);return l}u=s.length;let f=t;for(;h<u;){const e=s[h++],t=s[h++];try{f=e(f)}catch(e){t.call(this,e);break}}try{l=Ty.call(this,f)}catch(e){return Promise.reject(e)}for(h=0,u=c.length;h<u;)l=l.then(c[h++],c[h++]);return l}getUri(e){return Hm(dg((e=Zg(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls),e.params,e.paramsSerializer)}}xm.forEach(["delete","get","head","options"],function(e){Sy.prototype[e]=function(t,r){return this.request(Zg(r||{},{method:e,url:t,data:(r||{}).data}))}}),xm.forEach(["post","put","patch"],function(e){function t(t){return function(r,n,o){return this.request(Zg(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:r,data:n}))}}Sy.prototype[e]=t(),Sy.prototype[e+"Form"]=t(!0)});const ky=Sy;class wy{constructor(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise(function(e){t=e});const r=this;this.promise.then(e=>{if(!r._listeners)return;let t=r._listeners.length;for(;t-- >0;)r._listeners[t](e);r._listeners=null}),this.promise.then=e=>{let t;const n=new Promise(e=>{r.subscribe(e),t=e}).then(e);return n.cancel=function(){r.unsubscribe(t)},n},e(function(e,n,o){r.reason||(r.reason=new fg(e,n,o),t(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){const e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;const t=new wy(function(t){e=t});return{token:t,cancel:e}}}const Cy=wy;const xy={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(xy).forEach(([e,t])=>{xy[t]=e});const Oy=xy;const Ry=function e(t){const r=new ky(t),n=Bd(ky.prototype.request,r);return xm.extend(n,ky.prototype,r,{allOwnKeys:!0}),xm.extend(n,r,null,{allOwnKeys:!0}),n.create=function(r){return e(Zg(t,r))},n}(rg);Ry.Axios=ky,Ry.CanceledError=fg,Ry.CancelToken=Cy,Ry.isCancel=hg,Ry.VERSION=mg,Ry.toFormData=Dm,Ry.AxiosError=Rm,Ry.Cancel=Ry.CanceledError,Ry.all=function(e){return Promise.all(e)},Ry.spread=function(e){return function(t){return e.apply(null,t)}},Ry.isAxiosError=function(e){return xm.isObject(e)&&!0===e.isAxiosError},Ry.mergeConfig=Zg,Ry.AxiosHeaders=lg,Ry.formToJSON=e=>eg(xm.isHTMLForm(e)?new FormData(e):e),Ry.getAdapter=yy.getAdapter,Ry.HttpStatusCode=Oy,Ry.default=Ry;var Ny=Ry;function Py(e,t){return function(){return e.apply(t,arguments)}}const{toString:Iy}=Object.prototype,{getPrototypeOf:Ly}=Object,{iterator:Dy,toStringTag:Fy}=Symbol,My=(e=>t=>{const r=Iy.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),By=e=>(e=e.toLowerCase(),t=>My(t)===e),Uy=e=>t=>typeof t===e,{isArray:Hy}=Array,jy=Uy("undefined");function qy(e){return null!==e&&!jy(e)&&null!==e.constructor&&!jy(e.constructor)&&$y(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const zy=By("ArrayBuffer");const Gy=Uy("string"),$y=Uy("function"),Ky=Uy("number"),Vy=e=>null!==e&&"object"==typeof e,Wy=e=>{if("object"!==My(e))return!1;const t=Ly(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Fy in e||Dy in e)},Qy=By("Date"),Yy=By("File"),Xy=By("Blob"),Jy=By("FileList");const Zy="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{},eE=void 0!==Zy.FormData?Zy.FormData:void 0,tE=By("URLSearchParams"),[rE,nE,oE,iE]=["ReadableStream","Request","Response","Headers"].map(By);function sE(e,t,{allOwnKeys:r=!1}={}){if(null==e)return;let n,o;if("object"!=typeof e&&(e=[e]),Hy(e))for(n=0,o=e.length;n<o;n++)t.call(null,e[n],n,e);else{if(qy(e))return;const o=r?Object.getOwnPropertyNames(e):Object.keys(e),i=o.length;let s;for(n=0;n<i;n++)s=o[n],t.call(null,e[s],s,e)}}function aE(e,t){if(qy(e))return null;t=t.toLowerCase();const r=Object.keys(e);let n,o=r.length;for(;o-- >0;)if(n=r[o],t===n.toLowerCase())return n;return null}const cE="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,lE=e=>!jy(e)&&e!==cE;const uE=(e=>t=>e&&t instanceof e)("undefined"!=typeof Uint8Array&&Ly(Uint8Array)),hE=By("HTMLFormElement"),fE=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),pE=By("RegExp"),dE=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};sE(r,(r,o)=>{let i;!1!==(i=t(r,o,e))&&(n[o]=i||r)}),Object.defineProperties(e,n)};const mE=By("AsyncFunction"),gE=((e,t)=>e?setImmediate:t?((e,t)=>(cE.addEventListener("message",({source:r,data:n})=>{r===cE&&n===e&&t.length&&t.shift()()},!1),r=>{t.push(r),cE.postMessage(e,"*")}))(`axios@${Math.random()}`,[]):e=>setTimeout(e))("function"==typeof setImmediate,$y(cE.postMessage)),yE="undefined"!=typeof queueMicrotask?queueMicrotask.bind(cE):"undefined"!=typeof process&&process.nextTick||gE;var EE={isArray:Hy,isArrayBuffer:zy,isBuffer:qy,isFormData:e=>{let t;return e&&(eE&&e instanceof eE||$y(e.append)&&("formdata"===(t=My(e))||"object"===t&&$y(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&zy(e.buffer),t},isString:Gy,isNumber:Ky,isBoolean:e=>!0===e||!1===e,isObject:Vy,isPlainObject:Wy,isEmptyObject:e=>{if(!Vy(e)||qy(e))return!1;try{return 0===Object.keys(e).length&&Object.getPrototypeOf(e)===Object.prototype}catch(e){return!1}},isReadableStream:rE,isRequest:nE,isResponse:oE,isHeaders:iE,isUndefined:jy,isDate:Qy,isFile:Yy,isReactNativeBlob:e=>!(!e||void 0===e.uri),isReactNative:e=>e&&void 0!==e.getParts,isBlob:Xy,isRegExp:pE,isFunction:$y,isStream:e=>Vy(e)&&$y(e.pipe),isURLSearchParams:tE,isTypedArray:uE,isFileList:Jy,forEach:sE,merge:function e(){const{caseless:t,skipUndefined:r}=lE(this)&&this||{},n={},o=(o,i)=>{if("__proto__"===i||"constructor"===i||"prototype"===i)return;const s=t&&aE(n,i)||i;Wy(n[s])&&Wy(o)?n[s]=e(n[s],o):Wy(o)?n[s]=e({},o):Hy(o)?n[s]=o.slice():r&&jy(o)||(n[s]=o)};for(let e=0,t=arguments.length;e<t;e++)arguments[e]&&sE(arguments[e],o);return n},extend:(e,t,r,{allOwnKeys:n}={})=>(sE(t,(t,n)=>{r&&$y(t)?Object.defineProperty(e,n,{value:Py(t,r),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,n,{value:t,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:n}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),Object.defineProperty(e.prototype,"constructor",{value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},toFlatObject:(e,t,r,n)=>{let o,i,s;const a={};if(t=t||{},null==e)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)s=o[i],n&&!n(s,e,t)||a[s]||(t[s]=e[s],a[s]=!0);e=!1!==r&&Ly(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},kindOf:My,kindOfTest:By,endsWith:(e,t,r)=>{e=String(e),(void 0===r||r>e.length)&&(r=e.length),r-=t.length;const n=e.indexOf(t,r);return-1!==n&&n===r},toArray:e=>{if(!e)return null;if(Hy(e))return e;let t=e.length;if(!Ky(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},forEachEntry:(e,t)=>{const r=(e&&e[Dy]).call(e);let n;for(;(n=r.next())&&!n.done;){const r=n.value;t.call(e,r[0],r[1])}},matchAll:(e,t)=>{let r;const n=[];for(;null!==(r=e.exec(t));)n.push(r);return n},isHTMLForm:hE,hasOwnProperty:fE,hasOwnProp:fE,reduceDescriptors:dE,freezeMethods:e=>{dE(e,(t,r)=>{if($y(e)&&-1!==["arguments","caller","callee"].indexOf(r))return!1;const n=e[r];$y(n)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")}))})},toObjectSet:(e,t)=>{const r={},n=e=>{e.forEach(e=>{r[e]=!0})};return Hy(e)?n(e):n(String(e).split(t)),r},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,r){return t.toUpperCase()+r}),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:aE,global:cE,isContextDefined:lE,isSpecCompliantForm:function(e){return!!(e&&$y(e.append)&&"FormData"===e[Fy]&&e[Dy])},toJSONObject:e=>{const t=new Array(10),r=(e,n)=>{if(Vy(e)){if(t.indexOf(e)>=0)return;if(qy(e))return e;if(!("toJSON"in e)){t[n]=e;const o=Hy(e)?[]:{};return sE(e,(e,t)=>{const i=r(e,n+1);!jy(i)&&(o[t]=i)}),t[n]=void 0,o}}return e};return r(e,0)},isAsyncFn:mE,isThenable:e=>e&&(Vy(e)||$y(e))&&$y(e.then)&&$y(e.catch),setImmediate:gE,asap:yE,isIterable:e=>null!=e&&$y(e[Dy])};class TE extends Error{static from(e,t,r,n,o,i){const s=new TE(e.message,t||e.code,r,n,o);return s.cause=e,s.name=e.name,null!=e.status&&null==s.status&&(s.status=e.status),i&&Object.assign(s,i),s}constructor(e,t,r,n,o){super(e),Object.defineProperty(this,"message",{value:e,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),o&&(this.response=o,this.status=o.status)}toJSON(){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:EE.toJSONObject(this.config),code:this.code,status:this.status}}}TE.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE",TE.ERR_BAD_OPTION="ERR_BAD_OPTION",TE.ECONNABORTED="ECONNABORTED",TE.ETIMEDOUT="ETIMEDOUT",TE.ERR_NETWORK="ERR_NETWORK",TE.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS",TE.ERR_DEPRECATED="ERR_DEPRECATED",TE.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE",TE.ERR_BAD_REQUEST="ERR_BAD_REQUEST",TE.ERR_CANCELED="ERR_CANCELED",TE.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT",TE.ERR_INVALID_URL="ERR_INVALID_URL";var vE=TE;function bE(e){return EE.isPlainObject(e)||EE.isArray(e)}function _E(e){return EE.endsWith(e,"[]")?e.slice(0,-2):e}function AE(e,t,r){return e?e.concat(t).map(function(e,t){return e=_E(e),!r&&t?"["+e+"]":e}).join(r?".":""):t}const SE=EE.toFlatObject(EE,{},null,function(e){return/^is[A-Z]/.test(e)});function kE(e,t,r){if(!EE.isObject(e))throw new TypeError("target must be an object");t=t||new(wp||FormData),r=EE.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,t){return!EE.isUndefined(t[e])});const n=r.metaTokens,o=r.visitor||l,i=r.dots,s=r.indexes,a=(r.Blob||"undefined"!=typeof Blob&&Blob)&&EE.isSpecCompliantForm(t);if(!EE.isFunction(o))throw new TypeError("visitor must be a function");function c(e){if(null===e)return"";if(EE.isDate(e))return e.toISOString();if(EE.isBoolean(e))return e.toString();if(!a&&EE.isBlob(e))throw new vE("Blob is not supported. Use a Buffer instead.");return EE.isArrayBuffer(e)||EE.isTypedArray(e)?a&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function l(e,r,o){let a=e;if(EE.isReactNative(t)&&EE.isReactNativeBlob(e))return t.append(AE(o,r,i),c(e)),!1;if(e&&!o&&"object"==typeof e)if(EE.endsWith(r,"{}"))r=n?r:r.slice(0,-2),e=JSON.stringify(e);else if(EE.isArray(e)&&function(e){return EE.isArray(e)&&!e.some(bE)}(e)||(EE.isFileList(e)||EE.endsWith(r,"[]"))&&(a=EE.toArray(e)))return r=_E(r),a.forEach(function(e,n){!EE.isUndefined(e)&&null!==e&&t.append(!0===s?AE([r],n,i):null===s?r:r+"[]",c(e))}),!1;return!!bE(e)||(t.append(AE(o,r,i),c(e)),!1)}const u=[],h=Object.assign(SE,{defaultVisitor:l,convertValue:c,isVisitable:bE});if(!EE.isObject(e))throw new TypeError("data must be an object");return function e(r,n){if(!EE.isUndefined(r)){if(-1!==u.indexOf(r))throw Error("Circular reference detected in "+n.join("."));u.push(r),EE.forEach(r,function(r,i){!0===(!(EE.isUndefined(r)||null===r)&&o.call(t,r,EE.isString(i)?i.trim():i,n,h))&&e(r,n?n.concat(i):[i])}),u.pop()}}(e),t}function wE(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(e){return t[e]})}function CE(e,t){this._pairs=[],e&&kE(e,this,t)}const xE=CE.prototype;function OE(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function RE(e,t,r){if(!t)return e;const n=r&&r.encode||OE,o=EE.isFunction(r)?{serialize:r}:r,i=o&&o.serialize;let s;if(s=i?i(t,o):EE.isURLSearchParams(t)?t.toString():new CE(t,o).toString(n),s){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+s}return e}xE.append=function(e,t){this._pairs.push([e,t])},xE.toString=function(e){const t=e?function(t){return e.call(this,t,wE)}:wE;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")};var NE=class{constructor(){this.handlers=[]}use(e,t,r){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!r&&r.synchronous,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){EE.forEach(this.handlers,function(t){null!==t&&e(t)})}},PE={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0},IE=j.default.URLSearchParams;const LE="abcdefghijklmnopqrstuvwxyz",DE="0123456789",FE={DIGIT:DE,ALPHA:LE,ALPHA_DIGIT:LE+LE.toUpperCase()+DE};var ME={isNode:!0,classes:{URLSearchParams:IE,FormData:wp,Blob:"undefined"!=typeof Blob&&Blob||null},ALPHABET:FE,generateString:(e=16,t=FE.ALPHA_DIGIT)=>{let r="";const{length:n}=t,o=new Uint32Array(e);Q.default.randomFillSync(o);for(let i=0;i<e;i++)r+=t[o[i]%n];return r},protocols:["http","https","file","data"]};const BE="undefined"!=typeof window&&"undefined"!=typeof document,UE="object"==typeof navigator&&navigator||void 0,HE=BE&&(!UE||["ReactNative","NativeScript","NS"].indexOf(UE.product)<0),jE="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,qE=BE&&window.location.href||"http://localhost";var zE={...Object.freeze({__proto__:null,hasBrowserEnv:BE,hasStandardBrowserWebWorkerEnv:jE,hasStandardBrowserEnv:HE,navigator:UE,origin:qE}),...ME};function GE(e){function t(e,r,n,o){let i=e[o++];if("__proto__"===i)return!0;const s=Number.isFinite(+i),a=o>=e.length;if(i=!i&&EE.isArray(n)?n.length:i,a)return EE.hasOwnProp(n,i)?n[i]=[n[i],r]:n[i]=r,!s;n[i]&&EE.isObject(n[i])||(n[i]=[]);return t(e,r,n[i],o)&&EE.isArray(n[i])&&(n[i]=function(e){const t={},r=Object.keys(e);let n;const o=r.length;let i;for(n=0;n<o;n++)i=r[n],t[i]=e[i];return t}(n[i])),!s}if(EE.isFormData(e)&&EE.isFunction(e.entries)){const r={};return EE.forEachEntry(e,(e,n)=>{t(function(e){return EE.matchAll(/\w+|\[(\w*)]/g,e).map(e=>"[]"===e[0]?"":e[1]||e[0])}(e),n,r,0)}),r}return null}const $E={transitional:PE,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const r=t.getContentType()||"",n=r.indexOf("application/json")>-1,o=EE.isObject(e);o&&EE.isHTMLForm(e)&&(e=new FormData(e));if(EE.isFormData(e))return n?JSON.stringify(GE(e)):e;if(EE.isArrayBuffer(e)||EE.isBuffer(e)||EE.isStream(e)||EE.isFile(e)||EE.isBlob(e)||EE.isReadableStream(e))return e;if(EE.isArrayBufferView(e))return e.buffer;if(EE.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let i;if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return kE(e,new zE.classes.URLSearchParams,{visitor:function(e,t,r,n){return zE.isNode&&EE.isBuffer(e)?(this.append(t,e.toString("base64")),!1):n.defaultVisitor.apply(this,arguments)},...t})}(e,this.formSerializer).toString();if((i=EE.isFileList(e))||r.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return kE(i?{"files[]":e}:e,t&&new t,this.formSerializer)}}return o||n?(t.setContentType("application/json",!1),function(e,t,r){if(EE.isString(e))try{return(t||JSON.parse)(e),EE.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(r||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||$E.transitional,r=t&&t.forcedJSONParsing,n="json"===this.responseType;if(EE.isResponse(e)||EE.isReadableStream(e))return e;if(e&&EE.isString(e)&&(r&&!this.responseType||n)){const r=!(t&&t.silentJSONParsing)&&n;try{return JSON.parse(e,this.parseReviver)}catch(e){if(r){if("SyntaxError"===e.name)throw vE.from(e,vE.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:zE.classes.FormData,Blob:zE.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};EE.forEach(["delete","get","head","post","put","patch"],e=>{$E.headers[e]={}});var KE=$E;const VE=EE.toObjectSet(["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"]);const WE=Symbol("internals");function QE(e){return e&&String(e).trim().toLowerCase()}function YE(e){return!1===e||null==e?e:EE.isArray(e)?e.map(YE):String(e)}function XE(e,t,r,n,o){return EE.isFunction(n)?n.call(this,t,r):(o&&(t=r),EE.isString(t)?EE.isString(n)?-1!==t.indexOf(n):EE.isRegExp(n)?n.test(t):void 0:void 0)}class JE{constructor(e){e&&this.set(e)}set(e,t,r){const n=this;function o(e,t,r){const o=QE(t);if(!o)throw new Error("header name must be a non-empty string");const i=EE.findKey(n,o);(!i||void 0===n[i]||!0===r||void 0===r&&!1!==n[i])&&(n[i||t]=YE(e))}const i=(e,t)=>EE.forEach(e,(e,r)=>o(e,r,t));if(EE.isPlainObject(e)||e instanceof this.constructor)i(e,t);else if(EE.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))i((e=>{const t={};let r,n,o;return e&&e.split("\n").forEach(function(e){o=e.indexOf(":"),r=e.substring(0,o).trim().toLowerCase(),n=e.substring(o+1).trim(),!r||t[r]&&VE[r]||("set-cookie"===r?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)}),t})(e),t);else if(EE.isObject(e)&&EE.isIterable(e)){let r,n,o={};for(const t of e){if(!EE.isArray(t))throw TypeError("Object iterator must return a key-value pair");o[n=t[0]]=(r=o[n])?EE.isArray(r)?[...r,t[1]]:[r,t[1]]:t[1]}i(o,t)}else null!=e&&o(t,e,r);return this}get(e,t){if(e=QE(e)){const r=EE.findKey(this,e);if(r){const e=this[r];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=r.exec(e);)t[n[1]]=n[2];return t}(e);if(EE.isFunction(t))return t.call(this,e,r);if(EE.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=QE(e)){const r=EE.findKey(this,e);return!(!r||void 0===this[r]||t&&!XE(0,this[r],r,t))}return!1}delete(e,t){const r=this;let n=!1;function o(e){if(e=QE(e)){const o=EE.findKey(r,e);!o||t&&!XE(0,r[o],o,t)||(delete r[o],n=!0)}}return EE.isArray(e)?e.forEach(o):o(e),n}clear(e){const t=Object.keys(this);let r=t.length,n=!1;for(;r--;){const o=t[r];e&&!XE(0,this[o],o,e,!0)||(delete this[o],n=!0)}return n}normalize(e){const t=this,r={};return EE.forEach(this,(n,o)=>{const i=EE.findKey(r,o);if(i)return t[i]=YE(n),void delete t[o];const s=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,r)=>t.toUpperCase()+r)}(o):String(o).trim();s!==o&&delete t[o],t[s]=YE(n),r[s]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return EE.forEach(this,(r,n)=>{null!=r&&!1!==r&&(t[n]=e&&EE.isArray(r)?r.join(", "):r)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join("\n")}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const r=new this(e);return t.forEach(e=>r.set(e)),r}static accessor(e){const t=(this[WE]=this[WE]={accessors:{}}).accessors,r=this.prototype;function n(e){const n=QE(e);t[n]||(!function(e,t){const r=EE.toCamelCase(" "+t);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+r,{value:function(e,r,o){return this[n].call(this,t,e,r,o)},configurable:!0})})}(r,e),t[n]=!0)}return EE.isArray(e)?e.forEach(n):n(e),this}}JE.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),EE.reduceDescriptors(JE.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[r]=e}}}),EE.freezeMethods(JE);var ZE=JE;function eT(e,t){const r=this||KE,n=t||r,o=ZE.from(n.headers);let i=n.data;return EE.forEach(e,function(e){i=e.call(r,i,o.normalize(),t?t.status:void 0)}),o.normalize(),i}function tT(e){return!(!e||!e.__CANCEL__)}var rT=class extends vE{constructor(e,t,r){super(null==e?"canceled":e,vE.ERR_CANCELED,t,r),this.name="CanceledError",this.__CANCEL__=!0}};function nT(e,t,r){const n=r.config.validateStatus;r.status&&n&&!n(r.status)?t(new vE("Request failed with status code "+r.status,[vE.ERR_BAD_REQUEST,vE.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r)):e(r)}function oT(e,t,r){let n=!function(e){return"string"==typeof e&&/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}(t);return e&&(n||0==r)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const iT="1.13.6";function sT(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}const aT=/^(?:([^;]+);)?(?:[^;]+;)?(base64|),([\s\S]*)$/;const cT=Symbol("internals");class lT extends G.default.Transform{constructor(e){e=EE.toFlatObject(e,{maxRate:0,chunkSize:65536,minChunkSize:100,timeWindow:500,ticksRate:2,samplesCount:15},null,(e,t)=>!EE.isUndefined(t[e])),super({readableHighWaterMark:e.chunkSize});const t=this[cT]={timeWindow:e.timeWindow,chunkSize:e.chunkSize,maxRate:e.maxRate,minChunkSize:e.minChunkSize,bytesSeen:0,isCaptured:!1,notifiedBytesLoaded:0,ts:Date.now(),bytes:0,onReadCallback:null};this.on("newListener",e=>{"progress"===e&&(t.isCaptured||(t.isCaptured=!0))})}_read(e){const t=this[cT];return t.onReadCallback&&t.onReadCallback(),super._read(e)}_transform(e,t,r){const n=this[cT],o=n.maxRate,i=this.readableHighWaterMark,s=n.timeWindow,a=o/(1e3/s),c=!1!==n.minChunkSize?Math.max(n.minChunkSize,.01*a):0,l=(e,t)=>{const r=Buffer.byteLength(e);n.bytesSeen+=r,n.bytes+=r,n.isCaptured&&this.emit("progress",n.bytesSeen),this.push(e)?process.nextTick(t):n.onReadCallback=()=>{n.onReadCallback=null,process.nextTick(t)}},u=(e,t)=>{const r=Buffer.byteLength(e);let u,h=null,f=i,p=0;if(o){const e=Date.now();(!n.ts||(p=e-n.ts)>=s)&&(n.ts=e,u=a-n.bytes,n.bytes=u<0?-u:0,p=0),u=a-n.bytes}if(o){if(u<=0)return setTimeout(()=>{t(null,e)},s-p);u<f&&(f=u)}f&&r>f&&r-f>c&&(h=e.subarray(f),e=e.subarray(0,f)),l(e,h?()=>{process.nextTick(t,null,h)}:t)};u(e,function e(t,n){if(t)return r(t);n?u(n,e):r(null)})}}var uT=lT;const{asyncIterator:hT}=Symbol;var fT=async function*(e){e.stream?yield*e.stream():e.arrayBuffer?yield await e.arrayBuffer():e[hT]?yield*e[hT]():yield e};const pT=zE.ALPHABET.ALPHA_DIGIT+"-_",dT="function"==typeof TextEncoder?new TextEncoder:new z.default.TextEncoder,mT="\r\n",gT=dT.encode(mT);class yT{constructor(e,t){const{escapeName:r}=this.constructor,n=EE.isString(t);let o=`Content-Disposition: form-data; name="${r(e)}"${!n&&t.name?`; filename="${r(t.name)}"`:""}${mT}`;n?t=dT.encode(String(t).replace(/\r?\n|\r\n?/g,mT)):o+=`Content-Type: ${t.type||"application/octet-stream"}${mT}`,this.headers=dT.encode(o+mT),this.contentLength=n?t.byteLength:t.size,this.size=this.headers.byteLength+this.contentLength+2,this.name=e,this.value=t}async*encode(){yield this.headers;const{value:e}=this;EE.isTypedArray(e)?yield e:yield*fT(e),yield gT}static escapeName(e){return String(e).replace(/[\r\n"]/g,e=>({"\r":"%0D","\n":"%0A",'"':"%22"}[e]))}}var ET=(e,t,r)=>{const{tag:n="form-data-boundary",size:o=25,boundary:i=n+"-"+zE.generateString(o,pT)}=r||{};if(!EE.isFormData(e))throw TypeError("FormData instance required");if(i.length<1||i.length>70)throw Error("boundary must be 10-70 characters long");const s=dT.encode("--"+i+mT),a=dT.encode("--"+i+"--"+mT);let c=a.byteLength;const u=Array.from(e.entries()).map(([e,t])=>{const r=new yT(e,t);return c+=r.size,r});c+=s.byteLength*u.length,c=EE.toFiniteNumber(c);const h={"Content-Type":`multipart/form-data; boundary=${i}`};return Number.isFinite(c)&&(h["Content-Length"]=c),t&&t(h),l.Readable.from(async function*(){for(const e of u)yield s,yield*e.encode();yield a}())};class TT extends G.default.Transform{__transform(e,t,r){this.push(e),r()}_transform(e,t,r){if(0!==e.length&&(this._transform=this.__transform,120!==e[0])){const e=Buffer.alloc(2);e[0]=120,e[1]=156,this.push(e,t)}this.__transform(e,t,r)}}var vT=TT;var bT=(e,t)=>EE.isAsyncFn(e)?function(...r){const n=r.pop();e.apply(this,r).then(e=>{try{t?n(null,...t(e)):n(null,e)}catch(e){n(e)}},n)}:e;const _T=(e,t,r=3)=>{let n=0;const o=function(e,t){e=e||10;const r=new Array(e),n=new Array(e);let o,i=0,s=0;return t=void 0!==t?t:1e3,function(a){const c=Date.now(),l=n[s];o||(o=c),r[i]=a,n[i]=c;let u=s,h=0;for(;u!==i;)h+=r[u++],u%=e;if(i=(i+1)%e,i===s&&(s=(s+1)%e),c-o<t)return;const f=l&&c-l;return f?Math.round(1e3*h/f):void 0}}(50,250);return function(e,t){let r,n,o=0,i=1e3/t;const s=(t,i=Date.now())=>{o=i,r=null,n&&(clearTimeout(n),n=null),e(...t)};return[(...e)=>{const t=Date.now(),a=t-o;a>=i?s(e,t):(r=e,n||(n=setTimeout(()=>{n=null,s(r)},i-a)))},()=>r&&s(r)]}(r=>{const i=r.loaded,s=r.lengthComputable?r.total:void 0,a=i-n,c=o(a);n=i;e({loaded:i,total:s,progress:s?i/s:void 0,bytes:a,rate:c||void 0,estimated:c&&s&&i<=s?(s-i)/c:void 0,event:r,lengthComputable:null!=s,[t?"download":"upload"]:!0})},r)},AT=(e,t)=>{const r=null!=e;return[n=>t[0]({lengthComputable:r,total:e,loaded:n}),t[1]]},ST=e=>(...t)=>EE.asap(()=>e(...t));const kT={flush:J.default.constants.Z_SYNC_FLUSH,finishFlush:J.default.constants.Z_SYNC_FLUSH},wT={flush:J.default.constants.BROTLI_OPERATION_FLUSH,finishFlush:J.default.constants.BROTLI_OPERATION_FLUSH},CT=EE.isFunction(J.default.createBrotliDecompress),{http:xT,https:OT}=pd,RT=/https:?/,NT=zE.protocols.map(e=>e+":"),PT=(e,[t,r])=>(e.on("end",r).on("error",r),t);const IT=new class{constructor(){this.sessions=Object.create(null)}getSession(e,t){t=Object.assign({sessionTimeout:1e3},t);let r=this.sessions[e];if(r){let e=r.length;for(let n=0;n<e;n++){const[e,o]=r[n];if(!e.destroyed&&!e.closed&&z.default.isDeepStrictEqual(o,t))return e}}const n=X.default.connect(e,t);let o;const i=()=>{if(o)return;o=!0;let t=r,i=t.length,s=i;for(;s--;)if(t[s][0]===n)return void(1===i?delete this.sessions[e]:t.splice(s,1))},s=n.request,{sessionTimeout:a}=t;if(null!=a){let e,t=0;n.request=function(){const r=s.apply(this,arguments);return t++,e&&(clearTimeout(e),e=null),r.once("close",()=>{--t||(e=setTimeout(()=>{e=null,i()},a))}),r}}n.once("close",i);let c=[n,t];return r?r.push(c):r=this.sessions[e]=[c],n}};function LT(e,t){e.beforeRedirects.proxy&&e.beforeRedirects.proxy(e),e.beforeRedirects.config&&e.beforeRedirects.config(e,t)}function DT(e,t,r){let n=t;if(!n&&!1!==n){const e=Cp.getProxyForUrl(r);e&&(n=new URL(e))}if(n){if(n.username&&(n.auth=(n.username||"")+":"+(n.password||"")),n.auth){if(Boolean(n.auth.username||n.auth.password))n.auth=(n.auth.username||"")+":"+(n.auth.password||"");else if("object"==typeof n.auth)throw new vE("Invalid proxy authorization",vE.ERR_BAD_OPTION,{proxy:n});const t=Buffer.from(n.auth,"utf8").toString("base64");e.headers["Proxy-Authorization"]="Basic "+t}e.headers.host=e.hostname+(e.port?":"+e.port:"");const t=n.hostname||n.host;e.hostname=t,e.host=t,e.port=n.port,e.path=r,n.protocol&&(e.protocol=n.protocol.includes(":")?n.protocol:`${n.protocol}:`)}e.beforeRedirects.proxy=function(e){DT(e,t,e.href)}}const FT="undefined"!=typeof process&&"process"===EE.kindOf(process),MT=(e,t)=>(({address:e,family:t})=>{if(!EE.isString(e))throw TypeError("address must be a string");return{address:e,family:t||(e.indexOf(".")<0?6:4)}})(EE.isObject(e)?e:{address:e,family:t}),BT={request(e,t){const r=e.protocol+"//"+e.hostname+":"+(e.port||("https:"===e.protocol?443:80)),{http2Options:n,headers:o}=e,i=IT.getSession(r,n),{HTTP2_HEADER_SCHEME:s,HTTP2_HEADER_METHOD:a,HTTP2_HEADER_PATH:c,HTTP2_HEADER_STATUS:l}=X.default.constants,u={[s]:e.protocol.replace(":",""),[a]:e.method,[c]:e.path};EE.forEach(o,(e,t)=>{":"!==t.charAt(0)&&(u[t]=e)});const h=i.request(u);return h.once("response",e=>{const r=h,n=(e=Object.assign({},e))[l];delete e[l],r.headers=e,r.statusCode=+n,t(r)}),h}};var UT=FT&&function(e){return t=async function(t,r,n){let{data:o,lookup:i,family:s,httpVersion:a=1,http2Options:c}=e;const{responseType:l,responseEncoding:u}=e,h=e.method.toUpperCase();let f,p,d=!1;if(a=+a,Number.isNaN(a))throw TypeError(`Invalid protocol version: '${e.httpVersion}' is not a number`);if(1!==a&&2!==a)throw TypeError(`Unsupported protocol version '${a}'`);const m=2===a;if(i){const e=bT(i,e=>EE.isArray(e)?e:[e]);i=(t,r,n)=>{e(t,r,(e,t,o)=>{if(e)return n(e);const i=EE.isArray(t)?t.map(e=>MT(e)):[MT(t,o)];r.all?n(e,i):n(e,i[0].address,i[0].family)})}}const g=new y.EventEmitter;function E(t){try{g.emit("abort",!t||t.type?new rT(null,e,p):t)}catch(e){console.warn("emit error",e)}}g.once("abort",r);const T=()=>{e.cancelToken&&e.cancelToken.unsubscribe(E),e.signal&&e.signal.removeEventListener("abort",E),g.removeAllListeners()};(e.cancelToken||e.signal)&&(e.cancelToken&&e.cancelToken.subscribe(E),e.signal&&(e.signal.aborted?E():e.signal.addEventListener("abort",E))),n((e,t)=>{if(f=!0,t)return d=!0,void T();const{data:r}=e;if(r instanceof G.default.Readable||r instanceof G.default.Duplex){const e=G.default.finished(r,()=>{e(),T()})}else T()});const v=oT(e.baseURL,e.url,e.allowAbsoluteUrls),b=new URL(v,zE.hasBrowserEnv?zE.origin:void 0),_=b.protocol||NT[0];if("data:"===_){if(e.maxContentLength>-1){const t=function(e){if(!e||"string"!=typeof e)return 0;if(!e.startsWith("data:"))return 0;const t=e.indexOf(",");if(t<0)return 0;const r=e.slice(5,t),n=e.slice(t+1);if(/;base64/i.test(r)){let e=n.length;const t=n.length;for(let r=0;r<t;r++)if(37===n.charCodeAt(r)&&r+2<t){const t=n.charCodeAt(r+1),o=n.charCodeAt(r+2);(t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102)&&(o>=48&&o<=57||o>=65&&o<=70||o>=97&&o<=102)&&(e-=2,r+=2)}let r=0,o=t-1;const i=e=>e>=2&&37===n.charCodeAt(e-2)&&51===n.charCodeAt(e-1)&&(68===n.charCodeAt(e)||100===n.charCodeAt(e));o>=0&&(61===n.charCodeAt(o)?(r++,o--):i(o)&&(r++,o-=3)),1===r&&o>=0&&(61===n.charCodeAt(o)||i(o))&&r++;const s=3*Math.floor(e/4)-(r||0);return s>0?s:0}return Buffer.byteLength(n,"utf8")}(String(e.url||v||""));if(t>e.maxContentLength)return r(new vE("maxContentLength size of "+e.maxContentLength+" exceeded",vE.ERR_BAD_RESPONSE,e))}let n;if("GET"!==h)return nT(t,r,{status:405,statusText:"method not allowed",headers:{},config:e});try{n=function(e,t,r){const n=r&&r.Blob||zE.classes.Blob,o=sT(e);if(void 0===t&&n&&(t=!0),"data"===o){e=o.length?e.slice(o.length+1):e;const r=aT.exec(e);if(!r)throw new vE("Invalid URL",vE.ERR_INVALID_URL);const i=r[1],s=r[2],a=r[3],c=Buffer.from(decodeURIComponent(a),s?"base64":"utf8");if(t){if(!n)throw new vE("Blob is not supported",vE.ERR_NOT_SUPPORT);return new n([c],{type:i})}return c}throw new vE("Unsupported protocol "+o,vE.ERR_NOT_SUPPORT)}(e.url,"blob"===l,{Blob:e.env&&e.env.Blob})}catch(t){throw vE.from(t,vE.ERR_BAD_REQUEST,e)}return"text"===l?(n=n.toString(u),u&&"utf8"!==u||(n=EE.stripBOM(n))):"stream"===l&&(n=G.default.Readable.from(n)),nT(t,r,{data:n,status:200,statusText:"OK",headers:new ZE,config:e})}if(-1===NT.indexOf(_))return r(new vE("Unsupported protocol "+_,vE.ERR_BAD_REQUEST,e));const A=ZE.from(e.headers).normalize();A.set("User-Agent","axios/"+iT,!1);const{onUploadProgress:S,onDownloadProgress:k}=e,w=e.maxRate;let C,x;if(EE.isSpecCompliantForm(o)){const e=A.getContentType(/boundary=([-_\w\d]{10,70})/i);o=ET(o,e=>{A.set(e)},{tag:`axios-${iT}-boundary`,boundary:e&&e[1]||void 0})}else if(EE.isFormData(o)&&EE.isFunction(o.getHeaders)){if(A.set(o.getHeaders()),!A.hasContentLength())try{const e=await z.default.promisify(o.getLength).call(o);Number.isFinite(e)&&e>=0&&A.setContentLength(e)}catch(e){}}else if(EE.isBlob(o)||EE.isFile(o))o.size&&A.setContentType(o.type||"application/octet-stream"),A.setContentLength(o.size||0),o=G.default.Readable.from(fT(o));else if(o&&!EE.isStream(o)){if(Buffer.isBuffer(o));else if(EE.isArrayBuffer(o))o=Buffer.from(new Uint8Array(o));else{if(!EE.isString(o))return r(new vE("Data after transformation must be a string, an ArrayBuffer, a Buffer, or a Stream",vE.ERR_BAD_REQUEST,e));o=Buffer.from(o,"utf-8")}if(A.setContentLength(o.length,!1),e.maxBodyLength>-1&&o.length>e.maxBodyLength)return r(new vE("Request body larger than maxBodyLength limit",vE.ERR_BAD_REQUEST,e))}const O=EE.toFiniteNumber(A.getContentLength());let R,N;EE.isArray(w)?(C=w[0],x=w[1]):C=x=w,o&&(S||C)&&(EE.isStream(o)||(o=G.default.Readable.from(o,{objectMode:!1})),o=G.default.pipeline([o,new uT({maxRate:EE.toFiniteNumber(C)})],EE.noop),S&&o.on("progress",PT(o,AT(O,_T(ST(S),!1,3))))),e.auth&&(R=(e.auth.username||"")+":"+(e.auth.password||"")),!R&&b.username&&(R=b.username+":"+b.password),R&&A.delete("authorization");try{N=RE(b.pathname+b.search,e.params,e.paramsSerializer).replace(/^\?/,"")}catch(t){const n=new Error(t.message);return n.config=e,n.url=e.url,n.exists=!0,r(n)}A.set("Accept-Encoding","gzip, compress, deflate"+(CT?", br":""),!1);const P={path:N,method:h,headers:A.toJSON(),agents:{http:e.httpAgent,https:e.httpsAgent},auth:R,protocol:_,family:s,beforeRedirect:LT,beforeRedirects:{},http2Options:c};let I;!EE.isUndefined(i)&&(P.lookup=i),e.socketPath?P.socketPath=e.socketPath:(P.hostname=b.hostname.startsWith("[")?b.hostname.slice(1,-1):b.hostname,P.port=b.port,DT(P,e.proxy,_+"//"+b.hostname+(b.port?":"+b.port:"")+P.path));const L=RT.test(P.protocol);if(P.agent=L?e.httpsAgent:e.httpAgent,m?I=BT:e.transport?I=e.transport:0===e.maxRedirects?I=L?K.default:$.default:(e.maxRedirects&&(P.maxRedirects=e.maxRedirects),e.beforeRedirect&&(P.beforeRedirects.config=e.beforeRedirect),I=L?OT:xT),e.maxBodyLength>-1?P.maxBodyLength=e.maxBodyLength:P.maxBodyLength=1/0,e.insecureHTTPParser&&(P.insecureHTTPParser=e.insecureHTTPParser),p=I.request(P,function(n){if(p.destroyed)return;const o=[n],i=EE.toFiniteNumber(n.headers["content-length"]);if(k||x){const e=new uT({maxRate:EE.toFiniteNumber(x)});k&&e.on("progress",PT(e,AT(i,_T(ST(k),!0,3)))),o.push(e)}let s=n;const a=n.req||p;if(!1!==e.decompress&&n.headers["content-encoding"])switch("HEAD"!==h&&204!==n.statusCode||delete n.headers["content-encoding"],(n.headers["content-encoding"]||"").toLowerCase()){case"gzip":case"x-gzip":case"compress":case"x-compress":o.push(J.default.createUnzip(kT)),delete n.headers["content-encoding"];break;case"deflate":o.push(new vT),o.push(J.default.createUnzip(kT)),delete n.headers["content-encoding"];break;case"br":CT&&(o.push(J.default.createBrotliDecompress(wT)),delete n.headers["content-encoding"])}s=o.length>1?G.default.pipeline(o,EE.noop):o[0];const c={status:n.statusCode,statusText:n.statusMessage,headers:new ZE(n.headers),config:e,request:a};if("stream"===l)c.data=s,nT(t,r,c);else{const n=[];let o=0;s.on("data",function(t){n.push(t),o+=t.length,e.maxContentLength>-1&&o>e.maxContentLength&&(d=!0,s.destroy(),E(new vE("maxContentLength size of "+e.maxContentLength+" exceeded",vE.ERR_BAD_RESPONSE,e,a)))}),s.on("aborted",function(){if(d)return;const t=new vE("stream has been aborted",vE.ERR_BAD_RESPONSE,e,a);s.destroy(t),r(t)}),s.on("error",function(t){p.destroyed||r(vE.from(t,null,e,a))}),s.on("end",function(){try{let e=1===n.length?n[0]:Buffer.concat(n);"arraybuffer"!==l&&(e=e.toString(u),u&&"utf8"!==u||(e=EE.stripBOM(e))),c.data=e}catch(t){return r(vE.from(t,null,e,c.request,c))}nT(t,r,c)})}g.once("abort",e=>{s.destroyed||(s.emit("error",e),s.destroy())})}),g.once("abort",e=>{p.close?p.close():p.destroy(e)}),p.on("error",function(t){r(vE.from(t,null,e,p))}),p.on("socket",function(e){e.setKeepAlive(!0,6e4)}),e.timeout){const t=parseInt(e.timeout,10);if(Number.isNaN(t))return void E(new vE("error trying to parse `config.timeout` to int",vE.ERR_BAD_OPTION_VALUE,e,p));p.setTimeout(t,function(){if(f)return;let t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const r=e.transitional||PE;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),E(new vE(t,r.clarifyTimeoutError?vE.ETIMEDOUT:vE.ECONNABORTED,e,p))})}else p.setTimeout(0);if(EE.isStream(o)){let t=!1,r=!1;o.on("end",()=>{t=!0}),o.once("error",e=>{r=!0,p.destroy(e)}),o.on("close",()=>{t||r||E(new rT("Request stream has been aborted",e,p))}),o.pipe(p)}else o&&p.write(o),p.end()},new Promise((e,r)=>{let n,o;const i=(e,t)=>{o||(o=!0,n&&n(e,t))},s=e=>{i(e,!0),r(e)};t(t=>{i(t),e(t)},s,e=>n=e).catch(s)});var t},HT=zE.hasStandardBrowserEnv?((e,t)=>r=>(r=new URL(r,zE.origin),e.protocol===r.protocol&&e.host===r.host&&(t||e.port===r.port)))(new URL(zE.origin),zE.navigator&&/(msie|trident)/i.test(zE.navigator.userAgent)):()=>!0,jT=zE.hasStandardBrowserEnv?{write(e,t,r,n,o,i,s){if("undefined"==typeof document)return;const a=[`${e}=${encodeURIComponent(t)}`];EE.isNumber(r)&&a.push(`expires=${new Date(r).toUTCString()}`),EE.isString(n)&&a.push(`path=${n}`),EE.isString(o)&&a.push(`domain=${o}`),!0===i&&a.push("secure"),EE.isString(s)&&a.push(`SameSite=${s}`),document.cookie=a.join("; ")},read(e){if("undefined"==typeof document)return null;const t=document.cookie.match(new RegExp("(?:^|; )"+e+"=([^;]*)"));return t?decodeURIComponent(t[1]):null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read:()=>null,remove(){}};const qT=e=>e instanceof ZE?{...e}:e;function zT(e,t){t=t||{};const r={};function n(e,t,r,n){return EE.isPlainObject(e)&&EE.isPlainObject(t)?EE.merge.call({caseless:n},e,t):EE.isPlainObject(t)?EE.merge({},t):EE.isArray(t)?t.slice():t}function o(e,t,r,o){return EE.isUndefined(t)?EE.isUndefined(e)?void 0:n(void 0,e,0,o):n(e,t,0,o)}function i(e,t){if(!EE.isUndefined(t))return n(void 0,t)}function s(e,t){return EE.isUndefined(t)?EE.isUndefined(e)?void 0:n(void 0,e):n(void 0,t)}function a(r,o,i){return i in t?n(r,o):i in e?n(void 0,r):void 0}const c={url:i,method:i,data:i,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:a,headers:(e,t,r)=>o(qT(e),qT(t),0,!0)};return EE.forEach(Object.keys({...e,...t}),function(n){if("__proto__"===n||"constructor"===n||"prototype"===n)return;const i=EE.hasOwnProp(c,n)?c[n]:o,s=i(e[n],t[n],n);EE.isUndefined(s)&&i!==a||(r[n]=s)}),r}var GT=e=>{const t=zT({},e);let{data:r,withXSRFToken:n,xsrfHeaderName:o,xsrfCookieName:i,headers:s,auth:a}=t;if(t.headers=s=ZE.from(s),t.url=RE(oT(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),a&&s.set("Authorization","Basic "+btoa((a.username||"")+":"+(a.password?unescape(encodeURIComponent(a.password)):""))),EE.isFormData(r))if(zE.hasStandardBrowserEnv||zE.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if(EE.isFunction(r.getHeaders)){const e=r.getHeaders(),t=["content-type","content-length"];Object.entries(e).forEach(([e,r])=>{t.includes(e.toLowerCase())&&s.set(e,r)})}if(zE.hasStandardBrowserEnv&&(n&&EE.isFunction(n)&&(n=n(t)),n||!1!==n&&HT(t.url))){const e=o&&i&&jT.read(i);e&&s.set(o,e)}return t};var $T="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise(function(t,r){const n=GT(e);let o=n.data;const i=ZE.from(n.headers).normalize();let s,a,c,l,u,{responseType:h,onUploadProgress:f,onDownloadProgress:p}=n;function d(){l&&l(),u&&u(),n.cancelToken&&n.cancelToken.unsubscribe(s),n.signal&&n.signal.removeEventListener("abort",s)}let m=new XMLHttpRequest;function g(){if(!m)return;const n=ZE.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders());nT(function(e){t(e),d()},function(e){r(e),d()},{data:h&&"text"!==h&&"json"!==h?m.response:m.responseText,status:m.status,statusText:m.statusText,headers:n,config:e,request:m}),m=null}m.open(n.method.toUpperCase(),n.url,!0),m.timeout=n.timeout,"onloadend"in m?m.onloadend=g:m.onreadystatechange=function(){m&&4===m.readyState&&(0!==m.status||m.responseURL&&0===m.responseURL.indexOf("file:"))&&setTimeout(g)},m.onabort=function(){m&&(r(new vE("Request aborted",vE.ECONNABORTED,e,m)),m=null)},m.onerror=function(t){const n=t&&t.message?t.message:"Network Error",o=new vE(n,vE.ERR_NETWORK,e,m);o.event=t||null,r(o),m=null},m.ontimeout=function(){let t=n.timeout?"timeout of "+n.timeout+"ms exceeded":"timeout exceeded";const o=n.transitional||PE;n.timeoutErrorMessage&&(t=n.timeoutErrorMessage),r(new vE(t,o.clarifyTimeoutError?vE.ETIMEDOUT:vE.ECONNABORTED,e,m)),m=null},void 0===o&&i.setContentType(null),"setRequestHeader"in m&&EE.forEach(i.toJSON(),function(e,t){m.setRequestHeader(t,e)}),EE.isUndefined(n.withCredentials)||(m.withCredentials=!!n.withCredentials),h&&"json"!==h&&(m.responseType=n.responseType),p&&([c,u]=_T(p,!0),m.addEventListener("progress",c)),f&&m.upload&&([a,l]=_T(f),m.upload.addEventListener("progress",a),m.upload.addEventListener("loadend",l)),(n.cancelToken||n.signal)&&(s=t=>{m&&(r(!t||t.type?new rT(null,e,m):t),m.abort(),m=null)},n.cancelToken&&n.cancelToken.subscribe(s),n.signal&&(n.signal.aborted?s():n.signal.addEventListener("abort",s)));const y=sT(n.url);y&&-1===zE.protocols.indexOf(y)?r(new vE("Unsupported protocol "+y+":",vE.ERR_BAD_REQUEST,e)):m.send(o||null)})};var KT=(e,t)=>{const{length:r}=e=e?e.filter(Boolean):[];if(t||r){let r,n=new AbortController;const o=function(e){if(!r){r=!0,s();const t=e instanceof Error?e:this.reason;n.abort(t instanceof vE?t:new rT(t instanceof Error?t.message:t))}};let i=t&&setTimeout(()=>{i=null,o(new vE(`timeout of ${t}ms exceeded`,vE.ETIMEDOUT))},t);const s=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(e=>{e.unsubscribe?e.unsubscribe(o):e.removeEventListener("abort",o)}),e=null)};e.forEach(e=>e.addEventListener("abort",o));const{signal:a}=n;return a.unsubscribe=()=>EE.asap(s),a}};const VT=function*(e,t){let r=e.byteLength;if(!t||r<t)return void(yield e);let n,o=0;for(;o<r;)n=o+t,yield e.slice(o,n),o=n},WT=async function*(e){if(e[Symbol.asyncIterator])return void(yield*e);const t=e.getReader();try{for(;;){const{done:e,value:r}=await t.read();if(e)break;yield r}}finally{await t.cancel()}},QT=(e,t,r,n)=>{const o=async function*(e,t){for await(const r of WT(e))yield*VT(r,t)}(e,t);let i,s=0,a=e=>{i||(i=!0,n&&n(e))};return new ReadableStream({async pull(e){try{const{done:t,value:n}=await o.next();if(t)return a(),void e.close();let i=n.byteLength;if(r){let e=s+=i;r(e)}e.enqueue(new Uint8Array(n))}catch(e){throw a(e),e}},cancel:e=>(a(e),o.return())},{highWaterMark:2})},{isFunction:YT}=EE,XT=(({Request:e,Response:t})=>({Request:e,Response:t}))(EE.global),{ReadableStream:JT,TextEncoder:ZT}=EE.global,ev=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},tv=e=>{e=EE.merge.call({skipUndefined:!0},XT,e);const{fetch:t,Request:r,Response:n}=e,o=t?YT(t):"function"==typeof fetch,i=YT(r),s=YT(n);if(!o)return!1;const a=o&&YT(JT),c=o&&("function"==typeof ZT?(l=new ZT,e=>l.encode(e)):async e=>new Uint8Array(await new r(e).arrayBuffer()));var l;const u=i&&a&&ev(()=>{let e=!1;const t=new r(zE.origin,{body:new JT,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),h=s&&a&&ev(()=>EE.isReadableStream(new n("").body)),f={stream:h&&(e=>e.body)};o&&["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!f[e]&&(f[e]=(t,r)=>{let n=t&&t[e];if(n)return n.call(t);throw new vE(`Response type '${e}' is not supported`,vE.ERR_NOT_SUPPORT,r)})});const p=async(e,t)=>{const n=EE.toFiniteNumber(e.getContentLength());return null==n?(async e=>{if(null==e)return 0;if(EE.isBlob(e))return e.size;if(EE.isSpecCompliantForm(e)){const t=new r(zE.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return EE.isArrayBufferView(e)||EE.isArrayBuffer(e)?e.byteLength:(EE.isURLSearchParams(e)&&(e+=""),EE.isString(e)?(await c(e)).byteLength:void 0)})(t):n};return async e=>{let{url:o,method:s,data:a,signal:c,cancelToken:l,timeout:d,onDownloadProgress:m,onUploadProgress:g,responseType:y,headers:E,withCredentials:T="same-origin",fetchOptions:v}=GT(e),b=t||fetch;y=y?(y+"").toLowerCase():"text";let _=KT([c,l&&l.toAbortSignal()],d),A=null;const S=_&&_.unsubscribe&&(()=>{_.unsubscribe()});let k;try{if(g&&u&&"get"!==s&&"head"!==s&&0!==(k=await p(E,a))){let e,t=new r(o,{method:"POST",body:a,duplex:"half"});if(EE.isFormData(a)&&(e=t.headers.get("content-type"))&&E.setContentType(e),t.body){const[e,r]=AT(k,_T(ST(g)));a=QT(t.body,65536,e,r)}}EE.isString(T)||(T=T?"include":"omit");const t=i&&"credentials"in r.prototype,c={...v,signal:_,method:s.toUpperCase(),headers:E.normalize().toJSON(),body:a,duplex:"half",credentials:t?T:void 0};A=i&&new r(o,c);let l=await(i?b(A,v):b(o,c));const d=h&&("stream"===y||"response"===y);if(h&&(m||d&&S)){const e={};["status","statusText","headers"].forEach(t=>{e[t]=l[t]});const t=EE.toFiniteNumber(l.headers.get("content-length")),[r,o]=m&&AT(t,_T(ST(m),!0))||[];l=new n(QT(l.body,65536,r,()=>{o&&o(),S&&S()}),e)}y=y||"text";let w=await f[EE.findKey(f,y)||"text"](l,e);return!d&&S&&S(),await new Promise((t,r)=>{nT(t,r,{data:w,headers:ZE.from(l.headers),status:l.status,statusText:l.statusText,config:e,request:A})})}catch(t){if(S&&S(),t&&"TypeError"===t.name&&/Load failed|fetch/i.test(t.message))throw Object.assign(new vE("Network Error",vE.ERR_NETWORK,e,A,t&&t.response),{cause:t.cause||t});throw vE.from(t,t&&t.code,e,A,t&&t.response)}}},rv=new Map,nv=e=>{let t=e&&e.env||{};const{fetch:r,Request:n,Response:o}=t,i=[n,o,r];let s,a,c=i.length,l=rv;for(;c--;)s=i[c],a=l.get(s),void 0===a&&l.set(s,a=c?new Map:tv(t)),l=a;return a};nv();const ov={http:UT,xhr:$T,fetch:{get:nv}};EE.forEach(ov,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}});const iv=e=>`- ${e}`,sv=e=>EE.isFunction(e)||null===e||!1===e;var av={getAdapter:function(e,t){e=EE.isArray(e)?e:[e];const{length:r}=e;let n,o;const i={};for(let s=0;s<r;s++){let r;if(n=e[s],o=n,!sv(n)&&(o=ov[(r=String(n)).toLowerCase()],void 0===o))throw new vE(`Unknown adapter '${r}'`);if(o&&(EE.isFunction(o)||(o=o.get(t))))break;i[r||"#"+s]=o}if(!o){const e=Object.entries(i).map(([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build"));let t=r?e.length>1?"since :\n"+e.map(iv).join("\n"):" "+iv(e[0]):"as no adapter specified";throw new vE("There is no suitable adapter to dispatch the request "+t,"ERR_NOT_SUPPORT")}return o},adapters:ov};function cv(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new rT(null,e)}function lv(e){cv(e),e.headers=ZE.from(e.headers),e.data=eT.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);return av.getAdapter(e.adapter||KE.adapter,e)(e).then(function(t){return cv(e),t.data=eT.call(e,e.transformResponse,t),t.headers=ZE.from(t.headers),t},function(t){return tT(t)||(cv(e),t&&t.response&&(t.response.data=eT.call(e,e.transformResponse,t.response),t.response.headers=ZE.from(t.response.headers))),Promise.reject(t)})}const uv={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{uv[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const hv={};uv.transitional=function(e,t,r){function n(e,t){return"[Axios v"+iT+"] Transitional option '"+e+"'"+t+(r?". "+r:"")}return(r,o,i)=>{if(!1===e)throw new vE(n(o," has been removed"+(t?" in "+t:"")),vE.ERR_DEPRECATED);return t&&!hv[o]&&(hv[o]=!0,console.warn(n(o," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(r,o,i)}},uv.spelling=function(e){return(t,r)=>(console.warn(`${r} is likely a misspelling of ${e}`),!0)};var fv={assertOptions:function(e,t,r){if("object"!=typeof e)throw new vE("options must be an object",vE.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let o=n.length;for(;o-- >0;){const i=n[o],s=t[i];if(s){const t=e[i],r=void 0===t||s(t,i,e);if(!0!==r)throw new vE("option "+i+" must be "+r,vE.ERR_BAD_OPTION_VALUE);continue}if(!0!==r)throw new vE("Unknown option "+i,vE.ERR_BAD_OPTION)}},validators:uv};const pv=fv.validators;class dv{constructor(e){this.defaults=e||{},this.interceptors={request:new NE,response:new NE}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t={};Error.captureStackTrace?Error.captureStackTrace(t):t=new Error;const r=t.stack?t.stack.replace(/^.+\n/,""):"";try{e.stack?r&&!String(e.stack).endsWith(r.replace(/^.+\n.+\n/,""))&&(e.stack+="\n"+r):e.stack=r}catch(e){}}throw e}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=zT(this.defaults,t);const{transitional:r,paramsSerializer:n,headers:o}=t;void 0!==r&&fv.assertOptions(r,{silentJSONParsing:pv.transitional(pv.boolean),forcedJSONParsing:pv.transitional(pv.boolean),clarifyTimeoutError:pv.transitional(pv.boolean),legacyInterceptorReqResOrdering:pv.transitional(pv.boolean)},!1),null!=n&&(EE.isFunction(n)?t.paramsSerializer={serialize:n}:fv.assertOptions(n,{encode:pv.function,serialize:pv.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),fv.assertOptions(t,{baseUrl:pv.spelling("baseURL"),withXsrfToken:pv.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let i=o&&EE.merge(o.common,o[t.method]);o&&EE.forEach(["delete","get","head","post","put","patch","common"],e=>{delete o[e]}),t.headers=ZE.concat(i,o);const s=[];let a=!0;this.interceptors.request.forEach(function(e){if("function"==typeof e.runWhen&&!1===e.runWhen(t))return;a=a&&e.synchronous;const r=t.transitional||PE;r&&r.legacyInterceptorReqResOrdering?s.unshift(e.fulfilled,e.rejected):s.push(e.fulfilled,e.rejected)});const c=[];let l;this.interceptors.response.forEach(function(e){c.push(e.fulfilled,e.rejected)});let u,h=0;if(!a){const e=[lv.bind(this),void 0];for(e.unshift(...s),e.push(...c),u=e.length,l=Promise.resolve(t);h<u;)l=l.then(e[h++],e[h++]);return l}u=s.length;let f=t;for(;h<u;){const e=s[h++],t=s[h++];try{f=e(f)}catch(e){t.call(this,e);break}}try{l=lv.call(this,f)}catch(e){return Promise.reject(e)}for(h=0,u=c.length;h<u;)l=l.then(c[h++],c[h++]);return l}getUri(e){return RE(oT((e=zT(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls),e.params,e.paramsSerializer)}}EE.forEach(["delete","get","head","options"],function(e){dv.prototype[e]=function(t,r){return this.request(zT(r||{},{method:e,url:t,data:(r||{}).data}))}}),EE.forEach(["post","put","patch"],function(e){function t(t){return function(r,n,o){return this.request(zT(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:r,data:n}))}}dv.prototype[e]=t(),dv.prototype[e+"Form"]=t(!0)});var mv=dv;class gv{constructor(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise(function(e){t=e});const r=this;this.promise.then(e=>{if(!r._listeners)return;let t=r._listeners.length;for(;t-- >0;)r._listeners[t](e);r._listeners=null}),this.promise.then=e=>{let t;const n=new Promise(e=>{r.subscribe(e),t=e}).then(e);return n.cancel=function(){r.unsubscribe(t)},n},e(function(e,n,o){r.reason||(r.reason=new rT(e,n,o),t(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){const e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;const t=new gv(function(t){e=t});return{token:t,cancel:e}}}var yv=gv;const Ev={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(Ev).forEach(([e,t])=>{Ev[t]=e});var Tv=Ev;const vv=function e(t){const r=new mv(t),n=Py(mv.prototype.request,r);return EE.extend(n,mv.prototype,r,{allOwnKeys:!0}),EE.extend(n,r,null,{allOwnKeys:!0}),n.create=function(r){return e(zT(t,r))},n}(KE);vv.Axios=mv,vv.CanceledError=rT,vv.CancelToken=yv,vv.isCancel=tT,vv.VERSION=iT,vv.toFormData=kE,vv.AxiosError=vE,vv.Cancel=vv.CanceledError,vv.all=function(e){return Promise.all(e)},vv.spread=function(e){return function(t){return e.apply(null,t)}},vv.isAxiosError=function(e){return EE.isObject(e)&&!0===e.isAxiosError},vv.mergeConfig=zT,vv.AxiosHeaders=ZE,vv.formToJSON=e=>GE(EE.isHTMLForm(e)?new FormData(e):e),vv.getAdapter=av.getAdapter,vv.HttpStatusCode=Tv,vv.default=vv;var bv=vv;function _v(e){return e}function Av(e){var t=[];if(e)return Array.isArray(e)?e:("object"==typeof e&&Object.keys(e).forEach(function(r){"number"==typeof r&&(t[r]=e[r])}),t)}function Sv(e){if(bv.isCancel(e))return Promise.reject(e);var t=wv(e)||{};if(t.currentRetryAttempt=t.currentRetryAttempt||0,t.retry="number"==typeof t.retry?t.retry:3,t.retryDelay="number"==typeof t.retryDelay?t.retryDelay:100,t.instance=t.instance||bv,t.backoffType=t.backoffType||"exponential",t.httpMethodsToRetry=Av(t.httpMethodsToRetry)||["GET","HEAD","PUT","OPTIONS","DELETE"],t.noResponseRetries="number"==typeof t.noResponseRetries?t.noResponseRetries:2,t.checkRetryAfter="boolean"!=typeof t.checkRetryAfter||t.checkRetryAfter,t.maxRetryAfter="number"==typeof t.maxRetryAfter?t.maxRetryAfter:3e5,t.statusCodesToRetry=Av(t.statusCodesToRetry)||[[100,199],[429,429],[500,599]],e.config=e.config||{},e.config.raxConfig=Object.assign({},t),!(t.shouldRetry||kv)(e))return Promise.reject(e);var r=new Promise(function(r,n){var o=0;if(t.checkRetryAfter&&e.response&&e.response.headers["retry-after"]){var i=function(e){var t=Number(e);if(!Number.isNaN(t))return 1e3*t;var r=Date.parse(e);return Number.isNaN(r)?void 0:r-Date.now()}(e.response.headers["retry-after"]);if(!(i&&i>0&&i<=t.maxRetryAfter))return n(e);o=i}e.config.raxConfig.currentRetryAttempt+=1;var s=e.config.raxConfig.currentRetryAttempt;0===o&&(o="linear"===t.backoffType?1e3*s:"static"===t.backoffType?t.retryDelay:(Math.pow(2,s)-1)/2*1e3,"number"==typeof t.maxRetryDelay&&(o=Math.min(o,t.maxRetryDelay))),setTimeout(r,o)}),n=t.onRetryAttempt?Promise.resolve(t.onRetryAttempt(e)):Promise.resolve();return Promise.resolve().then(function(){return r}).then(function(){return n}).then(function(){return t.instance.request(e.config)})}function kv(e){var t=e.config.raxConfig;if(!t||0===t.retry)return!1;if(!e.response&&(t.currentRetryAttempt||0)>=t.noResponseRetries)return!1;if(!e.config.method||t.httpMethodsToRetry.indexOf(e.config.method.toUpperCase())<0)return!1;if(e.response&&e.response.status){for(var r=!1,n=0,o=t.statusCodesToRetry;n<o.length;n+=1){var i=o[n],s=e.response.status;if(s>=i[0]&&s<=i[1]){r=!0;break}}if(!r)return!1}return t.currentRetryAttempt=t.currentRetryAttempt||0,!(t.currentRetryAttempt>=t.retry)}function wv(e){if(e&&e.config)return e.config.raxConfig}var Cv,xv,Ov,Rv,Nv,Pv,Iv,Lv,Dv,Fv=Object.freeze({__proto__:null,attach:function(e){return(e=e||bv).interceptors.response.use(_v,Sv)},detach:function(e,t){(t=t||bv).interceptors.response.eject(e)},shouldRetryRequest:kv,getConfig:wv}),Mv=pe(Fv);Object.defineProperty(de,"__esModule",{value:!0});var Bv=U.default,Uv=br,Hv=Fr.exports,jv=Gr.exports,qv=Xn,zv=Po,Gv=Ds,$v=wc,Kv=Oc,Vv=Rc,Wv=Jc,Qv=Zc,Yv=el,Xv=tl,Jv=rl,Zv=q.default,eb=nl,tb=ol,rb=il,nb=sl,ob=al,ib=cl,sb=ul,ab=fl,cb=ml,lb=gl,ub=vl,hb=Ul,fb=Nu,pb=Lu,db=Du,mb=M.default,gb=Ny,yb=Mv,Eb=Ur.exports;function Tb(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var vb=Tb(Uv),bb=Tb(Hv),_b=Tb(jv),Ab=Tb(Gv),Sb=Tb($v),kb=Tb(Kv),wb=Tb(Zv),Cb=Tb(hb),xb=Tb(fb),Ob=Tb(mb),Rb=Tb(gb),Nb=Tb(yb),Pb=Tb(Eb);function Ib(e,t){return bb.default.encrypt(e,t).toString()}function Lb(e,t){try{return bb.default.decrypt(e,t).toString(_b.default)}catch{return""}}var Db=Object.freeze({__proto__:null,encrypt:Ib,decrypt:Lb});function Fb(e){return"string"==typeof e&&e.startsWith("@encrypted:")}var Mb={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",default:"light"},primaryColor:{type:"string",title:"Primary Color",format:"color",default:"#3c60ff"},expandLevel:{type:"integer",title:"Expand level",default:0},navs:{type:"array",title:"Nav configures",items:{type:"object",properties:{title:{title:"Label",type:"string"},url:{title:"Link",type:"string"}},required:["title","url"],additionalProperties:!1},default:[]}},default:{}},plugins:{type:"array",items:{type:"string"},default:[]},pluginsConfig:{type:"object",title:"Configuration for plugins",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:{}},release:{type:"object",title:"Release specific configurations",properties:{pathEncode:{type:"boolean",title:"Whether to encode the chapter path",default:!0}},default:{}},assistant:{type:"object",title:"AI Assistant configurations",properties:{token:{type:"string",title:"ThinkAI Token",encrypt:!0}},default:{}}},required:[]};class Bb{key;values;presetValues;schema;constructor(e,t,r,n){this.values=Bv.merge(e,n),this.presetValues=n,this.schema=t,this.key=r}setKey(e){this.key=e;const t=new vb.default({removeAdditional:!0,useDefaults:!0,allErrors:!0,unknownFormats:["color"]});t.addKeyword("encrypt",{validate:(t,r,n,o,i,s)=>(t&&Fb(r)&&i&&s&&Bv.set(i,s,Lb(r.substring(11),e)),!0),modifying:!0,errors:!1}),t.compile(this.schema)(this.values)}getValues(){return this.values}setValues(e){const t=new vb.default({removeAdditional:!0,useDefaults:!0,allErrors:!0,unknownFormats:"ignore"}).compile(this.schema);if(!t(e=Bv.cloneDeep(e)))for(const r of t.errors)e=Bv.omit(e,r.dataPath.substr(1).split("/"));this.values=e}getPresetValues(){return this.presetValues}getValue(e,t){return Bv.get(this.values,e,t)}setValue(e,t){return Bv.set(this.values,e,t)}toObject(){let e=Bv.cloneDeep(this.values);this.presetValues&&(e=Bv.omit(e,Bv.keys(this.presetValues)));const t=new vb.default({removeAdditional:!0,useDefaults:!0,allErrors:!0,unknownFormats:["color"]});return t.removeKeyword("default"),t.addKeyword("default",{validate:(e,t,r,n,o,i,s)=>(Bv.isEqual(e,t)&&(delete o[i],Bv.isEmpty(o)&&function(e,t){const r=[];let n=e;for(let e=0;e<t.length-1;e++)r.push(n),n=n[t[e]];for(let e=t.length-2;e>=0;e--)Bv.isEmpty(r[e][t[e]])&&delete r[e][t[e]]}(s,Bv.toPath(n.substring(1)))),!0),modifying:!0,errors:!1}),t.addKeyword("encrypt",{validate:(e,t,r,n,o,i)=>(this.key&&e&&!Fb(t)&&o&&i&&Bv.set(o,i,`@encrypted:${Ib(t,this.key)}`),!0),modifying:!0,errors:!1}),t.compile(this.schema)(e),e}toText(){const e=this.toObject();let t="";return Bv.isEmpty(e)||(t=JSON.stringify(e,null,4)),t}static createFromObject(e,t,r,n){const o=new vb.default({removeAdditional:!0,useDefaults:!0,allErrors:!0,unknownFormats:["color"]});r&&o.addKeyword("encrypt",{validate:(e,t,n,o,i,s)=>(e&&Fb(t)&&i&&s&&Bv.set(i,s,Lb(t.substring(11),r)),!0),modifying:!0,errors:!1});const i=o.compile(t);if(!i(e))for(const t of i.errors)e=Bv.omit(e,t.dataPath.substring(1).split("/"));return new this(e,t,r,n)}}class Ub extends Bb{static file="book.json";static schema=Mb;pluginsConfig={};presetPlugins={};setPresetPlugins(e){this.presetPlugins=e}getPresetPluginConfig(e){return this.presetPlugins[e]}getPlugins(){return Array.from(new Set([...this.getValue("plugins"),...Object.keys(this.presetPlugins)]))}getPluginConfig(e,t){if(!this.pluginsConfig[e]){const r=this.getValue(["pluginsConfig",e],{});this.pluginsConfig[e]=Bb.createFromObject(Bv.cloneDeep(r),t,`${this.key}:${e}`,this.presetPlugins[e])}return this.pluginsConfig[e]}setPluginConfig(e,t){const r=t.toObject();Bv.isEmpty(r)?Bv.unset(this.values,["pluginsConfig",e]):this.setValue(["pluginsConfig",e],r),delete this.pluginsConfig[e]}static createFromObject(e){return super.createFromObject(e,Ub.schema)}}const Hb={tokenize:function(e,t,r){function n(t){return t===Xv.codes.rightParenthesis?h(t):rb.factoryDestination(e,o,r,Yv.types.resourceDestination,Yv.types.resourceDestinationLiteral,Yv.types.resourceDestinationLiteralMarker,Yv.types.resourceDestinationRaw,Yv.types.resourceDestinationString,Jv.constants.linkResourceDestinationBalanceMax)(t)}function o(t){return nb.markdownLineEndingOrSpace(t)?tb.factoryWhitespace(e,i)(t):h(t)}function i(t){return t===Xv.codes.quotationMark||t===Xv.codes.apostrophe||t===Xv.codes.leftParenthesis?ib.factoryTitle(e,tb.factoryWhitespace(e,s),r,Yv.types.resourceTitle,Yv.types.resourceTitleMarker,Yv.types.resourceTitleString)(t):s(t)}function s(t){return t===Xv.codes.equalsTo?(e.enter("resourceSize"),e.enter("resourceSizeMarker"),e.consume(t),e.exit("resourceSizeMarker"),a):h(t)}function a(t){return t===Xv.codes.lowercaseX?(e.enter("blockQuoteTypeMarker"),e.consume(t),e.exit("blockQuoteTypeMarker"),l):t===Xv.codes.rightParenthesis||nb.markdownLineEndingOrSpace(t)?(e.exit("resourceSize"),tb.factoryWhitespace(e,h)(t)):(e.enter("resourceSizeWidth"),e.enter(Yv.types.chunkString,{contentType:"string"}),c(t))}function c(t){return t===Xv.codes.rightParenthesis||nb.markdownLineEndingOrSpace(t)?(e.exit(Yv.types.chunkString),e.exit("resourceSizeWidth"),e.exit("resourceSize"),tb.factoryWhitespace(e,h)(t)):t===Xv.codes.lowercaseX?(e.exit(Yv.types.chunkString),e.exit("resourceSizeWidth"),e.enter("resourceSizeMarker"),e.consume(t),e.exit("resourceSizeMarker"),l):(e.consume(t),c)}function l(t){return t===Xv.codes.rightParenthesis||nb.markdownLineEndingOrSpace(t)?(e.exit("resourceSize"),tb.factoryWhitespace(e,h)(t)):(e.enter("resourceSizeHeight"),e.enter(Yv.types.chunkString,{contentType:"string"}),u(t))}function u(t){return t===Xv.codes.rightParenthesis||nb.markdownLineEndingOrSpace(t)?(e.exit(Yv.types.chunkString),e.exit("resourceSizeHeight"),e.exit("resourceSize"),tb.factoryWhitespace(e,h)(t)):(e.consume(t),u)}function h(n){return n===Xv.codes.rightParenthesis?(e.enter(Yv.types.resourceMarker),e.consume(n),e.exit(Yv.types.resourceMarker),e.exit(Yv.types.resource),t):r(n)}return function(t){return e.enter(Yv.types.resource),e.enter(Yv.types.resourceMarker),e.consume(t),e.exit(Yv.types.resourceMarker),tb.factoryWhitespace(e,n)}}},jb={tokenize:function(e,t,r){const n=this;function o(e){return n.parser.defined.includes(eb.normalizeIdentifier(n.sliceSerialize(n.events[n.events.length-1][1]).slice(1,-1)))?t(e):r(e)}return function(t){return wb.default.strictEqual(t,Xv.codes.leftSquareBracket,"expected left bracket"),ob.factoryLabel.call(n,e,o,r,Yv.types.reference,Yv.types.referenceMarker,Yv.types.referenceString)(t)}}},qb={tokenize:function(e,t,r){function n(n){return 93===n?(e.enter(Yv.types.referenceMarker),e.consume(n),e.exit(Yv.types.referenceMarker),e.exit(Yv.types.reference),t):r(n)}return function(t){return e.enter(Yv.types.reference),e.enter(Yv.types.referenceMarker),e.consume(t),e.exit(Yv.types.referenceMarker),n}}};var zb={name:"labelEnd",tokenize:function(e,t,r){const n=this;let o,i,s=n.events.length;for(;s--;)if((n.events[s][1].type===Yv.types.labelImage||n.events[s][1].type===Yv.types.labelLink)&&!n.events[s][1]._balanced){o=n.events[s][1];break}function a(e){return o._balanced=!0,r(e)}function c(r){return r===Xv.codes.leftParenthesis?e.attempt(Hb,t,i?t:a)(r):r===Xv.codes.leftSquareBracket?e.attempt(jb,t,i?e.attempt(qb,t,a):a)(r):i?t(r):a(r)}return function(t){return wb.default(t===Xv.codes.rightSquareBracket,"expected `]`"),o?o._inactive?a(t):(i=n.parser.defined.indexOf(eb.normalizeIdentifier(n.sliceSerialize({start:o.end,end:n.now()})))>-1,e.enter(Yv.types.labelEnd),e.enter(Yv.types.labelMarker),e.consume(t),e.exit(Yv.types.labelMarker),e.exit(Yv.types.labelEnd),c):r(t)}},resolveTo:Qv.labelEnd.resolveTo,resolveAll:Qv.labelEnd.resolveAll};const Gb=(e,t,r,n)=>{const o=Wv.image(e,t,r,n);return e.width||e.height?o.replace(/\)$/,` =${e.width||""}${e.height?`x${e.height}`:""})`):o};Gb.peek=Wv.image.peek;const $b=e=>{let t;switch(e){case"right":t="--: ";break;case"center":t=":-: ";break;default:t=""}return t},Kb={tokenize:function(e,t,r){function n(t){return t===Xv.codes.rightSquareBracket?r(t):(e.enter("blockQuoteType"),e.enter(Yv.types.chunkString,{contentType:"string"}),o(t))}function o(t){return t===Xv.codes.rightSquareBracket?(e.exit(Yv.types.chunkString),e.exit("blockQuoteType"),e.enter("blockQuoteTypeMarker"),e.consume(t),e.exit("blockQuoteTypeMarker"),i):nb.markdownLineEndingOrSpace(t)||!nb.asciiAlpha(t)?r(t):(e.consume(t),o)}function i(e){return e===Xv.codes.leftParenthesis?r(e):t(e)}return function(t){return e.enter("blockQuoteTypeMarker"),e.consume(t),e.exit("blockQuoteTypeMarker"),n}},partial:!0},Vb={name:"blockQuote",tokenize:function(e,t,r){const n=this;return function(t){if(t===Xv.codes.greaterThan){const r=n.containerState;return wb.default(r,"expected `containerState` to be defined in container"),r.open||(e.enter(Yv.types.blockQuote,{_container:!0}),r.open=!0),e.enter(Yv.types.blockQuotePrefix),e.enter(Yv.types.blockQuoteMarker),e.consume(t),e.exit(Yv.types.blockQuoteMarker),lb.factorySpace(e,o,Yv.types.whitespace)}return r(t)};function o(t){return t===Xv.codes.leftSquareBracket?e.attempt(Kb,i,i)(t):i(t)}function i(r){return nb.markdownSpace(r)?(e.enter(Yv.types.blockQuotePrefixWhitespace),e.consume(r),e.exit(Yv.types.blockQuotePrefixWhitespace),e.exit(Yv.types.blockQuotePrefix),t):(e.exit(Yv.types.blockQuotePrefix),t(r))}},continuation:{tokenize:function(e,t,r){return lb.factorySpace(e,e.attempt(Vb,t,r),Yv.types.linePrefix,this.parser.constructs.disable?.null?.includes("codeIndented")?void 0:Jv.constants.tabSize)}},exit:Qv.blockQuote.exit},Wb="blankLine",Qb="blankLineSequence",Yb={name:"blankLine",tokenize:(e,t,r)=>{let n;const o=t=>t===n?(e.consume(t),o):(e.exit(Qb),i(t)),i=s=>s===n?(e.enter(Qb),o(s)):nb.markdownSpace(s)?lb.factorySpace(e,i,Yv.types.whitespace)(s):s===Xv.codes.eof||nb.markdownLineEnding(s)?(e.exit(Wb),t(s)):r(s);return t=>(wb.default(t===Xv.codes.caret,"expected `^`"),e.enter(Wb),n=t,i(t))}},Xb=(e,t="text")=>{let r="";return sb.visit(e,t,function(e){r+=e.value}),r},Jb=/^\[toc(?:=(\d)(?:,(\d))?)?]$/im,Zb=zv.unified().use(Ab.default).use(function(){const e=this.data();e.micromarkExtensions=[],e.fromMarkdownExtensions=[],e.toMarkdownExtensions=[],e.toHastExtensions=[]}).use(xb.default).use(Cb.default,["yaml"]).use(Sb.default).use(kb.default).use(pb.remarkHeadingId).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){sb.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 o={type:"xBlock",name:n[1],parameter:n[3]||"",value:e.value,position:e.position};r.children.splice(t,1,o)}}else if((e=>"inlineCode"===e.type)(e)){const n=/^([^\s]+)\s(.*?)\s\1$/.exec(e.value);if(n){const o={type:"xInline",name:n[1],value:n[2],position:e.position};r.children.splice(t,1,o)}}})}}).use(function(){const e=this.data();e.micromarkExtensions.push({text:{[Xv.codes.rightSquareBracket]:zb}}),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:Gb}}),e.toHastExtensions.push({image:(e,t)=>{const r={src:Vv.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,n)=>{const o=ab.paragraph(e,t,r,n);return $b(e.align)+o},heading:(e,t,r,n)=>cb.heading(e,t,r,n).replace(/^#+\s/,`$&${$b(e.align)}`)}}),function(e){sb.visit(e,(e,t,r)=>{if((e=>"paragraph"===e.type||"heading"===e.type)(e)){const t=qv.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,n)=>{const o=ub.blockquote(e,t,r,n);return e.variant?o.replace(/(^|\s+)>\s/,`$1> [${e.variant}] `):o}}}),e.micromarkExtensions.push({document:{[Xv.codes.greaterThan]:Vb}}),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){sb.visit(e,"blockquote",e=>{e.variant&&(e.data={...e.data,hProperties:{className:e.variant}})})}}).use(function(){const e=this.data();e.toHastExtensions.push({blankLine:e=>e({},"p",[e({},"br")])}),e.micromarkExtensions.push({flow:{[Xv.codes.caret]:Yb}}),e.toMarkdownExtensions.push({handlers:{blankLine:()=>"^"}}),e.fromMarkdownExtensions.push({enter:{blankLine:function(e){this.enter({type:"blankLine"},e)}},exit:{blankLine:function(e){this.exit(e)}}})}).use(function(){return function(e){sb.visit(e,(e,t,r)=>{if(r&&"root"===r.type&&null!==t&&Xb(e).match(Jb))return r.children.splice(t,1),[sb.SKIP,t]})}});function e_(e){const t=[];for(const r of e.children){const e=r.children,n=qv.select("paragraph:first-child>*",r);if(!n)continue;const o=Xb(n);if(!o)continue;let i="";n.url&&(i=decodeURI(n.url),i.match(/[\\:*?"<>|]/)&&(i=""));let s={title:o,ref:i};if(e.length>1){const t=e[e.length-1];db.is(t,"list")&&(s.children=e_(t))}t.push(s)}return t}const t_=Zb();class r_{data;constructor(e=[]){this.data="string"==typeof e?e.split(".").map(e=>parseInt(e,10)):e}getRoot(){return new r_(this.data.slice(0,1))}getParent(){return new r_(this.data.slice(0,-1))}createChild(e){return new r_(this.data.concat(e))}isDescendant(e){return e.toString().startsWith(`${this.toString()}.`)}getNext(){const e=[...this.data];return e[e.length-1]++,new r_(e)}getDepth(){return this.data.length-1}eq(e){return this.toString()===e.toString()}getLeafIndex(){return this.data[this.data.length-1]-1}toString(e){return e?this.data.slice(e.data.length).join("."):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,o=t.data[r]||0;if(n>o)return 1;if(o>n)return-1}return 0}}class n_{level;title;ref;path;children;metadata;hasPath=!1;constructor({title:e,ref:t="",path:r,children:n=[],metadata:o}){this.title=e,this.ref=t,r?(this.hasPath=!0,this.path=r):this.path=t?mb.posix.format({...mb.posix.parse(t),ext:".html",base:""}):"",this.children=n,this.level=new r_,this.metadata=o}getMetadata(e,t){return this.metadata?Bv.get(this.metadata,e,t):t}setMetadata(e,t){this.metadata||(this.metadata={}),Bv.set(this.metadata,e,t)}getLevel(){return this.level}getTitle(){return this.title}getRef(){return this.ref}getPath(){return this.path}getArticles(){return this.children}getDescendants(){const e=[];return n_.findArticle(this,t=>(e.push(t),!1)),e}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))}toObject(){const e=this.children.map(function(e){return e.toObject()});return{title:this.title,ref:this.ref,path:this.hasPath?this.path:void 0,metadata:this.metadata,children:Bv.isEmpty(e)?void 0:e}}static findArticle(e,t){return e.getArticles().reduce((e,r)=>e||(t(r)?r:n_.findArticle(r,t)),void 0)}static createFromObject(e){const t=e.children?.filter(e=>!!e.title).map(e=>n_.createFromObject(e));return new n_({...e,children:t})}}class o_{level;title;articles;metadata;constructor(e,t=[],r){this.level=new r_,this.title=e,this.articles=t,this.metadata=r}getMetadata(e,t){return this.metadata?Bv.get(this.metadata,e,t):t}getLevel(){return this.level}getTitle(){return this.title}getArticles(){return this.articles}getFirstArticle(){return n_.findArticle(this,()=>!0)}getDescendants(){const e=[];return n_.findArticle(this,t=>(e.push(t),!1)),e}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))}toText(){let e="";return n_.findArticle(this,t=>{const r=t.ref?`[${t.title}](${t.ref.replace(/\s/g,"%20")})`:t.title;return e+=`${Bv.repeat(" ",t.getDepth()-1)}* ${r}\n`,!1}),e}toObject(){const e=this.articles.map(function(e){return e.toObject()});return{title:this.title,metadata:this.metadata,articles:Bv.isEmpty(e)?void 0:e}}static createFromObject(e){const t=e.articles?.filter(e=>!!e.title).map(e=>n_.createFromObject(e));return new o_(e.title,t,e.metadata)}}class i_{static file={json:"SUMMARY.json",markdown:"SUMMARY.md"};parts;json;constructor(e=[],t=!1){this.parts=e,this.json=t,this.indexLevels()}insertPart(e,t){if(e instanceof o_||(e=o_.createFromObject(e)),this.isEmpty())this.parts=[e];else{const r=t?t.getLeafIndex():this.parts.length;this.parts.splice(r,0,e)}this.indexLevels()}updatePart(e,t){const r=this.getByLevel(e);r instanceof o_&&(Bv.isFunction(t)?t(r):(r.title=t.title,r.metadata=t.metadata))}removePart(e){const t=e.getLeafIndex();this.parts.splice(t,1),0===this.parts.length&&(this.parts=[new o_("")]),this.indexLevels()}insertArticle(e,t){e instanceof n_||(e=n_.createFromObject(e));const r=this.getParent(t);if(!r)return;const n=r.getArticles(),o=t.getLeafIndex();n.splice(o,0,e),r.indexLevels()}updateArticle(e,t){const r=this.getByLevel(e);r instanceof n_&&(Bv.isFunction(t)?t(r):(r.title=t.title,r.ref=t.ref,r.metadata=t.metadata))}removeArticle(e){const t=this.getParent(e);if(!t)return;const r=t.getArticles(),n=e.getLeafIndex();r.splice(n,1),t.indexLevels()}toText(){let e="";if(1!==this.parts.length||this.parts[0].title)for(let t of this.parts)e+=`## ${t.title}`,e+="\n",e+=t.toText(),e+="\n";else e+=this.parts[0].toText();return e}hasMetadata(){let e=!1;return this.getArticle(t=>!!e||!Bv.isEmpty(t.metadata)&&(e=!0,!0),t=>(Bv.isEmpty(t.metadata)||(e=!0),!0)),e}isJson(){return this.json}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,t){return this.parts.reduce((r,n)=>r||(!t||t(n)?n_.findArticle(n,e):void 0),void 0)}getArticlePart(e){const t=e.getLevel().getRoot();return this.getByLevel(t)}getFirstPath(){const e=this.getArticle(e=>!!e.getPath());if(e)return e.getPath()}getByLevel(e){const t=t=>t.getLevel().eq(e);return this.parts.reduce((e,r)=>e||(t(r)?r:n_.findArticle(r,t)),void 0)}getFirstArticle(){return this.getArticle(()=>!0)}getNextArticle(e){const t=e instanceof n_?e.getLevel():e;let r=!1;return this.getArticle(e=>!!r||(r=e.getLevel()==t,!1))}getPrevArticle(e){const t=e instanceof n_?e.getLevel():e;let r;return this.getArticle(e=>e.getLevel()==t||(r=e,!1)),r}getParent(e){const t=(e instanceof n_?e.getLevel():e).getParent();if(t)return this.getByLevel(t)}indexLevels(){for(const[e,t]of this.parts.entries()){const r=new r_(String(e+1));t.indexLevels(r)}}isSinglePart(){return 1===this.parts.length&&!this.parts[0].title}isEmpty(){return this.isSinglePart()?0===this.parts[0].articles.length:0===this.parts.length}toObject(){return this.parts.map(function(e){return e.toObject()})}static createFromObject(e){return new i_(e.map(e=>o_.createFromObject(e)),!0)}static createFromText(e){const t=function(e){const t=t_.parse(e),r=[];let n;for(const e of t.children)if(db.is(e,"heading")&&[2,3].includes(e.depth)&&(n&&r.push(n),n={title:Xb(e).trim()}),db.is(e,"list")){const t=e_(e);n?n.articles=(n.articles||[]).concat(t):n={title:"",articles:t}}return n?r.push(n):r.push({title:""}),r}(e);return new i_(t.map(e=>o_.createFromObject(e)))}static create(e){return"object"==typeof e?i_.createFromObject(e):i_.createFromText(e)}}class s_{host;preset;constructor({host:e,preset:t}){this.host=e,this.preset=t}getBuyUrl(e,t){return`${this.host}/api/buy?book=${e.id}&plugin=${t.name}`}async bought(e,t){try{return await Rb.default.get(`${this.host}/api/bought?book=${e.id}&plugin=${t.name}`),!0}catch{return!1}}async trial(e,t){try{const{data:r}=await Rb.default.get(`${this.host}/api/trial?book=${e.id}&plugin=${t.name}`);return r}catch{return!1}}async queryPlugins({page:e=1,...t}){const{data:r}=await Rb.default.get(`${this.host}/api/query`,{params:{...t,page:e}});return r}async getInstalled(e){const{config:t}=e,r=[`theme-${t.getValue("theme")}`,...t.getValue("plugins")];this.preset&&(r.push(...Object.keys(this.preset)),t.setPresetPlugins(this.preset));const{data:n}=await Rb.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.flatMap(e=>!e.builtin||this.preset?.[e.name]?(e.preset=!!this.preset?.[e.name],[e]):[])}}de.pluginCenter=void 0;class a_{flatColors=["#1abc9c","#2ecc71","#3498db","#9b59b6","#34495e","#16a085","#27ae60","#2980b9","#8e44ad","#2c3e50","#f1c40f","#e67e22","#e74c3c","#f39c12","#d35400","#c0392b"];letter;size;canvas;constructor(e,t,r){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.size/10;if(e.beginPath(),e.arc(this.size-t,this.size-t,t,0,Math.PI/2),e.lineTo(t,this.size),e.arc(t,this.size-t,t,Math.PI/2,Math.PI),e.lineTo(0,t),e.arc(t,t,t,Math.PI,3*Math.PI/2),e.lineTo(this.size-t,0),e.arc(this.size-t,t,t,3*Math.PI/2,2*Math.PI),e.lineTo(this.size,this.size-t),e.closePath(),this.letter.length>0){const t=this.letter[0].toUpperCase();e.fillStyle=this.flatColors[t.charCodeAt(0)%this.flatColors.length],e.fill(),e.restore(),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)}else e.fillStyle=this.flatColors[0],e.fill()}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 a_(e,t,r)}}const c_=/^(?:\w+:)?\/\/(\S+)$/,l_=/^localhost[\:?\d]*(?:[^\:?\d]\S*)?$/,u_=/^[^\s\.]+\.\S{2,}$/;class h_{options;parsedIndex=0;lineBuffer="";message=null;messageHasId=!1;lastEventIdValue="";done=!1;receivedData=!1;constructor(e){this.options=e}get hasDone(){return this.done}get hasReceivedData(){return this.receivedData}get lastEventId(){return this.lastEventIdValue}consume(e){const t=e.slice(this.parsedIndex);this.parsedIndex=e.length;for(const e of t)"\r"!==e&&("\n"===e?(this.parseLine(this.lineBuffer),this.lineBuffer=""):this.lineBuffer+=e)}finish(){this.lineBuffer&&(this.parseLine(this.lineBuffer),this.lineBuffer=""),this.dispatchMessage()}ensureMessage(){this.message||(this.message={id:"",event:"",data:""},this.messageHasId=!1)}parseLine(e){if(""===e)return void this.dispatchMessage();if(e.startsWith(":"))return;const t=e.indexOf(":"),r=-1===t?e:e.slice(0,t);let n=-1===t?"":e.slice(t+1);switch(n.startsWith(" ")&&(n=n.slice(1)),this.ensureMessage(),r){case"data":this.receivedData=!0,this.message.data+=`${n}\n`;break;case"event":this.message.event=n;break;case"id":n.includes("\0")||(this.message.id=n,this.messageHasId=!0);break;case"retry":/^\d+$/.test(n)&&(this.message.retry=Number(n))}}dispatchMessage(){this.message&&("number"==typeof this.message.retry&&this.options.onRetry?.(this.message.retry),this.messageHasId&&(this.lastEventIdValue=this.message.id),this.message.data.endsWith("\n")&&(this.message.data=this.message.data.slice(0,-1)),this.message.data===this.options.doneToken&&(this.done=!0),this.options.onMessage(this.message),this.message=null,this.messageHasId=!1)}}async function f_(e,t){await new Promise((r,n)=>{const o=setTimeout(()=>{t?.removeEventListener("abort",i),r()},Math.max(e,0)),i=()=>{clearTimeout(o),n(new gb.CanceledError("Request aborted"))};t&&(t.aborted?i():t.addEventListener("abort",i,{once:!0}))})}const p_=new WeakSet;const d_=function e(t){!function(e){p_.has(e)||(p_.add(e),Nb.default.attach(e),e.defaults.raxConfig={retryDelay:2e3,backoffType:"static",shouldRetry:({config:e,response:t})=>{const r=e?.raxConfig||{};return!(r.retryDecider&&!r.retryDecider())&&"GET"===e?.method?.toUpperCase()&&449===t?.status}},e.defaults.maxContentLength=1/0,e.defaults.maxBodyLength=1/0,e.interceptors.response.use(e=>e,e=>(function(e){if(!Rb.default.isAxiosError(e)||!e.response)return;const{data:t,status:r}=e.response;let n="Unknown error";401===r?n="Unauthorized":function(e){return e&&"object"==typeof e}(t)?422===r?n=t:"message"in t&&(n=t.message):null!=t&&(n=t),e.errors=n,e.message="string"==typeof n?n:Object.values(n).join("\n")}(e),Promise.reject(e))))}(t);const r=e=>e.onMessage?async function(e,t){const r=e.onMessage,n=e.signal,o=e.onDownloadProgress,i=!1!==e.sseAutoReconnect,s=e.sseRetryConfig,a=s?.retry??e.sseMaxReconnects??1/0,c=!1!==e.sseRetryOnIncomplete,l=e.sseDoneToken??"[DONE]",u=s?.backoffType??"static",h="GET"===(e.method??"get").toUpperCase(),f=h?e.sseIdleTimeout??6e4:0;let p=s?.retryDelay??e.sseReconnectDelay??3e3,d=0,m="";const g=()=>{if(e.cancelToken?.throwIfRequested?.(),n?.aborted)throw new gb.CanceledError("Request aborted")},y=e=>{switch(u){case"linear":return p*e;case"exponential":return p*2**(e-1);default:return p}},E=e=>{const t={attempt:d+1,...e};if(t.closedWithoutDone&&(!c||t.hasDone))return!1;const r=(n=t.error,Rb.default.isAxiosError(n)&&449===n.response?.status);var n;return(s?.shouldRetry?.(t)??(i&&h&&(t.hasReceivedData||r)))&&d<a};for(;;){g();const i=new h_({doneToken:l,onMessage:r,onRetry:e=>{p=e}});let s=!1,a=!1;const c=new gb.AxiosHeaders;(e.headers instanceof gb.AxiosHeaders||e.headers)&&c.set(e.headers),m?c.set("Last-Event-ID",m):c.delete("Last-Event-ID");const u=new AbortController;let h,T=!1;const v=()=>{f<=0||(clearTimeout(h),h=setTimeout(()=>{T=!0,u.abort()},f))},b=()=>{u.abort()};n?.addEventListener("abort",b,{once:!0});try{v();const r=await t.request({...e,headers:c,signal:u.signal,raxConfig:{...e.raxConfig,shouldRetry:()=>!1},onDownloadProgress:e=>{v();const t=e.event?.target??e.target;if(t){if(!s){const e=t.getResponseHeader("content-type")||"";a=/text\/event-stream/i.test(e),s=!0}a&&i.consume(t.responseText),o?.(e)}else o?.(e)}});if(m=i.lastEventId||m,!E({hasDone:i.hasDone,closedWithoutDone:!0,hasReceivedData:i.hasReceivedData}))return r}catch(e){let t=e;if(T)t=new Rb.default.AxiosError(`SSE idle timeout of ${f}ms exceeded`,Rb.default.AxiosError.ETIMEDOUT);else if(Rb.default.isCancel(e))throw e;if(m=i.lastEventId||m,!E({error:t,hasDone:i.hasDone,closedWithoutDone:!1,hasReceivedData:i.hasReceivedData}))throw t}finally{clearTimeout(h),n?.removeEventListener("abort",b)}d+=1,await f_(y(d),n)}}(e,t):t.request(e),n=(e,t)=>r("string"==typeof e?{...t,url:e}:e);return Object.assign(n,t),n.defaults=t.defaults,n.interceptors=t.interceptors,n.request=e=>r(e),n.get=(e,t={})=>r({...t,method:"get",url:e}),n.delete=(e,t={})=>r({...t,method:"delete",url:e}),n.head=(e,t={})=>r({...t,method:"head",url:e}),n.options=(e,t={})=>r({...t,method:"options",url:e}),n.post=(e,t,n={})=>r({...n,method:"post",url:e,data:t}),n.put=(e,t,n={})=>r({...n,method:"put",url:e,data:t}),n.patch=(e,t,n={})=>r({...n,method:"patch",url:e,data:t}),n.getUri=e=>t.getUri(e),n.create=t=>e(Rb.default.create(t)),n}(Rb.default),m_=Rb.default.isAxiosError,g_=Rb.default.isCancel;de.BaseConfig=Bb,Dv=de.Book=class{static style=".topwrite/style.css";static logo="logo.png";static readme="README.md";id;sha;metadata;summary;_config;constructor(e,t,r,n,o){this.id=e,this.summary=r,this.config=t,this.metadata=n,this.sha=o}getMetadata(e,t){return this.metadata?Bv.get(this.metadata,e,t):t}setMetadata(e,t){this.metadata||(this.metadata={}),Bv.set(this.metadata,e,t)}get config(){return this._config}set config(e){e.setKey(`${this.id}:config`),this._config=e}},Lv=de.Config=Ub,Iv=de.File=class{path;content;meta;constructor({path:e,content:t,meta:r={}}){this.path=e,this.content=t,this.meta=r}getMeta(e,t){return Bv.get(this.meta,e,t)}relative(e){const t="/"===e.slice(-1);return(e=Ob.default.posix.relative(Ob.default.posix.dirname(this.path),e)||".")+(t?"/":"")}resolve(e){return Ob.default.isAbsolute(e)?e.slice(1):Ob.default.posix.join(Ob.default.posix.dirname(this.path),e)}},Pv=de.LetterAvatar=a_,de.Level=r_,Nv=de.Summary=i_,de.SummaryArticle=n_,de.SummaryPart=o_,de.aes=Db,Rv=de.createPluginCenter=function(e){return de.pluginCenter=new s_(e)},de.isCancel=g_,de.isEncryptedData=Fb,de.isRequestError=m_,Ov=de.isUrl=function(e){const t=e.match(c_);if(!t)return!1;const r=t[1];return!!r&&(l_.test(r)||u_.test(r))},de.markdown=Zb,xv=de.md5=function(e){return Pb.default(e).toString()},Cv=de.request=d_;class y_{name;version;path;hooks;config;constructor({name:e,version:t,path:r,hooks:n,config:o}){this.name=e,this.version=t,this.path=r,this.hooks=n,this.config=o}getHook(e){return this.hooks[e]}getContext(e){return{...e,getConfig:()=>e.book.config.getPluginConfig(this.name,this.config)}}}async function E_(e,t){he.info(`installing plugin "${e.name}"`);const r=`npm install ${e.host}.tgz`,{error:n}=ee.default.sync(r,{stdio:["inherit"],cwd:t,shell:!0});if(n)throw n;const o=M.default.join(t,"node_modules","topwrite-plugin-"+e.name),i=M.default.join(o,"dist","hooks.js");let s={};if(W.existsSync(i)){s=new T.NodeVM({require:{builtin:["path/posix","crypto"]},sandbox:{URL:URL,URLSearchParams:URLSearchParams}}).runFile(i)}const a=M.default.join(o,"config.json");let c={};return W.existsSync(a)&&(c=require(a)),he.info(`plugin "${e.name}@${e.version}" installed with success`),new y_({name:e.name,version:e.version,path:o,hooks:s,config:c})}const T_=/(^-{3}(?:\r\n|\r|\n)([\w\W]*?)-{3}(?:\r\n|\r|\n))?([\w\W]*)*/;class v_{book;sourceFS;tmpFS;dest;version;options;plugins=[];constructor(e,t,r,n,o,i){this.book=e,this.sourceFS=t,this.tmpFS=r,this.options=n,this.dest=o,this.version=i}getContext(){return{book:this.book,sourceFS:this.sourceFS,tmpFS:this.tmpFS,request:Cv,logger:he,format:this.format}}async generate(){await this.initLfs(),await this.initPlugins(),await this.onInit(),await this.callHook("init"),await this.checkStyle(),await this.generateLogo(),await this.onReadme(),await this.callHook("readme"),await this.generateArticles(),await this.callHook("articles"),await this.onSummary(),await this.callHook("summary"),await this.callHook("beforeFinish")&&(await this.onFinish(),await this.callHook("finish")),he.success("generation finished with success!")}async checkStyle(){this.tmpFS.exist(Dv.style)||await this.tmpFS.writeFile(Dv.style,"")}async initLfs(){if(this.options.lfs){he.info("generate lfs files...");let e="git lfs ls-files -l";const{config:t}=this.book,r=t.getValue("root","");r&&(e+=` --include ${r}`);const{error:n,stdout:o}=ee.default.sync(e,{stdio:["inherit"],encoding:"utf8",cwd:this.sourceFS.root,shell:!0}),i={};n||o.trim().split("\n").forEach(e=>{if(e){const[t,n]=e.trim().split(/\s[-*]\s/);if(t&&n){let e=n.trim();r&&(e=M.default.relative(r,e)),i[e]=t.trim(),this.tmpFS.unlink(e)}}}),this.options.lfs.files=i,he.info(`found ${Object.keys(i).length} files`)}}async initPlugins(){this.plugins=await async function(e,t,r){const n=Rv(r),o=await n.getInstalled(e),i=[],s=e.config.getValue("theme");he.info(`installing ${o.length} plugins from registry`);for(let e of o){if(e.disabled)throw new Error('plugin "'+e.name+'" has been disabled');"theme"===e.type||"ebook"!==s||e.ebook?i.push(await E_(e,t)):he.info(`plugin "${e.name}" ignored in ebook`)}return i}(this.book,this.tmpFS.root,this.options.plugins)}async generateLogo(){if(!this.tmpFS.exist(Dv.logo)){const e=this.book.config.getValue("title","Untitled"),t=b.createCanvas(60,60);Pv.create(e,60,t);const r=t.toBuffer("image/png");await this.tmpFS.writeFile(Dv.logo,r)}}async generateArticle(e){if(e.ref){he.info('generate article "'+e.getRef()+'"');try{await this.onArticle(e),await this.callHook("article",e)}catch(t){"ENOENT"===t.code?he.warn(`article file [${e.ref}] not exist`):he.warn(`generate article [${e.ref}] failed: ${t.message}`)}}}async generateArticles(){he.info("generate articles ...");const e=this.book.summary.getArticles();he.info(`found ${e.length} articles`);for(const t of e)await this.generateArticle(t)}async callHook(e,...t){return he.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){const t=await this.tmpFS.readAsString(e.ref),r=this.parseFileMeta(e.ref,t);return new Iv({path:e.path,...r})}parseFileMeta(e,t){const r=t.match(T_);let n={};if(r){if(void 0!==r[2])try{n=te.default.load(r[2])||{}}catch{}t=void 0!==r[3]?r[3]:""}const o=M.default.join(this.book.config.getValue("root",""),e),[i,s]=this.sourceFS.readFileTime(o);return n.ctime=i,n.mtime=s,{meta:n,content:t}}}class b_ extends v_{format="json";scripts=[];async onInit(){this.processSummary(),await this.installCommonAssets(),await this.installReader(),await this.copyPluginsAssets()}processSummary(){this.book.summary.getArticle(e=>(this.book.config.getValue(["release","pathEncode"],!0)&&(e.path=A.pinyin(e.path,{toneType:"none",nonZh:"consecutive",type:"array",v:!0}).join("")),e.hasPath=!0,!1))}async installCommonAssets(){he.info("installing common assets ..."),await this.installPackage("lodash","lodash.min.js","lodash/lodash.min.js"),await this.installPackage("react","umd/react.production.min.js","react/react.production.min.js"),await this.installPackage("react-dom","umd/react-dom.production.min.js","react-dom/react-dom.production.min.js"),he.info("common assets installed with success")}async installReader(){he.info("installing package @topwrite/reader ...");const e=await this.installPackage("@topwrite/reader","dist/","reader");he.info(`package @topwrite/reader@${e.version} installed with success`)}async installPackage(e,t,r){const n=require.resolve(`${e}/package.json`),o=require(n);if(this.useCdn())t.endsWith("/")&&(t=`${t}index.js`),this.scripts.push(`https://jsdelivr.topthink.com/npm/${e}@${o.version}/${t}`);else{const e=M.default.join(M.default.dirname(n),t),i=M.default.join(this.tmpFS.root,"asset",r);await re.default.copy(e,i),t.endsWith("/")&&(r=`${r}/index.js`),this.scripts.push(`asset/${r}?v=${o.version}`)}return o}async copyPluginsAssets(){for(const e of this.plugins)if(this.useCdn()){const t=this.options.plugins.host;this.scripts.push(`${t}/plugins/${e.name}/${e.version}/dist/index.js`)}else await re.default.copy(M.default.join(e.path,"dist"),M.default.join(this.tmpFS.root,"asset","plugins",e.name)),this.scripts.push(`asset/plugins/${e.name}/index.js?v=${e.version}`)}useCdn(){return"cdn"===this.options.asset}async onReadme(){const e=await this.makeFile({path:"index.html",ref:"README.md"});await this.tmpFS.unlink("README.md"),await this.tmpFS.writeFile("index.html.json",this.stringify(e))}async onArticle(e){const t=e.path+".json";if(!this.tmpFS.exist(t)){const r=await this.makeFile(e);e.metadata={...r.meta,...e.metadata},await this.tmpFS.unlink(e.ref),await this.tmpFS.writeFile(t,this.stringify(r))}}async onSummary(){const e=this.book.summary;await this.tmpFS.unlink(Nv.file.json),await this.tmpFS.unlink(Nv.file.markdown),await this.tmpFS.writeFile(Nv.file.json,this.stringify(e.toObject()));const[t,r]=this.sourceFS.readFileTime(),n={id:this.book.id,sha:this.book.sha,lfs:this.options.lfs,scripts:this.scripts,poweredBy:this.options.poweredBy,ctime:t,mtime:r};await this.tmpFS.writeFile("context.json",this.stringify(n))}async onFinish(){await this.packBook()}async packBook(){he.info("pack book ...");const e=re.default.createWriteStream(this.dest);await this.tmpFS.archive(e,"tar")}stringify(e){return JSON.stringify(e,null,4)}}class __{root;constructor(e){this.root=e}readFileTime(e=""){const t=`git log --pretty=format:%cI -- ${e}`,{error:r,stdout:n}=ee.default.sync(t,{stdio:["inherit"],encoding:"utf8",cwd:this.root,shell:!0});if(r||!n)return[void 0,void 0];const o=n.split("\n");return[o[o.length-1],o[0]]}createReadStream(e,t){return re.default.createReadStream(this.resolve(e),t)}async readFile(e){return await re.default.readFile(this.resolve(e))}async readAsObject(e,t={}){try{return await re.default.readJSON(this.resolve(e))}catch{return t}}async readAsString(e){try{return await re.default.readFile(this.resolve(e),"utf-8")}catch{return""}}async writeFile(e,t){return e=this.resolve(e),re.default.ensureDirSync(M.default.dirname(e)),re.default.writeFile(e,t)}createWriteStream(e,t){return e=this.resolve(e),re.default.ensureDirSync(M.default.dirname(e)),re.default.createWriteStream(e,t)}async appendFile(e,t){return re.default.appendFile(this.resolve(e),t)}exist(e){return re.default.pathExistsSync(this.resolve(e))}async unlink(e){try{await re.default.unlink(this.resolve(e))}catch{}}async readDir(e=""){const t=[];return new Promise(r=>{ne.default({path:this.resolve(e),ignoreFiles:[".gitignore",".bookignore"]}).on("child",function(e){t.push({type:e.type,path:e.path.substr(e.root.path.length+1)})}).on("close",()=>{r(t)})})}resolve(...e){return M.default.join(this.root,...e)}async archive(e,t="tar"){if("tar"==t)return new Promise((t,r)=>{w.pack(this.root,{fromBase:!0,ignoreFiles:[".gitignore",".bookignore"]}).pipe(e).on("error",e=>{r(e)}).on("close",()=>{t()})});{const r=await this.readDir();return new Promise((n,o)=>{e.on("error",e=>{o(e)}),e.on("close",()=>{n()});const i=oe.default(t,{gzip:!0,gzipOptions:{level:9},zlib:{level:9}});i.pipe(e);for(const e of r)"File"===e.type&&i.append(this.createReadStream(e.path),{name:e.path});i.finalize()})}}}class A_ extends b_{template;format="html";async onInit(){await super.onInit(),await this.initTemplate()}async initTemplate(){const e=await re.default.readFile(M.default.resolve(__dirname,"../templates/html.ejs"),"utf-8");this.template=ie.default.compile(e)}useCdn(){return!1}async onReadme(){const e=await this.makeFile({path:"index.html",ref:"README.md"}),t=await this.renderFile(e);await this.tmpFS.unlink("README.md"),await this.tmpFS.writeFile("index.html",t)}async onArticle(e){if(!this.tmpFS.exist(e.path)){const t=await this.makeFile(e);e.metadata={...t.meta,...e.metadata};const r=await this.renderFile(t,e.title);await this.tmpFS.unlink(e.ref),await this.tmpFS.writeFile(e.path,r)}}async onSummary(){await this.tmpFS.unlink(Nv.file.json),await this.tmpFS.unlink(Nv.file.markdown)}async renderFile(e,t){const r={id:this.book.id,sha:this.book.sha,metadata:this.book.metadata,summary:this.book.summary.toObject(),config:this.book.config.toObject(),file:e,lfs:this.options.lfs,options:{poweredBy:this.options.poweredBy}},n=this.scripts.map(t=>Ov(t)?t:e.relative(t)),o=this.book.config.getValue("title","Untitled"),i=e.getMeta("title",t);return this.template({title:(i?`${i} - `:"")+o,keywords:e.getMeta("keywords"),description:e.getMeta("description"),scripts:n,payload:JSON.stringify(r).replace(/\//g,"\\/")})}}const S_=(e,t)=>e.some(e=>e instanceof RegExp?e.test(t):e===t);function k_(e,t){const{tryEvery:r,stopAfter:n}=t,o=Date.now(),i=(t,s)=>{setTimeout(async()=>{try{const r=await e();t(r)}catch(e){Date.now()-o>n?s(e):i(t,s)}},r)};return new Promise(i)}class w_ extends se.default.ResourceLoader{fetch(e,t){const{element:r}=t;return r&&"IMG"===r.nodeName?null:super.fetch(e,t)}}const C_=/\s+at.*[(\s](.*)\)?/,x_=/^(?:(?:(?:node|node:[\w/]+|(?:(?:node:)?internal\/[\w/]*|.*node_modules\/(?:babel-polyfill|pirates)\/.*)?\w+)(?:\.js)?:\d+:\d+)|native)/,O_=void 0===ae.default.homedir?"":ae.default.homedir().replace(/\\/g,"/");class R_ extends Error{#e;name="AggregateError";constructor(e){if(!Array.isArray(e))throw new TypeError("Expected input to be an Array, got "+typeof e);let t=(e=e.map(e=>e instanceof Error?e:null!==e&&"object"==typeof e?Object.assign(new Error(e.message),e):new Error(e))).map(e=>{return"string"==typeof e.stack&&e.stack.length>0?(t=function(e,{pretty:t=!1,basePath:r}={}){const n=r&&new RegExp(`(at | \\()${ga(r.replace(/\\/g,"/"))}`,"g");if("string"==typeof e)return e.replace(/\\/g,"/").split("\n").filter(e=>{const t=e.match(C_);if(null===t||!t[1])return!0;const r=t[1];return!(r.includes(".app/Contents/Resources/electron.asar")||r.includes(".app/Contents/Resources/default_app.asar")||r.includes("node_modules/electron/dist/resources/electron.asar")||r.includes("node_modules/electron/dist/resources/default_app.asar")||x_.test(r))}).filter(e=>""!==e.trim()).map(e=>(n&&(e=e.replace(n,"$1")),t&&(e=e.replace(C_,(e,t)=>e.replace(t,t.replace(O_,"~")))),e)).join("\n")}(e.stack),t.replace(/\s+at .*aggregate-error\/index.js:\d+:\d+\)?/g,"")):String(e);var t}).join("\n");t="\n"+function(e,t=1,r={}){const{indent:n=" ",includeEmptyLines:o=!1}=r;if("string"!=typeof e)throw new TypeError(`Expected \`input\` to be a \`string\`, got \`${typeof e}\``);if("number"!=typeof t)throw new TypeError(`Expected \`count\` to be a \`number\`, got \`${typeof t}\``);if(t<0)throw new RangeError(`Expected \`count\` to be at least 0, got \`${t}\``);if("string"!=typeof n)throw new TypeError(`Expected \`options.indent\` to be a \`string\`, got \`${typeof n}\``);if(0===t)return e;const i=o?/^/gm:/^(?!\s*$)/gm;return e.replace(i,n.repeat(t))}(t,4),super(t),this.#e=e}get errors(){return this.#e.slice()}}class N_ extends Error{constructor(e){super(),this.name="AbortError",this.message=e}}const P_=e=>void 0===globalThis.DOMException?new N_(e):new DOMException(e),I_=e=>{const t=void 0===e.reason?P_("This operation was aborted."):e.reason;return t instanceof Error?t:P_(t)};async function L_(e,t,{concurrency:r=Number.POSITIVE_INFINITY,stopOnError:n=!0,signal:o}={}){return new Promise((i,s)=>{if(void 0===e[Symbol.iterator]&&void 0===e[Symbol.asyncIterator])throw new TypeError(`Expected \`input\` to be either an \`Iterable\` or \`AsyncIterable\`, got (${typeof e})`);if("function"!=typeof t)throw new TypeError("Mapper function is required");if(!Number.isSafeInteger(r)&&r!==Number.POSITIVE_INFINITY||!(r>=1))throw new TypeError(`Expected \`concurrency\` to be an integer from 1 and up or \`Infinity\`, got \`${r}\` (${typeof r})`);const a=[],c=[],l=new Map;let u=!1,h=!1,f=!1,p=0,d=0;const m=void 0===e[Symbol.iterator]?e[Symbol.asyncIterator]():e[Symbol.iterator](),g=e=>{u=!0,h=!0,s(e)};o&&(o.aborted&&g(I_(o)),o.addEventListener("abort",()=>{g(I_(o))}));const y=async()=>{if(h)return;const e=await m.next(),r=d;if(d++,e.done){if(f=!0,0===p&&!h){if(!n&&c.length>0)return void g(new R_(c));if(h=!0,0===l.size)return void i(a);const e=[];for(const[t,r]of a.entries())l.get(t)!==D_&&e.push(r);i(e)}}else p++,(async()=>{try{const n=await e.value;if(h)return;const o=await t(n,r);o===D_&&l.set(r,o),a[r]=o,p--,await y()}catch(e){if(n)g(e);else{c.push(e),p--;try{await y()}catch(e){g(e)}}}})()};(async()=>{for(let e=0;e<r;e++){try{await y()}catch(e){g(e);break}if(f||u)break}})()})}const D_=Symbol("skip");function F_(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}class M_ extends A_{format="ebook";article;setArticle(e){const t=this.book.summary.getArticle(t=>t.getRef()===e);if(!t)throw new Error(`article ${e} not found`);this.article=t}async initPlugins(){this.book.config.setValue("theme","ebook"),this.options.plugins.preset["theme-ebook"]={},await super.initPlugins()}async generateArticles(){this.article?await this.generateArticle(this.article):await super.generateArticles()}async createDOM(e,t){const r=new w_,n=new O.VirtualConsole;n.on("debug",e=>{he.debug(e)}),n.on("error",e=>{he.error(e)}),n.on("jsdomError",e=>{he.error(e)});let o=!1,i=0;const s=new O.JSDOM(e,{virtualConsole:n,url:`file:///${this.tmpFS.resolve(t.path)}`,runScripts:"dangerously",resources:r,pretendToBeVisual:!0,beforeParse(e){e.SC_DISABLE_SPEEDY=!0;const{document:t}=e,r={attributes:!0,childList:!0,subtree:!0};e.addEventListener("load",()=>{const n=new e.MutationObserver(function(e){for(const t of e)"childList"===t.type&&t.addedNodes.forEach(e=>{if("SCRIPT"===e.nodeName){++i;e.addEventListener("load",()=>{--i})}})});n.observe(t.head,r)}),e.addEventListener("pageLoaded",()=>{o=!0})}});return await k_(()=>{if(!o||i>0)throw new Error("render html timeout")},{stopAfter:5e3,tryEvery:100}),s}async renderFile(e,t){const r=await super.renderFile(e,t),n=await this.createDOM(r,e);await L_(Array.from(n.window.document.images),async(t,r)=>{if(t.src){const n=s.parse(t.src);if(n.protocol?.startsWith("http"))try{he.info(`fetch image#${r}: ${t.src}`),t.src=await this.fetchImage(e,t.src),he.info(`image#${r} fetch succeed`)}catch{he.warn(`image#${r} ${t.src} fetch failed`)}}},{concurrency:3});for(const e of Array.from(n.window.document.scripts))e.remove();return n.serialize()}async fetchImage(e,t){const r=await Cv.get(t,{responseType:"stream",timeout:5e3,headers:{"User-Agent":`TopWriteBuilder/${this.version}`}});let n=`_images/${xv(t)}`;const o=Y.default.extension(r.headers["content-type"]);o&&(n+=`.${o}`);const i=this.tmpFS.createWriteStream(n);return new Promise((t,o)=>{r.data.pipe(i),i.on("error",e=>{i.close(),o(e)}),i.on("close",()=>{t(e.relative(n))})})}async 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-chapter')]","level1-toc":"descendant-or-self::*[contains(concat(' ', normalize-space(@class), ' '), 'book-level1-toc')]","level2-toc":"descendant-or-self::*[contains(concat(' ', normalize-space(@class), ' '), 'book-level2-toc')]","level3-toc":"descendant-or-self::*[contains(concat(' ', normalize-space(@class), ' '), 'book-level3-toc')]","max-toc-links":"0","max-levels":"1","no-chapters-in-toc":!0,"breadth-first":!0};switch(e){case"docx":r["docx-no-toc"]=!0,r["docx-no-cover"]=!0,r["page-breaks-before"]="/",r["preserve-cover-aspect-ratio"]=!0;break;case"epub":r["dont-split-on-page-breaks"]=!0;break;case"pdf":const e={poweredBy:this.options.poweredBy},n=await ie.default.renderFile(M.default.resolve(__dirname,"../templates/pdf-header.ejs"),e,{rmWhitespace:!0}),o=await ie.default.renderFile(M.default.resolve(__dirname,"../templates/pdf-footer.ejs"),e,{rmWhitespace:!0});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["disable-font-rescaling"]=!0,this.article||(r["pdf-header-template"]=n),r["pdf-footer-template"]=o}return r}async packBook(){const e=M.default.extname(this.dest).substr(1);if(!["pdf","docx","epub"].includes(e))return super.packBook();const t=await x.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=[],o=[];t={useEquals:!0,shortFlag:!0,...t};const i=(e,n)=>{const o=t.shortFlag&&1===e.length?"-":"--",i=t.allowCamelCase?e:e.replace(/[A-Z]/g,"-$&").toLowerCase();e=o+i,t.useEquals?r.push(e+(n?`=${n}`:"")):(r.push(e),n&&r.push(n))},s=(e,t)=>{r.push(`-${e}`),t&&r.push(t)};for(let[r,a]of Object.entries(e)){let e=i;if((!Array.isArray(t.excludes)||!S_(t.excludes,r))&&(!Array.isArray(t.includes)||S_(t.includes,r)))if("object"==typeof t.aliases&&t.aliases[r]&&(r=t.aliases[r],e=s),"--"!==r)if("_"!==r){if(!0!==a||t.ignoreTrue||e(r,""),!1!==a||t.ignoreFalse||e(`no-${r}`),"string"==typeof a&&e(r,a),"number"!=typeof a||Number.isNaN(a)||e(r,String(a)),Array.isArray(a))for(const t of a)e(r,t)}else{if(!Array.isArray(a))throw new TypeError("Expected key `_` to be Array, got "+typeof a);n=a}else{if(!Array.isArray(a))throw new TypeError("Expected key `--` to be Array, got "+typeof a);o=a}}for(const e of n)r.push(String(e));o.length>0&&r.push("--");for(const e of o)r.push(String(e));return r}(await this.getConvertOptions(e)),n=this.article?this.tmpFS.resolve(this.article.path):this.tmpFS.resolve("index.html");return r.unshift(n,this.dest),new Promise((e,o)=>{he.info("convert book ...");const i=ee.default(t,r,{stdio:["inherit"],cwd:this.tmpFS.root}),s=["^Conversion options ","^ \\w+: ","^Blocking URL ","^Ignoring CSS ","^Ignoring internal ","^CSSStyleDeclaration: ","^CSSStylesheet: ","^PropertyValue: ","^CSSVariable: ",F_(n),F_(this.dest)].map(e=>`(${e})`).join("|"),a=new RegExp(`(${s})`);i.stdout?.on("data",e=>{e.toString().replace(/[\r\n]*$/,"").split("\n").forEach(e=>{if(e){const t=e.trim();e.match(a)?he.debug({message:t,type:"log"}):he.log(t)}})}),i.stderr?.on("data",e=>{he.error(e.toString().trimEnd())}),i.on("close",t=>{0!==t?o("Convert failed"):e()})})}}var B_=ce.default,U_=process.cwd,H_=null,j_=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return H_||(H_=U_.call(process)),H_};try{process.cwd()}catch(e){}if("function"==typeof process.chdir){var q_=process.chdir;process.chdir=function(e){H_=null,q_.call(process,e)},Object.setPrototypeOf&&Object.setPrototypeOf(process.chdir,q_)}var z_=function(e){B_.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)&&function(e){e.lchmod=function(t,r,n){e.open(t,B_.O_WRONLY|B_.O_SYMLINK,r,function(t,o){t?n&&n(t):e.fchmod(o,r,function(t){e.close(o,function(e){n&&n(t||e)})})})},e.lchmodSync=function(t,r){var n,o=e.openSync(t,B_.O_WRONLY|B_.O_SYMLINK,r),i=!0;try{n=e.fchmodSync(o,r),i=!1}finally{if(i)try{e.closeSync(o)}catch(e){}else e.closeSync(o)}return n}}(e);e.lutimes||function(e){B_.hasOwnProperty("O_SYMLINK")&&e.futimes?(e.lutimes=function(t,r,n,o){e.open(t,B_.O_SYMLINK,function(t,i){t?o&&o(t):e.futimes(i,r,n,function(t){e.close(i,function(e){o&&o(t||e)})})})},e.lutimesSync=function(t,r,n){var o,i=e.openSync(t,B_.O_SYMLINK),s=!0;try{o=e.futimesSync(i,r,n),s=!1}finally{if(s)try{e.closeSync(i)}catch(e){}else e.closeSync(i)}return o}):e.futimes&&(e.lutimes=function(e,t,r,n){n&&process.nextTick(n)},e.lutimesSync=function(){})}(e);e.chown=n(e.chown),e.fchown=n(e.fchown),e.lchown=n(e.lchown),e.chmod=t(e.chmod),e.fchmod=t(e.fchmod),e.lchmod=t(e.lchmod),e.chownSync=o(e.chownSync),e.fchownSync=o(e.fchownSync),e.lchownSync=o(e.lchownSync),e.chmodSync=r(e.chmodSync),e.fchmodSync=r(e.fchmodSync),e.lchmodSync=r(e.lchmodSync),e.stat=i(e.stat),e.fstat=i(e.fstat),e.lstat=i(e.lstat),e.statSync=s(e.statSync),e.fstatSync=s(e.fstatSync),e.lstatSync=s(e.lstatSync),e.chmod&&!e.lchmod&&(e.lchmod=function(e,t,r){r&&process.nextTick(r)},e.lchmodSync=function(){});e.chown&&!e.lchown&&(e.lchown=function(e,t,r,n){n&&process.nextTick(n)},e.lchownSync=function(){});"win32"===j_&&(e.rename="function"!=typeof e.rename?e.rename:function(t){function r(r,n,o){var i=Date.now(),s=0;t(r,n,function a(c){if(c&&("EACCES"===c.code||"EPERM"===c.code||"EBUSY"===c.code)&&Date.now()-i<6e4)return setTimeout(function(){e.stat(n,function(e,i){e&&"ENOENT"===e.code?t(r,n,a):o(c)})},s),void(s<100&&(s+=10));o&&o(c)})}return Object.setPrototypeOf&&Object.setPrototypeOf(r,t),r}(e.rename));function t(t){return t?function(r,n,o){return t.call(e,r,n,function(e){a(e)&&(e=null),o&&o.apply(this,arguments)})}:t}function r(t){return t?function(r,n){try{return t.call(e,r,n)}catch(e){if(!a(e))throw e}}:t}function n(t){return t?function(r,n,o,i){return t.call(e,r,n,o,function(e){a(e)&&(e=null),i&&i.apply(this,arguments)})}:t}function o(t){return t?function(r,n,o){try{return t.call(e,r,n,o)}catch(e){if(!a(e))throw e}}:t}function i(t){return t?function(r,n,o){function i(e,t){t&&(t.uid<0&&(t.uid+=4294967296),t.gid<0&&(t.gid+=4294967296)),o&&o.apply(this,arguments)}return"function"==typeof n&&(o=n,n=null),n?t.call(e,r,n,i):t.call(e,r,i)}:t}function s(t){return t?function(r,n){var o=n?t.call(e,r,n):t.call(e,r);return o&&(o.uid<0&&(o.uid+=4294967296),o.gid<0&&(o.gid+=4294967296)),o}:t}function a(e){return!e||("ENOSYS"===e.code||!(process.getuid&&0===process.getuid()||"EINVAL"!==e.code&&"EPERM"!==e.code))}e.read="function"!=typeof e.read?e.read:function(t){function r(r,n,o,i,s,a){var c;if(a&&"function"==typeof a){var l=0;c=function(u,h,f){if(u&&"EAGAIN"===u.code&&l<10)return l++,t.call(e,r,n,o,i,s,c);a.apply(this,arguments)}}return t.call(e,r,n,o,i,s,c)}return Object.setPrototypeOf&&Object.setPrototypeOf(r,t),r}(e.read),e.readSync="function"!=typeof e.readSync?e.readSync:(c=e.readSync,function(t,r,n,o,i){for(var s=0;;)try{return c.call(e,t,r,n,o,i)}catch(e){if("EAGAIN"===e.code&&s<10){s++;continue}throw e}});var c};var G_=G.default.Stream,$_=function(e){return{ReadStream:function t(r,n){if(!(this instanceof t))return new t(r,n);G_.call(this);var o=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 i=Object.keys(n),s=0,a=i.length;s<a;s++){var c=i[s];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(){o._read()});e.open(this.path,this.flags,this.mode,function(e,t){if(e)return o.emit("error",e),void(o.readable=!1);o.fd=t,o.emit("open",t),o._read()})},WriteStream:function t(r,n){if(!(this instanceof t))return new t(r,n);G_.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 o=Object.keys(n),i=0,s=o.length;i<s;i++){var a=o[i];this[a]=n[a]}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 K_=function(e){if(null===e||"object"!=typeof e)return e;if(e instanceof Object)var t={__proto__:V_(e)};else t=Object.create(null);return Object.getOwnPropertyNames(e).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))}),t},V_=Object.getPrototypeOf||function(e){return e.__proto__};var W_,Q_,Y_=V.default,X_=z_,J_=$_,Z_=K_,eA=z.default;function tA(e,t){Object.defineProperty(e,W_,{get:function(){return t}})}"function"==typeof Symbol&&"function"==typeof Symbol.for?(W_=Symbol.for("graceful-fs.queue"),Q_=Symbol.for("graceful-fs.previous")):(W_="___graceful-fs.queue",Q_="___graceful-fs.previous");var rA=function(){};if(eA.debuglog?rA=eA.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&(rA=function(){var e=eA.format.apply(eA,arguments);e="GFS4: "+e.split(/\n/).join("\nGFS4: "),console.error(e)}),!Y_[W_]){var nA=fe[W_]||[];tA(Y_,nA),Y_.close=function(e){function t(t,r){return e.call(Y_,t,function(e){e||cA(),"function"==typeof r&&r.apply(this,arguments)})}return Object.defineProperty(t,Q_,{value:e}),t}(Y_.close),Y_.closeSync=function(e){function t(t){e.apply(Y_,arguments),cA()}return Object.defineProperty(t,Q_,{value:e}),t}(Y_.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){rA(Y_[W_]),q.default.equal(Y_[W_].length,0)})}fe[W_]||tA(fe,Y_[W_]);var oA,iA=sA(Z_(Y_));function sA(e){X_(e),e.gracefulify=sA,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,o,i){return t(r,n,function(t){!t||"EMFILE"!==t.code&&"ENFILE"!==t.code?"function"==typeof o&&o.apply(this,arguments):aA([e,[r,n,o],t,i||Date.now(),Date.now()])})}(e,r,n)};var r=e.writeFile;e.writeFile=function(e,t,n,o){"function"==typeof n&&(o=n,n=null);return function e(t,n,o,i,s){return r(t,n,o,function(r){!r||"EMFILE"!==r.code&&"ENFILE"!==r.code?"function"==typeof i&&i.apply(this,arguments):aA([e,[t,n,o,i],r,s||Date.now(),Date.now()])})}(e,t,n,o)};var n=e.appendFile;n&&(e.appendFile=function(e,t,r,o){"function"==typeof r&&(o=r,r=null);return function e(t,r,o,i,s){return n(t,r,o,function(n){!n||"EMFILE"!==n.code&&"ENFILE"!==n.code?"function"==typeof i&&i.apply(this,arguments):aA([e,[t,r,o,i],n,s||Date.now(),Date.now()])})}(e,t,r,o)});var o=e.copyFile;o&&(e.copyFile=function(e,t,r,n){"function"==typeof r&&(n=r,r=0);return function e(t,r,n,i,s){return o(t,r,n,function(o){!o||"EMFILE"!==o.code&&"ENFILE"!==o.code?"function"==typeof i&&i.apply(this,arguments):aA([e,[t,r,n,i],o,s||Date.now(),Date.now()])})}(e,t,r,n)});var i=e.readdir;e.readdir=function(e,t,r){"function"==typeof t&&(r=t,t=null);var n=s.test(process.version)?function(e,t,r,n){return i(e,o(e,t,r,n))}:function(e,t,r,n){return i(e,t,o(e,t,r,n))};return n(e,t,r);function o(e,t,r,o){return function(i,s){!i||"EMFILE"!==i.code&&"ENFILE"!==i.code?(s&&s.sort&&s.sort(),"function"==typeof r&&r.call(this,i,s)):aA([n,[e,t,r],i,o||Date.now(),Date.now()])}}};var s=/^v[0-5]\./;if("v0.8"===process.version.substr(0,4)){var a=J_(e);f=a.ReadStream,p=a.WriteStream}var c=e.ReadStream;c&&(f.prototype=Object.create(c.prototype),f.prototype.open=function(){var e=this;m(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 l=e.WriteStream;l&&(p.prototype=Object.create(l.prototype),p.prototype.open=function(){var e=this;m(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 p},set:function(e){p=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 h=p;function f(e,t){return this instanceof f?(c.apply(this,arguments),this):f.apply(Object.create(f.prototype),arguments)}function p(e,t){return this instanceof p?(l.apply(this,arguments),this):p.apply(Object.create(p.prototype),arguments)}Object.defineProperty(e,"FileWriteStream",{get:function(){return h},set:function(e){h=e},enumerable:!0,configurable:!0});var d=e.open;function m(e,t,r,n){return"function"==typeof r&&(n=r,r=null),function e(t,r,n,o,i){return d(t,r,n,function(s,a){!s||"EMFILE"!==s.code&&"ENFILE"!==s.code?"function"==typeof o&&o.apply(this,arguments):aA([e,[t,r,n,o],s,i||Date.now(),Date.now()])})}(e,t,r,n)}return e.open=m,e}function aA(e){rA("ENQUEUE",e[0].name,e[1]),Y_[W_].push(e),lA()}function cA(){for(var e=Date.now(),t=0;t<Y_[W_].length;++t)Y_[W_][t].length>2&&(Y_[W_][t][3]=e,Y_[W_][t][4]=e);lA()}function lA(){if(clearTimeout(oA),oA=void 0,0!==Y_[W_].length){var e=Y_[W_].shift(),t=e[0],r=e[1],n=e[2],o=e[3],i=e[4];if(void 0===o)rA("RETRY",t.name,r),t.apply(null,r);else if(Date.now()-o>=6e4){rA("TIMEOUT",t.name,r);var s=r.pop();"function"==typeof s&&s.call(null,n)}else{var a=Date.now()-i,c=Math.max(i-o,1);a>=Math.min(1.2*c,100)?(rA("RETRY",t.name,r),t.apply(null,r.concat([o]))):Y_[W_].push(e)}void 0===oA&&(oA=setTimeout(lA,0))}}process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!Y_.__patched&&(iA=sA(Y_),Y_.__patched=!0);var uA=iA;const hA=ae.default.homedir(),{env:fA}=process,pA=fA.XDG_DATA_HOME||(hA?M.default.join(hA,".local","share"):void 0),dA=fA.XDG_CONFIG_HOME||(hA?M.default.join(hA,".config"):void 0);fA.XDG_STATE_HOME||hA&&M.default.join(hA,".local","state"),fA.XDG_CACHE_HOME||hA&&M.default.join(hA,".cache"),fA.XDG_RUNTIME_DIR;const mA=(fA.XDG_DATA_DIRS||"/usr/local/share/:/usr/share/").split(":");pA&&mA.unshift(pA);const gA=(fA.XDG_CONFIG_DIRS||"/etc/xdg").split(":");dA&&gA.unshift(dA);var yA={exports:{}},EA={exports:{}};
|
|
9
10
|
/**
|
|
10
11
|
* @preserve
|
|
11
12
|
* JS Implementation of incremental MurmurHash3 (r150) (as of May 10, 2013)
|
|
@@ -17,4 +18,4 @@
|
|
|
17
18
|
* @author <a href="mailto:aappleby@gmail.com">Austin Appleby</a>
|
|
18
19
|
* @see http://sites.google.com/site/murmurhash/
|
|
19
20
|
*/
|
|
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}()}(bd);var _d={exports:{}},Ad={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")}(Ad);var Sd=ue.process;const kd=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(kd(Sd)){var Cd,xd=j.default,wd=Ad.exports,Od=/^win/i.test(Sd.platform),Nd=oe.default;"function"!=typeof Nd&&(Nd=Nd.EventEmitter),Sd.__signal_exit_emitter__?Cd=Sd.__signal_exit_emitter__:((Cd=Sd.__signal_exit_emitter__=new Nd).count=0,Cd.emitted={}),Cd.infinite||(Cd.setMaxListeners(1/0),Cd.infinite=!0),_d.exports=function(e,t){if(!kd(ue.process))return function(){};xd.equal(typeof e,"function","a callback must be provided for exit handler"),!1===Ld&&Dd();var r="exit";t&&t.alwaysLast&&(r="afterexit");return Cd.on(r,e),function(){Cd.removeListener(r,e),0===Cd.listeners("exit").length&&0===Cd.listeners("afterexit").length&&Pd()}};var Pd=function(){Ld&&kd(ue.process)&&(Ld=!1,wd.forEach(function(e){try{Sd.removeListener(e,Id[e])}catch(e){}}),Sd.emit=Hd,Sd.reallyExit=Md,Cd.count-=1)};_d.exports.unload=Pd;var Rd=function(e,t,r){Cd.emitted[e]||(Cd.emitted[e]=!0,Cd.emit(e,t,r))},Id={};wd.forEach(function(e){Id[e]=function(){kd(ue.process)&&(Sd.listeners(e).length===Cd.count&&(Pd(),Rd("exit",null,e),Rd("afterexit",null,e),Od&&"SIGHUP"===e&&(e="SIGINT"),Sd.kill(Sd.pid,e)))}}),_d.exports.signals=function(){return wd};var Ld=!1,Dd=function(){!Ld&&kd(ue.process)&&(Ld=!0,Cd.count+=1,wd=wd.filter(function(e){try{return Sd.on(e,Id[e]),!0}catch(e){return!1}}),Sd.emit=Bd,Sd.reallyExit=Fd)};_d.exports.load=Dd;var Md=Sd.reallyExit,Fd=function(e){kd(ue.process)&&(Sd.exitCode=e||0,Rd("exit",Sd.exitCode,null),Rd("afterexit",Sd.exitCode,null),Md.call(Sd,Sd.exitCode))},Hd=Sd.emit,Bd=function(e,t){if("exit"===e&&kd(ue.process)){void 0!==t&&(Sd.exitCode=t);var r=Hd.apply(this,arguments);return Rd("exit",Sd.exitCode,null),Rd("afterexit",Sd.exitCode,null),r}return Hd.apply(this,arguments)}}else _d.exports=function(){return function(){}};var Ud=zd;zd.strict=Gd,zd.loose=Kd;var jd=Object.prototype.toString,qd={"[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 zd(e){return Gd(e)||Kd(e)}function Gd(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 Kd(e){return qd[jd.call(e)]}var $d=Ud.strict;vd.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=Wd(im(()=>i)),a=Yd.resolve(e);try{await function(e){return new Promise(t=>{em[e]||(em[e]=[]),em[e].push(t),1===em[e].length&&t()})}(a);const o=await Zd(Vd.realpath)(e).catch(()=>e);if(i=nm(o),!r.mode||!r.chown){const e=await Zd(Vd.stat)(o).catch(()=>{});e&&(null==r.mode&&(r.mode=e.mode),null==r.chown&&process.getuid&&(r.chown={uid:e.uid,gid:e.gid}))}n=await Zd(Vd.open)(i,"w",r.mode),r.tmpfileCreated&&await r.tmpfileCreated(i),Xd(t)&&(t=Jd(t)),Buffer.isBuffer(t)?await Zd(Vd.write)(n,t,0,t.length,0):null!=t&&await Zd(Vd.write)(n,String(t),0,String(r.encoding||"utf8")),!1!==r.fsync&&await Zd(Vd.fsync)(n),await Zd(Vd.close)(n),n=null,r.chown&&await Zd(Vd.chown)(i,r.chown.uid,r.chown.gid).catch(e=>{if(!om(e))throw e}),r.mode&&await Zd(Vd.chmod)(i,r.mode).catch(e=>{if(!om(e))throw e}),await Zd(Vd.rename)(i,o)}finally{n&&await Zd(Vd.close)(n).catch(()=>{}),o(),await Zd(Vd.unlink)(i).catch(()=>{}),em[a].shift(),em[a].length>0?em[a][0]():delete em[a]}}(e,t,r);n&&i.then(n,n);return i},vd.exports.sync=function(e,t,r){"string"==typeof r?r={encoding:r}:r||(r={});try{e=Vd.realpathSync(e)}catch(e){}const n=nm(e);if(!r.mode||!r.chown)try{const t=Vd.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=im(n),a=Wd(o);let s=!0;try{if(i=Vd.openSync(n,"w",r.mode||438),r.tmpfileCreated&&r.tmpfileCreated(n),Xd(t)&&(t=Jd(t)),Buffer.isBuffer(t)?Vd.writeSync(i,t,0,t.length,0):null!=t&&Vd.writeSync(i,String(t),0,String(r.encoding||"utf8")),!1!==r.fsync&&Vd.fsyncSync(i),Vd.closeSync(i),i=null,r.chown)try{Vd.chownSync(n,r.chown.uid,r.chown.gid)}catch(e){if(!om(e))throw e}if(r.mode)try{Vd.chmodSync(n,r.mode)}catch(e){if(!om(e))throw e}Vd.renameSync(n,e),s=!1}finally{if(i)try{Vd.closeSync(i)}catch(e){}a(),s&&o()}},vd.exports._getTmpname=nm,vd.exports._cleanupOnExit=im;const Vd=Q.default,Qd=bd.exports,Wd=_d.exports,Yd=M.default,Xd=Ud,Jd=function(e){if($d(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:Zd}=ie.default,em={},tm=function(){try{return require("worker_threads").threadId}catch(e){return 0}}();let rm=0;function nm(e){return e+"."+Qd(__filename).hash(String(process.pid)).hash(String(tm)).hash(String(++rm)).result()}function im(e){return()=>{try{Vd.unlinkSync("function"==typeof e?e():e)}catch(e){}}}function om(e){if("ENOSYS"===e.code)return!0;return!(process.getuid&&0===process.getuid()||"EINVAL"!==e.code&&"EPERM"!==e.code)}var am=vd.exports;const sm=e=>{const t=typeof e;return null!==e&&("object"===t||"function"===t)},cm=new Set(["__proto__","prototype","constructor"]);function lm(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=>cm.has(e))?[]:r}var um={get(e,t,r){if(!sm(e)||"string"!=typeof t)return void 0===r?e:r;const n=lm(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(!sm(e)||"string"!=typeof t)return e;const n=e,i=lm(t);for(let t=0;t<i.length;t++){const n=i[t];sm(e[n])||(e[n]={}),t===i.length-1&&(e[n]=r),e=e[n]}return n},delete(e,t){if(!sm(e)||"string"!=typeof t)return!1;const r=lm(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],!sm(e))return!1}},has(e,t){if(!sm(e)||"string"!=typeof t)return!1;const r=lm(t);if(0===r.length)return!1;for(let t=0;t<r.length;t++){if(!sm(e))return!1;if(!(r[t]in e))return!1;e=e[r[t]]}return!0}};const hm=w.promisify(ae.default.randomBytes),pm="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-._~".split(""),fm="0123456789".split(""),dm="CDEHKMPRTUWXY012458".split(""),mm="!\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~".split(""),gm="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),Em=new Set([void 0,"hex","base64","url-safe","numeric","distinguishable","ascii-printable","alphanumeric"]),ym=(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(!Em.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,pm);if("numeric"===n)return e(r,fm);if("distinguishable"===n)return e(r,dm);if("ascii-printable"===n)return e(r,mm);if("alphanumeric"===n)return e(r,gm);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(""))},Tm=ym((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=ae.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)=>ae.default.randomBytes(e).toString(t).slice(0,r));Tm.async=ym(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 hm(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 hm(e)).toString(t).slice(0,r));const vm=Ed||M.default.join(re.default.tmpdir(),Tm({length:32})),bm="You don't have access to this file.",_m={mode:448,recursive:!0},Am={mode:384};const Sm=new class{constructor(e,t,r={}){const n=r.globalConfigPath?M.default.join(e,"config.json"):M.default.join("configstore",`${e}.json`);this._path=r.configPath||M.default.join(vm,n),t&&(this.all={...t,...this.all})}get all(){try{return JSON.parse(fd.readFileSync(this._path,"utf8"))}catch(e){if("ENOENT"===e.code)return{};if("EACCES"===e.code&&(e.message=`${e.message}\n${bm}\n`),"SyntaxError"===e.name)return am.sync(this._path,"",Am),{};throw e}}set all(e){try{fd.mkdirSync(M.default.dirname(this._path),_m),am.sync(this._path,JSON.stringify(e,void 0,"\t"),Am)}catch(e){throw"EACCES"===e.code&&(e.message=`${e.message}\n${bm}\n`),e}}get size(){return Object.keys(this.all||{}).length}get(e){return um.get(this.all,e)}set(e,t){const r=this.all;if(1===arguments.length)for(const t of Object.keys(e))um.set(r,t,e[t]);else um.set(r,e,t);this.all=r}has(e){return um.has(this.all,e)}delete(e){const t=this.all;um.delete(t,e),this.all=t}clear(){this.all={}}get path(){return this._path}}("ttx",{plugins_host:"https://plugins.x.topthink.com"});function km(e){return e?Sm.get(e):Sm.all}const Cm={json:Sf,html:Cf,ebook:Uf};var xm={};const wm=[65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111];xm.REPLACEMENT_CHARACTER="�",xm.CODE_POINTS={EOF:-1,NULL:0,TABULATION:9,CARRIAGE_RETURN:13,LINE_FEED:10,FORM_FEED:12,SPACE:32,EXCLAMATION_MARK:33,QUOTATION_MARK:34,NUMBER_SIGN:35,AMPERSAND:38,APOSTROPHE:39,HYPHEN_MINUS:45,SOLIDUS:47,DIGIT_0:48,DIGIT_9:57,SEMICOLON:59,LESS_THAN_SIGN:60,EQUALS_SIGN:61,GREATER_THAN_SIGN:62,QUESTION_MARK:63,LATIN_CAPITAL_A:65,LATIN_CAPITAL_F:70,LATIN_CAPITAL_X:88,LATIN_CAPITAL_Z:90,RIGHT_SQUARE_BRACKET:93,GRAVE_ACCENT:96,LATIN_SMALL_A:97,LATIN_SMALL_F:102,LATIN_SMALL_X:120,LATIN_SMALL_Z:122,REPLACEMENT_CHARACTER:65533},xm.CODE_POINT_SEQUENCES={DASH_DASH_STRING:[45,45],DOCTYPE_STRING:[68,79,67,84,89,80,69],CDATA_START_STRING:[91,67,68,65,84,65,91],SCRIPT_STRING:[115,99,114,105,112,116],PUBLIC_STRING:[80,85,66,76,73,67],SYSTEM_STRING:[83,89,83,84,69,77]},xm.isSurrogate=function(e){return e>=55296&&e<=57343},xm.isSurrogatePair=function(e){return e>=56320&&e<=57343},xm.getSurrogatePairCodePoint=function(e,t){return 1024*(e-55296)+9216+t},xm.isControlCodePoint=function(e){return 32!==e&&10!==e&&13!==e&&9!==e&&12!==e&&e>=1&&e<=31||e>=127&&e<=159},xm.isUndefinedCodePoint=function(e){return e>=64976&&e<=65007||wm.indexOf(e)>-1};var Om={controlCharacterInInputStream:"control-character-in-input-stream",noncharacterInInputStream:"noncharacter-in-input-stream",surrogateInInputStream:"surrogate-in-input-stream",nonVoidHtmlElementStartTagWithTrailingSolidus:"non-void-html-element-start-tag-with-trailing-solidus",endTagWithAttributes:"end-tag-with-attributes",endTagWithTrailingSolidus:"end-tag-with-trailing-solidus",unexpectedSolidusInTag:"unexpected-solidus-in-tag",unexpectedNullCharacter:"unexpected-null-character",unexpectedQuestionMarkInsteadOfTagName:"unexpected-question-mark-instead-of-tag-name",invalidFirstCharacterOfTagName:"invalid-first-character-of-tag-name",unexpectedEqualsSignBeforeAttributeName:"unexpected-equals-sign-before-attribute-name",missingEndTagName:"missing-end-tag-name",unexpectedCharacterInAttributeName:"unexpected-character-in-attribute-name",unknownNamedCharacterReference:"unknown-named-character-reference",missingSemicolonAfterCharacterReference:"missing-semicolon-after-character-reference",unexpectedCharacterAfterDoctypeSystemIdentifier:"unexpected-character-after-doctype-system-identifier",unexpectedCharacterInUnquotedAttributeValue:"unexpected-character-in-unquoted-attribute-value",eofBeforeTagName:"eof-before-tag-name",eofInTag:"eof-in-tag",missingAttributeValue:"missing-attribute-value",missingWhitespaceBetweenAttributes:"missing-whitespace-between-attributes",missingWhitespaceAfterDoctypePublicKeyword:"missing-whitespace-after-doctype-public-keyword",missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers:"missing-whitespace-between-doctype-public-and-system-identifiers",missingWhitespaceAfterDoctypeSystemKeyword:"missing-whitespace-after-doctype-system-keyword",missingQuoteBeforeDoctypePublicIdentifier:"missing-quote-before-doctype-public-identifier",missingQuoteBeforeDoctypeSystemIdentifier:"missing-quote-before-doctype-system-identifier",missingDoctypePublicIdentifier:"missing-doctype-public-identifier",missingDoctypeSystemIdentifier:"missing-doctype-system-identifier",abruptDoctypePublicIdentifier:"abrupt-doctype-public-identifier",abruptDoctypeSystemIdentifier:"abrupt-doctype-system-identifier",cdataInHtmlContent:"cdata-in-html-content",incorrectlyOpenedComment:"incorrectly-opened-comment",eofInScriptHtmlCommentLikeText:"eof-in-script-html-comment-like-text",eofInDoctype:"eof-in-doctype",nestedComment:"nested-comment",abruptClosingOfEmptyComment:"abrupt-closing-of-empty-comment",eofInComment:"eof-in-comment",incorrectlyClosedComment:"incorrectly-closed-comment",eofInCdata:"eof-in-cdata",absenceOfDigitsInNumericCharacterReference:"absence-of-digits-in-numeric-character-reference",nullCharacterReference:"null-character-reference",surrogateCharacterReference:"surrogate-character-reference",characterReferenceOutsideUnicodeRange:"character-reference-outside-unicode-range",controlCharacterReference:"control-character-reference",noncharacterCharacterReference:"noncharacter-character-reference",missingWhitespaceBeforeDoctypeName:"missing-whitespace-before-doctype-name",missingDoctypeName:"missing-doctype-name",invalidCharacterSequenceAfterDoctypeName:"invalid-character-sequence-after-doctype-name",duplicateAttribute:"duplicate-attribute",nonConformingDoctype:"non-conforming-doctype",missingDoctype:"missing-doctype",misplacedDoctype:"misplaced-doctype",endTagWithoutMatchingOpenElement:"end-tag-without-matching-open-element",closingOfElementWithOpenChildElements:"closing-of-element-with-open-child-elements",disallowedContentInNoscriptInHead:"disallowed-content-in-noscript-in-head",openElementsLeftAfterEof:"open-elements-left-after-eof",abandonedHeadElementChild:"abandoned-head-element-child",misplacedStartTagForHeadElement:"misplaced-start-tag-for-head-element",nestedNoscriptInHead:"nested-noscript-in-head",eofInElementThatCanContainOnlyText:"eof-in-element-that-can-contain-only-text"};const Nm=xm,Pm=Om,Rm=Nm.CODE_POINTS;var Im=class{constructor(){this.html=null,this.pos=-1,this.lastGapPos=-1,this.lastCharPos=-1,this.gapStack=[],this.skipNextNewLine=!1,this.lastChunkWritten=!1,this.endOfChunkHit=!1,this.bufferWaterline=65536}_err(){}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(e){if(this.pos!==this.lastCharPos){const t=this.html.charCodeAt(this.pos+1);if(Nm.isSurrogatePair(t))return this.pos++,this._addGap(),Nm.getSurrogatePairCodePoint(e,t)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,Rm.EOF;return this._err(Pm.surrogateInInputStream),e}dropParsedChunk(){this.pos>this.bufferWaterline&&(this.lastCharPos-=this.pos,this.html=this.html.substring(this.pos),this.pos=0,this.lastGapPos=-1,this.gapStack=[])}write(e,t){this.html?this.html+=e:this.html=e,this.lastCharPos=this.html.length-1,this.endOfChunkHit=!1,this.lastChunkWritten=t}insertHtmlAtCurrentPos(e){this.html=this.html.substring(0,this.pos+1)+e+this.html.substring(this.pos+1,this.html.length),this.lastCharPos=this.html.length-1,this.endOfChunkHit=!1}advance(){if(this.pos++,this.pos>this.lastCharPos)return this.endOfChunkHit=!this.lastChunkWritten,Rm.EOF;let e=this.html.charCodeAt(this.pos);if(this.skipNextNewLine&&e===Rm.LINE_FEED)return this.skipNextNewLine=!1,this._addGap(),this.advance();if(e===Rm.CARRIAGE_RETURN)return this.skipNextNewLine=!0,Rm.LINE_FEED;this.skipNextNewLine=!1,Nm.isSurrogate(e)&&(e=this._processSurrogate(e));return e>31&&e<127||e===Rm.LINE_FEED||e===Rm.CARRIAGE_RETURN||e>159&&e<64976||this._checkForProblematicCharacters(e),e}_checkForProblematicCharacters(e){Nm.isControlCodePoint(e)?this._err(Pm.controlCharacterInInputStream):Nm.isUndefinedCodePoint(e)&&this._err(Pm.noncharacterInInputStream)}retreat(){this.pos===this.lastGapPos&&(this.lastGapPos=this.gapStack.pop(),this.pos--),this.pos--}},Lm=new Uint16Array([4,52,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,106,303,412,810,1432,1701,1796,1987,2114,2360,2420,2484,3170,3251,4140,4393,4575,4610,5106,5512,5728,6117,6274,6315,6345,6427,6516,7002,7910,8733,9323,9870,10170,10631,10893,11318,11386,11467,12773,13092,14474,14922,15448,15542,16419,17666,18166,18611,19004,19095,19298,19397,4,16,69,77,97,98,99,102,103,108,109,110,111,112,114,115,116,117,140,150,158,169,176,194,199,210,216,222,226,242,256,266,283,294,108,105,103,5,198,1,59,148,1,198,80,5,38,1,59,156,1,38,99,117,116,101,5,193,1,59,167,1,193,114,101,118,101,59,1,258,4,2,105,121,182,191,114,99,5,194,1,59,189,1,194,59,1,1040,114,59,3,55349,56580,114,97,118,101,5,192,1,59,208,1,192,112,104,97,59,1,913,97,99,114,59,1,256,100,59,1,10835,4,2,103,112,232,237,111,110,59,1,260,102,59,3,55349,56632,112,108,121,70,117,110,99,116,105,111,110,59,1,8289,105,110,103,5,197,1,59,264,1,197,4,2,99,115,272,277,114,59,3,55349,56476,105,103,110,59,1,8788,105,108,100,101,5,195,1,59,292,1,195,109,108,5,196,1,59,301,1,196,4,8,97,99,101,102,111,114,115,117,321,350,354,383,388,394,400,405,4,2,99,114,327,336,107,115,108,97,115,104,59,1,8726,4,2,118,119,342,345,59,1,10983,101,100,59,1,8966,121,59,1,1041,4,3,99,114,116,362,369,379,97,117,115,101,59,1,8757,110,111,117,108,108,105,115,59,1,8492,97,59,1,914,114,59,3,55349,56581,112,102,59,3,55349,56633,101,118,101,59,1,728,99,114,59,1,8492,109,112,101,113,59,1,8782,4,14,72,79,97,99,100,101,102,104,105,108,111,114,115,117,442,447,456,504,542,547,569,573,577,616,678,784,790,796,99,121,59,1,1063,80,89,5,169,1,59,454,1,169,4,3,99,112,121,464,470,497,117,116,101,59,1,262,4,2,59,105,476,478,1,8914,116,97,108,68,105,102,102,101,114,101,110,116,105,97,108,68,59,1,8517,108,101,121,115,59,1,8493,4,4,97,101,105,111,514,520,530,535,114,111,110,59,1,268,100,105,108,5,199,1,59,528,1,199,114,99,59,1,264,110,105,110,116,59,1,8752,111,116,59,1,266,4,2,100,110,553,560,105,108,108,97,59,1,184,116,101,114,68,111,116,59,1,183,114,59,1,8493,105,59,1,935,114,99,108,101,4,4,68,77,80,84,591,596,603,609,111,116,59,1,8857,105,110,117,115,59,1,8854,108,117,115,59,1,8853,105,109,101,115,59,1,8855,111,4,2,99,115,623,646,107,119,105,115,101,67,111,110,116,111,117,114,73,110,116,101,103,114,97,108,59,1,8754,101,67,117,114,108,121,4,2,68,81,658,671,111,117,98,108,101,81,117,111,116,101,59,1,8221,117,111,116,101,59,1,8217,4,4,108,110,112,117,688,701,736,753,111,110,4,2,59,101,696,698,1,8759,59,1,10868,4,3,103,105,116,709,717,722,114,117,101,110,116,59,1,8801,110,116,59,1,8751,111,117,114,73,110,116,101,103,114,97,108,59,1,8750,4,2,102,114,742,745,59,1,8450,111,100,117,99,116,59,1,8720,110,116,101,114,67,108,111,99,107,119,105,115,101,67,111,110,116,111,117,114,73,110,116,101,103,114,97,108,59,1,8755,111,115,115,59,1,10799,99,114,59,3,55349,56478,112,4,2,59,67,803,805,1,8915,97,112,59,1,8781,4,11,68,74,83,90,97,99,101,102,105,111,115,834,850,855,860,865,888,903,916,921,1011,1415,4,2,59,111,840,842,1,8517,116,114,97,104,100,59,1,10513,99,121,59,1,1026,99,121,59,1,1029,99,121,59,1,1039,4,3,103,114,115,873,879,883,103,101,114,59,1,8225,114,59,1,8609,104,118,59,1,10980,4,2,97,121,894,900,114,111,110,59,1,270,59,1,1044,108,4,2,59,116,910,912,1,8711,97,59,1,916,114,59,3,55349,56583,4,2,97,102,927,998,4,2,99,109,933,992,114,105,116,105,99,97,108,4,4,65,68,71,84,950,957,978,985,99,117,116,101,59,1,180,111,4,2,116,117,964,967,59,1,729,98,108,101,65,99,117,116,101,59,1,733,114,97,118,101,59,1,96,105,108,100,101,59,1,732,111,110,100,59,1,8900,102,101,114,101,110,116,105,97,108,68,59,1,8518,4,4,112,116,117,119,1021,1026,1048,1249,102,59,3,55349,56635,4,3,59,68,69,1034,1036,1041,1,168,111,116,59,1,8412,113,117,97,108,59,1,8784,98,108,101,4,6,67,68,76,82,85,86,1065,1082,1101,1189,1211,1236,111,110,116,111,117,114,73,110,116,101,103,114,97,108,59,1,8751,111,4,2,116,119,1089,1092,59,1,168,110,65,114,114,111,119,59,1,8659,4,2,101,111,1107,1141,102,116,4,3,65,82,84,1117,1124,1136,114,114,111,119,59,1,8656,105,103,104,116,65,114,114,111,119,59,1,8660,101,101,59,1,10980,110,103,4,2,76,82,1149,1177,101,102,116,4,2,65,82,1158,1165,114,114,111,119,59,1,10232,105,103,104,116,65,114,114,111,119,59,1,10234,105,103,104,116,65,114,114,111,119,59,1,10233,105,103,104,116,4,2,65,84,1199,1206,114,114,111,119,59,1,8658,101,101,59,1,8872,112,4,2,65,68,1218,1225,114,114,111,119,59,1,8657,111,119,110,65,114,114,111,119,59,1,8661,101,114,116,105,99,97,108,66,97,114,59,1,8741,110,4,6,65,66,76,82,84,97,1264,1292,1299,1352,1391,1408,114,114,111,119,4,3,59,66,85,1276,1278,1283,1,8595,97,114,59,1,10515,112,65,114,114,111,119,59,1,8693,114,101,118,101,59,1,785,101,102,116,4,3,82,84,86,1310,1323,1334,105,103,104,116,86,101,99,116,111,114,59,1,10576,101,101,86,101,99,116,111,114,59,1,10590,101,99,116,111,114,4,2,59,66,1345,1347,1,8637,97,114,59,1,10582,105,103,104,116,4,2,84,86,1362,1373,101,101,86,101,99,116,111,114,59,1,10591,101,99,116,111,114,4,2,59,66,1384,1386,1,8641,97,114,59,1,10583,101,101,4,2,59,65,1399,1401,1,8868,114,114,111,119,59,1,8615,114,114,111,119,59,1,8659,4,2,99,116,1421,1426,114,59,3,55349,56479,114,111,107,59,1,272,4,16,78,84,97,99,100,102,103,108,109,111,112,113,115,116,117,120,1466,1470,1478,1489,1515,1520,1525,1536,1544,1593,1609,1617,1650,1664,1668,1677,71,59,1,330,72,5,208,1,59,1476,1,208,99,117,116,101,5,201,1,59,1487,1,201,4,3,97,105,121,1497,1503,1512,114,111,110,59,1,282,114,99,5,202,1,59,1510,1,202,59,1,1069,111,116,59,1,278,114,59,3,55349,56584,114,97,118,101,5,200,1,59,1534,1,200,101,109,101,110,116,59,1,8712,4,2,97,112,1550,1555,99,114,59,1,274,116,121,4,2,83,86,1563,1576,109,97,108,108,83,113,117,97,114,101,59,1,9723,101,114,121,83,109,97,108,108,83,113,117,97,114,101,59,1,9643,4,2,103,112,1599,1604,111,110,59,1,280,102,59,3,55349,56636,115,105,108,111,110,59,1,917,117,4,2,97,105,1624,1640,108,4,2,59,84,1631,1633,1,10869,105,108,100,101,59,1,8770,108,105,98,114,105,117,109,59,1,8652,4,2,99,105,1656,1660,114,59,1,8496,109,59,1,10867,97,59,1,919,109,108,5,203,1,59,1675,1,203,4,2,105,112,1683,1689,115,116,115,59,1,8707,111,110,101,110,116,105,97,108,69,59,1,8519,4,5,99,102,105,111,115,1713,1717,1722,1762,1791,121,59,1,1060,114,59,3,55349,56585,108,108,101,100,4,2,83,86,1732,1745,109,97,108,108,83,113,117,97,114,101,59,1,9724,101,114,121,83,109,97,108,108,83,113,117,97,114,101,59,1,9642,4,3,112,114,117,1770,1775,1781,102,59,3,55349,56637,65,108,108,59,1,8704,114,105,101,114,116,114,102,59,1,8497,99,114,59,1,8497,4,12,74,84,97,98,99,100,102,103,111,114,115,116,1822,1827,1834,1848,1855,1877,1882,1887,1890,1896,1978,1984,99,121,59,1,1027,5,62,1,59,1832,1,62,109,109,97,4,2,59,100,1843,1845,1,915,59,1,988,114,101,118,101,59,1,286,4,3,101,105,121,1863,1869,1874,100,105,108,59,1,290,114,99,59,1,284,59,1,1043,111,116,59,1,288,114,59,3,55349,56586,59,1,8921,112,102,59,3,55349,56638,101,97,116,101,114,4,6,69,70,71,76,83,84,1915,1933,1944,1953,1959,1971,113,117,97,108,4,2,59,76,1925,1927,1,8805,101,115,115,59,1,8923,117,108,108,69,113,117,97,108,59,1,8807,114,101,97,116,101,114,59,1,10914,101,115,115,59,1,8823,108,97,110,116,69,113,117,97,108,59,1,10878,105,108,100,101,59,1,8819,99,114,59,3,55349,56482,59,1,8811,4,8,65,97,99,102,105,111,115,117,2005,2012,2026,2032,2036,2049,2073,2089,82,68,99,121,59,1,1066,4,2,99,116,2018,2023,101,107,59,1,711,59,1,94,105,114,99,59,1,292,114,59,1,8460,108,98,101,114,116,83,112,97,99,101,59,1,8459,4,2,112,114,2055,2059,102,59,1,8461,105,122,111,110,116,97,108,76,105,110,101,59,1,9472,4,2,99,116,2079,2083,114,59,1,8459,114,111,107,59,1,294,109,112,4,2,68,69,2097,2107,111,119,110,72,117,109,112,59,1,8782,113,117,97,108,59,1,8783,4,14,69,74,79,97,99,100,102,103,109,110,111,115,116,117,2144,2149,2155,2160,2171,2189,2194,2198,2209,2245,2307,2329,2334,2341,99,121,59,1,1045,108,105,103,59,1,306,99,121,59,1,1025,99,117,116,101,5,205,1,59,2169,1,205,4,2,105,121,2177,2186,114,99,5,206,1,59,2184,1,206,59,1,1048,111,116,59,1,304,114,59,1,8465,114,97,118,101,5,204,1,59,2207,1,204,4,3,59,97,112,2217,2219,2238,1,8465,4,2,99,103,2225,2229,114,59,1,298,105,110,97,114,121,73,59,1,8520,108,105,101,115,59,1,8658,4,2,116,118,2251,2281,4,2,59,101,2257,2259,1,8748,4,2,103,114,2265,2271,114,97,108,59,1,8747,115,101,99,116,105,111,110,59,1,8898,105,115,105,98,108,101,4,2,67,84,2293,2300,111,109,109,97,59,1,8291,105,109,101,115,59,1,8290,4,3,103,112,116,2315,2320,2325,111,110,59,1,302,102,59,3,55349,56640,97,59,1,921,99,114,59,1,8464,105,108,100,101,59,1,296,4,2,107,109,2347,2352,99,121,59,1,1030,108,5,207,1,59,2358,1,207,4,5,99,102,111,115,117,2372,2386,2391,2397,2414,4,2,105,121,2378,2383,114,99,59,1,308,59,1,1049,114,59,3,55349,56589,112,102,59,3,55349,56641,4,2,99,101,2403,2408,114,59,3,55349,56485,114,99,121,59,1,1032,107,99,121,59,1,1028,4,7,72,74,97,99,102,111,115,2436,2441,2446,2452,2467,2472,2478,99,121,59,1,1061,99,121,59,1,1036,112,112,97,59,1,922,4,2,101,121,2458,2464,100,105,108,59,1,310,59,1,1050,114,59,3,55349,56590,112,102,59,3,55349,56642,99,114,59,3,55349,56486,4,11,74,84,97,99,101,102,108,109,111,115,116,2508,2513,2520,2562,2585,2981,2986,3004,3011,3146,3167,99,121,59,1,1033,5,60,1,59,2518,1,60,4,5,99,109,110,112,114,2532,2538,2544,2548,2558,117,116,101,59,1,313,98,100,97,59,1,923,103,59,1,10218,108,97,99,101,116,114,102,59,1,8466,114,59,1,8606,4,3,97,101,121,2570,2576,2582,114,111,110,59,1,317,100,105,108,59,1,315,59,1,1051,4,2,102,115,2591,2907,116,4,10,65,67,68,70,82,84,85,86,97,114,2614,2663,2672,2728,2735,2760,2820,2870,2888,2895,4,2,110,114,2620,2633,103,108,101,66,114,97,99,107,101,116,59,1,10216,114,111,119,4,3,59,66,82,2644,2646,2651,1,8592,97,114,59,1,8676,105,103,104,116,65,114,114,111,119,59,1,8646,101,105,108,105,110,103,59,1,8968,111,4,2,117,119,2679,2692,98,108,101,66,114,97,99,107,101,116,59,1,10214,110,4,2,84,86,2699,2710,101,101,86,101,99,116,111,114,59,1,10593,101,99,116,111,114,4,2,59,66,2721,2723,1,8643,97,114,59,1,10585,108,111,111,114,59,1,8970,105,103,104,116,4,2,65,86,2745,2752,114,114,111,119,59,1,8596,101,99,116,111,114,59,1,10574,4,2,101,114,2766,2792,101,4,3,59,65,86,2775,2777,2784,1,8867,114,114,111,119,59,1,8612,101,99,116,111,114,59,1,10586,105,97,110,103,108,101,4,3,59,66,69,2806,2808,2813,1,8882,97,114,59,1,10703,113,117,97,108,59,1,8884,112,4,3,68,84,86,2829,2841,2852,111,119,110,86,101,99,116,111,114,59,1,10577,101,101,86,101,99,116,111,114,59,1,10592,101,99,116,111,114,4,2,59,66,2863,2865,1,8639,97,114,59,1,10584,101,99,116,111,114,4,2,59,66,2881,2883,1,8636,97,114,59,1,10578,114,114,111,119,59,1,8656,105,103,104,116,97,114,114,111,119,59,1,8660,115,4,6,69,70,71,76,83,84,2922,2936,2947,2956,2962,2974,113,117,97,108,71,114,101,97,116,101,114,59,1,8922,117,108,108,69,113,117,97,108,59,1,8806,114,101,97,116,101,114,59,1,8822,101,115,115,59,1,10913,108,97,110,116,69,113,117,97,108,59,1,10877,105,108,100,101,59,1,8818,114,59,3,55349,56591,4,2,59,101,2992,2994,1,8920,102,116,97,114,114,111,119,59,1,8666,105,100,111,116,59,1,319,4,3,110,112,119,3019,3110,3115,103,4,4,76,82,108,114,3030,3058,3070,3098,101,102,116,4,2,65,82,3039,3046,114,114,111,119,59,1,10229,105,103,104,116,65,114,114,111,119,59,1,10231,105,103,104,116,65,114,114,111,119,59,1,10230,101,102,116,4,2,97,114,3079,3086,114,114,111,119,59,1,10232,105,103,104,116,97,114,114,111,119,59,1,10234,105,103,104,116,97,114,114,111,119,59,1,10233,102,59,3,55349,56643,101,114,4,2,76,82,3123,3134,101,102,116,65,114,114,111,119,59,1,8601,105,103,104,116,65,114,114,111,119,59,1,8600,4,3,99,104,116,3154,3158,3161,114,59,1,8466,59,1,8624,114,111,107,59,1,321,59,1,8810,4,8,97,99,101,102,105,111,115,117,3188,3192,3196,3222,3227,3237,3243,3248,112,59,1,10501,121,59,1,1052,4,2,100,108,3202,3213,105,117,109,83,112,97,99,101,59,1,8287,108,105,110,116,114,102,59,1,8499,114,59,3,55349,56592,110,117,115,80,108,117,115,59,1,8723,112,102,59,3,55349,56644,99,114,59,1,8499,59,1,924,4,9,74,97,99,101,102,111,115,116,117,3271,3276,3283,3306,3422,3427,4120,4126,4137,99,121,59,1,1034,99,117,116,101,59,1,323,4,3,97,101,121,3291,3297,3303,114,111,110,59,1,327,100,105,108,59,1,325,59,1,1053,4,3,103,115,119,3314,3380,3415,97,116,105,118,101,4,3,77,84,86,3327,3340,3365,101,100,105,117,109,83,112,97,99,101,59,1,8203,104,105,4,2,99,110,3348,3357,107,83,112,97,99,101,59,1,8203,83,112,97,99,101,59,1,8203,101,114,121,84,104,105,110,83,112,97,99,101,59,1,8203,116,101,100,4,2,71,76,3389,3405,114,101,97,116,101,114,71,114,101,97,116,101,114,59,1,8811,101,115,115,76,101,115,115,59,1,8810,76,105,110,101,59,1,10,114,59,3,55349,56593,4,4,66,110,112,116,3437,3444,3460,3464,114,101,97,107,59,1,8288,66,114,101,97,107,105,110,103,83,112,97,99,101,59,1,160,102,59,1,8469,4,13,59,67,68,69,71,72,76,78,80,82,83,84,86,3492,3494,3517,3536,3578,3657,3685,3784,3823,3860,3915,4066,4107,1,10988,4,2,111,117,3500,3510,110,103,114,117,101,110,116,59,1,8802,112,67,97,112,59,1,8813,111,117,98,108,101,86,101,114,116,105,99,97,108,66,97,114,59,1,8742,4,3,108,113,120,3544,3552,3571,101,109,101,110,116,59,1,8713,117,97,108,4,2,59,84,3561,3563,1,8800,105,108,100,101,59,3,8770,824,105,115,116,115,59,1,8708,114,101,97,116,101,114,4,7,59,69,70,71,76,83,84,3600,3602,3609,3621,3631,3637,3650,1,8815,113,117,97,108,59,1,8817,117,108,108,69,113,117,97,108,59,3,8807,824,114,101,97,116,101,114,59,3,8811,824,101,115,115,59,1,8825,108,97,110,116,69,113,117,97,108,59,3,10878,824,105,108,100,101,59,1,8821,117,109,112,4,2,68,69,3666,3677,111,119,110,72,117,109,112,59,3,8782,824,113,117,97,108,59,3,8783,824,101,4,2,102,115,3692,3724,116,84,114,105,97,110,103,108,101,4,3,59,66,69,3709,3711,3717,1,8938,97,114,59,3,10703,824,113,117,97,108,59,1,8940,115,4,6,59,69,71,76,83,84,3739,3741,3748,3757,3764,3777,1,8814,113,117,97,108,59,1,8816,114,101,97,116,101,114,59,1,8824,101,115,115,59,3,8810,824,108,97,110,116,69,113,117,97,108,59,3,10877,824,105,108,100,101,59,1,8820,101,115,116,101,100,4,2,71,76,3795,3812,114,101,97,116,101,114,71,114,101,97,116,101,114,59,3,10914,824,101,115,115,76,101,115,115,59,3,10913,824,114,101,99,101,100,101,115,4,3,59,69,83,3838,3840,3848,1,8832,113,117,97,108,59,3,10927,824,108,97,110,116,69,113,117,97,108,59,1,8928,4,2,101,105,3866,3881,118,101,114,115,101,69,108,101,109,101,110,116,59,1,8716,103,104,116,84,114,105,97,110,103,108,101,4,3,59,66,69,3900,3902,3908,1,8939,97,114,59,3,10704,824,113,117,97,108,59,1,8941,4,2,113,117,3921,3973,117,97,114,101,83,117,4,2,98,112,3933,3952,115,101,116,4,2,59,69,3942,3945,3,8847,824,113,117,97,108,59,1,8930,101,114,115,101,116,4,2,59,69,3963,3966,3,8848,824,113,117,97,108,59,1,8931,4,3,98,99,112,3981,4e3,4045,115,101,116,4,2,59,69,3990,3993,3,8834,8402,113,117,97,108,59,1,8840,99,101,101,100,115,4,4,59,69,83,84,4015,4017,4025,4037,1,8833,113,117,97,108,59,3,10928,824,108,97,110,116,69,113,117,97,108,59,1,8929,105,108,100,101,59,3,8831,824,101,114,115,101,116,4,2,59,69,4056,4059,3,8835,8402,113,117,97,108,59,1,8841,105,108,100,101,4,4,59,69,70,84,4080,4082,4089,4100,1,8769,113,117,97,108,59,1,8772,117,108,108,69,113,117,97,108,59,1,8775,105,108,100,101,59,1,8777,101,114,116,105,99,97,108,66,97,114,59,1,8740,99,114,59,3,55349,56489,105,108,100,101,5,209,1,59,4135,1,209,59,1,925,4,14,69,97,99,100,102,103,109,111,112,114,115,116,117,118,4170,4176,4187,4205,4212,4217,4228,4253,4259,4292,4295,4316,4337,4346,108,105,103,59,1,338,99,117,116,101,5,211,1,59,4185,1,211,4,2,105,121,4193,4202,114,99,5,212,1,59,4200,1,212,59,1,1054,98,108,97,99,59,1,336,114,59,3,55349,56594,114,97,118,101,5,210,1,59,4226,1,210,4,3,97,101,105,4236,4241,4246,99,114,59,1,332,103,97,59,1,937,99,114,111,110,59,1,927,112,102,59,3,55349,56646,101,110,67,117,114,108,121,4,2,68,81,4272,4285,111,117,98,108,101,81,117,111,116,101,59,1,8220,117,111,116,101,59,1,8216,59,1,10836,4,2,99,108,4301,4306,114,59,3,55349,56490,97,115,104,5,216,1,59,4314,1,216,105,4,2,108,109,4323,4332,100,101,5,213,1,59,4330,1,213,101,115,59,1,10807,109,108,5,214,1,59,4344,1,214,101,114,4,2,66,80,4354,4380,4,2,97,114,4360,4364,114,59,1,8254,97,99,4,2,101,107,4372,4375,59,1,9182,101,116,59,1,9140,97,114,101,110,116,104,101,115,105,115,59,1,9180,4,9,97,99,102,104,105,108,111,114,115,4413,4422,4426,4431,4435,4438,4448,4471,4561,114,116,105,97,108,68,59,1,8706,121,59,1,1055,114,59,3,55349,56595,105,59,1,934,59,1,928,117,115,77,105,110,117,115,59,1,177,4,2,105,112,4454,4467,110,99,97,114,101,112,108,97,110,101,59,1,8460,102,59,1,8473,4,4,59,101,105,111,4481,4483,4526,4531,1,10939,99,101,100,101,115,4,4,59,69,83,84,4498,4500,4507,4519,1,8826,113,117,97,108,59,1,10927,108,97,110,116,69,113,117,97,108,59,1,8828,105,108,100,101,59,1,8830,109,101,59,1,8243,4,2,100,112,4537,4543,117,99,116,59,1,8719,111,114,116,105,111,110,4,2,59,97,4555,4557,1,8759,108,59,1,8733,4,2,99,105,4567,4572,114,59,3,55349,56491,59,1,936,4,4,85,102,111,115,4585,4594,4599,4604,79,84,5,34,1,59,4592,1,34,114,59,3,55349,56596,112,102,59,1,8474,99,114,59,3,55349,56492,4,12,66,69,97,99,101,102,104,105,111,114,115,117,4636,4642,4650,4681,4704,4763,4767,4771,5047,5069,5081,5094,97,114,114,59,1,10512,71,5,174,1,59,4648,1,174,4,3,99,110,114,4658,4664,4668,117,116,101,59,1,340,103,59,1,10219,114,4,2,59,116,4675,4677,1,8608,108,59,1,10518,4,3,97,101,121,4689,4695,4701,114,111,110,59,1,344,100,105,108,59,1,342,59,1,1056,4,2,59,118,4710,4712,1,8476,101,114,115,101,4,2,69,85,4722,4748,4,2,108,113,4728,4736,101,109,101,110,116,59,1,8715,117,105,108,105,98,114,105,117,109,59,1,8651,112,69,113,117,105,108,105,98,114,105,117,109,59,1,10607,114,59,1,8476,111,59,1,929,103,104,116,4,8,65,67,68,70,84,85,86,97,4792,4840,4849,4905,4912,4972,5022,5040,4,2,110,114,4798,4811,103,108,101,66,114,97,99,107,101,116,59,1,10217,114,111,119,4,3,59,66,76,4822,4824,4829,1,8594,97,114,59,1,8677,101,102,116,65,114,114,111,119,59,1,8644,101,105,108,105,110,103,59,1,8969,111,4,2,117,119,4856,4869,98,108,101,66,114,97,99,107,101,116,59,1,10215,110,4,2,84,86,4876,4887,101,101,86,101,99,116,111,114,59,1,10589,101,99,116,111,114,4,2,59,66,4898,4900,1,8642,97,114,59,1,10581,108,111,111,114,59,1,8971,4,2,101,114,4918,4944,101,4,3,59,65,86,4927,4929,4936,1,8866,114,114,111,119,59,1,8614,101,99,116,111,114,59,1,10587,105,97,110,103,108,101,4,3,59,66,69,4958,4960,4965,1,8883,97,114,59,1,10704,113,117,97,108,59,1,8885,112,4,3,68,84,86,4981,4993,5004,111,119,110,86,101,99,116,111,114,59,1,10575,101,101,86,101,99,116,111,114,59,1,10588,101,99,116,111,114,4,2,59,66,5015,5017,1,8638,97,114,59,1,10580,101,99,116,111,114,4,2,59,66,5033,5035,1,8640,97,114,59,1,10579,114,114,111,119,59,1,8658,4,2,112,117,5053,5057,102,59,1,8477,110,100,73,109,112,108,105,101,115,59,1,10608,105,103,104,116,97,114,114,111,119,59,1,8667,4,2,99,104,5087,5091,114,59,1,8475,59,1,8625,108,101,68,101,108,97,121,101,100,59,1,10740,4,13,72,79,97,99,102,104,105,109,111,113,115,116,117,5134,5150,5157,5164,5198,5203,5259,5265,5277,5283,5374,5380,5385,4,2,67,99,5140,5146,72,99,121,59,1,1065,121,59,1,1064,70,84,99,121,59,1,1068,99,117,116,101,59,1,346,4,5,59,97,101,105,121,5176,5178,5184,5190,5195,1,10940,114,111,110,59,1,352,100,105,108,59,1,350,114,99,59,1,348,59,1,1057,114,59,3,55349,56598,111,114,116,4,4,68,76,82,85,5216,5227,5238,5250,111,119,110,65,114,114,111,119,59,1,8595,101,102,116,65,114,114,111,119,59,1,8592,105,103,104,116,65,114,114,111,119,59,1,8594,112,65,114,114,111,119,59,1,8593,103,109,97,59,1,931,97,108,108,67,105,114,99,108,101,59,1,8728,112,102,59,3,55349,56650,4,2,114,117,5289,5293,116,59,1,8730,97,114,101,4,4,59,73,83,85,5306,5308,5322,5367,1,9633,110,116,101,114,115,101,99,116,105,111,110,59,1,8851,117,4,2,98,112,5329,5347,115,101,116,4,2,59,69,5338,5340,1,8847,113,117,97,108,59,1,8849,101,114,115,101,116,4,2,59,69,5358,5360,1,8848,113,117,97,108,59,1,8850,110,105,111,110,59,1,8852,99,114,59,3,55349,56494,97,114,59,1,8902,4,4,98,99,109,112,5395,5420,5475,5478,4,2,59,115,5401,5403,1,8912,101,116,4,2,59,69,5411,5413,1,8912,113,117,97,108,59,1,8838,4,2,99,104,5426,5468,101,101,100,115,4,4,59,69,83,84,5440,5442,5449,5461,1,8827,113,117,97,108,59,1,10928,108,97,110,116,69,113,117,97,108,59,1,8829,105,108,100,101,59,1,8831,84,104,97,116,59,1,8715,59,1,8721,4,3,59,101,115,5486,5488,5507,1,8913,114,115,101,116,4,2,59,69,5498,5500,1,8835,113,117,97,108,59,1,8839,101,116,59,1,8913,4,11,72,82,83,97,99,102,104,105,111,114,115,5536,5546,5552,5567,5579,5602,5607,5655,5695,5701,5711,79,82,78,5,222,1,59,5544,1,222,65,68,69,59,1,8482,4,2,72,99,5558,5563,99,121,59,1,1035,121,59,1,1062,4,2,98,117,5573,5576,59,1,9,59,1,932,4,3,97,101,121,5587,5593,5599,114,111,110,59,1,356,100,105,108,59,1,354,59,1,1058,114,59,3,55349,56599,4,2,101,105,5613,5631,4,2,114,116,5619,5627,101,102,111,114,101,59,1,8756,97,59,1,920,4,2,99,110,5637,5647,107,83,112,97,99,101,59,3,8287,8202,83,112,97,99,101,59,1,8201,108,100,101,4,4,59,69,70,84,5668,5670,5677,5688,1,8764,113,117,97,108,59,1,8771,117,108,108,69,113,117,97,108,59,1,8773,105,108,100,101,59,1,8776,112,102,59,3,55349,56651,105,112,108,101,68,111,116,59,1,8411,4,2,99,116,5717,5722,114,59,3,55349,56495,114,111,107,59,1,358,4,14,97,98,99,100,102,103,109,110,111,112,114,115,116,117,5758,5789,5805,5823,5830,5835,5846,5852,5921,5937,6089,6095,6101,6108,4,2,99,114,5764,5774,117,116,101,5,218,1,59,5772,1,218,114,4,2,59,111,5781,5783,1,8607,99,105,114,59,1,10569,114,4,2,99,101,5796,5800,121,59,1,1038,118,101,59,1,364,4,2,105,121,5811,5820,114,99,5,219,1,59,5818,1,219,59,1,1059,98,108,97,99,59,1,368,114,59,3,55349,56600,114,97,118,101,5,217,1,59,5844,1,217,97,99,114,59,1,362,4,2,100,105,5858,5905,101,114,4,2,66,80,5866,5892,4,2,97,114,5872,5876,114,59,1,95,97,99,4,2,101,107,5884,5887,59,1,9183,101,116,59,1,9141,97,114,101,110,116,104,101,115,105,115,59,1,9181,111,110,4,2,59,80,5913,5915,1,8899,108,117,115,59,1,8846,4,2,103,112,5927,5932,111,110,59,1,370,102,59,3,55349,56652,4,8,65,68,69,84,97,100,112,115,5955,5985,5996,6009,6026,6033,6044,6075,114,114,111,119,4,3,59,66,68,5967,5969,5974,1,8593,97,114,59,1,10514,111,119,110,65,114,114,111,119,59,1,8645,111,119,110,65,114,114,111,119,59,1,8597,113,117,105,108,105,98,114,105,117,109,59,1,10606,101,101,4,2,59,65,6017,6019,1,8869,114,114,111,119,59,1,8613,114,114,111,119,59,1,8657,111,119,110,97,114,114,111,119,59,1,8661,101,114,4,2,76,82,6052,6063,101,102,116,65,114,114,111,119,59,1,8598,105,103,104,116,65,114,114,111,119,59,1,8599,105,4,2,59,108,6082,6084,1,978,111,110,59,1,933,105,110,103,59,1,366,99,114,59,3,55349,56496,105,108,100,101,59,1,360,109,108,5,220,1,59,6115,1,220,4,9,68,98,99,100,101,102,111,115,118,6137,6143,6148,6152,6166,6250,6255,6261,6267,97,115,104,59,1,8875,97,114,59,1,10987,121,59,1,1042,97,115,104,4,2,59,108,6161,6163,1,8873,59,1,10982,4,2,101,114,6172,6175,59,1,8897,4,3,98,116,121,6183,6188,6238,97,114,59,1,8214,4,2,59,105,6194,6196,1,8214,99,97,108,4,4,66,76,83,84,6209,6214,6220,6231,97,114,59,1,8739,105,110,101,59,1,124,101,112,97,114,97,116,111,114,59,1,10072,105,108,100,101,59,1,8768,84,104,105,110,83,112,97,99,101,59,1,8202,114,59,3,55349,56601,112,102,59,3,55349,56653,99,114,59,3,55349,56497,100,97,115,104,59,1,8874,4,5,99,101,102,111,115,6286,6292,6298,6303,6309,105,114,99,59,1,372,100,103,101,59,1,8896,114,59,3,55349,56602,112,102,59,3,55349,56654,99,114,59,3,55349,56498,4,4,102,105,111,115,6325,6330,6333,6339,114,59,3,55349,56603,59,1,926,112,102,59,3,55349,56655,99,114,59,3,55349,56499,4,9,65,73,85,97,99,102,111,115,117,6365,6370,6375,6380,6391,6405,6410,6416,6422,99,121,59,1,1071,99,121,59,1,1031,99,121,59,1,1070,99,117,116,101,5,221,1,59,6389,1,221,4,2,105,121,6397,6402,114,99,59,1,374,59,1,1067,114,59,3,55349,56604,112,102,59,3,55349,56656,99,114,59,3,55349,56500,109,108,59,1,376,4,8,72,97,99,100,101,102,111,115,6445,6450,6457,6472,6477,6501,6505,6510,99,121,59,1,1046,99,117,116,101,59,1,377,4,2,97,121,6463,6469,114,111,110,59,1,381,59,1,1047,111,116,59,1,379,4,2,114,116,6483,6497,111,87,105,100,116,104,83,112,97,99,101,59,1,8203,97,59,1,918,114,59,1,8488,112,102,59,1,8484,99,114,59,3,55349,56501,4,16,97,98,99,101,102,103,108,109,110,111,112,114,115,116,117,119,6550,6561,6568,6612,6622,6634,6645,6672,6699,6854,6870,6923,6933,6963,6974,6983,99,117,116,101,5,225,1,59,6559,1,225,114,101,118,101,59,1,259,4,6,59,69,100,105,117,121,6582,6584,6588,6591,6600,6609,1,8766,59,3,8766,819,59,1,8767,114,99,5,226,1,59,6598,1,226,116,101,5,180,1,59,6607,1,180,59,1,1072,108,105,103,5,230,1,59,6620,1,230,4,2,59,114,6628,6630,1,8289,59,3,55349,56606,114,97,118,101,5,224,1,59,6643,1,224,4,2,101,112,6651,6667,4,2,102,112,6657,6663,115,121,109,59,1,8501,104,59,1,8501,104,97,59,1,945,4,2,97,112,6678,6692,4,2,99,108,6684,6688,114,59,1,257,103,59,1,10815,5,38,1,59,6697,1,38,4,2,100,103,6705,6737,4,5,59,97,100,115,118,6717,6719,6724,6727,6734,1,8743,110,100,59,1,10837,59,1,10844,108,111,112,101,59,1,10840,59,1,10842,4,7,59,101,108,109,114,115,122,6753,6755,6758,6762,6814,6835,6848,1,8736,59,1,10660,101,59,1,8736,115,100,4,2,59,97,6770,6772,1,8737,4,8,97,98,99,100,101,102,103,104,6790,6793,6796,6799,6802,6805,6808,6811,59,1,10664,59,1,10665,59,1,10666,59,1,10667,59,1,10668,59,1,10669,59,1,10670,59,1,10671,116,4,2,59,118,6821,6823,1,8735,98,4,2,59,100,6830,6832,1,8894,59,1,10653,4,2,112,116,6841,6845,104,59,1,8738,59,1,197,97,114,114,59,1,9084,4,2,103,112,6860,6865,111,110,59,1,261,102,59,3,55349,56658,4,7,59,69,97,101,105,111,112,6886,6888,6891,6897,6900,6904,6908,1,8776,59,1,10864,99,105,114,59,1,10863,59,1,8778,100,59,1,8779,115,59,1,39,114,111,120,4,2,59,101,6917,6919,1,8776,113,59,1,8778,105,110,103,5,229,1,59,6931,1,229,4,3,99,116,121,6941,6946,6949,114,59,3,55349,56502,59,1,42,109,112,4,2,59,101,6957,6959,1,8776,113,59,1,8781,105,108,100,101,5,227,1,59,6972,1,227,109,108,5,228,1,59,6981,1,228,4,2,99,105,6989,6997,111,110,105,110,116,59,1,8755,110,116,59,1,10769,4,16,78,97,98,99,100,101,102,105,107,108,110,111,112,114,115,117,7036,7041,7119,7135,7149,7155,7219,7224,7347,7354,7463,7489,7786,7793,7814,7866,111,116,59,1,10989,4,2,99,114,7047,7094,107,4,4,99,101,112,115,7058,7064,7073,7080,111,110,103,59,1,8780,112,115,105,108,111,110,59,1,1014,114,105,109,101,59,1,8245,105,109,4,2,59,101,7088,7090,1,8765,113,59,1,8909,4,2,118,119,7100,7105,101,101,59,1,8893,101,100,4,2,59,103,7113,7115,1,8965,101,59,1,8965,114,107,4,2,59,116,7127,7129,1,9141,98,114,107,59,1,9142,4,2,111,121,7141,7146,110,103,59,1,8780,59,1,1073,113,117,111,59,1,8222,4,5,99,109,112,114,116,7167,7181,7188,7193,7199,97,117,115,4,2,59,101,7176,7178,1,8757,59,1,8757,112,116,121,118,59,1,10672,115,105,59,1,1014,110,111,117,59,1,8492,4,3,97,104,119,7207,7210,7213,59,1,946,59,1,8502,101,101,110,59,1,8812,114,59,3,55349,56607,103,4,7,99,111,115,116,117,118,119,7241,7262,7288,7305,7328,7335,7340,4,3,97,105,117,7249,7253,7258,112,59,1,8898,114,99,59,1,9711,112,59,1,8899,4,3,100,112,116,7270,7275,7281,111,116,59,1,10752,108,117,115,59,1,10753,105,109,101,115,59,1,10754,4,2,113,116,7294,7300,99,117,112,59,1,10758,97,114,59,1,9733,114,105,97,110,103,108,101,4,2,100,117,7318,7324,111,119,110,59,1,9661,112,59,1,9651,112,108,117,115,59,1,10756,101,101,59,1,8897,101,100,103,101,59,1,8896,97,114,111,119,59,1,10509,4,3,97,107,111,7362,7436,7458,4,2,99,110,7368,7432,107,4,3,108,115,116,7377,7386,7394,111,122,101,110,103,101,59,1,10731,113,117,97,114,101,59,1,9642,114,105,97,110,103,108,101,4,4,59,100,108,114,7411,7413,7419,7425,1,9652,111,119,110,59,1,9662,101,102,116,59,1,9666,105,103,104,116,59,1,9656,107,59,1,9251,4,2,49,51,7442,7454,4,2,50,52,7448,7451,59,1,9618,59,1,9617,52,59,1,9619,99,107,59,1,9608,4,2,101,111,7469,7485,4,2,59,113,7475,7478,3,61,8421,117,105,118,59,3,8801,8421,116,59,1,8976,4,4,112,116,119,120,7499,7504,7517,7523,102,59,3,55349,56659,4,2,59,116,7510,7512,1,8869,111,109,59,1,8869,116,105,101,59,1,8904,4,12,68,72,85,86,98,100,104,109,112,116,117,118,7549,7571,7597,7619,7655,7660,7682,7708,7715,7721,7728,7750,4,4,76,82,108,114,7559,7562,7565,7568,59,1,9559,59,1,9556,59,1,9558,59,1,9555,4,5,59,68,85,100,117,7583,7585,7588,7591,7594,1,9552,59,1,9574,59,1,9577,59,1,9572,59,1,9575,4,4,76,82,108,114,7607,7610,7613,7616,59,1,9565,59,1,9562,59,1,9564,59,1,9561,4,7,59,72,76,82,104,108,114,7635,7637,7640,7643,7646,7649,7652,1,9553,59,1,9580,59,1,9571,59,1,9568,59,1,9579,59,1,9570,59,1,9567,111,120,59,1,10697,4,4,76,82,108,114,7670,7673,7676,7679,59,1,9557,59,1,9554,59,1,9488,59,1,9484,4,5,59,68,85,100,117,7694,7696,7699,7702,7705,1,9472,59,1,9573,59,1,9576,59,1,9516,59,1,9524,105,110,117,115,59,1,8863,108,117,115,59,1,8862,105,109,101,115,59,1,8864,4,4,76,82,108,114,7738,7741,7744,7747,59,1,9563,59,1,9560,59,1,9496,59,1,9492,4,7,59,72,76,82,104,108,114,7766,7768,7771,7774,7777,7780,7783,1,9474,59,1,9578,59,1,9569,59,1,9566,59,1,9532,59,1,9508,59,1,9500,114,105,109,101,59,1,8245,4,2,101,118,7799,7804,118,101,59,1,728,98,97,114,5,166,1,59,7812,1,166,4,4,99,101,105,111,7824,7829,7834,7846,114,59,3,55349,56503,109,105,59,1,8271,109,4,2,59,101,7841,7843,1,8765,59,1,8909,108,4,3,59,98,104,7855,7857,7860,1,92,59,1,10693,115,117,98,59,1,10184,4,2,108,109,7872,7885,108,4,2,59,101,7879,7881,1,8226,116,59,1,8226,112,4,3,59,69,101,7894,7896,7899,1,8782,59,1,10926,4,2,59,113,7905,7907,1,8783,59,1,8783,4,15,97,99,100,101,102,104,105,108,111,114,115,116,117,119,121,7942,8021,8075,8080,8121,8126,8157,8279,8295,8430,8446,8485,8491,8707,8726,4,3,99,112,114,7950,7956,8007,117,116,101,59,1,263,4,6,59,97,98,99,100,115,7970,7972,7977,7984,7998,8003,1,8745,110,100,59,1,10820,114,99,117,112,59,1,10825,4,2,97,117,7990,7994,112,59,1,10827,112,59,1,10823,111,116,59,1,10816,59,3,8745,65024,4,2,101,111,8013,8017,116,59,1,8257,110,59,1,711,4,4,97,101,105,117,8031,8046,8056,8061,4,2,112,114,8037,8041,115,59,1,10829,111,110,59,1,269,100,105,108,5,231,1,59,8054,1,231,114,99,59,1,265,112,115,4,2,59,115,8069,8071,1,10828,109,59,1,10832,111,116,59,1,267,4,3,100,109,110,8088,8097,8104,105,108,5,184,1,59,8095,1,184,112,116,121,118,59,1,10674,116,5,162,2,59,101,8112,8114,1,162,114,100,111,116,59,1,183,114,59,3,55349,56608,4,3,99,101,105,8134,8138,8154,121,59,1,1095,99,107,4,2,59,109,8146,8148,1,10003,97,114,107,59,1,10003,59,1,967,114,4,7,59,69,99,101,102,109,115,8174,8176,8179,8258,8261,8268,8273,1,9675,59,1,10691,4,3,59,101,108,8187,8189,8193,1,710,113,59,1,8791,101,4,2,97,100,8200,8223,114,114,111,119,4,2,108,114,8210,8216,101,102,116,59,1,8634,105,103,104,116,59,1,8635,4,5,82,83,97,99,100,8235,8238,8241,8246,8252,59,1,174,59,1,9416,115,116,59,1,8859,105,114,99,59,1,8858,97,115,104,59,1,8861,59,1,8791,110,105,110,116,59,1,10768,105,100,59,1,10991,99,105,114,59,1,10690,117,98,115,4,2,59,117,8288,8290,1,9827,105,116,59,1,9827,4,4,108,109,110,112,8305,8326,8376,8400,111,110,4,2,59,101,8313,8315,1,58,4,2,59,113,8321,8323,1,8788,59,1,8788,4,2,109,112,8332,8344,97,4,2,59,116,8339,8341,1,44,59,1,64,4,3,59,102,108,8352,8354,8358,1,8705,110,59,1,8728,101,4,2,109,120,8365,8371,101,110,116,59,1,8705,101,115,59,1,8450,4,2,103,105,8382,8395,4,2,59,100,8388,8390,1,8773,111,116,59,1,10861,110,116,59,1,8750,4,3,102,114,121,8408,8412,8417,59,3,55349,56660,111,100,59,1,8720,5,169,2,59,115,8424,8426,1,169,114,59,1,8471,4,2,97,111,8436,8441,114,114,59,1,8629,115,115,59,1,10007,4,2,99,117,8452,8457,114,59,3,55349,56504,4,2,98,112,8463,8474,4,2,59,101,8469,8471,1,10959,59,1,10961,4,2,59,101,8480,8482,1,10960,59,1,10962,100,111,116,59,1,8943,4,7,100,101,108,112,114,118,119,8507,8522,8536,8550,8600,8697,8702,97,114,114,4,2,108,114,8516,8519,59,1,10552,59,1,10549,4,2,112,115,8528,8532,114,59,1,8926,99,59,1,8927,97,114,114,4,2,59,112,8545,8547,1,8630,59,1,10557,4,6,59,98,99,100,111,115,8564,8566,8573,8587,8592,8596,1,8746,114,99,97,112,59,1,10824,4,2,97,117,8579,8583,112,59,1,10822,112,59,1,10826,111,116,59,1,8845,114,59,1,10821,59,3,8746,65024,4,4,97,108,114,118,8610,8623,8663,8672,114,114,4,2,59,109,8618,8620,1,8631,59,1,10556,121,4,3,101,118,119,8632,8651,8656,113,4,2,112,115,8639,8645,114,101,99,59,1,8926,117,99,99,59,1,8927,101,101,59,1,8910,101,100,103,101,59,1,8911,101,110,5,164,1,59,8670,1,164,101,97,114,114,111,119,4,2,108,114,8684,8690,101,102,116,59,1,8630,105,103,104,116,59,1,8631,101,101,59,1,8910,101,100,59,1,8911,4,2,99,105,8713,8721,111,110,105,110,116,59,1,8754,110,116,59,1,8753,108,99,116,121,59,1,9005,4,19,65,72,97,98,99,100,101,102,104,105,106,108,111,114,115,116,117,119,122,8773,8778,8783,8821,8839,8854,8887,8914,8930,8944,9036,9041,9058,9197,9227,9258,9281,9297,9305,114,114,59,1,8659,97,114,59,1,10597,4,4,103,108,114,115,8793,8799,8805,8809,103,101,114,59,1,8224,101,116,104,59,1,8504,114,59,1,8595,104,4,2,59,118,8816,8818,1,8208,59,1,8867,4,2,107,108,8827,8834,97,114,111,119,59,1,10511,97,99,59,1,733,4,2,97,121,8845,8851,114,111,110,59,1,271,59,1,1076,4,3,59,97,111,8862,8864,8880,1,8518,4,2,103,114,8870,8876,103,101,114,59,1,8225,114,59,1,8650,116,115,101,113,59,1,10871,4,3,103,108,109,8895,8902,8907,5,176,1,59,8900,1,176,116,97,59,1,948,112,116,121,118,59,1,10673,4,2,105,114,8920,8926,115,104,116,59,1,10623,59,3,55349,56609,97,114,4,2,108,114,8938,8941,59,1,8643,59,1,8642,4,5,97,101,103,115,118,8956,8986,8989,8996,9001,109,4,3,59,111,115,8965,8967,8983,1,8900,110,100,4,2,59,115,8975,8977,1,8900,117,105,116,59,1,9830,59,1,9830,59,1,168,97,109,109,97,59,1,989,105,110,59,1,8946,4,3,59,105,111,9009,9011,9031,1,247,100,101,5,247,2,59,111,9020,9022,1,247,110,116,105,109,101,115,59,1,8903,110,120,59,1,8903,99,121,59,1,1106,99,4,2,111,114,9048,9053,114,110,59,1,8990,111,112,59,1,8973,4,5,108,112,116,117,119,9070,9076,9081,9130,9144,108,97,114,59,1,36,102,59,3,55349,56661,4,5,59,101,109,112,115,9093,9095,9109,9116,9122,1,729,113,4,2,59,100,9102,9104,1,8784,111,116,59,1,8785,105,110,117,115,59,1,8760,108,117,115,59,1,8724,113,117,97,114,101,59,1,8865,98,108,101,98,97,114,119,101,100,103,101,59,1,8966,110,4,3,97,100,104,9153,9160,9172,114,114,111,119,59,1,8595,111,119,110,97,114,114,111,119,115,59,1,8650,97,114,112,111,111,110,4,2,108,114,9184,9190,101,102,116,59,1,8643,105,103,104,116,59,1,8642,4,2,98,99,9203,9211,107,97,114,111,119,59,1,10512,4,2,111,114,9217,9222,114,110,59,1,8991,111,112,59,1,8972,4,3,99,111,116,9235,9248,9252,4,2,114,121,9241,9245,59,3,55349,56505,59,1,1109,108,59,1,10742,114,111,107,59,1,273,4,2,100,114,9264,9269,111,116,59,1,8945,105,4,2,59,102,9276,9278,1,9663,59,1,9662,4,2,97,104,9287,9292,114,114,59,1,8693,97,114,59,1,10607,97,110,103,108,101,59,1,10662,4,2,99,105,9311,9315,121,59,1,1119,103,114,97,114,114,59,1,10239,4,18,68,97,99,100,101,102,103,108,109,110,111,112,113,114,115,116,117,120,9361,9376,9398,9439,9444,9447,9462,9495,9531,9585,9598,9614,9659,9755,9771,9792,9808,9826,4,2,68,111,9367,9372,111,116,59,1,10871,116,59,1,8785,4,2,99,115,9382,9392,117,116,101,5,233,1,59,9390,1,233,116,101,114,59,1,10862,4,4,97,105,111,121,9408,9414,9430,9436,114,111,110,59,1,283,114,4,2,59,99,9421,9423,1,8790,5,234,1,59,9428,1,234,108,111,110,59,1,8789,59,1,1101,111,116,59,1,279,59,1,8519,4,2,68,114,9453,9458,111,116,59,1,8786,59,3,55349,56610,4,3,59,114,115,9470,9472,9482,1,10906,97,118,101,5,232,1,59,9480,1,232,4,2,59,100,9488,9490,1,10902,111,116,59,1,10904,4,4,59,105,108,115,9505,9507,9515,9518,1,10905,110,116,101,114,115,59,1,9191,59,1,8467,4,2,59,100,9524,9526,1,10901,111,116,59,1,10903,4,3,97,112,115,9539,9544,9564,99,114,59,1,275,116,121,4,3,59,115,118,9554,9556,9561,1,8709,101,116,59,1,8709,59,1,8709,112,4,2,49,59,9571,9583,4,2,51,52,9577,9580,59,1,8196,59,1,8197,1,8195,4,2,103,115,9591,9594,59,1,331,112,59,1,8194,4,2,103,112,9604,9609,111,110,59,1,281,102,59,3,55349,56662,4,3,97,108,115,9622,9635,9640,114,4,2,59,115,9629,9631,1,8917,108,59,1,10723,117,115,59,1,10865,105,4,3,59,108,118,9649,9651,9656,1,949,111,110,59,1,949,59,1,1013,4,4,99,115,117,118,9669,9686,9716,9747,4,2,105,111,9675,9680,114,99,59,1,8790,108,111,110,59,1,8789,4,2,105,108,9692,9696,109,59,1,8770,97,110,116,4,2,103,108,9705,9710,116,114,59,1,10902,101,115,115,59,1,10901,4,3,97,101,105,9724,9729,9734,108,115,59,1,61,115,116,59,1,8799,118,4,2,59,68,9741,9743,1,8801,68,59,1,10872,112,97,114,115,108,59,1,10725,4,2,68,97,9761,9766,111,116,59,1,8787,114,114,59,1,10609,4,3,99,100,105,9779,9783,9788,114,59,1,8495,111,116,59,1,8784,109,59,1,8770,4,2,97,104,9798,9801,59,1,951,5,240,1,59,9806,1,240,4,2,109,114,9814,9822,108,5,235,1,59,9820,1,235,111,59,1,8364,4,3,99,105,112,9834,9838,9843,108,59,1,33,115,116,59,1,8707,4,2,101,111,9849,9859,99,116,97,116,105,111,110,59,1,8496,110,101,110,116,105,97,108,101,59,1,8519,4,12,97,99,101,102,105,106,108,110,111,112,114,115,9896,9910,9914,9921,9954,9960,9967,9989,9994,10027,10036,10164,108,108,105,110,103,100,111,116,115,101,113,59,1,8786,121,59,1,1092,109,97,108,101,59,1,9792,4,3,105,108,114,9929,9935,9950,108,105,103,59,1,64259,4,2,105,108,9941,9945,103,59,1,64256,105,103,59,1,64260,59,3,55349,56611,108,105,103,59,1,64257,108,105,103,59,3,102,106,4,3,97,108,116,9975,9979,9984,116,59,1,9837,105,103,59,1,64258,110,115,59,1,9649,111,102,59,1,402,4,2,112,114,1e4,10005,102,59,3,55349,56663,4,2,97,107,10011,10016,108,108,59,1,8704,4,2,59,118,10022,10024,1,8916,59,1,10969,97,114,116,105,110,116,59,1,10765,4,2,97,111,10042,10159,4,2,99,115,10048,10155,4,6,49,50,51,52,53,55,10062,10102,10114,10135,10139,10151,4,6,50,51,52,53,54,56,10076,10083,10086,10093,10096,10099,5,189,1,59,10081,1,189,59,1,8531,5,188,1,59,10091,1,188,59,1,8533,59,1,8537,59,1,8539,4,2,51,53,10108,10111,59,1,8532,59,1,8534,4,3,52,53,56,10122,10129,10132,5,190,1,59,10127,1,190,59,1,8535,59,1,8540,53,59,1,8536,4,2,54,56,10145,10148,59,1,8538,59,1,8541,56,59,1,8542,108,59,1,8260,119,110,59,1,8994,99,114,59,3,55349,56507,4,17,69,97,98,99,100,101,102,103,105,106,108,110,111,114,115,116,118,10206,10217,10247,10254,10268,10273,10358,10363,10374,10380,10385,10406,10458,10464,10470,10497,10610,4,2,59,108,10212,10214,1,8807,59,1,10892,4,3,99,109,112,10225,10231,10244,117,116,101,59,1,501,109,97,4,2,59,100,10239,10241,1,947,59,1,989,59,1,10886,114,101,118,101,59,1,287,4,2,105,121,10260,10265,114,99,59,1,285,59,1,1075,111,116,59,1,289,4,4,59,108,113,115,10283,10285,10288,10308,1,8805,59,1,8923,4,3,59,113,115,10296,10298,10301,1,8805,59,1,8807,108,97,110,116,59,1,10878,4,4,59,99,100,108,10318,10320,10324,10345,1,10878,99,59,1,10921,111,116,4,2,59,111,10332,10334,1,10880,4,2,59,108,10340,10342,1,10882,59,1,10884,4,2,59,101,10351,10354,3,8923,65024,115,59,1,10900,114,59,3,55349,56612,4,2,59,103,10369,10371,1,8811,59,1,8921,109,101,108,59,1,8503,99,121,59,1,1107,4,4,59,69,97,106,10395,10397,10400,10403,1,8823,59,1,10898,59,1,10917,59,1,10916,4,4,69,97,101,115,10416,10419,10434,10453,59,1,8809,112,4,2,59,112,10426,10428,1,10890,114,111,120,59,1,10890,4,2,59,113,10440,10442,1,10888,4,2,59,113,10448,10450,1,10888,59,1,8809,105,109,59,1,8935,112,102,59,3,55349,56664,97,118,101,59,1,96,4,2,99,105,10476,10480,114,59,1,8458,109,4,3,59,101,108,10489,10491,10494,1,8819,59,1,10894,59,1,10896,5,62,6,59,99,100,108,113,114,10512,10514,10527,10532,10538,10545,1,62,4,2,99,105,10520,10523,59,1,10919,114,59,1,10874,111,116,59,1,8919,80,97,114,59,1,10645,117,101,115,116,59,1,10876,4,5,97,100,101,108,115,10557,10574,10579,10599,10605,4,2,112,114,10563,10570,112,114,111,120,59,1,10886,114,59,1,10616,111,116,59,1,8919,113,4,2,108,113,10586,10592,101,115,115,59,1,8923,108,101,115,115,59,1,10892,101,115,115,59,1,8823,105,109,59,1,8819,4,2,101,110,10616,10626,114,116,110,101,113,113,59,3,8809,65024,69,59,3,8809,65024,4,10,65,97,98,99,101,102,107,111,115,121,10653,10658,10713,10718,10724,10760,10765,10786,10850,10875,114,114,59,1,8660,4,4,105,108,109,114,10668,10674,10678,10684,114,115,112,59,1,8202,102,59,1,189,105,108,116,59,1,8459,4,2,100,114,10690,10695,99,121,59,1,1098,4,3,59,99,119,10703,10705,10710,1,8596,105,114,59,1,10568,59,1,8621,97,114,59,1,8463,105,114,99,59,1,293,4,3,97,108,114,10732,10748,10754,114,116,115,4,2,59,117,10741,10743,1,9829,105,116,59,1,9829,108,105,112,59,1,8230,99,111,110,59,1,8889,114,59,3,55349,56613,115,4,2,101,119,10772,10779,97,114,111,119,59,1,10533,97,114,111,119,59,1,10534,4,5,97,109,111,112,114,10798,10803,10809,10839,10844,114,114,59,1,8703,116,104,116,59,1,8763,107,4,2,108,114,10816,10827,101,102,116,97,114,114,111,119,59,1,8617,105,103,104,116,97,114,114,111,119,59,1,8618,102,59,3,55349,56665,98,97,114,59,1,8213,4,3,99,108,116,10858,10863,10869,114,59,3,55349,56509,97,115,104,59,1,8463,114,111,107,59,1,295,4,2,98,112,10881,10887,117,108,108,59,1,8259,104,101,110,59,1,8208,4,15,97,99,101,102,103,105,106,109,110,111,112,113,115,116,117,10925,10936,10958,10977,10990,11001,11039,11045,11101,11192,11220,11226,11237,11285,11299,99,117,116,101,5,237,1,59,10934,1,237,4,3,59,105,121,10944,10946,10955,1,8291,114,99,5,238,1,59,10953,1,238,59,1,1080,4,2,99,120,10964,10968,121,59,1,1077,99,108,5,161,1,59,10975,1,161,4,2,102,114,10983,10986,59,1,8660,59,3,55349,56614,114,97,118,101,5,236,1,59,10999,1,236,4,4,59,105,110,111,11011,11013,11028,11034,1,8520,4,2,105,110,11019,11024,110,116,59,1,10764,116,59,1,8749,102,105,110,59,1,10716,116,97,59,1,8489,108,105,103,59,1,307,4,3,97,111,112,11053,11092,11096,4,3,99,103,116,11061,11065,11088,114,59,1,299,4,3,101,108,112,11073,11076,11082,59,1,8465,105,110,101,59,1,8464,97,114,116,59,1,8465,104,59,1,305,102,59,1,8887,101,100,59,1,437,4,5,59,99,102,111,116,11113,11115,11121,11136,11142,1,8712,97,114,101,59,1,8453,105,110,4,2,59,116,11129,11131,1,8734,105,101,59,1,10717,100,111,116,59,1,305,4,5,59,99,101,108,112,11154,11156,11161,11179,11186,1,8747,97,108,59,1,8890,4,2,103,114,11167,11173,101,114,115,59,1,8484,99,97,108,59,1,8890,97,114,104,107,59,1,10775,114,111,100,59,1,10812,4,4,99,103,112,116,11202,11206,11211,11216,121,59,1,1105,111,110,59,1,303,102,59,3,55349,56666,97,59,1,953,114,111,100,59,1,10812,117,101,115,116,5,191,1,59,11235,1,191,4,2,99,105,11243,11248,114,59,3,55349,56510,110,4,5,59,69,100,115,118,11261,11263,11266,11271,11282,1,8712,59,1,8953,111,116,59,1,8949,4,2,59,118,11277,11279,1,8948,59,1,8947,59,1,8712,4,2,59,105,11291,11293,1,8290,108,100,101,59,1,297,4,2,107,109,11305,11310,99,121,59,1,1110,108,5,239,1,59,11316,1,239,4,6,99,102,109,111,115,117,11332,11346,11351,11357,11363,11380,4,2,105,121,11338,11343,114,99,59,1,309,59,1,1081,114,59,3,55349,56615,97,116,104,59,1,567,112,102,59,3,55349,56667,4,2,99,101,11369,11374,114,59,3,55349,56511,114,99,121,59,1,1112,107,99,121,59,1,1108,4,8,97,99,102,103,104,106,111,115,11404,11418,11433,11438,11445,11450,11455,11461,112,112,97,4,2,59,118,11413,11415,1,954,59,1,1008,4,2,101,121,11424,11430,100,105,108,59,1,311,59,1,1082,114,59,3,55349,56616,114,101,101,110,59,1,312,99,121,59,1,1093,99,121,59,1,1116,112,102,59,3,55349,56668,99,114,59,3,55349,56512,4,23,65,66,69,72,97,98,99,100,101,102,103,104,106,108,109,110,111,112,114,115,116,117,118,11515,11538,11544,11555,11560,11721,11780,11818,11868,12136,12160,12171,12203,12208,12246,12275,12327,12509,12523,12569,12641,12732,12752,4,3,97,114,116,11523,11528,11532,114,114,59,1,8666,114,59,1,8656,97,105,108,59,1,10523,97,114,114,59,1,10510,4,2,59,103,11550,11552,1,8806,59,1,10891,97,114,59,1,10594,4,9,99,101,103,109,110,112,113,114,116,11580,11586,11594,11600,11606,11624,11627,11636,11694,117,116,101,59,1,314,109,112,116,121,118,59,1,10676,114,97,110,59,1,8466,98,100,97,59,1,955,103,4,3,59,100,108,11615,11617,11620,1,10216,59,1,10641,101,59,1,10216,59,1,10885,117,111,5,171,1,59,11634,1,171,114,4,8,59,98,102,104,108,112,115,116,11655,11657,11669,11673,11677,11681,11685,11690,1,8592,4,2,59,102,11663,11665,1,8676,115,59,1,10527,115,59,1,10525,107,59,1,8617,112,59,1,8619,108,59,1,10553,105,109,59,1,10611,108,59,1,8610,4,3,59,97,101,11702,11704,11709,1,10923,105,108,59,1,10521,4,2,59,115,11715,11717,1,10925,59,3,10925,65024,4,3,97,98,114,11729,11734,11739,114,114,59,1,10508,114,107,59,1,10098,4,2,97,107,11745,11758,99,4,2,101,107,11752,11755,59,1,123,59,1,91,4,2,101,115,11764,11767,59,1,10635,108,4,2,100,117,11774,11777,59,1,10639,59,1,10637,4,4,97,101,117,121,11790,11796,11811,11815,114,111,110,59,1,318,4,2,100,105,11802,11807,105,108,59,1,316,108,59,1,8968,98,59,1,123,59,1,1083,4,4,99,113,114,115,11828,11832,11845,11864,97,59,1,10550,117,111,4,2,59,114,11840,11842,1,8220,59,1,8222,4,2,100,117,11851,11857,104,97,114,59,1,10599,115,104,97,114,59,1,10571,104,59,1,8626,4,5,59,102,103,113,115,11880,11882,12008,12011,12031,1,8804,116,4,5,97,104,108,114,116,11895,11913,11935,11947,11996,114,114,111,119,4,2,59,116,11905,11907,1,8592,97,105,108,59,1,8610,97,114,112,111,111,110,4,2,100,117,11925,11931,111,119,110,59,1,8637,112,59,1,8636,101,102,116,97,114,114,111,119,115,59,1,8647,105,103,104,116,4,3,97,104,115,11959,11974,11984,114,114,111,119,4,2,59,115,11969,11971,1,8596,59,1,8646,97,114,112,111,111,110,115,59,1,8651,113,117,105,103,97,114,114,111,119,59,1,8621,104,114,101,101,116,105,109,101,115,59,1,8907,59,1,8922,4,3,59,113,115,12019,12021,12024,1,8804,59,1,8806,108,97,110,116,59,1,10877,4,5,59,99,100,103,115,12043,12045,12049,12070,12083,1,10877,99,59,1,10920,111,116,4,2,59,111,12057,12059,1,10879,4,2,59,114,12065,12067,1,10881,59,1,10883,4,2,59,101,12076,12079,3,8922,65024,115,59,1,10899,4,5,97,100,101,103,115,12095,12103,12108,12126,12131,112,112,114,111,120,59,1,10885,111,116,59,1,8918,113,4,2,103,113,12115,12120,116,114,59,1,8922,103,116,114,59,1,10891,116,114,59,1,8822,105,109,59,1,8818,4,3,105,108,114,12144,12150,12156,115,104,116,59,1,10620,111,111,114,59,1,8970,59,3,55349,56617,4,2,59,69,12166,12168,1,8822,59,1,10897,4,2,97,98,12177,12198,114,4,2,100,117,12184,12187,59,1,8637,4,2,59,108,12193,12195,1,8636,59,1,10602,108,107,59,1,9604,99,121,59,1,1113,4,5,59,97,99,104,116,12220,12222,12227,12235,12241,1,8810,114,114,59,1,8647,111,114,110,101,114,59,1,8990,97,114,100,59,1,10603,114,105,59,1,9722,4,2,105,111,12252,12258,100,111,116,59,1,320,117,115,116,4,2,59,97,12267,12269,1,9136,99,104,101,59,1,9136,4,4,69,97,101,115,12285,12288,12303,12322,59,1,8808,112,4,2,59,112,12295,12297,1,10889,114,111,120,59,1,10889,4,2,59,113,12309,12311,1,10887,4,2,59,113,12317,12319,1,10887,59,1,8808,105,109,59,1,8934,4,8,97,98,110,111,112,116,119,122,12345,12359,12364,12421,12446,12467,12474,12490,4,2,110,114,12351,12355,103,59,1,10220,114,59,1,8701,114,107,59,1,10214,103,4,3,108,109,114,12373,12401,12409,101,102,116,4,2,97,114,12382,12389,114,114,111,119,59,1,10229,105,103,104,116,97,114,114,111,119,59,1,10231,97,112,115,116,111,59,1,10236,105,103,104,116,97,114,114,111,119,59,1,10230,112,97,114,114,111,119,4,2,108,114,12433,12439,101,102,116,59,1,8619,105,103,104,116,59,1,8620,4,3,97,102,108,12454,12458,12462,114,59,1,10629,59,3,55349,56669,117,115,59,1,10797,105,109,101,115,59,1,10804,4,2,97,98,12480,12485,115,116,59,1,8727,97,114,59,1,95,4,3,59,101,102,12498,12500,12506,1,9674,110,103,101,59,1,9674,59,1,10731,97,114,4,2,59,108,12517,12519,1,40,116,59,1,10643,4,5,97,99,104,109,116,12535,12540,12548,12561,12564,114,114,59,1,8646,111,114,110,101,114,59,1,8991,97,114,4,2,59,100,12556,12558,1,8651,59,1,10605,59,1,8206,114,105,59,1,8895,4,6,97,99,104,105,113,116,12583,12589,12594,12597,12614,12635,113,117,111,59,1,8249,114,59,3,55349,56513,59,1,8624,109,4,3,59,101,103,12606,12608,12611,1,8818,59,1,10893,59,1,10895,4,2,98,117,12620,12623,59,1,91,111,4,2,59,114,12630,12632,1,8216,59,1,8218,114,111,107,59,1,322,5,60,8,59,99,100,104,105,108,113,114,12660,12662,12675,12680,12686,12692,12698,12705,1,60,4,2,99,105,12668,12671,59,1,10918,114,59,1,10873,111,116,59,1,8918,114,101,101,59,1,8907,109,101,115,59,1,8905,97,114,114,59,1,10614,117,101,115,116,59,1,10875,4,2,80,105,12711,12716,97,114,59,1,10646,4,3,59,101,102,12724,12726,12729,1,9667,59,1,8884,59,1,9666,114,4,2,100,117,12739,12746,115,104,97,114,59,1,10570,104,97,114,59,1,10598,4,2,101,110,12758,12768,114,116,110,101,113,113,59,3,8808,65024,69,59,3,8808,65024,4,14,68,97,99,100,101,102,104,105,108,110,111,112,115,117,12803,12809,12893,12908,12914,12928,12933,12937,13011,13025,13032,13049,13052,13069,68,111,116,59,1,8762,4,4,99,108,112,114,12819,12827,12849,12887,114,5,175,1,59,12825,1,175,4,2,101,116,12833,12836,59,1,9794,4,2,59,101,12842,12844,1,10016,115,101,59,1,10016,4,2,59,115,12855,12857,1,8614,116,111,4,4,59,100,108,117,12869,12871,12877,12883,1,8614,111,119,110,59,1,8615,101,102,116,59,1,8612,112,59,1,8613,107,101,114,59,1,9646,4,2,111,121,12899,12905,109,109,97,59,1,10793,59,1,1084,97,115,104,59,1,8212,97,115,117,114,101,100,97,110,103,108,101,59,1,8737,114,59,3,55349,56618,111,59,1,8487,4,3,99,100,110,12945,12954,12985,114,111,5,181,1,59,12952,1,181,4,4,59,97,99,100,12964,12966,12971,12976,1,8739,115,116,59,1,42,105,114,59,1,10992,111,116,5,183,1,59,12983,1,183,117,115,4,3,59,98,100,12995,12997,13e3,1,8722,59,1,8863,4,2,59,117,13006,13008,1,8760,59,1,10794,4,2,99,100,13017,13021,112,59,1,10971,114,59,1,8230,112,108,117,115,59,1,8723,4,2,100,112,13038,13044,101,108,115,59,1,8871,102,59,3,55349,56670,59,1,8723,4,2,99,116,13058,13063,114,59,3,55349,56514,112,111,115,59,1,8766,4,3,59,108,109,13077,13079,13087,1,956,116,105,109,97,112,59,1,8888,97,112,59,1,8888,4,24,71,76,82,86,97,98,99,100,101,102,103,104,105,106,108,109,111,112,114,115,116,117,118,119,13142,13165,13217,13229,13247,13330,13359,13414,13420,13508,13513,13579,13602,13626,13631,13762,13767,13855,13936,13995,14214,14285,14312,14432,4,2,103,116,13148,13152,59,3,8921,824,4,2,59,118,13158,13161,3,8811,8402,59,3,8811,824,4,3,101,108,116,13173,13200,13204,102,116,4,2,97,114,13181,13188,114,114,111,119,59,1,8653,105,103,104,116,97,114,114,111,119,59,1,8654,59,3,8920,824,4,2,59,118,13210,13213,3,8810,8402,59,3,8810,824,105,103,104,116,97,114,114,111,119,59,1,8655,4,2,68,100,13235,13241,97,115,104,59,1,8879,97,115,104,59,1,8878,4,5,98,99,110,112,116,13259,13264,13270,13275,13308,108,97,59,1,8711,117,116,101,59,1,324,103,59,3,8736,8402,4,5,59,69,105,111,112,13287,13289,13293,13298,13302,1,8777,59,3,10864,824,100,59,3,8779,824,115,59,1,329,114,111,120,59,1,8777,117,114,4,2,59,97,13316,13318,1,9838,108,4,2,59,115,13325,13327,1,9838,59,1,8469,4,2,115,117,13336,13344,112,5,160,1,59,13342,1,160,109,112,4,2,59,101,13352,13355,3,8782,824,59,3,8783,824,4,5,97,101,111,117,121,13371,13385,13391,13407,13411,4,2,112,114,13377,13380,59,1,10819,111,110,59,1,328,100,105,108,59,1,326,110,103,4,2,59,100,13399,13401,1,8775,111,116,59,3,10861,824,112,59,1,10818,59,1,1085,97,115,104,59,1,8211,4,7,59,65,97,100,113,115,120,13436,13438,13443,13466,13472,13478,13494,1,8800,114,114,59,1,8663,114,4,2,104,114,13450,13454,107,59,1,10532,4,2,59,111,13460,13462,1,8599,119,59,1,8599,111,116,59,3,8784,824,117,105,118,59,1,8802,4,2,101,105,13484,13489,97,114,59,1,10536,109,59,3,8770,824,105,115,116,4,2,59,115,13503,13505,1,8708,59,1,8708,114,59,3,55349,56619,4,4,69,101,115,116,13523,13527,13563,13568,59,3,8807,824,4,3,59,113,115,13535,13537,13559,1,8817,4,3,59,113,115,13545,13547,13551,1,8817,59,3,8807,824,108,97,110,116,59,3,10878,824,59,3,10878,824,105,109,59,1,8821,4,2,59,114,13574,13576,1,8815,59,1,8815,4,3,65,97,112,13587,13592,13597,114,114,59,1,8654,114,114,59,1,8622,97,114,59,1,10994,4,3,59,115,118,13610,13612,13623,1,8715,4,2,59,100,13618,13620,1,8956,59,1,8954,59,1,8715,99,121,59,1,1114,4,7,65,69,97,100,101,115,116,13647,13652,13656,13661,13665,13737,13742,114,114,59,1,8653,59,3,8806,824,114,114,59,1,8602,114,59,1,8229,4,4,59,102,113,115,13675,13677,13703,13725,1,8816,116,4,2,97,114,13684,13691,114,114,111,119,59,1,8602,105,103,104,116,97,114,114,111,119,59,1,8622,4,3,59,113,115,13711,13713,13717,1,8816,59,3,8806,824,108,97,110,116,59,3,10877,824,4,2,59,115,13731,13734,3,10877,824,59,1,8814,105,109,59,1,8820,4,2,59,114,13748,13750,1,8814,105,4,2,59,101,13757,13759,1,8938,59,1,8940,105,100,59,1,8740,4,2,112,116,13773,13778,102,59,3,55349,56671,5,172,3,59,105,110,13787,13789,13829,1,172,110,4,4,59,69,100,118,13800,13802,13806,13812,1,8713,59,3,8953,824,111,116,59,3,8949,824,4,3,97,98,99,13820,13823,13826,59,1,8713,59,1,8951,59,1,8950,105,4,2,59,118,13836,13838,1,8716,4,3,97,98,99,13846,13849,13852,59,1,8716,59,1,8958,59,1,8957,4,3,97,111,114,13863,13892,13899,114,4,4,59,97,115,116,13874,13876,13883,13888,1,8742,108,108,101,108,59,1,8742,108,59,3,11005,8421,59,3,8706,824,108,105,110,116,59,1,10772,4,3,59,99,101,13907,13909,13914,1,8832,117,101,59,1,8928,4,2,59,99,13920,13923,3,10927,824,4,2,59,101,13929,13931,1,8832,113,59,3,10927,824,4,4,65,97,105,116,13946,13951,13971,13982,114,114,59,1,8655,114,114,4,3,59,99,119,13961,13963,13967,1,8603,59,3,10547,824,59,3,8605,824,103,104,116,97,114,114,111,119,59,1,8603,114,105,4,2,59,101,13990,13992,1,8939,59,1,8941,4,7,99,104,105,109,112,113,117,14011,14036,14060,14080,14085,14090,14106,4,4,59,99,101,114,14021,14023,14028,14032,1,8833,117,101,59,1,8929,59,3,10928,824,59,3,55349,56515,111,114,116,4,2,109,112,14045,14050,105,100,59,1,8740,97,114,97,108,108,101,108,59,1,8742,109,4,2,59,101,14067,14069,1,8769,4,2,59,113,14075,14077,1,8772,59,1,8772,105,100,59,1,8740,97,114,59,1,8742,115,117,4,2,98,112,14098,14102,101,59,1,8930,101,59,1,8931,4,3,98,99,112,14114,14157,14171,4,4,59,69,101,115,14124,14126,14130,14133,1,8836,59,3,10949,824,59,1,8840,101,116,4,2,59,101,14141,14144,3,8834,8402,113,4,2,59,113,14151,14153,1,8840,59,3,10949,824,99,4,2,59,101,14164,14166,1,8833,113,59,3,10928,824,4,4,59,69,101,115,14181,14183,14187,14190,1,8837,59,3,10950,824,59,1,8841,101,116,4,2,59,101,14198,14201,3,8835,8402,113,4,2,59,113,14208,14210,1,8841,59,3,10950,824,4,4,103,105,108,114,14224,14228,14238,14242,108,59,1,8825,108,100,101,5,241,1,59,14236,1,241,103,59,1,8824,105,97,110,103,108,101,4,2,108,114,14254,14269,101,102,116,4,2,59,101,14263,14265,1,8938,113,59,1,8940,105,103,104,116,4,2,59,101,14279,14281,1,8939,113,59,1,8941,4,2,59,109,14291,14293,1,957,4,3,59,101,115,14301,14303,14308,1,35,114,111,59,1,8470,112,59,1,8199,4,9,68,72,97,100,103,105,108,114,115,14332,14338,14344,14349,14355,14369,14376,14408,14426,97,115,104,59,1,8877,97,114,114,59,1,10500,112,59,3,8781,8402,97,115,104,59,1,8876,4,2,101,116,14361,14365,59,3,8805,8402,59,3,62,8402,110,102,105,110,59,1,10718,4,3,65,101,116,14384,14389,14393,114,114,59,1,10498,59,3,8804,8402,4,2,59,114,14399,14402,3,60,8402,105,101,59,3,8884,8402,4,2,65,116,14414,14419,114,114,59,1,10499,114,105,101,59,3,8885,8402,105,109,59,3,8764,8402,4,3,65,97,110,14440,14445,14468,114,114,59,1,8662,114,4,2,104,114,14452,14456,107,59,1,10531,4,2,59,111,14462,14464,1,8598,119,59,1,8598,101,97,114,59,1,10535,4,18,83,97,99,100,101,102,103,104,105,108,109,111,112,114,115,116,117,118,14512,14515,14535,14560,14597,14603,14618,14643,14657,14662,14701,14741,14747,14769,14851,14877,14907,14916,59,1,9416,4,2,99,115,14521,14531,117,116,101,5,243,1,59,14529,1,243,116,59,1,8859,4,2,105,121,14541,14557,114,4,2,59,99,14548,14550,1,8858,5,244,1,59,14555,1,244,59,1,1086,4,5,97,98,105,111,115,14572,14577,14583,14587,14591,115,104,59,1,8861,108,97,99,59,1,337,118,59,1,10808,116,59,1,8857,111,108,100,59,1,10684,108,105,103,59,1,339,4,2,99,114,14609,14614,105,114,59,1,10687,59,3,55349,56620,4,3,111,114,116,14626,14630,14640,110,59,1,731,97,118,101,5,242,1,59,14638,1,242,59,1,10689,4,2,98,109,14649,14654,97,114,59,1,10677,59,1,937,110,116,59,1,8750,4,4,97,99,105,116,14672,14677,14693,14698,114,114,59,1,8634,4,2,105,114,14683,14687,114,59,1,10686,111,115,115,59,1,10683,110,101,59,1,8254,59,1,10688,4,3,97,101,105,14709,14714,14719,99,114,59,1,333,103,97,59,1,969,4,3,99,100,110,14727,14733,14736,114,111,110,59,1,959,59,1,10678,117,115,59,1,8854,112,102,59,3,55349,56672,4,3,97,101,108,14755,14759,14764,114,59,1,10679,114,112,59,1,10681,117,115,59,1,8853,4,7,59,97,100,105,111,115,118,14785,14787,14792,14831,14837,14841,14848,1,8744,114,114,59,1,8635,4,4,59,101,102,109,14802,14804,14817,14824,1,10845,114,4,2,59,111,14811,14813,1,8500,102,59,1,8500,5,170,1,59,14822,1,170,5,186,1,59,14829,1,186,103,111,102,59,1,8886,114,59,1,10838,108,111,112,101,59,1,10839,59,1,10843,4,3,99,108,111,14859,14863,14873,114,59,1,8500,97,115,104,5,248,1,59,14871,1,248,108,59,1,8856,105,4,2,108,109,14884,14893,100,101,5,245,1,59,14891,1,245,101,115,4,2,59,97,14901,14903,1,8855,115,59,1,10806,109,108,5,246,1,59,14914,1,246,98,97,114,59,1,9021,4,12,97,99,101,102,104,105,108,109,111,114,115,117,14948,14992,14996,15033,15038,15068,15090,15189,15192,15222,15427,15441,114,4,4,59,97,115,116,14959,14961,14976,14989,1,8741,5,182,2,59,108,14968,14970,1,182,108,101,108,59,1,8741,4,2,105,108,14982,14986,109,59,1,10995,59,1,11005,59,1,8706,121,59,1,1087,114,4,5,99,105,109,112,116,15009,15014,15019,15024,15027,110,116,59,1,37,111,100,59,1,46,105,108,59,1,8240,59,1,8869,101,110,107,59,1,8241,114,59,3,55349,56621,4,3,105,109,111,15046,15057,15063,4,2,59,118,15052,15054,1,966,59,1,981,109,97,116,59,1,8499,110,101,59,1,9742,4,3,59,116,118,15076,15078,15087,1,960,99,104,102,111,114,107,59,1,8916,59,1,982,4,2,97,117,15096,15119,110,4,2,99,107,15103,15115,107,4,2,59,104,15110,15112,1,8463,59,1,8462,118,59,1,8463,115,4,9,59,97,98,99,100,101,109,115,116,15140,15142,15148,15151,15156,15168,15171,15179,15184,1,43,99,105,114,59,1,10787,59,1,8862,105,114,59,1,10786,4,2,111,117,15162,15165,59,1,8724,59,1,10789,59,1,10866,110,5,177,1,59,15177,1,177,105,109,59,1,10790,119,111,59,1,10791,59,1,177,4,3,105,112,117,15200,15208,15213,110,116,105,110,116,59,1,10773,102,59,3,55349,56673,110,100,5,163,1,59,15220,1,163,4,10,59,69,97,99,101,105,110,111,115,117,15244,15246,15249,15253,15258,15334,15347,15367,15416,15421,1,8826,59,1,10931,112,59,1,10935,117,101,59,1,8828,4,2,59,99,15264,15266,1,10927,4,6,59,97,99,101,110,115,15280,15282,15290,15299,15303,15329,1,8826,112,112,114,111,120,59,1,10935,117,114,108,121,101,113,59,1,8828,113,59,1,10927,4,3,97,101,115,15311,15319,15324,112,112,114,111,120,59,1,10937,113,113,59,1,10933,105,109,59,1,8936,105,109,59,1,8830,109,101,4,2,59,115,15342,15344,1,8242,59,1,8473,4,3,69,97,115,15355,15358,15362,59,1,10933,112,59,1,10937,105,109,59,1,8936,4,3,100,102,112,15375,15378,15404,59,1,8719,4,3,97,108,115,15386,15392,15398,108,97,114,59,1,9006,105,110,101,59,1,8978,117,114,102,59,1,8979,4,2,59,116,15410,15412,1,8733,111,59,1,8733,105,109,59,1,8830,114,101,108,59,1,8880,4,2,99,105,15433,15438,114,59,3,55349,56517,59,1,968,110,99,115,112,59,1,8200,4,6,102,105,111,112,115,117,15462,15467,15472,15478,15485,15491,114,59,3,55349,56622,110,116,59,1,10764,112,102,59,3,55349,56674,114,105,109,101,59,1,8279,99,114,59,3,55349,56518,4,3,97,101,111,15499,15520,15534,116,4,2,101,105,15506,15515,114,110,105,111,110,115,59,1,8461,110,116,59,1,10774,115,116,4,2,59,101,15528,15530,1,63,113,59,1,8799,116,5,34,1,59,15540,1,34,4,21,65,66,72,97,98,99,100,101,102,104,105,108,109,110,111,112,114,115,116,117,120,15586,15609,15615,15620,15796,15855,15893,15931,15977,16001,16039,16183,16204,16222,16228,16285,16312,16318,16363,16408,16416,4,3,97,114,116,15594,15599,15603,114,114,59,1,8667,114,59,1,8658,97,105,108,59,1,10524,97,114,114,59,1,10511,97,114,59,1,10596,4,7,99,100,101,110,113,114,116,15636,15651,15656,15664,15687,15696,15770,4,2,101,117,15642,15646,59,3,8765,817,116,101,59,1,341,105,99,59,1,8730,109,112,116,121,118,59,1,10675,103,4,4,59,100,101,108,15675,15677,15680,15683,1,10217,59,1,10642,59,1,10661,101,59,1,10217,117,111,5,187,1,59,15694,1,187,114,4,11,59,97,98,99,102,104,108,112,115,116,119,15721,15723,15727,15739,15742,15746,15750,15754,15758,15763,15767,1,8594,112,59,1,10613,4,2,59,102,15733,15735,1,8677,115,59,1,10528,59,1,10547,115,59,1,10526,107,59,1,8618,112,59,1,8620,108,59,1,10565,105,109,59,1,10612,108,59,1,8611,59,1,8605,4,2,97,105,15776,15781,105,108,59,1,10522,111,4,2,59,110,15788,15790,1,8758,97,108,115,59,1,8474,4,3,97,98,114,15804,15809,15814,114,114,59,1,10509,114,107,59,1,10099,4,2,97,107,15820,15833,99,4,2,101,107,15827,15830,59,1,125,59,1,93,4,2,101,115,15839,15842,59,1,10636,108,4,2,100,117,15849,15852,59,1,10638,59,1,10640,4,4,97,101,117,121,15865,15871,15886,15890,114,111,110,59,1,345,4,2,100,105,15877,15882,105,108,59,1,343,108,59,1,8969,98,59,1,125,59,1,1088,4,4,99,108,113,115,15903,15907,15914,15927,97,59,1,10551,100,104,97,114,59,1,10601,117,111,4,2,59,114,15922,15924,1,8221,59,1,8221,104,59,1,8627,4,3,97,99,103,15939,15966,15970,108,4,4,59,105,112,115,15950,15952,15957,15963,1,8476,110,101,59,1,8475,97,114,116,59,1,8476,59,1,8477,116,59,1,9645,5,174,1,59,15975,1,174,4,3,105,108,114,15985,15991,15997,115,104,116,59,1,10621,111,111,114,59,1,8971,59,3,55349,56623,4,2,97,111,16007,16028,114,4,2,100,117,16014,16017,59,1,8641,4,2,59,108,16023,16025,1,8640,59,1,10604,4,2,59,118,16034,16036,1,961,59,1,1009,4,3,103,110,115,16047,16167,16171,104,116,4,6,97,104,108,114,115,116,16063,16081,16103,16130,16143,16155,114,114,111,119,4,2,59,116,16073,16075,1,8594,97,105,108,59,1,8611,97,114,112,111,111,110,4,2,100,117,16093,16099,111,119,110,59,1,8641,112,59,1,8640,101,102,116,4,2,97,104,16112,16120,114,114,111,119,115,59,1,8644,97,114,112,111,111,110,115,59,1,8652,105,103,104,116,97,114,114,111,119,115,59,1,8649,113,117,105,103,97,114,114,111,119,59,1,8605,104,114,101,101,116,105,109,101,115,59,1,8908,103,59,1,730,105,110,103,100,111,116,115,101,113,59,1,8787,4,3,97,104,109,16191,16196,16201,114,114,59,1,8644,97,114,59,1,8652,59,1,8207,111,117,115,116,4,2,59,97,16214,16216,1,9137,99,104,101,59,1,9137,109,105,100,59,1,10990,4,4,97,98,112,116,16238,16252,16257,16278,4,2,110,114,16244,16248,103,59,1,10221,114,59,1,8702,114,107,59,1,10215,4,3,97,102,108,16265,16269,16273,114,59,1,10630,59,3,55349,56675,117,115,59,1,10798,105,109,101,115,59,1,10805,4,2,97,112,16291,16304,114,4,2,59,103,16298,16300,1,41,116,59,1,10644,111,108,105,110,116,59,1,10770,97,114,114,59,1,8649,4,4,97,99,104,113,16328,16334,16339,16342,113,117,111,59,1,8250,114,59,3,55349,56519,59,1,8625,4,2,98,117,16348,16351,59,1,93,111,4,2,59,114,16358,16360,1,8217,59,1,8217,4,3,104,105,114,16371,16377,16383,114,101,101,59,1,8908,109,101,115,59,1,8906,105,4,4,59,101,102,108,16394,16396,16399,16402,1,9657,59,1,8885,59,1,9656,116,114,105,59,1,10702,108,117,104,97,114,59,1,10600,59,1,8478,4,19,97,98,99,100,101,102,104,105,108,109,111,112,113,114,115,116,117,119,122,16459,16466,16472,16572,16590,16672,16687,16746,16844,16850,16924,16963,16988,17115,17121,17154,17206,17614,17656,99,117,116,101,59,1,347,113,117,111,59,1,8218,4,10,59,69,97,99,101,105,110,112,115,121,16494,16496,16499,16513,16518,16531,16536,16556,16564,16569,1,8827,59,1,10932,4,2,112,114,16505,16508,59,1,10936,111,110,59,1,353,117,101,59,1,8829,4,2,59,100,16524,16526,1,10928,105,108,59,1,351,114,99,59,1,349,4,3,69,97,115,16544,16547,16551,59,1,10934,112,59,1,10938,105,109,59,1,8937,111,108,105,110,116,59,1,10771,105,109,59,1,8831,59,1,1089,111,116,4,3,59,98,101,16582,16584,16587,1,8901,59,1,8865,59,1,10854,4,7,65,97,99,109,115,116,120,16606,16611,16634,16642,16646,16652,16668,114,114,59,1,8664,114,4,2,104,114,16618,16622,107,59,1,10533,4,2,59,111,16628,16630,1,8600,119,59,1,8600,116,5,167,1,59,16640,1,167,105,59,1,59,119,97,114,59,1,10537,109,4,2,105,110,16659,16665,110,117,115,59,1,8726,59,1,8726,116,59,1,10038,114,4,2,59,111,16679,16682,3,55349,56624,119,110,59,1,8994,4,4,97,99,111,121,16697,16702,16716,16739,114,112,59,1,9839,4,2,104,121,16708,16713,99,121,59,1,1097,59,1,1096,114,116,4,2,109,112,16724,16729,105,100,59,1,8739,97,114,97,108,108,101,108,59,1,8741,5,173,1,59,16744,1,173,4,2,103,109,16752,16770,109,97,4,3,59,102,118,16762,16764,16767,1,963,59,1,962,59,1,962,4,8,59,100,101,103,108,110,112,114,16788,16790,16795,16806,16817,16828,16832,16838,1,8764,111,116,59,1,10858,4,2,59,113,16801,16803,1,8771,59,1,8771,4,2,59,69,16812,16814,1,10910,59,1,10912,4,2,59,69,16823,16825,1,10909,59,1,10911,101,59,1,8774,108,117,115,59,1,10788,97,114,114,59,1,10610,97,114,114,59,1,8592,4,4,97,101,105,116,16860,16883,16891,16904,4,2,108,115,16866,16878,108,115,101,116,109,105,110,117,115,59,1,8726,104,112,59,1,10803,112,97,114,115,108,59,1,10724,4,2,100,108,16897,16900,59,1,8739,101,59,1,8995,4,2,59,101,16910,16912,1,10922,4,2,59,115,16918,16920,1,10924,59,3,10924,65024,4,3,102,108,112,16932,16938,16958,116,99,121,59,1,1100,4,2,59,98,16944,16946,1,47,4,2,59,97,16952,16954,1,10692,114,59,1,9023,102,59,3,55349,56676,97,4,2,100,114,16970,16985,101,115,4,2,59,117,16978,16980,1,9824,105,116,59,1,9824,59,1,8741,4,3,99,115,117,16996,17028,17089,4,2,97,117,17002,17015,112,4,2,59,115,17009,17011,1,8851,59,3,8851,65024,112,4,2,59,115,17022,17024,1,8852,59,3,8852,65024,117,4,2,98,112,17035,17062,4,3,59,101,115,17043,17045,17048,1,8847,59,1,8849,101,116,4,2,59,101,17056,17058,1,8847,113,59,1,8849,4,3,59,101,115,17070,17072,17075,1,8848,59,1,8850,101,116,4,2,59,101,17083,17085,1,8848,113,59,1,8850,4,3,59,97,102,17097,17099,17112,1,9633,114,4,2,101,102,17106,17109,59,1,9633,59,1,9642,59,1,9642,97,114,114,59,1,8594,4,4,99,101,109,116,17131,17136,17142,17148,114,59,3,55349,56520,116,109,110,59,1,8726,105,108,101,59,1,8995,97,114,102,59,1,8902,4,2,97,114,17160,17172,114,4,2,59,102,17167,17169,1,9734,59,1,9733,4,2,97,110,17178,17202,105,103,104,116,4,2,101,112,17188,17197,112,115,105,108,111,110,59,1,1013,104,105,59,1,981,115,59,1,175,4,5,98,99,109,110,112,17218,17351,17420,17423,17427,4,9,59,69,100,101,109,110,112,114,115,17238,17240,17243,17248,17261,17267,17279,17285,17291,1,8834,59,1,10949,111,116,59,1,10941,4,2,59,100,17254,17256,1,8838,111,116,59,1,10947,117,108,116,59,1,10945,4,2,69,101,17273,17276,59,1,10955,59,1,8842,108,117,115,59,1,10943,97,114,114,59,1,10617,4,3,101,105,117,17299,17335,17339,116,4,3,59,101,110,17308,17310,17322,1,8834,113,4,2,59,113,17317,17319,1,8838,59,1,10949,101,113,4,2,59,113,17330,17332,1,8842,59,1,10955,109,59,1,10951,4,2,98,112,17345,17348,59,1,10965,59,1,10963,99,4,6,59,97,99,101,110,115,17366,17368,17376,17385,17389,17415,1,8827,112,112,114,111,120,59,1,10936,117,114,108,121,101,113,59,1,8829,113,59,1,10928,4,3,97,101,115,17397,17405,17410,112,112,114,111,120,59,1,10938,113,113,59,1,10934,105,109,59,1,8937,105,109,59,1,8831,59,1,8721,103,59,1,9834,4,13,49,50,51,59,69,100,101,104,108,109,110,112,115,17455,17462,17469,17476,17478,17481,17496,17509,17524,17530,17536,17548,17554,5,185,1,59,17460,1,185,5,178,1,59,17467,1,178,5,179,1,59,17474,1,179,1,8835,59,1,10950,4,2,111,115,17487,17491,116,59,1,10942,117,98,59,1,10968,4,2,59,100,17502,17504,1,8839,111,116,59,1,10948,115,4,2,111,117,17516,17520,108,59,1,10185,98,59,1,10967,97,114,114,59,1,10619,117,108,116,59,1,10946,4,2,69,101,17542,17545,59,1,10956,59,1,8843,108,117,115,59,1,10944,4,3,101,105,117,17562,17598,17602,116,4,3,59,101,110,17571,17573,17585,1,8835,113,4,2,59,113,17580,17582,1,8839,59,1,10950,101,113,4,2,59,113,17593,17595,1,8843,59,1,10956,109,59,1,10952,4,2,98,112,17608,17611,59,1,10964,59,1,10966,4,3,65,97,110,17622,17627,17650,114,114,59,1,8665,114,4,2,104,114,17634,17638,107,59,1,10534,4,2,59,111,17644,17646,1,8601,119,59,1,8601,119,97,114,59,1,10538,108,105,103,5,223,1,59,17664,1,223,4,13,97,98,99,100,101,102,104,105,111,112,114,115,119,17694,17709,17714,17737,17742,17749,17754,17860,17905,17957,17964,18090,18122,4,2,114,117,17700,17706,103,101,116,59,1,8982,59,1,964,114,107,59,1,9140,4,3,97,101,121,17722,17728,17734,114,111,110,59,1,357,100,105,108,59,1,355,59,1,1090,111,116,59,1,8411,108,114,101,99,59,1,8981,114,59,3,55349,56625,4,4,101,105,107,111,17764,17805,17836,17851,4,2,114,116,17770,17786,101,4,2,52,102,17777,17780,59,1,8756,111,114,101,59,1,8756,97,4,3,59,115,118,17795,17797,17802,1,952,121,109,59,1,977,59,1,977,4,2,99,110,17811,17831,107,4,2,97,115,17818,17826,112,112,114,111,120,59,1,8776,105,109,59,1,8764,115,112,59,1,8201,4,2,97,115,17842,17846,112,59,1,8776,105,109,59,1,8764,114,110,5,254,1,59,17858,1,254,4,3,108,109,110,17868,17873,17901,100,101,59,1,732,101,115,5,215,3,59,98,100,17884,17886,17898,1,215,4,2,59,97,17892,17894,1,8864,114,59,1,10801,59,1,10800,116,59,1,8749,4,3,101,112,115,17913,17917,17953,97,59,1,10536,4,4,59,98,99,102,17927,17929,17934,17939,1,8868,111,116,59,1,9014,105,114,59,1,10993,4,2,59,111,17945,17948,3,55349,56677,114,107,59,1,10970,97,59,1,10537,114,105,109,101,59,1,8244,4,3,97,105,112,17972,17977,18082,100,101,59,1,8482,4,7,97,100,101,109,112,115,116,17993,18051,18056,18059,18066,18072,18076,110,103,108,101,4,5,59,100,108,113,114,18009,18011,18017,18032,18035,1,9653,111,119,110,59,1,9663,101,102,116,4,2,59,101,18026,18028,1,9667,113,59,1,8884,59,1,8796,105,103,104,116,4,2,59,101,18045,18047,1,9657,113,59,1,8885,111,116,59,1,9708,59,1,8796,105,110,117,115,59,1,10810,108,117,115,59,1,10809,98,59,1,10701,105,109,101,59,1,10811,101,122,105,117,109,59,1,9186,4,3,99,104,116,18098,18111,18116,4,2,114,121,18104,18108,59,3,55349,56521,59,1,1094,99,121,59,1,1115,114,111,107,59,1,359,4,2,105,111,18128,18133,120,116,59,1,8812,104,101,97,100,4,2,108,114,18143,18154,101,102,116,97,114,114,111,119,59,1,8606,105,103,104,116,97,114,114,111,119,59,1,8608,4,18,65,72,97,98,99,100,102,103,104,108,109,111,112,114,115,116,117,119,18204,18209,18214,18234,18250,18268,18292,18308,18319,18343,18379,18397,18413,18504,18547,18553,18584,18603,114,114,59,1,8657,97,114,59,1,10595,4,2,99,114,18220,18230,117,116,101,5,250,1,59,18228,1,250,114,59,1,8593,114,4,2,99,101,18241,18245,121,59,1,1118,118,101,59,1,365,4,2,105,121,18256,18265,114,99,5,251,1,59,18263,1,251,59,1,1091,4,3,97,98,104,18276,18281,18287,114,114,59,1,8645,108,97,99,59,1,369,97,114,59,1,10606,4,2,105,114,18298,18304,115,104,116,59,1,10622,59,3,55349,56626,114,97,118,101,5,249,1,59,18317,1,249,4,2,97,98,18325,18338,114,4,2,108,114,18332,18335,59,1,8639,59,1,8638,108,107,59,1,9600,4,2,99,116,18349,18374,4,2,111,114,18355,18369,114,110,4,2,59,101,18363,18365,1,8988,114,59,1,8988,111,112,59,1,8975,114,105,59,1,9720,4,2,97,108,18385,18390,99,114,59,1,363,5,168,1,59,18395,1,168,4,2,103,112,18403,18408,111,110,59,1,371,102,59,3,55349,56678,4,6,97,100,104,108,115,117,18427,18434,18445,18470,18475,18494,114,114,111,119,59,1,8593,111,119,110,97,114,114,111,119,59,1,8597,97,114,112,111,111,110,4,2,108,114,18457,18463,101,102,116,59,1,8639,105,103,104,116,59,1,8638,117,115,59,1,8846,105,4,3,59,104,108,18484,18486,18489,1,965,59,1,978,111,110,59,1,965,112,97,114,114,111,119,115,59,1,8648,4,3,99,105,116,18512,18537,18542,4,2,111,114,18518,18532,114,110,4,2,59,101,18526,18528,1,8989,114,59,1,8989,111,112,59,1,8974,110,103,59,1,367,114,105,59,1,9721,99,114,59,3,55349,56522,4,3,100,105,114,18561,18566,18572,111,116,59,1,8944,108,100,101,59,1,361,105,4,2,59,102,18579,18581,1,9653,59,1,9652,4,2,97,109,18590,18595,114,114,59,1,8648,108,5,252,1,59,18601,1,252,97,110,103,108,101,59,1,10663,4,15,65,66,68,97,99,100,101,102,108,110,111,112,114,115,122,18643,18648,18661,18667,18847,18851,18857,18904,18909,18915,18931,18937,18943,18949,18996,114,114,59,1,8661,97,114,4,2,59,118,18656,18658,1,10984,59,1,10985,97,115,104,59,1,8872,4,2,110,114,18673,18679,103,114,116,59,1,10652,4,7,101,107,110,112,114,115,116,18695,18704,18711,18720,18742,18754,18810,112,115,105,108,111,110,59,1,1013,97,112,112,97,59,1,1008,111,116,104,105,110,103,59,1,8709,4,3,104,105,114,18728,18732,18735,105,59,1,981,59,1,982,111,112,116,111,59,1,8733,4,2,59,104,18748,18750,1,8597,111,59,1,1009,4,2,105,117,18760,18766,103,109,97,59,1,962,4,2,98,112,18772,18791,115,101,116,110,101,113,4,2,59,113,18784,18787,3,8842,65024,59,3,10955,65024,115,101,116,110,101,113,4,2,59,113,18803,18806,3,8843,65024,59,3,10956,65024,4,2,104,114,18816,18822,101,116,97,59,1,977,105,97,110,103,108,101,4,2,108,114,18834,18840,101,102,116,59,1,8882,105,103,104,116,59,1,8883,121,59,1,1074,97,115,104,59,1,8866,4,3,101,108,114,18865,18884,18890,4,3,59,98,101,18873,18875,18880,1,8744,97,114,59,1,8891,113,59,1,8794,108,105,112,59,1,8942,4,2,98,116,18896,18901,97,114,59,1,124,59,1,124,114,59,3,55349,56627,116,114,105,59,1,8882,115,117,4,2,98,112,18923,18927,59,3,8834,8402,59,3,8835,8402,112,102,59,3,55349,56679,114,111,112,59,1,8733,116,114,105,59,1,8883,4,2,99,117,18955,18960,114,59,3,55349,56523,4,2,98,112,18966,18981,110,4,2,69,101,18973,18977,59,3,10955,65024,59,3,8842,65024,110,4,2,69,101,18988,18992,59,3,10956,65024,59,3,8843,65024,105,103,122,97,103,59,1,10650,4,7,99,101,102,111,112,114,115,19020,19026,19061,19066,19072,19075,19089,105,114,99,59,1,373,4,2,100,105,19032,19055,4,2,98,103,19038,19043,97,114,59,1,10847,101,4,2,59,113,19050,19052,1,8743,59,1,8793,101,114,112,59,1,8472,114,59,3,55349,56628,112,102,59,3,55349,56680,59,1,8472,4,2,59,101,19081,19083,1,8768,97,116,104,59,1,8768,99,114,59,3,55349,56524,4,14,99,100,102,104,105,108,109,110,111,114,115,117,118,119,19125,19146,19152,19157,19173,19176,19192,19197,19202,19236,19252,19269,19286,19291,4,3,97,105,117,19133,19137,19142,112,59,1,8898,114,99,59,1,9711,112,59,1,8899,116,114,105,59,1,9661,114,59,3,55349,56629,4,2,65,97,19163,19168,114,114,59,1,10234,114,114,59,1,10231,59,1,958,4,2,65,97,19182,19187,114,114,59,1,10232,114,114,59,1,10229,97,112,59,1,10236,105,115,59,1,8955,4,3,100,112,116,19210,19215,19230,111,116,59,1,10752,4,2,102,108,19221,19225,59,3,55349,56681,117,115,59,1,10753,105,109,101,59,1,10754,4,2,65,97,19242,19247,114,114,59,1,10233,114,114,59,1,10230,4,2,99,113,19258,19263,114,59,3,55349,56525,99,117,112,59,1,10758,4,2,112,116,19275,19281,108,117,115,59,1,10756,114,105,59,1,9651,101,101,59,1,8897,101,100,103,101,59,1,8896,4,8,97,99,101,102,105,111,115,117,19316,19335,19349,19357,19362,19367,19373,19379,99,4,2,117,121,19323,19332,116,101,5,253,1,59,19330,1,253,59,1,1103,4,2,105,121,19341,19346,114,99,59,1,375,59,1,1099,110,5,165,1,59,19355,1,165,114,59,3,55349,56630,99,121,59,1,1111,112,102,59,3,55349,56682,99,114,59,3,55349,56526,4,2,99,109,19385,19389,121,59,1,1102,108,5,255,1,59,19395,1,255,4,10,97,99,100,101,102,104,105,111,115,119,19419,19426,19441,19446,19462,19467,19472,19480,19486,19492,99,117,116,101,59,1,378,4,2,97,121,19432,19438,114,111,110,59,1,382,59,1,1079,111,116,59,1,380,4,2,101,116,19452,19458,116,114,102,59,1,8488,97,59,1,950,114,59,3,55349,56631,99,121,59,1,1078,103,114,97,114,114,59,1,8669,112,102,59,3,55349,56683,99,114,59,3,55349,56527,4,2,106,110,19498,19501,59,1,8205,106,59,1,8204]);const Dm=Im,Mm=xm,Fm=Lm,Hm=Om,Bm=Mm.CODE_POINTS,Um=Mm.CODE_POINT_SEQUENCES,jm={128:8364,130:8218,131:402,132:8222,133:8230,134:8224,135:8225,136:710,137:8240,138:352,139:8249,140:338,142:381,145:8216,146:8217,147:8220,148:8221,149:8226,150:8211,151:8212,152:732,153:8482,154:353,155:8250,156:339,158:382,159:376},qm="DATA_STATE",zm="RCDATA_STATE",Gm="RAWTEXT_STATE",Km="SCRIPT_DATA_STATE",$m="PLAINTEXT_STATE",Vm="TAG_OPEN_STATE",Qm="END_TAG_OPEN_STATE",Wm="TAG_NAME_STATE",Ym="RCDATA_LESS_THAN_SIGN_STATE",Xm="RCDATA_END_TAG_OPEN_STATE",Jm="RCDATA_END_TAG_NAME_STATE",Zm="RAWTEXT_LESS_THAN_SIGN_STATE",eg="RAWTEXT_END_TAG_OPEN_STATE",tg="RAWTEXT_END_TAG_NAME_STATE",rg="SCRIPT_DATA_LESS_THAN_SIGN_STATE",ng="SCRIPT_DATA_END_TAG_OPEN_STATE",ig="SCRIPT_DATA_END_TAG_NAME_STATE",og="SCRIPT_DATA_ESCAPE_START_STATE",ag="SCRIPT_DATA_ESCAPE_START_DASH_STATE",sg="SCRIPT_DATA_ESCAPED_STATE",cg="SCRIPT_DATA_ESCAPED_DASH_STATE",lg="SCRIPT_DATA_ESCAPED_DASH_DASH_STATE",ug="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN_STATE",hg="SCRIPT_DATA_ESCAPED_END_TAG_OPEN_STATE",pg="SCRIPT_DATA_ESCAPED_END_TAG_NAME_STATE",fg="SCRIPT_DATA_DOUBLE_ESCAPE_START_STATE",dg="SCRIPT_DATA_DOUBLE_ESCAPED_STATE",mg="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_STATE",gg="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH_STATE",Eg="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN_STATE",yg="SCRIPT_DATA_DOUBLE_ESCAPE_END_STATE",Tg="BEFORE_ATTRIBUTE_NAME_STATE",vg="ATTRIBUTE_NAME_STATE",bg="AFTER_ATTRIBUTE_NAME_STATE",_g="BEFORE_ATTRIBUTE_VALUE_STATE",Ag="ATTRIBUTE_VALUE_DOUBLE_QUOTED_STATE",Sg="ATTRIBUTE_VALUE_SINGLE_QUOTED_STATE",kg="ATTRIBUTE_VALUE_UNQUOTED_STATE",Cg="AFTER_ATTRIBUTE_VALUE_QUOTED_STATE",xg="SELF_CLOSING_START_TAG_STATE",wg="BOGUS_COMMENT_STATE",Og="MARKUP_DECLARATION_OPEN_STATE",Ng="COMMENT_START_STATE",Pg="COMMENT_START_DASH_STATE",Rg="COMMENT_STATE",Ig="COMMENT_LESS_THAN_SIGN_STATE",Lg="COMMENT_LESS_THAN_SIGN_BANG_STATE",Dg="COMMENT_LESS_THAN_SIGN_BANG_DASH_STATE",Mg="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH_STATE",Fg="COMMENT_END_DASH_STATE",Hg="COMMENT_END_STATE",Bg="COMMENT_END_BANG_STATE",Ug="DOCTYPE_STATE",jg="BEFORE_DOCTYPE_NAME_STATE",qg="DOCTYPE_NAME_STATE",zg="AFTER_DOCTYPE_NAME_STATE",Gg="AFTER_DOCTYPE_PUBLIC_KEYWORD_STATE",Kg="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER_STATE",$g="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED_STATE",Vg="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED_STATE",Qg="AFTER_DOCTYPE_PUBLIC_IDENTIFIER_STATE",Wg="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS_STATE",Yg="AFTER_DOCTYPE_SYSTEM_KEYWORD_STATE",Xg="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER_STATE",Jg="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED_STATE",Zg="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED_STATE",eE="AFTER_DOCTYPE_SYSTEM_IDENTIFIER_STATE",tE="BOGUS_DOCTYPE_STATE",rE="CDATA_SECTION_STATE",nE="CDATA_SECTION_BRACKET_STATE",iE="CDATA_SECTION_END_STATE",oE="CHARACTER_REFERENCE_STATE",aE="NAMED_CHARACTER_REFERENCE_STATE",sE="AMBIGUOS_AMPERSAND_STATE",cE="NUMERIC_CHARACTER_REFERENCE_STATE",lE="HEXADEMICAL_CHARACTER_REFERENCE_START_STATE",uE="DECIMAL_CHARACTER_REFERENCE_START_STATE",hE="HEXADEMICAL_CHARACTER_REFERENCE_STATE",pE="DECIMAL_CHARACTER_REFERENCE_STATE",fE="NUMERIC_CHARACTER_REFERENCE_END_STATE";function dE(e){return e===Bm.SPACE||e===Bm.LINE_FEED||e===Bm.TABULATION||e===Bm.FORM_FEED}function mE(e){return e>=Bm.DIGIT_0&&e<=Bm.DIGIT_9}function gE(e){return e>=Bm.LATIN_CAPITAL_A&&e<=Bm.LATIN_CAPITAL_Z}function EE(e){return e>=Bm.LATIN_SMALL_A&&e<=Bm.LATIN_SMALL_Z}function yE(e){return EE(e)||gE(e)}function TE(e){return yE(e)||mE(e)}function vE(e){return e>=Bm.LATIN_CAPITAL_A&&e<=Bm.LATIN_CAPITAL_F}function bE(e){return e>=Bm.LATIN_SMALL_A&&e<=Bm.LATIN_SMALL_F}function _E(e){return e+32}function AE(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode(e>>>10&1023|55296)+String.fromCharCode(56320|1023&e))}function SE(e){return String.fromCharCode(_E(e))}function kE(e,t){const r=Fm[++e];let n=++e,i=n+r-1;for(;n<=i;){const e=n+i>>>1,o=Fm[e];if(o<t)n=e+1;else{if(!(o>t))return Fm[e+r];i=e-1}}return-1}class CE{constructor(){this.preprocessor=new Dm,this.tokenQueue=[],this.allowCDATA=!1,this.state=qm,this.returnState="",this.charRefCode=-1,this.tempBuff=[],this.lastStartTagName="",this.consumedAfterSnapshot=-1,this.active=!1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr=null}_err(){}_errOnNextCodePoint(e){this._consume(),this._err(e),this._unconsume()}getNextToken(){for(;!this.tokenQueue.length&&this.active;){this.consumedAfterSnapshot=0;const e=this._consume();this._ensureHibernation()||this[this.state](e)}return this.tokenQueue.shift()}write(e,t){this.active=!0,this.preprocessor.write(e,t)}insertHtmlAtCurrentPos(e){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(e)}_ensureHibernation(){if(this.preprocessor.endOfChunkHit){for(;this.consumedAfterSnapshot>0;this.consumedAfterSnapshot--)this.preprocessor.retreat();return this.active=!1,this.tokenQueue.push({type:CE.HIBERNATION_TOKEN}),!0}return!1}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_unconsume(){this.consumedAfterSnapshot--,this.preprocessor.retreat()}_reconsumeInState(e){this.state=e,this._unconsume()}_consumeSequenceIfMatch(e,t,r){let n=0,i=!0;const o=e.length;let a,s=0,c=t;for(;s<o;s++){if(s>0&&(c=this._consume(),n++),c===Bm.EOF){i=!1;break}if(a=e[s],c!==a&&(r||c!==_E(a))){i=!1;break}}if(!i)for(;n--;)this._unconsume();return i}_isTempBufferEqualToScriptString(){if(this.tempBuff.length!==Um.SCRIPT_STRING.length)return!1;for(let e=0;e<this.tempBuff.length;e++)if(this.tempBuff[e]!==Um.SCRIPT_STRING[e])return!1;return!0}_createStartTagToken(){this.currentToken={type:CE.START_TAG_TOKEN,tagName:"",selfClosing:!1,ackSelfClosing:!1,attrs:[]}}_createEndTagToken(){this.currentToken={type:CE.END_TAG_TOKEN,tagName:"",selfClosing:!1,attrs:[]}}_createCommentToken(){this.currentToken={type:CE.COMMENT_TOKEN,data:""}}_createDoctypeToken(e){this.currentToken={type:CE.DOCTYPE_TOKEN,name:e,forceQuirks:!1,publicId:null,systemId:null}}_createCharacterToken(e,t){this.currentCharacterToken={type:e,chars:t}}_createEOFToken(){this.currentToken={type:CE.EOF_TOKEN}}_createAttr(e){this.currentAttr={name:e,value:""}}_leaveAttrName(e){null===CE.getTokenAttr(this.currentToken,this.currentAttr.name)?this.currentToken.attrs.push(this.currentAttr):this._err(Hm.duplicateAttribute),this.state=e}_leaveAttrValue(e){this.state=e}_emitCurrentToken(){this._emitCurrentCharacterToken();const e=this.currentToken;this.currentToken=null,e.type===CE.START_TAG_TOKEN?this.lastStartTagName=e.tagName:e.type===CE.END_TAG_TOKEN&&(e.attrs.length>0&&this._err(Hm.endTagWithAttributes),e.selfClosing&&this._err(Hm.endTagWithTrailingSolidus)),this.tokenQueue.push(e)}_emitCurrentCharacterToken(){this.currentCharacterToken&&(this.tokenQueue.push(this.currentCharacterToken),this.currentCharacterToken=null)}_emitEOFToken(){this._createEOFToken(),this._emitCurrentToken()}_appendCharToCurrentCharacterToken(e,t){this.currentCharacterToken&&this.currentCharacterToken.type!==e&&this._emitCurrentCharacterToken(),this.currentCharacterToken?this.currentCharacterToken.chars+=t:this._createCharacterToken(e,t)}_emitCodePoint(e){let t=CE.CHARACTER_TOKEN;dE(e)?t=CE.WHITESPACE_CHARACTER_TOKEN:e===Bm.NULL&&(t=CE.NULL_CHARACTER_TOKEN),this._appendCharToCurrentCharacterToken(t,AE(e))}_emitSeveralCodePoints(e){for(let t=0;t<e.length;t++)this._emitCodePoint(e[t])}_emitChars(e){this._appendCharToCurrentCharacterToken(CE.CHARACTER_TOKEN,e)}_matchNamedCharacterReference(e){let t=null,r=1,n=kE(0,e);for(this.tempBuff.push(e);n>-1;){const e=Fm[n],i=e<7;i&&1&e&&(t=2&e?[Fm[++n],Fm[++n]]:[Fm[++n]],r=0);const o=this._consume();if(this.tempBuff.push(o),r++,o===Bm.EOF)break;n=i?4&e?kE(n,o):-1:o===e?++n:-1}for(;r--;)this.tempBuff.pop(),this._unconsume();return t}_isCharacterReferenceInAttribute(){return this.returnState===Ag||this.returnState===Sg||this.returnState===kg}_isCharacterReferenceAttributeQuirk(e){if(!e&&this._isCharacterReferenceInAttribute()){const e=this._consume();return this._unconsume(),e===Bm.EQUALS_SIGN||TE(e)}return!1}_flushCodePointsConsumedAsCharacterReference(){if(this._isCharacterReferenceInAttribute())for(let e=0;e<this.tempBuff.length;e++)this.currentAttr.value+=AE(this.tempBuff[e]);else this._emitSeveralCodePoints(this.tempBuff);this.tempBuff=[]}[qm](e){this.preprocessor.dropParsedChunk(),e===Bm.LESS_THAN_SIGN?this.state=Vm:e===Bm.AMPERSAND?(this.returnState=qm,this.state=oE):e===Bm.NULL?(this._err(Hm.unexpectedNullCharacter),this._emitCodePoint(e)):e===Bm.EOF?this._emitEOFToken():this._emitCodePoint(e)}[zm](e){this.preprocessor.dropParsedChunk(),e===Bm.AMPERSAND?(this.returnState=zm,this.state=oE):e===Bm.LESS_THAN_SIGN?this.state=Ym:e===Bm.NULL?(this._err(Hm.unexpectedNullCharacter),this._emitChars(Mm.REPLACEMENT_CHARACTER)):e===Bm.EOF?this._emitEOFToken():this._emitCodePoint(e)}[Gm](e){this.preprocessor.dropParsedChunk(),e===Bm.LESS_THAN_SIGN?this.state=Zm:e===Bm.NULL?(this._err(Hm.unexpectedNullCharacter),this._emitChars(Mm.REPLACEMENT_CHARACTER)):e===Bm.EOF?this._emitEOFToken():this._emitCodePoint(e)}[Km](e){this.preprocessor.dropParsedChunk(),e===Bm.LESS_THAN_SIGN?this.state=rg:e===Bm.NULL?(this._err(Hm.unexpectedNullCharacter),this._emitChars(Mm.REPLACEMENT_CHARACTER)):e===Bm.EOF?this._emitEOFToken():this._emitCodePoint(e)}[$m](e){this.preprocessor.dropParsedChunk(),e===Bm.NULL?(this._err(Hm.unexpectedNullCharacter),this._emitChars(Mm.REPLACEMENT_CHARACTER)):e===Bm.EOF?this._emitEOFToken():this._emitCodePoint(e)}[Vm](e){e===Bm.EXCLAMATION_MARK?this.state=Og:e===Bm.SOLIDUS?this.state=Qm:yE(e)?(this._createStartTagToken(),this._reconsumeInState(Wm)):e===Bm.QUESTION_MARK?(this._err(Hm.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(),this._reconsumeInState(wg)):e===Bm.EOF?(this._err(Hm.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken()):(this._err(Hm.invalidFirstCharacterOfTagName),this._emitChars("<"),this._reconsumeInState(qm))}[Qm](e){yE(e)?(this._createEndTagToken(),this._reconsumeInState(Wm)):e===Bm.GREATER_THAN_SIGN?(this._err(Hm.missingEndTagName),this.state=qm):e===Bm.EOF?(this._err(Hm.eofBeforeTagName),this._emitChars("</"),this._emitEOFToken()):(this._err(Hm.invalidFirstCharacterOfTagName),this._createCommentToken(),this._reconsumeInState(wg))}[Wm](e){dE(e)?this.state=Tg:e===Bm.SOLIDUS?this.state=xg:e===Bm.GREATER_THAN_SIGN?(this.state=qm,this._emitCurrentToken()):gE(e)?this.currentToken.tagName+=SE(e):e===Bm.NULL?(this._err(Hm.unexpectedNullCharacter),this.currentToken.tagName+=Mm.REPLACEMENT_CHARACTER):e===Bm.EOF?(this._err(Hm.eofInTag),this._emitEOFToken()):this.currentToken.tagName+=AE(e)}[Ym](e){e===Bm.SOLIDUS?(this.tempBuff=[],this.state=Xm):(this._emitChars("<"),this._reconsumeInState(zm))}[Xm](e){yE(e)?(this._createEndTagToken(),this._reconsumeInState(Jm)):(this._emitChars("</"),this._reconsumeInState(zm))}[Jm](e){if(gE(e))this.currentToken.tagName+=SE(e),this.tempBuff.push(e);else if(EE(e))this.currentToken.tagName+=AE(e),this.tempBuff.push(e);else{if(this.lastStartTagName===this.currentToken.tagName){if(dE(e))return void(this.state=Tg);if(e===Bm.SOLIDUS)return void(this.state=xg);if(e===Bm.GREATER_THAN_SIGN)return this.state=qm,void this._emitCurrentToken()}this._emitChars("</"),this._emitSeveralCodePoints(this.tempBuff),this._reconsumeInState(zm)}}[Zm](e){e===Bm.SOLIDUS?(this.tempBuff=[],this.state=eg):(this._emitChars("<"),this._reconsumeInState(Gm))}[eg](e){yE(e)?(this._createEndTagToken(),this._reconsumeInState(tg)):(this._emitChars("</"),this._reconsumeInState(Gm))}[tg](e){if(gE(e))this.currentToken.tagName+=SE(e),this.tempBuff.push(e);else if(EE(e))this.currentToken.tagName+=AE(e),this.tempBuff.push(e);else{if(this.lastStartTagName===this.currentToken.tagName){if(dE(e))return void(this.state=Tg);if(e===Bm.SOLIDUS)return void(this.state=xg);if(e===Bm.GREATER_THAN_SIGN)return this._emitCurrentToken(),void(this.state=qm)}this._emitChars("</"),this._emitSeveralCodePoints(this.tempBuff),this._reconsumeInState(Gm)}}[rg](e){e===Bm.SOLIDUS?(this.tempBuff=[],this.state=ng):e===Bm.EXCLAMATION_MARK?(this.state=og,this._emitChars("<!")):(this._emitChars("<"),this._reconsumeInState(Km))}[ng](e){yE(e)?(this._createEndTagToken(),this._reconsumeInState(ig)):(this._emitChars("</"),this._reconsumeInState(Km))}[ig](e){if(gE(e))this.currentToken.tagName+=SE(e),this.tempBuff.push(e);else if(EE(e))this.currentToken.tagName+=AE(e),this.tempBuff.push(e);else{if(this.lastStartTagName===this.currentToken.tagName){if(dE(e))return void(this.state=Tg);if(e===Bm.SOLIDUS)return void(this.state=xg);if(e===Bm.GREATER_THAN_SIGN)return this._emitCurrentToken(),void(this.state=qm)}this._emitChars("</"),this._emitSeveralCodePoints(this.tempBuff),this._reconsumeInState(Km)}}[og](e){e===Bm.HYPHEN_MINUS?(this.state=ag,this._emitChars("-")):this._reconsumeInState(Km)}[ag](e){e===Bm.HYPHEN_MINUS?(this.state=lg,this._emitChars("-")):this._reconsumeInState(Km)}[sg](e){e===Bm.HYPHEN_MINUS?(this.state=cg,this._emitChars("-")):e===Bm.LESS_THAN_SIGN?this.state=ug:e===Bm.NULL?(this._err(Hm.unexpectedNullCharacter),this._emitChars(Mm.REPLACEMENT_CHARACTER)):e===Bm.EOF?(this._err(Hm.eofInScriptHtmlCommentLikeText),this._emitEOFToken()):this._emitCodePoint(e)}[cg](e){e===Bm.HYPHEN_MINUS?(this.state=lg,this._emitChars("-")):e===Bm.LESS_THAN_SIGN?this.state=ug:e===Bm.NULL?(this._err(Hm.unexpectedNullCharacter),this.state=sg,this._emitChars(Mm.REPLACEMENT_CHARACTER)):e===Bm.EOF?(this._err(Hm.eofInScriptHtmlCommentLikeText),this._emitEOFToken()):(this.state=sg,this._emitCodePoint(e))}[lg](e){e===Bm.HYPHEN_MINUS?this._emitChars("-"):e===Bm.LESS_THAN_SIGN?this.state=ug:e===Bm.GREATER_THAN_SIGN?(this.state=Km,this._emitChars(">")):e===Bm.NULL?(this._err(Hm.unexpectedNullCharacter),this.state=sg,this._emitChars(Mm.REPLACEMENT_CHARACTER)):e===Bm.EOF?(this._err(Hm.eofInScriptHtmlCommentLikeText),this._emitEOFToken()):(this.state=sg,this._emitCodePoint(e))}[ug](e){e===Bm.SOLIDUS?(this.tempBuff=[],this.state=hg):yE(e)?(this.tempBuff=[],this._emitChars("<"),this._reconsumeInState(fg)):(this._emitChars("<"),this._reconsumeInState(sg))}[hg](e){yE(e)?(this._createEndTagToken(),this._reconsumeInState(pg)):(this._emitChars("</"),this._reconsumeInState(sg))}[pg](e){if(gE(e))this.currentToken.tagName+=SE(e),this.tempBuff.push(e);else if(EE(e))this.currentToken.tagName+=AE(e),this.tempBuff.push(e);else{if(this.lastStartTagName===this.currentToken.tagName){if(dE(e))return void(this.state=Tg);if(e===Bm.SOLIDUS)return void(this.state=xg);if(e===Bm.GREATER_THAN_SIGN)return this._emitCurrentToken(),void(this.state=qm)}this._emitChars("</"),this._emitSeveralCodePoints(this.tempBuff),this._reconsumeInState(sg)}}[fg](e){dE(e)||e===Bm.SOLIDUS||e===Bm.GREATER_THAN_SIGN?(this.state=this._isTempBufferEqualToScriptString()?dg:sg,this._emitCodePoint(e)):gE(e)?(this.tempBuff.push(_E(e)),this._emitCodePoint(e)):EE(e)?(this.tempBuff.push(e),this._emitCodePoint(e)):this._reconsumeInState(sg)}[dg](e){e===Bm.HYPHEN_MINUS?(this.state=mg,this._emitChars("-")):e===Bm.LESS_THAN_SIGN?(this.state=Eg,this._emitChars("<")):e===Bm.NULL?(this._err(Hm.unexpectedNullCharacter),this._emitChars(Mm.REPLACEMENT_CHARACTER)):e===Bm.EOF?(this._err(Hm.eofInScriptHtmlCommentLikeText),this._emitEOFToken()):this._emitCodePoint(e)}[mg](e){e===Bm.HYPHEN_MINUS?(this.state=gg,this._emitChars("-")):e===Bm.LESS_THAN_SIGN?(this.state=Eg,this._emitChars("<")):e===Bm.NULL?(this._err(Hm.unexpectedNullCharacter),this.state=dg,this._emitChars(Mm.REPLACEMENT_CHARACTER)):e===Bm.EOF?(this._err(Hm.eofInScriptHtmlCommentLikeText),this._emitEOFToken()):(this.state=dg,this._emitCodePoint(e))}[gg](e){e===Bm.HYPHEN_MINUS?this._emitChars("-"):e===Bm.LESS_THAN_SIGN?(this.state=Eg,this._emitChars("<")):e===Bm.GREATER_THAN_SIGN?(this.state=Km,this._emitChars(">")):e===Bm.NULL?(this._err(Hm.unexpectedNullCharacter),this.state=dg,this._emitChars(Mm.REPLACEMENT_CHARACTER)):e===Bm.EOF?(this._err(Hm.eofInScriptHtmlCommentLikeText),this._emitEOFToken()):(this.state=dg,this._emitCodePoint(e))}[Eg](e){e===Bm.SOLIDUS?(this.tempBuff=[],this.state=yg,this._emitChars("/")):this._reconsumeInState(dg)}[yg](e){dE(e)||e===Bm.SOLIDUS||e===Bm.GREATER_THAN_SIGN?(this.state=this._isTempBufferEqualToScriptString()?sg:dg,this._emitCodePoint(e)):gE(e)?(this.tempBuff.push(_E(e)),this._emitCodePoint(e)):EE(e)?(this.tempBuff.push(e),this._emitCodePoint(e)):this._reconsumeInState(dg)}[Tg](e){dE(e)||(e===Bm.SOLIDUS||e===Bm.GREATER_THAN_SIGN||e===Bm.EOF?this._reconsumeInState(bg):e===Bm.EQUALS_SIGN?(this._err(Hm.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state=vg):(this._createAttr(""),this._reconsumeInState(vg)))}[vg](e){dE(e)||e===Bm.SOLIDUS||e===Bm.GREATER_THAN_SIGN||e===Bm.EOF?(this._leaveAttrName(bg),this._unconsume()):e===Bm.EQUALS_SIGN?this._leaveAttrName(_g):gE(e)?this.currentAttr.name+=SE(e):e===Bm.QUOTATION_MARK||e===Bm.APOSTROPHE||e===Bm.LESS_THAN_SIGN?(this._err(Hm.unexpectedCharacterInAttributeName),this.currentAttr.name+=AE(e)):e===Bm.NULL?(this._err(Hm.unexpectedNullCharacter),this.currentAttr.name+=Mm.REPLACEMENT_CHARACTER):this.currentAttr.name+=AE(e)}[bg](e){dE(e)||(e===Bm.SOLIDUS?this.state=xg:e===Bm.EQUALS_SIGN?this.state=_g:e===Bm.GREATER_THAN_SIGN?(this.state=qm,this._emitCurrentToken()):e===Bm.EOF?(this._err(Hm.eofInTag),this._emitEOFToken()):(this._createAttr(""),this._reconsumeInState(vg)))}[_g](e){dE(e)||(e===Bm.QUOTATION_MARK?this.state=Ag:e===Bm.APOSTROPHE?this.state=Sg:e===Bm.GREATER_THAN_SIGN?(this._err(Hm.missingAttributeValue),this.state=qm,this._emitCurrentToken()):this._reconsumeInState(kg))}[Ag](e){e===Bm.QUOTATION_MARK?this.state=Cg:e===Bm.AMPERSAND?(this.returnState=Ag,this.state=oE):e===Bm.NULL?(this._err(Hm.unexpectedNullCharacter),this.currentAttr.value+=Mm.REPLACEMENT_CHARACTER):e===Bm.EOF?(this._err(Hm.eofInTag),this._emitEOFToken()):this.currentAttr.value+=AE(e)}[Sg](e){e===Bm.APOSTROPHE?this.state=Cg:e===Bm.AMPERSAND?(this.returnState=Sg,this.state=oE):e===Bm.NULL?(this._err(Hm.unexpectedNullCharacter),this.currentAttr.value+=Mm.REPLACEMENT_CHARACTER):e===Bm.EOF?(this._err(Hm.eofInTag),this._emitEOFToken()):this.currentAttr.value+=AE(e)}[kg](e){dE(e)?this._leaveAttrValue(Tg):e===Bm.AMPERSAND?(this.returnState=kg,this.state=oE):e===Bm.GREATER_THAN_SIGN?(this._leaveAttrValue(qm),this._emitCurrentToken()):e===Bm.NULL?(this._err(Hm.unexpectedNullCharacter),this.currentAttr.value+=Mm.REPLACEMENT_CHARACTER):e===Bm.QUOTATION_MARK||e===Bm.APOSTROPHE||e===Bm.LESS_THAN_SIGN||e===Bm.EQUALS_SIGN||e===Bm.GRAVE_ACCENT?(this._err(Hm.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=AE(e)):e===Bm.EOF?(this._err(Hm.eofInTag),this._emitEOFToken()):this.currentAttr.value+=AE(e)}[Cg](e){dE(e)?this._leaveAttrValue(Tg):e===Bm.SOLIDUS?this._leaveAttrValue(xg):e===Bm.GREATER_THAN_SIGN?(this._leaveAttrValue(qm),this._emitCurrentToken()):e===Bm.EOF?(this._err(Hm.eofInTag),this._emitEOFToken()):(this._err(Hm.missingWhitespaceBetweenAttributes),this._reconsumeInState(Tg))}[xg](e){e===Bm.GREATER_THAN_SIGN?(this.currentToken.selfClosing=!0,this.state=qm,this._emitCurrentToken()):e===Bm.EOF?(this._err(Hm.eofInTag),this._emitEOFToken()):(this._err(Hm.unexpectedSolidusInTag),this._reconsumeInState(Tg))}[wg](e){e===Bm.GREATER_THAN_SIGN?(this.state=qm,this._emitCurrentToken()):e===Bm.EOF?(this._emitCurrentToken(),this._emitEOFToken()):e===Bm.NULL?(this._err(Hm.unexpectedNullCharacter),this.currentToken.data+=Mm.REPLACEMENT_CHARACTER):this.currentToken.data+=AE(e)}[Og](e){this._consumeSequenceIfMatch(Um.DASH_DASH_STRING,e,!0)?(this._createCommentToken(),this.state=Ng):this._consumeSequenceIfMatch(Um.DOCTYPE_STRING,e,!1)?this.state=Ug:this._consumeSequenceIfMatch(Um.CDATA_START_STRING,e,!0)?this.allowCDATA?this.state=rE:(this._err(Hm.cdataInHtmlContent),this._createCommentToken(),this.currentToken.data="[CDATA[",this.state=wg):this._ensureHibernation()||(this._err(Hm.incorrectlyOpenedComment),this._createCommentToken(),this._reconsumeInState(wg))}[Ng](e){e===Bm.HYPHEN_MINUS?this.state=Pg:e===Bm.GREATER_THAN_SIGN?(this._err(Hm.abruptClosingOfEmptyComment),this.state=qm,this._emitCurrentToken()):this._reconsumeInState(Rg)}[Pg](e){e===Bm.HYPHEN_MINUS?this.state=Hg:e===Bm.GREATER_THAN_SIGN?(this._err(Hm.abruptClosingOfEmptyComment),this.state=qm,this._emitCurrentToken()):e===Bm.EOF?(this._err(Hm.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):(this.currentToken.data+="-",this._reconsumeInState(Rg))}[Rg](e){e===Bm.HYPHEN_MINUS?this.state=Fg:e===Bm.LESS_THAN_SIGN?(this.currentToken.data+="<",this.state=Ig):e===Bm.NULL?(this._err(Hm.unexpectedNullCharacter),this.currentToken.data+=Mm.REPLACEMENT_CHARACTER):e===Bm.EOF?(this._err(Hm.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.data+=AE(e)}[Ig](e){e===Bm.EXCLAMATION_MARK?(this.currentToken.data+="!",this.state=Lg):e===Bm.LESS_THAN_SIGN?this.currentToken.data+="!":this._reconsumeInState(Rg)}[Lg](e){e===Bm.HYPHEN_MINUS?this.state=Dg:this._reconsumeInState(Rg)}[Dg](e){e===Bm.HYPHEN_MINUS?this.state=Mg:this._reconsumeInState(Fg)}[Mg](e){e!==Bm.GREATER_THAN_SIGN&&e!==Bm.EOF&&this._err(Hm.nestedComment),this._reconsumeInState(Hg)}[Fg](e){e===Bm.HYPHEN_MINUS?this.state=Hg:e===Bm.EOF?(this._err(Hm.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):(this.currentToken.data+="-",this._reconsumeInState(Rg))}[Hg](e){e===Bm.GREATER_THAN_SIGN?(this.state=qm,this._emitCurrentToken()):e===Bm.EXCLAMATION_MARK?this.state=Bg:e===Bm.HYPHEN_MINUS?this.currentToken.data+="-":e===Bm.EOF?(this._err(Hm.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):(this.currentToken.data+="--",this._reconsumeInState(Rg))}[Bg](e){e===Bm.HYPHEN_MINUS?(this.currentToken.data+="--!",this.state=Fg):e===Bm.GREATER_THAN_SIGN?(this._err(Hm.incorrectlyClosedComment),this.state=qm,this._emitCurrentToken()):e===Bm.EOF?(this._err(Hm.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):(this.currentToken.data+="--!",this._reconsumeInState(Rg))}[Ug](e){dE(e)?this.state=jg:e===Bm.GREATER_THAN_SIGN?this._reconsumeInState(jg):e===Bm.EOF?(this._err(Hm.eofInDoctype),this._createDoctypeToken(null),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(Hm.missingWhitespaceBeforeDoctypeName),this._reconsumeInState(jg))}[jg](e){dE(e)||(gE(e)?(this._createDoctypeToken(SE(e)),this.state=qg):e===Bm.NULL?(this._err(Hm.unexpectedNullCharacter),this._createDoctypeToken(Mm.REPLACEMENT_CHARACTER),this.state=qg):e===Bm.GREATER_THAN_SIGN?(this._err(Hm.missingDoctypeName),this._createDoctypeToken(null),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=qm):e===Bm.EOF?(this._err(Hm.eofInDoctype),this._createDoctypeToken(null),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._createDoctypeToken(AE(e)),this.state=qg))}[qg](e){dE(e)?this.state=zg:e===Bm.GREATER_THAN_SIGN?(this.state=qm,this._emitCurrentToken()):gE(e)?this.currentToken.name+=SE(e):e===Bm.NULL?(this._err(Hm.unexpectedNullCharacter),this.currentToken.name+=Mm.REPLACEMENT_CHARACTER):e===Bm.EOF?(this._err(Hm.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.name+=AE(e)}[zg](e){dE(e)||(e===Bm.GREATER_THAN_SIGN?(this.state=qm,this._emitCurrentToken()):e===Bm.EOF?(this._err(Hm.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this._consumeSequenceIfMatch(Um.PUBLIC_STRING,e,!1)?this.state=Gg:this._consumeSequenceIfMatch(Um.SYSTEM_STRING,e,!1)?this.state=Yg:this._ensureHibernation()||(this._err(Hm.invalidCharacterSequenceAfterDoctypeName),this.currentToken.forceQuirks=!0,this._reconsumeInState(tE)))}[Gg](e){dE(e)?this.state=Kg:e===Bm.QUOTATION_MARK?(this._err(Hm.missingWhitespaceAfterDoctypePublicKeyword),this.currentToken.publicId="",this.state=$g):e===Bm.APOSTROPHE?(this._err(Hm.missingWhitespaceAfterDoctypePublicKeyword),this.currentToken.publicId="",this.state=Vg):e===Bm.GREATER_THAN_SIGN?(this._err(Hm.missingDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this.state=qm,this._emitCurrentToken()):e===Bm.EOF?(this._err(Hm.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(Hm.missingQuoteBeforeDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(tE))}[Kg](e){dE(e)||(e===Bm.QUOTATION_MARK?(this.currentToken.publicId="",this.state=$g):e===Bm.APOSTROPHE?(this.currentToken.publicId="",this.state=Vg):e===Bm.GREATER_THAN_SIGN?(this._err(Hm.missingDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this.state=qm,this._emitCurrentToken()):e===Bm.EOF?(this._err(Hm.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(Hm.missingQuoteBeforeDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(tE)))}[$g](e){e===Bm.QUOTATION_MARK?this.state=Qg:e===Bm.NULL?(this._err(Hm.unexpectedNullCharacter),this.currentToken.publicId+=Mm.REPLACEMENT_CHARACTER):e===Bm.GREATER_THAN_SIGN?(this._err(Hm.abruptDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=qm):e===Bm.EOF?(this._err(Hm.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.publicId+=AE(e)}[Vg](e){e===Bm.APOSTROPHE?this.state=Qg:e===Bm.NULL?(this._err(Hm.unexpectedNullCharacter),this.currentToken.publicId+=Mm.REPLACEMENT_CHARACTER):e===Bm.GREATER_THAN_SIGN?(this._err(Hm.abruptDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=qm):e===Bm.EOF?(this._err(Hm.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.publicId+=AE(e)}[Qg](e){dE(e)?this.state=Wg:e===Bm.GREATER_THAN_SIGN?(this.state=qm,this._emitCurrentToken()):e===Bm.QUOTATION_MARK?(this._err(Hm.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),this.currentToken.systemId="",this.state=Jg):e===Bm.APOSTROPHE?(this._err(Hm.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),this.currentToken.systemId="",this.state=Zg):e===Bm.EOF?(this._err(Hm.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(Hm.missingQuoteBeforeDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(tE))}[Wg](e){dE(e)||(e===Bm.GREATER_THAN_SIGN?(this._emitCurrentToken(),this.state=qm):e===Bm.QUOTATION_MARK?(this.currentToken.systemId="",this.state=Jg):e===Bm.APOSTROPHE?(this.currentToken.systemId="",this.state=Zg):e===Bm.EOF?(this._err(Hm.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(Hm.missingQuoteBeforeDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(tE)))}[Yg](e){dE(e)?this.state=Xg:e===Bm.QUOTATION_MARK?(this._err(Hm.missingWhitespaceAfterDoctypeSystemKeyword),this.currentToken.systemId="",this.state=Jg):e===Bm.APOSTROPHE?(this._err(Hm.missingWhitespaceAfterDoctypeSystemKeyword),this.currentToken.systemId="",this.state=Zg):e===Bm.GREATER_THAN_SIGN?(this._err(Hm.missingDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this.state=qm,this._emitCurrentToken()):e===Bm.EOF?(this._err(Hm.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(Hm.missingQuoteBeforeDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(tE))}[Xg](e){dE(e)||(e===Bm.QUOTATION_MARK?(this.currentToken.systemId="",this.state=Jg):e===Bm.APOSTROPHE?(this.currentToken.systemId="",this.state=Zg):e===Bm.GREATER_THAN_SIGN?(this._err(Hm.missingDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this.state=qm,this._emitCurrentToken()):e===Bm.EOF?(this._err(Hm.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(Hm.missingQuoteBeforeDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(tE)))}[Jg](e){e===Bm.QUOTATION_MARK?this.state=eE:e===Bm.NULL?(this._err(Hm.unexpectedNullCharacter),this.currentToken.systemId+=Mm.REPLACEMENT_CHARACTER):e===Bm.GREATER_THAN_SIGN?(this._err(Hm.abruptDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=qm):e===Bm.EOF?(this._err(Hm.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.systemId+=AE(e)}[Zg](e){e===Bm.APOSTROPHE?this.state=eE:e===Bm.NULL?(this._err(Hm.unexpectedNullCharacter),this.currentToken.systemId+=Mm.REPLACEMENT_CHARACTER):e===Bm.GREATER_THAN_SIGN?(this._err(Hm.abruptDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=qm):e===Bm.EOF?(this._err(Hm.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.systemId+=AE(e)}[eE](e){dE(e)||(e===Bm.GREATER_THAN_SIGN?(this._emitCurrentToken(),this.state=qm):e===Bm.EOF?(this._err(Hm.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(Hm.unexpectedCharacterAfterDoctypeSystemIdentifier),this._reconsumeInState(tE)))}[tE](e){e===Bm.GREATER_THAN_SIGN?(this._emitCurrentToken(),this.state=qm):e===Bm.NULL?this._err(Hm.unexpectedNullCharacter):e===Bm.EOF&&(this._emitCurrentToken(),this._emitEOFToken())}[rE](e){e===Bm.RIGHT_SQUARE_BRACKET?this.state=nE:e===Bm.EOF?(this._err(Hm.eofInCdata),this._emitEOFToken()):this._emitCodePoint(e)}[nE](e){e===Bm.RIGHT_SQUARE_BRACKET?this.state=iE:(this._emitChars("]"),this._reconsumeInState(rE))}[iE](e){e===Bm.GREATER_THAN_SIGN?this.state=qm:e===Bm.RIGHT_SQUARE_BRACKET?this._emitChars("]"):(this._emitChars("]]"),this._reconsumeInState(rE))}[oE](e){this.tempBuff=[Bm.AMPERSAND],e===Bm.NUMBER_SIGN?(this.tempBuff.push(e),this.state=cE):TE(e)?this._reconsumeInState(aE):(this._flushCodePointsConsumedAsCharacterReference(),this._reconsumeInState(this.returnState))}[aE](e){const t=this._matchNamedCharacterReference(e);if(this._ensureHibernation())this.tempBuff=[Bm.AMPERSAND];else if(t){const e=this.tempBuff[this.tempBuff.length-1]===Bm.SEMICOLON;this._isCharacterReferenceAttributeQuirk(e)||(e||this._errOnNextCodePoint(Hm.missingSemicolonAfterCharacterReference),this.tempBuff=t),this._flushCodePointsConsumedAsCharacterReference(),this.state=this.returnState}else this._flushCodePointsConsumedAsCharacterReference(),this.state=sE}[sE](e){TE(e)?this._isCharacterReferenceInAttribute()?this.currentAttr.value+=AE(e):this._emitCodePoint(e):(e===Bm.SEMICOLON&&this._err(Hm.unknownNamedCharacterReference),this._reconsumeInState(this.returnState))}[cE](e){this.charRefCode=0,e===Bm.LATIN_SMALL_X||e===Bm.LATIN_CAPITAL_X?(this.tempBuff.push(e),this.state=lE):this._reconsumeInState(uE)}[lE](e){!function(e){return mE(e)||vE(e)||bE(e)}(e)?(this._err(Hm.absenceOfDigitsInNumericCharacterReference),this._flushCodePointsConsumedAsCharacterReference(),this._reconsumeInState(this.returnState)):this._reconsumeInState(hE)}[uE](e){mE(e)?this._reconsumeInState(pE):(this._err(Hm.absenceOfDigitsInNumericCharacterReference),this._flushCodePointsConsumedAsCharacterReference(),this._reconsumeInState(this.returnState))}[hE](e){vE(e)?this.charRefCode=16*this.charRefCode+e-55:bE(e)?this.charRefCode=16*this.charRefCode+e-87:mE(e)?this.charRefCode=16*this.charRefCode+e-48:e===Bm.SEMICOLON?this.state=fE:(this._err(Hm.missingSemicolonAfterCharacterReference),this._reconsumeInState(fE))}[pE](e){mE(e)?this.charRefCode=10*this.charRefCode+e-48:e===Bm.SEMICOLON?this.state=fE:(this._err(Hm.missingSemicolonAfterCharacterReference),this._reconsumeInState(fE))}[fE](){if(this.charRefCode===Bm.NULL)this._err(Hm.nullCharacterReference),this.charRefCode=Bm.REPLACEMENT_CHARACTER;else if(this.charRefCode>1114111)this._err(Hm.characterReferenceOutsideUnicodeRange),this.charRefCode=Bm.REPLACEMENT_CHARACTER;else if(Mm.isSurrogate(this.charRefCode))this._err(Hm.surrogateCharacterReference),this.charRefCode=Bm.REPLACEMENT_CHARACTER;else if(Mm.isUndefinedCodePoint(this.charRefCode))this._err(Hm.noncharacterCharacterReference);else if(Mm.isControlCodePoint(this.charRefCode)||this.charRefCode===Bm.CARRIAGE_RETURN){this._err(Hm.controlCharacterReference);const e=jm[this.charRefCode];e&&(this.charRefCode=e)}this.tempBuff=[this.charRefCode],this._flushCodePointsConsumedAsCharacterReference(),this._reconsumeInState(this.returnState)}}CE.CHARACTER_TOKEN="CHARACTER_TOKEN",CE.NULL_CHARACTER_TOKEN="NULL_CHARACTER_TOKEN",CE.WHITESPACE_CHARACTER_TOKEN="WHITESPACE_CHARACTER_TOKEN",CE.START_TAG_TOKEN="START_TAG_TOKEN",CE.END_TAG_TOKEN="END_TAG_TOKEN",CE.COMMENT_TOKEN="COMMENT_TOKEN",CE.DOCTYPE_TOKEN="DOCTYPE_TOKEN",CE.EOF_TOKEN="EOF_TOKEN",CE.HIBERNATION_TOKEN="HIBERNATION_TOKEN",CE.MODE={DATA:qm,RCDATA:zm,RAWTEXT:Gm,SCRIPT_DATA:Km,PLAINTEXT:$m},CE.getTokenAttr=function(e,t){for(let r=e.attrs.length-1;r>=0;r--)if(e.attrs[r].name===t)return e.attrs[r].value;return null};var xE=CE,wE={};const OE=wE.NAMESPACES={HTML:"http://www.w3.org/1999/xhtml",MATHML:"http://www.w3.org/1998/Math/MathML",SVG:"http://www.w3.org/2000/svg",XLINK:"http://www.w3.org/1999/xlink",XML:"http://www.w3.org/XML/1998/namespace",XMLNS:"http://www.w3.org/2000/xmlns/"};wE.ATTRS={TYPE:"type",ACTION:"action",ENCODING:"encoding",PROMPT:"prompt",NAME:"name",COLOR:"color",FACE:"face",SIZE:"size"},wE.DOCUMENT_MODE={NO_QUIRKS:"no-quirks",QUIRKS:"quirks",LIMITED_QUIRKS:"limited-quirks"};const NE=wE.TAG_NAMES={A:"a",ADDRESS:"address",ANNOTATION_XML:"annotation-xml",APPLET:"applet",AREA:"area",ARTICLE:"article",ASIDE:"aside",B:"b",BASE:"base",BASEFONT:"basefont",BGSOUND:"bgsound",BIG:"big",BLOCKQUOTE:"blockquote",BODY:"body",BR:"br",BUTTON:"button",CAPTION:"caption",CENTER:"center",CODE:"code",COL:"col",COLGROUP:"colgroup",DD:"dd",DESC:"desc",DETAILS:"details",DIALOG:"dialog",DIR:"dir",DIV:"div",DL:"dl",DT:"dt",EM:"em",EMBED:"embed",FIELDSET:"fieldset",FIGCAPTION:"figcaption",FIGURE:"figure",FONT:"font",FOOTER:"footer",FOREIGN_OBJECT:"foreignObject",FORM:"form",FRAME:"frame",FRAMESET:"frameset",H1:"h1",H2:"h2",H3:"h3",H4:"h4",H5:"h5",H6:"h6",HEAD:"head",HEADER:"header",HGROUP:"hgroup",HR:"hr",HTML:"html",I:"i",IMG:"img",IMAGE:"image",INPUT:"input",IFRAME:"iframe",KEYGEN:"keygen",LABEL:"label",LI:"li",LINK:"link",LISTING:"listing",MAIN:"main",MALIGNMARK:"malignmark",MARQUEE:"marquee",MATH:"math",MENU:"menu",META:"meta",MGLYPH:"mglyph",MI:"mi",MO:"mo",MN:"mn",MS:"ms",MTEXT:"mtext",NAV:"nav",NOBR:"nobr",NOFRAMES:"noframes",NOEMBED:"noembed",NOSCRIPT:"noscript",OBJECT:"object",OL:"ol",OPTGROUP:"optgroup",OPTION:"option",P:"p",PARAM:"param",PLAINTEXT:"plaintext",PRE:"pre",RB:"rb",RP:"rp",RT:"rt",RTC:"rtc",RUBY:"ruby",S:"s",SCRIPT:"script",SECTION:"section",SELECT:"select",SOURCE:"source",SMALL:"small",SPAN:"span",STRIKE:"strike",STRONG:"strong",STYLE:"style",SUB:"sub",SUMMARY:"summary",SUP:"sup",TABLE:"table",TBODY:"tbody",TEMPLATE:"template",TEXTAREA:"textarea",TFOOT:"tfoot",TD:"td",TH:"th",THEAD:"thead",TITLE:"title",TR:"tr",TRACK:"track",TT:"tt",U:"u",UL:"ul",SVG:"svg",VAR:"var",WBR:"wbr",XMP:"xmp"};wE.SPECIAL_ELEMENTS={[OE.HTML]:{[NE.ADDRESS]:!0,[NE.APPLET]:!0,[NE.AREA]:!0,[NE.ARTICLE]:!0,[NE.ASIDE]:!0,[NE.BASE]:!0,[NE.BASEFONT]:!0,[NE.BGSOUND]:!0,[NE.BLOCKQUOTE]:!0,[NE.BODY]:!0,[NE.BR]:!0,[NE.BUTTON]:!0,[NE.CAPTION]:!0,[NE.CENTER]:!0,[NE.COL]:!0,[NE.COLGROUP]:!0,[NE.DD]:!0,[NE.DETAILS]:!0,[NE.DIR]:!0,[NE.DIV]:!0,[NE.DL]:!0,[NE.DT]:!0,[NE.EMBED]:!0,[NE.FIELDSET]:!0,[NE.FIGCAPTION]:!0,[NE.FIGURE]:!0,[NE.FOOTER]:!0,[NE.FORM]:!0,[NE.FRAME]:!0,[NE.FRAMESET]:!0,[NE.H1]:!0,[NE.H2]:!0,[NE.H3]:!0,[NE.H4]:!0,[NE.H5]:!0,[NE.H6]:!0,[NE.HEAD]:!0,[NE.HEADER]:!0,[NE.HGROUP]:!0,[NE.HR]:!0,[NE.HTML]:!0,[NE.IFRAME]:!0,[NE.IMG]:!0,[NE.INPUT]:!0,[NE.LI]:!0,[NE.LINK]:!0,[NE.LISTING]:!0,[NE.MAIN]:!0,[NE.MARQUEE]:!0,[NE.MENU]:!0,[NE.META]:!0,[NE.NAV]:!0,[NE.NOEMBED]:!0,[NE.NOFRAMES]:!0,[NE.NOSCRIPT]:!0,[NE.OBJECT]:!0,[NE.OL]:!0,[NE.P]:!0,[NE.PARAM]:!0,[NE.PLAINTEXT]:!0,[NE.PRE]:!0,[NE.SCRIPT]:!0,[NE.SECTION]:!0,[NE.SELECT]:!0,[NE.SOURCE]:!0,[NE.STYLE]:!0,[NE.SUMMARY]:!0,[NE.TABLE]:!0,[NE.TBODY]:!0,[NE.TD]:!0,[NE.TEMPLATE]:!0,[NE.TEXTAREA]:!0,[NE.TFOOT]:!0,[NE.TH]:!0,[NE.THEAD]:!0,[NE.TITLE]:!0,[NE.TR]:!0,[NE.TRACK]:!0,[NE.UL]:!0,[NE.WBR]:!0,[NE.XMP]:!0},[OE.MATHML]:{[NE.MI]:!0,[NE.MO]:!0,[NE.MN]:!0,[NE.MS]:!0,[NE.MTEXT]:!0,[NE.ANNOTATION_XML]:!0},[OE.SVG]:{[NE.TITLE]:!0,[NE.FOREIGN_OBJECT]:!0,[NE.DESC]:!0}};const PE=wE,RE=PE.TAG_NAMES,IE=PE.NAMESPACES;function LE(e){switch(e.length){case 1:return e===RE.P;case 2:return e===RE.RB||e===RE.RP||e===RE.RT||e===RE.DD||e===RE.DT||e===RE.LI;case 3:return e===RE.RTC;case 6:return e===RE.OPTION;case 8:return e===RE.OPTGROUP}return!1}function DE(e){switch(e.length){case 1:return e===RE.P;case 2:return e===RE.RB||e===RE.RP||e===RE.RT||e===RE.DD||e===RE.DT||e===RE.LI||e===RE.TD||e===RE.TH||e===RE.TR;case 3:return e===RE.RTC;case 5:return e===RE.TBODY||e===RE.TFOOT||e===RE.THEAD;case 6:return e===RE.OPTION;case 7:return e===RE.CAPTION;case 8:return e===RE.OPTGROUP||e===RE.COLGROUP}return!1}function ME(e,t){switch(e.length){case 2:if(e===RE.TD||e===RE.TH)return t===IE.HTML;if(e===RE.MI||e===RE.MO||e===RE.MN||e===RE.MS)return t===IE.MATHML;break;case 4:if(e===RE.HTML)return t===IE.HTML;if(e===RE.DESC)return t===IE.SVG;break;case 5:if(e===RE.TABLE)return t===IE.HTML;if(e===RE.MTEXT)return t===IE.MATHML;if(e===RE.TITLE)return t===IE.SVG;break;case 6:return(e===RE.APPLET||e===RE.OBJECT)&&t===IE.HTML;case 7:return(e===RE.CAPTION||e===RE.MARQUEE)&&t===IE.HTML;case 8:return e===RE.TEMPLATE&&t===IE.HTML;case 13:return e===RE.FOREIGN_OBJECT&&t===IE.SVG;case 14:return e===RE.ANNOTATION_XML&&t===IE.MATHML}return!1}var FE=class{constructor(e,t){this.stackTop=-1,this.items=[],this.current=e,this.currentTagName=null,this.currentTmplContent=null,this.tmplCount=0,this.treeAdapter=t}_indexOf(e){let t=-1;for(let r=this.stackTop;r>=0;r--)if(this.items[r]===e){t=r;break}return t}_isInTemplate(){return this.currentTagName===RE.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===IE.HTML}_updateCurrentElement(){this.current=this.items[this.stackTop],this.currentTagName=this.current&&this.treeAdapter.getTagName(this.current),this.currentTmplContent=this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):null}push(e){this.items[++this.stackTop]=e,this._updateCurrentElement(),this._isInTemplate()&&this.tmplCount++}pop(){this.stackTop--,this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this._updateCurrentElement()}replace(e,t){const r=this._indexOf(e);this.items[r]=t,r===this.stackTop&&this._updateCurrentElement()}insertAfter(e,t){const r=this._indexOf(e)+1;this.items.splice(r,0,t),r===++this.stackTop&&this._updateCurrentElement()}popUntilTagNamePopped(e){for(;this.stackTop>-1;){const t=this.currentTagName,r=this.treeAdapter.getNamespaceURI(this.current);if(this.pop(),t===e&&r===IE.HTML)break}}popUntilElementPopped(e){for(;this.stackTop>-1;){const t=this.current;if(this.pop(),t===e)break}}popUntilNumberedHeaderPopped(){for(;this.stackTop>-1;){const e=this.currentTagName,t=this.treeAdapter.getNamespaceURI(this.current);if(this.pop(),e===RE.H1||e===RE.H2||e===RE.H3||e===RE.H4||e===RE.H5||e===RE.H6&&t===IE.HTML)break}}popUntilTableCellPopped(){for(;this.stackTop>-1;){const e=this.currentTagName,t=this.treeAdapter.getNamespaceURI(this.current);if(this.pop(),e===RE.TD||e===RE.TH&&t===IE.HTML)break}}popAllUpToHtmlElement(){this.stackTop=0,this._updateCurrentElement()}clearBackToTableContext(){for(;this.currentTagName!==RE.TABLE&&this.currentTagName!==RE.TEMPLATE&&this.currentTagName!==RE.HTML||this.treeAdapter.getNamespaceURI(this.current)!==IE.HTML;)this.pop()}clearBackToTableBodyContext(){for(;this.currentTagName!==RE.TBODY&&this.currentTagName!==RE.TFOOT&&this.currentTagName!==RE.THEAD&&this.currentTagName!==RE.TEMPLATE&&this.currentTagName!==RE.HTML||this.treeAdapter.getNamespaceURI(this.current)!==IE.HTML;)this.pop()}clearBackToTableRowContext(){for(;this.currentTagName!==RE.TR&&this.currentTagName!==RE.TEMPLATE&&this.currentTagName!==RE.HTML||this.treeAdapter.getNamespaceURI(this.current)!==IE.HTML;)this.pop()}remove(e){for(let t=this.stackTop;t>=0;t--)if(this.items[t]===e){this.items.splice(t,1),this.stackTop--,this._updateCurrentElement();break}}tryPeekProperlyNestedBodyElement(){const e=this.items[1];return e&&this.treeAdapter.getTagName(e)===RE.BODY?e:null}contains(e){return this._indexOf(e)>-1}getCommonAncestor(e){let t=this._indexOf(e);return--t>=0?this.items[t]:null}isRootHtmlElementCurrent(){return 0===this.stackTop&&this.currentTagName===RE.HTML}hasInScope(e){for(let t=this.stackTop;t>=0;t--){const r=this.treeAdapter.getTagName(this.items[t]),n=this.treeAdapter.getNamespaceURI(this.items[t]);if(r===e&&n===IE.HTML)return!0;if(ME(r,n))return!1}return!0}hasNumberedHeaderInScope(){for(let e=this.stackTop;e>=0;e--){const t=this.treeAdapter.getTagName(this.items[e]),r=this.treeAdapter.getNamespaceURI(this.items[e]);if((t===RE.H1||t===RE.H2||t===RE.H3||t===RE.H4||t===RE.H5||t===RE.H6)&&r===IE.HTML)return!0;if(ME(t,r))return!1}return!0}hasInListItemScope(e){for(let t=this.stackTop;t>=0;t--){const r=this.treeAdapter.getTagName(this.items[t]),n=this.treeAdapter.getNamespaceURI(this.items[t]);if(r===e&&n===IE.HTML)return!0;if((r===RE.UL||r===RE.OL)&&n===IE.HTML||ME(r,n))return!1}return!0}hasInButtonScope(e){for(let t=this.stackTop;t>=0;t--){const r=this.treeAdapter.getTagName(this.items[t]),n=this.treeAdapter.getNamespaceURI(this.items[t]);if(r===e&&n===IE.HTML)return!0;if(r===RE.BUTTON&&n===IE.HTML||ME(r,n))return!1}return!0}hasInTableScope(e){for(let t=this.stackTop;t>=0;t--){const r=this.treeAdapter.getTagName(this.items[t]);if(this.treeAdapter.getNamespaceURI(this.items[t])===IE.HTML){if(r===e)return!0;if(r===RE.TABLE||r===RE.TEMPLATE||r===RE.HTML)return!1}}return!0}hasTableBodyContextInTableScope(){for(let e=this.stackTop;e>=0;e--){const t=this.treeAdapter.getTagName(this.items[e]);if(this.treeAdapter.getNamespaceURI(this.items[e])===IE.HTML){if(t===RE.TBODY||t===RE.THEAD||t===RE.TFOOT)return!0;if(t===RE.TABLE||t===RE.HTML)return!1}}return!0}hasInSelectScope(e){for(let t=this.stackTop;t>=0;t--){const r=this.treeAdapter.getTagName(this.items[t]);if(this.treeAdapter.getNamespaceURI(this.items[t])===IE.HTML){if(r===e)return!0;if(r!==RE.OPTION&&r!==RE.OPTGROUP)return!1}}return!0}generateImpliedEndTags(){for(;LE(this.currentTagName);)this.pop()}generateImpliedEndTagsThoroughly(){for(;DE(this.currentTagName);)this.pop()}generateImpliedEndTagsWithExclusion(e){for(;LE(this.currentTagName)&&this.currentTagName!==e;)this.pop()}};class HE{constructor(e){this.length=0,this.entries=[],this.treeAdapter=e,this.bookmark=null}_getNoahArkConditionCandidates(e){const t=[];if(this.length>=3){const r=this.treeAdapter.getAttrList(e).length,n=this.treeAdapter.getTagName(e),i=this.treeAdapter.getNamespaceURI(e);for(let e=this.length-1;e>=0;e--){const o=this.entries[e];if(o.type===HE.MARKER_ENTRY)break;const a=o.element,s=this.treeAdapter.getAttrList(a);this.treeAdapter.getTagName(a)===n&&this.treeAdapter.getNamespaceURI(a)===i&&s.length===r&&t.push({idx:e,attrs:s})}}return t.length<3?[]:t}_ensureNoahArkCondition(e){const t=this._getNoahArkConditionCandidates(e);let r=t.length;if(r){const n=this.treeAdapter.getAttrList(e),i=n.length,o=Object.create(null);for(let e=0;e<i;e++){const t=n[e];o[t.name]=t.value}for(let e=0;e<i;e++)for(let n=0;n<r;n++){const i=t[n].attrs[e];if(o[i.name]!==i.value&&(t.splice(n,1),r--),t.length<3)return}for(let e=r-1;e>=2;e--)this.entries.splice(t[e].idx,1),this.length--}}insertMarker(){this.entries.push({type:HE.MARKER_ENTRY}),this.length++}pushElement(e,t){this._ensureNoahArkCondition(e),this.entries.push({type:HE.ELEMENT_ENTRY,element:e,token:t}),this.length++}insertElementAfterBookmark(e,t){let r=this.length-1;for(;r>=0&&this.entries[r]!==this.bookmark;r--);this.entries.splice(r+1,0,{type:HE.ELEMENT_ENTRY,element:e,token:t}),this.length++}removeEntry(e){for(let t=this.length-1;t>=0;t--)if(this.entries[t]===e){this.entries.splice(t,1),this.length--;break}}clearToLastMarker(){for(;this.length;){const e=this.entries.pop();if(this.length--,e.type===HE.MARKER_ENTRY)break}}getElementEntryInScopeWithTagName(e){for(let t=this.length-1;t>=0;t--){const r=this.entries[t];if(r.type===HE.MARKER_ENTRY)return null;if(this.treeAdapter.getTagName(r.element)===e)return r}return null}getElementEntry(e){for(let t=this.length-1;t>=0;t--){const r=this.entries[t];if(r.type===HE.ELEMENT_ENTRY&&r.element===e)return r}return null}}HE.MARKER_ENTRY="MARKER_ENTRY",HE.ELEMENT_ENTRY="ELEMENT_ENTRY";var BE=HE;class UE{constructor(e){const t={},r=this._getOverriddenMethods(this,t);for(const n of Object.keys(r))"function"==typeof r[n]&&(t[n]=e[n],e[n]=r[n])}_getOverriddenMethods(){throw new Error("Not implemented")}}UE.install=function(e,t,r){e.__mixins||(e.__mixins=[]);for(let r=0;r<e.__mixins.length;r++)if(e.__mixins[r].constructor===t)return e.__mixins[r];const n=new t(e,r);return e.__mixins.push(n),n};var jE=UE;const qE=jE;var zE=class extends qE{constructor(e){super(e),this.preprocessor=e,this.isEol=!1,this.lineStartPos=0,this.droppedBufferSize=0,this.offset=0,this.col=0,this.line=1}_getOverriddenMethods(e,t){return{advance(){const r=this.pos+1,n=this.html[r];return e.isEol&&(e.isEol=!1,e.line++,e.lineStartPos=r),("\n"===n||"\r"===n&&"\n"!==this.html[r+1])&&(e.isEol=!0),e.col=r-e.lineStartPos+1,e.offset=e.droppedBufferSize+r,t.advance.call(this)},retreat(){t.retreat.call(this),e.isEol=!1,e.col=this.pos-e.lineStartPos+1},dropParsedChunk(){const r=this.pos;t.dropParsedChunk.call(this);const n=r-this.pos;e.lineStartPos-=n,e.droppedBufferSize+=n,e.offset=e.droppedBufferSize+this.pos}}}};const GE=jE,KE=xE,$E=zE;var VE=class extends GE{constructor(e){super(e),this.tokenizer=e,this.posTracker=GE.install(e.preprocessor,$E),this.currentAttrLocation=null,this.ctLoc=null}_getCurrentLocation(){return{startLine:this.posTracker.line,startCol:this.posTracker.col,startOffset:this.posTracker.offset,endLine:-1,endCol:-1,endOffset:-1}}_attachCurrentAttrLocationInfo(){this.currentAttrLocation.endLine=this.posTracker.line,this.currentAttrLocation.endCol=this.posTracker.col,this.currentAttrLocation.endOffset=this.posTracker.offset;const e=this.tokenizer.currentToken,t=this.tokenizer.currentAttr;e.location.attrs||(e.location.attrs=Object.create(null)),e.location.attrs[t.name]=this.currentAttrLocation}_getOverriddenMethods(e,t){const r={_createStartTagToken(){t._createStartTagToken.call(this),this.currentToken.location=e.ctLoc},_createEndTagToken(){t._createEndTagToken.call(this),this.currentToken.location=e.ctLoc},_createCommentToken(){t._createCommentToken.call(this),this.currentToken.location=e.ctLoc},_createDoctypeToken(r){t._createDoctypeToken.call(this,r),this.currentToken.location=e.ctLoc},_createCharacterToken(r,n){t._createCharacterToken.call(this,r,n),this.currentCharacterToken.location=e.ctLoc},_createEOFToken(){t._createEOFToken.call(this),this.currentToken.location=e._getCurrentLocation()},_createAttr(r){t._createAttr.call(this,r),e.currentAttrLocation=e._getCurrentLocation()},_leaveAttrName(r){t._leaveAttrName.call(this,r),e._attachCurrentAttrLocationInfo()},_leaveAttrValue(r){t._leaveAttrValue.call(this,r),e._attachCurrentAttrLocationInfo()},_emitCurrentToken(){const r=this.currentToken.location;this.currentCharacterToken&&(this.currentCharacterToken.location.endLine=r.startLine,this.currentCharacterToken.location.endCol=r.startCol,this.currentCharacterToken.location.endOffset=r.startOffset),this.currentToken.type===KE.EOF_TOKEN?(r.endLine=r.startLine,r.endCol=r.startCol,r.endOffset=r.startOffset):(r.endLine=e.posTracker.line,r.endCol=e.posTracker.col+1,r.endOffset=e.posTracker.offset+1),t._emitCurrentToken.call(this)},_emitCurrentCharacterToken(){const r=this.currentCharacterToken&&this.currentCharacterToken.location;r&&-1===r.endOffset&&(r.endLine=e.posTracker.line,r.endCol=e.posTracker.col,r.endOffset=e.posTracker.offset),t._emitCurrentCharacterToken.call(this)}};return Object.keys(KE.MODE).forEach(n=>{const i=KE.MODE[n];r[i]=function(r){e.ctLoc=e._getCurrentLocation(),t[i].call(this,r)}}),r}};const QE=jE;var WE=class extends QE{constructor(e,t){super(e),this.onItemPop=t.onItemPop}_getOverriddenMethods(e,t){return{pop(){e.onItemPop(this.current),t.pop.call(this)},popAllUpToHtmlElement(){for(let t=this.stackTop;t>0;t--)e.onItemPop(this.items[t]);t.popAllUpToHtmlElement.call(this)},remove(r){e.onItemPop(this.current),t.remove.call(this,r)}}}};const YE=jE,XE=xE,JE=VE,ZE=WE,ey=wE.TAG_NAMES;var ty=class extends YE{constructor(e){super(e),this.parser=e,this.treeAdapter=this.parser.treeAdapter,this.posTracker=null,this.lastStartTagToken=null,this.lastFosterParentingLocation=null,this.currentToken=null}_setStartLocation(e){let t=null;this.lastStartTagToken&&(t=Object.assign({},this.lastStartTagToken.location),t.startTag=this.lastStartTagToken.location),this.treeAdapter.setNodeSourceCodeLocation(e,t)}_setEndLocation(e,t){if(this.treeAdapter.getNodeSourceCodeLocation(e)&&t.location){const r=t.location,n=this.treeAdapter.getTagName(e),i={};t.type===XE.END_TAG_TOKEN&&n===t.tagName?(i.endTag=Object.assign({},r),i.endLine=r.endLine,i.endCol=r.endCol,i.endOffset=r.endOffset):(i.endLine=r.startLine,i.endCol=r.startCol,i.endOffset=r.startOffset),this.treeAdapter.updateNodeSourceCodeLocation(e,i)}}_getOverriddenMethods(e,t){return{_bootstrap(r,n){t._bootstrap.call(this,r,n),e.lastStartTagToken=null,e.lastFosterParentingLocation=null,e.currentToken=null;const i=YE.install(this.tokenizer,JE);e.posTracker=i.posTracker,YE.install(this.openElements,ZE,{onItemPop:function(t){e._setEndLocation(t,e.currentToken)}})},_runParsingLoop(r){t._runParsingLoop.call(this,r);for(let t=this.openElements.stackTop;t>=0;t--)e._setEndLocation(this.openElements.items[t],e.currentToken)},_processTokenInForeignContent(r){e.currentToken=r,t._processTokenInForeignContent.call(this,r)},_processToken(r){e.currentToken=r,t._processToken.call(this,r);if(r.type===XE.END_TAG_TOKEN&&(r.tagName===ey.HTML||r.tagName===ey.BODY&&this.openElements.hasInScope(ey.BODY)))for(let t=this.openElements.stackTop;t>=0;t--){const n=this.openElements.items[t];if(this.treeAdapter.getTagName(n)===r.tagName){e._setEndLocation(n,r);break}}},_setDocumentType(e){t._setDocumentType.call(this,e);const r=this.treeAdapter.getChildNodes(this.document),n=r.length;for(let t=0;t<n;t++){const n=r[t];if(this.treeAdapter.isDocumentTypeNode(n)){this.treeAdapter.setNodeSourceCodeLocation(n,e.location);break}}},_attachElementToTree(r){e._setStartLocation(r),e.lastStartTagToken=null,t._attachElementToTree.call(this,r)},_appendElement(r,n){e.lastStartTagToken=r,t._appendElement.call(this,r,n)},_insertElement(r,n){e.lastStartTagToken=r,t._insertElement.call(this,r,n)},_insertTemplate(r){e.lastStartTagToken=r,t._insertTemplate.call(this,r);const n=this.treeAdapter.getTemplateContent(this.openElements.current);this.treeAdapter.setNodeSourceCodeLocation(n,null)},_insertFakeRootElement(){t._insertFakeRootElement.call(this),this.treeAdapter.setNodeSourceCodeLocation(this.openElements.current,null)},_appendCommentNode(e,r){t._appendCommentNode.call(this,e,r);const n=this.treeAdapter.getChildNodes(r),i=n[n.length-1];this.treeAdapter.setNodeSourceCodeLocation(i,e.location)},_findFosterParentingLocation(){return e.lastFosterParentingLocation=t._findFosterParentingLocation.call(this),e.lastFosterParentingLocation},_insertCharacters(r){t._insertCharacters.call(this,r);const n=this._shouldFosterParentOnInsertion(),i=n&&e.lastFosterParentingLocation.parent||this.openElements.currentTmplContent||this.openElements.current,o=this.treeAdapter.getChildNodes(i),a=n&&e.lastFosterParentingLocation.beforeElement?o.indexOf(e.lastFosterParentingLocation.beforeElement)-1:o.length-1,s=o[a];if(this.treeAdapter.getNodeSourceCodeLocation(s)){const{endLine:e,endCol:t,endOffset:n}=r.location;this.treeAdapter.updateNodeSourceCodeLocation(s,{endLine:e,endCol:t,endOffset:n})}else this.treeAdapter.setNodeSourceCodeLocation(s,r.location)}}}};const ry=jE;var ny=class extends ry{constructor(e,t){super(e),this.posTracker=null,this.onParseError=t.onParseError}_setErrorLocation(e){e.startLine=e.endLine=this.posTracker.line,e.startCol=e.endCol=this.posTracker.col,e.startOffset=e.endOffset=this.posTracker.offset}_reportError(e){const t={code:e,startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1};this._setErrorLocation(t),this.onParseError(t)}_getOverriddenMethods(e){return{_err(t){e._reportError(t)}}}};const iy=ny,oy=zE,ay=jE;var sy=class extends iy{constructor(e,t){super(e,t),this.posTracker=ay.install(e,oy),this.lastErrOffset=-1}_reportError(e){this.lastErrOffset!==this.posTracker.offset&&(this.lastErrOffset=this.posTracker.offset,super._reportError(e))}};const cy=ny,ly=sy,uy=jE;var hy=class extends cy{constructor(e,t){super(e,t);const r=uy.install(e.preprocessor,ly,t);this.posTracker=r.posTracker}};const py=ny,fy=hy,dy=VE,my=jE;var gy=class extends py{constructor(e,t){super(e,t),this.opts=t,this.ctLoc=null,this.locBeforeToken=!1}_setErrorLocation(e){this.ctLoc&&(e.startLine=this.ctLoc.startLine,e.startCol=this.ctLoc.startCol,e.startOffset=this.ctLoc.startOffset,e.endLine=this.locBeforeToken?this.ctLoc.startLine:this.ctLoc.endLine,e.endCol=this.locBeforeToken?this.ctLoc.startCol:this.ctLoc.endCol,e.endOffset=this.locBeforeToken?this.ctLoc.startOffset:this.ctLoc.endOffset)}_getOverriddenMethods(e,t){return{_bootstrap(r,n){t._bootstrap.call(this,r,n),my.install(this.tokenizer,fy,e.opts),my.install(this.tokenizer,dy)},_processInputToken(r){e.ctLoc=r.location,t._processInputToken.call(this,r)},_err(t,r){e.locBeforeToken=r&&r.beforeToken,e._reportError(t)}}}},Ey={};const{DOCUMENT_MODE:yy}=wE;Ey.createDocument=function(){return{nodeName:"#document",mode:yy.NO_QUIRKS,childNodes:[]}},Ey.createDocumentFragment=function(){return{nodeName:"#document-fragment",childNodes:[]}},Ey.createElement=function(e,t,r){return{nodeName:e,tagName:e,attrs:r,namespaceURI:t,childNodes:[],parentNode:null}},Ey.createCommentNode=function(e){return{nodeName:"#comment",data:e,parentNode:null}};const Ty=function(e){return{nodeName:"#text",value:e,parentNode:null}},vy=Ey.appendChild=function(e,t){e.childNodes.push(t),t.parentNode=e},by=Ey.insertBefore=function(e,t,r){const n=e.childNodes.indexOf(r);e.childNodes.splice(n,0,t),t.parentNode=e};Ey.setTemplateContent=function(e,t){e.content=t},Ey.getTemplateContent=function(e){return e.content},Ey.setDocumentType=function(e,t,r,n){let i=null;for(let t=0;t<e.childNodes.length;t++)if("#documentType"===e.childNodes[t].nodeName){i=e.childNodes[t];break}i?(i.name=t,i.publicId=r,i.systemId=n):vy(e,{nodeName:"#documentType",name:t,publicId:r,systemId:n})},Ey.setDocumentMode=function(e,t){e.mode=t},Ey.getDocumentMode=function(e){return e.mode},Ey.detachNode=function(e){if(e.parentNode){const t=e.parentNode.childNodes.indexOf(e);e.parentNode.childNodes.splice(t,1),e.parentNode=null}},Ey.insertText=function(e,t){if(e.childNodes.length){const r=e.childNodes[e.childNodes.length-1];if("#text"===r.nodeName)return void(r.value+=t)}vy(e,Ty(t))},Ey.insertTextBefore=function(e,t,r){const n=e.childNodes[e.childNodes.indexOf(r)-1];n&&"#text"===n.nodeName?n.value+=t:by(e,Ty(t),r)},Ey.adoptAttributes=function(e,t){const r=[];for(let t=0;t<e.attrs.length;t++)r.push(e.attrs[t].name);for(let n=0;n<t.length;n++)-1===r.indexOf(t[n].name)&&e.attrs.push(t[n])},Ey.getFirstChild=function(e){return e.childNodes[0]},Ey.getChildNodes=function(e){return e.childNodes},Ey.getParentNode=function(e){return e.parentNode},Ey.getAttrList=function(e){return e.attrs},Ey.getTagName=function(e){return e.tagName},Ey.getNamespaceURI=function(e){return e.namespaceURI},Ey.getTextNodeContent=function(e){return e.value},Ey.getCommentNodeContent=function(e){return e.data},Ey.getDocumentTypeNodeName=function(e){return e.name},Ey.getDocumentTypeNodePublicId=function(e){return e.publicId},Ey.getDocumentTypeNodeSystemId=function(e){return e.systemId},Ey.isTextNode=function(e){return"#text"===e.nodeName},Ey.isCommentNode=function(e){return"#comment"===e.nodeName},Ey.isDocumentTypeNode=function(e){return"#documentType"===e.nodeName},Ey.isElementNode=function(e){return!!e.tagName},Ey.setNodeSourceCodeLocation=function(e,t){e.sourceCodeLocation=t},Ey.getNodeSourceCodeLocation=function(e){return e.sourceCodeLocation},Ey.updateNodeSourceCodeLocation=function(e,t){e.sourceCodeLocation=Object.assign(e.sourceCodeLocation,t)};var _y={};const{DOCUMENT_MODE:Ay}=wE,Sy="html",ky=["+//silmaril//dtd html pro v0r11 19970101//","-//as//dtd html 3.0 aswedit + extensions//","-//advasoft ltd//dtd html 3.0 aswedit + extensions//","-//ietf//dtd html 2.0 level 1//","-//ietf//dtd html 2.0 level 2//","-//ietf//dtd html 2.0 strict level 1//","-//ietf//dtd html 2.0 strict level 2//","-//ietf//dtd html 2.0 strict//","-//ietf//dtd html 2.0//","-//ietf//dtd html 2.1e//","-//ietf//dtd html 3.0//","-//ietf//dtd html 3.2 final//","-//ietf//dtd html 3.2//","-//ietf//dtd html 3//","-//ietf//dtd html level 0//","-//ietf//dtd html level 1//","-//ietf//dtd html level 2//","-//ietf//dtd html level 3//","-//ietf//dtd html strict level 0//","-//ietf//dtd html strict level 1//","-//ietf//dtd html strict level 2//","-//ietf//dtd html strict level 3//","-//ietf//dtd html strict//","-//ietf//dtd html//","-//metrius//dtd metrius presentational//","-//microsoft//dtd internet explorer 2.0 html strict//","-//microsoft//dtd internet explorer 2.0 html//","-//microsoft//dtd internet explorer 2.0 tables//","-//microsoft//dtd internet explorer 3.0 html strict//","-//microsoft//dtd internet explorer 3.0 html//","-//microsoft//dtd internet explorer 3.0 tables//","-//netscape comm. corp.//dtd html//","-//netscape comm. corp.//dtd strict html//","-//o'reilly and associates//dtd html 2.0//","-//o'reilly and associates//dtd html extended 1.0//","-//o'reilly and associates//dtd html extended relaxed 1.0//","-//sq//dtd html 2.0 hotmetal + extensions//","-//softquad software//dtd hotmetal pro 6.0::19990601::extensions to html 4.0//","-//softquad//dtd hotmetal pro 4.0::19971010::extensions to html 4.0//","-//spyglass//dtd html 2.0 extended//","-//sun microsystems corp.//dtd hotjava html//","-//sun microsystems corp.//dtd hotjava strict html//","-//w3c//dtd html 3 1995-03-24//","-//w3c//dtd html 3.2 draft//","-//w3c//dtd html 3.2 final//","-//w3c//dtd html 3.2//","-//w3c//dtd html 3.2s draft//","-//w3c//dtd html 4.0 frameset//","-//w3c//dtd html 4.0 transitional//","-//w3c//dtd html experimental 19960712//","-//w3c//dtd html experimental 970421//","-//w3c//dtd w3 html//","-//w3o//dtd w3 html 3.0//","-//webtechs//dtd mozilla html 2.0//","-//webtechs//dtd mozilla html//"],Cy=ky.concat(["-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"]),xy=["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"],wy=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],Oy=wy.concat(["-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"]);function Ny(e){const t=-1!==e.indexOf('"')?"'":'"';return t+e+t}function Py(e,t){for(let r=0;r<t.length;r++)if(0===e.indexOf(t[r]))return!0;return!1}_y.isConforming=function(e){return e.name===Sy&&null===e.publicId&&(null===e.systemId||"about:legacy-compat"===e.systemId)},_y.getDocumentMode=function(e){if(e.name!==Sy)return Ay.QUIRKS;const t=e.systemId;if(t&&"http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd"===t.toLowerCase())return Ay.QUIRKS;let r=e.publicId;if(null!==r){if(r=r.toLowerCase(),xy.indexOf(r)>-1)return Ay.QUIRKS;let e=null===t?Cy:ky;if(Py(r,e))return Ay.QUIRKS;if(e=null===t?wy:Oy,Py(r,e))return Ay.LIMITED_QUIRKS}return Ay.NO_QUIRKS},_y.serializeContent=function(e,t,r){let n="!DOCTYPE ";return e&&(n+=e),t?n+=" PUBLIC "+Ny(t):r&&(n+=" SYSTEM"),null!==r&&(n+=" "+Ny(r)),n};var Ry={};const Iy=xE,Ly=wE,Dy=Ly.TAG_NAMES,My=Ly.NAMESPACES,Fy=Ly.ATTRS,Hy="text/html",By="application/xhtml+xml",Uy={attributename:"attributeName",attributetype:"attributeType",basefrequency:"baseFrequency",baseprofile:"baseProfile",calcmode:"calcMode",clippathunits:"clipPathUnits",diffuseconstant:"diffuseConstant",edgemode:"edgeMode",filterunits:"filterUnits",glyphref:"glyphRef",gradienttransform:"gradientTransform",gradientunits:"gradientUnits",kernelmatrix:"kernelMatrix",kernelunitlength:"kernelUnitLength",keypoints:"keyPoints",keysplines:"keySplines",keytimes:"keyTimes",lengthadjust:"lengthAdjust",limitingconeangle:"limitingConeAngle",markerheight:"markerHeight",markerunits:"markerUnits",markerwidth:"markerWidth",maskcontentunits:"maskContentUnits",maskunits:"maskUnits",numoctaves:"numOctaves",pathlength:"pathLength",patterncontentunits:"patternContentUnits",patterntransform:"patternTransform",patternunits:"patternUnits",pointsatx:"pointsAtX",pointsaty:"pointsAtY",pointsatz:"pointsAtZ",preservealpha:"preserveAlpha",preserveaspectratio:"preserveAspectRatio",primitiveunits:"primitiveUnits",refx:"refX",refy:"refY",repeatcount:"repeatCount",repeatdur:"repeatDur",requiredextensions:"requiredExtensions",requiredfeatures:"requiredFeatures",specularconstant:"specularConstant",specularexponent:"specularExponent",spreadmethod:"spreadMethod",startoffset:"startOffset",stddeviation:"stdDeviation",stitchtiles:"stitchTiles",surfacescale:"surfaceScale",systemlanguage:"systemLanguage",tablevalues:"tableValues",targetx:"targetX",targety:"targetY",textlength:"textLength",viewbox:"viewBox",viewtarget:"viewTarget",xchannelselector:"xChannelSelector",ychannelselector:"yChannelSelector",zoomandpan:"zoomAndPan"},jy={"xlink:actuate":{prefix:"xlink",name:"actuate",namespace:My.XLINK},"xlink:arcrole":{prefix:"xlink",name:"arcrole",namespace:My.XLINK},"xlink:href":{prefix:"xlink",name:"href",namespace:My.XLINK},"xlink:role":{prefix:"xlink",name:"role",namespace:My.XLINK},"xlink:show":{prefix:"xlink",name:"show",namespace:My.XLINK},"xlink:title":{prefix:"xlink",name:"title",namespace:My.XLINK},"xlink:type":{prefix:"xlink",name:"type",namespace:My.XLINK},"xml:base":{prefix:"xml",name:"base",namespace:My.XML},"xml:lang":{prefix:"xml",name:"lang",namespace:My.XML},"xml:space":{prefix:"xml",name:"space",namespace:My.XML},xmlns:{prefix:"",name:"xmlns",namespace:My.XMLNS},"xmlns:xlink":{prefix:"xmlns",name:"xlink",namespace:My.XMLNS}},qy=Ry.SVG_TAG_NAMES_ADJUSTMENT_MAP={altglyph:"altGlyph",altglyphdef:"altGlyphDef",altglyphitem:"altGlyphItem",animatecolor:"animateColor",animatemotion:"animateMotion",animatetransform:"animateTransform",clippath:"clipPath",feblend:"feBlend",fecolormatrix:"feColorMatrix",fecomponenttransfer:"feComponentTransfer",fecomposite:"feComposite",feconvolvematrix:"feConvolveMatrix",fediffuselighting:"feDiffuseLighting",fedisplacementmap:"feDisplacementMap",fedistantlight:"feDistantLight",feflood:"feFlood",fefunca:"feFuncA",fefuncb:"feFuncB",fefuncg:"feFuncG",fefuncr:"feFuncR",fegaussianblur:"feGaussianBlur",feimage:"feImage",femerge:"feMerge",femergenode:"feMergeNode",femorphology:"feMorphology",feoffset:"feOffset",fepointlight:"fePointLight",fespecularlighting:"feSpecularLighting",fespotlight:"feSpotLight",fetile:"feTile",feturbulence:"feTurbulence",foreignobject:"foreignObject",glyphref:"glyphRef",lineargradient:"linearGradient",radialgradient:"radialGradient",textpath:"textPath"},zy={[Dy.B]:!0,[Dy.BIG]:!0,[Dy.BLOCKQUOTE]:!0,[Dy.BODY]:!0,[Dy.BR]:!0,[Dy.CENTER]:!0,[Dy.CODE]:!0,[Dy.DD]:!0,[Dy.DIV]:!0,[Dy.DL]:!0,[Dy.DT]:!0,[Dy.EM]:!0,[Dy.EMBED]:!0,[Dy.H1]:!0,[Dy.H2]:!0,[Dy.H3]:!0,[Dy.H4]:!0,[Dy.H5]:!0,[Dy.H6]:!0,[Dy.HEAD]:!0,[Dy.HR]:!0,[Dy.I]:!0,[Dy.IMG]:!0,[Dy.LI]:!0,[Dy.LISTING]:!0,[Dy.MENU]:!0,[Dy.META]:!0,[Dy.NOBR]:!0,[Dy.OL]:!0,[Dy.P]:!0,[Dy.PRE]:!0,[Dy.RUBY]:!0,[Dy.S]:!0,[Dy.SMALL]:!0,[Dy.SPAN]:!0,[Dy.STRONG]:!0,[Dy.STRIKE]:!0,[Dy.SUB]:!0,[Dy.SUP]:!0,[Dy.TABLE]:!0,[Dy.TT]:!0,[Dy.U]:!0,[Dy.UL]:!0,[Dy.VAR]:!0};Ry.causesExit=function(e){const t=e.tagName;return!!(t===Dy.FONT&&(null!==Iy.getTokenAttr(e,Fy.COLOR)||null!==Iy.getTokenAttr(e,Fy.SIZE)||null!==Iy.getTokenAttr(e,Fy.FACE)))||zy[t]},Ry.adjustTokenMathMLAttrs=function(e){for(let t=0;t<e.attrs.length;t++)if("definitionurl"===e.attrs[t].name){e.attrs[t].name="definitionURL";break}},Ry.adjustTokenSVGAttrs=function(e){for(let t=0;t<e.attrs.length;t++){const r=Uy[e.attrs[t].name];r&&(e.attrs[t].name=r)}},Ry.adjustTokenXMLAttrs=function(e){for(let t=0;t<e.attrs.length;t++){const r=jy[e.attrs[t].name];r&&(e.attrs[t].prefix=r.prefix,e.attrs[t].name=r.name,e.attrs[t].namespace=r.namespace)}},Ry.adjustTokenSVGTagName=function(e){const t=qy[e.tagName];t&&(e.tagName=t)},Ry.isIntegrationPoint=function(e,t,r,n){return!(n&&n!==My.HTML||!function(e,t,r){if(t===My.MATHML&&e===Dy.ANNOTATION_XML)for(let e=0;e<r.length;e++)if(r[e].name===Fy.ENCODING){const t=r[e].value.toLowerCase();return t===Hy||t===By}return t===My.SVG&&(e===Dy.FOREIGN_OBJECT||e===Dy.DESC||e===Dy.TITLE)}(e,t,r))||!(n&&n!==My.MATHML||!function(e,t){return t===My.MATHML&&(e===Dy.MI||e===Dy.MO||e===Dy.MN||e===Dy.MS||e===Dy.MTEXT)}(e,t))};const Gy=xE,Ky=FE,$y=BE,Vy=ty,Qy=gy,Wy=jE,Yy=Ey,Xy=function(e,t){return[e,t=t||Object.create(null)].reduce((e,t)=>(Object.keys(t).forEach(r=>{e[r]=t[r]}),e),Object.create(null))},Jy=_y,Zy=Ry,eT=Om,tT=xm,rT=wE,nT=rT.TAG_NAMES,iT=rT.NAMESPACES,oT=rT.ATTRS,aT={scriptingEnabled:!0,sourceCodeLocationInfo:!1,onParseError:null,treeAdapter:Yy},sT="hidden",cT="INITIAL_MODE",lT="BEFORE_HTML_MODE",uT="BEFORE_HEAD_MODE",hT="IN_HEAD_MODE",pT="IN_HEAD_NO_SCRIPT_MODE",fT="AFTER_HEAD_MODE",dT="IN_BODY_MODE",mT="TEXT_MODE",gT="IN_TABLE_MODE",ET="IN_TABLE_TEXT_MODE",yT="IN_CAPTION_MODE",TT="IN_COLUMN_GROUP_MODE",vT="IN_TABLE_BODY_MODE",bT="IN_ROW_MODE",_T="IN_CELL_MODE",AT="IN_SELECT_MODE",ST="IN_SELECT_IN_TABLE_MODE",kT="IN_TEMPLATE_MODE",CT="AFTER_BODY_MODE",xT="IN_FRAMESET_MODE",wT="AFTER_FRAMESET_MODE",OT="AFTER_AFTER_BODY_MODE",NT="AFTER_AFTER_FRAMESET_MODE",PT={[nT.TR]:bT,[nT.TBODY]:vT,[nT.THEAD]:vT,[nT.TFOOT]:vT,[nT.CAPTION]:yT,[nT.COLGROUP]:TT,[nT.TABLE]:gT,[nT.BODY]:dT,[nT.FRAMESET]:xT},RT={[nT.CAPTION]:gT,[nT.COLGROUP]:gT,[nT.TBODY]:gT,[nT.TFOOT]:gT,[nT.THEAD]:gT,[nT.COL]:TT,[nT.TR]:vT,[nT.TD]:bT,[nT.TH]:bT},IT={[cT]:{[Gy.CHARACTER_TOKEN]:QT,[Gy.NULL_CHARACTER_TOKEN]:QT,[Gy.WHITESPACE_CHARACTER_TOKEN]:qT,[Gy.COMMENT_TOKEN]:GT,[Gy.DOCTYPE_TOKEN]:function(e,t){e._setDocumentType(t);const r=t.forceQuirks?rT.DOCUMENT_MODE.QUIRKS:Jy.getDocumentMode(t);Jy.isConforming(t)||e._err(eT.nonConformingDoctype);e.treeAdapter.setDocumentMode(e.document,r),e.insertionMode=lT},[Gy.START_TAG_TOKEN]:QT,[Gy.END_TAG_TOKEN]:QT,[Gy.EOF_TOKEN]:QT},[lT]:{[Gy.CHARACTER_TOKEN]:WT,[Gy.NULL_CHARACTER_TOKEN]:WT,[Gy.WHITESPACE_CHARACTER_TOKEN]:qT,[Gy.COMMENT_TOKEN]:GT,[Gy.DOCTYPE_TOKEN]:qT,[Gy.START_TAG_TOKEN]:function(e,t){t.tagName===nT.HTML?(e._insertElement(t,iT.HTML),e.insertionMode=uT):WT(e,t)},[Gy.END_TAG_TOKEN]:function(e,t){const r=t.tagName;r!==nT.HTML&&r!==nT.HEAD&&r!==nT.BODY&&r!==nT.BR||WT(e,t)},[Gy.EOF_TOKEN]:WT},[uT]:{[Gy.CHARACTER_TOKEN]:YT,[Gy.NULL_CHARACTER_TOKEN]:YT,[Gy.WHITESPACE_CHARACTER_TOKEN]:qT,[Gy.COMMENT_TOKEN]:GT,[Gy.DOCTYPE_TOKEN]:zT,[Gy.START_TAG_TOKEN]:function(e,t){const r=t.tagName;r===nT.HTML?dv(e,t):r===nT.HEAD?(e._insertElement(t,iT.HTML),e.headElement=e.openElements.current,e.insertionMode=hT):YT(e,t)},[Gy.END_TAG_TOKEN]:function(e,t){const r=t.tagName;r===nT.HEAD||r===nT.BODY||r===nT.HTML||r===nT.BR?YT(e,t):e._err(eT.endTagWithoutMatchingOpenElement)},[Gy.EOF_TOKEN]:YT},[hT]:{[Gy.CHARACTER_TOKEN]:ZT,[Gy.NULL_CHARACTER_TOKEN]:ZT,[Gy.WHITESPACE_CHARACTER_TOKEN]:$T,[Gy.COMMENT_TOKEN]:GT,[Gy.DOCTYPE_TOKEN]:zT,[Gy.START_TAG_TOKEN]:XT,[Gy.END_TAG_TOKEN]:JT,[Gy.EOF_TOKEN]:ZT},[pT]:{[Gy.CHARACTER_TOKEN]:ev,[Gy.NULL_CHARACTER_TOKEN]:ev,[Gy.WHITESPACE_CHARACTER_TOKEN]:$T,[Gy.COMMENT_TOKEN]:GT,[Gy.DOCTYPE_TOKEN]:zT,[Gy.START_TAG_TOKEN]:function(e,t){const r=t.tagName;r===nT.HTML?dv(e,t):r===nT.BASEFONT||r===nT.BGSOUND||r===nT.HEAD||r===nT.LINK||r===nT.META||r===nT.NOFRAMES||r===nT.STYLE?XT(e,t):r===nT.NOSCRIPT?e._err(eT.nestedNoscriptInHead):ev(e,t)},[Gy.END_TAG_TOKEN]:function(e,t){const r=t.tagName;r===nT.NOSCRIPT?(e.openElements.pop(),e.insertionMode=hT):r===nT.BR?ev(e,t):e._err(eT.endTagWithoutMatchingOpenElement)},[Gy.EOF_TOKEN]:ev},[fT]:{[Gy.CHARACTER_TOKEN]:tv,[Gy.NULL_CHARACTER_TOKEN]:tv,[Gy.WHITESPACE_CHARACTER_TOKEN]:$T,[Gy.COMMENT_TOKEN]:GT,[Gy.DOCTYPE_TOKEN]:zT,[Gy.START_TAG_TOKEN]:function(e,t){const r=t.tagName;r===nT.HTML?dv(e,t):r===nT.BODY?(e._insertElement(t,iT.HTML),e.framesetOk=!1,e.insertionMode=dT):r===nT.FRAMESET?(e._insertElement(t,iT.HTML),e.insertionMode=xT):r===nT.BASE||r===nT.BASEFONT||r===nT.BGSOUND||r===nT.LINK||r===nT.META||r===nT.NOFRAMES||r===nT.SCRIPT||r===nT.STYLE||r===nT.TEMPLATE||r===nT.TITLE?(e._err(eT.abandonedHeadElementChild),e.openElements.push(e.headElement),XT(e,t),e.openElements.remove(e.headElement)):r===nT.HEAD?e._err(eT.misplacedStartTagForHeadElement):tv(e,t)},[Gy.END_TAG_TOKEN]:function(e,t){const r=t.tagName;r===nT.BODY||r===nT.HTML||r===nT.BR?tv(e,t):r===nT.TEMPLATE?JT(e,t):e._err(eT.endTagWithoutMatchingOpenElement)},[Gy.EOF_TOKEN]:tv},[dT]:{[Gy.CHARACTER_TOKEN]:nv,[Gy.NULL_CHARACTER_TOKEN]:qT,[Gy.WHITESPACE_CHARACTER_TOKEN]:rv,[Gy.COMMENT_TOKEN]:GT,[Gy.DOCTYPE_TOKEN]:qT,[Gy.START_TAG_TOKEN]:dv,[Gy.END_TAG_TOKEN]:yv,[Gy.EOF_TOKEN]:Tv},[mT]:{[Gy.CHARACTER_TOKEN]:$T,[Gy.NULL_CHARACTER_TOKEN]:$T,[Gy.WHITESPACE_CHARACTER_TOKEN]:$T,[Gy.COMMENT_TOKEN]:qT,[Gy.DOCTYPE_TOKEN]:qT,[Gy.START_TAG_TOKEN]:qT,[Gy.END_TAG_TOKEN]:function(e,t){t.tagName===nT.SCRIPT&&(e.pendingScript=e.openElements.current);e.openElements.pop(),e.insertionMode=e.originalInsertionMode},[Gy.EOF_TOKEN]:function(e,t){e._err(eT.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e._processToken(t)}},[gT]:{[Gy.CHARACTER_TOKEN]:vv,[Gy.NULL_CHARACTER_TOKEN]:vv,[Gy.WHITESPACE_CHARACTER_TOKEN]:vv,[Gy.COMMENT_TOKEN]:GT,[Gy.DOCTYPE_TOKEN]:qT,[Gy.START_TAG_TOKEN]:bv,[Gy.END_TAG_TOKEN]:_v,[Gy.EOF_TOKEN]:Tv},[ET]:{[Gy.CHARACTER_TOKEN]:function(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0},[Gy.NULL_CHARACTER_TOKEN]:qT,[Gy.WHITESPACE_CHARACTER_TOKEN]:function(e,t){e.pendingCharacterTokens.push(t)},[Gy.COMMENT_TOKEN]:Sv,[Gy.DOCTYPE_TOKEN]:Sv,[Gy.START_TAG_TOKEN]:Sv,[Gy.END_TAG_TOKEN]:Sv,[Gy.EOF_TOKEN]:Sv},[yT]:{[Gy.CHARACTER_TOKEN]:nv,[Gy.NULL_CHARACTER_TOKEN]:qT,[Gy.WHITESPACE_CHARACTER_TOKEN]:rv,[Gy.COMMENT_TOKEN]:GT,[Gy.DOCTYPE_TOKEN]:qT,[Gy.START_TAG_TOKEN]:function(e,t){const r=t.tagName;r===nT.CAPTION||r===nT.COL||r===nT.COLGROUP||r===nT.TBODY||r===nT.TD||r===nT.TFOOT||r===nT.TH||r===nT.THEAD||r===nT.TR?e.openElements.hasInTableScope(nT.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(nT.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=gT,e._processToken(t)):dv(e,t)},[Gy.END_TAG_TOKEN]:function(e,t){const r=t.tagName;r===nT.CAPTION||r===nT.TABLE?e.openElements.hasInTableScope(nT.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(nT.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=gT,r===nT.TABLE&&e._processToken(t)):r!==nT.BODY&&r!==nT.COL&&r!==nT.COLGROUP&&r!==nT.HTML&&r!==nT.TBODY&&r!==nT.TD&&r!==nT.TFOOT&&r!==nT.TH&&r!==nT.THEAD&&r!==nT.TR&&yv(e,t)},[Gy.EOF_TOKEN]:Tv},[TT]:{[Gy.CHARACTER_TOKEN]:kv,[Gy.NULL_CHARACTER_TOKEN]:kv,[Gy.WHITESPACE_CHARACTER_TOKEN]:$T,[Gy.COMMENT_TOKEN]:GT,[Gy.DOCTYPE_TOKEN]:qT,[Gy.START_TAG_TOKEN]:function(e,t){const r=t.tagName;r===nT.HTML?dv(e,t):r===nT.COL?(e._appendElement(t,iT.HTML),t.ackSelfClosing=!0):r===nT.TEMPLATE?XT(e,t):kv(e,t)},[Gy.END_TAG_TOKEN]:function(e,t){const r=t.tagName;r===nT.COLGROUP?e.openElements.currentTagName===nT.COLGROUP&&(e.openElements.pop(),e.insertionMode=gT):r===nT.TEMPLATE?JT(e,t):r!==nT.COL&&kv(e,t)},[Gy.EOF_TOKEN]:Tv},[vT]:{[Gy.CHARACTER_TOKEN]:vv,[Gy.NULL_CHARACTER_TOKEN]:vv,[Gy.WHITESPACE_CHARACTER_TOKEN]:vv,[Gy.COMMENT_TOKEN]:GT,[Gy.DOCTYPE_TOKEN]:qT,[Gy.START_TAG_TOKEN]:function(e,t){const r=t.tagName;r===nT.TR?(e.openElements.clearBackToTableBodyContext(),e._insertElement(t,iT.HTML),e.insertionMode=bT):r===nT.TH||r===nT.TD?(e.openElements.clearBackToTableBodyContext(),e._insertFakeElement(nT.TR),e.insertionMode=bT,e._processToken(t)):r===nT.CAPTION||r===nT.COL||r===nT.COLGROUP||r===nT.TBODY||r===nT.TFOOT||r===nT.THEAD?e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=gT,e._processToken(t)):bv(e,t)},[Gy.END_TAG_TOKEN]:function(e,t){const r=t.tagName;r===nT.TBODY||r===nT.TFOOT||r===nT.THEAD?e.openElements.hasInTableScope(r)&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=gT):r===nT.TABLE?e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=gT,e._processToken(t)):(r!==nT.BODY&&r!==nT.CAPTION&&r!==nT.COL&&r!==nT.COLGROUP||r!==nT.HTML&&r!==nT.TD&&r!==nT.TH&&r!==nT.TR)&&_v(e,t)},[Gy.EOF_TOKEN]:Tv},[bT]:{[Gy.CHARACTER_TOKEN]:vv,[Gy.NULL_CHARACTER_TOKEN]:vv,[Gy.WHITESPACE_CHARACTER_TOKEN]:vv,[Gy.COMMENT_TOKEN]:GT,[Gy.DOCTYPE_TOKEN]:qT,[Gy.START_TAG_TOKEN]:function(e,t){const r=t.tagName;r===nT.TH||r===nT.TD?(e.openElements.clearBackToTableRowContext(),e._insertElement(t,iT.HTML),e.insertionMode=_T,e.activeFormattingElements.insertMarker()):r===nT.CAPTION||r===nT.COL||r===nT.COLGROUP||r===nT.TBODY||r===nT.TFOOT||r===nT.THEAD||r===nT.TR?e.openElements.hasInTableScope(nT.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=vT,e._processToken(t)):bv(e,t)},[Gy.END_TAG_TOKEN]:function(e,t){const r=t.tagName;r===nT.TR?e.openElements.hasInTableScope(nT.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=vT):r===nT.TABLE?e.openElements.hasInTableScope(nT.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=vT,e._processToken(t)):r===nT.TBODY||r===nT.TFOOT||r===nT.THEAD?(e.openElements.hasInTableScope(r)||e.openElements.hasInTableScope(nT.TR))&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=vT,e._processToken(t)):(r!==nT.BODY&&r!==nT.CAPTION&&r!==nT.COL&&r!==nT.COLGROUP||r!==nT.HTML&&r!==nT.TD&&r!==nT.TH)&&_v(e,t)},[Gy.EOF_TOKEN]:Tv},[_T]:{[Gy.CHARACTER_TOKEN]:nv,[Gy.NULL_CHARACTER_TOKEN]:qT,[Gy.WHITESPACE_CHARACTER_TOKEN]:rv,[Gy.COMMENT_TOKEN]:GT,[Gy.DOCTYPE_TOKEN]:qT,[Gy.START_TAG_TOKEN]:function(e,t){const r=t.tagName;r===nT.CAPTION||r===nT.COL||r===nT.COLGROUP||r===nT.TBODY||r===nT.TD||r===nT.TFOOT||r===nT.TH||r===nT.THEAD||r===nT.TR?(e.openElements.hasInTableScope(nT.TD)||e.openElements.hasInTableScope(nT.TH))&&(e._closeTableCell(),e._processToken(t)):dv(e,t)},[Gy.END_TAG_TOKEN]:function(e,t){const r=t.tagName;r===nT.TD||r===nT.TH?e.openElements.hasInTableScope(r)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(r),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=bT):r===nT.TABLE||r===nT.TBODY||r===nT.TFOOT||r===nT.THEAD||r===nT.TR?e.openElements.hasInTableScope(r)&&(e._closeTableCell(),e._processToken(t)):r!==nT.BODY&&r!==nT.CAPTION&&r!==nT.COL&&r!==nT.COLGROUP&&r!==nT.HTML&&yv(e,t)},[Gy.EOF_TOKEN]:Tv},[AT]:{[Gy.CHARACTER_TOKEN]:$T,[Gy.NULL_CHARACTER_TOKEN]:qT,[Gy.WHITESPACE_CHARACTER_TOKEN]:$T,[Gy.COMMENT_TOKEN]:GT,[Gy.DOCTYPE_TOKEN]:qT,[Gy.START_TAG_TOKEN]:Cv,[Gy.END_TAG_TOKEN]:xv,[Gy.EOF_TOKEN]:Tv},[ST]:{[Gy.CHARACTER_TOKEN]:$T,[Gy.NULL_CHARACTER_TOKEN]:qT,[Gy.WHITESPACE_CHARACTER_TOKEN]:$T,[Gy.COMMENT_TOKEN]:GT,[Gy.DOCTYPE_TOKEN]:qT,[Gy.START_TAG_TOKEN]:function(e,t){const r=t.tagName;r===nT.CAPTION||r===nT.TABLE||r===nT.TBODY||r===nT.TFOOT||r===nT.THEAD||r===nT.TR||r===nT.TD||r===nT.TH?(e.openElements.popUntilTagNamePopped(nT.SELECT),e._resetInsertionMode(),e._processToken(t)):Cv(e,t)},[Gy.END_TAG_TOKEN]:function(e,t){const r=t.tagName;r===nT.CAPTION||r===nT.TABLE||r===nT.TBODY||r===nT.TFOOT||r===nT.THEAD||r===nT.TR||r===nT.TD||r===nT.TH?e.openElements.hasInTableScope(r)&&(e.openElements.popUntilTagNamePopped(nT.SELECT),e._resetInsertionMode(),e._processToken(t)):xv(e,t)},[Gy.EOF_TOKEN]:Tv},[kT]:{[Gy.CHARACTER_TOKEN]:nv,[Gy.NULL_CHARACTER_TOKEN]:qT,[Gy.WHITESPACE_CHARACTER_TOKEN]:rv,[Gy.COMMENT_TOKEN]:GT,[Gy.DOCTYPE_TOKEN]:qT,[Gy.START_TAG_TOKEN]:function(e,t){const r=t.tagName;if(r===nT.BASE||r===nT.BASEFONT||r===nT.BGSOUND||r===nT.LINK||r===nT.META||r===nT.NOFRAMES||r===nT.SCRIPT||r===nT.STYLE||r===nT.TEMPLATE||r===nT.TITLE)XT(e,t);else{const n=RT[r]||dT;e._popTmplInsertionMode(),e._pushTmplInsertionMode(n),e.insertionMode=n,e._processToken(t)}},[Gy.END_TAG_TOKEN]:function(e,t){t.tagName===nT.TEMPLATE&&JT(e,t)},[Gy.EOF_TOKEN]:wv},[CT]:{[Gy.CHARACTER_TOKEN]:Ov,[Gy.NULL_CHARACTER_TOKEN]:Ov,[Gy.WHITESPACE_CHARACTER_TOKEN]:rv,[Gy.COMMENT_TOKEN]:function(e,t){e._appendCommentNode(t,e.openElements.items[0])},[Gy.DOCTYPE_TOKEN]:qT,[Gy.START_TAG_TOKEN]:function(e,t){t.tagName===nT.HTML?dv(e,t):Ov(e,t)},[Gy.END_TAG_TOKEN]:function(e,t){t.tagName===nT.HTML?e.fragmentContext||(e.insertionMode=OT):Ov(e,t)},[Gy.EOF_TOKEN]:VT},[xT]:{[Gy.CHARACTER_TOKEN]:qT,[Gy.NULL_CHARACTER_TOKEN]:qT,[Gy.WHITESPACE_CHARACTER_TOKEN]:$T,[Gy.COMMENT_TOKEN]:GT,[Gy.DOCTYPE_TOKEN]:qT,[Gy.START_TAG_TOKEN]:function(e,t){const r=t.tagName;r===nT.HTML?dv(e,t):r===nT.FRAMESET?e._insertElement(t,iT.HTML):r===nT.FRAME?(e._appendElement(t,iT.HTML),t.ackSelfClosing=!0):r===nT.NOFRAMES&&XT(e,t)},[Gy.END_TAG_TOKEN]:function(e,t){t.tagName!==nT.FRAMESET||e.openElements.isRootHtmlElementCurrent()||(e.openElements.pop(),e.fragmentContext||e.openElements.currentTagName===nT.FRAMESET||(e.insertionMode=wT))},[Gy.EOF_TOKEN]:VT},[wT]:{[Gy.CHARACTER_TOKEN]:qT,[Gy.NULL_CHARACTER_TOKEN]:qT,[Gy.WHITESPACE_CHARACTER_TOKEN]:$T,[Gy.COMMENT_TOKEN]:GT,[Gy.DOCTYPE_TOKEN]:qT,[Gy.START_TAG_TOKEN]:function(e,t){const r=t.tagName;r===nT.HTML?dv(e,t):r===nT.NOFRAMES&&XT(e,t)},[Gy.END_TAG_TOKEN]:function(e,t){t.tagName===nT.HTML&&(e.insertionMode=NT)},[Gy.EOF_TOKEN]:VT},[OT]:{[Gy.CHARACTER_TOKEN]:Nv,[Gy.NULL_CHARACTER_TOKEN]:Nv,[Gy.WHITESPACE_CHARACTER_TOKEN]:rv,[Gy.COMMENT_TOKEN]:KT,[Gy.DOCTYPE_TOKEN]:qT,[Gy.START_TAG_TOKEN]:function(e,t){t.tagName===nT.HTML?dv(e,t):Nv(e,t)},[Gy.END_TAG_TOKEN]:Nv,[Gy.EOF_TOKEN]:VT},[NT]:{[Gy.CHARACTER_TOKEN]:qT,[Gy.NULL_CHARACTER_TOKEN]:qT,[Gy.WHITESPACE_CHARACTER_TOKEN]:rv,[Gy.COMMENT_TOKEN]:KT,[Gy.DOCTYPE_TOKEN]:qT,[Gy.START_TAG_TOKEN]:function(e,t){const r=t.tagName;r===nT.HTML?dv(e,t):r===nT.NOFRAMES&&XT(e,t)},[Gy.END_TAG_TOKEN]:qT,[Gy.EOF_TOKEN]:VT}};var LT=class{constructor(e){this.options=Xy(aT,e),this.treeAdapter=this.options.treeAdapter,this.pendingScript=null,this.options.sourceCodeLocationInfo&&Wy.install(this,Vy),this.options.onParseError&&Wy.install(this,Qy,{onParseError:this.options.onParseError})}parse(e){const t=this.treeAdapter.createDocument();return this._bootstrap(t,null),this.tokenizer.write(e,!0),this._runParsingLoop(null),t}parseFragment(e,t){t||(t=this.treeAdapter.createElement(nT.TEMPLATE,iT.HTML,[]));const r=this.treeAdapter.createElement("documentmock",iT.HTML,[]);this._bootstrap(r,t),this.treeAdapter.getTagName(t)===nT.TEMPLATE&&this._pushTmplInsertionMode(kT),this._initTokenizerForFragmentParsing(),this._insertFakeRootElement(),this._resetInsertionMode(),this._findFormInFragmentContext(),this.tokenizer.write(e,!0),this._runParsingLoop(null);const n=this.treeAdapter.getFirstChild(r),i=this.treeAdapter.createDocumentFragment();return this._adoptNodes(n,i),i}_bootstrap(e,t){this.tokenizer=new Gy(this.options),this.stopped=!1,this.insertionMode=cT,this.originalInsertionMode="",this.document=e,this.fragmentContext=t,this.headElement=null,this.formElement=null,this.openElements=new Ky(this.document,this.treeAdapter),this.activeFormattingElements=new $y(this.treeAdapter),this.tmplInsertionModeStack=[],this.tmplInsertionModeStackTop=-1,this.currentTmplInsertionMode=null,this.pendingCharacterTokens=[],this.hasNonWhitespacePendingCharacterToken=!1,this.framesetOk=!0,this.skipNextNewLine=!1,this.fosterParentingEnabled=!1}_err(){}_runParsingLoop(e){for(;!this.stopped;){this._setupTokenizerCDATAMode();const t=this.tokenizer.getNextToken();if(t.type===Gy.HIBERNATION_TOKEN)break;if(this.skipNextNewLine&&(this.skipNextNewLine=!1,t.type===Gy.WHITESPACE_CHARACTER_TOKEN&&"\n"===t.chars[0])){if(1===t.chars.length)continue;t.chars=t.chars.substr(1)}if(this._processInputToken(t),e&&this.pendingScript)break}}runParsingLoopForCurrentChunk(e,t){if(this._runParsingLoop(t),t&&this.pendingScript){const e=this.pendingScript;return this.pendingScript=null,void t(e)}e&&e()}_setupTokenizerCDATAMode(){const e=this._getAdjustedCurrentElement();this.tokenizer.allowCDATA=e&&e!==this.document&&this.treeAdapter.getNamespaceURI(e)!==iT.HTML&&!this._isIntegrationPoint(e)}_switchToTextParsing(e,t){this._insertElement(e,iT.HTML),this.tokenizer.state=t,this.originalInsertionMode=this.insertionMode,this.insertionMode=mT}switchToPlaintextParsing(){this.insertionMode=mT,this.originalInsertionMode=dT,this.tokenizer.state=Gy.MODE.PLAINTEXT}_getAdjustedCurrentElement(){return 0===this.openElements.stackTop&&this.fragmentContext?this.fragmentContext:this.openElements.current}_findFormInFragmentContext(){let e=this.fragmentContext;do{if(this.treeAdapter.getTagName(e)===nT.FORM){this.formElement=e;break}e=this.treeAdapter.getParentNode(e)}while(e)}_initTokenizerForFragmentParsing(){if(this.treeAdapter.getNamespaceURI(this.fragmentContext)===iT.HTML){const e=this.treeAdapter.getTagName(this.fragmentContext);e===nT.TITLE||e===nT.TEXTAREA?this.tokenizer.state=Gy.MODE.RCDATA:e===nT.STYLE||e===nT.XMP||e===nT.IFRAME||e===nT.NOEMBED||e===nT.NOFRAMES||e===nT.NOSCRIPT?this.tokenizer.state=Gy.MODE.RAWTEXT:e===nT.SCRIPT?this.tokenizer.state=Gy.MODE.SCRIPT_DATA:e===nT.PLAINTEXT&&(this.tokenizer.state=Gy.MODE.PLAINTEXT)}}_setDocumentType(e){const t=e.name||"",r=e.publicId||"",n=e.systemId||"";this.treeAdapter.setDocumentType(this.document,t,r,n)}_attachElementToTree(e){if(this._shouldFosterParentOnInsertion())this._fosterParentElement(e);else{const t=this.openElements.currentTmplContent||this.openElements.current;this.treeAdapter.appendChild(t,e)}}_appendElement(e,t){const r=this.treeAdapter.createElement(e.tagName,t,e.attrs);this._attachElementToTree(r)}_insertElement(e,t){const r=this.treeAdapter.createElement(e.tagName,t,e.attrs);this._attachElementToTree(r),this.openElements.push(r)}_insertFakeElement(e){const t=this.treeAdapter.createElement(e,iT.HTML,[]);this._attachElementToTree(t),this.openElements.push(t)}_insertTemplate(e){const t=this.treeAdapter.createElement(e.tagName,iT.HTML,e.attrs),r=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(t,r),this._attachElementToTree(t),this.openElements.push(t)}_insertFakeRootElement(){const e=this.treeAdapter.createElement(nT.HTML,iT.HTML,[]);this.treeAdapter.appendChild(this.openElements.current,e),this.openElements.push(e)}_appendCommentNode(e,t){const r=this.treeAdapter.createCommentNode(e.data);this.treeAdapter.appendChild(t,r)}_insertCharacters(e){if(this._shouldFosterParentOnInsertion())this._fosterParentText(e.chars);else{const t=this.openElements.currentTmplContent||this.openElements.current;this.treeAdapter.insertText(t,e.chars)}}_adoptNodes(e,t){for(let r=this.treeAdapter.getFirstChild(e);r;r=this.treeAdapter.getFirstChild(e))this.treeAdapter.detachNode(r),this.treeAdapter.appendChild(t,r)}_shouldProcessTokenInForeignContent(e){const t=this._getAdjustedCurrentElement();if(!t||t===this.document)return!1;const r=this.treeAdapter.getNamespaceURI(t);if(r===iT.HTML)return!1;if(this.treeAdapter.getTagName(t)===nT.ANNOTATION_XML&&r===iT.MATHML&&e.type===Gy.START_TAG_TOKEN&&e.tagName===nT.SVG)return!1;const n=e.type===Gy.CHARACTER_TOKEN||e.type===Gy.NULL_CHARACTER_TOKEN||e.type===Gy.WHITESPACE_CHARACTER_TOKEN;return(!(e.type===Gy.START_TAG_TOKEN&&e.tagName!==nT.MGLYPH&&e.tagName!==nT.MALIGNMARK)&&!n||!this._isIntegrationPoint(t,iT.MATHML))&&((e.type!==Gy.START_TAG_TOKEN&&!n||!this._isIntegrationPoint(t,iT.HTML))&&e.type!==Gy.EOF_TOKEN)}_processToken(e){IT[this.insertionMode][e.type](this,e)}_processTokenInBodyMode(e){IT[dT][e.type](this,e)}_processTokenInForeignContent(e){e.type===Gy.CHARACTER_TOKEN?function(e,t){e._insertCharacters(t),e.framesetOk=!1}(this,e):e.type===Gy.NULL_CHARACTER_TOKEN?function(e,t){t.chars=tT.REPLACEMENT_CHARACTER,e._insertCharacters(t)}(this,e):e.type===Gy.WHITESPACE_CHARACTER_TOKEN?$T(this,e):e.type===Gy.COMMENT_TOKEN?GT(this,e):e.type===Gy.START_TAG_TOKEN?function(e,t){if(Zy.causesExit(t)&&!e.fragmentContext){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==iT.HTML&&!e._isIntegrationPoint(e.openElements.current);)e.openElements.pop();e._processToken(t)}else{const r=e._getAdjustedCurrentElement(),n=e.treeAdapter.getNamespaceURI(r);n===iT.MATHML?Zy.adjustTokenMathMLAttrs(t):n===iT.SVG&&(Zy.adjustTokenSVGTagName(t),Zy.adjustTokenSVGAttrs(t)),Zy.adjustTokenXMLAttrs(t),t.selfClosing?e._appendElement(t,n):e._insertElement(t,n),t.ackSelfClosing=!0}}(this,e):e.type===Gy.END_TAG_TOKEN&&function(e,t){for(let r=e.openElements.stackTop;r>0;r--){const n=e.openElements.items[r];if(e.treeAdapter.getNamespaceURI(n)===iT.HTML){e._processToken(t);break}if(e.treeAdapter.getTagName(n).toLowerCase()===t.tagName){e.openElements.popUntilElementPopped(n);break}}}(this,e)}_processInputToken(e){this._shouldProcessTokenInForeignContent(e)?this._processTokenInForeignContent(e):this._processToken(e),e.type===Gy.START_TAG_TOKEN&&e.selfClosing&&!e.ackSelfClosing&&this._err(eT.nonVoidHtmlElementStartTagWithTrailingSolidus)}_isIntegrationPoint(e,t){const r=this.treeAdapter.getTagName(e),n=this.treeAdapter.getNamespaceURI(e),i=this.treeAdapter.getAttrList(e);return Zy.isIntegrationPoint(r,n,i,t)}_reconstructActiveFormattingElements(){const e=this.activeFormattingElements.length;if(e){let t=e,r=null;do{if(t--,r=this.activeFormattingElements.entries[t],r.type===$y.MARKER_ENTRY||this.openElements.contains(r.element)){t++;break}}while(t>0);for(let n=t;n<e;n++)r=this.activeFormattingElements.entries[n],this._insertElement(r.token,this.treeAdapter.getNamespaceURI(r.element)),r.element=this.openElements.current}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=bT}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(nT.P),this.openElements.popUntilTagNamePopped(nT.P)}_resetInsertionMode(){for(let e=this.openElements.stackTop,t=!1;e>=0;e--){let r=this.openElements.items[e];0===e&&(t=!0,this.fragmentContext&&(r=this.fragmentContext));const n=this.treeAdapter.getTagName(r),i=PT[n];if(i){this.insertionMode=i;break}if(!(t||n!==nT.TD&&n!==nT.TH)){this.insertionMode=_T;break}if(!t&&n===nT.HEAD){this.insertionMode=hT;break}if(n===nT.SELECT){this._resetInsertionModeForSelect(e);break}if(n===nT.TEMPLATE){this.insertionMode=this.currentTmplInsertionMode;break}if(n===nT.HTML){this.insertionMode=this.headElement?fT:uT;break}if(t){this.insertionMode=dT;break}}}_resetInsertionModeForSelect(e){if(e>0)for(let t=e-1;t>0;t--){const e=this.openElements.items[t],r=this.treeAdapter.getTagName(e);if(r===nT.TEMPLATE)break;if(r===nT.TABLE)return void(this.insertionMode=ST)}this.insertionMode=AT}_pushTmplInsertionMode(e){this.tmplInsertionModeStack.push(e),this.tmplInsertionModeStackTop++,this.currentTmplInsertionMode=e}_popTmplInsertionMode(){this.tmplInsertionModeStack.pop(),this.tmplInsertionModeStackTop--,this.currentTmplInsertionMode=this.tmplInsertionModeStack[this.tmplInsertionModeStackTop]}_isElementCausesFosterParenting(e){const t=this.treeAdapter.getTagName(e);return t===nT.TABLE||t===nT.TBODY||t===nT.TFOOT||t===nT.THEAD||t===nT.TR}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this._isElementCausesFosterParenting(this.openElements.current)}_findFosterParentingLocation(){const e={parent:null,beforeElement:null};for(let t=this.openElements.stackTop;t>=0;t--){const r=this.openElements.items[t],n=this.treeAdapter.getTagName(r),i=this.treeAdapter.getNamespaceURI(r);if(n===nT.TEMPLATE&&i===iT.HTML){e.parent=this.treeAdapter.getTemplateContent(r);break}if(n===nT.TABLE){e.parent=this.treeAdapter.getParentNode(r),e.parent?e.beforeElement=r:e.parent=this.openElements.items[t-1];break}}return e.parent||(e.parent=this.openElements.items[0]),e}_fosterParentElement(e){const t=this._findFosterParentingLocation();t.beforeElement?this.treeAdapter.insertBefore(t.parent,e,t.beforeElement):this.treeAdapter.appendChild(t.parent,e)}_fosterParentText(e){const t=this._findFosterParentingLocation();t.beforeElement?this.treeAdapter.insertTextBefore(t.parent,e,t.beforeElement):this.treeAdapter.insertText(t.parent,e)}_isSpecialElement(e){const t=this.treeAdapter.getTagName(e),r=this.treeAdapter.getNamespaceURI(e);return rT.SPECIAL_ELEMENTS[r][t]}};function DT(e,t){let r=e.activeFormattingElements.getElementEntryInScopeWithTagName(t.tagName);return r?e.openElements.contains(r.element)?e.openElements.hasInScope(t.tagName)||(r=null):(e.activeFormattingElements.removeEntry(r),r=null):Ev(e,t),r}function MT(e,t){let r=null;for(let n=e.openElements.stackTop;n>=0;n--){const i=e.openElements.items[n];if(i===t.element)break;e._isSpecialElement(i)&&(r=i)}return r||(e.openElements.popUntilElementPopped(t.element),e.activeFormattingElements.removeEntry(t)),r}function FT(e,t,r){let n=t,i=e.openElements.getCommonAncestor(t);for(let o=0,a=i;a!==r;o++,a=i){i=e.openElements.getCommonAncestor(a);const r=e.activeFormattingElements.getElementEntry(a),s=r&&o>=3;!r||s?(s&&e.activeFormattingElements.removeEntry(r),e.openElements.remove(a)):(a=HT(e,r),n===t&&(e.activeFormattingElements.bookmark=r),e.treeAdapter.detachNode(n),e.treeAdapter.appendChild(a,n),n=a)}return n}function HT(e,t){const r=e.treeAdapter.getNamespaceURI(t.element),n=e.treeAdapter.createElement(t.token.tagName,r,t.token.attrs);return e.openElements.replace(t.element,n),t.element=n,n}function BT(e,t,r){if(e._isElementCausesFosterParenting(t))e._fosterParentElement(r);else{const n=e.treeAdapter.getTagName(t),i=e.treeAdapter.getNamespaceURI(t);n===nT.TEMPLATE&&i===iT.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,r)}}function UT(e,t,r){const n=e.treeAdapter.getNamespaceURI(r.element),i=r.token,o=e.treeAdapter.createElement(i.tagName,n,i.attrs);e._adoptNodes(t,o),e.treeAdapter.appendChild(t,o),e.activeFormattingElements.insertElementAfterBookmark(o,r.token),e.activeFormattingElements.removeEntry(r),e.openElements.remove(r.element),e.openElements.insertAfter(t,o)}function jT(e,t){let r;for(let n=0;n<8&&(r=DT(e,t),r);n++){const t=MT(e,r);if(!t)break;e.activeFormattingElements.bookmark=r;const n=FT(e,t,r.element),i=e.openElements.getCommonAncestor(r.element);e.treeAdapter.detachNode(n),BT(e,i,n),UT(e,t,r)}}function qT(){}function zT(e){e._err(eT.misplacedDoctype)}function GT(e,t){e._appendCommentNode(t,e.openElements.currentTmplContent||e.openElements.current)}function KT(e,t){e._appendCommentNode(t,e.document)}function $T(e,t){e._insertCharacters(t)}function VT(e){e.stopped=!0}function QT(e,t){e._err(eT.missingDoctype,{beforeToken:!0}),e.treeAdapter.setDocumentMode(e.document,rT.DOCUMENT_MODE.QUIRKS),e.insertionMode=lT,e._processToken(t)}function WT(e,t){e._insertFakeRootElement(),e.insertionMode=uT,e._processToken(t)}function YT(e,t){e._insertFakeElement(nT.HEAD),e.headElement=e.openElements.current,e.insertionMode=hT,e._processToken(t)}function XT(e,t){const r=t.tagName;r===nT.HTML?dv(e,t):r===nT.BASE||r===nT.BASEFONT||r===nT.BGSOUND||r===nT.LINK||r===nT.META?(e._appendElement(t,iT.HTML),t.ackSelfClosing=!0):r===nT.TITLE?e._switchToTextParsing(t,Gy.MODE.RCDATA):r===nT.NOSCRIPT?e.options.scriptingEnabled?e._switchToTextParsing(t,Gy.MODE.RAWTEXT):(e._insertElement(t,iT.HTML),e.insertionMode=pT):r===nT.NOFRAMES||r===nT.STYLE?e._switchToTextParsing(t,Gy.MODE.RAWTEXT):r===nT.SCRIPT?e._switchToTextParsing(t,Gy.MODE.SCRIPT_DATA):r===nT.TEMPLATE?(e._insertTemplate(t,iT.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=kT,e._pushTmplInsertionMode(kT)):r===nT.HEAD?e._err(eT.misplacedStartTagForHeadElement):ZT(e,t)}function JT(e,t){const r=t.tagName;r===nT.HEAD?(e.openElements.pop(),e.insertionMode=fT):r===nT.BODY||r===nT.BR||r===nT.HTML?ZT(e,t):r===nT.TEMPLATE&&e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagName!==nT.TEMPLATE&&e._err(eT.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(nT.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e._popTmplInsertionMode(),e._resetInsertionMode()):e._err(eT.endTagWithoutMatchingOpenElement)}function ZT(e,t){e.openElements.pop(),e.insertionMode=fT,e._processToken(t)}function ev(e,t){const r=t.type===Gy.EOF_TOKEN?eT.openElementsLeftAfterEof:eT.disallowedContentInNoscriptInHead;e._err(r),e.openElements.pop(),e.insertionMode=hT,e._processToken(t)}function tv(e,t){e._insertFakeElement(nT.BODY),e.insertionMode=dT,e._processToken(t)}function rv(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function nv(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function iv(e,t){e.openElements.hasInButtonScope(nT.P)&&e._closePElement(),e._insertElement(t,iT.HTML)}function ov(e,t){e.openElements.hasInButtonScope(nT.P)&&e._closePElement(),e._insertElement(t,iT.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}function av(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,iT.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function sv(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,iT.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}function cv(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,iT.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function lv(e,t){e._appendElement(t,iT.HTML),t.ackSelfClosing=!0}function uv(e,t){e._switchToTextParsing(t,Gy.MODE.RAWTEXT)}function hv(e,t){e.openElements.currentTagName===nT.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,iT.HTML)}function pv(e,t){e.openElements.hasInScope(nT.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,iT.HTML)}function fv(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,iT.HTML)}function dv(e,t){const r=t.tagName;switch(r.length){case 1:r===nT.I||r===nT.S||r===nT.B||r===nT.U?av(e,t):r===nT.P?iv(e,t):r===nT.A?function(e,t){const r=e.activeFormattingElements.getElementEntryInScopeWithTagName(nT.A);r&&(jT(e,t),e.openElements.remove(r.element),e.activeFormattingElements.removeEntry(r)),e._reconstructActiveFormattingElements(),e._insertElement(t,iT.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}(e,t):fv(e,t);break;case 2:r===nT.DL||r===nT.OL||r===nT.UL?iv(e,t):r===nT.H1||r===nT.H2||r===nT.H3||r===nT.H4||r===nT.H5||r===nT.H6?function(e,t){e.openElements.hasInButtonScope(nT.P)&&e._closePElement();const r=e.openElements.currentTagName;r!==nT.H1&&r!==nT.H2&&r!==nT.H3&&r!==nT.H4&&r!==nT.H5&&r!==nT.H6||e.openElements.pop(),e._insertElement(t,iT.HTML)}(e,t):r===nT.LI||r===nT.DD||r===nT.DT?function(e,t){e.framesetOk=!1;const r=t.tagName;for(let t=e.openElements.stackTop;t>=0;t--){const n=e.openElements.items[t],i=e.treeAdapter.getTagName(n);let o=null;if(r===nT.LI&&i===nT.LI?o=nT.LI:r!==nT.DD&&r!==nT.DT||i!==nT.DD&&i!==nT.DT||(o=i),o){e.openElements.generateImpliedEndTagsWithExclusion(o),e.openElements.popUntilTagNamePopped(o);break}if(i!==nT.ADDRESS&&i!==nT.DIV&&i!==nT.P&&e._isSpecialElement(n))break}e.openElements.hasInButtonScope(nT.P)&&e._closePElement(),e._insertElement(t,iT.HTML)}(e,t):r===nT.EM||r===nT.TT?av(e,t):r===nT.BR?cv(e,t):r===nT.HR?function(e,t){e.openElements.hasInButtonScope(nT.P)&&e._closePElement(),e._appendElement(t,iT.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}(e,t):r===nT.RB?pv(e,t):r===nT.RT||r===nT.RP?function(e,t){e.openElements.hasInScope(nT.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(nT.RTC),e._insertElement(t,iT.HTML)}(e,t):r!==nT.TH&&r!==nT.TD&&r!==nT.TR&&fv(e,t);break;case 3:r===nT.DIV||r===nT.DIR||r===nT.NAV?iv(e,t):r===nT.PRE?ov(e,t):r===nT.BIG?av(e,t):r===nT.IMG||r===nT.WBR?cv(e,t):r===nT.XMP?function(e,t){e.openElements.hasInButtonScope(nT.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,Gy.MODE.RAWTEXT)}(e,t):r===nT.SVG?function(e,t){e._reconstructActiveFormattingElements(),Zy.adjustTokenSVGAttrs(t),Zy.adjustTokenXMLAttrs(t),t.selfClosing?e._appendElement(t,iT.SVG):e._insertElement(t,iT.SVG),t.ackSelfClosing=!0}(e,t):r===nT.RTC?pv(e,t):r!==nT.COL&&fv(e,t);break;case 4:r===nT.HTML?function(e,t){0===e.openElements.tmplCount&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}(e,t):r===nT.BASE||r===nT.LINK||r===nT.META?XT(e,t):r===nT.BODY?function(e,t){const r=e.openElements.tryPeekProperlyNestedBodyElement();r&&0===e.openElements.tmplCount&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(r,t.attrs))}(e,t):r===nT.MAIN||r===nT.MENU?iv(e,t):r===nT.FORM?function(e,t){const r=e.openElements.tmplCount>0;e.formElement&&!r||(e.openElements.hasInButtonScope(nT.P)&&e._closePElement(),e._insertElement(t,iT.HTML),r||(e.formElement=e.openElements.current))}(e,t):r===nT.CODE||r===nT.FONT?av(e,t):r===nT.NOBR?function(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(nT.NOBR)&&(jT(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,iT.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}(e,t):r===nT.AREA?cv(e,t):r===nT.MATH?function(e,t){e._reconstructActiveFormattingElements(),Zy.adjustTokenMathMLAttrs(t),Zy.adjustTokenXMLAttrs(t),t.selfClosing?e._appendElement(t,iT.MATHML):e._insertElement(t,iT.MATHML),t.ackSelfClosing=!0}(e,t):r===nT.MENU?function(e,t){e.openElements.hasInButtonScope(nT.P)&&e._closePElement(),e._insertElement(t,iT.HTML)}(e,t):r!==nT.HEAD&&fv(e,t);break;case 5:r===nT.STYLE||r===nT.TITLE?XT(e,t):r===nT.ASIDE?iv(e,t):r===nT.SMALL?av(e,t):r===nT.TABLE?function(e,t){e.treeAdapter.getDocumentMode(e.document)!==rT.DOCUMENT_MODE.QUIRKS&&e.openElements.hasInButtonScope(nT.P)&&e._closePElement(),e._insertElement(t,iT.HTML),e.framesetOk=!1,e.insertionMode=gT}(e,t):r===nT.EMBED?cv(e,t):r===nT.INPUT?function(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,iT.HTML);const r=Gy.getTokenAttr(t,oT.TYPE);r&&r.toLowerCase()===sT||(e.framesetOk=!1),t.ackSelfClosing=!0}(e,t):r===nT.PARAM||r===nT.TRACK?lv(e,t):r===nT.IMAGE?function(e,t){t.tagName=nT.IMG,cv(e,t)}(e,t):r!==nT.FRAME&&r!==nT.TBODY&&r!==nT.TFOOT&&r!==nT.THEAD&&fv(e,t);break;case 6:r===nT.SCRIPT?XT(e,t):r===nT.CENTER||r===nT.FIGURE||r===nT.FOOTER||r===nT.HEADER||r===nT.HGROUP||r===nT.DIALOG?iv(e,t):r===nT.BUTTON?function(e,t){e.openElements.hasInScope(nT.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(nT.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,iT.HTML),e.framesetOk=!1}(e,t):r===nT.STRIKE||r===nT.STRONG?av(e,t):r===nT.APPLET||r===nT.OBJECT?sv(e,t):r===nT.KEYGEN?cv(e,t):r===nT.SOURCE?lv(e,t):r===nT.IFRAME?function(e,t){e.framesetOk=!1,e._switchToTextParsing(t,Gy.MODE.RAWTEXT)}(e,t):r===nT.SELECT?function(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,iT.HTML),e.framesetOk=!1,e.insertionMode===gT||e.insertionMode===yT||e.insertionMode===vT||e.insertionMode===bT||e.insertionMode===_T?e.insertionMode=ST:e.insertionMode=AT}(e,t):r===nT.OPTION?hv(e,t):fv(e,t);break;case 7:r===nT.BGSOUND?XT(e,t):r===nT.DETAILS||r===nT.ADDRESS||r===nT.ARTICLE||r===nT.SECTION||r===nT.SUMMARY?iv(e,t):r===nT.LISTING?ov(e,t):r===nT.MARQUEE?sv(e,t):r===nT.NOEMBED?uv(e,t):r!==nT.CAPTION&&fv(e,t);break;case 8:r===nT.BASEFONT?XT(e,t):r===nT.FRAMESET?function(e,t){const r=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&r&&(e.treeAdapter.detachNode(r),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,iT.HTML),e.insertionMode=xT)}(e,t):r===nT.FIELDSET?iv(e,t):r===nT.TEXTAREA?function(e,t){e._insertElement(t,iT.HTML),e.skipNextNewLine=!0,e.tokenizer.state=Gy.MODE.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=mT}(e,t):r===nT.TEMPLATE?XT(e,t):r===nT.NOSCRIPT?e.options.scriptingEnabled?uv(e,t):fv(e,t):r===nT.OPTGROUP?hv(e,t):r!==nT.COLGROUP&&fv(e,t);break;case 9:r===nT.PLAINTEXT?function(e,t){e.openElements.hasInButtonScope(nT.P)&&e._closePElement(),e._insertElement(t,iT.HTML),e.tokenizer.state=Gy.MODE.PLAINTEXT}(e,t):fv(e,t);break;case 10:r===nT.BLOCKQUOTE||r===nT.FIGCAPTION?iv(e,t):fv(e,t);break;default:fv(e,t)}}function mv(e,t){const r=t.tagName;e.openElements.hasInScope(r)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(r))}function gv(e,t){const r=t.tagName;e.openElements.hasInScope(r)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(r),e.activeFormattingElements.clearToLastMarker())}function Ev(e,t){const r=t.tagName;for(let t=e.openElements.stackTop;t>0;t--){const n=e.openElements.items[t];if(e.treeAdapter.getTagName(n)===r){e.openElements.generateImpliedEndTagsWithExclusion(r),e.openElements.popUntilElementPopped(n);break}if(e._isSpecialElement(n))break}}function yv(e,t){const r=t.tagName;switch(r.length){case 1:r===nT.A||r===nT.B||r===nT.I||r===nT.S||r===nT.U?jT(e,t):r===nT.P?function(e){e.openElements.hasInButtonScope(nT.P)||e._insertFakeElement(nT.P),e._closePElement()}(e):Ev(e,t);break;case 2:r===nT.DL||r===nT.UL||r===nT.OL?mv(e,t):r===nT.LI?function(e){e.openElements.hasInListItemScope(nT.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(nT.LI),e.openElements.popUntilTagNamePopped(nT.LI))}(e):r===nT.DD||r===nT.DT?function(e,t){const r=t.tagName;e.openElements.hasInScope(r)&&(e.openElements.generateImpliedEndTagsWithExclusion(r),e.openElements.popUntilTagNamePopped(r))}(e,t):r===nT.H1||r===nT.H2||r===nT.H3||r===nT.H4||r===nT.H5||r===nT.H6?function(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}(e):r===nT.BR?function(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(nT.BR),e.openElements.pop(),e.framesetOk=!1}(e):r===nT.EM||r===nT.TT?jT(e,t):Ev(e,t);break;case 3:r===nT.BIG?jT(e,t):r===nT.DIR||r===nT.DIV||r===nT.NAV||r===nT.PRE?mv(e,t):Ev(e,t);break;case 4:r===nT.BODY?function(e){e.openElements.hasInScope(nT.BODY)&&(e.insertionMode=CT)}(e):r===nT.HTML?function(e,t){e.openElements.hasInScope(nT.BODY)&&(e.insertionMode=CT,e._processToken(t))}(e,t):r===nT.FORM?function(e){const t=e.openElements.tmplCount>0,r=e.formElement;t||(e.formElement=null),(r||t)&&e.openElements.hasInScope(nT.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(nT.FORM):e.openElements.remove(r))}(e):r===nT.CODE||r===nT.FONT||r===nT.NOBR?jT(e,t):r===nT.MAIN||r===nT.MENU?mv(e,t):Ev(e,t);break;case 5:r===nT.ASIDE?mv(e,t):r===nT.SMALL?jT(e,t):Ev(e,t);break;case 6:r===nT.CENTER||r===nT.FIGURE||r===nT.FOOTER||r===nT.HEADER||r===nT.HGROUP||r===nT.DIALOG?mv(e,t):r===nT.APPLET||r===nT.OBJECT?gv(e,t):r===nT.STRIKE||r===nT.STRONG?jT(e,t):Ev(e,t);break;case 7:r===nT.ADDRESS||r===nT.ARTICLE||r===nT.DETAILS||r===nT.SECTION||r===nT.SUMMARY||r===nT.LISTING?mv(e,t):r===nT.MARQUEE?gv(e,t):Ev(e,t);break;case 8:r===nT.FIELDSET?mv(e,t):r===nT.TEMPLATE?JT(e,t):Ev(e,t);break;case 10:r===nT.BLOCKQUOTE||r===nT.FIGCAPTION?mv(e,t):Ev(e,t);break;default:Ev(e,t)}}function Tv(e,t){e.tmplInsertionModeStackTop>-1?wv(e,t):e.stopped=!0}function vv(e,t){const r=e.openElements.currentTagName;r===nT.TABLE||r===nT.TBODY||r===nT.TFOOT||r===nT.THEAD||r===nT.TR?(e.pendingCharacterTokens=[],e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=ET,e._processToken(t)):Av(e,t)}function bv(e,t){const r=t.tagName;switch(r.length){case 2:r===nT.TD||r===nT.TH||r===nT.TR?function(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(nT.TBODY),e.insertionMode=vT,e._processToken(t)}(e,t):Av(e,t);break;case 3:r===nT.COL?function(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(nT.COLGROUP),e.insertionMode=TT,e._processToken(t)}(e,t):Av(e,t);break;case 4:r===nT.FORM?function(e,t){e.formElement||0!==e.openElements.tmplCount||(e._insertElement(t,iT.HTML),e.formElement=e.openElements.current,e.openElements.pop())}(e,t):Av(e,t);break;case 5:r===nT.TABLE?function(e,t){e.openElements.hasInTableScope(nT.TABLE)&&(e.openElements.popUntilTagNamePopped(nT.TABLE),e._resetInsertionMode(),e._processToken(t))}(e,t):r===nT.STYLE?XT(e,t):r===nT.TBODY||r===nT.TFOOT||r===nT.THEAD?function(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,iT.HTML),e.insertionMode=vT}(e,t):r===nT.INPUT?function(e,t){const r=Gy.getTokenAttr(t,oT.TYPE);r&&r.toLowerCase()===sT?e._appendElement(t,iT.HTML):Av(e,t),t.ackSelfClosing=!0}(e,t):Av(e,t);break;case 6:r===nT.SCRIPT?XT(e,t):Av(e,t);break;case 7:r===nT.CAPTION?function(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,iT.HTML),e.insertionMode=yT}(e,t):Av(e,t);break;case 8:r===nT.COLGROUP?function(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,iT.HTML),e.insertionMode=TT}(e,t):r===nT.TEMPLATE?XT(e,t):Av(e,t);break;default:Av(e,t)}}function _v(e,t){const r=t.tagName;r===nT.TABLE?e.openElements.hasInTableScope(nT.TABLE)&&(e.openElements.popUntilTagNamePopped(nT.TABLE),e._resetInsertionMode()):r===nT.TEMPLATE?JT(e,t):r!==nT.BODY&&r!==nT.CAPTION&&r!==nT.COL&&r!==nT.COLGROUP&&r!==nT.HTML&&r!==nT.TBODY&&r!==nT.TD&&r!==nT.TFOOT&&r!==nT.TH&&r!==nT.THEAD&&r!==nT.TR&&Av(e,t)}function Av(e,t){const r=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,e._processTokenInBodyMode(t),e.fosterParentingEnabled=r}function Sv(e,t){let r=0;if(e.hasNonWhitespacePendingCharacterToken)for(;r<e.pendingCharacterTokens.length;r++)Av(e,e.pendingCharacterTokens[r]);else for(;r<e.pendingCharacterTokens.length;r++)e._insertCharacters(e.pendingCharacterTokens[r]);e.insertionMode=e.originalInsertionMode,e._processToken(t)}function kv(e,t){e.openElements.currentTagName===nT.COLGROUP&&(e.openElements.pop(),e.insertionMode=gT,e._processToken(t))}function Cv(e,t){const r=t.tagName;r===nT.HTML?dv(e,t):r===nT.OPTION?(e.openElements.currentTagName===nT.OPTION&&e.openElements.pop(),e._insertElement(t,iT.HTML)):r===nT.OPTGROUP?(e.openElements.currentTagName===nT.OPTION&&e.openElements.pop(),e.openElements.currentTagName===nT.OPTGROUP&&e.openElements.pop(),e._insertElement(t,iT.HTML)):r===nT.INPUT||r===nT.KEYGEN||r===nT.TEXTAREA||r===nT.SELECT?e.openElements.hasInSelectScope(nT.SELECT)&&(e.openElements.popUntilTagNamePopped(nT.SELECT),e._resetInsertionMode(),r!==nT.SELECT&&e._processToken(t)):r!==nT.SCRIPT&&r!==nT.TEMPLATE||XT(e,t)}function xv(e,t){const r=t.tagName;if(r===nT.OPTGROUP){const t=e.openElements.items[e.openElements.stackTop-1],r=t&&e.treeAdapter.getTagName(t);e.openElements.currentTagName===nT.OPTION&&r===nT.OPTGROUP&&e.openElements.pop(),e.openElements.currentTagName===nT.OPTGROUP&&e.openElements.pop()}else r===nT.OPTION?e.openElements.currentTagName===nT.OPTION&&e.openElements.pop():r===nT.SELECT&&e.openElements.hasInSelectScope(nT.SELECT)?(e.openElements.popUntilTagNamePopped(nT.SELECT),e._resetInsertionMode()):r===nT.TEMPLATE&&JT(e,t)}function wv(e,t){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(nT.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e._popTmplInsertionMode(),e._resetInsertionMode(),e._processToken(t)):e.stopped=!0}function Ov(e,t){e.insertionMode=dT,e._processToken(t)}function Nv(e,t){e.insertionMode=dT,e._processToken(t)}var Pv=LT;class Rv{constructor(e,t,r){this.property=e,this.normal=t,r&&(this.space=r)}}function Iv(e,t){const r={},n={};let i=-1;for(;++i<e.length;)Object.assign(r,e[i].property),Object.assign(n,e[i].normal);return new Rv(r,n,t)}function Lv(e){return e.toLowerCase()}Rv.prototype.property={},Rv.prototype.normal={},Rv.prototype.space=null;class Dv{constructor(e,t){this.property=e,this.attribute=t}}Dv.prototype.space=null,Dv.prototype.boolean=!1,Dv.prototype.booleanish=!1,Dv.prototype.overloadedBoolean=!1,Dv.prototype.number=!1,Dv.prototype.commaSeparated=!1,Dv.prototype.spaceSeparated=!1,Dv.prototype.commaOrSpaceSeparated=!1,Dv.prototype.mustUseProperty=!1,Dv.prototype.defined=!1;let Mv=0;const Fv=Gv(),Hv=Gv(),Bv=Gv(),Uv=Gv(),jv=Gv(),qv=Gv(),zv=Gv();function Gv(){return 2**++Mv}var Kv=Object.freeze({__proto__:null,boolean:Fv,booleanish:Hv,overloadedBoolean:Bv,number:Uv,spaceSeparated:jv,commaSeparated:qv,commaOrSpaceSeparated:zv});const $v=Object.keys(Kv);class Vv extends Dv{constructor(e,t,r,n){let i=-1;if(super(e,t),Qv(this,"space",n),"number"==typeof r)for(;++i<$v.length;){const e=$v[i];Qv(this,$v[i],(r&Kv[e])===Kv[e])}}}function Qv(e,t,r){r&&(e[t]=r)}Vv.prototype.defined=!0;const Wv={}.hasOwnProperty;function Yv(e){const t={},r={};let n;for(n in e.properties)if(Wv.call(e.properties,n)){const i=e.properties[n],o=new Vv(n,e.transform(e.attributes||{},n),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(n)&&(o.mustUseProperty=!0),t[n]=o,r[Lv(n)]=n,r[Lv(o.attribute)]=n}return new Rv(t,r,e.space)}const Xv=Yv({space:"xlink",transform:(e,t)=>"xlink:"+t.slice(5).toLowerCase(),properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),Jv=Yv({space:"xml",transform:(e,t)=>"xml:"+t.slice(3).toLowerCase(),properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function Zv(e,t){return t in e?e[t]:t}function eb(e,t){return Zv(e,t.toLowerCase())}const tb=Yv({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:eb,properties:{xmlns:null,xmlnsXLink:null}}),rb=Yv({transform:(e,t)=>"role"===t?t:"aria-"+t.slice(4).toLowerCase(),properties:{ariaActiveDescendant:null,ariaAtomic:Hv,ariaAutoComplete:null,ariaBusy:Hv,ariaChecked:Hv,ariaColCount:Uv,ariaColIndex:Uv,ariaColSpan:Uv,ariaControls:jv,ariaCurrent:null,ariaDescribedBy:jv,ariaDetails:null,ariaDisabled:Hv,ariaDropEffect:jv,ariaErrorMessage:null,ariaExpanded:Hv,ariaFlowTo:jv,ariaGrabbed:Hv,ariaHasPopup:null,ariaHidden:Hv,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:jv,ariaLevel:Uv,ariaLive:null,ariaModal:Hv,ariaMultiLine:Hv,ariaMultiSelectable:Hv,ariaOrientation:null,ariaOwns:jv,ariaPlaceholder:null,ariaPosInSet:Uv,ariaPressed:Hv,ariaReadOnly:Hv,ariaRelevant:null,ariaRequired:Hv,ariaRoleDescription:jv,ariaRowCount:Uv,ariaRowIndex:Uv,ariaRowSpan:Uv,ariaSelected:Hv,ariaSetSize:Uv,ariaSort:null,ariaValueMax:Uv,ariaValueMin:Uv,ariaValueNow:Uv,ariaValueText:null,role:null}}),nb=Yv({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:eb,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:qv,acceptCharset:jv,accessKey:jv,action:null,allow:null,allowFullScreen:Fv,allowPaymentRequest:Fv,allowUserMedia:Fv,alt:null,as:null,async:Fv,autoCapitalize:null,autoComplete:jv,autoFocus:Fv,autoPlay:Fv,blocking:jv,capture:null,charSet:null,checked:Fv,cite:null,className:jv,cols:Uv,colSpan:null,content:null,contentEditable:Hv,controls:Fv,controlsList:jv,coords:Uv|qv,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Fv,defer:Fv,dir:null,dirName:null,disabled:Fv,download:Bv,draggable:Hv,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Fv,formTarget:null,headers:jv,height:Uv,hidden:Fv,high:Uv,href:null,hrefLang:null,htmlFor:jv,httpEquiv:jv,id:null,imageSizes:null,imageSrcSet:null,inert:Fv,inputMode:null,integrity:null,is:null,isMap:Fv,itemId:null,itemProp:jv,itemRef:jv,itemScope:Fv,itemType:jv,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Fv,low:Uv,manifest:null,max:null,maxLength:Uv,media:null,method:null,min:null,minLength:Uv,multiple:Fv,muted:Fv,name:null,nonce:null,noModule:Fv,noValidate:Fv,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:Fv,optimum:Uv,pattern:null,ping:jv,placeholder:null,playsInline:Fv,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Fv,referrerPolicy:null,rel:jv,required:Fv,reversed:Fv,rows:Uv,rowSpan:Uv,sandbox:jv,scope:null,scoped:Fv,seamless:Fv,selected:Fv,shadowRootClonable:Fv,shadowRootDelegatesFocus:Fv,shadowRootMode:null,shape:null,size:Uv,sizes:null,slot:null,span:Uv,spellCheck:Hv,src:null,srcDoc:null,srcLang:null,srcSet:null,start:Uv,step:null,style:null,tabIndex:Uv,target:null,title:null,translate:null,type:null,typeMustMatch:Fv,useMap:null,value:Hv,width:Uv,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:jv,axis:null,background:null,bgColor:null,border:Uv,borderColor:null,bottomMargin:Uv,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Fv,declare:Fv,event:null,face:null,frame:null,frameBorder:null,hSpace:Uv,leftMargin:Uv,link:null,longDesc:null,lowSrc:null,marginHeight:Uv,marginWidth:Uv,noResize:Fv,noHref:Fv,noShade:Fv,noWrap:Fv,object:null,profile:null,prompt:null,rev:null,rightMargin:Uv,rules:null,scheme:null,scrolling:Hv,standby:null,summary:null,text:null,topMargin:Uv,valueType:null,version:null,vAlign:null,vLink:null,vSpace:Uv,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Fv,disableRemotePlayback:Fv,prefix:null,property:null,results:Uv,security:null,unselectable:null}}),ib=Yv({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},transform:Zv,properties:{about:zv,accentHeight:Uv,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:Uv,amplitude:Uv,arabicForm:null,ascent:Uv,attributeName:null,attributeType:null,azimuth:Uv,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:Uv,by:null,calcMode:null,capHeight:Uv,className:jv,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:Uv,diffuseConstant:Uv,direction:null,display:null,dur:null,divisor:Uv,dominantBaseline:null,download:Fv,dx:null,dy:null,edgeMode:null,editable:null,elevation:Uv,enableBackground:null,end:null,event:null,exponent:Uv,externalResourcesRequired:null,fill:null,fillOpacity:Uv,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:qv,g2:qv,glyphName:qv,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:Uv,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:Uv,horizOriginX:Uv,horizOriginY:Uv,id:null,ideographic:Uv,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:Uv,k:Uv,k1:Uv,k2:Uv,k3:Uv,k4:Uv,kernelMatrix:zv,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:Uv,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:Uv,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:Uv,overlineThickness:Uv,paintOrder:null,panose1:null,path:null,pathLength:Uv,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:jv,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:Uv,pointsAtY:Uv,pointsAtZ:Uv,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:zv,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:zv,rev:zv,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:zv,requiredFeatures:zv,requiredFonts:zv,requiredFormats:zv,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:Uv,specularExponent:Uv,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:Uv,strikethroughThickness:Uv,string:null,stroke:null,strokeDashArray:zv,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:Uv,strokeOpacity:Uv,strokeWidth:null,style:null,surfaceScale:Uv,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:zv,tabIndex:Uv,tableValues:null,target:null,targetX:Uv,targetY:Uv,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:zv,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:Uv,underlineThickness:Uv,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:Uv,values:null,vAlphabetic:Uv,vMathematical:Uv,vectorEffect:null,vHanging:Uv,vIdeographic:Uv,version:null,vertAdvY:Uv,vertOriginX:Uv,vertOriginY:Uv,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:Uv,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),ob=/^data[-\w.:]+$/i,ab=/-[a-z]/g,sb=/[A-Z]/g;function cb(e,t){const r=Lv(t);let n=t,i=Dv;if(r in e.normal)return e.property[e.normal[r]];if(r.length>4&&"data"===r.slice(0,4)&&ob.test(t)){if("-"===t.charAt(4)){const e=t.slice(5).replace(ab,ub);n="data"+e.charAt(0).toUpperCase()+e.slice(1)}else{const e=t.slice(4);if(!ab.test(e)){let r=e.replace(sb,lb);"-"!==r.charAt(0)&&(r="-"+r),t="data"+r}}i=Vv}return new i(n,t)}function lb(e){return"-"+e.toLowerCase()}function ub(e){return e.charAt(1).toUpperCase()}const hb=Iv([Jv,Xv,tb,rb,nb],"html"),pb=Iv([Jv,Xv,tb,rb,ib],"svg"),fb=/[#.]/g;function db(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function mb(e){const t=[],r=String(e||"");let n=r.indexOf(","),i=0,o=!1;for(;!o;){-1===n&&(n=r.length,o=!0);const e=r.slice(i,n).trim();!e&&o||t.push(e),i=n+1,n=r.indexOf(",",i)}return t}const gb=new Set(["menu","submit","reset","button"]),Eb={}.hasOwnProperty;function yb(e,t,r){const n=r&&function(e){const t={};let r=-1;for(;++r<e.length;)t[e[r].toLowerCase()]=e[r];return t}(r);return function(r,i,...o){let a,s=-1;if(null==r)a={type:"root",children:[]},o.unshift(i);else if(a=function(e,t){const r=e||"",n={};let i,o,a=0;for(;a<r.length;){fb.lastIndex=a;const e=fb.exec(r),t=r.slice(a,e?e.index:r.length);t&&(i?"#"===i?n.id=t:Array.isArray(n.className)?n.className.push(t):n.className=[t]:o=t,a+=t.length),e&&(i=e[0],a++)}return{type:"element",tagName:o||t||"div",properties:n,children:[]}}(r,t),a.tagName=a.tagName.toLowerCase(),n&&Eb.call(n,a.tagName)&&(a.tagName=n[a.tagName]),function(e,t){if(null==e||"object"!=typeof e||Array.isArray(e))return!1;if("input"===t||!e.type||"string"!=typeof e.type)return!0;if("children"in e&&Array.isArray(e.children))return!1;if("button"===t)return gb.has(e.type.toLowerCase());return!("value"in e)}(i,a.tagName)){let t;for(t in i)Eb.call(i,t)&&Tb(e,a.properties,t,i[t])}else o.unshift(i);for(;++s<o.length;)vb(a.children,o[s]);return"element"===a.type&&"template"===a.tagName&&(a.content={type:"root",children:a.children},a.children=[]),a}}function Tb(e,t,r,n){const i=cb(e,r);let o,a=-1;if(null!=n){if("number"==typeof n){if(Number.isNaN(n))return;o=n}else o="boolean"==typeof n?n:"string"==typeof n?i.spaceSeparated?db(n):i.commaSeparated?mb(n):i.commaOrSpaceSeparated?db(mb(n).join(" ")):bb(i,i.property,n):Array.isArray(n)?n.concat():"style"===i.property?function(e){const t=[];let r;for(r in e)Eb.call(e,r)&&t.push([r,e[r]].join(": "));return t.join("; ")}(n):String(n);if(Array.isArray(o)){const e=[];for(;++a<o.length;)e[a]=bb(i,i.property,o[a]);o=e}"className"===i.property&&Array.isArray(t.className)&&(o=t.className.concat(o)),t[i.property]=o}}function vb(e,t){let r=-1;if(null==t);else if("string"==typeof t||"number"==typeof t)e.push({type:"text",value:String(t)});else if(Array.isArray(t))for(;++r<t.length;)vb(e,t[r]);else{if("object"!=typeof t||!("type"in t))throw new Error("Expected node, nodes, or string, got `"+t+"`");"root"===t.type?vb(e,t.children):e.push(t)}}function bb(e,t,r){if("string"==typeof r){if(e.number&&r&&!Number.isNaN(Number(r)))return Number(r);if((e.boolean||e.overloadedBoolean)&&(""===r||Lv(r)===Lv(t)))return!0}return r}const _b=yb(hb,"div"),Ab=yb(pb,"g",["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","solidColor","textArea","textPath"]);const Sb="http://www.w3.org/2000/svg",kb={}.hasOwnProperty,Cb=Object.prototype;function xb(e,t){let r;switch(t.nodeName){case"#comment":{const n=t;return r={type:"comment",value:n.data},Ob(e,n,r),r}case"#document":case"#document-fragment":{const n=t,i="mode"in n&&("quirks"===n.mode||"limited-quirks"===n.mode);if(r={type:"root",children:wb(e,t.childNodes),data:{quirksMode:i}},e.file&&e.location){const t=String(e.file),n=function(e){const t=String(e),r=[],n=/\r?\n|\r/g;for(;n.test(t);)r.push(n.lastIndex);return r.push(t.length+1),{toPoint:function(e){let t=-1;if("number"==typeof e&&e>-1&&e<r[r.length-1])for(;++t<r.length;)if(r[t]>e)return{line:t+1,column:e-(t>0?r[t-1]:0)+1,offset:e};return{line:void 0,column:void 0,offset:void 0}},toOffset:function(e){const t=e&&e.line,n=e&&e.column;if("number"==typeof t&&"number"==typeof n&&!Number.isNaN(t)&&!Number.isNaN(n)&&t-1 in r){const e=(r[t-2]||0)+n-1||0;if(e>-1&&e<r[r.length-1])return e}return-1}}}(t),i=n.toPoint(0),o=n.toPoint(t.length);r.position={start:i,end:o}}return r}case"#documentType":return r={type:"doctype"},Ob(e,t,r),r;case"#text":{const n=t;return r={type:"text",value:n.value},Ob(e,n,r),r}default:return r=function(e,t){const r=e.schema;e.schema=t.namespaceURI===Sb?pb:hb;let n=-1;const i={};for(;++n<t.attrs.length;){const e=t.attrs[n],r=(e.prefix?e.prefix+":":"")+e.name;kb.call(Cb,r)||(i[r]=e.value)}const o="svg"===e.schema.space?Ab:_b,a=o(t.tagName,i,wb(e,t.childNodes));if(Ob(e,t,a),"template"===a.tagName){const r=t,n=r.sourceCodeLocation,i=n&&n.startTag&&Pb(n.startTag),o=n&&n.endTag&&Pb(n.endTag),s=xb(e,r.content);i&&o&&e.file&&(s.position={start:i.end,end:o.start}),a.content=s}return e.schema=r,a}(e,t),r}}function wb(e,t){let r=-1;const n=[];for(;++r<t.length;)n[r]=xb(e,t[r]);return n}function Ob(e,t,r){if("sourceCodeLocation"in t&&t.sourceCodeLocation&&e.file){const n=Nb(e,r,t.sourceCodeLocation);n&&(e.location=!0,r.position=n)}}function Nb(e,t,r){const n=Pb(r);if("element"===t.type){const i=t.children[t.children.length-1];if(n&&!r.endTag&&i&&i.position&&i.position.end&&(n.end=Object.assign({},i.position.end)),e.verbose){const n={};let i;if(r.attrs)for(i in r.attrs)kb.call(r.attrs,i)&&(n[cb(e.schema,i).property]=Pb(r.attrs[i]));t.data={position:{opening:Pb(r.startTag),closing:r.endTag?Pb(r.endTag):null,properties:n}}}}return n}function Pb(e){const t=Rb({line:e.startLine,column:e.startCol,offset:e.startOffset}),r=Rb({line:e.endLine,column:e.endCol,offset:e.endOffset});return t||r?{start:t,end:r}:void 0}function Rb(e){return e.line&&e.column?e:void 0}const Ib={abandonedHeadElementChild:{reason:"Unexpected metadata element after head",description:"Unexpected element after head. Expected the element before `</head>`",url:!1},abruptClosingOfEmptyComment:{reason:"Unexpected abruptly closed empty comment",description:"Unexpected `>` or `->`. Expected `--\x3e` to close comments"},abruptDoctypePublicIdentifier:{reason:"Unexpected abruptly closed public identifier",description:"Unexpected `>`. Expected a closing `\"` or `'` after the public identifier"},abruptDoctypeSystemIdentifier:{reason:"Unexpected abruptly closed system identifier",description:"Unexpected `>`. Expected a closing `\"` or `'` after the identifier identifier"},absenceOfDigitsInNumericCharacterReference:{reason:"Unexpected non-digit at start of numeric character reference",description:"Unexpected `%c`. Expected `[0-9]` for decimal references or `[0-9a-fA-F]` for hexadecimal references"},cdataInHtmlContent:{reason:"Unexpected CDATA section in HTML",description:"Unexpected `<![CDATA[` in HTML. Remove it, use a comment, or encode special characters instead"},characterReferenceOutsideUnicodeRange:{reason:"Unexpected too big numeric character reference",description:"Unexpectedly high character reference. Expected character references to be at most hexadecimal 10ffff (or decimal 1114111)"},closingOfElementWithOpenChildElements:{reason:"Unexpected closing tag with open child elements",description:"Unexpectedly closing tag. Expected other tags to be closed first",url:!1},controlCharacterInInputStream:{reason:"Unexpected control character",description:"Unexpected control character `%x`. Expected a non-control code point, 0x00, or ASCII whitespace"},controlCharacterReference:{reason:"Unexpected control character reference",description:"Unexpectedly control character in reference. Expected a non-control code point, 0x00, or ASCII whitespace"},disallowedContentInNoscriptInHead:{reason:"Disallowed content inside `<noscript>` in `<head>`",description:"Unexpected text character `%c`. Only use text in `<noscript>`s in `<body>`",url:!1},duplicateAttribute:{reason:"Unexpected duplicate attribute",description:"Unexpectedly double attribute. Expected attributes to occur only once"},endTagWithAttributes:{reason:"Unexpected attribute on closing tag",description:"Unexpected attribute. Expected `>` instead"},endTagWithTrailingSolidus:{reason:"Unexpected slash at end of closing tag",description:"Unexpected `%c-1`. Expected `>` instead"},endTagWithoutMatchingOpenElement:{reason:"Unexpected unopened end tag",description:"Unexpected end tag. Expected no end tag or another end tag",url:!1},eofBeforeTagName:{reason:"Unexpected end of file",description:"Unexpected end of file. Expected tag name instead"},eofInCdata:{reason:"Unexpected end of file in CDATA",description:"Unexpected end of file. Expected `]]>` to close the CDATA"},eofInComment:{reason:"Unexpected end of file in comment",description:"Unexpected end of file. Expected `--\x3e` to close the comment"},eofInDoctype:{reason:"Unexpected end of file in doctype",description:"Unexpected end of file. Expected a valid doctype (such as `<!doctype html>`)"},eofInElementThatCanContainOnlyText:{reason:"Unexpected end of file in element that can only contain text",description:"Unexpected end of file. Expected text or a closing tag",url:!1},eofInScriptHtmlCommentLikeText:{reason:"Unexpected end of file in comment inside script",description:"Unexpected end of file. Expected `--\x3e` to close the comment"},eofInTag:{reason:"Unexpected end of file in tag",description:"Unexpected end of file. Expected `>` to close the tag"},incorrectlyClosedComment:{reason:"Incorrectly closed comment",description:"Unexpected `%c-1`. Expected `--\x3e` to close the comment"},incorrectlyOpenedComment:{reason:"Incorrectly opened comment",description:"Unexpected `%c`. Expected `\x3c!--` to open the comment"},invalidCharacterSequenceAfterDoctypeName:{reason:"Invalid sequence after doctype name",description:"Unexpected sequence at `%c`. Expected `public` or `system`"},invalidFirstCharacterOfTagName:{reason:"Invalid first character in tag name",description:"Unexpected `%c`. Expected an ASCII letter instead"},misplacedDoctype:{reason:"Misplaced doctype",description:"Unexpected doctype. Expected doctype before head",url:!1},misplacedStartTagForHeadElement:{reason:"Misplaced `<head>` start tag",description:"Unexpected start tag `<head>`. Expected `<head>` directly after doctype",url:!1},missingAttributeValue:{reason:"Missing attribute value",description:"Unexpected `%c-1`. Expected an attribute value or no `%c-1` instead"},missingDoctype:{reason:"Missing doctype before other content",description:"Expected a `<!doctype html>` before anything else",url:!1},missingDoctypeName:{reason:"Missing doctype name",description:"Unexpected doctype end at `%c`. Expected `html` instead"},missingDoctypePublicIdentifier:{reason:"Missing public identifier in doctype",description:"Unexpected `%c`. Expected identifier for `public` instead"},missingDoctypeSystemIdentifier:{reason:"Missing system identifier in doctype",description:'Unexpected `%c`. Expected identifier for `system` instead (suggested: `"about:legacy-compat"`)'},missingEndTagName:{reason:"Missing name in end tag",description:"Unexpected `%c`. Expected an ASCII letter instead"},missingQuoteBeforeDoctypePublicIdentifier:{reason:"Missing quote before public identifier in doctype",description:"Unexpected `%c`. Expected `\"` or `'` instead"},missingQuoteBeforeDoctypeSystemIdentifier:{reason:"Missing quote before system identifier in doctype",description:"Unexpected `%c`. Expected `\"` or `'` instead"},missingSemicolonAfterCharacterReference:{reason:"Missing semicolon after character reference",description:"Unexpected `%c`. Expected `;` instead"},missingWhitespaceAfterDoctypePublicKeyword:{reason:"Missing whitespace after public identifier in doctype",description:"Unexpected `%c`. Expected ASCII whitespace instead"},missingWhitespaceAfterDoctypeSystemKeyword:{reason:"Missing whitespace after system identifier in doctype",description:"Unexpected `%c`. Expected ASCII whitespace instead"},missingWhitespaceBeforeDoctypeName:{reason:"Missing whitespace before doctype name",description:"Unexpected `%c`. Expected ASCII whitespace instead"},missingWhitespaceBetweenAttributes:{reason:"Missing whitespace between attributes",description:"Unexpected `%c`. Expected ASCII whitespace instead"},missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers:{reason:"Missing whitespace between public and system identifiers in doctype",description:"Unexpected `%c`. Expected ASCII whitespace instead"},nestedComment:{reason:"Unexpected nested comment",description:"Unexpected `\x3c!--`. Expected `--\x3e`"},nestedNoscriptInHead:{reason:"Unexpected nested `<noscript>` in `<head>`",description:"Unexpected `<noscript>`. Expected a closing tag or a meta element",url:!1},nonConformingDoctype:{reason:"Unexpected non-conforming doctype declaration",description:'Expected `<!doctype html>` or `<!doctype html system "about:legacy-compat">`',url:!1},nonVoidHtmlElementStartTagWithTrailingSolidus:{reason:"Unexpected trailing slash on start tag of non-void element",description:"Unexpected `/`. Expected `>` instead"},noncharacterCharacterReference:{reason:"Unexpected noncharacter code point referenced by character reference",description:"Unexpected code point. Do not use noncharacters in HTML"},noncharacterInInputStream:{reason:"Unexpected noncharacter character",description:"Unexpected code point `%x`. Do not use noncharacters in HTML"},nullCharacterReference:{reason:"Unexpected NULL character referenced by character reference",description:"Unexpected code point. Do not use NULL characters in HTML"},openElementsLeftAfterEof:{reason:"Unexpected end of file",description:"Unexpected end of file. Expected closing tag instead",url:!1},surrogateCharacterReference:{reason:"Unexpected surrogate character referenced by character reference",description:"Unexpected code point. Do not use lone surrogate characters in HTML"},surrogateInInputStream:{reason:"Unexpected surrogate character",description:"Unexpected code point `%x`. Do not use lone surrogate characters in HTML"},unexpectedCharacterAfterDoctypeSystemIdentifier:{reason:"Invalid character after system identifier in doctype",description:"Unexpected character at `%c`. Expected `>`"},unexpectedCharacterInAttributeName:{reason:"Unexpected character in attribute name",description:"Unexpected `%c`. Expected whitespace, `/`, `>`, `=`, or probably an ASCII letter"},unexpectedCharacterInUnquotedAttributeValue:{reason:"Unexpected character in unquoted attribute value",description:"Unexpected `%c`. Quote the attribute value to include it"},unexpectedEqualsSignBeforeAttributeName:{reason:"Unexpected equals sign before attribute name",description:"Unexpected `%c`. Add an attribute name before it"},unexpectedNullCharacter:{reason:"Unexpected NULL character",description:"Unexpected code point `%x`. Do not use NULL characters in HTML"},unexpectedQuestionMarkInsteadOfTagName:{reason:"Unexpected question mark instead of tag name",description:"Unexpected `%c`. Expected an ASCII letter instead"},unexpectedSolidusInTag:{reason:"Unexpected slash in tag",description:"Unexpected `%c-1`. Expected it followed by `>` or in a quoted attribute value"},unknownNamedCharacterReference:{reason:"Unexpected unknown named character reference",description:"Unexpected character reference. Expected known named character references"}},Lb="https://html.spec.whatwg.org/multipage/parsing.html#parse-error-",Db={2:!0,1:!1,0:null};function Mb(e){const t=this.data("settings"),r=Object.assign({},t,e);Object.assign(this,{Parser:function(e,t){const n=r.fragment?"parseFragment":"parse",i=r.emitParseErrors?function(n){const i=n.code,o=function(e){return e.replace(/-[a-z]/g,e=>e.charAt(1).toUpperCase())}(i),a=r[o],s=null==a||a,c="number"==typeof s?s:s?1:0,l={line:n.startLine,column:n.startCol,offset:n.startOffset},u={line:n.endLine,column:n.endCol,offset:n.endOffset};if(c){const e=Ib[o]||{reason:"",description:"",url:""},r=t.message(h(e.reason),{start:l,end:u});r.source="parse-error",r.ruleId=i,r.fatal=Db[c],r.note=h(e.description),r.url="url"in e&&!1===e.url?null:Lb+i}function h(t){return t.replace(/%c(?:-(\d+))?/g,(t,r)=>{const i=r?-Number.parseInt(r,10):0,o=e.charAt(n.startOffset+i);return"`"===o?"` ` `":o}).replace(/%x/g,()=>"0x"+e.charCodeAt(n.startOffset).toString(16).toUpperCase())}}:null;return function(e,t){const r=t||{};let n,i;return function(e){return"messages"in e}(r)?(i=r,n={}):(i=r.file||void 0,n=r),xb({schema:"svg"===n.space?pb:hb,file:i,verbose:n.verbose,location:!1},e)}(new Pv({sourceCodeLocationInfo:!0,onParseError:i,scriptingEnabled:!1})[n](e),{space:r.space,file:t,verbose:r.verbose})}})}const Fb=function(e,t,r,n,i){const o=Hb(t);if(null!=r&&("number"!=typeof r||r<0||r===Number.POSITIVE_INFINITY))throw new Error("Expected positive finite index for child node");if(!(null==n||n.type&&n.children))throw new Error("Expected parent node");if(!e||!e.type||"string"!=typeof e.type)return!1;if(null==n!=(null==r))throw new Error("Expected both parent and index");return o.call(i,e,r,n)},Hb=function(e){if(null==e)return Ub;if("string"==typeof e)return function(e){return t;function t(t){return Ub(t)&&t.tagName===e}}(e);if("object"==typeof e)return function(e){const t=[];let r=-1;for(;++r<e.length;)t[r]=Hb(e[r]);return Bb(n);function n(...e){let r=-1;for(;++r<t.length;)if(t[r].call(this,...e))return!0;return!1}}(e);if("function"==typeof e)return Bb(e);throw new Error("Expected function, string, or array as test")};function Bb(e){return function(t,...r){return Ub(t)&&Boolean(e.call(this,t,...r))}}function Ub(e){return Boolean(e&&"object"==typeof e&&"element"===e.type&&"string"==typeof e.tagName)}const jb=Hb(["audio","canvas","embed","iframe","img","math","object","picture","svg","video"]);const qb=["address","article","aside","blockquote","body","br","caption","center","col","colgroup","dd","dialog","dir","div","dl","dt","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","legend","li","li","listing","main","menu","nav","ol","optgroup","option","p","plaintext","pre","section","summary","table","tbody","td","td","tfoot","th","th","thead","tr","ul","wbr","xmp"],zb=["button","input","select","textarea"],Gb=["area","base","basefont","dialog","datalist","head","link","meta","noembed","noframes","param","rp","script","source","style","template","track","title"],Kb=ms(["doctype","comment"]);function $b(e={}){const t=function(e){return t;function t(t){return String(t).replace(/[\t\n\v\f\r ]+/g,e)}}(e.newlines?e_:t_);return e=>{Vb(e,{collapse:t,whitespace:"normal"})}}function Vb(e,t){if("children"in e){const r=Object.assign({},t);return("root"===e.type||Xb(e))&&(r.before=!0,r.after=!0),r.whitespace=function(e,t){if("tagName"in e&&e.properties)switch(e.tagName){case"listing":case"plaintext":case"script":case"style":case"xmp":return"pre";case"nobr":return"nowrap";case"pre":return e.properties.wrap?"pre-wrap":"pre";case"td":case"th":return e.properties.noWrap?"nowrap":t.whitespace;case"textarea":return"pre-wrap"}return t.whitespace}(e,t),function(e,t){let r=t.before;const n=t.after,i=e.children;let o=i.length,a=-1;for(;++a<o;){const e=Vb(i[a],Object.assign({},t,{before:r,after:Qb(i,a,n)}));e.remove?(i.splice(a,1),a--,o--):e.ignore||(r=e.stripAtStart),Yb(i[a])&&(r=!1)}return{remove:!1,ignore:!1,stripAtStart:Boolean(r||n)}}(e,r)}if("text"===e.type){if("normal"===t.whitespace)return function(e,t){const r=t.collapse(e.value),n={remove:!1,ignore:!1,stripAtStart:!1};let i=0,o=r.length;t.before&&Zb(r.charAt(0))&&i++;i!==o&&Zb(r.charAt(o-1))&&(t.after?o--:n.stripAtStart=!0);i===o?n.remove=!0:e.value=r.slice(i,o);return n}(e,t);"nowrap"===t.whitespace&&(e.value=t.collapse(e.value))}return{remove:!1,ignore:Kb(e),stripAtStart:!1}}function Qb(e,t,r){for(;++t<e.length;){const r=e[t];let n=Wb(r);if(void 0===n&&"children"in r&&!Jb(r)&&(n=Qb(r.children,-1)),"boolean"==typeof n)return n}return r}function Wb(e){if("element"===e.type){if(Yb(e))return!1;if(Xb(e))return!0}else if("text"===e.type){if(!function(e){const t=e&&"object"==typeof e&&"text"===e.type?e.value||"":e;return"string"==typeof t&&""===t.replace(/[ \t\n\f\r]/g,"")}(e))return!1}else if(!Kb(e))return!1}function Yb(e){return jb(e)||Fb(e,zb)}function Xb(e){return Fb(e,qb)}function Jb(e){return Boolean("properties"in e&&e.properties&&e.properties.hidden)||Kb(e)||Fb(e,Gb)}function Zb(e){return" "===e||"\n"===e}function e_(e){const t=/\r?\n|\r/.exec(e);return t?t[0]:" "}function t_(){return" "}function r_(e,t){const r=t.children||[],n=[];let i=-1;for(;++i<r.length;){const o=o_(e,r[i],t);Array.isArray(o)?n.push(...o):o&&n.push(o)}let o=0,a=n.length;for(;o<a&&"break"===n[o].type;)o++;for(;a>o&&"break"===n[a-1].type;)a--;return 0===o&&a===n.length?n:n.slice(o,a)}const n_={}.hasOwnProperty;function i_(e,t){return e.wrapText?t:t.replace(/\r?\n|\r/g," ")}function o_(e,t,r){let n;if("element"===t.type){if(t.properties&&"ignore"===t.properties.dataMdast)return;n_.call(e.handlers,t.tagName)&&(n=e.handlers[t.tagName])}else n_.call(e.handlers,t.type)&&(n=e.handlers[t.type]);return"function"==typeof n?n(e,t,r):function(e,t){if("string"==typeof t.value)return e(t,"text",i_(e,t.value));return r_(e,t)}(e,t)}const a_={}.hasOwnProperty;function s_(e,t){const r="string"==typeof t&&function(e){return Boolean(e&&"object"==typeof e&&"type"in e)}(e)&&"element"===e.type&&e.properties&&a_.call(e.properties,t)&&e.properties[t];return null!=r&&!1!==r}const c_=new Set(["pingback","prefetch","stylesheet"]);const l_=Hb(["a","abbr","area","b","bdi","bdo","br","button","cite","code","data","datalist","del","dfn","em","i","input","ins","kbd","keygen","label","map","mark","meter","noscript","output","progress","q","ruby","s","samp","script","select","small","span","strong","sub","sup","template","textarea","time","u","var","wbr"]),u_=Hb("meta");function h_(e){return Boolean(function(e){return e&&"object"==typeof e&&"type"in e}(e)&&("text"===e.type||l_(e)||jb(e)||function(e){if(!Fb(e,"link"))return!1;if(s_(e,"itemProp"))return!0;const t=(e.properties||{}).rel||[];let r=-1;if(!Array.isArray(t)||0===t.length)return!1;for(;++r<t.length;)if(!c_.has(String(t[r])))return!1;return!0}(e)||u_(e)&&s_(e,"itemProp")))}const p_=ms(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","link","linkReference","strong","text"]);function f_(e){return m_(e,function(e){const t=e[0];if(1===e.length&&"text"===t.type&&(" "===t.value||"\n"===t.value))return[];return{type:"paragraph",children:e}})}function d_(e){let t,r=-1;for(;++r<e.length;)if(t=e[r],!E_(t)||"children"in t&&d_(t.children))return!0;return!1}function m_(e,t,r){const n=r||y_,i=function(e){let t,r=[],n=-1;for(;++n<e.length;)t=e[n],"delete"!==t.type&&"link"!==t.type||!d_(t.children)?r.push(t):r=r.concat(g_(t));return r}(e);let o,a,s=[],c=-1;for(;++c<i.length;)a=i[c],E_(a)?(o||(o=[]),o.push(a)):(o&&(s=s.concat(t(o)),o=void 0),s=s.concat(n(a)));return o&&(s=s.concat(t(o))),s}function g_(e){return m_(e.children,function(t){const{children:r,...n}=e;return{...ai(!0,{},n),children:t}},function(t){if("children"in t&&"children"in e){const{children:r,...n}=e;return{...t,children:[{...ai(!0,{},n),children:t.children}]}}return{...t}})}function E_(e){return e.data&&e.data.hName?h_({type:"element",tagName:e.data.hName,properties:{},children:[]}):p_(e)}function y_(e){return e}function T_(e,t){return f_(r_(e,t))}function v_(e,t){return null==t?"":e.frozenBaseUrl?String(new URL(t,e.frozenBaseUrl)):t}const b_=function(e,t,r){const n=ms(r);if(!e||!e.type||!e.children)throw new Error("Expected parent node");if("number"==typeof t){if(t<0||t===Number.POSITIVE_INFINITY)throw new Error("Expected positive finite number as index")}else if((t=e.children.indexOf(t))<0)throw new Error("Expected child node or index");for(;++t<e.children.length;)if(n(e.children[t],t,e))return e.children[t];return null},__=/\n/g,A_=/[\t ]+/g,S_=Hb("br"),k_=Hb("p"),C_=Hb(["th","td"]),x_=Hb("tr"),w_=Hb(["datalist","head","noembed","noframes","noscript","rp","script","style","template","title",function(e){return Boolean((e.properties||{}).hidden)},function(e){return"dialog"===e.tagName&&!(e.properties||{}).open}]),O_=Hb(["address","article","aside","blockquote","body","caption","center","dd","dialog","dir","dl","dt","div","figure","figcaption","footer","form,","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","legend","listing","main","menu","nav","ol","p","plaintext","pre","section","ul","xmp"]);function N_(e,t={}){const r="children"in e?e.children:[],n=O_(e),i=L_(e,{whitespace:t.whitespace||"normal",breakBefore:!1,breakAfter:!1}),o=[];"text"!==e.type&&"comment"!==e.type||o.push(...R_(e,{whitespace:i,breakBefore:!0,breakAfter:!0}));let a=-1;for(;++a<r.length;)o.push(...P_(r[a],e,{whitespace:i,breakBefore:a?void 0:n,breakAfter:a<r.length-1?S_(r[a+1]):n}));const s=[];let c;for(a=-1;++a<o.length;){const e=o[a];"number"==typeof e?void 0!==c&&e>c&&(c=e):e&&(void 0!==c&&c>-1&&s.push("\n".repeat(c)||" "),c=-1,s.push(e))}return s.join("")}function P_(e,t,r){return"element"===e.type?function(e,t,r){const n=L_(e,r),i=e.children||[];let o,a,s=-1,c=[];if(w_(e))return c;S_(e)||x_(e)&&b_(t,e,x_)?a="\n":k_(e)?(o=2,a=2):O_(e)&&(o=1,a=1);for(;++s<i.length;)c=c.concat(P_(i[s],e,{whitespace:n,breakBefore:s?void 0:o,breakAfter:s<i.length-1?S_(i[s+1]):a}));C_(e)&&b_(t,e,C_)&&c.push("\t");o&&c.unshift(o);a&&c.push(a);return c}(e,t,r):"text"===e.type?"normal"===r.whitespace?R_(e,r):function(e){return[String(e.value)]}(e):[]}function R_(e,t){const r=String(e.value),n=[],i=[];let o=0;for(;o<=r.length;){__.lastIndex=o;const e=__.exec(r),i=e&&"index"in e?e.index:r.length;n.push(I_(r.slice(o,i).replace(/[\u061C\u200E\u200F\u202A-\u202E\u2066-\u2069]/g,""),0!==o||t.breakBefore,i!==r.length||t.breakAfter)),o=i+1}let a,s=-1;for(;++s<n.length;)8203===n[s].charCodeAt(n[s].length-1)||s<n.length-1&&8203===n[s+1].charCodeAt(0)?(i.push(n[s]),a=void 0):n[s]?("number"==typeof a&&i.push(a),i.push(n[s]),a=0):0!==s&&s!==n.length-1||i.push(0);return i}function I_(e,t,r){const n=[];let i,o=0;for(;o<e.length;){A_.lastIndex=o;const r=A_.exec(e);i=r?r.index:e.length,o||i||!r||t||n.push(""),o!==i&&n.push(e.slice(o,i)),o=r?i+r[0].length:i}return o===i||r||n.push(""),n.join(" ")}function L_(e,t){if("element"===e.type){const r=e.properties||{};switch(e.tagName){case"listing":case"plaintext":case"xmp":return"pre";case"nobr":return"nowrap";case"pre":return r.wrap?"pre-wrap":"pre";case"td":case"th":return r.noWrap?"nowrap":t.whitespace;case"textarea":return"pre-wrap"}}return t.whitespace}const D_="language-",M_=Hb("pre"),F_=Hb("code");function H_(e,t){const r=t.children;let n,i,o=-1;if(M_(t))for(;++o<r.length;){const e=r[o];if(F_(e)&&e.properties&&e.properties.className&&Array.isArray(e.properties.className)){n=e.properties.className;break}}if(n)for(o=-1;++o<n.length;)if(String(n[o]).slice(0,9)===D_){i=String(n[o]).slice(9);break}return e(t,"code",{lang:i||null,meta:null},function(e){const t=String(e);let r=t.length;for(;r>0;){const e=t.codePointAt(r-1);if(void 0===e||10!==e&&13!==e)break;r--}return t.slice(0,r)}(i_(e,N_(t))))}function B_(e,t){return e(t,"delete",r_(e,t))}function U_(e){let t=-1;if(e.length>1)for(;++t<e.length;)if(e[t].spread)return!0;return!1}function j_(e,t){const r=r_(e,t);let n=-1;for(;++n<r.length;){const e=r[n];"listItem"!==e.type&&(r[n]={type:"listItem",spread:!1,checked:null,children:[e]})}return r}const q_=Hb("div"),z_=Hb("dt"),G_=Hb("dd");function K_(e,t){const r=j_(e,{type:"element",tagName:"x",children:t});return 0===r.length?[]:1===r.length?r[0].children:[{type:"list",ordered:!1,start:null,spread:U_(r),children:r}]}function $_(e,t){return e(t,"emphasis",r_(e,t))}function V_(e,t){const r=Number(t.tagName.charAt(1))||1,n=e.wrapText;e.wrapText=!1;const i=e(t,"heading",{depth:r},r_(e,t));return e.wrapText=n,i}function Q_(e,t){const r=t.properties;return e(t,"image",{url:v_(e,String(r.src||"")||null),title:r.title||null,alt:r.alt||""})}function W_(e,t){return e(t,"inlineCode",i_(e,N_(t)))}const Y_=Hb("option");function X_(e,t,r){const n=r||t.properties;let i=J_(t);const o=Math.min(Number.parseInt(String(n.size),10),0)||(n.multiple?4:1);let a=-1;const s=[],c=[];for(;++a<i.length;)s_(i[a],"selected")&&s.push(i[a]);for(i=(s.length>0?s:i).slice(0,o),a=-1;++a<i.length;){const t=i[a],r=i_(e,N_(t)),n=t.properties,o=r||String(n.label||""),s=String(n.value||"")||r;c.push([s,o===s?null:o])}return c}function J_(e){const t=e.children;let r,n=-1,i=[];for(;++n<t.length;)r=t[n],Array.isArray(r.children)&&(i=i.concat(J_(r))),Y_(r)&&!s_(r,"disabled")&&i.push(r);return i}const Z_=Hb("datalist");const eA=Hb("p"),tA=Hb("input");function rA(e,t){const r=t.children[0];let n,i,o=null;eA(r)&&(n=r.children[0],tA(n)&&n.properties&&("checkbox"===n.properties.type||"radio"===n.properties.type)&&(o=Boolean(n.properties.checked),i={...t,children:[{...r,children:r.children.slice(1)},...t.children.slice(1)]}));const a=T_(e,i||t);return e(t,"listItem",{spread:a.length>1,checked:o},a)}const nA=Hb("ol");function iA(e,t){const r=nA(t),n=j_(e,t);let i=null;return r&&(i=s_(t,"start")?Number.parseInt(String(t.properties.start),10):1),e(t,"list",{ordered:r,start:i,spread:U_(n)},n)}const oA=Hb("source"),aA=Hb("video");function sA(e,t){let r=r_(e,t);const n=t.properties,i=aA(t)&&String(n.poster||"");let o,a=String(n.src||""),s=-1,c=!1;if(al({type:"root",children:r},"link",function(){return c=!0,vs}),c||d_(r))return r;for(;!a&&++s<t.children.length;)o=t.children[s],oA(o)&&(a=String(o.properties.src||""));return i&&(r=[{type:"image",title:null,url:v_(e,i),alt:Pi({children:r})}]),{type:"link",title:t.properties.title||null,url:v_(e,a),children:r}}function cA(e,t){const r=r_(e,t);if(r.length>0)return e(t,"paragraph",r)}function lA(e,t){return e(t,"strong",r_(e,t))}function uA(e,t){const r=e.wrapText;e.wrapText=!1;const n=e(t,"tableCell",r_(e,t));if(t.properties&&(t.properties.rowSpan||t.properties.colSpan)){const e=n.data||(n.data={});t.properties.rowSpan&&(e.rowSpan=t.properties.rowSpan),t.properties.colSpan&&(e.colSpan=t.properties.colSpan)}return e.wrapText=r,n}const hA=Hb("thead"),pA=Hb("tr"),fA=Hb(["th","td"]);function dA(e){const t=[];let r,n,i=-1;for(;++i<e.length;)r=e[i],"tableCell"===r.type?(n&&(r.children.unshift(...n),n=void 0),t.push(r)):(n||(n=[]),n.push(r));return n&&(r=t[t.length-1],r||(r={type:"tableCell",children:[]},t.push(r)),r.children.push(...n)),t}const mA={root:function(e,t){let r=r_(e,t);return(e.document||d_(r))&&(r=f_(r)),e(t,"root",r)},text:function(e,t){return e(t,"text",i_(e,t.value))},comment:function(e,t){return e(t,"html","\x3c!--"+i_(e,t.value)+"--\x3e")},doctype:gA,applet:gA,area:gA,basefont:gA,bgsound:gA,caption:gA,col:gA,colgroup:gA,command:gA,content:gA,datalist:gA,dialog:gA,element:gA,embed:gA,frame:gA,frameset:gA,isindex:gA,keygen:gA,link:gA,math:gA,menu:gA,menuitem:gA,meta:gA,nextid:gA,noembed:gA,noframes:gA,optgroup:gA,option:gA,param:gA,script:gA,shadow:gA,source:gA,spacer:gA,style:gA,svg:gA,template:gA,title:gA,track:gA,abbr:r_,acronym:r_,bdi:r_,bdo:r_,big:r_,blink:r_,button:r_,canvas:r_,cite:r_,data:r_,details:r_,dfn:r_,font:r_,ins:r_,label:r_,map:r_,marquee:r_,meter:r_,nobr:r_,noscript:r_,object:r_,output:r_,progress:r_,rb:r_,rbc:r_,rp:r_,rt:r_,rtc:r_,ruby:r_,slot:r_,small:r_,span:r_,sup:r_,sub:r_,tbody:r_,tfoot:r_,thead:r_,time:r_,address:T_,article:T_,aside:T_,body:T_,center:T_,div:T_,fieldset:T_,figcaption:T_,figure:T_,form:T_,footer:T_,header:T_,hgroup:T_,html:T_,legend:T_,main:T_,multicol:T_,nav:T_,picture:T_,section:T_,a:function(e,t){const r=t.properties;return e(t,"link",{title:r.title||null,url:v_(e,String(r.href||"")||null)},r_(e,t))},audio:sA,b:lA,base:function(e,t){e.baseFound||(e.frozenBaseUrl=String(t.properties&&t.properties.href||"")||null,e.baseFound=!0)},blockquote:function(e,t){return e(t,"blockquote",T_(e,t))},br:function(e,t){return e.wrapText?e(t,"break"):e(t,"text"," ")},code:W_,dir:iA,dl:function(e,t){const r=t.children;let n=-1,i=[];const o=[];let a,s,c={titles:[],definitions:[]};for(;++n<r.length;)a=r[n],i=i.concat(q_(a)?a.children:a);for(n=-1;++n<i.length;)a=i[n],z_(a)?(G_(i[n-1])&&(o.push(c),c={titles:[],definitions:[]}),c.titles.push(a)):c.definitions.push(a);o.push(c),n=-1;const l=[];for(;++n<o.length;)s=[...K_(e,o[n].titles),...K_(e,o[n].definitions)],s.length>0&&l.push({type:"listItem",spread:s.length>1,checked:null,children:s});if(l.length>0)return e(t,"list",{ordered:!1,start:null,spread:U_(l)},l)},dt:rA,dd:rA,del:B_,em:$_,h1:V_,h2:V_,h3:V_,h4:V_,h5:V_,h6:V_,hr:function(e,t){return e(t,"thematicBreak")},i:$_,iframe:function(e,t){const r=t.properties,n=String(r.src||""),i=String(r.title||"");if(n&&i)return{type:"link",title:null,url:v_(e,n),children:[{type:"text",value:i_(e,i)}]}},img:Q_,image:Q_,input:function(e,t){const r=t.properties;let n=String(r.value||r.placeholder||"");const i=[],o=[];let a,s=[],c=-1;if(!r.disabled&&"hidden"!==r.type&&"file"!==r.type){if("checkbox"===r.type||"radio"===r.type)return e(t,"text",i_(e,e[r.checked?"checked":"unchecked"]));if("image"===r.type)return r.alt||n?e(t,"image",{url:v_(e,String(r.src||"")||null),title:i_(e,String(r.title||""))||null,alt:i_(e,String(r.alt||n))}):[];if(n?s=[[n,null]]:"password"!==r.type&&"file"!==r.type&&"submit"!==r.type&&"reset"!==r.type&&"button"!==r.type&&r.list&&(a=String(r.list).toUpperCase(),n_.call(e.nodeById,a)&&Z_(e.nodeById[a])&&(s=X_(e,e.nodeById[a],r))),0!==s.length){if("password"===r.type&&(s[0]=["•".repeat(s[0][0].length),null]),"url"===r.type||"email"===r.type){for(;++c<s.length;)n=v_(e,s[c][0]),i.push(e(t,"link",{title:null,url:i_(e,"email"===r.type?"mailto:"+n:n)},[{type:"text",value:i_(e,s[c][1]||n)}])),c!==s.length-1&&i.push({type:"text",value:", "});return i}for(;++c<s.length;)o.push(s[c][1]?s[c][1]+" ("+s[c][0]+")":s[c][0]);return e(t,"text",i_(e,o.join(", ")))}}},kbd:W_,li:rA,listing:H_,mark:$_,ol:iA,p:cA,plaintext:H_,pre:H_,q:function(e,t){const r=e.quotes[e.qNesting%e.quotes.length];e.qNesting++;const n=r_(e,t);return e.qNesting--,n.unshift({type:"text",value:r.charAt(0)}),n.push({type:"text",value:r.length>1?r.charAt(1):r}),n},s:B_,samp:W_,select:function(e,t){const r=X_(e,t);let n=-1;const i=[];let o;for(;++n<r.length;)o=r[n],i.push(o[1]?o[1]+" ("+o[0]+")":o[0]);if(i.length>0)return e(t,"text",i_(e,i.join(", ")))},strike:B_,strong:lA,summary:cA,table:function(e,t){if(e.inTable)return e(t,"text",i_(e,N_(t)));e.inTable=!0;const{headless:r,align:n}=function(e){let t=!0,r=0,n=0;const i=[null];return al(e,"element",o=>{if("table"===o.tagName&&e!==o)return bs;fA(o)&&o.properties?(i[n]||(i[n]=String(o.properties.align||"")||null),t&&r<2&&"th"===o.tagName&&(t=!1),n++):hA(o)?t=!1:pA(o)&&(r++,n=0)}),{align:i,headless:t}}(t),i=function(e,t){let r=-1;const n=[];let i;t&&n.push({type:"tableRow",children:[]});for(;++r<e.length;){const t=e[r];"tableRow"===t.type?(i&&(t.children.unshift(...i),i=void 0),n.push(t)):(i||(i=[]),i.push(t))}i&&n[n.length-1].children.push(...i);r=-1;for(;++r<n.length;)n[r].children=dA(n[r].children);return n}(r_(e,t),r);let o=1,a=-1;for(;++a<i.length;){const e=i[a].children;let t=-1;for(;++t<e.length;){const r=e[t];if(r.data){const e=Number.parseInt(String(r.data.colSpan),10)||1,n=Number.parseInt(String(r.data.rowSpan),10)||1;if(e>1||n>1){let r=a-1;for(;++r<a+n;){let n=t-1;for(;++n<t+e&&i[r];){const e=[];r===a&&n===t||e.push({type:"tableCell",children:[]}),i[r].children.splice(n,0,...e)}}}"colSpan"in r.data&&delete r.data.colSpan,"rowSpan"in r.data&&delete r.data.rowSpan,0===Object.keys(r.data).length&&delete r.data}}e.length>o&&(o=e.length)}for(a=-1;++a<i.length;){const e=i[a].children;let t=e.length-1;for(;++t<o;)e.push({type:"tableCell",children:[]})}let s=n.length-1;for(;++s<o;)n.push(null);return e.inTable=!1,e(t,"table",{align:n},i)},td:uA,textarea:function(e,t){return e(t,"text",i_(e,N_(t)))},th:uA,tr:function(e,t){return e(t,"tableRow",r_(e,t))},tt:W_,u:$_,ul:iA,var:W_,video:sA,wbr:function(e,t){return e(t,"text","")},xmp:H_};function gA(){}const EA=ms(["heading","paragraph","root"]);function yA(e,t={}){const r={};let n;const i=Object.assign((e,t,r,n)=>{let i;"string"==typeof r||Array.isArray(r)?(n=r,i={}):i=r;const o={type:t,...i};return"string"==typeof n?o.value=n:n&&(o.children=n),e.position&&(o.position=e.position),o},{nodeById:r,baseFound:!1,inTable:!1,wrapText:!0,frozenBaseUrl:null,qNesting:0,handlers:t.handlers?{...mA,...t.handlers}:mA,document:t.document,checked:t.checked||"[x]",unchecked:t.unchecked||"[ ]",quotes:t.quotes||['"']});al(e,"element",e=>{const t=e.properties&&"id"in e.properties&&String(e.properties.id).toUpperCase();t&&!n_.call(r,t)&&(r[t]=e)}),$b({newlines:!0===t.newlines})(e);const o=o_(i,e,void 0);return n=o?Array.isArray(o)?{type:"root",children:o}:o:{type:"root",children:[]},al(n,"text",function(e,t,r){if(null===t||!r)return;const n=r.children[t-1];if(n&&n.type===e.type)return n.value+=e.value,r.children.splice(t,1),n.position&&e.position&&(n.position.end=e.position.end),t-1;e.value=e.value.replace(/[\t ]*(\r?\n|\r)[\t ]*/,"$1"),r&&EA(r)&&(t||(e.value=e.value.replace(/^[\t ]+/,"")),t===r.children.length-1&&(e.value=e.value.replace(/[\t ]+$/,"")));if(!e.value)return r.children.splice(t,1),t}),n}var TA=function(e,t){let r,n;return"function"==typeof e?(n=e,r=t||{}):r=e||{},void 0!==r.document&&null!==r.document||(r=Object.assign({},r,{document:!0})),n?function(e,t){return(r,n,i)=>{e.run(yA(r,t),n,e=>{i(e)})}}(n,r):function(e={}){return t=>yA(t,e)}(r)};function vA(e,t){let r,n=-1;if(t.extensions)for(;++n<t.extensions.length;)vA(e,t.extensions[n]);for(r in t)"extensions"===r||("unsafe"===r||"join"===r?e[r]=[...e[r]||[],...t[r]||[]]:"handlers"===r?e[r]=Object.assign(e[r],t[r]||{}):e.options[r]=t[r]);return e}function bA(e,t,r,n){let i=-1;for(;++i<r.unsafe.length;)if("\n"===r.unsafe[i].character&&js(r.stack,r.unsafe[i]))return/[ \t]/.test(n.before)?"":" ";return"\\\n"}function _A(e,t){return Boolean(!t.options.fences&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function AA(e,t,r){return(r?"":" ")+e}function SA(e,t,r,n){const i=function(e){const t=e.options.emphasis||"*";if("*"!==t&&"_"!==t)throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}(r),o=r.enter("emphasis"),a=r.createTracker(n);let s=a.move(i);return s+=a.move(r.containerPhrasing(e,{before:s,after:i,...a.current()})),s+=a.move(i),o(),s}function kA(e){return e.value||""}function CA(e,t,r,n){const i=e.referenceType,o=r.enter("imageReference");let a=r.enter("label");const s=r.createTracker(n);let c=s.move("![");const l=r.safe(e.alt,{before:c,after:"]",...s.current()});c+=s.move(l+"]["),a();const u=r.stack;r.stack=[],a=r.enter("reference");const h=r.safe(r.associationId(e),{before:c,after:"]",...s.current()});return a(),r.stack=u,o(),"full"!==i&&l&&l===h?"shortcut"===i?c=c.slice(0,-1):c+=s.move("]"):c+=s.move(h+"]"),c}function xA(e,t){const r=Pi(e);return Boolean(!t.options.resourceLink&&e.url&&!e.title&&e.children&&1===e.children.length&&"text"===e.children[0].type&&(r===e.url||"mailto:"+r===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}function wA(e,t,r,n){const i=Vc(r),o='"'===i?"Quote":"Apostrophe",a=r.createTracker(n);let s,c;if(xA(e,r)){const t=r.stack;r.stack=[],s=r.enter("autolink");let n=a.move("<");return n+=a.move(r.containerPhrasing(e,{before:n,after:">",...a.current()})),n+=a.move(">"),s(),r.stack=t,n}s=r.enter("link"),c=r.enter("label");let l=a.move("[");return l+=a.move(r.containerPhrasing(e,{before:l,after:"](",...a.current()})),l+=a.move("]("),c(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(c=r.enter("destinationLiteral"),l+=a.move("<"),l+=a.move(r.safe(e.url,{before:l,after:">",...a.current()})),l+=a.move(">")):(c=r.enter("destinationRaw"),l+=a.move(r.safe(e.url,{before:l,after:e.title?" ":")",...a.current()}))),c(),e.title&&(c=r.enter(`title${o}`),l+=a.move(" "+i),l+=a.move(r.safe(e.title,{before:l,after:i,...a.current()})),l+=a.move(i),c()),l+=a.move(")"),s(),l}function OA(e,t,r,n){const i=e.referenceType,o=r.enter("linkReference");let a=r.enter("label");const s=r.createTracker(n);let c=s.move("[");const l=r.containerPhrasing(e,{before:c,after:"]",...s.current()});c+=s.move(l+"]["),a();const u=r.stack;r.stack=[],a=r.enter("reference");const h=r.safe(r.associationId(e),{before:c,after:"]",...s.current()});return a(),r.stack=u,o(),"full"!==i&&l&&l===h?"shortcut"===i?c=c.slice(0,-1):c+=s.move("]"):c+=s.move(h+"]"),c}function NA(e){const t=e.options.bulletOrdered||".";if("."!==t&&")"!==t)throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}function PA(e){const t=e.options.rule||"*";if("*"!==t&&"-"!==t&&"_"!==t)throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}function RA(e,t,r,n){const i=function(e){const t=e.options.strong||"*";if("*"!==t&&"_"!==t)throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}(r),o=r.enter("strong"),a=r.createTracker(n);let s=a.move(i+i);return s+=a.move(r.containerPhrasing(e,{before:s,after:i,...a.current()})),s+=a.move(i+i),o(),s}SA.peek=function(e,t,r){return r.options.emphasis||"*"},kA.peek=function(){return"<"},CA.peek=function(){return"!"},wA.peek=function(e,t,r){return xA(e,r)?"<":"["},OA.peek=function(){return"["},RA.peek=function(e,t,r){return r.options.strong||"*"};const IA={blockquote:dl,break:bA,code:function(e,t,r,n){const i=function(e){const t=e.options.fence||"`";if("`"!==t&&"~"!==t)throw new Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}(r),o=e.value||"",a="`"===i?"GraveAccent":"Tilde";if(_A(e,r)){const e=r.enter("codeIndented"),t=r.indentLines(o,AA);return e(),t}const s=r.createTracker(n),c=i.repeat(Math.max(function(e,t){const r=String(e);let n=r.indexOf(t),i=n,o=0,a=0;if("string"!=typeof t)throw new TypeError("Expected substring");for(;-1!==n;)n===i?++o>a&&(a=o):o=1,i=n+t.length,n=r.indexOf(t,i);return a}(o,i)+1,3)),l=r.enter("codeFenced");let u=s.move(c);if(e.lang){const t=r.enter(`codeFencedLang${a}`);u+=s.move(r.safe(e.lang,{before:u,after:" ",encode:["`"],...s.current()})),t()}if(e.lang&&e.meta){const t=r.enter(`codeFencedMeta${a}`);u+=s.move(" "),u+=s.move(r.safe(e.meta,{before:u,after:"\n",encode:["`"],...s.current()})),t()}return u+=s.move("\n"),o&&(u+=s.move(o+"\n")),u+=s.move(c),l(),u},definition:function(e,t,r,n){const i=Vc(r),o='"'===i?"Quote":"Apostrophe",a=r.enter("definition");let s=r.enter("label");const c=r.createTracker(n);let l=c.move("[");return l+=c.move(r.safe(r.associationId(e),{before:l,after:"]",...c.current()})),l+=c.move("]: "),s(),!e.url||/[\0- \u007F]/.test(e.url)?(s=r.enter("destinationLiteral"),l+=c.move("<"),l+=c.move(r.safe(e.url,{before:l,after:">",...c.current()})),l+=c.move(">")):(s=r.enter("destinationRaw"),l+=c.move(r.safe(e.url,{before:l,after:e.title?" ":"\n",...c.current()}))),s(),e.title&&(s=r.enter(`title${o}`),l+=c.move(" "+i),l+=c.move(r.safe(e.title,{before:l,after:i,...c.current()})),l+=c.move(i),s()),a(),l},emphasis:SA,hardBreak:bA,heading:hl,html:kA,image:Qc,imageReference:CA,inlineCode:cc,link:wA,linkReference:OA,list:function(e,t,r,n){const i=r.enter("list"),o=r.bulletCurrent;let a=e.ordered?NA(r):Ec(r);const s=e.ordered?function(e){const t=NA(e),r=e.options.bulletOrderedOther;if(!r)return"."===t?")":".";if("."!==r&&")"!==r)throw new Error("Cannot serialize items with `"+r+"` for `options.bulletOrderedOther`, expected `*`, `+`, or `-`");if(r===t)throw new Error("Expected `bulletOrdered` (`"+t+"`) and `bulletOrderedOther` (`"+r+"`) to be different");return r}(r):function(e){const t=Ec(e),r=e.options.bulletOther;if(!r)return"*"===t?"-":"*";if("*"!==r&&"+"!==r&&"-"!==r)throw new Error("Cannot serialize items with `"+r+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(r===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+r+"`) to be different");return r}(r),c=r.bulletLastUsed;let l=!1;if(t&&(e.ordered?r.options.bulletOrderedOther:r.options.bulletOther)&&c&&a===c&&(l=!0),!e.ordered){const t=e.children?e.children[0]:void 0;if("*"!==a&&"-"!==a||!t||t.children&&t.children[0]||"list"!==r.stack[r.stack.length-1]||"listItem"!==r.stack[r.stack.length-2]||"list"!==r.stack[r.stack.length-3]||"listItem"!==r.stack[r.stack.length-4]||0!==r.indexStack[r.indexStack.length-1]||0!==r.indexStack[r.indexStack.length-2]||0!==r.indexStack[r.indexStack.length-3]||(l=!0),PA(r)===a&&t){let t=-1;for(;++t<e.children.length;){const r=e.children[t];if(r&&"listItem"===r.type&&r.children&&r.children[0]&&"thematicBreak"===r.children[0].type){l=!0;break}}}}l&&(a=s),r.bulletCurrent=a;const u=r.containerFlow(e,n);return r.bulletLastUsed=a,r.bulletCurrent=o,i(),u},listItem:yc,paragraph:cl,root:function(e,t,r,n){return(e.children.some(e=>p_(e))?r.containerPhrasing:r.containerFlow).call(r,e,n)},strong:RA,text:function(e,t,r,n){return r.safe(e.value,n)},thematicBreak:function(e,t,r){const n=(PA(r)+(r.options.ruleSpaces?" ":"")).repeat(function(e){const t=e.options.ruleRepetition||3;if(t<3)throw new Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}(r));return r.options.ruleSpaces?n.slice(0,-1):n}},LA=[function(e,t,r,n){if("code"===t.type&&_A(t,n)&&("list"===e.type||e.type===t.type&&_A(e,n)))return!1;if("list"===e.type&&e.type===t.type&&Boolean(e.ordered)===Boolean(t.ordered)&&!(e.ordered?n.options.bulletOrderedOther:n.options.bulletOther))return!1;if("spread"in r&&"boolean"==typeof r.spread){if("paragraph"===e.type&&(e.type===t.type||"definition"===t.type||"heading"===t.type&&ul(t,n)))return;return r.spread?1:0}}];const DA=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"],MA=[{character:"\t",after:"[\\r\\n]",inConstruct:"phrasing"},{character:"\t",before:"[\\r\\n]",inConstruct:"phrasing"},{character:"\t",inConstruct:["codeFencedLangGraveAccent","codeFencedLangTilde"]},{character:"\r",inConstruct:["codeFencedLangGraveAccent","codeFencedLangTilde","codeFencedMetaGraveAccent","codeFencedMetaTilde","destinationLiteral","headingAtx"]},{character:"\n",inConstruct:["codeFencedLangGraveAccent","codeFencedLangTilde","codeFencedMetaGraveAccent","codeFencedMetaTilde","destinationLiteral","headingAtx"]},{character:" ",after:"[\\r\\n]",inConstruct:"phrasing"},{character:" ",before:"[\\r\\n]",inConstruct:"phrasing"},{character:" ",inConstruct:["codeFencedLangGraveAccent","codeFencedLangTilde"]},{character:"!",after:"\\[",inConstruct:"phrasing",notInConstruct:DA},{character:'"',inConstruct:"titleQuote"},{atBreak:!0,character:"#"},{character:"#",inConstruct:"headingAtx",after:"(?:[\r\n]|$)"},{character:"&",after:"[#A-Za-z]",inConstruct:"phrasing"},{character:"'",inConstruct:"titleApostrophe"},{character:"(",inConstruct:"destinationRaw"},{before:"\\]",character:"(",inConstruct:"phrasing",notInConstruct:DA},{atBreak:!0,before:"\\d+",character:")"},{character:")",inConstruct:"destinationRaw"},{atBreak:!0,character:"*",after:"(?:[ \t\r\n*])"},{character:"*",inConstruct:"phrasing",notInConstruct:DA},{atBreak:!0,character:"+",after:"(?:[ \t\r\n])"},{atBreak:!0,character:"-",after:"(?:[ \t\r\n-])"},{atBreak:!0,before:"\\d+",character:".",after:"(?:[ \t\r\n]|$)"},{atBreak:!0,character:"<",after:"[!/?A-Za-z]"},{character:"<",after:"[!/?A-Za-z]",inConstruct:"phrasing",notInConstruct:DA},{character:"<",inConstruct:"destinationLiteral"},{atBreak:!0,character:"="},{atBreak:!0,character:">"},{character:">",inConstruct:"destinationLiteral"},{atBreak:!0,character:"["},{character:"[",inConstruct:"phrasing",notInConstruct:DA},{character:"[",inConstruct:["label","reference"]},{character:"\\",after:"[\\r\\n]",inConstruct:"phrasing"},{character:"]",inConstruct:["label","reference"]},{atBreak:!0,character:"_"},{character:"_",inConstruct:"phrasing",notInConstruct:DA},{atBreak:!0,character:"`"},{character:"`",inConstruct:["codeFencedLangGraveAccent","codeFencedMetaGraveAccent"]},{character:"`",inConstruct:"phrasing",notInConstruct:DA},{atBreak:!0,character:"~"}];function FA(e){throw new Error("Cannot handle value `"+e+"`, expected node")}function HA(e){throw new Error("Cannot handle unknown node `"+e.type+"`")}function BA(e,t){if("definition"===e.type&&e.type===t.type)return 0}function UA(e,t){return ic(e,this,t)}function jA(e,t){return Ms(e,this,t)}function qA(e,t){return zs(this,e,t)}function zA(e){Object.assign(this,{Compiler:t=>{const r=this.data("settings");return function(e,t={}){const r={enter:function(e){return r.stack.push(e),function(){r.stack.pop()}},indentLines:Bs,associationId:Ds,containerPhrasing:UA,containerFlow:jA,createTracker:$s,safe:qA,stack:[],unsafe:[],join:[],handlers:{},options:{},indexStack:[],handle:void 0};vA(r,{unsafe:MA,join:LA,handlers:IA}),vA(r,t),r.options.tightDefinitions&&vA(r,{join:[BA]}),r.handle=In("type",{invalid:FA,unknown:HA,handlers:r.handlers});let n=r.handle(e,void 0,r,{before:"\n",after:"\n",now:{line:1,column:1},lineShift:0});return n&&10!==n.charCodeAt(n.length-1)&&13!==n.charCodeAt(n.length-1)&&(n+="\n"),n}(t,Object.assign({},r,e,{extensions:this.data("toMarkdownExtensions")||[]}))}})}class GA{source;dir;destFS;contentFS;filenames=new Map;images=new Map;constructor(e,t,r){this.source=e,this.dir=t,this.destFS=new kf(r);const n=D.default.dirSync({unsafeCleanup:!0}).name;this.contentFS=new kf(n)}toMarkdown(e,t){const r=vi().use(Mb).use(_c).use(TA,{handlers:{card:function(){}}}).use(zA,{bullet:"*",listItemIndent:"one",fences:!0,handlers:{html:e=>{const t=e.value;return t.startsWith("\x3c!--")?"":t||""},image:({...e},r,n,i)=>{if(!e.url.startsWith("data:")){let r=M.default.extname(e.url);r&&[".jpg",".jpeg",".png",".gif",".bmp",".svg",".webp"].includes(r)||(r=".png");const n=new URL(e.url,t).toString(),i=pe.md5(n)+r;this.images.set(i,n),e.url=this.dir?`../.topwrite/assets/${this.dir}/${i}`:`.topwrite/assets/${i}`}return IA.image(e,r,n,i)},link:({...e},r,n,i)=>{if(!e.url.startsWith("http")){const r=a.parse(e.url).pathname;if(r){const n=new URL(r,t).toString();this.filenames.has(n)&&(e.url=this.filenames.get(n))}}return IA.link(e,r,n,i)}}});return r.processSync(e).toString()}async downloadImages(){await Ff(Array.from(this.images),async([e,t],r)=>{try{le.info(`fetch images (${r+1}/${this.images.size})`);const n=await pe.request.get(t,{responseType:"stream",timeout:5e3}),i=this.dir?`.topwrite/assets/${this.dir}/${e}`:`.topwrite/assets/${e}`,o=this.contentFS.createWriteStream(i);return new Promise((e,t)=>{n.data.pipe(o),o.on("error",e=>{o.close(),t(e)}),o.on("close",()=>{e()})})}catch(e){le.debug(e.message)}},{concurrency:3})}}class KA{async prepareContentPage(e,t){t&&await e.goto(t)}}class $A extends KA{async getArticles(e){return await e.addScriptTag({content:wf.toString()}),e.evaluate(async()=>{const e=document.querySelector("aside nav>ul");if(e){const t=async e=>{const r=e.querySelectorAll("&>li"),n=[];for(const e of Array.from(r)){const r=e.querySelector("a");if(r){let i=[];if(r.className.includes("menu__link--sublist")){r.click();try{const r=await wf(()=>{const t=e.querySelector("&>ul");if(!t)throw new Error("render html timeout");return t},{stopAfter:5e3,tryEvery:200});i=await t(r)}catch(e){console.log(e.message)}}n.push({title:r.textContent?.trim()||"未命名",url:r.getAttribute("href")||"#",children:i})}}return n};return await t(e)}return[]})}async getContent(e){const t=await e.$("article .markdown");if(t)return await t.evaluate(e=>(e.querySelectorAll("a.hash-link").forEach(e=>{e.remove()}),e.innerHTML))}}class VA extends KA{async getArticles(e){return e.evaluate(async()=>{const e=document.querySelectorAll("aside nav .group"),t=await Promise.all(Array.from(e).map(async e=>{const t=async e=>{const r=e.querySelectorAll("&>.VPSidebarItem"),n=[];for(const e of Array.from(r)){const r=e.querySelector("&>.item");if(r){let i=[];const o=e.querySelector("&>.items");o&&(i=await t(o)),n.push({title:r.querySelector(".text")?.textContent||"未命名",url:r.querySelector(".VPLink")?.getAttribute("href")||"#",children:i})}}return n};return await t(e)}));return t.flat()})}async getContent(e){const t=await e.$(".VPContent main");if(t)return await t.evaluate(e=>(e.querySelectorAll("a.header-anchor").forEach(e=>e.remove()),e.querySelectorAll(".vp-doc [class*=language-]>span.lang").forEach(e=>e.remove()),e.innerHTML))}}class QA extends KA{async getArticles(e){const t=await e.waitForSelector("aside .sidebar-nav>ul");return t?t.evaluate(async e=>{const t=async e=>{const r=e.querySelectorAll("&>li"),n=[];for(const e of Array.from(r)){let r=e.firstChild;if(r){let i="#";if(r instanceof HTMLElement&&(r=r.querySelector("&>a")||r,r instanceof HTMLElement)){if(r.className.includes("section-link"))continue;i=r.getAttribute("href")||i}let o=[];const a=e.querySelector("&>ul");a&&(o=await t(a)),n.push({title:r.textContent||"未命名",url:i,children:o})}}return n};return await t(e)}):[]}async getContent(e){return await e.reload(),await e.waitForSelector("section.content article.markdown-section>*"),e.evaluate(()=>{const e=document.querySelector("section.content article.markdown-section");if(e){const t=e.firstElementChild;"P"===t?.tagName&&t.remove();return e.querySelectorAll("a.anchor").forEach(e=>{e.replaceWith(...Array.from(e.children))}),e.innerHTML}})}}class WA extends KA{getArticles(e){return e.evaluate(()=>{const e=document.querySelector("aside ul");if(e){const t=e=>{const r=e.querySelectorAll("&>li"),n=[];for(const e of Array.from(r)){let r=e.firstElementChild;if(r){r=r.querySelector("a")||r;let i=[];const o=e.querySelector("ul");o&&(i=t(o)),n.push({title:r.textContent?.trim()||"未命名",url:r.getAttribute("href")||"#",children:i})}}return n};return t(e)}return[]})}getContent(e){return e.evaluate(()=>{const e=document.querySelector("main header")?.nextElementSibling;if(e){return e.querySelectorAll(".opacity-0").forEach(e=>{e.remove()}),e.innerHTML}})}}class YA extends KA{async getArticles(e){return e.evaluate(()=>{const e=window.appData;if("book"in e){const{toc:t,slug:r}=e.book,{login:n}=e.group,i={},o=[];t.forEach(e=>{"LINK"!==e.type&&(i[e.uuid]={...e,children:[]})}),t.forEach(e=>{const t=i[e.uuid];t&&(e.parent_uuid?i[e.parent_uuid]&&i[e.parent_uuid].children.push(t):o.push(t))});const a=e=>e.map(e=>({title:e.title,url:e.url?`/${n}/${r}/${e.url}`:"",children:a(e.children)}));return a(o)}return[]})}async prepareContentPage(e,t){t?e.goto(t):await e.goto("about:blank")}async getContent(e){const t=await e.waitForResponse(e=>e.url().startsWith("https://www.yuque.com/api/docs"));if(200===t.status()){return(await t.json()).data.content}}}const XA=/[\u0000-\u001F\u0080-\u009F]/g,JA=/^\.+(\\|\/)|^\.+$/,ZA=/\.+$/;function eS(e,t={}){if("string"!=typeof e)throw new TypeError("Expected a string");const r=void 0===t.replacement?"!":t.replacement;if(/[<>:"/\\|?*\u0000-\u001F]/g.test(r)&&XA.test(r))throw new Error("Replacement string cannot contain reserved filename characters");if(e=(e=(e=(e=(e=e.normalize("NFD")).replace(JA,r)).replace(/[<>:"/\\|?*\u0000-\u001F]/g,r)).replace(XA,r)).replace(ZA,""),r.length>0){const t="."===e[0];e=function(e,t){if("string"!=typeof e||"string"!=typeof t)throw new TypeError("Expected a string");const r=new RegExp(`(?:${ds(t)}){2,}`,"g");return e.replace(r,t)}(e,r),e=e.length>1?function(e,t){if("string"!=typeof e||"string"!=typeof t)throw new TypeError("Expected a string");return e.startsWith(t)&&(e=e.slice(t.length)),e.endsWith(t)&&(e=e.slice(0,-t.length)),e}(e,r):e,t||"."!==e[0]||(e=r+e),"."===e[e.length-1]&&(e+=r)}e=/^(con|prn|aux|nul|com\d|lpt\d)$/i.test(e)?e+r:e;const n="number"==typeof t.maxLength?t.maxLength:100;if(e.length>n){const t=e.lastIndexOf(".");if(-1===t)e=e.slice(0,n);else{const r=e.slice(0,t),i=e.slice(t);e=r.slice(0,Math.max(1,n-i.length))+i}}return e}const tS={website:class extends GA{current=1;async convert(){le.info("initializing...");const e=await se.default.launch({headless:!0,executablePath:process.env.PUPPETEER_EXECUTABLE_PATH,args:["--no-sandbox"],defaultViewport:{width:1920,height:1080}});try{const t=await e.newPage();await t.setRequestInterception(!0),t.on("request",e=>{"image"===e.resourceType()?e.abort():e.continue()}),t.on("console",e=>le.debug(e.text())),le.info("detect articles..."),await t.goto(new URL(this.source.url).toString());const r=await t.evaluate(()=>{const e=document.querySelector("meta[name=generator]");return e?e.getAttribute("content"):"Docsify"in window?"Docsify":"www.yuque.com"===document.location.host?"LakeBook":null});let n;switch(!0){case r?.startsWith("Docusaurus"):n=new $A;break;case r?.startsWith("VitePress"):n=new VA;break;case r?.startsWith("Docsify"):n=new QA;break;case r?.startsWith("GitBook"):n=new WA;break;case r?.startsWith("LakeBook"):n=new YA;break;default:throw new Error("Unsupported website")}const i=await n.getArticles(t);this.generateFilenames(i),await n.prepareContentPage(t);const o=await this.buildFiles(t,i,n);await this.downloadImages(),le.info("archiving...");const a=Y.default.createWriteStream(this.destFS.resolve("files.tar.gz"));await this.contentFS.archive(a),await this.destFS.writeFile("summary.json",JSON.stringify(o)),le.info("done.")}finally{await e.close()}}generateFilenames(e){for(const t of e){if(t.url&&"#"!==t.url&&!t.url.startsWith("http")){const e=eS(t.title);let r=e+".md",n=1;for(;!r||Object.values(this.filenames).includes(r);)r=e+"_"+n+".md",n++;t.url=new URL(t.url,this.source.url).toString(),this.filenames.set(t.url,r)}this.generateFilenames(t.children)}}async buildFiles(e,t,r){const n=[];for(const i of t){const t={title:i.title,ref:"",children:[]},o=this.filenames.get(i.url);if(o){le.info(`fetch articles (${this.current++}/${this.filenames.size})`),await r.prepareContentPage(e,i.url);const n=await r.getContent(e);if(n){const e=this.toMarkdown(n,i.url),r=M.default.join(this.dir,o);await this.contentFS.writeFile(r,e),t.ref=r}}i.children.length>0&&(t.children=await this.buildFiles(e,i.children,r)),n.push(t)}return n}}};const rS=require("../package.json"),nS=new e.Command;nS.version(rS.version),nS.name("ttx"),nS.option("-d, --debug","output extra debugging"),nS.on("option:debug",function(){le.level=n.LogLevel.Debug}),nS.command("build <dir> <format> [dest]").option("--sha <sha>","book hash value").option("--no-clean","not clean").description("build book").action(async function(e,t,r,n){n.clean&&D.default.setGracefulCleanup(),le.info(`cli version ${rS.version}`);const i=M.default.resolve(e);r=r?M.default.resolve(r):M.default.join(i,"book.tar.gz");try{const i=await async function(e,t,r,n,i){if(void 0===Cm[t])throw new Error("unsupported format: "+t);const o=Cm[t],a=new kf(e),s=await a.readAsObject("ttxconfig.json");le.debug("read options form ttxconfig.json"),le.debug(s);const c=pe.Config.createFromObject(await a.readAsObject(pe.Config.file)),l=a.resolve(c.getValue("root","")),u=D.default.dirSync({unsafeCleanup:!0}).name,h=new kf(u);await Y.default.copy(l,u),await Y.default.copy(M.default.resolve(__dirname,"../templates/.bookignore"),h.resolve(".bookignore"));const p={plugins:{host:km("plugins_host"),preset:{},...s.plugins},poweredBy:{name:"顶想云",link:"https://www.topthink.com"},asset:s.asset||"local"};void 0!==s.poweredBy&&(p.poweredBy=s.poweredBy),s.lfs&&(p.lfs={url:s.lfs,files:{}});const f=s.id||"unknown",d=s.metadata||{};let m;m=h.exist(pe.Summary.file.json)?await h.readAsObject(pe.Summary.file.json,[]):await h.readAsString(pe.Summary.file.markdown);const g=pe.Summary.create(m),E=new o(new pe.Book(f,c,g,d,i),a,h,p,r,n);return s.article&&E instanceof Uf&&E.setArticle(s.article),E}(e,t,r,rS.version,n.sha);await i.generate(),process.exit(0)}catch(e){le.error(e.message),process.exit(1)}}),nS.command("convert").requiredOption("--type <type>","").requiredOption("--source <source>","",function(e,t={}){return{...ce.parse(e),...t}}).option("--dir <dir>").option("--dest <dest>").option("--no-clean","not clean").description("convert book").action(async function({type:e,source:t,dest:r=".",dir:n="",clean:i}){i&&D.default.setGracefulCleanup(),r=M.default.resolve(r);try{const i=await async function(e,t,r,n){if(void 0===tS[e])throw new Error("unsupported type: "+e);return new(0,tS[e])(t,r,n)}(e,t,n,r);await i.convert(),process.exit(0)}catch(e){le.error(e.message),process.exit(1)}});const iS=nS.command("config");iS.command("list").action(function(){console.log(km())}),iS.command("set <key> <value>").action(function(e,t){!function(e,t){Sm.set(e,t)}(e,t)}),nS.parse(process.argv);
|
|
21
|
+
!function(e){!function(){var t;function r(e,n){var o=this instanceof r?this:t;if(o.reset(n),"string"==typeof e&&e.length>0&&o.hash(e),o!==this)return o}r.prototype.hash=function(e){var t,r,n,o,i;switch(i=e.length,this.len+=i,r=this.k1,n=0,this.rem){case 0:r^=i>n?65535&e.charCodeAt(n++):0;case 1:r^=i>n?(65535&e.charCodeAt(n++))<<8:0;case 2:r^=i>n?(65535&e.charCodeAt(n++))<<16:0;case 3:r^=i>n?(255&e.charCodeAt(n))<<24:0,r^=i>n?(65280&e.charCodeAt(n++))>>8:0}if(this.rem=i+this.rem&3,(i-=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>=i);)r=65535&e.charCodeAt(n++)^(65535&e.charCodeAt(n++))<<8^(65535&e.charCodeAt(n++))<<16,r^=(255&(o=e.charCodeAt(n++)))<<24^(65280&o)>>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}()}(EA);var TA={exports:{}},vA={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")}(vA);var bA=fe.process;const _A=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(_A(bA)){var AA,SA=q.default,kA=vA.exports,wA=/^win/i.test(bA.platform),CA=Z.default;"function"!=typeof CA&&(CA=CA.EventEmitter),bA.__signal_exit_emitter__?AA=bA.__signal_exit_emitter__:((AA=bA.__signal_exit_emitter__=new CA).count=0,AA.emitted={}),AA.infinite||(AA.setMaxListeners(1/0),AA.infinite=!0),TA.exports=function(e,t){if(!_A(fe.process))return function(){};SA.equal(typeof e,"function","a callback must be provided for exit handler"),!1===NA&&PA();var r="exit";t&&t.alwaysLast&&(r="afterexit");return AA.on(r,e),function(){AA.removeListener(r,e),0===AA.listeners("exit").length&&0===AA.listeners("afterexit").length&&xA()}};var xA=function(){NA&&_A(fe.process)&&(NA=!1,kA.forEach(function(e){try{bA.removeListener(e,RA[e])}catch(e){}}),bA.emit=DA,bA.reallyExit=IA,AA.count-=1)};TA.exports.unload=xA;var OA=function(e,t,r){AA.emitted[e]||(AA.emitted[e]=!0,AA.emit(e,t,r))},RA={};kA.forEach(function(e){RA[e]=function(){_A(fe.process)&&(bA.listeners(e).length===AA.count&&(xA(),OA("exit",null,e),OA("afterexit",null,e),wA&&"SIGHUP"===e&&(e="SIGINT"),bA.kill(bA.pid,e)))}}),TA.exports.signals=function(){return kA};var NA=!1,PA=function(){!NA&&_A(fe.process)&&(NA=!0,AA.count+=1,kA=kA.filter(function(e){try{return bA.on(e,RA[e]),!0}catch(e){return!1}}),bA.emit=FA,bA.reallyExit=LA)};TA.exports.load=PA;var IA=bA.reallyExit,LA=function(e){_A(fe.process)&&(bA.exitCode=e||0,OA("exit",bA.exitCode,null),OA("afterexit",bA.exitCode,null),IA.call(bA,bA.exitCode))},DA=bA.emit,FA=function(e,t){if("exit"===e&&_A(fe.process)){void 0!==t&&(bA.exitCode=t);var r=DA.apply(this,arguments);return OA("exit",bA.exitCode,null),OA("afterexit",bA.exitCode,null),r}return DA.apply(this,arguments)}}else TA.exports=function(){return function(){}};var MA=HA;HA.strict=jA,HA.loose=qA;var BA=Object.prototype.toString,UA={"[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 HA(e){return jA(e)||qA(e)}function jA(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 qA(e){return UA[BA.call(e)]}var zA=MA.strict;yA.exports=function(e,t,r,n){r instanceof Function&&(n=r,r={});const o=async function(e,t,r={}){"string"==typeof r&&(r={encoding:r});let n,o;const i=KA(tS(()=>o)),s=VA.resolve(e);try{await function(e){return new Promise(t=>{XA[e]||(XA[e]=[]),XA[e].push(t),1===XA[e].length&&t()})}(s);const i=await YA(GA.realpath)(e).catch(()=>e);if(o=eS(i),!r.mode||!r.chown){const e=await YA(GA.stat)(i).catch(()=>{});e&&(null==r.mode&&(r.mode=e.mode),null==r.chown&&process.getuid&&(r.chown={uid:e.uid,gid:e.gid}))}n=await YA(GA.open)(o,"w",r.mode),r.tmpfileCreated&&await r.tmpfileCreated(o),WA(t)&&(t=QA(t)),Buffer.isBuffer(t)?await YA(GA.write)(n,t,0,t.length,0):null!=t&&await YA(GA.write)(n,String(t),0,String(r.encoding||"utf8")),!1!==r.fsync&&await YA(GA.fsync)(n),await YA(GA.close)(n),n=null,r.chown&&await YA(GA.chown)(o,r.chown.uid,r.chown.gid).catch(e=>{if(!rS(e))throw e}),r.mode&&await YA(GA.chmod)(o,r.mode).catch(e=>{if(!rS(e))throw e}),await YA(GA.rename)(o,i)}finally{n&&await YA(GA.close)(n).catch(()=>{}),i(),await YA(GA.unlink)(o).catch(()=>{}),XA[s].shift(),XA[s].length>0?XA[s][0]():delete XA[s]}}(e,t,r);n&&o.then(n,n);return o},yA.exports.sync=function(e,t,r){"string"==typeof r?r={encoding:r}:r||(r={});try{e=GA.realpathSync(e)}catch(e){}const n=eS(e);if(!r.mode||!r.chown)try{const t=GA.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 o;const i=tS(n),s=KA(i);let a=!0;try{if(o=GA.openSync(n,"w",r.mode||438),r.tmpfileCreated&&r.tmpfileCreated(n),WA(t)&&(t=QA(t)),Buffer.isBuffer(t)?GA.writeSync(o,t,0,t.length,0):null!=t&&GA.writeSync(o,String(t),0,String(r.encoding||"utf8")),!1!==r.fsync&&GA.fsyncSync(o),GA.closeSync(o),o=null,r.chown)try{GA.chownSync(n,r.chown.uid,r.chown.gid)}catch(e){if(!rS(e))throw e}if(r.mode)try{GA.chmodSync(n,r.mode)}catch(e){if(!rS(e))throw e}GA.renameSync(n,e),a=!1}finally{if(o)try{GA.closeSync(o)}catch(e){}s(),a&&i()}},yA.exports._getTmpname=eS,yA.exports._cleanupOnExit=tS;const GA=V.default,$A=EA.exports,KA=TA.exports,VA=M.default,WA=MA,QA=function(e){if(zA(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:YA}=z.default,XA={},JA=function(){try{return require("worker_threads").threadId}catch(e){return 0}}();let ZA=0;function eS(e){return e+"."+$A(__filename).hash(String(process.pid)).hash(String(JA)).hash(String(++ZA)).result()}function tS(e){return()=>{try{GA.unlinkSync("function"==typeof e?e():e)}catch(e){}}}function rS(e){if("ENOSYS"===e.code)return!0;return!(process.getuid&&0===process.getuid()||"EINVAL"!==e.code&&"EPERM"!==e.code)}var nS=yA.exports;const oS=e=>{const t=typeof e;return null!==e&&("object"===t||"function"===t)},iS=new Set(["__proto__","prototype","constructor"]);function sS(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=>iS.has(e))?[]:r}var aS={get(e,t,r){if(!oS(e)||"string"!=typeof t)return void 0===r?e:r;const n=sS(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(!oS(e)||"string"!=typeof t)return e;const n=e,o=sS(t);for(let t=0;t<o.length;t++){const n=o[t];oS(e[n])||(e[n]={}),t===o.length-1&&(e[n]=r),e=e[n]}return n},delete(e,t){if(!oS(e)||"string"!=typeof t)return!1;const r=sS(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],!oS(e))return!1}},has(e,t){if(!oS(e)||"string"!=typeof t)return!1;const r=sS(t);if(0===r.length)return!1;for(let t=0;t<r.length;t++){if(!oS(e))return!1;if(!(r[t]in e))return!1;e=e[r[t]]}return!0}};const cS=c.promisify(Q.default.randomBytes),lS="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-._~".split(""),uS="0123456789".split(""),hS="CDEHKMPRTUWXY012458".split(""),fS="!\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~".split(""),pS="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),dS=new Set([void 0,"hex","base64","url-safe","numeric","distinguishable","ascii-printable","alphanumeric"]),mS=(e,t)=>({length:r,type:n,characters:o})=>{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!==o)throw new TypeError("Expected either `type` or `characters`");if(void 0!==o&&"string"!=typeof o)throw new TypeError("Expected `characters` to be string");if(!dS.has(n))throw new TypeError(`Unknown type: ${n}`);if(void 0===n&&void 0===o&&(n="hex"),"hex"===n||void 0===n&&void 0===o)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,lS);if("numeric"===n)return e(r,uS);if("distinguishable"===n)return e(r,hS);if("ascii-printable"===n)return e(r,fS);if("alphanumeric"===n)return e(r,pS);if(0===o.length)throw new TypeError("Expected `characters` string length to be greater than or equal to 1");if(o.length>65536)throw new TypeError("Expected `characters` string length to be less or equal to 65536");return e(r,o.split(""))},gS=mS((e,t)=>{const r=t.length,n=Math.floor(65536/r)*r-1,o=2*Math.ceil(1.1*e);let i="",s=0;for(;s<e;){const a=Q.default.randomBytes(o);let c=0;for(;c<o&&s<e;){const e=a.readUInt16LE(c);c+=2,e>n||(i+=t[e%r],s++)}}return i},(e,t,r)=>Q.default.randomBytes(e).toString(t).slice(0,r));gS.async=mS(async(e,t)=>{const r=t.length,n=Math.floor(65536/r)*r-1,o=2*Math.ceil(1.1*e);let i="",s=0;for(;s<e;){const a=await cS(o);let c=0;for(;c<o&&s<e;){const e=a.readUInt16LE(c);c+=2,e>n||(i+=t[e%r],s++)}}return i},async(e,t,r)=>(await cS(e)).toString(t).slice(0,r));const yS=dA||M.default.join(ae.default.tmpdir(),gS({length:32})),ES="You don't have access to this file.",TS={mode:448,recursive:!0},vS={mode:384};const bS=new class{constructor(e,t,r={}){const n=r.globalConfigPath?M.default.join(e,"config.json"):M.default.join("configstore",`${e}.json`);this._path=r.configPath||M.default.join(yS,n),t&&(this.all={...t,...this.all})}get all(){try{return JSON.parse(uA.readFileSync(this._path,"utf8"))}catch(e){if("ENOENT"===e.code)return{};if("EACCES"===e.code&&(e.message=`${e.message}\n${ES}\n`),"SyntaxError"===e.name)return nS.sync(this._path,"",vS),{};throw e}}set all(e){try{uA.mkdirSync(M.default.dirname(this._path),TS),nS.sync(this._path,JSON.stringify(e,void 0,"\t"),vS)}catch(e){throw"EACCES"===e.code&&(e.message=`${e.message}\n${ES}\n`),e}}get size(){return Object.keys(this.all||{}).length}get(e){return aS.get(this.all,e)}set(e,t){const r=this.all;if(1===arguments.length)for(const t of Object.keys(e))aS.set(r,t,e[t]);else aS.set(r,e,t);this.all=r}has(e){return aS.has(this.all,e)}delete(e){const t=this.all;aS.delete(t,e),this.all=t}clear(){this.all={}}get path(){return this._path}}("ttx",{plugins_host:"https://plugins.x.topthink.com"});function _S(e){return e?bS.get(e):bS.all}const AS={json:b_,html:A_,ebook:M_};var SS={};const kS=[65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111];SS.REPLACEMENT_CHARACTER="�",SS.CODE_POINTS={EOF:-1,NULL:0,TABULATION:9,CARRIAGE_RETURN:13,LINE_FEED:10,FORM_FEED:12,SPACE:32,EXCLAMATION_MARK:33,QUOTATION_MARK:34,NUMBER_SIGN:35,AMPERSAND:38,APOSTROPHE:39,HYPHEN_MINUS:45,SOLIDUS:47,DIGIT_0:48,DIGIT_9:57,SEMICOLON:59,LESS_THAN_SIGN:60,EQUALS_SIGN:61,GREATER_THAN_SIGN:62,QUESTION_MARK:63,LATIN_CAPITAL_A:65,LATIN_CAPITAL_F:70,LATIN_CAPITAL_X:88,LATIN_CAPITAL_Z:90,RIGHT_SQUARE_BRACKET:93,GRAVE_ACCENT:96,LATIN_SMALL_A:97,LATIN_SMALL_F:102,LATIN_SMALL_X:120,LATIN_SMALL_Z:122,REPLACEMENT_CHARACTER:65533},SS.CODE_POINT_SEQUENCES={DASH_DASH_STRING:[45,45],DOCTYPE_STRING:[68,79,67,84,89,80,69],CDATA_START_STRING:[91,67,68,65,84,65,91],SCRIPT_STRING:[115,99,114,105,112,116],PUBLIC_STRING:[80,85,66,76,73,67],SYSTEM_STRING:[83,89,83,84,69,77]},SS.isSurrogate=function(e){return e>=55296&&e<=57343},SS.isSurrogatePair=function(e){return e>=56320&&e<=57343},SS.getSurrogatePairCodePoint=function(e,t){return 1024*(e-55296)+9216+t},SS.isControlCodePoint=function(e){return 32!==e&&10!==e&&13!==e&&9!==e&&12!==e&&e>=1&&e<=31||e>=127&&e<=159},SS.isUndefinedCodePoint=function(e){return e>=64976&&e<=65007||kS.indexOf(e)>-1};var wS={controlCharacterInInputStream:"control-character-in-input-stream",noncharacterInInputStream:"noncharacter-in-input-stream",surrogateInInputStream:"surrogate-in-input-stream",nonVoidHtmlElementStartTagWithTrailingSolidus:"non-void-html-element-start-tag-with-trailing-solidus",endTagWithAttributes:"end-tag-with-attributes",endTagWithTrailingSolidus:"end-tag-with-trailing-solidus",unexpectedSolidusInTag:"unexpected-solidus-in-tag",unexpectedNullCharacter:"unexpected-null-character",unexpectedQuestionMarkInsteadOfTagName:"unexpected-question-mark-instead-of-tag-name",invalidFirstCharacterOfTagName:"invalid-first-character-of-tag-name",unexpectedEqualsSignBeforeAttributeName:"unexpected-equals-sign-before-attribute-name",missingEndTagName:"missing-end-tag-name",unexpectedCharacterInAttributeName:"unexpected-character-in-attribute-name",unknownNamedCharacterReference:"unknown-named-character-reference",missingSemicolonAfterCharacterReference:"missing-semicolon-after-character-reference",unexpectedCharacterAfterDoctypeSystemIdentifier:"unexpected-character-after-doctype-system-identifier",unexpectedCharacterInUnquotedAttributeValue:"unexpected-character-in-unquoted-attribute-value",eofBeforeTagName:"eof-before-tag-name",eofInTag:"eof-in-tag",missingAttributeValue:"missing-attribute-value",missingWhitespaceBetweenAttributes:"missing-whitespace-between-attributes",missingWhitespaceAfterDoctypePublicKeyword:"missing-whitespace-after-doctype-public-keyword",missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers:"missing-whitespace-between-doctype-public-and-system-identifiers",missingWhitespaceAfterDoctypeSystemKeyword:"missing-whitespace-after-doctype-system-keyword",missingQuoteBeforeDoctypePublicIdentifier:"missing-quote-before-doctype-public-identifier",missingQuoteBeforeDoctypeSystemIdentifier:"missing-quote-before-doctype-system-identifier",missingDoctypePublicIdentifier:"missing-doctype-public-identifier",missingDoctypeSystemIdentifier:"missing-doctype-system-identifier",abruptDoctypePublicIdentifier:"abrupt-doctype-public-identifier",abruptDoctypeSystemIdentifier:"abrupt-doctype-system-identifier",cdataInHtmlContent:"cdata-in-html-content",incorrectlyOpenedComment:"incorrectly-opened-comment",eofInScriptHtmlCommentLikeText:"eof-in-script-html-comment-like-text",eofInDoctype:"eof-in-doctype",nestedComment:"nested-comment",abruptClosingOfEmptyComment:"abrupt-closing-of-empty-comment",eofInComment:"eof-in-comment",incorrectlyClosedComment:"incorrectly-closed-comment",eofInCdata:"eof-in-cdata",absenceOfDigitsInNumericCharacterReference:"absence-of-digits-in-numeric-character-reference",nullCharacterReference:"null-character-reference",surrogateCharacterReference:"surrogate-character-reference",characterReferenceOutsideUnicodeRange:"character-reference-outside-unicode-range",controlCharacterReference:"control-character-reference",noncharacterCharacterReference:"noncharacter-character-reference",missingWhitespaceBeforeDoctypeName:"missing-whitespace-before-doctype-name",missingDoctypeName:"missing-doctype-name",invalidCharacterSequenceAfterDoctypeName:"invalid-character-sequence-after-doctype-name",duplicateAttribute:"duplicate-attribute",nonConformingDoctype:"non-conforming-doctype",missingDoctype:"missing-doctype",misplacedDoctype:"misplaced-doctype",endTagWithoutMatchingOpenElement:"end-tag-without-matching-open-element",closingOfElementWithOpenChildElements:"closing-of-element-with-open-child-elements",disallowedContentInNoscriptInHead:"disallowed-content-in-noscript-in-head",openElementsLeftAfterEof:"open-elements-left-after-eof",abandonedHeadElementChild:"abandoned-head-element-child",misplacedStartTagForHeadElement:"misplaced-start-tag-for-head-element",nestedNoscriptInHead:"nested-noscript-in-head",eofInElementThatCanContainOnlyText:"eof-in-element-that-can-contain-only-text"};const CS=SS,xS=wS,OS=CS.CODE_POINTS;var RS=class{constructor(){this.html=null,this.pos=-1,this.lastGapPos=-1,this.lastCharPos=-1,this.gapStack=[],this.skipNextNewLine=!1,this.lastChunkWritten=!1,this.endOfChunkHit=!1,this.bufferWaterline=65536}_err(){}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(e){if(this.pos!==this.lastCharPos){const t=this.html.charCodeAt(this.pos+1);if(CS.isSurrogatePair(t))return this.pos++,this._addGap(),CS.getSurrogatePairCodePoint(e,t)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,OS.EOF;return this._err(xS.surrogateInInputStream),e}dropParsedChunk(){this.pos>this.bufferWaterline&&(this.lastCharPos-=this.pos,this.html=this.html.substring(this.pos),this.pos=0,this.lastGapPos=-1,this.gapStack=[])}write(e,t){this.html?this.html+=e:this.html=e,this.lastCharPos=this.html.length-1,this.endOfChunkHit=!1,this.lastChunkWritten=t}insertHtmlAtCurrentPos(e){this.html=this.html.substring(0,this.pos+1)+e+this.html.substring(this.pos+1,this.html.length),this.lastCharPos=this.html.length-1,this.endOfChunkHit=!1}advance(){if(this.pos++,this.pos>this.lastCharPos)return this.endOfChunkHit=!this.lastChunkWritten,OS.EOF;let e=this.html.charCodeAt(this.pos);if(this.skipNextNewLine&&e===OS.LINE_FEED)return this.skipNextNewLine=!1,this._addGap(),this.advance();if(e===OS.CARRIAGE_RETURN)return this.skipNextNewLine=!0,OS.LINE_FEED;this.skipNextNewLine=!1,CS.isSurrogate(e)&&(e=this._processSurrogate(e));return e>31&&e<127||e===OS.LINE_FEED||e===OS.CARRIAGE_RETURN||e>159&&e<64976||this._checkForProblematicCharacters(e),e}_checkForProblematicCharacters(e){CS.isControlCodePoint(e)?this._err(xS.controlCharacterInInputStream):CS.isUndefinedCodePoint(e)&&this._err(xS.noncharacterInInputStream)}retreat(){this.pos===this.lastGapPos&&(this.lastGapPos=this.gapStack.pop(),this.pos--),this.pos--}},NS=new Uint16Array([4,52,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,106,303,412,810,1432,1701,1796,1987,2114,2360,2420,2484,3170,3251,4140,4393,4575,4610,5106,5512,5728,6117,6274,6315,6345,6427,6516,7002,7910,8733,9323,9870,10170,10631,10893,11318,11386,11467,12773,13092,14474,14922,15448,15542,16419,17666,18166,18611,19004,19095,19298,19397,4,16,69,77,97,98,99,102,103,108,109,110,111,112,114,115,116,117,140,150,158,169,176,194,199,210,216,222,226,242,256,266,283,294,108,105,103,5,198,1,59,148,1,198,80,5,38,1,59,156,1,38,99,117,116,101,5,193,1,59,167,1,193,114,101,118,101,59,1,258,4,2,105,121,182,191,114,99,5,194,1,59,189,1,194,59,1,1040,114,59,3,55349,56580,114,97,118,101,5,192,1,59,208,1,192,112,104,97,59,1,913,97,99,114,59,1,256,100,59,1,10835,4,2,103,112,232,237,111,110,59,1,260,102,59,3,55349,56632,112,108,121,70,117,110,99,116,105,111,110,59,1,8289,105,110,103,5,197,1,59,264,1,197,4,2,99,115,272,277,114,59,3,55349,56476,105,103,110,59,1,8788,105,108,100,101,5,195,1,59,292,1,195,109,108,5,196,1,59,301,1,196,4,8,97,99,101,102,111,114,115,117,321,350,354,383,388,394,400,405,4,2,99,114,327,336,107,115,108,97,115,104,59,1,8726,4,2,118,119,342,345,59,1,10983,101,100,59,1,8966,121,59,1,1041,4,3,99,114,116,362,369,379,97,117,115,101,59,1,8757,110,111,117,108,108,105,115,59,1,8492,97,59,1,914,114,59,3,55349,56581,112,102,59,3,55349,56633,101,118,101,59,1,728,99,114,59,1,8492,109,112,101,113,59,1,8782,4,14,72,79,97,99,100,101,102,104,105,108,111,114,115,117,442,447,456,504,542,547,569,573,577,616,678,784,790,796,99,121,59,1,1063,80,89,5,169,1,59,454,1,169,4,3,99,112,121,464,470,497,117,116,101,59,1,262,4,2,59,105,476,478,1,8914,116,97,108,68,105,102,102,101,114,101,110,116,105,97,108,68,59,1,8517,108,101,121,115,59,1,8493,4,4,97,101,105,111,514,520,530,535,114,111,110,59,1,268,100,105,108,5,199,1,59,528,1,199,114,99,59,1,264,110,105,110,116,59,1,8752,111,116,59,1,266,4,2,100,110,553,560,105,108,108,97,59,1,184,116,101,114,68,111,116,59,1,183,114,59,1,8493,105,59,1,935,114,99,108,101,4,4,68,77,80,84,591,596,603,609,111,116,59,1,8857,105,110,117,115,59,1,8854,108,117,115,59,1,8853,105,109,101,115,59,1,8855,111,4,2,99,115,623,646,107,119,105,115,101,67,111,110,116,111,117,114,73,110,116,101,103,114,97,108,59,1,8754,101,67,117,114,108,121,4,2,68,81,658,671,111,117,98,108,101,81,117,111,116,101,59,1,8221,117,111,116,101,59,1,8217,4,4,108,110,112,117,688,701,736,753,111,110,4,2,59,101,696,698,1,8759,59,1,10868,4,3,103,105,116,709,717,722,114,117,101,110,116,59,1,8801,110,116,59,1,8751,111,117,114,73,110,116,101,103,114,97,108,59,1,8750,4,2,102,114,742,745,59,1,8450,111,100,117,99,116,59,1,8720,110,116,101,114,67,108,111,99,107,119,105,115,101,67,111,110,116,111,117,114,73,110,116,101,103,114,97,108,59,1,8755,111,115,115,59,1,10799,99,114,59,3,55349,56478,112,4,2,59,67,803,805,1,8915,97,112,59,1,8781,4,11,68,74,83,90,97,99,101,102,105,111,115,834,850,855,860,865,888,903,916,921,1011,1415,4,2,59,111,840,842,1,8517,116,114,97,104,100,59,1,10513,99,121,59,1,1026,99,121,59,1,1029,99,121,59,1,1039,4,3,103,114,115,873,879,883,103,101,114,59,1,8225,114,59,1,8609,104,118,59,1,10980,4,2,97,121,894,900,114,111,110,59,1,270,59,1,1044,108,4,2,59,116,910,912,1,8711,97,59,1,916,114,59,3,55349,56583,4,2,97,102,927,998,4,2,99,109,933,992,114,105,116,105,99,97,108,4,4,65,68,71,84,950,957,978,985,99,117,116,101,59,1,180,111,4,2,116,117,964,967,59,1,729,98,108,101,65,99,117,116,101,59,1,733,114,97,118,101,59,1,96,105,108,100,101,59,1,732,111,110,100,59,1,8900,102,101,114,101,110,116,105,97,108,68,59,1,8518,4,4,112,116,117,119,1021,1026,1048,1249,102,59,3,55349,56635,4,3,59,68,69,1034,1036,1041,1,168,111,116,59,1,8412,113,117,97,108,59,1,8784,98,108,101,4,6,67,68,76,82,85,86,1065,1082,1101,1189,1211,1236,111,110,116,111,117,114,73,110,116,101,103,114,97,108,59,1,8751,111,4,2,116,119,1089,1092,59,1,168,110,65,114,114,111,119,59,1,8659,4,2,101,111,1107,1141,102,116,4,3,65,82,84,1117,1124,1136,114,114,111,119,59,1,8656,105,103,104,116,65,114,114,111,119,59,1,8660,101,101,59,1,10980,110,103,4,2,76,82,1149,1177,101,102,116,4,2,65,82,1158,1165,114,114,111,119,59,1,10232,105,103,104,116,65,114,114,111,119,59,1,10234,105,103,104,116,65,114,114,111,119,59,1,10233,105,103,104,116,4,2,65,84,1199,1206,114,114,111,119,59,1,8658,101,101,59,1,8872,112,4,2,65,68,1218,1225,114,114,111,119,59,1,8657,111,119,110,65,114,114,111,119,59,1,8661,101,114,116,105,99,97,108,66,97,114,59,1,8741,110,4,6,65,66,76,82,84,97,1264,1292,1299,1352,1391,1408,114,114,111,119,4,3,59,66,85,1276,1278,1283,1,8595,97,114,59,1,10515,112,65,114,114,111,119,59,1,8693,114,101,118,101,59,1,785,101,102,116,4,3,82,84,86,1310,1323,1334,105,103,104,116,86,101,99,116,111,114,59,1,10576,101,101,86,101,99,116,111,114,59,1,10590,101,99,116,111,114,4,2,59,66,1345,1347,1,8637,97,114,59,1,10582,105,103,104,116,4,2,84,86,1362,1373,101,101,86,101,99,116,111,114,59,1,10591,101,99,116,111,114,4,2,59,66,1384,1386,1,8641,97,114,59,1,10583,101,101,4,2,59,65,1399,1401,1,8868,114,114,111,119,59,1,8615,114,114,111,119,59,1,8659,4,2,99,116,1421,1426,114,59,3,55349,56479,114,111,107,59,1,272,4,16,78,84,97,99,100,102,103,108,109,111,112,113,115,116,117,120,1466,1470,1478,1489,1515,1520,1525,1536,1544,1593,1609,1617,1650,1664,1668,1677,71,59,1,330,72,5,208,1,59,1476,1,208,99,117,116,101,5,201,1,59,1487,1,201,4,3,97,105,121,1497,1503,1512,114,111,110,59,1,282,114,99,5,202,1,59,1510,1,202,59,1,1069,111,116,59,1,278,114,59,3,55349,56584,114,97,118,101,5,200,1,59,1534,1,200,101,109,101,110,116,59,1,8712,4,2,97,112,1550,1555,99,114,59,1,274,116,121,4,2,83,86,1563,1576,109,97,108,108,83,113,117,97,114,101,59,1,9723,101,114,121,83,109,97,108,108,83,113,117,97,114,101,59,1,9643,4,2,103,112,1599,1604,111,110,59,1,280,102,59,3,55349,56636,115,105,108,111,110,59,1,917,117,4,2,97,105,1624,1640,108,4,2,59,84,1631,1633,1,10869,105,108,100,101,59,1,8770,108,105,98,114,105,117,109,59,1,8652,4,2,99,105,1656,1660,114,59,1,8496,109,59,1,10867,97,59,1,919,109,108,5,203,1,59,1675,1,203,4,2,105,112,1683,1689,115,116,115,59,1,8707,111,110,101,110,116,105,97,108,69,59,1,8519,4,5,99,102,105,111,115,1713,1717,1722,1762,1791,121,59,1,1060,114,59,3,55349,56585,108,108,101,100,4,2,83,86,1732,1745,109,97,108,108,83,113,117,97,114,101,59,1,9724,101,114,121,83,109,97,108,108,83,113,117,97,114,101,59,1,9642,4,3,112,114,117,1770,1775,1781,102,59,3,55349,56637,65,108,108,59,1,8704,114,105,101,114,116,114,102,59,1,8497,99,114,59,1,8497,4,12,74,84,97,98,99,100,102,103,111,114,115,116,1822,1827,1834,1848,1855,1877,1882,1887,1890,1896,1978,1984,99,121,59,1,1027,5,62,1,59,1832,1,62,109,109,97,4,2,59,100,1843,1845,1,915,59,1,988,114,101,118,101,59,1,286,4,3,101,105,121,1863,1869,1874,100,105,108,59,1,290,114,99,59,1,284,59,1,1043,111,116,59,1,288,114,59,3,55349,56586,59,1,8921,112,102,59,3,55349,56638,101,97,116,101,114,4,6,69,70,71,76,83,84,1915,1933,1944,1953,1959,1971,113,117,97,108,4,2,59,76,1925,1927,1,8805,101,115,115,59,1,8923,117,108,108,69,113,117,97,108,59,1,8807,114,101,97,116,101,114,59,1,10914,101,115,115,59,1,8823,108,97,110,116,69,113,117,97,108,59,1,10878,105,108,100,101,59,1,8819,99,114,59,3,55349,56482,59,1,8811,4,8,65,97,99,102,105,111,115,117,2005,2012,2026,2032,2036,2049,2073,2089,82,68,99,121,59,1,1066,4,2,99,116,2018,2023,101,107,59,1,711,59,1,94,105,114,99,59,1,292,114,59,1,8460,108,98,101,114,116,83,112,97,99,101,59,1,8459,4,2,112,114,2055,2059,102,59,1,8461,105,122,111,110,116,97,108,76,105,110,101,59,1,9472,4,2,99,116,2079,2083,114,59,1,8459,114,111,107,59,1,294,109,112,4,2,68,69,2097,2107,111,119,110,72,117,109,112,59,1,8782,113,117,97,108,59,1,8783,4,14,69,74,79,97,99,100,102,103,109,110,111,115,116,117,2144,2149,2155,2160,2171,2189,2194,2198,2209,2245,2307,2329,2334,2341,99,121,59,1,1045,108,105,103,59,1,306,99,121,59,1,1025,99,117,116,101,5,205,1,59,2169,1,205,4,2,105,121,2177,2186,114,99,5,206,1,59,2184,1,206,59,1,1048,111,116,59,1,304,114,59,1,8465,114,97,118,101,5,204,1,59,2207,1,204,4,3,59,97,112,2217,2219,2238,1,8465,4,2,99,103,2225,2229,114,59,1,298,105,110,97,114,121,73,59,1,8520,108,105,101,115,59,1,8658,4,2,116,118,2251,2281,4,2,59,101,2257,2259,1,8748,4,2,103,114,2265,2271,114,97,108,59,1,8747,115,101,99,116,105,111,110,59,1,8898,105,115,105,98,108,101,4,2,67,84,2293,2300,111,109,109,97,59,1,8291,105,109,101,115,59,1,8290,4,3,103,112,116,2315,2320,2325,111,110,59,1,302,102,59,3,55349,56640,97,59,1,921,99,114,59,1,8464,105,108,100,101,59,1,296,4,2,107,109,2347,2352,99,121,59,1,1030,108,5,207,1,59,2358,1,207,4,5,99,102,111,115,117,2372,2386,2391,2397,2414,4,2,105,121,2378,2383,114,99,59,1,308,59,1,1049,114,59,3,55349,56589,112,102,59,3,55349,56641,4,2,99,101,2403,2408,114,59,3,55349,56485,114,99,121,59,1,1032,107,99,121,59,1,1028,4,7,72,74,97,99,102,111,115,2436,2441,2446,2452,2467,2472,2478,99,121,59,1,1061,99,121,59,1,1036,112,112,97,59,1,922,4,2,101,121,2458,2464,100,105,108,59,1,310,59,1,1050,114,59,3,55349,56590,112,102,59,3,55349,56642,99,114,59,3,55349,56486,4,11,74,84,97,99,101,102,108,109,111,115,116,2508,2513,2520,2562,2585,2981,2986,3004,3011,3146,3167,99,121,59,1,1033,5,60,1,59,2518,1,60,4,5,99,109,110,112,114,2532,2538,2544,2548,2558,117,116,101,59,1,313,98,100,97,59,1,923,103,59,1,10218,108,97,99,101,116,114,102,59,1,8466,114,59,1,8606,4,3,97,101,121,2570,2576,2582,114,111,110,59,1,317,100,105,108,59,1,315,59,1,1051,4,2,102,115,2591,2907,116,4,10,65,67,68,70,82,84,85,86,97,114,2614,2663,2672,2728,2735,2760,2820,2870,2888,2895,4,2,110,114,2620,2633,103,108,101,66,114,97,99,107,101,116,59,1,10216,114,111,119,4,3,59,66,82,2644,2646,2651,1,8592,97,114,59,1,8676,105,103,104,116,65,114,114,111,119,59,1,8646,101,105,108,105,110,103,59,1,8968,111,4,2,117,119,2679,2692,98,108,101,66,114,97,99,107,101,116,59,1,10214,110,4,2,84,86,2699,2710,101,101,86,101,99,116,111,114,59,1,10593,101,99,116,111,114,4,2,59,66,2721,2723,1,8643,97,114,59,1,10585,108,111,111,114,59,1,8970,105,103,104,116,4,2,65,86,2745,2752,114,114,111,119,59,1,8596,101,99,116,111,114,59,1,10574,4,2,101,114,2766,2792,101,4,3,59,65,86,2775,2777,2784,1,8867,114,114,111,119,59,1,8612,101,99,116,111,114,59,1,10586,105,97,110,103,108,101,4,3,59,66,69,2806,2808,2813,1,8882,97,114,59,1,10703,113,117,97,108,59,1,8884,112,4,3,68,84,86,2829,2841,2852,111,119,110,86,101,99,116,111,114,59,1,10577,101,101,86,101,99,116,111,114,59,1,10592,101,99,116,111,114,4,2,59,66,2863,2865,1,8639,97,114,59,1,10584,101,99,116,111,114,4,2,59,66,2881,2883,1,8636,97,114,59,1,10578,114,114,111,119,59,1,8656,105,103,104,116,97,114,114,111,119,59,1,8660,115,4,6,69,70,71,76,83,84,2922,2936,2947,2956,2962,2974,113,117,97,108,71,114,101,97,116,101,114,59,1,8922,117,108,108,69,113,117,97,108,59,1,8806,114,101,97,116,101,114,59,1,8822,101,115,115,59,1,10913,108,97,110,116,69,113,117,97,108,59,1,10877,105,108,100,101,59,1,8818,114,59,3,55349,56591,4,2,59,101,2992,2994,1,8920,102,116,97,114,114,111,119,59,1,8666,105,100,111,116,59,1,319,4,3,110,112,119,3019,3110,3115,103,4,4,76,82,108,114,3030,3058,3070,3098,101,102,116,4,2,65,82,3039,3046,114,114,111,119,59,1,10229,105,103,104,116,65,114,114,111,119,59,1,10231,105,103,104,116,65,114,114,111,119,59,1,10230,101,102,116,4,2,97,114,3079,3086,114,114,111,119,59,1,10232,105,103,104,116,97,114,114,111,119,59,1,10234,105,103,104,116,97,114,114,111,119,59,1,10233,102,59,3,55349,56643,101,114,4,2,76,82,3123,3134,101,102,116,65,114,114,111,119,59,1,8601,105,103,104,116,65,114,114,111,119,59,1,8600,4,3,99,104,116,3154,3158,3161,114,59,1,8466,59,1,8624,114,111,107,59,1,321,59,1,8810,4,8,97,99,101,102,105,111,115,117,3188,3192,3196,3222,3227,3237,3243,3248,112,59,1,10501,121,59,1,1052,4,2,100,108,3202,3213,105,117,109,83,112,97,99,101,59,1,8287,108,105,110,116,114,102,59,1,8499,114,59,3,55349,56592,110,117,115,80,108,117,115,59,1,8723,112,102,59,3,55349,56644,99,114,59,1,8499,59,1,924,4,9,74,97,99,101,102,111,115,116,117,3271,3276,3283,3306,3422,3427,4120,4126,4137,99,121,59,1,1034,99,117,116,101,59,1,323,4,3,97,101,121,3291,3297,3303,114,111,110,59,1,327,100,105,108,59,1,325,59,1,1053,4,3,103,115,119,3314,3380,3415,97,116,105,118,101,4,3,77,84,86,3327,3340,3365,101,100,105,117,109,83,112,97,99,101,59,1,8203,104,105,4,2,99,110,3348,3357,107,83,112,97,99,101,59,1,8203,83,112,97,99,101,59,1,8203,101,114,121,84,104,105,110,83,112,97,99,101,59,1,8203,116,101,100,4,2,71,76,3389,3405,114,101,97,116,101,114,71,114,101,97,116,101,114,59,1,8811,101,115,115,76,101,115,115,59,1,8810,76,105,110,101,59,1,10,114,59,3,55349,56593,4,4,66,110,112,116,3437,3444,3460,3464,114,101,97,107,59,1,8288,66,114,101,97,107,105,110,103,83,112,97,99,101,59,1,160,102,59,1,8469,4,13,59,67,68,69,71,72,76,78,80,82,83,84,86,3492,3494,3517,3536,3578,3657,3685,3784,3823,3860,3915,4066,4107,1,10988,4,2,111,117,3500,3510,110,103,114,117,101,110,116,59,1,8802,112,67,97,112,59,1,8813,111,117,98,108,101,86,101,114,116,105,99,97,108,66,97,114,59,1,8742,4,3,108,113,120,3544,3552,3571,101,109,101,110,116,59,1,8713,117,97,108,4,2,59,84,3561,3563,1,8800,105,108,100,101,59,3,8770,824,105,115,116,115,59,1,8708,114,101,97,116,101,114,4,7,59,69,70,71,76,83,84,3600,3602,3609,3621,3631,3637,3650,1,8815,113,117,97,108,59,1,8817,117,108,108,69,113,117,97,108,59,3,8807,824,114,101,97,116,101,114,59,3,8811,824,101,115,115,59,1,8825,108,97,110,116,69,113,117,97,108,59,3,10878,824,105,108,100,101,59,1,8821,117,109,112,4,2,68,69,3666,3677,111,119,110,72,117,109,112,59,3,8782,824,113,117,97,108,59,3,8783,824,101,4,2,102,115,3692,3724,116,84,114,105,97,110,103,108,101,4,3,59,66,69,3709,3711,3717,1,8938,97,114,59,3,10703,824,113,117,97,108,59,1,8940,115,4,6,59,69,71,76,83,84,3739,3741,3748,3757,3764,3777,1,8814,113,117,97,108,59,1,8816,114,101,97,116,101,114,59,1,8824,101,115,115,59,3,8810,824,108,97,110,116,69,113,117,97,108,59,3,10877,824,105,108,100,101,59,1,8820,101,115,116,101,100,4,2,71,76,3795,3812,114,101,97,116,101,114,71,114,101,97,116,101,114,59,3,10914,824,101,115,115,76,101,115,115,59,3,10913,824,114,101,99,101,100,101,115,4,3,59,69,83,3838,3840,3848,1,8832,113,117,97,108,59,3,10927,824,108,97,110,116,69,113,117,97,108,59,1,8928,4,2,101,105,3866,3881,118,101,114,115,101,69,108,101,109,101,110,116,59,1,8716,103,104,116,84,114,105,97,110,103,108,101,4,3,59,66,69,3900,3902,3908,1,8939,97,114,59,3,10704,824,113,117,97,108,59,1,8941,4,2,113,117,3921,3973,117,97,114,101,83,117,4,2,98,112,3933,3952,115,101,116,4,2,59,69,3942,3945,3,8847,824,113,117,97,108,59,1,8930,101,114,115,101,116,4,2,59,69,3963,3966,3,8848,824,113,117,97,108,59,1,8931,4,3,98,99,112,3981,4e3,4045,115,101,116,4,2,59,69,3990,3993,3,8834,8402,113,117,97,108,59,1,8840,99,101,101,100,115,4,4,59,69,83,84,4015,4017,4025,4037,1,8833,113,117,97,108,59,3,10928,824,108,97,110,116,69,113,117,97,108,59,1,8929,105,108,100,101,59,3,8831,824,101,114,115,101,116,4,2,59,69,4056,4059,3,8835,8402,113,117,97,108,59,1,8841,105,108,100,101,4,4,59,69,70,84,4080,4082,4089,4100,1,8769,113,117,97,108,59,1,8772,117,108,108,69,113,117,97,108,59,1,8775,105,108,100,101,59,1,8777,101,114,116,105,99,97,108,66,97,114,59,1,8740,99,114,59,3,55349,56489,105,108,100,101,5,209,1,59,4135,1,209,59,1,925,4,14,69,97,99,100,102,103,109,111,112,114,115,116,117,118,4170,4176,4187,4205,4212,4217,4228,4253,4259,4292,4295,4316,4337,4346,108,105,103,59,1,338,99,117,116,101,5,211,1,59,4185,1,211,4,2,105,121,4193,4202,114,99,5,212,1,59,4200,1,212,59,1,1054,98,108,97,99,59,1,336,114,59,3,55349,56594,114,97,118,101,5,210,1,59,4226,1,210,4,3,97,101,105,4236,4241,4246,99,114,59,1,332,103,97,59,1,937,99,114,111,110,59,1,927,112,102,59,3,55349,56646,101,110,67,117,114,108,121,4,2,68,81,4272,4285,111,117,98,108,101,81,117,111,116,101,59,1,8220,117,111,116,101,59,1,8216,59,1,10836,4,2,99,108,4301,4306,114,59,3,55349,56490,97,115,104,5,216,1,59,4314,1,216,105,4,2,108,109,4323,4332,100,101,5,213,1,59,4330,1,213,101,115,59,1,10807,109,108,5,214,1,59,4344,1,214,101,114,4,2,66,80,4354,4380,4,2,97,114,4360,4364,114,59,1,8254,97,99,4,2,101,107,4372,4375,59,1,9182,101,116,59,1,9140,97,114,101,110,116,104,101,115,105,115,59,1,9180,4,9,97,99,102,104,105,108,111,114,115,4413,4422,4426,4431,4435,4438,4448,4471,4561,114,116,105,97,108,68,59,1,8706,121,59,1,1055,114,59,3,55349,56595,105,59,1,934,59,1,928,117,115,77,105,110,117,115,59,1,177,4,2,105,112,4454,4467,110,99,97,114,101,112,108,97,110,101,59,1,8460,102,59,1,8473,4,4,59,101,105,111,4481,4483,4526,4531,1,10939,99,101,100,101,115,4,4,59,69,83,84,4498,4500,4507,4519,1,8826,113,117,97,108,59,1,10927,108,97,110,116,69,113,117,97,108,59,1,8828,105,108,100,101,59,1,8830,109,101,59,1,8243,4,2,100,112,4537,4543,117,99,116,59,1,8719,111,114,116,105,111,110,4,2,59,97,4555,4557,1,8759,108,59,1,8733,4,2,99,105,4567,4572,114,59,3,55349,56491,59,1,936,4,4,85,102,111,115,4585,4594,4599,4604,79,84,5,34,1,59,4592,1,34,114,59,3,55349,56596,112,102,59,1,8474,99,114,59,3,55349,56492,4,12,66,69,97,99,101,102,104,105,111,114,115,117,4636,4642,4650,4681,4704,4763,4767,4771,5047,5069,5081,5094,97,114,114,59,1,10512,71,5,174,1,59,4648,1,174,4,3,99,110,114,4658,4664,4668,117,116,101,59,1,340,103,59,1,10219,114,4,2,59,116,4675,4677,1,8608,108,59,1,10518,4,3,97,101,121,4689,4695,4701,114,111,110,59,1,344,100,105,108,59,1,342,59,1,1056,4,2,59,118,4710,4712,1,8476,101,114,115,101,4,2,69,85,4722,4748,4,2,108,113,4728,4736,101,109,101,110,116,59,1,8715,117,105,108,105,98,114,105,117,109,59,1,8651,112,69,113,117,105,108,105,98,114,105,117,109,59,1,10607,114,59,1,8476,111,59,1,929,103,104,116,4,8,65,67,68,70,84,85,86,97,4792,4840,4849,4905,4912,4972,5022,5040,4,2,110,114,4798,4811,103,108,101,66,114,97,99,107,101,116,59,1,10217,114,111,119,4,3,59,66,76,4822,4824,4829,1,8594,97,114,59,1,8677,101,102,116,65,114,114,111,119,59,1,8644,101,105,108,105,110,103,59,1,8969,111,4,2,117,119,4856,4869,98,108,101,66,114,97,99,107,101,116,59,1,10215,110,4,2,84,86,4876,4887,101,101,86,101,99,116,111,114,59,1,10589,101,99,116,111,114,4,2,59,66,4898,4900,1,8642,97,114,59,1,10581,108,111,111,114,59,1,8971,4,2,101,114,4918,4944,101,4,3,59,65,86,4927,4929,4936,1,8866,114,114,111,119,59,1,8614,101,99,116,111,114,59,1,10587,105,97,110,103,108,101,4,3,59,66,69,4958,4960,4965,1,8883,97,114,59,1,10704,113,117,97,108,59,1,8885,112,4,3,68,84,86,4981,4993,5004,111,119,110,86,101,99,116,111,114,59,1,10575,101,101,86,101,99,116,111,114,59,1,10588,101,99,116,111,114,4,2,59,66,5015,5017,1,8638,97,114,59,1,10580,101,99,116,111,114,4,2,59,66,5033,5035,1,8640,97,114,59,1,10579,114,114,111,119,59,1,8658,4,2,112,117,5053,5057,102,59,1,8477,110,100,73,109,112,108,105,101,115,59,1,10608,105,103,104,116,97,114,114,111,119,59,1,8667,4,2,99,104,5087,5091,114,59,1,8475,59,1,8625,108,101,68,101,108,97,121,101,100,59,1,10740,4,13,72,79,97,99,102,104,105,109,111,113,115,116,117,5134,5150,5157,5164,5198,5203,5259,5265,5277,5283,5374,5380,5385,4,2,67,99,5140,5146,72,99,121,59,1,1065,121,59,1,1064,70,84,99,121,59,1,1068,99,117,116,101,59,1,346,4,5,59,97,101,105,121,5176,5178,5184,5190,5195,1,10940,114,111,110,59,1,352,100,105,108,59,1,350,114,99,59,1,348,59,1,1057,114,59,3,55349,56598,111,114,116,4,4,68,76,82,85,5216,5227,5238,5250,111,119,110,65,114,114,111,119,59,1,8595,101,102,116,65,114,114,111,119,59,1,8592,105,103,104,116,65,114,114,111,119,59,1,8594,112,65,114,114,111,119,59,1,8593,103,109,97,59,1,931,97,108,108,67,105,114,99,108,101,59,1,8728,112,102,59,3,55349,56650,4,2,114,117,5289,5293,116,59,1,8730,97,114,101,4,4,59,73,83,85,5306,5308,5322,5367,1,9633,110,116,101,114,115,101,99,116,105,111,110,59,1,8851,117,4,2,98,112,5329,5347,115,101,116,4,2,59,69,5338,5340,1,8847,113,117,97,108,59,1,8849,101,114,115,101,116,4,2,59,69,5358,5360,1,8848,113,117,97,108,59,1,8850,110,105,111,110,59,1,8852,99,114,59,3,55349,56494,97,114,59,1,8902,4,4,98,99,109,112,5395,5420,5475,5478,4,2,59,115,5401,5403,1,8912,101,116,4,2,59,69,5411,5413,1,8912,113,117,97,108,59,1,8838,4,2,99,104,5426,5468,101,101,100,115,4,4,59,69,83,84,5440,5442,5449,5461,1,8827,113,117,97,108,59,1,10928,108,97,110,116,69,113,117,97,108,59,1,8829,105,108,100,101,59,1,8831,84,104,97,116,59,1,8715,59,1,8721,4,3,59,101,115,5486,5488,5507,1,8913,114,115,101,116,4,2,59,69,5498,5500,1,8835,113,117,97,108,59,1,8839,101,116,59,1,8913,4,11,72,82,83,97,99,102,104,105,111,114,115,5536,5546,5552,5567,5579,5602,5607,5655,5695,5701,5711,79,82,78,5,222,1,59,5544,1,222,65,68,69,59,1,8482,4,2,72,99,5558,5563,99,121,59,1,1035,121,59,1,1062,4,2,98,117,5573,5576,59,1,9,59,1,932,4,3,97,101,121,5587,5593,5599,114,111,110,59,1,356,100,105,108,59,1,354,59,1,1058,114,59,3,55349,56599,4,2,101,105,5613,5631,4,2,114,116,5619,5627,101,102,111,114,101,59,1,8756,97,59,1,920,4,2,99,110,5637,5647,107,83,112,97,99,101,59,3,8287,8202,83,112,97,99,101,59,1,8201,108,100,101,4,4,59,69,70,84,5668,5670,5677,5688,1,8764,113,117,97,108,59,1,8771,117,108,108,69,113,117,97,108,59,1,8773,105,108,100,101,59,1,8776,112,102,59,3,55349,56651,105,112,108,101,68,111,116,59,1,8411,4,2,99,116,5717,5722,114,59,3,55349,56495,114,111,107,59,1,358,4,14,97,98,99,100,102,103,109,110,111,112,114,115,116,117,5758,5789,5805,5823,5830,5835,5846,5852,5921,5937,6089,6095,6101,6108,4,2,99,114,5764,5774,117,116,101,5,218,1,59,5772,1,218,114,4,2,59,111,5781,5783,1,8607,99,105,114,59,1,10569,114,4,2,99,101,5796,5800,121,59,1,1038,118,101,59,1,364,4,2,105,121,5811,5820,114,99,5,219,1,59,5818,1,219,59,1,1059,98,108,97,99,59,1,368,114,59,3,55349,56600,114,97,118,101,5,217,1,59,5844,1,217,97,99,114,59,1,362,4,2,100,105,5858,5905,101,114,4,2,66,80,5866,5892,4,2,97,114,5872,5876,114,59,1,95,97,99,4,2,101,107,5884,5887,59,1,9183,101,116,59,1,9141,97,114,101,110,116,104,101,115,105,115,59,1,9181,111,110,4,2,59,80,5913,5915,1,8899,108,117,115,59,1,8846,4,2,103,112,5927,5932,111,110,59,1,370,102,59,3,55349,56652,4,8,65,68,69,84,97,100,112,115,5955,5985,5996,6009,6026,6033,6044,6075,114,114,111,119,4,3,59,66,68,5967,5969,5974,1,8593,97,114,59,1,10514,111,119,110,65,114,114,111,119,59,1,8645,111,119,110,65,114,114,111,119,59,1,8597,113,117,105,108,105,98,114,105,117,109,59,1,10606,101,101,4,2,59,65,6017,6019,1,8869,114,114,111,119,59,1,8613,114,114,111,119,59,1,8657,111,119,110,97,114,114,111,119,59,1,8661,101,114,4,2,76,82,6052,6063,101,102,116,65,114,114,111,119,59,1,8598,105,103,104,116,65,114,114,111,119,59,1,8599,105,4,2,59,108,6082,6084,1,978,111,110,59,1,933,105,110,103,59,1,366,99,114,59,3,55349,56496,105,108,100,101,59,1,360,109,108,5,220,1,59,6115,1,220,4,9,68,98,99,100,101,102,111,115,118,6137,6143,6148,6152,6166,6250,6255,6261,6267,97,115,104,59,1,8875,97,114,59,1,10987,121,59,1,1042,97,115,104,4,2,59,108,6161,6163,1,8873,59,1,10982,4,2,101,114,6172,6175,59,1,8897,4,3,98,116,121,6183,6188,6238,97,114,59,1,8214,4,2,59,105,6194,6196,1,8214,99,97,108,4,4,66,76,83,84,6209,6214,6220,6231,97,114,59,1,8739,105,110,101,59,1,124,101,112,97,114,97,116,111,114,59,1,10072,105,108,100,101,59,1,8768,84,104,105,110,83,112,97,99,101,59,1,8202,114,59,3,55349,56601,112,102,59,3,55349,56653,99,114,59,3,55349,56497,100,97,115,104,59,1,8874,4,5,99,101,102,111,115,6286,6292,6298,6303,6309,105,114,99,59,1,372,100,103,101,59,1,8896,114,59,3,55349,56602,112,102,59,3,55349,56654,99,114,59,3,55349,56498,4,4,102,105,111,115,6325,6330,6333,6339,114,59,3,55349,56603,59,1,926,112,102,59,3,55349,56655,99,114,59,3,55349,56499,4,9,65,73,85,97,99,102,111,115,117,6365,6370,6375,6380,6391,6405,6410,6416,6422,99,121,59,1,1071,99,121,59,1,1031,99,121,59,1,1070,99,117,116,101,5,221,1,59,6389,1,221,4,2,105,121,6397,6402,114,99,59,1,374,59,1,1067,114,59,3,55349,56604,112,102,59,3,55349,56656,99,114,59,3,55349,56500,109,108,59,1,376,4,8,72,97,99,100,101,102,111,115,6445,6450,6457,6472,6477,6501,6505,6510,99,121,59,1,1046,99,117,116,101,59,1,377,4,2,97,121,6463,6469,114,111,110,59,1,381,59,1,1047,111,116,59,1,379,4,2,114,116,6483,6497,111,87,105,100,116,104,83,112,97,99,101,59,1,8203,97,59,1,918,114,59,1,8488,112,102,59,1,8484,99,114,59,3,55349,56501,4,16,97,98,99,101,102,103,108,109,110,111,112,114,115,116,117,119,6550,6561,6568,6612,6622,6634,6645,6672,6699,6854,6870,6923,6933,6963,6974,6983,99,117,116,101,5,225,1,59,6559,1,225,114,101,118,101,59,1,259,4,6,59,69,100,105,117,121,6582,6584,6588,6591,6600,6609,1,8766,59,3,8766,819,59,1,8767,114,99,5,226,1,59,6598,1,226,116,101,5,180,1,59,6607,1,180,59,1,1072,108,105,103,5,230,1,59,6620,1,230,4,2,59,114,6628,6630,1,8289,59,3,55349,56606,114,97,118,101,5,224,1,59,6643,1,224,4,2,101,112,6651,6667,4,2,102,112,6657,6663,115,121,109,59,1,8501,104,59,1,8501,104,97,59,1,945,4,2,97,112,6678,6692,4,2,99,108,6684,6688,114,59,1,257,103,59,1,10815,5,38,1,59,6697,1,38,4,2,100,103,6705,6737,4,5,59,97,100,115,118,6717,6719,6724,6727,6734,1,8743,110,100,59,1,10837,59,1,10844,108,111,112,101,59,1,10840,59,1,10842,4,7,59,101,108,109,114,115,122,6753,6755,6758,6762,6814,6835,6848,1,8736,59,1,10660,101,59,1,8736,115,100,4,2,59,97,6770,6772,1,8737,4,8,97,98,99,100,101,102,103,104,6790,6793,6796,6799,6802,6805,6808,6811,59,1,10664,59,1,10665,59,1,10666,59,1,10667,59,1,10668,59,1,10669,59,1,10670,59,1,10671,116,4,2,59,118,6821,6823,1,8735,98,4,2,59,100,6830,6832,1,8894,59,1,10653,4,2,112,116,6841,6845,104,59,1,8738,59,1,197,97,114,114,59,1,9084,4,2,103,112,6860,6865,111,110,59,1,261,102,59,3,55349,56658,4,7,59,69,97,101,105,111,112,6886,6888,6891,6897,6900,6904,6908,1,8776,59,1,10864,99,105,114,59,1,10863,59,1,8778,100,59,1,8779,115,59,1,39,114,111,120,4,2,59,101,6917,6919,1,8776,113,59,1,8778,105,110,103,5,229,1,59,6931,1,229,4,3,99,116,121,6941,6946,6949,114,59,3,55349,56502,59,1,42,109,112,4,2,59,101,6957,6959,1,8776,113,59,1,8781,105,108,100,101,5,227,1,59,6972,1,227,109,108,5,228,1,59,6981,1,228,4,2,99,105,6989,6997,111,110,105,110,116,59,1,8755,110,116,59,1,10769,4,16,78,97,98,99,100,101,102,105,107,108,110,111,112,114,115,117,7036,7041,7119,7135,7149,7155,7219,7224,7347,7354,7463,7489,7786,7793,7814,7866,111,116,59,1,10989,4,2,99,114,7047,7094,107,4,4,99,101,112,115,7058,7064,7073,7080,111,110,103,59,1,8780,112,115,105,108,111,110,59,1,1014,114,105,109,101,59,1,8245,105,109,4,2,59,101,7088,7090,1,8765,113,59,1,8909,4,2,118,119,7100,7105,101,101,59,1,8893,101,100,4,2,59,103,7113,7115,1,8965,101,59,1,8965,114,107,4,2,59,116,7127,7129,1,9141,98,114,107,59,1,9142,4,2,111,121,7141,7146,110,103,59,1,8780,59,1,1073,113,117,111,59,1,8222,4,5,99,109,112,114,116,7167,7181,7188,7193,7199,97,117,115,4,2,59,101,7176,7178,1,8757,59,1,8757,112,116,121,118,59,1,10672,115,105,59,1,1014,110,111,117,59,1,8492,4,3,97,104,119,7207,7210,7213,59,1,946,59,1,8502,101,101,110,59,1,8812,114,59,3,55349,56607,103,4,7,99,111,115,116,117,118,119,7241,7262,7288,7305,7328,7335,7340,4,3,97,105,117,7249,7253,7258,112,59,1,8898,114,99,59,1,9711,112,59,1,8899,4,3,100,112,116,7270,7275,7281,111,116,59,1,10752,108,117,115,59,1,10753,105,109,101,115,59,1,10754,4,2,113,116,7294,7300,99,117,112,59,1,10758,97,114,59,1,9733,114,105,97,110,103,108,101,4,2,100,117,7318,7324,111,119,110,59,1,9661,112,59,1,9651,112,108,117,115,59,1,10756,101,101,59,1,8897,101,100,103,101,59,1,8896,97,114,111,119,59,1,10509,4,3,97,107,111,7362,7436,7458,4,2,99,110,7368,7432,107,4,3,108,115,116,7377,7386,7394,111,122,101,110,103,101,59,1,10731,113,117,97,114,101,59,1,9642,114,105,97,110,103,108,101,4,4,59,100,108,114,7411,7413,7419,7425,1,9652,111,119,110,59,1,9662,101,102,116,59,1,9666,105,103,104,116,59,1,9656,107,59,1,9251,4,2,49,51,7442,7454,4,2,50,52,7448,7451,59,1,9618,59,1,9617,52,59,1,9619,99,107,59,1,9608,4,2,101,111,7469,7485,4,2,59,113,7475,7478,3,61,8421,117,105,118,59,3,8801,8421,116,59,1,8976,4,4,112,116,119,120,7499,7504,7517,7523,102,59,3,55349,56659,4,2,59,116,7510,7512,1,8869,111,109,59,1,8869,116,105,101,59,1,8904,4,12,68,72,85,86,98,100,104,109,112,116,117,118,7549,7571,7597,7619,7655,7660,7682,7708,7715,7721,7728,7750,4,4,76,82,108,114,7559,7562,7565,7568,59,1,9559,59,1,9556,59,1,9558,59,1,9555,4,5,59,68,85,100,117,7583,7585,7588,7591,7594,1,9552,59,1,9574,59,1,9577,59,1,9572,59,1,9575,4,4,76,82,108,114,7607,7610,7613,7616,59,1,9565,59,1,9562,59,1,9564,59,1,9561,4,7,59,72,76,82,104,108,114,7635,7637,7640,7643,7646,7649,7652,1,9553,59,1,9580,59,1,9571,59,1,9568,59,1,9579,59,1,9570,59,1,9567,111,120,59,1,10697,4,4,76,82,108,114,7670,7673,7676,7679,59,1,9557,59,1,9554,59,1,9488,59,1,9484,4,5,59,68,85,100,117,7694,7696,7699,7702,7705,1,9472,59,1,9573,59,1,9576,59,1,9516,59,1,9524,105,110,117,115,59,1,8863,108,117,115,59,1,8862,105,109,101,115,59,1,8864,4,4,76,82,108,114,7738,7741,7744,7747,59,1,9563,59,1,9560,59,1,9496,59,1,9492,4,7,59,72,76,82,104,108,114,7766,7768,7771,7774,7777,7780,7783,1,9474,59,1,9578,59,1,9569,59,1,9566,59,1,9532,59,1,9508,59,1,9500,114,105,109,101,59,1,8245,4,2,101,118,7799,7804,118,101,59,1,728,98,97,114,5,166,1,59,7812,1,166,4,4,99,101,105,111,7824,7829,7834,7846,114,59,3,55349,56503,109,105,59,1,8271,109,4,2,59,101,7841,7843,1,8765,59,1,8909,108,4,3,59,98,104,7855,7857,7860,1,92,59,1,10693,115,117,98,59,1,10184,4,2,108,109,7872,7885,108,4,2,59,101,7879,7881,1,8226,116,59,1,8226,112,4,3,59,69,101,7894,7896,7899,1,8782,59,1,10926,4,2,59,113,7905,7907,1,8783,59,1,8783,4,15,97,99,100,101,102,104,105,108,111,114,115,116,117,119,121,7942,8021,8075,8080,8121,8126,8157,8279,8295,8430,8446,8485,8491,8707,8726,4,3,99,112,114,7950,7956,8007,117,116,101,59,1,263,4,6,59,97,98,99,100,115,7970,7972,7977,7984,7998,8003,1,8745,110,100,59,1,10820,114,99,117,112,59,1,10825,4,2,97,117,7990,7994,112,59,1,10827,112,59,1,10823,111,116,59,1,10816,59,3,8745,65024,4,2,101,111,8013,8017,116,59,1,8257,110,59,1,711,4,4,97,101,105,117,8031,8046,8056,8061,4,2,112,114,8037,8041,115,59,1,10829,111,110,59,1,269,100,105,108,5,231,1,59,8054,1,231,114,99,59,1,265,112,115,4,2,59,115,8069,8071,1,10828,109,59,1,10832,111,116,59,1,267,4,3,100,109,110,8088,8097,8104,105,108,5,184,1,59,8095,1,184,112,116,121,118,59,1,10674,116,5,162,2,59,101,8112,8114,1,162,114,100,111,116,59,1,183,114,59,3,55349,56608,4,3,99,101,105,8134,8138,8154,121,59,1,1095,99,107,4,2,59,109,8146,8148,1,10003,97,114,107,59,1,10003,59,1,967,114,4,7,59,69,99,101,102,109,115,8174,8176,8179,8258,8261,8268,8273,1,9675,59,1,10691,4,3,59,101,108,8187,8189,8193,1,710,113,59,1,8791,101,4,2,97,100,8200,8223,114,114,111,119,4,2,108,114,8210,8216,101,102,116,59,1,8634,105,103,104,116,59,1,8635,4,5,82,83,97,99,100,8235,8238,8241,8246,8252,59,1,174,59,1,9416,115,116,59,1,8859,105,114,99,59,1,8858,97,115,104,59,1,8861,59,1,8791,110,105,110,116,59,1,10768,105,100,59,1,10991,99,105,114,59,1,10690,117,98,115,4,2,59,117,8288,8290,1,9827,105,116,59,1,9827,4,4,108,109,110,112,8305,8326,8376,8400,111,110,4,2,59,101,8313,8315,1,58,4,2,59,113,8321,8323,1,8788,59,1,8788,4,2,109,112,8332,8344,97,4,2,59,116,8339,8341,1,44,59,1,64,4,3,59,102,108,8352,8354,8358,1,8705,110,59,1,8728,101,4,2,109,120,8365,8371,101,110,116,59,1,8705,101,115,59,1,8450,4,2,103,105,8382,8395,4,2,59,100,8388,8390,1,8773,111,116,59,1,10861,110,116,59,1,8750,4,3,102,114,121,8408,8412,8417,59,3,55349,56660,111,100,59,1,8720,5,169,2,59,115,8424,8426,1,169,114,59,1,8471,4,2,97,111,8436,8441,114,114,59,1,8629,115,115,59,1,10007,4,2,99,117,8452,8457,114,59,3,55349,56504,4,2,98,112,8463,8474,4,2,59,101,8469,8471,1,10959,59,1,10961,4,2,59,101,8480,8482,1,10960,59,1,10962,100,111,116,59,1,8943,4,7,100,101,108,112,114,118,119,8507,8522,8536,8550,8600,8697,8702,97,114,114,4,2,108,114,8516,8519,59,1,10552,59,1,10549,4,2,112,115,8528,8532,114,59,1,8926,99,59,1,8927,97,114,114,4,2,59,112,8545,8547,1,8630,59,1,10557,4,6,59,98,99,100,111,115,8564,8566,8573,8587,8592,8596,1,8746,114,99,97,112,59,1,10824,4,2,97,117,8579,8583,112,59,1,10822,112,59,1,10826,111,116,59,1,8845,114,59,1,10821,59,3,8746,65024,4,4,97,108,114,118,8610,8623,8663,8672,114,114,4,2,59,109,8618,8620,1,8631,59,1,10556,121,4,3,101,118,119,8632,8651,8656,113,4,2,112,115,8639,8645,114,101,99,59,1,8926,117,99,99,59,1,8927,101,101,59,1,8910,101,100,103,101,59,1,8911,101,110,5,164,1,59,8670,1,164,101,97,114,114,111,119,4,2,108,114,8684,8690,101,102,116,59,1,8630,105,103,104,116,59,1,8631,101,101,59,1,8910,101,100,59,1,8911,4,2,99,105,8713,8721,111,110,105,110,116,59,1,8754,110,116,59,1,8753,108,99,116,121,59,1,9005,4,19,65,72,97,98,99,100,101,102,104,105,106,108,111,114,115,116,117,119,122,8773,8778,8783,8821,8839,8854,8887,8914,8930,8944,9036,9041,9058,9197,9227,9258,9281,9297,9305,114,114,59,1,8659,97,114,59,1,10597,4,4,103,108,114,115,8793,8799,8805,8809,103,101,114,59,1,8224,101,116,104,59,1,8504,114,59,1,8595,104,4,2,59,118,8816,8818,1,8208,59,1,8867,4,2,107,108,8827,8834,97,114,111,119,59,1,10511,97,99,59,1,733,4,2,97,121,8845,8851,114,111,110,59,1,271,59,1,1076,4,3,59,97,111,8862,8864,8880,1,8518,4,2,103,114,8870,8876,103,101,114,59,1,8225,114,59,1,8650,116,115,101,113,59,1,10871,4,3,103,108,109,8895,8902,8907,5,176,1,59,8900,1,176,116,97,59,1,948,112,116,121,118,59,1,10673,4,2,105,114,8920,8926,115,104,116,59,1,10623,59,3,55349,56609,97,114,4,2,108,114,8938,8941,59,1,8643,59,1,8642,4,5,97,101,103,115,118,8956,8986,8989,8996,9001,109,4,3,59,111,115,8965,8967,8983,1,8900,110,100,4,2,59,115,8975,8977,1,8900,117,105,116,59,1,9830,59,1,9830,59,1,168,97,109,109,97,59,1,989,105,110,59,1,8946,4,3,59,105,111,9009,9011,9031,1,247,100,101,5,247,2,59,111,9020,9022,1,247,110,116,105,109,101,115,59,1,8903,110,120,59,1,8903,99,121,59,1,1106,99,4,2,111,114,9048,9053,114,110,59,1,8990,111,112,59,1,8973,4,5,108,112,116,117,119,9070,9076,9081,9130,9144,108,97,114,59,1,36,102,59,3,55349,56661,4,5,59,101,109,112,115,9093,9095,9109,9116,9122,1,729,113,4,2,59,100,9102,9104,1,8784,111,116,59,1,8785,105,110,117,115,59,1,8760,108,117,115,59,1,8724,113,117,97,114,101,59,1,8865,98,108,101,98,97,114,119,101,100,103,101,59,1,8966,110,4,3,97,100,104,9153,9160,9172,114,114,111,119,59,1,8595,111,119,110,97,114,114,111,119,115,59,1,8650,97,114,112,111,111,110,4,2,108,114,9184,9190,101,102,116,59,1,8643,105,103,104,116,59,1,8642,4,2,98,99,9203,9211,107,97,114,111,119,59,1,10512,4,2,111,114,9217,9222,114,110,59,1,8991,111,112,59,1,8972,4,3,99,111,116,9235,9248,9252,4,2,114,121,9241,9245,59,3,55349,56505,59,1,1109,108,59,1,10742,114,111,107,59,1,273,4,2,100,114,9264,9269,111,116,59,1,8945,105,4,2,59,102,9276,9278,1,9663,59,1,9662,4,2,97,104,9287,9292,114,114,59,1,8693,97,114,59,1,10607,97,110,103,108,101,59,1,10662,4,2,99,105,9311,9315,121,59,1,1119,103,114,97,114,114,59,1,10239,4,18,68,97,99,100,101,102,103,108,109,110,111,112,113,114,115,116,117,120,9361,9376,9398,9439,9444,9447,9462,9495,9531,9585,9598,9614,9659,9755,9771,9792,9808,9826,4,2,68,111,9367,9372,111,116,59,1,10871,116,59,1,8785,4,2,99,115,9382,9392,117,116,101,5,233,1,59,9390,1,233,116,101,114,59,1,10862,4,4,97,105,111,121,9408,9414,9430,9436,114,111,110,59,1,283,114,4,2,59,99,9421,9423,1,8790,5,234,1,59,9428,1,234,108,111,110,59,1,8789,59,1,1101,111,116,59,1,279,59,1,8519,4,2,68,114,9453,9458,111,116,59,1,8786,59,3,55349,56610,4,3,59,114,115,9470,9472,9482,1,10906,97,118,101,5,232,1,59,9480,1,232,4,2,59,100,9488,9490,1,10902,111,116,59,1,10904,4,4,59,105,108,115,9505,9507,9515,9518,1,10905,110,116,101,114,115,59,1,9191,59,1,8467,4,2,59,100,9524,9526,1,10901,111,116,59,1,10903,4,3,97,112,115,9539,9544,9564,99,114,59,1,275,116,121,4,3,59,115,118,9554,9556,9561,1,8709,101,116,59,1,8709,59,1,8709,112,4,2,49,59,9571,9583,4,2,51,52,9577,9580,59,1,8196,59,1,8197,1,8195,4,2,103,115,9591,9594,59,1,331,112,59,1,8194,4,2,103,112,9604,9609,111,110,59,1,281,102,59,3,55349,56662,4,3,97,108,115,9622,9635,9640,114,4,2,59,115,9629,9631,1,8917,108,59,1,10723,117,115,59,1,10865,105,4,3,59,108,118,9649,9651,9656,1,949,111,110,59,1,949,59,1,1013,4,4,99,115,117,118,9669,9686,9716,9747,4,2,105,111,9675,9680,114,99,59,1,8790,108,111,110,59,1,8789,4,2,105,108,9692,9696,109,59,1,8770,97,110,116,4,2,103,108,9705,9710,116,114,59,1,10902,101,115,115,59,1,10901,4,3,97,101,105,9724,9729,9734,108,115,59,1,61,115,116,59,1,8799,118,4,2,59,68,9741,9743,1,8801,68,59,1,10872,112,97,114,115,108,59,1,10725,4,2,68,97,9761,9766,111,116,59,1,8787,114,114,59,1,10609,4,3,99,100,105,9779,9783,9788,114,59,1,8495,111,116,59,1,8784,109,59,1,8770,4,2,97,104,9798,9801,59,1,951,5,240,1,59,9806,1,240,4,2,109,114,9814,9822,108,5,235,1,59,9820,1,235,111,59,1,8364,4,3,99,105,112,9834,9838,9843,108,59,1,33,115,116,59,1,8707,4,2,101,111,9849,9859,99,116,97,116,105,111,110,59,1,8496,110,101,110,116,105,97,108,101,59,1,8519,4,12,97,99,101,102,105,106,108,110,111,112,114,115,9896,9910,9914,9921,9954,9960,9967,9989,9994,10027,10036,10164,108,108,105,110,103,100,111,116,115,101,113,59,1,8786,121,59,1,1092,109,97,108,101,59,1,9792,4,3,105,108,114,9929,9935,9950,108,105,103,59,1,64259,4,2,105,108,9941,9945,103,59,1,64256,105,103,59,1,64260,59,3,55349,56611,108,105,103,59,1,64257,108,105,103,59,3,102,106,4,3,97,108,116,9975,9979,9984,116,59,1,9837,105,103,59,1,64258,110,115,59,1,9649,111,102,59,1,402,4,2,112,114,1e4,10005,102,59,3,55349,56663,4,2,97,107,10011,10016,108,108,59,1,8704,4,2,59,118,10022,10024,1,8916,59,1,10969,97,114,116,105,110,116,59,1,10765,4,2,97,111,10042,10159,4,2,99,115,10048,10155,4,6,49,50,51,52,53,55,10062,10102,10114,10135,10139,10151,4,6,50,51,52,53,54,56,10076,10083,10086,10093,10096,10099,5,189,1,59,10081,1,189,59,1,8531,5,188,1,59,10091,1,188,59,1,8533,59,1,8537,59,1,8539,4,2,51,53,10108,10111,59,1,8532,59,1,8534,4,3,52,53,56,10122,10129,10132,5,190,1,59,10127,1,190,59,1,8535,59,1,8540,53,59,1,8536,4,2,54,56,10145,10148,59,1,8538,59,1,8541,56,59,1,8542,108,59,1,8260,119,110,59,1,8994,99,114,59,3,55349,56507,4,17,69,97,98,99,100,101,102,103,105,106,108,110,111,114,115,116,118,10206,10217,10247,10254,10268,10273,10358,10363,10374,10380,10385,10406,10458,10464,10470,10497,10610,4,2,59,108,10212,10214,1,8807,59,1,10892,4,3,99,109,112,10225,10231,10244,117,116,101,59,1,501,109,97,4,2,59,100,10239,10241,1,947,59,1,989,59,1,10886,114,101,118,101,59,1,287,4,2,105,121,10260,10265,114,99,59,1,285,59,1,1075,111,116,59,1,289,4,4,59,108,113,115,10283,10285,10288,10308,1,8805,59,1,8923,4,3,59,113,115,10296,10298,10301,1,8805,59,1,8807,108,97,110,116,59,1,10878,4,4,59,99,100,108,10318,10320,10324,10345,1,10878,99,59,1,10921,111,116,4,2,59,111,10332,10334,1,10880,4,2,59,108,10340,10342,1,10882,59,1,10884,4,2,59,101,10351,10354,3,8923,65024,115,59,1,10900,114,59,3,55349,56612,4,2,59,103,10369,10371,1,8811,59,1,8921,109,101,108,59,1,8503,99,121,59,1,1107,4,4,59,69,97,106,10395,10397,10400,10403,1,8823,59,1,10898,59,1,10917,59,1,10916,4,4,69,97,101,115,10416,10419,10434,10453,59,1,8809,112,4,2,59,112,10426,10428,1,10890,114,111,120,59,1,10890,4,2,59,113,10440,10442,1,10888,4,2,59,113,10448,10450,1,10888,59,1,8809,105,109,59,1,8935,112,102,59,3,55349,56664,97,118,101,59,1,96,4,2,99,105,10476,10480,114,59,1,8458,109,4,3,59,101,108,10489,10491,10494,1,8819,59,1,10894,59,1,10896,5,62,6,59,99,100,108,113,114,10512,10514,10527,10532,10538,10545,1,62,4,2,99,105,10520,10523,59,1,10919,114,59,1,10874,111,116,59,1,8919,80,97,114,59,1,10645,117,101,115,116,59,1,10876,4,5,97,100,101,108,115,10557,10574,10579,10599,10605,4,2,112,114,10563,10570,112,114,111,120,59,1,10886,114,59,1,10616,111,116,59,1,8919,113,4,2,108,113,10586,10592,101,115,115,59,1,8923,108,101,115,115,59,1,10892,101,115,115,59,1,8823,105,109,59,1,8819,4,2,101,110,10616,10626,114,116,110,101,113,113,59,3,8809,65024,69,59,3,8809,65024,4,10,65,97,98,99,101,102,107,111,115,121,10653,10658,10713,10718,10724,10760,10765,10786,10850,10875,114,114,59,1,8660,4,4,105,108,109,114,10668,10674,10678,10684,114,115,112,59,1,8202,102,59,1,189,105,108,116,59,1,8459,4,2,100,114,10690,10695,99,121,59,1,1098,4,3,59,99,119,10703,10705,10710,1,8596,105,114,59,1,10568,59,1,8621,97,114,59,1,8463,105,114,99,59,1,293,4,3,97,108,114,10732,10748,10754,114,116,115,4,2,59,117,10741,10743,1,9829,105,116,59,1,9829,108,105,112,59,1,8230,99,111,110,59,1,8889,114,59,3,55349,56613,115,4,2,101,119,10772,10779,97,114,111,119,59,1,10533,97,114,111,119,59,1,10534,4,5,97,109,111,112,114,10798,10803,10809,10839,10844,114,114,59,1,8703,116,104,116,59,1,8763,107,4,2,108,114,10816,10827,101,102,116,97,114,114,111,119,59,1,8617,105,103,104,116,97,114,114,111,119,59,1,8618,102,59,3,55349,56665,98,97,114,59,1,8213,4,3,99,108,116,10858,10863,10869,114,59,3,55349,56509,97,115,104,59,1,8463,114,111,107,59,1,295,4,2,98,112,10881,10887,117,108,108,59,1,8259,104,101,110,59,1,8208,4,15,97,99,101,102,103,105,106,109,110,111,112,113,115,116,117,10925,10936,10958,10977,10990,11001,11039,11045,11101,11192,11220,11226,11237,11285,11299,99,117,116,101,5,237,1,59,10934,1,237,4,3,59,105,121,10944,10946,10955,1,8291,114,99,5,238,1,59,10953,1,238,59,1,1080,4,2,99,120,10964,10968,121,59,1,1077,99,108,5,161,1,59,10975,1,161,4,2,102,114,10983,10986,59,1,8660,59,3,55349,56614,114,97,118,101,5,236,1,59,10999,1,236,4,4,59,105,110,111,11011,11013,11028,11034,1,8520,4,2,105,110,11019,11024,110,116,59,1,10764,116,59,1,8749,102,105,110,59,1,10716,116,97,59,1,8489,108,105,103,59,1,307,4,3,97,111,112,11053,11092,11096,4,3,99,103,116,11061,11065,11088,114,59,1,299,4,3,101,108,112,11073,11076,11082,59,1,8465,105,110,101,59,1,8464,97,114,116,59,1,8465,104,59,1,305,102,59,1,8887,101,100,59,1,437,4,5,59,99,102,111,116,11113,11115,11121,11136,11142,1,8712,97,114,101,59,1,8453,105,110,4,2,59,116,11129,11131,1,8734,105,101,59,1,10717,100,111,116,59,1,305,4,5,59,99,101,108,112,11154,11156,11161,11179,11186,1,8747,97,108,59,1,8890,4,2,103,114,11167,11173,101,114,115,59,1,8484,99,97,108,59,1,8890,97,114,104,107,59,1,10775,114,111,100,59,1,10812,4,4,99,103,112,116,11202,11206,11211,11216,121,59,1,1105,111,110,59,1,303,102,59,3,55349,56666,97,59,1,953,114,111,100,59,1,10812,117,101,115,116,5,191,1,59,11235,1,191,4,2,99,105,11243,11248,114,59,3,55349,56510,110,4,5,59,69,100,115,118,11261,11263,11266,11271,11282,1,8712,59,1,8953,111,116,59,1,8949,4,2,59,118,11277,11279,1,8948,59,1,8947,59,1,8712,4,2,59,105,11291,11293,1,8290,108,100,101,59,1,297,4,2,107,109,11305,11310,99,121,59,1,1110,108,5,239,1,59,11316,1,239,4,6,99,102,109,111,115,117,11332,11346,11351,11357,11363,11380,4,2,105,121,11338,11343,114,99,59,1,309,59,1,1081,114,59,3,55349,56615,97,116,104,59,1,567,112,102,59,3,55349,56667,4,2,99,101,11369,11374,114,59,3,55349,56511,114,99,121,59,1,1112,107,99,121,59,1,1108,4,8,97,99,102,103,104,106,111,115,11404,11418,11433,11438,11445,11450,11455,11461,112,112,97,4,2,59,118,11413,11415,1,954,59,1,1008,4,2,101,121,11424,11430,100,105,108,59,1,311,59,1,1082,114,59,3,55349,56616,114,101,101,110,59,1,312,99,121,59,1,1093,99,121,59,1,1116,112,102,59,3,55349,56668,99,114,59,3,55349,56512,4,23,65,66,69,72,97,98,99,100,101,102,103,104,106,108,109,110,111,112,114,115,116,117,118,11515,11538,11544,11555,11560,11721,11780,11818,11868,12136,12160,12171,12203,12208,12246,12275,12327,12509,12523,12569,12641,12732,12752,4,3,97,114,116,11523,11528,11532,114,114,59,1,8666,114,59,1,8656,97,105,108,59,1,10523,97,114,114,59,1,10510,4,2,59,103,11550,11552,1,8806,59,1,10891,97,114,59,1,10594,4,9,99,101,103,109,110,112,113,114,116,11580,11586,11594,11600,11606,11624,11627,11636,11694,117,116,101,59,1,314,109,112,116,121,118,59,1,10676,114,97,110,59,1,8466,98,100,97,59,1,955,103,4,3,59,100,108,11615,11617,11620,1,10216,59,1,10641,101,59,1,10216,59,1,10885,117,111,5,171,1,59,11634,1,171,114,4,8,59,98,102,104,108,112,115,116,11655,11657,11669,11673,11677,11681,11685,11690,1,8592,4,2,59,102,11663,11665,1,8676,115,59,1,10527,115,59,1,10525,107,59,1,8617,112,59,1,8619,108,59,1,10553,105,109,59,1,10611,108,59,1,8610,4,3,59,97,101,11702,11704,11709,1,10923,105,108,59,1,10521,4,2,59,115,11715,11717,1,10925,59,3,10925,65024,4,3,97,98,114,11729,11734,11739,114,114,59,1,10508,114,107,59,1,10098,4,2,97,107,11745,11758,99,4,2,101,107,11752,11755,59,1,123,59,1,91,4,2,101,115,11764,11767,59,1,10635,108,4,2,100,117,11774,11777,59,1,10639,59,1,10637,4,4,97,101,117,121,11790,11796,11811,11815,114,111,110,59,1,318,4,2,100,105,11802,11807,105,108,59,1,316,108,59,1,8968,98,59,1,123,59,1,1083,4,4,99,113,114,115,11828,11832,11845,11864,97,59,1,10550,117,111,4,2,59,114,11840,11842,1,8220,59,1,8222,4,2,100,117,11851,11857,104,97,114,59,1,10599,115,104,97,114,59,1,10571,104,59,1,8626,4,5,59,102,103,113,115,11880,11882,12008,12011,12031,1,8804,116,4,5,97,104,108,114,116,11895,11913,11935,11947,11996,114,114,111,119,4,2,59,116,11905,11907,1,8592,97,105,108,59,1,8610,97,114,112,111,111,110,4,2,100,117,11925,11931,111,119,110,59,1,8637,112,59,1,8636,101,102,116,97,114,114,111,119,115,59,1,8647,105,103,104,116,4,3,97,104,115,11959,11974,11984,114,114,111,119,4,2,59,115,11969,11971,1,8596,59,1,8646,97,114,112,111,111,110,115,59,1,8651,113,117,105,103,97,114,114,111,119,59,1,8621,104,114,101,101,116,105,109,101,115,59,1,8907,59,1,8922,4,3,59,113,115,12019,12021,12024,1,8804,59,1,8806,108,97,110,116,59,1,10877,4,5,59,99,100,103,115,12043,12045,12049,12070,12083,1,10877,99,59,1,10920,111,116,4,2,59,111,12057,12059,1,10879,4,2,59,114,12065,12067,1,10881,59,1,10883,4,2,59,101,12076,12079,3,8922,65024,115,59,1,10899,4,5,97,100,101,103,115,12095,12103,12108,12126,12131,112,112,114,111,120,59,1,10885,111,116,59,1,8918,113,4,2,103,113,12115,12120,116,114,59,1,8922,103,116,114,59,1,10891,116,114,59,1,8822,105,109,59,1,8818,4,3,105,108,114,12144,12150,12156,115,104,116,59,1,10620,111,111,114,59,1,8970,59,3,55349,56617,4,2,59,69,12166,12168,1,8822,59,1,10897,4,2,97,98,12177,12198,114,4,2,100,117,12184,12187,59,1,8637,4,2,59,108,12193,12195,1,8636,59,1,10602,108,107,59,1,9604,99,121,59,1,1113,4,5,59,97,99,104,116,12220,12222,12227,12235,12241,1,8810,114,114,59,1,8647,111,114,110,101,114,59,1,8990,97,114,100,59,1,10603,114,105,59,1,9722,4,2,105,111,12252,12258,100,111,116,59,1,320,117,115,116,4,2,59,97,12267,12269,1,9136,99,104,101,59,1,9136,4,4,69,97,101,115,12285,12288,12303,12322,59,1,8808,112,4,2,59,112,12295,12297,1,10889,114,111,120,59,1,10889,4,2,59,113,12309,12311,1,10887,4,2,59,113,12317,12319,1,10887,59,1,8808,105,109,59,1,8934,4,8,97,98,110,111,112,116,119,122,12345,12359,12364,12421,12446,12467,12474,12490,4,2,110,114,12351,12355,103,59,1,10220,114,59,1,8701,114,107,59,1,10214,103,4,3,108,109,114,12373,12401,12409,101,102,116,4,2,97,114,12382,12389,114,114,111,119,59,1,10229,105,103,104,116,97,114,114,111,119,59,1,10231,97,112,115,116,111,59,1,10236,105,103,104,116,97,114,114,111,119,59,1,10230,112,97,114,114,111,119,4,2,108,114,12433,12439,101,102,116,59,1,8619,105,103,104,116,59,1,8620,4,3,97,102,108,12454,12458,12462,114,59,1,10629,59,3,55349,56669,117,115,59,1,10797,105,109,101,115,59,1,10804,4,2,97,98,12480,12485,115,116,59,1,8727,97,114,59,1,95,4,3,59,101,102,12498,12500,12506,1,9674,110,103,101,59,1,9674,59,1,10731,97,114,4,2,59,108,12517,12519,1,40,116,59,1,10643,4,5,97,99,104,109,116,12535,12540,12548,12561,12564,114,114,59,1,8646,111,114,110,101,114,59,1,8991,97,114,4,2,59,100,12556,12558,1,8651,59,1,10605,59,1,8206,114,105,59,1,8895,4,6,97,99,104,105,113,116,12583,12589,12594,12597,12614,12635,113,117,111,59,1,8249,114,59,3,55349,56513,59,1,8624,109,4,3,59,101,103,12606,12608,12611,1,8818,59,1,10893,59,1,10895,4,2,98,117,12620,12623,59,1,91,111,4,2,59,114,12630,12632,1,8216,59,1,8218,114,111,107,59,1,322,5,60,8,59,99,100,104,105,108,113,114,12660,12662,12675,12680,12686,12692,12698,12705,1,60,4,2,99,105,12668,12671,59,1,10918,114,59,1,10873,111,116,59,1,8918,114,101,101,59,1,8907,109,101,115,59,1,8905,97,114,114,59,1,10614,117,101,115,116,59,1,10875,4,2,80,105,12711,12716,97,114,59,1,10646,4,3,59,101,102,12724,12726,12729,1,9667,59,1,8884,59,1,9666,114,4,2,100,117,12739,12746,115,104,97,114,59,1,10570,104,97,114,59,1,10598,4,2,101,110,12758,12768,114,116,110,101,113,113,59,3,8808,65024,69,59,3,8808,65024,4,14,68,97,99,100,101,102,104,105,108,110,111,112,115,117,12803,12809,12893,12908,12914,12928,12933,12937,13011,13025,13032,13049,13052,13069,68,111,116,59,1,8762,4,4,99,108,112,114,12819,12827,12849,12887,114,5,175,1,59,12825,1,175,4,2,101,116,12833,12836,59,1,9794,4,2,59,101,12842,12844,1,10016,115,101,59,1,10016,4,2,59,115,12855,12857,1,8614,116,111,4,4,59,100,108,117,12869,12871,12877,12883,1,8614,111,119,110,59,1,8615,101,102,116,59,1,8612,112,59,1,8613,107,101,114,59,1,9646,4,2,111,121,12899,12905,109,109,97,59,1,10793,59,1,1084,97,115,104,59,1,8212,97,115,117,114,101,100,97,110,103,108,101,59,1,8737,114,59,3,55349,56618,111,59,1,8487,4,3,99,100,110,12945,12954,12985,114,111,5,181,1,59,12952,1,181,4,4,59,97,99,100,12964,12966,12971,12976,1,8739,115,116,59,1,42,105,114,59,1,10992,111,116,5,183,1,59,12983,1,183,117,115,4,3,59,98,100,12995,12997,13e3,1,8722,59,1,8863,4,2,59,117,13006,13008,1,8760,59,1,10794,4,2,99,100,13017,13021,112,59,1,10971,114,59,1,8230,112,108,117,115,59,1,8723,4,2,100,112,13038,13044,101,108,115,59,1,8871,102,59,3,55349,56670,59,1,8723,4,2,99,116,13058,13063,114,59,3,55349,56514,112,111,115,59,1,8766,4,3,59,108,109,13077,13079,13087,1,956,116,105,109,97,112,59,1,8888,97,112,59,1,8888,4,24,71,76,82,86,97,98,99,100,101,102,103,104,105,106,108,109,111,112,114,115,116,117,118,119,13142,13165,13217,13229,13247,13330,13359,13414,13420,13508,13513,13579,13602,13626,13631,13762,13767,13855,13936,13995,14214,14285,14312,14432,4,2,103,116,13148,13152,59,3,8921,824,4,2,59,118,13158,13161,3,8811,8402,59,3,8811,824,4,3,101,108,116,13173,13200,13204,102,116,4,2,97,114,13181,13188,114,114,111,119,59,1,8653,105,103,104,116,97,114,114,111,119,59,1,8654,59,3,8920,824,4,2,59,118,13210,13213,3,8810,8402,59,3,8810,824,105,103,104,116,97,114,114,111,119,59,1,8655,4,2,68,100,13235,13241,97,115,104,59,1,8879,97,115,104,59,1,8878,4,5,98,99,110,112,116,13259,13264,13270,13275,13308,108,97,59,1,8711,117,116,101,59,1,324,103,59,3,8736,8402,4,5,59,69,105,111,112,13287,13289,13293,13298,13302,1,8777,59,3,10864,824,100,59,3,8779,824,115,59,1,329,114,111,120,59,1,8777,117,114,4,2,59,97,13316,13318,1,9838,108,4,2,59,115,13325,13327,1,9838,59,1,8469,4,2,115,117,13336,13344,112,5,160,1,59,13342,1,160,109,112,4,2,59,101,13352,13355,3,8782,824,59,3,8783,824,4,5,97,101,111,117,121,13371,13385,13391,13407,13411,4,2,112,114,13377,13380,59,1,10819,111,110,59,1,328,100,105,108,59,1,326,110,103,4,2,59,100,13399,13401,1,8775,111,116,59,3,10861,824,112,59,1,10818,59,1,1085,97,115,104,59,1,8211,4,7,59,65,97,100,113,115,120,13436,13438,13443,13466,13472,13478,13494,1,8800,114,114,59,1,8663,114,4,2,104,114,13450,13454,107,59,1,10532,4,2,59,111,13460,13462,1,8599,119,59,1,8599,111,116,59,3,8784,824,117,105,118,59,1,8802,4,2,101,105,13484,13489,97,114,59,1,10536,109,59,3,8770,824,105,115,116,4,2,59,115,13503,13505,1,8708,59,1,8708,114,59,3,55349,56619,4,4,69,101,115,116,13523,13527,13563,13568,59,3,8807,824,4,3,59,113,115,13535,13537,13559,1,8817,4,3,59,113,115,13545,13547,13551,1,8817,59,3,8807,824,108,97,110,116,59,3,10878,824,59,3,10878,824,105,109,59,1,8821,4,2,59,114,13574,13576,1,8815,59,1,8815,4,3,65,97,112,13587,13592,13597,114,114,59,1,8654,114,114,59,1,8622,97,114,59,1,10994,4,3,59,115,118,13610,13612,13623,1,8715,4,2,59,100,13618,13620,1,8956,59,1,8954,59,1,8715,99,121,59,1,1114,4,7,65,69,97,100,101,115,116,13647,13652,13656,13661,13665,13737,13742,114,114,59,1,8653,59,3,8806,824,114,114,59,1,8602,114,59,1,8229,4,4,59,102,113,115,13675,13677,13703,13725,1,8816,116,4,2,97,114,13684,13691,114,114,111,119,59,1,8602,105,103,104,116,97,114,114,111,119,59,1,8622,4,3,59,113,115,13711,13713,13717,1,8816,59,3,8806,824,108,97,110,116,59,3,10877,824,4,2,59,115,13731,13734,3,10877,824,59,1,8814,105,109,59,1,8820,4,2,59,114,13748,13750,1,8814,105,4,2,59,101,13757,13759,1,8938,59,1,8940,105,100,59,1,8740,4,2,112,116,13773,13778,102,59,3,55349,56671,5,172,3,59,105,110,13787,13789,13829,1,172,110,4,4,59,69,100,118,13800,13802,13806,13812,1,8713,59,3,8953,824,111,116,59,3,8949,824,4,3,97,98,99,13820,13823,13826,59,1,8713,59,1,8951,59,1,8950,105,4,2,59,118,13836,13838,1,8716,4,3,97,98,99,13846,13849,13852,59,1,8716,59,1,8958,59,1,8957,4,3,97,111,114,13863,13892,13899,114,4,4,59,97,115,116,13874,13876,13883,13888,1,8742,108,108,101,108,59,1,8742,108,59,3,11005,8421,59,3,8706,824,108,105,110,116,59,1,10772,4,3,59,99,101,13907,13909,13914,1,8832,117,101,59,1,8928,4,2,59,99,13920,13923,3,10927,824,4,2,59,101,13929,13931,1,8832,113,59,3,10927,824,4,4,65,97,105,116,13946,13951,13971,13982,114,114,59,1,8655,114,114,4,3,59,99,119,13961,13963,13967,1,8603,59,3,10547,824,59,3,8605,824,103,104,116,97,114,114,111,119,59,1,8603,114,105,4,2,59,101,13990,13992,1,8939,59,1,8941,4,7,99,104,105,109,112,113,117,14011,14036,14060,14080,14085,14090,14106,4,4,59,99,101,114,14021,14023,14028,14032,1,8833,117,101,59,1,8929,59,3,10928,824,59,3,55349,56515,111,114,116,4,2,109,112,14045,14050,105,100,59,1,8740,97,114,97,108,108,101,108,59,1,8742,109,4,2,59,101,14067,14069,1,8769,4,2,59,113,14075,14077,1,8772,59,1,8772,105,100,59,1,8740,97,114,59,1,8742,115,117,4,2,98,112,14098,14102,101,59,1,8930,101,59,1,8931,4,3,98,99,112,14114,14157,14171,4,4,59,69,101,115,14124,14126,14130,14133,1,8836,59,3,10949,824,59,1,8840,101,116,4,2,59,101,14141,14144,3,8834,8402,113,4,2,59,113,14151,14153,1,8840,59,3,10949,824,99,4,2,59,101,14164,14166,1,8833,113,59,3,10928,824,4,4,59,69,101,115,14181,14183,14187,14190,1,8837,59,3,10950,824,59,1,8841,101,116,4,2,59,101,14198,14201,3,8835,8402,113,4,2,59,113,14208,14210,1,8841,59,3,10950,824,4,4,103,105,108,114,14224,14228,14238,14242,108,59,1,8825,108,100,101,5,241,1,59,14236,1,241,103,59,1,8824,105,97,110,103,108,101,4,2,108,114,14254,14269,101,102,116,4,2,59,101,14263,14265,1,8938,113,59,1,8940,105,103,104,116,4,2,59,101,14279,14281,1,8939,113,59,1,8941,4,2,59,109,14291,14293,1,957,4,3,59,101,115,14301,14303,14308,1,35,114,111,59,1,8470,112,59,1,8199,4,9,68,72,97,100,103,105,108,114,115,14332,14338,14344,14349,14355,14369,14376,14408,14426,97,115,104,59,1,8877,97,114,114,59,1,10500,112,59,3,8781,8402,97,115,104,59,1,8876,4,2,101,116,14361,14365,59,3,8805,8402,59,3,62,8402,110,102,105,110,59,1,10718,4,3,65,101,116,14384,14389,14393,114,114,59,1,10498,59,3,8804,8402,4,2,59,114,14399,14402,3,60,8402,105,101,59,3,8884,8402,4,2,65,116,14414,14419,114,114,59,1,10499,114,105,101,59,3,8885,8402,105,109,59,3,8764,8402,4,3,65,97,110,14440,14445,14468,114,114,59,1,8662,114,4,2,104,114,14452,14456,107,59,1,10531,4,2,59,111,14462,14464,1,8598,119,59,1,8598,101,97,114,59,1,10535,4,18,83,97,99,100,101,102,103,104,105,108,109,111,112,114,115,116,117,118,14512,14515,14535,14560,14597,14603,14618,14643,14657,14662,14701,14741,14747,14769,14851,14877,14907,14916,59,1,9416,4,2,99,115,14521,14531,117,116,101,5,243,1,59,14529,1,243,116,59,1,8859,4,2,105,121,14541,14557,114,4,2,59,99,14548,14550,1,8858,5,244,1,59,14555,1,244,59,1,1086,4,5,97,98,105,111,115,14572,14577,14583,14587,14591,115,104,59,1,8861,108,97,99,59,1,337,118,59,1,10808,116,59,1,8857,111,108,100,59,1,10684,108,105,103,59,1,339,4,2,99,114,14609,14614,105,114,59,1,10687,59,3,55349,56620,4,3,111,114,116,14626,14630,14640,110,59,1,731,97,118,101,5,242,1,59,14638,1,242,59,1,10689,4,2,98,109,14649,14654,97,114,59,1,10677,59,1,937,110,116,59,1,8750,4,4,97,99,105,116,14672,14677,14693,14698,114,114,59,1,8634,4,2,105,114,14683,14687,114,59,1,10686,111,115,115,59,1,10683,110,101,59,1,8254,59,1,10688,4,3,97,101,105,14709,14714,14719,99,114,59,1,333,103,97,59,1,969,4,3,99,100,110,14727,14733,14736,114,111,110,59,1,959,59,1,10678,117,115,59,1,8854,112,102,59,3,55349,56672,4,3,97,101,108,14755,14759,14764,114,59,1,10679,114,112,59,1,10681,117,115,59,1,8853,4,7,59,97,100,105,111,115,118,14785,14787,14792,14831,14837,14841,14848,1,8744,114,114,59,1,8635,4,4,59,101,102,109,14802,14804,14817,14824,1,10845,114,4,2,59,111,14811,14813,1,8500,102,59,1,8500,5,170,1,59,14822,1,170,5,186,1,59,14829,1,186,103,111,102,59,1,8886,114,59,1,10838,108,111,112,101,59,1,10839,59,1,10843,4,3,99,108,111,14859,14863,14873,114,59,1,8500,97,115,104,5,248,1,59,14871,1,248,108,59,1,8856,105,4,2,108,109,14884,14893,100,101,5,245,1,59,14891,1,245,101,115,4,2,59,97,14901,14903,1,8855,115,59,1,10806,109,108,5,246,1,59,14914,1,246,98,97,114,59,1,9021,4,12,97,99,101,102,104,105,108,109,111,114,115,117,14948,14992,14996,15033,15038,15068,15090,15189,15192,15222,15427,15441,114,4,4,59,97,115,116,14959,14961,14976,14989,1,8741,5,182,2,59,108,14968,14970,1,182,108,101,108,59,1,8741,4,2,105,108,14982,14986,109,59,1,10995,59,1,11005,59,1,8706,121,59,1,1087,114,4,5,99,105,109,112,116,15009,15014,15019,15024,15027,110,116,59,1,37,111,100,59,1,46,105,108,59,1,8240,59,1,8869,101,110,107,59,1,8241,114,59,3,55349,56621,4,3,105,109,111,15046,15057,15063,4,2,59,118,15052,15054,1,966,59,1,981,109,97,116,59,1,8499,110,101,59,1,9742,4,3,59,116,118,15076,15078,15087,1,960,99,104,102,111,114,107,59,1,8916,59,1,982,4,2,97,117,15096,15119,110,4,2,99,107,15103,15115,107,4,2,59,104,15110,15112,1,8463,59,1,8462,118,59,1,8463,115,4,9,59,97,98,99,100,101,109,115,116,15140,15142,15148,15151,15156,15168,15171,15179,15184,1,43,99,105,114,59,1,10787,59,1,8862,105,114,59,1,10786,4,2,111,117,15162,15165,59,1,8724,59,1,10789,59,1,10866,110,5,177,1,59,15177,1,177,105,109,59,1,10790,119,111,59,1,10791,59,1,177,4,3,105,112,117,15200,15208,15213,110,116,105,110,116,59,1,10773,102,59,3,55349,56673,110,100,5,163,1,59,15220,1,163,4,10,59,69,97,99,101,105,110,111,115,117,15244,15246,15249,15253,15258,15334,15347,15367,15416,15421,1,8826,59,1,10931,112,59,1,10935,117,101,59,1,8828,4,2,59,99,15264,15266,1,10927,4,6,59,97,99,101,110,115,15280,15282,15290,15299,15303,15329,1,8826,112,112,114,111,120,59,1,10935,117,114,108,121,101,113,59,1,8828,113,59,1,10927,4,3,97,101,115,15311,15319,15324,112,112,114,111,120,59,1,10937,113,113,59,1,10933,105,109,59,1,8936,105,109,59,1,8830,109,101,4,2,59,115,15342,15344,1,8242,59,1,8473,4,3,69,97,115,15355,15358,15362,59,1,10933,112,59,1,10937,105,109,59,1,8936,4,3,100,102,112,15375,15378,15404,59,1,8719,4,3,97,108,115,15386,15392,15398,108,97,114,59,1,9006,105,110,101,59,1,8978,117,114,102,59,1,8979,4,2,59,116,15410,15412,1,8733,111,59,1,8733,105,109,59,1,8830,114,101,108,59,1,8880,4,2,99,105,15433,15438,114,59,3,55349,56517,59,1,968,110,99,115,112,59,1,8200,4,6,102,105,111,112,115,117,15462,15467,15472,15478,15485,15491,114,59,3,55349,56622,110,116,59,1,10764,112,102,59,3,55349,56674,114,105,109,101,59,1,8279,99,114,59,3,55349,56518,4,3,97,101,111,15499,15520,15534,116,4,2,101,105,15506,15515,114,110,105,111,110,115,59,1,8461,110,116,59,1,10774,115,116,4,2,59,101,15528,15530,1,63,113,59,1,8799,116,5,34,1,59,15540,1,34,4,21,65,66,72,97,98,99,100,101,102,104,105,108,109,110,111,112,114,115,116,117,120,15586,15609,15615,15620,15796,15855,15893,15931,15977,16001,16039,16183,16204,16222,16228,16285,16312,16318,16363,16408,16416,4,3,97,114,116,15594,15599,15603,114,114,59,1,8667,114,59,1,8658,97,105,108,59,1,10524,97,114,114,59,1,10511,97,114,59,1,10596,4,7,99,100,101,110,113,114,116,15636,15651,15656,15664,15687,15696,15770,4,2,101,117,15642,15646,59,3,8765,817,116,101,59,1,341,105,99,59,1,8730,109,112,116,121,118,59,1,10675,103,4,4,59,100,101,108,15675,15677,15680,15683,1,10217,59,1,10642,59,1,10661,101,59,1,10217,117,111,5,187,1,59,15694,1,187,114,4,11,59,97,98,99,102,104,108,112,115,116,119,15721,15723,15727,15739,15742,15746,15750,15754,15758,15763,15767,1,8594,112,59,1,10613,4,2,59,102,15733,15735,1,8677,115,59,1,10528,59,1,10547,115,59,1,10526,107,59,1,8618,112,59,1,8620,108,59,1,10565,105,109,59,1,10612,108,59,1,8611,59,1,8605,4,2,97,105,15776,15781,105,108,59,1,10522,111,4,2,59,110,15788,15790,1,8758,97,108,115,59,1,8474,4,3,97,98,114,15804,15809,15814,114,114,59,1,10509,114,107,59,1,10099,4,2,97,107,15820,15833,99,4,2,101,107,15827,15830,59,1,125,59,1,93,4,2,101,115,15839,15842,59,1,10636,108,4,2,100,117,15849,15852,59,1,10638,59,1,10640,4,4,97,101,117,121,15865,15871,15886,15890,114,111,110,59,1,345,4,2,100,105,15877,15882,105,108,59,1,343,108,59,1,8969,98,59,1,125,59,1,1088,4,4,99,108,113,115,15903,15907,15914,15927,97,59,1,10551,100,104,97,114,59,1,10601,117,111,4,2,59,114,15922,15924,1,8221,59,1,8221,104,59,1,8627,4,3,97,99,103,15939,15966,15970,108,4,4,59,105,112,115,15950,15952,15957,15963,1,8476,110,101,59,1,8475,97,114,116,59,1,8476,59,1,8477,116,59,1,9645,5,174,1,59,15975,1,174,4,3,105,108,114,15985,15991,15997,115,104,116,59,1,10621,111,111,114,59,1,8971,59,3,55349,56623,4,2,97,111,16007,16028,114,4,2,100,117,16014,16017,59,1,8641,4,2,59,108,16023,16025,1,8640,59,1,10604,4,2,59,118,16034,16036,1,961,59,1,1009,4,3,103,110,115,16047,16167,16171,104,116,4,6,97,104,108,114,115,116,16063,16081,16103,16130,16143,16155,114,114,111,119,4,2,59,116,16073,16075,1,8594,97,105,108,59,1,8611,97,114,112,111,111,110,4,2,100,117,16093,16099,111,119,110,59,1,8641,112,59,1,8640,101,102,116,4,2,97,104,16112,16120,114,114,111,119,115,59,1,8644,97,114,112,111,111,110,115,59,1,8652,105,103,104,116,97,114,114,111,119,115,59,1,8649,113,117,105,103,97,114,114,111,119,59,1,8605,104,114,101,101,116,105,109,101,115,59,1,8908,103,59,1,730,105,110,103,100,111,116,115,101,113,59,1,8787,4,3,97,104,109,16191,16196,16201,114,114,59,1,8644,97,114,59,1,8652,59,1,8207,111,117,115,116,4,2,59,97,16214,16216,1,9137,99,104,101,59,1,9137,109,105,100,59,1,10990,4,4,97,98,112,116,16238,16252,16257,16278,4,2,110,114,16244,16248,103,59,1,10221,114,59,1,8702,114,107,59,1,10215,4,3,97,102,108,16265,16269,16273,114,59,1,10630,59,3,55349,56675,117,115,59,1,10798,105,109,101,115,59,1,10805,4,2,97,112,16291,16304,114,4,2,59,103,16298,16300,1,41,116,59,1,10644,111,108,105,110,116,59,1,10770,97,114,114,59,1,8649,4,4,97,99,104,113,16328,16334,16339,16342,113,117,111,59,1,8250,114,59,3,55349,56519,59,1,8625,4,2,98,117,16348,16351,59,1,93,111,4,2,59,114,16358,16360,1,8217,59,1,8217,4,3,104,105,114,16371,16377,16383,114,101,101,59,1,8908,109,101,115,59,1,8906,105,4,4,59,101,102,108,16394,16396,16399,16402,1,9657,59,1,8885,59,1,9656,116,114,105,59,1,10702,108,117,104,97,114,59,1,10600,59,1,8478,4,19,97,98,99,100,101,102,104,105,108,109,111,112,113,114,115,116,117,119,122,16459,16466,16472,16572,16590,16672,16687,16746,16844,16850,16924,16963,16988,17115,17121,17154,17206,17614,17656,99,117,116,101,59,1,347,113,117,111,59,1,8218,4,10,59,69,97,99,101,105,110,112,115,121,16494,16496,16499,16513,16518,16531,16536,16556,16564,16569,1,8827,59,1,10932,4,2,112,114,16505,16508,59,1,10936,111,110,59,1,353,117,101,59,1,8829,4,2,59,100,16524,16526,1,10928,105,108,59,1,351,114,99,59,1,349,4,3,69,97,115,16544,16547,16551,59,1,10934,112,59,1,10938,105,109,59,1,8937,111,108,105,110,116,59,1,10771,105,109,59,1,8831,59,1,1089,111,116,4,3,59,98,101,16582,16584,16587,1,8901,59,1,8865,59,1,10854,4,7,65,97,99,109,115,116,120,16606,16611,16634,16642,16646,16652,16668,114,114,59,1,8664,114,4,2,104,114,16618,16622,107,59,1,10533,4,2,59,111,16628,16630,1,8600,119,59,1,8600,116,5,167,1,59,16640,1,167,105,59,1,59,119,97,114,59,1,10537,109,4,2,105,110,16659,16665,110,117,115,59,1,8726,59,1,8726,116,59,1,10038,114,4,2,59,111,16679,16682,3,55349,56624,119,110,59,1,8994,4,4,97,99,111,121,16697,16702,16716,16739,114,112,59,1,9839,4,2,104,121,16708,16713,99,121,59,1,1097,59,1,1096,114,116,4,2,109,112,16724,16729,105,100,59,1,8739,97,114,97,108,108,101,108,59,1,8741,5,173,1,59,16744,1,173,4,2,103,109,16752,16770,109,97,4,3,59,102,118,16762,16764,16767,1,963,59,1,962,59,1,962,4,8,59,100,101,103,108,110,112,114,16788,16790,16795,16806,16817,16828,16832,16838,1,8764,111,116,59,1,10858,4,2,59,113,16801,16803,1,8771,59,1,8771,4,2,59,69,16812,16814,1,10910,59,1,10912,4,2,59,69,16823,16825,1,10909,59,1,10911,101,59,1,8774,108,117,115,59,1,10788,97,114,114,59,1,10610,97,114,114,59,1,8592,4,4,97,101,105,116,16860,16883,16891,16904,4,2,108,115,16866,16878,108,115,101,116,109,105,110,117,115,59,1,8726,104,112,59,1,10803,112,97,114,115,108,59,1,10724,4,2,100,108,16897,16900,59,1,8739,101,59,1,8995,4,2,59,101,16910,16912,1,10922,4,2,59,115,16918,16920,1,10924,59,3,10924,65024,4,3,102,108,112,16932,16938,16958,116,99,121,59,1,1100,4,2,59,98,16944,16946,1,47,4,2,59,97,16952,16954,1,10692,114,59,1,9023,102,59,3,55349,56676,97,4,2,100,114,16970,16985,101,115,4,2,59,117,16978,16980,1,9824,105,116,59,1,9824,59,1,8741,4,3,99,115,117,16996,17028,17089,4,2,97,117,17002,17015,112,4,2,59,115,17009,17011,1,8851,59,3,8851,65024,112,4,2,59,115,17022,17024,1,8852,59,3,8852,65024,117,4,2,98,112,17035,17062,4,3,59,101,115,17043,17045,17048,1,8847,59,1,8849,101,116,4,2,59,101,17056,17058,1,8847,113,59,1,8849,4,3,59,101,115,17070,17072,17075,1,8848,59,1,8850,101,116,4,2,59,101,17083,17085,1,8848,113,59,1,8850,4,3,59,97,102,17097,17099,17112,1,9633,114,4,2,101,102,17106,17109,59,1,9633,59,1,9642,59,1,9642,97,114,114,59,1,8594,4,4,99,101,109,116,17131,17136,17142,17148,114,59,3,55349,56520,116,109,110,59,1,8726,105,108,101,59,1,8995,97,114,102,59,1,8902,4,2,97,114,17160,17172,114,4,2,59,102,17167,17169,1,9734,59,1,9733,4,2,97,110,17178,17202,105,103,104,116,4,2,101,112,17188,17197,112,115,105,108,111,110,59,1,1013,104,105,59,1,981,115,59,1,175,4,5,98,99,109,110,112,17218,17351,17420,17423,17427,4,9,59,69,100,101,109,110,112,114,115,17238,17240,17243,17248,17261,17267,17279,17285,17291,1,8834,59,1,10949,111,116,59,1,10941,4,2,59,100,17254,17256,1,8838,111,116,59,1,10947,117,108,116,59,1,10945,4,2,69,101,17273,17276,59,1,10955,59,1,8842,108,117,115,59,1,10943,97,114,114,59,1,10617,4,3,101,105,117,17299,17335,17339,116,4,3,59,101,110,17308,17310,17322,1,8834,113,4,2,59,113,17317,17319,1,8838,59,1,10949,101,113,4,2,59,113,17330,17332,1,8842,59,1,10955,109,59,1,10951,4,2,98,112,17345,17348,59,1,10965,59,1,10963,99,4,6,59,97,99,101,110,115,17366,17368,17376,17385,17389,17415,1,8827,112,112,114,111,120,59,1,10936,117,114,108,121,101,113,59,1,8829,113,59,1,10928,4,3,97,101,115,17397,17405,17410,112,112,114,111,120,59,1,10938,113,113,59,1,10934,105,109,59,1,8937,105,109,59,1,8831,59,1,8721,103,59,1,9834,4,13,49,50,51,59,69,100,101,104,108,109,110,112,115,17455,17462,17469,17476,17478,17481,17496,17509,17524,17530,17536,17548,17554,5,185,1,59,17460,1,185,5,178,1,59,17467,1,178,5,179,1,59,17474,1,179,1,8835,59,1,10950,4,2,111,115,17487,17491,116,59,1,10942,117,98,59,1,10968,4,2,59,100,17502,17504,1,8839,111,116,59,1,10948,115,4,2,111,117,17516,17520,108,59,1,10185,98,59,1,10967,97,114,114,59,1,10619,117,108,116,59,1,10946,4,2,69,101,17542,17545,59,1,10956,59,1,8843,108,117,115,59,1,10944,4,3,101,105,117,17562,17598,17602,116,4,3,59,101,110,17571,17573,17585,1,8835,113,4,2,59,113,17580,17582,1,8839,59,1,10950,101,113,4,2,59,113,17593,17595,1,8843,59,1,10956,109,59,1,10952,4,2,98,112,17608,17611,59,1,10964,59,1,10966,4,3,65,97,110,17622,17627,17650,114,114,59,1,8665,114,4,2,104,114,17634,17638,107,59,1,10534,4,2,59,111,17644,17646,1,8601,119,59,1,8601,119,97,114,59,1,10538,108,105,103,5,223,1,59,17664,1,223,4,13,97,98,99,100,101,102,104,105,111,112,114,115,119,17694,17709,17714,17737,17742,17749,17754,17860,17905,17957,17964,18090,18122,4,2,114,117,17700,17706,103,101,116,59,1,8982,59,1,964,114,107,59,1,9140,4,3,97,101,121,17722,17728,17734,114,111,110,59,1,357,100,105,108,59,1,355,59,1,1090,111,116,59,1,8411,108,114,101,99,59,1,8981,114,59,3,55349,56625,4,4,101,105,107,111,17764,17805,17836,17851,4,2,114,116,17770,17786,101,4,2,52,102,17777,17780,59,1,8756,111,114,101,59,1,8756,97,4,3,59,115,118,17795,17797,17802,1,952,121,109,59,1,977,59,1,977,4,2,99,110,17811,17831,107,4,2,97,115,17818,17826,112,112,114,111,120,59,1,8776,105,109,59,1,8764,115,112,59,1,8201,4,2,97,115,17842,17846,112,59,1,8776,105,109,59,1,8764,114,110,5,254,1,59,17858,1,254,4,3,108,109,110,17868,17873,17901,100,101,59,1,732,101,115,5,215,3,59,98,100,17884,17886,17898,1,215,4,2,59,97,17892,17894,1,8864,114,59,1,10801,59,1,10800,116,59,1,8749,4,3,101,112,115,17913,17917,17953,97,59,1,10536,4,4,59,98,99,102,17927,17929,17934,17939,1,8868,111,116,59,1,9014,105,114,59,1,10993,4,2,59,111,17945,17948,3,55349,56677,114,107,59,1,10970,97,59,1,10537,114,105,109,101,59,1,8244,4,3,97,105,112,17972,17977,18082,100,101,59,1,8482,4,7,97,100,101,109,112,115,116,17993,18051,18056,18059,18066,18072,18076,110,103,108,101,4,5,59,100,108,113,114,18009,18011,18017,18032,18035,1,9653,111,119,110,59,1,9663,101,102,116,4,2,59,101,18026,18028,1,9667,113,59,1,8884,59,1,8796,105,103,104,116,4,2,59,101,18045,18047,1,9657,113,59,1,8885,111,116,59,1,9708,59,1,8796,105,110,117,115,59,1,10810,108,117,115,59,1,10809,98,59,1,10701,105,109,101,59,1,10811,101,122,105,117,109,59,1,9186,4,3,99,104,116,18098,18111,18116,4,2,114,121,18104,18108,59,3,55349,56521,59,1,1094,99,121,59,1,1115,114,111,107,59,1,359,4,2,105,111,18128,18133,120,116,59,1,8812,104,101,97,100,4,2,108,114,18143,18154,101,102,116,97,114,114,111,119,59,1,8606,105,103,104,116,97,114,114,111,119,59,1,8608,4,18,65,72,97,98,99,100,102,103,104,108,109,111,112,114,115,116,117,119,18204,18209,18214,18234,18250,18268,18292,18308,18319,18343,18379,18397,18413,18504,18547,18553,18584,18603,114,114,59,1,8657,97,114,59,1,10595,4,2,99,114,18220,18230,117,116,101,5,250,1,59,18228,1,250,114,59,1,8593,114,4,2,99,101,18241,18245,121,59,1,1118,118,101,59,1,365,4,2,105,121,18256,18265,114,99,5,251,1,59,18263,1,251,59,1,1091,4,3,97,98,104,18276,18281,18287,114,114,59,1,8645,108,97,99,59,1,369,97,114,59,1,10606,4,2,105,114,18298,18304,115,104,116,59,1,10622,59,3,55349,56626,114,97,118,101,5,249,1,59,18317,1,249,4,2,97,98,18325,18338,114,4,2,108,114,18332,18335,59,1,8639,59,1,8638,108,107,59,1,9600,4,2,99,116,18349,18374,4,2,111,114,18355,18369,114,110,4,2,59,101,18363,18365,1,8988,114,59,1,8988,111,112,59,1,8975,114,105,59,1,9720,4,2,97,108,18385,18390,99,114,59,1,363,5,168,1,59,18395,1,168,4,2,103,112,18403,18408,111,110,59,1,371,102,59,3,55349,56678,4,6,97,100,104,108,115,117,18427,18434,18445,18470,18475,18494,114,114,111,119,59,1,8593,111,119,110,97,114,114,111,119,59,1,8597,97,114,112,111,111,110,4,2,108,114,18457,18463,101,102,116,59,1,8639,105,103,104,116,59,1,8638,117,115,59,1,8846,105,4,3,59,104,108,18484,18486,18489,1,965,59,1,978,111,110,59,1,965,112,97,114,114,111,119,115,59,1,8648,4,3,99,105,116,18512,18537,18542,4,2,111,114,18518,18532,114,110,4,2,59,101,18526,18528,1,8989,114,59,1,8989,111,112,59,1,8974,110,103,59,1,367,114,105,59,1,9721,99,114,59,3,55349,56522,4,3,100,105,114,18561,18566,18572,111,116,59,1,8944,108,100,101,59,1,361,105,4,2,59,102,18579,18581,1,9653,59,1,9652,4,2,97,109,18590,18595,114,114,59,1,8648,108,5,252,1,59,18601,1,252,97,110,103,108,101,59,1,10663,4,15,65,66,68,97,99,100,101,102,108,110,111,112,114,115,122,18643,18648,18661,18667,18847,18851,18857,18904,18909,18915,18931,18937,18943,18949,18996,114,114,59,1,8661,97,114,4,2,59,118,18656,18658,1,10984,59,1,10985,97,115,104,59,1,8872,4,2,110,114,18673,18679,103,114,116,59,1,10652,4,7,101,107,110,112,114,115,116,18695,18704,18711,18720,18742,18754,18810,112,115,105,108,111,110,59,1,1013,97,112,112,97,59,1,1008,111,116,104,105,110,103,59,1,8709,4,3,104,105,114,18728,18732,18735,105,59,1,981,59,1,982,111,112,116,111,59,1,8733,4,2,59,104,18748,18750,1,8597,111,59,1,1009,4,2,105,117,18760,18766,103,109,97,59,1,962,4,2,98,112,18772,18791,115,101,116,110,101,113,4,2,59,113,18784,18787,3,8842,65024,59,3,10955,65024,115,101,116,110,101,113,4,2,59,113,18803,18806,3,8843,65024,59,3,10956,65024,4,2,104,114,18816,18822,101,116,97,59,1,977,105,97,110,103,108,101,4,2,108,114,18834,18840,101,102,116,59,1,8882,105,103,104,116,59,1,8883,121,59,1,1074,97,115,104,59,1,8866,4,3,101,108,114,18865,18884,18890,4,3,59,98,101,18873,18875,18880,1,8744,97,114,59,1,8891,113,59,1,8794,108,105,112,59,1,8942,4,2,98,116,18896,18901,97,114,59,1,124,59,1,124,114,59,3,55349,56627,116,114,105,59,1,8882,115,117,4,2,98,112,18923,18927,59,3,8834,8402,59,3,8835,8402,112,102,59,3,55349,56679,114,111,112,59,1,8733,116,114,105,59,1,8883,4,2,99,117,18955,18960,114,59,3,55349,56523,4,2,98,112,18966,18981,110,4,2,69,101,18973,18977,59,3,10955,65024,59,3,8842,65024,110,4,2,69,101,18988,18992,59,3,10956,65024,59,3,8843,65024,105,103,122,97,103,59,1,10650,4,7,99,101,102,111,112,114,115,19020,19026,19061,19066,19072,19075,19089,105,114,99,59,1,373,4,2,100,105,19032,19055,4,2,98,103,19038,19043,97,114,59,1,10847,101,4,2,59,113,19050,19052,1,8743,59,1,8793,101,114,112,59,1,8472,114,59,3,55349,56628,112,102,59,3,55349,56680,59,1,8472,4,2,59,101,19081,19083,1,8768,97,116,104,59,1,8768,99,114,59,3,55349,56524,4,14,99,100,102,104,105,108,109,110,111,114,115,117,118,119,19125,19146,19152,19157,19173,19176,19192,19197,19202,19236,19252,19269,19286,19291,4,3,97,105,117,19133,19137,19142,112,59,1,8898,114,99,59,1,9711,112,59,1,8899,116,114,105,59,1,9661,114,59,3,55349,56629,4,2,65,97,19163,19168,114,114,59,1,10234,114,114,59,1,10231,59,1,958,4,2,65,97,19182,19187,114,114,59,1,10232,114,114,59,1,10229,97,112,59,1,10236,105,115,59,1,8955,4,3,100,112,116,19210,19215,19230,111,116,59,1,10752,4,2,102,108,19221,19225,59,3,55349,56681,117,115,59,1,10753,105,109,101,59,1,10754,4,2,65,97,19242,19247,114,114,59,1,10233,114,114,59,1,10230,4,2,99,113,19258,19263,114,59,3,55349,56525,99,117,112,59,1,10758,4,2,112,116,19275,19281,108,117,115,59,1,10756,114,105,59,1,9651,101,101,59,1,8897,101,100,103,101,59,1,8896,4,8,97,99,101,102,105,111,115,117,19316,19335,19349,19357,19362,19367,19373,19379,99,4,2,117,121,19323,19332,116,101,5,253,1,59,19330,1,253,59,1,1103,4,2,105,121,19341,19346,114,99,59,1,375,59,1,1099,110,5,165,1,59,19355,1,165,114,59,3,55349,56630,99,121,59,1,1111,112,102,59,3,55349,56682,99,114,59,3,55349,56526,4,2,99,109,19385,19389,121,59,1,1102,108,5,255,1,59,19395,1,255,4,10,97,99,100,101,102,104,105,111,115,119,19419,19426,19441,19446,19462,19467,19472,19480,19486,19492,99,117,116,101,59,1,378,4,2,97,121,19432,19438,114,111,110,59,1,382,59,1,1079,111,116,59,1,380,4,2,101,116,19452,19458,116,114,102,59,1,8488,97,59,1,950,114,59,3,55349,56631,99,121,59,1,1078,103,114,97,114,114,59,1,8669,112,102,59,3,55349,56683,99,114,59,3,55349,56527,4,2,106,110,19498,19501,59,1,8205,106,59,1,8204]);const PS=RS,IS=SS,LS=NS,DS=wS,FS=IS.CODE_POINTS,MS=IS.CODE_POINT_SEQUENCES,BS={128:8364,130:8218,131:402,132:8222,133:8230,134:8224,135:8225,136:710,137:8240,138:352,139:8249,140:338,142:381,145:8216,146:8217,147:8220,148:8221,149:8226,150:8211,151:8212,152:732,153:8482,154:353,155:8250,156:339,158:382,159:376},US="DATA_STATE",HS="RCDATA_STATE",jS="RAWTEXT_STATE",qS="SCRIPT_DATA_STATE",zS="PLAINTEXT_STATE",GS="TAG_OPEN_STATE",$S="END_TAG_OPEN_STATE",KS="TAG_NAME_STATE",VS="RCDATA_LESS_THAN_SIGN_STATE",WS="RCDATA_END_TAG_OPEN_STATE",QS="RCDATA_END_TAG_NAME_STATE",YS="RAWTEXT_LESS_THAN_SIGN_STATE",XS="RAWTEXT_END_TAG_OPEN_STATE",JS="RAWTEXT_END_TAG_NAME_STATE",ZS="SCRIPT_DATA_LESS_THAN_SIGN_STATE",ek="SCRIPT_DATA_END_TAG_OPEN_STATE",tk="SCRIPT_DATA_END_TAG_NAME_STATE",rk="SCRIPT_DATA_ESCAPE_START_STATE",nk="SCRIPT_DATA_ESCAPE_START_DASH_STATE",ok="SCRIPT_DATA_ESCAPED_STATE",ik="SCRIPT_DATA_ESCAPED_DASH_STATE",sk="SCRIPT_DATA_ESCAPED_DASH_DASH_STATE",ak="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN_STATE",ck="SCRIPT_DATA_ESCAPED_END_TAG_OPEN_STATE",lk="SCRIPT_DATA_ESCAPED_END_TAG_NAME_STATE",uk="SCRIPT_DATA_DOUBLE_ESCAPE_START_STATE",hk="SCRIPT_DATA_DOUBLE_ESCAPED_STATE",fk="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_STATE",pk="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH_STATE",dk="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN_STATE",mk="SCRIPT_DATA_DOUBLE_ESCAPE_END_STATE",gk="BEFORE_ATTRIBUTE_NAME_STATE",yk="ATTRIBUTE_NAME_STATE",Ek="AFTER_ATTRIBUTE_NAME_STATE",Tk="BEFORE_ATTRIBUTE_VALUE_STATE",vk="ATTRIBUTE_VALUE_DOUBLE_QUOTED_STATE",bk="ATTRIBUTE_VALUE_SINGLE_QUOTED_STATE",_k="ATTRIBUTE_VALUE_UNQUOTED_STATE",Ak="AFTER_ATTRIBUTE_VALUE_QUOTED_STATE",Sk="SELF_CLOSING_START_TAG_STATE",kk="BOGUS_COMMENT_STATE",wk="MARKUP_DECLARATION_OPEN_STATE",Ck="COMMENT_START_STATE",xk="COMMENT_START_DASH_STATE",Ok="COMMENT_STATE",Rk="COMMENT_LESS_THAN_SIGN_STATE",Nk="COMMENT_LESS_THAN_SIGN_BANG_STATE",Pk="COMMENT_LESS_THAN_SIGN_BANG_DASH_STATE",Ik="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH_STATE",Lk="COMMENT_END_DASH_STATE",Dk="COMMENT_END_STATE",Fk="COMMENT_END_BANG_STATE",Mk="DOCTYPE_STATE",Bk="BEFORE_DOCTYPE_NAME_STATE",Uk="DOCTYPE_NAME_STATE",Hk="AFTER_DOCTYPE_NAME_STATE",jk="AFTER_DOCTYPE_PUBLIC_KEYWORD_STATE",qk="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER_STATE",zk="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED_STATE",Gk="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED_STATE",$k="AFTER_DOCTYPE_PUBLIC_IDENTIFIER_STATE",Kk="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS_STATE",Vk="AFTER_DOCTYPE_SYSTEM_KEYWORD_STATE",Wk="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER_STATE",Qk="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED_STATE",Yk="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED_STATE",Xk="AFTER_DOCTYPE_SYSTEM_IDENTIFIER_STATE",Jk="BOGUS_DOCTYPE_STATE",Zk="CDATA_SECTION_STATE",ew="CDATA_SECTION_BRACKET_STATE",tw="CDATA_SECTION_END_STATE",rw="CHARACTER_REFERENCE_STATE",nw="NAMED_CHARACTER_REFERENCE_STATE",ow="AMBIGUOS_AMPERSAND_STATE",iw="NUMERIC_CHARACTER_REFERENCE_STATE",sw="HEXADEMICAL_CHARACTER_REFERENCE_START_STATE",aw="DECIMAL_CHARACTER_REFERENCE_START_STATE",cw="HEXADEMICAL_CHARACTER_REFERENCE_STATE",lw="DECIMAL_CHARACTER_REFERENCE_STATE",uw="NUMERIC_CHARACTER_REFERENCE_END_STATE";function hw(e){return e===FS.SPACE||e===FS.LINE_FEED||e===FS.TABULATION||e===FS.FORM_FEED}function fw(e){return e>=FS.DIGIT_0&&e<=FS.DIGIT_9}function pw(e){return e>=FS.LATIN_CAPITAL_A&&e<=FS.LATIN_CAPITAL_Z}function dw(e){return e>=FS.LATIN_SMALL_A&&e<=FS.LATIN_SMALL_Z}function mw(e){return dw(e)||pw(e)}function gw(e){return mw(e)||fw(e)}function yw(e){return e>=FS.LATIN_CAPITAL_A&&e<=FS.LATIN_CAPITAL_F}function Ew(e){return e>=FS.LATIN_SMALL_A&&e<=FS.LATIN_SMALL_F}function Tw(e){return e+32}function vw(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode(e>>>10&1023|55296)+String.fromCharCode(56320|1023&e))}function bw(e){return String.fromCharCode(Tw(e))}function _w(e,t){const r=LS[++e];let n=++e,o=n+r-1;for(;n<=o;){const e=n+o>>>1,i=LS[e];if(i<t)n=e+1;else{if(!(i>t))return LS[e+r];o=e-1}}return-1}class Aw{constructor(){this.preprocessor=new PS,this.tokenQueue=[],this.allowCDATA=!1,this.state=US,this.returnState="",this.charRefCode=-1,this.tempBuff=[],this.lastStartTagName="",this.consumedAfterSnapshot=-1,this.active=!1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr=null}_err(){}_errOnNextCodePoint(e){this._consume(),this._err(e),this._unconsume()}getNextToken(){for(;!this.tokenQueue.length&&this.active;){this.consumedAfterSnapshot=0;const e=this._consume();this._ensureHibernation()||this[this.state](e)}return this.tokenQueue.shift()}write(e,t){this.active=!0,this.preprocessor.write(e,t)}insertHtmlAtCurrentPos(e){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(e)}_ensureHibernation(){if(this.preprocessor.endOfChunkHit){for(;this.consumedAfterSnapshot>0;this.consumedAfterSnapshot--)this.preprocessor.retreat();return this.active=!1,this.tokenQueue.push({type:Aw.HIBERNATION_TOKEN}),!0}return!1}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_unconsume(){this.consumedAfterSnapshot--,this.preprocessor.retreat()}_reconsumeInState(e){this.state=e,this._unconsume()}_consumeSequenceIfMatch(e,t,r){let n=0,o=!0;const i=e.length;let s,a=0,c=t;for(;a<i;a++){if(a>0&&(c=this._consume(),n++),c===FS.EOF){o=!1;break}if(s=e[a],c!==s&&(r||c!==Tw(s))){o=!1;break}}if(!o)for(;n--;)this._unconsume();return o}_isTempBufferEqualToScriptString(){if(this.tempBuff.length!==MS.SCRIPT_STRING.length)return!1;for(let e=0;e<this.tempBuff.length;e++)if(this.tempBuff[e]!==MS.SCRIPT_STRING[e])return!1;return!0}_createStartTagToken(){this.currentToken={type:Aw.START_TAG_TOKEN,tagName:"",selfClosing:!1,ackSelfClosing:!1,attrs:[]}}_createEndTagToken(){this.currentToken={type:Aw.END_TAG_TOKEN,tagName:"",selfClosing:!1,attrs:[]}}_createCommentToken(){this.currentToken={type:Aw.COMMENT_TOKEN,data:""}}_createDoctypeToken(e){this.currentToken={type:Aw.DOCTYPE_TOKEN,name:e,forceQuirks:!1,publicId:null,systemId:null}}_createCharacterToken(e,t){this.currentCharacterToken={type:e,chars:t}}_createEOFToken(){this.currentToken={type:Aw.EOF_TOKEN}}_createAttr(e){this.currentAttr={name:e,value:""}}_leaveAttrName(e){null===Aw.getTokenAttr(this.currentToken,this.currentAttr.name)?this.currentToken.attrs.push(this.currentAttr):this._err(DS.duplicateAttribute),this.state=e}_leaveAttrValue(e){this.state=e}_emitCurrentToken(){this._emitCurrentCharacterToken();const e=this.currentToken;this.currentToken=null,e.type===Aw.START_TAG_TOKEN?this.lastStartTagName=e.tagName:e.type===Aw.END_TAG_TOKEN&&(e.attrs.length>0&&this._err(DS.endTagWithAttributes),e.selfClosing&&this._err(DS.endTagWithTrailingSolidus)),this.tokenQueue.push(e)}_emitCurrentCharacterToken(){this.currentCharacterToken&&(this.tokenQueue.push(this.currentCharacterToken),this.currentCharacterToken=null)}_emitEOFToken(){this._createEOFToken(),this._emitCurrentToken()}_appendCharToCurrentCharacterToken(e,t){this.currentCharacterToken&&this.currentCharacterToken.type!==e&&this._emitCurrentCharacterToken(),this.currentCharacterToken?this.currentCharacterToken.chars+=t:this._createCharacterToken(e,t)}_emitCodePoint(e){let t=Aw.CHARACTER_TOKEN;hw(e)?t=Aw.WHITESPACE_CHARACTER_TOKEN:e===FS.NULL&&(t=Aw.NULL_CHARACTER_TOKEN),this._appendCharToCurrentCharacterToken(t,vw(e))}_emitSeveralCodePoints(e){for(let t=0;t<e.length;t++)this._emitCodePoint(e[t])}_emitChars(e){this._appendCharToCurrentCharacterToken(Aw.CHARACTER_TOKEN,e)}_matchNamedCharacterReference(e){let t=null,r=1,n=_w(0,e);for(this.tempBuff.push(e);n>-1;){const e=LS[n],o=e<7;o&&1&e&&(t=2&e?[LS[++n],LS[++n]]:[LS[++n]],r=0);const i=this._consume();if(this.tempBuff.push(i),r++,i===FS.EOF)break;n=o?4&e?_w(n,i):-1:i===e?++n:-1}for(;r--;)this.tempBuff.pop(),this._unconsume();return t}_isCharacterReferenceInAttribute(){return this.returnState===vk||this.returnState===bk||this.returnState===_k}_isCharacterReferenceAttributeQuirk(e){if(!e&&this._isCharacterReferenceInAttribute()){const e=this._consume();return this._unconsume(),e===FS.EQUALS_SIGN||gw(e)}return!1}_flushCodePointsConsumedAsCharacterReference(){if(this._isCharacterReferenceInAttribute())for(let e=0;e<this.tempBuff.length;e++)this.currentAttr.value+=vw(this.tempBuff[e]);else this._emitSeveralCodePoints(this.tempBuff);this.tempBuff=[]}[US](e){this.preprocessor.dropParsedChunk(),e===FS.LESS_THAN_SIGN?this.state=GS:e===FS.AMPERSAND?(this.returnState=US,this.state=rw):e===FS.NULL?(this._err(DS.unexpectedNullCharacter),this._emitCodePoint(e)):e===FS.EOF?this._emitEOFToken():this._emitCodePoint(e)}[HS](e){this.preprocessor.dropParsedChunk(),e===FS.AMPERSAND?(this.returnState=HS,this.state=rw):e===FS.LESS_THAN_SIGN?this.state=VS:e===FS.NULL?(this._err(DS.unexpectedNullCharacter),this._emitChars(IS.REPLACEMENT_CHARACTER)):e===FS.EOF?this._emitEOFToken():this._emitCodePoint(e)}[jS](e){this.preprocessor.dropParsedChunk(),e===FS.LESS_THAN_SIGN?this.state=YS:e===FS.NULL?(this._err(DS.unexpectedNullCharacter),this._emitChars(IS.REPLACEMENT_CHARACTER)):e===FS.EOF?this._emitEOFToken():this._emitCodePoint(e)}[qS](e){this.preprocessor.dropParsedChunk(),e===FS.LESS_THAN_SIGN?this.state=ZS:e===FS.NULL?(this._err(DS.unexpectedNullCharacter),this._emitChars(IS.REPLACEMENT_CHARACTER)):e===FS.EOF?this._emitEOFToken():this._emitCodePoint(e)}[zS](e){this.preprocessor.dropParsedChunk(),e===FS.NULL?(this._err(DS.unexpectedNullCharacter),this._emitChars(IS.REPLACEMENT_CHARACTER)):e===FS.EOF?this._emitEOFToken():this._emitCodePoint(e)}[GS](e){e===FS.EXCLAMATION_MARK?this.state=wk:e===FS.SOLIDUS?this.state=$S:mw(e)?(this._createStartTagToken(),this._reconsumeInState(KS)):e===FS.QUESTION_MARK?(this._err(DS.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(),this._reconsumeInState(kk)):e===FS.EOF?(this._err(DS.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken()):(this._err(DS.invalidFirstCharacterOfTagName),this._emitChars("<"),this._reconsumeInState(US))}[$S](e){mw(e)?(this._createEndTagToken(),this._reconsumeInState(KS)):e===FS.GREATER_THAN_SIGN?(this._err(DS.missingEndTagName),this.state=US):e===FS.EOF?(this._err(DS.eofBeforeTagName),this._emitChars("</"),this._emitEOFToken()):(this._err(DS.invalidFirstCharacterOfTagName),this._createCommentToken(),this._reconsumeInState(kk))}[KS](e){hw(e)?this.state=gk:e===FS.SOLIDUS?this.state=Sk:e===FS.GREATER_THAN_SIGN?(this.state=US,this._emitCurrentToken()):pw(e)?this.currentToken.tagName+=bw(e):e===FS.NULL?(this._err(DS.unexpectedNullCharacter),this.currentToken.tagName+=IS.REPLACEMENT_CHARACTER):e===FS.EOF?(this._err(DS.eofInTag),this._emitEOFToken()):this.currentToken.tagName+=vw(e)}[VS](e){e===FS.SOLIDUS?(this.tempBuff=[],this.state=WS):(this._emitChars("<"),this._reconsumeInState(HS))}[WS](e){mw(e)?(this._createEndTagToken(),this._reconsumeInState(QS)):(this._emitChars("</"),this._reconsumeInState(HS))}[QS](e){if(pw(e))this.currentToken.tagName+=bw(e),this.tempBuff.push(e);else if(dw(e))this.currentToken.tagName+=vw(e),this.tempBuff.push(e);else{if(this.lastStartTagName===this.currentToken.tagName){if(hw(e))return void(this.state=gk);if(e===FS.SOLIDUS)return void(this.state=Sk);if(e===FS.GREATER_THAN_SIGN)return this.state=US,void this._emitCurrentToken()}this._emitChars("</"),this._emitSeveralCodePoints(this.tempBuff),this._reconsumeInState(HS)}}[YS](e){e===FS.SOLIDUS?(this.tempBuff=[],this.state=XS):(this._emitChars("<"),this._reconsumeInState(jS))}[XS](e){mw(e)?(this._createEndTagToken(),this._reconsumeInState(JS)):(this._emitChars("</"),this._reconsumeInState(jS))}[JS](e){if(pw(e))this.currentToken.tagName+=bw(e),this.tempBuff.push(e);else if(dw(e))this.currentToken.tagName+=vw(e),this.tempBuff.push(e);else{if(this.lastStartTagName===this.currentToken.tagName){if(hw(e))return void(this.state=gk);if(e===FS.SOLIDUS)return void(this.state=Sk);if(e===FS.GREATER_THAN_SIGN)return this._emitCurrentToken(),void(this.state=US)}this._emitChars("</"),this._emitSeveralCodePoints(this.tempBuff),this._reconsumeInState(jS)}}[ZS](e){e===FS.SOLIDUS?(this.tempBuff=[],this.state=ek):e===FS.EXCLAMATION_MARK?(this.state=rk,this._emitChars("<!")):(this._emitChars("<"),this._reconsumeInState(qS))}[ek](e){mw(e)?(this._createEndTagToken(),this._reconsumeInState(tk)):(this._emitChars("</"),this._reconsumeInState(qS))}[tk](e){if(pw(e))this.currentToken.tagName+=bw(e),this.tempBuff.push(e);else if(dw(e))this.currentToken.tagName+=vw(e),this.tempBuff.push(e);else{if(this.lastStartTagName===this.currentToken.tagName){if(hw(e))return void(this.state=gk);if(e===FS.SOLIDUS)return void(this.state=Sk);if(e===FS.GREATER_THAN_SIGN)return this._emitCurrentToken(),void(this.state=US)}this._emitChars("</"),this._emitSeveralCodePoints(this.tempBuff),this._reconsumeInState(qS)}}[rk](e){e===FS.HYPHEN_MINUS?(this.state=nk,this._emitChars("-")):this._reconsumeInState(qS)}[nk](e){e===FS.HYPHEN_MINUS?(this.state=sk,this._emitChars("-")):this._reconsumeInState(qS)}[ok](e){e===FS.HYPHEN_MINUS?(this.state=ik,this._emitChars("-")):e===FS.LESS_THAN_SIGN?this.state=ak:e===FS.NULL?(this._err(DS.unexpectedNullCharacter),this._emitChars(IS.REPLACEMENT_CHARACTER)):e===FS.EOF?(this._err(DS.eofInScriptHtmlCommentLikeText),this._emitEOFToken()):this._emitCodePoint(e)}[ik](e){e===FS.HYPHEN_MINUS?(this.state=sk,this._emitChars("-")):e===FS.LESS_THAN_SIGN?this.state=ak:e===FS.NULL?(this._err(DS.unexpectedNullCharacter),this.state=ok,this._emitChars(IS.REPLACEMENT_CHARACTER)):e===FS.EOF?(this._err(DS.eofInScriptHtmlCommentLikeText),this._emitEOFToken()):(this.state=ok,this._emitCodePoint(e))}[sk](e){e===FS.HYPHEN_MINUS?this._emitChars("-"):e===FS.LESS_THAN_SIGN?this.state=ak:e===FS.GREATER_THAN_SIGN?(this.state=qS,this._emitChars(">")):e===FS.NULL?(this._err(DS.unexpectedNullCharacter),this.state=ok,this._emitChars(IS.REPLACEMENT_CHARACTER)):e===FS.EOF?(this._err(DS.eofInScriptHtmlCommentLikeText),this._emitEOFToken()):(this.state=ok,this._emitCodePoint(e))}[ak](e){e===FS.SOLIDUS?(this.tempBuff=[],this.state=ck):mw(e)?(this.tempBuff=[],this._emitChars("<"),this._reconsumeInState(uk)):(this._emitChars("<"),this._reconsumeInState(ok))}[ck](e){mw(e)?(this._createEndTagToken(),this._reconsumeInState(lk)):(this._emitChars("</"),this._reconsumeInState(ok))}[lk](e){if(pw(e))this.currentToken.tagName+=bw(e),this.tempBuff.push(e);else if(dw(e))this.currentToken.tagName+=vw(e),this.tempBuff.push(e);else{if(this.lastStartTagName===this.currentToken.tagName){if(hw(e))return void(this.state=gk);if(e===FS.SOLIDUS)return void(this.state=Sk);if(e===FS.GREATER_THAN_SIGN)return this._emitCurrentToken(),void(this.state=US)}this._emitChars("</"),this._emitSeveralCodePoints(this.tempBuff),this._reconsumeInState(ok)}}[uk](e){hw(e)||e===FS.SOLIDUS||e===FS.GREATER_THAN_SIGN?(this.state=this._isTempBufferEqualToScriptString()?hk:ok,this._emitCodePoint(e)):pw(e)?(this.tempBuff.push(Tw(e)),this._emitCodePoint(e)):dw(e)?(this.tempBuff.push(e),this._emitCodePoint(e)):this._reconsumeInState(ok)}[hk](e){e===FS.HYPHEN_MINUS?(this.state=fk,this._emitChars("-")):e===FS.LESS_THAN_SIGN?(this.state=dk,this._emitChars("<")):e===FS.NULL?(this._err(DS.unexpectedNullCharacter),this._emitChars(IS.REPLACEMENT_CHARACTER)):e===FS.EOF?(this._err(DS.eofInScriptHtmlCommentLikeText),this._emitEOFToken()):this._emitCodePoint(e)}[fk](e){e===FS.HYPHEN_MINUS?(this.state=pk,this._emitChars("-")):e===FS.LESS_THAN_SIGN?(this.state=dk,this._emitChars("<")):e===FS.NULL?(this._err(DS.unexpectedNullCharacter),this.state=hk,this._emitChars(IS.REPLACEMENT_CHARACTER)):e===FS.EOF?(this._err(DS.eofInScriptHtmlCommentLikeText),this._emitEOFToken()):(this.state=hk,this._emitCodePoint(e))}[pk](e){e===FS.HYPHEN_MINUS?this._emitChars("-"):e===FS.LESS_THAN_SIGN?(this.state=dk,this._emitChars("<")):e===FS.GREATER_THAN_SIGN?(this.state=qS,this._emitChars(">")):e===FS.NULL?(this._err(DS.unexpectedNullCharacter),this.state=hk,this._emitChars(IS.REPLACEMENT_CHARACTER)):e===FS.EOF?(this._err(DS.eofInScriptHtmlCommentLikeText),this._emitEOFToken()):(this.state=hk,this._emitCodePoint(e))}[dk](e){e===FS.SOLIDUS?(this.tempBuff=[],this.state=mk,this._emitChars("/")):this._reconsumeInState(hk)}[mk](e){hw(e)||e===FS.SOLIDUS||e===FS.GREATER_THAN_SIGN?(this.state=this._isTempBufferEqualToScriptString()?ok:hk,this._emitCodePoint(e)):pw(e)?(this.tempBuff.push(Tw(e)),this._emitCodePoint(e)):dw(e)?(this.tempBuff.push(e),this._emitCodePoint(e)):this._reconsumeInState(hk)}[gk](e){hw(e)||(e===FS.SOLIDUS||e===FS.GREATER_THAN_SIGN||e===FS.EOF?this._reconsumeInState(Ek):e===FS.EQUALS_SIGN?(this._err(DS.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state=yk):(this._createAttr(""),this._reconsumeInState(yk)))}[yk](e){hw(e)||e===FS.SOLIDUS||e===FS.GREATER_THAN_SIGN||e===FS.EOF?(this._leaveAttrName(Ek),this._unconsume()):e===FS.EQUALS_SIGN?this._leaveAttrName(Tk):pw(e)?this.currentAttr.name+=bw(e):e===FS.QUOTATION_MARK||e===FS.APOSTROPHE||e===FS.LESS_THAN_SIGN?(this._err(DS.unexpectedCharacterInAttributeName),this.currentAttr.name+=vw(e)):e===FS.NULL?(this._err(DS.unexpectedNullCharacter),this.currentAttr.name+=IS.REPLACEMENT_CHARACTER):this.currentAttr.name+=vw(e)}[Ek](e){hw(e)||(e===FS.SOLIDUS?this.state=Sk:e===FS.EQUALS_SIGN?this.state=Tk:e===FS.GREATER_THAN_SIGN?(this.state=US,this._emitCurrentToken()):e===FS.EOF?(this._err(DS.eofInTag),this._emitEOFToken()):(this._createAttr(""),this._reconsumeInState(yk)))}[Tk](e){hw(e)||(e===FS.QUOTATION_MARK?this.state=vk:e===FS.APOSTROPHE?this.state=bk:e===FS.GREATER_THAN_SIGN?(this._err(DS.missingAttributeValue),this.state=US,this._emitCurrentToken()):this._reconsumeInState(_k))}[vk](e){e===FS.QUOTATION_MARK?this.state=Ak:e===FS.AMPERSAND?(this.returnState=vk,this.state=rw):e===FS.NULL?(this._err(DS.unexpectedNullCharacter),this.currentAttr.value+=IS.REPLACEMENT_CHARACTER):e===FS.EOF?(this._err(DS.eofInTag),this._emitEOFToken()):this.currentAttr.value+=vw(e)}[bk](e){e===FS.APOSTROPHE?this.state=Ak:e===FS.AMPERSAND?(this.returnState=bk,this.state=rw):e===FS.NULL?(this._err(DS.unexpectedNullCharacter),this.currentAttr.value+=IS.REPLACEMENT_CHARACTER):e===FS.EOF?(this._err(DS.eofInTag),this._emitEOFToken()):this.currentAttr.value+=vw(e)}[_k](e){hw(e)?this._leaveAttrValue(gk):e===FS.AMPERSAND?(this.returnState=_k,this.state=rw):e===FS.GREATER_THAN_SIGN?(this._leaveAttrValue(US),this._emitCurrentToken()):e===FS.NULL?(this._err(DS.unexpectedNullCharacter),this.currentAttr.value+=IS.REPLACEMENT_CHARACTER):e===FS.QUOTATION_MARK||e===FS.APOSTROPHE||e===FS.LESS_THAN_SIGN||e===FS.EQUALS_SIGN||e===FS.GRAVE_ACCENT?(this._err(DS.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=vw(e)):e===FS.EOF?(this._err(DS.eofInTag),this._emitEOFToken()):this.currentAttr.value+=vw(e)}[Ak](e){hw(e)?this._leaveAttrValue(gk):e===FS.SOLIDUS?this._leaveAttrValue(Sk):e===FS.GREATER_THAN_SIGN?(this._leaveAttrValue(US),this._emitCurrentToken()):e===FS.EOF?(this._err(DS.eofInTag),this._emitEOFToken()):(this._err(DS.missingWhitespaceBetweenAttributes),this._reconsumeInState(gk))}[Sk](e){e===FS.GREATER_THAN_SIGN?(this.currentToken.selfClosing=!0,this.state=US,this._emitCurrentToken()):e===FS.EOF?(this._err(DS.eofInTag),this._emitEOFToken()):(this._err(DS.unexpectedSolidusInTag),this._reconsumeInState(gk))}[kk](e){e===FS.GREATER_THAN_SIGN?(this.state=US,this._emitCurrentToken()):e===FS.EOF?(this._emitCurrentToken(),this._emitEOFToken()):e===FS.NULL?(this._err(DS.unexpectedNullCharacter),this.currentToken.data+=IS.REPLACEMENT_CHARACTER):this.currentToken.data+=vw(e)}[wk](e){this._consumeSequenceIfMatch(MS.DASH_DASH_STRING,e,!0)?(this._createCommentToken(),this.state=Ck):this._consumeSequenceIfMatch(MS.DOCTYPE_STRING,e,!1)?this.state=Mk:this._consumeSequenceIfMatch(MS.CDATA_START_STRING,e,!0)?this.allowCDATA?this.state=Zk:(this._err(DS.cdataInHtmlContent),this._createCommentToken(),this.currentToken.data="[CDATA[",this.state=kk):this._ensureHibernation()||(this._err(DS.incorrectlyOpenedComment),this._createCommentToken(),this._reconsumeInState(kk))}[Ck](e){e===FS.HYPHEN_MINUS?this.state=xk:e===FS.GREATER_THAN_SIGN?(this._err(DS.abruptClosingOfEmptyComment),this.state=US,this._emitCurrentToken()):this._reconsumeInState(Ok)}[xk](e){e===FS.HYPHEN_MINUS?this.state=Dk:e===FS.GREATER_THAN_SIGN?(this._err(DS.abruptClosingOfEmptyComment),this.state=US,this._emitCurrentToken()):e===FS.EOF?(this._err(DS.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):(this.currentToken.data+="-",this._reconsumeInState(Ok))}[Ok](e){e===FS.HYPHEN_MINUS?this.state=Lk:e===FS.LESS_THAN_SIGN?(this.currentToken.data+="<",this.state=Rk):e===FS.NULL?(this._err(DS.unexpectedNullCharacter),this.currentToken.data+=IS.REPLACEMENT_CHARACTER):e===FS.EOF?(this._err(DS.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.data+=vw(e)}[Rk](e){e===FS.EXCLAMATION_MARK?(this.currentToken.data+="!",this.state=Nk):e===FS.LESS_THAN_SIGN?this.currentToken.data+="!":this._reconsumeInState(Ok)}[Nk](e){e===FS.HYPHEN_MINUS?this.state=Pk:this._reconsumeInState(Ok)}[Pk](e){e===FS.HYPHEN_MINUS?this.state=Ik:this._reconsumeInState(Lk)}[Ik](e){e!==FS.GREATER_THAN_SIGN&&e!==FS.EOF&&this._err(DS.nestedComment),this._reconsumeInState(Dk)}[Lk](e){e===FS.HYPHEN_MINUS?this.state=Dk:e===FS.EOF?(this._err(DS.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):(this.currentToken.data+="-",this._reconsumeInState(Ok))}[Dk](e){e===FS.GREATER_THAN_SIGN?(this.state=US,this._emitCurrentToken()):e===FS.EXCLAMATION_MARK?this.state=Fk:e===FS.HYPHEN_MINUS?this.currentToken.data+="-":e===FS.EOF?(this._err(DS.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):(this.currentToken.data+="--",this._reconsumeInState(Ok))}[Fk](e){e===FS.HYPHEN_MINUS?(this.currentToken.data+="--!",this.state=Lk):e===FS.GREATER_THAN_SIGN?(this._err(DS.incorrectlyClosedComment),this.state=US,this._emitCurrentToken()):e===FS.EOF?(this._err(DS.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):(this.currentToken.data+="--!",this._reconsumeInState(Ok))}[Mk](e){hw(e)?this.state=Bk:e===FS.GREATER_THAN_SIGN?this._reconsumeInState(Bk):e===FS.EOF?(this._err(DS.eofInDoctype),this._createDoctypeToken(null),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(DS.missingWhitespaceBeforeDoctypeName),this._reconsumeInState(Bk))}[Bk](e){hw(e)||(pw(e)?(this._createDoctypeToken(bw(e)),this.state=Uk):e===FS.NULL?(this._err(DS.unexpectedNullCharacter),this._createDoctypeToken(IS.REPLACEMENT_CHARACTER),this.state=Uk):e===FS.GREATER_THAN_SIGN?(this._err(DS.missingDoctypeName),this._createDoctypeToken(null),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=US):e===FS.EOF?(this._err(DS.eofInDoctype),this._createDoctypeToken(null),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._createDoctypeToken(vw(e)),this.state=Uk))}[Uk](e){hw(e)?this.state=Hk:e===FS.GREATER_THAN_SIGN?(this.state=US,this._emitCurrentToken()):pw(e)?this.currentToken.name+=bw(e):e===FS.NULL?(this._err(DS.unexpectedNullCharacter),this.currentToken.name+=IS.REPLACEMENT_CHARACTER):e===FS.EOF?(this._err(DS.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.name+=vw(e)}[Hk](e){hw(e)||(e===FS.GREATER_THAN_SIGN?(this.state=US,this._emitCurrentToken()):e===FS.EOF?(this._err(DS.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this._consumeSequenceIfMatch(MS.PUBLIC_STRING,e,!1)?this.state=jk:this._consumeSequenceIfMatch(MS.SYSTEM_STRING,e,!1)?this.state=Vk:this._ensureHibernation()||(this._err(DS.invalidCharacterSequenceAfterDoctypeName),this.currentToken.forceQuirks=!0,this._reconsumeInState(Jk)))}[jk](e){hw(e)?this.state=qk:e===FS.QUOTATION_MARK?(this._err(DS.missingWhitespaceAfterDoctypePublicKeyword),this.currentToken.publicId="",this.state=zk):e===FS.APOSTROPHE?(this._err(DS.missingWhitespaceAfterDoctypePublicKeyword),this.currentToken.publicId="",this.state=Gk):e===FS.GREATER_THAN_SIGN?(this._err(DS.missingDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this.state=US,this._emitCurrentToken()):e===FS.EOF?(this._err(DS.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(DS.missingQuoteBeforeDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(Jk))}[qk](e){hw(e)||(e===FS.QUOTATION_MARK?(this.currentToken.publicId="",this.state=zk):e===FS.APOSTROPHE?(this.currentToken.publicId="",this.state=Gk):e===FS.GREATER_THAN_SIGN?(this._err(DS.missingDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this.state=US,this._emitCurrentToken()):e===FS.EOF?(this._err(DS.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(DS.missingQuoteBeforeDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(Jk)))}[zk](e){e===FS.QUOTATION_MARK?this.state=$k:e===FS.NULL?(this._err(DS.unexpectedNullCharacter),this.currentToken.publicId+=IS.REPLACEMENT_CHARACTER):e===FS.GREATER_THAN_SIGN?(this._err(DS.abruptDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=US):e===FS.EOF?(this._err(DS.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.publicId+=vw(e)}[Gk](e){e===FS.APOSTROPHE?this.state=$k:e===FS.NULL?(this._err(DS.unexpectedNullCharacter),this.currentToken.publicId+=IS.REPLACEMENT_CHARACTER):e===FS.GREATER_THAN_SIGN?(this._err(DS.abruptDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=US):e===FS.EOF?(this._err(DS.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.publicId+=vw(e)}[$k](e){hw(e)?this.state=Kk:e===FS.GREATER_THAN_SIGN?(this.state=US,this._emitCurrentToken()):e===FS.QUOTATION_MARK?(this._err(DS.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),this.currentToken.systemId="",this.state=Qk):e===FS.APOSTROPHE?(this._err(DS.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),this.currentToken.systemId="",this.state=Yk):e===FS.EOF?(this._err(DS.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(DS.missingQuoteBeforeDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(Jk))}[Kk](e){hw(e)||(e===FS.GREATER_THAN_SIGN?(this._emitCurrentToken(),this.state=US):e===FS.QUOTATION_MARK?(this.currentToken.systemId="",this.state=Qk):e===FS.APOSTROPHE?(this.currentToken.systemId="",this.state=Yk):e===FS.EOF?(this._err(DS.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(DS.missingQuoteBeforeDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(Jk)))}[Vk](e){hw(e)?this.state=Wk:e===FS.QUOTATION_MARK?(this._err(DS.missingWhitespaceAfterDoctypeSystemKeyword),this.currentToken.systemId="",this.state=Qk):e===FS.APOSTROPHE?(this._err(DS.missingWhitespaceAfterDoctypeSystemKeyword),this.currentToken.systemId="",this.state=Yk):e===FS.GREATER_THAN_SIGN?(this._err(DS.missingDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this.state=US,this._emitCurrentToken()):e===FS.EOF?(this._err(DS.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(DS.missingQuoteBeforeDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(Jk))}[Wk](e){hw(e)||(e===FS.QUOTATION_MARK?(this.currentToken.systemId="",this.state=Qk):e===FS.APOSTROPHE?(this.currentToken.systemId="",this.state=Yk):e===FS.GREATER_THAN_SIGN?(this._err(DS.missingDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this.state=US,this._emitCurrentToken()):e===FS.EOF?(this._err(DS.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(DS.missingQuoteBeforeDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(Jk)))}[Qk](e){e===FS.QUOTATION_MARK?this.state=Xk:e===FS.NULL?(this._err(DS.unexpectedNullCharacter),this.currentToken.systemId+=IS.REPLACEMENT_CHARACTER):e===FS.GREATER_THAN_SIGN?(this._err(DS.abruptDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=US):e===FS.EOF?(this._err(DS.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.systemId+=vw(e)}[Yk](e){e===FS.APOSTROPHE?this.state=Xk:e===FS.NULL?(this._err(DS.unexpectedNullCharacter),this.currentToken.systemId+=IS.REPLACEMENT_CHARACTER):e===FS.GREATER_THAN_SIGN?(this._err(DS.abruptDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=US):e===FS.EOF?(this._err(DS.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.systemId+=vw(e)}[Xk](e){hw(e)||(e===FS.GREATER_THAN_SIGN?(this._emitCurrentToken(),this.state=US):e===FS.EOF?(this._err(DS.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(DS.unexpectedCharacterAfterDoctypeSystemIdentifier),this._reconsumeInState(Jk)))}[Jk](e){e===FS.GREATER_THAN_SIGN?(this._emitCurrentToken(),this.state=US):e===FS.NULL?this._err(DS.unexpectedNullCharacter):e===FS.EOF&&(this._emitCurrentToken(),this._emitEOFToken())}[Zk](e){e===FS.RIGHT_SQUARE_BRACKET?this.state=ew:e===FS.EOF?(this._err(DS.eofInCdata),this._emitEOFToken()):this._emitCodePoint(e)}[ew](e){e===FS.RIGHT_SQUARE_BRACKET?this.state=tw:(this._emitChars("]"),this._reconsumeInState(Zk))}[tw](e){e===FS.GREATER_THAN_SIGN?this.state=US:e===FS.RIGHT_SQUARE_BRACKET?this._emitChars("]"):(this._emitChars("]]"),this._reconsumeInState(Zk))}[rw](e){this.tempBuff=[FS.AMPERSAND],e===FS.NUMBER_SIGN?(this.tempBuff.push(e),this.state=iw):gw(e)?this._reconsumeInState(nw):(this._flushCodePointsConsumedAsCharacterReference(),this._reconsumeInState(this.returnState))}[nw](e){const t=this._matchNamedCharacterReference(e);if(this._ensureHibernation())this.tempBuff=[FS.AMPERSAND];else if(t){const e=this.tempBuff[this.tempBuff.length-1]===FS.SEMICOLON;this._isCharacterReferenceAttributeQuirk(e)||(e||this._errOnNextCodePoint(DS.missingSemicolonAfterCharacterReference),this.tempBuff=t),this._flushCodePointsConsumedAsCharacterReference(),this.state=this.returnState}else this._flushCodePointsConsumedAsCharacterReference(),this.state=ow}[ow](e){gw(e)?this._isCharacterReferenceInAttribute()?this.currentAttr.value+=vw(e):this._emitCodePoint(e):(e===FS.SEMICOLON&&this._err(DS.unknownNamedCharacterReference),this._reconsumeInState(this.returnState))}[iw](e){this.charRefCode=0,e===FS.LATIN_SMALL_X||e===FS.LATIN_CAPITAL_X?(this.tempBuff.push(e),this.state=sw):this._reconsumeInState(aw)}[sw](e){!function(e){return fw(e)||yw(e)||Ew(e)}(e)?(this._err(DS.absenceOfDigitsInNumericCharacterReference),this._flushCodePointsConsumedAsCharacterReference(),this._reconsumeInState(this.returnState)):this._reconsumeInState(cw)}[aw](e){fw(e)?this._reconsumeInState(lw):(this._err(DS.absenceOfDigitsInNumericCharacterReference),this._flushCodePointsConsumedAsCharacterReference(),this._reconsumeInState(this.returnState))}[cw](e){yw(e)?this.charRefCode=16*this.charRefCode+e-55:Ew(e)?this.charRefCode=16*this.charRefCode+e-87:fw(e)?this.charRefCode=16*this.charRefCode+e-48:e===FS.SEMICOLON?this.state=uw:(this._err(DS.missingSemicolonAfterCharacterReference),this._reconsumeInState(uw))}[lw](e){fw(e)?this.charRefCode=10*this.charRefCode+e-48:e===FS.SEMICOLON?this.state=uw:(this._err(DS.missingSemicolonAfterCharacterReference),this._reconsumeInState(uw))}[uw](){if(this.charRefCode===FS.NULL)this._err(DS.nullCharacterReference),this.charRefCode=FS.REPLACEMENT_CHARACTER;else if(this.charRefCode>1114111)this._err(DS.characterReferenceOutsideUnicodeRange),this.charRefCode=FS.REPLACEMENT_CHARACTER;else if(IS.isSurrogate(this.charRefCode))this._err(DS.surrogateCharacterReference),this.charRefCode=FS.REPLACEMENT_CHARACTER;else if(IS.isUndefinedCodePoint(this.charRefCode))this._err(DS.noncharacterCharacterReference);else if(IS.isControlCodePoint(this.charRefCode)||this.charRefCode===FS.CARRIAGE_RETURN){this._err(DS.controlCharacterReference);const e=BS[this.charRefCode];e&&(this.charRefCode=e)}this.tempBuff=[this.charRefCode],this._flushCodePointsConsumedAsCharacterReference(),this._reconsumeInState(this.returnState)}}Aw.CHARACTER_TOKEN="CHARACTER_TOKEN",Aw.NULL_CHARACTER_TOKEN="NULL_CHARACTER_TOKEN",Aw.WHITESPACE_CHARACTER_TOKEN="WHITESPACE_CHARACTER_TOKEN",Aw.START_TAG_TOKEN="START_TAG_TOKEN",Aw.END_TAG_TOKEN="END_TAG_TOKEN",Aw.COMMENT_TOKEN="COMMENT_TOKEN",Aw.DOCTYPE_TOKEN="DOCTYPE_TOKEN",Aw.EOF_TOKEN="EOF_TOKEN",Aw.HIBERNATION_TOKEN="HIBERNATION_TOKEN",Aw.MODE={DATA:US,RCDATA:HS,RAWTEXT:jS,SCRIPT_DATA:qS,PLAINTEXT:zS},Aw.getTokenAttr=function(e,t){for(let r=e.attrs.length-1;r>=0;r--)if(e.attrs[r].name===t)return e.attrs[r].value;return null};var Sw=Aw,kw={};const ww=kw.NAMESPACES={HTML:"http://www.w3.org/1999/xhtml",MATHML:"http://www.w3.org/1998/Math/MathML",SVG:"http://www.w3.org/2000/svg",XLINK:"http://www.w3.org/1999/xlink",XML:"http://www.w3.org/XML/1998/namespace",XMLNS:"http://www.w3.org/2000/xmlns/"};kw.ATTRS={TYPE:"type",ACTION:"action",ENCODING:"encoding",PROMPT:"prompt",NAME:"name",COLOR:"color",FACE:"face",SIZE:"size"},kw.DOCUMENT_MODE={NO_QUIRKS:"no-quirks",QUIRKS:"quirks",LIMITED_QUIRKS:"limited-quirks"};const Cw=kw.TAG_NAMES={A:"a",ADDRESS:"address",ANNOTATION_XML:"annotation-xml",APPLET:"applet",AREA:"area",ARTICLE:"article",ASIDE:"aside",B:"b",BASE:"base",BASEFONT:"basefont",BGSOUND:"bgsound",BIG:"big",BLOCKQUOTE:"blockquote",BODY:"body",BR:"br",BUTTON:"button",CAPTION:"caption",CENTER:"center",CODE:"code",COL:"col",COLGROUP:"colgroup",DD:"dd",DESC:"desc",DETAILS:"details",DIALOG:"dialog",DIR:"dir",DIV:"div",DL:"dl",DT:"dt",EM:"em",EMBED:"embed",FIELDSET:"fieldset",FIGCAPTION:"figcaption",FIGURE:"figure",FONT:"font",FOOTER:"footer",FOREIGN_OBJECT:"foreignObject",FORM:"form",FRAME:"frame",FRAMESET:"frameset",H1:"h1",H2:"h2",H3:"h3",H4:"h4",H5:"h5",H6:"h6",HEAD:"head",HEADER:"header",HGROUP:"hgroup",HR:"hr",HTML:"html",I:"i",IMG:"img",IMAGE:"image",INPUT:"input",IFRAME:"iframe",KEYGEN:"keygen",LABEL:"label",LI:"li",LINK:"link",LISTING:"listing",MAIN:"main",MALIGNMARK:"malignmark",MARQUEE:"marquee",MATH:"math",MENU:"menu",META:"meta",MGLYPH:"mglyph",MI:"mi",MO:"mo",MN:"mn",MS:"ms",MTEXT:"mtext",NAV:"nav",NOBR:"nobr",NOFRAMES:"noframes",NOEMBED:"noembed",NOSCRIPT:"noscript",OBJECT:"object",OL:"ol",OPTGROUP:"optgroup",OPTION:"option",P:"p",PARAM:"param",PLAINTEXT:"plaintext",PRE:"pre",RB:"rb",RP:"rp",RT:"rt",RTC:"rtc",RUBY:"ruby",S:"s",SCRIPT:"script",SECTION:"section",SELECT:"select",SOURCE:"source",SMALL:"small",SPAN:"span",STRIKE:"strike",STRONG:"strong",STYLE:"style",SUB:"sub",SUMMARY:"summary",SUP:"sup",TABLE:"table",TBODY:"tbody",TEMPLATE:"template",TEXTAREA:"textarea",TFOOT:"tfoot",TD:"td",TH:"th",THEAD:"thead",TITLE:"title",TR:"tr",TRACK:"track",TT:"tt",U:"u",UL:"ul",SVG:"svg",VAR:"var",WBR:"wbr",XMP:"xmp"};kw.SPECIAL_ELEMENTS={[ww.HTML]:{[Cw.ADDRESS]:!0,[Cw.APPLET]:!0,[Cw.AREA]:!0,[Cw.ARTICLE]:!0,[Cw.ASIDE]:!0,[Cw.BASE]:!0,[Cw.BASEFONT]:!0,[Cw.BGSOUND]:!0,[Cw.BLOCKQUOTE]:!0,[Cw.BODY]:!0,[Cw.BR]:!0,[Cw.BUTTON]:!0,[Cw.CAPTION]:!0,[Cw.CENTER]:!0,[Cw.COL]:!0,[Cw.COLGROUP]:!0,[Cw.DD]:!0,[Cw.DETAILS]:!0,[Cw.DIR]:!0,[Cw.DIV]:!0,[Cw.DL]:!0,[Cw.DT]:!0,[Cw.EMBED]:!0,[Cw.FIELDSET]:!0,[Cw.FIGCAPTION]:!0,[Cw.FIGURE]:!0,[Cw.FOOTER]:!0,[Cw.FORM]:!0,[Cw.FRAME]:!0,[Cw.FRAMESET]:!0,[Cw.H1]:!0,[Cw.H2]:!0,[Cw.H3]:!0,[Cw.H4]:!0,[Cw.H5]:!0,[Cw.H6]:!0,[Cw.HEAD]:!0,[Cw.HEADER]:!0,[Cw.HGROUP]:!0,[Cw.HR]:!0,[Cw.HTML]:!0,[Cw.IFRAME]:!0,[Cw.IMG]:!0,[Cw.INPUT]:!0,[Cw.LI]:!0,[Cw.LINK]:!0,[Cw.LISTING]:!0,[Cw.MAIN]:!0,[Cw.MARQUEE]:!0,[Cw.MENU]:!0,[Cw.META]:!0,[Cw.NAV]:!0,[Cw.NOEMBED]:!0,[Cw.NOFRAMES]:!0,[Cw.NOSCRIPT]:!0,[Cw.OBJECT]:!0,[Cw.OL]:!0,[Cw.P]:!0,[Cw.PARAM]:!0,[Cw.PLAINTEXT]:!0,[Cw.PRE]:!0,[Cw.SCRIPT]:!0,[Cw.SECTION]:!0,[Cw.SELECT]:!0,[Cw.SOURCE]:!0,[Cw.STYLE]:!0,[Cw.SUMMARY]:!0,[Cw.TABLE]:!0,[Cw.TBODY]:!0,[Cw.TD]:!0,[Cw.TEMPLATE]:!0,[Cw.TEXTAREA]:!0,[Cw.TFOOT]:!0,[Cw.TH]:!0,[Cw.THEAD]:!0,[Cw.TITLE]:!0,[Cw.TR]:!0,[Cw.TRACK]:!0,[Cw.UL]:!0,[Cw.WBR]:!0,[Cw.XMP]:!0},[ww.MATHML]:{[Cw.MI]:!0,[Cw.MO]:!0,[Cw.MN]:!0,[Cw.MS]:!0,[Cw.MTEXT]:!0,[Cw.ANNOTATION_XML]:!0},[ww.SVG]:{[Cw.TITLE]:!0,[Cw.FOREIGN_OBJECT]:!0,[Cw.DESC]:!0}};const xw=kw,Ow=xw.TAG_NAMES,Rw=xw.NAMESPACES;function Nw(e){switch(e.length){case 1:return e===Ow.P;case 2:return e===Ow.RB||e===Ow.RP||e===Ow.RT||e===Ow.DD||e===Ow.DT||e===Ow.LI;case 3:return e===Ow.RTC;case 6:return e===Ow.OPTION;case 8:return e===Ow.OPTGROUP}return!1}function Pw(e){switch(e.length){case 1:return e===Ow.P;case 2:return e===Ow.RB||e===Ow.RP||e===Ow.RT||e===Ow.DD||e===Ow.DT||e===Ow.LI||e===Ow.TD||e===Ow.TH||e===Ow.TR;case 3:return e===Ow.RTC;case 5:return e===Ow.TBODY||e===Ow.TFOOT||e===Ow.THEAD;case 6:return e===Ow.OPTION;case 7:return e===Ow.CAPTION;case 8:return e===Ow.OPTGROUP||e===Ow.COLGROUP}return!1}function Iw(e,t){switch(e.length){case 2:if(e===Ow.TD||e===Ow.TH)return t===Rw.HTML;if(e===Ow.MI||e===Ow.MO||e===Ow.MN||e===Ow.MS)return t===Rw.MATHML;break;case 4:if(e===Ow.HTML)return t===Rw.HTML;if(e===Ow.DESC)return t===Rw.SVG;break;case 5:if(e===Ow.TABLE)return t===Rw.HTML;if(e===Ow.MTEXT)return t===Rw.MATHML;if(e===Ow.TITLE)return t===Rw.SVG;break;case 6:return(e===Ow.APPLET||e===Ow.OBJECT)&&t===Rw.HTML;case 7:return(e===Ow.CAPTION||e===Ow.MARQUEE)&&t===Rw.HTML;case 8:return e===Ow.TEMPLATE&&t===Rw.HTML;case 13:return e===Ow.FOREIGN_OBJECT&&t===Rw.SVG;case 14:return e===Ow.ANNOTATION_XML&&t===Rw.MATHML}return!1}var Lw=class{constructor(e,t){this.stackTop=-1,this.items=[],this.current=e,this.currentTagName=null,this.currentTmplContent=null,this.tmplCount=0,this.treeAdapter=t}_indexOf(e){let t=-1;for(let r=this.stackTop;r>=0;r--)if(this.items[r]===e){t=r;break}return t}_isInTemplate(){return this.currentTagName===Ow.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===Rw.HTML}_updateCurrentElement(){this.current=this.items[this.stackTop],this.currentTagName=this.current&&this.treeAdapter.getTagName(this.current),this.currentTmplContent=this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):null}push(e){this.items[++this.stackTop]=e,this._updateCurrentElement(),this._isInTemplate()&&this.tmplCount++}pop(){this.stackTop--,this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this._updateCurrentElement()}replace(e,t){const r=this._indexOf(e);this.items[r]=t,r===this.stackTop&&this._updateCurrentElement()}insertAfter(e,t){const r=this._indexOf(e)+1;this.items.splice(r,0,t),r===++this.stackTop&&this._updateCurrentElement()}popUntilTagNamePopped(e){for(;this.stackTop>-1;){const t=this.currentTagName,r=this.treeAdapter.getNamespaceURI(this.current);if(this.pop(),t===e&&r===Rw.HTML)break}}popUntilElementPopped(e){for(;this.stackTop>-1;){const t=this.current;if(this.pop(),t===e)break}}popUntilNumberedHeaderPopped(){for(;this.stackTop>-1;){const e=this.currentTagName,t=this.treeAdapter.getNamespaceURI(this.current);if(this.pop(),e===Ow.H1||e===Ow.H2||e===Ow.H3||e===Ow.H4||e===Ow.H5||e===Ow.H6&&t===Rw.HTML)break}}popUntilTableCellPopped(){for(;this.stackTop>-1;){const e=this.currentTagName,t=this.treeAdapter.getNamespaceURI(this.current);if(this.pop(),e===Ow.TD||e===Ow.TH&&t===Rw.HTML)break}}popAllUpToHtmlElement(){this.stackTop=0,this._updateCurrentElement()}clearBackToTableContext(){for(;this.currentTagName!==Ow.TABLE&&this.currentTagName!==Ow.TEMPLATE&&this.currentTagName!==Ow.HTML||this.treeAdapter.getNamespaceURI(this.current)!==Rw.HTML;)this.pop()}clearBackToTableBodyContext(){for(;this.currentTagName!==Ow.TBODY&&this.currentTagName!==Ow.TFOOT&&this.currentTagName!==Ow.THEAD&&this.currentTagName!==Ow.TEMPLATE&&this.currentTagName!==Ow.HTML||this.treeAdapter.getNamespaceURI(this.current)!==Rw.HTML;)this.pop()}clearBackToTableRowContext(){for(;this.currentTagName!==Ow.TR&&this.currentTagName!==Ow.TEMPLATE&&this.currentTagName!==Ow.HTML||this.treeAdapter.getNamespaceURI(this.current)!==Rw.HTML;)this.pop()}remove(e){for(let t=this.stackTop;t>=0;t--)if(this.items[t]===e){this.items.splice(t,1),this.stackTop--,this._updateCurrentElement();break}}tryPeekProperlyNestedBodyElement(){const e=this.items[1];return e&&this.treeAdapter.getTagName(e)===Ow.BODY?e:null}contains(e){return this._indexOf(e)>-1}getCommonAncestor(e){let t=this._indexOf(e);return--t>=0?this.items[t]:null}isRootHtmlElementCurrent(){return 0===this.stackTop&&this.currentTagName===Ow.HTML}hasInScope(e){for(let t=this.stackTop;t>=0;t--){const r=this.treeAdapter.getTagName(this.items[t]),n=this.treeAdapter.getNamespaceURI(this.items[t]);if(r===e&&n===Rw.HTML)return!0;if(Iw(r,n))return!1}return!0}hasNumberedHeaderInScope(){for(let e=this.stackTop;e>=0;e--){const t=this.treeAdapter.getTagName(this.items[e]),r=this.treeAdapter.getNamespaceURI(this.items[e]);if((t===Ow.H1||t===Ow.H2||t===Ow.H3||t===Ow.H4||t===Ow.H5||t===Ow.H6)&&r===Rw.HTML)return!0;if(Iw(t,r))return!1}return!0}hasInListItemScope(e){for(let t=this.stackTop;t>=0;t--){const r=this.treeAdapter.getTagName(this.items[t]),n=this.treeAdapter.getNamespaceURI(this.items[t]);if(r===e&&n===Rw.HTML)return!0;if((r===Ow.UL||r===Ow.OL)&&n===Rw.HTML||Iw(r,n))return!1}return!0}hasInButtonScope(e){for(let t=this.stackTop;t>=0;t--){const r=this.treeAdapter.getTagName(this.items[t]),n=this.treeAdapter.getNamespaceURI(this.items[t]);if(r===e&&n===Rw.HTML)return!0;if(r===Ow.BUTTON&&n===Rw.HTML||Iw(r,n))return!1}return!0}hasInTableScope(e){for(let t=this.stackTop;t>=0;t--){const r=this.treeAdapter.getTagName(this.items[t]);if(this.treeAdapter.getNamespaceURI(this.items[t])===Rw.HTML){if(r===e)return!0;if(r===Ow.TABLE||r===Ow.TEMPLATE||r===Ow.HTML)return!1}}return!0}hasTableBodyContextInTableScope(){for(let e=this.stackTop;e>=0;e--){const t=this.treeAdapter.getTagName(this.items[e]);if(this.treeAdapter.getNamespaceURI(this.items[e])===Rw.HTML){if(t===Ow.TBODY||t===Ow.THEAD||t===Ow.TFOOT)return!0;if(t===Ow.TABLE||t===Ow.HTML)return!1}}return!0}hasInSelectScope(e){for(let t=this.stackTop;t>=0;t--){const r=this.treeAdapter.getTagName(this.items[t]);if(this.treeAdapter.getNamespaceURI(this.items[t])===Rw.HTML){if(r===e)return!0;if(r!==Ow.OPTION&&r!==Ow.OPTGROUP)return!1}}return!0}generateImpliedEndTags(){for(;Nw(this.currentTagName);)this.pop()}generateImpliedEndTagsThoroughly(){for(;Pw(this.currentTagName);)this.pop()}generateImpliedEndTagsWithExclusion(e){for(;Nw(this.currentTagName)&&this.currentTagName!==e;)this.pop()}};class Dw{constructor(e){this.length=0,this.entries=[],this.treeAdapter=e,this.bookmark=null}_getNoahArkConditionCandidates(e){const t=[];if(this.length>=3){const r=this.treeAdapter.getAttrList(e).length,n=this.treeAdapter.getTagName(e),o=this.treeAdapter.getNamespaceURI(e);for(let e=this.length-1;e>=0;e--){const i=this.entries[e];if(i.type===Dw.MARKER_ENTRY)break;const s=i.element,a=this.treeAdapter.getAttrList(s);this.treeAdapter.getTagName(s)===n&&this.treeAdapter.getNamespaceURI(s)===o&&a.length===r&&t.push({idx:e,attrs:a})}}return t.length<3?[]:t}_ensureNoahArkCondition(e){const t=this._getNoahArkConditionCandidates(e);let r=t.length;if(r){const n=this.treeAdapter.getAttrList(e),o=n.length,i=Object.create(null);for(let e=0;e<o;e++){const t=n[e];i[t.name]=t.value}for(let e=0;e<o;e++)for(let n=0;n<r;n++){const o=t[n].attrs[e];if(i[o.name]!==o.value&&(t.splice(n,1),r--),t.length<3)return}for(let e=r-1;e>=2;e--)this.entries.splice(t[e].idx,1),this.length--}}insertMarker(){this.entries.push({type:Dw.MARKER_ENTRY}),this.length++}pushElement(e,t){this._ensureNoahArkCondition(e),this.entries.push({type:Dw.ELEMENT_ENTRY,element:e,token:t}),this.length++}insertElementAfterBookmark(e,t){let r=this.length-1;for(;r>=0&&this.entries[r]!==this.bookmark;r--);this.entries.splice(r+1,0,{type:Dw.ELEMENT_ENTRY,element:e,token:t}),this.length++}removeEntry(e){for(let t=this.length-1;t>=0;t--)if(this.entries[t]===e){this.entries.splice(t,1),this.length--;break}}clearToLastMarker(){for(;this.length;){const e=this.entries.pop();if(this.length--,e.type===Dw.MARKER_ENTRY)break}}getElementEntryInScopeWithTagName(e){for(let t=this.length-1;t>=0;t--){const r=this.entries[t];if(r.type===Dw.MARKER_ENTRY)return null;if(this.treeAdapter.getTagName(r.element)===e)return r}return null}getElementEntry(e){for(let t=this.length-1;t>=0;t--){const r=this.entries[t];if(r.type===Dw.ELEMENT_ENTRY&&r.element===e)return r}return null}}Dw.MARKER_ENTRY="MARKER_ENTRY",Dw.ELEMENT_ENTRY="ELEMENT_ENTRY";var Fw=Dw;class Mw{constructor(e){const t={},r=this._getOverriddenMethods(this,t);for(const n of Object.keys(r))"function"==typeof r[n]&&(t[n]=e[n],e[n]=r[n])}_getOverriddenMethods(){throw new Error("Not implemented")}}Mw.install=function(e,t,r){e.__mixins||(e.__mixins=[]);for(let r=0;r<e.__mixins.length;r++)if(e.__mixins[r].constructor===t)return e.__mixins[r];const n=new t(e,r);return e.__mixins.push(n),n};var Bw=Mw;const Uw=Bw;var Hw=class extends Uw{constructor(e){super(e),this.preprocessor=e,this.isEol=!1,this.lineStartPos=0,this.droppedBufferSize=0,this.offset=0,this.col=0,this.line=1}_getOverriddenMethods(e,t){return{advance(){const r=this.pos+1,n=this.html[r];return e.isEol&&(e.isEol=!1,e.line++,e.lineStartPos=r),("\n"===n||"\r"===n&&"\n"!==this.html[r+1])&&(e.isEol=!0),e.col=r-e.lineStartPos+1,e.offset=e.droppedBufferSize+r,t.advance.call(this)},retreat(){t.retreat.call(this),e.isEol=!1,e.col=this.pos-e.lineStartPos+1},dropParsedChunk(){const r=this.pos;t.dropParsedChunk.call(this);const n=r-this.pos;e.lineStartPos-=n,e.droppedBufferSize+=n,e.offset=e.droppedBufferSize+this.pos}}}};const jw=Bw,qw=Sw,zw=Hw;var Gw=class extends jw{constructor(e){super(e),this.tokenizer=e,this.posTracker=jw.install(e.preprocessor,zw),this.currentAttrLocation=null,this.ctLoc=null}_getCurrentLocation(){return{startLine:this.posTracker.line,startCol:this.posTracker.col,startOffset:this.posTracker.offset,endLine:-1,endCol:-1,endOffset:-1}}_attachCurrentAttrLocationInfo(){this.currentAttrLocation.endLine=this.posTracker.line,this.currentAttrLocation.endCol=this.posTracker.col,this.currentAttrLocation.endOffset=this.posTracker.offset;const e=this.tokenizer.currentToken,t=this.tokenizer.currentAttr;e.location.attrs||(e.location.attrs=Object.create(null)),e.location.attrs[t.name]=this.currentAttrLocation}_getOverriddenMethods(e,t){const r={_createStartTagToken(){t._createStartTagToken.call(this),this.currentToken.location=e.ctLoc},_createEndTagToken(){t._createEndTagToken.call(this),this.currentToken.location=e.ctLoc},_createCommentToken(){t._createCommentToken.call(this),this.currentToken.location=e.ctLoc},_createDoctypeToken(r){t._createDoctypeToken.call(this,r),this.currentToken.location=e.ctLoc},_createCharacterToken(r,n){t._createCharacterToken.call(this,r,n),this.currentCharacterToken.location=e.ctLoc},_createEOFToken(){t._createEOFToken.call(this),this.currentToken.location=e._getCurrentLocation()},_createAttr(r){t._createAttr.call(this,r),e.currentAttrLocation=e._getCurrentLocation()},_leaveAttrName(r){t._leaveAttrName.call(this,r),e._attachCurrentAttrLocationInfo()},_leaveAttrValue(r){t._leaveAttrValue.call(this,r),e._attachCurrentAttrLocationInfo()},_emitCurrentToken(){const r=this.currentToken.location;this.currentCharacterToken&&(this.currentCharacterToken.location.endLine=r.startLine,this.currentCharacterToken.location.endCol=r.startCol,this.currentCharacterToken.location.endOffset=r.startOffset),this.currentToken.type===qw.EOF_TOKEN?(r.endLine=r.startLine,r.endCol=r.startCol,r.endOffset=r.startOffset):(r.endLine=e.posTracker.line,r.endCol=e.posTracker.col+1,r.endOffset=e.posTracker.offset+1),t._emitCurrentToken.call(this)},_emitCurrentCharacterToken(){const r=this.currentCharacterToken&&this.currentCharacterToken.location;r&&-1===r.endOffset&&(r.endLine=e.posTracker.line,r.endCol=e.posTracker.col,r.endOffset=e.posTracker.offset),t._emitCurrentCharacterToken.call(this)}};return Object.keys(qw.MODE).forEach(n=>{const o=qw.MODE[n];r[o]=function(r){e.ctLoc=e._getCurrentLocation(),t[o].call(this,r)}}),r}};const $w=Bw;var Kw=class extends $w{constructor(e,t){super(e),this.onItemPop=t.onItemPop}_getOverriddenMethods(e,t){return{pop(){e.onItemPop(this.current),t.pop.call(this)},popAllUpToHtmlElement(){for(let t=this.stackTop;t>0;t--)e.onItemPop(this.items[t]);t.popAllUpToHtmlElement.call(this)},remove(r){e.onItemPop(this.current),t.remove.call(this,r)}}}};const Vw=Bw,Ww=Sw,Qw=Gw,Yw=Kw,Xw=kw.TAG_NAMES;var Jw=class extends Vw{constructor(e){super(e),this.parser=e,this.treeAdapter=this.parser.treeAdapter,this.posTracker=null,this.lastStartTagToken=null,this.lastFosterParentingLocation=null,this.currentToken=null}_setStartLocation(e){let t=null;this.lastStartTagToken&&(t=Object.assign({},this.lastStartTagToken.location),t.startTag=this.lastStartTagToken.location),this.treeAdapter.setNodeSourceCodeLocation(e,t)}_setEndLocation(e,t){if(this.treeAdapter.getNodeSourceCodeLocation(e)&&t.location){const r=t.location,n=this.treeAdapter.getTagName(e),o={};t.type===Ww.END_TAG_TOKEN&&n===t.tagName?(o.endTag=Object.assign({},r),o.endLine=r.endLine,o.endCol=r.endCol,o.endOffset=r.endOffset):(o.endLine=r.startLine,o.endCol=r.startCol,o.endOffset=r.startOffset),this.treeAdapter.updateNodeSourceCodeLocation(e,o)}}_getOverriddenMethods(e,t){return{_bootstrap(r,n){t._bootstrap.call(this,r,n),e.lastStartTagToken=null,e.lastFosterParentingLocation=null,e.currentToken=null;const o=Vw.install(this.tokenizer,Qw);e.posTracker=o.posTracker,Vw.install(this.openElements,Yw,{onItemPop:function(t){e._setEndLocation(t,e.currentToken)}})},_runParsingLoop(r){t._runParsingLoop.call(this,r);for(let t=this.openElements.stackTop;t>=0;t--)e._setEndLocation(this.openElements.items[t],e.currentToken)},_processTokenInForeignContent(r){e.currentToken=r,t._processTokenInForeignContent.call(this,r)},_processToken(r){e.currentToken=r,t._processToken.call(this,r);if(r.type===Ww.END_TAG_TOKEN&&(r.tagName===Xw.HTML||r.tagName===Xw.BODY&&this.openElements.hasInScope(Xw.BODY)))for(let t=this.openElements.stackTop;t>=0;t--){const n=this.openElements.items[t];if(this.treeAdapter.getTagName(n)===r.tagName){e._setEndLocation(n,r);break}}},_setDocumentType(e){t._setDocumentType.call(this,e);const r=this.treeAdapter.getChildNodes(this.document),n=r.length;for(let t=0;t<n;t++){const n=r[t];if(this.treeAdapter.isDocumentTypeNode(n)){this.treeAdapter.setNodeSourceCodeLocation(n,e.location);break}}},_attachElementToTree(r){e._setStartLocation(r),e.lastStartTagToken=null,t._attachElementToTree.call(this,r)},_appendElement(r,n){e.lastStartTagToken=r,t._appendElement.call(this,r,n)},_insertElement(r,n){e.lastStartTagToken=r,t._insertElement.call(this,r,n)},_insertTemplate(r){e.lastStartTagToken=r,t._insertTemplate.call(this,r);const n=this.treeAdapter.getTemplateContent(this.openElements.current);this.treeAdapter.setNodeSourceCodeLocation(n,null)},_insertFakeRootElement(){t._insertFakeRootElement.call(this),this.treeAdapter.setNodeSourceCodeLocation(this.openElements.current,null)},_appendCommentNode(e,r){t._appendCommentNode.call(this,e,r);const n=this.treeAdapter.getChildNodes(r),o=n[n.length-1];this.treeAdapter.setNodeSourceCodeLocation(o,e.location)},_findFosterParentingLocation(){return e.lastFosterParentingLocation=t._findFosterParentingLocation.call(this),e.lastFosterParentingLocation},_insertCharacters(r){t._insertCharacters.call(this,r);const n=this._shouldFosterParentOnInsertion(),o=n&&e.lastFosterParentingLocation.parent||this.openElements.currentTmplContent||this.openElements.current,i=this.treeAdapter.getChildNodes(o),s=n&&e.lastFosterParentingLocation.beforeElement?i.indexOf(e.lastFosterParentingLocation.beforeElement)-1:i.length-1,a=i[s];if(this.treeAdapter.getNodeSourceCodeLocation(a)){const{endLine:e,endCol:t,endOffset:n}=r.location;this.treeAdapter.updateNodeSourceCodeLocation(a,{endLine:e,endCol:t,endOffset:n})}else this.treeAdapter.setNodeSourceCodeLocation(a,r.location)}}}};const Zw=Bw;var eC=class extends Zw{constructor(e,t){super(e),this.posTracker=null,this.onParseError=t.onParseError}_setErrorLocation(e){e.startLine=e.endLine=this.posTracker.line,e.startCol=e.endCol=this.posTracker.col,e.startOffset=e.endOffset=this.posTracker.offset}_reportError(e){const t={code:e,startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1};this._setErrorLocation(t),this.onParseError(t)}_getOverriddenMethods(e){return{_err(t){e._reportError(t)}}}};const tC=eC,rC=Hw,nC=Bw;var oC=class extends tC{constructor(e,t){super(e,t),this.posTracker=nC.install(e,rC),this.lastErrOffset=-1}_reportError(e){this.lastErrOffset!==this.posTracker.offset&&(this.lastErrOffset=this.posTracker.offset,super._reportError(e))}};const iC=eC,sC=oC,aC=Bw;var cC=class extends iC{constructor(e,t){super(e,t);const r=aC.install(e.preprocessor,sC,t);this.posTracker=r.posTracker}};const lC=eC,uC=cC,hC=Gw,fC=Bw;var pC=class extends lC{constructor(e,t){super(e,t),this.opts=t,this.ctLoc=null,this.locBeforeToken=!1}_setErrorLocation(e){this.ctLoc&&(e.startLine=this.ctLoc.startLine,e.startCol=this.ctLoc.startCol,e.startOffset=this.ctLoc.startOffset,e.endLine=this.locBeforeToken?this.ctLoc.startLine:this.ctLoc.endLine,e.endCol=this.locBeforeToken?this.ctLoc.startCol:this.ctLoc.endCol,e.endOffset=this.locBeforeToken?this.ctLoc.startOffset:this.ctLoc.endOffset)}_getOverriddenMethods(e,t){return{_bootstrap(r,n){t._bootstrap.call(this,r,n),fC.install(this.tokenizer,uC,e.opts),fC.install(this.tokenizer,hC)},_processInputToken(r){e.ctLoc=r.location,t._processInputToken.call(this,r)},_err(t,r){e.locBeforeToken=r&&r.beforeToken,e._reportError(t)}}}},dC={};const{DOCUMENT_MODE:mC}=kw;dC.createDocument=function(){return{nodeName:"#document",mode:mC.NO_QUIRKS,childNodes:[]}},dC.createDocumentFragment=function(){return{nodeName:"#document-fragment",childNodes:[]}},dC.createElement=function(e,t,r){return{nodeName:e,tagName:e,attrs:r,namespaceURI:t,childNodes:[],parentNode:null}},dC.createCommentNode=function(e){return{nodeName:"#comment",data:e,parentNode:null}};const gC=function(e){return{nodeName:"#text",value:e,parentNode:null}},yC=dC.appendChild=function(e,t){e.childNodes.push(t),t.parentNode=e},EC=dC.insertBefore=function(e,t,r){const n=e.childNodes.indexOf(r);e.childNodes.splice(n,0,t),t.parentNode=e};dC.setTemplateContent=function(e,t){e.content=t},dC.getTemplateContent=function(e){return e.content},dC.setDocumentType=function(e,t,r,n){let o=null;for(let t=0;t<e.childNodes.length;t++)if("#documentType"===e.childNodes[t].nodeName){o=e.childNodes[t];break}o?(o.name=t,o.publicId=r,o.systemId=n):yC(e,{nodeName:"#documentType",name:t,publicId:r,systemId:n})},dC.setDocumentMode=function(e,t){e.mode=t},dC.getDocumentMode=function(e){return e.mode},dC.detachNode=function(e){if(e.parentNode){const t=e.parentNode.childNodes.indexOf(e);e.parentNode.childNodes.splice(t,1),e.parentNode=null}},dC.insertText=function(e,t){if(e.childNodes.length){const r=e.childNodes[e.childNodes.length-1];if("#text"===r.nodeName)return void(r.value+=t)}yC(e,gC(t))},dC.insertTextBefore=function(e,t,r){const n=e.childNodes[e.childNodes.indexOf(r)-1];n&&"#text"===n.nodeName?n.value+=t:EC(e,gC(t),r)},dC.adoptAttributes=function(e,t){const r=[];for(let t=0;t<e.attrs.length;t++)r.push(e.attrs[t].name);for(let n=0;n<t.length;n++)-1===r.indexOf(t[n].name)&&e.attrs.push(t[n])},dC.getFirstChild=function(e){return e.childNodes[0]},dC.getChildNodes=function(e){return e.childNodes},dC.getParentNode=function(e){return e.parentNode},dC.getAttrList=function(e){return e.attrs},dC.getTagName=function(e){return e.tagName},dC.getNamespaceURI=function(e){return e.namespaceURI},dC.getTextNodeContent=function(e){return e.value},dC.getCommentNodeContent=function(e){return e.data},dC.getDocumentTypeNodeName=function(e){return e.name},dC.getDocumentTypeNodePublicId=function(e){return e.publicId},dC.getDocumentTypeNodeSystemId=function(e){return e.systemId},dC.isTextNode=function(e){return"#text"===e.nodeName},dC.isCommentNode=function(e){return"#comment"===e.nodeName},dC.isDocumentTypeNode=function(e){return"#documentType"===e.nodeName},dC.isElementNode=function(e){return!!e.tagName},dC.setNodeSourceCodeLocation=function(e,t){e.sourceCodeLocation=t},dC.getNodeSourceCodeLocation=function(e){return e.sourceCodeLocation},dC.updateNodeSourceCodeLocation=function(e,t){e.sourceCodeLocation=Object.assign(e.sourceCodeLocation,t)};var TC={};const{DOCUMENT_MODE:vC}=kw,bC="html",_C=["+//silmaril//dtd html pro v0r11 19970101//","-//as//dtd html 3.0 aswedit + extensions//","-//advasoft ltd//dtd html 3.0 aswedit + extensions//","-//ietf//dtd html 2.0 level 1//","-//ietf//dtd html 2.0 level 2//","-//ietf//dtd html 2.0 strict level 1//","-//ietf//dtd html 2.0 strict level 2//","-//ietf//dtd html 2.0 strict//","-//ietf//dtd html 2.0//","-//ietf//dtd html 2.1e//","-//ietf//dtd html 3.0//","-//ietf//dtd html 3.2 final//","-//ietf//dtd html 3.2//","-//ietf//dtd html 3//","-//ietf//dtd html level 0//","-//ietf//dtd html level 1//","-//ietf//dtd html level 2//","-//ietf//dtd html level 3//","-//ietf//dtd html strict level 0//","-//ietf//dtd html strict level 1//","-//ietf//dtd html strict level 2//","-//ietf//dtd html strict level 3//","-//ietf//dtd html strict//","-//ietf//dtd html//","-//metrius//dtd metrius presentational//","-//microsoft//dtd internet explorer 2.0 html strict//","-//microsoft//dtd internet explorer 2.0 html//","-//microsoft//dtd internet explorer 2.0 tables//","-//microsoft//dtd internet explorer 3.0 html strict//","-//microsoft//dtd internet explorer 3.0 html//","-//microsoft//dtd internet explorer 3.0 tables//","-//netscape comm. corp.//dtd html//","-//netscape comm. corp.//dtd strict html//","-//o'reilly and associates//dtd html 2.0//","-//o'reilly and associates//dtd html extended 1.0//","-//o'reilly and associates//dtd html extended relaxed 1.0//","-//sq//dtd html 2.0 hotmetal + extensions//","-//softquad software//dtd hotmetal pro 6.0::19990601::extensions to html 4.0//","-//softquad//dtd hotmetal pro 4.0::19971010::extensions to html 4.0//","-//spyglass//dtd html 2.0 extended//","-//sun microsystems corp.//dtd hotjava html//","-//sun microsystems corp.//dtd hotjava strict html//","-//w3c//dtd html 3 1995-03-24//","-//w3c//dtd html 3.2 draft//","-//w3c//dtd html 3.2 final//","-//w3c//dtd html 3.2//","-//w3c//dtd html 3.2s draft//","-//w3c//dtd html 4.0 frameset//","-//w3c//dtd html 4.0 transitional//","-//w3c//dtd html experimental 19960712//","-//w3c//dtd html experimental 970421//","-//w3c//dtd w3 html//","-//w3o//dtd w3 html 3.0//","-//webtechs//dtd mozilla html 2.0//","-//webtechs//dtd mozilla html//"],AC=_C.concat(["-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"]),SC=["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"],kC=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],wC=kC.concat(["-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"]);function CC(e){const t=-1!==e.indexOf('"')?"'":'"';return t+e+t}function xC(e,t){for(let r=0;r<t.length;r++)if(0===e.indexOf(t[r]))return!0;return!1}TC.isConforming=function(e){return e.name===bC&&null===e.publicId&&(null===e.systemId||"about:legacy-compat"===e.systemId)},TC.getDocumentMode=function(e){if(e.name!==bC)return vC.QUIRKS;const t=e.systemId;if(t&&"http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd"===t.toLowerCase())return vC.QUIRKS;let r=e.publicId;if(null!==r){if(r=r.toLowerCase(),SC.indexOf(r)>-1)return vC.QUIRKS;let e=null===t?AC:_C;if(xC(r,e))return vC.QUIRKS;if(e=null===t?kC:wC,xC(r,e))return vC.LIMITED_QUIRKS}return vC.NO_QUIRKS},TC.serializeContent=function(e,t,r){let n="!DOCTYPE ";return e&&(n+=e),t?n+=" PUBLIC "+CC(t):r&&(n+=" SYSTEM"),null!==r&&(n+=" "+CC(r)),n};var OC={};const RC=Sw,NC=kw,PC=NC.TAG_NAMES,IC=NC.NAMESPACES,LC=NC.ATTRS,DC="text/html",FC="application/xhtml+xml",MC={attributename:"attributeName",attributetype:"attributeType",basefrequency:"baseFrequency",baseprofile:"baseProfile",calcmode:"calcMode",clippathunits:"clipPathUnits",diffuseconstant:"diffuseConstant",edgemode:"edgeMode",filterunits:"filterUnits",glyphref:"glyphRef",gradienttransform:"gradientTransform",gradientunits:"gradientUnits",kernelmatrix:"kernelMatrix",kernelunitlength:"kernelUnitLength",keypoints:"keyPoints",keysplines:"keySplines",keytimes:"keyTimes",lengthadjust:"lengthAdjust",limitingconeangle:"limitingConeAngle",markerheight:"markerHeight",markerunits:"markerUnits",markerwidth:"markerWidth",maskcontentunits:"maskContentUnits",maskunits:"maskUnits",numoctaves:"numOctaves",pathlength:"pathLength",patterncontentunits:"patternContentUnits",patterntransform:"patternTransform",patternunits:"patternUnits",pointsatx:"pointsAtX",pointsaty:"pointsAtY",pointsatz:"pointsAtZ",preservealpha:"preserveAlpha",preserveaspectratio:"preserveAspectRatio",primitiveunits:"primitiveUnits",refx:"refX",refy:"refY",repeatcount:"repeatCount",repeatdur:"repeatDur",requiredextensions:"requiredExtensions",requiredfeatures:"requiredFeatures",specularconstant:"specularConstant",specularexponent:"specularExponent",spreadmethod:"spreadMethod",startoffset:"startOffset",stddeviation:"stdDeviation",stitchtiles:"stitchTiles",surfacescale:"surfaceScale",systemlanguage:"systemLanguage",tablevalues:"tableValues",targetx:"targetX",targety:"targetY",textlength:"textLength",viewbox:"viewBox",viewtarget:"viewTarget",xchannelselector:"xChannelSelector",ychannelselector:"yChannelSelector",zoomandpan:"zoomAndPan"},BC={"xlink:actuate":{prefix:"xlink",name:"actuate",namespace:IC.XLINK},"xlink:arcrole":{prefix:"xlink",name:"arcrole",namespace:IC.XLINK},"xlink:href":{prefix:"xlink",name:"href",namespace:IC.XLINK},"xlink:role":{prefix:"xlink",name:"role",namespace:IC.XLINK},"xlink:show":{prefix:"xlink",name:"show",namespace:IC.XLINK},"xlink:title":{prefix:"xlink",name:"title",namespace:IC.XLINK},"xlink:type":{prefix:"xlink",name:"type",namespace:IC.XLINK},"xml:base":{prefix:"xml",name:"base",namespace:IC.XML},"xml:lang":{prefix:"xml",name:"lang",namespace:IC.XML},"xml:space":{prefix:"xml",name:"space",namespace:IC.XML},xmlns:{prefix:"",name:"xmlns",namespace:IC.XMLNS},"xmlns:xlink":{prefix:"xmlns",name:"xlink",namespace:IC.XMLNS}},UC=OC.SVG_TAG_NAMES_ADJUSTMENT_MAP={altglyph:"altGlyph",altglyphdef:"altGlyphDef",altglyphitem:"altGlyphItem",animatecolor:"animateColor",animatemotion:"animateMotion",animatetransform:"animateTransform",clippath:"clipPath",feblend:"feBlend",fecolormatrix:"feColorMatrix",fecomponenttransfer:"feComponentTransfer",fecomposite:"feComposite",feconvolvematrix:"feConvolveMatrix",fediffuselighting:"feDiffuseLighting",fedisplacementmap:"feDisplacementMap",fedistantlight:"feDistantLight",feflood:"feFlood",fefunca:"feFuncA",fefuncb:"feFuncB",fefuncg:"feFuncG",fefuncr:"feFuncR",fegaussianblur:"feGaussianBlur",feimage:"feImage",femerge:"feMerge",femergenode:"feMergeNode",femorphology:"feMorphology",feoffset:"feOffset",fepointlight:"fePointLight",fespecularlighting:"feSpecularLighting",fespotlight:"feSpotLight",fetile:"feTile",feturbulence:"feTurbulence",foreignobject:"foreignObject",glyphref:"glyphRef",lineargradient:"linearGradient",radialgradient:"radialGradient",textpath:"textPath"},HC={[PC.B]:!0,[PC.BIG]:!0,[PC.BLOCKQUOTE]:!0,[PC.BODY]:!0,[PC.BR]:!0,[PC.CENTER]:!0,[PC.CODE]:!0,[PC.DD]:!0,[PC.DIV]:!0,[PC.DL]:!0,[PC.DT]:!0,[PC.EM]:!0,[PC.EMBED]:!0,[PC.H1]:!0,[PC.H2]:!0,[PC.H3]:!0,[PC.H4]:!0,[PC.H5]:!0,[PC.H6]:!0,[PC.HEAD]:!0,[PC.HR]:!0,[PC.I]:!0,[PC.IMG]:!0,[PC.LI]:!0,[PC.LISTING]:!0,[PC.MENU]:!0,[PC.META]:!0,[PC.NOBR]:!0,[PC.OL]:!0,[PC.P]:!0,[PC.PRE]:!0,[PC.RUBY]:!0,[PC.S]:!0,[PC.SMALL]:!0,[PC.SPAN]:!0,[PC.STRONG]:!0,[PC.STRIKE]:!0,[PC.SUB]:!0,[PC.SUP]:!0,[PC.TABLE]:!0,[PC.TT]:!0,[PC.U]:!0,[PC.UL]:!0,[PC.VAR]:!0};OC.causesExit=function(e){const t=e.tagName;return!!(t===PC.FONT&&(null!==RC.getTokenAttr(e,LC.COLOR)||null!==RC.getTokenAttr(e,LC.SIZE)||null!==RC.getTokenAttr(e,LC.FACE)))||HC[t]},OC.adjustTokenMathMLAttrs=function(e){for(let t=0;t<e.attrs.length;t++)if("definitionurl"===e.attrs[t].name){e.attrs[t].name="definitionURL";break}},OC.adjustTokenSVGAttrs=function(e){for(let t=0;t<e.attrs.length;t++){const r=MC[e.attrs[t].name];r&&(e.attrs[t].name=r)}},OC.adjustTokenXMLAttrs=function(e){for(let t=0;t<e.attrs.length;t++){const r=BC[e.attrs[t].name];r&&(e.attrs[t].prefix=r.prefix,e.attrs[t].name=r.name,e.attrs[t].namespace=r.namespace)}},OC.adjustTokenSVGTagName=function(e){const t=UC[e.tagName];t&&(e.tagName=t)},OC.isIntegrationPoint=function(e,t,r,n){return!(n&&n!==IC.HTML||!function(e,t,r){if(t===IC.MATHML&&e===PC.ANNOTATION_XML)for(let e=0;e<r.length;e++)if(r[e].name===LC.ENCODING){const t=r[e].value.toLowerCase();return t===DC||t===FC}return t===IC.SVG&&(e===PC.FOREIGN_OBJECT||e===PC.DESC||e===PC.TITLE)}(e,t,r))||!(n&&n!==IC.MATHML||!function(e,t){return t===IC.MATHML&&(e===PC.MI||e===PC.MO||e===PC.MN||e===PC.MS||e===PC.MTEXT)}(e,t))};const jC=Sw,qC=Lw,zC=Fw,GC=Jw,$C=pC,KC=Bw,VC=dC,WC=function(e,t){return[e,t=t||Object.create(null)].reduce((e,t)=>(Object.keys(t).forEach(r=>{e[r]=t[r]}),e),Object.create(null))},QC=TC,YC=OC,XC=wS,JC=SS,ZC=kw,ex=ZC.TAG_NAMES,tx=ZC.NAMESPACES,rx=ZC.ATTRS,nx={scriptingEnabled:!0,sourceCodeLocationInfo:!1,onParseError:null,treeAdapter:VC},ox="hidden",ix="INITIAL_MODE",sx="BEFORE_HTML_MODE",ax="BEFORE_HEAD_MODE",cx="IN_HEAD_MODE",lx="IN_HEAD_NO_SCRIPT_MODE",ux="AFTER_HEAD_MODE",hx="IN_BODY_MODE",fx="TEXT_MODE",px="IN_TABLE_MODE",dx="IN_TABLE_TEXT_MODE",mx="IN_CAPTION_MODE",gx="IN_COLUMN_GROUP_MODE",yx="IN_TABLE_BODY_MODE",Ex="IN_ROW_MODE",Tx="IN_CELL_MODE",vx="IN_SELECT_MODE",bx="IN_SELECT_IN_TABLE_MODE",_x="IN_TEMPLATE_MODE",Ax="AFTER_BODY_MODE",Sx="IN_FRAMESET_MODE",kx="AFTER_FRAMESET_MODE",wx="AFTER_AFTER_BODY_MODE",Cx="AFTER_AFTER_FRAMESET_MODE",xx={[ex.TR]:Ex,[ex.TBODY]:yx,[ex.THEAD]:yx,[ex.TFOOT]:yx,[ex.CAPTION]:mx,[ex.COLGROUP]:gx,[ex.TABLE]:px,[ex.BODY]:hx,[ex.FRAMESET]:Sx},Ox={[ex.CAPTION]:px,[ex.COLGROUP]:px,[ex.TBODY]:px,[ex.TFOOT]:px,[ex.THEAD]:px,[ex.COL]:gx,[ex.TR]:yx,[ex.TD]:Ex,[ex.TH]:Ex},Rx={[ix]:{[jC.CHARACTER_TOKEN]:$x,[jC.NULL_CHARACTER_TOKEN]:$x,[jC.WHITESPACE_CHARACTER_TOKEN]:Ux,[jC.COMMENT_TOKEN]:jx,[jC.DOCTYPE_TOKEN]:function(e,t){e._setDocumentType(t);const r=t.forceQuirks?ZC.DOCUMENT_MODE.QUIRKS:QC.getDocumentMode(t);QC.isConforming(t)||e._err(XC.nonConformingDoctype);e.treeAdapter.setDocumentMode(e.document,r),e.insertionMode=sx},[jC.START_TAG_TOKEN]:$x,[jC.END_TAG_TOKEN]:$x,[jC.EOF_TOKEN]:$x},[sx]:{[jC.CHARACTER_TOKEN]:Kx,[jC.NULL_CHARACTER_TOKEN]:Kx,[jC.WHITESPACE_CHARACTER_TOKEN]:Ux,[jC.COMMENT_TOKEN]:jx,[jC.DOCTYPE_TOKEN]:Ux,[jC.START_TAG_TOKEN]:function(e,t){t.tagName===ex.HTML?(e._insertElement(t,tx.HTML),e.insertionMode=ax):Kx(e,t)},[jC.END_TAG_TOKEN]:function(e,t){const r=t.tagName;r!==ex.HTML&&r!==ex.HEAD&&r!==ex.BODY&&r!==ex.BR||Kx(e,t)},[jC.EOF_TOKEN]:Kx},[ax]:{[jC.CHARACTER_TOKEN]:Vx,[jC.NULL_CHARACTER_TOKEN]:Vx,[jC.WHITESPACE_CHARACTER_TOKEN]:Ux,[jC.COMMENT_TOKEN]:jx,[jC.DOCTYPE_TOKEN]:Hx,[jC.START_TAG_TOKEN]:function(e,t){const r=t.tagName;r===ex.HTML?hO(e,t):r===ex.HEAD?(e._insertElement(t,tx.HTML),e.headElement=e.openElements.current,e.insertionMode=cx):Vx(e,t)},[jC.END_TAG_TOKEN]:function(e,t){const r=t.tagName;r===ex.HEAD||r===ex.BODY||r===ex.HTML||r===ex.BR?Vx(e,t):e._err(XC.endTagWithoutMatchingOpenElement)},[jC.EOF_TOKEN]:Vx},[cx]:{[jC.CHARACTER_TOKEN]:Yx,[jC.NULL_CHARACTER_TOKEN]:Yx,[jC.WHITESPACE_CHARACTER_TOKEN]:zx,[jC.COMMENT_TOKEN]:jx,[jC.DOCTYPE_TOKEN]:Hx,[jC.START_TAG_TOKEN]:Wx,[jC.END_TAG_TOKEN]:Qx,[jC.EOF_TOKEN]:Yx},[lx]:{[jC.CHARACTER_TOKEN]:Xx,[jC.NULL_CHARACTER_TOKEN]:Xx,[jC.WHITESPACE_CHARACTER_TOKEN]:zx,[jC.COMMENT_TOKEN]:jx,[jC.DOCTYPE_TOKEN]:Hx,[jC.START_TAG_TOKEN]:function(e,t){const r=t.tagName;r===ex.HTML?hO(e,t):r===ex.BASEFONT||r===ex.BGSOUND||r===ex.HEAD||r===ex.LINK||r===ex.META||r===ex.NOFRAMES||r===ex.STYLE?Wx(e,t):r===ex.NOSCRIPT?e._err(XC.nestedNoscriptInHead):Xx(e,t)},[jC.END_TAG_TOKEN]:function(e,t){const r=t.tagName;r===ex.NOSCRIPT?(e.openElements.pop(),e.insertionMode=cx):r===ex.BR?Xx(e,t):e._err(XC.endTagWithoutMatchingOpenElement)},[jC.EOF_TOKEN]:Xx},[ux]:{[jC.CHARACTER_TOKEN]:Jx,[jC.NULL_CHARACTER_TOKEN]:Jx,[jC.WHITESPACE_CHARACTER_TOKEN]:zx,[jC.COMMENT_TOKEN]:jx,[jC.DOCTYPE_TOKEN]:Hx,[jC.START_TAG_TOKEN]:function(e,t){const r=t.tagName;r===ex.HTML?hO(e,t):r===ex.BODY?(e._insertElement(t,tx.HTML),e.framesetOk=!1,e.insertionMode=hx):r===ex.FRAMESET?(e._insertElement(t,tx.HTML),e.insertionMode=Sx):r===ex.BASE||r===ex.BASEFONT||r===ex.BGSOUND||r===ex.LINK||r===ex.META||r===ex.NOFRAMES||r===ex.SCRIPT||r===ex.STYLE||r===ex.TEMPLATE||r===ex.TITLE?(e._err(XC.abandonedHeadElementChild),e.openElements.push(e.headElement),Wx(e,t),e.openElements.remove(e.headElement)):r===ex.HEAD?e._err(XC.misplacedStartTagForHeadElement):Jx(e,t)},[jC.END_TAG_TOKEN]:function(e,t){const r=t.tagName;r===ex.BODY||r===ex.HTML||r===ex.BR?Jx(e,t):r===ex.TEMPLATE?Qx(e,t):e._err(XC.endTagWithoutMatchingOpenElement)},[jC.EOF_TOKEN]:Jx},[hx]:{[jC.CHARACTER_TOKEN]:eO,[jC.NULL_CHARACTER_TOKEN]:Ux,[jC.WHITESPACE_CHARACTER_TOKEN]:Zx,[jC.COMMENT_TOKEN]:jx,[jC.DOCTYPE_TOKEN]:Ux,[jC.START_TAG_TOKEN]:hO,[jC.END_TAG_TOKEN]:mO,[jC.EOF_TOKEN]:gO},[fx]:{[jC.CHARACTER_TOKEN]:zx,[jC.NULL_CHARACTER_TOKEN]:zx,[jC.WHITESPACE_CHARACTER_TOKEN]:zx,[jC.COMMENT_TOKEN]:Ux,[jC.DOCTYPE_TOKEN]:Ux,[jC.START_TAG_TOKEN]:Ux,[jC.END_TAG_TOKEN]:function(e,t){t.tagName===ex.SCRIPT&&(e.pendingScript=e.openElements.current);e.openElements.pop(),e.insertionMode=e.originalInsertionMode},[jC.EOF_TOKEN]:function(e,t){e._err(XC.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e._processToken(t)}},[px]:{[jC.CHARACTER_TOKEN]:yO,[jC.NULL_CHARACTER_TOKEN]:yO,[jC.WHITESPACE_CHARACTER_TOKEN]:yO,[jC.COMMENT_TOKEN]:jx,[jC.DOCTYPE_TOKEN]:Ux,[jC.START_TAG_TOKEN]:EO,[jC.END_TAG_TOKEN]:TO,[jC.EOF_TOKEN]:gO},[dx]:{[jC.CHARACTER_TOKEN]:function(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0},[jC.NULL_CHARACTER_TOKEN]:Ux,[jC.WHITESPACE_CHARACTER_TOKEN]:function(e,t){e.pendingCharacterTokens.push(t)},[jC.COMMENT_TOKEN]:bO,[jC.DOCTYPE_TOKEN]:bO,[jC.START_TAG_TOKEN]:bO,[jC.END_TAG_TOKEN]:bO,[jC.EOF_TOKEN]:bO},[mx]:{[jC.CHARACTER_TOKEN]:eO,[jC.NULL_CHARACTER_TOKEN]:Ux,[jC.WHITESPACE_CHARACTER_TOKEN]:Zx,[jC.COMMENT_TOKEN]:jx,[jC.DOCTYPE_TOKEN]:Ux,[jC.START_TAG_TOKEN]:function(e,t){const r=t.tagName;r===ex.CAPTION||r===ex.COL||r===ex.COLGROUP||r===ex.TBODY||r===ex.TD||r===ex.TFOOT||r===ex.TH||r===ex.THEAD||r===ex.TR?e.openElements.hasInTableScope(ex.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(ex.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=px,e._processToken(t)):hO(e,t)},[jC.END_TAG_TOKEN]:function(e,t){const r=t.tagName;r===ex.CAPTION||r===ex.TABLE?e.openElements.hasInTableScope(ex.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(ex.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=px,r===ex.TABLE&&e._processToken(t)):r!==ex.BODY&&r!==ex.COL&&r!==ex.COLGROUP&&r!==ex.HTML&&r!==ex.TBODY&&r!==ex.TD&&r!==ex.TFOOT&&r!==ex.TH&&r!==ex.THEAD&&r!==ex.TR&&mO(e,t)},[jC.EOF_TOKEN]:gO},[gx]:{[jC.CHARACTER_TOKEN]:_O,[jC.NULL_CHARACTER_TOKEN]:_O,[jC.WHITESPACE_CHARACTER_TOKEN]:zx,[jC.COMMENT_TOKEN]:jx,[jC.DOCTYPE_TOKEN]:Ux,[jC.START_TAG_TOKEN]:function(e,t){const r=t.tagName;r===ex.HTML?hO(e,t):r===ex.COL?(e._appendElement(t,tx.HTML),t.ackSelfClosing=!0):r===ex.TEMPLATE?Wx(e,t):_O(e,t)},[jC.END_TAG_TOKEN]:function(e,t){const r=t.tagName;r===ex.COLGROUP?e.openElements.currentTagName===ex.COLGROUP&&(e.openElements.pop(),e.insertionMode=px):r===ex.TEMPLATE?Qx(e,t):r!==ex.COL&&_O(e,t)},[jC.EOF_TOKEN]:gO},[yx]:{[jC.CHARACTER_TOKEN]:yO,[jC.NULL_CHARACTER_TOKEN]:yO,[jC.WHITESPACE_CHARACTER_TOKEN]:yO,[jC.COMMENT_TOKEN]:jx,[jC.DOCTYPE_TOKEN]:Ux,[jC.START_TAG_TOKEN]:function(e,t){const r=t.tagName;r===ex.TR?(e.openElements.clearBackToTableBodyContext(),e._insertElement(t,tx.HTML),e.insertionMode=Ex):r===ex.TH||r===ex.TD?(e.openElements.clearBackToTableBodyContext(),e._insertFakeElement(ex.TR),e.insertionMode=Ex,e._processToken(t)):r===ex.CAPTION||r===ex.COL||r===ex.COLGROUP||r===ex.TBODY||r===ex.TFOOT||r===ex.THEAD?e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=px,e._processToken(t)):EO(e,t)},[jC.END_TAG_TOKEN]:function(e,t){const r=t.tagName;r===ex.TBODY||r===ex.TFOOT||r===ex.THEAD?e.openElements.hasInTableScope(r)&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=px):r===ex.TABLE?e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=px,e._processToken(t)):(r!==ex.BODY&&r!==ex.CAPTION&&r!==ex.COL&&r!==ex.COLGROUP||r!==ex.HTML&&r!==ex.TD&&r!==ex.TH&&r!==ex.TR)&&TO(e,t)},[jC.EOF_TOKEN]:gO},[Ex]:{[jC.CHARACTER_TOKEN]:yO,[jC.NULL_CHARACTER_TOKEN]:yO,[jC.WHITESPACE_CHARACTER_TOKEN]:yO,[jC.COMMENT_TOKEN]:jx,[jC.DOCTYPE_TOKEN]:Ux,[jC.START_TAG_TOKEN]:function(e,t){const r=t.tagName;r===ex.TH||r===ex.TD?(e.openElements.clearBackToTableRowContext(),e._insertElement(t,tx.HTML),e.insertionMode=Tx,e.activeFormattingElements.insertMarker()):r===ex.CAPTION||r===ex.COL||r===ex.COLGROUP||r===ex.TBODY||r===ex.TFOOT||r===ex.THEAD||r===ex.TR?e.openElements.hasInTableScope(ex.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=yx,e._processToken(t)):EO(e,t)},[jC.END_TAG_TOKEN]:function(e,t){const r=t.tagName;r===ex.TR?e.openElements.hasInTableScope(ex.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=yx):r===ex.TABLE?e.openElements.hasInTableScope(ex.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=yx,e._processToken(t)):r===ex.TBODY||r===ex.TFOOT||r===ex.THEAD?(e.openElements.hasInTableScope(r)||e.openElements.hasInTableScope(ex.TR))&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=yx,e._processToken(t)):(r!==ex.BODY&&r!==ex.CAPTION&&r!==ex.COL&&r!==ex.COLGROUP||r!==ex.HTML&&r!==ex.TD&&r!==ex.TH)&&TO(e,t)},[jC.EOF_TOKEN]:gO},[Tx]:{[jC.CHARACTER_TOKEN]:eO,[jC.NULL_CHARACTER_TOKEN]:Ux,[jC.WHITESPACE_CHARACTER_TOKEN]:Zx,[jC.COMMENT_TOKEN]:jx,[jC.DOCTYPE_TOKEN]:Ux,[jC.START_TAG_TOKEN]:function(e,t){const r=t.tagName;r===ex.CAPTION||r===ex.COL||r===ex.COLGROUP||r===ex.TBODY||r===ex.TD||r===ex.TFOOT||r===ex.TH||r===ex.THEAD||r===ex.TR?(e.openElements.hasInTableScope(ex.TD)||e.openElements.hasInTableScope(ex.TH))&&(e._closeTableCell(),e._processToken(t)):hO(e,t)},[jC.END_TAG_TOKEN]:function(e,t){const r=t.tagName;r===ex.TD||r===ex.TH?e.openElements.hasInTableScope(r)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(r),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=Ex):r===ex.TABLE||r===ex.TBODY||r===ex.TFOOT||r===ex.THEAD||r===ex.TR?e.openElements.hasInTableScope(r)&&(e._closeTableCell(),e._processToken(t)):r!==ex.BODY&&r!==ex.CAPTION&&r!==ex.COL&&r!==ex.COLGROUP&&r!==ex.HTML&&mO(e,t)},[jC.EOF_TOKEN]:gO},[vx]:{[jC.CHARACTER_TOKEN]:zx,[jC.NULL_CHARACTER_TOKEN]:Ux,[jC.WHITESPACE_CHARACTER_TOKEN]:zx,[jC.COMMENT_TOKEN]:jx,[jC.DOCTYPE_TOKEN]:Ux,[jC.START_TAG_TOKEN]:AO,[jC.END_TAG_TOKEN]:SO,[jC.EOF_TOKEN]:gO},[bx]:{[jC.CHARACTER_TOKEN]:zx,[jC.NULL_CHARACTER_TOKEN]:Ux,[jC.WHITESPACE_CHARACTER_TOKEN]:zx,[jC.COMMENT_TOKEN]:jx,[jC.DOCTYPE_TOKEN]:Ux,[jC.START_TAG_TOKEN]:function(e,t){const r=t.tagName;r===ex.CAPTION||r===ex.TABLE||r===ex.TBODY||r===ex.TFOOT||r===ex.THEAD||r===ex.TR||r===ex.TD||r===ex.TH?(e.openElements.popUntilTagNamePopped(ex.SELECT),e._resetInsertionMode(),e._processToken(t)):AO(e,t)},[jC.END_TAG_TOKEN]:function(e,t){const r=t.tagName;r===ex.CAPTION||r===ex.TABLE||r===ex.TBODY||r===ex.TFOOT||r===ex.THEAD||r===ex.TR||r===ex.TD||r===ex.TH?e.openElements.hasInTableScope(r)&&(e.openElements.popUntilTagNamePopped(ex.SELECT),e._resetInsertionMode(),e._processToken(t)):SO(e,t)},[jC.EOF_TOKEN]:gO},[_x]:{[jC.CHARACTER_TOKEN]:eO,[jC.NULL_CHARACTER_TOKEN]:Ux,[jC.WHITESPACE_CHARACTER_TOKEN]:Zx,[jC.COMMENT_TOKEN]:jx,[jC.DOCTYPE_TOKEN]:Ux,[jC.START_TAG_TOKEN]:function(e,t){const r=t.tagName;if(r===ex.BASE||r===ex.BASEFONT||r===ex.BGSOUND||r===ex.LINK||r===ex.META||r===ex.NOFRAMES||r===ex.SCRIPT||r===ex.STYLE||r===ex.TEMPLATE||r===ex.TITLE)Wx(e,t);else{const n=Ox[r]||hx;e._popTmplInsertionMode(),e._pushTmplInsertionMode(n),e.insertionMode=n,e._processToken(t)}},[jC.END_TAG_TOKEN]:function(e,t){t.tagName===ex.TEMPLATE&&Qx(e,t)},[jC.EOF_TOKEN]:kO},[Ax]:{[jC.CHARACTER_TOKEN]:wO,[jC.NULL_CHARACTER_TOKEN]:wO,[jC.WHITESPACE_CHARACTER_TOKEN]:Zx,[jC.COMMENT_TOKEN]:function(e,t){e._appendCommentNode(t,e.openElements.items[0])},[jC.DOCTYPE_TOKEN]:Ux,[jC.START_TAG_TOKEN]:function(e,t){t.tagName===ex.HTML?hO(e,t):wO(e,t)},[jC.END_TAG_TOKEN]:function(e,t){t.tagName===ex.HTML?e.fragmentContext||(e.insertionMode=wx):wO(e,t)},[jC.EOF_TOKEN]:Gx},[Sx]:{[jC.CHARACTER_TOKEN]:Ux,[jC.NULL_CHARACTER_TOKEN]:Ux,[jC.WHITESPACE_CHARACTER_TOKEN]:zx,[jC.COMMENT_TOKEN]:jx,[jC.DOCTYPE_TOKEN]:Ux,[jC.START_TAG_TOKEN]:function(e,t){const r=t.tagName;r===ex.HTML?hO(e,t):r===ex.FRAMESET?e._insertElement(t,tx.HTML):r===ex.FRAME?(e._appendElement(t,tx.HTML),t.ackSelfClosing=!0):r===ex.NOFRAMES&&Wx(e,t)},[jC.END_TAG_TOKEN]:function(e,t){t.tagName!==ex.FRAMESET||e.openElements.isRootHtmlElementCurrent()||(e.openElements.pop(),e.fragmentContext||e.openElements.currentTagName===ex.FRAMESET||(e.insertionMode=kx))},[jC.EOF_TOKEN]:Gx},[kx]:{[jC.CHARACTER_TOKEN]:Ux,[jC.NULL_CHARACTER_TOKEN]:Ux,[jC.WHITESPACE_CHARACTER_TOKEN]:zx,[jC.COMMENT_TOKEN]:jx,[jC.DOCTYPE_TOKEN]:Ux,[jC.START_TAG_TOKEN]:function(e,t){const r=t.tagName;r===ex.HTML?hO(e,t):r===ex.NOFRAMES&&Wx(e,t)},[jC.END_TAG_TOKEN]:function(e,t){t.tagName===ex.HTML&&(e.insertionMode=Cx)},[jC.EOF_TOKEN]:Gx},[wx]:{[jC.CHARACTER_TOKEN]:CO,[jC.NULL_CHARACTER_TOKEN]:CO,[jC.WHITESPACE_CHARACTER_TOKEN]:Zx,[jC.COMMENT_TOKEN]:qx,[jC.DOCTYPE_TOKEN]:Ux,[jC.START_TAG_TOKEN]:function(e,t){t.tagName===ex.HTML?hO(e,t):CO(e,t)},[jC.END_TAG_TOKEN]:CO,[jC.EOF_TOKEN]:Gx},[Cx]:{[jC.CHARACTER_TOKEN]:Ux,[jC.NULL_CHARACTER_TOKEN]:Ux,[jC.WHITESPACE_CHARACTER_TOKEN]:Zx,[jC.COMMENT_TOKEN]:qx,[jC.DOCTYPE_TOKEN]:Ux,[jC.START_TAG_TOKEN]:function(e,t){const r=t.tagName;r===ex.HTML?hO(e,t):r===ex.NOFRAMES&&Wx(e,t)},[jC.END_TAG_TOKEN]:Ux,[jC.EOF_TOKEN]:Gx}};var Nx=class{constructor(e){this.options=WC(nx,e),this.treeAdapter=this.options.treeAdapter,this.pendingScript=null,this.options.sourceCodeLocationInfo&&KC.install(this,GC),this.options.onParseError&&KC.install(this,$C,{onParseError:this.options.onParseError})}parse(e){const t=this.treeAdapter.createDocument();return this._bootstrap(t,null),this.tokenizer.write(e,!0),this._runParsingLoop(null),t}parseFragment(e,t){t||(t=this.treeAdapter.createElement(ex.TEMPLATE,tx.HTML,[]));const r=this.treeAdapter.createElement("documentmock",tx.HTML,[]);this._bootstrap(r,t),this.treeAdapter.getTagName(t)===ex.TEMPLATE&&this._pushTmplInsertionMode(_x),this._initTokenizerForFragmentParsing(),this._insertFakeRootElement(),this._resetInsertionMode(),this._findFormInFragmentContext(),this.tokenizer.write(e,!0),this._runParsingLoop(null);const n=this.treeAdapter.getFirstChild(r),o=this.treeAdapter.createDocumentFragment();return this._adoptNodes(n,o),o}_bootstrap(e,t){this.tokenizer=new jC(this.options),this.stopped=!1,this.insertionMode=ix,this.originalInsertionMode="",this.document=e,this.fragmentContext=t,this.headElement=null,this.formElement=null,this.openElements=new qC(this.document,this.treeAdapter),this.activeFormattingElements=new zC(this.treeAdapter),this.tmplInsertionModeStack=[],this.tmplInsertionModeStackTop=-1,this.currentTmplInsertionMode=null,this.pendingCharacterTokens=[],this.hasNonWhitespacePendingCharacterToken=!1,this.framesetOk=!0,this.skipNextNewLine=!1,this.fosterParentingEnabled=!1}_err(){}_runParsingLoop(e){for(;!this.stopped;){this._setupTokenizerCDATAMode();const t=this.tokenizer.getNextToken();if(t.type===jC.HIBERNATION_TOKEN)break;if(this.skipNextNewLine&&(this.skipNextNewLine=!1,t.type===jC.WHITESPACE_CHARACTER_TOKEN&&"\n"===t.chars[0])){if(1===t.chars.length)continue;t.chars=t.chars.substr(1)}if(this._processInputToken(t),e&&this.pendingScript)break}}runParsingLoopForCurrentChunk(e,t){if(this._runParsingLoop(t),t&&this.pendingScript){const e=this.pendingScript;return this.pendingScript=null,void t(e)}e&&e()}_setupTokenizerCDATAMode(){const e=this._getAdjustedCurrentElement();this.tokenizer.allowCDATA=e&&e!==this.document&&this.treeAdapter.getNamespaceURI(e)!==tx.HTML&&!this._isIntegrationPoint(e)}_switchToTextParsing(e,t){this._insertElement(e,tx.HTML),this.tokenizer.state=t,this.originalInsertionMode=this.insertionMode,this.insertionMode=fx}switchToPlaintextParsing(){this.insertionMode=fx,this.originalInsertionMode=hx,this.tokenizer.state=jC.MODE.PLAINTEXT}_getAdjustedCurrentElement(){return 0===this.openElements.stackTop&&this.fragmentContext?this.fragmentContext:this.openElements.current}_findFormInFragmentContext(){let e=this.fragmentContext;do{if(this.treeAdapter.getTagName(e)===ex.FORM){this.formElement=e;break}e=this.treeAdapter.getParentNode(e)}while(e)}_initTokenizerForFragmentParsing(){if(this.treeAdapter.getNamespaceURI(this.fragmentContext)===tx.HTML){const e=this.treeAdapter.getTagName(this.fragmentContext);e===ex.TITLE||e===ex.TEXTAREA?this.tokenizer.state=jC.MODE.RCDATA:e===ex.STYLE||e===ex.XMP||e===ex.IFRAME||e===ex.NOEMBED||e===ex.NOFRAMES||e===ex.NOSCRIPT?this.tokenizer.state=jC.MODE.RAWTEXT:e===ex.SCRIPT?this.tokenizer.state=jC.MODE.SCRIPT_DATA:e===ex.PLAINTEXT&&(this.tokenizer.state=jC.MODE.PLAINTEXT)}}_setDocumentType(e){const t=e.name||"",r=e.publicId||"",n=e.systemId||"";this.treeAdapter.setDocumentType(this.document,t,r,n)}_attachElementToTree(e){if(this._shouldFosterParentOnInsertion())this._fosterParentElement(e);else{const t=this.openElements.currentTmplContent||this.openElements.current;this.treeAdapter.appendChild(t,e)}}_appendElement(e,t){const r=this.treeAdapter.createElement(e.tagName,t,e.attrs);this._attachElementToTree(r)}_insertElement(e,t){const r=this.treeAdapter.createElement(e.tagName,t,e.attrs);this._attachElementToTree(r),this.openElements.push(r)}_insertFakeElement(e){const t=this.treeAdapter.createElement(e,tx.HTML,[]);this._attachElementToTree(t),this.openElements.push(t)}_insertTemplate(e){const t=this.treeAdapter.createElement(e.tagName,tx.HTML,e.attrs),r=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(t,r),this._attachElementToTree(t),this.openElements.push(t)}_insertFakeRootElement(){const e=this.treeAdapter.createElement(ex.HTML,tx.HTML,[]);this.treeAdapter.appendChild(this.openElements.current,e),this.openElements.push(e)}_appendCommentNode(e,t){const r=this.treeAdapter.createCommentNode(e.data);this.treeAdapter.appendChild(t,r)}_insertCharacters(e){if(this._shouldFosterParentOnInsertion())this._fosterParentText(e.chars);else{const t=this.openElements.currentTmplContent||this.openElements.current;this.treeAdapter.insertText(t,e.chars)}}_adoptNodes(e,t){for(let r=this.treeAdapter.getFirstChild(e);r;r=this.treeAdapter.getFirstChild(e))this.treeAdapter.detachNode(r),this.treeAdapter.appendChild(t,r)}_shouldProcessTokenInForeignContent(e){const t=this._getAdjustedCurrentElement();if(!t||t===this.document)return!1;const r=this.treeAdapter.getNamespaceURI(t);if(r===tx.HTML)return!1;if(this.treeAdapter.getTagName(t)===ex.ANNOTATION_XML&&r===tx.MATHML&&e.type===jC.START_TAG_TOKEN&&e.tagName===ex.SVG)return!1;const n=e.type===jC.CHARACTER_TOKEN||e.type===jC.NULL_CHARACTER_TOKEN||e.type===jC.WHITESPACE_CHARACTER_TOKEN;return(!(e.type===jC.START_TAG_TOKEN&&e.tagName!==ex.MGLYPH&&e.tagName!==ex.MALIGNMARK)&&!n||!this._isIntegrationPoint(t,tx.MATHML))&&((e.type!==jC.START_TAG_TOKEN&&!n||!this._isIntegrationPoint(t,tx.HTML))&&e.type!==jC.EOF_TOKEN)}_processToken(e){Rx[this.insertionMode][e.type](this,e)}_processTokenInBodyMode(e){Rx[hx][e.type](this,e)}_processTokenInForeignContent(e){e.type===jC.CHARACTER_TOKEN?function(e,t){e._insertCharacters(t),e.framesetOk=!1}(this,e):e.type===jC.NULL_CHARACTER_TOKEN?function(e,t){t.chars=JC.REPLACEMENT_CHARACTER,e._insertCharacters(t)}(this,e):e.type===jC.WHITESPACE_CHARACTER_TOKEN?zx(this,e):e.type===jC.COMMENT_TOKEN?jx(this,e):e.type===jC.START_TAG_TOKEN?function(e,t){if(YC.causesExit(t)&&!e.fragmentContext){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==tx.HTML&&!e._isIntegrationPoint(e.openElements.current);)e.openElements.pop();e._processToken(t)}else{const r=e._getAdjustedCurrentElement(),n=e.treeAdapter.getNamespaceURI(r);n===tx.MATHML?YC.adjustTokenMathMLAttrs(t):n===tx.SVG&&(YC.adjustTokenSVGTagName(t),YC.adjustTokenSVGAttrs(t)),YC.adjustTokenXMLAttrs(t),t.selfClosing?e._appendElement(t,n):e._insertElement(t,n),t.ackSelfClosing=!0}}(this,e):e.type===jC.END_TAG_TOKEN&&function(e,t){for(let r=e.openElements.stackTop;r>0;r--){const n=e.openElements.items[r];if(e.treeAdapter.getNamespaceURI(n)===tx.HTML){e._processToken(t);break}if(e.treeAdapter.getTagName(n).toLowerCase()===t.tagName){e.openElements.popUntilElementPopped(n);break}}}(this,e)}_processInputToken(e){this._shouldProcessTokenInForeignContent(e)?this._processTokenInForeignContent(e):this._processToken(e),e.type===jC.START_TAG_TOKEN&&e.selfClosing&&!e.ackSelfClosing&&this._err(XC.nonVoidHtmlElementStartTagWithTrailingSolidus)}_isIntegrationPoint(e,t){const r=this.treeAdapter.getTagName(e),n=this.treeAdapter.getNamespaceURI(e),o=this.treeAdapter.getAttrList(e);return YC.isIntegrationPoint(r,n,o,t)}_reconstructActiveFormattingElements(){const e=this.activeFormattingElements.length;if(e){let t=e,r=null;do{if(t--,r=this.activeFormattingElements.entries[t],r.type===zC.MARKER_ENTRY||this.openElements.contains(r.element)){t++;break}}while(t>0);for(let n=t;n<e;n++)r=this.activeFormattingElements.entries[n],this._insertElement(r.token,this.treeAdapter.getNamespaceURI(r.element)),r.element=this.openElements.current}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=Ex}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(ex.P),this.openElements.popUntilTagNamePopped(ex.P)}_resetInsertionMode(){for(let e=this.openElements.stackTop,t=!1;e>=0;e--){let r=this.openElements.items[e];0===e&&(t=!0,this.fragmentContext&&(r=this.fragmentContext));const n=this.treeAdapter.getTagName(r),o=xx[n];if(o){this.insertionMode=o;break}if(!(t||n!==ex.TD&&n!==ex.TH)){this.insertionMode=Tx;break}if(!t&&n===ex.HEAD){this.insertionMode=cx;break}if(n===ex.SELECT){this._resetInsertionModeForSelect(e);break}if(n===ex.TEMPLATE){this.insertionMode=this.currentTmplInsertionMode;break}if(n===ex.HTML){this.insertionMode=this.headElement?ux:ax;break}if(t){this.insertionMode=hx;break}}}_resetInsertionModeForSelect(e){if(e>0)for(let t=e-1;t>0;t--){const e=this.openElements.items[t],r=this.treeAdapter.getTagName(e);if(r===ex.TEMPLATE)break;if(r===ex.TABLE)return void(this.insertionMode=bx)}this.insertionMode=vx}_pushTmplInsertionMode(e){this.tmplInsertionModeStack.push(e),this.tmplInsertionModeStackTop++,this.currentTmplInsertionMode=e}_popTmplInsertionMode(){this.tmplInsertionModeStack.pop(),this.tmplInsertionModeStackTop--,this.currentTmplInsertionMode=this.tmplInsertionModeStack[this.tmplInsertionModeStackTop]}_isElementCausesFosterParenting(e){const t=this.treeAdapter.getTagName(e);return t===ex.TABLE||t===ex.TBODY||t===ex.TFOOT||t===ex.THEAD||t===ex.TR}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this._isElementCausesFosterParenting(this.openElements.current)}_findFosterParentingLocation(){const e={parent:null,beforeElement:null};for(let t=this.openElements.stackTop;t>=0;t--){const r=this.openElements.items[t],n=this.treeAdapter.getTagName(r),o=this.treeAdapter.getNamespaceURI(r);if(n===ex.TEMPLATE&&o===tx.HTML){e.parent=this.treeAdapter.getTemplateContent(r);break}if(n===ex.TABLE){e.parent=this.treeAdapter.getParentNode(r),e.parent?e.beforeElement=r:e.parent=this.openElements.items[t-1];break}}return e.parent||(e.parent=this.openElements.items[0]),e}_fosterParentElement(e){const t=this._findFosterParentingLocation();t.beforeElement?this.treeAdapter.insertBefore(t.parent,e,t.beforeElement):this.treeAdapter.appendChild(t.parent,e)}_fosterParentText(e){const t=this._findFosterParentingLocation();t.beforeElement?this.treeAdapter.insertTextBefore(t.parent,e,t.beforeElement):this.treeAdapter.insertText(t.parent,e)}_isSpecialElement(e){const t=this.treeAdapter.getTagName(e),r=this.treeAdapter.getNamespaceURI(e);return ZC.SPECIAL_ELEMENTS[r][t]}};function Px(e,t){let r=e.activeFormattingElements.getElementEntryInScopeWithTagName(t.tagName);return r?e.openElements.contains(r.element)?e.openElements.hasInScope(t.tagName)||(r=null):(e.activeFormattingElements.removeEntry(r),r=null):dO(e,t),r}function Ix(e,t){let r=null;for(let n=e.openElements.stackTop;n>=0;n--){const o=e.openElements.items[n];if(o===t.element)break;e._isSpecialElement(o)&&(r=o)}return r||(e.openElements.popUntilElementPopped(t.element),e.activeFormattingElements.removeEntry(t)),r}function Lx(e,t,r){let n=t,o=e.openElements.getCommonAncestor(t);for(let i=0,s=o;s!==r;i++,s=o){o=e.openElements.getCommonAncestor(s);const r=e.activeFormattingElements.getElementEntry(s),a=r&&i>=3;!r||a?(a&&e.activeFormattingElements.removeEntry(r),e.openElements.remove(s)):(s=Dx(e,r),n===t&&(e.activeFormattingElements.bookmark=r),e.treeAdapter.detachNode(n),e.treeAdapter.appendChild(s,n),n=s)}return n}function Dx(e,t){const r=e.treeAdapter.getNamespaceURI(t.element),n=e.treeAdapter.createElement(t.token.tagName,r,t.token.attrs);return e.openElements.replace(t.element,n),t.element=n,n}function Fx(e,t,r){if(e._isElementCausesFosterParenting(t))e._fosterParentElement(r);else{const n=e.treeAdapter.getTagName(t),o=e.treeAdapter.getNamespaceURI(t);n===ex.TEMPLATE&&o===tx.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,r)}}function Mx(e,t,r){const n=e.treeAdapter.getNamespaceURI(r.element),o=r.token,i=e.treeAdapter.createElement(o.tagName,n,o.attrs);e._adoptNodes(t,i),e.treeAdapter.appendChild(t,i),e.activeFormattingElements.insertElementAfterBookmark(i,r.token),e.activeFormattingElements.removeEntry(r),e.openElements.remove(r.element),e.openElements.insertAfter(t,i)}function Bx(e,t){let r;for(let n=0;n<8&&(r=Px(e,t),r);n++){const t=Ix(e,r);if(!t)break;e.activeFormattingElements.bookmark=r;const n=Lx(e,t,r.element),o=e.openElements.getCommonAncestor(r.element);e.treeAdapter.detachNode(n),Fx(e,o,n),Mx(e,t,r)}}function Ux(){}function Hx(e){e._err(XC.misplacedDoctype)}function jx(e,t){e._appendCommentNode(t,e.openElements.currentTmplContent||e.openElements.current)}function qx(e,t){e._appendCommentNode(t,e.document)}function zx(e,t){e._insertCharacters(t)}function Gx(e){e.stopped=!0}function $x(e,t){e._err(XC.missingDoctype,{beforeToken:!0}),e.treeAdapter.setDocumentMode(e.document,ZC.DOCUMENT_MODE.QUIRKS),e.insertionMode=sx,e._processToken(t)}function Kx(e,t){e._insertFakeRootElement(),e.insertionMode=ax,e._processToken(t)}function Vx(e,t){e._insertFakeElement(ex.HEAD),e.headElement=e.openElements.current,e.insertionMode=cx,e._processToken(t)}function Wx(e,t){const r=t.tagName;r===ex.HTML?hO(e,t):r===ex.BASE||r===ex.BASEFONT||r===ex.BGSOUND||r===ex.LINK||r===ex.META?(e._appendElement(t,tx.HTML),t.ackSelfClosing=!0):r===ex.TITLE?e._switchToTextParsing(t,jC.MODE.RCDATA):r===ex.NOSCRIPT?e.options.scriptingEnabled?e._switchToTextParsing(t,jC.MODE.RAWTEXT):(e._insertElement(t,tx.HTML),e.insertionMode=lx):r===ex.NOFRAMES||r===ex.STYLE?e._switchToTextParsing(t,jC.MODE.RAWTEXT):r===ex.SCRIPT?e._switchToTextParsing(t,jC.MODE.SCRIPT_DATA):r===ex.TEMPLATE?(e._insertTemplate(t,tx.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=_x,e._pushTmplInsertionMode(_x)):r===ex.HEAD?e._err(XC.misplacedStartTagForHeadElement):Yx(e,t)}function Qx(e,t){const r=t.tagName;r===ex.HEAD?(e.openElements.pop(),e.insertionMode=ux):r===ex.BODY||r===ex.BR||r===ex.HTML?Yx(e,t):r===ex.TEMPLATE&&e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagName!==ex.TEMPLATE&&e._err(XC.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(ex.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e._popTmplInsertionMode(),e._resetInsertionMode()):e._err(XC.endTagWithoutMatchingOpenElement)}function Yx(e,t){e.openElements.pop(),e.insertionMode=ux,e._processToken(t)}function Xx(e,t){const r=t.type===jC.EOF_TOKEN?XC.openElementsLeftAfterEof:XC.disallowedContentInNoscriptInHead;e._err(r),e.openElements.pop(),e.insertionMode=cx,e._processToken(t)}function Jx(e,t){e._insertFakeElement(ex.BODY),e.insertionMode=hx,e._processToken(t)}function Zx(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function eO(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function tO(e,t){e.openElements.hasInButtonScope(ex.P)&&e._closePElement(),e._insertElement(t,tx.HTML)}function rO(e,t){e.openElements.hasInButtonScope(ex.P)&&e._closePElement(),e._insertElement(t,tx.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}function nO(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,tx.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function oO(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,tx.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}function iO(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,tx.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function sO(e,t){e._appendElement(t,tx.HTML),t.ackSelfClosing=!0}function aO(e,t){e._switchToTextParsing(t,jC.MODE.RAWTEXT)}function cO(e,t){e.openElements.currentTagName===ex.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,tx.HTML)}function lO(e,t){e.openElements.hasInScope(ex.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,tx.HTML)}function uO(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,tx.HTML)}function hO(e,t){const r=t.tagName;switch(r.length){case 1:r===ex.I||r===ex.S||r===ex.B||r===ex.U?nO(e,t):r===ex.P?tO(e,t):r===ex.A?function(e,t){const r=e.activeFormattingElements.getElementEntryInScopeWithTagName(ex.A);r&&(Bx(e,t),e.openElements.remove(r.element),e.activeFormattingElements.removeEntry(r)),e._reconstructActiveFormattingElements(),e._insertElement(t,tx.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}(e,t):uO(e,t);break;case 2:r===ex.DL||r===ex.OL||r===ex.UL?tO(e,t):r===ex.H1||r===ex.H2||r===ex.H3||r===ex.H4||r===ex.H5||r===ex.H6?function(e,t){e.openElements.hasInButtonScope(ex.P)&&e._closePElement();const r=e.openElements.currentTagName;r!==ex.H1&&r!==ex.H2&&r!==ex.H3&&r!==ex.H4&&r!==ex.H5&&r!==ex.H6||e.openElements.pop(),e._insertElement(t,tx.HTML)}(e,t):r===ex.LI||r===ex.DD||r===ex.DT?function(e,t){e.framesetOk=!1;const r=t.tagName;for(let t=e.openElements.stackTop;t>=0;t--){const n=e.openElements.items[t],o=e.treeAdapter.getTagName(n);let i=null;if(r===ex.LI&&o===ex.LI?i=ex.LI:r!==ex.DD&&r!==ex.DT||o!==ex.DD&&o!==ex.DT||(i=o),i){e.openElements.generateImpliedEndTagsWithExclusion(i),e.openElements.popUntilTagNamePopped(i);break}if(o!==ex.ADDRESS&&o!==ex.DIV&&o!==ex.P&&e._isSpecialElement(n))break}e.openElements.hasInButtonScope(ex.P)&&e._closePElement(),e._insertElement(t,tx.HTML)}(e,t):r===ex.EM||r===ex.TT?nO(e,t):r===ex.BR?iO(e,t):r===ex.HR?function(e,t){e.openElements.hasInButtonScope(ex.P)&&e._closePElement(),e._appendElement(t,tx.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}(e,t):r===ex.RB?lO(e,t):r===ex.RT||r===ex.RP?function(e,t){e.openElements.hasInScope(ex.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(ex.RTC),e._insertElement(t,tx.HTML)}(e,t):r!==ex.TH&&r!==ex.TD&&r!==ex.TR&&uO(e,t);break;case 3:r===ex.DIV||r===ex.DIR||r===ex.NAV?tO(e,t):r===ex.PRE?rO(e,t):r===ex.BIG?nO(e,t):r===ex.IMG||r===ex.WBR?iO(e,t):r===ex.XMP?function(e,t){e.openElements.hasInButtonScope(ex.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,jC.MODE.RAWTEXT)}(e,t):r===ex.SVG?function(e,t){e._reconstructActiveFormattingElements(),YC.adjustTokenSVGAttrs(t),YC.adjustTokenXMLAttrs(t),t.selfClosing?e._appendElement(t,tx.SVG):e._insertElement(t,tx.SVG),t.ackSelfClosing=!0}(e,t):r===ex.RTC?lO(e,t):r!==ex.COL&&uO(e,t);break;case 4:r===ex.HTML?function(e,t){0===e.openElements.tmplCount&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}(e,t):r===ex.BASE||r===ex.LINK||r===ex.META?Wx(e,t):r===ex.BODY?function(e,t){const r=e.openElements.tryPeekProperlyNestedBodyElement();r&&0===e.openElements.tmplCount&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(r,t.attrs))}(e,t):r===ex.MAIN||r===ex.MENU?tO(e,t):r===ex.FORM?function(e,t){const r=e.openElements.tmplCount>0;e.formElement&&!r||(e.openElements.hasInButtonScope(ex.P)&&e._closePElement(),e._insertElement(t,tx.HTML),r||(e.formElement=e.openElements.current))}(e,t):r===ex.CODE||r===ex.FONT?nO(e,t):r===ex.NOBR?function(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(ex.NOBR)&&(Bx(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,tx.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}(e,t):r===ex.AREA?iO(e,t):r===ex.MATH?function(e,t){e._reconstructActiveFormattingElements(),YC.adjustTokenMathMLAttrs(t),YC.adjustTokenXMLAttrs(t),t.selfClosing?e._appendElement(t,tx.MATHML):e._insertElement(t,tx.MATHML),t.ackSelfClosing=!0}(e,t):r===ex.MENU?function(e,t){e.openElements.hasInButtonScope(ex.P)&&e._closePElement(),e._insertElement(t,tx.HTML)}(e,t):r!==ex.HEAD&&uO(e,t);break;case 5:r===ex.STYLE||r===ex.TITLE?Wx(e,t):r===ex.ASIDE?tO(e,t):r===ex.SMALL?nO(e,t):r===ex.TABLE?function(e,t){e.treeAdapter.getDocumentMode(e.document)!==ZC.DOCUMENT_MODE.QUIRKS&&e.openElements.hasInButtonScope(ex.P)&&e._closePElement(),e._insertElement(t,tx.HTML),e.framesetOk=!1,e.insertionMode=px}(e,t):r===ex.EMBED?iO(e,t):r===ex.INPUT?function(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,tx.HTML);const r=jC.getTokenAttr(t,rx.TYPE);r&&r.toLowerCase()===ox||(e.framesetOk=!1),t.ackSelfClosing=!0}(e,t):r===ex.PARAM||r===ex.TRACK?sO(e,t):r===ex.IMAGE?function(e,t){t.tagName=ex.IMG,iO(e,t)}(e,t):r!==ex.FRAME&&r!==ex.TBODY&&r!==ex.TFOOT&&r!==ex.THEAD&&uO(e,t);break;case 6:r===ex.SCRIPT?Wx(e,t):r===ex.CENTER||r===ex.FIGURE||r===ex.FOOTER||r===ex.HEADER||r===ex.HGROUP||r===ex.DIALOG?tO(e,t):r===ex.BUTTON?function(e,t){e.openElements.hasInScope(ex.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(ex.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,tx.HTML),e.framesetOk=!1}(e,t):r===ex.STRIKE||r===ex.STRONG?nO(e,t):r===ex.APPLET||r===ex.OBJECT?oO(e,t):r===ex.KEYGEN?iO(e,t):r===ex.SOURCE?sO(e,t):r===ex.IFRAME?function(e,t){e.framesetOk=!1,e._switchToTextParsing(t,jC.MODE.RAWTEXT)}(e,t):r===ex.SELECT?function(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,tx.HTML),e.framesetOk=!1,e.insertionMode===px||e.insertionMode===mx||e.insertionMode===yx||e.insertionMode===Ex||e.insertionMode===Tx?e.insertionMode=bx:e.insertionMode=vx}(e,t):r===ex.OPTION?cO(e,t):uO(e,t);break;case 7:r===ex.BGSOUND?Wx(e,t):r===ex.DETAILS||r===ex.ADDRESS||r===ex.ARTICLE||r===ex.SECTION||r===ex.SUMMARY?tO(e,t):r===ex.LISTING?rO(e,t):r===ex.MARQUEE?oO(e,t):r===ex.NOEMBED?aO(e,t):r!==ex.CAPTION&&uO(e,t);break;case 8:r===ex.BASEFONT?Wx(e,t):r===ex.FRAMESET?function(e,t){const r=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&r&&(e.treeAdapter.detachNode(r),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,tx.HTML),e.insertionMode=Sx)}(e,t):r===ex.FIELDSET?tO(e,t):r===ex.TEXTAREA?function(e,t){e._insertElement(t,tx.HTML),e.skipNextNewLine=!0,e.tokenizer.state=jC.MODE.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=fx}(e,t):r===ex.TEMPLATE?Wx(e,t):r===ex.NOSCRIPT?e.options.scriptingEnabled?aO(e,t):uO(e,t):r===ex.OPTGROUP?cO(e,t):r!==ex.COLGROUP&&uO(e,t);break;case 9:r===ex.PLAINTEXT?function(e,t){e.openElements.hasInButtonScope(ex.P)&&e._closePElement(),e._insertElement(t,tx.HTML),e.tokenizer.state=jC.MODE.PLAINTEXT}(e,t):uO(e,t);break;case 10:r===ex.BLOCKQUOTE||r===ex.FIGCAPTION?tO(e,t):uO(e,t);break;default:uO(e,t)}}function fO(e,t){const r=t.tagName;e.openElements.hasInScope(r)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(r))}function pO(e,t){const r=t.tagName;e.openElements.hasInScope(r)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(r),e.activeFormattingElements.clearToLastMarker())}function dO(e,t){const r=t.tagName;for(let t=e.openElements.stackTop;t>0;t--){const n=e.openElements.items[t];if(e.treeAdapter.getTagName(n)===r){e.openElements.generateImpliedEndTagsWithExclusion(r),e.openElements.popUntilElementPopped(n);break}if(e._isSpecialElement(n))break}}function mO(e,t){const r=t.tagName;switch(r.length){case 1:r===ex.A||r===ex.B||r===ex.I||r===ex.S||r===ex.U?Bx(e,t):r===ex.P?function(e){e.openElements.hasInButtonScope(ex.P)||e._insertFakeElement(ex.P),e._closePElement()}(e):dO(e,t);break;case 2:r===ex.DL||r===ex.UL||r===ex.OL?fO(e,t):r===ex.LI?function(e){e.openElements.hasInListItemScope(ex.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(ex.LI),e.openElements.popUntilTagNamePopped(ex.LI))}(e):r===ex.DD||r===ex.DT?function(e,t){const r=t.tagName;e.openElements.hasInScope(r)&&(e.openElements.generateImpliedEndTagsWithExclusion(r),e.openElements.popUntilTagNamePopped(r))}(e,t):r===ex.H1||r===ex.H2||r===ex.H3||r===ex.H4||r===ex.H5||r===ex.H6?function(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}(e):r===ex.BR?function(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(ex.BR),e.openElements.pop(),e.framesetOk=!1}(e):r===ex.EM||r===ex.TT?Bx(e,t):dO(e,t);break;case 3:r===ex.BIG?Bx(e,t):r===ex.DIR||r===ex.DIV||r===ex.NAV||r===ex.PRE?fO(e,t):dO(e,t);break;case 4:r===ex.BODY?function(e){e.openElements.hasInScope(ex.BODY)&&(e.insertionMode=Ax)}(e):r===ex.HTML?function(e,t){e.openElements.hasInScope(ex.BODY)&&(e.insertionMode=Ax,e._processToken(t))}(e,t):r===ex.FORM?function(e){const t=e.openElements.tmplCount>0,r=e.formElement;t||(e.formElement=null),(r||t)&&e.openElements.hasInScope(ex.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(ex.FORM):e.openElements.remove(r))}(e):r===ex.CODE||r===ex.FONT||r===ex.NOBR?Bx(e,t):r===ex.MAIN||r===ex.MENU?fO(e,t):dO(e,t);break;case 5:r===ex.ASIDE?fO(e,t):r===ex.SMALL?Bx(e,t):dO(e,t);break;case 6:r===ex.CENTER||r===ex.FIGURE||r===ex.FOOTER||r===ex.HEADER||r===ex.HGROUP||r===ex.DIALOG?fO(e,t):r===ex.APPLET||r===ex.OBJECT?pO(e,t):r===ex.STRIKE||r===ex.STRONG?Bx(e,t):dO(e,t);break;case 7:r===ex.ADDRESS||r===ex.ARTICLE||r===ex.DETAILS||r===ex.SECTION||r===ex.SUMMARY||r===ex.LISTING?fO(e,t):r===ex.MARQUEE?pO(e,t):dO(e,t);break;case 8:r===ex.FIELDSET?fO(e,t):r===ex.TEMPLATE?Qx(e,t):dO(e,t);break;case 10:r===ex.BLOCKQUOTE||r===ex.FIGCAPTION?fO(e,t):dO(e,t);break;default:dO(e,t)}}function gO(e,t){e.tmplInsertionModeStackTop>-1?kO(e,t):e.stopped=!0}function yO(e,t){const r=e.openElements.currentTagName;r===ex.TABLE||r===ex.TBODY||r===ex.TFOOT||r===ex.THEAD||r===ex.TR?(e.pendingCharacterTokens=[],e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=dx,e._processToken(t)):vO(e,t)}function EO(e,t){const r=t.tagName;switch(r.length){case 2:r===ex.TD||r===ex.TH||r===ex.TR?function(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(ex.TBODY),e.insertionMode=yx,e._processToken(t)}(e,t):vO(e,t);break;case 3:r===ex.COL?function(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(ex.COLGROUP),e.insertionMode=gx,e._processToken(t)}(e,t):vO(e,t);break;case 4:r===ex.FORM?function(e,t){e.formElement||0!==e.openElements.tmplCount||(e._insertElement(t,tx.HTML),e.formElement=e.openElements.current,e.openElements.pop())}(e,t):vO(e,t);break;case 5:r===ex.TABLE?function(e,t){e.openElements.hasInTableScope(ex.TABLE)&&(e.openElements.popUntilTagNamePopped(ex.TABLE),e._resetInsertionMode(),e._processToken(t))}(e,t):r===ex.STYLE?Wx(e,t):r===ex.TBODY||r===ex.TFOOT||r===ex.THEAD?function(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,tx.HTML),e.insertionMode=yx}(e,t):r===ex.INPUT?function(e,t){const r=jC.getTokenAttr(t,rx.TYPE);r&&r.toLowerCase()===ox?e._appendElement(t,tx.HTML):vO(e,t),t.ackSelfClosing=!0}(e,t):vO(e,t);break;case 6:r===ex.SCRIPT?Wx(e,t):vO(e,t);break;case 7:r===ex.CAPTION?function(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,tx.HTML),e.insertionMode=mx}(e,t):vO(e,t);break;case 8:r===ex.COLGROUP?function(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,tx.HTML),e.insertionMode=gx}(e,t):r===ex.TEMPLATE?Wx(e,t):vO(e,t);break;default:vO(e,t)}}function TO(e,t){const r=t.tagName;r===ex.TABLE?e.openElements.hasInTableScope(ex.TABLE)&&(e.openElements.popUntilTagNamePopped(ex.TABLE),e._resetInsertionMode()):r===ex.TEMPLATE?Qx(e,t):r!==ex.BODY&&r!==ex.CAPTION&&r!==ex.COL&&r!==ex.COLGROUP&&r!==ex.HTML&&r!==ex.TBODY&&r!==ex.TD&&r!==ex.TFOOT&&r!==ex.TH&&r!==ex.THEAD&&r!==ex.TR&&vO(e,t)}function vO(e,t){const r=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,e._processTokenInBodyMode(t),e.fosterParentingEnabled=r}function bO(e,t){let r=0;if(e.hasNonWhitespacePendingCharacterToken)for(;r<e.pendingCharacterTokens.length;r++)vO(e,e.pendingCharacterTokens[r]);else for(;r<e.pendingCharacterTokens.length;r++)e._insertCharacters(e.pendingCharacterTokens[r]);e.insertionMode=e.originalInsertionMode,e._processToken(t)}function _O(e,t){e.openElements.currentTagName===ex.COLGROUP&&(e.openElements.pop(),e.insertionMode=px,e._processToken(t))}function AO(e,t){const r=t.tagName;r===ex.HTML?hO(e,t):r===ex.OPTION?(e.openElements.currentTagName===ex.OPTION&&e.openElements.pop(),e._insertElement(t,tx.HTML)):r===ex.OPTGROUP?(e.openElements.currentTagName===ex.OPTION&&e.openElements.pop(),e.openElements.currentTagName===ex.OPTGROUP&&e.openElements.pop(),e._insertElement(t,tx.HTML)):r===ex.INPUT||r===ex.KEYGEN||r===ex.TEXTAREA||r===ex.SELECT?e.openElements.hasInSelectScope(ex.SELECT)&&(e.openElements.popUntilTagNamePopped(ex.SELECT),e._resetInsertionMode(),r!==ex.SELECT&&e._processToken(t)):r!==ex.SCRIPT&&r!==ex.TEMPLATE||Wx(e,t)}function SO(e,t){const r=t.tagName;if(r===ex.OPTGROUP){const t=e.openElements.items[e.openElements.stackTop-1],r=t&&e.treeAdapter.getTagName(t);e.openElements.currentTagName===ex.OPTION&&r===ex.OPTGROUP&&e.openElements.pop(),e.openElements.currentTagName===ex.OPTGROUP&&e.openElements.pop()}else r===ex.OPTION?e.openElements.currentTagName===ex.OPTION&&e.openElements.pop():r===ex.SELECT&&e.openElements.hasInSelectScope(ex.SELECT)?(e.openElements.popUntilTagNamePopped(ex.SELECT),e._resetInsertionMode()):r===ex.TEMPLATE&&Qx(e,t)}function kO(e,t){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(ex.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e._popTmplInsertionMode(),e._resetInsertionMode(),e._processToken(t)):e.stopped=!0}function wO(e,t){e.insertionMode=hx,e._processToken(t)}function CO(e,t){e.insertionMode=hx,e._processToken(t)}var xO=Nx;class OO{constructor(e,t,r){this.property=e,this.normal=t,r&&(this.space=r)}}function RO(e,t){const r={},n={};let o=-1;for(;++o<e.length;)Object.assign(r,e[o].property),Object.assign(n,e[o].normal);return new OO(r,n,t)}function NO(e){return e.toLowerCase()}OO.prototype.property={},OO.prototype.normal={},OO.prototype.space=null;class PO{constructor(e,t){this.property=e,this.attribute=t}}PO.prototype.space=null,PO.prototype.boolean=!1,PO.prototype.booleanish=!1,PO.prototype.overloadedBoolean=!1,PO.prototype.number=!1,PO.prototype.commaSeparated=!1,PO.prototype.spaceSeparated=!1,PO.prototype.commaOrSpaceSeparated=!1,PO.prototype.mustUseProperty=!1,PO.prototype.defined=!1;let IO=0;const LO=jO(),DO=jO(),FO=jO(),MO=jO(),BO=jO(),UO=jO(),HO=jO();function jO(){return 2**++IO}var qO=Object.freeze({__proto__:null,boolean:LO,booleanish:DO,overloadedBoolean:FO,number:MO,spaceSeparated:BO,commaSeparated:UO,commaOrSpaceSeparated:HO});const zO=Object.keys(qO);class GO extends PO{constructor(e,t,r,n){let o=-1;if(super(e,t),$O(this,"space",n),"number"==typeof r)for(;++o<zO.length;){const e=zO[o];$O(this,zO[o],(r&qO[e])===qO[e])}}}function $O(e,t,r){r&&(e[t]=r)}GO.prototype.defined=!0;const KO={}.hasOwnProperty;function VO(e){const t={},r={};let n;for(n in e.properties)if(KO.call(e.properties,n)){const o=e.properties[n],i=new GO(n,e.transform(e.attributes||{},n),o,e.space);e.mustUseProperty&&e.mustUseProperty.includes(n)&&(i.mustUseProperty=!0),t[n]=i,r[NO(n)]=n,r[NO(i.attribute)]=n}return new OO(t,r,e.space)}const WO=VO({space:"xlink",transform:(e,t)=>"xlink:"+t.slice(5).toLowerCase(),properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),QO=VO({space:"xml",transform:(e,t)=>"xml:"+t.slice(3).toLowerCase(),properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function YO(e,t){return t in e?e[t]:t}function XO(e,t){return YO(e,t.toLowerCase())}const JO=VO({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:XO,properties:{xmlns:null,xmlnsXLink:null}}),ZO=VO({transform:(e,t)=>"role"===t?t:"aria-"+t.slice(4).toLowerCase(),properties:{ariaActiveDescendant:null,ariaAtomic:DO,ariaAutoComplete:null,ariaBusy:DO,ariaChecked:DO,ariaColCount:MO,ariaColIndex:MO,ariaColSpan:MO,ariaControls:BO,ariaCurrent:null,ariaDescribedBy:BO,ariaDetails:null,ariaDisabled:DO,ariaDropEffect:BO,ariaErrorMessage:null,ariaExpanded:DO,ariaFlowTo:BO,ariaGrabbed:DO,ariaHasPopup:null,ariaHidden:DO,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:BO,ariaLevel:MO,ariaLive:null,ariaModal:DO,ariaMultiLine:DO,ariaMultiSelectable:DO,ariaOrientation:null,ariaOwns:BO,ariaPlaceholder:null,ariaPosInSet:MO,ariaPressed:DO,ariaReadOnly:DO,ariaRelevant:null,ariaRequired:DO,ariaRoleDescription:BO,ariaRowCount:MO,ariaRowIndex:MO,ariaRowSpan:MO,ariaSelected:DO,ariaSetSize:MO,ariaSort:null,ariaValueMax:MO,ariaValueMin:MO,ariaValueNow:MO,ariaValueText:null,role:null}}),eR=VO({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:XO,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:UO,acceptCharset:BO,accessKey:BO,action:null,allow:null,allowFullScreen:LO,allowPaymentRequest:LO,allowUserMedia:LO,alt:null,as:null,async:LO,autoCapitalize:null,autoComplete:BO,autoFocus:LO,autoPlay:LO,blocking:BO,capture:null,charSet:null,checked:LO,cite:null,className:BO,cols:MO,colSpan:null,content:null,contentEditable:DO,controls:LO,controlsList:BO,coords:MO|UO,crossOrigin:null,data:null,dateTime:null,decoding:null,default:LO,defer:LO,dir:null,dirName:null,disabled:LO,download:FO,draggable:DO,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:LO,formTarget:null,headers:BO,height:MO,hidden:LO,high:MO,href:null,hrefLang:null,htmlFor:BO,httpEquiv:BO,id:null,imageSizes:null,imageSrcSet:null,inert:LO,inputMode:null,integrity:null,is:null,isMap:LO,itemId:null,itemProp:BO,itemRef:BO,itemScope:LO,itemType:BO,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:LO,low:MO,manifest:null,max:null,maxLength:MO,media:null,method:null,min:null,minLength:MO,multiple:LO,muted:LO,name:null,nonce:null,noModule:LO,noValidate:LO,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:LO,optimum:MO,pattern:null,ping:BO,placeholder:null,playsInline:LO,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:LO,referrerPolicy:null,rel:BO,required:LO,reversed:LO,rows:MO,rowSpan:MO,sandbox:BO,scope:null,scoped:LO,seamless:LO,selected:LO,shadowRootClonable:LO,shadowRootDelegatesFocus:LO,shadowRootMode:null,shape:null,size:MO,sizes:null,slot:null,span:MO,spellCheck:DO,src:null,srcDoc:null,srcLang:null,srcSet:null,start:MO,step:null,style:null,tabIndex:MO,target:null,title:null,translate:null,type:null,typeMustMatch:LO,useMap:null,value:DO,width:MO,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:BO,axis:null,background:null,bgColor:null,border:MO,borderColor:null,bottomMargin:MO,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:LO,declare:LO,event:null,face:null,frame:null,frameBorder:null,hSpace:MO,leftMargin:MO,link:null,longDesc:null,lowSrc:null,marginHeight:MO,marginWidth:MO,noResize:LO,noHref:LO,noShade:LO,noWrap:LO,object:null,profile:null,prompt:null,rev:null,rightMargin:MO,rules:null,scheme:null,scrolling:DO,standby:null,summary:null,text:null,topMargin:MO,valueType:null,version:null,vAlign:null,vLink:null,vSpace:MO,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:LO,disableRemotePlayback:LO,prefix:null,property:null,results:MO,security:null,unselectable:null}}),tR=VO({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},transform:YO,properties:{about:HO,accentHeight:MO,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:MO,amplitude:MO,arabicForm:null,ascent:MO,attributeName:null,attributeType:null,azimuth:MO,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:MO,by:null,calcMode:null,capHeight:MO,className:BO,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:MO,diffuseConstant:MO,direction:null,display:null,dur:null,divisor:MO,dominantBaseline:null,download:LO,dx:null,dy:null,edgeMode:null,editable:null,elevation:MO,enableBackground:null,end:null,event:null,exponent:MO,externalResourcesRequired:null,fill:null,fillOpacity:MO,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:UO,g2:UO,glyphName:UO,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:MO,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:MO,horizOriginX:MO,horizOriginY:MO,id:null,ideographic:MO,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:MO,k:MO,k1:MO,k2:MO,k3:MO,k4:MO,kernelMatrix:HO,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:MO,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:MO,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:MO,overlineThickness:MO,paintOrder:null,panose1:null,path:null,pathLength:MO,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:BO,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:MO,pointsAtY:MO,pointsAtZ:MO,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:HO,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:HO,rev:HO,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:HO,requiredFeatures:HO,requiredFonts:HO,requiredFormats:HO,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:MO,specularExponent:MO,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:MO,strikethroughThickness:MO,string:null,stroke:null,strokeDashArray:HO,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:MO,strokeOpacity:MO,strokeWidth:null,style:null,surfaceScale:MO,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:HO,tabIndex:MO,tableValues:null,target:null,targetX:MO,targetY:MO,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:HO,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:MO,underlineThickness:MO,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:MO,values:null,vAlphabetic:MO,vMathematical:MO,vectorEffect:null,vHanging:MO,vIdeographic:MO,version:null,vertAdvY:MO,vertOriginX:MO,vertOriginY:MO,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:MO,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),rR=/^data[-\w.:]+$/i,nR=/-[a-z]/g,oR=/[A-Z]/g;function iR(e,t){const r=NO(t);let n=t,o=PO;if(r in e.normal)return e.property[e.normal[r]];if(r.length>4&&"data"===r.slice(0,4)&&rR.test(t)){if("-"===t.charAt(4)){const e=t.slice(5).replace(nR,aR);n="data"+e.charAt(0).toUpperCase()+e.slice(1)}else{const e=t.slice(4);if(!nR.test(e)){let r=e.replace(oR,sR);"-"!==r.charAt(0)&&(r="-"+r),t="data"+r}}o=GO}return new o(n,t)}function sR(e){return"-"+e.toLowerCase()}function aR(e){return e.charAt(1).toUpperCase()}const cR=RO([QO,WO,JO,ZO,eR],"html"),lR=RO([QO,WO,JO,ZO,tR],"svg"),uR=/[#.]/g;function hR(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function fR(e){const t=[],r=String(e||"");let n=r.indexOf(","),o=0,i=!1;for(;!i;){-1===n&&(n=r.length,i=!0);const e=r.slice(o,n).trim();!e&&i||t.push(e),o=n+1,n=r.indexOf(",",o)}return t}const pR=new Set(["menu","submit","reset","button"]),dR={}.hasOwnProperty;function mR(e,t,r){const n=r&&function(e){const t={};let r=-1;for(;++r<e.length;)t[e[r].toLowerCase()]=e[r];return t}(r);return function(r,o,...i){let s,a=-1;if(null==r)s={type:"root",children:[]},i.unshift(o);else if(s=function(e,t){const r=e||"",n={};let o,i,s=0;for(;s<r.length;){uR.lastIndex=s;const e=uR.exec(r),t=r.slice(s,e?e.index:r.length);t&&(o?"#"===o?n.id=t:Array.isArray(n.className)?n.className.push(t):n.className=[t]:i=t,s+=t.length),e&&(o=e[0],s++)}return{type:"element",tagName:i||t||"div",properties:n,children:[]}}(r,t),s.tagName=s.tagName.toLowerCase(),n&&dR.call(n,s.tagName)&&(s.tagName=n[s.tagName]),function(e,t){if(null==e||"object"!=typeof e||Array.isArray(e))return!1;if("input"===t||!e.type||"string"!=typeof e.type)return!0;if("children"in e&&Array.isArray(e.children))return!1;if("button"===t)return pR.has(e.type.toLowerCase());return!("value"in e)}(o,s.tagName)){let t;for(t in o)dR.call(o,t)&&gR(e,s.properties,t,o[t])}else i.unshift(o);for(;++a<i.length;)yR(s.children,i[a]);return"element"===s.type&&"template"===s.tagName&&(s.content={type:"root",children:s.children},s.children=[]),s}}function gR(e,t,r,n){const o=iR(e,r);let i,s=-1;if(null!=n){if("number"==typeof n){if(Number.isNaN(n))return;i=n}else i="boolean"==typeof n?n:"string"==typeof n?o.spaceSeparated?hR(n):o.commaSeparated?fR(n):o.commaOrSpaceSeparated?hR(fR(n).join(" ")):ER(o,o.property,n):Array.isArray(n)?n.concat():"style"===o.property?function(e){const t=[];let r;for(r in e)dR.call(e,r)&&t.push([r,e[r]].join(": "));return t.join("; ")}(n):String(n);if(Array.isArray(i)){const e=[];for(;++s<i.length;)e[s]=ER(o,o.property,i[s]);i=e}"className"===o.property&&Array.isArray(t.className)&&(i=t.className.concat(i)),t[o.property]=i}}function yR(e,t){let r=-1;if(null==t);else if("string"==typeof t||"number"==typeof t)e.push({type:"text",value:String(t)});else if(Array.isArray(t))for(;++r<t.length;)yR(e,t[r]);else{if("object"!=typeof t||!("type"in t))throw new Error("Expected node, nodes, or string, got `"+t+"`");"root"===t.type?yR(e,t.children):e.push(t)}}function ER(e,t,r){if("string"==typeof r){if(e.number&&r&&!Number.isNaN(Number(r)))return Number(r);if((e.boolean||e.overloadedBoolean)&&(""===r||NO(r)===NO(t)))return!0}return r}const TR=mR(cR,"div"),vR=mR(lR,"g",["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","solidColor","textArea","textPath"]);const bR="http://www.w3.org/2000/svg",_R={}.hasOwnProperty,AR=Object.prototype;function SR(e,t){let r;switch(t.nodeName){case"#comment":{const n=t;return r={type:"comment",value:n.data},wR(e,n,r),r}case"#document":case"#document-fragment":{const n=t,o="mode"in n&&("quirks"===n.mode||"limited-quirks"===n.mode);if(r={type:"root",children:kR(e,t.childNodes),data:{quirksMode:o}},e.file&&e.location){const t=String(e.file),n=function(e){const t=String(e),r=[],n=/\r?\n|\r/g;for(;n.test(t);)r.push(n.lastIndex);return r.push(t.length+1),{toPoint:function(e){let t=-1;if("number"==typeof e&&e>-1&&e<r[r.length-1])for(;++t<r.length;)if(r[t]>e)return{line:t+1,column:e-(t>0?r[t-1]:0)+1,offset:e};return{line:void 0,column:void 0,offset:void 0}},toOffset:function(e){const t=e&&e.line,n=e&&e.column;if("number"==typeof t&&"number"==typeof n&&!Number.isNaN(t)&&!Number.isNaN(n)&&t-1 in r){const e=(r[t-2]||0)+n-1||0;if(e>-1&&e<r[r.length-1])return e}return-1}}}(t),o=n.toPoint(0),i=n.toPoint(t.length);r.position={start:o,end:i}}return r}case"#documentType":return r={type:"doctype"},wR(e,t,r),r;case"#text":{const n=t;return r={type:"text",value:n.value},wR(e,n,r),r}default:return r=function(e,t){const r=e.schema;e.schema=t.namespaceURI===bR?lR:cR;let n=-1;const o={};for(;++n<t.attrs.length;){const e=t.attrs[n],r=(e.prefix?e.prefix+":":"")+e.name;_R.call(AR,r)||(o[r]=e.value)}const i="svg"===e.schema.space?vR:TR,s=i(t.tagName,o,kR(e,t.childNodes));if(wR(e,t,s),"template"===s.tagName){const r=t,n=r.sourceCodeLocation,o=n&&n.startTag&&xR(n.startTag),i=n&&n.endTag&&xR(n.endTag),a=SR(e,r.content);o&&i&&e.file&&(a.position={start:o.end,end:i.start}),s.content=a}return e.schema=r,s}(e,t),r}}function kR(e,t){let r=-1;const n=[];for(;++r<t.length;)n[r]=SR(e,t[r]);return n}function wR(e,t,r){if("sourceCodeLocation"in t&&t.sourceCodeLocation&&e.file){const n=CR(e,r,t.sourceCodeLocation);n&&(e.location=!0,r.position=n)}}function CR(e,t,r){const n=xR(r);if("element"===t.type){const o=t.children[t.children.length-1];if(n&&!r.endTag&&o&&o.position&&o.position.end&&(n.end=Object.assign({},o.position.end)),e.verbose){const n={};let o;if(r.attrs)for(o in r.attrs)_R.call(r.attrs,o)&&(n[iR(e.schema,o).property]=xR(r.attrs[o]));t.data={position:{opening:xR(r.startTag),closing:r.endTag?xR(r.endTag):null,properties:n}}}}return n}function xR(e){const t=OR({line:e.startLine,column:e.startCol,offset:e.startOffset}),r=OR({line:e.endLine,column:e.endCol,offset:e.endOffset});return t||r?{start:t,end:r}:void 0}function OR(e){return e.line&&e.column?e:void 0}const RR={abandonedHeadElementChild:{reason:"Unexpected metadata element after head",description:"Unexpected element after head. Expected the element before `</head>`",url:!1},abruptClosingOfEmptyComment:{reason:"Unexpected abruptly closed empty comment",description:"Unexpected `>` or `->`. Expected `--\x3e` to close comments"},abruptDoctypePublicIdentifier:{reason:"Unexpected abruptly closed public identifier",description:"Unexpected `>`. Expected a closing `\"` or `'` after the public identifier"},abruptDoctypeSystemIdentifier:{reason:"Unexpected abruptly closed system identifier",description:"Unexpected `>`. Expected a closing `\"` or `'` after the identifier identifier"},absenceOfDigitsInNumericCharacterReference:{reason:"Unexpected non-digit at start of numeric character reference",description:"Unexpected `%c`. Expected `[0-9]` for decimal references or `[0-9a-fA-F]` for hexadecimal references"},cdataInHtmlContent:{reason:"Unexpected CDATA section in HTML",description:"Unexpected `<![CDATA[` in HTML. Remove it, use a comment, or encode special characters instead"},characterReferenceOutsideUnicodeRange:{reason:"Unexpected too big numeric character reference",description:"Unexpectedly high character reference. Expected character references to be at most hexadecimal 10ffff (or decimal 1114111)"},closingOfElementWithOpenChildElements:{reason:"Unexpected closing tag with open child elements",description:"Unexpectedly closing tag. Expected other tags to be closed first",url:!1},controlCharacterInInputStream:{reason:"Unexpected control character",description:"Unexpected control character `%x`. Expected a non-control code point, 0x00, or ASCII whitespace"},controlCharacterReference:{reason:"Unexpected control character reference",description:"Unexpectedly control character in reference. Expected a non-control code point, 0x00, or ASCII whitespace"},disallowedContentInNoscriptInHead:{reason:"Disallowed content inside `<noscript>` in `<head>`",description:"Unexpected text character `%c`. Only use text in `<noscript>`s in `<body>`",url:!1},duplicateAttribute:{reason:"Unexpected duplicate attribute",description:"Unexpectedly double attribute. Expected attributes to occur only once"},endTagWithAttributes:{reason:"Unexpected attribute on closing tag",description:"Unexpected attribute. Expected `>` instead"},endTagWithTrailingSolidus:{reason:"Unexpected slash at end of closing tag",description:"Unexpected `%c-1`. Expected `>` instead"},endTagWithoutMatchingOpenElement:{reason:"Unexpected unopened end tag",description:"Unexpected end tag. Expected no end tag or another end tag",url:!1},eofBeforeTagName:{reason:"Unexpected end of file",description:"Unexpected end of file. Expected tag name instead"},eofInCdata:{reason:"Unexpected end of file in CDATA",description:"Unexpected end of file. Expected `]]>` to close the CDATA"},eofInComment:{reason:"Unexpected end of file in comment",description:"Unexpected end of file. Expected `--\x3e` to close the comment"},eofInDoctype:{reason:"Unexpected end of file in doctype",description:"Unexpected end of file. Expected a valid doctype (such as `<!doctype html>`)"},eofInElementThatCanContainOnlyText:{reason:"Unexpected end of file in element that can only contain text",description:"Unexpected end of file. Expected text or a closing tag",url:!1},eofInScriptHtmlCommentLikeText:{reason:"Unexpected end of file in comment inside script",description:"Unexpected end of file. Expected `--\x3e` to close the comment"},eofInTag:{reason:"Unexpected end of file in tag",description:"Unexpected end of file. Expected `>` to close the tag"},incorrectlyClosedComment:{reason:"Incorrectly closed comment",description:"Unexpected `%c-1`. Expected `--\x3e` to close the comment"},incorrectlyOpenedComment:{reason:"Incorrectly opened comment",description:"Unexpected `%c`. Expected `\x3c!--` to open the comment"},invalidCharacterSequenceAfterDoctypeName:{reason:"Invalid sequence after doctype name",description:"Unexpected sequence at `%c`. Expected `public` or `system`"},invalidFirstCharacterOfTagName:{reason:"Invalid first character in tag name",description:"Unexpected `%c`. Expected an ASCII letter instead"},misplacedDoctype:{reason:"Misplaced doctype",description:"Unexpected doctype. Expected doctype before head",url:!1},misplacedStartTagForHeadElement:{reason:"Misplaced `<head>` start tag",description:"Unexpected start tag `<head>`. Expected `<head>` directly after doctype",url:!1},missingAttributeValue:{reason:"Missing attribute value",description:"Unexpected `%c-1`. Expected an attribute value or no `%c-1` instead"},missingDoctype:{reason:"Missing doctype before other content",description:"Expected a `<!doctype html>` before anything else",url:!1},missingDoctypeName:{reason:"Missing doctype name",description:"Unexpected doctype end at `%c`. Expected `html` instead"},missingDoctypePublicIdentifier:{reason:"Missing public identifier in doctype",description:"Unexpected `%c`. Expected identifier for `public` instead"},missingDoctypeSystemIdentifier:{reason:"Missing system identifier in doctype",description:'Unexpected `%c`. Expected identifier for `system` instead (suggested: `"about:legacy-compat"`)'},missingEndTagName:{reason:"Missing name in end tag",description:"Unexpected `%c`. Expected an ASCII letter instead"},missingQuoteBeforeDoctypePublicIdentifier:{reason:"Missing quote before public identifier in doctype",description:"Unexpected `%c`. Expected `\"` or `'` instead"},missingQuoteBeforeDoctypeSystemIdentifier:{reason:"Missing quote before system identifier in doctype",description:"Unexpected `%c`. Expected `\"` or `'` instead"},missingSemicolonAfterCharacterReference:{reason:"Missing semicolon after character reference",description:"Unexpected `%c`. Expected `;` instead"},missingWhitespaceAfterDoctypePublicKeyword:{reason:"Missing whitespace after public identifier in doctype",description:"Unexpected `%c`. Expected ASCII whitespace instead"},missingWhitespaceAfterDoctypeSystemKeyword:{reason:"Missing whitespace after system identifier in doctype",description:"Unexpected `%c`. Expected ASCII whitespace instead"},missingWhitespaceBeforeDoctypeName:{reason:"Missing whitespace before doctype name",description:"Unexpected `%c`. Expected ASCII whitespace instead"},missingWhitespaceBetweenAttributes:{reason:"Missing whitespace between attributes",description:"Unexpected `%c`. Expected ASCII whitespace instead"},missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers:{reason:"Missing whitespace between public and system identifiers in doctype",description:"Unexpected `%c`. Expected ASCII whitespace instead"},nestedComment:{reason:"Unexpected nested comment",description:"Unexpected `\x3c!--`. Expected `--\x3e`"},nestedNoscriptInHead:{reason:"Unexpected nested `<noscript>` in `<head>`",description:"Unexpected `<noscript>`. Expected a closing tag or a meta element",url:!1},nonConformingDoctype:{reason:"Unexpected non-conforming doctype declaration",description:'Expected `<!doctype html>` or `<!doctype html system "about:legacy-compat">`',url:!1},nonVoidHtmlElementStartTagWithTrailingSolidus:{reason:"Unexpected trailing slash on start tag of non-void element",description:"Unexpected `/`. Expected `>` instead"},noncharacterCharacterReference:{reason:"Unexpected noncharacter code point referenced by character reference",description:"Unexpected code point. Do not use noncharacters in HTML"},noncharacterInInputStream:{reason:"Unexpected noncharacter character",description:"Unexpected code point `%x`. Do not use noncharacters in HTML"},nullCharacterReference:{reason:"Unexpected NULL character referenced by character reference",description:"Unexpected code point. Do not use NULL characters in HTML"},openElementsLeftAfterEof:{reason:"Unexpected end of file",description:"Unexpected end of file. Expected closing tag instead",url:!1},surrogateCharacterReference:{reason:"Unexpected surrogate character referenced by character reference",description:"Unexpected code point. Do not use lone surrogate characters in HTML"},surrogateInInputStream:{reason:"Unexpected surrogate character",description:"Unexpected code point `%x`. Do not use lone surrogate characters in HTML"},unexpectedCharacterAfterDoctypeSystemIdentifier:{reason:"Invalid character after system identifier in doctype",description:"Unexpected character at `%c`. Expected `>`"},unexpectedCharacterInAttributeName:{reason:"Unexpected character in attribute name",description:"Unexpected `%c`. Expected whitespace, `/`, `>`, `=`, or probably an ASCII letter"},unexpectedCharacterInUnquotedAttributeValue:{reason:"Unexpected character in unquoted attribute value",description:"Unexpected `%c`. Quote the attribute value to include it"},unexpectedEqualsSignBeforeAttributeName:{reason:"Unexpected equals sign before attribute name",description:"Unexpected `%c`. Add an attribute name before it"},unexpectedNullCharacter:{reason:"Unexpected NULL character",description:"Unexpected code point `%x`. Do not use NULL characters in HTML"},unexpectedQuestionMarkInsteadOfTagName:{reason:"Unexpected question mark instead of tag name",description:"Unexpected `%c`. Expected an ASCII letter instead"},unexpectedSolidusInTag:{reason:"Unexpected slash in tag",description:"Unexpected `%c-1`. Expected it followed by `>` or in a quoted attribute value"},unknownNamedCharacterReference:{reason:"Unexpected unknown named character reference",description:"Unexpected character reference. Expected known named character references"}},NR="https://html.spec.whatwg.org/multipage/parsing.html#parse-error-",PR={2:!0,1:!1,0:null};function IR(e){const t=this.data("settings"),r=Object.assign({},t,e);Object.assign(this,{Parser:function(e,t){const n=r.fragment?"parseFragment":"parse",o=r.emitParseErrors?function(n){const o=n.code,i=function(e){return e.replace(/-[a-z]/g,e=>e.charAt(1).toUpperCase())}(o),s=r[i],a=null==s||s,c="number"==typeof a?a:a?1:0,l={line:n.startLine,column:n.startCol,offset:n.startOffset},u={line:n.endLine,column:n.endCol,offset:n.endOffset};if(c){const e=RR[i]||{reason:"",description:"",url:""},r=t.message(h(e.reason),{start:l,end:u});r.source="parse-error",r.ruleId=o,r.fatal=PR[c],r.note=h(e.description),r.url="url"in e&&!1===e.url?null:NR+o}function h(t){return t.replace(/%c(?:-(\d+))?/g,(t,r)=>{const o=r?-Number.parseInt(r,10):0,i=e.charAt(n.startOffset+o);return"`"===i?"` ` `":i}).replace(/%x/g,()=>"0x"+e.charCodeAt(n.startOffset).toString(16).toUpperCase())}}:null;return function(e,t){const r=t||{};let n,o;return function(e){return"messages"in e}(r)?(o=r,n={}):(o=r.file||void 0,n=r),SR({schema:"svg"===n.space?lR:cR,file:o,verbose:n.verbose,location:!1},e)}(new xO({sourceCodeLocationInfo:!0,onParseError:o,scriptingEnabled:!1})[n](e),{space:r.space,file:t,verbose:r.verbose})}})}const LR=function(e,t,r,n,o){const i=DR(t);if(null!=r&&("number"!=typeof r||r<0||r===Number.POSITIVE_INFINITY))throw new Error("Expected positive finite index for child node");if(!(null==n||n.type&&n.children))throw new Error("Expected parent node");if(!e||!e.type||"string"!=typeof e.type)return!1;if(null==n!=(null==r))throw new Error("Expected both parent and index");return i.call(o,e,r,n)},DR=function(e){if(null==e)return MR;if("string"==typeof e)return function(e){return t;function t(t){return MR(t)&&t.tagName===e}}(e);if("object"==typeof e)return function(e){const t=[];let r=-1;for(;++r<e.length;)t[r]=DR(e[r]);return FR(n);function n(...e){let r=-1;for(;++r<t.length;)if(t[r].call(this,...e))return!0;return!1}}(e);if("function"==typeof e)return FR(e);throw new Error("Expected function, string, or array as test")};function FR(e){return function(t,...r){return MR(t)&&Boolean(e.call(this,t,...r))}}function MR(e){return Boolean(e&&"object"==typeof e&&"element"===e.type&&"string"==typeof e.tagName)}const BR=DR(["audio","canvas","embed","iframe","img","math","object","picture","svg","video"]);const UR=["address","article","aside","blockquote","body","br","caption","center","col","colgroup","dd","dialog","dir","div","dl","dt","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","legend","li","li","listing","main","menu","nav","ol","optgroup","option","p","plaintext","pre","section","summary","table","tbody","td","td","tfoot","th","th","thead","tr","ul","wbr","xmp"],HR=["button","input","select","textarea"],jR=["area","base","basefont","dialog","datalist","head","link","meta","noembed","noframes","param","rp","script","source","style","template","track","title"],qR=ya(["doctype","comment"]);function zR(e={}){const t=function(e){return t;function t(t){return String(t).replace(/[\t\n\v\f\r ]+/g,e)}}(e.newlines?XR:JR);return e=>{GR(e,{collapse:t,whitespace:"normal"})}}function GR(e,t){if("children"in e){const r=Object.assign({},t);return("root"===e.type||WR(e))&&(r.before=!0,r.after=!0),r.whitespace=function(e,t){if("tagName"in e&&e.properties)switch(e.tagName){case"listing":case"plaintext":case"script":case"style":case"xmp":return"pre";case"nobr":return"nowrap";case"pre":return e.properties.wrap?"pre-wrap":"pre";case"td":case"th":return e.properties.noWrap?"nowrap":t.whitespace;case"textarea":return"pre-wrap"}return t.whitespace}(e,t),function(e,t){let r=t.before;const n=t.after,o=e.children;let i=o.length,s=-1;for(;++s<i;){const e=GR(o[s],Object.assign({},t,{before:r,after:$R(o,s,n)}));e.remove?(o.splice(s,1),s--,i--):e.ignore||(r=e.stripAtStart),VR(o[s])&&(r=!1)}return{remove:!1,ignore:!1,stripAtStart:Boolean(r||n)}}(e,r)}if("text"===e.type){if("normal"===t.whitespace)return function(e,t){const r=t.collapse(e.value),n={remove:!1,ignore:!1,stripAtStart:!1};let o=0,i=r.length;t.before&&YR(r.charAt(0))&&o++;o!==i&&YR(r.charAt(i-1))&&(t.after?i--:n.stripAtStart=!0);o===i?n.remove=!0:e.value=r.slice(o,i);return n}(e,t);"nowrap"===t.whitespace&&(e.value=t.collapse(e.value))}return{remove:!1,ignore:qR(e),stripAtStart:!1}}function $R(e,t,r){for(;++t<e.length;){const r=e[t];let n=KR(r);if(void 0===n&&"children"in r&&!QR(r)&&(n=$R(r.children,-1)),"boolean"==typeof n)return n}return r}function KR(e){if("element"===e.type){if(VR(e))return!1;if(WR(e))return!0}else if("text"===e.type){if(!function(e){const t=e&&"object"==typeof e&&"text"===e.type?e.value||"":e;return"string"==typeof t&&""===t.replace(/[ \t\n\f\r]/g,"")}(e))return!1}else if(!qR(e))return!1}function VR(e){return BR(e)||LR(e,HR)}function WR(e){return LR(e,UR)}function QR(e){return Boolean("properties"in e&&e.properties&&e.properties.hidden)||qR(e)||LR(e,jR)}function YR(e){return" "===e||"\n"===e}function XR(e){const t=/\r?\n|\r/.exec(e);return t?t[0]:" "}function JR(){return" "}function ZR(e,t){const r=t.children||[],n=[];let o=-1;for(;++o<r.length;){const i=rN(e,r[o],t);Array.isArray(i)?n.push(...i):i&&n.push(i)}let i=0,s=n.length;for(;i<s&&"break"===n[i].type;)i++;for(;s>i&&"break"===n[s-1].type;)s--;return 0===i&&s===n.length?n:n.slice(i,s)}const eN={}.hasOwnProperty;function tN(e,t){return e.wrapText?t:t.replace(/\r?\n|\r/g," ")}function rN(e,t,r){let n;if("element"===t.type){if(t.properties&&"ignore"===t.properties.dataMdast)return;eN.call(e.handlers,t.tagName)&&(n=e.handlers[t.tagName])}else eN.call(e.handlers,t.type)&&(n=e.handlers[t.type]);return"function"==typeof n?n(e,t,r):function(e,t){if("string"==typeof t.value)return e(t,"text",tN(e,t.value));return ZR(e,t)}(e,t)}const nN={}.hasOwnProperty;function oN(e,t){const r="string"==typeof t&&function(e){return Boolean(e&&"object"==typeof e&&"type"in e)}(e)&&"element"===e.type&&e.properties&&nN.call(e.properties,t)&&e.properties[t];return null!=r&&!1!==r}const iN=new Set(["pingback","prefetch","stylesheet"]);const sN=DR(["a","abbr","area","b","bdi","bdo","br","button","cite","code","data","datalist","del","dfn","em","i","input","ins","kbd","keygen","label","map","mark","meter","noscript","output","progress","q","ruby","s","samp","script","select","small","span","strong","sub","sup","template","textarea","time","u","var","wbr"]),aN=DR("meta");function cN(e){return Boolean(function(e){return e&&"object"==typeof e&&"type"in e}(e)&&("text"===e.type||sN(e)||BR(e)||function(e){if(!LR(e,"link"))return!1;if(oN(e,"itemProp"))return!0;const t=(e.properties||{}).rel||[];let r=-1;if(!Array.isArray(t)||0===t.length)return!1;for(;++r<t.length;)if(!iN.has(String(t[r])))return!1;return!0}(e)||aN(e)&&oN(e,"itemProp")))}const lN=ya(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","link","linkReference","strong","text"]);function uN(e){return fN(e,function(e){const t=e[0];if(1===e.length&&"text"===t.type&&(" "===t.value||"\n"===t.value))return[];return{type:"paragraph",children:e}})}function hN(e){let t,r=-1;for(;++r<e.length;)if(t=e[r],!dN(t)||"children"in t&&hN(t.children))return!0;return!1}function fN(e,t,r){const n=r||mN,o=function(e){let t,r=[],n=-1;for(;++n<e.length;)t=e[n],"delete"!==t.type&&"link"!==t.type||!hN(t.children)?r.push(t):r=r.concat(pN(t));return r}(e);let i,s,a=[],c=-1;for(;++c<o.length;)s=o[c],dN(s)?(i||(i=[]),i.push(s)):(i&&(a=a.concat(t(i)),i=void 0),a=a.concat(n(s)));return i&&(a=a.concat(t(i))),a}function pN(e){return fN(e.children,function(t){const{children:r,...n}=e;return{...co(!0,{},n),children:t}},function(t){if("children"in t&&"children"in e){const{children:r,...n}=e;return{...t,children:[{...co(!0,{},n),children:t.children}]}}return{...t}})}function dN(e){return e.data&&e.data.hName?cN({type:"element",tagName:e.data.hName,properties:{},children:[]}):lN(e)}function mN(e){return e}function gN(e,t){return uN(ZR(e,t))}function yN(e,t){return null==t?"":e.frozenBaseUrl?String(new URL(t,e.frozenBaseUrl)):t}const EN=function(e,t,r){const n=ya(r);if(!e||!e.type||!e.children)throw new Error("Expected parent node");if("number"==typeof t){if(t<0||t===Number.POSITIVE_INFINITY)throw new Error("Expected positive finite number as index")}else if((t=e.children.indexOf(t))<0)throw new Error("Expected child node or index");for(;++t<e.children.length;)if(n(e.children[t],t,e))return e.children[t];return null},TN=/\n/g,vN=/[\t ]+/g,bN=DR("br"),_N=DR("p"),AN=DR(["th","td"]),SN=DR("tr"),kN=DR(["datalist","head","noembed","noframes","noscript","rp","script","style","template","title",function(e){return Boolean((e.properties||{}).hidden)},function(e){return"dialog"===e.tagName&&!(e.properties||{}).open}]),wN=DR(["address","article","aside","blockquote","body","caption","center","dd","dialog","dir","dl","dt","div","figure","figcaption","footer","form,","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","legend","listing","main","menu","nav","ol","p","plaintext","pre","section","ul","xmp"]);function CN(e,t={}){const r="children"in e?e.children:[],n=wN(e),o=NN(e,{whitespace:t.whitespace||"normal",breakBefore:!1,breakAfter:!1}),i=[];"text"!==e.type&&"comment"!==e.type||i.push(...ON(e,{whitespace:o,breakBefore:!0,breakAfter:!0}));let s=-1;for(;++s<r.length;)i.push(...xN(r[s],e,{whitespace:o,breakBefore:s?void 0:n,breakAfter:s<r.length-1?bN(r[s+1]):n}));const a=[];let c;for(s=-1;++s<i.length;){const e=i[s];"number"==typeof e?void 0!==c&&e>c&&(c=e):e&&(void 0!==c&&c>-1&&a.push("\n".repeat(c)||" "),c=-1,a.push(e))}return a.join("")}function xN(e,t,r){return"element"===e.type?function(e,t,r){const n=NN(e,r),o=e.children||[];let i,s,a=-1,c=[];if(kN(e))return c;bN(e)||SN(e)&&EN(t,e,SN)?s="\n":_N(e)?(i=2,s=2):wN(e)&&(i=1,s=1);for(;++a<o.length;)c=c.concat(xN(o[a],e,{whitespace:n,breakBefore:a?void 0:i,breakAfter:a<o.length-1?bN(o[a+1]):s}));AN(e)&&EN(t,e,AN)&&c.push("\t");i&&c.unshift(i);s&&c.push(s);return c}(e,t,r):"text"===e.type?"normal"===r.whitespace?ON(e,r):function(e){return[String(e.value)]}(e):[]}function ON(e,t){const r=String(e.value),n=[],o=[];let i=0;for(;i<=r.length;){TN.lastIndex=i;const e=TN.exec(r),o=e&&"index"in e?e.index:r.length;n.push(RN(r.slice(i,o).replace(/[\u061C\u200E\u200F\u202A-\u202E\u2066-\u2069]/g,""),0!==i||t.breakBefore,o!==r.length||t.breakAfter)),i=o+1}let s,a=-1;for(;++a<n.length;)8203===n[a].charCodeAt(n[a].length-1)||a<n.length-1&&8203===n[a+1].charCodeAt(0)?(o.push(n[a]),s=void 0):n[a]?("number"==typeof s&&o.push(s),o.push(n[a]),s=0):0!==a&&a!==n.length-1||o.push(0);return o}function RN(e,t,r){const n=[];let o,i=0;for(;i<e.length;){vN.lastIndex=i;const r=vN.exec(e);o=r?r.index:e.length,i||o||!r||t||n.push(""),i!==o&&n.push(e.slice(i,o)),i=r?o+r[0].length:o}return i===o||r||n.push(""),n.join(" ")}function NN(e,t){if("element"===e.type){const r=e.properties||{};switch(e.tagName){case"listing":case"plaintext":case"xmp":return"pre";case"nobr":return"nowrap";case"pre":return r.wrap?"pre-wrap":"pre";case"td":case"th":return r.noWrap?"nowrap":t.whitespace;case"textarea":return"pre-wrap"}}return t.whitespace}const PN="language-",IN=DR("pre"),LN=DR("code");function DN(e,t){const r=t.children;let n,o,i=-1;if(IN(t))for(;++i<r.length;){const e=r[i];if(LN(e)&&e.properties&&e.properties.className&&Array.isArray(e.properties.className)){n=e.properties.className;break}}if(n)for(i=-1;++i<n.length;)if(String(n[i]).slice(0,9)===PN){o=String(n[i]).slice(9);break}return e(t,"code",{lang:o||null,meta:null},function(e){const t=String(e);let r=t.length;for(;r>0;){const e=t.codePointAt(r-1);if(void 0===e||10!==e&&13!==e)break;r--}return t.slice(0,r)}(tN(e,CN(t))))}function FN(e,t){return e(t,"delete",ZR(e,t))}function MN(e){let t=-1;if(e.length>1)for(;++t<e.length;)if(e[t].spread)return!0;return!1}function BN(e,t){const r=ZR(e,t);let n=-1;for(;++n<r.length;){const e=r[n];"listItem"!==e.type&&(r[n]={type:"listItem",spread:!1,checked:null,children:[e]})}return r}const UN=DR("div"),HN=DR("dt"),jN=DR("dd");function qN(e,t){const r=BN(e,{type:"element",tagName:"x",children:t});return 0===r.length?[]:1===r.length?r[0].children:[{type:"list",ordered:!1,start:null,spread:MN(r),children:r}]}function zN(e,t){return e(t,"emphasis",ZR(e,t))}function GN(e,t){const r=Number(t.tagName.charAt(1))||1,n=e.wrapText;e.wrapText=!1;const o=e(t,"heading",{depth:r},ZR(e,t));return e.wrapText=n,o}function $N(e,t){const r=t.properties;return e(t,"image",{url:yN(e,String(r.src||"")||null),title:r.title||null,alt:r.alt||""})}function KN(e,t){return e(t,"inlineCode",tN(e,CN(t)))}const VN=DR("option");function WN(e,t,r){const n=r||t.properties;let o=QN(t);const i=Math.min(Number.parseInt(String(n.size),10),0)||(n.multiple?4:1);let s=-1;const a=[],c=[];for(;++s<o.length;)oN(o[s],"selected")&&a.push(o[s]);for(o=(a.length>0?a:o).slice(0,i),s=-1;++s<o.length;){const t=o[s],r=tN(e,CN(t)),n=t.properties,i=r||String(n.label||""),a=String(n.value||"")||r;c.push([a,i===a?null:i])}return c}function QN(e){const t=e.children;let r,n=-1,o=[];for(;++n<t.length;)r=t[n],Array.isArray(r.children)&&(o=o.concat(QN(r))),VN(r)&&!oN(r,"disabled")&&o.push(r);return o}const YN=DR("datalist");const XN=DR("p"),JN=DR("input");function ZN(e,t){const r=t.children[0];let n,o,i=null;XN(r)&&(n=r.children[0],JN(n)&&n.properties&&("checkbox"===n.properties.type||"radio"===n.properties.type)&&(i=Boolean(n.properties.checked),o={...t,children:[{...r,children:r.children.slice(1)},...t.children.slice(1)]}));const s=gN(e,o||t);return e(t,"listItem",{spread:s.length>1,checked:i},s)}const eP=DR("ol");function tP(e,t){const r=eP(t),n=BN(e,t);let o=null;return r&&(o=oN(t,"start")?Number.parseInt(String(t.properties.start),10):1),e(t,"list",{ordered:r,start:o,spread:MN(n)},n)}const rP=DR("source"),nP=DR("video");function oP(e,t){let r=ZR(e,t);const n=t.properties,o=nP(t)&&String(n.poster||"");let i,s=String(n.src||""),a=-1,c=!1;if(ll({type:"root",children:r},"link",function(){return c=!0,Aa}),c||hN(r))return r;for(;!s&&++a<t.children.length;)i=t.children[a],rP(i)&&(s=String(i.properties.src||""));return o&&(r=[{type:"image",title:null,url:yN(e,o),alt:Lo({children:r})}]),{type:"link",title:t.properties.title||null,url:yN(e,s),children:r}}function iP(e,t){const r=ZR(e,t);if(r.length>0)return e(t,"paragraph",r)}function sP(e,t){return e(t,"strong",ZR(e,t))}function aP(e,t){const r=e.wrapText;e.wrapText=!1;const n=e(t,"tableCell",ZR(e,t));if(t.properties&&(t.properties.rowSpan||t.properties.colSpan)){const e=n.data||(n.data={});t.properties.rowSpan&&(e.rowSpan=t.properties.rowSpan),t.properties.colSpan&&(e.colSpan=t.properties.colSpan)}return e.wrapText=r,n}const cP=DR("thead"),lP=DR("tr"),uP=DR(["th","td"]);function hP(e){const t=[];let r,n,o=-1;for(;++o<e.length;)r=e[o],"tableCell"===r.type?(n&&(r.children.unshift(...n),n=void 0),t.push(r)):(n||(n=[]),n.push(r));return n&&(r=t[t.length-1],r||(r={type:"tableCell",children:[]},t.push(r)),r.children.push(...n)),t}const fP={root:function(e,t){let r=ZR(e,t);return(e.document||hN(r))&&(r=uN(r)),e(t,"root",r)},text:function(e,t){return e(t,"text",tN(e,t.value))},comment:function(e,t){return e(t,"html","\x3c!--"+tN(e,t.value)+"--\x3e")},doctype:pP,applet:pP,area:pP,basefont:pP,bgsound:pP,caption:pP,col:pP,colgroup:pP,command:pP,content:pP,datalist:pP,dialog:pP,element:pP,embed:pP,frame:pP,frameset:pP,isindex:pP,keygen:pP,link:pP,math:pP,menu:pP,menuitem:pP,meta:pP,nextid:pP,noembed:pP,noframes:pP,optgroup:pP,option:pP,param:pP,script:pP,shadow:pP,source:pP,spacer:pP,style:pP,svg:pP,template:pP,title:pP,track:pP,abbr:ZR,acronym:ZR,bdi:ZR,bdo:ZR,big:ZR,blink:ZR,button:ZR,canvas:ZR,cite:ZR,data:ZR,details:ZR,dfn:ZR,font:ZR,ins:ZR,label:ZR,map:ZR,marquee:ZR,meter:ZR,nobr:ZR,noscript:ZR,object:ZR,output:ZR,progress:ZR,rb:ZR,rbc:ZR,rp:ZR,rt:ZR,rtc:ZR,ruby:ZR,slot:ZR,small:ZR,span:ZR,sup:ZR,sub:ZR,tbody:ZR,tfoot:ZR,thead:ZR,time:ZR,address:gN,article:gN,aside:gN,body:gN,center:gN,div:gN,fieldset:gN,figcaption:gN,figure:gN,form:gN,footer:gN,header:gN,hgroup:gN,html:gN,legend:gN,main:gN,multicol:gN,nav:gN,picture:gN,section:gN,a:function(e,t){const r=t.properties;return e(t,"link",{title:r.title||null,url:yN(e,String(r.href||"")||null)},ZR(e,t))},audio:oP,b:sP,base:function(e,t){e.baseFound||(e.frozenBaseUrl=String(t.properties&&t.properties.href||"")||null,e.baseFound=!0)},blockquote:function(e,t){return e(t,"blockquote",gN(e,t))},br:function(e,t){return e.wrapText?e(t,"break"):e(t,"text"," ")},code:KN,dir:tP,dl:function(e,t){const r=t.children;let n=-1,o=[];const i=[];let s,a,c={titles:[],definitions:[]};for(;++n<r.length;)s=r[n],o=o.concat(UN(s)?s.children:s);for(n=-1;++n<o.length;)s=o[n],HN(s)?(jN(o[n-1])&&(i.push(c),c={titles:[],definitions:[]}),c.titles.push(s)):c.definitions.push(s);i.push(c),n=-1;const l=[];for(;++n<i.length;)a=[...qN(e,i[n].titles),...qN(e,i[n].definitions)],a.length>0&&l.push({type:"listItem",spread:a.length>1,checked:null,children:a});if(l.length>0)return e(t,"list",{ordered:!1,start:null,spread:MN(l)},l)},dt:ZN,dd:ZN,del:FN,em:zN,h1:GN,h2:GN,h3:GN,h4:GN,h5:GN,h6:GN,hr:function(e,t){return e(t,"thematicBreak")},i:zN,iframe:function(e,t){const r=t.properties,n=String(r.src||""),o=String(r.title||"");if(n&&o)return{type:"link",title:null,url:yN(e,n),children:[{type:"text",value:tN(e,o)}]}},img:$N,image:$N,input:function(e,t){const r=t.properties;let n=String(r.value||r.placeholder||"");const o=[],i=[];let s,a=[],c=-1;if(!r.disabled&&"hidden"!==r.type&&"file"!==r.type){if("checkbox"===r.type||"radio"===r.type)return e(t,"text",tN(e,e[r.checked?"checked":"unchecked"]));if("image"===r.type)return r.alt||n?e(t,"image",{url:yN(e,String(r.src||"")||null),title:tN(e,String(r.title||""))||null,alt:tN(e,String(r.alt||n))}):[];if(n?a=[[n,null]]:"password"!==r.type&&"file"!==r.type&&"submit"!==r.type&&"reset"!==r.type&&"button"!==r.type&&r.list&&(s=String(r.list).toUpperCase(),eN.call(e.nodeById,s)&&YN(e.nodeById[s])&&(a=WN(e,e.nodeById[s],r))),0!==a.length){if("password"===r.type&&(a[0]=["•".repeat(a[0][0].length),null]),"url"===r.type||"email"===r.type){for(;++c<a.length;)n=yN(e,a[c][0]),o.push(e(t,"link",{title:null,url:tN(e,"email"===r.type?"mailto:"+n:n)},[{type:"text",value:tN(e,a[c][1]||n)}])),c!==a.length-1&&o.push({type:"text",value:", "});return o}for(;++c<a.length;)i.push(a[c][1]?a[c][1]+" ("+a[c][0]+")":a[c][0]);return e(t,"text",tN(e,i.join(", ")))}}},kbd:KN,li:ZN,listing:DN,mark:zN,ol:tP,p:iP,plaintext:DN,pre:DN,q:function(e,t){const r=e.quotes[e.qNesting%e.quotes.length];e.qNesting++;const n=ZR(e,t);return e.qNesting--,n.unshift({type:"text",value:r.charAt(0)}),n.push({type:"text",value:r.length>1?r.charAt(1):r}),n},s:FN,samp:KN,select:function(e,t){const r=WN(e,t);let n=-1;const o=[];let i;for(;++n<r.length;)i=r[n],o.push(i[1]?i[1]+" ("+i[0]+")":i[0]);if(o.length>0)return e(t,"text",tN(e,o.join(", ")))},strike:FN,strong:sP,summary:iP,table:function(e,t){if(e.inTable)return e(t,"text",tN(e,CN(t)));e.inTable=!0;const{headless:r,align:n}=function(e){let t=!0,r=0,n=0;const o=[null];return ll(e,"element",i=>{if("table"===i.tagName&&e!==i)return Sa;uP(i)&&i.properties?(o[n]||(o[n]=String(i.properties.align||"")||null),t&&r<2&&"th"===i.tagName&&(t=!1),n++):cP(i)?t=!1:lP(i)&&(r++,n=0)}),{align:o,headless:t}}(t),o=function(e,t){let r=-1;const n=[];let o;t&&n.push({type:"tableRow",children:[]});for(;++r<e.length;){const t=e[r];"tableRow"===t.type?(o&&(t.children.unshift(...o),o=void 0),n.push(t)):(o||(o=[]),o.push(t))}o&&n[n.length-1].children.push(...o);r=-1;for(;++r<n.length;)n[r].children=hP(n[r].children);return n}(ZR(e,t),r);let i=1,s=-1;for(;++s<o.length;){const e=o[s].children;let t=-1;for(;++t<e.length;){const r=e[t];if(r.data){const e=Number.parseInt(String(r.data.colSpan),10)||1,n=Number.parseInt(String(r.data.rowSpan),10)||1;if(e>1||n>1){let r=s-1;for(;++r<s+n;){let n=t-1;for(;++n<t+e&&o[r];){const e=[];r===s&&n===t||e.push({type:"tableCell",children:[]}),o[r].children.splice(n,0,...e)}}}"colSpan"in r.data&&delete r.data.colSpan,"rowSpan"in r.data&&delete r.data.rowSpan,0===Object.keys(r.data).length&&delete r.data}}e.length>i&&(i=e.length)}for(s=-1;++s<o.length;){const e=o[s].children;let t=e.length-1;for(;++t<i;)e.push({type:"tableCell",children:[]})}let a=n.length-1;for(;++a<i;)n.push(null);return e.inTable=!1,e(t,"table",{align:n},o)},td:aP,textarea:function(e,t){return e(t,"text",tN(e,CN(t)))},th:aP,tr:function(e,t){return e(t,"tableRow",ZR(e,t))},tt:KN,u:zN,ul:tP,var:KN,video:oP,wbr:function(e,t){return e(t,"text","")},xmp:DN};function pP(){}const dP=ya(["heading","paragraph","root"]);function mP(e,t={}){const r={};let n;const o=Object.assign((e,t,r,n)=>{let o;"string"==typeof r||Array.isArray(r)?(n=r,o={}):o=r;const i={type:t,...o};return"string"==typeof n?i.value=n:n&&(i.children=n),e.position&&(i.position=e.position),i},{nodeById:r,baseFound:!1,inTable:!1,wrapText:!0,frozenBaseUrl:null,qNesting:0,handlers:t.handlers?{...fP,...t.handlers}:fP,document:t.document,checked:t.checked||"[x]",unchecked:t.unchecked||"[ ]",quotes:t.quotes||['"']});ll(e,"element",e=>{const t=e.properties&&"id"in e.properties&&String(e.properties.id).toUpperCase();t&&!eN.call(r,t)&&(r[t]=e)}),zR({newlines:!0===t.newlines})(e);const i=rN(o,e,void 0);return n=i?Array.isArray(i)?{type:"root",children:i}:i:{type:"root",children:[]},ll(n,"text",function(e,t,r){if(null===t||!r)return;const n=r.children[t-1];if(n&&n.type===e.type)return n.value+=e.value,r.children.splice(t,1),n.position&&e.position&&(n.position.end=e.position.end),t-1;e.value=e.value.replace(/[\t ]*(\r?\n|\r)[\t ]*/,"$1"),r&&dP(r)&&(t||(e.value=e.value.replace(/^[\t ]+/,"")),t===r.children.length-1&&(e.value=e.value.replace(/[\t ]+$/,"")));if(!e.value)return r.children.splice(t,1),t}),n}var gP=function(e,t){let r,n;return"function"==typeof e?(n=e,r=t||{}):r=e||{},void 0!==r.document&&null!==r.document||(r=Object.assign({},r,{document:!0})),n?function(e,t){return(r,n,o)=>{e.run(mP(r,t),n,e=>{o(e)})}}(n,r):function(e={}){return t=>mP(t,e)}(r)};function yP(e,t){let r,n=-1;if(t.extensions)for(;++n<t.extensions.length;)yP(e,t.extensions[n]);for(r in t)"extensions"===r||("unsafe"===r||"join"===r?e[r]=[...e[r]||[],...t[r]||[]]:"handlers"===r?e[r]=Object.assign(e[r],t[r]||{}):e.options[r]=t[r]);return e}function EP(e,t,r,n){let o=-1;for(;++o<r.unsafe.length;)if("\n"===r.unsafe[o].character&&Ga(r.stack,r.unsafe[o]))return/[ \t]/.test(n.before)?"":" ";return"\\\n"}function TP(e,t){return Boolean(!t.options.fences&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function vP(e,t,r){return(r?"":" ")+e}function bP(e,t,r,n){const o=function(e){const t=e.options.emphasis||"*";if("*"!==t&&"_"!==t)throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}(r),i=r.enter("emphasis"),s=r.createTracker(n);let a=s.move(o);return a+=s.move(r.containerPhrasing(e,{before:a,after:o,...s.current()})),a+=s.move(o),i(),a}function _P(e){return e.value||""}function AP(e,t,r,n){const o=e.referenceType,i=r.enter("imageReference");let s=r.enter("label");const a=r.createTracker(n);let c=a.move("![");const l=r.safe(e.alt,{before:c,after:"]",...a.current()});c+=a.move(l+"]["),s();const u=r.stack;r.stack=[],s=r.enter("reference");const h=r.safe(r.associationId(e),{before:c,after:"]",...a.current()});return s(),r.stack=u,i(),"full"!==o&&l&&l===h?"shortcut"===o?c=c.slice(0,-1):c+=a.move("]"):c+=a.move(h+"]"),c}function SP(e,t){const r=Lo(e);return Boolean(!t.options.resourceLink&&e.url&&!e.title&&e.children&&1===e.children.length&&"text"===e.children[0].type&&(r===e.url||"mailto:"+r===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}function kP(e,t,r,n){const o=Yc(r),i='"'===o?"Quote":"Apostrophe",s=r.createTracker(n);let a,c;if(SP(e,r)){const t=r.stack;r.stack=[],a=r.enter("autolink");let n=s.move("<");return n+=s.move(r.containerPhrasing(e,{before:n,after:">",...s.current()})),n+=s.move(">"),a(),r.stack=t,n}a=r.enter("link"),c=r.enter("label");let l=s.move("[");return l+=s.move(r.containerPhrasing(e,{before:l,after:"](",...s.current()})),l+=s.move("]("),c(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(c=r.enter("destinationLiteral"),l+=s.move("<"),l+=s.move(r.safe(e.url,{before:l,after:">",...s.current()})),l+=s.move(">")):(c=r.enter("destinationRaw"),l+=s.move(r.safe(e.url,{before:l,after:e.title?" ":")",...s.current()}))),c(),e.title&&(c=r.enter(`title${i}`),l+=s.move(" "+o),l+=s.move(r.safe(e.title,{before:l,after:o,...s.current()})),l+=s.move(o),c()),l+=s.move(")"),a(),l}function wP(e,t,r,n){const o=e.referenceType,i=r.enter("linkReference");let s=r.enter("label");const a=r.createTracker(n);let c=a.move("[");const l=r.containerPhrasing(e,{before:c,after:"]",...a.current()});c+=a.move(l+"]["),s();const u=r.stack;r.stack=[],s=r.enter("reference");const h=r.safe(r.associationId(e),{before:c,after:"]",...a.current()});return s(),r.stack=u,i(),"full"!==o&&l&&l===h?"shortcut"===o?c=c.slice(0,-1):c+=a.move("]"):c+=a.move(h+"]"),c}function CP(e){const t=e.options.bulletOrdered||".";if("."!==t&&")"!==t)throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}function xP(e){const t=e.options.rule||"*";if("*"!==t&&"-"!==t&&"_"!==t)throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}function OP(e,t,r,n){const o=function(e){const t=e.options.strong||"*";if("*"!==t&&"_"!==t)throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}(r),i=r.enter("strong"),s=r.createTracker(n);let a=s.move(o+o);return a+=s.move(r.containerPhrasing(e,{before:a,after:o,...s.current()})),a+=s.move(o+o),i(),a}bP.peek=function(e,t,r){return r.options.emphasis||"*"},_P.peek=function(){return"<"},AP.peek=function(){return"!"},kP.peek=function(e,t,r){return SP(e,r)?"<":"["},wP.peek=function(){return"["},OP.peek=function(e,t,r){return r.options.strong||"*"};const RP={blockquote:yl,break:EP,code:function(e,t,r,n){const o=function(e){const t=e.options.fence||"`";if("`"!==t&&"~"!==t)throw new Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}(r),i=e.value||"",s="`"===o?"GraveAccent":"Tilde";if(TP(e,r)){const e=r.enter("codeIndented"),t=r.indentLines(i,vP);return e(),t}const a=r.createTracker(n),c=o.repeat(Math.max(function(e,t){const r=String(e);let n=r.indexOf(t),o=n,i=0,s=0;if("string"!=typeof t)throw new TypeError("Expected substring");for(;-1!==n;)n===o?++i>s&&(s=i):i=1,o=n+t.length,n=r.indexOf(t,o);return s}(i,o)+1,3)),l=r.enter("codeFenced");let u=a.move(c);if(e.lang){const t=r.enter(`codeFencedLang${s}`);u+=a.move(r.safe(e.lang,{before:u,after:" ",encode:["`"],...a.current()})),t()}if(e.lang&&e.meta){const t=r.enter(`codeFencedMeta${s}`);u+=a.move(" "),u+=a.move(r.safe(e.meta,{before:u,after:"\n",encode:["`"],...a.current()})),t()}return u+=a.move("\n"),i&&(u+=a.move(i+"\n")),u+=a.move(c),l(),u},definition:function(e,t,r,n){const o=Yc(r),i='"'===o?"Quote":"Apostrophe",s=r.enter("definition");let a=r.enter("label");const c=r.createTracker(n);let l=c.move("[");return l+=c.move(r.safe(r.associationId(e),{before:l,after:"]",...c.current()})),l+=c.move("]: "),a(),!e.url||/[\0- \u007F]/.test(e.url)?(a=r.enter("destinationLiteral"),l+=c.move("<"),l+=c.move(r.safe(e.url,{before:l,after:">",...c.current()})),l+=c.move(">")):(a=r.enter("destinationRaw"),l+=c.move(r.safe(e.url,{before:l,after:e.title?" ":"\n",...c.current()}))),a(),e.title&&(a=r.enter(`title${i}`),l+=c.move(" "+o),l+=c.move(r.safe(e.title,{before:l,after:o,...c.current()})),l+=c.move(o),a()),s(),l},emphasis:bP,hardBreak:EP,heading:dl,html:_P,image:Xc,imageReference:AP,inlineCode:hc,link:kP,linkReference:wP,list:function(e,t,r,n){const o=r.enter("list"),i=r.bulletCurrent;let s=e.ordered?CP(r):vc(r);const a=e.ordered?function(e){const t=CP(e),r=e.options.bulletOrderedOther;if(!r)return"."===t?")":".";if("."!==r&&")"!==r)throw new Error("Cannot serialize items with `"+r+"` for `options.bulletOrderedOther`, expected `*`, `+`, or `-`");if(r===t)throw new Error("Expected `bulletOrdered` (`"+t+"`) and `bulletOrderedOther` (`"+r+"`) to be different");return r}(r):function(e){const t=vc(e),r=e.options.bulletOther;if(!r)return"*"===t?"-":"*";if("*"!==r&&"+"!==r&&"-"!==r)throw new Error("Cannot serialize items with `"+r+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(r===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+r+"`) to be different");return r}(r),c=r.bulletLastUsed;let l=!1;if(t&&(e.ordered?r.options.bulletOrderedOther:r.options.bulletOther)&&c&&s===c&&(l=!0),!e.ordered){const t=e.children?e.children[0]:void 0;if("*"!==s&&"-"!==s||!t||t.children&&t.children[0]||"list"!==r.stack[r.stack.length-1]||"listItem"!==r.stack[r.stack.length-2]||"list"!==r.stack[r.stack.length-3]||"listItem"!==r.stack[r.stack.length-4]||0!==r.indexStack[r.indexStack.length-1]||0!==r.indexStack[r.indexStack.length-2]||0!==r.indexStack[r.indexStack.length-3]||(l=!0),xP(r)===s&&t){let t=-1;for(;++t<e.children.length;){const r=e.children[t];if(r&&"listItem"===r.type&&r.children&&r.children[0]&&"thematicBreak"===r.children[0].type){l=!0;break}}}}l&&(s=a),r.bulletCurrent=s;const u=r.containerFlow(e,n);return r.bulletLastUsed=s,r.bulletCurrent=i,o(),u},listItem:bc,paragraph:hl,root:function(e,t,r,n){const o=e.children.some(e=>lN(e));return(o?r.containerPhrasing:r.containerFlow).call(r,e,n)},strong:OP,text:function(e,t,r,n){return r.safe(e.value,n)},thematicBreak:function(e,t,r){const n=(xP(r)+(r.options.ruleSpaces?" ":"")).repeat(function(e){const t=e.options.ruleRepetition||3;if(t<3)throw new Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}(r));return r.options.ruleSpaces?n.slice(0,-1):n}},NP=[function(e,t,r,n){if("code"===t.type&&TP(t,n)&&("list"===e.type||e.type===t.type&&TP(e,n)))return!1;if("list"===e.type&&e.type===t.type&&Boolean(e.ordered)===Boolean(t.ordered)&&!(e.ordered?n.options.bulletOrderedOther:n.options.bulletOther))return!1;if("spread"in r&&"boolean"==typeof r.spread){if("paragraph"===e.type&&(e.type===t.type||"definition"===t.type||"heading"===t.type&&pl(t,n)))return;return r.spread?1:0}}];const PP=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"],IP=[{character:"\t",after:"[\\r\\n]",inConstruct:"phrasing"},{character:"\t",before:"[\\r\\n]",inConstruct:"phrasing"},{character:"\t",inConstruct:["codeFencedLangGraveAccent","codeFencedLangTilde"]},{character:"\r",inConstruct:["codeFencedLangGraveAccent","codeFencedLangTilde","codeFencedMetaGraveAccent","codeFencedMetaTilde","destinationLiteral","headingAtx"]},{character:"\n",inConstruct:["codeFencedLangGraveAccent","codeFencedLangTilde","codeFencedMetaGraveAccent","codeFencedMetaTilde","destinationLiteral","headingAtx"]},{character:" ",after:"[\\r\\n]",inConstruct:"phrasing"},{character:" ",before:"[\\r\\n]",inConstruct:"phrasing"},{character:" ",inConstruct:["codeFencedLangGraveAccent","codeFencedLangTilde"]},{character:"!",after:"\\[",inConstruct:"phrasing",notInConstruct:PP},{character:'"',inConstruct:"titleQuote"},{atBreak:!0,character:"#"},{character:"#",inConstruct:"headingAtx",after:"(?:[\r\n]|$)"},{character:"&",after:"[#A-Za-z]",inConstruct:"phrasing"},{character:"'",inConstruct:"titleApostrophe"},{character:"(",inConstruct:"destinationRaw"},{before:"\\]",character:"(",inConstruct:"phrasing",notInConstruct:PP},{atBreak:!0,before:"\\d+",character:")"},{character:")",inConstruct:"destinationRaw"},{atBreak:!0,character:"*",after:"(?:[ \t\r\n*])"},{character:"*",inConstruct:"phrasing",notInConstruct:PP},{atBreak:!0,character:"+",after:"(?:[ \t\r\n])"},{atBreak:!0,character:"-",after:"(?:[ \t\r\n-])"},{atBreak:!0,before:"\\d+",character:".",after:"(?:[ \t\r\n]|$)"},{atBreak:!0,character:"<",after:"[!/?A-Za-z]"},{character:"<",after:"[!/?A-Za-z]",inConstruct:"phrasing",notInConstruct:PP},{character:"<",inConstruct:"destinationLiteral"},{atBreak:!0,character:"="},{atBreak:!0,character:">"},{character:">",inConstruct:"destinationLiteral"},{atBreak:!0,character:"["},{character:"[",inConstruct:"phrasing",notInConstruct:PP},{character:"[",inConstruct:["label","reference"]},{character:"\\",after:"[\\r\\n]",inConstruct:"phrasing"},{character:"]",inConstruct:["label","reference"]},{atBreak:!0,character:"_"},{character:"_",inConstruct:"phrasing",notInConstruct:PP},{atBreak:!0,character:"`"},{character:"`",inConstruct:["codeFencedLangGraveAccent","codeFencedMetaGraveAccent"]},{character:"`",inConstruct:"phrasing",notInConstruct:PP},{atBreak:!0,character:"~"}];function LP(e){throw new Error("Cannot handle value `"+e+"`, expected node")}function DP(e){throw new Error("Cannot handle unknown node `"+e.type+"`")}function FP(e,t){if("definition"===e.type&&e.type===t.type)return 0}function MP(e,t){return ac(e,this,t)}function BP(e,t){return Ua(e,this,t)}function UP(e,t){return Ka(this,e,t)}function HP(e){Object.assign(this,{Compiler:t=>{const r=this.data("settings");return function(e,t={}){const r={enter:function(e){return r.stack.push(e),function(){r.stack.pop()}},indentLines:qa,associationId:Ba,containerPhrasing:MP,containerFlow:BP,createTracker:Qa,safe:UP,stack:[],unsafe:[],join:[],handlers:{},options:{},indexStack:[],handle:void 0};yP(r,{unsafe:IP,join:NP,handlers:RP}),yP(r,t),r.options.tightDefinitions&&yP(r,{join:[FP]}),r.handle=Dn("type",{invalid:LP,unknown:DP,handlers:r.handlers});let n=r.handle(e,void 0,r,{before:"\n",after:"\n",now:{line:1,column:1},lineShift:0});return n&&10!==n.charCodeAt(n.length-1)&&13!==n.charCodeAt(n.length-1)&&(n+="\n"),n}(t,Object.assign({},r,e,{extensions:this.data("toMarkdownExtensions")||[]}))}})}class jP{source;dir;destFS;contentFS;filenames=new Map;images=new Map;constructor(e,t,r){this.source=e,this.dir=t,this.destFS=new __(r);const n=F.default.dirSync({unsafeCleanup:!0}).name;this.contentFS=new __(n)}toMarkdown(e,t){const r=Ao().use(IR).use(kc).use(gP,{handlers:{card:function(){}}}).use(HP,{bullet:"*",listItemIndent:"one",fences:!0,handlers:{html:e=>{const t=e.value;return t.startsWith("\x3c!--")?"":t||""},image:({...e},r,n,o)=>{if(!e.url.startsWith("data:")){let r=M.default.extname(e.url);r&&[".jpg",".jpeg",".png",".gif",".bmp",".svg",".webp"].includes(r)||(r=".png");const n=new URL(e.url,t).toString(),o=xv(n)+r;this.images.set(o,n),e.url=this.dir?`../.topwrite/assets/${this.dir}/${o}`:`.topwrite/assets/${o}`}return RP.image(e,r,n,o)},link:({...e},r,n,o)=>{if(!e.url.startsWith("http")){const r=s.parse(e.url).pathname;if(r){const n=new URL(r,t).toString();this.filenames.has(n)&&(e.url=this.filenames.get(n))}}return RP.link(e,r,n,o)}}});return r.processSync(e).toString()}async downloadImages(){await L_(Array.from(this.images),async([e,t],r)=>{try{he.info(`fetch images (${r+1}/${this.images.size})`);const n=await Cv.get(t,{responseType:"stream",timeout:5e3}),o=this.dir?`.topwrite/assets/${this.dir}/${e}`:`.topwrite/assets/${e}`,i=this.contentFS.createWriteStream(o);return new Promise((e,t)=>{n.data.pipe(i),i.on("error",e=>{i.close(),t(e)}),i.on("close",()=>{e()})})}catch(e){he.debug(e.message)}},{concurrency:3})}}class qP{async prepareContentPage(e,t){t&&await e.goto(t)}}class zP extends qP{async getArticles(e){return await e.addScriptTag({content:k_.toString()}),e.evaluate(async()=>{const e=document.querySelector("aside nav>ul");if(e){const t=async e=>{const r=e.querySelectorAll("&>li"),n=[];for(const e of Array.from(r)){const r=e.querySelector("a");if(r){let o=[];if(r.className.includes("menu__link--sublist")){r.click();try{const r=await k_(()=>{const t=e.querySelector("&>ul");if(!t)throw new Error("render html timeout");return t},{stopAfter:5e3,tryEvery:200});o=await t(r)}catch(e){console.log(e.message)}}n.push({title:r.textContent?.trim()||"未命名",url:r.getAttribute("href")||"#",children:o})}}return n};return await t(e)}return[]})}async getContent(e){const t=await e.$("article .markdown");if(t)return await t.evaluate(e=>(e.querySelectorAll("a.hash-link").forEach(e=>{e.remove()}),e.innerHTML))}}class GP extends qP{async getArticles(e){return e.evaluate(async()=>{const e=document.querySelectorAll("aside nav .group"),t=await Promise.all(Array.from(e).map(async e=>{const t=async e=>{const r=e.querySelectorAll("&>.VPSidebarItem"),n=[];for(const e of Array.from(r)){const r=e.querySelector("&>.item");if(r){let o=[];const i=e.querySelector("&>.items");i&&(o=await t(i)),n.push({title:r.querySelector(".text")?.textContent||"未命名",url:r.querySelector(".VPLink")?.getAttribute("href")||"#",children:o})}}return n};return await t(e)}));return t.flat()})}async getContent(e){const t=await e.$(".VPContent main");if(t)return await t.evaluate(e=>(e.querySelectorAll("a.header-anchor").forEach(e=>e.remove()),e.querySelectorAll(".vp-doc [class*=language-]>span.lang").forEach(e=>e.remove()),e.innerHTML))}}class $P extends qP{async getArticles(e){const t=await e.waitForSelector("aside .sidebar-nav>ul");return t?t.evaluate(async e=>{const t=async e=>{const r=e.querySelectorAll("&>li"),n=[];for(const e of Array.from(r)){let r=e.firstChild;if(r){let o="#";if(r instanceof HTMLElement&&(r=r.querySelector("&>a")||r,r instanceof HTMLElement)){if(r.className.includes("section-link"))continue;o=r.getAttribute("href")||o}let i=[];const s=e.querySelector("&>ul");s&&(i=await t(s)),n.push({title:r.textContent||"未命名",url:o,children:i})}}return n};return await t(e)}):[]}async getContent(e){return await e.reload(),await e.waitForSelector("section.content article.markdown-section>*"),e.evaluate(()=>{const e=document.querySelector("section.content article.markdown-section");if(e){const t=e.firstElementChild;"P"===t?.tagName&&t.remove();return e.querySelectorAll("a.anchor").forEach(e=>{e.replaceWith(...Array.from(e.children))}),e.innerHTML}})}}class KP extends qP{getArticles(e){return e.evaluate(()=>{const e=document.querySelector("aside ul");if(e){const t=e=>{const r=e.querySelectorAll("&>li"),n=[];for(const e of Array.from(r)){let r=e.firstElementChild;if(r){r=r.querySelector("a")||r;let o=[];const i=e.querySelector("ul");i&&(o=t(i)),n.push({title:r.textContent?.trim()||"未命名",url:r.getAttribute("href")||"#",children:o})}}return n};return t(e)}return[]})}getContent(e){return e.evaluate(()=>{const e=document.querySelector("main header")?.nextElementSibling;if(e){return e.querySelectorAll(".opacity-0").forEach(e=>{e.remove()}),e.innerHTML}})}}class VP extends qP{async getArticles(e){return e.evaluate(()=>{const e=window.appData;if("book"in e){const{toc:t,slug:r}=e.book,{login:n}=e.group,o={},i=[];t.forEach(e=>{"LINK"!==e.type&&(o[e.uuid]={...e,children:[]})}),t.forEach(e=>{const t=o[e.uuid];t&&(e.parent_uuid?o[e.parent_uuid]&&o[e.parent_uuid].children.push(t):i.push(t))});const s=e=>e.map(e=>({title:e.title,url:e.url?`/${n}/${r}/${e.url}`:"",children:s(e.children)}));return s(i)}return[]})}async prepareContentPage(e,t){t?e.goto(t):await e.goto("about:blank")}async getContent(e){const t=await e.waitForResponse(e=>e.url().startsWith("https://www.yuque.com/api/docs"));if(200===t.status()){return(await t.json()).data.content}}}const WP=/[\u0000-\u001F\u0080-\u009F]/g,QP=/^\.+(\\|\/)|^\.+$/,YP=/\.+$/;function XP(e,t={}){if("string"!=typeof e)throw new TypeError("Expected a string");const r=void 0===t.replacement?"!":t.replacement;if(/[<>:"/\\|?*\u0000-\u001F]/g.test(r)&&WP.test(r))throw new Error("Replacement string cannot contain reserved filename characters");if(e=(e=(e=(e=(e=e.normalize("NFD")).replace(QP,r)).replace(/[<>:"/\\|?*\u0000-\u001F]/g,r)).replace(WP,r)).replace(YP,""),r.length>0){const t="."===e[0];e=function(e,t){if("string"!=typeof e||"string"!=typeof t)throw new TypeError("Expected a string");const r=new RegExp(`(?:${ga(t)}){2,}`,"g");return e.replace(r,t)}(e,r),e=e.length>1?function(e,t){if("string"!=typeof e||"string"!=typeof t)throw new TypeError("Expected a string");return e.startsWith(t)&&(e=e.slice(t.length)),e.endsWith(t)&&(e=e.slice(0,-t.length)),e}(e,r):e,t||"."!==e[0]||(e=r+e),"."===e[e.length-1]&&(e+=r)}e=/^(con|prn|aux|nul|com\d|lpt\d)$/i.test(e)?e+r:e;const n="number"==typeof t.maxLength?t.maxLength:100;if(e.length>n){const t=e.lastIndexOf(".");if(-1===t)e=e.slice(0,n);else{const r=e.slice(0,t),o=e.slice(t);e=r.slice(0,Math.max(1,n-o.length))+o}}return e}const JP={website:class extends jP{current=1;async convert(){he.info("initializing...");const e=await le.default.launch({headless:!0,executablePath:process.env.PUPPETEER_EXECUTABLE_PATH,args:["--no-sandbox"],defaultViewport:{width:1920,height:1080}});try{const t=await e.newPage();await t.setRequestInterception(!0),t.on("request",e=>{"image"===e.resourceType()?e.abort():e.continue()}),t.on("console",e=>he.debug(e.text())),he.info("detect articles..."),await t.goto(new URL(this.source.url).toString());const r=await t.evaluate(()=>{const e=document.querySelector("meta[name=generator]");return e?e.getAttribute("content"):"Docsify"in window?"Docsify":"www.yuque.com"===document.location.host?"LakeBook":null});let n;switch(!0){case r?.startsWith("Docusaurus"):n=new zP;break;case r?.startsWith("VitePress"):n=new GP;break;case r?.startsWith("Docsify"):n=new $P;break;case r?.startsWith("GitBook"):n=new KP;break;case r?.startsWith("LakeBook"):n=new VP;break;default:throw new Error("Unsupported website")}const o=await n.getArticles(t);this.generateFilenames(o),await n.prepareContentPage(t);const i=await this.buildFiles(t,o,n);await this.downloadImages(),he.info("archiving...");const s=re.default.createWriteStream(this.destFS.resolve("files.tar.gz"));await this.contentFS.archive(s),await this.destFS.writeFile("summary.json",JSON.stringify(i)),he.info("done.")}finally{await e.close()}}generateFilenames(e){for(const t of e){if(t.url&&"#"!==t.url&&!t.url.startsWith("http")){const e=XP(t.title);let r=e+".md",n=1;for(;!r||Object.values(this.filenames).includes(r);)r=e+"_"+n+".md",n++;t.url=new URL(t.url,this.source.url).toString(),this.filenames.set(t.url,r)}this.generateFilenames(t.children)}}async buildFiles(e,t,r){const n=[];for(const o of t){const t={title:o.title,ref:"",children:[]},i=this.filenames.get(o.url);if(i){he.info(`fetch articles (${this.current++}/${this.filenames.size})`),await r.prepareContentPage(e,o.url);const n=await r.getContent(e);if(n){const e=this.toMarkdown(n,o.url),r=M.default.join(this.dir,i);await this.contentFS.writeFile(r,e),t.ref=r}}o.children.length>0&&(t.children=await this.buildFiles(e,o.children,r)),n.push(t)}return n}}};const ZP=require("../package.json"),eI=new e.Command;eI.version(ZP.version),eI.name("ttx"),eI.option("-d, --debug","output extra debugging"),eI.on("option:debug",function(){he.level=n.LogLevel.Debug}),eI.command("build <dir> <format> [dest]").option("--sha <sha>","book hash value").option("--no-clean","not clean").description("build book").action(async function(e,t,r,n){n.clean&&F.default.setGracefulCleanup(),he.info(`cli version ${ZP.version}`);const o=M.default.resolve(e);r=r?M.default.resolve(r):M.default.join(o,"book.tar.gz");try{const o=await async function(e,t,r,n,o){if(void 0===AS[t])throw new Error("unsupported format: "+t);const i=AS[t],s=new __(e),a=await s.readAsObject("ttxconfig.json");he.debug("read options form ttxconfig.json"),he.debug(a);const c=Lv.createFromObject(await s.readAsObject(Lv.file)),l=s.resolve(c.getValue("root","")),u=F.default.dirSync({unsafeCleanup:!0}).name,h=new __(u);await re.default.copy(l,u),await re.default.copy(M.default.resolve(__dirname,"../templates/.bookignore"),h.resolve(".bookignore"));const f={plugins:{host:_S("plugins_host"),preset:{},...a.plugins},poweredBy:{name:"顶想云",link:"https://www.topthink.com"},asset:a.asset||"local"};void 0!==a.poweredBy&&(f.poweredBy=a.poweredBy),a.lfs&&(f.lfs={url:a.lfs,files:{}});const p=a.id||"unknown",d=a.metadata||{};let m;m=h.exist(Nv.file.json)?await h.readAsObject(Nv.file.json,[]):await h.readAsString(Nv.file.markdown);const g=Nv.create(m),y=new i(new Dv(p,c,g,d,o),s,h,f,r,n);return a.article&&y instanceof M_&&y.setArticle(a.article),y}(e,t,r,ZP.version,n.sha);await o.generate(),process.exit(0)}catch(e){he.error(e.message),process.exit(1)}}),eI.command("convert").requiredOption("--type <type>","").requiredOption("--source <source>","",function(e,t={}){return{...ue.parse(e),...t}}).option("--dir <dir>").option("--dest <dest>").option("--no-clean","not clean").description("convert book").action(async function({type:e,source:t,dest:r=".",dir:n="",clean:o}){o&&F.default.setGracefulCleanup(),r=M.default.resolve(r);try{const o=await async function(e,t,r,n){if(void 0===JP[e])throw new Error("unsupported type: "+e);return new(0,JP[e])(t,r,n)}(e,t,n,r);await o.convert(),process.exit(0)}catch(e){he.error(e.message),process.exit(1)}});const tI=eI.command("config");tI.command("list").action(function(){console.log(_S())}),tI.command("set <key> <value>").action(function(e,t){!function(e,t){bS.set(e,t)}(e,t)}),eI.parse(process.argv);
|